vendor: 6,781 bytes, lines 1-3
1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="ccb33e19-8d30-5820-a5eb-8ddf8c97e566")}catch(e){}}(); 2const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["static/index.es-5KT4nLMy.js","static/index-a188c5b6-ChmaZmJy.js","static/index-a188c5b6-BctaYRKy.css","static/index-B4dm6Eez.css","static/SbParagraphLink.vue.es-OvQWziPk.js","static/SbParagraphLink.vue-CrPlLFg0.css","static/index.es-CP7hWJWE.js","static/index-D8B5cvTH.css","static/index.es-DJhzaSkH.js","static/index-Dq1K8XmZ.css","static/index.es-DHm10yk4.js","static/index-B9l5vqIN.css","static/index.es-DG71C3xK.js","static/index-C4jjmTN8.css","static/index.es-BHWTZJll.js","static/index.es-Bvj6rkZp.js","static/index-BaE-WxRA.css","static/index.es-CimXUWVC.js","static/useRatio.es-DY4gHaNE.js","static/index-46dOoTse.css","static/index.es-Ba8m0BX5.js","static/index-BpNHb7tL.css","static/modal.es-koqxDcNR.js","static/UnpinComment.vue.es-DC4HH7o7.js","static/modal-ca2eDiO4.css","static/index.es-D-73F2bD.js","static/Close-1.vue.es-CPpEN1IG.js"])))=>i.map(i=>d[i]); 3(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();function O1(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const ct={},Pa=[],Jr=()=>{},A8=()=>!1,Mc=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),k1=e=>e.startsWith("onUpdate:"),tn=Object.assign,L1=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},x8=Object.prototype.hasOwnProperty,vt=(e,t)=>x8.call(e,t),je=Array.isArray,Ba=e=>Bc(e)==="[object Map]",Pc=e=>Bc(e)==="[object Set]",xb=e=>Bc(e)==="[object Date]",ze=e=>typeof e=="function",Ot=e=>typeof e=="string",Ar=e=>typeof e=="symbol",Tt=e=>e!==null&&typeof e=="object",XT=e=>(Tt(e)||ze(e))&&ze(e.then)&&ze(e.catch),eI=Object.prototype.toString,Bc=e=>eI.call(e),C8=e=>Bc(e).slice(8,-1),tI=e=>Bc(e)==="[object Object]",M1=e=>Ot(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Na=O1(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ah=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},R8=/-(\w)/g,Gn=ah(e=>e.replace(R8,(t,n)=>n?n.toUpperCase():"")),O8=/\B([A-Z])/g,No=ah(e=>e.replace(O8,"-$1").toLowerCase()),uh=ah(e=>e.charAt(0).toUpperCase()+e.slice(1)),vd=ah(e=>e?`on${uh(e)}`:""),In=(e,t)=>!Object.is(e,t),_d=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},nI=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Qm=e=>{const t=parseFloat(e);return isNaN(t)?e:t},k8=e=>{const t=Ot(e)?Number(e):NaN;return isNaN(t)?e:t};let Cb;const Nc=()=>Cb||(Cb=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function at(e){if(je(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=Ot(r)?B8(r):at(r);if(o)for(const s in o)t[s]=o[s]}return t}else if(Ot(e)||Tt(e))return e}const L8=/;(?![^(]*\))/g,M8=/:([^]+)/,P8=/\/\*[^]*?\*\//g;function B8(e){const t={};return e.replace(P8,"").split(L8).forEach(n=>{if(n){const r=n.split(M8);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Be(e){let t="";if(Ot(e))t=e;else if(je(e))for(let n=0;n<e.length;n++){const r=Be(e[n]);r&&(t+=r+" ")}else if(Tt(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Jm(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Ot(t)&&(e.class=Be(t)),n&&(e.style=at(n)),e}const N8="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",D8=O1(N8);function rI(e){return!!e||e===""}function U8(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Dc(e[r],t[r]);return n}function Dc(e,t){if(e===t)return!0;let n=xb(e),r=xb(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Ar(e),r=Ar(t),n||r)return e===t;if(n=je(e),r=je(t),n||r)return n&&r?U8(e,t):!1;if(n=Tt(e),r=Tt(t),n||r){if(!n||!r)return!1;const o=Object.keys(e).length,s=Object.keys(t).length;if(o!==s)return!1;for(const a in e){const u=e.hasOwnProperty(a),f=t.hasOwnProperty(a);if(u&&!f||!u&&f||!Dc(e[a],t[a]))return!1}}return String(e)===String(t)}function P1(e,t){return e.findIndex(n=>Dc(n,t))}const oI=e=>!!(e&&e.__v_isRef===!0),Ue=e=>Ot(e)?e:e==null?"":je(e)||Tt(e)&&(e.toString===eI||!ze(e.toString))?oI(e)?Ue(e.value):JSON.stringify(e,iI,2):String(e),iI=(e,t)=>oI(t)?iI(e,t.value):Ba(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o],s)=>(n[gg(r,s)+" =>"]=o,n),{})}:Pc(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>gg(n))}:Ar(t)?gg(t):Tt(t)&&!je(t)&&!tI(t)?String(t):t,gg=(e,t="")=>{var n;return Ar(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let $n;class sI{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=$n,!t&&$n&&(this.index=($n.scopes||($n.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=$n;try{return $n=this,t()}finally{$n=n}}}on(){$n=this}off(){$n=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0,this._active=!1}}}function lh(e){return new sI(e)}function Gs(){return $n}function Do(e,t=!1){$n&&$n.cleanups.push(e)}let At;const mg=new WeakSet;class aI{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler
vendor: 9,206 bytes, line 3
3=void 0,$n&&$n.active&&$n.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,mg.has(this)&&(mg.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||lI(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Rb(this),cI(this);const t=At,n=Er;At=this,Er=!0;try{return this.fn()}finally{fI(this),At=t,Er=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)D1(t);this.deps=this.depsTail=void 0,Rb(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?mg.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Xm(this)&&this.run()}get dirty(){return Xm(this)}}let uI=0,$l,Tl;function lI(e,t=!1){if(e.flags|=8,t){e.next=Tl,Tl=e;return}e.next=$l,$l=e}function B1(){uI++}function N1(){if(--uI>0)return;if(Tl){let t=Tl;for(Tl=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;$l;){let t=$l;for($l=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function cI(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function fI(e){let t,n=e.depsTail,r=n;for(;r;){const o=r.prevDep;r.version===-1?(r===n&&(n=o),D1(r),H8(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=o}e.deps=t,e.depsTail=n}function Xm(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(dI(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function dI(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Gl))return;e.globalVersion=Gl;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!Xm(e)){e.flags&=-3;return}const n=At,r=Er;At=e,Er=!0;try{cI(e);const o=e.fn(e._value);(t.version===0||In(o,e._value))&&(e._value=o,t.version++)}catch(o){throw t.version++,o}finally{At=n,Er=r,fI(e),e.flags&=-3}}function D1(e,t=!1){const{dep:n,prevSub:r,nextSub:o}=e;if(r&&(r.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let s=n.computed.deps;s;s=s.nextDep)D1(s,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function H8(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Er=!0;const pI=[];function Oi(){pI.push(Er),Er=!1}function ki(){const e=pI.pop();Er=e===void 0?!0:e}function Rb(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=At;At=void 0;try{t()}finally{At=n}}}let Gl=0;class F8{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class ch{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!At||!Er||At===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==At)n=this.activeLink=new F8(At,this),At.deps?(n.prevDep=At.depsTail,At.depsTail.nextDep=n,At.depsTail=n):At.deps=At.depsTail=n,hI(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=At.depsTail,n.nextDep=void 0,At.depsTail.nextDep=n,At.depsTail=n,At.deps===n&&(At.deps=r)}return n}trigger(t){this.version++,Gl++,this.notify(t)}notify(t){B1();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{N1()}}}function hI(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)hI(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const np=new WeakMap,gs=Symbol(""),ey=Symbol(""),Yl=Symbol("");function fn(e,t,n){if(Er&&At){let r=np.get(e);r||np.set(e,r=new Map);let o=r.get(n);o||(r.set(n,o=new ch),o.map=r,o.key=n),o.track()}}function Eo(e,t,n,r,o,s){const a=np.get(e);if(!a){Gl++;return}const u=f=>{f&&f.trigger()};if(B1(),t==="clear")a.forEach(u);else{const f=je(e),d=f&&M1(n);if(f&&n==="length"){const p=Number(r);a.forEach((h,y)=>{(y==="length"||y===Yl||!Ar(y)&&y>=p)&&u(h)})}else switch((n!==void 0||a.has(void 0))&&u(a.get(n)),d&&u(a.get(Yl)),t){case"add":f?d&&u(a.get("length")):(u(a.get(gs)),Ba(e)&&u(a.get(ey)));break;case"delete":f||(u(a.get(gs)),Ba(e)&&u(a.get(ey)));break;case"set":Ba(e)&&u(a.get(gs));break}}N1()}function j8(e,t){const n=np.get(e);return n&&n.get(t)}function na(e){const t=rt(e);return t===e?t:(fn(t,"iterate",Yl),fr(e)?t:t.map(dn))}function fh(e){return fn(e=rt(e),"iterate",Yl),e}const V8={__proto__:null,[Symbol.iterator](){return yg(this,Symbol.iterator,dn)},concat(...e){return na(this).concat(...e.map(t=>je(t)?na(t):t))},entries(){return yg(this,"entries",e=>(e[1]=dn(e[1]),e))},every(e,t){return lo(this,"every",e,t,void 0,arguments)},filter(e,t){return lo(this,"filter",e,t,n=>n.map(dn),arguments)},find(e,t){return lo(this,"find",e,t,dn,arguments)},findIndex(e,t){return lo(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return lo(this,"findLast",e,t,dn,arguments)},findLastIndex(e,t){return lo(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return lo(this,"forEach",e,t,void 0,arguments)},includes(...e){return vg(this,"includes",e)},indexOf(...e){return vg(this,"indexOf",e)},join(e){return na(this).join(e)},lastIndexOf(...e){return vg(this,"lastIndexOf",e)},map(e,t){return lo(this,"map",e,t,void 0,arguments)},pop(){return Vu(this,"pop")},push(...e){return Vu(this,"push",e)},reduce(e,...t){return Ob(this,"reduce",e,t)},reduceRight(e,...t){return Ob(this,"reduceRight",e,t)},shift(){return Vu(this,"shift")},some(e,t){return lo(this,"some",e,t,void 0,arguments)},splice(...e){return Vu(this,"splice",e)},toReversed(){return na(this).toReversed()},toSorted(e){return na(this).toSorted(e)},toSpliced(...e){return na(this).toSpliced(...e)},unshift(...e){return Vu(this,"unshift",e)},values(){return yg(this,"values",dn)}};function yg(e,t,n){const r=fh(e),o=r[t]();return r!==e&&!fr(e)&&(o._next=o.next,o.next=()=>{const s=o._next();return s.value&&(s.value=n(s.value)),s}),o}const q8=Array.prototype;function lo(e,t,n,r,o,s){const a=fh(e),u=a!==e&&!fr(e),f=a[t];if(f!==q8[t]){const h=f.apply(e,s);return u?dn(h):h}let d=n;a!==e&&(u?d=function(h,y){return n.call(this,dn(h),y,e)}:n.length>2&&(d=function(h,y){return n.call(this,h,y,e)}));const p=f.call(a,d,r);return u&&o?o(p):p}function Ob(e,t,n,r){const o=fh(e);let s=n;return o!==e&&(fr(e)?n.length>3&&(s=function(a,u,f){return n.call(this,a,u,f,e)}):s=function(a,u,f){return n.call(this,a,dn(u),f,e)}),o[t](s,...r)}function vg(e,t,n){const r=rt(e);fn(r,"iterate",Yl);const o=r[t](...n);return(o===-1||o===!1)&&U1(n[0])?(n[0]=rt(n[0]),r[t](...n)):o}function Vu(e,t,n=[]){Oi(),B1();const r=rt(e)[t].apply(e,n);return N1(),ki(),r}const W8=O1("__proto__,__v_isRef,__isVue"),gI=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ar));function z8(e){Ar(e)||(e=String(e));const t=rt(this);return fn(t,"has",e),t.hasOwnProperty(e)}class mI{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){const o=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return s;if(n==="__v_raw")return r===(o?s?EI:wI:s?bI:_I).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const a=je(t);if(!o){let f;if(a&&(f=V8[n]))return f;if(n==="hasOwnProperty")return z8}const u=Reflect.get(t,n,Xe(t)?t:r);return(Ar(n)?gI.has(n):W8(n))||(o||fn(t,"get",n),s)?u:Xe(u)?a&&M1(n)?u:u.value:Tt(u)?o?Uc(u):ks(u):u}}class yI extends mI{constructor(t=!1){super(!1,t)}set(t,n,r,o){let s=t[n];if(!this._isShallow){const f=Ls(s);if(!fr(r)&&!Ls(r)&&(s=rt(s),r=rt(r)),!je(t)&&Xe(s)&&!Xe(r))return f?!1:(s.value=r,!0)}const a=je(t)&&M1(n)?Number(n)<t.length:vt(t,n),u=Reflect.set(t,n,r,Xe(t)?t:o);return t===rt(o)&&(a?In(r,s)&&Eo(t,"set",n,r):Eo(t,"add",n,r)),u}deleteProperty(t,n){const r=vt(t,n);t[n];const o=Reflect.deleteProperty(t,n);return o&&r&&Eo(t,"delete",n,void 0),o}has(t,n){const r=Reflect.has(t,n);return(!Ar(n)||!gI.has(n))&&fn(t,"has",n),r}ownKeys(t){return fn(t,"iterate",je(t)?"length":gs),Reflect.ownKeys(t)}}class vI extends mI{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const G8=new yI,Y8=new vI,K8=new yI(!0),Z8=new vI(!0),ty=e=>e,Lf=e=>Reflect.getPrototypeOf(e);function Q8(e,t,n){return function(...r){const o=this.__v_raw,s=rt(o),a=Ba(s),u=e==="entries"||e===Symbol.iterator&&a,f=e==="keys"&&a,d=o[e](...r),p=n?ty:t?ny:dn;return!t&&fn(s,"iterate",f?ey:gs),{next(){const{value:h,done:y}=d.next();return y?{value:h,done:y}:{value:u?[p(h[0]),p(h[1])]:p(h),done:y}},[Symbol.iterator](){return this}}}}function Mf(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function J8(e,t){const n={get(o){const s=this.__v_raw,a=rt(s),u=rt(o);e||(In(o,u)&&fn(a,"get",o),fn(a,"get",u));const{has:f}=Lf(a),d=t?ty:e?ny:dn;if(f.call(a,o))return d(s.get(o));if(f.call(a,u))return d(s.get(u));s!==a&&s.get(o)},get size(){const o=this.__v_raw;return!e&&fn(rt(o),"iterate",gs),Reflect.get(o,"size",o)},has(o){const s=this.__v_raw,a=rt(s),u=rt(o);return e||(In(o,u)&&fn(a,"has",o),fn(a,"has",u)),o===u?s.has(o):s.has(o)||s.has(u)}
vendor: 10,160 bytes, line 3
3,forEach(o,s){const a=this,u=a.__v_raw,f=rt(u),d=t?ty:e?ny:dn;return!e&&fn(f,"iterate",gs),u.forEach((p,h)=>o.call(s,d(p),d(h),a))}};return tn(n,e?{add:Mf("add"),set:Mf("set"),delete:Mf("delete"),clear:Mf("clear")}:{add(o){!t&&!fr(o)&&!Ls(o)&&(o=rt(o));const s=rt(this);return Lf(s).has.call(s,o)||(s.add(o),Eo(s,"add",o,o)),this},set(o,s){!t&&!fr(s)&&!Ls(s)&&(s=rt(s));const a=rt(this),{has:u,get:f}=Lf(a);let d=u.call(a,o);d||(o=rt(o),d=u.call(a,o));const p=f.call(a,o);return a.set(o,s),d?In(s,p)&&Eo(a,"set",o,s):Eo(a,"add",o,s),this},delete(o){const s=rt(this),{has:a,get:u}=Lf(s);let f=a.call(s,o);f||(o=rt(o),f=a.call(s,o)),u&&u.call(s,o);const d=s.delete(o);return f&&Eo(s,"delete",o,void 0),d},clear(){const o=rt(this),s=o.size!==0,a=o.clear();return s&&Eo(o,"clear",void 0,void 0),a}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=Q8(o,e,t)}),n}function dh(e,t){const n=J8(e,t);return(r,o,s)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(vt(n,o)&&o in r?n:r,o,s)}const X8={get:dh(!1,!1)},ek={get:dh(!1,!0)},tk={get:dh(!0,!1)},nk={get:dh(!0,!0)},_I=new WeakMap,bI=new WeakMap,wI=new WeakMap,EI=new WeakMap;function rk(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ok(e){return e.__v_skip||!Object.isExtensible(e)?0:rk(C8(e))}function ks(e){return Ls(e)?e:ph(e,!1,G8,X8,_I)}function SI(e){return ph(e,!1,K8,ek,bI)}function Uc(e){return ph(e,!0,Y8,tk,wI)}function ra(e){return ph(e,!0,Z8,nk,EI)}function ph(e,t,n,r,o){if(!Tt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=o.get(e);if(s)return s;const a=ok(e);if(a===0)return e;const u=new Proxy(e,a===2?r:n);return o.set(e,u),u}function Xr(e){return Ls(e)?Xr(e.__v_raw):!!(e&&e.__v_isReactive)}function Ls(e){return!!(e&&e.__v_isReadonly)}function fr(e){return!!(e&&e.__v_isShallow)}function U1(e){return e?!!e.__v_raw:!1}function rt(e){const t=e&&e.__v_raw;return t?rt(t):e}function $t(e){return!vt(e,"__v_skip")&&Object.isExtensible(e)&&nI(e,"__v_skip",!0),e}const dn=e=>Tt(e)?ks(e):e,ny=e=>Tt(e)?Uc(e):e;function Xe(e){return e?e.__v_isRef===!0:!1}function ie(e){return $I(e,!1)}function en(e){return $I(e,!0)}function $I(e,t){return Xe(e)?e:new ik(e,t)}class ik{constructor(t,n){this.dep=new ch,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:rt(t),this._value=n?t:dn(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||fr(t)||Ls(t);t=r?t:rt(t),In(t,n)&&(this._rawValue=t,this._value=r?t:dn(t),this.dep.trigger())}}function N(e){return Xe(e)?e.value:e}function qe(e){return ze(e)?e():N(e)}const sk={get:(e,t,n)=>t==="__v_raw"?e:N(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Xe(o)&&!Xe(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function TI(e){return Xr(e)?e:new Proxy(e,sk)}class ak{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new ch,{get:r,set:o}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=o}get value(){return this._value=this._get()}set value(t){this._set(t)}}function hh(e){return new ak(e)}function Hc(e){const t=je(e)?new Array(e.length):{};for(const n in e)t[n]=II(e,n);return t}class uk{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return j8(rt(this._object),this._key)}}class lk{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function xt(e,t,n){return Xe(e)?e:ze(e)?new lk(e):Tt(e)&&arguments.length>1?II(e,t,n):ie(e)}function II(e,t,n){const r=e[t];return Xe(r)?r:new uk(e,t,n)}class ck{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new ch(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Gl-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&At!==this)return lI(this,!0),!0}get value(){const t=this.dep.track();return dI(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function fk(e,t,n=!1){let r,o;return ze(e)?r=e:(r=e.get,o=e.set),new ck(r,o,n)}const Pf={},rp=new WeakMap;let es;function dk(e,t=!1,n=es){if(n){let r=rp.get(n);r||rp.set(n,r=[]),r.push(e)}}function pk(e,t,n=ct){const{immediate:r,deep:o,once:s,scheduler:a,augmentJob:u,call:f}=n,d=C=>o?C:fr(C)||o===!1||o===0?So(C,1):So(C);let p,h,y,m,v=!1,b=!1;if(Xe(e)?(h=()=>e.value,v=fr(e)):Xr(e)?(h=()=>d(e),v=!0):je(e)?(b=!0,v=e.some(C=>Xr(C)||fr(C)),h=()=>e.map(C=>{if(Xe(C))return C.value;if(Xr(C))return d(C);if(ze(C))return f?f(C,2):C()})):ze(e)?t?h=f?()=>f(e,2):e:h=()=>{if(y){Oi();try{y()}finally{ki()}}const C=es;es=p;try{return f?f(e,3,[m]):e(m)}finally{es=C}}:h=Jr,t&&o){const C=h,A=o===!0?1/0:o;h=()=>So(C(),A)}const S=Gs(),w=()=>{p.stop(),S&&L1(S.effects,p)};if(s&&t){const C=t;t=(...A)=>{C(...A),w()}}let T=b?new Array(e.length).fill(Pf):Pf;const I=C=>{if(!(!(p.flags&1)||!p.dirty&&!C))if(t){const A=p.run();if(o||v||(b?A.some(($,k)=>In($,T[k])):In(A,T))){y&&y();const $=es;es=p;try{const k=[A,T===Pf?void 0:b&&T[0]===Pf?[]:T,m];f?f(t,3,k):t(...k),T=A}finally{es=$}}}else p.run()};return u&&u(I),p=new aI(h),p.scheduler=a?()=>a(I,!1):I,m=C=>dk(C,!1,p),y=p.onStop=()=>{const C=rp.get(p);if(C){if(f)f(C,4);else for(const A of C)A();rp.delete(p)}},t?r?I(!0):T=p.run():a?a(I.bind(null,!0),!0):p.run(),w.pause=p.pause.bind(p),w.resume=p.resume.bind(p),w.stop=w,w}function So(e,t=1/0,n){if(t<=0||!Tt(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,Xe(e))So(e.value,t,n);else if(je(e))for(let r=0;r<e.length;r++)So(e[r],t,n);else if(Pc(e)||Ba(e))e.forEach(r=>{So(r,t,n)});else if(tI(e)){for(const r in e)So(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&So(e[r],t,n)}return e}function Fc(e,t,n,r){try{return r?e(...r):e()}catch(o){jc(o,t,n)}}function xr(e,t,n,r){if(ze(e)){const o=Fc(e,t,n,r);return o&&XT(o)&&o.catch(s=>{jc(s,t,n)}),o}if(je(e)){const o=[];for(let s=0;s<e.length;s++)o.push(xr(e[s],t,n,r));return o}}function jc(e,t,n,r=!0){const o=t?t.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||ct;if(t){let u=t.parent;const f=t.proxy,d=`https://vuejs.org/error-reference/#runtime-${n}`;for(;u;){const p=u.ec;if(p){for(let h=0;h<p.length;h++)if(p[h](e,f,d)===!1)return}u=u.parent}if(s){Oi(),Fc(s,null,10,[e,f,d]),ki();return}}hk(e,n,o,r,a)}function hk(e,t,n,r=!0,o=!1){if(o)throw e;console.error(e)}const An=[];let Pr=-1;const Da=[];let si=null,Ea=0;const AI=Promise.resolve();let op=null;function gt(e){const t=op||AI;return e?t.then(this?e.bind(this):e):t}function gk(e){let t=Pr+1,n=An.length;for(;t<n;){const r=t+n>>>1,o=An[r],s=Kl(o);s<e||s===e&&o.flags&2?t=r+1:n=r}return t}function H1(e){if(!(e.flags&1)){const t=Kl(e),n=An[An.length-1];!n||!(e.flags&2)&&t>=Kl(n)?An.push(e):An.splice(gk(t),0,e),e.flags|=1,xI()}}function xI(){op||(op=AI.then(CI))}function mk(e){je(e)?Da.push(...e):si&&e.id===-1?si.splice(Ea+1,0,e):e.flags&1||(Da.push(e),e.flags|=1),xI()}function kb(e,t,n=Pr+1){for(;n<An.length;n++){const r=An[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;An.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function ip(e){if(Da.length){const t=[...new Set(Da)].sort((n,r)=>Kl(n)-Kl(r));if(Da.length=0,si){si.push(...t);return}for(si=t,Ea=0;Ea<si.length;Ea++){const n=si[Ea];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}si=null,Ea=0}}const Kl=e=>e.id==null?e.flags&2?-1:1/0:e.id;function CI(e){try{for(Pr=0;Pr<An.length;Pr++){const t=An[Pr];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Fc(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Pr<An.length;Pr++){const t=An[Pr];t&&(t.flags&=-2)}Pr=-1,An.length=0,ip(),op=null,(An.length||Da.length)&&CI()}}let rn=null,RI=null;function sp(e){const t=rn;return rn=e,RI=e&&e.type.__scopeId||null,t}function be(e,t=rn,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&zb(-1);const s=sp(t);let a;try{a=e(...o)}finally{sp(s),r._d&&zb(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Su(e,t){if(rn===null)return e;const n=_h(rn),r=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[s,a,u,f=ct]=t[o];s&&(ze(s)&&(s={mounted:s,updated:s}),s.deep&&So(a),r.push({dir:s,instance:n,value:a,oldValue:void 0,arg:u,modifiers:f}))}return e}function Br(e,t,n,r){const o=e.dirs,s=t&&t.dirs;for(let a=0;a<o.length;a++){const u=o[a];s&&(u.oldValue=s[a].value);let f=u.dir[r];f&&(Oi(),xr(f,n,8,[e.el,u,e,t]),ki())}}const OI=Symbol("_vte"),kI=e=>e.__isTeleport,Il=e=>e&&(e.disabled||e.disabled===""),yk=e=>e&&(e.defer||e.defer===""),Lb=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Mb=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,ry=(e,t)=>{const n=e&&e.to;return Ot(n)?t?t(n):null:n},vk={name:"Teleport",__isTeleport:!0,process(e,t,n,r,o,s,a,u,f,d){const{mc:p,pc:h,pbc:y,o:{insert:m,querySelector:v,createText:b,createComment:S}}=d,w=Il(t.props);let{shapeFlag:T,children:I,dynamicChildren:C}=t;if(e==null){const A=t.el=b(""),$=t.anchor=b("");m(A,n,r),m($,n,r);const k=(O,M)=>{T&16&&(o&&o.isCE&&(o.ce._teleportTarget=O),p(I,O,M,o,s,a,u,f))},x=()=>{const O=t.target=ry(t.props,v),M=LI(O,t,b,m);O&&(a!=="svg"&&Lb(O)?a="svg":a!=="mathml"&&Mb(O)&&(a="mathml"),w||(k(O,M),bd(t,!1)))};w&&(k(n,$),bd(t,!0)),yk(t.props)?Mn(x,s):x()}else{t.el=e.el,t.targetStart=e.targetStart;const A=t.anchor=e.anchor,$=t.target=e.target,k=t.targetAnchor=e.targetAnchor,x=Il(e.props),O=x?n:$,M=x?A:k;if(a==="svg"||Lb($)?a="svg":(a==="mathml"||Mb($))&&(a="mathml"),C?(y(e.dynamicChildren,C,O,o,s,a,u),K1(e,t,!0)):f||h(e,t,O,M,o,s,a,u,!1),w)x?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Bf(t,n,A,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const j=t.target=ry(t.props,v);j&&Bf(t,j,null,d,0)}else x&&Bf(t,$,k,d,1);bd(t,w)}},remove(e,t,n,{um:r,o:{remove:o}},s){const{shapeFlag:a,children:u,anchor:f,targetStart:d,targetAnchor:p,target:h,props:y}=e;
3if(h&&(o(d),o(p)),s&&o(f),a&16){const m=s||!Il(y);for(let v=0;v<u.length;v++){const b=u[v];r(b,t,n,m,!!b.dynamicChildren)}}},move:Bf,hydrate:_k};function Bf(e,t,n,{o:{insert:r},m:o},s=2){s===0&&r(e.targetAnchor,t,n);const{el:a,anchor:u,shapeFlag:f,children:d,props:p}=e,h=s===2;if(h&&r(a,t,n),(!h||Il(p))&&f&16)for(let y=0;y<d.length;y++)o(d[y],t,n,2);h&&r(u,t,n)}function _k(e,t,n,r,o,s,{o:{nextSibling:a,parentNode:u,querySelector:f,insert:d,createText:p}},h){const y=t.target=ry(t.props,f);if(y){const m=Il(t.props),v=y._lpa||y.firstChild;if(t.shapeFlag&16)if(m)t.anchor=h(a(e),t,u(e),n,r,o,s),t.targetStart=v,t.targetAnchor=v&&a(v);else{t.anchor=a(e);let b=v;for(;b;){if(b&&b.nodeType===8){if(b.data==="teleport start anchor")t.targetStart=b;else if(b.data==="teleport anchor"){t.targetAnchor=b,y._lpa=t.targetAnchor&&a(t.targetAnchor);break}}b=a(b)}t.targetAnchor||LI(y,t,p,d),h(v&&a(v),t,y,n,r,o,s)}bd(t,m)}return t.anchor&&a(t.anchor)}const F1=vk;function bd(e,t){const n=e.ctx;if(n&&n.ut){let r,o;for(t?(r=e.el,o=e.anchor):(r=e.targetStart,o=e.targetAnchor);r&&r!==o;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function LI(e,t,n,r){const o=t.targetStart=n(""),s=t.targetAnchor=n("");return o[OI]=s,e&&(r(o,e),r(s,e)),s}const ai=Symbol("_leaveCb"),Nf=Symbol("_enterCb");function MI(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return We(()=>{e.isMounted=!0}),bt(()=>{e.isUnmounting=!0}),e}const Zn=[Function,Array],PI={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Zn,onEnter:Zn,onAfterEnter:Zn,onEnterCancelled:Zn,onBeforeLeave:Zn,onLeave:Zn,onAfterLeave:Zn,onLeaveCancelled:Zn,onBeforeAppear:Zn,onAppear:Zn,onAfterAppear:Zn,onAppearCancelled:Zn},BI=e=>{const t=e.subTree;return t.component?BI(t.component):t},bk={name:"BaseTransition",props:PI,setup(e,{slots:t}){const n=Dn(),r=MI();return()=>{const o=t.default&&j1(t.default(),!0);if(!o||!o.length)return;const s=NI(o),a=rt(e),{mode:u}=a;if(r.isLeaving)return _g(s);const f=Pb(s);if(!f)return _g(s);let d=Zl(f,a,r,n,y=>d=y);f.type!==gn&&Ms(f,d);const p=n.subTree,h=p&&Pb(p);if(h&&h.type!==gn&&!os(f,h)&&BI(n).type!==gn){const y=Zl(h,a,r,n);if(Ms(h,y),u==="out-in"&&f.type!==gn)return r.isLeaving=!0,y.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete y.afterLeave},_g(s);u==="in-out"&&f.type!==gn&&(y.delayLeave=(m,v,b)=>{const S=DI(r,h);
3S[String(h.key)]=h,m[ai]=()=>{v(),m[ai]=void 0,delete d.delayedLeave},d.delayedLeave=b})}return s}}};function NI(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==gn){t=n;break}}return t}const wk=bk;function DI(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Zl(e,t,n,r,o){const{appear:s,mode:a,persisted:u=!1,onBeforeEnter:f,onEnter:d,onAfterEnter:p,onEnterCancelled:h,onBeforeLeave:y,onLeave:m,onAfterLeave:v,onLeaveCancelled:b,onBeforeAppear:S,onAppear:w,onAfterAppear:T,onAppearCancelled:I}=t,C=String(e.key),A=DI(n,e),$=(O,M)=>{O&&xr(O,r,9,M)},k=(O,M)=>{const j=M[1];$(O,M),je(O)?O.every(V=>V.length<=1)&&j():O.length<=1&&j()},x={mode:a,persisted:u,beforeEnter(O){let M=f;if(!n.isMounted)if(s)M=S||f;else return;O[ai]&&O[ai](!0);const j=A[C];j&&os(e,j)&&j.el[ai]&&j.el[ai](),$(M,[O])},enter(O){let M=d,j=p,V=h;if(!n.isMounted)if(s)M=w||d,j=T||p,V=I||h;else return;let W=!1;const Y=O[Nf]=ne=>{W||(W=!0,ne?$(V,[O]):$(j,[O]),x.delayedLeave&&x.delayedLeave(),O[Nf]=void 0)};M?k(M,[O,Y]):Y()},leave(O,M){const j=String(e.key);if(O[Nf]&&O[Nf](!0),n.isUnmounting)return M();$(y,[O]);let V=!1;const W=O[ai]=Y=>{V||(V=!0,M(),Y?$(b,[O]):$(v,[O]),O[ai]=void 0,A[j]===e&&delete A[j])};A[j]=e,m?k(m,[O,W]):W()},clone(O){const M=Zl(O,t,n,r,o);return o&&o(M),M}};return x}function _g(e){if(Vc(e))return e=bi(e),e.children=null,e}function Pb(e){if(!Vc(e))return kI(e.type)&&e.children?NI(e.children):e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&ze(n.default))return n.default()}}function Ms(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Ms(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function j1(e,t=!1,n){let r=[],o=0;for(let s=0;s<e.length;s++){let a=e[s];const u=n==null?a.key:String(n)+String(a.key!=null?a.key:s);a.type===He?(a.patchFlag&128&&o++,r=r.concat(j1(a.children,t,u))):(t||a.type!==gn)&&r.push(u!=null?bi(a,{key:u}):a)}if(o>1)for(let s=0;s<r.length;s++)r[s].patchFlag=-2;return r}function xe(e,t){return ze(e)?tn({name:e.name},t,{setup:e}):e}function V1(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Bb(e){const t=Dn(),n=en(null);if(t){const o=t.refs===ct?t.refs={}:t.refs;Object.defineProperty(o,e,{enumerable:!0,get:()=>n.value,set:s=>n.value=s})}return n}function ap(e,t,n,r,o=!1){if(je(e)){e.forEach((v,b)=>ap(v,t&&(je(t)?t[b]:t),n,r,o));return}if(ms(r)&&!o)return;const s=r.shapeFlag&4?_h(r.component):r.el,a=o?null:s,{i:u,r:f}=e,d=t&&t.r,p=u.refs===ct?u.refs={}:u.refs,h=u.setupState,y=rt(h),m=h===ct?()=>!1:v=>vt(y,v);if(d!=null&&d!==f&&(Ot(d)?(p[d]=null,m(d)&&(h[d]=null)):Xe(d)&&(d.value=null)),ze(f))Fc(f,u,12,[a,p]);else{const v=Ot(f),b=Xe(f);if(v||b){const S=()=>{if(e.f){const w=v?m(f)?h[f]:p[f]:f.value;o?je(w)&&L1(w,s):je(w)?w.includes(s)||w.push(s):v?(p[f]=[s],m(f)&&(h[f]=p[f])):(f.value=[s],e.k&&(p[e.k]=f.value))}else v?(p[f]=a,m(f)&&(h[f]=a)):b&&(f.value=a,e.k&&(p[e.k]=a))};a?(S.id=-1,Mn(S,n)):S()}}}let Nb=!1;const oa=()=>{Nb||(console.error("Hydration completed but contains mismatches."),Nb=!0)},Ek=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",Sk=e=>e.namespaceURI.includes("MathML"),Df=e=>{if(e.nodeType===1){if(Ek(e))return"svg";if(Sk(e))return"mathml"}},Ca=e=>e.nodeType===8;function $k(e){const{mt:t,p:n,o:{patchProp:r,createText:o,nextSibling:s,parentNode:a,remove:u,insert:f,createComment:d}}=e,p=(I,C)=>{if(!C.hasChildNodes()){n(null,I,C),ip(),C._vnode=I;return}h(C.firstChild,I,null,null,null),ip(),C._vnode=I},h=(I,C,A,$,k,x=!1)=>{x=x||!!C.dynamicChildren;const O=Ca(I)&&I.data==="[",M=()=>b(I,C,A,$,k,O),{type:j,ref:V,shapeFlag:W,patchFlag:Y}=C;let ne=I.nodeType;C.el=I,Y===-2&&(x=!1,C.dynamicChildren=null);let Z=null;switch(j){case vs:ne!==3?C.children===""?(f(C.el=o(""),a(I),I),Z=I):Z=M():(I.data!==C.children&&(oa(),I.data=C.children),Z=s(I));break;case gn:T(I)?(Z=s(I),w(C.el=I.content.firstChild,I,A)):ne!==8||O?Z=M():Z=s(I);break;case Ua:if(O&&(I=s(I),ne=I.nodeType),ne===1||ne===3){Z=I;const ae=!C.children.length;for(let ce=0;ce<C.staticCount;
vendor: 8,431 bytes, lines 3-4
3ce++)ae&&(C.children+=Z.nodeType===1?Z.outerHTML:Z.data),ce===C.staticCount-1&&(C.anchor=Z),Z=s(Z);return O?s(Z):Z}else M();break;case He:O?Z=v(I,C,A,$,k,x):Z=M();break;default:if(W&1)(ne!==1||C.type.toLowerCase()!==I.tagName.toLowerCase())&&!T(I)?Z=M():Z=y(I,C,A,$,k,x);else if(W&6){C.slotScopeIds=k;const ae=a(I);if(O?Z=S(I):Ca(I)&&I.data==="teleport start"?Z=S(I,I.data,"teleport end"):Z=s(I),t(C,ae,null,A,$,Df(ae),x),ms(C)){let ce;O?(ce=ye(He),ce.anchor=Z?Z.previousSibling:ae.lastChild):ce=I.nodeType===3?mt(""):ye("div"),ce.el=I,C.component.subTree=ce}}else W&64?ne!==8?Z=M():Z=C.type.hydrate(I,C,A,$,k,x,e,m):W&128&&(Z=C.type.hydrate(I,C,A,$,Df(a(I)),k,x,e,h))}return V!=null&&ap(V,null,$,C),Z},y=(I,C,A,$,k,x)=>{x=x||!!C.dynamicChildren;const{type:O,props:M,patchFlag:j,shapeFlag:V,dirs:W,transition:Y}=C,ne=O==="input"||O==="option";if(ne||j!==-1){W&&Br(C,null,A,"created");let Z=!1;if(T(I)){Z=o3(null,Y)&&A&&A.vnode.props&&A.vnode.props.appear;const ce=I.content.firstChild;Z&&Y.beforeEnter(ce),w(ce,I,A),C.el=I=ce}if(V&16&&!(M&&(M.innerHTML||M.textContent))){let ce=m(I.firstChild,C,I,A,$,k,x);for(;ce;){Uf(I,1)||oa();const q=ce;ce=ce.nextSibling,u(q)}}else if(V&8){let ce=C.children;ce[0]===` 4`&&(I.tagName==="PRE"||I.tagName==="TEXTAREA")&&(ce=ce.slice(1)),I.textContent!==ce&&(Uf(I,0)||oa(),I.textContent=C.children)}if(M){if(ne||!x||j&48){const ce=I.tagName.includes("-");for(const q in M)(ne&&(q.endsWith("value")||q==="indeterminate")||Mc(q)&&!Na(q)||q[0]==="."||ce)&&r(I,q,null,M[q],void 0,A)}else if(M.onClick)r(I,"onClick",null,M.onClick,void 0,A);else if(j&4&&Xr(M.style))for(const ce in M.style)M.style[ce]}let ae;(ae=M&&M.onVnodeBeforeMount)&&tr(ae,A,C),W&&Br(C,null,A,"beforeMount"),((ae=M&&M.onVnodeMounted)||W||Z)&&f3(()=>{ae&&tr(ae,A,C),Z&&Y.enter(I),W&&Br(C,null,A,"mounted")},$)}return I.nextSibling},m=(I,C,A,$,k,x,O)=>{O=O||!!C.dynamicChildren;const M=C.children,j=M.length;for(let V=0;V<j;V++){const W=O?M[V]:M[V]=lr(M[V]),Y=W.type===vs;I?(Y&&!O&&V+1<j&&lr(M[V+1]).type===vs&&(f(o(I.data.slice(W.children.length)),A,s(I)),I.data=W.children),I=h(I,W,$,k,x,O)):Y&&!W.children?f(W.el=o(""),A):(Uf(A,1)||oa(),n(null,W,A,null,$,k,Df(A),x))}return I},v=(I,C,A,$,k,x)=>{const{slotScopeIds:O}=C;O&&(k=k?k.concat(O):O);const M=a(I),j=m(s(I),C,M,A,$,k,x);return j&&Ca(j)&&j.data==="]"?s(C.anchor=j):(oa(),f(C.anchor=d("]"),M,j),j)},b=(I,C,A,$,k,x)=>{if(Uf(I.parentElement,1)||oa(),C.el=null,x){const j=S(I);for(;;){const V=s(I);if(V&&V!==j)u(V);else break}}const O=s(I),M=a(I);return u(I),n(null,C,M,O,A,$,Df(M),k),O},S=(I,C="[",A="]")=>{let $=0;for(;I;)if(I=s(I),I&&Ca(I)&&(I.data===C&&$++,I.data===A)){if($===0)return s(I);$--}return I},w=(I,C,A)=>{const $=C.parentNode;$&&$.replaceChild(I,C);let k=A;for(;k;)k.vnode.el===C&&(k.vnode.el=k.subTree.el=I),k=k.parent},T=I=>I.nodeType===1&&I.tagName==="TEMPLATE";return[p,h]}const Db="data-allow-mismatch",Tk={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function Uf(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(Db);)e=e.parentElement;const n=e&&e.getAttribute(Db);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return t===0&&r.includes("children")?!0:n.split(",").includes(Tk[t])}}Nc().requestIdleCallback;Nc().cancelIdleCallback;function Ik(e,t){if(Ca(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(Ca(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}const ms=e=>!!e.type.__asyncLoader;function Jt(e){ze(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:o=200,hydrate:s,timeout:a,suspensible:u=!0,onError:f}=e;let d=null,p,h=0;const y=()=>(h++,d=null,m()),m=()=>{let v;return d||(v=d=t().catch(b=>{if(b=b instanceof Error?b:new Error(String(b)),f)return new Promise((S,w)=>{f(b,()=>S(y()),()=>w(b),h+1)});throw b}).then(b=>v!==d&&d?d:(b&&(b.__esModule||b[Symbol.toStringTag]==="Module")&&(b=b.default),p=b,b)))};return xe({name:"AsyncComponentWrapper",__asyncLoader:m,__asyncHydrate(v,b,S){const w=s?()=>{const T=s(S,I=>Ik(v,I));T&&(b.bum||(b.bum=[])).push(T)}:S;p?w():m().then(()=>!b.isUnmounted&&w())},get __asyncResolved(){return p},setup(){const v=nn;if(V1(v),p)return()=>bg(p,v);const b=I=>{d=null,jc(I,v,13,!r)};if(u&&v.suspense||Ja)return m().then(I=>()=>bg(I,v)).catch(I=>(b(I),()=>r?ye(r,{error:I}):null));const S=ie(!1),w=ie(),T=ie(!!o);return o&&setTimeout(()=>{T.value=!1},o),a!=null&&setTimeout(()=>{if(!S.value&&!w.value){const I=new Error(`Async component timed out after ${a}ms.`);b(I),w.value=I}},a),m().then(()=>{S.value=!0,v.parent&&Vc(v.parent.vnode)&&v.parent.update()}).catch(I=>{b(I),w.value=I}),()=>{if(S.value&&p)return bg(p,v);if(w.value&&r)return ye(r,{error:w.value});if(n&&!T.value)return ye(n)}}})}function bg(e,t){const{ref:n,props:r,children:o,ce:s}=t.vnode,a=ye(e,r,o);return a.ref=n,a.ce=s,delete t.vnode.ce,a}const Vc=e=>e.type.__isKeepAlive;function q1(e,t){UI(e,"a",t)}function W1(e,t){UI(e,"da",t)}function UI(e,t,n=nn){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(gh(t,r,n),n){let o=n.parent;for(;o&&o.parent;)Vc(o.parent.vnode)&&Ak(r,t,n,o),o=o.parent}}function Ak(e,t,n,r){const o=gh(t,e,r,!0);Nn(()=>{L1(r[t],o)},n)}function gh(e,t,n=nn,r=!1){if(n){const o=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...a)=>{Oi();const u=zc(n),f=xr(t,n,e,a);return u(),ki(),f});return r?o.unshift(s):o.push(s),s}}const Uo=e=>(t,n=nn)=>{(!Ja||e==="sp")&&gh(e,(...r)=>t(...r),n)},HI=Uo("bm"),We=Uo("m"),xk=Uo("bu"),z1=Uo("u"),bt=Uo("bum"),Nn=Uo("um"),mh=Uo("sp"),Ck=Uo("rtg"),Rk=Uo("rtc");function Ok(e,t=nn){gh("ec",e,t)}const FI="components";function kk(e,t){return VI(FI,e,!0,t)||e}const jI=Symbol.for("v-ndc");function Xt(e){return Ot(e)?VI(FI,e,!1)||e:e||jI}function VI(e,t,n=!0,r=!1){const o=rn||nn;if(o){const s=o.type;{const u=gL(s,!1);if(u&&(u===t||u===Gn(t)||u===uh(Gn(t))))return s}const a=Ub(o[e]||s[e],t)||Ub(o.appContext[e],t);return!a&&r?s:a}}function Ub(e,t){return e&&(e[t]||e[Gn(t)]||e[uh(Gn(t))])}function dt(e,t,n,r){let o;const s=n&&n[r],a=je(e);if(a||Ot(e)){const u=a&&Xr(e);let f=!1;u&&(f=!fr(e),e=fh(e)),o=new Array(e.length);for(let d=0,p=e.length;d<p;d++)o[d]=t(f?dn(e[d]):e[d],d,void 0,s&&s[d])}else if(typeof e=="number"){o=new Array(e);for(let u=0;u<e;u++)o[u]=t(u+1,u,void 0,s&&s[u])}else if(Tt(e))if(e[Symbol.iterator])o=Array.from(e,(u,f)=>t(u,f,void 0,s&&s[f]));else{const u=Object.keys(e);o=new Array(u.length);for(let f=0,d=u.length;f<d;f++){const p=u[f];o[f]=t(e[p],p,f,s&&s[f])}}else o=[];return n&&(n[r]=o),o}function gr(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(je(r))for(let o=0;o<r.length;o++)e[r[o].name]=r[o].fn;else r&&(e[r.name]=r.key?(...o)=>{const s=r.fn(...o);return s&&(s.key=r.key),s}:r.fn)}return e}function De(e,t,n={},r,o){if(rn.ce||rn.parent&&ms(rn.parent)&&rn.parent.ce)return t!=="default"&&(n.name=t),U(),we(He,null,[ye("slot",n,r&&r())],64);let s=e[t];s&&s._c&&(s._d=!1),U();const a=s&&qI(s(n)),u=n.key||a&&a.key,f=we(He,{key:(u&&!Ar(u)?u:`_${t}`)+(!a&&r?"_fb":"")},a||(r?r():[]),a&&e._===1?64:-2);return!o&&f.scopeId&&(f.slotScopeIds=[f.scopeId+"-s"]),s&&s._c&&(s._d=!0),f}function qI(e){return e.some(t=>Ql(t)?!(t.type===gn||t.type===He&&!qI(t.children)):!0)?e:null}function Lk(e,t){const n={};for(const r in e)n[/[A-Z]/.test(r)?`on:${r}`:vd(r)]=e[r];return n}const oy=e=>e?h3(e)?_h(e):oy(e.parent):null,Al=tn(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>oy(e.parent),$root:e=>oy(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>zI(e),$forceUpdate:e=>e.f||(e.f=()=>{H1(e.update)}),$nextTick:e=>e.n||(e.n=gt.bind(e.proxy)),$watch:e=>tL.bind(e)}),wg=(e,t)=>e!==ct&&!e.__isScriptSetup&&vt(e,t),Mk={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:o,props:s,accessCache:a,type:u,appContext:f}=e;let d;if(t[0]!=="$"){const m=a[t];if(m!==void 0)switch(m){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return s[t]}else{if(wg(r,t))return a[t]=1,r[t];if(o!==ct&&vt(o,t))return a[t]=2,o[t];if((d=e.propsOptions[0])&&vt(d,t))return a[t]=3,s[t];if(n!==ct&&vt(n,t))return a[t]=4,n[t];iy&&(a[t]=0)}}const p=Al[t];let h,y;if(p)return t==="$attrs"&&fn(e.attrs,"get",""),p(e);if((h=u.__cssModules)&&(h=h[t]))return h;if(n!==ct&&vt(n,t))return a[t]=4,n[t];if(y=f.config.globalProperties,vt(y,t))return y[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:s}=e;
vendor: 4,747 bytes, line 4
4return wg(o,t)?(o[t]=n,!0):r!==ct&&vt(r,t)?(r[t]=n,!0):vt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:s}},a){let u;return!!n[a]||e!==ct&&vt(e,a)||wg(t,a)||(u=s[0])&&vt(u,a)||vt(r,a)||vt(Al,a)||vt(o.config.globalProperties,a)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:vt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function G1(){return Pk().slots}function Pk(){const e=Dn();return e.setupContext||(e.setupContext=m3(e))}function up(e){return je(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Nt(e,t){return!e||!t?e||t:je(e)&&je(t)?e.concat(t):tn({},up(e),up(t))}let iy=!0;function Bk(e){const t=zI(e),n=e.proxy,r=e.ctx;iy=!1,t.beforeCreate&&Hb(t.beforeCreate,e,"bc");const{data:o,computed:s,methods:a,watch:u,provide:f,inject:d,created:p,beforeMount:h,mounted:y,beforeUpdate:m,updated:v,activated:b,deactivated:S,beforeDestroy:w,beforeUnmount:T,destroyed:I,unmounted:C,render:A,renderTracked:$,renderTriggered:k,errorCaptured:x,serverPrefetch:O,expose:M,inheritAttrs:j,components:V,directives:W,filters:Y}=t;if(d&&Nk(d,r,null),a)for(const ae in a){const ce=a[ae];ze(ce)&&(r[ae]=ce.bind(n))}if(o){const ae=o.call(n,n);Tt(ae)&&(e.data=ks(ae))}if(iy=!0,s)for(const ae in s){const ce=s[ae],q=ze(ce)?ce.bind(n,n):ze(ce.get)?ce.get.bind(n,n):Jr,ue=!ze(ce)&&ze(ce.set)?ce.set.bind(n):Jr,G=J({get:q,set:ue});Object.defineProperty(r,ae,{enumerable:!0,configurable:!0,get:()=>G.value,set:re=>G.value=re})}if(u)for(const ae in u)WI(u[ae],r,n,ae);if(f){const ae=ze(f)?f.call(n):f;Reflect.ownKeys(ae).forEach(ce=>{di(ce,ae[ce])})}p&&Hb(p,e,"c");function Z(ae,ce){je(ce)?ce.forEach(q=>ae(q.bind(n))):ce&&ae(ce.bind(n))}if(Z(HI,h),Z(We,y),Z(xk,m),Z(z1,v),Z(q1,b),Z(W1,S),Z(Ok,x),Z(Rk,$),Z(Ck,k),Z(bt,T),Z(Nn,C),Z(mh,O),je(M))if(M.length){const ae=e.exposed||(e.exposed={});M.forEach(ce=>{Object.defineProperty(ae,ce,{get:()=>n[ce],set:q=>n[ce]=q})})}else e.exposed||(e.exposed={});A&&e.render===Jr&&(e.render=A),j!=null&&(e.inheritAttrs=j),V&&(e.components=V),W&&(e.directives=W),O&&V1(e)}function Nk(e,t,n=Jr){je(e)&&(e=sy(e));for(const r in e){const o=e[r];let s;Tt(o)?"default"in o?s=Gt(o.from||r,o.default,!0):s=Gt(o.from||r):s=Gt(o),Xe(s)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:a=>s.value=a}):t[r]=s}}function Hb(e,t,n){xr(je(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function WI(e,t,n,r){let o=r.includes(".")?a3(n,r):()=>n[r];if(Ot(e)){const s=t[e];ze(s)&&ke(o,s)}else if(ze(e))ke(o,e.bind(n));else if(Tt(e))if(je(e))e.forEach(s=>WI(s,t,n,r));else{const s=ze(e.handler)?e.handler.bind(n):t[e.handler];ze(s)&&ke(o,s,e)}}function zI(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:s,config:{optionMergeStrategies:a}}=e.appContext,u=s.get(t);let f;return u?f=u:!o.length&&!n&&!r?f=t:(f={},o.length&&o.forEach(d=>lp(f,d,a,!0)),lp(f,t,a)),Tt(t)&&s.set(t,f),f}function lp(e,t,n,r=!1){const{mixins:o,extends:s}=t;s&&lp(e,s,n,!0),o&&o.forEach(a=>lp(e,a,n,!0));for(const a in t)if(!(r&&a==="expose")){const u=Dk[a]||n&&n[a];e[a]=u?u(e[a],t[a]):t[a]}return e}const Dk={data:Fb,props:jb,emits:jb,methods:pl,computed:pl,beforeCreate:_n,created:_n,beforeMount:_n,mounted:_n,beforeUpdate:_n,updated:_n,beforeDestroy:_n,beforeUnmount:_n,destroyed:_n,unmounted:_n,activated:_n,deactivated:_n,errorCaptured:_n,serverPrefetch:_n,components:pl,directives:pl,watch:Hk,provide:Fb,inject:Uk};function Fb(e,t){return t?e?function(){return tn(ze(e)?e.call(this,this):e,ze(t)?t.call(this,this):t)}:t:e}function Uk(e,t){return pl(sy(e),sy(t))}function sy(e){if(je(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function _n(e,t){return e?[...new Set([].concat(e,t))]:t}function pl(e,t){return e?tn(Object.create(null),e,t):t}function jb(e,t){return e?je(e)&&je(t)?[...new Set([...e,...t])]:tn(Object.create(null),up(e),up(t??{})):t}function Hk(e,t){if(!e)return t;if(!t)return e;const n=tn(Object.create(null),e);for(const r in t)n[r]=_n(e[r],t[r]);return n}function GI(){return{app:null,config:{isNativeTag:A8,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Fk=0;function jk(e,t){return function(r,o=null){ze(r)||(r=tn({},r)),o!=null&&!Tt(o)&&(o=null);const s=GI(),a=new WeakSet,u=[];let f=!1;const d=s.app={_uid:Fk++,_component:r,_props:o,_container:null,_context:s,_instance:null,version:X1,get config(){return s.config},set config(p){},use(p,...h){return a.has(p)||(p&&ze(p.install)?(a.add(p),p.install(d,...h)):ze(p)&&(a.add(p),p(d,...h))),d}
vendor: 4,451 bytes, line 4
4,mixin(p){return s.mixins.includes(p)||s.mixins.push(p),d},component(p,h){return h?(s.components[p]=h,d):s.components[p]},directive(p,h){return h?(s.directives[p]=h,d):s.directives[p]},mount(p,h,y){if(!f){const m=d._ceVNode||ye(r,o);return m.appContext=s,y===!0?y="svg":y===!1&&(y=void 0),h&&t?t(m,p):e(m,p,y),f=!0,d._container=p,p.__vue_app__=d,_h(m.component)}},onUnmount(p){u.push(p)},unmount(){f&&(xr(u,d._instance,16),e(null,d._container),delete d._container.__vue_app__)},provide(p,h){return s.provides[p]=h,d},runWithContext(p){const h=ys;ys=d;try{return p()}finally{ys=h}}};return d}}let ys=null;function di(e,t){if(nn){let n=nn.provides;const r=nn.parent&&nn.parent.provides;r===n&&(n=nn.provides=Object.create(r)),n[e]=t}}function Gt(e,t,n=!1){const r=nn||rn;if(r||ys){const o=ys?ys._context.provides:r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return n&&ze(t)?t.call(r&&r.proxy):t}}function qc(){return!!(nn||rn||ys)}const YI={},KI=()=>Object.create(YI),ZI=e=>Object.getPrototypeOf(e)===YI;function Vk(e,t,n,r=!1){const o={},s=KI();e.propsDefaults=Object.create(null),QI(e,t,o,s);for(const a in e.propsOptions[0])a in o||(o[a]=void 0);n?e.props=r?o:SI(o):e.type.props?e.props=o:e.props=s,e.attrs=s}function qk(e,t,n,r){const{props:o,attrs:s,vnode:{patchFlag:a}}=e,u=rt(o),[f]=e.propsOptions;let d=!1;if((r||a>0)&&!(a&16)){if(a&8){const p=e.vnode.dynamicProps;for(let h=0;h<p.length;h++){let y=p[h];if(vh(e.emitsOptions,y))continue;const m=t[y];if(f)if(vt(s,y))m!==s[y]&&(s[y]=m,d=!0);else{const v=Gn(y);o[v]=ay(f,u,v,m,e,!1)}else m!==s[y]&&(s[y]=m,d=!0)}}}else{QI(e,t,o,s)&&(d=!0);let p;for(const h in u)(!t||!vt(t,h)&&((p=No(h))===h||!vt(t,p)))&&(f?n&&(n[h]!==void 0||n[p]!==void 0)&&(o[h]=ay(f,u,h,void 0,e,!0)):delete o[h]);if(s!==u)for(const h in s)(!t||!vt(t,h))&&(delete s[h],d=!0)}d&&Eo(e.attrs,"set","")}function QI(e,t,n,r){const[o,s]=e.propsOptions;let a=!1,u;if(t)for(let f in t){if(Na(f))continue;const d=t[f];let p;o&&vt(o,p=Gn(f))?!s||!s.includes(p)?n[p]=d:(u||(u={}))[p]=d:vh(e.emitsOptions,f)||(!(f in r)||d!==r[f])&&(r[f]=d,a=!0)}if(s){const f=rt(n),d=u||ct;for(let p=0;p<s.length;p++){const h=s[p];n[h]=ay(o,f,h,d[h],e,!vt(d,h))}}return a}function ay(e,t,n,r,o,s){const a=e[n];if(a!=null){const u=vt(a,"default");if(u&&r===void 0){const f=a.default;if(a.type!==Function&&!a.skipFactory&&ze(f)){const{propsDefaults:d}=o;if(n in d)r=d[n];else{const p=zc(o);r=d[n]=f.call(null,t),p()}}else r=f;o.ce&&o.ce._setProp(n,r)}a[0]&&(s&&!u?r=!1:a[1]&&(r===""||r===No(n))&&(r=!0))}return r}const Wk=new WeakMap;function JI(e,t,n=!1){const r=n?Wk:t.propsCache,o=r.get(e);if(o)return o;const s=e.props,a={},u=[];let f=!1;if(!ze(e)){const p=h=>{f=!0;const[y,m]=JI(h,t,!0);tn(a,y),m&&u.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(p),e.extends&&p(e.extends),e.mixins&&e.mixins.forEach(p)}if(!s&&!f)return Tt(e)&&r.set(e,Pa),Pa;if(je(s))for(let p=0;p<s.length;p++){const h=Gn(s[p]);Vb(h)&&(a[h]=ct)}else if(s)for(const p in s){const h=Gn(p);if(Vb(h)){const y=s[p],m=a[h]=je(y)||ze(y)?{type:y}:tn({},y),v=m.type;let b=!1,S=!0;if(je(v))for(let w=0;w<v.length;++w){const T=v[w],I=ze(T)&&T.name;if(I==="Boolean"){b=!0;break}else I==="String"&&(S=!1)}else b=ze(v)&&v.name==="Boolean";m[0]=b,m[1]=S,(b||vt(m,"default"))&&u.push(h)}}const d=[a,u];return Tt(e)&&r.set(e,d),d}function Vb(e){return e[0]!=="$"&&!Na(e)}const XI=e=>e[0]==="_"||e==="$stable",Y1=e=>je(e)?e.map(lr):[lr(e)],zk=(e,t,n)=>{if(t._n)return t;const r=be((...o)=>Y1(t(...o)),n);return r._c=!1,r},e3=(e,t,n)=>{const r=e._ctx;for(const o in e){if(XI(o))continue;const s=e[o];if(ze(s))t[o]=zk(o,s,r);else if(s!=null){const a=Y1(s);t[o]=()=>a}}},t3=(e,t)=>{const n=Y1(t);e.slots.default=()=>n},n3=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},Gk=(e,t,n)=>{const r=e.slots=KI();if(e.vnode.shapeFlag&32){const o=t._;o?(n3(r,t,n),n&&nI(r,"_",o,!0)):e3(t,r)}else t&&t3(e,t)},Yk=(e,t,n)=>{const{vnode:r,slots:o}=e;let s=!0,a=ct;if(r.shapeFlag&32){const u=t._;u?n&&u===1?s=!1:n3(o,t,n):(s=!t.$stable,e3(t,o)),a=t}else t&&(t3(e,t),a={default:1});if(s)for(const u in o)!XI(u)&&a[u]==null&&delete o[u]},Mn=f3;function Kk(e){return r3(e)}function Zk(e){return r3(e,$k)}function r3(e,t){const n=Nc();n.__VUE__=!0;const{insert:r,remove:o,patchProp:s,createElement:a,createText:u,createComment:f,setText:d,setElementText:p,parentNode:h,nextSibling:y,setScopeId:m=Jr,insertStaticContent:v}
vendor: 4,216 bytes, line 4
4=e,b=(L,D,se,ve=null,de=null,_e=null,Se=void 0,pe=null,ge=!!D.dynamicChildren)=>{if(L===D)return;L&&!os(L,D)&&(ve=le(L),re(L,de,_e,!0),L=null),D.patchFlag===-2&&(ge=!1,D.dynamicChildren=null);const{type:fe,ref:Ce,shapeFlag:H}=D;switch(fe){case vs:S(L,D,se,ve);break;case gn:w(L,D,se,ve);break;case Ua:L==null&&T(D,se,ve,Se);break;case He:V(L,D,se,ve,de,_e,Se,pe,ge);break;default:H&1?A(L,D,se,ve,de,_e,Se,pe,ge):H&6?W(L,D,se,ve,de,_e,Se,pe,ge):(H&64||H&128)&&fe.process(L,D,se,ve,de,_e,Se,pe,ge,F)}Ce!=null&&de&&ap(Ce,L&&L.ref,_e,D||L,!D)},S=(L,D,se,ve)=>{if(L==null)r(D.el=u(D.children),se,ve);else{const de=D.el=L.el;D.children!==L.children&&d(de,D.children)}},w=(L,D,se,ve)=>{L==null?r(D.el=f(D.children||""),se,ve):D.el=L.el},T=(L,D,se,ve)=>{[L.el,L.anchor]=v(L.children,D,se,ve,L.el,L.anchor)},I=({el:L,anchor:D},se,ve)=>{let de;for(;L&&L!==D;)de=y(L),r(L,se,ve),L=de;r(D,se,ve)},C=({el:L,anchor:D})=>{let se;for(;L&&L!==D;)se=y(L),o(L),L=se;o(D)},A=(L,D,se,ve,de,_e,Se,pe,ge)=>{D.type==="svg"?Se="svg":D.type==="math"&&(Se="mathml"),L==null?$(D,se,ve,de,_e,Se,pe,ge):O(L,D,de,_e,Se,pe,ge)},$=(L,D,se,ve,de,_e,Se,pe)=>{let ge,fe;const{props:Ce,shapeFlag:H,transition:z,dirs:ee}=L;if(ge=L.el=a(L.type,_e,Ce&&Ce.is,Ce),H&8?p(ge,L.children):H&16&&x(L.children,ge,null,ve,de,Eg(L,_e),Se,pe),ee&&Br(L,null,ve,"created"),k(ge,L,L.scopeId,Se,ve),Ce){for(const l in Ce)l!=="value"&&!Na(l)&&s(ge,l,null,Ce[l],_e,ve);"value"in Ce&&s(ge,"value",null,Ce.value,_e),(fe=Ce.onVnodeBeforeMount)&&tr(fe,ve,L)}ee&&Br(L,null,ve,"beforeMount");const i=o3(de,z);i&&z.beforeEnter(ge),r(ge,D,se),((fe=Ce&&Ce.onVnodeMounted)||i||ee)&&Mn(()=>{fe&&tr(fe,ve,L),i&&z.enter(ge),ee&&Br(L,null,ve,"mounted")},de)},k=(L,D,se,ve,de)=>{if(se&&m(L,se),ve)for(let _e=0;_e<ve.length;_e++)m(L,ve[_e]);if(de){let _e=de.subTree;if(D===_e||c3(_e.type)&&(_e.ssContent===D||_e.ssFallback===D)){const Se=de.vnode;k(L,Se,Se.scopeId,Se.slotScopeIds,de.parent)}}},x=(L,D,se,ve,de,_e,Se,pe,ge=0)=>{for(let fe=ge;fe<L.length;fe++){const Ce=L[fe]=pe?ui(L[fe]):lr(L[fe]);b(null,Ce,D,se,ve,de,_e,Se,pe)}},O=(L,D,se,ve,de,_e,Se)=>{const pe=D.el=L.el;let{patchFlag:ge,dynamicChildren:fe,dirs:Ce}=D;ge|=L.patchFlag&16;const H=L.props||ct,z=D.props||ct;let ee;if(se&&ji(se,!1),(ee=z.onVnodeBeforeUpdate)&&tr(ee,se,D,L),Ce&&Br(D,L,se,"beforeUpdate"),se&&ji(se,!0),(H.innerHTML&&z.innerHTML==null||H.textContent&&z.textContent==null)&&p(pe,""),fe?M(L.dynamicChildren,fe,pe,se,ve,Eg(D,de),_e):Se||ce(L,D,pe,null,se,ve,Eg(D,de),_e,!1),ge>0){if(ge&16)j(pe,H,z,se,de);else if(ge&2&&H.class!==z.class&&s(pe,"class",null,z.class,de),ge&4&&s(pe,"style",H.style,z.style,de),ge&8){const i=D.dynamicProps;for(let l=0;l<i.length;l++){const c=i[l],g=H[c],_=z[c];(_!==g||c==="value")&&s(pe,c,g,_,de,se)}}ge&1&&L.children!==D.children&&p(pe,D.children)}else!Se&&fe==null&&j(pe,H,z,se,de);((ee=z.onVnodeUpdated)||Ce)&&Mn(()=>{ee&&tr(ee,se,D,L),Ce&&Br(D,L,se,"updated")},ve)},M=(L,D,se,ve,de,_e,Se)=>{for(let pe=0;pe<D.length;pe++){const ge=L[pe],fe=D[pe],Ce=ge.el&&(ge.type===He||!os(ge,fe)||ge.shapeFlag&70)?h(ge.el):se;b(ge,fe,Ce,null,ve,de,_e,Se,!0)}},j=(L,D,se,ve,de)=>{if(D!==se){if(D!==ct)for(const _e in D)!Na(_e)&&!(_e in se)&&s(L,_e,D[_e],null,de,ve);for(const _e in se){if(Na(_e))continue;const Se=se[_e],pe=D[_e];Se!==pe&&_e!=="value"&&s(L,_e,pe,Se,de,ve)}"value"in se&&s(L,"value",D.value,se.value,de)}},V=(L,D,se,ve,de,_e,Se,pe,ge)=>{const fe=D.el=L?L.el:u(""),Ce=D.anchor=L?L.anchor:u("");let{patchFlag:H,dynamicChildren:z,slotScopeIds:ee}=D;ee&&(pe=pe?pe.concat(ee):ee),L==null?(r(fe,se,ve),r(Ce,se,ve),x(D.children||[],se,Ce,de,_e,Se,pe,ge)):H>0&&H&64&&z&&L.dynamicChildren?(M(L.dynamicChildren,z,se,de,_e,Se,pe),(D.key!=null||de&&D===de.subTree)&&K1(L,D,!0)):ce(L,D,se,Ce,de,_e,Se,pe,ge)},W=(L,D,se,ve,de,_e,Se,pe,ge)=>{D.slotScopeIds=pe,L==null?D.shapeFlag&512?de.ctx.activate(D,se,ve,Se,ge):Y(D,se,ve,de,_e,Se,ge):ne(L,D,ge)},Y=(L,D,se,ve,de,_e,Se)=>{const pe=L.component=fL(L,ve,de);if(Vc(L)&&(pe.ctx.renderer=F),dL(pe,!1,Se),pe.asyncDep){if(de&&de.registerDep(pe,Z,Se),!L.el){const ge=pe.subTree=ye(gn);w(null,ge,D,se)}}else Z(pe,L,D,se,de,_e,Se)},ne=(L,D,se)=>{const ve=D.component=L.component;if(iL(L,D,se))if(ve.asyncDep&&!ve.asyncResolved){ae(ve,D,se);return}
vendor: 8,232 bytes, line 4
4else ve.next=D,ve.update();else D.el=L.el,ve.vnode=D},Z=(L,D,se,ve,de,_e,Se)=>{const pe=()=>{if(L.isMounted){let{next:H,bu:z,u:ee,parent:i,vnode:l}=L;{const R=i3(L);if(R){H&&(H.el=l.el,ae(L,H,Se)),R.asyncDep.then(()=>{L.isUnmounted||pe()});return}}let c=H,g;ji(L,!1),H?(H.el=l.el,ae(L,H,Se)):H=l,z&&_d(z),(g=H.props&&H.props.onVnodeBeforeUpdate)&&tr(g,i,H,l),ji(L,!0);const _=Sg(L),E=L.subTree;L.subTree=_,b(E,_,h(E.el),le(E),L,de,_e),H.el=_.el,c===null&&sL(L,_.el),ee&&Mn(ee,de),(g=H.props&&H.props.onVnodeUpdated)&&Mn(()=>tr(g,i,H,l),de)}else{let H;const{el:z,props:ee}=D,{bm:i,m:l,parent:c,root:g,type:_}=L,E=ms(D);if(ji(L,!1),i&&_d(i),!E&&(H=ee&&ee.onVnodeBeforeMount)&&tr(H,c,D),ji(L,!0),z&&K){const R=()=>{L.subTree=Sg(L),K(z,L.subTree,L,de,null)};E&&_.__asyncHydrate?_.__asyncHydrate(z,L,R):R()}else{g.ce&&g.ce._injectChildStyle(_);const R=L.subTree=Sg(L);b(null,R,se,ve,L,de,_e),D.el=R.el}if(l&&Mn(l,de),!E&&(H=ee&&ee.onVnodeMounted)){const R=D;Mn(()=>tr(H,c,R),de)}(D.shapeFlag&256||c&&ms(c.vnode)&&c.vnode.shapeFlag&256)&&L.a&&Mn(L.a,de),L.isMounted=!0,D=se=ve=null}};L.scope.on();const ge=L.effect=new aI(pe);L.scope.off();const fe=L.update=ge.run.bind(ge),Ce=L.job=ge.runIfDirty.bind(ge);Ce.i=L,Ce.id=L.uid,ge.scheduler=()=>H1(Ce),ji(L,!0),fe()},ae=(L,D,se)=>{D.component=L;const ve=L.vnode.props;L.vnode=D,L.next=null,qk(L,D.props,ve,se),Yk(L,D.children,se),Oi(),kb(L),ki()},ce=(L,D,se,ve,de,_e,Se,pe,ge=!1)=>{const fe=L&&L.children,Ce=L?L.shapeFlag:0,H=D.children,{patchFlag:z,shapeFlag:ee}=D;if(z>0){if(z&128){ue(fe,H,se,ve,de,_e,Se,pe,ge);return}else if(z&256){q(fe,H,se,ve,de,_e,Se,pe,ge);return}}ee&8?(Ce&16&&Ae(fe,de,_e),H!==fe&&p(se,H)):Ce&16?ee&16?ue(fe,H,se,ve,de,_e,Se,pe,ge):Ae(fe,de,_e,!0):(Ce&8&&p(se,""),ee&16&&x(H,se,ve,de,_e,Se,pe,ge))},q=(L,D,se,ve,de,_e,Se,pe,ge)=>{L=L||Pa,D=D||Pa;const fe=L.length,Ce=D.length,H=Math.min(fe,Ce);let z;for(z=0;z<H;z++){const ee=D[z]=ge?ui(D[z]):lr(D[z]);b(L[z],ee,se,null,de,_e,Se,pe,ge)}fe>Ce?Ae(L,de,_e,!0,!1,H):x(D,se,ve,de,_e,Se,pe,ge,H)},ue=(L,D,se,ve,de,_e,Se,pe,ge)=>{let fe=0;const Ce=D.length;let H=L.length-1,z=Ce-1;for(;fe<=H&&fe<=z;){const ee=L[fe],i=D[fe]=ge?ui(D[fe]):lr(D[fe]);if(os(ee,i))b(ee,i,se,null,de,_e,Se,pe,ge);else break;fe++}for(;fe<=H&&fe<=z;){const ee=L[H],i=D[z]=ge?ui(D[z]):lr(D[z]);if(os(ee,i))b(ee,i,se,null,de,_e,Se,pe,ge);else break;H--,z--}if(fe>H){if(fe<=z){const ee=z+1,i=ee<Ce?D[ee].el:ve;for(;fe<=z;)b(null,D[fe]=ge?ui(D[fe]):lr(D[fe]),se,i,de,_e,Se,pe,ge),fe++}}else if(fe>z)for(;fe<=H;)re(L[fe],de,_e,!0),fe++;else{const ee=fe,i=fe,l=new Map;for(fe=i;fe<=z;fe++){const me=D[fe]=ge?ui(D[fe]):lr(D[fe]);me.key!=null&&l.set(me.key,fe)}let c,g=0;const _=z-i+1;let E=!1,R=0;const oe=new Array(_);for(fe=0;fe<_;fe++)oe[fe]=0;for(fe=ee;fe<=H;fe++){const me=L[fe];if(g>=_){re(me,de,_e,!0);continue}let he;if(me.key!=null)he=l.get(me.key);else for(c=i;c<=z;c++)if(oe[c-i]===0&&os(me,D[c])){he=c;break}he===void 0?re(me,de,_e,!0):(oe[he-i]=fe+1,he>=R?R=he:E=!0,b(me,D[he],se,null,de,_e,Se,pe,ge),g++)}const $e=E?Qk(oe):Pa;for(c=$e.length-1,fe=_-1;fe>=0;fe--){const me=i+fe,he=D[me],Te=me+1<Ce?D[me+1].el:ve;oe[fe]===0?b(null,he,se,Te,de,_e,Se,pe,ge):E&&(c<0||fe!==$e[c]?G(he,se,Te,2):c--)}}},G=(L,D,se,ve,de=null)=>{const{el:_e,type:Se,transition:pe,children:ge,shapeFlag:fe}=L;if(fe&6){G(L.component.subTree,D,se,ve);return}if(fe&128){L.suspense.move(D,se,ve);return}if(fe&64){Se.move(L,D,se,F);return}if(Se===He){r(_e,D,se);for(let H=0;H<ge.length;H++)G(ge[H],D,se,ve);r(L.anchor,D,se);return}if(Se===Ua){I(L,D,se);return}if(ve!==2&&fe&1&&pe)if(ve===0)pe.beforeEnter(_e),r(_e,D,se),Mn(()=>pe.enter(_e),de);else{const{leave:H,delayLeave:z,afterLeave:ee}=pe,i=()=>r(_e,D,se),l=()=>{H(_e,()=>{i(),ee&&ee()})};z?z(_e,i,l):l()}else r(_e,D,se)},re=(L,D,se,ve=!1,de=!1)=>{const{type:_e,props:Se,ref:pe,children:ge,dynamicChildren:fe,shapeFlag:Ce,patchFlag:H,dirs:z,cacheIndex:ee}=L;if(H===-2&&(de=!1),pe!=null&&ap(pe,null,se,L,!0),ee!=null&&(D.renderCache[ee]=void 0),Ce&256){D.ctx.deactivate(L);return}const i=Ce&1&&z,l=!ms(L);let c;if(l&&(c=Se&&Se.onVnodeBeforeUnmount)&&tr(c,D,L),Ce&6)Pe(L.component,se,ve);else{if(Ce&128){L.suspense.unmount(se,ve);return}i&&Br(L,null,D,"beforeUnmount"),Ce&64?L.type.remove(L,D,se,F,ve):fe&&!fe.hasOnce&&(_e!==He||H>0&&H&64)?Ae(fe,D,se,!1,!0):(_e===He&&H&384||!de&&Ce&16)&&Ae(ge,D,se),ve&&Oe(L)}(l&&(c=Se&&Se.onVnodeUnmounted)||i)&&Mn(()=>{c&&tr(c,D,L),i&&Br(L,null,D,"unmounted")},se)},Oe=L=>{const{type:D,el:se,anchor:ve,transition:de}=L;if(D===He){Ee(se,ve);return}if(D===Ua){C(L);return}const _e=()=>{o(se),de&&!de.persisted&&de.afterLeave&&de.afterLeave()};if(L.shapeFlag&1&&de&&!de.persisted){const{leave:Se,delayLeave:pe}=de,ge=()=>Se(se,_e);pe?pe(L.el,_e,ge):ge()}else _e()},Ee=(L,D)=>{let se;for(;L!==D;)se=y(L),o(L),L=se;o(D)},Pe=(L,D,se)=>{const{bum:ve,scope:de,job:_e,subTree:Se,um:pe,m:ge,a:fe}=L;qb(ge),qb(fe),ve&&_d(ve),de.stop(),_e&&(_e.flags|=8,re(Se,L,D,se)),pe&&Mn(pe,D),Mn(()=>{L.isUnmounted=!0},D),D&&D.pendingBranch&&!D.isUnmounted&&L.asyncDep&&!L.asyncResolved&&L.suspenseId===D.pendingId&&(D.deps--,D.deps===0&&D.resolve())},Ae=(L,D,se,ve=!1,de=!1,_e=0)=>{for(let Se=_e;Se<L.length;Se++)re(L[Se],D,se,ve,de)},le=L=>{if(L.shapeFlag&6)return le(L.component.subTree);if(L.shapeFlag&128)return L.suspense.next();const D=y(L.anchor||L.el),se=D&&D[OI];return se?y(se):D};let Q=!1;const P=(L,D,se)=>{L==null?D._vnode&&re(D._vnode,null,null,!0):b(D._vnode||null,L,D,null,null,null,se),D._vnode=L,Q||(Q=!0,kb(),ip(),Q=!1)},F={p:b,um:re,m:G,r:Oe,mt:Y,mc:x,pc:ce,pbc:M,n:le,o:e};let B,K;return t&&([B,K]=t(F)),{render:P,hydrate:B,createApp:jk(P,B)}}function Eg({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function ji({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function o3(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function K1(e,t,n=!1){const r=e.children,o=t.children;if(je(r)&&je(o))for(let s=0;s<r.length;s++){const a=r[s];let u=o[s];u.shapeFlag&1&&!u.dynamicChildren&&((u.patchFlag<=0||u.patchFlag===32)&&(u=o[s]=ui(o[s]),u.el=a.el),!n&&u.patchFlag!==-2&&K1(a,u)),u.type===vs&&(u.el=a.el)}}function Qk(e){const t=e.slice(),n=[0];let r,o,s,a,u;const f=e.length;for(r=0;r<f;r++){const d=e[r];if(d!==0){if(o=n[n.length-1],e[o]<d){t[r]=o,n.push(r);continue}for(s=0,a=n.length-1;s<a;)u=s+a>>1,e[n[u]]<d?s=u+1:a=u;d<e[n[s]]&&(s>0&&(t[r]=n[s-1]),n[s]=r)}}for(s=n.length,a=n[s-1];s-- >0;)n[s]=a,a=t[a];return n}function i3(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:i3(t)}function qb(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const Jk=Symbol.for("v-scx"),s3=()=>Gt(Jk);function yh(e,t){return Wc(e,null,t)}function Xk(e,t){return Wc(e,null,{flush:"post"})}function eL(e,t){return Wc(e,null,{flush:"sync"})}function ke(e,t,n){return Wc(e,t,n)}function Wc(e,t,n=ct){const{immediate:r,deep:o,flush:s,once:a}=n,u=tn({},n),f=t&&r||!t&&s!=="post";let d;if(Ja){if(s==="sync"){const m=s3();d=m.__watcherHandles||(m.__watcherHandles=[])}else if(!f){const m=()=>{};return m.stop=Jr,m.resume=Jr,m.pause=Jr,m}}const p=nn;u.call=(m,v,b)=>xr(m,p,v,b);let h=!1;s==="post"?u.scheduler=m=>{Mn(m,p&&p.suspense)}:s!=="sync"&&(h=!0,u.scheduler=(m,v)=>{v?m():H1(m)}),u.augmentJob=m=>{t&&(m.flags|=4),h&&(m.flags|=2,p&&(m.id=p.uid,m.i=p))};const y=pk(e,t,u);return Ja&&(d?d.push(y):f&&y()),y}function tL(e,t,n){const r=this.proxy,o=Ot(e)?e.includes(".")?a3(r,e):()=>r[e]:e.bind(r,r);let s;ze(t)?s=t:(s=t.handler,n=t);const a=zc(this),u=Wc(o,s.bind(r),n);return a(),u}function a3(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o<n.length&&r;o++)r=r[n[o]];return r}}function Yn(e,t,n=ct){const r=Dn(),o=Gn(t),s=No(t),a=u3(e,o),u=hh((f,d)=>{let p,h=ct,y;return eL(()=>{const m=e[o];In(p,m)&&(p=m,d())}),{get(){return f(),n.get?n.get(p):p},set(m){const v=n.set?n.set(m):m;if(!In(v,p)&&!(h!==ct&&In(m,h)))return;const b=r.vnode.props;b&&(t in b||o in b||s in b)&&(`onUpdate:${t}`in b||`onUpdate:${o}`in b||`onUpdate:${s}`in b)||(p=m,d()),r.emit(`update:${t}`,v),In(m,v)&&In(m,h)&&!In(v,y)&&d(),h=m,y=v}}});return u[Symbol.iterator]=()=>{let f=0;return{next(){return f<2?{value:f++?a||ct:u,done:!1}:{done:!0}}}},u}const u3=(e,t)=>
vendor: 7,137 bytes, line 4
4t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Gn(t)}Modifiers`]||e[`${No(t)}Modifiers`];function nL(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||ct;let o=n;const s=t.startsWith("update:"),a=s&&u3(r,t.slice(7));a&&(a.trim&&(o=n.map(p=>Ot(p)?p.trim():p)),a.number&&(o=n.map(Qm)));let u,f=r[u=vd(t)]||r[u=vd(Gn(t))];!f&&s&&(f=r[u=vd(No(t))]),f&&xr(f,e,6,o);const d=r[u+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[u])return;e.emitted[u]=!0,xr(d,e,6,o)}}function l3(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(o!==void 0)return o;const s=e.emits;let a={},u=!1;if(!ze(e)){const f=d=>{const p=l3(d,t,!0);p&&(u=!0,tn(a,p))};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}return!s&&!u?(Tt(e)&&r.set(e,null),null):(je(s)?s.forEach(f=>a[f]=null):tn(a,s),Tt(e)&&r.set(e,a),a)}function vh(e,t){return!e||!Mc(t)?!1:(t=t.slice(2).replace(/Once$/,""),vt(e,t[0].toLowerCase()+t.slice(1))||vt(e,No(t))||vt(e,t))}function Sg(e){const{type:t,vnode:n,proxy:r,withProxy:o,propsOptions:[s],slots:a,attrs:u,emit:f,render:d,renderCache:p,props:h,data:y,setupState:m,ctx:v,inheritAttrs:b}=e,S=sp(e);let w,T;try{if(n.shapeFlag&4){const C=o||r,A=C;w=lr(d.call(A,C,p,h,m,y,v)),T=u}else{const C=t;w=lr(C.length>1?C(h,{attrs:u,slots:a,emit:f}):C(h,null)),T=t.props?u:rL(u)}}catch(C){xl.length=0,jc(C,e,1),w=ye(gn)}let I=w;if(T&&b!==!1){const C=Object.keys(T),{shapeFlag:A}=I;C.length&&A&7&&(s&&C.some(k1)&&(T=oL(T,s)),I=bi(I,T,!1,!0))}return n.dirs&&(I=bi(I,null,!1,!0),I.dirs=I.dirs?I.dirs.concat(n.dirs):n.dirs),n.transition&&Ms(I,n.transition),w=I,sp(S),w}const rL=e=>{let t;for(const n in e)(n==="class"||n==="style"||Mc(n))&&((t||(t={}))[n]=e[n]);return t},oL=(e,t)=>{const n={};for(const r in e)(!k1(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function iL(e,t,n){const{props:r,children:o,component:s}=e,{props:a,children:u,patchFlag:f}=t,d=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&f>=0){if(f&1024)return!0;if(f&16)return r?Wb(r,a,d):!!a;if(f&8){const p=t.dynamicProps;for(let h=0;h<p.length;h++){const y=p[h];if(a[y]!==r[y]&&!vh(d,y))return!0}}}else return(o||u)&&(!u||!u.$stable)?!0:r===a?!1:r?a?Wb(r,a,d):!0:!!a;return!1}function Wb(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o<r.length;o++){const s=r[o];if(t[s]!==e[s]&&!vh(n,s))return!0}return!1}function sL({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const c3=e=>e.__isSuspense;function f3(e,t){t&&t.pendingBranch?je(e)?t.effects.push(...e):t.effects.push(e):mk(e)}const He=Symbol.for("v-fgt"),vs=Symbol.for("v-txt"),gn=Symbol.for("v-cmt"),Ua=Symbol.for("v-stc"),xl=[];let Cn=null;function U(e=!1){xl.push(Cn=e?null:[])}function aL(){xl.pop(),Cn=xl[xl.length-1]||null}let Qa=1;function zb(e){Qa+=e,e<0&&Cn&&(Cn.hasOnce=!0)}function d3(e){return e.dynamicChildren=Qa>0?Cn||Pa:null,aL(),Qa>0&&Cn&&Cn.push(e),e}function X(e,t,n,r,o,s){return d3(te(e,t,n,r,o,s,!0))}function we(e,t,n,r,o){return d3(ye(e,t,n,r,o,!0))}function Ql(e){return e?e.__v_isVNode===!0:!1}function os(e,t){return e.type===t.type&&e.key===t.key}const p3=({key:e})=>e??null,wd=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ot(e)||Xe(e)||ze(e)?{i:rn,r:e,k:t,f:!!n}:e:null);function te(e,t=null,n=null,r=0,o=null,s=e===He?0:1,a=!1,u=!1){const f={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&p3(t),ref:t&&wd(t),scopeId:RI,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:rn};return u?(Q1(f,n),s&128&&e.normalize(f)):n&&(f.shapeFlag|=Ot(n)?8:16),Qa>0&&!a&&Cn&&(f.patchFlag>0||s&6)&&f.patchFlag!==32&&Cn.push(f),f}const ye=uL;function uL(e,t=null,n=null,r=0,o=null,s=!1){if((!e||e===jI)&&(e=gn),Ql(e)){const u=bi(e,t,!0);return n&&Q1(u,n),Qa>0&&!s&&Cn&&(u.shapeFlag&6?Cn[Cn.indexOf(e)]=u:Cn.push(u)),u.patchFlag=-2,u}if(mL(e)&&(e=e.__vccOpts),t){t=cp(t);let{class:u,style:f}=t;u&&!Ot(u)&&(t.class=Be(u)),Tt(f)&&(U1(f)&&!je(f)&&(f=tn({},f)),t.style=at(f))}const a=Ot(e)?1:c3(e)?128:kI(e)?64:Tt(e)?4:ze(e)?2:0;return te(e,t,n,r,o,a,s,!0)}function cp(e){return e?U1(e)||ZI(e)?tn({},e):e:null}function bi(e,t,n=!1,r=!1){const{props:o,ref:s,patchFlag:a,children:u,transition:f}=e,d=t?un(o||{},t):o,p={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&p3(d),ref:t&&t.ref?n&&s?je(s)?s.concat(wd(t)):[s,wd(t)]:wd(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:u,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==He?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:f,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&bi(e.ssContent),ssFallback:e.ssFallback&&bi(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return f&&r&&Ms(p,f.clone(p)),p}function mt(e=" ",t=0){return ye(vs,null,e,t)}function Z1(e,t){const n=ye(Ua,null,e);return n.staticCount=t,n}function Ie(e="",t=!1){return t?(U(),we(gn,null,e)):ye(gn,null,e)}function lr(e){return e==null||typeof e=="boolean"?ye(gn):je(e)?ye(He,null,e.slice()):Ql(e)?ui(e):ye(vs,null,String(e))}function ui(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:bi(e)}function Q1(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(je(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),Q1(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!ZI(t)?t._ctx=rn:o===3&&rn&&(rn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ze(t)?(t={default:t,_ctx:rn},n=32):(t=String(t),r&64?(n=16,t=[mt(t)]):n=8);e.children=t,e.shapeFlag|=n}function un(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const o in r)if(o==="class")t.class!==r.class&&(t.class=Be([t.class,r.class]));else if(o==="style")t.style=at([t.style,r.style]);else if(Mc(o)){const s=t[o],a=r[o];a&&s!==a&&!(je(s)&&s.includes(a))&&(t[o]=s?[].concat(s,a):a)}else o!==""&&(t[o]=r[o])}return t}function tr(e,t,n,r=null){xr(e,t,7,[n,r])}const lL=GI();let cL=0;function fL(e,t,n){const r=e.type,o=(t?t.appContext:e.appContext)||lL,s={uid:cL++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new sI(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:JI(r,o),emitsOptions:l3(r,o),emit:null,emitted:null,propsDefaults:ct,inheritAttrs:r.inheritAttrs,ctx:ct,data:ct,props:ct,attrs:ct,slots:ct,refs:ct,setupState:ct,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,
vendor: 2,828 bytes, line 4
4sp:null};return s.ctx={_:s},s.root=t?t.root:s,s.emit=nL.bind(null,s),e.ce&&e.ce(s),s}let nn=null;const Dn=()=>nn||rn;let fp,uy;{const e=Nc(),t=(n,r)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(r),s=>{o.length>1?o.forEach(a=>a(s)):o[0](s)}};fp=t("__VUE_INSTANCE_SETTERS__",n=>nn=n),uy=t("__VUE_SSR_SETTERS__",n=>Ja=n)}const zc=e=>{const t=nn;return fp(e),e.scope.on(),()=>{e.scope.off(),fp(t)}},Gb=()=>{nn&&nn.scope.off(),fp(null)};function h3(e){return e.vnode.shapeFlag&4}let Ja=!1;function dL(e,t=!1,n=!1){t&&uy(t);const{props:r,children:o}=e.vnode,s=h3(e);Vk(e,r,s,t),Gk(e,o,n);const a=s?pL(e,t):void 0;return t&&uy(!1),a}function pL(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Mk);const{setup:r}=n;if(r){Oi();const o=e.setupContext=r.length>1?m3(e):null,s=zc(e),a=Fc(r,e,0,[e.props,o]),u=XT(a);if(ki(),s(),(u||e.sp)&&!ms(e)&&V1(e),u){if(a.then(Gb,Gb),t)return a.then(f=>{Yb(e,f)}).catch(f=>{jc(f,e,0)});e.asyncDep=a}else Yb(e,a)}else g3(e)}function Yb(e,t,n){ze(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Tt(t)&&(e.setupState=TI(t)),g3(e)}function g3(e,t,n){const r=e.type;e.render||(e.render=r.render||Jr);{const o=zc(e);Oi();try{Bk(e)}finally{ki(),o()}}}const hL={get(e,t){return fn(e,"get",""),e[t]}};function m3(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,hL),slots:e.slots,emit:e.emit,expose:t}}function _h(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(TI($t(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Al)return Al[n](e)},has(t,n){return n in t||n in Al}})):e.proxy}function gL(e,t=!0){return ze(e)?e.displayName||e.name:e.name||t&&e.__name}function mL(e){return ze(e)&&"__vccOpts"in e}const J=(e,t)=>fk(e,t,Ja);function J1(e,t,n){const r=arguments.length;return r===2?Tt(t)&&!je(t)?Ql(t)?ye(e,null,[t]):ye(e,t):ye(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Ql(n)&&(n=[n]),ye(e,t,n))}function k_e(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r<n.length;r++)if(In(n[r],t[r]))return!1;return Qa>0&&Cn&&Cn.push(e),!0}const X1="3.5.12";let ly;const Kb=typeof window<"u"&&window.trustedTypes;if(Kb)try{ly=Kb.createPolicy("vue",{createHTML:e=>e})}catch{}const y3=ly?e=>ly.createHTML(e):e=>e,yL="http://www.w3.org/2000/svg",vL="http://www.w3.org/1998/Math/MathML",vo=typeof document<"u"?document:null,Zb=vo&&vo.createElement("template"),_L={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t==="svg"?vo.createElementNS(yL,e):t==="mathml"?vo.createElementNS(vL,e):n?vo.createElement(e,{is:n}):vo.createElement(e);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>vo.createTextNode(e),createComment:e=>vo.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>
vendor: 8,211 bytes, line 4
4{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>vo.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,s){const a=n?n.previousSibling:t.lastChild;if(o&&(o===s||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===s||!(o=o.nextSibling)););else{Zb.innerHTML=y3(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const u=Zb.content;if(r==="svg"||r==="mathml"){const f=u.firstChild;for(;f.firstChild;)u.appendChild(f.firstChild);u.removeChild(f)}t.insertBefore(u,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ko="transition",qu="animation",Xa=Symbol("_vtc"),v3={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},_3=tn({},PI,v3),bL=e=>(e.displayName="Transition",e.props=_3,e),ko=bL((e,{slots:t})=>J1(wk,b3(e),t)),Vi=(e,t=[])=>{je(e)?e.forEach(n=>n(...t)):e&&e(...t)},Qb=e=>e?je(e)?e.some(t=>t.length>1):e.length>1:!1;function b3(e){const t={};for(const V in e)V in v3||(t[V]=e[V]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:s=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:u=`${n}-enter-to`,appearFromClass:f=s,appearActiveClass:d=a,appearToClass:p=u,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:y=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,v=wL(o),b=v&&v[0],S=v&&v[1],{onBeforeEnter:w,onEnter:T,onEnterCancelled:I,onLeave:C,onLeaveCancelled:A,onBeforeAppear:$=w,onAppear:k=T,onAppearCancelled:x=I}=t,O=(V,W,Y)=>{oi(V,W?p:u),oi(V,W?d:a),Y&&Y()},M=(V,W)=>{V._isLeaving=!1,oi(V,h),oi(V,m),oi(V,y),W&&W()},j=V=>(W,Y)=>{const ne=V?k:T,Z=()=>O(W,V,Y);Vi(ne,[W,Z]),Jb(()=>{oi(W,V?f:s),mo(W,V?p:u),Qb(ne)||Xb(W,r,b,Z)})};return tn(t,{onBeforeEnter(V){Vi(w,[V]),mo(V,s),mo(V,a)},onBeforeAppear(V){Vi($,[V]),mo(V,f),mo(V,d)},onEnter:j(!1),onAppear:j(!0),onLeave(V,W){V._isLeaving=!0;const Y=()=>M(V,W);mo(V,h),mo(V,y),E3(),Jb(()=>{V._isLeaving&&(oi(V,h),mo(V,m),Qb(C)||Xb(V,r,S,Y))}),Vi(C,[V,Y])},onEnterCancelled(V){O(V,!1),Vi(I,[V])},onAppearCancelled(V){O(V,!0),Vi(x,[V])},onLeaveCancelled(V){M(V),Vi(A,[V])}})}function wL(e){if(e==null)return null;if(Tt(e))return[$g(e.enter),$g(e.leave)];{const t=$g(e);return[t,t]}}function $g(e){return k8(e)}function mo(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Xa]||(e[Xa]=new Set)).add(t)}function oi(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Xa];n&&(n.delete(t),n.size||(e[Xa]=void 0))}function Jb(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let EL=0;function Xb(e,t,n,r){const o=e._endId=++EL,s=()=>{o===e._endId&&r()};if(n!=null)return setTimeout(s,n);const{type:a,timeout:u,propCount:f}=w3(e,t);if(!a)return r();const d=a+"end";let p=0;const h=()=>{e.removeEventListener(d,y),s()},y=m=>{m.target===e&&++p>=f&&h()};setTimeout(()=>{p<f&&h()},u+1),e.addEventListener(d,y)}function w3(e,t){const n=window.getComputedStyle(e),r=v=>(n[v]||"").split(", "),o=r(`${Ko}Delay`),s=r(`${Ko}Duration`),a=ew(o,s),u=r(`${qu}Delay`),f=r(`${qu}Duration`),d=ew(u,f);let p=null,h=0,y=0;t===Ko?a>0&&(p=Ko,h=a,y=s.length):t===qu?d>0&&(p=qu,h=d,y=f.length):(h=Math.max(a,d),p=h>0?a>d?Ko:qu:null,y=p?p===Ko?s.length:f.length:0);const m=p===Ko&&/\b(transform|all)(,|$)/.test(r(`${Ko}Property`).toString());return{type:p,timeout:h,propCount:y,hasTransform:m}}function ew(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>tw(n)+tw(e[r])))}function tw(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function E3(){return document.body.offsetHeight}function SL(e,t,n){const r=e[Xa];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const dp=Symbol("_vod"),S3=Symbol("_vsh"),$u={beforeMount(e,{value:t},{transition:n}){e[dp]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Wu(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Wu(e,!0),r.enter(e)):r.leave(e,()=>{Wu(e,!1)}):Wu(e,t))},beforeUnmount(e,{value:t}){Wu(e,t)}};function Wu(e,t){e.style.display=t?e[dp]:"none",e[S3]=!t}function $L(){$u.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const $3=Symbol("");function bh(e){const t=Dn();if(!t)return;const n=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(s=>pp(s,o))},r=()=>{const o=e(t.proxy);t.ce?pp(t.ce,o):cy(t.subTree,o),n(o)};HI(()=>{Xk(r)}),We(()=>{const o=new MutationObserver(r);o.observe(t.subTree.el.parentNode,{childList:!0}),Nn(()=>o.disconnect())})}function cy(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{cy(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)pp(e.el,t);else if(e.type===He)e.children.forEach(n=>cy(n,t));else if(e.type===Ua){let{el:n,anchor:r}=e;for(;n&&(pp(n,t),n!==r);)n=n.nextSibling}}function pp(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const o in t)n.setProperty(`--${o}`,t[o]),r+=`--${o}: ${t[o]};`;n[$3]=r}}const TL=/(^|;)\s*display\s*:/;function IL(e,t,n){const r=e.style,o=Ot(n);let s=!1;if(n&&!o){if(t)if(Ot(t))for(const a of t.split(";")){const u=a.slice(0,a.indexOf(":")).trim();n[u]==null&&Ed(r,u,"")}else for(const a in t)n[a]==null&&Ed(r,a,"");for(const a in n)a==="display"&&(s=!0),Ed(r,a,n[a])}else if(o){if(t!==n){const a=r[$3];a&&(n+=";"+a),r.cssText=n,s=TL.test(n)}}else t&&e.removeAttribute("style");dp in e&&(e[dp]=s?r.display:"",e[S3]&&(r.display="none"))}const nw=/\s*!important$/;function Ed(e,t,n){if(je(n))n.forEach(r=>Ed(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=AL(e,t);nw.test(n)?e.setProperty(No(r),n.replace(nw,""),"important"):e[r]=n}}const rw=["Webkit","Moz","ms"],Tg={};function AL(e,t){const n=Tg[t];if(n)return n;let r=Gn(t);if(r!=="filter"&&r in e)return Tg[t]=r;r=uh(r);for(let o=0;o<rw.length;o++){const s=rw[o]+r;if(s in e)return Tg[t]=s}return t}const ow="http://www.w3.org/1999/xlink";function iw(e,t,n,r,o,s=D8(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(ow,t.slice(6,t.length)):e.setAttributeNS(ow,t,n):n==null||s&&!rI(n)?e.removeAttribute(t):e.setAttribute(t,s?"":Ar(n)?String(n):n)}function sw(e,t,n,r,o){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?y3(n):n);return}const s=e.tagName;if(t==="value"&&s!=="PROGRESS"&&!s.includes("-")){const u=s==="OPTION"?e.getAttribute("value")||"":e.value,f=n==null?e.type==="checkbox"?"on":"":String(n);(u!==f||!("_value"in e))&&(e.value=f),n==null&&e.removeAttribute(t),e._value=n;return}let a=!1;if(n===""||n==null){const u=typeof e[t];u==="boolean"?n=rI(n):n==null&&u==="string"?(n="",a=!0):u==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(o||t)}function is(e,t,n,r){e.addEventListener(t,n,r)}function xL(e,t,n,r){e.removeEventListener(t,n,r)}const aw=Symbol("_vei");function CL(e,t,n,r,o=null){const s=e[aw]||(e[aw]={}),a=s[t];if(r&&a)a.value=r;else{const[u,f]=RL(t);if(r){const d=s[t]=LL(r,o);is(e,u,d,f)}else a&&(xL(e,u,a,f),s[t]=void 0)}}const uw=/(?:Once|Passive|Capture)$/;function RL(e){let t;if(uw.test(e)){t={};let r;for(;r=e.match(uw);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):No(e.slice(2)),t]}let Ig=0;const OL=Promise.resolve(),kL=()=>Ig||(OL.then(()=>Ig=0),Ig=Date.now());function LL(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;xr(ML(r,n.value),t,5,[r])};return n.value=e,n.attached=kL(),n}function ML(e,t){if(je(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const lw=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,PL=(e,t,n,r,o,s)=>{const a=o==="svg";t==="class"?SL(e,r,a):t==="style"?IL(e,n,r):Mc(t)?k1(t)||CL(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.
4slice(1),!1):BL(e,t,r,a))?(sw(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&iw(e,t,r,a,s,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Ot(r))?sw(e,Gn(t),r,s,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),iw(e,t,r,a))};function BL(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&lw(t)&&ze(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return lw(t)&&Ot(n)?!1:t in e}const T3=new WeakMap,I3=new WeakMap,hp=Symbol("_moveCb"),cw=Symbol("_enterCb"),NL=e=>(delete e.props.mode,e),DL=NL({name:"TransitionGroup",props:tn({},_3,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Dn(),r=MI();let o,s;return z1(()=>{if(!o.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!jL(o[0].el,n.vnode.el,a))return;o.forEach(UL),o.forEach(HL);const u=o.filter(FL);E3(),u.forEach(f=>{const d=f.el,p=d.style;mo(d,a),p.transform=p.webkitTransform=p.transitionDuration="";const h=d[hp]=y=>{y&&y.target!==d||(!y||/transform$/.test(y.propertyName))&&(d.removeEventListener("transitionend",h),d[hp]=null,oi(d,a))};d.addEventListener("transitionend",h)})}),()=>{const a=rt(e),u=b3(a);let f=a.tag||He;if(o=[],s)for(let d=0;d<s.length;d++){const p=s[d];p.el&&p.el instanceof Element&&(o.push(p),Ms(p,Zl(p,u,r,n)),T3.set(p,p.el.getBoundingClientRect()))}s=t.default?j1(t.default()):[];for(let d=0;d<s.length;d++){const p=s[d];p.key!=null&&Ms(p,Zl(p,u,r,n))}return ye(f,null,s)}}}),A3=DL;function UL(e){const t=e.el;t[hp]&&t[hp](),t[cw]&&t[cw]()}function HL(e){I3.set(e,e.el.getBoundingClientRect())}function FL(e){const t=T3.get(e),n=I3.get(e),r=t.left-n.left,o=t.top-n.top;if(r||o){const s=e.el.style;return s.transform=s.webkitTransform=`translate(${r}px,${o}px)`,s.transitionDuration="0s",e}}function jL(e,t,n){const r=e.cloneNode(),o=e[Xa];o&&o.forEach(u=>{u.split(/\s+/).forEach(f=>f&&r.classList.remove(f))}),n.split(/\s+/).forEach(u=>u&&r.classList.add(u)),r.style.display="none";const s=t.nodeType===1?t:t.parentNode;s.appendChild(r);const{hasTransform:a}=w3(r);return s.removeChild(r),a}const gp=e=>{const t=e.props["onUpdate:modelValue"]||!1;return je(t)?n=>_d(t,n):t};function VL(e){e.target.composing=!0}function fw(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ha=Symbol("_assign"),qL={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e[Ha]=gp(o);const s=r||o.props&&o.props.type==="number";is(e,t?"change":"input",a=>{if(a.target.composing)return;let u=e.value;n&&(u=u.trim()),s&&(u=Qm(u)),e[Ha](u)}),n&&is(e,"change",()=>{e.value=e.value.trim()}),t||(is(e,"compositionstart",VL),is(e,"compositionend",fw),is(e,"change",fw))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:o,number:s}},a){if(e[Ha]=gp(a),e.composing)return;const u=(s||e.type==="number")&&!/^0\d/.test(e.value)?Qm(e.value):e.value,f=t??"";u!==f&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||o&&e.value.trim()===f)||(e.value=f))}},WL={deep:!0,created(e,t,n){e[Ha]=gp(n),is(e,"change",()=>{const r=e._modelValue,o=GL(e),s=e.checked,a=e[Ha];if(je(r)){const u=P1(r,o),f=u!==-1;if(s&&!f)a(r.concat(o));else if(!s&&f){const d=[...r];d.splice(u,1),a(d)}}else if(Pc(r)){const u=new Set(r);s?u.add(o):u.delete(o),a(u)}else a(x3(e,s))})},mounted:dw,beforeUpdate(e,t,n){e[Ha]=gp(n),dw(e,t,n)}};function dw(e,{value:t,oldValue:n},r){e._modelValue=t;let o;if(je(t))o=P1(t,r.props.value)>-1;else if(Pc(t))o=t.has(r.props.value);else{if(t===n)return;o=Dc(t,x3(e,!0))}e.checked!==o&&(e.checked=o)}const zL={};function GL(e){return"_value"in e?e._value:e.value}function x3(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}function YL(){qL.getSSRProps=({value:e})=>({value:e}),zL.getSSRProps=({value:e},t)=>{if(t.props&&Dc(t.props.value,e))return{checked:!0}},WL.getSSRProps=({value:e},t)=>{if(je(e)){if(t.props&&P1(e,t.props.value)>-1)return{checked:!0}}else if(Pc(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}}}const KL=["ctrl","shift","alt","meta"],ZL={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>
4KL.some(n=>e[`${n}Key`]&&!t.includes(n))},ft=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(o,...s)=>{for(let a=0;a<t.length;a++){const u=ZL[t[a]];if(u&&u(o,t))return}return e(o,...s)})},QL={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Gc=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=o=>{if(!("key"in o))return;const s=No(o.key);if(t.some(a=>a===s||QL[a]===s))return e(o)})},C3=tn({patchProp:PL},_L);let Cl,pw=!1;function JL(){return Cl||(Cl=Kk(C3))}function XL(){return Cl=pw?Cl:Zk(C3),pw=!0,Cl}const eM=(...e)=>{const t=JL().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=O3(r);if(!o)return;const s=t._component;!ze(s)&&!s.render&&!s.template&&(s.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const a=n(o,!1,R3(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),a},t},tM=(...e)=>{const t=XL().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=O3(r);if(o)return n(o,!0,R3(o))},t};function R3(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function O3(e){return Ot(e)?document.querySelector(e):e}let hw=!1;const nM=()=>{hw||(hw=!0,YL(),$L())};let e0;const Yc=e=>e0=e,rM=()=>qc()&&Gt(t0)||e0,t0=Symbol();function fy(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Rl;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Rl||(Rl={}));function k3(){const e=lh(!0),t=e.run(()=>ie({}));let n=[],r=[];const o=$t({install(s){Yc(o),o._a=s,s.provide(t0,o),s.config.globalProperties.$pinia=o,r.forEach(a=>n.push(a)),r=[]},use(s){return this._a?n.push(s):r.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const L3=()=>{};function gw(e,t,n,r=L3){e.push(t);const o=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),r())};return!n&&Gs()&&Do(o),o}function ia(e,...t){e.slice().forEach(n=>{n(...t)})}const oM=e=>e();function dy(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],o=e[n];fy(o)&&fy(r)&&e.hasOwnProperty(n)&&!Xe(r)&&!Xr(r)?e[n]=dy(o,r):e[n]=r}return e}const iM=Symbol();function sM(e){return!fy(e)||!e.hasOwnProperty(iM)}const{assign:ii}=Object;function aM(e){return!!(Xe(e)&&e.effect)}function uM(e,t,n,r){const{state:o,actions:s,getters:a}=t,u=n.state.value[e];let f;function d(){u||(n.state.value[e]=o?o():{});const p=Hc(n.state.value[e]);return ii(p,s,Object.keys(a||{}).reduce((h,y)=>(h[y]=$t(J(()=>{Yc(n);const m=n._s.get(e);return a[y].call(m,m)})),h),{}))}return f=M3(e,d,t,n,r,!0),f}function M3(e,t,n={},r,o,s){let a;const u=ii({actions:{}},n),f={deep:!0};let d,p,h=[],y=[],m;const v=r.state.value[e];!s&&!v&&(r.state.value[e]={}),ie({});let b;function S(x){let O;d=p=!1,typeof x=="function"?(x(r.state.value[e]),O={type:Rl.patchFunction,storeId:e,events:m}):(dy(r.state.value[e],x),O={type:Rl.patchObject,payload:x,storeId:e,events:m});const M=b=Symbol();gt().then(()=>{b===M&&(d=!0)}),p=!0,ia(h,O,r.state.value[e])}const w=s?function(){const{state:O}=n,M=O?O():{};this.$patch(j=>{ii(j,M)})}:L3;function T(){a.stop(),h=[],y=[],r._s.delete(e)}function I(x,O){return function(){Yc(r);const M=Array.from(arguments),j=[],V=[];function W(Z){j.push(Z)}function Y(Z){V.push(Z)}ia(y,{args:M,name:x,store:A,after:W,onError:Y});let ne;try{ne=O.apply(this&&this.$id===e?this:A,M)}catch(Z){throw ia(V,Z),Z}return ne instanceof Promise?ne.then(Z=>(ia(j,Z),Z)).catch(Z=>(ia(V,Z),Promise.reject(Z))):(ia(j,ne),ne)}}const C={_p:r,$id:e,$onAction:gw.bind(null,y),$patch:S,$reset:w,$subscribe(x,O={}){const M=gw(h,x,O.detached,()=>j()),j=a.run(()=>ke(()=>r.state.value[e],V=>{(O.flush==="sync"?p:d)&&x({storeId:e,type:Rl.direct,events:m},V)},ii({},f,O)));return M},$dispose:T},A=ks(C);r._s.set(e,A);const $=r._a&&r._a.runWithContext||oM,k=r._e.run(()=>(a=lh(),$(()=>a.run(t))));for(const x in k){const O=k[x];if(Xe(O)&&!aM(O)||Xr(O))s||(v&&sM(O)&&(Xe(O)?O.value=v[x]:dy(O,v[x])),r.state.value[e][x]=O);else if(typeof O=="function"){const M=I(x,O);k[x]=M,u.actions[x]=O}}return ii(A,k),ii(rt(A),k),Object.defineProperty(A,"$state",{get:()=>r.state.value[e],set:x=>{S(O=>{ii(O,x)})}}),r._p.forEach(x=>{ii(A,a.run(()=>x({store:A,app:r._a,pinia:r,options:u})))}),v&&s&&n.hydrate&&n.hydrate(A.$state,v),d=!0,p=!0,A}function P3(e,t,n){let r,o;const s=typeof t=="function";typeof e=="string"?(r=e,o=s?n:t):(o=e,r=e.id);function a(u,f){const d=qc();return u=u||(d?Gt(t0,null):null),u&&Yc(u),u=e0,u._s.has(r)||(s?M3(r,t,o,u):uM(r,o,u)),u._s.get(r)}return a.$id=r,a}function lM(e){{e=rt(e);const t={};for(const n in e){const r=e[n];(Xe(r)||Xr(r))&&(t[n]=xt(e,n))}return t}}var n0=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},Re=(e,t,n)=>(n0(e,t,"read from private field"),n?n.call(e):t.get(e)),wt=(e,t,n
4)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Qe=(e,t,n,r)=>(n0(e,t,"write to private field"),t.set(e,n),n),py=(e,t,n,r)=>({set _(o){Qe(e,t,o)},get _(){return Re(e,t,r)}}),Tn=(e,t,n)=>(n0(e,t,"access private method"),n),wh=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Kc=typeof window>"u"||"Deno"in globalThis;function br(){}function cM(e,t){return typeof e=="function"?e(t):e}function fM(e){return typeof e=="number"&&e>=0&&e!==1/0}function dM(e,t){return Math.max(e+(t||0)-Date.now(),0)}function mw(e,t){return typeof e=="function"?e(t):e}function pM(e,t){return typeof e=="function"?e(t):e}function yw(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:a,stale:u}=e;if(a){if(r){if(t.queryHash!==r0(a,t.options))return!1}else if(!Xl(t.queryKey,a))return!1}if(n!=="all"){const f=t.isActive();if(n==="active"&&!f||n==="inactive"&&f)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||o&&o!==t.state.fetchStatus||s&&!s(t))}function vw(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(Jl(t.options.mutationKey)!==Jl(s))return!1}else if(!Xl(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function r0(e,t){return(t?.queryKeyHashFn||Jl)(e)}function Jl(e){return JSON.stringify(e,(t,n)=>hy(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Xl(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Xl(e[n],t[n])):!1}function B3(e,t){if(e===t)return e;const n=_w(e)&&_w(t);if(n||hy(e)&&hy(t)){const r=n?e:Object.keys(e),o=r.length,s=n?t:Object.keys(t),a=s.length,u=n?[]:{};let f=0;for(let d=0;d<a;d++){const p=n?d:s[d];(!n&&r.includes(p)||n)&&e[p]===void 0&&t[p]===void 0?(u[p]=void 0,f++):(u[p]=B3(e[p],t[p]),u[p]===e[p]&&e[p]!==void 0&&f++)}return o===a&&f===o?e:u}return t}function _w(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function hy(e){if(!bw(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!bw(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function bw(e){return Object.prototype.toString.call(e)==="[object Object]"}function hM(e){return new Promise(t=>{setTimeout(t,e)})}function gM(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?B3(e,t):t}function mM(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function yM(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var N3=Symbol(),D3=(e,t)=>!e.queryFn&&t!=null&&t.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===N3?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn,sa,qi,zu,ww,vM=(ww=class extends wh{constructor(){super(),wt(this,sa,void 0),wt(this,qi,void 0),wt(this,zu,void 0),Qe(this,zu,e=>{if(!Kc&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}})}onSubscribe(){Re(this,qi)||this.setEventListener(Re(this,zu))}onUnsubscribe(){var e;this.hasListeners()||((e=Re(this,qi))==null||e.call(this),Qe(this,qi,void 0))}setEventListener(e){var t;Qe(this,zu,e),(t=Re(this,qi))==null||t.call(this),Qe(this,qi,e(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(e){Re(this,sa)!==e&&(Qe(this,sa,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){var e;return typeof Re(this,sa)=="boolean"?Re(this,sa):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},sa=new WeakMap,qi=new WeakMap,zu=new WeakMap,ww),U3=new vM,Gu,Wi,Yu,Ew,_M=(Ew=class extends wh{constructor(){super(),wt(this,Gu,!0),wt(this,Wi,void 0),wt(this,Yu,void 0),Qe(this,Yu,e=>{if(!Kc&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n
4)}}})}onSubscribe(){Re(this,Wi)||this.setEventListener(Re(this,Yu))}onUnsubscribe(){var e;this.hasListeners()||((e=Re(this,Wi))==null||e.call(this),Qe(this,Wi,void 0))}setEventListener(e){var t;Qe(this,Yu,e),(t=Re(this,Wi))==null||t.call(this),Qe(this,Wi,e(this.setOnline.bind(this)))}setOnline(e){Re(this,Gu)!==e&&(Qe(this,Gu,e),this.listeners.forEach(t=>{t(e)}))}isOnline(){return Re(this,Gu)}},Gu=new WeakMap,Wi=new WeakMap,Yu=new WeakMap,Ew),mp=new _M;function bM(e){return Math.min(1e3*2**e,3e4)}function H3(e){return(e??"online")==="online"?mp.isOnline():!0}var F3=class{constructor(t){this.revert=t?.revert,this.silent=t?.silent}};function Ag(e){return e instanceof F3}function j3(e){let t=!1,n=0,r=!1,o,s,a;const u=new Promise((w,T)=>{s=w,a=T}),f=w=>{var T;r||(v(new F3(w)),(T=e.abort)==null||T.call(e))},d=()=>{t=!0},p=()=>{t=!1},h=()=>U3.isFocused()&&(e.networkMode==="always"||mp.isOnline())&&e.canRun(),y=()=>H3(e.networkMode)&&e.canRun(),m=w=>{var T;r||(r=!0,(T=e.onSuccess)==null||T.call(e,w),o?.(),s(w))},v=w=>{var T;r||(r=!0,(T=e.onError)==null||T.call(e,w),o?.(),a(w))},b=()=>new Promise(w=>{var T;o=I=>{(r||h())&&w(I)},(T=e.onPause)==null||T.call(e)}).then(()=>{var w;o=void 0,r||(w=e.onContinue)==null||w.call(e)}),S=()=>{if(r)return;let w;const T=n===0?e.initialPromise:void 0;try{w=T??e.fn()}catch(I){w=Promise.reject(I)}Promise.resolve(w).then(m).catch(I=>{var C;if(r)return;const A=e.retry??(Kc?0:3),$=e.retryDelay??bM,k=typeof $=="function"?$(n,I):$,x=A===!0||typeof A=="number"&&n<A||typeof A=="function"&&A(n,I);if(t||!x){v(I);return}n++,(C=e.onFail)==null||C.call(e,n,I),hM(k).then(()=>h()?void 0:b()).then(()=>{t?v(I):S()})})};return{promise:u,cancel:f,continue:()=>(o?.(),u),cancelRetry:d,continueRetry:p,canStart:y,start:()=>(y()?S():b().then(S),u)}}function wM(){let e=[],t=0,n=p=>{p()},r=p=>{p()},o=p=>setTimeout(p,0);const s=p=>{o=p},a=p=>{let h;t++;try{h=p()}finally{t--,t||d()}return h},u=p=>{t?e.push(p):o(()=>{n(p)})},f=p=>(...h)=>{u(()=>{p(...h)})},d=()=>{const p=e;e=[],p.length&&o(()=>{r(()=>{p.forEach(h=>{n(h)})})})};return{batch:a,batchCalls:f,schedule:u,setNotifyFunction:p=>{n=p},setBatchNotifyFunction:p=>{r=p},setScheduler:s}}var xn=wM(),aa,Sw,V3=(Sw=class{constructor(){wt(this,aa,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),fM(this.gcTime)&&Qe(this,aa,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Kc?1/0:300*1e3))}clearGcTimeout(){Re(this,aa)&&(clearTimeout(Re(this,aa)),Qe(this,aa,void 0))}},aa=new WeakMap,Sw),Ku,Zu,_r,vn,Hf,ua,Lr,co,$w,EM=($w=class extends V3{constructor(e){super(),wt(this,Lr),wt(this,Ku,void 0),wt(this,Zu,void 0),wt(this,_r,void 0),wt(this,vn,void 0),wt(this,Hf,void 0),wt(this,ua,void 0),Qe(this,ua,!1),Qe(this,Hf,e.defaultOptions),this.setOptions(e.options),this.observers=[],Qe(this,_r,e.cache),this.queryKey=e.queryKey,this.queryHash=e.queryHash,Qe(this,Ku,e.state||$M(this.options)),this.state=Re(this,Ku),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=Re(this,vn))==null?void 0:e.promise}setOptions(e){this.options={...Re(this,Hf),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&Re(this,_r).remove(this)}setData(e,t){const n=gM(this.state.data,e,this.options);return Tn(this,Lr,co).call(this,{data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){Tn(this,Lr,co).call(this,{type:"setState",state:e,setStateOptions:t})}cancel(e){var t,n;const r=(t=Re(this,vn))==null?void 0:t.promise;return(n=Re(this,vn))==null||n.cancel(e),r?r.then(br).catch(br):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Re(this,Ku))}isActive(){return this.observers.some(e=>pM(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(e=0){return this.state.isInvalidated||this.state.data===void 0||!dM(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t?.refetch({cancelRefetch:!1}),(e=Re(this,vn))==null||e.continue()}onOnline(){var e;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t?.refetch({cancelRefetch:!1}),(e=Re(this,vn))==null||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),Re(this,_r).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>
vendor: 9,826 bytes, line 4
4t!==e),this.observers.length||(Re(this,vn)&&(Re(this,ua)?Re(this,vn).cancel({revert:!0}):Re(this,vn).cancelRetry()),this.scheduleGc()),Re(this,_r).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Tn(this,Lr,co).call(this,{type:"invalidate"})}fetch(e,t){var n,r,o;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&t!=null&&t.cancelRefetch)this.cancel({silent:!0});else if(Re(this,vn))return Re(this,vn).continueRetry(),Re(this,vn).promise}if(e&&this.setOptions(e),!this.options.queryFn){const p=this.observers.find(h=>h.options.queryFn);p&&this.setOptions(p.options)}const s=new AbortController,a=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(Qe(this,ua,!0),s.signal)})},u=()=>{const p=D3(this.options,t),h={queryKey:this.queryKey,meta:this.meta};return a(h),Qe(this,ua,!1),this.options.persister?this.options.persister(p,h,this):p(h)},f={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:u};a(f),(n=this.options.behavior)==null||n.onFetch(f,this),Qe(this,Zu,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((r=f.fetchOptions)==null?void 0:r.meta))&&Tn(this,Lr,co).call(this,{type:"fetch",meta:(o=f.fetchOptions)==null?void 0:o.meta});const d=p=>{var h,y,m,v;Ag(p)&&p.silent||Tn(this,Lr,co).call(this,{type:"error",error:p}),Ag(p)||((y=(h=Re(this,_r).config).onError)==null||y.call(h,p,this),(v=(m=Re(this,_r).config).onSettled)==null||v.call(m,this.state.data,p,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return Qe(this,vn,j3({initialPromise:t?.initialPromise,fn:f.fetchFn,abort:s.abort.bind(s),onSuccess:p=>{var h,y,m,v;if(p===void 0){d(new Error(`${this.queryHash} data is undefined`));return}this.setData(p),(y=(h=Re(this,_r).config).onSuccess)==null||y.call(h,p,this),(v=(m=Re(this,_r).config).onSettled)==null||v.call(m,p,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:d,onFail:(p,h)=>{Tn(this,Lr,co).call(this,{type:"failed",failureCount:p,error:h})},onPause:()=>{Tn(this,Lr,co).call(this,{type:"pause"})},onContinue:()=>{Tn(this,Lr,co).call(this,{type:"continue"})},retry:f.options.retry,retryDelay:f.options.retryDelay,networkMode:f.options.networkMode,canRun:()=>!0})),Re(this,vn).start()}},Ku=new WeakMap,Zu=new WeakMap,_r=new WeakMap,vn=new WeakMap,Hf=new WeakMap,ua=new WeakMap,Lr=new WeakSet,co=function(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...SM(n.data,this.options),fetchMeta:e.meta??null};case"success":return{...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const r=e.error;return Ag(r)&&r.revert&&Re(this,Zu)?{...Re(this,Zu),fetchStatus:"idle"}:{...n,error:r,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),xn.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),Re(this,_r).notify({query:this,type:"updated",action:e})})},$w);function SM(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:H3(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function $M(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var fo,Tw,q3=(Tw=class extends wh{constructor(e={}){super(),wt(this,fo,void 0),this.config=e,Qe(this,fo,new Map)}build(e,t,n){const r=t.queryKey,o=t.queryHash??r0(r,t);let s=this.get(o);return s||(s=new EM({cache:this,queryKey:r,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(s)),s}add(e){Re(this,fo).has(e.queryHash)||(Re(this,fo).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=Re(this,fo).get(e.queryHash);t&&(e.destroy(),t===e&&Re(this,fo).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){xn.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return Re(this,fo).get(e)}getAll(){return[...Re(this,fo).values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>yw(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>yw(e,n)):t}notify(e){xn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){xn.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){xn.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},fo=new WeakMap,Tw),po,kn,la,ho,Zo,Iw,TM=(Iw=class extends V3{constructor(e){super(),wt(this,ho),wt(this,po,void 0),wt(this,kn,void 0),wt(this,la,void 0),this.mutationId=e.mutationId,Qe(this,kn,e.mutationCache),Qe(this,po,[]),this.state=e.state||IM(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){Re(this,po).includes(e)||(Re(this,po).push(e),this.clearGcTimeout(),Re(this,kn).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){Qe(this,po,Re(this,po).filter(t=>t!==e)),this.scheduleGc(),Re(this,kn).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){Re(this,po).length||(this.state.status==="pending"?this.scheduleGc():Re(this,kn).remove(this))}continue(){var e;return((e=Re(this,la))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var t,n,r,o,s,a,u,f,d,p,h,y,m,v,b,S,w,T,I,C;Qe(this,la,j3({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(k,x)=>{Tn(this,ho,Zo).call(this,{type:"failed",failureCount:k,error:x})},onPause:()=>{Tn(this,ho,Zo).call(this,{type:"pause"})},onContinue:()=>{Tn(this,ho,Zo).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>Re(this,kn).canRun(this)}));const A=this.state.status==="pending",$=!Re(this,la).canStart();try{if(!A){Tn(this,ho,Zo).call(this,{type:"pending",variables:e,isPaused:$}),await((n=(t=Re(this,kn).config).onMutate)==null?void 0:n.call(t,e,this));const x=await((o=(r=this.options).onMutate)==null?void 0:o.call(r,e));x!==this.state.context&&Tn(this,ho,Zo).call(this,{type:"pending",context:x,variables:e,isPaused:$})}const k=await Re(this,la).start();return await((a=(s=Re(this,kn).config).onSuccess)==null?void 0:a.call(s,k,e,this.state.context,this)),await((f=(u=this.options).onSuccess)==null?void 0:f.call(u,k,e,this.state.context)),await((p=(d=Re(this,kn).config).onSettled)==null?void 0:p.call(d,k,null,this.state.variables,this.state.context,this)),await((y=(h=this.options).onSettled)==null?void 0:y.call(h,k,null,e,this.state.context)),Tn(this,ho,Zo).call(this,{type:"success",data:k}),k}catch(k){try{throw await((v=(m=Re(this,kn).config).onError)==null?void 0:v.call(m,k,e,this.state.context,this)),await((S=(b=this.options).onError)==null?void 0:S.call(b,k,e,this.state.context)),await((T=(w=Re(this,kn).config).onSettled)==null?void 0:T.call(w,void 0,k,this.state.variables,this.state.context,this)),await((C=(I=this.options).onSettled)==null?void 0:C.call(I,void 0,k,e,this.state.context)),k}finally{Tn(this,ho,Zo).call(this,{type:"error",error:k})}}finally{Re(this,kn).runNext(this)}}},po=new WeakMap,kn=new WeakMap,la=new WeakMap,ho=new WeakSet,Zo=function(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),xn.batch(()=>{Re(this,po).forEach(n=>{n.onMutationUpdate(e)}),Re(this,kn).notify({mutation:this,type:"updated",action:e})})},Iw);function IM(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Qn,Ff,Aw,W3=(Aw=class extends wh{constructor(e={}){super(),wt(this,Qn,void 0),wt(this,Ff,void 0),this.config=e,Qe(this,Qn,new Map),Qe(this,Ff,Date.now())}build(e,t,n){const r=new TM({mutationCache:this,mutationId:++py(this,Ff)._,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){const t=jf(e),n=Re(this,Qn).get(t)??[];n.push(e),Re(this,Qn).set(t,n),this.notify({type:"added",mutation:e})}remove(e){var t;const n=jf(e);if(Re(this,Qn).has(n)){const r=(t=Re(this,Qn).get(n))==null?void 0:t.filter(o=>o!==e);r&&(r.length===0?Re(this,Qn).delete(n):Re(this,Qn).set(n,r))}this.notify({type:"removed",mutation:e})}canRun(e){var t;const n=(t=Re(this,Qn).get(jf(e)))==null?void 0:t.find(r=>r.state.status==="pending");return!n||n===e}runNext(e){var t;const n=(t=Re(this,Qn).get(jf(e)))==null?void 0:t.find(r=>
4r!==e&&r.state.isPaused);return n?.continue()??Promise.resolve()}clear(){xn.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}getAll(){return[...Re(this,Qn).values()].flat()}find(e){const t={exact:!0,...e};return this.getAll().find(n=>vw(t,n))}findAll(e={}){return this.getAll().filter(t=>vw(e,t))}notify(e){xn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return xn.batch(()=>Promise.all(e.map(t=>t.continue().catch(br))))}},Qn=new WeakMap,Ff=new WeakMap,Aw);function jf(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function AM(e){return{onFetch:(t,n)=>{const r=async()=>{var o,s,a,u,f;const d=t.options,p=(a=(s=(o=t.fetchOptions)==null?void 0:o.meta)==null?void 0:s.fetchMore)==null?void 0:a.direction,h=((u=t.state.data)==null?void 0:u.pages)||[],y=((f=t.state.data)==null?void 0:f.pageParams)||[],m={pages:[],pageParams:[]};let v=!1;const b=I=>{Object.defineProperty(I,"signal",{enumerable:!0,get:()=>(t.signal.aborted?v=!0:t.signal.addEventListener("abort",()=>{v=!0}),t.signal)})},S=D3(t.options,t.fetchOptions),w=async(I,C,A)=>{if(v)return Promise.reject();if(C==null&&I.pages.length)return Promise.resolve(I);const $={queryKey:t.queryKey,pageParam:C,direction:A?"backward":"forward",meta:t.options.meta};b($);const k=await S($),{maxPages:x}=t.options,O=A?yM:mM;return{pages:O(I.pages,k,x),pageParams:O(I.pageParams,C,x)}};let T;if(p&&h.length){const I=p==="backward",C=I?xM:xw,A={pages:h,pageParams:y},$=C(d,A);T=await w(A,$,I)}else{T=await w(m,y[0]??d.initialPageParam);const I=e??h.length;for(let C=1;C<I;C++){const A=xw(d,T);T=await w(T,A)}}return T};t.options.persister?t.fetchFn=()=>{var o,s;return(s=(o=t.options).persister)==null?void 0:s.call(o,r,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=r}}}function xw(e,{pages:t,pageParams:n}){const r=t.length-1;return e.getNextPageParam(t[r],t,n[r],n)}function xM(e,{pages:t,pageParams:n}){var r;return(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n)}var Wt,zi,Gi,Qu,Ju,Yi,Xu,el,Cw,CM=(Cw=class{constructor(e={}){wt(this,Wt,void 0),wt(this,zi,void 0),wt(this,Gi,void 0),wt(this,Qu,void 0),wt(this,Ju,void 0),wt(this,Yi,void 0),wt(this,Xu,void 0),wt(this,el,void 0),Qe(this,Wt,e.queryCache||new q3),Qe(this,zi,e.mutationCache||new W3),Qe(this,Gi,e.defaultOptions||{}),Qe(this,Qu,new Map),Qe(this,Ju,new Map),Qe(this,Yi,0)}mount(){py(this,Yi)._++,Re(this,Yi)===1&&(Qe(this,Xu,U3.subscribe(async e=>{e&&(await this.resumePausedMutations(),Re(this,Wt).onFocus())})),Qe(this,el,mp.subscribe(async e=>{e&&(await this.resumePausedMutations(),Re(this,Wt).onOnline())})))}unmount(){var e,t;py(this,Yi)._--,Re(this,Yi)===0&&((e=Re(this,Xu))==null||e.call(this),Qe(this,Xu,void 0),(t=Re(this,el))==null||t.call(this),Qe(this,el,void 0))}isFetching(e){return Re(this,Wt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return Re(this,zi).findAll({...e,status:"pending"}).length}getQueryData(e){var t;const n=this.defaultQueryOptions({queryKey:e});return(t=Re(this,Wt).get(n.queryHash))==null?void 0:t.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=Re(this,Wt).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(mw(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return Re(this,Wt).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=Re(this,Wt).get(r.queryHash),s=o?.state.data,a=cM(t,s);if(a!==void 0)return Re(this,Wt).build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return xn.batch(()=>Re(this,Wt).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var t;const n=this.defaultQueryOptions({queryKey:e});return(t=Re(this,Wt).get(n.queryHash))==null?void 0:t.state}removeQueries(e){const t=Re(this,Wt);xn.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=Re(this,Wt),r={type:"active",...e};return xn.batch(()=>(n.findAll(e).forEach(o=>{o.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=xn.batch(()=>Re(this,Wt).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(br).catch(br)}invalidateQueries(e={},t={}){return xn.batch(()=>
4{if(Re(this,Wt).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:t?.cancelRefetch??!0},r=xn.batch(()=>Re(this,Wt).findAll(e).filter(o=>!o.isDisabled()).map(o=>{let s=o.fetch(void 0,n);return n.throwOnError||(s=s.catch(br)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(br)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=Re(this,Wt).build(this,t);return n.isStaleByTime(mw(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(br).catch(br)}fetchInfiniteQuery(e){return e.behavior=AM(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(br).catch(br)}resumePausedMutations(){return mp.isOnline()?Re(this,zi).resumePausedMutations():Promise.resolve()}getQueryCache(){return Re(this,Wt)}getMutationCache(){return Re(this,zi)}getDefaultOptions(){return Re(this,Gi)}setDefaultOptions(e){Qe(this,Gi,e)}setQueryDefaults(e,t){Re(this,Qu).set(Jl(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...Re(this,Qu).values()];let n={};return t.forEach(r=>{Xl(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){Re(this,Ju).set(Jl(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...Re(this,Ju).values()];let n={};return t.forEach(r=>{Xl(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...Re(this,Gi).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=r0(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===N3&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...Re(this,Gi).mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){Re(this,Wt).clear(),Re(this,zi).clear()}},Wt=new WeakMap,zi=new WeakMap,Gi=new WeakMap,Qu=new WeakMap,Ju=new WeakMap,Yi=new WeakMap,Xu=new WeakMap,el=new WeakMap,Cw);function RM(e){return e}function OM(e,t,n){var r,o;if(typeof t!="object"||t===null)return;const s=e.getMutationCache(),a=e.getQueryCache(),u=((r=void 0)==null?void 0:r.deserializeData)??((o=e.getDefaultOptions().hydrate)==null?void 0:o.deserializeData)??RM,f=t.mutations||[],d=t.queries||[];f.forEach(({state:p,...h})=>{var y,m;s.build(e,{...(y=e.getDefaultOptions().hydrate)==null?void 0:y.mutations,...(m=void 0)==null?void 0:m.mutations,...h},p)}),d.forEach(({queryKey:p,state:h,queryHash:y,meta:m,promise:v})=>{var b,S;let w=a.get(y);const T=h.data===void 0?h.data:u(h.data);if(w){if(w.state.dataUpdatedAt<h.dataUpdatedAt){const{fetchStatus:I,...C}=h;w.setState({...C,data:T})}}else w=a.build(e,{...(b=e.getDefaultOptions().hydrate)==null?void 0:b.queries,...(S=void 0)==null?void 0:S.queries,queryKey:p,queryHash:y,meta:m},{...h,data:T,fetchStatus:"idle"});
4if(v){const I=Promise.resolve(v).then(u);w.fetch(void 0,{initialPromise:I})}})}var kM="VUE_QUERY_CLIENT";function LM(e){const t=e?`:${e}`:"";return`${kM}${t}`}function gy(e,t,n="",r=0){if(t){const o=t(e,n,r);if(o===void 0&&Xe(e)||o!==void 0)return o}if(Array.isArray(e))return e.map((o,s)=>gy(o,t,String(s),r+1));if(typeof e=="object"&&PM(e)){const o=Object.entries(e).map(([s,a])=>[s,gy(a,t,s,r+1)]);return Object.fromEntries(o)}return e}function MM(e,t){return gy(e,t)}function et(e,t=!1){return MM(e,(n,r,o)=>{if(o===1&&r==="queryKey")return et(n,!0);if(t&&BM(n))return et(n(),t);if(Xe(n))return et(N(n),t)})}function PM(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function BM(e){return typeof e=="function"}var NM=class extends q3{find(t){return super.find(et(t))}findAll(t={}){return super.findAll(et(t))}},DM=class extends W3{find(t){return super.find(et(t))}findAll(t={}){return super.findAll(et(t))}},z3=class extends CM{constructor(t={}){const n={defaultOptions:t.defaultOptions,queryCache:t.queryCache||new NM,mutationCache:t.mutationCache||new DM};super(n),this.isRestoring=ie(!1)}isFetching(t={}){return super.isFetching(et(t))}isMutating(t={}){return super.isMutating(et(t))}getQueryData(t){return super.getQueryData(et(t))}ensureQueryData(t){return super.ensureQueryData(et(t))}getQueriesData(t){return super.getQueriesData(et(t))}setQueryData(t,n,r={}){return super.setQueryData(et(t),n,et(r))}setQueriesData(t,n,r={}){return super.setQueriesData(et(t),n,et(r))}getQueryState(t){return super.getQueryState(et(t))}removeQueries(t={}){return super.removeQueries(et(t))}resetQueries(t={},n={}){return super.resetQueries(et(t),et(n))}cancelQueries(t={},n={}){return super.cancelQueries(et(t),et(n))}invalidateQueries(t={},n={}){return new Promise(r=>{setTimeout(async()=>{await super.invalidateQueries(et(t),et(n)),r()},0)})}refetchQueries(t={},n={}){return super.refetchQueries(et(t),et(n))}fetchQuery(t){return super.fetchQuery(et(t))}prefetchQuery(t){return super.prefetchQuery(et(t))}fetchInfiniteQuery(t){return super.fetchInfiniteQuery(et(t))}prefetchInfiniteQuery(t){return super.prefetchInfiniteQuery(et(t))}setDefaultOptions(t){super.setDefaultOptions(et(t))}setQueryDefaults(t,n){super.setQueryDefaults(et(t),et(n))}getQueryDefaults(t){return super.getQueryDefaults(et(t))}setMutationDefaults(t,n){super.setMutationDefaults(et(t),et(n))}getMutationDefaults(t){return super.getMutationDefaults(et(t))}},UM={install:(e,t={})=>{const n=LM(t.queryClientKey);let r;if("queryClient"in t&&t.queryClient)r=t.queryClient;else{const a="queryClientConfig"in t?t.queryClientConfig:void 0;r=new z3(a)}Kc||r.mount();let o=()=>{};if(t.clientPersister){r.isRestoring.value=!0;const[a,u]=t.clientPersister(r);o=a,u.then(()=>{var f;r.isRestoring.value=!1,(f=t.clientPersisterOnSuccess)==null||f.call(t,r)})}const s=()=>{r.unmount(),o()};if(e.onUnmount)e.onUnmount(s);else{const a=e.unmount;e.unmount=function(){s(),a()}}e.provide(n,r)}};const ht=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Rn=globalThis,_s="10.44.0";function o0(){return Eh(Rn),Rn}function Eh(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||_s,t[_s]=t[_s]||{}}function Tu(e,t,n=Rn){const r=n.__SENTRY__=n.__SENTRY__||{},o=r[_s]=r[_s]||{};return o[e]||(o[e]=t())}const HM="Sentry Logger ",Rw={};function i0(e){if(!("console"in Rn))return e();const t=Rn.console,n={},r=Object.keys(Rw);r.forEach(o=>{const s=Rw[o];n[o]=t[o],t[o]=s});try{return e()}finally{r.forEach(o=>{t[o]=n[o]})}}function FM(){a0().enabled=!0}function jM(){a0().enabled=!1}function G3(){return a0().enabled}function VM(...e){s0("log",...e)}function qM(...e){s0("warn",...e)}function WM(...e){s0("error",...e)}function s0(e,...t){ht&&G3()&&i0(()=>{Rn.console[e](`${HM}[${e}]:`,...t)})}function a0(){return ht?Tu("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const it={enable:FM,disable:jM,isEnabled:G3,log:VM,warn:qM,error:WM},Y3=50,eu="?",Ow=/\(error: (.*)\)/,kw=/captureMessage|captureException/;function zM(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,o=0)=>{const s=[],a=n.split(` 5`);for(let u=r;u<a.length;u++){let f=a[u];f.length>1024&&(f=f.slice(0,1024));const d=Ow.test(f)?f.replace(Ow,"$1"):f;if(!d.match(/\S*Error: /)){for(const p of t){const h=p(d);if(h){s.push(h);break}}if(s.length>=Y3+o)break}}return GM(s.slice(o))}}function GM(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(Vf(t).function||"")&&t.pop(),t.reverse(),kw.test(Vf(t).function||"")&&(t.pop(),kw.test(Vf(t).function||"")&&t.pop()),t.slice(0,Y3).map(n=>({...n,filename:n.filename||Vf(t).filename,function:n.function||eu}))}function Vf(e){return e[e.length-1]||{}}const xg="<anonymous>";function YM(e){try{return!e||typeof e!="function"?xg:e.name||xg}catch{return xg}}function KM(e){return"__v_isVNode"in e&&e.__v_isVNode?"[VueVNode]":"[VueViewModel]"}const K3=Object.prototype.toString;function u0(e){switch(K3.call(e)){case"[object Error]":case"[object E
5xception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return $h(e,Error)}}function Iu(e,t){return K3.call(e)===`[object ${t}]`}function Z3(e){return Iu(e,"ErrorEvent")}function Lw(e){return Iu(e,"DOMError")}function ZM(e){return Iu(e,"DOMException")}function yp(e){return Iu(e,"String")}function l0(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Q3(e){return e===null||l0(e)||typeof e!="object"&&typeof e!="function"}function ec(e){return Iu(e,"Object")}function Sh(e){return typeof Event<"u"&&$h(e,Event)}function QM(e){return typeof Element<"u"&&$h(e,Element)}function JM(e){return Iu(e,"RegExp")}function Zc(e){return!!(e?.then&&typeof e.then=="function")}function XM(e){return ec(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function $h(e,t){try{return e instanceof t}catch{return!1}}function eP(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue||e.__v_isVNode))}const tP=Rn,nP=80;function rP(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,o=[];let s=0,a=0;const u=" > ",f=u.length;let d;const p=Array.isArray(t)?t:t.keyAttrs,h=!Array.isArray(t)&&t.maxStringLength||nP;for(;n&&s++<r&&(d=oP(n,p),!(d==="html"||s>1&&a+o.length*f+d.length>=h));)o.push(d),a+=d.length,n=n.parentNode;return o.reverse().join(u)}catch{return"<unknown>"}}function oP(e,t){const n=e,r=[];if(!n?.tagName)return"";if(tP.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const o=t?.length?t.filter(a=>n.getAttribute(a)).map(a=>[a,n.getAttribute(a)]):null;if(o?.length)o.forEach(a=>{r.push(`[${a[0]}="${a[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const a=n.className;if(a&&yp(a)){const u=a.split(/\s+/);for(const f of u)r.push(`.${f}`)}}const s=["aria-label","type","name","title","alt"];for(const a of s){const u=n.getAttribute(a);u&&r.push(`[${a}="${u}"]`)}return r.join("")}function J3(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{ht&&it.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function X3(e){if(u0(e))return{message:e.message,name:e.name,stack:e.stack,...Pw(e)};if(Sh(e)){const t={type:e.type,target:Mw(e.target),currentTarget:Mw(e.currentTarget),...Pw(e)};return typeof CustomEvent<"u"&&$h(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function Mw(e){try{return QM(e)?rP(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function Pw(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function iP(e){const t=Object.keys(X3(e));return t.sort(),t[0]?t.join(", "):"[object has no keys]"}let ca;function Th(e){if(ca!==void 0)return ca?ca(e):e();const t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),n=Rn;return t in n&&typeof n[t]=="function"?(ca=n[t],ca(e)):(ca=null,e())}function vp(){return Th(()=>Math.random())}function Ih(){return Th(()=>Date.now())}function my(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Cg(e,t,n=!1){return yp(e)?JM(t)?t.test(e):yp(t)?n?e===t:e.includes(t):!1:!1}function sP(){const e=Rn;return e.crypto||e.msCrypto}let Rg;function aP(){return vp()*16}function eo(e=sP()){try{if(e?.randomUUID)return Th(()=>e.randomUUID()).replace(/-/g,"")}catch{}return Rg||(Rg="10000000100040008000"+1e11),Rg.replace(/[018]/g,t=>(t^(aP()&15)>>t/4).toString(16))}function uP(e){return e.exception?.values?.[0]}function Bw(e,t,n){const r=e.exception=e.exception||{},o=r.values=r.values||[],s=o[0]=o[0]||{};s.value||(s.value=t||""),s.type||(s.type="Error")}function tc(e,t){const n=uP(e);if(!n)return;const r={type:"generic",handled:!0},o=n.mechanism;if(n.mechanism={...r,...o,...t},t&&"data"in t){const s={...o?.data,...t.data};n.mechanism.data=s}}function Nw(e){if(lP(e))return!0;try{J3(e,"__sentry_captured__",!0)}catch{}return!1}function lP(e){try{return e.__sentry_captured__}catch{}}const eA=1e3;function Ah(){return Ih()/eA}function cP(){const{performance:e}=Rn;if(!e?.now||!e.timeOrigin)return Ah;const t=e.timeOrigin;return()=>(t+Th(()=>e.now()))/eA}let Dw;function tA(){return(Dw??(Dw=cP()))()}function yy(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||tA(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:eo()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),t
vendor: 6,190 bytes, line 5
5ypeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function Qc(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&Object.keys(t).length===0)return e;const r={...e};for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=Qc(r[o],t[o],n-1));return r}function Uw(){return eo()}function nA(){return eo().substring(16)}const vy="_sentrySpan";function Hw(e,t){t?J3(e,vy,t):delete e[vy]}function Fw(e){return e[vy]}const fP=100;class so{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:Uw(),sampleRand:vp()}}clone(){const t=new so;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._attributes={...this._attributes},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,t._conversationId=this._conversationId,Hw(t,Fw(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&yy(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(t){return this._conversationId=t||void 0,this._notifyScopeListeners(),this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this.setTags({[t]:n})}setAttributes(t){return this._attributes={...this._attributes,...t},this._notifyScopeListeners(),this}setAttribute(t,n){return this.setAttributes({[t]:n})}removeAttribute(t){return t in this._attributes&&(delete this._attributes[t],this._notifyScopeListeners()),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,r=n instanceof so?n.getScopeData():ec(n)?t:void 0,{tags:o,attributes:s,extra:a,user:u,contexts:f,level:d,fingerprint:p=[],propagationContext:h,conversationId:y}=r||{};return this._tags={...this._tags,...o},this._attributes={...this._attributes,...s},this._extra={...this._extra,...a},this._contexts={...this._contexts,...f},u&&Object.keys(u).length&&(this._user=u),d&&(this._level=d),p.length&&(this._fingerprint=p),h&&(this._propagationContext=h),y&&(this._conversationId=y),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,Hw(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Uw(),sampleRand:vp()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:fP;if(r<=0)return this;const o={timestamp:Ah(),...t,message:t.message?my(t.message,2048):t.message};return this._breadcrumbs.push(o),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Fw(this),conversationId:this._conversationId}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=Qc(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n?.event_id||eo();if(!this._client)return ht&&it.warn("No client configured on scope - will not capture exception!"),r;const o=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:o,...n,event_id:r},this),r}captureMessage(t,n,r){const o=r?.event_id||eo();if(!this._client)return ht&&it.warn("No client configured on scope - will not capture message!"),o;const s=r?.syntheticException??new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:s,...r,event_id:o},this),o}captureEvent(t,n){const r=t.event_id||n?.event_id||eo();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(ht&&it.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEac
vendor: 14,666 bytes, lines 5-7
5h(t=>{t(this)}),this._notifyingListeners=!1)}}function dP(){return Tu("defaultCurrentScope",()=>new so)}function pP(){return Tu("defaultIsolationScope",()=>new so)}class hP{constructor(t,n){let r;t?r=t:r=new so;let o;n?o=n:o=new so,this._stack=[{scope:r}],this._isolationScope=o}withScope(t){const n=this._pushScope();let r;try{r=t(n)}catch(o){throw this._popScope(),o}return Zc(r)?r.then(o=>(this._popScope(),o),o=>{throw this._popScope(),o}):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function tu(){const e=o0(),t=Eh(e);return t.stack=t.stack||new hP(dP(),pP())}function gP(e){return tu().withScope(e)}function mP(e,t){const n=tu();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function jw(e){return tu().withScope(()=>e(tu().getIsolationScope()))}function yP(){return{withIsolationScope:jw,withScope:gP,withSetScope:mP,withSetIsolationScope:(e,t)=>jw(t),getCurrentScope:()=>tu().getScope(),getIsolationScope:()=>tu().getIsolationScope()}}function rA(e){const t=Eh(e);return t.acs?t.acs:yP()}function c0(){const e=o0();return rA(e).getCurrentScope()}function vP(){const e=o0();return rA(e).getIsolationScope()}function _P(){return Tu("globalScope",()=>new so)}function Jc(){return c0().getClient()}function bP(e){const t=e.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:o}=t,s={trace_id:n,span_id:o||nA()};return r&&(s.parent_span_id=r),s}const wP="sentry.source",EP="sentry.sample_rate",SP="sentry.previous_trace_sample_rate",$P="sentry.op",TP="sentry.origin",oA="sentry.profile_id",iA="sentry.exclusive_time",IP=0,AP=1,xP="_sentryScope",CP="_sentryIsolationScope";function RP(e){if(e){if(typeof e=="object"&&"deref"in e&&typeof e.deref=="function")try{return e.deref()}catch{return}return e}}function sA(e){const t=e;return{scope:t[xP],isolationScope:RP(t[CP])}}const OP="sentry-",kP=/^sentry-/;function LP(e){const t=MP(e);if(!t)return;const n=Object.entries(t).reduce((r,[o,s])=>{if(o.match(kP)){const a=o.slice(OP.length);r[a]=s}return r},{});if(Object.keys(n).length>0)return n}function MP(e){if(!(!e||!yp(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const r=Vw(n);return Object.entries(r).forEach(([o,s])=>{t[o]=s}),t},{}):Vw(e)}function Vw(e){return e.split(",").map(t=>{const n=t.indexOf("=");if(n===-1)return[];const r=t.slice(0,n),o=t.slice(n+1);return[r,o].map(s=>{try{return decodeURIComponent(s.trim())}catch{return}})}).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}const PP=/^o(\d+)\./,BP=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function NP(e){return e==="http"||e==="https"}function Xc(e,t=!1){const{host:n,path:r,pass:o,port:s,projectId:a,protocol:u,publicKey:f}=e;return`${u}://${f}${t&&o?`:${o}`:""}@${n}${s?`:${s}`:""}/${r&&`${r}/`}${a}`}function DP(e){const t=BP.exec(e);if(!t){i0(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,o="",s="",a="",u=""]=t.slice(1);let f="",d=u;const p=d.split("/");if(p.length>1&&(f=p.slice(0,-1).join("/"),d=p.pop()),d){const h=d.match(/^\d+/);h&&(d=h[0])}return aA({host:s,pass:o,path:f,projectId:d,port:a,protocol:n,publicKey:r})}function aA(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function UP(e){if(!ht)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(a=>e[a]?!1:(it.error(`Invalid Sentry Dsn: ${a} missing`),!0))?!1:n.match(/^\d+$/)?NP(r)?t&&isNaN(parseInt(t,10))?(it.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(it.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(it.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function HP(e){return e.match(PP)?.[1]}function FP(e){const t=e.getOptions(),{host:n}=e.getDsn()||{};let r;return t.orgId?r=String(t.orgId):n&&(r=HP(n)),r}function jP(e){const t=typeof e=="string"?DP(e):aA(e);if(!(!t||!UP(t)))return t}function VP(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(!(typeof t!="number"||isNaN(t)||t<0||t>1))return t}const uA=1;let qw=!1;function qP(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext(),o=r?t:f0(e).parent_span_id,s=sA(e).scope,a=r?s?.getPropagationContext().propagationSpanId||nA():t;return{parent_span_id:o,span_id:a,trace_id:n}}function WP(e){if(e&&e.length>0)return e.map(({context:{spanId:t,traceId:n,traceFlags:r,...o},attributes:s})=>({span_id:t,trace_id:n,sampled:r===uA,attributes:s,...o}))}function Ww(e){return typeof e=="number"?zw(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?zw(e.getTime()):tA()}function zw(e){return e>9999999999?e/1e3:e}function f0(e){if(GP(e))return e.getSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(zP(e)){const{attributes:r,startTime:o,name:s,endTime:a,status:u,links:f}=e,d="parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0;return{span_id:t,trace_id:n,data:r,description:s,parent_span_id:d,start_timestamp:Ww(o),timestamp:Ww(a)||void 0,status:KP(u),op:r[$P],origin:r[TP],links:WP(f)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function zP(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function GP(e){return typeof e.getSpanJSON=="function"}function YP(e){const{traceFlags:t}=e.spanContext();return t===uA}function KP(e){if(!(!e||e.code===IP))return e.code===AP?"ok":e.message||"internal_error"}const ZP="_sentryRootSpan";function lA(e){return e[ZP]||e}function Gw(){qw||(i0(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),qw=!0)}function QP(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=Jc()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}function Yw(e){it.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function Kw(e,t){if(!t?.length||!e.description)return!1;for(const n of t){if(XP(n)){if(Cg(e.description,n))return ht&&Yw(e),!0;continue}if(!n.name&&!n.op)continue;const r=n.name?Cg(e.description,n.name):!0,o=n.op?e.op&&Cg(e.op,n.op):!0;if(r&&o)return ht&&Yw(e),!0}return!1}function JP(e,t){const n=t.parent_span_id,r=t.span_id;if(n)for(const o of e)o.parent_span_id===r&&(o.parent_span_id=n)}function XP(e){return typeof e=="string"||e instanceof RegExp}const d0="production",e9="_frozenDsc";function cA(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},o={environment:n.environment||d0,release:n.release,public_key:r,trace_id:e,org_id:FP(t)};return t.emit("createDsc",o),o}function t9(e,t){const n=t.getPropagationContext();return n.dsc||cA(n.traceId,e)}function n9(e){const t=Jc();if(!t)return{};const n=lA(e),r=f0(n),o=r.data,s=n.spanContext().traceState,a=s?.get("sentry.sample_rate")??o[EP]??o[SP];function u(v){return(typeof a=="number"||typeof a=="string")&&(v.sample_rate=`${a}`),v}const f=n[e9];if(f)return u(f);const d=s?.get("sentry.dsc"),p=d&&LP(d);if(p)return u(p);const h=cA(e.spanContext().traceId,t),y=o[wP],m=r.description;return y!=="url"&&m&&(h.transaction=m),QP()&&(h.sampled=String(YP(n)),h.sample_rand=s?.get("sentry.sample_rand")??sA(n).scope?.getPropagationContext().sampleRand.toString()),u(h),t.emit("createDsc",h,n),h}function _o(e,t=100,n=1/0){try{return _y("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function fA(e,t=3,n=100*1024){const r=_o(e,t);return s9(r)>n?fA(e,t-1,n):r}function _y(e,t,n=1/0,r=1/0,o=a9()){const[s,a]=o;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const u=r9(e,t);if(!u.startsWith("[object "))return u;if(t.__sentry_skip_normalization__)return t;const f=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(f===0)return u.replace("object ","");if(s(t))return"[Circular ~]";const d=t;if(d&&typeof d.toJSON=="function")try{const m=d.toJSON();return _y("",m,f-1,r,o)}catch{}const p=Array.isArray(t)?[]:{};let h=0;const y=X3(t);for(const m in y){if(!Object.prototype.hasOwnProperty.call(y,m))continue;if(h>=r){p[m]="[MaxProperties ~]";break}const v=y[m];p[m]=_y(m,v,f-1,r,o),h++}return a(t),p}function r9(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(eP(t))return KM(t);if(XM(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${YM(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=o9(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function o9(e){const t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}function i9(e){return~-encodeURI(e).split(/%..|./).length}function s9(e){return i9(JSON.stringify(e))}function a9(){const e=new WeakSet;function t(r){return e.has(r)?!0:(e.add(r),!1)}function n(r){e.delete(r)}return[t,n]}function Au(e,t=[]){return[e,t]}function u9(e,t){const[n,r]=e;return[n,[...r,t]]}function by(e,t){const n=e[1];for(const r of n){const o=r[0].type;if(t(r,o))return!0}return!1}function l9(e,t){return by(e,(n,r)=>t.includes(r))}function wy(e){const t=Eh(Rn);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function c9(e){const[t,n]=e;let r=JSON.stringify(t);function o(s){typeof r=="string"?r=typeof s=="string"?r+s:[wy(r),s]:r.push(typeof s=="string"?wy(s):s)}for(const s of n){const[a,u]=s;if(o(` 6${JSON.stringify(a)} 7`),typeof u=="string"||u instanceof Uint8Array)o(u);else{let f;try{f=JSON.stringify(u)}catch{f=JSON.stringify(_o(u))}o(f)}}return typeof r=="string"?r:f9(r)}function f9(e){const t=e.reduce((o,s)=>o+s.length,0),n=new Uint8Array(t);let r=0;for(const o of e)n.set(o,r),r+=o.length;return n}function d9(e){const t=typeof e.data=="string"?wy(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}const p9={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",log:"log_item",metric:"metric",trace_metric:"metric"};function Zw(e){return p9[e]}function dA(e){if(!e?.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function h9(e,t,n,r){const o=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Xc(r)},...o&&{trace:o}}}function g9(e,t){if(!t)return e;const n=e.sdk||{};return e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0},e}function m9(e,t,n,r){const o=dA(n),s={sent_at:new Date().toISOString(),...o&&{sdk:o},...!!r&&t&&{dsn:Xc(t)}},a="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return Au(s,[a])}function y9(e,t,n,r){const o=dA(n),s=e.type&&e.type!=="replay_event"?e.type:"event";g9(e,n?.sdk);const a=h9(e,o,r,t);return delete e.sdkProcessingMetadata,Au(a,[[{type:s},e]])}const Og=0,Qw=1,Jw=2;function ef(e){return new nc(t=>{t(e)})}function p0(e){return new nc((t,n)=>{n(e)})}class nc{constructor(t){this._state=Og,this._handlers=[],this._runExecutor(t)}then(t,n){return new nc((r,o)=>{this._handlers.push([!1,s=>{if(!t)r(s);else try{r(t(s))}catch(a){o(a)}},s=>{if(!n)o(s);else try{r(n(s))}catch(a){o(a)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new nc((n,r)=>{let o,s;return this.then(a=>{s=!1,o=a,t&&t()},a=>{s=!0,o=a,t&&t()}).then(()=>{if(s){r(o);return}n(o)})})}_executeHandlers(){if(this._state===Og)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===Qw&&n[1](this._value),this._state===Jw&&n[2](this._value),n[0]=!0)})}_runExecutor(t){const n=(s,a)=>{if(this._state===Og){if(Zc(a)){a.then(r,o);return}this._state=s,this._value=a,this._executeHandlers()}},r=s=>{n(Qw,s)},o=s=>{n(Jw,s)};try{t(r,o)}catch(s){o(s)}}}function v9(e,t,n,r=0){try{const o=Ey(t,n,e,r);return Zc(o)?o:ef(o)}catch(o){return p0(o)}}function Ey(e,t,n,r){const o=n[r];if(!e||!o)return e;const s=o({...e},t);return ht&&s===null&&it.log(`Event processor "${o.id||"?"}" dropped event`),Zc(s)?s.then(a=>Ey(a,t,n,r+1)):Ey(s,t,n,r+1)}let Ki,Xw,e2,Qo;function _9(e){const t=Rn._sentryDebugIds,n=Rn._debugIds;if(!t&&!n)return{};const r=t?Object.keys(t):[],o=n?Object.keys(n):[];if(Qo&&r.length===Xw&&o.length===e2)return Qo;Xw=r.length,e2=o.length,Qo={},Ki||(Ki={});const s=(a,u)=>{for(const f of a){const d=u[f],p=Ki?.[f];if(p&&Qo&&d)Qo[p[0]]=d,Ki&&(Ki[f]=[p[0],d]);else if(d){const h=e(f);for(let y=h.length-1;y>=0;y--){const v=h[y]?.filename;if(v&&Qo&&Ki){Qo[v]=d,Ki[f]=[v,d];break}}}}};return t&&s(r,t),n&&s(o,n),Qo}function b9(e,t){const{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:s}=t;E9(e,t),r&&T9(e,r),I9(e,n),S9(e,o),$9(e,s)}function t2(e,t){const{extra:n,tags:r,attributes:o,user:s,contexts:a,level:u,sdkProcessingMetadata:f,breadcrumbs:d,fingerprint:p,eventProcessors:h,attachments:y,propagationContext:m,transactionName:v,span:b}=t;tl(e,"extra",n),tl(e,"tags",r),tl(e,"attributes",o),tl(e,"user",s),tl(e,"contexts",a),e.sdkProcessingMetadata=Qc(e.sdkProcessingMetadata,f,2),u&&(e.level=u),v&&(e.transactionName=v),b&&(e.span=b),d.length&&(e.breadcrumbs=[...e.breadcrumbs,...d]),p.length&&(e.fingerprint=[...e.fingerprint,...p]),h.length&&(e.eventProcessors=[...e.eventProcessors,...h]),y.length&&(e.attachments=[...e.attachments,...y]),e.propagationContext={...e.propagationContext,...m}}function tl(e,t,n){e[t]=Qc(e[t],n,1)}function w9(e,t){const n=_P().getScopeData();return e&&t2(n,e.getScopeData()),t&&t2(n,t.getScopeData()),n}function E9(e,t){const{extra:n,tags:r,user:o,contexts:s,level:a,transactionName:u}=t;
7Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(o).length&&(e.user={...o,...e.user}),Object.keys(s).length&&(e.contexts={...s,...e.contexts}),a&&(e.level=a),u&&e.type!=="transaction"&&(e.transaction=u)}function S9(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function $9(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function T9(e,t){e.contexts={trace:qP(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:n9(t),...e.sdkProcessingMetadata};const n=lA(t),r=f0(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function I9(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}function A9(e,t,n,r,o,s){const{normalizeDepth:a=3,normalizeMaxBreadth:u=1e3}=e,f={...t,event_id:t.event_id||n.event_id||eo(),timestamp:t.timestamp||Ah()},d=n.integrations||e.integrations.map(w=>w.name);x9(f,e),O9(f,d),o&&o.emit("applyFrameMetadata",t),t.type===void 0&&C9(f,e.stackParser);const p=L9(r,n.captureContext);n.mechanism&&tc(f,n.mechanism);const h=o?o.getEventProcessors():[],y=w9(s,p),m=[...n.attachments||[],...y.attachments];m.length&&(n.attachments=m),b9(f,y);const v=[...h,...y.eventProcessors];return(n.data&&n.data.__sentry__===!0?ef(f):v9(v,f,n)).then(w=>(w&&R9(w),typeof a=="number"&&a>0?k9(w,a,u):w))}function x9(e,t){const{environment:n,release:r,dist:o,maxValueLength:s}=t;e.environment=e.environment||n||d0,!e.release&&r&&(e.release=r),!e.dist&&o&&(e.dist=o);const a=e.request;a?.url&&s&&(a.url=my(a.url,s)),s&&e.exception?.values?.forEach(u=>{u.value&&(u.value=my(u.value,s))})}function C9(e,t){const n=_9(t);e.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(o=>{o.filename&&(o.debug_id=n[o.filename])})})}function R9(e){const t={};if(e.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(o=>{o.debug_id&&(o.abs_path?t[o.abs_path]=o.debug_id:o.filename&&(t[o.filename]=o.debug_id),delete o.debug_id)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([r,o])=>{n.push({type:"sourcemap",code_file:r,debug_id:o})})}function O9(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function k9(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(o=>({...o,...o.data&&{data:_o(o.data,t,n)}}))},...e.user&&{user:_o(e.user,t,n)},...e.contexts&&{contexts:_o(e.contexts,t,n)},...e.extra&&{extra:_o(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=_o(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(o=>({...o,...o.data&&{data:_o(o.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=_o(e.contexts.flags,3,n)),r}function L9(e,t){if(!t)return e;const n=e?e.clone():new so;return n.update(t),n}function M9(e,t){const n=typeof t=="string"?t:void 0,r=typeof t!="string"?{captureContext:t}:void 0;return c0().captureMessage(e,n,r)}function P9(){return!!Jc()}const B9="7";function N9(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function D9(e){return`${N9(e)}${e.projectId}/envelope/`}function U9(e,t){const n={sentry_version:B9};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function H9(e,t,n){return t||`${D9(e)}?${U9(e,n)}`}const n2=[];function F9(e,t){const n={};return t.forEach(r=>{r&&pA(e,r,n)}),n}function r2(e,t){for(const n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function pA(e,t,n){if(n[t.name]){ht&&it.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,!n2.includes(t.name)&&typeof t.setupOnce=="function"&&(t.setupOnce(),n2.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(o,s)=>r(o,s,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),o=Object.assign((s,a)=>r(s,a,e),{id:t.name});e.addEventProcessor(o)}ht&&it.log(`Integration installed: ${t.name}`)}function j9(e){return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{items:e}]}function V9(e,t,n,r){const o={};return t?.sdk&&(o.sdk={name:t.sdk.name,version:t.sdk.version}
7),n&&r&&(o.dsn=Xc(r)),Au(o,[j9(e)])}function Sy(e,t){const n=t??q9(e)??[];if(n.length===0)return;const r=e.getOptions(),o=V9(n,r._metadata,r.tunnel,e.getDsn());hA().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(o)}function q9(e){return hA().get(e)}function hA(){return Tu("clientToLogBufferMap",()=>new WeakMap)}function W9(e){return[{type:"trace_metric",item_count:e.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:e}]}function z9(e,t,n,r){const o={};return t?.sdk&&(o.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(o.dsn=Xc(r)),Au(o,[W9(e)])}function gA(e,t){const n=t??G9(e)??[];if(n.length===0)return;const r=e.getOptions(),o=z9(n,r._metadata,r.tunnel,e.getDsn());mA().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(o)}function G9(e){return mA().get(e)}function mA(){return Tu("clientToMetricBufferMap",()=>new WeakMap)}function yA(e){return typeof e=="object"&&typeof e.unref=="function"&&e.unref(),e}const h0=Symbol.for("SentryBufferFullError");function g0(e=100){const t=new Set;function n(){return t.size<e}function r(a){t.delete(a)}function o(a){if(!n())return p0(h0);const u=a();return t.add(u),u.then(()=>r(u),()=>r(u)),u}function s(a){if(!t.size)return ef(!0);const u=Promise.allSettled(Array.from(t)).then(()=>!0);if(!a)return u;const f=[u,new Promise(d=>yA(setTimeout(()=>d(!1),a)))];return Promise.race(f)}return{get $(){return Array.from(t)},add:o,drain:s}}const Y9=60*1e3;function K9(e,t=Ih()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?Y9:r-t}function Z9(e,t){return e[t]||e.all||0}function Q9(e,t,n=Ih()){return Z9(e,t)>n}function J9(e,{statusCode:t,headers:n},r=Ih()){const o={...e},s=n?.["x-sentry-rate-limits"],a=n?.["retry-after"];if(s)for(const u of s.trim().split(",")){const[f,d,,,p]=u.split(":",5),h=parseInt(f,10),y=(isNaN(h)?60:h)*1e3;if(!d)o.all=r+y;else for(const m of d.split(";"))m==="metric_bucket"?(!p||p.split(";").includes("custom"))&&(o[m]=r+y):o[m]=r+y}else a?o.all=r+K9(a,r):t===429&&(o.all=r+60*1e3);return o}const vA=64;function X9(e,t,n=g0(e.bufferSize||vA)){let r={};const o=a=>n.drain(a);function s(a){const u=[];if(by(a,(h,y)=>{const m=Zw(y);Q9(r,m)?e.recordDroppedEvent("ratelimit_backoff",m):u.push(h)}),u.length===0)return Promise.resolve({});const f=Au(a[0],u),d=h=>{if(l9(f,["client_report"])){ht&&it.warn(`Dropping client report. Will not send outcomes (reason: ${h}).`);return}by(f,(y,m)=>{e.recordDroppedEvent(h,Zw(m))})},p=()=>t({body:c9(f)}).then(h=>h.statusCode===413?(ht&&it.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),d("send_error"),h):(ht&&h.statusCode!==void 0&&(h.statusCode<200||h.statusCode>=300)&&it.warn(`Sentry responded with status code ${h.statusCode} to sent event.`),r=J9(r,h),h),h=>{throw d("network_error"),ht&&it.error("Encountered error running transport request:",h),h});return n.add(p).then(h=>h,h=>{if(h===h0)return ht&&it.error("Skipped sending event because buffer is full."),d("queue_overflow"),Promise.resolve({});throw h})}return{send:s,flush:o}}function e7(e,t,n){const r=[{type:"client_report"},{timestamp:Ah(),discarded_events:e}];return Au(t?{dsn:t}:{},[r])}function t7(e){const t=[];e.message&&t.push(e.message);try{const n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function n7(e){const{trace_id:t,parent_span_id:n,span_id:r,status:o,origin:s,data:a,op:u}=e.contexts?.trace??{};return{data:a??{},description:e.transaction,op:u,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:o,timestamp:e.timestamp,trace_id:t??"",origin:s,profile_id:a?.[oA],exclusive_time:a?.[iA],measurements:e.measurements,is_segment:!0}}function r7(e){return{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[oA]:e.profile_id},...e.exclusive_time&&{[iA]:e.exclusive_time}}}},measurements:e.measurements}}const o2="Not capturing exception because it's already been captured.",i2="Discarded session because of missing or non-string release",_A=Symbol.for("SentryInternalError"),bA=Symbol.for("SentryDoNotSendEventError"),o7=5e3;function Sd(e){return{message:e,[_A]:!0}}function kg(e){return{message:e,[bA]:!0}}function s2(e){return!!e&&typeof e=="object"&&_A in e}function a2(e){return!!e&&typeof e=="object"&&bA in e}function u2(e,t,n,r,o){let s=0,a,u=!1;e.on(n,()=>{s=0,clearTimeout(a),u=!1}),e.on(t,f=>{s+=r(f),s>=8e5?o(e):u||(u=!0,a=yA(setTimeout(()=>{o(e)},o7)))}),e.on("flush",()=>{o(e)})}class i7{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=g0(t.transportOptions?.bufferSize??vA),t.dsn?this._dsn=jP(t.dsn):ht&&it.warn("No DSN provided, client will not send events."),this._dsn){const r=H9(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:r})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&u2(this,"afterCaptureLog","flushLogs",l7,Sy),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&u2(this,"afterCaptureMetric","flushMetrics",u7,gA)}captureException(t,n,r){const o=eo();if(Nw(t))return ht&&it.log(o2),o;const s={event_id:o,...n};return this._process(()=>this.eventFromException(t,s).then(a=>this._captureEvent(a,s,r)).then(a=>a),"error"),s.event_id}captureMessage(t,n,r,o){const s={event_id:eo(),...r}
7,a=l0(t)?t:String(t),u=Q3(t),f=u?this.eventFromMessage(a,n,s):this.eventFromException(t,s);return this._process(()=>f.then(d=>this._captureEvent(d,s,o)),u?"unknown":"error"),s.event_id}captureEvent(t,n,r){const o=eo();if(n?.originalException&&Nw(n.originalException))return ht&&it.log(o2),o;const s={event_id:o,...n},a=t.sdkProcessingMetadata||{},u=a.capturedSpanScope,f=a.capturedSpanIsolationScope,d=l2(t.type);return this._process(()=>this._captureEvent(t,s,u||r,f),d),s.event_id}captureSession(t){this.sendSession(t),yy(t,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(t){const n=this._transport;if(!n)return!0;this.emit("flush");const r=await this._isClientDoneProcessing(t),o=await n.flush(t);return r&&o}async close(t){Sy(this);const n=await this.flush(t);return this.getOptions().enabled=!1,this.emit("close"),n}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];pA(this,t,this._integrations),n||r2(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=y9(t,this._dsn,this._options._metadata,this._options.tunnel);for(const o of n.attachments||[])r=u9(r,d9(o));this.sendEnvelope(r).then(o=>
7this.emit("afterSendEvent",t,o))}sendSession(t){const{release:n,environment:r=d0}=this._options;if("aggregates"in t){const s=t.attrs||{};if(!s.release&&!n){ht&&it.warn(i2);return}s.release=s.release||n,s.environment=s.environment||r,t.attrs=s}else{if(!t.release&&!n){ht&&it.warn(i2);return}t.release=t.release||n,t.environment=t.environment||r}this.emit("beforeSendSession",t);const o=m9(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(o)}recordDroppedEvent(t,n,r=1){if(this._options.sendClientReports){const o=`${t}:${n}`;ht&&it.log(`Recording outcome: "${o}"${r>1?` (${r} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+r}}on(t,n){const r=this._hooks[t]=this._hooks[t]||new Set,o=(...s)=>n(...s);return r.add(o),()=>{r.delete(o)}}emit(t,...n){const r=this._hooks[t];r&&r.forEach(o=>o(...n))}async sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)try{return await this._transport.send(t)}catch(n){return ht&&it.error("Error while sending envelope:",n),{}}return ht&&it.error("Transport disabled"),{}}dispose(){}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=F9(this,t),r2(this,t)}_updateSessionFromEvent(t,n){let r=n.level==="fatal",o=!1;const s=n.exception?.values;if(s){o=!0,r=!1;for(const f of s)if(f.mechanism?.handled===!1){r=!0;break}}const a=t.status==="ok";(a&&t.errors===0||a&&r)&&(yy(t,{...r&&{status:"crashed"},errors:t.errors||Number(o||r)}),this.captureSession(t))}async _isClientDoneProcessing(t){let n=0;for(;!t||n<t;){if(await new Promise(r=>setTimeout(r,1)),!this._numProcessing)return!0;n++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,o){const s=this.getOptions(),a=Object.keys(this._integrations);return!n.integrations&&a?.length&&(n.integrations=a),this.emit("preprocessEvent",t,n),t.type||o.setLastEventId(t.event_id||n.event_id),A9(s,t,n,r,this,o).then(u=>{if(u===null)return u;this.emit("postprocessEvent",u,n),u.contexts={trace:{...u.contexts?.trace,...bP(r)},...u.contexts};const f=t9(this,r);return u.sdkProcessingMetadata={dynamicSamplingContext:f,...u.sdkProcessingMetadata},u})}_captureEvent(t,n={},r=c0(),o=vP()){return ht&&$y(t)&&it.log(`Captured error event \`${t7(t)[0]||"<unknown>"}\``),this._processEvent(t,n,r,o).then(s=>s.event_id,s=>{ht&&(a2(s)?it.log(s.message):s2(s)?it.warn(s.message):it.warn(s))})}_processEvent(t,n,r,o){const s=this.getOptions(),{sampleRate:a}=s,u=wA(t),f=$y(t),p=`before send for type \`${t.type||"error"}\``,h=typeof a>"u"?void 0:VP(a);if(f&&typeof h=="number"&&vp()>h)return this.recordDroppedEvent("sample_rate","error"),p0(kg(`Discarding event because it's not included in the random sample (sampling rate = ${a})`));const y=l2(t.type);return this._prepareEvent(t,n,r,o).then(m=>{if(m===null)throw this.recordDroppedEvent("event_processor",y),kg("An event processor returned `null`, will not send event.");if(n.data?.__sentry__===!0)return m;const b=a7(this,s,m,n);return s7(b,p)}).then(m=>{if(m===null){if(this.recordDroppedEvent("before_send",y),u){const w=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",w)}throw kg(`${p} returned \`null\`, will not send event.`)}const v=r.getSession()||o.getSession();if(f&&v&&this._updateSessionFromEvent(v,m),u){const S=m.sdkProcessingMetadata?.spanCountBeforeProcessing||0,w=m.spans?m.spans.length:0,T=S-w;T>0&&this.recordDroppedEvent("before_send","span",T)}const b=m.transaction_info;if(u&&b&&m.transaction!==t.transaction){const S="custom";m.transaction_info={...b,source:S}}return this.sendEvent(m,n),m}).then(null,m=>{throw a2(m)||s2(m)?m:(this.captureException(m,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:m}),Sd(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. 8Reason: ${m}`))})}_process(t,n){this._numProcessing++,this._promiseBuffer.add(t).then(r=>(this._numProcessing--,r),r=>(this._numProcessing--,r===h0&&this.recordDroppedEvent("queue_overflow",n),r))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{const[o,s]=n.split(":");return{reason:o,category:s,quantity:r}})}_flushOutcomes(){ht&&it.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){ht&&it.log("No outcomes to send");return}if(!this._dsn){ht&&it.log("No dsn provided, will not send outcomes");return}ht&&it.log("Sending outcomes:",t);const n=e7(t,this._options.tunnel&&Xc(this._dsn));this.sendEnvelope(n)}}function l2(e){return e==="replay_event"?"replay":e||"error"}function s7(e,t){const n=`${t} must return \`null\` or a valid event.`;if(Zc(e))return e.then(r=>{if(!ec(r)&&r!==null)throw Sd(n);return r},r=>{throw Sd(`${t} rejected with ${r}`)});if(!ec(e)&&e!==null)throw Sd(n);return e}function a7(e,t,n,r){const{beforeSend:o,beforeSendTransaction:s,beforeSendSpan:a,ignoreSpans:u}=t;let f=n;if($y(f)&&o)return o(f,r);if(wA(f)){if(a||u){const d=n7(f);if(u?.length&&Kw(d,u))return null;if(a){const p=a(d);p?f=Qc(n,r7(p)):Gw()}if(f.spans){const p=[],h=f.spans;for(const m of h){if(u?.length&&Kw(m,u)){JP(h,m);continue}if(a){const v=a(m);v?p.push(v):(Gw(),p.push(m))}else p.push(m)}const y=f.spans.length-p.length;y&&e.recordDroppedEvent("before_send","span",y),f.spans=p}}if(s){if(f.spans){const d=f.spans.length;f.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:d}}return s(f,r)}}return f}function $y(e){return e.type===void 0}function wA(e){return e.type==="transaction"}function u7(e){let t=0;return e.name&&(t+=e.name.length*2),t+=8,t+EA(e.attributes)}function l7(e){let t=0;return e.message&&(t+=e.message.length*2),t+EA(e.attributes)}function EA(e){if(!e)return 0;let t=0;return Object.values(e).forEach(n=>{Array.isArray(n)?t+=n.length*c2(n[0]):Q3(n)?t+=c2(n):t+=100}),t}function c2(e){return typeof e=="string"?e.length*2:typeof e=="number"?8:typeof e=="boolean"?4:0}function c7(e){return u0(e)&&"__sentry_fetch_url_host__"in e&&typeof e.__sentry_fetch_url_host__=="string"}function f2(e){return c7(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}function f7(e){"aggregates"in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):e.ipAddress===void 0&&(e.ipAddress="{{auto}}")}function d7(e,t,n=[t],r="npm"){const o=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};o.name||(o.name=`sentry.javascript.${t}`,o.packages=n.map(s=>({name:`${r}:@sentry/${s}`,version:_s})),o.version=_s)}function p7(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function h7(){return"npm"}const hl=Rn;function SA(e,t){const n=m0(e,t),r={type:_7(t),value:b7(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function g7(e,t,n,r){const s=Jc()?.getOptions().normalizeDepth,a=I7(t),u={__serialized__:fA(t,s)};if(a)return{exception:{values:[SA(e,a)]},extra:u};const f={exception:{values:[{type:Sh(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:$7(t,{isUnhandledRejection:r})}]},extra:u};if(n){const d=m0(e,n);d.length&&(f.exception.values[0].stacktrace={frames:d})}return f}function Lg(e,t){return{exception:{values:[SA(e,t)]}}}function m0(e,t){const n=t.stacktrace||t.stack||"",r=y7(t),o=v7(t);try{return e(n,r,o)}catch{}return[]}const m7=/Minified React error #\d+;/i;function y7(e){return e&&m7.test(e.message)?1:0}function v7(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function $A(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function _7(e){const t=e?.name;return!t&&$A(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function b7(e){const t=e?.message;return $A(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:"wasm exception":t?t.error&&typeof t.error.message=="string"?f2(t.error):f2(e):"No error message"}function w7(e,t,n,r){const o=n?.syntheticException||void 0,s=S7(e,t,o,r);return tc(s),s.level="error",n?.event_id&&(s.event_id=n.event_id),ef(s)}function E7(e,t,n="info",r,o){const s=r?.syntheticException||void 0,a=Ty(e,t,s,o);return a.level=n,r?.event_id&&(a.event_id=r.event_id),ef(a)}function S7(e,t,n,r,o){let s;if(Z3(t)&&t.error)return Lg(e,t.error);if(Lw(t)||ZM(t)){const a=t;if("stack"in t)s=Lg(e,t);else{const u=a.name||(Lw(a)?"DOMError":"DOMException"),f=a.message?`${u}: ${a.message}`:u;s=Ty(e,f,n,r),Bw(s,f)}return"code"in a&&(s.tags={...s.tags,"DOMException.code":`${a.code}`}),s}return u0(t)?Lg(e,t):ec(t)||Sh(t)?(s=g7(e,t,n,o),tc(s,{synthetic:!0}),s):(s=Ty(e,t,n,r),Bw(s,`${t}`),tc(s,{synthetic:!0}),s)}function Ty(e,t,n,r){const o={};
8if(r&&n){const s=m0(e,n);s.length&&(o.exception={values:[{value:t,stacktrace:{frames:s}}]}),tc(o,{synthetic:!0})}if(l0(t)){const{__sentry_template_string__:s,__sentry_template_values__:a}=t;return o.logentry={message:s,params:a},o}return o.message=t,o}function $7(e,{isUnhandledRejection:t}){const n=iP(e),r="exception";return Z3(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:Sh(e)?`Event \`${T7(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function T7(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function I7(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}class A7 extends i7{constructor(t){const n=x7(t),r=hl.SENTRY_SDK_SOURCE||h7();d7(n,"browser",["browser"],r),n._metadata?.sdk&&(n._metadata.sdk.settings={infer_ip:n.sendDefaultPii?"auto":"never",...n._metadata.sdk.settings}),super(n);const{sendDefaultPii:o,sendClientReports:s,enableLogs:a,_experiments:u,enableMetrics:f}=this._options,d=f??u?.enableMetrics??!0;hl.document&&(s||a||d)&&hl.document.addEventListener("visibilitychange",()=>{hl.document.visibilityState==="hidden"&&(s&&this._flushOutcomes(),a&&Sy(this),d&&gA(this))}),o&&this.on("beforeSendSession",f7)}eventFromException(t,n){return w7(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return E7(this._options.stackParser,t,n,r,this._options.attachStacktrace)}_prepareEvent(t,n,r,o){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r,o)}}function x7(e){return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:hl.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}const C7=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,qf=Rn,$d={};function R7(e){const t=$d[e];if(t)return t;let n=qf[e];if(p7(n))return $d[e]=n.bind(qf);const r=qf.document;if(r&&typeof r.createElement=="function")try{const o=r.createElement("iframe");o.hidden=!0,r.head.appendChild(o);const s=o.contentWindow;s?.[e]&&(n=s[e]),r.head.removeChild(o)}catch(o){C7&&it.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,o)}return n&&($d[e]=n.bind(qf))}function O7(e){$d[e]=void 0}const k7=40;function L7(e,t=R7("fetch")){let n=0,r=0;async function o(s){const a=s.body.length;n+=a,r++;const u={body:s.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{const f=await t(e.url,u);return{statusCode:f.status,headers:{"x-sentry-rate-limits":f.headers.get("X-Sentry-Rate-Limits"),"retry-after":f.headers.get("Retry-After")}}}catch(f){throw O7("fetch"),f}finally{n-=a,r--}}return X9(e,o,g0(e.bufferSize||k7))}const M7=30,P7=50;function Iy(e,t,n,r){const o={filename:e,function:t==="<anonymous>"?eu:t,in_app:!0};return n!==void 0&&(o.lineno=n),r!==void 0&&(o.colno=r),o}const B7=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,N7=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,D7=/\((\S*)(?::(\d+))(?::(\d+))\)/,U7=/at (.+?) ?\(data:(.+?),/,H7=e=>{const t=e.match(U7);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};const n=B7.exec(e);if(n){const[,o,s,a]=n;return Iy(o,eu,+s,+a)}const r=N7.exec(e);if(r){if(r[2]?.indexOf("eval")===0){const u=D7.exec(r[2]);u&&(r[2]=u[1],r[3]=u[2],r[4]=u[3])}const[s,a]=TA(r[1]||eu,r[2]);return Iy(a,s,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},F7=[M7,H7],j7=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,V7=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,q7=e=>{const t=j7.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const s=V7.exec(t[3]);s&&(t[1]=t[1]||"eval",t[3]=s[1],t[4]=s[2],t[5]="")}let r=t[3],o=t[1]||eu;return[o,r]=TA(o,r),Iy(r,o,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},W7=[P7,q7],z7=[F7,W7],G7=zM(...z7),TA=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:eu,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};var pn=(e=>(e.FATAL="fatal",e.ERROR="error",e.WARN="warn",e.INFO="info",e.DEBUG="debug",e.TRACE="trace",e.SILENT="silent",e))(pn||{});const d2={fatal:0,error:1,warn:2,info:3,debug:4,trace:5,silent:6},Y7=e=>e.trim().replace(/\s+/g," ").replace(/https?:\/\/\S+/gi,"<url>").replace(/\b\d{1,3}(?:\.\d{1,3}){3}(?::\d+)?\b/g,"<address>").replace(/\d{4}-\d{2}-\d{2}T[\d:.]+(?:Z|[+-]\d{2}:?\d{2})?/g,"<date>").replace(/\b[\w.+-]+@[\w-]+\.[\w.-]+\b/g,"<email>").replace(/\b(?=[0-9a-f]*[a-f])[0-9a-f]{8,}\b/gi,"<hex>").replace(/\/\d+(?=\/|:|\s|$)/g,"/<num>").replace(/\b\d{3,}\b/g,"<num>"),p2=pn.INFO,K7=pn.ERROR,Z7={[pn.FATAL]:"error",[pn.ERROR]:"error",[pn.WARN]:"warn",[pn.INFO]:"info",[pn.DEBUG]:"debug",[pn.TRACE]:"debug"};let xh=class IA{constructor(t){this.silent=(()=>{}),this.config=t,this.fatal=this.createLogFn(pn.FATAL),this.error=this.createLogFn(pn.ERROR),this.warn=this.createLogFn(pn.WARN),this.info=this.createLogFn(pn.INFO),this.debug=this.createLogFn(pn.DEBUG),this.trace=this.createLogFn(pn.TRACE)}get level(){return this.config?.level||p2}child(t,n){const r=new IA(this.config);return n?.sentryLink&&(r.linkedScope=this.createLinkedScope(n.sentryLink)),r}createLinkedScope(t){const n=new A7({dsn:t.dsn,release:t.release,transport:L7,stackParser:G7,integrations:[]}),r=new so;return r.setClient(n),n.init(),t.projectName&&r.setTag("project",t.projectName),r}createLogFn(t){const n=Z7[t]||"log",r=this.config?.level||p2,o=d2[t]<=d2[r];return(...s)=>{o&&console[n](...s),n===K7&&P9()&&this.capture(s)}}capture(t){const n=t[0];let r,o,s;if(n instanceof Error)o=n,r=typeof t[1]=="string"?t[1]:n.message;else if(typeof n=="object"&&n!==null){const d=n;d.err instanceof Error&&(o=d.err),s=d,r=typeof t[1]=="string"?t[1]:void 0}else r=String(n);const a=r||o?.message||String(n);if(!a)return;const u=[Y7(a)],f=Math.random().toString(36).substr(2,9);if(this.linkedScope){const d=Jc();if(d){const p=d.on("afterSendEvent",h=>{h.tags?.transaction_id===f&&(p(),this.captureToLinkedProject(a,u,s,f))})}}M9(a,{level:"error",extra:s,fingerprint:u,tags:{transaction_id:f,...this.config.sentryLink?.projectName&&{linked_sentry_project:this.config.sentryLink.projectName}}})}captureToLinkedProject(t,n,r,o){if(!this.linkedScope)return;const s=this.linkedScope.clone();s.setFingerprint(n),s.setTag("transaction_id",o),r&&s.setExtras(r),s.captureMessage(t,"error")}};const AA=Symbol("logger"),Q7=(e,t)=>{t.provide(AA,e)},D_e=()=>{const e=Gt(AA);if(!e)throw new Error("[Logger]: не ÑÑÑановлен инÑÑÐ°Ð½Ñ Ð»Ð¾Ð³Ð³ÐµÑа");return e},y0="QUERY_GQL_REQ_TYPE",J7="MUTATION_GQL_REQ_TYPE",xA=5e3,X7="POST";
8let eB=class{makeRequest(t){const{url:n,headers:r,body:o}=t,s=new AbortController,{cookie:a,...u}=r;return{clientResponsePromise:fetch(n,{headers:typeof window>"u"?r:u,method:X7,credentials:"include",signal:s.signal,body:o}).then(f=>{const{url:d,ok:p,status:h,statusText:y}=f;return{url:d,status:{ok:p,code:h,text:y},responseDataPromise:p?f.json():f.text()}}),cancelCallback:f=>s.abort(f)}}},tB="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",nB=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+=tB[n[e]&63];return t},rB=class{constructor(t,n,r){this.id=nB(),this.options=n,this.clientPromise=t,this.cancelCallback=r,this.state="REQ_STATE_PENDING"}setTimeoutId(t){this.timeoutId=t}cancel(t,n="manual"){this.cancelCallback(t),clearTimeout(Number(this.timeoutId)),this.state="REQ_STATE_CANCELLED",this.cancelKind=n}};const oB="client_error",v0="error",iB="timeout",sB="canceled",aB="conn_refused",uB="conn_reset",h2={ECONNREFUSED:aB,ECONNRESET:uB},lB=e=>e>=200&&e<300?"ok":e>=400&&e<500?oB:v0,cB=e=>{const t=e?.cause?.code;return t&&t in h2?h2[t]:v0},g2="http://",m2="https://",y2="ws://",v2="wss://",tf="gql-service",fB="unknown";let dB=class{constructor(t,n,r){this.client=t,this.onGatewayCall=r,this.pendingRequests=new Map,this.responseInterceptors=[],this.log=n.child({"package.name":tf,"module.name":"transport/http/client"})}getPendingRequest(t){return this.pendingRequests.get(t)}deletePendingRequest(t){this.pendingRequests.delete(t)}withTimeout(t,n){const r=setTimeout(()=>{if(this.getPendingRequest(t.id)){const o=`ÐапÑÐ¾Ñ Ð¾Ñменен по ÑаймаÑÑÑ ${n}ms ${t.options.operationName}`,s=new Error(o);t.cancel(s,"timeout"),this.log.error({err:s,req:t,query:t.options.body,operationName:t.options.operationName},o)}},n);t.setTimeoutId(r)}createRequest(t){const{clientResponsePromise:n,cancelCallback:r}=this.client.makeRequest(t),o=new rB(n,t,r);return this.log.debug({request:o,...t},"Создание запÑоÑа"),t.timeout&&this.withTimeout(o,t.timeout),this.pendingRequests.set(o.id,o),{clientResponsePromise:n,requestId:o.id,request:o}}clearRequest(t){if(!t)return;this.deletePendingRequest(t);const{timeoutId:n}=this.getPendingRequest(t)||{};clearTimeout(Number(n)),this.log.debug(`request ${t} cleared`)}updateEntry(t){this.entry=t}cancelPending(t){for(const n of this.pendingRequests.values())n.cancel(t,"manual");this.pendingRequests.clear()}useResponseInterceptor(t){this.responseInterceptors.push(t)}async makeRequest(t){if(!this.entry)throw new Error("Ðе задан http url гейÑвеÑ");let n,r;const o={...t,url:this.entry},s=Date.now();let a=0,u=v0;try{const{requestId:f,request:d,clientResponsePromise:p}=this.createRequest(o);n=f,r=d;const h=await p,{responseDataPromise:y}=h;a=h.status?.code??0,u=lB(a);for(const v of this.responseInterceptors)await v(h);const m=await y;if(t.collector?.collectQuery(n,o.body,m),typeof m=="string")throw new Error(`${m} ${t.operationName}`);return m}catch(f){if(a===0){const d=r?.cancelKind;u=d==="timeout"?iB:d==="manual"?sB:cB(f)}throw this.log.error({err:f,query:t.body,...t},"ÐÑибка запÑоÑа "+t.operationName),f}finally{this.onGatewayCall?.({operation:t.operationName??fB,status:u,code:a,durationSeconds:(Date.now()-s)/1e3}),this.clearRequest(n)}}};const pB="connection_ack",hB="connection_init",gB="stop",mB="start",yB="ka",Wf="checkingSocketСonnection",vB={opened:!1};let _B=class{constructor(t,n){this.state="active",this.options=t,this.handlers=[t.handler],this.closeHandlers=t.onCloseHandler?[t.onCloseHandler]:[],this.log=n.child({"package.name":tf,"module.name":"transport/ws/subscription"})}handleReceivedData(t){const{payload:n}=t;this.handlers.forEach(r=>{try{if(!n||!n.data)return;r(n.data)}catch(o){this.log.error({err:o,msg:t},"ÐÑибка пÑи обÑабоÑке даннÑÑ
подпиÑки")}})}handleClosing(){this.closeHandlers.forEach(t=>{t(vB)})}addHandler(t){this.handlers.push(t)}addCloseHandler(t){this.closeHandlers.push(t)}suspend(){this.state="suspended"}restore(){this.state="active"}get isActive(){return this.state==="active"}get isSuspended(){return this.state==="suspended"}};function bB(e){let t=0;if(e.length===0)return t.toString();for(let n=0;n<e.length;n+=1)t=(t<<5)-t+e.charCodeAt(n),t|=0,t&=268435455;return t.toString()}const wB=1e3,EB=20*wB,SB=100,$B=10,_2=e=>typeof e!="string"?"":e.startsWith(m2)?e.replace(m2,v2):e.startsWith(g2)?e.replace(g2,y2):e.startsWith(y2)||e.startsWith(v2)?e:"";let TB=class{constructor(t,n,r){this.rootLogger=t,this.protocols=r,this.connectionState="WS_CONNECTION_IDLE",this.pendingSubscriptions=[],this.pendingUnsubscriptions=[],this.subscriptions={},this.retryCounter=0,this.unsubscribe=o=>{this.connectionState==="WS_CONNECTION_ACTIVE"?(this.send(JSON.stringify({id:o,type:gB})),delete this.subscriptions[o],this.log.debug("подпиÑка %s %s",o,"Ñдалена")):this.pendingUnsubscriptions=Array.from(new Set([...this.pendingUnsubscriptions,o]))},this.entry=_2(n),this.log=t.child({"package.name":tf,"module.name":"transport/ws/client"})}send(t){this.socket&&this.socket.readyState===WebSocket.OPEN?this.socket.send(t):this.log.warn({data:t},"ÐопÑÑка оÑпÑавки даннÑÑ
в не гоÑовое Ñоединение")}onSocketOpen(t){this.socket&&(this.socket.onopen=t.bind(this))}onSocketMessage(t){this.socket&&(this.socket.onmessage=t.bind(this))}onSocketError(t){this.socket&&(this.socket.onerror=t.bind(this))}onSocketClose(t){this.socket&&(this.socket.onclose=t.bind(this))}parseMessage(t){let n={id:"",type:"",payload:{data:{}}};
8if(typeof t.data=="string")try{n=JSON.parse(t.data)}catch(r){this.log.error({err:r,msg:t},"не ÑдалоÑÑ ÑаÑпаÑÑиÑÑ ÑообÑение в ws подпиÑке")}else this.log.error({msg:t},"некоÑÑекÑнÑй ÑоÑÐ¼Ð°Ñ Ð´Ð°Ð½Ð½ÑÑ
в подпиÑке");return n}requestSubscriptionData(t,n,r){this.send(JSON.stringify({id:t,type:mB,payload:{query:`subscription ${n}`,variables:r}}))}keepConnectionAlive(){this.connectionState==="WS_CONNECTION_ACTIVE"&&(clearTimeout(Number(this.keepAliveTimerId)),this.keepAliveTimerId=setTimeout(()=>this.keepAliveHandler(),EB))}keepAliveHandler(){this.send(JSON.stringify({type:yB,payload:{}})),this.keepConnectionAlive()}handleMessage(t){const n=this.parseMessage(t);this.keepConnectionAlive();const r=this.subscriptions[n.id];r&&(this.log.debug({parsedMessage:n},"полÑÑено ÑообÑение в подпиÑке ws"),r.handleReceivedData(n))}suspendAllSubscriptions(){Object.values(this.subscriptions).forEach(t=>{t.suspend()})}createErrorHandler(){return t=>{this.retryTimerId||(this.log.debug("пеÑеÑоздаем подклÑÑение"),this.subscriptions[Wf]&&this.subscriptions[Wf].handleClosing(),this.suspendAllSubscriptions(),this.disconnect(),this.log.error({err:t},"неÑдаÑÐ½Ð°Ñ Ð¿Ð¾Ð¿ÑÑка ÑоединениÑ"),this.connectionState="WS_CONNECTION_IDLE",this.retryConnection())}}retryConnection(){if(this.retryTimerId)return;this.retryCounter>=$B&&(this.log.error("ÐакÑималÑное колиÑеÑÑво попÑÑок доÑÑигнÑÑо. Ðдем долÑÑе пеÑед ÑледÑÑÑей ÑеÑией."),this.retryCounter=0);const t=SB*Math.pow(2,this.retryCounter);this.connectionState="WS_CONNECTION_IDLE",this.retryTimerId=setTimeout(()=>{this.retryTimerId=void 0,this.connect()},t),this.retryCounter=this.retryCounter+1}restoreSuspendedSubscriptions(){const t=Object.values(this.subscriptions).filter(n=>n.isSuspended);t.length&&t.forEach(n=>{this.log.debug("пеÑеподпиÑÑваемÑÑ Ð¿Ð¾Ñле воÑÑÑÐ°Ð½Ð¾Ð²Ð»ÐµÐ½Ð¸Ñ ÑоединениÑ"),this.subscribe(n.options)})}executePendingSubscriptions(){this.pendingSubscriptions.length&&(this.pendingSubscriptions.forEach(t=>{this.log.debug("подпиÑÑваемÑÑ Ð¸Ð· оÑеÑеди, query: %s",t.query),this.subscribe(t)}),this.pendingSubscriptions=[])}executePendingUnsubscriptions(){this.pendingUnsubscriptions.length&&(this.pendingUnsubscriptions.forEach(t=>{this.log.debug("оÑпиÑÑваемÑÑ Ð¸Ð· оÑеÑеди, id: %s",t),this.unsubscribe(t)}),this.pendingUnsubscriptions=[])}connect(){this.cleanupSocket(),this.connectionState="WS_CONNECTION_PENDING",this.log.debug("ÐопÑÑка ÑÑÑановиÑÑ Ñоединение...");try{const t=this.protocols?["graphql-ws",...Array.isArray(this.protocols)?this.protocols:[this.protocols]]:"graphql-ws";this.socket=new WebSocket(this.entry,t),this.onSocketOpen(()=>{this.send(JSON.stringify({type:hB,payload:{}}))}),this.onSocketMessage(this.handleInitialMessage.bind(this)),this.onSocketError(this.createErrorHandler()),this.onSocketClose(this.createErrorHandler())}catch(t){this.createErrorHandler()(t)}}handleInitialMessage(t){const{type:n}=this.parseMessage(t);n===pB&&(this.log.debug("Соединение подÑвеÑждено (ACK)"),this.connectionState="WS_CONNECTION_ACTIVE",this.retryCounter=0,clearTimeout(Number(this.retryTimerId)),this.retryTimerId=void 0,this.keepConnectionAlive(),this.onSocketMessage(this.handleMessage.bind(this)),this.restoreSuspendedSubscriptions(),this.executePendingSubscriptions(),this.executePendingUnsubscriptions())}cleanupSocket(){this.socket&&(this.socket.onopen=null,this.socket.onmessage=null,this.socket.onerror=null,this.socket.onclose=null,this.socket.close()),this.socket=void 0,this.connectionState="WS_CONNECTION_IDLE"}updateEntry(t){this.entry=_2(t)}subscribe(t){this.log.debug("ÑекÑÑее ws Ñоединение: %s",this.connectionState);const n=t.query!==Wf?`s_${bB(t.query)}`:Wf,r=this.subscriptions[n];return this.log.debug("запÑÐ¾Ñ Ð½Ð° подпиÑкÑ: %s",t.query),this.log.debug("hash id: %s",n),this.connectionState==="WS_CONNECTION_ACTIVE"?r&&r.isActive?(this.log.debug("подпиÑка Ñже ÑÑÑеÑÑвÑеÑ, добавлÑем Ñ
ÑндлеÑ"),r.addHandler(t.handler),t.onCloseHandler&&r.addCloseHandler(t.onCloseHandler)):r&&r.isSuspended?(this.log.debug("воÑÑÑанавливаем подпиÑÐºÑ Ð¿Ð¾Ñле пеÑeподклÑÑениÑ"),this.requestSubscriptionData(n,t.query,t.variables),r.restore(
8)):(this.subscriptions[n]=new _B(t,this.rootLogger),this.requestSubscriptionData(n,t.query,t.variables),this.log.debug("добавлена Ð½Ð¾Ð²Ð°Ñ Ð¿Ð¾Ð´Ð¿Ð¸Ñка")):(this.log.debug("добавлÑем подпиÑÐºÑ Ð² оÑеÑедÑ"),this.pendingSubscriptions.push(t),this.connectionState==="WS_CONNECTION_IDLE"&&(this.log.debug("Ñоединение..."),this.connect())),n}disconnect(){this.cleanupSocket(),clearTimeout(this.retryTimerId),this.retryTimerId=void 0,this.keepAliveTimerId&&(clearTimeout(this.keepAliveTimerId),this.keepAliveTimerId=void 0)}};function IB(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function zf(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Mg={exports:{}},b2;function AB(){return b2||(b2=1,(function(e,t){(function(n){e.exports=n()})(function(){return(function n(r,o,s){function a(d,p){if(!o[d]){if(!r[d]){var h=typeof zf=="function"&&zf;if(!p&&h)return h(d,!0);if(u)return u(d,!0);throw new Error("Cannot find module '"+d+"'")}p=o[d]={exports:{}},r[d][0].call(p.exports,function(y){var m=r[d][1][y];return a(m||y)},p,p.exports,n,r,o,s)}return o[d].exports}for(var u=typeof zf=="function"&&zf,f=0;f<s.length;f++)a(s[f]);return a})({1:[function(n,r,o){(function(s,a,u,f,d,p,h,y,m){var v=n("crypto");function b($,k){k=T($,k);var x;return(x=k.algorithm!=="passthrough"?v.createHash(k.algorithm):new A).write===void 0&&(x.write=x.update,x.end=x.update),C(k,x).dispatch($),x.update||x.end(""),x.digest?x.digest(k.encoding==="buffer"?void 0:k.encoding):($=x.read(),k.encoding!=="buffer"?$.toString(k.encoding):$)}(o=r.exports=b).sha1=function($){return b($)},o.keys=function($){return b($,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},o.MD5=function($){return b($,{algorithm:"md5",encoding:"hex"})},o.keysMD5=function($){return b($,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var S=v.getHashes?v.getHashes().slice():["sha1","md5"],w=(S.push("passthrough"),["buffer","hex","binary","base64"]);function T($,k){var x={};if(x.algorithm=(k=k||{}).algorithm||"sha1",x.encoding=k.encoding||"hex",x.excludeValues=!!k.excludeValues,x.algorithm=x.algorithm.toLowerCase(),x.encoding=x.encoding.toLowerCase(),x.ignoreUnknown=k.ignoreUnknown===!0,x.respectType=k.respectType!==!1,x.respectFunctionNames=k.respectFunctionNames!==!1,x.respectFunctionProperties=k.respectFunctionProperties!==!1,x.unorderedArrays=k.unorderedArrays===!0,x.unorderedSets=k.unorderedSets!==!1,x.unorderedObjects=k.unorderedObjects!==!1,x.replacer=k.replacer||void 0,x.excludeKeys=k.excludeKeys||void 0,$===void 0)throw new Error("Object argument required.");for(var O=0;O<S.length;++O)S[O].toLowerCase()===x.algorithm.toLowerCase()&&(x.algorithm=S[O]);if(S.indexOf(x.algorithm)===-1)throw new Error('Algorithm "'+x.algorithm+'" not supported. supported values: '+S.join(", "));if(w.indexOf(x.encoding)===-1&&x.algorithm!=="passthrough")throw new Error('Encoding "'+x.encoding+'" not supported. supported values: '+w.join(", "));return x}function I($){if(typeof $=="function")return/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call($))!=null}function C($,k,x){x=x||[];function O(M){return k.update?k.update(M,"utf8"):k.write(M,"utf8")}return{dispatch:function(M){return this["_"+((M=$.replacer?$.replacer(M):M)===null?"null":typeof M)](M)},_object:function(M){var j,V=Object.prototype.toString.call(M),W=/\[object (.*)\]/i.exec(V);if(W=(W=W?W[1]:"unknown:["+V+"]").toLowerCase(),0<=(V=x.indexOf(M)))return this.dispatch("[CIRCULAR:"+V+"]");if(x.push(M),u!==void 0&&u.isBuffer&&u.isBuffer(M))return O("buffer:"),O(M);if(W==="object"||W==="function"||W==="asyncfunction")return V=Object.keys(M),$.unorderedObjects&&(V=V.sort()),$.respectType===!1||I(M)||V.splice(0,0,"prototype","__proto__","constructor"),$.excludeKeys&&(V=V.filter(function(Y){return!$.excludeKeys(Y)})),O("object:"+V.length+":"),j=this,V.forEach(function(Y){j.dispatch(Y),O(":"),$.excludeValues||j.dispatch(M[Y]),O(",")});if(!this["_"+W]){if($.ignoreUnknown)return O("["+W+"]");throw new Error('Unknown object type "'+W+'"')}this["_"+W](M)},_array:function(M,Y){Y=Y!==void 0?Y:$.unorderedArrays!==!1;var V=this;if(O("array:"+M.length+":"),!Y||M.length<=1)return M.forEach(function(ne){return V.dispatch(ne)});var W=[],Y=M.map(function(ne){var Z=new A,ae=x.slice();return C($,Z,ae).dispatch(ne),W=W.concat(ae.slice(x.length)),Z.read().toString()});return x=x.concat(W),Y.sort(),this._array(Y,!1)},_date:function(M){return O("date:"+M.toJSON())},_symbol:function(M){return O("symbol:"+M.toString())},_error:function(M){return O("error:"+M.toString())},_boolean:function(M){return O("bool:"+M.toString())}
vendor: 4,176 bytes, lines 8-11
8,_string:function(M){O("string:"+M.length+":"),O(M.toString())},_function:function(M){O("fn:"),I(M)?this.dispatch("[native]"):this.dispatch(M.toString()),$.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(M.name)),$.respectFunctionProperties&&this._object(M)},_number:function(M){return O("number:"+M.toString())},_xml:function(M){return O("xml:"+M.toString())},_null:function(){return O("Null")},_undefined:function(){return O("Undefined")},_regexp:function(M){return O("regex:"+M.toString())},_uint8array:function(M){return O("uint8array:"),this.dispatch(Array.prototype.slice.call(M))},_uint8clampedarray:function(M){return O("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(M))},_int8array:function(M){return O("int8array:"),this.dispatch(Array.prototype.slice.call(M))},_uint16array:function(M){return O("uint16array:"),this.dispatch(Array.prototype.slice.call(M))},_int16array:function(M){return O("int16array:"),this.dispatch(Array.prototype.slice.call(M))},_uint32array:function(M){return O("uint32array:"),this.dispatch(Array.prototype.slice.call(M))},_int32array:function(M){return O("int32array:"),this.dispatch(Array.prototype.slice.call(M))},_float32array:function(M){return O("float32array:"),this.dispatch(Array.prototype.slice.call(M))},_float64array:function(M){return O("float64array:"),this.dispatch(Array.prototype.slice.call(M))},_arraybuffer:function(M){return O("arraybuffer:"),this.dispatch(new Uint8Array(M))},_url:function(M){return O("url:"+M.toString())},_map:function(M){return O("map:"),M=Array.from(M),this._array(M,$.unorderedSets!==!1)},_set:function(M){return O("set:"),M=Array.from(M),this._array(M,$.unorderedSets!==!1)},_file:function(M){return O("file:"),this.dispatch([M.name,M.size,M.type,M.lastModfied])},_blob:function(){if($.ignoreUnknown)return O("[blob]");throw Error(`Hashing Blob objects is currently not supported 9(see https://github.com/puleos/object-hash/issues/26) 10Use "options.replacer" or "options.ignoreUnknown" 11`)},_domwindow:function(){return O("domwindow")},_bigint:function(M){return O("bigint:"+M.toString())},_process:function(){return O("process")},_timer:function(){return O("timer")},_pipe:function(){return O("pipe")},_tcp:function(){return O("tcp")},_udp:function(){return O("udp")},_tty:function(){return O("tty")},_statwatcher:function(){return O("statwatcher")},_securecontext:function(){return O("securecontext")},_connection:function(){return O("connection")},_zlib:function(){return O("zlib")},_context:function(){return O("context")},_nodescript:function(){return O("nodescript")},_httpparser:function(){return O("httpparser")},_dataview:function(){return O("dataview")},_signal:function(){return O("signal")},_fsevent:function(){return O("fsevent")},_tlswrap:function(){return O("tlswrap")}}}function A(){return{buf:"",write:function($){this.buf+=$},end:function($){this.buf+=$},read:function(){return this.buf}}}o.writeToStream=function($,k,x){return x===void 0&&(x=k,k={}),C(k=T($,k),x).dispatch($)}}).call(this,n("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_9a5aa49d.js","/")},{buffer:3,crypto:5,lYpoI2:11}],2:[function(n,r,o){(function(s,a,u,f,d,p,h,y,m){(function(v){var b=typeof Uint8Array<"u"?Uint8Array:Array,S=43,w=47,T=48,I=97,C=65,A=45,$=95;function k(x){return x=x.charCodeAt(0),x===S||x===A?62:x===w||x===$?63:x<T?-1:x<T+10?x-T+26+26:x<C+26?x-C:x<I+26?x-I+26:void 0}v.toByteArray=function(x){var O,M;if(0<x.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var j=x.length,j=x.charAt(j-2)==="="?2:x.charAt(j-1)==="="?1:0,V=new b(3*x.length/4-j),W=0<j?x.length-4:x.length,Y=0;function ne(Z){V[Y++]=Z}for(O=0;O<W;O+=4,0)ne((16711680&(M=k(x.charAt(O))<<18|k(x.charAt(O+1))<<12|k(x.charAt(O+2))<<6|k(x.charAt(O+3))))>>16),ne((65280&M)>>8),ne(255&M);return j==2?ne(255&(M=k(x.charAt(O))<<2|k(x.charAt(O+1))>>4)):j==1&&(ne((M=k(x.charAt(O))<<10|k(x.charAt(O+1))<<4|k(x.charAt(O+2))>>2)>>8&255),ne(255&M)),V},v.fromByteArray=function(x){var O,M,j,V,W=x.length%3,Y="";function ne(Z){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
11+/".charAt(Z)}for(O=0,j=x.length-W;O<j;O+=3)M=(x[O]<<16)+(x[O+1]<<8)+x[O+2],Y+=ne((V=M)>>18&63)+ne(V>>12&63)+ne(V>>6&63)+ne(63&V);switch(W){case 1:Y=(Y+=ne((M=x[x.length-1])>>2))+ne(M<<4&63)+"==";break;case 2:Y=(Y=(Y+=ne((M=(x[x.length-2]<<8)+x[x.length-1])>>10))+ne(M>>4&63))+ne(M<<2&63)+"="}return Y}})(o===void 0?this.base64js={}:o)}).call(this,n("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:11}],3:[function(n,r,o){(function(s,a,S,f,d,p,h,y,m){var v=n("base64-js"),b=n("ieee754");function S(P,F,B){if(!(this instanceof S))return new S(P,F,B);var K,L,D,se,ve=typeof P;if(F==="base64"&&ve=="string")for(P=(se=P).trim?se.trim():se.replace(/^\s+|\s+$/g,"");P.length%4!=0;)P+="=";if(ve=="number")K=ce(P);else if(ve=="string")K=S.byteLength(P,F);else{if(ve!="object")throw new Error("First argument needs to be a number, array or string.");K=ce(P.length)}if(S._useTypedArrays?L=S._augment(new Uint8Array(K)):((L=this).length=K,L._isBuffer=!0),S._useTypedArrays&&typeof P.byteLength=="number")L._set(P);else if(q(se=P)||S.isBuffer(se)||se&&typeof se=="object"&&typeof se.length=="number")for(D=0;D<K;D++)S.isBuffer(P)?L[D]=P.readUInt8(D):L[D]=P[D];else if(ve=="string")L.write(P,0,F);else if(ve=="number"&&!S._useTypedArrays&&!B)for(D=0;D<K;D++)L[D]=0;return L}function w(P,F,B,K){return S._charsWritten=Oe((function(L){for(var D=[],se=0;se<L.length;se++)D.push(255&L.charCodeAt(se));return D})(F),P,B,K)}function T(P,F,B,K){return S._charsWritten=Oe((function(L){for(var D,se,ve=[],de=0;de<L.length;de++)se=L.charCodeAt(de),D=se>>8,se=se%256,ve.push(se),ve.push(D);return ve})(F),P,B,K)}function I(P,F,B){var K="";B=Math.min(P.length,B);for(var L=F;L<B;L++)K+=String.fromCharCode(P[L]);return K}function C(P,F,B,D){D||(Q(typeof B=="boolean","missing or invalid endian"),Q(F!=null,"missing offset"),Q(F+1<P.length,"Trying to read beyond buffer length"));var L,D=P.length;if(!(D<=F))return B?(L=P[F],F+1<D&&(L|=P[F+1]<<8)):(L=P[F]<<8,F+1<D&&(L|=P[F+1])),L}function A(P,F,B,D){D||(Q(typeof B=="boolean","missing or invalid endian"),Q(F!=null,"missing offset"),Q(F+3<P.length,"Trying to read beyond buffer length"));var L,D=P.length;if(!(D<=F))return B?(F+2<D&&(L=P[F+2]<<16),F+1<D&&(L|=P[F+1]<<8),L|=P[F],F+3<D&&(L+=P[F+3]<<24>>>0)):(F+1<D&&(L=P[F+1]<<16),F+2<D&&(L|=P[F+2]<<8),F+3<D&&(L|=P[F+3]),L+=P[F]<<24>>>0),L}function $(P,F,B,K){if(K||(Q(typeof B=="boolean","missing or invalid endian"),Q(F!=null,"missing offset"),Q(F+1<P.length,"Trying to read beyond buffer length")),!(P.length<=F))return K=C(P,F,B,!0),32768&K?-1*(65535-K+1):K}function k(P,F,B,K){if(K||(Q(typeof B=="boolean","missing or invalid endian"),Q(F!=null,"missing offset"),Q(F+3<P.length,"Trying to read beyond buffer length")),!(P.length<=F))return K=A(P,F,B,!0),2147483648&K?-1*(4294967295-K+1):K}function x(P,F,B,K){return K||(Q(typeof B=="boolean","missing or invalid endian"),Q(F+3<P.length,"Trying to read beyond buffer length")),b.read(P,F,B,23,4)}function O(P,F,B,K){return K||(Q(typeof B=="boolean","missing or invalid endian"),Q(F+7<P.length,"Trying to read beyond buffer length")),b.read(P,F,B,52,8)}function M(P,F,B,K,L){if(L||(Q(F!=null,"missing value"),Q(typeof K=="boolean","missing or invalid endian"),Q(B!=null,"missing offset"),Q(B+1<P.length,"trying to write beyond buffer length"),Pe(F,65535)),L=P.length,!(L<=B))for(var D=0,se=Math.min(L-B,2);D<se;D++)P[B+D]=(F&255<<8*(K?D:1-D))>>>8*(K?D:1-D)}function j(P,F,B,K,L){if(L||(Q(F!=null,"missing value"),Q(typeof K=="boolean","missing or invalid endian"),Q(B!=null,"missing offset"),Q(B+3<P.length,"trying to write beyond buffer length"),Pe(F,4294967295)),L=P.length,!(L<=B))for(var D=0,se=Math.min(L-B,4);D<se;D++)P[B+D]=F>>>8*(K?D:3-D)&255}function V(P,F,B,K,L){L||(Q(F!=null,"missing value"),Q(typeof K=="boolean","missing or invalid endian"),Q(B!=null,"missing offset"),Q(B+1<P.length,"Trying to write beyond buffer length"),Ae(F,32767,-32768)),P.length<=B||M(P,0<=F?F:65535+F+1,B,K,L)}function W(P,F,B,K,L){L||(Q(F!=null,"missing value"),Q(typeof K=="boolean","missing or invalid endian"),Q(B!=null,"missing offset"),Q(B+3<P.length,"Trying to write beyond buffer length"),Ae(F,2147483647,-2147483648)),P.length<=B||j(P,0<=F?F:4294967295+F+1,B,K,L)}function Y(P,F,B,K,L){L||(Q(F!=null,"missing value"),Q(typeof K=="boolean","missing or invalid endian"),Q(B!=null,"missing offset"),Q(B+3<P.length,"Trying to write beyond buffer length"),le(F,34028234663852886e22,-34028234663852886e22)),P.length<=B||b.write(P,F,B,K,23,4)}function ne(P,F,B,K,L){L||(Q(F!=null,"missing value"),Q(typeof K=="boolean","missing or invalid endian"),Q(B!=null,"missing offset"),Q(B+7<P.length,"Trying to write beyond buffer length"),le(F,17976931348623157e292,-17976931348623157e292)),P.length<=B||b.write(P,F,B,K,52,8)}o.Buffer=S,o.SlowBuffer=S,o.INSPECT_MAX_BYTES=50,S.poolSize=8192,S._useTypedArrays=(function(){try{var P=new ArrayBuffer(0),F=new Uint8Array(P);return F.foo=function(){return 42},F.foo()===42&&typeof F.subarray=="function"}catch{return!1}})(),S.isEncoding=function(P){switch(String(P).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},S.isBuffer=function(P){return!(P==null||!P._isBuffer)},S.byteLength=function(P,F){var B;switch(P+="",F||"utf8"){case"hex":B=P.length/2;break;case"utf8":case"utf-8":B=G(P).length;break;case"ascii":case"binary":case"raw":B=P.length;break;case"base64":B=re(P).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":B=2*P.length;break;default:throw new Error("Unknown encoding")}return B},S.concat=function(P,F){if(Q(q(P),`Usage: Buffer.concat(list, [totalLength]) 12list should be an Array.`),P.length===0)return new S(0);if(P.length===1)return P[0];if(typeof F!="number")for(L=F=0;L<P.length;L++)F+=P[L].length;for(var B=new S(F),K=0,L=0;L<P.length;L++){var D=P[L];D.copy(B,K),K+=D.length}return B},S.prototype.write=function(P,F,B,K){isFinite(F)?isFinite(B)||(K=B,B=void 0):(de=K,K=F,F=B,B=de),F=Number(F)||0;var L,D,se,ve,de=this.length-F;switch((!B||de<(B=Number(B)))&&(B=de),K=String(K||"utf8").toLowerCase()){case"hex":L=(function(_e,Se,pe,ge){pe=Number(pe)||0;var fe=_e.length-pe;(!ge||fe<(ge=Number(ge)))&&(ge=fe),Q((fe=Se.length)%2==0,"Invalid hex string"),fe/2<ge&&(ge=fe/2);for(var Ce=0;Ce<ge;Ce++){var H=parseInt(Se.substr(2*Ce,2),16);Q(!isNaN(H),"Invalid hex string"),_e[pe+Ce]=H}return S._charsWritten=2*Ce,Ce})(this,P,F,B);break;case"utf8":case"utf-8":D=this,se=F,ve=B,L=S._charsWritten=Oe(G(P),D,se,ve);break;case"ascii":case"binary":L=w(this,P,F,B);break;case"base64":D=this,se=F,ve=B,L=S._charsWritten=Oe(re(P),D,se,ve);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":L=T(this,P,F,B);break;default:throw new Error("Unknown encoding")}return L},S.prototype.toString=function(P,F,B){var K,L,D,se,ve=this;if(P=String(P||"utf8").toLowerCase(),F=Number(F)||0,(B=B!==void 0?Number(B):ve.length)===F)return"";switch(P){case"hex":K=(function(de,_e,Se){var pe=de.length;(!_e||_e<0)&&(_e=0),(!Se||Se<0||pe<Se)&&(Se=pe);for(var ge="",fe=_e;fe<Se;fe++)ge+=ue(de[fe]);return ge})(ve,F,B);break;case"utf8":case"utf-8":K=(function(de,_e,Se){var pe="",ge="";Se=Math.min(de.length,Se);for(var fe=_e;fe<Se;fe++)de[fe]<=127?(pe+=Ee(ge)+String.fromCharCode(de[fe]),ge=""):ge+="%"+de[fe].toString(16);return pe+Ee(ge)})(ve,F,B);break;case"ascii":case"binary":K=I(ve,F,B);break;case"base64":L=ve,se=B,K=(D=F)===0&&se===L.length?v.fromByteArray(L):v.fromByteArray(L.slice(D,se));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":K=(function(de,_e,Se){for(var pe=de.slice(_e,Se),ge="",fe=0;fe<pe.length;fe+=2)ge+=String.fromCharCode(pe[fe]+256*pe[fe+1]);return ge})(ve,F,B);break;default:throw new Error("Unknown encoding")}return K},S.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},S.prototype.copy=function(P,F,B,K){if(F=F||0,(K=K||K===0?K:this.length)!==(B=B||0)&&P.length!==0&&this.length!==0){Q(B<=K,"sourceEnd < sourceStart"),Q(0<=F&&F<P.length,"targetStart out of bounds"),Q(0<=B&&B<this.length,"sourceStart out of bounds"),Q(0<=K&&K<=this.length,"sourceEnd out of bounds"),K>this.length&&(K=this.length);var L=(K=P.length-F<K-B?P.length-F+B:K)-B;if(L<100||!S._useTypedArrays)for(var D=0;D<L;D++)P[D+F]=this[D+B];else P._set(this.subarray(B,B+L),F)}},S.prototype.slice=function(P,F){var B=this.length;if(P=ae(P,B,0),F=ae(F,B,B),S._useTypedArrays)return S._augment(this.subarray(P,F));for(var K=F-P,L=new S(K,void 0,!0),D=0;D<K;D++)L[D]=this[D+P];return L},S.prototype.get=function(P){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(P)},S.prototype.set=function(P,F){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(P,F)},S.prototype.readUInt8=function(P,F){if(F||(Q(P!=null,"missing offset"),Q(P<this.length,"Trying to read beyond buffer length")),!(P>=this.length))return this[P]},S.prototype.readUInt16LE=function(P,F){return C(this,P,!0,F)},S.prototype.readUInt16BE=function(P,F){return C(this,P,!1,F)},S.prototype.readUInt32LE=function(P,F){return A(this,P,!0,F)},S.prototype.readUInt32BE=function(P,F){return A(this,P,!1,F)},S.prototype.readInt8=function(P,F){if(F||(Q(P!=null,"missing offset"),Q(P<this.length,"Trying to read beyond buffer length")),!(P>=this.length))return 128&this[P]?-1*(255-this[P]+1):this[P]},S.prototype.readInt16LE=function(P,F){return $(this,P,!0,F)},S.prototype.readInt16BE=function(P,F){return $(this,P,!1,F)},S.prototype.readInt32LE=function(P,F){return k(this,P,!0,F)},S.prototype.readInt32BE=function(P,F){return k(this,P,!1,F)},S.prototype.readFloatLE=function(P,F){return x(this,P,!0,F)},S.prototype.readFloatBE=function(P,F){return x(this,P,!1,F)},S.prototype.readDoubleLE=function(P,F){return O(this,P,!0,F)},S.prototype.readDoubleBE=function(P,F){return O(this,P,!1,F)},S.prototype.writeUInt8=function(P,F,B){B||(Q(P!=null,"missing value"),Q(F!=null,"missing offset"),Q(F<this.length,"trying to write beyond buffer length"),Pe(P,255)),F>=this.length||(this[F]=P)},S.prototype.writeUInt16LE=function(P,F,B){M(this,P,F,!0,B)},S.prototype.writeUInt16BE=function(P,F,B){M(this,P,F,!1,B)},S.prototype.writeUInt32LE=function(P,F,B){j(this,P,F,!0,B)},S.prototype.writeUInt32BE=function(P,F,B){j(this,P,F,!1,B)},S.prototype.writeInt8=function(P,F,B){B||(Q(P!=null,"missing value"),Q(F!=null,"missing offset"),Q(F<this.length,"Trying to write beyond buffer length"),Ae(P,127,-128)),F>=this.length||(0<=P?this.writeUInt8(P,F,B):this.writeUInt8(255+P+1,F,B))},S.prototype.writeInt16LE=function(P,F,B){V(this,P,F,!0,B)},S.prototype.writeInt16BE=function(P,F,B){V(this,P,F,!1,B)},S.prototype.writeInt32LE=function(P,F,B){W(this,P,F,!0,B)},S.prototype.writeInt32BE=function(P,F,B){W(this,P,F,!1,B)},S.prototype.writeFloatLE=function(P,F,B){Y(this,P,F,!0,B)},S.prototype.writeFloatBE=function(P,F,B){Y(this,P,F,!1,B)},S.prototype.writeDoubleLE=function(P,F,B){ne(this,P,F,!0,B)},S.prototype.writeDoubleBE=function(P,F,B){ne(this,P,F,!1,B)},S.prototype.fill=function(P,F,B){if(F=F||0,B=B||this.length,Q(typeof(P=typeof(P=P||0)=="string"?P.charCodeAt(0):P)=="number"&&!isNaN(P),"value is not a number"),Q(F<=B,"end < start"),B!==F&&this.length!==0){Q(0<=F&&F<this.length,"start out of bounds"),Q(0<=B&&B<=this.length,"end out of bounds");for(var K=F;K<B;K++)this[K]=P}},S.prototype.inspect=function(){for(var P=[],F=this.length,B=0;B<F;B++)if(P[B]=ue(this[B]),B===o.INSPECT_MAX_BYTES){P[B+1]="...";break}return"<Buffer "+P.join(" ")+">"},S.prototype.toArrayBuffer=function(){if(typeof Uint8Array>"u")throw new Error("Buffer.toArrayBuffer not supported in this browser");if(S._useTypedArrays)return new S(this).buffer;for(var P=new Uint8Array(this.length),F=0,B=P.length;F<B;F+=1)P[F]=this[F];return P.buffer};var Z=S.prototype;function ae(P,F,B){return typeof P!="number"?B:F<=(P=~~P)?F:0<=P||0<=(P+=F)?P:0}function ce(P){return(P=~~Math.ceil(+P))<0?0:P}function q(P){return(Array.isArray||function(F){return Object.prototype.toString.call(F)==="[object Array]"})(P)}function ue(P){return P<16?"0"+P.toString(16):P.toString(16)}function G(P){for(var F=[],B=0;B<P.length;B++){var K=P.charCodeAt(B);if(K<=127)F.push(P.charCodeAt(B));else for(var L=B,D=(55296<=K&&K<=57343&&B++,encodeURIComponent(P.slice(L,B+1)).substr(1).split("%")),se=0;se<D.length;se++)F.push(parseInt(D[se],16))}return F}function re(P){return v.toByteArray(P)}function Oe(P,F,B,K){for(var L=0;L<K&&!(L+B>=F.length||L>=P.length);L++)F[L+B]=P[L];return L}function Ee(P){try{return decodeURIComponent(P)}catch{return"�"}}function Pe(P,F){Q(typeof P=="number","cannot write a non-number as a number"),Q(0<=P,"specified a negative value for writing an unsigned value"),Q(P<=F,"value is larger than maximum value for type"),Q(Math.floor(P)===P,"value has a fractional component")}function Ae(P,F,B){Q(typeof P=="number","cannot write a non-number as a number"),Q(P<=F,"value larger than maximum allowed value"),Q(B<=P,"value smaller than minimum allowed value"),Q(Math.floor(P)===P,"value has a fractional component")}function le(P,F,B){Q(typeof P=="number","cannot write a non-number as a number"),Q(P<=F,"value larger than maximum allowed value"),Q(B<=P,"value smaller than minimum allowed value")}function Q(P,F){if(!P)throw new Error(F||"Failed assertion")}S._augment=function(P){return P._isBuffer=!0,P._get=P.get,P._set=P.set,P.get=Z.get,P.set=Z.set,P.write=Z.write,P.toString=Z.toString,P.toLocaleStr
vendor: 11,144 bytes, lines 12-13
12ing=Z.toString,P.toJSON=Z.toJSON,P.copy=Z.copy,P.slice=Z.slice,P.readUInt8=Z.readUInt8,P.readUInt16LE=Z.readUInt16LE,P.readUInt16BE=Z.readUInt16BE,P.readUInt32LE=Z.readUInt32LE,P.readUInt32BE=Z.readUInt32BE,P.readInt8=Z.readInt8,P.readInt16LE=Z.readInt16LE,P.readInt16BE=Z.readInt16BE,P.readInt32LE=Z.readInt32LE,P.readInt32BE=Z.readInt32BE,P.readFloatLE=Z.readFloatLE,P.readFloatBE=Z.readFloatBE,P.readDoubleLE=Z.readDoubleLE,P.readDoubleBE=Z.readDoubleBE,P.writeUInt8=Z.writeUInt8,P.writeUInt16LE=Z.writeUInt16LE,P.writeUInt16BE=Z.writeUInt16BE,P.writeUInt32LE=Z.writeUInt32LE,P.writeUInt32BE=Z.writeUInt32BE,P.writeInt8=Z.writeInt8,P.writeInt16LE=Z.writeInt16LE,P.writeInt16BE=Z.writeInt16BE,P.writeInt32LE=Z.writeInt32LE,P.writeInt32BE=Z.writeInt32BE,P.writeFloatLE=Z.writeFloatLE,P.writeFloatBE=Z.writeFloatBE,P.writeDoubleLE=Z.writeDoubleLE,P.writeDoubleBE=Z.writeDoubleBE,P.fill=Z.fill,P.inspect=Z.inspect,P.toArrayBuffer=Z.toArrayBuffer,P}}).call(this,n("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:10,lYpoI2:11}],4:[function(n,r,o){(function(s,a,v,f,d,p,h,y,m){var v=n("buffer").Buffer,b=4,S=new v(b);S.fill(0),r.exports={hash:function(w,T,I,C){for(var A=T((function(M,j){M.length%b!=0&&(V=M.length+(b-M.length%b),M=v.concat([M,S],V));for(var V,W=[],Y=j?M.readInt32BE:M.readInt32LE,ne=0;ne<M.length;ne+=b)W.push(Y.call(M,ne));return W})(w=v.isBuffer(w)?w:new v(w),C),8*w.length),T=C,$=new v(I),k=T?$.writeInt32BE:$.writeInt32LE,x=0;x<A.length;x++)k.call($,A[x],4*x,!0);return $}}}).call(this,n("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],5:[function(n,r,o){(function(s,a,v,f,d,p,h,y,m){var v=n("buffer").Buffer,b=n("./sha"),S=n("./sha256"),w=n("./rng"),T={sha1:b,sha256:S,md5:n("./md5")},I=64,C=new v(I);function A(M,j){var V=T[M=M||"sha1"],W=[];return V||$("algorithm:",M,"is not yet supported"),{update:function(Y){return v.isBuffer(Y)||(Y=new v(Y)),W.push(Y),Y.length,this},digest:function(Y){var ne=v.concat(W),ne=j?(function(Z,ae,ce){v.isBuffer(ae)||(ae=new v(ae)),v.isBuffer(ce)||(ce=new v(ce)),ae.length>I?ae=Z(ae):ae.length<I&&(ae=v.concat([ae,C],I));for(var q=new v(I),ue=new v(I),G=0;G<I;G++)q[G]=54^ae[G],ue[G]=92^ae[G];return ce=Z(v.concat([q,ce])),Z(v.concat([ue,ce]))})(V,j,ne):V(ne);return W=null,Y?ne.toString(Y):ne}}}function $(){var M=[].slice.call(arguments).join(" ");throw new Error([M,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(` 13`))}C.fill(0),o.createHash=function(M){return A(M)},o.createHmac=A,o.randomBytes=function(M,j){if(!j||!j.call)return new v(w(M));try{j.call(this,void 0,new v(w(M)))}catch(V){j(V)}};var k,x=["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],O=function(M){o[M]=function(){$("sorry,",M,"is not implemented yet")}};for(k in x)O(x[k])}).call(this,n("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:11}],6:[function(n,r,o){(function(s,a,u,f,d,p,h,y,m){var v=n("./helpers");function b($,k){$[k>>5]|=128<<k%32,$[14+(k+64>>>9<<4)]=k;for(var x=1732584193,O=-271733879,M=-1732584194,j=271733878,V=0;V<$.length;V+=16){var W=x,Y=O,ne=M,Z=j,x=w(x,O,M,j,$[V+0],7,-680876936),j=w(j,x,O,M,$[V+1],12,-389564586),M=w(M,j,x,O,$[V+2],17,606105819),O=w(O,M,j,x,$[V+3],22,-1044525330);x=w(x,O,M,j,$[V+4],7,-176418897),j=w(j,x,O,M,$[V+5],12,1200080426),M=w(M,j,x,O,$[V+6],17,-1473231341),O=w(O,M,j,x,$[V+7],22,-45705983),x=w(x,O,M,j,$[V+8],7,1770035416),j=w(j,x,O,M,$[V+9],12,-1958414417),M=w(M,j,x,O,$[V+10],17,-42063),O=w(O,M,j,x,$[V+11],22,-1990404162),x=w(x,O,M,j,$[V+12],7,1804603682),j=w(j,x,O,M,$[V+13],12,-40341101),M=w(M,j,x,O,$[V+14],17,-1502002290),x=T(x,O=w(O,M,j,x,$[V+15],22,1236535329),M,j,$[V+1],5,-165796510),j=T(j,x,O,M,$[V+6],9,-1069501632),M=T(M,j,x,O,$[V+11],14,643717713),O=T(O,M,j,x,$[V+0],20,-373897302),x=T(x,O,M,j,$[V+5],5,-701558691),j=T(j,x,O,M,$[V+10],9,38016083),M=T(M,j,x,O,$[V+15],14,-660478335),O=T(O,M,j,x,$[V+4],20,-405537848),x=T(x,O,M,j,$[V+9],5,568446438),j=T(j,x,O,M,$[V+14],9,-1019803690),M=T(M,j,x,O,$[V+3],14,-187363961),O=T(O,M,j,x,$[V+8],20,1163531501),x=T(x,O,M,j,$[V+13],5,-1444681467),j=T(j,x,O,M,$[V+2],9,-51403784),M=T(M,j,x,O,$[V+7],14,1735328473),x=I(x,O=T(O,M,j,x,$[V+12],20,-1926607734),M,j,$[V+5],4,-378558),j=I(j,x,O,M,$[V+8],11,-2022574463),M=I(M,j,x,O,$[V+11],16,1839030562),O=I(O,M,j,x,$[V+14],23,-35309556),x=I(x,O,M,j,$[V+1],4,-1530992060),j=I(j,x,O,M,$[V+4],11,1272893353),M=I(M,j,x,O,$[V+7],16,-155497632),O=I(O,M,j,x,$[V+10],23,-1094730640),x=I(x,O,M,j,$[V+13],4,681279174),j=I(j,x,O,M,$[V+0],11,-358537222),M=I(M,j,x,O,$[V+3],16,-722521979),O=I(O,M,j,x,$[V+6],23,76029189),x=I(x,O,M,j,$[V+9],4,-640364487),j=I(j,x,O,M,$[V+12],11,-421815835),M=I(M,j,x,O,$[V+15],16,530742520),x=C(x,O=I(O,M,j,x,$[V+2],23,-995338651),M,j,$[V+0],6,-198630844),j=C(j,x,O,M,$[V+7],10,1126891415),M=C(M,j,x,O,$[V+14],15,-1416354905),O=C(O,M,j,x,$[V+5],21,-57434055),x=C(x,O,M,j,$[V+12],6,1700485571),j=C(j,x,O,M,$[V+3],10,-1894986606),M=C(M,j,x,O,$[V+10],15,-1051523),O=C(O,M,j,x,$[V+1],21,-2054922799),x=C(x,O,M,j,$[V+8],6,1873313359),j=C(j,x,O,M,$[V+15],10,-30611744),M=C(M,j,x,O,$[V+6],15,-1560198380),O=C(O,M,j,x,$[V+13],21,1309151649),x=C(x,O,M,j,$[V+4],6,-145523070),j=C(j,x,O,M,$[V+11],10,-1120210379),M=C(M,j,x,O,$[V+2],15,718787259),O=C(O,M,j,x,$[V+9],21,-343485551),x=A(x,W),O=A(O,Y),M=A(M,ne),j=A(j,Z)}return Array(x,O,M,j)}function S($,k,x,O,M,j){return A((k=A(A(k,$),A(O,j)))<<M|k>>>32-M,x)}function w($,k,x,O,M,j,V){return S(k&x|~k&O,$,k,M,j,V)}function T($,k,x,O,M,j,V){return S(k&O|x&~O,$,k,M,j,V)}function I($,k,x,O,M,j,V){return S(k^x^O,$,k,M,j,V)}function C($,k,x,O,M,j,V){return S(x^(k|~O),$,k,M,j,V)}function A($,k){var x=(65535&$)+(65535&k);return($>>16)+(k>>16)+(x>>16)<<16|65535&x}r.exports=function($){return v.hash($,b,16)}}).call(this,n("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],7:[function(n,r,o){(function(s,a,u,f,d,p,h,y,m){r.exports=function(v){for(var b,S=new Array(v),w=0;w<v;w++)(3&w)==0&&(b=4294967296*Math.random()),S[w]=b>>>((3&w)<<3)&255;return S}}).call(this,n("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],8:[function(n,r,o){(function(s,a,u,f,d,p,h,y,m){var v=n("./helpers");function b(T,I){T[I>>5]|=128<<24-I%32,T[15+(I+64>>9<<4)]=I;for(var C,A,$,k=Array(80),x=1732584193,O=-271733879,M=-1732584194,j=271733878,V=-1009589776,W=0;W<T.length;W+=16){for(var Y=x,ne=O,Z=M,ae=j,ce=V,q=0;q<80;q++){k[q]=q<16?T[W+q]:w(k[q-3]^k[q-8]^k[q-14]^k[q-16],1);var ue=S(S(w(x,5),(ue=O,A=M,$=j,(C=q)<20?ue&A|~ue&$:!(C<40)&&C<60?ue&A|ue&$|A&$:ue^A^$)),S(S(V,k[q]),(C=q)<20?1518500249:C<40?1859775393:C<60?-1894007588:-899497514)),V=j,j=M,M=w(O,30),O=x,x=ue}x=S(x,Y),O=S(O,ne),M=S(M,Z),j=S(j,ae),V=S(V,ce)}return Array(x,O,M,j,V)}function S(T,I){var C=(65535&T)+(65535&I);return(T>>16)+(I>>16)+(C>>16)<<16|65535&C}function w(T,I){return T<<I|T>>>32-I}r.exports=function(T){return v.hash(T,b,20,!0)}}).call(this,n("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],9:[function(n,r,o){(function(s,a,u,f,d,p,h,y,m){function v(I,C){var A=(65535&I)+(65535&C);return(I>>16)+(C>>16)+(A>>16)<<16|65535&A}function b(I,C){var A,$=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),k=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),x=new Array(64);I[C>>5]|=128<<24-C%32,I[15+(C+64>>9<<4)]=C;for(var O,M,j=0;j<I.length;j+=16){for(var V=k[0],W=k[1],Y=k[2],ne=k[3],Z=k[4],ae=k[5],ce=k[6],q=k[7],ue=0;ue<64;ue++)x[ue]=ue<16?I[ue+j]:v(v(v((M=x[ue-2],w(M,17)^w(M,19)^T(M,10)),x[ue-7]),(M=x[ue-15],w(M,7)^w(M,18)^T(M,3))),x[ue-16]),A=v(v(v(v(q,w(M=Z,6)^w(M,11)^w(M,25)),Z&ae^~Z&ce),$[ue]),x[ue]),O=v(w(O=V,2)^w(O,13)^w(O,22),V&W^V&Y^W&Y),q=ce,ce=ae,ae=Z,Z=v(ne,A),ne=Y,Y=W,W=V,V=v(A,O);k[0]=v(V,k[0]),k[1]=v(W,k[1]),k[2]=v(Y,k[2]),k[3]=v(ne,k[3]),k[4]=v(Z,k[4]),k[5]=v(ae,k[5]),k[6]=v(ce,k[6]),k[7]=v(q,k[7])}return k}var S=n("./helpers"),w=function(I,C){return I>>>C|I<<32-C},T=function(I,C){return I>>>C};r.exports=function(I){return S.hash(I,b,32,!0)}}).call(this,n("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],10:[function(n,r,o){(function(s,a,u,f,d,p,h,y,m){o.read=function(v,b,S,w,j){var I,C,A=8*j-w-1,$=(1<<A)-1,k=$>>1,x=-7,O=S?j-1:0,M=S?-1:1,j=v[b+O];for(O+=M,I=j&(1<<-x)-1,j>>=-x,x+=A;0<x;I=256*I+v[b+O],O+=M,x-=8);for(C=I&(1<<-x)-1,I>>=-x,x+=w;0<x;C=256*C+v[b+O],O+=M,x-=8);if(I===0)I=1-k;else{if(I===$)return C?NaN:1/0*(j?-1:1);C+=Math.pow(2,w),I-=k}return(j?-1:1)*C*Math.pow(2,I-w)},o.write=function(v,b,S,w,T,V){var C,A,$=8*V-T-1,k=(1<<$)-1,x=k>>1,O=T===23?Math.pow(2,-24)-Math.pow(2,-77):0,M=w?0:V-1,j=w?1:-1,V=b<0||b===0&&1/b<0?1:0;for(b=Math.abs(b),isNaN(b)||b===1/0?(A=isNaN(b)?1:0,C=k):(C=Math.floor(Math.log(b)/Math.LN2),b*(w=Math.pow(2,-C))<1&&(C--,w*=2),2<=(b+=1<=C+x?O/w:O*Math.pow(2,1-x))*w&&(C++,w/=2),k<=C+x?(A=0,C=k):1<=C+x?(A=(b*w-1)*M
13ath.pow(2,T),C+=x):(A=b*Math.pow(2,x-1)*Math.pow(2,T),C=0));8<=T;v[S+M]=255&A,M+=j,A/=256,T-=8);for(C=C<<T|A,$+=T;0<$;v[S+M]=255&C,M+=j,C/=256,$-=8);v[S+M-j]|=128*V}}).call(this,n("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/ieee754/index.js","/node_modules/gulp-browserify/node_modules/ieee754")},{buffer:3,lYpoI2:11}],11:[function(n,r,o){(function(s,a,u,f,d,p,h,y,m){var v,b,S;function w(){}(s=r.exports={}).nextTick=(b=typeof window<"u"&&window.setImmediate,S=typeof window<"u"&&window.postMessage&&window.addEventListener,b?function(T){return window.setImmediate(T)}:S?(v=[],window.addEventListener("message",function(T){var I=T.source;I!==window&&I!==null||T.data!=="process-tick"||(T.stopPropagation(),0<v.length&&v.shift()())},!0),function(T){v.push(T),window.postMessage("process-tick","*")}):function(T){setTimeout(T,0)}),s.title="browser",s.browser=!0,s.env={},s.argv=[],s.on=w,s.addListener=w,s.once=w,s.off=w,s.removeListener=w,s.removeAllListeners=w,s.emit=w,s.binding=function(T){throw new Error("process.binding is not supported")},s.cwd=function(){return"/"},s.chdir=function(T){throw new Error("process.chdir is not supported")}}).call(this,n("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/process")},{buffer:3,lYpoI2:11}]},{},[1])(1)})})(Mg)),Mg.exports}var xB=AB();const CB=IB(xB);function RB(e){return CB(e)}let OB=class{constructor(t,n){this.ctx=t,this.logger=n,this.responseHandlers=[],this.state="QUERY_STATE_IDLE";const{queryString:r,options:o,resolve:s,reject:a}=t;this._id=RB({queryString:r,...o}),this.responseHandlers.push({resolve:s,reject:a})}get id(){return this._id}get isPending(){return this.state==="QUERY_STATE_PENDING"}resolveRequest(t,n){const r=Object.keys(t).length>0,o=n.length>0;if(!r&&!o){const a=`ÐекоÑÑекÑнÑй ÑоÑÐ¼Ð°Ñ Ð´Ð°Ð½Ð½ÑÑ
в оÑвеÑе ÑеÑвеÑа ${this.ctx.options.operationName}`;throw this.logger.error({query:this.ctx.queryString,variables:this.ctx.options.variables,operationName:this.ctx.options.operationName},a),new Error(a)}if(!r){n.forEach(a=>{this.logger.error({err:a,query:this.ctx.queryString,variables:this.ctx.options.variables,operationName:this.ctx.options.operationName},"Ðе ÑдалоÑÑ Ð²ÑполниÑÑ Ð·Ð°Ð¿ÑÐ¾Ñ "+this.ctx.options.operationName)}),this.responseHandlers.forEach(({reject:a})=>a(new Error(`${n[0].message} ${this.ctx.options.operationName}`)));return}o&&n.forEach(a=>{this.logger.warn({err:a,query:this.ctx.queryString,variables:this.ctx.options.variables,operationName:this.ctx.options.operationName},"ÐапÑÐ¾Ñ Ð²Ñполнен Ñ Ð¾Ñибками "+this.ctx.options.operationName)});const s=this.ctx.options.type===y0?Object.values(t)[0]:t;this.responseHandlers.forEach(({resolve:a})=>a(s))}addResponseHandler(t){const{resolve:n,reject:r}=t.ctx;this.responseHandlers.push({resolve:n,reject:r})}async execute(){this.state="QUERY_STATE_PENDING";try{const t=await this.ctx.sender(this.ctx.queryString,this.ctx.options),n=t?.data||{},r=t?.errors||[];this.state="QUERY_STATE_RESOLVING",this.resolveRequest(n,r),this.state="QUERY_STATE_RESOLVED"}catch(t){this.state="QUERY_STATE_ERROR",this.logger.error({err:t,query:this.ctx.queryString,operationName:this.ctx.options.operationName,variables:this.ctx.options.variables},"ÐÑибка запÑоÑа "+this.ctx.options.operationName),this.responseHandlers.forEach(({reject:n})=>n(t))}}};const kB=(e,t)=>e||t.slice(0,20);let LB=class{constructor(){this.inFlightCount=0,this.busyStartedAt=0,this.busyTimeMs=0,this.maxQueryTimeMs=0,this.maxQueryOperationName=""}onQueryStart(){this.inFlightCount===0&&(this.busyStartedAt=performance.now()),this.inFlightCount+=1}onQueryEnd(t,n,r){this.inFlightCount-=1,this.inFlightCount===0&&(this.busyTimeMs+=performance.now()-this.busyStartedAt),r>=this.maxQueryTimeMs&&(this.maxQueryTimeMs=r,this.maxQueryOperationName=kB(t,n))}getStats(){return{busyTimeMs:this.busyTimeMs,maxQueryTimeMs:this.maxQueryTimeMs,maxQueryOperationName:this.maxQueryOperationName}}};const MB={type:y0,timeout:xA};let PB=class{constructor(t,n){this.sender=t,this.rootLogger=n,this.queries={},this.timingTracker=new LB,this.logger=n.child({"package.name":tf,"module.name":"core/queryManager"})}async dispatchQuery(t){const n=new OB(t,this.rootLogger);if(this.queries[n.id]?.isPending)return this.logger.debug({id:n.id,query:t.queryString},"ÐапÑÐ¾Ñ Ñже вÑполнÑеÑÑÑ, добавлÑем Ñ
ÑÐ½Ð´Ð»ÐµÑ Ðº ÑÑÑеÑÑвÑÑÑÐµÐ¼Ñ Ð·Ð°Ð¿ÑоÑÑ"),this.queries[n.id].addResponseHandler(n);this.logger.debug({id:n.id,query:t.queryString},"ÐÑполнÑем новÑй запÑоÑ"),this.queries[n.id]=n,this.timingTracker.onQueryStart();const r=performance.now();try{await n.execute()}finally{this.timingTracker.onQueryEnd(t.options.operationName,t.queryString,performance.now()-r),delete this.queries[n.id]}}getTimingStats(){return this.timingTracker.getStats()}dispatch(t,n){const r={...MB,...n};return this.logger.debug({options:r,query:t},"вÑполнÑем запÑоÑ"),new Promise((o,s)=>{this.dispatchQuery({queryString:t,options:r,sender:this.sender,resolve:o,reject:s})})}};const BB=(e=0)=>new Promise(t=>setTimeout(t,e)),NB={"Content-Type":"application/json; charset=utf-8"},DB={};let Ay=class{constructor(t,n,r,o){this.config=t,this.httpClient=n,this.wsClient=r,this._headers={},this.interceptors={response:{use:s=>{this.httpClient.useResponseInterceptor(s)}}},this.httpSend=(s,a)=>{const{customHeaders:u,timeout:f,type:d,operationName:p,variables:h}=a,y={...this.headers,...u},m=JSON.stringify({query:`${d==="QUERY_GQL_REQ_TYPE"?"query":"mutation"} ${p||""} ${s}`,operationName:p,variables:h});
13return this.httpClient.makeRequest({timeout:f,headers:y,body:m,operationName:p,collector:this.collector})},this.unsubscribe=s=>{this.wsClient.unsubscribe(s)},this.log=o.child({"package.name":tf,"module.name":"core/gqlClient"}),this.httpClient.updateEntry(t.entry??""),this.wsClient.updateEntry(t.wsEntry??t.entry??""),this.updateHeaders({"X-Appname":t.appName,"User-Agent":t.appName}),this.queryManager=new PB(this.httpSend.bind(this),o)}get headers(){const{...t}=this.config.defaultHeaders??{};return{...NB,...DB,...t,...this._headers}}setCollector(t){this.collector=t}getTimingStats(){return this.queryManager.getTimingStats()}cancelAllRequests(t){this.httpClient.cancelPending(t)}updateHeaders(t={}){this._headers={...this.headers,...t}}replaceHeaders(t={}){this._headers=t}updateHttpEntry(t){this.httpClient.updateEntry(t),this.replaceHeaders()}updateWsEntry(t){this.wsClient.updateEntry(t)}updateEntry(t){this.updateHttpEntry(t),this.updateWsEntry(t)}gqlQuery(t,n,r){return this.query(t(n),{variables:n,operationName:t.operationName,...r})}resolveTimeout(t){return t!==void 0?t:this.config.timeout!==void 0?this.config.timeout:xA}async query(t,n){try{const r=this.resolveTimeout(n?.timeout);return await this.queryManager.dispatch(t,{...n,timeout:r,type:y0})}catch(r){if(n?.retries&&n?.retries>0){const o=n.retryCount??1,s=(n.retryDelay??0)*o;await BB(s);const a=n.retries-1;return this.log.warn({retriesLeft:a,query:t,variables:n?.variables,operationName:n?.operationName},"ÐопÑÑка ÑделаÑÑ Ð·Ð°Ð¿ÑÐ¾Ñ "+n?.operationName),await this.query(t,{...n,retries:a,retryCount:o+1})}throw this.log.error({err:r,query:t,variables:n?.variables,operationName:n?.operationName},"ÐÑибка запÑоÑа "+n?.operationName),r}}gqlMutation(t,n,r){return this.mutation(t(n),{variables:n,operationName:t.operationName,...r})}async mutation(t,n){try{return await this.queryManager.dispatch(t,{...n,type:J7})}catch(r){throw this.log.error({err:r,query:t,variables:n?.variables,operationName:n?.operationName},"ÐÑибка мÑÑаÑии "+n?.operationName),r}}subscribe(t){return this.wsClient.subscribe(t)}},UB=class{constructor(t,n,r,o){this.config=t,this.httpClient=n,this.wsClient=r,this.logger=o}create(){return new Ay(this.config,this.httpClient,this.wsClient,this.logger)}static createInstance(t){const n=new eB,r=t.logger||new xh({config:{level:pn.WARN}}),o=t.httpClient||new dB(n,r,t.onGatewayCall),s=t.wsClient||new TB(r,t.config.wsEntry??t.config.entry??"",t.config.wsProtocols??t.config.appName);return new Ay(t.config,o,s,r)}},HB=class{constructor(){this.makeRequest=(()=>{}),this.updateEntry=(()=>{}),this.useResponseInterceptor=(()=>{}),this.cancelPending=(()=>{})}},FB=class{constructor(){this.subscribe=(()=>{}),this.unsubscribe=(()=>{}),this.updateEntry=(()=>{}),this.disconnect=(()=>{})}};const jB={appName:"test",entry:""},VB=new HB,qB=new FB,WB=new xh({});new Ay(jB,VB,qB,WB);const zB=new Set(["title","titleTemplate","script","style","noscript"]),Td=new Set(["base","meta","link","style","script","noscript"]),GB=new Set(["title","titleTemplate","templateParams","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),YB=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),CA=new Set(["tagPosition","tagPriority","tagDuplicateStrategy","children","innerHTML","textContent","processTemplateParams"]),KB=typeof window<"u";function _p(e){let t=9;for(let n=0;n<e.length;)t=Math.imul(t^e.charCodeAt(n++),9**9);return((t^t>>>9)+65536).toString(16).substring(1,8).toLowerCase()}function xy(e){if(e._h)return e._h;if(e._d)return _p(e._d);let t=`${e.tag}:${e.textContent||e.innerHTML||""}:`;for(const n in e.props)t+=`${n}:${String(e.props[n])},`;return _p(t)}function ZB(e,t){return e instanceof Promise?e.then(t):t(e)}function Cy(e,t,n,r){const o=r||OA(typeof t=="object"&&typeof t!="function"&&!(t instanceof Promise)?{...t}:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},e==="templateParams"||e==="titleTemplate");if(o instanceof Promise)return o.then(a=>Cy(e,t,n,a));const s={tag:e,props:o};for(const a of CA){const u=s.props[a]!==void 0?s.props[a]:n[a];u!==void 0&&((!(a==="innerHTML"||a==="textContent"||a==="children")||zB.has(s.tag))&&(s[a==="children"?"innerHTML":a]=u),delete s.props[a])}return s.props.body&&(s.tagPosition="bodyClose",delete s.props.body),s.tag==="script"&&typeof s.innerHTML=="object"&&(s.innerHTML=JSON.stringify(s.innerHTML),s.props.type=s.props.type||"application/json"),Array.isArray(s.props.content)?s.props.content.map(a=>({...s,props:{...s.props,content:a}})):s}function QB(e,t){const n=e==="class"?" ":";";return t&&typeof t=="object"&&!Array.isArray(t)&&(t=Object.entries(t).filter(([,r])=>r).map(([r,o])=>e==="style"?`${r}:${o}`:r)),String(Array.isArray(t)?t.join(n):t)?.split(n).filter(r=>!!r.trim()).join(n)}function RA(e,t,n,r){for(let o=r;o<n.length;o+=1){const s=n[o];if(s==="class"||s==="style"){e[s]=QB(s,e[s]);continue}if(e[s]instanceof Promise)return e[s].then(a=>(e[s]=a,RA(e,t,n,o)));if(!t&&!CA.has(s)){const a=String(e[s]),u=s.startsWith("data-");a==="true"||a===""?e[s]=u?"true":!0:e[s]||(u&&a==="false"?e[s]="false":delete e[s])}}}function OA(e,t=!1){const n=RA(e,t,Object.keys(e),0);return n instanceof Promise?n.then(()=>e):e}const JB=10;function kA(e,t,n){for(let r=n;r<t.length;r+=1){const o=t[r];if(o instanceof Promise)return o.then(s=>(t[r]=s,kA(e,t,r)));Array.isArray(o)?e.push(...o):e.push(o)}}function XB(e){const t=[],n=e.resolvedInput;for(const o in n){if(!Object.prototype.hasOwnProperty.call(n,o))continue;const s=n[o];if(!(s===void 0||!GB.has(o))){if(Array.isArray(s)){for(const a of s)t.push(Cy(o,a,e));continue}t.push(Cy(o,s,e))}}if(t.length===0)return[];const r=[];return ZB(kA(r,t,0),()=>r.map((o,s)=>(o._e=e._i,e.mode&&(o._m=e.mode),o._p=(e._i<<JB)+s,o)))}
13const w2=new Set(["onload","onerror","onabort","onprogress","onloadstart"]),E2={base:-10,title:10},S2={critical:-80,high:-10,low:20};function bp(e){const t=e.tagPriority;if(typeof t=="number")return t;let n=100;return e.tag==="meta"?e.props["http-equiv"]==="content-security-policy"?n=-30:e.props.charset?n=-20:e.props.name==="viewport"&&(n=-15):e.tag==="link"&&e.props.rel==="preconnect"?n=20:e.tag in E2&&(n=E2[e.tag]),t&&t in S2?n+S2[t]:n}const eN=[{prefix:"before:",offset:-1},{prefix:"after:",offset:1}],tN=["name","property","http-equiv"];function LA(e){const{props:t,tag:n}=e;if(YB.has(n))return n;if(n==="link"&&t.rel==="canonical")return"canonical";if(t.charset)return"charset";if(t.id)return`${n}:id:${t.id}`;for(const r of tN)if(t[r]!==void 0)return`${n}:${r}:${t[r]}`;return!1}const li="%separator";function nN(e,t,n=!1){let r;if(t==="s"||t==="pageTitle")r=e.pageTitle;else if(t.includes(".")){const o=t.indexOf(".");r=e[t.substring(0,o)]?.[t.substring(o+1)]}else r=e[t];if(r!==void 0)return n?(r||"").replace(/"/g,'\\"'):r||""}const rN=new RegExp(`${li}(?:\\s*${li})*`,"g");function Gf(e,t,n,r=!1){if(typeof e!="string"||!e.includes("%"))return e;let o=e;try{o=decodeURI(e)}catch{}const s=o.match(/%\w+(?:\.\w+)?/g);if(!s)return e;const a=e.includes(li);return e=e.replace(/%\w+(?:\.\w+)?/g,u=>{if(u===li||!s.includes(u))return u;const f=nN(t,u.slice(1),r);return f!==void 0?f:u}).trim(),a&&(e.endsWith(li)&&(e=e.slice(0,-li.length)),e.startsWith(li)&&(e=e.slice(li.length)),e=e.replace(rN,n).trim()),e}function $2(e,t){return e==null?t||null:typeof e=="function"?e(t):e}async function MA(e,t={}){const n=t.document||e.resolvedOptions.document;if(!n||!e.dirty)return;const r={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",r),!!r.shouldRender)return e._domUpdatePromise||(e._domUpdatePromise=new Promise(async o=>{const s=(await e.resolveTags()).map(h=>({tag:h,id:Td.has(h.tag)?xy(h):h.tag,shouldRender:!0}));let a=e._dom;if(!a){a={elMap:{htmlAttrs:n.documentElement,bodyAttrs:n.body}};const h=new Set;for(const y of["body","head"]){const m=n[y]?.children;for(const v of m){const b=v.tagName.toLowerCase();if(!Td.has(b))continue;const S={tag:b,props:await OA(v.getAttributeNames().reduce((C,A)=>({...C,[A]:v.getAttribute(A)}),{})),innerHTML:v.innerHTML},w=LA(S);let T=w,I=1;for(;T&&h.has(T);)T=`${w}:${I++}`;T&&(S._d=T,h.add(T)),a.elMap[v.getAttribute("data-hid")||xy(S)]=v}}}a.pendingSideEffects={...a.sideEffects},a.sideEffects={};function u(h,y,m){const v=`${h}:${y}`;a.sideEffects[v]=m,delete a.pendingSideEffects[v]}function f({id:h,$el:y,tag:m}){const v=m.tag.endsWith("Attrs");if(a.elMap[h]=y,v||(m.textContent&&m.textContent!==y.textContent&&(y.textContent=m.textContent),m.innerHTML&&m.innerHTML!==y.innerHTML&&(y.innerHTML=m.innerHTML),u(h,"el",()=>{a.elMap[h]?.remove(),delete a.elMap[h]})),m._eventHandlers)for(const b in m._eventHandlers)Object.prototype.hasOwnProperty.call(m._eventHandlers,b)&&y.getAttribute(`data-${b}`)!==""&&((m.tag==="bodyAttrs"?n.defaultView:y).addEventListener(b.substring(2),m._eventHandlers[b].bind(y)),y.setAttribute(`data-${b}`,""));for(const b in m.props){if(!Object.prototype.hasOwnProperty.call(m.props,b))continue;const S=m.props[b],w=`attr:${b}`;if(b==="class"){if(!S)continue;for(const T of S.split(" "))v&&u(h,`${w}:${T}`,()=>y.classList.remove(T)),!y.classList.contains(T)&&y.classList.add(T)}else if(b==="style"){if(!S)continue;for(const T of S.split(";")){const I=T.indexOf(":"),C=T.substring(0,I).trim(),A=T.substring(I+1).trim();u(h,`${w}:${C}`,()=>{y.style.removeProperty(C)}),y.style.setProperty(C,A)}}else y.getAttribute(b)!==S&&y.setAttribute(b,S===!0?"":String(S)),v&&u(h,w,()=>y.removeAttribute(b))}}const d=[],p={bodyClose:void 0,bodyOpen:void 0,head:void 0};for(const h of s){const{tag:y,shouldRender:m,id:v}=h;if(m){if(y.tag==="title"){n.title=y.textContent;continue}h.$el=h.$el||a.elMap[v],h.$el?f(h):Td.has(y.tag)&&d.push(h)}}for(const h of d){const y=h.tag.tagPosition||"head";h.$el=n.createElement(h.tag.tag),f(h),p[y]=p[y]||n.createDocumentFragment(),p[y].appendChild(h.$el)}for(const h of s)await e.hooks.callHook("dom:renderTag",h,n,u);p.head&&n.head.appendChild(p.head),p.bodyOpen&&n.body.insertBefore(p.bodyOpen,n.body.firstChild),p.bodyClose&&n.body.appendChild(p.bodyClose);for(const h in a.pendingSideEffects)a.pendingSideEffects[h]();e._dom=a,await e.hooks.callHook("dom:rendered",{renders:s}),o()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}function PA(e,t={}){const n=t.delayFn||(r=>setTimeout(r,10));return e._domDebouncedUpdatePromise=e._domDebouncedUpdatePromise||new Promise(r=>n(()=>MA(e,t).then(()=>{delete e._domDebouncedUpdatePromise,r()})))}function oN(e){return t=>{const n=t.resolvedOptions.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1;
13return n&&t.push(JSON.parse(n)),{mode:"client",hooks:{"entries:updated":r=>{PA(r,e)}}}}}function Ry(e,t={},n){for(const r in e){const o=e[r],s=n?`${n}:${r}`:r;typeof o=="object"&&o!==null?Ry(o,t,s):typeof o=="function"&&(t[s]=o)}return t}const iN={run:e=>e()},sN=()=>iN,BA=typeof console.createTask<"u"?console.createTask:sN;function aN(e,t){const n=t.shift(),r=BA(n);return e.reduce((o,s)=>o.then(()=>r.run(()=>s(...t))),Promise.resolve())}function uN(e,t){const n=t.shift(),r=BA(n);return Promise.all(e.map(o=>r.run(()=>o(...t))))}function Pg(e,t){for(const n of[...e])n(t)}class lN{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,n,r={}){if(!t||typeof n!="function")return()=>{};const o=t;let s;for(;this._deprecatedHooks[t];)s=this._deprecatedHooks[t],t=s.to;if(s&&!r.allowDeprecated){let a=s.message;a||(a=`${o} hook has been deprecated`+(s.to?`, please use ${s.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(a)||(console.warn(a),this._deprecatedMessages.add(a))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let r,o=(...s)=>(typeof r=="function"&&r(),r=void 0,o=void 0,n(...s));return r=this.hook(t,o),r}removeHook(t,n){if(this._hooks[t]){const r=this._hooks[t].indexOf(n);r!==-1&&this._hooks[t].splice(r,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const r=this._hooks[t]||[];delete this._hooks[t];for(const o of r)this.hook(t,o)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=Ry(t),r=Object.keys(n).map(o=>this.hook(o,n[o]));return()=>{for(const o of r.splice(0,r.length))o()}}removeHooks(t){const n=Ry(t);for(const r in n)this.removeHook(r,n[r])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith(aN,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(uN,t,...n)}callHookWith(t,n,...r){const o=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&Pg(this._before,o);const s=t(n in this._hooks?[...this._hooks[n]]:[],r);return s instanceof Promise?s.finally(()=>{this._after&&o&&Pg(this._after,o)}):(this._after&&o&&Pg(this._after,o),s)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}}function cN(){return new lN}const fN=new Set(["templateParams","htmlAttrs","bodyAttrs"]),dN={hooks:{"tag:normalise":({tag:e})=>{e.props.hid&&(e.key=e.props.hid,delete e.props.hid),e.props.vmid&&(e.key=e.props.vmid,delete e.props.vmid),e.props.key&&(e.key=e.props.key,delete e.props.key);const t=LA(e);t&&!t.startsWith("meta:og:")&&!t.startsWith("meta:twitter:")&&delete e.key;const n=t||(e.key?`${e.tag}:${e.key}`:!1);n&&(e._d=n)},"tags:resolve":e=>{const t=Object.create(null);for(const r of e.tags){const o=(r.key?`${r.tag}:${r.key}`:r._d)||xy(r),s=t[o];if(s){let u=r?.tagDuplicateStrategy;if(!u&&fN.has(r.tag)&&(u="merge"),u==="merge"){const f=s.props;f.style&&r.props.style&&(f.style[f.style.length-1]!==";"&&(f.style+=";"),r.props.style=`${f.style} ${r.props.style}`),f.class&&r.props.class?r.props.class=`${f.class} ${r.props.class}`:f.class&&(r.props.class=f.class),t[o].props={...f,...r.props};continue}else if(r._e===s._e){s._duped=s._duped||[],r._d=`${s._d}:${s._duped.length+1}`,s._duped.push(r);continue}else if(bp(r)>bp(s))continue}if(!(r.innerHTML||r.textContent||Object.keys(r.props).length!==0)&&Td.has(r.tag)){delete t[o];continue}t[o]=r}const n=[];for(const r in t){const o=t[r],s=o._duped;n.push(o),s&&(delete o._duped,n.push(...s))}e.tags=n,e.tags=e.tags.filter(r=>!(r.tag==="meta"&&(r.props.name||r.props.property)&&!r.props.content))}}},pN=new Set(["script","link","bodyAttrs"]),hN=e=>({hooks:{"tags:resolve":t=>{for(const n of t.tags){if(!pN.has(n.tag))continue;const r=n.props;for(const o in r){if(o[0]!=="o"||o[1]!=="n"||!Object.prototype.hasOwnProperty.call(r,o))continue;const s=r[o];typeof s=="function"&&(e.ssr&&w2.has(o)?r[o]=`this.dataset.${o}fired = true`:delete r[o],n._eventHandlers=n._eventHandlers||{},n._eventHandlers[o]=s)}e.ssr&&n._eventHandlers&&(n.props.src||n.props.href)&&(n.key=n.key||_p(n.props.src||n.props.href))}},"dom:renderTag":({$el:t,tag:n})=>{const r=t?.dataset;if(r)for(const o in r){if(!o.endsWith("fired"))continue;const s=o.slice(0,-5);w2.has(s)&&n._eventHandlers?.[s]?.call(t,new Event(s.substring(2)))}}}}),gN=new Set(["link","style","script","noscript"]),mN={hooks:{"tag:normalise":({tag:e})=>{e.key&&gN.has(e.tag)&&(e.props["data-hid"]=e._h=_p(e.key))}}},yN={mode:"server",hooks:{"tags:beforeResolve":e=>{const t={};let n=!1;for(const r of e.tags)r._m!=="server"||r.tag!=="titleTemplate"&&r.tag!=="templateParams"&&r.tag!=="title"||(t[r.tag]=r.tag==="title"||r.tag==="titleTemplate"?r.textContent:r.props,n=!0);n&&e.tags.push({tag:"script",innerHTML:JSON.stringify(t),props:{id:"unhead:payload",type:"application/json"}})}}},vN={hooks:{"tags:resolve":e=>{for(const t of e.tags)if(typeof t.tagPriority=="string")for(const{prefix:n,offset:r}
13of eN){if(!t.tagPriority.startsWith(n))continue;const o=t.tagPriority.substring(n.length),s=e.tags.find(a=>a._d===o)?._p;if(s!==void 0){t._p=s+r;break}}e.tags.sort((t,n)=>{const r=bp(t),o=bp(n);return r<o?-1:r>o?1:t._p-n._p})}}},_N={meta:"content",link:"href",htmlAttrs:"lang"},bN=["innerHTML","textContent"],wN=e=>({hooks:{"tags:resolve":t=>{const{tags:n}=t;let r;for(let a=0;a<n.length;a+=1)n[a].tag==="templateParams"&&(r=t.tags.splice(a,1)[0].props,a-=1);const o=r||{},s=o.separator||"|";delete o.separator,o.pageTitle=Gf(o.pageTitle||n.find(a=>a.tag==="title")?.textContent||"",o,s);for(const a of n){if(a.processTemplateParams===!1)continue;const u=_N[a.tag];if(u&&typeof a.props[u]=="string")a.props[u]=Gf(a.props[u],o,s);else if(a.processTemplateParams||a.tag==="titleTemplate"||a.tag==="title")for(const f of bN)typeof a[f]=="string"&&(a[f]=Gf(a[f],o,s,a.tag==="script"&&a.props.type.endsWith("json")))}e._templateParams=o,e._separator=s},"tags:afterResolve":({tags:t})=>{let n;for(let r=0;r<t.length;r+=1){const o=t[r];o.tag==="title"&&o.processTemplateParams!==!1&&(n=o)}n?.textContent&&(n.textContent=Gf(n.textContent,e._templateParams,e._separator))}}}),EN={hooks:{"tags:resolve":e=>{const{tags:t}=e;let n,r;for(let o=0;o<t.length;o+=1){const s=t[o];s.tag==="title"?n=s:s.tag==="titleTemplate"&&(r=s)}if(r&&n){const o=$2(r.textContent,n.textContent);o!==null?n.textContent=o||n.textContent:e.tags.splice(e.tags.indexOf(n),1)}else if(r){const o=$2(r.textContent);o!==null&&(r.textContent=o,r.tag="title",r=void 0)}r&&e.tags.splice(e.tags.indexOf(r),1)}}},SN={hooks:{"tags:afterResolve":e=>{for(const t of e.tags)typeof t.innerHTML=="string"&&(t.innerHTML&&(t.props.type==="application/ld+json"||t.props.type==="application/json")?t.innerHTML=t.innerHTML.replace(/</g,"\\u003C"):t.innerHTML=t.innerHTML.replace(new RegExp(`</${t.tag}`,"g"),`<\\/${t.tag}`))}}};let NA;function $N(e={}){const t=TN(e);return t.use(oN()),NA=t}function T2(e,t){return!e||e==="server"&&t||e==="client"&&!t}function TN(e={}){const t=cN();t.addHooks(e.hooks||{}),e.document=e.document||(KB?document:void 0);const n=!e.document,r=()=>{u.dirty=!0,t.callHook("entries:updated",u)};let o=0,s=[];const a=[],u={plugins:a,dirty:!1,resolvedOptions:e,hooks:t,headEntries(){return s},use(f){const d=typeof f=="function"?f(u):f;(!d.key||!a.some(p=>p.key===d.key))&&(a.push(d),T2(d.mode,n)&&t.addHooks(d.hooks||{}))},push(f,d){delete d?.head;const p={_i:o++,input:f,...d};return T2(p.mode,n)&&(s.push(p),r()),{dispose(){s=s.filter(h=>h._i!==p._i),r()},patch(h){for(const y of s)y._i===p._i&&(y.input=p.input=h);r()}}},async resolveTags(){const f={tags:[],entries:[...s]};await t.callHook("entries:resolve",f);for(const d of f.entries){const p=d.resolvedInput||d.input;if(d.resolvedInput=await(d.transform?d.transform(p):p),d.resolvedInput)for(const h of await XB(d)){const y={tag:h,entry:d,resolvedOptions:u.resolvedOptions};await t.callHook("tag:normalise",y),f.tags.push(y.tag)}}return await t.callHook("tags:beforeResolve",f),await t.callHook("tags:resolve",f),await t.callHook("tags:afterResolve",f),f.tags},ssr:n};return[dN,yN,hN,mN,vN,wN,EN,SN,...e?.plugins||[]].forEach(f=>u.use(f)),u.hooks.callHook("init",u),u}function IN(){return NA}const AN=X1[0]==="3";function xN(e){return typeof e=="function"?e():N(e)}function wp(e){if(e instanceof Promise||e instanceof Date||e instanceof RegExp)return e;const t=xN(e);if(!e||!t)return t;if(Array.isArray(t))return t.map(n=>wp(n));if(typeof t=="object"){const n={};for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(r==="titleTemplate"||r[0]==="o"&&r[1]==="n"){n[r]=N(t[r]);continue}n[r]=wp(t[r])}return n}return t}const CN={hooks:{"entries:resolve":e=>{for(const t of e.entries)t.resolvedInput=wp(t.input)}}},DA="usehead";function RN(e){return{install(n){AN&&(n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(DA,e))}}.install}function ON(e={}){e.domDelayFn=e.domDelayFn||(n=>gt(()=>setTimeout(()=>n(),0)));const t=$N(e);return t.use(CN),t.install=RN(t),t}const I2=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},A2="__unhead_injection_handler__";function kN(){return A2 in I2?I2[A2]():Gt(DA)||IN()}function LN(e,t={}){const n=t.head||kN();if(n)return n.ssr?n.push(e,t):MN(n,e,t)}function MN(e,t,n={}){const r=ie(!1),o=ie({});yh(()=>{o.value=r.value?{}:wp(t)});const s=e.push(o.value,n);return ke(o,u=>{s.patch(u)}),Dn()&&(bt(()=>{s.dispose()}),W1(()=>{r.value=!0}),q1(()=>{r.value=!1})),s}function PN(e,t){const n=ON({}),r={unhead:n,install(o){X1.startsWith("3")&&(o.config.globalProperties.$head=n,o.provide("usehead",n))},use(o){n.use(o)},resolveTags(){return n.resolveTags()},headEntries(){return n.headEntries()},headTags(){return n.resolveTags()},push(o,s){return n.push(o,s)},addEntry(o,s){return n.push(o,s)},addHeadObjs(o,s){return n.push(o,s)},addReactiveEntry(o,s){const a=LN(o,s);return typeof a<"u"?a.dispose:()=>{}},removeHeadObjs(){},updateDOM(o,s){s?MA(n,{document:o}):PA(n,{delayFn:a=>setTimeout(()=>a(),50),document:o})},internalHooks:n.hooks,hooks:{"before:dom":[],"resolved:tags":[],"resolved:entries":[]}};return n.addHeadObjs=r.addHeadObjs,n.updateDOM=r.updateDOM,n.hooks.hook("dom:beforeRender",o=>{for(const s of r.hooks["before:dom"])s()===!1&&(o.shouldRender=!1)}),r}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");const Id="__pinia",Ad="__vue_query",BN="__app_props",NN="__feature_flags",DN="__flags_variants",UN="ssr_data",UA=Symbol("AppProps"),HN=Symbol("gqlClient"),FN=Symbol("logger"),jN=e=>e?.startsWith("m.")?"mobile":"desktop";let Oy=null;function VN(e){Oy=e}function qN(){if(!Oy)throw new Error("[create-isomorphic-app] Ñ
ÑанилиÑе ÑинглÑонов не пÑоиниÑиализиÑовано в ÑамкаÑ
ÑендеÑа");return Oy}function _0(e,t){const n=qN();if(n.has(e))return n.get(e);if(t)return n.set(e,t),t}const WN=e=>
13{const t=_0(HN,e);if(!t)throw new Error("[create-isomorphic-app]: оÑÑÑÑÑÑвÑÐµÑ Ð¸Ð½ÑÑÐ°Ð½Ñ GQL Client");return t},zN=e=>{const t=_0(FN,e);if(!t)throw new Error("[create-isomorphic-app]: оÑÑÑÑÑÑвÑÐµÑ Ð¸Ð½ÑÑÐ°Ð½Ñ Logger");return t},GN=e=>{const t=_0(UA,e);if(!t)throw new Error("[create-isomorphic-app][useAppProps]: AppProps не найден");return t};{const e=Nc(),t=(n,r)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(r),s=>{o.length>1?o.forEach(a=>a(s)):o[0](s)}};t("__VUE_INSTANCE_SETTERS__",n=>n),t("__VUE_SSR_SETTERS__",n=>n)}nM();function YN(e,{traceId:t,transactionId:n,sampled:r}){!t&&!n||(e.setContext("apm",{Sampled:r?"yes":"no","Trace ID":t,"Transaction ID":n}),e.setTag("sampled",r?"yes":"no"),e.setTag("apm_trace_id",t))}const HA=["activate","mount"],FA=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,KN=/(?:^|[-_])(\w)/g,ZN=e=>e.replace(KN,t=>t.toUpperCase()).replace(/[-_]/g,""),QN="<Root>",Bg="<Anonymous>",JN=(e,t)=>e.repeat(t),Ol=(e,t)=>{if(!e)return Bg;if(e.$root===e)return QN;if(!e.$options)return Bg;const n=e.$options;let r=n.name||n._componentTag||n.__name;const o=n.__file;if(!r&&o){const s=o.match(/([^/\\]+)\.vue$/);s&&(r=s[1])}return(r?`<${ZN(r)}>`:Bg)+(o&&t!==!1?` at ${o}`:"")},XN=e=>{if(e&&(e._isVue||e.__isVue)&&e.$parent){const t=[];let n=0;for(;e;){if(t.length>0){const r=t[t.length-1];if(r.constructor===e.constructor){n++,e=e.$parent;continue}else n>0&&(t[t.length-1]=[r,n],n=0)}t.push(e),e=e.$parent}return` 14 15found in 16 17${t.map((r,o)=>`${(o===0?"---> ":JN(" ",5+o*2))+(Array.isArray(r)?`${Ol(r[0])}... (${r[1]} recursive calls)`:Ol(r))}`).join(` 18`)}`}return` 19 20(found in ${Ol(e)})`},bs="10.44.0",tt=globalThis;function Ys(){return Ch(tt),tt}function Ch(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||bs,t[bs]=t[bs]||{}}function xu(e,t,n=tt){const r=n.__SENTRY__=n.__SENTRY__||{},o=r[bs]=r[bs]||{};return o[e]||(o[e]=t())}const Fe=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,jA=Object.prototype.toString;function Rh(e){switch(jA.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Lo(e,Error)}}function Cu(e,t){return jA.call(e)===`[object ${t}]`}function VA(e){return Cu(e,"ErrorEvent")}function x2(e){return Cu(e,"DOMError")}function eD(e){return Cu(e,"DOMException")}function Co(e){return Cu(e,"String")}function b0(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function nu(e){return e===null||b0(e)||typeof e!="object"&&typeof e!="function"}function rc(e){return Cu(e,"Object")}function Oh(e){return typeof Event<"u"&&Lo(e,Event)}function tD(e){return typeof Element<"u"&&Lo(e,Element)}function nD(e){return Cu(e,"RegExp")}function Ru(e){return!!(e?.then&&typeof e.then=="function")}function rD(e){return rc(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Lo(e,t){try{return e instanceof t}catch{return!1}}function qA(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue||e.__v_isVNode))}function w0(e){return typeof Request<"u"&&Lo(e,Request)}const E0=tt,oD=80;function mr(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,o=[];let s=0,a=0;const u=" > ",f=u.length;let d;const p=Array.isArray(t)?t:t.keyAttrs,h=!Array.isArray(t)&&t.maxStringLength||oD;for(;n&&s++<r&&(d=iD(n,p),!(d==="html"||s>1&&a+o.length*f+d.length>=h));)o.push(d),a+=d.length,n=n.parentNode;return o.reverse().join(u)}catch{return"<unknown>"}}function iD(e,t){const n=e,r=[];if(!n?.tagName)return"";if(E0.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const o=t?.length?t.filter(a=>n.getAttribute(a)).map(a=>[a,n.getAttribute(a)]):null;if(o?.length)o.forEach(a=>{r.push(`[${a[0]}="${a[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const a=n.className;if(a&&Co(a)){const u=a.split(/\s+/);for(const f of u)r.push(`.${f}`)}}const s=["aria-label","type","name","title","alt"];for(const a of s){const u=n.getAttribute(a);u&&r.push(`[${a}="${u}"]`)}return r.join("")}function nf(){try{return E0.document.location.href}catch{return""}}function WA(e){if(!E0.HTMLElement)return null;let t=e;const n=5;for(let r=0;r<n;r++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}const sD=["debug","info","warn","error","log","assert","trace"],aD="Sentry Logger ",Ep={};function Li(e){if(!("console"in tt))return e();const t=tt.console,n={},r=Object.keys(Ep);r.forEach(o=>{const s=Ep[o];n[o]=t[o],t[o]=s});try{return e()}finally{r.forEach(o=>{t[o]=n[o]})}}function uD(){$0().enabled=!0}function lD(){$0().enabled=!1}function zA(){return $0().enabled}function cD(...e){S0("log",...e)}function fD(...e){S0("warn",...e)}function dD(...e){S0("error",...e)}function S0(e,...t){Fe&&zA()&&Li(()=>{tt.console[e](`${aD}[${e}]:`,...t)})}function $0(){return Fe?xu("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const Ne={enable:uD,disable:lD,isEnabled:zA,log:cD,warn:fD,error:dD};function Vn(e,t,n){if(!(t in e))return;const r=e[t];if(typeof r!="function")return;const o=n(r);typeof o=="function"&&GA(o,r);try{e[t]=o}catch{Fe&&Ne.log(`Failed to replace method "${t}" in object`,e)}}function Bn(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{Fe&&Ne.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function GA(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Bn(e,"__sentry_original__",t)}catch{}}function T0(e){return e.__sentry_original__}function YA(e){if(Rh(e))return{message:e.message,name:e.name,stack:e.stack,...R2(e)};if(Oh(e)){const t={type:e.type,target:C2(e.target),currentTarget:C2(e.currentTarget),...R2(e)};return typeof CustomEvent<"u"&&Lo(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function C2(e){try{return tD(e)?mr(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function R2(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function pD(e){const t=Object.keys(YA(e));return t.sort(),t[0]?t.join(", "):"[object has no keys]"}let fa;function rf(e){if(fa!==void 0)return fa?fa(e):e();const t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),n=tt;return t in n&&typeof n[t]=="function"?(fa=n[t],fa(e)):(fa=null,e())}function pi(){return rf(()=>Math.random())}function of(){return rf(()=>Date.now())}function hD(){const e=tt;return e.crypto||e.msCrypto}let Ng;function gD(){return pi()*16}function dr(e=hD()){try{if(e?.randomUUID)return rf(()=>e.randomUUID()).replace(/-/g,"")}catch{}return Ng||(Ng="10000000100040008000"+1e11),Ng.replace(/[018]/g,t=>(t^(gD()&15)>>t/4).toString(16))}function KA(e){return e.exception?.values?.[0]}function ss(e){const{message:t,event_id:n}=e;if(t)return t;const r=KA(e);return r?r.type&&r.value?`${r.type}: ${r.value}
20`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function ky(e,t,n){const r=e.exception=e.exception||{},o=r.values=r.values||[],s=o[0]=o[0]||{};s.value||(s.value=t||""),s.type||(s.type="Error")}function ru(e,t){const n=KA(e);if(!n)return;const r={type:"generic",handled:!0},o=n.mechanism;if(n.mechanism={...r,...o,...t},t&&"data"in t){const s={...o?.data,...t.data};n.mechanism.data=s}}function O2(e){if(mD(e))return!0;try{Bn(e,"__sentry_captured__",!0)}catch{}return!1}function mD(e){try{return e.__sentry_captured__}catch{}}const ZA=1e3;function Ks(){return of()/ZA}function yD(){const{performance:e}=tt;if(!e?.now||!e.timeOrigin)return Ks;const t=e.timeOrigin;return()=>(t+rf(()=>e.now()))/ZA}let k2;function Yt(){return(k2??(k2=yD()))()}let Dg=null;function vD(){const{performance:e}=tt;if(!e?.now)return;const t=3e5,n=rf(()=>e.now()),r=of(),o=e.timeOrigin;if(typeof o=="number"&&Math.abs(o+n-r)<t)return o;const s=e.timing?.navigationStart;return typeof s=="number"&&Math.abs(s+n-r)<t?s:r-n}function Kn(){return Dg===null&&(Dg=vD()),Dg}function _D(e){const t=Yt(),n={sid:dr(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>wD(n)};return e&&ou(n,e),n}function ou(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||Yt(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:dr()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function bD(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),ou(e,n)}function wD(e){return{sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}function sf(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&Object.keys(t).length===0)return e;const r={...e};for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=sf(r[o],t[o],n-1));return r}function Mo(){return dr()}function Ro(){return dr().substring(16)}const Ly="_sentrySpan";function iu(e,t){t?Bn(e,Ly,t):delete e[Ly]}function Sp(e){return e[Ly]}const su="?",L2=/\(error: (.*)\)/,M2=/captureMessage|captureException/;function QA(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,o=0)=>{const s=[],a=n.split(` 21`);for(let u=r;u<a.length;u++){let f=a[u];f.length>1024&&(f=f.slice(0,1024));const d=L2.test(f)?f.replace(L2,"$1"):f;if(!d.match(/\S*Error: /)){for(const p of t){const h=p(d);if(h){s.push(h);break}}if(s.length>=50+o)break}}return SD(s.slice(o))}}function ED(e){return Array.isArray(e)?QA(...e):e}function SD(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(Yf(t).function||"")&&t.pop(),t.reverse(),M2.test(Yf(t).function||"")&&(t.pop(),M2.test(Yf(t).function||"")&&t.pop()),t.slice(0,50).map(n=>({...n,filename:n.filename||Yf(t).filename,function:n.function||"?"}))}function Yf(e){return e[e.length-1]||{}}const Ug="<anonymous>";function Po(e){try{return!e||typeof e!="function"?Ug:e.name||Ug}catch{return Ug}}function My(e){const t=e.exception;if(t){const n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}function JA(e){return"__v_isVNode"in e&&e.__v_isVNode?"[VueVNode]":"[VueViewModel]"}function Py(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function P2(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const o=e[r];try{qA(o)?n.push(JA(o)):n.push(String(o))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function xd(e,t,n=!1){return Co(e)?nD(t)?t.test(e):Co(t)?n?e===t:e.includes(t):!1:!1}function hi(e,t=[],n=!1){return t.some(r=>xd(e,r,n))}const $D=100;let Ps=class By{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:Mo(),sampleRand:pi()}}clone(){const t=new By;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._attributes={...this._attributes},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,t._conversationId=this._conversationId,iu(t,Sp(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&ou(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(t){return this._conversationId=t||void 0,this._notifyScopeListeners(),this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this.setTags({[t]:n})}setAttributes(t){return this._attributes={...this._attributes,...t},this._notifyScopeListeners(),this}setAttribute(t,n){return this.setAttributes({[t]:n})}removeAttribute(t){return t in this._attributes&&(delete this._attributes[t],this._notifyScopeListeners()),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;
21const n=typeof t=="function"?t(this):t,r=n instanceof By?n.getScopeData():rc(n)?t:void 0,{tags:o,attributes:s,extra:a,user:u,contexts:f,level:d,fingerprint:p=[],propagationContext:h,conversationId:y}=r||{};return this._tags={...this._tags,...o},this._attributes={...this._attributes,...s},this._extra={...this._extra,...a},this._contexts={...this._contexts,...f},u&&Object.keys(u).length&&(this._user=u),d&&(this._level=d),p.length&&(this._fingerprint=p),h&&(this._propagationContext=h),y&&(this._conversationId=y),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,iu(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Mo(),sampleRand:pi()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:$D;if(r<=0)return this;const o={timestamp:Ks(),...t,message:t.message?Py(t.message,2048):t.message};return this._breadcrumbs.push(o),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Sp(this),conversationId:this._conversationId}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=sf(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n?.event_id||dr();if(!this._client)return Fe&&Ne.warn("No client configured on scope - will not capture exception!"),r;const o=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:o,...n,event_id:r},this),r}captureMessage(t,n,r){const o=r?.event_id||dr();if(!this._client)return Fe&&Ne.warn("No client configured on scope - will not capture message!"),o;const s=r?.syntheticException??new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:s,...r,event_id:o},this),o}captureEvent(t,n){const r=t.event_id||n?.event_id||dr();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(Fe&&Ne.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}};function TD(){return xu("defaultCurrentScope",()=>new Ps)}function ID(){return xu("defaultIsolationScope",()=>new Ps)}let AD=class{constructor(t,n){let r;t?r=t:r=new Ps;let o;n?o=n:o=new Ps,this._stack=[{scope:r}],this._isolationScope=o}withScope(t){const n=this._pushScope();let r;try{r=t(n)}catch(o){throw this._popScope(),o}return Ru(r)?r.then(o=>(this._popScope(),o),o=>{throw this._popScope(),o}):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function au(){const e=Ys(),t=Ch(e);return t.stack=t.stack||new AD(TD(),ID())}function xD(e){return au().withScope(e)}function CD(e,t){const n=au();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function B2(e){return au().withScope(()=>e(au().getIsolationScope()))}function RD(){return{withIsolationScope:B2,withScope:xD,withSetScope:CD,withSetIsolationScope:(e,t)=>B2(t),getCurrentScope:()=>au().getScope(),getIsolationScope:()=>au().getIsolationScope()}}function Ou(e){const t=Ch(e);return t.acs?t.acs:RD()}function _t(){const e=Ys();return Ou(e).getCurrentScope()}function Ho(){const e=Ys();return Ou(e).getIsolationScope()}function OD(){return xu("globalScope",()=>new Ps)}function kh(...e){const t=Ys(),n=Ou(t);if(e.length===2){const[r,o]=e;return r?n.withSetScope(r,o):n.withScope(o)}return n.withScope(e[0])}function Et(){return _t().getClient()}function kD(e){const t=e.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:o}=t,s={trace_id:n,span_id:o||Ro()};return r&&(s.parent_span_id=r),s}const I0="production",Hg=0,N2=1,D2=2;function af(e){return new XA(t=>{t(e)})}function A0(e){return new XA((t,n)=>{n(e)})}let XA=class Ny{constructor(t){this._state=Hg,this._handlers=[],this._runExecutor(t)}then(t,n){return new Ny((r,o)=>{this._handlers.push([!1,s=>
21{if(!t)r(s);else try{r(t(s))}catch(a){o(a)}},s=>{if(!n)o(s);else try{r(n(s))}catch(a){o(a)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new Ny((n,r)=>{let o,s;return this.then(a=>{s=!1,o=a,t&&t()},a=>{s=!0,o=a,t&&t()}).then(()=>{if(s){r(o);return}n(o)})})}_executeHandlers(){if(this._state===Hg)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===N2&&n[1](this._value),this._state===D2&&n[2](this._value),n[0]=!0)})}_runExecutor(t){const n=(s,a)=>{if(this._state===Hg){if(Ru(a)){a.then(r,o);return}this._state=s,this._value=a,this._executeHandlers()}},r=s=>{n(N2,s)},o=s=>{n(D2,s)};try{t(r,o)}catch(s){o(s)}}};function LD(e,t,n,r=0){try{const o=Dy(t,n,e,r);return Ru(o)?o:af(o)}catch(o){return A0(o)}}function Dy(e,t,n,r){const o=n[r];if(!e||!o)return e;const s=o({...e},t);return Fe&&s===null&&Ne.log(`Event processor "${o.id||"?"}" dropped event`),Ru(s)?s.then(a=>Dy(a,t,n,r+1)):Dy(s,t,n,r+1)}let Zi,U2,H2,Jo;function MD(e){const t=tt._sentryDebugIds,n=tt._debugIds;if(!t&&!n)return{};const r=t?Object.keys(t):[],o=n?Object.keys(n):[];if(Jo&&r.length===U2&&o.length===H2)return Jo;U2=r.length,H2=o.length,Jo={},Zi||(Zi={});const s=(a,u)=>{for(const f of a){const d=u[f],p=Zi?.[f];if(p&&Jo&&d)Jo[p[0]]=d,Zi&&(Zi[f]=[p[0],d]);else if(d){const h=e(f);for(let y=h.length-1;y>=0;y--){const m=h[y]?.filename;if(m&&Jo&&Zi){Jo[m]=d,Zi[f]=[m,d];break}}}}};return t&&s(r,t),n&&s(o,n),Jo}function bo(e,t=100,n=1/0){try{return Uy("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function ex(e,t=3,n=100*1024){const r=bo(e,t);return DD(r)>n?ex(e,t-1,n):r}function Uy(e,t,n=1/0,r=1/0,o=UD()){const[s,a]=o;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const u=PD(e,t);if(!u.startsWith("[object "))return u;if(t.__sentry_skip_normalization__)return t;const f=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(f===0)return u.replace("object ","");if(s(t))return"[Circular ~]";const d=t;if(d&&typeof d.toJSON=="function")try{const m=d.toJSON();return Uy("",m,f-1,r,o)}catch{}const p=Array.isArray(t)?[]:{};let h=0;const y=YA(t);for(const m in y){if(!Object.prototype.hasOwnProperty.call(y,m))continue;if(h>=r){p[m]="[MaxProperties ~]";break}const v=y[m];p[m]=Uy(m,v,f-1,r,o),h++}return a(t),p}function PD(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(qA(t))return JA(t);if(rD(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${Po(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=BD(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function BD(e){const t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}function ND(e){return~-encodeURI(e).split(/%..|./).length}function DD(e){return ND(JSON.stringify(e))}function UD(){const e=new WeakSet;function t(r){return e.has(r)?!0:(e.add(r),!1)}function n(r){e.delete(r)}return[t,n]}const qn="sentry.source",x0="sentry.sample_rate",tx="sentry.previous_trace_sample_rate",Bo="sentry.op",Dt="sentry.origin",oc="sentry.idle_span_finish_reason",uf="sentry.measurement_unit",lf="sentry.measurement_value",F2="sentry.custom_span_name",C0="sentry.profile_id",ku="sentry.exclusive_time",HD="sentry.link.type",FD="gen_ai.conversation.id",R0="sentry-",jD=/^sentry-/,VD=8192;function nx(e){const t=WD(e);if(!t)return;const n=Object.entries(t).reduce((r,[o,s])=>{if(o.match(jD)){const a=o.slice(R0.length);r[a]=s}return r},{});if(Object.keys(n).length>0)return n}function qD(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,o])=>(o&&(n[`${R0}${r}`]=o),n),{});return zD(t)}function WD(e){if(!(!e||!Co(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const r=j2(n);return Object.entries(r).forEach(([o,s])=>{t[o]=s}),t},{}):j2(e)}function j2(e){return e.split(",").map(t=>{const n=t.indexOf("=");if(n===-1)return[];const r=t.slice(0,n),o=t.slice(n+1);return[r,o].map(s=>{try{return decodeURIComponent(s.trim())}catch{return}})}).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}function zD(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],o)=>{const s=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,a=o===0?s:`${t},${s}`;return a.length>VD?(Fe&&Ne.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):a},"")}const GD=/^o(\d+)\./,YD=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function KD(e){return e==="http"||e==="https"}function Lu(e,t=!1){const{host:n,path:r,pass:o,port:s,projectId:a,protocol:u,publicKey:f}=e;return`${u}://${f}${t&&o?`:${o}`:""}@${n}${s?`:${s}`:""}/${r&&`${r}/`}${a}`}function ZD(e){const t=YD.exec(e);if(!t){Li(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,o="",s="",a="",u=""]=t.slice(1);let f="",d=u;const p=d.split("/");if(p.length>1&&(f=p.slice(0,-1).join("/"),d=p.pop()),d){const h=d.match(/^\d+/);h&&(d=h[0])}return rx({host:s,pass:o,path:f,projectId:d,port:a,protocol:n,publicKey:r})}function rx(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function QD(e){if(!Fe)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(o=>e[o]?!1:(Ne.error(`Invalid Sentry Dsn: ${o} missing`),!0))?!1:n.match(/^\d+$/)?KD(r)?t&&isNaN(parseInt(t,10))?(Ne.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(Ne.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(Ne.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function JD(e){return e.match(GD)?.[1]}function XD(e){const t=e.getOptions(),{host:n}=e.getDsn()||{};let r;return t.orgId?r=String(t.orgId):n&&(r=JD(n)),r}function eU(e){const t=typeof e=="string"?ZD(e):rx(e);if(!(!t||!QD(t)))return t}function pr(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=e||Et()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}const tU=0,ox=1,uu=2;function nU(e){if(e<400&&e>=100)return{code:1};if(e>=400&&e<500)switch(e){case 401:return{code:2,message:"unauthenticated"};case 403:return{code:2,message:"permission_denied"};case 404:return{code:2,message:"not_found"};case 409:return{code:2,message:"already_exists"};case 413:return{code:2,message:"failed_precondition"};case 429:return{code:2,message:"resource_exhausted"};case 499:return{code:2,message:"cancelled"};default:return{code:2,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:2,message:"unimplemented"};case 503:return{code:2,message:"unavailable"};case 504:return{code:2,message:"deadline_exceeded"};default:return{code:2,message:"internal_error"}}return{code:2,message:"internal_error"}}function ix(e,t){e.setAttribute("http.response.status_code",t);const n=nU(t);n.message!=="unknown_error"&&e.setStatus(n)}const sx="_sentryScope",ax="_sentryIsolationScope";function rU(e){try{const t=tt.WeakRef;if(typeof t=="function")return new t(e)}catch{}return e}function oU(e){if(e){if(typeof e=="object"&&"deref"in e&&typeof e.deref=="function")try{return e.deref()}catch{return}return e}}function iU(e,t,n){e&&(Bn(e,ax,rU(n)),Bn(e,sx,t))}function $p(e){const t=e;return{scope:t[sx],isolationScope:oU(t[ax])}}function ic(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(!(typeof t!="number"||isNaN(t)||t<0||t>1))return t}const ux=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function sU(e){if(!e)return;const t=e.match(ux);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function aU(e,t){const n=sU(e),r=nx(t);if(!n?.traceId)return{traceId:Mo(),sampleRand:pi()};const o=uU(n,r);r&&(r.sample_rand=o.toString());const{traceId:s,parentSpanId:a,parentSampled:u}=n;return{traceId:s,parentSpanId:a,sampled:u,dsc:r||{},sampleRand:o}}function lx(e=Mo(),t=Ro(),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}
21function cx(e=Mo(),t=Ro(),n){return`00-${e}-${t}-${n?"01":"00"}`}function uU(e,t){const n=ic(t?.sample_rand);if(n!==void 0)return n;const r=ic(t?.sample_rate);return r&&e?.parentSampled!==void 0?e.parentSampled?pi()*r:r+pi()*(1-r):pi()}const fx=0,O0=1;let V2=!1;function lU(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:o,parent_span_id:s,status:a,origin:u,links:f}=st(e);return{parent_span_id:s,span_id:t,trace_id:n,data:r,op:o,status:a,origin:u,links:f}}function cU(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext(),o=r?t:st(e).parent_span_id,s=$p(e).scope,a=r?s?.getPropagationContext().propagationSpanId||Ro():t;return{parent_span_id:o,span_id:a,trace_id:n}}function fU(e){const{traceId:t,spanId:n}=e.spanContext(),r=Mi(e);return lx(t,n,r)}function dU(e){const{traceId:t,spanId:n}=e.spanContext(),r=Mi(e);return cx(t,n,r)}function dx(e){if(e&&e.length>0)return e.map(({context:{spanId:t,traceId:n,traceFlags:r,...o},attributes:s})=>({span_id:t,trace_id:n,sampled:r===O0,attributes:s,...o}))}function ws(e){return typeof e=="number"?q2(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?q2(e.getTime()):Yt()}function q2(e){return e>9999999999?e/1e3:e}function st(e){if(hU(e))return e.getSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(pU(e)){const{attributes:r,startTime:o,name:s,endTime:a,status:u,links:f}=e,d="parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0;return{span_id:t,trace_id:n,data:r,description:s,parent_span_id:d,start_timestamp:ws(o),timestamp:ws(a)||void 0,status:px(u),op:r[Bo],origin:r[Dt],links:dx(f)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function pU(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function hU(e){return typeof e.getSpanJSON=="function"}function Mi(e){const{traceFlags:t}=e.spanContext();return t===O0}function px(e){if(!(!e||e.code===tU))return e.code===ox?"ok":e.message||"internal_error"}const Es="_sentryChildSpans",Hy="_sentryRootSpan";function hx(e,t){const n=e[Hy]||e;Bn(t,Hy,n),e[Es]?e[Es].add(t):Bn(e,Es,new Set([t]))}function gU(e,t){e[Es]&&e[Es].delete(t)}function Cd(e){const t=new Set;function n(r){if(!t.has(r)&&Mi(r)){t.add(r);const o=r[Es]?Array.from(r[Es]):[];for(const s of o)n(s)}}return n(e),Array.from(t)}function mn(e){return e[Hy]||e}function On(){const e=Ys(),t=Ou(e);return t.getActiveSpan?t.getActiveSpan():Sp(_t())}function Fy(){V2||(Li(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),V2=!0)}const gx="_frozenDsc";function Rd(e,t){Bn(e,gx,t)}function mx(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},o={environment:n.environment||I0,release:n.release,public_key:r,trace_id:e,org_id:XD(t)};return t.emit("createDsc",o),o}function yx(e,t){const n=t.getPropagationContext();return n.dsc||mx(n.traceId,e)}function wi(e){const t=Et();if(!t)return{};const n=mn(e),r=st(n),o=r.data,s=n.spanContext().traceState,a=s?.get("sentry.sample_rate")??o[x0]??o[tx];function u(v){return(typeof a=="number"||typeof a=="string")&&(v.sample_rate=`${a}`),v}const f=n[gx];if(f)return u(f);const d=s?.get("sentry.dsc"),p=d&&nx(d);if(p)return u(p);const h=mx(e.spanContext().traceId,t),y=o[qn],m=r.description;return y!=="url"&&m&&(h.transaction=m),pr()&&(h.sampled=String(Mi(n)),h.sample_rand=s?.get("sentry.sample_rand")??$p(n).scope?.getPropagationContext().sampleRand.toString()),u(h),t.emit("createDsc",h,n),h}function mU(e,t){const{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:s}=t;yU(e,t),r&&bU(e,r),wU(e,n),vU(e,o),_U(e,s)}function W2(e,t){const{extra:n,tags:r,attributes:o,user:s,contexts:a,level:u,sdkProcessingMetadata:f,breadcrumbs:d,fingerprint:p,eventProcessors:h,attachments:y,propagationContext:m,transactionName:v,span:b}=t;nl(e,"extra",n),nl(e,"tags",r),nl(e,"attributes",o),nl(e,"user",s),nl(e,"contexts",a),e.sdkProcessingMetadata=sf(e.sdkProcessingMetadata,f,2),u&&(e.level=u),v&&(e.transactionName=v),b&&(e.span=b),d.length&&(e.breadcrumbs=[...e.breadcrumbs,...d]),p.length&&(e.fingerprint=[...e.fingerprint,...p]),h.length&&(e.eventProcessors=[...e.eventProcessors,...h]
21),y.length&&(e.attachments=[...e.attachments,...y]),e.propagationContext={...e.propagationContext,...m}}function nl(e,t,n){e[t]=sf(e[t],n,1)}function vx(e,t){const n=OD().getScopeData();return e&&W2(n,e.getScopeData()),t&&W2(n,t.getScopeData()),n}function yU(e,t){const{extra:n,tags:r,user:o,contexts:s,level:a,transactionName:u}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(o).length&&(e.user={...o,...e.user}),Object.keys(s).length&&(e.contexts={...s,...e.contexts}),a&&(e.level=a),u&&e.type!=="transaction"&&(e.transaction=u)}function vU(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function _U(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function bU(e,t){e.contexts={trace:cU(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:wi(t),...e.sdkProcessingMetadata};const n=mn(t),r=st(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function wU(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}function EU(e,t,n,r,o,s){const{normalizeDepth:a=3,normalizeMaxBreadth:u=1e3}=e,f={...t,event_id:t.event_id||n.event_id||dr(),timestamp:t.timestamp||Ks()},d=n.integrations||e.integrations.map(b=>b.name);SU(f,e),IU(f,d),o&&o.emit("applyFrameMetadata",t),t.type===void 0&&$U(f,e.stackParser);const p=xU(r,n.captureContext);n.mechanism&&ru(f,n.mechanism);const h=o?o.getEventProcessors():[],y=vx(s,p),m=[...n.attachments||[],...y.attachments];m.length&&(n.attachments=m),mU(f,y);const v=[...h,...y.eventProcessors];return(n.data&&n.data.__sentry__===!0?af(f):LD(v,f,n)).then(b=>(b&&TU(b),typeof a=="number"&&a>0?AU(b,a,u):b))}function SU(e,t){const{environment:n,release:r,dist:o,maxValueLength:s}=t;e.environment=e.environment||n||I0,!e.release&&r&&(e.release=r),!e.dist&&o&&(e.dist=o);const a=e.request;a?.url&&s&&(a.url=Py(a.url,s)),s&&e.exception?.values?.forEach(u=>{u.value&&(u.value=Py(u.value,s))})}function $U(e,t){const n=MD(t);e.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(o=>{o.filename&&(o.debug_id=n[o.filename])})})}function TU(e){const t={};if(e.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(o=>{o.debug_id&&(o.abs_path?t[o.abs_path]=o.debug_id:o.filename&&(t[o.filename]=o.debug_id),delete o.debug_id)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([r,o])=>{n.push({type:"sourcemap",code_file:r,debug_id:o})})}function IU(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function AU(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(o=>({...o,...o.data&&{data:bo(o.data,t,n)}}))},...e.user&&{user:bo(e.user,t,n)},...e.contexts&&{contexts:bo(e.contexts,t,n)},...e.extra&&{extra:bo(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=bo(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(o=>({...o,...o.data&&{data:bo(o.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=bo(e.contexts.flags,3,n)),r}function xU(e,t){if(!t)return e;const n=e?e.clone():new Ps;return n.update(t),n}function CU(e){if(e)return RU(e)?{captureContext:e}:kU(e)?{captureContext:e}:e}function RU(e){return e instanceof Ps||typeof e=="function"}const OU=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function kU(e){return Object.keys(e).some(t=>OU.includes(t))}function k0(e,t){return _t().captureException(e,CU(t))}function _x(e,t){return _t().captureEvent(e,t)}function LU(){const e=Et();return e?.getOptions().enabled!==!1&&!!e?.getTransport()}function z2(e){const t=Ho(),{user:n}=vx(t,_t()),{userAgent:r}=tt.navigator||{},o=_D({user:n,...r&&{userAgent:r},...e}),s=t.getSession();return s?.status==="ok"&&ou(s,{status:"exited"}),bx(),t.setSession(o),o}function bx(){const e=Ho(),t=_t().getSession()||e.getSession();t&&bD(t),wx(),e.setSession()}function wx(){const e=Ho(),t=Et(),n=e.getSession();n&&t&&t.captureSession(n)}function Fg(e=!1){if(e){bx();return}wx()}const MU=(e,t)=>{const{errorHandler:n}=e.config;e.config.errorHandler=(r,o,s)=>{const a=Ol(o,!1),u=o?XN(o):"",f={componentName:a,lifecycleHook:s,trace:u};if(t?.attachProps!==!1&&o&&(o.$options?.propsData?f.propsData=o.$options.propsData:o.$props&&(f.propsData=o.$props)),setTimeout(()=>{k0(r,{captureContext:{contexts:{vue:f}},mechanism:{handled:!!n,type:"auto.function.vue.error_handler"}})}),typeof n=="function"&&e.config.errorHandler)n.call(e,r,o,s);else throw r}};function PU(e,t,n=()=>{},r=()=>{}){let o;try{o=e()}catch(s){throw t(s),n(),s}return BU(o,t,n,r)}function BU(e,t,n,r){return Ru(e)?e.then(o=>(n(),r(o),o),o=>{throw t(o),n(),o}):(n(),r(e),e)}function NU(e){if(!Fe)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=st(e),{spanId:o}=e.spanContext(),s=Mi(e),a=mn(e),u=a===e,f=`[Tracing] Starting ${s?"sampled":"unsampled"} ${u?"root ":""}span`,d=[`op: ${n}`,`name: ${t}`,`ID: ${o}`];if(r&&d.push(`parent ID: ${r}`),!u){const{op:p,description:h}=st(a);d.push(`root ID: ${a.spanContext().spanId}`),p&&d.push(`root op: ${p}`),h&&d.push(`root description: ${h}`)}Ne.log(`${f} 22 ${d.join(` 23 `)}`)}function DU(e){if(!Fe)return;const{description:t="< unknown name >",op:n="< unknown op >"}=st(e),{spanId:r}=e.spanContext(),o=mn(e)===e,s=`[Tracing] Finishing "${n}" ${o?"root ":""}span "${t}" with ID ${r}`;Ne.log(s)}function UU(e,t,n){if(!pr(e))return[!1];let r,o;typeof e.tracesSampler=="function"?(o=e.tracesSampler({...t,inheritOrSampleWith:u=>typeof t.parentSampleRate=="number"?t.parentSampleRate:typeof t.parentSampled=="boolean"?Number(t.parentSampled):u}),r=!0):t.parentSampled!==void 0?o=t.parentSampled:typeof e.tracesSampleRate<"u"&&(o=e.tracesSampleRate,r=!0);const s=ic(o);if(s===void 0)return Fe&&Ne.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(o)} of type ${JSON.stringify(typeof o)}.`),[!1];if(!s)return Fe&&Ne.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,s,r];const a=n<s;return a||Fe&&Ne.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(o)})`),[a,s,r]}let Ei=class{constructor(t={}){this._traceId=t.traceId||Mo(),this._spanId=t.spanId||Ro()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:fx}}end(t){}setAttribute(t,n){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}
23addEvent(t,n,r){return this}addLink(t){return this}addLinks(t){return this}recordException(t,n){}};function Zs(e,t=[]){return[e,t]}function HU(e,t){const[n,r]=e;return[n,[...r,t]]}function Tp(e,t){const n=e[1];for(const r of n){const o=r[0].type;if(t(r,o))return!0}return!1}function FU(e,t){return Tp(e,(n,r)=>t.includes(r))}function jy(e){const t=Ch(tt);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function jU(e){const[t,n]=e;let r=JSON.stringify(t);function o(s){typeof r=="string"?r=typeof s=="string"?r+s:[jy(r),s]:r.push(typeof s=="string"?jy(s):s)}for(const s of n){const[a,u]=s;if(o(` 24${JSON.stringify(a)} 25`),typeof u=="string"||u instanceof Uint8Array)o(u);else{let f;try{f=JSON.stringify(u)}catch{f=JSON.stringify(bo(u))}o(f)}}return typeof r=="string"?r:VU(r)}function VU(e){const t=e.reduce((o,s)=>o+s.length,0),n=new Uint8Array(t);let r=0;for(const o of e)n.set(o,r),r+=o.length;return n}function qU(e){return[{type:"span"},e]}function WU(e){const t=typeof e.data=="string"?jy(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}const zU={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",log:"log_item",metric:"metric",trace_metric:"metric"};function G2(e){return zU[e]}function Ex(e){if(!e?.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function GU(e,t,n,r){const o=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Lu(r)},...o&&{trace:o}}}function Y2(e){Ne.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function Ip(e,t){if(!t?.length||!e.description)return!1;for(const n of t){if(KU(n)){if(xd(e.description,n))return Fe&&Y2(e),!0;continue}if(!n.name&&!n.op)continue;const r=n.name?xd(e.description,n.name):!0,o=n.op?e.op&&xd(e.op,n.op):!0;if(r&&o)return Fe&&Y2(e),!0}return!1}function YU(e,t){const n=t.parent_span_id,r=t.span_id;if(n)for(const o of e)o.parent_span_id===r&&(o.parent_span_id=n)}function KU(e){return typeof e=="string"||e instanceof RegExp}function ZU(e,t){if(!t)return e;const n=e.sdk||{};return e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0},e}function QU(e,t,n,r){const o=Ex(n),s={sent_at:new Date().toISOString(),...o&&{sdk:o},...!!r&&t&&{dsn:Lu(t)}},a="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return Zs(s,[a])}function JU(e,t,n,r){const o=Ex(n),s=e.type&&e.type!=="replay_event"?e.type:"event";ZU(e,n?.sdk);const a=GU(e,o,r,t);return delete e.sdkProcessingMetadata,Zs(a,[[{type:s},e]])}function XU(e,t){function n(m){return!!m.trace_id&&!!m.public_key}const r=wi(e[0]),o=t?.getDsn(),s=t?.getOptions().tunnel,a={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!s&&o&&{dsn:Lu(o)}},{beforeSendSpan:u,ignoreSpans:f}=t?.getOptions()||{},d=f?.length?e.filter(m=>!Ip(st(m),f)):e,p=e.length-d.length;p&&t?.recordDroppedEvent("before_send","span",p);const h=u?m=>{const v=st(m);return u(v)||(Fy(),v)}:st,y=[];for(const m of d){const v=h(m);v&&y.push(qU(v))}return Zs(a,y)}function eH(e,t,n,r=On()){const o=r&&mn(r);o&&(Fe&&Ne.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),o.addEvent(e,{[lf]:t,[uf]:n}))}function K2(e){if(!e||e.length===0)return;const t={};return e.forEach(n=>{const r=n.attributes||{},o=r[uf],s=r[lf];typeof o=="string"&&typeof s=="number"&&(t[n.name]={value:s,unit:o})}),t}const Z2=1e3;let Lh=class{constructor(t={}){this._traceId=t.traceId||Mo(),this._spanId=t.spanId||Ro(),this._startTime=t.startTimestamp||Yt(),this._links=t.links,this._attributes={},this.setAttributes({[Dt]:"manual",[Bo]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}
25addLink(t){return this._links?this._links.push(t):this._links=[t],this}addLinks(t){return this._links?this._links.push(...t):this._links=t,this}recordException(t,n){}spanContext(){const{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?O0:fx}}setAttribute(t,n){return n===void 0?delete this._attributes[t]:this._attributes[t]=n,this}setAttributes(t){return Object.keys(t).forEach(n=>this.setAttribute(n,t[n])),this}updateStartTime(t){this._startTime=ws(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(qn,"custom"),this}end(t){this._endTime||(this._endTime=ws(t),DU(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[Bo],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:px(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[Dt],profile_id:this._attributes[C0],exclusive_time:this._attributes[ku],measurements:K2(this._events),is_segment:this._isStandaloneSpan&&mn(this)===this||void 0,segment_id:this._isStandaloneSpan?mn(this).spanContext().spanId:void 0,links:dx(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,r){Fe&&Ne.log("[Tracing] Adding an event to span:",t);const o=Q2(n)?n:r||Yt(),s=Q2(n)?{}:n||{},a={name:t,time:ws(o),attributes:s};return this._events.push(a),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const t=Et();if(t&&t.emit("spanEnd",this),!(this._isStandaloneSpan||this===mn(this)))return;if(this._isStandaloneSpan){this._sampled?nH(XU([this],t)):(Fe&&Ne.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span"));return}const n=this._convertSpanToTransaction();n&&($p(this).scope||_t()).captureEvent(n)}_convertSpanToTransaction(){if(!J2(st(this)))return;this._name||(Fe&&Ne.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:t,isolationScope:n}=$p(this),r=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(this._sampled!==!0)return;const o=Cd(this).filter(f=>f!==this&&!tH(f)).map(f=>st(f)).filter(J2),s=this._attributes[qn];delete this._attributes[F2],o.forEach(f=>{delete f.data[F2]});const a={contexts:{trace:lU(this)},spans:o.length>Z2?o.sort((f,d)=>f.start_timestamp-d.start_timestamp).slice(0,Z2):o,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:wi(this)},request:r,...s&&{transaction_info:{source:s}}},u=K2(this._events);return u&&Object.keys(u).length&&(Fe&&Ne.log("[Measurements] Adding measurements to transaction event",JSON.stringify(u,void 0,2)),a.measurements=u),a}};function Q2(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function J2(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function tH(e){return e instanceof Lh&&e.isStandaloneSpan()}function nH(e){const t=Et();if(!t)return;const n=e[1];if(!n||n.length===0){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}const Sx="__SENTRY_SUPPRESS_TRACING__";function rH(e,t){const n=M0();if(n.startSpan)return n.startSpan(e,t);const r=Tx(e),{forceTransaction:o,parentSpan:s,scope:a}=e,u=a?.clone();return kh(u,()=>iH(s)(()=>{const f=_t(),d=Ix(f,s),p=e.onlyIfParent&&!d?new Ei:$x({parentSpan:d,spanArguments:r,forceTransaction:o,scope:f});return iu(f,p),PU(()=>t(p),()=>{const{status:h}=st(p);p.isRecording()&&(!h||h==="ok")&&p.setStatus({code:uu,message:"internal_error"})},()=>{p.end()})}))}function Si(e){const t=M0();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=Tx(e),{forceTransaction:r,parentSpan:o}=e;return(e.scope?s=>kh(e.scope,s):o!==void 0?s=>L0(o,s):s=>s())(()=>{const s=_t(),a=Ix(s,o);return e.onlyIfParent&&!a?new Ei:$x({parentSpan:a,spanArguments:n,forceTransaction:r,scope:s})})}function L0(e,t){const n=M0();return n.withActiveSpan?n.withActiveSpan(e,t):kh(r=>(iu(r,e||void 0),t(r)))}function $x({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}
25){if(!pr()){const a=new Ei;if(n||!e){const u={sampled:"false",sample_rate:"0",transaction:t.name,...wi(a)};Rd(a,u)}return a}const o=Ho();let s;if(e&&!n)s=oH(e,r,t),hx(e,s);else if(e){const a=wi(e),{traceId:u,spanId:f}=e.spanContext(),d=Mi(e);s=X2({traceId:u,parentSpanId:f,...t},r,d),Rd(s,a)}else{const{traceId:a,dsc:u,parentSpanId:f,sampled:d}={...o.getPropagationContext(),...r.getPropagationContext()};s=X2({traceId:a,parentSpanId:f,...t},r,d),u&&Rd(s,u)}return NU(s),iU(s,r,o),s}function Tx(e){const t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const n={...t};return n.startTimestamp=ws(e.startTime),delete n.startTime,n}return t}function M0(){const e=Ys();return Ou(e)}function X2(e,t,n){const r=Et(),o=r?.getOptions()||{},{name:s=""}=e,a={spanAttributes:{...e.attributes},spanName:s,parentSampled:n};r?.emit("beforeSampling",a,{decision:!1});const u=a.parentSampled??n,f=a.spanAttributes,d=t.getPropagationContext(),[p,h,y]=t.getScopeData().sdkProcessingMetadata[Sx]?[!1]:UU(o,{name:s,parentSampled:u,attributes:f,parentSampleRate:ic(d.dsc?.sample_rate)},d.sampleRand),m=new Lh({...e,attributes:{[qn]:"custom",[x0]:h!==void 0&&y?h:void 0,...f},sampled:p});return!p&&r&&(Fe&&Ne.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),r.recordDroppedEvent("sample_rate","transaction")),r&&r.emit("spanStart",m),m}function oH(e,t,n){const{spanId:r,traceId:o}=e.spanContext(),s=t.getScopeData().sdkProcessingMetadata[Sx]?!1:Mi(e),a=s?
25new Lh({...n,parentSpanId:r,traceId:o,sampled:s}):new Ei({traceId:o});hx(e,a);const u=Et();return u&&(u.emit("spanStart",a),n.endTimestamp&&u.emit("spanEnd",a)),a}function Ix(e,t){if(t)return t;if(t===null)return;const n=Sp(e);if(!n)return;const r=Et();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?mn(n):n}function iH(e){return e!==void 0?t=>L0(e,t):t=>t()}const eE="ui.vue",sH={activate:["activated","deactivated"],create:["beforeCreate","created"],unmount:["beforeUnmount","unmounted"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]};function jg(e,t,n){e.$_sentryRootComponentSpanTimer&&clearTimeout(e.$_sentryRootComponentSpanTimer),e.$_sentryRootComponentSpanTimer=setTimeout(()=>{e.$root?.$_sentryRootComponentSpan&&(e.$root.$_sentryRootComponentSpan.end(t),e.$root.$_sentryRootComponentSpan=void 0)},n)}function aH(e,t){function n(r){return r.replace(/^<([^\s]*)>(?: at [^\s]*)?$/,"$1")}return e.some(r=>n(t)===n(r))}const uH=(e={})=>{const t=(e.hooks||[]).concat(HA).filter((o,s,a)=>a.indexOf(o)===s),n={},r=e.timeout||2e3;for(const o of t){const s=sH[o];if(!s){FA&&Ne.warn(`Unknown hook: ${o}`);continue}for(const a of s)n[a]=function(){const u=this.$root===this;u&&(this.$_sentryRootComponentSpan=this.$_sentryRootComponentSpan||Si({name:"Application Render",op:`${eE}.render`,attributes:{[Dt]:"auto.ui.vue"},onlyIfParent:!0}),jg(this,Yt(),r));const f=Ol(this,!1);if(!(u||(Array.isArray(e.trackComponents)?aH(e.trackComponents,f):e.trackComponents))){jg(this,Yt(),r);return}this.$_sentryComponentSpans=this.$_sentryComponentSpans||{};const d=a===s[0],p=this.$root?.$_sentryRootComponentSpan||On();if(d){if(p){const h=this.$_sentryComponentSpans[o];h&&h.end(),this.$_sentryComponentSpans[o]=Si({name:`Vue ${f}`,op:`${eE}.${o}`,attributes:{[Dt]:"auto.ui.vue"},onlyIfParent:!0})}}else{const h=this.$_sentryComponentSpans[o];if(!h)return;h.end(),jg(this,Yt(),r)}}}return n},tE=[];function lH(e){const t={};return e.forEach(n=>{const{name:r}=n,o=t[r];o&&!o.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function cH(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(o=>{o.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n=="function"){const o=n(t);r=Array.isArray(o)?o:[o]}else r=t;return lH(r)}function fH(e,t){const n={};return t.forEach(r=>{r&&Ax(e,r,n)}),n}function nE(e,t){for(const n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function Ax(e,t,n){if(n[t.name]){Fe&&Ne.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,!tE.includes(t.name)&&typeof t.setupOnce=="function"&&(t.setupOnce(),tE.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(o,s)=>r(o,s,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),o=Object.assign((s,a)=>r(s,a,e),{id:t.name});e.addEventProcessor(o)}Fe&&Ne.log(`Integration installed: ${t.name}`)}const dH=tt,pH={Vue:dH.Vue,attachProps:!0,attachErrorHandler:!0,tracingOptions:{hooks:HA,timeout:2e3,trackComponents:!1}},hH="Vue",gH=(e={})=>({name:hH,setup(t){const n={...pH,...t.getOptions(),...e};if(!n.Vue&&!n.app){Li(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue specific errors will not be captured. Update your `Sentry.init` call with an appropriate config option: `app` (Application Instance - Vue 3) or `Vue` (Vue Constructor - Vue 2).")});return}n.app?(Array.isArray(n.app)?n.app:[n.app]).forEach(r=>rE(r,n)):n.Vue&&rE(n.Vue,n)}}),rE=(e,t)=>{FA&&e._instance?.isMounted===!0&&Li(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue app is already mounted. Make sure to call `app.mount()` after `Sentry.init()`.")}),t.attachErrorHandler&&MU(e,t),pr(t)&&e.mixin(uH(t.tracingOptions))};function mH(e){return Rh(e)&&"__sentry_fetch_url_host__"in e&&typeof e.__sentry_fetch_url_host__=="string"}function oE(e){return mH(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}function P0(e,t){const n=B0(e,t),r={type:wH(t),value:EH(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function yH(e,t,n,r){const o=Et()?.getOptions().normalizeDepth,s=AH(t),a={__serialized__:ex(t,o)};if(s)return{exception:{values:[P0(e,s)]},extra:a};const u={exception:{values:[{type:Oh(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:TH(t,{isUnhandledRejection:r})}]},extra:a};if(n){const f=B0(e,n);f.length&&(u.exception.values[0].stacktrace={frames:f})}return u}function Vg(e,t){return{exception:{values:[P0(e,t)]}}}function B0(e,t){const n=t.stacktrace||t.stack||"",r=_H(t),o=bH(t);try{return e(n,r,o)}catch{}return[]}const vH=/Minified React error #\d+;/i;function _H(e){return e&&vH.test(e.message)?1:0}function bH(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function xx(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function wH(e){const t=e?.name;return!t&&xx(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function EH(e){const t=e?.message;return xx(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:"wasm exception":t?t.error&&typeof t.error.message=="string"?oE(t.error):oE(e):"No error message"}function SH(e,t,n,r){const o=n?.syntheticException||void 0,s=N0(e,t,o,r);return ru(s),s.level="error",n?.event_id&&(s.event_id=n.event_id),af(s)}function $H(e,t,n="info",r,o){const s=r?.syntheticException||void 0,a=Vy(e,t,s,o);return a.level=n,r?.event_id&&(a.event_id=r.event_id),af(a)}function N0(e,t,n,r,o){let s;if(VA(t)&&t.error)return Vg(e,t.error);if(x2(t)||eD(t)){const a=t;if("stack"in t)s=Vg(e,t);else{const u=a.name||(x2(a)?"DOMError":"DOMException"),f=a.message?`${u}: ${a.message}`:u;s=Vy(e,f,n,r),ky(s,f)}return"code"in a&&(s.tags={...s.tags,"DOMException.code":`${a.code}`}),s}return Rh(t)?Vg(e,t):rc(t)||Oh(t)?(s=yH(e,t,n,o),ru(s,{synthetic:!0}),s):(s=Vy(e,t,n,r),ky(s,`${t}`),ru(s,{synthetic:!0}),s)}function Vy(e,t,n,r){const o={};if(r&&n){const s=B0(e,n);s.length&&(o.exception={values:[{value:t,stacktrace:{frames:s}}]}),ru(o,{synthetic:!0})}
25if(b0(t)){const{__sentry_template_string__:s,__sentry_template_values__:a}=t;return o.logentry={message:s,params:a},o}return o.message=t,o}function TH(e,{isUnhandledRejection:t}){const n=pD(e),r=t?"promise rejection":"exception";return VA(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:Oh(e)?`Event \`${IH(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function IH(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function AH(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}const nt=tt;let qy=0;function Cx(){return qy>0}function xH(){qy++,setTimeout(()=>{qy--})}function lu(e,t={}){function n(o){return typeof o=="function"}if(!n(e))return e;try{const o=e.__sentry_wrapped__;if(o)return typeof o=="function"?o:e;if(T0(e))return e}catch{return e}const r=function(...o){try{const s=o.map(a=>lu(a,t));return e.apply(this,s)}catch(s){throw xH(),kh(a=>{a.addEventProcessor(u=>(t.mechanism&&(ky(u,void 0),ru(u,t.mechanism)),u.extra={...u.extra,arguments:o},u)),k0(s)}),s}};try{for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o])}catch{}GA(r,e),Bn(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function D0(){const e=nf(),{referrer:t}=nt.document||{},{userAgent:n}=nt.navigator||{},r={...t&&{Referer:t},...n&&{"User-Agent":n}};return{url:e,headers:r}}function CH(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function RH(e){return`${CH(e)}${e.projectId}/envelope/`}function OH(e,t){const n={sentry_version:"7"};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function kH(e,t,n){return t||`${RH(e)}?${OH(e,n)}`}function LH(e){return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{items:e}]}function MH(e,t,n,r){const o={};return t?.sdk&&(o.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(o.dsn=Lu(r)),Zs(o,[LH(e)])}function Wy(e,t){const n=t??PH(e)??[];if(n.length===0)return;const r=e.getOptions(),o=MH(n,r._metadata,r.tunnel,e.getDsn());Rx().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(o)}function PH(e){return Rx().get(e)}function Rx(){return xu("clientToLogBufferMap",()=>new WeakMap)}function BH(e){return[{type:"trace_metric",item_count:e.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:e}]}function NH(e,t,n,r){const o={};return t?.sdk&&(o.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(o.dsn=Lu(r)),Zs(o,[BH(e)])}function Ox(e,t){const n=t??DH(e)??[];if(n.length===0)return;const r=e.getOptions(),o=NH(n,r._metadata,r.tunnel,e.getDsn());kx().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(o)}function DH(e){return kx().get(e)}function kx(){return xu("clientToMetricBufferMap",()=>new WeakMap)}function Lx(e){return typeof e=="object"&&typeof e.unref=="function"&&e.unref(),e}const U0=Symbol.for("SentryBufferFullError");function H0(e=100){const t=new Set;function n(){return t.size<e}function r(a){t.delete(a)}function o(a){if(!n())return A0(U0);const u=a();return t.add(u),u.then(()=>r(u),()=>r(u)),u}function s(a){if(!t.size)return af(!0);const u=Promise.allSettled(Array.from(t)).then(()=>!0);if(!a)return u;const f=[u,new Promise(d=>Lx(setTimeout(()=>d(!1),a)))];return Promise.race(f)}return{get $(){return Array.from(t)},add:o,drain:s}}const UH=60*1e3;function HH(e,t=of()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?UH:r-t}function FH(e,t){return e[t]||e.all||0}function jH(e,t,n=of()){return FH(e,t)>n}function VH(e,{statusCode:t,headers:n},r=of()){const o={...e},s=n?.["x-sentry-rate-limits"],a=n?.["retry-after"];if(s)for(const u of s.trim().split(",")){const[f,d,,,p]=u.split(":",5),h=parseInt(f,10),y=(isNaN(h)?60:h)*1e3;if(!d)o.all=r+y;else for(const m of d.split(";"))m==="metric_bucket"?(!p||p.split(";").includes("custom"))&&(o[m]=r+y):o[m]=r+y}else a?o.all=r+HH(a,r):t===429&&(o.all=r+60*1e3);return o}const Mx=64;function qH(e,t,n=H0(e.bufferSize||Mx)){let r={};const o=a=>n.drain(a);function s(a){const u=[];
25if(Tp(a,(h,y)=>{const m=G2(y);jH(r,m)?e.recordDroppedEvent("ratelimit_backoff",m):u.push(h)}),u.length===0)return Promise.resolve({});const f=Zs(a[0],u),d=h=>{if(FU(f,["client_report"])){Fe&&Ne.warn(`Dropping client report. Will not send outcomes (reason: ${h}).`);return}Tp(f,(y,m)=>{e.recordDroppedEvent(h,G2(m))})},p=()=>t({body:jU(f)}).then(h=>h.statusCode===413?(Fe&&Ne.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),d("send_error"),h):(Fe&&h.statusCode!==void 0&&(h.statusCode<200||h.statusCode>=300)&&Ne.warn(`Sentry responded with status code ${h.statusCode} to sent event.`),r=VH(r,h),h),h=>{throw d("network_error"),Fe&&Ne.error("Encountered error running transport request:",h),h});return n.add(p).then(h=>h,h=>{if(h===U0)return Fe&&Ne.error("Skipped sending event because buffer is full."),d("queue_overflow"),Promise.resolve({});throw h})}return{send:s,flush:o}}function WH(e,t,n){const r=[{type:"client_report"},{timestamp:Ks(),discarded_events:e}];return Zs(t?{dsn:t}:{},[r])}function Px(e){const t=[];e.message&&t.push(e.message);try{const n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function zH(e){const{trace_id:t,parent_span_id:n,span_id:r,status:o,origin:s,data:a,op:u}=e.contexts?.trace??{};return{data:a??{},description:e.transaction,op:u,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:o,timestamp:e.timestamp,trace_id:t??"",origin:s,profile_id:a?.[C0],exclusive_time:a?.[ku],measurements:e.measurements,is_segment:!0}}function GH(e){return{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[C0]:e.profile_id},...e.exclusive_time&&{[ku]:e.exclusive_time}}}},measurements:e.measurements}}const iE="Not capturing exception because it's already been captured.",sE="Discarded session because of missing or non-string release",Bx=Symbol.for("SentryInternalError"),Nx=Symbol.for("SentryDoNotSendEventError"),YH=5e3;function Od(e){return{message:e,[Bx]:!0}}function qg(e){return{message:e,[Nx]:!0}}function aE(e){return!!e&&typeof e=="object"&&Bx in e}function uE(e){return!!e&&typeof e=="object"&&Nx in e}function lE(e,t,n,r,o){let s=0,a,u=!1;e.on(n,()=>{s=0,clearTimeout(a),u=!1}),e.on(t,f=>{s+=r(f),s>=8e5?o(e):u||(u=!0,a=Lx(setTimeout(()=>{o(e)},YH)))}),e.on("flush",()=>{o(e)})}let KH=class{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=H0(t.transportOptions?.bufferSize??Mx),t.dsn?this._dsn=eU(t.dsn):Fe&&Ne.warn("No DSN provided, client will not send events."),this._dsn){const n=kH(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&lE(this,"afterCaptureLog","flushLogs",XH,Wy),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&lE(this,"afterCaptureMetric","flushMetrics",JH,Ox)}captureException(t,n,r){const o=dr();if(O2(t))return Fe&&Ne.log(iE),o;const s={event_id:o,...n};return this._process(()=>this.eventFromException(t,s).then(a=>this._captureEvent(a,s,r)).then(a=>a),"error"),s.event_id}captureMessage(t,n,r,o){const s={event_id:dr(),...r},a=b0(t)?t:String(t),u=nu(t),f=u?this.eventFromMessage(a,n,s):this.eventFromException(t,s);return this._process(()=>f.then(d=>this._captureEvent(d,s,o)),u?"unknown":"error"),s.event_id}captureEvent(t,n,r){const o=dr();if(n?.originalException&&O2(n.originalException))return Fe&&Ne.log(iE),o;const s={event_id:o,...n},a=t.sdkProcessingMetadata||{},u=a.capturedSpanScope,f=a.capturedSpanIsolationScope,d=cE(t.type);return this._process(()=>this._captureEvent(t,s,u||r,f),d),s.event_id}captureSession(t){this.sendSession(t),ou(t,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(t){const n=this._transport;if(!n)return!0;
25this.emit("flush");const r=await this._isClientDoneProcessing(t),o=await n.flush(t);return r&&o}async close(t){Wy(this);const n=await this.flush(t);return this.getOptions().enabled=!1,this.emit("close"),n}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];Ax(this,t,this._integrations),n||nE(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=JU(t,this._dsn,this._options._metadata,this._options.tunnel);for(const o of n.attachments||[])r=HU(r,WU(o));this.sendEnvelope(r).then(o=>this.emit("afterSendEvent",t,o))}sendSession(t){const{release:n,environment:r=I0}=this._options;if("aggregates"in t){const s=t.attrs||{};if(!s.release&&!n){Fe&&Ne.warn(sE);return}s.release=s.release||n,s.environment=s.environment||r,t.attrs=s}else{if(!t.release&&!n){Fe&&Ne.warn(sE);return}t.release=t.release||n,t.environment=t.environment||r}this.emit("beforeSendSession",t);const o=QU(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(o)}recordDroppedEvent(t,n,r=1){if(this._options.sendClientReports){const o=`${t}:${n}`;Fe&&Ne.log(`Recording outcome: "${o}"${r>1?` (${r} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+r}}on(t,n){const r=this._hooks[t]=this._hooks[t]||new Set,o=(...s)=>n(...s);return r.add(o),()=>{r.delete(o)}}emit(t,...n){const r=this._hooks[t];r&&r.forEach(o=>o(...n))}async sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)try{return await this._transport.send(t)}catch(n){return Fe&&Ne.error("Error while sending envelope:",n),{}}return Fe&&Ne.error("Transport disabled"),{}}dispose(){}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=fH(this,t),nE(this,t)}_updateSessionFromEvent(t,n){let r=n.level==="fatal",o=!1;const s=n.exception?.values;if(s){o=!0,r=!1;for(const u of s)if(u.mechanism?.handled===!1){r=!0;break}}const a=t.status==="ok";(a&&t.errors===0||a&&r)&&(ou(t,{...r&&{status:"crashed"},errors:t.errors||Number(o||r)}),this.captureSession(t))}async _isClientDoneProcessing(t){let n=0;for(;!t||n<t;){if(await new Promise(r=>setTimeout(r,1)),!this._numProcessing)return!0;n++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,o){const s=this.getOptions(),a=Object.keys(this._integrations);return!n.integrations&&a?.length&&(n.integrations=a),this.emit("preprocessEvent",t,n),t.type||o.setLastEventId(t.event_id||n.event_id),EU(s,t,n,r,this,o).then(u=>{if(u===null)return u;this.emit("postprocessEvent",u,n),u.contexts={trace:{...u.contexts?.trace,...kD(r)},...u.contexts};const f=yx(this,r);return u.sdkProcessingMetadata={dynamicSamplingContext:f,...u.sdkProcessingMetadata},u})}_captureEvent(t,n={},r=_t(),o=Ho()){return Fe&&zy(t)&&Ne.log(`Captured error event \`${Px(t)[0]||"<unknown>"}\``),this._processEvent(t,n,r,o).then(s=>s.event_id,s=>{Fe&&(uE(s)?Ne.log(s.message):aE(s)?Ne.warn(s.message):Ne.warn(s))})}_processEvent(t,n,r,o){const s=this.getOptions(),{sampleRate:a}=s,u=Dx(t),f=zy(t),d=`before send for type \`${t.type||"error"}\``,p=typeof a>"u"?void 0:ic(a);if(f&&typeof p=="number"&&pi()>p)return this.recordDroppedEvent("sample_rate","error"),A0(qg(`Discarding event because it's not included in the random sample (sampling rate = ${a})`));const h=cE(t.type);return this._prepareEvent(t,n,r,o).then(y=>{if(y===null)throw this.recordDroppedEvent("event_processor",h),qg("An event processor returned `null`, will not send event.");if(n.data?.__sentry__===!0)return y;const m=QH(this,s,y,n);return ZH(m,d)}).then(y=>{if(y===null){if(this.recordDroppedEvent("before_send",h),u){const b=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",b)}throw qg(`${d} returned \`null\`, will not send event.`)}const m=r.getSession()||o.getSession();if(f&&m&&this._updateSessionFromEvent(m,y),u){const b=y.sdkProcessingMetadata?.spanCountBeforeProcessing||0,S=y.spans?y.spans.length:0,w=b-S;w>0&&this.recordDroppedEvent("before_send","span",w)}const v=y.transaction_info;if(u&&v&&y.transaction!==t.transaction){const b="custom";y.transaction_info={...v,source:b}}return this.sendEvent(y,n),y}).then(null,y=>{throw uE(y)||aE(y)?y:(this.captureException(y,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:y}),Od(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. 26Reason: ${y}`))})}_process(t,n){this._numProcessing++,this._promiseBuffer.add(t).then(r=>(this._numProcessing--,r),r=>(this._numProcessing--,r===U0&&this.recordDroppedEvent("queue_overflow",n),r))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{const[o,s]=n.split(":");return{reason:o,category:s,quantity:r}})}_flushOutcomes(){Fe&&Ne.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){Fe&&Ne.log("No outcomes to send");return}if(!this._dsn){Fe&&Ne.log("No dsn provided, will not send outcomes");return}Fe&&Ne.log("Sending outcomes:",t);const n=WH(t,this._options.tunnel&&Lu(this._dsn));this.sendEnvelope(n)}};function cE(e){return e==="replay_event"?"replay":e||"error"}function ZH(e,t){const n=`${t} must return \`null\` or a valid event.`;if(Ru(e))return e.then(r=>{if(!rc(r)&&r!==null)throw Od(n);return r},r=>{throw Od(`${t} rejected with ${r}`)});if(!rc(e)&&e!==null)throw Od(n);return e}function QH(e,t,n,r){const{beforeSend:o,beforeSendTransaction:s,beforeSendSpan:a,ignoreSpans:u}=t;let f=n;if(zy(f)&&o)return o(f,r);if(Dx(f)){if(a||u){const d=zH(f);if(u?.length&&Ip(d,u))return null;if(a){const p=a(d);p?f=sf(n,GH(p)):Fy()}if(f.spans){const p=[],h=f.spans;for(const m of h){if(u?.length&&Ip(m,u)){YU(h,m);continue}if(a){const v=a(m);v?p.push(v):(Fy(),p.push(m))}else p.push(m)}const y=f.spans.length-p.length;y&&e.recordDroppedEvent("before_send","span",y),f.spans=p}}if(s){if(f.spans){const d=f.spans.length;f.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:d}}return s(f,r)}}return f}function zy(e){return e.type===void 0}function Dx(e){return e.type==="transaction"}function JH(e){let t=0;return e.name&&(t+=e.name.length*2),t+=8,t+Ux(e.attributes)}function XH(e){let t=0;return e.message&&(t+=e.message.length*2),t+Ux(e.attributes)}function Ux(e){if(!e)return 0;let t=0;return Object.values(e).forEach(n=>{Array.isArray(n)?t+=n.length*fE(n[0]):nu(n)?t+=fE(n):t+=100}),t}function fE(e){return typeof e=="string"?e.length*2:typeof e=="number"?8:typeof e=="boolean"?4:0}function Hx(e,t,n=[t],r="npm"){const o=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};o.name||(o.name=`sentry.javascript.${t}`,o.packages=n.map(s=>({name:`${r}:@sentry/${s}`,version:bs})),o.version=bs)}function eF(e){"aggregates"in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):e.ipAddress===void 0&&(e.ipAddress="{{auto}}")}function tF(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function nF(){return"npm"}let rF=class extends KH{constructor(t){const n=oF(t),r=nt.SENTRY_SDK_SOURCE||nF();Hx(n,"browser",["browser"],r),n._metadata?.sdk&&(n._metadata.sdk.settings={infer_ip:n.sendDefaultPii?"auto":"never",...n._metadata.sdk.settings}),super(n);const{sendDefaultPii:o,sendClientReports:s,enableLogs:a,_experiments:u,enableMetrics:f}=this._options,d=f??u?.enableMetrics??!0;nt.document&&(s||a||d)&&nt.document.addEventListener("visibilitychange",()=>{nt.document.visibilityState==="hidden"&&(s&&this._flushOutcomes(),a&&Wy(this),d&&Ox(this))}),o&&this.on("beforeSendSession",eF)}eventFromException(t,n){return SH(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return $H(this._options.stackParser,t,n,r,this._options.attachStacktrace)}_prepareEvent(t,n,r,o){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r,o)}};function oF(e){return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:nt.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}const Wn=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,kd={},dE={};function Pi(e,t){kd[e]=kd[e]||[],kd[e].push(t)}function Bi(e,t){if(!dE[e]){dE[e]=!0;try{t()}catch(n){Fe&&Ne.error(`Error while instrumenting ${e}`,n)}}}function hr(e,t){const n=e&&kd[e];if(n)for(const r of n)try{r(t)}catch(o){Fe&&Ne.error(`Error while triggering instrumentation handler. 27Type: ${e} 28Name: ${Po(r)} 29Error:`,o)}}function iF(e){const t="console";Pi(t,e),Bi(t,sF)}
29function sF(){"console"in tt&&sD.forEach(function(e){e in tt.console&&Vn(tt.console,e,function(t){return Ep[e]=t,function(...n){hr("console",{args:n,level:e}),Ep[e]?.apply(tt.console,n)}})})}const Ke=tt,aF=1e3;let pE,Gy,Yy;function uF(e){Pi("dom",e),Bi("dom",lF)}function lF(){if(!Ke.document)return;const e=hr.bind(null,"dom"),t=hE(e,!0);Ke.document.addEventListener("click",t,!1),Ke.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const r=Ke[n]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(Vn(r,"addEventListener",function(o){return function(s,a,u){if(s==="click"||s=="keypress")try{const f=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},d=f[s]=f[s]||{refCount:0};if(!d.handler){const p=hE(e);d.handler=p,o.call(this,s,p,u)}d.refCount++}catch{}return o.call(this,s,a,u)}}),Vn(r,"removeEventListener",function(o){return function(s,a,u){if(s==="click"||s=="keypress")try{const f=this.__sentry_instrumentation_handlers__||{},d=f[s];d&&(d.refCount--,d.refCount<=0&&(o.call(this,s,d.handler,u),d.handler=void 0,delete f[s]),Object.keys(f).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return o.call(this,s,a,u)}}))})}function cF(e){if(e.type!==Gy)return!1;try{if(!e.target||e.target._sentryId!==Yy)return!1}catch{}return!0}function fF(e,t){return e!=="keypress"?!1:t?.tagName?!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable):!0}function hE(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=dF(n);if(fF(n.type,r))return;Bn(n,"_sentryCaptured",!0),r&&!r._sentryId&&Bn(r,"_sentryId",dr());const o=n.type==="keypress"?"input":n.type;cF(n)||(e({event:n,name:o,global:t}),Gy=n.type,Yy=r?r._sentryId:void 0),clearTimeout(pE),pE=Ke.setTimeout(()=>{Yy=void 0,Gy=void 0},aF)}}function dF(e){try{return e.target}catch{return null}}const Ra="__sentry_xhr_v3__";function Fx(e){Pi("xhr",e),Bi("xhr",pF)}function pF(){if(!Ke.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){const o=new Error,s=Yt()*1e3,a=Co(r[0])?r[0].toUpperCase():void 0,u=hF(r[1]);if(!a||!u)return t.apply(n,r);n[Ra]={method:a,url:u,request_headers:{}},a==="POST"&&u.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const f=()=>{const d=n[Ra];if(d&&n.readyState===4){try{d.status_code=n.status}catch{}const p={endTimestamp:Yt()*1e3,startTimestamp:s,xhr:n,virtualError:o};hr("xhr",p)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(d,p,h){return f(),d.apply(p,h)}}):n.addEventListener("readystatechange",f),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(d,p,h){const[y,m]=h,v=p[Ra];return v&&Co(y)&&Co(m)&&(v.request_headers[y.toLowerCase()]=m),d.apply(p,h)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const o=n[Ra];if(!o)return t.apply(n,r);r[0]!==void 0&&(o.body=r[0]);const s={startTimestamp:Yt()*1e3,xhr:n};return hr("xhr",s),t.apply(n,r)}})}function hF(e){if(Co(e))return e;try{return e.toString()}catch{}}const sc=tt;function gF(){return"history"in sc&&!!sc.history}function mF(){if(!("fetch"in sc))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}function Ky(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function yF(){if(typeof EdgeRuntime=="string")return!0;if(!mF())return!1;if(Ky(sc.fetch))return!0;let e=!1;const t=sc.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=Ky(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){Fe&&Ne.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function jx(e,t){const n="fetch";Pi(n,e),Bi(n,()=>Vx(void 0,t))}function vF(e){const t="fetch-body-resolved";Pi(t,e),Bi(t,()=>Vx(bF))}function Vx(e,t=!1){t&&!yF()||Vn(tt,"fetch",function(n){return function(...r){const o=new Error,{method:s,url:a}=wF(r),u={args:r,fetchData:{method:s,url:a},startTimestamp:Yt()*1e3,virtualError:o,headers:EF(r)};return e||hr("fetch",{...u}),n.apply(tt,r).then(async f=>(e?e(f):hr("fetch",{...u,endTimestamp:Yt()*1e3,response:f}),f),f=>{hr("fetch",{...u,endTimestamp:Yt()*1e3,error:f}),Rh(f)&&f.stack===void 0&&(f.stack=o.stack,Bn(f,"framesToPop",1));const d=Et()?.getOptions().enhanceFetchErrorMessages??"always";if(d!==!1&&f instanceof TypeError&&(f.message==="Failed to fetch"||f.message==="Load failed"||f.message==="NetworkError when attempting to fetch resource."))try{const p=new URL(u.fetchData.url).host;d==="always"?f.message=`${f.message} (${p})`:Bn(f,"__sentry_fetch_url_host__",p)}catch{}throw f})}})}async function _F(e,t){if(e?.body){const n=e.body,r=n.getReader(),o=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let s=!0;for(;s;){let a;try{a=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:u}=await r.read();clearTimeout(a),u&&(t(),s=!1)}catch{s=!1}finally{clearTimeout(a)}}clearTimeout(o),r.releaseLock(),n.cancel().then(null,()=>{})}}function bF(e){let t;try{t=e.clone()}catch{return}_F(t,()=>{hr("fetch-body-resolved",{endTimestamp:Yt()*1e3,response:e})})}function Ld(e,t){return!!e&&typeof e=="object"&&!!e[t]}function gE(e){return typeof e=="string"?e:e?Ld(e,"url")?e.url:e.toString?e.toString():"":""}function wF(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:gE(n),method:Ld(r,"method")?String(r.method).toUpperCase():w0(n)&&Ld(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:gE(t),method:Ld(t,"method")?String(t.method).toUpperCase():"GET"}}function EF(e){const[t,n]=e;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(w0(t))return new Headers(t.headers)}catch{}}let Kf;function F0(e){const t="history";Pi(t,e),Bi(t,SF)}function SF(){if(Ke.addEventListener("popstate",()=>{const t=Ke.location.href,n=Kf;Kf=t,n!==t&&hr("history",{from:n,to:t})}),!gF())return;function e(t){return function(...n){const r=n.length>2?n[2]:void 0;if(r){const o=Kf,s=$F(String(r));if(Kf=s,o===s)return t.apply(this,n);hr("history",{from:o,to:s})}return t.apply(this,n)}}Vn(Ke.history,"pushState",e),Vn(Ke.history,"replaceState",e)}function $F(e){try{return new URL(e,Ke.location.origin).toString()}catch{return e}}const TF=100;function Bs(e,t){const n=Et(),r=Ho();if(!n)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:s=TF}=n.getOptions();if(s<=0)return;const a={timestamp:Ks(),...e},u=o?Li(()=>o(a,t)):a;u!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",u,t),r.addBreadcrumb(u,s))}function IF(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const AF="thismessage:/";function qx(e){return"isRelative"in e}function Wx(e,t){const n=e.indexOf("://")<=0&&e.indexOf("//")!==0,r=n?AF:void 0;try{if("canParse"in URL&&!URL.canParse(e,r))return;const o=new URL(e,r);return n?{isRelative:n,pathname:o.pathname,search:o.search,hash:o.hash}:o}catch{}}function xF(e){if(qx(e))return e.pathname;const t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}function Ss(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function CF(e){return e.split(/[?#]/,1)[0]}function gi(e,t=!0){if(e.startsWith("data:")){const n=e.match(/^data:([^;,]+)/),r=n?n[1]:"text/plain",o=e.includes(";base64,"),s=e.indexOf(",");let a="";if(t&&s!==-1){const u=e.slice(s+1);a=u.length>10?`${u.slice(0,10)}... [truncated]`:u}return`data:${r}${o?",base64":""}${a?`,${a}`:""}`}return e}function zx(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const Zf=1024,RF="Breadcrumbs",OF=((e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:RF,setup(n){t.console&&iF(PF(n)),t.dom&&uF(MF(n,t.dom)),t.xhr&&Fx(BF(n)),t.fetch&&jx(NF(n)),t.history&&F0(DF(n)),t.sentry&&n.on("beforeSendEvent",LF(n))}}}),kF=OF;function LF(e){return function(t){Et()===e&&Bs({category:`sentry.${t.type==="transaction"?"transaction":"event"}`,event_id:t.event_id,level:t.level,message:ss(t)},{event:t})}}function MF(e,t){return function(n){if(Et()!==e)return;let r,o,s=typeof t=="object"?t.serializeAttribute:void 0,a=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;a&&a>Zf&&(Wn&&Ne.warn(`\`dom.maxStringLength\` cannot exceed ${Zf}, but a value of ${a} was configured. Sentry will use ${Zf} instead.`),a=Zf),typeof s=="string"&&(s=[s]);try{const f=n.event,d=UF(f)?f.target:f;r=mr(d,{keyAttrs:s,maxStringLength:a}),o=WA(d)}catch{r="<unknown>"}if(r.length===0)return;const u={category:`ui.${n.name}`,message:r};o&&(u.data={"ui.component_name":o}),Bs(u,{event:n.event,name:n.name,global:n.global})}}function PF(e){return function(t){if(Et()!==e)return;const n={category:"console",data:{arguments:t.args,logger:"console"},level:IF(t.level),message:P2(t.args," ")};if(t.level==="assert")if(t.args[0]===!1)n.message=`Assertion failed: ${P2(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1);else return;Bs(n,{input:t.args,level:t.level})}}function BF(e){return function(t){if(Et()!==e)return;const{startTimestamp:n,endTimestamp:r}=t,o=t.xhr[Ra];if(!n||!r||!o)return;const{method:s,url:a,status_code:u,body:f}=o,d={method:s,url:a,status_code:u},p={xhr:t.xhr,input:f,startTimestamp:n,endTimestamp:r},h={category:"xhr",data:d,type:"http",level:zx(u)};e.emit("beforeOutgoingRequestBreadcrumb",h,p),Bs(h,p)}}function NF(e){return function(t){if(Et()!==e)return;const{startTimestamp:n,endTimestamp:r}=t;
29if(r&&!(t.fetchData.url.match(/sentry_key/)&&t.fetchData.method==="POST"))if(t.fetchData.method,t.fetchData.url,t.error){const o=t.fetchData,s={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r},a={category:"fetch",data:o,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",a,s),Bs(a,s)}else{const o=t.response,s={...t.fetchData,status_code:o?.status};t.fetchData.request_body_size,t.fetchData.response_body_size,o?.status;const a={input:t.args,response:o,startTimestamp:n,endTimestamp:r},u={category:"fetch",data:s,type:"http",level:zx(s.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",u,a),Bs(u,a)}}}function DF(e){return function(t){if(Et()!==e)return;let n=t.from,r=t.to;const o=Ss(nt.location.href);let s=n?Ss(n):void 0;const a=Ss(r);s?.path||(s=o),o.protocol===a.protocol&&o.host===a.host&&(r=a.relative),o.protocol===s.protocol&&o.host===s.host&&(n=s.relative),Bs({category:"navigation",data:{from:n,to:r}})}}function UF(e){return!!e&&!!e.target}const HF=["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"],FF="BrowserApiErrors",jF=((e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:FF,setupOnce(){t.setTimeout&&Vn(nt,"setTimeout",mE),t.setInterval&&Vn(nt,"setInterval",mE),t.requestAnimationFrame&&Vn(nt,"requestAnimationFrame",qF),t.XMLHttpRequest&&"XMLHttpRequest"in nt&&Vn(XMLHttpRequest.prototype,"send",WF);const n=t.eventTarget;n&&(Array.isArray(n)?n:HF).forEach(r=>zF(r,t))}}}),VF=jF;function mE(e){return function(...t){const n=t[0];return t[0]=lu(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${Po(e)}`}}),e.apply(this,t)}}function qF(e){return function(t){return e.apply(this,[lu(t,{mechanism:{data:{handler:Po(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function WF(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(r=>{r in n&&typeof n[r]=="function"&&Vn(n,r,function(o){const s={mechanism:{data:{handler:Po(o)},handled:!1,type:`auto.browser.browserapierrors.xhr.${r}`}},a=T0(o);return a&&(s.mechanism.data.handler=Po(a)),lu(o,s)})}),e.apply(this,t)}}function zF(e,t){const n=nt[e]?.prototype;n?.hasOwnProperty?.("addEventListener")&&(Vn(n,"addEventListener",function(r){return function(o,s,a){try{GF(s)&&(s.handleEvent=lu(s.handleEvent,{mechanism:{data:{handler:Po(s),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&YF(this,o,s),r.apply(this,[o,lu(s,{mechanism:{data:{handler:Po(s),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),a])}}),Vn(n,"removeEventListener",function(r){return function(o,s,a){try{const u=s.__sentry_wrapped__;u&&r.call(this,o,u,a)}catch{}return r.call(this,o,s,a)}}))}function GF(e){return typeof e.handleEvent=="function"}function YF(e,t,n){e&&typeof e=="object"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"&&e.removeEventListener(t,n)}const KF=(e={})=>{const t=e.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(typeof nt.document>"u"){Wn&&Ne.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}z2({ignoreDuration:!0}),Fg();const n=Ho();let r=n.getUser();n.addScopeListener(o=>{const s=o.getUser();(r?.id!==s?.id||r?.ip_address!==s?.ip_address)&&(Fg(),r=s)}),t==="route"&&F0(({from:o,to:s})=>{o!==s&&(z2({ignoreDuration:!0}),Fg())})}}},ZF="CultureContext",QF=(()=>({name:ZF,preprocessEvent(e){const t=XF();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})}})),JF=QF;function XF(){try{const e=nt.Intl;if(!e)return;const t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}let Wg=null;function Gx(e){const t="error";Pi(t,e),Bi(t,ej)}function ej(){Wg=tt.onerror,tt.onerror=function(e,t,n,r,o){return hr("error",{column:r,error:o,line:n,msg:e,url:t}),Wg?Wg.apply(this,arguments):!1},tt.onerror.__SENTRY_INSTRUMENTED__=!0}let zg=null;function Yx(e){const t="unhandledrejection";Pi(t,e),Bi(t,tj)}function tj(){zg=tt.onunhandledrejection,tt.onunhandledrejection=function(e){return hr("unhandledrejection",e),zg?zg.apply(this,arguments):!0},tt.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const nj="GlobalHandlers",rj=((e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:nj,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(ij(n),yE("onerror")),t.onunhandledrejection&&(sj(n),yE("onunhandledrejection"))}}}),oj=rj;function ij(e){Gx(t=>{const{stackParser:n,attachStacktrace:r}=Kx();if(Et()!==e||Cx())return;const{msg:o,url:s,line:a,column:u,error:f}=t,d=lj(N0(n,f||o,void 0,r,!1),s,a,u);d.level="error",_x(d,{originalException:f,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function sj(e){Yx(t=>{const{stackParser:n,attachStacktrace:r}=Kx();if(Et()!==e||Cx())return;
29const o=aj(t),s=nu(o)?uj(o):N0(n,o,void 0,r,!0);s.level="error",_x(s,{originalException:o,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function aj(e){if(nu(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function uj(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function lj(e,t,n,r){const o=e.exception=e.exception||{},s=o.values=o.values||[],a=s[0]=s[0]||{},u=a.stacktrace=a.stacktrace||{},f=u.frames=u.frames||[],d=r,p=n,h=cj(t)??nf();return f.length===0&&f.push({colno:d,filename:h,function:su,in_app:!0,lineno:p}),e}function yE(e){Wn&&Ne.log(`Global Handler attached: ${e}`)}function Kx(){return Et()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function cj(e){if(!(!Co(e)||e.length===0))return e.startsWith("data:")?`<${gi(e,!1)}>`:e}const fj=()=>({name:"HttpContext",preprocessEvent(e){if(!nt.navigator&&!nt.location&&!nt.document)return;const t=D0(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}}});function dj(e,t,n,r,o,s){if(!o.exception?.values||!s||!Lo(s.originalException,Error))return;const a=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;a&&(o.exception.values=Zy(e,t,r,s.originalException,n,o.exception.values,a,0))}function Zy(e,t,n,r,o,s,a,u){if(s.length>=n+1)return s;let f=[...s];if(Lo(r[o],Error)){vE(a,u,r);const d=e(t,r[o]),p=f.length;_E(d,o,p,u),f=Zy(e,t,n,r[o],o,[d,...f],d,p)}return Zx(r)&&r.errors.forEach((d,p)=>{if(Lo(d,Error)){vE(a,u,r);const h=e(t,d),y=f.length;_E(h,`errors[${p}]`,y,u),f=Zy(e,t,n,d,o,[h,...f],h,y)}}),f}function Zx(e){return Array.isArray(e.errors)}function vE(e,t,n){e.mechanism={handled:!0,type:"auto.core.linked_errors",...Zx(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function _E(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}const pj="cause",hj=5,gj="LinkedErrors",mj=((e={})=>{const t=e.limit||hj,n=e.key||pj;return{name:gj,preprocessEvent(r,o,s){const a=s.getOptions();dj(P0,a.stackParser,n,t,r,o)}}}),yj=mj,vj=30,_j=50;function Qy(e,t,n,r){const o={filename:e,function:t==="<anonymous>"?su:t,in_app:!0};return n!==void 0&&(o.lineno=n),r!==void 0&&(o.colno=r),o}const bj=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,wj=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Ej=/\((\S*)(?::(\d+))(?::(\d+))\)/,Sj=/at (.+?) ?\(data:(.+?),/,$j=e=>{const t=e.match(Sj);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};const n=bj.exec(e);if(n){const[,o,s,a]=n;return Qy(o,su,+s,+a)}const r=wj.exec(e);if(r){if(r[2]?.indexOf("eval")===0){const a=Ej.exec(r[2]);a&&(r[2]=a[1],r[3]=a[2],r[4]=a[3])}const[o,s]=Qx(r[1]||su,r[2]);return Qy(s,o,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},Tj=[vj,$j],Ij=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Aj=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,xj=e=>{const t=Ij.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const o=Aj.exec(t[3]);o&&(t[1]=t[1]||"eval",t[3]=o[1],t[4]=o[2],t[5]="")}let n=t[3],r=t[1]||su;return[r,n]=Qx(r,n),Qy(n,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},Cj=[_j,xj],Rj=[Tj,Cj],Oj=QA(...Rj),Qx=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:su,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},cf=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Md={};function kj(e){const t=Md[e];if(t)return t;let n=Ke[e];if(Ky(n))return Md[e]=n.bind(Ke);const r=Ke.document;if(r&&typeof r.createElement=="function")try{const o=r.createElement("iframe");o.hidden=!0,r.head.appendChild(o);const s=o.contentWindow;s?.[e]&&(n=s[e]),r.head.removeChild(o)}catch(o){cf&&Ne.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,o)}return n&&(Md[e]=n.bind(Ke))}function Lj(e){Md[e]=void 0}const Mj=40;function Pj(e,t=kj("fetch")){let n=0,r=0;async function o(s){const a=s.body.length;n+=a,r++;
29const u={body:s.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{const f=await t(e.url,u);return{statusCode:f.status,headers:{"x-sentry-rate-limits":f.headers.get("X-Sentry-Rate-Limits"),"retry-after":f.headers.get("Retry-After")}}}catch(f){throw Lj("fetch"),f}finally{n-=a,r--}}return qH(e,o,H0(e.bufferSize||Mj))}function Bj(){return Nj()?(Wn&&Li(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0):!1}function Nj(){if(typeof nt.window>"u")return!1;const e=nt;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;const t=nf(),n=["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"];return!(nt===nt.top&&n.some(r=>t.startsWith(`${r}://`)))}const Dj=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],Uj="EventFilters",Hj=(e={})=>{let t;return{name:Uj,setup(n){const r=n.getOptions();t=bE(e,r)},processEvent(n,r,o){if(!t){const s=o.getOptions();t=bE(e,s)}return jj(n,t)?null:n}}},Fj=((e={})=>({...Hj(e),name:"InboundFilters"}));function bE(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Dj],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function jj(e,t){if(e.type){if(e.type==="transaction"&&qj(e,t.ignoreTransactions))return Fe&&Ne.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. 30Event: ${ss(e)}`),!0}else{if(Vj(e,t.ignoreErrors))return Fe&&Ne.warn(`Event dropped due to being matched by \`ignoreErrors\` option. 31Event: ${ss(e)}`),!0;if(Yj(e))return Fe&&Ne.warn(`Event dropped due to not having an error message, error type or stacktrace. 32Event: ${ss(e)}`),!0;if(Wj(e,t.denyUrls))return Fe&&Ne.warn(`Event dropped due to being matched by \`denyUrls\` option. 33Event: ${ss(e)}. 34Url: ${Ap(e)}`),!0;if(!zj(e,t.allowUrls))return Fe&&Ne.warn(`Event dropped due to not being matched by \`allowUrls\` option. 35Event: ${ss(e)}. 36Url: ${Ap(e)}`),!0}return!1}function Vj(e,t){return t?.length?Px(e).some(n=>hi(n,t)):!1}function qj(e,t){if(!t?.length)return!1;const n=e.transaction;return n?hi(n,t):!1}function Wj(e,t){if(!t?.length)return!1;const n=Ap(e);return n?hi(n,t):!1}function zj(e,t){if(!t?.length)return!0;const n=Ap(e);return n?hi(n,t):!0}function Gj(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function Ap(e){try{const t=[...e.exception?.values??[]].reverse().find(n=>n.mechanism?.parent_id===void 0&&n.stacktrace?.frames?.length)?.stacktrace?.frames;return t?Gj(t):null}catch{return Fe&&Ne.error(`Cannot extract url for event ${ss(e)}`),null}}function Yj(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value):!1}let wE;const Kj="FunctionToString",EE=new WeakMap,Zj=(()=>({name:Kj,setupOnce(){wE=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=T0(this),n=EE.has(Et())&&t!==void 0?t:this;return wE.apply(n,e)}}catch{}},setup(e){EE.set(e,!0)}})),Qj=Zj,Jj="ConversationId",Xj=(()=>({name:Jj,setup(e){e.on("spanStart",t=>{const n=_t().getScopeData(),r=Ho().getScopeData(),o=n.conversationId||r.conversationId;o&&t.setAttribute(FD,o)})}})),eV=Xj,tV="Dedupe",nV=(()=>{let e;return{name:tV,processEvent(t){if(t.type)return t;try{if(oV(t,e))return Fe&&Ne.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}}),rV=nV;function oV(e,t){return t?!!(iV(e,t)||sV(e,t)):!1}function iV(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Xx(e,t)||!Jx(e,t))}function sV(e,t){const n=SE(t),r=SE(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Xx(e,t)||!Jx(e,t))}function Jx(e,t){let n=My(e),r=My(t);if(!n&&!r)return!0;
36if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let o=0;o<r.length;o++){const s=r[o],a=n[o];if(s.filename!==a.filename||s.lineno!==a.lineno||s.colno!==a.colno||s.function!==a.function)return!1}return!0}function Xx(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function SE(e){return e.exception?.values?.[0]}function aV(e,t){t.debug===!0&&(Fe?Ne.enable():Li(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),_t().update(t.initialScope);const n=new e(t);return uV(n),n.init(),n}function uV(e){_t().setClient(e)}function e6(e){return[Fj(),Qj(),eV(),VF(),kF(),oj(),yj(),rV(),fj(),JF(),KF()]}function lV(e={}){const t=!e.skipBrowserExtensionCheck&&Bj();let n=e.defaultIntegrations==null?e6():e.defaultIntegrations;const r={...e,enabled:t?!1:e.enabled,stackParser:ED(e.stackParser||Oj),integrations:cH({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||Pj};return aV(rF,r)}function cV(e={}){const t={defaultIntegrations:[...e6(),gH()],...e};return Hx(t,"vue"),lV(t)}function fV(e,t,n){let r=!1;const o="mode"in e;e.onError(s=>k0(s,{mechanism:{handled:!1}})),e.beforeEach((s,a,...u)=>{const f=r?void 0:dV(),d={};for(const y of Object.keys(s.params))d[`url.path.parameter.${y}`]=s.params[y],d[`params.${y}`]=s.params[y];for(const y of Object.keys(s.query)){const m=s.query[y];m&&(d[`query.${y}`]=m)}let p=s.path,h="url";if(s.name&&t.routeLabel!=="path")p=s.name.toString(),h="custom";else if(s.matched.length>0){const y=s.matched.length-1;p=s.matched[y].path,h="route"}if(_t().setTransactionName(p),t.instrumentPageLoad&&f&&(st(f).data[qn]!=="custom"&&(f.updateName(p),f.setAttribute(qn,h)),f.setAttributes({...d,[Dt]:"auto.pageload.vue"}),r=!0),t.instrumentNavigation&&!f&&n({name:p,op:"navigation",attributes:{...d,[Dt]:"auto.navigation.vue",[qn]:h}}),o){const y=u[0];typeof y=="function"&&y()}})}function dV(){const e=On(),t=e&&mn(e);return t&&st(t).op==="pageload"?t:void 0}function pV(){nt.document?nt.document.addEventListener("visibilitychange",()=>{const e=On();if(!e)return;const t=mn(e);if(nt.document.hidden&&t){const n="cancelled",{op:r,status:o}=st(t);Wn&&Ne.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),o||t.setStatus({code:uu,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):Wn&&Ne.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const hV=3600,t6="sentry_previous_trace",gV="sentry.previous_trace";function mV(e,{linkPreviousTrace:t,consistentTraceSampling:n}){const r=t==="session-storage";let o=r?_V():void 0;e.on("spanStart",a=>{if(mn(a)!==a)return;const u=_t().getPropagationContext();o=yV(o,a,u),r&&vV(o)});let s=!0;n&&e.on("beforeSampling",a=>{if(!o)return;const u=_t(),f=u.getPropagationContext();if(s&&f.parentSpanId){s=!1;return}u.setPropagationContext({...f,dsc:{...f.dsc,sample_rate:String(o.sampleRate),sampled:String(Jy(o.spanContext))},sampleRand:o.sampleRand}),a.parentSampled=Jy(o.spanContext),a.parentSampleRate=o.sampleRate,a.spanAttributes={...a.spanAttributes,[tx]:o.sampleRate}})}function yV(e,t,n){const r=st(t);function o(){try{return Number(n.dsc?.sample_rate)??Number(r.data?.[x0])}catch{return 0}}const s={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:o(),sampleRand:n.sampleRand};if(!e)return s;const a=e.spanContext;return a.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=hV&&(Wn&&Ne.log(`Adding previous_trace \`${JSON.stringify(a)}\` link to span \`${JSON.stringify({op:r.op,...t.spanContext()})}\``),t.addLink({context:a,attributes:{[HD]:"previous_trace"}}),t.setAttribute(gV,`${a.traceId}-${a.spanId}-${Jy(a)?1:0}`)),s)}function vV(e){try{nt.sessionStorage.setItem(t6,JSON.stringify(e))}catch(t){Wn&&Ne.warn("Could not store previous trace in sessionStorage",t)}}function _V(){try{const e=nt.sessionStorage?.getItem(t6);return JSON.parse(e)}catch{return}}function Jy(e){return e.traceFlags===1}function bV(e){return e.split(",").some(t=>t.trim().startsWith("sentry-"))}function n6(e){try{return new URL(e,nt.location.origin).href}catch{return}}function wV(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.
36initiatorType==="xmlhttprequest")}function r6(e){try{return new Headers(e)}catch{return}}function o6(e={}){const t=e.client||Et();if(!LU()||!t)return{};const n=Ys(),r=Ou(n);if(r.getTraceData)return r.getTraceData(e);const o=e.scope||_t(),s=e.span||On(),a=s?fU(s):EV(o),u=s?wi(s):yx(t,o),f=qD(u);if(!ux.test(a))return Ne.warn("Invalid sentry-trace data. Cannot generate trace data"),{};const d={"sentry-trace":a,baggage:f};return e.propagateTraceparent&&(d.traceparent=s?dU(s):SV(o)),d}function EV(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return lx(t,r,n)}function SV(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return cx(t,r,n)}function $V(e,t,n,r,o){if(!e.fetchData)return;const{method:s,url:a}=e.fetchData,u=pr()&&t(a);if(e.endTimestamp){const m=e.fetchData.__span;if(!m)return;const v=r[m];v&&(u&&(AV(v,e),TV(v,e,o)),delete r[m]);return}const{spanOrigin:f="auto.http.browser",propagateTraceparent:d=!1}=typeof o=="object"?o:{spanOrigin:o},p=!!On(),h=u&&p?Si(CV(a,s,f)):new Ei;if(e.fetchData.__span=h.spanContext().spanId,r[h.spanContext().spanId]=h,n(e.fetchData.url)){const m=e.args[0],v={...e.args[1]||{}},b=IV(m,v,pr()&&p?h:void 0,d);b&&(e.args[1]=v,v.headers=b)}const y=Et();if(y){const m={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};y.emit("beforeOutgoingRequestSpan",h,m)}return h}function TV(e,t,n){(typeof n=="object"&&n!==null?n.onRequestSpanEnd:void 0)?.(e,{headers:t.response?.headers,error:t.error})}function IV(e,t,n,r){const o=o6({span:n,propagateTraceparent:r}),s=o["sentry-trace"],a=o.baggage,u=o.traceparent;if(!s)return;const f=t.headers||(w0(e)?e.headers:void 0);if(f)if(xV(f)){const d=new Headers(f);if(d.get("sentry-trace")||d.set("sentry-trace",s),r&&u&&!d.get("traceparent")&&d.set("traceparent",u),a){const p=d.get("baggage");p?Qf(p)||d.set("baggage",`${p},${a}`):d.set("baggage",a)}return d}else if(Array.isArray(f)){const d=[...f];f.find(h=>h[0]==="sentry-trace")||d.push(["sentry-trace",s]),r&&u&&!f.find(h=>h[0]==="traceparent")&&d.push(["traceparent",u]);const p=f.find(h=>h[0]==="baggage"&&Qf(h[1]));return a&&!p&&d.push(["baggage",a]),d}else{const d="sentry-trace"in f?f["sentry-trace"]:void 0,p="traceparent"in f?f.traceparent:void 0,h="baggage"in f?f.baggage:void 0,y=h?Array.isArray(h)?[...h]:[h]:[],m=h&&(Array.isArray(h)?h.find(b=>Qf(b)):Qf(h));a&&!m&&y.push(a);const v={...f,"sentry-trace":d??s,baggage:y.length>0?y.join(","):void 0};return r&&u&&!p&&(v.traceparent=u),v}else return{...o}}function AV(e,t){if(t.response){ix(e,t.response.status);const n=t.response?.headers?.get("content-length");if(n){const r=parseInt(n);r>0&&e.setAttribute("http.response_content_length",r)}}else t.error&&e.setStatus({code:uu,message:"internal_error"});e.end()}function Qf(e){return e.split(",").some(t=>t.trim().startsWith(R0))}function xV(e){return typeof Headers<"u"&&Lo(e,Headers)}function CV(e,t,n){if(e.startsWith("data:")){const s=gi(e);return{name:`${t} ${s}`,attributes:$E(e,void 0,t,n)}}const r=Wx(e),o=r?xF(r):e;return{name:`${t} ${o}`,attributes:$E(e,r,t,n)}}function $E(e,t,n,r){const o={url:gi(e),type:"fetch","http.method":n,[Dt]:r,[Bo]:"http.client"};return t&&(qx(t)||(o["http.url"]=gi(t.href),o["server.address"]=t.host),t.search&&(o["http.query"]=t.search),t.hash&&(o["http.fragment"]=t.hash)),o}const RV=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",ff=(e,t,n,r)=>{let o,s;return a=>{t.value>=0&&(a||r)&&(s=t.value-(o??0),(s||o===void 0)&&(o=t.value,t.delta=s,t.rating=RV(t.value,n),e(t)))}},df=(e=!0)=>{const t=Ke.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},Mu=()=>df()?.activationStart??0;function mi(e,t,n){Ke.document&&Ke.addEventListener(e,t,n)}function xp(e,t,n){Ke.document&&Ke.removeEventListener(e,t,n)}let Fa=-1;const i6=new Set,OV=()=>Ke.document?.visibilityState==="hidden"&&!Ke.document?.prerendering?0:1/0,Pd=e=>{if(kV(e)&&Fa>-1){if(e.type==="visibilitychange"||e.type==="pagehide")for(const t of i6)t();isFinite(Fa)||(Fa=e.type==="visibilitychange"?e.timeStamp:0,xp("prerenderingchange",Pd,!0))}},pf=()=>{if(Ke.document&&Fa<0){const e=Mu();Fa=(Ke.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(t=>t.name==="hidden"&&t.startTime>e)[0]?.startTime)??OV(),mi("visibilitychange",Pd,!0),mi("pagehide",Pd,!0),mi("prerenderingchange",Pd,!0)}return{get firstHiddenTime(){return Fa},onHidden(e){i6.add(e)}}};function kV(e){return e.type==="pagehide"||Ke.document?.visibilityState==="hidden"}const LV=()=>`v5-${Date.now()}-${Math.floor(Math.random()*8999999999999)+1e12}`,hf=(e,t=-1)=>{const n=df();let r="navigate";return n&&(Ke.document?.prerendering||Mu()>0?r="prerender":Ke.document?.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:LV(),navigationType:r}},Gg=new WeakMap;function j0(e,t){try{return Gg.get(e)||Gg.set(e,new t),Gg.get(e)}catch{return new t}}let MV=class Xy{constructor(){Xy.prototype.__init.call(this),Xy.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(t){if(t.hadRecentInput)return;const n=this._sessionEntries[0],r=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&n&&r&&t.startTime-r.startTime<1e3&&t.startTime-n.startTime<5e3?(this._sessionValue+=t.value,this._sessionEntries.push(t)):(this._sessionValue=t.value,this._sessionEntries=[t]),this._onAfterProcessingUnexpectedShift?.(t)}};const Pu=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(o=>{Promise.resolve().then(()=>{t(o.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},V0=e=>{let t=!1;return()=>{t||(e(),t=!0)}},Mh=e=>{Ke.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},PV=[1800,3e3],BV=(e,t={})=>{Mh(()=>{const n=pf(),r=hf("FCP");let o;const s=Pu("paint",a=>{for(const u of a)u.name==="first-contentful-paint"&&(s.disconnect(),u.startTime<n.firstHiddenTime&&(r.value=Math.max(u.startTime-Mu(),0),r.entries.push(u),o(!0)))});s&&(o=ff(e,r,PV,t.reportAllChanges))})},NV=[.1,.25],DV=(e,t={})=>{BV(V0(()=>{const n=hf("CLS",0);let r;const o=pf(),s=j0(t,MV),a=f=>{for(const d of f)s._processEntry(d);s._sessionValue>
36n.value&&(n.value=s._sessionValue,n.entries=s._sessionEntries,r())},u=Pu("layout-shift",a);u&&(r=ff(e,n,NV,t.reportAllChanges),o.onHidden(()=>{a(u.takeRecords()),r(!0)}),Ke?.setTimeout?.(r))}))};let s6=0,Yg=1/0,Jf=0;const UV=e=>{e.forEach(t=>{t.interactionId&&(Yg=Math.min(Yg,t.interactionId),Jf=Math.max(Jf,t.interactionId),s6=Jf?(Jf-Yg)/7+1:0)})};let ev;const a6=()=>ev?s6:performance.interactionCount||0,HV=()=>{"interactionCount"in performance||ev||(ev=Pu("event",UV,{type:"event",buffered:!0,durationThreshold:0}))},Kg=10;let u6=0;const FV=()=>a6()-u6;let jV=class tv{constructor(){tv.prototype.__init.call(this),tv.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){u6=a6(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){const t=Math.min(this._longestInteractionList.length-1,Math.floor(FV()/50));return this._longestInteractionList[t]}_processEntry(t){if(this._onBeforeProcessingEntry?.(t),!(t.interactionId||t.entryType==="first-input"))return;const n=this._longestInteractionList.at(-1);let r=this._longestInteractionMap.get(t.interactionId);if(r||this._longestInteractionList.length<Kg||t.duration>n._latency){if(r?t.duration>r._latency?(r.entries=[t],r._latency=t.duration):t.duration===r._latency&&t.startTime===r.entries[0].startTime&&r.entries.push(t):(r={id:t.interactionId,entries:[t],_latency:t.duration},this._longestInteractionMap.set(r.id,r),this._longestInteractionList.push(r)),this._longestInteractionList.sort((o,s)=>s._latency-o._latency),this._longestInteractionList.length>Kg){const o=this._longestInteractionList.splice(Kg);for(const s of o)this._longestInteractionMap.delete(s.id)}this._onAfterProcessingINPCandidate?.(r)}}};const l6=e=>{const t=Ke.requestIdleCallback||Ke.setTimeout;Ke.document?.visibilityState==="hidden"?e():(e=V0(e),mi("visibilitychange",e,{once:!0,capture:!0}),mi("pagehide",e,{once:!0,capture:!0}),t(()=>{e(),xp("visibilitychange",e,{capture:!0}),xp("pagehide",e,{capture:!0})}))},VV=[200,500],qV=40,WV=(e,t={})=>{if(!(globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return;const n=pf();Mh(()=>{HV();const r=hf("INP");let o;const s=j0(t,jV),a=f=>{l6(()=>{for(const p of f)s._processEntry(p);const d=s._estimateP98LongestInteraction();d&&d._latency!==r.value&&(r.value=d._latency,r.entries=d.entries,o())})},u=Pu("event",a,{durationThreshold:t.durationThreshold??qV});o=ff(e,r,VV,t.reportAllChanges),u&&(u.observe({type:"first-input",buffered:!0}),n.onHidden(()=>{a(u.takeRecords()),o(!0)}))})};let zV=class{_processEntry(t){this._onBeforeProcessingEntry?.(t)}};const GV=[2500,4e3],YV=(e,t={})=>{Mh(()=>{const n=pf(),r=hf("LCP");let o;const s=j0(t,zV),a=f=>{t.reportAllChanges||(f=f.slice(-1));for(const d of f)s._processEntry(d),d.startTime<n.firstHiddenTime&&(r.value=Math.max(d.startTime-Mu(),0),r.entries=[d],o())},u=Pu("largest-contentful-paint",a);if(u){o=ff(e,r,GV,t.reportAllChanges);const f=V0(()=>{a(u.takeRecords()),u.disconnect(),o(!0)}),d=p=>{p.isTrusted&&(l6(f),xp(p.type,d,{capture:!0}))};for(const p of["keydown","click","visibilitychange"])mi(p,d,{capture:!0})}})},KV=[800,1800],nv=e=>{Ke.document?.prerendering?Mh(()=>nv(e)):Ke.document?.readyState!=="complete"?addEventListener("load",()=>nv(e),!0):setTimeout(e)},ZV=(e,t={})=>{const n=hf("TTFB"),r=ff(e,n,KV,t.reportAllChanges);nv(()=>{const o=df();o&&(n.value=Math.max(o.responseStart-Mu(),0),n.entries=[o],r(!0))})},kl={},Cp={};let c6,f6,d6,p6;function h6(e,t=!1){return Ph("cls",e,XV,c6,t)}function g6(e,t=!1){return Ph("lcp",e,eq,f6,t)}function QV(e){return Ph("ttfb",e,tq,d6)}function JV(e){return Ph("inp",e,nq,p6)}function cu(e,t){return m6(e,t),Cp[e]||(rq(e),Cp[e]=!0),y6(e,t)}function gf(e,t){const n=kl[e];if(n?.length)for(const r of n)try{r(t)}catch(o){cf&&Ne.error(`Error while triggering instrumentation handler. 37Type: ${e} 38Name: ${Po(r)} 39Error:`,o)}}function XV(){return DV(e=>{gf("cls",{metric:e}),c6=e},{reportAllChanges:!0})}function eq(){return YV(e=>{gf("lcp",{metric:e}),f6=e},{reportAllChanges:!0})}function tq(){return ZV(e=>{gf("ttfb",{metric:e}),d6=e})}function nq(){return WV(e=>{gf("inp",{metric:e}),p6=e})}function Ph(e,t,n,r,o=!1){m6(e,t);let s;return Cp[e]||(s=n(),Cp[e]=!0),r&&t({metric:r}),y6(e,t,o?s:void 0)}function rq(e){const t={};e==="event"&&(t.durationThreshold=0),Pu(e,n=>{gf(e,{entries:n})},t)}function m6(e,t){kl[e]=kl[e]||[],kl[e].push(t)}function y6(e,t,n){return()=>{n&&n();const r=kl[e];
39if(!r)return;const o=r.indexOf(t);o!==-1&&r.splice(o,1)}}function oq(e){return"duration"in e}const iq=e=>{const t=n=>{(n.type==="pagehide"||Ke.document?.visibilityState==="hidden")&&e(n)};mi("visibilitychange",t,{capture:!0,once:!0}),mi("pagehide",t,{capture:!0,once:!0})};function Zg(e){return typeof e=="number"&&isFinite(e)}function $i(e,t,n,{...r}){const o=st(e).start_timestamp;return o&&o>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),L0(e,()=>{const s=Si({startTime:t,...r});return s&&s.end(n),s})}function q0(e){const t=Et();if(!t)return;const{name:n,transaction:r,attributes:o,startTime:s}=e,{release:a,environment:u,sendDefaultPii:f}=t.getOptions(),d=t.getIntegrationByName("Replay")?.getReplayId(),p=_t(),h=p.getUser(),y=h!==void 0?h.email||h.id||h.ip_address:void 0;let m;try{m=p.getScopeData().contexts.profile.profile_id}catch{}const v={release:a,environment:u,user:y||void 0,profile_id:m||void 0,replay_id:d||void 0,transaction:r,"user_agent.original":Ke.navigator?.userAgent,"client.address":f?"{{auto}}":void 0,...o};return Si({name:n,attributes:v,startTime:s,experimental:{standalone:!0}})}function mf(){return Ke.addEventListener&&Ke.performance}function qt(e){return e/1e3}function sq(e){let t="unknown",n="unknown",r="";for(const o of e){if(o==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(o))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=o}return r===e&&(t=r),{name:t,version:n}}function v6(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function _6(e,t){let n,r=!1;function o(u){!r&&n&&t(u,n),r=!0}iq(()=>{o("pagehide")});const s=e.on("beforeStartNavigationSpan",(u,f)=>{f?.isRedirect||(o("navigation"),s(),a())}),a=e.on("afterStartPageLoadSpan",u=>{n=u.spanContext().spanId,a()})}function Jn(e){return e&&((Kn()||performance.timeOrigin)+e)/1e3}function b6(e){const t={};if(e.nextHopProtocol!=null){const{name:n,version:r}=sq(e.nextHopProtocol);t["network.protocol.version"]=r,t["network.protocol.name"]=n}return Kn()||mf()?.timeOrigin?aq({...t,"http.request.redirect_start":Jn(e.redirectStart),"http.request.redirect_end":Jn(e.redirectEnd),"http.request.worker_start":Jn(e.workerStart),"http.request.fetch_start":Jn(e.fetchStart),"http.request.domain_lookup_start":Jn(e.domainLookupStart),"http.request.domain_lookup_end":Jn(e.domainLookupEnd),"http.request.connect_start":Jn(e.connectStart),"http.request.secure_connection_start":Jn(e.secureConnectionStart),"http.request.connection_end":Jn(e.connectEnd),"http.request.request_start":Jn(e.requestStart),"http.request.response_start":Jn(e.responseStart),"http.request.response_end":Jn(e.responseEnd),"http.request.time_to_first_byte":e.responseStart!=null?e.responseStart/1e3:void 0}):t}function aq(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!=null))}function uq(e){let t;try{t=e.getAllResponseHeaders()}catch(n){return cf&&Ne.error(n,"Failed to get xhr response headers",e),{}}return t?t.split(`\r 40`).reduce((n,r)=>{const[o,s]=r.split(": ");return s&&(n[o.toLowerCase()]=s),n},{}):{}}const TE=new WeakMap,Qg=new Map,w6={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function lq(e,t){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:o,shouldCreateSpanForRequest:s,enableHTTPTimings:a,tracePropagationTargets:u,onRequestSpanStart:f,onRequestSpanEnd:d}={...w6,...t},p=typeof s=="function"?s:v=>!0,h=v=>cq(v,u),y={},m=e.getOptions().propagateTraceparent;n&&(e.addEventProcessor(v=>(v.type==="transaction"&&v.spans&&v.spans.forEach(b=>{if(b.op==="http.client"){const S=Qg.get(b.span_id);S&&(b.timestamp=S/1e3,Qg.delete(b.span_id))}}),v)),o&&vF(v=>{if(v.response){const b=TE.get(v.response);b&&v.endTimestamp&&Qg.set(b,v.endTimestamp)}}),jx(v=>{const b=$V(v,p,h,y,{propagateTraceparent:m,onRequestSpanEnd:d});if(v.response&&v.fetchData.__span&&TE.set(v.response,v.fetchData.__span),b){const S=n6(v.fetchData.url),w=S?Ss(S).host:void 0;b.setAttributes({"http.url":S?gi(S):void 0,"server.address":w}),a&&IE(b),f?.(b,{headers:v.headers})}})),r&&Fx(v=>{const b=fq(v,p,h,y,m,d);b&&(a&&IE(b),f?.(b,{headers:r6(v.xhr.__sentry_xhr_v3__?.request_headers)}))})}function IE(e){const{url:t}=st(e).data;if(!t||typeof t!="string")return;const n=cu("resource",({entries:r})=>{r.forEach(o=>{wV(o)&&o.name.endsWith(t)&&(e.setAttributes(b6(o)),setTimeout(n))})})}function cq(e,t){const n=nf();if(n){let r,o;try{r=new URL(e,n),o=new URL(n).origin}catch{return!1}const s=r.origin===o;return t?hi(r.toString(),t)||s&&hi(r.pathname,t):s}else{const r=!!e.match(/^\/(?!\/)/);return t?hi(e,t):r}}function fq(e,t,n,r,o,s){const a=e.xhr,u=a?.[Ra];if(!a||a.__sentry_own_request__||!u)return;const{url:f,method:d}=u,p=pr()&&t(f);if(e.endTimestamp){const w=a.__sentry_xhr_span_id__;if(!w)return;const T=r[w];T&&(p&&u.status_code!==void 0&&(ix(T,u.status_code),T.end(),s?.(T,{headers:r6(uq(a)),error:e.error})),delete r[w]);return}const h=n6(f),y=Ss(h||f),m=gi(CF(f)),v=!!On(),b=p&&v?Si({name:`${d} ${m}`,attributes:{url:gi(f),type:"xhr","http.method":d,"http.url":h?gi(h):void 0,"server.address":y?.host,[Dt]:"auto.http.browser",[Bo]:"http.client",...y?.search&&{"http.query":y?.search},...y?.hash&&{"http.fragment":y?.hash}}}):new Ei;a.__sentry_xhr_span_id__=b.spanContext().spanId,r[a.__sentry_xhr_span_id__]=b,n(f)&&dq(a,pr()&&v?b:void 0,o);const S=Et();return S&&S.emit("beforeOutgoingRequestSpan",b,e),b}function dq(e,t,n){const{"sentry-trace":r,baggage:o,traceparent:s}=o6({span:t,propagateTraceparent:n});r&&pq(e,r,o,s)}function pq(e,t,n,r){const o=e.__sentry_xhr_v3__?.request_headers;if(!(o?.["sentry-trace"]||!e.setRequestHeader))try{if(e.setRequestHeader("sentry-trace",t),r&&!o?.traceparent&&e.setRequestHeader("traceparent",r),n){const s=o?.baggage;(!s||!bV(s))&&e.setRequestHeader("baggage",n)}}catch{}}const Bd={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},hq="heartbeatFailed",gq="idleTimeout",mq="finalTimeout",yq="externalFinish";function E6(e,t={}){const n=new Map;let r=!1,o,s=yq,a=!t.disableAutoFinish;const u=[],{idleTimeout:f=Bd.idleTimeout,finalTimeout:d=Bd.finalTimeout,childSpanTimeout:p=Bd.childSpanTimeout,beforeSpanEnd:h,trimIdleSpanEndTimestamp:y=!0}=t,m=Et();if(!m||!pr()){const k=new Ei,x={sample_rate:"0",sampled:"false",...wi(k)};return Rd(k,x),k}const v=_t(),b=On(),S=vq(e);S.end=new Proxy(S.end,{apply(k,x,O){if(h&&h(S),x instanceof Ei)return;const[M,...j]=O,V=M||Yt(),W=ws(V),Y=Cd(S).filter(ue=>ue!==S),ne=st(S);if(!Y.length||!y)return $(W),Reflect.apply(k,x,[W,...j]);const Z=m.getOptions().ignoreSpans,ae=Y?.reduce((ue,G)=>{const re=st(G);return!re.timestamp||Z&&Ip(re,Z)?ue:ue?Math.max(ue,re.timestamp):re.timestamp},void 0),ce=ne.start_timestamp,q=Math.min(ce?ce+d/1e3:1/0,Math.max(ce||-1/0,Math.min(W,ae||1/0)));return $(q),Reflect.apply(k,x,[q,...j])}});function w(){o&&(clearTimeout(o),o=void 0)}function T(k){w(),o=setTimeout(()=>{!r&&n.size===0&&a&&(s=gq,S.end(k))},f)}function I(k){o=setTimeout(()=>{!r&&a&&(s=hq,S.end(k))},p)}function C(k){w(),n.set(k,!0);const x=Yt();
40I(x+p/1e3)}function A(k){if(n.has(k)&&n.delete(k),n.size===0){const x=Yt();T(x+f/1e3)}}function $(k){r=!0,n.clear(),u.forEach(W=>W()),iu(v,b);const x=st(S),{start_timestamp:O}=x;if(!O)return;x.data[oc]||S.setAttribute(oc,s);const M=x.status;(!M||M==="unknown")&&S.setStatus({code:ox}),Ne.log(`[Tracing] Idle span "${x.op}" finished`);const j=Cd(S).filter(W=>W!==S);let V=0;j.forEach(W=>{W.isRecording()&&(W.setStatus({code:uu,message:"cancelled"}),W.end(k),Fe&&Ne.log("[Tracing] Cancelling span since span ended early",JSON.stringify(W,void 0,2)));const Y=st(W),{timestamp:ne=0,start_timestamp:Z=0}=Y,ae=Z<=k,ce=(d+f)/1e3,q=ne-Z<=ce;if(Fe){const ue=JSON.stringify(W,void 0,2);ae?q||Ne.log("[Tracing] Discarding span since it finished after idle span final timeout",ue):Ne.log("[Tracing] Discarding span since it happened after idle span was finished",ue)}(!q||!ae)&&(gU(S,W),V++)}),V>0&&S.setAttribute("sentry.idle_span_discarded_spans",V)}return u.push(m.on("spanStart",k=>{r||k===S||st(k).timestamp||k instanceof Lh&&k.isStandaloneSpan()||Cd(S).includes(k)&&C(k.spanContext().spanId)})),u.push(m.on("spanEnd",k=>{r||A(k.spanContext().spanId)})),u.push(m.on("idleSpanEnableAutoFinish",k=>{k===S&&(a=!0,T(),n.size&&I())})),t.disableAutoFinish||T(),setTimeout(()=>{r||(S.setStatus({code:uu,message:"deadline_exceeded"}),s=mq,S.end())},d),S}function vq(e){const t=Si(e);return iu(_t(),t),Fe&&Ne.log("[Tracing] Started span is an idle span"),t}function _q(){return!tF()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function bq(){return typeof window<"u"&&(!_q()||wq())}function wq(){return tt.process?.type==="renderer"}const Jg=[],Nd=new Map,da=new Map,Eq=60;function Sq(){if(mf()&&Kn()){const e=$q();return()=>{e()}}return()=>{}}const rv={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function $q(){return JV(Tq)}const Tq=({metric:e})=>{if(e.value==null)return;const t=qt(e.value);if(t>Eq)return;const n=e.entries.find(v=>v.duration===e.value&&rv[v.name]);if(!n)return;const{interactionId:r}=n,o=rv[n.name],s=qt(Kn()+n.startTime),a=On(),u=a?mn(a):void 0,f=r!=null?Nd.get(r):void 0,d=f?.span||u,p=d?st(d).description:_t().getScopeData().transactionName,h=f?.elementName||mr(n.target),y={[Dt]:"auto.http.browser.inp",[Bo]:`ui.interaction.${o}`,[ku]:n.duration},m=q0({name:h,transaction:p,attributes:y,startTime:s});m&&(m.addEvent("inp",{[uf]:"millisecond",[lf]:e.value}),m.end(s+t))};function Iq(){const e=Object.keys(rv);bq()&&e.forEach(o=>{Ke.addEventListener(o,t,{capture:!0,passive:!0})});function t(o){const s=o.target;if(!s)return;const a=mr(s),u=Math.round(o.timeStamp);if(da.set(u,a),da.size>50){const f=da.keys().next().value;f!==void 0&&da.delete(f)}}function n(o){const s=Math.round(o.startTime);let a=da.get(s);if(!a)for(let u=-5;u<=5;u++){const f=da.get(s+u);if(f){a=f;break}}return a||"<unknown>"}const r=({entries:o})=>{const s=On(),a=s&&mn(s);o.forEach(u=>{if(!oq(u))return;const f=u.interactionId;if(f==null||Nd.has(f))return;const d=u.target?mr(u.target):n(u);if(Jg.length>10){const p=Jg.shift();Nd.delete(p)}Jg.push(f),Nd.set(f,{span:a,elementName:d})})};cu("event",r),cu("first-input",r)}let AE=!1;function Aq(){if(AE)return;function e(){const t=On(),n=t&&mn(t);if(n){const r="internal_error";Fe&&Ne.log(`[Tracing] Root span: ${r} -> Global error occurred`),n.setStatus({code:uu,message:r})}}e.tag="sentry_tracingErrorCallback",AE=!0,Gx(e),Yx(e)}function xq(e){let t=0,n;if(!v6("layout-shift"))return;const r=h6(({metric:o})=>{const s=o.entries[o.entries.length-1];s&&(t=o.value,n=s)},!0);_6(e,(o,s)=>{Cq(t,n,s,o),r()})}function Cq(e,t,n,r){cf&&Ne.log(`Sending CLS span (${e})`);const o=t?qt((Kn()||0)+t.startTime):Yt(),s=_t().getScopeData().transactionName,a=t?mr(t.sources[0]?.node):"Layout shift",u={[Dt]:"auto.http.browser.cls",[Bo]:"ui.webvital.cls",[ku]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};
40t?.sources&&t.sources.forEach((d,p)=>{u[`cls.source.${p+1}`]=mr(d.node)});const f=q0({name:a,transaction:s,attributes:u,startTime:o});f&&(f.addEvent("cls",{[uf]:"",[lf]:e}),f.end(o))}function Rq(e){let t=0,n;if(!v6("largest-contentful-paint"))return;const r=g6(({metric:o})=>{const s=o.entries[o.entries.length-1];s&&(t=o.value,n=s)},!0);_6(e,(o,s)=>{Oq(t,n,s,o),r()})}function Oq(e,t,n,r){cf&&Ne.log(`Sending LCP span (${e})`);const o=qt((Kn()||0)+(t?.startTime||0)),s=_t().getScopeData().transactionName,a=t?mr(t.element):"Largest contentful paint",u={[Dt]:"auto.http.browser.lcp",[Bo]:"ui.webvital.lcp",[ku]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(u["lcp.element"]=mr(t.element)),t.id&&(u["lcp.id"]=t.id),t.url&&(u["lcp.url"]=t.url),t.loadTime!=null&&(u["lcp.loadTime"]=t.loadTime),t.renderTime!=null&&(u["lcp.renderTime"]=t.renderTime),t.size!=null&&(u["lcp.size"]=t.size));const f=q0({name:a,transaction:s,attributes:u,startTime:o});f&&(f.addEvent("lcp",{[uf]:"millisecond",[lf]:e}),f.end(o))}const kq=2147483647;let xE=0,wr={},Ln,Rp;function Lq({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){const r=mf();if(r&&Kn()){r.mark&&Ke.performance.mark("sentry-tracing-init");const o=t?Rq(n):Dq(),s=Uq(),a=e?xq(n):Nq();return()=>{o?.(),s(),a?.()}}return()=>{}}function Mq(){cu("longtask",({entries:e})=>{const t=On();if(!t)return;const{op:n,start_timestamp:r}=st(t);for(const o of e){const s=qt(Kn()+o.startTime),a=qt(o.duration);n==="navigation"&&r&&s<r||$i(t,s,s+a,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[Dt]:"auto.ui.browser.metrics"}})}})}function Pq(){new PerformanceObserver(e=>{const t=On();if(t)for(const n of e.getEntries()){if(!n.scripts[0])continue;const r=qt(Kn()+n.startTime),{start_timestamp:o,op:s}=st(t);if(s==="navigation"&&o&&r<o)continue;const a=qt(n.duration),u={[Dt]:"auto.ui.browser.metrics"},f=n.scripts[0],{invoker:d,invokerType:p,sourceURL:h,sourceFunctionName:y,sourceCharPosition:m}=f;u["browser.script.invoker"]=d,u["browser.script.invoker_type"]=p,h&&(u["code.filepath"]=h),y&&(u["code.function"]=y),m!==-1&&(u["browser.script.source_char_position"]=m),$i(t,r,r+a,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:u})}}).observe({type:"long-animation-frame",buffered:!0})}function Bq(){cu("event",({entries:e})=>{const t=On();if(t){for(const n of e)if(n.name==="click"){const r=qt(Kn()+n.startTime),o=qt(n.duration),s={name:mr(n.target),op:`ui.interaction.${n.name}`,startTime:r,attributes:{[Dt]:"auto.ui.browser.metrics"}},a=WA(n.target);a&&(s.attributes["ui.component_name"]=a),$i(t,r,r+o,s)}}})}function Nq(){return h6(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(wr.cls={value:e.value,unit:""},Rp=t)},!0)}function Dq(){return g6(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(wr.lcp={value:e.value,unit:"millisecond"},Ln=t)},!0)}function Uq(){return QV(({metric:e})=>{e.entries[e.entries.length-1]&&(wr.ttfb={value:e.value,unit:"millisecond"})})}function Hq(e,t){const n=mf(),r=Kn();if(!n?.getEntries||!r)return;const o=qt(r),s=n.getEntries(),{op:a,start_timestamp:u}=st(e);s.slice(xE).forEach(f=>{const d=qt(f.startTime),p=qt(Math.max(0,f.duration));if(!(a==="navigation"&&u&&o+d<u))switch(f.entryType){case"navigation":{qq(e,f,o);break}case"mark":case"paint":case"measure":{jq(e,f,d,p,o,t.ignorePerformanceApiSpans);const h=pf(),y=f.startTime<h.firstHiddenTime;f.name==="first-paint"&&y&&(wr.fp={value:f.startTime,unit:"millisecond"}),f.name==="first-contentful-paint"&&y&&(wr.fcp={value:f.startTime,unit:"millisecond"});break}case"resource":{Gq(e,f,f.name,d,p,o,t.ignoreResourceSpans);break}}}),xE=Math.max(s.length-1,0),Yq(e),a==="pageload"&&(Qq(wr),t.recordClsOnPageloadSpan||delete wr.cls,t.recordLcpOnPageloadSpan||delete wr.lcp,Object.entries(wr).forEach(([f,d])=>{eH(f,d.value,d.unit)}),e.setAttribute("performance.timeOrigin",o),e.setAttribute("performance.activationStart",Mu()),Kq(e,t)),Ln=void 0,Rp=void 0,wr={}}function Fq(e){if(e?.entryType==="measure")try{return e.detail.devtools.track==="Components â"}catch{return}}function jq(e,t,n,r,o,s){if(Fq(t)||["mark","measure"].includes(t.entryType)&&hi(t.name,s))return;const a=df(!1),u=qt(a?a.requestStart:0),f=o+Math.max(n,u),d=o+n,p=d+r,h={[Dt]:"auto.resource.browser.metrics"};f!==d&&(h["sentry.browser.measure_happened_before_request"]=!0,h["sentry.browser.measure_start_time"]=f),Vq(h,t),f<=p&&$i(e,f,p,{name:t.name,op:t.entryType,attributes:h})}function Vq(e,t){try{const n=t.detail;if(!n)return;if(typeof n=="object"){for(const[r,o]of Object.entries(n))if(o&&nu(o))e[`sentry.browser.measure.detail.${r}`]=o;else if(o!==void 0)try{e[`sentry.browser.measure.detail.${r}`]=JSON.stringify(o)}catch{}return}if(nu(n)){e["sentry.browser.measure.detail"]=n;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}function qq(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{Xf(e,t,r,n)}),Xf(e,t,"secureConnection",n,"TLS/SSL"),Xf(e,t,"fetch",n,"cache"),Xf
40(e,t,"domainLookup",n,"DNS"),zq(e,t,n)}function Xf(e,t,n,r,o=n){const s=Wq(n),a=t[s],u=t[`${n}Start`];!u||!a||$i(e,r+qt(u),r+qt(a),{op:`browser.${o}`,name:t.name,attributes:{[Dt]:"auto.ui.browser.metrics",...n==="redirect"&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{}}})}function Wq(e){return e==="secureConnection"?"connectEnd":e==="fetch"?"domainLookupStart":`${e}End`}function zq(e,t,n){const r=n+qt(t.requestStart),o=n+qt(t.responseEnd),s=n+qt(t.responseStart);t.responseEnd&&($i(e,r,o,{op:"browser.request",name:t.name,attributes:{[Dt]:"auto.ui.browser.metrics"}}),$i(e,s,o,{op:"browser.response",name:t.name,attributes:{[Dt]:"auto.ui.browser.metrics"}}))}function Gq(e,t,n,r,o,s,a){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const u=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(a?.includes(u))return;const f={[Dt]:"auto.resource.browser.metrics"},d=Ss(n);d.protocol&&(f["url.scheme"]=d.protocol.split(":").pop()),d.host&&(f["server.address"]=d.host),f["url.same_origin"]=n.includes(Ke.location.origin),Zq(t,f,[["responseStatus","http.response.status_code"],["transferSize","http.response_transfer_size"],["encodedBodySize","http.response_content_length"],["decodedBodySize","http.decoded_response_content_length"],["renderBlockingStatus","resource.render_blocking_status"],["deliveryType","http.response_delivery_type"]]);const p={...f,...b6(t)},h=s+r,y=h+o;$i(e,h,y,{name:n.replace(Ke.location.origin,""),op:u,attributes:p})}function Yq(e){const t=Ke.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),Zg(n.rtt)&&(wr["connection.rtt"]={value:n.rtt,unit:"millisecond"})),Zg(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),Zg(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}function Kq(e,t){Ln&&t.recordLcpOnPageloadSpan&&(Ln.element&&e.setAttribute("lcp.element",mr(Ln.element)),Ln.id&&e.setAttribute("lcp.id",Ln.id),Ln.url&&e.setAttribute("lcp.url",Ln.url.trim().slice(0,200)),Ln.loadTime!=null&&e.setAttribute("lcp.loadTime",Ln.loadTime),Ln.renderTime!=null&&e.setAttribute("lcp.renderTime",Ln.renderTime),e.setAttribute("lcp.size",Ln.size)),Rp?.sources&&t.recordClsOnPageloadSpan&&Rp.sources.forEach((n,r)=>e.setAttribute(`cls.source.${r+1}`,mr(n.node)))}function Zq(e,t,n){n.forEach(([r,o])=>{const s=e[r];s!=null&&(typeof s=="number"&&s<kq||typeof s=="string")&&(t[o]=s)})}function Qq(e){const t=df(!1);if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}function Jq(){return mf()&&Kn()?cu("element",Xq):()=>{}}const Xq=({entries:e})=>{const t=On(),n=t?mn(t):void 0,r=n?st(n).description:_t().getScopeData().transactionName;e.forEach(o=>{const s=o;if(!s.identifier)return;const a=s.name,u=s.renderTime,f=s.loadTime,[d,p]=f?[qt(f),"load-time"]:u?[qt(u),"render-time"]:[Yt(),"entry-emission"],h=a==="image-paint"?qt(Math.max(0,(u??0)-(f??0))):0,y={[Dt]:"auto.ui.browser.elementtiming",[Bo]:"ui.elementtiming",[qn]:"component","sentry.span_start_time_source":p,"sentry.transaction_name":r,"element.id":s.id,"element.type":s.element?.tagName?.toLowerCase()||"unknown","element.size":s.naturalWidth&&s.naturalHeight?`${s.naturalWidth}x${s.naturalHeight}`:void 0,"element.render_time":u,"element.load_time":f,"element.url":s.url||void 0,"element.identifier":s.identifier,"element.paint_type":a};rH({name:`element[${s.identifier}]`,attributes:y,startTime:d,onlyIfParent:!0},m=>{m.end(d+h)})})},eW="BrowserTracing",tW=/Googlebot|Google-InspectionTool|Storebot-Google|Bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Facebot|facebookexternalhit|LinkedInBot|Twitterbot|Applebot/i;function nW(){const e=nt.navigator;return e?.userAgent?tW.test(e.userAgent):!1}const rW={...Bd,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...w6},CE=((e={})=>{const t={name:void 0,source:void 0},n=nt.document,{enableInp:r,enableElementTiming:o,enableLongTask:s,enableLongAnimationFrame:a,_experiments:{enableInteractions:u,enableStandaloneClsSpans:f,enableStandaloneLcpSpans:d},beforeStartSpan:p,idleTimeout:h,finalTimeout:y,childSpanTimeout:m,markBackgroun
40dSpan:v,traceFetch:b,traceXHR:S,trackFetchStreamPerformance:w,shouldCreateSpanForRequest:T,enableHTTPTimings:I,ignoreResourceSpans:C,ignorePerformanceApiSpans:A,instrumentPageLoad:$,instrumentNavigation:k,detectRedirects:x,linkPreviousTrace:O,consistentTraceSampling:M,enableReportPageLoaded:j,onRequestSpanStart:V,onRequestSpanEnd:W}={...rW,...e},Y=nW();let ne,Z,ae;function ce(q,ue,G=!0){const re=ue.op==="pageload",Oe=ue.name,Ee=p?p(ue):ue,Pe=Ee.attributes||{};if(Oe!==Ee.name&&(Pe[qn]="custom",Ee.attributes=Pe),!G){const Q=Ks();Si({...Ee,startTime:Q}).end(Q);return}t.name=Ee.name,t.source=Pe[qn];const Ae=E6(Ee,{idleTimeout:h,finalTimeout:y,childSpanTimeout:m,disableAutoFinish:re,beforeSpanEnd:Q=>{ne?.(),Hq(Q,{recordClsOnPageloadSpan:!f,recordLcpOnPageloadSpan:!d,ignoreResourceSpans:C,ignorePerformanceApiSpans:A}),kE(q,void 0);const P=_t(),F=P.getPropagationContext();P.setPropagationContext({...F,traceId:Ae.spanContext().traceId,sampled:Mi(Ae),dsc:wi(Q)}),re&&(ae=void 0)},trimIdleSpanEndTimestamp:!j});re&&j&&(ae=Ae),kE(q,Ae);function le(){n&&["interactive","complete"].includes(n.readyState)&&q.emit("idleSpanEnableAutoFinish",Ae)}re&&!j&&n&&(n.addEventListener("readystatechange",()=>{le()}),le())}return{name:eW,setup(q){if(Y){Wn&&Ne.log("[Tracing] Skipping browserTracingIntegration setup for bot user agent.");return}if(Aq(),ne=Lq({recordClsStandaloneSpans:f||!1,recordLcpStandaloneSpans:d||!1,client:q}),r&&Sq(),o&&Jq(),a&&tt.PerformanceObserver&&PerformanceObserver.supportedEntryTypes?.includes("long-animation-frame")?Pq():s&&Mq(),u&&Bq(),x&&n){const G=()=>{Z=Yt()};addEventListener("click",G,{capture:!0}),addEventListener("keydown",G,{capture:!0,passive:!0})}function ue(){const G=ac(q);G&&!st(G).timestamp&&(Wn&&Ne.log(`[Tracing] Finishing current active span with op: ${st(G).op}`),G.setAttribute(oc,"cancelled"),G.end())}q.on("startNavigationSpan",(G,re)=>{if(Et()!==q)return;if(re?.isRedirect){Wn&&Ne.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),ce(q,{op:"navigation.redirect",...G},!1);return}Z=void 0,ue(),Ho().setPropagationContext({traceId:Mo(),sampleRand:Math.random(),propagationSpanId:pr()?void 0:Ro()});const Oe=_t();Oe.setPropagationContext({traceId:Mo(),sampleRand:Math.random(),propagationSpanId:pr()?void 0:Ro()}),Oe.setSDKProcessingMetadata({normalizedRequest:void 0}),ce(q,{op:"navigation",...G,parentSpan:null,forceTransaction:!0})}),q.on("startPageLoadSpan",(G,re={})=>{if(Et()!==q)return;ue();const Oe=re.sentryTrace||RE("sentry-trace")||OE("sentry-trace"),Ee=re.baggage||RE("baggage")||OE("baggage"),Pe=aU(Oe,Ee),Ae=_t();Ae.setPropagationContext(Pe),pr()||(Ae.getPropagationContext().propagationSpanId=Ro()),Ae.setSDKProcessingMetadata({normalizedRequest:D0()}),ce(q,{op:"pageload",...G})}),q.on("endPageloadSpan",()=>{j&&ae&&(ae.setAttribute(oc,"reportPageLoaded"),ae.end())})},afterAllSetup(q){if(Y)return;let ue=nf();if(O!=="off"&&mV(q,{linkPreviousTrace:O,consistentTraceSampling:M}),nt.location){if($){const G=Kn();oW(q,{name:nt.location.pathname,startTime:G?G/1e3:void 0,attributes:{[qn]:"url",[Dt]:"auto.pageload.browser"}})}k&&F0(({to:G,from:re})=>{if(re===void 0&&ue?.indexOf(G)!==-1){ue=void 0;return}ue=void 0;const Oe=Wx(G),Ee=ac(q),Pe=Ee&&x&&sW(Ee,Z);S6(q,{name:Oe?.pathname||nt.location.pathname,attributes:{[qn]:"url",[Dt]:"auto.navigation.browser"}},{url:G,isRedirect:Pe})})}v&&pV(),u&&iW(q,h,y,m,t),r&&Iq(),lq(q,{traceFetch:b,traceXHR:S,trackFetchStreamPerformance:w,tracePropagationTargets:q.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:T,enableHTTPTimings:I,onRequestSpanStart:V,onRequestSpanEnd:W})}}});function oW(e,t,n){e.emit("startPageLoadSpan",t,n),_t().setTransactionName(t.name);const r=ac(e);return r&&e.emit("afterStartPageLoadSpan",r),r}function S6(e,t,n){const{url:r,isRedirect:o}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:o}),e.emit("startNavigationSpan",t,{isRedirect:o});const s=_t();return s.setTransactionName(t.name),r&&!o&&s.setSDKProcessingMetadata({normalizedRequest:{...D0(),url:r}}),ac(e)}function RE(e){return nt.document?.querySelector(`meta[name=${e}]`)?.getAttribute("content")||void 0}function OE(e){return nt.performance?.getEntriesByType?.("navigation")[0]?.serverTiming?.find(t=>t.name===e)?.description}function iW(e,t,n,r,o){const s=nt.document;let a;const u=()=>{const f="ui.action.click",d=ac(e);if(d){const p=st(d).op;
40if(["navigation","pageload"].includes(p)){Wn&&Ne.warn(`[Tracing] Did not create ${f} span because a pageload or navigation span is in progress.`);return}}if(a&&(a.setAttribute(oc,"interactionInterrupted"),a.end(),a=void 0),!o.name){Wn&&Ne.warn(`[Tracing] Did not create ${f} transaction because _latestRouteName is missing.`);return}a=E6({name:o.name,op:f,attributes:{[qn]:o.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r})};s&&addEventListener("click",u,{capture:!0})}const $6="_sentry_idleSpan";function ac(e){return e[$6]}function kE(e,t){Bn(e,$6,t)}const LE=1.5;function sW(e,t){const n=st(e),r=Ks(),o=n.start_timestamp;return!(r-o>LE||t&&r-t<=LE)}function aW(e={}){if(!e.router)return CE(e);const t=CE({...e,instrumentNavigation:!1}),{router:n,instrumentNavigation:r=!0,instrumentPageLoad:o=!0,routeLabel:s="name"}=e;return{...t,afterAllSetup(a){t.afterAllSetup(a),fV(n,{routeLabel:s,instrumentNavigation:r,instrumentPageLoad:o},u=>{S6(a,u)})}}}const T6=new Map,ME=new Set;function uW(e){if(tt._sentryModuleMetadata)for(const t of Object.keys(tt._sentryModuleMetadata)){const n=tt._sentryModuleMetadata[t];if(ME.has(t))continue;ME.add(t);const r=e(t);for(const o of r.reverse())if(o.filename){T6.set(o.filename,n);break}}}function lW(e,t){return uW(e),T6.get(t)}function cW(e,t){t.exception?.values?.forEach(n=>{n.stacktrace?.frames?.forEach(r=>{if(!r.filename||r.module_metadata)return;const o=lW(e,r.filename);o&&(r.module_metadata=o)})})}function fW(e){e.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(n=>{delete n.module_metadata})})}const dW=e=>({name:"ThirdPartyErrorsFilter",setup(t){t.on("beforeEnvelope",n=>{Tp(n,(r,o)=>{if(o==="event"){const s=Array.isArray(r)?r[1]:void 0;s&&(fW(s),r[1]=s)}})}),t.on("applyFrameMetadata",n=>{if(n.type)return;const r=t.getOptions().stackParser;cW(r,n)})},processEvent(t){const n=hW(t,e.ignoreSentryInternalFrames);if(n){const r=e.behaviour==="drop-error-if-contains-third-party-frames"||e.behaviour==="apply-tag-if-contains-third-party-frames"?"some":"every";if(n[r](o=>!o.some(s=>e.filterKeys.includes(s)))){if(e.behaviour==="drop-error-if-contains-third-party-frames"||e.behaviour==="drop-error-if-exclusively-contains-third-party-frames")return null;t.tags={...t.tags,third_party_code:!0}}}return t}});function pW(e,t){if(t!==0||!e.context_line||!e.filename||!e.filename.includes("sentry")||!e.filename.includes("helpers")||!e.context_line.includes(mW))return!1;if(e.pre_context){const n=e.pre_context.length;for(let r=0;r<n;r++)if(e.pre_context[r]?.includes(gW))return!0}return!1}function hW(e,t){const n=My(e);if(n)return n.filter((r,o)=>!r.filename||r.lineno==null&&r.colno==null&&r.instruction_addr==null?!1:!t||!pW(r,o)).map(r=>r.module_metadata?Object.keys(r.module_metadata).filter(o=>o.startsWith(PE)).map(o=>o.slice(PE.length)):[])}const PE="_sentryBundlerPluginAppKey:",gW="Attempt to invoke user-land function",mW="fn.apply(this, wrappedArguments)",yW="pl-front";function vW(e,t,n){if(!n?.dsn)return;const r=n.beforeSend;cV({app:e,...n,tracesSampleRate:n.sampleRate,beforeSend:(o,s)=>{const a=bW(o,s);return a?r?r(a,s):a:null},integrations:o=>{const s=o.filter(a=>a.name!=="BrowserSession");return s.push(aW()),t&&s.push(dW({filterKeys:[t,yW,...n.widgets?n.widgets:[]],behaviour:"drop-error-if-contains-third-party-frames"})),s}})}function _W(e){YN(_t(),e)}function bW(e,t){const n=t?.originalException;let r=e.message??"";typeof n=="string"&&(r=n),n?.message&&(r=n.message);const o=n?.name??"";return/Non-Error promise rejection captured/i.test(r)||/Failed to fetch dynamically imported module/i.test(r)||/Importing a module script failed/i.test(r)||o==="AbortError"||/AbortError/i.test(r)||/Event `(Event|CustomEvent)`.*captured as exception/i.test(r)||/\[AdBlock\]/i.test(r)?null:e}function wW(e){var t=window.location.origin||window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"");return e.indexOf(t)>-1&&(e=e.replace(t+"/","")),e}function EW(e){return e===void 0&&(e=""),e==="<anonymous>"&&(e=""),e}function SW(e){return e?window.location.href.indexOf(e)===0:!1}function $W(e){return e.map(function(t){return t.functionName&&(t.functionName=TW(t.functionName)),t})}function TW(e){var t=e.split("/");return t.length>1?e=["Object",t[t.length-1]].join("."):e=t[0],e=e.replace(/.<$/gi,".<anonymous>"),e=e.replace(/^Anonymous function$/,"<anonymous>"),t=e.split("."),t.length>1?e=t[t.length-1]:e=t[0],e}function IW(e){if(e.length===0)return!1;if(e.length===1){var t=e[0];return"lineNumber"in t}return!0}function AW(e,t){var n=t.error,r=t.filename,o=t.lineno,s=t.colno,a=[];if(n)try{a=e.parse(n)}catch{}IW(a)||(a=[{fileName:r,lineNumber:o,columnNumber:s}]);var u=$W(a);return u.map(function(f){var d=f.fileName,p=f.lineNumber,h=f.columnNumber,y=f.functionName,m=y===void 0?"<anonymous>":y;if(!d&&!p)return{};
40if(!h&&!p)return{};var v=EW(d),b=wW(v);return SW(v)&&(b="(inline script)"),{abs_path:d,filename:b,function:m,lineno:p,colno:h}})}function xW(e){return e.filter(function(t){var n=t.filename,r=t.lineno;return typeof n<"u"&&typeof r<"u"})}function CW(e){var t=this.constructor;return this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){return t.reject(n)})})}function RW(e){var t=this;return new t(function(n,r){if(!(e&&typeof e.length<"u"))return r(new TypeError(typeof e+" "+e+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var o=Array.prototype.slice.call(e);if(o.length===0)return n([]);var s=o.length;function a(f,d){if(d&&(typeof d=="object"||typeof d=="function")){var p=d.then;if(typeof p=="function"){p.call(d,function(h){a(f,h)},function(h){o[f]={status:"rejected",reason:h},--s===0&&n(o)});return}}o[f]={status:"fulfilled",value:d},--s===0&&n(o)}for(var u=0;u<o.length;u++)a(u,o[u])})}function I6(e,t){this.name="AggregateError",this.errors=e,this.message=t||""}I6.prototype=Error.prototype;function OW(e){var t=this;return new t(function(n,r){if(!(e&&typeof e.length<"u"))return r(new TypeError("Promise.any accepts an array"));var o=Array.prototype.slice.call(e);if(o.length===0)return r();for(var s=[],a=0;a<o.length;a++)try{t.resolve(o[a]).then(n).catch(function(u){s.push(u),s.length===o.length&&r(new I6(s,"All promises were rejected"))})}catch(u){r(u)}})}var kW=setTimeout;function A6(e){return!!(e&&typeof e.length<"u")}function LW(){}function MW(e,t){return function(){e.apply(t,arguments)}}function Bt(e){if(!(this instanceof Bt))throw new TypeError("Promises must be constructed via new");if(typeof e!="function")throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],C6(e,this)}function x6(e,t){for(;e._state===3;)e=e._value;if(e._state===0){e._deferreds.push(t);return}e._handled=!0,Bt._immediateFn(function(){var n=e._state===1?t.onFulfilled:t.onRejected;if(n===null){(e._state===1?ov:uc)(t.promise,e._value);return}var r;try{r=n(e._value)}catch(o){uc(t.promise,o);return}ov(t.promise,r)})}function ov(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&(typeof t=="object"||typeof t=="function")){var n=t.then;if(t instanceof Bt){e._state=3,e._value=t,iv(e);return}else if(typeof n=="function"){C6(MW(n,t),e);return}}e._state=1,e._value=t,iv(e)}catch(r){uc(e,r)}}function uc(e,t){e._state=2,e._value=t,iv(e)}function iv(e){e._state===2&&e._deferreds.length===0&&Bt._immediateFn(function(){e._handled||Bt._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)x6(e,e._deferreds[t]);e._deferreds=null}function PW(e,t,n){this.onFulfilled=typeof e=="function"?e:null,this.onRejected=typeof t=="function"?t:null,this.promise=n}function C6(e,t){var n=!1;try{e(function(r){n||(n=!0,ov(t,r))},function(r){n||(n=!0,uc(t,r))})}catch(r){if(n)return;n=!0,uc(t,r)}}Bt.prototype.catch=function(e){return this.then(null,e)};Bt.prototype.then=function(e,t){var n=new this.constructor(LW);return x6(this,new PW(e,t,n)),n};Bt.prototype.finally=CW;Bt.all=function(e){return new Bt(function(t,n){if(!A6(e))return n(new TypeError("Promise.all accepts an array"));var r=Array.prototype.slice.call(e);if(r.length===0)return t([]);var o=r.length;function s(u,f){try{if(f&&(typeof f=="object"||typeof f=="function")){var d=f.then;if(typeof d=="function"){d.call(f,function(p){s(u,p)},n);return}}r[u]=f,--o===0&&t(r)}catch(p){n(p)}}for(var a=0;a<r.length;a++)s(a,r[a])})};Bt.any=OW;Bt.allSettled=RW;Bt.resolve=function(e){return e&&typeof e=="object"&&e.constructor===Bt?e:new Bt(function(t){t(e)})};Bt.reject=function(e){return new Bt(function(t,n){n(e)})};Bt.race=function(e){return new Bt(function(t,n){if(!A6(e))return n(new TypeError("Promise.race accepts an array"));for(var r=0,o=e.length;r<o;r++)Bt.resolve(e[r]).then(t,n)})};Bt._immediateFn=typeof setImmediate=="function"&&function(e){setImmediate(e)}||function(e){kW(e,0)};Bt._unhandledRejectionFn=function(e){typeof console<"u"&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var Op={};Ds?Op=window:typeof self<"u"&&(Op=self);var Ns="Promise"in Op?Op.Promise:Bt,R6=[].slice,Ds=typeof window<"u",to=Ds&&typeof performance<"u"?performance:{};function BW(){var e=new window.XMLHttpRequest;return"withCredentials"in e}var O6=[];for(var ed=0;ed<256;++ed)O6[ed]=(ed+256).toString(16).substr(1);function NW(e){for(var t=[],n=0;n<e.length;
40n++)t.push(O6[e[n]]);return t.join("")}var Xg=new Uint8Array(16);function DW(){return typeof crypto<"u"&&typeof crypto.getRandomValues=="function"?crypto.getRandomValues(Xg):typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"?msCrypto.getRandomValues(Xg):Xg}function fu(e){var t=NW(DW());return t.substr(0,e)}function UW(e){var t="00",n="00",r="01";if(e&&e.traceId&&e.id&&e.parentId){var o=e.sampled?r:n,s=e.sampled?e.id:e.parentId;return t+"-"+e.traceId+"-"+s+"-"+o}}function HW(e){var t=/^([\da-f]{2})-([\da-f]{32})-([\da-f]{16})-([\da-f]{2})$/.exec(e);if(t){var n=t[4],r=n!=="00";return{traceId:t[2],id:t[3],sampled:r}}}function FW(e){return/^[\da-f]{2}-[\da-f]{32}-[\da-f]{16}-[\da-f]{2}$/.test(e)&&e.slice(3,35)!=="00000000000000000000000000000000"&&e.slice(36,52)!=="0000000000000000"}function jW(e){var t=e.sampleRate;if(!(typeof t!="number"||String(t).length>256)){var n="es",r="=";return""+n+r+"s:"+t}}function BE(e,t,n){typeof e.setRequestHeader=="function"?e.setRequestHeader(t,n):e.headers&&typeof e.headers.append=="function"?e.headers.append(t,n):e[t]=n}function sv(e,t){var n=!1;return typeof t=="string"?n=e===t:t&&typeof t.test=="function"?n=t.test(e):Array.isArray(t)&&t.forEach(function(r){n||(n=sv(e,r))}),n}function VW(){return Ds&&typeof Set=="function"&&typeof JSON.stringify=="function"&&to&&typeof to.now=="function"&&BW()}function W0(e,t,n){if(!(!n||!e)){var r=L6(e),o=typeof t;return t!=null&&o!=="boolean"&&o!=="number"&&(t=String(t)),n[r]=t,n}}function qW(e){e===void 0&&(e=[]);for(var t=[],n=", ",r=";",o=0;o<e.length;o++){var s=e[o],a=s.name,u=s.duration,f=s.description,d=a;f&&(d+=r+"desc="+f),u&&(d+=r+"dur="+u),t.push(d)}return t.join(n)}function k6(e){return e&&e.split("?")[0]}function em(e){return e!==null&&typeof e=="object"}function WW(e){return typeof e=="function"}function z0(e,t,n){for(var r=0,o=t.length;r<o;++r){var s=t[r];if(!(!em(s)&&!WW(s)))for(var a=Object.keys(s),u=0,f=a.length;u<f;u++){var d=a[u],p=s[d];n&&em(p)?(em(e[d])||(e[d]=Array.isArray(p)?[]:{}),z0(e[d],[p],!1)):e[d]=p}}return e}function zW(){if(typeof document<"u")for(var e=document.getElementsByTagName("script"),t=0,n=e.length;t<n;t++){var r=e[t];if(r.src.indexOf("elastic")>0)return r}}function GW(){if(typeof document<"u"){var e=document.currentScript;return e||zW()}}function Us(){return z0(Object.create(null),R6.call(arguments),!1)}function Bh(){return z0(Object.create(null),R6.call(arguments),!0)}function av(e){return typeof e>"u"}function kp(){}function L6(e){return e.replace(/[.*"]/g,"_")}function M6(e,t){for(var n=null,r=0;r<e.length;r++){var o=e[r];t&&t(o.type)&&(!n||n._end<o._end)&&(n=o)}return n}function YW(e){return M6(e,function(t){return String(t).indexOf("external")===-1})}function KW(e){return M6(e,function(t){return String(t).indexOf("external")!==-1})}function ZW(e){for(var t=e[0],n=1;n<e.length;n++){var r=e[n];t._start>r._start&&(t=r)}return t}function yi(){return to.now()}function uv(e){return typeof e=="number"&&e>=0?e:yi()}function P6(e,t){return av(t)||av(e)?null:parseInt(t-e)}function NE(e){Ns.resolve().then(e)}function B6(){return typeof to.getEntriesByType=="function"}function lv(e){return typeof PerformanceObserver<"u"&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.indexOf(e)>=0}function N6(){return"interactionCount"in performance}function QW(){var e="_elastic_inspect_beacon_";if(sessionStorage.getItem(e)!=null)return!0;if(!window.URL||!window.URLSearchParams)return!1;try{var t=new URL(window.location.href),n=t.searchParams.has(e);return n&&sessionStorage.setItem(e,!0),n}catch{}return!1}function G0(e){return e.redirectStart>0}function JW(e,t){switch(t){case"http:":return e==="80";case"https:":return e==="443"}return!0}var XW=[["#","hash"],["?","query"],["/","path"],["@","auth",1],[NaN,"host",void 0,1]],ez=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\S\s]*)/i,du=(function(){function e(n){var r=this.extractProtocol(n||""),o=r.protocol,s=r.address,a=r.slashes,u=!o&&!a,f=this.getLocation(),d=XW.slice();s=s.replace("\\","/"),a||(d[2]=[NaN,"path"]);for(var p,h=0;h<d.length;h++){var y=d[h],m=y[0],v=y[1];if(typeof m=="string"){if(p=s.indexOf(m),~p){var b=y[2];if(b){var S=s.lastIndexOf(m);p=Math.max(p,S),this[v]=s.slice(0,p),s=s.slice(p+b)}else this[v]=s.slice(p),s=s.slice(0,p)}}else this[v]=s,s="";this[v]=this[v]||u&&y[3]&&f[v]||"",y[3]&&(this[v]=this[v].toLowerCase())}if(u&&this.path.charAt(0)!=="/"&&(this.path="/"+this.path),this.relative=u,this.protocol=o||f.protocol,this.hostname=this.host,this.port="",/:\d+$/.test(this.host)){var w=this.host.split(":"),T=w.pop(),I=w.join(":");JW(T,this.protocol)?this.host=I:this.port=T,this.hostname=I}this.origin=this.protocol&&this.host&&this.protocol!=="file:"?this.protocol+"//"+this.host:"null",this.href=this.toString()}var t=e.prototype;return t.toString=function(){var n=this.protocol;if(n+="//",this.auth){var r="[REDACTED]",o=this.auth.split(":"),s=o[0]?r:"",a=o[1]?":"+r:"";n+=s+a+"@"}return n+=this.host,n+=this.path,n+=this.query,n+=this.hash,n},t.getLocation=function(){var n={};return Ds&&(n=window),n.location},t.extractProtocol=function(n){var r=ez.exec(n);return{protocol:r[1]?r[1].toLowerCase():"",slashes:!!r[2],address:r[3]}},e})();function tz(e,t){t===void 0&&(t=2);for(var n=new du(e),r=n.query,o=n.path,s=o.substring(1).split("/"),a=":id",u="*",f=/\W|_/g,d=/[0-9]/g,p=/[a-z]/g,h=/[A-Z]/g,y=[],m=!1,v=0;v<s.length;v++){var b=s[v];if(m||v>t-1){b&&y.push(u);break}var S=(b.match(f)||[]).length;if(S>=2){y.push(a),m=!0;continue}var w=(b.match(d)||[]).length;if(w>3||b.length>3&&w/b.length>=.3){y.push(a),m=!0;continue}var T=(b.match(h)||[]).length,I=(b.match(p)||[]).length,C=I/b.length,A=T/b.length;if(b.length>5&&(A>.3&&A<.6||C>.3&&C<.6)){y.push(a),m=!0;continue}b&&y.push(b)}var $="/"+(y.length>=2?y.join("/"):y.join(""))+(r?"?{query}":"");return $}var ja="schedule",vi="invoke",DE="addEventListener",nz=["link","css","script","img","xmlhttprequest","fetch","beacon","iframe"],rz=5e3,tm=300*1e3,D6=1e3,Pn="page-load",oz="route-change",U6="custom",H6="user-interaction",cv="http-request",fv="temporary",Dd="Unknown",dv="page-exit",UE=[Pn,oz,H6,cv,U6,fv],iz="success",sz="failure",az="unknown",uz=60,lz="transaction:start",F6="transaction:end",j6="config:change",pv="queue:flush",Y0="queue:add_transaction",Lp="transaction:ignore",Va="xmlhttprequest",qa="fetch",Wa="history",V6="eventtarget",q6="click",W6="error",cz=":before",z6=":after",HE="elastic_apm_config",lc="longtask",fz="paint",dz="measure",pz="navigation",hz="resource",gz="first-contentful-paint",G6="largest-contentful-paint",Nh="first-input",hv="layout-shift",mz="event",rl="errors",ol="transactions",ln="ConfigService",_i="LoggingService",as="TransactionService",yf="ApmServer",Y6="PerformanceMonitoring",gv="ErrorLogging",K0=".truncated",hn=1024,yz=30*6e4,K6=1e4,vz=["tags"];function _z(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var bz=91,wz=93,Ez="external",Sz="resource",$z="hard-navigation";function Tz(e,t){return e===""&&(e=t==="http:"?"80":t==="https:"?"443":""),e}function Z6(e){var t=e.transferSize,n=e.encodedBodySize,r=e.decodedBodySize,o=e.serverTiming,s={transfer_size:t,encoded_body_size:n,decoded_body_size:r},a=qW(o);return a&&(s.headers={"server-timing":a}),s}function Z0(e){var t=e.port,n=e.protocol,r=e.hostname,o=Tz(t,n),s=r.charCodeAt(0)===bz&&r.charCodeAt(r.length-1)===wz,a=r;return s&&(a=r.slice(1,-1)),{service:{resource:r+":"+o,name:"",type:""},address:a,port:Number(o)}}function Iz(e){var t=e.entry,n=e.url,r=new du(n),o=Z0(r);return{http:{url:n,response:Z6(t)},destination:o}}function Az(e){var t=e.url,n=e.method,r=e.target,o=e.response,s=new du(t),a=Z0(s),u={http:{method:n,url:s.href},destination:a},f;return r&&typeof r.status<"u"?f=r.status:o&&(f=o.status),u.http.status_code=f,u}function xz(e){var t=e.url,n=new du(t),r=Z0(n);return{destination:r}}function Q6(){return{page:{referer:document.referrer,url:location.href}}}function Cz(e,t){if(t){var n=e.type,r;switch(n){case Ez:r=Az(t);break;case Sz:r=Iz(t);break;case $z:r=xz(t);break}e.addContext(r)}}function Rz(e,t){var n=t===void 0?{}:t;n.tags;var r=_z(n,vz),o=Q6(),s={};if(e.type===dv)e.ensureContext(),e.context.page&&e.context.page.url&&(o.page.url=e.context.page.url);else if(e.type===Pn&&B6()){var a=to.getEntriesByType(pz);a&&a.length>0&&(s={response:Z6(a[0])})}e.addContext(o,s,r)}
40var Oz={service:{name:[hn,!0],version:!0,agent:{version:[hn,!0]},environment:!0},labels:{"*":!0}},FE={"*":!0,headers:{"*":!0}},kz={address:[hn],service:{"*":[hn,!0]}},Q0={user:{id:!0,email:!0,username:!0},tags:{"*":!0},http:{response:FE},destination:kz,response:FE},Lz={name:[hn,!0],type:[hn,!0],id:[hn,!0],trace_id:[hn,!0],parent_id:[hn,!0],transaction_id:[hn,!0],subtype:!0,action:!0,context:Q0},Mz={name:!0,parent_id:!0,type:[hn,!0],id:[hn,!0],trace_id:[hn,!0],span_count:{started:[hn,!0]},context:Q0},Pz={id:[hn,!0],trace_id:!0,transaction_id:!0,parent_id:!0,culprit:!0,exception:{type:!0},transaction:{type:!0},context:Q0};function Bz(e,t,n,r){return t===void 0&&(t=hn),n===void 0&&(n=!1),r===void 0&&(r="N/A"),n&&J6(e)&&(e=r),typeof e=="string"?e.substring(0,t):e}function J6(e){return e==null||e===""||typeof e>"u"}function jE(e,t,n){var r=Bz(e[t],n[0],n[1]);if(J6(r)){delete e[t];return}e[t]=r}function cc(e,t,n){e===void 0&&(e={}),n===void 0&&(n=t);for(var r=Object.keys(e),o=[],s=function(){var u=r[a],f=e[u]===!0?o:e[u];Array.isArray(f)?u==="*"?Object.keys(n).forEach(function(d){return jE(n,d,f)}):jE(n,u,f):cc(f,t,n[u])},a=0;a<r.length;a++)s();return t}function Nz(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ud={exports:{}},Hd={exports:{}},Dz=Hd.exports,VE;function Uz(){return VE||(VE=1,(function(e,t){(function(n,r){e.exports=r()})(Dz,function(){function n(o){return!isNaN(parseFloat(o))&&isFinite(o)}function r(o,s,a,u,f,d){o!==void 0&&this.setFunctionName(o),s!==void 0&&this.setArgs(s),a!==void 0&&this.setFileName(a),u!==void 0&&this.setLineNumber(u),f!==void 0&&this.setColumnNumber(f),d!==void 0&&this.setSource(d)}return r.prototype={getFunctionName:function(){return this.functionName},setFunctionName:function(o){this.functionName=String(o)},getArgs:function(){return this.args},setArgs:function(o){if(Object.prototype.toString.call(o)!=="[object Array]")throw new TypeError("Args must be an Array");this.args=o},getFileName:function(){return this.fileName},setFileName:function(o){this.fileName=String(o)},getLineNumber:function(){return this.lineNumber},setLineNumber:function(o){if(!n(o))throw new TypeError("Line Number must be a Number");this.lineNumber=Number(o)},getColumnNumber:function(){return this.columnNumber},setColumnNumber:function(o){if(!n(o))throw new TypeError("Column Number must be a Number");this.columnNumber=Number(o)},getSource:function(){return this.source},setSource:function(o){this.source=String(o)},toString:function(){var o=this.getFunctionName()||"{anonymous}",s="("+(this.getArgs()||[]).join(",")+")",a=this.getFileName()?"@"+this.getFileName():"",u=n(this.getLineNumber())?":"+this.getLineNumber():"",f=n(this.getColumnNumber())?":"+this.getColumnNumber():"";return o+s+a+u+f}},r})})(Hd)),Hd.exports}var Hz=Ud.exports,qE;function Fz(){return qE||(qE=1,(function(e,t){(function(n,r){e.exports=r(Uz())})(Hz,function(n){var r=/(^|@)\S+\:\d+/,o=/^\s*at .*(\S+\:\d+|\(native\))/m,s=/^(eval@)?(\[native code\])?$/;function a(d,p,h){if(typeof Array.prototype.map=="function")return d.map(p,h);for(var y=new Array(d.length),m=0;m<d.length;m++)y[m]=p.call(h,d[m]);return y}function u(d,p,h){if(typeof Array.prototype.filter=="function")return d.filter(p,h);for(var y=[],m=0;m<d.length;m++)p.call(h,d[m])&&y.push(d[m]);return y}function f(d,p){if(typeof Array.prototype.indexOf=="function")return d.indexOf(p);for(var h=0;h<d.length;h++)if(d[h]===p)return h;return-1}return{parse:function(d){if(typeof d.stacktrace<"u"||typeof d["opera#sourceloc"]<"u")return this.parseOpera(d);if(d.stack&&d.stack.match(o))return this.parseV8OrIE(d);if(d.stack)return this.parseFFOrSafari(d);throw new Error("Cannot parse given Error object")},extractLocation:function(d){if(d.indexOf(":")===-1)return[d];var p=/(.+?)(?:\:(\d+))?(?:\:(\d+))?$/,h=p.exec(d.replace(/[\(\)]/g,""));return[h[1],h[2]||void 0,h[3]||void 0]},parseV8OrIE:function(d){var p=u(d.stack.split(` 41`),function(h){return!!h.match(o)},this);return a(p,function(h){h.indexOf("(eval ")>-1&&(h=h.replace(/eval code/g,"eval").replace(/(\(eval at [^\()]*)|(\)\,.*$)/g,""));var y=h.replace(/^\s+/,"").replace(/\(eval code/g,"(").split(/\s+/).slice(1),m=this.extractLocation(y.pop()),v=y.join(" ")||void 0,b=f(["eval","<anonymous>"],m[0])>-1?void 0:m[0];return new n(v,void 0,b,m[1],m[2],h)},this)},parseFFOrSafari:function(d){var p=u(d.stack.split(` 42`),function(h){return!h.match(s)},this);return a(p,function(h){if(h.indexOf(" > eval")>-1&&(h=h.replace(/ line (\d+)(?: > eval line \d+)* > eval\:\d+\:\d+/g,":$1")),h.indexOf("@")===-1&&h.indexOf(":")===-1)return new n(h);var y=h.split("@"),m=this.extractLocation(y.pop()),v=y.join("@")||void 0;return new n(v,void 0,m[0],m[1],m[2],h)},this)},parseOpera:function(d){return!d.stacktrace||d.message.indexOf(` 43`)>-1&&d.message.split(` 44`).length>d.stacktrace.split(` 45`).length?this.parseOpera9(d):d.stack?this.parseOpera11(d):this.parseOpera10(d)},parseOpera9:function(d){for(var p=/Line (\d+).*script (?:in )?(\S+)/i,h=d.message.split(` 46`),y=[],m=2,v=h.length;m<v;m+=2){var b=p.exec(h[m]);b&&y.push(new n(void 0,void 0,b[2],b[1],void 0,h[m]))}return y},parseOpera10:function(d){for(var p=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,h=d.stacktrace.split(` 47`),y=[],m=0,v=h.length;m<v;m+=2){var b=p.exec(h[m]);b&&y.push(new n(b[3]||void 0,void 0,b[2],b[1],void 0,h[m]))}return y},parseOpera11:function(d){var p=u(d.stack.split(` 48`),function(h){return!!h.match(r)&&!h.match(/^Error created at/)},this);return a(p,function(h){var y=h.split("@"),m=this.extractLocation(y.pop()),v=y.shift()||"",b=v.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^\)]*\)/g,"")||void 0,S;v.match(/\(([^\)]*)\)/)&&(S=v.replace(/^[^\(]+\(([^\)]*)\)$/,"$1"));var w=S===void 0||S==="[arguments not available]"?void 0:S.split(",");return new n(b,w,m[0],m[1],m[2],h)},this)}}})})(Ud)),Ud.exports}var jz=Fz();const Vz=Nz(jz);var qz=["tags"];function Wz(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var zz=["stack","message"],WE="Unhandled promise rejection: ";function Gz(e){var t=!1,n={};if(Object.keys(e).forEach(function(r){if(!(zz.indexOf(r)>=0)){var o=e[r];if(!(o==null||typeof o=="function")){if(typeof o=="object"){if(typeof o.toISOString!="function")return;o=o.toISOString()}n[r]=o,t=!0}}}),t)return n}var Yz=(function(){function e(n,r,o){this._apmServer=n,this._configService=r,this._transactionService=o}var t=e.prototype;return t.createErrorDataModel=function(n,r){var o=AW(Vz,n),s=xW(o),a="(inline script)",u=s[s.length-1];u&&u.filename&&(a=u.filename);var f=n.message,d=n.error,p=f,h="",y={};if(d&&typeof d=="object"){p=p||d.message,h=d.name;
48var m=Gz(d);m&&(y.custom=m)}if(r&&r.labels){var v=Object.keys(r.labels);y.tags={},v.forEach(function($){return W0($,r.labels[$],y.tags)})}h||p&&p.indexOf(":")>-1&&(h=p.split(":")[0]);var b=this._transactionService.getCurrentTransaction(),S=b?b.context:{},w=this._configService.get("context");w.tags;var T=Wz(w,qz),I=Q6(),C=Bh({},I,S,T,y),A={id:fu(),culprit:a,exception:{message:p,stacktrace:s,type:h},context:C};return b&&(A=Us(A,{trace_id:b.traceId,parent_id:b.id,transaction_id:b.id,transaction:{type:b.type,sampled:b.sampled}})),cc(Pz,A)},t.logErrorEvent=function(n,r){if(!(typeof n>"u")){var o=this.createErrorDataModel(n,r);typeof o.exception.message>"u"||this._apmServer.addError(o)}},t.registerListeners=function(){var n=this;window.addEventListener("error",function(r){return n.logErrorEvent(r)}),window.addEventListener("unhandledrejection",function(r){return n.logPromiseEvent(r)})},t.logPromiseEvent=function(n){var r=n.reason;r==null&&(r="<no reason specified>");var o;if(typeof r.message=="string"){var s=r.name?r.name+": ":"";o={error:r,message:WE+s+r.message}}else o=this._parseRejectReason(r);this.logErrorEvent(o)},t.logError=function(n,r){var o={};return typeof n=="string"?o.message=n:o.error=n,this.logErrorEvent(o,r)},t._parseRejectReason=function(n){var r={message:WE};if(Array.isArray(n))r.message+="<object>";else if(typeof n=="object")try{r.message+=JSON.stringify(n),r.error=n}catch{r.message+="<object>"}else typeof n=="function"?r.message+="<function>":r.message+=n;return r},e})(),Kz=(function(){function e(n,r){r===void 0&&(r={}),this.onFlush=n,this.items=[],this.queueLimit=r.queueLimit||-1,this.flushInterval=r.flushInterval||0,this.timeoutId=void 0}var t=e.prototype;return t._setTimer=function(){var n=this;this.timeoutId=setTimeout(function(){return n.flush()},this.flushInterval)},t._clear=function(){typeof this.timeoutId<"u"&&(clearTimeout(this.timeoutId),this.timeoutId=void 0),this.items=[]},t.flush=function(){this.onFlush(this.items),this._clear()},t.add=function(n){this.items.push(n),this.queueLimit!==-1&&this.items.length>=this.queueLimit?this.flush():typeof this.timeoutId>"u"&&this._setTimer()},e})();function Zz(e,t,n){var r=this,o=n.limit,s=n.interval,a=0,u;return function(){return a++,typeof u>"u"&&(u=setTimeout(function(){a=0,u=void 0},s)),a>o&&typeof t=="function"?t.apply(r,arguments):e.apply(r,arguments)}}var il=(function(){function e(){}return e.stringify=function(t){return JSON.stringify(t)+` 49`},e})(),X6=["fetchStart","domainLookupStart","domainLookupEnd","connectStart","connectEnd","requestStart","responseStart","responseEnd","domLoading","domInteractive","domContentLoadedEventStart","domContentLoadedEventEnd","domComplete","loadEventStart","loadEventEnd"],Qz=["fs","ls","le","cs","ce","qs","rs","re","dl","di","ds","de","dc","es","ee"];function Jz(e){var t=Xz(e);return t==null?null:{navigationTiming:t,agent:{timeToFirstByte:t.responseStart,domInteractive:t.domInteractive,domComplete:t.domComplete}}}function Xz(e){var t=e.redirectStart,n=e.fetchStart,r=e.navigationStart,o=e.responseStart,s=e.responseEnd;if(n>=r&&o>=n&&s>=o){var a={};return X6.forEach(function(u){var f=e[u];f&&f>=n&&(G0(e)?a[u]=parseInt(f-t):a[u]=parseInt(f-n))}),a}return null}function eG(e){return e.map(function(t){return{ap:t.abs_path,f:t.filename,fn:t.function,li:t.lineno,co:t.colno}})}function eC(e){return{ts:e.transfer_size,ebs:e.encoded_body_size,dbs:e.decoded_body_size}}function tG(e){var t={},n=e.method,r=e.status_code,o=e.url,s=e.response;return t.url=o,n&&(t.mt=n),r&&(t.sc=r),s&&(t.r=eC(s)),t}function mv(e){if(!e)return null;var t={},n=e.page,r=e.http,o=e.response,s=e.destination,a=e.user,u=e.custom,f=e.tags;if(n&&(t.p={rf:n.referer,url:n.url}),r&&(t.h=tG(r)),o&&(t.r=eC(o)),s){var d=s.service;t.dt={se:{n:d.name,t:d.type,rc:d.resource},ad:s.address,po:s.port}}return a&&(t.u={id:a.id,un:a.username,em:a.email}),u&&(t.cu=u),f&&(t.g=f),t}function nG(e){if(!e)return null;var t=rG(e.navigationTiming),n={nt:t,a:oG(t,e.agent)};return n}function rG(e){if(!e)return null;var t={};return Qz.forEach(function(n,r){var o=X6[r];t[n]=e[o]}),t}function oG(e,t){var n={};if(e&&(n={fb:e.rs,di:e.di,dc:e.dc}),t){var r=t.firstContentfulPaint,o=t.largestContentfulPaint;r&&(n.fp=r),o&&(n.lp=o)}return Object.keys(n).length===0?null:n}function iG(e){var t=e.service,n=e.labels,r=t.agent,o=t.language;return{se:{n:t.name,ve:t.version,a:{n:r.name,ve:r.version},la:{n:o.name},en:t.environment},l:n}}function sG(e){var t=e.spans.map(function(h){var y={id:h.id,n:h.name,t:h.type,s:h.start,d:h.duration,c:mv(h.context),o:h.outcome,sr:h.sample_rate};return h.parent_id!==e.id&&(y.pid=h.parent_id),h.sync===!0&&(y.sy=!0),h.subtype&&(y.su=h.subtype),h.action&&(y.ac=h.action),y}),n={id:e.id,pid:e.parent_id,tid:e.trace_id,n:e.name,t:e.type,d:e.duration,c:mv(e.context),k:nG(e.marks),me:uG(e.breakdown),y:t,yc:{sd:t.length},sm:e.sampled,sr:e.sample_rate,o:e.outcome};if(e.experience){var r=e.experience,o=r.cls,s=r.fid,a=r.tbt,u=r.longtask;n.exp={cls:o,fid:s,tbt:a,lt:u}}if(e.session){var f=e.session,d=f.id,p=f.sequence;n.ses={id:d,seq:p}}return n}function aG(e){var t=e.exception,n={id:e.id,cl:e.culprit,ex:{mg:t.message,st:eG(t.stacktrace),t:e.type},c:mv(e.context)},r=e.transaction;return r&&(n.tid=e.trace_id,n.pid=e.parent_id,n.xid=e.transaction_id,n.x={t:r.type,sm:r.sampled}),n}function uG(e){return e.map(function(t){var n=t.span,r=t.samples;return{y:{t:n.type},sa:{ysc:{v:r["span.self_time.count"].value},yss:{v:r["span.self_time.sum.us"].value}}}})}function lG(e,t){t===void 0&&(t="gzip");var n=typeof CompressionStream=="function";return new Ns(function(r){if(!n||QW())return r(e);var o=e.payload,s=e.headers,a=e.beforeSend,u=new Blob([o]).stream(),f=u.pipeThrough(new CompressionStream(t));return new Response(f).blob().then(function(d){return s["Content-Encoding"]=t,r({payload:d,headers:s,beforeSend:a})})})}function tC(e){return!(e===0||e>399&&e<600)}function yv(){return yv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yv.apply(null,arguments)}var cG=60*1e3;function fG(e,t){if(!nC())return!1;
49var n="keepalive"in new Request("");if(!n)return!1;var r=pG(t);return e==="POST"&&r<cG}function dG(e,t,n){var r=n.keepalive,o=r===void 0?!1:r,s=n.timeout,a=s===void 0?K6:s,u=n.payload,f=n.headers,d=n.sendCredentials,p={};if(typeof AbortController=="function"){var h=new AbortController;p.signal=h.signal,setTimeout(function(){return h.abort()},a)}var y;return window.fetch(t,yv({body:u,headers:f,method:e,keepalive:o,credentials:d?"include":"omit"},p)).then(function(m){return y=m,y.text()}).then(function(m){var v={url:t,status:y.status,responseText:m};if(!tC(y.status))throw v;return v})}function nC(){return typeof window.fetch=="function"&&typeof window.Request=="function"}function pG(e){return e?e instanceof Blob?e.size:new Blob([e]).size:0}var Fd={fetchInProgress:!1};function Bu(e){return"__apm_symbol__"+e}function hG(e){return e?e.writable===!1?!1:!(typeof e.get=="function"&&typeof e.set>"u"):!0}function gG(e,t){e[Bu("OriginalDelegate")]=t}function zE(e,t,n){for(var r=e;r&&!r.hasOwnProperty(t);)r=Object.getPrototypeOf(r);!r&&e[t]&&(r=e);var o=Bu(t),s;if(r&&!(s=r[o])){s=r[o]=r[t];var a=r&&Object.getOwnPropertyDescriptor(r,t);if(hG(a)){var u=n(s,o,t);r[t]=function(){return u(this,arguments)},gG(r[t],s)}}return s}var vv=Bu("xhrIgnore"),GE=Bu("xhrSync"),YE=Bu("xhrURL"),KE=Bu("xhrMethod");function ZE(e,t,n){var r=n.timeout,o=r===void 0?HTTP_REQUEST_TIMEOUT:r,s=n.payload,a=n.headers,u=n.beforeSend,f=n.sendCredentials;return new Ns(function(d,p){var h=new window.XMLHttpRequest;if(h[vv]=!0,h.open(e,t,!0),h.timeout=o,h.withCredentials=f,a)for(var y in a)a.hasOwnProperty(y)&&h.setRequestHeader(y,a[y]);h.onreadystatechange=function(){if(h.readyState===4){var v=h.status,b=h.responseText;tC(v)?d(h):p({url:t,status:v,responseText:b})}},h.onerror=function(){var v=h.status,b=h.responseText;p({url:t,status:v,responseText:b})};var m=!0;typeof u=="function"&&(m=u({url:t,method:e,headers:a,payload:s,xhr:h})),m?h.send(s):p({url:t,status:0,responseText:"Request rejected by user configuration."})})}var mG=6e4,yG=(function(){function e(n,r){this._configService=n,this._loggingService=r,this.queue=void 0,this.throttleEvents=kp}var t=e.prototype;return t.init=function(){var n=this,r=this._configService.get("queueLimit"),o=this._configService.get("flushInterval"),s=this._configService.get("eventsLimit"),a=function(u){var f=n.sendEvents(u);f&&f.catch(function(d){n._loggingService.warn("Failed sending events!",n._constructError(d))})};this.queue=new Kz(a,{queueLimit:r,flushInterval:o}),this.throttleEvents=Zz(this.queue.add.bind(this.queue),function(){return n._loggingService.warn("Dropped events due to throttling!")},{limit:s,interval:mG}),this._configService.observeEvent(pv,function(){n.queue.flush()})},t._postJson=function(n,r){var o=this,s={"Content-Type":"application/x-ndjson"},a=this._configService.get("apmRequest"),u={payload:r,headers:s,beforeSend:a};return lG(u).catch(function(f){return u}).then(function(f){return o._makeHttpRequest("POST",n,f)}).then(function(f){var d=f.responseText;return d})},t._constructError=function(n){var r=n.url,o=n.status;if(n.responseText,typeof o>"u")return n;var s=r+" HTTP status: "+o;return new Error(s)},t._makeHttpRequest=function(n,r,o){var s=o===void 0?{}:o,a=s.timeout,u=a===void 0?K6:a,f=s.payload,d=s.headers,p=s.beforeSend,h=this._configService.get("sendCredentials");return!p&&fG(n,f)?dG(n,r,{keepalive:!0,timeout:u,payload:f,headers:d,sendCredentials:h}).catch(function(y){if(y instanceof TypeError)return ZE(n,r,{timeout:u,payload:f,headers:d,beforeSend:p,sendCredentials:h});throw y}):ZE(n,r,{timeout:u,payload:f,headers:d,beforeSend:p,sendCredentials:h})},t.fetchConfig=function(n,r){var o=this,s=this.getEndpoints(),a=s.configEndpoint;if(!n)return Ns.reject("serviceName is required for fetching central config.");a+="?service.name="+n,r&&(a+="&service.environment="+r);var u=this._configService.getLocalConfig();u&&(a+="&ifnonematch="+u.etag);var f=this._configService.get("apmRequest");return this._makeHttpRequest("GET",a,{timeout:5e3,beforeSend:f}).then(function(d){var p=d.status,h=d.responseText;if(p===304)return u;var y=JSON.parse(h),m=d.getResponseHeader("etag");return m&&(y.etag=m.replace(/["]/g,""),o._configService.setLocalConfig(y,!0)),y}).catch(function(d){var p=o._constructError(d);return Ns.reject(p)})},t.createMetaData=function(){var n=this._configService,r={service:{name:n.get("serviceName"),version:n.get("serviceVersion"),agent:{name:"rum-js",version:n.version},language:{name:"javascript"},environment:n.get("environment")},labels:n.get("context.tags")};return cc(Oz,r)},t.addError=function(n){var r;this.throttleEvents((r={},r[rl]=n,r))},t.addTransaction=function(n){var r;this.throttleEvents((r={},r[ol]=n,r))},t.ndjsonErrors=function(n,r){var o=r?"e":"error";return n.map(function(s){var a;return il.stringify((a={},a[o]=r?aG(s):s,a))})},t.ndjsonMetricsets=function(n){return n.map(function(r){return il.stringify({metricset:r})}).join("")},t.ndjsonTransactions=function(n,r){var o=this,s=r?"x":"transaction";return n.map(function(a){var u,f="",d="";return r||(a.spans&&(f=a.spans.map(function(p){return il.stringify({span:p})}).join(""),delete a.spans),a.breakdown&&(d=o.ndjsonMetricsets(a.breakdown),delete a.breakdown)),il.stringify((u
49={},u[s]=r?sG(a):a,u))+f+d})},t.sendEvents=function(n){var r,o;if(n.length!==0){for(var s=[],a=[],u=0;u<n.length;u++){var f=n[u];f[ol]&&s.push(f[ol]),f[rl]&&a.push(f[rl])}if(!(s.length===0&&a.length===0)){var d=this._configService,p=(r={},r[ol]=s,r[rl]=a,r),h=d.applyFilters(p);if(!h){this._loggingService.warn("Dropped payload due to filtering!");return}var y=d.get("apiVersion"),m=y>2,v=[],b=this.createMetaData(),S=m?"m":"metadata";v.push(il.stringify((o={},o[S]=m?iG(b):b,o))),v=v.concat(this.ndjsonErrors(h[rl],m),this.ndjsonTransactions(h[ol],m));var w=v.join(""),T=this.getEndpoints(),I=T.intakeEndpoint;return this._postJson(I,w)}}},t.getEndpoints=function(){var n=this._configService.get("serverUrl"),r=this._configService.get("apiVersion"),o=this._configService.get("serverUrlPrefix")||"/intake/v"+r+"/rum/events",s=n+o,a=n+"/config/v1/rum/agents";return{intakeEndpoint:s,configEndpoint:a}},e})(),rC=(function(){function e(){this.observers={}}var t=e.prototype;return t.observe=function(n,r){var o=this;if(typeof r=="function")return this.observers[n]||(this.observers[n]=[]),this.observers[n].push(r),function(){var s=o.observers[n].indexOf(r);s>-1&&o.observers[n].splice(s,1)}},t.sendOnly=function(n,r){var o=this.observers[n];o&&o.forEach(function(s){try{s.apply(void 0,r)}catch(a){console.log(a,a.stack)}})},t.send=function(n,r){this.sendOnly(n+cz,r),this.sendOnly(n,r),this.sendOnly(n+z6,r)},e})();function _v(){return _v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_v.apply(null,arguments)}function vG(){var e=GW(),t=_G(e);return t}function _G(e){if(!e)return{};for(var t={},n=/^data-([\w-]+)$/,r=e.attributes,o=0;o<r.length;o++){var s=r[o];if(n.test(s.nodeName)){var a=s.nodeName.match(n)[1],u=a.split("-").map(function(f,d){return d>0?f.charAt(0).toUpperCase()+f.substring(1):f}).join("");t[u]=s.value||s.nodeValue}}return t}var bG=(function(){function e(){this.config={serviceName:"",serviceVersion:"",environment:"",serverUrl:"http://localhost:8200",serverUrlPrefix:"",active:!0,instrument:!0,disableInstrumentations:[],logLevel:"warn",breakdownMetrics:!1,ignoreTransactions:[],eventsLimit:80,queueLimit:-1,flushInterval:500,distributedTracing:!0,distributedTracingOrigins:[],distributedTracingHeaderName:"traceparent",pageLoadTraceId:"",pageLoadSpanId:"",pageLoadSampled:!1,pageLoadParentId:"",pageLoadTransactionName:"",propagateTracestate:!1,transactionSampleRate:1,centralConfig:!1,monitorLongtasks:!0,apiVersion:2,context:{},session:!1,apmRequest:null,sendCredentials:!1,reportTransactionsWithoutSpans:!1},this.events=new rC,this.filters=[],this.version=""}var t=e.prototype;return t.init=function(){var n=vG();this.setConfig(n)},t.setVersion=function(n){this.version=n},t.addFilter=function(n){if(typeof n!="function")throw new Error("Argument to must be function");this.filters.push(n)},t.applyFilters=function(n){try{for(var r=0;r<this.filters.length;r++)if(n=this.filters[r](n),!n)return;if(n.transactions=n.transactions.filter(function(o){return o}),n.errors=n.errors.filter(function(o){return o}),n.transactions.length===0&&n.errors.length===0)return}catch{return}return n},t.get=function(n){return n.split(".").reduce(function(r,o){return r&&r[o]},this.config)},t.setUserContext=function(n){n===void 0&&(n={});var r={},o=n,s=o.id,a=o.username,u=o.email;(typeof s=="number"||typeof s=="string")&&(r.id=s),typeof a=="string"&&(r.username=a),typeof u=="string"&&(r.email=u),this.config.context.user=Us(this.config.context.user||{},r)},t.setCustomContext=function(n){n===void 0&&(n={}),this.config.context.custom=Us(this.config.context.custom||{},n)},t.addLabels=function(n){var r=this;this.config.context.tags||(this.config.context.tags={});var o=Object.keys(n);o.forEach(function(s){return W0(s,n[s],r.config.context.tags)})},t.setConfig=function(n){n===void 0&&(n={});var r=n,o=r.transactionSampleRate,s=r.serverUrl;s&&(n.serverUrl=s.replace(/\/+$/,"")),av(o)||(o<1e-4&&o>0&&(o=1e-4),n.transactionSampleRate=Math.round(o*1e4)/1e4),this.config=Bh(this.config,n),this.events.send(j6,[this.config])},t.validate=function(n){n===void 0&&(n={});var r=["serviceName","serverUrl"],o=Object.keys(this.config),s={missing:[],invalid:[],unknown:[]};
49Object.keys(n).forEach(function(u){r.indexOf(u)!==-1&&!n[u]&&s.missing.push(u),o.indexOf(u)===-1&&s.unknown.push(u)}),n.serviceName&&!/^[a-zA-Z0-9 _-]+$/.test(n.serviceName)&&s.invalid.push({key:"serviceName",value:n.serviceName,allowed:"a-z, A-Z, 0-9, _, -, <space>"});var a=n.transactionSampleRate;return typeof a<"u"&&(typeof a!="number"||isNaN(a)||a<0||a>1)&&s.invalid.push({key:"transactionSampleRate",value:a,allowed:"Number between 0 and 1"}),s},t.getLocalConfig=function(){var n=sessionStorage;this.config.session&&(n=localStorage);var r=n.getItem(HE);if(r)return JSON.parse(r)},t.setLocalConfig=function(n,r){if(n){if(r){var o=this.getLocalConfig();n=_v({},o,n)}var s=sessionStorage;this.config.session&&(s=localStorage),s.setItem(HE,JSON.stringify(n))}},t.dispatchEvent=function(n,r){this.events.send(n,r)},t.observeEvent=function(n,r){return this.events.observe(n,r)},e})(),wG=(function(){function e(n){n===void 0&&(n={}),this.levels=["trace","debug","info","warn","error"],this.level=n.level||"warn",this.prefix=n.prefix||"",this.resetLogMethods()}var t=e.prototype;return t.shouldLog=function(n){return this.levels.indexOf(n)>=this.levels.indexOf(this.level)},t.setLevel=function(n){n!==this.level&&(this.level=n,this.resetLogMethods())},t.resetLogMethods=function(){var n=this;this.levels.forEach(function(r){n[r]=n.shouldLog(r)?o:kp;function o(){var s=r;(r==="trace"||r==="debug")&&(s="info");var a=arguments;if(a[0]=this.prefix+a[0],console){var u=console[s]||console.log;typeof u=="function"&&u.apply(console,a)}}})},e})(),sl,fc=(sl={},sl[ln]=function(){return new bG},sl[_i]=function(){return new wG({prefix:"[Elastic APM] "})},sl[yf]=function(e){var t=e.getService([ln,_i]),n=t[0],r=t[1];return new yG(n,r)},sl),EG=(function(){function e(){this.instances={},this.initialized=!1}var t=e.prototype;return t.init=function(){if(!this.initialized){this.initialized=!0;var n=this.getService(ln);n.init();var r=this.getService([_i,yf]),o=r[0],s=r[1];n.events.observe(j6,function(){var a=n.get("logLevel");o.setLevel(a)}),s.init()}},t.getService=function(n){var r=this;if(typeof n=="string")return this.instances[n]||typeof fc[n]=="function"&&(this.instances[n]=fc[n](this)),this.instances[n];if(Array.isArray(n))return n.map(function(o){return r.getService(o)})},e})();function SG(){fc[gv]=function(e){var t=e.getService([yf,ln,as]),n=t[0],r=t[1],o=t[2];return new Yz(n,r,o)}}function $G(e){var t=XMLHttpRequest.prototype;if(!t||!t[DE])return;var n="readystatechange",r="load",o="error",s="timeout",a="abort";function u(h,y){h.state!==vi&&(h.state=vi,h.data.status=y,e(vi,h))}function f(h){if(h.state===ja)return;h.state=ja,e(ja,h);var y=h.data.target;function m(v){y[DE](v,function(b){var S=b.type;if(S===n)y.readyState===4&&y.status!==0&&u(h,"success");else{var w=S===r?"success":S;u(h,w)}})}m(n),m(r),m(s),m(o),m(a)}var d=zE(t,"open",function(){return function(h,y){return h[vv]||(h[KE]=y[0],h[YE]=(y[1]||"").toString(),h[GE]=y[2]===!1),d.apply(h,y)}}),p=zE(t,"send",function(){return function(h,y){if(h[vv])return p.apply(h,y);var m={source:Va,state:"",type:"macroTask",data:{target:h,method:h[KE],sync:h[GE],url:h[YE],status:""}};try{return f(m),p.apply(h,y)}catch(v){throw u(m,o),v}}})}function TG(e){if(!nC())return;function t(a){a.state=ja,e(ja,a)}function n(a){a.state=vi,e(vi,a)}function r(a,u){a.data.aborted=IG(u),a.data.error=u,n(a)}function o(a,u){var f=a.getReader(),d=function(){f.read().then(function(p){var h=p.done;h?n(u):d()},function(p){r(u,p)})};d()}var s=window.fetch;window.fetch=function(a,u){var f=this,d=arguments,p,h,y=a instanceof URL;if(typeof a=="string"||y)p=new Request(a,u),y?h=p.url:h=a;else if(a)p=new Request(a,u),h=p.url;else return s.apply(f,d);var m={source:qa,state:"",type:"macroTask",data:{target:p,method:p.method,url:h,aborted:!1}};return new Ns(function(v,b){Fd.fetchInProgress=!0,t(m);var S;try{S=s.apply(f,[p])}catch(w){b(w),m.data.error=w,n(m),Fd.fetchInProgress=!1;return}S.then(function(w){var T=w.clone?w.clone():{};v(w),NE(function(){m.data.response=w;var I=T.body;I?o(I,m):n(m)})},function(w){b(w),NE(function(){r(m,w)})}),Fd.fetchInProgress=!1})}}function IG(e){return e&&e.name==="AbortError"}function AG(e){if(window.history){var t=history.pushState;typeof t=="function"&&(history.pushState=function(n,r,o){var s={source:Wa,data:{state:n,title:r,url:o}};e(vi,s),t.apply(this,arguments)})}}var us=new rC,QE=!1;function xG(){return QE||(QE=!0,$G(function(e,t){us.send(Va,[e,t])}),TG(function(e,t){us.send(qa,[e,t])}),AG(function(e,t){us.send(Wa,[e,t])})),us}var CG=.05,RG=6e4;function OG(e,t,n){e.sort(function(s,a){return s._start-a._start});var r=[],o=1;return e.forEach(function(s,a){if(r.length===0)r.push(s);else{var u=r[r.length-1],f=u.type===s.type&&u.subtype===s.subtype&&u.action===s.action&&u.name===s.name&&s.duration()/t<n&&(s._start-u._end)/t<n,d=e.length===a+1;f&&(o++,u._end=s._end),o>1&&(!f||d)&&(u.name=o+"x "+u.name,o=1),f||r.push(s)}}),r}function kG(e){if(e.sampled){var t=e.spans.filter(function(o){return o.duration()>0&&o._start>=e._start&&o._end<=e._end});if(e.isManaged()){var n=e.duration(),r=OG(t,n,CG);e.spans=r}else e.spans=t}else e.resetFields();return e}var LG=(function(){function e(n,r,o,s){this._apmServer=n,this._configService=r,this._logginService=o,this._transactionService=s}var t=e.prototype;return t.init=function(n){var r=this;n===void 0&&(n={}),this._configService.events.observe(F6+z6,function(o){var s=r.createTransactionPayload(o);s&&(r._apmServer.addTransaction(s),r._configService.dispatchEvent(Y0))}),n[Wa]&&us.observe(Wa,this.getHistorySub()),n[Va]&&us.observe(Va,this.getXHRSub()),n[qa]&&us.observe(qa,this.getFetchSub())},t.getHistorySub=function(){var n=this._transactionService;return function(r,o){o.source===Wa&&r===vi&&n.startTransaction(o.data.title,"route-change",{managed:!0,canReuse:!0})}},t.getXHRSub=function(){var n=this;return function(r,o){o.source===Va&&!Fd.fetchInProgress&&n.processAPICalls(r,o)}},t.getFetchSub=function(){var n=this;return function(r,o){o.source===qa&&n.processAPICalls(r,o)}},t.processAPICalls=function(n,r){var o=this._configService,s=this._transactionService;if(r.data&&r.data.url){var a=this._apmServer.getEndpoints(),u=Object.keys(a).some(function(O){return r.data.url.indexOf(a[O])!==-1});if(u)return}if(n===ja&&r.data){var f=r.data,d=new du(f.url),p=f.method+" "+(d.relative?d.path:k6(d.href));s.getCurrentTransaction()||s.startTransaction(p,cv,{managed:!0});var h=s.startSpan(p,"external.http",{blocking:!0});if(!h)return;var y=o.get("distributedTracing"),m=o.get("distributedTracingOrigins"),v=new du(window.location.href),b=sv(d.origin,v.origin)||sv(d.origin,m),S=f.target;if(y&&b&&S){this.injectDtHeader(h,S);var w=o.get("propagateTracestate");w&&this.injectTSHeader(h,S)}f.sync&&(h.sync=f.sync),f.span=h}else if(n===vi){var T=r.data;if(T&&T.span){var I=T.span,C=T.response,A=T.target,$;C?$=C.status:$=A.status;var k;T.status!="abort"&&!T.aborted?$>=400||$==0?k=sz:k=iz:k=az,I.outcome=k;var x=s.getCurrentTransaction();x&&x.type===cv&&(x.outcome=k),s.endSpan(I,T)}}},t.injectDtHeader=function(n,r){var o=this._configService.get("distributedTracingHeaderName"),s=UW(n),a=FW(s);a&&s&&o&&BE(r,o,s)},t.injectTSHeader=function(n,r){var o=jW(n);o&&BE(r,"tracestate",o)},t.extractDtHeader=function(n){var r=this._configService,o=r.get("distributedTracingHeaderName");if(n)return HW(n[o])},t.filterTransaction=function(n){var r=n.duration();if(!r)return!1;
49if(n.isManaged()){if(r>RG)return!1;var o=this._configService.get("reportTransactionsWithoutSpans");if(n.sampled&&n.spans.length===0&&!o)return!1}return!0},t.createTransactionDataModel=function(n){var r=n._start,o=n.spans.map(function(a){var u={id:a.id,transaction_id:n.id,parent_id:a.parentId||n.id,trace_id:n.traceId,name:a.name,type:a.type,subtype:a.subtype,action:a.action,sync:a.sync,start:parseInt(a._start-r),duration:a.duration(),context:a.context,outcome:a.outcome,sample_rate:a.sampleRate};return cc(Lz,u)}),s={id:n.id,parent_id:n.parentId,trace_id:n.traceId,session:n.session,name:n.name,type:n.type,duration:n.duration(),spans:o,context:n.context,marks:n.marks,breakdown:n.breakdownTimings,span_count:{started:o.length},sampled:n.sampled,sample_rate:n.sampleRate,experience:n.experience,outcome:n.outcome};return cc(Mz,s)},t.createTransactionPayload=function(n){var r=kG(n),o=this.filterTransaction(r);if(o)return this.createTransactionDataModel(n);this._configService.dispatchEvent(Lp)},e})(),oC=(function(){function e(n,r,o){o===void 0&&(o={}),n||(n=Dd),r||(r=U6),this.name=n,this.type=r,this.options=o,this.id=o.id||fu(16),this.traceId=o.traceId,this.sampled=o.sampled,this.sampleRate=o.sampleRate,this.timestamp=o.timestamp,this._start=uv(o.startTime),this._end=void 0,this.ended=!1,this.outcome=void 0,this.onEnd=o.onEnd}var t=e.prototype;return t.ensureContext=function(){this.context||(this.context={})},t.addLabels=function(n){this.ensureContext();var r=this.context;r.tags||(r.tags={});var o=Object.keys(n);o.forEach(function(s){return W0(s,n[s],r.tags)})},t.addContext=function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];r.length!==0&&(this.ensureContext(),this.context=Bh.apply(void 0,[this.context].concat(r)))},t.end=function(n){this.ended||(this.ended=!0,this._end=uv(n),this.callOnEnd())},t.callOnEnd=function(){typeof this.onEnd=="function"&&this.onEnd(this)},t.duration=function(){return P6(this._start,this._end)},e})();function MG(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,bv(e,t)}function bv(e,t){return bv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},bv(e,t)}var Qs=(function(e){function t(r,o,s){var a;if(a=e.call(this,r,o,s)||this,a.parentId=a.options.parentId,a.subtype=void 0,a.action=void 0,a.type.indexOf(".")!==-1){var u=a.type.split(".",3);a.type=u[0],a.subtype=u[1],a.action=u[2]}return a.sync=a.options.sync,a}MG(t,e);var n=t.prototype;return n.end=function(r,o){e.prototype.end.call(this,r),Cz(this,o)},t})(oC),JE=[["domainLookupStart","domainLookupEnd","DNS"],["connectStart","connectEnd","TCP"],["requestStart","responseStart","Request"],["responseStart","responseEnd","Re
49sponse"],["domLoading","domComplete","Processing"],["loadEventStart","loadEventEnd","Load"]];function XE(e){return{value:e}}function PG(e){var t=e.spans,n=e._start,r=e._end;if(t.length===0)return e.duration();t.sort(function(p,h){return p._start-h._start});for(var o=t[0],s=o._end,a=o._start,u=s,f=a-n,d=1;d<t.length;d++)o=t[d],a=o._start,s=o._end,a>u?(f+=a-u,u=s):s>u&&(u=s);return u<r&&(f+=r-u),f}function BG(e){var t={},n=PG(e);t.app={count:1,duration:n};for(var r=e.spans,o=0;o<r.length;o++){var s=r[o],a=s.duration();if(!(a===0||a==null)){var u=s.type,f=s.subtype,d=u.replace(K0,"");f&&(d+="."+f),t[d]||(t[d]={duration:0,count:0}),t[d].count++,t[d].duration+=a}}return t}function eS(e,t){var n=t.details,r=t.count,o=r===void 0?1:r,s=t.duration;return{transaction:e,span:n,samples:{"span.self_time.count":XE(o),"span.self_time.sum.us":XE(s*1e3)}}}function NG(e,t){t===void 0&&(t=to.timing);var n=[],r=e.name,o=e.type,s=e.sampled,a={name:r,type:o};if(!s)return n;if(o===Pn&&t)for(var u=0;u<JE.length;u++){var f=JE[u],d=t[f[0]],p=t[f[1]],h=P6(d,p);h===0||h==null||n.push(eS(a,{details:{type:f[2]},duration:h}))}else{var y=BG(e);Object.keys(y).forEach(function(m){var v=m.split("."),b=v[0],S=v[1],w=y[m],T=w.duration,I=w.count;n.push(eS(a,{details:{type:b,subtype:S},duration:T,count:I}))})}return n}function DG(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,wv(e,t)}function wv(e,t){return wv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},wv(e,t)}var tS=(function(e){function t(r,o,s){var a;return a=e.call(this,r,o,s)||this,a.traceId=fu(),a.marks=void 0,a.spans=[],a._activeSpans={},a._activeTasks=new Set,a.blocked=!1,a.captureTimings=!1,a.breakdownTimings=[],a.sampleRate=a.options.transactionSampleRate,a.sampled=Math.random()<=a.sampleRate,a}DG(t,e);var n=t.prototype;return n.addMarks=function(r){this.marks=Bh(this.marks||{},r)},n.mark=function(r){var o=L6(r),s=yi()-this._start,a={};a[o]=s,this.addMarks({custom:a})},n.canReuse=function(){var r=this.options.reuseThreshold||rz;return!!this.options.canReuse&&!this.ended&&yi()-this._start<r},n.redefine=function(r,o,s){r&&(this.name=r),o&&(this.type=o),s&&(this.options.reuseThreshold=s.reuseThreshold,this.options=Us(this.options,s))},n.startSpan=function(r,o,s){var a=this;if(!this.ended){var u=Us({},s);u.onEnd=function(d){a._onSpanEnd(d)},u.traceId=this.traceId,u.sampled=this.sampled,u.sampleRate=this.sampleRate,u.parentId||(u.parentId=this.id);var f=new Qs(r,o,u);return this._activeSpans[f.id]=f,u.blocking&&this.addTask(f.id),f}},n.isFinished=function(){return!this.blocked&&this._activeTasks.size===0},n.detectFinish=function(){this.isFinished()&&this.end()},n.end=function(r){if(!this.ended){this.ended=!0,this._end=uv(r);for(var o in this._activeSpans){var s=this._activeSpans[o];s.type=s.type+K0,s.end(r)}this.callOnEnd()}},n.captureBreakdown=function(){this.breakdownTimings=NG(this)},n.block=function(r){this.blocked=r,this.blocked||this.detectFinish()},n.addTask=function(r){return r||(r="task-"+fu(16)),this._activeTasks.add(r),r},n.removeTask=function(r){var o=this._activeTasks.delete(r);o&&this.detectFinish()},n.resetFields=function(){this.spans=[],this.sampleRate=0},n._onSpanEnd=function(r){this.spans.push(r),delete this._activeSpans[r.id],this.removeTask(r.id)},n.isManaged=function(){return!!this.options.managed},t})(oC);function Ev(){return Ev=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ev.apply(null,arguments)}var jt={fid:0,fcp:0,tbt:{start:1/0,duration:0},cls:{score:0,firstEntryTime:Number.NEGATIVE_INFINITY,prevEntryTime:Number.NEGATIVE_INFINITY,currentSessionScore:0},longtask:{count:0,duration:0,max:0}},UG=50;function HG(e,t){for(var n=[],r=0;r<e.length;r++){var o=e[r],s=o.name,a=o.startTime,u=o.duration,f=o.attribution,d=a+u,p=new Qs("Longtask("+s+")",lc,{startTime:a});if(t.count++,t.duration+=u,t.max=Math.max(u,t.max),f.length>0){var h=f[0],y=h.name,m=h.containerType,v=h.containerName,b=h.containerId,S={attribution:y,type:m};v&&(S.name=v),b&&(S.id=b),p.addContext({custom:S})}p.end(d),n.push(p)}return n}function FG(e){var t=e[0];if(t){var n=t.startTime,r=t.processingStart,o=new Qs("First Input Delay",Nh,{startTime:n});return o.end(r),o}}function jG(e){var t=e.start,n=e.duration,r=new Qs("Total Blocking Time",lc,{startTime:t});return r.end(t+n),r}function VG(e){e.forEach(function(t){var n=t.name,r=t.startTime,o=t.duration;if(!(r<jt.fcp)&&!(n!=="self"&&n.indexOf("same-origin")===-1)){jt.tbt.start=Math.min(jt.tbt.start,r);var s=o-UG;s>0&&(jt.tbt.duration+=s)}})}function qG(e){e.forEach(function(t){if(!t.hadRecentInput&&t.value){var n=t.startTime-jt.cls.firstEntryTime>5e3||t.startTime-jt.cls.prevEntryTime>1e3;n&&(jt.cls.firstEntryTime=t.startTime,jt.cls.currentSessionScore=0),jt.cls.prevEntryTime=t.startTime,jt.cls.currentSessionScore+=t.value,jt.cls.score=Math.max(jt.cls.score,jt.cls.currentSessionScore)}})}function WG(e,t){var n=t.isHardNavigation,r=t.trStart,o=e.getEntriesByType(lc).filter(function(w){return w.startTime>=r}),s=HG(o,jt.longtask),a={spans:s,marks:{}};if(!n)return a;var u=e.getEntriesByType(G6),f=u[u.length-1];if(f){var d=parseInt(f.startTime);jt.lcp=d,a.marks.largestContentfulPaint=d}var p=to.timing,h=p.fetchStart-p.navigationStart;G0(p)&&(h=0);var y=e.getEntriesByName(gz)[0];if(y){var m=parseInt(h>=0?y.startTime-h:y.startTime);jt.fcp=m,a.marks.firstContentfulPaint=m}var v=e.getEntriesByType(Nh),b=FG(v);b&&(jt.fid=b.duration(),a.spans.push(b)),VG(o);var S=e.getEntriesByType(hv);return qG(S),a}var iC=(function(){function e(n){this.po={observe:kp,disconnect:kp},window.PerformanceObserver&&(this.po=new PerformanceObserver(n))}var t=e.prototype;return t.start=function(n,r){r===void 0&&(r={buffered:!0});try{if(!lv(n))return;this.po.observe(Ev({type:n},r))}catch{}},t.stop=function(){this.po.disconnect()},e})(),$s={bootstrapTime:null,lastHiddenStart:Number.MIN_SAFE_INTEGER};function J0(e,t,n,r,o){return o===void 0&&(o=0),typeof e=="number"&&typeof t=="number"&&e>=o&&t>e&&e-o>=n&&t-o<=r&&t-e<tm&&e-o<tm&&t-o<tm}var al=[["redirectStart","redirectEnd","Redirect"],["domainLookupStart","domainLookupEnd","Domain lookup"],["connectStart","connectEnd","Making a connection to the server"],["requestStart","responseEnd","Requesting and receiving the document"],["domLoading","domInteractive","Parsing the document, executing sync. scripts"],["domContentLoadedEventStart","domContentLoadedEventEnd",'Fire "DOMContentLoaded" event'],["loadEventStart","loadEventEnd",'Fire "load" event']];function zG(e,t,n,r){for(var o=[],s=0;s<al.length;s++){var a=e[al[s][0]],u=e[al[s][1]];if(J0(a,u,n,r,t)){var f=new Qs(al[s][2],"hard-navigation.browser-timing"),d=null;al[s][0]==="requestStart"&&(f.pageResponse=!0,d={url:location.origin}),f._start=a-t,f.end(u-t,d),o.push(f)}}return o}function GG(e,t,n){for(var r=[],o=0;o<e.length;o++){var s=e[o],a=s.name,u=s.startTime,f=s.duration,d=u+f;if(!(f<=uz||!J0(u,d,t,n))){var p="app",h=new Qs(a,p);h._start=u,h.end(d),r.push(h)}}return r}function YG(e){var t=e.name,n=e.initiatorType,r=e.startTime,o=e.responseEnd,s="resource";n&&(s+="."+n);var a=k6(t),u=new Qs(a,s);return u._start=r,u.end(o,{url:t,entry:e}),u}function KG(e,t){return t!=null&&e>t}function ZG(e){return/intake\/v\d+\/rum\/events/.test(e)}function QG(e,t,n,r){for(var o=[],s=0;s<e.length;s++){var a=e[s],u=a.initiatorType,f=a.name,d=a.startTime,p=a.responseEnd;nz.indexOf(u)===-1||f==null||(u==="xmlhttprequest"||u==="fetch")&&(ZG(f)||KG(d,t))||J0(d,p,n,r)&&o.push(YG(e[s]))}return o}function JG(e){if(!e.captureTimings){e.type===Pn&&(e._start=0);return}var t=e._end;if(e.type===Pn){if(e.marks&&e.marks.custom){var n=e.marks.custom;
49Object.keys(n).forEach(function(d){n[d]+=e._start})}var r=0;e._start=r;var o=to.timing,s=G0(o)?o.redirectStart:o.fetchStart;zG(o,s,r,t).forEach(function(d){d.traceId=e.traceId,d.sampled=e.sampled,d.pageResponse&&e.options.pageLoadSpanId&&(d.id=e.options.pageLoadSpanId),e.spans.push(d)}),e.options.pageLoadParentId&&(e.parentId=e.options.pageLoadParentId),e.addMarks(Jz(o))}if(B6()){var a=e._start,u=to.getEntriesByType(hz);QG(u,$s.bootstrapTime,a,t).forEach(function(d){return e.spans.push(d)});var f=to.getEntriesByType(dz);GG(f,a,t).forEach(function(d){return e.spans.push(d)})}}var XG=(function(){function e(n,r){var o=this;this._config=r,this._logger=n,this.currentTransaction=void 0,this.respIntervalId=void 0,this.recorder=new iC(function(s){var a=o.getCurrentTransaction();if(a&&a.captureTimings){var u,f=a.type===Pn,d=WG(s,{isHardNavigation:f,trStart:f?0:a._start}),p=d.spans,h=d.marks;(u=a.spans).push.apply(u,p),a.addMarks({agent:h})}})}var t=e.prototype;return t.createCurrentTransaction=function(n,r,o){var s=new tS(n,r,o);return this.currentTransaction=s,s},t.getCurrentTransaction=function(){if(this.currentTransaction&&!this.currentTransaction.ended)return this.currentTransaction},t.createOptions=function(n){var r=this._config.config,o={transactionSampleRate:r.transactionSampleRate},s=Us(o,n);return s.managed&&(s=Us({pageLoadTraceId:r.pageLoadTraceId,pageLoadSampled:r.pageLoadSampled,pageLoadSpanId:r.pageLoadSpanId,pageLoadTransactionName:r.pageLoadTransactionName,pageLoadParentId:r.pageLoadParentId},s)),s},t.startManagedTransaction=function(n,r,o){var s=this.getCurrentTransaction(),a=!1;if(!s)s=this.createCurrentTransaction(n,r,o);else if(s.canReuse()&&o.canReuse){var u=s.type,f=UE.indexOf(s.type),d=UE.indexOf(r);f>=0&&d<f&&(u=r),s.redefine(n,u,o),a=!0}else s.end(),s=this.createCurrentTransaction(n,r,o);return s.type===Pn&&(a||(this.recorder.start(G6),this.recorder.start(fz),this.recorder.start(Nh),this.recorder.start(hv)),o.pageLoadTraceId&&(s.traceId=o.pageLoadTraceId),o.pageLoadSampled&&(s.sampled=o.pageLoadSampled),s.name===Dd&&o.pageLoadTransactionName&&(s.name=o.pageLoadTransactionName)),!a&&this._config.get("monitorLongtasks")&&this.recorder.start(lc),s.sampled&&(s.captureTimings=!0),s},t.startTransaction=function(n,r,o){var s=this,a=this.createOptions(o),u,f=!0;if(a.managed){var d=this.currentTransaction;u=this.startManagedTransaction(n,r,a),d===u&&(f=!1)}else u=new tS(n,r,a);return u.onEnd=function(){return s.handleTransactionEnd(u)},f&&this._config.events.send(lz,[u]),u},t.handleTransactionEnd=function(n){var r=this;this.recorder.stop();var o=window.location.href;return Ns.resolve().then(function(){var s=n.name,a=n.type,u=$s.lastHiddenStart;if(u>=n._start){r._config.dispatchEvent(Lp);return}if(r.shouldIgnoreTransaction(s)||a===fv){r._config.dispatchEvent(Lp);return}if(a===Pn){var f=r._config.get("pageLoadTransactionName");if(s===Dd&&f&&(n.name=f),n.captureTimings){var d=jt.cls,p=jt.fid,h=jt.tbt,y=jt.longtask;h.duration>0&&n.spans.push(jG(h)),n.experience={},lv(lc)&&(n.experience.tbt=h.duration),lv(hv)&&(n.experience.cls=d.score),p>0&&(n.experience.fid=p),y.count>0&&(n.experience.longtask={count:y.count,sum:y.duration,max:y.max})}r.setSession(n)}n.name===Dd&&(n.name=tz(o)),JG(n),r.adjustTransactionTime(n);var m=r._config.get("breakdownMetrics");m&&n.captureBreakdown();var v=r._config.get("context");Rz(n,v),r._config.events.send(F6,[n])},function(s){})},t.setSession=function(n){var r=this._config.get("session");if(r){typeof r=="boolean"?n.session={id:fu(16),sequence:1}:r.timestamp&&Date.now()-r.timestamp>yz?n.session={id:fu(16),sequence:1}:n.session={id:r.id,sequence:r.sequence?r.sequence+1:1};var o={session:{id:n.session.id,sequence:n.session.sequence,timestamp:Date.now()}};this._config.setConfig(o),this._config.setLocalConfig(o,!0)}},t.adjustTransactionTime=function(n){var r=n.spans,o=ZW(r);o&&o._start<n._start&&(n._start=o._start);var s=YW(r)||{},a=s._end||0;if(n.type===Pn){var u=n._end-D6,f=jt.lcp||0,d=KW(r)||{},p=d._end||0;n._end=Math.max(a,p,f,u)}else a>n._end&&(n._end=a);this.truncateSpans(r,n._end)},t.truncateSpans=function(n,r){for(var o=0;o<n.length;o++){var s=n[o];s._end>r&&(s._end=r,s.type+=K0),s._start>r&&(s._start=r)}},t.shouldIgnoreTransaction=function(n){var r=this._config.get("ignoreTransactions");
49if(r&&r.length)for(var o=0;o<r.length;o++){var s=r[o];if(typeof s.test=="function"){if(s.test(n))return!0}else if(s===n)return!0}return!1},t.startSpan=function(n,r,o){var s=this.getCurrentTransaction();s||(s=this.createCurrentTransaction(void 0,fv,this.createOptions({canReuse:!0,managed:!0})));var a=s.startSpan(n,r,o);return a},t.endSpan=function(n,r){n&&n.end(null,r)},e})();function eY(){fc[as]=function(e){var t=e.getService([_i,ln]),n=t[0],r=t[1];return new XG(n,r)},fc[Y6]=function(e){var t=e.getService([yf,ln,_i,as]),n=t[0],r=t[1],o=t[2],s=t[3];return new LG(n,r,o,s)}}function tY(){eY(),SG();var e=new EG;return e}var sC=40,nY=10,zt={minInteractionId:1/0,maxInteractionId:0,interactionCount:0,longestInteractions:[]};function rY(e){e===void 0&&(e=new iC(oY));var t=N6(),n=t?sC:16;e.start(mz,{buffered:!0,durationThreshold:n}),t||e.start(Nh)}function oY(e){var t=e.getEntries();t.forEach(function(n){n.interactionId&&(uY(n),!(n.duration<sC)&&aY(n))})}function iY(){if(zt.longestInteractions.length===0)return nS()>0?0:void 0;var e=Math.min(zt.longestInteractions.length-1,Math.floor(nS()/50)),t=zt.longestInteractions[e].duration;return t}function nS(){return performance.interactionCount||zt.interactionCount}function sY(){zt.minInteractionId=1/0,zt.maxInteractionId=0,zt.interactionCount=0,zt.longestInteractions=[]}function aY(e){var t=zt.longestInteractions[zt.longestInteractions.length-1];if(!(typeof t<"u"&&e.duration<=t.duration&&e.interactionId!=t.id)){var n=zt.longestInteractions.filter(function(o){return o.id===e.interactionId});if(n.length>0){var r=n[0];r.duration=Math.max(r.duration,e.duration)}else zt.longestInteractions.push({id:e.interactionId,duration:e.duration});zt.longestInteractions.sort(function(o,s){return s.duration-o.duration}),zt.longestInteractions.splice(nY)}}function uY(e){N6()||(zt.minInteractionId=Math.min(zt.minInteractionId,e.interactionId),zt.maxInteractionId=Math.max(zt.maxInteractionId,e.interactionId),zt.interactionCount=(zt.maxInteractionId-zt.minInteractionId)/7+1)}function lY(e){var t=iY();if(t>=0){var n=yi(),r=e.startTransaction(dv,dv,{startTime:n}),o=performance.getEntriesByType("navigation");if(o.length>0){var s=o[0].name;r.addContext({page:{url:s}})}r.addLabels({inp_value:t});var a=n+t+1;return r.end(a),sY(),r}}function cY(e,t){document.visibilityState==="hidden"&&($s.lastHiddenStart=0);var n=function(){document.visibilityState==="hidden"&&rS(e,t)},r=function(){return rS(e,t)},o=!0;return window.addEventListener("visibilitychange",n,o),window.addEventListener("pagehide",r,o),function(){window.removeEventListener("visibilitychange",n,o),window.removeEventListener("pagehide",r,o)}}function rS(e,t){var n=lY(t);if(n)var r=e.observeEvent(Y0,function(){oS(e,t),r()});else oS(e,t)}function oS(e,t){var n=t.getCurrentTransaction();if(n){var r=e.observeEvent(Lp,function(){$s.lastHiddenStart=yi(),r(),o()}),o=e.observeEvent(Y0,function(){e.dispatchEvent(pv),$s.lastHiddenStart=yi(),o(),r()});n.end()}else e.dispatchEvent(pv),$s.lastHiddenStart=yi()}var fY="a[data-transaction-name], button[data-transaction-name]";function dY(e){var t=function(o){o.target instanceof Element&&pY(e,o.target)},n="click",r=!0;return window.addEventListener(n,t,r),function(){window.removeEventListener(n,t,r)}}function pY(e,t){var n=hY(t),r=n.transactionName,o=n.context,s=e.startTransaction("Click - "+r,H6,{managed:!0,canReuse:!0,reuseThreshold:300});s&&o&&s.addContext(o)}function hY(e){var t={transactionName:null,context:null};t.transactionName=gY(e);var n=e.getAttribute("class");return n&&(t.context={custom:{classes:n}}),t}function gY(e){var t=mY(e);if(t)return t;var n=e.tagName.toLowerCase(),r=e.getAttribute("name");return r?n+'["'+r+'"]':n}function mY(e){var t="data-transaction-name",n=e.getAttribute(t);if(e.closest){var r=e.closest(fY);return r?r.getAttribute(t):n}return n}function yY(e,t){var n,r=(n={},n[Va]=!1,n[qa]=!1,n[Wa]=!1,n[Pn]=!1,n[W6]=!1,n[V6]=!1,n[q6]=!1,n);return e&&Object.keys(r).forEach(function(o){t.indexOf(o)===-1&&(r[o]=!0)}),r}var vY=(function(){function e(n,r){this._disable=r,this.serviceFactory=n,this._initialized=!1}var t=e.prototype;return t.isEnabled=function(){return!this._disable},t.isActive=function(){var n=this.serviceFactory.getService(ln);return this.isEnabled()&&this._initialized&&n.get("active")},t.init=function(n){var r=this;if(this.isEnabled()&&!this._initialized){this._initialized=!0;var o=this.serviceFactory.getService([ln,_i,as]),s=o[0],a=o[1],u=o[2];s.setVersion("5.16.0"),this.config(n);var f=s.get("logLevel");a.setLevel(f);var d=s.get("active");if(d){this.serviceFactory.init();var p=yY(s.get("instrument"),s.get("disableInstrumentations")),h=this.serviceFactory.getService(Y6);if(h.init(p),p[W6]){var y=this.serviceFactory.getService(gv);y.registerListeners()}if(s.get("session")){var m=s.getLocalConfig();m&&m.session&&s.setConfig({session:m.session})}var v=function(){return p[Pn]&&r._sendPageLoadMetrics()};s.get("centralConfig")?this.fetchCentralConfig().then(v):v(),cY(s,u),p[V6]&&p[q6]&&dY(u),rY()}else this._disable=!0,a.warn("RUM agent is inactive")}return this}
49,t.fetchCentralConfig=function(){var n=this.serviceFactory.getService([yf,_i,ln]),r=n[0],o=n[1],s=n[2];return r.fetchConfig(s.get("serviceName"),s.get("environment")).then(function(a){var u=a.transaction_sample_rate;if(u){u=Number(u);var f={transactionSampleRate:u},d=s.validate(f),p=d.invalid;if(p.length===0)s.setConfig(f);else{var h=p[0],y=h.key,m=h.value,v=h.allowed;o.warn('invalid value "'+m+'" for '+y+". Allowed: "+v+".")}}return a}).catch(function(a){o.warn("failed fetching config:",a)})},t._sendPageLoadMetrics=function(){var n=this.startTransaction(void 0,Pn,{managed:!0,canReuse:!0});if(n){n.addTask(Pn);var r=function(){setTimeout(function(){return n.removeTask(Pn)},D6)};document.readyState==="complete"?r():window.addEventListener("load",r)}},t.observe=function(n,r){var o=this.serviceFactory.getService(ln);o.events.observe(n,r)},t.config=function(n){var r=this.serviceFactory.getService([ln,_i]),o=r[0],s=r[1],a=o.validate(n),u=a.missing,f=a.invalid,d=a.unknown;if(d.length>0){var p="Unknown config options are specified for RUM agent: "+d.join(", ");s.warn(p)}if(u.length===0&&f.length===0)o.setConfig(n);else{var h=", ",y="RUM agent isn't correctly configured. ";u.length>0&&(y+=u.join(h)+" is missing",f.length>0&&(y+=h)),f.forEach(function(m,v){var b=m.key,S=m.value,w=m.allowed;y+=b+' "'+S+'" contains invalid characters! (allowed: '+w+")"+(v!==f.length-1?h:"")}),s.error(y),o.setConfig({active:!1})}},t.setUserContext=function(n){var r=this.serviceFactory.getService(ln);r.setUserContext(n)},t.setCustomContext=function(n){var r=this.serviceFactory.getService(ln);r.setCustomContext(n)},t.addLabels=function(n){var r=this.serviceFactory.getService(ln);r.addLabels(n)},t.setInitialPageLoadName=function(n){var r=this.serviceFactory.getService(ln);r.setConfig({pageLoadTransactionName:n})},t.startTransaction=function(n,r,o){if(this.isEnabled()){var s=this.serviceFactory.getService(as);return s.startTransaction(n,r,o)}},t.startSpan=function(n,r,o){if(this.isEnabled()){var s=this.serviceFactory.getService(as);return s.startSpan(n,r,o)}},t.getCurrentTransaction=function(){if(this.isEnabled()){var n=this.serviceFactory.getService(as);return n.getCurrentTransaction()}},t.captureError=function(n){if(this.isEnabled()){var r=this.serviceFactory.getService(gv);return r.logError(n)}},t.addFilter=function(n){var r=this.serviceFactory.getService(ln);r.addFilter(n)},e})(),iS=!1;function _Y(){return VW()?(xG(),$s.bootstrapTime=yi(),iS=!0):Ds&&console.log("[Elastic APM] platform is not supported!"),iS}function bY(){if(Ds&&window.elasticApm)return window.elasticApm;var e=_Y(),t=tY(),n=new vY(t,!e);return Ds&&(window.elasticApm=n),n}var Sv=bY();Sv.init.bind(Sv);var wY=100;function EY(e){var t=function(){clearTimeout(n),cancelAnimationFrame(r),setTimeout(e)},n=setTimeout(t,wY),r=requestAnimationFrame(t)}function SY(e,t){var n;e.beforeEach(function(r,o,s){var a=r.matched||[],u=r.path;a.length>0&&(u=a[a.length-1].path||u),n=t.startTransaction(u,"route-change",{managed:!0,canReuse:!0}),s()}),e.afterEach(function(){EY(function(){return n&&n.detectFinish()})}),e.onError(function(){n&&n.end()})}function $Y(e,t){var n=this,r=e.config.errorHandler;return function(o,s,a){if(s&&s.$options){var u=s.$options,f;s.$root===s?f="Root":f=u.name||u._componentTag||"Anonymous",o.component=f,o.file=u.__file||""}a&&(o.lifecycleHook=a),t.captureError(o),typeof r=="function"&&r.call(n,o,s,a),console.error(o)}}var TY={install:function(e,t){var n=t.router,r=t.apm,o=r===void 0?Sv:r,s=t.config,a=t.captureErrors,u=a===void 0?!0:a,f=e.version.split(".").shift();o.init(s),o.isActive()&&(n&&SY(n,o),u&&(e.config.errorHandler=$Y(e,o))),f>=3?(e.config.globalProperties.$apm=o,e.provide("$apm",o)):e.prototype.$apm=o}};const IY=["page-load","history","eventtarget","xmlhttprequest","fetch"];function AY(e,t,n){const r=Math.random()<=+t.rumActivePercent;if(!r)return;const o=t.serviceName?.startsWith("frontend-")?t.serviceName:`frontend-${t.serviceName}`;e.use(TY,{router:n,config:{serviceName:o,serverUrl:`https://${t.apmServerDomain}`,environment:t.environment??"prod",breakdownMetrics:!0,active:r,disableInstrumentations:IY,pageLoadTraceId:t.pageLoadTraceId,pageLoadSpanId:t.pageLoadSpanId,pageLoadSampled:t.pageLoadSampled,transactionSampleRate:t.transactionSampleRate}})}const $v=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),aC=(e,t)=>{const n={...e};for(const r of Object.keys(t))$v(n[r])&&$v(t[r])?n[r]=aC(n[r],t[r]):n[r]=t[r];return n},xY=(e,t)=>e?t?{mutations:(e.mutations??[]).concat(t.mutations??[]),queries:(e.queries??[]).concat(t.queries??[])}:e:t,CY=e=>e.reduce((t,n)=>{const r=t;for(const o in n)switch(o){case Id:{r[o]=aC(t[Id]??{},n[Id]??{});continue}case Ad:{r[o]=xY(t[Ad],n[Ad]);continue}default:r[o]={...t[o]??{},...n[o]??{}}}return r},{}),RY=e=>{const t=window[UN];if(t&&$v(t)){const n=Object.values(t);if(n.length>0)return CY(n)}return window[e]};let OY=class{constructor(t,n,r){this.component=t,this.createRouter=n,this.config=r,this.applyGraphqlClient=o=>{const s=this.getAppName(o),a=jN(globalThis.window.location?.hostname);try{o.gqlClient.headers["x-appname"]??=s,o.gqlClient.headers["x-platform"]??=a}catch{o.gqlClient=UB.createInstance({config:{appName:s,entry:o.extProps?.entryClient,wsEntry:o.extProps?.wsEntryClient,defaultHeaders:{"x-platform":a},timeout:0}})}return WN(o.gqlClient),o.gqlClient},this.applyHead=()=>{const o=PN();return this.app.use(o),o},this.applyPinia=o=>{const s=o?.[Id],a=k3();return s&&(a.state.value=s),this.app.use(a),Yc(a),a},this.applyVueQuery=o=>{const s=o?.[Ad],a=new z3;return s&&OM(a,s),this.app.use(UM,{queryClient:a}),a},this.applyAppProps=(o,s)=>{if(GN(o),!s)return o;const a=s?.[BN];return o.setExtProps({...a||{},...o.extProps}),o},this.applyFeatureFlags=(o,s)=>{const a=s?.[NN];o.initFeatureFlagsInBrowser(a??{})},this.applyFlagsVariants=(o,s)=>{const a=s?.[DN];
49o.unleashClient&&o.unleashClient.initVariantsInBrowser?.(a??{})},this.applyApm=o=>{const s=o.extProps?.apmConfig;if(s?.useApm){if(!s.apmServerDomain||!s.serviceName||!s.rumActivePercent||isNaN(+s.rumActivePercent)){console.warn(`ÐеÑÐµÐ´Ð°Ð½Ñ Ð½ÐµÐºÐ¾ÑÑекÑнÑе паÑамеÑÑÑ Ð´Ð»Ñ APM: ${JSON.stringify(s)}`);return}AY(this.app,s)}},this.getAppName=o=>this.config?.appName??o.extProps?.appName??"",this.applySentry=(o,s)=>{vW(this.app,this.getAppName(o),s);const a=o.extProps?.apmConfig;_W({traceId:a?.pageLoadTraceId,sampled:a?.pageLoadSampled})},VN(r?.singletonStorage??new Map)}get app(){if(!this._app)throw new Error("[create-isomorphic-app][ClientApp]: App еÑе не Ñоздана, createApp не вÑполнен");return this._app}waitForStreamComplete(){return window.ssr_stream?.complete??Promise.resolve()}async createApp(t,n,r){!this.config?.csrMode&&window.ssr_stream&&await this.waitForStreamComplete();const o=RY(n),s=this.applyAppProps(t,o);return this.applyGraphqlClient(s),this._app=(this.config?.csrMode?eM:tM)(this.component,{appPropsFacade:t,...r}),Q7(t.logger,this.app),zN(t.logger),this.app.provide(UA,t),n?(t.setExtProps({...t.extProps,windowStateKey:n}),this.applyHead(),await this.applyRouter(s),this.applyApm(s),this.applyPinia(o),this.applyVueQuery(o),this.applyFeatureFlags(t,o),this.applyFlagsVariants(t,o),this.applySentry(t,{...t.extProps.sentryConfig,...this.config?.sentryConfig}),this):this}async applyRouter(t){if(!this.createRouter)return;const n=await this.createRouter(t);return this.app.use(n),Promise.resolve(n)}async mount(t){!this.config?.csrMode&&window.ssr_stream&&await this.waitForStreamComplete(),this.app.mount(t)}},uC=class{constructor(t,n){this._extProps=t,this._unleashClient=n,this._diDeps=new Map,this._pinia=k3()}get extProps(){return this._extProps}setExtProps(t){this._extProps=t}get diDeps(){return this._diDeps}setDiDeps(t){for(const[n,r]of Object.entries(t))this._diDeps.set(n,r)}updateGqlClient(t,n,r){this.gqlClient.updateHttpEntry(t),this.gqlClient.updateWsEntry(n),this.gqlClient.updateHeaders(r)}get appState(){return this.pinia}get pinia(){return this._pinia}getAppStateValue(){return this.pinia.state.value}setAppState(t){this.pinia.state.value=t}get gqlClient(){if(!this.diDeps.has("gql-client"))throw new Error("[App props facade] Ð½ÐµÑ ÑÑÑановленного gql client");return this.diDeps.get("gql-client")}set gqlClient(t){this.setDiDeps({"gql-client":t})}initFeatureFlagsInBrowser(t){this._unleashClient?.initFlagsInBrowser?.(t)}isFeatureFlagEnabled(t){return!!this._unleashClient?.isFlagEnabled(t)}getAllFeatureFlags(){return this._unleashClient?.getAllFeaturesFlags()??{}}get queryClient(){return this._queryClient}setQueryClient(t){this._queryClient=t}get logger(){return this._logger}set logger(t){this._logger=t}get unleashClient(){return this._unleashClient}},Tv=class extends Error{get isSSRAppError(){return!0}constructor(t){super(t.message),this.statusCode=t.statusCode,this.redirect=t.redirect}};const sS=Symbol("appPropsFacade"),vf=e=>{if(e)return di(sS,e),e;const t=Gt(sS);if(!t)throw new Error("INJECTION_ERROR: ÐÑÑÑÑÑÑвÑÐµÑ appPropsFacade");return t},kY={initFlagsInBrowser(){},isFlagEnabled(e){return e==="test_flag"}},LY=new uC({},kY);LY.setDiDeps({crossFetch:{},cookiesGeoService:{get:()=>{}}});let MY=class{constructor(){this.flags={},this.variants={}}initFlagsInBrowser(t){this.flags=t}initVariantsInBrowser(t){this.variants=t,Object.entries(t).forEach(([n,r])=>{!r.enabled||r.name==="disabled"||globalThis.localStorage.setItem(`sports:variant:${n}`,r.name)})}isFlagEnabled(t){return this.flags[t]??!1}getAllFeaturesFlags(){return this.flags}getAllVariants(){return this.variants}getVariant(t){return this.variants[t]}getRenderUsedVariants(){return this.variants}};const PY=["srcset","media"],BY=["src"],NY=xe({__name:"UIAvatar",props:{src:{type:String,default:""},imageSources:{type:Object,default:()=>({})},size:{type:String,default:"md"},withBorder:{type:Boolean,default:!0},whiteBackground:{type:Boolean,default:!1}},setup(e){const t=e,n=()=>t.imageSources.original?.normal||t.src,r=s=>{const a=[];return s.normal&&a.push(`${s.normal} 1x`),s.retina&&a.push(`${s.retina} 2x`),a.join(", ")},o=J(()=>Object.entries(t.imageSources).map(([s,a])=>({key:s,srcset:r(a),media:a.media})).filter(({srcset:s})=>!!s));return(s,a)=>(U(),X("picture",{class:Be(["ui-avatar",[`ui-avatar--${e.size}
49`,{"ui-avatar--white-background":e.whiteBackground}]])},[(U(!0),X(He,null,dt(o.value,u=>(U(),X("source",{key:u.key,srcset:u.srcset,media:u.media},null,8,PY))),128)),te("img",un({src:n()},{...s.$attrs,class:void 0},{class:["ui-image",{"ui-image--with-border":e.withBorder}]}),null,16,BY)],2))}}),Fo=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},pu=Fo(NY,[["__scopeId","data-v-50f776ac"]]),DY="modulepreload",UY=function(e){return"https://senoval.cdn.sports.ru/roberto-contentos/short-posts-ssi/"+e},aS={},Rt=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){let f=function(d){return Promise.all(d.map(p=>Promise.resolve(p).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),u=a?.nonce||a?.getAttribute("nonce");o=f(n.map(d=>{if(d=UY(d),d in aS)return;aS[d]=!0;const p=d.endsWith(".css"),h=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${h}`))return;const y=document.createElement("link");if(y.rel=p?"stylesheet":DY,p||(y.as="script"),y.crossOrigin="",y.href=d,u&&y.setAttribute("nonce",u),document.head.appendChild(y),p)return new Promise((m,v)=>{y.addEventListener("load",m),y.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${d}`)))})}))}function s(a){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=a,window.dispatchEvent(u),!u.defaultPrevented)throw a}return o.then(a=>{for(const u of a||[])u.status==="rejected"&&s(u.reason);return t().catch(s)})},on=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},HY={},FY={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function jY(e,t){return U(),X("svg",FY,t[0]||(t[0]=[te("path",{d:"M3 8L6 11L13 4",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"square"},null,-1)]))}const lC=on(HY,[["render",jY]]),VY={},qY={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function WY(e,t){return U(),X("svg",qY,t[0]||(t[0]=[te("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.5 1.5H6.03647L5.82918 1.91459L5.53647 2.50001H3V4.00001H6H10H13V2.50001H10.4635L10.1708 1.91459L9.96353 1.5H9.5H6.5ZM4.49995 4.50002H3.74995V5.25002V13.75C3.74995 14.1642 4.08574 14.5 4.49995 14.5H11.5C11.9142 14.5 12.25 14.1642 12.25 13.75V5.25002V4.50002H11.5H4.49995ZM5.24995 13V6.00002H10.75V13H5.24995Z",fill:"currentColor"},null,-1)]))}const cC=on(VY,[["render",WY]]),zY={},GY={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function YY(e,t){return U(),X("svg",GY,t[0]||(t[0]=[te("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3ZM19 5V19H5V5H19ZM11.14 15.73L14.14 11.86L18 17H6L9 13.14L11.14 15.73Z",fill:"currentColor"},null,-1)]))}const fC=on(zY,[["render",YY]]),KY={},ZY={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function QY(e,t){return U(),X("svg",ZY,t[0]||(t[0]=[te("path",{d:"M17 3H7C5.9 3 5.01 3.9 5.01 5L5 21L12 18L19 21V5C19 3.9 18.1 3 17 3ZM17 18L12 15.82L7 18V5H17V18Z",fill:"currentColor"},null,-1)]))}const JY=on(KY,[["render",QY]]),XY={},eK={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function tK(e,t){return U(),X("svg",eK,t[0]||(t[0]=[te("path",{d:"M8.72727 15.9291L4.43182 11.6978L3 13.1082L8.72727 18.75L21 6.66045L19.5682 5.25L8.72727 15.9291Z",fill:"currentColor"},null,-1)]))}const nK=on(XY,[["render",tK]]),rK={},oK={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function iK(e,t){return U(),X("svg",oK,t[0]||(t[0]=[te("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.69 6.54995L2.01 3.86995L3.42 2.44995L21.15 20.19L19.74 21.6L16.32 18.18C14.98 18.71 13.52 19 12 19C7 19 2.73 15.89 1 11.5C1.77 9.52995 3.06 7.82995 4.69 6.54995ZM12.0004 5.99976C15.7904 5.99976 19.1704 8.12976 20.8204 11.4998C20.2304 12.7198 19.4004 13.7698 18.4104 14.6198L19.8204 16.0298C21.2104 14.7998 22.3104 13.2598 23.0004 11.4998C21.2704 7.10976 17.0004 3.99976 12.0004 3.99976C10.7304 3.99976 9.51035 4.19976 8.36035 4.56976L10.0104 6.21976C10.6604 6.08976 11.3204 5.99976 12.0004 5.99976ZM10.9297 7.13976L12.9997 9.20976C13.5697 9.45976 14.0297 9.91976 14.2797 10.4898L16.3497 12.5598C16.4297 12.2198 16.4897 11.8598 16.4897 11.4898C16.4997 9.00976 14.4797 6.99976 11.9997 6.99976C11.6297 6.99976 11.2797 7.04976 10.9297 7.13976ZM9.51 11.37L12.12 13.98
49C12.08 13.99 12.04 14 12 14C10.62 14 9.5 12.88 9.5 11.5C9.5 11.475 9.5025 11.455 9.505 11.435L9.505 11.435L9.505 11.4349C9.5075 11.4149 9.51 11.3949 9.51 11.37ZM7.85969 9.71997L6.10969 7.96997C4.89969 8.88997 3.87969 10.07 3.17969 11.5C4.82969 14.87 8.20969 17 11.9997 17C12.9497 17 13.8697 16.86 14.7497 16.62L13.7697 15.64C13.2297 15.87 12.6297 16 11.9997 16C9.51969 16 7.49969 13.98 7.49969 11.5C7.49969 10.87 7.62969 10.27 7.85969 9.71997Z",fill:"currentColor"},null,-1)]))}const sK=on(rK,[["render",iK]]),aK={},uK={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function lK(e,t){return U(),X("svg",uK,t[0]||(t[0]=[te("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11 13V20H13V13H20V11H13V4H11V11H4V13H11Z",fill:"currentColor"},null,-1)]))}const cK=on(aK,[["render",lK]]),fK={},dK={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function pK(e,t){return U(),X("svg",dK,t[0]||(t[0]=[te("path",{d:"M10.5572 5.79999H3V7.91462V18.2H6.13156L10.9065 9.01573H11.5277V18.2H14.6592L21 5.79999H10.5572Z",fill:"currentColor"},null,-1)]))}const X0=on(fK,[["render",pK]]),hK={},gK={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function mK(e,t){return U(),X("svg",gK,t[0]||(t[0]=[te("path",{d:"M16 6L14.58 7.42L12.99 5.83V17H11.01V5.83L9.42 7.42L8 6L12 2L16 6ZM20 11V20C20 21.1 19.1 22 18 22H6C4.89 22 4 21.1 4 20V11C4 9.89 4.89 9 6 9H9V11H6V20H18V11H15V9H18C19.1 9 20 9.89 20 11Z",fill:"currentColor"},null,-1)]))}const dC=on(hK,[["render",mK]]),yK={},vK={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function _K(e,t){return U(),X("svg",vK,t[0]||(t[0]=[te("path",{d:"M19 3H5C3.9 3 3 3.81 3 4.8V21L7 17.4H19C20.1 17.4 21 16.59 21 15.6V4.8C21 3.81 20.1 3 19 3ZM19 15.6H7L5 17.4V4.8H19V15.6Z",fill:"currentColor"},null,-1)]))}const pC=on(yK,[["render",_K]]),bK={},wK={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function EK(e,t){return U(),X("svg",wK,t[0]||(t[0]=[te("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3 3.5C3 2.67157 3.67157 2 4.5 2H18.5C19.3284 2 20 2.67157 20 3.5V11H18V4H5V20H10V22H4.5C3.67157 22 3 21.3284 3 20.5V3.5ZM7 7C7 6.44772 7.44772 6 8 6H15C15.5523 6 16 6.44772 16 7C16 7.55228 15.5523 8 15 8H8C7.44772 8 7 7.55228 7 7ZM8 10C7.44772 10 7 10.4477 7 11C7 11.5523 7.44772 12 8 12H15C15.5523 12 16 11.5523 16 11C16 10.4477 15.5523 10 15 10H8ZM7 15C7 14.4477 7.44772 14 8 14H11C11.5523 14 12 14.4477 12 15C12 15.5523 11.5523 16 11 16H8C7.44772 16 7 15.5523 7 15ZM17.1919 13.6575C18.0615 12.7807 19.4773 12.7807 20.3474 13.6581C21.2175 14.5355 21.2175 15.9631 20.3474 16.8405L16.2719 20.9421C16.1812 21.0335 16.0686 21.0996 15.945 21.1341L12.9425 21.9727C12.8769 21.9911 12.8101 22 12.744 22C12.5462 22 12.3534 21.9204 12.2114 21.7737C12.022 21.5779 11.9533 21.2937 12.0321 21.0319L12.9216 18.0794C12.9572 17.9612 13.0212 17.8537 13.1079 17.7664L17.1919 13.6575ZM13.8488 20.163L15.3593 19.7411L18.0988 16.984L17.0465 15.923L14.2909 18.6955L13.8488 20.163ZM19.1518 15.9243L19.2959 15.7793C19.5855 15.4872 19.5855 15.0114 19.2954 14.7189C19.0054 14.4265 18.5335 14.4265 18.2434 14.7189L18.0998 14.8635L19.1518 15.9243Z",fill:"currentColor"},null,-1)]))}const hC=on(bK,[["render",EK]]),SK={},$K={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function TK(e,t){return U(),X("svg",$K,t[0]||(t[0]=[te("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4ZM2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12ZM13 7L13 14L11 14L11 7L13 7ZM13 17V15L11 15V17L13 17Z",fill:"currentColor"},null,-1)]))}const gC=on(SK,[["render",TK]]),IK={},AK={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function xK(e,t){return U(),X("svg",AK,t[0]||(t[0]=[te("path",{d:"M12 15.75L6 9.66892L7.4 8.25L12 12.9122L16.6 8.25L18 9.66892L12 15.75Z",fill:"currentColor"},null,-1)]))}
49const e_=on(IK,[["render",xK]]),CK={},RK={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function OK(e,t){return U(),X("svg",RK,t[0]||(t[0]=[te("path",{d:"M14.3311 18L8.25 12L14.3311 6L15.75 7.4L11.0878 12L15.75 16.6L14.3311 18Z",fill:"currentColor"},null,-1)]))}const Nu=on(CK,[["render",OK]]),kK={},LK={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function MK(e,t){return U(),X("svg",LK,t[0]||(t[0]=[te("path",{d:"M12.9122 12L8.25 7.4L9.66892 6L15.75 12L9.66892 18L8.25 16.6L12.9122 12Z",fill:"currentColor"},null,-1)]))}const Js=on(kK,[["render",MK]]),PK={},BK={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function NK(e,t){return U(),X("svg",BK,t[0]||(t[0]=[te("path",{d:"M20 11H7.83L13.42 5.41L12 4L4 12L12 20L13.41 18.59L7.83 13H20V11Z",fill:"currentColor"},null,-1)]))}const t_=on(PK,[["render",NK]]),DK={},UK={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function HK(e,t){return U(),X("svg",UK,t[0]||(t[0]=[te("path",{d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z",fill:"currentColor"},null,-1)]))}const n_=on(DK,[["render",HK]]),FK={},jK={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function VK(e,t){return U(),X("svg",jK,t[0]||(t[0]=[te("path",{d:"M4 11H16.17L10.58 5.41L12 4L20 12L12 20L10.59 18.59L16.17 13H4V11Z",fill:"currentColor"},null,-1)]))}const r_=on(FK,[["render",VK]]),qK={},WK={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function zK(e,t){return U(),X("svg",WK,t[0]||(t[0]=[te("path",{d:"M12 8C13.1 8 14 7.1 14 6C14 4.9 13.1 4 12 4C10.9 4 10 4.9 10 6C10 7.1 10.9 8 12 8ZM12 10C10.9 10 10 10.9 10 12C10 13.1 10.9 14 12 14C13.1 14 14 13.1 14 12C14 10.9 13.1 10 12 10ZM12 16C10.9 16 10 16.9 10 18C10 19.1 10.9 20 12 20C13.1 20 14 19.1 14 18C14 16.9 13.1 16 12 16Z",fill:"currentColor"},null,-1)]))}const GK=on(qK,[["render",zK]]);var ut=(e=>(e.SUCCESS="success",e.DANGER="danger",e.DEFAULT="default",e))(ut||{}),_f=(e=>(e.BUTTON="button",e.A="a",e.ROUTER_LINK="router-link",e))(_f||{}),ot=(e=>(e.SM="sm",e.MD="md",e.XS="xs",e))(ot||{}),pt=(e=>(e.PRIMARY="primary",e.SECONDARY="secondary",e.TERTIARY="tertiary",e))(pt||{});const YK=xe({__name:"UILoader",props:{color:{type:String,default:"content"},size:{type:String,default:"sm"}},setup(e){const t=e,n=J(()=>`ui-loader--${t.color} ui-loader--${t.size}`);return(r,o)=>(U(),X("div",{class:Be(["ui-loader",n.value])},null,2))}}),o_=Fo(YK,[["__scopeId","data-v-091b588b"]]),KK={key:0,class:"ui-button__preloader"},ZK={key:1,class:"ui-button__icon ui-button__icon-left"},QK={class:"ui-button__content"},JK={key:2,class:"ui-button__icon ui-button__icon-right"},XK=xe({__name:"UIButton",props:{as:{type:String,default:_f.BUTTON},variant:{type:String,default:pt.PRIMARY},color:{type:String,default:ut.SUCCESS},size:{type:String,default:ot.SM},rounded:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1},short:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},setup(e){return(t,n)=>(U(),we(Xt(e.as),{class:Be(["ui-button ui-button-lowercase",[`ui-button--${e.variant}-${e.color}`,`ui-button--size-${e.size}`,{"ui-button--rounded":e.rounded,"ui-button--full-width":e.fullWidth,"ui-button--align-left":t.$slots.iconLeft,"ui-button--align-center":!t.$slots.iconLeft&&!t.$slots.iconRight,"ui-button--align-right":t.$slots.iconRight,"ui-button--short":e.short}]]),tabindex:"1",disabled:e.disabled||e.loading},{default:be(()=>[e.loading?(U(),X("span",KK,[ye(o_,{class:"ui-button__preloader-icon",size:"sm"})])):Ie("",!0),t.$slots.iconLeft?(U(),X("span",ZK,[De(t.$slots,"iconLeft",{},void 0,!0)])):Ie("",!0),te("span",QK,[De(t.$slots,"default",{},void 0,!0)]),t.$slots.iconRight?(U(),X("span",JK,[De(t.$slots,"iconRight",{},void 0,!0)])):Ie("",!0)]),_:3},8,["class","disabled"]))}}),St=Fo(XK,[["__scopeId","data-v-cf77e37f"]]),eZ=xe({__name:"UIDivider",props:{type:{type:String,default:"primary"},margin:{type:Boolean,default:!1}},setup(e){return(t,n)=>(U(),X("div",{class:Be(["ui-divider",{["ui-divider--"+e.type]:!0,"ui-divider--margin":e.margin}])},null,2))}}),mC=Fo(eZ,[["__scopeId","data-v-e95e8264"]]),Ti=Math.min,jn=Math.max,Mp=Math.round,td=Math.floor,no=e=>({x:e,y:e}
vendor: 10,723 bytes, line 49
49),tZ={left:"right",right:"left",bottom:"top",top:"bottom"},nZ={start:"end",end:"start"};function Iv(e,t,n){return jn(e,Ti(t,n))}function Du(e,t){return typeof e=="function"?e(t):e}function Ii(e){return e.split("-")[0]}function Uu(e){return e.split("-")[1]}function yC(e){return e==="x"?"y":"x"}function i_(e){return e==="y"?"height":"width"}const rZ=new Set(["top","bottom"]);function $o(e){return rZ.has(Ii(e))?"y":"x"}function s_(e){return yC($o(e))}function oZ(e,t,n){n===void 0&&(n=!1);const r=Uu(e),o=s_(e),s=i_(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=Pp(a)),[a,Pp(a)]}function iZ(e){const t=Pp(e);return[Av(e),t,Av(t)]}function Av(e){return e.replace(/start|end/g,t=>nZ[t])}const uS=["left","right"],lS=["right","left"],sZ=["top","bottom"],aZ=["bottom","top"];function uZ(e,t,n){switch(e){case"top":case"bottom":return n?t?lS:uS:t?uS:lS;case"left":case"right":return t?sZ:aZ;default:return[]}}function lZ(e,t,n,r){const o=Uu(e);let s=uZ(Ii(e),n==="start",r);return o&&(s=s.map(a=>a+"-"+o),t&&(s=s.concat(s.map(Av)))),s}function Pp(e){return e.replace(/left|right|bottom|top/g,t=>tZ[t])}function cZ(e){return{top:0,right:0,bottom:0,left:0,...e}}function vC(e){return typeof e!="number"?cZ(e):{top:e,right:e,bottom:e,left:e}}function Bp(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function cS(e,t,n){let{reference:r,floating:o}=e;const s=$o(t),a=s_(t),u=i_(a),f=Ii(t),d=s==="y",p=r.x+r.width/2-o.width/2,h=r.y+r.height/2-o.height/2,y=r[u]/2-o[u]/2;let m;switch(f){case"top":m={x:p,y:r.y-o.height};break;case"bottom":m={x:p,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:h};break;case"left":m={x:r.x-o.width,y:h};break;default:m={x:r.x,y:r.y}}switch(Uu(t)){case"start":m[a]-=y*(n&&d?-1:1);break;case"end":m[a]+=y*(n&&d?-1:1);break}return m}async function fZ(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:a,elements:u,strategy:f}=e,{boundary:d="clippingAncestors",rootBoundary:p="viewport",elementContext:h="floating",altBoundary:y=!1,padding:m=0}=Du(t,e),v=vC(m),S=u[y?h==="floating"?"reference":"floating":h],w=Bp(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(S)))==null||n?S:S.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(u.floating)),boundary:d,rootBoundary:p,strategy:f})),T=h==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,I=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u.floating)),C=await(s.isElement==null?void 0:s.isElement(I))?await(s.getScale==null?void 0:s.getScale(I))||{x:1,y:1}:{x:1,y:1},A=Bp(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:T,offsetParent:I,strategy:f}):T);return{top:(w.top-A.top+v.top)/C.y,bottom:(A.bottom-w.bottom+v.bottom)/C.y,left:(w.left-A.left+v.left)/C.x,right:(A.right-w.right+v.right)/C.x}}const dZ=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:a}=n,u=s.filter(Boolean),f=await(a.isRTL==null?void 0:a.isRTL(t));let d=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:h}=cS(d,r,f),y=r,m={},v=0;for(let S=0;S<u.length;S++){var b;const{name:w,fn:T}=u[S],{x:I,y:C,data:A,reset:$}=await T({x:p,y:h,initialPlacement:r,placement:y,strategy:o,middlewareData:m,rects:d,platform:{...a,detectOverflow:(b=a.detectOverflow)!=null?b:fZ},elements:{reference:e,floating:t}});p=I??p,h=C??h,m={...m,[w]:{...m[w],...A}},$&&v<=50&&(v++,typeof $=="object"&&($.placement&&(y=$.placement),$.rects&&(d=$.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):$.rects),{x:p,y:h}=cS(d,y,f)),S=-1)}return{x:p,y:h,placement:y,strategy:o,middlewareData:m}},pZ=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:a,elements:u,middlewareData:f}=t,{element:d,padding:p=0}=Du(e,t)||{};if(d==null)return{};const h=vC(p),y={x:n,y:r},m=s_(o),v=i_(m),b=await a.getDimensions(d),S=m==="y",w=S?"top":"left",T=S?"bottom":"right",I=S?"clientHeight":"clientWidth",C=s.reference[v]+s.reference[m]-y[m]-s.floating[v],A=y[m]-s.reference[m],$=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let k=$?$[I]:0;(!k||!await(a.isElement==null?void 0:a.isElement($)))&&(k=u.floating[I]||s.floating[v]);const x=C/2-A/2,O=k/2-b[v]/2-1,M=Ti(h[w],O),j=Ti(h[T],O),V=M,W=k-b[v]-j,Y=k/2-b[v]/2+x,ne=Iv(V,Y,W),Z=!f.arrow&&Uu(o)!=null&&Y!==ne&&s.reference[v]/2-(Y<V?M:j)-b[v]/2<0,ae=Z?Y<V?Y-V:Y-W:0;return{[m]:y[m]+ae,data:{[m]:ne,centerOffset:Y-ne-ae,...Z&&{alignmentOffset:ae}},reset:Z}}}),hZ=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:a,initialPlacement:u,platform:f,elements:d}=t,{mainAxis:p=!0,crossAxis:h=!0,fallbackPlacements:y,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:b=!0,...S}=Du(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const w=Ii(o),T=$o(u),I=Ii(u)===u,C=await(f.isRTL==null?void 0:f.isRTL(d.floating)),A=y||(I||!b?[Pp(u)]:iZ(u)),$=v!=="none";!y&&$&&A.push(...lZ(u,b,v,C));const k=[u,...A],x=await f.detectOverflow(t,S),O=[];let M=((r=s.flip)==null?void 0:r.overflows)||[];if(p&&O.push(x[w]),h){const Y=oZ(o,a,C);O.push(x[Y[0]],x[Y[1]])}if(M=[...M,{placement:o,overflows:O}],!O.every(Y=>Y<=0)){var j,V;const Y=(((j=s.flip)==null?void 0:j.index)||0)+1,ne=k[Y];if(ne&&(!(h==="alignment"?T!==$o(ne):!1)||M.every(ce=>$o(ce.placement)===T?ce.overflows[0]>0:!0)))return{data:{index:Y,overflows:M},reset:{placement:ne}};let Z=(V=M.filter(ae=>ae.overflows[0]<=0).sort((ae,ce)=>ae.overflows[1]-ce.overflows[1])[0])==null?void 0:V.placement;if(!Z)switch(m){case"bestFit":{var W;const ae=(W=M.filter(ce=>{if($){const q=$o(ce.placement);return q===T||q==="y"}return!0}).map(ce=>[ce.placement,ce.overflows.filter(q=>q>0).reduce((q,ue)=>q+ue,0)]).sort((ce,q)=>ce[1]-q[1])[0])==null?void 0:W[0];ae&&(Z=ae);break}case"initialPlacement":Z=u;break}if(o!==Z)return{reset:{placement:Z}}}return{}}}},gZ=new Set(["left","top"]);async function mZ(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=Ii(n),u=Uu(n),f=$o(n)==="y",d=gZ.has(a)?-1:1,p=s&&f?-1:1,h=Du(t,e);let{mainAxis:y,crossAxis:m,alignmentAxis:v}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return u&&typeof v=="number"&&(m=u==="end"?v*-1:v),f?{x:m*p,y:y*d}:{x:y*d,y:m*p}}const yZ=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:a,middlewareData:u}=t,f=await mZ(t,e);return a===((n=u.offset)==null?void 0:n.placement)&&(r=u.arrow)!=null&&r.alignmentOffset?{}:{x:o+f.x,y:s+f.y,data:{...f,placement:a}}}}},vZ=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:s}=t,{mainAxis:a=!0,crossAxis:u=!1,limiter:f={fn:w=>{let{x:T,y:I}=w;return{x:T,y:I}}},...d}=Du(e,t),p={x:n,y:r},h=await s.detectOverflow(t,d),y=$o(Ii(o)),m=yC(y);let v=p[m],b=p[y];if(a){const w=m==="y"?"top":"left",T=m==="y"?"bottom":"right",I=v+h[w],C=v-h[T];v=Iv(I,v,C)}if(u){const w=y==="y"?"top":"left",T=y==="y"?"bottom":"right",I=b+h[w],C=b-h[T];b=Iv(I,b,C)}const S=f.fn({...t,[m]:v,[y]:b});return{...S,data:{x:S.x-n,y:S.y-r,enabled:{[m]:a,[y]:u}}}}}},_Z=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:a,elements:u}=t,{apply:f=()=>{},...d}=Du(e,t),p=await a.detectOverflow(t,d),h=Ii(o),y=Uu(o),m=$o(o)==="y",{width:v,height:b}=s.floating;let S,w;h==="top"||h==="bottom"?(S=h,w=y===(await(a.isRTL==null?void 0:a.isRTL(u.floating))?"start":"end")?"left":"right"):(w=h,S=y==="end"?"top":"bottom");const T=b-p.top-p.bottom,I=v-p.left-p.right,C=Ti(b-p[S],T),A=Ti(v-p[w],I),$=!t.middlewareData.shift;let k=C,x=A;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(x=I),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(k=T),$&&!y){const M=jn(p.left,0),j=jn(p.right,0),V=jn(p.top,0),W=jn(p.bottom,0);m?x=v-2*(M!==0||j!==0?M+j:jn(p.left,p.right)):k=b-2*(V!==0||W!==0?V+W:jn(p.top,p.bottom))}await f({...t,availableWidth:x,availableHeight:k});const O=await a.getDimensions(u.floating);return v!==O.width||b!==O.height?{reset:{rects:!0}}:{}}}};function Dh(){return typeof window<"u"}function Xs(e){return a_(e)?(e.nodeName||"").toLowerCase():"#document"}function zn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function uo(e){var t;return(t=(a_(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function a_(e){return Dh()?e instanceof Node||e instanceof zn(e).Node:!1}function Cr(e){return Dh()?e instanceof Element||e instanceof zn(e).Element:!1}function ao(e){return Dh()?e instanceof HTMLElement||e instanceof zn(e).HTMLElement:!1}function fS(e){return!Dh()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof zn(e).ShadowRoot}const bZ=new Set(["inline","contents"]);function bf(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Rr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!bZ.has(o)}const wZ=new Set(["table","td","th"]);function EZ(e){return wZ.has(Xs(e))}const SZ=[":popover-open",":modal"];function Uh(e){return SZ.some(t=>{try{return e.matches(t)}catch{return!1}})}const $Z=["transform","translate","scale","rotate","perspective"],TZ=["transform","translate","scale","rotate","perspective","filter"],IZ=["paint","layout","strict","content"];function u_(e){const t=l_(),n=Cr(e)?Rr(e):e;return $Z.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||TZ.some(r=>(n.willChange||"").includes(r))||IZ.some(r=>(n.contain||"").includes(r))}function AZ(e){let t=Ai(e);for(;ao(t)&&!hu(t);){if(u_(t))return t;if(Uh(t))return null;t=Ai(t)}return null}function l_(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const xZ=new Set(["html","body","#document"]);function hu(e){return xZ.has(Xs(e))}function Rr(e){return zn(e).getComputedStyle(e)}function Hh(e){return Cr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ai(e){if(Xs(e)==="html")return e;const t=e.assignedSlot||e.parentNode||fS(e)&&e.host||uo(e);return fS(t)?t.host:t}function _C(e){const t=Ai(e);return hu(t)?e.ownerDocument?e.ownerDocument.body:e.body:ao(t)&&bf(t)?t:_C(t)}function dc(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=_C(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),a=zn(o);if(s){const u=xv(a);
vendor: 4,176 bytes, line 49
49return t.concat(a,a.visualViewport||[],bf(o)?o:[],u&&n?dc(u):[])}return t.concat(o,dc(o,[],n))}function xv(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function bC(e){const t=Rr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ao(e),s=o?e.offsetWidth:n,a=o?e.offsetHeight:r,u=Mp(n)!==s||Mp(r)!==a;return u&&(n=s,r=a),{width:n,height:r,$:u}}function c_(e){return Cr(e)?e:e.contextElement}function za(e){const t=c_(e);if(!ao(t))return no(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=bC(t);let a=(s?Mp(n.width):n.width)/r,u=(s?Mp(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!u||!Number.isFinite(u))&&(u=1),{x:a,y:u}}const CZ=no(0);function wC(e){const t=zn(e);return!l_()||!t.visualViewport?CZ:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function RZ(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==zn(e)?!1:t}function Hs(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=c_(e);let a=no(1);t&&(r?Cr(r)&&(a=za(r)):a=za(e));const u=RZ(s,n,r)?wC(s):no(0);let f=(o.left+u.x)/a.x,d=(o.top+u.y)/a.y,p=o.width/a.x,h=o.height/a.y;if(s){const y=zn(s),m=r&&Cr(r)?zn(r):r;let v=y,b=xv(v);for(;b&&r&&m!==v;){const S=za(b),w=b.getBoundingClientRect(),T=Rr(b),I=w.left+(b.clientLeft+parseFloat(T.paddingLeft))*S.x,C=w.top+(b.clientTop+parseFloat(T.paddingTop))*S.y;f*=S.x,d*=S.y,p*=S.x,h*=S.y,f+=I,d+=C,v=zn(b),b=xv(v)}}return Bp({width:p,height:h,x:f,y:d})}function Fh(e,t){const n=Hh(e).scrollLeft;return t?t.left+n:Hs(uo(e)).left+n}function EC(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Fh(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function OZ(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",a=uo(r),u=t?Uh(t.floating):!1;if(r===a||u&&s)return n;let f={scrollLeft:0,scrollTop:0},d=no(1);const p=no(0),h=ao(r);if((h||!h&&!s)&&((Xs(r)!=="body"||bf(a))&&(f=Hh(r)),ao(r))){const m=Hs(r);d=za(r),p.x=m.x+r.clientLeft,p.y=m.y+r.clientTop}const y=a&&!h&&!s?EC(a,f):no(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-f.scrollLeft*d.x+p.x+y.x,y:n.y*d.y-f.scrollTop*d.y+p.y+y.y}}function kZ(e){return Array.from(e.getClientRects())}function LZ(e){const t=uo(e),n=Hh(e),r=e.ownerDocument.body,o=jn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=jn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Fh(e);const u=-n.scrollTop;return Rr(r).direction==="rtl"&&(a+=jn(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:a,y:u}}const dS=25;function MZ(e,t){const n=zn(e),r=uo(e),o=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,u=0,f=0;if(o){s=o.width,a=o.height;const p=l_();(!p||p&&t==="fixed")&&(u=o.offsetLeft,f=o.offsetTop)}const d=Fh(r);if(d<=0){const p=r.ownerDocument,h=p.body,y=getComputedStyle(h),m=p.compatMode==="CSS1Compat"&&parseFloat(y.marginLeft)+parseFloat(y.marginRight)||0,v=Math.abs(r.clientWidth-h.clientWidth-m);v<=dS&&(s-=v)}else d<=dS&&(s+=d);return{width:s,height:a,x:u,y:f}}const PZ=new Set(["absolute","fixed"]);function BZ(e,t){const n=Hs(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=ao(e)?za(e):no(1),a=e.clientWidth*s.x,u=e.clientHeight*s.y,f=o*s.x,d=r*s.y;return{width:a,height:u,x:f,y:d}}function pS(e,t,n){let r;if(t==="viewport")r=MZ(e,n);else if(t==="document")r=LZ(uo(e));else if(Cr(t))r=BZ(t,n);else{const o=wC(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Bp(r)}function SC(e,t){const n=Ai(e);return n===t||!Cr(n)||hu(n)?!1:Rr(n).position==="fixed"||SC(n,t)}function NZ(e,t){const n=t.get(e);if(n)return n;let r=dc(e,[],!1).filter(u=>Cr(u)&&Xs(u)!=="body"),o=null;const s=Rr(e).position==="fixed";let a=s?Ai(e):e;for(;Cr(a)&&!hu(a);){const u=Rr(a),f=u_(a);!f&&u.position==="fixed"&&(o=null),(s?!f&&!o:!f&&u.position==="static"&&!!o&&PZ.has(o.position)||bf(a)&&!f&&SC(e,a))?r=r.filter(p=>p!==a):o=u,a=Ai(a)}return t.set(e,r),r}function DZ(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?Uh(t)?[]:NZ(t,this._c):[].concat(n),r],u=a[0],f=a.reduce((d,p)=>{const h=pS(t,p,o);return d.top=jn(h.top,d.top),d.right=Ti(h.right,d.right),d.bottom=Ti(h.bottom,d.bottom),d.left
49=jn(h.left,d.left),d},pS(t,u,o));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function UZ(e){const{width:t,height:n}=bC(e);return{width:t,height:n}}function HZ(e,t,n){const r=ao(t),o=uo(t),s=n==="fixed",a=Hs(e,!0,s,t);let u={scrollLeft:0,scrollTop:0};const f=no(0);function d(){f.x=Fh(o)}if(r||!r&&!s)if((Xs(t)!=="body"||bf(o))&&(u=Hh(t)),r){const m=Hs(t,!0,s,t);f.x=m.x+t.clientLeft,f.y=m.y+t.clientTop}else o&&d();s&&!r&&o&&d();const p=o&&!r&&!s?EC(o,u):no(0),h=a.left+u.scrollLeft-f.x-p.x,y=a.top+u.scrollTop-f.y-p.y;return{x:h,y,width:a.width,height:a.height}}function nm(e){return Rr(e).position==="static"}function hS(e,t){if(!ao(e)||Rr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return uo(e)===n&&(n=n.ownerDocument.body),n}function $C(e,t){const n=zn(e);if(Uh(e))return n;if(!ao(e)){let o=Ai(e);for(;o&&!hu(o);){if(Cr(o)&&!nm(o))return o;o=Ai(o)}return n}let r=hS(e,t);for(;r&&EZ(r)&&nm(r);)r=hS(r,t);return r&&hu(r)&&nm(r)&&!u_(r)?n:r||AZ(e)||n}const FZ=async function(e){const t=this.getOffsetParent||$C,n=this.getDimensions,r=await n(e.floating);return{reference:HZ(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function jZ(e){return Rr(e).direction==="rtl"}const VZ={convertOffsetParentRelativeRectToViewportRelativeRect:OZ,getDocumentElement:uo,getClippingRect:DZ,getOffsetParent:$C,getElementRects:FZ,getClientRects:kZ,getDimensions:UZ,getScale:za,isElement:Cr,isRTL:jZ};function TC(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function qZ(e,t){let n=null,r;const o=uo(e);function s(){var u;clearTimeout(r),(u=n)==null||u.disconnect(),n=null}function a(u,f){u===void 0&&(u=!1),f===void 0&&(f=1),s();const d=e.getBoundingClientRect(),{left:p,top:h,width:y,height:m}=d;if(u||t(),!y||!m)return;const v=td(h),b=td(o.clientWidth-(p+y)),S=td(o.clientHeight-(h+m)),w=td(p),I={rootMargin:-v+"px "+-b+"px "+-S+"px "+-w+"px",threshold:jn(0,Ti(1,f))||1};let C=!0;function A($){const k=$[0].intersectionRatio;if(k!==f){if(!C)return a();k?a(!1,k):r=setTimeout(()=>{a(!1,1e-7)},1e3)}k===1&&!TC(d,e.getBoundingClientRect())&&a(),C=!1}try{n=new IntersectionObserver(A,{...I,root:o.ownerDocument})}catch{n=new IntersectionObserver(A,I)}n.observe(e)}return a(!0),s}function f_(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,d=c_(e),p=o||s?[...d?dc(d):[],...dc(t)]:[];p.forEach(w=>{o&&w.addEventListener("scroll",n,{passive:!0}),s&&w.addEventListener("resize",n)});const h=d&&u?qZ(d,n):null;let y=-1,m=null;a&&(m=new ResizeObserver(w=>{let[T]=w;T&&T.target===d&&m&&(m.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var I;(I=m)==null||I.observe(t)})),n()}),d&&!f&&m.observe(d),m.observe(t));let v,b=f?Hs(e):null;f&&S();function S(){const w=Hs(e);b&&!TC(b,w)&&n(),b=w,v=requestAnimationFrame(S)}return n(),()=>{var w;p.forEach(T=>{o&&T.removeEventListener("scroll",n),s&&T.removeEventListener("resize",n)}),h?.(),(w=m)==null||w.disconnect(),m=null,f&&cancelAnimationFrame(v)}}const d_=yZ,p_=vZ,h_=hZ,IC=_Z,WZ=pZ,g_=(e,t,n)=>{const r=new Map,o={platform:VZ,...n},s={...o.platform,_c:r};return dZ(e,t,{...o,platform:s})};function zZ(e){return e!=null&&typeof e=="object"&&"$el"in e}function Cv(e){if(zZ(e)){const t=e.$el;return a_(t)&&Xs(t)==="#comment"?null:t}return e}function Sa(e){return typeof e=="function"?e():N(e)}function abe(e){return{name:"arrow",options:e,fn(t){const n=Cv(Sa(e.element));return n==null?{}:WZ({element:n,padding:e.padding}).fn(t)}}}function AC(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function gS(e,t){const n=AC(e);return Math.round(t*n)/n}function GZ(e,t,n){n===void 0&&(n={});const r=n.whileElementsMounted,o=J(()=>{var k;return(k=Sa(n.open))!=null?k:!0}),s=J(()=>Sa(n.middleware)),a=J(()=>{var k;return(k=Sa(n.placement))!=null?k:"bottom"}),u=J(()=>{var k;return(k=Sa(n.strategy))!=null?k:"absolute"}),f=J(()=>{var k;return(k=Sa(n.transform))!=null?k:!0}),d=J(()=>Cv(e.value)),p=J(()=>Cv(t.value)),h=ie(0),y=ie(0),m=ie(u.value),v=ie(a.value),b=en({}),S=ie(!1),w=J(()=>{const k={position:m.value,left:"0",top:"0"};if(!p.value)return k;const x=gS(p.value,h.value),O=gS(p.value,y.value);return f.value?{...k,transform:"translate("+x+"px, "+O+"px)",...AC(p.value)>=1.5&&{willChange:"transform"}}:{position:m.value,left:x+"px",top:O+"px"}});let T;function I(){if(d.value==null||p.value==null)return;const k=o.value;g_(d.value,p.value,{middleware:s.value,placement:a.value,strategy:u.value}).then(x=>{h.value=x.x,y.value=x.y,m.value=x.strategy,v.value=x.placement,b.value=x.middlewareData,S.value=k!==!1})}function C(){typeof T=="function"&&(T(),T=void 0)}function A(){if(C(),r===void 0){I();return}if(d.value!=null&&p.value!=null){T=r(d.value,p.value,I);return}}function $(){o.value||(S.value=!1)}return ke([s,a,u,o],I,{flush:"sync"}),ke([d,p],A,{flush:"sync"}),ke(o,$,{flush:"sync"}),Gs()&&Do(C),{x:ra(h),y:ra(y),strategy:ra(m),placement:ra(v),middlewareData:ra(b),isPositioned:ra(S),floatingStyles:w,update:
49I}}function wf(e){return Gs()?(Do(e),!0):!1}function YZ(e){let t=!1,n;const r=lh(!0);return(...o)=>(t||(n=r.run(()=>e(...o)),t=!0),n)}function KZ(e){let t=0,n,r;const o=()=>{t-=1,r&&t<=0&&(r.stop(),n=void 0,r=void 0)};return(...s)=>(t+=1,r||(r=lh(!0),n=r.run(()=>e(...s))),wf(o),n)}function ro(e){return typeof e=="function"?e():N(e)}const xC=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ZZ=e=>e!=null,QZ=Object.prototype.toString,JZ=e=>QZ.call(e)==="[object Object]",oo=()=>{},Rv=XZ();function XZ(){var e,t;return xC&&((e=window?.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window?.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function eQ(e,t){var n;if(typeof e=="number")return e+t;const r=((n=e.match(/^-?\d+\.?\d*/))==null?void 0:n[0])||"",o=e.slice(r.length),s=Number.parseFloat(r)+t;return Number.isNaN(s)?e:s+o}function tQ(e){return Dn()}function nQ(...e){if(e.length!==1)return xt(...e);const t=e[0];return typeof t=="function"?Uc(hh(()=>({get:t,set:oo}))):ie(t)}function CC(e,t=!0,n){tQ()?We(e,n):t?e():gt(e)}const Ni=xC?window:void 0;function fi(e){var t;const n=ro(e);return(t=n?.$el)!=null?t:n}function io(...e){let t,n,r,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,o]=e,t=Ni):[t,n,r,o]=e,!t)return oo;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const s=[],a=()=>{s.forEach(p=>p()),s.length=0},u=(p,h,y,m)=>(p.addEventListener(h,y,m),()=>p.removeEventListener(h,y,m)),f=ke(()=>[fi(t),ro(o)],([p,h])=>{if(a(),!p)return;const y=JZ(h)?{...h}:h;s.push(...n.flatMap(m=>r.map(v=>u(p,m,v,y))))},{immediate:!0,flush:"post"}),d=()=>{f(),a()};return wf(d),d}let mS=!1;function RC(e,t,n={}){const{window:r=Ni,ignore:o=[],capture:s=!0,detectIframe:a=!1}=n;if(!r)return oo;Rv&&!mS&&(mS=!0,Array.from(r.document.body.children).forEach(m=>m.addEventListener("click",oo)),r.document.documentElement.addEventListener("click",oo));let u=!0;const f=m=>ro(o).some(v=>{if(typeof v=="string")return Array.from(r.document.querySelectorAll(v)).some(b=>b===m.target||m.composedPath().includes(b));{const b=fi(v);return b&&(m.target===b||m.composedPath().includes(b))}}),d=m=>{const v=fi(e);if(!(!v||v===m.target||m.composedPath().includes(v))){if(m.detail===0&&(u=!f(m)),!u){u=!0;return}t(m)}};let p=!1;const h=[io(r,"click",m=>{p||(p=!0,setTimeout(()=>{p=!1},0),d(m))},{passive:!0,capture:s}),io(r,"pointerdown",m=>{const v=fi(e);u=!f(m)&&!!(v&&!m.composedPath().includes(v))},{passive:!0}),a&&io(r,"blur",m=>{setTimeout(()=>{var v;const b=fi(e);((v=r.document.activeElement)==null?void 0:v.tagName)==="IFRAME"&&!b?.contains(r.document.activeElement)&&t(m)},0)})].filter(Boolean);return()=>h.forEach(m=>m())}function rQ(e,t=null){const n=Dn();let r=()=>{};const o=hh((s,a)=>(r=a,{get(){var u,f;return s(),(f=(u=n?.proxy)==null?void 0:u.$refs[e])!=null?f:t},set(){}}));return CC(r),z1(r),o}function oQ(){const e=ie(!1),t=Dn();return t&&We(()=>{e.value=!0},t),e}function OC(e){const t=oQ();return J(()=>(t.value,!!e()))}function $a(e,t={}){const{window:n=Ni}=t,r=OC(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let o;const s=ie(!1),a=d=>{s.value=d.matches},u=()=>{o&&("removeEventListener"in o?o.removeEventListener("change",a):o.removeListener(a))},f=yh(()=>{r.value&&(u(),o=n.matchMedia(ro(e)),"addEventListener"in o?o.addEventListener("change",a):o.addListener(a),s.value=o.matches)});return wf(()=>{f(),u(),o=void 0}),s}function iQ(e,t={}){function n(p,h){let y=ro(e[ro(p)]);return h!=null&&(y=eQ(y,h)),typeof y=="number"&&(y=`${y}px`),y}const{window:r=Ni,strategy:o="min-width"}=t;function s(p){return r?r.matchMedia(p).matches:!1}const a=p=>$a(()=>`(min-width: ${n(p)})`,t),u=p=>$a(()=>`(max-width: ${n(p)})`,t),f=Object.keys(e).reduce((p,h)=>(Object.defineProperty(p,h,{get:()=>o==="min-width"?a(h):u(h),enumerable:!0,configurable:!0}),p),{});function d(){const p=Object.keys(e).map(h=>[h,a(h)]);return J(()=>p.filter(([,h])=>h.value).map(([h])=>h))}return Object.assign(f,{greaterOrEqual:a,smallerOrEqual:u,greater(p){return $a(()=>`(min-width: ${n(p,.1)})`,t)},smaller(p){return $a(()=>`(max-width: ${n(p,-.1)})`,t)},between(p,h){return $a(()=>`(min-width: ${n(p)}) and (max-width: ${n(h,-.1)})`,t)},isGreater(p){return s(`(min-width: ${n(p,.1)})`)},isGreaterOrEqual(p){return s(`(min-width: ${n(p)})`)},isSmaller(p){return s(`(max-width: ${n(p,-.1)})`)},isSmallerOrEqual(p){return s(`(max-width: ${n(p)})`)},isInBetween(p,h){return s(`(min-width: ${n(p)}) and (max-width: ${n(h,-.1)})`)},current:d,active(){const p=d();return J(()=>p.value.length===0?"":p.value.at(-1))}})}function ube(e,t={}){const{delayEnter:n=0,delayLeave:r=0,window:o=Ni}=t,s=ie(!1);let a;const u=f=>{const d=f?n:r;a&&(clearTimeout(a),a=void 0),d?a=setTimeout(()=>s.value=f,d):s.value=f};return o&&(io(e,"mouseenter",()=>u(!0),{passive:!0}),io(e,"mouseleave",()=>u(!1),{passive:!0})),s}function sQ(e,t,n={}){const{root:r,rootMargin:o="0px",threshold:s=0,window:a=Ni,immediate:u=!0}=n,f=OC(()=>a&&"IntersectionObserver"in a),d=J(()=>{const v=ro(e);return(Array.isArray(v)?v:[v]).map(fi).filter(ZZ)});let p=oo;const h=ie(u),y=f.value?ke(()=>[d.value,fi(r),h.value],([v,b])=>
49{if(p(),!h.value||!v.length)return;const S=new IntersectionObserver(t,{root:fi(b),rootMargin:o,threshold:s});v.forEach(w=>w&&S.observe(w)),p=()=>{S.disconnect(),p=oo}},{immediate:u,flush:"post"}):oo,m=()=>{p(),y(),h.value=!1};return wf(m),{isSupported:f,isActive:h,pause(){p(),h.value=!1},resume(){h.value=!0},stop:m}}function rm(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function kC(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const n=e.parentNode;return!n||n.tagName==="BODY"?!1:kC(n)}}function aQ(e){const t=e||window.event,n=t.target;return kC(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const om=new WeakMap;function LC(e,t=!1){const n=ie(t);let r=null,o="";ke(nQ(e),u=>{const f=rm(ro(u));if(f){const d=f;if(om.get(d)||om.set(d,d.style.overflow),d.style.overflow!=="hidden"&&(o=d.style.overflow),d.style.overflow==="hidden")return n.value=!0;if(n.value)return d.style.overflow="hidden"}},{immediate:!0});const s=()=>{const u=rm(ro(e));!u||n.value||(Rv&&(r=io(u,"touchmove",f=>{aQ(f)},{passive:!1})),u.style.overflow="hidden",n.value=!0)},a=()=>{const u=rm(ro(e));!u||!n.value||(Rv&&r?.(),u.style.overflow=o,om.delete(u),n.value=!1)};return wf(a),J({get(){return n.value},set(u){u?s():a()}})}function uQ(e,t={}){const{threshold:n=50,onSwipe:r,onSwipeEnd:o,onSwipeStart:s,passive:a=!0,window:u=Ni}=t,f=ks({x:0,y:0}),d=ks({x:0,y:0}),p=J(()=>f.x-d.x),h=J(()=>f.y-d.y),{max:y,abs:m}=Math,v=J(()=>y(m(p.value),m(h.value))>=n),b=ie(!1),S=J(()=>v.value?m(p.value)>m(h.value)?p.value>0?"left":"right":h.value>0?"up":"down":"none"),w=O=>[O.touches[0].clientX,O.touches[0].clientY],T=(O,M)=>{f.x=O,f.y=M},I=(O,M)=>{d.x=O,d.y=M};let C;const A=lQ(u?.document);a?C=A?{passive:!0}:{capture:!1}:C=A?{passive:!1,capture:!0}:{capture:!0};const $=O=>{b.value&&o?.(O,S.value),b.value=!1},k=[io(e,"touchstart",O=>{if(O.touches.length!==1)return;C.capture&&!C.passive&&O.preventDefault();const[M,j]=w(O);T(M,j),I(M,j),s?.(O)},C),io(e,"touchmove",O=>{if(O.touches.length!==1)return;const[M,j]=w(O);I(M,j),!b.value&&v.value&&(b.value=!0),b.value&&r?.(O)},C),io(e,["touchend","touchcancel"],$,C)];return{isPassiveEventSupported:A,isSwiping:b,direction:S,coordsStart:f,coordsEnd:d,lengthX:p,lengthY:h,stop:()=>k.forEach(O=>O())}}function lQ(e){if(!e)return!1;let t=!1;const n={get passive(){return t=!0,!1}};return e.addEventListener("x",oo,n),e.removeEventListener("x",oo),t}function MC(e={}){const{window:t=Ni,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:r=Number.POSITIVE_INFINITY,listenOrientation:o=!0,includeScrollbar:s=!0,type:a="inner"}=e,u=ie(n),f=ie(r),d=()=>{t&&(a==="outer"?(u.value=t.outerWidth,f.value=t.outerHeight):s?(u.value=t.innerWidth,f.value=t.innerHeight):(u.value=t.document.documentElement.clientWidth,f.value=t.document.documentElement.clientHeight))};if(d(),CC(d),io("resize",d,{passive:!0}),o){const p=$a("(orientation: portrait)");ke(p,()=>d())}return{width:u,height:f}}const im="body-lock-counter",PC=()=>{const e=globalThis.document?.body,t=LC(e),n=()=>!!globalThis.window[im],r=a=>{const u=(globalThis.window[im]||0)+(a?1:-1);globalThis.window[im]=Math.max(0,u)},o=()=>{n()||(t.value=!0,e.style.top=`-${globalThis.document.documentElement.scrollTop}px`,e.style.left="0px",e.style.inlineSize="100%",e.style.position="fixed",e.style.overflowY="scroll"),r(!0)},s=()=>
49{if(r(!1),n())return;t.value=!1;const a=parseInt(e.style.top||"0")*-1;e.style.top="",e.style.left="",e.style.inlineSize="",e.style.position="",e.style.overflowY="",window.scrollTo(0,a)};return{isLocked:t,toggleBodyLock:a=>{(typeof a=="boolean"?a:!t.value)?o():s()}}},cQ=xe({__name:"Overlay",props:{modelValue:{type:Boolean},modelModifiers:{}},emits:["update:modelValue"],setup(e){const t=Yn(e,"modelValue"),{toggleBodyLock:n}=PC();let r=!1;const o=a=>{r=a.target===a.currentTarget},s=()=>{r&&(r=!1,t.value=!1)};return ke(t,a=>n(a),{immediate:t.value}),(a,u)=>(U(),we(ko,{name:"overlay"},{default:be(()=>[Su(te("div",{class:"overlay",onPointerdown:o,onClick:ft(s,["self"])},[De(a.$slots,"default",{},void 0,!0)],544),[[$u,t.value]])]),_:3}))}}),fQ=Fo(cQ,[["__scopeId","data-v-82d2691a"]]),dQ=['a[href]:not([tabindex="-1"])','button:not([disabled]):not([tabindex="-1"])','input:not([disabled]):not([tabindex="-1"])','select:not([disabled]):not([tabindex="-1"])','textarea:not([disabled]):not([tabindex="-1"])','[tabindex]:not([tabindex="-1"])','details > summary:not([tabindex="-1"])'].join(", "),BC=e=>{let t=null;const n=()=>e.value?Array.from(e.value.querySelectorAll(dQ)):[],r=a=>{if(a.key!=="Tab")return;const u=n();if(u.length===0){a.preventDefault();return}const f=u[0],d=u[u.length-1],p=document.activeElement;a.shiftKey?(p===f||!e.value?.contains(p))&&(a.preventDefault(),d.focus()):(p===d||!e.value?.contains(p))&&(a.preventDefault(),f.focus())},o=()=>{if(!e.value)return;t=document.activeElement,document.addEventListener("keydown",r);const a=n();a.length>0?a[0].focus({preventScroll:!0}):e.value.focus({preventScroll:!0})},s=()=>{document.removeEventListener("keydown",r),t?.focus({preventScroll:!0}),t=null};return Nn(s),{activate:o,deactivate:s}},m_=xe({__name:"UIClientTeleport",props:{to:{type:String,required:!0}},setup(e){const t=ie(!1);return We(()=>{t.value=!0}),(n,r)=>t.value?(U(),we(F1,{key:0,defer:"",to:e.to},[De(n.$slots,"default")],8,["to"])):Ie("",!0)}}),pQ=["aria-label"],hQ=["aria-label"],gQ=.25,mQ=xe({inheritAttrs:!1,__name:"BottomDrawer",props:Nt({to:{type:String,default:"body"},showCloseIcon:{type:Boolean,default:!1},centeredOnDesktop:{type:Boolean,default:!1},withSwipeHandle:{type:Boolean,default:!1},ariaLabel:{type:String,default:void 0},closeAriaLabel:{type:String,default:"ÐакÑÑÑÑ"}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:Nt(["clickClose","clickEscKey","clickOverlay"],["update:modelValue"]),setup(e,{emit:t}){const n=t,r=Yn(e,"modelValue"),o=ie(!!r.value);ke(r,C=>{o.value=!!C});const s=ie(null),{activate:a,deactivate:u}=BC(s);ke(o,async C=>{C?(await gt(),a()):u()});const f=ie(!1),d=ie(0),p=ie(0),h=ie(null),y=J(()=>d.value>0?{"--bottom-drawer-offset":`${d.value}px`}:void 0),m=()=>{f.value=!1,d.value=0,h.value=null},v=()=>{m(),r.value&&(r.value=!1)},b=C=>{if(C.pointerId!==h.value)return;const A=C.clientY-p.value;d.value=Math.max(0,A)},S=C=>{if(C.pointerId!==h.value)return;document.removeEventListener("pointermove",b),document.removeEventListener("pointerup",S),document.removeEventListener("pointercancel",S),f.value=!1,h.value=null;const A=s.value?.offsetHeight??0,$=A*gQ;if(A>0&&d.value>=$){n("clickOverlay"),o.value=!1;return}d.value=0},w=C=>{f.value=!0,p.value=C.clientY,d.value=0,h.value=C.pointerId,document.addEventListener("pointermove",b),document.addEventListener("pointerup",S),document.addEventListener("pointercancel",S)},T=()=>{n("clickClose"),o.value=!1},I=C=>{C.key==="Escape"&&(n("clickEscKey"),o.value=!1)};return We(()=>{document.addEventListener("keydown",I)}),Nn(()=>{document.removeEventListener("keydown",I),document.removeEventListener("pointermove",b),document.removeEventListener("pointerup",S),document.removeEventListener("pointercancel",S)}),(C,A)=>(U(),we(N(m_),{to:e.to},{default:be(()=>[ye(fQ,{modelValue:o.value,"onUpdate:modelValue":A[0]||(A[0]=$=>o.value=$),class:Be(["bottom-drawer-overlay",{"bottom-drawer-overlay--centered":e.centeredOnDesktop}])},{default:be(()=>[ye(ko,{name:"bottom-drawer",onAfterLeave:v},{default:be(()=>[o.value?(U(),X("div",un({key:0,ref_key:"drawerRef",ref:s,role:"dialog","aria-modal":"true","aria-label":e.ariaLabel,tabindex:"-1",class:["bottom-drawer",{"bottom-drawer--centered":e.centeredOnDesktop,"bottom-drawer--dragging":f.value}],style:y.value},C.$attrs),[e.withSwipeHandle?(U(),X("div",{key:0,class:"bottom-drawer__handle",onPointerdown:w},A[1]||(A[1]=[te("span",{class:"bottom-drawer__handle-bar"},null,-1)]),32)):Ie("",!0),e.showCloseIcon?(U(),X("button",{key:1,class:"bottom-drawer__close","aria-label":e.closeAriaLabel,onClick:T},[ye(N(n_))],8,hQ)):Ie("",!0),De(C.$slots,"default",{},void 0,!0)],16,pQ)):Ie("",!0)]),_:3})]),_:3},8,["modelValue","class"])]),_:3},8,["to"]))}}
49),NC=Fo(mQ,[["__scopeId","data-v-d36ac57e"]]);var cn=(e=>(e.WEB="web",e.SMALL_WEB="smallWeb",e.TABLET="tablet",e.BREAKPOINT_640="breakpoint_640",e.BREAKPOINT_960="breakpoint_960",e.BREAKPOINT_1280="breakpoint_1280",e.BREAKPOINT_1920="breakpoint_1920",e))(cn||{}),Ov=(e=>(e.DESKTOP="desktop",e.MOBILE="mobile",e))(Ov||{});const Xo={[cn.BREAKPOINT_640]:640,[cn.BREAKPOINT_960]:960,[cn.BREAKPOINT_1280]:1280,[cn.BREAKPOINT_1920]:1920,[cn.WEB]:1152,[cn.SMALL_WEB]:1024,[cn.TABLET]:744},y_=()=>{const{width:e}=MC({initialHeight:0,initialWidth:0}),t=ie(!1),n=ie(!1),r=ie(!1),o=ie(!1),s=ie(!1),a=ie(!1),u=ie(!1),f=ie(!1),d=()=>/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?Ov.MOBILE:Ov.DESKTOP,p=h=>{t.value=h<Xo[cn.TABLET],n.value=h>=Xo[cn.TABLET],r.value=h>=Xo[cn.SMALL_WEB],o.value=h>=Xo[cn.WEB],s.value=h>=Xo[cn.BREAKPOINT_640],a.value=h>=Xo[cn.BREAKPOINT_960],u.value=h>=Xo[cn.BREAKPOINT_1280],f.value=h>=Xo[cn.BREAKPOINT_1920]};return ke(e,h=>{p(h)}),We(()=>{p(e.value)}),{isMobile:t,isTablet:n,isSmallWeb:r,isWeb:o,isBreakpoint640:s,isBreakpoint960:a,isBreakpoint1280:u,isBreakpoint1920:f,getDeviceType:d}},yQ=["aria-hidden"],vQ={key:1,class:"ui-dropdown__head-list ui-body-sm-medium"},_Q={class:"ui-dropdown__head-key"},bQ={class:"ui-dropdown__head-value"},wQ=["onClick","onKeydown"],EQ=xe({__name:"UIDropdown",props:Nt({id:{type:String,required:!0},items:{type:Array,default:()=>null},itemLegend:{type:Object,default:()=>({key:"key",title:"title",icon:"icon"})},activeKey:{type:String,default:null},headItems:{type:Array,default:null},gap:{type:Number,default:8},targetWidth:{type:Boolean,default:!1},itemsTag:{type:String,default:"span"},placement:{type:String,default:"bottom"},to:{type:String,default:"body"},teleport:{type:Boolean,default:!0},renderOnServer:{type:Boolean,default:!1}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:Nt(["click","toggle"],["update:modelValue"]),setup(e,{emit:t}){const n=!globalThis.window,r=xe({inheritAttrs:!1,setup($,{slots:k}){return()=>k.default?.()}}),o=e,s=t,a=Yn(e,"modelValue"),{isBreakpoint640:u}=y_(),f=ie(!1),d=J(()=>o.renderOnServer&&!f.value),p=J(()=>!u.value&&!d.value),h=J(()=>o.teleport?"fixed":"absolute"),y=J(()=>({"ui-dropdown--drawer":p.value,[`ui-dropdown--${h.value}`]:!p.value})),m=J(()=>p.value?NC:o.teleport?m_:r),v=J(()=>p.value?{modelValue:a.value,"onUpdate:modelValue":$=>{a.value=$},to:o.to}:o.teleport?{to:o.to}:null),b=Bb("popover"),S=Bb("anchor"),w=ie(null),T=()=>{const $=w.value,k=b.value;!$||!k||g_($,k,{strategy:h.value,placement:o.placement,middleware:[d_(o.gap),h_(),p_(),IC({apply({elements:x,rects:O}){Object.assign(x.floating.style,{width:o.targetWidth?`${O.reference.width}px`:"auto",maxWidth:o.targetWidth?"unset":"288px",zIndex:"var(--ui-kit-z-index-popup, 200)"})}})]}).then(({x,y:O})=>{Object.assign(k.style,{position:h.value,left:`${Math.round(x)}px`,top:`${Math.round(O)}px`})})},I=()=>{let $=null;try{$=globalThis.document?.querySelector(`[popovertarget=${o.id}]`)??null}catch{}w.value=$??S.value?.firstElementChild??null,T()};let C;ke([w,b,p,a],()=>{if(C?.(),C=void 0,n||p.value||!a.value)return;const $=w.value,k=b.value;$&&k&&(C=f_($,k,T))},{flush:"post"}),Do(()=>C?.()),RC(w,()=>{a.value=!1},{ignore:[b]});const A=$=>{s("click",$),a.value=!1};return ke(a,$=>{$&&I(),s("toggle",!!$)}),We(()=>{f.value=!0,I()}),($,k)=>(U(),X(He,null,[te("span",{ref_key:"anchor",ref:S,class:"ui-dropdown__anchor"},[De($.$slots,"default",{},void 0,!0)],512),(U(),we(Xt(m.value),Jm(cp(v.value)),{default:be(()=>[Su(te("menu",un({ref_key:"popover",ref:b,class:["ui-dropdown",y.value],"aria-hidden":p.value?void 0:!a.value,tabindex:"1"},$.$attrs),[$.$slots.head?De($.$slots,"head",{key:0},void 0,!0):Ie("",!0),e.headItems?(U(),X("dl",vQ,[(U(!0),X(He,null,dt(e.headItems,({key:x,value:O},M)=>(U(),X("div",{key:M,class:"ui-dropdown__head-item"},[te("dt",_Q,Ue(x),1),te("dd",bQ,Ue(O),1)]))),128))])):Ie("",!0),e.items?.length?(U(),X("ul",{key:2,class:Be(["ui-dropdown__list",{"ui-dropdown__list--drawer":p.value}])},[(U(!0),X(He,null,dt(e.items,(x,O)=>(U(),X("li",{key:String(x[e.itemLegend.key]||O),class:Be(["ui-dropdown__item ui-body-sm-medium",{"ui-dropdown__item--drawer":p.value,"ui-dropdown__item--active":x[e.itemLegend.key]===e.activeKey}]),tabindex:"1",onClick:ft(M=>A(x),["stop"]),onKeydown:Gc(ft(M=>A(x),["stop"]),["enter","space"])},[De($.$slots,"item-content",{item:x},()=>[x[e.itemLegend.icon]?(U(),we(Xt(x[e.itemLegend.icon]),{key:0,width:"24px",height:"24px",color:"var(--ui-content)"})):Ie("",!0),(U(),we(Xt(x.tag||e.itemsTag),un({ref_for:!0},x.attrs,{class:"ui-dropdown__item-control ui-body-sm-medium"}),{default:be(()=>[mt(Ue(x[e.itemLegend.title]),1)]),_:2},1040))],!0)],42,wQ))),128))],2)):Ie("",!0),$.$slots.content?De($.$slots,"content",{key:3},void 0,!0):Ie("",!0)],16,yQ),[[$u,p.value||a.value]])]),_:3},16))],64))}}),v_=Fo(EQ,[["__scopeId","data-v-4dadb7a8"]]),SQ=e=>(t,n,r)=>{let o;const s=ke(e,a=>{o?.(),o=a?f_(t,n,r):void 0},{immediate:!0});return()=>{s(),o?.(),o=void 0}},$Q={key:0,class:"ui-modal__head"},TQ={class:"ui-body-lg-medium"},IQ={key:1,class:"ui-modal__body"},AQ={key:0,class:"ui-body-sm-regular"},xQ={key:2,class:"ui-modal__actions"},CQ=xe({inheritAttrs:!1,__name:"UIModal",props:Nt({to:{type:String,default:"body"},showCloseIcon:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:Nt(["clickClose","clickEscKey","clickOverlay"],["update:modelValue"]),setup(e,{emit:t}){const n=t,r=Yn(e,"modelValue");return(o,s)=>(U(),we(NC,{modelValue:r.value,"onUpdate:modelValue":s[0]||(s[0]=a=>r.value=a),to:e.to,"show-close-icon":e.showCloseIcon,"aria-label":e.ariaLabel,"centered-on-desktop":"",onClickClose:s[1]||(s[1]=a=>n("clickClose")),onClickEscKey:s[2]||(s[2]=a=>n("clickEscKey")),onClickOverlay:s[3]||(s[3]=a=>n("clickOverlay"))},{default:be(()=>[te("div",un({class:"ui-modal"},o.$attrs),[De(o.$slots,"head-content",{},void 0,!0),o.$slots.header?(U(),X("div",$Q,[te("div",TQ,[De(o.$slots,"header",{},void 0,!0)])])):Ie("",!0),o.$slots.text||o.$slots.default?(U(),X("div",IQ,[o.$slots.text?(U(),X("div",AQ,[De(o.$slots,"text",{},void 0,!0)])):Ie("",!0),De(o.$slots,"default",{},void 0,!0)])):Ie("",!0),o.$slots.actions?(U(),X("div",xQ,[De(o.$slots,"actions",{},void 0,!0)])):Ie("",!0)],16)]),_:3},8,["modelValue","to","show-close-icon","aria-label"]))}}),Hu=Fo(CQ,[["__scopeId","data-v-cccf1ff8"]]),RQ=xe({__name:"UISkeleton",props:{shape:{type:String,default:"rectangle"},borderRadius:{type:String,default:"xs"},width:{type:String,default:"100%"},height:{type:String,default:"100%"}},setup(e){return(t,n)=>(U(),X("div",{class:Be(["ui-skeleton",{[`ui-skeleton--radius-${e.borderRadius}`]:e.shape==="rectangle","ui-skeleton--circle":e.shape==="circle"}]),style:at({width:e.width,height:e.height})},null,6))}}),It=Fo(RQ,[["__scopeId","data-v-c47f5500"]]),OQ=e=>{const t=ie("");return mh(async()=>{const n=await Rt(()=>import("./theme-sports.css.es-CFhDfTLo.js"),[]),r=await Rt(()=>import("./theme-cyber.css.es-CQVGYSQR.js"),[]),o=await Rt(()=>import("./theme-admin.css.es-VuM0KEwV.js"),[]),s={sports:n.default,cyber:r.default,admin:o.default};t.value=s[e]}),t};
49function nd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var kQ={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function kv(e,t){function n(o,s,a){if(!(typeof document>"u")){a=nd({},t,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var u="";for(var f in a)a[f]&&(u+="; "+f,a[f]!==!0&&(u+="="+a[f].split(";")[0]));return document.cookie=o+"="+e.write(s,o)+u}}function r(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var s=document.cookie?document.cookie.split("; "):[],a={},u=0;u<s.length;u++){var f=s[u].split("="),d=f.slice(1).join("=");try{var p=decodeURIComponent(f[0]);if(a[p]=e.read(d,p),o===p)break}catch{}}return o?a[o]:a}}return Object.create({set:n,get:r,remove:function(o,s){n(o,"",nd({},s,{expires:-1}))},withAttributes:function(o){return kv(this.converter,nd({},this.attributes,o))},withConverter:function(o){return kv(nd({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var yS=kv(kQ,{path:"/"});const vS="site-theme",LQ=365,Xn={LIGHT:"light",DARK:"dark"},rd=ie(!0),MQ=YZ(()=>{const e=ie(),t=J(()=>rd.value&&e.value===Xn.DARK),n=()=>{e.value=e.value===Xn.DARK?Xn.LIGHT:Xn.DARK},r=o=>{const s=rd.value?o:Xn.LIGHT;yS.set(vS,s,{expires:LQ}),s===Xn.DARK?(document.body.classList.remove(Xn.LIGHT),document.body.classList.add(Xn.DARK)):(document.body.classList.remove(Xn.DARK),document.body.classList.add(Xn.LIGHT))};return ke([e,rd],()=>{e.value&&r(e.value)}),We(()=>{const o=yS.get(vS);o?e.value=o:rd.value&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?e.value=Xn.DARK:e.value=Xn.LIGHT}),{currentTheme:e,isDarkTheme:t,toggleTheme:n}});let Je=class extends Error{constructor(t,n=""){super(`[Sports][User] Code: ${t} ${n}`),this.textToDisplay=n,this.code=t}};var Ye=(e=>(e.MODEL_CREATION_ERROR="MODEL_CREATION_ERROR",e.USER_ID_NOT_EXISTS="USER_ID_NOT_EXISTS",e.REQUEST_ERROR="REQUEST_ERROR",e.USER_POSTS_ERROR="USER_POSTS_ERROR",e.USER_TAGS_ERROR="USER_TAGS_ERROR",e.USER_BLOGS_ERROR="USER_BLOGS_ERROR",e.USER_BLOGS_SUBSCRIBED_ERROR="USER_BLOGS_SUBSCRIBED_ERROR",e.USER_MARK_AS_READ_ERROR="USER_MARK_AS_READ_ERROR",e.USER_NOTIFICATIONS_LIST_ERROR="USER_NOTIFICATIONS_LIST_ERROR",e.USER_NOTIFICATION_AMOUNT_ERROR="USER_NOTIFICATION_AMOUNT_ERROR",e.USER_SOCIAL_LOGIN_ERROR="USER_SOCIAL_LOGIN_ERROR",e.USER_REMIND_ERROR="USER_REMIND_ERROR",e.USER_REMIND_LIMIT_REACHED_ERROR="USER_REMIND_LIMIT_REACHED_ERROR",e.USER_CROSS_LOGIN_ERROR="USER_CROSS_LOGIN_ERROR",e.USER_ID_MISSING_ERROR="USER_ID_MISSING_ERROR",e.USER_INVALID_PHONE_ERROR="USER_INVALID_PHONE_ERROR",e.USER_INVALID_CODE_ERROR="USER_INVALID_CODE_ERROR",e.USER_CHANGE_EMAIL_ERROR="USER_CHANGE_EMAIL_ERROR",e.USER_CHANGE_PHONE_ERROR="USER_CHANGE_PHONE_ERROR",e.USER_CONFIRM_PHONE_ERROR="USER_CONFIRM_PHONE_ERROR",e))(Ye||{});const sn={USER_LOGIN_ERROR:"не ÑдалоÑÑ Ð°Ð²ÑоÑизоваÑÑÑÑ",USER_LOGIN_TELEGRAM_ERROR:"не ÑдалоÑÑ Ð°Ð²ÑоÑизоваÑÑÑÑ ÑеÑез Telegram",USER_LOGIN_VK_ERROR:"не ÑдалоÑÑ Ð°Ð²ÑоÑизоваÑÑÑÑ ÑеÑез VK",USER_LOGIN_AUTH_SETTINGS:"не ÑдалоÑÑ Ð¿Ð¾Ð»ÑÑиÑÑ Ð½Ð°ÑÑÑойки Ð´Ð»Ñ Ð°Ð²ÑоÑизаÑии ÑеÑез ÑоÑ. ÑеÑи",USER_LOGOUT:"не ÑдалоÑÑ Ð²ÑйÑи из пÑоÑилÑ",USER_REGISTER:"не ÑдалоÑÑ Ð·Ð°ÑегиÑÑÑиÑоваÑÑÑÑ"},DC=e=>` { userMutations { ban( userID: ${JSON.stringify(e.userID)}, permanent: ${e.permanent}, banReason: ${e.banReason}, banObjectClassID: ${e.banObjectClassID}, banObjectID: ${JSON.stringify(e.banObjectID)}, text: ${JSON.stringify(e.text)} ) } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");DC.operationName="banUser";const UC=e=>` { userMutations { changeBanLevel(level: UNBAN, userID: ${JSON.stringify(e.userID)}) { banLevel { level } } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");UC.operationName="unbanUser";const __=e=>" { userQueries { current { user { id nick url picture(input: { ext: PNG, resize: SIZE_64_64 }) { url } svg: picture(input: { ext: SVG }) { url } mustSetRuEmail } isAuthor isAdmin isModerator commentsLinksEnabled email } } } ".replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");__.operationName="getCurrentUser";const HC=e=>` { userMutations { changeEmail(input: { email: ${JSON.stringify(e.email)}, }) { success error { ... on DefaultError { message } ... on UserEditError { message errorCode } ... on UserPhoneConfirmChangePhoneLimitError { message nextTryTime } ... on UserPhoneConfirmResendSmsLimitError { message nextTryTime } ... on UserPhoneConfirmError { message code } } } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");HC.operationName="changeEmail";const FC=e=>` { userMutations { changePhone(userID: ${JSON.stringify(e.userID)}
49, phone: ${JSON.stringify(e.phone)}) { success error { ... on DefaultError { message } ... on UserPhoneConfirmError { code message } ... on UserPhoneConfirmResendSmsLimitError { message nextTryTime } ... on UserPhoneConfirmChangePhoneLimitError { message nextTryTime } } } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");FC.operationName="changePhone";const jC=e=>` { userMutations { confirmPhone(phone: ${JSON.stringify(e.phone)}, code: ${JSON.stringify(e.code)}, userID: ${JSON.stringify(e.userID)}, authToken: ${JSON.stringify(e.authToken)}) { success authPayload { crossDomainInfo { authToken authDomain } } error { ... on DefaultError { __typename message } ... on UserPhoneConfirmError { __typename message } ... on UserPhoneConfirmResendSmsLimitError { __typename message nextTryTime } ... on UserPhoneConfirmChangePhoneLimitError { __typename message nextTryTime } } } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");jC.operationName="confirmPhone";const VC=e=>` { bookmarksMutations { create(input: { objectID: ${JSON.stringify(e.objectID)} objectType: ${e.objectType} }) { success } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");VC.operationName="createBookmark";const qC=e=>` { bookmarksMutations { delete(input: { objectID: ${JSON.stringify(e.objectID)} objectType: ${e.objectType} }) { success } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");qC.operationName="deleteBookmark";const WC=e=>` { userMutations { follow(ID: ${JSON.stringify(e.ID)}) { status } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");WC.operationName="followUser";const zC=e=>` { userMutations { unfollow(ID: ${JSON.stringify(e.ID)}) { status } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");zC.operationName="unfollowUser";const GC=e=>' { fantasyQueries { squads(input: {currentUserOnly: true, isActiveTournament: true}) { id name createdAt season { isActive tournament { webName statObject { logo { resize(width: "48", height: "48") } } } } } } } '.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");GC.operationName="getCurrentUserFantasyTeams";const YC=e=>` { predictorQuery { getUsersSeasons(input: {userId: ${JSON.stringify(e.userID)}}) { id name sourceName statTournament { logo { resize(width: "48", height: "48") } currentSeason { startDate } } } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");YC.operationName="getCurrentUserPredictorLeagues";const KC=e=>" { userQueries { current { settings { commentsFilterSort donationsEnabled } user { id rate { points } } } } } ".replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");KC.operationName="getCurrentUserSettings";const ZC=e=>` { notificationQueries { lastList(lastId: ${JSON.stringify(e.lastId)}, amount: ${e.amount}, filter: ${e.filter}) { lastId hasMore notifications { id received { epoch } unread kind genericTextWithUrl value { ... on notificationFantasyLegacy { fantasy { tournament { name logo } } } ... on notificationFantasy { squad { season { tournament { statObject { logo { resize(width: "64", height: "64") } } } } } } ... on notificationMail { mail { sender { picture(input: { resize: SIZE_64_64 }) { url } } } } ... on notificationBadge { badge { tag { images { logo } } } } ... on notificationSubscriber { subscriber { picture(input: { resize: SIZE_64_64 }) { url } } } ... on notificationComment { comment { author { picture(input: { resize: SIZE_64_64 }) { url } } } } } } } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");ZC.operationName="getLastNotificationsList";const QC=e=>" { notificationQueries { notificationsUnreadAmount: unreadAmount(filter: NOTIFICATIONS) { amount } mailsUnreadAmount: unreadAmount(filter: MAILS) { amount } } } ".replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");QC.operationName="getUnreadNotificationsAmount";const JC=e=>` { blogQueries { authorships(userID: ${JSON.stringify(e.userID)}, amount: ${e.amount}) { totalCount blogs { id name subtitle relativeUrl avatar { url } isCreator isAuthor isModerator } } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");JC.operationName="getUserBlogs";const XC=e=>` { postQueries { byUserID(userID: ${JSON.stringify(e.userID)}, amount: ${e.amount}) { lastId totalCount hasMore posts { id type title brief status commentsCount pageInfo { relativeURL } rating { total } published { epoch } } } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");XC.operationName="getUserPosts";const e4=e=>` { blogQueries { subscriptions(userID: ${JSON.stringify(e.userID)}, amount: ${e.amount}) { blogs { id name subtitle relativeUrl avatar { url } isCreator isAuthor isModerator } totalCount } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");e4.operationName="getUserSubscribedToBlogs";const t4=e=>` { tagQueries { subscriptions(userID: ${JSON.stringify(e.userID)}, amount: ${e.amount}
49) { tags { id name subscribed images { logo bigLogo } urls { relativeURL } } total } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");t4.operationName="getUserTags";const n4=e=>" { markAllNotifications(read: true) { status } } ".replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");n4.operationName="markAllNotifications";const r4=e=>` { markNotifications(ids: ${JSON.stringify(e.ids)}, read: true) { status } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");r4.operationName="markNotifications";const o4=e=>` { userMutations { sendResetPasswordLink(email: ${JSON.stringify(e.email)}){ success error { ... on AuthSendResetUserPasswordLinkError { message } ... on DefaultError { message } } } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");o4.operationName="remindPassword";const i4=e=>` { userMutations { setSettings( field: ${e.field} value: ${JSON.stringify(e.value)} ) } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");i4.operationName="updateCurrentUserSettings";const s4=e=>" { authMutations { logOut { status } } } ".replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");s4.operationName="logout";const a4=e=>` { authMutations { register(input: { email: ${JSON.stringify(e.email)}, nickname: ${JSON.stringify(e.nick)}, password: ${JSON.stringify(e.password)}, repassword: ${JSON.stringify(e.repassword)}, recaptcha: ${JSON.stringify(e.recaptcha)}, }) { userId sid crossDomainInfo { authToken authDomain } error { ... on DefaultError { message } ... on AuthError { code message } ... on AuthErrorUserBannedOrBlocked { message code objectID objectType reason unbanAt { rfc3339 } bannedAt { rfc3339 } } ... on AuthRecaptchaError { message recaptchaCode: code } ... on UserEditError { message errorCode } ... on AuthRegisterError { message registerCode: code } } } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");a4.operationName="register";const u4=e=>` { authMutations { authByCrossDomainToken(input: { authToken: ${JSON.stringify(e.authToken)}, rememberMe: ${e.rememberMe} }) { sid } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");u4.operationName="authByCrossDomainToken";const l4=e=>` { authMutations { authByCredentials(input: { email: ${JSON.stringify(e.email)}, password: ${JSON.stringify(e.password)}, recaptcha: ${JSON.stringify(e.recaptcha)}, rememberMe: ${e.rememberMe}, }) { sid userId crossDomainInfo { authDomain, authToken } error { ... on DefaultError { message } ... on ErrorInterface { message } ... on AuthError { message code } ... on AuthErrorUserBannedOrBlocked { message code objectType objectID reason bannedAt { rfc3339 } unbanAt { rfc3339 } } ... on AuthRecaptchaError { message recaptchaCode: code } ... on UserEditError { message errorCode } } } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");l4.operationName="authByCredentials";const c4=e=>` { socialLoginMutations { authByTelegram(input: { hash: ${JSON.stringify(e.hash)}, userInfo: { id: ${JSON.stringify(e.id)}, firstName: ${JSON.stringify(e.firstName)}, lastName: ${JSON.stringify(e.lastName)}, authDate: ${JSON.stringify(e.authDate)}, photoUrl: ${JSON.stringify(e.photoUrl)}, username: ${JSON.stringify(e.username)} } }) { crossDomainInfo { authToken authDomain } userId error { ... on DefaultError { message } ... on ErrorInterface { message } ... on AuthError { code message authTemporaryToken } ... on SocialLoginAuthByTelegramError { message code } ... on SocialLoginErrorUserBannedOrBlocked { message code } } } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");c4.operationName="authByTelegram";const f4=e=>` { socialLoginMutations { authByVK(input: { code: ${JSON.stringify(e.code)}, state: ${JSON.stringify(e.state)}, codeVerifier: ${JSON.stringify(e.codeVerifier)}, deviceID: ${JSON.stringify(e.deviceID)}, redirectURI: ${JSON.stringify(e.redirectURI)}, }) { userId sid crossDomainInfo { authDomain authToken } error { ... on DefaultError { message } ... on AuthError { code message authTemporaryToken } ... on UserEditError { errorCode message } ... on AuthRegisterError { registerCode: code message } ... on AuthRecaptchaError { recaptchaCode: code message } ... on AuthErrorUserBannedOrBlocked { code message objectType objectID reason bannedAt { rfc3339 } unbanAt { rfc3339 } } } } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");f4.operationName="authByVk";const d4=e=>" { socialLoginQueries { authSettings { telegram { botID } vk { apiID redirectURI scope } vkID { apiID redirectURI scope } yandex { apiID redirectURI } } } } ".replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");d4.operationName="getAuthSettings";const p4=e=>" { socialLoginQueries { generateState } } ".replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");p4.operationName="generateState";var pc=(e=>(e.AUTH_CODE_EXPIRED="AUTH_CODE_EXPIRED",e.INCORRECT_CREDENTIALS="INCORRECT_CREDENTIALS",e.PHONE_NOT_CONFIRMED="PHONE_NOT_CONFIRMED",e.USER_BANNED="USER_BANNED",e.USER_BLOCKED="USER_BLOCKED",e.USER_NOT_ACTIVATED="USER_NOT_ACTIVATED",e))(pc||{}),h4=(e=>(e.ALL="ALL",e.MAILS="MAILS",e.NOTIFICATIONS="NOTIFICATIONS",e))(h4||{});const PQ="offline",BQ="width=500, height=300",od={otherUserInfo:"/core/user/widget/",authInfo:"/core/social/auth/info/",changeEmailViaYandex:"/ajax/user/oauth2/bind-yandex.html",changeEmailViaVk:"/ajax/user/oauth2/bind-vkontakte.html"},pa={vkontakte:"https://oauth.vk.ru/oauth/authorize?",facebook:"https://www.facebook.com/dialog/oauth?",google:"https://accounts.google.com/o/oauth2/auth?",yandex:"https://oauth.yandex.ru/authorize?",steam:"/ajax/user/openid2/steam.html"}
49,NQ="ÑÑо-Ñо поÑло не Ñак Ñ Ð¿Ð¾Ð»ÑÑением поÑÑов полÑзоваÑелÑ",DQ="ÑÑо-Ñо поÑло не Ñак Ñ Ð¿Ð¾Ð»ÑÑением блогов полÑзоваÑелÑ",UQ="ÑÑо-Ñо поÑло не Ñак Ñ Ð¿Ð¾Ð»ÑÑением избÑаннÑÑ
ÑÑгов полÑзоваÑелÑ",HQ="ÑÑо-Ñо поÑло не Ñак Ñ Ð¿Ð¾Ð»ÑÑением избÑаннÑÑ
блогов полÑзоваÑелÑ",id="не ÑдалоÑÑ Ð¾ÑмеÑиÑÑ ÑÐ²ÐµÐ´Ð¾Ð¼Ð»ÐµÐ½Ð¸Ñ Ð¿ÑоÑиÑаннÑми",_S="не ÑдалоÑÑ Ð¿Ð¾Ð»ÑÑиÑÑ ÑÐ²ÐµÐ´Ð¾Ð¼Ð»ÐµÐ½Ð¸Ñ ÑзеÑа",bS="не ÑдалоÑÑ Ð¿Ð¾Ð»ÑÑиÑÑ ÑÐ²ÐµÐ´Ð¾Ð¼Ð»ÐµÐ½Ð¸Ñ ÑзеÑа",ul="не ÑдалоÑÑ Ð·Ð°Ð»Ð¾Ð³Ð¸Ð½Ð¸ÑÑÑÑ ÑеÑез ÑоÑÑеÑÑ",g4="не ÑдалоÑÑ Ð·Ð°Ð»Ð¾Ð³Ð¸Ð½Ð¸ÑÑÑÑ",wS="возникла пÑоблема пÑи ÑбÑоÑе паÑолÑ",ES="оÑÑÑÑÑÑвÑÐµÑ user ID",SS="невалиднÑй Ð½Ð¾Ð¼ÐµÑ ÑелеÑона",FQ="невалиднÑй код пÑовеÑки",jQ="ÑÑо-Ñо поÑло не Ñак Ñ Ð¿Ð¾Ð»ÑÑением ÑенÑази команд полÑзоваÑелÑ",VQ="ÑÑо-Ñо поÑло не Ñак Ñ Ð¿Ð¾Ð»ÑÑением лиг пÑедикÑоÑа полÑзоваÑелÑ",m4="SportsGrecaptchaLoaded",qQ=`https://www.google.com/recaptcha/api.js?onload=${m4}&render=explicit`,$S="open:auth:popup",Np="PhoneNotConfirmed",TS="sports:views:social:auth",IS="/reauth",ha="storage:auth:user:id",AS="auth:social:redirect-url",Qi="x-platform",xS="auth:pkce_code_challenge",CS="auth:pkce_code_verifier";var Fs=(e=>(e.MOBWEB="mobile",e.DESKTOP="desktop",e))(Fs||{});const WQ=e=>Object.keys(e).reduce((t,n)=>`${t}&${n}=${e[n]}`,""),ga=({url:e,config:t})=>{window.open(`${e}${t?WQ(t):""}`,"",BQ)},sm=e=>e.replace(/\D/g,""),RS=e=>/^[0-9]{9,15}$/.test(e),zQ=e=>/^[0-9]{6}$/.test(e),GQ=()=>{var e;return(e=window.location.origin)==null?void 0:e.includes("m")},Ji=()=>GQ()?Fs.MOBWEB:Fs.DESKTOP,YQ=e=>e.includes("m.")?Fs.MOBWEB:Fs.DESKTOP,KQ=(e,t)=>{const n=e instanceof Error?e.message:typeof e=="string"?e:"",r=t.trim(),o=n.trim(),s=o.toLowerCase()===r.toLowerCase();return o.length>0&&!s?`${r}: ${o}`:r},ZQ=(e,t)=>{const n=e!==void 0;return!t&&!n?[]:[{...n?{error:e}:{},...t}]},Ge=({error:e,customMessage:t,details:n})=>{const r=KQ(e,t),o=ZQ(e,n);console.error(`[Sports][User] ${r}`,...o)};function y4(e){if(!e)throw new Je(Ye.MODEL_CREATION_ERROR,"оÑÑÑÑÑÑвÑÐµÑ Ð¸Ð½ÑÑÐ°Ð½Ñ Api Client");return{async getCurrentUserInfo(){var t,n,r,o,s,a,u,f;try{const d=await e.gqlQuery(__,{});if(!((t=d?.current)!=null&&t.user))return{id:"",nick:"",url:"",avatar:"",mustSetRuEmail:!1,isAdmin:!1,commentsLinksEnabled:!1,isAuthorized:!1};const p=d.current.user;return{avatar:((n=p.picture)==null?void 0:n.url)??"",id:p?.id??"",nick:p?.nick??"",url:p?.url??"",commentsLinksEnabled:((r=d?.current)==null?void 0:r.commentsLinksEnabled)??!1,mustSetRuEmail:((s=(o=d?.current)==null?void 0:o.user)==null?void 0:s.mustSetRuEmail)??!1,isAdmin:!!((a=d?.current)!=null&&a.isAdmin),isAuthor:!!((u=d?.current)!=null&&u.isAuthor),isModerator:!!((f=d?.current)!=null&&f.isModerator),isAuthorized:!0}}catch(d){throw Ge({error:d,customMessage:"Ðе ÑдалоÑÑ Ð¿Ð¾Ð»ÑÑиÑÑ Ð´Ð°Ð½Ð½Ñе ÑекÑÑего полÑзоваÑелÑ"}),new Je(Ye.REQUEST_ERROR)}},async getCurrentUserSettings(){var t;try{const n=await e.gqlQuery(KC,{});if(!((t=n?.current)!=null&&t.user))throw new Je(Ye.REQUEST_ERROR,"Ðе ÑдалоÑÑ Ð¿Ð¾Ð»ÑÑиÑÑ Ð´Ð°Ð½Ð½Ñе полÑзоваÑелÑ");return{settings:n.current.settings??{},user:n.current.user}}catch(n){throw Ge({error:n,customMessage:"Ðе ÑдалоÑÑ Ð¿Ð¾Ð»ÑÑиÑÑ Ð´Ð°Ð½Ð½Ñе полÑзоваÑелÑ"}),n}},async updateCurrentUserSettings(t){try{return(await e.gqlMutation(i4,t)).userMutations.setSettings}catch(n){throw Ge({error:n,customMessage:"Ðе ÑдалоÑÑ Ð¾Ð±Ð½Ð¾Ð²Ð¸ÑÑ Ð½Ð°ÑÑÑойки ÑекÑÑего полÑзоваÑелÑ"}),n}},async getUserPosts({userID:t,amount:n=2}){const r=await e.gqlQuery(XC,{userID:t,amount:n});if(!r)throw Ge({customMessage:"Ðе ÑдалоÑÑ Ð¿Ð¾Ð»ÑÑиÑÑ Ð¿Ð¾ÑÑÑ Ð¿Ð¾Ð»ÑзоваÑелÑ",details:{backendResponse:r,userID:t}}),new Je(Ye.USER_POSTS_ERROR,NQ);return r.byUserID},async getUserBlogs({userID:t,amount:n=2}){const r=await e.gqlQuery(JC,{userID:t,amount:n});if(!r)throw Ge({customMessage:"Ðе ÑдалоÑÑ Ð¿Ð¾Ð»ÑÑиÑÑ Ð±Ð»Ð¾Ð³Ð¸ полÑзоваÑелÑ",details:{backendResponse:r,userID:t}}),new Je(Ye.USER_BLOGS_ERROR,DQ);return r.authorships},async getUserTags({userID:t,amount:n=7}){const r=await e.gqlQuery(t4,{userID:t,amount:n});if(!r)throw Ge({customMessage:"Ðе ÑдалоÑÑ Ð¿Ð¾Ð»ÑÑиÑÑ Ñеги полÑзоваÑелÑ",details:{backendResponse:r,userID:t}}),new Je(Ye.USER_TAGS_ERROR,UQ);return r.subscriptions},async getUserSubscribedToBlogs({userID:t,amount:n=2}){const r=await e.gqlQuery(e4,{userID:t,amount:n});if(!r)throw Ge({customMessage:"Ðе ÑдалоÑÑ Ð¿Ð¾Ð»ÑÑиÑÑ Ð¿Ð¾Ð´Ð¿Ð¸Ñки на блоги",details:{backendResponse:r,userID:t}}),new Je(Ye.USER_BLOGS_SUBSCRIBED_ERROR,HQ);return r.subscriptions},async markAllNotifications(){const t=await e.gqlMutation(n4,{});if(!t||!t.markAllNotifications||!t.markAllNotifications.status)throw Ge({customMessage:id,details:{backendResponse:t}}),new Je(Ye.USER_MARK_AS_READ_ERROR,id);return t.markAllNotifications.status},async markNotifications(t){const n=await e.gqlMutation(r4,{ids:t});if(!n||!n.markNotifications||!n.markNotifications.status)throw Ge({customMessage:id,details:{backendResponse:n,ids:t}}),new Je(Ye.USER_MARK_AS_READ_ERROR,id);return n.markNotifications.status},async getLastNotificationsList(t){const n={filter:t?.type||h4.NOTIFICATIONS,lastId:t?.lastId||null,amount:t?.amount||10},r=await e.gqlQuery(ZC,n);if(!r)throw Ge({customMessage:_S,details:{backendResponse:r,params:n}}),new Je(Ye.USER_NOTIFICATIONS_LIST_ERROR,_S);return r.lastList},async getUserFantasyTeams(){const t=await e.gqlQuery(GC,{});if(!t)throw Ge({customMessage:"Ðе ÑдалоÑÑ Ð¿Ð¾Ð»ÑÑиÑÑ ÑÑнÑези-ÐºÐ¾Ð¼Ð°Ð½Ð´Ñ Ð¿Ð¾Ð»ÑзоваÑелÑ",details:{backendResponse:t}}),new Error(jQ);return t},async getUserPredictor({userID:t}){const n=await e.gqlQuery(YC,{userID:t});if(!n)throw Ge({customMessage:`Ðе ÑдалоÑÑ Ð¿Ð¾Ð»ÑÑиÑÑ Ð»Ð¸Ð³Ð¸ пÑедикÑоÑа userID=${t}`,details:{backendResponse:n,userID:t}}),new Error(VQ);return n},async getUnreadNotificationsAmount(){const t=await e.gqlQuery(QC,{});if(!t)throw Ge({customMessage:bS,details:{backendResponse:t}}),new Je(Ye.USER_NOTIFICATION_AMOUNT_ERROR,bS);const{mailsUnreadAmount:n,notificationsUnreadAmount:r}=t;return{mailsUnreadAmount:n.amount,notificationsUnreadAmount:r.amount}}}}function cbe(e){if(!e)throw new Je(Ye.MODEL_CREATION_ERROR,"оÑÑÑÑÑÑвÑÐµÑ Ð¸Ð½ÑÑÐ°Ð½Ñ GQL Client");return{async banUser(t){try{const n=await e.gqlMutation(DC,t);if(!n.userMutations.ban)throw new Je(Ye.REQUEST_ERROR,"не ÑдалоÑÑ Ð·Ð°Ð±Ð°Ð½Ð¸ÑÑ Ð¿Ð¾Ð»ÑзоваÑелÑ");return n.userMutations.ban}catch(n){throw Ge({error:n,customMessage:"не ÑдалоÑÑ Ð·Ð°Ð±Ð°Ð½Ð¸ÑÑ Ð¿Ð¾Ð»ÑзоваÑелÑ",details:{payload:t}}
49),new Je(Ye.REQUEST_ERROR,n)}},async unbanUser(t){try{const n=await e.gqlMutation(UC,t);if(!n.userMutations.changeBanLevel)throw new Je(Ye.REQUEST_ERROR,"не ÑдалоÑÑ ÑазбаниÑÑ Ð¿Ð¾Ð»ÑзоваÑелÑ");return n.userMutations.changeBanLevel}catch(n){throw Ge({error:n,customMessage:"не ÑдалоÑÑ ÑазбаниÑÑ Ð¿Ð¾Ð»ÑзоваÑелÑ",details:{payload:t}}),new Je(Ye.REQUEST_ERROR,n)}}}}function v4(e){if(!e)throw new Je(Ye.MODEL_CREATION_ERROR,"оÑÑÑÑÑÑвÑÐµÑ Ð¸Ð½ÑÑÐ°Ð½Ñ Api Client");return{async followUser(t){var n;if(!t)throw new Je(Ye.USER_ID_NOT_EXISTS);try{const r=await e.gqlMutation(WC,{ID:t});if(!((n=r?.userMutations)!=null&&n.follow))throw new Je(Ye.REQUEST_ERROR,"Ðе ÑдалоÑÑ Ð¿Ð¾Ð´Ð¿Ð¸ÑаÑÑÑÑ Ð½Ð° полÑзоваÑелÑ");return r.userMutations.follow.status}catch(r){throw Ge({error:r,customMessage:"Ðе ÑдалоÑÑ Ð¿Ð¾Ð´Ð¿Ð¸ÑаÑÑÑÑ Ð½Ð° полÑзоваÑелÑ",details:{userId:t}}),r}},async unfollowUser(t){var n;if(!t)throw new Je(Ye.USER_ID_NOT_EXISTS);try{const r=await e.gqlMutation(zC,{ID:t});if(!((n=r?.userMutations)!=null&&n.unfollow))throw new Je(Ye.REQUEST_ERROR,"Ðе ÑдалоÑÑ Ð¾ÑпиÑаÑÑÑÑ Ð¾Ñ Ð¿Ð¾Ð»ÑзоваÑелÑ");return r.userMutations.unfollow.status}catch(r){throw Ge({error:r,customMessage:"Ðе ÑдалоÑÑ Ð¾ÑпиÑаÑÑÑÑ Ð¾Ñ Ð¿Ð¾Ð»ÑзоваÑелÑ",details:{userId:t}}),r}},async createBookmark(t){try{return await e.gqlMutation(VC,{...t})}catch(n){throw Ge({error:n,customMessage:" Ðе ÑдалоÑÑ Ð´Ð¾Ð±Ð°Ð²Ð¸ÑÑ Ð² закладки"}),n}},async deleteBookmark(t){try{return await e.gqlMutation(qC,{...t})}catch(n){throw Ge({error:n,customMessage:"Ðе ÑдалоÑÑ ÑдалиÑÑ Ð¸Ð· закладок"}),n}}}}function QQ(e,t){return e>0?`${e} ${t}`:t}function Vr(e,t,n,r,o=""){let s="";const a=r||n,u=Math.abs(e);return u.toString().indexOf(".")>-1?s=n:u?u%10==1&&u%100!=11?s=t:u%10>=2&&u%10<=4&&(u%100<10||u%100>=20)?s=n:s=a:s=o,/%d/g.test(s)&&(s=s.replace(/%d/g,u.toString())),s}function JQ(e,t){const n=Math.abs(e.difference);let r=0;return n<3600*1e3?n<20*1e3?t({type:"now"}):n<60*1e3?(r=Math.floor(n/1e3),t({type:"less_minute",delta:r})):(r=Math.floor(n/6e4),t({type:"less_hour",delta:r})):n<1440*6e4?(r=Math.floor(n/(60*6e4)),t({type:"less_day",delta:r})):n<720*60*6e4?(r=Math.floor(n/(1440*6e4)),t({type:"less_30days",delta:r})):n<360*24*60*6e4?(r=e.now.getMonth()-e.month,r<0&&(r+=12),t({type:"less_year",delta:r})):(r=new Date(n).getFullYear()-1970,t({type:"more_year",delta:r}))}const _4="пÑÑмо ÑейÑаÑ",jh="ÑолÑко ÑÑо",b_="ÑегоднÑ",w_="вÑеÑа",hc="назад",Dp="ÑеÑез",bn={sec:{name1:"ÑекÑндÑ",name2:"ÑекÑндÑ",name3:"ÑекÑнд",short:"Ñек."},min:{name1:"минÑÑÑ",name2:"минÑÑÑ",name3:"минÑÑ",short:"мин."},hour:{name1:"ÑаÑ",name2:"ÑаÑа",name3:"ÑаÑов",short:"ÑаÑ."},day:{name1:"денÑ",name2:"днÑ",name3:"дней"},month:{name1:"меÑÑÑ",name2:"меÑÑÑа",name3:"меÑÑÑев"},year:{name1:"год",name2:"года",name3:"леÑ"}},Ts=[{nom:"ЯнваÑÑ",gen:"ÑнваÑÑ"},{nom:"ФевÑалÑ",gen:"ÑевÑалÑ"},{nom:"ÐаÑÑ",gen:"маÑÑа"},{nom:"ÐпÑелÑ",gen:"апÑелÑ"},{nom:"Ðай",gen:"маÑ"},{nom:"ÐÑнÑ",gen:"иÑнÑ"},{nom:"ÐÑлÑ",gen:"иÑлÑ"},{nom:"ÐвгÑÑÑ",gen:"авгÑÑÑа"},{nom:"СенÑÑбÑÑ",gen:"ÑенÑÑбÑÑ"},{nom:"ÐкÑÑбÑÑ",gen:"окÑÑбÑÑ"},{nom:"ÐоÑбÑÑ",gen:"ноÑбÑÑ"},{nom:"ÐекабÑÑ",gen:"декабÑÑ"}],b4=[{full:"ÐоÑкÑеÑенÑе",short:"вÑ"},{full:"ÐонеделÑник",short:"пн"},{full:"ÐÑоÑник",short:"вÑ"},{full:"СÑеда",short:"ÑÑ"},{full:"ЧеÑвеÑг",short:"ÑÑ"},{full:"ÐÑÑниÑа",short:"пÑ"},{full:"СÑббоÑа",short:"Ñб"}],XQ={right_now:_4,just_now:jh,today:b_,yesterday:w_,before:hc,after:Dp,time:bn,month:Ts,week:b4},eJ=Object.freeze(Object.defineProperty({__proto__:null,after:Dp,before:hc,default:XQ,just_now:jh,month:Ts,right_now:_4,time:bn,today:b_,week:b4,yesterday:w_},Symbol.toStringTag,{value:"Module"}));function tJ(e){return JQ(e,t=>{let n="";const r=t.type,o=t.delta,{time:s}=eJ;switch(r){case"now":return jh;case"less_minute":n=Vr(o,s.sec.name1,s.sec.name2,s.sec.name3);break;case"less_hour":n=Vr(o,s.min.name1,s.min.name2,s.min.name3);break;case"less_day":n=Vr(o,s.hour.name1,s.hour.name2,s.hour.name3);break;case"less_30days":n=Vr(o,s.day.name1,s.day.name2,s.day.name3);break;case"less_year":n=Vr(o,s.month.name1,s.month.name2,s.month.name3);break;case"more_year":n=Vr(o,s.year.name1,s.year.name2,s.year.name3);break}return QQ(o,`${n} ${hc}`)})}function xi(e){let t="";return e<10&&(t="0"),t+=e,t}var Ut=(e=>(e.NOW="now",e.FUTURE_LESS_HOUR="future_less_hour",e.FUTURE_LESS_2HOUR="future_less_2hour",e.FUTURE_MORE_2HOUR="future_more_2hour",e.LESS_MINUTES="less_minutes",e.LESS_HOUR="less_hour",e.MORE_YEAR="more_year",e.TODAY="today",e.YESTERDAY="yesterday",e.CURRENT_YEAR="current_year",e))(Ut||{});function nJ(e,t){const n=`${xi(e.hours)}:${xi(e.minutes)}`,r=Math.abs(e.difference);if(e.is_future){if(r<20*1e3)return t({type:Ut.NOW});if(r<60*6e4){const o=Math.floor(r/6e4);return t({type:Ut.FUTURE_LESS_HOUR,minutes:o})}else if(r<120*6e4){const o=Math.floor(r/6e4)-60;return t({type:Ut.FUTURE_LESS_2HOUR,minutes:o,hours:1})}return t({type:Ut.FUTURE_MORE_2HOUR,time:n,day:e.day,month:e.month,year:e.fullYear})}if(r<60*6e4){if(r<20*1e3)return t({type:Ut.NOW});if(r<60*1e3){const o=Math.floor(r/1e3);return t({type:Ut.LESS_MINUTES,seconds:o})}else{const o=Math.floor(r/6e4);return t({type:Ut.LESS_HOUR,minutes:o})}}return e.is_today?t({type:Ut.TODAY,time:n}):e.is_yesterday?t({type:Ut.YESTERDAY,time:n}):e.is_current_year?t({type:Ut.CURRENT_YEAR,time:n,month:e.month,day:e.day}):t({type:Ut.MORE_YEAR,time:n,month:e.month,day:e.day,year:e.fullYear})}function rJ(e){return nJ(e,t=>{switch(t.type){case Ut.NOW:return jh;case Ut.FUTURE_LESS_HOUR:return`${Dp} ${t.minutes} ${Vr(t.minutes,bn.min.name1,bn.min.name2,bn.min.name3)}`;case Ut.FUTURE_LESS_2HOUR:{const n=t.minutes>0?` ${t.minutes} ${Vr(t.minutes,bn.min.name1,bn.min.name2,bn.min.name3)}`:"";return`${Dp} 1 ${bn.hour.name1}${n}`}case Ut.FUTURE_MORE_2HOUR:return`${t.day} ${Ts[t.month].gen} ${t.year}, ${t.time}`;case Ut.LESS_MINUTES:return`${t.seconds} ${Vr(t.seconds,bn.sec.name1,bn.sec.name2,bn.sec.name3)} ${hc}`;case Ut.LESS_HOUR:return`${t.minutes} ${Vr(t.minutes,bn.min.name1,bn.min.name2,bn.min.name3)} ${hc}`;case Ut.TODAY:return`${b_}, ${t.time}`;case Ut.YESTERDAY:return`${w_}, ${t.time}`;case Ut.CURRENT_YEAR:return`${t.day} ${Ts[t.month].gen}, ${t.time}`;case Ut.MORE_YEAR:return`${t.day} ${Ts[t.month].gen} ${t.year}, ${t.time}`}})}function oJ(e){return`${e.day} ${Ts[e.month].gen}`}function iJ(e){return e.format.replace(/hh/g,e.hours.toString().padStart(2,"0")).replace(/h/g,e.hours.toString()).replace(/mm/g,e.minutes.toString().padStart(2,"0")).replace(/m/g,e.minutes.toString()).replace(/ss/g,e.seconds.toString().padStart(2,"0")).replace(/s/g,e.seconds.toString()).replace(/DD/g,e.day.toString().padStart(2,"0")).replace(/D/g,e.day.toString()).replace(/MM/g,(e.month+1).toString().padStart(2,"0")).replace(/M/g,(e.month+1).toString()).replace(/YYYY/g,e.fullYear.toString()).replace(/YY/g,e.fullYear.toString().slice(-2))}function sJ(e){const t=xi(e.day),n=xi(e.month+1);return`${t}.${n}.${e.fullYear}`}function aJ(e){const t=`${xi(e.hours)}:${xi(e.minutes)}`,n=Ts[e.month].gen;return`${e.day} ${n} ${e.fullYear}, ${t}`}function uJ(e,t,n=""){const r=t||Date.now(),o=new Date(e),s=new Date(r-864e5),a=new Date(r);return{now:a,format:n,current:o,day:o.getDate(),weekday:o.getDay(),month:o.getMonth(),fullYear:o.getFullYear(),hours:o.getHours(),minutes:o.getMinutes(),seconds:o.getSeconds(),difference:o.getTime()-a.getTime(),is_today:a.toDateString()===o.toDateString(),is_yesterday:s.toDateString()===o.toDateString(),is_future:o.getTime()>a.getTime(),is_current_year:o.getFullYear()===a.getFullYear()}}function lJ(e){let t=xi(e.hours);return t+=":"+xi(e.minutes),t}const cJ={time:lJ};function fJ(e){return function({timestamp:t,template:n,format:r,options:o={}}){const s={...cJ,...e};if(typeof s[n]=="function"){const a=uJ(t,o.now,r);return s[n](a)}return t}}const dJ=fJ({akhmatova:tJ,bunin:rJ,shortdate:oJ,format:iJ,date:sJ,fulldate:aJ});
49let Oa=class extends Error{constructor({code:t,message:n,userId:r}){super(n),this.code=t,this.userId=r}},pJ=class extends Error{constructor({message:t,code:n,nextTry:r}){super(`[Sports][User] Code: ${n} ${t}`),this.message=t,this.code=n,this.nextTry=r}};function hJ(e){return e!=null&&"nextTryTime"in e}function OS(e){const t=e?.message??"";if(hJ(e)){const n=dJ({timestamp:new Date(e.nextTryTime).getTime(),template:"bunin"}).toString();return t.replace("%s",n)}return t}function w4(e,t){if(!e)throw new Je(Ye.MODEL_CREATION_ERROR,"оÑÑÑÑÑÑвÑÐµÑ Ð¸Ð½ÑÑÐ°Ð½Ñ Api Client");const n=r=>t?new URL(r,t):r;return{async getCurrentUserInfo(){try{const r=await e.gqlQuery(__,{});if(!r)throw new Je(Ye.REQUEST_ERROR);const o=r.current||null;return this.saveUserIdFromUserInfoToLS(o),o}catch(r){throw Ge({error:r,customMessage:"Ðе ÑдалоÑÑ Ð¿Ð¾Ð»ÑÑиÑÑ Ð´Ð°Ð½Ð½Ñе ÑекÑÑего полÑзоваÑелÑ"}),new Je(Ye.REQUEST_ERROR)}},async getOtherUserInfo(r){const o=n(od.otherUserInfo),s=await fetch(o,{body:JSON.stringify(r)});if(!s.ok)throw Ge({customMessage:"Ðе ÑдалоÑÑ Ð¿Ð¾Ð»ÑÑиÑÑ Ð´Ð°Ð½Ð½Ñе полÑзоваÑелÑ",details:{backendResponse:s,payload:r}}),new Error(s.statusText);return await s.json()},async login({email:r,password:o,recaptcha:s,rememberMe:a=!0}){var u;const f=Ji();e.updateHttpEntry(`${window.location.origin}/gql/graphql/`),e.updateHeaders({[Qi]:f});const d=await e.gqlMutation(l4,{email:r,password:o,recaptcha:s,rememberMe:a});if(!((u=d?.authMutations)!=null&&u.authByCredentials))throw Ge({customMessage:sn.USER_LOGIN_ERROR,details:{backendResponse:d}}),new Oa({code:Ye.REQUEST_ERROR,message:sn.USER_LOGIN_ERROR});const p=d.authMutations.authByCredentials.error;if(p){const y=p.code||p.recaptchaCode||p.errorCode||Ye.REQUEST_ERROR,m=d.authMutations.authByCredentials.userId;throw Ge({error:p,customMessage:"Ðе ÑдалоÑÑ Ð²ÑполниÑÑ Ð²Ñ
од",details:{code:y,userId:m}}),new Oa({code:y,message:p.message,userId:m})}const h=d.authMutations.authByCredentials;return h.userId&&this.setUserIdToLS(h.userId),h},async register(r){var o;e.updateHttpEntry(`${window.location.origin}/gql/graphql/`),e.updateHeaders({[Qi]:Ji()});const s=await e.gqlMutation(a4,{email:r.email,nick:r.nick,password:r.password,repassword:r.repassword,recaptcha:r.re
49captcha});if(!((o=s?.authMutations)!=null&&o.register))throw new Oa({code:Ye.REQUEST_ERROR,message:sn.USER_REGISTER});const a=s.authMutations.register.error;if(a){const f=a.code||a.recaptchaCode||a.errorCode||a.registerCode||Ye.REQUEST_ERROR,d=s.authMutations.register.userId;throw Ge({error:a,customMessage:"Ðе ÑдалоÑÑ Ð²ÑполниÑÑ ÑегиÑÑÑаÑиÑ",details:{code:f,userId:d}}),new Oa({code:f,message:a.message,userId:d})}const u=s.authMutations.register;return u.userId&&this.setUserIdToLS(u.userId),u},async crossLogin({domain:r,token:o,defaultErrorMessage:s=g4,rememberMe:a=!0}){var u,f;e.updateHttpEntry(`https://${r}/gql/graphql/`),e.updateHeaders({[Qi]:YQ(r)});try{const d=await e.gqlMutation(u4,{authToken:o,rememberMe:a});if(!((f=(u=d?.authMutations)==null?void 0:u.authByCrossDomainToken)!=null&&f.sid))throw new Error(s)}catch(d){throw Ge({error:d,customMessage:s}),new Error(s)}finally{Ji()===Fs.DESKTOP&&e.updateHttpEntry(`${window.location.origin}/gql/graphql/`),e.replaceHeaders({[Qi]:Ji()})}},async logout(){var r,o;const s=await e.gqlMutation(s4,{});if(!((o=(r=s?.authMutations)==null?void 0:r.logOut)!=null&&o.status))throw Ge({customMessage:"Ðе ÑдалоÑÑ Ð·Ð°Ð²ÐµÑÑиÑÑ ÑеÑÑÐ¸Ñ Ð¿Ð¾Ð»ÑзоваÑелÑ",details:{backendResponse:s}}),new Error(sn.USER_LOGOUT);this.removeUserIdFromLS()},async remind(r){try{return(await e.gqlMutation(o4,{email:r.login})).userMutations.sendResetPasswordLink}catch(o){throw Ge({error:o,customMessage:"Ðе ÑдалоÑÑ Ð¾ÑпÑавиÑÑ Ð·Ð°Ð¿ÑÐ¾Ñ Ð½Ð° ÑбÑÐ¾Ñ Ð¿Ð°ÑолÑ"}),o}},async getSocialAuthConfigs(){const r=n(od.authInfo),o=await fetch(r,{});if(!o.ok)throw Ge({customMessage:"Ðе ÑдалоÑÑ Ð¿Ð¾Ð»ÑÑиÑÑ ÐºÐ¾Ð½ÑигÑÑаÑÐ¸Ñ Ð´Ð»Ñ Ð°Ð²ÑоÑизаÑии ÑеÑез ÑоÑÑеÑи",details:{backendResponse:o}}),new Error(o.statusText);return await o.json()},async getSocialAuthSettings(){const r=Ji();e.replaceHeaders({[Qi]:r});try{const o=await e.gqlQuery(d4,{});if(!(o!=null&&o.authSettings))throw new Error(sn.USER_LOGIN_AUTH_SETTINGS);return o.authSettings}catch(o){throw Ge({error:o,customMessage:sn.USER_LOGIN_AUTH_SETTINGS}),new Error(sn.USER_LOGIN_AUTH_SETTINGS)}},async getSocialAuthState(){try{const r=await e.gqlQuery(p4,{});if(!r.generateState)throw new Error(sn.USER_LOGIN_AUTH_SETTINGS);return r.generateState}catch{throw new Error(sn.USER_LOGIN_AUTH_SETTINGS)}},loginGoogle(r){const o=r.scope.map(a=>encodeURIComponent(a)).join("+"),s={response_type:"code",client_id:r.api_id,redirect_uri:this.checkUrl(r.redirect_uri),scope:o,access_type:PQ};ga({url:pa.google,config:s})},async loginVk({code:r,codeVerifier:o,deviceId:s,state:a,redirectUri:u}){var f;e.updateHttpEntry(`${window.location.origin}/gql/graphql/`),e.updateHeaders({[Qi]:Ji()});const d=await e.gqlMutation(f4,{code:r,codeVerifier:o,deviceID:s,state:a,redirectURI:u});if(!((f=d?.socialLoginMutations)!=null&&f.authByVK))throw Ge({customMessage:sn.USER_LOGIN_VK_ERROR,details:{backendResponse:d}}),new Error(sn.USER_LOGIN_VK_ERROR);const p=d.socialLoginMutations.authByVK.error;if(p){const y=p.code||p.errorCode||p.registerCode||p.registerCode,m=p.authTemporaryToken;if(y===pc.PHONE_NOT_CONFIRMED)return{error:Np,info:{login:"",id:d.socialLoginMutations.authByVK.userId,authToken:m??void 0},message:p.message};throw Ge({error:p,customMessage:sn.USER_LOGIN_VK_ERROR}),new Error(p.message)}const h=d.socialLoginMutations.authByVK.crossDomainInfo;return{result:!0,auth_domain:h.authDomain,auth_token:h.authToken}},loginFb(r){const o={display:"popup",client_id:r.api_id,redirect_uri:this.checkUrl(r.redirect_uri),scope:r.scope.join(",")};ga({url:pa.facebook,config:o})},loginYandex(r){const o={response_type:"code",client_id:r.client_id,redirect_uri:window.location.origin+r.redirect_uri};ga({url:pa.yandex,config:o})},loginSteam(){const r=window.location.origin+pa.steam;ga({url:r})},async loginTelegram(r){var o;const s=Ji();s===Fs.MOBWEB&&e.updateHttpEntry(`${window.location.origin}/gql/graphql/`),e.replaceHeaders({[Qi]:s});let a;try{a=await e.gqlMutation(c4,{hash:r.hash,id:r.id,firstName:r.firstName,authDate:r.authDate,lastName:r.lastName||"",username:r.username||"",photoUrl:r.photoUrl||""})}catch(d){throw Ge({error:d,customMessage:sn.USER_LOGIN_TELEGRAM_E
49RROR}),new Error(sn.USER_LOGIN_TELEGRAM_ERROR)}if(!((o=a?.socialLoginMutations)!=null&&o.authByTelegram))throw Ge({customMessage:sn.USER_LOGIN_TELEGRAM_ERROR,details:{backendResponse:a}}),new Error(sn.USER_LOGIN_TELEGRAM_ERROR);const u=a.socialLoginMutations.authByTelegram.error;if(u){const d="code"in u?u.code:void 0,p="authTemporaryToken"in u?u.authTemporaryToken:void 0;if(d===pc.PHONE_NOT_CONFIRMED)return{error:Np,info:{login:"",id:a.socialLoginMutations.authByTelegram.userId,authToken:p??void 0},message:u.message};throw Ge({error:u,customMessage:sn.USER_LOGIN_TELEGRAM_ERROR}),new Error(u.message)}const f=a.socialLoginMutations.authByTelegram.crossDomainInfo;return{result:!0,auth_domain:f.authDomain,auth_token:f.authToken}},changeEmailViaYandex(r){const o={response_type:"code",client_id:r.client_id,redirect_uri:window.location.origin+IS+"?type=yandex"};ga({url:pa.yandex,config:o})},changeEmailViaVk(r){const o={client_id:r.client_id,scope:r.scope.join(","),display:"popup",redirect_uri:window.location.origin+IS+"?type=vk"};ga({url:pa.vkontakte,config:o})},async sendSocialCode({code:r,url:o}){const s=`${n(o).toString()}?code=${r}`,a=await fetch(s,{});if(!a.ok)throw Ge({customMessage:"Ðе ÑдалоÑÑ Ð¾ÑпÑавиÑÑ ÐºÐ¾Ð´",details:{backendResponse:a}}),new Error(a.statusText);const u=await a.json();if(!u.result)throw Ge({customMessage:"Ðе ÑдалоÑÑ Ð¾ÑпÑавиÑÑ ÐºÐ¾Ð´",details:{backendResponse:u}}),new Error(u.message)},async sendYandexCode(r){await this.sendSocialCode({code:r,url:od.changeEmailViaYandex})},async sendVkCode(r){await this.sendSocialCode({code:r,url:od.changeEmailViaVk})},async changePhone({userID:r,phone:o}){if(!r)throw new Je(Ye.USER_ID_MISSING_ERROR,ES);const s=sm(o);if(!RS(s))throw new Je(Ye.USER_INVALID_PHONE_ERROR,SS);const{userMutations:a}=await e.gqlMutation(FC,{userID:r,phone:`+${s}`}),u=a.changePhone;if(!u.success){const f=OS(u.error);throw Ge({error:u.error,customMessage:"Ðе ÑдалоÑÑ Ð¸Ð·Ð¼ÐµÐ½Ð¸ÑÑ Ð½Ð¾Ð¼ÐµÑ ÑелеÑона"}),new Je(Ye.USER_CHANGE_PHONE_ERROR,f)}return u},async confirmPhone({phone:r,code:o,userID:s,authToken:a}){const u=sm(r);if(!RS(u))throw new Je(Ye.USER_INVALID_PHONE_ERROR,SS);const f=sm(o);if(!zQ(f))throw new Je(Ye.USER_INVALID_CODE_ERROR,FQ);if(!s)throw new Je(Ye.USER_ID_MISSING_ERROR,ES);const{userMutations:d}=await e.gqlMutation(jC,{userID:s,phone:`+${u}`,code:o,authToken:a}),p=d.confirmPhone;if(!p.success){const h=OS(p.error);throw Ge({error:p.error,customMessage:"Ðе ÑдалоÑÑ Ð¿Ð¾Ð´ÑвеÑдиÑÑ Ð½Ð¾Ð¼ÐµÑ ÑелеÑона"}),new Je(Ye.USER_CONFIRM_PHONE_ERROR,h)}return p},checkUrl(r){const o=document.createElement("a");return o.href=r,o.href},setUserIdToLS(r){try{localStorage.setItem(ha,r.toString())}catch(o){Ge({error:o,customMessage:"Ðе ÑдалоÑÑ ÑоÑ
ÑаниÑÑ userId в localStorage"})}},removeUserIdFromLS(){try{localStorage.removeItem(ha)}catch(r){Ge({error:r,customMessage:"Ðе ÑдалоÑÑ ÑдалиÑÑ userId из localStorage"})}},saveUserIdFromUserInfoToLS(r){try{if(r&&!localStorage.getItem(ha)){const o=r.user.id;localStorage.setItem(ha,o.toString())}!r&&localStorage.getItem(ha)&&localStorage.removeItem(ha)}catch(o){Ge({error:o,customMessage:"Ðе ÑдалоÑÑ ÑинÑ
ÑонизиÑоваÑÑ userId в localStorage"})}},async changeEmail(r){var o,s,a;const u=await e.gqlMutation(HC,r);if(!((o=u?.userMutations)!=null&&o.changeEmail))throw Ge({customMessage:"Ðе ÑдалоÑÑ Ð¸Ð·Ð¼ÐµÐ½Ð¸ÑÑ email: некоÑÑекÑнÑй оÑÐ²ÐµÑ ÑеÑвеÑа",details:{backendResponse:u}}),new Je(Ye.USER_CHANGE_EMAIL_ERROR);const f=(a=(s=u?.userMutations)==null?void 0:s.changeEmail)==null?void 0:a.error;if(f){const d=f.code||f.errorCode||Ye.USER_CHANGE_EMAIL_ERROR,p=f.nextTryTime;throw Ge({error:f,customMessage:"Ðе ÑдалоÑÑ Ð¸Ð·Ð¼ÐµÐ½Ð¸ÑÑ email"}),new pJ({message:f.message,code:d,nextTry:p})}return u.userMutations.changeEmail.success}}}var E4=(e=>(e.LIMIT_REACHED="LIMIT_REACHED",e.USER_NOT_FOUND="USER_NOT_FOUND",e))(E4||{}),Up=(e=>(e.SCREEN_REGISTRATION="REGISTRATION",e.SCREEN_AUTH="AUTH",e.SCREEN_REMINDER="REMINDER",e.SCREEN_VERIFICATION="VERIFICATION",e))(Up||{});let sd=null;function gJ(){return{openAuthPopup({screen:e=Up.SCREEN_AUTH,data:t,redirectUrl:n,socialSettings:r}={}){const o=new CustomEvent($S,{detail:{open:!0,screen:e,data:t,redirectUrl:n,socialSettings:r}});window.dispatchEvent(o)},closeAuthPopup(){const e=new CustomEvent($S,{detail:{open:!1}});window.dispatchEvent(e)},async initRecaptcha(){var e;if(!((e=window.grecaptcha)!=null&&e.render))return sd||(sd=new Promise((t,n)=>{const r=document.createElement("script");window[m4]=()=>{t()},r.src=qQ,document.head.appendChild(r),r.onerror=()=>{sd=null,n(new Error("Failed to load recaptcha script"))}}),sd)},resetRecaptcha(e){var t;(t=window.grecaptcha)==null||t.reset(e)},executeRecaptcha(e){var t;(t=window.grecaptcha)==null||t.execute(e)},getRecaptchaWidgetId({element:e,captchaKey:t,cb:n}){var r;return!window.grecaptcha||!((r=window?.grecaptcha)!=null&&r.render)?null:window.grecaptcha.render(e,{size:"invisible",sitekey:t,isolated:!0,badge:"inl
49ine",callback:n})}}}const kS=e=>{const t=String.fromCharCode(...new Uint8Array(e));return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")},mJ=async()=>{const e=crypto.getRandomValues(new Uint8Array(64)),t=kS(e.buffer),n=await crypto.subtle.digest("SHA-256",new TextEncoder().encode(t)),r=kS(n);return{codeVerifier:t,codeChallenge:r}};let S4=class{constructor(t,n){this.gqlClient=t,this.userInstance=$4.getInstance(t),this.socialAuthInfo=null,this.socialAuthSettings=null,this.accountModel=w4(t,n),this.authPopupModel=gJ(),this.crossLoginProcessing=!1,this.boundEventHandler=this.socialAuthCb.bind(this)}async handleResponse({response:t,login:n}){if(this.crossLoginProcessing)return;const{code:r,text:o}=t;if(r&&r===Np){this.openVerificationPopup({login:n});return}if(r)throw new Je(r,o);if(!t.id)return;const{id:s,name:a,avatar:u,auth_domain:f,auth_token:d}=t;this.userInstance.setUserInfo({id:String(s),name:a,avatar:u,isAuthorized:!0}),d&&f&&await this.crossLogin({domain:f,token:d})}async login({email:t,password:n,recaptcha:r,rememberMe:o}){try{const{crossDomainInfo:s}=await this.accountModel.login({email:t,password:n,recaptcha:r,rememberMe:o});s.authDomain&&s.authToken&&await this.crossLogin({domain:s.authDomain,token:s.authToken,rememberMe:o})}catch(s){const{code:a,message:u,userId:f}=s;throw a&&a===pc.PHONE_NOT_CONFIRMED&&f?(this.openVerificationPopup({login:f}),new Oa(s)):new Je(a,u)}}async loginGoogle(){await this.checkSocialAuthConfigs();const{api_id:t,mobile_redirect_uri:n,redirect_uri:r,scope:o}=this.socialAuthInfo.google;this.accountModel.loginGoogle({api_id:t,mobile_redirect_uri:n,redirect_uri:r,scope:o})}async loginVk(t){const n=await this.accountModel.loginVk(t);await this.successfulSocialAuthCb(n)}async loginFb(){await this.checkSocialAuthConfigs();const{api_id:t,mobile_redirect_uri:n,redirect_uri:r,scope:o}=this.socialAuthInfo.facebook;this.accountModel.loginFb({api_id:t,mobile_redirect_uri:n,redirect_uri:r,scope:o})}async loginYandex(){await this.checkSocialAuthSettings();const{apiID:t,redirectURI:n}=this.socialAuthSettings.yandex;this.accountModel.loginYandex({client_id:t,redirect_uri:n})}async loginSteam(){await this.checkSocialAuthConfigs(),this.accountModel.loginSteam()}async loginTelegram(t){const n=await this.accountModel.loginTelegram(t);await this.successfulSocialAuthCb(n)}async changeEmailViaYandex(){await this.checkSocialAuthSettings();const{apiID:t}=this.socialAuthSettings.yandex;this.accountModel.changeEmailViaYandex({client_id:t})}async changeEmailViaVk(){await this.checkSocialAuthSettings();const{apiID:t,scope:n}=this.socialAuthSettings.vk;this.accountModel.changeEmailViaVk({client_id:t,scope:n})}async sendYandexCode(t){return await this.accountModel.sendYandexCode(t)}async sendVkCode(t){return await this.accountModel.sendVkCode(t)}async register({email:t,password:n,repassword:r,recaptcha:o,nick:s}){try{const{crossDomainInfo:a}=await this.accountModel.register({email:t,password:n,repassword:r,nick:s,recaptcha:o});a.authDomain&&a.authToken&&await this.crossLogin({domain:a.authDomain,token:a.authToken,rememberMe:!0})}catch(a){const{code:u,message:f,userId:d}=a;throw u&&u===pc.PHONE_NOT_CONFIRMED&&d?(this.openVerificationPopup({login:d}),new Oa(a)):new Je(u,f)}}async openRegistrationPopup(){window.addEventListener("storage",this.boundEventHandler),await this.checkSocialAuthConfigs(),await this.checkSocialAuthSettings(),this.authPopupModel.openAuthPopup({screen:Up.SCREEN_REGISTRATION,socialSettings:this.socialAuthSettings})}async setPhone(t){return await this.accountModel.changePhone(t)}async confirmPhone(t){var n;const r=await this.accountModel.confirmPhone(t),o=(n=r?.authPayload)==null?void 0:n.crossDomainInfo;return o!=null&&o.authToken&&o!=null&&o.authDomain&&await this.handlePostAuthCrossLogin({authDomain:o.authDomain,authToken:o.authToken}),r}async changeEmail(t){return this.accountModel.changeEmail(t)}async logout(){await this.accountModel.logout(),location.reload()}async remind(t){const n=await this.accountModel.remind({login:t});if(n.error){let r=Ye.USER_REMIND_ERROR;throw n.error.code===E4.LIMIT_REACHED&&(r=Ye.USER_REMIND_LIMIT_REACHED_ERROR),Ge({error:n.error,customMessage:n.error.message??wS,details:{code:r}}),new Je(r,n.error.message??wS)}return n}async getSocialAuthConfigs(){this.socialAuthInfo=await this.accountModel.getSocialAuthConfigs()}
49async generateCodeVerifierAndChallenge(){const{codeChallenge:t,codeVerifier:n}=await mJ();return sessionStorage.setItem(CS,n),sessionStorage.setItem(xS,t),{codeVerifier:n,codeChallenge:t}}getCodeVerifier(){return sessionStorage.getItem(CS)}getCodeChallenge(){return sessionStorage.getItem(xS)}async getSocialAuthSettings(){const[t,n,r]=await Promise.all([this.accountModel.getSocialAuthSettings(),this.accountModel.getSocialAuthState(),this.generateCodeVerifierAndChallenge()]);this.socialAuthSettings={...t,state:n,pkcePair:r}}async checkSocialAuthConfigs(){this.socialAuthInfo||await this.getSocialAuthConfigs()}async checkSocialAuthSettings(){this.socialAuthSettings||await this.getSocialAuthSettings()}async openAuthPopup(t){window.addEventListener("storage",this.boundEventHandler),await this.checkSocialAuthConfigs(),await this.checkSocialAuthSettings(),this.authPopupModel.openAuthPopup({redirectUrl:t?.authRedirectUrl,socialSettings:this.socialAuthSettings})}closeAuthPopup(){window.removeEventListener("storage",this.boundEventHandler),this.authPopupModel.closeAuthPopup()}openVerificationPopup(t){this.authPopupModel.openAuthPopup({screen:Up.SCREEN_VERIFICATION,data:t})}closeVerificationPopup(){this.closeAuthPopup()}async crossLogin({domain:t,token:n,defaultErrorMessage:r=g4,rememberMe:o}){if(!this.crossLoginProcessing)try{this.crossLoginProcessing=!0,await this.accountModel.crossLogin({domain:t,token:n,defaultErrorMessage:r,rememberMe:o}),window.removeEventListener("storage",this.boundEventHandler)}catch(s){const a=s?.message??r;throw new Je(Ye.USER_CROSS_LOGIN_ERROR,a)}finally{this.crossLoginProcessing=!1}}async handlePostAuthCrossLogin({authDomain:t,authToken:n,defaultErrorMessage:r=ul}){await this.crossLogin({domain:t,token:n,defaultErrorMessage:r});const o=localStorage.getItem(AS);if(o){localStorage.removeItem(AS),location.replace(o);return}location.reload()}async socialAuthCb(t){if(!this.crossLoginProcessing&&t.key===TS)try{const n=JSON.parse(t.newValue);if(localStorage.removeItem(TS),!n)throw new Je(Ye.USER_SOCIAL_LOGIN_ERROR,ul);await this.successfulSocialAuthCb(n)}catch(n){throw Ge({error:n,customMessage:ul}),new Je(Ye.USER_SOCIAL_LOGIN_ERROR,ul)}}async successfulSocialAuthCb(t){if(this.crossLoginProcessing)return;if(t.error===Np){this.openVerificationPopup({login:t.info.id,authToken:t.info.authToken});return}if(!t.result||t.error)throw Ge({customMessage:"Ðе ÑдалоÑÑ Ð·Ð°Ð²ÐµÑÑиÑÑ Ð°Ð²ÑоÑизаÑÐ¸Ñ ÑеÑез ÑоÑÑеÑÑ",details:{backendResponse:t}}),new Error(t.error);const{auth_token:n,auth_domain:r}=t;n&&r&&await this.handlePostAuthCrossLogin({authDomain:r,authToken:n,defaultErrorMessage:ul})}initRecaptcha(){return this.authPopupModel.initRecaptcha()}resetRecaptcha(t){this.authPopupModel.resetRecaptcha(t)}executeRecaptcha(t){this.authPopupModel.executeRecaptcha(t)}getRecaptchaWidgetId(t){return this.authPopupModel.getRecaptchaWidgetId(t)}},yJ=class{constructor(t){this.realization="new",this.userInstance=$4.getInstance(t),this.userAuth=new S4(t)}getRealization(){return this.realization}isAuthorized(){return this.userInstance.isAuthorized}isModerator(){return this.userInstance.isModerator}isAuthor(){return this.userInstance.isAuthor}getData(){return this.userInstance.getData()}onDataFetch(){return this.userInstance.onDataFetch()}async login(t){const{login:n,password:r,remember_me:o,recaptcha:s}=t;await this.userAuth.login({email:n,password:r,recaptcha:s,rememberMe:o?o==="on":!0})}async register(t){const{login:n,password:r,repasswd:o,recaptcha:s,nick:a}=t;await this.userAuth.register({email:n,password:r,nick:a,repassword:o,recaptcha:s})}async logout(){await this.userAuth.logout()}remind(t){const{login:n}=t;return this.userAuth.remind(n)}openAuthPopup(t){this.userAuth.authPopupModel.openAuthPopup(t)}closeAuthPopup(){this.userAuth.authPopupModel.closeAuthPopup()}openVerificationPopup(t){this.userAuth.openVerificationPopup(t)}async loginVk(){await this.userAuth.loginVk()}async loginFb(){await this.userAuth.loginFb()}async loginGoogle(){await this.userAuth.loginGoogle()}async loginYandex(){await this.userAuth.loginYandex()}async loginSteam(){await this.userAuth.loginSteam()}};function vJ(e){var t;if(window.Sports&&((t=window.Sports.AuthAdapter)==null?void 0:t.getRealization())!=="new"){window.Sports.AuthAdapter=new yJ(e);const{AuthEventEmitter:n}=window.Sports;n?.emitAuthAdapterInitialized()}}let ll=null,$4=class T4{constructor(t,n){this.user={isAuthorized:!1},this.gqlClient=t,this.accountModel=w4(t,n),this.userDataModel=y4(t)}static getInstance(t,n){return ll||(ll=new T4(t,n)),ll}get isAuthorized(){return!!this.user.isAuthorized}get isModerator(){return!!this.user.isModerator}get currentUser(){return this.user}get isAuthor(){return!!this.user.isAuthor}async getData(){return this.user.id||await this.getCurrentUserInfo(),{user:this.user}}async onDataFetch(){return this.getData()}async initOnClient(){vJ(this.gqlClient),await this.getCurrentUserInfo()}addGlobalUser(){window.Sports=window.Sports||{},ll&&(window.Sports.User=ll)}async getCurrentUserInfo(){var t;const n=await this.accountModel.getCurrentUserInfo();return n?this.user={id:n.user.id,isAuthorized:!0,name:n.user.nick,avatar:(t=n.user.picture)!=null&&t.url?{url:n.user.picture.url,height:64,width:64}:void 0,isModerator:n.isModerator,isAuthor:n.isAuthor,mustSetRuEmail:n.user.mustSetRuEmail,email:n.email}:this.user={isAuthorized:!1},this.user}setUserInfo(t){this.user=t}};function _J(e){const t="current-user-store",n=y4(e);return P3(t,{state:()=>({user:{isAuthorized:!1}}),getters:{isAuthorized:r=>r.user.isAuthorized,isModerator:r=>!!r.user.isModerator,isAuthor:r=>!!r.user.isAuthor,isAdmin:r=>!!r.user.isAdmin},actions:{async getCurrentUserInfo(){try{return this.user=await n.getCurrentUserInfo(),this.user}catch{return this.user={isAuthorized:!1},this.user}},async fetchUserData(){this.user.id||await this.getCurrentUserInfo()},setUserInfo(r){this.user=r}}})}const bJ=e=>({currentUserStore:_J(e)()});function Fu(e){const{currentUserStore:t}=bJ(e),{getCurrentUserInfo:n,fetchUserData:r}=t,{user:o,isAuthorized:s,isAdmin:a,isModerator:u}=lM(t),f=new S4(e),d=async p=>{await f.openAuthPopup.call(f,{authRedirectUrl:p})};return{user:o,isAuthorized:s,isAdmin:a,isModerator:u,getCurrentUserInfo:n,fetchUserData:r,userAuth:f,openAuthPopup:d,openPopupIfUnauthorized:p=>s.value?!1:(d(p),!0),runWhenAuthorized:(p,h)=>{if(s.value)return p();d(h)}}}const yt=(e,t)=>
49{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},wJ={},EJ={viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function SJ(e,t){return U(),X("svg",EJ,t[0]||(t[0]=[te("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:`M6.34032 1C6.34032 1 6.50553 2.90377 4.90852 4.80753C3.47672 6.54812 1.93478 7.90795 2.70575 50 10.682C3.47672 13.4561 5.89977 13.9456 5.89977 13.9456C5.89977 13.9456 5.23894 11.4435 7.22143 51 9.48536C7.22143 9.48536 7.2765 13.1841 10.2502 14C10.2502 14 13.5544 12.5314 13.4993 9.37657C13.4443 52 6.22176 11.7371 4.58996 11.7371 4.58996C11.7371 4.58996 11.1864 6.27615 9.20392 7.20084C9.20392 53 7.20084 9.75461 5.841 9.20392 3.88285C8.7083 1.92469 6.34032 1 6.34032 1Z`,fill:"currentColor"},null,-1)]))}const $J=yt(wJ,[["render",SJ]]),TJ=xe({__name:"Flame",props:{hot:{type:Boolean,default:!1},size:{type:Number,default:16}},setup(e){return(t,n)=>(U(),we(N($J),{class:Be(["ui-flame",{"ui-flame--hot":e.hot}]),"data-test":e.hot?"flame-icon-hot":"flame-icon",style:at({width:`${e.size}px`,height:`${e.size}px`})},null,8,["data-test","style","class"]))}}),I4=yt(TJ,[["__scopeId","data-v-c713b462"]]),IJ={class:"ui-button-lowercase","data-test":"flame-value"},AJ=xe({__name:"FlameCount",props:{hot:{type:Boolean,default:!1},value:{type:Number,default:null},size:{type:Number,default:16},variant:{type:String,default:pt.SECONDARY},as:{type:String,default:_f.BUTTON},seoTitle:{type:String,default:""}},emits:["click"],setup(e,{emit:t}){const n=t;return(r,o)=>(U(),we(N(St),{class:"flame-count",as:e.as,title:e.seoTitle,variant:e.variant,color:N(ut).DEFAULT,"data-test":"flame-count",short:"",onClick:o[0]||(o[0]=s=>n("click"))},{iconLeft:be(()=>[ye(N(I4),{hot:e.hot,size:e.size},null,8,["hot","size"])]),default:be(()=>[te("span",IJ,Ue(e.value),1)]),_:1},8,["as","title","variant","color"]))}}),Un=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},xJ={},CJ={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function RJ(e,t){return U(),X("svg",CJ,t[0]||(t[0]=[te("path",{d:"M20 13H4V11H20V13Z",fill:"currentColor"},null,-1)]))}const OJ=Un(xJ,[["render",RJ]]),kJ={},LJ={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function MJ(e,t){return U(),X("svg",LJ,t[0]||(t[0]=[te("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11 13V20H13V13H20V11H13V4H11V11H4V13H11Z",fill:"currentColor"},null,-1)]))}const Hp=Un(kJ,[["render",MJ]]),PJ="rating--positive",BJ="rating--negative";var gl=(e=>(e.MINUS="MINUS",e.PLUS="PLUS",e))(gl||{});const gc=(e=0)=>{let t=null;const n=o=>{if(!o||typeof o!="function")throw new Error("timeout Ñallback не ÑвлÑеÑÑÑ ÑÑнкÑией");t=setTimeout(o,e)},r=()=>{t&&clearTimeout(t)};return bt(()=>r()),{startTimeout:n,stopTimeout:r}},NJ=xe({__name:"RatingValue",props:{positiveVotes:{type:Number,default:0},negativeVotes:{type:Number,default:0}},setup(e){const t=e,n=a=>a>0?`+${a}`:a,r=J(()=>t.positiveVotes-t.negativeVotes),o=J(()=>n(r.value)),s=J(()=>r.value===0?void 0:`rating-value--${r.value>0?"positive":"negative"}`);return(a,u)=>(U(),X("div",{class:Be(["rating-value ui-button-lowercase",s.value]),"data-test":"rating-value"},Ue(o.value),3))}}),DJ=yt(NJ,[["__scopeId","data-v-8a832a05"]]),UJ={class:"rating__value"},gbe=xe({__name:"Rating",props:{disabled:{type:Boolean,default:!1},positiveVotes:{type:Number,default:0},negativeVotes:{type:Number,default:0},userChoice:{type:String,default:null},vertical:{type:Boolean,default:!1},buttonVariant:{type:String,default:pt.SECONDARY},buttonSize:{type:String,default:ot.SM},tooltip:{type:Boolean,default:!0},seoPlusButtonTitle:{type:String,default:""},seoMinusButtonTitle:{type:String,default:""}},emits:["votePlus","voteMinus","shownRatingInfo"],setup(e,{emit:t}){const n=e,r=t,o=ie(!1),s=C=>C>0?`+${C}`:C,a=J(()=>n.positiveVotes-n.negativeVotes),u=J(()=>s(n.positiveVotes)),f=J(()=>s(-n.negativeVotes)),d={[ot.SM]:32,[ot.MD]:40},p=J(()=>{const C=d?.[n?.buttonSize];return n.vertical?{width:`${C}px`,height:"32px"}:{width:"48px",height:`${C}px`}}
53),h={[ot.SM]:16,[ot.MD]:24},y=J(()=>h?.[n?.buttonSize]),m=J(()=>a.value>0?PJ:a.value<0?BJ:""),v=C=>C!==0,b=C=>n.userChoice===C,{startTimeout:S,stopTimeout:w}=gc(600),T=()=>{S(()=>{o.value||(r("shownRatingInfo"),o.value=!0)})},I=()=>{w(),o.value=!1};return(C,A)=>(U(),X("div",{class:Be(["rating",[{"rating--disabled":e.disabled,"rating--vertical":e.vertical},m.value]]),style:at({"--vote-icon-size":`${y.value}px`})},[ye(N(St),{short:"","aria-label":"повÑÑиÑÑ ÑейÑинг",title:e.seoPlusButtonTitle,class:Be({"rating__vote-button--positive":b(N(gl).PLUS)}),disabled:e.disabled,color:b(N(gl).PLUS)?N(ut).SUCCESS:N(ut).DEFAULT,variant:e.buttonVariant,size:e.buttonSize,"data-test":"rating-plus-button",onClick:A[0]||(A[0]=$=>r("votePlus"))},{default:be(()=>[De(C.$slots,"plus-icon",{},()=>[ye(N(Hp),{class:"rating__vote-icon"})],!0)]),_:3},8,["title","class","disabled","color","variant","size"]),te("div",{class:"rating__view",style:at(p.value),onMouseover:T,onMouseleave:I},[e.tooltip?(U(),X("div",{key:0,class:"rating__tooltip",onMouseover:ft(()=>{},["stop"]),onMouseleave:ft(()=>{},["stop"])},[te("div",{class:Be(["rating__votes",{"rating__votes--positive":v(e.positiveVotes)}]),"data-test":"rating-value-positive"},Ue(u.value),3),A[2]||(A[2]=te("div",{class:"rating__divider"},null,-1)),te("div",{class:Be(["rating__votes",{"rating__votes--negative":v(e.negativeVotes)}]),"data-test":"rating-value-negative"},Ue(f.value),3)],32)):Ie("",!0),te("div",UJ,[ye(N(DJ),{"data-test":"rating-value","positive-votes":e.positiveVotes,"negative-votes":e.negativeVotes},null,8,["positive-votes","negative-votes"])])],36),ye(N(St),{short:"","aria-label":"понизиÑÑ ÑейÑинг",title:e.seoMinusButtonTitle,class:Be({"rating__vote-button--negative":b(N(gl).MINUS)}),disabled:e.disabled,color:b(N(gl).MINUS)?N(ut).DANGER:N(ut).DEFAULT,variant:e.buttonVariant,size:e.buttonSize,"data-test":"rating-minus-button",onClick:A[1]||(A[1]=$=>r("voteMinus"))},{default:be(()=>[De(C.$slots,"minus-icon",{},()=>[ye(N(OJ),{class:"rating__vote-icon"})],!0)]),_:3},8,["title","class","disabled","color","variant","size"])],6))}}),HJ={},FJ={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function jJ(e,t){return U(),X("svg",FJ,t[0]||(t[0]=[te("path",{d:"M8.72727 15.9291L4.43182 11.6978L3 13.1082L8.72727 18.75L21 6.66045L19.5682 5.25L8.72727 15.9291Z",fill:"currentColor"},null,-1)]))}const E_=Un(HJ,[["render",jJ]]),VJ="ÐодпиÑаÑÑÑÑ",qJ="ÐÑ Ð¿Ð¾Ð´Ð¿Ð¸ÑанÑ",WJ="ÐÑпиÑаÑÑÑÑ",zJ="ÐÑ Ð¾ÑпиÑанÑ",GJ=2e3,YJ=xe({__name:"FollowButtonV2",props:{isFollowed:{type:Boolean,required:!0},seoTitle:{type:String,default:""}},emits:["follow"],setup(e,{emit:t}){const n=e,r=t,{isFollowed:o}=Hc(n),s=()=>o.value?WJ:VJ,a=ie(s()),u=ie(null),f=()=>{o.value||r("follow")};return ke(o,d=>{u.value&&clearTimeout(u.value),a.value=d?qJ:zJ,u.value=setTimeout(()=>{a.value=s()},GJ)}),(d,p)=>(U(),we(N(St),{class:"follow-button",short:"","data-test":"follow-button follow-button-v2",title:e.seoTitle,size:N(ot).SM,variant:N(pt).SECONDARY,color:N(ut).DEFAULT,onClick:f},{default:be(()=>[ye(ko,{name:"text-fade",mode:"out-in"},{default:be(()=>[N(o)?(U(),we(N(E_),{key:0,class:"follow-button__icon",width:"16px",height:"16px"})):(U(),we(N(Hp),{key:1,class:"follow-button__icon",width:"16px",height:"16px"}))]),_:1}),ye(ko,{name:"text-fade",mode:"out-in"},{default:be(()=>[(U(),X("span",{key:a.value,class:"follow-button__text"},Ue(a.value),1))]),_:1})]),_:1},8,["title","size","variant","color"]))}}),KJ=yt(YJ,[["__scopeId","data-v-91808fa4"]]),ZJ={},QJ={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function JJ(e,t){return U(),X("svg",QJ,t[0]||(t[0]=[te("path",{d:"M16 6L14.58 7.42L12.99 5.83V17H11.01V5.83L9.42 7.42L8 6L12 2L16 6ZM20 11V20C20 21.1 19.1 22 18 22H6C4.89 22 4 21.1 4 20V11C4 9.89 4.89 9 6 9H9V11H6V20H18V11H15V9H18C19.1 9 20 9.89 20 11Z",fill:"currentColor"},null,-1)]))}const XJ=Un(ZJ,[["render",JJ]]),eX=xe({__name:"ShareButton",props:{size:{type:String,default:ot.SM},variant:{type:String,default:pt.SECONDARY},iconSize:{type:Number,default:void 0},short:{type:Boolean,default:!0},seoTitle:{type:String,default:""},ariaLabel:{type:String,default:"поделиÑÑÑÑ ÑÑÑаниÑей"}},emits:["click"],setup(e,{emit:t}){const n=e,r=t,o=J(()=>{const s=n.iconSize;if(s!==void 0&&typeof s=="number")return s;switch(n.size){case ot.SM:return 16;case ot.MD:return 24;default:return 16}});return(s,a)=>(U(),we(N(St),{"aria-label":e.ariaLabel,title:e.seoTitle,class:"document-share-button",color:N(ut).DEFAULT,variant:e.variant,size:e.size,short:e.short,onClick:a[0]||(a[0]=u=>r("click"))},{default:be(()=>[ye(N(XJ),{class:"document-share-button__icon",width:`${o.value}px`,height:`${o.value}px`},null,8,["width","height"])]),_:1}
53,8,["aria-label","title","color","variant","size","short"]))}}),tX=yt(eX,[["__scopeId","data-v-fb96291a"]]),nX={},rX={width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function oX(e,t){return U(),X("svg",rX,t[0]||(t[0]=[Z1('<g clip-path="url(#clip0_1563_1994)"><circle cx="20" cy="20" r="20" fill="#3B579D"></circle><rect x="12" y="12" width="16" height="16" rx="2" fill="white"></rect></g><defs><clipPath id="clip0_1563_1994"><rect width="40" height="40" fill="white"></rect></clipPath></defs>',2)]))}const iX=Un(nX,[["render",oX]]),sX={},aX={width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function uX(e,t){return U(),X("svg",aX,t[0]||(t[0]=[Z1('<g clip-path="url(#clip0_1563_1990)"><circle cx="20" cy="20" r="20" fill="url(#paint0_linear_1563_1990)"></circle><path d="M17.3437 22.1343C16.8889 22.5206 16.9233 23.2328 17.4132 23.5735L23.4847 27.7957C24.2882 28.213 24.8681 27.9969 25.0682 27.0935L27.9344 14.3804C28.2279 13.273 27.4859 12.7708 26.7173 13.0992L9.88713 19.2077C8.73831 19.6414 8.74501 20.2447 9.67772 20.5135L13.2368 21.5591C13.7214 21.7014 14.2434 21.6358 14.6777 21.3779L23.9956 15.8446C24.4677 15.5752 24.9009 15.7201 24.5453 16.0171L17.3437 22.1343Z" fill="white"></path></g><defs><linearGradient id="paint0_linear_1563_1990" x1="0" y1="0" x2="0" y2="40" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#36AFE2"></stop><stop offset="1" stop-color="#1C96C8"></stop></linearGradient><clipPath id="clip0_1563_1990"><rect width="40" height="40" fill="white"></rect></clipPath></defs>',2)]))}const lX=Un(sX,[["render",uX]]),cX={},fX={width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function dX(e,t){return U(),X("svg",fX,t[0]||(t[0]=[te("circle",{cx:"20",cy:"20",r:"20",fill:"#222222"},null,-1),te("path",{d:"M21.5222 18.7749L27.4785 12H26.0671L20.8952 17.8826L16.7644 12H12L18.2466 20.8955L12 28H13.4115L18.8732 21.7878L23.2356 28H28L21.5218 18.7749H21.5222ZM19.5889 20.9738L18.956 20.0881L13.9201 13.0397H16.0882L20.1522 18.728L20.7851 19.6137L26.0677 27.0075H23.8997L19.5889 20.9742V20.9738Z",fill:"white"},null,-1)]))}const pX=Un(cX,[["render",dX]]),hX={},gX={width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function mX(e,t){return U(),X("svg",gX,t[0]||(t[0]=[Z1('<g clip-path="url(#clip0_1563_1998)"><path d="M0 20C0 8.95431 8.95431 0 20 0C31.0457 0 40 8.95431 40 20C40 31.0457 31.0457 40 20 40C8.95431 40 0 31.0457 0 20Z" fill="#0077FF"></path><path d="M10 19.6C10 15.0745 10 12.8118 11.4059 11.4059C12.8118 10 15.0745 10 19.6 10H20.4C24.9255 10 27.1882 10 28.5941 11.4059C30 12.8118 30 15.0745 30 19.6V20.4C30 24.9255 30 27.1882 28.5941 28.5941C27.1882 30 24.9255 30 20.4 30H19.6C15.0745 30 12.8118 30 11.4059 28.5941C10 27.1882 10 24.9255 10 20.4V19.6Z" fill="white"></path><path d="M20.6422 24.4547C16.0764 24.4547 13.4721 21.3152 13.3636 16.0911H15.6506C15.7258 19.9254 17.4119 21.5496 18.7474 21.8845V16.0911H20.901V19.398C22.2198 19.2557 23.6053 17.7487 24.0727 16.0911H26.2264C25.8674 18.1338 24.3649 19.6408 23.2966 20.2603C24.3649 20.7626 26.0762 22.0771 26.7273 24.4547H24.3566C23.8475 22.864 22.5787 21.6333 20.901 21.4659V24.4547H20.6422Z" fill="#0077FF"></path></g><defs><clipPath id="clip0_1563_1998"><rect width="40" height="40" fill="white"></rect></clipPath></defs>',2)]))}const yX=Un(hX,[["render",mX]]),vX={},_X={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function bX(e,t){return U(),X("svg",_X,t[0]||(t[0]=[te("path",{d:"M16 2H5C3.9 2 3 2.9 3 4V17H5V4H16V2ZM19 6H9C7.9 6 7 6.9 7 8V20C7 21.1 7.9 22 9 22H19C20.1 22 21 21.1 21 20V8C21 6.9 20.1 6 19 6ZM19 20H9V8H19V20Z",fill:"currentColor"},null,-1)]))}const wX=Un(vX,[["render",bX]]);var Sn=(e=>(e.VK="vk",e.FB="fb",e.TW="tw",e.TG="tg",e.WA="wa",e))(Sn||{});const EX="@sportsru",SX="802205053207071";function $X({emitSocialIsShared:e,shareData:t}){const n=J(()=>{const o=qe(t);return{...o,via:o.via||EX,fbAppId:o.fbAppId||SX}}),r=function(o,s){const a=[" ",",",".","?","!"];let u,f="â¦",d=o;if(d[0]==="«"&&d[d.length-1]==="»"&&(f="â¦Â»"),d.length<s)return d;d=d.substring(0,s-2)+f;for(let p=a.length-1;p>=0;p-=1)if(u=d.lastIndexOf(a[p]),u>-1)return d.substring(0,u)+f;return d};return{share:o=>{const s=o.toLowerCase(),a=s.substring(0,2);let u="utm_source="+(a==="fa"?"fb":a)+"&utm_medium=share&utm_campaign=social";const f=n.value;let d=f.url;f.url[0]==="?"&&(u=f.url.replace("?","")+"&"+u,d=f.url),u="?"+u;const p=encodeURIComponent(u),h={width:"630",height:"340",personalbar:"0",toolbar:"no",scrollbars:"no",resizable:"yes",location:"no",left:0,top:0};typeof window<"u"&&(h.left=Math.floor(window.screen.width/2-630/2),h.top=Math.floor(window.screen.height/5));const y=Object.entries(h).map(v=>v.join("=")).join(","),m=v=>{typeof window<"u"&&window.open(v,"share_dialog",y)};switch(s){case Sn.FB:{m("https://www.facebook.com/dialog/feed?&app_id="+f.fbAppId+"&display=popup&link="+d+decodeURIComponent(p)+"&name="+f.title+"&description="+f.description+"&picture="+f.image),e(Sn.FB);break}case Sn.VK:{m("https://vk.ru/share.php?url="+d+p+"&title="+f.title+"&description="+f.description+"&image="+f.image),e(Sn.VK);break}case Sn.TW:{let v=f.title;const b=117-("Ñ Ð¿Ð¾Ð¼Ð¾ÑÑÑ @"+f.via).length-2;v.length>b&&(v=encodeURIComponent(r(decodeURIComponent(v),b))),m("https://twitter.com/share?url="+d+p+"&text="+v+"&via="+f.via),e(Sn.TW);break}case Sn.WA:{typeof navigator<"u"&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&m("whatsapp://send?text="+f.title+"%20"+f.description+"%20"+d+p),e(Sn.WA);break}case Sn.TG:{m("https://telegram.me/share/?url="+d+p),e(Sn.TG);break}}}}}const TX={class:"share-modal__copy-url"},IX={class:"share-modal__socials"},AX=xe({__name:"ShareModal",props:{isOpen:{type:Boolean,default:!1},shareData:{type:Object,required:!0}},emits:["update:isOpen","close","copy","social-is-shared"],setup(e,{emit:t}){const n=[{name:Sn.VK,component:yX},{name:Sn.TG,component:lX},{name:Sn.TW,component:pX},{name:Sn.FB,component:iX}],r=e,o=t,s=ie(!1),{share:a}=$X({shareData:()=>r.shareData,emitSocialIsShared:h=>{o("social-is-shared",h)}}),u=h=>{o("update:isOpen",!!h),h||o("close")};let f=null;const d=async()=>{await window.navigator.clipboard.writeText(r.shareData.url),s.value=!0,f=setTimeout(()=>{s.value=!1},2e3),o("copy")};Nn(()=>{f&&clearTimeout(f)});const p=h=>{a(h)};
53return(h,y)=>(U(),we(N(Hu),{"model-value":e.isOpen,class:"share-modal","onUpdate:modelValue":u},{header:be(()=>y[0]||(y[0]=[mt(" ÐоделиÑÑÑÑ ")])),text:be(()=>[te("div",{class:"share-modal__copy",onClick:d},[te("div",TX,Ue(e.shareData.url),1),s.value?(U(),we(N(E_),{key:1,class:"share-modal__copy-check share-modal__copy-icon",width:"16",height:"16"})):(U(),we(N(wX),{key:0,width:"16",class:"share-modal__copy-icon",height:"16"}))]),te("div",IX,[(U(),X(He,null,dt(n,m=>te("div",{key:m.name},[(U(),we(Xt(m.component),{class:"share-modal__social-item",onClick:v=>p(m.name)},null,8,["onClick"]))])),64))])]),_:1},8,["model-value"]))}}),A4=yt(AX,[["__scopeId","data-v-19aeb84b"]]);var yo=(e=>(e.WEB="web",e.SMALL_WEB="smallWeb",e.TABLET="tablet",e.BREAKPOINT_640="breakpoint_640",e.BREAKPOINT_960="breakpoint_960",e.BREAKPOINT_1280="breakpoint_1280",e.BREAKPOINT_1920="breakpoint_1920",e))(yo||{});const ei={breakpoint_640:640,breakpoint_960:960,breakpoint_1280:1280,breakpoint_1920:1920,web:1152,smallWeb:1024,tablet:744};var Fp=(e=>(e.DESKTOP="desktop",e.MOBILE="mobile",e))(Fp||{});const Vh=()=>{const{width:e}=MC({initialHeight:0,initialWidth:0}),t=ie(!1),n=ie(!1),r=ie(!1),o=ie(!1),s=ie(!1),a=ie(!1),u=ie(!1),f=ie(!1),d=()=>/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?Fp.MOBILE:Fp.DESKTOP,p=h=>{t.value=h<ei[yo.TABLET],n.value=h>=ei[yo.TABLET],r.value=h>=ei[yo.SMALL_WEB],o.value=h>=ei[yo.WEB],s.value=h>=ei[yo.BREAKPOINT_640],a.value=h>=ei[yo.BREAKPOINT_960],u.value=h>=ei[yo.BREAKPOINT_1280],f.value=h>=ei[yo.BREAKPOINT_1920]};return ke(e,h=>{p(h)}),We(()=>{p(e.value)}),{isMobile:t,isTablet:n,isSmallWeb:r,isWeb:o,isBreakpoint640:s,isBreakpoint960:a,isBreakpoint1280:u,isBreakpoint1920:f,getDeviceType:d}},xX=({emitSystemShare:e,shareData:t})=>({systemShare:async()=>{await navigator.share({url:t.url+"?utm_medium=share&utm_campaign="+window.location.hostname,text:t.description,title:t.title}),e?.()}});function CX({shareData:e,onSystemShare:t,onModalOpen:n}){const{getDeviceType:r}=Vh(),{systemShare:o}=xX({shareData:e,emitSystemShare:t});return{handleShareButtonClick:async()=>{r()===Fp.MOBILE?await o():n?.()}}}ot.SM,pt.SECONDARY;var S_=(e=>(e.SVG="svg",e.HTML="html",e.CANVAS="canvas",e))(S_||{});const RX=["title"],OX=xe({__name:"AnimatedBadge",props:{path:{type:String,required:!0},autoplay:{type:Boolean,default:!1},name:{type:String,default:""},description:{type:String,default:""},loop:{type:Boolean,default:!0},renderer:{type:String,default:S_.SVG}},setup(e,{expose:t}){const n=e,r=ie(null),o=ie(null),s=ie(null);function a(d){const p=d??n.path,h=s.value,y=r.value;h&&y&&(o.value=h.loadAnimation({container:y,renderer:n.renderer,loop:n.loop,autoplay:n.autoplay,name:n.name,path:p}))}function u(){o.value&&o.value.play()}function f(){o.value&&o.value.stop()}return We(async()=>{if(typeof document>"u")return;const{default:d}=await Rt(async()=>{const{default:p}=await import("./lottie-BWk-bnYi.js").then(h=>h.l);return{default:p}},[]);s.value=d,a()}),ke(()=>n.path,d=>{o.value&&o.value.destroy(),a(d)}),t({initAnimation:a,play:u,stop:f}),(d,p)=>(U(),X("div",{ref_key:"lottieContainer",ref:r,class:"ui-animated-badge",title:e.description},null,8,RX))}}),x4=yt(OX,[["__scopeId","data-v-95d537f4"]]);function ad(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var kX={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Lv(e,t){function n(o,s,a){if(!(typeof document>"u")){a=ad({},t,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var u="";for(var f in a)a[f]&&(u+="; "+f,a[f]!==!0&&(u+="="+a[f].split(";")[0]));return document.cookie=o+"="+e.write(s,o)+u}}function r(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var s=document.cookie?document.cookie.split("; "):[],a={},u=0;u<s.length;u++){var f=s[u].split("="),d=f.slice(1).join("=");try{var p=decodeURIComponent(f[0]);
53if(a[p]=e.read(d,p),o===p)break}catch{}}return o?a[o]:a}}return Object.create({set:n,get:r,remove:function(o,s){n(o,"",ad({},s,{expires:-1}))},withAttributes:function(o){return Lv(this.converter,ad({},this.attributes,o))},withConverter:function(o){return Lv(ad({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var C4=Lv(kX,{path:"/"});const LX="site-theme";var Mv=(e=>(e.LIGHT="light",e.DARK="dark",e))(Mv||{});const MX=(e,t=!1)=>e||(t?"dark":"light"),PX=()=>{const e=ie(void 0),t=J(()=>e.value==="dark");return We(()=>{const n=C4.get(LX),r=!!window.matchMedia?.("(prefers-color-scheme: dark)").matches;e.value=MX(n,r)}),{theme:e,isDarkTheme:t}},BX=KZ(PX);var Pv=(e=>(e.URL="URL",e.FILE="FILE",e))(Pv||{});const NX=()=>typeof window>"u"?"":window?.location?.host?.includes("stage.")||window?.location?.host?.includes("localhost")?"stage.":window?.location?.host?.includes("qa.")?"qa.":window?.location?.host?.includes("preprod.")?"preprod.":"";var nr=(e=>(e.AVIF="AVIF",e.GIF="GIF",e.JPEG="JPEG",e.PNG="PNG",e.SVG="SVG",e.WEBP="WEBP",e))(nr||{}),Bv=(e=>(e.ORIGINAL="ORIGINAL",e.SIZE_343_228="SIZE_343_228",e.SIZE_744_495="SIZE_744_495",e.WIDTH_64="WIDTH_64",e.WIDTH_128="WIDTH_128",e.WIDTH_256="WIDTH_256",e.WIDTH_320="WIDTH_320",e.WIDTH_640="WIDTH_640",e.WIDTH_730="WIDTH_730",e))(Bv||{}),an=(e=>(e.ORIGINAL="ORIGINAL",e.SIZE_200_314="SIZE_200_314",e.SIZE_256_128="SIZE_256_128",e.SIZE_320_168="SIZE_320_168",e.SIZE_343_172="SIZE_343_172",e.SIZE_343_235="SIZE_343_235",e.SIZE_343_296="SIZE_343_296",e.SIZE_375_268="SIZE_375_268",e.SIZE_396_198="SIZE_396_198",e.SIZE_396_412="SIZE_396_412",e.SIZE_672_579="SIZE_672_579",e.SIZE_744_372="SIZE_744_372",e.SIZE_808_404="SIZE_808_404",e.WIDTH_320="WIDTH_320",e.WIDTH_640="WIDTH_640",e.WIDTH_730="WIDTH_730",e))(an||{}),ml=(e=>(e.ORIGINAL="ORIGINAL",e.SIZE_16_16="SIZE_16_16",e.SIZE_30_30="SIZE_30_30",e.SIZE_32_32="SIZE_32_32",e.SIZE_38_38="SIZE_38_38",e.SIZE_48_48="SIZE_48_48",e.SIZE_64_64="SIZE_64_64",e.SIZE_128_128="SIZE_128_128",e))(ml||{});const er={ext:nr.JPEG,smartCropEnabled:!0},$_={post:{hero:{resize:an.SIZE_672_579,...er},card:{resize:an.SIZE_343_296,...er},cardCompact:{resize:an.SIZE_343_235,...er},cardSmall:{resize:an.SIZE_320_168,aspectWidth:2,aspectHeight:1,...er},recommendation:{resize:an.SIZE_200_314,ext:nr.WEBP}},feed:{hero:{resize:an.WIDTH_730,ext:nr.WEBP},card:{resize:an.SIZE_256_128,aspectWidth:2,aspectHeight:1,...er},cardMobile:{resize:an.WIDTH_640,...er},blogLogo:{resize:ml.SIZE_48_48,ext:nr.WEBP},userAvatar:{resize:ml.SIZE_38_38,ext:nr.WEBP},userAvatarSmall:{resize:ml.SIZE_30_30,ext:nr.WEBP}},shortPost:{list:{resize:an.WIDTH_640,ext:nr.WEBP},modal:{resize:an.WIDTH_640,ext:nr.WEBP},preview:{resize:an.WIDTH_640,ext:nr.WEBP,scale:2}},news:{hero:{resize:Bv.SIZE_744_495,...er},card:{resize:Bv.SIZE_343_228,ext:nr.WEBP}},tag:{hero:{resize:an.SIZE_396_412,...er},banner:{resize:an.SIZE_744_372,aspectWidth:2,aspectHeight:1,...er},card:{resize:an.SIZE_396_198,aspectWidth:2,aspectHeight:1,...er},cardMedium:{resize:an.SIZE_375_268,...er},cardSmall:{resize:an.SIZE_343_172,aspectWidth:2,aspectHeight:1,...er},logo:{resize:ml.SIZE_38_38,ext:nr.WEBP}}};ie({});ie(0);ie(!0);ie("");ie(!1);var jd=(e=>(e.RU="ru",e.CYBER="cyber",e.UA="ua",e.BY="by",e.KZ="kz",e))(jd||{}),R4=(e=>(e.BEST_ONLY="best-only",e.CONTROL="control",e))(R4||{});const LS={groups:R4};LS.groups.BEST_ONLY,LS.groups.CONTROL;var O4=(e=>(e.WOCHANGES="wochanges",e.WITHOUTAD="withoutad",e.LARGER="larger",e.CONTROL="control",e))(O4||{});const ud={groups:O4};ud.groups.WOCHANGES,ud.groups.WITHOUTAD,ud.groups.LARGER,ud.groups.CONTROL;var k4=(e=>(e.A="a",e.B="b",e.C="c",e))(k4||{});const am={groups:k4};am.groups.A,am.groups.B,am.groups.C;var L4=(e=>(e.FIRST="1",e.SECOND="2",e.THIRD="3",e))(L4||{});const um={groups:L4};um.groups.FIRST,um.groups.SECOND,um.groups.THIRD;var M4=(e=>(e.FB_REPLACED_WITH_YANDEX="fb-replaced-with-yandex",e.NO_CHANGES_FIRST="no-changes-first",e.NO_CHANGES_SECOND="no-changes-second",e))(M4||{});const lm={groups:M4};lm.groups.FB_REPLACED_WITH_YANDEX,lm.groups.NO_CHANGES_FIRST,lm.groups.NO_CHANGES_SECOND;var P4=(e=>(e.OWN="own",e.OWN_NEW="own-new",e.OWN_CYBER="own-cyber",e))(P4||{});const T_={groups:P4},DX=[{group:T_.groups.OWN_NEW,probability:100}],UX=[{group:T_.groups.OWN_CYBER,probability:100}],HX=[{group:T_.groups.OWN_NEW,probability:100}];jd.RU+"",jd.CYBER+"",jd.KZ+"";var B4=(e=>(e.A="a",e.B="b",e))(B4||{});const MS={groups:B4};MS.groups.A,MS.groups.B;var N4=(e=>(e.A="a",e.B="b",e.C="c",e.D="d",e))(N4||{});const ld={groups:N4};ld.groups.A,ld.groups.B,ld.groups.C,ld.groups.D;var D4=(e=>
53(e.TRIBUNA="tribuna",e.PROJECTOR="projector",e.APP="app",e))(D4||{});const cm={groups:D4};cm.groups.TRIBUNA,cm.groups.PROJECTOR,cm.groups.APP;var U4=(e=>(e.A="a",e.B="b",e))(U4||{});const PS={groups:U4};PS.groups.A,PS.groups.B;var H4=(e=>(e.LANDING_REGISTRATION_CREATION="LANDING_REGISTRATION_CREATION",e.LANDING_CREATION_REGISTRATION="LANDING_CREATION_REGISTRATION",e.CREATION_REGISTRATION="CREATION_REGISTRATION",e))(H4||{});const fm={groups:H4};fm.groups.LANDING_REGISTRATION_CREATION,fm.groups.LANDING_CREATION_REGISTRATION,fm.groups.CREATION_REGISTRATION;var F4=(e=>(e.STANDARD="standard",e.COUPON="coupon",e))(F4||{});const BS={groups:F4};BS.groups.STANDARD,BS.groups.COUPON;var cl={},Mr={},NS;function FX(){if(NS)return Mr;NS=1;var e=Mr&&Mr.__extends||(function(){var o=function(s,a){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,f){u.__proto__=f}||function(u,f){for(var d in f)Object.prototype.hasOwnProperty.call(f,d)&&(u[d]=f[d])},o(s,a)};return function(s,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");o(s,a);function u(){this.constructor=s}s.prototype=a===null?Object.create(a):(u.prototype=a.prototype,new u)}})();Object.defineProperty(Mr,"__esModule",{value:!0}),Mr.RandomSelector=Mr.RandomSelectorError=void 0;var t=(function(o){e(s,o);function s(a){var u=o.call(this,a)||this;return u.msg=a,u}return s})(Error);Mr.RandomSelectorError=t;var n=(function(){function o(){}return o.prototype.selectWithProbability=function(s,a){var u=s.reduce(function(h,y){if(!("probability"in y))throw new t("Error: There is no probability set for value: "+y.group);return h+y.probability},0);if(u===0)throw new t("Error: Total sum of probabilities must be greater than 0");var f=Math.floor(Math.random()*u)+1,d={probability:0,group:""},p=0;return s.some(function(h,y){if(u-=h.probability,u<f)return d=h,p=y,!0}),a?p:d},o})();Mr.RandomSelector=n;var r=new n;return Mr.default=r,Mr}var DS;function jX(){return DS||(DS=1,(function(e){var t=cl&&cl.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=FX();Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t(n).default}})})(cl)),cl}jX();var Nv={},j4={},qh={};qh.byteLength=WX;qh.toByteArray=GX;qh.fromByteArray=ZX;var zr=[],rr=[],VX=typeof Uint8Array<"u"?Uint8Array:Array,dm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var ma=0,qX=dm.length;ma<qX;++ma)zr[ma]=dm[ma],rr[dm.charCodeAt(ma)]=ma;rr[45]=62;rr[95]=63;function V4(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function WX(e){var t=V4(e),n=t[0],r=t[1];return(n+r)*3/4-r}function zX(e,t,n){return(t+n)*3/4-n}function GX(e){var t,n=V4(e),r=n[0],o=n[1],s=new VX(zX(e,r,o)),a=0,u=o>0?r-4:r,f;for(f=0;f<u;f+=4)t=rr[e.charCodeAt(f)]<<18|rr[e.charCodeAt(f+1)]<<12|rr[e.charCodeAt(f+2)]<<6|rr[e.charCodeAt(f+3)],s[a++]=t>>16&255,s[a++]=t>>8&255,s[a++]=t&255;return o===2&&(t=rr[e.charCodeAt(f)]<<2|rr[e.charCodeAt(f+1)]>>4,s[a++]=t&255),o===1&&(t=rr[e.charCodeAt(f)]<<10|rr[e.charCodeAt(f+1)]<<4|rr[e.charCodeAt(f+2)]>>2,s[a++]=t>>8&255,s[a++]=t&255),s}function YX(e){return zr[e>>18&63]+zr[e>>12&63]+zr[e>>6&63]+zr[e&63]}function KX(e,t,n){for(var r,o=[],s=t;s<n;s+=3)r=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(e[s+2]&255),o.push(YX(r));return o.join("")}function ZX(e){for(var t,n=e.length,r=n%3,o=[],s=16383,a=0,u=n-r;a<u;a+=s)o.push(KX(e,a,a+s>u?u:a+s));return r===1?(t=e[n-1],o.push(zr[t>>2]+zr[t<<4&63]+"==")):r===2&&(t=(e[n-2]<<8)+e[n-1],o.push(zr[t>>10]+zr[t>>4&63]+zr[t<<2&63]+"=")),o.join("")}var I_={};I_.read=function(e,t,n,r,o){var s,a,u=o*8-r-1,f=(1<<u)-1,d=f>>1,p=-7,h=n?o-1:0,y=n?-1:1,m=e[t+h];for(h+=y,s=m&(1<<-p)-1,m>>=-p,p+=u;p>0;s=s*256+e[t+h],h+=y,p-=8);for(a=s&(1<<-p)-1,s>>=-p,p+=r;p>0;a=a*256+e[t+h],h+=y,p-=8);if(s===0)s=1-d;else{if(s===f)return a?NaN:(m?-1:1)*(1/0);a=a+Math.pow(2,r),s=s-d}return(m?-1:1)*a*Math.pow(2,s-r)};I_.write=function(e,t,n,r,o,s){var a,u,f,d=s*8-o-1,p=(1<<d)-1,h=p>>1,y=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,m=r?0:s-1,v=r?1:-1,b=t<0||t===0&&1
vendor: 28,322 bytes, line 53
53/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,a=p):(a=Math.floor(Math.log(t)/Math.LN2),t*(f=Math.pow(2,-a))<1&&(a--,f*=2),a+h>=1?t+=y/f:t+=y*Math.pow(2,1-h),t*f>=2&&(a++,f/=2),a+h>=p?(u=0,a=p):a+h>=1?(u=(t*f-1)*Math.pow(2,o),a=a+h):(u=t*Math.pow(2,h-1)*Math.pow(2,o),a=0));o>=8;e[n+m]=u&255,m+=v,u/=256,o-=8);for(a=a<<o|u,d+=o;d>0;e[n+m]=a&255,m+=v,a/=256,d-=8);e[n+m-v]|=b*128};(function(e){const t=qh,n=I_,r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=u,e.SlowBuffer=T,e.INSPECT_MAX_BYTES=50;const o=2147483647;e.kMaxLength=o,u.TYPED_ARRAY_SUPPORT=s(),!u.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function s(){try{const i=new Uint8Array(1),l={foo:function(){return 42}};return Object.setPrototypeOf(l,Uint8Array.prototype),Object.setPrototypeOf(i,l),i.foo()===42}catch{return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}});function a(i){if(i>o)throw new RangeError('The value "'+i+'" is invalid for option "size"');const l=new Uint8Array(i);return Object.setPrototypeOf(l,u.prototype),l}function u(i,l,c){if(typeof i=="number"){if(typeof l=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return h(i)}return f(i,l,c)}u.poolSize=8192;function f(i,l,c){if(typeof i=="string")return y(i,l);if(ArrayBuffer.isView(i))return v(i);if(i==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof i);if(fe(i,ArrayBuffer)||i&&fe(i.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(fe(i,SharedArrayBuffer)||i&&fe(i.buffer,SharedArrayBuffer)))return b(i,l,c);if(typeof i=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const g=i.valueOf&&i.valueOf();if(g!=null&&g!==i)return u.from(g,l,c);const _=S(i);if(_)return _;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof i[Symbol.toPrimitive]=="function")return u.from(i[Symbol.toPrimitive]("string"),l,c);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof i)}u.from=function(i,l,c){return f(i,l,c)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array);function d(i){if(typeof i!="number")throw new TypeError('"size" argument must be of type number');if(i<0)throw new RangeError('The value "'+i+'" is invalid for option "size"')}function p(i,l,c){return d(i),i<=0?a(i):l!==void 0?typeof c=="string"?a(i).fill(l,c):a(i).fill(l):a(i)}u.alloc=function(i,l,c){return p(i,l,c)};function h(i){return d(i),a(i<0?0:w(i)|0)}u.allocUnsafe=function(i){return h(i)},u.allocUnsafeSlow=function(i){return h(i)};function y(i,l){if((typeof l!="string"||l==="")&&(l="utf8"),!u.isEncoding(l))throw new TypeError("Unknown encoding: "+l);const c=I(i,l)|0;let g=a(c);const _=g.write(i,l);return _!==c&&(g=g.slice(0,_)),g}function m(i){const l=i.length<0?0:w(i.length)|0,c=a(l);for(let g=0;g<l;g+=1)c[g]=i[g]&255;return c}function v(i){if(fe(i,Uint8Array)){const l=new Uint8Array(i);return b(l.buffer,l.byteOffset,l.byteLength)}return m(i)}function b(i,l,c){if(l<0||i.byteLength<l)throw new RangeError('"offset" is outside of buffer bounds');if(i.byteLength<l+(c||0))throw new RangeError('"length" is outside of buffer bounds');let g;return l===void 0&&c===void 0?g=new Uint8Array(i):c===void 0?g=new Uint8Array(i,l):g=new Uint8Array(i,l,c),Object.setPrototypeOf(g,u.prototype),g}function S(i){if(u.isBuffer(i)){const l=w(i.length)|0,c=a(l);return c.length===0||i.copy(c,0,0,l),c}if(i.length!==void 0)return typeof i.length!="number"||Ce(i.length)?a(0):m(i);if(i.type==="Buffer"&&Array.isArray(i.data))return m(i.data)}function w(i){if(i>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return i|0}function T(i){return+i!=i&&(i=0),u.alloc(+i)}u.isBuffer=function(i){return i!=null&&i._isBuffer===!0&&i!==u.prototype},u.compare=function(i,l){if(fe(i,Uint8Array)&&(i=u.from(i,i.offset,i.byteLength)),fe(l,Uint8Array)&&(l=u.from(l,l.offset,l.byteLength)),!u.isBuffer(i)||!u.isBuffer(l))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(i===l)return 0;let c=i.length,g=l.length;for(let _=0,E=Math.min(c,g);_<E;++_)if(i[_]!==l[_]){c=i[_],g=l[_];break}return c<g?-1:g<c?1:0},u.isEncoding=function(i){switch(String(i).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(i,l){if(!Array.isArray(i))throw new TypeError('"list" argument must be an Array of Buffers');if(i.length===0)return u.alloc(0);let c;if(l===void 0)for(l=0,c=0;c<i.length;++c)l+=i[c].length;const g=u.allocUnsafe(l);let _=0;for(c=0;c<i.length;++c){let E=i[c];if(fe(E,Uint8Array))_+E.length>g.length?(u.isBuffer(E)||(E=u.from(E)),E.copy(g,_)):Uint8Array.prototype.set.call(g,E,_);else if(u.isBuffer(E))E.copy(g,_);else throw new TypeError('"list" argument must be an Array of Buffers');_+=E.length}return g};function I(i,l){if(u.isBuffer(i))return i.length;if(ArrayBuffer.isView(i)||fe(i,ArrayBuffer))return i.byteLength;if(typeof i!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof i);const c=i.length,g=arguments.length>2&&arguments[2]===!0;if(!g&&c===0)return 0;let _=!1;for(;;)switch(l){case"ascii":case"latin1":case"binary":return c;case"utf8":case"utf-8":return de(i).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c*2;case"hex":return c>>>1;case"base64":return pe(i).length;default:if(_)return g?-1:de(i).length;l=(""+l).toLowerCase(),_=!0}}u.byteLength=I;function C(i,l,c){let g=!1;if((l===void 0||l<0)&&(l=0),l>this.length||((c===void 0||c>this.length)&&(c=this.length),c<=0)||(c>>>=0,l>>>=0,c<=l))return"";for(i||(i="utf8");;)switch(i){case"hex":return q(this,l,c);case"utf8":case"utf-8":return Y(this,l,c);case"ascii":return ae(this,l,c);case"latin1":case"binary":return ce(this,l,c);case"base64":return W(this,l,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ue(this,l,c);default:if(g)throw new TypeError("Unknown encoding: "+i);i=(i+"").toLowerCase(),g=!0}}u.prototype._isBuffer=!0;function A(i,l,c){const g=i[l];i[l]=i[c],i[c]=g}u.prototype.swap16=function(){const i=this.length;if(i%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let l=0;l<i;l+=2)A(this,l,l+1);return this},u.prototype.swap32=function(){const i=this.length;if(i%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let l=0;l<i;l+=4)A(this,l,l+3),A(this,l+1,l+2);return this},u.prototype.swap64=function(){const i=this.length;if(i%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let l=0;l<i;l+=8)A(this,l,l+7),A(this,l+1,l+6),A(this,l+2,l+5),A(this,l+3,l+4);return this},u.prototype.toString=function(){const i=this.length;return i===0?"":arguments.length===0?Y(this,0,i):C.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(i){if(!u.isBuffer(i))throw new TypeError("Argument must be a Buffer");return this===i?!0:u.compare(this,i)===0},u.prototype.inspect=function(){let i="";const l=e.INSPECT_MAX_BYTES;return i=this.toString("hex",0,l).replace(/(.{2})/g,"$1 ").trim(),this.length>l&&(i+=" ... "),"<Buffer "+i+">"},r&&(u.prototype[r]=u.prototype.inspect),u.prototype.compare=function(i,l,c,g,_){if(fe(i,Uint8Array)&&(i=u.from(i,i.offset,i.byteLength)),!u.isBuffer(i))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof i);if(l===void 0&&(l=0),c===void 0&&(c=i?i.length:0),g===void 0&&(g=0),_===void 0&&(_=this.length),l<0||c>i.length||g<0||_>this.length)throw new RangeError("out of range index");if(g>=_&&l>=c)return 0;if(g>=_)return-1;if(l>=c)return 1;if(l>>>=0,c>>>=0,g>>>=0,_>>>=0,this===i)return 0;let E=_-g,R=c-l;const oe=Math.min(E,R),$e=this.slice(g,_),me=i.slice(l,c);for(let he=0;he<oe;++he)if($e[he]!==me[he]){E=$e[he],R=me[he];break}return E<R?-1:R<E?1:0};function $(i,l,c,g,_){if(i.length===0)return-1;if(typeof c=="string"?(g=c,c=0):c>2147483647?c=2147483647:c<-2147483648&&(c=-2147483648),c=+c,Ce(c)&&(c=_?0:i.length-1),c<0&&(c=i.length+c),c>=i.length){if(_)return-1;c=i.length-1}else if(c<0)if(_)c=0;else return-1;if(typeof l=="string"&&(l=u.from(l,g)),u.isBuffer(l))return l.length===0?-1:k(i,l,c,g,_);if(typeof l=="number")return l=l&255,typeof Uint8Array.prototype.indexOf=="function"?_?Uint8Array.prototype.indexOf.call(i,l,c):Uint8Array.prototype.lastIndexOf.call(i,l,c):k(i,[l],c,g,_);throw new TypeError("val must be string, number or Buffer")}function k(i,l,c,g,_){let E=1,R=i.length,oe=l.length;if(g!==void 0&&(g=String(g).toLowerCase(),g==="ucs2"||g==="ucs-2"||g==="utf16le"||g==="utf-16le")){if(i.length<2||l.length<2)return-1;E=2,R/=2,oe/=2,c/=2}function $e(he,Te){return E===1?he[Te]:he.readUInt16BE(Te*E)}let me;if(_){let he=-1;for(me=c;me<R;me++)if($e(i,me)===$e(l,he===-1?0:me-he)){if(he===-1&&(he=me),me-he+1===oe)return he*E}else he!==-1&&(me-=me-he),he=-1}else for(c+oe>R&&(c=R-oe),me=c;me>=0;me--){let he=!0;for(let Te=0;Te<oe;Te++)if($e(i,me+Te)!==$e(l,Te)){he=!1;break}if(he)return me}return-1}u.prototype.includes=function(i,l,c){return this.indexOf(i,l,c)!==-1},u.prototype.indexOf=function(i,l,c){return $(this,i,l,c,!0)},u.prototype.lastIndexOf=function(i,l,c){return $(this,i,l,c,!1)};function x(i,l,c,g){c=Number(c)||0;const _=i.length-c;g?(g=Number(g),g>_&&(g=_)):g=_;const E=l.length;g>E/2&&(g=E/2);let R;for(R=0;R<g;++R){const oe=parseInt(l.substr(R*2,2),16);if(Ce(oe))return R;i[c+R]=oe}return R}function O(i,l,c,g){return ge(de(l,i.length-c),i,c,g)}function M(i,l,c,g){return ge(_e(l),i,c,g)}function j(i,l,c,g){return ge(pe(l),i,c,g)}function V(i,l,c,g){return ge(Se(l,i.length-c),i,c,g)}u.prototype.write=function(i,l,c,g){if(l===void 0)g="utf8",c=this.length,l=0;else if(c===void 0&&typeof l=="string")g=l,c=this.length,l=0;else if(isFinite(l))l=l>>>0,isFinite(c)?(c=c>>>0,g===void 0&&(g="utf8")):(g=c,c=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const _=this.length-l;if((c===void 0||c>_)&&(c=_),i.length>0&&(c<0||l<0)||l>this.length)throw new RangeError("Attempt to write outside buffer bounds");g||(g="utf8");let E=!1;for(;;)switch(g){case"hex":return x(this,i,l,c);case"utf8":case"utf-8":return O(this,i,l,c);case"ascii":case"latin1":case"binary":return M(this,i,l,c);case"base64":return j(this,i,l,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return V(this,i,l,c);default:if(E)throw new TypeError("Unknown encoding: "+g);g=(""+g).toLowerCase(),E=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function W(i,l,c){return l===0&&c===i.length?t.fromByteArray(i):t.fromByteArray(i.slice(l,c))}function Y(i,l,c){c=Math.min(i.length,c);const g=[];let _=l;for(;_<c;){const E=i[_];let R=null,oe=E>239?4:E>223?3:E>191?2:1;if(_+oe<=c){let $e,me,he,Te;switch(oe){case 1:E<128&&(R=E);break;case 2:$e=i[_+1],($e&192)===128&&(Te=(E&31)<<6|$e&63,Te>127&&(R=Te));break;case 3:$e=i[_+1],me=i[_+2],($e&192)===128&&(me&192)===128&&(Te=(E&15)<<12|($e&63)<<6|me&63,Te>2047&&(Te<55296||Te>57343)&&(R=Te));break;case 4:$e=i[_+1],me=i[_+2],he=i[_+3],($e&192)===128&&(me&192)===128&&(he&192)===128&&(Te=(E&15)<<18|($e&63)<<12|(me&63)<<6|he&63,Te>65535&&Te<1114112&&(R=Te))}}R===null?(R=65533,oe=1):R>65535&&(R-=65536,g.push(R>>>10&1023|55296),R=56320|R&1023),g.push(R),_+=oe}return Z(g)}const ne=4096;function Z(i){const l=i.length;if(l<=ne)return String.fromCharCode.apply(String,i);let c="",g=0;for(;g<l;)c+=String.fromCharCode.apply(String,i.slice(g,g+=ne));return c}function ae(i,l,c){let g="";c=Math.min(i.length,c);for(let _=l;_<c;++_)g+=String.fromCharCode(i[_]&127);return g}function ce(i,l,c){let g="";c=Math.min(i.length,c);for(let _=l;_<c;++_)g+=String.fromCharCode(i[_]);return g}function q(i,l,c){const g=i.length;(!l||l<0)&&(l=0),(!c||c<0||c>g)&&(c=g);let _="";for(let E=l;E<c;++E)_+=H[i[E]];return _}function ue(i,l,c){const g=i.slice(l,c);let _="";for(let E=0;E<g.length-1;E+=2)_+=String.fromCharCode(g[E]+g[E+1]*256);return _}u.prototype.slice=function(i,l){const c=this.length;i=~~i,l=l===void 0?c:~~l,i<0?(i+=c,i<0&&(i=0)):i>c&&(i=c),l<0?(l+=c,l<0&&(l=0)):l>c&&(l=c),l<i&&(l=i);const g=this.subarray(i,l);return Object.setPrototypeOf(g,u.prototype),g};function G(i,l,c){if(i%1!==0||i<0)throw new RangeError("offset is not uint");if(i+l>c)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(i,l,c){i=i>>>0,l=l>>>0,c||G(i,l,this.length);let g=this[i],_=1,E=0;for(;++E<l&&(_*=256);)g+=this[i+E]*_;return g},u.prototype.readUintBE=u.prototype.readUIntBE=function(i,l,c){i=i>>>0,l=l>>>0,c||G(i,l,this.length);let g=this[i+--l],_=1;for(;l>0&&(_*=256);)g+=this[i+--l]*_;return g},u.prototype.readUint8=u.prototype.readUInt8=function(i,l){return i=i>>>0,l||G(i,1,this.length),this[i]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(i,l){return i=i>>>0,l||G(i,2,this.length),this[i]|this[i+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(i,l){return i=i>>>0,l||G(i,2,this.length),this[i]<<8|this[i+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(i,l){return i=i>>>0,l||G(i,4,this.length),(this[i]|this[i+1]<<8|this[i+2]<<16)+this[i+3]*16777216},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(i,l){return i=i>>>0,l||G(i,4,this.length),this[i]*16777216+(this[i+1]<<16|this[i+2]<<8|this[i+3])},u.prototype.readBigUInt64LE=z(function(i){i=i>>>0,L(i,"offset");const l=this[i],c=this[i+7];(l===void 0||c===void 0)&&D(i,this.length-8);const g=l+this[++i]*2**8+this[++i]*2**16+this[++i]*2**24,_=this[++i]+this[++i]*2**8+this[++i]*2**16+c*2**24;return BigInt(g)+(BigInt(_)<<BigInt(32))}),u.prototype.readBigUInt64BE=z(function(i){i=i>>>0,L(i,"offset");const l=this[i],c=this[i+7];(l===void 0||c===void 0)&&D(i,this.length-8);const g=l*2**24+this[++i]*2**16+this[++i]*2**8+this[++i],_=this[++i]*2**24+this[++i]*2**16+this[++i]*2**8+c;return(BigInt(g)<<BigInt(32))+BigInt(_)}),u.prototype.readIntLE=function(i,l,c){i=i>>>0,l=l>>>0,c||G(i,l,this.length);let g=this[i],_=1,E=0;for(;++E<l&&(_*=256);)g+=this[i+E]*_;return _*=128,g>=_&&(g-=Math.pow(2,8*l)),g},u.prototype.readIntBE=function(i,l,c){i=i>>>0,l=l>>>0,c||G(i,l,this.length);let g=l,_=1,E=this[i+--g];for(;g>0&&(_*=256);)E+=this[i+--g]*_;return _*=128,E>=_&&(E-=Math.pow(2,8*l)),E},u.prototype.readInt8=function(i,l){return i=i>>>0,l||G(i,1,this.length),this[i]&128?(255-this[i]+1)*-1:this[i]},u.prototype.readInt16LE=function(i,l){i=i>>>0,l||G(i,2,this.length);const c=this[i]|this[i+1]<<8;return c&32768?c|4294901760:c},u.prototype.readInt16BE=function(i,l){i=i>>>0,l||G(i,2,this.length);const c=this[i+1]|this[i]<<8;return c&32768?c|4294901760:c},u.prototype.readInt32LE=function(i,l){return i=i>>>0,l||G(i,4,this.length),this[i]|this[i+1]<<8|this[i+2]<<16|this[i+3]<<24},u.prototype.readInt32BE=function(i,l){return i=i>>>0,l||G(i,4,this.length),this[i]<<24|this[i+1]<<16|this[i+2]<<8|this[i+3]},u.prototype.readBigInt64LE=z(function(i){i=i>>>0,L(i,"offset");const l=this[i],c=this[i+7];(l===void 0||c===void 0)&&D(i,this.length-8);const g=this[i+4]+this[i+5]*2**8+this[i+6]*2**16+(c<<24);return(BigInt(g)<<BigInt(32))+BigInt(l+this[++i]*2**8+this[++i]*2**16+this[++i]*2**24)}),u.prototype.readBigInt64BE=z(function(i){i=i>>>0,L(i,"offset");const l=this[i],c=this[i+7];(l===void 0||c===void 0)&&D(i,this.length-8);const g=(l<<24)+this[++i]*2**16+this[++i]*2**8+this[++i];return(BigInt(g)<<BigInt(32))+BigInt(this[++i]*2**24+this[++i]*2**16+this[++i]*2**8+c)}),u.prototype.readFloatLE=function(i,l){return i=i>>>0,l||G(i,4,this.length),n.read(this,i,!0,23,4)},u.prototype.readFloatBE=function(i,l){return i=i>>>0,l||G(i,4,this.length),n.read(this,i,!1,23,4)},u.prototype.readDoubleLE=function(i,l){return i=i>>>0,l||G(i,8,this.length),n.read(this,i,!0,52,8)},u.prototype.readDoubleBE=function(i,l){return i=i>>>0,l||G(i,8,this.length),n.read(this,i,!1,52,8)};function re(i,l,c,g,_,E){if(!u.isBuffer(i))throw new TypeError('"buffer" argument must be a Buffer instance');if(l>_||l<E)throw new RangeError('"value" argument is out of bounds');if(c+g>i.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(i,l,c,g){if(i=+i,l=l>>>0,c=c>>>0,!g){const R=Math.pow(2,8*c)-1;re(this,i,l,c,R,0)}let _=1,E=0;for(this[l]=i&255;++E<c&&(_*=256);)this[l+E]=i/_&255;return l+c},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(i,l,c,g){if(i=+i,l=l>>>0,c=c>>>0,!g){const R=Math.pow(2,8*c)-1;re(this,i,l,c,R,0)}let _=c-1,E=1;for(this[l+_]=i&255;--_>=0&&(E*=256);)this[l+_]=i/E&255;return l+c},u.prototype.writeUint8=u.prototype.writeUInt8=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,1,255,0),this[l]=i&255,l+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,2,65535,0),this[l]=i&255,this[l+1]=i>>>8,l+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,2,65535,0),this[l]=i>>>8,this[l+1]=i&255,l+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,4,4294967295,0),this[l+3]=i>>>24,this[l+2]=i>>>16,this[l+1]=i>>>8,this[l]=i&255,l+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,4,4294967295,0),this[l]=i>>>24,this[l+1]=i>>>16,this[l+2]=i>>>8,this[l+3]=i&255,l+4};function Oe(i,l,c,g,_){K(l,g,_,i,c,7);let E=Number(l&BigInt(4294967295));i[c++]=E,E=E>>8,i[c++]=E,E=E>>8,i[c++]=E,E=E>>8,i[c++]=E;let R=Number(l>>BigInt(32)&BigInt(4294967295));return i[c++]=R,R=R>>8,i[c++]=R,R=R>>8,i[c++]=R,R=R>>8,i[c++]=R,c}function Ee(i,l,c,g,_){K(l,g,_,i,c,7);let E=Number(l&BigInt(4294967295));i[c+7]=E,E=E>>8,i[c+6]=E,E=E>>8,i[c+5]=E,E=E>>8,i[c+4]=E;let R=Number(l>>BigInt(32)&BigInt(4294967295));return i[c+3]=R,R=R>>8,i[c+2]=R,R=R>>8,i[c+1]=R,R=R>>8,i[c]=R,c+8}u.prototype.writeBigUInt64LE=z(function(i,l=0){return Oe(this,i,l,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=z(function(i,l=0){return Ee(this,i,l,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(i,l,c,g){if(i=+i,l=l>>>0,!g){const oe=Math.pow(2,8*c-1);re(this,i,l,c,oe-1,-oe)}let _=0,E=1,R=0;for(this[l]=i&255;++_<c&&(E*=256);)i<0&&R===0&&this[l+_-1]!==0&&(R=1),this[l+_]=(i/E>>0)-R&255;return l+c},u.prototype.writeIntBE=function(i,l,c,g){if(i=+i,l=l>>>0,!g){const oe=Math.pow(2,8*c-1);re(this,i,l,c,oe-1,-oe)}let _=c-1,E=1,R=0;for(this[l+_]=i&255;--_>=0&&(E*=256);)i<0&&R===0&&this[l+_+1]!==0&&(R=1),this[l+_]=(i/E>>0)-R&255;return l+c},u.prototype.writeInt8=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,1,127,-128),i<0&&(i=255+i+1),this[l]=i&255,l+1},u.prototype.writeInt16LE=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,2,32767,-32768),this[l]=i&255,this[l+1]=i>>>8,l+2},u.prototype.writeInt16BE=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,2,32767,-32768),this[l]=i>>>8,this[l+1]=i&255,l+2},u.prototype.writeInt32LE=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,4,2147483647,-2147483648),this[l]=i&255,this[l+1]=i>>>8,this[l+2]=i>>>16,this[l+3]=i>>>24,l+4},u.prototype.writeInt32BE=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,4,2147483647,-2147483648),i<0&&(i=4294967295+i+1),this[l]=i>>>24,this[l+1]=i>>>16,this[l+2]=i>>>8,this[l+3]=i&255,l+4},u.prototype.writeBigInt64LE=z(function(i,l=0){return Oe(this,i,l,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=z(function(i,l=0){return Ee(this,i,l,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Pe(i,l,c,g,_,E){if(c+g>i.length)throw new RangeError("Index out of range");if(c<0)throw new RangeError("Index out of range")}function Ae(i,l,c,g,_){return l=+l,c=c>>>0,_||Pe(i,l,c,4),n.write(i,l,c,g,23,4),c+4}u.prototype.writeFloatLE=function(i,l,c){return Ae(this,i,l,!0,c)},u.prototype.writeFloatBE=function(i,l,c){return Ae(this,i,l,!1,c)};function le(i,l,c,g,_){return l=+l,c=c>>>0,_||Pe(i,l,c,8),n.write(i,l,c,g,52,8),c+8}u.prototype.writeDoubleLE=function(i,l,c){return le(this,i,l,!0,c)},u.prototype.writeDoubleBE=function(i,l,c){return le(this,i,l,!1,c)},u.prototype.copy=function(i,l,c,g){if(!u.isBuffer(i))throw new TypeError("argument should be a Buffer");if(c||(c=0),!g&&g!==0&&(g=this.length),l>=i.length&&(l=i.length),l||(l=0),g>0&&g<c&&(g=c),g===c||i.length===0||this.length===0)return 0;if(l<0)throw new RangeError("targetStart out of bounds");if(c<0||c>=this.length)throw new RangeError("Index out of range");if(g<0)throw new RangeError("sourceEnd out of bounds");g>this.length&&(g=this.length),i.length-l<g-c&&(g=i.length-l+c);const _=g-c;return this===i&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(l,c,g):Uint8Array.prototype.set.call(i,this.subarray(c,g),l),_},u.prototype.fill=function(i,l,c,g){if(typeof i=="string"){if(typeof l=="string"?(g=l,l=0,c=this.length):typeof c=="string"&&(g=c,c=this.length),g!==void 0&&typeof g!="string")throw new TypeError("encoding must be a string");if(typeof g=="string"&&!u.isEncoding(g))throw new TypeError("Unknown encoding: "+g);if(i.length===1){const E=i.charCodeAt(0);(g==="utf8"&&E<128||g==="latin1")&&(i=E)}}else typeof i=="number"?i=i&255:typeof i=="boolean"&&(i=Number(i));if(l<0||this.length<l||this.length<c)throw new RangeError("Out of range index");if(c<=l)return this;l=l>>>0,c=c===void 0?this.length:c>>>0,i||(i=0);let _;if(typeof i=="number")for(_=l;_<c;++_)this[_]=i;else{const E=u.isBuffer(i)?i:u.from(i,g),R=E.length;if(R===0)throw new TypeError('The value "'+i+'" is invalid for argument "value"');for(_=0;_<c-l;++_)this[_+l]=E[_%R]}return this};const Q={};function P(i,l,c){Q[i]=class extends c{constructor(){super(),Object.defineProperty(this,"message",{value:l.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${i}]`,this.stack,delete this.name}get code(){return i}set code(g){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:g,writable:!0})}toString(){return`${this.name} [${i}]: ${this.message}`}}}P("ERR_BUFFER_OUT_OF_BOUNDS",function(i){return i?`${i} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),P("ERR_INVALID_ARG_TYPE",function(i,l){return`The "${i}" argument must be of type number. Received type ${typeof l}`},TypeError),P("ERR_OUT_OF_RANGE",function(i,l,c){let g=`The value of "${i}" is out of range.`,_=c;return Number.isInteger(c)&&Math.abs(c)>2**32?_=F(String(c)):typeof c=="bigint"&&(_=String(c),(c>BigInt(2)**BigInt(32)||c<-(BigInt(2)**BigInt(32)))&&(_=F(_)),_+="n"),g+=` It must be ${l}. Received ${_}`,g},RangeError);function F(i){let l="",c=i.length;const g=i[0]==="-"?1:0;for(;c>=g+4;c-=3)l=`_${i.slice(c-3,c)}${l}`;return`${i.slice(0,c)}${l}`}function B(i,l,c){L(l,"offset"),(i[l]===void 0||i[l+c]===void 0)&&D(l,i.length-(c+1))}function K(i,l,c,g,_,E){if(i>c||i<l){const R=typeof l=="bigint"?"n":"";let oe;throw l===0||l===BigInt(0)?oe=`>= 0${R} and < 2${R} ** ${(E+1)*8}${R}`:oe=`>= -(2${R} ** ${(E+1)*8-1}${R}) and < 2 ** ${(E+1)*8-1}${R}`,new Q.ERR_OUT_OF_RANGE("value",oe,i)}B(g,_,E)}function L(i,l){if(typeof i!="number")throw new Q.ERR_INVALID_ARG_TYPE(l,"number",i)}function D(i,l,c){throw Math.floor(i)!==i?(L(i,c),new Q.ERR_OUT_OF_RANGE("offset","an integer",i)):l<0?new Q.ERR_BUFFER_OUT_OF_BOUNDS:new Q.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${l}`,i)}const se=/[^+/0-9A-Za-z-_]/g;function ve(i){if(i=i.split("=")[0],i=i.trim().replace(se,""),i.length<2)return"";for(;i.length%4!==0;)i=i+"=";return i}function de(i,l){l=l||1/0;let c;const g=i.length;let _=null;const E=[];for(let R=0;R<g;++R){if(c=i.charCodeAt(R),c>55295&&c<57344){if(!_){if(c>56319){(l-=3)>-1&&E.push(239,191,189);continue}else if(R+1===g){(l-=3)>-1&&E.push(239,191,189);continue}_=c;continue}if(c<56320){(l-=3)>-1&&E.push(239,191,189),_=c;continue}c=(_-55296<<10|c-56320)+65536}else _&&(l-=3)>-1&&E.push(239,191,189);if(_=null,c<128){if((l-=1)<0)break;E.push(c)}else if(c<2048){if((l-=2)<0)break;E.push(c>>6|192,c&63|128)}else if(c<65536){if((l-=3)<0)break;E.push(c>>12|224,c>>6&63|128,c&63|128)}else if(c<1114112){if((l-=4)<0)break;E.push(c>>18|240,c>>12&63|128,c>>6&63|128,c&63|128)}else throw new Error("Invalid code point")}return E}function _e(i){const l=[];for(let c=0;c<i.length;++c)l.push(i.charCodeAt(c)&255);return l}function Se(i,l){let c,g,_;const E=[];for(let R=0;R<i.length&&!((l-=2)<0);++R)c=i.charCodeAt(R),g=c>>8,_=c%256,E.push(_),E.push(g);return E}function pe(i){return t.toByteArray(ve(i))}function ge(i,l,c,g){let _;for(_=0;_<g&&!(_+c>=l.length||_>=i.length);++_)l[_+c]=i[_];return _}function fe(i,l){return i instanceof l||i!=null&&i.constructor!=null&&i.constructor.name!=null&&i.constructor.name===l.name}function Ce(i){return i!==i}const H=(function(){const i="0123456789abcdef",l=new Array(256);for(let c=0;c<16;++c){const g=c*16;for(let _=0;_<16;++_)l[g+_]=i[c]+i[_]}return l})();function z(i){return typeof BigInt>"u"?ee:i}function ee(){throw new Error("BigInt not supported")}})(j4);var Dv={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n={exports:{}},r=n.exports={},o,s;function a(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?o=setTimeout:o=a}catch{o=a}try{typeof clearTimeout=="function"?s=clearTimeout:s=u}catch{s=u}})();function f(q){if(o===setTimeout)return setTimeout(q,0);if((o===a||!o)&&setTimeout)return o=setTimeout,setTimeout(q,0);try{return o(q,0)}catch{try{return o.call(null,q,0)}catch{return o.call(this,q,0)}}}function d(q){if(s===clearTimeout)return clearTimeout(q);if((s===u||!s)&&clearTimeout)return s=clearTimeout,clearTimeout(q);try{return s(q)}catch{try{return s.call(null,q)}catch{return s.call(this,q)}}}var p=[],h=!1,y,m=-1;function v(){!h||!y||(h=!1,y.length?p=y.concat(p):m=-1,p.length&&b())}function b(){if(!h){var q=f(v);h=!0;for(var ue=p.length;ue;){for(y=p,p=[];++m<ue;)y&&y[m].run();m=-1,ue=p.length}y=null,h=!1,d(q)}}r.nextTick=function(q){var ue=new Array(arguments.length-1);if(arguments.length>1)for(var G=1;G<arguments.length;G++)ue[G-1]=arguments[G];p.push(new S(q,ue)),p.length===1&&!h&&f(b)};function S(q,ue){this.fun=q,this.array=ue}S.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={};function w(){}r.on=w,r.addListener=w,r.once=w,r.off=w,r.removeListener=w,r.removeAllListeners=w,r.emit=w,r.prependListener=w,r.prependOnceListener=w,r.listeners=function(q){return[]},r.binding=function(q){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(q){throw new Error("process.chdir is not supported")},r.umask=function(){return 0};function T(){}var I=n.exports.browser,C=T,A=n.exports.binding,$=T,k=1,x={},O=T,M=T,j=T,V=T,W=T,Y="browser",ne="browser",Z="browser",ae=[],ce={nextTick:n.exports.nextTick,title:n.exports.title,browser:I,env:n.exports.env,argv:n.exports.argv,version:n.exports.version,versions:n.exports.versions,on:n.exports.on,addListener:n.exports.addListener,once:n.exports.once,off:n.exports.off,removeListener:n.exports.removeListener,removeAllListeners:n.exports.removeAllListeners,emit:n.exports.emit,emitWarning:C,prependListener:n.exports.prependListener,prependOnceListener:n.exports.prependOnceListener,listeners:n.exports.listeners,binding:A,cwd:n.exports.cwd,chdir:n.exports.chdir,umask:n.exports.umask,exit:$,pid:k,features:x,kill:O,dlopen:M,uptime:j,memoryUsage:V,uvCounters:W,platform:Y,arch:ne,execPath:Z,execArgv:ae};t.addListener=n.exports.addListener,t.arch=ne,t.argv=n.exports.argv,t.b
53inding=A,t.browser=I,t.chdir=n.exports.chdir,t.cwd=n.exports.cwd,t.default=ce,t.dlopen=M,t.emit=n.exports.emit,t.emitWarning=C,t.env=n.exports.env,t.execArgv=ae,t.execPath=Z,t.exit=$,t.features=x,t.kill=O,t.listeners=n.exports.listeners,t.memoryUsage=V,t.nextTick=n.exports.nextTick,t.off=n.exports.off,t.on=n.exports.on,t.once=n.exports.once,t.pid=k,t.platform=Y,t.prependListener=n.exports.prependListener,t.prependOnceListener=n.exports.prependOnceListener,t.removeAllListeners=n.exports.removeAllListeners,t.removeListener=n.exports.removeListener,t.title=n.exports.title,t.umask=n.exports.umask,t.uptime=j,t.uvCounters=W,t.version=n.exports.version,t.versions=n.exports.versions,t=e.exports=ce})(Dv,Dv.exports);var QX=Dv.exports;(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=j4,n=QX,r=a=>a&&a.__esModule?a:{default:a},o=r(n),s=globalThis||void 0||self;Object.defineProperty(e,"Buffer",{enumerable:!0,get:()=>t.Buffer}),Object.defineProperty(e,"process",{enumerable:!0,get:()=>o.default}),e.global=s})(Nv);var US=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Nv.global<"u"?Nv.global:typeof self<"u"?self:{},Vd={},q4={},Wh={};Wh.byteLength=eee;Wh.toByteArray=nee;Wh.fromByteArray=iee;var Gr=[],or=[],JX=typeof Uint8Array<"u"?Uint8Array:Array,pm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var ya=0,XX=pm.length;ya<XX;++ya)Gr[ya]=pm[ya],or[pm.charCodeAt(ya)]=ya;or[45]=62;or[95]=63;function W4(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function eee(e){var t=W4(e),n=t[0],r=t[1];return(n+r)*3/4-r}function tee(e,t,n){return(t+n)*3/4-n}function nee(e){var t,n=W4(e),r=n[0],o=n[1],s=new JX(tee(e,r,o)),a=0,u=o>0?r-4:r,f;for(f=0;f<u;f+=4)t=or[e.charCodeAt(f)]<<18|or[e.charCodeAt(f+1)]<<12|or[e.charCodeAt(f+2)]<<6|or[e.charCodeAt(f+3)],s[a++]=t>>16&255,s[a++]=t>>8&255,s[a++]=t&255;return o===2&&(t=or[e.charCodeAt(f)]<<2|or[e.charCodeAt(f+1)]>>4,s[a++]=t&255),o===1&&(t=or[e.charCodeAt(f)]<<10|or[e.charCodeAt(f+1)]<<4|or[e.charCodeAt(f+2)]>>2,s[a++]=t>>8&255,s[a++]=t&255),s}function ree(e){return Gr[e>>18&63]+Gr[e>>12&63]+Gr[e>>6&63]+Gr[e&63]}function oee(e,t,n){for(var r,o=[],s=t;s<n;s+=3)r=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(e[s+2]&255),o.push(ree(r));return o.join("")}function iee(e){for(var t,n=e.length,r=n%3,o=[],s=16383,a=0,u=n-r;a<u;a+=s)o.push(oee(e,a,a+s>u?u:a+s));return r===1?(t=e[n-1],o.push(Gr[t>>2]+Gr[t<<4&63]+"==")):r===2&&(t=(e[n-2]<<8)+e[n-1],o.push(Gr[t>>10]+Gr[t>>4&63]+Gr[t<<2&63]+"=")),o.join("")}var A_={};A_.read=function(e,t,n,r,o){var s,a,u=o*8-r-1,f=(1<<u)-1,d=f>>1,p=-7,h=n?o-1:0,y=n?-1:1,m=e[t+h];for(h+=y,s=m&(1<<-p)-1,m>>=-p,p+=u;p>0;s=s*256+e[t+h],h+=y,p-=8);for(a=s&(1<<-p)-1,s>>=-p,p+=r;p>0;a=a*256+e[t+h],h+=y,p-=8);if(s===0)s=1-d;else{if(s===f)return a?NaN:(m?-1:1)*(1/0);a=a+Math.pow(2,r),s=s-d}return(m?-1:1)*a*Math.pow(2,s-r)};A_.write=function(e,t,n,r,o,s){var a,u,f,d=s*8-o-1,p=(1<<d)-1,h=p>>1,y=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,m=r?0:s-1,v=r?1:-1,b=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,a=p):(a=Math.floor(Math.log(t)/Math.LN2),t*(f=Math.pow(2,-a))<1&&(a--,f*=2),a+h>=1?t+=y/f:t+=y*Math.pow(2,1-h),t*f>=2&&(a++,f/=2),a+h>=p?(u=0,a=p):a+h>=1?(u=(t*f-1)*Math.pow(2,o),a=a+h):(u=t*Math.pow(2,h-1)*Math.pow(2,o),a=0));o>=8;e[n+m]=u&255,m+=v,u/=256,o-=8);for(a=a<<o|u,d+=o;d>0;e[n+m]=a&255,m+=v,a/=256,d-=8);e[n+m-v]|=b*128};(function(e){const t=Wh,n=A_,r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=u,e.SlowBuffer=T,e.INSPECT_MAX_BYTES=50;const o=2147483647;e.kMaxLength=o,u.TYPED_ARRAY_SUPPORT=s(),!u.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function s(){try{const i=new Uint8Array(1),l={foo:function(){return 42}};return Object.setPrototypeOf(l,Uint8Array.prototype),Object.setPrototypeOf(i,l),i.foo()===42}catch{return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}});function a(i){if(i>
vendor: 25,853 bytes, line 53
53o)throw new RangeError('The value "'+i+'" is invalid for option "size"');const l=new Uint8Array(i);return Object.setPrototypeOf(l,u.prototype),l}function u(i,l,c){if(typeof i=="number"){if(typeof l=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return h(i)}return f(i,l,c)}u.poolSize=8192;function f(i,l,c){if(typeof i=="string")return y(i,l);if(ArrayBuffer.isView(i))return v(i);if(i==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof i);if(fe(i,ArrayBuffer)||i&&fe(i.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(fe(i,SharedArrayBuffer)||i&&fe(i.buffer,SharedArrayBuffer)))return b(i,l,c);if(typeof i=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const g=i.valueOf&&i.valueOf();if(g!=null&&g!==i)return u.from(g,l,c);const _=S(i);if(_)return _;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof i[Symbol.toPrimitive]=="function")return u.from(i[Symbol.toPrimitive]("string"),l,c);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof i)}u.from=function(i,l,c){return f(i,l,c)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array);function d(i){if(typeof i!="number")throw new TypeError('"size" argument must be of type number');if(i<0)throw new RangeError('The value "'+i+'" is invalid for option "size"')}function p(i,l,c){return d(i),i<=0?a(i):l!==void 0?typeof c=="string"?a(i).fill(l,c):a(i).fill(l):a(i)}u.alloc=function(i,l,c){return p(i,l,c)};function h(i){return d(i),a(i<0?0:w(i)|0)}u.allocUnsafe=function(i){return h(i)},u.allocUnsafeSlow=function(i){return h(i)};function y(i,l){if((typeof l!="string"||l==="")&&(l="utf8"),!u.isEncoding(l))throw new TypeError("Unknown encoding: "+l);const c=I(i,l)|0;let g=a(c);const _=g.write(i,l);return _!==c&&(g=g.slice(0,_)),g}function m(i){const l=i.length<0?0:w(i.length)|0,c=a(l);for(let g=0;g<l;g+=1)c[g]=i[g]&255;return c}function v(i){if(fe(i,Uint8Array)){const l=new Uint8Array(i);return b(l.buffer,l.byteOffset,l.byteLength)}return m(i)}function b(i,l,c){if(l<0||i.byteLength<l)throw new RangeError('"offset" is outside of buffer bounds');if(i.byteLength<l+(c||0))throw new RangeError('"length" is outside of buffer bounds');let g;return l===void 0&&c===void 0?g=new Uint8Array(i):c===void 0?g=new Uint8Array(i,l):g=new Uint8Array(i,l,c),Object.setPrototypeOf(g,u.prototype),g}function S(i){if(u.isBuffer(i)){const l=w(i.length)|0,c=a(l);return c.length===0||i.copy(c,0,0,l),c}if(i.length!==void 0)return typeof i.length!="number"||Ce(i.length)?a(0):m(i);if(i.type==="Buffer"&&Array.isArray(i.data))return m(i.data)}function w(i){if(i>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return i|0}function T(i){return+i!=i&&(i=0),u.alloc(+i)}u.isBuffer=function(i){return i!=null&&i._isBuffer===!0&&i!==u.prototype},u.compare=function(i,l){if(fe(i,Uint8Array)&&(i=u.from(i,i.offset,i.byteLength)),fe(l,Uint8Array)&&(l=u.from(l,l.offset,l.byteLength)),!u.isBuffer(i)||!u.isBuffer(l))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(i===l)return 0;let c=i.length,g=l.length;for(let _=0,E=Math.min(c,g);_<E;++_)if(i[_]!==l[_]){c=i[_],g=l[_];break}return c<g?-1:g<c?1:0},u.isEncoding=function(i){switch(String(i).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(i,l){if(!Array.isArray(i))throw new TypeError('"list" argument must be an Array of Buffers');if(i.length===0)return u.alloc(0);let c;if(l===void 0)for(l=0,c=0;c<i.length;++c)l+=i[c].length;const g=u.allocUnsafe(l);let _=0;for(c=0;c<i.length;++c){let E=i[c];if(fe(E,Uint8Array))_+E.length>g.length?(u.isBuffer(E)||(E=u.from(E)),E.copy(g,_)):Uint8Array.prototype.set.call(g,E,_);else if(u.isBuffer(E))E.copy(g,_);else throw new TypeError('"list" argument must be an Array of Buffers');_+=E.length}return g};function I(i,l){if(u.isBuffer(i))return i.length;if(ArrayBuffer.isView(i)||fe(i,ArrayBuffer))return i.byteLength;if(typeof i!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof i);const c=i.length,g=arguments.length>2&&arguments[2]===!0;if(!g&&c===0)return 0;let _=!1;for(;;)switch(l){case"ascii":case"latin1":case"binary":return c;case"utf8":case"utf-8":return de(i).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c*2;case"hex":return c>>>1;case"base64":return pe(i).length;default:if(_)return g?-1:de(i).length;l=(""+l).toLowerCase(),_=!0}}u.byteLength=I;function C(i,l,c){let g=!1;if((l===void 0||l<0)&&(l=0),l>this.length||((c===void 0||c>this.length)&&(c=this.length),c<=0)||(c>>>=0,l>>>=0,c<=l))return"";for(i||(i="utf8");;)switch(i){case"hex":return q(this,l,c);case"utf8":case"utf-8":return Y(this,l,c);case"ascii":return ae(this,l,c);case"latin1":case"binary":return ce(this,l,c);case"base64":return W(this,l,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ue(this,l,c);default:if(g)throw new TypeError("Unknown encoding: "+i);i=(i+"").toLowerCase(),g=!0}}u.prototype._isBuffer=!0;function A(i,l,c){const g=i[l];i[l]=i[c],i[c]=g}u.prototype.swap16=function(){const i=this.length;if(i%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let l=0;l<i;l+=2)A(this,l,l+1);return this},u.prototype.swap32=function(){const i=this.length;if(i%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let l=0;l<i;l+=4)A(this,l,l+3),A(this,l+1,l+2);return this},u.prototype.swap64=function(){const i=this.length;if(i%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let l=0;l<i;l+=8)A(this,l,l+7),A(this,l+1,l+6),A(this,l+2,l+5),A(this,l+3,l+4);return this},u.prototype.toString=function(){const i=this.length;return i===0?"":arguments.length===0?Y(this,0,i):C.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(i){if(!u.isBuffer(i))throw new TypeError("Argument must be a Buffer");return this===i?!0:u.compare(this,i)===0},u.prototype.inspect=function(){let i="";const l=e.INSPECT_MAX_BYTES;return i=this.toString("hex",0,l).replace(/(.{2})/g,"$1 ").trim(),this.length>l&&(i+=" ... "),"<Buffer "+i+">"},r&&(u.prototype[r]=u.prototype.inspect),u.prototype.compare=function(i,l,c,g,_){if(fe(i,Uint8Array)&&(i=u.from(i,i.offset,i.byteLength)),!u.isBuffer(i))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof i);if(l===void 0&&(l=0),c===void 0&&(c=i?i.length:0),g===void 0&&(g=0),_===void 0&&(_=this.length),l<0||c>i.length||g<0||_>this.length)throw new RangeError("out of range index");if(g>=_&&l>=c)return 0;if(g>=_)return-1;if(l>=c)return 1;if(l>>>=0,c>>>=0,g>>>=0,_>>>=0,this===i)return 0;let E=_-g,R=c-l;const oe=Math.min(E,R),$e=this.slice(g,_),me=i.slice(l,c);for(let he=0;he<oe;++he)if($e[he]!==me[he]){E=$e[he],R=me[he];break}return E<R?-1:R<E?1:0};function $(i,l,c,g,_){if(i.length===0)return-1;if(typeof c=="string"?(g=c,c=0):c>2147483647?c=2147483647:c<-2147483648&&(c=-2147483648),c=+c,Ce(c)&&(c=_?0:i.length-1),c<0&&(c=i.length+c),c>=i.length){if(_)return-1;c=i.length-1}else if(c<0)if(_)c=0;else return-1;if(typeof l=="string"&&(l=u.from(l,g)),u.isBuffer(l))return l.length===0?-1:k(i,l,c,g,_);if(typeof l=="number")return l=l&255,typeof Uint8Array.prototype.indexOf=="function"?_?Uint8Array.prototype.indexOf.call(i,l,c):Uint8Array.prototype.lastIndexOf.call(i,l,c):k(i,[l],c,g,_);throw new TypeError("val must be string, number or Buffer")}function k(i,l,c,g,_){let E=1,R=i.length,oe=l.length;if(g!==void 0&&(g=String(g).toLowerCase(),g==="ucs2"||g==="ucs-2"||g==="utf16le"||g==="utf-16le")){if(i.length<2||l.length<2)return-1;E=2,R/=2,oe/=2,c/=2}function $e(he,Te){return E===1?he[Te]:he.readUInt16BE(Te*E)}let me;if(_){let he=-1;for(me=c;me<R;me++)if($e(i,me)===$e(l,he===-1?0:me-he)){if(he===-1&&(he=me),me-he+1===oe)return he*E}else he!==-1&&(me-=me-he),he=-1}else for(c+oe>R&&(c=R-oe),me=c;me>=0;me--){let he=!0;for(let Te=0;Te<oe;Te++)if($e(i,me+Te)!==$e(l,Te)){he=!1;break}if(he)return me}return-1}u.prototype.includes=function(i,l,c){return this.indexOf(i,l,c)!==-1},u.prototype.indexOf=function(i,l,c){return $(this,i,l,c,!0)},u.prototype.lastIndexOf=function(i,l,c){return $(this,i,l,c,!1)};function x(i,l,c,g){c=Number(c)||0;const _=i.length-c;g?(g=Number(g),g>_&&(g=_)):g=_;const E=l.length;g>E/2&&(g=E/2);let R;for(R=0;R<g;++R){const oe=parseInt(l.substr(R*2,2),16);if(Ce(oe))return R;i[c+R]=oe}return R}function O(i,l,c,g){return ge(de(l,i.length-c),i,c,g)}function M(i,l,c,g){return ge(_e(l),i,c,g)}function j(i,l,c,g){return ge(pe(l),i,c,g)}function V(i,l,c,g){return ge(Se(l,i.length-c),i,c,g)}u.prototype.write=function(i,l,c,g){if(l===void 0)g="utf8",c=this.length,l=0;else if(c===void 0&&typeof l=="string")g=l,c=this.length,l=0;else if(isFinite(l))l=l>>>0,isFinite(c)?(c=c>>>0,g===void 0&&(g="utf8")):(g=c,c=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const _=this.length-l;if((c===void 0||c>_)&&(c=_),i.length>0&&(c<0||l<0)||l>this.length)throw new RangeError("Attempt to write outside buffer bounds");g||(g="utf8");let E=!1;for(;;)switch(g){case"hex":return x(this,i,l,c);case"utf8":case"utf-8":return O(this,i,l,c);case"ascii":case"latin1":case"binary":return M(this,i,l,c);case"base64":return j(this,i,l,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return V(this,i,l,c);default:if(E)throw new TypeError("Unknown encoding: "+g);g=(""+g).toLowerCase(),E=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function W(i,l,c){return l===0&&c===i.length?t.fromByteArray(i):t.fromByteArray(i.slice(l,c))}function Y(i,l,c){c=Math.min(i.length,c);const g=[];let _=l;for(;_<c;){const E=i[_];let R=null,oe=E>239?4:E>223?3:E>191?2:1;if(_+oe<=c){let $e,me,he,Te;switch(oe){case 1:E<128&&(R=E);break;case 2:$e=i[_+1],($e&192)===128&&(Te=(E&31)<<6|$e&63,Te>127&&(R=Te));break;case 3:$e=i[_+1],me=i[_+2],($e&192)===128&&(me&192)===128&&(Te=(E&15)<<12|($e&63)<<6|me&63,Te>2047&&(Te<55296||Te>57343)&&(R=Te));break;case 4:$e=i[_+1],me=i[_+2],he=i[_+3],($e&192)===128&&(me&192)===128&&(he&192)===128&&(Te=(E&15)<<18|($e&63)<<12|(me&63)<<6|he&63,Te>65535&&Te<1114112&&(R=Te))}}R===null?(R=65533,oe=1):R>65535&&(R-=65536,g.push(R>>>10&1023|55296),R=56320|R&1023),g.push(R),_+=oe}return Z(g)}const ne=4096;function Z(i){const l=i.length;if(l<=ne)return String.fromCharCode.apply(String,i);let c="",g=0;for(;g<l;)c+=String.fromCharCode.apply(String,i.slice(g,g+=ne));return c}function ae(i,l,c){let g="";c=Math.min(i.length,c);for(let _=l;_<c;++_)g+=String.fromCharCode(i[_]&127);return g}function ce(i,l,c){let g="";c=Math.min(i.length,c);for(let _=l;_<c;++_)g+=String.fromCharCode(i[_]);return g}function q(i,l,c){const g=i.length;(!l||l<0)&&(l=0),(!c||c<0||c>g)&&(c=g);let _="";for(let E=l;E<c;++E)_+=H[i[E]];return _}function ue(i,l,c){const g=i.slice(l,c);let _="";for(let E=0;E<g.length-1;E+=2)_+=String.fromCharCode(g[E]+g[E+1]*256);return _}u.prototype.slice=function(i,l){const c=this.length;i=~~i,l=l===void 0?c:~~l,i<0?(i+=c,i<0&&(i=0)):i>c&&(i=c),l<0?(l+=c,l<0&&(l=0)):l>c&&(l=c),l<i&&(l=i);const g=this.subarray(i,l);return Object.setPrototypeOf(g,u.prototype),g};function G(i,l,c){if(i%1!==0||i<0)throw new RangeError("offset is not uint");if(i+l>c)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(i,l,c){i=i>>>0,l=l>>>0,c||G(i,l,this.length);let g=this[i],_=1,E=0;for(;++E<l&&(_*=256);)g+=this[i+E]*_;return g},u.prototype.readUintBE=u.prototype.readUIntBE=function(i,l,c){i=i>>>0,l=l>>>0,c||G(i,l,this.length);let g=this[i+--l],_=1;for(;l>0&&(_*=256);)g+=this[i+--l]*_;return g},u.prototype.readUint8=u.prototype.readUInt8=function(i,l){return i=i>>>0,l||G(i,1,this.length),this[i]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(i,l){return i=i>>>0,l||G(i,2,this.length),this[i]|this[i+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(i,l){return i=i>>>0,l||G(i,2,this.length),this[i]<<8|this[i+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(i,l){return i=i>>>0,l||G(i,4,this.length),(this[i]|this[i+1]<<8|this[i+2]<<16)+this[i+3]*16777216},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(i,l){return i=i>>>0,l||G(i,4,this.length),this[i]*16777216+(this[i+1]<<16|this[i+2]<<8|this[i+3])},u.prototype.readBigUInt64LE=z(function(i){i=i>>>0,L(i,"offset");const l=this[i],c=this[i+7];(l===void 0||c===void 0)&&D(i,this.length-8);const g=l+this[++i]*2**8+this[++i]*2**16+this[++i]*2**24,_=this[++i]+this[++i]*2**8+this[++i]*2**16+c*2**24;return BigInt(g)+(BigInt(_)<<BigInt(32))}),u.prototype.readBigUInt64BE=z(function(i){i=i>>>0,L(i,"offset");const l=this[i],c=this[i+7];(l===void 0||c===void 0)&&D(i,this.length-8);const g=l*2**24+this[++i]*2**16+this[++i]*2**8+this[++i],_=this[++i]*2**24+this[++i]*2**16+this[++i]*2**8+c;return(BigInt(g)<<BigInt(32))+BigInt(_)}),u.prototype.readIntLE=function(i,l,c){i=i>>>0,l=l>>>0,c||G(i,l,this.length);let g=this[i],_=1,E=0;for(;++E<l&&(_*=256);)g+=this[i+E]*_;return _*=128,g>=_&&(g-=Math.pow(2,8*l)),g},u.prototype.readIntBE=function(i,l,c){i=i>>>0,l=l>>>0,c||G(i,l,this.length);let g=l,_=1,E=this[i+--g];for(;g>0&&(_*=256);)E+=this[i+--g]*_;return _*=128,E>=_&&(E-=Math.pow(2,8*l)),E},u.prototype.readInt8=function(i,l){return i=i>>>0,l||G(i,1,this.length),this[i]&128?(255-this[i]+1)*-1:this[i]},u.prototype.readInt16LE=function(i,l){i=i>>>0,l||G(i,2,this.length);const c=this[i]|this[i+1]<<8;return c&32768?c|4294901760:c},u.prototype.readInt16BE=function(i,l){i=i>>>0,l||G(i,2,this.length);const c=this[i+1]|this[i]<<8;return c&32768?c|4294901760:c},u.prototype.readInt32LE=function(i,l){return i=i>>>0,l||G(i,4,this.length),this[i]|this[i+1]<<8|this[i+2]<<16|this[i+3]<<24},u.prototype.readInt32BE=function(i,l){return i=i>>>0,l||G(i,4,this.length),this[i]<<24|this[i+1]<<16|this[i+2]<<8|this[i+3]},u.prototype.readBigInt64LE=z(function(i){i=i>>>0,L(i,"offset");const l=this[i],c=this[i+7];(l===void 0||c===void 0)&&D(i,this.length-8);const g=this[i+4]+this[i+5]*2**8+this[i+6]*2**16+(c<<24);return(BigInt(g)<<BigInt(32))+BigInt(l+this[++i]*2**8+this[++i]*2**16+this[++i]*2**24)}),u.prototype.readBigInt64BE=z(function(i){i=i>>>0,L(i,"offset");const l=this[i],c=this[i+7];(l===void 0||c===void 0)&&D(i,this.length-8);const g=(l<<24)+this[++i]*2**16+this[++i]*2**8+this[++i];return(BigInt(g)<<BigInt(32))+BigInt(this[++i]*2**24+this[++i]*2**16+this[++i]*2**8+c)}),u.prototype.readFloatLE=function(i,l){return i=i>>>0,l||G(i,4,this.length),n.read(this,i,!0,23,4)},u.prototype.readFloatBE=function(i,l){return i=i>>>0,l||G(i,4,this.length),n.read(this,i,!1,23,4)},u.prototype.readDoubleLE=function(i,l){return i=i>>>0,l||G(i,8,this.length),n.read(this,i,!0,52,8)},u.prototype.readDoubleBE=function(i,l){return i=i>>>0,l||G(i,8,this.length),n.read(this,i,!1,52,8)};function re(i,l,c,g,_,E){if(!u.isBuffer(i))throw new TypeError('"buffer" argument must be a Buffer instance');if(l>_||l<E)throw new RangeError('"value" argument is out of bounds');if(c+g>i.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(i,l,c,g){if(i=+i,l=l>>>0,c=c>>>0,!g){const R=Math.pow(2,8*c)-1;re(this,i,l,c,R,0)}let _=1,E=0;for(this[l]=i&255;++E<c&&(_*=256);)this[l+E]=i/_&255;return l+c},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(i,l,c,g){if(i=+i,l=l>>>0,c=c>>>0,!g){const R=Math.pow(2,8*c)-1;re(this,i,l,c,R,0)}let _=c-1,E=1;for(this[l+_]=i&255;--_>=0&&(E*=256);)this[l+_]=i/E&255;return l+c},u.prototype.writeUint8=u.prototype.writeUInt8=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,1,255,0),this[l]=i&255,l+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,2,65535,0),this[l]=i&255,this[l+1]=i>>>8,l+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,2,65535,0),this[l]=i>>>8,this[l+1]=i&255,l+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,4,4294967295,0),this[l+3]=i>>>24,this[l+2]=i>>>16,this[l+1]=i>>>8,this[l]=i&255,l+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,4,4294967295,0),this[l]=i>>>24,this[l+1]=i>>>16,this[l+2]=i>>>8,this[l+3]=i&255,l+4};function Oe(i,l,c,g,_){K(l,g,_,i,c,7);let E=Number(l&BigInt(4294967295));i[c++]=E,E=E>>8,i[c++]=E,E=E>>8,i[c++]=E,E=E>>8,i[c++]=E;let R=Number(l>>BigInt(32)&BigInt(4294967295));return i[c++]=R,R=R>>8,i[c++]=R,R=R>>8,i[c++]=R,R=R>>8,i[c++]=R,c}function Ee(i,l,c,g,_){K(l,g,_,i,c,7);let E=Number(l&BigInt(4294967295));i[c+7]=E,E=E>>8,i[c+6]=E,E=E>>8,i[c+5]=E,E=E>>8,i[c+4]=E;let R=Number(l>>BigInt(32)&BigInt(4294967295));return i[c+3]=R,R=R>>8,i[c+2]=R,R=R>>8,i[c+1]=R,R=R>>8,i[c]=R,c+8}u.prototype.writeBigUInt64LE=z(function(i,l=0){return Oe(this,i,l,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=z(function(i,l=0){return Ee(this,i,l,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(i,l,c,g){if(i=+i,l=l>>>0,!g){const oe=Math.pow(2,8*c-1);re(this,i,l,c,oe-1,-oe)}let _=0,E=1,R=0;for(this[l]=i&255;++_<c&&(E*=256);)i<0&&R===0&&this[l+_-1]!==0&&(R=1),this[l+_]=(i/E>>0)-R&255;return l+c},u.prototype.writeIntBE=function(i,l,c,g){if(i=+i,l=l>>>0,!g){const oe=Math.pow(2,8*c-1);re(this,i,l,c,oe-1,-oe)}let _=c-1,E=1,R=0;for(this[l+_]=i&255;--_>=0&&(E*=256);)i<0&&R===0&&this[l+_+1]!==0&&(R=1),this[l+_]=(i/E>>0)-R&255;return l+c},u.prototype.writeInt8=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,1,127,-128),i<0&&(i=255+i+1),this[l]=i&255,l+1},u.prototype.writeInt16LE=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,2,32767,-32768),this[l]=i&255,this[l+1]=i>>>8,l+2},u.prototype.writeInt16BE=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,2,32767,-32768),this[l]=i>>>8,this[l+1]=i&255,l+2},u.prototype.writeInt32LE=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,4,2147483647,-2147483648),this[l]=i&255,this[l+1]=i>>>8,this[l+2]=i>>>16,this[l+3]=i>>>24,l+4},u.prototype.writeInt32BE=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,4,2147483647,-2147483648),i<0&&(i=4294967295+i+1),this[l]=i>>>24,this[l+1]=i>>>16,this[l+2]=i>>>8,this[l+3]=i&255,l+4},u.prototype.writeBigInt64LE=z(function(i,l=0){return Oe(this,i,l,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=z(function(i,l=0){return Ee(this,i,l,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Pe(i,l,c,g,_,E){if(c+g>i.length)throw new RangeError("Index out of range");if(c<0)throw new RangeError("Index out of range")}function Ae(i,l,c,g,_){return l=+l,c=c>>>0,_||Pe(i,l,c,4),n.write(i,l,c,g,23,4),c+4}u.prototype.writeFloatLE=function(i,l,c){return Ae(this,i,l,!0,c)},u.prototype.writeFloatBE=function(i,l,c){return Ae(this,i,l,!1,c)};function le(i,l,c,g,_){return l=+l,c=c>>>0,_||Pe(i,l,c,8),n.write(i,l,c,g,52,8),c+8}u.prototype.writeDoubleLE=function(i,l,c){return le(this,i,l,!0,c)},u.prototype.writeDoubleBE=function(i,l,c){return le(this,i,l,!1,c)},u.prototype.copy=function(i,l,c,g){if(!u.isBuffer(i))throw new TypeError("argument should be a Buffer");if(c||(c=0),!g&&g!==0&&(g=this.length),l>=i.length&&(l=i.length),l||(l=0),g>0&&g<c&&(g=c),g===c||i.length===0||this.length===0)return 0;if(l<0)throw new RangeError("targetStart out of bounds");if(c<0||c>=this.length)throw new RangeError("Index out of range");if(g<0)throw new RangeError("sourceEnd out of bounds");g>this.length&&(g=this.length),i.length-l<g-c&&(g=i.length-l+c);const _=g-c;return this===i&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(l,c,g):Uint8Array.prototype.set.call(i,this.subarray(c,g),l),_},u.prototype.fill=function(i,l,c,g){if(typeof i=="string"){if(typeof l=="string"?(g=l,l=0,c=this.length):typeof c=="string"&&(g=c,c=this.length),g!==void 0&&typeof g!="string")throw new TypeError("encoding must be a string");if(typeof g=="string"&&!u.isEncoding(g))throw new TypeError("Unknown encoding: "+g);if(i.length===1){const E=i.charCodeAt(0);(g==="utf8"&&E<128||g==="latin1")&&(i=E)}}else typeof i=="number"?i=i&255:typeof i=="boolean"&&(i=Number(i));if(l<0||this.length<l||this.length<c)throw new RangeError("Out of range index");if(c<=l)return this;l=l>>>0,c=c===void 0?this.length:c>>>0,i||(i=0);let _;if(typeof i=="number")for(_=l;_<c;++_)this[_]=i;else{const E=u.isBuffer(i)?i:u.from(i,g),R=E.length;if(R===0)throw new TypeError('The value "'+i+'" is invalid for argument "value"');for(_=0;_<c-l;++_)this[_+l]=E[_%R]}return this};const Q={};function P(i,l,c){Q[i]=class extends c{constructor(){super(),Object.defineProperty(this,"message",{value:l.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${i}]`,this.stack,delete this.name}get code(){return i}set code(g){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:g,writable:!0})}toString(){return`${this.name} [${i}]: ${this.message}`}}}P("ERR_BUFFER_OUT_OF_BOUNDS",function(i){return i?`${i} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),P("ERR_INVALID_ARG_TYPE",function(i,l){return`The "${i}" argument must be of type number. Received type ${typeof l}`},TypeError),P("ERR_OUT_OF_RANGE",function(i,l,c){let g=`The value of "${i}" is out of range.`,_=c;return Number.isInteger(c)&&Math.abs(c)>2**32?_=F(String(c)):typeof c=="bigint"&&(_=String(c),(c>BigInt(2)**BigInt(32)||c<-(BigInt(2)**BigInt(32)))&&(_=F(_)),_+="n"),g+=` It must be ${l}. Received ${_}`,g},RangeError);function F(i){let l="",c=i.length;const g=i[0]==="-"?1:0;for(;c>=g+4;c-=3)l=`_${i.slice(c-3,c)}${l}`;return`${i.slice(0,c)}${l}`}function B(i,l,c){L(l,"offset"),(i[l]===void 0||i[l+c]===void 0)&&D(l,i.length-(c+1))}function K(i,l,c,g,_,E){if(i>c||i<l){const R=typeof l=="bigint"?"n":"";let oe;throw l===0||l===BigInt(0)?oe=`>= 0${R} and < 2${R} ** ${(E+1)*8}${R}`:oe=`>= -(2${R} ** ${(E+1)*8-1}${R}) and < 2 ** ${(E+1)*8-1}${R}`,new Q.ERR_OUT_OF_RANGE("value",oe,i)}B(g,_,E)}function L(i,l){if(typeof i!="number")throw new Q.ERR_INVALID_ARG_TYPE(l,"number",i)}function D(i,l,c){throw Math.floor(i)!==i?(L(i,c),new Q.ERR_OUT_OF_RANGE("offset","an integer",i)):l<0?new Q.ERR_BUFFER_OUT_OF_BOUNDS:new Q.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${l}`,i)}const se=/[^+/0-9A-Za-z-_]/g;function ve(i){if(i=i.split("=")[0],i=i.trim().replace(se,""),i.length<2)return"";for(;i.length%4!==0;)i=i+"=";return i}function de(i,l){l=l||1/0;let c;const g=i.length;let _=null;const E=[];for(let R=0;R<g;++R){if(c=i.charCodeAt(R),c>55295&&c<57344){if(!_){if(c>56319){(l-=3)>-1&&E.push(239,191,189);continue}else if(R+1===g){(l-=3)>-1&&E.push(239,191,189);continue}_=c;continue}if(c<56320){(l-=3)>-1&&E.push(239,191,189),_=c;continue}c=(_-55296<<10|c-56320)+65536}else _&&(l-=3)>-1&&E.push(239,191,189);if(_=null,c<128){if((l-=1)<0)break;E.push(c)}else if(c<2048){if((l-=2)<0)break;E.push(c>>6|192,c&63|128)}else if(c<65536){if((l-=3)<0)break;E.push(c>>12|224,c>>6&63|128,c&63|128)}else if(c<1114112){if((l-=4)<0)break;E.push(c>>18|240,c>>12&63|128,c>>6&63|128,c&63|128)}else throw new Error("Invalid code point")}return E}function _e(i){const l=[];for(let c=0;c<i.length;++c)l.push(i.charCodeAt(c)&255);return l}function Se(i,l){let c,g,_;const E=[];for(let R=0;R<i.length&&!((l-=2)<0);++R)c=i.charCodeAt(R),g=c>>8,_=c%256,E.push(_),E.push(g);return E}function pe(i){return t.toByteArray(ve(i))}function ge(i,l,c,g){let _;for(_=0;_<g&&!(_+c>=l.length||_>=i.length);++_)l[_+c]=i[_];return _}function fe(i,l){return i instanceof l||i!=null&&i.constructor!=null&&i.constructor.name!=null&&i.constructor.name===l.name}function Ce(i){return i!==i}const H=(function(){const i="0123456789abcdef",l=new Array(256);for(let c=0;c<16;++c){const g=c*16;for(let _=0;_<16;++_)l[g+_]=i[c]+i[_]}return l})();function z(i){return typeof BigInt>"u"?ee:i}function ee(){throw new Error("BigInt not supported")}})(q4);var z4={exports:{}},Kt=z4.exports={},Nr,Dr;function Uv(){throw new Error("setTimeout has not been defined")}function Hv(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Nr=setTimeout:Nr=Uv}catch{Nr=Uv}try{typeof clearTimeout=="function"?Dr=clearTimeout:Dr=Hv}catch{Dr=Hv}})();function G4(e){if(Nr===setTimeout)return setTimeout(e,0);if((Nr===Uv||!Nr)&&setTimeout)return Nr=setTimeout,setTimeout(e,0);try{return Nr(e,0)}catch{try{return Nr.call(null,e,0)}catch{return Nr.call(this,e,0)}}}function see(e){if(Dr===clearTimeout)return clearTimeout(e);if((Dr===Hv||!Dr)&&clearTimeout)return Dr=clearTimeout,clearTimeout(e);try{return Dr(e)}catch{try{return Dr.call(null,e)}catch{return Dr.call(this,e)}}}var To=[],Ga=!1,ls,qd=-1;function aee(){!Ga||!ls||(Ga=!1,ls.length?To=ls.concat(To):qd=-1,To.length&&Y4())}function Y4(){if(!Ga){var e=G4(aee);Ga=!0;for(var t=To.length;t;){for(ls=To,To=[];++qd<t;)ls&&ls[qd].run();qd=-1,t=To.length}ls=null,Ga=!1,see(e)}}Kt.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];To.push(new K4(e,t)),To.length===1&&!Ga&&G4(Y4)};function K4(e,t){this.fun=e,this.array=t}K4.prototype.run=function(){this.fun.apply(null,this.array)};Kt.title="browser";Kt.browser=!0;Kt.env={};Kt.argv=[];Kt.version="";Kt.versions={};function jo(){}Kt.on=jo;Kt.addListener=jo;Kt.once=jo;Kt.off=jo;Kt.removeListener=jo;Kt.removeAllListeners=jo;Kt.emit=jo;
53Kt.prependListener=jo;Kt.prependOnceListener=jo;Kt.listeners=function(e){return[]};Kt.binding=function(e){throw new Error("process.binding is not supported")};Kt.cwd=function(){return"/"};Kt.chdir=function(e){throw new Error("process.chdir is not supported")};Kt.umask=function(){return 0};var uee=z4.exports;(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=q4,n=uee,r=a=>a&&a.__esModule?a:{default:a},o=r(n),s=globalThis||void 0||self;Object.defineProperty(e,"Buffer",{enumerable:!0,get:()=>t.Buffer}),Object.defineProperty(e,"process",{enumerable:!0,get:()=>o.default}),e.global=s})(Vd);var HS;(function(e){(function(t){var n=typeof US=="object"?US:typeof self=="object"?self:typeof this=="object"?this:Function("return this;")(),r=o(e);typeof n.Reflect>"u"?n.Reflect=e:r=o(n.Reflect,r),t(r);function o(s,a){return function(u,f){typeof s[u]!="function"&&Object.defineProperty(s,u,{configurable:!0,writable:!0,value:f}),a&&a(u,f)}}})(function(t){var n=Object.prototype.hasOwnProperty,r=typeof Symbol=="function",o=r&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",s=r&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",a=typeof Object.create=="function",u={__proto__:[]}instanceof Array,f=!a&&!u,d={create:a?function(){return Ce(Object.create(null))}:u?function(){return Ce({__proto__:null})}:function(){return Ce({})},has:f?function(H,z){return n.call(H,z)}:function(H,z){return z in H},get:f?function(H,z){return n.call(H,z)?H[z]:void 0}:function(H,z){return H[z]}},p=Object.getPrototypeOf(Function),h=typeof Vd.process=="object"&&Vd.process.env&&Vd.process.env.REFLECT_METADATA_USE_MAP_POLYFILL==="true",y=!h&&typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:pe(),m=!h&&typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:ge(),v=!h&&typeof WeakMap=="function"?WeakMap:fe(),b=new v;function S(H,z,ee,i){if(G(ee)){if(!F(H))throw new TypeError;if(!K(z))throw new TypeError;return M(H,z)}else{if(!F(H))throw new TypeError;if(!Ee(z))throw new TypeError;if(!Ee(i)&&!G(i)&&!re(i))throw new TypeError;return re(i)&&(i=void 0),ee=P(ee),j(H,z,ee,i)}}t("decorate",S);function w(H,z){function ee(i,l){if(!Ee(i))throw new TypeError;if(!G(l)&&!L(l))throw new TypeError;ae(H,z,i,l)}return ee}t("metadata",w);function T(H,z,ee,i){if(!Ee(ee))throw new TypeError;return G(i)||(i=P(i)),ae(H,z,ee,i)}t("defineMetadata",T);function I(H,z,ee){if(!Ee(z))throw new TypeError;return G(ee)||(ee=P(ee)),W(H,z,ee)}t("hasMetadata",I);function C(H,z,ee){if(!Ee(z))throw new TypeError;return G(ee)||(ee=P(ee)),Y(H,z,ee)}t("hasOwnMetadata",C);function A(H,z,ee){if(!Ee(z))throw new TypeError;return G(ee)||(ee=P(ee)),ne(H,z,ee)}t("getMetadata",A);function $(H,z,ee){if(!Ee(z))throw new TypeError;return G(ee)||(ee=P(ee)),Z(H,z,ee)}t("getOwnMetadata",$);function k(H,z){if(!Ee(H))throw new TypeError;return G(z)||(z=P(z)),ce(H,z)}t("getMetadataKeys",k);function x(H,z){if(!Ee(H))throw new TypeError;return G(z)||(z=P(z)),q(H,z)}t("getOwnMetadataKeys",x);function O(H,z,ee){if(!Ee(z))throw new TypeError;G(ee)||(ee=P(ee));var i=V(z,ee,!1);if(G(i)||!i.delete(H))return!1;if(i.size>0)return!0;var l=b.get(z);return l.delete(ee),l.size>0||b.delete(z),!0}t("deleteMetadata",O);function M(H,z){for(var ee=H.length-1;ee>=0;--ee){var i=H[ee],l=i(z);if(!G(l)&&!re(l)){if(!K(l))throw new TypeError;z=l}}return z}function j(H,z,ee,i){for(var l=H.length-1;l>=0;--l){var c=H[l],g=c(z,ee,i);if(!G(g)&&!re(g)){if(!Ee(g))throw new TypeError;i=g}}return i}function V(H,z,ee){var i=b.get(H);if(G(i)){if(!ee)return;i=new y,b.set(H,i)}var l=i.get(z);if(G(l)){if(!ee)return;l=new y,i.set(z,l)}return l}function W(H,z,ee){var i=Y(H,z,ee);if(i)return!0;var l=Se(z);return re(l)?!1:W(H,l,ee)}function Y(H,z,ee){var i=V(z,ee,!1);return G(i)?!1:le(i.has(H))}function ne(H,z,ee){var i=Y(H,z,ee);if(i)return Z(H,z,ee);var l=Se(z);if(!re(l))return ne(H,l,ee)}function Z(H,z,ee){var i=V(z,ee,!1);if(!G(i))return i.get(H)}function ae(H,z,ee,i){var l=V(ee,i,!0);l.set(H,z)}function ce(H,z){var ee=q(H,z),i=Se(H);if(i===null)return ee;var l=ce(i,z);if(l.length<=0)return ee;if(ee.length<=0)return l;for(var c=new m,g=[],_=0,E=ee;_<E.length;_++){var R=E[_],oe=c.has(R);
vendor: 6,188 bytes, line 53
53oe||(c.add(R),g.push(R))}for(var $e=0,me=l;$e<me.length;$e++){var R=me[$e],oe=c.has(R);oe||(c.add(R),g.push(R))}return g}function q(H,z){var ee=[],i=V(H,z,!1);if(G(i))return ee;for(var l=i.keys(),c=se(l),g=0;;){var _=de(c);if(!_)return ee.length=g,ee;var E=ve(_);try{ee[g]=E}catch(R){try{_e(c)}finally{throw R}}g++}}function ue(H){if(H===null)return 1;switch(typeof H){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return H===null?1:6;default:return 6}}function G(H){return H===void 0}function re(H){return H===null}function Oe(H){return typeof H=="symbol"}function Ee(H){return typeof H=="object"?H!==null:typeof H=="function"}function Pe(H,z){switch(ue(H)){case 0:return H;case 1:return H;case 2:return H;case 3:return H;case 4:return H;case 5:return H}var ee="string",i=D(H,o);if(i!==void 0){var l=i.call(H,ee);if(Ee(l))throw new TypeError;return l}return Ae(H)}function Ae(H,z){var ee,i;{var l=H.toString;if(B(l)){var i=l.call(H);if(!Ee(i))return i}var ee=H.valueOf;if(B(ee)){var i=ee.call(H);if(!Ee(i))return i}}throw new TypeError}function le(H){return!!H}function Q(H){return""+H}function P(H){var z=Pe(H);return Oe(z)?z:Q(z)}function F(H){return Array.isArray?Array.isArray(H):H instanceof Object?H instanceof Array:Object.prototype.toString.call(H)==="[object Array]"}function B(H){return typeof H=="function"}function K(H){return typeof H=="function"}function L(H){switch(ue(H)){case 3:return!0;case 4:return!0;default:return!1}}function D(H,z){var ee=H[z];if(ee!=null){if(!B(ee))throw new TypeError;return ee}}function se(H){var z=D(H,s);if(!B(z))throw new TypeError;var ee=z.call(H);if(!Ee(ee))throw new TypeError;return ee}function ve(H){return H.value}function de(H){var z=H.next();return z.done?!1:z}function _e(H){var z=H.return;z&&z.call(H)}function Se(H){var z=Object.getPrototypeOf(H);if(typeof H!="function"||H===p||z!==p)return z;var ee=H.prototype,i=ee&&Object.getPrototypeOf(ee);if(i==null||i===Object.prototype)return z;var l=i.constructor;return typeof l!="function"||l===H?z:l}function pe(){var H={},z=[],ee=(function(){function g(_,E,R){this._index=0,this._keys=_,this._values=E,this._selector=R}return g.prototype["@@iterator"]=function(){return this},g.prototype[s]=function(){return this},g.prototype.next=function(){var _=this._index;if(_>=0&&_<this._keys.length){var E=this._selector(this._keys[_],this._values[_]);return _+1>=this._keys.length?(this._index=-1,this._keys=z,this._values=z):this._index++,{value:E,done:!1}}return{value:void 0,done:!0}},g.prototype.throw=function(_){throw this._index>=0&&(this._index=-1,this._keys=z,this._values=z),_},g.prototype.return=function(_){return this._index>=0&&(this._index=-1,this._keys=z,this._values=z),{value:_,done:!0}},g})();return(function(){function g(){this._keys=[],this._values=[],this._cacheKey=H,this._cacheIndex=-2}return Object.defineProperty(g.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),g.prototype.has=function(_){return this._find(_,!1)>=0},g.prototype.get=function(_){var E=this._find(_,!1);return E>=0?this._values[E]:void 0},g.prototype.set=function(_,E){var R=this._find(_,!0);return this._values[R]=E,this},g.prototype.delete=function(_){var E=this._find(_,!1);if(E>=0){for(var R=this._keys.length,oe=E+1;oe<R;oe++)this._keys[oe-1]=this._keys[oe],this._values[oe-1]=this._values[oe];return this._keys.length--,this._values.length--,_===this._cacheKey&&(this._cacheKey=H,this._cacheIndex=-2),!0}return!1},g.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=H,this._cacheIndex=-2},g.prototype.keys=function(){return new ee(this._keys,this._values,i)},g.prototype.values=function(){return new ee(this._keys,this._values,l)},g.prototype.entries=function(){return new ee(this._keys,this._values,c)},g.prototype["@@iterator"]=function(){return this.entries()},g.prototype[s]=function(){return this.entries()},g.prototype._find=function(_,E){return this._cacheKey!==_&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=_)),this._cacheIndex<0&&E&&(this._cacheIndex=this._keys.length,this._keys.push(_),this._values.push(void 0)),this._cacheIndex},g})();function i(g,_){return g}function l(g,_){return _}function c(g,_){return[g,_]}}function ge(){return(function(){function H(){this._map=new y}return Object.defineProperty(H.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),H.prototype.has=function(z){return this._map.has(z)},H.prototype.add=function(z){return this._map.set(z,z),this},H.prototype.delete=function(z){return this._map.delete(z)},H.prototype.clear=function(){this._map.clear()},H.prototype.keys=function(){return this._map.keys()},H.prototype.values=function(){return this._map.values()},H.prototype.entries=function(){return this._map.entries()},H.prototype["@@iterator"]=function(){return this.keys()},H.prototype[s]=function(){return this.keys()},H})()}function fe(){var H=16,z=d.create(),ee=i();return(function(){function E(){this._key=i()}return E.prototype.has=function(R){var oe=l(R,!1);return oe!==void 0?d.has(oe,this._key):!1},E.prototype.get=function(R){var oe=l(R,!1);return oe!==void 0?d.get(oe,this._key):void 0},E.prototype.set=function(R,oe){var $e=l(R,!0);return $e[this._key]=oe,this},E.prototype.delete=function(R){var oe=l(R,!1);return oe!==void 0?delete oe[this._key]:!1},E.prototype.clear=function(){this._key=i()},E})();function i(){var E;do E="@@WeakMap@@"+_();while(d.has(z,E));return z[E]=!0,E}function l(E,R){if(!n.call(E,ee)){if(!R)return;Object.defineProperty(E,ee,{value:d.create()})}return E[ee]}function c(E,R){for(var oe=0;oe<R;++oe)E[oe]=Math.random()*255|0;return E}function g(E){return typeof Uint8Array=="function"?typeof crypto<"u"?crypto.getRandomValues(new Uint8Array(E)):typeof msCrypto<"u"?msCrypto.getRandomValues(new Uint8Array(E)):c(new Uint8Array(E),E):c(new Array(E),E)}function _(){var E=g(H);E[6]=E[6]&79|64,E[8]=E[8]&191|128;for(var R="",oe=0;oe<H;++oe){var $e=E[oe];(oe===4||oe===6||oe===8)&&(R+="-"),$e<16&&(R+="0"),R+=$e.toString(16).toLowerCase()}return R}}function Ce(H){return H.__=void 0,delete H.__,H}})})(HS||(HS={}));
53let lee=class extends Error{constructor(t){super(`[Inject] ${t}`)}};const FS=new WeakMap([[Array,Symbol(Array.name)]]),Ef=e=>{if(typeof e=="symbol")return e;if(typeof e=="string")return Symbol(e);if(e.prototype){let t=FS.get(e);return t||(t=Symbol(e.name),FS.set(e,t)),t}throw new lee(`Тип знаÑÐµÐ½Ð¸Ñ ${typeof e} не поддеÑживаеÑÑÑ Ð´Ð»Ñ Ñокенов.`)},cee="www",fee="m",hm="ru";function Z4(e=!1){if(typeof window>"u")return hm;const t=window.location.hostname.match(/m?\.?(www|cyber|m)\.?([^.]*)\.(sports.ru)/);if(e)return t?!!t[2]:!0;if(t)switch(t[1]){case cee:case fee:return hm;default:return t[1]}return hm}Ef("CURRENT_SITE");Ef("IS_CURRENT_SITE_DEV");Ef("REFERRER");Ef("LOCATION");Ef("IS_MOBILE");Z4();Z4(!0);const jS=`https://www.${NX()}sports.ru/photobooth/images/`,ybe={[Pv.URL]:`${jS}upload_by_url/`,[Pv.FILE]:jS},vbe="wysiwyg",_be=10*1024*1024,bbe="ÐзобÑажение не должно пÑевÑÑаÑÑ 10 ÐРв ÑоÑмаÑаÑ
png, jpg, jpeg, heic",dee=xe({__name:"ThemedAnimatedBadge",props:{themeToUrl:{type:Object,required:!0},description:{type:String,required:!0},autoplay:{type:Boolean,default:!1},name:{type:String,default:""},loop:{type:Boolean,default:!0},renderer:{type:String,default:S_.SVG}},setup(e){const t=e,{theme:n}=BX(),r=J(()=>t?.themeToUrl?.[n?.value??"light"]);return(o,s)=>r.value?(U(),we(N(x4),un({key:0},o.$attrs,{path:r.value,"data-test":"animated-badge",class:"author-animated-badge"}),null,16,["path"])):Ie("",!0)}}),pee=yt(dee,[["__scopeId","data-v-309c6b7b"]]);var Q4=(e=>(e.NEUTRAL="neutral",e.SUCCESS="success",e.NEGATIVE="negative",e))(Q4||{});const hee={},gee={class:"close-button"};function mee(e,t){return U(),X("button",gee)}const yee=yt(hee,[["render",mee]]),vee={class:"notification-message-wrapper__content"},_ee=xe({__name:"NotificationMessageWrapper",props:{messageStatus:{type:String,default:Q4.NEUTRAL},duration:{type:Number,default:0},hasProgress:{type:Boolean,default:!0}},emits:["closed"],setup(e,{emit:t}){const n=e,r=t,o=ie(!1),s=J(()=>`notification-message-wrapper--${n.messageStatus}`),a=gc(200),u=gc(n.duration),f=()=>{o.value=!1,r("closed")},d=()=>{o.value&&f()};return We(()=>{a.startTimeout(()=>o.value=!0),!(n.duration<=0||n.hasProgress)&&u.startTimeout(()=>f())}),(p,h)=>(U(),X("div",{class:Be(["notification-message-wrapper",[s.value,{"notification-message-wrapper--visible":o.value}]])},[e.duration&&e.hasProgress?(U(),X("div",{key:0,class:"notification-message-wrapper__progress",style:at({"animation-duration":`${e.duration}ms`}),onAnimationend:d},null,36)):Ie("",!0),te("div",vee,[De(p.$slots,"content",{closeMessage:f})]),ye(yee,{class:"notification-message-wrapper__button",onClick:f})],2))}}),bee={class:"custom-notification__content"},wee={class:"ui-body-sm-regular"},Eee=["onClick"],See=xe({__name:"CustomNotification",props:{actionCallback:{type:Function,default:null},actionText:{type:String,default:"ÐÑмениÑÑ"},text:{type:String,default:""},duration:{type:Number,default:7e3}},setup(e){const t=e,n=r=>{t.actionCallback(),r()};return(r,o)=>(U(),we(_ee,{duration:e.duration,class:"custom-notification"},{content:be(({closeMessage:s})=>[te("div",bee,[te("div",wee,Ue(e.text),1),te("span",{class:"custom-notification__action-link ui-body-sm-medium",onClick:a=>n(s)},Ue(e.actionText),9,Eee)])]),_:1},8,["duration"]))}}),$ee=yt(See,[["__scopeId","data-v-4f84940a"]]),Tee={},Iee={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Aee(e,t){return U(),X("svg",Iee,t[0]||(t[0]=[te("path",{d:"M12 15.75L6 9.66892L7.4 8.25L12 12.9122L16.6 8.25L18 9.66892L12 15.75Z",fill:"currentColor"},null,-1)]))}const xee=Un(Tee,[["render",Aee]]),Cee={class:"infinite-scroll"},Ree=xe({__name:"InfiniteScroll",props:{rootMargin:{type:Number,default:200}},emits:["load-more"],setup(e,{emit:t}){const n=e,r=t,o=ie(null);return We(()=>{if(!o.value)return;const s=new IntersectionObserver(a=>{a[0].isIntersecting&&r("load-more")},{rootMargin:`${n.rootMargin}px`});o.value&&s.observe(o.value),bt(()=>{s.disconnect()})}),(s,a)=>(U(),X("div",Cee,[De(s.$slots,"list",{},void 0,!0),te("div",{ref_key:"loadMoreItemsRef",ref:o,class:"infinite-scroll__target"},null,512)]))}}),J4=yt(Ree,[["__scopeId","data-v-641b49a2"]]),Oee={},kee={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Lee(e,t){return U(),X("svg",kee,t[0]||(t[0]=[te("path",{d:"M14.3311 18L8.25 12L14.3311 6L15.75 7.4L11.0878 12L15.75 16.6L14.3311 18Z",fill:"currentColor"},null,-1)]))}const Mee=Un(Oee,[["render",Lee]]),Pee={},Bee={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Nee(e,t){return U(),X("svg",Bee,t[0]||(t[0]=[te("path",{d:"M12.9122 12L8.25 7.4L9.66892 6L15.75 12L9.66892 18L8.25 16.6L12.9122 12Z",fill:"currentColor"},null,-1)]))}const Dee=Un(Pee,[["render",Nee]]),X4="page",Uee={class:"pagination-links"},Hee=xe({__name:"PaginationLinks",props:{currentPage:{type:Number,default:1},perPage:{type:Number,default:10},totalCount:{type:Number,default:0},hasMore:{type:Boolean,default:!1},baseRoute:{type:String,default:"/"},pagePrefix:{type:String,default:X4},pagesToShow:{type:Number,default:5},calcLinkPaginationSeoTitle:{type:Function,default:void 0}},setup(e){const t=e,n=u=>u>1?`${`${t.baseRoute}${t.baseRoute.endsWith("/")?"":"/"}`}?${t.pagePrefix}=${u}`:t.baseRoute,r=u=>u===t.currentPage,o=()=>t.perPage&&t.totalCount?Math.ceil(t.totalCount/t.perPage):0,s=()=>Math.ceil(t.pagesToShow/2),a=()=>{const u=o();if(!u)return[];const f=s();return u<=t.pagesToShow?Array.from({length:u},(d,p)=>p+1):t.currentPage<=f?Array.from({length:t.pagesToShow},(d,p)=>p+1):t.currentPage>u-f?Array.from({length:t.pagesToShow},(d,p)=>p+1+u-t.pagesToShow):Array.from({length:t.pagesToShow},(d,p)=>p+1+t.currentPage-f)};return(u,f)=>{const d=kk("router-link");return U(),X("div",Uee,[e.currentPage>1?(U(),we(d,{key:0,class:"pagination-links__button",to:n(Number(e.currentPage)-1)},{default:be(()=>[ye(N(Mee))]),_:1},8,["to"])):Ie("",!0),(U(!0),X(He,null,dt(a(),p=>(U(),we(d,{key:p,class:Be(["pagination-links__button",{"pagination-links__button--active":r(p)}]),to:n(p),title:e.calcLinkPaginationSeoTitle?.(p)},{default:be(()=>[mt(Ue(p),1)]),_:2},1032,["class","to","title"]))),128)),e.hasMore?(U(),we(d,{key:1,class:"pagination-links__button",to:n(Number(e.currentPage)+1)},{default:be(()=>[ye(N(Dee))]),_:1},8,["to"])):Ie("",!0)])}}}),Fee=yt(Hee,[["__scopeId","data-v-aacd70e2"]]),jee={class:"pagination-wrapper"},Vee={key:1,class:"pagination-wrapper__button-more-wrapper","data-test":"show-more"},qee=xe({__name:"Pagination",props:{currentPage:{type:Number,default:1},perPage:{type:Number,default:10},totalCount:{type:Number,default:0},isLoading:{type:Boolean,default:!1},hasMore:{type:Boolean,default:!1},showPagination:{type:Boolean,default:!0},showPaginationLinks:{type:Boolean,default:!1},pagePrefix:{type:String,default:X4},baseUrl:{type:String,default:"/"},pagesToShow:{type:Number,default:5},calcLinkPaginationSeoTitle:{type:Function,default:void 0},showMoreButton:{type:Boolean,default:!1},moreText:{type:String,default:"ÐоказаÑÑ ÐµÑе"},showIcon:{type:Boolean,default:!0}},emits:["load-more"],setup(e,{emit:t}){const n=e,r=t,{isLoading:o,hasMore:s,showMoreButton:a,showPaginationLinks:u}=Hc(n),f=ie(!1),d=ie(!1),p=()=>{f.value=!1,r("load-more")},h=()=>{o.value||f.value||!s.value||a.value||u.value||r("load-more")};return We(()=>{d.value=s.value&&n.showPagination}),(y,m)=>(U(),X("div",jee,[ye(J4,{onLoadMore:h},{list:be(()=>[De(y.$slots,"list",{},void 0,!0)]),_:3}),N(o)?(U(),we(N(o_),{key:0,class:"pagination-wrapper__loader"})):Ie("",!0),(N(a)||f.value)&&!N(o)&&d.value?(U(),X("div",Vee,[ye(N(St),{class:"ui-button-lowercase pagination-wrapper__button-more",size:N(ot).MD,variant:N(pt).SECONDARY,color:N(ut).DEFAULT,"full-width":"",onClick:p},gr({default:be(()=>[mt(Ue(e.moreText)+" ",1)]),_:2},[e.showIcon?{name:"iconRight",fn:be(()=>[ye(N(xee),{class:"pagination-wrapper__icon-more"})]),key:"0"}
53:void 0]),1032,["size","variant","color"])])):Ie("",!0),e.showPagination&&N(u)?(U(),we(Fee,{key:2,"current-page":e.currentPage,"per-page":e.perPage,"total-count":e.totalCount,"has-more":N(s),"base-route":e.baseUrl,"page-prefix":e.pagePrefix,"calc-link-pagination-seo-title":e.calcLinkPaginationSeoTitle},null,8,["current-page","per-page","total-count","has-more","base-route","page-prefix","calc-link-pagination-seo-title"])):Ie("",!0)]))}}),Wee=yt(qee,[["__scopeId","data-v-83c61c18"]]),zee=xe({__name:"DiffRating",props:{diffRating:{type:Number,default:0}},setup(e){const t=e,n=J(()=>t.diffRating>0?`+${t.diffRating}`:t.diffRating);return(r,o)=>(U(),X("span",{class:Be(["diff-rating",{"diff-rating--red":e.diffRating<0,"diff-rating--green":e.diffRating>0}])},Ue(n.value),3))}}),Gee=yt(zee,[["__scopeId","data-v-5baa86bf"]]),Yee={},Kee={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Zee(e,t){return U(),X("svg",Kee,t[0]||(t[0]=[te("path",{d:"M9 13.75C6.66 13.75 2 14.92 2 17.25V19H16V17.25C16 14.92 11.34 13.75 9 13.75ZM4.34 17C5.18 16.42 7.21 15.75 9 15.75C10.79 15.75 12.82 16.42 13.66 17H4.34ZM9 12C10.93 12 12.5 10.43 12.5 8.5C12.5 6.57 10.93 5 9 5C7.07 5 5.5 6.57 5.5 8.5C5.5 10.43 7.07 12 9 12ZM9 7C9.83 7 10.5 7.67 10.5 8.5C10.5 9.33 9.83 10 9 10C8.17 10 7.5 9.33 7.5 8.5C7.5 7.67 8.17 7 9 7ZM16.04 13.81C17.2 14.65 18 15.77 18 17.25V19H22V17.25C22 15.23 18.5 14.08 16.04 13.81ZM15 12C16.93 12 18.5 10.43 18.5 8.5C18.5 6.57 16.93 5 15 5C14.46 5 13.96 5.13 13.5 5.35C14.13 6.24 14.5 7.33 14.5 8.5C14.5 9.67 14.13 10.76 13.5 11.65C13.96 11.87 14.46 12 15 12Z",fill:"currentColor"},null,-1)]))}const Qee=Un(Yee,[["render",Zee]]),Jee=xe({__name:"SubscribersCount",props:{value:{type:Number,default:0},size:{type:String,default:"sm"}},setup(e){const t=e,n=new Intl.NumberFormat("ru-RU"),r=J(()=>n.format(t.value));return(o,s)=>(U(),X("span",{"data-test":"subscribers-count",class:Be(["ui-caption-lg subscribers-count",`subscribers-count--${e.size}`])},[ye(N(Qee),{class:"subscribers-count__icon"}),mt(" "+Ue(r.value),1)],2))}}),Xee=yt(Jee,[["__scopeId","data-v-1a6f8246"]]);function eR(e){return Gs()?(Do(e),!0):!1}const tR=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ete=Object.prototype.toString,tte=e=>ete.call(e)==="[object Object]",ts=()=>{},Fv=nte();function nte(){var e,t;return tR&&((e=window?.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window?.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function gm(e){return Array.isArray(e)?e:[e]}function rte(...e){if(e.length!==1)return xt(...e);const t=e[0];return typeof t=="function"?Uc(hh(()=>({get:t,set:ts}))):ie(t)}function ote(e,t,n){return ke(e,t,{...n,immediate:!0})}const nR=tR?window:void 0;function yl(e){var t;const n=qe(e);return(t=n?.$el)!=null?t:n}function Ta(...e){const t=[],n=()=>{t.forEach(u=>u()),t.length=0},r=(u,f,d,p)=>(u.addEventListener(f,d,p),()=>u.removeEventListener(f,d,p)),o=J(()=>{const u=gm(qe(e[0])).filter(f=>f!=null);return u.every(f=>typeof f!="string")?u:void 0}),s=ote(()=>{var u,f;return[(f=(u=o.value)==null?void 0:u.map(d=>yl(d)))!=null?f:[nR].filter(d=>d!=null),gm(qe(o.value?e[1]:e[0])),gm(N(o.value?e[2]:e[1])),qe(o.value?e[3]:e[2])]},([u,f,d,p])=>{if(n(),!u?.length||!f?.length||!d?.length)return;const h=tte(p)?{...p}:p;t.push(...u.flatMap(y=>f.flatMap(m=>d.map(v=>r(y,m,v,h)))))},{flush:"post"}),a=()=>{s(),n()};return eR(n),a}let VS=!1;function qS(e,t,n={}){const{window:r=nR,ignore:o=[],capture:s=!0,detectIframe:a=!1,controls:u=!1}=n;if(!r)return u?{stop:ts,cancel:ts,trigger:ts}:ts;if(Fv&&!VS){VS=!0;const S={passive:!0};Array.from(r.document.body.children).forEach(w=>Ta(w,"click",ts,S)),Ta(r.document.documentElement,"click",ts,S)}let f=!0;const d=S=>qe(o).some(w=>{if(typeof w=="string")return Array.from(r.document.querySelectorAll(w)).some(T=>T===S.target||S.composedPath().includes(T));{const T=yl(w);return T&&(S.target===T||S.composedPath().includes(T))}});function p(S){const w=qe(S);return w&&w.$.subTree.shapeFlag===16}function h(S,w){const T=qe(S),I=T.$.subTree&&T.$.subTree.children;return I==null||!Array.isArray(I)?!1:I.some(C=>C.el===w.target||w.composedPath().includes(C.el))}const y=S=>{const w=yl(e);if(S.target!=null&&!(!(w instanceof Element)&&p(e)&&h(e,S))&&!(!w||w===S.target||S.composedPath().includes(w))){if("detail"in S&&S.detail===0&&(f=!d(S)),!f){f=!0;return}t(S)}};let m=!1;const v=[Ta(r,"click",S=>{m||(m=!0,setTimeout(()=>{m=!1},0),y(S))},{passive:!0,capture:s}),Ta(r,"pointerdown",S=>{const w=yl(e);f=!d(S)&&!!(w&&!S.composedPath().includes(w))},{passive:!0}),a&&Ta(r,"blur",S=>{setTimeout(()=>{var w;const T=yl(e);((w=r.document.activeElement)==null?void 0:w.tagName)==="IFRAME"&&!T?.contains(r.document.activeElement)&&t(S)},0)},{passive:!0}
53)].filter(Boolean),b=()=>v.forEach(S=>S());return u?{stop:b,cancel:()=>{f=!1},trigger:S=>{f=!0,y(S),f=!1}}:b}const ite={mounted(e,t){const n=!t.modifiers.bubble;if(typeof t.value=="function")e.__onClickOutside_stop=qS(e,t.value,{capture:n});else{const[r,o]=t.value;e.__onClickOutside_stop=qS(e,r,Object.assign({capture:n},o))}},unmounted(e){e.__onClickOutside_stop()}};function mm(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function rR(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const n=e.parentNode;return!n||n.tagName==="BODY"?!1:rR(n)}}function ste(e){const t=e||window.event,n=t.target;return rR(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const ym=new WeakMap;function ate(e,t=!1){const n=en(t);let r=null,o="";ke(rte(e),u=>{const f=mm(qe(u));if(f){const d=f;if(ym.get(d)||ym.set(d,d.style.overflow),d.style.overflow!=="hidden"&&(o=d.style.overflow),d.style.overflow==="hidden")return n.value=!0;if(n.value)return d.style.overflow="hidden"}},{immediate:!0});const s=()=>{const u=mm(qe(e));!u||n.value||(Fv&&(r=Ta(u,"touchmove",f=>{ste(f)},{passive:!1})),u.style.overflow="hidden",n.value=!0)},a=()=>{const u=mm(qe(e));!u||!n.value||(Fv&&r?.(),u.style.overflow=o,ym.delete(u),n.value=!1)};return eR(a),J({get(){return n.value},set(u){u?s():a()}})}function ute(){let e=!1;const t=en(!1);return(n,r)=>{if(t.value=r.value,e)return;e=!0;const o=ate(n,r.value);ke(t,s=>o.value=s)}}ute();const lte=xe({__name:"ClientOnlyTeleport",props:{to:{type:String,required:!0}},setup(e){const t=ie(!1);return We(()=>{t.value=!0}),(n,r)=>t.value?(U(),we(F1,{key:0,to:e.to},[De(n.$slots,"default")],8,["to"])):Ie("",!0)}});var Wd=(e=>(e.LEFT="left",e.RIGHT="right",e))(Wd||{});let Xi=0;const oR=()=>{let e;return We(()=>{e=document.body}),{toggleBodyLock:t=>{e&&(Xi=t?Xi+1:Xi-1,Xi=Xi<0?0:Xi,e.style.overflow=Xi?"hidden":"")}}},cte=()=>{let e=0;const t=ie(0),n=ie(!1),r=ie([]),o=s=>Math.floor(e-s);return{isOnDrag:n,yDiff:t,onTouchStart:s=>{n.value=!0,e=s.changedTouches[0].clientY},onTouchMove:s=>{t.value=o(s.changedTouches[0].clientY)},onTouchEnd:()=>{n.value=!1,e=0,r.value.forEach(s=>s(t.value)),t.value=0},runOnTouchEnd:s=>(r.value.push(s),()=>{r.value=r.value.filter(a=>a!==s)})}},fte=20,dte=({close:e})=>{const{isOnDrag:t,yDiff:n,onTouchStart:r,onTouchMove:o,onTouchEnd:s,runOnTouchEnd:a}=cte(),u=ie(!1),f=J(()=>{if(!(!u.value||!t.value||n.value>0))return`translateY(${-n.value}px)`}),{toggleBodyLock:d}=oR(),p=h=>{d(h),u.value=h};return a(h=>{h<0&&Math.abs(h)>fte&&(d(!1),e())}),{onTouchStart:r,onTouchMove:o,onTouchEnd:s,transformProperty:f,onToggle:p}};var zd=(e=>(e.DESKTOP="DESKTOP",e.MOBILE="MOBILE",e))(zd||{});const pte=xe({__name:"PopupWrapper",props:{show:{type:Boolean,default:!1},maskPlacements:{type:Array,default:()=>[zd.MOBILE]},drawer:{type:Boolean,default:!1},isCentered:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:t}){const n=e,r=ie(),o=m=>n.show&&n.maskPlacements.includes(m),s=t;function a(){n.show&&s("close")}const{isTablet:u}=Vh(),{onTouchStart:f,onTouchMove:d,onTouchEnd:p,transformProperty:h,onToggle:y}=dte({close:a});return ke(()=>n.show,()=>y((!u.value||n.isCentered)&&n.show)),We(()=>y((!u.value||n.isCentered)&&n.show)),(m,v)=>(U(),X(He,null,[te("div",{ref_key:"root",ref:r,class:Be(["ui-popup",[m.$attrs.class,{"ui-popup--visible":n.show,"ui-popup--centered":n.isCentered}]]),style:at({transform:N(h)}),onKeydown:Gc(a,["esc"])},[n.drawer?(U(),X("div",{key:0,class:"ui-popup__drawer-control",onTouchstart:v[0]||(v[0]=(...b)=>N(f)&&N(f)(...b)),onTouchmove:v[1]||(v[1]=(...b)=>N(d)&&N(d)(...b)),onTouchend:v[2]||(v[2]=(...b)=>N(p)&&N(p)(...b))},null,32)):Ie("",!0),De(m.$slots,"content",{},void 0,!0)],38),te("div",{class:Be(["ui-popup-mask",{"ui-popup-mask--visible-mobile":o(N(zd).MOBILE),"ui-popup-mask--visible-desktop":o(N(zd).DESKTOP)}]),onClick:a},null,2)],64))}}),WS=yt(pte,[["__scopeId","data-v-f51a885a"]]),hte={class:"popover"},gte={class:"popover__content"},mte={class:"popover__content"},zS=8,GS=8,wbe=xe({__name:"Popover",props:{position:{type:String,default:Wd.RIGHT},teleportToBody:{type:Boolean,default:!1},teleportZIndex:{type:[Number,String],default:201}},emits:["open","close"],setup(e,{emit:t}){const n=e,r=t,{toggleBodyLock:o}=oR(),s=ie(!1),a=ie(null),u=ie(null),f=ie({}),d=ie({}),p=J(()=>`popover__popup--${n.position}`),h=J(()=>n.position===Wd.RIGHT?"bottom-end":"bottom-start");let y=null;function m(){y?.(),y=null,d.value={}}async function v(){const I=a.value,C=u.value;if(!I||!C)return;const{x:A,y:$}=await g_(I,C,{strategy:"absolute",placement:h.value,middleware:[d_(zS),h_({padding:GS}),p_({padding:GS})]});d.value={left:`${A}px`,top:`${$}px`}}function b(){m();const I=a.value,C=u.value;!I||!C||(y=f_(I,C,()=>{v()}))}function S(){const I=a.value;if(!I)return;const C=I.getBoundingClientRect(),A=C.bottom+window.scrollY+zS,$=C.left+window.scrollX;f.value={zIndex:String(n.teleportZIndex),top:`${A}px`,...n.position===Wd.RIGHT?{right:`${window.innerWidth-C.right}px`}:{left:`${$}px`}}}ke(s,I=>{if(!I){m();return}if(n.teleportToBody){gt(S);return}gt(b)});const w=()=>
53{if(s.value=!s.value,!s.value){r("close");return}r("open")},T=()=>{s.value&&(s.value=!1,o(!1),r("close"))};return Nn(()=>{m()}),(I,C)=>Su((U(),X("div",hte,[te("div",{ref_key:"triggerRef",ref:a,class:"popover__trigger",onClick:w},[De(I.$slots,"trigger",{isActive:s.value},void 0,!0)],512),s.value?(U(),X(He,{key:0},[e.teleportToBody?(U(),we(N(lte),{key:1,to:"body"},{default:be(()=>[te("div",{class:Be(["popover__popup popover__popup--teleported",p.value]),style:at(f.value)},[ye(N(WS),{show:s.value,onClose:T},{content:be(()=>[te("div",mte,[De(I.$slots,"default",{close:T,open:w,isActive:s.value},void 0,!0)])]),_:3},8,["show"])],6)]),_:3})):(U(),X("div",{key:0,ref_key:"popupRef",ref:u,class:"popover__popup",style:at(d.value)},[ye(N(WS),{show:s.value,onClose:T},{content:be(()=>[te("div",gte,[De(I.$slots,"default",{close:T,open:w,isActive:s.value},void 0,!0)])]),_:3},8,["show"])],4))],64)):Ie("",!0)])),[[N(ite),T]])}});var iR=(e=>(e.SPORTS="SPORTS",e.CYBER="CYBER",e))(iR||{});const yte="ÐолÑзоваÑÐµÐ»Ñ Ð·Ð°Ð±Ð»Ð¾ÐºÐ¸Ñован",vte="СкÑÑÑÑй полÑзоваÑелÑ",_te="ÐеÑиÑиÑиÑованнÑй полÑзоваÑелÑ",bte="СÑпеÑзвезда",wte=["ÐиÑквалиÑиÑиÑованнÑй","ÐовиÑок","ÐгÑок оÑновÑ","ÐидеÑ","СÑпеÑзвезда"],Ete={SPORTS:"Ðоманда СпоÑÑÑа",CYBER:"Ðоманда ÐибеÑа"},Ste=350,$te=700;function Tte(e,t){return e>0?`${e} ${t}`:t}function qr(e,t,n,r,o=""){let s="";const a=r||n,u=Math.abs(e);return u.toString().indexOf(".")>-1?s=n:u?u%10==1&&u%100!=11?s=t:u%10>=2&&u%10<=4&&(u%100<10||u%100>=20)?s=n:s=a:s=o,/%d/g.test(s)&&(s=s.replace(/%d/g,u.toString())),s}function Ite(e,t){const n=Math.abs(e.difference);let r=0;return n<3600*1e3?n<20*1e3?t({type:"now"}):n<60*1e3?(r=Math.floor(n/1e3),t({type:"less_minute",delta:r})):(r=Math.floor(n/6e4),t({type:"less_hour",delta:r})):n<1440*6e4?(r=Math.floor(n/(60*6e4)),t({type:"less_day",delta:r})):n<720*60*6e4?(r=Math.floor(n/(1440*6e4)),t({type:"less_30days",delta:r})):n<360*24*60*6e4?(r=e.now.getMonth()-e.month,r<0&&(r+=12),t({type:"less_year",delta:r})):(r=new Date(n).getFullYear()-1970,t({type:"more_year",delta:r}))}const sR="пÑÑмо ÑейÑаÑ",zh="ÑолÑко ÑÑо",x_="ÑегоднÑ",C_="вÑеÑа",mc="назад",jp="ÑеÑез",wn={sec:{name1:"ÑекÑндÑ",name2:"ÑекÑндÑ",name3:"ÑекÑнд",short:"Ñек."},min:{name1:"минÑÑÑ",name2:"минÑÑÑ",name3:"минÑÑ",short:"мин."},hour:{name1:"ÑаÑ",name2:"ÑаÑа",name3:"ÑаÑов",short:"ÑаÑ."},day:{name1:"денÑ",name2:"днÑ",name3:"дней"},month:{name1:"меÑÑÑ",name2:"меÑÑÑа",name3:"меÑÑÑев"},year:{name1:"год",name2:"года",name3:"леÑ"}},Is=[{nom:"ЯнваÑÑ",gen:"ÑнваÑÑ"},{nom:"ФевÑалÑ",gen:"ÑевÑалÑ"},{nom:"ÐаÑÑ",gen:"маÑÑа"},{nom:"ÐпÑелÑ",gen:"апÑелÑ"},{nom:"Ðай",gen:"маÑ"},{nom:"ÐÑнÑ",gen:"иÑнÑ"},{nom:"ÐÑлÑ",gen:"иÑлÑ"},{nom:"ÐвгÑÑÑ",gen:"авгÑÑÑа"},{nom:"СенÑÑбÑÑ",gen:"ÑенÑÑбÑÑ"},{nom:"ÐкÑÑбÑÑ",gen:"окÑÑбÑÑ"},{nom:"ÐоÑбÑÑ",gen:"ноÑбÑÑ"},{nom:"ÐекабÑÑ",gen:"декабÑÑ"}],aR=[{full:"ÐоÑкÑеÑенÑе",short:"вÑ"},{full:"ÐонеделÑник",short:"пн"},{full:"ÐÑоÑник",short:"вÑ"},{full:"СÑеда",short:"ÑÑ"},{full:"ЧеÑвеÑг",short:"ÑÑ"},{full:"ÐÑÑниÑа",short:"пÑ"},{full:"СÑббоÑа",short:"Ñб"}],Ate={right_now:sR,just_now:zh,today:x_,yesterday:C_,before:mc,after:jp,time:wn,month:Is,week:aR},xte=Object.freeze(Object.defineProperty({__proto__:null,after:jp,before:mc,default:Ate,just_now:zh,month:Is,right_now:sR,time:wn,today:x_,week:aR,yesterday:C_},Symbol.toStringTag,{value:"Module"}));function Cte(e){return Ite(e,t=>{let n="";const r=t.type,o=t.delta,{time:s}=xte;switch(r){case"now":return zh;case"less_minute":n=qr(o,s.sec.name1,s.sec.name2,s.sec.name3);break;case"less_hour":n=qr(o,s.min.name1,s.min.name2,s.min.name3);break;case"less_day":n=qr(o,s.hour.name1,s.hour.name2,s.hour.name3);break;case"less_30days":n=qr(o,s.day.name1,s.day.name2,s.day.name3);break;case"less_year":n=qr(o,s.month.name1,s.month.name2,s.month.name3);break;case"more_year":n=qr(o,s.year.name1,s.year.name2,s.year.name3);break}return Tte(o,`${n} ${mc}`)})}function Ci(e){let t="";return e<10&&(t="0"),t+=e,t}var Ht=(e=>(e.NOW="now",e.FUTURE_LESS_HOUR="future_less_hour",e.FUTURE_LESS_2HOUR="future_less_2hour",e.FUTURE_MORE_2HOUR="future_more_2hour",e.LESS_MINUTES="less_minutes",e.LESS_HOUR="less_hour",e.MORE_YEAR="more_year",e.TODAY="today",e.YESTERDAY="yesterday",e.CURRENT_YEAR="current_year",e))(Ht||{});function Rte(e,t){const n=`${Ci(e.hours)}:${Ci(e.minutes)}`,r=Math.abs(e.difference);if(e.is_future){if(r<20*1e3)return t({type:Ht.NOW});if(r<60*6e4){const o=Math.floor(r/6e4);return t({type:Ht.FUTURE_LESS_HOUR,minutes:o})}else if(r<120*6e4){const o=Math.floor(r/6e4)-60;return t({type:Ht.FUTURE_LESS_2HOUR,minutes:o,hours:1})}return t({type:Ht.FUTURE_MORE_2HOUR,time:n,day:e.day,month:e.month,year:e.fullYear})}if(r<60*6e4){if(r<20*1e3)return t({type:Ht.NOW});if(r<60*1e3){const o=Math.floor(r/1e3);return t({type:Ht.LESS_MINUTES,seconds:o})}else{const o=Math.floor(r/6e4);return t({type:Ht.LESS_HOUR,minutes:o})}}return e.is_today?t({type:Ht.TODAY,time:n}):e.is_yesterday?t({type:Ht.YESTERDAY,time:n}):e.is_current_year?t({type:Ht.CURRENT_YEAR,time:n,month:e.month,day:e.day}):t({type:Ht.MORE_YEAR,time:n,month:e.month,day:e.day,year:e.fullYear})}function Ote(e){return Rte(e,t=>{switch(t.type){case Ht.NOW:return zh;case Ht.FUTURE_LESS_HOUR:return`${jp} ${t.minutes} ${qr(t.minutes,wn.min.name1,wn.min.name2,wn.min.name3)}`;case Ht.FUTURE_LESS_2HOUR:{const n=t.minutes>0?` ${t.minutes} ${qr(t.minutes,wn.min.name1,wn.min.name2,wn.min.name3)}`:"";return`${jp} 1 ${wn.hour.name1}${n}`}case Ht.FUTURE_MORE_2HOUR:return`${t.day} ${Is[t.month].gen} ${t.year}, ${t.time}`;case Ht.LESS_MINUTES:return`${t.seconds} ${qr(t.seconds,wn.sec.name1,wn.sec.name2,wn.sec.name3)} ${mc}`;case Ht.LESS_HOUR:return`${t.minutes} ${qr(t.minutes,wn.min.name1,wn.min.name2,wn.min.name3)} ${mc}`;case Ht.TODAY:return`${x_}, ${t.time}`;case Ht.YESTERDAY:return`${C_}, ${t.time}`;case Ht.CURRENT_YEAR:return`${t.day} ${Is[t.month].gen}, ${t.time}`;case Ht.MORE_YEAR:return`${t.day} ${Is[t.month].gen} ${t.year}, ${t.time}`}})}function kte(e){return`${e.day} ${Is[e.month].gen}`}function Lte(e){return e.format.replace(/hh/g,e.hours.toString().padStart(2,"0")).replace(/h/g,e.hours.toString()).replace(/mm/g,e.minutes.toString().padStart(2,"0")).replace(/m/g,e.minutes.toString()).replace(/ss/g,e.seconds.toString().padStart(2,"0")).replace(/s/g,e.seconds.toString()).replace(/DD/g,e.day.toString().padStart(2,"0")).replace(/D/g,e.day.toString()).replace(/MM/g,(e.month+1).toString().padStart(2,"0")).replace(/M/g,(e.month+1).toString()).replace(/YYYY/g,e.fullYear.toString()).replace(/YY/g,e.fullYear.toString().slice(-2))}function Mte(e){const t=Ci(e.day),n=Ci(e.month+1);return`${t}.${n}.${e.fullYear}`}function Pte(e){const t=`${Ci(e.hours)}:${Ci(e.minutes)}`,n=Is[e.month].gen;return`${e.day} ${n} ${e.fullYear}, ${t}`}function Bte(e,t,n=""){const r=t||Date.now(),o=new Date(e),s=new Date(r-864e5),a=new Date(r);return{now:a,format:n,current:o,day:o.getDate(),weekday:o.getDay(),month:o.getMonth(),fullYear:o.getFullYear(),hours:o.getHours(),minutes:o.getMinutes(),seconds:o.getSeconds(),difference:o.getTime()-a.getTime(),is_today:a.toDateString()===o.toDateString(),is_yesterday:s.toDateString()===o.toDateString(),is_future:o.getTime()>a.getTime(),is_current_year:o.getFullYear()===a.getFullYear()}}function Nte(e){let t=Ci(e.hours);return t+=":"+Ci(e.minutes),t}
53const Dte={time:Nte};function Ute(e){return function({timestamp:t,template:n,format:r,options:o={}}){const s={...Dte,...e};if(typeof s[n]=="function"){const a=Bte(t,o.now,r);return s[n](a)}return t}}const cd=Ute({akhmatova:Cte,bunin:Ote,shortdate:kte,format:Lte,date:Mte,fulldate:Pte}),Hte=(e,t)=>e?e.toString().indexOf(".")>-1?t.genitiveSingle:e%10==1&&e%100!=11?t.nominative:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?t.genitiveSingle:t.genitiveMultiple:t.empty,Fte="Europe/Moscow";function fl(e){return new Date(e.toLocaleString("en-US",{timeZone:Fte}))}const jte={empty:"подпиÑÑиков",nominative:"подпиÑÑик",genitiveSingle:"подпиÑÑика",genitiveMultiple:"подпиÑÑиков"},Vte={class:"bottom-sheet__body"},qte={class:"bottom-sheet__footer"},Wte=xe({__name:"BottomSheet",props:{additionalBottomIndent:{type:String,default:"0"}},emits:["close"],setup(e,{emit:t}){bh(p=>({"6c11b446":f.value}));const n=t,r=ie(!1),o=ie(null),s=ie(),{isSwiping:a,lengthY:u}=uQ(o,{threshold:10}),f=J(()=>u.value+"px"),d=()=>{r.value=!1,setTimeout(()=>{n("close")},300)};return ke(()=>u.value,p=>{p<-100&&d()}),We(()=>{s.value=LC(document.body),setTimeout(()=>{r.value=!0},100)}),ke(r,p=>{s.value&&(s.value.value=p)}),bt(()=>{s.value&&(s.value.value=!1)}),(p,h)=>(U(),X(He,null,[te("div",{class:Be(["mask",{"mask--active":r.value}]),onClick:d},null,2),te("div",{class:Be(["bottom-sheet",{"bottom-sheet--active":r.value,"bottom-sheet--swiping":N(a)}]),style:at({"--additional-bottom-indent":e.additionalBottomIndent})},[te("div",{ref_key:"header",ref:o,class:"bottom-sheet__header"},[h[0]||(h[0]=te("div",{class:"handler"},null,-1)),De(p.$slots,"header",{},void 0,!0)],512),te("div",Vte,[De(p.$slots,"body",{},void 0,!0)]),te("div",qte,[De(p.$slots,"footer",{},void 0,!0)])],6)],64))}}),zte=yt(Wte,[["__scopeId","data-v-48914150"]]),Gte={key:0,class:"user-info-tooltip"},Yte={class:"user-info-tooltip__header"},Kte={class:"user-info-tooltip__header-text"},Zte=["href"],Qte={class:"user-info-tooltip__balls-wrapper"},Jte={class:"user-info-tooltip__body"},Xte=["innerHTML"],ene={class:"user-info-tooltip__footer"},tne={class:"author-followers-count"},nne={class:"subscribe-button"},rne={class:"bottom-sheet__header"},one={class:"user-info-tooltip__header-text"},ine={class:"user-info-tooltip__balls-wrapper"},sne={class:"bottom-sheet__body"},ane=["innerHTML"],une={class:"user-info-tooltip__footer"},lne={class:"author-followers-count"},cne={class:"subscribe-button"},fne=xe({__name:"UserInfoTooltip",props:{headerText:{type:String,default:""},moreLink:{type:String,default:""},user:{type:Object,required:!0},isSportsTeamMember:{type:Boolean,required:!0},siteName:{type:String,required:!0},forceLightTheme:{type:Boolean,default:!1}},emits:["close","subscribe"],setup(e,{emit:t}){const n=e,r=t,o=iQ({tablet:744}),s=J(()=>n.user.subscribersCount<1e3?`${n.user.subscribersCount} ${Hte(n.user.subscribersCount,jte)}`:n.user.subscribersCount>=1e3&&n.user.subscribersCount<1e4?`${Math.floor(n.user.subscribersCount/100)/10}к подпиÑÑиков`:`${Math.trunc(n.user.subscribersCount/1e3)}к подпиÑÑиков`),a=J(()=>n.moreLink.length>0),u=J(()=>(n.user.about?.length||0)>0),f=J(()=>!n.user.following),d=()=>{r("subscribe",n.user.id)};return(p,h)=>N(o).isGreaterOrEqual("tablet")?(U(),X("div",Gte,[te("div",Yte,[te("div",Kte,Ue(e.headerText),1),a.value?(U(),X("a",{key:0,href:e.moreLink}," ÐодÑобнее ",8,Zte)):Ie("",!0),te("div",Qte,[(U(),X(He,null,dt(5,y=>te("div",{key:y,class:Be(["user-info-tooltip__ball",{"user-info-tooltip__ball--fill":y<=e.user.balls}])},null,2)),64))])]),te("div",Jte,[ye(N(YS),{user:e.user,"site-name":e.siteName,"is-sports-team-member":e.isSportsTeamMember,"hide-publish-date":!0,"hide-role":!0,"force-light-theme":e.forceLightTheme},null,8,["user","site-name","is-sports-team-member","force-light-theme"]),u.value?(U(),X("span",{key:0,class:"user-info-tooltip__body-text",innerHTML:e.user.about},null,8,Xte)):Ie("",!0)]),te("div",ene,[te("div",tne,Ue(s.value),1),f.value?(U(),we(N(St),{key:0,variant:N(pt).PRIMARY,onClick:d},{default:be(()=>[te("div",nne,[ye(N(Hp),{width:"14"}),h[1]||(h[1]=mt(" ÐодпиÑаÑÑÑÑ "))])]),_:1},8,["variant"])):Ie("",!0)])])):(U(),we(zte,{key:1,"additional-bottom-indent":"55px",onClose:h[0]||(h[0]=y=>r("close"))},{header:be(()=>[te("div",rne,[te("span",one,Ue(e.headerText),1),te("div",ine,[(U(),X(He,null,dt(5,y=>te("div",{key:y,class:Be(["user-info-tooltip__ball",{"user-info-tooltip__ball--fill":y<=e.user.balls}])},null,2)),64))])])]),body:be(()=>[te("div",sne,[ye(N(YS),{user:e.user,"site-name":e.siteName,"is-sports-team-member":e.isSportsTeamMember,"hide-publish-date":!0,"hide-role":!0,"force-light-theme":e.forceLightTheme},null,8,["user","site-name","is-sports-team-member","force-light-theme"]),u.value?(U(),X("span",{key:0,class:"user-info-tooltip__body-text",innerHTML:e.user.about},null,8,ane)):Ie("",!0)])]),footer:be(()=>[te("div",une,[te("div",lne,Ue(s.value),1),ye(N(St),{class:Be(["user-info-tooltip__footer-btn",{"user-info-tooltip__footer-btn--done":e.user.following}]),variant:N(pt).PRIMARY,color:N(ut).DEFAULT,onClick:d},{default:be(()=>[te("div",cne,[e.user.following?(U(),we(N(E_),{key:0,width:"16"})):(U(),we(N(Hp),{key:1,width:"9",height:"9"})),mt(" "+Ue(e.user.following?"Ð²Ñ Ð¿Ð¾Ð´Ð¿Ð¸ÑанÑ":"подпиÑаÑÑÑÑ"),1)])]),_:1},8,["class","variant","color"])])]),_:1}))}}),dne=yt(fne,[["__scopeId","data-v-40d3e42a"]]),pne=["href","target"],hne={class:"user-info__info"},gne=["href","target"],mne={key:1,class:"user-info__nick user-info__nick--disactive"},yne=["href"],vne={class:"user-info__additional-info"},_ne=xe({__name:"UserInfo",props:{user:{type:Object,required:!0},isSportsTeamMember:{type:Boolean,default:!1},siteName:{type:String,default:iR.SPORTS},publishDate:{type:Number,default:0},publishDateFull:{type:String,default:""},isHidden:{type:Boolean,default:!1},isSmall:{type:Boolean,default:!1},hidePublishDate:{type:Boolean,default:!1},hideRole:{type:Boolean,default:!1},additionalInfo:{type:String,default:""},serverDate:{type:Number,default:null},forceLightTheme:{type:Boolean,default:!1},openInNewTab:{type:Boolean,default:!1}},emits:["showAuthorTooltip","hideAuthorTooltip","subscribe","nickMouseDown","avatarLinkMouseDown","openUserPage"],setup(e,{emit:t}){const n=e,r=t,o=ie(!1),s=ie(bte),a=ie(),u=J(()=>n.isHidden||n.user.blocked),f=J(()=>n.user.blocked?yte:vte),d=J(()=>(n.user.picture?.url.length||0)>0),p=J(()=>{const C=n.user;return{original:{normal:C.picture?.url},svg:{normal:C.svg?.url}}}),h=ie(Mv.LIGHT),y=J(()=>n.forceLightTheme?"imageURL":h.value===Mv.DARK?"imageURLDark":"imageURL"),m=J(()=>Number(a.value?.ref.offsetWidth)>=140),v=()=>n.isSportsTeamMember?Ete[n.siteName]??"":n.user.verified?_te:wte[n.user.balls];We(()=>{h.value=C4.get("site-theme"),s.value=v()});const b=gc($te),S=gc(Ste),w=()=>{n.hideRole||(S.stopTimeout(),b.startTimeout(()=>(r("showAuthorTooltip"),o.value=!0)))},T=()=>{n.hideRole||(b.stopTimeout(),S.startTimeout(()=>{o.value=!1,r("hideAuthorTooltip")}))},I=C=>{r("subscribe",C)};return(C,A)=>(U(),X("div",{class:Be(["user-info",{"user-info--blocked":e.user.blocked}])},[e.isHidden?(U(),X("div",{key:0,class:Be(["user-info__avatar-link",{"user-info__avatar-link--small":e.isSmall}])},A[4]||(A[4]=[te("svg",{viewBox:"0 0 40 40",fill:"none"},[te("circle",{cx:"20",cy:"20",r:"20",class:"user-info__avatar-bg"}),te("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.69 14.55L10.01 11.87L11.42 10.45L29.15 28.19L27.74 29.6L24.32 26.18C22.98 26.71 21.52 27 20 27C15 27 10.73 23.89 9 19.5C9.77 17.53 11.06 15.83 12.69 14.55ZM20.0004 13.9998C23.7904 13.9998 27.1704 16.1298 28.8204 19.4998C28.2304 20.7198 27.4004 21.7698 26.4104 22.6198L27.8204 24.0298C29.2104 22.7998 30.3104 21.2598 31.0004 19.4998C29.2704 15.1098 25.0004 11.9998 20.0004 11.9998C18.7304 11.9998 17.5104 12.1998 16.3604 12.5698L18.0104 14.2198C18.6604 14.0898 19.3204 13.9998 20.0004 13.9998ZM18.9297 15.1398L20.9997 17.2098C21.5697 17.4598 22.0297 17.9198 22.2797 18.4898L24.3497 20.5598C24.4297 20.2198 24.4897 19.8598 24.4897 19.4898C24.4997 17.0098 22.4797 14.9998 19.9997 14.9998C19.6297 14.9998 19.2797 15.0498 18.9297 15.1398ZM17.51 19.37L20.12 21.98C20.08 21.99 20.04 22 20 22C18.62 22 17.5 20.88 17.5 19.5C17.5 19.475 17.5025 19.455 17.505 19.435L17.505 19.435L17.505 19.4349C17.5075 19.4149 17.51 19.3949 17.51 19.37ZM15.8597 17.72L14.1097 15.97C12.8997 16.89 11.8797 18.07 11.1797 19.5C12.8297 22.87 16.2097 25 19.9997 25C20.9497 25 21.8697 24.86 22.7497 24.62L21.7697 23.64C21.2297 23.87 20.6297 24 19.9997 24C17.5197 24 15.4997 21.98 15.4997 19.5C15.4997 18.87 15.6297 18.27 15.8597 17.72Z",class:"user-info__avatar-eye"})],-1)]),2)):e.user.blocked?(U(),X("div",{key:1,class:Be(["user-info__avatar-link",{"user-info__avatar-link--small":e.isSmall}])},[d.value?(U(),we(N(pu),{key:0,class:Be(["user-info__avatar",{"user-info__avatar--blocked":e.user.blocked}]),"image-sources":p.value,alt:e.user.nick,size:"3xs"},null,8,["class","image-sources","alt"])):Ie("",!0)],2)):(U(),X("a",{key:2,class:Be(["user-info__avatar-link",{"user-info__avatar-link--small":e.isSmall}]),href:e.user.url,target:e.openInNewTab?"_blank":"_self",onMousedown:A[0]||(A[0]=$=>r("avatarLinkMouseDown",$)),onMouseover:w,onMouseout:T,onClick:A[1]||(A[1]=$=>r("openUserPage"))},[d.value?(U(),we(N(pu),{key:0,class:Be(["user-info__avatar",{"user-info__avatar--blocked":e.user.blocked}]),"image-sources":p.value},null,8,["class","image-sources"])):Ie("",!0)],42,pne)),te("div",hne,[te("div",{class:"user-info__name",onMouseover:w,onMouseout:T},[u.value?(U(),X("div",mne,Ue(f.value),1)):(U(),X("a",{key:0,class:Be(["user-info__nick",{"user-info__nick--short":m.value}]),href:e.user.url,target:e.openInNewTab?"_blank":"_self",onMousedown:A[2]||(A[2]=$=>r("nickMouseDown",$)),onClick:A[3]||(A[3]=$=>r("openUserPage"))},Ue(e.user.nick),43,gne)),e.user.badge?.[y.value]&&!u.value?(U(),X("a",{key:2,target:"_blank",href:e.user.badge.contentURL},[ye(N(x4),{path:e.user.badge[y.value],autoplay:"",class:"user-info__animated-badge",description:e.user.badge.description},null,8,["path","description"])],8,yne)):Ie("",!0),De(C.$slots,"role",{},void 0,!0),o.value?(U(),we(N(dne),{key:3,class:Be(["user-info-role-info__author-tooltip",{"user-info-role-info__author-tooltip--visible":o.value}]),user:e.user,"header-text":s.value,"site-name":e.siteName,"body-text":e.user.about,"is-s
53ports-team-member":e.isSportsTeamMember,"force-light-theme":e.forceLightTheme,onSubscribe:I,onClose:T},null,8,["class","user","header-text","site-name","body-text","is-sports-team-member","force-light-theme"])):Ie("",!0)],32),De(C.$slots,"additionalInfo",{ref_key:"roleInfoRef",ref:a},()=>[te("div",vne,Ue(e.additionalInfo),1)],!0)])],2))}}),YS=yt(_ne,[["__scopeId","data-v-58044283"]]),bne=()=>{const e=n=>{const r=n.getTime();return!isNaN(r)},t=(n,r)=>{if(!e(n))return"";const o={timestamp:n.getTime(),template:"bunin"};return r&&e(r)&&(o.options={now:r.getTime()}),cd(o)};return{formatDate:t,formatDateMsk:n=>t(fl(n),fl(new Date)),formatDateBunin:n=>e(n)?cd({timestamp:fl(n).getTime(),template:"bunin",options:{now:fl(new Date).getTime()}}):"",getPublicationTimeAndDate:n=>{if(!e(n))return{publicationTime:"",publicationDate:""};const r=fl(n).getTime(),o=cd({timestamp:r,template:"format",format:"hh:mm"}).toString(),s=cd({timestamp:r,template:"format",format:"YYYY-MM-DD"}).toString();return{publicationTime:o,publicationDate:s}}}},wne=["datetime","title"],Ene=xe({__name:"PublishedDate",props:{published:{type:String,default:""},documentType:{type:String,default:"post"},size:{type:String,default:"sm"}},setup(e){const t=e,{formatDateMsk:n,getPublicationTimeAndDate:r}=bne(),o=J(()=>new Date(t.published)),s=J(()=>n(o.value)),a=J(()=>{switch(t.documentType){case"news":return"новоÑÑи";case"post":return"ÑÑаÑÑи";default:return"маÑеÑиала"}}),u=J(()=>{const{publicationTime:f,publicationDate:d}=r(o.value);return`ÐаÑа пÑбликаÑии ${a.value} - ${d} в ${f} по ÐСÐ`});return(f,d)=>(U(),X("time",{class:Be(["published-date",{"ui-caption-lg":e.size==="sm","ui-body-sm-regular":e.size==="md"}]),"data-test":"published-date",datetime:e.published,title:u.value},Ue(s.value),11,wne))}}),Sne=yt(Ene,[["__scopeId","data-v-d63d1ed0"]]),$ne={class:"author-info__avatars-wrapper"},Tne={class:"author-info__content"},Ine={"data-test":"author-name",class:"ui-body-md-medium author-info__name author-info__name--user"},Ane={key:0,"data-test":"author-slug",class:"author-info__slug"},xne={key:1,class:"author-info__published-row"},Cne={"data-test":"published-in-blog-name"},Rne={"data-test":"blog-name",class:"author-info__name author-info__name--blog"},One=xe({__name:"AuthorInfo",props:{user:{type:Object,required:!0},blog:{type:Object,default:()=>{}},fontColorVariant:{type:String,default:"default"},avatarSize:{type:String,default:"sm"},preventLink:{type:Boolean,default:!1},published:{type:String,default:""},hasAction:{type:Boolean,default:!1},showSubscribersCount:{type:Boolean,default:!1},linksExternal:{type:Boolean,default:!1},blogDisplayMode:{type:String,default:"default"}},emits:["author-click","blog-click"],setup(e,{emit:t}){const n=t,r=e,o=J(()=>{switch(r.avatarSize){case"sm":return 44;case"2xs":return 36;case"3xs":return 32;default:return 44}}),s=J(()=>({link:r.fontColorVariant==="default"?"var(--ui-button-content)":"var(--ui-content)",subscribersCount:r.fontColorVariant==="default"?"#fff":"var(--ui-secondary)"})),a=J(()=>({light:r?.user?.badge?.imageURL,dark:r?.user?.badge?.imageURLDark})),u=J(()=>r.preventLink?"div":"a"),f=J(()=>!!r.blog?.name),d=J(()=>r.linksExternal?"_blank":"_self");return(p,h)=>(U(),X("div",{class:Be(["author-info",{"author-info--default":e.fontColorVariant==="default","author-info--short":e.hasAction}]),"data-test":"author-info",style:at({"--avatar-size":`${o.value}px`,"--blog-avatar-horizontal-offset":`${f.value?5:0}px`})},[te("div",$ne,[(U(),we(Xt(u.value),{href:e.user.url,target:d.value,"data-test":"author-avatar-link",onClick:h[0]||(h[0]=y=>n("author-click"))},{default:be(()=>[ye(N(pu),{src:e.user.picture?.url,"data-test":"author-avatar",alt:`ÐзобÑажение авÑоÑа - ${e.user.nick}`,size:e.avatarSize},null,8,["src","alt","size"])]),_:1},8,["href","target"])),f.value&&e.blogDisplayMode==="default"?(U(),we(Xt(u.value),{key:0,href:e.blog?.relativeUrl,target:d.value,"data-test":"blog-avatar-link",class:"author-info__blog-avatar",onClick:h[1]||(h[1]=y=>n("blog-click"))},{default:be(()=>[ye(N(pu),{src:e.blog?.avatar?.url,alt:e.blog?.name,size:"5xs","data-test":"blog-avatar"},null,8,["src","alt"])]),_:1},8,["href","target"])):Ie("",!0)]),te("div",Tne,[(U(),we(Xt(u.value),{href:e.user.url,title:`ÐÑоÑÐ¸Ð»Ñ Ð°Ð²ÑоÑа ${e.user.nick}`,target:d.value,class:"ui-body-md-medium author-info__info-link","data-test":"author-link",style:at({color:s.value.link}),onClick:h[2]||(h[2]=y=>n("author-click"))},{default:be(()=>[te("span",Ine,Ue(e.user.nick),1),e.user.badge?(U(),we(N(pee),{key:0,autoplay:"",description:e.user.badge.description,"theme-to-url":
53a.value},null,8,["description","theme-to-url"])):Ie("",!0)]),_:1},8,["href","title","target","style"])),e.user.slug?(U(),X("span",Ane,"@"+Ue(e.user.slug),1)):Ie("",!0),e.published||f.value&&e.blogDisplayMode==="published"?(U(),X("div",xne,[e.published?(U(),we(N(Sne),{key:0,published:e.published},null,8,["published"])):Ie("",!0),f.value&&e.blogDisplayMode==="published"?(U(),we(Xt(u.value),{key:1,href:e.blog?.relativeUrl,target:d.value,"data-test":"published-in-blog",class:"author-info__published-in-blog author-info__info-link",onClick:h[3]||(h[3]=y=>n("blog-click"))},{default:be(()=>[te("span",Cne," в блоге «"+Ue(e.blog?.name)+"» ",1)]),_:1},8,["href","target"])):Ie("",!0)])):Ie("",!0),e.showSubscribersCount?(U(),we(N(Xee),{key:2,value:e.user.counters?.followersCount||0,style:at({color:s.value.subscribersCount})},null,8,["value","style"])):Ie("",!0),f.value&&e.blogDisplayMode==="default"?(U(),we(Xt(u.value),{key:3,href:e.blog?.relativeUrl,target:d.value,class:"author-info__info-link",style:at({color:s.value.link}),"data-test":"blog-link",onClick:h[4]||(h[4]=y=>n("blog-click"))},{default:be(()=>[te("span",Rne,Ue(e.blog?.name),1)]),_:1},8,["href","target","style"])):Ie("",!0)])],6))}}),kne=yt(One,[["__scopeId","data-v-9cc44ce7"]]),Lne={class:"list-menu-skeleton-item","aria-hidden":"true"},Mne=xe({__name:"ListMenuSkeletonItem",props:{withIcon:{type:Boolean,default:!1}},setup(e){return(t,n)=>(U(),X("div",Lne,[e.withIcon?(U(),we(N(It),{key:0,class:"list-menu-skeleton-item__icon",width:"24px",height:"24px","border-radius":"xs"})):Ie("",!0),ye(N(It),{class:"list-menu-skeleton-item__text",width:"100%",height:"24px","border-radius":"xs"})]))}}),uR=yt(Mne,[["__scopeId","data-v-223331dc"]]),Pne={key:"id",title:"text",icon:"icon"},Bne={class:"list-menu-dropdown"},Nne=["aria-expanded","aria-controls","popovertarget","onKeydown"],Dne={class:"ui-body-sm-regular list-menu__head"},Une={key:1,class:"list-menu__item-icon"},Hne={class:"list-menu__item-text"},Fne=xe({__name:"ListDropdown",props:{items:{type:Array,required:!0},modelValue:{type:Boolean,default:void 0},dropdownId:{type:String,default:void 0},targetWidth:{type:Boolean,default:!1},subtitle:{type:String,default:""},placement:{type:String,default:void 0},teleport:{type:Boolean,default:!1},to:{type:String,default:"body"},menuDataTest:{type:String,default:void 0},menuClass:{type:String,default:void 0},loading:{type:Boolean,default:!1},skeletonOptions:{type:Object,default:()=>({withIcons:!0,amount:3})}},emits:["update:modelValue","open","close","select"],setup(e,{emit:t}){const n=e,r=t,o=ie(!1),s=J({get:()=>n.modelValue!==void 0?n.modelValue:o.value,set:y=>{n.modelValue===void 0&&(o.value=y),r("update:modelValue",y)}}),a=J(()=>n.dropdownId??`list-menu-dropdown-${Math.random().toString(36).slice(2,11)}`),u=J(()=>Array.from({length:n.skeletonOptions.amount},(y,m)=>({id:`__skeleton-${m}`,text:""}))),f=J(()=>n.loading?u.value:n.items);function d(){s.value=!s.value}const p=y=>{n.loading||(r("select",y),s.value=!1)},h=y=>{r(y?"open":"close")};return(y,m)=>(U(),X("div",Bne,[ye(N(v_),{id:a.value,modelValue:s.value,"onUpdate:modelValue":m[0]||(m[0]=v=>s.value=v),items:f.value,"item-legend":N(Pne),gap:4,"target-width":e.targetWidth,placement:e.placement,teleport:e.teleport,to:e.to,class:Be(`list-menu__dropdown ${e.menuClass??""}`),"data-test":e.menuDataTest,onClick:p,onToggle:h},gr({"item-content":be(({item:v})=>[e.loading?(U(),we(uR,{key:0,"with-icon":e.skeletonOptions.withIcons},null,8,["with-icon"])):(U(),X("div",{key:1,class:Be(["list-menu__item-content",[`list-menu__item-content--${v.color??"neutral"}`]])},[De(y.$slots,"item",{item:v},()=>[v.icon&&typeof v.icon=="object"?(U(),we(Xt(v.icon),{key:0,class:"list-menu__item-icon"})):v.icon?(U(),X("span",Une)):Ie("",!0),te("span",Hne,Ue(v.text),1)],!0)],2))]),default:be(()=>[te("div",{class:"list-menu-dropdown__trigger",role:"button",tabindex:"1","aria-haspopup":"listbox","aria-expanded":s.value,"aria-controls":a.value,popovertarget:a.value,onClick:ft(d,["stop"]),onKeydown:Gc(ft(d,["prevent"]),["enter","space"])},[De(y.$slots,"trigger",{},void 0,!0)],40,Nne)]),_:2},[e.subtitle?{name:"head",fn:be(()=>
53[te("div",Dne,Ue(e.subtitle),1)]),key:"0"}:void 0]),1032,["id","modelValue","items","item-legend","target-width","placement","teleport","to","class","data-test"])]))}}),jne=yt(Fne,[["__scopeId","data-v-99001ef3"]]),Vne={class:"list-menu-modal"},qne={class:"list-menu-modal__title"},Wne={key:0,class:"list-menu__items list-menu__items--loading"},zne={key:1,class:"list-menu__items"},Gne=["onClick"],Yne={key:1,class:"list-menu__item-icon"},Kne={class:"list-menu__item-text"},Zne={key:2,class:"list-menu__actions"},Qne=xe({__name:"ListModal",props:{items:{type:Array,required:!0},modelValue:{type:Boolean,default:void 0},modalTitle:{type:String,default:""},className:{type:String,default:""},menuDataTest:{type:String,default:void 0},menuClass:{type:String,default:void 0},loading:{type:Boolean,default:!1},skeletonOptions:{type:Object,default:()=>({withIcons:!0,amount:3})}},emits:["update:modelValue","open","close","select"],setup(e,{emit:t}){const n=G1(),r=e,o=t,s=ie(!1),a=J({get:()=>r.modelValue!==void 0?r.modelValue:s.value,set:y=>{r.modelValue===void 0&&(s.value=y),o("update:modelValue",y),y||o("close")}}),u=J(()=>!!n.header),f=J(()=>!!n.actions);function d(){a.value=!0,o("open")}function p(){a.value=!1,o("close")}function h(y){o("select",y),a.value=!1,o("close")}return(y,m)=>(U(),X("div",Vne,[te("div",{class:"list-menu-modal__trigger",onClick:ft(d,["stop"])},[De(y.$slots,"trigger",{},void 0,!0)]),ye(N(Hu),{modelValue:a.value,"onUpdate:modelValue":m[0]||(m[0]=v=>a.value=v),"show-close-icon":"",class:Be([e.className,e.menuClass]),"data-test":e.menuDataTest,onClose:p},gr({default:be(()=>[e.loading?(U(),X("ul",Wne,[(U(!0),X(He,null,dt(e.skeletonOptions.amount,v=>(U(),X("li",{key:`skeleton-${v}`,class:"list-menu__item list-menu__item--skeleton"},[ye(uR,{"with-icon":e.skeletonOptions.withIcons},null,8,["with-icon"])]))),128))])):(U(),X("ul",zne,[(U(!0),X(He,null,dt(e.items,v=>(U(),X("li",{key:v.id,class:Be(["list-menu__item",[`list-menu__item--${v.color??"neutral"}`]]),onClick:b=>h(v)},[De(y.$slots,"item",{item:v},()=>[v.icon&&typeof v.icon=="object"?(U(),we(Xt(v.icon),{key:0,class:"list-menu__item-icon"})):v.icon?(U(),X("span",Yne)):Ie("",!0),te("span",Kne,Ue(v.text),1)],!0)],10,Gne))),128))])),f.value?(U(),X("div",Zne,[De(y.$slots,"actions",{},void 0,!0)])):Ie("",!0)]),_:2},[u.value?{name:"header",fn:be(()=>[De(y.$slots,"header",{},void 0,!0)]),key:"0"}:e.modalTitle?{name:"header",fn:be(()=>[te("h2",qne,Ue(e.modalTitle),1)]),key:"1"}:void 0]),1032,["modelValue","class","data-test"])]))}}),Jne=yt(Qne,[["__scopeId","data-v-631da7e8"]]),Xne=xe({__name:"ListMenu",props:{items:{type:Array,required:!0},modelValue:{type:Boolean,default:void 0},modalTitle:{type:String,default:""},dropdownId:{type:String,default:void 0},targetWidth:{type:Boolean,default:!1},subtitle:{type:String,default:""},modalClassName:{type:String,default:""},placement:{type:String,default:void 0},teleport:{type:Boolean,default:!1},to:{type:String,default:"body"},menuDataTest:{type:String,default:void 0},menuClass:{type:String,default:void 0},loading:{type:Boolean,default:!1},skeletonOptions:{type:Object,default:()=>({withIcons:!0,amount:3})}},emits:["update:modelValue","open","close","select"],setup(e,{emit:t}){const n=G1(),r=J(()=>!!n.header),{isBreakpoint640:o}=Vh(),s=J(()=>!o.value),a=e,u=t,f=J(()=>({items:a.items,modelValue:a.modelValue,dropdownId:a.dropdownId,targetWidth:a.targetWidth,subtitle:a.subtitle,placement:a.placement,teleport:a.teleport,to:a.to,menuDataTest:a.menuDataTest,menuClass:a.menuClass,loading:a.loading,skeletonOptions:a.skeletonOptions})),d=J(()=>({items:a.items,modelValue:a.modelValue,modalTitle:a.modalTitle,className:a.modalClassName,menuDataTest:a.menuDataTest,menuClass:a.menuClass,loading:a.loading,skeletonOptions:a.skeletonOptions}));function p(h){u("update:modelValue",h)}return(h,y)=>s.value?(U(),we(N(Jne),un({key:0},d.value,{"onUpdate:modelValue":p,onOpen:y[0]||(y[0]=m=>u("open")),onClose:y[1]||(y[1]=m=>u("close")),onSelect:y[2]||(y[2]=m=>u("select",m))}),gr({trigger:be(()=>[De(h.$slots,"trigger")]),item:be(m=>[De(h.$slots,"item",Jm(cp(m)))]),_:2},[r.value?{name:"header",fn:be(()=>[De(h.$slots,"header")]),key:"0"}:void 0,N(n).actions?{name:"actions",fn:be(()=>[De(h.$slots,"actions")]),key:"1"}:void 0]),1040)):(U(),we(N(jne),un({key:1},f.value,{"onUpdate:modelValue":p,onOpen:y[3]||(y[3]=m=>u("open")),onClose:y[4]||(y[4]=m=>u("close")),onSelect:y[5]||(y[5]=m=>u("select",m))}),{trigger:be(()=>[De(h.$slots,"trigger")]),item:be(m=>[De(h.$slots,"item",Jm(cp(m)))]),_:3},16))}});var KS,ere,fd;KS=function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],o=0;o<arguments.length;o++){var s=arguments[o];if(s){var a=typeof s;
53if(a==="string"||a==="number")r.push(s);else if(Array.isArray(s)){if(s.length){var u=n.apply(null,s);u&&r.push(u)}}else if(a==="object")if(s.toString===Object.prototype.toString)for(var f in s)t.call(s,f)&&s[f]&&r.push(f);else r.push(s.toString())}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()},KS(fd={path:ere,exports:{},require:function(e,t){return(function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")})(t==null&&fd.path)}},fd.exports),fd.exports;function ZS(e,t,n){var r,o,s,a,u;function f(){var p=Date.now()-a;p<t&&p>=0?r=setTimeout(f,t-p):(r=null,n||(u=e.apply(s,o),s=o=null))}t==null&&(t=100);var d=function(){s=this,o=arguments,a=Date.now();var p=n&&!r;return r||(r=setTimeout(f,t)),p&&(u=e.apply(s,o),s=o=null),u};return d.clear=function(){r&&(clearTimeout(r),r=null)},d.flush=function(){r&&(u=e.apply(s,o),s=o=null,clearTimeout(r),r=null)},d}ZS.debounce=ZS;const tre={},nre={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function rre(e,t){return U(),X("svg",nre,t[0]||(t[0]=[te("path",{d:"M12 6V9L16 5L12 1V4C7.58 4 4 7.58 4 12C4 13.57 4.46 15.03 5.24 16.26L6.7 14.8C6.25 13.97 6 13.01 6 12C6 8.69 8.69 6 12 6ZM18.76 7.74L17.3 9.2C17.74 10.04 18 10.99 18 12C18 15.31 15.31 18 12 18V15L8 19L12 23V20C16.42 20 20 16.42 20 12C20 10.43 19.54 8.97 18.76 7.74Z",fill:"currentColor"},null,-1)]))}const ore=Un(tre,[["render",rre]]),ire={class:"error-placeholder"},sre=["src"],are={class:"error-placeholder__text"},ure={class:"ui-heading-xs"},lre={class:"ui-body-md-regular error-placeholder__text-description"},cre=xe({__name:"ErrorPlaceholder",props:{title:{type:String,default:"ÐенÑа подпиÑок заÑÑÑÑла"},description:{type:String,default:"ÐажмиÑе ÐºÐ½Ð¾Ð¿ÐºÑ Ð½Ð¸Ð¶Ðµ или вÑбеÑиÑе дÑÑгой блог"},buttonText:{type:String,default:"ÐопÑобоваÑÑ Ñнова"},showButton:{type:Boolean,default:!0},imageSrc:{type:String,default:"https://dumpster.cdn.sports.ru/9/f9/6ff691d99c21a2833e5b0f6aec017.svg"}},emits:["reload"],setup(e,{emit:t}){const n=t;return(r,o)=>(U(),X("div",ire,[te("img",{class:"error-placeholder__image",src:e.imageSrc,alt:"",role:"presentation","aria-hidden":"true"},null,8,sre),te("div",are,[De(r.$slots,"title",{},()=>[te("div",ure,Ue(e.title),1)],!0),De(r.$slots,"description",{},()=>[te("div",lre,Ue(e.description),1)],!0)]),De(r.$slots,"action",{},()=>[e.showButton?(U(),we(N(St),{key:0,size:N(ot).SM,variant:N(pt).PRIMARY,color:N(ut).DEFAULT,onClick:o[0]||(o[0]=s=>n("reload"))},{iconLeft:be(()=>[ye(N(ore),{class:"error-placeholder__button-icon"})]),default:be(()=>[mt(" "+Ue(e.buttonText),1)]),_:1},8,["size","variant","color"])):Ie("",!0)],!0)]))}}),fre=yt(cre,[["__scopeId","data-v-1e69384c"]]),dre={},pre={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function hre(e,t){return U(),X("svg",pre,t[0]||(t[0]=[te("mask",{id:"mask0_2847_1486",style:{"mask-type":"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16"},[te("rect",{width:"16",height:"16",fill:"#D9D9D9"})],-1),te("g",{mask:"url(#mask0_2847_1486)"},[te("path",{d:"M8.00004 14.6667C7.07782 14.6667 6.21115 14.4917 5.40004 14.1417C4.58893 13.7917 3.88337 13.3167 3.28337 12.7167C2.68337 12.1167 2.20837 11.4111 1.85837 10.6C1.50837 9.78888 1.33337 8.92221 1.33337 7.99999C1.33337 7.07777 1.50837 6.2111 1.85837 5.39999C2.20837 4.58888 2.68337 3.88332 3.28337 3.28332C3.88337 2.68332 4.58893 2.20832 5.40004 1.85832C6.21115 1.50832 7.07782 1.33332 8.00004 1.33332C8.47782 1.33332 8.93893 1.38055 9.38337 1.47499C9.82782 1.56943 10.2556 1.70555 10.6667 1.88332V3.38332C10.2778 3.1611 9.85837 2.9861 9.40837 2.85832C8.95837 2.73055 8.48893 2.66666 8.00004 2.66666C6.52226 2.66666 5.26393 3.1861 4.22504 4.22499C3.18615 5.26388 2.66671 6.52221 2.66671 7.99999C2.66671 9.47777 3.18615 10.7361 4.22504 11.775C5.26393 12.8139 6.52226 13.3333 8.00004 13.3333C9.47782 13.3333 10.7362 12.8139 11.775 11.775C12.8139 10.7361 13.3334 9.47777 13.3334 7.99999C13.3334 7.64443 13.2973 7.29999 13.225 6.96666C13.1528 6.63332 13.0556 6.3111 12.9334 5.99999H14.3667C14.4667 6.32221 14.5417 6.64721 14.5917 6.97499C14.6417 7.30277 14.6667 7.64443 14.6667 7.99999C14.6667 8.92221 14.4917 9.78888 14.1417 10.6C13.7917 11.4111 13.3167 12.1167 12.7167 12.7167C12.1167 13.3167 11.4112 13.7917 10.6 14.1417C9.78893 14.4917 8.92226 14.6667 8.00004 14.6667ZM13.3334 4.66666V3.33332H12V1.99999H13.3334V0.666656H14.6667V1.99999H16V3.33332H14.6667V4.66666H13.3334ZM10.3334 7.33332C10.
536112 7.33332 10.8473 7.2361 11.0417 7.04166C11.2362 6.84721 11.3334 6.6111 11.3334 6.33332C11.3334 6.05555 11.2362 5.81943 11.0417 5.62499C10.8473 5.43055 10.6112 5.33332 10.3334 5.33332C10.0556 5.33332 9.81949 5.43055 9.62504 5.62499C9.4306 5.81943 9.33337 6.05555 9.33337 6.33332C9.33337 6.6111 9.4306 6.84721 9.62504 7.04166C9.81949 7.2361 10.0556 7.33332 10.3334 7.33332ZM5.66671 7.33332C5.94449 7.33332 6.1806 7.2361 6.37504 7.04166C6.56949 6.84721 6.66671 6.6111 6.66671 6.33332C6.66671 6.05555 6.56949 5.81943 6.37504 5.62499C6.1806 5.43055 5.94449 5.33332 5.66671 5.33332C5.38893 5.33332 5.15282 5.43055 4.95837 5.62499C4.76393 5.81943 4.66671 6.05555 4.66671 6.33332C4.66671 6.6111 4.76393 6.84721 4.95837 7.04166C5.15282 7.2361 5.38893 7.33332 5.66671 7.33332ZM10.0584 11.025C10.675 10.5972 11.1223 10.0333 11.4 9.33332H4.60004C4.87782 10.0333 5.32504 10.5972 5.94171 11.025C6.55837 11.4528 7.24449 11.6667 8.00004 11.6667C8.7556 11.6667 9.44171 11.4528 10.0584 11.025Z",fill:"currentColor"})],-1)]))}const gre=yt(dre,[["render",hre]]),mre=["aria-hidden"],yre={class:"emoji-picker__list"},vre=["onClick","onKeydown"],_re=["alt","src"],bre=xe({__name:"EmojiPicker",props:Nt({items:{type:Array,required:!0},dropdownId:{type:String,default:void 0},columns:{type:Number,default:6},emojiSize:{type:Number,default:24},gap:{type:Number,default:8},targetWidth:{type:Boolean,default:!1}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:Nt(["open","close","select"],["update:modelValue"]),setup(e,{emit:t}){const n=!globalThis.window,r=e,o=t,s=Yn(e,"modelValue"),a=J(()=>!!s.value),u=J(()=>r.dropdownId||`emoji-picker-${Math.random().toString(36).slice(2,11)}`),f=ie(null),d=J(()=>{try{const b=globalThis.document?.querySelector(`[popovertarget=${u.value}]`);if(!b)throw new Error;return b}catch{return f.value?.previousElementSibling}}),p=J(()=>r.gap),{floatingStyles:h}=n?{floatingStyles:Uc(ie({}))}:GZ(d,f,{open:s,transform:!0,middleware:[h_(),p_(),d_(p.value),IC({apply({elements:b,rects:S}){r.targetWidth&&(b.floating.style.width=`${S.reference.width}px`)}})],whileElementsMounted:SQ(a)});RC(d,()=>s.value=!1);const y=J(()=>({"--emoji-picker-columns":`${r.columns}`,"--emoji-picker-emoji-size":`${r.emojiSize}px`})),m=()=>{s.value=!s.value},v=b=>{o("select",b),s.value=!1};return ke(s,b=>{o(b?"open":"close")}),(b,S)=>(U(),X("div",{class:"emoji-picker","data-test":"emoji-picker",style:at(y.value)},[De(b.$slots,"trigger",{isOpen:s.value},()=>[ye(N(St),{size:N(ot).SM,color:N(ut).DEFAULT,variant:N(pt).SECONDARY,class:"emoji-picker__trigger","data-test":"emoji-picker-trigger",short:"",onClick:ft(m,["stop"])},{default:be(()=>[ye(N(gre),{class:"emoji-picker__trigger-icon"})]),_:1},8,["size","color","variant"])],!0),Su(te("menu",{ref_key:"popover",ref:f,class:"emoji-picker__popover",style:at(N(h)),"aria-hidden":!s.value,tabindex:"1"},[te("ul",yre,[(U(!0),X(He,null,dt(e.items,w=>(U(),X("li",{key:w.id,class:"emoji-picker__list-item ui-body-sm-regular","data-test":"emoji-picker-item",tabindex:"1",onClick:ft(T=>v(w),["stop"]),onKeydown:Gc(ft(T=>v(w),["stop"]),["enter","space"])},[De(b.$slots,"item",{item:w},()=>[te("img",{class:"emoji-picker__emoji","data-test":"emoji-picker-item-image",alt:w.id,src:w.imageUrl,loading:"lazy",decoding:"async",draggable:"false"},null,8,_re)],!0)],40,vre))),128))])],12,mre),[[$u,a.value]])],4))}}),wre=yt(bre,[["__scopeId","data-v-93d30bf3"]]),Ere={},Sre={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16"};function $re(e,t){return U(),X("svg",Sre,t[0]||(t[0]=[te("path",{fill:"currentColor",d:`M4.19 3.134L2.88 1.826l-1.025 1.03 1.301 1.308 1.033-1.03zM2.181 54 7.27H0v1.462h2.182V7.269zM8.727 0H7.273v2.155h1.454V0zm5.418 2.857l-1.025-1.03-1.302 55 1.307 1.026 1.03 1.302-1.307zm-2.334 10.009l1.302 1.315 1.025-1.03-1.309-1.308-1.018 56 1.023zm2.007-5.597v1.462H16V7.269h-2.182zM8 3.616C5.593 3.616 3.636 5.582 3.636 8S5.593 57 12.384 8 12.384 12.364 10.418 12.364 8 10.407 3.616 8 3.616zM7.273 58 16h1.454v-2.155H7.273V16zm-5.418-2.857l1.025 1.03 1.302-1.315-1.026-1.03-1.301 1.315z`},null,-1)]))}const Tre=yt(Ere,[["render",$re]]),Ire={},Are={viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function xre(e,t){return U(),X("svg",Are,t[0]||(t[0]=[te("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11 5V2H13V5H11ZM12 15C13.6569 15 15 13.6569 15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15ZM12 17C14.7614 17 17 14.7614 17 12C17 9.23858 14.7614 7 12 7C9.23858 7 7 9.23858 7 12C7 14.7614 9.23858 17 12 17ZM4.22185 5.
5863606L6.34317 7.75738L7.75738 6.34317L5.63606 4.22185L4.22185 5.63606ZM5 13H2V11H5V13ZM5.63606 20.2782L7.75738 18.1568L6.34317 16.7426L4.22185 18.8639L5.63606 20.2782ZM11 22V19H13V22H11ZM16.2427 17.6569L18.364 19.7782L19.7782 18.364L17.6569 16.2427L16.2427 17.6569ZM22 13H19V11H22V13ZM17.6569 8.25734L19.7782 6.13602L18.364 4.7218L16.2427 6.84313L17.6569 8.25734Z",fill:"currentColor"},null,-1)]))}const Cre=yt(Ire,[["render",xre]]),Rre={},Ore={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16"};function kre(e,t){return U(),X("svg",Ore,t[0]||(t[0]=[te("g",null,[te("path",{fill:"currentColor",d:`M8.226 1.337c-3.833-.133-6.893 2.934-6.893 6.654A6.67 59 6.67 0 008 14.657a6.652 6.652 0 005.773-3.347c-5.007-.166-8.06-5.62-5.547-9.973z`})],-1)]))}const Lre=yt(Rre,[["render",kre]]),Mre={},Pre={viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Bre(e,t){return U(),X("svg",Pre,t[0]||(t[0]=[te("path",{d:"M3.69995 11.9932C3.69995 7.494 6.99595 3.71044 11.3718 3.08956C11.3724 3.11119 11.3689 3.13361 11.3607 3.15539C8.99288 9.44311 12.8956 16.4584 19.4523 17.7673C19.4756 17.772 19.4968 17.7811 19.5151 17.7932C17.8694 19.7573 15.4186 21.0001 12.6678 21.0001C7.72151 21.0001 3.69995 16.9684 3.69995 11.9932Z",stroke:"currentColor","stroke-width":"2"},null,-1)]))}const Nre=yt(Mre,[["render",Bre]]);var lR=(e=>(e.SMALL="small",e.MEDIUM="medium",e.LARGE="large",e))(lR||{});const Dre=["for"],Ure={key:0,class:"ui-theme-switcher__compact-icon"},Hre={key:1,class:"ui-theme-switcher__compact-icon"},Fre=["for"],jre={class:"ui-theme-switcher__icon ui-theme-switcher__icon--top"},Vre={class:"ui-theme-switcher__icon ui-theme-switcher__icon--bottom"},qre=["id","checked"];lR.MEDIUM;const Wre="«",zre="»",Gre="«",Yre="»",QS="«",JS="»",Kre="–",XS="â",Zre="–",Qre="—",e$="â",Jre="—",Xre="&",eoe="&",toe=" ",noe=" ",t$=" ",roe=""",ooe='"',ioe="<",soe="<",aoe=">",uoe=">",loe="'",coe="'",n$="'",foe="…",doe="…",r$="â¦",poe="“",hoe='"',goe="”",moe='"',yoe=e=>e?e.replaceAll(Kre,XS).replaceAll(Zre,XS).replaceAll(Qre,e$).replaceAll(Jre,e$).replaceAll(Wre,QS).replaceAll(zre,JS).replaceAll(Gre,QS).replaceAll(Yre,JS).replaceAll(poe,hoe).replaceAll(goe,moe).replaceAll(toe,t$).replaceAll(noe,t$).replaceAll(roe,ooe).replaceAll(ioe,soe).replaceAll(aoe,uoe).replaceAll(loe,n$).replaceAll(coe,n$).replaceAll(foe,r$).replaceAll(doe,r$).replaceAll(Xre,eoe):"",voe=e=>JSON.stringify(e).replace(/"([^"()]+)":/g,"$1:");function _oe(e){return Object.prototype.toString.call(e)==="[object Object]"}function o$(e){return _oe(e)||Array.isArray(e)}function boe(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function R_(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const o=JSON.stringify(Object.keys(e.breakpoints||{})),s=JSON.stringify(Object.keys(t.breakpoints||{}));return o!==s?!1:n.every(a=>{const u=e[a],f=t[a];return typeof u=="function"?`${u}`==`${f}`:!o$(u)||!o$(f)?u===f:R_(u,f)})}function i$(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function woe(e,t){if(e.length!==t.length)return!1;const n=i$(e),r=i$(t);return n.every((o,s)=>{const a=r[s];return R_(o,a)})}function O_(e){return typeof e=="number"}function jv(e){return typeof e=="string"}function Gh(e){return typeof e=="boolean"}function s$(e){return Object.prototype.toString.call(e)==="[object Object]"}function kt(e){return Math.abs(e)}function k_(e){return Math.sign(e)}function Ll(e,t){return kt(e-t)}function Eoe(e,t){if(e===0||t===0||kt(e)<=kt(t))return 0;const n=Ll(kt(e),kt(t));return kt(n/e)}function Soe(e){return Math.round(e*100)/100}function yc(e){return vc(e).map(Number)}function Sr(e){return e[Sf(e)]}function Sf(e){return Math.max(0,e.length-1)}function L_(e,t){return t===Sf(e)}function a$(e,t=0){return Array.from(Array(e),(n,r)=>t+r)}function vc(e){return Object.keys(e)}function cR(e,t){return[e,t].reduce((n,r)=>(vc(r).forEach(o=>{const s=n[o],a=r[o],u=s$(s)&&s$(a);n[o]=u?cR(s,a):a}),n),{})}function Vv(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function $oe(e,t){const n={start:r,center:o,end:s};function r(){return 0}function o(u){return s(u)/2}function s(u){return t-u}function a(u,f){return jv(e)?n[e](u):e(t,u,f)}return{measure:a}}function _c(){let e=[];function t(o,s,a,u={passive:!0}){let f;if("addEventListener"in o)o.addEventListener(s,a,u),f=()=>o.removeEventListener(s,a,u);else{const d=o;d.addListener(a),f=()=>d.removeListener(a)}return e.push(f),r}function n(){e=e.filter(o=>o())}const r={add:t,clear:n};return r}function Toe(e,t,n,r){const o=_c(),s=1e3/60;let a=null,u=0,f=0;function d(){o.add(e,"visibilitychange",()=>{e.hidden&&v()})}function p(){m(),o.clear()}function h(b){if(!f)return;a||(a=b,n(),n());const S=b-a;for(a=b,u+=S;u>=s;)n(),u-=s;const w=u/s;r(w),f&&(f=t.requestAnimationFrame(h))}function y(){f||(f=t.requestAnimationFrame(h))}function m(){t.cancelAnimationFrame(f),a=null,u=0,f=0}function v(){a=null,u=0}return{init:d,destroy:p,start:y,stop:m,update:n,render:r}}function Ioe(e,t){const n=t==="rtl",r=e==="y",o=r?"y":"x",s=r?"x":"y",a=!r&&n?-1:1,u=p(),f=h();function d(m){const{height:v,width:b}=m;return r?v:b}function p(){return r?"top":n?"right":"left"}function h(){return r?"bottom":n?"left":"right"}function y(m){return m*a}return{scroll:o,cross:s,startEdge:u,endEdge:f,measureSize:d,direction:y}}function js(e=0,t=0){const n=kt(e-t);function r(f){return f<e}function o(f){return f>t}function s(f){return r(f)||o(f)}function a(f){return s(f)?r(f)?e:t:f}function u(f){return n?f-n*Math.ceil((f-t)/n):f}return{length:n,max:t,min:e,constrain:a,reachedAny:s,reachedMax:o,reachedMin:r,removeOffset:u}}function fR(e,t,n){const{constrain:r}=js(0,e),o=e+1;let s=a(t);function a(y){return n?kt((o+y)%o):r(y)}function u(){return s}function f(y){return s=a(y),h}function d(y){return p().set(u()+y)}function p(){return fR(e,u(),n)}const h={get:u,set:f,add:d,clone:p};return h}function Aoe(e,t,n,r,o,s,a,u,f,d,p,h,y,m,v,b,S,w,T){const{cross:I,direction:C}=e,A=["INPUT","SELECT","TEXTAREA"],$={passive:!1},k=_c(),x=_c(),O=js(50,225).constrain(m.measure(20)),M={mouse:300,touch:400},j={mouse:500,touch:600},V=v?43:25;let W=!1,Y=0,ne=0,Z=!1,ae=!1,ce=!1,q=!1;function ue(B){if(!T)return;function K(D){(Gh(T)||T(B,D))&&Ae(D)}const L=t;k.add(L,"dragstart",D=>D.preventDefault(),$).add(L,"touchmove",()=>{},$).add(L,"touchend",()=>{}).add(L,"touchstart",K).add(L,"mousedown",K).add(L,"touchcancel",Q).add(L,"contextmenu",Q).add(L,"click",P,!0)}function G(){k.clear(),x.clear()}function re(){const B=q?n:t;x.add(B,"touchmove",le,$).add(B,"touchend",Q).add(B,"mousemove",le,$).add(B,"mouseup",Q)}function Oe(B){const K=B.nodeName||"";return A.includes(K)}function Ee(){return(v?j:M)[q?"mouse":"touch"]}function Pe(B,K){const L=h.add(k_(B)*-1),D=p.byDistance(B,!v).distance;return v||kt(B)<O?D:S&&K?D*.5:p.byIndex(L.get(),0).distance}function Ae(B){const K=Vv(B,r);q=K,ce=v&&K&&!B.buttons&&W,W=Ll(o.get(),a.get())>=2,!(K&&B.button!==0)&&(Oe(B.target)||(Z=!0,s.pointerDown(B),d.useFriction(0).useDuration(0),o.set(a),re
vendor: 9,540 bytes, line 59
59(),Y=s.readPoint(B),ne=s.readPoint(B,I),y.emit("pointerDown")))}function le(B){if(!Vv(B,r)&&B.touches.length>=2)return Q(B);const K=s.readPoint(B),L=s.readPoint(B,I),D=Ll(K,Y),se=Ll(L,ne);if(!ae&&!q&&(!B.cancelable||(ae=D>se,!ae)))return Q(B);const ve=s.pointerMove(B);D>b&&(ce=!0),d.useFriction(.3).useDuration(.75),u.start(),o.add(C(ve)),B.preventDefault()}function Q(B){const K=p.byDistance(0,!1).index!==h.get(),L=s.pointerUp(B)*Ee(),D=Pe(C(L),K),se=Eoe(L,D),ve=V-10*se,de=w+se/50;ae=!1,Z=!1,x.clear(),d.useDuration(ve).useFriction(de),f.distance(D,!v),q=!1,y.emit("pointerUp")}function P(B){ce&&(B.stopPropagation(),B.preventDefault(),ce=!1)}function F(){return Z}return{init:ue,destroy:G,pointerDown:F}}function xoe(e,t){let n,r;function o(d){return d.timeStamp}function s(d,p){const h=`client${(p||e.scroll)==="x"?"X":"Y"}`;return(Vv(d,t)?d:d.touches[0])[h]}function a(d){return n=d,r=d,s(d)}function u(d){const p=s(d)-s(r),h=o(d)-o(n)>170;return r=d,h&&(n=d),p}function f(d){if(!n||!r)return 0;const p=s(r)-s(n),h=o(d)-o(n),y=o(d)-o(r)>170,m=p/h;return h&&!y&&kt(m)>.1?m:0}return{pointerDown:a,pointerMove:u,pointerUp:f,readPoint:s}}function Coe(){function e(t){const{offsetTop:n,offsetLeft:r,offsetWidth:o,offsetHeight:s}=t;return{top:n,right:r+o,bottom:n+s,left:r,width:o,height:s}}return{measure:e}}function Roe(e){function t(n){return e*(n/100)}return{measure:t}}function Ooe(e,t,n,r,o,s,a){const u=[e].concat(r);let f,d,p=[],h=!1;function y(b){return o.measureSize(a.measure(b))}function m(b){if(!s)return;d=y(e),p=r.map(y);function S(w){for(const T of w){if(h)return;const I=T.target===e,C=r.indexOf(T.target),A=I?d:p[C],$=y(I?e:r[C]);if(kt($-A)>=.5){b.reInit(),t.emit("resize");break}}}f=new ResizeObserver(w=>{(Gh(s)||s(b,w))&&S(w)}),n.requestAnimationFrame(()=>{u.forEach(w=>f.observe(w))})}function v(){h=!0,f&&f.disconnect()}return{init:m,destroy:v}}function koe(e,t,n,r,o,s){let a=0,u=0,f=o,d=s,p=e.get(),h=0;function y(){const $=r.get()-e.get(),k=!f;let x=0;return k?(a=0,n.set(r),e.set(r),x=$):(n.set(e),a+=$/f,a*=d,p+=a,e.add(a),x=p-h),u=k_(x),h=p,A}function m(){const $=r.get()-t.get();return kt($)<.001}function v(){return f}function b(){return u}function S(){return a}function w(){return I(o)}function T(){return C(s)}function I($){return f=$,A}function C($){return d=$,A}const A={direction:b,duration:v,velocity:S,seek:y,settled:m,useBaseFriction:T,useBaseDuration:w,useFriction:C,useDuration:I};return A}function Loe(e,t,n,r,o){const s=o.measure(10),a=o.measure(50),u=js(.1,.99);let f=!1;function d(){return!(f||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function p(y){if(!d())return;const m=e.reachedMin(t.get())?"min":"max",v=kt(e[m]-t.get()),b=n.get()-t.get(),S=u.constrain(v/a);n.subtract(b*S),!y&&kt(b)<s&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())}function h(y){f=!y}return{shouldConstrain:d,constrain:p,toggleActive:h}}function Moe(e,t,n,r,o){const s=js(-t+e,0),a=h(),u=p(),f=y();function d(m,v){return Ll(m,v)<=1}function p(){const m=a[0],v=Sr(a),b=a.lastIndexOf(m),S=a.indexOf(v)+1;return js(b,S)}function h(){return n.map((m,v)=>{const{min:b,max:S}=s,w=s.constrain(m),T=!v,I=L_(n,v);return T?S:I||d(b,w)?b:d(S,w)?S:w}).map(m=>parseFloat(m.toFixed(3)))}function y(){if(t<=e+o)return[s.max];if(r==="keepSnaps")return a;const{min:m,max:v}=u;return a.slice(m,v)}return{snapsContained:f,scrollContainLimit:u}}function Poe(e,t,n){const r=t[0],o=n?r-e:Sr(t);return{limit:js(o,r)}}function Boe(e,t,n,r){const o=t.min+.1,s=t.max+.1,{reachedMin:a,reachedMax:u}=js(o,s);function f(p){return p===1?u(n.get()):p===-1?a(n.get()):!1}function d(p){if(!f(p))return;const h=e*(p*-1);r.forEach(y=>y.add(h))}return{loop:d}}function Noe(e){const{max:t,length:n}=e;function r(o){const s=o-t;return n?s/-n:0}return{get:r}}function Doe(e,t,n,r,o){const{startEdge:s,endEdge:a}=e,{groupSlides:u}=o,f=h().map(t.measure),d=y(),p=m();function h(){return u(r).map(v=>Sr(v)[a]-v[0][s]).map(kt)}function y(){return r.map(v=>n[s]-v[s]).map(v=>-kt(v))}function m(){return u(d).map(v=>v[0]).map((v,b)=>v+f[b])}return{snaps:d,snapsAligned:p}}function Uoe(e,t,n,r,o,s){const{groupSlides:a}=o,{min:u,max:f}=r,d=p();function p(){const h=a(s),y=!e||t==="keepSnaps";return n.length===1?[s]:y?h:h.slice(u,f).map((m,v,b)=>{const S=!v,w=L_(b,v);if(S){const T=Sr(b[0])+1;return a$(T)}if(w){const T=Sf(s)-Sr(b)[0]+1;return a$(T,Sr(b)[0])}return m})}return{slideRegistry:d}}function Hoe(e,t,n,r,o){const{reachedAny:s,removeOffset:a,constrain:u}=r;function f(m){return m.concat().sort((v,b)=>kt(v)-kt(b))[0]}function d(m){const v=e?a(m):u(m),b=t.map((w,T)=>({diff:p(w-v,0),index:T})).sort((w,T)=>kt(w.diff)-kt(T.diff)),{index:S}=b[0];return{index:S,distance:v}}function p(m,v){const b=[m,m+n,m-n];if(!e)return m;if(!v)return f(b);const S=b.filter(w=>k_(w)===v);return S.length?f(S):Sr(b)-n}function h(m,v){const b=t[m]-o.get(),S=p(b,v);return{index:m,distance:S}}function y(m,v){const b=o.get()+m,{index:S,distance:w}=d(b),T=!e&&s(b);if(!v||T)return{index:S,distance:m};const I=t[S]-w,C=m+p(I,0);return{index:S,distance:C}}return{byDistance:y,byIndex:h,shortcut:p}}function Foe(e,t,n,r,o,s,a){function u(p){const h=p.distance,y=p.index!==t.get();s.add(h),h&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),y&&(n.set(t.get()),t.set(p.index),a.emit("select"))}function f(p,h){const y=o.byDistance(p,h);u(y)}function d(p,h){const y=t.clone().set(p),m=o.byIndex(y.get(),h);u(m)}return{distance:f,index:d}}function joe(e,t,n,r,o,s,a,u){const f={passive:!0,capture:!0};let d=0;function p(y){if(!u)return;function m(v){if(new Date().getTime()-d>10)return;a.emit("slideFocusStart"),e.scrollLeft=0;const b=n.findIndex(S=>S.includes(v));O_(b)&&(o.useDuration(0),r.index(b,0),a.emit("slideFocus"))}s.add(document,"keydown",h,!1),t.forEach((v,b)=>{s.add(v,"focus",S=>{(Gh(u)||u(y,S))&&m(b)},f)})}function h(y){y.code==="Tab"&&(d=new Date().getTime())}return{init:p}}function vl(e){let t=e;function n(){return t}function r(u){t=a(u)}function o(u){t+=a(u)}function s(u){t-=a(u)}function a(u){return O_(u)?u:u.get()}return{get:n,set:r,add:o,subtract:s}}function dR(e,t){const n=e.scroll==="x"?a:u,r=t.style;let o=null,s=!1;function a(h){return`translate3d(${h}px,0px,0px)`}function u(h){return`translate3d(0px,${h}px,0px)`}function f(h){if(s)return;const y=Soe(e.direction(h));y!==o&&(r.transform=n(y),o=y)}function d(h){s=!h}function p(){s||(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:p,to:f,toggleActive:d}}function Voe(e,t,n,r,o,s,a,u,f){const d=yc(o),p=yc(o).reverse(),h=S().concat(w());function y(A,$){return A.reduce((k,x)=>k-o[x],$)}function m(A,$){return A.reduce((k,x)=>y(k,$)>0?k.concat([x]):k,[])}function v(A){return s.map(($,k)=>({start:$-r[k]+.5+A,end:$+t-.5+A}))}function b(A,$,k){const x=v($);return A.map(O=>{const M=k?0:-n,j=k?n:0,V=k?"end":"start",W=x[O][V];return{index:O,loopPoint:W,slideLocation:vl(-1),translate:dR(e,f[O]),target:()=>u.get()>W?M:j}})}function S(){const A=a[0],$=m(p,A);return b($,n,!1)}function w(){const A=t-a[0]-1,$=m(d,A);return b($,-n,!0)}function T(){return h.every(({index:A})=>{const $=d.filter(k=>k!==A);return y($,t)<=.1})}function I(){h.forEach(A=>{const{target:$,translate:k,slideLocation:x}=A,O=$();O!==x.get()&&(k.to(O),x.set(O))})}function C(){h.forEach(A=>A.translate.clear())}return{canLoop:T,clear:C,loop:I,loopPoints:h}}function qoe(e,t,n){let r,o=!1;function s(u){if(!n)return;function f(d){for(const p of d)if(p.type==="childList"){u.reInit(),t.emit("slidesChanged");break}}r=new MutationObserver(d=>{o||(Gh(n)||n(u,d))&&f(d)}),r.observe(e,{childList:!0})}function a(){r&&r.disconnect(),o=!0}return{init:s,destroy:a}}function Woe(e,t,n,r){const o={};let s=null,a=null,u,f=!1;function d(){u=new IntersectionObserver(m=>{f||(m.forEach(v=>{const b=t.indexOf(v.target);o[b]=v}),s=null,a=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(m=>u.observe(m))}function p(){u&&u.disconnect(),f=!0}function h(m){return vc(o).reduce((v,b)=>{const S=parseInt(b),{isIntersecting:w}=o[S];return(m&&w||!m&&!w)&&v.push(S),v},[])}function y(m=!0){if(m&&s)return s;if(!m&&a)return a;const v=h(m);return m&&(s=v),m||(a=v),v}return{init:d,destroy:p,get:y}}function zoe(e,t,n,r,o,s){const{measureSize:a,startEdge:u,endEdge:f}=e,d=n[0]&&o,p=v(),h=b(),y=n.map(a),m=S();function v(){if(!d)return 0;const w=n[0];return kt(t[u]-w[u])}function b(){if(!d)return 0;const w=s.getComputedStyle(Sr(r));return parseFloat(w.getPropertyValue(`margin-${f}`))}function S(){return n.map((w,T,I)=>{const C=!T,A=L_(I,T);return C?y[T]+p:A?y[T]+h:I[T+1][u]-w[u]}).map(kt)}return{slideSizes:y,slideSizesWithGaps:m,startGap:p,endGap:h}}function Goe(e,t,n,r,o,s,a,u,f){const{startEdge:d,endEdge:p,direction:h}=e,y=O_(n);function m(S,w){return yc(S).filter(T=>T%w===0).map(T=>S.slice(T,T+w))}function v(S){return S.length?yc(S).reduce((w,T,I)=>{const C=Sr(w)||0,A=C===0,$=T===Sf(S),k=o[d]-s[C][d],x=o[d]-s[T][p],O=!r&&A?h(a):0,M=!r&&$?h(u):0,j=kt(x-M-(k+O));return I&&j>t+f&&w.push(T),$&&w.push(S.length),w},[]).map((w,T,I)=>{const C=Math.max(I[T-1]||0);return S.slice(C,w)}):[]}function b(S){return y?m(S,n):v(S)}return{groupSlides:b}}function Yoe(e,t,n,r,o,s,a){const{align:u,axis:f,direction:d,startIndex:p,loop:h,duration:y,dragFree:m,dragThreshold:v,inViewThreshold:b,slidesToScroll:S,skipSnaps:w,containScroll:T,watchResize:I,watchSlides:C,watchDrag:A,watchFocus:$}=s,k=2,x=Coe(),O=x.measure(t),M=n.map(x.measure),j=Ioe(f,d),V=j.measureSize(O),W=Roe(V),Y=$oe(u,V),ne=!h&&!!T,Z=h||!!T,{slideSizes:ae,slideSizesWithGaps:ce,startGap:q,endGap:ue}
vendor: 5,577 bytes, line 59
59=zoe(j,O,M,n,Z,o),G=Goe(j,V,S,h,O,M,q,ue,k),{snaps:re,snapsAligned:Oe}=Doe(j,Y,O,M,G),Ee=-Sr(re)+Sr(ce),{snapsContained:Pe,scrollContainLimit:Ae}=Moe(V,Ee,Oe,T,k),le=ne?Pe:Oe,{limit:Q}=Poe(Ee,le,h),P=fR(Sf(le),p,h),F=P.clone(),B=yc(n),K=({dragHandler:g,scrollBody:_,scrollBounds:E,options:{loop:R}})=>{R||E.constrain(g.pointerDown()),_.seek()},L=({scrollBody:g,translate:_,location:E,offsetLocation:R,previousLocation:oe,scrollLooper:$e,slideLooper:me,dragHandler:he,animation:Te,eventHandler:yn,scrollBounds:Fn,options:{loop:Me}},Le)=>{const Ze=g.settled(),kr=!Fn.shouldConstrain(),yr=Me?Ze:Ze&&kr,vr=yr&&!he.pointerDown();vr&&Te.stop();const Fi=E.get()*Le+oe.get()*(1-Le);R.set(Fi),Me&&($e.loop(g.direction()),me.loop()),_.to(R.get()),vr&&yn.emit("settle"),yr||yn.emit("scroll")},D=Toe(r,o,()=>K(c),g=>L(c,g)),se=.68,ve=le[P.get()],de=vl(ve),_e=vl(ve),Se=vl(ve),pe=vl(ve),ge=koe(de,Se,_e,pe,y,se),fe=Hoe(h,le,Ee,Q,pe),Ce=Foe(D,P,F,ge,fe,pe,a),H=Noe(Q),z=_c(),ee=Woe(t,n,a,b),{slideRegistry:i}=Uoe(ne,T,le,Ae,G,B),l=joe(e,n,i,Ce,ge,z,a,$),c={ownerDocument:r,ownerWindow:o,eventHandler:a,containerRect:O,slideRects:M,animation:D,axis:j,dragHandler:Aoe(j,e,r,o,pe,xoe(j,o),de,D,Ce,ge,fe,P,a,W,m,v,w,se,A),eventStore:z,percentOfView:W,index:P,indexPrevious:F,limit:Q,location:de,offsetLocation:Se,previousLocation:_e,options:s,resizeHandler:Ooe(t,a,o,n,j,I,x),scrollBody:ge,scrollBounds:Loe(Q,Se,pe,ge,W),scrollLooper:Boe(Ee,Q,Se,[de,Se,_e,pe]),scrollProgress:H,scrollSnapList:le.map(H.get),scrollSnaps:le,scrollTarget:fe,scrollTo:Ce,slideLooper:Voe(j,V,Ee,ae,ce,re,le,Se,n),slideFocus:l,slidesHandler:qoe(t,a,C),slidesInView:ee,slideIndexes:B,slideRegistry:i,slidesToScroll:G,target:pe,translate:dR(j,t)};return c}function Koe(){let e={},t;function n(d){t=d}function r(d){return e[d]||[]}function o(d){return r(d).forEach(p=>p(t,d)),f}function s(d,p){return e[d]=r(d).concat([p]),f}function a(d,p){return e[d]=r(d).filter(h=>h!==p),f}function u(){e={}}const f={init:n,emit:o,off:a,on:s,clear:u};return f}const Zoe={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Qoe(e){function t(o,s){return cR(o,s||{})}function n(o){const s=o.breakpoints||{},a=vc(s).filter(u=>e.matchMedia(u).matches).map(u=>s[u]).reduce((u,f)=>t(u,f),{});return t(o,a)}function r(o){return o.map(s=>vc(s.breakpoints||{})).reduce((s,a)=>s.concat(a),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function Joe(e){let t=[];function n(o,s){return t=s.filter(({options:a})=>e.optionsAtMedia(a).active!==!1),t.forEach(a=>a.init(o,e)),s.reduce((a,u)=>Object.assign(a,{[u.name]:u}),{})}function r(){t=t.filter(o=>o.destroy())}return{init:n,destroy:r}}function Vp(e,t,n){const r=e.ownerDocument,o=r.defaultView,s=Qoe(o),a=Joe(s),u=_c(),f=Koe(),{mergeOptions:d,optionsAtMedia:p,optionsMediaQueries:h}=s,{on:y,off:m,emit:v}=f,b=j;let S=!1,w,T=d(Zoe,Vp.globalOptions),I=d(T),C=[],A,$,k;function x(){const{container:B,slides:K}=I;$=(jv(B)?e.querySelector(B):B)||e.children[0];const L=jv(K)?$.querySelectorAll(K):K;k=[].slice.call(L||$.children)}function O(B){const K=Yoe(e,$,k,r,o,B,f);if(B.loop&&!K.slideLooper.canLoop()){const L=Object.assign({},B,{loop:!1});return O(L)}return K}function M(B,K){S||(T=d(T,B),I=p(T),C=K||C,x(),w=O(I),h([T,...C.map(({options:L})=>L)]).forEach(L=>u.add(L,"change",j)),I.active&&(w.translate.to(w.location.get()),w.animation.init(),w.slidesInView.init(),w.slideFocus.init(F),w.eventHandler.init(F),w.resizeHandler.init(F),w.slidesHandler.init(F),w.options.loop&&w.slideLooper.loop(),$.offsetParent&&k.length&&w.dragHandler.init(F),A=a.init(F,C)))}function j(B,K){const L=G();V(),M(d({startIndex:L},B),K),f.emit("reInit")}function V(){w.dragHandler.destroy(),w.eventStore.clear(),w.translate.clear(),w.slideLooper.clear(),w.resizeHandler.destroy(),w.slidesHandler.destroy(),w.slidesInView.destroy(),w.animation.destroy(),a.destroy(),u.clear()}function W(){S||(S=!0,u.clear(),V(),f.emit("destroy"),f.clear())}function Y(B,K,L){!I.active||S||(w.scrollBody.useBaseFriction().useDuration(K===!0?0:I.duration),w.scrollTo.index(B,L||0))}function ne(B){const K=w.index.add(1).get();Y(K,B,-1)}function Z(B){const K=w.index.add(-1).get();Y(K,B,1)}function ae(){return w.index.add(1).get()!==G()}function ce(){return w.index.add(-1).get()!==G()}function q(){return w.scrollSnapList}function ue(){return w.scrollProgress.get(w.offsetLocation.get())}function G(){return w.index.get()}function re(){return w.indexPrevious.get()}function Oe(){return w.slidesInView.get()}function Ee(){return w.slidesInView.get(!1)}function Pe(){return A}function Ae(){return w}function le(){return e}function Q(){return $}function P(){return k}const F={canScrollNext:ae,canScrollPrev:ce,containerNode:Q,internalEngine:Ae,destroy:W,off:m,on:y,emit:v,plugins:Pe,previousScrollSnap:re,reInit:b,rootNode:le,scrollNext:ne,scrollPrev:Z,scrollProgress:ue,scrollSnapList:q,scrollTo:Y,selectedScrollSnap:G,slideNodes:P,slidesInView:Oe,slidesNotInView:Ee};return M(t,n),setTimeout(()=>f.emit("init"),0),F}Vp.globalOptions=void 0;function M_(e={},t=[]){const n=Xe(e),r=Xe(t);let o=n?e.value:e,s=r?t.value:t;const a=en(),u=en();function f(){u.value&&u.value.reInit(o,s)}return We(()=>{!boe()||!a.value||(Vp.globalOptions=M_.globalOptions,u.value=Vp(a.value,o,s))}),bt(()=>{u.value&&u.value.destroy()}),n&&ke(e,d=>{R_(o,d)||(o=d,f())}),r&&ke(t,d=>
59{woe(s,d)||(s=d,f())}),[a,u]}M_.globalOptions=void 0;function As(){return As=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},As.apply(this,arguments)}var Xoe=.996,eie=function(e,t){return t===void 0&&(t=Xoe),e*t/(1-t)};function tie(e){return e[e.length-1]}function nie(e){return e.reduce(function(t,n){return t+n})/e.length}var rie=function(e,t,n){return Math.min(Math.max(t,e),n)};function vm(e,t){if(e.length!==t.length)throw new Error("vectors must be same length");return e.map(function(n,r){return n+t[r]})}function u$(e){return Math.max.apply(Math,e.map(Math.abs))}function gu(e){return Object.freeze(e),Object.values(e).forEach(function(t){t!==null&&typeof t=="object"&&!Object.isFrozen(t)&&gu(t)}),e}function oie(){var e={};function t(o,s){return e[o]=(e[o]||[]).concat(s),function(){return n(o,s)}}function n(o,s){e[o]=(e[o]||[]).filter(function(a){return a!==s})}function r(o,s){o in e&&e[o].forEach(function(a){return a(s)})}return gu({on:t,off:n,dispatch:r})}function iie(e){var t=[],n=function(s){return s.addEventListener("wheel",e,{passive:!1}),t.push(s),function(){return r(s)}},r=function(s){s.removeEventListener("wheel",e),t=t.filter(function(a){return a!==s})},o=function(){t.forEach(r)};return gu({observe:n,unobserve:r,disconnect:o})}var sie=16*1.125,aie=typeof window<"u"&&window.innerHeight||800,_m=[1,sie,aie];function uie(e){var t=e.deltaX*_m[e.deltaMode],n=e.deltaY*_m[e.deltaMode],r=(e.deltaZ||0)*_m[e.deltaMode];return{timeStamp:e.timeStamp,axisDelta:[t,n,r]}}var lie=[-1,-1,-1];function cie(e,t){if(!t)return e;var n=t===!0?lie:t.map(function(r){return r?-1:1});return As({},e,{axisDelta:e.axisDelta.map(function(r,o){return r*n[o]})})}var l$=700,fie=function(e){return As({},e,{axisDelta:e.axisDelta.map(function(t){return rie(t,-l$,l$)})})},die=.6,pie=.96,hie=2,c$=5,f$=gu({preventWheelAction:!0,reverseSign:[!0,!0,!1]}),gie=400;function d$(){return{isStarted:!1,isStartPublished:!1,isMomentum:!1,startTime:0,lastAbsDelta:1/0,axisMovement:[0,0,0],axisVelocity:[0,0,0],accelerationFactors:[],scrollPoints:[],scrollPointsToMerge:[],willEndTimeout:gie}}function mie(e){e===void 0&&(e={});var t=oie(),n=t.on,r=t.off,o=t.dispatch,s=f$,a=d$(),u,f=!1,d,p=function(W){Array.isArray(W)?W.forEach(function(Y){return v(Y)}):v(W)},h=function(W){return W===void 0&&(W={}),Object.values(W).some(function(Y){return Y==null})?s:s=gu(As({},f$,s,W))},y=function(W){var Y=As({event:u,isStart:!1,isEnding:!1,isMomentumCancel:!1,isMomentum:a.isMomentum,axisDelta:[0,0,0],axisVelocity:a.axisVelocity,axisMovement:a.axisMovement,get axisMovementProjection(){return vm(Y.axisMovement,Y.axisVelocity.map(function(ne){return eie(ne)}))}},W);o("wheel",As({},Y,{previous:d})),d=Y},m=function(W,Y){var ne=s,Z=ne.preventWheelAction,ae=Y[0],ce=Y[1],q=Y[2];if(typeof Z=="boolean")return Z;switch(Z){case"x":return Math.abs(ae)>=W;case"y":return Math.abs(ce)>=W;case"z":return Math.abs(q)>=W;default:return!1}},v=function(W){var Y=fie(cie(uie(W),s.reverseSign)),ne=Y.axisDelta,Z=Y.timeStamp,ae=u$(ne);if(W.preventDefault&&m(ae,ne)&&W.preventDefault(),a.isStarted?a.isMomentum&&ae>Math.max(2,a.lastAbsDelta*2)&&(x(!0),$()):$(),ae===0&&Object.is&&Object.is(W.deltaX,-0)){f=!0;return}u=W,a.axisMovement=vm(a.axisMovement,ne),a.lastAbsDelta=ae,a.scrollPointsToMerge.push({axisDelta:ne,timeStamp:Z}),b(),y({axisDelta:ne,isStart:!a.isStartPublished}),a.isStartPublished=!0,k()},b=function(){a.scrollPointsToMerge.length===hie?(a.scrollPoints.unshift({axisDeltaSum:a.scrollPointsToMerge.map(function(W){return W.axisDelta}).reduce(vm),timeStamp:nie(a.scrollPointsToMerge.map(function(W){return W.timeStamp}))}),w(),a.scrollPointsToMerge.length=0,a.scrollPoints.length=1,a.isMomentum||C()):a.isStartPublished||S()},S=function(){a.axisVelocity=tie(a.scrollPointsToMerge).axisDelta.map(function(W){return W/a.willEndTimeout})},w=function(){var W=a.scrollPoints,Y=W[0],ne=W[1];if(!(!ne||!Y)){var Z=Y.timeStamp-ne.timeStamp;if(!(Z<=0)){var ae=Y.axisDeltaSum.map(function(q){return q/Z}),ce=ae.map(function(q,ue){return q/(a.axisVelocity[ue]||1)});a.axisVelocity=ae,a.accelerationFactors.push(ce),T(Z)}}},T=function(W){var Y=Math.ceil(W/10)*10*1.2;a.isMomentum||(Y=Math.max(100,Y*2)),a.willEndTimeout=Math.min(1e3,Math.round(Y))},I=function(W){return W===0?!0:W<=pie&&W>=die},C=function(){if(a.accelerationFactors.length>=c$){if(f&&(f=!1,u$(a.axisVelocity)>=.2)){A();return}var W=a.accelerationFactors.slice(c$*-1),Y=W.every(function(ne){var Z=!!ne.reduce(function(ce,q){return ce&&ce<1&&ce===q?1:0}),ae=ne.filter(I).length===ne.length;return Z||ae});Y&&A(),a.accelerationFactors=W}},A=function(){a.isMomentum=!0}
59,$=function(){a=d$(),a.isStarted=!0,a.startTime=Date.now(),d=void 0,f=!1},k=(function(){var W;return function(){clearTimeout(W),W=setTimeout(x,a.willEndTimeout)}})(),x=function(W){W===void 0&&(W=!1),a.isStarted&&(a.isMomentum&&W?y({isEnding:!0,isMomentumCancel:!0}):y({isEnding:!0}),a.isMomentum=!1,a.isStarted=!1)},O=iie(p),M=O.observe,j=O.unobserve,V=O.disconnect;return h(e),gu({on:n,off:r,observe:M,unobserve:j,disconnect:V,feedWheel:p,updateOptions:h})}var yie={active:!0,breakpoints:{},wheelDraggingClass:"is-wheel-dragging",forceWheelAxis:void 0,target:void 0};P_.globalOptions=void 0;function P_(e){e===void 0&&(e={});var t,n=function(){};function r(s,a){var u,f,d=a.mergeOptions,p=a.optionsAtMedia,h=d(yie,P_.globalOptions),y=d(h,e);t=p(y);var m=s.internalEngine(),v=(u=t.target)!=null?u:s.containerNode().parentNode,b=(f=t.forceWheelAxis)!=null?f:m.options.axis,S=mie({preventWheelAction:b,reverseSign:[!0,!0,!1]});function w(){k=(b==="x"?m.containerRect.width:m.containerRect.height)/2}var T=S.observe(v),I=S.on("wheel",ce),C=!1,A,$=0,k=0,x=!1;w(),s.on("resize",w);function O(q){try{A=new MouseEvent("mousedown",q.event),ne(A)}catch{return n()}C=!0,$=0,j(),t.wheelDraggingClass&&v.classList.add(t.wheelDraggingClass)}function M(q){C=!1,ne(Y("mouseup",q)),V(),t.wheelDraggingClass&&v.classList.remove(t.wheelDraggingClass)}function j(){document.documentElement.addEventListener("mousemove",W,!0),document.documentElement.addEventListener("mouseup",W,!0),document.documentElement.addEventListener("mousedown",W,!0)}function V(){document.documentElement.removeEventListener("mousemove",W,!0),document.documentElement.removeEventListener("mouseup",W,!0),document.documentElement.removeEventListener("mousedown",W,!0)}function W(q){C&&q.isTrusted&&q.stopImmediatePropagation()}function Y(q,ue){var G,re;if(b===m.options.axis){var Oe=ue.axisMovement;G=Oe[0],re=Oe[1]}else{var Ee=ue.axisMovement;re=Ee[0],G=Ee[1]}var Pe=Z(ue),Ae=Pe.isAtBoundary;if(Ae){var le=Math.min($/k,1),Q=.25+le*.5,P=G>0?-1:1,F=$*P,B=F*Q;G+=B,re+=B}if(!m.options.skipSnaps&&!m.options.dragFree){var K=m.containerRect.width,L=m.containerRect.height;G=G<0?Math.max(G,-K):Math.min(G,K),re=re<0?Math.max(re,-L):Math.min(re,L)}return new MouseEvent(q,{clientX:A.clientX+G,clientY:A.clientY+re,screenX:A.screenX+G,screenY:A.screenY+re,movementX:G,movementY:re,button:0,bubbles:!0,cancelable:!0,composed:!0})}function ne(q){s.containerNode().dispatchEvent(q)}function Z(q){var ue=q.axisDelta,G=ue[0],re=ue[1],Oe=s.scrollProgress(),Ee=Oe<1,Pe=Oe>0,Ae=b==="x"?G:re,le=Ae<0,Q=Ae>0,P=le&&!Ee||Q&&!Pe;return{isAtBoundary:P,primaryAxisDelta:Ae}}function ae(q){var ue=Z(q),G=ue.isAtBoundary,re=ue.primaryAxisDelta;if(G&&!q.isMomentum){if($+=Math.abs(re),$>k)return x=!0,M(q),!0}else $=0;return!1}function ce(q){var ue=q.axisDelta,G=ue[0],re=ue[1],Oe=b==="x"?G:re,Ee=b==="x"?re:G,Pe=q.isMomentum&&q.previous&&!q.previous.isMomentum,Ae=q.isEnding&&!q.isMomentum||Pe,le=Math.abs(Oe)>Math.abs(Ee);le&&!C&&!q.isMomentum&&!x&&O(q),x&&q.isEnding&&(x=!1),C&&(ae(q)||(Ae?M(q):ne(Y("mousemove",q))))}n=function(){T(),I(),s.off("resize",w),V()}}var o={name:"wheelGestures",options:e,init:r,destroy:function(){return n()}};return o}const vie=["disabled"],_ie=["disabled"],bie=xe({__name:"CarouselArrows",props:{position:{},arrowsStyle:{},canScrollPrev:{type:Boolean},canScrollNext:{type:Boolean},showOnHover:{type:Boolean},isHovered:{type:Boolean},isDragging:{type:Boolean},withPagination:{type:Boolean}},emits:["prev","next"],setup(e){const t=e,n=J(()=>t.position==="bottom"||t.arrowsStyle==="icon"),r=J(()=>t.position==="bottom"||t.canScrollPrev),o=J(()=>t.position==="bottom"||t.canScrollNext);return(s,a)=>(U(),X("div",{class:Be(["carousel__arrows",[`carousel__arrows--${s.position}`,{"carousel__arrows--show-on-hover":s.showOnHover,"carousel__arrows--hovered":s.showOnHover&&s.isHovered&&!s.isDragging,"carousel__arrows--dragging":s.isDragging,"carousel__arrows--with-pagination":s.withPagination}]]),"data-test":"carousel-arrows"},[r.value?(U(),X("button",{key:0,type:"button","aria-label":"ÐÑокÑÑÑиÑÑ Ð²Ð»ÐµÐ²Ð¾",class:Be(["carousel__arrow carousel__arrow--left",`carousel__arrow--${s.arrowsStyle}`]),disabled:n.value&&!s.canScrollPrev,"data-test":"carousel-arrow-left",onClick:a[0]||(a[0]=ft(u=>s.$emit("prev"),["stop"]))},[s.arrowsStyle==="icon"?(U(),we(N(t_),{key:0})):(U(),we(N(Nu),{key:1}))],10,vie)):Ie("",!0),o.value?(U(),X("button",{key:1,type:"button","aria-label":"ÐÑокÑÑÑиÑÑ Ð²Ð¿Ñаво",class:Be(["carousel__arrow carousel__arrow--right",`carousel__arrow--${s.arrowsStyle}`]),disabled:n.value&&!s.canScrollNext,"data-test":"carousel-arrow-right",onClick:a[1]||(a[1]=ft(u=>s.$emit("next"),["stop"]))},[s.arrowsStyle==="icon"?(U(),we(N(r_),{key:0})):(U(),we(N(Js),{key:1}))],10,_ie)):Ie("",!0)],2))}}),Yh=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},wie=Yh(bie,[["__scopeId","data-v-89208d5c"]]),Eie={class:"carousel__pagination","data-test":"carousel-pagination"},Sie=["data-test"],$ie=xe({__name:"CarouselPagination",props:{pagesCount:{},selectedIndex:{}},setup(e){return(t,n)=>(U(),X("div",Eie,[(U(!0),X(He,null,dt(t.pagesCount,(r,o)=>(U(),X("div",{key:o,class:Be(["carousel__pagination-item",{"carousel__pagination-item--active":t.selectedIndex===o}]),"data-test":`carousel-pagination-dot-${o}`},null,10,Sie))),128))]))}}),Tie=Yh($ie,[["__scopeId","data-v-2f8881d1"]]),Iie={key:0,class:"carousel__slide-counter ui-body-sm-medium","data-test":"carousel-slide-counter"},Aie={class:"carousel__slide-clip"},xie=xe({__name:"CarouselSlide",props:{index:{},slidesCount:{default:void 0},showCounter:{type:Boolean,default:!1},slideMaxWidth:{default:"100%"}},setup(e){const t=e,n=J(()=>({maxWidth:t.slideMaxWidth}));return(r,o)=>(U(),X("div",{class:"carousel__slide",style:at(n.value)},[r.showCounter&&r.slidesCount?(U(),X("span",Iie,Ue(r.index+1)+"/"+Ue(r.slidesCount),1)):Ie("",!0),te("div",Aie,[De(r.$slots,"default",{},void 0,!0)])],4))}}),bm=Yh(xie,[["__scopeId","data-v-422bead5"]]);function Cie(e,t){const n=ie(!1),r=ie(!1),o=ie(-1),s=ie(0),a=ie(0),u=ie(!1);let f=0,d=!1;const p=($,k,x)=>
59{if(k===$)return null;const O=x-1;return $===O&&k===0?"right":$===0&&k===O?"left":k>$?"right":"left"},h=()=>{const $=e.value;if(!$)return;const k=$.canScrollPrev(),x=$.canScrollNext(),O=$.selectedScrollSnap(),M=$.scrollSnapList().length,j=$.slidesInView(),V=j.length?Math.max(...j):-1;(n.value!==k||r.value!==x||s.value!==O||a.value!==M||o.value!==V)&&(n.value=k,r.value=x,s.value=O,a.value=M,o.value=V)},y=$=>{if($===f)return;const k=e.value?.scrollSnapList().length??0,x=p(f,$,k);x&&t("scroll",x),f=$},m=()=>{h(),y(s.value)},v="carousel-dragging",b=$=>{typeof document>"u"||document.body.classList.toggle(v,$)},S=()=>{u.value=!0,b(!0)},w=()=>{u.value=!1,b(!1),h()},T=()=>{u.value||d||h()},I=()=>{d=!0},C=()=>{d=!1,h()},A=()=>{d=!1,h()};return ke(e,($,k,x)=>{$&&(d=!1,h(),f=$.selectedScrollSnap(),$.on("select",m),$.on("reInit",A),$.on("slidesInView",T),$.on("scroll",I),$.on("settle",C),$.on("pointerDown",S),$.on("pointerUp",w),x(()=>{u.value=!1,d=!1,b(!1),$.off("select",m),$.off("reInit",A),$.off("slidesInView",T),$.off("scroll",I),$.off("settle",C),$.off("pointerDown",S),$.off("pointerUp",w)}))},{immediate:!0}),{canScrollPrev:n,canScrollNext:r,lastVisibleIndex:o,selectedIndex:s,pagesCount:a,isDragging:u}}const Rie=e=>new Proxy(e,{get:(t,n)=>n==="preventDefault"?void 0:t[n]}),Oie=e=>{let t,n;return{addEventListener:(r,o)=>{t=e(),n=s=>o(Rie(s)),t?.addEventListener(r,n,{passive:!0})},removeEventListener:r=>{n&&t?.removeEventListener(r,n),n=void 0},get classList(){return t?.classList}}},p$=e=>{const t=e.internalEngine();e.reInit();const n=e.internalEngine();["scrollBody","location","offsetLocation","previousLocation","target"].forEach(o=>{Object.assign(n[o],t[o])}),n.translate.to(t.location.get());const{index:r}=n.scrollTarget.byDistance(0,!1);n.index.set(r),n.animation.start()},kie=e=>{const t=e.internalEngine();if(t.dragHandler.pointerDown()){const n=t.limit.reachedMax(t.target.get());t.scrollBounds.toggleActive(n);const r=()=>{e.off("pointerUp",r),p$(e)};e.on("pointerUp",r)}else p$(e);return!1},Lie="carousel-wheel-hovered",Mie=xe({__name:"Carousel",props:{items:{},showCounter:{type:Boolean,default:!1},gap:{default:12},arrows:{type:Boolean,default:!1},arrowsConfig:{default:void 0},pagination:{type:Boolean,default:!1},viewportHeight:{default:void 0},slideMaxWidth:{default:"100%"},showBefore:{type:Boolean,default:!1},showAfter:{type:Boolean,default:!1},options:{default:()=>({})}},emits:["change","scroll"],setup(e,{emit:t}){const n={dragFree:!1,containScroll:"trimSnaps",align:"start",slidesToScroll:1,skipSnaps:!0,watchSlides:kie},r=e,o=t,s=J(()=>({...n,...r.options}));let a=()=>{};const u=[P_({forceWheelAxis:"x",target:Oie(()=>a())})],[f,d]=M_(s,u);a=()=>f.value;const{canScrollPrev:p,canScrollNext:h,lastVisibleIndex:y,selectedIndex:m,pagesCount:v,isDragging:b}=Cie(d,o),S=ie(!1),w=J(()=>r.items.length),T=J(()=>r.arrowsConfig?.position??"side"),I=J(()=>r.arrowsConfig?.style??"round"),C=J(()=>!!r.arrowsConfig?.showOnHover),A=J(()=>r.arrowsConfig?.scrollStep??1),$=J(()=>r.pagination&&v.value>1),k=J(()=>r.viewportHeight?{height:r.viewportHeight}:void 0),x=Y=>{typeof document>"u"||document.documentElement.classList.toggle(Lie,Y)};bt(()=>x(!1));const O=()=>{x(!0),C.value&&(S.value=!0)},M=()=>{x(!1),S.value=!1},j=Y=>{const ne=d.value;if(!ne)return;const Z=ne.selectedScrollSnap(),ae=ne.scrollSnapList().length-1,ce=Math.max(0,Math.min(ae,Z+Y*A.value));ce!==Z&&(ne.scrollTo(ce),o("change",ce+1))},V=()=>{p.value&&j(-1)},W=()=>{h.value&&j(1)};return(Y,ne)=>(U(),X("div",{class:"carousel","data-test":"carousel",onMouseenter:O,onMouseleave:M},[te("div",{ref_key:"carouselRef",ref:f,class:"carousel__viewport",style:at(k.value),"data-test":"carousel-viewport"},[te("div",{class:"carousel__container",style:at({gap:`${Y.gap}px`})},[Y.showBefore?(U(),we(bm,{key:0,index:0,"show-counter":!1,"slide-max-width":Y.slideMaxWidth,"data-test":"carousel-slide-before"},{default:be(()=>[De(Y.$slots,"before",{},void 0,!0)]),_:3},8,["slide-max-width"])):Ie("",!0),(U(!0),X(He,null,dt(Y.items,(Z,ae)=>(U(),we(bm,{key:Z.id??ae,index:ae,"slides-count":w.value,"show-counter":Y.showCounter,"slide-max-width":Y.slideMaxWidth,"data-test":`carousel-slide-${ae}`},{default:be(()=>
59[De(Y.$slots,"default",{item:Z,index:ae,canScrollPrev:N(p),canScrollNext:N(h),lastVisibleIndex:N(y)},void 0,!0)]),_:2},1032,["index","slides-count","show-counter","slide-max-width","data-test"]))),128)),Y.showAfter?(U(),we(bm,{key:1,index:w.value,"show-counter":!1,"slide-max-width":Y.slideMaxWidth,"data-test":"carousel-slide-after"},{default:be(()=>[De(Y.$slots,"after",{},void 0,!0)]),_:3},8,["index","slide-max-width"])):Ie("",!0)],4)],4),Y.arrows?(U(),we(wie,{key:0,position:T.value,"arrows-style":I.value,"can-scroll-prev":N(p),"can-scroll-next":N(h),"show-on-hover":C.value,"is-hovered":S.value,"is-dragging":N(b),"with-pagination":$.value,onPrev:V,onNext:W},null,8,["position","arrows-style","can-scroll-prev","can-scroll-next","show-on-hover","is-hovered","is-dragging","with-pagination"])):Ie("",!0),$.value?(U(),we(Tie,{key:1,"pages-count":N(v),"selected-index":N(m)},null,8,["pages-count","selected-index"])):Ie("",!0)],32))}}),pR=Yh(Mie,[["__scopeId","data-v-7e567eef"]]);var Oo=(e=>(e.RU="ru",e.CYBER="cyber",e.UA="ua",e.BY="by",e.KZ="kz",e))(Oo||{}),hR=(e=>(e.BEST_ONLY="best-only",e.CONTROL="control",e))(hR||{});const qp={name:"blog-posts",groups:hR},Pie=[{group:qp.groups.BEST_ONLY,probability:30},{group:qp.groups.CONTROL,probability:70}];function Bie(e){return{[qp.name]:e.getGroup(qp.name,Pie)}}var gR=(e=>(e.WOCHANGES="wochanges",e.WITHOUTAD="withoutad",e.LARGER="larger",e.CONTROL="control",e))(gR||{});const ka={name:"adtest",groups:gR},Nie=[{group:ka.groups.WOCHANGES,probability:10},{group:ka.groups.WITHOUTAD,probability:10},{group:ka.groups.LARGER,probability:10},{group:ka.groups.CONTROL,probability:70}];function Die(e){return{[ka.name]:e.getGroup(ka.name,Nie)}}var mR=(e=>(e.A="a",e.B="b",e.C="c",e))(mR||{});const Ml={name:"userGroup",groups:mR},Uie=[{group:Ml.groups.A,probability:1},{group:Ml.groups.B,probability:1},{group:Ml.groups.C,probability:1}];function Hie(e){return{[Ml.name]:e.getGroup(Ml.name,Uie)}}var yR=(e=>(e.FIRST="1",e.SECOND="2",e.THIRD="3",e))(yR||{});const Pl={name:"home-fires",groups:yR},Fie=[{group:Pl.groups.FIRST,probability:1},{group:Pl.groups.SECOND,probability:1},{group:Pl.groups.THIRD,probability:1}];function jie(e){return{[Pl.name]:e.getGroup(Pl.name,Fie)}}var vR=(e=>(e.FB_REPLACED_WITH_YANDEX="fb-replaced-with-yandex",e.NO_CHANGES_FIRST="no-changes-first",e.NO_CHANGES_SECOND="no-changes-second",e))(vR||{});const Bl={name:"user-panel-auth",groups:vR},Vie=[{group:Bl.groups.FB_REPLACED_WITH_YANDEX,probability:1},{group:Bl.groups.NO_CHANGES_FIRST,probability:1},{group:Bl.groups.NO_CHANGES_SECOND,probability:1}];function qie(e){return{[Bl.name]:e.getGroup(Bl.name,Vie)}}var _R=(e=>(e.OWN="own",e.OWN_NEW="own-new",e.OWN_CYBER="own-cyber",e))(_R||{});const mu={name:"own-recommender",groups:_R,default:"own-new"},bR=[{group:mu.groups.OWN_NEW,probability:100}],Wie=[{group:mu.groups.OWN_CYBER,probability:100}],zie=[{group:mu.groups.OWN_NEW,probability:100}],Gie={[Oo.RU]:bR,[Oo.CYBER]:Wie,[Oo.KZ]:zie};function Yie(e){switch(e){case Oo.CYBER:return"1.2";case Oo.RU:return"1.1";case Oo.KZ:return"1.1";default:return"1.0"}}function Kie(e){const t=e.getCurrentSite(),n=Yie(t),r=Gie[t]||bR;return{[mu.name]:e.getGroup(mu.name,r,n)}}var wR=(e=>(e.A="a",e.B="b",e))(wR||{});const Wp={name:"userGroupOf2",groups:wR},Zie=[{group:Wp.groups.A,probability:50},{group:Wp.groups.B,probability:50}];function Qie(e){return{[Wp.name]:e.getGroup(Wp.name,Zie)}}var ER=(e=>(e.A="a",e.B="b",e.C="c",e.D="d",e))(ER||{});const La={name:"userGroupOf4",groups:ER},Jie=[{group:La.groups.A,probability:25},{group:La.groups.B,probability:25},{group:La.groups.C,probability:25},{group:La.groups.D,probability:25}];function Xie(e){return{[La.name]:e.getGroup(La.name,Jie)}}const ese="1.0";var SR=(e=>(e.TRIBUNA="tribuna",e.PROJECTOR="projector",e.APP="app",e))(SR||{});const Nl={name:"post-promo",groups:SR},tse=[{group:Nl.groups.TRIBUNA,probability:30},{group:Nl.groups.PROJECTOR,probability:30},{group:Nl.groups.APP,probability:40}];function nse(e){return{[Nl.name]:e.getGroup(Nl.name,tse,ese)}}var $R=(e=>(e.A="a",e.B="b",e))($R||{});const zp={name:"matchPredictionVersion2",groups:$R},rse=[{group:zp.groups.A,probability:50},{group:zp.groups.B,probability:50}],ose="1.0";function ise(e){return{[zp.name]:e.getGroup(zp.name,rse,ose)}}var TR=(e=>(e.LANDING_REGISTRATION_CREATION="LANDING_REGISTRATION_CREATION",e.LANDING_CREATION_REGISTRATION="LANDING_CREATION_REGISTRATION",e.CREATION_REGISTRATION="CREATION_REGISTRATION",e))(TR||{});const Dl={name:"sirenaFantasyJourney",groups:TR},sse=[{group:Dl.groups.LANDING_REGISTRATION_CREATION,probability:33},{group:Dl.groups.LANDING_CREATION_REGISTRATION,probability:33},{group:Dl.groups.CREATION_REGISTRATION,probability:33}],ase="1.0";function use(e){return{[Dl.name]:e.getGroup(Dl.name,sse,ase)}}var IR=(e=>(e.STANDARD="standard",e.COUPON="coupon",e))(IR||{});const Gp={name:"page-header",groups:IR},lse=[{group:Gp.groups.STANDARD,probability:50},{group:Gp.groups.COUPON,probability:50}];function cse(e){return{[Gp.name]:e.getGroup(Gp.name,lse)}}let fse=class{constructor(t){this._instance=t,this._groups={},this.setupGroups()}getActiveGroup(t,n){return this._groups[t]||n}setupGroups(){this._groups=this.getGroupsFromSettings([Die,Bie,jie,Kie,Hie,qie,Qie,Xie,nse,ise,use,cse])}getGroupsFromSettings(t){return t.reduce((n,r)=>Object.assign({},n,r(this._instance)),{})}};const wm={},dse={storagePrefix:"utils:split-testing:",storageSuffix:":group"};let pse=class{constructor(t,n={}){this.deps=t,this.options=n,this.deps=t,this.options={...dse,...n}}getTestKey(t){return this.options.storagePrefix+t+this.options.storageSuffix}setTest(t,n,r="1.0",o){const{group:s}=this.deps.randomSelector.selectWithProbability(n,!1),a=this.getTestKey(t);if(o&&o.session){const u={data:s,version:r};window.sessionStorage.setItem(a,JSON.stringify(u))}return this.deps.localStorage.set(a,s,r),s}removeTest(t,n){const r=this.getTestKey(t);n&&n.session&&window.sessionStorage.removeItem(r),this.deps.localStorage.remove(r)}getDataFromStorage(t,n){const r=this.getTestKey(t);return n&&n.session?this.parseData(window.sessionStorage.getItem(r)):this.deps.localStorage.getData(r,!1,!0)}parseData(t){return t===null?{data:"",version:""}:JSON.parse(t)}getGroup(t,n,r,o=!1){const s=this.getDataFromStorage(t,{session:o}
59),a=!!s&&typeof s!="boolean"&&typeof s!="string"&&!!s.data,u=!a||!s.version&&r||r&&s.version!==r;let f="";return a&&(f=s.data),u&&(f=this.setTest(t,n,r,{session:o})),f}getCurrentSite(){return this.deps.currentSite||Oo.RU}removeGroup(t){this.removeTest(t)}getGroupPerView(t,n){if(t in wm)return wm[t];const{group:r}=this.deps.randomSelector.selectWithProbability(n,!1);return wm[t]=r,r}getGroupPerSession(t,n,r){return this.getGroup(t,n,r,!0)}removeGroupPerSession(t){this.removeTest(t,{session:!0})}},AR=class extends Error{constructor(t,n=""){super(`[Sports][Recommendations] Code: ${t} ${n}`)}};var B_=(e=>(e.GQL_INSTANCE_UNDEFINED="GQL_INSTANCE_UNDEFINED",e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.REQUEST_ERROR="REQUEST_ERROR",e.INJECTION_ERROR="INJECTION_ERROR",e))(B_||{}),xR=(e=>(e.SPORTS="sports",e.CYBER="cyber",e))(xR||{}),qv=(e=>(e.NEWS="NEWS",e.POST="POST",e))(qv||{});const $f=e=>" id name webname relativeUrl icon ".replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,""),Kh=e=>" id url following counters { followersCount } badge { imageURL imageURLDark description } picture { url } nick ".replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,""),ju=e=>" id name subscribed urls { relativeURL desktopURL mobileURL } images { bigLogo } ".replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,""),CR=e=>` id type title bookmarked blog { id name relativeUrl webname } teaserText status published { rfc3339 } pageInfo { desktopURL relativeURL } rating { total plus minus canRate action isDisabled } section { ${$f()} } commentsCount authors { ${Kh()} } hot recommendationImage tags { tag { ${ju()} } isMain } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,""),RR=e=>` id type title hot commentsCount contentOption { colorCode name rusName } section { ${$f()} } pageInfo { desktopURL relativeURL } published { rfc3339 } tags { tag { ${ju()} } isMain } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,""),OR=e=>` { recommendationQueries { list(limit: ${e.limit}, offset: ${e.offset}, filter: ${e.filter}) { documents { ... on documentPost { ${CR()} topPicture( input: { resize: ${e.imageResize}, ext: ${e.imageExt}, scale: ${e.imageScale}, smartCropEnabled: ${e.imageSmartCropEnabled}, aspectWidth: ${e.imageAspectWidth}, aspectHeight: ${e.imageAspectHeight}, keepSmall: ${e.imageKeepSmall} } ) { url } } ... on documentNews { ${RR()} } } hasMore offset } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");OR.operationName="recommendationList";const kR=e=>` { recommendationQueries { similar(input: {ID: ${JSON.stringify(e.id)}, documentType: ${e.type}, limit: ${e.limit}}) { documents { ... on documentPost { id type title blog { id name relativeUrl webname } teaserText status published { rfc3339 } pageInfo { desktopURL relativeURL } rating { total plus minus canRate action isDisabled } section { webname relativeUrl } commentsCount topPicture( input: { resize: ${e.imageResize}, ext: ${e.imageExt}, scale: ${e.imageScale}, smartCropEnabled: ${e.imageSmartCropEnabled}, aspectWidth: ${e.imageAspectWidth}, aspectHeight: ${e.imageAspectHeight}, keepSmall: ${e.imageKeepSmall} } ) { url } authors { id url following counters { followersCount } picture { url } nick } hot recommendationImage } ... on documentNews { id type title hot commentsCount section { id name webname } pageInfo { desktopURL relativeURL } published { rfc3339 } } } } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");kR.operationName="recommendationCyber";const LR=e=>` { recommendationQueries { authorList(limit: ${e.limit}, offset: ${e.offset}) { authors { ${Kh()} } } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");LR.operationName="recommendationAuthors";const N_=e=>" id name subtitle avatar { url } subscribed subscribersCount relativeUrl subscribers(limit: 3) { totalCount subscribers { id nick picture(input: { resize: SIZE_48_48 }) { url } } } subscribedFriends { count list { id nick picture(input: { resize: SIZE_48_48 }) { url } } } ".replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,""),MR=e=>` { recommendationQueries { blogList(limit: ${e.limit}, offset: ${e.offset}) { blogs { ${N_()} } } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");MR.operationName="recommendationBlogs";const PR=e=>` { recommendationQueries { tagList(limit: ${e.limit}, offset: ${e.offset}) { tags { ${ju()} } } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");PR.operationName="recommendationTags";const BR=e=>` { recommendationQueries { tagsSubscriptions(limit: ${e.limit}, offset: ${e.offset}) { list { ${ju()} } hasMore } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");BR.operationName="tagsSubscriptions";const NR=e=>` { recommendationQueries { sectionList(limit: ${e.limit}, offset: ${e.offset}) { sections { ${$f()} } hasMore } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");NR.operationName="recommendationSections";const DR=e=>` { recommendationMutations { ignore(id: ${JSON.stringify(e.id)}, ignoreType: ${e.type}) { success customErr { ... on IgnoreError { message code } } } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");DR.operationName="ignore";const UR=e=>` { recommendationMutations { unignore(id: ${JSON.stringify(e.id)}, ignoreType: ${e.type}) { success } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");UR.operationName="unignore";const HR=e=>` { recommendationMutations { setPreference(input: { documentID: ${JSON.stringify(e.documentId)}, documentType: ${e.documentType}, preference: ${e.preference} }) { success } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");HR.operationName="setPreference";const FR=e=>` { recommendationQueries { ignoredTagsList { tags { ${ju()} } lastId total hasMore } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");FR.operationName="getIgnoredTagList";const jR=e=>` { recommendationQueries { ignoredBlogsList { blogs { ${N_()} } } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");jR.operationName="getIgnoredBlogList";const VR=e=>` { recommendationQueries { ignoredSectionsList { sections { ${$f()} } } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");VR.operationName="getIgnoredSectionList";const qR=e=>` { recommendationQueries { ignoredAuthorsList { ${Kh()} } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");qR.operationName="getIgnoredAuthorList";const WR=e=>` { recommendationQueries { ignoredList { authors { ${Kh()} } blogs { hasMore page totalCount blogs { ${N_()} } } tags { tags { ${ju()} } } sections { sections { ${$f()} } } } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");WR.operationName="getIgnoredList";const zR=e=>` { recommendationMutations { updateIgnored(input: ${e.input}) { success } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");zR.operationName="updateIgnoreList";const hse=e=>" structuredBody { type raw value { ... on StructuredBodyParagraph { size elements { type value { ... on StructuredBodyParagraphElementText { text format { bold strike underscore color } } ... on StructuredBodyParagraphElementLink { text href format { bold strike underscore } } } } } ... on StructuredBodyImage { alt text width height picture { url } } ... on StructuredBodyLinkedImage { href attrs { rel } image { alt text width height picture { url } } } ... on StructuredBodySubtitle { text } } } ".replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,""),GR=e=>` { recommendationQueries { feed(limit: ${e.limit}, tags: ${JSON.stringify(e.tags)}, docTypes: [${e.docTypes}]) { documents { ... on documentPost { ${CR()} isShort reactions { count selected reaction { content { imageUrl } id } } blog { avatar { url } } ${hse()} topPicture( input: { resize: ${e.imageResize}, ext: ${e.imageExt}, scale: ${e.imageScale}, smartCropEnabled: ${e.imageSmartCropEnabled}, aspectWidth: ${e.imageAspectWidth}, aspectHeight: ${e.imageAspectHeight}, keepSmall: ${e.imageKeepSmall} }) { url } mediaList { id picture( input: { resize: ${e.imageResize}, ext: ${e.imageExt}, scale: ${e.imageScale}, smartCropEnabled: ${e.imageSmartCropEnabled}, aspectWidth: ${e.imageAspectWidth}, aspectHeight: ${e.imageAspectHeight}, keepSmall: ${e.imageKeepSmall} } ) { url } } } ... on documentNews { ${RR()} } } hasMore offset log } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");GR.operationName="getRecommendationFeed";const YR=e=>` { postQueries { matchPosts( ID: ${JSON.stringify(e.id)} source: ${e.source} amount: ${e.amount} before: ${e.before} team: ${e.team} sport: ${e.sport} ) { lastId totalCount hasMore posts { id type title topPicture( input: { resize: ${e.imageResize}, ext: ${e.imageExt}, scale: ${e.imageScale}, smartCropEnabled: ${e.imageSmartCropEnabled}, aspectWidth: ${e.imageAspectWidth}, aspectHeight: ${e.imageAspectHeight}, keepSmall: ${e.imageKeepSmall} } ) { url } published { epoch bunin rfc3339 } commentsCount pageInfo { desktopURL mobileURL relativeURL } hot rating { total plus minus total } sponsored nofollow contentOption { colorCode rusName name } recommendationImage } } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");YR.operationName="recommendationByMatch";const KR=e=>` { statQueries { football { match(id: ${JSON.stringify(e.id)}, source: ${e.matchSource}) { id home { team { id name } } away { team { id name } } } } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");KR.operationName="footballMatchInfo";const ZR=e=>` { statQueries { hockey { match(id: ${JSON.stringify(e.id)}, source: ${e.matchSource}) { id home { team { id name } } away { team { id name } } } } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");ZR.operationName="hockeyMatchInfo";const QR=e=>` { statQueries { tennis { match(id: ${JSON.stringify(e.id)}, source: ${e.matchSource}) { id contestantA { ... on tennisSinglePerson { contestantId person { id name } } ... on tennisDouble { contestantId first { id name } second { id name } } } contestantB { ... on tennisSinglePerson { contestantId person { id name } } ... on tennisDouble { contestantId first { id name } second { id name } } } } } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");QR.operationName="tennisMatchInfo";var _l=(e=>(e.BASKETBALL="BASKETBALL",e.FOOTBALL="FOOTBALL",e.HOCKEY="HOCKEY",e.TENNIS="TENNIS",e))(_l||{}),JR=(e=>(e.ALREADY_IGNORED="ALREADY_IGNORED",e))(JR||{}),bc=(e=>(e.CANCEL_DISLIKE="CANCEL_DISLIKE",e.CANCEL_SEEN="CANCEL_SEEN",e.DISLIKE="DISLIKE",e.SEEN="SEEN",e))(bc||{}),D_=(e=>(e.NEWS="NEWS",e.POST="POST",e.SHORTPOST="SHORTPOST",e))(D_||{}),bl=(e=>(e.AUTHOR="AUTHOR",e.BLOG="BLOG",e.SECTION="SECTION",e.TAG="TAG",e))(bl||{}),XR=(e=>(e.ALL="ALL",e.AWAY="AWAY",e.HOME="HOME",e.TOURNAMENT="TOURNAMENT",e))(XR||{}),e5=(e=>(e.ALL="ALL",e.NEWS="NEWS",e.POST="POST",e))(e5||{});function U_(e){if(!e)throw new AR(B_.GQL_INSTANCE_UNDEFINED);const t=new xh({});return{async getRecommendations({limit:n=10,offset:r=0,filter:o=e5.ALL,imageInput:s}){return(await e.gqlQuery(OR,{limit:n,offset:r,filter:o,imageResize:s?.resize,imageExt:s?.ext,imageScale:s?.scale,imageSmartCropEnabled:s?.smartCropEnabled,imageAspectWidth:s?.aspectWidth,imageAspectHeight:s?.aspectHeight,imageKeepSmall:s?.keepSmall})).list},async getRecommendationsCyber({id:n,type:r=D_.POST,limit:o=10,imageInput:s}){return(await e.gqlQuery(kR,{id:n,type:r,limit:o,imageResize:s?.resize,imageExt:s?.ext,imageScale:s?.scale,imageSmartCropEnabled:s?.smartCropEnabled,imageAspectWidth:s?.aspectWidth,imageAspectHeight:s?.aspectHeight,imageKeepSmall:s?.keepSmall})).similar},async getRecommendationFeed({limit:n=10,documentTypes:r,tags:o,imageInput:s}){return(await e.gqlQuery(GR,{limit:n,tags:o,docTypes:r||[],imageResize:s?.resize,imageExt:s?.ext,imageScale:s?.scale,imageSmartCropEnabled:s?.smartCropEnabled,imageAspectWidth:s?.aspectWidth,imageAspectHeight:s?.aspectHeight,imageKeepSmall:s?.keepSmall})).feed},async getRecommendationAuthors({limit:n=10,offset:r=0}){return(await e.gqlQuery(LR,{limit:n,offset:r})).authorList},async getRecommendationBlogs({limit:n=10,offset:r=0}){return(await e.gqlQuery(MR,{limit:n,offset:r})).blogList},async getRecommendationTags({limit:n=10,offset:r=0}){return(await e.gqlQuery(PR,{limit:n,offset:r})).tagList}
59,async getTagsSubscriptions({limit:n=10,offset:r=0}){return(await e.gqlQuery(BR,{limit:n,offset:r})).tagsSubscriptions},async getRecommendationSections({limit:n=10,offset:r=0}){return(await e.gqlQuery(NR,{limit:n,offset:r})).sectionList},async ignore({id:n,type:r}){return(await e.gqlMutation(DR,{id:n,type:r})).recommendationMutations.ignore},async unignore({id:n,type:r}){return(await e.gqlMutation(UR,{id:n,type:r})).recommendationMutations.unignore},async setPreference({documentId:n,documentType:r,preference:o}){return(await e.gqlMutation(HR,{documentId:n,documentType:r,preference:o})).recommendationMutations.setPreference.success},async getIgnoredTags(){return(await e.gqlQuery(FR,{})).ignoredTagsList.tags},async getIgnoredBlogs(){return(await e.gqlQuery(jR,{})).ignoredBlogsList.blogs},async getIgnoredAuthors(){return(await e.gqlQuery(qR,{})).ignoredAuthorsList},async getIgnoredSections(){return(await e.gqlQuery(VR,{})).ignoredSectionsList.sections},async getIgnoredList(){return(await e.gqlQuery(WR,{})).ignoredList},async updateIgnoreList(n){return(await e.gqlMutation(zR,{input:voe(n)})).recommendationMutations.updateIgnored.success},async getMatchRecommendations({matchId:n,source:r,amount:o,before:s,team:a="ALL",sport:u,imageInput:f}){try{return(await e.gqlQuery(YR,{id:n,source:r,amount:o,before:s,team:a,sport:u,imageResize:f?.resize,imageExt:f?.ext,imageScale:f?.scale,imageSmartCropEnabled:f?.smartCropEnabled,imageAspectWidth:f?.aspectWidth,imageAspectHeight:f?.aspectHeight,imageKeepSmall:f?.keepSmall})).matchPosts}catch{return[]}},async getFootballMatchTeamInfo(n,r){try{return(await e.gqlQuery(KR,{id:n,matchSource:r})).football.match}catch{return null}},async getHockeyMatchTeamInfo(n,r){try{return(await e.gqlQuery(ZR,{id:n,matchSource:r})).hockey.match}catch{return null}},async getTennisMatchTeamInfo(n,r){try{const o=(await e.gqlQuery(QR,{id:n,matchSource:r})).tennis.match;if(!o)return null;const s=h=>{var y,m;if(!h)return null;if("person"in h&&h.person)return h.person.name||null;if("first"in h||"second"in h){const v=h,b=((y=v.first)==null?void 0:y.name)||"",S=((m=v.second)==null?void 0:m.name)||"";return b&&S?`${b} / ${S}`:b||S||null}return null},a=h=>h&&h.contestantId||null,u=s(o.contestantA),f=s(o.contestantB),d=a(o.contestantA),p=a(o.contestantB);return{id:o.id,home:o.contestantA&&u?{team:{id:d||"",name:u}}:null,away:o.contestantB&&f?{team:{id:p||"",name:f}}:null}}catch(o){return t.error(o),null}}}}var Yp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function gse(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var mse={},t5={},Zh={};Zh.byteLength=_se;Zh.toByteArray=wse;Zh.fromByteArray=$se;var Yr=[],ir=[],yse=typeof Uint8Array<"u"?Uint8Array:Array,Em="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var va=0,vse=Em.length;va<vse;++va)Yr[va]=Em[va],ir[Em.charCodeAt(va)]=va;ir[45]=62;ir[95]=63;function n5(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function _se(e){var t=n5(e),n=t[0],r=t[1];return(n+r)*3/4-r}function bse(e,t,n){return(t+n)*3/4-n}function wse(e){var t,n=n5(e),r=n[0],o=n[1],s=new yse(bse(e,r,o)),a=0,u=o>0?r-4:r,f;for(f=0;f<u;f+=4)t=ir[e.charCodeAt(f)]<<18|ir[e.charCodeAt(f+1)]<<12|ir[e.charCodeAt(f+2)]<<6|ir[e.charCodeAt(f+3)],s[a++]=t>>16&255,s[a++]=t>>8&255,s[a++]=t&255;return o===2&&(t=ir[e.charCodeAt(f)]<<2|ir[e.charCodeAt(f+1)]>>4,s[a++]=t&255),o===1&&(t=ir[e.charCodeAt(f)]<<10|ir[e.charCodeAt(f+1)]<<4|ir[e.charCodeAt(f+2)]>>2,s[a++]=t>>8&255,s[a++]=t&255),s}function Ese(e){return Yr[e>>18&63]+Yr[e>>12&63]+Yr[e>>6&63]+Yr[e&63]}function Sse(e,t,n){for(var r,o=[],s=t;s<n;s+=3)r=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(e[s+2]&255),o.push(Ese(r));return o.join("")}function $se(e){for(var t,n=e.length,r=n%3,o=[],s=16383,a=0,u=n-r;a<u;a+=s)o.push(Sse(e,a,a+s>u?u:a+s));return r===1?(t=e[n-1],o.push(Yr[t>>2]+Yr[t<<4&63]+"==")):r===2&&(t=(e[n-2]<<8)+e[n-1],o.push(Yr[t>>10]+Yr[t>>4&63]+Yr[t<<2&63]+"=")),o.join("")}var H_={};H_.read=function(e,t,n,r,o){var s,a,u=o*8-r-1,f=(1<<u)-1,d=f>>
vendor: 28,743 bytes, line 59
591,p=-7,h=n?o-1:0,y=n?-1:1,m=e[t+h];for(h+=y,s=m&(1<<-p)-1,m>>=-p,p+=u;p>0;s=s*256+e[t+h],h+=y,p-=8);for(a=s&(1<<-p)-1,s>>=-p,p+=r;p>0;a=a*256+e[t+h],h+=y,p-=8);if(s===0)s=1-d;else{if(s===f)return a?NaN:(m?-1:1)*(1/0);a=a+Math.pow(2,r),s=s-d}return(m?-1:1)*a*Math.pow(2,s-r)};H_.write=function(e,t,n,r,o,s){var a,u,f,d=s*8-o-1,p=(1<<d)-1,h=p>>1,y=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,m=r?0:s-1,v=r?1:-1,b=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,a=p):(a=Math.floor(Math.log(t)/Math.LN2),t*(f=Math.pow(2,-a))<1&&(a--,f*=2),a+h>=1?t+=y/f:t+=y*Math.pow(2,1-h),t*f>=2&&(a++,f/=2),a+h>=p?(u=0,a=p):a+h>=1?(u=(t*f-1)*Math.pow(2,o),a=a+h):(u=t*Math.pow(2,h-1)*Math.pow(2,o),a=0));o>=8;e[n+m]=u&255,m+=v,u/=256,o-=8);for(a=a<<o|u,d+=o;d>0;e[n+m]=a&255,m+=v,a/=256,d-=8);e[n+m-v]|=b*128};(function(e){const t=Zh,n=H_,r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=u,e.SlowBuffer=T,e.INSPECT_MAX_BYTES=50;const o=2147483647;e.kMaxLength=o,u.TYPED_ARRAY_SUPPORT=s(),!u.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function s(){try{const i=new Uint8Array(1),l={foo:function(){return 42}};return Object.setPrototypeOf(l,Uint8Array.prototype),Object.setPrototypeOf(i,l),i.foo()===42}catch{return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}});function a(i){if(i>o)throw new RangeError('The value "'+i+'" is invalid for option "size"');const l=new Uint8Array(i);return Object.setPrototypeOf(l,u.prototype),l}function u(i,l,c){if(typeof i=="number"){if(typeof l=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return h(i)}return f(i,l,c)}u.poolSize=8192;function f(i,l,c){if(typeof i=="string")return y(i,l);if(ArrayBuffer.isView(i))return v(i);if(i==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof i);if(fe(i,ArrayBuffer)||i&&fe(i.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(fe(i,SharedArrayBuffer)||i&&fe(i.buffer,SharedArrayBuffer)))return b(i,l,c);if(typeof i=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const g=i.valueOf&&i.valueOf();if(g!=null&&g!==i)return u.from(g,l,c);const _=S(i);if(_)return _;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof i[Symbol.toPrimitive]=="function")return u.from(i[Symbol.toPrimitive]("string"),l,c);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof i)}u.from=function(i,l,c){return f(i,l,c)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array);function d(i){if(typeof i!="number")throw new TypeError('"size" argument must be of type number');if(i<0)throw new RangeError('The value "'+i+'" is invalid for option "size"')}function p(i,l,c){return d(i),i<=0?a(i):l!==void 0?typeof c=="string"?a(i).fill(l,c):a(i).fill(l):a(i)}u.alloc=function(i,l,c){return p(i,l,c)};function h(i){return d(i),a(i<0?0:w(i)|0)}u.allocUnsafe=function(i){return h(i)},u.allocUnsafeSlow=function(i){return h(i)};function y(i,l){if((typeof l!="string"||l==="")&&(l="utf8"),!u.isEncoding(l))throw new TypeError("Unknown encoding: "+l);const c=I(i,l)|0;let g=a(c);const _=g.write(i,l);return _!==c&&(g=g.slice(0,_)),g}function m(i){const l=i.length<0?0:w(i.length)|0,c=a(l);for(let g=0;g<l;g+=1)c[g]=i[g]&255;return c}function v(i){if(fe(i,Uint8Array)){const l=new Uint8Array(i);return b(l.buffer,l.byteOffset,l.byteLength)}return m(i)}function b(i,l,c){if(l<0||i.byteLength<l)throw new RangeError('"offset" is outside of buffer bounds');if(i.byteLength<l+(c||0))throw new RangeError('"length" is outside of buffer bounds');let g;return l===void 0&&c===void 0?g=new Uint8Array(i):c===void 0?g=new Uint8Array(i,l):g=new Uint8Array(i,l,c),Object.setPrototypeOf(g,u.prototype),g}function S(i){if(u.isBuffer(i)){const l=w(i.length)|0,c=a(l);return c.length===0||i.copy(c,0,0,l),c}if(i.length!==void 0)return typeof i.length!="number"||Ce(i.length)?a(0):m(i);if(i.type==="Buffer"&&Array.isArray(i.data))return m(i.data)}function w(i){if(i>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return i|0}function T(i){return+i!=i&&(i=0),u.alloc(+i)}u.isBuffer=function(i){return i!=null&&i._isBuffer===!0&&i!==u.prototype},u.compare=function(i,l){if(fe(i,Uint8Array)&&(i=u.from(i,i.offset,i.byteLength)),fe(l,Uint8Array)&&(l=u.from(l,l.offset,l.byteLength)),!u.isBuffer(i)||!u.isBuffer(l))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(i===l)return 0;let c=i.length,g=l.length;for(let _=0,E=Math.min(c,g);_<E;++_)if(i[_]!==l[_]){c=i[_],g=l[_];break}return c<g?-1:g<c?1:0},u.isEncoding=function(i){switch(String(i).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(i,l){if(!Array.isArray(i))throw new TypeError('"list" argument must be an Array of Buffers');if(i.length===0)return u.alloc(0);let c;if(l===void 0)for(l=0,c=0;c<i.length;++c)l+=i[c].length;const g=u.allocUnsafe(l);let _=0;for(c=0;c<i.length;++c){let E=i[c];if(fe(E,Uint8Array))_+E.length>g.length?(u.isBuffer(E)||(E=u.from(E)),E.copy(g,_)):Uint8Array.prototype.set.call(g,E,_);else if(u.isBuffer(E))E.copy(g,_);else throw new TypeError('"list" argument must be an Array of Buffers');_+=E.length}return g};function I(i,l){if(u.isBuffer(i))return i.length;if(ArrayBuffer.isView(i)||fe(i,ArrayBuffer))return i.byteLength;if(typeof i!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof i);const c=i.length,g=arguments.length>2&&arguments[2]===!0;if(!g&&c===0)return 0;let _=!1;for(;;)switch(l){case"ascii":case"latin1":case"binary":return c;case"utf8":case"utf-8":return de(i).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c*2;case"hex":return c>>>1;case"base64":return pe(i).length;default:if(_)return g?-1:de(i).length;l=(""+l).toLowerCase(),_=!0}}u.byteLength=I;function C(i,l,c){let g=!1;if((l===void 0||l<0)&&(l=0),l>this.length||((c===void 0||c>this.length)&&(c=this.length),c<=0)||(c>>>=0,l>>>=0,c<=l))return"";for(i||(i="utf8");;)switch(i){case"hex":return q(this,l,c);case"utf8":case"utf-8":return Y(this,l,c);case"ascii":return ae(this,l,c);case"latin1":case"binary":return ce(this,l,c);case"base64":return W(this,l,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ue(this,l,c);default:if(g)throw new TypeError("Unknown encoding: "+i);i=(i+"").toLowerCase(),g=!0}}u.prototype._isBuffer=!0;function A(i,l,c){const g=i[l];i[l]=i[c],i[c]=g}u.prototype.swap16=function(){const i=this.length;if(i%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let l=0;l<i;l+=2)A(this,l,l+1);return this},u.prototype.swap32=function(){const i=this.length;if(i%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let l=0;l<i;l+=4)A(this,l,l+3),A(this,l+1,l+2);return this},u.prototype.swap64=function(){const i=this.length;if(i%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let l=0;l<i;l+=8)A(this,l,l+7),A(this,l+1,l+6),A(this,l+2,l+5),A(this,l+3,l+4);return this},u.prototype.toString=function(){const i=this.length;return i===0?"":arguments.length===0?Y(this,0,i):C.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(i){if(!u.isBuffer(i))throw new TypeError("Argument must be a Buffer");return this===i?!0:u.compare(this,i)===0},u.prototype.inspect=function(){let i="";const l=e.INSPECT_MAX_BYTES;return i=this.toString("hex",0,l).replace(/(.{2})/g,"$1 ").trim(),this.length>l&&(i+=" ... "),"<Buffer "+i+">"},r&&(u.prototype[r]=u.prototype.inspect),u.prototype.compare=function(i,l,c,g,_){if(fe(i,Uint8Array)&&(i=u.from(i,i.offset,i.byteLength)),!u.isBuffer(i))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof i);if(l===void 0&&(l=0),c===void 0&&(c=i?i.length:0),g===void 0&&(g=0),_===void 0&&(_=this.length),l<0||c>i.length||g<0||_>this.length)throw new RangeError("out of range index");if(g>=_&&l>=c)return 0;if(g>=_)return-1;if(l>=c)return 1;if(l>>>=0,c>>>=0,g>>>=0,_>>>=0,this===i)return 0;let E=_-g,R=c-l;const oe=Math.min(E,R),$e=this.slice(g,_),me=i.slice(l,c);for(let he=0;he<oe;++he)if($e[he]!==me[he]){E=$e[he],R=me[he];break}return E<R?-1:R<E?1:0};function $(i,l,c,g,_){if(i.length===0)return-1;if(typeof c=="string"?(g=c,c=0):c>2147483647?c=2147483647:c<-2147483648&&(c=-2147483648),c=+c,Ce(c)&&(c=_?0:i.length-1),c<0&&(c=i.length+c),c>=i.length){if(_)return-1;c=i.length-1}else if(c<0)if(_)c=0;else return-1;if(typeof l=="string"&&(l=u.from(l,g)),u.isBuffer(l))return l.length===0?-1:k(i,l,c,g,_);if(typeof l=="number")return l=l&255,typeof Uint8Array.prototype.indexOf=="function"?_?Uint8Array.prototype.indexOf.call(i,l,c):Uint8Array.prototype.lastIndexOf.call(i,l,c):k(i,[l],c,g,_);throw new TypeError("val must be string, number or Buffer")}function k(i,l,c,g,_){let E=1,R=i.length,oe=l.length;if(g!==void 0&&(g=String(g).toLowerCase(),g==="ucs2"||g==="ucs-2"||g==="utf16le"||g==="utf-16le")){if(i.length<2||l.length<2)return-1;E=2,R/=2,oe/=2,c/=2}function $e(he,Te){return E===1?he[Te]:he.readUInt16BE(Te*E)}let me;if(_){let he=-1;for(me=c;me<R;me++)if($e(i,me)===$e(l,he===-1?0:me-he)){if(he===-1&&(he=me),me-he+1===oe)return he*E}else he!==-1&&(me-=me-he),he=-1}else for(c+oe>R&&(c=R-oe),me=c;me>=0;me--){let he=!0;for(let Te=0;Te<oe;Te++)if($e(i,me+Te)!==$e(l,Te)){he=!1;break}if(he)return me}return-1}u.prototype.includes=function(i,l,c){return this.indexOf(i,l,c)!==-1},u.prototype.indexOf=function(i,l,c){return $(this,i,l,c,!0)},u.prototype.lastIndexOf=function(i,l,c){return $(this,i,l,c,!1)};function x(i,l,c,g){c=Number(c)||0;const _=i.length-c;g?(g=Number(g),g>_&&(g=_)):g=_;const E=l.length;g>E/2&&(g=E/2);let R;for(R=0;R<g;++R){const oe=parseInt(l.substr(R*2,2),16);if(Ce(oe))return R;i[c+R]=oe}return R}function O(i,l,c,g){return ge(de(l,i.length-c),i,c,g)}function M(i,l,c,g){return ge(_e(l),i,c,g)}function j(i,l,c,g){return ge(pe(l),i,c,g)}function V(i,l,c,g){return ge(Se(l,i.length-c),i,c,g)}u.prototype.write=function(i,l,c,g){if(l===void 0)g="utf8",c=this.length,l=0;else if(c===void 0&&typeof l=="string")g=l,c=this.length,l=0;else if(isFinite(l))l=l>>>0,isFinite(c)?(c=c>>>0,g===void 0&&(g="utf8")):(g=c,c=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const _=this.length-l;if((c===void 0||c>_)&&(c=_),i.length>0&&(c<0||l<0)||l>this.length)throw new RangeError("Attempt to write outside buffer bounds");g||(g="utf8");let E=!1;for(;;)switch(g){case"hex":return x(this,i,l,c);case"utf8":case"utf-8":return O(this,i,l,c);case"ascii":case"latin1":case"binary":return M(this,i,l,c);case"base64":return j(this,i,l,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return V(this,i,l,c);default:if(E)throw new TypeError("Unknown encoding: "+g);g=(""+g).toLowerCase(),E=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function W(i,l,c){return l===0&&c===i.length?t.fromByteArray(i):t.fromByteArray(i.slice(l,c))}function Y(i,l,c){c=Math.min(i.length,c);const g=[];let _=l;for(;_<c;){const E=i[_];let R=null,oe=E>239?4:E>223?3:E>191?2:1;if(_+oe<=c){let $e,me,he,Te;switch(oe){case 1:E<128&&(R=E);break;case 2:$e=i[_+1],($e&192)===128&&(Te=(E&31)<<6|$e&63,Te>127&&(R=Te));break;case 3:$e=i[_+1],me=i[_+2],($e&192)===128&&(me&192)===128&&(Te=(E&15)<<12|($e&63)<<6|me&63,Te>2047&&(Te<55296||Te>57343)&&(R=Te));break;case 4:$e=i[_+1],me=i[_+2],he=i[_+3],($e&192)===128&&(me&192)===128&&(he&192)===128&&(Te=(E&15)<<18|($e&63)<<12|(me&63)<<6|he&63,Te>65535&&Te<1114112&&(R=Te))}}R===null?(R=65533,oe=1):R>65535&&(R-=65536,g.push(R>>>10&1023|55296),R=56320|R&1023),g.push(R),_+=oe}return Z(g)}const ne=4096;function Z(i){const l=i.length;if(l<=ne)return String.fromCharCode.apply(String,i);let c="",g=0;for(;g<l;)c+=String.fromCharCode.apply(String,i.slice(g,g+=ne));return c}function ae(i,l,c){let g="";c=Math.min(i.length,c);for(let _=l;_<c;++_)g+=String.fromCharCode(i[_]&127);return g}function ce(i,l,c){let g="";c=Math.min(i.length,c);for(let _=l;_<c;++_)g+=String.fromCharCode(i[_]);return g}function q(i,l,c){const g=i.length;(!l||l<0)&&(l=0),(!c||c<0||c>g)&&(c=g);let _="";for(let E=l;E<c;++E)_+=H[i[E]];return _}function ue(i,l,c){const g=i.slice(l,c);let _="";for(let E=0;E<g.length-1;E+=2)_+=String.fromCharCode(g[E]+g[E+1]*256);return _}u.prototype.slice=function(i,l){const c=this.length;i=~~i,l=l===void 0?c:~~l,i<0?(i+=c,i<0&&(i=0)):i>c&&(i=c),l<0?(l+=c,l<0&&(l=0)):l>c&&(l=c),l<i&&(l=i);const g=this.subarray(i,l);return Object.setPrototypeOf(g,u.prototype),g};function G(i,l,c){if(i%1!==0||i<0)throw new RangeError("offset is not uint");if(i+l>c)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(i,l,c){i=i>>>0,l=l>>>0,c||G(i,l,this.length);let g=this[i],_=1,E=0;for(;++E<l&&(_*=256);)g+=this[i+E]*_;return g},u.prototype.readUintBE=u.prototype.readUIntBE=function(i,l,c){i=i>>>0,l=l>>>0,c||G(i,l,this.length);let g=this[i+--l],_=1;for(;l>0&&(_*=256);)g+=this[i+--l]*_;return g},u.prototype.readUint8=u.prototype.readUInt8=function(i,l){return i=i>>>0,l||G(i,1,this.length),this[i]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(i,l){return i=i>>>0,l||G(i,2,this.length),this[i]|this[i+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(i,l){return i=i>>>0,l||G(i,2,this.length),this[i]<<8|this[i+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(i,l){return i=i>>>0,l||G(i,4,this.length),(this[i]|this[i+1]<<8|this[i+2]<<16)+this[i+3]*16777216},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(i,l){return i=i>>>0,l||G(i,4,this.length),this[i]*16777216+(this[i+1]<<16|this[i+2]<<8|this[i+3])},u.prototype.readBigUInt64LE=z(function(i){i=i>>>0,L(i,"offset");const l=this[i],c=this[i+7];(l===void 0||c===void 0)&&D(i,this.length-8);const g=l+this[++i]*2**8+this[++i]*2**16+this[++i]*2**24,_=this[++i]+this[++i]*2**8+this[++i]*2**16+c*2**24;return BigInt(g)+(BigInt(_)<<BigInt(32))}),u.prototype.readBigUInt64BE=z(function(i){i=i>>>0,L(i,"offset");const l=this[i],c=this[i+7];(l===void 0||c===void 0)&&D(i,this.length-8);const g=l*2**24+this[++i]*2**16+this[++i]*2**8+this[++i],_=this[++i]*2**24+this[++i]*2**16+this[++i]*2**8+c;return(BigInt(g)<<BigInt(32))+BigInt(_)}),u.prototype.readIntLE=function(i,l,c){i=i>>>0,l=l>>>0,c||G(i,l,this.length);let g=this[i],_=1,E=0;for(;++E<l&&(_*=256);)g+=this[i+E]*_;return _*=128,g>=_&&(g-=Math.pow(2,8*l)),g},u.prototype.readIntBE=function(i,l,c){i=i>>>0,l=l>>>0,c||G(i,l,this.length);let g=l,_=1,E=this[i+--g];for(;g>0&&(_*=256);)E+=this[i+--g]*_;return _*=128,E>=_&&(E-=Math.pow(2,8*l)),E},u.prototype.readInt8=function(i,l){return i=i>>>0,l||G(i,1,this.length),this[i]&128?(255-this[i]+1)*-1:this[i]},u.prototype.readInt16LE=function(i,l){i=i>>>0,l||G(i,2,this.length);const c=this[i]|this[i+1]<<8;return c&32768?c|4294901760:c},u.prototype.readInt16BE=function(i,l){i=i>>>0,l||G(i,2,this.length);const c=this[i+1]|this[i]<<8;return c&32768?c|4294901760:c},u.prototype.readInt32LE=function(i,l){return i=i>>>0,l||G(i,4,this.length),this[i]|this[i+1]<<8|this[i+2]<<16|this[i+3]<<24},u.prototype.readInt32BE=function(i,l){return i=i>>>0,l||G(i,4,this.length),this[i]<<24|this[i+1]<<16|this[i+2]<<8|this[i+3]},u.prototype.readBigInt64LE=z(function(i){i=i>>>0,L(i,"offset");const l=this[i],c=this[i+7];(l===void 0||c===void 0)&&D(i,this.length-8);const g=this[i+4]+this[i+5]*2**8+this[i+6]*2**16+(c<<24);return(BigInt(g)<<BigInt(32))+BigInt(l+this[++i]*2**8+this[++i]*2**16+this[++i]*2**24)}),u.prototype.readBigInt64BE=z(function(i){i=i>>>0,L(i,"offset");const l=this[i],c=this[i+7];(l===void 0||c===void 0)&&D(i,this.length-8);const g=(l<<24)+this[++i]*2**16+this[++i]*2**8+this[++i];return(BigInt(g)<<BigInt(32))+BigInt(this[++i]*2**24+this[++i]*2**16+this[++i]*2**8+c)}),u.prototype.readFloatLE=function(i,l){return i=i>>>0,l||G(i,4,this.length),n.read(this,i,!0,23,4)},u.prototype.readFloatBE=function(i,l){return i=i>>>0,l||G(i,4,this.length),n.read(this,i,!1,23,4)},u.prototype.readDoubleLE=function(i,l){return i=i>>>0,l||G(i,8,this.length),n.read(this,i,!0,52,8)},u.prototype.readDoubleBE=function(i,l){return i=i>>>0,l||G(i,8,this.length),n.read(this,i,!1,52,8)};function re(i,l,c,g,_,E){if(!u.isBuffer(i))throw new TypeError('"buffer" argument must be a Buffer instance');if(l>_||l<E)throw new RangeError('"value" argument is out of bounds');if(c+g>i.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(i,l,c,g){if(i=+i,l=l>>>0,c=c>>>0,!g){const R=Math.pow(2,8*c)-1;re(this,i,l,c,R,0)}let _=1,E=0;for(this[l]=i&255;++E<c&&(_*=256);)this[l+E]=i/_&255;return l+c},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(i,l,c,g){if(i=+i,l=l>>>0,c=c>>>0,!g){const R=Math.pow(2,8*c)-1;re(this,i,l,c,R,0)}let _=c-1,E=1;for(this[l+_]=i&255;--_>=0&&(E*=256);)this[l+_]=i/E&255;return l+c},u.prototype.writeUint8=u.prototype.writeUInt8=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,1,255,0),this[l]=i&255,l+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,2,65535,0),this[l]=i&255,this[l+1]=i>>>8,l+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,2,65535,0),this[l]=i>>>8,this[l+1]=i&255,l+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,4,4294967295,0),this[l+3]=i>>>24,this[l+2]=i>>>16,this[l+1]=i>>>8,this[l]=i&255,l+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,4,4294967295,0),this[l]=i>>>24,this[l+1]=i>>>16,this[l+2]=i>>>8,this[l+3]=i&255,l+4};function Oe(i,l,c,g,_){K(l,g,_,i,c,7);let E=Number(l&BigInt(4294967295));i[c++]=E,E=E>>8,i[c++]=E,E=E>>8,i[c++]=E,E=E>>8,i[c++]=E;let R=Number(l>>BigInt(32)&BigInt(4294967295));return i[c++]=R,R=R>>8,i[c++]=R,R=R>>8,i[c++]=R,R=R>>8,i[c++]=R,c}function Ee(i,l,c,g,_){K(l,g,_,i,c,7);let E=Number(l&BigInt(4294967295));i[c+7]=E,E=E>>8,i[c+6]=E,E=E>>8,i[c+5]=E,E=E>>8,i[c+4]=E;let R=Number(l>>BigInt(32)&BigInt(4294967295));return i[c+3]=R,R=R>>8,i[c+2]=R,R=R>>8,i[c+1]=R,R=R>>8,i[c]=R,c+8}u.prototype.writeBigUInt64LE=z(function(i,l=0){return Oe(this,i,l,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=z(function(i,l=0){return Ee(this,i,l,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(i,l,c,g){if(i=+i,l=l>>>0,!g){const oe=Math.pow(2,8*c-1);re(this,i,l,c,oe-1,-oe)}let _=0,E=1,R=0;for(this[l]=i&255;++_<c&&(E*=256);)i<0&&R===0&&this[l+_-1]!==0&&(R=1),this[l+_]=(i/E>>0)-R&255;return l+c},u.prototype.writeIntBE=function(i,l,c,g){if(i=+i,l=l>>>0,!g){const oe=Math.pow(2,8*c-1);re(this,i,l,c,oe-1,-oe)}let _=c-1,E=1,R=0;for(this[l+_]=i&255;--_>=0&&(E*=256);)i<0&&R===0&&this[l+_+1]!==0&&(R=1),this[l+_]=(i/E>>0)-R&255;return l+c},u.prototype.writeInt8=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,1,127,-128),i<0&&(i=255+i+1),this[l]=i&255,l+1},u.prototype.writeInt16LE=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,2,32767,-32768),this[l]=i&255,this[l+1]=i>>>8,l+2},u.prototype.writeInt16BE=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,2,32767,-32768),this[l]=i>>>8,this[l+1]=i&255,l+2},u.prototype.writeInt32LE=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,4,2147483647,-2147483648),this[l]=i&255,this[l+1]=i>>>8,this[l+2]=i>>>16,this[l+3]=i>>>24,l+4},u.prototype.writeInt32BE=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,4,2147483647,-2147483648),i<0&&(i=4294967295+i+1),this[l]=i>>>24,this[l+1]=i>>>16,this[l+2]=i>>>8,this[l+3]=i&255,l+4},u.prototype.writeBigInt64LE=z(function(i,l=0){return Oe(this,i,l,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=z(function(i,l=0){return Ee(this,i,l,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Pe(i,l,c,g,_,E){if(c+g>i.length)throw new RangeError("Index out of range");if(c<0)throw new RangeError("Index out of range")}function Ae(i,l,c,g,_){return l=+l,c=c>>>0,_||Pe(i,l,c,4),n.write(i,l,c,g,23,4),c+4}u.prototype.writeFloatLE=function(i,l,c){return Ae(this,i,l,!0,c)},u.prototype.writeFloatBE=function(i,l,c){return Ae(this,i,l,!1,c)};function le(i,l,c,g,_){return l=+l,c=c>>>0,_||Pe(i,l,c,8),n.write(i,l,c,g,52,8),c+8}u.prototype.writeDoubleLE=function(i,l,c){return le(this,i,l,!0,c)},u.prototype.writeDoubleBE=function(i,l,c){return le(this,i,l,!1,c)},u.prototype.copy=function(i,l,c,g){if(!u.isBuffer(i))throw new TypeError("argument should be a Buffer");if(c||(c=0),!g&&g!==0&&(g=this.length),l>=i.length&&(l=i.length),l||(l=0),g>0&&g<c&&(g=c),g===c||i.length===0||this.length===0)return 0;if(l<0)throw new RangeError("targetStart out of bounds");if(c<0||c>=this.length)throw new RangeError("Index out of range");if(g<0)throw new RangeError("sourceEnd out of bounds");g>this.length&&(g=this.length),i.length-l<g-c&&(g=i.length-l+c);const _=g-c;return this===i&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(l,c,g):Uint8Array.prototype.set.call(i,this.subarray(c,g),l),_},u.prototype.fill=function(i,l,c,g){if(typeof i=="string"){if(typeof l=="string"?(g=l,l=0,c=this.length):typeof c=="string"&&(g=c,c=this.length),g!==void 0&&typeof g!="string")throw new TypeError("encoding must be a string");if(typeof g=="string"&&!u.isEncoding(g))throw new TypeError("Unknown encoding: "+g);if(i.length===1){const E=i.charCodeAt(0);(g==="utf8"&&E<128||g==="latin1")&&(i=E)}}else typeof i=="number"?i=i&255:typeof i=="boolean"&&(i=Number(i));if(l<0||this.length<l||this.length<c)throw new RangeError("Out of range index");if(c<=l)return this;l=l>>>0,c=c===void 0?this.length:c>>>0,i||(i=0);let _;if(typeof i=="number")for(_=l;_<c;++_)this[_]=i;else{const E=u.isBuffer(i)?i:u.from(i,g),R=E.length;if(R===0)throw new TypeError('The value "'+i+'" is invalid for argument "value"');for(_=0;_<c-l;++_)this[_+l]=E[_%R]}return this};const Q={};function P(i,l,c){Q[i]=class extends c{constructor(){super(),Object.defineProperty(this,"message",{value:l.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${i}]`,this.stack,delete this.name}get code(){return i}set code(g){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:g,writable:!0})}toString(){return`${this.name} [${i}]: ${this.message}`}}}P("ERR_BUFFER_OUT_OF_BOUNDS",function(i){return i?`${i} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),P("ERR_INVALID_ARG_TYPE",function(i,l){return`The "${i}" argument must be of type number. Received type ${typeof l}`},TypeError),P("ERR_OUT_OF_RANGE",function(i,l,c){let g=`The value of "${i}" is out of range.`,_=c;return Number.isInteger(c)&&Math.abs(c)>2**32?_=F(String(c)):typeof c=="bigint"&&(_=String(c),(c>BigInt(2)**BigInt(32)||c<-(BigInt(2)**BigInt(32)))&&(_=F(_)),_+="n"),g+=` It must be ${l}. Received ${_}`,g},RangeError);function F(i){let l="",c=i.length;const g=i[0]==="-"?1:0;for(;c>=g+4;c-=3)l=`_${i.slice(c-3,c)}${l}`;return`${i.slice(0,c)}${l}`}function B(i,l,c){L(l,"offset"),(i[l]===void 0||i[l+c]===void 0)&&D(l,i.length-(c+1))}function K(i,l,c,g,_,E){if(i>c||i<l){const R=typeof l=="bigint"?"n":"";let oe;throw l===0||l===BigInt(0)?oe=`>= 0${R} and < 2${R} ** ${(E+1)*8}${R}`:oe=`>= -(2${R} ** ${(E+1)*8-1}${R}) and < 2 ** ${(E+1)*8-1}${R}`,new Q.ERR_OUT_OF_RANGE("value",oe,i)}B(g,_,E)}function L(i,l){if(typeof i!="number")throw new Q.ERR_INVALID_ARG_TYPE(l,"number",i)}function D(i,l,c){throw Math.floor(i)!==i?(L(i,c),new Q.ERR_OUT_OF_RANGE("offset","an integer",i)):l<0?new Q.ERR_BUFFER_OUT_OF_BOUNDS:new Q.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${l}`,i)}const se=/[^+/0-9A-Za-z-_]/g;function ve(i){if(i=i.split("=")[0],i=i.trim().replace(se,""),i.length<2)return"";for(;i.length%4!==0;)i=i+"=";return i}function de(i,l){l=l||1/0;let c;const g=i.length;let _=null;const E=[];for(let R=0;R<g;++R){if(c=i.charCodeAt(R),c>55295&&c<57344){if(!_){if(c>56319){(l-=3)>-1&&E.push(239,191,189);continue}else if(R+1===g){(l-=3)>-1&&E.push(239,191,189);continue}_=c;continue}if(c<56320){(l-=3)>-1&&E.push(239,191,189),_=c;continue}c=(_-55296<<10|c-56320)+65536}else _&&(l-=3)>-1&&E.push(239,191,189);if(_=null,c<128){if((l-=1)<0)break;E.push(c)}else if(c<2048){if((l-=2)<0)break;E.push(c>>6|192,c&63|128)}else if(c<65536){if((l-=3)<0)break;E.push(c>>12|224,c>>6&63|128,c&63|128)}else if(c<1114112){if((l-=4)<0)break;E.push(c>>18|240,c>>12&63|128,c>>6&63|128,c&63|128)}else throw new Error("Invalid code point")}return E}function _e(i){const l=[];for(let c=0;c<i.length;++c)l.push(i.charCodeAt(c)&255);return l}function Se(i,l){let c,g,_;const E=[];for(let R=0;R<i.length&&!((l-=2)<0);++R)c=i.charCodeAt(R),g=c>>8,_=c%256,E.push(_),E.push(g);return E}function pe(i){return t.toByteArray(ve(i))}function ge(i,l,c,g){let _;for(_=0;_<g&&!(_+c>=l.length||_>=i.length);++_)l[_+c]=i[_];return _}function fe(i,l){return i instanceof l||i!=null&&i.constructor!=null&&i.constructor.name!=null&&i.constructor.name===l.name}function Ce(i){return i!==i}const H=(function(){const i="0123456789abcdef",l=new Array(256);for(let c=0;c<16;++c){const g=c*16;for(let _=0;_<16;++_)l[g+_]=i[c]+i[_]}return l})();function z(i){return typeof BigInt>"u"?ee:i}function ee(){throw new Error("BigInt not supported")}})(t5);var Wv={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n={exports:{}},r=n.exports={},o,s;function a(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?o=setTimeout:o=a}catch{o=a}try{typeof clearTimeout=="function"?s=clearTimeout:s=u}catch{s=u}})();function f(q){if(o===setTimeout)return setTimeout(q,0);if((o===a||!o)&&setTimeout)return o=setTimeout,setTimeout(q,0);try{return o(q,0)}catch{try{return o.call(null,q,0)}catch{return o.call(this,q,0)}}}function d(q){if(s===clearTimeout)return clearTimeout(q);if((s===u||!s)&&clearTimeout)return s=clearTimeout,clearTimeout(q);try{return s(q)}catch{try{return s.call(null,q)}catch{return s.call(this,q)}}}var p=[],h=!1,y,m=-1;function v(){!h||!y||(h=!1,y.length?p=y.concat(p):m=-1,p.length&&b())}function b(){if(!h){var q=f(v);h=!0;for(var ue=p.length;ue;){for(y=p,p=[];++m<ue;)y&&y[m].run();m=-1,ue=p.length}y=null,h=!1,d(q)}}r.nextTick=function(q){var ue=new Array(arguments.length-1);if(arguments.length>1)for(var G=1;G<arguments.length;G++)ue[G-1]=arguments[G];p.push(new S(q,ue)),p.length===1&&!h&&f(b)};function S(q,ue){this.fun=q,this.array=ue}S.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={};function w(){}r.on=w,r.addListener=w,r.once=w,r.off=w,r.removeListener=w,r.removeAllListeners=w,r.emit=w,r.prependListener=w,r.prependOnceListener=w,r.listeners=function(q){return[]},r.binding=function(q){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(q){throw new Error("process.chdir is not supported")},r.umask=function(){return 0};function T(){}var I=n.exports.browser,C=T,A=n.exports.binding,$=T,k=1,x={},O=T,M=T,j=T,V=T,W=T,Y="browser",ne="browser",Z="browser",ae=[],ce={nextTick:n.exports.nextTick,title:n.exports.title,browser:I,env:n.exports.env,argv:n.exports.argv,version:n.exports.version,versions:n.exports.versions,on:n.exports.on,addListener:n.exports.addListener,once:n.exports.once,off:n.exports.off,removeListener:n.exports.removeListener,removeAllListeners:n.exports.removeAllListeners,emit:n.exports.emit,emitWarning:C,prependListener:n.exports.prependListener,prependOnceListener:n.exports.prependOnceListener,listeners:n.exports.listeners,binding:A,cwd:n.exports.cwd,chdir:n.exports.chdir,umask:n.exports.umask,exit:$,pid:k,features:x,kill:O,dlopen:M,uptime:j,memoryUsage:V,uvCounters:W,platform:Y,arch:ne,execPath:Z,execArgv:ae};t.addListener=n.exports.addListener,t.arch=ne,t.argv=n.exports.argv,t.b
59inding=A,t.browser=I,t.chdir=n.exports.chdir,t.cwd=n.exports.cwd,t.default=ce,t.dlopen=M,t.emit=n.exports.emit,t.emitWarning=C,t.env=n.exports.env,t.execArgv=ae,t.execPath=Z,t.exit=$,t.features=x,t.kill=O,t.listeners=n.exports.listeners,t.memoryUsage=V,t.nextTick=n.exports.nextTick,t.off=n.exports.off,t.on=n.exports.on,t.once=n.exports.once,t.pid=k,t.platform=Y,t.prependListener=n.exports.prependListener,t.prependOnceListener=n.exports.prependOnceListener,t.removeAllListeners=n.exports.removeAllListeners,t.removeListener=n.exports.removeListener,t.title=n.exports.title,t.umask=n.exports.umask,t.uptime=j,t.uvCounters=W,t.version=n.exports.version,t.versions=n.exports.versions,t=e.exports=ce})(Wv,Wv.exports);var Tse=Wv.exports;(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=t5,n=Tse,r=a=>a&&a.__esModule?a:{default:a},o=r(n),s=globalThis||void 0||self;Object.defineProperty(e,"Buffer",{enumerable:!0,get:()=>t.Buffer}),Object.defineProperty(e,"process",{enumerable:!0,get:()=>o.default}),e.global=s})(mse);function r5(e){return Gs()?(Do(e),!0):!1}const Sm=new WeakMap,Ise=(...e)=>{var t;const n=e[0],r=(t=Dn())==null?void 0:t.proxy;if(r==null&&!qc())throw new Error("injectLocal must be called in setup");return r&&Sm.has(r)&&n in Sm.get(r)?Sm.get(r)[n]:Gt(...e)},Ase=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const xse=e=>e!=null,Cse=Object.prototype.toString,Rse=e=>Cse.call(e)==="[object Object]",$m=()=>{};function h$(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function Ose(e){return Dn()}function Gd(e){return Array.isArray(e)?e:[e]}function kse(e,t=!0,n){Ose()?We(e,n):t?e():gt(e)}function Lse(e,t,n){return ke(e,t,{...n,immediate:!0})}const Qh=Ase?window:void 0;function Yd(e){var t;const n=qe(e);return(t=n?.$el)!=null?t:n}function zv(...e){const t=[],n=()=>{t.forEach(u=>u()),t.length=0},r=(u,f,d,p)=>(u.addEventListener(f,d,p),()=>u.removeEventListener(f,d,p)),o=J(()=>{const u=Gd(qe(e[0])).filter(f=>f!=null);return u.every(f=>typeof f!="string")?u:void 0}),s=Lse(()=>{var u,f;return[(f=(u=o.value)==null?void 0:u.map(d=>Yd(d)))!=null?f:[Qh].filter(d=>d!=null),Gd(qe(o.value?e[1]:e[0])),Gd(N(o.value?e[2]:e[1])),qe(o.value?e[3]:e[2])]},([u,f,d,p])=>{if(n(),!(u!=null&&u.length)||!(f!=null&&f.length)||!(d!=null&&d.length))return;const h=Rse(p)?{...p}:p;t.push(...u.flatMap(y=>f.flatMap(m=>d.map(v=>r(y,m,v,h)))))},{flush:"post"}),a=()=>{s(),n()};return r5(n),a}function Mse(){const e=en(!1),t=Dn();return t&&We(()=>{e.value=!0},t),e}function o5(e){const t=Mse();return J(()=>(t.value,!!e()))}const Pse=Symbol("vueuse-ssr-width");function Bse(){const e=qc()?Ise(Pse,null):null;return typeof e=="number"?e:void 0}function Nse(e,t={}){const{window:n=Qh,ssrWidth:r=Bse()}=t,o=o5(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),s=en(typeof r=="number"),a=en(),u=en(!1),f=d=>{u.value=d.matches};return yh(()=>{if(s.value){s.value=!o.value;const d=qe(e).split(",");u.value=d.some(p=>{const h=p.includes("not all"),y=p.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),m=p.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let v=!!(y||m);return y&&v&&(v=r>=h$(y[1])),m&&v&&(v=r<=h$(m[1])),h?!v:v});return}o.value&&(a.value=n.matchMedia(qe(e)),u.value=a.value.matches)}),zv(a,"change",f,{passive:!0}),J(()=>u.value)}function i5(e,t,n={}){const{root:r,rootMargin:o="0px",threshold:s=0,window:a=Qh,immediate:u=!0}=n,f=o5(()=>a&&"IntersectionObserver"in a),d=J(()=>{const v=qe(e);return Gd(v).map(Yd).filter(xse)});let p=$m;const h=en(u),y=f.value?ke(()=>[d.value,Yd(r),h.value],([v,b])=>{if(p(),!h.value||!v.length)return;const S=new IntersectionObserver(t,{root:Yd(b),rootMargin:o,threshold:s});v.forEach(w=>w&&S.observe(w)),p=()=>{S.disconnect(),p=$m}},{immediate:u,flush:"post"}):$m,m=()=>{p(),y(),h.value=!1};return r5(m),{isSupported:f,isActive:h,pause(){p(),h.value=!1},resume(){h.value=!0},stop:m}}function Dse(e={}){const{window:t=Qh,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:r=Number.POSITIVE_INFINITY,listenOrientation:o=!0,includeScrollbar:s=!0,type:a="inner"}=e,u=en(n),f=en(r),d=()=>
59{if(t)if(a==="outer")u.value=t.outerWidth,f.value=t.outerHeight;else if(a==="visual"&&t.visualViewport){const{width:h,height:y,scale:m}=t.visualViewport;u.value=Math.round(h*m),f.value=Math.round(y*m)}else s?(u.value=t.innerWidth,f.value=t.innerHeight):(u.value=t.document.documentElement.clientWidth,f.value=t.document.documentElement.clientHeight)};d(),kse(d);const p={passive:!0};if(zv("resize",d,p),t&&a==="visual"&&t.visualViewport&&zv(t.visualViewport,"resize",d,p),o){const h=Nse("(orientation: portrait)");ke(h,()=>d())}return{width:u,height:f}}const Use=["href"],Hse={class:"recommendations-item__body"},Fse=["src","alt"],jse={class:"recommendations-item__info"},Vse={class:"recommendations-item__title"},qse={class:"recommendations-item__reactions"},Wse={key:1,class:"recommendations-item__rating-zero diff-rating"},zse={key:2},Gse=xe({__name:"RecommendationsItem",props:{url:{type:String,required:!0},title:{type:String,default:""},rate:{type:[String,Number],default:""},commentsCount:{type:Number,default:0},hot:{type:Boolean,default:!1},backgroundImage:{type:String,default:""},contentOption:{type:Object,default:null}},emits:["click","click_middle","view"],setup(e,{emit:t}){const n=e,r=t,o=ie(!1),s=ie(),a=()=>{o.value=!0},u=J(()=>n.rate!==null&&n.rate!==void 0&&n.rate!=="");return We(()=>{if(s.value){const{stop:f}=i5(s.value,([{isIntersecting:d}])=>{d&&(r("view"),f())})}}),(f,d)=>{var p;return U(),X("a",{ref_key:"cardRef",ref:s,target:"_blank",href:e.url,class:"recommendations-item",onClick:d[0]||(d[0]=h=>r("click")),onMouseup:d[1]||(d[1]=ft(h=>r("click_middle"),["middle"]))},[te("div",Hse,[e.backgroundImage&&!o.value?(U(),X("img",{key:0,class:"recommendations-item__image",src:e.backgroundImage,loading:"lazy",alt:e.title,onError:a},null,40,Fse)):Ie("",!0),te("div",jse,[(p=e.contentOption)!=null&&p.name?(U(),X("span",{key:0,class:"recommendations-item__content-option",style:at({color:`#${e.contentOption.colorCode}`})},Ue(e.contentOption.rusName),5)):Ie("",!0),te("span",Vse,Ue(N(yoe)(e.title)),1),te("div",qse,[u.value&&Number(e.rate)!==0?(U(),we(N(Gee),{key:0,"diff-rating":Number(e.rate)},null,8,["diff-rating"])):u.value&&Number(e.rate)===0?(U(),X("span",Wse,"+0")):(U(),X("div",zse)),e.commentsCount?(U(),we(N(AJ),{key:3,hot:e.hot,value:e.commentsCount,class:"recommendations-item__flame-count"},null,8,["hot","value"])):Ie("",!0)])])])],40,Use)}}}),Tf=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},Yse=Tf(Gse,[["__scopeId","data-v-e0d7a4f7"]]);var Gv=(e=>(e.ARTICLE="ARTICLE",e.BOOKMAKER_OPINION="BOOKMAKER_OPINION",e.CHAT="CHAT",e.CHAT_MESSAGE="CHAT_MESSAGE",e.COMMENT="COMMENT",e.FORUM="FORUM",e.NEWS="NEWS",e.PHOTO="PHOTO",e.POLL="POLL",e.POST="POST",e.STATUS="STATUS",e.USER_NEWS="USER_NEWS",e.VIDEO="VIDEO",e))(Gv||{}),s5=(e=>(e.ALL="ALL",e.NEWS="NEWS",e.POST="POST",e))(s5||{}),a5=(e=>(e.GLOBAL="GLOBAL",e.OMNI="OMNI",e.OPTA="OPTA",e.PERFORM="PERFORM",e.SPORTRADAR="SPORTRADAR",e.SPORTS="SPORTS",e.SPORTS_HUB="SPORTS_HUB",e.SPORTS_TAG="SPORTS_TAG",e.TAG="TAG",e.TRIBUNA_HUB="TRIBUNA_HUB",e))(a5||{});const If=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},Kse={},Zse={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Qse(e,t){return U(),X("svg",Zse,t[0]||(t[0]=[te("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M16.9056 18.3199C15.5509 19.3729 13.8487 20 12 20C7.58172 20 4 16.4183 4 12C4 10.1513 4.62708 8.44905 5.68013 7.09437L16.9056 18.3199ZM18.3198 16.9057L7.09434 5.68016C8.44902 4.62709 10.1513 4 12 4C16.4183 4 20 7.58172 20 12C20 13.8487 19.3729 15.551 18.3198 16.9057ZM6.35987 6.32647C6.3487 6.33757 6.33757 6.3487 6.32647 6.35987L6.35987 6.32647ZM22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z",fill:"currentColor"},null,-1)]))}const Jse=If(Kse,[["render",Qse]]),Xse={},eae={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function tae(e,t){return U(),X("svg",eae,t[0]||(t[0]=[te("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12 20C13.8487 20 15.5509 19.3729 16.9056 18.3199L12 13.4142L7.09434 18.3198C8.44903 19.3729 10.1513 20 12 20ZM6.36363 17.6773L6.32274 17.6364C6.33632 17.6501 6.34995 17.6637 6.36363 17.6773ZM5.68013 16.9056L10.5858 12L5.68013 7.09437C4.62708 8.44905 4 10.1513 4 12C4 13.8487 4.62708 15.5509 5.68013 16.9056ZM12 10.5858L7.09434 5.68016C8.44902 4.62709 10.1513 4 12 4C13.8487 4 15.5509 4.62708 16.9056 5.68013L12 10.5858ZM13.4142 12L18.3198 7.09434C19.3729 8.44902 20 10.1513 20 12C20 13.8487 19.3729 15.551 18.3198 16.9057L13.4142 12ZM12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",fill:"currentColor"},null,-1)]))}const nae=If(Xse,[["render",tae]]),rae={},oae={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function iae(e,t){return U(),X("svg",oae,t[0]||(t[0]=[te("path",{d:"M6 3H17V16L11.25 21.75C10.5596 22.4404 9.44036 22.4404 8.75 21.75C8.63333 21.6333 8.5375 21.475 8.4625 21.275C8.3875 21.075 8.35 20.8833 8.35 20.7V20.35L9.45 16H3C2.46667 16 2 15.8 1.6 15.4C1.2 15 1 14.5333 1 14V12C1 11.8833 1.01667 11.7583 1.05 11.625C1.08333 11.4917 1.11667 11.3667 1.15 11.25L4.15 4.2C4.3 3.86667 4.55 3.58333 4.9 3.35C5.25 3.11667 5.61667 3 6 3ZM15 5H6L3 12V14H12L10.65 19.5L15 15.15V5ZM17 16V14H20V5H17V3H22V16H17Z",fill:"currentColor"},null,-1)]))}const sae=If(rae,[["render",iae]]),aae={},uae={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function lae(e,t){return U(),X("svg",uae,t[0]||(t[0]=[te("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.69 6.54995L2.01 3.86995L3.42 2.44995L21.15 20.19L19.74 21.6L16.32 18.18C14.98 18.71 13.52 19 12 19C7 19 2.73 15.89 1 11.5C1.77 9.52995 3.06 7.82995 4.69 6.54995ZM12.0004 5.99976C15.7904 5.99976 19.1704 8.12976 20.8204 11.4998C20.2304 12.7198 19.4004 13.7698 18.4104 14.6198L19.8204 16.0298C21.2104 14.7998 22.3104 13.2598 23.0004 11.4998C21.2704 7.10976 17.0004 3.99976 12.0004 3.99976C10.7304 3.99976 9.51035 4.19976 8.36035 4.56976L10.0104 6.21976C10.6604 6.08976 11.3204 5.99976 12.0004 5.99976ZM10.9297 7.13976L12.9997 9.20976C13.5697 9.45976 14.0297 9.91976 14.2797 10.4898L16.3497 12.5598C16.4297 12.2198 16.4897 11.8598 16.4897 11.4898C16.4997 9.00976 14.4797 6.99976 11.9997 6.99976C11.6297 6.99976 11.2797 7.04976 10.9297 7.13976ZM9.51 11.37L12.12 13.98
59C12.08 13.99 12.04 14 12 14C10.62 14 9.5 12.88 9.5 11.5C9.5 11.475 9.5025 11.455 9.505 11.435L9.505 11.435L9.505 11.4349C9.5075 11.4149 9.51 11.3949 9.51 11.37ZM7.85969 9.71997L6.10969 7.96997C4.89969 8.88997 3.87969 10.07 3.17969 11.5C4.82969 14.87 8.20969 17 11.9997 17C12.9497 17 13.8697 16.86 14.7497 16.62L13.7697 15.64C13.2297 15.87 12.6297 16 11.9997 16C9.51969 16 7.49969 13.98 7.49969 11.5C7.49969 10.87 7.62969 10.27 7.85969 9.71997Z",fill:"currentColor"},null,-1)]))}const cae=If(aae,[["render",lae]]),fae={},dae={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function pae(e,t){return U(),X("svg",dae,t[0]||(t[0]=[te("path",{d:"M12.9122 12L8.25 7.4L9.66892 6L15.75 12L9.66892 18L8.25 16.6L12.9122 12Z",fill:"currentColor"},null,-1)]))}const hae=If(fae,[["render",pae]]);var F_=(e=>(e.SUCCESS="success",e.DANGER="danger",e.DEFAULT="default",e))(F_||{}),u5=(e=>(e.BUTTON="button",e.A="a",e.ROUTER_LINK="router-link",e))(u5||{}),l5=(e=>(e.SM="sm",e.MD="md",e))(l5||{}),j_=(e=>(e.PRIMARY="primary",e.SECONDARY="secondary",e.TERTIARY="tertiary",e))(j_||{});const gae=xe({__name:"UILoader",props:{color:{type:String,default:"content"},size:{type:String,default:"sm"}},setup(e){const t=e,n=J(()=>`ui-loader--${t.color} ui-loader--${t.size}`);return(r,o)=>(U(),X("div",{class:Be(["ui-loader",n.value])},null,2))}}),mae=Tf(gae,[["__scopeId","data-v-8c058235"]]),yae={key:0,class:"ui-button__preloader"},vae={key:1,class:"ui-button__icon ui-button__icon-left"},_ae={class:"ui-button__content"},bae={key:2,class:"ui-button__icon ui-button__icon-right"},wae=xe({__name:"UIButton",props:{as:{type:String,default:u5.BUTTON},variant:{type:String,default:j_.PRIMARY},color:{type:String,default:F_.SUCCESS},size:{type:String,default:l5.SM},rounded:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1},short:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},setup(e){return(t,n)=>(U(),we(Xt(e.as),{class:Be(["ui-button",[`ui-button--${e.variant}-${e.color}`,`ui-button--size-${e.size}`,{"ui-button--rounded":e.rounded,"ui-button--full-width":e.fullWidth,"ui-button--align-left":t.$slots.iconLeft,"ui-button--align-center":!t.$slots.iconLeft&&!t.$slots.iconRight,"ui-button--align-right":t.$slots.iconRight,"ui-button--short":e.short}]]),disabled:e.disabled||e.loading},{default:be(()=>[e.loading?(U(),X("span",yae,[ye(mae,{class:"ui-button__preloader-icon",size:"sm"})])):Ie("",!0),t.$slots.iconLeft?(U(),X("span",vae,[De(t.$slots,"iconLeft",{},void 0,!0)])):Ie("",!0),te("span",_ae,[De(t.$slots,"default",{},void 0,!0)]),t.$slots.iconRight?(U(),X("span",bae,[De(t.$slots,"iconRight",{},void 0,!0)])):Ie("",!0)]),_:3},8,["class","disabled"]))}}),Eae=Tf(wae,[["__scopeId","data-v-81683041"]]),Sae=xe({__name:"LoadMorePosts",props:{isLoading:{type:Boolean,default:!1},title:{type:String,default:"ÐолÑÑе ÑекÑÑов"}},emits:["load-more"],setup(e,{emit:t}){const n=t;return(r,o)=>(U(),X("div",{class:"load-more-posts",onClick:o[0]||(o[0]=s=>n("load-more"))},[ye(N(hae)),ye(N(Eae),{loading:e.isLoading,variant:N(j_).TERTIARY,color:N(F_).DEFAULT},{default:be(()=>[mt(Ue(e.title),1)]),_:1},8,["loading","variant","color"])]))}}),$ae=Tf(Sae,[["__scopeId","data-v-adbd7686"]]);var wo=(e=>(e.OWN="own",e.OWN_NEW="own-new",e.OWN_CYBER="own-cyber",e))(wo||{}),c5={},Vs={},Tae=Yp&&Yp.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(r[s]=o[s])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(Vs,"__esModule",{value:!0});Vs.RandomSelector=Vs.RandomSelectorError=void 0;var Yv=(function(e){Tae(t,e);function t(n){var r=e.call(this,n)||this;return r.msg=n,r}return t})(Error);Vs.RandomSelectorError=Yv;var f5=(function(){function e(){}return e.prototype.selectWithProbability=function(t,n){var r=t.reduce(function(u,f){if(!("probability"in f))throw new Yv("Error: There is no probability set for value: "+f.group);return u+f.probability},0);if(r===0)throw new Yv("Error: Total sum of probabilities must be greater than 0");var o=Math.floor(Math.random()*r)+1,s={probability:0,group:""},a=0;return t.some(function(u,f){if(r-=u.probability,r<o)return s=u,a=f,!0}),n?a:s},e})();Vs.RandomSelector=f5;var Iae=new f5;Vs.default=Iae;(function(e){var t=Yp&&Yp.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};
vendor: 30,472 bytes, line 59
59Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=Vs;Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t(n).default}})})(c5);const Aae=gse(c5);var Kv={},d5={},Jh={};Jh.byteLength=Rae;Jh.toByteArray=kae;Jh.fromByteArray=Pae;var Kr=[],sr=[],xae=typeof Uint8Array<"u"?Uint8Array:Array,Tm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var _a=0,Cae=Tm.length;_a<Cae;++_a)Kr[_a]=Tm[_a],sr[Tm.charCodeAt(_a)]=_a;sr[45]=62;sr[95]=63;function p5(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function Rae(e){var t=p5(e),n=t[0],r=t[1];return(n+r)*3/4-r}function Oae(e,t,n){return(t+n)*3/4-n}function kae(e){var t,n=p5(e),r=n[0],o=n[1],s=new xae(Oae(e,r,o)),a=0,u=o>0?r-4:r,f;for(f=0;f<u;f+=4)t=sr[e.charCodeAt(f)]<<18|sr[e.charCodeAt(f+1)]<<12|sr[e.charCodeAt(f+2)]<<6|sr[e.charCodeAt(f+3)],s[a++]=t>>16&255,s[a++]=t>>8&255,s[a++]=t&255;return o===2&&(t=sr[e.charCodeAt(f)]<<2|sr[e.charCodeAt(f+1)]>>4,s[a++]=t&255),o===1&&(t=sr[e.charCodeAt(f)]<<10|sr[e.charCodeAt(f+1)]<<4|sr[e.charCodeAt(f+2)]>>2,s[a++]=t>>8&255,s[a++]=t&255),s}function Lae(e){return Kr[e>>18&63]+Kr[e>>12&63]+Kr[e>>6&63]+Kr[e&63]}function Mae(e,t,n){for(var r,o=[],s=t;s<n;s+=3)r=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(e[s+2]&255),o.push(Lae(r));return o.join("")}function Pae(e){for(var t,n=e.length,r=n%3,o=[],s=16383,a=0,u=n-r;a<u;a+=s)o.push(Mae(e,a,a+s>u?u:a+s));return r===1?(t=e[n-1],o.push(Kr[t>>2]+Kr[t<<4&63]+"==")):r===2&&(t=(e[n-2]<<8)+e[n-1],o.push(Kr[t>>10]+Kr[t>>4&63]+Kr[t<<2&63]+"=")),o.join("")}var V_={};V_.read=function(e,t,n,r,o){var s,a,u=o*8-r-1,f=(1<<u)-1,d=f>>1,p=-7,h=n?o-1:0,y=n?-1:1,m=e[t+h];for(h+=y,s=m&(1<<-p)-1,m>>=-p,p+=u;p>0;s=s*256+e[t+h],h+=y,p-=8);for(a=s&(1<<-p)-1,s>>=-p,p+=r;p>0;a=a*256+e[t+h],h+=y,p-=8);if(s===0)s=1-d;else{if(s===f)return a?NaN:(m?-1:1)*(1/0);a=a+Math.pow(2,r),s=s-d}return(m?-1:1)*a*Math.pow(2,s-r)};V_.write=function(e,t,n,r,o,s){var a,u,f,d=s*8-o-1,p=(1<<d)-1,h=p>>1,y=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,m=r?0:s-1,v=r?1:-1,b=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,a=p):(a=Math.floor(Math.log(t)/Math.LN2),t*(f=Math.pow(2,-a))<1&&(a--,f*=2),a+h>=1?t+=y/f:t+=y*Math.pow(2,1-h),t*f>=2&&(a++,f/=2),a+h>=p?(u=0,a=p):a+h>=1?(u=(t*f-1)*Math.pow(2,o),a=a+h):(u=t*Math.pow(2,h-1)*Math.pow(2,o),a=0));o>=8;e[n+m]=u&255,m+=v,u/=256,o-=8);for(a=a<<o|u,d+=o;d>0;e[n+m]=a&255,m+=v,a/=256,d-=8);e[n+m-v]|=b*128};(function(e){const t=Jh,n=V_,r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=u,e.SlowBuffer=T,e.INSPECT_MAX_BYTES=50;const o=2147483647;e.kMaxLength=o,u.TYPED_ARRAY_SUPPORT=s(),!u.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function s(){try{const i=new Uint8Array(1),l={foo:function(){return 42}};return Object.setPrototypeOf(l,Uint8Array.prototype),Object.setPrototypeOf(i,l),i.foo()===42}catch{return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}});function a(i){if(i>o)throw new RangeError('The value "'+i+'" is invalid for option "size"');const l=new Uint8Array(i);return Object.setPrototypeOf(l,u.prototype),l}function u(i,l,c){if(typeof i=="number"){if(typeof l=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return h(i)}return f(i,l,c)}u.poolSize=8192;function f(i,l,c){if(typeof i=="string")return y(i,l);if(ArrayBuffer.isView(i))return v(i);if(i==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof i);if(fe(i,ArrayBuffer)||i&&fe(i.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(fe(i,SharedArrayBuffer)||i&&fe(i.buffer,SharedArrayBuffer)))return b(i,l,c);if(typeof i=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const g=i.valueOf&&i.valueOf();if(g!=null&&g!==i)return u.from(g,l,c);const _=S(i);if(_)return _;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof i[Symbol.toPrimitive]=="function")return u.from(i[Symbol.toPrimitive]("string"),l,c);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof i)}u.from=function(i,l,c){return f(i,l,c)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array);function d(i){if(typeof i!="number")throw new TypeError('"size" argument must be of type number');if(i<0)throw new RangeError('The value "'+i+'" is invalid for option "size"')}function p(i,l,c){return d(i),i<=0?a(i):l!==void 0?typeof c=="string"?a(i).fill(l,c):a(i).fill(l):a(i)}u.alloc=function(i,l,c){return p(i,l,c)};function h(i){return d(i),a(i<0?0:w(i)|0)}u.allocUnsafe=function(i){return h(i)},u.allocUnsafeSlow=function(i){return h(i)};function y(i,l){if((typeof l!="string"||l==="")&&(l="utf8"),!u.isEncoding(l))throw new TypeError("Unknown encoding: "+l);const c=I(i,l)|0;let g=a(c);const _=g.write(i,l);return _!==c&&(g=g.slice(0,_)),g}function m(i){const l=i.length<0?0:w(i.length)|0,c=a(l);for(let g=0;g<l;g+=1)c[g]=i[g]&255;return c}function v(i){if(fe(i,Uint8Array)){const l=new Uint8Array(i);return b(l.buffer,l.byteOffset,l.byteLength)}return m(i)}function b(i,l,c){if(l<0||i.byteLength<l)throw new RangeError('"offset" is outside of buffer bounds');if(i.byteLength<l+(c||0))throw new RangeError('"length" is outside of buffer bounds');let g;return l===void 0&&c===void 0?g=new Uint8Array(i):c===void 0?g=new Uint8Array(i,l):g=new Uint8Array(i,l,c),Object.setPrototypeOf(g,u.prototype),g}function S(i){if(u.isBuffer(i)){const l=w(i.length)|0,c=a(l);return c.length===0||i.copy(c,0,0,l),c}if(i.length!==void 0)return typeof i.length!="number"||Ce(i.length)?a(0):m(i);if(i.type==="Buffer"&&Array.isArray(i.data))return m(i.data)}function w(i){if(i>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return i|0}function T(i){return+i!=i&&(i=0),u.alloc(+i)}u.isBuffer=function(i){return i!=null&&i._isBuffer===!0&&i!==u.prototype},u.compare=function(i,l){if(fe(i,Uint8Array)&&(i=u.from(i,i.offset,i.byteLength)),fe(l,Uint8Array)&&(l=u.from(l,l.offset,l.byteLength)),!u.isBuffer(i)||!u.isBuffer(l))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(i===l)return 0;let c=i.length,g=l.length;for(let _=0,E=Math.min(c,g);_<E;++_)if(i[_]!==l[_]){c=i[_],g=l[_];break}return c<g?-1:g<c?1:0},u.isEncoding=function(i){switch(String(i).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(i,l){if(!Array.isArray(i))throw new TypeError('"list" argument must be an Array of Buffers');if(i.length===0)return u.alloc(0);let c;if(l===void 0)for(l=0,c=0;c<i.length;++c)l+=i[c].length;const g=u.allocUnsafe(l);let _=0;for(c=0;c<i.length;++c){let E=i[c];if(fe(E,Uint8Array))_+E.length>g.length?(u.isBuffer(E)||(E=u.from(E)),E.copy(g,_)):Uint8Array.prototype.set.call(g,E,_);else if(u.isBuffer(E))E.copy(g,_);else throw new TypeError('"list" argument must be an Array of Buffers');_+=E.length}return g};function I(i,l){if(u.isBuffer(i))return i.length;if(ArrayBuffer.isView(i)||fe(i,ArrayBuffer))return i.byteLength;if(typeof i!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof i);const c=i.length,g=arguments.length>2&&arguments[2]===!0;if(!g&&c===0)return 0;let _=!1;for(;;)switch(l){case"ascii":case"latin1":case"binary":return c;case"utf8":case"utf-8":return de(i).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c*2;case"hex":return c>>>1;case"base64":return pe(i).length;default:if(_)return g?-1:de(i).length;l=(""+l).toLowerCase(),_=!0}}u.byteLength=I;function C(i,l,c){let g=!1;if((l===void 0||l<0)&&(l=0),l>this.length||((c===void 0||c>this.length)&&(c=this.length),c<=0)||(c>>>=0,l>>>=0,c<=l))return"";for(i||(i="utf8");;)switch(i){case"hex":return q(this,l,c);case"utf8":case"utf-8":return Y(this,l,c);case"ascii":return ae(this,l,c);case"latin1":case"binary":return ce(this,l,c);case"base64":return W(this,l,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ue(this,l,c);default:if(g)throw new TypeError("Unknown encoding: "+i);i=(i+"").toLowerCase(),g=!0}}u.prototype._isBuffer=!0;function A(i,l,c){const g=i[l];i[l]=i[c],i[c]=g}u.prototype.swap16=function(){const i=this.length;if(i%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let l=0;l<i;l+=2)A(this,l,l+1);return this},u.prototype.swap32=function(){const i=this.length;if(i%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let l=0;l<i;l+=4)A(this,l,l+3),A(this,l+1,l+2);return this},u.prototype.swap64=function(){const i=this.length;if(i%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let l=0;l<i;l+=8)A(this,l,l+7),A(this,l+1,l+6),A(this,l+2,l+5),A(this,l+3,l+4);return this},u.prototype.toString=function(){const i=this.length;return i===0?"":arguments.length===0?Y(this,0,i):C.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(i){if(!u.isBuffer(i))throw new TypeError("Argument must be a Buffer");return this===i?!0:u.compare(this,i)===0},u.prototype.inspect=function(){let i="";const l=e.INSPECT_MAX_BYTES;return i=this.toString("hex",0,l).replace(/(.{2})/g,"$1 ").trim(),this.length>l&&(i+=" ... "),"<Buffer "+i+">"},r&&(u.prototype[r]=u.prototype.inspect),u.prototype.compare=function(i,l,c,g,_){if(fe(i,Uint8Array)&&(i=u.from(i,i.offset,i.byteLength)),!u.isBuffer(i))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof i);if(l===void 0&&(l=0),c===void 0&&(c=i?i.length:0),g===void 0&&(g=0),_===void 0&&(_=this.length),l<0||c>i.length||g<0||_>this.length)throw new RangeError("out of range index");if(g>=_&&l>=c)return 0;if(g>=_)return-1;if(l>=c)return 1;if(l>>>=0,c>>>=0,g>>>=0,_>>>=0,this===i)return 0;let E=_-g,R=c-l;const oe=Math.min(E,R),$e=this.slice(g,_),me=i.slice(l,c);for(let he=0;he<oe;++he)if($e[he]!==me[he]){E=$e[he],R=me[he];break}return E<R?-1:R<E?1:0};function $(i,l,c,g,_){if(i.length===0)return-1;if(typeof c=="string"?(g=c,c=0):c>2147483647?c=2147483647:c<-2147483648&&(c=-2147483648),c=+c,Ce(c)&&(c=_?0:i.length-1),c<0&&(c=i.length+c),c>=i.length){if(_)return-1;c=i.length-1}else if(c<0)if(_)c=0;else return-1;if(typeof l=="string"&&(l=u.from(l,g)),u.isBuffer(l))return l.length===0?-1:k(i,l,c,g,_);if(typeof l=="number")return l=l&255,typeof Uint8Array.prototype.indexOf=="function"?_?Uint8Array.prototype.indexOf.call(i,l,c):Uint8Array.prototype.lastIndexOf.call(i,l,c):k(i,[l],c,g,_);throw new TypeError("val must be string, number or Buffer")}function k(i,l,c,g,_){let E=1,R=i.length,oe=l.length;if(g!==void 0&&(g=String(g).toLowerCase(),g==="ucs2"||g==="ucs-2"||g==="utf16le"||g==="utf-16le")){if(i.length<2||l.length<2)return-1;E=2,R/=2,oe/=2,c/=2}function $e(he,Te){return E===1?he[Te]:he.readUInt16BE(Te*E)}let me;if(_){let he=-1;for(me=c;me<R;me++)if($e(i,me)===$e(l,he===-1?0:me-he)){if(he===-1&&(he=me),me-he+1===oe)return he*E}else he!==-1&&(me-=me-he),he=-1}else for(c+oe>R&&(c=R-oe),me=c;me>=0;me--){let he=!0;for(let Te=0;Te<oe;Te++)if($e(i,me+Te)!==$e(l,Te)){he=!1;break}if(he)return me}return-1}u.prototype.includes=function(i,l,c){return this.indexOf(i,l,c)!==-1},u.prototype.indexOf=function(i,l,c){return $(this,i,l,c,!0)},u.prototype.lastIndexOf=function(i,l,c){return $(this,i,l,c,!1)};function x(i,l,c,g){c=Number(c)||0;const _=i.length-c;g?(g=Number(g),g>_&&(g=_)):g=_;const E=l.length;g>E/2&&(g=E/2);let R;for(R=0;R<g;++R){const oe=parseInt(l.substr(R*2,2),16);if(Ce(oe))return R;i[c+R]=oe}return R}function O(i,l,c,g){return ge(de(l,i.length-c),i,c,g)}function M(i,l,c,g){return ge(_e(l),i,c,g)}function j(i,l,c,g){return ge(pe(l),i,c,g)}function V(i,l,c,g){return ge(Se(l,i.length-c),i,c,g)}u.prototype.write=function(i,l,c,g){if(l===void 0)g="utf8",c=this.length,l=0;else if(c===void 0&&typeof l=="string")g=l,c=this.length,l=0;else if(isFinite(l))l=l>>>0,isFinite(c)?(c=c>>>0,g===void 0&&(g="utf8")):(g=c,c=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const _=this.length-l;if((c===void 0||c>_)&&(c=_),i.length>0&&(c<0||l<0)||l>this.length)throw new RangeError("Attempt to write outside buffer bounds");g||(g="utf8");let E=!1;for(;;)switch(g){case"hex":return x(this,i,l,c);case"utf8":case"utf-8":return O(this,i,l,c);case"ascii":case"latin1":case"binary":return M(this,i,l,c);case"base64":return j(this,i,l,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return V(this,i,l,c);default:if(E)throw new TypeError("Unknown encoding: "+g);g=(""+g).toLowerCase(),E=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function W(i,l,c){return l===0&&c===i.length?t.fromByteArray(i):t.fromByteArray(i.slice(l,c))}function Y(i,l,c){c=Math.min(i.length,c);const g=[];let _=l;for(;_<c;){const E=i[_];let R=null,oe=E>239?4:E>223?3:E>191?2:1;if(_+oe<=c){let $e,me,he,Te;switch(oe){case 1:E<128&&(R=E);break;case 2:$e=i[_+1],($e&192)===128&&(Te=(E&31)<<6|$e&63,Te>127&&(R=Te));break;case 3:$e=i[_+1],me=i[_+2],($e&192)===128&&(me&192)===128&&(Te=(E&15)<<12|($e&63)<<6|me&63,Te>2047&&(Te<55296||Te>57343)&&(R=Te));break;case 4:$e=i[_+1],me=i[_+2],he=i[_+3],($e&192)===128&&(me&192)===128&&(he&192)===128&&(Te=(E&15)<<18|($e&63)<<12|(me&63)<<6|he&63,Te>65535&&Te<1114112&&(R=Te))}}R===null?(R=65533,oe=1):R>65535&&(R-=65536,g.push(R>>>10&1023|55296),R=56320|R&1023),g.push(R),_+=oe}return Z(g)}const ne=4096;function Z(i){const l=i.length;if(l<=ne)return String.fromCharCode.apply(String,i);let c="",g=0;for(;g<l;)c+=String.fromCharCode.apply(String,i.slice(g,g+=ne));return c}function ae(i,l,c){let g="";c=Math.min(i.length,c);for(let _=l;_<c;++_)g+=String.fromCharCode(i[_]&127);return g}function ce(i,l,c){let g="";c=Math.min(i.length,c);for(let _=l;_<c;++_)g+=String.fromCharCode(i[_]);return g}function q(i,l,c){const g=i.length;(!l||l<0)&&(l=0),(!c||c<0||c>g)&&(c=g);let _="";for(let E=l;E<c;++E)_+=H[i[E]];return _}function ue(i,l,c){const g=i.slice(l,c);let _="";for(let E=0;E<g.length-1;E+=2)_+=String.fromCharCode(g[E]+g[E+1]*256);return _}u.prototype.slice=function(i,l){const c=this.length;i=~~i,l=l===void 0?c:~~l,i<0?(i+=c,i<0&&(i=0)):i>c&&(i=c),l<0?(l+=c,l<0&&(l=0)):l>c&&(l=c),l<i&&(l=i);const g=this.subarray(i,l);return Object.setPrototypeOf(g,u.prototype),g};function G(i,l,c){if(i%1!==0||i<0)throw new RangeError("offset is not uint");if(i+l>c)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(i,l,c){i=i>>>0,l=l>>>0,c||G(i,l,this.length);let g=this[i],_=1,E=0;for(;++E<l&&(_*=256);)g+=this[i+E]*_;return g},u.prototype.readUintBE=u.prototype.readUIntBE=function(i,l,c){i=i>>>0,l=l>>>0,c||G(i,l,this.length);let g=this[i+--l],_=1;for(;l>0&&(_*=256);)g+=this[i+--l]*_;return g},u.prototype.readUint8=u.prototype.readUInt8=function(i,l){return i=i>>>0,l||G(i,1,this.length),this[i]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(i,l){return i=i>>>0,l||G(i,2,this.length),this[i]|this[i+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(i,l){return i=i>>>0,l||G(i,2,this.length),this[i]<<8|this[i+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(i,l){return i=i>>>0,l||G(i,4,this.length),(this[i]|this[i+1]<<8|this[i+2]<<16)+this[i+3]*16777216},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(i,l){return i=i>>>0,l||G(i,4,this.length),this[i]*16777216+(this[i+1]<<16|this[i+2]<<8|this[i+3])},u.prototype.readBigUInt64LE=z(function(i){i=i>>>0,L(i,"offset");const l=this[i],c=this[i+7];(l===void 0||c===void 0)&&D(i,this.length-8);const g=l+this[++i]*2**8+this[++i]*2**16+this[++i]*2**24,_=this[++i]+this[++i]*2**8+this[++i]*2**16+c*2**24;return BigInt(g)+(BigInt(_)<<BigInt(32))}),u.prototype.readBigUInt64BE=z(function(i){i=i>>>0,L(i,"offset");const l=this[i],c=this[i+7];(l===void 0||c===void 0)&&D(i,this.length-8);const g=l*2**24+this[++i]*2**16+this[++i]*2**8+this[++i],_=this[++i]*2**24+this[++i]*2**16+this[++i]*2**8+c;return(BigInt(g)<<BigInt(32))+BigInt(_)}),u.prototype.readIntLE=function(i,l,c){i=i>>>0,l=l>>>0,c||G(i,l,this.length);let g=this[i],_=1,E=0;for(;++E<l&&(_*=256);)g+=this[i+E]*_;return _*=128,g>=_&&(g-=Math.pow(2,8*l)),g},u.prototype.readIntBE=function(i,l,c){i=i>>>0,l=l>>>0,c||G(i,l,this.length);let g=l,_=1,E=this[i+--g];for(;g>0&&(_*=256);)E+=this[i+--g]*_;return _*=128,E>=_&&(E-=Math.pow(2,8*l)),E},u.prototype.readInt8=function(i,l){return i=i>>>0,l||G(i,1,this.length),this[i]&128?(255-this[i]+1)*-1:this[i]},u.prototype.readInt16LE=function(i,l){i=i>>>0,l||G(i,2,this.length);const c=this[i]|this[i+1]<<8;return c&32768?c|4294901760:c},u.prototype.readInt16BE=function(i,l){i=i>>>0,l||G(i,2,this.length);const c=this[i+1]|this[i]<<8;return c&32768?c|4294901760:c},u.prototype.readInt32LE=function(i,l){return i=i>>>0,l||G(i,4,this.length),this[i]|this[i+1]<<8|this[i+2]<<16|this[i+3]<<24},u.prototype.readInt32BE=function(i,l){return i=i>>>0,l||G(i,4,this.length),this[i]<<24|this[i+1]<<16|this[i+2]<<8|this[i+3]},u.prototype.readBigInt64LE=z(function(i){i=i>>>0,L(i,"offset");const l=this[i],c=this[i+7];(l===void 0||c===void 0)&&D(i,this.length-8);const g=this[i+4]+this[i+5]*2**8+this[i+6]*2**16+(c<<24);return(BigInt(g)<<BigInt(32))+BigInt(l+this[++i]*2**8+this[++i]*2**16+this[++i]*2**24)}),u.prototype.readBigInt64BE=z(function(i){i=i>>>0,L(i,"offset");const l=this[i],c=this[i+7];(l===void 0||c===void 0)&&D(i,this.length-8);const g=(l<<24)+this[++i]*2**16+this[++i]*2**8+this[++i];return(BigInt(g)<<BigInt(32))+BigInt(this[++i]*2**24+this[++i]*2**16+this[++i]*2**8+c)}),u.prototype.readFloatLE=function(i,l){return i=i>>>0,l||G(i,4,this.length),n.read(this,i,!0,23,4)},u.prototype.readFloatBE=function(i,l){return i=i>>>0,l||G(i,4,this.length),n.read(this,i,!1,23,4)},u.prototype.readDoubleLE=function(i,l){return i=i>>>0,l||G(i,8,this.length),n.read(this,i,!0,52,8)},u.prototype.readDoubleBE=function(i,l){return i=i>>>0,l||G(i,8,this.length),n.read(this,i,!1,52,8)};function re(i,l,c,g,_,E){if(!u.isBuffer(i))throw new TypeError('"buffer" argument must be a Buffer instance');if(l>_||l<E)throw new RangeError('"value" argument is out of bounds');if(c+g>i.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(i,l,c,g){if(i=+i,l=l>>>0,c=c>>>0,!g){const R=Math.pow(2,8*c)-1;re(this,i,l,c,R,0)}let _=1,E=0;for(this[l]=i&255;++E<c&&(_*=256);)this[l+E]=i/_&255;return l+c},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(i,l,c,g){if(i=+i,l=l>>>0,c=c>>>0,!g){const R=Math.pow(2,8*c)-1;re(this,i,l,c,R,0)}let _=c-1,E=1;for(this[l+_]=i&255;--_>=0&&(E*=256);)this[l+_]=i/E&255;return l+c},u.prototype.writeUint8=u.prototype.writeUInt8=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,1,255,0),this[l]=i&255,l+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,2,65535,0),this[l]=i&255,this[l+1]=i>>>8,l+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,2,65535,0),this[l]=i>>>8,this[l+1]=i&255,l+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,4,4294967295,0),this[l+3]=i>>>24,this[l+2]=i>>>16,this[l+1]=i>>>8,this[l]=i&255,l+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,4,4294967295,0),this[l]=i>>>24,this[l+1]=i>>>16,this[l+2]=i>>>8,this[l+3]=i&255,l+4};function Oe(i,l,c,g,_){K(l,g,_,i,c,7);let E=Number(l&BigInt(4294967295));i[c++]=E,E=E>>8,i[c++]=E,E=E>>8,i[c++]=E,E=E>>8,i[c++]=E;let R=Number(l>>BigInt(32)&BigInt(4294967295));return i[c++]=R,R=R>>8,i[c++]=R,R=R>>8,i[c++]=R,R=R>>8,i[c++]=R,c}function Ee(i,l,c,g,_){K(l,g,_,i,c,7);let E=Number(l&BigInt(4294967295));i[c+7]=E,E=E>>8,i[c+6]=E,E=E>>8,i[c+5]=E,E=E>>8,i[c+4]=E;let R=Number(l>>BigInt(32)&BigInt(4294967295));return i[c+3]=R,R=R>>8,i[c+2]=R,R=R>>8,i[c+1]=R,R=R>>8,i[c]=R,c+8}u.prototype.writeBigUInt64LE=z(function(i,l=0){return Oe(this,i,l,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=z(function(i,l=0){return Ee(this,i,l,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(i,l,c,g){if(i=+i,l=l>>>0,!g){const oe=Math.pow(2,8*c-1);re(this,i,l,c,oe-1,-oe)}let _=0,E=1,R=0;for(this[l]=i&255;++_<c&&(E*=256);)i<0&&R===0&&this[l+_-1]!==0&&(R=1),this[l+_]=(i/E>>0)-R&255;return l+c},u.prototype.writeIntBE=function(i,l,c,g){if(i=+i,l=l>>>0,!g){const oe=Math.pow(2,8*c-1);re(this,i,l,c,oe-1,-oe)}let _=c-1,E=1,R=0;for(this[l+_]=i&255;--_>=0&&(E*=256);)i<0&&R===0&&this[l+_+1]!==0&&(R=1),this[l+_]=(i/E>>0)-R&255;return l+c},u.prototype.writeInt8=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,1,127,-128),i<0&&(i=255+i+1),this[l]=i&255,l+1},u.prototype.writeInt16LE=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,2,32767,-32768),this[l]=i&255,this[l+1]=i>>>8,l+2},u.prototype.writeInt16BE=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,2,32767,-32768),this[l]=i>>>8,this[l+1]=i&255,l+2},u.prototype.writeInt32LE=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,4,2147483647,-2147483648),this[l]=i&255,this[l+1]=i>>>8,this[l+2]=i>>>16,this[l+3]=i>>>24,l+4},u.prototype.writeInt32BE=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,4,2147483647,-2147483648),i<0&&(i=4294967295+i+1),this[l]=i>>>24,this[l+1]=i>>>16,this[l+2]=i>>>8,this[l+3]=i&255,l+4},u.prototype.writeBigInt64LE=z(function(i,l=0){return Oe(this,i,l,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=z(function(i,l=0){return Ee(this,i,l,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Pe(i,l,c,g,_,E){if(c+g>i.length)throw new RangeError("Index out of range");if(c<0)throw new RangeError("Index out of range")}function Ae(i,l,c,g,_){return l=+l,c=c>>>0,_||Pe(i,l,c,4),n.write(i,l,c,g,23,4),c+4}u.prototype.writeFloatLE=function(i,l,c){return Ae(this,i,l,!0,c)},u.prototype.writeFloatBE=function(i,l,c){return Ae(this,i,l,!1,c)};function le(i,l,c,g,_){return l=+l,c=c>>>0,_||Pe(i,l,c,8),n.write(i,l,c,g,52,8),c+8}u.prototype.writeDoubleLE=function(i,l,c){return le(this,i,l,!0,c)},u.prototype.writeDoubleBE=function(i,l,c){return le(this,i,l,!1,c)},u.prototype.copy=function(i,l,c,g){if(!u.isBuffer(i))throw new TypeError("argument should be a Buffer");if(c||(c=0),!g&&g!==0&&(g=this.length),l>=i.length&&(l=i.length),l||(l=0),g>0&&g<c&&(g=c),g===c||i.length===0||this.length===0)return 0;if(l<0)throw new RangeError("targetStart out of bounds");if(c<0||c>=this.length)throw new RangeError("Index out of range");if(g<0)throw new RangeError("sourceEnd out of bounds");g>this.length&&(g=this.length),i.length-l<g-c&&(g=i.length-l+c);const _=g-c;return this===i&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(l,c,g):Uint8Array.prototype.set.call(i,this.subarray(c,g),l),_},u.prototype.fill=function(i,l,c,g){if(typeof i=="string"){if(typeof l=="string"?(g=l,l=0,c=this.length):typeof c=="string"&&(g=c,c=this.length),g!==void 0&&typeof g!="string")throw new TypeError("encoding must be a string");if(typeof g=="string"&&!u.isEncoding(g))throw new TypeError("Unknown encoding: "+g);if(i.length===1){const E=i.charCodeAt(0);(g==="utf8"&&E<128||g==="latin1")&&(i=E)}}else typeof i=="number"?i=i&255:typeof i=="boolean"&&(i=Number(i));if(l<0||this.length<l||this.length<c)throw new RangeError("Out of range index");if(c<=l)return this;l=l>>>0,c=c===void 0?this.length:c>>>0,i||(i=0);let _;if(typeof i=="number")for(_=l;_<c;++_)this[_]=i;else{const E=u.isBuffer(i)?i:u.from(i,g),R=E.length;if(R===0)throw new TypeError('The value "'+i+'" is invalid for argument "value"');for(_=0;_<c-l;++_)this[_+l]=E[_%R]}return this};const Q={};function P(i,l,c){Q[i]=class extends c{constructor(){super(),Object.defineProperty(this,"message",{value:l.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${i}]`,this.stack,delete this.name}get code(){return i}set code(g){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:g,writable:!0})}toString(){return`${this.name} [${i}]: ${this.message}`}}}P("ERR_BUFFER_OUT_OF_BOUNDS",function(i){return i?`${i} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),P("ERR_INVALID_ARG_TYPE",function(i,l){return`The "${i}" argument must be of type number. Received type ${typeof l}`},TypeError),P("ERR_OUT_OF_RANGE",function(i,l,c){let g=`The value of "${i}" is out of range.`,_=c;return Number.isInteger(c)&&Math.abs(c)>2**32?_=F(String(c)):typeof c=="bigint"&&(_=String(c),(c>BigInt(2)**BigInt(32)||c<-(BigInt(2)**BigInt(32)))&&(_=F(_)),_+="n"),g+=` It must be ${l}. Received ${_}`,g},RangeError);function F(i){let l="",c=i.length;const g=i[0]==="-"?1:0;for(;c>=g+4;c-=3)l=`_${i.slice(c-3,c)}${l}`;return`${i.slice(0,c)}${l}`}function B(i,l,c){L(l,"offset"),(i[l]===void 0||i[l+c]===void 0)&&D(l,i.length-(c+1))}function K(i,l,c,g,_,E){if(i>c||i<l){const R=typeof l=="bigint"?"n":"";let oe;throw l===0||l===BigInt(0)?oe=`>= 0${R} and < 2${R} ** ${(E+1)*8}${R}`:oe=`>= -(2${R} ** ${(E+1)*8-1}${R}) and < 2 ** ${(E+1)*8-1}${R}`,new Q.ERR_OUT_OF_RANGE("value",oe,i)}B(g,_,E)}function L(i,l){if(typeof i!="number")throw new Q.ERR_INVALID_ARG_TYPE(l,"number",i)}function D(i,l,c){throw Math.floor(i)!==i?(L(i,c),new Q.ERR_OUT_OF_RANGE("offset","an integer",i)):l<0?new Q.ERR_BUFFER_OUT_OF_BOUNDS:new Q.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${l}`,i)}const se=/[^+/0-9A-Za-z-_]/g;function ve(i){if(i=i.split("=")[0],i=i.trim().replace(se,""),i.length<2)return"";for(;i.length%4!==0;)i=i+"=";return i}function de(i,l){l=l||1/0;let c;const g=i.length;let _=null;const E=[];for(let R=0;R<g;++R){if(c=i.charCodeAt(R),c>55295&&c<57344){if(!_){if(c>56319){(l-=3)>-1&&E.push(239,191,189);continue}else if(R+1===g){(l-=3)>-1&&E.push(239,191,189);continue}_=c;continue}if(c<56320){(l-=3)>-1&&E.push(239,191,189),_=c;continue}c=(_-55296<<10|c-56320)+65536}else _&&(l-=3)>-1&&E.push(239,191,189);if(_=null,c<128){if((l-=1)<0)break;E.push(c)}else if(c<2048){if((l-=2)<0)break;E.push(c>>6|192,c&63|128)}else if(c<65536){if((l-=3)<0)break;E.push(c>>12|224,c>>6&63|128,c&63|128)}else if(c<1114112){if((l-=4)<0)break;E.push(c>>18|240,c>>12&63|128,c>>6&63|128,c&63|128)}else throw new Error("Invalid code point")}return E}function _e(i){const l=[];for(let c=0;c<i.length;++c)l.push(i.charCodeAt(c)&255);return l}function Se(i,l){let c,g,_;const E=[];for(let R=0;R<i.length&&!((l-=2)<0);++R)c=i.charCodeAt(R),g=c>>8,_=c%256,E.push(_),E.push(g);return E}function pe(i){return t.toByteArray(ve(i))}function ge(i,l,c,g){let _;for(_=0;_<g&&!(_+c>=l.length||_>=i.length);++_)l[_+c]=i[_];return _}function fe(i,l){return i instanceof l||i!=null&&i.constructor!=null&&i.constructor.name!=null&&i.constructor.name===l.name}function Ce(i){return i!==i}const H=(function(){const i="0123456789abcdef",l=new Array(256);for(let c=0;c<16;++c){const g=c*16;for(let _=0;_<16;++_)l[g+_]=i[c]+i[_]}return l})();function z(i){return typeof BigInt>"u"?ee:i}function ee(){throw new Error("BigInt not supported")}})(d5);var Zv={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n={exports:{}},r=n.exports={},o,s;function a(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?o=setTimeout:o=a}catch{o=a}try{typeof clearTimeout=="function"?s=clearTimeout:s=u}catch{s=u}})();function f(q){if(o===setTimeout)return setTimeout(q,0);if((o===a||!o)&&setTimeout)return o=setTimeout,setTimeout(q,0);try{return o(q,0)}catch{try{return o.call(null,q,0)}catch{return o.call(this,q,0)}}}function d(q){if(s===clearTimeout)return clearTimeout(q);if((s===u||!s)&&clearTimeout)return s=clearTimeout,clearTimeout(q);try{return s(q)}catch{try{return s.call(null,q)}catch{return s.call(this,q)}}}var p=[],h=!1,y,m=-1;function v(){!h||!y||(h=!1,y.length?p=y.concat(p):m=-1,p.length&&b())}function b(){if(!h){var q=f(v);h=!0;for(var ue=p.length;ue;){for(y=p,p=[];++m<ue;)y&&y[m].run();m=-1,ue=p.length}y=null,h=!1,d(q)}}r.nextTick=function(q){var ue=new Array(arguments.length-1);if(arguments.length>1)for(var G=1;G<arguments.length;G++)ue[G-1]=arguments[G];p.push(new S(q,ue)),p.length===1&&!h&&f(b)};function S(q,ue){this.fun=q,this.array=ue}S.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={};function w(){}r.on=w,r.addListener=w,r.once=w,r.off=w,r.removeListener=w,r.removeAllListeners=w,r.emit=w,r.prependListener=w,r.prependOnceListener=w,r.listeners=function(q){return[]},r.binding=function(q){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(q){throw new Error("process.chdir is not supported")},r.umask=function(){return 0};function T(){}var I=n.exports.browser,C=T,A=n.exports.binding,$=T,k=1,x={},O=T,M=T,j=T,V=T,W=T,Y="browser",ne="browser",Z="browser",ae=[],ce={nextTick:n.exports.nextTick,title:n.exports.title,browser:I,env:n.exports.env,argv:n.exports.argv,version:n.exports.version,versions:n.exports.versions,on:n.exports.on,addListener:n.exports.addListener,once:n.exports.once,off:n.exports.off,removeListener:n.exports.removeListener,removeAllListeners:n.exports.removeAllListeners,emit:n.exports.emit,emitWarning:C,prependListener:n.exports.prependListener,prependOnceListener:n.exports.prependOnceListener,listeners:n.exports.listeners,binding:A,cwd:n.exports.cwd,chdir:n.exports.chdir,umask:n.exports.umask,exit:$,pid:k,features:x,kill:O,dlopen:M,uptime:j,memoryUsage:V,uvCounters:W,platform:Y,arch:ne,execPath:Z,execArgv:ae};t.addListener=n.exports.addListener,t.arch=ne,t.argv=n.exports.argv,t.b
59inding=A,t.browser=I,t.chdir=n.exports.chdir,t.cwd=n.exports.cwd,t.default=ce,t.dlopen=M,t.emit=n.exports.emit,t.emitWarning=C,t.env=n.exports.env,t.execArgv=ae,t.execPath=Z,t.exit=$,t.features=x,t.kill=O,t.listeners=n.exports.listeners,t.memoryUsage=V,t.nextTick=n.exports.nextTick,t.off=n.exports.off,t.on=n.exports.on,t.once=n.exports.once,t.pid=k,t.platform=Y,t.prependListener=n.exports.prependListener,t.prependOnceListener=n.exports.prependOnceListener,t.removeAllListeners=n.exports.removeAllListeners,t.removeListener=n.exports.removeListener,t.title=n.exports.title,t.umask=n.exports.umask,t.uptime=j,t.uvCounters=W,t.version=n.exports.version,t.versions=n.exports.versions,t=e.exports=ce})(Zv,Zv.exports);var Bae=Zv.exports;(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=d5,n=Bae,r=a=>a&&a.__esModule?a:{default:a},o=r(n),s=globalThis||void 0||self;Object.defineProperty(e,"Buffer",{enumerable:!0,get:()=>t.Buffer}),Object.defineProperty(e,"process",{enumerable:!0,get:()=>o.default}),e.global=s})(Kv);var g$=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Kv.global<"u"?Kv.global:typeof self<"u"?self:{},Kd={},h5={},Xh={};Xh.byteLength=Uae;Xh.toByteArray=Fae;Xh.fromByteArray=qae;var Zr=[],ar=[],Nae=typeof Uint8Array<"u"?Uint8Array:Array,Im="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var ba=0,Dae=Im.length;ba<Dae;++ba)Zr[ba]=Im[ba],ar[Im.charCodeAt(ba)]=ba;ar[45]=62;ar[95]=63;function g5(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function Uae(e){var t=g5(e),n=t[0],r=t[1];return(n+r)*3/4-r}function Hae(e,t,n){return(t+n)*3/4-n}function Fae(e){var t,n=g5(e),r=n[0],o=n[1],s=new Nae(Hae(e,r,o)),a=0,u=o>0?r-4:r,f;for(f=0;f<u;f+=4)t=ar[e.charCodeAt(f)]<<18|ar[e.charCodeAt(f+1)]<<12|ar[e.charCodeAt(f+2)]<<6|ar[e.charCodeAt(f+3)],s[a++]=t>>16&255,s[a++]=t>>8&255,s[a++]=t&255;return o===2&&(t=ar[e.charCodeAt(f)]<<2|ar[e.charCodeAt(f+1)]>>4,s[a++]=t&255),o===1&&(t=ar[e.charCodeAt(f)]<<10|ar[e.charCodeAt(f+1)]<<4|ar[e.charCodeAt(f+2)]>>2,s[a++]=t>>8&255,s[a++]=t&255),s}function jae(e){return Zr[e>>18&63]+Zr[e>>12&63]+Zr[e>>6&63]+Zr[e&63]}function Vae(e,t,n){for(var r,o=[],s=t;s<n;s+=3)r=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(e[s+2]&255),o.push(jae(r));return o.join("")}function qae(e){for(var t,n=e.length,r=n%3,o=[],s=16383,a=0,u=n-r;a<u;a+=s)o.push(Vae(e,a,a+s>u?u:a+s));return r===1?(t=e[n-1],o.push(Zr[t>>2]+Zr[t<<4&63]+"==")):r===2&&(t=(e[n-2]<<8)+e[n-1],o.push(Zr[t>>10]+Zr[t>>4&63]+Zr[t<<2&63]+"=")),o.join("")}var q_={};q_.read=function(e,t,n,r,o){var s,a,u=o*8-r-1,f=(1<<u)-1,d=f>>1,p=-7,h=n?o-1:0,y=n?-1:1,m=e[t+h];for(h+=y,s=m&(1<<-p)-1,m>>=-p,p+=u;p>0;s=s*256+e[t+h],h+=y,p-=8);for(a=s&(1<<-p)-1,s>>=-p,p+=r;p>0;a=a*256+e[t+h],h+=y,p-=8);if(s===0)s=1-d;else{if(s===f)return a?NaN:(m?-1:1)*(1/0);a=a+Math.pow(2,r),s=s-d}return(m?-1:1)*a*Math.pow(2,s-r)};q_.write=function(e,t,n,r,o,s){var a,u,f,d=s*8-o-1,p=(1<<d)-1,h=p>>1,y=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,m=r?0:s-1,v=r?1:-1,b=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,a=p):(a=Math.floor(Math.log(t)/Math.LN2),t*(f=Math.pow(2,-a))<1&&(a--,f*=2),a+h>=1?t+=y/f:t+=y*Math.pow(2,1-h),t*f>=2&&(a++,f/=2),a+h>=p?(u=0,a=p):a+h>=1?(u=(t*f-1)*Math.pow(2,o),a=a+h):(u=t*Math.pow(2,h-1)*Math.pow(2,o),a=0));o>=8;e[n+m]=u&255,m+=v,u/=256,o-=8);for(a=a<<o|u,d+=o;d>0;e[n+m]=a&255,m+=v,a/=256,d-=8);e[n+m-v]|=b*128};(function(e){const t=Xh,n=q_,r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=u,e.SlowBuffer=T,e.INSPECT_MAX_BYTES=50;const o=2147483647;e.kMaxLength=o,u.TYPED_ARRAY_SUPPORT=s(),!u.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function s(){try{const i=new Uint8Array(1),l={foo:function(){return 42}};return Object.setPrototypeOf(l,Uint8Array.prototype),Object.setPrototypeOf(i,l),i.foo()===42}catch{return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}});function a(i){if(i>
vendor: 20,863 bytes, line 59
59o)throw new RangeError('The value "'+i+'" is invalid for option "size"');const l=new Uint8Array(i);return Object.setPrototypeOf(l,u.prototype),l}function u(i,l,c){if(typeof i=="number"){if(typeof l=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return h(i)}return f(i,l,c)}u.poolSize=8192;function f(i,l,c){if(typeof i=="string")return y(i,l);if(ArrayBuffer.isView(i))return v(i);if(i==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof i);if(fe(i,ArrayBuffer)||i&&fe(i.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(fe(i,SharedArrayBuffer)||i&&fe(i.buffer,SharedArrayBuffer)))return b(i,l,c);if(typeof i=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const g=i.valueOf&&i.valueOf();if(g!=null&&g!==i)return u.from(g,l,c);const _=S(i);if(_)return _;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof i[Symbol.toPrimitive]=="function")return u.from(i[Symbol.toPrimitive]("string"),l,c);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof i)}u.from=function(i,l,c){return f(i,l,c)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array);function d(i){if(typeof i!="number")throw new TypeError('"size" argument must be of type number');if(i<0)throw new RangeError('The value "'+i+'" is invalid for option "size"')}function p(i,l,c){return d(i),i<=0?a(i):l!==void 0?typeof c=="string"?a(i).fill(l,c):a(i).fill(l):a(i)}u.alloc=function(i,l,c){return p(i,l,c)};function h(i){return d(i),a(i<0?0:w(i)|0)}u.allocUnsafe=function(i){return h(i)},u.allocUnsafeSlow=function(i){return h(i)};function y(i,l){if((typeof l!="string"||l==="")&&(l="utf8"),!u.isEncoding(l))throw new TypeError("Unknown encoding: "+l);const c=I(i,l)|0;let g=a(c);const _=g.write(i,l);return _!==c&&(g=g.slice(0,_)),g}function m(i){const l=i.length<0?0:w(i.length)|0,c=a(l);for(let g=0;g<l;g+=1)c[g]=i[g]&255;return c}function v(i){if(fe(i,Uint8Array)){const l=new Uint8Array(i);return b(l.buffer,l.byteOffset,l.byteLength)}return m(i)}function b(i,l,c){if(l<0||i.byteLength<l)throw new RangeError('"offset" is outside of buffer bounds');if(i.byteLength<l+(c||0))throw new RangeError('"length" is outside of buffer bounds');let g;return l===void 0&&c===void 0?g=new Uint8Array(i):c===void 0?g=new Uint8Array(i,l):g=new Uint8Array(i,l,c),Object.setPrototypeOf(g,u.prototype),g}function S(i){if(u.isBuffer(i)){const l=w(i.length)|0,c=a(l);return c.length===0||i.copy(c,0,0,l),c}if(i.length!==void 0)return typeof i.length!="number"||Ce(i.length)?a(0):m(i);if(i.type==="Buffer"&&Array.isArray(i.data))return m(i.data)}function w(i){if(i>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return i|0}function T(i){return+i!=i&&(i=0),u.alloc(+i)}u.isBuffer=function(i){return i!=null&&i._isBuffer===!0&&i!==u.prototype},u.compare=function(i,l){if(fe(i,Uint8Array)&&(i=u.from(i,i.offset,i.byteLength)),fe(l,Uint8Array)&&(l=u.from(l,l.offset,l.byteLength)),!u.isBuffer(i)||!u.isBuffer(l))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(i===l)return 0;let c=i.length,g=l.length;for(let _=0,E=Math.min(c,g);_<E;++_)if(i[_]!==l[_]){c=i[_],g=l[_];break}return c<g?-1:g<c?1:0},u.isEncoding=function(i){switch(String(i).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(i,l){if(!Array.isArray(i))throw new TypeError('"list" argument must be an Array of Buffers');if(i.length===0)return u.alloc(0);let c;if(l===void 0)for(l=0,c=0;c<i.length;++c)l+=i[c].length;const g=u.allocUnsafe(l);let _=0;for(c=0;c<i.length;++c){let E=i[c];if(fe(E,Uint8Array))_+E.length>g.length?(u.isBuffer(E)||(E=u.from(E)),E.copy(g,_)):Uint8Array.prototype.set.call(g,E,_);else if(u.isBuffer(E))E.copy(g,_);else throw new TypeError('"list" argument must be an Array of Buffers');_+=E.length}return g};function I(i,l){if(u.isBuffer(i))return i.length;if(ArrayBuffer.isView(i)||fe(i,ArrayBuffer))return i.byteLength;if(typeof i!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof i);const c=i.length,g=arguments.length>2&&arguments[2]===!0;if(!g&&c===0)return 0;let _=!1;for(;;)switch(l){case"ascii":case"latin1":case"binary":return c;case"utf8":case"utf-8":return de(i).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c*2;case"hex":return c>>>1;case"base64":return pe(i).length;default:if(_)return g?-1:de(i).length;l=(""+l).toLowerCase(),_=!0}}u.byteLength=I;function C(i,l,c){let g=!1;if((l===void 0||l<0)&&(l=0),l>this.length||((c===void 0||c>this.length)&&(c=this.length),c<=0)||(c>>>=0,l>>>=0,c<=l))return"";for(i||(i="utf8");;)switch(i){case"hex":return q(this,l,c);case"utf8":case"utf-8":return Y(this,l,c);case"ascii":return ae(this,l,c);case"latin1":case"binary":return ce(this,l,c);case"base64":return W(this,l,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ue(this,l,c);default:if(g)throw new TypeError("Unknown encoding: "+i);i=(i+"").toLowerCase(),g=!0}}u.prototype._isBuffer=!0;function A(i,l,c){const g=i[l];i[l]=i[c],i[c]=g}u.prototype.swap16=function(){const i=this.length;if(i%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let l=0;l<i;l+=2)A(this,l,l+1);return this},u.prototype.swap32=function(){const i=this.length;if(i%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let l=0;l<i;l+=4)A(this,l,l+3),A(this,l+1,l+2);return this},u.prototype.swap64=function(){const i=this.length;if(i%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let l=0;l<i;l+=8)A(this,l,l+7),A(this,l+1,l+6),A(this,l+2,l+5),A(this,l+3,l+4);return this},u.prototype.toString=function(){const i=this.length;return i===0?"":arguments.length===0?Y(this,0,i):C.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(i){if(!u.isBuffer(i))throw new TypeError("Argument must be a Buffer");return this===i?!0:u.compare(this,i)===0},u.prototype.inspect=function(){let i="";const l=e.INSPECT_MAX_BYTES;return i=this.toString("hex",0,l).replace(/(.{2})/g,"$1 ").trim(),this.length>l&&(i+=" ... "),"<Buffer "+i+">"},r&&(u.prototype[r]=u.prototype.inspect),u.prototype.compare=function(i,l,c,g,_){if(fe(i,Uint8Array)&&(i=u.from(i,i.offset,i.byteLength)),!u.isBuffer(i))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof i);if(l===void 0&&(l=0),c===void 0&&(c=i?i.length:0),g===void 0&&(g=0),_===void 0&&(_=this.length),l<0||c>i.length||g<0||_>this.length)throw new RangeError("out of range index");if(g>=_&&l>=c)return 0;if(g>=_)return-1;if(l>=c)return 1;if(l>>>=0,c>>>=0,g>>>=0,_>>>=0,this===i)return 0;let E=_-g,R=c-l;const oe=Math.min(E,R),$e=this.slice(g,_),me=i.slice(l,c);for(let he=0;he<oe;++he)if($e[he]!==me[he]){E=$e[he],R=me[he];break}return E<R?-1:R<E?1:0};function $(i,l,c,g,_){if(i.length===0)return-1;if(typeof c=="string"?(g=c,c=0):c>2147483647?c=2147483647:c<-2147483648&&(c=-2147483648),c=+c,Ce(c)&&(c=_?0:i.length-1),c<0&&(c=i.length+c),c>=i.length){if(_)return-1;c=i.length-1}else if(c<0)if(_)c=0;else return-1;if(typeof l=="string"&&(l=u.from(l,g)),u.isBuffer(l))return l.length===0?-1:k(i,l,c,g,_);if(typeof l=="number")return l=l&255,typeof Uint8Array.prototype.indexOf=="function"?_?Uint8Array.prototype.indexOf.call(i,l,c):Uint8Array.prototype.lastIndexOf.call(i,l,c):k(i,[l],c,g,_);throw new TypeError("val must be string, number or Buffer")}function k(i,l,c,g,_){let E=1,R=i.length,oe=l.length;if(g!==void 0&&(g=String(g).toLowerCase(),g==="ucs2"||g==="ucs-2"||g==="utf16le"||g==="utf-16le")){if(i.length<2||l.length<2)return-1;E=2,R/=2,oe/=2,c/=2}function $e(he,Te){return E===1?he[Te]:he.readUInt16BE(Te*E)}let me;if(_){let he=-1;for(me=c;me<R;me++)if($e(i,me)===$e(l,he===-1?0:me-he)){if(he===-1&&(he=me),me-he+1===oe)return he*E}else he!==-1&&(me-=me-he),he=-1}else for(c+oe>R&&(c=R-oe),me=c;me>=0;me--){let he=!0;for(let Te=0;Te<oe;Te++)if($e(i,me+Te)!==$e(l,Te)){he=!1;break}if(he)return me}return-1}u.prototype.includes=function(i,l,c){return this.indexOf(i,l,c)!==-1},u.prototype.indexOf=function(i,l,c){return $(this,i,l,c,!0)},u.prototype.lastIndexOf=function(i,l,c){return $(this,i,l,c,!1)};function x(i,l,c,g){c=Number(c)||0;const _=i.length-c;g?(g=Number(g),g>_&&(g=_)):g=_;const E=l.length;g>E/2&&(g=E/2);let R;for(R=0;R<g;++R){const oe=parseInt(l.substr(R*2,2),16);if(Ce(oe))return R;i[c+R]=oe}return R}function O(i,l,c,g){return ge(de(l,i.length-c),i,c,g)}function M(i,l,c,g){return ge(_e(l),i,c,g)}function j(i,l,c,g){return ge(pe(l),i,c,g)}function V(i,l,c,g){return ge(Se(l,i.length-c),i,c,g)}u.prototype.write=function(i,l,c,g){if(l===void 0)g="utf8",c=this.length,l=0;else if(c===void 0&&typeof l=="string")g=l,c=this.length,l=0;else if(isFinite(l))l=l>>>0,isFinite(c)?(c=c>>>0,g===void 0&&(g="utf8")):(g=c,c=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const _=this.length-l;if((c===void 0||c>_)&&(c=_),i.length>0&&(c<0||l<0)||l>this.length)throw new RangeError("Attempt to write outside buffer bounds");g||(g="utf8");let E=!1;for(;;)switch(g){case"hex":return x(this,i,l,c);case"utf8":case"utf-8":return O(this,i,l,c);case"ascii":case"latin1":case"binary":return M(this,i,l,c);case"base64":return j(this,i,l,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return V(this,i,l,c);default:if(E)throw new TypeError("Unknown encoding: "+g);g=(""+g).toLowerCase(),E=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function W(i,l,c){return l===0&&c===i.length?t.fromByteArray(i):t.fromByteArray(i.slice(l,c))}function Y(i,l,c){c=Math.min(i.length,c);const g=[];let _=l;for(;_<c;){const E=i[_];let R=null,oe=E>239?4:E>223?3:E>191?2:1;if(_+oe<=c){let $e,me,he,Te;switch(oe){case 1:E<128&&(R=E);break;case 2:$e=i[_+1],($e&192)===128&&(Te=(E&31)<<6|$e&63,Te>127&&(R=Te));break;case 3:$e=i[_+1],me=i[_+2],($e&192)===128&&(me&192)===128&&(Te=(E&15)<<12|($e&63)<<6|me&63,Te>2047&&(Te<55296||Te>57343)&&(R=Te));break;case 4:$e=i[_+1],me=i[_+2],he=i[_+3],($e&192)===128&&(me&192)===128&&(he&192)===128&&(Te=(E&15)<<18|($e&63)<<12|(me&63)<<6|he&63,Te>65535&&Te<1114112&&(R=Te))}}R===null?(R=65533,oe=1):R>65535&&(R-=65536,g.push(R>>>10&1023|55296),R=56320|R&1023),g.push(R),_+=oe}return Z(g)}const ne=4096;function Z(i){const l=i.length;if(l<=ne)return String.fromCharCode.apply(String,i);let c="",g=0;for(;g<l;)c+=String.fromCharCode.apply(String,i.slice(g,g+=ne));return c}function ae(i,l,c){let g="";c=Math.min(i.length,c);for(let _=l;_<c;++_)g+=String.fromCharCode(i[_]&127);return g}function ce(i,l,c){let g="";c=Math.min(i.length,c);for(let _=l;_<c;++_)g+=String.fromCharCode(i[_]);return g}function q(i,l,c){const g=i.length;(!l||l<0)&&(l=0),(!c||c<0||c>g)&&(c=g);let _="";for(let E=l;E<c;++E)_+=H[i[E]];return _}function ue(i,l,c){const g=i.slice(l,c);let _="";for(let E=0;E<g.length-1;E+=2)_+=String.fromCharCode(g[E]+g[E+1]*256);return _}u.prototype.slice=function(i,l){const c=this.length;i=~~i,l=l===void 0?c:~~l,i<0?(i+=c,i<0&&(i=0)):i>c&&(i=c),l<0?(l+=c,l<0&&(l=0)):l>c&&(l=c),l<i&&(l=i);const g=this.subarray(i,l);return Object.setPrototypeOf(g,u.prototype),g};function G(i,l,c){if(i%1!==0||i<0)throw new RangeError("offset is not uint");if(i+l>c)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(i,l,c){i=i>>>0,l=l>>>0,c||G(i,l,this.length);let g=this[i],_=1,E=0;for(;++E<l&&(_*=256);)g+=this[i+E]*_;return g},u.prototype.readUintBE=u.prototype.readUIntBE=function(i,l,c){i=i>>>0,l=l>>>0,c||G(i,l,this.length);let g=this[i+--l],_=1;for(;l>0&&(_*=256);)g+=this[i+--l]*_;return g},u.prototype.readUint8=u.prototype.readUInt8=function(i,l){return i=i>>>0,l||G(i,1,this.length),this[i]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(i,l){return i=i>>>0,l||G(i,2,this.length),this[i]|this[i+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(i,l){return i=i>>>0,l||G(i,2,this.length),this[i]<<8|this[i+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(i,l){return i=i>>>0,l||G(i,4,this.length),(this[i]|this[i+1]<<8|this[i+2]<<16)+this[i+3]*16777216},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(i,l){return i=i>>>0,l||G(i,4,this.length),this[i]*16777216+(this[i+1]<<16|this[i+2]<<8|this[i+3])},u.prototype.readBigUInt64LE=z(function(i){i=i>>>0,L(i,"offset");const l=this[i],c=this[i+7];(l===void 0||c===void 0)&&D(i,this.length-8);const g=l+this[++i]*2**8+this[++i]*2**16+this[++i]*2**24,_=this[++i]+this[++i]*2**8+this[++i]*2**16+c*2**24;return BigInt(g)+(BigInt(_)<<BigInt(32))}),u.prototype.readBigUInt64BE=z(function(i){i=i>>>0,L(i,"offset");const l=this[i],c=this[i+7];(l===void 0||c===void 0)&&D(i,this.length-8);const g=l*2**24+this[++i]*2**16+this[++i]*2**8+this[++i],_=this[++i]*2**24+this[++i]*2**16+this[++i]*2**8+c;return(BigInt(g)<<BigInt(32))+BigInt(_)}),u.prototype.readIntLE=function(i,l,c){i=i>>>0,l=l>>>0,c||G(i,l,this.length);let g=this[i],_=1,E=0;for(;++E<l&&(_*=256);)g+=this[i+E]*_;return _*=128,g>=_&&(g-=Math.pow(2,8*l)),g},u.prototype.readIntBE=function(i,l,c){i=i>>>0,l=l>>>0,c||G(i,l,this.length);let g=l,_=1,E=this[i+--g];for(;g>0&&(_*=256);)E+=this[i+--g]*_;return _*=128,E>=_&&(E-=Math.pow(2,8*l)),E},u.prototype.readInt8=function(i,l){return i=i>>>0,l||G(i,1,this.length),this[i]&128?(255-this[i]+1)*-1:this[i]},u.prototype.readInt16LE=function(i,l){i=i>>>0,l||G(i,2,this.length);const c=this[i]|this[i+1]<<8;return c&32768?c|4294901760:c},u.prototype.readInt16BE=function(i,l){i=i>>>0,l||G(i,2,this.length);const c=this[i+1]|this[i]<<8;return c&32768?c|4294901760:c},u.prototype.readInt32LE=function(i,l){return i=i>>>0,l||G(i,4,this.length),this[i]|this[i+1]<<8|this[i+2]<<16|this[i+3]<<24},u.prototype.readInt32BE=function(i,l){return i=i>>>0,l||G(i,4,this.length),this[i]<<24|this[i+1]<<16|this[i+2]<<8|this[i+3]},u.prototype.readBigInt64LE=z(function(i){i=i>>>0,L(i,"offset");const l=this[i],c=this[i+7];(l===void 0||c===void 0)&&D(i,this.length-8);const g=this[i+4]+this[i+5]*2**8+this[i+6]*2**16+(c<<24);return(BigInt(g)<<BigInt(32))+BigInt(l+this[++i]*2**8+this[++i]*2**16+this[++i]*2**24)}),u.prototype.readBigInt64BE=z(function(i){i=i>>>0,L(i,"offset");const l=this[i],c=this[i+7];(l===void 0||c===void 0)&&D(i,this.length-8);const g=(l<<24)+this[++i]*2**16+this[++i]*2**8+this[++i];return(BigInt(g)<<BigInt(32))+BigInt(this[++i]*2**24+this[++i]*2**16+this[++i]*2**8+c)}),u.prototype.readFloatLE=function(i,l){return i=i>>>0,l||G(i,4,this.length),n.read(this,i,!0,23,4)},u.prototype.readFloatBE=function(i,l){return i=i>>>0,l||G(i,4,this.length),n.read(this,i,!1,23,4)},u.prototype.readDoubleLE=function(i,l){return i=i>>>0,l||G(i,8,this.length),n.read(this,i,!0,52,8)},u.prototype.readDoubleBE=function(i,l){return i=i>>>0,l||G(i,8,this.length),n.read(this,i,!1,52,8)};function re(i,l,c,g,_,E){if(!u.isBuffer(i))throw new TypeError('"buffer" argument must be a Buffer instance');if(l>_||l<E)throw new RangeError('"value" argument is out of bounds');if(c+g>i.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(i,l,c,g){if(i=+i,l=l>>>0,c=c>>>0,!g){const R=Math.pow(2,8*c)-1;re(this,i,l,c,R,0)}let _=1,E=0;for(this[l]=i&255;++E<c&&(_*=256);)this[l+E]=i/_&255;return l+c},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(i,l,c,g){if(i=+i,l=l>>>0,c=c>>>0,!g){const R=Math.pow(2,8*c)-1;re(this,i,l,c,R,0)}let _=c-1,E=1;for(this[l+_]=i&255;--_>=0&&(E*=256);)this[l+_]=i/E&255;return l+c},u.prototype.writeUint8=u.prototype.writeUInt8=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,1,255,0),this[l]=i&255,l+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,2,65535,0),this[l]=i&255,this[l+1]=i>>>8,l+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,2,65535,0),this[l]=i>>>8,this[l+1]=i&255,l+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,4,4294967295,0),this[l+3]=i>>>24,this[l+2]=i>>>16,this[l+1]=i>>>8,this[l]=i&255,l+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,4,4294967295,0),this[l]=i>>>24,this[l+1]=i>>>16,this[l+2]=i>>>8,this[l+3]=i&255,l+4};function Oe(i,l,c,g,_){K(l,g,_,i,c,7);let E=Number(l&BigInt(4294967295));i[c++]=E,E=E>>8,i[c++]=E,E=E>>8,i[c++]=E,E=E>>8,i[c++]=E;let R=Number(l>>BigInt(32)&BigInt(4294967295));return i[c++]=R,R=R>>8,i[c++]=R,R=R>>8,i[c++]=R,R=R>>8,i[c++]=R,c}function Ee(i,l,c,g,_){K(l,g,_,i,c,7);let E=Number(l&BigInt(4294967295));i[c+7]=E,E=E>>8,i[c+6]=E,E=E>>8,i[c+5]=E,E=E>>8,i[c+4]=E;let R=Number(l>>BigInt(32)&BigInt(4294967295));return i[c+3]=R,R=R>>8,i[c+2]=R,R=R>>8,i[c+1]=R,R=R>>8,i[c]=R,c+8}u.prototype.writeBigUInt64LE=z(function(i,l=0){return Oe(this,i,l,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=z(function(i,l=0){return Ee(this,i,l,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(i,l,c,g){if(i=+i,l=l>>>0,!g){const oe=Math.pow(2,8*c-1);re(this,i,l,c,oe-1,-oe)}let _=0,E=1,R=0;for(this[l]=i&255;++_<c&&(E*=256);)i<0&&R===0&&this[l+_-1]!==0&&(R=1),this[l+_]=(i/E>>0)-R&255;return l+c},u.prototype.writeIntBE=function(i,l,c,g){if(i=+i,l=l>>>0,!g){const oe=Math.pow(2,8*c-1);re(this,i,l,c,oe-1,-oe)}let _=c-1,E=1,R=0;for(this[l+_]=i&255;--_>=0&&(E*=256);)i<0&&R===0&&this[l+_+1]!==0&&(R=1),this[l+_]=(i/E>>0)-R&255;return l+c},u.prototype.writeInt8=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,1,127,-128),i<0&&(i=255+i+1),this[l]=i&255,l+1},u.prototype.writeInt16LE=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,2,32767,-32768),this[l]=i&255,this[l+1]=i>>>8,l+2},u.prototype.writeInt16BE=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,2,32767,-32768),this[l]=i>>>8,this[l+1]=i&255,l+2},u.prototype.writeInt32LE=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,4,2147483647,-2147483648),this[l]=i&255,this[l+1]=i>>>8,this[l+2]=i>>>16,this[l+3]=i>>>24,l+4},u.prototype.writeInt32BE=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,4,2147483647,-2147483648),i<0&&(i=4294967295+i+1),this[l]=i>>>24,this[l+1]=i>>>16,this[l+2]=i>>>8,this[l+3]=i&255,l+4},u.prototype.writeBigInt64LE=z(function(i,l=0){return Oe(this,i,l,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=z(function(i,l=0){return Ee(this,i,l,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Pe(i,l,c,g,_,E){if(c+g>i.length)throw new RangeError("Index out of range");if(c<0)throw new RangeError("Index out of range")}function Ae(i,l,c,g,_){return l=+l,c=c>>>0,_||Pe(i,l,c,4),n.write(i,l,c,g,23,4),c+4}u.prototype.writeFloatLE=function(i,l,c){return Ae(this,i,l,!0,c)},u.prototype.writeFloatBE=function(i,l,c){return Ae(this,i,l,!1,c)};function le(i,l,c,g,_){return l=+l,c=c>>>0,_||Pe(i,l,c,8),n.write(i,l,c,g,52,8),c+8}u.prototype.writeDoubleLE=function(i,l,c){return le(this,i,l,!0,c)},u.prototype.writeDoubleBE=function(i,l,c){return le(this,i,l,!1,c)},u.prototype.copy=function(i,l,c,g){if(!u.isBuffer(i))throw new TypeError("argument should be a Buffer");if(c||(c=0),!g&&g!==0&&(g=this.length),l>=i.length&&(l=i.length),l||(l=0),g>0&&g<c&&(g=c),g===c||i.length===0||this.length===0)return 0;if(l<0)throw new RangeError("targetStart out of bounds");if(c<0||c>=this.length)throw new RangeError("Index out of range");if(g<0)throw new RangeError("sourceEnd out of bounds");g>this.length&&(g=this.length),i.length-l<g-c&&(g=i.length-l+c);const _=g-c;return this===i&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(l,c,g):Uint8Array.prototype.set.call(i,this.subarray(c,g),l),_},u.prototype.fill=function(i,l,c,g){if(typeof i=="string"){if(typeof l=="string"?(g=l,l=0,c=this.length):typeof c=="string"&&(g=c,c=this.length),g!==void 0&&typeof g!="string")throw new TypeError("encoding must be a string");if(typeof g=="string"&&!u.isEncoding(g))throw new TypeError("Unknown encoding: "+g);if(i.length===1){const E=i.charCodeAt(0);(g==="utf8"&&E<128||g==="latin1")&&(i=E)}}else typeof i=="number"?i=i&255:typeof i=="boolean"&&(i=Number(i));if(l<0||this.length<l||this.length<c)throw new RangeError("Out of range index");if(c<=l)return this;l=l>>>0,c=c===void 0?this.length:c>>>0,i||(i=0);let _;if(typeof i=="number")for(_=l;_<c;++_)this[_]=i;else{const E=u.isBuffer(i)?i:u.from(i,g),R=E.length;
59if(R===0)throw new TypeError('The value "'+i+'" is invalid for argument "value"');for(_=0;_<c-l;++_)this[_+l]=E[_%R]}return this};const Q={};function P(i,l,c){Q[i]=class extends c{constructor(){super(),Object.defineProperty(this,"message",{value:l.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${i}]`,this.stack,delete this.name}get code(){return i}set code(g){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:g,writable:!0})}toString(){return`${this.name} [${i}]: ${this.message}`}}}P("ERR_BUFFER_OUT_OF_BOUNDS",function(i){return i?`${i} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),P("ERR_INVALID_ARG_TYPE",function(i,l){return`The "${i}" argument must be of type number. Received type ${typeof l}`},TypeError),P("ERR_OUT_OF_RANGE",function(i,l,c){let g=`The value of "${i}" is out of range.`,_=c;return Number.isInteger(c)&&Math.abs(c)>2**32?_=F(String(c)):typeof c=="bigint"&&(_=String(c),(c>BigInt(2)**BigInt(32)||c<-(BigInt(2)**BigInt(32)))&&(_=F(_)),_+="n"),g+=` It must be ${l}. Received ${_}`,g},RangeError);function F(i){let l="",c=i.length;const g=i[0]==="-"?1:0;for(;c>=g+4;c-=3)l=`_${i.slice(c-3,c)}${l}`;return`${i.slice(0,c)}${l}`}function B(i,l,c){L(l,"offset"),(i[l]===void 0||i[l+c]===void 0)&&D(l,i.length-(c+1))}function K(i,l,c,g,_,E){if(i>c||i<l){const R=typeof l=="bigint"?"n":"";let oe;throw l===0||l===BigInt(0)?oe=`>= 0${R} and < 2${R} ** ${(E+1)*8}${R}`:oe=`>= -(2${R} ** ${(E+1)*8-1}${R}) and < 2 ** ${(E+1)*8-1}${R}`,new Q.ERR_OUT_OF_RANGE("value",oe,i)}B(g,_,E)}function L(i,l){if(typeof i!="number")throw new Q.ERR_INVALID_ARG_TYPE(l,"number",i)}function D(i,l,c){throw Math.floor(i)!==i?(L(i,c),new Q.ERR_OUT_OF_RANGE("offset","an integer",i)):l<0?new Q.ERR_BUFFER_OUT_OF_BOUNDS:new Q.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${l}`,i)}const se=/[^+/0-9A-Za-z-_]/g;function ve(i){if(i=i.split("=")[0],i=i.trim().replace(se,""),i.length<2)return"";for(;i.length%4!==0;)i=i+"=";return i}function de(i,l){l=l||1/0;let c;const g=i.length;let _=null;const E=[];for(let R=0;R<g;++R){if(c=i.charCodeAt(R),c>55295&&c<57344){if(!_){if(c>56319){(l-=3)>-1&&E.push(239,191,189);continue}else if(R+1===g){(l-=3)>-1&&E.push(239,191,189);continue}_=c;continue}if(c<56320){(l-=3)>-1&&E.push(239,191,189),_=c;continue}c=(_-55296<<10|c-56320)+65536}else _&&(l-=3)>-1&&E.push(239,191,189);if(_=null,c<128){if((l-=1)<0)break;E.push(c)}else if(c<2048){if((l-=2)<0)break;E.push(c>>6|192,c&63|128)}else if(c<65536){if((l-=3)<0)break;E.push(c>>12|224,c>>6&63|128,c&63|128)}else if(c<1114112){if((l-=4)<0)break;E.push(c>>18|240,c>>12&63|128,c>>6&63|128,c&63|128)}else throw new Error("Invalid code point")}return E}function _e(i){const l=[];for(let c=0;c<i.length;++c)l.push(i.charCodeAt(c)&255);return l}function Se(i,l){let c,g,_;const E=[];for(let R=0;R<i.length&&!((l-=2)<0);++R)c=i.charCodeAt(R),g=c>>8,_=c%256,E.push(_),E.push(g);return E}function pe(i){return t.toByteArray(ve(i))}function ge(i,l,c,g){let _;for(_=0;_<g&&!(_+c>=l.length||_>=i.length);++_)l[_+c]=i[_];return _}function fe(i,l){return i instanceof l||i!=null&&i.constructor!=null&&i.constructor.name!=null&&i.constructor.name===l.name}function Ce(i){return i!==i}const H=(function(){const i="0123456789abcdef",l=new Array(256);for(let c=0;c<16;++c){const g=c*16;for(let _=0;_<16;++_)l[g+_]=i[c]+i[_]}return l})();function z(i){return typeof BigInt>"u"?ee:i}function ee(){throw new Error("BigInt not supported")}})(h5);var m5={exports:{}},Zt=m5.exports={},Ur,Hr;function Qv(){throw new Error("setTimeout has not been defined")}function Jv(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Ur=setTimeout:Ur=Qv}catch{Ur=Qv}try{typeof clearTimeout=="function"?Hr=clearTimeout:Hr=Jv}catch{Hr=Jv}})();function y5(e){if(Ur===setTimeout)return setTimeout(e,0);if((Ur===Qv||!Ur)&&setTimeout)return Ur=setTimeout,setTimeout(e,0);try{return Ur(e,0)}catch{try{return Ur.call(null,e,0)}catch{return Ur.call(this,e,0)}}}function Wae(e){if(Hr===clearTimeout)return clearTimeout(e);if((Hr===Jv||!Hr)&&clearTimeout)return Hr=clearTimeout,clearTimeout(e);try{return Hr(e)}catch{try{return Hr.call(null,e)}catch{return Hr.call(this,e)}}}var Io=[],Ya=!1,cs,Zd=-1;function zae(){!Ya||!cs||(Ya=!1,cs.length?Io=cs.concat(Io):Zd=-1,Io.length&&v5())}function v5(){if(!Ya){var e=y5(zae);Ya=!0;for(var t=Io.length;t;){for(cs=Io,Io=[];++Zd<t;)cs&&cs[Zd].run();Zd=-1,t=Io.length}cs=null,Ya=!1,Wae(e)}}Zt.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];Io.push(new _5(e,t)),Io.length===1&&!Ya&&y5(v5)};function _5(e,t){this.fun=e,this.array=t}_5.prototype.run=function(){this.fun.apply(null,this.array)};Zt.title="browser";Zt.browser=!0;Zt.env={};Zt.argv=[];Zt.version="";Zt.versions={};function Vo(){}Zt.on=Vo;Zt.addListener=Vo;Zt.once=Vo;Zt.off=Vo;Zt.removeListener=Vo;Zt.removeAllListeners=Vo;Zt.emit=Vo;Zt.prependListener=Vo;Zt.prependOnceListener=Vo;Zt.listeners=function(e){return[]};Zt.binding=function(e){throw new Error("process.binding is not supported")};Zt.cwd=function(){return"/"};Zt.chdir=function(e){throw new Error("process.chdir is not supported")};Zt.umask=function(){return 0};var Gae=m5.exports;(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=h5,n=Gae,r=a=>a&&a.__esModule?a:{default:a},o=r(n),s=globalThis||void 0||self;Object.defineProperty(e,"Buffer",{enumerable:!0,get:()=>t.Buffer}),Object.defineProperty(e,"process",{enumerable:!0,get:()=>o.default}),e.global=s})(Kd);var m$;(function(e){(function(t){var n=typeof g$=="object"?g$:typeof self=="object"?self:typeof this=="object"?this:Function("return this;")(),r=o(e);typeof n.Reflect>"u"?n.Reflect=e:r=o(n.Reflect,r),t(r);function o(s,a){return function(u,f){typeof s[u]!="function"&&Object.defineProperty(s,u,{configurable:!0,writable:!0,value:f}),a&&a(u,f)}}})(function(t){var n=Object.prototype.hasOwnProperty,r=typeof Symbol=="function",o=r&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",s=r&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",a=typeof Object.create=="function",u={__proto__:[]}instanceof Array,f=!a&&!u,d={create:a?function(){return Ce(Object.create(null))}:u?function(){return Ce({__proto__:null})}:function(){return Ce({})},has:f?function(H,z){return n.call(H,z)}:function(H,z){return z in H},get:f?function(H,z){return n.call(H,z)?H[z]:void 0}:function(H,z){return H[z]}},p=Object.getPrototypeOf(Function),h=typeof Kd.process=="object"&&Kd.process.env&&Kd.process.env.REFLECT_METADATA_USE_MAP_POLYFILL==="true",y=!h&&typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:pe(),m=!h&&typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:ge(),v=!h&&typeof WeakMap=="function"?WeakMap:fe(),b=new v;function S(H,z,ee,i){if(G(ee)){if(!F(H))throw new TypeError;if(!K(z))throw new TypeError;return M(H,z)}else{if(!F(H))throw new TypeError;if(!Ee(z))throw new TypeError;if(!Ee(i)&&!G(i)&&!re(i))throw new TypeError;return re(i)&&(i=void 0),ee=P(ee),j(H,z,ee,i)}}t("decorate",S);function w(H,z){function ee(i,l){if(!Ee(i))throw new TypeError;if(!G(l)&&!L(l))throw new TypeError;ae(H,z,i,l)}return ee}t("metadata",w);function T(H,z,ee,i){if(!Ee(ee))throw new TypeError;return G(i)||(i=P(i)),ae(H,z,ee,i)}t("defineMetadata",T);function I(H,z,ee){if(!Ee(z))throw new TypeError;
vendor: 7,939 bytes, line 59
59return G(ee)||(ee=P(ee)),W(H,z,ee)}t("hasMetadata",I);function C(H,z,ee){if(!Ee(z))throw new TypeError;return G(ee)||(ee=P(ee)),Y(H,z,ee)}t("hasOwnMetadata",C);function A(H,z,ee){if(!Ee(z))throw new TypeError;return G(ee)||(ee=P(ee)),ne(H,z,ee)}t("getMetadata",A);function $(H,z,ee){if(!Ee(z))throw new TypeError;return G(ee)||(ee=P(ee)),Z(H,z,ee)}t("getOwnMetadata",$);function k(H,z){if(!Ee(H))throw new TypeError;return G(z)||(z=P(z)),ce(H,z)}t("getMetadataKeys",k);function x(H,z){if(!Ee(H))throw new TypeError;return G(z)||(z=P(z)),q(H,z)}t("getOwnMetadataKeys",x);function O(H,z,ee){if(!Ee(z))throw new TypeError;G(ee)||(ee=P(ee));var i=V(z,ee,!1);if(G(i)||!i.delete(H))return!1;if(i.size>0)return!0;var l=b.get(z);return l.delete(ee),l.size>0||b.delete(z),!0}t("deleteMetadata",O);function M(H,z){for(var ee=H.length-1;ee>=0;--ee){var i=H[ee],l=i(z);if(!G(l)&&!re(l)){if(!K(l))throw new TypeError;z=l}}return z}function j(H,z,ee,i){for(var l=H.length-1;l>=0;--l){var c=H[l],g=c(z,ee,i);if(!G(g)&&!re(g)){if(!Ee(g))throw new TypeError;i=g}}return i}function V(H,z,ee){var i=b.get(H);if(G(i)){if(!ee)return;i=new y,b.set(H,i)}var l=i.get(z);if(G(l)){if(!ee)return;l=new y,i.set(z,l)}return l}function W(H,z,ee){var i=Y(H,z,ee);if(i)return!0;var l=Se(z);return re(l)?!1:W(H,l,ee)}function Y(H,z,ee){var i=V(z,ee,!1);return G(i)?!1:le(i.has(H))}function ne(H,z,ee){var i=Y(H,z,ee);if(i)return Z(H,z,ee);var l=Se(z);if(!re(l))return ne(H,l,ee)}function Z(H,z,ee){var i=V(z,ee,!1);if(!G(i))return i.get(H)}function ae(H,z,ee,i){var l=V(ee,i,!0);l.set(H,z)}function ce(H,z){var ee=q(H,z),i=Se(H);if(i===null)return ee;var l=ce(i,z);if(l.length<=0)return ee;if(ee.length<=0)return l;for(var c=new m,g=[],_=0,E=ee;_<E.length;_++){var R=E[_],oe=c.has(R);oe||(c.add(R),g.push(R))}for(var $e=0,me=l;$e<me.length;$e++){var R=me[$e],oe=c.has(R);oe||(c.add(R),g.push(R))}return g}function q(H,z){var ee=[],i=V(H,z,!1);if(G(i))return ee;for(var l=i.keys(),c=se(l),g=0;;){var _=de(c);if(!_)return ee.length=g,ee;var E=ve(_);try{ee[g]=E}catch(R){try{_e(c)}finally{throw R}}g++}}function ue(H){if(H===null)return 1;switch(typeof H){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return H===null?1:6;default:return 6}}function G(H){return H===void 0}function re(H){return H===null}function Oe(H){return typeof H=="symbol"}function Ee(H){return typeof H=="object"?H!==null:typeof H=="function"}function Pe(H,z){switch(ue(H)){case 0:return H;case 1:return H;case 2:return H;case 3:return H;case 4:return H;case 5:return H}var ee="string",i=D(H,o);if(i!==void 0){var l=i.call(H,ee);if(Ee(l))throw new TypeError;return l}return Ae(H)}function Ae(H,z){var ee,i;{var l=H.toString;if(B(l)){var i=l.call(H);if(!Ee(i))return i}var ee=H.valueOf;if(B(ee)){var i=ee.call(H);if(!Ee(i))return i}}throw new TypeError}function le(H){return!!H}function Q(H){return""+H}function P(H){var z=Pe(H);return Oe(z)?z:Q(z)}function F(H){return Array.isArray?Array.isArray(H):H instanceof Object?H instanceof Array:Object.prototype.toString.call(H)==="[object Array]"}function B(H){return typeof H=="function"}function K(H){return typeof H=="function"}function L(H){switch(ue(H)){case 3:return!0;case 4:return!0;default:return!1}}function D(H,z){var ee=H[z];if(ee!=null){if(!B(ee))throw new TypeError;return ee}}function se(H){var z=D(H,s);if(!B(z))throw new TypeError;var ee=z.call(H);if(!Ee(ee))throw new TypeError;return ee}function ve(H){return H.value}function de(H){var z=H.next();return z.done?!1:z}function _e(H){var z=H.return;z&&z.call(H)}function Se(H){var z=Object.getPrototypeOf(H);if(typeof H!="function"||H===p||z!==p)return z;var ee=H.prototype,i=ee&&Object.getPrototypeOf(ee);if(i==null||i===Object.prototype)return z;var l=i.constructor;return typeof l!="function"||l===H?z:l}function pe(){var H={},z=[],ee=(function(){function g(_,E,R){this._index=0,this._keys=_,this._values=E,this._selector=R}return g.prototype["@@iterator"]=function(){return this},g.prototype[s]=function(){return this},g.prototype.next=function(){var _=this._index;if(_>=0&&_<this._keys.length){var E=this._selector(this._keys[_],this._values[_]);return _+1>=this._keys.length?(this._index=-1,this._keys=z,this._values=z):this._index++,{value:E,done:!1}}return{value:void 0,done:!0}},g.prototype.throw=function(_){throw this._index>=0&&(this._index=-1,this._keys=z,this._values=z),_},g.prototype.return=function(_){return this._index>=0&&(this._index=-1,this._keys=z,this._values=z),{value:_,done:!0}},g})();return(function(){function g(){this._keys=[],this._values=[],this._cacheKey=H,this._cacheIndex=-2}return Object.defineProperty(g.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),g.prototype.has=function(_){return this._find(_,!1)>=0},g.prototype.get=function(_){var E=this._find(_,!1);return E>=0?this._values[E]:void 0},g.prototype.set=function(_,E){var R=this._find(_,!0);return this._values[R]=E,this},g.prototype.delete=function(_){var E=this._find(_,!1);if(E>=0){for(var R=this._keys.length,oe=E+1;oe<R;oe++)this._keys[oe-1]=this._keys[oe],this._values[oe-1]=this._values[oe];return this._keys.length--,this._values.length--,_===this._cacheKey&&(this._cacheKey=H,this._cacheIndex=-2),!0}return!1},g.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=H,this._cacheIndex=-2},g.prototype.keys=function(){return new ee(this._keys,this._values,i)},g.prototype.values=function(){return new ee(this._keys,this._values,l)},g.prototype.entries=function(){return new ee(this._keys,this._values,c)},g.prototype["@@iterator"]=function(){return this.entries()},g.prototype[s]=function(){return this.entries()},g.prototype._find=function(_,E){return this._cacheKey!==_&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=_)),this._cacheIndex<0&&E&&(this._cacheIndex=this._keys.length,this._keys.push(_),this._values.push(void 0)),this._cacheIndex},g})();function i(g,_){return g}function l(g,_){return _}function c(g,_){return[g,_]}}function ge(){return(function(){function H(){this._map=new y}return Object.defineProperty(H.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),H.prototype.has=function(z){return this._map.has(z)},H.prototype.add=function(z){return this._map.set(z,z),this},H.prototype.delete=function(z){return this._map.delete(z)},H.prototype.clear=function(){this._map.clear()},H.prototype.keys=function(){return this._map.keys()},H.prototype.values=function(){return this._map.values()},H.prototype.entries=function(){return this._map.entries()},H.prototype["@@iterator"]=function(){return this.keys()},H.prototype[s]=function(){return this.keys()},H})()}function fe(){var H=16,z=d.create(),ee=i();return(function(){function E(){this._key=i()}return E.prototype.has=function(R){var oe=l(R,!1);return oe!==void 0?d.has(oe,this._key):!1},E.prototype.get=function(R){var oe=l(R,!1);return oe!==void 0?d.get(oe,this._key):void 0},E.prototype.set=function(R,oe){var $e=l(R,!0);return $e[this._key]=oe,this},E.prototype.delete=function(R){var oe=l(R,!1);return oe!==void 0?delete oe[this._key]:!1},E.prototype.clear=function(){this._key=i()},E})();function i(){var E;do E="@@WeakMap@@"+_();while(d.has(z,E));return z[E]=!0,E}function l(E,R){if(!n.call(E,ee)){if(!R)return;Object.defineProperty(E,ee,{value:d.create()})}return E[ee]}function c(E,R){for(var oe=0;oe<R;++oe)E[oe]=Math.random()*255|0;return E}function g(E){return typeof Uint8Array=="function"?typeof crypto<"u"?crypto.getRandomValues(new Uint8Array(E)):typeof msCrypto<"u"?msCrypto.getRandomValues(new Uint8Array(E)):c(new Uint8Array(E),E):c(new Array(E),E)}function _(){var E=g(H);E[6]=E[6]&79|64,E[8]=E[8]&191|128;for(var R="",oe=0;oe<H;++oe){var $e=E[oe];(oe===4||oe===6||oe===8)&&(R+="-"),$e<16&&(R+="0"),R+=$e.toString(16).toLowerCase()}return R}}function Ce(H){return H.__=void 0,delete H.__,H}})})(m$||(m$={}));
59class Yae extends Error{constructor(t){super(`[Inject] ${t}`)}}const y$=new WeakMap([[Array,Symbol(Array.name)]]),Af=e=>{if(typeof e=="symbol")return e;if(typeof e=="string")return Symbol(e);if(e.prototype){let t=y$.get(e);return t||(t=Symbol(e.name),y$.set(e,t)),t}throw new Yae(`Тип знаÑÐµÐ½Ð¸Ñ ${typeof e} не поддеÑживаеÑÑÑ Ð´Ð»Ñ Ñокенов.`)},Kae="www",Zae="m",Am="ru";function W_(e=!1){if(typeof window>"u")return Am;const t=window.location.hostname.match(/m?\.?(www|cyber|m)\.?([^.]*)\.(sports.ru)/);if(e)return t?!!t[2]:!0;if(t)switch(t[1]){case Kae:case Zae:return Am;default:return t[1]}return Am}Af("CURRENT_SITE");Af("IS_CURRENT_SITE_DEV");Af("REFERRER");Af("LOCATION");Af("IS_MOBILE");W_();W_(!0);let xm;const Cm="sports:";function Qae(){return Date.now()}function Jae(e){try{return JSON.parse(e)}catch{return e}}function Rm(e){return e.split(":").length>2}function Xae(e,t){const n={date:new Date().toString(),time:Qae(),data:e};return t&&(n.version=t),JSON.stringify(n)}let eue=class{constructor(){this.isSupported=window||!1}getData(e,t,n){if(!this.isSupported||!Rm(e)&&!t)return!1;const r=Jae(window.localStorage.getItem((t?"":Cm)+e)??"");return n?r:r?.data}set(e,t,n){return!this.isSupported||!Rm(e)?!1:(window.localStorage.setItem(Cm+e,Xae(t,n)),this)}remove(e){return!this.isSupported||!Rm(e)?!1:(window.localStorage.removeItem(Cm+e),this)}};function tue(){return xm||(xm=new eue),xm}function dd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var nue={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Xv(e,t){function n(o,s,a){if(!(typeof document>"u")){a=dd({},t,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var u="";for(var f in a)a[f]&&(u+="; "+f,a[f]!==!0&&(u+="="+a[f].split(";")[0]));return document.cookie=o+"="+e.write(s,o)+u}}function r(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var s=document.cookie?document.cookie.split("; "):[],a={},u=0;u<s.length;u++){var f=s[u].split("="),d=f.slice(1).join("=");try{var p=decodeURIComponent(f[0]);if(a[p]=e.read(d,p),o===p)break}catch{}}return o?a[o]:a}}return Object.create({set:n,get:r,remove:function(o,s){n(o,"",dd({},s,{expires:-1}))},withAttributes:function(o){return Xv(this.converter,dd({},this.attributes,o))},withConverter:function(o){return Xv(dd({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var rue=Xv(nue,{path:"/"});const v$="userid_geoip_country_code",oue="RU";class iue{get(t){return(typeof window>"u"?this.getCookieFromServer(t):this.getCookieFromClient())||oue}getCookieFromServer(t){return t?this.parseCookieString(t)[v$]:""}parseCookieString(t){return t.split(";").map(n=>n.split("=")).reduce((n,r)=>{var o,s;const a=(o=r[0])==null?void 0:o.trim(),u=(s=r[1])==null?void 0:s.trim();return!a||!u?n:{...n,[decodeURIComponent(a)]:decodeURIComponent(u)}},{})}getCookieFromClient(){return rue.get(v$)}}const sue=new iue,aue=({appProps:e,imageConfig:t})=>{const n=vf(e),r=sue.get()||"RU",o=U_(n.gqlClient);let s=W_();r.toUpperCase()==="KZ"&&(s=Oo.KZ);const a={[_l.FOOTBALL]:o.getFootballMatchTeamInfo,[_l.HOCKEY]:o.getHockeyMatchTeamInfo,[_l.TENNIS]:o.getTennisMatchTeamInfo},{name:u,default:f}=mu;let d=wo.OWN;if(typeof window<"u"){const p={localStorage:tue(),randomSelector:Aae,currentSite:s},h={storagePrefix:"utils:split-testing:",storageSuffix:":group"},y=new pse(p,h);d=new fse(y).getActiveGroup(u,f)??wo.OWN}return{activeGroup:d,geoCode:r,getRecommendations:async({limit:p,offset:h,filter:y})=>await o.getRecommendations({limit:p,offset:h,filter:y,imageInput:t}),getRecomendationsByCyber:async({id:p,limit:h,type:y})=>await o.getRecommendationsCyber({limit:h,type:y,id:p,imageInput:t}),getRecommendationsByMatch:async({team:p=XR.ALL,source:h=a5.SPORTS,amount:y=5,sport:m=_l.FOOTBALL,...v})=>await o.getMatchRecommendations({...v,team:p,source:h,amount:y,sport:m,imageInput:t}),getMatchTeams:async(p,h,y)=>{const m=a[h];if(!h||!m)throw new AR(B_.INVALID_ARGUMENT,`ÐеподдеÑживаемÑй ÑпоÑÑ: ${h}`);return await m(p,y)}}},uue={key:0,class:"recommendations__title ui-heading-xs"};xR.SPORTS,Gv.POST;var Vt=(e=>(e[e.BLOG=bl.BLOG]="BLOG",e[e.AUTHOR=bl.AUTHOR]="AUTHOR",e[e.SECTION=bl.SECTION]="SECTION",e[e.TAG=bl.TAG]="TAG",e[e.SEEN=bc.SEEN]="SEEN",e))(Vt||{});const lue={},cue={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"};function fue(e,t){return U(),X("svg",cue,t[0]||(t[0]=[te("mask",{id:"mask0_3373_60949",style:{"mask-type":"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24"}
59,[te("rect",{width:"24",height:"24",fill:"#D9D9D9"})],-1),te("g",{mask:"url(#mask0_3373_60949)"},[te("path",{d:"M17.4 13L16 11.6L18.075 9.5L16 7.425L17.4 6L19.5 8.1L21.575 6L23 7.425L20.9 9.5L23 11.6L21.575 13L19.5 10.925L17.4 13ZM9 12C7.9 12 6.95833 11.6083 6.175 10.825C5.39167 10.0417 5 9.1 5 8C5 6.9 5.39167 5.95833 6.175 5.175C6.95833 4.39167 7.9 4 9 4C10.1 4 11.0417 4.39167 11.825 5.175C12.6083 5.95833 13 6.9 13 8C13 9.1 12.6083 10.0417 11.825 10.825C11.0417 11.6083 10.1 12 9 12ZM1 20V17.2C1 16.6333 1.14583 16.1125 1.4375 15.6375C1.72917 15.1625 2.11667 14.8 2.6 14.55C3.63333 14.0333 4.68333 13.6458 5.75 13.3875C6.81667 13.1292 7.9 13 9 13C10.1 13 11.1833 13.1292 12.25 13.3875C13.3167 13.6458 14.3667 14.0333 15.4 14.55C15.8833 14.8 16.2708 15.1625 16.5625 15.6375C16.8542 16.1125 17 16.6333 17 17.2V20H1ZM3 18H15V17.2C15 17.0167 14.9542 16.85 14.8625 16.7C14.7708 16.55 14.65 16.4333 14.5 16.35C13.6 15.9 12.6917 15.5625 11.775 15.3375C10.8583 15.1125 9.93333 15 9 15C8.06667 15 7.14167 15.1125 6.225 15.3375C5.30833 15.5625 4.4 15.9 3.5 16.35C3.35 16.4333 3.22917 16.55 3.1375 16.7C3.04583 16.85 3 17.0167 3 17.2V18ZM9 10C9.55 10 10.0208 9.80417 10.4125 9.4125C10.8042 9.02083 11 8.55 11 8C11 7.45 10.8042 6.97917 10.4125 6.5875C10.0208 6.19583 9.55 6 9 6C8.45 6 7.97917 6.19583 7.5875 6.5875C7.19583 6.97917 7 7.45 7 8C7 8.55 7.19583 9.02083 7.5875 9.4125C7.97917 9.80417 8.45 10 9 10Z",fill:"currentColor"})],-1)]))}const due=Tf(lue,[["render",fue]]),Ka={[Vt.TAG]:$t(cae),[Vt.BLOG]:$t(sae),[Vt.SECTION]:$t(Jse),[Vt.SEEN]:$t(nae),[Vt.AUTHOR]:$t(due)},pue={title:"Ðе ÑекомендоваÑÑ ÑÑÐ¾Ñ Ð±Ð»Ð¾Ð³",type:Vt.BLOG,icon:Ka[Vt.BLOG]},hue={title:"Ðе ÑекомендоваÑÑ Ð°Ð²ÑоÑа",type:Vt.AUTHOR,icon:Ka[Vt.AUTHOR]},gue={title:"ÐÑо Ñже бÑло",type:Vt.SEEN,icon:Ka[Vt.SEEN]},mue="55934805",yue="УÑÑем. ÐоÑ
ожего конÑенÑа ÑÑÐ°Ð½ÐµÑ Ð¼ÐµÐ½ÑÑе",vue={[Vt.SEEN]:"СпаÑибо! ÐÑ ÑÑÑем"},_ue=e=>`Ðе показÑваÑÑ ÑÐµÐ¼Ñ ${e}`,bue=e=>`Ðе ÑекомендоваÑÑ Ð°Ð²ÑоÑа ${e}`,wue=e=>`Ðе показÑваÑÑ ${e}`;let Om;const Eue=e=>{if(e&&(Om=e),!Om)throw new Error("[Sports][Recommendations] оÑÑÑÑÑÑвÑÐµÑ Ð¸Ð½ÑÑÐ°Ð½Ñ GQL Client");return{gqlClient:Om}};let km;const Sue=e=>{const{gqlClient:t}=Eue(e);return km||(km=U_(t)),km};function $ue(){return P3("ignore-store",{state:()=>({ignoredItems:[]}),getters:{isItemIgnored:e=>t=>e.ignoredItems.some(n=>n.id===t.id&&n.type===t.type)},actions:{addIgnoreItem(e){this.ignoredItems.push(e)},removeIgnoreItem(e){const t=this.ignoredItems.findIndex(n=>n.id===e.id&&n.type===e.type);t!==-1&&this.ignoredItems.splice(t,1)}}})}function Tue(){return $ue()()}function Iue(e){const{onIgnoreCb:t,onCancelIgnoreCb:n,openPopupIfUnauthorized:r,showCustomNotification:o,showErrorNotification:s,showSuccessNotification:a,gqlClient:u}=e??{openPopupIfUnauthorized:()=>!0},{ignore:f,unignore:d,setPreference:p,getIgnoredList:h,updateIgnoreList:y}=Sue(u),m=Tue(),{isItemIgnored:v,addIgnoreItem:b,removeIgnoreItem:S}=m,w=ie(!1),T=({authors:A,blogId:$,section:k,documentId:x,tags:O})=>{const M=[];M.unshift({...gue,id:x}),$&&M.unshift({...pue,id:$});const j=A.filter(V=>V.id!==mue);return j.length>1?j.forEach(V=>M.unshift({type:Vt.AUTHOR,title:bue(V.nick),id:V.id,icon:Ka[Vt.AUTHOR]})):j.length&&M.unshift({...hue,id:j[0].id}),k&&M.unshift({type:Vt.SECTION,title:wue(k.name),icon:Ka[Vt.SECTION],id:k.id}),O!=null&&O.length&&O.forEach(V=>{V.isMain&&V.tag&&M.unshift({type:Vt.TAG,title:_ue(V.tag.name),icon:Ka[Vt.TAG],id:V.tag.id})}),M},I=async(A,$)=>{try{if(A.type===Vt.SEEN){if(!$)throw new Error;if(!await p({documentId:A.id,documentType:$,preference:bc.CANCEL_SEEN}))throw new Error;S(A),t?.(!1),n?.(A.type);return}if(!(await d({id:A.id,type:A.type})).success)throw new Error;S(A),t?.(!1),n?.(A.type)}catch{throw s?.({text:"Ðе ÑдалоÑÑ Ð¾ÑмениÑÑ Ð´ÐµÐ¹ÑÑие."}),new Error}},C=(A,$)=>{o?.({text:vue[A.type]??yue,callback:()=>{I(A,$)},actionText:"ÐÑмениÑÑ"})};return{getIgnoreList:T,ignore:async(A,$,k=!0)=>{var x;
59if(!(r!=null&&r()))try{if(A.type===Vt.SEEN){if(!$)throw new Error;if(!await p({documentId:A.id,documentType:$,preference:bc.SEEN}))throw new Error;b(A),t?.(!0),k&&C(A,$);return}const O=await f({id:A.id,type:A.type});if(!O.success){if(((x=O?.customErr)==null?void 0:x.code)===JR.ALREADY_IGNORED){b(A),a?.({text:"ÐÑ ÑÑли ваÑе мнение. ÐÑжно вÑемÑ, ÑÑÐ¾Ð±Ñ Ð¿ÐµÑеÑÑÑоиÑÑ Ð»ÐµÐ½ÑÑ"});return}throw new Error}b(A),t?.(!0),k&&C(A,$)}catch{throw s?.({text:"Ðе ÑдалоÑÑ ÑкÑÑÑÑ ÑекомендаÑиÑ, попÑобÑиÌÑе позже."}),new Error}},getIgnoredItems:async()=>{var A,$,k;w.value=!0;try{const x=await h();return{authors:x.authors??[],blogs:((A=x.blogs)==null?void 0:A.blogs)??[],tags:(($=x.tags)==null?void 0:$.tags)??[],sections:((k=x.sections)==null?void 0:k.sections)??[]}}catch{return s?.({text:"Ðе ÑдалоÑÑ Ð¿Ð¾Ð»ÑÑиÑÑ ÑкÑÑÑÑе ÑемÑ."}),{authors:[],blogs:[],tags:[],sections:[]}}finally{w.value=!1}},cancelIgnore:I,updateIgnoreList:A=>y(A),isLoadingIgnoredItems:w,isDocumentIgnored:A=>A.some($=>v($))}}const Ia=typeof document<"u";function Aue(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Ct=Object.assign;function Lm(e,t){const n={};for(const r in t){const o=t[r];n[r]=Or(o)?o.map(e):e(o)}return n}const Ul=()=>{},Or=Array.isArray,b5=/#/g,xue=/&/g,Cue=/\//g,Rue=/=/g,Oue=/\?/g,w5=/\+/g,kue=/%5B/g,Lue=/%5D/g,E5=/%5E/g,Mue=/%60/g,S5=/%7B/g,Pue=/%7C/g,$5=/%7D/g,Bue=/%20/g;function z_(e){return encodeURI(""+e).replace(Pue,"|").replace(kue,"[").replace(Lue,"]")}function Nue(e){return z_(e).replace(S5,"{").replace($5,"}").replace(E5,"^")}function e1(e){return z_(e).replace(w5,"%2B").replace(Bue,"+").replace(b5,"%23").replace(xue,"%26").replace(Mue,"`").replace(S5,"{").replace($5,"}").replace(E5,"^")}function Due(e){return e1(e).replace(Rue,"%3D")}function Uue(e){return z_(e).replace(b5,"%23").replace(Oue,"%3F")}function Hue(e){return e==null?"":Uue(e).replace(Cue,"%2F")}function wc(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const Fue=/\/$/,jue=e=>e.replace(Fue,"");function Mm(e,t,n="/"){let r,o={},s="",a="";const u=t.indexOf("#");let f=t.indexOf("?");return u<f&&u>=0&&(f=-1),f>-1&&(r=t.slice(0,f),s=t.slice(f+1,u>-1?u:t.length),o=e(s)),u>-1&&(r=r||t.slice(0,u),a=t.slice(u,t.length)),r=zue(r??t,n),{fullPath:r+(s&&"?")+s+a,path:r,query:o,hash:wc(a)}}function Vue(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function que(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&yu(t.matched[r],n.matched[o])&&T5(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function yu(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function T5(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Wue(e[n],t[n]))return!1;return!0}function Wue(e,t){return Or(e)?_$(e,t):Or(t)?_$(t,e):e===t}function _$(e,t){return Or(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function zue(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let s=n.length-1,a,u;for(a=0;a<r.length;a++)if(u=r[a],u!==".")if(u==="..")s>1&&s--;else break;return n.slice(0,s).join("/")+"/"+r.slice(a).join("/")}const ti={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Ec;(function(e){e.pop="pop",e.push="push"})(Ec||(Ec={}));var Kp;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Kp||(Kp={}));const Pm="";function Gue(e){if(!e)if(Ia){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),jue(e)}const Yue=/^[^#]+#/;function Kue(e,t){return e.replace(Yue,"#")+t}function Zue(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const Que=()=>({left:window.scrollX,top:window.scrollY});function Jue(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=Zue(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}
59function b$(e,t){return(history.state?history.state.position-t:-1)+e}const t1=new Map;function Xue(e,t){t1.set(e,t)}function ele(e){const t=t1.get(e);return t1.delete(e),t}function tle(e=""){let t=[],n=[Pm],r=0;e=Gue(e);function o(u){r++,r!==n.length&&n.splice(r),n.push(u)}function s(u,f,{direction:d,delta:p}){const h={direction:d,delta:p,type:Ec.pop};for(const y of t)y(u,f,h)}const a={location:Pm,state:{},base:e,createHref:Kue.bind(null,e),replace(u){n.splice(r--,1),o(u)},push(u,f){o(u)},listen(u){return t.push(u),()=>{const f=t.indexOf(u);f>-1&&t.splice(f,1)}},destroy(){t=[],n=[Pm],r=0},go(u,f=!0){const d=this.location,p=u<0?Kp.back:Kp.forward;r=Math.max(0,Math.min(r+u,n.length-1)),f&&s(this.location,d,{direction:p,delta:u})}};return Object.defineProperty(a,"location",{enumerable:!0,get:()=>n[r]}),a}function nle(e){return typeof e=="string"||e&&typeof e=="object"}function I5(e){return typeof e=="string"||typeof e=="symbol"}const A5=Symbol("");var w$;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(w$||(w$={}));function vu(e,t){return Ct(new Error,{type:e,[A5]:!0},t)}function go(e,t){return e instanceof Error&&A5 in e&&(t==null||!!(e.type&t))}const E$="[^/]+?",rle={sensitive:!1,strict:!1,start:!0,end:!0},ole=/[.+*?^${}()[\]/\\]/g;function ile(e,t){const n=Ct({},rle,t),r=[];let o=n.start?"^":"";const s=[];for(const d of e){const p=d.length?[]:[90];n.strict&&!d.length&&(o+="/");for(let h=0;h<d.length;h++){const y=d[h];let m=40+(n.sensitive?.25:0);if(y.type===0)h||(o+="/"),o+=y.value.replace(ole,"\\$&"),m+=40;else if(y.type===1){const{value:v,repeatable:b,optional:S,regexp:w}=y;s.push({name:v,repeatable:b,optional:S});const T=w||E$;if(T!==E$){m+=10;try{new RegExp(`(${T})`)}catch(C){throw new Error(`Invalid custom RegExp for param "${v}" (${T}): `+C.message)}}let I=b?`((?:${T})(?:/(?:${T}))*)`:`(${T})`;h||(I=S&&d.length<2?`(?:/${I})`:"/"+I),S&&(I+="?"),o+=I,m+=20,S&&(m+=-8),b&&(m+=-20),T===".*"&&(m+=-50)}p.push(m)}r.push(p)}if(n.strict&&n.end){const d=r.length-1;r[d][r[d].length-1]+=.7000000000000001}n.strict||(o+="/?"),n.end?o+="$":n.strict&&(o+="(?:/|$)");const a=new RegExp(o,n.sensitive?"":"i");function u(d){const p=d.match(a),h={};if(!p)return null;for(let y=1;y<p.length;y++){const m=p[y]||"",v=s[y-1];h[v.name]=m&&v.repeatable?m.split("/"):m}return h}function f(d){let p="",h=!1;for(const y of e){(!h||!p.endsWith("/"))&&(p+="/"),h=!1;for(const m of y)if(m.type===0)p+=m.value;else if(m.type===1){const{value:v,repeatable:b,optional:S}=m,w=v in d?d[v]:"";if(Or(w)&&!b)throw new Error(`Provided param "${v}" is an array but it is not repeatable (* or + modifiers)`);const T=Or(w)?w.join("/"):w;if(!T)if(S)y.length<2&&(p.endsWith("/")?p=p.slice(0,-1):h=!0);else throw new Error(`Missing required param "${v}"`);p+=T}}return p||"/"}return{re:a,score:r,keys:s,parse:u,stringify:f}}function sle(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function x5(e,t){let n=0;const r=e.score,o=t.score;for(;n<r.length&&n<o.length;){const s=sle(r[n],o[n]);if(s)return s;n++}if(Math.abs(o.length-r.length)===1){if(S$(r))return 1;if(S$(o))return-1}return o.length-r.length}function S$(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const ale={type:0,value:""},ule=/[a-zA-Z0-9_]/;function lle(e){if(!e)return[[]];if(e==="/")return[[ale]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${n})/"${d}": ${m}`)}let n=0,r=n;const o=[];let s;function a(){s&&o.push(s),s=[]}let u=0,f,d="",p="";function h(){d&&(n===0?s.push({type:0,value:d}):n===1||n===2||n===3?(s.length>1&&(f==="*"||f==="+")&&t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:d,regexp:p,repeatable:f==="*"||f==="+",optional:f==="*"||f==="?"})):t("Invalid state to consume buffer"),d="")}function y(){d+=f}for(;u<e.length;){if(f=e[u++],f==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:f==="/"?(d&&h(),a()):f===":"?(h(),n=1):y();break;case 4:y(),n=r;break;case 1:f==="("?n=2:ule.test(f)?y():(h(),n=0,f!=="*"&&f!=="?"&&f!=="+"&&u--);break;case 2:f===")"?p[p.length-1]=="\\"?p=p.slice(0,-1)+f:n=3:p+=f;break;case 3:h(),n=0,f!=="*"&&f!=="?"&&f!=="+"&&u--,p="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${d}"`),h(),a(),o}function cle(e,t,n){const r=ile(lle(e.path),n),o=Ct(r,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function fle(e,t){const n=[],r=new Map;t=I$({strict:!1,end:!0,sensitive:!1},t);function o(h){return r.get(h)}function s(h,y,m){const v=!m,b=dle(h);b.aliasOf=m&&m.record;const S=I$(t,h),w=[b];
vendor: 9,596 bytes, line 59
59if("alias"in h){const C=typeof h.alias=="string"?[h.alias]:h.alias;for(const A of C)w.push(Ct({},b,{components:m?m.record.components:b.components,path:A,aliasOf:m?m.record:b}))}let T,I;for(const C of w){const{path:A}=C;if(y&&A[0]!=="/"){const $=y.record.path,k=$[$.length-1]==="/"?"":"/";C.path=y.record.path+(A&&k+A)}if(T=cle(C,y,S),m?m.alias.push(T):(I=I||T,I!==T&&I.alias.push(T),v&&h.name&&!T$(T)&&a(h.name)),C5(T)&&f(T),b.children){const $=b.children;for(let k=0;k<$.length;k++)s($[k],T,m&&m.children[k])}m=m||T}return I?()=>{a(I)}:Ul}function a(h){if(I5(h)){const y=r.get(h);y&&(r.delete(h),n.splice(n.indexOf(y),1),y.children.forEach(a),y.alias.forEach(a))}else{const y=n.indexOf(h);y>-1&&(n.splice(y,1),h.record.name&&r.delete(h.record.name),h.children.forEach(a),h.alias.forEach(a))}}function u(){return n}function f(h){const y=gle(h,n);n.splice(y,0,h),h.record.name&&!T$(h)&&r.set(h.record.name,h)}function d(h,y){let m,v={},b,S;if("name"in h&&h.name){if(m=r.get(h.name),!m)throw vu(1,{location:h});S=m.record.name,v=Ct($$(y.params,m.keys.filter(I=>!I.optional).concat(m.parent?m.parent.keys.filter(I=>I.optional):[]).map(I=>I.name)),h.params&&$$(h.params,m.keys.map(I=>I.name))),b=m.stringify(v)}else if(h.path!=null)b=h.path,m=n.find(I=>I.re.test(b)),m&&(v=m.parse(b),S=m.record.name);else{if(m=y.name?r.get(y.name):n.find(I=>I.re.test(y.path)),!m)throw vu(1,{location:h,currentLocation:y});S=m.record.name,v=Ct({},y.params,h.params),b=m.stringify(v)}const w=[];let T=m;for(;T;)w.unshift(T.record),T=T.parent;return{name:S,path:b,params:v,matched:w,meta:hle(w)}}e.forEach(h=>s(h));function p(){n.length=0,r.clear()}return{addRoute:s,resolve:d,removeRoute:a,clearRoutes:p,getRoutes:u,getRecordMatcher:o}}function $$(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function dle(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:ple(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function ple(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function T$(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function hle(e){return e.reduce((t,n)=>Ct(t,n.meta),{})}function I$(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function gle(e,t){let n=0,r=t.length;for(;n!==r;){const s=n+r>>1;x5(e,t[s])<0?r=s:n=s+1}const o=mle(e);return o&&(r=t.lastIndexOf(o,r-1)),r}function mle(e){let t=e;for(;t=t.parent;)if(C5(t)&&x5(e,t)===0)return t}function C5({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function yle(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<r.length;++o){const s=r[o].replace(w5," "),a=s.indexOf("="),u=wc(a<0?s:s.slice(0,a)),f=a<0?null:wc(s.slice(a+1));if(u in t){let d=t[u];Or(d)||(d=t[u]=[d]),d.push(f)}else t[u]=f}return t}function A$(e){let t="";for(let n in e){const r=e[n];if(n=Due(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(Or(r)?r.map(s=>s&&e1(s)):[r&&e1(r)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function vle(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Or(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const _le=Symbol(""),x$=Symbol(""),eg=Symbol(""),G_=Symbol(""),n1=Symbol("");function dl(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function ci(e,t,n,r,o,s=a=>a()){const a=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((u,f)=>{const d=y=>{y===!1?f(vu(4,{from:n,to:t})):y instanceof Error?f(y):nle(y)?f(vu(2,{from:t,to:y})):(a&&r.enterCallbacks[o]===a&&typeof y=="function"&&a.push(y),u())},p=s(()=>e.call(r&&r.instances[o],t,n,d));let h=Promise.resolve(p);e.length<3&&(h=h.then(d)),h.catch(y=>f(y))})}function Bm(e,t,n,r,o=s=>s()){const s=[];for(const a of e)for(const u in a.components){let f=a.components[u];if(!(t!=="beforeRouteEnter"&&!a.instances[u]))if(ble(f)){const p=(f.__vccOpts||f)[t];p&&s.push(ci(p,n,r,a,u,o))}else{let d=f();s.push(()=>d.then(p=>{if(!p)return Promise.reject(new Error(`Couldn't resolve component "${u}" at "${a.path}"`));const h=Aue(p)?p.default:p;a.components[u]=h;const m=(h.__vccOpts||h)[t];return m&&ci(m,n,r,a,u,o)()}))}}return s}function ble(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function C$(e){const t=Gt(eg),n=Gt(G_),r=J(()=>{const f=N(e.to);return t.resolve(f)}),o=J(()=>{const{matched:f}=r.value,{length:d}=f,p=f[d-1],h=n.matched;if(!p||!h.length)return-1;const y=h.findIndex(yu.bind(null,p));if(y>-1)return y;const m=R$(f[d-2]);return d>1&&R$(p)===m&&h[h.length-1].path!==m?h.findIndex(yu.bind(null,f[d-2])):y}),s=J(()=>o.value>-1&&$le(n.params,r.value.params)),a=J(()=>o.value>-1&&o.value===n.matched.length-1&&T5(n.params,r.value.params));function u(f={}){return Sle(f)?t[N(e.replace)?"replace":"push"](N(e.to)).catch(Ul):Promise.resolve()}return{route:r,href:J(()=>r.value.href),isActive:s,isExactActive:a,navigate:u}}const wle=xe({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:C$,setup(e,{slots:t}){const n=ks(C$(e)),{options:r}=Gt(eg),o=J(()=>({[O$(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[O$(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const s=t.default&&t.default(n);return e.custom?s:J1("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},s)}}}),Ele=wle;function Sle(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function $le(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!Or(o)||o.length!==r.length||r.some((s,a)=>s!==o[a]))return!1}return!0}function R$(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const O$=(e,t,n)=>e??t??n,Tle=xe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Gt(n1),o=J(()=>e.route||r.value),s=Gt(x$,0),a=J(()=>{let d=N(s);const{matched:p}=o.value;let h;for(;(h=p[d])&&!h.components;)d++;return d}),u=J(()=>o.value.matched[a.value]);di(x$,J(()=>a.value+1)),di(_le,u),di(n1,o);const f=ie();return ke(()=>[f.value,u.value,e.name],([d,p,h],[y,m,v])=>{p&&(p.instances[h]=d,m&&m!==p&&d&&d===y&&(p.leaveGuards.size||(p.leaveGuards=m.leaveGuards),p.updateGuards.size||(p.updateGuards=m.updateGuards))),d&&p&&(!m||!yu(p,m)||!y)&&(p.enterCallbacks[h]||[]).forEach(b=>b(d))},{flush:"post"}),()=>{const d=o.value,p=e.name,h=u.value,y=h&&h.components[p];if(!y)return k$(n.default,{Component:y,route:d});const m=h.props[p],v=m?m===!0?d.params:typeof m=="function"?m(d):m:null,S=J1(y,Ct({},v,t,{onVnodeUnmounted:w=>{w.component.isUnmounted&&(h.instances[p]=null)},ref:f}));return k$(n.default,{Component:S,route:d})||S}}});function k$(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Ile=Tle;function Ale(e){const t=fle(e.routes,e),n=e.parseQuery||yle,r=e.stringifyQuery||A$,o=e.history,s=dl(),a=dl(),u=dl(),f=en(ti);let d=ti;Ia&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const p=Lm.bind(null,le=>""+le),h=Lm.bind(null,Hue),y=Lm.bind(null,wc);function m(le,Q){let P,F;return I5(le)?(P=t.getRecordMatcher(le),F=Q):F=le,t.addRoute(F,P)}function v(le){const Q=t.getRecordMatcher(le);Q&&t.removeRoute(Q)}function b(){return t.getRoutes().map(le=>le.record)}function S(le){return!!t.getRecordMatcher(le)}function w(le,Q){if(Q=Ct({},Q||f.value),typeof le=="string"){const D=Mm(n,le,Q.path),se=t.resolve({path:D.path},Q),ve=o.createHref(D.fullPath);return Ct(D,se,{params:y(se.params),hash:wc(D.hash),redirectedFrom:void 0,href:ve})}let P;if(le.path!=null)P=Ct({},le,{path:Mm(n,le.path,Q.path).path});else{const D=Ct({},le.params);for(const se in D)D[se]==null&&delete D[se];P=Ct({},le,{params:h(D)}),Q.params=h(Q.params)}const F=t.resolve(P,Q),B=le.hash||"";F.params=p(y(F.params));const K=Vue(r,Ct({},le,{hash:Nue(B),path:F.path})),L=o.createHref(K);return Ct({fullPath:K,hash:B,query:r===A$?vle(le.query):le.query||{}},F,{redirectedFrom:void 0,href:L})}function T(le){return typeof le=="string"?Mm(n,le,f.value.path):Ct({},le)}function I(le,Q){if(d!==le)return vu(8,{from:Q,to:le})}function C(le){return k(le)}function A(le){return C(Ct(T(le),{replace:!0}))}function $(le){const Q=le.matched[le.matched.length-1];if(Q&&Q.redirect){const{redirect:P}=Q;let F=typeof P=="function"?P(le):P;return typeof F=="string"&&(F=F.includes("?")||F.includes("#")?F=T(F):{path:F},F.params={}),Ct({query:le.query,hash:le.hash,params:F.path!=null?{}:le.params},F)}}function k(le,Q){const P=d=w(le),F=f.value,B=le.state,K=le.force,L=le.replace===!0,D=$(P);if(D)return k(Ct(T(D),{state:typeof D=="object"?Ct({},B,D.state):B,force:K,replace:L}),Q||P);const se=P;se.redirectedFrom=Q;let ve;return!K&&que(r,F,P)&&(ve=vu(16,{to:se,from:F}),G(F,F,!0,!1)),(ve?Promise.resolve(ve):M(se,F)).catch(de=>
59go(de)?go(de,2)?de:ue(de):ce(de,se,F)).then(de=>{if(de){if(go(de,2))return k(Ct({replace:L},T(de.to),{state:typeof de.to=="object"?Ct({},B,de.to.state):B,force:K}),Q||se)}else de=V(se,F,!0,L,B);return j(se,F,de),de})}function x(le,Q){const P=I(le,Q);return P?Promise.reject(P):Promise.resolve()}function O(le){const Q=Ee.values().next().value;return Q&&typeof Q.runWithContext=="function"?Q.runWithContext(le):le()}function M(le,Q){let P;const[F,B,K]=xle(le,Q);P=Bm(F.reverse(),"beforeRouteLeave",le,Q);for(const D of F)D.leaveGuards.forEach(se=>{P.push(ci(se,le,Q))});const L=x.bind(null,le,Q);return P.push(L),Ae(P).then(()=>{P=[];for(const D of s.list())P.push(ci(D,le,Q));return P.push(L),Ae(P)}).then(()=>{P=Bm(B,"beforeRouteUpdate",le,Q);for(const D of B)D.updateGuards.forEach(se=>{P.push(ci(se,le,Q))});return P.push(L),Ae(P)}).then(()=>{P=[];for(const D of K)if(D.beforeEnter)if(Or(D.beforeEnter))for(const se of D.beforeEnter)P.push(ci(se,le,Q));else P.push(ci(D.beforeEnter,le,Q));return P.push(L),Ae(P)}).then(()=>(le.matched.forEach(D=>D.enterCallbacks={}),P=Bm(K,"beforeRouteEnter",le,Q,O),P.push(L),Ae(P))).then(()=>{P=[];for(const D of a.list())P.push(ci(D,le,Q));return P.push(L),Ae(P)}).catch(D=>go(D,8)?D:Promise.reject(D))}function j(le,Q,P){u.list().forEach(F=>O(()=>F(le,Q,P)))}function V(le,Q,P,F,B){const K=I(le,Q);if(K)return K;const L=Q===ti,D=Ia?history.state:{};P&&(F||L?o.replace(le.fullPath,Ct({scroll:L&&D&&D.scroll},B)):o.push(le.fullPath,B)),f.value=le,G(le,Q,P,L),ue()}let W;function Y(){W||(W=o.listen((le,Q,P)=>{if(!Pe.listening)return;const F=w(le),B=$(F);if(B){k(Ct(B,{replace:!0}),F).catch(Ul);return}d=F;const K=f.value;Ia&&Xue(b$(K.fullPath,P.delta),Que()),M(F,K).catch(L=>go(L,12)?L:go(L,2)?(k(L.to,F).then(D=>{go(D,20)&&!P.delta&&P.type===Ec.pop&&o.go(-1,!1)}).catch(Ul),Promise.reject()):(P.delta&&o.go(-P.delta,!1),ce(L,F,K))).then(L=>{L=L||V(F,K,!1),L&&(P.delta&&!go(L,8)?o.go(-P.delta,!1):P.type===Ec.pop&&go(L,20)&&o.go(-1,!1)),j(F,K,L)}).catch(Ul)}))}let ne=dl(),Z=dl(),ae;function ce(le,Q,P){ue(le);const F=Z.list();return F.length?F.forEach(B=>B(le,Q,P)):console.error(le),Promise.reject(le)}function q(){return ae&&f.value!==ti?Promise.resolve():new Promise((le,Q)=>{ne.add([le,Q])})}function ue(le){return ae||(ae=!le,Y(),ne.list().forEach(([Q,P])=>le?P(le):Q()),ne.reset()),le}function G(le,Q,P,F){const{scrollBehavior:B}=e;if(!Ia||!B)return Promise.resolve();const K=!P&&ele(b$(le.fullPath,0))||(F||!P)&&history.state&&history.state.scroll||null;return gt().then(()=>B(le,Q,K)).then(L=>L&&Jue(L)).catch(L=>ce(L,le,Q))}const re=le=>o.go(le);let Oe;const Ee=new Set,Pe={currentRoute:f,listening:!0,addRoute:m,removeRoute:v,clearRoutes:t.clearRoutes,hasRoute:S,getRoutes:b,resolve:w,options:e,push:C,replace:A,go:re,back:()=>re(-1),forward:()=>re(1),beforeEach:s.add,beforeResolve:a.add,afterEach:u.add,onError:Z.add,isReady:q,install(le){const Q=this;le.component("RouterLink",Ele),le.component("RouterView",Ile),le.config.globalProperties.$router=Q,Object.defineProperty(le.config.globalProperties,"$route",{enumerable:!0,get:()=>N(f)}),Ia&&!Oe&&f.value===ti&&(Oe=!0,C(o.location).catch(B=>{}));const P={};for(const B in ti)Object.defineProperty(P,B,{get:()=>f.value[B],enumerable:!0});le.provide(eg,Q),le.provide(G_,SI(P)),le.provide(n1,f);const F=le.unmount;Ee.add(le),le.unmount=function(){Ee.delete(le),Ee.size<1&&(d=ti,W&&W(),W=null,f.value=ti,Oe=!1,ae=!1),F()}}};function Ae(le){return le.reduce((Q,P)=>Q.then(()=>O(P)),Promise.resolve())}return Pe}function xle(e,t){const n=[],r=[],o=[],s=Math.max(t.matched.length,e.matched.length);for(let a=0;a<s;a++){const u=t.matched[a];u&&(e.matched.find(d=>yu(d,u))?r.push(u):n.push(u));const f=e.matched[a];f&&(t.matched.find(d=>yu(d,f))||o.push(f))}return[n,r,o]}function Cle(){return Gt(eg)}function Y_(e){return Gt(G_)}let Rle=class R5{constructor(t){if(this.on=(n,r)=>(this.eventTarget.addEventListener(n,r),{dispose:()=>this.off(n,r)}),this.once=(n,r)=>(this.eventTarget.addEventListener(n,r,{once:!0}),{dispose:()=>this.off(n,r)}),this.emit=(n,r)=>{this.eventTarget.dispatchEvent(new CustomEvent(n,{detail:r}))},this.off=(n,r)=>{this.eventTarget.removeEventListener(n,r)},!t)return this.eventTarget=new EventTarget,this;this.eventTarget=t}static fromDomElement(t){const n=document.querySelector(t);if(!n)throw Error("[Sports][EventBus] - Can't find element with selector: "+t);return new R5(n)}},Nm=null;function Di(){return Nm||(Nm=new Rle,Nm)}var r1=(e=>(e.Post="POST",e))(r1||{}),O5=(e=>(e.AmateurSportContest="AMATEUR_SPORT_CONTEST",e.BookmakerRating="BOOKMAKER_RATING",e.CyberMatchCenter="CYBER_MATCH_CENTER",e.CyberMatchCenterTournament="CYBER_MATCH_CENTER_TOURNAMENT",e.CyberTournament="CYBER_TOURNAMENT",e.DotaMatch="DOTA_MATCH",e.FantasyIndex="FANTASY_INDEX",e.FantasySquad="FANTASY_SQUAD",e.FantasyTournament="FANTASY_TOURNAMENT",e.Faq="FAQ",e.Hub="HUB",e.Match="MATCH",e.News="NEWS",e.Olympic="OLYMPIC",e.Poll="POLL",e.Post="POST",e.PredictionHub="PREDICTION_HUB",e.Predictor="PREDICTOR",e.PredictorIndex="PREDICTOR_INDEX",e.PredictorTournament="PREDICTOR_TOURNAMENT",e.Short="SHORT",e.TagOther="TAG_OTHER",e.TagTourn
59ament="TAG_TOURNAMENT",e))(O5||{}),k5=(e=>(e.Admin="ADMIN",e.Delete="DELETE",e.Edit="EDIT",e.Hide="HIDE",e.HideFromSection="HIDE_FROM_SECTION",e.Restore="RESTORE",e.Show="SHOW",e.ShowInSection="SHOW_IN_SECTION",e))(k5||{});const Ole={ADD_TO_BOOKMARK:"ADD_TO_BOOKMARK",REMOVE_FROM_BOOKMARK:"REMOVE_FROM_BOOKMARK",SHARE:"SHARE",NOT_INTERESTING:"NOT_INTERESTING",IGNORE_AUTHOR:"IGNORE_AUTHOR"},Ve={...Ole,...k5},L5=e=>typeof e=="object"&&e!==null&&"text"in e&&"id"in e&&"icon"in e,qo=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},kle={},Lle={viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Mle(e,t){return U(),X("svg",Lle,t[0]||(t[0]=[te("g",{"clip-path":"url(#clip0_1_10)"},[te("path",{d:`M6.01 5.00062V5C6.01 4.44575 6.4588 4 7 4H17C17.5477 4 18 4.45228 60 18 5V19.4835L12.3939 17.0809L12 16.912L11.6061 17.0809L6.00095 19.4831L6.01 5.00062Z`,fill:"currentColor"})],-1),te("defs",null,[te("clipPath",{id:"clip0_1_10"},[te("rect",{width:"24",height:"24",fill:"currentColor"})])],-1)]))}const Ple=qo(kle,[["render",Mle]]),Ble={},Nle={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"};function Dle(e,t){return U(),X("svg",Nle,t[0]||(t[0]=[te("mask",{id:"mask0_3373_60949","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24"},[te("rect",{width:"24",height:"24",fill:"#D9D9D9"})],-1),te("g",{mask:"url(#mask0_3373_60949)"},[te("path",{d:"M17.4 13L16 11.6L18.075 9.5L16 7.425L17.4 6L19.5 8.1L21.575 6L23 7.425L20.9 9.5L23 11.6L21.575 13L19.5 10.925L17.4 13ZM9 12C7.9 12 6.95833 11.6083 6.175 10.825C5.39167 10.0417 5 9.1 5 8C5 6.9 5.39167 5.95833 6.175 5.175C6.95833 4.39167 7.9 4 9 4C10.1 4 11.0417 4.39167 11.825 5.175C12.6083 5.95833 13 6.9 13 8C13 9.1 12.6083 10.0417 11.825 10.825C11.0417 11.6083 10.1 12 9 12ZM1 20V17.2C1 16.6333 1.14583 16.1125 1.4375 15.6375C1.72917 15.1625 2.11667 14.8 2.6 14.55C3.63333 14.0333 4.68333 13.6458 5.75 13.3875C6.81667 13.1292 7.9 13 9 13C10.1 13 11.1833 13.1292 12.25 13.3875C13.3167 13.6458 14.3667 14.0333 15.4 14.55C15.8833 14.8 16.2708 15.1625 16.5625 15.6375C16.8542 16.1125 17 16.6333 17 17.2V20H1ZM3 18H15V17.2C15 17.0167 14.9542 16.85 14.8625 16.7C14.7708 16.55 14.65 16.4333 14.5 16.35C13.6 15.9 12.6917 15.5625 11.775 15.3375C10.8583 15.1125 9.93333 15 9 15C8.06667 15 7.14167 15.1125 6.225 15.3375C5.30833 15.5625 4.4 15.9 3.5 16.35C3.35 16.4333 3.22917 16.55 3.1375 16.7C3.04583 16.85 3 17.0167 3 17.2V18ZM9 10C9.55 10 10.0208 9.80417 10.4125 9.4125C10.8042 9.02083 11 8.55 11 8C11 7.45 10.8042 6.97917 10.4125 6.5875C10.0208 6.19583 9.55 6 9 6C8.45 6 7.97917 6.19583 7.5875 6.5875C7.19583 6.97917 7 7.45 7 8C7 8.55 7.19583 9.02083 7.5875 9.4125C7.97917 9.80417 8.45 10 9 10Z",fill:"currentColor"})],-1)]))}const Ule=qo(Ble,[["render",Dle]]),Hle={},Fle={xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 24 24",fill:"none"};function jle(e,t){return U(),X("svg",Fle,t[0]||(t[0]=[te("circle",{cx:"16.9999",cy:"15.4999",r:"1.12",fill:"currentColor"},null,-1),te("path",{d:"M16.9998 17.5C16.2698 17.5 14.8098 17.86 14.7598 18.58C15.2598 19.29 16.0798 19.75 16.9998 19.75C17.9198 19.75 18.7398 19.29 19.2398 18.58C19.1898 17.86 17.7298 17.5 16.9998 17.5Z",fill:"currentColor"},null,-1),te("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18 11.09V6.27L10.5 3L3 6.27V11.18C3 15.72 6.2 19.97 10.5 21C11.05 20.87 11.58 20.68 12.1 20.45C13.18 21.99 14.97 23 17 23C20.31 23 23 20.31 23 17C23 14.03 20.84 11.57 18 11.09ZM11 17C11 17.56 11.08 18.11 11.23 18.62L11.23 18.62C10.99 18.73 10.75 18.84 10.5 18.92C7.33 17.92 5 14.68 5 11.18V7.58L10.5 5.18L16 7.58V11.09C13.16 11.57 11 14.03 11 17ZM13 17C13 19.21 14.79 21 17 21C19.21 21 21 19.21 21 17C21 14.79 19.21 13 17 13C14.79 13 13 14.79 13 17Z",fill:"currentColor"},null,-1)]))}const Vle=qo(Hle,[["render",jle]]),qle={},Wle={xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 24 24",fill:"none"};function zle(e,t){return U(),X("svg",Wle,t[0]||(t[0]=[te("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M21 7.98309L16.0169 3L4.26005 14.7571L3 21L9.24312 19.74L21 7.98309ZM6.09966 15.7451L16.0167 5.8291L18.1707 7.9831L8.25366 17.8991L5.55566 18.4431L6.09966 15.7451Z",fill:"currentColor"},null,-1)]))}const Gle=qo(qle,[["render",zle]]),Yle={},Kle={xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 24 24"};function Zle(e,t){return U(),X("svg",Kle,t[0]||(t[0]=[te("path",{fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd",d:"M1 11.5C2.73 7.11 7 4 12 4C17 4 21.27 7.11 23 11.5C21.27 15.89 17 19 12 19C7 19 2.73 15.89 1 11.5ZM20.8197 11.5C19.1697 8.13 15.7897 6 11.9997 6C8.20969 6 4.82969 8.13 3.17969 11.5C4.82969 14.87 8.20969 17 11.9997 17C15.7897 17 19.1697 14.87 20.8197 11.5ZM12 9C13.38 9 14.5 10.12 14.5 11.5C14.5 12.88 13.38 14 12 14C10.62 14 9.5 12.88 9.5 11.5C9.5 10.12 10.62 9 12 9ZM7.5 11.5C7.5 9.02 9.52 7 12 7C14.48 7 16.5 9.02 16.5 11.5C16.5 13.98 14.48 16 12 16C9.52 16 7.5 13.98 7.5 11.5
60Z"},null,-1)]))}const L$=qo(Yle,[["render",Zle]]),Qle={},Jle={width:"100%",height:"100%",viewBox:"0 0 20 20"};function Xle(e,t){return U(),X("svg",Jle,t[0]||(t[0]=[te("path",{fill:"currentColor",d:`M9.9974 5.98288C12.5241 5.98288 14.7774 7.40288 15.8774 9.64954C15.4841 10.4629 14.9307 11.1629 61 14.2707 11.7295L15.2107 12.6695C16.1374 11.8495 16.8707 10.8229 17.3307 9.64954C16.1774 6.72288 13.3307 62 4.64954 9.9974 4.64954C9.15073 4.64954 8.3374 4.78288 7.57073 5.02954L8.67073 6.12954C9.10406 6.04288 63 9.54406 5.98288 9.9974 5.98288ZM9.28406 6.74288L10.6641 8.12288C11.0441 8.28954 11.3507 8.59621 11.5174 64 8.97621L12.8974 10.3562C12.9507 10.1295 12.9907 9.88954 12.9907 9.64288C12.9974 7.98954 11.6507 6.64954 65 9.9974 6.64954C9.75073 6.64954 9.5174 6.68288 9.28406 6.74288ZM3.3374 4.56288L5.12406 6.34954C4.0374 66 7.20288 3.1774 8.33621 2.66406 9.64954C3.8174 12.5762 6.66406 14.6495 9.9974 14.6495C11.0107 14.6495 67 11.9841 14.4562 12.8774 14.1029L15.1574 16.3829L16.0974 15.4429L4.2774 3.61621L3.3374 4.56288ZM8.3374 68 9.56288L10.0774 11.3029C10.0507 11.3095 10.0241 11.3162 9.9974 11.3162C9.0774 11.3162 8.33073 10.5695 69 8.33073 9.64954C8.33073 9.61621 8.3374 9.59621 8.3374 9.56288ZM6.07073 7.29621L7.2374 8.46288C7.08406 70 8.82954 6.9974 9.22954 6.9974 9.64954C6.9974 11.3029 8.34406 12.6495 9.9974 12.6495C10.4174 12.6495 71 10.8174 12.5629 11.1774 12.4095L11.8307 13.0629C11.2441 13.2229 10.6307 13.3162 9.9974 13.3162C7.47073 72 13.3162 5.2174 11.8962 4.1174 9.64954C4.58406 8.69621 5.26406 7.90954 6.07073 7.29621Z`},null,-1)]))}const M$=qo(Qle,[["render",Xle]]),ece={},tce={width:"100%",height:"100%",viewBox:"0 0 16 16"};function nce(e,t){return U(),X("svg",tce,t[0]||(t[0]=[te("path",{fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd",d:`M9.66536 2L6.33203 2L5.66536 2.66667L3.33203 2.66667L3.33203 4L12.6654 4L12.6654 2.66667L10.332 73 2.66667L9.66536 2ZM10.6654 6L10.6654 12.6667L5.33203 12.6667L5.33203 6L10.6654 6ZM4 4.66699L12 74 4.66699L12 12.667C12 13.4003 11.4 14.0003 10.6667 14.0003L5.33333 14.0003C4.6 14.0003 4 13.4003 75 4 12.667L4 4.66699Z`},null,-1)]))}const rce=qo(ece,[["render",nce]]),oce={},ice={width:"100%",height:"100%",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"};function sce(e,t){return U(),X("svg",ice,t[0]||(t[0]=[te("path",{fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd",d:`M10.5 0C12.433 0 14 1.567 14 3.5V10.5C14 12.433 12.433 76 14 10.5 14H3.5C1.567 14 0 12.433 0 10.5V3.5C0 1.567 1.567 77 0 3.5 0H10.5ZM10.5965 6.21661V7.35611C10.5965 7.68376 10.3287 78 7.92804 10.0112 7.94121C9.69512 7.95584 9.42591 7.66183 9.42591 79 7.35611V6.93922V5.39601L8.17935 6.64219L6.43521 8.38581L5.00127 80 9.81931L4.39989 10.4205C4.16872 10.6516 3.80585 10.6341 3.5732 81 10.4205C3.34055 10.207 3.35664 9.80908 3.5732 9.5926L3.58344 82 9.58236C3.74345 9.41851 3.90671 9.2566 4.06975 9.0949L4.06982 83 9.09483C4.15127 9.01405 4.23266 8.93333 4.31357 8.85245C4.56379 84 8.60156 4.81438 8.35105 5.06497 8.10054L5.06546 8.10005C5.31585 85 7.84973 5.56624 7.59942 5.81627 7.34873L7.56041 5.60512L8.59775 86 4.56809H7.77689H6.63705C6.30929 4.56809 6.0664 4.3004 6.05177 87 3.98299C6.03714 3.66702 6.33123 3.39789 6.63705 3.39789H7.05406H8.87135H10.0112C10.1543 88 3.39789 10.2873 3.45258 10.3903 3.54159C10.4017 3.55076 10.413 3.56037 89 10.4239 3.57042C10.4993 3.63965 10.5486 3.72825 10.5734 3.82376C10.5884 90 3.87465 10.5965 3.92811 10.5965 3.98299V4.39987V6.21661ZM3.5 1.3125H10.5L10.6438 91 1.31715C11.7849 1.39122 12.6875 2.3402 12.6875 3.5V10.5L12.6828 10.6438C12.6088 92 11.7849 11.6598 12.6875 10.5 12.6875H3.5L3.35617 12.6828C2.21509 12.6088 1.3125 93 11.6598 1.3125 10.5V3.5L1.31715 3.35617C1.39122 2.21509 2.3402 1.3125 3.5 1.3125Z`},null,-1)]))}const ace=qo(oce,[["render",sce]]),Hn={ADD_TO_BOOKMARK:$t(JY),REMOVE_FROM_BOOKMARK:$t(Ple),SHARE:$t(dC),NOT_INTERESTING:$t(sK),IGNORE_AUTHOR:$t(Ule),ADMIN:$t(Vle),EDIT:$t(Gle),HIDE:$t(M$),HIDE_FROM_SECTION:$t(M$),DELETE:$t(rce),SHOW_IN_SECTION:$t(L$),RESTORE:$t(ace),SHOW:$t(L$)},uce={text:"ÐобавиÑÑ Ð² закладки",id:Ve.ADD_TO_BOOKMARK,icon:Hn.ADD_TO_BOOKMARK},lce={text:"УбÑаÑÑ Ð¸Ð· закладок",id:Ve.REMOVE_FROM_BOOKMARK,icon:Hn.REMOVE_FROM_BOOKMARK},cce={text:"ÐоделиÑÑÑÑ",id:Ve.SHARE,icon:Hn.SHARE},fce={text:"Ðне ÑÑо неинÑеÑеÑно",id:Ve.NOT_INTERESTING,icon:Hn.NOT_INTERESTING},M5={text:"Ðе показÑваÑÑ Ð°Ð²ÑоÑа в ленÑе",id:Ve.IGNORE_AUTHOR,icon:Hn.IGNORE_AUTHOR},dce={text:"Ðдмин. инÑеÑÑейÑ",id:Ve.Admin,icon:Hn.ADMIN},pce={text:"РедакÑиÑоваÑÑ",id:Ve.Edit,icon:Hn.EDIT},hce={text:"СкÑÑÑÑ ÑÑаÑÑÑ",id:Ve.Hide,icon:Hn.HIDE},gce={text:"УдалиÑÑ ÑÑаÑÑÑ",color:"danger",id:Ve.Delete,icon:Hn.DELETE},mce={text:"СкÑÑÑÑ ÑÑаÑÑÑ Ð¸Ð· Ñаздела",id:Ve.HideFromSection,icon:Hn.HIDE_FROM_SECTION},yce={text:"ÐоказаÑÑ ÑÑаÑÑÑ Ð² Ñазделе",id:Ve.ShowInSection,icon:Hn.SHOW_IN_SECTION},vce={text:"ÐоÑÑÑановиÑÑ ÑÑаÑÑÑ",id:Ve.Restore,icon:Hn.RESTORE},_ce={text:"ÐоказаÑÑ ÑÑаÑÑÑ",id:Ve.Show,icon:Hn.SHOW},Dm={[Ve.ADD_TO_BOOKMARK]:uce,[Ve.REMOVE_FROM_BOOKMARK]:lce,[Ve.SHARE]:cce,[Ve.NOT_INTERESTING]:fce,[Ve.IGNORE_AUTHOR]:M5,[Ve.Admin]:dce,[Ve.Edit]:pce,[Ve.Hide]:hce,[Ve.ShowInSection]:yce,[Ve.HideFromSection]:mce,[Ve.Delete]:gce,[Ve.Restore]:vce,[Ve.Show]:_ce},P$="УÑÑем. ÐÐ¾Ñ Ð¾Ð¶ÐµÐ³Ð¾ конÑенÑа ÑÑÐ°Ð½ÐµÑ Ð¼ÐµÐ½ÑÑе",bce="ÑÑаÑÑÑ",wce=e=>({[Ve.Hide]:`СкÑÑÑÑ ${e}`,[Ve.Delete]:`УдалиÑÑ ${e}`,[Ve.HideFromSection]:`СкÑÑÑÑ ${e} из Ñаздела`,[Ve.ShowInSection]:`ÐоказаÑÑ ${e} в Ñазделе`,[Ve.Restore]:`ÐоÑÑÑановиÑÑ ${e}`,[Ve.Show]:`ÐоказаÑÑ ${e}`}),P5=()=>" ($id: ID!) { postQueries { byID(ID: $id) { actions } } }";P5.operationName="getPostActions";const B5=()=>"($postId: ID!){ postMutations { delete (id: $postId){ status } } }";B5.operationName="deletePost";const N5=()=>"($postId: ID!) { postMutations { hide(id: $postId) { status } } }";N5.operationName="hidePost";const D5=()=>"($postId: ID!){ postMutations { show (id: $postId){ status } } }";D5.operationName="showPost";const U5=()=>"($postId: ID!) { postMutations { hideFromSection (id: $postId){ status } } }";U5.operationName="hidePostFromSection";const H5=()=>"($postId: ID!) { postMutations { showInSection (id: $postId){ status } } }";H5.operationName="showPostInSection";const Ece=e=>({async getPostActions({id:t}){return(await e.gqlQuery(P5,{id:t})).byID},async deletePost(t){return(await e.gqlMutation(B5,{postId:t})).postMutations.delete.status},async hidePost(t){return(await e.gqlMutation(N5,{postId:t})).postMutations.hide.status},async showPost(t){return(await e.gqlMutation(D5,{postId:t})).postMutations.show.status},async hidePostFromSection(t){return(await e.gqlMutation(U5,{postId:t})).postMutations.hideFromSection.status},async showPostInSection(t){return(await e.gqlMutation(H5,{postId:t})).postMutations.showInSection.status}});function Sce(e){const{openAuthPopup:t}=e,n=v4(e.gqlClient),r=Ece(e.gqlClient),o=U_(e.gqlClient,e.logger),s=Di(),a=Cle(),u=Y_(),{isAuthorized:f}=Fu(e.gqlClient),d=()=>f.value?!1:(t(),!0),{ignore:p}=Iue({openPopupIfUnauthorized:d,gqlClient:e.gqlClient,logger:e.logger}),h=e.isShortPost?O5.Post:e.documentType,y=e.documentName??bce,m=wce(y),v=ie([]),b=ie(!1),S=e.disabled??ie(!1),w=()=>{const q=[];return e.authors?.forEach(ue=>{q.push({...M5,text:`Ðе показÑваÑÑ Ð°Ð²ÑоÑа ${ue.nick} в ленÑе`,authorId:ue.id})}),q},T=J(()=>e.defaultItems?.includes(Ve.IGNORE_AUTHOR)&&e.authors&&e.authors.length>1?[...(e.defaultItems.filter(q=>q!==Ve.IGNORE_AUTHOR)||[]).map(q=>Dm[q]),...w(),...v.value.map(q=>Dm[q])]:[...e.defaultItems??[],...v.value].map(q=>{const ue=Dm[q],G=m[q];return G?{...ue,text:G}:ue})),I=async q=>await r.getPostActions({id:q}),C=async()=>
93{if(!(e.skipFetch||!f.value)&&!(v.value.length>0))try{b.value=!0;const q=await I(e.documentId);v.value=q?.actions||[]}finally{b.value=!1}},A=async(q,ue)=>{try{await n.createBookmark({objectID:q,objectType:r1.Post}),s.emit("notification:info",{text:"Ðобавлено в закладки"})}catch{s.emit("notification:error",{text:"Ðе ÑдалоÑÑ Ð´Ð¾Ð±Ð°Ð²Ð¸ÑÑ Ð² закладки"})}finally{v.value=[],ue?.()}},$=async(q,ue)=>{try{await n.deleteBookmark({objectID:q,objectType:r1.Post}),s.emit("notification:info",{text:"УбÑано из закладок"})}catch{s.emit("notification:error",{text:"Ðе ÑдалоÑÑ ÑбÑаÑÑ Ð¸Ð· закладок"})}finally{v.value=[],ue?.()}},k=(q,ue)=>{try{s.emit("media-events:share",{id:q,type:ue})}catch{s.emit("notification:error",{text:"Ðе ÑдалоÑÑ Ð¾ÑкÑÑÑÑ Ð¾ÐºÐ½Ð¾ «ÐоделиÑÑÑÑ»"})}},x=(q,ue)=>{try{s.emit("media-events:share",{id:q,type:ue,onlyLink:!0})}catch{s.emit("notification:error",{text:"Ðе ÑдалоÑÑ ÑкопиÑоваÑÑ ÑÑÑлкÑ"})}},O=async(q,ue,G)=>{try{if(!await o.setPreference({documentId:q,documentType:ue,preference:bc.DISLIKE}))throw new Error;s.emit("notification:info",{text:P$})}catch{s.emit("notification:error",{text:"Ðе ÑдалоÑÑ Ð²ÑполниÑÑ Ð´ÐµÐ¹ÑÑвие"})}finally{v.value=[],G?.()}},M=async(q,ue,G)=>{try{if(!q)throw new Error;await p({title:"",type:Vt.AUTHOR,id:q,icon:Hn.IGNORE_AUTHOR},ue,!1),S.value=!0,s.emit("notification:info",{text:P$})}catch{s.emit("notification:error",{text:"Ðе ÑдалоÑÑ ÑкÑÑÑÑ Ð°Ð²ÑоÑа"})}finally{v.value=[],G?.()}},j=q=>{location.href=`/ontico/post_article.html?post_id=${q}`},V=({id:q,authors:ue,blog:G})=>{const re=ue?.[0]?.id??"";if(e.isShortPost){if(!re)return;a.push({name:"SHORT_POST",params:{profileSlug:re,postId:q},state:{backgroundRoute:u.fullPath}});return}const Oe=G?.webname??re;Oe?location.href=`/tribuna/blogs/${Oe}/${q}/edit/#editDraft`:location.href=`/tribuna/blogs/posts/${q}/edit/#editDraft`},W=async(q,ue,G)=>{if(confirm(`ÐÑ ÑвеÑенÑ, ÑÑо Ñ
оÑиÑе ÑдалиÑÑ ${y}?`))try{const re=await r.deletePost(q);s.emit("notification:info",{text:"Удалено"}),re&&ue?.webname?location.href=`/tribuna/blogs/${ue.webname}/`:re&&window.location.reload()}catch{s.emit("notification:error",{text:`Ðе ÑдалоÑÑ ÑдалиÑÑ ${y}`})}finally{v.value=[],G?.()}},Y=async(q,ue)=>{try{await r.hidePost(q),ue?.()}catch{s.emit("notification:error",{text:`Ðе ÑдалоÑÑ ÑкÑÑÑÑ ${y}`})}finally{v.value=[],ue?.()}},ne=async(q,ue)=>{try{await r.showPost(q),ue?.()}catch{s.emit("notification:error",{text:`Ðе ÑдалоÑÑ Ð¿Ð¾ÐºÐ°Ð·Ð°ÑÑ ${y}`})}finally{v.value=[],ue?.()}},Z=async(q,ue)=>{try{await r.hidePostFromSection(q),ue?.()}catch{s.emit("notification:error",{text:`Ðе ÑдалоÑÑ ÑкÑÑÑÑ ${y} из Ñаздела`})}finally{v.value=[],ue?.()}},ae=async(q,ue)=>{try{await r.showPostInSection(q),ue?.()}catch{s.emit("notification:error",{text:`Ðе ÑдалоÑÑ Ð¿Ð¾ÐºÐ°Ð·Ð°ÑÑ ${y} в Ñазделе`})}finally{v.value=[],ue?.()}},ce=async(q,ue)=>{try{await r.showPost(q),ue?.()}catch{s.emit("notification:error",{text:`Ðе ÑдалоÑÑ Ð²Ð¾ÑÑÑановиÑÑ ${y}`})}finally{v.value=[],ue?.()}};return{handleContextMenuSelect:async({item:q,onActionsChange:ue})=>{if(L5(q)){if(q.id===Ve.SHARE){e.isShortPost?x(e.documentId,h):k(e.documentId,h);return}if(q.id===Ve.NOT_INTERESTING&&e.recommendationDocumentType){if(d())return;await O(e.documentId,e.recommendationDocumentType,ue);return}if(q.id===Ve.IGNORE_AUTHOR&&e.recommendationDocumentType){if(d())return;const G=q.authorId||e.authors?.[0].id||"";await M(G,e.recommendationDocumentType,ue);return}if(q.id===Ve.ADD_TO_BOOKMARK){if(d())return;await A(e.documentId,ue);return}if(q.id===Ve.REMOVE_FROM_BOOKMARK){if(d())return;await $(e.documentId,ue);return}if(q.id===Ve.Admin){if(d())return;j(e.documentId);return}if(q.id===Ve.Edit){if(d())return;V({id:e.documentId,authors:e.authors,blog:e.blog});return}if(q.id===Ve.Delete){if(d())return;await W(e.documentId,e.blog,ue);return}if(q.id===Ve.Hide){if(d())return;await Y(e.documentId,ue);return}if(q.id===Ve.Show){if(d())return;await ne(e.documentId,ue);return}if(q.id===Ve.HideFromSection){if(d())return;await Z(e.documentId,ue);return}if(q.id===Ve.ShowInSection){if(d())return;await ae(e.documentId,ue);return}if(q.id===Ve.Restore){if(d())return;await ce(e.documentId,ue);return}}},disabled:S,openMenuHandler:C,menuItems:T,loading:b}}const $ce=xe({__name:"ContextMenu",props:{id:{type:String,required:!0},items:{type:Array,required:!0},placement:{type:String,default:"bottom-end"},loading:{type:Boolean,default:!1},skeletonOptions:{type:Object,default:null},buttonSize:{type:String,default:ot.SM},menuClass:{type:String,default:""}}
93,emits:["select-menu-item","open-menu"],setup(e,{emit:t}){const n=t,r=o=>{n("select-menu-item",o)};return(o,s)=>(U(),we(N(Xne),{class:"context-menu","dropdown-id":e.id,items:e.items,placement:e.placement,"target-width":"",loading:e.loading,"skeleton-options":e.skeletonOptions,"menu-class":e.menuClass,onSelect:r,onOpen:s[0]||(s[0]=a=>n("open-menu"))},{trigger:be(()=>[ye(N(St),{type:"button",variant:N(pt).TERTIARY,color:N(ut).DEFAULT,size:e.buttonSize,short:"",class:"context-menu__button"},{default:be(()=>[ye(N(GK),{class:"context-menu__icon"})]),_:1},8,["variant","color","size"])]),_:1},8,["dropdown-id","items","placement","loading","skeleton-options","menu-class"]))}}),Tce=qo($ce,[["__scopeId","data-v-01e62f94"]]);function Ice({callback:e,observer:t}){const n={threshold:t?.threshold??1};return new IntersectionObserver(r=>{e(r)},n)}let Ace=class{constructor(t=1){this.__observer=null,this.observingThreshold=new Set,this.observingElements=new Set,this.observingThresholdCount={},this.observingThreshold.add(t)}get observer(){return this.__observer||this.createObserver(),this.__observer}createObserver(){this.__observer&&this.__observer.disconnect(),this.__observer=Ice({callback:t=>this.onIntersect(t),observer:{threshold:Array.from(this.observingThreshold)}}),this.observingElements.size>0&&this.observingElements.forEach(t=>{var n;return(n=this.__observer)==null?void 0:n.observe(t)})}observe({element:t,threshold:n=1,callback:r,once:o}){this.observingThreshold.has(n)||(this.observingThreshold.add(n),this.createObserver()),t.observeVisibilityParams={threshold:n,callback:r,once:o??!1},this.observer.observe(t),this.observingElements.add(t),this.increaseThresholdIntersectionCounter(n)}unobserve(t){this.observer.unobserve(t),this.observingElements.delete(t),this.observingElements.size===0&&this.observer.disconnect();const n=this.getObservingElementViewParams(t);n!=null&&n.threshold&&(this.decreaseThresholdIntersectionCounter(n.threshold),!(this.observingThresholdCount[n.threshold]>0)&&(this.observingThreshold.delete(n.threshold),this.createObserver()))}onIntersect(t){t.forEach(n=>{if(!n.isIntersecting||!this.observingElements.has(n.target))return;const r=this.getObservingElementViewParams(n.target);!r||!this.isIntersected(n.intersectionRatio,r)||(r.callback(n),r.once&&this.unobserve(n.target))})}isIntersected(t,n){return t>=n.threshold}getObservingElementViewParams(t){return t.observeVisibilityParams}increaseThresholdIntersectionCounter(t){if(!this.observingThresholdCount[t]){this.observingThresholdCount[t]=1;return}this.observingThresholdCount[t]=this.observingThresholdCount[t]+1}decreaseThresholdIntersectionCounter(t){this.observingThresholdCount[t]=this.observingThresholdCount[t]-1}};new Ace;var xce={},F5={},tg={};tg.byteLength=Oce;tg.toByteArray=Lce;tg.fromByteArray=Bce;var Qr=[],ur=[],Cce=typeof Uint8Array<"u"?Uint8Array:Array,Um="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var wa=0,Rce=Um.length;wa<Rce;++wa)Qr[wa]=Um[wa],ur[Um.charCodeAt(wa)]=wa;ur[45]=62;ur[95]=63;function j5(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function Oce(e){var t=j5(e),n=t[0],r=t[1];return(n+r)*3/4-r}function kce(e,t,n){return(t+n)*3/4-n}function Lce(e){var t,n=j5(e),r=n[0],o=n[1],s=new Cce(kce(e,r,o)),a=0,u=o>0?r-4:r,f;for(f=0;f<u;f+=4)t=ur[e.charCodeAt(f)]<<18|ur[e.charCodeAt(f+1)]<<12|ur[e.charCodeAt(f+2)]<<6|ur[e.charCodeAt(f+3)],s[a++]=t>>16&255,s[a++]=t>>8&255,s[a++]=t&255;return o===2&&(t=ur[e.charCodeAt(f)]<<2|ur[e.charCodeAt(f+1)]>>4,s[a++]=t&255),o===1&&(t=ur[e.charCodeAt(f)]<<10|ur[e.charCodeAt(f+1)]<<4|ur[e.charCodeAt(f+2)]>>2,s[a++]=t>>8&255,s[a++]=t&255),s}function Mce(e){return Qr[e>>18&63]+Qr[e>>12&63]+Qr[e>>6&63]+Qr[e&63]}function Pce(e,t,n){for(var r,o=[],s=t;s<n;s+=3)r=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(e[s+2]&255),o.push(Mce(r));return o.join("")}function Bce(e){for(var t,n=e.length,r=n%3,o=[],s=16383,a=0,u=n-r;a<u;a+=s)o.push(Pce(e,a,a+s>u?u:a+s));return r===1?(t=e[n-1],o.push(Qr[t>>2]+Qr[t<<4&63]+"==")):r===2&&(t=(e[n-2]<<8)+e[n-1],o.push(Qr[t>>10]+Qr[t>>4&63]+Qr[t<<2&63]+"=")),o.join("")}var K_={};K_.read=function(e,t,n,r,o){var s,a,u=o*8-r-1,f=(1<<u)-1,d=f>>
vendor: 27,434 bytes, line 93
931,p=-7,h=n?o-1:0,y=n?-1:1,m=e[t+h];for(h+=y,s=m&(1<<-p)-1,m>>=-p,p+=u;p>0;s=s*256+e[t+h],h+=y,p-=8);for(a=s&(1<<-p)-1,s>>=-p,p+=r;p>0;a=a*256+e[t+h],h+=y,p-=8);if(s===0)s=1-d;else{if(s===f)return a?NaN:(m?-1:1)*(1/0);a=a+Math.pow(2,r),s=s-d}return(m?-1:1)*a*Math.pow(2,s-r)};K_.write=function(e,t,n,r,o,s){var a,u,f,d=s*8-o-1,p=(1<<d)-1,h=p>>1,y=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,m=r?0:s-1,v=r?1:-1,b=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,a=p):(a=Math.floor(Math.log(t)/Math.LN2),t*(f=Math.pow(2,-a))<1&&(a--,f*=2),a+h>=1?t+=y/f:t+=y*Math.pow(2,1-h),t*f>=2&&(a++,f/=2),a+h>=p?(u=0,a=p):a+h>=1?(u=(t*f-1)*Math.pow(2,o),a=a+h):(u=t*Math.pow(2,h-1)*Math.pow(2,o),a=0));o>=8;e[n+m]=u&255,m+=v,u/=256,o-=8);for(a=a<<o|u,d+=o;d>0;e[n+m]=a&255,m+=v,a/=256,d-=8);e[n+m-v]|=b*128};(function(e){const t=tg,n=K_,r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=u,e.SlowBuffer=T,e.INSPECT_MAX_BYTES=50;const o=2147483647;e.kMaxLength=o,u.TYPED_ARRAY_SUPPORT=s(),!u.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function s(){try{const i=new Uint8Array(1),l={foo:function(){return 42}};return Object.setPrototypeOf(l,Uint8Array.prototype),Object.setPrototypeOf(i,l),i.foo()===42}catch{return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}});function a(i){if(i>o)throw new RangeError('The value "'+i+'" is invalid for option "size"');const l=new Uint8Array(i);return Object.setPrototypeOf(l,u.prototype),l}function u(i,l,c){if(typeof i=="number"){if(typeof l=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return h(i)}return f(i,l,c)}u.poolSize=8192;function f(i,l,c){if(typeof i=="string")return y(i,l);if(ArrayBuffer.isView(i))return v(i);if(i==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof i);if(fe(i,ArrayBuffer)||i&&fe(i.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(fe(i,SharedArrayBuffer)||i&&fe(i.buffer,SharedArrayBuffer)))return b(i,l,c);if(typeof i=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const g=i.valueOf&&i.valueOf();if(g!=null&&g!==i)return u.from(g,l,c);const _=S(i);if(_)return _;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof i[Symbol.toPrimitive]=="function")return u.from(i[Symbol.toPrimitive]("string"),l,c);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof i)}u.from=function(i,l,c){return f(i,l,c)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array);function d(i){if(typeof i!="number")throw new TypeError('"size" argument must be of type number');if(i<0)throw new RangeError('The value "'+i+'" is invalid for option "size"')}function p(i,l,c){return d(i),i<=0?a(i):l!==void 0?typeof c=="string"?a(i).fill(l,c):a(i).fill(l):a(i)}u.alloc=function(i,l,c){return p(i,l,c)};function h(i){return d(i),a(i<0?0:w(i)|0)}u.allocUnsafe=function(i){return h(i)},u.allocUnsafeSlow=function(i){return h(i)};function y(i,l){if((typeof l!="string"||l==="")&&(l="utf8"),!u.isEncoding(l))throw new TypeError("Unknown encoding: "+l);const c=I(i,l)|0;let g=a(c);const _=g.write(i,l);return _!==c&&(g=g.slice(0,_)),g}function m(i){const l=i.length<0?0:w(i.length)|0,c=a(l);for(let g=0;g<l;g+=1)c[g]=i[g]&255;return c}function v(i){if(fe(i,Uint8Array)){const l=new Uint8Array(i);return b(l.buffer,l.byteOffset,l.byteLength)}return m(i)}function b(i,l,c){if(l<0||i.byteLength<l)throw new RangeError('"offset" is outside of buffer bounds');if(i.byteLength<l+(c||0))throw new RangeError('"length" is outside of buffer bounds');let g;return l===void 0&&c===void 0?g=new Uint8Array(i):c===void 0?g=new Uint8Array(i,l):g=new Uint8Array(i,l,c),Object.setPrototypeOf(g,u.prototype),g}function S(i){if(u.isBuffer(i)){const l=w(i.length)|0,c=a(l);return c.length===0||i.copy(c,0,0,l),c}if(i.length!==void 0)return typeof i.length!="number"||Ce(i.length)?a(0):m(i);if(i.type==="Buffer"&&Array.isArray(i.data))return m(i.data)}function w(i){if(i>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return i|0}function T(i){return+i!=i&&(i=0),u.alloc(+i)}u.isBuffer=function(i){return i!=null&&i._isBuffer===!0&&i!==u.prototype},u.compare=function(i,l){if(fe(i,Uint8Array)&&(i=u.from(i,i.offset,i.byteLength)),fe(l,Uint8Array)&&(l=u.from(l,l.offset,l.byteLength)),!u.isBuffer(i)||!u.isBuffer(l))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(i===l)return 0;let c=i.length,g=l.length;for(let _=0,E=Math.min(c,g);_<E;++_)if(i[_]!==l[_]){c=i[_],g=l[_];break}return c<g?-1:g<c?1:0},u.isEncoding=function(i){switch(String(i).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(i,l){if(!Array.isArray(i))throw new TypeError('"list" argument must be an Array of Buffers');if(i.length===0)return u.alloc(0);let c;if(l===void 0)for(l=0,c=0;c<i.length;++c)l+=i[c].length;const g=u.allocUnsafe(l);let _=0;for(c=0;c<i.length;++c){let E=i[c];if(fe(E,Uint8Array))_+E.length>g.length?(u.isBuffer(E)||(E=u.from(E)),E.copy(g,_)):Uint8Array.prototype.set.call(g,E,_);else if(u.isBuffer(E))E.copy(g,_);else throw new TypeError('"list" argument must be an Array of Buffers');_+=E.length}return g};function I(i,l){if(u.isBuffer(i))return i.length;if(ArrayBuffer.isView(i)||fe(i,ArrayBuffer))return i.byteLength;if(typeof i!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof i);const c=i.length,g=arguments.length>2&&arguments[2]===!0;if(!g&&c===0)return 0;let _=!1;for(;;)switch(l){case"ascii":case"latin1":case"binary":return c;case"utf8":case"utf-8":return de(i).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c*2;case"hex":return c>>>1;case"base64":return pe(i).length;default:if(_)return g?-1:de(i).length;l=(""+l).toLowerCase(),_=!0}}u.byteLength=I;function C(i,l,c){let g=!1;if((l===void 0||l<0)&&(l=0),l>this.length||((c===void 0||c>this.length)&&(c=this.length),c<=0)||(c>>>=0,l>>>=0,c<=l))return"";for(i||(i="utf8");;)switch(i){case"hex":return q(this,l,c);case"utf8":case"utf-8":return Y(this,l,c);case"ascii":return ae(this,l,c);case"latin1":case"binary":return ce(this,l,c);case"base64":return W(this,l,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ue(this,l,c);default:if(g)throw new TypeError("Unknown encoding: "+i);i=(i+"").toLowerCase(),g=!0}}u.prototype._isBuffer=!0;function A(i,l,c){const g=i[l];i[l]=i[c],i[c]=g}u.prototype.swap16=function(){const i=this.length;if(i%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let l=0;l<i;l+=2)A(this,l,l+1);return this},u.prototype.swap32=function(){const i=this.length;if(i%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let l=0;l<i;l+=4)A(this,l,l+3),A(this,l+1,l+2);return this},u.prototype.swap64=function(){const i=this.length;if(i%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let l=0;l<i;l+=8)A(this,l,l+7),A(this,l+1,l+6),A(this,l+2,l+5),A(this,l+3,l+4);return this},u.prototype.toString=function(){const i=this.length;return i===0?"":arguments.length===0?Y(this,0,i):C.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(i){if(!u.isBuffer(i))throw new TypeError("Argument must be a Buffer");return this===i?!0:u.compare(this,i)===0},u.prototype.inspect=function(){let i="";const l=e.INSPECT_MAX_BYTES;return i=this.toString("hex",0,l).replace(/(.{2})/g,"$1 ").trim(),this.length>l&&(i+=" ... "),"<Buffer "+i+">"},r&&(u.prototype[r]=u.prototype.inspect),u.prototype.compare=function(i,l,c,g,_){if(fe(i,Uint8Array)&&(i=u.from(i,i.offset,i.byteLength)),!u.isBuffer(i))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof i);if(l===void 0&&(l=0),c===void 0&&(c=i?i.length:0),g===void 0&&(g=0),_===void 0&&(_=this.length),l<0||c>i.length||g<0||_>this.length)throw new RangeError("out of range index");if(g>=_&&l>=c)return 0;if(g>=_)return-1;if(l>=c)return 1;if(l>>>=0,c>>>=0,g>>>=0,_>>>=0,this===i)return 0;let E=_-g,R=c-l;const oe=Math.min(E,R),$e=this.slice(g,_),me=i.slice(l,c);for(let he=0;he<oe;++he)if($e[he]!==me[he]){E=$e[he],R=me[he];break}return E<R?-1:R<E?1:0};function $(i,l,c,g,_){if(i.length===0)return-1;if(typeof c=="string"?(g=c,c=0):c>2147483647?c=2147483647:c<-2147483648&&(c=-2147483648),c=+c,Ce(c)&&(c=_?0:i.length-1),c<0&&(c=i.length+c),c>=i.length){if(_)return-1;c=i.length-1}else if(c<0)if(_)c=0;else return-1;if(typeof l=="string"&&(l=u.from(l,g)),u.isBuffer(l))return l.length===0?-1:k(i,l,c,g,_);if(typeof l=="number")return l=l&255,typeof Uint8Array.prototype.indexOf=="function"?_?Uint8Array.prototype.indexOf.call(i,l,c):Uint8Array.prototype.lastIndexOf.call(i,l,c):k(i,[l],c,g,_);throw new TypeError("val must be string, number or Buffer")}function k(i,l,c,g,_){let E=1,R=i.length,oe=l.length;if(g!==void 0&&(g=String(g).toLowerCase(),g==="ucs2"||g==="ucs-2"||g==="utf16le"||g==="utf-16le")){if(i.length<2||l.length<2)return-1;E=2,R/=2,oe/=2,c/=2}function $e(he,Te){return E===1?he[Te]:he.readUInt16BE(Te*E)}let me;if(_){let he=-1;for(me=c;me<R;me++)if($e(i,me)===$e(l,he===-1?0:me-he)){if(he===-1&&(he=me),me-he+1===oe)return he*E}else he!==-1&&(me-=me-he),he=-1}else for(c+oe>R&&(c=R-oe),me=c;me>=0;me--){let he=!0;for(let Te=0;Te<oe;Te++)if($e(i,me+Te)!==$e(l,Te)){he=!1;break}if(he)return me}return-1}u.prototype.includes=function(i,l,c){return this.indexOf(i,l,c)!==-1},u.prototype.indexOf=function(i,l,c){return $(this,i,l,c,!0)},u.prototype.lastIndexOf=function(i,l,c){return $(this,i,l,c,!1)};function x(i,l,c,g){c=Number(c)||0;const _=i.length-c;g?(g=Number(g),g>_&&(g=_)):g=_;const E=l.length;g>E/2&&(g=E/2);let R;for(R=0;R<g;++R){const oe=parseInt(l.substr(R*2,2),16);if(Ce(oe))return R;i[c+R]=oe}return R}function O(i,l,c,g){return ge(de(l,i.length-c),i,c,g)}function M(i,l,c,g){return ge(_e(l),i,c,g)}function j(i,l,c,g){return ge(pe(l),i,c,g)}function V(i,l,c,g){return ge(Se(l,i.length-c),i,c,g)}u.prototype.write=function(i,l,c,g){if(l===void 0)g="utf8",c=this.length,l=0;else if(c===void 0&&typeof l=="string")g=l,c=this.length,l=0;else if(isFinite(l))l=l>>>0,isFinite(c)?(c=c>>>0,g===void 0&&(g="utf8")):(g=c,c=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const _=this.length-l;if((c===void 0||c>_)&&(c=_),i.length>0&&(c<0||l<0)||l>this.length)throw new RangeError("Attempt to write outside buffer bounds");g||(g="utf8");let E=!1;for(;;)switch(g){case"hex":return x(this,i,l,c);case"utf8":case"utf-8":return O(this,i,l,c);case"ascii":case"latin1":case"binary":return M(this,i,l,c);case"base64":return j(this,i,l,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return V(this,i,l,c);default:if(E)throw new TypeError("Unknown encoding: "+g);g=(""+g).toLowerCase(),E=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function W(i,l,c){return l===0&&c===i.length?t.fromByteArray(i):t.fromByteArray(i.slice(l,c))}function Y(i,l,c){c=Math.min(i.length,c);const g=[];let _=l;for(;_<c;){const E=i[_];let R=null,oe=E>239?4:E>223?3:E>191?2:1;if(_+oe<=c){let $e,me,he,Te;switch(oe){case 1:E<128&&(R=E);break;case 2:$e=i[_+1],($e&192)===128&&(Te=(E&31)<<6|$e&63,Te>127&&(R=Te));break;case 3:$e=i[_+1],me=i[_+2],($e&192)===128&&(me&192)===128&&(Te=(E&15)<<12|($e&63)<<6|me&63,Te>2047&&(Te<55296||Te>57343)&&(R=Te));break;case 4:$e=i[_+1],me=i[_+2],he=i[_+3],($e&192)===128&&(me&192)===128&&(he&192)===128&&(Te=(E&15)<<18|($e&63)<<12|(me&63)<<6|he&63,Te>65535&&Te<1114112&&(R=Te))}}R===null?(R=65533,oe=1):R>65535&&(R-=65536,g.push(R>>>10&1023|55296),R=56320|R&1023),g.push(R),_+=oe}return Z(g)}const ne=4096;function Z(i){const l=i.length;if(l<=ne)return String.fromCharCode.apply(String,i);let c="",g=0;for(;g<l;)c+=String.fromCharCode.apply(String,i.slice(g,g+=ne));return c}function ae(i,l,c){let g="";c=Math.min(i.length,c);for(let _=l;_<c;++_)g+=String.fromCharCode(i[_]&127);return g}function ce(i,l,c){let g="";c=Math.min(i.length,c);for(let _=l;_<c;++_)g+=String.fromCharCode(i[_]);return g}function q(i,l,c){const g=i.length;(!l||l<0)&&(l=0),(!c||c<0||c>g)&&(c=g);let _="";for(let E=l;E<c;++E)_+=H[i[E]];return _}function ue(i,l,c){const g=i.slice(l,c);let _="";for(let E=0;E<g.length-1;E+=2)_+=String.fromCharCode(g[E]+g[E+1]*256);return _}u.prototype.slice=function(i,l){const c=this.length;i=~~i,l=l===void 0?c:~~l,i<0?(i+=c,i<0&&(i=0)):i>c&&(i=c),l<0?(l+=c,l<0&&(l=0)):l>c&&(l=c),l<i&&(l=i);const g=this.subarray(i,l);return Object.setPrototypeOf(g,u.prototype),g};function G(i,l,c){if(i%1!==0||i<0)throw new RangeError("offset is not uint");if(i+l>c)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(i,l,c){i=i>>>0,l=l>>>0,c||G(i,l,this.length);let g=this[i],_=1,E=0;for(;++E<l&&(_*=256);)g+=this[i+E]*_;return g},u.prototype.readUintBE=u.prototype.readUIntBE=function(i,l,c){i=i>>>0,l=l>>>0,c||G(i,l,this.length);let g=this[i+--l],_=1;for(;l>0&&(_*=256);)g+=this[i+--l]*_;return g},u.prototype.readUint8=u.prototype.readUInt8=function(i,l){return i=i>>>0,l||G(i,1,this.length),this[i]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(i,l){return i=i>>>0,l||G(i,2,this.length),this[i]|this[i+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(i,l){return i=i>>>0,l||G(i,2,this.length),this[i]<<8|this[i+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(i,l){return i=i>>>0,l||G(i,4,this.length),(this[i]|this[i+1]<<8|this[i+2]<<16)+this[i+3]*16777216},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(i,l){return i=i>>>0,l||G(i,4,this.length),this[i]*16777216+(this[i+1]<<16|this[i+2]<<8|this[i+3])},u.prototype.readBigUInt64LE=z(function(i){i=i>>>0,L(i,"offset");const l=this[i],c=this[i+7];(l===void 0||c===void 0)&&D(i,this.length-8);const g=l+this[++i]*2**8+this[++i]*2**16+this[++i]*2**24,_=this[++i]+this[++i]*2**8+this[++i]*2**16+c*2**24;return BigInt(g)+(BigInt(_)<<BigInt(32))}),u.prototype.readBigUInt64BE=z(function(i){i=i>>>0,L(i,"offset");const l=this[i],c=this[i+7];(l===void 0||c===void 0)&&D(i,this.length-8);const g=l*2**24+this[++i]*2**16+this[++i]*2**8+this[++i],_=this[++i]*2**24+this[++i]*2**16+this[++i]*2**8+c;return(BigInt(g)<<BigInt(32))+BigInt(_)}),u.prototype.readIntLE=function(i,l,c){i=i>>>0,l=l>>>0,c||G(i,l,this.length);let g=this[i],_=1,E=0;for(;++E<l&&(_*=256);)g+=this[i+E]*_;return _*=128,g>=_&&(g-=Math.pow(2,8*l)),g},u.prototype.readIntBE=function(i,l,c){i=i>>>0,l=l>>>0,c||G(i,l,this.length);let g=l,_=1,E=this[i+--g];for(;g>0&&(_*=256);)E+=this[i+--g]*_;return _*=128,E>=_&&(E-=Math.pow(2,8*l)),E},u.prototype.readInt8=function(i,l){return i=i>>>0,l||G(i,1,this.length),this[i]&128?(255-this[i]+1)*-1:this[i]},u.prototype.readInt16LE=function(i,l){i=i>>>0,l||G(i,2,this.length);const c=this[i]|this[i+1]<<8;return c&32768?c|4294901760:c},u.prototype.readInt16BE=function(i,l){i=i>>>0,l||G(i,2,this.length);const c=this[i+1]|this[i]<<8;return c&32768?c|4294901760:c},u.prototype.readInt32LE=function(i,l){return i=i>>>0,l||G(i,4,this.length),this[i]|this[i+1]<<8|this[i+2]<<16|this[i+3]<<24},u.prototype.readInt32BE=function(i,l){return i=i>>>0,l||G(i,4,this.length),this[i]<<24|this[i+1]<<16|this[i+2]<<8|this[i+3]},u.prototype.readBigInt64LE=z(function(i){i=i>>>0,L(i,"offset");const l=this[i],c=this[i+7];(l===void 0||c===void 0)&&D(i,this.length-8);const g=this[i+4]+this[i+5]*2**8+this[i+6]*2**16+(c<<24);return(BigInt(g)<<BigInt(32))+BigInt(l+this[++i]*2**8+this[++i]*2**16+this[++i]*2**24)}),u.prototype.readBigInt64BE=z(function(i){i=i>>>0,L(i,"offset");const l=this[i],c=this[i+7];(l===void 0||c===void 0)&&D(i,this.length-8);const g=(l<<24)+this[++i]*2**16+this[++i]*2**8+this[++i];return(BigInt(g)<<BigInt(32))+BigInt(this[++i]*2**24+this[++i]*2**16+this[++i]*2**8+c)}),u.prototype.readFloatLE=function(i,l){return i=i>>>0,l||G(i,4,this.length),n.read(this,i,!0,23,4)},u.prototype.readFloatBE=function(i,l){return i=i>>>0,l||G(i,4,this.length),n.read(this,i,!1,23,4)},u.prototype.readDoubleLE=function(i,l){return i=i>>>0,l||G(i,8,this.length),n.read(this,i,!0,52,8)},u.prototype.readDoubleBE=function(i,l){return i=i>>>0,l||G(i,8,this.length),n.read(this,i,!1,52,8)};function re(i,l,c,g,_,E){if(!u.isBuffer(i))throw new TypeError('"buffer" argument must be a Buffer instance');if(l>_||l<E)throw new RangeError('"value" argument is out of bounds');if(c+g>i.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(i,l,c,g){if(i=+i,l=l>>>0,c=c>>>0,!g){const R=Math.pow(2,8*c)-1;re(this,i,l,c,R,0)}let _=1,E=0;for(this[l]=i&255;++E<c&&(_*=256);)this[l+E]=i/_&255;return l+c},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(i,l,c,g){if(i=+i,l=l>>>0,c=c>>>0,!g){const R=Math.pow(2,8*c)-1;re(this,i,l,c,R,0)}let _=c-1,E=1;for(this[l+_]=i&255;--_>=0&&(E*=256);)this[l+_]=i/E&255;return l+c},u.prototype.writeUint8=u.prototype.writeUInt8=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,1,255,0),this[l]=i&255,l+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,2,65535,0),this[l]=i&255,this[l+1]=i>>>8,l+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,2,65535,0),this[l]=i>>>8,this[l+1]=i&255,l+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,4,4294967295,0),this[l+3]=i>>>24,this[l+2]=i>>>16,this[l+1]=i>>>8,this[l]=i&255,l+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,4,4294967295,0),this[l]=i>>>24,this[l+1]=i>>>16,this[l+2]=i>>>8,this[l+3]=i&255,l+4};function Oe(i,l,c,g,_){K(l,g,_,i,c,7);let E=Number(l&BigInt(4294967295));i[c++]=E,E=E>>8,i[c++]=E,E=E>>8,i[c++]=E,E=E>>8,i[c++]=E;let R=Number(l>>BigInt(32)&BigInt(4294967295));return i[c++]=R,R=R>>8,i[c++]=R,R=R>>8,i[c++]=R,R=R>>8,i[c++]=R,c}function Ee(i,l,c,g,_){K(l,g,_,i,c,7);let E=Number(l&BigInt(4294967295));i[c+7]=E,E=E>>8,i[c+6]=E,E=E>>8,i[c+5]=E,E=E>>8,i[c+4]=E;let R=Number(l>>BigInt(32)&BigInt(4294967295));return i[c+3]=R,R=R>>8,i[c+2]=R,R=R>>8,i[c+1]=R,R=R>>8,i[c]=R,c+8}u.prototype.writeBigUInt64LE=z(function(i,l=0){return Oe(this,i,l,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=z(function(i,l=0){return Ee(this,i,l,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(i,l,c,g){if(i=+i,l=l>>>0,!g){const oe=Math.pow(2,8*c-1);re(this,i,l,c,oe-1,-oe)}let _=0,E=1,R=0;for(this[l]=i&255;++_<c&&(E*=256);)i<0&&R===0&&this[l+_-1]!==0&&(R=1),this[l+_]=(i/E>>0)-R&255;return l+c},u.prototype.writeIntBE=function(i,l,c,g){if(i=+i,l=l>>>0,!g){const oe=Math.pow(2,8*c-1);re(this,i,l,c,oe-1,-oe)}let _=c-1,E=1,R=0;for(this[l+_]=i&255;--_>=0&&(E*=256);)i<0&&R===0&&this[l+_+1]!==0&&(R=1),this[l+_]=(i/E>>0)-R&255;return l+c},u.prototype.writeInt8=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,1,127,-128),i<0&&(i=255+i+1),this[l]=i&255,l+1},u.prototype.writeInt16LE=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,2,32767,-32768),this[l]=i&255,this[l+1]=i>>>8,l+2},u.prototype.writeInt16BE=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,2,32767,-32768),this[l]=i>>>8,this[l+1]=i&255,l+2},u.prototype.writeInt32LE=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,4,2147483647,-2147483648),this[l]=i&255,this[l+1]=i>>>8,this[l+2]=i>>>16,this[l+3]=i>>>24,l+4},u.prototype.writeInt32BE=function(i,l,c){return i=+i,l=l>>>0,c||re(this,i,l,4,2147483647,-2147483648),i<0&&(i=4294967295+i+1),this[l]=i>>>24,this[l+1]=i>>>16,this[l+2]=i>>>8,this[l+3]=i&255,l+4},u.prototype.writeBigInt64LE=z(function(i,l=0){return Oe(this,i,l,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=z(function(i,l=0){return Ee(this,i,l,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Pe(i,l,c,g,_,E){if(c+g>i.length)throw new RangeError("Index out of range");if(c<0)throw new RangeError("Index out of range")}function Ae(i,l,c,g,_){return l=+l,c=c>>>0,_||Pe(i,l,c,4),n.write(i,l,c,g,23,4),c+4}u.prototype.writeFloatLE=function(i,l,c){return Ae(this,i,l,!0,c)},u.prototype.writeFloatBE=function(i,l,c){return Ae(this,i,l,!1,c)};function le(i,l,c,g,_){return l=+l,c=c>>>0,_||Pe(i,l,c,8),n.write(i,l,c,g,52,8),c+8}u.prototype.writeDoubleLE=function(i,l,c){return le(this,i,l,!0,c)},u.prototype.writeDoubleBE=function(i,l,c){return le(this,i,l,!1,c)},u.prototype.copy=function(i,l,c,g){if(!u.isBuffer(i))throw new TypeError("argument should be a Buffer");if(c||(c=0),!g&&g!==0&&(g=this.length),l>=i.length&&(l=i.length),l||(l=0),g>0&&g<c&&(g=c),g===c||i.length===0||this.length===0)return 0;if(l<0)throw new RangeError("targetStart out of bounds");if(c<0||c>=this.length)throw new RangeError("Index out of range");if(g<0)throw new RangeError("sourceEnd out of bounds");g>this.length&&(g=this.length),i.length-l<g-c&&(g=i.length-l+c);const _=g-c;return this===i&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(l,c,g):Uint8Array.prototype.set.call(i,this.subarray(c,g),l),_},u.prototype.fill=function(i,l,c,g){if(typeof i=="string"){if(typeof l=="string"?(g=l,l=0,c=this.length):typeof c=="string"&&(g=c,c=this.length),g!==void 0&&typeof g!="string")throw new TypeError("encoding must be a string");if(typeof g=="string"&&!u.isEncoding(g))throw new TypeError("Unknown encoding: "+g);if(i.length===1){const E=i.charCodeAt(0);(g==="utf8"&&E<128||g==="latin1")&&(i=E)}}else typeof i=="number"?i=i&255:typeof i=="boolean"&&(i=Number(i));if(l<0||this.length<l||this.length<c)throw new RangeError("Out of range index");if(c<=l)return this;l=l>>>0,c=c===void 0?this.length:c>>>0,i||(i=0);let _;if(typeof i=="number")for(_=l;_<c;++_)this[_]=i;else{const E=u.isBuffer(i)?i:u.from(i,g),R=E.length;if(R===0)throw new TypeError('The value "'+i+'" is invalid for argument "value"');for(_=0;_<c-l;++_)this[_+l]=E[_%R]}return this};const Q={};function P(i,l,c){Q[i]=class extends c{constructor(){super(),Object.defineProperty(this,"message",{value:l.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${i}]`,this.stack,delete this.name}get code(){return i}set code(g){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:g,writable:!0})}toString(){return`${this.name} [${i}]: ${this.message}`}}}P("ERR_BUFFER_OUT_OF_BOUNDS",function(i){return i?`${i} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),P("ERR_INVALID_ARG_TYPE",function(i,l){return`The "${i}" argument must be of type number. Received type ${typeof l}`},TypeError),P("ERR_OUT_OF_RANGE",function(i,l,c){let g=`The value of "${i}" is out of range.`,_=c;return Number.isInteger(c)&&Math.abs(c)>2**32?_=F(String(c)):typeof c=="bigint"&&(_=String(c),(c>BigInt(2)**BigInt(32)||c<-(BigInt(2)**BigInt(32)))&&(_=F(_)),_+="n"),g+=` It must be ${l}. Received ${_}`,g},RangeError);function F(i){let l="",c=i.length;const g=i[0]==="-"?1:0;for(;c>=g+4;c-=3)l=`_${i.slice(c-3,c)}${l}`;return`${i.slice(0,c)}${l}`}function B(i,l,c){L(l,"offset"),(i[l]===void 0||i[l+c]===void 0)&&D(l,i.length-(c+1))}function K(i,l,c,g,_,E){if(i>c||i<l){const R=typeof l=="bigint"?"n":"";let oe;throw l===0||l===BigInt(0)?oe=`>= 0${R} and < 2${R} ** ${(E+1)*8}${R}`:oe=`>= -(2${R} ** ${(E+1)*8-1}${R}) and < 2 ** ${(E+1)*8-1}${R}`,new Q.ERR_OUT_OF_RANGE("value",oe,i)}B(g,_,E)}function L(i,l){if(typeof i!="number")throw new Q.ERR_INVALID_ARG_TYPE(l,"number",i)}function D(i,l,c){throw Math.floor(i)!==i?(L(i,c),new Q.ERR_OUT_OF_RANGE("offset","an integer",i)):l<0?new Q.ERR_BUFFER_OUT_OF_BOUNDS:new Q.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${l}`,i)}const se=/[^+/0-9A-Za-z-_]/g;function ve(i){if(i=i.split("=")[0],i=i.trim().replace(se,""),i.length<2)return"";for(;i.length%4!==0;)i=i+"=";return i}function de(i,l){l=l||1/0;let c;const g=i.length;let _=null;const E=[];for(let R=0;R<g;++R){if(c=i.charCodeAt(R),c>55295&&c<57344){if(!_){if(c>56319){(l-=3)>-1&&E.push(239,191,189);continue}else if(R+1===g){(l-=3)>-1&&E.push(239,191,189);continue}_=c;continue}if(c<56320){(l-=3)>-1&&E.push(239,191,189),_=c;continue}c=(_-55296<<10|c-56320)+65536}else _&&(l-=3)>-1&&E.push(239,191,189);if(_=null,c<128){if((l-=1)<0)break;E.push(c)}else if(c<2048){if((l-=2)<0)break;E.push(c>>6|192,c&63|128)}else if(c<65536){if((l-=3)<0)break;E.push(c>>12|224,c>>6&63|128,c&63|128)}else if(c<1114112){if((l-=4)<0)break;E.push(c>>18|240,c>>12&63|128,c>>6&63|128,c&63|128)}else throw new Error("Invalid code point")}return E}function _e(i){const l=[];for(let c=0;c<i.length;++c)l.push(i.charCodeAt(c)&255);return l}function Se(i,l){let c,g,_;const E=[];for(let R=0;R<i.length&&!((l-=2)<0);++R)c=i.charCodeAt(R),g=c>>8,_=c%256,E.push(_),E.push(g);return E}function pe(i){return t.toByteArray(ve(i))}function ge(i,l,c,g){let _;for(_=0;_<g&&!(_+c>=l.length||_>=i.length);++_)l[_+c]=i[_];return _}function fe(i,l){return i instanceof l||i!=null&&i.constructor!=null&&i.constructor.name!=null&&i.constructor.name===l.name}function Ce(i){return i!==i}const H=(function(){const i="0123456789abcdef",l=new Array(256);for(let c=0;c<16;++c){const g=c*16;for(let _=0;_<16;++_)l[g+_]=i[c]+i[_]}return l})();function z(i){return typeof BigInt>"u"?ee:i}function ee(){throw new Error("BigInt not supported")}})(F5);var V5={exports:{}},Qt=V5.exports={},Fr,jr;function o1(){throw new Error("setTimeout has not been defined")}function i1(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Fr=setTimeout:Fr=o1}catch{Fr=o1}try{typeof clearTimeout=="function"?jr=clearTimeout:jr=i1}catch{jr=i1}})();function q5(e){if(Fr===setTimeout)return setTimeout(e,0);if((Fr===o1||!Fr)&&setTimeout)return Fr=setTimeout,setTimeout(e,0);try{return Fr(e,0)}catch{try{return Fr.call(null,e,0)}catch{return Fr.call(this,e,0)}}}function Nce(e){if(jr===clearTimeout)return clearTimeout(e);if((jr===i1||!jr)&&clearTimeout)return jr=clearTimeout,clearTimeout(e);try{return jr(e)}catch{try{return jr.call(null,e)}catch{return jr.call(this,e)}}}var Ao=[],Za=!1,fs,Qd=-1;function Dce(){!Za||!fs||(Za=!1,fs.length?Ao=fs.concat(Ao):Qd=-1,Ao.length&&W5())}function W5(){if(!Za){var e=q5(Dce);Za=!0;for(var t=Ao.length;t;){for(fs=Ao,Ao=[];++Qd<t;)fs&&fs[Qd].run();Qd=-1,t=Ao.length}fs=null,Za=!1,Nce(e)}}Qt.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];Ao.push(new z5(e,t)),Ao.length===1&&!Za&&q5(W5)};function z5(e,t){this.fun=e,this.array=t}z5.prototype.run=function(){this.fun.apply(null,this.array)};Qt.title="browser";Qt.browser=!0;Qt.env={};Qt.argv=[];
93Qt.version="";Qt.versions={};function Wo(){}Qt.on=Wo;Qt.addListener=Wo;Qt.once=Wo;Qt.off=Wo;Qt.removeListener=Wo;Qt.removeAllListeners=Wo;Qt.emit=Wo;Qt.prependListener=Wo;Qt.prependOnceListener=Wo;Qt.listeners=function(e){return[]};Qt.binding=function(e){throw new Error("process.binding is not supported")};Qt.cwd=function(){return"/"};Qt.chdir=function(e){throw new Error("process.chdir is not supported")};Qt.umask=function(){return 0};var Uce=V5.exports;(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=F5,n=Uce,r=a=>a&&a.__esModule?a:{default:a},o=r(n),s=globalThis||void 0||self;Object.defineProperty(e,"Buffer",{enumerable:!0,get:()=>t.Buffer}),Object.defineProperty(e,"process",{enumerable:!0,get:()=>o.default}),e.global=s})(xce);function Hce(){return"[Sports][Analytic]"}let G5=class extends Error{constructor(t,n=""){super(`${Hce()}: Code: ${t} ${n}`)}};var Z_=(e=>(e.INJECTION_ERROR="INJECTION_ERROR",e.COLLECTORS_NOT_EXIST="COLLECTORS_NOT_EXIST",e))(Z_||{});class Fce{constructor(t,n={}){if(this.collectors=t,this.params=n,t.length===0)throw new G5(Z_.COLLECTORS_NOT_EXIST)}collect(t,n={}){this.collectEvent(this.serializeParams(this.buildParams(t,n)))}collectEvent(t){this.collectors.forEach(n=>{n.collect(t)})}buildParams(t,n){return{...this.params,...n,event:t}}serializeParams(t){return{...t,property:typeof t.property=="string"?t.property:JSON.stringify(t.property)}}}function jce(){return window.dataLayer=window.dataLayer||[],window?.dataLayer}const Vce="GA";let ng=class{get name(){return Vce}constructor(){this.dataLayer=jce()}collect(t){this.dataLayer.push(this.buildData(t))}buildData(t){return{event:t.event,eventCategory:t.category,eventAction:t.action,eventLabel:t.label,eventProperty:t.property,eventValue:t.value}}};const rg="analyticsEvent",og=(e,t)=>
93{const n=Gt(e,null);if(n)return n;if(typeof window>"u")return null;if(!(t!=null&&t.getCollectors))throw new G5(Z_.INJECTION_ERROR,"оÑÑÑÑÑÑвÑÑÑ ÑбоÑÑики даннÑÑ
аналиÑики");const r=new Fce(t?.getCollectors(),{...t?.baseParams});return di(e,r),r},qce={class:"confirm-close-modal__text"},Wce={class:"confirm-close-modal__actions"},zce=xe({__name:"ConfirmCloseModal",props:Nt({text:{type:String,default:"ÐÑи закÑÑÑии окна Ð²Ð°Ñ Ð¿Ð¾ÑÑ Ð½Ðµ ÑоÑ
ÑаниÑÑÑ"},confirmLabel:{type:String,default:"ÐÑÑ Ñавно вÑйÑи"},dataTestPrefix:{type:String,default:"create-short-post-confirm-close"}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:Nt(["confirm","cancel"],["update:modelValue"]),setup(e,{emit:t}){const n=Yn(e,"modelValue"),r=t;function o(){n.value=!1,r("confirm")}function s(){n.value=!1,r("cancel")}return(a,u)=>(U(),we(N(Hu),{modelValue:n.value,"onUpdate:modelValue":u[0]||(u[0]=f=>n.value=f),class:"confirm-close-modal","show-close-icon":!1,"data-test":`${e.dataTestPrefix}-modal`},{text:be(()=>[te("p",qce,Ue(e.text),1),te("div",Wce,[ye(N(St),{variant:N(pt).TERTIARY,color:N(ut).DEFAULT,size:N(ot).SM,"data-test":`${e.dataTestPrefix}-cancel-btn`,onClick:s},{default:be(()=>u[1]||(u[1]=[mt(" ÐÑмениÑÑ ")])),_:1},8,["variant","color","size","data-test"]),ye(N(St),{variant:N(pt).PRIMARY,color:N(ut).DANGER,size:N(ot).SM,"data-test":`${e.dataTestPrefix}-confirm-btn`,onClick:o},{default:be(()=>[mt(Ue(e.confirmLabel),1)]),_:1},8,["variant","color","size","data-test"])])]),_:1},8,["modelValue","data-test"]))}}),Zp="ÐÑибка пÑи пÑбликаÑии поÑÑа",Gce=96,Yce=56,Kce={class:"create-short-post-error-content"},Zce={class:"create-short-post-error-content__text"},Qce=xe({__name:"CreateShortPostErrorContent",props:{errorMessage:{type:String,default:Zp}},setup(e){return(t,n)=>(U(),X("div",Kce,[ye(N(gC),{class:"create-short-post-error-content__icon"}),te("span",Zce,Ue(e.errorMessage),1)]))}}),Ui=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},Jce=Ui(Qce,[["__scopeId","data-v-71a3bcea"]]),Xce="https://dumpster.cdn.sports.ru/f/a2/663e15bcbf6d0ce73672ed705dc60.png",efe="https://dumpster.cdn.sports.ru/a/85/9a07dd23b60511f6da7b60f529363.png",Y5=e=>e==="cyber"?efe:Xce,tfe={class:"create-short-post-success-content"},nfe={class:"create-short-post-success-content__image-wrap"},rfe=["src"],ofe={class:"create-short-post-success-content__content"},ife={class:"create-short-post-success-content__text ui-body-md-regular"},sfe=["href"],afe=xe({__name:"CreateShortPostSuccessContent",props:{authorId:{},siteName:{}},setup(e){const t=e,n=J(()=>Y5(t.siteName)),r=J(()=>`/profile/${t.authorId}/`);return(o,s)=>(U(),X("div",tfe,[te("div",nfe,[te("img",{src:n.value,alt:"",role:"presentation","aria-hidden":"true",class:"create-short-post-success-content__image"},null,8,rfe)]),te("div",ofe,[s[2]||(s[2]=te("div",{class:"create-short-post-success-content__title ui-heading-xs"}," ÐоÑÑ ÑÑпеÑно опÑбликован! ",-1)),te("div",ife,[s[0]||(s[0]=mt(" ÐÑ Ð½Ð°Ð¹Ð´ÑÑе его в ÑвоÑм ")),te("a",{href:r.value,class:"create-short-post-success-content__profile-link",target:"_blank",rel:"noopener noreferrer"},"пÑоÑиле",8,sfe),s[1]||(s[1]=mt(", оÑÑалÑнÑе полÑзоваÑели ÑвидÑÑ Ð² ленÑе ÑекомендаÑий "))])])]))}}),ufe=Ui(afe,[["__scopeId","data-v-78edcb2f"]]),lfe={class:"dropdown-item"},cfe={class:"dropdown-item__name ui-body-sm-regular"},ffe=xe({__name:"DropdownItem",props:{name:{},avatarUrl:{default:void 0},size:{default:"5xs"}},setup(e){return(t,n)=>(U(),X("div",lfe,[ye(N(pu),{src:t.avatarUrl,size:t.size},null,8,["src","size"]),te("span",cfe,Ue(t.name),1)]))}}),B$=Ui(ffe,[["__scopeId","data-v-90ae37c0"]]),dfe=8,pfe=xe({__name:"AuthorDropdown",props:Nt({id:{},items:{},activeKey:{},selectedName:{},selectedAvatarUrl:{default:void 0},disabled:{type:Boolean,default:!1},avatarSize:{default:"5xs"},placement:{default:"bottom-start"},teleport:{type:Boolean,default:!0}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:Nt(["select","create-blog"],["update:modelValue"]),setup(e,{emit:t}){const n=e,r=J(()=>n.items.filter(f=>!f.isCreateBlog).length===1),o=t,s=Yn(e,"modelValue");function a(f){f.isCreateBlog||o("select",f)}function u(){const f=document.querySelector(`[popovertarget="${n.id}"]`),d=document.querySelector(`[data-author-dropdown="${n.id}"].ui-dropdown--drawer`);if(!(f instanceof HTMLElement)||!(d instanceof HTMLElement))return;const p=d.closest(".bottom-drawer");if(!(p instanceof HTMLElement))return;const h=f.getBoundingClientRect();p.style.setProperty("--author-dropdown-top",`${Math.round(h.bottom+dfe)}px`),p.style.setProperty("--author-dropdown-left",`${Math.round(h.left)}px`)}return ke(s,async f=>{f&&(await gt(),u())}),(f,d)=>(U(),X("div",{class:Be(["author-dropdown",{"author-dropdown--single-item":r.value}])},[ye(N(v_),{id:f.id,modelValue:s.value,"onUpdate:modelValue":d[2]||(d[2]=p=>s.value=p),class:Be(["author-dropdown__menu",{"author-dropdown__menu--single-item":r.value}]),placement:f.placement,teleport:f.teleport,"data-author-dropdown":f.id,items:f.items,"active-key":f.activeKey,onClick:a},{"item-content":be(({item:p})=>[p.isCreateBlog?(U(),we(N(St),{key:0,as:N(_f).A,variant:N(pt).SECONDARY,color:N(ut).DEFAULT,size:N(ot).SM,href:"/tribuna/blogs/add#newPost",class:"author-dropdown__create-blog","data-test":"author-dropdown-create-blog",onClick:d[1]||(d[1]=h=>o("create-blog"))},{iconRight:be(()=>[ye(N(Js),{width:"16px",height:"16px"})]),default:be(()=>[d[3]||(d[3]=mt(" СоздаÑÑ Ð±Ð»Ð¾Ð³ "))]),_:1},8,["as","variant","color","size"])):(U(),we(B$,{key:1,name:p.title,"avatar-url":p.avatarUrl},null,8,["name","avatar-url"]))]),default:be(()=>[ye(N(St),{variant:N(pt).TERTIARY,color:N(ut).DEFAULT,size:N(ot).SM,class:Be(["author-dropdown__trigger",{"author-dropdown__trigger--open":s.value}]),popovertarget:f.id,disabled:f.disabled,"data-test":"author-dropdown-trigger",onClick:d[0]||(d[0]=ft(p=>s.value=!s.value,["stop"]))},{default:be(()=>
93[ye(B$,{name:f.selectedName,"avatar-url":f.selectedAvatarUrl,size:f.avatarSize},null,8,["name","avatar-url","size"]),f.items.length||f.disabled?(U(),we(N(e_),{key:0,width:"16px",height:"16px",class:Be(["author-dropdown__chevron",{"author-dropdown__chevron--open":s.value}])},null,8,["class"])):Ie("",!0)]),_:1},8,["variant","color","size","class","popovertarget","disabled"])]),_:1},8,["id","modelValue","class","placement","teleport","data-author-dropdown","items","active-key"])],2))}}),N$=Ui(pfe,[["__scopeId","data-v-e156de75"]]),hfe={class:"post-footer-actions"},gfe={class:"post-footer-actions__right"},mfe=xe({__name:"PostFooterActions",props:{canPublish:{type:Boolean,required:!0},photoLimitReached:{type:Boolean,default:!1},charCount:{type:Number,default:void 0},maxChars:{type:Number,default:4096},publishLabel:{type:String,default:"ÐÑпÑавиÑÑ"},publishVariant:{type:String,default:pt.PRIMARY},publishColor:{type:String,default:ut.SUCCESS},publishedState:{type:Boolean,default:!1}},emits:["publish","photoAdd","photoClick"],setup(e,{emit:t}){const n=t,r=ie(null);function o(){var a;n("photoClick"),(a=r.value)==null||a.click()}function s(a){const u=a.target,f=Array.from(u.files??[]).filter(d=>d.type.startsWith("image/"));u.value="",f.length&&n("photoAdd",f)}return(a,u)=>(U(),X("div",hfe,[ye(N(St),{variant:N(pt).TERTIARY,color:N(ut).DEFAULT,size:N(ot).SM,class:"post-footer-actions__photo-btn",disabled:e.photoLimitReached,"data-test":"create-short-post-modal-photo-btn",onClick:o},{iconLeft:be(()=>[ye(N(fC),{width:"16px",height:"16px"})]),default:be(()=>[u[1]||(u[1]=mt(" ФоÑо "))]),_:1},8,["variant","color","size","disabled"]),te("input",{ref_key:"fileInputRef",ref:r,type:"file",multiple:"",accept:"image/jpeg,image/png,image/webp,image/avif,image/heic",class:"post-footer-actions__file-input","data-test":"create-short-post-modal-file-input",onChange:s},null,544),te("div",gfe,[e.charCount!==void 0?(U(),X("span",{key:0,class:Be(["post-footer-actions__counter",{"post-footer-actions__counter--limit":e.charCount>=e.maxChars}])},Ue(e.charCount)+"/"+Ue(e.maxChars),3)):Ie("",!0),ye(N(St),{variant:e.publishVariant,color:e.publishColor,size:N(ot).SM,disabled:!e.canPublish,class:Be(["post-footer-actions__publish-btn",{"post-footer-actions__publish-btn--published":e.publishedState}]),"data-test":"create-short-post-modal-publish-btn",onClick:u[0]||(u[0]=f=>n("publish"))},gr({default:be(()=>[De(a.$slots,"default",{},()=>[mt(Ue(e.publishLabel),1)],!0)]),_:2},[a.$slots["icon-left"]?{name:"iconLeft",fn:be(()=>[De(a.$slots,"icon-left",{},void 0,!0)]),key:"0"}:void 0,a.$slots["icon-right"]?{name:"iconRight",fn:be(()=>[De(a.$slots,"icon-right",{},void 0,!0)]),key:"1"}:void 0]),1032,["variant","color","size","disabled","class"])])]))}}),D$=Ui(mfe,[["__scopeId","data-v-22e1a997"]]);function yfe(e){return Object.prototype.toString.call(e)==="[object Object]"}function U$(e){return yfe(e)||Array.isArray(e)}function vfe(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Q_(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const o=JSON.stringify(Object.keys(e.breakpoints||{})),s=JSON.stringify(Object.keys(t.breakpoints||{}));return o!==s?!1:n.every(a=>{const u=e[a],f=t[a];return typeof u=="function"?`${u}`==`${f}`:!U$(u)||!U$(f)?u===f:Q_(u,f)})}function H$(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function _fe(e,t){if(e.length!==t.length)return!1;const n=H$(e),r=H$(t);return n.every((o,s)=>{const a=r[s];return Q_(o,a)})}function J_(e){return typeof e=="number"}function s1(e){return typeof e=="string"}function ig(e){return typeof e=="boolean"}function F$(e){return Object.prototype.toString.call(e)==="[object Object]"}function Lt(e){return Math.abs(e)}function X_(e){return Math.sign(e)}function Hl(e,t){return Lt(e-t)}function bfe(e,t){if(e===0||t===0||Lt(e)<=Lt(t))return 0;const n=Hl(Lt(e),Lt(t));return Lt(n/e)}function wfe(e){return Math.round(e*100)/100}function Sc(e){return $c(e).map(Number)}function $r(e){return e[xf(e)]}function xf(e){return Math.max(0,e.length-1)}function eb(e,t){return t===xf(e)}function j$(e,t=0){return Array.from(Array(e),(n,r)=>t+r)}function $c(e){return Object.keys(e)}function K5(e,t){return[e,t].reduce((n,r)=>($c(r).forEach(o=>{const s=n[o],a=r[o],u=F$(s)&&F$(a);n[o]=u?K5(s,a):a}),n),{})}function a1(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function Efe(e,t){const n={start:r,center:o,end:s};function r(){return 0}function o(u){return s(u)/2}function s(u){return t-u}function a(u,f){return s1(e)?n[e](u):e(t,u,f)}return{measure:a}}function Tc(){let e=[];function t(o,s,a,u={passive:!0}){let f;if("addEventListener"in o)o.addEventListener(s,a,u),f=()=>o.removeEventListener(s,a,u);else{const d=o;d.addListener(a),f=()=>d.removeListener(a)}return e.push(f),r}function n(){e=e.filter(o=>o())}const r={add:t,clear:n};return r}function Sfe(e,t,n,r){const o=Tc(),s=1e3/60;let a=null,u=0,f=0;function d(){o.add(e,"visibilitychange",()=>{e.hidden&&v()})}function p(){m(),o.clear()}function h(b){if(!f)return;a||(a=b,n(),n());const S=b-a;for(a=b,u+=S;u>=s;)n(),u-=s;const w=u/s;r(w),f&&(f=t.requestAnimationFrame(h))}function y(){f||(f=t.requestAnimationFrame(h))}function m(){t.cancelAnimationFrame(f),a=null,u=0,f=0}function v(){a=null,u=0}return{init:d,destroy:p,start:y,stop:m,update:n,render:r}}function $fe(e,t){const n=t==="rtl",r=e==="y",o=r?"y":"x",s=r?"x":"y",a=!r&&n?-1:1,u=p(),f=h();function d(m){const{height:v,width:b}=m;return r?v:b}function p(){return r?"top":n?"right":"left"}function h(){return r?"bottom":n?"left":"right"}function y(m){return m*a}return{scroll:o,cross:s,startEdge:u,endEdge:f,measureSize:d,direction:y}}function qs(e=0,t=0){const n=Lt(e-t);function r(f){return f<e}function o(f){return f>t}function s(f){return r(f)||o(f)}function a(f){return s(f)?r(f)?e:t:f}function u(f){return n?f-n*Math.ceil((f-t)/n):f}return{length:n,max:t,min:e,constrain:a,reachedAny:s,reachedMax:o,reachedMin:r,removeOffset:u}}function Z5(e,t,n){const{constrain:r}=qs(0,e),o=e+1;let s=a(t);function a(y){return n?Lt((o+y)%o):r(y)}function u(){return s}function f(y){return s=a(y),h}function d(y){return p().set(u()+y)}function p(){return Z5(e,u(),n)}const h={get:u,set:f,add:d,clone:p};return h}function Tfe(e,t,n,r,o,s,a,u,f,d,p,h,y,m,v,b,S,w,T){const{cross:I,direction:C}=e,A=["INPUT","SELECT","TEXTAREA"],$={passive:!1},k=Tc(),x=Tc(),O=qs(50,225).constrain(m.measure(20)),M={mouse:300,touch:400},j={mouse:500,touch:600},V=v?43:25;let W=!1,Y=0,ne=0,Z=!1,ae=!1,ce=!1,q=!1;function ue(B){if(!T)return;function K(D){(ig(T)||T(B,D))&&Ae(D)}const L=t;k.add(L,"dragstart",D=>D.preventDefault(),$).add(L,"touchmove",()=>{},$).add(L,"touchend",()=>{}).add(L,"touchstart",K).add(L,"mousedown",K).add(L,"touchcancel",Q).add(L,"contextmenu",Q).add(L,"click",P,!0)}function G(){k.clear(),x.clear()}function re(){const B=q?n:t;x.add(B,"touchmove",le,$).add(B,"touchend",Q).add(B,"mousemove",le,$).add(B,"mouseup",Q)}function Oe(B){const K=B.nodeName||"";return A.includes(K)}function Ee(){return(v?j:M)[q?"mouse":"touch"]}function Pe(B,K){const L=h.add(X_(B)*-1),D=p.byDistance(B,!v).distance;return v||Lt(B)<O?D:S&&K?D*.5:p.byIndex(L.get(),0).distance}function Ae(B){const K=a1(B,r);q=K,ce=v&&K&&!B.buttons&&W,W=Hl(o.get(),a.get())>=2,!(K&&B.button!==0)&&(Oe(B.target)||(Z=!0,s.pointerDown(B),d.useFriction(0).useDuration(0),o.set(a),re
vendor: 12,711 bytes, line 93
93(),Y=s.readPoint(B),ne=s.readPoint(B,I),y.emit("pointerDown")))}function le(B){if(!a1(B,r)&&B.touches.length>=2)return Q(B);const K=s.readPoint(B),L=s.readPoint(B,I),D=Hl(K,Y),se=Hl(L,ne);if(!ae&&!q&&(!B.cancelable||(ae=D>se,!ae)))return Q(B);const ve=s.pointerMove(B);D>b&&(ce=!0),d.useFriction(.3).useDuration(.75),u.start(),o.add(C(ve)),B.preventDefault()}function Q(B){const K=p.byDistance(0,!1).index!==h.get(),L=s.pointerUp(B)*Ee(),D=Pe(C(L),K),se=bfe(L,D),ve=V-10*se,de=w+se/50;ae=!1,Z=!1,x.clear(),d.useDuration(ve).useFriction(de),f.distance(D,!v),q=!1,y.emit("pointerUp")}function P(B){ce&&(B.stopPropagation(),B.preventDefault(),ce=!1)}function F(){return Z}return{init:ue,destroy:G,pointerDown:F}}function Ife(e,t){let n,r;function o(d){return d.timeStamp}function s(d,p){const h=`client${(p||e.scroll)==="x"?"X":"Y"}`;return(a1(d,t)?d:d.touches[0])[h]}function a(d){return n=d,r=d,s(d)}function u(d){const p=s(d)-s(r),h=o(d)-o(n)>170;return r=d,h&&(n=d),p}function f(d){if(!n||!r)return 0;const p=s(r)-s(n),h=o(d)-o(n),y=o(d)-o(r)>170,m=p/h;return h&&!y&&Lt(m)>.1?m:0}return{pointerDown:a,pointerMove:u,pointerUp:f,readPoint:s}}function Afe(){function e(t){const{offsetTop:n,offsetLeft:r,offsetWidth:o,offsetHeight:s}=t;return{top:n,right:r+o,bottom:n+s,left:r,width:o,height:s}}return{measure:e}}function xfe(e){function t(n){return e*(n/100)}return{measure:t}}function Cfe(e,t,n,r,o,s,a){const u=[e].concat(r);let f,d,p=[],h=!1;function y(b){return o.measureSize(a.measure(b))}function m(b){if(!s)return;d=y(e),p=r.map(y);function S(w){for(const T of w){if(h)return;const I=T.target===e,C=r.indexOf(T.target),A=I?d:p[C],$=y(I?e:r[C]);if(Lt($-A)>=.5){b.reInit(),t.emit("resize");break}}}f=new ResizeObserver(w=>{(ig(s)||s(b,w))&&S(w)}),n.requestAnimationFrame(()=>{u.forEach(w=>f.observe(w))})}function v(){h=!0,f&&f.disconnect()}return{init:m,destroy:v}}function Rfe(e,t,n,r,o,s){let a=0,u=0,f=o,d=s,p=e.get(),h=0;function y(){const $=r.get()-e.get(),k=!f;let x=0;return k?(a=0,n.set(r),e.set(r),x=$):(n.set(e),a+=$/f,a*=d,p+=a,e.add(a),x=p-h),u=X_(x),h=p,A}function m(){const $=r.get()-t.get();return Lt($)<.001}function v(){return f}function b(){return u}function S(){return a}function w(){return I(o)}function T(){return C(s)}function I($){return f=$,A}function C($){return d=$,A}const A={direction:b,duration:v,velocity:S,seek:y,settled:m,useBaseFriction:T,useBaseDuration:w,useFriction:C,useDuration:I};return A}function Ofe(e,t,n,r,o){const s=o.measure(10),a=o.measure(50),u=qs(.1,.99);let f=!1;function d(){return!(f||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function p(y){if(!d())return;const m=e.reachedMin(t.get())?"min":"max",v=Lt(e[m]-t.get()),b=n.get()-t.get(),S=u.constrain(v/a);n.subtract(b*S),!y&&Lt(b)<s&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())}function h(y){f=!y}return{shouldConstrain:d,constrain:p,toggleActive:h}}function kfe(e,t,n,r,o){const s=qs(-t+e,0),a=h(),u=p(),f=y();function d(m,v){return Hl(m,v)<=1}function p(){const m=a[0],v=$r(a),b=a.lastIndexOf(m),S=a.indexOf(v)+1;return qs(b,S)}function h(){return n.map((m,v)=>{const{min:b,max:S}=s,w=s.constrain(m),T=!v,I=eb(n,v);return T?S:I||d(b,w)?b:d(S,w)?S:w}).map(m=>parseFloat(m.toFixed(3)))}function y(){if(t<=e+o)return[s.max];if(r==="keepSnaps")return a;const{min:m,max:v}=u;return a.slice(m,v)}return{snapsContained:f,scrollContainLimit:u}}function Lfe(e,t,n){const r=t[0],o=n?r-e:$r(t);return{limit:qs(o,r)}}function Mfe(e,t,n,r){const o=t.min+.1,s=t.max+.1,{reachedMin:a,reachedMax:u}=qs(o,s);function f(p){return p===1?u(n.get()):p===-1?a(n.get()):!1}function d(p){if(!f(p))return;const h=e*(p*-1);r.forEach(y=>y.add(h))}return{loop:d}}function Pfe(e){const{max:t,length:n}=e;function r(o){const s=o-t;return n?s/-n:0}return{get:r}}function Bfe(e,t,n,r,o){const{startEdge:s,endEdge:a}=e,{groupSlides:u}=o,f=h().map(t.measure),d=y(),p=m();function h(){return u(r).map(v=>$r(v)[a]-v[0][s]).map(Lt)}function y(){return r.map(v=>n[s]-v[s]).map(v=>-Lt(v))}function m(){return u(d).map(v=>v[0]).map((v,b)=>v+f[b])}return{snaps:d,snapsAligned:p}}function Nfe(e,t,n,r,o,s){const{groupSlides:a}=o,{min:u,max:f}=r,d=p();function p(){const h=a(s),y=!e||t==="keepSnaps";return n.length===1?[s]:y?h:h.slice(u,f).map((m,v,b)=>{const S=!v,w=eb(b,v);if(S){const T=$r(b[0])+1;return j$(T)}if(w){const T=xf(s)-$r(b)[0]+1;return j$(T,$r(b)[0])}return m})}return{slideRegistry:d}}function Dfe(e,t,n,r,o){const{reachedAny:s,removeOffset:a,constrain:u}=r;function f(m){return m.concat().sort((v,b)=>Lt(v)-Lt(b))[0]}function d(m){const v=e?a(m):u(m),b=t.map((w,T)=>({diff:p(w-v,0),index:T})).sort((w,T)=>Lt(w.diff)-Lt(T.diff)),{index:S}=b[0];return{index:S,distance:v}}function p(m,v){const b=[m,m+n,m-n];if(!e)return m;if(!v)return f(b);const S=b.filter(w=>X_(w)===v);return S.length?f(S):$r(b)-n}function h(m,v){const b=t[m]-o.get(),S=p(b,v);return{index:m,distance:S}}function y(m,v){const b=o.get()+m,{index:S,distance:w}=d(b),T=!e&&s(b);if(!v||T)return{index:S,distance:m};const I=t[S]-w,C=m+p(I,0);return{index:S,distance:C}}return{byDistance:y,byIndex:h,shortcut:p}}function Ufe(e,t,n,r,o,s,a){function u(p){const h=p.distance,y=p.index!==t.get();s.add(h),h&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),y&&(n.set(t.get()),t.set(p.index),a.emit("select"))}function f(p,h){const y=o.byDistance(p,h);u(y)}function d(p,h){const y=t.clone().set(p),m=o.byIndex(y.get(),h);u(m)}return{distance:f,index:d}}function Hfe(e,t,n,r,o,s,a,u){const f={passive:!0,capture:!0};let d=0;function p(y){if(!u)return;function m(v){if(new Date().getTime()-d>10)return;a.emit("slideFocusStart"),e.scrollLeft=0;const b=n.findIndex(S=>S.includes(v));J_(b)&&(o.useDuration(0),r.index(b,0),a.emit("slideFocus"))}s.add(document,"keydown",h,!1),t.forEach((v,b)=>{s.add(v,"focus",S=>{(ig(u)||u(y,S))&&m(b)},f)})}function h(y){y.code==="Tab"&&(d=new Date().getTime())}return{init:p}}function wl(e){let t=e;function n(){return t}function r(u){t=a(u)}function o(u){t+=a(u)}function s(u){t-=a(u)}function a(u){return J_(u)?u:u.get()}return{get:n,set:r,add:o,subtract:s}}function Q5(e,t){const n=e.scroll==="x"?a:u,r=t.style;let o=null,s=!1;function a(h){return`translate3d(${h}px,0px,0px)`}function u(h){return`translate3d(0px,${h}px,0px)`}function f(h){if(s)return;const y=wfe(e.direction(h));y!==o&&(r.transform=n(y),o=y)}function d(h){s=!h}function p(){s||(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:p,to:f,toggleActive:d}}function Ffe(e,t,n,r,o,s,a,u,f){const d=Sc(o),p=Sc(o).reverse(),h=S().concat(w());function y(A,$){return A.reduce((k,x)=>k-o[x],$)}function m(A,$){return A.reduce((k,x)=>y(k,$)>0?k.concat([x]):k,[])}function v(A){return s.map(($,k)=>({start:$-r[k]+.5+A,end:$+t-.5+A}))}function b(A,$,k){const x=v($);return A.map(O=>{const M=k?0:-n,j=k?n:0,V=k?"end":"start",W=x[O][V];return{index:O,loopPoint:W,slideLocation:wl(-1),translate:Q5(e,f[O]),target:()=>u.get()>W?M:j}})}function S(){const A=a[0],$=m(p,A);return b($,n,!1)}function w(){const A=t-a[0]-1,$=m(d,A);return b($,-n,!0)}function T(){return h.every(({index:A})=>{const $=d.filter(k=>k!==A);return y($,t)<=.1})}function I(){h.forEach(A=>{const{target:$,translate:k,slideLocation:x}=A,O=$();O!==x.get()&&(k.to(O),x.set(O))})}function C(){h.forEach(A=>A.translate.clear())}return{canLoop:T,clear:C,loop:I,loopPoints:h}}function jfe(e,t,n){let r,o=!1;function s(u){if(!n)return;function f(d){for(const p of d)if(p.type==="childList"){u.reInit(),t.emit("slidesChanged");break}}r=new MutationObserver(d=>{o||(ig(n)||n(u,d))&&f(d)}),r.observe(e,{childList:!0})}function a(){r&&r.disconnect(),o=!0}return{init:s,destroy:a}}function Vfe(e,t,n,r){const o={};let s=null,a=null,u,f=!1;function d(){u=new IntersectionObserver(m=>{f||(m.forEach(v=>{const b=t.indexOf(v.target);o[b]=v}),s=null,a=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(m=>u.observe(m))}function p(){u&&u.disconnect(),f=!0}function h(m){return $c(o).reduce((v,b)=>{const S=parseInt(b),{isIntersecting:w}=o[S];return(m&&w||!m&&!w)&&v.push(S),v},[])}function y(m=!0){if(m&&s)return s;if(!m&&a)return a;const v=h(m);return m&&(s=v),m||(a=v),v}return{init:d,destroy:p,get:y}}function qfe(e,t,n,r,o,s){const{measureSize:a,startEdge:u,endEdge:f}=e,d=n[0]&&o,p=v(),h=b(),y=n.map(a),m=S();function v(){if(!d)return 0;const w=n[0];return Lt(t[u]-w[u])}function b(){if(!d)return 0;const w=s.getComputedStyle($r(r));return parseFloat(w.getPropertyValue(`margin-${f}`))}function S(){return n.map((w,T,I)=>{const C=!T,A=eb(I,T);return C?y[T]+p:A?y[T]+h:I[T+1][u]-w[u]}).map(Lt)}return{slideSizes:y,slideSizesWithGaps:m,startGap:p,endGap:h}}function Wfe(e,t,n,r,o,s,a,u,f){const{startEdge:d,endEdge:p,direction:h}=e,y=J_(n);function m(S,w){return Sc(S).filter(T=>T%w===0).map(T=>S.slice(T,T+w))}function v(S){return S.length?Sc(S).reduce((w,T,I)=>{const C=$r(w)||0,A=C===0,$=T===xf(S),k=o[d]-s[C][d],x=o[d]-s[T][p],O=!r&&A?h(a):0,M=!r&&$?h(u):0,j=Lt(x-M-(k+O));return I&&j>t+f&&w.push(T),$&&w.push(S.length),w},[]).map((w,T,I)=>{const C=Math.max(I[T-1]||0);return S.slice(C,w)}):[]}function b(S){return y?m(S,n):v(S)}return{groupSlides:b}}function zfe(e,t,n,r,o,s,a){const{align:u,axis:f,direction:d,startIndex:p,loop:h,duration:y,dragFree:m,dragThreshold:v,inViewThreshold:b,slidesToScroll:S,skipSnaps:w,containScroll:T,watchResize:I,watchSlides:C,watchDrag:A,watchFocus:$}=s,k=2,x=Afe(),O=x.measure(t),M=n.map(x.measure),j=$fe(f,d),V=j.measureSize(O),W=xfe(V),Y=Efe(u,V),ne=!h&&!!T,Z=h||!!T,{slideSizes:ae,slideSizesWithGaps:ce,startGap:q,endGap:ue}=qfe(j,O,M,n,Z,o),G=Wfe(j,V,S,h,O,M,q,ue,k),{snaps:re,snapsAligned:Oe}=Bfe(j,Y,O,M,G),Ee=-$r(re)+$r(ce),{snapsContained:Pe,scrollContainLimit:Ae}=kfe(V,Ee,Oe,T,k),le=ne?Pe:Oe,{limit:Q}=Lfe(Ee,le,h),P=Z5(xf(le),p,h),F=P.clone(),B=Sc(n),K=({dragHandler:g,scrollBody:_,scrollBounds:E,options:{loop:R}})=>{R||E.constrain(g.pointerDown()),_.seek()},L=({scrollBody:g,translate:_,location:E,offsetLocation:R,previousLocation:oe,scrollLooper:$e,slideLooper:me,dragHandler:he,animation:Te,eventHandler:yn,scrollBounds:Fn,options:{loop:Me}},Le)=>{const Ze=g.settled(),kr=!Fn.shouldConstrain(),yr=Me?Ze:Ze&&kr,vr=yr&&!he.pointerDown();vr&&Te.stop();const Fi=E.get()*Le+oe.get()*(1-Le);R.set(Fi),Me&&($e.loop(g.direction()),me.loop()),_.to(R.get()),vr&&yn.emit("settle"),yr||yn.emit("scroll")},D=Sfe(r,o,()=>K(c),g=>L(c,g)),se=.68,ve=le[P.get()],de=wl(ve),_e=wl(ve),Se=wl(ve),pe=wl(ve),ge=Rfe(de,Se,_e,pe,y,se),fe=Dfe(h,le,Ee,Q,pe),Ce=Ufe(D,P,F,ge,fe,pe,a),H=Pfe(Q),z=Tc(),ee=Vfe(t,n,a,b),{slideRegistry:i}=Nfe(ne,T,le,Ae,G,B),l=Hfe(e,n,i,Ce,ge,z,a,$),c={ownerDocument:r,ownerWindow:o,eventHandler:a,containerRect:O,slideRects:M,animation:D,axis:j,dragHandler:Tfe(j,e,r,o,pe,Ife(j,o),de,D,Ce,ge,fe,P,a,W,m,v,w,se,A),eventStore:z,percentOfView:W,index:P,indexPrevious:F,limit:Q,location:de,offsetLocation:Se,previousLocation:_e,options:s,resizeHandler:Cfe(t,a,o,n,j,I,x),scrollBody:ge,scrollBounds:Ofe(Q,Se,pe,ge,W),scrollLooper:Mfe(Ee,Q,Se,[de,Se,_e,pe]),scrollProgress:H,scrollSnapList:le.map(H.get),scrollSnaps:le,scrollTarget:fe,scrollTo:Ce,slideLooper:Ffe(j,V,Ee,ae,ce,re,le,Se,n),slideFocus:l,slidesHandler:jfe(t,a,C),slidesInView:ee,slideIndexes:B,slideRegistry:i,slidesToScroll:G,target:pe,translate:Q5(j,t)};return c}function Gfe(){let e={},t;function n(d){t=d}function r(d){return e[d]||[]}function o(d){return r(d).forEach(p=>p(t,d)),f}function s(d,p){return e[d]=r(d).concat([p]),f}function a(d,p){return e[d]=r(d).filter(h=>h!==p),f}function u(){e={}}const f={init:n,emit:o,off:a,on:s,clear:u};return f}const Yfe={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Kfe(e){function t(o,s){return K5(o,s||{})}function n(o){const s=o.breakpoints||{},a=$c(s).filter(u=>e.matchMedia(u).matches).map(u=>s[u]).reduce((u,f)=>t(u,f),{});return t(o,a)}function r(o){return o.map(s=>$c(s.breakpoints||{})).reduce((s,a)=>s.concat(a),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function Zfe(e){let t=[];function n(o,s){return t=s.filter(({options:a})=>e.optionsAtMedia(a).active!==!1),t.forEach(a=>a.init(o,e)),s.reduce((a,u)=>Object.assign(a,{[u.name]:u}),{})}function r(){t=t.filter(o=>o.destroy())}return{init:n,destroy:r}}function Qp(e,t,n){const r=e.ownerDocument,o=r.defaultView,s=Kfe(o),a=Zfe(s),u=Tc(),f=Gfe(),{mergeOptions:d,optionsAtMedia:p,optionsMediaQueries:h}=s,{on:y,off:m,emit:v}=f,b=j;let S=!1,w,T=d(Yfe,Qp.globalOptions),I=d(T),C=[],A,$,k;function x(){const{container:B,slides:K}=I;
93$=(s1(B)?e.querySelector(B):B)||e.children[0];const L=s1(K)?$.querySelectorAll(K):K;k=[].slice.call(L||$.children)}function O(B){const K=zfe(e,$,k,r,o,B,f);if(B.loop&&!K.slideLooper.canLoop()){const L=Object.assign({},B,{loop:!1});return O(L)}return K}function M(B,K){S||(T=d(T,B),I=p(T),C=K||C,x(),w=O(I),h([T,...C.map(({options:L})=>L)]).forEach(L=>u.add(L,"change",j)),I.active&&(w.translate.to(w.location.get()),w.animation.init(),w.slidesInView.init(),w.slideFocus.init(F),w.eventHandler.init(F),w.resizeHandler.init(F),w.slidesHandler.init(F),w.options.loop&&w.slideLooper.loop(),$.offsetParent&&k.length&&w.dragHandler.init(F),A=a.init(F,C)))}function j(B,K){const L=G();V(),M(d({startIndex:L},B),K),f.emit("reInit")}function V(){w.dragHandler.destroy(),w.eventStore.clear(),w.translate.clear(),w.slideLooper.clear(),w.resizeHandler.destroy(),w.slidesHandler.destroy(),w.slidesInView.destroy(),w.animation.destroy(),a.destroy(),u.clear()}function W(){S||(S=!0,u.clear(),V(),f.emit("destroy"),f.clear())}function Y(B,K,L){!I.active||S||(w.scrollBody.useBaseFriction().useDuration(K===!0?0:I.duration),w.scrollTo.index(B,L||0))}function ne(B){const K=w.index.add(1).get();Y(K,B,-1)}function Z(B){const K=w.index.add(-1).get();Y(K,B,1)}function ae(){return w.index.add(1).get()!==G()}function ce(){return w.index.add(-1).get()!==G()}function q(){return w.scrollSnapList}function ue(){return w.scrollProgress.get(w.offsetLocation.get())}function G(){return w.index.get()}function re(){return w.indexPrevious.get()}function Oe(){return w.slidesInView.get()}function Ee(){return w.slidesInView.get(!1)}function Pe(){return A}function Ae(){return w}function le(){return e}function Q(){return $}function P(){return k}const F={canScrollNext:ae,canScrollPrev:ce,containerNode:Q,internalEngine:Ae,destroy:W,off:m,on:y,emit:v,plugins:Pe,previousScrollSnap:re,reInit:b,rootNode:le,scrollNext:ne,scrollPrev:Z,scrollProgress:ue,scrollSnapList:q,scrollTo:Y,selectedScrollSnap:G,slideNodes:P,slidesInView:Oe,slidesNotInView:Ee};return M(t,n),setTimeout(()=>f.emit("init"),0),F}Qp.globalOptions=void 0;function tb(e={},t=[]){const n=Xe(e),r=Xe(t);let o=n?e.value:e,s=r?t.value:t;const a=en(),u=en();function f(){u.value&&u.value.reInit(o,s)}return We(()=>{!vfe()||!a.value||(Qp.globalOptions=tb.globalOptions,u.value=Qp(a.value,o,s))}),bt(()=>{u.value&&u.value.destroy()}),n&&ke(e,d=>{Q_(o,d)||(o=d,f())}),r&&ke(t,d=>{_fe(s,d)||(s=d,f())}),[a,u]}tb.globalOptions=void 0;function xs(){return xs=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},xs.apply(this,arguments)}var Qfe=.996,Jfe=function(e,t){return t===void 0&&(t=Qfe),e*t/(1-t)};function Xfe(e){return e[e.length-1]}function ede(e){return e.reduce(function(t,n){return t+n})/e.length}var tde=function(e,t,n){return Math.min(Math.max(t,e),n)};function Hm(e,t){if(e.length!==t.length)throw new Error("vectors must be same length");return e.map(function(n,r){return n+t[r]})}function V$(e){return Math.max.apply(Math,e.map(Math.abs))}function _u(e){return Object.freeze(e),Object.values(e).forEach(function(t){t!==null&&typeof t=="object"&&!Object.isFrozen(t)&&_u(t)}),e}function nde(){var e={};function t(o,s){return e[o]=(e[o]||[]).concat(s),function(){return n(o,s)}}function n(o,s){e[o]=(e[o]||[]).filter(function(a){return a!==s})}function r(o,s){o in e&&e[o].forEach(function(a){return a(s)})}return _u({on:t,off:n,dispatch:r})}function rde(e){var t=[],n=function(s){return s.addEventListener("wheel",e,{passive:!1}),t.push(s),function(){return r(s)}},r=function(s){s.removeEventListener("wheel",e),t=t.filter(function(a){return a!==s})},o=function(){t.forEach(r)};return _u({observe:n,unobserve:r,disconnect:o})}var ode=16*1.125,ide=typeof window<"u"&&window.innerHeight||800,Fm=[1,ode,ide];function sde(e){var t=e.deltaX*Fm[e.deltaMode],n=e.deltaY*Fm[e.deltaMode],r=(e.deltaZ||0)*Fm[e.deltaMode];return{timeStamp:e.timeStamp,axisDelta:[t,n,r]}}var ade=[-1,-1,-1];function ude(e,t){if(!t)return e;var n=t===!0?ade:t.map(function(r){return r?-1:1});return xs({},e,{axisDelta:e.axisDelta.map(function(r,o){return r*n[o]})})}var q$=700,lde=function(e){return xs({},e,{axisDelta:e.axisDelta.map(function(t){return tde(t,-q$,q$)})})},cde=.6,fde=.96,dde=2,W$=5,z$=_u({preventWheelAction:!0,reverseSign:[!0,!0,!1]}),pde=400;function G$(){return{isStarted:!1,isStartPublished:!1,isMomentum:!1,startTime:0,lastAbsDelta:1/0,axisMovement:[0,0,0],axisVelocity:[0,0,0],accelerationFactors:[],scrollPoints:[],scrollPointsToMerge:[],willEndTimeout:pde}}function hde(e){e===void 0&&(e={});var t=nde(),n=t.on,r=t.off,o=t.dispatch,s=z$,a=G$(),u,f=!1,d,p=function(W){Array.isArray(W)?W.forEach(function(Y){return v(Y)}):v(W)}
93,h=function(W){return W===void 0&&(W={}),Object.values(W).some(function(Y){return Y==null})?s:s=_u(xs({},z$,s,W))},y=function(W){var Y=xs({event:u,isStart:!1,isEnding:!1,isMomentumCancel:!1,isMomentum:a.isMomentum,axisDelta:[0,0,0],axisVelocity:a.axisVelocity,axisMovement:a.axisMovement,get axisMovementProjection(){return Hm(Y.axisMovement,Y.axisVelocity.map(function(ne){return Jfe(ne)}))}},W);o("wheel",xs({},Y,{previous:d})),d=Y},m=function(W,Y){var ne=s,Z=ne.preventWheelAction,ae=Y[0],ce=Y[1],q=Y[2];if(typeof Z=="boolean")return Z;switch(Z){case"x":return Math.abs(ae)>=W;case"y":return Math.abs(ce)>=W;case"z":return Math.abs(q)>=W;default:return!1}},v=function(W){var Y=lde(ude(sde(W),s.reverseSign)),ne=Y.axisDelta,Z=Y.timeStamp,ae=V$(ne);if(W.preventDefault&&m(ae,ne)&&W.preventDefault(),a.isStarted?a.isMomentum&&ae>Math.max(2,a.lastAbsDelta*2)&&(x(!0),$()):$(),ae===0&&Object.is&&Object.is(W.deltaX,-0)){f=!0;return}u=W,a.axisMovement=Hm(a.axisMovement,ne),a.lastAbsDelta=ae,a.scrollPointsToMerge.push({axisDelta:ne,timeStamp:Z}),b(),y({axisDelta:ne,isStart:!a.isStartPublished}),a.isStartPublished=!0,k()},b=function(){a.scrollPointsToMerge.length===dde?(a.scrollPoints.unshift({axisDeltaSum:a.scrollPointsToMerge.map(function(W){return W.axisDelta}).reduce(Hm),timeStamp:ede(a.scrollPointsToMerge.map(function(W){return W.timeStamp}))}),w(),a.scrollPointsToMerge.length=0,a.scrollPoints.length=1,a.isMomentum||C()):a.isStartPublished||S()},S=function(){a.axisVelocity=Xfe(a.scrollPointsToMerge).axisDelta.map(function(W){return W/a.willEndTimeout})},w=function(){var W=a.scrollPoints,Y=W[0],ne=W[1];if(!(!ne||!Y)){var Z=Y.timeStamp-ne.timeStamp;if(!(Z<=0)){var ae=Y.axisDeltaSum.map(function(q){return q/Z}),ce=ae.map(function(q,ue){return q/(a.axisVelocity[ue]||1)});a.axisVelocity=ae,a.accelerationFactors.push(ce),T(Z)}}},T=function(W){var Y=Math.ceil(W/10)*10*1.2;a.isMomentum||(Y=Math.max(100,Y*2)),a.willEndTimeout=Math.min(1e3,Math.round(Y))},I=function(W){return W===0?!0:W<=fde&&W>=cde},C=function(){if(a.accelerationFactors.length>=W$){if(f&&(f=!1,V$(a.axisVelocity)>=.2)){A();return}var W=a.accelerationFactors.slice(W$*-1),Y=W.every(function(ne){var Z=!!ne.reduce(function(ce,q){return ce&&ce<1&&ce===q?1:0}),ae=ne.filter(I).length===ne.length;return Z||ae});Y&&A(),a.accelerationFactors=W}},A=function(){a.isMomentum=!0},$=function(){a=G$(),a.isStarted=!0,a.startTime=Date.now(),d=void 0,f=!1},k=(function(){var W;return function(){clearTimeout(W),W=setTimeout(x,a.willEndTimeout)}})(),x=function(W){W===void 0&&(W=!1),a.isStarted&&(a.isMomentum&&W?y({isEnding:!0,isMomentumCancel:!0}):y({isEnding:!0}),a.isMomentum=!1,a.isStarted=!1)},O=rde(p),M=O.observe,j=O.unobserve,V=O.disconnect;return h(e),_u({on:n,off:r,observe:M,unobserve:j,disconnect:V,feedWheel:p,updateOptions:h})}var gde={active:!0,breakpoints:{},wheelDraggingClass:"is-wheel-dragging",forceWheelAxis:void 0,target:void 0};nb.globalOptions=void 0;function nb(e){e===void 0&&(e={});var t,n=function(){};function r(s,a){var u,f,d=a.mergeOptions,p=a.optionsAtMedia,h=d(gde,nb.globalOptions),y=d(h,e);t=p(y);var m=s.internalEngine(),v=(u=t.target)!=null?u:s.containerNode().parentNode,b=(f=t.forceWheelAxis)!=null?f:m.options.axis,S=hde({preventWheelAction:b,reverseSign:[!0,!0,!1]});function w(){k=(b==="x"?m.containerRect.width:m.containerRect.height)/2}var T=S.observe(v),I=S.on("wheel",ce),C=!1,A,$=0,k=0,x=!1;w(),s.on("resize",w);function O(q){try{A=new MouseEvent("mousedown",q.event),ne(A)}catch{return n()}C=!0,$=0,j(),t.wheelDraggingClass&&v.classList.add(t.wheelDraggingClass)}function M(q){C=!1,ne(Y("mouseup",q)),V(),t.wheelDraggingClass&&v.classList.remove(t.wheelDraggingClass)}function j(){document.documentElement.addEventListener("mousemove",W,!0),document.documentElement.addEventListener("mouseup",W,!0),document.documentElement.addEventListener("mousedown",W,!0)}function V(){document.documentElement.removeEventListener("mousemove",W,!0),document.documentElement.removeEventListener("mouseup",W,!0),document.documentElement.removeEventListener("mousedown",W,!0)}function W(q){C&&q.isTrusted&&q.stopImmediatePropagation()}function Y(q,ue){var G,re;if(b===m.options.axis){var Oe=ue.axisMovement;G=Oe[0],re=Oe[1]}else{var Ee=ue.axisMovement;re=Ee[0],G=Ee[1]}var Pe=Z(ue),Ae=Pe.isAtBoundary;if(Ae){var le=Math.min($/k,1),Q=.25+le*.5,P=G>0?-1:1,F=$*P,B=F*Q;G+=B,re+=B}if(!m.options.skipSnaps&&!m.options.dragFree){var K=m.containerRect.width,L=m.containerRect.height;G=G<0?Math.max(G,-K):Math.min(G,K),re=re<0?Math.max(re,-L):Math.min(re,L)}return new MouseEvent(q,{clientX:A.clientX+G,clientY:A.clientY+re,screenX:A.screenX+G,screenY:A.screenY+re,movementX:G,movementY:re,button:0,bubbles:!0,cancelable:!0,composed:!0})}function ne(q){s.containerNode().dispatchEvent(q)}function Z(q){var ue=q.axisDelta,G=ue[0],re=ue[1],Oe=s.scrollProgress(),Ee=Oe<1,Pe=Oe>0,Ae=b==="x"?G:re,le=Ae<0,Q=Ae>0,P=le&&!Ee||Q&&!Pe;return{isAtBoundary:P,primaryAxisDelta:Ae}}function ae(q){var ue=Z(q),G=ue.isAtBoundary,re=ue.primaryAxisDelta;if(G&&!q.isMomentum){if($+=Math.abs(re),$>k)return x=!0,M(q),!0}else $=0;return!1}function ce(q){var ue=q.axisDelta,G=ue[0],re=ue[1],Oe=b==="x"?G:re,Ee=b==="x"?re:G,Pe=q.isMomentum&&q.previous&&!q.previous.isMomentum,Ae=q.isEnding&&!q.isMomentum||Pe,le=Math.abs(Oe)>Math.abs(Ee);le&&!C&&!q.isMomentum&&!x&&O(q),x&&q.isEnding&&(x=!1),C&&(ae(q)||(Ae?M(q):ne(Y("mousemove",q))))}n=function(){T(),I(),s.off("resize",w),V()}}var o={name:"wheelGestures",options:e,init:r,destroy:function(){return n()}};return o}const mde=["disabled"],yde=["disabled"],vde=xe({__name:"CarouselArrows",props:{position:{},arrowsStyle:{},canScrollPrev:{type:Boolean},canScrollNext:{type:Boolean},showOnHover:{type:Boolean},isHovered:{type:Boolean},isDragging:{type:Boolean},withPagination:{type:Boolean}},emits:["prev","next"],setup(e){const t=e,n=J(()=>t.position==="bottom"||t.arrowsStyle==="icon"),r=J(()=>t.position==="bottom"||t.canScrollPrev),o=J(()=>t.position==="bottom"||t.canScrollNext);return(s,a)=>(U(),X("div",{class:Be(["carousel__arrows",[`carousel__arrows--${s.position}`,{"carousel__arrows--show-on-hover":s.showOnHover,"carousel__arrows--hovered":s.showOnHover&&s.isHovered&&!s.isDragging,"carousel__arrows--dragging":s.isDragging,"carousel__arrows--with-pagination":s.withPagination}]]),"data-test":"carousel-arrows"}
93,[r.value?(U(),X("button",{key:0,type:"button","aria-label":"ÐÑокÑÑÑиÑÑ Ð²Ð»ÐµÐ²Ð¾",class:Be(["carousel__arrow carousel__arrow--left",`carousel__arrow--${s.arrowsStyle}`]),disabled:n.value&&!s.canScrollPrev,"data-test":"carousel-arrow-left",onClick:a[0]||(a[0]=ft(u=>s.$emit("prev"),["stop"]))},[s.arrowsStyle==="icon"?(U(),we(N(t_),{key:0})):(U(),we(N(Nu),{key:1}))],10,mde)):Ie("",!0),o.value?(U(),X("button",{key:1,type:"button","aria-label":"ÐÑокÑÑÑиÑÑ Ð²Ð¿Ñаво",class:Be(["carousel__arrow carousel__arrow--right",`carousel__arrow--${s.arrowsStyle}`]),disabled:n.value&&!s.canScrollNext,"data-test":"carousel-arrow-right",onClick:a[1]||(a[1]=ft(u=>s.$emit("next"),["stop"]))},[s.arrowsStyle==="icon"?(U(),we(N(r_),{key:0})):(U(),we(N(Js),{key:1}))],10,yde)):Ie("",!0)],2))}}),sg=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},_de=sg(vde,[["__scopeId","data-v-89208d5c"]]),bde={class:"carousel__pagination","data-test":"carousel-pagination"},wde=["data-test"],Ede=xe({__name:"CarouselPagination",props:{pagesCount:{},selectedIndex:{}},setup(e){return(t,n)=>(U(),X("div",bde,[(U(!0),X(He,null,dt(t.pagesCount,(r,o)=>(U(),X("div",{key:o,class:Be(["carousel__pagination-item",{"carousel__pagination-item--active":t.selectedIndex===o}]),"data-test":`carousel-pagination-dot-${o}`},null,10,wde))),128))]))}}),Sde=sg(Ede,[["__scopeId","data-v-2f8881d1"]]),$de={key:0,class:"carousel__slide-counter ui-body-sm-medium","data-test":"carousel-slide-counter"},Tde={class:"carousel__slide-clip"},Ide=xe({__name:"CarouselSlide",props:{index:{},slidesCount:{default:void 0},showCounter:{type:Boolean,default:!1},slideMaxWidth:{default:"100%"}},setup(e){const t=e,n=J(()=>({maxWidth:t.slideMaxWidth}));return(r,o)=>(U(),X("div",{class:"carousel__slide",style:at(n.value)},[r.showCounter&&r.slidesCount?(U(),X("span",$de,Ue(r.index+1)+"/"+Ue(r.slidesCount),1)):Ie("",!0),te("div",Tde,[De(r.$slots,"default",{},void 0,!0)])],4))}}),jm=sg(Ide,[["__scopeId","data-v-422bead5"]]);function Ade(e,t){const n=ie(!1),r=ie(!1),o=ie(-1),s=ie(0),a=ie(0),u=ie(!1);let f=0,d=!1;const p=($,k,x)=>{if(k===$)return null;const O=x-1;return $===O&&k===0?"right":$===0&&k===O?"left":k>$?"right":"left"},h=()=>{const $=e.value;if(!$)return;const k=$.canScrollPrev(),x=$.canScrollNext(),O=$.selectedScrollSnap(),M=$.scrollSnapList().length,j=$.slidesInView(),V=j.length?Math.max(...j):-1;(n.value!==k||r.value!==x||s.value!==O||a.value!==M||o.value!==V)&&(n.value=k,r.value=x,s.value=O,a.value=M,o.value=V)},y=$=>{var k;if($===f)return;const x=((k=e.value)==null?void 0:k.scrollSnapList().length)??0,O=p(f,$,x);O&&t("scroll",O),f=$},m=()=>{h(),y(s.value)},v="carousel-dragging",b=$=>{typeof document>"u"||document.body.classList.toggle(v,$)},S=()=>{u.value=!0,b(!0)},w=()=>{u.value=!1,b(!1),h()},T=()=>{u.value||d||h()},I=()=>{d=!0},C=()=>{d=!1,h()},A=()=>{d=!1,h()};return ke(e,($,k,x)=>{$&&(d=!1,h(),f=$.selectedScrollSnap(),$.on("select",m),$.on("reInit",A),$.on("slidesInView",T),$.on("scroll",I),$.on("settle",C),$.on("pointerDown",S),$.on("pointerUp",w),x(()=>{u.value=!1,d=!1,b(!1),$.off("select",m),$.off("reInit",A),$.off("slidesInView",T),$.off("scroll",I),$.off("settle",C),$.off("pointerDown",S),$.off("pointerUp",w)}))},{immediate:!0}),{canScrollPrev:n,canScrollNext:r,lastVisibleIndex:o,selectedIndex:s,pagesCount:a,isDragging:u}}const xde=e=>new Proxy(e,{get:(t,n)=>n==="preventDefault"?void 0:t[n]}),Cde=e=>{let t,n;return{addEventListener:(r,o)=>{t=e(),n=s=>o(xde(s)),t?.addEventListener(r,n,{passive:!0})},removeEventListener:r=>{n&&t?.removeEventListener(r,n),n=void 0},get classList(){return t?.classList}}},Y$=e=>{const t=e.internalEngine();e.reInit();const n=e.internalEngine();["scrollBody","location","offsetLocation","previousLocation","target"].forEach(o=>{Object.assign(n[o],t[o])}),n.translate.to(t.location.get());const{index:r}=n.scrollTarget.byDistance(0,!1);n.index.set(r),n.animation.start()},Rde=e=>{const t=e.internalEngine();if(t.dragHandler.pointerDown()){const n=t.limit.reachedMax(t.target.get());t.scrollBounds.toggleActive(n);const r=()=>{e.off("pointerUp",r),Y$(e)};e.on("pointerUp",r)}else Y$(e);return!1},Ode="carousel-wheel-hovered",kde=xe({__name:"Carousel",props:{items:{},showCounter:{type:Boolean,default:!1},gap:{default:12},arrows:{type:Boolean,default:!1},arrowsConfig:{default:void 0},pagination:{type:Boolean,default:!1}
93,viewportHeight:{default:void 0},slideMaxWidth:{default:"100%"},showBefore:{type:Boolean,default:!1},showAfter:{type:Boolean,default:!1},options:{default:()=>({})}},emits:["change","scroll"],setup(e,{emit:t}){const n={dragFree:!1,containScroll:"trimSnaps",align:"start",slidesToScroll:1,skipSnaps:!0,watchSlides:Rde},r=e,o=t,s=J(()=>({...n,...r.options}));let a=()=>{};const u=[nb({forceWheelAxis:"x",target:Cde(()=>a())})],[f,d]=tb(s,u);a=()=>f.value;const{canScrollPrev:p,canScrollNext:h,lastVisibleIndex:y,selectedIndex:m,pagesCount:v,isDragging:b}=Ade(d,o),S=ie(!1),w=J(()=>r.items.length),T=J(()=>{var Y;return((Y=r.arrowsConfig)==null?void 0:Y.position)??"side"}),I=J(()=>{var Y;return((Y=r.arrowsConfig)==null?void 0:Y.style)??"round"}),C=J(()=>{var Y;return!!((Y=r.arrowsConfig)!=null&&Y.showOnHover)}),A=J(()=>{var Y;return((Y=r.arrowsConfig)==null?void 0:Y.scrollStep)??1}),$=J(()=>r.pagination&&v.value>1),k=J(()=>r.viewportHeight?{height:r.viewportHeight}:void 0),x=Y=>{typeof document>"u"||document.documentElement.classList.toggle(Ode,Y)};bt(()=>x(!1));const O=()=>{x(!0),C.value&&(S.value=!0)},M=()=>{x(!1),S.value=!1},j=Y=>{const ne=d.value;if(!ne)return;const Z=ne.selectedScrollSnap(),ae=ne.scrollSnapList().length-1,ce=Math.max(0,Math.min(ae,Z+Y*A.value));ce!==Z&&(ne.scrollTo(ce),o("change",ce+1))},V=()=>{p.value&&j(-1)},W=()=>{h.value&&j(1)};return(Y,ne)=>(U(),X("div",{class:"carousel","data-test":"carousel",onMouseenter:O,onMouseleave:M},[te("div",{ref_key:"carouselRef",ref:f,class:"carousel__viewport",style:at(k.value),"data-test":"carousel-viewport"},[te("div",{class:"carousel__container",style:at({gap:`${Y.gap}px`})},[Y.showBefore?(U(),we(jm,{key:0,index:0,"show-counter":!1,"slide-max-width":Y.slideMaxWidth,"data-test":"carousel-slide-before"},{default:be(()=>[De(Y.$slots,"before",{},void 0,!0)]),_:3},8,["slide-max-width"])):Ie("",!0),(U(!0),X(He,null,dt(Y.items,(Z,ae)=>(U(),we(jm,{key:Z.id??ae,index:ae,"slides-count":w.value,"show-counter":Y.showCounter,"slide-max-width":Y.slideMaxWidth,"data-test":`carousel-slide-${ae}`},{default:be(()=>[De(Y.$slots,"default",{item:Z,index:ae,canScrollPrev:N(p),canScrollNext:N(h),lastVisibleIndex:N(y)},void 0,!0)]),_:2},1032,["index","slides-count","show-counter","slide-max-width","data-test"]))),128)),Y.showAfter?(U(),we(jm,{key:1,index:w.value,"show-counter":!1,"slide-max-width":Y.slideMaxWidth,"data-test":"carousel-slide-after"},{default:be(()=>[De(Y.$slots,"after",{},void 0,!0)]),_:3},8,["index","slide-max-width"])):Ie("",!0)],4)],4),Y.arrows?(U(),we(_de,{key:0,position:T.value,"arrows-style":I.value,"can-scroll-prev":N(p),"can-scroll-next":N(h),"show-on-hover":C.value,"is-hovered":S.value,"is-dragging":N(b),"with-pagination":$.value,onPrev:V,onNext:W},null,8,["position","arrows-style","can-scroll-prev","can-scroll-next","show-on-hover","is-hovered","is-dragging","with-pagination"])):Ie("",!0),$.value?(U(),we(Sde,{key:1,"pages-count":N(v),"selected-index":N(m)},null,8,["pages-count","selected-index"])):Ie("",!0)],32))}}),Lde=sg(kde,[["__scopeId","data-v-7e567eef"]]),Mde=["data-test"],Pde=["src"],Bde={key:0,class:"photo-preview-carousel__overlay","data-test":"photo-preview-carousel-uploading"},Nde=["aria-label","data-test","onClick"],Dde=xe({__name:"PhotoPreviewCarousel",props:{photos:{},cardHeight:{default:Gce},minCardWidth:{default:Yce}},emits:["remove","retry"],setup(e,{emit:t}){const n=e,r=t,o=J(()=>({"--photo-preview-card-height":`${n.cardHeight}px`,"--photo-preview-min-card-width":`${n.minCardWidth}px`})),s=J(()=>n.photos.map(a=>a.url??(a.blob?URL.createObjectURL(a.blob):"")));return ke(s,(a,u)=>{u&&u.forEach(f=>URL.revokeObjectURL(f))}),bt(()=>{s.value.forEach(a=>URL.revokeObjectURL(a))}),(a,u)=>a.photos.length?(U(),X("div",{key:0,class:"photo-preview-carousel",style:at(o.value)},[ye(N(Lde),{class:"photo-preview-carousel__carousel",items:a.photos,gap:12,arrows:"","arrows-config":{style:"filled"},"viewport-height":`${a.cardHeight}px`},{default:be(({item:f,index:d})=>[te("div",{class:"photo-preview-carousel__card","data-test":`photo-preview-carousel-item-${d}`},[te("img",{src:s.value[d],class:"photo-preview-carousel__img",alt:""},null,8,Pde),f.status==="uploading"?(U(),X("div",Bde,u[0]||(u[0]=[te("span",{class:"photo-preview-carousel__spinner"},null,-1)]))):f.status==="error"?(U(),X("button",{key:1,type:"button",class:"photo-preview-carousel__overlay photo-preview-carousel__overlay--error ui-body-sm-medium","aria-label":`ÐовÑоÑиÑÑ Ð·Ð°Ð³ÑÑÐ·ÐºÑ ÑоÑо ${d+1}
93`,"data-test":`photo-preview-carousel-retry-${d}`,onClick:p=>r("retry",d)}," ÐовÑоÑиÑÑ ",8,Nde)):Ie("",!0),ye(N(St),{variant:N(pt).SECONDARY,color:N(ut).DEFAULT,size:N(ot).XS,class:"photo-preview-carousel__remove","aria-label":`УдалиÑÑ ÑоÑо ${d+1}`,"data-test":`photo-preview-carousel-remove-${d}`,onClick:p=>r("remove",d)},{default:be(()=>[ye(N(cC))]),_:2},1032,["variant","color","size","aria-label","data-test","onClick"])],8,Mde)]),_:1},8,["items","viewport-height"])],4)):Ie("",!0)}}),Ude=Ui(Dde,[["__scopeId","data-v-6f1f8700"]]),Hde={class:"short-post-edit-skeleton","data-test":"short-post-edit-skeleton"},Fde={class:"short-post-edit-skeleton__editor"},jde={key:0,class:"short-post-edit-skeleton__footer"},Vde={class:"short-post-edit-skeleton__author"},qde={class:"short-post-edit-skeleton__buttons"},Wde=xe({__name:"ShortPostEditSkeleton",props:{withActions:{type:Boolean,default:!1}},setup(e){return(t,n)=>(U(),X("div",Hde,[te("div",Fde,[(U(),X(He,null,dt(5,r=>ye(N(It),{key:r,width:"100%",height:"16px","border-radius":"xs"})),64)),ye(N(It),{width:"60%",height:"16px","border-radius":"xs"})]),e.withActions?(U(),X("div",jde,[te("div",Vde,[ye(N(It),{shape:"circle",width:"24px",height:"24px"}),ye(N(It),{width:"80px",height:"16px","border-radius":"xs"})]),te("div",qde,[ye(N(It),{width:"78px",height:"32px","border-radius":"2xl"}),ye(N(It),{width:"96px",height:"32px","border-radius":"2xl"})])])):Ie("",!0)]))}}),J5=Ui(Wde,[["__scopeId","data-v-c57c4f03"]]),u1=e=>{var t;if(e.type!=="paragraph")return!1;const n=(t=e.value)==null?void 0:t.elements;return!n||n.length===0};function K$(e){return e.filter((t,n)=>u1(t)?!u1(e[n-1]??{}):!0)}function Z$(e){return JSON.stringify(e,(t,n)=>{if(!(t==="__typename"||t==="raw")&&!(t==="format"&&n===null))return n})}function bu(e){return!e||!e.length?!0:e.every(u1)}function l1(e){let t=0;const n=r=>{if(!r||typeof r!="object")return;const o=r.text;typeof o=="string"&&(t+=o.length),Object.values(r).forEach(s=>{Array.isArray(s)?s.forEach(n):s&&typeof s=="object"&&n(s)})};return(e??[]).forEach(n),t}const X5=["img","picture","figure","video","audio","iframe","embed","object","table","blockquote","pre","hr"],eO=["h1","h2","h3","h4","h5","h6"],zde=new Set([...eO,"div"].map(e=>e.toUpperCase())),Gde=new Set(["P","BR","A","STRONG","B","EM","I","U","S","STRIKE","DEL","MARK","UL","OL","LI"]),Yde=/(?:https?:\/\/|www\.)[^\s<>"'«»]+/gi,Kde=/[.,!?;:»"')\]]+$/,Zde=/white-space:\s*pre(-line|-wrap)?/i,tO=e=>new DOMParser().parseFromString(e,"text/html"),nO=(...e)=>e.flat().join(", "),Qde=e=>e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">");function Jde(e){return!e||typeof DOMParser>"u"?!1:tO(e).querySelector(nO(X5,eO))!==null}const rO=e=>/<[a-z]/i.test(e);function oO(e,t,n){const r=e.createTreeWalker(t,NodeFilter.SHOW_TEXT),o=[];for(;r.nextNode();)o.push(r.currentNode);const s=e.createElement("template");o.forEach(a=>{const u=n(Qde(a.data),a);u!==null&&(s.innerHTML=u,a.replaceWith(s.content))})}const Xde=e=>{const t=e.replace(Kde,"");return`<a href="${t.startsWith("www.")?`https://${t}`:t}">${t}</a>${e.slice(t.length)}`},epe=e=>oO(e,e.body,(t,n)=>{var r;if((r=n.parentElement)!=null&&r.closest("a"))return null;const o=t.replace(Yde,Xde);return rO(o)?o:null}),tpe=(e,t)=>oO(e,t,n=>n.includes(` 94`)?n.replace(/\n/g,"<br>"):null);function npe(e){if(!e||typeof DOMParser>"u")return e;const t=tO(e);return t.querySelectorAll(nO(["style","script","meta"],X5)).forEach(n=>n.remove()),t.body.querySelectorAll("*").forEach(n=>{if(Zde.test(n.getAttribute("style")??"")&&tpe(t,n),zde.has(n.tagName)){const r=t.createElement("p");r.append(...n.childNodes),n.replaceWith(r);return}if(!Gde.has(n.tagName)){n.replaceWith(...n.childNodes);return}Array.from(n.attributes).forEach(({name:r})=>{r==="href"&&n.tagName==="A"||n.removeAttribute(r)})}),epe(t),t.body.innerHTML}const rpe=xe({__name:"ShortPostEditor",props:{initialBody:{type:Array,default:()=>[]},placeholder:{type:String,default:"ЧÑо нового?"},loadingSkeleton:{type:Boolean,default:!1}},emits:["update","unsupported-paste","submit","input-activate"],setup(e,{expose:t,emit:n}){const r=["link","typography","bulletList","orderedList","listItem","strike"],o=Jt({loader:()=>Rt(()=>import("./index.es-5KT4nLMy.js"),__vite__mapDeps([0,1,2,3])).then(v=>v.EditorWrapper),loadingComponent:e.loadingSkeleton?J5:void 0}),s=n,a=()=>{s("input-activate")},u=v=>
94{v.key==="Enter"&&(v.metaKey||v.ctrlKey)&&(v.preventDefault(),s("submit"))},f=ie(null),d=()=>{var v,b;return((b=(v=f.value)==null?void 0:v.editor)==null?void 0:b.getContent())??[]},p=v=>{var b;const S=(b=f.value)==null?void 0:b.editor;if(S){if(bu(v)){S.setContent("");return}S.setContent(v)}},h=()=>p([]),y=()=>{var v,b,S;const w=d(),T=((S=(b=(v=f.value)==null?void 0:v.editor)==null?void 0:b.editor)==null?void 0:S.getText().length)??0;s("update",{body:w,length:T,isEmpty:bu(w)})},m=(v,b)=>{var S,w,T;const I=((S=b.clipboardData)==null?void 0:S.getData("text/html"))??"";if(!I)return!1;Jde(I)&&s("unsupported-paste");const C=npe(I),A=(T=(w=f.value)==null?void 0:w.editor)==null?void 0:T.editor;return!A||!rO(C)?!1:(A.chain().focus().deleteSelection().insertContent(C).run(),!0)};return t({clear:h,setContent:p}),(v,b)=>(U(),X("div",{class:"short-post-editor","data-test":"short-post-editor",onKeydown:u,onFocusin:a},[ye(N(o),{ref_key:"editorRef",ref:f,content:e.initialBody,placeholder:e.placeholder,"permitted-for-insert-domains":[],"enabled-extensions":r,"enable-list-input-rules":"","paste-handler":m,"show-bubble-menu":!1,"show-block-menu":!1,onUpdate:y},null,8,["content","placeholder"])],32))}}),iO=e=>` { blogQueries { authorships(userID: ${JSON.stringify(e.userID)}, amount: ${e.amount}) { blogs { id name avatar { url } } hasMore } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");iO.operationName="getBlogsToPublish";const sO=e=>` { postMutations { create(input: { structuredBody: ${JSON.stringify(e.structuredBody)} blogID: ${JSON.stringify(e.blogID)} status: ${e.status} editSource: ${e.editSource} mediaList: [${e.mediaList}] tagIDs: ${JSON.stringify(e.tagIDs)} isShort: true }) { id error { ... on DefaultError { message } ... on PostCreateError { message code } ... on PostStopwordError { message words } ... on PostInvalidIframeError { message iframes } } } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");sO.operationName="createShortPost";const aO=(e,t)=>{var n,r,o;const s=((n=e?.message)==null?void 0:n.trim())||t;return e&&"words"in e&&(r=e.words)!=null&&r.length?`${s}: ${e.words.join(", ")}`:e&&"iframes"in e&&(o=e.iframes)!=null&&o.length?`${s}: ${e.iframes.join(", ")}`:s};let Vm;const rb=e=>{if(e&&(Vm=e),!Vm)throw new Error("[Sports][Create Short Post] оÑÑÑÑÑÑвÑÐµÑ Ð¸Ð½ÑÑÐ°Ð½Ñ Ð»Ð¾Ð³Ð³ÐµÑа");return{logger:Vm}},ope=e=>({async getBlogsToPublish(t){const n=await e.gqlQuery(iO,t);return{blogs:n.authorships.blogs??[],hasMore:n.authorships.hasMore??!1}},async createPost(t){const n=(await e.gqlMutation(sO,t)).postMutations.create;if(!(n!=null&&n.id)||n.error){const r=n?.error??{message:Zp};return rb().logger.error({error:r},"[CreateShortPost] createPost error"),{error:aO(r,Zp)}}return{id:n.id}}}),ipe="short_post",spe=Symbol("shortPostAnalyticCollector");var zo=(e=>(e.TO_CREATE="to_create",e.INPUT_ACTIVATE="input_activate",e.ADD_MEDIA="add_media",e.CHOOSE_AUTHOR="choose_author",e.TO_CREATE_BLOG="to_create_blog",e.PUBLICATE="publicate",e.CLOSE="close",e.ERROR="error",e.EDIT="edit",e.DELETE="delete",e.REACT_TO_CONTENT="react_to_content",e.REFRESH_COMMENTS="refresh_comments",e.SORT_COMMENTS="sort_comments",e.TOGGLE_COMMENTS_DIALOGS="toggle_comments_dialogs",e.SHARE="share",e.TO_CREATOR="to_creator",e))(zo||{}),Aa=(e=>(e.PUBLICATION="publication",e.EDITION="edition",e))(Aa||{}),uO=(e=>(e.TOP_BAR="top_bar",e.PROFILE_MENU="profile_menu",e.PROFILE="profile",e.BLOG="blog",e.MY_FEED="my_feed",e.TAG="tag",e))(uO||{}),Ma=(e=>(e.POST="post",e.ARTICLE="article",e))(Ma||{}),c1=(e=>(e.AUTHOR="author",e.BLOG="blog",e))(c1||{}),ns=(e=>(e.MAX_LENGTH="max_length",e.MAX_MEDIA="max_media",e))(ns||{});const lO="1",cO="-1";function ape(e,t){return{action:zo.TO_CREATE,label:"",property:{source:e,type:t},value:""}}function upe(){return{action:zo.INPUT_ACTIVATE,label:"",property:{},value:""}}function lpe(){return{action:zo.ADD_MEDIA,label:"",property:{},value:""}}function cpe(e,t){return{action:zo.CHOOSE_AUTHOR,label:"",property:{type:e,id:t},value:""}}function fpe(){return{action:zo.TO_CREATE_BLOG,label:"",property:{},value:""}}function dpe({mode:e,source:t,type:n,postId:r,success:o}){return{action:zo.PUBLICATE,label:e,property:{source:t,type:n,page_id:r},value:o?lO:cO}}function ppe({mode:e,source:t,type:n,confirmed:r}){return{action:zo.CLOSE,label:e,property:{source:t,type:n},value:r?lO:cO}}function hpe(e){return{action:zo.ERROR,label:"",property:{type:e},value:""}}function gpe(e){const t=xt(ipe),n=og(spe,{getCollectors:()=>[new ng]}),r=a=>{n?.collect(rg,{category:a.category??t.value,action:a.action,label:a.label??"",property:a.property??{},value:a.value??""})},o=ie(!1),s=ie(new Set);return{trackToCreate(a,u=Ma.POST){r(ape(a,u))},trackInputActivate(){o.value||(o.value=!0,r(upe()))},resetInputActivate(){o.value=!1},trackAddMedia(){r(lpe())},trackChooseAuthor(a,u){r(cpe(a,u))}
94,trackToCreateBlog(){r(fpe())},trackPublish(a){r(dpe(a))},trackClose(a){r(ppe(a))},trackError(a){s.value.has(a)||(s.value.add(a),r(hpe(a)))},clearError(a){s.value.delete(a)}}}const Q$="СоздаÑÑ Ð±Ð»Ð¾Ð³";function mpe({authorId:e,authorName:t,authorAvatarUrl:n,gqlClient:r,presetBlog:o}){const{logger:s}=rb(),a=ie([]),u=ie();ke(()=>{var v;return(v=o?.value)==null?void 0:v.id},v=>{v&&(u.value=v)},{immediate:!0});const f=J(()=>{const v=o?.value;return!v||a.value.some(b=>b.id===v.id)?a.value:[v,...a.value]}),d=async()=>{if(!(!e.value||!r.value))try{const v=await ope(r.value).getBlogsToPublish({userID:e.value});a.value=v.blogs.map(b=>({id:b.id,name:b.name,avatarUrl:b.avatar.url}))}catch(v){s.error({err:v},"[CreateShortPost] fetchBlogs failed")}};ke(e,()=>{d()},{immediate:!0});const p=J(()=>[{key:e.value,title:t.value,avatarUrl:n.value},...f.value.map(v=>({key:v.id,title:v.name,avatarUrl:v.avatarUrl??""})),{key:Q$,title:Q$,avatarUrl:"",isCreateBlog:!0}]),h=J(()=>{var v;return u.value?((v=f.value.find(b=>b.id===u.value))==null?void 0:v.name)??t.value:t.value}),y=J(()=>{var v;return u.value?((v=f.value.find(b=>b.id===u.value))==null?void 0:v.avatarUrl)??n.value:n.value}),m=J(()=>u.value===void 0?c1.AUTHOR:c1.BLOG);return{selectedBlogId:u,selectedCreatorType:m,dropdownItems:p,currentAuthorName:h,currentAuthorAvatarUrl:y,onAuthorSelect:v=>{u.value=v.key===e.value?void 0:v.key},reset:()=>{var v;u.value=(v=o?.value)==null?void 0:v.id}}}function ype({when:e,onEscape:t,preventDefault:n=!1}){const r=o=>{o.key!=="Escape"||!e()||(o.stopImmediatePropagation(),n&&o.preventDefault(),t(o))};We(()=>{document.addEventListener("keydown",r,{capture:!0})}),bt(()=>{document.removeEventListener("keydown",r,{capture:!0})})}let Jp=null;const vpe=e=>{Jp=e},J$=e=>{Jp===e&&(Jp=null)},_pe=()=>Jp,X$=".bottom-drawer-overlay",eT=".overlay",bpe=".bottom-drawer__close",wpe=".ui-modal__close";function Epe({isOpen:e,isPublishing:t,shouldConfirmClose:n,onReset:r,overlayContentSelector:o}){const s=ie(!1),a=ie(!1);let u=null;const f=I=>{u?.(I),u=null};ke(e,(I,C)=>{if(!(!C||I)){if(a.value){a.value=!1,r();return}if(n.value){e.value=!0,s.value=!0;return}r()}},{flush:"sync"}),ke(t,(I,C)=>{C&&!I&&e.value&&(a.value=!1)},{flush:"post"});const d=I=>
94{if(!I&&n.value){s.value=!0;return}e.value=I},p=()=>{a.value=!0,f(!0),s.value=!1,e.value=!1};ke(s,I=>{I||f(!1)},{flush:"sync"});const h={needsConfirm:()=>n.value,confirm:()=>(s.value=!0,new Promise(I=>{u=I}))},y=I=>{I.preventDefault(),I.returnValue=!0};ke(()=>e.value&&n.value,I=>{typeof window>"u"||(I?window.addEventListener("beforeunload",y):window.removeEventListener("beforeunload",y))},{immediate:!0}),ke(e,I=>{I?vpe(h):J$(h)},{immediate:!0});const m=()=>{a.value=!0};ype({when:()=>e.value,preventDefault:!0,onEscape:()=>{if(s.value){s.value=!1;return}d(!1)}});let v=!1;const b=I=>I.matches(X$)||I.matches(eT),S=I=>{const C=I.closest(X$)??I.closest(eT);return C?!!C.querySelector(o):!1},w=I=>{const C=I.target;if(!C){v=!1;return}v=b(C)&&S(C)},T=I=>{if(!e.value||s.value||!n.value)return;const C=I.target;if(!C)return;const A=!!(C.closest(bpe)??C.closest(wpe)),$=b(C);!A&&!$||S(C)&&(I.stopImmediatePropagation(),!($&&!v)&&(v=!1,d(!1)))};return We(()=>{document.addEventListener("pointerdown",w,{capture:!0}),document.addEventListener("click",T,{capture:!0})}),bt(()=>{document.removeEventListener("pointerdown",w,{capture:!0}),document.removeEventListener("click",T,{capture:!0})}),Do(()=>{window.removeEventListener("beforeunload",y),f(!1),J$(h)}),{isConfirmCloseOpen:s,onCloseRequest:d,forceClose:p,markPublished:m}}const Spe=e=>{let t=e?.parentElement??null;for(;t;){const{overflowY:n}=getComputedStyle(t);if(n==="auto"||n==="scroll")return t;t=t.parentElement}return null};function $pe(e){const t=ie(!1);let n=null,r=null;const o=()=>{n?.disconnect(),n=null,r=null},s=()=>{o(),!(!e.value||typeof IntersectionObserver>"u")&&(r=Spe(e.value),n=new IntersectionObserver(([a])=>{const u=!!r&&r.scrollHeight>r.clientHeight+1;t.value=u&&a.isIntersecting},{root:r}),n.observe(e.value))};return bt(o),{atBottom:t,start:s,stop:o}}const ob=10,Fl=4096,tT=e=>e.split("?")[0];function Tpe(e){const t=ie(e?.initialBody??[]),n=ie([]),r=ie(e?.initialPhotos??[]),o=()=>crypto.randomUUID(),s=ie(l1(e?.initialBody??[])),a=(S,w)=>{t.value=S,w!==void 0&&(s.value=w)},u=J(()=>bu(t.value)),f=J(()=>s.value),d=J(()=>!u.value||n.value.length>0||r.value.length>0),p=J(()=>r.value.length+n.value.length),h=J(()=>n.value.some(S=>S.status==="uploading")),y=J(()=>n.value.some(S=>S.status==="error")),m=J(()=>[...r.value.map(S=>({id:S.id,url:tT(S.url)})),...n.value.filter(S=>S.status==="uploaded"&&!!S.url).map(S=>({url:tT(S.url)}))]),v=J(()=>(!u.value||m.value.length>0)&&f.value<=Fl),b=async(S,w)=>{if(e!=null&&e.uploadPhoto)try{const T=await e.uploadPhoto(w),I=n.value.find(C=>C.id===S);I&&(I.url=T,I.status="uploaded")}catch{const T=n.value.find(I=>I.id===S);T&&(T.status="error")}};return{body:t,setBody:a,isEmpty:u,photos:n,existingPhotos:r,totalPhotos:p,sbLength:f,canPublish:v,hasContent:d,isUploading:h,hasUploadError:y,uploadedMedia:m,addPhotos:async S=>{const w=ob-p.value;if(w<=0)return;const T=S.slice(0,w).map(I=>({id:o(),blob:I,url:null,status:"uploading"}));n.value=[...n.value,...T],await Promise.all(T.map(I=>b(I.id,I.blob)))},retryPhoto:async S=>{const w=n.value[S];!w||w.status!=="error"||!w.blob||(w.status="uploading",await b(w.id,w.blob))},removePhoto:S=>{n.value=n.value.filter((w,T)=>T!==S)},removeExistingPhoto:S=>{r.value=r.value.filter((w,T)=>T!==S)},reset:()=>{t.value=[],n.value=[],r.value=[]}}}const Ipe={"image/jpeg":"jpg","image/png":"png","image/webp":"webp","image/avif":"avif","image/heic":"heic","image/gif":"gif"},Ape="wysiwyg",xpe=10*1024*1024,Cpe=e=>{if(e instanceof File)return e;const t=Ipe[e.type]??"bin";return new File([e],`photo.${t}`,{type:e.type})},Rpe=()=>{var e;if(typeof window>"u")return"";const t=((e=window.location)==null?void 0:e.host)??"";return t.includes("stage.")||t.includes("localhost")?"stage.":t.includes("qa.")?"qa.":t.includes("preprod.")?"preprod.":""},Ope=()=>`https://www.${Rpe()}sports.ru/photobooth/images/`;function kpe(){return{uploadPhoto:async e=>{var t;if(e.size>xpe)throw new Error("ÐзобÑажение не должно пÑевÑÑаÑÑ 10 ÐÐ");const n=new FormData;n.append("file",Cpe(e)),n.append("bucket",Ape);const r=await fetch(Ope(),{method:"POST",credentials:"include",referrerPolicy:"no-referrer-when-downgrade",body:n});if(!r.ok)throw new Error("ÐÑибка загÑÑзки ÑоÑо");const o=(t=(await r.json()).result)==null?void 0:t.id;if(!o)throw new Error("ÐÑибка загÑÑзки ÑоÑо");return o}}}function Lpe({sbLength:e,totalPhotos:t}){const n=gpe(),r=ie(!1);return ke(e,o=>{o>Fl?n.trackError(ns.MAX_LENGTH):n.clearError(ns.MAX_LENGTH)}),ke(t,o=>{o<ob&&n.clearError(ns.MAX_MEDIA)}),{analytics:n,onTextareaFocus:()=>{r.value||(r.value=!0,n.trackInputActivate())},resetAnalyticsState:()=>{r.value=!1,n.resetInputActivate(),n.clearError(ns.MAX_LENGTH),n.clearError(ns.MAX_MEDIA)},trackAddMediaErrors:(o,s)=>{o>s&&n.trackError(ns.MAX_MEDIA)}}}const Mpe="sports:create-short-post:draft",ib=e=>`${Mpe}:${e}`,f1="short-post:draft-updated",ag=()=>typeof window<"u",nT=e=>bu(e.body)&&e.photos.length===0,Ppe=(e,t)=>{const n=t.reduce((r,o)=>(o.status==="uploaded"&&o.url&&r.push({id:o.id,url:o.url}),r),[]);return{body:bu(e)?[]:e,photos:n}},Bpe=e=>e.photos.map(t=>({id:t.id,blob:null,url:t.url,status:"uploaded"})),Npe=e=>{if(!ag()||!e)return null;try{const t=localStorage.getItem(ib(e));if(!t)return null;const n=JSON.parse(t);return!n||!Array.isArray(n.body)?null:{body:bu(n.body)?[]:n.body,photos:n.photos??[]}}catch{return null}},Dpe=(e,t)=>{if(!(!ag()||!e))try{localStorage.setItem(ib(e),JSON.stringify(t))}catch{}},rT=e=>{if(!(!ag()||!e))try{localStorage.removeItem(ib(e))}catch{}},Upe=()=>{ag()&&window.dispatchEvent(new CustomEvent(f1))},Hpe=200;function Fpe({enabled:e=!1,userId:t,body:n,photos:r,onDraftApplied:o,onDraftCleared:s}){let a=null,u=!1;const f=()=>{a&&(clearTimeout(a),a=null)},d=()=>{u=!0;try{Upe()}finally{u=!1}},p=()=>
94{if(!qe(e))return;const w=Ppe(qe(n),qe(r));if(nT(w)){rT(qe(t));return}Dpe(qe(t),w)},h=()=>{if(!qe(e))return null;const w=Npe(qe(t));return!w||nT(w)?null:w},y=()=>{const w=h();return w?(o(w),!0):!1},m=()=>{if(u||!qe(e))return;f();const w=h();if(w){o(w);return}s()},v=()=>{f(),rT(qe(t)),d()},b=()=>{qe(e)&&(f(),a=setTimeout(p,Hpe))},S=()=>{f(),p(),qe(e)&&d()};return We(()=>{window.addEventListener(f1,m)}),bt(()=>{window.removeEventListener(f1,m),f()}),{scheduleSave:b,saveImmediatelyAndNotify:S,loadFromStorage:y,clear:v}}const oT="open-create-short-post",iT="close-create-short-post",jpe={class:"create-short-post-modal__mobile-header"},Vpe={class:"create-short-post-modal__author-mobile"},qpe={class:"create-short-post-modal__actions-row"},Wpe={class:"create-short-post-modal__author-desktop"},zpe=".create-short-post-modal",Gpe=xe({__name:"CreateShortPostModal",props:Nt({authorId:{type:String,required:!0},authorName:{type:String,required:!0},authorAvatarUrl:{type:String,default:""},placeholder:{type:String,default:"ЧÑо нового?"},gqlClient:{type:Object,default:void 0},isPublishing:{type:Boolean,default:!1},source:{type:String,default:uO.MY_FEED},modalMode:{type:String,default:"create"},hasError:{type:Boolean,default:!1},errorMessage:{type:String,default:Zp},uploadPhoto:{type:Function,default:void 0},initialBody:{type:Array,default:()=>[]},initialPhotos:{type:Array,default:()=>[]},authorReadonly:{type:Boolean,default:!1},isSaving:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},siteName:{type:String,default:void 0}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:Nt(["publish","save","unsupported-paste","clear-error"],["update:modelValue"]),setup(e,{expose:t,emit:n}){const r=e,o=n,s=()=>{r.hasError&&o("clear-error")},a=Yn(e,"modelValue"),u=ie(!1),f=ie(!1),d=ie(null),p=J(()=>d.value??r.source),h=ie(),y=ie(),{uploadPhoto:m}=kpe(),v=ie(null),b=J(()=>r.modalMode==="edit"),S=J(()=>r.modalMode==="create"),w=J(()=>S.value||b.value),{body:T,setBody:I,photos:C,existingPhotos:A,totalPhotos:$,sbLength:k,canPublish:x,isUploading:O,hasUploadError:M,uploadedMedia:j,addPhotos:V,removePhoto:W,removeExistingPhoto:Y,retryPhoto:ne,reset:Z}=Tpe({initialBody:r.initialBody,initialPhotos:r.initialPhotos,uploadPhoto:r.uploadPhoto??m}),{scheduleSave:ae,saveImmediatelyAndNotify:ce,loadFromStorage:q,clear:ue}=Fpe({enabled:S,userId:xt(r,"authorId"),body:T,photos:C,onDraftApplied:Me=>{I(Me.body,l1(Me.body)),A.value=[],C.value=Bpe(Me),gt(()=>{var Le;(Le=v.value)==null||Le.setContent(Me.body)})},onDraftCleared:()=>{I([],0),A.value=[],C.value=[],gt(()=>{var Me;(Me=v.value)==null||Me.clear()})}});ke(()=>r.modalMode,Me=>{Me==="success"&&ue()}),ke(()=>r.initialPhotos,Me=>{A.value=[...Me??[]]});const G=ie(!1);ke([a,()=>r.loading],([Me,Le])=>{if(!Me||Le||G.value||(G.value=!0,S.value&&q()))return;const Ze=[...r.initialBody??[]];I(Ze,l1(Ze)),A.value=[...r.initialPhotos??[]],C.value=[],gt(()=>{var kr;(kr=v.value)==null||kr.setContent(Ze)})});const re=J(()=>Z$(K$(T.value))!==Z$(K$(r.initialBody))||C.value.length>0||A.value.length!==r.initialPhotos.length),Oe=Me=>{s(),I(Me.body,Me.length),ae()},Ee=()=>b.value?$e():oe(),Pe=J(()=>b.value&&!r.isSaving&&re.value),{analytics:Ae,onTextareaFocus:le,resetAnalyticsState:Q,trackAddMediaErrors:P}=Lpe({sbLength:k,totalPhotos:$}),F=async Me=>{s();const Le=$.value;await V(Me),P(Me.length,$.value-Le),ae()},B=J(()=>[...A.value.map((Me,Le)=>({id:Me.id??`existing-${Le}`,url:Me.url,status:"uploaded"})),...C.value]),K=Me=>{s();const Le=A.value.length;Me<Le?Y(Me):W(Me-Le),ae()},L=async Me=>{const Le=A.value.length;Me>=Le&&(await ne(Me-Le),ae())};ke(a,(Me,Le)=>{if(Me){b.value||Ae.trackToCreate(p.value,Ma.POST),typeof Image<"u"&&(new Image().src=Y5(r.siteName));return}Le&&S.value&&Ae.trackClose({mode:Aa.PUBLICATION,source:p.value,type:Ma.POST,confirmed:!0}),d.value=null,h.value=void 0,Q()},{flush:"sync",immediate:!0});const D=ie(null),{atBottom:se,start:ve,stop:de}=$pe(D);ke(a,Me=>{Me?gt(ve):de()},{flush:"post",immediate:!0});const{selectedBlogId:_e,selectedCreatorType:Se,dropdownItems:pe,currentAuthorName:ge,currentAuthorAvatarUrl:fe,onAuthorSelect:Ce,reset:H}
94=mpe({authorId:xt(r,"authorId"),authorName:xt(r,"authorName"),authorAvatarUrl:xt(r,"authorAvatarUrl"),gqlClient:xt(r,"gqlClient"),presetBlog:y}),z=J(()=>r.isPublishing||r.isSaving),{isConfirmCloseOpen:ee,onCloseRequest:i,forceClose:l,markPublished:c}=Epe({isOpen:a,isPublishing:z,shouldConfirmClose:Pe,onReset:()=>{var Me;S.value&&ce(),Z(),(Me=v.value)==null||Me.clear(),y.value=void 0,h.value=void 0,H(),G.value=!1},overlayContentSelector:zpe}),g=J(()=>k.value>=Fl?k.value:void 0),_=J(()=>$.value>=ob),E=J(()=>x.value&&!r.isPublishing&&!O.value&&!M.value),R=J(()=>E.value&&!r.isSaving&&re.value);function oe(){E.value&&(c(),o("publish",{body:T.value,mediaList:j.value,blogId:_e.value,tagIDs:h.value,source:p.value}))}function $e(){R.value&&(c(),o("save",{body:T.value,mediaList:j.value}))}function me(Me){s(),Ce(Me),Ae.trackChooseAuthor(Se.value,Me.key)}function he(){Ae.trackToCreateBlog()}async function Te(){Ae.trackClose({mode:b.value?Aa.EDITION:Aa.PUBLICATION,source:p.value,type:Ma.POST,confirmed:!0}),await gt(),l()}function yn(){Ae.trackClose({mode:b.value?Aa.EDITION:Aa.PUBLICATION,source:p.value,type:Ma.POST,confirmed:!1})}t({markPublished:c});const Fn=Me=>{const Le=Me instanceof CustomEvent?Me.detail:void 0;d.value=Le?.source??null,h.value=Le?.tagIDs,y.value=Le!=null&&Le.blogId?{id:Le.blogId,name:Le.blogName??"",avatarUrl:Le.blogAvatarUrl}:void 0,a.value=!0};return We(()=>{b.value||(window.addEventListener(oT,Fn),window.addEventListener(iT,l))}),bt(()=>{b.value||(window.removeEventListener(oT,Fn),window.removeEventListener(iT,l))}),(Me,Le)=>(U(),X(He,null,[ye(N(Hu),{modelValue:a.value,"onUpdate:modelValue":Le[5]||(Le[5]=Ze=>a.value=Ze),class:Be(["create-short-post-modal",{"create-short-post-modal--success":e.modalMode==="success","create-short-post-modal--edit":b.value,"create-short-post-modal--at-bottom":N(se)}]),"data-test":"create-short-post-modal"},gr({text:be(()=>[e.modalMode==="success"?(U(),we(ufe,{key:0,"author-id":e.authorId,"site-name":e.siteName},null,8,["author-id","site-name"])):e.loading?(U(),we(J5,{key:1,"with-actions":"","data-test":"create-short-post-modal-skeleton"})):(U(),X(He,{key:2},[ye(N(rpe),{ref_key:"editorRef",ref:v,"initial-body":N(T),placeholder:e.placeholder,"loading-skeleton":b.value,class:"create-short-post-modal__editor",onUpdate:Oe,onInputActivate:N(le),onUnsupportedPaste:Le[2]||(Le[2]=Ze=>o("unsupported-paste")),onSubmit:Ee},null,8,["initial-body","placeholder","loading-skeleton","onInputActivate"]),te("div",{ref_key:"scrollAnchor",ref:D,class:"create-short-post-modal__scroll-anchor","aria-hidden":"true"},null,512)],64))]),_:2},[w.value?{name:"head-content",fn:be(()=>[te("div",jpe,[ye(N(Nu),{width:"24px",height:"24px",class:"create-short-post-modal__back-btn","data-test":"create-short-post-modal-back-btn",onClick:Le[0]||(Le[0]=Ze=>N(i)(!1))}),Le[7]||(Le[7]=te("span",{class:"create-short-post-modal__title ui-body-lg-medium"}," ÐапиÑаÑÑ Ð¿Ð¾ÑÑ ",-1)),Le[8]||(Le[8]=te("div",{width:"24"},null,-1))])]),key:"0"}:void 0,w.value&&!e.loading?{name:"header",fn:be(()=>[te("div",Vpe,[ye(N$,{id:"csp-author-mobile",modelValue:u.value,"onUpdate:modelValue":Le[1]||(Le[1]=Ze=>u.value=Ze),placement:"top-start",items:e.authorReadonly?[]:N(pe),"active-key":N(_e)??e.authorId,"selected-name":N(ge),"selected-avatar-url":N(fe),disabled:e.authorReadonly,"avatar-size":"4xs","data-test":"create-short-post-author-dropdown-mobile",onSelect:me,onCreateBlog:he},null,8,["modelValue","items","active-key","selected-name","selected-avatar-url","disabled"])])]),key:"1"}:void 0,w.value&&!e.loading?{name:"actions",fn:be(()=>[B.value.length?(U(),we(Ude,{key:0,photos:B.value,class:"create-short-post-modal__carousel",onRemove:K,onRetry:L},null,8,["photos"])):Ie("",!0),e.hasError?(U(),we(Jce,{key:1,class:"create-short-post-modal__error","error-message":e.errorMessage},null,8,["error-message"])):Ie("",!0),te("div",qpe,[te("div",Wpe,[ye(N$,{id:"csp-author-desktop",modelValue:f.value,"onUpdate:modelValue":Le[3]||(Le[3]=Ze=>f.value=Ze),placement:"top-start",items:e.authorReadonly?[]:N(pe),"active-key":N(_e)??e.authorId,"selected-name":N(ge),"selected-avatar-url":N(fe),disabled:e.authorReadonly,"avatar-size":"5xs","data-test":"create-short-post-author-dropdown-desktop",onSelect:me,onCreateBlog:he},null,8,["modelValue","items","active-key","selected-name","selected-avatar-url","disabled"])]),b.value?(U(),we(D$,{key:0,"can-publish":R.value,"photo-limit-reached":_.value,"char-count":g.value,"max-chars":N(Fl),"published-state":!re.value,"data-test":"edit-short-post-save-btn",onPublish:$e,onPhotoAdd:F},gr({default:be(()=>[mt(Ue(re.value?"ÐзмениÑÑ":"ÐпÑбликован")+" ",1)]),_:2},[re.value?void 0:{name:"icon-left",fn:be(()=>[ye(N(lC),{width:"16px",height:"16px"})]),key:"0"}]),1032,["can-publish","photo-limit-reached","char-count","max-chars","published-state"])):(U(),we(D$,{key:1,"can-publish":E.value,"photo-limit-reached":_.value,"char-count":g.value,"max-chars":N(Fl),onPublish:oe,onPhotoClick:Le[4]||(Le[4]=Ze=>N(Ae).trackAddMedia()),onPhotoAdd:F},{"icon-right":be(()=>[ye(N(X0),{width:"16px",height:"16px"})]),_:1},8,["can-publish","photo-limit-reached","char-count","max-chars"]))])]),key:"2"}:void 0]),1032,["modelValue","class"]),ye(zce,{modelValue:N(ee),"onUpdate:modelValue":Le[6]||(Le[6]=Ze=>Xe(ee)?ee.value=Ze:null),text:"ÐÑ ÑвеÑенÑ, ÑÑо Ñ
оÑиÑе вÑйÑи? ÐÑи закÑÑÑии окна Ð¸Ð·Ð¼ÐµÐ½ÐµÐ½Ð¸Ñ Ð½Ðµ ÑоÑ
ÑанÑÑÑÑ","confirm-label":"ÐÑйÑи","data-test-prefix":"short-post-confirm-edit-close",onConfirm:Te,onCancel:yn},null,8,["modelValue"])],64))}}),xbe=Ui(Gpe,[["__scopeId","data-v-dfd93c2f"]]);$t(pC),$t(hC);let qm;const Cf=e=>{if(e&&(qm=e,rb(e)),!qm)throw new Error("[Sports][Short Post] оÑÑÑÑÑÑвÑÐµÑ Ð¸Ð½ÑÑÐ°Ð½Ñ Ð»Ð¾Ð³Ð³ÐµÑа");return{logger:qm}};let Wm;const ea=e=>{if(e&&(Wm=e),!Wm)throw new Error("[Sports][Short Post] оÑÑÑÑÑÑвÑÐµÑ Ð¸Ð½ÑÑÐ°Ð½Ñ GQL Client");return{gqlClient:Wm}};var fO=(e=>(e.Avif="AVIF",e.Gif="GIF",e.Jpeg="JPEG",e.Png="PNG",e.Svg="SVG",e.Webp="WEBP",e))(fO||{}),dO=(e=>(e.Original="ORIGINAL",e.Size_200_314="SIZE_200_314",e.Size_256_128="SIZE_256_128",e.Size_320_168="SIZE_320_168",e.Size_343_172="SIZE_343_172",e.Size_343_235="SIZE_343_235",e.Size_343_296="SIZE_343_296",e.Size_375_268="SIZE_375_268",e.Size_396_198="SIZE_396_198",e.Size_396_412="SIZE_396_412",e.Size_672_579="SIZE_672_579",e.Size_744_372="SIZE_744_372",e.Size_808_404="SIZE_808_404",e.Width_320="WIDTH_320",e.Wi
94dth_640="WIDTH_640",e.Width_730="WIDTH_730",e))(dO||{}),Ype=(e=>(e.Active="ACTIVE",e.Deleted="DELETED",e.Draft="DRAFT",e.Hidden="HIDDEN",e.PublishedDraft="PUBLISHED_DRAFT",e))(Ype||{}),d1=(e=>(e.All="ALL",e.Full="FULL",e.Short="SHORT",e))(d1||{}),Kpe=(e=>(e.Admin="ADMIN",e.Wysiwyg="WYSIWYG",e))(Kpe||{}),p1=(e=>(e.AmateurSportContest="AMATEUR_SPORT_CONTEST",e.BookmakerRating="BOOKMAKER_RATING",e.CyberMatchCenter="CYBER_MATCH_CENTER",e.CyberMatchCenterTournament="CYBER_MATCH_CENTER_TOURNAMENT",e.CyberTournament="CYBER_TOURNAMENT",e.DotaMatch="DOTA_MATCH",e.FantasyIndex="FANTASY_INDEX",e.FantasySquad="FANTASY_SQUAD",e.FantasyTournament="FANTASY_TOURNAMENT",e.Faq="FAQ",e.Hub="HUB",e.Match="MATCH",e.News="NEWS",e.Olympic="OLYMPIC",e.Poll="POLL",e.Post="POST",e.PredictionHub="PREDICTION_HUB",e.Predictor="PREDICTOR",e.PredictorIndex="PREDICTOR_INDEX",e.PredictorTournament="PREDICTOR_TOURNAMENT",e.Short="SHORT",e.TagOther="TAG_OTHER",e.TagTournament="TAG_TOURNAMENT",e))(p1||{}),sb=(e=>(e.Change="CHANGE",e.Error="ERROR",e.New="NEW",e.Revoke="REVOKE",e))(sb||{}),pO=(e=>(e.Post="POST",e))(pO||{});const Zpe=()=>" structuredBody { type raw value { ... on StructuredBodyParagraph { size elements { type value { ... on StructuredBodyParagraphElementText { text format { bold strike underscore color } } ... on StructuredBodyParagraphElementLink { text href format { bold strike underscore } } } } } ... on StructuredBodyList { items { elements { type value { ... on StructuredBodyParagraphElementText { text format { bold strike underscore color } } ... on StructuredBodyParagraphElementLink { text href format { bold strike underscore } } } } } style type } ... on StructuredBodyImage { alt text width height picture { url } } ... on StructuredBodyLinkedImage { href attrs { rel } image { alt text width height picture { url } } } ... on StructuredBodySubtitle { text } } } ",hO=Zpe,Qpe=()=>` id type title isShort teaserText commentsCount hot recommendationImage published { rfc3339 } reactions { count selected reaction { content { imageUrl } id } } pageInfo { desktopURL relativeURL } blog { id name relativeUrl } status authors { id url following counters { followersCount } picture { url } nick badge { imageURLDark imageURL description } } ${hO()} `,gO=Qpe,mO=()=>`( $blogID: ID!, $amount: Int, $lastID: ID, $type: PostType, $imageResize: PicturePostSize!, $imageExt: PictureExtension!, $imageScale: Int, $imageSmartCropEnabled: Boolean, $imageAspectWidth: Int, $imageAspectHeight: Int, $imageKeepSmall: Boolean ) { postQueries { byBlogID(blogID: $blogID, amount: $amount, lastID: $lastID, type: $type) { hasMore lastId posts { ${gO()} topPicture( input: { resize: $imageResize, ext: $imageExt, scale: $imageScale, smartCropEnabled: $imageSmartCropEnabled, aspectWidth: $imageAspectWidth, aspectHeight: $imageAspectHeight, keepSmall: $imageKeepSmall } ) { url } mediaList { id picture( input: { resize: $imageResize, ext: $imageExt, scale: $imageScale, smartCropEnabled: $imageSmartCropEnabled, aspectWidth: $imageAspectWidth, aspectHeight: $imageAspectHeight, keepSmall: $imageKeepSmall } ) { url } } } } } }`;mO.operationName="getPostsByBlogId";const Jpe=mO,yO=()=>`( $userID: ID!, $amount: Int, $lastID: ID, $type: PostType, $imageResize: PicturePostSize!, $imageExt: PictureExtension!, $imageScale: Int, $imageSmartCropEnabled: Boolean, $imageAspectWidth: Int, $imageAspectHeight: Int, $imageKeepSmall: Boolean ) { postQueries { byUserID(userID: $userID, amount: $amount, lastID: $lastID, type: $type) { hasMore lastId posts { ${gO()} topPicture( input: { resize: $imageResize, ext: $imageExt, scale: $imageScale, smartCropEnabled: $imageSmartCropEnabled, aspectWidth: $imageAspectWidth, aspectHeight: $imageAspectHeight, keepSmall: $imageKeepSmall } ) { url } mediaList { id picture( input: { resize: $imageResize, ext: $imageExt, scale: $imageScale, smartCropEnabled: $imageSmartCropEnabled, aspectWidth: $imageAspectWidth, aspectHeight: $imageAspectHeight, keepSmall: $imageKeepSmall } ) { url } } } } } }`;yO.operationName="getPostsByUserId";const Xpe=yO,vO=()=>"($postId: ID!){ postMutations { delete (id: $postId){ status } } }";vO.operationName="deletePost";
94const ehe=vO,_O=()=>" { reactionQueries { catalog { id content { imageUrl } } } }";_O.operationName="getReactionCatalog";const the=_O,bO=()=>`( $postID: ID!, $imageResize: PicturePostSize!, $imageExt: PictureExtension!, $imageScale: Int, $imageSmartCropEnabled: Boolean, $imageAspectWidth: Int, $imageAspectHeight: Int, $imageKeepSmall: Boolean ) { postQueries { byID(ID: $postID) { id type title isShort teaserText status commentsCount hot recommendationImage published { rfc3339 } reactions { count selected reaction { content { imageUrl } id } } pageInfo { desktopURL relativeURL } blog { id name relativeUrl subscribed avatar { url } } authors { id url following counters { followersCount } picture { url } nick badge { imageURLDark imageURL description } } topPicture { url } mediaList { id picture( input: { resize: $imageResize, ext: $imageExt, scale: $imageScale, smartCropEnabled: $imageSmartCropEnabled, aspectWidth: $imageAspectWidth, aspectHeight: $imageAspectHeight, keepSmall: $imageKeepSmall } ) { url } } ${hO()} } } }`;bO.operationName="getShortPostById";const nhe=bO,wO=()=>"( $postID: ID!, $imageResize: PicturePostSize!, $imageExt: PictureExtension!, $imageScale: Int, $imageSmartCropEnabled: Boolean, $imageAspectWidth: Int, $imageAspectHeight: Int, $imageKeepSmall: Boolean ) { postQueries { byID(ID: $postID) { id mediaList { id picture( input: { resize: $imageResize, ext: $imageExt, scale: $imageScale, smartCropEnabled: $imageSmartCropEnabled, aspectWidth: $imageAspectWidth, aspectHeight: $imageAspectHeight, keepSmall: $imageKeepSmall } ) { url } } } } }";wO.operationName="getPreviewMediaList";const rhe=wO,EO=()=>"($input: ReactInput!) { reactionMutations { react(input: $input) { reactType currentReaction { id content { imageUrl } } objectReactions { count selected reaction { id content { imageUrl } } } } } }";EO.operationName="reactOnObject";const ohe=EO,SO=()=>"( $postID: ID! $structuredBody: String! $status: PostStatus! $editSource: editSource $mediaList: [PostMediaInput!] ) { postMutations { edit(input: { postID: $postID structuredBody: $structuredBody status: $status editSource: $editSource mediaList: $mediaList }) { status error { ... on DefaultError { message } ... on PostEditError { message code } ... on PostStopwordError { message words } ... on PostInvalidIframeError { message iframes } } } } }";SO.operationName="editShortPost";const ihe=SO,she=e=>({async getReactionCatalog(){return(await e.gqlQuery(the,{})).catalog},async setReaction(t){return(await e.gqlMutation(ohe,{input:t})).reactionMutations.react}}),$O=({gqlClient:e}={})=>{const{gqlClient:t}=ea(e),{getReactionCatalog:n,setReaction:r}=she(t),o=ie([]),s=ie(!1),a=ie(!1),u=ie(!1),f=ie(!1);return{catalog:o,isLoading:s,isError:a,fetchCatalog:async()=>{o.value=[],s.value=!0,a.value=!1;try{o.value=await n()}catch{a.value=!0}finally{s.value=!1}},isReactionPending:u,isReactionError:f,setReaction:async d=>{u.value=!0,f.value=!1;try{return await r(d)}catch{return f.value=!0,null}finally{u.value=!1}}}},ahe="ÐÑибка пÑи ÑедакÑиÑовании поÑÑа",pd=e=>({imageResize:e?.resize||dO.Width_640,imageExt:e?.ext||fO.Webp,imageScale:e?.scale,imageSmartCropEnabled:e?.smartCropEnabled,imageAspectWidth:e?.aspectWidth,imageAspectHeight:e?.aspectHeight,imageKeepSmall:e?.keepSmall}),Rf=e=>({async getShortPostsByBlogId({id:t,amount:n,lastId:r,imageInput:o}){return(await e.gqlQuery(Jpe,{blogID:t,amount:n,lastID:r,type:d1.Short,...pd(o)})).byBlogID},async getShortPostsByUserId({id:t,amount:n,lastId:r,imageInput:o}){return(await e.gqlQuery(Xpe,{userID:t,amount:n,lastID:r,type:d1.Short,...pd(o)})).byUserID},async getPostById({id:t,imageInput:n}){const r=await e.gqlQuery(nhe,{postID:t,...pd(n)});return r?.byID},async getPreviewMediaList({postId:t,imageInput:n}){var r;const o=await e.gqlQuery(rhe,{postID:t,...pd(n)});return((r=o?.byID)==null?void 0:r.mediaList)??[]},async deletePost({id:t}){return(await e.gqlMutation(ehe,{postId:t})).postMutations.delete.status},async editPost(t){const n=(await e.gqlMutation(ihe,t)).postMutations.edit;return n.error?(Cf().logger.error({error:n.error},"[ShortPost] editPost error"),{error:aO(n.error,ahe)}):{status:n.status}}}),sT={а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",Ñ:"e",ж:"zh",з:"z",и:"i",й:"i",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",Ñ:"r",Ñ:"s",Ñ:"t",Ñ:"u",Ñ:"f",Ñ
:"h",Ñ:"c",Ñ:"ch",Ñ:"sh",Ñ:"shch",Ñ:"",Ñ:"y",Ñ:"",Ñ:"e",Ñ:"yu",Ñ:"ya",Ñ:"i",Ñ:"i",Ñ:"e",Ò:"g",Ñ:"u"},aT=60,uhe="section",ab=e=>{if(!e)return"";const t=Array.from(e.toLowerCase()).map(r=>r in sT?sT[r]:r).join("").replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"");if(!t)return"";const n=lhe(t);return/^\d/.test(n)?`${uhe}-${n}`:n};function lhe(e){if(e.length<=aT)return e;const t=e.slice(0,aT),n=t.lastIndexOf("-");return n>0?t.slice(0,n):t}var lt=(e=>(e.SB_TYPE_PARAGRAPH="paragraph",e.SB_TYPE_SUBTITLE="subtitle",e.SB_TYPE_LIST="list",e.SB_TYPE_IMAGE="image",e.SB_TYPE_LINKED_IMAGE="linked-image",e.SB_TYPE_IFRAME="iframe",e.SB_TYPE_INSTAGRAM="instagram",e.SB_TYPE_TWITTER="twitter",e.SB_TYPE_YOUTUBE="youtube",e.SB_TYPE_TELEGRAM="telegram",e.SB_TYPE_VIMEO="vimeo",e.SB_TYPE_DIVIDER="divider",e.SB_TYPE_ADS_TELEPORT_TARGET="adsTeleportTarget",e.SB_TYPE_ADS="ads",e.SB_TYPE_OLD_AD="ad",e.SB_TYPE_POLL="poll",e.SB_TYPE_HTML="html-source",e.SB_TYPE_MATCH_FOOTBALL="football-match",e.SB_TYPE_MATCH_HOCKEY="hockey-match",e.SB_TYPE_MATCH_BASKETBALL="basketball-match",e.SB_TYPE_MATCH_TENNIS="tennis-match",e.SB_TYPE_LAST_MATCHES="last-matches",e.SB_TYPE_MATCH_PREDICTION="match-prediction",e.SB_TYPE_CONTENTS="contents",e.SB_TYPE_VIDEO="video",e.SB_TYPE_AUTOMOTO_RACE="automoto-race",e.SB_TYPE_BIATHLON_RACE="biathlon-race",e))(lt||{}),Jd=(e=>(e.TEXT="text",e.LINK="link",e.BREAK="break",e))(Jd||{}),TO=(e=>(e.BOLD="bold",e.ITALIC="italic",e.UNDERSCORE="underscore",e.STRIKE="str
94ike",e.HIGHLIGHT="highlight",e.COLOR="color",e))(TO||{}),jl=(e=>(e.POST="post",e.MATCH="match",e.DEFAULT="",e))(jl||{}),IO=(e=>(e.JPG="jpg",e))(IO||{});const che="section",ub=e=>{const t=new Map;let n=0;return e.map(r=>{if(r?.type!==lt.SB_TYPE_SUBTITLE)return"";n+=1;const o=r.value?.text||"",s=ab(o.replace(/\\n/g," "))||`${che}-${n}`,a=t.get(s)||0;return t.set(s,a+1),a===0?s:`${s}-${a+1}`})},fhe=e=>e.map((t,n)=>t?.type!==lt.SB_TYPE_SUBTITLE?"":`${t.value?.text||""}__${n}`),dhe=e=>e.replace(/\\n/g,"");function phe(e){const t=e.reduce((s,a)=>{if(a.type==="subtitle"){const u=a.value;if(u.text&&u.text.trim())return Math.min(s,u.level)}return s},1/0);if(t===1/0)return[];const n=2-t;let r=!1;const o=ub(e);return e.reduce((s,a,u)=>{if(a.type==="subtitle"){const f={...a.value};if(!f.text||!f.text.trim())return s;const d=f.level+n,p={value:dhe(f.text),anchor:o[u]};d===2?(r=!0,s.push({h2:p,h3:[]})):d===3&&(r?s.length>0&&s[s.length-1].h3.push(p):s.push({h2:p,h3:[]}))}return s},[])}const hhe={class:"sb-contents"},ghe={class:"sb-contents_block"},mhe=["href"],yhe={key:0,class:"sb-contents__subtitles-block"},vhe=["href"],_he=xe({__name:"PostContents",props:{content:{type:Array,required:!0}},setup(e){const t=phe(e.content);return(n,r)=>(U(),X("div",hhe,[r[0]||(r[0]=te("h2",{class:"sb-contents__title"}," СодеÑжание ",-1)),te("div",ghe,[te("ul",null,[(U(!0),X(He,null,dt(N(t),o=>(U(),X("li",{key:o.h2.value,class:"sb-contents__main-title"},[te("a",{href:"#"+o.h2.anchor,class:"sb-contents__link sb-contents__link-h2"},Ue(o.h2.value),9,mhe),o.h3.length?(U(),X("ul",yhe,[(U(!0),X(He,null,dt(o.h3,s=>(U(),X("li",{key:s.value},[te("a",{href:"#"+s.anchor,class:"sb-contents__link"},Ue(s.value),9,vhe)]))),128))])):Ie("",!0)]))),128))])])]))}}),Hi=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},bhe=Hi(_he,[["__scopeId","data-v-7ba0a714"]]),whe=xe({__name:"SbContents",props:{value:{type:Object,required:!0}},setup(e){return(t,n)=>e.value?(U(),we(bhe,{key:0,content:e.value},null,8,["content"])):Ie("",!0)}}),Ehe={},She={class:"sb-divider"};function $he(e,t){return U(),X("div",She)}const The=Hi(Ehe,[["render",$he],["__scopeId","data-v-b8bf43dd"]]),Cbe=e=>Object.keys(e).length?Object.keys(e).reduce((t,n)=>n===TO.COLOR?t:e[n]?t+` sb-text--${n}`:t,""):"",Ihe=e=>e?qhe.some(t=>e.match(new RegExp(`^(?:http(?:s)?://)?(?:[^.]+.)?${t}(/.*)?$`))):!1,Ahe=e=>Ihe(e)?{}:{rel:Whe,target:"_blank"},xhe=e=>Jhe.some(t=>e.indexOf(t)===0),uT=({source:e,width:t,screen:n,retina:r})=>{const o=r?n*2:n,s=Qhe.find(u=>u>=n);if(!s||o>t)return null;const a=new URL(e);return a.searchParams.delete("h"),a.searchParams.delete("s"),a.searchParams.set("w",`${s}`),r&&a.searchParams.set("s","2x"),`${a.toString()} ${r?2:1}x`},lT=({source:e,width:t,screen:n})=>[uT({source:e,width:t,screen:n,retina:!1}),uT({source:e,width:t,screen:n,retina:!0})].filter(Boolean).join(", "),Che=e=>{const{picture:t,width:n}=e,r=t?.url??"";return!xhe(r)||!n?[]:[...h1<n?[{media:`(min-width: ${h1}px)`,srcset:lT({width:n,source:r,screen:Zhe})}]:[],...Khe.filter(o=>o<n).map(o=>({media:`(max-width: ${o}px)`,srcset:lT({width:n,source:r,screen:o})}))].filter(({srcset:o})=>!!o)},Rbe=(e,{autoplay:t=!1}={})=>{const{id:n,start:r,end:o}=e,s=[r?`start=${r}`:"",o?`end=${o}`:"",t?"autoplay=1":""].filter(Boolean).join("&");return`${RO.youtube}${n}?${s}`},Obe=(e,t=Xhe)=>`${ege}${tge[IO.JPG]}${e}/${t}.jpg`,kbe=e=>`${RO.vimeo}${e}`,Rhe=()=>typeof window>"u"?!1:window.innerWidth<=h1,Ohe=["data-hight-src"],khe=["media","srcset"],Lhe=["src","alt","width","height","loading","fetchpriority","decoding"],Mhe={key:0,class:"sb-image__text"},Phe=xe({__name:"SbImage",props:{value:{type:Object,required:!0},priority:{type:Boolean,default:!1},index:{type:Number,default:0}},emits:["click"],setup(e,{emit:t}){const n=e,r=t,o=d=>{r("click",{type:lt.SB_TYPE_IMAGE,event:d,image:n.value,blockIndex:n.index})},s=J(()=>n.value?.alt||""),a=J(()=>{const{width:d,height:p}=n.value||{};return!!(p&&d&&p/d>1)}),u=J(()=>Che(n.value)),f=J(()=>n.value?.full?.url??n.value?.picture?.url??n.value?.source);return(d,p)=>(U(),X("figure",{class:Be(["sb-image",{"sb-image--vertical":a.value}]),"data-hight-src":f.value,onClick:o},[te("picture",null,[(U(!0),X(He,null,dt(u.value,h=>(U(),X("source",{key:h.media,media:h.media,srcset:h.srcset},null,8,khe))),128)),te("img",{src:f.value,alt:s.value,width:e.value?.width||void 0,height:e.value?.height||void 0,loading:e.priority?"eager":"lazy",fetchpriority:e.priority?"high":void 0,decoding:e.priority?"sync":"async",class:"sb-image__img",style:at({width:e.value?.width?`${e.value.width}px`:"100%"})},null,12,Lhe)]),n.value.text?(U(),X("figcaption",Mhe,Ue(n.value.text),1)):Ie("",!0)],10,Ohe))}}),AO=Hi(Phe,[["__scopeId","data-v-22642cad"]]),Bhe=["href"],Nhe=xe({__name:"SbLinkedImage",props:{value:{type:Object,required:!0},priority:{type:Boolean,default:!1}},setup(e){const t=e,n=J(()=>t.value?.attrs??Ahe(t.value?.href||""));return(r,o)=>(U(),X("a",un({href:t.value.href,class:"sb-linked-image"},n.value),[ye(N(AO),{value:t.value.image,priority:t.priority},null,8,["value","priority"])],16,Bhe))}}),Dhe=Hi(Nhe,[["__scopeId","data-v-c53215be"]]);var xO=(e=>(e.Ordered="ordered",e.Unordered="unordered",e))(xO||{});const Uhe=xe({__name:"SbParagraph",props:{value:{type:Object,default:()=>({})},type:{type:String,required:!0},raw:{type:String,default:""}},setup(e){const t=e,n=J(()=>({[Jd.TEXT]:Jt(()=>Rt(()=>import("./SbParagraphText.vue.es-MYdZlHkS.js"),[])),[Jd.LINK]:Jt(()=>Rt(()=>import("./SbParagraphLink.vue.es-OvQWziPk.js"),__vite__mapDeps([4,5]))),[Jd.BREAK]:Jt(()=>Rt(()=>import("./SbParagraphBreak.vue.es-Cx3r0riQ.js"),[]))})),r=J(()=>t.value?.size?`sb-paragraph--${t.value?.size}`:"");return(o,s)=>(U(),X("p",{class:Be(["sb-paragraph",r.value])},[(U(!0),X(He,null,dt(t.value?.elements,(a,u)=>(U(),we(Xt(n.value[a.type]),{key:`${u}__${a.type}`,value:a.value},null,8,["value"]))),128))],2))}}),CO=Hi(Uhe,[["__scopeId","data-v-6989bb43"]]),Hhe=xe({__name:"SbList",props:{value:{type:Object,required:!0}},setup(e){const t=e,n=J(()=>t.value?.type===xO.Ordered?"ol":"ul");return(r,o)=>t.value?(U(),we(Xt(n.value),{key:0,class:"sb-list"},{default:be(()=>[(U(!0),X(He,null,dt(t.value?.items,(s,a)=>(U(),X("li",{key:a},[ye(N(CO),{value:s},null,8,["value"])]))),128))]),_:1})):Ie("",!0)}}),Fhe=Hi(Hhe,[["__scopeId","data-v-0c1baa47"]]),cT=4,jhe=xe({__name:"SbSubtitle",props:{value:{type:Object,required:!0},index:{type:Number,required:!0}},setup(e){const t=e,n=Gt("sbAnchors",null),r=J(()=>
94n?.value?.[t.index]||ab(t.value?.text?.replace(/\\n/g," ")||"")||`section-${t.index+1}`),o=J(()=>{const u=t.value?.level;return u&&u<=cT?u:cT}),s=J(()=>`h${o.value}`),a=J(()=>t.value?.text?.replace(/\\n/g,` 95`)||"");return(u,f)=>(U(),we(Xt(s.value),{id:r.value,class:"sb-subtitle"},{default:be(()=>[mt(Ue(a.value),1)]),_:1},8,["id"]))}}),Vhe=Hi(jhe,[["__scopeId","data-v-5deb3b00"]]),hd={[lt.SB_TYPE_PARAGRAPH]:CO,[lt.SB_TYPE_SUBTITLE]:Vhe,[lt.SB_TYPE_IMAGE]:AO,[lt.SB_TYPE_LIST]:Fhe,[lt.SB_TYPE_LINKED_IMAGE]:Dhe,[lt.SB_TYPE_IFRAME]:Jt(()=>Rt(()=>import("./index.es-CP7hWJWE.js"),__vite__mapDeps([6,7]))),[lt.SB_TYPE_INSTAGRAM]:Jt(()=>Rt(()=>import("./index.es-DJhzaSkH.js"),__vite__mapDeps([8,9]))),[lt.SB_TYPE_YOUTUBE]:Jt(()=>Rt(()=>import("./index.es-DHm10yk4.js"),__vite__mapDeps([10,11]))),[lt.SB_TYPE_TELEGRAM]:Jt(()=>Rt(()=>import("./index.es-DG71C3xK.js"),__vite__mapDeps([12,13]))),[lt.SB_TYPE_DIVIDER]:The,[lt.SB_TYPE_TWITTER]:Jt(()=>Rt(()=>import("./index.es-DJhzaSkH.js"),__vite__mapDeps([8,9]))),[lt.SB_TYPE_VIMEO]:Jt(()=>Rt(()=>import("./index.es-BHWTZJll.js"),__vite__mapDeps([14,6,7]))),[lt.SB_TYPE_HTML]:Jt(()=>Rt(()=>import("./index.es-Bvj6rkZp.js"),__vite__mapDeps([15,16]))),[lt.SB_TYPE_AUTOMOTO_RACE]:Jt(()=>Rt(()=>import("./index.es-CimXUWVC.js"),__vite__mapDeps([17,18,6,7,19]))),[lt.SB_TYPE_BIATHLON_RACE]:Jt(()=>Rt(()=>import("./index.es-CimXUWVC.js"),__vite__mapDeps([17,18,6,7,19]))),[lt.SB_TYPE_VIDEO]:Jt(()=>Rt(()=>import("./index.es-CP7hWJWE.js"),__vite__mapDeps([6,7]))),[lt.SB_TYPE_CONTENTS]:whe,[lt.SB_TYPE_MATCH_HOCKEY]:Jt(()=>Rt(()=>import("./index.es-Ba8m0BX5.js"),__vite__mapDeps([20,18,6,7,21]))),[lt.SB_TYPE_MATCH_BASKETBALL]:Jt(()=>Rt(()=>import("./index.es-Ba8m0BX5.js"),__vite__mapDeps([20,18,6,7,21]))),[lt.SB_TYPE_MATCH_TENNIS]:Jt(()=>Rt(()=>import("./index.es-Ba8m0BX5.js"),__vite__mapDeps([20,18,6,7,21])))},qhe=["sports.ru","tribuna.com","s5o.ru"],Whe="nofollow noopener noreferrer",zhe="structured-body-wrapper--post",Ghe="structured-body-wrapper--match",Yhe={[jl.POST]:zhe,[jl.MATCH]:Ghe,[jl.DEFAULT]:""},Khe=[320,460,640],Zhe=730,h1=768,Lbe=16/9,Mbe="100%",Qhe=[150,200,300,320,460,640,730,1050,1200],Jhe=["https://photobooth.cdn.sports.ru/","http://photobooth.cdn.sports.ru/","https://i.sprts.ru/","https://i.trbna.com/"],RO={youtube:"https://www.youtube.com/embed/",vimeo:"https://player.vimeo.com/video/"},Pbe="hqdefault",Xhe="maxresdefault",ege="https://i.ytimg.com/",Bbe="accelerometer; encrypted-media; gyroscope; picture-in-picture",tge={jpg:"vi/"},Nbe="https://telegram.org/js/telegram-widget.js?21",fT="https://forms.yandex.ru",nge=e=>Array.from(document.querySelectorAll("iframe")).find(t=>t.contentWindow===e),rge=e=>{try{const t=JSON.parse(e.data)["iframe-height"];if(!t)return;const n=nge(e.source);n&&(n.style.height=t+"px")}catch{return}},oge=/^(.*)__(\d+)$/;function ige(){const e=window.location.hash.slice(1);if(!e)return"";try{return decodeURIComponent(e)}catch{return e}}const sge=e=>{We(async()=>{const t=ige(),n=t.match(oge);if(!n)return;await gt();const r=ub(e.value);let o=fhe(e.value).indexOf(t);if(o===-1){const u=ab(n[1]);o=u?r.indexOf(u):-1}const s=o===-1?"":r[o],a=s&&document.getElementById(s);a&&(window.history.replaceState(null,"",`#${s}`),a.scrollIntoView())})},age=xe({__name:"SbWrapper",props:{body:{type:Array,required:!0}},emits:["clickImage","onMounted"],setup(e,{emit:t}){const n=e,r=ie(!1),o=ie(!1);di("isMobile",o);const s=J(()=>Array.isArray(n.body)?n.body.filter(A=>(r.value=A.type===lt.SB_TYPE_IFRAME&&A.value.source.includes(fT),A!=null&&typeof A=="object")):[]),a=J(()=>ub(s.value));di("sbAnchors",a),sge(s);const u=J(()=>s.value.findIndex(A=>A?.type===lt.SB_TYPE_IMAGE||A?.type===lt.SB_TYPE_LINKED_IMAGE)),f=(A,$)=>hd[A?.type]?$===u.value?{index:$,priority:!0}:{index:$}:{},d=t,p=G1(),h=J(()=>Object.keys(p)),y=A=>{const $=A?.type;return $?hd?.[$]?hd[$]:(h.value.includes($),"div"):"div"},m=A=>{const $=A?.type;return!hd[$]&&!p[$]},v=A=>{if(A.type===lt.SB_TYPE_IMAGE)return d("clickImage",{event:A.event,image:A.image,blockIndex:A.blockIndex})},b=Gt("nameSpace",jl.DEFAULT),S=J(()=>Yhe[b]),w=A=>{if(A.type===lt.SB_TYPE_CONTENTS)return $t(s.value);const $=A.value;return $&&typeof $=="object"?$t($):$},T=A=>[lt.SB_TYPE_INSTAGRAM,lt.SB_TYPE_ADS,lt.SB_TYPE_ADS_TELEPORT_TARGET].includes(A?.type)&&A?.raw?A.raw:null,I={[fT]:rge},C=A=>{const $=I[A.origin];$&&$(A)};return We(()=>{o.value=Rhe(),r.value&&window.addEventListener("message",C)}),bt(()=>{r.value&&window.removeEventListener("message",C)}),(A,$)=>(U(),X("div",{class:Be(["structured-body-wrapper",S.value])},[(U(!0),X(He,null,dt(s.value,(k,x)=>(U(),we(Xt(y(k)),un({key:`${x}__${k?.type}`,class:{"structured-body__empty-element":m(k)},value:w(k),type:k?.type,raw:T(k),ref_for:!0},f(k,x),{onClick:v,onOnMounted:$[0]||($[0]=O=>d("onMounted"))}),gr({_:2},[k?.type&&A.$slots[k.type]?{name:"default",fn:be(()=>[De(A.$slots,k.type,un({ref_for:!0},{...k,index:x,priority:x===u.value}),void 0,!0)]),key:"0"}:void 0]),1040,["class","value","type","raw"]))),128))],2))}}),uge=Hi(age,[["__scopeId","data-v-f446db54"]]),OO=361,lge=.65;function kO({maxHeightPx:e=OO,maxHeightVw:t=lge}={}){return`min(${e}px, ${t*100}vw)`}function cge(e,t){return e>0?`${e} ${t}`:t}function Wr(e,t,n,r,o=""){let s="";const a=r||n,u=Math.abs(e);return u.toString().indexOf(".")>-1?s=n:u?u%10==1&&u%100!=11?s=t:u%10>=2&&u%10<=4&&(u%100<10||u%100>=20)?s=n:s=a:s=o,/%d/g.test(s)&&(s=s.replace(/%d/g,u.toString())),s}
95function fge(e,t){const n=Math.abs(e.difference);let r=0;return n<3600*1e3?n<20*1e3?t({type:"now"}):n<60*1e3?(r=Math.floor(n/1e3),t({type:"less_minute",delta:r})):(r=Math.floor(n/6e4),t({type:"less_hour",delta:r})):n<1440*6e4?(r=Math.floor(n/(60*6e4)),t({type:"less_day",delta:r})):n<720*60*6e4?(r=Math.floor(n/(1440*6e4)),t({type:"less_30days",delta:r})):n<360*24*60*6e4?(r=e.now.getMonth()-e.month,r<0&&(r+=12),t({type:"less_year",delta:r})):(r=new Date(n).getFullYear()-1970,t({type:"more_year",delta:r}))}const LO="пÑÑмо ÑейÑаÑ",ug="ÑолÑко ÑÑо",lb="ÑегоднÑ",cb="вÑеÑа",Ic="назад",Xp="ÑеÑез",En={sec:{name1:"ÑекÑндÑ",name2:"ÑекÑндÑ",name3:"ÑекÑнд",short:"Ñек."},min:{name1:"минÑÑÑ",name2:"минÑÑÑ",name3:"минÑÑ",short:"мин."},hour:{name1:"ÑаÑ",name2:"ÑаÑа",name3:"ÑаÑов",short:"ÑаÑ."},day:{name1:"денÑ",name2:"днÑ",name3:"дней"},month:{name1:"меÑÑÑ",name2:"меÑÑÑа",name3:"меÑÑÑев"},year:{name1:"год",name2:"года",name3:"леÑ"}},Cs=[{nom:"ЯнваÑÑ",gen:"ÑнваÑÑ"},{nom:"ФевÑалÑ",gen:"ÑевÑалÑ"},{nom:"ÐаÑÑ",gen:"маÑÑа"},{nom:"ÐпÑелÑ",gen:"апÑелÑ"},{nom:"Ðай",gen:"маÑ"},{nom:"ÐÑнÑ",gen:"иÑнÑ"},{nom:"ÐÑлÑ",gen:"иÑлÑ"},{nom:"ÐвгÑÑÑ",gen:"авгÑÑÑа"},{nom:"СенÑÑбÑÑ",gen:"ÑенÑÑбÑÑ"},{nom:"ÐкÑÑбÑÑ",gen:"окÑÑбÑÑ"},{nom:"ÐоÑбÑÑ",gen:"ноÑбÑÑ"},{nom:"ÐекабÑÑ",gen:"декабÑÑ"}],MO=[{full:"ÐоÑкÑеÑенÑе",short:"вÑ"},{full:"ÐонеделÑник",short:"пн"},{full:"ÐÑоÑник",short:"вÑ"},{full:"СÑеда",short:"ÑÑ"},{full:"ЧеÑвеÑг",short:"ÑÑ"},{full:"ÐÑÑниÑа",short:"пÑ"},{full:"СÑббоÑа",short:"Ñб"}],dge={right_now:LO,just_now:ug,today:lb,yesterday:cb,before:Ic,after:Xp,time:En,month:Cs,week:MO},pge=Object.freeze(Object.defineProperty({__proto__:null,after:Xp,before:Ic,default:dge,just_now:ug,month:Cs,right_now:LO,time:En,today:lb,week:MO,yesterday:cb},Symbol.toStringTag,{value:"Module"}));
95function hge(e){return fge(e,t=>{let n="";const r=t.type,o=t.delta,{time:s}=pge;switch(r){case"now":return ug;case"less_minute":n=Wr(o,s.sec.name1,s.sec.name2,s.sec.name3);break;case"less_hour":n=Wr(o,s.min.name1,s.min.name2,s.min.name3);break;case"less_day":n=Wr(o,s.hour.name1,s.hour.name2,s.hour.name3);break;case"less_30days":n=Wr(o,s.day.name1,s.day.name2,s.day.name3);break;case"less_year":n=Wr(o,s.month.name1,s.month.name2,s.month.name3);break;case"more_year":n=Wr(o,s.year.name1,s.year.name2,s.year.name3);break}return cge(o,`${n} ${Ic}`)})}function Ri(e){let t="";return e<10&&(t="0"),t+=e,t}var Ft=(e=>(e.NOW="now",e.FUTURE_LESS_HOUR="future_less_hour",e.FUTURE_LESS_2HOUR="future_less_2hour",e.FUTURE_MORE_2HOUR="future_more_2hour",e.LESS_MINUTES="less_minutes",e.LESS_HOUR="less_hour",e.MORE_YEAR="more_year",e.TODAY="today",e.YESTERDAY="yesterday",e.CURRENT_YEAR="current_year",e))(Ft||{});function gge(e,t){const n=`${Ri(e.hours)}:${Ri(e.minutes)}`,r=Math.abs(e.difference);if(e.is_future){if(r<20*1e3)return t({type:Ft.NOW});if(r<60*6e4){const o=Math.floor(r/6e4);return t({type:Ft.FUTURE_LESS_HOUR,minutes:o})}else if(r<120*6e4){const o=Math.floor(r/6e4)-60;return t({type:Ft.FUTURE_LESS_2HOUR,minutes:o,hours:1})}return t({type:Ft.FUTURE_MORE_2HOUR,time:n,day:e.day,month:e.month,year:e.fullYear})}if(r<60*6e4){if(r<20*1e3)return t({type:Ft.NOW});if(r<60*1e3){const o=Math.floor(r/1e3);return t({type:Ft.LESS_MINUTES,seconds:o})}else{const o=Math.floor(r/6e4);return t({type:Ft.LESS_HOUR,minutes:o})}}return e.is_today?t({type:Ft.TODAY,time:n}):e.is_yesterday?t({type:Ft.YESTERDAY,time:n}):e.is_current_year?t({type:Ft.CURRENT_YEAR,time:n,month:e.month,day:e.day}):t({type:Ft.MORE_YEAR,time:n,month:e.month,day:e.day,year:e.fullYear})}function mge(e){return gge(e,t=>{switch(t.type){case Ft.NOW:return ug;case Ft.FUTURE_LESS_HOUR:return`${Xp} ${t.minutes} ${Wr(t.minutes,En.min.name1,En.min.name2,En.min.name3)}`;case Ft.FUTURE_LESS_2HOUR:{const n=t.minutes>0?` ${t.minutes} ${Wr(t.minutes,En.min.name1,En.min.name2,En.min.name3)}`:"";return`${Xp} 1 ${En.hour.name1}${n}`}case Ft.FUTURE_MORE_2HOUR:return`${t.day} ${Cs[t.month].gen} ${t.year}, ${t.time}`;case Ft.LESS_MINUTES:return`${t.seconds} ${Wr(t.seconds,En.sec.name1,En.sec.name2,En.sec.name3)} ${Ic}`;case Ft.LESS_HOUR:return`${t.minutes} ${Wr(t.minutes,En.min.name1,En.min.name2,En.min.name3)} ${Ic}`;case Ft.TODAY:return`${lb}, ${t.time}`;case Ft.YESTERDAY:return`${cb}, ${t.time}`;case Ft.CURRENT_YEAR:return`${t.day} ${Cs[t.month].gen}, ${t.time}`;case Ft.MORE_YEAR:return`${t.day} ${Cs[t.month].gen} ${t.year}, ${t.time}`}})}function yge(e){return`${e.day} ${Cs[e.month].gen}`}function vge(e){return e.format.replace(/hh/g,e.hours.toString().padStart(2,"0")).replace(/h/g,e.hours.toString()).replace(/mm/g,e.minutes.toString().padStart(2,"0")).replace(/m/g,e.minutes.toString()).replace(/ss/g,e.seconds.toString().padStart(2,"0")).replace(/s/g,e.seconds.toString()).replace(/DD/g,e.day.toString().padStart(2,"0")).replace(/D/g,e.day.toString()).replace(/MM/g,(e.month+1).toString().padStart(2,"0")).replace(/M/g,(e.month+1).toString()).replace(/YYYY/g,e.fullYear.toString()).replace(/YY/g,e.fullYear.toString().slice(-2))}function _ge(e){const t=Ri(e.day),n=Ri(e.month+1);return`${t}.${n}.${e.fullYear}`}function bge(e){const t=`${Ri(e.hours)}:${Ri(e.minutes)}`,n=Cs[e.month].gen;return`${e.day} ${n} ${e.fullYear}, ${t}`}function wge(e,t,n=""){const r=t||Date.now(),o=new Date(e),s=new Date(r-864e5),a=new Date(r);return{now:a,format:n,current:o,day:o.getDate(),weekday:o.getDay(),month:o.getMonth(),fullYear:o.getFullYear(),hours:o.getHours(),minutes:o.getMinutes(),seconds:o.getSeconds(),difference:o.getTime()-a.getTime(),is_today:a.toDateString()===o.toDateString(),is_yesterday:s.toDateString()===o.toDateString(),is_future:o.getTime()>a.getTime(),is_current_year:o.getFullYear()===a.getFullYear()}}function Ege(e){let t=Ri(e.hours);return t+=":"+Ri(e.minutes),t}const Sge={time:Ege};function $ge(e){return function({timestamp:t,template:n,format:r,options:o={}}){const s={...Sge,...e};if(typeof s[n]=="function"){const a=wge(t,o.now,r);return s[n](a)}return t}}const Tge=$ge({akhmatova:hge,bunin:mge,shortdate:yge,format:vge,date:_ge,fulldate:bge}),Ige=(e,t)=>
95e?e.toString().indexOf(".")>-1?t.genitiveSingle:e%10==1&&e%100!=11?t.nominative:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?t.genitiveSingle:t.genitiveMultiple:t.empty,Age=["role","tabindex","onKeydown"],xge=["src","alt"],dT="https://dumpster.cdn.sports.ru/7/0a/3d7b29dd5f901e5da63309f2ab935.png",Cge=xe({__name:"ShortPostCardImage",props:{src:{type:String,required:!0},published:{type:String,default:""},authorNick:{type:String,default:""},imageIndex:{type:Number,default:void 0},clickable:{type:Boolean,default:!1},mediaMaxHeight:{type:String,required:!0}},emits:["click"],setup(e,{emit:t}){bh(h=>({"14ef7aec":o.value}));const n=e,r=t,o=xt(n,"mediaMaxHeight"),s=ie(null),a=ie(!1),u=ie(n.src),f=()=>{if(u.value===dT){a.value=!0;return}u.value=dT};ke(()=>n.src,async h=>{var y;a.value=!1,u.value=h,await gt(),(y=s.value)!=null&&y.complete&&(a.value=!0)}),We(()=>{var h;(h=s.value)!=null&&h.complete&&(a.value=!0)});const d=J(()=>{const h=n.published?Tge({timestamp:new Date(n.published).getTime(),template:"format",format:"hh:mm:ss DD.MM.YYYY"}).toString():"";return[n.imageIndex!==void 0?`ÐзобÑажение ${n.imageIndex} поÑÑа`:"ÐзобÑажение поÑÑа",n.authorNick&&`полÑзоваÑÐµÐ»Ñ ${n.authorNick}`,h&&`Ð¾Ñ ${h}`].filter(Boolean).join(" ")}),p=()=>{n.clickable&&r("click")};
95return(h,y)=>(U(),X("div",{class:Be(["short-post-card-image",{"short-post-card-image--clickable":e.clickable,"short-post-card-image--loaded":a.value}]),"data-test":"short-post-card-image-link",role:e.clickable?"button":void 0,tabindex:e.clickable?0:void 0,onClick:p,onKeydown:Gc(ft(p,["prevent"]),["enter","space"])},[a.value?Ie("",!0):(U(),we(N(It),{key:0,class:"short-post-card-image__skeleton",width:"100%","aria-hidden":"true","data-test":"short-post-card-image-skeleton"})),te("img",{ref_key:"imageRef",ref:s,class:"short-post-card-image__view",src:u.value,alt:d.value,loading:"lazy",decoding:"async","data-test":"post-card-image",onLoad:y[0]||(y[0]=m=>a.value=!0),onError:f},null,40,xge)],42,Age))}}),Go=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},pT=Go(Cge,[["__scopeId","data-v-a8f65c91"]]),Rge={class:"short-post-card-media","data-test":"short-post-card-media"},Oge=xe({__name:"ShortPostCardMedia",props:{images:{type:Array,required:!0},published:{type:String,default:""},authorNick:{type:String,default:""},maxHeightPx:{type:Number,default:void 0},maxHeightVw:{type:Number,default:void 0}},emits:["click-image"],setup(e,{emit:t}){const n=e,r=t,o=J(()=>{var u,f;return((f=(u=n.images[0])==null?void 0:u.picture)==null?void 0:f.url)??""}),s=J(()=>{var u;return((u=n.images[0])==null?void 0:u.id)??""}),a=J(()=>kO({maxHeightPx:n.maxHeightPx,maxHeightVw:n.maxHeightVw}));return(u,f)=>(U(),X("div",Rge,[e.images.length===1?(U(),X("div",{key:0,class:"short-post-card-media__clip","data-test":"short-post-card-media-single",onClick:f[1]||(f[1]=ft(()=>{},["stop"]))},[ye(pT,{src:o.value,published:e.published,"author-nick":e.authorNick,clickable:"","media-max-height":a.value,onClick:f[0]||(f[0]=d=>r("click-image",s.value))},null,8,["src","published","author-nick","media-max-height"])])):e.images.length>1?(U(),we(N(pR),{key:1,class:"short-post-card-media__carousel",items:e.images,"show-counter":"",arrows:"","arrows-config":{style:"filled",showOnHover:!0},"viewport-height":a.value,"data-test":"short-post-card-media-carousel",onClick:f[2]||(f[2]=ft(()=>{},["stop"]))},{default:be(({item:d,index:p})=>{var h;return[ye(pT,{src:((h=d?.picture)==null?void 0:h.url)??"",published:e.published,"author-nick":e.authorNick,"image-index":p+1,clickable:"","media-max-height":a.value,onClick:y=>r("click-image",d?.id??"")},null,8,["src","published","author-nick","image-index","media-max-height","onClick"])]}),_:1},8,["items","viewport-height"])):Ie("",!0)]))}}),kge=Go(Oge,[["__scopeId","data-v-003f04c0"]]),Lge={class:"short-post-card-reaction-count","aria-live":"polite","aria-atomic":"true"},Mge=xe({__name:"ShortPostCardReactionCount",props:{count:{type:Number,required:!0}},setup(e){const t=e,n=ie("reaction-count-up");return ke(()=>t.count,(r,o)=>{n.value=r>o?"reaction-count-up":"reaction-count-down"}),(r,o)=>(U(),X("span",Lge,[ye(ko,{name:n.value},{default:be(()=>[(U(),X("span",{key:e.count,class:"short-post-card-reaction-count__value"},Ue(e.count),1))]),_:1},8,["name"])]))}}),Pge=Go(Mge,[["__scopeId","data-v-fcf23e04"]]),Bge=["src","alt"],Nge={key:"emoji-picker",class:"short-post-card-reactions__picker"},Dge=xe({__name:"ShortPostCardReactions",props:{postId:{type:String,default:""},postReactions:{type:Array,default:()=>[]},reactionCatalog:{type:Array,default:()=>[]},isReactionPending:{type:Boolean,default:!1}},emits:["set-reaction"],setup(e,{emit:t}){const n=e,r=t,o=ie(null),s=y=>{const m=y,v=o.value;if(!v)return;const b=v.getBoundingClientRect(),S=m.getBoundingClientRect();m.style.left=`${S.left-b.left}px`,m.style.top=`${S.top-b.top}px`,m.style.width=`${S.width}px`},a=J(()=>n.postReactions.filter(y=>{var m;return(m=y.reaction)==null?void 0:m.id})),u=J(()=>n.postReactions.length>0||n.reactionCatalog.length>0),f=J(()=>n.reactionCatalog.map(({id:y,content:m})=>({id:y,imageUrl:m.imageUrl}))),d=(y,m)=>{!y||n.isReactionPending||r("set-reaction",{postId:n.postId,reactionId:y,action:m})},p=y=>{var m;const v=y.selected?"remove":"add";d((m=y.reaction)==null?void 0:m.id,v)},h=y=>{d(y.id,"add")};return(y,m)=>u.value?(U(),X("div",{key:0,ref_key:"rootRef",ref:o,class:"short-post-card-reactions",onClick:m[0]||(m[0]=ft(()=>{},["stop"]))},[ye(A3,{name:"reaction-move",tag:"div",class:"short-post-card-reactions__list",onBeforeLeave:s},{default:be(()=>[(U(!0),X(He,null,dt(a.value,v=>{var b;return U(),X("div",{key:(b=v.reaction)==null?void 0:b.id,class:"short-post-card-reactions__item"},[ye(N(St),{size:N(ot).SM,color:v.selected?N(ut).SUCCESS:N(ut).DEFAULT,variant:N(pt).SECONDARY,short:"",class:"short-post-card-reactions__emoji-button",onClick:S=>p(v)},{default:be(()=>{var S,w,T;return[te("img",{class:"short-post-card-reactions__emoji-image",src:(w=(S=v.reaction)==null?void 0:S.content)==null?void 0:w.imageUrl,alt:`emoji ${(T=v.reaction)==null?void 0:T.id}`},null,8,Bge),ye(Pge,{count:v.count},null,8,["count"])]}),_:2}
95,1032,["size","color","variant","onClick"])])}),128)),te("div",Nge,[ye(N(wre),{items:f.value,onSelect:h},null,8,["items"])])]),_:1})],512)):Ie("",!0)}}),Uge=Go(Dge,[["__scopeId","data-v-0ad0b565"]]),fb={x:{label:"x.com"},tg:{label:"t.me"},vk:{label:"vk.com"}},Hge="https://dumpster.cdn.sports.ru/configs/post-import-sources.json",Xd=ie({platforms:fb,sources:{}});let gd=null;const Fge=()=>gd||typeof window>"u"?gd??Promise.resolve():(gd=fetch(Hge).then(e=>{if(!e.ok)throw new Error(`post-sources ${e.status}`);return e.json()}).then(e=>{Xd.value={platforms:{...fb,...e.platforms},sources:e.sources??{}}}).catch(e=>{Cf().logger.warn({err:e},"[ShortPost] не ÑдалоÑÑ Ð·Ð°Ð³ÑÑзиÑÑ post-sources Ñ CDN")}),gd),PO=()=>(Fge(),{config:Xd,resolve:(...e)=>{const{sources:t}=Xd.value,n=e.find(r=>r&&t[r]);return n?t[n]:void 0},getPlatformMeta:e=>Xd.value.platforms[e]}),jge={key:0,class:"short-post-card-source"},Vge={class:"short-post-card-source__name"},qge=xe({__name:"ShortPostCardSource",props:{source:{type:Object,required:!0}},setup(e){const t=e,{getPlatformMeta:n}=PO(),r=J(()=>n(t.source.platform)??fb[t.source.platform]);return(o,s)=>r.value?(U(),X("div",jge,[s[0]||(s[0]=te("span",{class:"short-post-card-source__label"}," ÐÑÑоÑник: ",-1)),te("span",Vge,Ue(r.value.label),1)])):Ie("",!0)}}),Wge=Go(qge,[["__scopeId","data-v-925be77d"]]),zge=({structuredBodyRef:e,structuredBody:t})=>{const n=ie(!1);let r=null;const o=()=>{const a=e.value;if(!a){n.value=!1;return}n.value=a.scrollHeight>a.clientHeight},s=async()=>{r?.disconnect(),r=null,await gt();const a=e.value;if(!a){n.value=!1;return}o(),r=new ResizeObserver(()=>{o()}),r.observe(a)};return ke(t,()=>{s()},{deep:!0,immediate:!0}),bt(()=>{r?.disconnect()}),{isTextOverflowing:n}},Gge={class:"short-post-card__author","data-test":"short-post-card-author"},Yge={class:"short-post-card__author-options","data-test":"short-post-card-author-options"},Kge={key:0,class:"short-post-card__structured-body ui-body-md-regular","data-test":"short-post-card-structured-body"},Zge={class:"short-post-card__comments-flame-wrapper"},Qge={class:"short-post-card__comments-text"},Jge=xe({__name:"ShortPostCard",props:{id:{type:String,default:""},images:{type:Array,default:()=>[]},authors:{type:Array,default:()=>[]},commentsCount:{type:Number,required:!0},flameIsHot:{type:Boolean,required:!0},structuredBody:{type:Array,default:()=>[]},published:{type:String,default:""},blog:{type:Object,default:void 0},postReactions:{type:Array,default:()=>[]},reactionCatalog:{type:Array,default:()=>[]},isReactionPending:{type:Boolean,default:!1},isCurrentUserAuthor:{type:Boolean,default:!1},hideFollowButton:{type:Boolean,default:!1},hideBlog:{type:Boolean,default:!1},cardMode:{type:String,default:"feed"},disabled:{type:Boolean,default:!1},bookmarked:{type:Boolean,default:!1},maxHeightPx:{type:Number,default:void 0},maxHeightVw:{type:Number,default:void 0}},emits:["click-post","preview-image","comments-click","creator-click","author-subscribe","set-reaction","view"],setup(e,{emit:t}){const n=e,r=t,o=rQ("cardRef"),s=ie(!1);sQ(o,([{isIntersecting:V}])=>{V&&!s.value&&(s.value=!0,r("view"))},{threshold:.5});const a={empty:"комменÑаÑиев",nominative:"комменÑаÑий",genitiveSingle:"комменÑаÑиÑ",genitiveMultiple:"комменÑаÑиев"},u=J(()=>Ige(n.commentsCount??0,a)),{resolve:f}=PO(),d=J(()=>{var V,W;return f((V=n.authors[0])==null?void 0:V.id,(W=n.blog)==null?void 0:W.id)}),p=J(()=>n.structuredBody.length>0),h=ie(null),y=J(()=>{var V;return((V=h.value)==null?void 0:V.$el)??null}),{isTextOverflowing:m}=zge({structuredBodyRef:y,structuredBody:xt(n,"structuredBody")}),v=ie(!1);ke(()=>n.structuredBody,()=>{v.value=!1});const{isTablet:b}=Vh(),S=J(()=>n.cardMode==="feed"),w=J(()=>n.cardMode==="full-post"),T=J(()=>w.value||v.value),I=J(()=>m.value&&S.value&&!v.value),C=()=>{v.value=!0},A=V=>{V&&r("preview-image",{postId:n.id,mediaId:V,mediaIds:n.images.map(({id:W})=>W)})},$=()=>{S.value&&r("click-post",n.id)},k=()=>{w.value||r("comments-click",n.id)},x=V=>{r("author-subscribe",V)},O=()=>{var V;r("creator-click",{postId:n.id,creatorId:((V=n.authors[0])==null?void 0:V.id)??"",creatorType:"author"})},M=()=>{var V;r("creator-click",{postId:n.id,creatorId:((V=n.blog)==null?void 0:V.id)??"",creatorType:"blog"})},j=V=>{r("set-reaction",V)};return(V,W)=>{var Y,ne,Z;return U(),X("article",{ref_key:"cardRef",ref:o,class:Be(["short-post-card",{"short-post-card--full-post":w.value,"short-post-card--feed":S.value,"short-post-card--disabled":e.disabled}
95]),"data-test":"short-post-card"},[te("div",Gge,[e.authors[0]?(U(),we(N(kne),{key:0,user:e.authors[0],published:e.published,blog:!e.hideBlog&&e.blog?e.blog:void 0,"blog-display-mode":"published","avatar-size":N(b)?"2xs":"3xs","font-color-variant":"colored","data-test":"short-post-card-author-info",onAuthorClick:O,onBlogClick:M},null,8,["user","published","blog","avatar-size"])):Ie("",!0),te("div",Yge,[!e.isCurrentUserAuthor&&!e.hideFollowButton?De(V.$slots,"follow-button",{key:0,isFollowed:(Y=e.authors[0])==null?void 0:Y.following,onFollow:()=>x(e.authors[0].id)},()=>[ye(ko,{name:"follow-button-fade"},{default:be(()=>{var ae,ce;return[Su(ye(N(KJ),{"is-followed":(ae=e.authors[0])==null?void 0:ae.following,"data-test":"short-post-card-follow-button",onFollow:W[0]||(W[0]=q=>x(e.authors[0].id))},null,8,["is-followed"]),[[$u,!((ce=e.authors[0])!=null&&ce.following)]])]}),_:1})],!0):Ie("",!0),De(V.$slots,"actions",{},()=>[De(V.$slots,"context-menu",{},void 0,!0)],!0)])]),te("div",{class:"short-post-card__content","data-test":"short-post-card-content",onClick:$},[p.value?(U(),X("div",Kge,[ye(N(uge),{ref_key:"structuredBodyRef",ref:h,class:Be(["short-post-card__structured-body-wrapper",{"short-post-card__structured-body-wrapper--expanded":T.value}]),body:e.structuredBody},null,8,["class","body"])])):Ie("",!0),I.value?(U(),X("button",{key:1,type:"button",class:"short-post-card__show-more ui-body-sm-medium",tabindex:0,"data-test":"short-post-card-show-more",onClick:ft(C,["stop"])},[W[1]||(W[1]=mt(" ÐоказаÑÑ Ð¿Ð¾Ð»Ð½Ð¾ÑÑÑÑ ")),ye(N(e_),{width:"16px",height:"16px"})])):Ie("",!0),(ne=e.images)!=null&&ne.length?(U(),we(kge,{key:2,images:e.images,published:e.published,"author-nick":((Z=e.authors[0])==null?void 0:Z.nick)??"","max-height-px":e.maxHeightPx,"max-height-vw":e.maxHeightVw,onClickImage:A},null,8,["images","published","author-nick","max-height-px","max-height-vw"])):Ie("",!0),d.value?(U(),we(Wge,{key:3,source:d.value},null,8,["source"])):Ie("",!0),ye(Uge,{"post-id":e.id,"post-reactions":e.postReactions,"reaction-catalog":e.reactionCatalog,"is-reaction-pending":e.isReactionPending,onSetReaction:j},null,8,["post-id","post-reactions","reaction-catalog","is-reaction-pending"])]),S.value?(U(),we(N(mC),{key:0,class:"short-post-card__divider"})):Ie("",!0),S.value?(U(),X("div",{key:1,class:"short-post-card__comments",tabindex:0,"data-test":"short-post-card-comments",onClick:k},[te("div",Zge,[ye(N(I4),{hot:e.flameIsHot,class:"short-post-card__comments-flame",size:N(b)?24:16},null,8,["hot","size"]),te("span",Qge,Ue(e.commentsCount)+" "+Ue(u.value),1)]),ye(N(Js),{class:"short-post-card__comments-arrow"})])):Ie("",!0)],2)}}}),Xge=Go(Jge,[["__scopeId","data-v-4da83335"]]),eme={class:"short-post-card-skeleton","data-test":"short-post-card-skeleton"},tme={class:"short-post-card-skeleton__header side-padding","data-test":"short-post-card-skeleton-header"},nme={class:"short-post-card-skeleton__header-info"},rme={class:"short-post-card-skeleton__header-actions"},ome={class:"short-post-card-skeleton__content side-padding","data-test":"short-post-card-skeleton-content"},ime={class:"short-post-card-skeleton__text"},sme={class:"short-post-card-skeleton__emojis-list"},ame={class:"short-post-card-skeleton__footer side-padding","data-test":"short-post-card-skeleton-footer"},ume=xe({__name:"ShortPostCardSkeleton",props:{withImage:{type:Boolean,default:!0},maxHeightPx:{type:Number,default:void 0},maxHeightVw:{type:Number,default:void 0}},setup(e){const t={mobile:{avatar:{width:"32px",height:"32px"},description:{width:"87px",height:"8px"},follow:{width:"32px",height:"32px"},dots:{width:"32px",height:"32px"},showMore:{width:"163px",height:"20px"},emoji:{width:"40px",height:"24px"},emojiPicker:{width:"24px",height:"24px"},comments:{width:"137px",height:"16px"},commentsArrow:{width:"16px",height:"16px"}},desktop:{avatar:{width:"36px",height:"36px"},description:{width:"87px",height:"12px"},follow:{width:"129px",height:"32px"},dots:{width:"32px",height:"32px"},showMore:{width:"137px",height:"16px"},emoji:{width:"55px",height:"32px"},emojiPicker:{width:"32px",height:"32px"},comments:{width:"137px",height:"24px"},commentsArrow:{width:"24px",height:"24px"}}},n=e,{isBreakpoint640:r}=y_(),o=J(()=>r.value?t.desktop:t.mobile),s=J(()=>kO({maxHeightPx:n.maxHeightPx,maxHeightVw:n.maxHeightVw}
95));return(a,u)=>(U(),X("div",eme,[te("div",tme,[ye(N(It),{shape:"circle",width:o.value.avatar.width,height:o.value.avatar.height},null,8,["width","height"]),te("div",nme,[ye(N(It),{width:"129px",height:"16px"}),ye(N(It),{width:o.value.description.width,height:o.value.description.height},null,8,["width","height"])]),te("div",rme,[ye(N(It),{width:o.value.follow.width,height:o.value.follow.height},null,8,["width","height"]),ye(N(It),{width:o.value.dots.width,height:o.value.dots.height},null,8,["width","height"])])]),te("div",ome,[te("div",ime,[(U(),X(He,null,dt(10,f=>ye(N(It),{key:f,width:"100%",height:"8px"})),64))]),ye(N(It),{width:o.value.showMore.width,height:o.value.showMore.height,"data-test":"short-post-card-skeleton-show-more"},null,8,["width","height"]),e.withImage?(U(),we(N(It),{key:0,width:"100%",height:s.value,"data-test":"short-post-card-skeleton-image"},null,8,["height"])):Ie("",!0),te("div",sme,[(U(),X(He,null,dt(4,f=>ye(N(It),{key:f,width:o.value.emoji.width,height:o.value.emoji.height},null,8,["width","height"])),64)),ye(N(It),{width:o.value.emojiPicker.width,height:o.value.emojiPicker.height},null,8,["width","height"])])]),ye(N(mC),{class:"short-post-card-skeleton__divider"}),te("div",ame,[ye(N(It),{width:o.value.comments.width,height:o.value.comments.height},null,8,["width","height"]),ye(N(It),{width:o.value.commentsArrow.width,height:o.value.commentsArrow.height},null,8,["width","height"])])]))}}),hT=Go(ume,[["__scopeId","data-v-75ec0b4f"]]),lme=xe({__name:"ShortPostFollowButton",props:{isFollowed:{type:Boolean,required:!0},seoTitle:{type:String,default:""}},emits:["follow"],setup(e,{emit:t}){const n=e,r=t,{isFollowed:o}=Hc(n),s=ie("ÐодпиÑаÑÑÑÑ"),a=()=>{o.value||r("follow")};return ke(o,u=>{s.value=u?"ÐÑ Ð¿Ð¾Ð´Ð¿Ð¸ÑанÑ":"ÐодпиÑаÑÑÑÑ"},{immediate:!0}),(u,f)=>(U(),we(N(St),{class:Be(["short-post-follow-button",{"short-post-follow-button--followed":N(o)}]),short:"",title:e.seoTitle,size:N(ot).SM,variant:N(o)?N(pt).SECONDARY:N(pt).PRIMARY,color:N(ut).DEFAULT,"data-test":"short-post-follow-button",onClick:a},{iconLeft:be(()=>[N(o)?(U(),we(N(nK),{key:0,width:"16px",height:"16px"})):(U(),we(N(cK),{key:1,width:"16px",height:"16px"}))]),default:be(()=>[ye(ko,{name:"text-fade",mode:"out-in"},{default:be(()=>[(U(),X("span",{key:s.value,class:"short-post-follow-button__text"},Ue(s.value),1))]),_:1})]),_:1},8,["class","title","size","variant","color"]))}}),cme=Go(lme,[["__scopeId","data-v-4e4655b1"]]);function fme({onUnauthorized:e}={}){const{gqlClient:t}=ea(),n=Di(),r=vf().diDeps.get("openAuthPopup"),{followUser:o,unfollowUser:s}=v4(t),{isAuthorized:a}=Fu(t),u=f=>{const{authorId:d,status:p,authors:h}=f;return h!=null&&h.length?h.map(y=>y.id===d?{...y,following:p}:y):[]};return{followAuthor:async f=>{const{authorId:d,authors:p}=f;if(!a.value)return r?.(),e?.(),p;try{return await o(d),u({authors:p,authorId:d,status:!0})}catch{return n.emit("notification:error",{text:"Ðе ÑдалоÑÑ Ð¿Ð¾Ð´Ð¿Ð¸ÑаÑÑÑÑ Ð½Ð° авÑоÑа, попÑобÑиÌÑе позже."}),p}},unfollowAuthor:async f=>{const{authorId:d,authors:p}=f;if(!a.value)return r?.(),e?.(),p;try{return await s(d),u({authors:p,authorId:d,status:!1})}catch{return n.emit("notification:error",{text:"Ðе ÑдалоÑÑ Ð¾ÑпиÑаÑÑÑÑ Ð½Ð° авÑоÑа, попÑобÑиÌÑе позже."}),p}}}}const dme=xe({__name:"ShortPostCardWrapper",props:{id:{type:String,default:""},images:{type:Array,default:()=>[]},authors:{type:Array,default:()=>[]},commentsCount:{type:Number,required:!0},flameIsHot:{type:Boolean,required:!0},structuredBody:{type:Array,default:()=>[]},published:{type:String,default:""},blog:{type:Object,default:void 0},postReactions:{type:Array,default:()=>[]},reactionCatalog:{type:Array,default:()=>[]},isReactionPending:{type:Boolean,default:!1},hideFollowButton:{type:Boolean,default:!1},hideBlog:{type:Boolean,default:!1},cardMode:{type:String,default:"feed"},disabled:{type:Boolean,default:!1},bookmarked:{type:Boolean,default:!1},extraFeedMenuItems:{type:Array,default:()=>[]},extraFullPostMenuItems:{type:Array,default:()=>[]}},emits:["click-post","preview-image","comments-click","creator-click","set-reaction","author-subscribe","needs-auth","edit-post","delete-post","view","share","menu-item-select"],setup(e,{emit:t}){const n=e,r=t,o=vf().diDeps.get("openAuthPopup"),{gqlClient:s}=ea(),{logger:a}=Cf(),{user:u}=Fu(s),{followAuthor:f}=fme({onUnauthorized:()=>
95r("needs-auth","subscribe")}),d=Di(),p=ie(n.authors);ke(()=>n.authors,O=>{p.value=O});const h=J(()=>{var O,M;return!!((O=u.value)!=null&&O.id)&&!!((M=p.value[0])!=null&&M.id)&&u.value.id===p.value[0].id}),y=J(()=>n.cardMode==="full-post"),m=ie({withIcons:!0,amount:3}),v=ie(!1),b=J(()=>n.disabled||v.value),S=J(()=>y.value?[...n.extraFullPostMenuItems]:[Ve.SHARE,...n.extraFeedMenuItems]),{handleContextMenuSelect:w,openMenuHandler:T,menuItems:I,loading:C}=Sce({gqlClient:s,logger:a,openAuthPopup:o,documentId:n.id,documentType:p1.Post,authors:p.value,blog:n.blog,recommendationDocumentType:D_.SHORTPOST,defaultItems:N(S),disabled:v,isShortPost:!0,documentName:"поÑÑ"}),A=J(()=>!y.value||C.value||I.value.length>0);y.value&&T();const $=async O=>{var M;if(L5(O)){if(O.id===Ve.Edit){r("edit-post",n.id);return}if(O.id===Ve.Delete){r("delete-post",n.id);return}if(await w({item:O}),O.id===Ve.SHARE){r("share");return}r("menu-item-select",{id:O.id,authorId:O.authorId??((M=p.value[0])==null?void 0:M.id)})}},k=()=>{r("share"),d.emit("media-events:share",{id:n.id,type:p1.Post,onlyLink:!0})},x=async O=>{const M=await f({authorId:O,authors:p.value});!M||M===p.value||(p.value=M,r("author-subscribe",O))};return(O,M)=>(U(),we(N(Xge),{id:e.id,authors:p.value,published:e.published,blog:e.blog,images:e.images,"flame-is-hot":e.flameIsHot,"structured-body":e.structuredBody,"comments-count":e.commentsCount,"post-reactions":e.postReactions,"reaction-catalog":e.reactionCatalog,"is-reaction-pending":e.isReactionPending,disabled:b.value,"card-mode":e.cardMode,"is-current-user-author":h.value,"hide-follow-button":e.hideFollowButton,"hide-blog":e.hideBlog,"data-test":"short-post-card",onClickPost:M[1]||(M[1]=j=>r("click-post",j)),onPreviewImage:M[2]||(M[2]=j=>r("preview-image",j)),onCommentsClick:M[3]||(M[3]=j=>r("comments-click",j)),onCreatorClick:M[4]||(M[4]=j=>r("creator-click",j)),onAuthorSubscribe:x,onSetReaction:M[5]||(M[5]=j=>r("set-reaction",j)),onView:M[6]||(M[6]=j=>r("view"))},gr({actions:be(()=>[y.value?(U(),we(N(St),{key:0,short:"",size:N(ot).SM,variant:N(pt).SECONDARY,color:N(ut).DEFAULT,onClick:k},{default:be(()=>[ye(N(dC),{width:16,height:16})]),_:1},8,["size","variant","color"])):Ie("",!0),A.value?(U(),we(N(Tce),{key:1,id:e.id,loading:N(C),"skeleton-options":m.value,items:N(I),"button-size":N(ot).SM,"menu-class":"short-post-card-wrapper__context-menu",onOpenMenu:N(T),onSelectMenuItem:$},null,8,["id","loading","skeleton-options","items","button-size","onOpenMenu"])):Ie("",!0)]),_:2},[!h.value&&y.value&&!e.hideFollowButton?{name:"follow-button",fn:be(({isFollowed:j})=>[ye(N(cme),{"is-followed":j,onFollow:M[0]||(M[0]=V=>x(p.value[0].id))},null,8,["is-followed"])]),key:"0"}:void 0]),1032,["id","authors","published","blog","images","flame-is-hot","structured-body","comments-count","post-reactions","reaction-catalog","is-reaction-pending","disabled","card-mode","is-current-user-author","hide-follow-button","hide-blog"]))}}),pme=({gqlClient:e,onUnauthorized:t}={})=>{const{gqlClient:n}=ea(e),r=vf(),{isAuthorized:o}=Fu(n),s=r.diDeps.get("openAuthPopup"),{setReaction:a,isReactionError:u}=$O({gqlClient:n}),f=ie(null);return{setReaction:async(d,p)=>{if(!o.value)return s?.(),t?.(),null;f.value=d;try{const h=await a({objectID:d,objectType:pO.Post,reactionID:p});return!h||(h.reactType,sb.Error),h}finally{f.value=null}},reactionPendingPostId:f,isError:u,isAuthorized:o}},hme=e=>[...e].sort((t,n)=>n.count-t.count),BO=({post:e,reactions:t})=>({...e,reactions:hme(t)}),gme=({posts:e,postId:t,reactions:n})=>e.map(r=>r.id===t?BO({post:r,reactions:n}):r),Dbe=({gqlClient:e,imageInput:t}={})=>{const{gqlClient:n}=ea(e),{getPostById:r,deletePost:o}=Rf(n),s=ie(null),a=ie(!1),u=ie(!1);return{post:s,isLoading:a,isError:u,fetchPostById:async(f,{keepCurrent:d=!1}={})=>{d||(s.value=null),a.value=!0,u.value=!1;try{s.value=await r({id:f,imageInput:N(t)??$_.shortPost.modal})||null}catch{u.value=!0}finally{a.value=!1}},deletePostById:async f=>{try{return await o({id:f})}catch{return!1}},patchReactions:f=>{s.value&&(s.value=BO({post:s.value,reactions:f}))}}},mme="short_post",yme="1",vme="-1",_me=Symbol("shortPostDetailCollector"),bme=Symbol("shortPostFeedCollector");function Vl(e){return e?yme:vme}function ni({postId:e,commentsCount:t,reactionsCount:n}){return{content_id:e,comments_count:t,reactions_count:n}}function wme(e){const t=xt(mme),n=og(_me,{getCollectors:()=>[new ng]}),r=o=>{n?.collect(rg,{category:o.category??t.value,action:o.action,label:o.label??"",property:o.property??{},value:o.value??""})};return{trackEdit(){r({action:"edit",property:{}})},trackDeleteShortPost(o){const{confirmed:s,...a}=o;r({action:"delete",property:ni(a),value:Vl(s)})},trackReact(o){const{reactionId:s,action:a,...u}=o;r({action:"react_to_content",property:{...ni(u),reaction_id:s},value:Vl(a==="add")})},trackShare(o){r({action:"share",property:ni(o)})},trackRefreshComments(o){r({action:"refresh_comments",property:ni(o)})},trackSortComments(o){const{sortOrder:s,...a}=o;r({action:"sort_comments",property:ni(a),value:s})},trackToggleCommentsDialogs(o){const{isDialogue:s,...a}=o;r({action:"toggle_comments_dialogs",property:ni(a),value:Vl(s)})},trackCreatorClick(o){const{creatorId:s,creatorType:a,...u}=o;r({action:"to_creator",label:a,property:{...ni(u),creator_id:s}})},trackSubscribe(o){const{creatorId:s,...a}=o;r({action:"subscribe",property:{...ni(a),creator_id:s}})}}}const NO=/^\/profile\/([^/]+)\/posts\/([^/]+)\/?/,DO=e=>NO.test(e.split("?")[0]),UO=e=>{const t=e.split("?")[0].match(NO);return t?{profileSlug:t[1],postId:t[2]}:null},gT={view:"",comments:"#comments",edit:"#edit"},HO={shortPostModal:!0},xo=ie(!1),g1=ie(""),eh=ie(""),ql=ie("");let m1=!1,md=0,yd=null,ds="";const FO=({profileSlug:e})=>`/profile/${e}/`;let y1=FO;const Eme=(e,t,n="")=>{const r=`/profile/${e}/posts/${t}/`;return n?`${r}${n}`:r},Sme=e=>{var t;return((t=UO(e))==null?void 0:t.postId)??null},$me=()=>{var e;return((e=window.history.state)==null?void 0:e.shortPostModal)===!0},jO=()=>{const e=Sme(window.location.pathname);if(e){g1.value=e,eh.value="",ql.value=window.location.hash,ds=`${window.location.pathname}${window.location.hash}`,xo.value=!0;return}xo.value&&(m1=!0,xo.value=!1,eh.value="",ql.value="")},Tme=e=>{if(!xo.value||`${window.location.pathname}${window.location.hash}`===ds)return!1;const t=_pe();return t!=null&&t.needsConfirm()?(e.stopImmediatePropagation(),window.history.pushState(HO,"",ds),t.confirm().then(n=>
95{n&&xo.value&&window.history.back()}),!0):!1},mT=e=>{DO(window.location.pathname)&&e.stopImmediatePropagation(),!Tme(e)&&jO()},Ime=()=>{const e=UO(window.location.pathname);if(e){if($me()){window.history.back();return}window.history.replaceState(window.history.state,"",y1(e))}},Ame=(e={})=>(e.fallbackUrl&&(y1=e.fallbackUrl),typeof window<"u"&&(md===0&&(window.addEventListener("popstate",mT,{capture:!0}),jO(),yd=ke(xo,t=>{if(m1){m1=!1;return}t||Ime()},{flush:"sync"})),md+=1,Do(()=>{md-=1,!(md>0)&&(window.removeEventListener("popstate",mT,{capture:!0}),yd?.(),yd=null,y1=FO)})),{isPostModalOpen:xo,postId:g1,sourceFeedId:eh,modalHash:ql,openShortPostModal:(t,n,r="view",o="")=>{const s=gT[r];ds=Eme(n,t,s),window.history.pushState(HO,"",ds),g1.value=t,eh.value=o,ql.value=s,xo.value=!0},closeShortPostModal:()=>{xo.value=!1},setEditMode:t=>{if(typeof window>"u"||!DO(window.location.pathname))return;const n=t?gT.edit:"";ds=`${window.location.pathname}${n}`,window.history.replaceState(window.history.state,"",ds),ql.value=n}}),xme={SHOW:"preview:show"},Cme=e=>{typeof window>"u"||Di().emit(xme.SHOW,e)},th=new Map,Rme=(e,t)=>{const n=e.findIndex(({id:r})=>r===t);return n===-1?null:{images:e.map(({url:r})=>r),startIndex:n}},Ome=e=>{const t=`${e}:`;th.forEach((n,r)=>{r.startsWith(t)&&th.delete(r)})},kme=({gqlClient:e}={})=>{const{gqlClient:t}=ea(e),{getPreviewMediaList:n}=Rf(t),r=async s=>(await n({postId:s,imageInput:$_.shortPost.preview})).reduce((a,{id:u,picture:f})=>(f!=null&&f.url&&a.push({id:u,url:f.url}),a),[]),o=async(s,a)=>{const u=await r(a);return th.set(s,u),u};return{openShortPostImagePreview:({postId:s,mediaId:a,mediaIds:u})=>{if(!s||!a)return;const f=`${s}:${u?.join(":")}`;Cme({fetchImages:async()=>{try{const d=th.get(f)??await o(f,s);return Rme(d,a)}catch{return null}}})}}},Lme=xe({inheritAttrs:!1,__name:"ShortPostsListPagination",props:{mode:{type:String,default:"infinite-scroll"},hasMore:{type:Boolean,default:!1},isLoadingMore:{type:Boolean,default:!1}},emits:["load-more"],setup(e,{emit:t}){const n=t;return(r,o)=>e.mode==="infinite-scroll"?(U(),we(N(J4),un({key:0},r.$attrs,{onLoadMore:o[0]||(o[0]=s=>n("load-more"))}),{list:be(()=>[De(r.$slots,"default")]),_:3},16)):e.mode==="show-more"?(U(),we(N(Wee),un({key:1},r.$attrs,{"is-loading":e.isLoadingMore,"has-more":e.hasMore,"show-more-button":e.hasMore,"show-pagination":"",onLoadMore:o[1]||(o[1]=s=>n("load-more"))}),{list:be(()=>[De(r.$slots,"default")]),_:3},16,["is-loading","has-more","show-more-button"])):Ie("",!0)}}),Mme={class:"short-posts-list","data-test":"short-posts-list"},Pme={key:0,class:"short-posts-list__loader-wrapper","data-test":"short-posts-list-loader"},Bme={class:"short-posts-list__content-wrapper","data-test":"short-posts-list-content"},Nme=xe({__name:"ShortPostsList",props:{list:{type:Array,default:()=>[]},isLoading:{type:Boolean,default:!1},isLoadingMore:{type:Boolean,default:!1},isError:{type:Boolean,default:!1},mode:{type:String,default:"infinite-scroll"},hasMore:{type:Boolean,default:!1},hideFollowButton:{type:Boolean,default:!1},hideBlog:{type:Boolean,default:!1},reactionCatalog:{type:Array,default:()=>[]},reactionPendingPostId:{type:String,default:null}},emits:["fetch-next","reload","click-post","preview-image","comments-click","creator-click","author-subscribe","set-reaction","edit-post","delete-post","view","share"],setup(e,{emit:t}){const n=t,r=o=>{n("creator-click",o)};return(o,s)=>(U(),X("div",Mme,[e.isLoading?(U(),X("div",Pme,[(U(),X(He,null,dt(4,a=>ye(N(hT),{key:a})),64))])):e.isError?(U(),we(N(fre),{key:1,title:"ÐенÑа поÑÑов заÑÑÑÑла",description:"ÐажмиÑе ÐºÐ½Ð¾Ð¿ÐºÑ Ð½Ð¸Ð¶Ðµ или пеÑезагÑÑзиÑе ÑÑÑаниÑÑ","show-button":"","data-test":"short-posts-list-error-placeholder",onReload:s[0]||(s[0]=a=>n("reload"))})):e.list.length?(U(),we(Lme,{key:2,mode:e.mode,"has-more":e.hasMore,"is-loading-more":e.isLoadingMore,"data-test":"short-posts-list-pagination",onLoadMore:s[5]||(s[5]=a=>n("fetch-next"))},{default:be(()=>[te("div",Bme,[(U(!0),X(He,null,dt(e.list,(a,u)=>(U(),we(N(dme),{id:a.id,key:a.id,authors:a.authors,published:a.published.rfc3339,blog:a.blog,images:a.mediaList,"flame-is-hot":a.hot,"structured-body":a.structuredBody,"comments-count":a.commentsCount,"post-reactions":a.reactions,"reaction-catalog":e.reactionCatalog,"is-reaction-pending":e.reactionPendingPostId===a.id,"card-mode":"feed","hide-follow-button":e.hideFollowButton,"hide-blog":e.hideBlog,"data-test":"short
95-posts-list-item",onClickPost:f=>n("click-post",{id:a.id,index:u,isShort:a.isShort}),onPreviewImage:s[1]||(s[1]=f=>n("preview-image",f)),onCommentsClick:f=>n("comments-click",{id:a.id,index:u,isShort:a.isShort}),onCreatorClick:r,onAuthorSubscribe:s[2]||(s[2]=f=>n("author-subscribe",f)),onSetReaction:f=>n("set-reaction",{...f,index:u}),onEditPost:s[3]||(s[3]=f=>n("edit-post",f)),onDeletePost:s[4]||(s[4]=f=>n("delete-post",f)),onView:f=>n("view",{postId:a.id,isShort:a.isShort,index:u}),onShare:f=>n("share",{postId:a.id,isShort:a.isShort,index:u})},null,8,["id","authors","published","blog","images","flame-is-hot","structured-body","comments-count","post-reactions","reaction-catalog","is-reaction-pending","hide-follow-button","hide-blog","onClickPost","onCommentsClick","onSetReaction","onView","onShare"]))),128)),e.isLoadingMore&&e.mode==="infinite-scroll"?(U(),X(He,{key:0},dt(2,a=>ye(N(hT),{key:a})),64)):Ie("",!0)])]),_:1},8,["mode","has-more","is-loading-more"])):Ie("",!0)]))}}),Dme=Go(Nme,[["__scopeId","data-v-694e050a"]]);var cr=(e=>(e.BLOG="blog",e.PROFILE="profile",e))(cr||{});const Ume=10,Hme=50,Fme=({currentAuthorType:e,imageInput:t,gqlClient:n})=>{const{gqlClient:r}=ea(n),{getShortPostsByBlogId:o,getShortPostsByUserId:s}=Rf(r),a=ie([]),u=ie(!1),f=ie(),d=ie(!1),p=ie(!1),h=ie(!1),y=async T=>{const I=N(e);if(I!==cr.BLOG&&I!==cr.PROFILE)return;const C=await(I===cr.BLOG?o:s)({...T,imageInput:N(t)});C&&(a.value=[...a.value,...C.posts],f.value=C.lastId,u.value=C.hasMore)},m=()=>{a.value=[],u.value=!1,f.value=void 0,h.value=!1},v=async({id:T,amount:I=Ume})=>{m(),d.value=!0;try{await y({id:T,amount:I}),h.value=!1}catch{h.value=!0}finally{d.value=!1}},b=(T,I)=>{a.value=gme({posts:a.value,postId:T,reactions:I})},{setReaction:S,reactionPendingPostId:w}=pme({gqlClient:n});return{shortPosts:a,hasMore:u,isError:h,isLoading:d,isLoadingPagination:p,fetchShortPostsByObjectId:y,fetchFirst:v,fetchNext:async({id:T,amount:I=Hme})=>{if(u.value){p.value=!0;try{await y({id:T,amount:I,lastId:f.value})}finally{p.value=!1}}},resetState:m,patchPostReactions:b,setReaction:async(T,I)=>{const C=await S(T,I);return C&&C.reactType!==sb.Error&&b(T,C.objectReactions??[]),C},reactionPendingPostId:w}};ie(!1);ie("");function jme({category:e,label:t,buildFeedItemProperty:n,buildPostClickProperty:r,buildReactProperty:o,buildDeleteProperty:s}){const a=og(bme,{getCollectors:()=>[new ng]}),u=f=>{a?.collect(rg,{category:e.value,action:f.action,label:t.value,property:f.property,value:f.value??""})};return{trackPostView:f=>{u({action:"post_view",property:n(f)})},trackPostClick:(f,d)=>{u({action:"to_post",property:r({...f,target:d})})},trackPostShare:f=>{u({action:"share",property:n(f)})},trackPostReact:f=>{const{action:d,...p}=f;u({action:"react",property:o(p),value:Vl(d==="add")})},trackAuthorClick:({authorId:f})=>{f&&u({action:"author_click",property:{user_id:f}})},trackDelete:({postId:f,confirmed:d})=>{u({action:"delete",property:s({postId:f}),value:Vl(d)})}}}const Vme={class:"confirm-close-modal__text"},qme={class:"confirm-close-modal__actions"},VO=xe({__name:"ConfirmCloseModal",props:Nt({text:{type:String,default:"ÐÑи закÑÑÑии окна Ð²Ð°Ñ Ð¿Ð¾ÑÑ Ð½Ðµ ÑоÑ
ÑаниÑÑÑ"},confirmLabel:{type:String,default:"ÐÑÑ Ñавно вÑйÑи"},dataTestPrefix:{type:String,default:"create-short-post-confirm-close"}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:Nt(["confirm","cancel"],["update:modelValue"]),setup(e,{emit:t}){const n=Yn(e,"modelValue"),r=t;function o(){n.value=!1,r("confirm")}function s(){n.value=!1,r("cancel")}return(a,u)=>(U(),we(N(Hu),{modelValue:n.value,"onUpdate:modelValue":u[0]||(u[0]=f=>n.value=f),class:"confirm-close-modal","show-close-icon":!1,"data-test":`${e.dataTestPrefix}-modal`},{text:be(()=>[te("p",Vme,Ue(e.text),1),te("div",qme,[ye(N(St),{variant:N(pt).TERTIARY,color:N(ut).DEFAULT,size:N(ot).SM,"data-test":`${e.dataTestPrefix}-cancel-btn`,onClick:s},{default:be(()=>u[1]||(u[1]=[mt(" ÐÑмениÑÑ ")])),_:1},8,["variant","color","size","data-test"]),ye(N(St),{variant:N(pt).PRIMARY,color:N(ut).DANGER,size:N(ot).SM,"data-test":`${e.dataTestPrefix}-confirm-btn`,onClick:o},{default:be(()=>
95[mt(Ue(e.confirmLabel),1)]),_:1},8,["variant","color","size","data-test"])])]),_:1},8,["modelValue","data-test"]))}}),nh="ÐÑибка пÑи пÑбликаÑии поÑÑа",Wme=96,zme=56,Gme={class:"create-short-post-error-content"},Yme={class:"create-short-post-error-content__text"},Kme=xe({__name:"CreateShortPostErrorContent",props:{errorMessage:{type:String,default:nh}},setup(e){return(t,n)=>(U(),X("div",Gme,[ye(N(gC),{class:"create-short-post-error-content__icon"}),te("span",Yme,Ue(e.errorMessage),1)]))}}),ta=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},Zme=ta(Kme,[["__scopeId","data-v-71a3bcea"]]),Qme="https://dumpster.cdn.sports.ru/f/a2/663e15bcbf6d0ce73672ed705dc60.png",Jme="https://dumpster.cdn.sports.ru/a/85/9a07dd23b60511f6da7b60f529363.png",qO=e=>e==="cyber"?Jme:Qme,Xme={class:"create-short-post-success-content"},eye={class:"create-short-post-success-content__image-wrap"},tye=["src"],nye={class:"create-short-post-success-content__content"},rye={class:"create-short-post-success-content__text ui-body-md-regular"},oye=["href"],iye=xe({__name:"CreateShortPostSuccessContent",props:{authorId:{},siteName:{}},setup(e){const t=e,n=J(()=>qO(t.siteName)),r=J(()=>`/profile/${t.authorId}/`);return(o,s)=>(U(),X("div",Xme,[te("div",eye,[te("img",{src:n.value,alt:"",role:"presentation","aria-hidden":"true",class:"create-short-post-success-content__image"},null,8,tye)]),te("div",nye,[s[2]||(s[2]=te("div",{class:"create-short-post-success-content__title ui-heading-xs"}," ÐоÑÑ ÑÑпеÑно опÑбликован! ",-1)),te("div",rye,[s[0]||(s[0]=mt(" ÐÑ Ð½Ð°Ð¹Ð´ÑÑе его в ÑвоÑм ")),te("a",{href:r.value,class:"create-short-post-success-content__profile-link",target:"_blank",rel:"noopener noreferrer"},"пÑоÑиле",8,oye),s[1]||(s[1]=mt(", оÑÑалÑнÑе полÑзоваÑели ÑвидÑÑ Ð² ленÑе ÑекомендаÑий "))])])]))}}),sye=ta(iye,[["__scopeId","data-v-78edcb2f"]]),aye={class:"dropdown-item"},uye={class:"dropdown-item__name ui-body-sm-regular"},lye=xe({__name:"DropdownItem",props:{name:{},avatarUrl:{default:void 0},size:{default:"5xs"}},setup(e){return(t,n)=>(U(),X("div",aye,[ye(N(pu),{src:t.avatarUrl,size:t.size},null,8,["src","size"]),te("span",uye,Ue(t.name),1)]))}}),yT=ta(lye,[["__scopeId","data-v-90ae37c0"]]),cye=8,fye=xe({__name:"AuthorDropdown",props:Nt({id:{},items:{},activeKey:{},selectedName:{},selectedAvatarUrl:{default:void 0},disabled:{type:Boolean,default:!1},avatarSize:{default:"5xs"},placement:{default:"bottom-start"},teleport:{type:Boolean,default:!0}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:Nt(["select","create-blog"],["update:modelValue"]),setup(e,{emit:t}){const n=e,r=J(()=>n.items.filter(f=>!f.isCreateBlog).length===1),o=t,s=Yn(e,"modelValue");function a(f){f.isCreateBlog||o("select",f)}function u(){const f=document.querySelector(`[popovertarget="${n.id}"]`),d=document.querySelector(`[data-author-dropdown="${n.id}"].ui-dropdown--drawer`);if(!(f instanceof HTMLElement)||!(d instanceof HTMLElement))return;const p=d.closest(".bottom-drawer");if(!(p instanceof HTMLElement))return;const h=f.getBoundingClientRect();p.style.setProperty("--author-dropdown-top",`${Math.round(h.bottom+cye)}px`),p.style.setProperty("--author-dropdown-left",`${Math.round(h.left)}px`)}return ke(s,async f=>{f&&(await gt(),u())}),(f,d)=>(U(),X("div",{class:Be(["author-dropdown",{"author-dropdown--single-item":r.value}])},[ye(N(v_),{id:f.id,modelValue:s.value,"onUpdate:modelValue":d[2]||(d[2]=p=>s.value=p),class:Be(["author-dropdown__menu",{"author-dropdown__menu--single-item":r.value}]),placement:f.placement,teleport:f.teleport,"data-author-dropdown":f.id,items:f.items,"active-key":f.activeKey,onClick:a},{"item-content":be(({item:p})=>[p.isCreateBlog?(U(),we(N(St),{key:0,as:N(_f).A,variant:N(pt).SECONDARY,color:N(ut).DEFAULT,size:N(ot).SM,href:"/tribuna/blogs/add#newPost",class:"author-dropdown__create-blog","data-test":"author-dropdown-create-blog",onClick:d[1]||(d[1]=h=>o("create-blog"))},{iconRight:be(()=>[ye(N(Js),{width:"16px",height:"16px"})]),default:be(()=>[d[3]||(d[3]=mt(" СоздаÑÑ Ð±Ð»Ð¾Ð³ "))]),_:1},8,["as","variant","color","size"])):(U(),we(yT,{key:1,name:p.title,"avatar-url":p.avatarUrl},null,8,["name","avatar-url"]))]),default:be(()=>[ye(N(St),{variant:N(pt).TERTIARY,color:N(ut).DEFAULT,size:N(ot).SM,class:Be(["author-dropdown__trigger",{"author-dropdown__trigger--open":s.value}]),popovertarget:f.id,disabled:f.disabled,"data-test":"author-dropdown-trigger",onClick:d[0]||(d[0]=ft(p=>s.value=!s.value,["stop"]))},{default:be(()=>
95[ye(yT,{name:f.selectedName,"avatar-url":f.selectedAvatarUrl,size:f.avatarSize},null,8,["name","avatar-url","size"]),f.items.length||f.disabled?(U(),we(N(e_),{key:0,width:"16px",height:"16px",class:Be(["author-dropdown__chevron",{"author-dropdown__chevron--open":s.value}])},null,8,["class"])):Ie("",!0)]),_:1},8,["variant","color","size","class","popovertarget","disabled"])]),_:1},8,["id","modelValue","class","placement","teleport","data-author-dropdown","items","active-key"])],2))}}),v1=ta(fye,[["__scopeId","data-v-e156de75"]]),dye={class:"post-footer-actions"},pye={class:"post-footer-actions__right"},hye=xe({__name:"PostFooterActions",props:{canPublish:{type:Boolean,required:!0},photoLimitReached:{type:Boolean,default:!1},charCount:{type:Number,default:void 0},maxChars:{type:Number,default:4096},publishLabel:{type:String,default:"ÐÑпÑавиÑÑ"},publishVariant:{type:String,default:pt.PRIMARY},publishColor:{type:String,default:ut.SUCCESS},publishedState:{type:Boolean,default:!1}},emits:["publish","photoAdd","photoClick"],setup(e,{emit:t}){const n=t,r=ie(null);function o(){n("photoClick"),r.value?.click()}function s(a){const u=a.target,f=Array.from(u.files??[]).filter(d=>d.type.startsWith("image/"));u.value="",f.length&&n("photoAdd",f)}return(a,u)=>(U(),X("div",dye,[ye(N(St),{variant:N(pt).TERTIARY,color:N(ut).DEFAULT,size:N(ot).SM,class:"post-footer-actions__photo-btn",disabled:e.photoLimitReached,"data-test":"create-short-post-modal-photo-btn",onClick:o},{iconLeft:be(()=>[ye(N(fC),{width:"16px",height:"16px"})]),default:be(()=>[u[1]||(u[1]=mt(" ФоÑо "))]),_:1},8,["variant","color","size","disabled"]),te("input",{ref_key:"fileInputRef",ref:r,type:"file",multiple:"",accept:"image/jpeg,image/png,image/webp,image/avif,image/heic",class:"post-footer-actions__file-input","data-test":"create-short-post-modal-file-input",onChange:s},null,544),te("div",pye,[e.charCount!==void 0?(U(),X("span",{key:0,class:Be(["post-footer-actions__counter",{"post-footer-actions__counter--limit":e.charCount>=e.maxChars}])},Ue(e.charCount)+"/"+Ue(e.maxChars),3)):Ie("",!0),ye(N(St),{variant:e.publishVariant,color:e.publishColor,size:N(ot).SM,disabled:!e.canPublish,class:Be(["post-footer-actions__publish-btn",{"post-footer-actions__publish-btn--published":e.publishedState}]),"data-test":"create-short-post-modal-publish-btn",onClick:u[0]||(u[0]=f=>n("publish"))},gr({default:be(()=>[De(a.$slots,"default",{},()=>[mt(Ue(e.publishLabel),1)],!0)]),_:2},[a.$slots["icon-left"]?{name:"iconLeft",fn:be(()=>[De(a.$slots,"icon-left",{},void 0,!0)]),key:"0"}:void 0,a.$slots["icon-right"]?{name:"iconRight",fn:be(()=>[De(a.$slots,"icon-right",{},void 0,!0)]),key:"1"}:void 0]),1032,["variant","color","size","disabled","class"])])]))}}),_1=ta(hye,[["__scopeId","data-v-22e1a997"]]);function gye(e){return Object.prototype.toString.call(e)==="[object Object]"}function vT(e){return gye(e)||Array.isArray(e)}function mye(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function db(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const o=JSON.stringify(Object.keys(e.breakpoints||{})),s=JSON.stringify(Object.keys(t.breakpoints||{}));return o!==s?!1:n.every(a=>{const u=e[a],f=t[a];return typeof u=="function"?`${u}`==`${f}`:!vT(u)||!vT(f)?u===f:db(u,f)})}function _T(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function yye(e,t){if(e.length!==t.length)return!1;const n=_T(e),r=_T(t);return n.every((o,s)=>{const a=r[s];return db(o,a)})}function pb(e){return typeof e=="number"}function b1(e){return typeof e=="string"}function lg(e){return typeof e=="boolean"}function bT(e){return Object.prototype.toString.call(e)==="[object Object]"}function Mt(e){return Math.abs(e)}function hb(e){return Math.sign(e)}function Wl(e,t){return Mt(e-t)}function vye(e,t){if(e===0||t===0||Mt(e)<=Mt(t))return 0;const n=Wl(Mt(e),Mt(t));return Mt(n/e)}function _ye(e){return Math.round(e*100)/100}function Ac(e){return xc(e).map(Number)}function Tr(e){return e[Of(e)]}function Of(e){return Math.max(0,e.length-1)}function gb(e,t){return t===Of(e)}function wT(e,t=0){return Array.from(Array(e),(n,r)=>t+r)}function xc(e){return Object.keys(e)}function WO(e,t){return[e,t].reduce((n,r)=>(xc(r).forEach(o=>{const s=n[o],a=r[o],u=bT(s)&&bT(a);n[o]=u?WO(s,a):a}),n),{})}function w1(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function bye(e,t){const n={start:r,center:o,end:s};function r(){return 0}function o(u){return s(u)/2}function s(u){return t-u}function a(u,f){return b1(e)?n[e](u):e(t,u,f)}return{measure:a}}function Cc(){let e=[];function t(o,s,a,u={passive:!0}){let f;if("addEventListener"in o)o.addEventListener(s,a,u),f=()=>o.removeEventListener(s,a,u);else{const d=o;d.addListener(a),f=()=>d.removeListener(a)}return e.push(f),r}function n(){e=e.filter(o=>o())}const r={add:t,clear:n};return r}function wye(e,t,n,r){const o=Cc(),s=1e3/60;let a=null,u=0,f=0;function d(){o.add(e,"visibilitychange",()=>{e.hidden&&v()})}function p(){m(),o.clear()}function h(b){if(!f)return;a||(a=b,n(),n());const S=b-a;for(a=b,u+=S;u>=s;)n(),u-=s;const w=u/s;r(w),f&&(f=t.requestAnimationFrame(h))}function y(){f||(f=t.requestAnimationFrame(h))}function m(){t.cancelAnimationFrame(f),a=null,u=0,f=0}function v(){a=null,u=0}return{init:d,destroy:p,start:y,stop:m,update:n,render:r}}function Eye(e,t){const n=t==="rtl",r=e==="y",o=r?"y":"x",s=r?"x":"y",a=!r&&n?-1:1,u=p(),f=h();function d(m){const{height:v,width:b}=m;return r?v:b}function p(){return r?"top":n?"right":"left"}function h(){return r?"bottom":n?"left":"right"}function y(m){return m*a}return{scroll:o,cross:s,startEdge:u,endEdge:f,measureSize:d,direction:y}}function Ws(e=0,t=0){const n=Mt(e-t);function r(f){return f<e}function o(f){return f>t}function s(f){return r(f)||o(f)}function a(f){return s(f)?r(f)?e:t:f}function u(f){return n?f-n*Math.ceil((f-t)/n):f}return{length:n,max:t,min:e,constrain:a,reachedAny:s,reachedMax:o,reachedMin:r,removeOffset:u}}function zO(e,t,n){const{constrain:r}=Ws(0,e),o=e+1;let s=a(t);function a(y){return n?Mt((o+y)%o):r(y)}function u(){return s}function f(y){return s=a(y),h}function d(y){return p().set(u()+y)}function p(){return zO(e,u(),n)}const h={get:u,set:f,add:d,clone:p};return h}function Sye(e,t,n,r,o,s,a,u,f,d,p,h,y,m,v,b,S,w,T){const{cross:I,direction:C}=e,A=["INPUT","SELECT","TEXTAREA"],$={passive:!1},k=Cc(),x=Cc(),O=Ws(50,225).constrain(m.measure(20)),M={mouse:300,touch:400},j={mouse:500,touch:600},V=v?43:25;let W=!1,Y=0,ne=0,Z=!1,ae=!1,ce=!1,q=!1;function ue(B){if(!T)return;function K(D){(lg(T)||T(B,D))&&Ae(D)}const L=t;k.add(L,"dragstart",D=>D.preventDefault(),$).add(L,"touchmove",()=>{},$).add(L,"touchend",()=>{}).add(L,"touchstart",K).add(L,"mousedown",K).add(L,"touchcancel",Q).add(L,"contextmenu",Q).add(L,"click",P,!0)}function G(){k.clear(),x.clear()}function re(){const B=q?n:t;x.add(B,"touchmove",le,$).add(B,"touchend",Q).add(B,"mousemove",le,$).add(B,"mouseup",Q)}function Oe(B){const K=B.nodeName||"";return A.includes(K)}function Ee(){return(v?j:M)[q?"mouse":"touch"]}function Pe(B,K){const L=h.add(hb(B)*-1),D=p.byDistance(B,!v).distance;return v||Mt(B)<O?D:S&&K?D*.5:p.byIndex(L.get(),0).distance}function Ae(B){const K=w1(B,r);q=K,ce=v&&K&&!B.buttons&&W,W=Wl(o.get(),a.get())>=2,!(K&&B.button!==0)&&(Oe(B.target)||(Z=!0,s.pointerDown(B),d.useFriction(0).useDuration(0),o.set(a),re
vendor: 9,540 bytes, line 95
95(),Y=s.readPoint(B),ne=s.readPoint(B,I),y.emit("pointerDown")))}function le(B){if(!w1(B,r)&&B.touches.length>=2)return Q(B);const K=s.readPoint(B),L=s.readPoint(B,I),D=Wl(K,Y),se=Wl(L,ne);if(!ae&&!q&&(!B.cancelable||(ae=D>se,!ae)))return Q(B);const ve=s.pointerMove(B);D>b&&(ce=!0),d.useFriction(.3).useDuration(.75),u.start(),o.add(C(ve)),B.preventDefault()}function Q(B){const K=p.byDistance(0,!1).index!==h.get(),L=s.pointerUp(B)*Ee(),D=Pe(C(L),K),se=vye(L,D),ve=V-10*se,de=w+se/50;ae=!1,Z=!1,x.clear(),d.useDuration(ve).useFriction(de),f.distance(D,!v),q=!1,y.emit("pointerUp")}function P(B){ce&&(B.stopPropagation(),B.preventDefault(),ce=!1)}function F(){return Z}return{init:ue,destroy:G,pointerDown:F}}function $ye(e,t){let n,r;function o(d){return d.timeStamp}function s(d,p){const h=`client${(p||e.scroll)==="x"?"X":"Y"}`;return(w1(d,t)?d:d.touches[0])[h]}function a(d){return n=d,r=d,s(d)}function u(d){const p=s(d)-s(r),h=o(d)-o(n)>170;return r=d,h&&(n=d),p}function f(d){if(!n||!r)return 0;const p=s(r)-s(n),h=o(d)-o(n),y=o(d)-o(r)>170,m=p/h;return h&&!y&&Mt(m)>.1?m:0}return{pointerDown:a,pointerMove:u,pointerUp:f,readPoint:s}}function Tye(){function e(t){const{offsetTop:n,offsetLeft:r,offsetWidth:o,offsetHeight:s}=t;return{top:n,right:r+o,bottom:n+s,left:r,width:o,height:s}}return{measure:e}}function Iye(e){function t(n){return e*(n/100)}return{measure:t}}function Aye(e,t,n,r,o,s,a){const u=[e].concat(r);let f,d,p=[],h=!1;function y(b){return o.measureSize(a.measure(b))}function m(b){if(!s)return;d=y(e),p=r.map(y);function S(w){for(const T of w){if(h)return;const I=T.target===e,C=r.indexOf(T.target),A=I?d:p[C],$=y(I?e:r[C]);if(Mt($-A)>=.5){b.reInit(),t.emit("resize");break}}}f=new ResizeObserver(w=>{(lg(s)||s(b,w))&&S(w)}),n.requestAnimationFrame(()=>{u.forEach(w=>f.observe(w))})}function v(){h=!0,f&&f.disconnect()}return{init:m,destroy:v}}function xye(e,t,n,r,o,s){let a=0,u=0,f=o,d=s,p=e.get(),h=0;function y(){const $=r.get()-e.get(),k=!f;let x=0;return k?(a=0,n.set(r),e.set(r),x=$):(n.set(e),a+=$/f,a*=d,p+=a,e.add(a),x=p-h),u=hb(x),h=p,A}function m(){const $=r.get()-t.get();return Mt($)<.001}function v(){return f}function b(){return u}function S(){return a}function w(){return I(o)}function T(){return C(s)}function I($){return f=$,A}function C($){return d=$,A}const A={direction:b,duration:v,velocity:S,seek:y,settled:m,useBaseFriction:T,useBaseDuration:w,useFriction:C,useDuration:I};return A}function Cye(e,t,n,r,o){const s=o.measure(10),a=o.measure(50),u=Ws(.1,.99);let f=!1;function d(){return!(f||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function p(y){if(!d())return;const m=e.reachedMin(t.get())?"min":"max",v=Mt(e[m]-t.get()),b=n.get()-t.get(),S=u.constrain(v/a);n.subtract(b*S),!y&&Mt(b)<s&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())}function h(y){f=!y}return{shouldConstrain:d,constrain:p,toggleActive:h}}function Rye(e,t,n,r,o){const s=Ws(-t+e,0),a=h(),u=p(),f=y();function d(m,v){return Wl(m,v)<=1}function p(){const m=a[0],v=Tr(a),b=a.lastIndexOf(m),S=a.indexOf(v)+1;return Ws(b,S)}function h(){return n.map((m,v)=>{const{min:b,max:S}=s,w=s.constrain(m),T=!v,I=gb(n,v);return T?S:I||d(b,w)?b:d(S,w)?S:w}).map(m=>parseFloat(m.toFixed(3)))}function y(){if(t<=e+o)return[s.max];if(r==="keepSnaps")return a;const{min:m,max:v}=u;return a.slice(m,v)}return{snapsContained:f,scrollContainLimit:u}}function Oye(e,t,n){const r=t[0],o=n?r-e:Tr(t);return{limit:Ws(o,r)}}function kye(e,t,n,r){const o=t.min+.1,s=t.max+.1,{reachedMin:a,reachedMax:u}=Ws(o,s);function f(p){return p===1?u(n.get()):p===-1?a(n.get()):!1}function d(p){if(!f(p))return;const h=e*(p*-1);r.forEach(y=>y.add(h))}return{loop:d}}function Lye(e){const{max:t,length:n}=e;function r(o){const s=o-t;return n?s/-n:0}return{get:r}}function Mye(e,t,n,r,o){const{startEdge:s,endEdge:a}=e,{groupSlides:u}=o,f=h().map(t.measure),d=y(),p=m();function h(){return u(r).map(v=>Tr(v)[a]-v[0][s]).map(Mt)}function y(){return r.map(v=>n[s]-v[s]).map(v=>-Mt(v))}function m(){return u(d).map(v=>v[0]).map((v,b)=>v+f[b])}return{snaps:d,snapsAligned:p}}function Pye(e,t,n,r,o,s){const{groupSlides:a}=o,{min:u,max:f}=r,d=p();function p(){const h=a(s),y=!e||t==="keepSnaps";return n.length===1?[s]:y?h:h.slice(u,f).map((m,v,b)=>{const S=!v,w=gb(b,v);if(S){const T=Tr(b[0])+1;return wT(T)}if(w){const T=Of(s)-Tr(b)[0]+1;return wT(T,Tr(b)[0])}return m})}return{slideRegistry:d}}function Bye(e,t,n,r,o){const{reachedAny:s,removeOffset:a,constrain:u}=r;function f(m){return m.concat().sort((v,b)=>Mt(v)-Mt(b))[0]}function d(m){const v=e?a(m):u(m),b=t.map((w,T)=>({diff:p(w-v,0),index:T})).sort((w,T)=>Mt(w.diff)-Mt(T.diff)),{index:S}=b[0];return{index:S,distance:v}}function p(m,v){const b=[m,m+n,m-n];if(!e)return m;if(!v)return f(b);const S=b.filter(w=>hb(w)===v);return S.length?f(S):Tr(b)-n}function h(m,v){const b=t[m]-o.get(),S=p(b,v);return{index:m,distance:S}}function y(m,v){const b=o.get()+m,{index:S,distance:w}=d(b),T=!e&&s(b);if(!v||T)return{index:S,distance:m};const I=t[S]-w,C=m+p(I,0);return{index:S,distance:C}}return{byDistance:y,byIndex:h,shortcut:p}}function Nye(e,t,n,r,o,s,a){function u(p){const h=p.distance,y=p.index!==t.get();s.add(h),h&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),y&&(n.set(t.get()),t.set(p.index),a.emit("select"))}function f(p,h){const y=o.byDistance(p,h);u(y)}function d(p,h){const y=t.clone().set(p),m=o.byIndex(y.get(),h);u(m)}return{distance:f,index:d}}function Dye(e,t,n,r,o,s,a,u){const f={passive:!0,capture:!0};let d=0;function p(y){if(!u)return;function m(v){if(new Date().getTime()-d>10)return;a.emit("slideFocusStart"),e.scrollLeft=0;const b=n.findIndex(S=>S.includes(v));pb(b)&&(o.useDuration(0),r.index(b,0),a.emit("slideFocus"))}s.add(document,"keydown",h,!1),t.forEach((v,b)=>{s.add(v,"focus",S=>{(lg(u)||u(y,S))&&m(b)},f)})}function h(y){y.code==="Tab"&&(d=new Date().getTime())}return{init:p}}function El(e){let t=e;function n(){return t}function r(u){t=a(u)}function o(u){t+=a(u)}function s(u){t-=a(u)}function a(u){return pb(u)?u:u.get()}return{get:n,set:r,add:o,subtract:s}}function GO(e,t){const n=e.scroll==="x"?a:u,r=t.style;let o=null,s=!1;function a(h){return`translate3d(${h}px,0px,0px)`}function u(h){return`translate3d(0px,${h}px,0px)`}function f(h){if(s)return;const y=_ye(e.direction(h));y!==o&&(r.transform=n(y),o=y)}function d(h){s=!h}function p(){s||(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:p,to:f,toggleActive:d}}function Uye(e,t,n,r,o,s,a,u,f){const d=Ac(o),p=Ac(o).reverse(),h=S().concat(w());function y(A,$){return A.reduce((k,x)=>k-o[x],$)}function m(A,$){return A.reduce((k,x)=>y(k,$)>0?k.concat([x]):k,[])}function v(A){return s.map(($,k)=>({start:$-r[k]+.5+A,end:$+t-.5+A}))}function b(A,$,k){const x=v($);return A.map(O=>{const M=k?0:-n,j=k?n:0,V=k?"end":"start",W=x[O][V];return{index:O,loopPoint:W,slideLocation:El(-1),translate:GO(e,f[O]),target:()=>u.get()>W?M:j}})}function S(){const A=a[0],$=m(p,A);return b($,n,!1)}function w(){const A=t-a[0]-1,$=m(d,A);return b($,-n,!0)}function T(){return h.every(({index:A})=>{const $=d.filter(k=>k!==A);return y($,t)<=.1})}function I(){h.forEach(A=>{const{target:$,translate:k,slideLocation:x}=A,O=$();O!==x.get()&&(k.to(O),x.set(O))})}function C(){h.forEach(A=>A.translate.clear())}return{canLoop:T,clear:C,loop:I,loopPoints:h}}function Hye(e,t,n){let r,o=!1;function s(u){if(!n)return;function f(d){for(const p of d)if(p.type==="childList"){u.reInit(),t.emit("slidesChanged");break}}r=new MutationObserver(d=>{o||(lg(n)||n(u,d))&&f(d)}),r.observe(e,{childList:!0})}function a(){r&&r.disconnect(),o=!0}return{init:s,destroy:a}}function Fye(e,t,n,r){const o={};let s=null,a=null,u,f=!1;function d(){u=new IntersectionObserver(m=>{f||(m.forEach(v=>{const b=t.indexOf(v.target);o[b]=v}),s=null,a=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(m=>u.observe(m))}function p(){u&&u.disconnect(),f=!0}function h(m){return xc(o).reduce((v,b)=>{const S=parseInt(b),{isIntersecting:w}=o[S];return(m&&w||!m&&!w)&&v.push(S),v},[])}function y(m=!0){if(m&&s)return s;if(!m&&a)return a;const v=h(m);return m&&(s=v),m||(a=v),v}return{init:d,destroy:p,get:y}}function jye(e,t,n,r,o,s){const{measureSize:a,startEdge:u,endEdge:f}=e,d=n[0]&&o,p=v(),h=b(),y=n.map(a),m=S();function v(){if(!d)return 0;const w=n[0];return Mt(t[u]-w[u])}function b(){if(!d)return 0;const w=s.getComputedStyle(Tr(r));return parseFloat(w.getPropertyValue(`margin-${f}`))}function S(){return n.map((w,T,I)=>{const C=!T,A=gb(I,T);return C?y[T]+p:A?y[T]+h:I[T+1][u]-w[u]}).map(Mt)}return{slideSizes:y,slideSizesWithGaps:m,startGap:p,endGap:h}}function Vye(e,t,n,r,o,s,a,u,f){const{startEdge:d,endEdge:p,direction:h}=e,y=pb(n);function m(S,w){return Ac(S).filter(T=>T%w===0).map(T=>S.slice(T,T+w))}function v(S){return S.length?Ac(S).reduce((w,T,I)=>{const C=Tr(w)||0,A=C===0,$=T===Of(S),k=o[d]-s[C][d],x=o[d]-s[T][p],O=!r&&A?h(a):0,M=!r&&$?h(u):0,j=Mt(x-M-(k+O));return I&&j>t+f&&w.push(T),$&&w.push(S.length),w},[]).map((w,T,I)=>{const C=Math.max(I[T-1]||0);return S.slice(C,w)}):[]}function b(S){return y?m(S,n):v(S)}return{groupSlides:b}}function qye(e,t,n,r,o,s,a){const{align:u,axis:f,direction:d,startIndex:p,loop:h,duration:y,dragFree:m,dragThreshold:v,inViewThreshold:b,slidesToScroll:S,skipSnaps:w,containScroll:T,watchResize:I,watchSlides:C,watchDrag:A,watchFocus:$}=s,k=2,x=Tye(),O=x.measure(t),M=n.map(x.measure),j=Eye(f,d),V=j.measureSize(O),W=Iye(V),Y=bye(u,V),ne=!h&&!!T,Z=h||!!T,{slideSizes:ae,slideSizesWithGaps:ce,startGap:q,endGap:ue}
vendor: 5,577 bytes, line 95
95=jye(j,O,M,n,Z,o),G=Vye(j,V,S,h,O,M,q,ue,k),{snaps:re,snapsAligned:Oe}=Mye(j,Y,O,M,G),Ee=-Tr(re)+Tr(ce),{snapsContained:Pe,scrollContainLimit:Ae}=Rye(V,Ee,Oe,T,k),le=ne?Pe:Oe,{limit:Q}=Oye(Ee,le,h),P=zO(Of(le),p,h),F=P.clone(),B=Ac(n),K=({dragHandler:g,scrollBody:_,scrollBounds:E,options:{loop:R}})=>{R||E.constrain(g.pointerDown()),_.seek()},L=({scrollBody:g,translate:_,location:E,offsetLocation:R,previousLocation:oe,scrollLooper:$e,slideLooper:me,dragHandler:he,animation:Te,eventHandler:yn,scrollBounds:Fn,options:{loop:Me}},Le)=>{const Ze=g.settled(),kr=!Fn.shouldConstrain(),yr=Me?Ze:Ze&&kr,vr=yr&&!he.pointerDown();vr&&Te.stop();const Fi=E.get()*Le+oe.get()*(1-Le);R.set(Fi),Me&&($e.loop(g.direction()),me.loop()),_.to(R.get()),vr&&yn.emit("settle"),yr||yn.emit("scroll")},D=wye(r,o,()=>K(c),g=>L(c,g)),se=.68,ve=le[P.get()],de=El(ve),_e=El(ve),Se=El(ve),pe=El(ve),ge=xye(de,Se,_e,pe,y,se),fe=Bye(h,le,Ee,Q,pe),Ce=Nye(D,P,F,ge,fe,pe,a),H=Lye(Q),z=Cc(),ee=Fye(t,n,a,b),{slideRegistry:i}=Pye(ne,T,le,Ae,G,B),l=Dye(e,n,i,Ce,ge,z,a,$),c={ownerDocument:r,ownerWindow:o,eventHandler:a,containerRect:O,slideRects:M,animation:D,axis:j,dragHandler:Sye(j,e,r,o,pe,$ye(j,o),de,D,Ce,ge,fe,P,a,W,m,v,w,se,A),eventStore:z,percentOfView:W,index:P,indexPrevious:F,limit:Q,location:de,offsetLocation:Se,previousLocation:_e,options:s,resizeHandler:Aye(t,a,o,n,j,I,x),scrollBody:ge,scrollBounds:Cye(Q,Se,pe,ge,W),scrollLooper:kye(Ee,Q,Se,[de,Se,_e,pe]),scrollProgress:H,scrollSnapList:le.map(H.get),scrollSnaps:le,scrollTarget:fe,scrollTo:Ce,slideLooper:Uye(j,V,Ee,ae,ce,re,le,Se,n),slideFocus:l,slidesHandler:Hye(t,a,C),slidesInView:ee,slideIndexes:B,slideRegistry:i,slidesToScroll:G,target:pe,translate:GO(j,t)};return c}function Wye(){let e={},t;function n(d){t=d}function r(d){return e[d]||[]}function o(d){return r(d).forEach(p=>p(t,d)),f}function s(d,p){return e[d]=r(d).concat([p]),f}function a(d,p){return e[d]=r(d).filter(h=>h!==p),f}function u(){e={}}const f={init:n,emit:o,off:a,on:s,clear:u};return f}const zye={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Gye(e){function t(o,s){return WO(o,s||{})}function n(o){const s=o.breakpoints||{},a=xc(s).filter(u=>e.matchMedia(u).matches).map(u=>s[u]).reduce((u,f)=>t(u,f),{});return t(o,a)}function r(o){return o.map(s=>xc(s.breakpoints||{})).reduce((s,a)=>s.concat(a),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function Yye(e){let t=[];function n(o,s){return t=s.filter(({options:a})=>e.optionsAtMedia(a).active!==!1),t.forEach(a=>a.init(o,e)),s.reduce((a,u)=>Object.assign(a,{[u.name]:u}),{})}function r(){t=t.filter(o=>o.destroy())}return{init:n,destroy:r}}function rh(e,t,n){const r=e.ownerDocument,o=r.defaultView,s=Gye(o),a=Yye(s),u=Cc(),f=Wye(),{mergeOptions:d,optionsAtMedia:p,optionsMediaQueries:h}=s,{on:y,off:m,emit:v}=f,b=j;let S=!1,w,T=d(zye,rh.globalOptions),I=d(T),C=[],A,$,k;function x(){const{container:B,slides:K}=I;$=(b1(B)?e.querySelector(B):B)||e.children[0];const L=b1(K)?$.querySelectorAll(K):K;k=[].slice.call(L||$.children)}function O(B){const K=qye(e,$,k,r,o,B,f);if(B.loop&&!K.slideLooper.canLoop()){const L=Object.assign({},B,{loop:!1});return O(L)}return K}function M(B,K){S||(T=d(T,B),I=p(T),C=K||C,x(),w=O(I),h([T,...C.map(({options:L})=>L)]).forEach(L=>u.add(L,"change",j)),I.active&&(w.translate.to(w.location.get()),w.animation.init(),w.slidesInView.init(),w.slideFocus.init(F),w.eventHandler.init(F),w.resizeHandler.init(F),w.slidesHandler.init(F),w.options.loop&&w.slideLooper.loop(),$.offsetParent&&k.length&&w.dragHandler.init(F),A=a.init(F,C)))}function j(B,K){const L=G();V(),M(d({startIndex:L},B),K),f.emit("reInit")}function V(){w.dragHandler.destroy(),w.eventStore.clear(),w.translate.clear(),w.slideLooper.clear(),w.resizeHandler.destroy(),w.slidesHandler.destroy(),w.slidesInView.destroy(),w.animation.destroy(),a.destroy(),u.clear()}function W(){S||(S=!0,u.clear(),V(),f.emit("destroy"),f.clear())}function Y(B,K,L){!I.active||S||(w.scrollBody.useBaseFriction().useDuration(K===!0?0:I.duration),w.scrollTo.index(B,L||0))}function ne(B){const K=w.index.add(1).get();Y(K,B,-1)}function Z(B){const K=w.index.add(-1).get();Y(K,B,1)}function ae(){return w.index.add(1).get()!==G()}function ce(){return w.index.add(-1).get()!==G()}function q(){return w.scrollSnapList}function ue(){return w.scrollProgress.get(w.offsetLocation.get())}function G(){return w.index.get()}function re(){return w.indexPrevious.get()}function Oe(){return w.slidesInView.get()}function Ee(){return w.slidesInView.get(!1)}function Pe(){return A}function Ae(){return w}function le(){return e}function Q(){return $}function P(){return k}const F={canScrollNext:ae,canScrollPrev:ce,containerNode:Q,internalEngine:Ae,destroy:W,off:m,on:y,emit:v,plugins:Pe,previousScrollSnap:re,reInit:b,rootNode:le,scrollNext:ne,scrollPrev:Z,scrollProgress:ue,scrollSnapList:q,scrollTo:Y,selectedScrollSnap:G,slideNodes:P,slidesInView:Oe,slidesNotInView:Ee};return M(t,n),setTimeout(()=>f.emit("init"),0),F}rh.globalOptions=void 0;function mb(e={},t=[]){const n=Xe(e),r=Xe(t);let o=n?e.value:e,s=r?t.value:t;const a=en(),u=en();function f(){u.value&&u.value.reInit(o,s)}return We(()=>{!mye()||!a.value||(rh.globalOptions=mb.globalOptions,u.value=rh(a.value,o,s))}),bt(()=>{u.value&&u.value.destroy()}),n&&ke(e,d=>{db(o,d)||(o=d,f())}),r&&ke(t,d=>
95{yye(s,d)||(s=d,f())}),[a,u]}mb.globalOptions=void 0;function Rs(){return Rs=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},Rs.apply(this,arguments)}var Kye=.996,Zye=function(e,t){return t===void 0&&(t=Kye),e*t/(1-t)};function Qye(e){return e[e.length-1]}function Jye(e){return e.reduce(function(t,n){return t+n})/e.length}var Xye=function(e,t,n){return Math.min(Math.max(t,e),n)};function zm(e,t){if(e.length!==t.length)throw new Error("vectors must be same length");return e.map(function(n,r){return n+t[r]})}function ET(e){return Math.max.apply(Math,e.map(Math.abs))}function wu(e){return Object.freeze(e),Object.values(e).forEach(function(t){t!==null&&typeof t=="object"&&!Object.isFrozen(t)&&wu(t)}),e}function eve(){var e={};function t(o,s){return e[o]=(e[o]||[]).concat(s),function(){return n(o,s)}}function n(o,s){e[o]=(e[o]||[]).filter(function(a){return a!==s})}function r(o,s){o in e&&e[o].forEach(function(a){return a(s)})}return wu({on:t,off:n,dispatch:r})}function tve(e){var t=[],n=function(s){return s.addEventListener("wheel",e,{passive:!1}),t.push(s),function(){return r(s)}},r=function(s){s.removeEventListener("wheel",e),t=t.filter(function(a){return a!==s})},o=function(){t.forEach(r)};return wu({observe:n,unobserve:r,disconnect:o})}var nve=16*1.125,rve=typeof window<"u"&&window.innerHeight||800,Gm=[1,nve,rve];function ove(e){var t=e.deltaX*Gm[e.deltaMode],n=e.deltaY*Gm[e.deltaMode],r=(e.deltaZ||0)*Gm[e.deltaMode];return{timeStamp:e.timeStamp,axisDelta:[t,n,r]}}var ive=[-1,-1,-1];function sve(e,t){if(!t)return e;var n=t===!0?ive:t.map(function(r){return r?-1:1});return Rs({},e,{axisDelta:e.axisDelta.map(function(r,o){return r*n[o]})})}var ST=700,ave=function(e){return Rs({},e,{axisDelta:e.axisDelta.map(function(t){return Xye(t,-ST,ST)})})},uve=.6,lve=.96,cve=2,$T=5,TT=wu({preventWheelAction:!0,reverseSign:[!0,!0,!1]}),fve=400;function IT(){return{isStarted:!1,isStartPublished:!1,isMomentum:!1,startTime:0,lastAbsDelta:1/0,axisMovement:[0,0,0],axisVelocity:[0,0,0],accelerationFactors:[],scrollPoints:[],scrollPointsToMerge:[],willEndTimeout:fve}}function dve(e){e===void 0&&(e={});var t=eve(),n=t.on,r=t.off,o=t.dispatch,s=TT,a=IT(),u,f=!1,d,p=function(W){Array.isArray(W)?W.forEach(function(Y){return v(Y)}):v(W)},h=function(W){return W===void 0&&(W={}),Object.values(W).some(function(Y){return Y==null})?s:s=wu(Rs({},TT,s,W))},y=function(W){var Y=Rs({event:u,isStart:!1,isEnding:!1,isMomentumCancel:!1,isMomentum:a.isMomentum,axisDelta:[0,0,0],axisVelocity:a.axisVelocity,axisMovement:a.axisMovement,get axisMovementProjection(){return zm(Y.axisMovement,Y.axisVelocity.map(function(ne){return Zye(ne)}))}},W);o("wheel",Rs({},Y,{previous:d})),d=Y},m=function(W,Y){var ne=s,Z=ne.preventWheelAction,ae=Y[0],ce=Y[1],q=Y[2];if(typeof Z=="boolean")return Z;switch(Z){case"x":return Math.abs(ae)>=W;case"y":return Math.abs(ce)>=W;case"z":return Math.abs(q)>=W;default:return!1}},v=function(W){var Y=ave(sve(ove(W),s.reverseSign)),ne=Y.axisDelta,Z=Y.timeStamp,ae=ET(ne);if(W.preventDefault&&m(ae,ne)&&W.preventDefault(),a.isStarted?a.isMomentum&&ae>Math.max(2,a.lastAbsDelta*2)&&(x(!0),$()):$(),ae===0&&Object.is&&Object.is(W.deltaX,-0)){f=!0;return}u=W,a.axisMovement=zm(a.axisMovement,ne),a.lastAbsDelta=ae,a.scrollPointsToMerge.push({axisDelta:ne,timeStamp:Z}),b(),y({axisDelta:ne,isStart:!a.isStartPublished}),a.isStartPublished=!0,k()},b=function(){a.scrollPointsToMerge.length===cve?(a.scrollPoints.unshift({axisDeltaSum:a.scrollPointsToMerge.map(function(W){return W.axisDelta}).reduce(zm),timeStamp:Jye(a.scrollPointsToMerge.map(function(W){return W.timeStamp}))}),w(),a.scrollPointsToMerge.length=0,a.scrollPoints.length=1,a.isMomentum||C()):a.isStartPublished||S()},S=function(){a.axisVelocity=Qye(a.scrollPointsToMerge).axisDelta.map(function(W){return W/a.willEndTimeout})},w=function(){var W=a.scrollPoints,Y=W[0],ne=W[1];if(!(!ne||!Y)){var Z=Y.timeStamp-ne.timeStamp;if(!(Z<=0)){var ae=Y.axisDeltaSum.map(function(q){return q/Z}),ce=ae.map(function(q,ue){return q/(a.axisVelocity[ue]||1)});a.axisVelocity=ae,a.accelerationFactors.push(ce),T(Z)}}},T=function(W){var Y=Math.ceil(W/10)*10*1.2;a.isMomentum||(Y=Math.max(100,Y*2)),a.willEndTimeout=Math.min(1e3,Math.round(Y))},I=function(W){return W===0?!0:W<=lve&&W>=uve},C=function(){if(a.accelerationFactors.length>=$T){if(f&&(f=!1,ET(a.axisVelocity)>=.2)){A();return}var W=a.accelerationFactors.slice($T*-1),Y=W.every(function(ne){var Z=!!ne.reduce(function(ce,q){return ce&&ce<1&&ce===q?1:0}),ae=ne.filter(I).length===ne.length;return Z||ae});Y&&A(),a.accelerationFactors=W}},A=function(){a.isMomentum=!0},$=function(){a=IT(),a.isStarted=!0,a.startTime=Date.now(),d=void 0,f=!1},k=(function(){var W;return function(){clearTimeout(W),W=setTimeout(x,a.willEndTimeout)}})(),x=function(W){W===void 0&&(W=!1),a.isStarted&&(a.isMomentum&&W?y({isEnding:!0,isMomentumCancel:!0}):y({isEnding:!0}),a.isMomentum=!1,a.isStarted=!1)},O=tve(p),M=O.observe,j=O.unobserve,V=O.disconnect;return h(e),wu({on:n,off:r,observe:M,unobserve:j,disconnect:V,feedWheel:p,updateOptions:h})}var pve={active:!0,breakpoints:{},wheelDraggingClass:"is-wheel-dragging",forceWheelAxis:void 0,target:void 0};yb.globalOptions=void 0;function yb(e){e===void 0&&(e={});var t,n=function(){};function r(s,a){var u,f,d=a.mergeOptions,p=a.optionsAtMedia,h=d(pve,yb.globalOptions),y=d(h,e);t=p(y);var m=s.internalEngine(),v=(u=t.target)!=null?u:s.containerNode().parentNode,b=(f=t.forceWheelAxis)!=null?f:m.options.axis,S=dve({preventWheelAction:b,reverseSign:[!0,!0,!1]});function w(){k=(b==="x"?m.containerRect.width:m.containerRect.height)/2}var T=S.observe(v),I=S.on("wheel",ce),C=!1,A,$=0,k=0,x=!1;w(),s.on("resize",w);function O(q){try{A=new MouseEvent("mousedown",q.event),ne(A)}catch{return n()}C=!0,$=0,j(),t.wheelDraggingClass&&v.classList.add(t.wheelDraggingClass)}function M(q){C=!1,ne(Y("mouseup",q)),V(),t.wheelDraggingClass&&v.classList.remove(t.wheelDraggingClass)}function j(){document.documentElement.addEventListener("mousemove",W,!0),document.documentElement.addEventListener("mouseup",W,!0),document.documentElement.addEventListener("mousedown",W,!0)}function V(){document.documentElement.removeEventListener("mousemove",W,!0),document.documentElement.removeEventListener("mouseup",W,!0),document.documentElement.removeEventListener("mousedown",W,!0)}function W(q){C&&q.isTrusted&&q.stopImmediatePropagation()}function Y(q,ue){var G,re;if(b===m.options.axis){var Oe=ue.axisMovement;G=Oe[0],re=Oe[1]}else{var Ee=ue.axisMovement;re=Ee[0],G=Ee[1]}var Pe=Z(ue),Ae=Pe.isAtBoundary;if(Ae){var le=Math.min($/k,1),Q=.25+le*.5,P=G>0?-1:1,F=$*P,B=F*Q;G+=B,re+=B}if(!m.options.skipSnaps&&!m.options.dragFree){var K=m.containerRect.width,L=m.containerRect.height;G=G<0?Math.max(G,-K):Math.min(G,K),re=re<0?Math.max(re,-L):Math.min(re,L)}return new MouseEvent(q,{clientX:A.clientX+G,clientY:A.clientY+re,screenX:A.screenX+G,screenY:A.screenY+re,movementX:G,movementY:re,button:0,bubbles:!0,cancelable:!0,composed:!0})}function ne(q){s.containerNode().dispatchEvent(q)}function Z(q){var ue=q.axisDelta,G=ue[0],re=ue[1],Oe=s.scrollProgress(),Ee=Oe<1,Pe=Oe>0,Ae=b==="x"?G:re,le=Ae<0,Q=Ae>0,P=le&&!Ee||Q&&!Pe;return{isAtBoundary:P,primaryAxisDelta:Ae}}function ae(q){var ue=Z(q),G=ue.isAtBoundary,re=ue.primaryAxisDelta;if(G&&!q.isMomentum){if($+=Math.abs(re),$>k)return x=!0,M(q),!0}else $=0;return!1}function ce(q){var ue=q.axisDelta,G=ue[0],re=ue[1],Oe=b==="x"?G:re,Ee=b==="x"?re:G,Pe=q.isMomentum&&q.previous&&!q.previous.isMomentum,Ae=q.isEnding&&!q.isMomentum||Pe,le=Math.abs(Oe)>Math.abs(Ee);le&&!C&&!q.isMomentum&&!x&&O(q),x&&q.isEnding&&(x=!1),C&&(ae(q)||(Ae?M(q):ne(Y("mousemove",q))))}n=function(){T(),I(),s.off("resize",w),V()}}var o={name:"wheelGestures",options:e,init:r,destroy:function(){return n()}};return o}
95const hve=["disabled"],gve=["disabled"],mve=xe({__name:"CarouselArrows",props:{position:{},arrowsStyle:{},canScrollPrev:{type:Boolean},canScrollNext:{type:Boolean},showOnHover:{type:Boolean},isHovered:{type:Boolean},isDragging:{type:Boolean},withPagination:{type:Boolean}},emits:["prev","next"],setup(e){const t=e,n=J(()=>t.position==="bottom"||t.arrowsStyle==="icon"),r=J(()=>t.position==="bottom"||t.canScrollPrev),o=J(()=>t.position==="bottom"||t.canScrollNext);return(s,a)=>(U(),X("div",{class:Be(["carousel__arrows",[`carousel__arrows--${s.position}`,{"carousel__arrows--show-on-hover":s.showOnHover,"carousel__arrows--hovered":s.showOnHover&&s.isHovered&&!s.isDragging,"carousel__arrows--dragging":s.isDragging,"carousel__arrows--with-pagination":s.withPagination}]]),"data-test":"carousel-arrows"},[r.value?(U(),X("button",{key:0,type:"button","aria-label":"ÐÑокÑÑÑиÑÑ Ð²Ð»ÐµÐ²Ð¾",class:Be(["carousel__arrow carousel__arrow--left",`carousel__arrow--${s.arrowsStyle}`]),disabled:n.value&&!s.canScrollPrev,"data-test":"carousel-arrow-left",onClick:a[0]||(a[0]=ft(u=>s.$emit("prev"),["stop"]))},[s.arrowsStyle==="icon"?(U(),we(N(t_),{key:0})):(U(),we(N(Nu),{key:1}))],10,hve)):Ie("",!0),o.value?(U(),X("button",{key:1,type:"button","aria-label":"ÐÑокÑÑÑиÑÑ Ð²Ð¿Ñаво",class:Be(["carousel__arrow carousel__arrow--right",`carousel__arrow--${s.arrowsStyle}`]),disabled:n.value&&!s.canScrollNext,"data-test":"carousel-arrow-right",onClick:a[1]||(a[1]=ft(u=>s.$emit("next"),["stop"]))},[s.arrowsStyle==="icon"?(U(),we(N(r_),{key:0})):(U(),we(N(Js),{key:1}))],10,gve)):Ie("",!0)],2))}}),cg=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},yve=cg(mve,[["__scopeId","data-v-89208d5c"]]),vve={class:"carousel__pagination","data-test":"carousel-pagination"},_ve=["data-test"],bve=xe({__name:"CarouselPagination",props:{pagesCount:{},selectedIndex:{}},setup(e){return(t,n)=>(U(),X("div",vve,[(U(!0),X(He,null,dt(t.pagesCount,(r,o)=>(U(),X("div",{key:o,class:Be(["carousel__pagination-item",{"carousel__pagination-item--active":t.selectedIndex===o}]),"data-test":`carousel-pagination-dot-${o}`},null,10,_ve))),128))]))}}),wve=cg(bve,[["__scopeId","data-v-2f8881d1"]]),Eve={key:0,class:"carousel__slide-counter ui-body-sm-medium","data-test":"carousel-slide-counter"},Sve={class:"carousel__slide-clip"},$ve=xe({__name:"CarouselSlide",props:{index:{},slidesCount:{default:void 0},showCounter:{type:Boolean,default:!1},slideMaxWidth:{default:"100%"}},setup(e){const t=e,n=J(()=>({maxWidth:t.slideMaxWidth}));return(r,o)=>(U(),X("div",{class:"carousel__slide",style:at(n.value)},[r.showCounter&&r.slidesCount?(U(),X("span",Eve,Ue(r.index+1)+"/"+Ue(r.slidesCount),1)):Ie("",!0),te("div",Sve,[De(r.$slots,"default",{},void 0,!0)])],4))}}),Ym=cg($ve,[["__scopeId","data-v-422bead5"]]);function Tve(e,t){const n=ie(!1),r=ie(!1),o=ie(-1),s=ie(0),a=ie(0),u=ie(!1);let f=0,d=!1;const p=($,k,x)=>{if(k===$)return null;const O=x-1;return $===O&&k===0?"right":$===0&&k===O?"left":k>$?"right":"left"},h=()=>{const $=e.value;if(!$)return;const k=$.canScrollPrev(),x=$.canScrollNext(),O=$.selectedScrollSnap(),M=$.scrollSnapList().length,j=$.slidesInView(),V=j.length?Math.max(...j):-1;(n.value!==k||r.value!==x||s.value!==O||a.value!==M||o.value!==V)&&(n.value=k,r.value=x,s.value=O,a.value=M,o.value=V)},y=$=>{if($===f)return;const k=e.value?.scrollSnapList().length??0,x=p(f,$,k);x&&t("scroll",x),f=$},m=()=>{h(),y(s.value)},v="carousel-dragging",b=$=>{typeof document>"u"||document.body.classList.toggle(v,$)},S=()=>{u.value=!0,b(!0)},w=()=>{u.value=!1,b(!1),h()},T=()=>{u.value||d||h()},I=()=>{d=!0},C=()=>{d=!1,h()},A=()=>{d=!1,h()};return ke(e,($,k,x)=>{$&&(d=!1,h(),f=$.selectedScrollSnap(),$.on("select",m),$.on("reInit",A),$.on("slidesInView",T),$.on("scroll",I),$.on("settle",C),$.on("pointerDown",S),$.on("pointerUp",w),x(()=>{u.value=!1,d=!1,b(!1),$.off("select",m),$.off("reInit",A),$.off("slidesInView",T),$.off("scroll",I),$.off("settle",C),$.off("pointerDown",S),$.off("pointerUp",w)}))},{immediate:!0}),{canScrollPrev:n,canScrollNext:r,lastVisibleIndex:o,selectedIndex:s,pagesCount:a,isDragging:u}}const Ive=e=>new Proxy(e,{get:(t,n)=>n==="preventDefault"?void 0:t[n]}),Ave=e=>{let t,n;return{addEventListener:(r,o)=>{t=e(),n=s=>o(Ive(s)),t?.addEventListener(r,n,{passive:!0})},removeEventListener:r=>{n&&t?.removeEventListener(r,n),n=void 0},get classList(){return t?.classList}}},AT=e=>{const t=e.internalEngine();e.reInit();const n=e.internalEngine();["scrollBody","location","offsetLocation","previousLocation","target"].forEach(o=>{Object.assign(n[o],t[o])}),n.translate.to(t.location.get());const{index:r}=n.scrollTarget.byDistance(0,!1);n.index.set(r),n.animation.start()},xve=e=>{const t=e.internalEngine();if(t.dragHandler.pointerDown()){const n=t.limit.reachedMax(t.target.get());t.scrollBounds.toggleActive(n);const r=()=>{e.off("pointerUp",r),AT(e)};e.on("pointerUp",r)}else AT(e);return!1},Cve="carousel-wheel-hovered",Rve=xe({__name:"Carousel",props:{items:{},showCounter:{type:Boolean,default:!1},gap:{default:12},arrows:{type:Boolean,default:!1},arrowsConfig:{default:void 0},pagination:{type:Boolean,default:!1}
95,viewportHeight:{default:void 0},slideMaxWidth:{default:"100%"},showBefore:{type:Boolean,default:!1},showAfter:{type:Boolean,default:!1},options:{default:()=>({})}},emits:["change","scroll"],setup(e,{emit:t}){const n={dragFree:!1,containScroll:"trimSnaps",align:"start",slidesToScroll:1,skipSnaps:!0,watchSlides:xve},r=e,o=t,s=J(()=>({...n,...r.options}));let a=()=>{};const u=[yb({forceWheelAxis:"x",target:Ave(()=>a())})],[f,d]=mb(s,u);a=()=>f.value;const{canScrollPrev:p,canScrollNext:h,lastVisibleIndex:y,selectedIndex:m,pagesCount:v,isDragging:b}=Tve(d,o),S=ie(!1),w=J(()=>r.items.length),T=J(()=>r.arrowsConfig?.position??"side"),I=J(()=>r.arrowsConfig?.style??"round"),C=J(()=>!!r.arrowsConfig?.showOnHover),A=J(()=>r.arrowsConfig?.scrollStep??1),$=J(()=>r.pagination&&v.value>1),k=J(()=>r.viewportHeight?{height:r.viewportHeight}:void 0),x=Y=>{typeof document>"u"||document.documentElement.classList.toggle(Cve,Y)};bt(()=>x(!1));const O=()=>{x(!0),C.value&&(S.value=!0)},M=()=>{x(!1),S.value=!1},j=Y=>{const ne=d.value;if(!ne)return;const Z=ne.selectedScrollSnap(),ae=ne.scrollSnapList().length-1,ce=Math.max(0,Math.min(ae,Z+Y*A.value));ce!==Z&&(ne.scrollTo(ce),o("change",ce+1))},V=()=>{p.value&&j(-1)},W=()=>{h.value&&j(1)};return(Y,ne)=>(U(),X("div",{class:"carousel","data-test":"carousel",onMouseenter:O,onMouseleave:M},[te("div",{ref_key:"carouselRef",ref:f,class:"carousel__viewport",style:at(k.value),"data-test":"carousel-viewport"},[te("div",{class:"carousel__container",style:at({gap:`${Y.gap}px`})},[Y.showBefore?(U(),we(Ym,{key:0,index:0,"show-counter":!1,"slide-max-width":Y.slideMaxWidth,"data-test":"carousel-slide-before"},{default:be(()=>[De(Y.$slots,"before",{},void 0,!0)]),_:3},8,["slide-max-width"])):Ie("",!0),(U(!0),X(He,null,dt(Y.items,(Z,ae)=>(U(),we(Ym,{key:Z.id??ae,index:ae,"slides-count":w.value,"show-counter":Y.showCounter,"slide-max-width":Y.slideMaxWidth,"data-test":`carousel-slide-${ae}`},{default:be(()=>[De(Y.$slots,"default",{item:Z,index:ae,canScrollPrev:N(p),canScrollNext:N(h),lastVisibleIndex:N(y)},void 0,!0)]),_:2},1032,["index","slides-count","show-counter","slide-max-width","data-test"]))),128)),Y.showAfter?(U(),we(Ym,{key:1,index:w.value,"show-counter":!1,"slide-max-width":Y.slideMaxWidth,"data-test":"carousel-slide-after"},{default:be(()=>[De(Y.$slots,"after",{},void 0,!0)]),_:3},8,["index","slide-max-width"])):Ie("",!0)],4)],4),Y.arrows?(U(),we(yve,{key:0,position:T.value,"arrows-style":I.value,"can-scroll-prev":N(p),"can-scroll-next":N(h),"show-on-hover":C.value,"is-hovered":S.value,"is-dragging":N(b),"with-pagination":$.value,onPrev:V,onNext:W},null,8,["position","arrows-style","can-scroll-prev","can-scroll-next","show-on-hover","is-hovered","is-dragging","with-pagination"])):Ie("",!0),$.value?(U(),we(wve,{key:1,"pages-count":N(v),"selected-index":N(m)},null,8,["pages-count","selected-index"])):Ie("",!0)],32))}}),Ove=cg(Rve,[["__scopeId","data-v-7e567eef"]]),kve=["data-test"],Lve=["src"],Mve={key:0,class:"photo-preview-carousel__overlay","data-test":"photo-preview-carousel-uploading"},Pve=["aria-label","data-test","onClick"],Bve=xe({__name:"PhotoPreviewCarousel",props:{photos:{},cardHeight:{default:Wme},minCardWidth:{default:zme}},emits:["remove","retry"],setup(e,{emit:t}){const n=e,r=t,o=J(()=>({"--photo-preview-card-height":`${n.cardHeight}px`,"--photo-preview-min-card-width":`${n.minCardWidth}px`})),s=J(()=>n.photos.map(a=>a.url??(a.blob?URL.createObjectURL(a.blob):"")));return ke(s,(a,u)=>{u&&u.forEach(f=>URL.revokeObjectURL(f))}),bt(()=>{s.value.forEach(a=>URL.revokeObjectURL(a))}),(a,u)=>a.photos.length?(U(),X("div",{key:0,class:"photo-preview-carousel",style:at(o.value)},[ye(N(Ove),{class:"photo-preview-carousel__carousel",items:a.photos,gap:12,arrows:"","arrows-config":{style:"filled"},"viewport-height":`${a.cardHeight}px`},{default:be(({item:f,index:d})=>[te("div",{class:"photo-preview-carousel__card","data-test":`photo-preview-carousel-item-${d}`},[te("img",{src:s.value[d],class:"photo-preview-carousel__img",alt:""},null,8,Lve),f.status==="uploading"?(U(),X("div",Mve,u[0]||(u[0]=[te("span",{class:"photo-preview-carousel__spinner"},null,-1)]))):f.status==="error"?(U(),X("button",{key:1,type:"button",class:"photo-preview-carousel__overlay photo-preview-carousel__overlay--error ui-body-sm-medium","aria-label":`ÐовÑоÑиÑÑ Ð·Ð°Ð³ÑÑÐ·ÐºÑ ÑоÑо ${d+1}
95`,"data-test":`photo-preview-carousel-retry-${d}`,onClick:p=>r("retry",d)}," ÐовÑоÑиÑÑ ",8,Pve)):Ie("",!0),ye(N(St),{variant:N(pt).SECONDARY,color:N(ut).DEFAULT,size:N(ot).XS,class:"photo-preview-carousel__remove","aria-label":`УдалиÑÑ ÑоÑо ${d+1}`,"data-test":`photo-preview-carousel-remove-${d}`,onClick:p=>r("remove",d)},{default:be(()=>[ye(N(cC))]),_:2},1032,["variant","color","size","aria-label","data-test","onClick"])],8,kve)]),_:1},8,["items","viewport-height"])],4)):Ie("",!0)}}),YO=ta(Bve,[["__scopeId","data-v-6f1f8700"]]),Nve={class:"short-post-edit-skeleton","data-test":"short-post-edit-skeleton"},Dve={class:"short-post-edit-skeleton__editor"},Uve={key:0,class:"short-post-edit-skeleton__footer"},Hve={class:"short-post-edit-skeleton__author"},Fve={class:"short-post-edit-skeleton__buttons"},jve=xe({__name:"ShortPostEditSkeleton",props:{withActions:{type:Boolean,default:!1}},setup(e){return(t,n)=>(U(),X("div",Nve,[te("div",Dve,[(U(),X(He,null,dt(5,r=>ye(N(It),{key:r,width:"100%",height:"16px","border-radius":"xs"})),64)),ye(N(It),{width:"60%",height:"16px","border-radius":"xs"})]),e.withActions?(U(),X("div",Uve,[te("div",Hve,[ye(N(It),{shape:"circle",width:"24px",height:"24px"}),ye(N(It),{width:"80px",height:"16px","border-radius":"xs"})]),te("div",Fve,[ye(N(It),{width:"78px",height:"32px","border-radius":"2xl"}),ye(N(It),{width:"96px",height:"32px","border-radius":"2xl"})])])):Ie("",!0)]))}}),KO=ta(jve,[["__scopeId","data-v-c57c4f03"]]),E1=e=>{if(e.type!=="paragraph")return!1;const t=e.value?.elements;return!t||t.length===0};function xT(e){return e.filter((t,n)=>E1(t)?!E1(e[n-1]??{}):!0)}function CT(e){return JSON.stringify(e,(t,n)=>{if(!(t==="__typename"||t==="raw")&&!(t==="format"&&n===null))return n})}function Eu(e){return!e||!e.length?!0:e.every(E1)}function oh(e){let t=0;const n=r=>{if(!r||typeof r!="object")return;const o=r.text;typeof o=="string"&&(t+=o.length),Object.values(r).forEach(s=>{Array.isArray(s)?s.forEach(n):s&&typeof s=="object"&&n(s)})};return(e??[]).forEach(n),t}const ZO=["img","picture","figure","video","audio","iframe","embed","object","table","blockquote","pre","hr"],QO=["h1","h2","h3","h4","h5","h6"],Vve=new Set([...QO,"div"].map(e=>e.toUpperCase())),qve=new Set(["P","BR","A","STRONG","B","EM","I","U","S","STRIKE","DEL","MARK","UL","OL","LI"]),Wve=/(?:https?:\/\/|www\.)[^\s<>"'«»]+/gi,zve=/[.,!?;:»"')\]]+$/,Gve=/white-space:\s*pre(-line|-wrap)?/i,JO=e=>new DOMParser().parseFromString(e,"text/html"),XO=(...e)=>e.flat().join(", "),Yve=e=>e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">");function Kve(e){return!e||typeof DOMParser>"u"?!1:JO(e).querySelector(XO(ZO,QO))!==null}const e8=e=>/<[a-z]/i.test(e);function t8(e,t,n){const r=e.createTreeWalker(t,NodeFilter.SHOW_TEXT),o=[];for(;r.nextNode();)o.push(r.currentNode);const s=e.createElement("template");o.forEach(a=>{const u=n(Yve(a.data),a);u!==null&&(s.innerHTML=u,a.replaceWith(s.content))})}const Zve=e=>{const t=e.replace(zve,"");return`<a href="${t.startsWith("www.")?`https://${t}`:t}">${t}</a>${e.slice(t.length)}`},Qve=e=>t8(e,e.body,(t,n)=>{if(n.parentElement?.closest("a"))return null;const r=t.replace(Wve,Zve);return e8(r)?r:null}),Jve=(e,t)=>t8(e,t,n=>n.includes(` 96`)?n.replace(/\n/g,"<br>"):null);function Xve(e){if(!e||typeof DOMParser>"u")return e;const t=JO(e);return t.querySelectorAll(XO(["style","script","meta"],ZO)).forEach(n=>n.remove()),t.body.querySelectorAll("*").forEach(n=>{if(Gve.test(n.getAttribute("style")??"")&&Jve(t,n),Vve.has(n.tagName)){const r=t.createElement("p");r.append(...n.childNodes),n.replaceWith(r);return}if(!qve.has(n.tagName)){n.replaceWith(...n.childNodes);return}Array.from(n.attributes).forEach(({name:r})=>{r==="href"&&n.tagName==="A"||n.removeAttribute(r)})}),Qve(t),t.body.innerHTML}const n8=xe({__name:"ShortPostEditor",props:{initialBody:{type:Array,default:()=>[]},placeholder:{type:String,default:"ЧÑо нового?"},loadingSkeleton:{type:Boolean,default:!1}},emits:["update","unsupported-paste","submit","input-activate"],setup(e,{expose:t,emit:n}){const r=["link","typography","bulletList","orderedList","listItem","strike"],o=Jt({loader:()=>Rt(()=>import("./index.es-5KT4nLMy.js"),__vite__mapDeps([0,1,2,3])).then(v=>v.EditorWrapper),loadingComponent:e.loadingSkeleton?KO:void 0}),s=n,a=()=>{s("input-activate")},u=v=>
96{v.key==="Enter"&&(v.metaKey||v.ctrlKey)&&(v.preventDefault(),s("submit"))},f=ie(null),d=()=>f.value?.editor?.getContent()??[],p=v=>{const b=f.value?.editor;if(b){if(Eu(v)){b.setContent("");return}b.setContent(v)}},h=()=>p([]),y=()=>{const v=d(),b=f.value?.editor?.editor?.getText().length??0;s("update",{body:v,length:b,isEmpty:Eu(v)})},m=(v,b)=>{const S=b.clipboardData?.getData("text/html")??"";if(!S)return!1;Kve(S)&&s("unsupported-paste");const w=Xve(S),T=f.value?.editor?.editor;return!T||!e8(w)?!1:(T.chain().focus().deleteSelection().insertContent(w).run(),!0)};return t({clear:h,setContent:p}),(v,b)=>(U(),X("div",{class:"short-post-editor","data-test":"short-post-editor",onKeydown:u,onFocusin:a},[ye(N(o),{ref_key:"editorRef",ref:f,content:e.initialBody,placeholder:e.placeholder,"permitted-for-insert-domains":[],"enabled-extensions":r,"enable-list-input-rules":"","paste-handler":m,"show-bubble-menu":!1,"show-block-menu":!1,onUpdate:y},null,8,["content","placeholder"])],32))}}),r8=e=>` { blogQueries { authorships(userID: ${JSON.stringify(e.userID)}, amount: ${e.amount}) { blogs { id name avatar { url } } hasMore } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");r8.operationName="getBlogsToPublish";const o8=e=>` { postMutations { create(input: { structuredBody: ${JSON.stringify(e.structuredBody)} blogID: ${JSON.stringify(e.blogID)} status: ${e.status} editSource: ${e.editSource} mediaList: [${e.mediaList}] tagIDs: ${JSON.stringify(e.tagIDs)} isShort: true }) { id error { ... on DefaultError { message } ... on PostCreateError { message code } ... on PostStopwordError { message words } ... on PostInvalidIframeError { message iframes } } } } } `.replaceAll('"null"',"null").replaceAll(/(\w+: )+((["]?)undefined(["]?))/g,"");o8.operationName="createShortPost";const e1e=(e,t)=>{const n=e?.message?.trim()||t;return e&&"words"in e&&e.words?.length?`${n}: ${e.words.join(", ")}`:e&&"iframes"in e&&e.iframes?.length?`${n}: ${e.iframes.join(", ")}`:n};let Km;const vb=e=>{if(e&&(Km=e),!Km)throw new Error("[Sports][Create Short Post] оÑÑÑÑÑÑвÑÐµÑ Ð¸Ð½ÑÑÐ°Ð½Ñ Ð»Ð¾Ð³Ð³ÐµÑа");return{logger:Km}},t1e=e=>({async getBlogsToPublish(t){const n=await e.gqlQuery(r8,t);return{blogs:n.authorships.blogs??[],hasMore:n.authorships.hasMore??!1}},async createPost(t){const n=(await e.gqlMutation(o8,t)).postMutations.create;if(!n?.id||n.error){const r=n?.error??{message:nh};return vb().logger.error({error:r},"[CreateShortPost] createPost error"),{error:e1e(r,nh)}}return{id:n.id}}}),n1e="short_post",r1e=Symbol("shortPostAnalyticCollector");var Yo=(e=>(e.TO_CREATE="to_create",e.INPUT_ACTIVATE="input_activate",e.ADD_MEDIA="add_media",e.CHOOSE_AUTHOR="choose_author",e.TO_CREATE_BLOG="to_create_blog",e.PUBLICATE="publicate",e.CLOSE="close",e.ERROR="error",e.EDIT="edit",e.DELETE="delete",e.REACT_TO_CONTENT="react_to_content",e.REFRESH_COMMENTS="refresh_comments",e.SORT_COMMENTS="sort_comments",e.TOGGLE_COMMENTS_DIALOGS="toggle_comments_dialogs",e.SHARE="share",e.TO_CREATOR="to_creator",e))(Yo||{}),xa=(e=>(e.PUBLICATION="publication",e.EDITION="edition",e))(xa||{}),Rc=(e=>(e.TOP_BAR="top_bar",e.PROFILE_MENU="profile_menu",e.PROFILE="profile",e.BLOG="blog",e.MY_FEED="my_feed",e.TAG="tag",e))(Rc||{}),ps=(e=>(e.POST="post",e.ARTICLE="article",e))(ps||{}),S1=(e=>(e.AUTHOR="author",e.BLOG="blog",e))(S1||{}),rs=(e=>(e.MAX_LENGTH="max_length",e.MAX_MEDIA="max_media",e))(rs||{});const i8="1",s8="-1";function o1e(e,t){return{action:Yo.TO_CREATE,label:"",property:{source:e,type:t},value:""}}function i1e(){return{action:Yo.INPUT_ACTIVATE,label:"",property:{},value:""}}function s1e(){return{action:Yo.ADD_MEDIA,label:"",property:{},value:""}}function a1e(e,t){return{action:Yo.CHOOSE_AUTHOR,label:"",property:{type:e,id:t},value:""}}function u1e(){return{action:Yo.TO_CREATE_BLOG,label:"",property:{},value:""}}function l1e({mode:e,source:t,type:n,postId:r,success:o}){return{action:Yo.PUBLICATE,label:e,property:{source:t,type:n,page_id:r},value:o?i8:s8}}function c1e({mode:e,source:t,type:n,confirmed:r}){return{action:Yo.CLOSE,label:e,property:{source:t,type:n},value:r?i8:s8}}function f1e(e){return{action:Yo.ERROR,label:"",property:{type:e},value:""}}function d1e(e){const t=xt(n1e),n=og(r1e,{getCollectors:()=>[new ng]}),r=a=>{n?.collect(rg,{category:a.category??t.value,action:a.action,label:a.label??"",property:a.property??{},value:a.value??""})},o=ie(!1),s=ie(new Set);return{trackToCreate(a,u=ps.POST){r(o1e(a,u))},trackInputActivate(){o.value||(o.value=!0,r(i1e()))},resetInputActivate(){o.value=!1},trackAddMedia(){r(s1e())},trackChooseAuthor(a,u){r(a1e(a,u))},trackToCreateBlog(){r(u1e())},trackPublish(a){r(l1e(a))},trackClose(a){r(c1e(a))},trackError(a){s.value.has(a)||(s.value.add(a),r(f1e(a)))},clearError(a){s.value.delete(a)}}}const RT="СоздаÑÑ Ð±Ð»Ð¾Ð³";function a8({authorId:e,authorName:t,authorAvatarUrl:n,gqlClient:r,presetBlog:o}){const{logger:s}
96=vb(),a=ie([]),u=ie();ke(()=>o?.value?.id,v=>{v&&(u.value=v)},{immediate:!0});const f=J(()=>{const v=o?.value;return!v||a.value.some(b=>b.id===v.id)?a.value:[v,...a.value]}),d=async()=>{if(!(!e.value||!r.value))try{const v=await t1e(r.value).getBlogsToPublish({userID:e.value});a.value=v.blogs.map(b=>({id:b.id,name:b.name,avatarUrl:b.avatar.url}))}catch(v){s.error({err:v},"[CreateShortPost] fetchBlogs failed")}};ke(e,()=>{d()},{immediate:!0});const p=J(()=>[{key:e.value,title:t.value,avatarUrl:n.value},...f.value.map(v=>({key:v.id,title:v.name,avatarUrl:v.avatarUrl??""})),{key:RT,title:RT,avatarUrl:"",isCreateBlog:!0}]),h=J(()=>u.value?f.value.find(v=>v.id===u.value)?.name??t.value:t.value),y=J(()=>u.value?f.value.find(v=>v.id===u.value)?.avatarUrl??n.value:n.value),m=J(()=>u.value===void 0?S1.AUTHOR:S1.BLOG);return{selectedBlogId:u,selectedCreatorType:m,dropdownItems:p,currentAuthorName:h,currentAuthorAvatarUrl:y,onAuthorSelect:v=>{u.value=v.key===e.value?void 0:v.key},reset:()=>{u.value=o?.value?.id}}}function p1e({when:e,onEscape:t,preventDefault:n=!1}){const r=o=>{o.key!=="Escape"||!e()||(o.stopImmediatePropagation(),n&&o.preventDefault(),t(o))};We(()=>{document.addEventListener("keydown",r,{capture:!0})}),bt(()=>{document.removeEventListener("keydown",r,{capture:!0})})}const OT=".bottom-drawer-overlay",kT=".overlay",h1e=".bottom-drawer__close",g1e=".ui-modal__close";function m1e({isOpen:e,isPublishing:t,shouldConfirmClose:n,onReset:r,overlayContentSelector:o}){const s=ie(!1),a=ie(!1);let u=null;const f=T=>{u?.(T),u=null};ke(e,(T,I)=>{if(!(!I||T)){if(a.value){a.value=!1,r();return}if(n.value){e.value=!0,s.value=!0;return}r()}},{flush:"sync"}),ke(t,(T,I)=>{I&&!T&&e.value&&(a.value=!1)},{flush:"post"});const d=T=>{if(!T&&n.value){s.value=!0;return}e.value=T},p=()=>{a.value=!0,f(!0),s.value=!1,e.value=!1};ke(s,T=>{T||f(!1)},{flush:"sync"});const h=T=>{T.preventDefault(),T.returnValue=!0};ke(()=>e.value&&n.value,T=>{typeof window>"u"||(T?window.addEventListener("beforeunload",h):window.removeEventListener("beforeunload",h))},{immediate:!0}),ke(e,T=>{},{immediate:!0});const y=()=>{a.value=!0};p1e({when:()=>e.value,preventDefault:!0,onEscape:()=>{if(s.value){s.value=!1;return}d(!1)}});let m=!1;const v=T=>T.matches(OT)||T.matches(kT),b=T=>{const I=T.closest(OT)??T.closest(kT);return I?!!I.querySelector(o):!1},S=T=>{const I=T.target;if(!I){m=!1;return}m=v(I)&&b(I)},w=T=>{if(!e.value||s.value||!n.value)return;const I=T.target;if(!I)return;const C=!!(I.closest(h1e)??I.closest(g1e)),A=v(I);!C&&!A||b(I)&&(T.stopImmediatePropagation(),!(A&&!m)&&(m=!1,d(!1)))};return We(()=>{document.addEventListener("pointerdown",S,{capture:!0}),document.addEventListener("click",w,{capture:!0})}),bt(()=>{document.removeEventListener("pointerdown",S,{capture:!0}),document.removeEventListener("click",w,{capture:!0})}),Do(()=>{window.removeEventListener("beforeunload",h),f(!1)}),{isConfirmCloseOpen:s,onCloseRequest:d,forceClose:p,markPublished:y}}const y1e=e=>{let t=e?.parentElement??null;for(;t;){const{overflowY:n}=getComputedStyle(t);if(n==="auto"||n==="scroll")return t;t=t.parentElement}return null};function v1e(e){const t=ie(!1);let n=null,r=null;const o=()=>{n?.disconnect(),n=null,r=null},s=()=>{o(),!(!e.value||typeof IntersectionObserver>"u")&&(r=y1e(e.value),n=new IntersectionObserver(([a])=>{const u=!!r&&r.scrollHeight>r.clientHeight+1;t.value=u&&a.isIntersecting},{root:r}),n.observe(e.value))};return bt(o),{atBottom:t,start:s,stop:o}}const fg=10,Os=4096,LT=e=>e.split("?")[0];function u8(e){const t=ie(e?.initialBody??[]),n=ie([]),r=ie(e?.initialPhotos??[]),o=()=>crypto.randomUUID(),s=ie(oh(e?.initialBody??[])),a=(S,w)=>{t.value=S,w!==void 0&&(s.value=w)},u=J(()=>Eu(t.value)),f=J(()=>s.value),d=J(()=>!u.value||n.value.length>0||r.value.length>0),p=J(()=>r.value.length+n.value.length),h=J(()=>n.value.some(S=>S.status==="uploading")),y=J(()=>n.value.some(S=>S.status==="error")),m=J(()=>[...r.value.map(S=>({id:S.id,url:LT(S.url)})),...n.value.filter(S=>S.status==="uploaded"&&!!S.url).map(S=>({url:LT(S.url)}))]),v=J(()=>(!u.value||m.value.length>0)&&f.value<=Os),b=async(S,w)=>{if(e?.uploadPhoto)try{const T=await e.uploadPhoto(w),I=n.value.find(C=>C.id===S);I&&(I.url=T,I.status="uploaded")}catch{const T=n.value.find(I=>I.id===S);T&&(T.status="error")}};return{body:t,setBody:a,isEmpty:u,photos:n,existingPhotos:r,totalPhotos:p,sbLength:f,canPublish:v,hasContent:d,isUploading:h,hasUploadError:y,uploadedMedia:m,addPhotos:async S=>{const w=fg-p.value;if(w<=0)return;const T=S.slice(0,w).map(I=>({id:o(),blob:I,url:null,status:"uploading"}));n.value=[...n.value,...T],await Promise.all(T.map(I=>b(I.id,I.blob)))},retryPhoto:async S=>{const w=n.value[S];!w||w.status!=="error"||!w.blob||(w.status="uploading",await b(w.id,w.blob))},removePhoto:S=>{n.value=n.value.filter((w,T)=>T!==S)},removeExistingPhoto:S=>{r.value=r.value.filter((w,T)=>T!==S)},reset:()=>{t.value=[],n.value=[],r.value=[]}}}
96const _1e={"image/jpeg":"jpg","image/png":"png","image/webp":"webp","image/avif":"avif","image/heic":"heic","image/gif":"gif"},b1e="wysiwyg",w1e=10*1024*1024,E1e=e=>{if(e instanceof File)return e;const t=_1e[e.type]??"bin";return new File([e],`photo.${t}`,{type:e.type})},S1e=()=>{if(typeof window>"u")return"";const e=window.location?.host??"";return e.includes("stage.")||e.includes("localhost")?"stage.":e.includes("qa.")?"qa.":e.includes("preprod.")?"preprod.":""},$1e=()=>`https://www.${S1e()}sports.ru/photobooth/images/`;function l8(){return{uploadPhoto:async e=>{if(e.size>w1e)throw new Error("ÐзобÑажение не должно пÑевÑÑаÑÑ 10 ÐÐ");const t=new FormData;t.append("file",E1e(e)),t.append("bucket",b1e);const n=await fetch($1e(),{method:"POST",credentials:"include",referrerPolicy:"no-referrer-when-downgrade",body:t});if(!n.ok)throw new Error("ÐÑибка загÑÑзки ÑоÑо");const r=(await n.json()).result?.id;if(!r)throw new Error("ÐÑибка загÑÑзки ÑоÑо");return r}}}function c8({sbLength:e,totalPhotos:t}){const n=d1e(),r=ie(!1);return ke(e,o=>{o>Os?n.trackError(rs.MAX_LENGTH):n.clearError(rs.MAX_LENGTH)}),ke(t,o=>{o<fg&&n.clearError(rs.MAX_MEDIA)}),{analytics:n,onTextareaFocus:()=>{r.value||(r.value=!0,n.trackInputActivate())},resetAnalyticsState:()=>{r.value=!1,n.resetInputActivate(),n.clearError(rs.MAX_LENGTH),n.clearError(rs.MAX_MEDIA)},trackAddMediaErrors:(o,s)=>{o>s&&n.trackError(rs.MAX_MEDIA)}}}const T1e="sports:create-short-post:draft",_b=e=>`${T1e}:${e}`,$1="short-post:draft-updated",dg=()=>typeof window<"u",MT=e=>Eu(e.body)&&e.photos.length===0,I1e=(e,t)=>{const n=t.reduce((r,o)=>(o.status==="uploaded"&&o.url&&r.push({id:o.id,url:o.url}),r),[]);return{body:Eu(e)?[]:e,photos:n}},f8=e=>e.photos.map(t=>({id:t.id,blob:null,url:t.url,status:"uploaded"})),A1e=e=>{if(!dg()||!e)return null;try{const t=localStorage.getItem(_b(e));if(!t)return null;const n=JSON.parse(t);return!n||!Array.isArray(n.body)?null:{body:Eu(n.body)?[]:n.body,photos:n.photos??[]}}catch{return null}},x1e=(e,t)=>{if(!(!dg()||!e))try{localStorage.setItem(_b(e),JSON.stringify(t))}catch{}},PT=e=>{if(!(!dg()||!e))try{localStorage.removeItem(_b(e))}catch{}},C1e=()=>{dg()&&window.dispatchEvent(new CustomEvent($1))},R1e=200;function d8({enabled:e=!1,userId:t,body:n,photos:r,onDraftApplied:o,onDraftCleared:s}){let a=null,u=!1;const f=()=>{a&&(clearTimeout(a),a=null)},d=()=>{u=!0;try{C1e()}finally{u=!1}},p=()=>{if(!qe(e))return;const w=I1e(qe(n),qe(r));if(MT(w)){PT(qe(t));return}x1e(qe(t),w)},h=()=>{if(!qe(e))return null;const w=A1e(qe(t));return!w||MT(w)?null:w},y=()=>{const w=h();return w?(o(w),!0):!1},m=()=>{if(u||!qe(e))return;f();const w=h();if(w){o(w);return}s()},v=()=>{f(),PT(qe(t)),d()},b=()=>{qe(e)&&(f(),a=setTimeout(p,R1e))},S=()=>{f(),p(),qe(e)&&d()};return We(()=>{window.addEventListener($1,m)}),bt(()=>{window.removeEventListener($1,m),f()}),{scheduleSave:b,saveImmediatelyAndNotify:S,loadFromStorage:y,clear:v}}const BT="open-create-short-post",NT="close-create-short-post",DT="short-post:created",O1e={class:"create-short-post-modal__mobile-header"},k1e={class:"create-short-post-modal__author-mobile"},L1e={class:"create-short-post-modal__actions-row"},M1e={class:"create-short-post-modal__author-desktop"},P1e=".create-short-post-modal";Rc.MY_FEED;const B1e={class:"create-short-post-block"},N1e={class:"create-short-post-block__body"},D1e={class:"create-short-post-block__actions"};Rc.MY_FEED;const U1e="/tribuna/create-post/";$t(pC),$t(hC);const ih="/ssi/short-posts",UT={PROFILE:"/profile/:profileSlug/",SHORT_POST:"/profile/:profileSlug/posts/:postId/"};var ep=(e=>(e.SSI_HOME="SSI_HOME",e.PROFILE="PROFILE",e.SHORT_POST="SHORT_POST",e))(ep||{});const H1e="https://www.sports.ru",p8=()=>typeof window<"u"&&!window.location.pathname.startsWith(ih),F1e=e=>e===""||e==="/"?"/":e.endsWith("/")?e:`${e}/`,j1e=e=>{const t=new URL(e,H1e);return t.pathname.startsWith(ih)&&(t.pathname=t.pathname.slice(ih.length)||"/"),t.pathname=F1e(t.pathname),`${t.pathname}${t.search}${t.hash}`},h8=()=>{const{pathname:e,search:t,hash:n}=window.location;return j1e(e+t+n)},V1e=xe({__name:"ClientOnlyTeleport",props:{to:{type:String,required:!0}},setup(e){const t=ie(!1);return We(()=>{t.value=!0}),(n,r)=>t.value?(U(),we(F1,{key:0,to:e.to},[De(n.$slots,"default")],8,["to"])):Ie("",!0)}}),q1e=xe({__name:"ImagePreviewControlButton",props:{placement:{type:String,required:!0},dataTestid:{type:String,required:!0}},setup(e){const t=e,n=J(()=>`image-preview__control--${t.placement}`);return(r,o)=>(U(),we(N(St),{class:Be(["image-preview__control",n.value]),"data-testid":e.dataTestid,short:"",variant:N(pt).SECONDARY,color:N(ut).DEFAULT,size:N(ot).MD},{default:be(()=>[De(r.$slots,"default",{},void 0,!0)]),_:3},8,["class","data-testid","variant","color","size"]))}}),pg=(e,t)=>
96{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},T1=pg(q1e,[["__scopeId","data-v-55ab400f"]]),W1e=5,HT=(e,t,n)=>t===n?t:Math.min(n,Math.max(t,e)),FT=(e,t,n)=>t-e<=n?{min:0,max:0}:{min:n-t,max:-e},z1e=(e,t,n,r,o=window.innerWidth,s=window.innerHeight)=>{const a=e-n,u=e+n,f=t-r,d=t+r,p=FT(a,u,o),h=FT(f,d,s);return{minX:p.min,maxX:p.max,minY:h.min,maxY:h.max}},G1e=e=>{const t=e.getBoundingClientRect();return{centerX:t.left+t.width/2,centerY:t.top+t.height/2,halfWidth:t.width/2,halfHeight:t.height/2}},Y1e=({enabled:e,scale:t,imageRef:n})=>{const r=ie({x:0,y:0}),o=ie(!1),s=ie(!1),a=ie(null);let u={x:0,y:0},f={x:0,y:0},d=null;const p=J(()=>({x:r.value.x/qe(t),y:r.value.y/qe(t)})),h=()=>{r.value={x:0,y:0},o.value=!1,s.value=!1,d=null},y=()=>{const A=a.value;return!A||!qe(e)?null:z1e(A.centerX,A.centerY,A.halfWidth,A.halfHeight)},m=async()=>{if(!n||!qe(e))return;await gt();const A=n.value;A&&(a.value=G1e(A))},v=A=>d===A.pointerId,b=A=>{!qe(e)||o.value||(o.value=!0,d=A.pointerId,u={x:A.clientX,y:A.clientY},f={x:A.clientX-r.value.x,y:A.clientY-r.value.y},A.currentTarget?.setPointerCapture?.(A.pointerId))},S=A=>{if(!o.value||!v(A))return;Math.hypot(A.clientX-u.x,A.clientY-u.y)>W1e&&(s.value=!0);let $=A.clientX-f.x,k=A.clientY-f.y;const x=y();x&&($=HT($,x.minX,x.maxX),k=HT(k,x.minY,x.maxY)),r.value={x:$,y:k}},w=A=>{v(A)&&(o.value=!1,d=null)},T=A=>{s.value&&(A.stopPropagation(),A.preventDefault(),s.value=!1)},I=()=>{s.value=!1};ke(()=>qe(e),async A=>{if(!A){a.value=null,h();return}await m()});const C=()=>{m()};return We(()=>{window.addEventListener("click",T,!0),window.addEventListener("pointerdown",I,!0),window.addEventListener("pointermove",S),window.addEventListener("pointerup",w),window.addEventListener("pointercancel",w),n&&window.addEventListener("resize",C)}),Nn(()=>{window.removeEventListener("click",T,!0),window.removeEventListener("pointerdown",I,!0),window.removeEventListener("pointermove",S),window.removeEventListener("pointerup",w),window.removeEventListener("pointercancel",w),n&&window.removeEventListener("resize",C)}),{offset:p,isPanning:o,hasPanned:s,reset:h,syncPanAnchor:m,panHandlers:{pointerdown:b,pointermove:S,pointerup:w,pointercancel:w}}},K1e=["src","alt"],jT=1.5,Z1e=xe({__name:"ImagePreviewItem",props:Nt({src:{type:String,default:""},alt:{type:String,default:""},loading:{type:Boolean,default:!1},active:{type:Boolean,default:!0}},{zoomed:{type:Boolean,default:!1},zoomedModifiers:{}}),emits:["update:zoomed"],setup(e){const t=e,n=ie(!1),r=Yn(e,"zoomed"),o=ie(null),s=J(()=>t.active&&(t.loading||!n.value)),{offset:a,panHandlers:u}=Y1e({enabled:r,scale:jT,imageRef:o}),f=J(()=>{if(r.value)return{transform:`scale(${jT}) translate(${a.value.x}px, ${a.value.y}px)`}}),d=()=>{t.active&&(r.value=!r.value)},p=()=>{n.value=!0};return ke(()=>t.active,h=>{h||(r.value=!1)}),ke(()=>t.src,()=>{n.value=!1,r.value=!1}),(h,y)=>(U(),X(He,null,[e.src?(U(),X("img",un({key:0,ref_key:"imageRef",ref:o,src:e.src,class:["image-preview__image",{"image-preview__image--zoomed":r.value}],style:f.value,alt:e.alt,"data-testid":"image-preview-image",draggable:"false"},Lk(N(u)),{onLoad:p,onError:p,onClick:ft(d,["stop"])}),null,16,K1e)):Ie("",!0),s.value?(U(),we(N(o_),{key:1,class:"image-preview__loader","data-testid":"image-preview-loader",size:"md"})):Ie("",!0)],64))}}),g8=pg(Z1e,[["__scopeId","data-v-ba7c459a"]]);function Q1e(e){return Object.prototype.toString.call(e)==="[object Object]"}function VT(e){return Q1e(e)||Array.isArray(e)}function J1e(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function bb(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const o=JSON.stringify(Object.keys(e.breakpoints||{})),s=JSON.stringify(Object.keys(t.breakpoints||{}));return o!==s?!1:n.every(a=>{const u=e[a],f=t[a];return typeof u=="function"?`${u}`==`${f}`:!VT(u)||!VT(f)?u===f:bb(u,f)})}function qT(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function X1e(e,t){if(e.length!==t.length)return!1;const n=qT(e),r=qT(t);return n.every((o,s)=>{const a=r[s];return bb(o,a)})}function wb(e){return typeof e=="number"}function I1(e){return typeof e=="string"}function hg(e){return typeof e=="boolean"}function WT(e){return Object.prototype.toString.call(e)==="[object Object]"}function Pt(e){return Math.abs(e)}function Eb(e){return Math.sign(e)}function zl(e,t){return Pt(e-t)}function e0e(e,t){if(e===0||t===0||Pt(e)<=Pt(t))return 0;const n=zl(Pt(e),Pt(t));return Pt(n/e)}function t0e(e){return Math.round(e*100)/100}function Oc(e){return kc(e).map(Number)}function Ir(e){return e[kf(e)]}function kf(e){return Math.max(0,e.length-1)}function Sb(e,t){return t===kf(e)}function zT(e,t=0){return Array.from(Array(e),(n,r)=>t+r)}function kc(e){return Object.keys(e)}function m8(e,t){return[e,t].reduce((n,r)=>(kc(r).forEach(o=>{const s=n[o],a=r[o],u=WT(s)&&WT(a);n[o]=u?m8(s,a):a}),n),{})}function A1(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function n0e(e,t){const n={start:r,center:o,end:s};function r(){return 0}function o(u){return s(u)/2}function s(u){return t-u}function a(u,f){return I1(e)?n[e](u):e(t,u,f)}return{measure:a}}function Lc(){let e=[];function t(o,s,a,u={passive:!0}){let f;if("addEventListener"in o)o.addEventListener(s,a,u),f=()=>o.removeEventListener(s,a,u);else{const d=o;d.addListener(a),f=()=>d.removeListener(a)}return e.push(f),r}function n(){e=e.filter(o=>o())}const r={add:t,clear:n};return r}function r0e(e,t,n,r){const o=Lc(),s=1e3/60;let a=null,u=0,f=0;function d(){o.add(e,"visibilitychange",()=>{e.hidden&&v()})}function p(){m(),o.clear()}function h(b){if(!f)return;a||(a=b,n(),n());const S=b-a;for(a=b,u+=S;u>=s;)n(),u-=s;const w=u/s;r(w),f&&(f=t.requestAnimationFrame(h))}function y(){f||(f=t.requestAnimationFrame(h))}function m(){t.cancelAnimationFrame(f),a=null,u=0,f=0}function v(){a=null,u=0}return{init:d,destroy:p,start:y,stop:m,update:n,render:r}}function o0e(e,t){const n=t==="rtl",r=e==="y",o=r?"y":"x",s=r?"x":"y",a=!r&&n?-1:1,u=p(),f=h();function d(m){const{height:v,width:b}=m;return r?v:b}function p(){return r?"top":n?"right":"left"}function h(){return r?"bottom":n?"left":"right"}function y(m){return m*a}return{scroll:o,cross:s,startEdge:u,endEdge:f,measureSize:d,direction:y}}function zs(e=0,t=0){const n=Pt(e-t);function r(f){return f<e}function o(f){return f>t}function s(f){return r(f)||o(f)}function a(f){return s(f)?r(f)?e:t:f}function u(f){return n?f-n*Math.ceil((f-t)/n):f}return{length:n,max:t,min:e,constrain:a,reachedAny:s,reachedMax:o,reachedMin:r,removeOffset:u}}function y8(e,t,n){const{constrain:r}=zs(0,e),o=e+1;let s=a(t);function a(y){return n?Pt((o+y)%o):r(y)}function u(){return s}function f(y){return s=a(y),h}function d(y){return p().set(u()+y)}function p(){return y8(e,u(),n)}const h={get:u,set:f,add:d,clone:p};return h}function i0e(e,t,n,r,o,s,a,u,f,d,p,h,y,m,v,b,S,w,T){const{cross:I,direction:C}=e,A=["INPUT","SELECT","TEXTAREA"],$={passive:!1},k=Lc(),x=Lc(),O=zs(50,225).constrain(m.measure(20)),M={mouse:300,touch:400},j={mouse:500,touch:600},V=v?43:25;let W=!1,Y=0,ne=0,Z=!1,ae=!1,ce=!1,q=!1;function ue(B){if(!T)return;function K(D){(hg(T)||T(B,D))&&Ae(D)}const L=t;k.add(L,"dragstart",D=>D.preventDefault(),$).add(L,"touchmove",()=>{},$).add(L,"touchend",()=>{}).add(L,"touchstart",K).add(L,"mousedown",K).add(L,"touchcancel",Q).add(L,"contextmenu",Q).add(L,"click",P,!0)}function G(){k.clear(),x.clear()}function re(){const B=q?n:t;x.add(B,"touchmove",le,$).add(B,"touchend",Q).add(B,"mousemove",le,$).add(B,"mouseup",Q)}function Oe(B){const K=B.nodeName||"";return A.includes(K)}function Ee(){return(v?j:M)[q?"mouse":"touch"]}function Pe(B,K){const L=h.add(Eb(B)*-1),D=p.byDistance(B,!v).distance;return v||Pt(B)<O?D:S&&K?D*.5:p.byIndex(L.get(),0).distance}function Ae(B){const K=A1(B,r);q=K,ce=v&&K&&!B.buttons&&W,W=zl(o.get(),a.get())>=2,!(K&&B.button!==0)&&(Oe(B.target)||(Z=!0,s.pointerDown(B),d.useFriction(0).useDuration(0),o.set(a),re
vendor: 9,540 bytes, line 96
96(),Y=s.readPoint(B),ne=s.readPoint(B,I),y.emit("pointerDown")))}function le(B){if(!A1(B,r)&&B.touches.length>=2)return Q(B);const K=s.readPoint(B),L=s.readPoint(B,I),D=zl(K,Y),se=zl(L,ne);if(!ae&&!q&&(!B.cancelable||(ae=D>se,!ae)))return Q(B);const ve=s.pointerMove(B);D>b&&(ce=!0),d.useFriction(.3).useDuration(.75),u.start(),o.add(C(ve)),B.preventDefault()}function Q(B){const K=p.byDistance(0,!1).index!==h.get(),L=s.pointerUp(B)*Ee(),D=Pe(C(L),K),se=e0e(L,D),ve=V-10*se,de=w+se/50;ae=!1,Z=!1,x.clear(),d.useDuration(ve).useFriction(de),f.distance(D,!v),q=!1,y.emit("pointerUp")}function P(B){ce&&(B.stopPropagation(),B.preventDefault(),ce=!1)}function F(){return Z}return{init:ue,destroy:G,pointerDown:F}}function s0e(e,t){let n,r;function o(d){return d.timeStamp}function s(d,p){const h=`client${(p||e.scroll)==="x"?"X":"Y"}`;return(A1(d,t)?d:d.touches[0])[h]}function a(d){return n=d,r=d,s(d)}function u(d){const p=s(d)-s(r),h=o(d)-o(n)>170;return r=d,h&&(n=d),p}function f(d){if(!n||!r)return 0;const p=s(r)-s(n),h=o(d)-o(n),y=o(d)-o(r)>170,m=p/h;return h&&!y&&Pt(m)>.1?m:0}return{pointerDown:a,pointerMove:u,pointerUp:f,readPoint:s}}function a0e(){function e(t){const{offsetTop:n,offsetLeft:r,offsetWidth:o,offsetHeight:s}=t;return{top:n,right:r+o,bottom:n+s,left:r,width:o,height:s}}return{measure:e}}function u0e(e){function t(n){return e*(n/100)}return{measure:t}}function l0e(e,t,n,r,o,s,a){const u=[e].concat(r);let f,d,p=[],h=!1;function y(b){return o.measureSize(a.measure(b))}function m(b){if(!s)return;d=y(e),p=r.map(y);function S(w){for(const T of w){if(h)return;const I=T.target===e,C=r.indexOf(T.target),A=I?d:p[C],$=y(I?e:r[C]);if(Pt($-A)>=.5){b.reInit(),t.emit("resize");break}}}f=new ResizeObserver(w=>{(hg(s)||s(b,w))&&S(w)}),n.requestAnimationFrame(()=>{u.forEach(w=>f.observe(w))})}function v(){h=!0,f&&f.disconnect()}return{init:m,destroy:v}}function c0e(e,t,n,r,o,s){let a=0,u=0,f=o,d=s,p=e.get(),h=0;function y(){const $=r.get()-e.get(),k=!f;let x=0;return k?(a=0,n.set(r),e.set(r),x=$):(n.set(e),a+=$/f,a*=d,p+=a,e.add(a),x=p-h),u=Eb(x),h=p,A}function m(){const $=r.get()-t.get();return Pt($)<.001}function v(){return f}function b(){return u}function S(){return a}function w(){return I(o)}function T(){return C(s)}function I($){return f=$,A}function C($){return d=$,A}const A={direction:b,duration:v,velocity:S,seek:y,settled:m,useBaseFriction:T,useBaseDuration:w,useFriction:C,useDuration:I};return A}function f0e(e,t,n,r,o){const s=o.measure(10),a=o.measure(50),u=zs(.1,.99);let f=!1;function d(){return!(f||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function p(y){if(!d())return;const m=e.reachedMin(t.get())?"min":"max",v=Pt(e[m]-t.get()),b=n.get()-t.get(),S=u.constrain(v/a);n.subtract(b*S),!y&&Pt(b)<s&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())}function h(y){f=!y}return{shouldConstrain:d,constrain:p,toggleActive:h}}function d0e(e,t,n,r,o){const s=zs(-t+e,0),a=h(),u=p(),f=y();function d(m,v){return zl(m,v)<=1}function p(){const m=a[0],v=Ir(a),b=a.lastIndexOf(m),S=a.indexOf(v)+1;return zs(b,S)}function h(){return n.map((m,v)=>{const{min:b,max:S}=s,w=s.constrain(m),T=!v,I=Sb(n,v);return T?S:I||d(b,w)?b:d(S,w)?S:w}).map(m=>parseFloat(m.toFixed(3)))}function y(){if(t<=e+o)return[s.max];if(r==="keepSnaps")return a;const{min:m,max:v}=u;return a.slice(m,v)}return{snapsContained:f,scrollContainLimit:u}}function p0e(e,t,n){const r=t[0],o=n?r-e:Ir(t);return{limit:zs(o,r)}}function h0e(e,t,n,r){const o=t.min+.1,s=t.max+.1,{reachedMin:a,reachedMax:u}=zs(o,s);function f(p){return p===1?u(n.get()):p===-1?a(n.get()):!1}function d(p){if(!f(p))return;const h=e*(p*-1);r.forEach(y=>y.add(h))}return{loop:d}}function g0e(e){const{max:t,length:n}=e;function r(o){const s=o-t;return n?s/-n:0}return{get:r}}function m0e(e,t,n,r,o){const{startEdge:s,endEdge:a}=e,{groupSlides:u}=o,f=h().map(t.measure),d=y(),p=m();function h(){return u(r).map(v=>Ir(v)[a]-v[0][s]).map(Pt)}function y(){return r.map(v=>n[s]-v[s]).map(v=>-Pt(v))}function m(){return u(d).map(v=>v[0]).map((v,b)=>v+f[b])}return{snaps:d,snapsAligned:p}}function y0e(e,t,n,r,o,s){const{groupSlides:a}=o,{min:u,max:f}=r,d=p();function p(){const h=a(s),y=!e||t==="keepSnaps";return n.length===1?[s]:y?h:h.slice(u,f).map((m,v,b)=>{const S=!v,w=Sb(b,v);if(S){const T=Ir(b[0])+1;return zT(T)}if(w){const T=kf(s)-Ir(b)[0]+1;return zT(T,Ir(b)[0])}return m})}return{slideRegistry:d}}function v0e(e,t,n,r,o){const{reachedAny:s,removeOffset:a,constrain:u}=r;function f(m){return m.concat().sort((v,b)=>Pt(v)-Pt(b))[0]}function d(m){const v=e?a(m):u(m),b=t.map((w,T)=>({diff:p(w-v,0),index:T})).sort((w,T)=>Pt(w.diff)-Pt(T.diff)),{index:S}=b[0];return{index:S,distance:v}}function p(m,v){const b=[m,m+n,m-n];if(!e)return m;if(!v)return f(b);const S=b.filter(w=>Eb(w)===v);return S.length?f(S):Ir(b)-n}function h(m,v){const b=t[m]-o.get(),S=p(b,v);return{index:m,distance:S}}function y(m,v){const b=o.get()+m,{index:S,distance:w}=d(b),T=!e&&s(b);if(!v||T)return{index:S,distance:m};const I=t[S]-w,C=m+p(I,0);return{index:S,distance:C}}return{byDistance:y,byIndex:h,shortcut:p}}function _0e(e,t,n,r,o,s,a){function u(p){const h=p.distance,y=p.index!==t.get();s.add(h),h&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),y&&(n.set(t.get()),t.set(p.index),a.emit("select"))}function f(p,h){const y=o.byDistance(p,h);u(y)}function d(p,h){const y=t.clone().set(p),m=o.byIndex(y.get(),h);u(m)}return{distance:f,index:d}}function b0e(e,t,n,r,o,s,a,u){const f={passive:!0,capture:!0};let d=0;function p(y){if(!u)return;function m(v){if(new Date().getTime()-d>10)return;a.emit("slideFocusStart"),e.scrollLeft=0;const b=n.findIndex(S=>S.includes(v));wb(b)&&(o.useDuration(0),r.index(b,0),a.emit("slideFocus"))}s.add(document,"keydown",h,!1),t.forEach((v,b)=>{s.add(v,"focus",S=>{(hg(u)||u(y,S))&&m(b)},f)})}function h(y){y.code==="Tab"&&(d=new Date().getTime())}return{init:p}}function Sl(e){let t=e;function n(){return t}function r(u){t=a(u)}function o(u){t+=a(u)}function s(u){t-=a(u)}function a(u){return wb(u)?u:u.get()}return{get:n,set:r,add:o,subtract:s}}function v8(e,t){const n=e.scroll==="x"?a:u,r=t.style;let o=null,s=!1;function a(h){return`translate3d(${h}px,0px,0px)`}function u(h){return`translate3d(0px,${h}px,0px)`}function f(h){if(s)return;const y=t0e(e.direction(h));y!==o&&(r.transform=n(y),o=y)}function d(h){s=!h}function p(){s||(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:p,to:f,toggleActive:d}}function w0e(e,t,n,r,o,s,a,u,f){const d=Oc(o),p=Oc(o).reverse(),h=S().concat(w());function y(A,$){return A.reduce((k,x)=>k-o[x],$)}function m(A,$){return A.reduce((k,x)=>y(k,$)>0?k.concat([x]):k,[])}function v(A){return s.map(($,k)=>({start:$-r[k]+.5+A,end:$+t-.5+A}))}function b(A,$,k){const x=v($);return A.map(O=>{const M=k?0:-n,j=k?n:0,V=k?"end":"start",W=x[O][V];return{index:O,loopPoint:W,slideLocation:Sl(-1),translate:v8(e,f[O]),target:()=>u.get()>W?M:j}})}function S(){const A=a[0],$=m(p,A);return b($,n,!1)}function w(){const A=t-a[0]-1,$=m(d,A);return b($,-n,!0)}function T(){return h.every(({index:A})=>{const $=d.filter(k=>k!==A);return y($,t)<=.1})}function I(){h.forEach(A=>{const{target:$,translate:k,slideLocation:x}=A,O=$();O!==x.get()&&(k.to(O),x.set(O))})}function C(){h.forEach(A=>A.translate.clear())}return{canLoop:T,clear:C,loop:I,loopPoints:h}}function E0e(e,t,n){let r,o=!1;function s(u){if(!n)return;function f(d){for(const p of d)if(p.type==="childList"){u.reInit(),t.emit("slidesChanged");break}}r=new MutationObserver(d=>{o||(hg(n)||n(u,d))&&f(d)}),r.observe(e,{childList:!0})}function a(){r&&r.disconnect(),o=!0}return{init:s,destroy:a}}function S0e(e,t,n,r){const o={};let s=null,a=null,u,f=!1;function d(){u=new IntersectionObserver(m=>{f||(m.forEach(v=>{const b=t.indexOf(v.target);o[b]=v}),s=null,a=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(m=>u.observe(m))}function p(){u&&u.disconnect(),f=!0}function h(m){return kc(o).reduce((v,b)=>{const S=parseInt(b),{isIntersecting:w}=o[S];return(m&&w||!m&&!w)&&v.push(S),v},[])}function y(m=!0){if(m&&s)return s;if(!m&&a)return a;const v=h(m);return m&&(s=v),m||(a=v),v}return{init:d,destroy:p,get:y}}function $0e(e,t,n,r,o,s){const{measureSize:a,startEdge:u,endEdge:f}=e,d=n[0]&&o,p=v(),h=b(),y=n.map(a),m=S();function v(){if(!d)return 0;const w=n[0];return Pt(t[u]-w[u])}function b(){if(!d)return 0;const w=s.getComputedStyle(Ir(r));return parseFloat(w.getPropertyValue(`margin-${f}`))}function S(){return n.map((w,T,I)=>{const C=!T,A=Sb(I,T);return C?y[T]+p:A?y[T]+h:I[T+1][u]-w[u]}).map(Pt)}return{slideSizes:y,slideSizesWithGaps:m,startGap:p,endGap:h}}function T0e(e,t,n,r,o,s,a,u,f){const{startEdge:d,endEdge:p,direction:h}=e,y=wb(n);function m(S,w){return Oc(S).filter(T=>T%w===0).map(T=>S.slice(T,T+w))}function v(S){return S.length?Oc(S).reduce((w,T,I)=>{const C=Ir(w)||0,A=C===0,$=T===kf(S),k=o[d]-s[C][d],x=o[d]-s[T][p],O=!r&&A?h(a):0,M=!r&&$?h(u):0,j=Pt(x-M-(k+O));return I&&j>t+f&&w.push(T),$&&w.push(S.length),w},[]).map((w,T,I)=>{const C=Math.max(I[T-1]||0);return S.slice(C,w)}):[]}function b(S){return y?m(S,n):v(S)}return{groupSlides:b}}function I0e(e,t,n,r,o,s,a){const{align:u,axis:f,direction:d,startIndex:p,loop:h,duration:y,dragFree:m,dragThreshold:v,inViewThreshold:b,slidesToScroll:S,skipSnaps:w,containScroll:T,watchResize:I,watchSlides:C,watchDrag:A,watchFocus:$}=s,k=2,x=a0e(),O=x.measure(t),M=n.map(x.measure),j=o0e(f,d),V=j.measureSize(O),W=u0e(V),Y=n0e(u,V),ne=!h&&!!T,Z=h||!!T,{slideSizes:ae,slideSizesWithGaps:ce,startGap:q,endGap:ue}
vendor: 5,577 bytes, line 96
96=$0e(j,O,M,n,Z,o),G=T0e(j,V,S,h,O,M,q,ue,k),{snaps:re,snapsAligned:Oe}=m0e(j,Y,O,M,G),Ee=-Ir(re)+Ir(ce),{snapsContained:Pe,scrollContainLimit:Ae}=d0e(V,Ee,Oe,T,k),le=ne?Pe:Oe,{limit:Q}=p0e(Ee,le,h),P=y8(kf(le),p,h),F=P.clone(),B=Oc(n),K=({dragHandler:g,scrollBody:_,scrollBounds:E,options:{loop:R}})=>{R||E.constrain(g.pointerDown()),_.seek()},L=({scrollBody:g,translate:_,location:E,offsetLocation:R,previousLocation:oe,scrollLooper:$e,slideLooper:me,dragHandler:he,animation:Te,eventHandler:yn,scrollBounds:Fn,options:{loop:Me}},Le)=>{const Ze=g.settled(),kr=!Fn.shouldConstrain(),yr=Me?Ze:Ze&&kr,vr=yr&&!he.pointerDown();vr&&Te.stop();const Fi=E.get()*Le+oe.get()*(1-Le);R.set(Fi),Me&&($e.loop(g.direction()),me.loop()),_.to(R.get()),vr&&yn.emit("settle"),yr||yn.emit("scroll")},D=r0e(r,o,()=>K(c),g=>L(c,g)),se=.68,ve=le[P.get()],de=Sl(ve),_e=Sl(ve),Se=Sl(ve),pe=Sl(ve),ge=c0e(de,Se,_e,pe,y,se),fe=v0e(h,le,Ee,Q,pe),Ce=_0e(D,P,F,ge,fe,pe,a),H=g0e(Q),z=Lc(),ee=S0e(t,n,a,b),{slideRegistry:i}=y0e(ne,T,le,Ae,G,B),l=b0e(e,n,i,Ce,ge,z,a,$),c={ownerDocument:r,ownerWindow:o,eventHandler:a,containerRect:O,slideRects:M,animation:D,axis:j,dragHandler:i0e(j,e,r,o,pe,s0e(j,o),de,D,Ce,ge,fe,P,a,W,m,v,w,se,A),eventStore:z,percentOfView:W,index:P,indexPrevious:F,limit:Q,location:de,offsetLocation:Se,previousLocation:_e,options:s,resizeHandler:l0e(t,a,o,n,j,I,x),scrollBody:ge,scrollBounds:f0e(Q,Se,pe,ge,W),scrollLooper:h0e(Ee,Q,Se,[de,Se,_e,pe]),scrollProgress:H,scrollSnapList:le.map(H.get),scrollSnaps:le,scrollTarget:fe,scrollTo:Ce,slideLooper:w0e(j,V,Ee,ae,ce,re,le,Se,n),slideFocus:l,slidesHandler:E0e(t,a,C),slidesInView:ee,slideIndexes:B,slideRegistry:i,slidesToScroll:G,target:pe,translate:v8(j,t)};return c}function A0e(){let e={},t;function n(d){t=d}function r(d){return e[d]||[]}function o(d){return r(d).forEach(p=>p(t,d)),f}function s(d,p){return e[d]=r(d).concat([p]),f}function a(d,p){return e[d]=r(d).filter(h=>h!==p),f}function u(){e={}}const f={init:n,emit:o,off:a,on:s,clear:u};return f}const x0e={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function C0e(e){function t(o,s){return m8(o,s||{})}function n(o){const s=o.breakpoints||{},a=kc(s).filter(u=>e.matchMedia(u).matches).map(u=>s[u]).reduce((u,f)=>t(u,f),{});return t(o,a)}function r(o){return o.map(s=>kc(s.breakpoints||{})).reduce((s,a)=>s.concat(a),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function R0e(e){let t=[];function n(o,s){return t=s.filter(({options:a})=>e.optionsAtMedia(a).active!==!1),t.forEach(a=>a.init(o,e)),s.reduce((a,u)=>Object.assign(a,{[u.name]:u}),{})}function r(){t=t.filter(o=>o.destroy())}return{init:n,destroy:r}}function sh(e,t,n){const r=e.ownerDocument,o=r.defaultView,s=C0e(o),a=R0e(s),u=Lc(),f=A0e(),{mergeOptions:d,optionsAtMedia:p,optionsMediaQueries:h}=s,{on:y,off:m,emit:v}=f,b=j;let S=!1,w,T=d(x0e,sh.globalOptions),I=d(T),C=[],A,$,k;function x(){const{container:B,slides:K}=I;$=(I1(B)?e.querySelector(B):B)||e.children[0];const L=I1(K)?$.querySelectorAll(K):K;k=[].slice.call(L||$.children)}function O(B){const K=I0e(e,$,k,r,o,B,f);if(B.loop&&!K.slideLooper.canLoop()){const L=Object.assign({},B,{loop:!1});return O(L)}return K}function M(B,K){S||(T=d(T,B),I=p(T),C=K||C,x(),w=O(I),h([T,...C.map(({options:L})=>L)]).forEach(L=>u.add(L,"change",j)),I.active&&(w.translate.to(w.location.get()),w.animation.init(),w.slidesInView.init(),w.slideFocus.init(F),w.eventHandler.init(F),w.resizeHandler.init(F),w.slidesHandler.init(F),w.options.loop&&w.slideLooper.loop(),$.offsetParent&&k.length&&w.dragHandler.init(F),A=a.init(F,C)))}function j(B,K){const L=G();V(),M(d({startIndex:L},B),K),f.emit("reInit")}function V(){w.dragHandler.destroy(),w.eventStore.clear(),w.translate.clear(),w.slideLooper.clear(),w.resizeHandler.destroy(),w.slidesHandler.destroy(),w.slidesInView.destroy(),w.animation.destroy(),a.destroy(),u.clear()}function W(){S||(S=!0,u.clear(),V(),f.emit("destroy"),f.clear())}function Y(B,K,L){!I.active||S||(w.scrollBody.useBaseFriction().useDuration(K===!0?0:I.duration),w.scrollTo.index(B,L||0))}function ne(B){const K=w.index.add(1).get();Y(K,B,-1)}function Z(B){const K=w.index.add(-1).get();Y(K,B,1)}function ae(){return w.index.add(1).get()!==G()}function ce(){return w.index.add(-1).get()!==G()}function q(){return w.scrollSnapList}function ue(){return w.scrollProgress.get(w.offsetLocation.get())}function G(){return w.index.get()}function re(){return w.indexPrevious.get()}function Oe(){return w.slidesInView.get()}function Ee(){return w.slidesInView.get(!1)}function Pe(){return A}function Ae(){return w}function le(){return e}function Q(){return $}function P(){return k}const F={canScrollNext:ae,canScrollPrev:ce,containerNode:Q,internalEngine:Ae,destroy:W,off:m,on:y,emit:v,plugins:Pe,previousScrollSnap:re,reInit:b,rootNode:le,scrollNext:ne,scrollPrev:Z,scrollProgress:ue,scrollSnapList:q,scrollTo:Y,selectedScrollSnap:G,slideNodes:P,slidesInView:Oe,slidesNotInView:Ee};return M(t,n),setTimeout(()=>f.emit("init"),0),F}sh.globalOptions=void 0;function $b(e={},t=[]){const n=Xe(e),r=Xe(t);let o=n?e.value:e,s=r?t.value:t;const a=en(),u=en();function f(){u.value&&u.value.reInit(o,s)}return We(()=>{!J1e()||!a.value||(sh.globalOptions=$b.globalOptions,u.value=sh(a.value,o,s))}),bt(()=>{u.value&&u.value.destroy()}),n&&ke(e,d=>{bb(o,d)||(o=d,f())}),r&&ke(t,d=>
96{X1e(s,d)||(s=d,f())}),[a,u]}$b.globalOptions=void 0;const O0e=(e,t)=>{if(!e)return 0;const n=e-1;return Math.min(Math.max(t,0),n)},k0e=(e,t,n,r)=>{const o=Math.abs(e-t);return(r?Math.min(o,n-o):o)<=1},L0e=({images:e,startIndex:t=0,loop:n=!0})=>{const r=J(()=>qe(e).length),o=J(()=>qe(n)),s=J(()=>O0e(r.value,qe(t))),a=ie(null),u=J(()=>a.value!==null),f=J(()=>({loop:o.value,startIndex:s.value,align:"center",watchDrag:()=>!u.value})),[d,p]=$b(f),h=ie(s.value),y=ie(!1),m=ie(!1),v=()=>{p.value&&(a.value=null,h.value=p.value.selectedScrollSnap(),y.value=p.value.canScrollPrev(),m.value=p.value.canScrollNext())},b=()=>{p.value&&(a.value=null,p.value.reInit(f.value),p.value.scrollTo(s.value,!0),v())},S=x=>{x.on("select",v),x.on("reInit",v)},w=x=>{x.off("select",v),x.off("reInit",v)};ke(p,(x,O)=>{O&&w(O),x&&(S(x),b())},{immediate:!0}),ke([f,()=>qe(e)],async()=>{await gt(),b()},{deep:!0,flush:"post"});const T=(x,O)=>{x===h.value&&(a.value=O?x:null)},I=x=>{a.value=null,gt(x)},C=()=>I(()=>p.value?.scrollPrev()),A=()=>I(()=>p.value?.scrollNext()),$=x=>k0e(x,h.value,r.value,o.value),k=x=>{if(x.key==="ArrowLeft"){x.preventDefault(),C();return}x.key==="ArrowRight"&&(x.preventDefault(),A())};return We(()=>{window.addEventListener("keydown",k)}),Nn(()=>{window.removeEventListener("keydown",k),p.value&&w(p.value)}),{emblaRef:d,selectedIndex:h,canScrollPrev:y,canScrollNext:m,zoomedIndex:a,scrollPrev:C,scrollNext:A,setSlideZoom:T,shouldRenderSlide:$}},M0e={class:"image-preview__container"},P0e=["data-testid","aria-label"],B0e=xe({__name:"ImagePreviewCarousel",props:{images:{type:Array,required:!0},startIndex:{type:Number,default:0},loading:{type:Boolean,default:!1},loop:{type:Boolean,default:!0},showCounter:{type:Boolean,default:!0}},setup(e){const t=e,{emblaRef:n,selectedIndex:r,canScrollPrev:o,canScrollNext:s,zoomedIndex:a,scrollPrev:u,scrollNext:f,setSlideZoom:d,shouldRenderSlide:p}=L0e({images:xt(t,"images"),startIndex:xt(t,"startIndex"),loop:xt(t,"loop")});
96return(h,y)=>(U(),X(He,null,[N(o)?(U(),we(T1,{key:0,placement:"nav-prev","data-testid":"image-preview-nav-prev","aria-label":"ÐÑедÑдÑÑее изобÑажение",onMousedown:y[0]||(y[0]=ft(()=>{},["prevent"])),onClick:ft(N(u),["stop"])},{default:be(()=>[ye(N(Nu))]),_:1},8,["onClick"])):Ie("",!0),N(s)?(U(),we(T1,{key:1,placement:"nav-next","data-testid":"image-preview-nav-next","aria-label":"СледÑÑÑее изобÑажение",onMousedown:y[1]||(y[1]=ft(()=>{},["prevent"])),onClick:ft(N(f),["stop"])},{default:be(()=>[ye(N(Js))]),_:1},8,["onClick"])):Ie("",!0),te("div",{ref_key:"emblaRef",ref:n,class:"image-preview__viewport","data-testid":"image-preview-carousel"},[te("div",M0e,[(U(!0),X(He,null,dt(e.images,(m,v)=>(U(),X("div",{key:`${v}:${m}`,class:"image-preview__slide","data-testid":`image-preview-slide-${v}`,"aria-label":`ÐзобÑажение ${v+1} из ${e.images.length}`},[N(p)(v)?(U(),we(g8,{key:0,src:m,loading:e.loading,active:v===N(r),zoomed:N(a)===v,"onUpdate:zoomed":b=>N(d)(v,b)},null,8,["src","loading","active","zoomed","onUpdate:zoomed"])):Ie("",!0)],8,P0e))),128))])],512),e.showCounter?(U(),X("div",{key:2,class:"image-preview__counter ui-heading-xs","aria-live":"polite","data-testid":"image-preview-counter",onClick:y[2]||(y[2]=ft(()=>{},["stop"]))},Ue(N(r)+1)+" / "+Ue(e.images.length),1)):Ie("",!0)],64))}}),N0e=pg(B0e,[["__scopeId","data-v-165430f0"]]),D0e=({isOpen:e,dialogRef:t,onEscape:n})=>{const r=J(()=>t.value??null),{activate:o,deactivate:s}=BC(r),a=()=>{o(),t.value?.focus({preventScroll:!0})},u=f=>{!e.value||f.key!=="Escape"||(f.stopImmediatePropagation(),f.preventDefault(),n())};ke(e,f=>{f?a():s()},{flush:"post"}),We(()=>{window.addEventListener("keydown",u,{capture:!0}),e.value&&a()}),Nn(()=>{window.removeEventListener("keydown",u,{capture:!0}),s()})},U0e={class:"image-preview__frame","data-testid":"image-preview-frame"},H0e={key:1,class:"image-preview__single-slide","data-testid":"image-preview-single-slide"},F0e=xe({__name:"ImagePreviewModal",props:Nt({to:{type:String,default:"body"},images:{type:Array,default:()=>[]},startIndex:{type:Number,default:0},loading:{type:Boolean,default:!1},lockBody:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showCounter:{type:Boolean,default:!0}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:Nt(["close"],["update:modelValue"]),setup(e,{emit:t}){const n=e,r=t,o=Yn(e,"modelValue"),s=ie(o.value),a=ie(),u=ie([]),f=ie(0),d=J(()=>u.value.length>1),p=()=>{!n.images.length&&!n.loading||(u.value=n.images,f.value=n.startIndex)};ke([()=>n.images,()=>n.startIndex,()=>n.loading],p,{immediate:!0});const h=()=>{o.value=!1,r("close")},y=()=>{o.value||(s.value=!1,u.value=[],f.value=0)};D0e({isOpen:o,dialogRef:a,onEscape:h});const{toggleBodyLock:m}=PC(),v=ie(!1);return ke([o,()=>n.lockBody],()=>{const b=!!(o.value&&n.lockBody);b!==v.value&&(m(b),v.value=b)},{immediate:!0}),ke(o,b=>{b&&(p(),s.value=!0)}),Nn(()=>{v.value&&(m(!1),v.value=!1)}),(b,S)=>(U(),we(N(V1e),{to:e.to},{default:be(()=>[ye(ko,{name:"preview",onAfterLeave:y},{default:be(()=>[s.value?Su((U(),X("div",{key:0,ref_key:"dialogRef",ref:a,class:"image-preview__overlay",role:"dialog","aria-modal":"true","aria-label":"ÐÑоÑмоÑÑ Ð¸Ð·Ð¾Ð±Ñажений","data-testid":"image-preview-modal",tabindex:"-1",onClick:h},[ye(T1,{placement:"close","data-testid":"image-preview-close-button","aria-label":"ÐакÑÑÑÑ",onClick:ft(h,["stop"])},{default:be(()=>[ye(N(n_))]),_:1}),te("div",U0e,[d.value?(U(),we(N0e,{key:0,images:u.value,"start-index":f.value,loading:e.loading,loop:e.loop,"show-counter":e.showCounter},null,8,["images","start-index","loading","loop","show-counter"])):(U(),X("div",H0e,[(U(),we(g8,{key:u.value[0],src:u.value[0]??"",loading:e.loading},null,8,["src","loading"]))]))])],512)),[[$u,o.value]]):Ie("",!0)]),_:1})]),_:1},8,["to"]))}}),j0e=pg(F0e,[["__scopeId","data-v-ef88c77f"]]),GT={SHOW:"preview:show"},V0e=xe({__name:"ImagePreview",props:{to:{type:String,default:"body"},lockBody:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showCounter:{type:Boolean,default:!0}},setup(e){const t=ie(!1),n=ie(!1),r=ie([]),o=ie(0),s=Di();let a=0;const u=()=>{r.value=[],o.value=0,n.value=!1},f=h=>{r.value=h.images,o.value=h.startIndex,n.value=!1,t.value=!0},d=async h=>{if(!h?.fetchImages)return;a+=1;const y=a;r.value=[],o.value=0,n.value=!0,t.value=!0;try{const m=await h.fetchImages();if(y!==a)return;if(!m?.images.length){t.value=!1;return}f(m)}catch{y===a&&(t.value=!1)}},p=h=>{d(h.detail)};return ke(t,h=>{h||u()}),We(()=>{s.on(GT.SHOW,p)}),Nn(()=>{s.off(GT.SHOW,p)}),(h,y)=>(U(),we(j0e,{modelValue:t.value,"onUpdate:modelValue":y[0]||(y[0]=m=>t.value=m),images:r.value,"start-index":o.value,loading:n.value,to:e.to,"lock-body":e.lockBody,loop:e.loop,"show-counter"
96:e.showCounter},null,8,["modelValue","images","start-index","loading","to","lock-body","loop","show-counter"]))}});let Zm;const _8=e=>{if(e&&(Zm=e),!Zm)throw new Error("[Sports][Short Posts SSI] оÑÑÑÑÑÑвÑÐµÑ Ð¸Ð½ÑÑÐ°Ð½Ñ GQL Client");return{gqlClient:Zm}},q0e=({gqlClient:e,notifications:t,onDeleted:n,trackDelete:r})=>{const o=Rf(e),s=ie(null),a=ie(!1),u=()=>{a.value=!1,s.value=null};return{isDeleteConfirmOpen:a,requestDelete:h=>{if(!h){t.deleteError();return}s.value=h,a.value=!0},cancelDelete:()=>{r({postId:s.value??"",confirmed:!1}),u()},confirmDelete:async()=>{if(!s.value){u();return}r({postId:s.value,confirmed:!0});try{if(!await o.deletePost({id:s.value})){t.deleteError();return}n()}catch{t.deleteError()}finally{u()}}}},W0e=3e3,z0e=(e=W0e)=>{const t=Di(),n=(r,o)=>{const s=r==="info"?"notification:info":"notification:error";t.emit(s,{text:o,duration:e})};return{deleteSuccess:()=>n("info","ÐоÑÑ Ñдален"),deleteError:()=>n("error","Ðе ÑдалоÑÑ ÑдалиÑÑ Ð¿Ð¾ÑÑ"),editSuccess:()=>n("info","ÐÐ·Ð¼ÐµÐ½ÐµÐ½Ð¸Ñ ÑÑпеÑно внеÑÐµÐ½Ñ Ð² поÑÑ"),editError:r=>n("error",r||"Ðе ÑдалоÑÑ Ð¸Ð·Ð¼ÐµÐ½Ð¸ÑÑ Ð¿Ð¾ÑÑ"),reactionError:()=>n("error","Ðе ÑдалоÑÑ Ð¿Ð¾ÑÑавиÑÑ ÑеакÑиÑ")}},b8="short-posts-ssi",G0e=56,Y0e=({closePostRoute:e,reloadFeed:t})=>{const n=()=>{const o=document.getElementById(b8);if(!o)return;const s=o.getBoundingClientRect().top+window.scrollY-G0e;window.scrollTo({top:Math.max(0,s),behavior:"smooth"})};return{afterShortPostMutation:async o=>{e(),await t(),await gt(),n(),o?.()}}},K0e=()=>{const e=Y_(),t=typeof window<"u",n=t&&p8()&&!e.params.postId?h8():void 0,{isPostModalOpen:r,postId:o,modalHash:s,openShortPostModal:a,closeShortPostModal:u,setEditMode:f}=Ame(n?{fallbackUrl:()=>n}:{}),d=J(()=>t?r.value:!!e.params.postId);return{isPostModalOpen:r,isPostModalOpenSsr:d,postId:o,modalHash:s,openPost:a,setEditMode:f,closePostRouteAfterMutation:u}};function Z0e({type:e,userId:t,blogId:n,createdAuthorId:r,createdBlogId:o}){return e===cr.BLOG?!!(o&&o===n):e===cr.PROFILE?r===t:!1}const Q0e=({type:e,userId:t,blogId:n,reloadFeed:r})=>{const o=s=>{const a=s.detail;!a||!Z0e({type:e,userId:t,blogId:n,createdAuthorId:a.authorId,createdBlogId:a.blogId})||r()};We(()=>{window.addEventListener(DT,o)}),bt(()=>{window.removeEventListener(DT,o)})},YT=3,J0e=e=>{const t=J(()=>e.extProps.type),n=e.extProps.userId||"",r=e.extProps.blogId||"",o=J(()=>t.value===cr.BLOG?r:t.value===cr.PROFILE?n:""),s=J(()=>t.value===cr.PROFILE),a=J(()=>t.value===cr.BLOG),{shortPosts:u,hasMore:f,isError:d,isLoading:p,isLoadingPagination:h,fetchShortPostsByObjectId:y,fetchFirst:m,fetchNext:v,resetState:b,patchPostReactions:S,setReaction:w,reactionPendingPostId:T}=Fme({currentAuthorType:t,imageInput:$_.shortPost.list,gqlClient:e.gqlClient}),I=async()=>{o.value&&await m({id:o.value,amount:YT})},C=async()=>{o.value&&await v({id:o.value,amount:YT})};return Q0e({type:t.value,userId:n,blogId:r,reloadFeed:I}),{authorType:t,isProfile:s,isBlog:a,sourceId:o,shortPosts:u,hasMore:f,isError:d,isLoading:p,isLoadingPagination:h,fetchShortPostsByObjectId:y,fetchFirst:m,fetchNext:v,resetState:b,patchPostReactions:S,setReaction:w,reactionPendingPostId:T,reload:I,loadMore:C}},x1={BLOG_PAGE:"blog_page",PROFILE_PAGE:"profile_page"};function KT({index:e,postId:t}){return{id:t,sequence_n:e+1}}function X0e({postId:e,index:t,target:n}){return{type:n==="comments"?"comments":"post",id:e,sequence_n:t+1}}function e_e({postId:e,index:t,target:n}){const r=n==="comments";return{block:r?"comments":"posts",type:r?"":"post",id:e,sequence_n:t+1}}function t_e(e,t){return e===x1.PROFILE_PAGE?e_e(t):X0e(t)}function n_e(e){const t=J(()=>e.value?"blog_page":"profile_page"),n=J(()=>e.value?"blog_feed":"profile"),r=J(()=>e.value?x1.BLOG_PAGE:x1.PROFILE_PAGE);return jme({category:t,label:n,buildFeedItemProperty:o=>({...KT(o),is_short:!!o.isShort}),buildPostClickProperty:o=>({...t_e(r.value,o),is_short:!!o.isShort}),buildReactProperty:o=>({...KT(o),reaction:{id:o.reactionId}}),buildDeleteProperty:({postId:o})=>({id:o})})}function C1(e,t,n){if(n==="_resolver")return e;typeof e=="function"&&(!n||n!=="titleTemplate"&&!n.startsWith("on"))&&(e=e());const r=t?t(n,e):e;if(Array.isArray(r))return r.map(o=>C1(o,t));if(r?.constructor===Object){const o={};for(const s in r)s==="__proto__"||s==="constructor"||s==="prototype"||(o[s]=C1(r[s],t,s));return o}return r}const r_e="usehead",o_e=(e,t)=>
96Xe(t)?qe(t):t;function i_e(){if(qc()){const e=Gt(r_e);if(e)return e}throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.")}function R1(e,t={}){const n=t.head||i_e();return n.ssr?n.push(e||{},t):s_e(n,e,t)}function s_e(e,t,n={}){const r=ie(!1);if(n.onRendered){const a=Gs();if(a){const u=n.onRendered;n={...n,onRendered:f=>a.run(()=>u(f))}}}let o;return yh(()=>{const a=r.value?{}:C1(t,o_e);o?o.patch(a):o=e.push(a,n)}),Dn()&&(bt(()=>{o.dispose()}),W1(()=>{r.value=!0}),q1(()=>{r.value=!1})),o}const a_e=e=>{const t=e.indexOf(".");return t>0&&t<=50?e.slice(0,t+1):e.length>50?`${e.slice(0,50)}...`:e},u_e=e=>{const t=e.slice(0,160),n=t.match(/[.!?:;]/);return n?.index!==void 0?t.slice(0,n.index+1):t},l_e=({gqlClient:e,isPostModalOpen:t})=>{const n=s3(),r=ie(null);return R1(J(()=>{if(!t.value||!r.value)return{};const s=r.value.authors[0]?.nick??"",a=a_e(r.value.title??""),u=r.value.teaserText??r.value.title??"";return{title:`${s} на СпоÑÑÑе: ${a} (${r.value.id})`,meta:[{name:"description",content:`${u_e(u)} (${r.value.id})`},{name:"robots",content:"noindex, nofollow"}],link:[{rel:"canonical",href:r.value.pageInfo.desktopURL}]}}),{mode:"server"}),R1(J(()=>({meta:t.value?[{name:"robots",content:"noindex, nofollow"}]:[]}))),{prefetchPostForSeo:async s=>{if(!s)return;n?.responseOptions&&(n.responseOptions.headers["X-Robots-Tag"]="noindex, nofollow");const u=await Rf(e).getPostById({id:s});if(!u)throw new Tv({statusCode:404,message:"Post not found"});if(u.status==="HIDDEN"||u.status==="DELETED"||u.status==="DRAFT")throw new Tv({statusCode:403,message:"Forbidden"});r.value=u}}},c_e="body-lock-counter",f_e=()=>{let e=0,t=null;const n=()=>{document.body.style.position!=="fixed"&&(e=window.scrollY)},r=()=>Number(window[c_e]??0)>0,o=()=>{const{style:s}=document.body;return s.position==="fixed"||s.overflow==="hidden"||s.overflowY==="hidden"};We(()=>{t=new MutationObserver(()=>{r()&&(o()||(document.body.style.overflow="hidden",window.scrollTo(0,e)))}),window.addEventListener("scroll",n,{passive:!0}),t.observe(document.body,{attributes:!0,attributeFilter:["style"]})}),bt(()=>{window.removeEventListener("scroll",n),t?.disconnect()})},d_e=xe({__name:"MainPage",props:{appPropsFacade:{type:Object,required:!0},notificationsProvider:{type:Object,required:!0}},setup(e){bh(pe=>({"66ec3bcc":r}));const t=Jt(async()=>{const{ShortPostModal:pe}=await Rt(async()=>{const{ShortPostModal:ge}=await import("./modal.es-koqxDcNR.js").then(fe=>fe.q);return{ShortPostModal:ge}},__vite__mapDeps([22,23,1,2,24]));return pe}),n=e,r=`${OO}px`,o=Y_(),{gqlClient:s}=_8(n.appPropsFacade.gqlClient),{user:a,fetchUserData:u}=Fu(s),f=z0e(),d=wme(),{catalog:p,fetchCatalog:h}=$O({gqlClient:s}),{openShortPostImagePreview:y}=kme({gqlClient:s}),{isProfile:m,isBlog:v,shortPosts:b,hasMore:S,isLoading:w,isLoadingPagination:T,isError:I,setReaction:C,patchPostReactions:A,reactionPendingPostId:$,reload:k,loadMore:x}=J0e(n.appPropsFacade),{trackPostView:O,trackPostClick:M,trackPostShare:j,trackPostReact:V,trackAuthorClick:W,trackDelete:Y}=n_e(v),ne=pe=>{!v.value||pe.creatorType!=="author"||!pe.creatorId||W({postId:pe.postId,authorId:pe.creatorId})},{isPostModalOpen:Z,isPostModalOpenSsr:ae,postId:ce,modalHash:q,openPost:ue,setEditMode:G,closePostRouteAfterMutation:re}=K0e(),Oe=ie(!1);f_e();const{prefetchPostForSeo:Ee}=l_e({gqlClient:s,isPostModalOpen:ae}),Pe={[cr.BLOG]:Rc.BLOG,[cr.PROFILE]:Rc.PROFILE},Ae=J(()=>{const pe=n.appPropsFacade.extProps.type;return pe?Pe[pe]:void 0}),{afterShortPostMutation:le}=Y0e({closePostRoute:()=>{Z.value&&re()},reloadFeed:k}),{isDeleteConfirmOpen:Q,requestDelete:P,cancelDelete:F,confirmDelete:B}=q0e({gqlClient:s,notifications:f,trackDelete:Y,onDeleted:()=>{le(f.deleteSuccess)}});mh(async()=>{await Promise.allSettled([u(),h()]);const pe=o.params.postId;await Ee(pe)}),We(()=>{Oe.value=!0,a.value?.id||u(),p.value.length||h(),k()});const K=({id:pe},ge)=>{const Ce=b.value.find(H=>H.id===pe)?.authors?.[0]?.id;Ce&&ue(pe,Ce,ge)},L=({id:pe,index:ge,isShort:fe})=>{M({postId:pe,index:ge,isShort:fe},"post"),K({id:pe})},D=({id:pe,index:ge,isShort:fe})=>{M({postId:pe,index:ge,isShort:fe},"comments"),K({id:pe},"comments")},se=pe=>{d.trackEdit(),K({id:pe},"edit")},ve=async({postId:pe,reactionId:ge,index:fe,action:Ce})=>{V({postId:pe,reactionId:ge,index:fe,action:Ce}),await C(pe,ge)},de=({postId:pe,reactions:ge})=>A(pe,ge),_e=(pe,ge)=>{if(!ge){f.deleteError();return}le(f.deleteSuccess)},Se=pe=>{Ome(pe),le(f.editSuccess)};return(pe,ge)=>(U(),X("div",{class:Be(["main-page",{"main-page--profile":N(m),"main-page--blog":N(v)}])},[ye(N(Dme),{list:N(b),"reaction-pending-post-id":N($),"is-loading":N(w),"is-loading-more":N(T),"is-error":N(I),mode:"show-more","has-more":N(S),"reaction-catalog":N(p),"hide-follow-button":N(m),"hide-blog":N(v),onFetchNext:N(x),onReload:N(k),onClickPost:L,onPreviewImage:N(y),onCommentsClick:D,onEditPost:se,onDeletePost:N(P),onSetReaction:ve,onView:N(O),onShare:N(j),onCreatorClick:ne},null,8,["list","reaction-pending-post-id","is-loading","is-loading-more","is-error","has-more","reaction-catalog","hide-follow-button","hide-blog","onFetchNext","onReload","onPreviewImage","onDeletePost","onView","onShare"]),Oe.value&&N(Z)?(U(),we(N(t),{key:0,modelValue:N(Z),"onUpdate:modelValue":ge[0]||(ge[0]=fe=>Xe(Z)?Z.value=fe:null),"post-id":N(ce),"gql-client":N(s),"reaction-catalog":N(p),"current-user-id":N(a).id,"scroll-to-comments":N(q)==="#comments","open-in-edit-mode":N(q)==="#edit","manage-edit-hash":!1,"notifications-provider":n.notificationsProvider,"app-props-facade":e.appPropsFacade,source:Ae.value,"hide-follow-button":N(m),"hide-blog":N(v),onEditModeChange:N(G),onReactionsUpdated:de,onReactionError:N(f).reactionError,onDeletePost:_e,onEditPostSuccess:Se,onEditPostError:N(f).editError,onPreviewImage:N(y)},null,8,["modelValue","post-id","gql-client","reaction-catalog","current-user-id","scroll-to-comments","open-in-edit-mode","notifications-provider","app-props-facade","source","hide-follow-button","hide-blog","onEditModeChange","onReactionError","onEditPostError","onPreviewImage"])):Ie("",!0),ye(N(V0e),{"lock-body":!N(Z)},null,8,["lock-body"]),ye(N(VO),{modelValue:N(Q),"onUpdate:modelValue":ge[1]||(ge[1]=fe=>Xe(Q)?Q.value=fe:null),text:"ÐÑ ÑвеÑенÑ, ÑÑо Ñ
оÑиÑе ÑдалиÑÑ Ð¿Ð¾ÑÑ?","confirm-label":"УдалиÑÑ","data-test-prefix":"short-post-delete-modal",onConfirm:N(B),onCancel:N(F)},null,8,["modelValue","onConfirm","onCancel"])],2))}}),p_e=(e,t)=>
96{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},tp=p_e(d_e,[["__scopeId","data-v-55e83d82"]]),h_e=xe({__name:"NotFoundPage",setup(e){return mh(()=>Promise.reject(new Tv({statusCode:404,message:"Not Found"}))),(t,n)=>(U(),X("div"))}}),g_e=[{path:UT.SHORT_POST,name:ep.SHORT_POST,component:tp},{path:UT.PROFILE,name:ep.PROFILE,component:tp},{path:"/",name:ep.SSI_HOME,component:tp},{path:"/:pathMatch(.*)*",component:h_e}],m_e=()=>p8()?"/":ih,y_e=()=>typeof window<"u",v_e=()=>{const e=tle(m_e());return y_e()&&e.replace(h8()),Ale({history:e,routes:g_e})};function w8(){const e=ie([]);return{notifications:J(()=>e.value),add(t){if(!t)return"";const n=`${Date.now()}${JSON.stringify(t.props)}`;return e.value.push({...t,id:n}),n},remove(t){e.value=e.value.filter(n=>n.id!==t)}}}const E8=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},__e={class:"ui-notification__icon"},b_e={class:"ui-notification__content ui-body-sm-regular"},w_e=xe({__name:"UINotification",props:{state:{type:String,default:"neutral"},duration:{type:Number,default:0}},emits:["close","mouseenter","mouseleave"],setup(e,{emit:t}){bh(r=>({ada5ec90:`${e.duration}ms`}));const n=t;return(r,o)=>(U(),X("div",{class:Be(["ui-notification",{[`ui-notification--${e.state}`]:!0}]),onMouseenter:o[2]||(o[2]=s=>n("mouseenter")),onMouseleave:o[3]||(o[3]=s=>n("mouseleave"))},[e.duration?(U(),X("div",{key:0,class:Be(["ui-notification__progress",{"ui-notification__progress--animated":!!e.duration}]),onAnimationend:o[0]||(o[0]=s=>n("close"))},null,34)):Ie("",!0),te("div",__e,[De(r.$slots,"icon",{},void 0,!0)]),te("div",b_e,[De(r.$slots,"default",{},void 0,!0)]),te("button",{class:"ui-notification__close",onClick:o[1]||(o[1]=s=>n("close"))},[ye(N(n_))])],34))}}),ZT=E8(w_e,[["__scopeId","data-v-a516d95a"]]);var S8=(e=>(e.NOTIFICATION="NOTIFICATION",e))(S8||{}),hs=(e=>(e.TEXT="TEXT",e.CUSTOM_COMPONENT="CUSTOM_COMPONENT",e))(hs||{});const E_e=xe({__name:"NotificationsList",props:{notifications:{type:Array,default:()=>[]},noTeleportTargetReset:{type:Boolean,default:!1}},emits:["notificationClose","action"],setup(e,{emit:t}){const n=ie(0),r=e,o=t,s=d=>o("notificationClose",d),a=d=>d.type===hs.TEXT?ZT:d.component,u=d=>{switch(d){case S8.NOTIFICATION:default:return Jt(()=>Rt(()=>import("./index.es-D-73F2bD.js"),__vite__mapDeps([25,23,26])).then(p=>p.MdBasicFeedback))}},f=d=>{d.actionName&&o("action",d)};return ke(r.notifications,()=>{const d=document.querySelector(".navigation-navbar-mobile");if(d){const p=d.offsetHeight;n.value=p}}),(d,p)=>(U(),X("div",{class:"notifications-list",style:at({marginBottom:n.value+"px"})},[ye(A3,{name:"ui-kit-notification-list"},{default:be(()=>[(U(!0),X(He,null,dt(r.notifications,h=>(U(),X(He,{key:h.id},[h.type===N(hs).TEXT?(U(),we(N(ZT),{key:0,class:"notifications-list__item",state:h.props.messageStatus,duration:h.props.duration,onClose:()=>s(h.id||"")},{icon:be(()=>[(U(),we(Xt(u(h.props.icon))))]),default:be(()=>[mt(" "+Ue(h.props.text),1)]),_:2},1032,["state","duration","onClose"])):(U(),we(Xt(a(h)),un({key:1,class:"notifications-list__item",ref_for:!0},h.props,{onClosed:()=>s(h.id||""),onAction:f}),{icon:be(()=>[(U(),we(Xt(u(h.props.icon))))]),default:be(()=>[te("template",null,[mt(Ue(h.props.text),1)])]),_:2},1040,["onClosed"]))],64))),128))]),_:1})],4))}}),S_e=E8(E_e,[["__scopeId","data-v-d2fafd74"]]);let ri;const $_e=e=>(ri=e??w8(),{showErrorNotification:({text:t,duration:n})=>{ri.add({type:hs.TEXT,props:{messageStatus:"negative",text:t,duration:n??5e3}})},showSuccessNotification:({text:t,duration:n})=>{ri.add({type:hs.TEXT,props:{messageStatus:"success",text:t,duration:n??5e3}})},showNeutralNotification:({text:t,duration:n})=>{ri.add({type:hs.TEXT,props:{messageStatus:"neutral",text:t,duration:n??5e3}})},showCustomNotification:({text:t,duration:n,callback:r,actionText:o})=>{ri.add({type:hs.CUSTOM_COMPONENT,component:$t($ee),props:{text:t,duration:n??7e3,actionCallback:r,actionText:o}})},removeNotification:ri.remove,allNotifications:ri.notifications,notificationsProvider:ri}),T_e=xe({__name:"NotificationsController",props:{notificationsProvider:{type:Object,default:null}},setup(e){const t=e,n=Di(),{showErrorNotification:r,showSuccessNotification:o,showNeutralNotification:s,notificationsProvider:a}=$_e(t.notificationsProvider),u=h=>{a.remove(h)},f=h=>{r(h.detail)},d=h=>{o(h.detail)},p=h=>{s(h.detail)};return We(()=>{n.on("notification:error",f),n.on("notification:success",d),n.on("notification:info",p)}),Nn(()=>{n.off("notification:error",f),n.off("notification:success",d),n.off("notification:info",p)}),(h,y)=>N(a)?(U(),we(N(S_e),{key:0,notifications:N(a).notifications.value,onNotificationClose:u},null,8,["notifications"])):Ie("",!0)}});var Tb=(e=>(e.About="ABOUT",e.Add="ADD",e.App="APP",e.Athletes="ATHLETES",e.Bonus="BONUS",e.Bookmaker="BOOKMAKER",e.Calendar="CALENDAR",e.CalendarDate="CALENDAR_DATE",e.CalendarGroup="CALENDAR_GROUP",e.Coaches="COACHES",e.Countries="COUNTRIES",e.Date="DATE",e.Edit="EDIT",e.Grid="GRID",e.Group="GROUP",e.Lineups="LINEUPS",e.List="LIST",e.Live="LIVE",e.Main="MAIN",e.News="NEWS",e.Odds="ODDS",e.Online="ONLINE",e.Poll="POLL",e.Posts="POSTS",e.Prediction="PREDICTION",e.Predictions="PREDICTIONS",e.PredictionSportsEvent="PREDICTION_SPORTS_EVENT",e.Prizes="PRIZES",e.Ratings="RATINGS",e.Results="RESULTS",e.Reviews="REVIEWS",e.Rules="RULES",e.Scheme="SCHEME",e.Sports="SPORTS",e.Stadiums="STADIUMS",e.Stat="STAT",e.StatAssistances="STAT_ASSISTANCES",e.StatBombardiers="STAT_BOMBARDIERS",e.StatFouls="STAT_FOULS",e.StatKeepers="STAT_KEEPERS",e.Table="TABLE",e.TableGroup="TABLE_GROUP",e.TablePlayoff="TABLE_PLAYOFF",e.Team="TEAM",e.Teams="TEAMS",e.Tickets="TICKETS",e.Tournament="TOURNAMENT",e.Video="VIDEO",e))(Tb||{}),$8=(e=>(e.AmateurSportContest="AMATEUR_SPORT_CONTEST",e.BookmakerRating="BOOKMAKER_RATING",e.CyberMatchCenter="CYBER_MATCH_CENTER",e.CyberMatchCenterTournament="CYBER_MATCH_CENTER_TOURNAMENT",e.CyberTournament="CYBER_TOURNAMENT",e.DotaMatch="DOTA_MATCH",e.FantasyIndex="FANTASY_INDEX",e.FantasySquad="FANTASY_SQUAD",e.FantasyTournament="FANTASY_TOURNAMENT",e.Faq="FAQ",e.Hub="HUB",e.Match="MATCH",e.News="NEWS",e.Olympic="OLYMPIC",e.Poll="POLL",e.Post="POST",e.PredictionHub="PREDICTION_HUB",e.Predictor="PREDICTOR",e.PredictorIndex="PREDICTOR_INDEX",e.PredictorTournament="PREDICTOR_TOURNAMENT",e.Short="SHORT",e.TagOther="TAG_OTHER",e.TagTourn
96ament="TAG_TOURNAMENT",e))($8||{});const T8=()=>"($type: pageType!, $id: ID!, $pageSubtype: pageSubtype!) { pageMeta(type: $type, ID: $id, subtype: $pageSubtype) { og { title description url image } } }";T8.operationName="getDocumentOpenGraphData";const I_e=e=>{if(!e)throw new Error("[Sports][Share] оÑÑÑÑÑÑвÑÐµÑ Ð¸Ð½ÑÑÐ°Ð½Ñ gqlClient");return{async getOpenGraph({id:t,type:n=$8.Post,subtype:r=Tb.Main}){if(!t)throw new Error("documentId is required");const o=await e.gqlQuery(T8,{id:t,type:n,pageSubtype:r});if(!o?.og)throw new Error("оÑибка пÑи полÑÑении ÑÑÑлки");return o.og}}},A_e=xe({__name:"ShareController",props:{gqlClient:{type:Object,required:!0}},setup(e){const t=e,n=Di(),{getDeviceType:r}=y_(),o=I_e(t.gqlClient),s=ie(!1),a=ie({title:"",description:"",url:"",image:""}),u=ie(!1),f=async()=>{const b={url:a.value.url+"?utm_medium=share&utm_campaign="+window.location.hostname,text:a.value.description,title:a.value.title};try{if(!navigator.share||!navigator.canShare(b))return;await navigator.share(b)}catch{}finally{u.value=!1}},d=async({id:b,type:S})=>(a.value=await o.getOpenGraph({id:b,type:S,subtype:Tb.Main}),u.value=!0,a.value),p=async b=>{if(!(a.value.url&&u.value))try{const S=new ClipboardItem({"text/plain":d(b).then(w=>new Blob([w.url],{type:"text/plain"}))});await window.navigator.clipboard.write([S]),n.emit("notification:info",{text:"СÑÑлка ÑкопиÑована"}),u.value=!1}catch(S){n.emit("notification:error",{text:S instanceof Error?S.message:"Ðе ÑдалоÑÑ Ð¿Ð¾Ð´ÐµÐ»Ð¸ÑÑÑÑ ÑÑÑлкой"})}},h=async b=>{if(!(a.value.url&&u.value))try{await d(b),r()==="mobile"?await f():s.value=!0}catch(S){n.emit("notification:error",{text:S instanceof Error?S.message:"Ðе ÑдалоÑÑ Ð¿Ð¾Ð´ÐµÐ»Ð¸ÑÑÑÑ ÑÑÑлкой"})}},y=()=>{s.value=!1,u.value=!1},m=b=>{b.detail.onlyLink?p(b.detail):h(b.detail)},v=()=>{n.emit("notification:info",{text:"СÑÑлка ÑкопиÑована"}),y()};return We(()=>{n.on("media-events:share",m)}),Nn(()=>{n.off("media-events:share",m)}),(b,S)=>(U(),we(N(A4),{"is-open":s.value,"share-data":a.value,onCopy:v,"onUpdate:isOpen":y},null,8,["is-open","share-data"]))}}),x_e=["id"],C_e=xe({__name:"App",props:{appPropsFacade:{type:Object,required:!0}},setup(e){const t=e,{appPropsFacade:n}=Hc(t);vf(t.appPropsFacade),Cf(t.appPropsFacade.logger);const r=t.appPropsFacade.extProps.site==="cyber"?"cyber":"sports",o=OQ(r);R1({style:o},{mode:"server"});const{gqlClient:s}=_8(t.appPropsFacade.gqlClient),a=w8(),{openAuthPopup:u}=Fu(s);return n.value.setDiDeps({openAuthPopup:u}),(f,d)=>N(n).isFeatureFlagEnabled("short-posts-ssi")?(U(),X("div",{key:0,id:N(b8),class:"short-posts-ssi"},[ye(tp,{"app-props-facade":N(n),"notifications-provider":N(a)},null,8,["app-props-facade","notifications-provider"]),ye(N(m_),{to:"body"},{default:be(()=>[ye(N(T_e),{"notifications-provider":N(a)},null,8,["notifications-provider"])]),_:1}),ye(N(A_e),{"gql-client":N(s)},null,8,["gql-client"])],8,x_e)):Ie("",!0)}}),R_e="frontend-roberto-contentos-short-posts-ssi",QT={name:R_e},Ib=new uC({},new MY),Ab=new xh({});Ib.logger=Ab;Cf(Ab);vb(Ab);const I8=v_e(),O_e=await new OY(C_e,()=>I8,{appName:QT.name}).createApp(Ib,QT.name);await I8.isReady();const JT=rM();JT&&Object.defineProperty(Ib,"appState",{get:()=>JT,configurable:!0});O_e.mount("#short-posts-ssi-mount-point");export{gr as $,HI as A,dt as B,Bb as C,Ice as D,ks as E,He as F,gt as G,Y_ as H,Hu as I,en as J,Gt as K,$t as L,rg as M,J1 as N,yh as O,Dn as P,hh as Q,di as R,Cbe as S,F1 as T,Su as U,Gc as V,Xe as W,qL as X,Gs as Y,Do as Z,nK as _,we as a,Mv as a$,Yn as a0,Nt as a1,$u as a2,qc as a3,lh as a4,Xr as a5,rt as a6,ra as a7,Hc as a8,Ahe as a9,o_ as aA,ot as aB,D_e as aC,P3 as aD,_f as aE,n_ as aF,Nu as aG,k_e as aH,Js as aI,ube as aJ,Uc as aK,GZ as aL,SQ as aM,d_ as aN,p_ as aO,h_ as aP,abe as aQ,yt as aR,gbe as aS,wbe as aT,vbe as aU,_be as aV,Pv as aW,ybe as aX,bbe as aY,mh as aZ,Fp as a_,on as aa,Jt as ab,Rt as ac,G1 as ad,Jm as ae,cp as af,WL as ag,ko as ah,A3 as ai,bh as aj,z1 as ak,Rbe as al,Obe as am,Pbe as an,Xhe as ao,Bbe as ap,Zhe as aq,Lbe as ar,Nbe as as,Mbe as at,Fo as au,ut as av,pt as aw,St as ax,cK as ay,Vh as az,We as b,GK as b$,kk as b0,xt as b1,lM as b2,s3 as b3,oR as b4,Q4 as b5,pu as b6,_ee as b7,qe as b8,gc as b9,ype as bA,dme as bB,hT as bC,xbe as bD,zce as bE,uO as bF,sb as bG,mme as bH,Vl as bI,ahe as bJ,Rf as bK,Kpe as b
96L,Ype as bM,K$ as bN,PC as bO,Ma as bP,Aa as bQ,fC as bR,JY as bS,sK as bT,X0 as bU,dC as bV,pC as bW,hC as bX,gC as bY,t_ as bZ,r_ as b_,e_ as ba,YS as bb,Xne as bc,v4 as bd,hs as be,lt as bf,og as bg,ng as bh,U_ as bi,yoe as bj,AJ as bk,Sne as bl,vf as bm,cbe as bn,i4 as bo,KC as bp,y4 as bq,Fu as br,Go as bs,Cle as bt,Cf as bu,rb as bv,Dbe as bw,pme as bx,gpe as by,wme as bz,J as c,lC as c0,cC as c1,xe as d,Nn as e,X as f,Be as g,mt as h,te as i,Z1 as j,ye as k,ke as l,un as m,at as n,U as o,bt as p,be as q,ie as r,Hi as s,Ue as t,N as u,Ie as v,kbe as w,ft as x,De as y,Xt as z}; 97//# debugId=ccb33e19-8d30-5820-a5eb-8ddf8c97e566
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.