1var a_=Object.defineProperty;var l_=(t,e,n)=>e in t?a_(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Z=(t,e,n)=>(l_(t,typeof e!="symbol"?e+"":e,n),n);import{g as u_,c as We}from"./vendor-highcharts.9b480a8e.js";import{ButtplugWasmClientConnector as P1}from"https://cdn.jsdelivr.net/npm/[email protected]/dist/buttplug-wasm.mjs";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&s(o)}).observe(document,{childList:!0,subtree:!0});function n(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerpolicy&&(i.referrerPolicy=r.referrerpolicy),r.crossorigin==="use-credentials"?i.credentials="include":r.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function s(r){if(r.ep)return;r.ep=!0;const i=n(r);fetch(r.href,i)}})();const c_="modulepreload",d_=function(t,e){return t.startsWith(".")?new URL(t,e).href:t},$1={},Ae=function(e,n,s){if(!n||n.length===0)return e();const r=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=d_(i,s),i in $1)return;$1[i]=!0;const o=i.endsWith(".css"),a=o?'[rel="stylesheet"]':"";if(!!s)for(let c=r.length-1;c>=0;c--){const d=r[c];if(d.href===i&&(!o||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${a}`))return;const u=document.createElement("link");if(u.rel=o?"stylesheet":c_,o||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),o)return new Promise((c,d)=>{u.addEventListener("load",c),u.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>e())};/** 2* @vue/shared v3.5.32 3* (c) 2018-present Yuxi (Evan) You and Vue contributors 4* @license MIT
vendor: 9,628 bytes, lines 5-9
5**/function mu(t){const e=Object.create(null);for(const n of t.split(","))e[n]=1;return n=>n in e}const lt={},Wi=[],Zn=()=>{},U0=()=>!1,Sa=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),_u=t=>t.startsWith("onUpdate:"),Lt=Object.assign,Sf=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},f_=Object.prototype.hasOwnProperty,yt=(t,e)=>f_.call(t,e),Ie=Array.isArray,Gi=t=>_o(t)==="[object Map]",fi=t=>_o(t)==="[object Set]",R1=t=>_o(t)==="[object Date]",h_=t=>_o(t)==="[object RegExp]",Ge=t=>typeof t=="function",Ht=t=>typeof t=="string",Jn=t=>typeof t=="symbol",bt=t=>t!==null&&typeof t=="object",Ef=t=>(bt(t)||Ge(t))&&Ge(t.then)&&Ge(t.catch),z0=Object.prototype.toString,_o=t=>z0.call(t),p_=t=>_o(t).slice(8,-1),yu=t=>_o(t)==="[object Object]",bu=t=>Ht(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Qr=mu(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),wu=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},g_=/-\w/g,rn=wu(t=>t.replace(g_,e=>e.slice(1).toUpperCase())),v_=/\B([A-Z])/g,Un=wu(t=>t.replace(v_,"-$1").toLowerCase()),xu=wu(t=>t.charAt(0).toUpperCase()+t.slice(1)),dl=wu(t=>t?`on${xu(t)}`:""),pn=(t,e)=>!Object.is(t,e),Zi=(t,...e)=>{for(let n=0;n<t.length;n++)t[n](...e)},q0=(t,e,n,s=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:s,value:n})},Cu=t=>{const e=parseFloat(t);return isNaN(e)?t:e},Sl=t=>{const e=Ht(t)?Number(t):NaN;return isNaN(e)?t:e};let V1;const ku=()=>V1||(V1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),m_="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol",__=mu(m_);function ms(t){if(Ie(t)){const e={};for(let n=0;n<t.length;n++){const s=t[n],r=Ht(s)?x_(s):ms(s);if(r)for(const i in r)e[i]=r[i]}return e}else if(Ht(t)||bt(t))return t}const y_=/;(?![^(]*\))/g,b_=/:([^]+)/,w_=/\/\*[^]*?\*\//g;function x_(t){const e={};return t.replace(w_,"").split(y_).forEach(n=>{if(n){const s=n.split(b_);s.length>1&&(e[s[0].trim()]=s[1].trim())}}),e}function Qe(t){let e="";if(Ht(t))e=t;else if(Ie(t))for(let n=0;n<t.length;n++){const s=Qe(t[n]);s&&(e+=s+" ")}else if(bt(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}function dV(t){if(!t)return null;let{class:e,style:n}=t;return e&&!Ht(e)&&(t.class=Qe(e)),n&&(t.style=ms(n)),t}const C_="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",k_=mu(C_);function W0(t){return!!t||t===""}function S_(t,e){if(t.length!==e.length)return!1;let n=!0;for(let s=0;n&&s<t.length;s++)n=lr(t[s],e[s]);return n}function lr(t,e){if(t===e)return!0;let n=R1(t),s=R1(e);if(n||s)return n&&s?t.getTime()===e.getTime():!1;if(n=Jn(t),s=Jn(e),n||s)return t===e;if(n=Ie(t),s=Ie(e),n||s)return n&&s?S_(t,e):!1;if(n=bt(t),s=bt(e),n||s){if(!n||!s)return!1;const r=Object.keys(t).length,i=Object.keys(e).length;if(r!==i)return!1;for(const o in t){const a=t.hasOwnProperty(o),l=e.hasOwnProperty(o);if(a&&!l||!a&&l||!lr(t[o],e[o]))return!1}}return String(t)===String(e)}function Su(t,e){return t.findIndex(n=>lr(n,e))}const G0=t=>!!(t&&t.__v_isRef===!0),ce=t=>Ht(t)?t:t==null?"":Ie(t)||bt(t)&&(t.toString===z0||!Ge(t.toString))?G0(t)?ce(t.value):JSON.stringify(t,Z0,2):String(t),Z0=(t,e)=>G0(e)?Z0(t,e.value):Gi(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[s,r],i)=>(n[cc(s,i)+" =>"]=r,n),{})}:fi(e)?{[`Set(${e.size})`]:[...e.values()].map(n=>cc(n))}:Jn(e)?cc(e):bt(e)&&!Ie(e)&&!yu(e)?String(e):e,cc=(t,e="")=>{var n;return Jn(t)?`Symbol(${(n=t.description)!=null?n:e})`:t};function E_(t){return t==null?"initial":typeof t=="string"?t===""?" ":t:String(t)}/** 6* @vue/reactivity v3.5.32 7* (c) 2018-present Yuxi (Evan) You and Vue contributors 8* @license MIT 9**/let xn;class K0{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=xn,!e&&xn&&(this.index=(xn.scopes||(xn.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,n;if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].pause();for(e=0,n=this.effects.length;e<n;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,n;if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].resume();for(e=0,n=this.effects.length;e<n;e++)this.effects[e].resume()}}run(e){if(this._active){const n=xn;try{return xn=this,e()}finally{xn=n}}}on(){++this._on===1&&(this.prevScope=xn,xn=this)}off(){this._on>0&&--this._on===0&&(xn=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function Y0(t){return new K0(t)}function Af(){return xn}function X0(t,e=!1){xn&&xn.cleanups.push(t)}let Vt;const dc=new WeakSet;class El{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,xn&&xn.active&&xn.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,dc.has(this)&&(dc.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Q0(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,I1(this),eg(this);const e=Vt,n=fs;Vt=this,fs=!0;try{return this.fn()}finally{tg(this),Vt=e,fs=n,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)Mf(e);this.deps=this.depsTail=void 0,I1(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?dc.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){id(this)&&this.run()}get dirty(){return id(this)}}let J0=0,Go,Zo;function Q0(t,e=!1){if(t.flags|=8,e){t.next=Zo,Zo=t;return}t.next=Go,Go=t}function Lf(){J0++}function Tf(){if(--J0>0)return;if(Zo){let e=Zo;for(Zo=void 0;e;){const n=e.next;e.next=void 0,e.flags&=-9,e=n}}let t;for(;Go;){let e=Go;for(Go=void 0;e;){const n=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(s){t||(t=s)}e=n}}if(t)throw t}function eg(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function tg(t){let e,n=t.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),Mf(s),A_(s)):e=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}t.deps=e,t.depsTail=n}function id(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(ng(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function ng(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===oa)||(t.globalVersion=oa,!t.isSSR&&t.flags&128&&(!t.deps&&!t._dirty||!id(t))))return;t.flags|=2;const e=t.dep,n=Vt,s=fs;Vt=t,fs=!0;try{eg(t);const r=t.fn(t._value);(e.version===0||pn(r,t._value))&&(t.flags|=128,t._value=r,e.version++)}catch(r){throw e.version++,r}finally{Vt=n,fs=s,tg(t),t.flags&=-3}}function Mf(t,e=!1){const{dep:n,prevSub:s,nextSub:r}=t;if(s&&(s.nextSub=r,t.prevSub=void 0),r&&(r.prevSub=s,t.nextSub=void 0),n.subs===t&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Mf(i,!0)}!e&&!--n.sc&&n.map&&n.map.delete(n.key)}function A_(t){const{prevDep:e,nextDep:n}=t;e&&(e.nextDep=n,t.prevDep=void 0),n&&(n.prevDep=e,t.nextDep=void 0)}function fV(t,e){t.effect instanceof El&&(t=t.effect.fn);const n=new El(t);e&&Lt(n,e);try{n.run()}catch(r){throw n.stop(),r}const s=n.run.bind(n);return s.effect=n,s}function hV(t){t.effect.stop()}let fs=!0;const sg=[];function ur(){sg.push(fs),fs=!1}function cr(){const t=sg.pop();fs=t===void 0?!0:t}function I1(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const n=Vt;Vt=void 0;try{e()}finally{Vt=n}}}let oa=0;class L_{constructor(e,n){this.sub=e,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Eu{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!Vt||!fs||Vt===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Vt)n=this.activeLink=new L_(Vt,this),Vt.deps?(n.prevDep=Vt.depsTail,Vt.depsTail.nextDep=n,Vt.depsTail=n):Vt.deps=Vt.depsTail=n,rg(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=Vt.depsTail,n.nextDep=void 0,Vt.depsTail.nextDep=n,Vt.depsTail=n,Vt.deps===n&&(Vt.deps=s)}return n}trigger(e){this.version++,oa++,this.notify(e)}notify(e){Lf();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Tf()}}}function rg(t){if(t.dep.sc++,t.sub.flags&4){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let s=e.deps;s;s=s.nextDep)rg(s)}const n=t.dep.subs;n!==t&&(t.prevSub=n,n&&(n.nextSub=t)),t.dep.subs=t}}const Al=new WeakMap,ei=Symbol(""),od=Symbol(""),aa=Symbol("");function kn(t,e,n){if(fs&&Vt){let s=Al.get(t);s||Al.set(t,s=new Map);let r=s.get(n);r||(s.set(n,r=new Eu),r.map=s,r.key=n),r.track()}}function er(t,e,n,s,r,i){const o=Al.get(t);if(!o){oa++;return}const a=l=>{l&&l.trigger()};
vendor: 10,877 bytes, line 9
9if(Lf(),e==="clear")o.forEach(a);else{const l=Ie(t),u=l&&bu(n);if(l&&n==="length"){const c=Number(s);o.forEach((d,p)=>{(p==="length"||p===aa||!Jn(p)&&p>=c)&&a(d)})}else switch((n!==void 0||o.has(void 0))&&a(o.get(n)),u&&a(o.get(aa)),e){case"add":l?u&&a(o.get("length")):(a(o.get(ei)),Gi(t)&&a(o.get(od)));break;case"delete":l||(a(o.get(ei)),Gi(t)&&a(o.get(od)));break;case"set":Gi(t)&&a(o.get(ei));break}}Tf()}function T_(t,e){const n=Al.get(t);return n&&n.get(e)}function _i(t){const e=at(t);return e===t?e:(kn(e,"iterate",aa),Kn(t)?e:e.map(_s))}function Au(t){return kn(t=at(t),"iterate",aa),t}function Ps(t,e){return dr(t)?hs(t)?io(_s(e)):io(e):_s(e)}const M_={__proto__:null,[Symbol.iterator](){return fc(this,Symbol.iterator,t=>Ps(this,t))},concat(...t){return _i(this).concat(...t.map(e=>Ie(e)?_i(e):e))},entries(){return fc(this,"entries",t=>(t[1]=Ps(this,t[1]),t))},every(t,e){return Us(this,"every",t,e,void 0,arguments)},filter(t,e){return Us(this,"filter",t,e,n=>n.map(s=>Ps(this,s)),arguments)},find(t,e){return Us(this,"find",t,e,n=>Ps(this,n),arguments)},findIndex(t,e){return Us(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return Us(this,"findLast",t,e,n=>Ps(this,n),arguments)},findLastIndex(t,e){return Us(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return Us(this,"forEach",t,e,void 0,arguments)},includes(...t){return hc(this,"includes",t)},indexOf(...t){return hc(this,"indexOf",t)},join(t){return _i(this).join(t)},lastIndexOf(...t){return hc(this,"lastIndexOf",t)},map(t,e){return Us(this,"map",t,e,void 0,arguments)},pop(){return Co(this,"pop")},push(...t){return Co(this,"push",t)},reduce(t,...e){return H1(this,"reduce",t,e)},reduceRight(t,...e){return H1(this,"reduceRight",t,e)},shift(){return Co(this,"shift")},some(t,e){return Us(this,"some",t,e,void 0,arguments)},splice(...t){return Co(this,"splice",t)},toReversed(){return _i(this).toReversed()},toSorted(t){return _i(this).toSorted(t)},toSpliced(...t){return _i(this).toSpliced(...t)},unshift(...t){return Co(this,"unshift",t)},values(){return fc(this,"values",t=>Ps(this,t))}};function fc(t,e,n){const s=Au(t),r=s[e]();return s!==t&&!Kn(t)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.done||(i.value=n(i.value)),i}),r}const O_=Array.prototype;function Us(t,e,n,s,r,i){const o=Au(t),a=o!==t&&!Kn(t),l=o[e];if(l!==O_[e]){const d=l.apply(t,i);return a?_s(d):d}let u=n;o!==t&&(a?u=function(d,p){return n.call(this,Ps(t,d),p,t)}:n.length>2&&(u=function(d,p){return n.call(this,d,p,t)}));const c=l.call(o,u,s);return a&&r?r(c):c}function H1(t,e,n,s){const r=Au(t),i=r!==t&&!Kn(t);let o=n,a=!1;r!==t&&(i?(a=s.length===0,o=function(u,c,d){return a&&(a=!1,u=Ps(t,u)),n.call(this,u,Ps(t,c),d,t)}):n.length>3&&(o=function(u,c,d){return n.call(this,u,c,d,t)}));const l=r[e](o,...s);return a?Ps(t,l):l}function hc(t,e,n){const s=at(t);kn(s,"iterate",aa);const r=s[e](...n);return(r===-1||r===!1)&&Mu(n[0])?(n[0]=at(n[0]),s[e](...n)):r}function Co(t,e,n=[]){ur(),Lf();const s=at(t)[e].apply(t,n);return Tf(),cr(),s}const P_=mu("__proto__,__v_isRef,__isVue"),ig=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Jn));function $_(t){Jn(t)||(t=String(t));const e=at(this);return kn(e,"has",t),e.hasOwnProperty(t)}class og{constructor(e=!1,n=!1){this._isReadonly=e,this._isShallow=n}get(e,n,s){if(n==="__v_skip")return e.__v_skip;const r=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return i;if(n==="__v_raw")return s===(r?i?fg:dg:i?cg:ug).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(s)?e:void 0;const o=Ie(e);if(!r){let l;if(o&&(l=M_[n]))return l;if(n==="hasOwnProperty")return $_}const a=Reflect.get(e,n,Tt(e)?e:s);if((Jn(n)?ig.has(n):P_(n))||(r||kn(e,"get",n),i))return a;if(Tt(a)){const l=o&&bu(n)?a:a.value;return r&&bt(l)?ld(l):l}return bt(a)?r?ld(a):Ds(a):a}}class ag extends og{constructor(e=!1){super(!1,e)}set(e,n,s,r){let i=e[n];const o=Ie(e)&&bu(n);if(!this._isShallow){const u=dr(i);if(!Kn(s)&&!dr(s)&&(i=at(i),s=at(s)),!o&&Tt(i)&&!Tt(s))return u||(i.value=s),!0}const a=o?Number(n)<e.length:yt(e,n),l=Reflect.set(e,n,s,Tt(e)?e:r);return e===at(r)&&(a?pn(s,i)&&er(e,"set",n,s):er(e,"add",n,s)),l}deleteProperty(e,n){const s=yt(e,n);e[n];const r=Reflect.deleteProperty(e,n);return r&&s&&er(e,"delete",n,void 0),r}has(e,n){const s=Reflect.has(e,n);return(!Jn(n)||!ig.has(n))&&kn(e,"has",n),s}ownKeys(e){return kn(e,"iterate",Ie(e)?"length":ei),Reflect.ownKeys(e)}}class lg extends og{constructor(e=!1){super(!0,e)}set(e,n){return!0}deleteProperty(e,n){return!0}}const R_=new ag,V_=new lg,I_=new ag(!0),H_=new lg(!0),ad=t=>t,ja=t=>Reflect.getPrototypeOf(t);function F_(t,e,n){return function(...s){const r=this.__v_raw,i=at(r),o=Gi(i),a=t==="entries"||t===Symbol.iterator&&o,l=t==="keys"&&o,u=r[t](...s),c=n?ad:e?io:_s;return!e&&kn(i,"iterate",l?od:ei),Lt(Object.create(u),{next(){const{value:d,done:p}=u.next();return p?{value:d,done:p}:{value:a?[c(d[0]),c(d[1])]:c(d),done:p}}})}}function Ua(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function D_(t,e){const n={get(r){const i=this.__v_raw,o=at(i),a=at(r);t||(pn(r,a)&&kn(o,"get",r),kn(o,"get",a));const{has:l}=ja(o),u=e?ad:t?io:_s;if(l.call(o,r))return u(i.get(r));if(l.call(o,a))return u(i.get(a));i!==o&&i.get(r)},get size(){const r=this.__v_raw;return!t&&kn(at(r),"iterate",ei),r.size},has(r){const i=this.__v_raw,o=at(i),a=at(r);return t||(pn(r,a)&&kn(o,"has",r),kn(o,"has",a)),r===a?i.has(r):i.has(r)||i.has(a)},forEach(r,i){const o=this,a=o.__v_raw,l=at(a),u=e?ad:t?io:_s;return!t&&kn(l,"iterate",ei),a.forEach((c,d)=>r.call(i,u(c),u(d),o))}};return Lt(n,t?{add:Ua("add"),set:Ua("set"),delete:Ua("delete"),clear:Ua("clear")}:{add(r){const i=at(this),o=ja(i),a=at(r),l=!e&&!Kn(r)&&!dr(r)?a:r;return o.has.call(i,l)||pn(r,l)&&o.has.call(i,r)||pn(a,l)&&o.has.call(i,a)||(i.add(l),er(i,"add",l,l)),this},set(r,i){!e&&!Kn(i)&&!dr(i)&&(i=at(i));const o=at(this),{has:a,get:l}=ja(o);let u=a.call(o,r);u||(r=at(r),u=a.call(o,r));const c=l.call(o,r);return o.set(r,i),u?pn(i,c)&&er(o,"set",r,i):er(o,"add",r,i),this},delete(r){const i=at(this),{has:o,get:a}=ja(i);let l=o.call(i,r);l||(r=at(r),l=o.call(i,r)),a&&a.call(i,r);const u=i.delete(r);return l&&er(i,"delete",r,void 0),u},clear(){const r=at(this),i=r.size!==0,o=r.clear();return i&&er(r,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=F_(r,t,e)}),n}function Lu(t,e){const n=D_(t,e);return(s,r,i)=>r==="__v_isReactive"?!t:r==="__v_isReadonly"?t:r==="__v_raw"?s:Reflect.get(yt(n,r)&&r in s?n:s,r,i)}const B_={get:Lu(!1,!1)},N_={get:Lu(!1,!0)},j_={get:Lu(!0,!1)},U_={get:Lu(!0,!0)},ug=new WeakMap,cg=new WeakMap,dg=new WeakMap,fg=new WeakMap;function z_(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function q_(t){return t.__v_skip||!Object.isExtensible(t)?0:z_(p_(t))}function Ds(t){return dr(t)?t:Tu(t,!1,R_,B_,ug)}function hg(t){return Tu(t,!1,I_,N_,cg)}function ld(t){return Tu(t,!0,V_,j_,dg)}function pV(t){return Tu(t,!0,H_,U_,fg)}function Tu(t,e,n,s,r){if(!bt(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const i=q_(t);if(i===0)return t;const o=r.get(t);if(o)return o;const a=new Proxy(t,i===2?s:n);return r.set(t,a),a}function hs(t){return dr(t)?hs(t.__v_raw):!!(t&&t.__v_isReactive)}function dr(t){return!!(t&&t.__v_isReadonly)}function Kn(t){return!!(t&&t.__v_isShallow)}function Mu(t){return t?!!t.__v_raw:!1}function at(t){const e=t&&t.__v_raw;return e?at(e):t}function Of(t){return!yt(t,"__v_skip")&&Object.isExtensible(t)&&q0(t,"__v_skip",!0),t}const _s=t=>bt(t)?Ds(t):t,io=t=>bt(t)?ld(t):t;function Tt(t){return t?t.__v_isRef===!0:!1}function ae(t){return gg(t,!1)}function pg(t){return gg(t,!0)}function gg(t,e){return Tt(t)?t:new W_(t,e)}class W_{constructor(e,n){this.dep=new Eu,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?e:at(e),this._value=n?e:_s(e),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(e){const n=this._rawValue,s=this.__v_isShallow||Kn(e)||dr(e);e=s?e:at(e),pn(e,n)&&(this._rawValue=e,this._value=s?e:_s(e),this.dep.trigger())}}function gV(t){t.dep&&t.dep.trigger()}function y(t){return Tt(t)?t.value:t}function G_(t){return Ge(t)?t():y(t)}const Z_={get:(t,e,n)=>e==="__v_raw"?t:y(Reflect.get(t,e,n)),set:(t,e,n,s)=>{const r=t[e];return Tt(r)&&!Tt(n)?(r.value=n,!0):Reflect.set(t,e,n,s)}};function vg(t){return hs(t)?t:new Proxy(t,Z_)}class K_{constructor(e){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Eu,{get:s,set:r}=e(n.track.bind(n),n.trigger.bind(n));this._get=s,this._set=r}get value(){return this._value=this._get()}set value(e){this._set(e)}}function Y_(t){return new K_(t)}function X_(t){const e=Ie(t)?new Array(t.length):{};for(const n in t)e[n]=mg(t,n);return e}class J_{constructor(e,n,s){this._object=e,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0,this._key=Jn(n)?n:String(n),this._raw=at(e);let r=!0,i=e;if(!Ie(e)||Jn(this._key)||!bu(this._key))do r=!Mu(i)||Kn(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let e=this._object[this._key];return this._shallow&&(e=y(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&Tt(this._raw[this._key])){const n=this._object[this._key];if(Tt(n)){n.value=e;return}}this._object[this._key]=e}get dep(){return T_(this._raw,this._key)}}class Q_{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function ey(t,e,n){return Tt(t)?t:Ge(t)?new Q_(t):bt(t)&&arguments.length>1?mg(t,e,n):ae(t)}function mg(t,e,n){return new J_(t,e,n)}class ty{constructor(e,n,s){this.fn=e,this.setter=n,this._value=void 0,this.dep=new Eu(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=oa-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&Vt!==this)return Q0(this,!0),!0}get value(){const e=this.dep.track();return ng(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function ny(t,e,n=!1){let s,r;return Ge(t)?s=t:(s=t.get,r=t.set),new ty(s,r,n)}const vV={GET:"get",HAS:"has",ITERATE:"iterate"},mV={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},za={},Ll=new WeakMap;let Er;function _V(){return Er}function sy(t,e=!1,n=Er){if(n){let s=Ll.get(n);s||Ll.set(n,s=[]),s.push(t)}}function ry(t,e,n=lt){const{immediate:s,deep:r,once:i,scheduler:o,augmentJob:a,call:l}=n,u=m=>r?m:Kn(m)||r===!1||r===0?tr(m,1):tr(m);let c,d,p,g,v=!1,b=!1;if(Tt(t)?(d=()=>t.value,v=Kn(t)):hs(t)?(d=()=>u(t),v=!0):Ie(t)?(b=!0,v=t.some(m=>hs(m)||Kn(m)),d=()=>t.map(m=>{if(Tt(m))return m.value;if(hs(m))return u(m);if(Ge(m))return l?l(m,2):m()})):Ge(t)?e?d=l?()=>l(t,2):t:d=()=>
vendor: 1,305 bytes, lines 9-12
9{if(p){ur();try{p()}finally{cr()}}const m=Er;Er=c;try{return l?l(t,3,[g]):t(g)}finally{Er=m}}:d=Zn,e&&r){const m=d,x=r===!0?1/0:r;d=()=>tr(m(),x)}const k=Af(),L=()=>{c.stop(),k&&k.active&&Sf(k.effects,c)};if(i&&e){const m=e;e=(...x)=>{m(...x),L()}}let E=b?new Array(t.length).fill(za):za;const _=m=>{if(!(!(c.flags&1)||!c.dirty&&!m))if(e){const x=c.run();if(r||v||(b?x.some((A,h)=>pn(A,E[h])):pn(x,E))){p&&p();const A=Er;Er=c;try{const h=[x,E===za?void 0:b&&E[0]===za?[]:E,g];E=x,l?l(e,3,h):e(...h)}finally{Er=A}}}else c.run()};return a&&a(_),c=new El(d),c.scheduler=o?()=>o(_,!1):_,g=m=>sy(m,!1,c),p=c.onStop=()=>{const m=Ll.get(c);if(m){if(l)l(m,4);else for(const x of m)x();Ll.delete(c)}},e?s?_(!0):E=c.run():o?o(_.bind(null,!0),!0):c.run(),L.pause=c.pause.bind(c),L.resume=c.resume.bind(c),L.stop=L,L}function tr(t,e=1/0,n){if(e<=0||!bt(t)||t.__v_skip||(n=n||new Map,(n.get(t)||0)>=e))return t;if(n.set(t,e),e--,Tt(t))tr(t.value,e,n);else if(Ie(t))for(let s=0;s<t.length;s++)tr(t[s],e,n);else if(fi(t)||Gi(t))t.forEach(s=>{tr(s,e,n)});else if(yu(t)){for(const s in t)tr(t[s],e,n);for(const s of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,s)&&tr(t[s],e,n)}return t}/** 10* @vue/runtime-core v3.5.32 11* (c) 2018-present Yuxi (Evan) You and Vue contributors 12* @license MIT
13**/const _g=[];function iy(t){_g.push(t)}function oy(){_g.pop()}function yV(t,e){}const bV={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},ay={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",[0]:"setup function",[1]:"render function",[2]:"watcher getter",[3]:"watcher callback",[4]:"watcher cleanup function",[5]:"native event handler",[6]:"component event handler",[7]:"vnode hook",[8]:"directive hook",[9]:"transition hook",[10]:"app errorHandler",[11]:"app warnHandler",[12]:"ref function",[13]:"async component loader",[14]:"scheduler flush",[15]:"component update",[16]:"app unmount cleanup function"};function Ea(t,e,n,s){try{return s?t(...s):t()}catch(r){yo(r,e,n)}}function ys(t,e,n,s){if(Ge(t)){const r=Ea(t,e,n,s);return r&&Ef(r)&&r.catch(i=>{yo(i,e,n)}),r}if(Ie(t)){const r=[];for(let i=0;i<t.length;i++)r.push(ys(t[i],e,n,s));return r}}function yo(t,e,n,s=!0){const r=e?e.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=e&&e.appContext.config||lt;if(e){let a=e.parent;const l=e.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const c=a.ec;if(c){for(let d=0;d<c.length;d++)if(c[d](t,l,u)===!1)return}a=a.parent}if(i){ur(),Ea(i,null,10,[t,l,u]),cr();return}}ly(t,n,r,s,o)}function ly(t,e,n,s=!0,r=!1){if(r)throw t;console.error(t)}const Vn=[];let As=-1;const Ki=[];let Ar=null,Oi=0;const yg=Promise.resolve();let Tl=null;function Hr(t){const e=Tl||yg;return t?e.then(this?t.bind(this):t):e}function uy(t){let e=As+1,n=Vn.length;for(;e<n;){const s=e+n>>>1,r=Vn[s],i=la(r);i<t||i===t&&r.flags&2?e=s+1:n=s}return e}function Pf(t){if(!(t.flags&1)){const e=la(t),n=Vn[Vn.length-1];!n||!(t.flags&2)&&e>=la(n)?Vn.push(t):Vn.splice(uy(e),0,t),t.flags|=1,bg()}}function bg(){Tl||(Tl=yg.then(wg))}function Ml(t){Ie(t)?Ki.push(...t):Ar&&t.id===-1?Ar.splice(Oi+1,0,t):t.flags&1||(Ki.push(t),t.flags|=1),bg()}function F1(t,e,n=As+1){for(;n<Vn.length;n++){const s=Vn[n];if(s&&s.flags&2){if(t&&s.id!==t.uid)continue;Vn.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function Ol(t){if(Ki.length){const e=[...new Set(Ki)].sort((n,s)=>la(n)-la(s));if(Ki.length=0,Ar){Ar.push(...e);return}for(Ar=e,Oi=0;Oi<Ar.length;Oi++){const n=Ar[Oi];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Ar=null,Oi=0}}const la=t=>t.id==null?t.flags&2?-1:1/0:t.id;function wg(t){const e=Zn;try{for(As=0;As<Vn.length;As++){const n=Vn[As];n&&!(n.flags&8)&&(n.flags&4&&(n.flags&=-2),Ea(n,n.i,n.i?15:14),n.flags&4||(n.flags&=-2))}}finally{for(;As<Vn.length;As++){const n=Vn[As];n&&(n.flags&=-2)}As=-1,Vn.length=0,Ol(),Tl=null,(Vn.length||Ki.length)&&wg()}}let Pi,qa=[];function xg(t,e){var n,s;Pi=t,Pi?(Pi.enabled=!0,qa.forEach(({event:r,args:i})=>Pi.emit(r,...i)),qa=[]):typeof window<"u"&&window.HTMLElement&&!((s=(n=window.navigator)==null?void 0:n.userAgent)!=null&&s.includes("jsdom"))?((e.__VUE_DEVTOOLS_HOOK_REPLAY__=e.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(i=>{xg(i,e)}),setTimeout(()=>{Pi||(e.__VUE_DEVTOOLS_HOOK_REPLAY__=null,qa=[])},3e3)):qa=[]}let vn=null,Ou=null;function ua(t){const e=vn;return vn=t,Ou=t&&t.type.__scopeId||null,e}function wV(t){Ou=t}function xV(){Ou=null}const CV=t=>V;function V(t,e=vn,n){if(!e||t._n)return t;const s=(...r)=>{s._d&&Il(-1);const i=ua(e);let o;try{o=t(...r)}finally{ua(i),s._d&&Il(1)}return o};return s._n=!0,s._c=!0,s._d=!0,s}function vt(t,e){if(vn===null)return t;const n=Ma(vn),s=t.dirs||(t.dirs=[]);for(let r=0;r<e.length;r++){let[i,o,a,l=lt]=e[r];i&&(Ge(i)&&(i={mounted:i,updated:i}),i.deep&&tr(o),s.push({dir:i,instance:n,value:o,oldValue:void 0,arg:a,modifiers:l}))}return t}function Ls(t,e,n,s){const r=t.dirs,i=e&&e.dirs;for(let o=0;o<r.length;o++){const a=r[o];i&&(a.oldValue=i[o].value);let l=a.dir[s];l&&(ur(),ys(l,n,8,[t.el,a,t,e]),cr())}}function fl(t,e){if(gn){let n=gn.provides;const s=gn.parent&&gn.parent.provides;s===n&&(n=gn.provides=Object.create(s)),n[t]=e}}function Hn(t,e,n=!1){const s=En();if(s||ti){let r=ti?ti._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(r&&t in r)return r[t];if(arguments.length>1)return n&&Ge(e)?e.call(s&&s.proxy):e}}function Cg(){return!!(En()||ti)}const cy=Symbol.for("v-scx"),dy=()=>Hn(cy);function fy(t,e){return Aa(t,null,e)}function kV(t,e){return Aa(t,null,{flush:"post"})}function hy(t,e){return Aa(t,null,{flush:"sync"})}function ct(t,e,n){return Aa(t,e,n)}function Aa(t,e,n=lt){const{immediate:s,deep:r,flush:i,once:o}=n,a=Lt({}
13,n),l=e&&s||!e&&i!=="post";let u;if(li){if(i==="sync"){const g=dy();u=g.__watcherHandles||(g.__watcherHandles=[])}else if(!l){const g=()=>{};return g.stop=Zn,g.resume=Zn,g.pause=Zn,g}}const c=gn;a.call=(g,v,b)=>ys(g,c,v,b);let d=!1;i==="post"?a.scheduler=g=>{Yt(g,c&&c.suspense)}:i!=="sync"&&(d=!0,a.scheduler=(g,v)=>{v?g():Pf(g)}),a.augmentJob=g=>{e&&(g.flags|=4),d&&(g.flags|=2,c&&(g.id=c.uid,g.i=c))};const p=ry(t,e,a);return li&&(u?u.push(p):l&&p()),p}function py(t,e,n){const s=this.proxy,r=Ht(t)?t.includes(".")?kg(s,t):()=>s[t]:t.bind(s,s);let i;Ge(e)?i=e:(i=e.handler,n=e);const o=bo(this),a=Aa(r,i.bind(s),n);return o(),a}function kg(t,e){const n=e.split(".");return()=>{let s=t;for(let r=0;r<n.length&&s;r++)s=s[n[r]];return s}}const Br=new WeakMap,Sg=Symbol("_vte"),Eg=t=>t.__isTeleport,Kr=t=>t&&(t.disabled||t.disabled===""),gy=t=>t&&(t.defer||t.defer===""),D1=t=>typeof SVGElement<"u"&&t instanceof SVGElement,B1=t=>typeof MathMLElement=="function"&&t instanceof MathMLElement,ud=(t,e)=>{const n=t&&t.to;return Ht(n)?e?e(n):null:n},vy={name:"Teleport",__isTeleport:!0,process(t,e,n,s,r,i,o,a,l,u){const{mc:c,pc:d,pbc:p,o:{insert:g,querySelector:v,createText:b,createComment:k}}=u,L=Kr(e.props);let{dynamicChildren:E}=e;const _=(A,h,S)=>{A.shapeFlag&16&&c(A.children,h,S,r,i,o,a,l)},m=(A=e)=>{const h=Kr(A.props),S=A.target=ud(A.props,v),$=cd(S,A,b,g);S&&(o!=="svg"&&D1(S)?o="svg":o!=="mathml"&&B1(S)&&(o="mathml"),r&&r.isCE&&(r.ce._teleportTargets||(r.ce._teleportTargets=new Set)).add(S),h||(_(A,S,$),Fo(A,!1)))},x=A=>{const h=()=>{Br.get(A)===h&&(Br.delete(A),Kr(A.props)&&(_(A,n,A.anchor),Fo(A,!0)),m(A))};Br.set(A,h),Yt(h,i)};if(t==null){const A=e.el=b(""),h=e.anchor=b("");if(g(A,n,s),g(h,n,s),gy(e.props)||i&&i.pendingBranch){x(e);return}L&&(_(e,n,h),Fo(e,!0)),m()}else{e.el=t.el;const A=e.anchor=t.anchor,h=Br.get(t);if(h){h.flags|=8,Br.delete(t),x(e);return}e.targetStart=t.targetStart;const S=e.target=t.target,$=e.targetAnchor=t.targetAnchor,R=Kr(t.props),G=R?n:S,H=R?A:$;if(o==="svg"||D1(S)?o="svg":(o==="mathml"||B1(S))&&(o="mathml"),E?(p(t.dynamicChildren,E,G,r,i,o,a),zf(t,e,!0)):l||d(t,e,G,H,r,i,o,a,!1),L)R?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):Wa(e,n,A,u,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const ee=e.target=ud(e.props,v);ee&&Wa(e,ee,null,u,0)}else R&&Wa(e,S,$,u,1);Fo(e,L)}},remove(t,e,n,{um:s,o:{remove:r}},i){const{shapeFlag:o,children:a,anchor:l,targetStart:u,targetAnchor:c,target:d,props:p}=t;let g=i||!Kr(p);const v=Br.get(t);if(v&&(v.flags|=8,Br.delete(t),g=!1),d&&(r(u),r(c)),i&&r(l),o&16)for(let b=0;b<a.length;b++){const k=a[b];s(k,e,n,g,!!k.dynamicChildren)}},move:Wa,hydrate:my};function Wa(t,e,n,{o:{insert:s},m:r},i=2){i===0&&s(t.targetAnchor,e,n);const{el:o,anchor:a,shapeFlag:l,children:u,props:c}=t,d=i===2;if(d&&s(o,e,n),(!d||Kr(c))&&l&16)for(let p=0;p<u.length;p++)r(u[p],e,n,2);d&&s(a,e,n)}function my(t,e,n,s,r,i,{o:{nextSibling:o,parentNode:a,querySelector:l,insert:u,createText:c}},d){function p(k,L){let E=L;for(;E;){if(E&&E.nodeType===8){if(E.data==="teleport start anchor")e.targetStart=E;else if(E.data==="teleport anchor"){e.targetAnchor=E,k._lpa=e.targetAnchor&&o(e.targetAnchor);break}}E=o(E)}}function g(k,L){L.anchor=d(o(k),L,a(k),n,s,r,i)}const v=e.target=ud(e.props,l),b=Kr(e.props);if(v){const k=v._lpa||v.firstChild;e.shapeFlag&16&&(b?(g(t,e),p(v,k),e.targetAnchor||cd(v,e,c,u,a(t)===v?t:null)):(e.anchor=o(t),p(v,k),e.targetAnchor||cd(v,e,c,u),d(k&&o(k),e,v,n,s,r,i))),Fo(e,b)}else b&&e.shapeFlag&16&&(g(t,e),e.targetStart=t,e.targetAnchor=o(t));return e.anchor&&o(e.anchor)}const $f=vy;function Fo(t,e){const n=t.ctx;if(n&&n.ut){let s,r;for(e?(s=t.el,r=t.anchor):(s=t.targetStart,r=t.targetAnchor);s&&s!==r;)s.nodeType===1&&s.setAttribute("data-v-owner",n.uid),s=s.nextSibling;n.ut()}}function cd(t,e,n,s,r=null){const i=e.targetStart=n(""),o=e.targetAnchor=n("");return i[Sg]=o,t&&(s(i,t,r),s(o,t,r)),o}const Ts=Symbol("_leaveCb"),ko=Symbol("_enterCb");function Ag(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return zn(()=>{t.isMounted=!0}),Ta(()=>{t.isUnmounting=!0}),t}const Qn=[Function,Array],Lg={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Qn,onEnter:Qn,onAfterEnter:Qn,onEnterCancelled:Qn,onBeforeLeave:Qn,onLeave:Qn,onAfterLeave:Qn,onLeaveCancelled:Qn,onBeforeAppear:Qn,onAppear:Qn,onAfterAppear:Qn,onAppearCancelled:Qn},Tg=t=>{const e=t.subTree;return e.component?Tg(e.component):e},_y={name:"BaseTransition",props:Lg,setup(t,{slots:e}){const n=En(),s=Ag();return()=>{const r=e.default&&Rf(e.default(),!0);if(!r||!r.length)return;const i=Mg(r),o=at(t),{mode:a}=o;if(s.isLeaving)return pc(i);const l=N1(i);if(!l)return pc(i);let u=ca(l,o,s,n,d=>u=d);l.type!==Qt&&$r(l,u);let c=n.subTree&&N1(n.subTree);if(c&&c.type!==Qt&&!cs(c,l)&&Tg(n).type!==Qt){let d=ca(c,o,s,n);if($r(c,d),a==="out-in"&&l.type!==Qt)return s.isLeaving=!0,d.afterLeave=()=>{s.isLeaving=!1,n.job.flags&8||n.update(),delete d.afterLeave,c=void 0},pc(i);a==="in-out"&&l.type!==Qt?d.delayLeave=(p,g,v)=>{const b=Og(s,c);b[String(c.key)]=c,p[Ts]=()=>{g(),p[Ts]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{v(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return i}}};function Mg(t){let e=t[0];if(t.length>1){for(const n of t)if(n.type!==Qt){e=n;break}}return e}const yy=_y;
13function Og(t,e){const{leavingVNodes:n}=t;let s=n.get(e.type);return s||(s=Object.create(null),n.set(e.type,s)),s}function ca(t,e,n,s,r){const{appear:i,mode:o,persisted:a=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:p,onLeave:g,onAfterLeave:v,onLeaveCancelled:b,onBeforeAppear:k,onAppear:L,onAfterAppear:E,onAppearCancelled:_}=e,m=String(t.key),x=Og(n,t),A=($,R)=>{$&&ys($,s,9,R)},h=($,R)=>{const G=R[1];A($,R),Ie($)?$.every(H=>H.length<=1)&&G():$.length<=1&&G()},S={mode:o,persisted:a,beforeEnter($){let R=l;if(!n.isMounted)if(i)R=k||l;else return;$[Ts]&&$[Ts](!0);const G=x[m];G&&cs(t,G)&&G.el[Ts]&&G.el[Ts](),A(R,[$])},enter($){if(x[m]===t)return;let R=u,G=c,H=d;if(!n.isMounted)if(i)R=L||u,G=E||c,H=_||d;else return;let ee=!1;$[ko]=le=>{ee||(ee=!0,le?A(H,[$]):A(G,[$]),S.delayedLeave&&S.delayedLeave(),$[ko]=void 0)};const j=$[ko].bind(null,!1);R?h(R,[$,j]):j()},leave($,R){const G=String(t.key);if($[ko]&&$[ko](!0),n.isUnmounting)return R();A(p,[$]);let H=!1;$[Ts]=j=>{H||(H=!0,R(),j?A(b,[$]):A(v,[$]),$[Ts]=void 0,x[G]===t&&delete x[G])};const ee=$[Ts].bind(null,!1);x[G]=t,g?h(g,[$,ee]):ee()},clone($){const R=ca($,e,n,s,r);return r&&r(R),R}};return S}function pc(t){if(La(t))return t=hr(t),t.children=null,t}function N1(t){if(!La(t))return Eg(t.type)&&t.children?Mg(t.children):t;if(t.component)return t.component.subTree;const{shapeFlag:e,children:n}=t;if(n){if(e&16)return n[0];if(e&32&&Ge(n.default))return n.default()}}function $r(t,e){t.shapeFlag&6&&t.component?(t.transition=e,$r(t.component.subTree,e)):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function Rf(t,e=!1,n){let s=[],r=0;for(let i=0;i<t.length;i++){let o=t[i];const a=n==null?o.key:String(n)+String(o.key!=null?o.key:i);o.type===Ve?(o.patchFlag&128&&r++,s=s.concat(Rf(o.children,e,a))):(e||o.type!==Qt)&&s.push(a!=null?hr(o,{key:a}):o)}if(r>1)for(let i=0;i<s.length;i++)s[i].patchFlag=-2;return s}function Ze(t,e){return Ge(t)?(()=>Lt({name:t.name},e,{setup:t}))():t}function SV(){const t=En();return t?(t.appContext.config.idPrefix||"v")+"-"+t.ids[0]+t.ids[1]++:""}function Vf(t){t.ids=[t.ids[0]+t.ids[2]+++"-",0,0]}function EV(t){const e=En(),n=pg(null);if(e){const r=e.refs===lt?e.refs={}:e.refs;Object.defineProperty(r,t,{enumerable:!0,get:()=>n.value,set:i=>n.value=i})}return n}function j1(t,e){let n;return!!((n=Object.getOwnPropertyDescriptor(t,e))&&!n.configurable)}const Pl=new WeakMap;function Yi(t,e,n,s,r=!1){if(Ie(t)){t.forEach((b,k)=>Yi(b,e&&(Ie(e)?e[k]:e),n,s,r));return}if(or(s)&&!r){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&Yi(t,e,n,s.component.subTree);return}const i=s.shapeFlag&4?Ma(s.component):s.el,o=r?null:i,{i:a,r:l}=t,u=e&&e.r,c=a.refs===lt?a.refs={}:a.refs,d=a.setupState,p=at(d),g=d===lt?U0:b=>j1(c,b)?!1:yt(p,b),v=(b,k)=>!(k&&j1(c,k));if(u!=null&&u!==l){if(U1(e),Ht(u))c[u]=null,g(u)&&(d[u]=null);else if(Tt(u)){const b=e;v(u,b.k)&&(u.value=null),b.k&&(c[b.k]=null)}}if(Ge(l))Ea(l,a,12,[o,c]);else{const b=Ht(l),k=Tt(l);if(b||k){const L=()=>
vendor: 12,669 bytes, lines 13-15
13{if(t.f){const E=b?g(l)?d[l]:c[l]:v()||!t.k?l.value:c[t.k];if(r)Ie(E)&&Sf(E,i);else if(Ie(E))E.includes(i)||E.push(i);else if(b)c[l]=[i],g(l)&&(d[l]=c[l]);else{const _=[i];v(l,t.k)&&(l.value=_),t.k&&(c[t.k]=_)}}else b?(c[l]=o,g(l)&&(d[l]=o)):k&&(v(l,t.k)&&(l.value=o),t.k&&(c[t.k]=o))};if(o){const E=()=>{L(),Pl.delete(t)};E.id=-1,Pl.set(t,E),Yt(E,n)}else U1(t),L()}}}function U1(t){const e=Pl.get(t);e&&(e.flags|=8,Pl.delete(t))}let z1=!1;const yi=()=>{z1||(console.error("Hydration completed but contains mismatches."),z1=!0)},by=t=>t.namespaceURI.includes("svg")&&t.tagName!=="foreignObject",wy=t=>t.namespaceURI.includes("MathML"),Ga=t=>{if(t.nodeType===1){if(by(t))return"svg";if(wy(t))return"mathml"}},Fi=t=>t.nodeType===8;function xy(t){const{mt:e,p:n,o:{patchProp:s,createText:r,nextSibling:i,parentNode:o,remove:a,insert:l,createComment:u}}=t,c=(_,m)=>{if(!m.hasChildNodes()){n(null,_,m),Ol(),m._vnode=_;return}d(m.firstChild,_,null,null,null),Ol(),m._vnode=_},d=(_,m,x,A,h,S=!1)=>{S=S||!!m.dynamicChildren;const $=Fi(_)&&_.data==="[",R=()=>b(_,m,x,A,h,$),{type:G,ref:H,shapeFlag:ee,patchFlag:j}=m;let le=_.nodeType;m.el=_,j===-2&&(S=!1,m.dynamicChildren=null);let X=null;switch(G){case ni:le!==3?m.children===""?(l(m.el=r(""),o(_),_),X=_):X=R():(_.data!==m.children&&(yi(),_.data=m.children),X=i(_));break;case Qt:E(_)?(X=i(_),L(m.el=_.content.firstChild,_,x)):le!==8||$?X=R():X=i(_);break;case Ji:if($&&(_=i(_),le=_.nodeType),le===1||le===3){X=_;const re=!m.children.length;for(let ne=0;ne<m.staticCount;ne++)re&&(m.children+=X.nodeType===1?X.outerHTML:X.data),ne===m.staticCount-1&&(m.anchor=X),X=i(X);return $?i(X):X}else R();break;case Ve:$?X=v(_,m,x,A,h,S):X=R();break;default:if(ee&1)(le!==1||m.type.toLowerCase()!==_.tagName.toLowerCase())&&!E(_)?X=R():X=p(_,m,x,A,h,S);else if(ee&6){m.slotScopeIds=h;const re=o(_);if($?X=k(_):Fi(_)&&_.data==="teleport start"?X=k(_,_.data,"teleport end"):X=i(_),e(m,re,null,x,A,Ga(re),S),or(m)&&!m.type.__asyncResolved){let ne;$?(ne=T(Ve),ne.anchor=X?X.previousSibling:re.lastChild):ne=_.nodeType===3?N(""):T("div"),ne.el=_,m.component.subTree=ne}}else ee&64?le!==8?X=R():X=m.type.hydrate(_,m,x,A,h,S,t,g):ee&128&&(X=m.type.hydrate(_,m,x,A,Ga(o(_)),h,S,t,d))}return H!=null&&Yi(H,null,A,m),X},p=(_,m,x,A,h,S)=>{S=S||!!m.dynamicChildren;const{type:$,props:R,patchFlag:G,shapeFlag:H,dirs:ee,transition:j}=m,le=$==="input"||$==="option";if(le||G!==-1){ee&&Ls(m,null,x,"created");let X=!1;if(E(_)){X=Yg(null,j)&&x&&x.vnode.props&&x.vnode.props.appear;const ne=_.content.firstChild;if(X){const De=ne.getAttribute("class");De&&(ne.$cls=De),j.beforeEnter(ne)}L(ne,_,x),m.el=_=ne}if(H&16&&!(R&&(R.innerHTML||R.textContent))){let ne=g(_.firstChild,m,_,x,A,h,S);for(;ne;){Za(_,1)||yi();const De=ne;ne=ne.nextSibling,a(De)}}else if(H&8){let ne=m.children;ne[0]===` 14`&&(_.tagName==="PRE"||_.tagName==="TEXTAREA")&&(ne=ne.slice(1));const{textContent:De}=_;De!==ne&&De!==ne.replace(/\r\n|\r/g,` 15`)&&(Za(_,0)||yi(),_.textContent=m.children)}if(R){if(le||!S||G&48){const ne=_.tagName.includes("-");for(const De in R)(le&&(De.endsWith("value")||De==="indeterminate")||Sa(De)&&!Qr(De)||De[0]==="."||ne&&!Qr(De))&&s(_,De,null,R[De],void 0,x)}else if(R.onClick)s(_,"onClick",null,R.onClick,void 0,x);else if(G&4&&hs(R.style))for(const ne in R.style)R.style[ne]}let re;(re=R&&R.onVnodeBeforeMount)&&Bn(re,x,m),ee&&Ls(m,null,x,"beforeMount"),((re=R&&R.onVnodeMounted)||ee||X)&&ev(()=>{re&&Bn(re,x,m),X&&j.enter(_),ee&&Ls(m,null,x,"mounted")},A)}return _.nextSibling},g=(_,m,x,A,h,S,$)=>{$=$||!!m.dynamicChildren;const R=m.children,G=R.length;for(let H=0;H<G;H++){const ee=$?R[H]:R[H]=jn(R[H]),j=ee.type===ni;_?(j&&!$&&H+1<G&&jn(R[H+1]).type===ni&&(l(r(_.data.slice(ee.children.length)),x,i(_)),_.data=ee.children),_=d(_,ee,A,h,S,$)):j&&!ee.children?l(ee.el=r(""),x):(Za(x,1)||yi(),n(null,ee,x,null,A,h,Ga(x),S))}return _},v=(_,m,x,A,h,S)=>{const{slotScopeIds:$}=m;$&&(h=h?h.concat($):$);const R=o(_),G=g(i(_),m,R,x,A,h,S);return G&&Fi(G)&&G.data==="]"?i(m.anchor=G):(yi(),l(m.anchor=u("]"),R,G),G)},b=(_,m,x,A,h,S)=>{if(Za(_.parentElement,1)||yi(),m.el=null,S){const G=k(_);for(;;){const H=i(_);if(H&&H!==G)a(H);else break}}const $=i(_),R=o(_);return a(_),n(null,m,R,$,x,A,Ga(R),h),x&&(x.vnode.el=m.el,Vu(x,m.el)),$},k=(_,m="[",x="]")=>{let A=0;for(;_;)if(_=i(_),_&&Fi(_)&&(_.data===m&&A++,_.data===x)){if(A===0)return i(_);A--}return _},L=(_,m,x)=>{const A=m.parentNode;A&&A.replaceChild(_,m);let h=x;for(;h;)h.vnode.el===m&&(h.vnode.el=h.subTree.el=_),h=h.parent},E=_=>_.nodeType===1&&_.tagName==="TEMPLATE";return[c,d]}const q1="data-allow-mismatch",Cy={[0]:"text",[1]:"children",[2]:"class",[3]:"style",[4]:"attribute"};function Za(t,e){if(e===0||e===1)for(;t&&!t.hasAttribute(q1);)t=t.parentElement;const n=t&&t.getAttribute(q1);if(n==null)return!1;if(n==="")return!0;{const s=n.split(",");return e===0&&s.includes("children")?!0:s.includes(Cy[e])}}const ky=ku().requestIdleCallback||(t=>setTimeout(t,1)),Sy=ku().cancelIdleCallback||(t=>clearTimeout(t)),AV=(t=1e4)=>e=>{const n=ky(e,{timeout:t});return()=>Sy(n)};function Ey(t){const{top:e,left:n,bottom:s,right:r}=t.getBoundingClientRect(),{innerHeight:i,innerWidth:o}=window;return(e>0&&e<i||s>0&&s<i)&&(n>0&&n<o||r>0&&r<o)}const LV=t=>(e,n)=>{const s=new IntersectionObserver(r=>{for(const i of r)if(!!i.isIntersecting){s.disconnect(),e();break}},t);return n(r=>{if(r instanceof Element){if(Ey(r))return e(),s.disconnect(),!1;s.observe(r)}}),()=>s.disconnect()},TV=t=>e=>{if(t){const n=matchMedia(t);if(n.matches)e();else return n.addEventListener("change",e,{once:!0}),()=>n.removeEventListener("change",e)}},MV=(t=[])=>(e,n)=>{Ht(t)&&(t=[t]);let s=!1;const r=o=>{s||(s=!0,i(),e(),o.target.dispatchEvent(new o.constructor(o.type,o)))},i=()=>{n(o=>{for(const a of t)o.removeEventListener(a,r)})};return n(o=>{for(const a of t)o.addEventListener(a,r,{once:!0})}),i};function Ay(t,e){if(Fi(t)&&t.data==="["){let n=1,s=t.nextSibling;for(;s;){if(s.nodeType===1){if(e(s)===!1)break}else if(Fi(s))if(s.data==="]"){if(--n===0)break}else s.data==="["&&n++;s=s.nextSibling}}else e(t)}const or=t=>!!t.type.__asyncLoader;function Cn(t){Ge(t)&&(t={loader:t});const{loader:e,loadingComponent:n,errorComponent:s,delay:r=200,hydrate:i,timeout:o,suspensible:a=!0,onError:l}=t;let u=null,c,d=0;const p=()=>(d++,u=null,g()),g=()=>{let v;return u||(v=u=e().catch(b=>{if(b=b instanceof Error?b:new Error(String(b)),l)return new Promise((k,L)=>{l(b,()=>k(p()),()=>L(b),d+1)});throw b}).then(b=>v!==u&&u?u:(b&&(b.__esModule||b[Symbol.toStringTag]==="Module")&&(b=b.default),c=b,b)))};return Ze({name:"AsyncComponentWrapper",__asyncLoader:g,__asyncHydrate(v,b,k){let L=!1;(b.bu||(b.bu=[])).push(()=>L=!0);const E=()=>{L||k()},_=i?()=>{const m=i(E,x=>Ay(v,x));m&&(b.bum||(b.bum=[])).push(m)}:E;c?_():g().then(()=>!b.isUnmounted&&_())},get __asyncResolved(){return c},setup(){const v=gn;if(Vf(v),c)return()=>Ka(c,v);const b=_=>{u=null,yo(_,v,13,!s)};if(a&&v.suspense||li)return g().then(_=>()=>Ka(_,v)).catch(_=>(b(_),()=>s?T(s,{error:_}):null));const k=ae(!1),L=ae(),E=ae(!!r);return r&&setTimeout(()=>{E.value=!1},r),o!=null&&setTimeout(()=>{if(!k.value&&!L.value){const _=new Error(`Async component timed out after ${o}ms.`);b(_),L.value=_}},o),g().then(()=>{k.value=!0,v.parent&&La(v.parent.vnode)&&v.parent.update()}).catch(_=>{b(_),L.value=_}),()=>{if(k.value&&c)return Ka(c,v);if(L.value&&s)return T(s,{error:L.value});if(n&&!E.value)return Ka(n,v)}}})}function Ka(t,e){const{ref:n,props:s,children:r,ce:i}=e.vnode,o=T(t,s,r);return o.ref=n,o.ce=i,delete e.vnode.ce,o}const La=t=>t.type.__isKeepAlive,Ly={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:e}){const n=En(),s=n.ctx;if(!s.renderer)return()=>{const E=e.default&&e.default();return E&&E.length===1?E[0]:E};const r=new Map,i=new Set;let o=null;const a=n.suspense,{renderer:{p:l,m:u,um:c,o:{createElement:d}}}=s,p=d("div");s.activate=(E,_,m,x,A)=>{const h=E.component;u(E,_,m,0,a),l(h.vnode,E,_,m,h,a,x,E.slotScopeIds,A),Yt(()=>{h.isDeactivated=!1,h.a&&Zi(h.a);const S=E.props&&E.props.onVnodeMounted;S&&Bn(S,h.parent,E)},a)},s.deactivate=E=>{const _=E.component;Rl(_.m),Rl(_.a),u(E,p,null,1,a),Yt(()=>{_.da&&Zi(_.da);const m=E.props&&E.props.onVnodeUnmounted;m&&Bn(m,_.parent,E),_.isDeactivated=!0},a)};function g(E){gc(E),c(E,n,a,!0)}function v(E){r.forEach((_,m)=>{const x=yd(or(_)?_.type.__asyncResolved||{}:_.type);x&&!E(x)&&b(m)})}function b(E){const _=r.get(E);_&&(!o||!cs(_,o))?g(_):o&&gc(o),r.delete(E),i.delete(E)}ct(()=>[t.include,t.exclude],([E,_])=>{E&&v(m=>Do(E,m)),_&&v(m=>!Do(_,m))},{flush:"post",deep:!0});let k=null;const L=()=>{k!=null&&(Vl(n.subTree.type)?Yt(()=>{r.set(k,Ya(n.subTree))},n.subTree.suspense):r.set(k,Ya(n.subTree)))};return zn(L),Hf(L),Ta(()=>{r.forEach(E=>{const{subTree:_,suspense:m}=n,x=Ya(_);if(E.type===x.type&&E.key===x.key){gc(x);const A=x.component.da;A&&Yt(A,m);return}g(E)})}),()=>{if(k=null,!e.default)return o=null;const E=e.default(),_=E[0];if(E.length>1)return o=null,E;if(!Rr(_)||!(_.shapeFlag&4)&&!(_.shapeFlag&128))return o=null,_;let m=Ya(_);if(m.type===Qt)return o=null,m;const x=m.type,A=yd(or(m)?m.type.__asyncResolved||{}:x),{include:h,exclude:S,max:$}=t;if(h&&(!A||!Do(h,A))||S&&A&&Do(S,A))return m.shapeFlag&=-257,o=m,_;const R=m.key==null?x:m.key,G=r.get(R);return m.el&&(m=hr(m),_.shapeFlag&128&&(_.ssContent=m)),k=R,G?(m.el=G.el,m.component=G.component,m.transition&&$r(m,m.transition),m.shapeFlag|=512,i.delete(R),i.add(R)):(i.add(R),$&&i.size>parseInt($,10)&&b(i.values().next().value)),m.shapeFlag|=256,o=m,Vl(_.type)?_:m}}},Ty=Ly;function Do(t,e){return Ie(t)?t.some(n=>Do(n,e)):Ht(t)?t.split(",").includes(e):h_(t)?(t.lastIndex=0,t.test(e)):!1}function If(t,e){Pg(t,"a",e)}function Pu(t,e){Pg(t,"da",e)}function Pg(t,e,n=gn){const s=t.__wdc||(t.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return t()});if($u(e,s,n),n){let r=n.parent;for(;r&&r.parent;)La(r.parent.vnode)&&My(s,e,n,r),r=r.parent}}function My(t,e,n,s){const r=$u(e,t,s,!0);Bs(()=>{Sf(s[e],r)},n)}function gc(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function Ya(t){return t.shapeFlag&128?t.ssContent:t}function $u(t,e,n=gn,s=!1){if(n){const r=n[t]||(n[t]=[]),i=e.__weh||(e.__weh=(...o)=>{ur();const a=bo(n),l=ys(e,n,t,o);return a(),cr(),l});return s?r.unshift(i):r.push(i),i}}const gr=t=>(e,n=gn)=>{(!li||t==="sp")&&$u(t,(...s)=>e(...s),n)},Oy=gr("bm"),zn=gr("m"),$g=gr("bu"),Hf=gr("u"),Ta=gr("bum"),Bs=gr("um"),Py=gr("sp"),$y=gr("rtg"),Ry=gr("rtc");function Vy(t,e=gn){$u("ec",t,e)}const Ff="components",Iy="directives";function fr(t,e){return Df(Ff,t,!0,e)||t}const Rg=Symbol.for("v-ndc");function ps(t){return Ht(t)?Df(Ff,t,!1)||t:t||Rg}function Hy(t){return Df(Iy,t)}function Df(t,e,n=!0,s=!1){const r=vn||gn;if(r){const i=r.type;if(t===Ff){const a=yd(i,!1);if(a&&(a===e||a===rn(e)||a===xu(rn(e))))return i}const o=W1(r[t]||i[t],e)||W1(r.appContext[t],e);return!o&&s?i:o}}function W1(t,e){return t&&(t[e]||t[rn(e)]||t[xu(rn(e))])}function Bt(t,e,n,s){let r;const i=n&&n[s],o=Ie(t);if(o||Ht(t)){const a=o&&hs(t);let l=!1,u=!1;a&&(l=!Kn(t),u=dr(t),t=Au(t)),r=new Array(t.length);for(let c=0,d=t.length;c<d;c++)r[c]=e(l?u?io(_s(t[c])):_s(t[c]):t[c],c,void 0,i&&i[c])}else if(typeof t=="number"){r=new Array(t);for(let a=0;a<t;a++)r[a]=e(a+1,a,void 0,i&&i[a])}else if(bt(t))if(t[Symbol.iterator])r=Array.from(t,(a,l)=>e(a,l,void 0,i&&i[l]));else{const a=Object.keys(t);r=new Array(a.length);for(let l=0,u=a.length;l<u;l++){const c=a[l];r[l]=e(t[c],c,l,i&&i[l])}}else r=[];return n&&(n[s]=r),r}function OV(t,e){for(let n=0;n<e.length;n++){const s=e[n];if(Ie(s))for(let r=0;r<s.length;r++)t[s[r].name]=s[r].fn;else s&&(t[s.name]=s.key?(...r)=>{const i=s.fn(...r);return i&&(i.key=s.key),i}:s.fn)}return t}function hi(t,e,n={},s,r){if(vn.ce||vn.parent&&or(vn.parent)&&vn.parent.ce){const u=Object.keys(n).length>0;return e!=="default"&&(n.name=e),w(),pe(Ve,null,[T("slot",n,s&&s())],u?-2:64)}let i=t[e];i&&i._c&&(i._d=!1),w();const o=i&&Bf(i(n)),a=n.key||o&&o.key,l=pe(Ve,{key:(a&&!Jn(a)?a:`_${e}`)+(!o&&s?"_fb":"")},o||(s?s():[]),o&&t._===1?64:-2);return!r&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function Bf(t){return t.some(e=>Rr(e)?!(e.type===Qt||e.type===Ve&&!Bf(e.children)):!0)?t:null}function PV(t,e){const n={};for(const s in t)n[e&&/[A-Z]/.test(s)?`on:${s}`:dl(s)]=t[s];return n}const dd=t=>t?iv(t)?Ma(t):dd(t.parent):null,Ko=Lt(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>dd(t.parent),$root:t=>dd(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>Nf(t),$forceUpdate:t=>
15t.f||(t.f=()=>{Pf(t.update)}),$nextTick:t=>t.n||(t.n=Hr.bind(t.proxy)),$watch:t=>py.bind(t)}),vc=(t,e)=>t!==lt&&!t.__isScriptSetup&&yt(t,e),fd={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:i,accessCache:o,type:a,appContext:l}=t;if(e[0]!=="$"){const p=o[e];if(p!==void 0)switch(p){case 1:return s[e];case 2:return r[e];case 4:return n[e];case 3:return i[e]}else{if(vc(s,e))return o[e]=1,s[e];if(r!==lt&&yt(r,e))return o[e]=2,r[e];if(yt(i,e))return o[e]=3,i[e];if(n!==lt&&yt(n,e))return o[e]=4,n[e];hd&&(o[e]=0)}}const u=Ko[e];let c,d;if(u)return e==="$attrs"&&kn(t.attrs,"get",""),u(t);if((c=a.__cssModules)&&(c=c[e]))return c;if(n!==lt&&yt(n,e))return o[e]=4,n[e];if(d=l.config.globalProperties,yt(d,e))return d[e]},set({_:t},e,n){const{data:s,setupState:r,ctx:i}=t;return vc(r,e)?(r[e]=n,!0):s!==lt&&yt(s,e)?(s[e]=n,!0):yt(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(i[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:s,appContext:r,props:i,type:o}},a){let l;return!!(n[a]||t!==lt&&a[0]!=="$"&&yt(t,a)||vc(e,a)||yt(i,a)||yt(s,a)||yt(Ko,a)||yt(r.config.globalProperties,a)||(l=o.__cssModules)&&l[a])},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:yt(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}},Fy=Lt({},fd,{get(t,e){if(e!==Symbol.unscopables)return fd.get(t,e,t)},has(t,e){return e[0]!=="_"&&!__(e)}});function $V(){return null}function RV(){return null}function VV(t){}function IV(t){}function HV(){return null}function FV(){}function DV(t,e){return null}function BV(){return Vg().slots}function NV(){return Vg().attrs}function Vg(t){const e=En();return e.setupContext||(e.setupContext=lv(e))}function da(t){return Ie(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}function jV(t,e){const n=da(t);for(const s in e){if(s.startsWith("__skip"))continue;let r=n[s];r?Ie(r)||Ge(r)?r=n[s]={type:r,default:e[s]}:r.default=e[s]:r===null&&(r=n[s]={default:e[s]}),r&&e[`__skip_${s}`]&&(r.skipFactory=!0)}return n}function UV(t,e){return!t||!e?t||e:Ie(t)&&Ie(e)?t.concat(e):Lt({},da(t),da(e))}function zV(t,e){const n={};for(const s in t)e.includes(s)||Object.defineProperty(n,s,{enumerable:!0,get:()=>t[s]});return n}function Dy(t){const e=En(),n=li;let s=t();ha(),n&&Qi(!1);const r=()=>{bo(e),n&&Qi(!0)},i=()=>{En()!==e&&e.scope.off(),ha(),n&&Qi(!1)};return Ef(s)&&(s=s.catch(o=>{throw r(),Promise.resolve().then(()=>Promise.resolve().then(i)),o})),[s,()=>{r(),Promise.resolve().then(i)}]}let hd=!0;function By(t){const e=Nf(t),n=t.proxy,s=t.ctx;hd=!1,e.beforeCreate&&G1(e.beforeCreate,t,"bc");const{data:r,computed:i,methods:o,watch:a,provide:l,inject:u,created:c,beforeMount:d,mounted:p,beforeUpdate:g,updated:v,activated:b,deactivated:k,beforeDestroy:L,beforeUnmount:E,destroyed:_,unmounted:m,render:x,renderTracked:A,renderTriggered:h,errorCaptured:S,serverPrefetch:$,expose:R,inheritAttrs:G,components:H,directives:ee,filters:j}=e;if(u&&Ny(u,s,null),o)for(const re in o){const ne=o[re];Ge(ne)&&(s[re]=ne.bind(n))}if(r){const re=r.call(n,n);bt(re)&&(t.data=Ds(re))}if(hd=!0,i)for(const re in i){const ne=i[re],De=Ge(ne)?ne.bind(n,n):Ge(ne.get)?ne.get.bind(n,n):Zn,ot=!Ge(ne)&&Ge(ne.set)?ne.set.bind(n):Zn,nt=Ne({get:De,set:ot});Object.defineProperty(s,re,{enumerable:!0,configurable:!0,get:()=>nt.value,set:ye=>nt.value=ye})}if(a)for(const re in a)Ig(a[re],s,n,re);if(l){const re=Ge(l)?l.call(n):l;Reflect.ownKeys(re).forEach(ne=>{fl(ne,re[ne])})}c&&G1(c,t,"c");function X(re,ne){Ie(ne)?ne.forEach(De=>re(De.bind(n))):ne&&re(ne.bind(n))}if(X(Oy,d),X(zn,p),X($g,g),X(Hf,v),X(If,b),X(Pu,k),X(Vy,S),X(Ry,A),X($y,h),X(Ta,E),X(Bs,m),X(Py,$),Ie(R))if(R.length){const re=t.exposed||(t.exposed={});R.forEach(ne=>{Object.defineProperty(re,ne,{get:()=>n[ne],set:De=>n[ne]=De,enumerable:!0})})}else t.exposed||(t.exposed={});x&&t.render===Zn&&(t.render=x),G!=null&&(t.inheritAttrs=G),H&&(t.components=H),ee&&(t.directives=ee),$&&Vf(t)}function Ny(t,e,n=Zn){Ie(t)&&(t=pd(t));for(const s in t){const r=t[s];let i;bt(r)?"default"in r?i=Hn(r.from||s,r.default,!0):i=Hn(r.from||s):i=Hn(r),Tt(i)?Object.defineProperty(e,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):e[s]=i}}function G1(t,e,n){ys(Ie(t)?t.map(s=>s.bind(e.proxy)):t.bind(e.proxy),e,n)}function Ig(t,e,n,s){let r=s.includes(".")?kg(n,s):()=>n[s];if(Ht(t)){const i=e[t];Ge(i)&&ct(r,i)}else if(Ge(t))ct(r,t.bind(n));else if(bt(t))if(Ie(t))t.forEach(i=>
vendor: 4,113 bytes, line 15
15Ig(i,e,n,s));else{const i=Ge(t.handler)?t.handler.bind(n):e[t.handler];Ge(i)&&ct(r,i,t)}}function Nf(t){const e=t.type,{mixins:n,extends:s}=e,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=t.appContext,a=i.get(e);let l;return a?l=a:!r.length&&!n&&!s?l=e:(l={},r.length&&r.forEach(u=>$l(l,u,o,!0)),$l(l,e,o)),bt(e)&&i.set(e,l),l}function $l(t,e,n,s=!1){const{mixins:r,extends:i}=e;i&&$l(t,i,n,!0),r&&r.forEach(o=>$l(t,o,n,!0));for(const o in e)if(!(s&&o==="expose")){const a=jy[o]||n&&n[o];t[o]=a?a(t[o],e[o]):e[o]}return t}const jy={data:Z1,props:K1,emits:K1,methods:Bo,computed:Bo,beforeCreate:Mn,created:Mn,beforeMount:Mn,mounted:Mn,beforeUpdate:Mn,updated:Mn,beforeDestroy:Mn,beforeUnmount:Mn,destroyed:Mn,unmounted:Mn,activated:Mn,deactivated:Mn,errorCaptured:Mn,serverPrefetch:Mn,components:Bo,directives:Bo,watch:zy,provide:Z1,inject:Uy};function Z1(t,e){return e?t?function(){return Lt(Ge(t)?t.call(this,this):t,Ge(e)?e.call(this,this):e)}:e:t}function Uy(t,e){return Bo(pd(t),pd(e))}function pd(t){if(Ie(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function Mn(t,e){return t?[...new Set([].concat(t,e))]:e}function Bo(t,e){return t?Lt(Object.create(null),t,e):e}function K1(t,e){return t?Ie(t)&&Ie(e)?[...new Set([...t,...e])]:Lt(Object.create(null),da(t),da(e!=null?e:{})):e}function zy(t,e){if(!t)return e;if(!e)return t;const n=Lt(Object.create(null),t);for(const s in e)n[s]=Mn(t[s],e[s]);return n}function Hg(){return{app:null,config:{isNativeTag:U0,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 qy=0;function Wy(t,e){return function(s,r=null){Ge(s)||(s=Lt({},s)),r!=null&&!bt(r)&&(r=null);const i=Hg(),o=new WeakSet,a=[];let l=!1;const u=i.app={_uid:qy++,_component:s,_props:r,_container:null,_context:i,_instance:null,version:C5,get config(){return i.config},set config(c){},use(c,...d){return o.has(c)||(c&&Ge(c.install)?(o.add(c),c.install(u,...d)):Ge(c)&&(o.add(c),c(u,...d))),u},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),u},component(c,d){return d?(i.components[c]=d,u):i.components[c]},directive(c,d){return d?(i.directives[c]=d,u):i.directives[c]},mount(c,d,p){if(!l){const g=u._ceVNode||T(s,r);return g.appContext=i,p===!0?p="svg":p===!1&&(p=void 0),d&&e?e(g,c):t(g,c,p),l=!0,u._container=c,c.__vue_app__=u,Ma(g.component)}},onUnmount(c){a.push(c)},unmount(){l&&(ys(a,u._instance,16),t(null,u._container),delete u._container.__vue_app__)},provide(c,d){return i.provides[c]=d,u},runWithContext(c){const d=ti;ti=u;try{return c()}finally{ti=d}}};return u}}let ti=null;function qV(t,e,n=lt){const s=En(),r=rn(e),i=Un(e),o=Fg(t,r),a=Y_((l,u)=>{let c,d=lt,p;return hy(()=>{const g=t[r];pn(c,g)&&(c=g,u())}),{get(){return l(),n.get?n.get(c):c},set(g){const v=n.set?n.set(g):g;if(!pn(v,c)&&!(d!==lt&&pn(g,d)))return;const b=s.vnode.props;b&&(e in b||r in b||i in b)&&(`onUpdate:${e}`in b||`onUpdate:${r}`in b||`onUpdate:${i}`in b)||(c=g,u()),s.emit(`update:${e}`,v),pn(g,v)&&pn(g,d)&&!pn(v,p)&&u(),d=g,p=v}}});return a[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?o||lt:a,done:!1}:{done:!0}}}},a}const Fg=(t,e)=>e==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${rn(e)}Modifiers`]||t[`${Un(e)}Modifiers`];function Gy(t,e,...n){if(t.isUnmounted)return;const s=t.vnode.props||lt;let r=n;const i=e.startsWith("update:"),o=i&&Fg(s,e.slice(7));o&&(o.trim&&(r=n.map(c=>Ht(c)?c.trim():c)),o.number&&(r=n.map(Cu)));let a,l=s[a=dl(e)]||s[a=dl(rn(e))];!l&&i&&(l=s[a=dl(Un(e))]),l&&ys(l,t,6,r);const u=s[a+"Once"];if(u){if(!t.emitted)t.emitted={};else if(t.emitted[a])return;t.emitted[a]=!0,ys(u,t,6,r)}}const Zy=new WeakMap;function Dg(t,e,n=!1){const s=n?Zy:e.emitsCache,r=s.get(t);if(r!==void 0)return r;const i=t.emits;let o={},a=!1;if(!Ge(t)){const l=u=>{const c=Dg(u,e,!0);c&&(a=!0,Lt(o,c))};!n&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}
vendor: 4,488 bytes, line 15
15return!i&&!a?(bt(t)&&s.set(t,null),null):(Ie(i)?i.forEach(l=>o[l]=null):Lt(o,i),bt(t)&&s.set(t,o),o)}function Ru(t,e){return!t||!Sa(e)?!1:(e=e.slice(2).replace(/Once$/,""),yt(t,e[0].toLowerCase()+e.slice(1))||yt(t,Un(e))||yt(t,e))}function hl(t){const{type:e,vnode:n,proxy:s,withProxy:r,propsOptions:[i],slots:o,attrs:a,emit:l,render:u,renderCache:c,props:d,data:p,setupState:g,ctx:v,inheritAttrs:b}=t,k=ua(t);let L,E;try{if(n.shapeFlag&4){const m=r||s,x=m;L=jn(u.call(x,m,c,d,g,p,v)),E=a}else{const m=e;L=jn(m.length>1?m(d,{attrs:a,slots:o,emit:l}):m(d,null)),E=e.props?a:Yy(a)}}catch(m){Yo.length=0,yo(m,t,1),L=T(Qt)}let _=L;if(E&&b!==!1){const m=Object.keys(E),{shapeFlag:x}=_;m.length&&x&7&&(i&&m.some(_u)&&(E=Xy(E,i)),_=hr(_,E,!1,!0))}return n.dirs&&(_=hr(_,null,!1,!0),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&$r(_,n.transition),L=_,ua(k),L}function Ky(t,e=!0){let n;for(let s=0;s<t.length;s++){const r=t[s];if(Rr(r)){if(r.type!==Qt||r.children==="v-if"){if(n)return;n=r}}else return}return n}const Yy=t=>{let e;for(const n in t)(n==="class"||n==="style"||Sa(n))&&((e||(e={}))[n]=t[n]);return e},Xy=(t,e)=>{const n={};for(const s in t)(!_u(s)||!(s.slice(9)in e))&&(n[s]=t[s]);return n};function Jy(t,e,n){const{props:s,children:r,component:i}=t,{props:o,children:a,patchFlag:l}=e,u=i.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return s?Y1(s,o,u):!!o;if(l&8){const c=e.dynamicProps;for(let d=0;d<c.length;d++){const p=c[d];if(Bg(o,s,p)&&!Ru(u,p))return!0}}}else return(r||a)&&(!a||!a.$stable)?!0:s===o?!1:s?o?Y1(s,o,u):!0:!!o;return!1}function Y1(t,e,n){const s=Object.keys(e);if(s.length!==Object.keys(t).length)return!0;for(let r=0;r<s.length;r++){const i=s[r];if(Bg(e,t,i)&&!Ru(n,i))return!0}return!1}function Bg(t,e,n){const s=t[n],r=e[n];return n==="style"&&bt(s)&&bt(r)?!lr(s,r):s!==r}function Vu({vnode:t,parent:e,suspense:n},s){for(;e;){const r=e.subTree;if(r.suspense&&r.suspense.activeBranch===t&&(r.suspense.vnode.el=r.el=s,t=r),r===t)(t=e.vnode).el=s,e=e.parent;else break}n&&n.activeBranch===t&&(n.vnode.el=s)}const Ng={},jg=()=>Object.create(Ng),Ug=t=>Object.getPrototypeOf(t)===Ng;function Qy(t,e,n,s=!1){const r={},i=jg();t.propsDefaults=Object.create(null),zg(t,e,r,i);for(const o in t.propsOptions[0])o in r||(r[o]=void 0);n?t.props=s?r:hg(r):t.type.props?t.props=r:t.props=i,t.attrs=i}function e5(t,e,n,s){const{props:r,attrs:i,vnode:{patchFlag:o}}=t,a=at(r),[l]=t.propsOptions;let u=!1;if((s||o>0)&&!(o&16)){if(o&8){const c=t.vnode.dynamicProps;for(let d=0;d<c.length;d++){let p=c[d];if(Ru(t.emitsOptions,p))continue;const g=e[p];if(l)if(yt(i,p))g!==i[p]&&(i[p]=g,u=!0);else{const v=rn(p);r[v]=gd(l,a,v,g,t,!1)}else g!==i[p]&&(i[p]=g,u=!0)}}}else{zg(t,e,r,i)&&(u=!0);let c;for(const d in a)(!e||!yt(e,d)&&((c=Un(d))===d||!yt(e,c)))&&(l?n&&(n[d]!==void 0||n[c]!==void 0)&&(r[d]=gd(l,a,d,void 0,t,!0)):delete r[d]);if(i!==a)for(const d in i)(!e||!yt(e,d)&&!0)&&(delete i[d],u=!0)}u&&er(t.attrs,"set","")}function zg(t,e,n,s){const[r,i]=t.propsOptions;let o=!1,a;if(e)for(let l in e){if(Qr(l))continue;const u=e[l];let c;r&&yt(r,c=rn(l))?!i||!i.includes(c)?n[c]=u:(a||(a={}))[c]=u:Ru(t.emitsOptions,l)||(!(l in s)||u!==s[l])&&(s[l]=u,o=!0)}if(i){const l=at(n),u=a||lt;for(let c=0;c<i.length;c++){const d=i[c];n[d]=gd(r,l,d,u[d],t,!yt(u,d))}}return o}function gd(t,e,n,s,r,i){const o=t[n];if(o!=null){const a=yt(o,"default");if(a&&s===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&Ge(l)){const{propsDefaults:u}=r;if(n in u)s=u[n];else{const c=bo(r);s=u[n]=l.call(null,e),c()}}else s=l;r.ce&&r.ce._setProp(n,s)}o[0]&&(i&&!a?s=!1:o[1]&&(s===""||s===Un(n))&&(s=!0))}return s}const t5=new WeakMap;function qg(t,e,n=!1){const s=n?t5:e.propsCache,r=s.get(t);if(r)return r;const i=t.props,o={},a=[];let l=!1;if(!Ge(t)){const c=d=>{l=!0;const[p,g]=qg(d,e,!0);Lt(o,p),g&&a.push(...g)};!n&&e.mixins.length&&e.mixins.forEach(c),t.extends&&c(t.extends),t.mixins&&t.mixins.forEach(c)}if(!i&&!l)return bt(t)&&s.set(t,Wi),Wi;if(Ie(i))for(let c=0;c<i.length;c++){const d=rn(i[c]);X1(d)&&(o[d]=lt)}else if(i)for(const c in i){const d=rn(c);if(X1(d)){const p=i[c],g=o[d]=Ie(p)||Ge(p)?{type:p}:Lt({},p),v=g.type;let b=!1,k=!0;if(Ie(v))for(let L=0;L<v.length;++L){const E=v[L],_=Ge(E)&&E.name;if(_==="Boolean"){b=!0;break}else _==="String"&&(k=!1)}else b=Ge(v)&&v.name==="Boolean";g[0]=b,g[1]=k,(b||yt(g,"default"))&&a.push(d)}}const u=[o,a];return bt(t)&&s.set(t,u),u}function X1(t){return t[0]!=="$"&&!Qr(t)}
vendor: 4,281 bytes, line 15
15const jf=t=>t==="_"||t==="_ctx"||t==="$stable",Uf=t=>Ie(t)?t.map(jn):[jn(t)],n5=(t,e,n)=>{if(e._n)return e;const s=V((...r)=>Uf(e(...r)),n);return s._c=!1,s},Wg=(t,e,n)=>{const s=t._ctx;for(const r in t){if(jf(r))continue;const i=t[r];if(Ge(i))e[r]=n5(r,i,s);else if(i!=null){const o=Uf(i);e[r]=()=>o}}},Gg=(t,e)=>{const n=Uf(e);t.slots.default=()=>n},Zg=(t,e,n)=>{for(const s in e)(n||!jf(s))&&(t[s]=e[s])},s5=(t,e,n)=>{const s=t.slots=jg();if(t.vnode.shapeFlag&32){const r=e._;r?(Zg(s,e,n),n&&q0(s,"_",r,!0)):Wg(e,s)}else e&&Gg(t,e)},r5=(t,e,n)=>{const{vnode:s,slots:r}=t;let i=!0,o=lt;if(s.shapeFlag&32){const a=e._;a?n&&a===1?i=!1:Zg(r,e,n):(i=!e.$stable,Wg(e,r)),o=e}else e&&(Gg(t,e),o={default:1});if(i)for(const a in r)!jf(a)&&o[a]==null&&delete r[a]},Yt=ev;function i5(t){return Kg(t)}function o5(t){return Kg(t,xy)}function Kg(t,e){const n=ku();n.__VUE__=!0;const{insert:s,remove:r,patchProp:i,createElement:o,createText:a,createComment:l,setText:u,setElementText:c,parentNode:d,nextSibling:p,setScopeId:g=Zn,insertStaticContent:v}=t,b=(M,P,q,te=null,Q=null,ie=null,ge=void 0,he=null,fe=!!P.dynamicChildren)=>{if(M===P)return;M&&!cs(M,P)&&(te=B(M),ye(M,Q,ie,!0),M=null),P.patchFlag===-2&&(fe=!1,P.dynamicChildren=null);const{type:se,ref:be,shapeFlag:Ce}=P;switch(se){case ni:k(M,P,q,te);break;case Qt:L(M,P,q,te);break;case Ji:M==null&&E(P,q,te,ge);break;case Ve:H(M,P,q,te,Q,ie,ge,he,fe);break;default:Ce&1?x(M,P,q,te,Q,ie,ge,he,fe):Ce&6?ee(M,P,q,te,Q,ie,ge,he,fe):(Ce&64||Ce&128)&&se.process(M,P,q,te,Q,ie,ge,he,fe,J)}be!=null&&Q?Yi(be,M&&M.ref,ie,P||M,!P):be==null&&M&&M.ref!=null&&Yi(M.ref,null,ie,M,!0)},k=(M,P,q,te)=>{if(M==null)s(P.el=a(P.children),q,te);else{const Q=P.el=M.el;P.children!==M.children&&u(Q,P.children)}},L=(M,P,q,te)=>{M==null?s(P.el=l(P.children||""),q,te):P.el=M.el},E=(M,P,q,te)=>{[M.el,M.anchor]=v(M.children,P,q,te,M.el,M.anchor)},_=({el:M,anchor:P},q,te)=>{let Q;for(;M&&M!==P;)Q=p(M),s(M,q,te),M=Q;s(P,q,te)},m=({el:M,anchor:P})=>{let q;for(;M&&M!==P;)q=p(M),r(M),M=q;r(P)},x=(M,P,q,te,Q,ie,ge,he,fe)=>{if(P.type==="svg"?ge="svg":P.type==="math"&&(ge="mathml"),M==null)A(P,q,te,Q,ie,ge,he,fe);else{const se=M.el&&M.el._isVueCE?M.el:null;try{se&&se._beginPatch(),$(M,P,Q,ie,ge,he,fe)}finally{se&&se._endPatch()}}},A=(M,P,q,te,Q,ie,ge,he)=>{let fe,se;const{props:be,shapeFlag:Ce,transition:He,dirs:je}=M;if(fe=M.el=o(M.type,ie,be&&be.is,be),Ce&8?c(fe,M.children):Ce&16&&S(M.children,fe,null,te,Q,mc(M,ie),ge,he),je&&Ls(M,null,te,"created"),h(fe,M,M.scopeId,ge,te),be){for(const _t in be)_t!=="value"&&!Qr(_t)&&i(fe,_t,null,be[_t],ie,te);"value"in be&&i(fe,"value",null,be.value,ie),(se=be.onVnodeBeforeMount)&&Bn(se,te,M)}je&&Ls(M,null,te,"beforeMount");const st=Yg(Q,He);st&&He.beforeEnter(fe),s(fe,P,q),((se=be&&be.onVnodeMounted)||st||je)&&Yt(()=>{try{se&&Bn(se,te,M),st&&He.enter(fe),je&&Ls(M,null,te,"mounted")}finally{}},Q)},h=(M,P,q,te,Q)=>{if(q&&g(M,q),te)for(let ie=0;ie<te.length;ie++)g(M,te[ie]);if(Q){let ie=Q.subTree;if(P===ie||Vl(ie.type)&&(ie.ssContent===P||ie.ssFallback===P)){const ge=Q.vnode;h(M,ge,ge.scopeId,ge.slotScopeIds,Q.parent)}}},S=(M,P,q,te,Q,ie,ge,he,fe=0)=>{for(let se=fe;se<M.length;se++){const be=M[se]=he?Xs(M[se]):jn(M[se]);b(null,be,P,q,te,Q,ie,ge,he)}},$=(M,P,q,te,Q,ie,ge)=>{const he=P.el=M.el;let{patchFlag:fe,dynamicChildren:se,dirs:be}=P;fe|=M.patchFlag&16;const Ce=M.props||lt,He=P.props||lt;let je;if(q&&Nr(q,!1),(je=He.onVnodeBeforeUpdate)&&Bn(je,q,P,M),be&&Ls(P,M,q,"beforeUpdate"),q&&Nr(q,!0),(Ce.innerHTML&&He.innerHTML==null||Ce.textContent&&He.textContent==null)&&c(he,""),se?R(M.dynamicChildren,se,he,q,te,mc(P,Q),ie):ge||ne(M,P,he,null,q,te,mc(P,Q),ie,!1),fe>0){if(fe&16)G(he,Ce,He,q,Q);else if(fe&2&&Ce.class!==He.class&&i(he,"class",null,He.class,Q),fe&4&&i(he,"style",Ce.style,He.style,Q),fe&8){const st=P.dynamicProps;for(let _t=0;_t<st.length;_t++){const ht=st[_t],pt=Ce[ht],F=He[ht];(F!==pt||ht==="value")&&i(he,ht,pt,F,Q,q)}}fe&1&&M.children!==P.children&&c(he,P.children)}else!ge&&se==null&&G(he,Ce,He,q,Q);((je=He.onVnodeUpdated)||be)&&Yt(()=>{je&&Bn(je,q,P,M),be&&Ls(P,M,q,"updated")},te)},R=(M,P,q,te,Q,ie,ge)=>{for(let he=0;he<P.length;he++){const fe=M[he],se=P[he],be=fe.el&&(fe.type===Ve||!cs(fe,se)||fe.shapeFlag&198)?d(fe.el):q;b(fe,se,be,null,te,Q,ie,ge,!0)}},G=(M,P,q,te,Q)=>
vendor: 4,795 bytes, line 15
15{if(P!==q){if(P!==lt)for(const ie in P)!Qr(ie)&&!(ie in q)&&i(M,ie,P[ie],null,Q,te);for(const ie in q){if(Qr(ie))continue;const ge=q[ie],he=P[ie];ge!==he&&ie!=="value"&&i(M,ie,he,ge,Q,te)}"value"in q&&i(M,"value",P.value,q.value,Q)}},H=(M,P,q,te,Q,ie,ge,he,fe)=>{const se=P.el=M?M.el:a(""),be=P.anchor=M?M.anchor:a("");let{patchFlag:Ce,dynamicChildren:He,slotScopeIds:je}=P;je&&(he=he?he.concat(je):je),M==null?(s(se,q,te),s(be,q,te),S(P.children||[],q,be,Q,ie,ge,he,fe)):Ce>0&&Ce&64&&He&&M.dynamicChildren&&M.dynamicChildren.length===He.length?(R(M.dynamicChildren,He,q,Q,ie,ge,he),(P.key!=null||Q&&P===Q.subTree)&&zf(M,P,!0)):ne(M,P,q,be,Q,ie,ge,he,fe)},ee=(M,P,q,te,Q,ie,ge,he,fe)=>{P.slotScopeIds=he,M==null?P.shapeFlag&512?Q.ctx.activate(P,q,te,ge,fe):j(P,q,te,Q,ie,ge,fe):le(M,P,fe)},j=(M,P,q,te,Q,ie,ge)=>{const he=M.component=rv(M,te,Q);if(La(M)&&(he.ctx.renderer=J),ov(he,!1,ge),he.asyncDep){if(Q&&Q.registerDep(he,X,ge),!M.el){const fe=he.subTree=T(Qt);L(null,fe,P,q),M.placeholder=fe.el}}else X(he,M,P,q,Q,ie,ge)},le=(M,P,q)=>{const te=P.component=M.component;if(Jy(M,P,q))if(te.asyncDep&&!te.asyncResolved){re(te,P,q);return}else te.next=P,te.update();else P.el=M.el,te.vnode=P},X=(M,P,q,te,Q,ie,ge)=>{const he=()=>{if(M.isMounted){let{next:Ce,bu:He,u:je,parent:st,vnode:_t}=M;{const Y=Xg(M);if(Y){Ce&&(Ce.el=_t.el,re(M,Ce,ge)),Y.asyncDep.then(()=>{Yt(()=>{M.isUnmounted||se()},Q)});return}}let ht=Ce,pt;Nr(M,!1),Ce?(Ce.el=_t.el,re(M,Ce,ge)):Ce=_t,He&&Zi(He),(pt=Ce.props&&Ce.props.onVnodeBeforeUpdate)&&Bn(pt,st,Ce,_t),Nr(M,!0);const F=hl(M),z=M.subTree;M.subTree=F,b(z,F,d(z.el),B(z),M,Q,ie),Ce.el=F.el,ht===null&&Vu(M,F.el),je&&Yt(je,Q),(pt=Ce.props&&Ce.props.onVnodeUpdated)&&Yt(()=>Bn(pt,st,Ce,_t),Q)}else{let Ce;const{el:He,props:je}=P,{bm:st,m:_t,parent:ht,root:pt,type:F}=M,z=or(P);if(Nr(M,!1),st&&Zi(st),!z&&(Ce=je&&je.onVnodeBeforeMount)&&Bn(Ce,ht,P),Nr(M,!0),He&&Te){const Y=()=>{M.subTree=hl(M),Te(He,M.subTree,M,Q,null)};z&&F.__asyncHydrate?F.__asyncHydrate(He,M,Y):Y()}else{pt.ce&&pt.ce._hasShadowRoot()&&pt.ce._injectChildStyle(F,M.parent?M.parent.type:void 0);const Y=M.subTree=hl(M);b(null,Y,q,te,M,Q,ie),P.el=Y.el}if(_t&&Yt(_t,Q),!z&&(Ce=je&&je.onVnodeMounted)){const Y=P;Yt(()=>Bn(Ce,ht,Y),Q)}(P.shapeFlag&256||ht&&or(ht.vnode)&&ht.vnode.shapeFlag&256)&&M.a&&Yt(M.a,Q),M.isMounted=!0,P=q=te=null}};M.scope.on();const fe=M.effect=new El(he);M.scope.off();const se=M.update=fe.run.bind(fe),be=M.job=fe.runIfDirty.bind(fe);be.i=M,be.id=M.uid,fe.scheduler=()=>Pf(be),Nr(M,!0),se()},re=(M,P,q)=>{P.component=M;const te=M.vnode.props;M.vnode=P,M.next=null,e5(M,P.props,te,q),r5(M,P.children,q),ur(),F1(M),cr()},ne=(M,P,q,te,Q,ie,ge,he,fe=!1)=>{const se=M&&M.children,be=M?M.shapeFlag:0,Ce=P.children,{patchFlag:He,shapeFlag:je}=P;if(He>0){if(He&128){ot(se,Ce,q,te,Q,ie,ge,he,fe);return}else if(He&256){De(se,Ce,q,te,Q,ie,ge,he,fe);return}}je&8?(be&16&&ft(se,Q,ie),Ce!==se&&c(q,Ce)):be&16?je&16?ot(se,Ce,q,te,Q,ie,ge,he,fe):ft(se,Q,ie,!0):(be&8&&c(q,""),je&16&&S(Ce,q,te,Q,ie,ge,he,fe))},De=(M,P,q,te,Q,ie,ge,he,fe)=>{M=M||Wi,P=P||Wi;const se=M.length,be=P.length,Ce=Math.min(se,be);let He;for(He=0;He<Ce;He++){const je=P[He]=fe?Xs(P[He]):jn(P[He]);b(M[He],je,q,null,Q,ie,ge,he,fe)}se>be?ft(M,Q,ie,!0,!1,Ce):S(P,q,te,Q,ie,ge,he,fe,Ce)},ot=(M,P,q,te,Q,ie,ge,he,fe)=>{let se=0;const be=P.length;let Ce=M.length-1,He=be-1;for(;se<=Ce&&se<=He;){const je=M[se],st=P[se]=fe?Xs(P[se]):jn(P[se]);if(cs(je,st))b(je,st,q,null,Q,ie,ge,he,fe);else break;se++}for(;se<=Ce&&se<=He;){const je=M[Ce],st=P[He]=fe?Xs(P[He]):jn(P[He]);if(cs(je,st))b(je,st,q,null,Q,ie,ge,he,fe);else break;Ce--,He--}if(se>Ce){if(se<=He){const je=He+1,st=je<be?P[je].el:te;for(;se<=He;)b(null,P[se]=fe?Xs(P[se]):jn(P[se]),q,st,Q,ie,ge,he,fe),se++}}else if(se>He)for(;se<=Ce;)ye(M[se],Q,ie,!0),se++;else{const je=se,st=se,_t=new Map;for(se=st;se<=He;se++){const et=P[se]=fe?Xs(P[se]):jn(P[se]);et.key!=null&&_t.set(et.key,se)}let ht,pt=0;const F=He-st+1;let z=!1,Y=0;const de=new Array(F);for(se=0;se<F;se++)de[se]=0;for(se=je;se<=Ce;se++){const et=M[se];if(pt>=F){ye(et,Q,ie,!0);continue}let gt;if(et.key!=null)gt=_t.get(et.key);else for(ht=st;ht<=He;ht++)if(de[ht-st]===0&&cs(et,P[ht])){gt=ht;break}gt===void 0?ye(et,Q,ie,!0):(de[gt-st]=se+1,gt>=Y?Y=gt:z=!0,b(et,P[gt],q,null,Q,ie,ge,he,fe),pt++)}const Be=z?a5(de):Wi;for(ht=Be.length-1,se=F-1;se>=0;se--){const et=st+se,gt=P[et],Ye=P[et+1],ke=et+1<be?Ye.el||Jg(Ye):te;de[se]===0?b(null,gt,q,ke,Q,ie,ge,he,fe):z&&(ht<0||se!==Be[ht]?nt(gt,q,ke,2):ht--)}}},nt=(M,P,q,te,Q=null)=>{const{el:ie,type:ge,transition:he,children:fe,shapeFlag:se}=M;if(se&6){nt(M.component.subTree,P,q,te);return}if(se&128){M.suspense.move(P,q,te);return}if(se&64){ge.move(M,P,q,J);return}if(ge===Ve){s(ie,P,q);for(let Ce=0;Ce<fe.length;Ce++)nt(fe[Ce],P,q,te);s(M.anchor,P,q);return}
vendor: 9,979 bytes, line 15
15if(ge===Ji){_(M,P,q);return}if(te!==2&&se&1&&he)if(te===0)he.beforeEnter(ie),s(ie,P,q),Yt(()=>he.enter(ie),Q);else{const{leave:Ce,delayLeave:He,afterLeave:je}=he,st=()=>{M.ctx.isUnmounted?r(ie):s(ie,P,q)},_t=()=>{ie._isLeaving&&ie[Ts](!0),Ce(ie,()=>{st(),je&&je()})};He?He(ie,st,_t):_t()}else s(ie,P,q)},ye=(M,P,q,te=!1,Q=!1)=>{const{type:ie,props:ge,ref:he,children:fe,dynamicChildren:se,shapeFlag:be,patchFlag:Ce,dirs:He,cacheIndex:je,memo:st}=M;if(Ce===-2&&(Q=!1),he!=null&&(ur(),Yi(he,null,q,M,!0),cr()),je!=null&&(P.renderCache[je]=void 0),be&256){P.ctx.deactivate(M);return}const _t=be&1&&He,ht=!or(M);let pt;if(ht&&(pt=ge&&ge.onVnodeBeforeUnmount)&&Bn(pt,P,M),be&6)xe(M.component,q,te);else{if(be&128){M.suspense.unmount(q,te);return}_t&&Ls(M,null,P,"beforeUnmount"),be&64?M.type.remove(M,P,q,J,te):se&&!se.hasOnce&&(ie!==Ve||Ce>0&&Ce&64)?ft(se,P,q,!1,!0):(ie===Ve&&Ce&384||!Q&&be&16)&&ft(fe,P,q),te&&ut(M)}const F=st!=null&&je==null;(ht&&(pt=ge&&ge.onVnodeUnmounted)||_t||F)&&Yt(()=>{pt&&Bn(pt,P,M),_t&&Ls(M,null,P,"unmounted"),F&&(M.el=null)},q)},ut=M=>{const{type:P,el:q,anchor:te,transition:Q}=M;if(P===Ve){Ke(q,te);return}if(P===Ji){m(M);return}const ie=()=>{r(q),Q&&!Q.persisted&&Q.afterLeave&&Q.afterLeave()};if(M.shapeFlag&1&&Q&&!Q.persisted){const{leave:ge,delayLeave:he}=Q,fe=()=>ge(q,ie);he?he(M.el,ie,fe):fe()}else ie()},Ke=(M,P)=>{let q;for(;M!==P;)q=p(M),r(M),M=q;r(P)},xe=(M,P,q)=>{const{bum:te,scope:Q,job:ie,subTree:ge,um:he,m:fe,a:se}=M;Rl(fe),Rl(se),te&&Zi(te),Q.stop(),ie&&(ie.flags|=8,ye(ge,M,P,q)),he&&Yt(he,P),Yt(()=>{M.isUnmounted=!0},P)},ft=(M,P,q,te=!1,Q=!1,ie=0)=>{for(let ge=ie;ge<M.length;ge++)ye(M[ge],P,q,te,Q)},B=M=>{if(M.shapeFlag&6)return B(M.component.subTree);if(M.shapeFlag&128)return M.suspense.next();const P=p(M.anchor||M.el),q=P&&P[Sg];return q?p(q):P};let I=!1;const W=(M,P,q)=>{let te;M==null?P._vnode&&(ye(P._vnode,null,null,!0),te=P._vnode.component):b(P._vnode||null,M,P,null,null,null,q),P._vnode=M,I||(I=!0,F1(te),Ol(),I=!1)},J={p:b,um:ye,m:nt,r:ut,mt:j,mc:S,pc:ne,pbc:R,n:B,o:t};let Ee,Te;return e&&([Ee,Te]=e(J)),{render:W,hydrate:Ee,createApp:Wy(W,Ee)}}function mc({type:t,props:e},n){return n==="svg"&&t==="foreignObject"||n==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:n}function Nr({effect:t,job:e},n){n?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function Yg(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function zf(t,e,n=!1){const s=t.children,r=e.children;if(Ie(s)&&Ie(r))for(let i=0;i<s.length;i++){const o=s[i];let a=r[i];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=r[i]=Xs(r[i]),a.el=o.el),!n&&a.patchFlag!==-2&&zf(o,a)),a.type===ni&&(a.patchFlag===-1&&(a=r[i]=Xs(a)),a.el=o.el),a.type===Qt&&!a.el&&(a.el=o.el)}}function a5(t){const e=t.slice(),n=[0];let s,r,i,o,a;const l=t.length;for(s=0;s<l;s++){const u=t[s];if(u!==0){if(r=n[n.length-1],t[r]<u){e[s]=r,n.push(s);continue}for(i=0,o=n.length-1;i<o;)a=i+o>>1,t[n[a]]<u?i=a+1:o=a;u<t[n[i]]&&(i>0&&(e[s]=n[i-1]),n[i]=s)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=e[o];return n}function Xg(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:Xg(e)}function Rl(t){if(t)for(let e=0;e<t.length;e++)t[e].flags|=8}function Jg(t){if(t.placeholder)return t.placeholder;const e=t.component;return e?Jg(e.subTree):null}const Vl=t=>t.__isSuspense;let vd=0;const l5={name:"Suspense",__isSuspense:!0,process(t,e,n,s,r,i,o,a,l,u){if(t==null)c5(e,n,s,r,i,o,a,l,u);else{if(i&&i.deps>0&&!t.suspense.isInFallback){e.suspense=t.suspense,e.suspense.vnode=e,e.el=t.el;return}d5(t,e,n,s,r,o,a,l,u)}},hydrate:f5,normalize:h5},u5=l5;function fa(t,e){const n=t.props&&t.props[e];Ge(n)&&n()}function c5(t,e,n,s,r,i,o,a,l){const{p:u,o:{createElement:c}}=l,d=c("div"),p=t.suspense=Qg(t,r,s,e,d,n,i,o,a,l);u(null,p.pendingBranch=t.ssContent,d,null,s,p,i,o),p.deps>0?(fa(t,"onPending"),fa(t,"onFallback"),u(null,t.ssFallback,e,n,s,null,i,o),Xi(p,t.ssFallback)):p.resolve(!1,!0)}function d5(t,e,n,s,r,i,o,a,{p:l,um:u,o:{createElement:c}}){const d=e.suspense=t.suspense;d.vnode=e,e.el=t.el;const p=e.ssContent,g=e.ssFallback,{activeBranch:v,pendingBranch:b,isInFallback:k,isHydrating:L}=d;if(b)d.pendingBranch=p,cs(b,p)?(l(b,p,d.hiddenContainer,null,r,d,i,o,a),d.deps<=0?d.resolve():k&&(L||(l(v,g,n,s,r,null,i,o,a),Xi(d,g)))):(d.pendingId=vd++,L?(d.isHydrating=!1,d.activeBranch=b):u(b,r,d),d.deps=0,d.effects.length=0,d.hiddenContainer=c("div"),k?(l(null,p,d.hiddenContainer,null,r,d,i,o,a),d.deps<=0?d.resolve():(l(v,g,n,s,r,null,i,o,a),Xi(d,g))):v&&cs(v,p)?(l(v,p,n,s,r,d,i,o,a),d.resolve(!0)):(l(null,p,d.hiddenContainer,null,r,d,i,o,a),d.deps<=0&&d.resolve()));else if(v&&cs(v,p))l(v,p,n,s,r,d,i,o,a),Xi(d,p);else if(fa(e,"onPending"),d.pendingBranch=p,p.shapeFlag&512?d.pendingId=p.component.suspenseId:d.pendingId=vd++,l(null,p,d.hiddenContainer,null,r,d,i,o,a),d.deps<=0)d.resolve();else{const{timeout:E,pendingId:_}=d;E>0?setTimeout(()=>{d.pendingId===_&&d.fallback(g)},E):E===0&&d.fallback(g)}}function Qg(t,e,n,s,r,i,o,a,l,u,c=!1){const{p:d,m:p,um:g,n:v,o:{parentNode:b,remove:k}}=u;let L;const E=p5(t);E&&e&&e.pendingBranch&&(L=e.pendingId,e.deps++);const _=t.props?Sl(t.props.timeout):void 0,m=i,x={vnode:t,parent:e,parentComponent:n,namespace:o,container:s,hiddenContainer:r,deps:0,pendingId:vd++,timeout:typeof _=="number"?_:-1,activeBranch:null,isFallbackMountPending:!1,pendingBranch:null,isInFallback:!c,isHydrating:c,isUnmounted:!1,effects:[],resolve(A=!1,h=!1){const{vnode:S,activeBranch:$,pendingBranch:R,pendingId:G,effects:H,parentComponent:ee,container:j,isInFallback:le}=x;let X=!1;x.isHydrating?x.isHydrating=!1:A||(X=$&&R.transition&&R.transition.mode==="out-in",X&&($.transition.afterLeave=()=>{G===x.pendingId&&(p(R,j,i===m?v($):i,0),Ml(H),le&&S.ssFallback&&(S.ssFallback.el=null))}),$&&!x.isFallbackMountPending&&(b($.el)===j&&(i=v($)),g($,ee,x,!0),!X&&le&&S.ssFallback&&Yt(()=>S.ssFallback.el=null,x)),X||p(R,j,i,0)),x.isFallbackMountPending=!1,Xi(x,R),x.pendingBranch=null,x.isInFallback=!1;let re=x.parent,ne=!1;for(;re;){if(re.pendingBranch){re.effects.push(...H),ne=!0;break}re=re.parent}!ne&&!X&&Ml(H),x.effects=[],E&&e&&e.pendingBranch&&L===e.pendingId&&(e.deps--,e.deps===0&&!h&&e.resolve()),fa(S,"onResolve")},fallback(A){if(!x.pendingBranch)return;const{vnode:h,activeBranch:S,parentComponent:$,container:R,namespace:G}=x;fa(h,"onFallback");const H=v(S),ee=()=>{x.isFallbackMountPending=!1,x.isInFallback&&(d(null,A,R,H,$,null,G,a,l),Xi(x,A))},j=A.transition&&A.transition.mode==="out-in";j&&(x.isFallbackMountPending=!0,S.transition.afterLeave=ee),x.isInFallback=!0,g(S,$,null,!0),j||ee()},move(A,h,S){x.activeBranch&&p(x.activeBranch,A,h,S),x.container=A},next(){return x.activeBranch&&v(x.activeBranch)},registerDep(A,h,S){const $=!!x.pendingBranch;$&&x.deps++;const R=A.vnode.el;A.asyncDep.catch(G=>{yo(G,A,0)}).then(G=>{if(A.isUnmounted||x.isUnmounted||x.pendingId!==A.suspenseId)return;ha(),A.asyncResolved=!0;const{vnode:H}=A;md(A,G,!1),R&&(H.el=R);const ee=!R&&A.subTree.el;h(A,H,b(R||A.subTree.el),R?null:v(A.subTree),x,o,S),ee&&(H.placeholder=null,k(ee)),Vu(A,H.el),$&&--x.deps===0&&x.resolve()})},unmount(A,h){x.isUnmounted=!0,x.activeBranch&&g(x.activeBranch,n,A,h),x.pendingBranch&&g(x.pendingBranch,n,A,h)}};return x}function f5(t,e,n,s,r,i,o,a,l){const u=e.suspense=Qg(e,s,n,t.parentNode,document.createElement("div"),null,r,i,o,a,!0),c=l(t,u.pendingBranch=e.ssContent,n,u,i,o);return u.deps===0&&u.resolve(!1,!0),c}function h5(t){const{shapeFlag:e,children:n}=t,s=e&32;t.ssContent=J1(s?n.default:n),t.ssFallback=s?J1(n.fallback):T(Qt)}function J1(t){let e;if(Ge(t)){const n=ai&&t._c;n&&(t._d=!1,w()),t=t(),n&&(t._d=!0,e=Sn,tv())}return Ie(t)&&(t=Ky(t)),t=jn(t),e&&!t.dynamicChildren&&(t.dynamicChildren=e.filter(n=>n!==t)),t}function ev(t,e){e&&e.pendingBranch?Ie(t)?e.effects.push(...t):e.effects.push(t):Ml(t)}function Xi(t,e){t.activeBranch=e;const{vnode:n,parentComponent:s}=t;let r=e.el;for(;!r&&e.component;)e=e.component.subTree,r=e.el;n.el=r,s&&s.subTree===n&&(s.vnode.el=r,Vu(s,r))}function p5(t){const e=t.props&&t.props.suspensible;return e!=null&&e!==!1}const Ve=Symbol.for("v-fgt"),ni=Symbol.for("v-txt"),Qt=Symbol.for("v-cmt"),Ji=Symbol.for("v-stc"),Yo=[];let Sn=null;function w(t=!1){Yo.push(Sn=t?null:[])}function tv(){Yo.pop(),Sn=Yo[Yo.length-1]||null}let ai=1;function Il(t,e=!1){ai+=t,t<0&&Sn&&e&&(Sn.hasOnce=!0)}function nv(t){return t.dynamicChildren=ai>0?Sn||Wi:null,tv(),ai>0&&Sn&&Sn.push(t),t}function C(t,e,n,s,r,i){return nv(f(t,e,n,s,r,i,!0))}function pe(t,e,n,s,r){return nv(T(t,e,n,s,r,!0))}function Rr(t){return t?t.__v_isVNode===!0:!1}function cs(t,e){return t.type===e.type&&t.key===e.key}function WV(t){}const sv=({key:t})=>t!=null?t:null,pl=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?Ht(t)||Tt(t)||Ge(t)?{i:vn,r:t,k:e,f:!!n}:t:null);function f(t,e=null,n=null,s=0,r=null,i=t===Ve?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&sv(e),ref:e&&pl(e),scopeId:Ou,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:i,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:vn};return a?(qf(l,n),i&128&&t.normalize(l)):n&&(l.shapeFlag|=Ht(n)?8:16),ai>0&&!o&&Sn&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&Sn.push(l),l}const T=g5;function g5(t,e=null,n=null,s=0,r=null,i=!1){if((!t||t===Rg)&&(t=Qt),Rr(t)){const a=hr(t,e,!0);return n&&qf(a,n),ai>0&&!i&&Sn&&(a.shapeFlag&6?Sn[Sn.indexOf(t)]=a:Sn.push(a)),a.patchFlag=-2,a}if(w5(t)&&(t=t.__vccOpts),e){e=v5(e);let{class:a,style:l}=e;a&&!Ht(a)&&(e.class=Qe(a)),bt(l)&&(Mu(l)&&!Ie(l)&&(l=Lt({},l)),e.style=ms(l))}const o=Ht(t)?1:Vl(t)?128:Eg(t)?64:bt(t)?4:Ge(t)?2:0;return f(t,e,n,s,r,o,i,!0)}function v5(t){return t?Mu(t)||Ug(t)?Lt({},t):t:null}function hr(t,e,n=!1,s=!1){const{props:r,ref:i,patchFlag:o,children:a,transition:l}=t,u=e?Wf(r||{}
vendor: 5,630 bytes, lines 15-18
15,e):r,c={__v_isVNode:!0,__v_skip:!0,type:t.type,props:u,key:u&&sv(u),ref:e&&e.ref?n&&i?Ie(i)?i.concat(pl(e)):[i,pl(e)]:pl(e):i,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:a,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Ve?o===-1?16:o|16:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:l,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&hr(t.ssContent),ssFallback:t.ssFallback&&hr(t.ssFallback),placeholder:t.placeholder,el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return l&&s&&$r(c,l.clone(c)),c}function N(t=" ",e=0){return T(ni,null,t,e)}function ns(t,e){const n=T(Ji,null,t);return n.staticCount=e,n}function oe(t="",e=!1){return e?(w(),pe(Qt,null,t)):T(Qt,null,t)}function jn(t){return t==null||typeof t=="boolean"?T(Qt):Ie(t)?T(Ve,null,t.slice()):Rr(t)?Xs(t):T(ni,null,String(t))}function Xs(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:hr(t)}function qf(t,e){let n=0;const{shapeFlag:s}=t;if(e==null)e=null;else if(Ie(e))n=16;else if(typeof e=="object")if(s&65){const r=e.default;r&&(r._c&&(r._d=!1),qf(t,r()),r._c&&(r._d=!0));return}else{n=32;const r=e._;!r&&!Ug(e)?e._ctx=vn:r===3&&vn&&(vn.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else Ge(e)?(e={default:e,_ctx:vn},n=32):(e=String(e),s&64?(n=16,e=[N(e)]):n=8);t.children=e,t.shapeFlag|=n}function Wf(...t){const e={};for(let n=0;n<t.length;n++){const s=t[n];for(const r in s)if(r==="class")e.class!==s.class&&(e.class=Qe([e.class,s.class]));else if(r==="style")e.style=ms([e.style,s.style]);else if(Sa(r)){const i=e[r],o=s[r];o&&i!==o&&!(Ie(i)&&i.includes(o))?e[r]=i?[].concat(i,o):o:o==null&&i==null&&!_u(r)&&(e[r]=o)}else r!==""&&(e[r]=s[r])}return e}function Bn(t,e,n,s=null){ys(t,e,7,[n,s])}const m5=Hg();let _5=0;function rv(t,e,n){const s=t.type,r=(e?e.appContext:t.appContext)||m5,i={uid:_5++,vnode:t,type:s,parent:e,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new K0(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(r.provides),ids:e?e.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:qg(s,r),emitsOptions:Dg(s,r),emit:null,emitted:null,propsDefaults:lt,inheritAttrs:s.inheritAttrs,ctx:lt,data:lt,props:lt,attrs:lt,slots:lt,refs:lt,setupState:lt,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,sp:null};return i.ctx={_:i},i.root=e?e.root:i,i.emit=Gy.bind(null,i),t.ce&&t.ce(i),i}let gn=null;const En=()=>gn||vn;let Hl,Qi;{const t=ku(),e=(n,s)=>{let r;return(r=t[n])||(r=t[n]=[]),r.push(s),i=>{r.length>1?r.forEach(o=>o(i)):r[0](i)}};Hl=e("__VUE_INSTANCE_SETTERS__",n=>gn=n),Qi=e("__VUE_SSR_SETTERS__",n=>li=n)}const bo=t=>{const e=gn;return Hl(t),t.scope.on(),()=>{t.scope.off(),Hl(e)}},ha=()=>{gn&&gn.scope.off(),Hl(null)};function iv(t){return t.vnode.shapeFlag&4}let li=!1;function ov(t,e=!1,n=!1){e&&Qi(e);const{props:s,children:r}=t.vnode,i=iv(t);Qy(t,s,i,e),s5(t,r,n||e);const o=i?y5(t,e):void 0;return e&&Qi(!1),o}function y5(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,fd);const{setup:s}=n;if(s){ur();const r=t.setupContext=s.length>1?lv(t):null,i=bo(t),o=Ea(s,t,0,[t.props,r]),a=Ef(o);if(cr(),i(),(a||t.sp)&&!or(t)&&Vf(t),a){if(o.then(ha,ha),e)return o.then(l=>{md(t,l,e)}).catch(l=>{yo(l,t,0)});t.asyncDep=o}else md(t,o,e)}else av(t,e)}function md(t,e,n){Ge(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:bt(e)&&(t.setupState=vg(e)),av(t,n)}let Fl,_d;function GV(t){Fl=t,_d=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,Fy))}}const ZV=()=>!Fl;function av(t,e,n){const s=t.type;if(!t.render){if(!e&&Fl&&!s.render){const r=s.template||Nf(t).template;if(r){const{isCustomElement:i,compilerOptions:o}=t.appContext.config,{delimiters:a,compilerOptions:l}=s,u=Lt(Lt({isCustomElement:i,delimiters:a},o),l);s.render=Fl(r,u)}}t.render=s.render||Zn,_d&&_d(t)}{const r=bo(t);ur();try{By(t)}finally{cr(),r()}}}const b5={get(t,e){return kn(t,"get",""),t[e]}};function lv(t){const e=n=>{t.exposed=n||{}};return{attrs:new Proxy(t.attrs,b5),slots:t.slots,emit:t.emit,expose:e}}function Ma(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(vg(Of(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in Ko)return Ko[n](t)},has(e,n){return n in e||n in Ko}})):t.proxy}function yd(t,e=!0){return Ge(t)?t.displayName||t.name:t.name||e&&t.__name}function w5(t){return Ge(t)&&"__vccOpts"in t}const Ne=(t,e)=>ny(t,e,li);function Gf(t,e,n){try{Il(-1);const s=arguments.length;return s===2?bt(e)&&!Ie(e)?Rr(e)?T(t,null,[e]):T(t,e):T(t,null,e):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Rr(n)&&(n=[n]),T(t,e,n))}finally{Il(1)}}function KV(){}function YV(t,e,n,s){const r=n[s];if(r&&x5(r,t))return r;const i=e();return i.memo=t.slice(),i.cacheIndex=s,n[s]=i}function x5(t,e){const n=t.memo;if(n.length!=e.length)return!1;for(let s=0;s<n.length;s++)if(pn(n[s],e[s]))return!1;return ai>0&&Sn&&Sn.push(t),!0}const C5="3.5.32",XV=Zn,JV=ay,QV=Pi,eI=xg,k5={createComponentInstance:rv,setupComponent:ov,renderComponentRoot:hl,setCurrentRenderingInstance:ua,isVNode:Rr,normalizeVNode:jn,getComponentPublicInstance:Ma,ensureValidVNode:Bf,pushWarningContext:iy,popWarningContext:oy},tI=k5,nI=null,sI=null,rI=null;/** 16* @vue/runtime-dom v3.5.32 17* (c) 2018-present Yuxi (Evan) You and Vue contributors 18* @license MIT
19**/let bd;const Q1=typeof window<"u"&&window.trustedTypes;if(Q1)try{bd=Q1.createPolicy("vue",{createHTML:t=>t})}catch{}const uv=bd?t=>bd.createHTML(t):t=>t,S5="http://www.w3.org/2000/svg",E5="http://www.w3.org/1998/Math/MathML",Ys=typeof document<"u"?document:null,eh=Ys&&Ys.createElement("template"),A5={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,s)=>{const r=e==="svg"?Ys.createElementNS(S5,t):e==="mathml"?Ys.createElementNS(E5,t):n?Ys.createElement(t,{is:n}):Ys.createElement(t);return t==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:t=>Ys.createTextNode(t),createComment:t=>Ys.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Ys.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,s,r,i){const o=n?n.previousSibling:e.lastChild;if(r&&(r===i||r.nextSibling))for(;e.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{eh.innerHTML=uv(s==="svg"?`<svg>${t}</svg>`:s==="mathml"?`<math>${t}</math>`:t);const a=eh.content;if(s==="svg"||s==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}e.insertBefore(a,n)}return[o?o.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},mr="transition",So="animation",oo=Symbol("_vtc"),cv={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},dv=Lt({},Lg,cv),L5=t=>(t.displayName="Transition",t.props=dv,t),Iu=L5((t,{slots:e})=>Gf(yy,fv(t),e)),jr=(t,e=[])=>{Ie(t)?t.forEach(n=>n(...e)):t&&t(...e)},th=t=>t?Ie(t)?t.some(e=>e.length>1):t.length>1:!1;function fv(t){const e={};for(const H in t)H in cv||(e[H]=t[H]);if(t.css===!1)return e;const{name:n="v",type:s,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:u=o,appearToClass:c=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=t,v=T5(r),b=v&&v[0],k=v&&v[1],{onBeforeEnter:L,onEnter:E,onEnterCancelled:_,onLeave:m,onLeaveCancelled:x,onBeforeAppear:A=L,onAppear:h=E,onAppearCancelled:S=_}=e,$=(H,ee,j,le)=>{H._enterCancelled=le,kr(H,ee?c:a),kr(H,ee?u:o),j&&j()},R=(H,ee)=>{H._isLeaving=!1,kr(H,d),kr(H,g),kr(H,p),ee&&ee()},G=H=>(ee,j)=>{const le=H?h:E,X=()=>$(ee,H,j);jr(le,[ee,X]),nh(()=>{kr(ee,H?l:i),Ss(ee,H?c:a),th(le)||sh(ee,s,b,X)})};return Lt(e,{onBeforeEnter(H){jr(L,[H]),Ss(H,i),Ss(H,o)},onBeforeAppear(H){jr(A,[H]),Ss(H,l),Ss(H,u)},onEnter:G(!1),onAppear:G(!0),onLeave(H,ee){H._isLeaving=!0;const j=()=>R(H,ee);Ss(H,d),H._enterCancelled?(Ss(H,p),wd(H)):(wd(H),Ss(H,p)),nh(()=>{!H._isLeaving||(kr(H,d),Ss(H,g),th(m)||sh(H,s,k,j))}),jr(m,[H,j])},onEnterCancelled(H){$(H,!1,void 0,!0),jr(_,[H])},onAppearCancelled(H){$(H,!0,void 0,!0),jr(S,[H])},onLeaveCancelled(H){R(H),jr(x,[H])}})}function T5(t){if(t==null)return null;if(bt(t))return[_c(t.enter),_c(t.leave)];{const e=_c(t);return[e,e]}}function _c(t){return Sl(t)}function Ss(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t[oo]||(t[oo]=new Set)).add(e)}function kr(t,e){e.split(/\s+/).forEach(s=>s&&t.classList.remove(s));const n=t[oo];n&&(n.delete(e),n.size||(t[oo]=void 0))}function nh(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let M5=0;function sh(t,e,n,s){const r=t._endId=++M5,i=()=>{r===t._endId&&s()};if(n!=null)return setTimeout(i,n);const{type:o,timeout:a,propCount:l}=hv(t,e);if(!o)return s();const u=o+"end";let c=0;const d=()=>{t.removeEventListener(u,p),i()},p=g=>{g.target===t&&++c>=l&&d()};setTimeout(()=>{c<l&&d()},a+1),t.addEventListener(u,p)}function hv(t,e){const n=window.getComputedStyle(t),s=v=>(n[v]||"").split(", "),r=s(`${mr}Delay`),i=s(`${mr}Duration`),o=rh(r,i),a=s(`${So}Delay`),l=s(`${So}Duration`),u=rh(a,l);let c=null,d=0,p=0;e===mr?o>0&&(c=mr,d=o,p=i.length):e===So?u>0&&(c=So,d=u,p=l.length):(d=Math.max(o,u),c=d>0?o>u?mr:So:null,p=c?c===mr?i.length:l.length:0);const g=c===mr&&/\b(?:transform|all)(?:,|$)/.test(s(`${mr}Property`).toString());return{type:c,timeout:d,propCount:p,hasTransform:g}}function rh(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((n,s)=>ih(n)+ih(t[s])))}function ih(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function wd(t){return(t?t.ownerDocument:document).body.offsetHeight}function O5(t,e,n){const s=t[oo];s&&(e=(e?[e,...s]:[...s]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const Dl=Symbol("_vod"),pv=Symbol("_vsh"),kt={name:"show",beforeMount(t,{value:e},{transition:n}){t[Dl]=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):Eo(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:s}){!e!=!n&&(s?e?(s.beforeEnter(t),Eo(t,!0),s.enter(t)):s.leave(t,()=>{Eo(t,!1)}):Eo(t,e))},beforeUnmount(t,{value:e}){Eo(t,e)}};function Eo(t,e){t.style.display=e?t[Dl]:"none",t[pv]=!e}function P5(){kt.getSSRProps=({value:t})=>{if(!t)return{style:{display:"none"}}}}const gv=Symbol("");function iI(t){const e=En();if(!e)return;const n=e.ut=(r=t(e.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${e.uid}
19"]`)).forEach(i=>Bl(i,r))},s=()=>{const r=t(e.proxy);e.ce?Bl(e.ce,r):xd(e.subTree,r),n(r)};$g(()=>{Ml(s)}),zn(()=>{ct(s,Zn,{flush:"post"});const r=new MutationObserver(s);r.observe(e.subTree.el.parentNode,{childList:!0}),Bs(()=>r.disconnect())})}function xd(t,e){if(t.shapeFlag&128){const n=t.suspense;t=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{xd(n.activeBranch,e)})}for(;t.component;)t=t.component.subTree;if(t.shapeFlag&1&&t.el)Bl(t.el,e);else if(t.type===Ve)t.children.forEach(n=>xd(n,e));else if(t.type===Ji){let{el:n,anchor:s}=t;for(;n&&(Bl(n,e),n!==s);)n=n.nextSibling}}function Bl(t,e){if(t.nodeType===1){const n=t.style;let s="";for(const r in e){const i=E_(e[r]);n.setProperty(`--${r}`,i),s+=`--${r}: ${i};`}n[gv]=s}}const $5=/(?:^|;)\s*display\s*:/;function R5(t,e,n){const s=t.style,r=Ht(n);let i=!1;if(n&&!r){if(e)if(Ht(e))for(const o of e.split(";")){const a=o.slice(0,o.indexOf(":")).trim();n[a]==null&&gl(s,a,"")}else for(const o in e)n[o]==null&&gl(s,o,"");for(const o in n)o==="display"&&(i=!0),gl(s,o,n[o])}else if(r){if(e!==n){const o=s[gv];o&&(n+=";"+o),s.cssText=n,i=$5.test(n)}}else e&&t.removeAttribute("style");Dl in t&&(t[Dl]=i?s.display:"",t[pv]&&(s.display="none"))}const oh=/\s*!important$/;function gl(t,e,n){if(Ie(n))n.forEach(s=>gl(t,e,s));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const s=V5(t,e);oh.test(n)?t.setProperty(Un(s),n.replace(oh,""),"important"):t[s]=n}}const ah=["Webkit","Moz","ms"],yc={};function V5(t,e){const n=yc[e];if(n)return n;let s=rn(e);if(s!=="filter"&&s in t)return yc[e]=s;s=xu(s);for(let r=0;r<ah.length;r++){const i=ah[r]+s;if(i in t)return yc[e]=i}return e}const lh="http://www.w3.org/1999/xlink";function uh(t,e,n,s,r,i=k_(e)){s&&e.startsWith("xlink:")?n==null?t.removeAttributeNS(lh,e.slice(6,e.length)):t.setAttributeNS(lh,e,n):n==null||i&&!W0(n)?t.removeAttribute(e):t.setAttribute(e,i?"":Jn(n)?String(n):n)}function ch(t,e,n,s,r){if(e==="innerHTML"||e==="textContent"){n!=null&&(t[e]=e==="innerHTML"?uv(n):n);return}const i=t.tagName;if(e==="value"&&i!=="PROGRESS"&&!i.includes("-")){const a=i==="OPTION"?t.getAttribute("value")||"":t.value,l=n==null?t.type==="checkbox"?"on":"":String(n);(a!==l||!("_value"in t))&&(t.value=l),n==null&&t.removeAttribute(e),t._value=n;return}let o=!1;if(n===""||n==null){const a=typeof t[e];a==="boolean"?n=W0(n):n==null&&a==="string"?(n="",o=!0):a==="number"&&(n=0,o=!0)}try{t[e]=n}catch{}o&&t.removeAttribute(r||e)}function nr(t,e,n,s){t.addEventListener(e,n,s)}function I5(t,e,n,s){t.removeEventListener(e,n,s)}const dh=Symbol("_vei");function H5(t,e,n,s,r=null){const i=t[dh]||(t[dh]={}),o=i[e];if(s&&o)o.value=s;else{const[a,l]=F5(e);if(s){const u=i[e]=N5(s,r);nr(t,a,u,l)}else o&&(I5(t,a,o,l),i[e]=void 0)}}const fh=/(?:Once|Passive|Capture)$/;function F5(t){let e;if(fh.test(t)){e={};let s;for(;s=t.match(fh);)t=t.slice(0,t.length-s[0].length),e[s[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):Un(t.slice(2)),e]}let bc=0;const D5=Promise.resolve(),B5=()=>bc||(D5.then(()=>bc=0),bc=Date.now());function N5(t,e){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;ys(j5(s,n.value),e,5,[s])};return n.value=t,n.attached=B5(),n}function j5(t,e){if(Ie(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(s=>r=>!r._stopped&&s&&s(r))}else return e}const hh=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,U5=(t,e,n,s,r,i)=>{const o=r==="svg";e==="class"?O5(t,s,o):e==="style"?R5(t,n,s):Sa(e)?_u(e)||H5(t,e,n,s,i):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):z5(t,e,s,o))?(ch(t,e,s),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&uh(t,e,s,o,i,e!=="value")):t._isVueCE&&(q5(t,e)||t._def.__asyncLoader&&(/[A-Z]/.test(e)||!Ht(s)))?ch(t,rn(e),s,i,e):(e==="true-value"?t._trueValue=s:e==="false-value"&&(t._falseValue=s),uh(t,e,s,o))};function z5(t,e,n,s){if(s)return!!(e==="innerHTML"||e==="textContent"||e in t&&hh(e)&&Ge(n));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="autocorrect"||e==="sandbox"&&t.tagName==="IFRAME"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const r=t.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return hh(e)&&Ht(n)?!1:e in t}function q5(t,e){const n=t._def.props;if(!n)return!1;const s=rn(e);return Array.isArray(n)?n.some(r=>rn(r)===s):Object.keys(n).some(r=>rn(r)===s)}const ph={};function W5(t,e,n){let s=Ze(t,e);yu(s)&&(s=Lt({},s,e));class r extends Zf{constructor(o){super(s,o,n)}}return r.def=s,r}const oI=(t,e)=>W5(t,e,u4),G5=typeof HTMLElement<"u"?HTMLElement:class{};class Zf extends G5{constructor(e,n={},s=Cd){super(),this._def=e,this._props=n,this._createApp=s,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._styleAnchors=new WeakMap,this._ob=null,this.shadowRoot&&s!==Cd?this._root=this.shadowRoot:e.shadowRoot!==!1?(this.attachShadow(Lt({},e.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let e=this;for(;e=e&&(e.assignedSlot||e.parentNode||e.host);)if(e instanceof Zf){this._parent=e;break}this._instance||(this._resolved?this._mount(this._def):e&&e._pendingResolve?this._pendingResolve=e._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._inheritParentContext(e))}_inheritParentContext(e=this._parent){e&&this._app&&Object.setPrototypeOf(this._app._context.provides,e._instance.provides)}disconnectedCallback(){this._connected=!1,Hr(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(e){for(const n of e)this._setAttr(n.attributeName)}
vendor: 1,998 bytes, line 19
19_resolveDef(){if(this._pendingResolve)return;for(let s=0;s<this.attributes.length;s++)this._setAttr(this.attributes[s].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});const e=(s,r=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:i,styles:o}=s;let a;if(i&&!Ie(i))for(const l in i){const u=i[l];(u===Number||u&&u.type===Number)&&(l in this._props&&(this._props[l]=Sl(this._props[l])),(a||(a=Object.create(null)))[rn(l)]=!0)}this._numberProps=a,this._resolveProps(s),this.shadowRoot&&this._applyStyles(o),this._mount(s)},n=this._def.__asyncLoader;n?this._pendingResolve=n().then(s=>{s.configureApp=this._def.configureApp,e(this._def=s,!0)}):e(this._def)}_mount(e){this._app=this._createApp(e),this._inheritParentContext(),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const n=this._instance&&this._instance.exposed;if(!!n)for(const s in n)yt(this,s)||Object.defineProperty(this,s,{get:()=>y(n[s])})}_resolveProps(e){const{props:n}=e,s=Ie(n)?n:Object.keys(n||{});for(const r of Object.keys(this))r[0]!=="_"&&s.includes(r)&&this._setProp(r,this[r]);for(const r of s.map(rn))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(i){this._setProp(r,i,!0,!this._patching)}})}_setAttr(e){if(e.startsWith("data-v-"))return;const n=this.hasAttribute(e);let s=n?this.getAttribute(e):ph;const r=rn(e);n&&this._numberProps&&this._numberProps[r]&&(s=Sl(s)),this._setProp(r,s,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,n,s=!0,r=!1){if(n!==this._props[e]&&(this._dirty=!0,n===ph?delete this._props[e]:(this._props[e]=n,e==="key"&&this._app&&(this._app._ceVNode.key=n)),r&&this._instance&&this._update(),s)){const i=this._ob;i&&(this._processMutations(i.takeRecords()),i.disconnect()),n===!0?this.setAttribute(Un(e),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Un(e),n+""):n||this.removeAttribute(Un(e)),i&&i.observe(this,{attributes:!0})}}
19_update(){const e=this._createVNode();this._app&&(e.appContext=this._app._context),l4(e,this._root)}_createVNode(){const e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));const n=T(this._def,Lt(e,this._props));return this._instance||(n.ce=s=>{this._instance=s,s.ce=this,s.isCE=!0;const r=(i,o)=>{this.dispatchEvent(new CustomEvent(i,yu(o[0])?Lt({detail:o},o[0]):{detail:o}))};s.emit=(i,...o)=>{r(i,o),Un(i)!==i&&r(Un(i),o)},this._setParent()}),n}_applyStyles(e,n,s){if(!e)return;if(n){if(n===this._def||this._styleChildren.has(n))return;this._styleChildren.add(n)}const r=this._nonce,i=this.shadowRoot,o=s?this._getStyleAnchor(s)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(i);let a=null;for(let l=e.length-1;l>=0;l--){const u=document.createElement("style");r&&u.setAttribute("nonce",r),u.textContent=e[l],i.insertBefore(u,a||o),a=u,l===0&&(s||this._styleAnchors.set(this._def,u),n&&this._styleAnchors.set(n,u))}}_getStyleAnchor(e){if(!e)return null;const n=this._styleAnchors.get(e);return n&&n.parentNode===this.shadowRoot?n:(n&&this._styleAnchors.delete(e),null)}_getRootStyleInsertionAnchor(e){for(let n=0;n<e.childNodes.length;n++){const s=e.childNodes[n];if(!(s instanceof HTMLStyleElement))return s}return null}_parseSlots(){const e=this._slots={};let n;for(;n=this.firstChild;){const s=n.nodeType===1&&n.getAttribute("slot")||"default";(e[s]||(e[s]=[])).push(n),this.removeChild(n)}}_renderSlots(){const e=this._getSlots(),n=this._instance.type.__scopeId;for(let s=0;s<e.length;s++){const r=e[s],i=r.getAttribute("name")||"default",o=this._slots[i],a=r.parentNode;if(o)for(const l of o){if(n&&l.nodeType===1){const u=n+"-s",c=document.createTreeWalker(l,1);l.setAttribute(u,"");let d;for(;d=c.nextNode();)d.setAttribute(u,"")}a.insertBefore(l,r)}else for(;r.firstChild;)a.insertBefore(r.firstChild,r);a.removeChild(r)}}_getSlots(){const e=[this];this._teleportTargets&&e.push(...this._teleportTargets);const n=new Set;for(const s of e){const r=s.querySelectorAll("slot");for(let i=0;i<r.length;i++)n.add(r[i])}return Array.from(n)}_injectChildStyle(e,n){this._applyStyles(e.styles,e,n)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_hasShadowRoot(){return this._def.shadowRoot!==!1}_removeChildStyle(e){}}function Z5(t){const e=En(),n=e&&e.ce;return n||null}function aI(){const t=Z5();return t&&t.shadowRoot}function lI(t="$style"){{const e=En();if(!e)return lt;const n=e.type.__cssModules;if(!n)return lt;const s=n[t];return s||lt}}const vv=new WeakMap,mv=new WeakMap,Nl=Symbol("_moveCb"),gh=Symbol("_enterCb"),K5=t=>(delete t.props.mode,t),Y5=K5({name:"TransitionGroup",props:Lt({},dv,{tag:String,moveClass:String}),setup(t,{slots:e}){const n=En(),s=Ag();let r,i;return Hf(()=>{if(!r.length)return;const o=t.moveClass||`${t.name||"v"}-move`;if(!e4(r[0].el,n.vnode.el,o)){r=[];return}r.forEach(X5),r.forEach(J5);const a=r.filter(Q5);wd(n.vnode.el),a.forEach(l=>{const u=l.el,c=u.style;Ss(u,o),c.transform=c.webkitTransform=c.transitionDuration="";const d=u[Nl]=p=>{p&&p.target!==u||(!p||p.propertyName.endsWith("transform"))&&(u.removeEventListener("transitionend",d),u[Nl]=null,kr(u,o))};u.addEventListener("transitionend",d)}),r=[]}),()=>{const o=at(t),a=fv(o);let l=o.tag||Ve;if(r=[],i)for(let u=0;u<i.length;u++){const c=i[u];c.el&&c.el instanceof Element&&(r.push(c),$r(c,ca(c,a,s,n)),vv.set(c,_v(c.el)))}i=e.default?Rf(e.default()):[];for(let u=0;u<i.length;u++){const c=i[u];c.key!=null&&$r(c,ca(c,a,s,n))}return T(l,null,i)}}}),uI=Y5;function X5(t){const e=t.el;e[Nl]&&e[Nl](),e[gh]&&e[gh]()}function J5(t){mv.set(t,_v(t.el))}function Q5(t){const e=vv.get(t),n=mv.get(t),s=e.left-n.left,r=e.top-n.top;if(s||r){const i=t.el,o=i.style,a=i.getBoundingClientRect();let l=1,u=1;return i.offsetWidth&&(l=a.width/i.offsetWidth),i.offsetHeight&&(u=a.height/i.offsetHeight),(!Number.isFinite(l)||l===0)&&(l=1),(!Number.isFinite(u)||u===0)&&(u=1),Math.abs(l-1)<.01&&(l=1),Math.abs(u-1)<.01&&(u=1),o.transform=o.webkitTransform=`translate(${s/l}px,${r/u}px)`,o.transitionDuration="0s",t}}function _v(t){const e=t.getBoundingClientRect();return{left:e.left,top:e.top}}function e4(t,e,n){const s=t.cloneNode(),r=t[oo];r&&r.forEach(a=>
vendor: 29,524 bytes, lines 19-27
19{a.split(/\s+/).forEach(l=>l&&s.classList.remove(l))}),n.split(/\s+/).forEach(a=>a&&s.classList.add(a)),s.style.display="none";const i=e.nodeType===1?e:e.parentNode;i.appendChild(s);const{hasTransform:o}=hv(s);return i.removeChild(s),o}const Vr=t=>{const e=t.props["onUpdate:modelValue"]||!1;return Ie(e)?n=>Zi(e,n):e};function t4(t){t.target.composing=!0}function vh(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const ss=Symbol("_assign");function mh(t,e,n){return e&&(t=t.trim()),n&&(t=Cu(t)),t}const pa={created(t,{modifiers:{lazy:e,trim:n,number:s}},r){t[ss]=Vr(r);const i=s||r.props&&r.props.type==="number";nr(t,e?"change":"input",o=>{o.target.composing||t[ss](mh(t.value,n,i))}),(n||i)&&nr(t,"change",()=>{t.value=mh(t.value,n,i)}),e||(nr(t,"compositionstart",t4),nr(t,"compositionend",vh),nr(t,"change",vh))},mounted(t,{value:e}){t.value=e==null?"":e},beforeUpdate(t,{value:e,oldValue:n,modifiers:{lazy:s,trim:r,number:i}},o){if(t[ss]=Vr(o),t.composing)return;const a=(i||t.type==="number")&&!/^0\d/.test(t.value)?Cu(t.value):t.value,l=e==null?"":e;if(a===l)return;const u=t.getRootNode();(u instanceof Document||u instanceof ShadowRoot)&&u.activeElement===t&&t.type!=="range"&&(s&&e===n||r&&t.value.trim()===l)||(t.value=l)}},yv={deep:!0,created(t,e,n){t[ss]=Vr(n),nr(t,"change",()=>{const s=t._modelValue,r=ao(t),i=t.checked,o=t[ss];if(Ie(s)){const a=Su(s,r),l=a!==-1;if(i&&!l)o(s.concat(r));else if(!i&&l){const u=[...s];u.splice(a,1),o(u)}}else if(fi(s)){const a=new Set(s);i?a.add(r):a.delete(r),o(a)}else o(wv(t,i))})},mounted:_h,beforeUpdate(t,e,n){t[ss]=Vr(n),_h(t,e,n)}};function _h(t,{value:e,oldValue:n},s){t._modelValue=e;let r;if(Ie(e))r=Su(e,s.props.value)>-1;else if(fi(e))r=e.has(s.props.value);else{if(e===n)return;r=lr(e,wv(t,!0))}t.checked!==r&&(t.checked=r)}const bv={created(t,{value:e},n){t.checked=lr(e,n.props.value),t[ss]=Vr(n),nr(t,"change",()=>{t[ss](ao(t))})},beforeUpdate(t,{value:e,oldValue:n},s){t[ss]=Vr(s),e!==n&&(t.checked=lr(e,s.props.value))}},n4={deep:!0,created(t,{value:e,modifiers:{number:n}},s){const r=fi(e);nr(t,"change",()=>{const i=Array.prototype.filter.call(t.options,o=>o.selected).map(o=>n?Cu(ao(o)):ao(o));t[ss](t.multiple?r?new Set(i):i:i[0]),t._assigning=!0,Hr(()=>{t._assigning=!1})}),t[ss]=Vr(s)},mounted(t,{value:e}){yh(t,e)},beforeUpdate(t,e,n){t[ss]=Vr(n)},updated(t,{value:e}){t._assigning||yh(t,e)}};function yh(t,e){const n=t.multiple,s=Ie(e);if(!(n&&!s&&!fi(e))){for(let r=0,i=t.options.length;r<i;r++){const o=t.options[r],a=ao(o);if(n)if(s){const l=typeof a;l==="string"||l==="number"?o.selected=e.some(u=>String(u)===String(a)):o.selected=Su(e,a)>-1}else o.selected=e.has(a);else if(lr(ao(o),e)){t.selectedIndex!==r&&(t.selectedIndex=r);return}}!n&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function ao(t){return"_value"in t?t._value:t.value}function wv(t,e){const n=e?"_trueValue":"_falseValue";return n in t?t[n]:e}const s4={created(t,e,n){Xa(t,e,n,null,"created")},mounted(t,e,n){Xa(t,e,n,null,"mounted")},beforeUpdate(t,e,n,s){Xa(t,e,n,s,"beforeUpdate")},updated(t,e,n,s){Xa(t,e,n,s,"updated")}};function xv(t,e){switch(t){case"SELECT":return n4;case"TEXTAREA":return pa;default:switch(e){case"checkbox":return yv;case"radio":return bv;default:return pa}}}function Xa(t,e,n,s,r){const o=xv(t.tagName,n.props&&n.props.type)[r];o&&o(t,e,n,s)}function r4(){pa.getSSRProps=({value:t})=>({value:t}),bv.getSSRProps=({value:t},e)=>{if(e.props&&lr(e.props.value,t))return{checked:!0}},yv.getSSRProps=({value:t},e)=>{if(Ie(t)){if(e.props&&Su(t,e.props.value)>-1)return{checked:!0}}else if(fi(t)){if(e.props&&t.has(e.props.value))return{checked:!0}}else if(t)return{checked:!0}},s4.getSSRProps=(t,e)=>{if(typeof e.type!="string")return;const n=xv(e.type.toUpperCase(),e.props&&e.props.type);if(n.getSSRProps)return n.getSSRProps(t,e)}}const i4=["ctrl","shift","alt","meta"],o4={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>i4.some(n=>t[`${n}Key`]&&!e.includes(n))},It=(t,e)=>{if(!t)return t;const n=t._withMods||(t._withMods={}),s=e.join(".");return n[s]||(n[s]=(r,...i)=>{for(let o=0;o<e.length;o++){const a=o4[e[o]];if(a&&a(r,e))return}return t(r,...i)})},a4={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},cI=(t,e)=>{const n=t._withKeys||(t._withKeys={}),s=e.join(".");return n[s]||(n[s]=r=>{if(!("key"in r))return;const i=Un(r.key);if(e.some(o=>o===i||a4[o]===i))return t(r)})},Cv=Lt({patchProp:U5},A5);let Xo,bh=!1;function kv(){return Xo||(Xo=i5(Cv))}function Sv(){return Xo=bh?Xo:o5(Cv),bh=!0,Xo}const l4=(...t)=>{kv().render(...t)},dI=(...t)=>{Sv().hydrate(...t)},Cd=(...t)=>{const e=kv().createApp(...t),{mount:n}=e;return e.mount=s=>{const r=Av(s);if(!r)return;const i=e._component;!Ge(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=n(r,!1,Ev(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},e},u4=(...t)=>{const e=Sv().createApp(...t),{mount:n}=e;return e.mount=s=>{const r=Av(s);if(r)return n(r,!0,Ev(r))},e};function Ev(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function Av(t){return Ht(t)?document.querySelector(t):t}let wh=!1;const fI=()=>{wh||(wh=!0,r4(),P5())};/*! 20 * vue-router v4.6.4 21 * (c) 2025 Eduardo San Martin Morote 22 * @license MIT 23 */const $i=typeof document<"u";function Lv(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function c4(t){return t.__esModule||t[Symbol.toStringTag]==="Module"||t.default&&Lv(t.default)}const St=Object.assign;function wc(t,e){const n={};for(const s in e){const r=e[s];n[s]=bs(r)?r.map(t):t(r)}return n}const Jo=()=>{},bs=Array.isArray;function xh(t,e){const n={};for(const s in t)n[s]=s in e?e[s]:t[s];return n}const Tv=/#/g,d4=/&/g,f4=/\//g,h4=/=/g,p4=/\?/g,Mv=/\+/g,g4=/%5B/g,v4=/%5D/g,Ov=/%5E/g,m4=/%60/g,Pv=/%7B/g,_4=/%7C/g,$v=/%7D/g,y4=/%20/g;function Kf(t){return t==null?"":encodeURI(""+t).replace(_4,"|").replace(g4,"[").replace(v4,"]")}function b4(t){return Kf(t).replace(Pv,"{").replace($v,"}").replace(Ov,"^")}function kd(t){return Kf(t).replace(Mv,"%2B").replace(y4,"+").replace(Tv,"%23").replace(d4,"%26").replace(m4,"`").replace(Pv,"{").replace($v,"}").replace(Ov,"^")}function w4(t){return kd(t).replace(h4,"%3D")}function x4(t){return Kf(t).replace(Tv,"%23").replace(p4,"%3F")}function C4(t){return x4(t).replace(f4,"%2F")}function ga(t){if(t==null)return null;try{return decodeURIComponent(""+t)}catch{}return""+t}const k4=/\/$/,S4=t=>t.replace(k4,"");function xc(t,e,n="/"){let s,r={},i="",o="";const a=e.indexOf("#");let l=e.indexOf("?");return l=a>=0&&l>a?-1:l,l>=0&&(s=e.slice(0,l),i=e.slice(l,a>0?a:e.length),r=t(i.slice(1))),a>=0&&(s=s||e.slice(0,a),o=e.slice(a,e.length)),s=T4(s!=null?s:e,n),{fullPath:s+i+o,path:s,query:r,hash:ga(o)}}function E4(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function Ch(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function A4(t,e,n){const s=e.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&lo(e.matched[s],n.matched[r])&&Rv(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function lo(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function Rv(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(var n in t)if(!L4(t[n],e[n]))return!1;return!0}function L4(t,e){return bs(t)?kh(t,e):bs(e)?kh(e,t):(t==null?void 0:t.valueOf())===(e==null?void 0:e.valueOf())}function kh(t,e){return bs(e)?t.length===e.length&&t.every((n,s)=>n===e[s]):t.length===1&&t[0]===e}function T4(t,e){if(t.startsWith("/"))return t;if(!t)return e;const n=e.split("/"),s=t.split("/"),r=s[s.length-1];(r===".."||r===".")&&s.push("");let i=n.length-1,o,a;for(o=0;o<s.length;o++)if(a=s[o],a!==".")if(a==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+s.slice(o).join("/")}const _r={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Sd=function(t){return t.pop="pop",t.push="push",t}({}),Cc=function(t){return t.back="back",t.forward="forward",t.unknown="",t}({});function M4(t){if(!t)if($i){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),S4(t)}const O4=/^[^#]+#/;function P4(t,e){return t.replace(O4,"#")+e}function $4(t,e){const n=document.documentElement.getBoundingClientRect(),s=t.getBoundingClientRect();return{behavior:e.behavior,left:s.left-n.left-(e.left||0),top:s.top-n.top-(e.top||0)}}const Hu=()=>({left:window.scrollX,top:window.scrollY});function R4(t){let e;if("el"in t){const n=t.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;e=$4(r,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}function Sh(t,e){return(history.state?history.state.position-e:-1)+t}const Ed=new Map;function V4(t,e){Ed.set(t,e)}function I4(t){const e=Ed.get(t);return Ed.delete(t),e}function H4(t){return typeof t=="string"||t&&typeof t=="object"}function Vv(t){return typeof t=="string"||typeof t=="symbol"}let Gt=function(t){return t[t.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",t[t.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",t[t.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",t[t.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",t[t.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",t}({});const Iv=Symbol("");Gt.MATCHER_NOT_FOUND+"",Gt.NAVIGATION_GUARD_REDIRECT+"",Gt.NAVIGATION_ABORTED+"",Gt.NAVIGATION_CANCELLED+"",Gt.NAVIGATION_DUPLICATED+"";function uo(t,e){return St(new Error,{type:t,[Iv]:!0},e)}function zs(t,e){return t instanceof Error&&Iv in t&&(e==null||!!(t.type&e))}const F4=["params","query","hash"];function D4(t){if(typeof t=="string")return t;if(t.path!=null)return t.path;const e={};for(const n of F4)n in t&&(e[n]=t[n]);return JSON.stringify(e,null,2)}function B4(t){const e={};if(t===""||t==="?")return e;const n=(t[0]==="?"?t.slice(1):t).split("&");for(let s=0;s<n.length;++s){const r=n[s].replace(Mv," "),i=r.indexOf("="),o=ga(i<0?r:r.slice(0,i)),a=i<0?null:ga(r.slice(i+1));if(o in e){let l=e[o];bs(l)||(l=e[o]=[l]),l.push(a)}else e[o]=a}return e}function Eh(t){let e="";for(let n in t){const s=t[n];if(n=w4(n),s==null){s!==void 0&&(e+=(e.length?"&":"")+n);continue}(bs(s)?s.map(r=>r&&kd(r)):[s&&kd(s)]).forEach(r=>{r!==void 0&&(e+=(e.length?"&":"")+n,r!=null&&(e+="="+r))})}return e}function N4(t){const e={};for(const n in t){const s=t[n];s!==void 0&&(e[n]=bs(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return e}const Yf=Symbol(""),Ah=Symbol(""),Fu=Symbol(""),Xf=Symbol(""),Ad=Symbol("");function Ao(){let t=[];function e(s){return t.push(s),()=>{const r=t.indexOf(s);r>-1&&t.splice(r,1)}}function n(){t=[]}return{add:e,list:()=>t.slice(),reset:n}}function Hv(t,e,n){const s=()=>{t[e].delete(n)};Bs(s),Pu(s),If(()=>{t[e].add(n)}),t[e].add(n)}function j4(t){const e=Hn(Yf,{}).value;!e||Hv(e,"leaveGuards",t)}function hI(t){const e=Hn(Yf,{}).value;!e||Hv(e,"updateGuards",t)}function Lr(t,e,n,s,r,i=o=>o()){const o=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((a,l)=>{const u=p=>{p===!1?l(uo(Gt.NAVIGATION_ABORTED,{from:n,to:e})):p instanceof Error?l(p):H4(p)?l(uo(Gt.NAVIGATION_GUARD_REDIRECT,{from:e,to:p})):(o&&s.enterCallbacks[r]===o&&typeof p=="function"&&o.push(p),a())},c=i(()=>t.call(s&&s.instances[r],e,n,u));let d=Promise.resolve(c);t.length<3&&(d=d.then(u)),d.catch(p=>l(p))})}function kc(t,e,n,s,r=i=>i()){const i=[];for(const o of t)for(const a in o.components){let l=o.components[a];if(!(e!=="beforeRouteEnter"&&!o.instances[a]))if(Lv(l)){const u=(l.__vccOpts||l)[e];u&&i.push(Lr(u,n,s,o,a,r))}else{let u=l();i.push(()=>u.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${a}" at "${o.path}"`);const d=c4(c)?c.default:c;o.mods[a]=c,o.components[a]=d;const p=(d.__vccOpts||d)[e];return p&&Lr(p,n,s,o,a,r)()}))}}return i}function U4(t,e){const n=[],s=[],r=[],i=Math.max(e.matched.length,t.matched.length);for(let o=0;o<i;o++){const a=e.matched[o];a&&(t.matched.find(u=>lo(u,a))?s.push(a):n.push(a));const l=t.matched[o];l&&(e.matched.find(u=>lo(u,l))||r.push(l))}return[n,s,r]}/*! 24 * vue-router v4.6.4 25 * (c) 2025 Eduardo San Martin Morote 26 * @license MIT 27 */let z4=()=>location.protocol+"//"+location.host;function Fv(t,e){const{pathname:n,search:s,hash:r}=e,i=t.indexOf("#");if(i>-1){let o=r.includes(t.slice(i))?t.slice(i).length:1,a=r.slice(o);return a[0]!=="/"&&(a="/"+a),Ch(a,"")}return Ch(n,t)+s+r}function q4(t,e,n,s){let r=[],i=[],o=null;const a=({state:p})=>{const g=Fv(t,location),v=n.value,b=e.value;let k=0;if(p){if(n.value=g,e.value=p,o&&o===v){o=null;return}k=b?p.position-b.position:0}else s(g);r.forEach(L=>{L(n.value,v,{delta:k,type:Sd.pop,direction:k?k>0?Cc.forward:Cc.back:Cc.unknown})})};function l(){o=n.value}function u(p){r.push(p);const g=()=>{const v=r.indexOf(p);v>-1&&r.splice(v,1)};return i.push(g),g}function c(){if(document.visibilityState==="hidden"){const{history:p}=window;if(!p.state)return;p.replaceState(St({},p.state,{scroll:Hu()}),"")}}function d(){for(const p of i)p();i=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",c),document.removeEventListener("visibilitychange",c)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",c),document.addEventListener("visibilitychange",c),{pauseListeners:l,listen:u,destroy:d}}function Lh(t,e,n,s=!1,r=!1){return{back:t,current:e,forward:n,replaced:s,position:window.history.length,scroll:r?Hu():null}}function W4(t){const{history:e,location:n}=window,s={value:Fv(t,n)},r={value:e.state};r.value||i(s.value,{back:null,current:s.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function i(l,u,c){const d=t.indexOf("#"),p=d>-1?(n.host&&document.querySelector("base")?t:t.slice(d))+l:z4()+t+l;try{e[c?"replaceState":"pushState"](u,"",p),r.value=u}catch(g){console.error(g),n[c?"replace":"assign"](p)}}function o(l,u){i(l,St({},e.state,Lh(r.value.back,l,r.value.forward,!0),u,{position:r.value.position}),!0),s.value=l}function a(l,u){const c=St({},r.value,e.state,{forward:l,scroll:Hu()});i(c.current,c,!0),i(l,St({},Lh(s.value,l,null),{position:c.position+1},u),!1),s.value=l}return{location:s,state:r,push:a,replace:o}}function G4(t){t=M4(t);const e=W4(t),n=q4(t,e.state,e.location,e.replace);function s(i,o=!0){o||n.pauseListeners(),history.go(i)}const r=St({location:"",base:t,go:s,createHref:P4.bind(null,t)},e,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>e.state.value}),r}let Xr=function(t){return t[t.Static=0]="Static",t[t.Param=1]="Param",t[t.Group=2]="Group",t}({});var en=function(t){return t[t.Static=0]="Static",t[t.Param=1]="Param",t[t.ParamRegExp=2]="ParamRegExp",t[t.ParamRegExpEnd=3]="ParamRegExpEnd",t[t.EscapeNext=4]="EscapeNext",t}(en||{});const Z4={type:Xr.Static,value:""},K4=/[a-zA-Z0-9_]/;function Y4(t){if(!t)return[[]];if(t==="/")return[[Z4]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(g){throw new Error(`ERR (${n})/"${u}": ${g}`)}let n=en.Static,s=n;const r=[];let i;function o(){i&&r.push(i),i=[]}let a=0,l,u="",c="";function d(){!u||(n===en.Static?i.push({type:Xr.Static,value:u}):n===en.Param||n===en.ParamRegExp||n===en.ParamRegExpEnd?(i.length>1&&(l==="*"||l==="+")&&e(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:Xr.Param,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):e("Invalid state to consume buffer"),u="")}function p(){u+=l}for(;a<t.length;){if(l=t[a++],l==="\\"&&n!==en.ParamRegExp){s=n,n=en.EscapeNext;continue}switch(n){case en.Static:l==="/"?(u&&d(),o()):l===":"?(d(),n=en.Param):p();break;case en.EscapeNext:p(),n=s;break;case en.Param:l==="("?n=en.ParamRegExp:K4.test(l)?p():(d(),n=en.Static,l!=="*"&&l!=="?"&&l!=="+"&&a--);break;case en.ParamRegExp:l===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+l:n=en.ParamRegExpEnd:c+=l;break;case en.ParamRegExpEnd:d(),n=en.Static,l!=="*"&&l!=="?"&&l!=="+"&&a--,c="";break;default:e("Unknown state");break}}return n===en.ParamRegExp&&e(`Unfinished custom RegExp for param "${u}"`),d(),o(),r}const Th="[^/]+?",X4={sensitive:!1,strict:!1,start:!0,end:!0};var $n=function(t){return t[t._multiplier=10]="_multiplier",t[t.Root=90]="Root",t[t.Segment=40]="Segment",t[t.SubSegment=30]="SubSegment",t[t.Static=40]="Static",t[t.Dynamic=20]="Dynamic",t[t.BonusCustomRegExp=10]="BonusCustomRegExp",t[t.BonusWildcard=-50]="BonusWildcard",t[t.BonusRepeatable=-20]="BonusRepeatable",t[t.BonusOptional=-8]="BonusOptional",t[t.BonusStrict=.7000000000000001]="BonusStrict",t[t.BonusCaseSensitive=.25]="BonusCaseSensitive",t}($n||{});const J4=/[.+*?^${}()[\]/\\]/g;function Q4(t,e){const n=St({},X4,e),s=[];let r=n.start?"^":"";const i=[];for(const u of t){const c=u.length?[]:[$n.Root];n.strict&&!u.length&&(r+="/");for(let d=0;d<u.length;d++){const p=u[d];let g=$n.Segment+(n.sensitive?$n.BonusCaseSensitive:0);if(p.type===Xr.Static)d||(r+="/"),r+=p.value.replace(J4,"\\$&"),g+=$n.Static;else if(p.type===Xr.Param){const{value:v,repeatable:b,optional:k,regexp:L}=p;i.push({name:v,repeatable:b,optional:k});const E=L||Th;if(E!==Th){g+=$n.BonusCustomRegExp;try{`${E}`}catch(m){throw new Error(`Invalid custom RegExp for param "${v}" (${E}): `+m.message)}}let _=b?`((?:${E})(?:/(?:${E}))*)`:`(${E})`;d||(_=k&&u.length<2?`(?:/${_})`:"/"+_),k&&(_+="?"),r+=_,g+=$n.Dynamic,k&&(g+=$n.BonusOptional),b&&(g+=$n.BonusRepeatable),E===".*"&&(g+=$n.BonusWildcard)}c.push(g)}s.push(c)}if(n.strict&&n.end){const u=s.length-1;s[u][s[u].length-1]+=$n.BonusStrict}n.strict||(r+="/?"),n.end?r+="$":n.strict&&!r.endsWith("/")&&(r+="(?:/|$)");const o=new RegExp(r,n.sensitive?"":"i");function a(u){const c=u.match(o),d={};if(!c)return null;for(let p=1;p<c.length;p++){const g=c[p]||"",v=i[p-1];d[v.name]=g&&v.repeatable?g.split("/"):g}return d}function l(u){let c="",d=!1;for(const p of t){(!d||!c.endsWith("/"))&&(c+="/"),d=!1;for(const g of p)if(g.type===Xr.Static)c+=g.value;else if(g.type===Xr.Param){const{value:v,repeatable:b,optional:k}=g,L=v in u?u[v]:"";if(bs(L)&&!b)throw new Error(`Provided param "${v}" is an array but it is not repeatable (* or + modifiers)`);const E=bs(L)?L.join("/"):L;if(!E)if(k)p.length<2&&(c.endsWith("/")?c=c.slice(0,-1):d=!0);else throw new Error(`Missing required param "${v}"`);c+=E}}return c||"/"}return{re:o,score:s,keys:i,parse:a,stringify:l}}function e3(t,e){let n=0;for(;n<t.length&&n<e.length;){const s=e[n]-t[n];if(s)return s;n++}return t.length<e.length?t.length===1&&t[0]===$n.Static+$n.Segment?-1:1:t.length>e.length?e.length===1&&e[0]===$n.Static+$n.Segment?1:-1:0}function Dv(t,e){let n=0;const s=t.score,r=e.score;for(;n<s.length&&n<r.length;){const i=e3(s[n],r[n]);if(i)return i;n++}if(Math.abs(r.length-s.length)===1){if(Mh(s))return 1;if(Mh(r))return-1}return r.length-s.length}function Mh(t){const e=t[t.length-1];return t.length>0&&e[e.length-1]<0}const t3={strict:!1,end:!0,sensitive:!1};function n3(t,e,n){const s=Q4(Y4(t.path),n),r=St(s,{record:t,parent:e,children:[],alias:[]});return e&&!r.record.aliasOf==!e.record.aliasOf&&e.children.push(r),r}function s3(t,e){const n=[],s=new Map;e=xh(t3,e);function r(d){return s.get(d)}function i(d,p,g){const v=!g,b=Ph(d);b.aliasOf=g&&g.record;const k=xh(e,d),L=[b];if("alias"in d){const m=typeof d.alias=="string"?[d.alias]:d.alias;for(const x of m)L.push(Ph(St({},b,{components:g?g.record.components:b.components,path:x,aliasOf:g?g.record:b})))}let E,_;for(const m of L){const{path:x}=m;if(p&&x[0]!=="/"){const A=p.record.path,h=A[A.length-1]==="/"?"":"/";m.path=p.record.path+(x&&h+x)}if(E=n3(m,p,k),g?g.alias.push(E):(_=_||E,_!==E&&_.alias.push(E),v&&d.name&&!$h(E)&&o(d.name)),Bv(E)&&l(E),b.children){const A=b.children;for(let h=0;h<A.length;h++)i(A[h],E,g&&g.children[h])}g=g||E}return _?()=>{o(_)}:Jo}function o(d){if(Vv(d)){const p=s.get(d);p&&(s.delete(d),n.splice(n.indexOf(p),1),p.children.forEach(o),p.alias.forEach(o))}else{const p=n.indexOf(d);p>-1&&(n.splice(p,1),d.record.name&&s.delete(d.record.name),d.children.forEach(o),d.alias.forEach(o))}}function a(){return n}function l(d){const p=o3(d,n);n.splice(p,0,d),d.record.name&&!$h(d)&&s.set(d.record.name,d)}function u(d,p){let g,v={},b,k;if("name"in d&&d.name){if(g=s.get(d.name),!g)throw uo(Gt.MATCHER_NOT_FOUND,{location:d});k=g.record.name,v=St(Oh(p.params,g.keys.filter(_=>!_.optional).concat(g.parent?g.parent.keys.filter(_=>_.optional):[]).map(_=>_.name)),d.params&&Oh(d.params,g.keys.map(_=>_.name))),b=g.stringify(v)}else if(d.path!=null)b=d.path,g=n.find(_=>_.re.test(b)),g&&(v=g.parse(b),k=g.record.name);else{if(g=p.name?s.get(p.name):n.find(_=>_.re.test(p.path)),!g)throw uo(Gt.MATCHER_NOT_FOUND,{location:d,currentLocation:p});k=g.record.name,v=St({},p.params,d.params),b=g.stringify(v)}const L=[];let E=g;for(;E;)L.unshift(E.record),E=E.parent;return{name:k,path:b,params:v,matched:L,meta:i3(L)}}t.forEach(d=>i(d));function c(){n.length=0,s.clear()}return{addRoute:i,resolve:u,removeRoute:o,clearRoutes:c,getRoutes:a,getRecordMatcher:r}}function Oh(t,e){const n={};for(const s of e)s in t&&(n[s]=t[s]);return n}function Ph(t){const e={path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:t.aliasOf,beforeEnter:t.beforeEnter,props:r3(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}};return Object.defineProperty(e,"mods",{value:{}}),e}function r3(t){const e={},n=t.props||!1;if("component"in t)e.default=n;else for(const s in t.components)e[s]=typeof n=="object"?n[s]:n;return e}function $h(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function i3(t){return t.reduce((e,n)=>St(e,n.meta),{})}function o3(t,e){let n=0,s=e.length;for(;n!==s;){const i=n+s>>1;Dv(t,e[i])<0?s=i:n=i+1}const r=a3(t);return r&&(s=e.lastIndexOf(r,s-1)),s}function a3(t){let e=t;for(;e=e.parent;)if(Bv(e)&&Dv(t,e)===0)return e}function Bv({record:t}){return!!(t.name||t.components&&Object.keys(t.components).length||t.redirect)}function Rh(t){const e=Hn(Fu),n=Hn(Xf),s=Ne(()=>{const l=y(t.to);return e.resolve(l)}),r=Ne(()=>{const{matched:l}=s.value,{length:u}=l,c=l[u-1],d=n.matched;if(!c||!d.length)return-1;const p=d.findIndex(lo.bind(null,c));if(p>-1)return p;const g=Vh(l[u-2]);return u>1&&Vh(c)===g&&d[d.length-1].path!==g?d.findIndex(lo.bind(null,l[u-2])):p}),i=Ne(()=>r.value>-1&&f3(n.params,s.value.params)),o=Ne(()=>r.value>-1&&r.value===n.matched.length-1&&Rv(n.params,s.value.params));function a(l={}){if(d3(l)){const u=e[y(t.replace)?"replace":"push"](y(t.to)).catch(Jo);return t.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:s,href:Ne(()=>s.value.href),isActive:i,isExactActive:o,navigate:a}}function l3(t){return t.length===1?t[0]:t}const u3=Ze({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"},viewTransition:Boolean},useLink:Rh,setup(t,{slots:e}){const n=Ds(Rh(t)),{options:s}=Hn(Fu),r=Ne(()=>({[Ih(t.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[Ih(t.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=e.default&&l3(e.default(n));return t.custom?i:Gf("a",{"aria-current":n.isExactActive?t.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},i)}}}),c3=u3;function d3(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function f3(t,e){for(const n in e){const s=e[n],r=t[n];if(typeof s=="string"){if(s!==r)return!1}else if(!bs(r)||r.length!==s.length||s.some((i,o)=>i.valueOf()!==r[o].valueOf()))return!1}return!0}function Vh(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const Ih=(t,e,n)=>t!=null?t:e!=null?e:n,h3=Ze({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:n}){const s=Hn(Ad),r=Ne(()=>t.route||s.value),i=Hn(Ah,0),o=Ne(()=>{let u=y(i);const{matched:c}=r.value;let d;for(;(d=c[u])&&!d.components;)u++;return u}),a=Ne(()=>r.value.matched[o.value]);fl(Ah,Ne(()=>o.value+1)),fl(Yf,a),fl(Ad,r);const l=ae();return ct(()=>[l.value,a.value,t.name],([u,c,d],[p,g,v])=>{c&&(c.instances[d]=u,g&&g!==c&&u&&u===p&&(c.leaveGuards.size||(c.leaveGuards=g.leaveGuards),c.updateGuards.size||(c.updateGuards=g.updateGuards))),u&&c&&(!g||!lo(c,g)||!p)&&(c.enterCallbacks[d]||[]).forEach(b=>b(u))},{flush:"post"}),()=>{const u=r.value,c=t.name,d=a.value,p=d&&d.components[c];if(!p)return Hh(n.default,{Component:p,route:u});const g=d.props[c],v=g?g===!0?u.params:typeof g=="function"?g(u):g:null,k=Gf(p,St({},v,e,{onVnodeUnmounted:L=>{L.component.isUnmounted&&(d.instances[c]=null)},ref:l}));return Hh(n.default,{Component:k,route:u})||k}}});function Hh(t,e){if(!t)return null;const n=t(e);return n.length===1?n[0]:n}const p3=h3;function g3(t){const e=s3(t.routes,t),n=t.parseQuery||B4,s=t.stringifyQuery||Eh,r=t.history,i=Ao(),o=Ao(),a=Ao(),l=pg(_r);let u=_r;$i&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=wc.bind(null,B=>""+B),d=wc.bind(null,C4),p=wc.bind(null,ga);function g(B,I){let W,J;return Vv(B)?(W=e.getRecordMatcher(B),J=I):J=B,e.addRoute(J,W)}function v(B){const I=e.getRecordMatcher(B);I&&e.removeRoute(I)}function b(){return e.getRoutes().map(B=>B.record)}function k(B){return!!e.getRecordMatcher(B)}function L(B,I){if(I=St({},I||l.value),typeof B=="string"){const P=xc(n,B,I.path),q=e.resolve({path:P.path},I),te=r.createHref(P.fullPath);return St(P,q,{params:p(q.params),hash:ga(P.hash),redirectedFrom:void 0,href:te})}let W;if(B.path!=null)W=St({},B,{path:xc(n,B.path,I.path).path});else{const P=St({},B.params);for(const q in P)P[q]==null&&delete P[q];W=St({},B,{params:d(P)}),I.params=d(I.params)}const J=e.resolve(W,I),Ee=B.hash||"";J.params=c(p(J.params));const Te=E4(s,St({},B,{hash:b4(Ee),path:J.path})),M=r.createHref(Te);return St({fullPath:Te,hash:Ee,query:s===Eh?N4(B.query):B.query||{}},J,{redirectedFrom:void 0,href:M})}function E(B){return typeof B=="string"?xc(n,B,l.value.path):St({},B)}function _(B,I){if(u!==B)return uo(Gt.NAVIGATION_CANCELLED,{from:I,to:B})}function m(B){return h(B)}function x(B){return m(St(E(B),{replace:!0}))}function A(B,I){const W=B.matched[B.matched.length-1];if(W&&W.redirect){const{redirect:J}=W;let Ee=typeof J=="function"?J(B,I):J;return typeof Ee=="string"&&(Ee=Ee.includes("?")||Ee.includes("#")?Ee=E(Ee):{path:Ee},Ee.params={}),St({query:B.query,hash:B.hash,params:Ee.path!=null?{}:B.params},Ee)}}function h(B,I){const W=u=L(B),J=l.value,Ee=B.state,Te=B.force,M=B.replace===!0,P=A(W,J);if(P)return h(St(E(P),{state:typeof P=="object"?St({},Ee,P.state):Ee,force:Te,replace:M}),I||W);const q=W;q.redirectedFrom=I;let te;return!Te&&A4(s,J,W)&&(te=uo(Gt.NAVIGATION_DUPLICATED,{to:q,from:J}),nt(J,J,!0,!1)),(te?Promise.resolve(te):R(q,J)).catch(Q=>zs(Q)?zs(Q,Gt.NAVIGATION_GUARD_REDIRECT)?Q:ot(Q):ne(Q,q,J)).then(Q=>{if(Q){if(zs(Q,Gt.NAVIGATION_GUARD_REDIRECT))return h(St({replace:M},E(Q.to),{state:typeof Q.to=="object"?St({},Ee,Q.to.state):Ee,force:Te}),I||q)}else Q=H(q,J,!0,M,Ee);return G(q,J,Q),Q})}function S(B,I){const W=_(B,I);return W?Promise.reject(W):Promise.resolve()}function $(B){const I=Ke.values().next().value;return I&&typeof I.runWithContext=="function"?I.runWithContext(B):B()}function R(B,I){let W;const[J,Ee,Te]=U4(B,I);W=kc(J.reverse(),"beforeRouteLeave",B,I);for(const P of J)P.leaveGuards.forEach(q=>{W.push(Lr(q,B,I))});const M=S.bind(null,B,I);return W.push(M),ft(W).then(()=>{W=[];for(const P of i.list())W.push(Lr(P,B,I));return W.push(M),ft(W)}).then(()=>{W=kc(Ee,"beforeRouteUpdate",B,I);for(const P of Ee)P.updateGuards.forEach(q=>{W.push(Lr(q,B,I))});return W.push(M),ft(W)}).then(()=>{W=[];for(const P of Te)if(P.beforeEnter)if(bs(P.beforeEnter))for(const q of P.beforeEnter)W.push(Lr(q,B,I));else W.push(Lr(P.beforeEnter,B,I));return W.push(M),ft(W)}).then(()=>(B.matched.forEach(P=>P.enterCallbacks={}),W=kc(Te,"beforeRouteEnter",B,I,$),W.push(M),ft(W))).then(()=>{W=[];for(const P of o.list())W.push(Lr(P,B,I));return W.push(M),ft(W)}).catch(P=>zs(P,Gt.NAVIGATION_CANCELLED)?P:Promise.reject(P))}function G(B,I,W){a.list().forEach(J=>$(()=>J(B,I,W)))}function H(B,I,W,J,Ee){const Te=_(B,I);if(Te)return Te;const M=I===_r,P=$i?history.state:{};W&&(J||M?r.replace(B.fullPath,St({scroll:M&&P&&P.scroll},Ee)):r.push(B.fullPath,Ee)),l.value=B,nt(B,I,W,M),ot()}let ee;function j(){ee||(ee=r.listen((B,I,W)=>{if(!xe.listening)return;const J=L(B),Ee=A(J,xe.currentRoute.value);if(Ee){h(St(Ee,{replace:!0,force:!0}
27),J).catch(Jo);return}u=J;const Te=l.value;$i&&V4(Sh(Te.fullPath,W.delta),Hu()),R(J,Te).catch(M=>zs(M,Gt.NAVIGATION_ABORTED|Gt.NAVIGATION_CANCELLED)?M:zs(M,Gt.NAVIGATION_GUARD_REDIRECT)?(h(St(E(M.to),{force:!0}),J).then(P=>{zs(P,Gt.NAVIGATION_ABORTED|Gt.NAVIGATION_DUPLICATED)&&!W.delta&&W.type===Sd.pop&&r.go(-1,!1)}).catch(Jo),Promise.reject()):(W.delta&&r.go(-W.delta,!1),ne(M,J,Te))).then(M=>{M=M||H(J,Te,!1),M&&(W.delta&&!zs(M,Gt.NAVIGATION_CANCELLED)?r.go(-W.delta,!1):W.type===Sd.pop&&zs(M,Gt.NAVIGATION_ABORTED|Gt.NAVIGATION_DUPLICATED)&&r.go(-1,!1)),G(J,Te,M)}).catch(Jo)}))}let le=Ao(),X=Ao(),re;function ne(B,I,W){ot(B);const J=X.list();return J.length?J.forEach(Ee=>Ee(B,I,W)):console.error(B),Promise.reject(B)}function De(){return re&&l.value!==_r?Promise.resolve():new Promise((B,I)=>{le.add([B,I])})}function ot(B){return re||(re=!B,j(),le.list().forEach(([I,W])=>B?W(B):I()),le.reset()),B}function nt(B,I,W,J){const{scrollBehavior:Ee}=t;if(!$i||!Ee)return Promise.resolve();const Te=!W&&I4(Sh(B.fullPath,0))||(J||!W)&&history.state&&history.state.scroll||null;return Hr().then(()=>Ee(B,I,Te)).then(M=>M&&R4(M)).catch(M=>ne(M,B,I))}const ye=B=>r.go(B);let ut;const Ke=new Set,xe={currentRoute:l,listening:!0,addRoute:g,removeRoute:v,clearRoutes:e.clearRoutes,hasRoute:k,getRoutes:b,resolve:L,options:t,push:m,replace:x,go:ye,back:()=>ye(-1),forward:()=>ye(1),beforeEach:i.add,beforeResolve:o.add,afterEach:a.add,onError:X.add,isReady:De,install(B){B.component("RouterLink",c3),B.component("RouterView",p3),B.config.globalProperties.$router=xe,Object.defineProperty(B.config.globalProperties,"$route",{enumerable:!0,get:()=>y(l)}),$i&&!ut&&l.value===_r&&(ut=!0,m(r.location).catch(J=>{}));const I={};for(const J in _r)Object.defineProperty(I,J,{get:()=>l.value[J],enumerable:!0});B.provide(Fu,xe),B.provide(Xf,hg(I)),B.provide(Ad,l);const W=B.unmount;Ke.add(B),B.unmount=function(){Ke.delete(B),Ke.size<1&&(u=_r,ee&&ee(),ee=null,l.value=_r,ut=!1,re=!1),W()}}};function ft(B){return B.reduce((I,W)=>I.then(()=>$(W)),Promise.resolve())}return xe}function is(){return Hn(Fu)}function Oa(t){return Hn(Xf)}const Wn=Ze({__name:"Input",props:{modelValue:{},textarea:{type:Boolean},disabled:{type:Boolean},required:{type:Boolean},min:{},max:{},rows:{},type:{},placeholder:{},transparent:{type:Boolean}},emits:["update:modelValue","blur","input"],setup(t,{emit:e}){const n=t,s=e,r=i=>{s("update:modelValue",i.target.value),s("input")};return(i,o)=>(w(),pe(ps(n.textarea?"textarea":"input"),{value:n.modelValue,onInput:r,onBlur:o[0]||(o[0]=a=>s("blur")),type:t.type,required:n.required,disabled:n.disabled,min:n.min,max:n.max,rows:n.rows,placeholder:n.placeholder,class:Qe(["w-full py-1.5 my-0.5 px-2 focus-visible:outline-none bg-zinc-800 focus:ring-2 ring-blue-500 disabled:opacity-70 rounded-md text-lg md:text-base",n.textarea?"resize-none overflow-y-hidden":""])},null,40,["value","type","required","disabled","min","max","rows","placeholder","class"]))}}),v3={key:0,viewBox:"0 0 24 24"},m3={key:1,viewBox:"0 0 24 24"},_3={key:2,viewBox:"0 0 24 24"},y3={key:3,viewBox:"0 0 24 24"},b3={key:4,viewBox:"0 0 24 24"},w3={key:5,viewBox:"0 0 24 24"},x3={key:6,viewBox:"0 0 24 24"},C3={key:7,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},k3={key:8,viewBox:"0 0 24 24"},S3={key:9,viewBox:"0 0 20 20",fill:"currentColor"},E3={key:10,viewBox:"0 0 24 24"},A3={key:11,viewBox:"0 0 24 24"},L3={key:12,viewBox:"0 0 24 24"},T3={key:13,viewBox:"0 0 24 24"},M3={key:14,viewBox:"0 0 24 24"},O3={key:15,xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 50 50"},P3={key:16,viewBox:"0 0 24 24"},$3={key:17,viewBox:"0 0 97 142",fill:"none",xmlns:"http://www.w3.org/2000/svg"},R3={key:18,viewBox:"0 0 64 64",xmlns:"http://www.w3.org/2000/svg"},V3={key:19,viewBox:"0 0 24 24"},I3={key:20,viewBox:"0 0 24 24"},H3={key:21,viewBox:"0 0 24 24"},F3={key:22,viewBox:"0 0 24 24"},D3={key:23,viewBox:"0 0 24 24"},B3={key:24,viewBox:"0 0 24 24"},N3={key:25,viewBox:"0 0 24 24"},j3={key:26,viewBox:"0 0 24 24"},U3={key:27,viewBox:"0 0 24 24"},z3={key:28,viewBox:"0 0 24 24"},q3={key:29,viewBox:"0 0 24 24"}
27,W3={key:30,viewBox:"0 0 24 24"},G3={key:31,viewBox:"0 0 24 24"},Z3={key:32,viewBox:"0 0 24 24"},K3={key:33,viewBox:"0 0 24 24"},Y3={key:34,viewBox:"0 0 24 24"},X3={key:35,viewBox:"0 0 24 24"},J3={key:36,viewBox:"0 0 24 24"},Q3={key:37,viewBox:"0 0 24 24"},eb={key:38,viewBox:"0 0 24 24"},tb={key:39,viewBox:"0 0 24 24"},nb={key:40,viewBox:"0 0 24 24"},sb={key:41,viewBox:"0 0 24 24"},rb={key:42,viewBox:"0 0 24 24"},ib={key:43,viewBox:"0 0 24 24"},ob={key:44,viewBox:"0 0 24 24"},ab={key:45,viewBox:"0 0 24 24"},lb={key:46,viewBox:"0 0 24 24"},ub={key:47,viewBox:"0 0 24 24"},cb={key:48,viewBox:"0 0 24 24"},db={key:49,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},fb={key:50,viewBox:"0 0 24 24"},hb={key:51,viewBox:"0 0 24 24"},pb={key:52,viewBox:"0 0 24 24"},gb={key:53,viewBox:"0 0 24 24"},vb={key:54,viewBox:"0 0 24 24"},mb={key:55,viewBox:"0 0 24 24"},_b={key:56,viewBox:"0 0 24 24"},yb={key:57,viewBox:"0 0 24 24"},bb={key:58,viewBox:"0 0 24 24"},wb={key:59,viewBox:"0 0 24 24"},xb={key:60,viewBox:"0 0 24 24"},Cb={key:61,viewBox:"0 0 240 240",fill:"none",xmlns:"http://www.w3.org/2000/svg"},kb={key:62,viewBox:"0 0 24 24"},Sb={key:63,viewBox:"0 0 24 24"},Eb={key:64,viewBox:"0 0 24 24"},Ab={key:65,viewBox:"0 0 24 24"},Lb={key:66,viewBox:"0 0 24 24"},Tb={key:67,viewBox:"0 0 24 24"},Mb={key:68,viewBox:"0 0 24 24"},Ob={key:69,viewBox:"0 0 24 24"},Pb={key:70,viewBox:"0 0 24 24"},$b={key:71,viewBox:"0 0 24 24"},Rb={key:72,viewBox:"0 0 24 24"},Vb={key:73,viewBox:"0 0 24 24"},Ib={key:74,viewBox:"0 0 24 24"},Hb={key:75,viewBox:"0 0 24 24"},Fb={key:76},Db={key:77,viewBox:"0 0 24 24"},Bb={key:78,viewBox:"0 0 24 24"},Nb={key:79,viewBox:"0 0 24 24"},jb={key:80,viewBox:"0 0 24 24"},Ub={key:81,class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},zb={key:82,viewBox:"0 0 24 24"},qb={key:83,viewBox:"0 0 24 24"},Wb={key:84,viewBox:"0 0 24 24"},Gb={key:85,viewBox:"0 0 24 24"},Zb={key:86,viewBox:"0 0 24 24"},Kb={key:87,viewBox:"0 0 24 24"},Yb={key:88,fill:"none",viewBox:"0 0 24 24"},Xb={key:89,fill:"none",viewBox:"0 0 38 36"},Jb={key:90,viewBox:"0 0 24 24"},Qb={key:91,viewBox:"0 0 256 256",fill:"none"},e7={key:92,viewBox:"0 0 24 24"},t7={key:93,viewBox:"0 0 24 24"},n7={key:94,viewBox:"0 0 24 24"},s7={key:95,fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256"}
27,r7={key:96,viewBox:"0 0 24 24"},i7={key:97,viewBox:"0 0 24 24"},o7={key:98,viewBox:"0 0 24 24"},a7={key:99,viewBox:"0 0 24 24"},l7={key:100,viewBox:"0 0 24 24"},u7={key:101,viewBox:"0 0 24 24"},c7={key:102,viewBox:"0 0 24 24"},d7={key:103,viewBox:"0 0 24 24"},f7={key:104,viewBox:"0 0 24 24"},h7={key:105,viewBox:"0 0 24 24"},p7={key:106,viewBox:"0 0 24 24"},g7={key:107,viewBox:"0 0 24 24"},v7={key:108,viewBox:"0 0 24 24"},m7={key:109,viewBox:"0 0 24 24"},_7={key:110,viewBox:"0 0 24 24"},y7={key:111,viewBox:"0 0 24 24"},b7={key:112,viewBox:"0 0 24 24"},w7={key:113,viewBox:"0 0 24 24"},x7={key:114,viewBox:"0 0 24 24"},C7={key:115,viewBox:"0 0 24 24"},k7={key:116,viewBox:"0 0 24 24"},S7={key:117,viewBox:"0 0 24 24"},E7={key:118,viewBox:"0 0 24 24",fill:"none"},A7={key:119,viewBox:"0 0 24 24",fill:"none"},L7={key:120,viewBox:"0 0 24 24",fill:"none"},T7={key:121,viewBox:"0 0 173 81",fill:"none"},M7={key:122,viewBox:"0 0 24 24"},O7={key:123,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},P7={key:124,viewBox:"0 -23.5 256 256",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},$7={key:125,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},R7={key:126,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22 21"},V7={key:127,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},I7={key:128,viewBox:"-2.04 -2.04 24.52 24.52",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},H7={key:129,viewBox:"0 0 24 24"},F7={key:130,viewBox:"0 0 24 24"},D7={key:131,viewBox:"0 0 24 24"},B7={key:132,fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},N7={key:133,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},j7={key:134,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 20",fill:"currentColor"},U7={key:135,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 20",fill:"currentColor"},z7={key:136,version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 26.676 26.676","xml:space":"preserve"},q7={key:137,fill:"#302c2c",height:"64px",width:"64px",version:"1.1",id:"Icons",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32","xml:space":"preserve",stroke:"#302c2c"},W7={key:138,fill:"#000000",height:"64px",width:"64px",version:"1.1",id:"Icons",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32","xml:space":"preserve"},G7={key:139,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},Z7={key:140,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",fill:"currentColor",version:"1.1",viewBox:"0 0 874.1 874.1","xml:space":"preserve"},K7={key:141,id:"iconSvg",xmlns:"http://www.w3.org/2000/svg",class:"animate-spin",fill:"currentColor",viewBox:"0 0 24 24",stroke:"currentColor"},Y7={key:142,id:"iconSvg",xmlns:"http://www.w3.org/2000/svg",class:"pop",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},X7={key:143,viewBox:"0 0 24 24"},J7={key:144,class:"svg-icon",style:{"vertical-align":"middle",fill:"currentColor",overflow:"hidden"},viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Q7={key:145,fill:"currentColor",width:"20",height:"20",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},e8={key:146,xmlns:"http://www.w3.org/2000/svg",width:"800px",height:"800px",viewBox:"0 0 24 24",fill:"none"},t8={key:147,viewBox:"0 0 800 800",xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"fill-rule":"evenodd","clip-rule":"evenodd","stroke-linecap":"round","stroke-linejoin":"round"}},n8={key:148,fill:"#ffffff",width:"800px",height:"800px",viewBox:"0 0 32 32",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},s8={key:149,width:"100%",height:"100%",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r8={key:150,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},i8={key:151,viewBox:"0 0 24 24",class:"h-5 w-5",fill:"currentColor"},o8={key:152,viewBox:"0 0 24 24"},a8={key:153,viewBox:"0 0 24 24"},l8={key:154,viewBox:"0 0 24 24"}
27,u8={key:155,viewBox:"0 0 24 24"},c8={key:156,xmlns:"http://www.w3.org/2000/svg",width:"800",height:"800",viewBox:"0 0 64 64","xml:space":"preserve"},d8={key:157,viewBox:"0 0 24 24"},f8={key:158,viewBox:"0 0 24 24"},h8={key:159,viewBox:"0 0 24 24"},p8={key:160,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},g8={key:161,class:"mx-auto h-20 w-20 text-zinc-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1.5",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},v8={key:162,viewBox:"0 0 24 24"},m8={key:163,viewBox:"0 0 24 24"},_8={key:164,viewBox:"0 0 24 24"},y8={key:165,viewBox:"0 0 24 24"},b8={key:166,viewBox:"0 0 24 24"},w8={key:167,class:"w-8 h-8","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 16"},x8={key:168,viewBox:"0 0 70 70",xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"fill-rule":"evenodd","clip-rule":"evenodd","stroke-linecap":"round","stroke-linejoin":"round"}},C8={key:169,viewBox:"0 0 14 14"},k8={key:170,viewBox:"0 0 14 14"},S8={key:171,viewBox:"0 0 14 14"},E8={key:172,viewBox:"0 0 14 14"},A8={key:173,viewBox:"0 0 14 14"},L8={key:174,viewBox:"0 0 14 14"},T8={key:175,viewBox:"0 0 14 14"},M8={key:176,viewBox:"0 0 14 14"},O8={key:177,viewBox:"0 0 14 14"},P8={key:178,viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","xml:space":"preserve","xmlns:serif":"http://www.serif.com/",style:{"fill-rule":"evenodd","clip-rule":"evenodd","stroke-linejoin":"round","stroke-miterlimit":"2"}},$8={key:179,viewBox:"0 0 512 512",fill:"currentColor"},R8={key:180,viewBox:"0 0 14 14",fill:"currentColor"},V8={key:181,viewBox:"0 0 14 14",fill:"currentColor",style:{"fill-rule":"evenodd","clip-rule":"evenodd"}},I8={key:182,viewBox:"0 0 24 24"},H8={key:183,xmlns:"http://www.w3.org/2000/svg",width:"800px",height:"800px",viewBox:"0 0 24 24",fill:"none"},F8={key:184,viewBox:"0 0 24 24"},D8={key:185,viewBox:"0 0 24 24"},B8={key:186,viewBox:"0 0 14 14"},N8={key:187,viewBox:"0 0 24 24"},Pe=Ze({__name:"Icon",props:{name:{}},setup(t){const e=t,n=s=>e.name===s;return(s,r)=>n("fire")?(w(),C("svg",v3,[...r[0]||(r[0]=[f("path",{fill:"currentColor",d:"M17.66 11.2C17.43 10.9 17.15 10.64 16.89 10.38C16.22 9.78 15.46 9.35 14.82 8.72C13.33 7.26 13 4.85 13.95 3C13 3.23 12.17 3.75 11.46 4.32C8.87 6.4 7.85 10.07 9.07 13.22C9.11 13.32 9.15 13.42 9.15 13.55C9.15 13.77 9 13.97 8.8 14.05C8.57 14.15 8.33 14.09 8.14 13.93C8.08 13.88 8.04 13.83 8 13.76C6.87 12.33 6.69 10.28 7.45 8.64C5.78 10 4.87 12.3 5 14.47C5.06 14.97 5.12 15.47 5.29 15.97C5.43 16.57 5.7 17.17 6 17.7C7.08 19.43 8.95 20.67 10.96 20.92C13.1 21.19 15.39 20.8 17.03 19.32C18.86 17.66 19.5 15 18.56 12.72L18.43 12.46C18.22 12 17.66 11.2 17.66 11.2M14.5 17.5C14.22 17.74 13.76 18 13.4 18.1C12.28 18.5 11.16 17.94 10.5 17.28C11.69 17 12.4 16.12 12.61 15.23C12.78 14.43 12.46 13.77 12.33 13C12.21 12.26 12.23 11.63 12.5 10.94C12.69 11.32 12.89 11.7 13.13 12C13.9 13 15.11 13.44 15.37 14.8C15.41 14.94 15.43 15.08 15.43 15.23C15.46 16.05 15.1 16.95 14.5 17.5H14.5Z"},null,-1)])])):n("new")?(w(),C("svg",m3,[...r[1]||(r[1]=[f("path",{fill:"currentColor",d:"M20,11H4V8H20M20,15H13V13H20M20,19H13V17H20M11,19H4V13H11M20.33,4.67L18.67,3L17,4.67L15.33,3L13.67,4.67L12,3L10.33,4.67L8.67,3L7,4.67L5.33,3L3.67,4.67L2,3V19A2,2 0 0,0 4,21H20A2,2 0 0,0 22,19V3L20.33,4.67Z"},null,-1)])])):n("top")?(w(),C("svg",_3,[...r[2]||(r[2]=[f("path",{fill:"currentColor",d:"M3,22V8H7V22H3M10,22V2H14V22H10M17,22V14H21V22H17Z"},null,-1)])])):n("energy")?(w(),C("svg",y3,[...r[3]||(r[3]=[f("path",{fill:"currentColor",d:"M11.56,3L9.47,11H2L12.44,21L14.53,13H22L11.56,3Z"},null,-1)])])):n("image")?(w(),C("svg",b3,[...r[4]||(r[4]=[f("path",{fill:"currentColor",d:"M8.5,13.5L11,16.5L14.5,12L19,18H5M21,19V5C21,3.89 20.1,3 19,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19Z"},null,-1)])])):n("status")?(w(),C("svg",w3,[...r[5]||(r[5]=[f("path",{fill:"currentColor",d:"M16.5,11L13,7.5L14.41,6.09L16.5,8.17L20.59,4.08L22,5.5L16.5,11M11,7H2V9H11V7M11,15H2V17H11V15M11,11H2V13H11V11M22,11V13H13V11H22M22,15V17H13V15H22Z"},null,-1)])])):n("content_copy")?(w(),C("svg",x3,[...r[6]||(r[6]=[f("path",{fill:"currentColor",d:"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"},null,-1)])])):n("content_paste")?(w(),C("svg",C3,[...r[7]||(r[7]=[f("path",{d:"M16 4H18C19.1046 4 20 4.89543 20 6V20C20 21.1046 19.1046 22 18 22H6C4.89543 22 4 21.1046 4 20V6C4 4.89543 4.89543 4 6 4H8",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"}
27,null,-1),f("path",{d:"M8 4C8 2.89543 8.89543 2 10 2H14C15.1046 2 16 2.89543 16 4C16 5.10457 15.1046 6 14 6H10C8.89543 6 8 5.10457 8 4Z",stroke:"currentColor","stroke-width":"1.5"},null,-1),f("path",{d:"M9 13H15",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"},null,-1),f("path",{d:"M9 17H12",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"},null,-1)])])):n("alert-circle")?(w(),C("svg",k3,[...r[8]||(r[8]=[f("path",{fill:"currentColor",d:"M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"},null,-1)])])):n("info")||n("info-circle")?(w(),C("svg",S3,[...r[9]||(r[9]=[f("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z","clip-rule":"evenodd"},null,-1)])])):n("comments")?(w(),C("svg",E3,[...r[10]||(r[10]=[f("path",{fill:"currentColor",d:"M3,15H1V3A2,2 0 0,1 3,1H19V3H3V15M12,23A1,1 0 0,1 11,22V19H7A2,2 0 0,1 5,17V7A2,2 0 0,1 7,5H21A2,2 0 0,1 23,7V17A2,2 0 0,1 21,19H16.9L13.2,22.71C13,22.89 12.76,23 12.5,23H12M9,9V11H19V9H9M9,13V15H17V13H9Z"},null,-1)])])):n("thumbs-up")?(w(),C("svg",A3,[...r[11]||(r[11]=[f("path",{fill:"currentColor",d:"M23,10C23,8.89 22.1,8 21,8H14.68L15.64,3.43C15.66,3.33 15.67,3.22 15.67,3.11C15.67,2.7 15.5,2.32 15.23,2.05L14.17,1L7.59,7.58C7.22,7.95 7,8.45 7,9V19A2,2 0 0,0 9,21H18C18.83,21 19.54,20.5 19.84,19.78L22.86,12.73C22.95,12.5 23,12.26 23,12V10M1,21H5V9H1V21Z"},null,-1)])])):n("search")?(w(),C("svg",L3,[...r[12]||(r[12]=[f("path",{fill:"currentColor",d:"M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z"},null,-1)])])):n("share")?(w(),C("svg",T3,[...r[13]||(r[13]=[f("path",{fill:"currentColor",d:"M18,16.08C17.24,16.08 16.56,16.38 16.04,16.85L8.91,12.7C8.96,12.47 9,12.24 9,12C9,11.76 8.96,11.53 8.91,11.3L15.96,7.19C16.5,7.69 17.21,8 18,8A3,3 0 0,0 21,5A3,3 0 0,0 18,2A3,3 0 0,0 15,5C15,5.24 15.04,5.47 15.09,5.7L8.04,9.81C7.5,9.31 6.79,9 6,9A3,3 0 0,0 3,12A3,3 0 0,0 6,15C6.79,15 7.5,14.69 8.04,14.19L15.16,18.34C15.11,18.55 15.08,18.77 15.08,19C15.08,20.61 16.39,21.91 18,21.91C19.61,21.91 20.92,20.61 20.92,19C20.92,17.39 19.61,16.08 18,16.08Z"},null,-1)])])):n("refresh")?(w(),C("svg",M3,[...r[14]||(r[14]=[f("path",{fill:"currentColor",d:"M17.65 6.35C16.2 4.9 14.21 4 12 4A8 8 0 0 0 4 12A8 8 0 0 0 12 20C15.31 20 18.1 17.98 19.28 15H17.65C16.58 16.73 14.48 18 12 18A6 6 0 0 1 6 12A6 6 0 0 1 12 6C13.66 6 15.14 6.69 16.22 7.78L13 11H21V3L17.65 6.35Z"},null,-1)])])):n("loading")?(w(),C("svg",O3,[...r[15]||(r[15]=[f("circle",{cx:"25",cy:"25",r:"20",fill:"none",stroke:"#fff","stroke-width":"5",opacity:".3"},null,-1),f("circle",{cx:"25",cy:"25",r:"20",fill:"none",stroke:"#3172ec","stroke-dasharray":"90 40","stroke-linecap":"round","stroke-width":"5"},[f("animateTransform",{attributeName:"transform",dur:"1s",from:"0 25 25",repeatCount:"indefinite",to:"360 25 25",type:"rotate"})],-1)])])):n("close")?(w(),C("svg",P3,[...r[16]||(r[16]=[f("path",{fill:"currentColor",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"},null,-1)])])):n("thehandy")?(w(),C("svg",$3,[...r[17]||(r[17]=[f("g",{"clip-path":"url(#clip0_7_18)"},[f("path",{d:"M38.5965 19.2044V90.7908C38.5965 101.797 29.4502 110.801 18.4074 110.293C13.4567 110.048 8.78916 107.921 5.36689 104.352C1.94461 100.782 0.0284422 96.0415 0.0133561 91.1072V19.4969C0.0133561 9.12635 8.14455 0.417711 18.5463 0.0161828C21.1397 -0.0783716 23.7257 0.347554 26.1502 1.2686C28.5748 2.18964 30.7885 3.58696 32.6593 5.37736C34.5301 7.16775 36.0199 9.31461 37.0399 11.6901C38.0599 14.0656 38.5892 16.6211 38.5965 19.2044ZM81.937 65.0956V108.357H43.3619V65.0956C43.3619 62.5737 43.8609 60.0765 44.8304 57.7465C45.7999 55.4165 47.2209 53.2995 49.0123 51.5162C50.8037 49.7329 52.9303 48.3184 55.2709 47.3533C57.6115 46.3882 60.12 45.8914 62.6535 45.8914C65.1869 45.8914 67.6954 46.3882 70.036 47.3533C72.3766 48.3184 74.5033 49.7329 76.2946 51.5162C78.086 53.2995 79.507 55.4165 80.4765 57.7465C81.446 60.0765 81.945 62.5737 81.945 65.0956H81.937ZM13.9224 125.862V134.653H9.93159V126.708C9.93159 124.708 8.94057 123.498 7.38592 123.498C5.37449 123.498 3.98813
27124.849 3.98813 127.383V134.653H0V113.5H3.98813V122.99C4.89367 120.961 6.53647 120.031 8.60133 120.031C12.0258 120.031 13.9224 122.371 13.9224 125.862ZM15.8751 127.412C15.8751 123.075 18.4234 120.031 22.5264 120.031C24.4764 120.031 26.2661 120.905 26.9686 122.371H26.998V120.342H30.9861V134.653H26.998V132.454H26.9686C26.2047 134.004 24.4497 134.962 22.5264 134.962C18.4234 134.962 15.8751 131.896 15.8751 127.412ZM27.1102 127.553V127.375C27.1102 124.841 25.609 123.208 23.4319 123.208C21.3083 123.208 19.8098 124.87 19.8098 127.404C19.8098 130.109 21.3083 131.771 23.4319 131.771C25.609 131.779 27.1102 130.146 27.1102 127.553ZM47.9377 125.862V134.653H43.9496V126.708C43.9496 124.708 42.9585 123.498 41.4039 123.498C39.3925 123.498 38.0061 124.849 38.0061 127.383V134.653H34.018V120.342H38.0061V123.001C38.9117 120.972 40.5545 120.041 42.6193 120.041C46.0438 120.031 47.9377 122.371 47.9377 125.862ZM49.8824 127.412C49.8824 123.075 52.4307 120.031 56.5337 120.031C58.4863 120.031 60.439 120.905 61.1442 122.371H61.1736V113.5H65.1644V134.653H61.1843V132.454H61.1549C60.4203 134.004 58.4676 134.962 56.5444 134.962C52.4414 134.962 49.8824 131.896 49.8824 127.412ZM53.8171 127.412C53.8171 130.117 55.3156 131.779 57.4392 131.779C59.6163 131.779 61.1175 130.146 61.1175 127.553V127.375C61.1175 124.841 59.6163 123.208 57.4392 123.208C55.3263 123.216 53.8277 124.878 53.8277 127.412H53.8171ZM81.937 136.001C81.937 139.607 78.9586 142 74.8262 142C70.6938 142 67.9211 140.03 67.5551 136.536H71.5994C71.9119 137.972 73.1006 138.958 74.8048 138.958C76.6159 138.958 77.9462 137.804 77.9462 136.225V131.438C77.0406 133.326 75.4272 134.198 73.4478 134.198C70.1649 134.198 68.0146 132.002 68.0146 128.141V120.342H72.0054V127.497C72.0054 129.526 72.967 130.736 74.5511 130.736C76.5598 130.736 77.9462 129.356 77.9462 126.849V120.342H81.937V136.001ZM88.8821 114.398H86.7291V120.32H85.6767V114.398H83.4996V113.492H88.8821V114.398ZM97.0053 113.492V120.32H95.9903V115.162L93.6503 117.885H93.3832L91.0191 115.143V120.323H90.0041V113.492H90.9176L93.506 116.627L96.1185 113.492H97.0053Z",fill:"currentColor"})],-1),f("defs",null,[f("clipPath",{id:"clip0_7_18"},[f("rect",{width:"97",height:"142",fill:"white"})])],-1)])])):n("autoblow")?(w(),C("svg",R3,[...r[18]||(r[18]=[f("path",{d:"M0 0 C8.04071716 5.46768767 14.35713546 11.78672485 16.953125 21.328125 C17.97008074 32.73931439 17.08780568 41.52074309 9.640625 50.578125 C3.75028057 56.89640044 -1.9995096 60.87830798 -10.81640625 61.6640625 C-22.23808647 61.92046185 -29.76998744 60.10045244 -38.2578125 52.1875 C-45.41707366 44.7468705 -47.46537447 37.63799487 -47.41040039 27.37304688 C-47.154444 17.46241552 -43.06295379 11.07888989 -36.046875 4.328125 C-26.55128048 -3.80505814 -11.27874483 -6.1129075 0 0 Z M-27.046875 16.328125 C-28.90715089 20.09944064 -29.28508972 23.10218958 -29.2421875 27.28515625 C-29.23574219 28.39697266 -29.22929687 29.50878906 -29.22265625 30.65429688 C-29.20589844 31.80478516 -29.18914063 32.95527344 -29.171875 34.140625 C-29.16285156 35.31044922 -29.15382813 36.48027344 -29.14453125 37.68554688 C-29.12101232 40.56661553 -29.08814352 43.44726489 -29.046875 46.328125 C-27.066875 46.328125 -25.086875 46.328125 -23.046875 46.328125 C-23.046875 43.028125 -23.046875 39.728125 -23.046875 36.328125 C-17.766875 36.328125 -12.486875 36.328125 -7.046875 36.328125 C-7.046875 39.628125 -7.046875 42.928125 -7.046875 46.328125 C-5.066875 46.328125 -3.086875 46.328125 -1.046875 46.328125 C-0.95940572 42.28659585 -0.90632518 38.24531195 -0.859375 34.203125 C-0.83423828 33.06101562 -0.80910156 31.91890625 -0.78320312 30.7421875 C-0.71934782 23.42011245 -1.24060683 18.76806662 -5.984375 12.953125 C-13.42277043 9.0062213 -21.62883493 9.91202491 -27.046875 16.328125 Z ",fill:"currentColor",transform:"translate(47.046875,2.671875)"},null,-1),f("path",{d:"M0 0 C1.9375 1.5 1.9375 1.5 3 4 C3.23120142 7.04765513 3.13527848 9.93368777 3 13 C-2.28 13 -7.56 13 -13 13 C-13.36627907 4.69767442 -13.36627907 4.69767442 -11.6875 1.5 C-7.99353237 -1.78352678 -4.53412747 -1.05256531 0 0 Z ",fill:"currentColor",transform:"translate(37,20)"},null,-1)])])):n("add")?(w(),C("svg",V3,[...r[19]||(r[19]=[f("path",{fill:"currentColor",d:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z"},null,-1)])])):n("bluetooth")?(w(),C("svg",I3,[...r[20]||(r[20]=[f("path",{fill:"currentColor",d:"M14.88,16.29L13,18.17V14.41M13,5.83L14.88,7.71L13,9.58M17.71,7.71L12,2H11V9.58L6.41,5L5,6.41L10.59,12L5,17.58L6.41,19L11,14.41V22H12L17.71,16.29L13.41,12L17.71,7.71Z"},null,-1)])])):n("usb-port")?(w(),C("svg",H3,[...r[21]||(r[21]=[f("path",{fill:"currentColor",d:"M8 2C6.9 2 6 2.9 6 4V12H5V16L9 20V22H15V20L19 16V12H18V4C18 2.9 17.11 2 16 2M8 4H16V12H8M9 7V9H11V7M13 7V9H15V7Z"},null,-1)])])):n("chevron-left")?(w(),C("svg",F3,[...r[22]||(r[22]=[f("path",{fill:"currentColor",d:"M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z"},null,-1)])])):n("chevron-right")?(w(),C("svg",D3,[...r[23]||(r[23]=[f("path",{fill:"currentColor",d:"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"},null,-1)])])):n("account")?(w(),C("svg",B3,[...r[24]||(r[24]=[f("path",{fill:"currentColor",d:"M12,19.2C9.5,19.2 7.29,17.92 6,16C6.03,14 10,12.9 12,12.9C14,12.9 17.97,14 18,16C16.71,17.92 14.5,19.2 12,19.2M12,5A3,3 0 0,1 15,8A3,3 0 0,1 12,11A3,3 0 0,1 9,8A3,3 0 0,1 12,5M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12C22,6.47 17.5,2 12,2Z"},null,-1)])])):n("more")?(w(),C("svg",N3,[...r[25]||(r[25]=[f("path",{fill:"currentColor",d:"M12,16A2,2 0 0,1 14,18A2,2 0 0,1 12,20A2,2 0 0,1 10,18A2,2 0 0,1 12,16M12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12A2,2 0 0,1 12,10M12,4A2,2 0 0,1 14,6A2,2 0 0,1 12,8A2,2 0 0,1 10,6A2,2 0 0,1 12,4Z"},null,-1)])])):n("video-box")?(w(),C("svg",j3,[...r[26]||(r[26]=[f("path",{fill:"currentColor",d:"M18,16L14,12.8V16H6V8H14V11.2L18,8M20,4H4A2,2 0 0,0 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V6C22,4.89 21.1,4 20,4Z"},null,-1)])])):n("chart-timeline-sparkles")?(w(),C("svg",U3,[...r[27]||(r[27]=[f("path",{fill:"currentColor",d:"M21 8C19.5 8 18.7 9.4 19.1 10.5L15.5 14.1C15.2 14 14.8 14 14.5 14.1L11.9 11.5C12.3 10.4 11.5 9 10 9C8.6 9 7.7 10.4 8.1 11.5L3.5 16C2.4 15.7 1 16.5 1 18C1 19.1 1.9 20 3 20C4.4 20 5.3 18.6 4.9 17.5L9.4
2712.9C9.7 13 10.1 13 10.4 12.9L13 15.5C12.7 16.5 13.5 18 15 18C16.5 18 17.3 16.6 16.9 15.5L20.5 11.9C21.6 12.2 23 11.4 23 10C23 8.9 22.1 8 21 8M15 9L15.9 6.9L18 6L15.9 5.1L15 3L14.1 5.1L12 6L14.1 6.9L15 9M3.5 11L4 9L6 8.5L4 8L3.5 6L3 8L1 8.5L3 9L3.5 11Z"},null,-1)])])):n("tag-text")?(w(),C("svg",z3,[...r[28]||(r[28]=[f("path",{fill:"currentColor",d:"M21.41 11.58L12.41 2.58A2 2 0 0 0 11 2H4A2 2 0 0 0 2 4V11A2 2 0 0 0 2.59 12.41L11.59 21.41A2 2 0 0 0 13 22A2 2 0 0 0 14.41 21.41L21.41 14.41A2 2 0 0 0 22 13A2 2 0 0 0 21.41 11.58M6.5 8A1.5 1.5 0 1 1 8 6.5A1.5 1.5 0 0 1 6.5 8M11.59 15.41L7.59 11.41L9 10L13 14M15.59 14.41L10.09 8.91L11.5 7.5L17 13Z"},null,-1)])])):n("woman-face-shimmer")?(w(),C("svg",q3,[...r[29]||(r[29]=[f("path",{fill:"currentColor",d:"M19.5 1L18.41 3.41L16 4.5L18.41 5.59L19.5 8L20.6 5.59L23 4.5L20.6 3.41L19.5 1M12 2C6.5 2 2 6.5 2 12V22H22V12C22 10.53 21.67 9.13 21.1 7.87L19.86 10.59C19.94 11.05 20 11.5 20 12C20 16.43 16.43 20 12 20C7.57 20 4 16.43 4 12C4 11.96 4 11.91 4 11.87A10 10 0 0 0 9.74 6.31A10 10 0 0 0 17.5 10A10 10 0 0 0 18.83 9.91L17.35 6.65L12.6 4.5L16.13 2.9C14.87 2.33 13.47 2 12 2M9 11.75A1.25 1.25 0 0 0 7.75 13A1.25 1.25 0 0 0 9 14.25A1.25 1.25 0 0 0 10.25 13A1.25 1.25 0 0 0 9 11.75M15 11.75A1.25 1.25 0 0 0 13.75 13A1.25 1.25 0 0 0 15 14.25A1.25 1.25 0 0 0 16.25 13A1.25 1.25 0 0 0 15 11.75Z"},null,-1)])])):n("plus")?(w(),C("svg",W3,[...r[30]||(r[30]=[f("path",{fill:"currentColor",d:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z"},null,-1)])])):n("speedometer")?(w(),C("svg",G3,[...r[31]||(r[31]=[f("path",{fill:"currentColor",d:"M12,16A3,3 0 0,1 9,13C9,11.88 9.61,10.9 10.5,10.39L20.21,4.77L14.68,14.35C14.18,15.33 13.17,16 12,16M12,3C13.81,3 15.5,3.5 16.97,4.32L14.87,5.53C14,5.19 13,5 12,5A8,8 0 0,0 4,13C4,15.21 4.89,17.21 6.34,18.65H6.35C6.74,19.04 6.74,19.67 6.35,20.06C5.96,20.45 5.32,20.45 4.93,20.07V20.07C3.12,18.26 2,15.76 2,13A10,10 0 0,1 12,3M22,13C22,15.76 20.88,18.26 19.07,20.07V20.07C18.68,20.45 18.05,20.45 17.66,20.06C17.27,19.67 17.27,19.04 17.66,18.65V18.65C19.11,17.2 20,15.21 20,13C20,12 19.81,11 19.46,10.1L20.67,8C21.5,9.5 22,11.18 22,13Z"},null,-1)])])):n("heart")?(w(),C("svg",Z3,[...r[32]||(r[32]=[f("path",{fill:"currentColor",d:"M12,21.35L10.55,20.03C5.4,15.36 2,12.27 2,8.5C2,5.41 4.42,3 7.5,3C9.24,3 10.91,3.81 12,5.08C13.09,3.81 14.76,3 16.5,3C19.58,3 22,5.41 22,8.5C22,12.27 18.6,15.36 13.45,20.03L12,21.35Z"},null,-1)])])):n("eye")?(w(),C("svg",K3,[...r[33]||(r[33]=[f("path",{fill:"currentColor",d:"M12,9A3,3 0 0,1 15,12A3,3 0 0,1 12,15A3,3 0 0,1 9,12A3,3 0 0,1 12,9M12,4.5C17,4.5 21.27,7.61 23,12C21.27,16.39 17,19.5 12,19.5C7,19.5 2.73,16.39 1,12C2.73,7.61 7,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C15.76,17.5 19.17,15.36 20.82,12C19.17,8.64 15.76,6.5 12,6.5C8.24,6.5 4.83,8.64 3.18,12Z"},null,-1)])])):n("pencil")?(w(),C("svg",Y3,[...r[34]||(r[34]=[f("path",{fill:"currentColor",d:"M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z"},null,-1)])])):n("notification")?(w(),C("svg",X3,[...r[35]||(r[35]=[f("path",{fill:"currentColor",d:"M21,19V20H3V19L5,17V11C5,7.9 7.03,5.17 10,4.29C10,4.19 10,4.1 10,4A2,2 0 0,1 12,2A2,2 0 0,1 14,4C14,4.1 14,4.19 14,4.29C16.97,5.17 19,7.9 19,11V17L21,19M14,21A2,2 0 0,1 12,23A2,2 0 0,1 10,21"},null,-1)])])):n("bell")?(w(),C("svg",J3,[...r[36]||(r[36]=[f("path",{fill:"currentColor",d:"M10 21H14C14 22.1 13.1 23 12 23S10 22.1 10 21M21 19V20H3V19L5 17V11C5 7.9 7 5.2 10 4.3V4C10 2.9 10.9 2 12 2S14 2.9 14 4V4.3C17 5.2 19 7.9 19 11V17L21 19M17 11C17 8.2 14.8 6 12 6S7 8.2 7 11V18H17V11Z"},null,-1)])])):n("chevron-left")?(w(),C("svg",Q3,[...r[37]||(r[37]=[f("path",{fill:"currentColor",d:"M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z"},null,-1)])])):n("play")?(w(),C("svg",eb,[...r[38]||(r[38]=[f("path",{fill:"currentColor",d:"M8,5.14V19.14L19,12.14L8,5.14Z"},null,-1)])])):n("volume-high")?(w(),C("svg",tb,[...r[39]||(r[39]=[f("path",{fill:"currentColor",d:"M14,3.23V5.29C16.89,6.15 19,8.83 19,12C19,15.17 16.89,17.84 14,18.7V20.77C18,19.86 21,16.28 21,12C21,7.72 18,4.14 14,3.23M16.5,12C16.5,10.23 15.5,8.71 14,7.97V16C15.5,15.29 16.5,13.76 16.5,12M3,9V15H7L12,20V4L7,9H3Z"},null,-1)])])):n("arrow-expand")?(w(),C("svg",nb,[...r[40]||(r[40]=[f("path",{fill:"currentColor",d:"M10,21V19H6.41L10.91,14.5L9.5,13.09L5,17.59V14H3V21H10M14.5,10.91L19,6.41V10H21V3H14V5H17.59L13.09,9.5L14.5,10.91Z"},null,-1)])])):n("quality-high")?(w(),C("svg",sb,[...r[41]||(r[41]=[f("path",{fill:"currentColor",d:"M14.5,13.5H16.5V10.5H14.5M18,14A1,1 0 0,1 17,15H16.25V16.5H14.75V15H14A1,1 0 0,1 13,14V10A1,1 0 0,1 14,9H17A1,1 0 0,1 18,10M11,15H9.5V13H7.5V15H6V9H7.5V11.5H9.5V9H11M19,4H5C3.89,4 3,4.89 3,6V18A2,2 0 0,0 5,20H19A2,2 0 0,0 21,18V6C21,4.89 20.1,4 19,4Z"},null,-1)])])):n("pause")?(w(),C("svg",rb,[...r[42]||(r[42]=[f("path",{fill:"currentColor",d:"M14,19H18V5H14M6,19H10V5H6V19Z"},null,-1)])])):n("arrow-collapse")?(w(),C("svg",ib,[...r[43]||(r[43]=[f("path",{fill:"currentColor",d:"M19.5,3.09L15,7.59V4H13V11H20V9H16.41L20.91,4.5L19.5,3.09M4,13V15H7.59L3.09,19.5L4.5,20.91L9,16.41V20H11V13H4Z"},null,-1)])])):n("logout")?(w(),C("svg",ob,[...r[44]||(r[44]=[f("path",{fill:"currentColor",d:"M14.08,15.59L16.67,13H7V11H16.
2767L14.08,8.41L15.5,7L20.5,12L15.5,17L14.08,15.59M19,3A2,2 0 0,1 21,5V9.67L19,7.67V5H5V19H19V16.33L21,14.33V19A2,2 0 0,1 19,21H5C3.89,21 3,20.1 3,19V5C3,3.89 3.89,3 5,3H19Z"},null,-1)])])):n("eye-outline")?(w(),C("svg",ab,[...r[45]||(r[45]=[f("path",{fill:"currentColor",d:"M12,9A3,3 0 0,1 15,12A3,3 0 0,1 12,15A3,3 0 0,1 9,12A3,3 0 0,1 12,9M12,4.5C17,4.5 21.27,7.61 23,12C21.27,16.39 17,19.5 12,19.5C7,19.5 2.73,16.39 1,12C2.73,7.61 7,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C15.76,17.5 19.17,15.36 20.82,12C19.17,8.64 15.76,6.5 12,6.5C8.24,6.5 4.83,8.64 3.18,12Z"},null,-1)])])):n("home")?(w(),C("svg",lb,[...r[46]||(r[46]=[f("path",{fill:"currentColor",d:"M10,20V14H14V20H19V12H22L12,3L2,12H5V20H10Z"},null,-1)])])):n("star")?(w(),C("svg",ub,[...r[47]||(r[47]=[f("path",{fill:"currentColor",d:"M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z"},null,-1)])])):n("account-group")?(w(),C("svg",cb,[...r[48]||(r[48]=[f("path",{fill:"currentColor",d:"M12,5.5A3.5,3.5 0 0,1 15.5,9A3.5,3.5 0 0,1 12,12.5A3.5,3.5 0 0,1 8.5,9A3.5,3.5 0 0,1 12,5.5M5,8C5.56,8 6.08,8.15 6.53,8.42C6.38,9.85 6.8,11.27 7.66,12.38C7.16,13.34 6.16,14 5,14A3,3 0 0,1 2,11A3,3 0 0,1 5,8M19,8A3,3 0 0,1 22,11A3,3 0 0,1 19,14C17.84,14 16.84,13.34 16.34,12.38C17.2,11.27 17.62,9.85 17.47,8.42C17.92,8.15 18.44,8 19,8M5.5,18.25C5.5,16.18 8.41,14.5 12,14.5C15.59,14.5 18.5,16.18 18.5,18.25V20H5.5V18.25M0,20V18.5C0,17.11 1.89,15.94 4.45,15.6C3.86,16.28 3.5,17.22 3.5,18.25V20H0M24,20H20.5V18.25C20.5,17.22 20.14,16.28 19.55,15.6C22.11,15.94 24,17.11 24,18.5V20Z"},null,-1)])])):n("link")?(w(),C("svg",db,[...r[49]||(r[49]=[f("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1"},null,-1)])])):n("warning")?(w(),C("svg",fb,[...r[50]||(r[50]=[f("path",{fill:"currentColor",d:"M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z"}
27,null,-1)])])):n("television-play")?(w(),C("svg",hb,[...r[51]||(r[51]=[f("path",{fill:"currentColor",d:"M21,3H3C1.89,3 1,3.89 1,5V17A2,2 0 0,0 3,19H8V21H16V19H21A2,2 0 0,0 23,17V5C23,3.89 22.1,3 21,3M21,17H3V5H21M16,11L9,15V7"},null,-1)])])):n("shape")?(w(),C("svg",pb,[...r[52]||(r[52]=[f("path",{fill:"currentColor",d:"M11,13.5V21.5H3V13.5H11M12,2L17.5,11H6.5L12,2M17.5,13C20,13 22,15 22,17.5C22,20 20,22 17.5,22C15,22 13,20 13,17.5C13,15 15,13 17.5,13Z"},null,-1)])])):n("fast-forward")?(w(),C("svg",gb,[...r[53]||(r[53]=[f("path",{fill:"currentColor",d:"M13,6V18L21.5,12M4,18L12.5,12L4,6V18Z"},null,-1)])])):n("shimmer")?(w(),C("svg",vb,[...r[54]||(r[54]=[f("path",{fill:"currentColor",d:"M10.6 9.6L9 15L7.4 9.6L2 8L7.4 6.4L9 1L10.6 6.4L16 8L10.6 9.6M17 14.2L21 12L18.8 16L21 20L17 17.8L13 20L15.2 16L13 12L17 14.2M10 16L8.3 19L10 22L7 20.3L4 22L5.7 19L4 16L7 17.7L10 16"},null,-1)])])):n("open-in-new")?(w(),C("svg",mb,[...r[55]||(r[55]=[f("path",{fill:"currentColor",d:"M14,3V5H17.59L7.76,14.83L9.17,16.24L19,6.41V10H21V3M19,19H5V5H12V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V12H19V19Z"},null,-1)])])):n("comment-text-multiple")?(w(),C("svg",_b,[...r[56]||(r[56]=[f("path",{fill:"currentColor",d:"M3,15H1V3A2,2 0 0,1 3,1H19V3H3V15M12,23A1,1 0 0,1 11,22V19H7A2,2 0 0,1 5,17V7A2,2 0 0,1 7,5H21A2,2 0 0,1 23,7V17A2,2 0 0,1 21,19H16.9L13.2,22.71C13,22.89 12.76,23 12.5,23H12M9,9V11H19V9H9M9,13V15H17V13H9Z"},null,-1)])])):n("playbox-multiple-outline")?(w(),C("svg",yb,[...r[57]||(r[57]=[f("path",{fill:"currentColor",d:"M4 6H2V20C2 21.1 2.9 22 4 22H18V20H4V6M20 4V16H8V4H20M20 2H8C6.9 2 6 2.9 6 4V16C6 17.1 6.9 18 8 18H20C21.1 18 22 17.1 22 16V4C22 2.9 21.1 2 20 2M12 14.5V5.5L18 10L12 14.5Z"},null,-1)])])):n("explore")?(w(),C("svg",bb,[...r[58]||(r[58]=[f("path",{fill:"currentColor",d:"M14.19,14.19L6,18L9.81,9.81L18,6M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,10.9A1.1,1.1 0 0,0 10.9,12A1.1,1.1 0 0,0 12,13.1A1.1,1.1 0 0,0 13.1,12A1.1,1.1 0 0,0 12,10.9Z"},null,-1)])])):n("video-plus")?(w(),C("svg",wb,[...r[59]||(r[59]=[f("path",{fill:"currentColor",d:"M17,10.5V7A1,1 0 0,0 16,6H4A1,1 0 0,0 3,7V17A1,1 0 0,0 4,18H16A1,1 0 0,0 17,17V13.5L21,17.5V6.5L17,10.5M14,13H11V16H9V13H6V11H9V8H11V11H14V13Z"},null,-1)])])):n("sort")?(w(),C("svg",xb,[...r[60]||(r[60]=[f("path",{fill:"currentColor",d:"M18 21L14 17H17V7H14L18 3L22 7H19V17H22M2 19V17H12V19M2 13V11H9V13M2 7V5H6V7H2Z"},null,-1)])])):n("faptap")?(w(),C("svg",Cb,[...r[61]||(r[61]=[ns('<rect width="240" height="240" rx="65" fill="url(#faptap_a)"></rect><rect width="196" height="240" rx="65" fill="url(#faptap_b)"></rect><path d="M110.931 107.069a27.554 27.554 0 0 0-38.963 0l-27.556 27.555a27.56 27.56 0 0 0-8.411 19.581 27.556 27.556 0 0 0 47.375 19.383l7.591-7.585m-5.221-33.749a27.555 27.555 0 0 0 38.963 0l27.556-27.555a27.558 27.558 0 0 0-19.581-46.698 27.56 27.56 0 0 0-19.383 7.734l-7.578 7.578" stroke="#fff" stroke-width="18" stroke-linecap="round" stroke-linejoin="round"></path><defs><linearGradient id="faptap_a" x1="240" y1="240" x2="0" y2="0" gradientUnits="userSpaceOnUse"><stop stop-color="#1e3a8a"></stop><stop offset="1" stop-color="#124fff"></stop></linearGradient><linearGradient id="faptap_b" x1="196" y1="240" x2="0" y2="0" gradientUnits="userSpaceOnUse"><stop stop-color="#2563eb"></stop><stop offset="1" stop-color="#3b82f6"></stop></linearGradient></defs>',4)])])):n("explore-outline")?(w(),C("svg",kb,[...r[62]||(r[62]=[f("path",{fill:"currentColor",d:"M7,17L10.2,10.2L17,7L13.8,13.8L7,17M12,11.1A0.9,0.9 0 0,0 11.1,12A0.9,0.9 0 0,0 12,12.9A0.9,0.9 0 0,0 12.9,12A0.9,0.9 0 0,0 12,11.1M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2M12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20A8,8 0 0,0 20,12A8,8 0 0,0 12,4Z"},null,-1)])])):n("shape-outline")?(w(),C("svg",Sb,[...r[63]||(r[63]=[f("path",{fill:"currentColor",d:"M11,13.5V21.5H3V13.5H11M9,15.5H5V19.5H9V15.5M12,2L17.5,11H6.5L12,2M12,5.86L10.08,9H13.92L12,5.86M17.5,13C20,13 22,15 22,17.5C22,20 20,22 17.5,22C15,22 13,20 13,17.5C13,15 15,13 17.5,13M17.5,15A2.5,2.5 0 0,0 15,17.5A2.5,2.5 0 0,0 17.5,20A2.5,2.5 0 0,0 20,17.5A2.5,2.5 0 0,0 17.5,15Z"},null,-1)])])):n("woman-face-shimmer-outline")?(w(),C("svg",Eb,[...r[64]||(r[64]=[f("path",{fill:"currentColor",d:"M19.5 1L18.41 3.41L16 4.5L18.41 5.59L19.5 8L20.6 5.59L23 4.5L20.6 3.41M12 2C6.5 2 2 6.5 2 12V22H22V12C22 10.53 21.67 9.13 21.1 7.87L19.86 10.57C19.95 11.04 20 11.5 20 12C20 16.43 16.43 20 12 20C7.57 20 4 16.43 4 12C4 11.95 4 11.91 4
2711.86C6.61 10.89 8.69 8.88 9.74 6.31C11.61 8.61 14.44 10 17.5 10C17.94 10 18.39 9.97 18.83 9.91L17.96 8C17.81 8 17.65 8 17.5 8C14.68 8 12.1 6.5 10.66 4.12C11.1 4.05 11.54 4 12 4C12.5 4 12.96 4.05 13.42 4.13L16.13 2.91C14.87 2.33 13.47 2 12 2M8.09 5C7.46 6.91 6.15 8.5 4.41 9.5C5.04 7.57 6.37 6 8.09 5M9 11.75C8.31 11.75 7.75 12.31 7.75 13C7.75 13.69 8.31 14.25 9 14.25C9.69 14.25 10.25 13.69 10.25 13C10.25 12.31 9.69 11.75 9 11.75M15 11.75C14.31 11.75 13.75 12.31 13.75 13C13.75 13.69 14.31 14.25 15 14.25C15.69 14.25 16.25 13.69 16.25 13C16.25 12.31 15.69 11.75 15 11.75M4 17.97C4.58 18.74 5.26 19.42 6.03 20H4M20 17.97V20H17.97C18.74 19.42 19.42 18.74 20 17.97Z"},null,-1)])])):n("person")||n("user")?(w(),C("svg",Ab,[...r[65]||(r[65]=[f("path",{fill:"currentColor",d:"M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z"},null,-1)])])):n("pound")?(w(),C("svg",Lb,[...r[66]||(r[66]=[f("path",{fill:"currentColor",d:"M5.41,21L6.12,17H2.12L2.47,15H6.47L7.53,9H3.53L3.88,7H7.88L8.59,3H10.59L9.88,7H15.88L16.59,3H18.59L17.88,7H21.88L21.53,9H17.53L16.47,15H20.47L20.12,17H16.12L15.41,21H13.41L14.12,17H8.12L7.41,21H5.41M9.53,9L8.47,15H14.47L15.53,9H9.53Z"},null,-1)])])):n("motion-play-outline")?(w(),C("svg",Tb,[...r[67]||(r[67]=[f("path",{fill:"currentColor",d:"M10 16.5L16 12L10 7.5M22 12C22 6.46 17.54 2 12 2C10.83 2 9.7 2.19 8.62 2.56L9.32 4.5C10.17 4.16 11.06 3.97 12 3.97C16.41 3.97 20.03 7.59 20.03 12C20.03 16.41 16.41 20.03 12 20.03C7.59 20.03 3.97 16.41 3.97 12C3.97 11.06 4.16 10.12 4.5 9.28L2.56 8.62C2.19 9.7 2 10.83 2 12C2 17.54 6.46 22 12 22C17.54 22 22 17.54 22 12M5.47 3.97C6.32 3.97 7 4.68 7 5.47C7 6.32 6.32 7 5.47 7C4.68 7 3.97 6.32 3.97 5.47C3.97 4.68 4.68 3.97 5.47 3.97Z"},null,-1)])])):n("motion-play")?(w(),C("svg",Mb,[...r[68]||(r[68]=[f("path",{fill:"currentColor",d:"M22 12C22 6.46 17.54 2 12 2C10.83 2 9.7 2.19 8.62 2.56L9.32 4.5C10.17 4.16 11.06 3.97 12 3.97C16.41 3.97 20.03 7.59 20.03 12C20.03 16.41 16.41 20.03 12 20.03C7.59 20.03 3.97 16.41 3.97 12C3.97 11.06 4.16 10.12 4.5 9.28L2.56 8.62C2.19 9.7 2 10.83 2 12C2 17.54 6.46 22 12 22C17.54 22 22 17.54 22 12M5.47 3.97C6.32 3.97 7 4.68 7 5.47C7 6.32 6.32 7 5.47 7C4.68 7 3.97 6.32 3.97 5.47C3.97 4.68 4.68 3.97 5.47 3.97M18 12C18 8.67 15.33 6 12 6C8.67 6 6 8.67 6 12C6 15.33 8.67 18 12 18C15.33 18 18 15.33 18 12M15 12L10 15V9"},null,-1)])])):n("sort-ascending")?(w(),C("svg",Ob,[...r[69]||(r[69]=[f("path",{fill:"currentColor",d:"M19 17H22L18 21L14 17H17V3H19M2 17H12V19H2M6 5V7H2V5M2 11H9V13H2V11Z"},null,-1)])])):n("sort-descending")?(w(),C("svg",Pb,[...r[70]||(r[70]=[f("path",{fill:"currentColor",d:"M19 7H22L18 3L14 7H17V21H19M2 17H12V19H2M6 5V7H2V5M2 11H9V13H2V11Z"},null,-1)])])):n("help-outline")?(w(),C("svg",$b,[...r[71]||(r[71]=[f("path",{fill:"currentColor",d:"M11,18H13V16H11V18M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,6A4,4 0 0,0 8,10H10A2,2 0 0,1 12,8A2,2 0 0,1 14,10C14,12 11,11.75 11,15H13C13,12.75 16,12.5 16,10A4,4 0 0,0 12,6Z"},null,-1)])])):n("help")?(w(),C("svg",Rb,[...r[72]||(r[72]=[f("path",{fill:"currentColor",d:"M15.07,11.25L14.17,12.17C13.45,12.89 13,13.5 13,15H11V14.5C11,13.39 11.45,12.39 12.17,11.67L13.41,10.41C13.78,10.05 14,9.55 14,9C14,7.89 13.1,7 12,7A2,2 0 0,0 10,9H8A4,4 0 0,1 12,5A4,4 0 0,1 16,9C16,9.88 15.64,10.67 15.07,11.25M13,19H11V17H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12C22,6.47 17.5,2 12,2Z"},null,-1)])])):n("download")?(w(),C("svg",Vb,[...r[73]||(r[73]=[f("path",{fill:"currentColor",d:"M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z"},null,-1)])])):n("burger")?(w(),C("svg",Ib,[...r[74]||(r[74]=[f("path",{fill:"currentColor",d:"M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z"},null,-1)])])):n("danger")?(w(),C("svg",Hb,[...r[75]||(r[75]=[f("path",{fill:"currentColor",d:"M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z"},null,-1)])])):n("chart-gantt")?(w(),C("svg",Fb,[...r[76]||(r[76]=[f("path",{fill:"currentColor",d:"M2,5H10V2H12V22H10V18H6V15H10V13H4V10H10V8H2V5M14,5H1
277V8H14V5M14,10H19V13H14V10M14,15H22V18H14V15Z"},null,-1)])])):n("forum-outline")?(w(),C("svg",Db,[...r[77]||(r[77]=[f("path",{fill:"currentColor",d:"M15,4V11H5.17L4,12.17V4H15M16,2H3A1,1 0 0,0 2,3V17L6,13H16A1,1 0 0,0 17,12V3A1,1 0 0,0 16,2M21,6H19V15H6V17A1,1 0 0,0 7,18H18L22,22V7A1,1 0 0,0 21,6Z"},null,-1)])])):n("unfold")?(w(),C("svg",Bb,[...r[78]||(r[78]=[f("path",{fill:"currentColor",d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"},null,-1)])])):n("chevron-up")?(w(),C("svg",Nb,[...r[79]||(r[79]=[f("path",{fill:"currentColor",d:"M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z"},null,-1)])])):n("chevron-down")?(w(),C("svg",jb,[...r[80]||(r[80]=[f("path",{fill:"currentColor",d:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"},null,-1)])])):n("chevron-down-outline")||n("chevron-faq")?(w(),C("svg",Ub,[...r[81]||(r[81]=[f("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 9l-7 7-7-7"},null,-1)])])):n("playbox-multiple-outline")?(w(),C("svg",zb,[...r[82]||(r[82]=[f("path",{fill:"currentColor",d:"M4 6H2V20C2 21.1 2.9 22 4 22H18V20H4V6M20 4V16H8V4H20M20 2H8C6.9 2 6 2.9 6 4V16C6 17.1 6.9 18 8 18H20C21.1 18 22 17.1 22 16V4C22 2.9 21.1 2 20 2M12 14.5V5.5L18 10L12 14.5Z"},null,-1)])])):n("heart-multiple-outline")?(w(),C("svg",qb,[...r[83]||(r[83]=[f("path",{fill:"currentColor",d:"M12,21.1L10.5,22.4C3.9,16.5 0.5,13.4 0.5,9.6C0.5,8.4 0.9,7.3 1.5,6.4C1.5,6.6 1.5,6.8 1.5,7C1.5,11.7 5.4,15.2 12,21.1M13.6,17C18.3,12.7 21.5,9.9 21.6,7C21.6,5 20.1,3.5 18.1,3.5C16.5,3.5 15,4.5 14.5,5.9H12.6C12,4.5 10.5,3.5 9,3.5C7,3.5 5.5,5 5.5,7C5.5,9.9 8.6,12.7 13.4,17L13.5,17.1M18,1.5C21.1,1.5 23.5,3.9 23.5,7C23.5,10.7 20.1,13.8 13.5,19.8C6.9,13.9 3.5,10.8 3.5,7C3.5,3.9 5.9,1.5 9,1.5C10.7,1.5 12.4,2.3 13.5,3.6C14.6,2.3 16.3,1.5 18,1.5Z"},null,-1)])])):n("animation-play-outline")?(w(),C("svg",Wb,[...r[84]||(r[84]=[f("path",{fill:"currentColor",d:"M20,8H4V6H20V8M18,2H6V4H18V2M22,12V20A2,2 0 0,1 20,22H4A2,2 0 0,1 2,20V12A2,2 0 0,1 4,10H20A2,2 0 0,1 22,12M16,16L10,12.73V19.26L16,16Z"},null,-1)])])):n("lock-reset")?(w(),C("svg",Gb,[...r[85]||(r[85]=[f("path",{fill:"currentColor",d:"M12.63,2C18.16,2 22.64,6.5 22.64,12C22.64,17.5 18.16,22 12.63,22C9.12,22 6.05,20.18 4.26,17.43L5.84,16.18C7.25,18.47 9.76,20 12.64,20A8,8 0 0,0 20.64,12A8,8 0 0,0 12.64,4C8.56,4 5.2,7.06 4.71,11H7.47L3.73,14.73L0,11H2.69C3.19,5.95 7.45,2 12.63,2M15.59,10.24C16.09,10.25 16.5,10.65 16.5,11.16V15.77C16.5,16.27 16.09,16.69 15.58,16.69H10.05C9.54,16.69 9.13,16.27 9.13,15.77V11.16C9.13,10.65 9.54,10.25 10.04,10.24V9.23C10.04,7.7 11.29,6.46 12.81,6.46C14.34,6.46 15.59,7.7 15.59,9.23V10.24M12.81,7.86C12.06,7.86 11.44,8.47 11.44,9.23V10.24H14.19V9.23C14.19,8.47 13.57,7.86 12.81,7.86Z"},null,-1)])])):n("smiley")?(w(),C("svg",Zb,[...r[86]||(r[86]=[f("path",{fill:"currentColor",d:"M20,12A8,8 0 0,0 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20A8,8 0 0,0 20,12M22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2A10,10 0 0,1 22,12M10,9.5C10,10.3 9.3,11 8.5,11C7.7,11 7,10.3 7,9.5C7,8.7 7.7,8 8.5,8C9.3,8 10,8.7 10,9.5M17,9.5C17,10.3 16.3,11 15.5,11C14.7,11 14,10.3 14,9.5C14,8.7 14.7,8 15.5,8C16.3,8 17,8.7 17,9.5M12,17.23C10.25,17.23 8.71,16.5 7.81,15.42L9.23,14C9.68,14.72 10.75,15.23 12,15.23C13.25,15.23 14.32,14.72 14.77,14L16.19,15.42C15.29,16.5 13.75,17.23 12,17.23Z"},null,-1)])])):n("view-grid-outline")?(w(),C("svg",Kb,[...r[87]||(r[87]=[f("path",{fill:"currentColor",d:"M3 11H11V3H3M5 5H9V9H5M13 21H21V13H13M15 15H19V19H15M3 21H11V13H3M5 15H9V19H5M13 3V11H21V3M19 9H15V5H19Z"},null,-1)])])):n("discord")?(w(),C("svg",Yb,[...r[88]||(r[88]=[f("mask",{id:"a",style:{"mask-type":"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"4",width:"22",height:"17"},[f("path",{d:"M23 4H1v17h22V4z",fill:"currentColor"})],-1),f("g",{mask:"url(#a)"},[f("path",{d:"M19.624 5.514a18.174 18.174 0 00-4.478-1.386.068.068 0 00-.072.034c-.194.343-.408.791-.558 1.143a16.79 16.79 0 00-5.03 0c-.15-.36-.371-.8-.565-1.143a.07.07 0 00-.072-.034c-1.572.27-3.075.743-4.478 1.386a.064.064 0 00-.03.025C1.49 9.79.708 13.935 1.091 18.03c.002.02.013.04.029.051a18.26 18.26 0 005.493 2.77.071.071 0 00.077-.025c.423-.576.8-1.184 1.124-1.823a.07.07 0 00-.038-.097 12.024 12.024 0 01-1.716-.816.07.07 0 01-.007-.117c.115-.086.23-.175.34-.266a.068.068 0 01.072-.01c3.6 1.64 7.498 1.64 11.056 0a.068.068 0 01.072.009c.11.09.226.181.342.267a.07.07 0 01-.006.117c-.548.32-1.118.59-1.717.815a.07.07 0 00-.038.098c.33.638.708 1.246 1.123 1.822a.07.07 0 00.078.026 18.2 18.2 0 005.502-2.77.07.07 0 00.028-.05c.459-4.734-.768-8.846-3.253-12.491a.055.055 0 00-.028-.026zM8.352 15.537c-1.084 0-1.977-.993-1.977-2.212 0-1.22.875-2.212 1.977-2.212 1.11 0 1.994 1.002 1.977 2.212 0 1.22-.876 2.212-1.977 2.212zm7.31 0c-1.084 0-1.977-.993-1.977-2.212 0-1.22.876-2.212 1.977-2.212 1.11 0 1.994 1.002 1.977 2.212 0 1.22-.867 2.212-1.977 2.212z",fill:"
27currentColor"})],-1)])])):n("profile")?(w(),C("svg",Xb,[...r[89]||(r[89]=[f("path",{fill:"currentColor","fill-rule":"evenodd",d:"M25.77 8.53s-1.8-.08-2.65-.34c.77-.78.77-2.24.77-2.24s-1.89.77-4.55.77c-1.88-.08-2.57-.34-3.94 1.04-1.63 1.64-1.63 2.07-2.66 2.07.86 1.2.43 2.4.43 2.4l-.08 1.82.08.34s0 .09.09.26c0 .09 0 .26.09.35l.25 1.37s-.08.1-.17 0c-.26-.34-.6-.51-1.03-.51-.26 0-.68.69-.34 1.63.26.7.51 1.12.77 2.07.26.95.77 1.64 1.03 1.47.09-.09.17-.35.26-.78 0-.08.08 0 .17.09.08.86.26 1.63.43 2.07.17.25.34.6.51.86-.17 1.46-.34 3.27-.68 4.65-2.14.58-5.36 1.53-8.23 2.23 3.28 3.5 7.5 5.24 12.68 5.24 4.04 0 7.15-1.05 10.15-3.29-2.47-1.48-5.56-3.66-6.9-3.66H19c-.77 0-2.4-.7-2.57-1.3a4.48 4.48 0 0 1-.09-1.9c0-.08.18-.08.26 0 .69.78 1.03 1.3 1.72 1.3h1.54c.6 0 2.66-1.8 3.51-4.05.18-.52.35-1.38.43-2.32 0-.1.09-.18.09-.1.08.44.26.96.34.96.26.17.6-.52 1.03-1.47.43-.86.43-1.38.6-2.07.26-.94-.09-1.63-.34-1.63a.78.78 0 0 0-.6.26c-.09 0-.18 0-.18-.09 0-.6.1-1.55.78-2.07-.95-.86-.35-2.32-.35-2.32.35.17.86.17.86.17l-.69-1.12c.52-.09.95-.52.95-.52s-1.37-.34-2.06-.86c.6-.17 1.54-.78 1.54-.78z","clip-rule":"evenodd"},null,-1)])])):n("flag")?(w(),C("svg",Jb,[...r[90]||(r[90]=[f("path",{fill:"currentColor",d:"M14.4,6L14,4H5V21H7V14H12.6L13,16H20V6H14.4Z"},null,-1)])])):n("intiface")?(w(),C("svg",Qb,[...r[91]||(r[91]=[f("path",{d:"M71.3 106.2V83.52h73.08v132.3H191v22.68H65v-22.68h51.66V106.2H71.3z",fill:"currentColor"},null,-1),f("circle",{cx:"126.74",cy:"39.42",r:"21.42",fill:"currentColor"},null,-1)])])):n("clock-outline")?(w(),C("svg",e7,[...r[92]||(r[92]=[f("path",{fill:"currentColor",d:"M12,20A8,8 0 0,0 20,12A8,8 0 0,0 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22C6.47,22 2,17.5 2,12A10,10 0 0,1 12,2M12.5,7V12.25L17,14.92L16.25,16.15L11,13V7H12.5Z"},null,-1)])])):n("upload")?(w(),C("svg",t7,[...r[93]||(r[93]=[f("path",{fill:"currentColor",d:"M9,16V10H5L12,3L19,10H15V16H9M5,20V18H19V20H5Z"},null,-1)])])):n("currency")?(w(),C("svg",n7,[...r[94]||(r[94]=[f("path",{fill:"currentColor",d:"M7,15H9C9,16.08 10.37,17 12,17C13.63,17 15,16.08 15,15C15,13.9 13.96,13.5 11.76,12.97C9.64,12.44 7,11.78 7,9C7,7.21 8.47,5.69 10.5,5.18V3H13.5V5.18C15.53,5.69 17,7.21 17,9H15C15,7.92 13.63,7 12,7C10.37,7 9,7.92 9,9C9,10.1 10.04,10.5 12.24,11.03C14.36,11.56 17,12.22 17,15C17,16.79 15.53,18.31 13.5,18.82V21H10.5V18.82C8.47,18.31 7,16.79 7,15Z"},null,-1)])])):n("old-faptap")?(w(),C("svg",s7,[...r[95]||(r[95]=[f("path",{d:"M187.25 189.449L207 179.205v-25.609m-59.25-46.083L128 117.756l19.75-10.243zM128 117.756l-19.75-10.243L128 117.756zm0 0v25.609-25.609zm79-40.948l-19.75 10.23L207 76.782v.026zm0 0l-19.75-10.257L207 76.795v.013zm0 0v25.596-25.622.026zm-59.25-30.744L128 35.834l-19.75 10.243h39.5v-.013zM49 76.782l19.75-10.244L49 76.782v0zm0 0l19.75 10.243L49 76.782zm0 0v25.609-25.61zm79 143.385l-19.75-10.244L128 220.167zm0 0l19.75-10.244L128 220.167zm0 0v-25.596 25.596zm-59.25-30.718L49 179.205v-25.609l19.75 35.853v0z",stroke:"currentColor","stroke-width":"26.333","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])):n("heart-outline")?(w(),C("svg",r7,[...r[96]||(r[96]=[f("path",{fill:"currentColor",d:"M12.1,18.55L12,18.65L11.89,18.55C7.14,14.24 4,11.39 4,8.5C4,6.5 5.5,5 7.5,5C9.04,5 10.54,6 11.07,7.36H12.93C13.46,6 14.96,5 16.5,5C18.5,5 20,6.5 20,8.5C20,11.39 16.86,14.24 12.1,18.55M16.5,3C14.76,3 13.09,3.81 12,5.08C10.91,3.81 9.24,3 7.5,3C4.42,3 2,5.41 2,8.5C2,12.27 5.4,15.36 10.55,20.03L12,21.35L13.45,20.03C18.6,15.36 22,12.27 22,8.5C22,5.41 19.58,3 16.5,3Z"},null,-1)])])):n("heart")?(w(),C("svg",i7,[...r[97]||(r[97]=[f("path",{fill:"currentColor",d:"M12,21.35L10.55,20.03C5.4,15.36 2,12.27 2,8.5C2,5.41 4.42,3 7.5,3C9.24,3 10.91,3.81 12,5.08C13.09,3.81 14.76,3 16.5,3C19.58,3 22,5.41 22,8.5C22,12.27 18.6,15.36 13.45,20.03L12,21.35Z"},null,-1)])])):n("currency")?(w(),C("svg",o7,[...r[98]||(r[98]=[f("path",{fill:"currentColor",d:"M7,15H9C9,16.08 10.37,17 12,17C13.63,17 15,16.08 15,15C15,13.9 13.96,13.5 11.76,12.97C9.64,12.44 7,11.78 7,9C7,7.21 8.47,5.69 10.5,5.18V3H13.5V5.18C15.53,5.69 17,7.21 17,9H15C15,7.92 13.63,7 12,7C10.37,7 9,7.92 9,9C9,10.1 10.04,10.5 12.24,11.03C14.36,11.56 17,12.22 17,15C17,16.79 15.53,18.31 13.5,18.82V21H10.5V18.82C8.47,18.31 7,16.79 7,15Z"},null,-1)])])):n("mail-fast-outline")?(w(),C("svg",a7,[...r[99]||(r[99]=[f("path",{fill:"currentColor",d:"M22 5.5H9C7.9 5.5 7 6.4 7 7.5V16.5C7 17.61 7.9 18.5 9 18.5H22C23.11 18.5 24 17.61 24 16.5V7.5C24 6.4 23.11 5.5 22 5.5M22 16.5H9V9.17L15.5 12.5L22 9.17V16.5M15.5 10.81L9 7.5H22L15.5 10.81M5 16.5C5 16.67 5.03 16.83 5.05 17H1C.448 17 0 16.55 0 16S.448 15 1 15H5V16.5M3 7H5.05C5.03 7.17 5 7.33 5 7.5V9H3C2.45 9 2 8.55 2 8S2.45 7 3 7M1 12C1 11.45 1.45 11 2 11H5V13H2C1.45 13 1 12.55 1 12Z"},null,-1)])])):n("alert-circle-outline")?(w(),C("svg",l7,[...r[100]||(r[100]=[f("path",{fill:"currentColor",d:"M11,15H13V17H11V15M11,7H13V13H11V7M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20Z"},null,-1)])])):n("account-key-outline")?(w(),C("svg",u7,[...r[101]||(r[101]=[f("path",{fill:"currentColor",d:"M11 10V12H9V14H7V12H5.8C5.4 13.2 4.3 14 3 14C1.3 14 0 12.7 0 11S1.3 8 3 8C4.3 8 5.4 8.8 5.8 10H11M3 10C2.4 10 2 10.4 2 11S2.4 12 3 12 4 11.6 4 11 3.6 10 3 10M16 14C18.7 14 24 15.3 24 18V20H8V18C8 15.3 13.3 14 16 14M16 12C13.8 12 12 10.2 12 8S13.8 4 16 4 20 5.8 20 8 18.2 12 16 12Z"},null,-1)])])):n("account-plus")?(w(),C("svg",c7,[...r[102]||(r[102]=[f("path",{fill:"currentColor",d:"M15,14C12.33,14 7,15.33 7,18V20H23V18C23,15.33 17.67,14 15,14M6,10V7H4V10H1V12H4V15H6V12H9V10M15,12A4,4 0 0,0 19,8A4,4 0 0,0 15,4A4,4 0 0,0 11,8A4,4 0 0,0 15,12Z"},null,-1)])])):n("send")?(w(),C("svg",d7,[...r[103]||(r[103]=[f("path",{fill:"currentColor",d:"M2,21L23,12L2,3V10L17,12L2,14V21Z"},null,-1)])])):n("forum-outline")?(w(),C("svg",f7,[...r[104]||(r[104]=[f("path",{fill:"currentColor",d:"M15,4V11H5.17L4,12.17V4H15M16,2H3A1,1 0 0,0 2,3V17L6,13H16A1,1 0 0,0 17,12V3A1,1 0 0,0 16,2M21,6H19V15H6V17A1,1 0 0,0 7,18H18L22,22V7A1,1 0 0,0 21,6Z"},null,-1)])])):n("cellphone-screenshot")?(w(),C("svg",h7,[...r[105]||(r[105]=[f("path",{fill:"currentColor",d:"M7,1A2,2 0 0,0 5,3V21A2,2 0 0,0 7,23H17A2,2 0 0,0 19,21V3A2,2 0 0,0 17,1H7M7,4H17V20H7V4M9,6V10H10.5V7.5H13V6H9M13.5,14V16.5H11V18H15V14H13.5Z"},null,-1)])])):n("cog")?(w(),C("svg",p7,[...r[106]||(r[106]=[f("path",{fill:"currentColor",d:"M12,15.5A3.5,3.5 0 0,1 8.5,12A3.5,3.5 0 0,1 12,8.5A3.5,3.5 0 0,1 15.5,12A3.5,3.5 0 0,1 12,15.5M19.43,12.97C19.47,12.65 19.5,12.33 19.5,12C19.5,11.67 19.47,11.34 19.43,11L21.54,9.37C21.73,9.22 21.78,8.95 21.66,8.73L19.66,5.27C19.54,5.05 19.27,4.96 19.05,5.05L16.56,6.05C16.04,5.66 15.5,5.32 14.87,5.07L14.5,2.42C14.46,2.18 14.25,2 14,2H10C9.75,2 9.54,2.18 9.5,2.42L9.13,5.07C8.5,5.32 7.96,5.66 7.44,6.05L4.95,5.05C4.73,4.96 4.46,5.05 4.34,5.27L2.34,8.73C2.21,8.95 2.27,9.22 2.46,9.37L4.57,11C4.53,11.34 4.5,11.67 4.5,12C4.5,12.33 4.53,12.65 4.57,12.97L2.46,14.63C2.27,14.78 2.21,15.05 2.34,15.27L4.34,18.73C4.46,18.95 4.73,19.03 4.95,18.95L7.44,17.94C7.96,18.34 8.5,18.68 9.13,18.93L9.5,21.58C9.54,21.82 9.75,22 10,22H14C14.25,22 14.46,21.82 14.5,21.58L14.87,18.93C15.5,18.67 16.04,18.34 16.56,17.94L19.05,18.95C19.27,19.03 19.54,18.95 19.66,18.73L21.66,15.27C21.78,15.05 21.73,14.78 21.54,14.63L19.43,12.97Z"},null,-1)])])):n("swap-horizontal")?(w(),C("svg",g7,[...r[107]||(r[107]=[f("path",{fill:"currentColor",d:"M21,9L17,5V8H10V10H17V13M7,11L3,15L7,19V16H14V14H7V11Z"},null,-1)])])):n("close-box")?(w(),C("svg",v7,[...r[108]||(r[108]=[f("path",{fill:"currentColor",d:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"},null,-1)])])):n("pencil-ruler")?(w(),C("svg",m7,[...r[109]||(r[109]=[f("path",{fill:"currentColor",d:"M3 17.25V21H6.75L17.81 9.93L14.06 6.18L3 17.25M22.61 18.36L18.36 22.61L13.16 17.41L14.93 15.64L15.93 16.64L18.4 14.16L19.82 15.58L18.36 17L19.42 18L20.84 16.6L22.61 18.36M6.61 10.83L1.39 5.64L5.64 1.39L7.4 3.16L4.93 5.64L6 6.7L8.46 4.22L9.88 5.64L8.46 7.05L9.46 8.05L6.61 10.83M20.71 7C21.1 6.61 21.1 6 20.71 5.59L18.37 3.29C18 2.9 17.35 2.9 16.96 3.29L15.12 5.12L18.87 8.87L20.71 7Z"},null,-1)])])):n("arrow-left-right")?(w(),C("svg",_7,[...r[110]||(r[110]=[f("path",{fill:"currentColor",d:"M6.45,17.45L1,12L6.45,6.55L7.86,7.96L4.83,11H19.17L16.14,7.96L17.55,6.55L23,12L17.55,17.45L16.14,16.04L19.17,13H4.83L7.86,16.04L6.45,17.45Z"},null,-1)])])):n("view-column")?(w(),C("svg",y7,[...r[111]||(r[111]=[f("path",{fill:"currentColor",d:"M4 5V18H21V5H4M14 7V16H11V7H14M6 7H9V16H6V7M19 16H16V7H19V16Z"},null,-1)])])):n("calendar")?(w(),C("svg",b7,[...r[112]||(r[112]=[f("path",{fill:"currentColor",d:"M7 11H9V13H7V11M21 5V19C21 20.11 20.11 21 19 21H5C3.89 21 3 20.1 3 19V5C3 3.9 3.9 3 5 3H6V1H8V3H16V1H18V3H19C20.11 3 21 3.9 21 5M5 7H19V5H5V7M19 19V9H5V19H19M15 13V11H1
277V13H15M11 13V11H13V13H11M7 15H9V17H7V15M15 17V15H17V17H15M11 17V15H13V17H11Z"},null,-1)])])):n("clock")?(w(),C("svg",w7,[...r[113]||(r[113]=[f("path",{fill:"currentColor",d:"M12 20C16.42 20 20 16.42 20 12S16.42 4 12 4 4 7.58 4 12 7.58 20 12 20M12 2C17.5 2 22 6.5 22 12S17.5 22 12 22C6.47 22 2 17.5 2 12C2 6.5 6.5 2 12 2M12.5 13V13H11V7H12.5V11.26L16.2 9.13L16.95 10.43L12.5 13Z"},null,-1)])])):n("video-plus")?(w(),C("svg",x7,[...r[114]||(r[114]=[f("path",{fill:"currentColor",d:"M17,10.5V7A1,1 0 0,0 16,6H4A1,1 0 0,0 3,7V17A1,1 0 0,0 4,18H16A1,1 0 0,0 17,17V13.5L21,17.5V6.5L17,10.5M14,13H11V16H9V13H6V11H9V8H11V11H14V13Z"},null,-1)])])):n("youtube-studio")?(w(),C("svg",C7,[...r[115]||(r[115]=[f("path",{fill:"currentColor",d:"M10,15L15,12L10,9V15M19.45,13L21.56,14.63C21.78,14.78 21.81,15 21.66,15.28L19.64,18.75C19.5,18.97 19.31,19.03 19.03,18.94L16.55,17.95C15.89,18.42 15.33,18.75 14.86,18.94L14.5,21.56C14.42,21.84 14.27,22 14,22H10C9.73,22 9.58,21.84 9.5,21.56L9.14,18.94C8.55,18.69 8,18.36 7.45,17.95L4.97,18.94C4.69,19.03 4.5,18.97 4.36,18.75L2.34,15.28C2.19,15 2.22,14.78 2.44,14.63L4.55,13C4.5,12.77 4.5,12.44 4.5,12C4.5,11.56 4.5,11.23 4.55,11L2.44,9.38C2.22,9.22 2.19,9 2.34,8.72L4.36,5.25C4.5,5.
2703 4.69,4.97 4.97,5.06L7.45,6.05C8.11,5.58 8.67,5.25 9.14,5.06L9.5,2.44C9.58,2.16 9.73,2 10,2H14C14.27,2 14.42,2.16 14.5,2.44L14.86,5.06C15.45,5.31 16,5.64 16.55,6.05L19.03,5.06C19.31,4.97 19.5,5.03 19.64,5.25L21.66,8.72C21.81,9 21.78,9.22 21.56,9.38L19.45,11C19.5,11.23 19.5,11.56 19.5,12C19.5,12.44 19.5,12.77 19.45,13Z"},null,-1)])])):n("notification-badge-outline")?(w(),C("svg",k7,[...r[116]||(r[116]=[f("path",{fill:"currentColor",d:"M19 17V11.8C18.5 11.9 18 12 17.5 12H17V18H7V11C7 8.2 9.2 6 12 6C12.1 4.7 12.7 3.6 13.5 2.7C13.2 2.3 12.6 2 12 2C10.9 2 10 2.9 10 4V4.3C7 5.2 5 7.9 5 11V17L3 19V20H21V19L19 17M10 21C10 22.1 10.9 23 12 23S14 22.1 14 21H10M21 6.5C21 8.4 19.4 10 17.5 10S14 8.4 14 6.5 15.6 3 17.5 3 21 4.6 21 6.5"},null,-1)])])):n("arrow-left")?(w(),C("svg",S7,[...r[117]||(r[117]=[f("path",{fill:"currentColor",d:"M20,11V13H8L13.5,18.5L12.08,19.92L4.16,12L12.08,4.08L13.5,5.5L8,11H20Z"},null,-1)])])):n("orientation-transgender")?(w(),C("svg",E7,[...r[118]||(r[118]=[f("path",{d:"M19.58 3H15V1H23V9H21V4.41L16.17 9.24C16.69 10.03 17 11 17 12C17 14.42 15.28 16.44 13 16.9V19H15V21H13V23H11V21H9V19H11V16.9C8.72 16.44 7 14.42 7 12C7 11 7.3 10.04 7.82 9.26L6.64 8.07L5.24 9.46L3.83 8.04L5.23 6.65L3 4.42V8H1V1H8V3H4.41L6.64 5.24L8.08 3.81L9.5 5.23L8.06 6.66L9.23 7.84C10 7.31 11 7 12 7C13 7 13.96 7.3 14.75 7.83L19.58 3ZM12 9C11.2044 9 10.4413 9.31607 9.87868 9.87868C9.31607 10.4413 9 11.2044 9 12C9 12.7956 9.31607 13.5587 9.87868 14.1213C10.4413 14.6839 11.2044 15 12 15C12.7956 15 13.5587 14.6839 14.1213 14.1213C14.6839 13.5587 15 12.7956 15 12C15 11.2044 14.6839 10.4413 14.1213 9.87868C13.5587 9.31607 12.7956 9 12 9Z",fill:"currentColor"},null,-1)])])):n("orientation-straight")?(w(),C("svg",A7,[...r[119]||(r[119]=[f("path",{d:"M17.58 4H14V2H21V9H19V5.41L15.17 9.24C15.69 10.03 16 11 16 12C16 14.42 14.28 16.44 12 16.9V19H14V21H12V23H10V21H8V19H10V16.9C7.72 16.44 6 14.42 6 12C6 10.6739 6.52678 9.40215 7.46447 8.46447C8.40215 7.52678 9.67392 7 11 7C12 7 12.96 7.3 13.75 7.83L17.58 4ZM11 9C10.2044 9 9.44129 9.31607 8.87868 9.87868C8.31607 10.4413 8 11.2044 8 12C8 12.7956 8.31607 13.5587 8.87868 14.1213C9.44129 14.6839 10.2044 15 11 15C11.7956 15 12.5587 14.6839 13.1213 14.1213C13.6839 13.5587 14 12.7956 14 12C14 11.2044 13.6839 10.4413 13.1213 9.87868C12.5587 9.31607 11.7956 9 11 9Z",fill:"currentColor"},null,-1)])])):n("orientation-gay")?(w(),C("svg",L7,[...r[120]||(r[120]=[f("path",{d:"M13.2222 11.1482C14.2733 11.1482 15.2593 11.4822 16.0496 12.0526L20.2133 7.88889H16.4815V6.25926H23V12.7778H21.3704V9.03778L17.2067 13.1852C17.777 14 18.1111 14.9778 18.1111 16.037C18.1111 17.3337 17.596 18.5772 16.6792 19.494C15.7624 20.4109 14.5188 20.9259 13.2222 20.9259C11.9256 20.9259 10.6821 20.4109 9.76527 19.494C8.84842 18.5772 8.33334 17.3337 8.33334 16.037C8.33334 14.7404 8.84842 13.4969 9.76527 12.5801C10.6821 11.6632 11.9256 11.1482 13.2222 11.1482ZM13.2222 12.7778C12.3578 12.7778 11.5288 13.1212 10.9176 13.7324C10.3064 14.3436 9.96297 15.1726 9.96297 16.037C9.96297 16.9014 10.3064 17.7305 10.9176 18.3417C11.5288 18.9529 12.3578 19.2963 13.2222 19.2963C14.0866 19.2963 14.9156 18.9529 15.5269 18.3417C16.1381 17.7305 16.4815 16.9014 16.4815 16.037C16.4815 15.1726 16.1381 14.3436 15.5269 13.7324C14.9156 13.1212 14.0866 12.7778 13.2222 12.7778Z",fill:"currentColor"},null,-1),f("path",{d:"M5.88889 7.88889C6.94 7.88889 7.92593 8.22296 8.7163 8.79333L12.88 4.62963H9.14815V3H15.6667V9.51852H14.037V5.77852L9.87333 9.92593C10.4437 10.7407 10.7778 11.7185 10.7778 12.7778C10.7778 14.0744 10.2627 15.3179 9.34585 16.2347C8.42901 17.1516 7.1855 17.6667 5.88889 17.6667C4.59227 17.6667 3.34877 17.1516 2.43192 16.2347C1.51508 15.3179 1 14.0744 1 12.7778C1 11.4812 1.51508 10.2377 2.43192 9.32081C3.34877 8.40397 4.59227 7.88889 5.88889 7.88889ZM5.88889 9.51852C5.02448 9.51852 4.19547 9.8619 3.58424 10.4731C2.97301 11.0844 2.62963 11.9134 2.62963 12.7778C2.62963 13.6422 2.97301 14.4712 3.58424 15.0824C4.19547 15.6937 5.02448 16.037 5.88889 16.037C6.7533 16.037 7.5823 15.6937 8.19353 15.0824C8.80476 14.4712 9.14815 13.6422 9.14815 12.7778C9.14815 11.9134 8.80476 11.0844 8.19353 10.4731C7.5823 9.8619 6.7533 9.51852 5.88889 9.51852Z",fill:"currentColor"},null,-1)])])):n("loob")?(w(),C("svg",T7,[...r[121]||(r[121]=[ns('<rect width="5" height="63" fill="currentColor"></rect><rect x="132" width="5" height="61" fill="currentColor"></rect><circle cx="40.5" cy="60.5" r="17.5" stroke="currentColor" stroke-width="6"></circle><circle cx="96.5" cy="60.5" r="17.5" stroke="currentColor" stroke-width="6"></circle><circle cx="152.5" cy="60.5" r="17.5" stroke="currentColor" stroke-width="6"></circle>',5)])])):n("shield-crown")?(w(),C("svg",M7,[...r[122]||(r[122]=[f("path",{fill:"currentColor",d:"M12 1L21 5V11C21 16.55 17.16 21.74 12 23C6.84 21.74 3 16.55 3 11V
275L12 1M16 14H8V15.5C8 15.77 8.19 15.96 8.47 16L8.57 16H15.43C15.74 16 15.95 15.84 16 15.59L16 15.5V14M17 8L17 8L14.33 10.67L12 8.34L9.67 10.67L7 8L7 8L8 13H16L17 8Z"},null,-1)])])):n("discord")?(w(),C("svg",O7,[...r[123]||(r[123]=[f("g",null,[f("path",{d:"M216.856339,16.5966031 C200.285002,8.84328665 182.566144,3.2084988 164.041564,0 C161.766523,4.11318106 159.108624,9.64549908 157.276099,14.0464379 C137.583995,11.0849896 118.072967,11.0849896 98.7430163,14.0464379 C96.9108417,9.64549908 94.1925838,4.11318106 91.8971895,0 C73.3526068,3.2084988 55.6133949,8.86399117 39.0420583,16.6376612 C5.61752293,67.146514 -3.4433191,116.400813 1.08711069,164.955721 C23.2560196,181.510915 44.7403634,191.567697 65.8621325,198.148576 C71.0772151,190.971126 75.7283628,183.341335 79.7352139,175.300261 C72.104019,172.400575 64.7949724,168.822202 57.8887866,164.667963 C59.7209612,163.310589 61.5131304,161.891452 63.2445898,160.431257 C105.36741,180.133187 151.134928,180.133187 192.754523,160.431257 C194.506336,161.891452 196.298154,163.310589 198.110326,164.667963 C191.183787,168.842556 183.854737,172.420929 176.223542,175.320965 C180.230393,183.341335 184.861538,190.991831 190.096624,198.16893 C211.238746,191.588051 232.743023,181.531619 254.911949,164.955721 C260.227747,108.668201 245.831087,59.8662432 216.856339,16.5966031 Z M85.4738752,135.09489 C72.8290281,135.09489 62.4592217,123.290155 62.4592217,108.914901 C62.4592217,94.5396472 72.607595,82.7145587 85.4738752,82.7145587 C98.3405064,82.7145587 108.709962,94.5189427 108.488529,108.914901 C108.508531,123.290155 98.3405064,135.09489 85.4738752,135.09489 Z M170.525237,135.09489 C157.88039,135.09489 147.510584,123.290155 147.510584,108.914901 C147.510584,94.5396472 157.658606,82.7145587 170.525237,82.7145587 C183.391518,82.7145587 193.761324,94.5189427 193.539891,108.914901 C193.539891,123.290155 183.391518,135.09489 170.525237,135.09489 Z",fill:"#5865F2","fill-rule":"nonzero"})],-1)])])):n("twitter")?(w(),C("svg",P7,[...r[124]||(r[124]=[f("g",null,[f("path",{d:"M256,25.4500259 C246.580841,29.6272672 236.458451,32.4504868 225.834156,33.7202333 C236.678503,27.2198053 245.00583,16.9269929 248.927437,4.66307685 C238.779765,10.6812633 227.539325,15.0523376 215.57599,17.408298 C205.994835,7.2006971 192.34506,0.822 177.239197,0.822 C148.232605,0.822 124.716076,24.3375931 124.716076,53.3423116 C124.716076,57.4586875 125.181462,61.4673784 126.076652,65.3112644 C82.4258385,63.1210453 43.7257252,42.211429 17.821398,10.4359288 C13.3005011,18.1929938 10.710443,27.2151234 10.710443,36.8402889 C10.710443,55.061526 19.9835254,71.1374907 34.0762135,80.5557137 C25.4660961,80.2832239 17.3681846,77.9207088 10.2862577,73.9869292 C10.2825122,74.2060448 10.2825122,74.4260967 10.2825122,74.647085 C10.2825122,100.094453 28.3867003,121.322443 52.413563,126.14673 C48.0059695,127.347184 43.3661509,127.988612 38.5755734,127.988612 C35.1914554,127.988612 31.9009766,127.659938 28.694773,127.046602 C35.3777973,147.913145 54.7742053,163.097665 77.7569918,163.52185 C59.7820257,177.607983 37.1354036,186.004604 12.5289147,186.004604 C8.28987161,186.004604 4.10888474,185.75646 0,185.271409 C23.2431033,200.173139 50.8507261,208.867532 80.5109185,208.867532 C177.116529,208.867532 229.943977,128.836982 229.943977,59.4326002 C229.943977,57.1552968 229.893412,54.8901664 229.792282,52.6381454 C240.053257,45.2331635 248.958338,35.9825545 256,25.4500259",fill:"#ffffff"})],-1)])])):n("ai")?(w(),C("svg",$7,[...r[125]||(r[125]=[f("g",null,[f("path",{d:"M4.9996 7V11M9.9996 2V6M17.9996 16V20M2.9996 9H6.9996M7.9996 4H11.9996M15.9996 18H19.9996M13.9996 7L16.828 9.82843M19.5162 3.74612L20.0819 4.3118C20.4779 4.70782 20.6759 4.90583 20.7501 5.13416C20.8154 5.335 20.8154 5.55135 20.7501 5.75219C20.6759 5.98052 20.4779 6.17853 20.0819 6.57454L6.52508 20.1314C6.12906 20.5274 5.93105 20.7254 5.70272 20.7996C5.50188 20.8649 5.28553 20.8649 5.08469 20.7996C4.85636 20.7254 4.65835 20.5274 4.26234 20.1314L3.69665 19.5657C3.30063 19.1697 3.10262 18.9717 3.02844 18.7433C2.96318 18.5425 2.96318 18.3262 3.02844 18.1253C3.10262 17.897 3.30063 17.699 3.69665 17.303L17.2535 3.74612C17.6495 3.3501 17.8475 3.15209 18.0758 3.0779C18.2767 3.01265 18.493 3.01265 18.6939 3.0779C18.9222 3.15209 19.1202 3.3501 19.5162 3.74612Z",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])])):n("user-reset")?(w(),C("svg",R7,[...r[126]||(r[126]=[f("path",{d:"M13.16,3.17A8.83,8.83,0,1,1,5.76,16.8l1.4-1.11a7.05,7.05,0,1,0-1-4.57H8.6L5.3,14.41,2,11.12H4.38a8.83,8.83,0,0,1,8.78-7.95m2",fill:"
27currentColor"},null,-1),f("path",{d:"M12 21.008q0 0.576 0.224 1.152 2.592 1.856 5.76 1.856t5.76-1.856q0.256-0.576 0.256-1.152-0.256-1.344-1.088-2.464t-2.048-1.792q1.12-1.152 1.12-2.752v-1.984q0-1.664-1.184-2.848t-2.816-1.152-2.816 1.152-1.184 2.848v1.984q0 1.6 1.12 2.752-1.216 0.672-2.048 1.792t-1.056 2.464z",transform:"translate(-3 -3) scale(0.65) translate(7 7)",fill:"currentColor"},null,-1)])])):n("trash")?(w(),C("svg",V7,[...r[127]||(r[127]=[f("g",null,[f("path",{fill:"currentColor",d:"M21 6h-5V4.33A2.42 2.42 0 0 0 13.5 2h-3A2.42 2.42 0 0 0 8 4.33V6H3a1 1 0 0 0 0 2h1v11a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3V8h1a1 1 0 0 0 0-2zM10 16a1 1 0 0 1-2 0v-4a1 1 0 0 1 2 0zm0-11.67c0-.16.21-.33.5-.33h3c.29 0 .5.17.5.33V6h-4zM16 16a1 1 0 0 1-2 0v-4a1 1 0 0 1 2 0z"})],-1)])])):n("user-delete")?(w(),C("svg",I7,[...r[128]||(r[128]=[ns('<g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" stroke="currentColor" stroke-width="1.062672"></g><g id="SVGRepo_iconCarrier"><g id="delete-user-circle-left" transform="translate(-1.586 -2)"><path id="secondary" fill="currentColor" d="M7,19.5a9,9,0,0,0,9.94,0A5,5,0,0,0,7,19.5Z"></path><path id="primary" d="M6,7.5l-3,3m0-3,3,3m1,9a9,9,0,0,0,9.94,0A5,5,0,0,0,7,19.5Z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2.0436"></path><path id="primary-2" data-name="primary" d="M9,13.64A4,4,0,1,0,12,7a4.09,4.09,0,0,0-2,.53" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2.0436"></path><path id="primary-3" data-name="primary" d="M9,3.52A8.8,8.8,0,0,1,12,3,9,9,0,1,1,5.64,18.36,8.86,8.86,0,0,1,3.52,15" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2.0436"></path></g></g>',2)])])):n("onlineBadges")?(w(),C("svg",H7,[...r[129]||(r[129]=[f("circle",{cx:"12",cy:"12",r:"4",fill:"currentColor"},null,-1)])])):n("endcall")?(w(),C("svg",F7,[...r[130]||(r[130]=[f("path",{fill:"currentColor",d:"M12,9C10.4,9 8.85,9.25 7.4,9.72V12.82C7.4,13.22 7.17,13.56 6.84,13.72C5.86,14.21 4.97,14.84 4.17,15.57C4,15.75 3.75,15.86 3.5,15.86C3.2,15.86 2.95,15.74 2.77,15.56L0.29,13.08C0.11,12.9 0,12.65 0,12.38C0,12.1 0.11,11.85 0.29,11.67C3.34,8.77 7.46,7 12,7C16.54,7 20.66,8.77 23.71,11.67C23.89,11.85 24,12.1 24,12.38C24,12.65 23.89,12.9 23.71,13.08L21.23,15.56C21.05,15.74 20.8,15.86 20.5,15.86C20.25,15.86 20,15.75 19.82,15.57C19.03,14.84 18.14,14.21 17.16,13.72C16.83,13.56 16.6,13.22 16.6,12.82V9.72C15.15,9.25 13.6,9 12,9Z"},null,-1)])])):n("pause")?(w(),C("svg",D7,[...r[131]||(r[131]=[f("path",{fill:"currentColor",d:"M14,19H18V5H14M6,19H10V5H6V19Z"},null,-1)])])):n("mute")?(w(),C("svg",B7,[...r[132]||(r[132]=[f("path",{d:"M8 5C8 2.79086 9.79086 1 12 1C14.2091 1 16 2.79086 16 5V12C16 14.2091 14.2091 16 12 16C9.79086 16 8 14.2091 8 12V5Z",fill:"currentColor"},null,-1),f("path",{d:"M6.25 11.8438V12C6.25 13.525 6.8558 14.9875 7.93414 16.0659C9.01247 17.1442 10.475 17.75 12 17.75C13.525 17.75 14.9875 17.1442 16.0659 16.0659C17.1442 14.9875 17.75 13.525 17.75 12V11.8438C17.75 11.2915 18.1977 10.8438 18.75 10.8438H19.25C19.8023 10.8438 20.25 11.2915 20.25 11.8437V12C20.25 14.188 19.3808 16.2865 17.8336 17.8336C16.5842 19.0831 14.9753 19.8903 13.25 20.1548V22C13.25 22.5523 12.8023 23 12.25 23H11.75C11.1977 23 10.75 22.5523 10.75 22V20.1548C9.02471 19.8903 7.41579 19.0831 6.16637 17.8336C4.61919 16.2865 3.75 14.188 3.75 12V11.8438C3.75 11.2915 4.19772 10.8438 4.75 10.8438H5.25C5.80228 10.8438 6.25 11.2915 6.25 11.8438Z",fill:"currentColor"},null,-1)])])):n("unmute")?(w(),C("svg",N7,[...r[133]||(r[133]=[f("path",{d:"M12 1C13.6452 1 15.0585 1.99333 15.6728 3.41298L7.99997 11.0858V5C7.99997 2.79086 9.79083 1 12 1Z",fill:"currentColor"},null,-1),f("path",{d:"M6.24997 12C6.24997 12.2632 6.26801 12.5245 6.30342 12.7823L4.25194 14.8338C3.92295 13.9344 3.74997 12.9761 3.74997 12V11.8438C3.74997 11.2915 4.19769 10.8438 4.74997 10.8438H5.24997C5.80226 10.8438 6.24997 11.2915 6.24997 11.8438V12Z",fill:"currentColor"},null,-1),f("path",{d:"M7.3242 18.7971L3.76773 22.3535C3.3772 22.7441 2.74404 22.7441 2.35352 22.3535L1.
2764641 21.6464C1.25588 21.2559 1.25588 20.6227 1.64641 20.2322L20.2322 1.64644C20.6227 1.25591 21.2559 1.25591 21.6464 1.64644L22.3535 2.35354C22.744 2.74407 22.744 3.37723 22.3535 3.76776L16 10.1213V12C16 14.2091 14.2091 16 12 16C11.4457 16 10.9177 15.8873 10.4378 15.6835L9.13553 16.9857C9.99969 17.4822 10.986 17.75 12 17.75C13.525 17.75 14.9875 17.1442 16.0658 16.0659C17.1442 14.9875 17.75 13.525 17.75 12V11.8438C17.75 11.2915 18.1977 10.8438 18.75 10.8438H19.25C19.8023 10.8438 20.25 11.2915 20.25 11.8437V12C20.25 14.188 19.3808 16.2865 17.8336 17.8336C16.5842 19.0831 14.9753 19.8903 13.25 20.1548V23H10.75V20.1548C9.51944 19.9662 8.34812 19.5014 7.3242 18.7971Z",fill:"currentColor"},null,-1)])])):n("video-enable")?(w(),C("svg",j7,[...r[134]||(r[134]=[f("path",{id:"zzzz",d:"M16,10l2.577-1.546c.793-.476,1.19-.714,1.516-.683a1,1,0,0,1,.713.4C21,8.438,21,8.9,21,9.826v4.348c0,.925,0,1.387-.194,1.652a1,1,0,0,1-.713.4c-.326.03-.723-.208-1.516-.683L16,14M6.2,18h6.6a4.968,4.968,0,0,0,2.108-.218,2,2,0,0,0,.874-.874A4.968,4.968,0,0,0,16,14.8V9.2a4.968,4.968,0,0,0-.218-2.108,2,2,0,0,0-.874-.874A4.969,4.969,0,0,0,12.8,6H6.2a4.969,4.969,0,0,0-2.108.218,2,2,0,0,0-.874.874A4.969,4.969,0,0,0,3,9.2v5.6a4.969,4.969,0,0,0,.218,2.108,2,2,0,0,0,.874.874A4.968,4.968,0,0,0,6.2,18Z"},null,-1)])])):n("video-disable")?(w(),C("svg",U7,[...r[135]||(r[135]=[f("path",{id:"zzzz",d:"M16,10l2.577-1.546c.793-.476,1.19-.714,1.516-.683a1,1,0,0,1,.713.4C21,8.438,21,8.9,21,9.826v4.348c0,.925,0,1.387-.194,1.652a1,1,0,0,1-.713.4c-.326.03-.723-.208-1.516-.683L16,
2714M6.2,18h6.6a4.968,4.968,0,0,0,2.108-.218,2,2,0,0,0,.874-.874A4.968,4.968,0,0,0,16,14.8V9.2a4.968,4.968,0,0,0-.218-2.108,2,2,0,0,0-.874-.874A4.969,4.969,0,0,0,12.8,6H6.2a4.969,4.969,0,0,0-2.108.218,2,2,0,0,0-.874.874A4.969,4.969,0,0,0,3,9.2v5.6a4.969,4.969,0,0,0,.218,2.108,2,2,0,0,0,.874.874A4.968,4.968,0,0,0,6.2,18Z"},null,-1),f("line",{x1:"16",y1:"5",x2:"2",y2:"19",stroke:"currentColor","stroke-width":"3"},null,-1),f("line",{x1:"16",y1:"5",x2:"3",y2:"18",stroke:"white","stroke-width":"2"},null,-1)])])):n("back-arrow")?(w(),C("svg",z7,[...r[136]||(r[136]=[f("g",null,[f("path",{d:"M26.105,21.891c-0.229,0-0.439-0.131-0.529-0.346l0,0c-0.066-0.156-1.716-3.857-7.885-4.59 c-1.285-0.156-2.824-0.236-4.693-0.25v4.613c0,0.213-0.115,0.406-0.304,0.508c-0.188,0.098-0.413,0.084-0.588-0.033L0.254,13.815 C0.094,13.708,0,13.528,0,13.339c0-0.191,0.094-0.365,0.254-0.477l11.857-7.979c0.175-0.121,0.398-0.129,0.588-0.029 c0.19,0.102,0.303,0.295,0.303,0.502v4.293c2.578,0.336,13.674,2.33,13.674,11.674c0,0.271-0.191,0.508-0.459,0.562 C26.18,21.891,26.141,21.891,26.105,21.891z",fill:"currentColor"})],-1)])])):n("drop-arrow-down")?(w(),C("svg",q7,[...r[137]||(r[137]=[f("g",{id:"SVGRepo_bgCarrier","stroke-width":"0"},null,-1),f("g",{id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),f("g",{id:"SVGRepo_iconCarrier"},[f("path",{fill:"#ffffff",d:"M21,2H11c-5,0-9,4-9,9v10c0,5,4,9,9,9h10c5,0,9-4,9-9V11C30,6,26,2,21,2z M21.7,14.7l-5,5C16.5,19.9,16.3,20,16,20 s-0.5-0.1-0.7-0.3l-5-5c-0.4-0.4-0.4-1,0-1.4s1-0.4,1.4,0l4.3,4.3l4.3-4.3c0.4-0.4,1-0.4,1.4,0S22.1,14.3,21.7,14.7z"})],-1)])])):n("drop-arrow-up")?(w(),C("svg",W7,[...r[138]||(r[138]=[f("g",{id:"SVGRepo_bgCarrier","stroke-width":"0"},null,-1),f("g",{id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),f("g",{id:"SVGRepo_iconCarrier"},[f("path",{fill:"#ffffff",d:"M21,2H11c-5,0-9,4-9,9v10c0,5,4,9,9,9h10c5,0,9-4,9-9V11C30,6,26,2,21,2z M21.7,18.7C21.5,18.9,21.3,19,21,19 s-0.5-0.1-0.7-0.3L16,14.4l-4.3,4.3c-0.4,0.4-1,0.4-1.4,0s-0.4-1,0-1.4l5-5c0.4-0.4,1-0.4,1.4,0l5,5C22.1,17.7,22.1,18.3,21.7,18.7z"})],-1)])])):n("live-streaming")?(w(),C("svg",G7,[...r[139]||(r[139]=[f("path",{fill:"currentColor",d:"M12 8.75C10.2051 8.75 8.75 10.2051 8.75 12C8.75 13.7949 10.2051 15.25 12 15.25C13.7949 15.25 15.25 13.7949 15.25 12C15.25 10.2051 13.7949 8.75 12 8.75Z"},null,-1),f("path",{fill:"currentColor","fill-rule":"evenodd",d:"M8.63374 7.46227C8.93072 7.75101 8.93739 8.22584 8.64865 8.52282C6.78378 10.4409 6.78378 13.5591 8.64865 15.4772C8.93739 15.7742 8.93072 16.249 8.63374 16.5377C8.33675 16.8265 7.86193 16.8198 7.57318 16.5228C5.14227 14.0226 5.14227 9.97741 7.57318 7.47718C7.86193 7.1802 8.33675 7.17352 8.63374 7.46227ZM15.3663 7.46227C15.6632 7.17352 16.1381 7.1802 16.4268 7.47718C18.8577 9.97741 18.8577 14.0226 16.4268 16.5228C16.1381 16.8198 15.6632 16.8265 15.3663 16.5377C15.0693 16.249 15.0626 15.7742 15.3514 15.4772C17.2162 13.5591 17.2162 10.4409 15.3514 8.52282C15.0626 8.22584 15.0693 7.75101 15.3663 7.46227Z","clip-rule":"evenodd"},null,-1),f("path",{fill:"currentColor","fill-rule":"evenodd",d:"M6.52038 5.47013C6.81302 5.76328 6.81261 6.23815 6.51946 6.53079C3.49351 9.5515 3.49351 14.4485 6.51946 17.4692C6.81261 17.7619 6.81302 18.2367 6.52038 18.5299C6.22774 18.823 5.75287 18.8234 5.45972 18.5308C1.84676 14.9241 1.84676 9.07592 5.45972 5.46921C5.75287 5.17657 6.22774 5.17698 6.52038 5.47013ZM17.4796 5.47013C17.7723 5.17698 18.2471 5.17657 18.5403 5.46921C22.1532 9.07592 22.1532 14.9241 18.5403 18.5308C18.2471 18.8234 17.7723 18.823 17.4796 18.5299C17.187 18.2367 17.1874 17.7619 17.4805 17.4692C20.5065 14.4485 20.5065 9.5515 17.4805 6.53079C17.1874 6.23815 17.187 5.76328 17.4796 5.47013Z","clip-rule":"evenodd"},null,-1)])])):n("gym")?(w(),C("svg",Z7,[...r[140]||(r[140]=[f("path",{d:"M50,300.05c-27.6,0-50,22.4-50,50v174c0,27.6,22.4,50,50,50s50-22.4,50-50v-174C100,322.45,77.6,300.05,50,300.05z"},null,-1),f("path",{d:"M690.1,244.55c-27.6,0-50,22.4-50,50v102.5h-406v-102.5c0-27.6-22.4-50-50-50c-27.6,0-50,22.4-50,50v285 c0,27.6,22.4,50,50,50c27.6,0,50-22.4,50-50v-102.5h406v102.5c0,27.6,22.4,50,50,50s50-22.4,50-50v-285 C740.1,266.95,717.699,244.55,690.1,244.55z"},null,-1),f("path",{d:"M824.1,300.05c-27.6,0-50,22.4-50,50v174c0,27.6,22.4,50,50,50s50-22.4,50-50v-174 C874.1,322.45,851.699,300.05,824.1,300.05z"},null,-1)])])):n("loading-animated")?(w(),C("svg",K7,[...r[141]||(r[141]=[f("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 4v1m6.364 1.636l-.707.707M20 12h-1m-1.636 6.364l-.707-.707M12 20v-1m-6.364-1.636l.707-.707M4 12h1m1.636-6.364l.707.707"},null,-1)])])):n("check")?(w(),C("svg",Y7,[...r[142]||(r[142]=[f("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 13l4 4L19 7"},null,-1)])])):n("check-circle")?(w(),C("svg",X7,[...r[143]||(r[143]=[f("path",{fill:"currentColor",d:"M12,2A10,10 0 1,0 22,12A10,10 0 0,0 12,2M12,20A8,8 0 1,1 20,12A8,8 0 0,1 12,20M16.59,7.58L10,14.17L7.41,11.59L6,13L10,17L18,9L16.59,7.58Z"},null,-1)])])):n("redirection")?(w(),C("svg",J7,[...r[144]||(r[144]=[f("path",{d:"M653.328 125.024l-56.576 56.704L734.88 320H399.68C240.88 320 112 448.992 112 607.7
2776c0 158.816 128 287.952 288 287.952v-80c-112 0-208-93.312-208-208.016 0-114.688 93.152-208 207.84-208h334.96l-137.888 137.856 56.528 56.56 234.48-234.496L653.344 125.024z",fill:"#ffffff"},null,-1)])])):n("tag")?(w(),C("svg",Q7,[...r[145]||(r[145]=[f("path",{d:"M0 252.118V48C0 21.49 21.49 0 48 0h204.118a48 48 0 0 1 33.941 14.059l211.882 211.882c18.745 18.745 18.745 49.137 0 67.882L293.823 497.941c-18.745 18.745-49.137 18.745-67.882 0L14.059 286.059A48 48 0 0 1 0 252.118zM112 64c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48z"},null,-1)])])):n("filter")?(w(),C("svg",e8,[...r[146]||(r[146]=[f("path",{d:"M3 4H21L14 12V20L10 22V12L3 4Z",stroke:"#333333","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])):n("ai-stroking")?(w(),C("svg",t8,[...r[147]||(r[147]=[f("path",{style:{fill:"none",stroke:"#fff","stroke-width":"20px"},d:"M50 100h700M50 700h700"},null,-1),f("circle",{cx:"400",cy:"400",r:"100",style:{fill:"#fff"}},[f("animate",{attributeName:"cy",values:"400; 210; 590; 400",keyTimes:"0; 0.25; 0.75; 1",calcMode:"spline",keySplines:"0.45 0 0.55 1; 0.45 0 0.55 1; 0.45 0 0.55 1",dur:"1.5s",repeatCount:"indefinite"})],-1)])])):n("random")?(w(),C("svg",n8,[...r[148]||(r[148]=[f("title",null,"This will take you to a random video.",-1),f("path",{d:"M22.969 12v2.938l7.062-4.562-7-4.375-0.062 3h-5.875l-7.188 10.937h-7.875v3.062h9.375l7-11h4.563zM12.031 15.188l1.562-2.75-2.187-3.438h-9.375l-0.062 3h7.938l2.124 3.188zM22.969 20h-4.562l-2-3.188-1.626 2.688 2.312 3.5h5.875l0.062 3 7-4.375-7.062-4.562v2.937z"},null,-1)])])):n("infinity")?(w(),C("svg",s8,[...r[149]||(r[149]=[f("path",{d:"M18.1777 8C23.2737 8 23.2737 16 18.1777 16C13.0827 16 11.0447 8 5.43875 8C0.85375 8 0.85375 16 5.43875 16C11.0447 16 13.0828 8 18.1788 8H18.1777Z",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])):n("globe")?(w(),C("svg",r8,[...r[150]||(r[150]=[f("circle",{cx:"12",cy:"12",r:"9",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),f("path",{d:"M12 3c3 3 3 15 0 18m0-18c-3 3-3 15 0 18",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),f("path",{d:"M3 12h18",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"},null,-1),f("path",{d:"M6 7.75c2.5 1 9.5 1 12 0m-12 8.5c2.5-1 9.5-1 12 0",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])):n("x")?(w(),C("svg",i8,[...r[151]||(r[151]=[f("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"},null,-1)])])):n("playlist")?(w(),C("svg",o8,[...r[152]||(r[152]=[f("path",{fill:"currentColor",d:"M15,16H19V18H15V16M15,8H19V10H15V8M15,12H19V14H15V12M3,12H13V14H3V12M3,16H13V18H3V16M3,8H13V10H3V8Z"},null,-1)])])):n("edit")?(w(),C("svg",a8,[...r[153]||(r[153]=[f("path",{fill:"currentColor",d:"M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z"},null,-1)])])):n("delete")?(w(),C("svg",l8,[...r[154]||(r[154]=[f("path",{fill:"currentColor",d:"M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19V4M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z"},null,-1)])])):n("video")?(w(),C("svg",u8,[...r[155]||(r[155]=[f("path",{fill:"currentColor",d:"M17,10.5V7A1,1 0 0,0 16,6H4A1,1 0 0,0 3,7V17A1,1 0 0,0 4,18H16A1,1 0 0,0 17,17V13.5L21,17.5V6.5L17,10.5Z"},null,-1)])])):n("lock")?(w(),C("svg",c8,[...r[156]||(r[156]=[f("g",{fill:"none",stroke:"#ffffff","stroke-width":"2","stroke-miterlimit":"10"},[f("path",{d:"M8 33h48v30H8zm8 0V17c0-8.837 7.163-16 16-16s16 7.163 16 16v16"}),f("circle",{cx:"32",cy:"47",r:"4"}),f("path",{d:"M32 51v4"})],-1)])])):n("reorder")?(w(),C("svg",d8,[...r[157]||(r[157]=[f("path",{fill:"currentColor",d:"M3,15H21V13H3V15M3,19H21V17H3V19M3,11H21V9H3V11M3,5V7H21V5H3Z"},null,-1)])])):n("drag-handle")?(w(),C("svg",f8,[...r[158]||(r[158]=[f("path",{fill:"currentColor",d:"M7,19V17H9V19H7M11,19V17H13V19H11M15,19V17H17V19H15M7,15V13H9V15H7M11,15V13H13V15H11M15,15V13H17V15H15M7,11V9H9V11H7M11,
2711V9H13V11H11M15,11V9H17V11H15M7,7V5H9V7H7M11,7V5H13V7H11M15,7V5H17V7H15Z"},null,-1)])])):n("alert")?(w(),C("svg",h8,[...r[159]||(r[159]=[f("path",{fill:"currentColor",d:"M13,14H11V9H13M13,18H11V16H13M1,21H23L12,2L1,21Z"},null,-1)])])):n("virtual-reality")?(w(),C("svg",p8,[...r[160]||(r[160]=[f("path",{d:"M4.18 6.2C2.37 5.67 1.25 5 1.25 4.18c0-1.18 2.39-2.13 5.86-2.61v5.22m12.71-.59c1.81-.53 2.93-1.24 2.93-2 0-1.14-2.39-2.13-5.86-2.61v5.2M4.18 17.8c-1.81.53-2.93 1.24-2.93 2 0 1.2 2.39 2.2 5.86 2.63v-5.22m12.71.59c1.81.53 2.93 1.24 2.93 2 0 1.14-2.39 2.13-5.86 2.61v-5.2M1.25 19.82V4.18m5.86 0v2.61a35 35 0 0 0 4.89.32 35 35 0 0 0 4.89-.32V4.18M7.11 19.82v-2.61a35 35 0 0 1 4.89-.32 35 35 0 0 1 4.89.32v2.61m5.86 0V4.18"},null,-1),f("path",{d:"M16.89 6.79v10.42a35 35 0 0 0-4.89-.32 35 35 0 0 0-4.89.32V6.79a35 35 0 0 0 4.89.32 35 35 0 0 0 4.89-.32Z"},null,-1)])])):n("sad")?(w(),C("svg",g8,[...r[161]||(r[161]=[f("circle",{cx:"12",cy:"12",r:"9","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),f("path",{d:"M9 10h.01M15 10h.01","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),f("path",{d:"M8 16s1.5-2 4-2 4 2 4 2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])):n("shuffle")?(w(),C("svg",v8,[...r[162]||(r[162]=[f("path",{fill:"currentColor",d:"M14.83,13.41L13.42,14.82L16.55,17.95L14.5,20H20V14.5L17.96,16.54L14.83,13.41M14.5,4L16.54,6.04L4,18.59L5.41,20L17.96,7.46L20,9.5V4M10.59,9.17L5.41,4L4,5.41L9.17,10.58L10.59,9.17Z"},null,-1)])])):n("repeat")?(w(),C("svg",m8,[...r[163]||(r[163]=[f("path",{fill:"currentColor",d:"M17,17H7V14L3,18L7,22V19H19V13H17M7,7H17V10L21,6L17,2V5H5V11H7V7Z"},null,-1)])])):n("list")?(w(),C("svg",_8,[...r[164]||(r[164]=[f("path",{fill:"currentColor",d:"M9,5V9H21V5M9,19H21V15H9M9,14H21V10H9M4,9H8V5H4M4,19H8V15H4M4,14H8V10H4V14Z"},null,-1)])])):n("prev")?(w(),C("svg",y8,[...r[165]||(r[165]=[f("path",{fill:"currentColor",d:"M6,18V6H8V18H6M9.5,12L18,6V18L9.5,12Z"},null,-1)])])):n("next")?(w(),C("svg",b8,[...r[166]||(r[166]=[f("path",{fill:"currentColor",d:"M16,18H18V6H16M6,18L14.5,12L6,6V18Z"},null,-1)])])):n("upload-video")?(w(),C("svg",w8,[...r[167]||(r[167]=[f("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 13h3a3 3 0 0 0 0-6h-.025A6 6 0 0 0 16 6.5 5.5 5.5 0 0 0 5.207 5.021C5.137 5.017 5.071 5 5 5a4 4 0 0 0 0 8h2.167M10 15V6m0 0L8 8m2-2 2 2"},null,-1)])])):n("reconnect")?(w(),C("svg",x8,[...r[168]||(r[168]=[f("path",{style:{fill:"none"},d:"M0 0h70v70H0z"},null,-1),f("path",{d:"M619.949 275.918v-.746c0-.284.136-.481.277-.557.132-.066.202-.131.273-.131h.066c.07 0 .207.065.272.131l3.634 2.065c.201.065.272.339.272.535 0 .208-.071.416-.272.481l-3.634 2.131c-.065.065-.202.065-.272.065-.137 0-.207 0-.339-.065-.141-.142-.277-.284-.277-.547v-.845c-6.691.697-11.857 6.286-11.857 12.989a13.105 13.105 0 0 0 13.125 13.124c7.119 0 13.125-5.86 13.125-13.124 0-.557.556-1.114 1.124-1.114.69 0 1.246.557 1.246 1.114 0 8.645-6.975 15.641-15.495 15.641-8.654 0-15.639-6.996-15.639-15.641 0-8.106 6.279-14.81 14.371-15.506",style:{fill:"#fff"},transform:"translate(-1251.85 -567.406)scale(2.07173)"},null,-1),f("path",{d:"M110.931 107.069c-10.688-10.686-28.275-10.686-38.963 0l-27.556 27.555a27.57 27.57 0 0 0-8.411 19.581l-.001.239C36 169.561 48.439 182 63.556 182c7.471 0 14.63-3.038 19.82-8.412l7.591-7.585m-5.221-33.749c10.688 10.685 28.275 10.685 38.963 0l27.556-27.555a27.57 27.57 0 0 0 7.732-19.141c0-15.025-12.288-27.424-27.313-27.557a27.56 27.56 0 0 0-19.383 7.734l-7.578 7.578",style:{fill:"none","fill-rule":"nonzero",stroke:"#fff","stroke-width":"19.24px"},transform:"translate(12.08 6.935)scale(.23388)"},null,-1)])])):n("broken-video")?(w(),C("svg",C8,[...r[169]||(r[169]=[f("g",{transform:"matrix(0.777644,0,0,0.777644,0.000367873,0.0313027)"},[f("path",{fill:"currentColor",d:"M9.794,10.63L9.684,10.03L8.89,10.415C7.707,9.021 5.713,8.603 4.07,9.405L2.262,10.285C0.88,10.957 -0,12.365 -0,13.902C-0,16.109 1.815,17.924 4.022,17.924C4.632,17.924 5.234,17.786 5.782,17.519L7.592,16.639C9.236,15.84 10.137,14.013 9.77,12.222L10.57,11.832L10.643,10.757L9.794,10.63ZM6.712,14.83L4.904,15.71C4.63,15.843 4.329,15.913 4.024,15.913C2.92,15.913 2.012,15.005 2.012,13.901C2.012,13.132 2.453,12.428 3.144,12.092L4.951,11.212C5.595,10.9 6.358,10.954 6.951,11.355L5.388,12.115C5.042,12.283 4.822,12.635 4.822,13.02C4.822,13.572 5.276,14.026 5.828,14.026C5.98,14.026 6.131,13.992 6.268,13.925L7.832,13.163C7.784,13.878 7.357,14.515 6.714,14.831L6.712,14.83ZM17.5,2.08C16.794,0.798 15.442,-0.002 13.978,-0.002C13.298,-0.002 12.628,0.171 12.033,0.5L10.273,1.472C8.672,2.354 7.866,4.223 8.323,5.992L7.583,6.4L7.6,6.852L8.47,6.936L8.5,7.334L8.5,8.2L9.3,7.756C10.554,9.087 12.565,9.401 14.165,8.516L15.925,7.546C17.205,6.84 18.003,5.488 18.003,4.026C18.003,3.346 17.83,2.676 17.5,2.08ZM14.95,5.78L13.19,6.752C12.562,7.099 11.794,7.084 11.18,6.712L12.7,5.875C13.03,5.702 13.238,5.358 13.238,4.985C13.238,4.434 12.784,3.98 12.233,3.98C12.056,3.98 11.883,4.027 11.73,4.115L10.206,4.955C10.219,4.238 10.615,3.58 11.243,3.233L13,2.263C13.289,2.111 13.61,2.032 13.936,2.032C15.04,2.032 15.948,2.94 15.948,4.044C15.948,4.759 15.566,5.423 14.948,5.783L14.95,5.78Z"})],-1)])])):n("comment-2")?(w(),C("svg",k8,[...r[170]||(r[170]=[f("g",{transform:"matrix(0.777778,0,0,0.777778,-3.88889,-3.88889)"},[f("path",{fill:"currentColor",d:"M12,23C11.451,23 11,22.549 11,22L11,19L7,19C5.903,19 5,18.097 5,17L5,7C5,5.903 5.903,5 7,5L21,5C22.097,5 23,5.903 23,7L23,17C23,18.097 22.097,19 21,19L16.9,19L13.2,22.71C13,22.89 12.76,23 12.5,23L12,23M9,9L9,11L19,11L19,9L9,9M9,13L9,15L17,15L17,13L9,13Z"})],-1)])])):n("download-2")?(w(),C("svg",S8,[...r[171]||(r[171]=[f("g",{transform:"matrix(0.823529,0,0,0.823529,-2.88235,-2.47059)"},[f("path",{fill:"currentColor",d:"M5,20L19,20L19,18L5,18M19,9L15,9L15,3L9,3L9,9L5,9L12,16L19,9Z"})],-1)])])):n("fapai-failed")?(w(),C("svg",E8,[...r[172]||(r[172]=[f("g",null,[f("g",{transform:"matrix(0.904977,0,0,0.764286,0,3.3)"},[f("path",{fill:"currentColor",d:"M9.614,4.468L9.614,12.845C9.614,13.483 9.176,14 8.638,14L0.975,14C0.437,14 0,13.483 0,12.845L0,1.155C0,0.517 0.437,0 0.975,0L5.84,0L9.614,4.468ZM4.807,11.121C4.95,11.122 5.079,11.018 5.129,10.86L5.68,9.165C5.703,9.096 5.749,9.042 5.807,9.015L7.238,8.363C7.369,8.304 7.457,8.156 7.459,7.99C7.46,7.815 7.368,7.657 7.229,7.596L5.807,6.948C5.748,6.921 5.702,6.867 5.68,6.798L5.129,5.103C5.078,4.946 4.95,4.841 4.807,4.841C4.664,4.841 4.536,4.946 4.485,5.103L3.934,6.798C3.912,6.867 3.865,6.922 3.807,6.948L2.376,7.6C2.243,7.66 2.155,7.813 2.155,7.982C2.155,8.151 2.243,8.303 2.376,8.363L3.808,9.015C3.866,9.042 3.912,9.097 3.934,9.166L4.485,10.86C4.535,11.018 4.664,11.122 4.807,11.121Z"})]),f("g",{transform:"matrix(0.0308877,0.0308877,-0.0308877,0.0308877,6.35839,-14.9929)"},[f("path",{fill:"currentColor",d:"M378.4,205.9L378.4,257L354.5,257L354.5,205.9L303.4,205.9L303.4,182L354.5,182L354.5,131L378.4,131L378.4,182.1L429.5,182.1L429.5,206L378.4,206L378.4,205.9Z"})])],-1)])])):n("like-2")?(w(),C("svg",A8,[...r[173]||(r[173]=[f("g",{transform:"matrix(0.7,0,0,0.7,-1.4,-1.5225)"},[f("path",{fill:"currentColor",d:"M12,21.35L10.55,20.03C5.4,15.36 2,12.27 2,8.5C2,5.41 4.42,3 7.5,3C9.24,3 10.91,3.81 12,5.08C13.09,3.81 14.76,3 16.5,3C19.58,3 22,5.41 22,8.5C22,12.27 18.6,15.36 13.45,20.03L12,21.35Z"})],-1)])])):n("new-fapai-script")?(w(),C("svg",L8,[...r[174]||(r[174]=[f("g",{transform:"matrix(0.904977,0,0,0.764286,0,3.3)"},[f("path",{fill:"currentColor",d:"M9.614,4.468L9.614,12.845C9.614,13.483 9.176,14 8.638,14L0.975,14C0.437,14 0,13.483 0,12.845L0,1.155C0,0.517 0.437,0 0.975,0L5.84,0L9.614,4.468ZM4.807,11.121C4.95,11.122 5.079,11.018 5.129,10.86L5.68,9.165C5.703,9.096 5.749,9.042 5.807,9.015L7.238,8.363C7.369,8.304 7.457,8.156 7.459,7.99C7.46,7.815 7.368,7.657 7.229,7.596L5.807,6.948C5.748,6.921 5.702,6.867 5.68,6.798L5.129,5.103C5.078,4.946 4.95,4.841 4.807,4.841C4.664,4.841 4.536,4.946 4.485,5.103L3.934,6.798C3.912,6.867 3.865,6.922 3.807,6.948L2.376,7.6C2.243,7.66 2.155,7.813 2.155,7.982C2.155,8.151 2.243,8.303 2.376,8.363L3.808,9.015C3.866,9.042 3.912,9.097 3.934,9.166L4.485,10.86C4.535,11.018 4.664,11.122 4.807,11.121Z"})],-1),f("g",{transform:"matrix(0.0436817,0,0,0.0436817,-4.76131,-5.72231)"},[f("path",{fill:"currentColor",d:"M378.4,205.9L378.4,257L354.5,257L354.5,205.9L303.4,205.9L303.4,182L354.5,182L354.5,131L378.4,131L378.4,182.1L429.5,182.1L429.5,206L378.4,206L378.4,205.9Z"})],-1)])])):n("playlist-addition")?(w(),C("svg",T8,[...r[175]||(r[175]=[f("g",{transform:"matrix(0.7,0,0,0.7,-1.4,-1.4)"},[f("path",{fill:"currentColor",d:"M20,6C21.1,6 22,6.9 22,8L22,18C22,19.1 21.1,20 20,20L4,20C2.89,20 2,19.1 2,18L2,6C2,4.89 2.89,4 4,4L10,4L12,6L20,6ZM14.995,17.002L15.556,16.491C17.55,14.683 18.866,13.487 18.866,12.028C18.866,10.832 17.929,9.899 16.737,9.899C16.064,9.899 15.417,10.212 14.995,10.704C14.573,10.212 13.927,9.899 13.253,9.899C12.061,9.899 11.124,10.832 11.124,12.028C11.124,13.487 12.44,14.683 14.434,16.491L14.995,17.002Z"})],-1)])])):n("reply")?(w(),C("svg",M8,[...r[176]||(r[176]=[f("g",{transform:"matrix(0.636364,0,0,0.636364,-0.636364,-0.636364)"},[f("path",{fill:"currentColor",d:"M3,15L1,15L1,3C1,1.903 1.903,1 3,1L19,1L19,3L3,3L3,15M12,23C11.451,23 11,22.549 11,22L11,19L7,19C5.903,19 5,18.097 5,17L5,7C5,5.903 5.903,5 7,5L21,5C22.097,5 23,5.903 23,7L23,17C23,18.097 22.097,19 21,19L16.9,19L13.2,22.71C13,22.89 12.76,23 12.5,23L12,23M9,9L9,11L19,11L19,9L9,9M9,13L9,15L17,15L17,13L9,13Z"})],-1)])])):n("subscribe")?(w(),C("svg",O8,[...r[177]||(r[177]=[f("g",{transform:"matrix(0.0436817,0,0,0.0436817,-4.76131,-4.4883)"}
27,[f("path",{fill:"currentColor",d:"M208.6,146.8C242.6,146.8 270.2,174.4 270.2,208.4C270.2,242.4 242.6,270 208.6,270C174.6,270 147,242.4 147,208.4C147,174.4 174.6,146.8 208.6,146.8ZM308.1,359.1C308.1,378.8 292,395 272.2,395L144.9,395C125.2,395 109,378.9 109,359.1L109,283.2C109,263.5 125.1,247.3 144.9,247.3L147.9,247.3C160.4,267.7 182.9,281.3 208.6,281.3C234.3,281.3 256.8,267.7 269.3,247.3L272.3,247.3C292,247.3 308.2,263.4 308.2,283.2L308.2,359.1L308.1,359.1ZM378.4,205.9L378.4,257L354.5,257L354.5,205.9L303.4,205.9L303.4,182L354.5,182L354.5,131L378.4,131L378.4,182.1L429.5,182.1L429.5,206L378.4,206L378.4,205.9Z"})],-1)])])):n("robot")?(w(),C("svg",P8,[...r[178]||(r[178]=[f("path",{fill:"currentColor",d:"M12,2C17.5,2 22,6.47 22,12C22,17.486 17.486,22 12,22C6.514,22 2,17.486 2,12C2,6.514 6.514,2 12,2ZM12,19.2C14.5,19.2 16.71,17.92 18,16C17.97,12.926 18.91,12.917 12,12.9C5.057,12.883 6.061,12.864 6,16C7.29,17.92 9.5,19.2 12,19.2ZM9,9.003L9,10.103C9,10.599 9.403,11.003 9.9,11.003L14.1,11.003C14.597,11.003 15,10.599 15,10.103L15,9.003L17,9.003L17,7.003L15,7.003L15,5.903C15,5.406 14.597,5.003 14.1,5.003L12.5,5.003L12.5,3.36C12.5,3.222 12.388,3.11 12.25,3.11L11.75,3.11C11.612,3.11 11.5,3.222 11.5,3.36L11.5,5.003L9.9,5.003C9.403,5.003 9,5.406 9,5.903L9,7.003L7,7.003L7,9.003L9,9.003Z"},null,-1)])])):n("video-report")?(w(),C("svg",$8,[...r[179]||(r[179]=[f("path",{d:"M0,0L512,0L512,512L0,512L0,0ZM198.982,326.856C198.982,332.73 205.342,336.402 210.43,333.465L333.154,262.609C338.242,259.672 338.242,252.328 333.154,249.391L210.429,178.535C205.341,175.597 198.982,179.269 198.982,185.144L198.982,326.856ZM71.524,100.904C75.738,100.904 79.154,97.487 79.154,93.272L79.154,50.298C79.154,46.083 75.738,42.667 71.523,42.667L47.957,42.667C43.742,42.667 40.324,46.083 40.324,50.298L40.324,93.272C40.324,97.487 43.742,100.904 47.957,100.904L71.524,100.904ZM47.957,165.475C43.742,165.475 40.324,168.892 40.324,173.108L40.324,216.082C40.324,220.297 43.742,223.714 47.957,223.714L71.523,223.714C75.738,223.714 79.154,220.297 79.154,216.082L79.154,173.108C79.154,168.892 75.738,165.475 71.523,165.475L47.957,165.475ZM47.957,411.094C43.742,411.094 40.324,414.512 40.324,418.726L40.324,461.701C40.324,465.916 43.742,469.333 47.957,469.333L71.523,469.333C75.738,469.333 79.154,465.916 79.154,461.701L79.154,418.726C79.154,414.512 75.738,411.094 71.523,411.094L47.957,411.094ZM440.476,288.284C436.262,288.284 432.844,291.702 432.843,295.916L432.843,338.891C432.843,343.106 436.261,346.523 440.476,346.523L464.041,346.523C468.256,346.523 471.672,343.106 471.672,338.891L471.672,295.916C471.672,291.702 468.256,288.284 464.041,288.284L440.476,288.284ZM440.476,165.475C436.262,165.475 432.844,168.892 432.843,173.108L432.843,216.082C432.843,220.297 436.261,223.714 440.476,223.714L464.041,223.714C468.256,223.714 471.672,220.297 471.672,216.082L471.672,173.108C471.672,168.892 468.256,165.475 464.041,165.475L440.476,165.475ZM440.476,411.094C436.262,411.094 432.844,414.512 432.843,418.726L432.843,461.701C432.843,465.916 436.261,469.333 440.476,469.333L464.041,469.333C468.256,469.333 471.672,465.916 471.672,461.701L471.672,418.726C471.672,414.512 468.256,411.094 464.041,411.094L440.476,411.094ZM464.041,100.904C468.256,100.904 471.672,97.487 471.672,93.272L471.672,50.298C471.672,46.083 468.256,42.667 464.041,42.667L440.476,42.667C436.261,42.667 432.843,46.083 432.843,50.298L432.843,93.272C432.843,97.487 436.261,100.904 440.476,100.904L464.041,100.904ZM47.957,288.284C43.742,288.284 40.324,291.702 40.324,295.916L40.324,338.891C4
270.324,343.106 43.742,346.523 47.957,346.523L71.523,346.523C75.738,346.523 79.154,343.106 79.154,338.891L79.154,295.916C79.154,291.702 75.738,288.284 71.523,288.284L47.957,288.284Z"},null,-1)])])):n("comment-report")?(w(),C("svg",R8,[...r[180]||(r[180]=[f("g",{transform:"matrix(0.777778,0,0,0.777778,-3.88889,-3.88889)"},[f("path",{d:"M12,23C11.451,23 11,22.549 11,22L11,19L7,19C5.903,19 5,18.097 5,17L5,7C5,5.903 5.903,5 7,5L21,5C22.097,5 23,5.903 23,7L23,17C23,18.097 22.097,19 21,19L16.9,19L13.2,22.71C13,22.89 12.76,23 12.5,23L12,23M9,9L9,11L19,11L19,9L9,9M9,13L9,15L17,15L17,13L9,13Z"})],-1)])])):n("performer-report")?(w(),C("svg",V8,[...r[181]||(r[181]=[f("g",{transform:"matrix(0.0435133,0,0,0.0435133,-4.74295,-3.18775)"},[f("path",{d:"M208.6,146.8C242.6,146.8 270.2,174.4 270.2,208.4C270.2,242.4 242.6,270 208.6,270C174.6,270 147,242.4 147,208.4C147,174.4 174.6,146.8 208.6,146.8ZM308.1,359.1C308.1,378.8 292,395 272.2,395L144.9,395C125.2,395 109,378.9 109,359.1L109,283.2C109,263.5 125.1,247.3 144.9,247.3L147.9,247.3C160.4,267.7 182.9,281.3 208.6,281.3C234.3,281.3 256.8,267.7 269.3,247.3L272.3,247.3C292,247.3 308.2,263.4 308.2,283.2L308.2,359.1L308.1,359.1Z"})],-1),f("g",{transform:"matrix(0.0107422,0,0,0.0107422,8.5,0)"},[f("path",{d:"M-0,0L512,0L512,512L-0,512L-0,0ZM198.982,326.856C198.982,332.73 205.342,336.402 210.43,333.465L333.154,262.609C338.242,259.672 338.242,252.328 333.154,249.391L210.429,178.535C205.341,175.597 198.982,179.269 198.982,185.144L198.982,326.856ZM71.524,100.904C75.738,100.904 79.154,97.487 79.154,93.272L79.154,50.298C79.154,46.083 75.738,42.667 71.523,42.667L47.957,42.667C43.742,42.667 40.324,46.083 40.324,50.298L40.324,93.272C40.324,97.487 43.742,100.904 47.957,100.904L71.524,100.904ZM47.957,165.475C43.742,165.475 40.324,168.892 40.324,173.108L40.324,216.082C40.324,220.297 43.742,223.714 47.957,223.714L71.523,223.714C75.738,223.714 79.154,220.297 79.154,216.082L79.154,173.108C79.154,168.892 75.738,165.475 71.523,165.475L47.957,165.475ZM47.957,411.094C43.742,411.094 40.324,414.512 40.324,418.726L40.324,461.701C40.324,465.916 43.742,469.333 47.957,469.333L71.523,469.333C75.738,469.333 79.154,465.916 79.154,461.701L79.154,418.726C79.154,414.512 75.738,411.094 71.523,411.094L47.957,411.094ZM440.476,288.284C436.262,288.284 432.844,291.702 432.843,295.916L432.843,338.891C432.843,343.106 436.261,346.523 440.476,346.523L464.041,346.523C468.256,346.523 471.672,343.106 471.672,338.891L471.672,295.916C471.672,291.702 468.256,288.284 464.041,288.284L440.476,288.284ZM440.476,165.475C436.262,165.475 432.844,168.892 432.843,173.108L432.843,216.082C432.843,220.297 436.261,223.714 440.476,223.714L464.041,223.714C468.256,223.714 471.672,220.297 471.672,216.082L471.672,173.108C471.672,168.892 468.256,165.475 464.041,165.475L440.476,165.475ZM440.476,411.094C436.262,411.094 432.844,414.512 432.843,418.726L432.843,461.701C432.843,465.916 436.261,469.333 440.476,469.333L464.041,469.333C468.256,469.333 471.672,465.916 471.672,461.701L471.672,418.726C471.672,414.512 468.256,411.094 464.041,411.094L440.476,411.094ZM464.041,100.904C468.256,100.904 471.672,97.487 471.672,93.272L471.672,50.298C471.672,46.083 468.256,42.667 464.041,42.667L440.476,42.667C436.261,42.667 432.843,46.083 432.843,50.298L432.843,93.272C432.843,97.487 436.261,100.904 440.476,100.904L464.041,100.904ZM47.957,288.284C43.742,288.284 40.324,291.702 40.324,295.916L40.324,338.891C4
270.324,343.106 43.742,346.523 47.957,346.523L71.523,346.523C75.738,346.523 79.154,343.106 79.154,338.891L79.154,295.916C79.154,291.702 75.738,288.284 71.523,288.284L47.957,288.284Z"})],-1)])])):n("ads")?(w(),C("svg",I8,[...r[182]||(r[182]=[f("path",{fill:"currentColor",d:"M19,3C19,5.2 14.7,9 10,9L10,15C14.7,15 19,18.6 19,21L21,21L21,13.7C21.6,13.4 22,12.7 22,12C22,11.3 21.6,10.6 21,10.3L21,3L19,3ZM5,9C4.2,9 3.5,9.5 3.2,10.2C2.5,10.5 2,11.2 2,12C2,12.8 2.5,13.5 3.2,13.8C3.5,14.5 4.2,15 5,15L5.2,15L7.4,22L10.9,20.9L9,15L9,9L5,9Z",style:{fill:"white","fill-rule":"nonzero"}},null,-1)])])):n("filter-white")?(w(),C("svg",H8,[...r[183]||(r[183]=[f("path",{d:"M3 4H21L14 12V20L10 22V12L3 4Z",stroke:"#ffffff","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])):n("source-branch")?(w(),C("svg",F8,[...r[184]||(r[184]=[f("path",{fill:"currentColor",d:"M7 3C5.34 3 4 4.34 4 6C4 7.31 4.84 8.42 6 8.83V15.17C4.84 15.58 4 16.69 4 18C4 19.66 5.34 21 7 21C8.66 21 10 19.66 10 18C10 16.69 9.16 15.58 8 15.17V8.83C8.82 8.5 9.5 7.9 9.87 7.14C11.4 8.56 13.5 9.42 16 9.47V11.17C14.84 11.58 14 12.69 14 14C14 15.66 15.34 17 17 17C18.66 17 20 15.66 20 14C20 12.69 19.16 11.58 18 11.17V9C18 7.34 16.66 6 15 6C13.2 6 11.45 5.25 10.15 3.95C9.32 3.34 8.21 3 7 3ZM7 5C7.55 5 8 5.45 8 6C8 6.55 7.55 7 7 7C6.45 7 6 6.55 6 6C6 5.45 6.45 5 7 5ZM17 13C17.55 13 18 13.45 18 14C18 14.55 17.55 15 17 15C16.45 15 16 14.55 16 14C16 13.45 16.45 13 17 13ZM7 17C7.55 17 8 17.45 8 18C8 18.55 7.55 19 7 19C6.45 19 6 18.55 6 18C6 17.45 6.45 17 7 17Z"},null,-1)])])):n("block")||n("ban")?(w(),C("svg",D8,[...r[185]||(r[185]=[f("path",{fill:"currentColor",d:"M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M4,12A8,8 0 0,1 12,4C13.93,4 15.68,4.69 17.05,5.83L5.83,17.05C4.69,15.68 4,13.93 4,12M12,20C10.07,20 8.32,19.31 6.95,18.17L18.17,6.95C19.31,8.32 20,10.07 20,12A8,8 0 0,1 12,20Z"},null,-1)])])):n("document-plus")?(w(),C("svg",B8,[...r[186]||(r[186]=[f("g",{transform:"matrix(0.904977,0,0,0.764286,0,3.3)"},[f("path",{fill:"currentColor",d:"M9.614,4.468L9.614,12.845C9.614,13.483 9.176,14 8.638,14L0.975,14C0.437,14 0,13.483 0,12.845L0,1.155C0,0.517 0.437,0 0.975,0L5.84,0L9.614,4.468ZM7.557,4.841L2.056,4.841L2.056,6.15L7.557,6.15L7.557,4.841ZM7.557,7.392L2.056,7.392L2.056,8.7L7.557,8.7L7.557,7.392ZM7.557,9.811L2.056,9.811L2.056,11.119L7.557,11.119L7.557,9.811Z"})],-1),f("g",{transform:"matrix(0.0436817,0,0,0.0436817,-4.76131,-5.72231)"},[f("path",{fill:"currentColor",d:"M378.4,205.9L378.4,257L354.5,257L354.5,205.9L303.4,205.9L303.4,182L354.5,182L354.5,131L378.4,131L378.4,182.1L429.5,182.1L429.5,206L378.4,206L378.4,205.9Z"})],-1)])])):n("save")?(w(),C("svg",N8,[...r[187]||(r[187]=[f("path",{fill:"currentColor",d:"M15,9H5V5H15M12,19A3,3 0 0,1 9,16A3,3 0 0,1 12,13A3,3 0 0,1 15,16A3,3 0 0,1 12,19M17,3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V7L17,3Z"},null,-1)])])):oe("",!0)}}),Du="noopener noreferrer nofollow ugc",Jf="_blank",j8=/^(https?:\/\/[^\s/$.?#].[^\s]*)?$/i,U8=["http:","https:"],Yr={info:(t,e)=>{console.log(`[LinkSecurity] ${t}`,e!=null?e:"")},warn:(t,e)=>{console.warn(`[LinkSecurity] ${t}`,e!=null?e:"")},error:(t,e)=>{console.error(`[LinkSecurity] ${t}`,e!=null?e:"")}},z8=t=>{if(!t||typeof t!="string")return Yr.warn("Invalid URL: empty or not a string"),!1;const e=t.trim();if(/^(javascript:|data:|vbscript:|file:)/i.test(e))return Yr.error("Rejected URL with dangerous protocol",{url:e}),!1;if(!j8.test(e))return Yr.warn("Invalid URL format",{url:e}),!1;try{const s=new URL(e);return U8.includes(s.protocol)?!0:(Yr.error("Rejected URL with disallowed protocol",{url:e,protocol:s.protocol}),!1)}catch{return Yr.warn("Failed to parse URL",{url:e}),!1}},pI=t=>{if(!t||typeof t!="string")return Yr.warn("sanitizeUrl received invalid input",{url:t}),null;const e=t.trim();return e?z8(e)?e:null:(Yr.warn("sanitizeUrl received empty URL"),null)},No=/(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/gi,q8=/<a\s+([^>]*)href=(["'])([^"']+)\2([^>]*)>/gi,Fh=t=>{t.setAttribute("target",Jf),t.setAttribute("rel",Du)},W8=(t,e,n,s)=>{const r=`${t} ${s}`.replace(/(?:\s|^)rel\s*=\s*(["'])[^"']*?\1/gi," ").replace(/(?:\s|^)target\s*=\s*(["'])[^"']*?\1/gi," ").replace(/\s+/g," ").trim();return`<a ${r?`${r} `:""}rel="${Du}" target="${Jf}" href=${e}${n}${e}>`},G8=t=>t.replace(No,e=>`<a rel="${Du}" target="${Jf}" href="${e}">${e}</a>`),Dh=t=>{const e=[],n=t.replace(q8,(s,r,i,o,a)=>(e.push(W8(r,i,o,a)),`__SECURE_LINK_${e.length-1}__`));return G8(n).replace(/__SECURE_LINK_(\d+)__/g,(s,r)=>e[Number(r)])},gI=t=>{if(!t||typeof t!="string")return"";if(typeof window>"u"||typeof DOMParser>"u")return Dh(t);try{const n=new DOMParser().parseFromString(t,"text/html");n.querySelectorAll("a").forEach(Fh);const s=3,r=1,i=o=>
27{if(o.nodeName.toLowerCase()==="a")return;let a=o.firstChild;for(;a;){const l=a.nextSibling;if(a.nodeType===s){const u=a.nodeValue||"";if(No.lastIndex=0,No.test(u)){No.lastIndex=0;const c=n.createDocumentFragment();u.split(No).forEach((p,g)=>{if(g%2===1){const v=n.createElement("a");v.setAttribute("href",p),Fh(v),v.textContent=p,c.appendChild(v)}else p&&c.appendChild(n.createTextNode(p))}),o.replaceChild(c,a)}}else a.nodeType===r&&i(a);a=l}};return i(n.body),n.body.innerHTML}catch(e){return console.error("DOMParser sanitization failed, falling back to regex:",e),Dh(t)}},ze=Ze({__name:"Button",props:{theme:{},loading:{type:Boolean},disabled:{type:Boolean},rounded:{type:Boolean},href:{},to:{},type:{},dense:{type:Boolean},seo:{type:Boolean}},setup(t){const e=t,n=Ne(()=>{let i;switch(e.theme){case"green":i=["bg-green-500","hover:bg-green-600","active:bg-green-700"];break;case"red":i=["bg-red-500","hover:bg-red-600","active:bg-red-700"];break;case"blue":i=["bg-blue-500","hover:bg-blue-600","active:bg-blue-700"];break;case"transparent":i=["hover:bg-zinc-800/50"];break;case"light":i=["bg-zinc-700","hover:bg-zinc-600","hover:bg-zinc-500"];break;default:i=["bg-zinc-800","hover:bg-zinc-700","active:bg-zinc-600"];break}return e.dense&&i.push("!px-2","!py-1"),i}),s=Ne(()=>{let i="button";return e.to&&(i="router-link"),e.href&&(i="a"),i}),r=Ne(()=>{if(!!e.href)return e.seo?Du:"noopener noreferrer"});return(i,o)=>(w(),pe(ps(s.value),{class:Qe([n.value,"block rounded-md px-3 py-1.5 text-center font-semibold md:text-sm overflow-hidden disabled:opacity-75 cursor-pointer disabled:cursor-not-allowed"]),to:t.to,type:t.type,href:t.href||t.to,target:t.href?"_blank":void 0,rel:r.value,disabled:t.disabled||e.loading},{default:V(()=>[e.loading?(w(),pe(Pe,{key:0,name:"loading",class:"h-5 w-5 animate-spin mx-auto"})):hi(i.$slots,"default",{key:1})]),_:3},8,["class","to","type","href","target","rel","disabled"]))}});var Z8=!1;/*! 28 * pinia v2.3.1 29 * (c) 2025 Eduardo San Martin Morote 30 * @license MIT 31 */let Nv;const Bu=t=>Nv=t,jv=Symbol();function Ld(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var Qo;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(Qo||(Qo={}));function K8(){const t=Y0(!0),e=t.run(()=>ae({}));let n=[],s=[];const r=Of({install(i){Bu(r),r._a=i,i.provide(jv,r),i.config.globalProperties.$pinia=r,s.forEach(o=>n.push(o)),s=[]},use(i){return!this._a&&!Z8?s.push(i):n.push(i),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return r}const Uv=()=>{};function Bh(t,e,n,s=Uv){t.push(e);const r=()=>{const i=t.indexOf(e);i>-1&&(t.splice(i,1),s())};return!n&&Af()&&X0(r),r}function bi(t,...e){t.slice().forEach(n=>{n(...e)})}const Y8=t=>t(),Nh=Symbol(),Sc=Symbol();function Td(t,e){t instanceof Map&&e instanceof Map?e.forEach((n,s)=>t.set(s,n)):t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const s=e[n],r=t[n];Ld(r)&&Ld(s)&&t.hasOwnProperty(n)&&!Tt(s)&&!hs(s)?t[n]=Td(r,s):t[n]=s}return t}const X8=Symbol();function J8(t){return!Ld(t)||!t.hasOwnProperty(X8)}const{assign:Sr}=Object;function Q8(t){return!!(Tt(t)&&t.effect)}function ew(t,e,n,s){const{state:r,actions:i,getters:o}=e,a=n.state.value[t];let l;function u(){a||(n.state.value[t]=r?r():{});const c=X_(n.state.value[t]);return Sr(c,i,Object.keys(o||{}).reduce((d,p)=>(d[p]=Of(Ne(()=>{Bu(n);const g=n._s.get(t);return o[p].call(g,g)})),d),{}))}return l=zv(t,u,e,n,s,!0),l}function zv(t,e,n={},s,r,i){let o;const a=Sr({actions:{}},n),l={deep:!0};let u,c,d=[],p=[],g;const v=s.state.value[t];!i&&!v&&(s.state.value[t]={}),ae({});let b;function k(S){let $;u=c=!1,typeof S=="function"?(S(s.state.value[t]),$={type:Qo.patchFunction,storeId:t,events:g}):(Td(s.state.value[t],S),$={type:Qo.patchObject,payload:S,storeId:t,events:g});const R=b=Symbol();Hr().then(()=>{b===R&&(u=!0)}),c=!0,bi(d,$,s.state.value[t])}const L=i?function(){const{state:$}=n,R=$?$():{};this.$patch(G=>{Sr(G,R)})}:Uv;function E(){o.stop(),d=[],p=[],s._s.delete(t)}const _=(S,$="")=>{if(Nh in S)return S[Sc]=$,S;const R=function(){Bu(s);const G=Array.from(arguments),H=[],ee=[];function j(re){H.push(re)}function le(re){ee.push(re)}bi(p,{args:G,name:R[Sc],store:x,after:j,onError:le});let X;try{X=S.apply(this&&this.$id===t?this:x,G)}catch(re){throw bi(ee,re),re}return X instanceof Promise?X.then(re=>(bi(H,re),re)).catch(re=>(bi(ee,re),Promise.reject(re))):(bi(H,X),X)};return R[Nh]=!0,R[Sc]=$,R},m={_p:s,$id:t,$onAction:Bh.bind(null,p),$patch:k,$reset:L,$subscribe(S,$={}){const R=Bh(d,S,$.detached,()=>G()),G=o.run(()=>ct(()=>s.state.value[t],H=>{($.flush==="sync"?c:u)&&S({storeId:t,type:Qo.direct,events:g},H)},Sr({},l,$)));return R},$dispose:E},x=Ds(m);s._s.set(t,x);const h=(s._a&&s._a.runWithContext||Y8)(()=>s._e.run(()=>(o=Y0()).run(()=>e({action:_}))));for(const S in h){const $=h[S];if(Tt($)&&!Q8($)||hs($))i||(v&&J8($)&&(Tt($)?$.value=v[S]:Td($,v[S])),s.state.value[t][S]=$);else if(typeof $=="function"){const R=_($,S);h[S]=R,a.actions[S]=$}}return Sr(x,h),Sr(at(x),h),Object.defineProperty(x,"$state",{get:()=>s.state.value[t],set:S=>{k($=>{Sr($,S)})}}),s._p.forEach(S=>{Sr(x,o.run(()=>S({store:x,app:s._a,pinia:s,options:a})))}),v&&i&&n.hydrate&&n.hydrate(x.$state,v),u=!0,c=!0,x}/*! #__NO_SIDE_EFFECTS__ */function Pa(t,e,n){let s,r;const i=typeof e=="function";typeof t=="string"?(s=t,r=i?n:e):(r=t,s=t.id);function o(a,l){const u=Cg();return a=a||(u?Hn(jv,null):null),a&&Bu(a),a=Nv,a._s.has(s)||(i?zv(s,e,r,a):ew(s,r,a)),a._s.get(s)}return o.$id=s,o}function gs(t){{const e=at(t),n={};for(const s in e){const r=e[s];r.effect?n[s]=Ne({get:()=>t[s],set(i){t[s]=i}}):(Tt(r)||hs(r))&&(n[s]=ey(t,s))}return n}}var K=typeof window<"u"?window:void 0,sn=typeof globalThis<"u"?globalThis:K;typeof self>"u"&&(sn.self=sn),typeof File>"u"&&(sn.File=function(){});var Gn=sn==null?void 0:sn.navigator,we=sn==null?void 0:sn.document,fn=sn==null?void 0:sn.location,Md=sn==null?void 0:sn.fetch,Od=sn!=null&&sn.XMLHttpRequest&&"withCredentials"in new sn.XMLHttpRequest?sn.XMLHttpRequest:void 0,jh=sn==null?void 0:sn.AbortController,tw=sn==null?void 0:sn.CompressionStream,Nn=Gn==null?void 0:Gn.userAgent,Ue=K!=null?K:{},Uh="1.364.7",qn={DEBUG:!1,LIB_VERSION:Uh,LIB_NAME:"web",JS_SDK_VERSION:Uh};function zh(t,e,n,s,r,i,o){try{var a=t[i](o),l=a.value}catch(u){return void n(u)}a.done?e(l):Promise.resolve(l).then(s,r)}function as(t){return function(){var e=this,n=arguments;return new Promise(function(s,r){var i=t.apply(e,n);function o(l){zh(i,s,r,o,a,"next",l)}
31function a(l){zh(i,s,r,o,a,"throw",l)}o(void 0)})}}function _e(){return _e=Object.assign?Object.assign.bind():function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var s in n)({}).hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},_e.apply(null,arguments)}function qv(t,e){if(t==null)return{};var n={};for(var s in t)if({}.hasOwnProperty.call(t,s)){if(e.indexOf(s)!==-1)continue;n[s]=t[s]}return n}function Wv(){return(Wv=as(function*(t,e){e===void 0&&(e=!0);try{var n=new Blob([t],{type:"text/plain"}).stream().pipeThrough(new CompressionStream("gzip"));return yield new Response(n).blob()}catch(s){return e&&console.error("Failed to gzip compress data",s),null}})).apply(this,arguments)}var nw=["$snapshot","$pageview","$pageleave","$set","survey dismissed","survey sent","survey shown","$identify","$groupidentify","$create_alias","$$client_ingestion_warning","$web_experiment_applied","$feature_enrollment_update","$feature_flag_called"],sw=["amazonbot","amazonproductbot","app.hypefactors.com","applebot","archive.org_bot","awariobot","backlinksextendedbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","dataforseobot","deepscan","duckduckbot","facebookexternal","facebookcatalog","http://yandex.com/bots","hubspot","ia_archiver","leikibot","linkedinbot","meta-externalagent","mj12bot","msnbot","nessus","petalbot","pinterest","prerender","rogerbot","screaming frog","sebot-wa","sitebulb","slackbot","slurp","trendictionbot","turnitin","twitterbot","vercel-screenshot","vercelbot","yahoo! slurp","yandexbot","zoombot","bot.htm","bot.php","(bot;","bot/","crawler","ahrefsbot","ahrefssiteaudit","semrushbot","siteauditbot","splitsignalbot","gptbot","oai-searchbot","chatgpt-user","perplexitybot","better uptime bot","sentryuptimebot","uptimerobot","headlesschrome","cypress","google-hoteladsverifier","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleother","google-cloudvertexbot","googleweblight","mediapartners-google","storebot-google","google-inspectiontool","bytespider"],qh=function(t,e){if(e===void 0&&(e=[]),!t)return!1;var n=t.toLowerCase();return sw.concat(e).some(s=>{var r=s.toLowerCase();return n.indexOf(r)!==-1})};function rt(t,e){return t.indexOf(e)!==-1}var Nu=function(t){return t.trim()},Pd=function(t){return t.replace(/^\$/,"")},Gv=Object.prototype,Zv=Gv.hasOwnProperty,ju=Gv.toString,mt=Array.isArray||function(t){return ju.call(t)==="[object Array]"},Js=t=>typeof t=="function",tn=t=>t===Object(t)&&!mt(t),Di=t=>{if(tn(t)){for(var e in t)if(Zv.call(t,e))return!1;return!0}return!1},Me=t=>t===void 0,Jt=t=>ju.call(t)=="[object String]",vl=t=>Jt(t)&&t.trim().length===0,Fr=t=>t===null,it=t=>Me(t)||Fr(t),Hs=t=>ju.call(t)=="[object Number]"&&t==t,Ri=t=>Hs(t)&&t>0,sr=t=>ju.call(t)==="[object Boolean]",rw=t=>t instanceof FormData,iw=t=>rt(nw,t);function Kv(t){return t===null||typeof t!="object"}function jl(t,e){return{}.toString.call(t)==="[object "+e+"]"}function Qf(t){return typeof Event<"u"&&function(e,n){try{return e instanceof n}catch{return!1}}(t,Event)}var ow=[!0,"true",1,"1","yes"],Ec=t=>rt(ow,t),aw=[!1,"false",0,"0","no"];function Vs(t,e,n,s,r){return e>n&&(s.warn("min cannot be greater than max."),e=n),Hs(t)?t>n?(s.warn(" cannot be greater than max: "+n+". Using max value instead."),n):e>t?(s.warn(" cannot be less than min: "+e+". Using min value instead."),e):t:(s.warn(" must be a number. using max or fallback. max: "+n+", fallback: "+r),Vs(r||n,e,n,s))}class lw{constructor(e){this.Pt={},this.Dt=e.Dt,this.jt=Vs(e.bucketSize,0,100,e.qt),this.$t=Vs(e.refillRate,0,this.jt,e.qt),this.Ht=Vs(e.refillInterval,0,864e5,e.qt)}Vt(e,n){var s=Math.floor((n-e.lastAccess)/this.Ht);s>0&&(e.tokens=Math.min(e.tokens+s*this.$t,this.jt),e.lastAccess=e.lastAccess+s*this.Ht)}consumeRateLimit(e){var n,s=Date.now(),r=String(e),i=this.Pt[r];return i?this.Vt(i,s):this.Pt[r]=i={tokens:this.jt,lastAccess:s},i.tokens===0||(i.tokens--,i.tokens===0&&((n=this.Dt)==null||n.call(this,e)),i.tokens===0)}stop(){this.Pt={}}}var Ja,Wh,Ac,Yn="Mobile",Ul="iOS",rr="Android",co="Tablet",Yv=rr+" "+co,Xv="iPad",Jv="Apple",Qv=Jv+" Watch",ea="Safari",fo="BlackBerry",em="Samsung",tm=em+"Browser",nm=em+" Internet",si="Chrome",uw=si+" OS",sm=si+" "+Ul,e1="Internet Explorer",rm=e1+" "+Yn,t1="Opera",cw=t1+" Mini",n1="Edge",im="Microsoft "+n1,eo="Firefox",om=eo+" "+Ul,va="Nintendo",ma="PlayStation",to="Xbox",am=rr+" "+Yn,lm=Yn+" "+ea,jo="Windows",$d=jo+" Phone",Gh="Nokia",Rd="Ouya",um="Generic",dw=um+" "+Yn.toLowerCase(),cm=um+" "+co.toLowerCase(),Vd="Konqueror",On="(\\d+(\\.\\d+)?)",Lc=new RegExp("Version/"+On),fw=new RegExp(to,"i"),hw=new RegExp(ma+" \\w+","i"),pw=new RegExp(va+" \\w+","i"),s1=new RegExp(fo+"|PlayBook|BB10","i"),gw={"NT3.51":"NT 3.11","NT4.0":"NT 4.0","5.0":"2000",5.1:"XP",5.2:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1",6.4:"10","10.0":"10"},dm=function(t,e){return e=e||"",rt(t," OPR/")&&rt(t,"Mini")?cw:rt(t," OPR/")?t1:s1.test(t)?fo:rt(t,"IE"+Yn)||rt(t,"WPDesktop")?rm:rt(t,tm)?nm:rt(t,n1)||rt(t,"E
31dg/")?im:rt(t,"FBIOS")?"Facebook "+Yn:rt(t,"UCWEB")||rt(t,"UCBrowser")?"UC Browser":rt(t,"CriOS")?sm:rt(t,"CrMo")||rt(t,si)?si:rt(t,rr)&&rt(t,ea)?am:rt(t,"FxiOS")?om:rt(t.toLowerCase(),Vd.toLowerCase())?Vd:((n,s)=>s&&rt(s,Jv)||function(r){return rt(r,ea)&&!rt(r,si)&&!rt(r,rr)}(n))(t,e)?rt(t,Yn)?lm:ea:rt(t,eo)?eo:rt(t,"MSIE")||rt(t,"Trident/")?e1:rt(t,"Gecko")?eo:""},vw={[rm]:[new RegExp("rv:"+On)],[im]:[new RegExp(n1+"?\\/"+On)],[si]:[new RegExp("("+si+"|CrMo)\\/"+On)],[sm]:[new RegExp("CriOS\\/"+On)],"UC Browser":[new RegExp("(UCBrowser|UCWEB)\\/"+On)],[ea]:[Lc],[lm]:[Lc],[t1]:[new RegExp("(Opera|OPR)\\/"+On)],[eo]:[new RegExp(eo+"\\/"+On)],[om]:[new RegExp("FxiOS\\/"+On)],[Vd]:[new RegExp("Konqueror[:/]?"+On,"i")],[fo]:[new RegExp(fo+" "+On),Lc],[am]:[new RegExp("android\\s"+On,"i")],[nm]:[new RegExp(tm+"\\/"+On)],[e1]:[new RegExp("(rv:|MSIE )"+On)],Mozilla:[new RegExp("rv:"+On)]},mw=function(t,e){var n=dm(t,e),s=vw[n];if(Me(s))return null;for(var r=0;s.length>r;r++){var i=t.match(s[r]);if(i)return parseFloat(i[i.length-2])}return null},Zh=[[new RegExp(to+"; "+to+" (.*?)[);]","i"),t=>[to,t&&t[1]||""]],[new RegExp(va,"i"),[va,""]],[new RegExp(ma,"i"),[ma,""]],[s1,[fo,""]],[new RegExp(jo,"i"),(t,e)=>{if(/Phone/.test(e)||/WPDesktop/.test(e))return[$d,""];if(new RegExp(Yn).test(e)&&!/IEMobile\b/.test(e))return[jo+" "+Yn,""];var n=/Windows NT ([0-9.]+)/i.exec(e);if(n&&n[1]){var s=gw[n[1]]||"";return/arm/i.test(e)&&(s="RT"),[jo,s]}return[jo,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,t=>t&&t[3]?[Ul,[t[3],t[4],t[5]||"0"].join(".")]:[Ul,""]],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,t=>{var e="";return t&&t.length>=3&&(e=Me(t[2])?t[3]:t[2]),["watchOS",e]}],[new RegExp("("+rr+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+rr+")","i"),t=>t&&t[2]?[rr,[t[2],t[3],t[4]||"0"].join(".")]:[rr,""]],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,t=>{var e=["Mac OS X",""];return t&&t[1]&&(e[1]=[t[1],t[2],t[3]||"0"].join(".")),e}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[uw,""]],[/Linux|debian/i,["Linux",""]]],Kh=function(t){return pw.test(t)?va:hw.test(t)?ma:fw.test(t)?to:new RegExp(Rd,"i").test(t)?Rd:new RegExp("("+$d+"|WPDesktop)","i").test(t)?$d:/iPad/.test(t)?Xv:/iPod/.test(t)?"iPod Touch":/iPhone/.test(t)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(t)?Qv:s1.test(t)?fo:/(kobo)\s(ereader|touch)/i.test(t)?"Kobo":new RegExp(Gh,"i").test(t)?Gh:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(t)||/(kf[a-z]+)( bui|\)).+silk\//i.test(t)?"Kindle Fire":/(Android|ZTE)/i.test(t)?new RegExp(Yn).test(t)&&!/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(t)||/pixel[\daxl ]{1,6}/i.test(t)&&!/pixel c/i.test(t)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(t)||/lmy47v/i.test(t)&&!/QTAQZ3/i.test(t)?rr:Yv:new RegExp("(pda|"+Yn+")","i").test(t)?dw:new RegExp(co,"i").test(t)&&!new RegExp(co+" pc","i").test(t)?cm:""},_w=t=>t instanceof Error;function yw(t){var e=globalThis._posthogChunkIds;if(e){var n=Object.keys(e);return Ac&&n.length===Wh||(Wh=n.length,Ac=n.reduce((s,r)=>{Ja||(Ja={});var i=Ja[r];if(i)s[i[0]]=i[1];else for(var o=t(r),a=o.length-1;a>=0;a--){var l=o[a],u=l==null?void 0:l.filename,c=e[r];if(u&&c){s[u]=c,Ja[r]=[u,c];break}}return s},{})),Ac}}class bw{constructor(e,n,s){s===void 0&&(s=[]),this.coercers=e,this.stackParser=n,this.modifiers=s}buildFromUnknown(e,n){n===void 0&&(n={});var s=n&&n.mechanism||{handled:!0,type:"generic"},r=this.buildCoercingContext(s,n,0).apply(e),i=this.buildParsingContext(n),o=this.parseStacktrace(r,i);return{$exception_list:this.convertToExceptionList(o,s),$exception_level:"error"}}modifyFrames(e){var n=this;return as(function*(){for(var s of e)s.stacktrace&&s.stacktrace.frames&&mt(s.stacktrace.frames)&&(s.stacktrace.frames=yield n.applyModifiers(s.stacktrace.frames));return e})()}coerceFallback(e){var n;return{type:"Error",value:"Unknown error",stack:(n=e.syntheticException)==null?void 0:n.stack,synthetic:!0}}parseStacktrace(e,n){var s,r;return e.cause!=null&&(s=this.parseStacktrace(e.cause,n)),e.stack!=""&&e.stack!=null&&(r=this.applyChunkIds(this.stackParser(e.stack,e.synthetic?n.skipFirstLines:0),n.chunkIdMap)),_e({},e,{cause:s,stack:r})}applyChunkIds(e,n){return e.map(s=>
31(s.filename&&n&&(s.chunk_id=n[s.filename]),s))}applyCoercers(e,n){for(var s of this.coercers)if(s.match(e))return s.coerce(e,n);return this.coerceFallback(n)}applyModifiers(e){var n=this;return as(function*(){var s=e;for(var r of n.modifiers)s=yield r(s);return s})()}convertToExceptionList(e,n){var s,r,i,o={type:e.type,value:e.value,mechanism:{type:(s=n.type)!==null&&s!==void 0?s:"generic",handled:(r=n.handled)===null||r===void 0||r,synthetic:(i=e.synthetic)!==null&&i!==void 0&&i}};e.stack&&(o.stacktrace={type:"raw",frames:e.stack});var a=[o];return e.cause!=null&&a.push(...this.convertToExceptionList(e.cause,_e({},n,{handled:!0}))),a}buildParsingContext(e){var n;return{chunkIdMap:yw(this.stackParser),skipFirstLines:(n=e.skipFirstLines)!==null&&n!==void 0?n:1}}buildCoercingContext(e,n,s){s===void 0&&(s=0);var r=(i,o)=>{if(4>=o){var a=this.buildCoercingContext(e,n,o);return this.applyCoercers(i,a)}};return _e({},n,{syntheticException:s==0?n.syntheticException:void 0,mechanism:e,apply:i=>r(i,s),next:i=>r(i,s+1)})}}var ho="?";function Id(t,e,n,s,r){var i={platform:t,filename:e,function:n==="<anonymous>"?ho:n,in_app:!0};return Me(s)||(i.lineno=s),Me(r)||(i.colno=r),i}var fm=(t,e)=>{var n=t.indexOf("safari-extension")!==-1,s=t.indexOf("safari-web-extension")!==-1;return n||s?[t.indexOf("@")!==-1?t.split("@")[0]:ho,n?"safari-extension:"+e:"safari-web-extension:"+e]:[t,e]},ww=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,xw=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Cw=/\((\S*)(?::(\d+))(?::(\d+))\)/,kw=(t,e)=>{var n=ww.exec(t);if(n){var[,s,r,i]=n;return Id(e,s,ho,+r,+i)}var o=xw.exec(t);if(o){if(o[2]&&o[2].indexOf("eval")===0){var a=Cw.exec(o[2]);a&&(o[2]=a[1],o[3]=a[2],o[4]=a[3])}var[l,u]=fm(o[1]||ho,o[2]);return Id(e,u,l,o[3]?+o[3]:void 0,o[4]?+o[4]:void 0)}},Sw=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Ew=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Aw=(t,e)=>{var n=Sw.exec(t);if(n){if(n[3]&&n[3].indexOf(" > eval")>-1){var s=Ew.exec(n[3]);s&&(n[1]=n[1]||"eval",n[3]=s[1],n[4]=s[2],n[5]="")}var r=n[3],i=n[1]||ho;return[i,r]=fm(i,r),Id(e,r,i,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}},Yh=/\(error: (.*)\)/;class Lw{match(e){return this.isDOMException(e)||this.isDOMError(e)}coerce(e,n){var s=Jt(e.stack);return{type:this.getType(e),value:this.getValue(e),stack:s?e.stack:void 0,cause:e.cause?n.next(e.cause):void 0,synthetic:!1}}getType(e){return this.isDOMError(e)?"DOMError":"DOMException"}getValue(e){var n=e.name||(this.isDOMError(e)?"DOMError":"DOMException");return e.message?n+": "+e.message:n}isDOMException(e){return jl(e,"DOMException")}isDOMError(e){return jl(e,"DOMError")}}class Tw{match(e){return(n=>n instanceof Error)(e)}coerce(e,n){return{type:this.getType(e),value:this.getMessage(e,n),stack:this.getStack(e),cause:e.cause?n.next(e.cause):void 0,synthetic:!1}}getType(e){return e.name||e.constructor.name}getMessage(e,n){var s=e.message;return String(s.error&&typeof s.error.message=="string"?s.error.message:s)}getStack(e){return e.stacktrace||e.stack||void 0}}class Mw{constructor(){}match(e){return jl(e,"ErrorEvent")&&e.error!=null}coerce(e,n){var s;return n.apply(e.error)||{type:"ErrorEvent",value:e.message,stack:(s=n.syntheticException)==null?void 0:s.stack,synthetic:!0}}}var Ow=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;class Pw{match(e){return typeof e=="string"}coerce(e,n){var s,[r,i]=this.getInfos(e);return{type:r!=null?r:"Error",value:i!=null?i:e,stack:(s=n.syntheticException)==null?void 0:s.stack,synthetic:!0}}getInfos(e){var n="Error",s=e,r=e.match(Ow);return r&&(n=r[1],s=r[2]),[n,s]}}var $w=["fatal","error","warning","log","info","debug"];function hm(t,e){e===void 0&&(e=40);var n=Object.keys(t);if(n.sort(),!n.length)return"[object has no keys]";for(var s=n.length;s>0;s--){var r=n.slice(0,s).join(", ");if(e>=r.length)return s===n.length?r:r.length>e?r.slice(0,e)+"...":r}return""}class Rw{match(e){return typeof e=="object"&&e!==null}coerce(e,n){var s,r=this.getErrorPropertyFromObject(e);return r?n.apply(r):{type:this.getType(e),value:this.getValue(e),stack:(s=n.syntheticException)==null?void 0:s.stack,level:this.isSeverityLevel(e.level)?e.level:"error",synthetic:!0}}getType(e){return Qf(e)?e.constructor.name:"Error"}getValue(e){if("name"in e&&typeof e.name=="string"){var n="'"+e.n
31ame+"' captured as exception";return"message"in e&&typeof e.message=="string"&&(n+=" with message: '"+e.message+"'"),n}if("message"in e&&typeof e.message=="string")return e.message;var s=this.getObjectClassName(e);return(s&&s!=="Object"?"'"+s+"'":"Object")+" captured as exception with keys: "+hm(e)}isSeverityLevel(e){return Jt(e)&&!vl(e)&&$w.indexOf(e)>=0}getErrorPropertyFromObject(e){for(var n in e)if({}.hasOwnProperty.call(e,n)){var s=e[n];if(_w(s))return s}}getObjectClassName(e){try{var n=Object.getPrototypeOf(e);return n?n.constructor.name:void 0}catch{return}}}class Vw{match(e){return Qf(e)}coerce(e,n){var s,r=e.constructor.name;return{type:r,value:r+" captured as exception with keys: "+hm(e),stack:(s=n.syntheticException)==null?void 0:s.stack,synthetic:!0}}}class Iw{match(e){return Kv(e)}coerce(e,n){var s;return{type:"Error",value:"Primitive value captured as exception: "+String(e),stack:(s=n.syntheticException)==null?void 0:s.stack,synthetic:!0}}}class Hw{match(e){return jl(e,"PromiseRejectionEvent")||this.isCustomEventWrappingRejection(e)}isCustomEventWrappingRejection(e){if(!Qf(e))return!1;try{var n=e.detail;return n!=null&&typeof n=="object"&&"reason"in n}catch{return!1}}coerce(e,n){var s,r=this.getUnhandledRejectionReason(e);return Kv(r)?{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(r),stack:(s=n.syntheticException)==null?void 0:s.stack,synthetic:!0}:n.apply(r)}getUnhandledRejectionReason(e){try{if("reason"in e)return e.reason;if("detail"in e&&e.detail!=null&&typeof e.detail=="object"&&"reason"in e.detail)return e.detail.reason}catch{}return e}}var pm=function(t,e){var{debugEnabled:n}=e===void 0?{}:e,s={C(r){if(K&&(qn.DEBUG||Ue.POSTHOG_DEBUG||n)&&!Me(K.console)&&K.console){for(var i=("__rrweb_original__"in K.console[r])?K.console[r].__rrweb_original__:K.console[r],o=arguments.length,a=new Array(o>1?o-1:0),l=1;o>l;l++)a[l-1]=arguments[l];i(t,...a)}},info(){for(var r=arguments.length,i=new Array(r),o=0;r>o;o++)i[o]=arguments[o];s.C("log",...i)},warn(){for(var r=arguments.length,i=new Array(r),o=0;r>o;o++)i[o]=arguments[o];s.C("warn",...i)},error(){for(var r=arguments.length,i=new Array(r),o=0;r>o;o++)i[o]=arguments[o];s.C("error",...i)},critical(){for(var r=arguments.length,i=new Array(r),o=0;r>o;o++)i[o]=arguments[o];console.error(t,...i)},uninitializedWarning(r){s.error("You must initialize PostHog before calling "+r)},createLogger:(r,i)=>pm(t+" "+r,i)};return s},Se=pm("[PostHog.js]"),qt=Se.createLogger,Fw=qt("[ExternalScriptsLoader]"),Xh=(t,e,n)=>{if(t.config.disable_external_dependency_loading)return Fw.warn(e+" was requested but loading of external scripts is disabled."),n("Loading of external scripts is disabled");var s=we==null?void 0:we.querySelectorAll("script");if(s){for(var r,i=function(){if(s[o].src===e){var l=s[o];return l.__posthog_loading_callback_fired?{v:n()}:(l.addEventListener("load",u=>{l.__posthog_loading_callback_fired=!0,n(void 0,u)}),l.onerror=u=>n(u),{v:void 0})}},o=0;s.length>o;o++)if(r=i())return r.v}var a=()=>{if(!we)return n("document not found");var l=we.createElement("script");if(l.type="text/javascript",l.crossOrigin="anonymous",l.src=e,l.onload=d=>{l.__posthog_loading_callback_fired=!0,n(void 0,d)},l.onerror=d=>n(d),t.config.prepare_external_dependency_script&&(l=t.config.prepare_external_dependency_script(l)),!l)return n("prepare_external_dependency_script returned null");if(t.config.external_scripts_inject_target==="head")we.head.appendChild(l);else{var u,c=we.querySelectorAll("body > script");c.length>0?(u=c[0].parentNode)==null||u.insertBefore(l,c[0]):we.body.appendChild(l)}};we!=null&&we.body?a():we==null||we.addEventListener("DOMContentLoaded",a)};Ue.__PosthogExtensions__=Ue.__PosthogExtensions__||{},Ue.__PosthogExtensions__.loadExternalDependency=(t,e,n)=>{var s="/static/"+e+".js?v="+t.version;if(e==="remote-config"&&(s="/array/"+t.config.token+"/config.js"),e==="toolbar"){var r=3e5;s=s+"&t="+Math.floor(Date.now()/r)*r}var i=t.requestRouter.endpointFor("assets",s);Xh(t,i,n)},Ue.__PosthogExtensions__.loadSiteApp=(t,e,n)=>{var s=t.requestRouter.endpointFor("api",e);Xh(t,s,n)};var gm="$people_distinct_id",zl="$device_id",Uo="__alias",zo="__timers",Jh="$autocapture_disabled_server_side",Hd="$heatmaps_enabled_server_side",Qh="$exception_capture_enabled_server_side",Fd="$error_tracking_suppression_rules",ep="$error_tracking_capture_extension_exceptions",tp="$web_vitals_enabled_server_side",vm="$dead_clicks_enabled_server_side",np="$product_tours_enabled_server_side",sp="$web_vitals_allowed_metrics",Qa="$session_recording_remote_config",ql="$sesid",mm="$session_is_sampled",Bi="$enabled_feature_flags",qo="$early_access_features",Dd="$feature_flag_details",Wo="$stored_person_properties",Gr="$stored_group_properties",Bd="$surveys",ta="$flag_call_reported",Nd="$flag_call_reported_session_id",jd="$feature_flag_errors",Wl="$feature_flag_evaluated_at",os="$user_state",Ud="$client_session_props",zd="$capture_rate_limit",qd="$initial_campaign_params",Wd="$initial_referrer_info",Gl="$initial_person_info",Zl="$epp",_m="__POSTHOG_TOOLBAR__",el="$posthog_cookieless",Dw=[gm,Uo,"__cmpns",zo,"$session_recording_enabled_server_side",Hd,ql,Bi,Fd,os,qo,Dd,Gr,Wo,Bd,ta,Nd,jd,Wl,Ud,zd,qd,Wd,Zl,Gl],r1="PostHog loadExternalDependency extension not found.",Ks="on_reject",ls="always",wi="anonymous",xi="identified",Gd="identified_only",Kl="visibilitychange",Yl="beforeunload",Vi="$pageview",Tc="$pageleave",Mc="$identify",rp="$groupidentify";function tl(t,e){mt(t)&&t.forEach(e)}function Ft(t,e){if(!it(t))if(mt(t))t.forEach(e);else if(rw(t))t.forEach((s,r)=>e(s,r));else for(var n in t)Zv.call(t,n)&&e(t[n],n)}var Zt=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),s=1;e>s;s++)n[s-1]=arguments[s];for(var r of n)for(var i in r)r[i]!==void 0&&(t[i]=r[i]);return t};function ml(t){for(var e=Object.keys(t),n=e.length,s=new Array(n);n--;)s[n]=[e[n],t[e[n]]];return s}var ip=function(t){try{return t()}catch{return}},Bw=function(t){return function(){try{for(var e=arguments.length,n=new Array(e),s=0;e>s;s++)n[s]=arguments[s];return t.apply(this,n)}catch(r){Se.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),Se.critical(r)}}},i1=function(t){var e={};return Ft(t,function(n,s){(Jt(n)&&n.length>0||Hs(n))&&(e[s]=n)}),e},Nw=["herokuapp.com","vercel.app","netlify.app"];function jw(t){var e=t==null?void 0:t.hostname;if(!Jt(e))return!1;var n=e.split(".").slice(-2).join(".");for(var s of Nw)if(n===s)return!1;return!0}function Xt(t,e,n,s){var{capture:r=!1,passive:i=!0}=s!=null?s:{};t==null||t.addEventListener(e,n,{capture:r,passive:i})}
31function ym(t){return t.name==="ph_toolbar_internal"}Math.trunc||(Math.trunc=function(t){return 0>t?Math.ceil(t):Math.floor(t)}),Number.isInteger||(Number.isInteger=function(t){return Hs(t)&&isFinite(t)&&Math.floor(t)===t});class Xl{constructor(e){if(this.bytes=e,e.length!==16)throw new TypeError("not 128-bit length")}static fromFieldsV7(e,n,s,r){if(!Number.isInteger(e)||!Number.isInteger(n)||!Number.isInteger(s)||!Number.isInteger(r)||0>e||0>n||0>s||0>r||e>0xffffffffffff||n>4095||s>1073741823||r>4294967295)throw new RangeError("invalid field value");var i=new Uint8Array(16);return i[0]=e/Math.pow(2,40),i[1]=e/Math.pow(2,32),i[2]=e/Math.pow(2,24),i[3]=e/Math.pow(2,16),i[4]=e/Math.pow(2,8),i[5]=e,i[6]=112|n>>>8,i[7]=n,i[8]=128|s>>>24,i[9]=s>>>16,i[10]=s>>>8,i[11]=s,i[12]=r>>>24,i[13]=r>>>16,i[14]=r>>>8,i[15]=r,new Xl(i)}toString(){for(var e="",n=0;this.bytes.length>n;n++)e=e+(this.bytes[n]>>>4).toString(16)+(15&this.bytes[n]).toString(16),n!==3&&n!==5&&n!==7&&n!==9||(e+="-");if(e.length!==36)throw new Error("Invalid UUIDv7 was generated");return e}clone(){return new Xl(this.bytes.slice(0))}equals(e){return this.compareTo(e)===0}compareTo(e){for(var n=0;16>n;n++){var s=this.bytes[n]-e.bytes[n];if(s!==0)return Math.sign(s)}return 0}}class Uw{constructor(){this.I=0,this.S=0,this.k=new zw}generate(){var e=this.generateOrAbort();if(Me(e)){this.I=0;var n=this.generateOrAbort();if(Me(n))throw new Error("Could not generate UUID after timestamp reset");return n}return e}generateOrAbort(){var e=Date.now();if(e>this.I)this.I=e,this.A();else{if(this.I>=e+1e4)return;this.S++,this.S>4398046511103&&(this.I++,this.A())}return Xl.fromFieldsV7(this.I,Math.trunc(this.S/Math.pow(2,30)),this.S&Math.pow(2,30)-1,this.k.nextUint32())}A(){this.S=1024*this.k.nextUint32()+(1023&this.k.nextUint32())}}var op,bm=t=>{if(typeof UUIDV7_DENY_WEAK_RNG<"u"&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var e=0;t.length>e;e++)t[e]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return t};K&&!Me(K.crypto)&&crypto.getRandomValues&&(bm=t=>crypto.getRandomValues(t));class zw{constructor(){this.T=new Uint32Array(8),this.N=1/0}nextUint32(){return this.T.length>this.N||(bm(this.T),this.N=0),this.T[this.N++]}}var Tr=()=>qw().toString(),qw=()=>(op||(op=new Uw)).generate(),Lo="",Ww=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i,Rs={Yt:()=>!!we,Ut(t){Se.error("cookieStore error: "+t)},Wt(t){if(we){try{for(var e=t+"=",n=we.cookie.split(";").filter(i=>i.length),s=0;n.length>s;s++){for(var r=n[s];r.charAt(0)==" ";)r=r.substring(1,r.length);if(r.indexOf(e)===0)return decodeURIComponent(r.substring(e.length,r.length))}}catch{}return null}},Gt(t){var e;try{e=JSON.parse(Rs.Wt(t))||{}}catch{}return e},Xt(t,e,n,s,r){if(we)try{var i="",o="",a=function(c,d){if(d){var p=function(v,b){if(b===void 0&&(b=we),Lo)return Lo;if(!b||["localhost","127.0.0.1"].includes(v))return"";for(var k=v.split("."),L=Math.min(k.length,8),E="dmn_chk_"+Tr();!Lo&&L--;){var _=k.slice(L).join("."),m=E+"=1;domain=."+_+";path=/";b.cookie=m+";max-age=3",b.cookie.includes(E)&&(b.cookie=m+";max-age=0",Lo=_)}return Lo}(c);if(!p){var g=(v=>{var b=v.match(Ww);return b?b[0]:""})(c);g!==p&&Se.info("Warning: cookie subdomain discovery mismatch",g,p),p=g}return p?"; domain=."+p:""}return""}(we.location.hostname,s);if(n){var l=new Date;l.setTime(l.getTime()+864e5*n),i="; expires="+l.toUTCString()}r&&(o="; secure");var u=t+"="+encodeURIComponent(JSON.stringify(e))+i+"; SameSite=Lax; path=/"+a+o;return u.length>3686.4&&Se.warn("cookieStore warning: large cookie, len="+u.length),we.cookie=u,u}catch{return}},Jt(t,e){if(we!=null&&we.cookie)try{Rs.Xt(t,"",-1,e)}catch{return}}},Oc=null,zt={Yt(){if(!Fr(Oc))return Oc;var t=!0;if(Me(K))t=!1;else try{var e="__mplssupport__";zt.Xt(e,"xyz"),zt.Wt(e)!=='"xyz"'&&(t=!1),zt.Jt(e)}catch{t=!1}return t||Se.error("localStorage unsupported; falling back to cookie store"),Oc=t,t},Ut(t){Se.error("localStorage error: "+t)},Wt(t){try{return K==null?void 0:K.localStorage.getItem(t)}catch(e){zt.Ut(e)}return null},Gt(t){try{return JSON.parse(zt.Wt(t))||{}}catch{}return null},Xt(t,e){try{K==null||K.localStorage.setItem(t,JSON.stringify(e))}catch(n){zt.Ut(n)}},Jt(t){try{K==null||K.localStorage.removeItem(t)}catch(e){zt.Ut(e)}}},Gw=[zl,"distinct_id",ql,mm,Zl,Gl,os],nl={},Zw={Yt:()=>!0,Ut(t){Se.error("memoryStorage error: "+t)},Wt:t=>nl[t]||null,Gt:t=>nl[t]||null,Xt(t,e){nl[t]=e},Jt(t){delete nl[t]}},Ur=null,hn={Yt(){if(!Fr(Ur))return Ur;if(Ur=!0,Me(K))Ur=!1;else try{var t="__support__";hn.Xt(t,"xyz"),hn.Wt(t)!=='"xyz"'&&(Ur=!1),hn.Jt(t)}catch{Ur=!1}return Ur},Ut(t){Se.error("sessionStorage error: ",t)},Wt(t){try{return K==null?void 0:K.sessionStorage.getItem(t)}catch(e){hn.Ut(e)}return null},Gt(t){try{return JSON.parse(hn.Wt(t))||null}catch{}return null},Xt(t,e){try{K==null||K.sessionStorage.setItem(t,JSON.stringify(e))}catch(n){hn.Ut(n)}},Jt(t){try{K==null||K.sessionStorage.removeItem(t)}catch(e){hn.Ut(e)}}};class Kw{constructor(e){this._instance=e}get Rt(){return this._instance.config}get consent(){return this.Kt()?0:this.Qt}isOptedOut(){return this.Rt.cookieless_mode===ls||this.consent===0||this.consent===-1&&(this.Rt.opt_out_capturing_by_default||this.Rt.cookieless_mode===Ks)}isOptedIn(){return!this.isOptedOut()}isExplicitlyOptedOut(){return this.consent===0}optInOut(e){this.tr.Xt(this.er,e?1:0,this.Rt.cookie_expiration,this.Rt.cross_subdomain_cookie,this.Rt.secure_cookie)}reset(){this.tr.Jt(this.er,this.Rt.cross_subdomain_cookie)}get er(){var{token:e,opt_out_capturing_cookie_prefix:n,consent_persistence_name:s}=this._instance.config;return s||(n?n+e:"__ph_opt_in_out_"+e)}get Qt(){var e=this.tr.Wt(this.er);return Ec(e)?1:rt(aw,e)?0:-1}
31get tr(){if(!this.rr){var e=this.Rt.opt_out_capturing_persistence_type;this.rr=e==="localStorage"?zt:Rs;var n=e==="localStorage"?Rs:zt;n.Wt(this.er)&&(this.rr.Wt(this.er)||this.optInOut(Ec(n.Wt(this.er))),n.Jt(this.er,this.Rt.cross_subdomain_cookie))}return this.rr}Kt(){return!!this.Rt.respect_dnt&&[Gn==null?void 0:Gn.doNotTrack,Gn==null?void 0:Gn.msDoNotTrack,Ue.doNotTrack].some(e=>Ec(e))}}var sl=qt("[Dead Clicks]"),Yw=()=>!0,Xw=t=>{var e,n=!((e=t.instance.persistence)==null||!e.get_property(vm)),s=t.instance.config.capture_dead_clicks;return sr(s)?s:!!tn(s)||n};class ap{get lazyLoadedDeadClicksAutocapture(){return this.ir}constructor(e,n,s){this.instance=e,this.isEnabled=n,this.onCapture=s,this.startIfEnabledOrStop()}onRemoteConfig(e){"captureDeadClicks"in e&&(this.instance.persistence&&this.instance.persistence.register({[vm]:e.captureDeadClicks}),this.startIfEnabledOrStop())}startIfEnabledOrStop(){this.isEnabled(this)?this.nr(()=>{this.sr()}):this.stop()}nr(e){var n,s;(n=Ue.__PosthogExtensions__)!=null&&n.initDeadClicksAutocapture&&e(),(s=Ue.__PosthogExtensions__)==null||s.loadExternalDependency==null||s.loadExternalDependency(this.instance,"dead-clicks-autocapture",r=>{r?sl.error("failed to load script",r):e()})}sr(){var e;if(we){if(!this.ir&&(e=Ue.__PosthogExtensions__)!=null&&e.initDeadClicksAutocapture){var n=tn(this.instance.config.capture_dead_clicks)?this.instance.config.capture_dead_clicks:{};n.__onCapture=this.onCapture,this.ir=Ue.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,n),this.ir.start(we),sl.info("starting...")}}else sl.error("`document` not found. Cannot start.")}stop(){this.ir&&(this.ir.stop(),this.ir=void 0,sl.info("stopping..."))}}var Pc=qt("[SegmentIntegration]"),wm="posthog-js";function xm(t,e){var{organization:n,projectId:s,prefix:r,severityAllowList:i=["error"],sendExceptionsToPostHog:o=!0}=e===void 0?{}:e;return a=>{var l,u,c,d,p;if(i!=="*"&&!i.includes(a.level)||!t.__loaded)return a;a.tags||(a.tags={});var g=t.requestRouter.endpointFor("ui","/project/"+t.config.token+"/person/"+t.get_distinct_id());a.tags["PostHog Person URL"]=g,t.sessionRecordingStarted()&&(a.tags["PostHog Recording URL"]=t.get_session_replay_url({withTimestamp:!0}));var v,b=((l=a.exception)==null?void 0:l.values)||[],k=b.map(E=>_e({},E,{stacktrace:E.stacktrace?_e({},E.stacktrace,{type:"raw",frames:(E.stacktrace.frames||[]).map(_=>_e({},_,{platform:"web:javascript"}))}):void 0})),L={$exception_message:((u=b[0])==null?void 0:u.value)||a.message,$exception_type:(c=b[0])==null?void 0:c.type,$exception_level:a.level,$exception_list:k,$sentry_event_id:a.event_id,$sentry_exception:a.exception,$sentry_exception_message:((d=b[0])==null?void 0:d.value)||a.message,$sentry_exception_type:(p=b[0])==null?void 0:p.type,$sentry_tags:a.tags};return n&&s&&(L.$sentry_url=(r||"https://sentry.io/organizations/")+n+"/issues/?project="+s+"&query="+a.event_id),o&&((v=t.exceptions)==null||v.sendExceptionEvent(L)),a}}class Jw{constructor(e,n,s,r,i,o){this.name=wm,this.setupOnce=function(a){a(xm(e,{organization:n,projectId:s,prefix:r,severityAllowList:i,sendExceptionsToPostHog:o==null||o}))}}}class lp{constructor(e){this.ar=(n,s,r)=>{r&&(r.noSessionId||r.activityTimeout||r.sessionPastMaximumLength)&&(Se.info("[PageViewManager] Session rotated, clearing pageview state",{sessionId:n,changeReason:r}),this.lr=void 0,this._instance.scrollManager.resetContext())},this._instance=e,this.ur()}ur(){var e;this.hr=(e=this._instance.sessionManager)==null?void 0:e.onSessionId(this.ar)}destroy(){var e;(e=this.hr)==null||e.call(this),this.hr=void 0}doPageView(e,n){var s,r=this.cr(e,n);return this.lr={pathname:(s=K==null?void 0:K.location.pathname)!==null&&s!==void 0?s:"",pageViewId:n,timestamp:e},this._instance.scrollManager.resetContext(),r}doPageLeave(e){var n;return this.cr(e,(n=this.lr)==null?void 0:n.pageViewId)}doEvent(){var e;return{$pageview_id:(e=this.lr)==null?void 0:e.pageViewId}}cr(e,n){var s=this.lr;if(!s)return{$pageview_id:n};var r={$pageview_id:n,$prev_pageview_id:s.pageViewId},i=this._instance.scrollManager.getContext();if(i&&!this._instance.config.disable_scroll_properties){var{maxScrollHeight:o,lastScrollY:a,maxScrollY:l,maxContentHeight:u,last
31ContentY:c,maxContentY:d}=i;if(!(Me(o)||Me(a)||Me(l)||Me(u)||Me(c)||Me(d))){o=Math.ceil(o),a=Math.ceil(a),l=Math.ceil(l),u=Math.ceil(u),c=Math.ceil(c),d=Math.ceil(d);var p=o>1?Vs(a/o,0,1,Se):1,g=o>1?Vs(l/o,0,1,Se):1,v=u>1?Vs(c/u,0,1,Se):1,b=u>1?Vs(d/u,0,1,Se):1;r=Zt(r,{$prev_pageview_last_scroll:a,$prev_pageview_last_scroll_percentage:p,$prev_pageview_max_scroll:l,$prev_pageview_max_scroll_percentage:g,$prev_pageview_last_content:c,$prev_pageview_last_content_percentage:v,$prev_pageview_max_content:d,$prev_pageview_max_content_percentage:b})}}return s.pathname&&(r.$prev_pageview_pathname=s.pathname),s.timestamp&&(r.$prev_pageview_duration=(e.getTime()-s.timestamp.getTime())/1e3),r}}var Jl=t=>{var e=we==null?void 0:we.createElement("a");return Me(e)?null:(e.href=t,e)},Ql=function(t,e){for(var n,s=((t.split("#")[0]||"").split(/\?(.*)/)[1]||"").replace(/^\?+/g,"").split("&"),r=0;s.length>r;r++){var i=s[r].split("=");if(i[0]===e){n=i;break}}if(!mt(n)||2>n.length)return"";var o=n[1];try{o=decodeURIComponent(o)}catch{Se.error("Skipping decoding for malformed query param: "+o)}return o.replace(/\+/g," ")},_a=function(t,e,n){if(!t||!e||!e.length)return t;for(var s=t.split("#"),r=s[1],i=(s[0]||"").split("?"),o=i[1],a=i[0],l=(o||"").split("&"),u=[],c=0;l.length>c;c++){var d=l[c].split("=");mt(d)&&(e.includes(d[0])?u.push(d[0]+"="+n):u.push(l[c]))}var p=a;return o!=null&&(p+="?"+u.join("&")),r!=null&&(p+="#"+r),p},eu=function(t,e){var n=t.match(new RegExp(e+"=([^&]*)"));return n?n[1]:null},rl="https?://(.*)",po=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],Qw=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid",...po],ya="<masked>",e6=["li_fat_id"];function Cm(t,e,n){if(!we)return{};var s,r=e?[...po,...n||[]]:[],i=km(_a(we.URL,r,ya),t),o=(s={},Ft(e6,function(a){var l=Rs.Wt(a);s[a]=l||null}),s);return Zt(o,i)}function km(t,e){var n=Qw.concat(e||[]),s={};return Ft(n,function(r){var i=Ql(t,r);s[r]=i||null}),s}function Sm(t){var e=function(i){return i?i.search(rl+"google.([^/?]*)")===0?"google":i.search(rl+"bing.com")===0?"bing":i.search(rl+"yahoo.com")===0?"yahoo":i.search(rl+"duckduckgo.com")===0?"duckduckgo":null:null}(t),n=e!="yahoo"?"q":"p",s={};if(!Fr(e)){s.$search_engine=e;var r=we?Ql(we.referrer,n):"";r.length&&(s.ph_keyword=r)}return s}function up(){return navigator.language||navigator.userLanguage}var tu="$direct";function Em(){return(we==null?void 0:we.referrer)||tu}function Am(t,e){var n=t?[...po,...e||[]]:[],s=fn==null?void 0:fn.href.substring(0,1e3);return{r:Em().substring(0,1e3),u:s?_a(s,n,ya):void 0}}function Lm(t){var e,{r:n,u:s}=t,r={$referrer:n,$referring_domain:n==null?void 0:n==tu?tu:(e=Jl(n))==null?void 0:e.host};if(s){r.$current_url=s;var i=Jl(s);r.$host=i==null?void 0:i.host,r.$pathname=i==null?void 0:i.pathname;var o=km(s);Zt(r,o)}if(n){var a=Sm(n);Zt(r,a)}return r}function Tm(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}function t6(){try{return new Date().getTimezoneOffset()}catch{return}}var n6=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"];class $c{constructor(e,n){this.Rt=e,this.props={},this.dr=!1,this.vr=(s=>{var r="";return s.token&&(r=s.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),s.persistence_name?"ph_"+s.persistence_name:"ph_"+r+"_posthog"})(e),this.tr=this.pr(e),this.load(),e.debug&&Se.info("Persistence loaded",e.persistence,_e({},this.props)),this.update_config(e,e,n),this.save()}isDisabled(){return!!this.gr}pr(e){n6.indexOf(e.persistence.toLowerCase())===-1&&(Se.critical("Unknown persistence type "+e.persistence+"; falling back to localStorage+cookie"),e.persistence="localStorage+cookie");var n=function(r){r===void 0&&(r=[]);var i=[...Gw,...r];return _e({},zt,{Gt(o){try{var a={};try{a=Rs.Gt(o)||{}}catch{}var l=Zt(a,JSON.parse(zt.Wt(o)||"{}"));return zt.Xt(o,l),l}catch{}return null},Xt(o,a,l,u,c,d){try{zt.Xt(o,a,void 0,void 0,d);var p={};i.forEach(g=>{a[g]&&(p[g]=a[g])}),Object.keys(p).length&&Rs.Xt(o,p,l,u,c,d)}catch(g){zt.Ut(g)}},Jt(o,a){try{K==null||K.localStorage.removeItem(o),Rs.Jt(o,a)}catch(l){zt.Ut(l)}}})}(e.cookie_persisted_properties||[]),s=e.persistence.toLowerCase();return s==="localstorage"&&zt.Yt()?zt:s==="localstorage+cookie"&&n.Yt()?n:s==="sessionstorage"&&hn.Yt()?hn:s==="memory"?Zw:s==="cookie"?Rs:n.Yt()?n:Rs}mr(e){var n=e!=null?e:this.Rt.feature_flag_cache_ttl_ms;
31if(!n||0>=n)return!1;var s=this.props[Wl];return!s||typeof s!="number"||Date.now()-s>n}properties(){var e={};return Ft(this.props,(n,s)=>{if(s===Bi&&tn(n)){if(!this.mr())for(var r=Object.keys(n),i=0;r.length>i;i++)e["$feature/"+r[i]]=n[r[i]]}else Dw.indexOf(s)===-1&&(e[s]=n)}),e}load(){if(!this.gr){var e=this.tr.Gt(this.vr);e&&(this.props=Zt({},e))}}save(){this.gr||this.tr.Xt(this.vr,this.props,this.yr,this.br,this.wr,this.Rt.debug)}remove(){this.tr.Jt(this.vr,!1),this.tr.Jt(this.vr,!0)}clear(){this.remove(),this.props={}}register_once(e,n,s){if(tn(e)){Me(n)&&(n="None"),this.yr=Me(s)?this._r:s;var r=!1;if(Ft(e,(i,o)=>{this.props.hasOwnProperty(o)&&this.props[o]!==n||(this.props[o]=i,r=!0)}),r)return this.save(),!0}return!1}register(e,n){if(tn(e)){this.yr=Me(n)?this._r:n;var s=!1;if(Ft(e,(r,i)=>{e.hasOwnProperty(i)&&this.props[i]!==r&&(this.props[i]=r,s=!0)}),s)return this.save(),!0}return!1}unregister(e){e in this.props&&(delete this.props[e],this.save())}update_campaign_params(){if(!this.dr){var e=Cm(this.Rt.custom_campaign_params,this.Rt.mask_personal_data_properties,this.Rt.custom_personal_data_properties);Di(i1(e))||this.register(e),this.dr=!0}}update_search_keyword(){var e;this.register((e=we==null?void 0:we.referrer)?Sm(e):{})}update_referrer_info(){var e;this.register_once({$referrer:Em(),$referring_domain:we!=null&&we.referrer&&((e=Jl(we.referrer))==null?void 0:e.host)||tu},void 0)}set_initial_person_info(){this.props[qd]||this.props[Wd]||this.register_once({[Gl]:Am(this.Rt.mask_personal_data_properties,this.Rt.custom_personal_data_properties)},void 0)}get_initial_props(){var e={};Ft([Wd,qd],o=>{var a=this.props[o];a&&Ft(a,function(l,u){e["$initial_"+Pd(u)]=l})});var n,s,r=this.props[Gl];if(r){var i=(n=Lm(r),s={},Ft(n,function(o,a){s["$initial_"+Pd(a)]=o}),s);Zt(e,i)}return e}safe_merge(e){return Ft(this.props,function(n,s){s in e||(e[s]=n)}),e}update_config(e,n,s){if(this._r=this.yr=e.cookie_expiration,this.set_disabled(e.disable_persistence||!!s),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie),e.persistence!==n.persistence||!((o,a)=>{if(o.length!==a.length)return!1;var l=[...o].sort(),u=[...a].sort();return l.every((c,d)=>c===u[d])})(e.cookie_persisted_properties||[],n.cookie_persisted_properties||[])){var r=this.pr(e),i=this.props;this.clear(),this.tr=r,this.props=i,this.save()}}set_disabled(e){this.gr=e,this.gr?this.remove():this.save()}set_cross_subdomain(e){e!==this.br&&(this.br=e,this.remove(),this.save())}set_secure(e){e!==this.wr&&(this.wr=e,this.remove(),this.save())}set_event_timer(e,n){var s=this.props[zo]||{};s[e]=n,this.props[zo]=s,this.save()}remove_event_timer(e){var n=(this.props[zo]||{})[e];return Me(n)||(delete this.props[zo][e],this.save()),n}get_property(e){return this.props[e]}set_property(e,n){this.props[e]=n,this.save()}}var Ii={Activation:"events",Cancellation:"cancelEvents"},s6={Button:"button",Tab:"tab",Selector:"selector"},r6={TopLeft:"top_left",TopRight:"top_right",TopCenter:"top_center",MiddleLeft:"middle_left",MiddleRight:"middle_right",MiddleCenter:"middle_center",Left:"left",Center:"center",Right:"right",NextToTrigger:"next_to_trigger"},i6={Top:"top",Left:"left",Right:"right",Bottom:"bottom"},_l={Popover:"popover",API:"api",Widget:"widget",ExternalSurvey:"external_survey"},o6={Open:"open",MultipleChoice:"multiple_choice",SingleChoice:"single_choice",Rating:"rating",Link:"link"},a6={NextQuestion:"next_question",End:"end",ResponseBased:"response_based",SpecificQuestion:"specific_question"},l6={Once:"once",Recurring:"recurring",Always:"always"},Ni={SHOWN:"survey shown",DISMISSED:"survey dismissed",SENT:"survey sent",ABANDONED:"survey abandoned"},yl={SURVEY_ID:"$survey_id",SURVEY_NAME:"$survey_name",SURVEY_RESPONSE:"$survey_response",SURVEY_ITERATION:"$survey_iteration",SURVEY_ITERATION_START_DATE:"$survey_iteration_start_date",SURVEY_PARTIALLY_COMPLETED:"$survey_partially_completed",SURVEY_SUBMISSION_ID:"$survey_submission_id",SURVEY_QUESTIONS:"$survey_questions",SURVEY_COMPLETED:"$survey_completed",PRODUCT_TOUR_ID:"$product_tour_id",SURVEY_LAST_SEEN_DATE:"$survey_last_seen_date"},nu={Popover:"popover",Inline:"inline"},u6={backgroundColor:"#ffffff",textColor:"#1d1f27",buttonColor:"#1d1f27",borderRadius:8,buttonBorderRadius:6,borderColor:"#e5e7eb",fontFamily:"system-ui",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.15)",showOverlay:!0,whiteLabel:!1,dismissOnClickOutside:!0,zIndex:2147483646},Mm={SHOWN:"product tour shown",DISMISSED:"product tour dismissed",COMPLETED:"product tour completed",STEP_SHOWN:"product tour step shown",STEP_COMPLETED:"product tour step completed",BUTTON_CLICKED:"product tour button clicked",STEP_SELECTOR_FAILED:"product tour step selector failed",BANNER_CONTAINER_SELECTOR_FAILED:"product tour banner container selector failed",BANNER_ACTION_CLICKED:"product tour banner action clicked"},Zd={TOUR_ID:"$product_tour_id",TOUR_NAME:"$product_tour_name",TOUR_ITERATION:"$product_tour_iteration",TOUR_RENDER_REASON:"$product_tour_render_reason",TOUR_STEP_ID:"$product_tour_step_id",TOUR_STEP_ORDER:"$product_tour_step_order",TOUR_STEP_TYPE:"$product_tour_step_type",TOUR_DISMISS_REASON:"$product_tour_dismiss_reason",TOUR_BUTTON_TEXT:"$product_tour_button_text",TOUR_BUTTON_ACTION:"$product_tour_button_action",TOUR_BUTTON_LINK:"$product_tour_button_link",TOUR_BUTTON_TOUR_ID:"$product_tour_button_tour_id",TOUR_STEPS_COUNT:"$product_tour_steps_count",TOUR_STEP_SELECTOR:"$product_tour_step_selector",TOUR_STEP_SELECTOR_FOUND:"$product_tour_step_selector_found",TOUR_STEP_ELEMENT_TAG:"$product_tour_step_element_tag",TOUR_STEP_ELEMENT_ID:"$product_tour_step_element_id",TOUR_STEP_ELEMENT_CLASSES:"$product_tour_step_element_classes",TOUR_STEP_ELEMENT_TEXT:"$product_tour_step_element_text",TOUR_ERROR:"$product_tour_error",TOUR_MATCHES_COUNT:"$product_tour_matches_count",TOUR_FAILURE_PHASE:"$product_tour_failure_phase",TOUR_WAITED_FOR_ELEMENT:"$product_tour_waited_for_element",TOUR_WAIT_DURATION_MS:"$product_tour_wait_duration_ms",TOUR_BANNER_SELECTOR:"$product_tour_banner_selector",TOUR_LINKED_SURVEY_ID:"$product_tour_linked_survey_id",USE_MANUAL_SELECTOR:"$use_manual_selector",INFERENCE_DATA_PRESENT:"$inference_data_present",TOUR_LAST_SEEN_DATE:"$product_tour_last_seen_date",TOUR_TYPE:"$product_tour_type"},cp=qt("[RateLimiter]");class c6{constructor(e){this.serverLimits={},this.lastEventRateLimited=!1,this.checkForLimiting=n=>{var s=n.text;
31if(s&&s.length)try{(JSON.parse(s).quota_limited||[]).forEach(r=>{cp.info((r||"events")+" is quota limited."),this.serverLimits[r]=new Date().getTime()+6e4})}catch(r){return void cp.warn('could not rate limit - continuing. Error: "'+(r==null?void 0:r.message)+'"',{text:s})}},this.instance=e,this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}get captureEventsPerSecond(){var e;return((e=this.instance.config.rate_limiting)==null?void 0:e.events_per_second)||10}get captureEventsBurstLimit(){var e;return Math.max(((e=this.instance.config.rate_limiting)==null?void 0:e.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond)}clientRateLimitContext(e){var n,s,r;e===void 0&&(e=!1);var{captureEventsBurstLimit:i,captureEventsPerSecond:o}=this,a=new Date().getTime(),l=(n=(s=this.instance.persistence)==null?void 0:s.get_property(zd))!==null&&n!==void 0?n:{tokens:i,last:a};l.tokens+=(a-l.last)/1e3*o,l.last=a,l.tokens>i&&(l.tokens=i);var u=1>l.tokens;return u||e||(l.tokens=Math.max(0,l.tokens-1)),!u||this.lastEventRateLimited||e||this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:"posthog-js client rate limited. Config is set to "+o+" events per second and "+i+" events burst limit."},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=u,(r=this.instance.persistence)==null||r.set_property(zd,l),{isRateLimited:u,remainingTokens:l.tokens}}isServerRateLimited(e){var n=this.serverLimits[e||"events"]||!1;return n!==!1&&new Date().getTime()<n}}var To=qt("[RemoteConfig]");class Om{constructor(e){this._instance=e}get remoteConfig(){var e;return(e=Ue._POSTHOG_REMOTE_CONFIG)==null||(e=e[this._instance.config.token])==null?void 0:e.config}Ir(e){var n,s;(n=Ue.__PosthogExtensions__)!=null&&n.loadExternalDependency?(s=Ue.__PosthogExtensions__)==null||s.loadExternalDependency==null||s.loadExternalDependency(this._instance,"remote-config",()=>e(this.remoteConfig)):e()}Cr(e){this._instance._send_request({method:"GET",url:this._instance.requestRouter.endpointFor("assets","/array/"+this._instance.config.token+"/config"),callback(n){e(n.json)}})}load(){try{if(this.remoteConfig)return To.info("Using preloaded remote config",this.remoteConfig),this.Sr(this.remoteConfig),void this.kr();if(this._instance.Tr())return void To.warn("Remote config is disabled. Falling back to local config.");this.Ir(e=>{if(!e)return To.info("No config found after loading remote JS config. Falling back to JSON."),void this.Cr(n=>{this.Sr(n),this.kr()});this.Sr(e),this.kr()})}catch(e){To.error("Error loading remote config",e)}}stop(){this.Ar&&(clearInterval(this.Ar),this.Ar=void 0)}refresh(){this._instance.Tr()||(we==null?void 0:we.visibilityState)==="hidden"||this._instance.reloadFeatureFlags()}kr(){var e;if(!this.Ar){var n=(e=this._instance.config.remote_config_refresh_interval_ms)!==null&&e!==void 0?e:3e5;n!==0&&(this.Ar=setInterval(()=>{this.refresh()},n))}}Sr(e){var n;e||To.error("Failed to fetch remote config from PostHog."),this._instance.Sr(e!=null?e:{}),(e==null?void 0:e.hasFeatureFlags)!==!1&&(this._instance.config.advanced_disable_feature_flags_on_first_load||(n=this._instance.featureFlags)==null||n.ensureFlagsLoaded())}}var d6=["fatal","error","warning","log","info","debug"],us={GZipJS:"gzip-js",Base64:"base64"},rs=Uint8Array,In=Uint16Array,go=Uint32Array,o1=new rs([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),a1=new rs([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),dp=new rs([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Pm=function(t,e){for(var n=new In(31),s=0;31>s;++s)n[s]=e+=1<<t[s-1];var r=new go(n[30]);for(s=1;30>s;++s)for(var i=n[s];n[s+1]>i;++i)r[i]=i-n[s]<<5|s;return[n,r]},$m=Pm(o1,2),Kd=$m[1];$m[0][28]=258,Kd[258]=28;for(var fp=Pm(a1,0)[1],Yd=new In(32768),Dt=0;32768>Dt;++Dt){var Ci=(43690&Dt)>>>1|(21845&Dt)<<1;Yd[Dt]=((65280&(Ci=(61680&(Ci=(52428&Ci)>>>2|(13107&Ci)<<2))>>>4|(3855&Ci)<<4))>>>8|(255&Ci)<<8)>>>1}var na=function(t,e,n){for(var s=t.length,r=0,i=new In(e);s>r;++r)++i[t[r]-1];var o,a=new In(e);for(r=0;e>r;++r)a[r]=a[r-1]+i[r-1]<<1;if(n){o=new In(1<<e);var l=15-e;for(r=0;s>r;++r)if(t[r])for(var u=r<<4|t[r],c=e-t[r],d=a[t[r]-1]++<<c,p=d|(1<<c)-1;p>=d;++d)o[Yd[d]>>>l]=u}else for(o=new In(s),r=0;s>r;++r)o[r]=Yd[a[t[r]-1]++]>>>15-t[r];return o},ui=new rs(288);for(Dt=0;144>Dt;++Dt)ui[Dt]=8;for(Dt=144;256>Dt;++Dt)ui[Dt]=9;for(Dt=256;280>Dt;++Dt)ui[Dt]=7;for(Dt=280;288>Dt;++Dt)ui[Dt]=8;var su=new rs(32);for(Dt=0;32>Dt;++Dt)su[Dt]=5;var f6=na(ui,9,0),h6=na(su,5,0),Rm=function(t){return(t/8>>
vendor: 4,201 bytes, line 31
310)+(7&t&&1)},Vm=function(t,e,n){(n==null||n>t.length)&&(n=t.length);var s=new(t instanceof In?In:t instanceof go?go:rs)(n-e);return s.set(t.subarray(e,n)),s},qs=function(t,e,n){var s=e/8>>0;t[s]|=n<<=7&e,t[s+1]|=n>>>8},Mo=function(t,e,n){var s=e/8>>0;t[s]|=n<<=7&e,t[s+1]|=n>>>8,t[s+2]|=n>>>16},Rc=function(t,e){for(var n=[],s=0;t.length>s;++s)t[s]&&n.push({s,f:t[s]});var r=n.length,i=n.slice();if(!r)return[new rs(0),0];if(r==1){var o=new rs(n[0].s+1);return o[n[0].s]=1,[o,1]}n.sort(function(x,A){return x.f-A.f}),n.push({s:-1,f:25001});var a=n[0],l=n[1],u=0,c=1,d=2;for(n[0]={s:-1,f:a.f+l.f,l:a,r:l};c!=r-1;)a=n[n[d].f>n[u].f?u++:d++],l=n[u!=c&&n[d].f>n[u].f?u++:d++],n[c++]={s:-1,f:a.f+l.f,l:a,r:l};var p=i[0].s;for(s=1;r>s;++s)i[s].s>p&&(p=i[s].s);var g=new In(p+1),v=Xd(n[c-1],g,0);if(v>e){s=0;var b=0,k=v-e,L=1<<k;for(i.sort(function(x,A){return g[A.s]-g[x.s]||x.f-A.f});r>s;++s){var E=i[s].s;if(e>=g[E])break;b+=L-(1<<v-g[E]),g[E]=e}for(b>>>=k;b>0;){var _=i[s].s;e>g[_]?b-=1<<e-g[_]++-1:++s}for(;s>=0&&b;--s){var m=i[s].s;g[m]==e&&(--g[m],++b)}v=e}return[new rs(g),v]},Xd=function(t,e,n){return t.s==-1?Math.max(Xd(t.l,e,n+1),Xd(t.r,e,n+1)):e[t.s]=n},hp=function(t){for(var e=t.length;e&&!t[--e];);for(var n=new In(++e),s=0,r=t[0],i=1,o=function(l){n[s++]=l},a=1;e>=a;++a)if(t[a]==r&&a!=e)++i;else{if(!r&&i>2){for(;i>138;i-=138)o(32754);i>2&&(o(i>10?i-11<<5|28690:i-3<<5|12305),i=0)}else if(i>3){for(o(r),--i;i>6;i-=6)o(8304);i>2&&(o(i-3<<5|8208),i=0)}for(;i--;)o(r);i=1,r=t[a]}return[n.subarray(0,s),e]},Oo=function(t,e){for(var n=0,s=0;e.length>s;++s)n+=t[s]*e[s];return n},Jd=function(t,e,n){var s=n.length,r=Rm(e+2);t[r]=255&s,t[r+1]=s>>>8,t[r+2]=255^t[r],t[r+3]=255^t[r+1];for(var i=0;s>i;++i)t[r+i+4]=n[i];return 8*(r+4+s)},pp=function(t,e,n,s,r,i,o,a,l,u,c){qs(e,c++,n),++r[256];for(var d=Rc(r,15),p=d[0],g=d[1],v=Rc(i,15),b=v[0],k=v[1],L=hp(p),E=L[0],_=L[1],m=hp(b),x=m[0],A=m[1],h=new In(19),S=0;E.length>S;++S)h[31&E[S]]++;for(S=0;x.length>S;++S)h[31&x[S]]++;for(var $=Rc(h,7),R=$[0],G=$[1],H=19;H>4&&!R[dp[H-1]];--H);var ee,j,le,X,re=u+5<<3,ne=Oo(r,ui)+Oo(i,su)+o,De=Oo(r,p)+Oo(i,b)+o+14+3*H+Oo(h,R)+(2*h[16]+3*h[17]+7*h[18]);if(ne>=re&&De>=re)return Jd(e,c,t.subarray(l,l+u));if(qs(e,c,1+(ne>De)),c+=2,ne>De){ee=na(p,g,0),j=p,le=na(b,k,0),X=b;var ot=na(R,G,0);for(qs(e,c,_-257),qs(e,c+5,A-1),qs(e,c+10,H-4),c+=14,S=0;H>S;++S)qs(e,c+3*S,R[dp[S]]);c+=3*H;for(var nt=[E,x],ye=0;2>ye;++ye){var ut=nt[ye];for(S=0;ut.length>S;++S)qs(e,c,ot[Ke=31&ut[S]]),c+=R[Ke],Ke>15&&(qs(e,c,ut[S]>>>5&127),c+=ut[S]>>>12)}}else ee=f6,j=ui,le=h6,X=su;for(S=0;a>S;++S)if(s[S]>255){var Ke;Mo(e,c,ee[257+(Ke=s[S]>>>18&31)]),c+=j[Ke+257],Ke>7&&(qs(e,c,s[S]>>>23&31),c+=o1[Ke]);var xe=31&s[S];Mo(e,c,le[xe]),c+=X[xe],xe>3&&(Mo(e,c,s[S]>>>5&8191),c+=a1[xe])}else Mo(e,c,ee[s[S]]),c+=j[s[S]];return Mo(e,c,ee[256]),c+j[256]},p6=new go([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),g6=function(){for(var t=new go(256),e=0;256>e;++e){for(var n=e,s=9;--s;)n=(1&n&&3988292384)^n>>>1;t[e]=n}return t}(),Vc=function(t,e,n){for(;n;++e)t[e]=n,n>>>=8};function v6(t,e){e===void 0&&(e={});var n=function(){var d=4294967295;return{p(p){for(var g=d,v=0;p.length>v;++v)g=g6[255&g^p[v]]^g>>>8;d=g},d(){return 4294967295^d}}}(),s=t.length;n.p(t);var r,i,o,a,l,u=(a=10+((r=e).filename&&r.filename.length+1||0),l=8,function(d,p,g,v,b,k){var L=d.length,E=new rs(v+L+5*(1+Math.floor(L/7e3))+b),_=E.subarray(v,E.length-b),m=0;if(!p||8>L)for(var x=0;L>=x;x+=65535){var A=x+65535;L>A?m=Jd(_,m,d.subarray(x,A)):(_[x]=!0,m=Jd(_,m,d.subarray(x,L)))}else{for(var h=p6[p-1],S=h>>>13,$=8191&h,R=(1<<g)-1,G=new In(32768),H=new In(R+1),ee=Math.ceil(g/3),j=2*ee,le=function(be){return(d[be]^d[be+1]<<ee^d[be+2]<<j)&R},X=new go(25e3),re=new In(288),ne=new In(32),De=0,ot=0,nt=(x=0,0),ye=0,ut=0;L>x;++x){var Ke=le(x),xe=32767&x,ft=H[Ke];if(G[xe]=ft,H[Ke]=xe,x>=ye){var B=L-x;if((De>7e3||nt>24576)&&B>423){m=pp(d,_,0,X,re,ne,ot,nt,ut,x-ut,m),nt=De=ot=0,ut=x;for(var I=0;286>I;++I)re[I]=0;for(I=0;30>I;++I)ne[I]=0}var W=2,J=0,Ee=$,Te=xe-ft&32767;if(B>2&&Ke==le(x-Te))for(var M=Math.min(S,B)-1,P=Math.min(32767,x),q=Math.min(258,B);P>=Te&&--Ee&&xe!=ft;){if(d[x+W]==d[x+W-Te]){for(var te=0;q>te&&d[x+te]==d[x+te-Te];++te);
31if(te>W){if(W=te,J=Te,te>M)break;var Q=Math.min(Te,te-2),ie=0;for(I=0;Q>I;++I){var ge=x-Te+I+32768&32767,he=ge-G[ge]+32768&32767;he>ie&&(ie=he,ft=ge)}}}Te+=(xe=ft)-(ft=G[xe])+32768&32767}if(J){X[nt++]=268435456|Kd[W]<<18|fp[J];var fe=31&Kd[W],se=31&fp[J];ot+=o1[fe]+a1[se],++re[257+fe],++ne[se],ye=x+W,++De}else X[nt++]=d[x],++re[d[x]]}}m=pp(d,_,!0,X,re,ne,ot,nt,ut,x-ut,m)}return Vm(E,0,v+Rm(m)+b)}(i=t,(o=e).level==null?6:o.level,o.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(i.length)))):12+o.mem,a,l)),c=u.length;return function(d,p){var g=p.filename;if(d[0]=31,d[1]=139,d[2]=8,d[8]=2>p.level?4:p.level==9?2:0,d[9]=3,p.mtime!=0&&Vc(d,4,Math.floor(new Date(p.mtime||Date.now())/1e3)),g){d[3]=8;for(var v=0;g.length>=v;++v)d[v+10]=g.charCodeAt(v)}}(u,e),Vc(u,c-8,n.d()),Vc(u,c-4,s),u}var m6=!!Od||!!Md,Im="text/plain",ru=function(t,e,n){var s;n===void 0&&(n=!0);var[r,i]=t.split("?"),o=_e({},e),a=(s=i==null?void 0:i.split("&").map(u=>{var c,[d,p]=u.split("="),g=n&&(c=o[d])!==null&&c!==void 0?c:p;return delete o[d],d+"="+g}))!==null&&s!==void 0?s:[],l=function(u,c){var d,p;c===void 0&&(c="&");var g=[];return Ft(u,function(v,b){Me(v)||Me(b)||b==="undefined"||(d=encodeURIComponent((k=>k instanceof File)(v)?v.name:v.toString()),p=encodeURIComponent(b),g[g.length]=p+"="+d)}),g.join(c)}(o);return l&&a.push(l),r+"?"+a.join("&")},ji=(t,e)=>JSON.stringify(t,(n,s)=>typeof s=="bigint"?s.toString():s,e),Ic=t=>{if(t.zt)return t.zt;var{data:e,compression:n}=t;if(e){if(n===us.GZipJS){var s=v6(function(a,l){var u=a.length;if(typeof TextEncoder<"u")return new TextEncoder().encode(a);for(var c=new rs(a.length+(a.length>>>1)),d=0,p=function(k){c[d++]=k},g=0;u>g;++g){if(d+5>c.length){var v=new rs(d+8+(u-g<<1));v.set(c),c=v}var b=a.charCodeAt(g);128>b?p(b):2048>b?(p(192|b>>>6),p(128|63&b)):b>55295&&57344>b?(p(240|(b=65536+(1047552&b)|1023&a.charCodeAt(++g))>>>18),p(128|b>>>12&63),p(128|b>>>6&63),p(128|63&b)):(p(224|b>>>12),p(128|b>>>6&63),p(128|63&b))}return Vm(c,0,d)}(ji(e)),{mtime:0});return{contentType:Im,body:s.buffer.slice(s.byteOffset,s.byteOffset+s.byteLength),estimatedSize:s.byteLength}}if(n===us.Base64){var r=function(a){return a&&btoa(encodeURIComponent(a).replace(/%([0-9A-F]{2})/g,(l,u)=>String.fromCharCode(parseInt(u,16))))}(ji(e)),i=(a=>"data="+encodeURIComponent(typeof a=="string"?a:ji(a)))(r);return{contentType:"application/x-www-form-urlencoded",body:i,estimatedSize:new Blob([i]).size}}var o=ji(e);return{contentType:"application/json",body:o,estimatedSize:new Blob([o]).size}}},_6=function(){var t=as(function*(e){var n=ji(e.data),s=yield function(i,o){return Wv.apply(this,arguments)}(n,qn.DEBUG);if(!s)return e;var r=yield s.arrayBuffer();return _e({},e,{zt:{contentType:Im,body:r,estimatedSize:r.byteLength}})});return function(e){return t.apply(this,arguments)}}(),bl=[];Md&&bl.push({transport:"fetch",method(t){var e,n,{contentType:s,body:r,estimatedSize:i}=(e=Ic(t))!==null&&e!==void 0?e:{},o=new Headers;Ft(t.headers,function(c,d){o.append(d,c)}),s&&o.append("Content-Type",s);var a=t.url,l=null;if(jh){var u=new jh;l={signal:u.signal,timeout:setTimeout(()=>u.abort(),t.timeout)}}Md(a,_e({method:(t==null?void 0:t.method)||"GET",headers:o,keepalive:t.method==="POST"&&52428.8>(i||0),body:r,signal:(n=l)==null?void 0:n.signal},t.fetchOptions)).then(c=>c.text().then(d=>{var p={statusCode:c.status,text:d};if(c.status===200)try{p.json=JSON.parse(d)}catch(g){Se.error(g)}t.callback==null||t.callback(p)})).catch(c=>{Se.error(c),t.callback==null||t.callback({statusCode:0,error:c})}).finally(()=>l?clearTimeout(l.timeout):null)}}),Od&&bl.push({transport:"XHR",method(t){var e,n=new Od;n.open(t.method||"GET",t.url,!0);var{contentType:s,body:r}=(e=Ic(t))!==null&&e!==void 0?e:{};Ft(t.headers,function(i,o){n.setRequestHeader(o,i)}),s&&n.setRequestHeader("Content-Type",s),t.timeout&&(n.timeout=t.timeout),t.disableXHRCredentials||(n.withCredentials=!0),n.onreadystatechange=()=>{if(n.readyState===4){var i={statusCode:n.status,text:n.responseText};if(n.status===200)try{i.json=JSON.parse(n.responseText)}catch{}t.callback==null||t.callback(i)}},n.send(r)}}),Gn!=null&&Gn.sendBeacon&&bl.push({transport:"sendBeacon",method(t){var e=ru(t.url,{beacon:"1"});try{var n,{contentType:s,body:r}=(n=Ic(t))!==null&&n!==void 0?n:{};if(!r)return;var i=r instanceof Blob?r:new Blob([r],{type:s});Gn.sendBeacon(e,i)}catch{}}});var Qd=3e3;class y6{constructor(e,n){this.Er=!0,this.Rr=[],this.Nr=Vs((n==null?void 0:n.flush_interval_ms)||Qd,250,5e3,Se.createLogger("flush interval"),Qd),this.Mr=e}enqueue(e){this.Rr.push(e),this.Fr||this.Or()}unload(){this.Pr();var e=this.Rr.length>0?this.Lr():{},n=Object.values(e);[...n.filter(s=>s.url.indexOf("/e")===0),...n.filter(s=>s.url.indexOf("/e")!==0)].map(s=>{this.Mr(_e({},s,{transport:"sendBeacon"}))})}enable(){this.Er=!1,this.Or()}Or(){var e=this;this.Er||(this.Fr=setTimeout(()=>{if(this.Pr(),this.Rr.length>0){var n=this.Lr(),s=function(){var i=n[r],o=new Date().getTime();i.data&&mt(i.data)&&Ft(i.data,a=>{a.offset=Math.abs(a.timestamp-o),delete a.timestamp}),e.Mr(i)};for(var r in n)s()}},this.Nr))}Pr(){clearTimeout(this.Fr),this.Fr=void 0}Lr(){var e={};return Ft(this.Rr,n=>{var s,r=n,i=(r?r.batchKey:null)||r.url;Me(e[i])&&(e[i]=_e({},r,{data:[]})),(s=e[i].data)==null||s.push(r.data)}),this.Rr=[],e}}var b6=["retriesPerformedSoFar"];class w6{constructor(e){this.Dr=!1,this.Br=3e3,this.Rr=[],this._instance=e,this.Rr=[],this.jr=!0,!Me(K)&&"onLine"in K.navigator&&(this.jr=K.navigator.onLine,this.qr=()=>{this.jr=!0,this.Zr()},this.$r=()=>{this.jr=!1},Xt(K,"online",this.qr),Xt(K,"offline",this.$r))}get length(){return this.Rr.length}retriableRequest(e){var{retriesPerformedSoFar:n}=e,s=qv(e,b6);Ri(n)&&(s.url=ru(s.url,{retry_count:n})),this._instance._send_request(_e({},s,{callback:r=>{r.statusCode===200||r.statusCode>=400&&500>r.statusCode||(n!=null?n:0)>=10?s.callback==null||s.callback(r):this.Hr(_e({retriesPerformedSoFar:n},s))}}))}Hr(e){var n=e.retriesPerformedSoFar||0;e.retriesPerformedSoFar=n+1;var s=function(o){var a=3e3*Math.pow(2,o),l=a/2,u=Math.min(18e5,a),c=Math.random()-.5;return Math.ceil(u+c*(u-l))}(n),r=Date.now()+s;this.Rr.push({retryAt:r,requestOptions:e});var i="Enqueued failed request for retry in "+s;navigator.onLine||(i+=" (Browser is offline)"),Se.warn(i),this.Dr||(this.Dr=!0,this.Vr())}Vr(){if(this.zr&&clearTimeout(this.zr),this.Rr.length===0)return this.Dr=!1,void(this.zr=void 0);this.zr=setTimeout(()=>{this.jr&&this.Rr.length>0&&this.Zr(),this.Vr()},this.Br)}Zr(){var e=Date.now(),n=[],s=this.Rr.filter(i=>e>i.retryAt||(n.push(i),!1));if(this.Rr=n,s.length>0)for(var{requestOptions:r}of s)this.retriableRequest(r)}unload(){for(var{requestOptions:e}of(this.zr&&(clearTimeout(this.zr),this.zr=void 0),this.Dr=!1,Me(K)||(this.qr&&(K.removeEventListener("online",this.qr),this.qr=void 0),this.$r&&(K.removeEventListener("offline",this.$r),this.$r=void 0)),this.Rr))try{this._instance._send_request(_e({},e,{transport:"sendBeacon"}))}catch(n){Se.error(n)}this.Rr=[]}}class x6{constructor(e){this.Yr=()=>{var n,s,r,i;this.Ur||(this.Ur={});var o=this.scrollElement(),a=this.scrollY(),l=o?Math.max(0,o.scrollHeight-o.clientHeight):0,u=a+((o==null?void 0:o.clientHeight)||0),c=(o==null?void 0:o.scrollHeight)||0;this.Ur.lastScrollY=Math.ceil(a),this.Ur.maxScrollY=Math.max(a,(n=this.Ur.maxScrollY)!==null&&n!==void 0?n:0),this.Ur.maxScrollHeight=Math.max(l,(s=this.Ur.maxScrollHeight)!==null&&s!==void 0?s:0),this.Ur.lastContentY=u,this.Ur.maxContentY=Math.max(u,(r=this.Ur.maxContentY)!==null&&r!==void 0?r:0),this.Ur.maxContentHeight=Math.max(c,(i=this.Ur.maxContentHeight)!==null&&i!==void 0?i:0)},this._instance=e}get Wr(){return this._instance.config.scroll_root_selector}getContext(){return this.Ur}resetContext(){var e=this.Ur;return setTimeout(this.Yr,0),e}startMeasuringScrollPosition(){Xt(K,"scroll",this.Yr,{capture:!0}),Xt(K,"scrollend",this.Yr,{capture:!0}),Xt(K,"resize",this.Yr)}scrollElement(){if(!this.Wr)return K==null?void 0:K.document.documentElement;var e=mt(this.Wr)?this.Wr:[this.Wr];for(var n of e){var s=K==null?void 0:K.document.querySelector(n);if(s)return s}}scrollY(){if(this.Wr){var e=this.scrollElement();return e&&e.scrollTop||0}return K&&(K.scrollY||K.pageYOffset||K.document.documentElement.scrollTop)||0}scrollX(){if(this.Wr){var e=this.scrollElement();return e&&e.scrollLeft||0}return K&&(K.scrollX||K.pageXOffset||K.document.documentElement.scrollLeft)||0}}var C6=t=>Am(t==null?void 0:t.config.mask_personal_data_properties,t==null?void 0:t.config.custom_personal_data_properties);class gp{constructor(e,n,s,r){this.Gr=i=>{var o=this.Xr();if(!o||o.sessionId!==i){var a={sessionId:i,props:this.Jr(this._instance)};this.Kr.register({[Ud]:a})}},this._instance=e,this.Qr=n,this.Kr=s,this.Jr=r||C6,this.Qr.onSessionId(this.Gr)}Xr(){return this.Kr.props[Ud]}getSetOnceProps(){var e,n=(e=this.Xr())==null?void 0:e.props;return n?"r"in n?Lm(n):{$referring_domain:n.referringDomain,$pathname:n.initialPathName,utm_source:n.utm_source,utm_campaign:n.utm_campaign,utm_medium:n.utm_medium,utm_content:n.utm_content,utm_term:n.utm_term}:{}}getSessionProps(){var e={};return Ft(i1(this.getSetOnceProps()),(n,s)=>{s==="$current_url"&&(s="url"),e["$session_entry_"+Pd(s)]=n}),e}}class l1{constructor(){this.ti={}}on(e,n){return this.ti[e]||(this.ti[e]=[]),this.ti[e].push(n),()=>{this.ti[e]=this.ti[e].filter(s=>s!==n)}}emit(e,n){for(var s of this.ti[e]||[])s(n);for(var r of this.ti["*"]||[])r(e,n)}}var Hc=qt("[SessionId]");class vp{on(e,n){return this.ei.on(e,n)}constructor(e,n,s){var r;if(this.ri=[],this.ii=void 0,this.ei=new l1,this.ni=(u,c)=>!(!Ri(u)||!Ri(c))&&Math.abs(u-c)>
31this.sessionTimeoutMs,!e.persistence)throw new Error("SessionIdManager requires a PostHogPersistence instance");if(e.config.cookieless_mode===ls)throw new Error('SessionIdManager cannot be used with cookieless_mode="always"');this.Rt=e.config,this.Kr=e.persistence,this.si=void 0,this.oi=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this.ai=n||Tr,this.li=s||Tr;var i=this.Rt.persistence_name||this.Rt.token;if(this._sessionTimeoutMs=1e3*Vs(this.Rt.session_idle_timeout_seconds||1800,60,36e3,Hc.createLogger("session_idle_timeout_seconds"),1800),e.register({$configured_session_timeout_ms:this._sessionTimeoutMs}),this.ui(),this.hi="ph_"+i+"_window_id",this.ci="ph_"+i+"_primary_window_exists",this.di()){var o=hn.Gt(this.hi),a=hn.Gt(this.ci);o&&!a?this.si=o:hn.Jt(this.hi),hn.Xt(this.ci,!0)}if((r=this.Rt.bootstrap)!=null&&r.sessionID)try{var l=(u=>{var c=this.Rt.bootstrap.sessionID.replace(/-/g,"");if(c.length!==32)throw new Error("Not a valid UUID");if(c[12]!=="7")throw new Error("Not a UUIDv7");return parseInt(c.substring(0,12),16)})();this.vi(this.Rt.bootstrap.sessionID,new Date().getTime(),l)}catch(u){Hc.error("Invalid sessionID in bootstrap",u)}this.fi()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(e){return Me(this.ri)&&(this.ri=[]),this.ri.push(e),this.oi&&e(this.oi,this.si),()=>{this.ri=this.ri.filter(n=>n!==e)}}di(){return this.Rt.persistence!=="memory"&&!this.Kr.gr&&hn.Yt()}pi(e){e!==this.si&&(this.si=e,this.di()&&hn.Xt(this.hi,e))}gi(){return this.si?this.si:this.di()?hn.Gt(this.hi):null}vi(e,n,s){e===this.oi&&n===this._sessionActivityTimestamp&&s===this._sessionStartTimestamp||(this._sessionStartTimestamp=s,this._sessionActivityTimestamp=n,this.oi=e,this.Kr.register({[ql]:[n,e,s]}))}mi(){var e=this.Kr.props[ql];return mt(e)&&e.length===2&&e.push(e[0]),e||[0,null,0]}resetSessionId(){this.vi(null,null,null)}destroy(){clearTimeout(this.yi),this.yi=void 0,this.ii&&K&&(K.removeEventListener(Yl,this.ii,{capture:!1}),this.ii=void 0),this.ri=[]}fi(){this.ii=()=>{this.di()&&hn.Jt(this.ci)},Xt(K,Yl,this.ii,{capture:!1})}checkAndGetSessionAndWindowId(e,n){if(e===void 0&&(e=!1),n===void 0&&(n=null),this.Rt.cookieless_mode===ls)throw new Error('checkAndGetSessionAndWindowId should not be called with cookieless_mode="always"');var s=n||new Date().getTime(),[r,i,o]=this.mi(),a=this.gi(),l=Ri(o)&&Math.abs(s-o)>864e5,u=!1,c=!i,d=!c&&!e&&this.ni(s,r);c||d||l?(i=this.ai(),a=this.li(),Hc.info("new session ID generated",{sessionId:i,windowId:a,changeReason:{noSessionId:c,activityTimeout:d,sessionPastMaximumLength:l}}),o=s,u=!0):a||(a=this.li(),u=!0);var p=Ri(r)&&e&&!l?r:s,g=Ri(o)?o:new Date().getTime();return this.pi(a),this.vi(i,p,g),e||this.ui(),u&&this.ri.forEach(v=>v(i,a,u?{noSessionId:c,activityTimeout:d,sessionPastMaximumLength:l}:void 0)),{sessionId:i,windowId:a,sessionStartTimestamp:g,changeReason:u?{noSessionId:c,activityTimeout:d,sessionPastMaximumLength:l}:void 0,lastActivityTimestamp:r}}ui(){clearTimeout(this.yi),this.yi=setTimeout(()=>{var[e]=this.mi();if(this.ni(new Date().getTime(),e)){var n=this.oi;this.resetSessionId(),this.ei.emit("forcedIdleReset",{idleSessionId:n})}},1.1*this.sessionTimeoutMs)}}var Hm=function(t,e){if(!t)return!1;var n=t.userAgent;if(n&&qh(n,e))return!0;try{var s=t==null?void 0:t.userAgentData;if(s!=null&&s.brands&&s.brands.some(r=>qh(r==null?void 0:r.brand,e)))return!0}catch{}return!!t.webdriver},iu=function(t,e){if(!function(n){try{new RegExp(n)}catch{return!1}return!0}(e))return!1;try{return new RegExp(e).test(t)}catch{return!1}};function mp(t,e,n){return ji({distinct_id:t,userPropertiesToSet:e,userPropertiesToSetOnce:n})}var Fm={exact:(t,e)=>e.some(n=>t.some(s=>n===s)),is_not:(t,e)=>e.every(n=>t.every(s=>n!==s)),regex:(t,e)=>e.some(n=>t.some(s=>iu(n,s))),not_regex:(t,e)=>e.every(n=>t.every(s=>!iu(n,s))),icontains:(t,e)=>e.map(il).some(n=>t.map(il).some(s=>n.includes(s))),not_icontains:(t,e)=>e.map(il).every(n=>t.map(il).every(s=>!n.includes(s))),gt:(t,e)=>e.some(n=>{var s=parseFloat(n);return!isNaN(s)&&t.some(r=>s>parseFloat(r))}),lt:(t,e)=>e.some(n=>{var s=parseFloat(n);return!isNaN(s)&&t.some(r=>s<parseFloat(r))})},il=t=>t.toLowerCase();function Dm(t,e){return!t||Object.entries(t).every(n=>{var[s,r]=n,i=e==null?void 0:e[s];if(Me(i)||Fr(i))return!1;var o=[String(i)],a=Fm[r.operator];return!!a&&a(r.values,o)})}var ef="custom",_p="i.posthog.com";class k6{constructor(e){this.bi={},this.instance=e}get apiHost(){var e=this.instance.config.api_host.trim().replace(/\/$/,"");return e==="https://app.posthog.com"?"https://us.i.posthog.com":e}get flagsApiHost(){var e=this.instance.config.flags_api_host;return e?e.trim().replace(/\/$/,""):this.apiHost}get uiHost(){var e,n=(e=this.instance.config.ui_host)==null?void 0:e.replace(/\/$/,"");return n||(n=this.apiHost.replace("."+_p,".posthog.com")),n==="https://app.posthog.com"?"https://us.posthog.com":n}
31get region(){return this.bi[this.apiHost]||(this.bi[this.apiHost]=/https:\/\/(app|us|us-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?"us":/https:\/\/(eu|eu-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?"eu":ef),this.bi[this.apiHost]}endpointFor(e,n){if(n===void 0&&(n=""),n&&(n=n[0]==="/"?n:"/"+n),e==="ui")return this.uiHost+n;if(e==="flags")return this.flagsApiHost+n;if(this.region===ef)return this.apiHost+n;var s=_p+n;switch(e){case"assets":return"https://"+this.region+"-assets."+s;case"api":return"https://"+this.region+"."+s}}}var Pt=qt("[Surveys]"),tf="seenSurvey_",S6=(t,e)=>{var n="$survey_"+e+"/"+t.id;return t.current_iteration&&t.current_iteration>0&&(n="$survey_"+e+"/"+t.id+"/"+t.current_iteration),n},yp=t=>((e,n)=>{var s=""+tf+n.id;return n.current_iteration&&n.current_iteration>0&&(s=""+tf+n.id+"_"+n.current_iteration),s})(0,t),E6=[_l.Popover,_l.Widget,_l.API],A6={ignoreConditions:!1,ignoreDelay:!1,displayType:nu.Popover},L6=qt("[PostHog ExternalIntegrations]"),T6={intercom:"intercom-integration",crispChat:"crisp-chat-integration"};class M6{constructor(e){this._instance=e}nr(e,n){var s;(s=Ue.__PosthogExtensions__)==null||s.loadExternalDependency==null||s.loadExternalDependency(this._instance,e,r=>{if(r)return L6.error("failed to load script",r);n()})}startIfEnabledOrStop(){var e=this,n=function(o){var a,l,u;!r||(a=Ue.__PosthogExtensions__)!=null&&(a=a.integrations)!=null&&a[o]||e.nr(T6[o],()=>{var c;(c=Ue.__PosthogExtensions__)==null||(c=c.integrations)==null||(c=c[o])==null||c.start(e._instance)}),!r&&(l=Ue.__PosthogExtensions__)!=null&&(l=l.integrations)!=null&&l[o]&&((u=Ue.__PosthogExtensions__)==null||(u=u.integrations)==null||(u=u[o])==null||u.stop())};for(var[s,r]of Object.entries((i=this._instance.config.integrations)!==null&&i!==void 0?i:{})){var i;n(s)}}}var sa={},Fc=0,nf=()=>{},bp='Consent opt in/out is not valid with cookieless_mode="always" and will be ignored',Po="Surveys module not available",wp="sanitize_properties is deprecated. Use before_send instead",Bm="Invalid value for property_denylist config: ",Hi="posthog",Nm=!m6&&(Nn==null?void 0:Nn.indexOf("MSIE"))===-1&&(Nn==null?void 0:Nn.indexOf("Mozilla"))===-1,xp=t=>{var e;return _e({api_host:"https://us.i.posthog.com",flags_api_host:null,ui_host:null,token:"",autocapture:!0,cross_subdomain_cookie:jw(we==null?void 0:we.location),persistence:"localStorage+cookie",persistence_name:"",cookie_persisted_properties:[],loaded:nf,save_campaign_params:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageleave:"if_capture_pageview",defaults:t!=null?t:"unset",__preview_deferred_init_extensions:!1,debug:fn&&Jt(fn==null?void 0:fn.search)&&fn.search.indexOf("__posthog_debug=true")!==-1||!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_web_experiments:!0,disable_surveys:!1,disable_surveys_automatic_display:!1,disable_conversations:!1,disable_product_tours:!1,disable_external_dependency_loading:!1,enable_recording_console_log:void 0,secure_cookie:(K==null||(e=K.location)==null?void 0:e.protocol)==="https:",ip:!1,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_useragent_filter:!1,opt_out_capturing_persistence_type:"localStorage",consent_persistence_name:null,opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_denylist:[],respect_dnt:!1,sanitize_properties:null,request_headers:{},request_batching:!0,properties_string_max_length:65535,mask_all_element_attributes:!1,mask_all_text:!1,mask_personal_data_properties:!1,custom_personal_data_properties:[],advanced_disable_flags:!1,advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_only_evaluate_survey_feature_flags:!1,advanced_feature_flags_dedup_per_session:!1,advanced_enable_surveys:!1,advanced_disable_toolbar_metrics:!1,feature_flag_request_timeout_ms:3e3,surveys_request_timeout_ms:1e4,on_request_error(n){Se.error("Bad HTTP status: "+n.statusCode+" "+n.text)},get_device_id:n=>n,capture_performance:void 0,name:"posthog",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:Gd,before_send:void 0,request_queue_config:{flush_interval_ms:Qd},error_tracking:{},_onCapture:nf,__preview_eager_load_replay:!1},(n=>({rageclick:!n||"2025-11-30">n||{content_ignorelist:!0},capture_pageview:!n||"2025-05-24">n||"history_change",session_recording:n&&n>="2025-11-30"?{strictMinimumDuration:!0}:{},external_scripts_inject_target:n&&n>="2026-01-30"?"head":"body",internal_or_test_user_hostname:n&&n>="2026-01-30"?/^(localhost|127\.0\.0\.1)$/:void 0}))(t))},O6=[["process_person","person_profiles"],["xhr_headers","request_headers"],["cookie_name","persistence_name"],["disable_cookie","disable_persistence"],["store_google","save_campaign_params"],["verbose","debug"]],Cp=t=>{var e={};for(var[n,s]of O6)Me(t[n])||(e[s]=t[n]);var r=Zt({},e,t);return mt(t.property_blacklist)&&(Me(t.property_denylist)?r.property_denylist=t.property_blacklist:mt(t.property_denylist)?r.property_denylist=[...t.property_blacklist,...t.property_denylist]:Se.error(Bm+t.property_denylist)),r};class P6{constructor(){this.__forceAllowLocalhost=!1}get wi(){return this.__forceAllowLocalhost}set wi(e){Se.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=e}}class ds{Ii(e,n){if(e){var s=this.Ci.indexOf(e);s!==-1&&this.Ci.splice(s,1)}return this.Ci.push(n),n.initialize==null||n.initialize(),n}get decideEndpointWasHit(){var e,n;return(e=(n=this.featureFlags)==null?void 0:n.hasLoadedFlags)!==null&&e!==void 0&&e}get flagsEndpointWasHit(){var e,n;return(e=(n=this.featureFlags)==null?void 0:n.hasLoadedFlags)!==null&&e!==void 0&&e}constructor(){var e;this.webPerformance=new P6,this.Si=!1,this.version=qn.LIB_VERSION,this.ki=new l1,this.Ci=[],this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=xp(),this.SentryIntegration=Jw,this.sentryIntegration=s=>function(r,i){var o=xm(r,i);return{name:wm,processEvent:a=>o(a)}}(this,s),this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint="/e/",this.xi=!1,this.Ti=null,this.Ai=null,this.Ei=null,this.scrollManager=new x6(this),this.pageViewM
31anager=new lp(this),this.rateLimiter=new c6(this),this.requestRouter=new k6(this),this.consent=new Kw(this),this.externalIntegrations=new M6(this);var n=(e=ds.__defaultExtensionClasses)!==null&&e!==void 0?e:{};this.featureFlags=n.featureFlags&&new n.featureFlags(this),this.toolbar=n.toolbar&&new n.toolbar(this),this.surveys=n.surveys&&new n.surveys(this),this.conversations=n.conversations&&new n.conversations(this),this.logs=n.logs&&new n.logs(this),this.experiments=n.experiments&&new n.experiments(this),this.exceptions=n.exceptions&&new n.exceptions(this),this.people={set:(s,r,i)=>{var o=Jt(s)?{[s]:r}:s;this.setPersonProperties(o),i==null||i({})},set_once:(s,r,i)=>{var o=Jt(s)?{[s]:r}:s;this.setPersonProperties(void 0,o),i==null||i({})}},this.on("eventCaptured",s=>Se.info('send "'+(s==null?void 0:s.event)+'"',s))}init(e,n,s){if(s&&s!==Hi){var r,i=(r=sa[s])!==null&&r!==void 0?r:new ds;return i._init(e,n,s),sa[s]=i,sa[Hi][s]=i,i}return this._init(e,n,s)}_init(e,n,s){var r;if(n===void 0&&(n={}),Me(e)||vl(e))return Se.critical("PostHog was initialized without a token. This likely indicates a misconfiguration. Please check the first argument passed to posthog.init()"),this;if(this.__loaded)return console.warn("[PostHog.js]","You have already initialized PostHog! Re-initializing is a no-op"),this;this.__loaded=!0,this.config={},n.debug=this.Ri(n.debug),this.Ni=n,this.Mi=[],n.person_profiles?this.Ai=n.person_profiles:n.process_person&&(this.Ai=n.process_person),this.set_config(Zt({},xp(n.defaults),Cp(n),{name:s,token:e})),this.config.on_xhr_error&&Se.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=n.disable_compression?void 0:us.GZipJS;var i=this.Fi();this.persistence=new $c(this.config,i),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new $c(_e({},this.config,{persistence:"sessionStorage"}),i);var o=_e({},this.persistence.props),a=_e({},this.sessionPersistence.props);this.register({$initialization_time:new Date().toISOString()}),this.Oi=new y6(b=>this.Pi(b),this.config.request_queue_config),this.Li=new w6(this),this.__request_queue=[];var l=this.config.cookieless_mode===ls||this.config.cookieless_mode===Ks&&this.consent.isExplicitlyOptedOut();if(l||(this.sessionManager=new vp(this),this.sessionPropsManager=new gp(this,this.sessionManager,this.persistence)),this.config.__preview_deferred_init_extensions?(Se.info("Deferring extension initialization to improve startup performance"),setTimeout(()=>{this.Di(l)},0)):(Se.info("Initializing extensions synchronously"),this.Di(l)),qn.DEBUG=qn.DEBUG||this.config.debug,qn.DEBUG&&Se.info("Starting in debug mode",{this:this,config:n,thisC:_e({},this.config),p:o,s:a}),((r=n.bootstrap)==null?void 0:r.distinctID)!==void 0){var u=n.bootstrap.distinctID,c=this.get_distinct_id(),d=this.persistence.get_property(os);if(n.bootstrap.isIdentifiedID&&c!=null&&c!==u&&d===wi)this.identify(u);else if(n.bootstrap.isIdentifiedID&&c!=null&&c!==u&&d===xi)Se.warn("Bootstrap distinctID differs from an already-identified user. The existing identity is preserved. Call reset() before reinitializing if you intend to switch users.");else{var p=this.config.get_device_id(Tr()),g=n.bootstrap.isIdentifiedID?p:u;this.persistence.set_property(os,n.bootstrap.isIdentifiedID?xi:wi),this.register({distinct_id:u,$device_id:g})}}if(l)this.register_once({distinct_id:el,$device_id:null},"");else if(!this.get_distinct_id()){var v=this.config.get_device_id(Tr());this.register_once({distinct_id:v,$device_id:v},""),this.persistence.set_property(os,wi)}return Xt(K,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this),{passive:!1}),n.segment?function(b,k){var L=b.config.segment;if(!L)return k();(function(E,_){var m=E.config.segment;if(!m)return _();var x=h=>{var S=()=>h.anonymousId()||Tr();E.config.get_device_id=S,h.id()&&(E.register({distinct_id:h.id(),$device_id:S()}),E.persistence.set_property(os,xi)),_()},A=m.user();"then"in A&&Js(A.then)?A.then(x):x(A)})(b,()=>{L.register((E=>{Promise&&Promise.resolve||Pc.warn("This browser does not have Promise support, and can not use the segment integration");var _=(m,x)=>{if(!x)return m;m.event.userId||m.event.anonymousId===E.get_distinct_id()||(Pc.info("No userId set, resetting PostHog"),E.reset()),m.event.userId&&m.event.userId!==E.get_distinct_id()&&(Pc.info("UserId set, identifying with PostHog"),E.identify(m.event.userId)
31);var A=E.calculateEventProperties(x,m.event.properties);return m.event.properties=Object.assign({},A,m.event.properties),m};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:m=>_(m,m.event.event),page:m=>_(m,Vi),identify:m=>_(m,Mc),screen:m=>_(m,"$screen")}})(b)).then(()=>{k()})})}(this,()=>this.Bi()):this.Bi(),Js(this.config._onCapture)&&this.config._onCapture!==nf&&(Se.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",b=>this.config._onCapture(b.event,b))),this.config.ip&&Se.warn('The `ip` config option has NO EFFECT AT ALL and has been deprecated. Use a custom transformation or "Discard IP data" project setting instead. See https://posthog.com/tutorials/web-redact-properties#hiding-customer-ip-address for more information.'),this}Di(e){var n,s,r,i,o,a,l,u=performance.now(),c=_e({},ds.__defaultExtensionClasses,this.config.__extensionClasses),d=[];c.featureFlags&&this.Ci.push(this.featureFlags=(n=this.featureFlags)!==null&&n!==void 0?n:new c.featureFlags(this)),c.exceptions&&this.Ci.push(this.exceptions=(s=this.exceptions)!==null&&s!==void 0?s:new c.exceptions(this)),c.historyAutocapture&&this.Ci.push(this.historyAutocapture=new c.historyAutocapture(this)),c.tracingHeaders&&this.Ci.push(new c.tracingHeaders(this)),c.siteApps&&this.Ci.push(this.siteApps=new c.siteApps(this)),c.sessionRecording&&!e&&this.Ci.push(this.sessionRecording=new c.sessionRecording(this)),this.config.disable_scroll_properties||d.push(()=>{this.scrollManager.startMeasuringScrollPosition()}),c.autocapture&&this.Ci.push(this.autocapture=new c.autocapture(this)),c.surveys&&this.Ci.push(this.surveys=(r=this.surveys)!==null&&r!==void 0?r:new c.surveys(this)),c.logs&&this.Ci.push(this.logs=(i=this.logs)!==null&&i!==void 0?i:new c.logs(this)),c.conversations&&this.Ci.push(this.conversations=(o=this.conversations)!==null&&o!==void 0?o:new c.conversations(this)),c.productTours&&this.Ci.push(this.productTours=new c.productTours(this)),c.heatmaps&&this.Ci.push(this.heatmaps=new c.heatmaps(this)),c.webVitalsAutocapture&&this.Ci.push(this.webVitalsAutocapture=new c.webVitalsAutocapture(this)),c.exceptionObserver&&this.Ci.push(this.exceptionObserver=new c.exceptionObserver(this)),c.deadClicksAutocapture&&this.Ci.push(this.deadClicksAutocapture=new c.deadClicksAutocapture(this,Xw)),c.toolbar&&this.Ci.push(this.toolbar=(a=this.toolbar)!==null&&a!==void 0?a:new c.toolbar(this)),c.experiments&&this.Ci.push(this.experiments=(l=this.experiments)!==null&&l!==void 0?l:new c.experiments(this)),this.Ci.forEach(p=>{p.initialize&&d.push(()=>{p.initialize==null||p.initialize()})}),d.push(()=>{if(this.ji){var p=this.ji;this.ji=void 0,this.Sr(p)}}),this.qi(d,u)}qi(e,n){for(;e.length>0;){if(this.config.__preview_deferred_init_extensions&&performance.now()-n>=30&&e.length>0)return void setTimeout(()=>{this.qi(e,n)},0);var s=e.shift();if(s)try{s()}catch(i){Se.error("Error initializing extension:",i)}}var r=Math.round(performance.now()-n);this.register_for_session({$sdk_debug_extensions_init_method:this.config.__preview_deferred_init_extensions?"deferred":"synchronous",$sdk_debug_extensions_init_time_ms:r}),this.config.__preview_deferred_init_extensions&&Se.info("PostHog extensions initialized ("+r+"ms)")}Sr(e){var n;if(!we||!we.body)return Se.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout(()=>{this.Sr(e)},500);this.config.__preview_deferred_init_extensions&&(this.ji=e),this.compression=void 0,e.supportedCompression&&!this.config.disable_compression&&(this.compression=rt(e.supportedCompression,us.GZipJS)?us.GZipJS:rt(e.supportedCompression,us.Base64)?us.Base64:void 0),(n=e.analytics)!=null&&n.endpoint&&(this.analyticsDefaultEndpoint=e.analytics.endpoint),this.set_config({person_profiles:this.Ai?this.Ai:Gd}),this.Ci.forEach(s=>s.onRemoteConfig==null?void 0:s.onRemoteConfig(e))}Bi(){try{this.config.loaded(this)}catch(s){Se.critical("`loaded` function failed",s)}if(this.Zi(),this.config.internal_or_test_user_hostname&&fn!=null&&fn.hostname){var e=fn.hostname,n=this.config.internal_or_test_user_hostname;(typeof n=="string"?e===n:n.test(e))&&this.setInternalOrTestUser()}this.config.capture_pageview&&setTimeout(()=>{(this.consent.isOptedIn()||this.config.cookieless_mode===ls)&&this.$i()},1),this.Hi=new Om(this),this.Hi.load()}Zi(){var e;this.is_capturing()&&this.config.request_batching&&((e=this.Oi)==null||e.enable())}_dom_loaded(){this.is_capturing()&&tl(this.__request_queue,e=>this.Pi(e)),this.__request_queue=[],this.Zi()}_handle_unload(){var e,n,s;(e=this.surveys)==null||e.handlePageUnload(),this.config.request_batching?(this.Vi()&&this.capture(Tc),(n=this.Oi)==null||n.unload(),(s=this.Li)==null||s.unload()):this.Vi()&&this.capture(Tc,null,{transport:"sendBeacon"})}_send_request(e){this.__loaded&&(Nm?this.__request_queue.push(e):this.rateLimiter.isServerRateLimited(e.batchKey)||(e.transport=e.transport||this.config.api_transport,e.url=ru(e.url,{ip:this.config.ip?1:0}),e.headers=_e({},this.config.request_headers,e.headers),e.compression=e.compression==="best-available"?this.compression:e.compression,e.disableXHRCredentials=this.config.__preview_disable_xhr_credentials,this.config.__preview_disable_beacon&&(e.disableTransport=["sendBeacon"]),e.fetchOptions=e.fetchOptions||this.config.fetch_options,
31(n=>{var s,r,i,o=_e({},n);o.timeout=o.timeout||6e4,o.url=ru(o.url,{_:new Date().getTime().toString(),ver:qn.JS_SDK_VERSION,compression:o.compression});var a=(s=o.transport)!==null&&s!==void 0?s:"fetch",l=bl.filter(c=>!o.disableTransport||!c.transport||!o.disableTransport.includes(c.transport)),u=(r=(i=function(c,d){for(var p=0;c.length>p;p++)if(c[p].transport===a)return c[p]}(l))==null?void 0:i.method)!==null&&r!==void 0?r:l[0].method;if(!u)throw new Error("No available transport method");a!=="sendBeacon"&&o.data&&o.compression===us.GZipJS&&tw?_6(o).then(c=>{u(c)}).catch(()=>{u(o)}):u(o)})(_e({},e,{callback:n=>{var s,r;this.rateLimiter.checkForLimiting(n),400>n.statusCode||(s=(r=this.config).on_request_error)==null||s.call(r,n),e.callback==null||e.callback(n)}}))))}Pi(e){this.Li?this.Li.retriableRequest(e):this._send_request(e)}_execute_array(e){Fc++;try{var n,s=[],r=[],i=[];tl(e,a=>{a&&(mt(n=a[0])?i.push(a):Js(a)?a.call(this):mt(a)&&n==="alias"?s.push(a):mt(a)&&n.indexOf("capture")!==-1&&Js(this[n])?i.push(a):r.push(a))});var o=function(a,l){tl(a,function(u){if(mt(u[0])){var c=l;Ft(u,function(d){c=c[d[0]].apply(c,d.slice(1))})}else l[u[0]].apply(l,u.slice(1))})};o(s,this),o(r,this),o(i,this)}finally{Fc--}}push(e){if(Fc>0&&mt(e)&&Jt(e[0])){var n=ds.prototype[e[0]];Js(n)&&n.apply(this,e.slice(1))}else this._execute_array([e])}capture(e,n,s){var r,i,o,a,l;if(this.__loaded&&this.persistence&&this.sessionPersistence&&this.Oi){if(this.is_capturing())if(!Me(e)&&Jt(e)){var u=!this.config.opt_out_useragent_filter&&this._is_bot();if(!u||this.config.__preview_capture_bot_pageviews){var c=s!=null&&s.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(c==null||!c.isRateLimited){n!=null&&n.$current_url&&!Jt(n==null?void 0:n.$current_url)&&(Se.error("Invalid `$current_url` property provided to `posthog.capture`. Input must be a string. Ignoring provided value."),n==null||delete n.$current_url),e!=="$exception"||s!=null&&s.zi||Se.warn("Using `posthog.capture('$exception')` is unreliable because it does not attach required metadata. Use `posthog.captureException(error)` instead, which attaches required metadata automatically."),this.sessionPersistence.update_search_keyword(),this.config.save_campaign_params&&this.sessionPersistence.update_campaign_params(),this.config.save_referrer&&this.sessionPersistence.update_referrer_info(),(this.config.save_campaign_params||this.config.save_referrer)&&this.persistence.set_initial_person_info();var d=new Date,p=(s==null?void 0:s.timestamp)||d,g=Tr(),v={uuid:g,event:e,properties:this.calculateEventProperties(e,n||{},p,g)};e===Vi&&this.config.__preview_capture_bot_pageviews&&u&&(v.event="$bot_pageview",v.properties.$browser_type="bot"),c&&(v.properties.$lib_rate_limit_remaining_tokens=c.remainingTokens),s!=null&&s.$set&&(v.$set=s==null?void 0:s.$set);var b,k=this.Yi(s==null?void 0:s.$set_once,e!==rp,e===Mc);if(k&&(v.$set_once=k),s!=null&&s._noTruncate||(i=this.config.properties_string_max_length,o=v,a=h=>Jt(h)?h.slice(0,i):h,l=new Set,v=function h(S,$){return S!==Object(S)?a?a(S):S:l.has(S)?void 0:(l.add(S),mt(S)?(R=[],tl(S,G=>{R.push(h(G))})):(R={},Ft(S,(G,H)=>{l.has(G)||(R[H]=h(G))})),R);var R}(o)),v.timestamp=p,Me(s==null?void 0:s.timestamp)||(v.properties.$event_time_override_provided=!0,v.properties.$event_time_override_system_time=d),e===Ni.DISMISSED||e===Ni.SENT){var L=n==null?void 0:n[yl.SURVEY_ID],E=n==null?void 0:n[yl.SURVEY_ITERATION];b={id:L,current_iteration:E},localStorage.getItem(yp(b))||localStorage.setItem(yp(b),"true"),v.$set=_e({},v.$set,{[S6({id:L,current_iteration:E},e===Ni.SENT?"responded":"dismissed")]:!0})}else e===Ni.SHOWN&&(v.$set=_e({},v.$set,{[yl.SURVEY_LAST_SEEN_DATE]:new Date().toISOString()}));if(e===Mm.SHOWN){var _=n==null?void 0:n[Zd.TOUR_TYPE];_&&(v.$set=_e({},v.$set,{[Zd.TOUR_LAST_SEEN_DATE+"/"+_]:new Date().toISOString()}))}var m=_e({},v.properties.$set,v.$set);if(Di(m)||this.setPersonPropertiesForFlags(m),!it(this.config.before_send)){var x=this.Ui(v);if(!x)return;v=x}this.ki.emit("eventCaptured",v);var A={method:"POST",url:(r=s==null?void 0:s._url)!==null&&r!==void 0?r:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),data:v,compression:"best-available",batchKey:s==null?void 0:s._batchKey};return!this.config.request_batching||s&&(s==null||!s._batchKey)||s!=null&&s.send_instantly?this.Pi(A):this.Oi.enqueue(A),v}Se.critical("This capture call is ignored due to client rate limiting.")}}else Se.error("No event name provided to posthog.capture")}else Se.uninitializedWarning("posthog.capture")}_addCaptureHook(e){return this.on("eventCaptured",n=>e(n.event,n))}calculateEventProperties(e,n,s,r,i){if(s=s||new Date,!this.persistence||!this.sessionPersistence)return n;var o=i?void 0:this.persistence.remove_event_timer(e),a=_e({},n);if(a.token=this.config.token,a.$config_defaults=this.config.defaults,(this.config.cookieless_mode==ls||this.config.cookieless_mode==Ks&&this.consent.isExplicitlyOptedOut())&&(a.$cookieless_mode=!0),e==="$snapshot"){var l=_e({},this.persistence.properties(),this.sessionPersistence.properties());return a.distinct_id=l.distinct_id,(!Jt(a.distinct_id)&&!Hs(a.distinct_id)||vl(a.distinct_id))&&Se.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),a}var u,c=function(L,E){var _,m,x,A;if(!Nn)return{};var h,S,$,R,G,H,ee,j,le=L?[...po,...E||[]]:[],[X,re]=function(ne){for(var De=0;Zh.length>De;De++){var[ot,nt]=Zh[De],ye=ot.exec(ne),ut=ye&&(Js(nt)?nt(ye,ne):nt);if(ut)return ut}return["",""]}(Nn);return Zt(i1({$os:X,$os_version:re,$browser:dm(Nn,navigator.vendor),$device:Kh(Nn),$device_type:(S=Nn,$={userAgentDataPlatform:(_=navigator)==null||(_=_.userAgentData)==null?void 0:_.platform,maxTouchPoints:(m=navigator)==null?void 0:m.maxTouchPoints,screenWidth:K==null||(x=K.screen)==null?void 0:x.width,screenHeight:K==null||(A=K.screen)==null?void 0:A.height,devicePixelRatio:K==null?void 0:K.devicePixelRatio},j=Kh(S),j===Xv||j===Yv||j==="Kobo"||j==="Kindle Fire"||j===cm?co:j===va||j===to||j===ma||j===Rd?"Console":j===Qv?"Wearable":j?Yn:($==null?void 0:$.userAgentDataPlatform)==="Android"&&((R=$==null?void 0:$.maxTouchPoints)!==null&&R!==void 0?R:0)>0?600>Math.min((G=$==null?void 0:$.screenWidth)!==null&&G!==void 0?G:0,(H=$==null?void 0:$.screenHeight)!==null&&H!==void 0?H:0)/((ee=$==null?void 0:$.devicePixelRatio)!==null&&ee!==void 0?ee:1)?Yn:co:"Desktop"),$timezone:Tm(),$timezone_offset:t6()}),{$current_url:_a(fn==null?void 0:fn.href,le,ya),$host:fn==null?void 0:fn.host,$pathname:fn==null?void 0:fn.pathname,$raw_user_agent:Nn.length>1e3?Nn.substring(0,997)+"...":Nn,$browser_version:mw(Nn,navigator.vendor),$browser_language:up(),$browser_language_prefix:(h=up(),typeof h=="string"?h.split("-")[0]:void 0),$screen_height:K==null?void 0:K.screen.height,$screen_width:K==null?void 0:K.screen.width,$viewport_height:K==null?void 0:K.innerHeight,$viewport_width:K==null?void 0:K.innerWidth,$lib:qn.LIB_NAME,$lib_version:qn.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3})}(this.config.mask_personal_data_properties,this.config.custom_personal_data_properties);if(this.sessionManager){var{sessionId:d,windowId:p}=this.sessionManager.checkAndGetSessionAndWindowId(i,s.getTime());a.$session_id=d,a.$window_id=p}this.sessionPropsManager&&Zt(a,this.sessionPropsManager.getSessionProps());try{var g;this.sessionRecording&&Zt(a,this.sessionRecording.sdkDebugProperties),a.$sdk_debug_retry_queue_size=(g=this.Li)==null?void 0:g.length}catch(L){a.$sdk_debug_error_capturing_properties=String(L)}if(this.requestRouter.region===ef&&(a.$lib_custom_api_host=this.config.api_host),u=e!==Vi||i?e!==Tc||i?this.pageViewM
31anager.doEvent():this.pageViewManager.doPageLeave(s):this.pageViewManager.doPageView(s,r),a=Zt(a,u),e===Vi&&we&&(a.title=we.title),!Me(o)){var v=s.getTime()-o;a.$duration=parseFloat((v/1e3).toFixed(3))}Nn&&this.config.opt_out_useragent_filter&&(a.$browser_type=this._is_bot()?"bot":"browser"),(a=Zt({},c,this.persistence.properties(),this.sessionPersistence.properties(),a)).$is_identified=this._isIdentified(),mt(this.config.property_denylist)?Ft(this.config.property_denylist,function(L){delete a[L]}):Se.error(Bm+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var b=this.config.sanitize_properties;b&&(Se.error(wp),a=b(a,e));var k=this.Wi();return a.$process_person_profile=k,k&&!i&&this.Gi("_calculate_event_properties"),a}Yi(e,n,s){var r;if(n===void 0&&(n=!0),s===void 0&&(s=!1),!this.persistence||!this.Wi()||this.Si&&!s)return e;var i=this.persistence.get_initial_props(),o=(r=this.sessionPropsManager)==null?void 0:r.getSetOnceProps(),a=Zt({},i,o||{},e||{}),l=this.config.sanitize_properties;return l&&(Se.error(wp),a=l(a,"$set_once")),n&&(this.Si=!0),Di(a)?void 0:a}register(e,n){var s;(s=this.persistence)==null||s.register(e,n)}register_once(e,n,s){var r;(r=this.persistence)==null||r.register_once(e,n,s)}register_for_session(e){var n;(n=this.sessionPersistence)==null||n.register(e)}unregister(e){var n;(n=this.persistence)==null||n.unregister(e)}unregister_for_session(e){var n;(n=this.sessionPersistence)==null||n.unregister(e)}Xi(e,n){this.register({[e]:n})}getFeatureFlag(e,n){var s;return(s=this.featureFlags)==null?void 0:s.getFeatureFlag(e,n)}getFeatureFlagPayload(e){var n;return(n=this.featureFlags)==null?void 0:n.getFeatureFlagPayload(e)}getFeatureFlagResult(e,n){var s;return(s=this.featureFlags)==null?void 0:s.getFeatureFlagResult(e,n)}isFeatureEnabled(e,n){var s;return(s=this.featureFlags)==null?void 0:s.isFeatureEnabled(e,n)}reloadFeatureFlags(){var e;(e=this.featureFlags)==null||e.reloadFeatureFlags()}updateFlags(e,n,s){var r;(r=this.featureFlags)==null||r.updateFlags(e,n,s)}updateEarlyAccessFeatureEnrollment(e,n,s){var r;(r=this.featureFlags)==null||r.updateEarlyAccessFeatureEnrollment(e,n,s)}getEarlyAccessFeatures(e,n,s){var r;return n===void 0&&(n=!1),(r=this.featureFlags)==null?void 0:r.getEarlyAccessFeatures(e,n,s)}on(e,n){return this.ki.on(e,n)}onFeatureFlags(e){return this.featureFlags?this.featureFlags.onFeatureFlags(e):(e([],{},{errorsLoading:!0}),()=>{})}onSurveysLoaded(e){return this.surveys?this.surveys.onSurveysLoaded(e):(e([],{isLoaded:!1,error:Po}),()=>{})}onSessionId(e){var n,s;return(n=(s=this.sessionManager)==null?void 0:s.onSessionId(e))!==null&&n!==void 0?n:()=>{}}getSurveys(e,n){n===void 0&&(n=!1),this.surveys?this.surveys.getSurveys(e,n):e([],{isLoaded:!1,error:Po})}getActiveMatchingSurveys(e,n){n===void 0&&(n=!1),this.surveys?this.surveys.getActiveMatchingSurveys(e,n):e([],{isLoaded:!1,error:Po})}renderSurvey(e,n){var s;(s=this.surveys)==null||s.renderSurvey(e,n)}displaySurvey(e,n){var s;n===void 0&&(n=A6),(s=this.surveys)==null||s.displaySurvey(e,n)}cancelPendingSurvey(e){var n;(n=this.surveys)==null||n.cancelPendingSurvey(e)}canRenderSurvey(e){var n,s;return(n=(s=this.surveys)==null?void 0:s.canRenderSurvey(e))!==null&&n!==void 0?n:{visible:!1,disabledReason:Po}}canRenderSurveyAsync(e,n){var s,r;return n===void 0&&(n=!1),(s=(r=this.surveys)==null?void 0:r.canRenderSurveyAsync(e,n))!==null&&s!==void 0?s:Promise.resolve({visible:!1,disabledReason:Po})}Ji(e){return!e||vl(e)?(Se.critical("Unique user id has not been set in posthog.identify"),!1):e===el?(Se.critical('The string "'+e+'" was set in posthog.identify which indicates an error. This ID is only used as a sentinel value.'),!1):!["distinct_id","distinctid"].includes(e.toLowerCase())&&!["undefined","null"].includes(e.toLowerCase())||(Se.critical('The string "'+e+'" was set in posthog.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.'),!1)}identify(e,n,s){if(!this.__loaded||!this.persistence)return Se.uninitializedWarning("posthog.identify");if(Hs(e)&&(e=e.toString(),Se.warn("The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.")),this.Ji(e)&&this.Gi("posthog.identify")){var r=this.get_distinct_id();this.register({$user_id:e}),this.get_property(zl)||this.register_once({$had_persisted_distinct_id:!0,$device_id:r},""),e!==r&&e!==this.get_property(Uo)&&(this.unregister(Uo),this.register({distinct_id:e}));var i,o=(this.persistence.get_property(os)||wi)===wi;e!==r&&o?(this.persistence.set_property(os,xi),this.setPersonPropertiesForFlags(_e({},s||{},n||{}),!1),this.capture(Mc,{distinct_id:e,$anon_distinct_id:r},{$set:n||{},$set_once:s||{}}),this.Ei=mp(e,n,s),(i=this.featureFlags)==null||i.setAnonymousDistinctId(r)):(n||s)&&this.setPersonProperties(n,s),e!==r&&(this.reloadFeatureFlags(),this.unregister(ta))}}setPersonProperties(e,n){if((e||n)&&this.Gi("posthog.setPersonProperties")){var s=mp(this.get_distinct_id(),e,n);this.Ei!==s?(this.setPersonPropertiesForFlags(_e({},n||{},e||{})),this.capture("$set",{$set:e||{},$set_once:n||{}}),this.Ei=s):Se.info("A duplicate setPersonProperties call was made with the same properties. It has been ignored.")}}group(e,n,s){if(e&&n){var r=this.getGroups(),i=r[e]!==n;if(i&&this.resetGroupPropertiesForFlags(e),this.register({$groups:_e({},r,{[e]:n})}),i||s){var o={$group_type:e,$group_key:n};s&&(o.$group_set=s),this.capture(rp,o)}s&&this.setGroupPropertiesForFlags({[e]:s}),i&&!s&&this.reloadFeatureFlags()}else Se.error("posthog.group requires a group type and group key")}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(e,n){var s;n===void 0&&(n=!0),(s=this.featureFlags)==null||s.setPersonPropertiesForFlags(e,n)}resetPersonPropertiesForFlags(){var e;(e=this.featureFlags)==null||e.resetPersonPropertiesForFlags()}setGroupPropertiesForFlags(e,n){var s;n===void 0&&(n=!0),this.Gi("posthog.setGroupPropertiesForFlags")&&((s=this.featureFlags)==null||s.setGroupPropertiesForFlags(e,n))}resetGroupPropertiesForFlags(e){var n;(n=this.featureFlags)==null||n.resetGroupPropertiesForFlags(e)}reset(e){var n,s,r,i,o,a,l;if(Se.info("reset"),!this.__loaded)return Se.uninitializedWarning("posthog.reset");var u=this.get_property(zl);if(this.consent.reset(),(n=this.persistence)==null||n.clear(),(s=this.sessionPersistence)==null||s.clear(),(r=this.surveys)==null||r.reset(),(i=this.Hi)==null||i.stop(),(o=this.featureFlags)==null||o.reset(),(a=this.persistence)==null||a.set_property(os,wi),(l=this.sessionManager)==null||l.resetSessionId(),this.Ei=null,this.config.cookieless_mode===ls)this.register_once({distinct_id:el,$device_id:null},"");else{var c=this.config.get_device_id(Tr());this.register_once({distinct_id:c,$device_id:e?c:u},"")}this.register({$last_posthog_reset:new Date().toISOString()},1),this.reloadFeatureFlags()}get_distinct_id(){return this.get_property("distinct_id")}getGroups(){return this.get_property("$groups")||{}}get_session_id(){var e,n;return(e=(n=this.sessionManager)==null?void 0:n.checkAndGetSessionAndWindowId(!0).sessionId)!==null&&e!==void 0?e:""}get_session_replay_url(e){if(!this.sessionManager)return"";var{sessionId:n,sessionStartTimestamp:s}=this.sessionManager.checkAndGetSessionAndWindowId(!0),r=this.requestRouter.endpointFor("ui","/project/"+this.config.token+"/replay/"+n);if(e!=null&&e.withTimestamp&&s){var i,o=(i=e.timestampLookBack)!==null&&i!==void 0?i:10;if(!s)return r;r+="?t="+Math.max(Math.floor((new Date().getTime()-s)/1e3)-o,0)}return r}alias(e,n){return e===this.get_property(gm)?(Se.critical("Attempting to create alias for existing People user - aborting."),-2):this.Gi("posthog.alias")?(Me(n)&&(n=this.get_distinct_id()),e!==n?(this.Xi(Uo,e),this.capture("$create_alias",{alias:e,distinct_id:n})):(Se.warn("alias matches current distinct_id - skipping api call."),this.identify(e),-1)):void 0}set_config(e){var n=_e({},this.config);if(tn(e)){var s,r,i,o,a,l,u,c,d;Zt(this.config,Cp(e));var p=this.Fi();(s=this.persistence)==null||s.update_config(this.config,n,p),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new $c(_e({},this.config,{persistence:"sessionStorage"}),p);var g=this.Ri(this.config.debug);sr(g)&&(this.config.debug=g),sr(this.config.debug)&&(this.config.debug?(qn.DEBUG=!0,zt.Yt()&&zt.Xt("ph_debug",!0),Se.info("set_config",{config:e,oldConfig:n,newConfig:_e({},this.config)})):(qn.DEBUG=!1,zt.Yt()&&zt.Jt("ph_debug"))),(r=this.exceptionObserver)==null||r.onConfigChange(),(i=this.sessionRecording)==null||i.startIfEnabledOrStop(),(o=this.autocapture)==null||o.startIfEnabled(),(a=this.heatmaps)==null||a.startIfEnabled(),(l=this.exceptionObserver)==null||l.startIfEnabledOrStop(),(u=this.deadClicksAutocapture)==null||u.startIfEnabledOrStop(),(c=this.surveys)==null||c.loadIfEnabled(),this.Ki(),(d=this.externalIntegrations)==null||d.startIfEnabledOrStop()}}_overrideSDKInfo(e,n){qn.LIB_NAME=e,qn.LIB_VERSION=n}startSessionRecording(e){var n,s,r,i,o,a=e===!0,l={sampling:a||!(e==null||!e.sampling),linked_flag:a||!(e==null||!e.linked_flag),url_trigger:a||!(e==null||!e.url_trigger),event_trigger:a||!(e==null||!e.event_trigger)};Object.values(l).some(Boolean)&&((n=this.sessionManager)==null||n.checkAndGetSessionAndWindowId(),l.sampling&&((s=this.sessionRecording)==null||s.overrideSampling()),l.linked_flag&&((r=this.sessionRecording)==null||r.overrideLinkedFlag()),l.url_trigger&&((i=this.sessionRecording)==null||i.overrideTrigger("url")),l.event_trigger&&((o=this.sessionRecording)==null||o.overrideTrigger("event"))),this.set_config({disable_session_recording:!1})}stopSessionRecording(){this.set_config({disable_session_recording:!0})}sessionRecordingStarted(){var e;return!((e=this.sessionRecording)==null||!e.started)}captureException(e,n){if(this.exceptions){var s=new Error("PostHog syntheticException"),r=this.exceptions.buildProperties(e,{handled:!0,syntheticException:s});return this.exceptions.sendExceptionEvent(_e({},r,n))}}startExceptionAutocapture(e){this.set_config({capture_exceptions:e==null||e})}stopExceptionAutocapture(){this.set_config({capture_exceptions:!1})}loadToolbar(e){var n,s;return(n=(s=this.toolbar)==null?void 0:s.loadToolbar(e))!==null&&n!==void 0&&n}get_property(e){var n;return(n=this.persistence)==null?void 0:n.props[e]}getSessionProperty(e){var n;return(n=this.sessionPersistence)==null?void 0:n.props[e]}toString(){var e,n=(e=this.config.name)!==null&&e!==void 0?e:Hi;return n!==Hi&&(n=Hi+"."+n),n}_isIdentified(){var e,n;return((e=this.persistence)==null?void 0:e.get_property(os))===xi||((n=this.sessionPersistence)==null?void 0:n.get_property(os))===xi}Wi(){var e,n;return!(this.config.person_profiles==="never"||this.config.person_profiles===Gd&&!this._isIdentified()&&Di(this.getGroups())&&((e=this.persistence)==null||(e=e.props)==null||!e[Uo])&&((n=this.persistence)==null||(n=n.props)==null||!n[Zl]))}Vi(){return this.config.capture_pageleave===!0||this.config.capture_pageleave==="if_capture_pageview"&&(this.config.capture_pageview===!0||this.config.capture_pageview==="history_change")}createPersonProfile(){this.Wi()||this.Gi("posthog.createPersonProfile")&&this.setPersonProperties({},{})}setInternalOrTestUser(){this.Gi("posthog.setInternalOrTestUser")&&this.setPersonProperties({$internal_or_test_user:!0})}Gi(e){return this.config.person_profiles==="never"?(Se.error(e+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this.Xi(Zl,!0),!0)}Fi(){if(this.config.cookieless_mode==="always")return!0;var e=this.consent.isOptedOut();return this.config.disable_persistence||e&&!(!this.config.opt_out_persistence_by_default&&this.config.cookieless_mode!==Ks)}Ki(){var e,n,s,r,i=this.Fi();return((e=this.persistence)==null?void 0:e.gr)!==i&&((s=this.persistence)==null||s.set_disabled(i)),((n=this.sessionPersistence)==null?void 0:n.gr)!==i&&((r=this.sessionPersistence)==null||r.set_disabled(i)),i}opt_in_capturing(e){var n;if(this.config.cookieless_mode!==ls){if(this.config.cookieless_mode===Ks&&this.consent.isExplicitlyOptedOut()){var s,r,i,o,a;this.reset(!0),(s=this.sessionManager)==null||s.destroy(),(r=this.pageViewM
31anager)==null||r.destroy(),this.sessionManager=new vp(this),this.pageViewManager=new lp(this),this.persistence&&(this.sessionPropsManager=new gp(this,this.sessionManager,this.persistence));var l=(i=(o=this.config.__extensionClasses)==null?void 0:o.sessionRecording)!==null&&i!==void 0?i:(a=ds.__defaultExtensionClasses)==null?void 0:a.sessionRecording;l&&(this.sessionRecording=this.Ii(this.sessionRecording,new l(this)))}var u,c;this.consent.optInOut(!0),this.Ki(),this.Zi(),(n=this.sessionRecording)==null||n.startIfEnabledOrStop(),this.config.cookieless_mode==Ks&&((u=this.surveys)==null||u.loadIfEnabled()),(Me(e==null?void 0:e.captureEventName)||e!=null&&e.captureEventName)&&this.capture((c=e==null?void 0:e.captureEventName)!==null&&c!==void 0?c:"$opt_in",e==null?void 0:e.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.$i()}else Se.warn(bp)}opt_out_capturing(){var e,n,s;this.config.cookieless_mode!==ls?(this.config.cookieless_mode===Ks&&this.consent.isOptedIn()&&this.reset(!0),this.consent.optInOut(!1),this.Ki(),this.config.cookieless_mode===Ks&&(this.register({distinct_id:el,$device_id:null}),(e=this.sessionManager)==null||e.destroy(),(n=this.pageViewManager)==null||n.destroy(),this.sessionManager=void 0,this.sessionPropsManager=void 0,(s=this.sessionRecording)==null||s.stopRecording(),this.sessionRecording=void 0,this.$i())):Se.warn(bp)}has_opted_in_capturing(){return this.consent.isOptedIn()}has_opted_out_capturing(){return this.consent.isOptedOut()}get_explicit_consent_status(){var e=this.consent.consent;return e===1?"granted":e===0?"denied":"pending"}is_capturing(){return this.config.cookieless_mode===ls||(this.config.cookieless_mode===Ks?this.consent.isExplicitlyOptedOut()||this.consent.isOptedIn():!this.has_opted_out_capturing())}clear_opt_in_out_capturing(){this.consent.reset(),this.Ki()}_is_bot(){return Gn?Hm(Gn,this.config.custom_blocked_useragents):void 0}$i(){we&&(we.visibilityState==="visible"?this.xi||(this.xi=!0,this.capture(Vi,{title:we.title},{send_instantly:!0}),this.Ti&&(we.removeEventListener(Kl,this.Ti),this.Ti=null)):this.Ti||(this.Ti=this.$i.bind(this),Xt(we,Kl,this.Ti)))}debug(e){e===!1?(K==null||K.console.log("You've disabled debug mode."),this.set_config({debug:!1})):(K==null||K.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),this.set_config({debug:!0}))}Tr(){var e,n,s,r,i,o,a=this.Ni||{};return"advanced_disable_flags"in a?!!a.advanced_disable_flags:this.config.advanced_disable_flags!==!1?!!this.config.advanced_disable_flags:this.config.advanced_disable_decide===!0?(Se.warn("Config field 'advanced_disable_decide' is deprecated. Please use 'advanced_disable_flags' instead. The old field will be removed in a future major version."),!0):(s="advanced_disable_decide",r=Se,i=(n="advanced_disable_flags")in(e=a)&&!it(e[n]),o=s in e&&!it(e[s]),i?e[n]:!!o&&(r&&r.warn("Config field '"+s+"' is deprecated. Please use '"+n+"' instead. The old field will be removed in a future major version."),e[s]))}Ui(e){if(it(this.config.before_send))return e;var n=mt(this.config.before_send)?this.config.before_send:[this.config.before_send],s=e;for(var r of n){if(s=r(s),it(s)){var i="Event '"+e.event+"' was rejected in beforeSend function";return iw(e.event)?Se.warn(i+". This can cause unexpected behavior."):Se.info(i),null}s.properties&&!Di(s.properties)||Se.warn("Event '"+e.event+"' has no properties after beforeSend function, this is likely an error.")}return s}getPageViewId(){var e;return(e=this.pageViewManager.lr)==null?void 0:e.pageViewId}captureTraceFeedback(e,n){this.capture("$ai_feedback",{$ai_trace_id:String(e),$ai_feedback_text:n})}captureTraceMetric(e,n,s){this.capture("$ai_metric",{$ai_trace_id:String(e),$ai_metric_name:n,$ai_metric_value:String(s)})}Ri(e){var n=sr(e)&&!e,s=zt.Yt()&&zt.Wt("ph_debug")==="true";return!n&&(!!s||e)}}function kp(t){return t instanceof Element&&(t.id===_m||!(t.closest==null||!t.closest(".toolbar-global-fade-container")))}function Uu(t){return!!t&&t.nodeType===1}function Or(t,e){return!!t&&!!t.tagName&&t.tagName.toLowerCase()===e.toLowerCase()}function jm(t){return!!t&&t.nodeType===3}function Um(t){return!!t&&t.nodeType===11}function u1(t){return t?Nu(t).split(/\s+/):[]}function Sp(t){var e=K==null?void 0:K.location.href;return!!(e&&t&&t.some(n=>e.match(n)))}function ou(t){var e="";switch(typeof t.className){case"string":e=t.className;break;case"object":e=(t.className&&"baseVal"in t.className?t.className.baseVal:null)||t.getAttribute("class")||"";break;default:e=""}return u1(e)}function zm(t){return it(t)?null:Nu(t).split(/(\s+)/).filter(e=>ra(e)).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function ba(t){var e="";return rf(t)&&!Wm(t)&&t.childNodes&&t.childNodes.length&&Ft(t.childNodes,function(n){var s;jm(n)&&n.textContent&&(e+=(s=zm(n.textContent))!==null&&s!==void 0?s:"")}),Nu(e)}function Ep(t){return Me(t.target)?t.srcElement||null:(e=t.target)!=null&&e.shadowRoot?t.composedPath()[0]||null:t.target||null;var e}ds.__defaultExtensionClasses={},function(t,e){for(var n=0;e.length>n;n++)t.prototype[e[n]]=Bw(t.prototype[e[n]])}(ds,["identify"]);var c1=["a","button","form","input","select","textarea","label"];function Ap(t,e){if(Me(e))return!0;var n,s=function(i){if(e.some(o=>i.matches(o)))return{v:!0}};for(var r of t)if(n=s(r))return n.v;return!1}function qm(t){var e=t.parentNode;return!(!e||!Uu(e))&&e}var $6=["next","previous","prev",">","<"],Lp=[".ph-no-rageclick",".ph-no-capture"],sf=t=>!t||Or(t,"html")||!Uu(t),Tp=(t,e)=>{if(!K||sf(t))return{parentIsUsefulElement:!1,targetElementList:[]};for(var n=!1,s=[t],r=t;r.parentNode&&!Or(r,"body");)if(Um(r.parentNode))s.push(r.parentNode.host),r=r.parentNode.host;else{var i=qm(r);if(!i)break;if(e||c1.indexOf(i.tagName.toLowerCase())>-1)n=!0;else{var o=K.getComputedStyle(i);o&&o.getPropertyValue("cursor")==="pointer"&&(n=!0)}s.push(i),r=i}return{parentIsUsefulElement:n,targetElementList:s}};function rf(t){for(var e=t;e.parentNode&&!Or(e,"body");e=e.parentNode){var n=ou(e);if(rt(n,"ph-sensitive")||rt(n,"ph-no-capture"))return!1}if(rt(ou(t),"ph-include"))return!0;var s=t.type||"";if(Jt(s))switch(s.toLowerCase()){case"hidden":case"password":return!1}var r=t.name||t.id||"";return!Jt(r)||!/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(r.replace(/[^a-zA-Z0-9]/g,""))}function Wm(t){return!!(Or(t,"input")&&!["button","checkbox","submit","reset"].includes(t.type)||Or(t,"select")||Or(t,"textarea")||t.getAttribute("contenteditable")==="true")}var Gm="(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11}
31)|((?:2131|1800|35[0-9]{3})[0-9]{11})",R6=new RegExp("^(?:"+Gm+")$"),V6=new RegExp(Gm),Zm="\\d{3}-?\\d{2}-?\\d{4}",I6=new RegExp("^("+Zm+")$"),H6=new RegExp("("+Zm+")");function ra(t,e){return e===void 0&&(e=!0),!(it(t)||Jt(t)&&(t=Nu(t),(e?R6:V6).test((t||"").replace(/[- ]/g,""))||(e?I6:H6).test(t)))}function Mp(t){var e=ba(t);return ra(e=(e+" "+Km(t)).trim())?e:""}function Km(t){var e="";return t&&t.childNodes&&t.childNodes.length&&Ft(t.childNodes,function(n){var s;if(n&&((s=n.tagName)==null?void 0:s.toLowerCase())==="span")try{var r=ba(n);e=(e+" "+r).trim(),n.childNodes&&n.childNodes.length&&(e=(e+" "+Km(n)).trim())}catch(i){Se.error("[AutoCapture]",i)}}),e}function Op(t){return t.replace(/"|\\"/g,'\\"')}function F6(t){var e=t.attr__class;return e?mt(e)?e:u1(e):void 0}class Pp{constructor(e){this.disabled=e===!1;var n=tn(e)?e:{};this.thresholdPx=n.threshold_px||30,this.timeoutMs=n.timeout_ms||1e3,this.clickCount=n.click_count||3,this.clicks=[]}isRageClick(e,n,s){if(this.disabled)return!1;var r=this.clicks[this.clicks.length-1];if(r&&Math.abs(e-r.x)+Math.abs(n-r.y)<this.thresholdPx&&this.timeoutMs>s-r.timestamp){if(this.clicks.push({x:e,y:n,timestamp:s}),this.clicks.length===this.clickCount)return!0}else this.clicks=[{x:e,y:n,timestamp:s}];return!1}}var Dc="$copy_autocapture",$p=qt("[AutoCapture]");function Bc(t,e){return e.length>t?e.slice(0,t)+"...":e}function D6(t){if(t.previousElementSibling)return t.previousElementSibling;var e=t;do e=e.previousSibling;while(e&&!Uu(e));return e}function B6(t,e){for(var n,s,{e:r,maskAllElementAttributes:i,maskAllText:o,elementAttributeIgnoreList:a,elementsC
31hainAsString:l}=e,u=[t],c=t;c.parentNode&&!Or(c,"body");)Um(c.parentNode)?(u.push(c.parentNode.host),c=c.parentNode.host):(u.push(c.parentNode),c=c.parentNode);var d,p,g=[],v={},b=!1,k=!1;if(Ft(u,x=>{var A=rf(x);x.tagName.toLowerCase()==="a"&&(b=x.getAttribute("href"),b=A&&b&&ra(b)&&b),rt(ou(x),"ph-no-capture")&&(k=!0),g.push(function(S,$,R,G){var H=S.tagName.toLowerCase(),ee={tag_name:H};c1.indexOf(H)>-1&&!R&&(ee.$el_text=H.toLowerCase()==="a"||H.toLowerCase()==="button"?Bc(1024,Mp(S)):Bc(1024,ba(S)));var j=ou(S);j.length>0&&(ee.classes=j.filter(function(ne){return ne!==""})),Ft(S.attributes,function(ne){var De;if((!Wm(S)||["name","id","class","aria-label"].indexOf(ne.name)!==-1)&&(G==null||!G.includes(ne.name))&&!$&&ra(ne.value)&&(!Jt(De=ne.name)||De.substring(0,10)!=="_ngcontent"&&De.substring(0,7)!=="_nghost")){var ot=ne.value;ne.name==="class"&&(ot=u1(ot).join(" ")),ee["attr__"+ne.name]=Bc(1024,ot)}});for(var le=1,X=1,re=S;re=D6(re);)le++,re.tagName===S.tagName&&X++;return ee.nth_child=le,ee.nth_of_type=X,ee}(x,i,o,a));var h=function(S){if(!rf(S))return{};var $={};return Ft(S.attributes,function(R){if(R.name&&R.name.indexOf("data-ph-capture-attribute")===0){var G=R.name.replace("data-ph-capture-attribute-",""),H=R.value;G&&H&&ra(H)&&($[G]=H)}}),$}(x);Zt(v,h)}),k)return{props:{},explicitNoCapture:k};if(o||(g[0].$el_text=t.tagName.toLowerCase()==="a"||t.tagName.toLowerCase()==="button"?Mp(t):ba(t)),b){var L,E;g[0].attr__href=b;var _=(L=Jl(b))==null?void 0:L.host,m=K==null||(E=K.location)==null?void 0:E.host;_&&m&&_!==m&&(d=b)}return{props:Zt({$event_type:r.type,$ce_version:1},l?{}:{$elements:g},{$elements_chain:(p=g,function(x){return x.map(A=>{var h,S,$="";if(A.tag_name&&($+=A.tag_name),A.attr_class)for(var R of(A.attr_class.sort(),A.attr_class))$+="."+R.replace(/"/g,"");var G=_e({},A.text?{text:A.text}:{},{"nth-child":(h=A.nth_child)!==null&&h!==void 0?h:0,"nth-of-type":(S=A.nth_of_type)!==null&&S!==void 0?S:0},A.href?{href:A.href}:{},A.attr_id?{attr_id:A.attr_id}:{},A.attributes),H={};return ml(G).sort((ee,j)=>{var[le]=ee,[X]=j;return le.localeCompare(X)}).forEach(ee=>{var[j,le]=ee;return H[Op(j.toString())]=Op(le.toString())}),($+=":")+ml(H).map(ee=>{var[j,le]=ee;return j+'="'+le+'"'}).join("")}).join(";")}(function(x){return x.map(A=>{var h,S,$={text:(h=A.$el_text)==null?void 0:h.slice(0,400),tag_name:A.tag_name,href:(S=A.attr__href)==null?void 0:S.slice(0,2048),attr_class:F6(A),attr_id:A.attr__id,nth_child:A.nth_child,nth_of_type:A.nth_of_type,attributes:{}};return ml(A).filter(R=>{var[G]=R;return G.indexOf("attr__")===0}).forEach(R=>{var[G,H]=R;return $.attributes[G]=H}),$})}(p)))},(n=g[0])!=null&&n.$el_text?{$el_text:(s=g[0])==null?void 0:s.$el_text}:{},d&&r.type==="click"?{$external_click_url:d}:{},v)}}var $o=qt("[ExceptionAutocapture]");function Rp(t,e,n){try{if(!(e in t))return()=>{};var s=t[e],r=n(s);return Js(r)&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__posthog_wrapped__:{enumerable:!1,value:!0}})),t[e]=r,()=>{t[e]=s}}catch{return()=>{}}}var N6=qt("[TracingHeaders]"),yr=qt("[Web Vitals]"),Vp=9e5,Ip="disabled",Hp="lazy_loading",Ro="awaiting_config",ol="missing_config";qt("[SessionRecording]");var of="[SessionRecording]",br=qt(of),j6=qt("[Heatmaps]");function Fp(t){return tn(t)&&"clientX"in t&&"clientY"in t&&Hs(t.clientX)&&Hs(t.clientY)}var Dp=qt("[Product Tours]"),Nc="ph_product_tours",U6=["$set_once","$set"],wr=qt("[SiteApps]"),Bp="Error while initializing PostHog app with config id ";function ki(t,e,n){if(it(t))return!1;switch(n){case"exact":return t===e;case"contains":var s=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*");return new RegExp(s,"i").test(t);case"regex":try{return new RegExp(e).test(t)}catch{return!1}default:return!1}}class z6{constructor(e){this.Qi=new l1,this.tn=(n,s)=>this.en(n,s)&&this.rn(n,s)&&this.nn(n,s)&&this.sn(n,s),this.en=(n,s)=>s==null||!s.event||(n==null?void 0:n.event)===(s==null?void 0:s.event),this._instance=e,this.an=new Set,this.ln=new Set}init(){var e,n;Me((e=this._instance)==null?void 0:e._addCaptureHook)||(n=this._instance)==null||n._addCaptureHook((s,r)=>{this.on(s,r)})}register(e){var n,s;if(!Me((n=this._instance)==null?void 0:n._addCaptureHook)&&(e.forEach(o=>{var a,l;(a=this.ln)==null||a.add(o),(l=o.steps)==null||l.forEach(u=>{var c;(c=this.an)==null||c.add((u==null?void 0:u.event)||"")})}),(s=this._instance)!=null&&s.autocapture)){var r,i=new Set;e.forEach(o=>{var a;(a=o.steps)==null||a.forEach(l=>{l!=null&&l.selector&&i.add(l==null?void 0:l.selector)})}),(r=this._instance)==null||r.autocapture.setElementSelectors(i)}}on(e,n){var s;n!=null&&e.length!=0&&(this.an.has(e)||this.an.has(n==null?void 0:n.event))&&this.ln&&((s=this.ln)==null?void 0:s.size)>
vendor: 5,240 bytes, line 31
310&&this.ln.forEach(r=>{this.un(n,r)&&this.Qi.emit("actionCaptured",r.name)})}hn(e){this.onAction("actionCaptured",n=>e(n))}un(e,n){if((n==null?void 0:n.steps)==null)return!1;for(var s of n.steps)if(this.tn(e,s))return!0;return!1}onAction(e,n){return this.Qi.on(e,n)}rn(e,n){if(n!=null&&n.url){var s,r=e==null||(s=e.properties)==null?void 0:s.$current_url;if(!r||typeof r!="string"||!ki(r,n.url,n.url_matching||"contains"))return!1}return!0}nn(e,n){return!!this.cn(e,n)&&!!this.dn(e,n)&&!!this.vn(e,n)}cn(e,n){var s;if(n==null||!n.href)return!0;var r=this.fn(e);if(r.length>0)return r.some(a=>ki(a.href,n.href,n.href_matching||"exact"));var i,o=(e==null||(s=e.properties)==null?void 0:s.$elements_chain)||"";return!!o&&ki((i=o.match(/(?::|")href="(.*?)"/))?i[1]:"",n.href,n.href_matching||"exact")}dn(e,n){var s;if(n==null||!n.text)return!0;var r=this.fn(e);if(r.length>0)return r.some(u=>ki(u.text,n.text,n.text_matching||"exact")||ki(u.$el_text,n.text,n.text_matching||"exact"));var i,o,a,l=(e==null||(s=e.properties)==null?void 0:s.$elements_chain)||"";return!!l&&(i=function(u){for(var c,d=[],p=/(?::|")text="(.*?)"/g;!it(c=p.exec(u));)d.includes(c[1])||d.push(c[1]);return d}(l),o=n.text,a=n.text_matching||"exact",i.some(u=>ki(u,o,a)))}vn(e,n){var s,r;if(n==null||!n.selector)return!0;var i=e==null||(s=e.properties)==null?void 0:s.$element_selectors;if(i!=null&&i.includes(n.selector))return!0;var o=(e==null||(r=e.properties)==null?void 0:r.$elements_chain)||"";if(n.selector_regex&&o)try{return new RegExp(n.selector_regex).test(o)}catch{return!1}return!1}fn(e){var n;return(e==null||(n=e.properties)==null?void 0:n.$elements)==null?[]:e==null?void 0:e.properties.$elements}sn(e,n){return n==null||!n.properties||n.properties.length===0||Dm(n.properties.reduce((s,r)=>{var i=mt(r.value)?r.value.map(String):r.value!=null?[String(r.value)]:[];return s[r.key]={values:i,operator:r.operator||"exact"},s},{}),e==null?void 0:e.properties)}}class q6{constructor(e){this._instance=e,this.pn=new Map,this.gn=new Map,this.mn=new Map}yn(e,n){return!!e&&Dm(e.propertyFilters,n==null?void 0:n.properties)}bn(e,n){var s=new Map;return e.forEach(r=>{var i;(i=r.conditions)==null||(i=i[n])==null||(i=i.values)==null||i.forEach(o=>{if(o!=null&&o.name){var a=s.get(o.name)||[];a.push(r.id),s.set(o.name,a)}})}),s}wn(e,n,s){var r=(s===Ii.Activation?this.pn:this.gn).get(e),i=[];return this._n(o=>{i=o.filter(a=>r==null?void 0:r.includes(a.id))}),i.filter(o=>{var a,l=(a=o.conditions)==null||(a=a[s])==null||(a=a.values)==null?void 0:a.find(u=>u.name===e);return this.yn(l,n)})}register(e){var n;Me((n=this._instance)==null?void 0:n._addCaptureHook)||(this.In(e),this.Cn(e))}Cn(e){var n=e.filter(s=>{var r,i;return((r=s.conditions)==null?void 0:r.actions)&&((i=s.conditions)==null||(i=i.actions)==null||(i=i.values)==null?void 0:i.length)>0});n.length!==0&&(this.Sn==null&&(this.Sn=new z6(this._instance),this.Sn.init(),this.Sn.hn(s=>{this.onAction(s)})),n.forEach(s=>{var r,i,o,a,l;s.conditions&&(r=s.conditions)!=null&&r.actions&&(i=s.conditions)!=null&&(i=i.actions)!=null&&i.values&&((o=s.conditions)==null||(o=o.actions)==null||(o=o.values)==null?void 0:o.length)>0&&((a=this.Sn)==null||a.register(s.conditions.actions.values),(l=s.conditions)==null||(l=l.actions)==null||(l=l.values)==null||l.forEach(u=>{if(u&&u.name){var c=this.mn.get(u.name);c&&c.push(s.id),this.mn.set(u.name,c||[s.id])}}))}))}In(e){var n,s=e.filter(i=>{var o,a;return((o=i.conditions)==null?void 0:o.events)&&((a=i.conditions)==null||(a=a.events)==null||(a=a.values)==null?void 0:a.length)>0}),r=e.filter(i=>{var o,a;return((o=i.conditions)==null?void 0:o.cancelEvents)&&((a=i.conditions)==null||(a=a.cancelEvents)==null||(a=a.values)==null?void 0:a.length)>0});s.length===0&&r.length===0||((n=this._instance)==null||n._addCaptureHook((i,o)=>{this.onEvent(i,o)}),this.pn=this.bn(e,Ii.Activation),this.gn=this.bn(e,Ii.Cancellation))}onEvent(e,n){var s,r=this.re(),i=this.kn(),o=this.xn(),a=((s=this._instance)==null||(s=s.persistence)==null?void 0:s.props[i])||[];if(o===e&&n&&a.length>0){var l,u;r.info("event matched, removing item from activated items",{event:e,eventPayload:n,existingActivatedItems:a});var c=(n==null||(l=n.properties)==null?void 0:l.$survey_id)||(n==null||(u=n.properties)==null?void 0:u.$product_tour_id);if(c){var d=a.indexOf(c);0>d||(a.splice(d,1),this.Tn(a))}}else{if(this.gn.has(e)){var p=this.wn(e,n,Ii.Cancellation);p.length>0&&(r.info("cancel event matched, cancelling items",{event:e,itemsToCancel:p.map(v=>v.id)}),p.forEach(v=>{var b=a.indexOf(v.id);0>b||a.splice(b,1),this.An(v.id)}),this.Tn(a))}if(this.pn.has(e)){r.info("event name matched",{event:e,eventPayload:n,items:this.pn.get(e)});var g=this.wn(e,n,Ii.Activation);this.Tn(a.concat(g.map(v=>v.id)||[]))}}}onAction(e){var n,s=this.kn(),r=((n=this._instance)==null||(n=n.persistence)==null?void 0:n.props[s])||[];this.mn.has(e)&&this.Tn(r.concat(this.mn.get(e)||[]))}Tn(e){var n,s=this.re(),r=this.kn(),i=[...new Set(e)].filter(o=>!this.En(o));s.info("updating activated items",{activatedItems:i}),(n=this._instance)==null||(n=n.persistence)==null||n.register({[r]:i})}getActivatedIds(){var e,n=this.kn();return((e=this._instance)==null||(e=e.persistence)==null?void 0:e.props[n])||[]}
31getEventToItemsMap(){return this.pn}Rn(){return this.Sn}}class W6 extends q6{constructor(e){super(e)}kn(){return"$surveys_activated"}xn(){return Ni.SHOWN}_n(e){var n;(n=this._instance)==null||n.getSurveys(e)}An(e){var n;(n=this._instance)==null||n.cancelPendingSurvey(e)}re(){return Pt}En(){return!1}getSurveys(){return this.getActivatedIds()}getEventToSurveys(){return this.getEventToItemsMap()}}var jc="SDK is not enabled or survey functionality is not yet loaded",Np="Disabled. Not loading surveys.",G6=K!=null&&K.location?eu(K.location.hash,"__posthog")||eu(location.hash,"state"):null,jp="_postHogToolbarParams",Up=qt("[Toolbar]"),Ln=qt("[FeatureFlags]"),zr=qt("[FeatureFlags]",{debugEnabled:!0}),Uc=`" failed. Feature flags didn't load in time.`,zc="$active_feature_flags",xr="$override_feature_flags",zp="$feature_flag_payloads",Vo="$override_feature_flag_payloads",qp="$feature_flag_request_id",Wp=t=>{for(var e={},n=0;t.length>n;n++)e[t[n]]=!0;return e},Gp=t=>{var e={};for(var[n,s]of ml(t||{}))s&&(e[n]=s);return e},qc=qt("[Error tracking]"),Zp="Refusing to render web experiment since the viewer is a likely bot",Z6={icontains:(t,e)=>!!K&&e.href.toLowerCase().indexOf(t.toLowerCase())>-1,not_icontains:(t,e)=>!!K&&e.href.toLowerCase().indexOf(t.toLowerCase())===-1,regex:(t,e)=>!!K&&iu(e.href,t),not_regex:(t,e)=>!!K&&!iu(e.href,t),exact:(t,e)=>e.href===t,is_not:(t,e)=>e.href!==t};class wn{get Rt(){return this._instance.config}constructor(e){var n=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(s){s===void 0&&(s=!1),n.getWebExperiments(r=>{wn.Nn("retrieved web experiments from the server"),n.Mn=new Map,r.forEach(i=>{if(i.feature_flag_key){var o;n.Mn&&(wn.Nn("setting flag key ",i.feature_flag_key," to web experiment ",i),(o=n.Mn)==null||o.set(i.feature_flag_key,i));var a=n._instance.getFeatureFlag(i.feature_flag_key);Jt(a)&&i.variants[a]&&n.Fn(i.name,a,i.variants[a].transforms)}else if(i.variants)for(var l in i.variants){var u=i.variants[l];wn.On(u)&&n.Fn(i.name,l,u.transforms)}})},s)},this._instance=e,this._instance.onFeatureFlags(s=>{this.onFeatureFlags(s)})}initialize(){}onFeatureFlags(e){if(this._is_bot())wn.Nn(Zp);else if(!this.Rt.disable_web_experiments){if(it(this.Mn))return this.Mn=new Map,this.loadIfEnabled(),void this.previewWebExperiment();wn.Nn("applying feature flags",e),e.forEach(n=>{var s;if(this.Mn&&(s=this.Mn)!=null&&s.has(n)){var r,i=this._instance.getFeatureFlag(n),o=(r=this.Mn)==null?void 0:r.get(n);i&&o!=null&&o.variants[i]&&this.Fn(o.name,i,o.variants[i].transforms)}})}}previewWebExperiment(){var e=wn.getWindowLocation();if(e!=null&&e.search){var n=Ql(e==null?void 0:e.search,"__experiment_id"),s=Ql(e==null?void 0:e.search,"__experiment_variant");n&&s&&(wn.Nn("previewing web experiments "+n+" && "+s),this.getWebExperiments(r=>{this.Pn(parseInt(n),s,r)},!1,!0))}}loadIfEnabled(){this.Rt.disable_web_experiments||this.getWebExperimentsAndEvaluateDisplayLogic()}getWebExperiments(e,n,s){if(this.Rt.disable_web_experiments&&!s)return e([]);var r=this._instance.get_property("$web_experiments");if(r&&!n)return e(r);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/web_experiments/?token="+this.Rt.token),method:"GET",callback:i=>e(i.statusCode===200&&i.json&&i.json.experiments||[])})}Pn(e,n,s){var r=s.filter(i=>i.id===e);r&&r.length>0&&(wn.Nn("Previewing web experiment ["+r[0].name+"] with variant ["+n+"]"),this.Fn(r[0].name,n,r[0].variants[n].transforms))}static On(e){return!it(e.conditions)&&wn.Ln(e)&&wn.Dn(e)}static Ln(e){var n;if(it(e.conditions)||it((n=e.conditions)==null?void 0:n.url))return!0;var s,r,i,o=wn.getWindowLocation();return!!o&&((s=e.conditions)==null||!s.url||Z6[(r=(i=e.conditions)==null?void 0:i.urlMatchType)!==null&&r!==void 0?r:"icontains"](e.conditions.url,o))}
31static getWindowLocation(){return K==null?void 0:K.location}static Dn(e){var n;if(it(e.conditions)||it((n=e.conditions)==null?void 0:n.utm))return!0;var s=Cm();if(s.utm_source){var r,i,o,a,l,u,c,d,p=(r=e.conditions)==null||(r=r.utm)==null||!r.utm_campaign||((i=e.conditions)==null||(i=i.utm)==null?void 0:i.utm_campaign)==s.utm_campaign,g=(o=e.conditions)==null||(o=o.utm)==null||!o.utm_source||((a=e.conditions)==null||(a=a.utm)==null?void 0:a.utm_source)==s.utm_source,v=(l=e.conditions)==null||(l=l.utm)==null||!l.utm_medium||((u=e.conditions)==null||(u=u.utm)==null?void 0:u.utm_medium)==s.utm_medium,b=(c=e.conditions)==null||(c=c.utm)==null||!c.utm_term||((d=e.conditions)==null||(d=d.utm)==null?void 0:d.utm_term)==s.utm_term;return p&&v&&b&&g}return!1}static Nn(e){for(var n=arguments.length,s=new Array(n>1?n-1:0),r=1;n>r;r++)s[r-1]=arguments[r];Se.info("[WebExperiments] "+e,s)}Fn(e,n,s){this._is_bot()?wn.Nn(Zp):n!=="control"?s.forEach(r=>{if(r.selector){var i;wn.Nn("applying transform of variant "+n+" for experiment "+e+" ",r);var o=(i=document)==null?void 0:i.querySelectorAll(r.selector);o==null||o.forEach(a=>{var l=a;r.html&&(l.innerHTML=r.html),r.css&&l.setAttribute("style",r.css)})}}):wn.Nn("Control variants leave the page unmodified.")}_is_bot(){return Gn&&this._instance?Hm(Gn,this.Rt.custom_blocked_useragents):void 0}}var es=qt("[Conversations]"),qr="Conversations not available yet.",zu={featureFlags:class{constructor(t){this.Bn=!1,this.jn=!1,this.qn=!1,this.Zn=!1,this.$n=!1,this.Hn=!1,this.Vn=!1,this.zn=!1,this._instance=t,this.featureFlagEventHandlers=[]}get Rt(){return this._instance.config}get Kr(){return this._instance.persistence}Yn(t){return this._instance.get_property(t)}Un(){var t,e;return(t=(e=this.Kr)==null?void 0:e.mr(this.Rt.feature_flag_cache_ttl_ms))!==null&&t!==void 0&&t}Wn(){return!!this.Un()&&(this.zn||this.qn||(this.zn=!0,Ln.warn("Feature flag cache is stale, triggering refresh..."),this.reloadFeatureFlags()),!0)}Gn(){var t,e=(t=this.Rt.evaluation_contexts)!==null&&t!==void 0?t:this.Rt.evaluation_environments;return!this.Rt.evaluation_environments||this.Rt.evaluation_contexts||this.Vn||(Ln.warn("evaluation_environments is deprecated. Use evaluation_contexts instead. evaluation_environments will be removed in a future version."),this.Vn=!0),e!=null&&e.length?e.filter(n=>{var s=n&&typeof n=="string"&&n.trim().length>0;return s||Ln.error("Invalid evaluation context found:",n,"Expected non-empty string"),s}):[]}Xn(){return this.Gn().length>0}initialize(){var t,e,{config:n}=this._instance,s=(t=(e=n.bootstrap)==null?void 0:e.featureFlags)!==null&&t!==void 0?t:{};if(Object.keys(s).length){var r,i,o=(r=(i=n.bootstrap)==null?void 0:i.featureFlagPayloads)!==null&&r!==void 0?r:{},a=Object.keys(s).filter(u=>!!s[u]).reduce((u,c)=>(u[c]=s[c]||!1,u),{}),l=Object.keys(o).filter(u=>a[u]).reduce((u,c)=>(o[c]&&(u[c]=o[c]),u),{});this.receivedFeatureFlags({featureFlags:a,featureFlagPayloads:l})}}updateFlags(t,e,n){var s=n!=null&&n.merge?this.getFlagVariants():{},r=n!=null&&n.merge?this.getFlagPayloads():{},i=_e({},s,t),o=_e({},r,e),a={};for(var[l,u]of Object.entries(i)){var c=typeof u=="string";a[l]={key:l,enabled:!!c||Boolean(u),variant:c?u:void 0,reason:void 0,metadata:Me(o==null?void 0:o[l])?void 0:{id:0,version:void 0,description:void 0,payload:o[l]}}}this.receivedFeatureFlags({flags:a})}get hasLoadedFlags(){return this.jn}getFlags(){return Object.keys(this.getFlagVariants())}getFlagsWithDetails(){var t=this.Yn(Dd),e=this.Yn(xr),n=this.Yn(Vo);if(!n&&!e)return t||{};var s=Zt({},t||{}),r=[...new Set([...Object.keys(n||{}),...Object.keys(e||{})])];for(var i of r){var o,a,l=s[i],u=e==null?void 0:e[i],c=Me(u)?(o=l==null?void 0:l.enabled)!==null&&o!==void 0&&o:!!u,d=Me(u)?l.variant:typeof u=="string"?u:void 0,p=n==null?void 0:n[i],g=_e({},l,{enabled:c,variant:c?d!=null?d:l==null?void 0:l.variant:void 0});c!==(l==null?void 0:l.enabled)&&(g.original_enabled=l==null?void 0:l.enabled),d!==(l==null?void 0:l.variant)&&(g.original_variant=l==null?void 0:l.variant),p&&(g.metadata=_e({},l==null?void 0:l.metadata,{payload:p,original_payload:l==null||(a=l.metadata)==null?void 0:a.payload})),s[i]=g}return this.Bn||(Ln.warn(" Overriding feature flag details!",{flagDetails:t,overriddenPayloads:n,finalDetails:s}),this.Bn=!0),s}getFlagVariants(){var t=this.Yn(Bi),e=this.Yn(xr);if(!e)return t||{};for(var n=Zt({},t),s=Object.keys(e),r=0;s.length>r;r++)n[s[r]]=e[s[r]];return this.Bn||(Ln.warn(" Overriding feature flags!",{enabledFlags:t,overriddenFlags:e,finalFlags:n}),this.Bn=!0),n}getFlagPayloads(){var t=this.Yn(zp),e=this.Yn(Vo);if(!e)return t||{};for(var n=Zt({},t||{}),s=Object.keys(e),r=0;s.length>r;r++)n[s[r]]=e[s[r]];return this.Bn||(Ln.warn(" Overriding feature flag payloads!",{flagPayloads:t,overriddenPayloads:e,finalPayloads:n}),this.Bn=!0),n}reloadFeatureFlags(){this.Zn||this.Rt.advanced_disable_feature_flags||this.Jn||(this._instance.ki.emit("featureFlagsReloading",!0),this.Jn=setTimeout(()=>{this.Kn()},5))}Qn(){clearTimeout(this.Jn),this.Jn=void 0}ensureFlagsLoaded(){this.jn||this.qn||this.Jn||this.reloadFeatureFlags()}setAnonymousDistinctId(t){this.$anon_distinct_id=t}setReloadingPaused(t){this.Zn=t}Kn(t){var e;if(this.Qn(),!this._instance.Tr())if(this.qn)this.$n=!0;else{var n=this.Rt.token,s=this.Yn(zl),r={token:n,distinct_id:this._instance.get_distinct_id(),groups:this._instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:_e({},((e=this.Kr)==null?void 0:e.get_initial_props())||{},this.Yn(Wo)||{}),group_properties:this.Yn(Gr),timezone:Tm()};Fr(s)||Me(s)||(r.$device_id=s),(t!=null&&t.disableFlags||this.Rt.advanced_disable_feature_flags)&&(r.disable_flags=!0),this.Xn()&&(r.evaluation_contexts=this.Gn());var i=this._instance.requestRouter.endpointFor("flags","/flags/?v=2"+(this.Rt.advanced_only_evaluate_survey_feature_flags?"&only_evaluate_survey_feature_flags=true":""));this.qn=!0,this._instance._send_request({method:"POST",url:i,data:r,compression:this.Rt.disable_compression?void 0:us.Base64,timeout:this.Rt.feature_flag_request_timeout_ms,callback:o=>{var a,l,u,c=!0;if(o.statusCode===200&&(this.$n||(this.$anon_distinct_id=void 0),c=!1),this.qn=!1,!r.disable_flags||this.$n){this.Hn=!c;var d=[];
31o.error?o.error instanceof Error?d.push(o.error.name==="AbortError"?"timeout":"connection_error"):d.push("unknown_error"):o.statusCode!==200&&d.push("api_error_"+o.statusCode),(a=o.json)!=null&&a.errorsWhileComputingFlags&&d.push("errors_while_computing_flags");var p,g=!((l=o.json)==null||(l=l.quotaLimited)==null||!l.includes("feature_flags"));g&&d.push("quota_limited"),(u=this.Kr)==null||u.register({[jd]:d}),g?Ln.warn("You have hit your feature flags quota limit, and will not be able to load feature flags until the quota is reset. Please visit https://posthog.com/docs/billing/limits-alerts to learn more."):(r.disable_flags||this.receivedFeatureFlags((p=o.json)!==null&&p!==void 0?p:{},c),this.$n&&(this.$n=!1,this.Kn()))}}})}}getFeatureFlag(t,e){var n;if(e===void 0&&(e={}),!e.fresh||this.Hn)if(this.jn||this.getFlags()&&this.getFlags().length>0){if(!this.Wn()){var s=this.getFeatureFlagResult(t,e);return(n=s==null?void 0:s.variant)!==null&&n!==void 0?n:s==null?void 0:s.enabled}}else Ln.warn('getFeatureFlag for key "'+t+Uc)}getFeatureFlagDetails(t){return this.getFlagsWithDetails()[t]}getFeatureFlagPayload(t){var e=this.getFeatureFlagResult(t,{send_event:!1});return e==null?void 0:e.payload}getFeatureFlagResult(t,e){if(e===void 0&&(e={}),!e.fresh||this.Hn)if(this.jn||this.getFlags()&&this.getFlags().length>0){if(!this.Wn()){var n=this.getFlagVariants(),s=t in n,r=n[t],i=this.getFlagPayloads()[t],o=String(r),a=this.Yn(qp)||void 0,l=this.Yn(Wl)||void 0,u=this.Yn(ta)||{};if(this.Rt.advanced_feature_flags_dedup_per_session){var c,d=this._instance.get_session_id(),p=this.Yn(Nd);d&&d!==p&&(u={},(c=this.Kr)==null||c.register({[ta]:u,[Nd]:d}))}if((e.send_event||!("send_event"in e))&&(!(t in u)||!u[t].includes(o))){var g,v,b,k,L,E,_,m,x,A;mt(u[t])?u[t].push(o):u[t]=[o],(g=this.Kr)==null||g.register({[ta]:u});var h=this.getFeatureFlagDetails(t),S=[...(v=this.Yn(jd))!==null&&v!==void 0?v:[]];Me(r)&&S.push("flag_missing");var $={$feature_flag:t,$feature_flag_response:r,$feature_flag_payload:i||null,$feature_flag_request_id:a,$feature_flag_evaluated_at:l,$feature_flag_bootstrapped_response:((b=this.Rt.bootstrap)==null||(b=b.featureFlags)==null?void 0:b[t])||null,$feature_flag_bootstrapped_payload:((k=this.Rt.bootstrap)==null||(k=k.featureFlagPayloads)==null?void 0:k[t])||null,$used_bootstrap_value:!this.Hn};Me(h==null||(L=h.metadata)==null?void 0:L.version)||($.$feature_flag_version=h.metadata.version);var R,G=(E=h==null||(_=h.reason)==null?void 0:_.description)!==null&&E!==void 0?E:h==null||(m=h.reason)==null?void 0:m.code;G&&($.$feature_flag_reason=G),h!=null&&(x=h.metadata)!=null&&x.id&&($.$feature_flag_id=h.metadata.id),Me(h==null?void 0:h.original_variant)&&Me(h==null?void 0:h.original_enabled)||($.$feature_flag_original_response=Me(h.original_variant)?h.original_enabled:h.original_variant),h!=null&&(A=h.metadata)!=null&&A.original_payload&&($.$feature_flag_original_payload=h==null||(R=h.metadata)==null?void 0:R.original_payload),S.length&&($.$feature_flag_error=S.join(",")),this._instance.capture("$feature_flag_called",$)}if(s){var H=i;if(!Me(i))try{H=JSON.parse(i)}catch{}return{key:t,enabled:!!r,variant:typeof r=="string"?r:void 0,payload:H}}}}else Ln.warn('getFeatureFlagResult for key "'+t+Uc)}getRemoteConfigPayload(t,e){var n=this.Rt.token,s={distinct_id:this._instance.get_distinct_id(),token:n};this.Xn()&&(s.evaluation_contexts=this.Gn()),this._instance._send_request({method:"POST",url:this._instance.requestRouter.endpointFor("flags","/flags/?v=2"),data:s,compression:this.Rt.disable_compression?void 0:us.Base64,timeout:this.Rt.feature_flag_request_timeout_ms,callback(r){var i,o=(i=r.json)==null?void 0:i.featureFlagPayloads;e((o==null?void 0:o[t])||void 0)}})}isFeatureEnabled(t,e){if(e===void 0&&(e={}),!e.fresh||this.Hn){if(this.jn||this.getFlags()&&this.getFlags().length>0){var n=this.getFeatureFlag(t,e);return Me(n)?void 0:!!n}Ln.warn('isFeatureEnabled for key "'+t+Uc)}}addFeatureFlagsHandler(t){this.featureFlagEventHandlers.push(t)}removeFeatureFlagsHandler(t){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter(e=>e!==t)}receivedFeatureFlags(t,e){if(this.Kr){this.jn=!0;var n=this.getFlagVariants(),s=this.getFlagPayloads(),r=this.getFlagsWithDetails();(function(i,o,a,l,u){a===void 0&&(a={}),l===void 0&&(l={}),u===void 0&&(u={});var c=(A=>{var h=A.flags;return h?(A.featureFlags=Object.fromEntries(Object.keys(h).map(S=>{var $;return[S,($=h[S].variant)!==null&&$!==void 0?$:h[S].enabled]})),A.featureFlagPayloads=Object.fromEntries(Object.keys(h).filter(S=>h[S].enabled).filter(S=>{var $;return($=h[S].metadata)==null?void 0:$.payload}).map(S=>{var $;return[S,($=h[S].metadata)==null?void 0:$.payload]}))):Ln.warn("Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version"),A})(i),d=c.flags,p=c.featureFlags,g=c.featureFlagPayloads;if(p){var v=i.requestId,b=i.evaluatedAt;if(mt(p)){Ln.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");var k={};if(p)for(var L=0;p.length>L;L++)k[p[L]]=!0;o&&o.register({[zc]:p,[Bi]:k})}else{var E=p,_=g,m=d;if(i.errorsWhileComputingFlags)if(d){var x=new Set(Object.keys(d).filter(A=>{var h;return!((h=d[A])!=null&&h.failed)}));E=_e({},a,Object.fromEntries(Object.entries(E).filter(A=>{var[h]=A;return x.has(h)}))),_=_e({},l,Object.fromEntries(Object.entries(_||{}).filter(A=>{var[h]=A;return x.has(h)}))),m=_e({},u,Object.fromEntries(Object.entries(m||{}).filter(A=>{var[h]=A;return x.has(h)})))}else E=_e({},a,E),_=_e({},l,_),m=_e({},u,m);o&&o.register(_e({[zc]:Object.keys(Gp(E)),[Bi]:E||{},[zp]:_||{},[Dd]:m||{}},v?{[qp]:v}:{},b?{[Wl]:b}:{}))}}})(t,this.Kr,n,s,r),e||(this.zn=!1),this.ts(e)}}override(t,e){e===void 0&&(e=!1),Ln.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:t,suppressWarning:e})}overrideFeatureFlags(t){if(!this._instance.__loaded||!this.Kr)return Ln.uninitializedWarning("posthog.featureFlags.overrideFeatureFlags");if(t===!1)return this.Kr.unregister(xr),this.Kr.unregister(Vo),this.ts(),zr.info("All overrides cleared");if(mt(t)){var e=Wp(t);return this.Kr.register({[xr]:e}),this.ts(),zr.info("Flag overrides set",{flags:t})}if(t&&typeof t=="object"&&("flags"in t||"payloads"in t)){var n,s=t;if(this.Bn=Boolean((n=s.suppressWarning)!==null&&n!==void 0&&n),"flags"in s){if(s.flags===!1)this.Kr.unregister(xr),zr.info("Flag overrides cleared");else if(s.flags){if(mt(s.flags)){var r=Wp(s.flags);this.Kr.register({[xr]:r})}else this.Kr.register({[xr]:s.flags});zr.info("Flag overrides set",{flags:s.flags})}}
31return"payloads"in s&&(s.payloads===!1?(this.Kr.unregister(Vo),zr.info("Payload overrides cleared")):s.payloads&&(this.Kr.register({[Vo]:s.payloads}),zr.info("Payload overrides set",{payloads:s.payloads}))),void this.ts()}if(t&&typeof t=="object")return this.Kr.register({[xr]:t}),this.ts(),zr.info("Flag overrides set",{flags:t});Ln.warn("Invalid overrideOptions provided to overrideFeatureFlags",{overrideOptions:t})}onFeatureFlags(t){if(this.addFeatureFlagsHandler(t),this.jn){var{flags:e,flagVariants:n}=this.es();t(e,n)}return()=>this.removeFeatureFlagsHandler(t)}updateEarlyAccessFeatureEnrollment(t,e,n){var s,r=(this.Yn(qo)||[]).find(l=>l.flagKey===t),i={["$feature_enrollment/"+t]:e},o={$feature_flag:t,$feature_enrollment:e,$set:i};r&&(o.$early_access_feature_name=r.name),n&&(o.$feature_enrollment_stage=n),this._instance.capture("$feature_enrollment_update",o),this.setPersonPropertiesForFlags(i,!1);var a=_e({},this.getFlagVariants(),{[t]:e});(s=this.Kr)==null||s.register({[zc]:Object.keys(Gp(a)),[Bi]:a}),this.ts()}getEarlyAccessFeatures(t,e,n){e===void 0&&(e=!1);var s=this.Yn(qo),r=n?"&"+n.map(i=>"stage="+i).join("&"):"";if(s&&!e)return t(s);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/early_access_features/?token="+this.Rt.token+r),method:"GET",callback:i=>{var o,a;if(i.json){var l=i.json.earlyAccessFeatures;return(o=this.Kr)==null||o.unregister(qo),(a=this.Kr)==null||a.register({[qo]:l}),t(l)}}})}es(){var t=this.getFlags(),e=this.getFlagVariants();return{flags:t.filter(n=>e[n]),flagVariants:Object.keys(e).filter(n=>e[n]).reduce((n,s)=>(n[s]=e[s],n),{})}}ts(t){var{flags:e,flagVariants:n}=this.es();this.featureFlagEventHandlers.forEach(s=>s(e,n,{errorsLoading:t}))}setPersonPropertiesForFlags(t,e){e===void 0&&(e=!0);var n=this.Yn(Wo)||{};this._instance.register({[Wo]:_e({},n,t)}),e&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(){this._instance.unregister(Wo)}setGroupPropertiesForFlags(t,e){e===void 0&&(e=!0);var n=this.Yn(Gr)||{};Object.keys(n).length!==0&&Object.keys(n).forEach(s=>{n[s]=_e({},n[s],t[s]),delete t[s]}),this._instance.register({[Gr]:_e({},n,t)}),e&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(t){if(t){var e=this.Yn(Gr)||{};this._instance.register({[Gr]:_e({},e,{[t]:{}})})}else this._instance.unregister(Gr)}reset(){this.jn=!1,this.qn=!1,this.Zn=!1,this.$n=!1,this.Hn=!1,this.$anon_distinct_id=void 0,this.Qn(),this.Bn=!1}}},K6={sessionRecording:class{get Rt(){return this._instance.config}get Kr(){return this._instance.persistence}get started(){var t;return!((t=this.rs)==null||!t.isStarted)}get status(){var t,e;return this.ns===Ro||this.ns===ol?this.ns:(t=(e=this.rs)==null?void 0:e.status)!==null&&t!==void 0?t:this.ns}constructor(t){if(this._forceAllowLocalhostNetworkCapture=!1,this.ns=Ip,this.ss=void 0,this._instance=t,!this._instance.sessionManager)throw br.error("started without valid sessionManager"),new Error(of+" started without valid sessionManager. This is a bug.");if(this.Rt.cookieless_mode===ls)throw new Error(of+' cannot be used with cookieless_mode="always"')}initialize(){this.startIfEnabledOrStop()}get os(){var t,e=!((t=this._instance.get_property(Qa))==null||!t.enabled),n=!this.Rt.disable_session_recording,s=this.Rt.disable_session_recording||this._instance.consent.isOptedOut();return K&&e&&n&&!s}startIfEnabledOrStop(t){var e;if(!this.os||(e=this.rs)==null||!e.isStarted){var n=!Me(Object.assign)&&!Me(Array.from);this.os&&n?(this.ls(t),br.info("starting")):(this.ns=Ip,this.stopRecording())}}ls(t){var e,n,s;this.os&&(this.ns!==Ro&&this.ns!==ol&&(this.ns=Hp),Ue!=null&&(e=Ue.__PosthogExtensions__)!=null&&(e=e.rrweb)!=null&&e.record&&(n=Ue.__PosthogExtensions__)!=null&&n.initSessionRecording?this.us(t):(s=Ue.__PosthogExtensions__)==null||s.loadExternalDependency==null||s.loadExternalDependency(this._instance,this.hs,r=>{if(r)return br.error("could not load recorder",r);this.us(t)}))}stopRecording(){var t,e;(t=this.ss)==null||t.call(this),this.ss=void 0,(e=this.rs)==null||e.stop()}cs(){var t,e;(t=this.ss)==null||t.call(this),this.ss=void 0,(e=this.rs)==null||e.discard()}ds(){var t;(t=this.Kr)==null||t.unregister(mm)}vs(t,e){if(it(t))return null;var n,s=Hs(t)?t:parseFloat(t);return typeof(n=s)!="number"||!Number.isFinite(n)||0>n||n>1?(br.warn(e+" must be between 0 and 1. Ignoring invalid value:",t),null):s}fs(t){if(this.Kr){var e,n,s=this.Kr,r=()=>{var i,o=t.sessionRecording===!1?void 0:t.sessionRecording,a=this.vs((i=this.Rt.session_recording)==null?void 0:i.sampleRate,"session_recording.sampleRate"),l=this.vs(o==null?void 0:o.sampleRate,"remote config sampleRate"),u=a!=null?a:l;it(u)&&this.ds();var c=o==null?void 0:o.minimumDurationMilliseconds;s.register({[Qa]:_e({cache_timestamp:Date.now(),enabled:!!o},o,{networkPayloadCapture:_e({capturePerformance:t.capturePerformance},o==null?void 0:o.networkPayloadCapture),canvasRecording:{enabled:o==null?void 0:o.recordCanvas,fps:o==null?void 0:o.canvasFps,quality:o==null?void 0:o.canvasQuality},sampleRate:u,minimumDurationMilliseconds:Me(c)?null:c,endpoint:o==null?void 0:o.endpoint,triggerMatchType:o==null?void 0:o.triggerMatchType,masking:o==null?void 0:o.masking,urlTriggers:o==null?void 0:o.urlTriggers})})};r(),(e=this.ss)==null||e.call(this),this.ss=(n=this._instance.sessionManager)==null?void 0:n.onSessionId(r)}}onRemoteConfig(t){return"sessionRecording"in t?t.sessionRecording===!1?(this.fs(t),void this.cs()):(this.fs(t),void this.startIfEnabledOrStop()):(this.ns===Ro&&(this.ns=ol,br.warn("config refresh failed, recording will not start until page reload")),void this.startIfEnabledOrStop())}log(t,e){var n;e===void 0&&(e="log"),(n=this.rs)!=null&&n.log?this.rs.log(t,e):br.warn("log called before recorder was ready")}get hs(){var t,e,n=(t=this._instance)==null||(t=t.persistence)==null?void 0:t.get_property(Qa);return(n==null||(e=n.scriptConfig)==null?void 0:e.script)||"lazy-recorder"}ps(){var t,e=this._instance.get_property(Qa);if(!e)return!1;var n=(t=(typeof e=="object"?e:JSON.parse(e)).cache_timestamp)!==null&&t!==void 0?t:Date.now();return 36e5>=Date.now()-n}us(t){var e,n;if((e=Ue.__PosthogExtensions__)==null||!e.initSessionRecording)return br.warn("Called on script loaded before session recording is available. This can be caused by adblockers."),void this._instance.register_for_session({$sdk_debug_recording_script_not_loaded:!0});if(this.rs||(this.rs=(n=Ue.__PosthogExtensions__)==null?void 0:n.initSessionRecording(this._instance),this.rs._forceAllowLocalhostNetworkCapture=this._forceAllowLocalhostNetworkCapture),!this.ps())return this.ns===ol||this.ns===Ro?void 0:(this.ns=Ro,br.info("persisted remote config is stale, requesting fresh config before starting"),void new Om(this._instance).load());this.ns=Hp,this.rs.start(t)}onRRwebEmit(t){var e;(e=this.rs)==null||e.onRRwebEmit==null||e.onRRwebEmit(t)}overrideLinkedFlag(){var t,e;this.rs||(e=this.Kr)==null||e.register({$replay_override_linked_flag:!0}),(t=this.rs)==null||t.overrideLinkedFlag()}overrideSampling(){var t,e;this.rs||(e=this.Kr)==null||e.register({$replay_override_sampling:!0}),(t=this.rs)==null||t.overrideSampling()}overrideTrigger(t){var e,n;this.rs||(n=this.Kr)==null||n.register({[t==="url"?"$replay_override_url_trigger":"$replay_override_event_trigger"]:!0}
31),(e=this.rs)==null||e.overrideTrigger(t)}get sdkDebugProperties(){var t;return((t=this.rs)==null?void 0:t.sdkDebugProperties)||{$recording_status:this.status}}tryAddCustomEvent(t,e){var n;return!((n=this.rs)==null||!n.tryAddCustomEvent(t,e))}}},Y6={autocapture:class{constructor(t){this.gs=!1,this.ys=null,this.bs=!1,this.instance=t,this.rageclicks=new Pp(t.config.rageclick),this.ws=null}initialize(){this.startIfEnabled()}get Rt(){var t,e,n=tn(this.instance.config.autocapture)?this.instance.config.autocapture:{};return n.url_allowlist=(t=n.url_allowlist)==null?void 0:t.map(s=>new RegExp(s)),n.url_ignorelist=(e=n.url_ignorelist)==null?void 0:e.map(s=>new RegExp(s)),n}_s(){if(this.isBrowserSupported()){if(K&&we){var t=n=>{n=n||(K==null?void 0:K.event);try{this.Is(n)}catch(s){$p.error("Failed to capture event",s)}};if(Xt(we,"submit",t,{capture:!0}),Xt(we,"change",t,{capture:!0}),Xt(we,"click",t,{capture:!0}),this.Rt.capture_copied_text){var e=n=>{this.Is(n=n||(K==null?void 0:K.event),Dc)};Xt(we,"copy",e,{capture:!0}),Xt(we,"cut",e,{capture:!0})}}}else $p.info("Disabling Automatic Event Collection because this browser is not supported")}startIfEnabled(){this.isEnabled&&!this.gs&&(this._s(),this.gs=!0)}onRemoteConfig(t){t.elementsChainAsString&&(this.bs=t.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register({[Jh]:!!t.autocapture_opt_out}),this.ys=!!t.autocapture_opt_out,this.startIfEnabled()}setElementSelectors(t){this.ws=t}getElementSelectors(t){var e,n=[];return(e=this.ws)==null||e.forEach(s=>{var r=we==null?void 0:we.querySelectorAll(s);r==null||r.forEach(i=>{t===i&&n.push(s)})}),n}get isEnabled(){var t,e,n=(t=this.instance.persistence)==null?void 0:t.props[Jh];if(Fr(this.ys)&&!sr(n)&&!this.instance.Tr())return!1;var s=(e=this.ys)!==null&&e!==void 0?e:!!n;return!!this.instance.config.autocapture&&!s}Is(t,e){if(e===void 0&&(e="$autocapture"),this.isEnabled){var n,s=Ep(t);jm(s)&&(s=s.parentNode||null),e==="$autocapture"&&t.type==="click"&&t instanceof MouseEvent&&this.instance.config.rageclick&&(n=this.rageclicks)!=null&&n.isRageClick(t.clientX,t.clientY,t.timeStamp||new Date().getTime())&&function(d,p){if(!K||sf(d))return!1;var g,v,b;if(sr(p)?(g=!!p&&Lp,v=void 0):(g=(b=p==null?void 0:p.css_selector_ignorelist)!==null&&b!==void 0?b:Lp,v=p==null?void 0:p.content_ignorelist),g===!1)return!1;var{targetElementList:k}=Tp(d,!1);return!function(L,E){if(L===!1||Me(L))return!1;var _;if(L===!0)_=$6;else{if(!mt(L))return!1;if(L.length>10)return Se.error("[PostHog] content_ignorelist array cannot exceed 10 items. Use css_selector_ignorelist for more complex matching."),!1;_=L.map(m=>m.toLowerCase())}return E.some(m=>{var{safeText:x,ariaLabel:A}=m;return _.some(h=>x.includes(h)||A.includes(h))})}(v,k.map(L=>{var E;return{safeText:ba(L).toLowerCase(),ariaLabel:((E=L.getAttribute("aria-label"))==null?void 0:E.toLowerCase().trim())||""}}))&&!Ap(k,g)}(s,this.instance.config.rageclick)&&this.Is(t,"$rageclick");var r=e===Dc;if(s&&function(d,p,g,v,b){var k,L,E,_;if(g===void 0&&(g=void 0),!K||sf(d)||(k=g)!=null&&k.url_allowlist&&!Sp(g.url_allowlist)||(L=g)!=null&&L.url_ignorelist&&Sp(g.url_ignorelist))return!1;if((E=g)!=null&&E.dom_event_allowlist){var m=g.dom_event_allowlist;if(m&&!m.some($=>p.type===$))return!1}var{parentIsUsefulElement:x,targetElementList:A}=Tp(d,v);if(!function($,R){var G=R==null?void 0:R.element_allowlist;if(Me(G))return!0;var H,ee=function(le){if(G.some(X=>le.tagName.toLowerCase()===X))return{v:!0}};for(var j of $)if(H=ee(j))return H.v;return!1}(A,g)||!Ap(A,(_=g)==null?void 0:_.css_selector_allowlist))return!1;var h=K.getComputedStyle(d);if(h&&h.getPropertyValue("cursor")==="pointer"&&p.type==="click")return!0;var S=d.tagName.toLowerCase();switch(S){case"html":return!1;case"form":return(b||["submit"]).indexOf(p.type)>=0;case"input":case"select":case"textarea":return(b||["change","click"]).indexOf(p.type)>=0;default:return x?(b||["click"]).indexOf(p.type)>=0:(b||["click"]).indexOf(p.type)>=0&&(c1.indexOf(S)>-1||d.getAttribute("contenteditable")==="true")}}(s,t,this.Rt,r,r?["copy","cut"]:void 0)){var{props:i,explicitNoCapture:o}=B6(s,{e:t,maskAllElementAttributes:this.instance.config.mask_all_element_attributes,maskAllText:this.instance.config.mask_all_text,elementAttributeIgnoreList:this.Rt.element_attribute_ignorelist,elementsC
31hainAsString:this.bs});if(o)return!1;var a=this.getElementSelectors(s);if(a&&a.length>0&&(i.$element_selectors=a),e===Dc){var l,u=zm(K==null||(l=K.getSelection())==null?void 0:l.toString()),c=t.type||"clipboard";if(!u)return!1;i.$selected_content=u,i.$copy_type=c}return this.instance.capture(e,i),!0}}}isBrowserSupported(){return Js(we==null?void 0:we.querySelectorAll)}},historyAutocapture:class{constructor(t){var e;this._instance=t,this.Cs=(K==null||(e=K.location)==null?void 0:e.pathname)||""}initialize(){this.startIfEnabled()}get isEnabled(){return this._instance.config.capture_pageview==="history_change"}startIfEnabled(){this.isEnabled&&(Se.info("History API monitoring enabled, starting..."),this.monitorHistoryChanges())}stop(){this.Ss&&this.Ss(),this.Ss=void 0,Se.info("History API monitoring stopped")}monitorHistoryChanges(){var t,e;if(K&&K.history){var n=this;(t=K.history.pushState)!=null&&t.__posthog_wrapped__||Rp(K.history,"pushState",s=>function(r,i,o){s.call(this,r,i,o),n.ks("pushState")}),(e=K.history.replaceState)!=null&&e.__posthog_wrapped__||Rp(K.history,"replaceState",s=>function(r,i,o){s.call(this,r,i,o),n.ks("replaceState")}),this.xs()}}ks(t){try{var e,n=K==null||(e=K.location)==null?void 0:e.pathname;if(!n)return;n!==this.Cs&&this.isEnabled&&this._instance.capture(Vi,{navigation_type:t}),this.Cs=n}catch(s){Se.error("Error capturing "+t+" pageview",s)}}xs(){if(!this.Ss){var t=()=>{this.ks("popstate")};Xt(K,"popstate",t),this.Ss=()=>{K&&K.removeEventListener("popstate",t)}}}},heatmaps:class{get Rt(){return this.instance.config}constructor(t){var e;this.Ts=!1,this.gs=!1,this.As=null,this.instance=t,this.Ts=!((e=this.instance.persistence)==null||!e.props[Hd]),this.rageclicks=new Pp(t.config.rageclick)}initialize(){this.startIfEnabled()}get flushIntervalMilliseconds(){var t=5e3;return tn(this.Rt.capture_heatmaps)&&this.Rt.capture_heatmaps.flush_interval_milliseconds&&(t=this.Rt.capture_heatmaps.flush_interval_milliseconds),t}get isEnabled(){return it(this.Rt.capture_heatmaps)?it(this.Rt.enable_heatmaps)?this.Ts:this.Rt.enable_heatmaps:this.Rt.capture_heatmaps!==!1}startIfEnabled(){if(this.isEnabled){if(this.gs)return;j6.info("starting..."),this.Es(),this.Tt()}else{var t;clearInterval((t=this.As)!==null&&t!==void 0?t:void 0),this.Rs(),this.getAndClearBuffer()}}onRemoteConfig(t){if("heatmaps"in t){var e=!!t.heatmaps;this.instance.persistence&&this.instance.persistence.register({[Hd]:e}),this.Ts=e,this.startIfEnabled()}}getAndClearBuffer(){var t=this.T;return this.T=void 0,t}Ns(t){this.wt(t.originalEvent,"deadclick")}Tt(){this.As&&clearInterval(this.As),this.As=(we==null?void 0:we.visibilityState)==="visible"?setInterval(this.Zr.bind(this),this.flushIntervalMilliseconds):null}Es(){K&&we&&(this.Ms=this.Zr.bind(this),Xt(K,Yl,this.Ms),this.Fs=t=>this.wt(t||(K==null?void 0:K.event)),Xt(we,"click",this.Fs,{capture:!0}),this.Os=t=>this.Ps(t||(K==null?void 0:K.event)),Xt(we,"mousemove",this.Os,{capture:!0}),this.Ls=new ap(this.instance,Yw,this.Ns.bind(this)),this.Ls.startIfEnabledOrStop(),this.Ds=this.Tt.bind(this),Xt(we,Kl,this.Ds),this.gs=!0)}Rs(){var t;K&&we&&(this.Ms&&K.removeEventListener(Yl,this.Ms),this.Fs&&we.removeEventListener("click",this.Fs,{capture:!0}),this.Os&&we.removeEventListener("mousemove",this.Os,{capture:!0}),this.Ds&&we.removeEventListener(Kl,this.Ds),clearTimeout(this.Bs),(t=this.Ls)==null||t.stop(),this.gs=!1)}js(t,e){var n=this.instance.scrollManager.scrollY(),s=this.instance.scrollManager.scrollX(),r=this.instance.scrollManager.scrollElement(),i=function(o,a,l){for(var u=o;u&&Uu(u)&&!Or(u,"body");){if(u===l)return!1;if(rt(a,K==null?void 0:K.getComputedStyle(u).position))return!0;u=qm(u)}return!1}(Ep(t),["fixed","sticky"],r);return{x:t.clientX+(i?0:s),y:t.clientY+(i?0:n),target_fixed:i,type:e}}wt(t,e){var n;if(e===void 0&&(e="click"),!kp(t.target)&&Fp(t)){var s=this.js(t,e);(n=this.rageclicks)!=null&&n.isRageClick(t.clientX,t.clientY,new Date().getTime())&&this.qs(_e({},s,{type:"rageclick"})),this.qs(s)}}Ps(t){!kp(t.target)&&Fp(t)&&(clearTimeout(this.Bs),this.Bs=setTimeout(()=>{this.qs(this.js(t,"mousemove"))},500))}qs(t){if(K){var e=K.location.href,n=this.Rt.custom_personal_data_properties,s=this.Rt.mask_personal_data_properties?[...po,...n||[]]:[],r=_a(e,s,ya);this.T=this.T||{},this.T[r]||(this.T[r]=[]),this.T[r].push(t)}}Zr(){this.T&&!Di(this.T)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}},deadClicksAutocapture:ap,webVitalsAutocapture:class{constructor(t){var e;this.Ts=!1,this.gs=!1,this.T={url:void 0,metrics:[],firstMetricTimestamp:void 0},this.Zs=()=>{clearTimeout(this.$s),this.T.metrics.length!==0&&(this._instance.capture("$web_vitals",this.T.metrics.reduce((n,s)=>_e({},n,{["$web_vitals_"+s.name+"_event"]:_e({},s),["$web_vitals_"+s.name+"_value"]:s.value}),{})),this.T={url:void 0,metrics:[],firstMetricTimestamp:void 0})},this.nt=n=>{var s,r=(s=this._instance.sessionManager)==null?void 0:s.checkAndGetSessionAndWindowId(!0);if(Me(r))yr.error("Could not read session ID. Dropping metrics!");else{this.T=this.T||{url:void 0,metrics:[],firstMetricTimestamp:void 0};var i=this.Hs();Me(i)||(it(n==null?void 0:n.name)||it(n==null?void 0:n.value)?yr.error("Invalid metric received",n):!this.Vs||this.Vs>n.value?(this.T.url!==i&&(this.Zs(),this.$s=setTimeout(this.Zs,this.flushToCaptureTimeoutMs)),Me(this.T.url)&&(this.T.url=i),this.T.firstMetricTimestamp=Me(this.T.firstMetricTimestamp)?Date.now():this.T.firstMetricTimestamp,n.attribution&&n.attribution.interactionTargetElement&&(n.attribution.interactionTargetElement=void 0),this.T.metrics.push(_e({},n,{$current_url:i,$session_id:r.sessionId,$window_id:r.windowId,timestamp:Date.now()})),this.T.metrics.length===this.allowedMetrics.length&&this.Zs()):yr.error("Ignoring metric with value >= "+this.Vs,n))}},this.zs=()=>
31{if(!this.gs){var n,s,r,i,o=Ue.__PosthogExtensions__;Me(o)||Me(o.postHogWebVitalsCallbacks)||({onLCP:n,onCLS:s,onFCP:r,onINP:i}=o.postHogWebVitalsCallbacks),n&&s&&r&&i?(this.allowedMetrics.indexOf("LCP")>-1&&n(this.nt.bind(this)),this.allowedMetrics.indexOf("CLS")>-1&&s(this.nt.bind(this)),this.allowedMetrics.indexOf("FCP")>-1&&r(this.nt.bind(this)),this.allowedMetrics.indexOf("INP")>-1&&i(this.nt.bind(this)),this.gs=!0):yr.error("web vitals callbacks not loaded - not starting")}},this._instance=t,this.Ts=!((e=this._instance.persistence)==null||!e.props[tp]),this.startIfEnabled()}get Ys(){return this._instance.config.capture_performance}get allowedMetrics(){var t,e,n=tn(this.Ys)?(t=this.Ys)==null?void 0:t.web_vitals_allowed_metrics:void 0;return it(n)?((e=this._instance.persistence)==null?void 0:e.props[sp])||["CLS","FCP","INP","LCP"]:n}get flushToCaptureTimeoutMs(){return(tn(this.Ys)?this.Ys.web_vitals_delayed_flush_ms:void 0)||5e3}get useAttribution(){var t=tn(this.Ys)?this.Ys.web_vitals_attribution:void 0;return t!=null&&t}get Vs(){var t=tn(this.Ys)&&Hs(this.Ys.__web_vitals_max_value)?this.Ys.__web_vitals_max_value:Vp;return t>0&&6e4>=t?Vp:t}get isEnabled(){var t=fn==null?void 0:fn.protocol;if(t!=="http:"&&t!=="https:")return yr.info("Web Vitals are disabled on non-http/https protocols"),!1;var e=tn(this.Ys)?this.Ys.web_vitals:sr(this.Ys)?this.Ys:void 0;return sr(e)?e:this.Ts}startIfEnabled(){this.isEnabled&&!this.gs&&(yr.info("enabled, starting..."),this.nr(this.zs))}onRemoteConfig(t){if("capturePerformance"in t){var e=tn(t.capturePerformance)&&!!t.capturePerformance.web_vitals,n=tn(t.capturePerformance)?t.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[tp]:e}),this._instance.persistence.register({[sp]:n})),this.Ts=e,this.startIfEnabled()}}nr(t){var e,n;(e=Ue.__PosthogExtensions__)!=null&&e.postHogWebVitalsCallbacks?t():(n=Ue.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,this.useAttribution?"web-vitals-with-attribution":"web-vitals",s=>{s?yr.error("failed to load script",s):t()})}Hs(){var t=K?K.location.href:void 0;if(t){var e=this._instance.config.custom_personal_data_properties,n=this._instance.config.mask_personal_data_properties?[...po,...e||[]]:[];return _a(t,n,ya)}yr.error("Could not determine current URL")}}},X6={exceptionObserver:class{constructor(t){var e,n,s;this.zs=()=>{var r;if(K&&this.isEnabled&&(r=Ue.__PosthogExtensions__)!=null&&r.errorWrappingFunctions){var i=Ue.__PosthogExtensions__.errorWrappingFunctions.wrapOnError,o=Ue.__PosthogExtensions__.errorWrappingFunctions.wrapUnhandledRejection,a=Ue.__PosthogExtensions__.errorWrappingFunctions.wrapConsoleError;try{!this.Us&&this.Rt.capture_unhandled_errors&&(this.Us=i(this.captureException.bind(this))),!this.Ws&&this.Rt.capture_unhandled_rejections&&(this.Ws=o(this.captureException.bind(this))),!this.Gs&&this.Rt.capture_console_errors&&(this.Gs=a(this.captureException.bind(this)))}catch(l){$o.error("failed to start",l),this.Xs()}}},this._instance=t,this.Js=!((e=this._instance.persistence)==null||!e.props[Qh]),this.Ks=new lw({refillRate:(n=this._instance.config.error_tracking.__exceptionRateLimiterRefillRate)!==null&&n!==void 0?n:1,bucketSize:(s=this._instance.config.error_tracking.__exceptionRateLimiterBucketSize)!==null&&s!==void 0?s:10,refillInterval:1e4,qt:$o}),this.Rt=this.Qs(),this.startIfEnabledOrStop()}Qs(){var t=this._instance.config.capture_exceptions,e={capture_unhandled_errors:!1,capture_unhandled_rejections:!1,capture_console_errors:!1};return tn(t)?e=_e({},e,t):(Me(t)?this.Js:t)&&(e=_e({},e,{capture_unhandled_errors:!0,capture_unhandled_rejections:!0})),e}get isEnabled(){return this.Rt.capture_console_errors||this.Rt.capture_unhandled_errors||this.Rt.capture_unhandled_rejections}startIfEnabledOrStop(){this.isEnabled?($o.info("enabled"),this.Xs(),this.nr(this.zs)):this.Xs()}nr(t){var e,n;(e=Ue.__PosthogExtensions__)!=null&&e.errorWrappingFunctions&&t(),(n=Ue.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,"exception-autocapture",s=>{if(s)return $o.error("failed to load script",s);t()})}Xs(){var t,e,n;(t=this.Us)==null||t.call(this),this.Us=void 0,(e=this.Ws)==null||e.call(this),this.Ws=void 0,(n=this.Gs)==null||n.call(this),this.Gs=void 0}onRemoteConfig(t){"autocaptureExceptions"in t&&(this.Js=!!t.autocaptureExceptions||!1,this._instance.persistence&&this._instance.persistence.register({[Qh]:this.Js}),this.Rt=this.Qs(),this.startIfEnabledOrStop())}onConfigChange(){this.Rt=this.Qs()}captureException(t){var e,n,s,r=(e=t==null||(n=t.$exception_list)==null||(n=n[0])==null?void 0:n.type)!==null&&e!==void 0?e:"Exception";this.Ks.consumeRateLimit(r)?$o.info("Skipping exception capture because of client rate limiting.",{exception:r}):(s=this._instance.exceptions)==null||s.sendExceptionEvent(t)}},exceptions:class{constructor(t){var e,n;this.eo=[],this.ro=new bw([new Lw,new Hw,new Mw,new Tw,new Vw,new Rw,new Pw,new Iw],function(s){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;r>o;o++)i[o-1]=arguments[o];return function(a,l){l===void 0&&(l=0);for(var u=[],c=a.split(` 32`),d=l;c.length>d;d++){var p=c[d];if(1024>=p.length){var g=Yh.test(p)?p.replace(Yh,"$1"):p;if(!g.match(/\S*Error: /)){for(var v of i){var b=v(g,s);if(b){u.push(b);break}}if(u.length>=50)break}}}return function(k){if(!k.length)return[];var L=Array.from(k);return L.reverse(),L.slice(0,50).map(E=>{return _e({},E,{filename:E.filename||(_=L,_[_.length-1]||{}).filename,function:E.function||ho});var _})}(u)}}("web:javascript",kw,Aw)),this._instance=t,this.eo=(e=(n=this._instance.persistence)==null?void 0:n.get_property(Fd))!==null&&e!==void 0?e:[]}onRemoteConfig(t){var e,n,s;if("errorTracking"in t){var r=(e=(n=t.errorTracking)==null?void 0:n.suppressionRules)!==null&&e!==void 0?e:[],i=(s=t.errorTracking)==null?void 0:s.captureExtensionExceptions;this.eo=r,this._instance.persistence&&this._instance.persistence.register({[Fd]:this.eo,[ep]:i}
32)}}get io(){var t,e=!!this._instance.get_property(ep),n=this._instance.config.error_tracking.captureExtensionExceptions;return(t=n!=null?n:e)!==null&&t!==void 0&&t}buildProperties(t,e){return this.ro.buildFromUnknown(t,{syntheticException:e==null?void 0:e.syntheticException,mechanism:{handled:e==null?void 0:e.handled}})}sendExceptionEvent(t){var e=t.$exception_list;if(this.no(e)){if(this.so(e))return void qc.info("Skipping exception capture because a suppression rule matched");if(!this.io&&this.oo(e))return void qc.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.ao(e))return void qc.info("Skipping exception capture because it was thrown by the PostHog SDK")}return this._instance.capture("$exception",t,{_noTruncate:!0,_batchKey:"exceptionEvent",zi:!0})}so(t){if(t.length===0)return!1;var e=t.reduce((n,s)=>{var{type:r,value:i}=s;return Jt(r)&&r.length>0&&n.$exception_types.push(r),Jt(i)&&i.length>0&&n.$exception_values.push(i),n},{$exception_types:[],$exception_values:[]});return this.eo.some(n=>{var s=n.values.map(r=>{var i,o=Fm[r.operator],a=mt(r.value)?r.value:[r.value],l=(i=e[r.key])!==null&&i!==void 0?i:[];return a.length>0&&o(a,l)});return n.type==="OR"?s.some(Boolean):s.every(Boolean)})}oo(t){return t.flatMap(e=>{var n,s;return(n=(s=e.stacktrace)==null?void 0:s.frames)!==null&&n!==void 0?n:[]}).some(e=>e.filename&&e.filename.startsWith("chrome-extension://"))}ao(t){if(t.length>0){var e,n,s,r,i=(e=(n=t[0].stacktrace)==null?void 0:n.frames)!==null&&e!==void 0?e:[],o=i[i.length-1];return(s=o==null||(r=o.filename)==null?void 0:r.includes("posthog.com/static"))!==null&&s!==void 0&&s}return!1}no(t){return!it(t)&&mt(t)}}},J6=_e({productTours:class{get Kr(){return this._instance.persistence}constructor(t){this.lo=null,this.uo=null,this._instance=t}initialize(){this.loadIfEnabled()}onRemoteConfig(t){"productTours"in t&&(this.Kr&&this.Kr.register({[np]:!!t.productTours}),this.loadIfEnabled())}loadIfEnabled(){var t,e;this.lo||(t=this._instance).config.disable_product_tours||(e=t.persistence)==null||!e.get_property(np)||this.nr(()=>this.ho())}nr(t){var e,n;(e=Ue.__PosthogExtensions__)!=null&&e.generateProductTours?t():(n=Ue.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,"product-tours",s=>{s?Dp.error("Could not load product tours script",s):t()})}ho(){var t;!this.lo&&(t=Ue.__PosthogExtensions__)!=null&&t.generateProductTours&&(this.lo=Ue.__PosthogExtensions__.generateProductTours(this._instance,!0))}getProductTours(t,e){if(e===void 0&&(e=!1),!mt(this.uo)||e){var n=this.Kr;if(n){var s=n.props[Nc];if(mt(s)&&!e)return this.uo=s,void t(s,{isLoaded:!0})}this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/product_tours/?token="+this._instance.config.token),method:"GET",callback:r=>{var i=r.statusCode;if(i!==200||!r.json){var o="Product Tours API could not be loaded, status: "+i;return Dp.error(o),void t([],{isLoaded:!1,error:o})}var a=mt(r.json.product_tours)?r.json.product_tours:[];this.uo=a,n&&n.register({[Nc]:a}),t(a,{isLoaded:!0})}})}else t(this.uo,{isLoaded:!0})}getActiveProductTours(t){it(this.lo)?t([],{isLoaded:!1,error:"Product tours not loaded"}):this.lo.getActiveProductTours(t)}showProductTour(t){var e;(e=this.lo)==null||e.showTourById(t)}previewTour(t){this.lo?this.lo.previewTour(t):this.nr(()=>{var e;this.ho(),(e=this.lo)==null||e.previewTour(t)})}dismissProductTour(){var t;(t=this.lo)==null||t.dismissTour("user_clicked_skip")}nextStep(){var t;(t=this.lo)==null||t.nextStep()}previousStep(){var t;(t=this.lo)==null||t.previousStep()}clearCache(){var t;this.uo=null,(t=this.Kr)==null||t.unregister(Nc)}resetTour(t){var e;(e=this.lo)==null||e.resetTour(t)}resetAllTours(){var t;(t=this.lo)==null||t.resetAllTours()}cancelPendingTour(t){var e;(e=this.lo)==null||e.cancelPendingTour(t)}}},zu),Q6={siteApps:class{constructor(t){this._instance=t,this.co=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}do(t,e){if(e){var n=this.globalsForEvent(e);this.co.push(n),this.co.length>1e3&&(this.co=this.co.slice(10))}}get siteAppLoaders(){var t;return(t=Ue._POSTHOG_REMOTE_CONFIG)==null||(t=t[this._instance.config.token])==null?void 0:t.siteApps}initialize(){if(this.isEnabled){var t=this._instance._addCaptureHook(this.do.bind(this));this.vo=()=>{t(),this.co=[],this.vo=void 0}}}globalsForEvent(t){var e,n,s,r,i,o,a;if(!t)throw new Error("Event payload is required");var l={},u=this._instance.get_property("$groups")||[],c=this._instance.get_property("$stored_group_properties")||{};for(var[d,p]of Object.entries(c))l[d]={id:u[d],type:d,properties:p};var{$set_once:g,$set:v}=t;return{event:_e({},qv(t,U6),{properties:_e({},t.properties,v?{$set:_e({},(e=(n=t.properties)==null?void 0:n.$set)!==null&&e!==void 0?e:{},v)}:{},g?{$set_once:_e({},(s=(r=t.properties)==null?void 0:r.$set_once)!==null&&s!==void 0?s:{},g)}:{}),elements_chain:(i=(o=t.properties)==null?void 0:o.$elements_chain)!==null&&i!==void 0?i:"",distinct_id:(a=t.properties)==null?void 0:a.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:l}}setupSiteApp(t){var e=this.apps[t.id],n=()=>{var o;!e.errored&&this.co.length&&(wr.info("Processing "+this.co.length+" events for site app with id "+t.id),this.co.forEac
32h(a=>e.processEvent==null?void 0:e.processEvent(a)),e.processedBuffer=!0),Object.values(this.apps).every(a=>a.processedBuffer||a.errored)&&((o=this.vo)==null||o.call(this))},s=!1,r=o=>{e.errored=!o,e.loaded=!0,wr.info("Site app with id "+t.id+" "+(o?"loaded":"errored")),s&&n()};try{var{processEvent:i}=t.init({posthog:this._instance,callback(o){r(o)}});i&&(e.processEvent=i),s=!0}catch(o){wr.error(Bp+t.id,o),r(!1)}if(s&&e.loaded)try{n()}catch(o){wr.error("Error while processing buffered events PostHog app with config id "+t.id,o),e.errored=!0}}fo(){var t=this.siteAppLoaders||[];for(var e of t)this.apps[e.id]={id:e.id,loaded:!1,errored:!1,processedBuffer:!1};for(var n of t)this.setupSiteApp(n)}po(t){if(Object.keys(this.apps).length!==0){var e=this.globalsForEvent(t);for(var n of Object.values(this.apps))try{n.processEvent==null||n.processEvent(e)}catch(s){wr.error("Error while processing event "+t.event+" for site app "+n.id,s)}}}onRemoteConfig(t){var e,n,s,r=this;if((e=this.siteAppLoaders)!=null&&e.length)return this.isEnabled?(this.fo(),void this._instance.on("eventCaptured",l=>this.po(l))):void wr.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if((n=this.vo)==null||n.call(this),(s=t.siteApps)!=null&&s.length)if(this.isEnabled){var i=function(l){var u;Ue["__$$ph_site_app_"+l]=r._instance,(u=Ue.__PosthogExtensions__)==null||u.loadSiteApp==null||u.loadSiteApp(r._instance,a,c=>{if(c)return wr.error(Bp+l,c)})};for(var{id:o,url:a}of t.siteApps)i(o)}else wr.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}},e9={tracingHeaders:class{constructor(t){this.mo=void 0,this.yo=void 0,this.zs=()=>{var e,n;Me(this.mo)&&((e=Ue.__PosthogExtensions__)==null||(e=e.tracingHeadersPatchFns)==null||e._patchXHR(this._instance.config.__add_tracing_headers||[],this._instance.get_distinct_id(),this._instance.sessionManager)),Me(this.yo)&&((n=Ue.__PosthogExtensions__)==null||(n=n.tracingHeadersPatchFns)==null||n._patchFetch(this._instance.config.__add_tracing_headers||[],this._instance.get_distinct_id(),this._instance.sessionManager))},this._instance=t}initialize(){this.startIfEnabledOrStop()}nr(t){var e,n;(e=Ue.__PosthogExtensions__)!=null&&e.tracingHeadersPatchFns&&t(),(n=Ue.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,"tracing-headers",s=>{if(s)return N6.error("failed to load script",s);t()})}startIfEnabledOrStop(){var t,e;this._instance.config.__add_tracing_headers?this.nr(this.zs):((t=this.mo)==null||t.call(this),(e=this.yo)==null||e.call(this),this.mo=void 0,this.yo=void 0)}}},t9=_e({surveys:class{get Rt(){return this._instance.config}constructor(t){this.bo=void 0,this._surveyManager=null,this.wo=!1,this._o=[],this.Io=null,this._instance=t,this._surveyEventReceiver=null}initialize(){this.loadIfEnabled()}onRemoteConfig(t){if(!this.Rt.disable_surveys){var e=t.surveys;if(it(e))return Pt.warn("Flags not loaded yet. Not loading surveys.");var n=mt(e);this.bo=n?e.length>0:e,Pt.info("flags response received, isSurveysEnabled: "+this.bo),this.loadIfEnabled()}}reset(){localStorage.removeItem("lastSeenSurveyDate");for(var t=[],e=0;e<localStorage.length;e++){var n=localStorage.key(e);(n!=null&&n.startsWith(tf)||n!=null&&n.startsWith("inProgressSurvey_"))&&t.push(n)}t.forEach(s=>localStorage.removeItem(s))}loadIfEnabled(){if(!this._surveyManager)if(this.wo)Pt.info("Already initializing surveys, skipping...");else if(this.Rt.disable_surveys)Pt.info(Np);else if(this.Rt.cookieless_mode&&this._instance.consent.isOptedOut())Pt.info("Not loading surveys in cookieless mode without consent.");else{var t=Ue==null?void 0:Ue.__PosthogExtensions__;if(t){if(!Me(this.bo)||this.Rt.advanced_enable_surveys){var e=this.bo||this.Rt.advanced_enable_surveys;this.wo=!0;try{var n=t.generateSurveys;if(n)return void this.Co(n,e);var s=t.loadExternalDependency;if(!s)return void this.So(r1);s(this._instance,"surveys",r=>{r||!t.generateSurveys?this.So("Could not load surveys script",r):this.Co(t.generateSurveys,e)})}catch(r){throw this.So("Error initializing surveys",r),r}finally{this.wo=!1}}}else Pt.error("PostHog Extensions not found.")}}Co(t,e){this._surveyManager=t(this._instance,e),this._surveyEventReceiver=new W6(this._instance),Pt.info("Surveys loaded successfully"),this.ko({isLoaded:!0})}So(t,e){Pt.error(t,e),this.ko({isLoaded:!1,error:t})}onSurveysLoaded(t){return this._o.push(t),this._surveyManager&&this.ko({isLoaded:!0}),()=>{this._o=this._o.filter(e=>e!==t)}}getSurveys(t,e){if(e===void 0&&(e=!1),this.Rt.disable_surveys)return Pt.info(Np),t([]);var n,s=this._instance.get_property(Bd);if(s&&!e)return t(s,{isLoaded:!0});typeof Promise<"u"&&this.Io?this.Io.then(r=>{var{surveys:i,context:o}=r;return t(i,o)}):(typeof Promise<"u"&&(this.Io=new Promise(r=>{n=r})),this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/surveys/?token="+this.Rt.token),method:"GET",timeout:this.Rt.surveys_request_timeout_ms,callback:r=>{var i;this.Io=null;var o=r.statusCode;if(o!==200||!r.json){var a="Surveys API could not be loaded, status: "+o;Pt.error(a);var l={isLoaded:!1,error:a};return t([],l),void(n==null||n({surveys:[],context:l}))}var u,c=r.json.surveys||[],d=c.filter(g=>function(v){return!(!v.start_date||v.end_date)}(g)&&(function(v){var b;return!((b=v.conditions)==null||(b=b.events)==null||(b=b.values)==null||!b.length)}(g)||function(v){var b;return!((b=v.conditions)==null||(b=b.actions)==null||(b=b.values)==null||!b.length)}(g)));d.length>0&&((u=this._surveyEventReceiver)==null||u.register(d)),(i=this._instance.persistence)==null||i.register({[Bd]:c});var p={isLoaded:!0};t(c,p),n==null||n({surveys:c,context:p})}}))}ko(t){for(var e of this._o)try{if(!t.isLoaded)return e([],t);
32this.getSurveys(e)}catch(n){Pt.error("Error in survey callback",n)}}getActiveMatchingSurveys(t,e){if(e===void 0&&(e=!1),!it(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(t,e);Pt.warn("init was not called")}xo(t){var e=null;return this.getSurveys(n=>{var s;e=(s=n.find(r=>r.id===t))!==null&&s!==void 0?s:null}),e}To(t){if(it(this._surveyManager))return{eligible:!1,reason:jc};var e=typeof t=="string"?this.xo(t):t;return e?this._surveyManager.checkSurveyEligibility(e):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(t){if(it(this._surveyManager))return Pt.warn("init was not called"),{visible:!1,disabledReason:jc};var e=this.To(t);return{visible:e.eligible,disabledReason:e.reason}}canRenderSurveyAsync(t,e){return it(this._surveyManager)?(Pt.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:jc})):new Promise(n=>{this.getSurveys(s=>{var r,i=(r=s.find(a=>a.id===t))!==null&&r!==void 0?r:null;if(i){var o=this.To(i);n({visible:o.eligible,disabledReason:o.reason})}else n({visible:!1,disabledReason:"Survey not found"})},e)})}renderSurvey(t,e,n){var s;if(it(this._surveyManager))Pt.warn("init was not called");else{var r=typeof t=="string"?this.xo(t):t;if(r!=null&&r.id)if(E6.includes(r.type)){var i=we==null?void 0:we.querySelector(e);if(i)return(s=r.appearance)!=null&&s.surveyPopupDelaySeconds?(Pt.info("Rendering survey "+r.id+" with delay of "+r.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout(()=>{var o,a;Pt.info("Rendering survey "+r.id+" with delay of "+((o=r.appearance)==null?void 0:o.surveyPopupDelaySeconds)+" seconds"),(a=this._surveyManager)==null||a.renderSurvey(r,i,n),Pt.info("Survey "+r.id+" rendered")},1e3*r.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(r,i,n);Pt.warn("Survey element not found")}else Pt.warn("Surveys of type "+r.type+" cannot be rendered in the app");else Pt.warn("Survey not found")}}displaySurvey(t,e){var n;if(it(this._surveyManager))Pt.warn("init was not called");else{var s=this.xo(t);if(s){var r=s;if((n=s.appearance)!=null&&n.surveyPopupDelaySeconds&&e.ignoreDelay&&(r=_e({},s,{appearance:_e({},s.appearance,{surveyPopupDelaySeconds:0})})),e.displayType!==nu.Popover&&e.initialResponses&&Pt.warn("initialResponses is only supported for popover surveys. prefill will not be applied."),e.ignoreConditions===!1){var i=this.canRenderSurvey(s);if(!i.visible)return void Pt.warn("Survey is not eligible to be displayed: ",i.disabledReason)}e.displayType!==nu.Inline?this._surveyManager.handlePopoverSurvey(r,e):this.renderSurvey(r,e.selector,e.properties)}else Pt.warn("Survey not found")}}cancelPendingSurvey(t){it(this._surveyManager)?Pt.warn("init was not called"):this._surveyManager.cancelSurvey(t)}handlePageUnload(){var t;(t=this._surveyManager)==null||t.handlePageUnload()}}},zu),n9={toolbar:class{constructor(t){this.instance=t}Ao(t){Ue.ph_toolbar_state=t}Eo(){var t;return(t=Ue.ph_toolbar_state)!==null&&t!==void 0?t:0}initialize(){return this.maybeLoadToolbar()}maybeLoadToolbar(t,e,n){if(t===void 0&&(t=void 0),e===void 0&&(e=void 0),n===void 0&&(n=void 0),ym(this.instance.config)||!K||!we)return!1;t=t!=null?t:K.location,n=n!=null?n:K.history;try{if(!e){try{K.localStorage.setItem("test","test"),K.localStorage.removeItem("test")}catch{return!1}e=K==null?void 0:K.localStorage}var s,r=G6||eu(t.hash,"__posthog")||eu(t.hash,"state"),i=r?ip(()=>JSON.parse(atob(decodeURIComponent(r))))||ip(()=>JSON.parse(decodeURIComponent(r))):null;return i&&i.action==="ph_authorize"?((s=i).source="url",s&&Object.keys(s).length>0&&(i.desiredHash?t.hash=i.desiredHash:n?n.replaceState(n.state,"",t.pathname+t.search):t.hash="")):((s=JSON.parse(e.getItem(jp)||"{}")).source="localstorage",delete s.userIntent),!(!s.token||this.instance.config.token!==s.token||(this.loadToolbar(s),0))}catch{return!1}}Ro(t){var e=Ue.ph_load_toolbar||Ue.ph_load_editor;!it(e)&&Js(e)?e(t,this.instance):Up.warn("No toolbar load function found")}loadToolbar(t){var e=!(we==null||!we.getElementById(_m));if(!K||e)return!1;var n=this.instance.requestRouter.region==="custom"&&this.instance.config.advanced_disable_toolbar_metrics,s=_e({token:this.instance.config.token},t,{apiURL:this.instance.requestRouter.endpointFor("ui")},n?{instrument:!1}:{});if(K.localStorage.setItem(jp,JSON.stringify(_e({},s,{source:void 0}))),this.Eo()===2)this.Ro(s);else if(this.Eo()===0){var r;this.Ao(1),(r=Ue.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this.instance,"toolbar",i=>{if(i)return Up.error("[Toolbar] Failed to load",i),void this.Ao(0);this.Ao(2),this.Ro(s)}),Xt(K,"turbolinks:load",()=>{this.Ao(0),this.loadToolbar(s)})}return!0}No(t){return this.loadToolbar(t)}maybeLoadEditor(t,e,n){return t===void 0&&(t=void 0),e===void 0&&(e=void 0),n===void 0&&(n=void 0),this.maybeLoadToolbar(t,e,n)}}},s9=_e({experiments:wn},zu),r9={conversations:class{constructor(t){this.Mo=void 0,this._conversationsManager=null,this.Fo=!1,this.Oo=null,this._instance=t}initialize(){this.loadIfEnabled()}onRemoteConfig(t){if(!this._instance.config.disable_conversations){var e=t.conversations;it(e)||(sr(e)?this.Mo=e:(this.Mo=e.enabled,this.Oo=e),this.loadIfEnabled())}}reset(){var t;(t=this._conversationsManager)==null||t.reset(),this._conversationsManager=null,this.Mo=void 0,this.Oo=null}loadIfEnabled(){if(!(this._conversationsManager||this.Fo||this._instance.config.disable_conversations||ym(this._instance.config)||this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())){var t=Ue==null?void 0:Ue.__PosthogExtensions__;if(t&&!Me(this.Mo)&&this.Mo)if(this.Oo&&this.Oo.token){this.Fo=!0;try{var e=t.initConversations;if(e)return this.Po(e),void(this.Fo=!1);var n=t.loadExternalDependency;if(!n)return void this.Lo(r1);n(this._instance,"conversations",s=>{s||!t.initConversations?this.Lo("Could not load conversations script",s):this.Po(t.initConversations),this.Fo=!1})}catch(s){this.Lo("Error initializing conversations",s),this.Fo=!1}}else es.error("Conversations enabled but missing token in remote config.")}}Po(t){if(this.Oo)try{this._conversationsManager=t(this.Oo,this._instance),es.info("Conversations loaded successfully")}catch(e){this.Lo("Error completing conversations initialization",e)}else es.error("Cannot complete initialization: remote config is null")}Lo(t,e){es.error(t,e),this._conversationsManager=null,this.Fo=!1}show(){this._conversationsManager?this._conversationsManager.show():es.warn("Conversations not loaded yet.")}hide(){this._conversationsManager&&this._conversationsManager.hide()}isAvailable(){return this.Mo===!0&&!Fr(this._conversationsManager)}isVisible(){var t,e;return(t=(e=this._conversationsManager)==null?void 0:e.isVisible())!==null&&t!==void 0&&t}sendMessage(t,e,n){var s=this;return as(function*(){return s._conversationsManager?s._conversationsManager.sendMessage(t,e,n):(es.warn(qr),null)})()}getMessages(t,e){var n=this;return as(function*(){return n._conversationsManager?n._conversationsManager.getMessages(t,e):(es.warn(qr),null)})()}markAsRead(t){var e=this;return as(function*(){return e._conversationsManager?e._conversationsManager.markAsRead(t):(es.warn(qr),null)})()}getTickets(t){var e=this;return as(function*(){return e._conversationsManager?e._conversationsManager.getTickets(t):(es.warn(qr),null)})()}requestRestoreLink(t){var e=this;return as(function*(){return e._conversationsManager?e._conversationsManager.requestRestoreLink(t):(es.warn(qr),null)})()}restoreFromToken(t){var e=this;return as(function*(){return e._conversationsManager?e._conversationsManager.restoreFromToken(t):(es.warn(qr),null)})()}restoreFromUrlToken(){var t=this;return as(function*(){return t._conversationsManager?t._conversationsManager.restoreFromUrlToken():(es.warn(qr),null)})()}getCurrentTicketId(){var t,e;return(t=(e=this._conversationsManager)==null?void 0:e.getCurrentTicketId())!==null&&t!==void 0?t:null}getWidgetSessionId(){var t,e;return(t=(e=this._conversationsManager)==null?void 0:e.getWidgetSessionId())!==null&&t!==void 0?t:null}}},i9={logs:class{constructor(t){var e;this.Do=!1,this.Bo=!1,this._instance=t,this._instance&&(e=this._instance.config.logs)!=null&&e.captureConsoleLogs&&(this.Do=!0)}initialize(){this.loadIfEnabled()}onRemoteConfig(t){var e,n=(e=t.logs)==null?void 0:e.captureConsoleLogs;!it(n)&&n&&(this.Do=!0,this.loadIfEnabled())}reset(){}loadIfEnabled(){if(this.Do&&!this.Bo){var t=qt("[logs]"),e=Ue==null?void 0:Ue.__PosthogExtensions__;if(e){var n=e.loadExternalDependency;n?n(this._instance,"logs",s=>{var r;s||(r=e.logs)==null||!r.initializeLogs?t.error("Could not load logs script",s):(e.logs.initializeLogs(this._instance),this.Bo=!0)}):t.error(r1)}else t.error("PostHog Extensions not found.")}}}},o9=_e({},zu,K6,Y6,X6,J6,Q6,t9,e9,n9,s9,r9,i9);ds.__defaultExtensionClasses=_e({},o9);var Kp,$s=(Kp=sa[Hi]=new ds,function(){function t(){t.done||(t.done=!0,Nm=!1,Ft(sa,function(e){e._dom_loaded()}))}we!=null&&we.addEventListener?we.readyState==="complete"?t():Xt(we,"DOMContentLoaded",t,{capture:!1}):K&&Se.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")}(),Kp);const a9=Object.freeze(Object.defineProperty({__proto__:null,Compression:us,DEFAULT_PRODUCT_TOUR_APPEARANCE:u6,DisplaySurveyType:nu,PostHog:ds,ProductTourEventName:Mm,ProductTourEventProperties:Zd,SurveyEventName:Ni,SurveyEventProperties:yl,SurveyEventType:Ii,SurveyPosition:r6,SurveyQuestionBranchingType:a6,SurveyQuestionType:o6,SurveySchedule:l6,SurveyTabPosition:i6,SurveyType:_l,SurveyWidgetType:s6,default:$s,posthog:$s,severityLevels:d6},Symbol.toStringTag,{value:"Module"})),Xe=Pa("user",()=>{const t=ae(),e=ae([]),n=ae([]),s=ae(0),r=Ne(()=>t.value!==void 0&&t.value!==null&&t.value.is_enabled!==!1),i=Ne(()=>t.value&&t.value.creator),o=Ne(()=>t.value&&t.value.admin),a=ae([]),l=ae([]),u=Ne(()=>t.value&&t.value.fap_api_license_key),c=()=>{t.value=void 0,e.value=[],n.value=[],s.value=0},d=async()=>{c();try{await dt.user.logout()}catch(H){console.warn("Failed to log out user:",H)}finally{$s.reset()}};async function p(H){if(!H){c();return}if(H.is_enabled!==!0){await d();return}t.value=H,$s.identify(H.id),e.value=await dt.user.getSubscriptions(),n.value=await dt.notifications.getNotifications(),s.value=await dt.notifications.getUnreadNotificationsCount()}async function g(H){!t.value||(t.value.avatar_url=await dt.user.updateAvatar(t.value.id,H))}async function v(H){!t.value||(await dt.user.updateBio(H),t.value.bio=H)}async function b(){await dt.notifications.markNotificationsAsRead(),s.value=0}
32async function k(H){t.value?await dt.user.updateOrientation(H):localStorage.setItem("o",H==null?"-1":H.toString()),window.location.reload()}function L(){var ee;if(t.value)return(ee=t.value)==null?void 0:ee.orientation;const H=localStorage.getItem("o");if(!H)return localStorage.setItem("o","0"),L();switch(parseInt(H)){case Et.Straight:return Et.Straight;case Et.Gay:return Et.Gay;case Et.Transgender:return Et.Transgender;default:return}}function E(){switch(L()){case Et.Straight:return"orientation-straight";case Et.Transgender:return"orientation-transgender";case Et.Gay:return"orientation-gay";default:return"infinity"}}const _=ae(!0),m=Ne(()=>t.value&&t.value.premium),x=Ne(()=>t.value&&t.value.gym_mode),A=Ne(()=>t.value&&t.value.is_badtag_prefer);function h(H){!t.value||(t.value.gym_mode=H)}function S(H){!t.value||(t.value.is_badtag_prefer=H)}function $(H){!t.value||(t.value.fap_api_license_key=H)}async function R(){return a.value=await dt.tags.getBadTags(),a}async function G(){return l.value=await dt.tags.getAnimatedtags(),l}return R(),G(),{user:t,setUser:p,logout:d,isAuthorized:r,subscriptions:e,setAvatar:g,setBio:v,isCreator:i,isAdmin:o,markNotificationsAsRead:b,notifications:n,unreadNotificationsCount:s,setOrientation:k,getOrientation:L,getOrientationIcon:E,isProduction:_,isPremium:m,isGymModeEnable:x,updateGymMode:h,isBadTagPrefer:A,updateBadTagPrefer:S,badTags:a,animaTionTags:l,fapAPI_license_key:u,updateLicense:$,getUpdateBadTags:R,getUpd
32ateAnimationTags:G}});function vI(t,e,n=1){const s=new Date;s.setTime(s.getTime()+n*24*60*60*1e3);const r="; expires="+s.toUTCString();document.cookie=[t,"=",e,r,"; path=/"].join("")}function Ym(t){let e=t+"=",n=document.cookie.split(";");for(let s=0;s<n.length;s++){let r=n[s];for(;r.charAt(0)===" ";)r=r.substring(1);if(r.indexOf(e)===0)return r.substring(e.length,r.length)}return""}const mI=async t=>{const e=await dt.videos.getScript(t.script.url,{notifyDownload:!0}),n={metadata:{title:t.name,description:t.description,performers:t.performers?t.performers.map(r=>r.name):[],video_url:t.stream_url,tags:t.tags?t.tags.map(r=>r.name):[],duration:t.duration*1e3,average_speed:t.script.average_speed,creator:t.user.username},actions:e.map(r=>({at:r[0],pos:r[1]}))},s=document.createElement("a");s.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(JSON.stringify(n))),s.setAttribute("download",`${t.name}.funscript`),s.style.display="none",document.body.appendChild(s),s.click(),document.body.removeChild(s)},l9=t=>{let e=[],n=-1;for(let s=1;s<t.length;s++){const r=t[s-1],i=t[s],o=r[0],a=i[0],l=r[1],u=a-o;if(u>3e3){e.push(r);const c=[o+u/2,l];e.push(c)}else e.push(r);n=s}return e.push(t[n]),e},_I=t=>ci(`${t}?token=${Ym("track_token")}`);class u9{constructor(e){Z(this,"baseUrl");Z(this,"csrfToken",null);Z(this,"products",{getProducts:()=>this.request("/products")});Z(this,"announcement",{getAnnouncement:()=>this.request("/announcement"),updateAnnouncement:e=>this.request("/admin/announcement","POST",e),uploadImage:e=>this.request("/admin/announcement/image","POST",e)});Z(this,"user",{getSession:()=>this.request("/session"),updateAvatar:(e,n)=>this.request(`/users/${e}/avatar`,"POST",n),setAgeVerified:()=>this.request("/age-verify","POST"),updateBio:e=>this.request("/users/@me/bio","PUT",{bio:e}),updateOrientation:e=>this.request("/users/@me/orientation","PUT",{orientation:e}),updateProfile:e=>this.request("/users/@me/profile","POST",e),updateUsername:(e,n)=>{const s={username:e,verify_password:n};return this.request("/users/@me/username","PUT",s)},getSubscriptions:()=>this.request("/users/@me/subscriptions"),updatePassword:(e,n)=>{const s={old_password:e,new_password:n};return this.request("/users/@me/password","PUT",s)},login:(e,n)=>{const s={email:e,password:n};return this.request("/session","POST",s)},logout:async()=>{await this.request("/session","DELETE"),Promise.resolve()},register:(e,n,s,r)=>{const i={email:n,username:e,password:s,code:r};return this.request("/users","POST",i)},getStatistics:()=>this.request("/users/@me/statistics"),getUploadQuota:()=>this.request("/users/@me/upload-quota","GET"),subscribe:e=>this.request(`/users/${e.id}/subscribe`,"POST"),unsubscribe:e=>this.request(`/users/${e.id}/unsubscribe`,"POST"),sendVerificationMail:(e,n)=>this.request("/verify-mail","POST",{email:e,captcha:n}),deleteSelf:e=>this.request("/users/@me","DELETE",{password:e}),sendForgotPasswordToken:e=>this.request("/forgot-password","POST",{email:e}),changePassword:(e,n,s)=>{const r={email:e,token:n,password:s};return this.request("/verify-token-change-password","PUT",r)},updateGymMode:e=>this.request("/users/@me/gym-mode","PUT",{gym_mode:e}),updateBadTagPrefer:e=>this.request("/users/@me/bad-tag-prefer","PUT",{is_badtag_prefer:e}),addRemoveLicenseKey:(e,n)=>this.request(`/update/license-key?isRemove=${e}`,"POST",{licensekey:n}),accessTokenFileUpload:()=>this.request("/user/file-upload-token","GET")});Z(this,"users",{getUsers:e=>{let n=`/users?page=${e.page}&limit=${e.limit}`;return e.query&&(n+=`&query=${e.query}`),e.force!==void 0&&(n+=`&force=${e.force}`),this.request(n)},getUser:e=>this.request(`/users/${e}`)});Z(this,"comments",{createComment:(e,n,s,r,i)=>this.request("/comments","POST",{thing_id:e,thing_type:n,comment:s,parent_id:r,captcha:i}),getComments:e=>this.request(`/comments?thing_id=${e}`),reportComment:(e,n,s,r,i)=>this.request(`/comments/${e}/report`,"POST",{reason:n,details:s,email:r,captcha:i})});Z(this,"rating",{setRating:(e,n)=>this.request("/rating","POST",{thing_id:e,thing_type:n})});Z(this,"videos",{getVideos:e=>{let n=`/videos?limit=${e.limit}&page=${e.page}&order_by=${e.orderBy}.${e.asc?"asc":"desc"}`;return n=this.appendVideoFilters(n,e),this.request(n)},getVideo:e=>this.request(`/videos/${e}`),getVideoCreator:(e,n)=>this.request(`/videos/${e}/${n}`),getRelatedVideos:e=>this.request(`/videos/${e}/related`),getScript:(e,n)=>{const s=n!=null&&n.notifyDownload?`${e}${e.includes("?")?"&":"?"}download=1`:e;return new Promise((r,i)=>{fetch(ci(s)).then(o=>{if(o.status===401){window.location.reload();return}return o.text()}).then(o=>{if(!o)return;if(o.startsWith('{"error"'))return i("Failed to fetch script");const a=[];o.split(` 33`).forEach(c=>{if(c.length===0)return;const d=c.split(","),p=parseInt(d[0]),g=parseInt(d[1]);a.push([p,g])});const u=l9(a);r(u)}).catch(o=>i(o))})},viewVideo:e=>this.request(`/videos/${e}/view`,"POST"),getSources:e=>this.request(`/videos/${e}/sources`),getBunnySources:e=>this.request(`/videos/${e}/bunny-sources`),uploadEndpoint:e=>{const n=e?`/video/update/${e}`:"/video/upload";return`${this.videoUploadApiBaseUrl()}${n}`},createVideo:(e,n,s)=>n?this.request("uploadfile:"+s,"POST",e):this.request("/videos","POST",e),updateVideo:(e,n,s,r)=>s?this.request("updatefile:"+r+":"+n,"POST",e):this.request(`/videos/${n}`,"PUT",e),updateScript:(e,n)=>this.request(`/videos/${e}/script`,"PUT",n),deleteVideo:e=>this.request(`/videos/${e}`,"DELETE"),restoreVideo:e=>
33this.request(`/soft-delete-videos/${e}?delete=true`,"DELETE"),reportVideo:(e,n,s,r,i)=>this.request(`/videos/${e}/report`,"POST",{reason:n,details:s,email:r,captcha:i}),getMetadataPh:e=>this.request("/get-metadata-ph","POST",{url:e}),getMetadata:e=>this.request("/get-metadata","POST",{url:e}),fetchVideoMetadata:e=>this.request("/videos/fetch-metadata","POST",{url:e}),getTrendingVideos:e=>{let n=`/trending?page=${e.page}&limit=${e.limit}`;return n=this.appendVideoFilters(n,e),this.request(n)},getBestVideos:e=>{let n=`/best?page=${e.page}&limit=${e.limit}`;return n=this.appendVideoFilters(n,e),this.request(n)},getRecommendedVideos:e=>{let n=`/recommended?page=${e.page}&limit=${e.limit}`;return n=this.appendVideoFilters(n,e),this.request(n)},getIntenseVideos:e=>{let n=`/intense?page=${e.page}&limit=${e.limit}`;return n=this.appendVideoFilters(n,e),this.request(n)}});Z(this,"tags",{getTags:(e={})=>{let n="/tags";const s=[];return e.orderBy&&s.push(`order_by=${e.orderBy}`),e.query&&s.push(`query=${encodeURIComponent(e.query)}`),e.user&&s.push(`user=${e.user}`),e.performer&&s.push(`performer=${e.performer}`),e.orientation!==void 0&&s.push(`orientation=${e.orientation}`),e.page&&s.push(`page=${e.page}`),e.limit&&s.push(`limit=${e.limit}`),s.length>0&&(n+="?"+s.join("&")),this.request(n)},getTag:e=>this.request(`/tags/${e}`),getTopTags:(e={count:30,order:"desc"})=>{let n=`/tags/top?count=${e.count}&order=${e.order}`;return this.request(n)},getRelatedTags:(e,n=30)=>this.request(`/tags/${encodeURIComponent(e)}/related?limit=${n}`),getTagSlug:e=>{let n=`/tag/${e.slug}`;return e.page&&(n+=`?page=${e.page}`),e.limit&&(n+=`&limit=${e.limit}`),e.query&&(n+=`&query=${e.query}`),e.orientation!==void 0&&(n+=`&orientation=${e.orientation}`),this.request(n)},addRemoveTag:(e,n,s)=>{let r=`/tag/${e}/${n}`;return s&&(r+=`?action=${s}`),this.request(r,"PUT")},getBadTags:()=>this.request("/tags/bad-tags"),getAnimatedtags:()=>this.request("/tags/animated-tags"),getPendingTags:e=>{const n=new URLSearchParams;e.page&&n.append("page",String(e.page)),e.limit&&n.append("limit",String(e.limit)),e.status&&n.append("status",e.status),e.query&&n.append("query",e.query);const s=n.toString(),r=`/pending-tags${s?`?${s}`:""}`;return this.request(r)},createTag:e=>this.request("/tags","POST",e),updateTag:(e,n)=>this.request(`/tags/${e}`,"PUT",n),deleteTag:e=>this.request(`/tags/${e}`,"DELETE"),reportTag:(e,n,s,r,i)=>this.request(`/tags/${e}/report`,"POST",{reason:n,details:s,email:r,captcha:i})});Z(this,"performers",{getPerformer:e=>this.request(`/performers/${e}`),createPerformer:(e,n,s,r,i)=>this.request("/performers","POST",{name:e,slug:n,status:s,description:r,category:i}),createPerformerAvatar:(e,n)=>this.request(`/performers/${e}/avatar`,"POST",n),updatePerformer:(e,n,s,r,i,o)=>this.request(`/performers/${e}`,"PUT",{name:n,status:s,slug:r,description:i,category:o}),getPerformers:e=>{let n=`/performers?page=${e.page}&limit=${e.limit}`;return e.query&&(n+=`&query=${encodeURIComponent(e.query)}`),e.force!==void 0&&(n+=`&force=${e.force.toString()}`),e.status!==void 0&&(n+=`&status=${e.status.toString()}`),e.contextPage&&(n+=`&contextPage=${e.contextPage}`),e.add!==void 0&&(n+=`&add=${e.add.toString()}`),this.request(n)},reportPerformer:(e,n,s,r,i)=>this.request(`/performers/${e}/report`,"POST",{reason:n,details:s,email:r,captcha:i})});Z(this,"creators",{getCreators:e=>{let n=`/creators?page=${e.page}&limit=${e.limit}`;return e.query&&(n+=`&query=${encodeURIComponent(e.query)}`),e.status!==void 0&&(n+=`&status=${e.status.toString()}`),this.request(n)},updateCreator:(e,n,s,r,i,o)=>this.request(`/creators/${e}`,"PUT",{email:n,username:s,bio:r,is_verified:i,is_enabled:o}),deleteCreator:e=>this.request(`/creators/${e}`,"DELETE")});Z(this,"providers",{getProviders:()=>this.request("/providers")});Z(this,"feed",{getFeed:(e,n,s,r,i)=>{let o="/feed";return i!==void 0&&(o+=`?orientation=${i}&`),o+=`minduration=${e}&maxduration=${n}&`,o+=`minstroke=${s}&maxstroke=${r}`,this.request(o)}});Z(this,"notifications",{getNotifications:(e=1,n=10)=>this.request(`/notifications?page=${e}&limit=${n}`),getUnreadNotificationsCount:()=>this.request("/notifications/unread-count"),markNotificationsAsRead:()=>this.request("/notifications","POST")});Z(this,"admin",{findUsers:e=>this.request(`/admin/users?query=${e}`),updateUser:(e,n)=>this.request(`/admin/users/${e}`,"PATCH",n),deleteUser:e=>this.request(`/admin/users/${e}`,"DELETE"),getPremiumUsers:()=>this.request("/premium-users","GET"),updatePremium:(e,n)=>{const s=n.toString().split("T")[0].replace(/-/g,"/");return this.request("/admin/enable-premium","POST",{ExpireOn:s,Email:e})},removePremiumUser:e=>this.request("/admin/cancel-premium","POST",{Email:e}),flushCacheData:()=>this.request("/admin/flush-cache-data","DELETE"),getCacheData:()=>this.request("/admin/get-cache-data","GET"),addRemoveBadTag:(e,n)=>this.request(`/admin/edit-badtag-list?${n?"tagid":"tagname"}=${e}`,"POST"),addRemoveAnimatedTag:(e,n)=>this.request(`/admin/edit-animatedtag-list?${n?"tagid":"tagname"}=${e}`,"POST"),getReports:(e={})=>{const n=new URLSearchParams;e.status&&n.set("status",e.status),e.type&&n.set("type",e.type),e.sort&&n.set("sort",e.sort),e.page&&n.set("page",String(e.page)),e.limit&&n.set("limit",String(e.limit));const s=n.toString();return this.request(`/admin/reports${s?`?${s}`:""}`)},getReportCounts:e=>{const n=e&&e!=="all"?`?type=${e}`:"";return this.request(`/admin/reports/counts${n}`)},getReportReview:e=>this.request(`/admin/reports/${e}`),actOnReport:(e,n,s,r)=>this.request(`/admin/reports/${e}/action`,"POST",{action:n,target_id:s,target_slug:r}),undoReport:(e,n)=>this.request(`/admin/reports/${e}/undo`,"POST",n?{mode:n}:void 0)});Z(this,"funscripts",{getFunscripts:e=>{let n=`/users/@me/funscripts?limit=${e.limit}&page=${e.page}&order_by=${e.orderBy}.${e.asc?"asc":"desc"}`;return e.status&&(n+=`&status=${e.status}`),e.fromDate&&(n+=`&from=${e.fromDate.toISOString()}`),e.toDate&&(n+=`&to=${e.toDate.toISOString()}`),e.speed&&(n+=`&speed=${e.speed}`),e.minduration!==void 0&&(n+=`&minduration=${e.minduration}`),e.maxduration!==void 0&&(n+=`&maxduration=${e.maxduration}`),e.query&&(n+=`&q=${e.query}`),this.request(n)},getFunscript:e=>this.request(`/users/@me/funscripts/${e}`),createFunscriptVideo:e=>this.request("/users/@me/funscript","POST",e),updateFunscriptVideo:e=>this.request(`/users/@me/funscripts/${e.id}`,"PUT",e),deleteFunscript:e=>this.request(`/users/@me/funscript/${e}`,"DELETE"),getQueueCount:()=>this.request("/funscripts/queue-count"),getFunscriptCountLast24Hours:()=>this.request("/users/@me/funscripts/count")}
33);Z(this,"gymmode",{addData:e=>this.request("/gym-mode","POST",e),getSessionData:(e,n,s,r)=>(console.log(e,s,r),this.request(`/gym-mode?device=${e}&user=${n}&days=${s}`)),filterUser:e=>this.request(`/filter-user/${e}`,"GET")});Z(this,"redirections",{getRedirections:e=>{let n="/redirections";return e!=null&&e.id&&(n+=`/${e.id}`),e!=null&&e.page&&(n+=`?page=${e.page}`),e!=null&&e.query&&(n+=`&q=${e.query}`),e!=null&&e.limit&&(n+=`&limit=${e.limit}`),this.request(n)},createRedirection:(e,n,s)=>{const r={from_path:e,to_path:n,user_id:s};return this.request("/redirections","POST",r)},updateRedirection:(e,n,s)=>{const r={from_path:n,to_path:s};return this.request(`/redirections/${e}`,"PUT",r)},deleteRedirection:e=>this.request(`/redirections/${e}`,"DELETE")});Z(this,"taxonomy",{getTagAliases:()=>this.request("/admin/taxonomy/tag-aliases"),createTagAlias:(e,n,s,r)=>typeof e=="object"?this.request("/admin/taxonomy/tag-aliases","POST",{source_id:e.sourceId,source_ids:e.sourceIds,target_id:e.targetId,source_slug:e.sourceSlug,target_slug:e.targetSlug}):this.request("/admin/taxonomy/tag-aliases","POST",{source_id:e,target_id:n,source_slug:s,target_slug:r}),deleteTagAlias:e=>this.request(`/admin/taxonomy/tag-aliases/${e}`,"DELETE"),getPerformerAliases:()=>this.request("/admin/taxonomy/performer-aliases"),createPerformerAlias:(e,n,s,r)=>typeof e=="object"?this.request("/admin/taxonomy/performer-aliases","POST",{source_id:e.sourceId,source_ids:e.sourceIds,target_id:e.targetId,source_slug:e.sourceSlug,target_slug:e.targetSlug}):this.request("/admin/taxonomy/performer-aliases","POST",{source_id:e,target_id:n,source_slug:s,target_slug:r}),deletePerformerAlias:e=>this.request(`/admin/taxonomy/performer-aliases/${e}`,"DELETE"),getTaxonomyBlacklist:(e={})=>{const n=new URLSearchParams;e.kind&&n.set("kind",e.kind),e.q&&n.set("q",e.q),e.page&&n.set("page",String(e.page)),e.limit&&n.set("limit",String(e.limit));const s=n.toString();return this.request(`/admin/taxonomy-blacklist${s?`?${s}`:""}`)},createTaxonomyBlacklist:e=>this.request("/admin/taxonomy-blacklist","POST",e),deleteTaxonomyBlacklist:e=>this.request(`/admin/taxonomy-blacklist/${e}`,"DELETE")});Z(this,"ads",{getAds:e=>{let n="/admin/ads";const s=[];return e.q&&s.push(`q=${encodeURIComponent(e.q)}`),e.type&&s.push(`type=${e.type}`),e.enabled!==void 0&&s.push(`enabled=${e.enabled}`),e.page&&s.push(`page=${e.page}`),e.limit&&s.push(`limit=${e.limit}`),e.sort_by&&s.push(`sort_by=${e.sort_by}`),s.length>0&&(n+="?"+s.join("&")),this.request(n)},getAd:e=>this.request(`/admin/ads/${e}`),createAd:e=>this.request("/admin/ads","POST",e),updateAd:(e,n)=>this.request(`/admin/ads/${e}`,"PUT",n),deleteAd:e=>this.request(`/admin/ads/${e}`,"DELETE"),duplicateAd:e=>this.request(`/admin/ads/${e}/duplicate`,"POST"),uploadCreative:(e,n)=>this.request(`/admin/ads/${e}/creative`,"POST",n),getRotatedAds:(e,n)=>{let s=`/ads/rotate?type=${e}`;return n&&(s+=`&limit=${n}`),this.request(s)},recordEvent:(e,n)=>this.request(`/ads/${e}/event`,"POST",{event_type:n})});Z(this,"geolocation",{getBlockedRegions:()=>this.request("/admin/geo-blocks","GET"),updateBlockedRegion:(e,n,s)=>this.request("/admin/geo-blocks","POST",{region_code:e,region_name:n,is_blocked:s})});Z(this,"playlists",{getPlaylists:e=>{let n=`/playlists?limit=${e.limit}&page=${e.page||0}`;return e.query&&(n+=`&q=${encodeURIComponent(e.query)}`),e.userID&&(n+=`&user_id=${e.userID}`),e.tagIDs&&(n+=`&tag_ids=${e.tagIDs.join(",")}`),e.orderBy&&(n+=`&order_by=${e.orderBy}`),e.asc!==void 0&&(n+=`&asc=${e.asc}`),e.liked!==void 0&&(n+=`&liked=${e.liked}`),e.privacy!==void 0&&(n+=`&privacy=${e.privacy}`),e.likedBy&&(n+=`&liked_by=${e.likedBy}`),this.request(n)},getPlaylist:e=>this.request(`/playlists/${e}`),createPlaylist:(e,n,s,r)=>this.request("/playlists","POST",{name:e,description:n,privacy:s,tags:r||[]}),updatePlaylist:(e,n)=>this.request(`/playlists/${e}`,"PUT",n),deletePlaylist:e=>this.request(`/playlists/${e}`,"DELETE"),getPlaylistVideos:(e,n=20,s=0)=>{let r=`/playlists/${e}/videos?limit=${n}&page=${s}`;return this.request(r)},addVideoToPlaylist:(e,n)=>this.request(`/playlists/${e}/videos`,"POST",{video_id:n}),removeVideoFromPlaylist:(e,n)=>this.request(`/playlists/${e}/videos/${n}`,"DELETE"),reorderPlaylistVideos:(e,n)=>this.request(`/playlists/${e}/videos/reorder`,"PUT",{order:n}),recordView:e=>this.request(`/playlists/${e}/view`,"POST"),toggleLike:e=>this.request(`/playlists/${e}/like`,"POST"),updateThumbnail:(e,n)=>this.request(`/playlists/${e}/thumbnail`,"POST",n),adminDeletePlaylist:(e,n,s)=>this.request(`/admin/playlists/${e}`,"DELETE",{reason:n,reference_id:s||""}),reportPlaylist:(e,n,s,r,i)=>this.request(`/playlists/${e}/report`,"POST",{reason:n,details:s,email:r,captcha:i})});Z(this,"monitoring",{getProxyProviders:()=>this.request("/metrics/proxy-providers"),getProxyProvidersHistory:(e={})=>{let n="/metrics/proxy-providers/history?";return e.page!==void 0&&(n+=`page=${e.page}&`),e.limit!==void 0&&(n+=`limit=${e.limit}&`),e.provider!==void 0&&(n+=`provider=${e.provider}&`),e.lane!==void 0&&(n+=`lane=${e.lane}&`),e.from!==void 0&&(n+=`from=${encodeURIComponent(e.from)}&`),e.to!==void 0&&(n+=`to=${encodeURIComponent(e.to)}&`),this.request(n.slice(0,-1))},checkProxyProviders:()=>this.request("/admin/proxy-providers/check","POST"),getHealth:()=>this.request("/health"),getStats:()=>this.request("/stats"),getMetricsHistory:(e={})=>{let n="/metrics-history?";return e.hours!==void 0&&(n+=`hours=${e.hours}&`),e.page!==void 0&&(n+=`page=${e.page}&`),e.limit!==void 0&&(n+=`limit=${e.limit}&`),e.from!==void 0&&(n+=`from=${encodeURIComponent(e.from)}&`),e.to!==void 0&&(n+=`to=${encodeURIComponent(e.to)}&`),this.request(n.slice(0,-1))},getScraperHealth:(e={})=>{let n="/scraper-health?";return e.page!==void 0&&(n+=`page=${e.page}&`),e.limit!==void 0&&(n+=`limit=${e.limit}&`),this.request(n.slice(0,-1))},getVideoProcessingMetrics:(e={})=>{let n="/metrics/video-processing?";return e.from!==void 0&&(n+=`from=${e.from}&`),e.to!==void 0&&(n+=`to=${e.to}&`),this.request(n.slice(0,-1))},getVideoProcessingMetricsHistory:(e={})=>{let n="/metrics/video-processing/history?";return e.page!==void 0&&(n+=`page=${e.page}&`),e.limit!==void 0&&(n+=`limit=${e.limit}&`),this.request(n.slice(0,-1))}});this.baseUrl=e,this.loadCSRFToken()}async loadCSRFToken(){try{const e=await fetch(this.baseUrl+"/csrf",{method:"GET",credentials:"include"}),n=e.headers.get("content-type")||"";if(!n.includes("application/json"))throw new Error(`Expected JSON from CSRF endpoint, got ${n}`);const s=await e.json();this.csrfToken=s.data.csrf_token}catch(e){console.error("Failed to load CSRF token:",e)}}async refreshCSRFToken(){await this.loadCSRFToken()}videoUploadApiBaseUrl(){return"https://upload.faptap.net/api"}request(e,n="GET",s){return new Promise((r,i)=>{s&&!(s instanceof FormData)&&(s=JSON.stringify(s)),e=this.baseUrl+e;let o="";if(e.includes("uploadfile")&&n==="POST")o=e.split(":")[1],e=this.videos.uploadEndpoint();else if(e.includes("updatefile")&&n==="POST"){const l=e.split(":");o=l[1],e=this.videos.uploadEndpoint(l[2])}const a=o?{Fileuploadtoken:o}:{};n!=="GET"&&this.csrfToken&&(a["X-CSRF-Token"]=this.csrfToken),fetch(e,{method:n,body:s||void 0,credentials:"include",headers:a}).then(async l=>{if(l.status===403&&this.refreshCSRFToken(),!(l.headers.get("content-type")||"").includes("application/json")){const p=(await l.text().catch(()=>"")).slice(0,120).replace(/\s+/g," ").trim();throw new Error(`Unexpected API response format (${l.status} ${l.statusText})${p?`: ${p}`:""}`)}try{return await l.json()}catch(d){throw new Error(`Failed to parse API response as JSON: ${d.message}`)}}).then(l=>"error"in l?(l.error&&typeof l.error=="string"&&l.error.includes("CSRF")&&this.refreshCSRFToken(),i(l.error)):(Xe().isProduction=typeof l.ci_environment>"u"||l.ci_environment==""||l.ci_environment!=="development",r(l.data))).catch(l=>["/session","/verify-mail","/users","/forgot-password"].includes(e)&&n==="POST"?i(new Error("Request failed. Please try again.")):i(l))})}appendVideoFilters(e,n){return n.user&&(e+=`&user_id=${n.user}`),n.performer&&(e+=`&performer_id=${n.performer}`),n.tag&&(e+=`&tag_ids=${n.tag}`),n.subscriptions&&(e+="&subscriptions=true"),n.likes&&(e+="&likes=true"),n.action&&(e+="&action=true"),n.query&&(e+=`&q=${n.query}`),n.from&&(e+=`&from=${n.from}`),n.speed&&(e+=`&speed=${n.speed}`),n.source&&(e+=`&source=${n.source}`),n.minduration!==void 0&&(e+=`&minduration=${n.minduration}`),n.maxduration!==void 0&&(e+=`&maxduration=${n.maxduration}`),n.video&&(e+=`&video_id=${n.video}`),n.orientation!==void 0&&(e+=`&orientation=${n.orientation}`),n.tagsExclude!==void 0&&(e+=`&tags_exclude=${n.tagsExclude}`),n.removeExcludedTags&&(e+=`&removeExcludedTags=${n.removeExcludedTags}`),n.badTagPreference&&(e+=`&badTagPreference=${n.badTagPreference}`),n.is_softdeleted&&(e+="&is_softdeleted=true"),n.hideanimatedvideo&&(e+="&hideanimatedvideo=true"),n.showSoftDeleted&&(e+="&showSoftDeleted=true"),n.ContextPage&&(e+=`&ContextPage=${n.ContextPage}`),n.includePrivate&&(e+="&includePrivate=true"),n.projections&&n.projections.length>0&&(e+=`&projections=${n.projections.join(",")}`),n.vr&&(e+="&vr=true"),n.selfHosted!==void 0&&(e+=`&self_hosted=${n.selfHosted}`),e}}var Et=(t=>(t[t.Straight=0]="Straight",t[t.Transgender=1]="Transgender",t[t.Gay=2]="Gay",t))(Et||{}),c9=(t=>(t.slow="slow",t.medium="medium",t.fast="fast",t.veryfast="veryfast",t))(c9||{}),d9=(t=>(t.day="day",t.week="week",t.month="month",t.year="year",t))(d9||{}),f9=(t=>(t.short="short",t.medium="medium",t.long="long",t))(f9||{}),h9=(t=>(t.views="views",t.speed="speed",t.duration="duration",t.likes="likes",t.relevance="relevance",t.creation="creation",t.action="action",t))(h9||{}),d1=(t=>(t[t.Video=0]="Video",t[t.Comment=1]="Comment",t[t.Playlist=2]="Playlist",t))(d1||{}),dn=(t=>(t[t.Report=0]="Report",t[t.VideoComment=1]="VideoComment",t[t.Video=2]="Video",t[t.VideoCommentResponse=3]="VideoCommentResponse",t[t.BrokenVideo=7]="BrokenVideo",t[t.FunscriptReady=8]="FunscriptReady",t[t.PlaylistComment=9]="PlaylistComment",t[t.PlaylistCommentResponse=10]="PlaylistCommentResponse",t[t.PlaylistLike=11]="PlaylistLike",t[t.PlaylistVideoAdded=12]="PlaylistVideoAdded",t[t.NewFollower=13]="NewFollower",t[t.VideoLike=14]="VideoLike",t[t.ScriptDownload=15]="ScriptDownload",t[t.PlaylistVideoAddedToCreator=16]="PlaylistVideoAddedToCreator",t[t.CommentLike=17]="CommentLike",t))(dn||{});const p9=`${window.location.protocol}//${window.location.hostname}${window.location.port!==""?`:${window.location.port}`:""}/api/assets/`;var j0;const g9={}.FAPTAP_CAPTCHA_KEY||((j0=window.config)==null?void 0:j0.FAPTAP_CAPTCHA_KEY)||"10000000-ffff-ffff-ffff-000000000001",yI=String("true").toLowerCase()==="true",ci=t=>t?t.includes("http://")||t.includes("https://")?t:p9+t:"/fallback.webp",dt=new u9("/api"),Ns=Pa("dialogs",()=>{const t=ae(!1),e=ae(!1),n=ae(!1);let s=!1;const r=()=>{const o=document.getElementById("player");!o||o.paused||(o.pause(),s=!0)},i=()=>
33{if(!s)return;s=!1;const o=document.getElementById("player");!o||o.play()};return ct(()=>t.value,o=>o?r():i()),ct(()=>e.value,o=>o?r():i()),ct(()=>n.value,o=>o?r():i()),{authDialog:t,deviceDialog:e,changePassword:n}}),v9={key:0,class:"text-center text-red-500"},m9=Ze({__name:"AuthLogin",setup(t){const e=Ds({email:"",password:"",loading:!1}),n=is(),s=Oa(),r=Xe(),i=Ns(),o=async()=>{e.error=void 0,e.loading=!0;try{const a=await dt.user.login(e.email,e.password);if(await r.setUser(a),!r.isAuthorized)return;i.authDialog=!1;const l=s.query.redirect||"/";n.push(l)}catch(a){e.error=a}finally{e.loading=!1}};return(a,l)=>(w(),C("form",{onSubmit:It(o,["prevent"]),class:"flex flex-col gap-y-3 items-center px-1"},[T(Wn,{class:"w-full",required:"",disabled:e.loading,modelValue:e.email,"onUpdate:modelValue":l[0]||(l[0]=u=>e.email=u),type:"email",placeholder:"E-Mail"},null,8,["disabled","modelValue"]),T(Wn,{class:"w-full",required:"",disabled:e.loading,modelValue:e.password,"onUpdate:modelValue":l[1]||(l[1]=u=>e.password=u),type:"password",placeholder:"Password"},null,8,["disabled","modelValue"]),T(ze,{loading:e.loading,theme:"blue",class:"mt-2 w-full"},{default:V(()=>[...l[2]||(l[2]=[N("Login",-1)])]),_:1},8,["loading"]),e.error?(w(),C("span",v9,ce(e.error),1)):oe("",!0)],32))}}),Yp="hcaptcha-api-script-id",Xm="_hcaptchaOnLoad";let af,Jm;const Wc=new Promise((t,e)=>{af=t,Jm=e});function _9(t){if(window.hcaptcha)return af(),Wc;if(document.getElementById(Yp))return Wc;window[Xm]=af;const e=y9(t),n=document.createElement("script");return n.id=Yp,n.src=e,n.async=!0,n.defer=!0,n.onerror=s=>{console.error("Failed to load api: "+e,s),Jm("Failed to load api.js")},document.head.appendChild(n),Wc}function y9(t){let e=t.apiEndpoint;return e=ks(e,"render","explicit"),e=ks(e,"onload",Xm),e=ks(e,"recaptchacompat",t.reCaptchaCompat===!1?"off":null),e=ks(e,"hl",t.language),e=ks(e,"sentry",t.sentry),e=ks(e,"custom",t.custom),e=ks(e,"endpoint",t.endpoint),e=ks(e,"assethost",t.assethost),e=ks(e,"imghost",t.imghost),e=ks(e,"reportapi",t.reportapi),e}function ks(t,e,n){if(n!=null){const s=t.includes("?")?"&":"?";return t+s+e+"="+encodeURIComponent(n)}return t}var b9=(t,e)=>{for(const[n,s]of e)t[n]=s;return t};const w9={name:"VueHcaptcha",props:{sitekey:{type:String,required:!0},theme:{type:String,default:void 0},size:{type:String,default:void 0},tabindex:{type:String,default:void 0},language:{type:String,default:void 0},reCaptchaCompat:{type:Boolean,default:!0},challengeContainer:{type:String,default:void 0},rqdata:{type:String,default:void 0},sentry:{type:Boolean,default:!0},custom:{type:Boolean,default:void 0},apiEndpoint:{type:String,default:"https://hcaptcha.com/1/api.js"},endpoint:{type:String,default:void 0},reportapi:{type:String,default:void 0},assethost:{type:String,default:void 0},imghost:{type:String,default:void 0}},data:()=>({widgetId:null,hcaptcha:null,renderedCb:null}),mounted(){return _9(this.$props).then(this.onApiLoaded).catch(this.onError)},unmounted(){this.teardown()},destroyed(){this.teardown()},methods:{teardown(){this.widgetId&&(this.hcaptcha.reset(this.widgetId),this.hcaptcha.remove(this.widgetId))},onApiLoaded(){this.hcaptcha=window.hcaptcha;const t={sitekey:this.sitekey,theme:this.theme,size:this.size,tabindex:this.tabindex,callback:this.onVerify,"expired-callback":this.onExpired,"chalexpired-callback":this.onChallengeExpired,"error-callback":this.onError,"open-callback":this.onOpen,"close-callback":this.onClose};this.challengeContainer&&(t["challenge-container"]=this.challengeContainer),this.widgetId=this.hcaptcha.render(this.$el,t),this.rqdata&&this.hcaptcha.setData(this.widgetId,{rqdata:this.rqdata}),this.onRendered()},execute(){this.widgetId?(this.hcaptcha.execute(this.widgetId),this.onExecuted()):this.renderedCb=()=>{this.renderedCb=null,this.execute()}},executeAsync(){if(this.widgetId)return this.onExecuted(),this.hcaptcha.execute(this.widgetId,{async:!0});let t;const e=new Promise(n=>{t=n});return this.renderedCb=()=>{this.renderedCb=null,t()},e.then(this.executeAsync)},reset(){this.widgetId?(this.hcaptcha.reset(this.widgetId),this.onReset()):this.$emit("error","Element is not rendered yet and thus cannot reset it. Wait for `rendered` event to safely call reset.")},onRendered(){this.$emit("rendered"),this.renderedCb&&this.renderedCb()},onExecuted(){this.$emit("executed")},onReset(){this.$emit("reset")},onError(t){this.$emit("error",t),this.reset()},onVerify(){const t=this.hcaptcha.getResponse(this.widgetId),e=this.hcaptcha.getRespKey(this.widgetId);this.$emit("verify",t,e)},onExpired(){this.$emit("expired")},onChallengeExpired(){this.$emit("challengeExpired")},onOpen(){this.$emit("opened")},onClose(){this.$emit("closed")}}},x9={id:"hcap-script"};function C9(t,e,n,s,r,i){return w(),C("div",x9)}var k9=b9(w9,[["render",C9]]);function pi(t){this._maxSize=t,this.clear()}pi.prototype.clear=function(){this._size=0,this._values=Object.create(null)};pi.prototype.get=function(t){return this._values[t]};pi.prototype.set=function(t,e){return this._size>=this._maxSize&&this.clear(),t in this._values||this._size++,this._values[t]=e};var S9=/[^.^\]^[]+|(?=\[\]|\.\.)/g,Qm=/^\d+$/,E9=/^\d/,A9=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,L9=/^\s*(['"]?)(.*?)(\1)\s*$/,f1=512,Xp=new pi(f1),Jp=new pi(f1),Qp=new pi(f1),ri={Cache:pi,split:lf,normalizePath:Gc,setter:function(t){var e=Gc(t);return Jp.get(t)||Jp.set(t,function(s,r){for(var i=0,o=e.length,a=s;i<o-1;){var l=e[i];if(l==="__proto__"||l==="constructor"||l==="prototype")return s;a=a[e[i++]]}a[e[i]]=r})},getter:function(t,e){var n=Gc(t);return Qp.get(t)||Qp.set(t,function(r){for(var i=0,o=n.length;i<o;)if(r!=null||!e)r=r[n[i++]];else return;return r})},join:function(t){return t.reduce(function(e,n){return e+(h1(n)||Qm.test(n)?"["+n+"]":(e?".":"")+n)},"")}
vendor: 11,817 bytes, line 33
33,forEach:function(t,e,n){T9(Array.isArray(t)?t:lf(t),e,n)}};function Gc(t){return Xp.get(t)||Xp.set(t,lf(t).map(function(e){return e.replace(L9,"$2")}))}function lf(t){return t.match(S9)||[""]}function T9(t,e,n){var s=t.length,r,i,o,a;for(i=0;i<s;i++)r=t[i],r&&(P9(r)&&(r='"'+r+'"'),a=h1(r),o=!a&&/^\d+$/.test(r),e.call(n,r,a,o,i,t))}function h1(t){return typeof t=="string"&&t&&["'",'"'].indexOf(t.charAt(0))!==-1}function M9(t){return t.match(E9)&&!t.match(Qm)}function O9(t){return A9.test(t)}function P9(t){return!h1(t)&&(M9(t)||O9(t))}const $9=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,qu=t=>t.match($9)||[],Wu=t=>t[0].toUpperCase()+t.slice(1),p1=(t,e)=>qu(t).join(e).toLowerCase(),e2=t=>qu(t).reduce((e,n)=>`${e}${e?n[0].toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()}`,""),R9=t=>Wu(e2(t)),V9=t=>p1(t,"_"),I9=t=>p1(t,"-"),H9=t=>Wu(p1(t," ")),F9=t=>qu(t).map(Wu).join(" ");var Zc={words:qu,upperFirst:Wu,camelCase:e2,pascalCase:R9,snakeCase:V9,kebabCase:I9,sentenceCase:H9,titleCase:F9},g1={exports:{}};g1.exports=function(t){return t2(D9(t),t)};g1.exports.array=t2;function t2(t,e){var n=t.length,s=new Array(n),r={},i=n,o=B9(e),a=N9(t);for(e.forEach(function(u){if(!a.has(u[0])||!a.has(u[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});i--;)r[i]||l(t[i],i,new Set);return s;function l(u,c,d){if(d.has(u)){var p;try{p=", node was:"+JSON.stringify(u)}catch{p=""}throw new Error("Cyclic dependency"+p)}if(!a.has(u))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(u));if(!r[c]){r[c]=!0;var g=o.get(u)||new Set;if(g=Array.from(g),c=g.length){d.add(u);do{var v=g[--c];l(v,a.get(v),d)}while(c);d.delete(u)}s[--n]=u}}}function D9(t){for(var e=new Set,n=0,s=t.length;n<s;n++){var r=t[n];e.add(r[0]),e.add(r[1])}return Array.from(e)}function B9(t){for(var e=new Map,n=0,s=t.length;n<s;n++){var r=t[n];e.has(r[0])||e.set(r[0],new Set),e.has(r[1])||e.set(r[1],new Set),e.get(r[0]).add(r[1])}return e}function N9(t){for(var e=new Map,n=0,s=t.length;n<s;n++)e.set(t[n],n);return e}const j9=Object.prototype.toString,U9=Error.prototype.toString,z9=RegExp.prototype.toString,q9=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",W9=/^Symbol\((.*)\)(.*)$/;function G9(t){return t!=+t?"NaN":t===0&&1/t<0?"-0":""+t}function e0(t,e=!1){if(t==null||t===!0||t===!1)return""+t;const n=typeof t;if(n==="number")return G9(t);if(n==="string")return e?`"${t}"`:t;if(n==="function")return"[Function "+(t.name||"anonymous")+"]";if(n==="symbol")return q9.call(t).replace(W9,"Symbol($1)");const s=j9.call(t).slice(8,-1);return s==="Date"?isNaN(t.getTime())?""+t:t.toISOString(t):s==="Error"||t instanceof Error?"["+U9.call(t)+"]":s==="RegExp"?z9.call(t):null}function Pr(t,e){let n=e0(t,e);return n!==null?n:JSON.stringify(t,function(s,r){let i=e0(this[s],e);return i!==null?i:r},2)}function n2(t){return t==null?[]:[].concat(t)}let s2,r2,i2,Z9=/\$\{\s*(\w+)\s*\}/g;s2=Symbol.toStringTag;class t0{constructor(e,n,s,r){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[s2]="Error",this.name="ValidationError",this.value=n,this.path=s,this.type=r,this.errors=[],this.inner=[],n2(e).forEach(i=>{if(Rn.isError(i)){this.errors.push(...i.errors);const o=i.inner.length?i.inner:[i];this.inner.push(...o)}else this.errors.push(i)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}r2=Symbol.hasInstance;i2=Symbol.toStringTag;class Rn extends Error{static formatError(e,n){const s=n.label||n.path||"this";return n=Object.assign({},n,{path:s,originalPath:n.path}),typeof e=="string"?e.replace(Z9,(r,i)=>Pr(n[i])):typeof e=="function"?e(n):e}static isError(e){return e&&e.name==="ValidationError"}constructor(e,n,s,r,i){const o=new t0(e,n,s,r);if(i)return o;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[i2]="Error",this.name=o.name,this.message=o.message,this.type=o.type,this.value=o.value,this.path=o.path,this.errors=o.errors,this.inner=o.inner,Error.captureStackTrace&&Error.captureStackTrace(this,Rn)}static[r2](e){return t0[Symbol.hasInstance](e)||super[Symbol.hasInstance](e)}}let Ms={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:t,type:e,value:n,originalValue:s})=>{const r=s!=null&&s!==n?` (cast from the value \`${Pr(s,!0)}\`).`:".";return e!=="mixed"?`${t} must be a \`${e}\` type, but the final value was: \`${Pr(n,!0)}\``+r:`${t} must match the configured type. The validated value was: \`${Pr(n,!0)}\``+r}},Fn={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},K9={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},uf={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},Y9={isValue:"${path} field must be ${value}"},wl={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},X9={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},J9={notType:t=>{const{path:e,value:n,spec:s}=t,r=s.types.length;if(Array.isArray(n)){if(n.length<r)return`${e} tuple value has too few items, expected a length of ${r} but got ${n.length} for value: \`${Pr(n,!0)}\``;if(n.length>r)return`${e} tuple value has too many items, expected a length of ${r} but got ${n.length} for value: \`${Pr(n,!0)}\``}return Rn.formatError(Ms.notType,t)}};Object.assign(Object.create(null),{mixed:Ms,string:Fn,number:K9,date:uf,object:wl,array:X9,boolean:Y9,tuple:J9});const v1=t=>t&&t.__isYupSchema__;class au{static fromOptions(e,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:s,then:r,otherwise:i}=n,o=typeof s=="function"?s:(...a)=>a.every(l=>l===s);return new au(e,(a,l)=>{var u;let c=o(...a)?r:i;return(u=c==null?void 0:c(l))!=null?u:l})}constructor(e,n){this.fn=void 0,this.refs=e,this.refs=e,this.fn=n}resolve(e,n){let s=this.refs.map(i=>i.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),r=this.fn(s,e,n);if(r===void 0||r===e)return e;if(!v1(r))throw new TypeError("conditions must return a schema object");return r.resolve(n)}}const al={context:"$",value:"."};class gi{constructor(e,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof e!="string")throw new TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),e==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===al.context,this.isValue=this.key[0]===al.value,this.isSibling=!this.isContext&&!this.isValue;let s=this.isContext?al.context:this.isValue?al.value:"";this.path=this.key.slice(s.length),this.getter=this.path&&ri.getter(this.path,!0),this.map=n.map}getValue(e,n,s){let r=this.isContext?s:this.isValue?e:n;return this.getter&&(r=this.getter(r||{})),this.map&&(r=this.map(r)),r}cast(e,n){return this.getValue(e,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(e){return e&&e.__isYupRef}}gi.prototype.__isYupRef=!0;const Jr=t=>t==null;function Si(t){function e({value:n,path:s="",options:r,originalValue:i,schema:o},a,l){const{name:u,test:c,params:d,message:p,skipAbsent:g}=t;let{parent:v,context:b,abortEarly:k=o.spec.abortEarly,disableStackTrace:L=o.spec.disableStackTrace}=r;const E={value:n,parent:v,context:b};function _(G={}){const H=o2(Object.assign({value:n,originalValue:i,label:o.spec.label,path:G.path||s,spec:o.spec,disableStackTrace:G.disableStackTrace||L},d,G.params),E),ee=new Rn(Rn.formatError(G.message||p,H),n,H.path,G.type||u,H.disableStackTrace);return ee.params=H,ee}const m=k?a:l;let x={path:s,parent:v,type:u,from:r.from,createError:_,resolve(G){return a2(G,E)},options:r,originalValue:i,schema:o};const A=G=>{Rn.isError(G)?m(G):G?l(null):m(_())},h=G=>{Rn.isError(G)?m(G):a(G)};if(g&&Jr(n))return A(!0);let $;try{var R;if($=c.call(x,n,x),typeof((R=$)==null?void 0:R.then)=="function"){if(r.sync)throw new Error(`Validation test of type: "${x.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve($).then(A,h)}}catch(G){h(G);return}A($)}return e.OPTIONS=t,e}function o2(t,e){if(!t)return t;for(const n of Object.keys(t))t[n]=a2(t[n],e);return t}function a2(t,e){return gi.isRef(t)?t.getValue(e.value,e.parent,e.context):t}function Q9(t,e,n,s=n){let r,i,o;
33return e?(ri.forEach(e,(a,l,u)=>{let c=l?a.slice(1,a.length-1):a;t=t.resolve({context:s,parent:r,value:n});let d=t.type==="tuple",p=u?parseInt(c,10):0;if(t.innerType||d){if(d&&!u)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${o}" must contain an index to the tuple element, e.g. "${o}[0]"`);if(n&&p>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${a}, in the path: ${e}. because there is no value at that index. `);r=n,n=n&&n[p],t=d?t.spec.types[p]:t.innerType}if(!u){if(!t.fields||!t.fields[c])throw new Error(`The schema does not contain the path: ${e}. (failed at: ${o} which is a type: "${t.type}")`);r=n,n=n&&n[c],t=t.fields[c]}i=c,o=l?"["+a+"]":"."+a}),{schema:t,parent:r,parentPath:i}):{parent:r,parentPath:e,schema:t}}class lu extends Set{describe(){const e=[];for(const n of this.values())e.push(gi.isRef(n)?n.describe():n);return e}resolveAll(e){let n=[];for(const s of this.values())n.push(e(s));return n}clone(){return new lu(this.values())}merge(e,n){const s=this.clone();return e.forEach(r=>s.add(r)),n.forEach(r=>s.delete(r)),s}}function Ui(t,e=new Map){if(v1(t)||!t||typeof t!="object")return t;if(e.has(t))return e.get(t);let n;if(t instanceof Date)n=new Date(t.getTime()),e.set(t,n);else if(t instanceof RegExp)n=new RegExp(t),e.set(t,n);else if(Array.isArray(t)){n=new Array(t.length),e.set(t,n);for(let s=0;s<t.length;s++)n[s]=Ui(t[s],e)}else if(t instanceof Map){n=new Map,e.set(t,n);for(const[s,r]of t.entries())n.set(s,Ui(r,e))}else if(t instanceof Set){n=new Set,e.set(t,n);for(const s of t)n.add(Ui(s,e))}else if(t instanceof Object){n={},e.set(t,n);for(const[s,r]of Object.entries(t))n[s]=Ui(r,e)}else throw Error(`Unable to clone ${t}`);return n}function ex(t){if(!(t!=null&&t.length))return;const e=[];let n="",s=!1,r=!1;for(let i=0;i<t.length;i++){const o=t[i];if(o==="["&&!r){n&&(e.push(...n.split(".").filter(Boolean)),n=""),s=!0;continue}if(o==="]"&&!r){n&&(/^\d+$/.test(n)?e.push(n):e.push(n.replace(/^"|"$/g,"")),n=""),s=!1;continue}if(o==='"'){r=!r;continue}if(o==="."&&!s&&!r){n&&(e.push(n),n="");continue}n+=o}return n&&e.push(...n.split(".").filter(Boolean)),e}function tx(t,e){const n=e?`${e}.${t.path}`:t.path;return t.errors.map(s=>({message:s,path:ex(n)}))}function l2(t,e){var n;if(!((n=t.inner)!=null&&n.length)&&t.errors.length)return tx(t,e);const s=e?`${e}.${t.path}`:t.path;return t.inner.flatMap(r=>l2(r,s))}class Fs{constructor(e){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new lu,this._blacklist=new lu,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(Ms.notType)}),this.type=e.type,this._typeCheck=e.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},e==null?void 0:e.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;const n=Object.create(Object.getPrototypeOf(this));
vendor: 15,953 bytes, lines 33-36
33return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=Ui(Object.assign({},this.spec,e)),n}label(e){let n=this.clone();return n.spec.label=e,n}meta(...e){if(e.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},e[0]),n}withMutation(e){let n=this._mutate;this._mutate=!0;let s=e(this);return this._mutate=n,s}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let n=this,s=e.clone();const r=Object.assign({},n.spec,s.spec);return s.spec=r,s.internalTests=Object.assign({},n.internalTests,s.internalTests),s._whitelist=n._whitelist.merge(e._whitelist,e._blacklist),s._blacklist=n._blacklist.merge(e._blacklist,e._whitelist),s.tests=n.tests,s.exclusiveTests=n.exclusiveTests,s.withMutation(i=>{e.tests.forEach(o=>{i.test(o.OPTIONS)})}),s.transforms=[...n.transforms,...s.transforms],s}isType(e){return e==null?!!(this.spec.nullable&&e===null||this.spec.optional&&e===void 0):this._typeCheck(e)}resolve(e){let n=this;if(n.conditions.length){let s=n.conditions;n=n.clone(),n.conditions=[],n=s.reduce((r,i)=>i.resolve(r,e),n),n=n.resolve(e)}return n}resolveOptions(e){var n,s,r,i;return Object.assign({},e,{from:e.from||[],strict:(n=e.strict)!=null?n:this.spec.strict,abortEarly:(s=e.abortEarly)!=null?s:this.spec.abortEarly,recursive:(r=e.recursive)!=null?r:this.spec.recursive,disableStackTrace:(i=e.disableStackTrace)!=null?i:this.spec.disableStackTrace})}cast(e,n={}){let s=this.resolve(Object.assign({},n,{value:e})),r=n.assert==="ignore-optionality",i=s._cast(e,n);if(n.assert!==!1&&!s.isType(i)){if(r&&Jr(i))return i;let o=Pr(e),a=Pr(i);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${s.type}". 34 35attempted value: ${o} 36`+(a!==o?`result of cast: ${a}`:""))}return i}_cast(e,n){let s=e===void 0?e:this.transforms.reduce((r,i)=>i.call(this,r,e,this,n),e);return s===void 0&&(s=this.getDefault(n)),s}_validate(e,n={},s,r){let{path:i,originalValue:o=e,strict:a=this.spec.strict}=n,l=e;a||(l=this._cast(l,Object.assign({assert:!1},n)));let u=[];for(let c of Object.values(this.internalTests))c&&u.push(c);this.runTests({path:i,value:l,originalValue:o,options:n,tests:u},s,c=>{if(c.length)return r(c,l);this.runTests({path:i,value:l,originalValue:o,options:n,tests:this.tests},s,r)})}runTests(e,n,s){let r=!1,{tests:i,value:o,originalValue:a,path:l,options:u}=e,c=b=>{r||(r=!0,n(b,o))},d=b=>{r||(r=!0,s(b,o))},p=i.length,g=[];if(!p)return d([]);let v={value:o,originalValue:a,path:l,options:u,schema:this};for(let b=0;b<i.length;b++){const k=i[b];k(v,c,function(E){E&&(Array.isArray(E)?g.push(...E):g.push(E)),--p<=0&&d(g)})}}asNestedTest({key:e,index:n,parent:s,parentPath:r,originalParent:i,options:o}){const a=e!=null?e:n;if(a==null)throw TypeError("Must include `key` or `index` for nested validations");const l=typeof a=="number";let u=s[a];const c=Object.assign({},o,{strict:!0,parent:s,value:u,originalValue:i[a],key:void 0,[l?"index":"key"]:a,path:l||a.includes(".")?`${r||""}[${l?a:`"${a}"`}]`:(r?`${r}.`:"")+e});return(d,p,g)=>this.resolve(c)._validate(u,c,p,g)}validate(e,n){var s;let r=this.resolve(Object.assign({},n,{value:e})),i=(s=n==null?void 0:n.disableStackTrace)!=null?s:r.spec.disableStackTrace;return new Promise((o,a)=>r._validate(e,n,(l,u)=>{Rn.isError(l)&&(l.value=u),a(l)},(l,u)=>{l.length?a(new Rn(l,u,void 0,void 0,i)):o(u)}))}validateSync(e,n){var s;let r=this.resolve(Object.assign({},n,{value:e})),i,o=(s=n==null?void 0:n.disableStackTrace)!=null?s:r.spec.disableStackTrace;return r._validate(e,Object.assign({},n,{sync:!0}),(a,l)=>{throw Rn.isError(a)&&(a.value=l),a},(a,l)=>{if(a.length)throw new Rn(a,e,void 0,void 0,o);i=l}),i}isValid(e,n){return this.validate(e,n).then(()=>!0,s=>{if(Rn.isError(s))return!1;throw s})}isValidSync(e,n){try{return this.validateSync(e,n),!0}catch(s){if(Rn.isError(s))return!1;throw s}}_getDefault(e){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,e):Ui(n)}getDefault(e){return this.resolve(e||{})._getDefault(e)}default(e){return arguments.length===0?this._getDefault():this.clone({default:e})}strict(e=!0){return this.clone({strict:e})}nullability(e,n){const s=this.clone({nullable:e});return s.internalTests.nullable=Si({message:n,name:"nullable",test(r){return r===null?this.schema.spec.nullable:!0}}),s}optionality(e,n){const s=this.clone({optional:e});return s.internalTests.optionality=Si({message:n,name:"optionality",test(r){return r===void 0?this.schema.spec.optional:!0}}),s}optional(){return this.optionality(!0)}defined(e=Ms.defined){return this.optionality(!1,e)}nullable(){return this.nullability(!0)}nonNullable(e=Ms.notNull){return this.nullability(!1,e)}required(e=Ms.required){return this.clone().withMutation(n=>n.nonNullable(e).defined(e))}notRequired(){return this.clone().withMutation(e=>e.nullable().optional())}transform(e){let n=this.clone();return n.transforms.push(e),n}test(...e){let n;if(e.length===1?typeof e[0]=="function"?n={test:e[0]}:n=e[0]:e.length===2?n={name:e[0],test:e[1]}:n={name:e[0],message:e[1],test:e[2]},n.message===void 0&&(n.message=Ms.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let s=this.clone(),r=Si(n),i=n.exclusive||n.name&&s.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(s.exclusiveTests[n.name]=!!n.exclusive),s.tests=s.tests.filter(o=>!(o.OPTIONS.name===n.name&&(i||o.OPTIONS.test===r.OPTIONS.test))),s.tests.push(r),s}when(e,n){!Array.isArray(e)&&typeof e!="string"&&(n=e,e=".");let s=this.clone(),r=n2(e).map(i=>new gi(i));return r.forEach(i=>{i.isSibling&&s.deps.push(i.key)}),s.conditions.push(typeof n=="function"?new au(r,n):au.fromOptions(r,n)),s}typeError(e){let n=this.clone();return n.internalTests.typeError=Si({message:e,name:"typeError",skipAbsent:!0,test(s){return this.schema._typeCheck(s)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(e,n=Ms.oneOf){let s=this.clone();return e.forEach(r=>{s._whitelist.add(r),s._blacklist.delete(r)}),s.internalTests.whiteList=Si({message:n,name:"oneOf",skipAbsent:!0,test(r){let i=this.schema._whitelist,o=i.resolveAll(this.resolve);return o.includes(r)?!0:this.createError({params:{values:Array.from(i).join(", "),resolved:o}})}}),s}notOneOf(e,n=Ms.notOneOf){let s=this.clone();return e.forEach(r=>{s._blacklist.add(r),s._whitelist.delete(r)}),s.internalTests.blacklist=Si({message:n,name:"notOneOf",test(r){let i=this.schema._blacklist,o=i.resolveAll(this.resolve);return o.includes(r)?this.createError({params:{values:Array.from(i).join(", "),resolved:o}}):!0}}),s}strip(e=!0){let n=this.clone();return n.spec.strip=e,n}describe(e){const n=(e?this.resolve(e):this).clone(),{label:s,meta:r,optional:i,nullable:o}=n.spec;return{meta:r,label:s,optional:i,nullable:o,default:n.getDefault(e),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.filter((l,u,c)=>c.findIndex(d=>d.OPTIONS.name===l.OPTIONS.name)===u).map(l=>{const u=l.OPTIONS.params&&e?o2(Object.assign({},l.OPTIONS.params),e):l.OPTIONS.params;return{name:l.OPTIONS.name,params:u}})}}get"~standard"(){const e=this;return{version:1,vendor:"yup",async validate(s){try{return{value:await e.validate(s,{abortEarly:!1})}}catch(r){if(r instanceof Rn)return{issues:l2(r)};throw r}}}}}Fs.prototype.__isYupSchema__=!0;for(const t of["validate","validateSync"])Fs.prototype[`${t}At`]=function(e,n,s={}){const{parent:r,parentPath:i,schema:o}=Q9(this,e,n,s.context);return o[t](r&&r[i],Object.assign({},s,{parent:r,path:e}))};for(const t of["equals","is"])Fs.prototype[t]=Fs.prototype.oneOf;for(const t of["not","nope"])Fs.prototype[t]=Fs.prototype.notOneOf;const nx=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function sx(t){const e=cf(t);if(!e)return Date.parse?Date.parse(t):Number.NaN;if(e.z===void 0&&e.plusMinus===void 0)return new Date(e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond).valueOf();let n=0;return e.z!=="Z"&&e.plusMinus!==void 0&&(n=e.hourOffset*60+e.minuteOffset,e.plusMinus==="+"&&(n=0-n)),Date.UTC(e.year,e.month,e.day,e.hour,e.minute+n,e.second,e.millisecond)}function cf(t){var e,n;const s=nx.exec(t);return s?{year:Ws(s[1]),month:Ws(s[2],1)-1,day:Ws(s[3],1),hour:Ws(s[4]),minute:Ws(s[5]),second:Ws(s[6]),millisecond:s[7]?Ws(s[7].substring(0,3)):0,precision:(e=(n=s[7])==null?void 0:n.length)!=null?e:void 0,z:s[8]||void 0,plusMinus:s[9]||void 0,hourOffset:Ws(s[10]),minuteOffset:Ws(s[11])}:null}function Ws(t,e=0){return Number(t)||e}let rx=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,ix=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,ox=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,ax="^\\d{4}-\\d{2}-\\d{2}",lx="\\d{2}:\\d{2}:\\d{2}",ux="(([+-]\\d{2}(:?\\d{2})?)|Z)",cx=new RegExp(`${ax}T${lx}(\\.\\d+)?${ux}$`),dx=t=>Jr(t)||t===t.trim(),fx={}.toString();function ir(){return new u2}class u2 extends Fs{constructor(){super({type:"string",check(e){return e instanceof String&&(e=e.valueOf()),typeof e=="string"}}),this.withMutation(()=>{this.transform((e,n)=>{if(!this.spec.coerce||this.isType(e)||Array.isArray(e))return e;const s=e!=null&&e.toString?e.toString():e;return s===fx?e:s})})}required(e){return super.required(e).withMutation(n=>n.test({message:e||Ms.required,name:"required",skipAbsent:!0,test:s=>!!s.length}))}notRequired(){return super.notRequired().withMutation(e=>(e.tests=e.tests.filter(n=>n.OPTIONS.name!=="required"),e))}length(e,n=Fn.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(s){return s.length===this.resolve(e)}})}min(e,n=Fn.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(s){return s.length>=this.resolve(e)}})}max(e,n=Fn.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:e},skipAbsent:!0,test(s){return s.length<=this.resolve(e)}})}matches(e,n){let s=!1,r,i;return n&&(typeof n=="object"?{excludeEmptyString:s=!1,message:r,name:i}=n:r=n),this.test({name:i||"matches",message:r||Fn.matches,params:{regex:e},skipAbsent:!0,test:o=>o===""&&s||o.search(e)!==-1})}email(e=Fn.email){return this.matches(rx,{name:"email",message:e,excludeEmptyString:!0})}url(e=Fn.url){return this.matches(ix,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=Fn.uuid){return this.matches(ox,{name:"uuid",message:e,excludeEmptyString:!1})}datetime(e){let n="",s,r;return e&&(typeof e=="object"?{message:n="",allowOffset:s=!1,precision:r=void 0}=e:n=e),this.matches(cx,{name:"datetime",message:n||Fn.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||Fn.datetime_offset,params:{allowOffset:s},skipAbsent:!0,test:i=>{if(!i||s)return!0;const o=cf(i);return o?!!o.z:!1}}).test({name:"datetime_precision",message:n||Fn.datetime_precision,params:{precision:r},skipAbsent:!0,test:i=>{if(!i||r==null)return!0;const o=cf(i);return o?o.precision===r:!1}})}ensure(){return this.default("").transform(e=>e===null?"":e)}trim(e=Fn.trim){return this.transform(n=>n!=null?n.trim():n).test({message:e,name:"trim",test:dx})}lowercase(e=Fn.lowercase){return this.transform(n=>Jr(n)?n:n.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Jr(n)||n===n.toLowerCase()})}uppercase(e=Fn.uppercase){return this.transform(n=>Jr(n)?n:n.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Jr(n)||n===n.toUpperCase()})}}ir.prototype=u2.prototype;let hx=new Date(""),px=t=>Object.prototype.toString.call(t)==="[object Date]";class Gu extends Fs{constructor(){super({type:"date",check(e){return px(e)&&!isNaN(e.getTime())}}),this.withMutation(()=>{this.transform((e,n)=>!this.spec.coerce||this.isType(e)||e===null?e:(e=sx(e),isNaN(e)?Gu.INVALID_DATE:new Date(e)))})}prepareParam(e,n){let s;if(gi.isRef(e))s=e;else{let r=this.cast(e);if(!this._typeCheck(r))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);s=r}return s}min(e,n=uf.min){let s=this.prepareParam(e,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(r){return r>=this.resolve(s)}})}max(e,n=uf.max){let s=this.prepareParam(e,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(r){return r<=this.resolve(s)}})}}Gu.INVALID_DATE=hx;Gu.prototype;function gx(t,e=[]){let n=[],s=new Set,r=new Set(e.map(([o,a])=>`${o}-${a}`));function i(o,a){let l=ri.split(o)[0];s.add(l),r.has(`${a}-${l}`)||n.push([a,l])}for(const o of Object.keys(t)){let a=t[o];s.add(o),gi.isRef(a)&&a.isSibling?i(a.path,o):v1(a)&&"deps"in a&&a.deps.forEach(l=>i(l,o))}return g1.exports.array(Array.from(s),n).reverse()}function n0(t,e){let n=1/0;return t.some((s,r)=>{var i;if((i=e.path)!=null&&i.includes(s))return n=r,!0}),n}function c2(t){return(e,n)=>n0(t,e)-n0(t,n)}const vx=(t,e,n)=>{if(typeof t!="string")return t;let s=t;try{s=JSON.parse(t)}catch{}return n.isType(s)?s:t};function xl(t){if("fields"in t){const e={};for(const[n,s]of Object.entries(t.fields))e[n]=xl(s);return t.setFields(e)}if(t.type==="array"){const e=t.optional();return e.innerType&&(e.innerType=xl(e.innerType)),e}return t.type==="tuple"?t.optional().clone({types:t.spec.types.map(xl)}):"optional"in t?t.optional():t}const mx=(t,e)=>{const n=[...ri.normalizePath(e)];if(n.length===1)return n[0]in t;let s=n.pop(),r=ri.getter(ri.join(n),!0)(t);return!!(r&&s in r)};let s0=t=>Object.prototype.toString.call(t)==="[object Object]";function r0(t,e){let n=Object.keys(t.fields);return Object.keys(e).filter(s=>n.indexOf(s)===-1)}const _x=c2([]);function Zu(t){return new d2(t)}class d2 extends Fs{constructor(e){super({type:"object",check(n){return s0(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=_x,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{e&&this.shape(e)})}_cast(e,n={}){var s;let r=super._cast(e,n);if(r===void 0)return this.getDefault(n);if(!this._typeCheck(r))return r;let i=this.fields,o=(s=n.stripUnknown)!=null?s:this.spec.noUnknown,a=[].concat(this._nodes,Object.keys(r).filter(d=>!this._nodes.includes(d))),l={},u=Object.assign({}
36,n,{parent:l,__validating:n.__validating||!1}),c=!1;for(const d of a){let p=i[d],g=d in r,v=r[d];if(p){let b;u.path=(n.path?`${n.path}.`:"")+d,p=p.resolve({value:v,context:n.context,parent:l});let k=p instanceof Fs?p.spec:void 0,L=k==null?void 0:k.strict;if(k!=null&&k.strip){c=c||d in r;continue}b=!n.__validating||!L?p.cast(v,u):v,b!==void 0&&(l[d]=b)}else g&&!o&&(l[d]=v);(g!==d in l||l[d]!==v)&&(c=!0)}return c?l:r}_validate(e,n={},s,r){let{from:i=[],originalValue:o=e,recursive:a=this.spec.recursive}=n;n.from=[{schema:this,value:o},...i],n.__validating=!0,n.originalValue=o,super._validate(e,n,s,(l,u)=>{if(!a||!s0(u)){r(l,u);return}o=o||u;let c=[];for(let d of this._nodes){let p=this.fields[d];!p||gi.isRef(p)||c.push(p.asNestedTest({options:n,key:d,parent:u,parentPath:n.path,originalParent:o}))}this.runTests({tests:c,value:u,originalValue:o,options:n},s,d=>{r(d.sort(this._sortErrors).concat(l),u)})})}clone(e){const n=super.clone(e);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(e){let n=super.concat(e),s=n.fields;for(let[r,i]of Object.entries(this.fields)){const o=s[r];s[r]=o===void 0?i:o}return n.withMutation(r=>r.setFields(s,[...this._excludedEdges,...e._excludedEdges]))}_getDefault(e){if("default"in this.spec)return super._getDefault(e);if(!this._nodes.length)return;let n={};return this._nodes.forEach(s=>{var r;const i=this.fields[s];let o=e;(r=o)!=null&&r.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[s]})),n[s]=i&&"getDefault"in i?i.getDefault(o):void 0}),n}setFields(e,n){let s=this.clone();return s.fields=e,s._nodes=gx(e,n),s._sortErrors=c2(Object.keys(e)),n&&(s._excludedEdges=n),s}shape(e,n=[]){return this.clone().withMutation(s=>{let r=s._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),r=[...s._excludedEdges,...n]),s.setFields(Object.assign(s.fields,e),r)})}partial(){const e={};for(const[n,s]of Object.entries(this.fields))e[n]="optional"in s&&s.optional instanceof Function?s.optional():s;return this.setFields(e)}deepPartial(){return xl(this)}pick(e){const n={};for(const s of e)this.fields[s]&&(n[s]=this.fields[s]);return this.setFields(n,this._excludedEdges.filter(([s,r])=>e.includes(s)&&e.includes(r)))}omit(e){const n=[];for(const s of Object.keys(this.fields))e.includes(s)||n.push(s);return this.pick(n)}from(e,n,s){let r=ri.getter(e,!0);return this.transform(i=>{if(!i)return i;let o=i;return mx(i,e)&&(o=Object.assign({},i),s||delete o[e],o[n]=r(i)),o})}json(){return this.transform(vx)}exact(e){return this.test({name:"exact",exclusive:!0,message:e||wl.exact,test(n){if(n==null)return!0;const s=r0(this.schema,n);return s.length===0||this.createError({params:{properties:s.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(e=!0,n=wl.noUnknown){typeof e!="boolean"&&(n=e,e=!0);let s=this.test({name:"noUnknown",exclusive:!0,message:n,test(r){if(r==null)return!0;const i=r0(this.schema,r);return!e||i.length===0||this.createError({params:{unknown:i.join(", ")}})}});return s.spec.noUnknown=e,s}unknown(e=!0,n=wl.noUnknown){return this.noUnknown(!e,n)}transformKeys(e){return this.transform(n=>{if(!n)return n;const s={};for(const r of Object.keys(n))s[e(r)]=n[r];return s})}camelCase(){return this.transformKeys(Zc.camelCase)}snakeCase(){return this.transformKeys(Zc.snakeCase)}constantCase(){return this.transformKeys(e=>Zc.snakeCase(e).toUpperCase())}describe(e){const n=(e?this.resolve(e):this).clone(),s=super.describe(e);s.fields={};for(const[i,o]of Object.entries(n.fields)){var r;let a=e;(r=a)!=null&&r.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[i]})),s.fields[i]=o.describe(a)}return s}}Zu.prototype=d2.prototype;const yx={key:0,class:"text-red-500 text-sm -mt-1.5"},bx={key:1,class:"text-xs text-right text-zinc-400 mb-3 mt-0.5"},wx={key:2,class:"text-red-500 text-sm -mt-1.5"},xx={key:0,class:"flex gap-3 mt-3 mb-3"},Cx={key:0},kx={key:1},Sx={key:1,class:"text-sm text-red-500 -mt-1.5"},Ex={key:2,class:"text-sm text-zinc-400 -mt-1.5"},Ax={key:4,class:"text-red-500 text-sm -mt-1.5"},Lx={key:5,class:"text-sm text-center text-red-500"},i0=60,Tx=Ze({__name:"AuthRegister",setup(t){const e=ae(),n=Ds({email:"",username:"",password:"",code:"",loading:!1}),s=ae({}),r=Zu().shape({email:ir().required("Required field. Please enter your email address.").test("is-valid-email","Invalid email address. Please enter a valid email address.",k=>k?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(k):!1),username:ir().required("Required field. Please enter your username.").min(3,"Username too short. Please use 3 characters or more.").max(20,"Username can be at most 20 characters long").matches(/^[a-zA-Z0-9]+$/,"Invalid input. Please use only letters and numbers."),password:ir().required("Required field. Please enter your password.").min(6,"Password too short. Please use 6 characters or more.").max(60,"Password can be at most 60 characters long."),code:ir().required("Required field. Please enter the verification code.").max(6,"Code too long.").min(6,"Code too short.")}),i=async k=>{try{await r.validateAt(k,n,{abortEarly:!1}),delete s.value[k]}catch(L){s.value[k]=L.errors[0]}},o=async()=>{try{await r.validate(n,{abortEarly:!1}),s.value={}}catch(k){const L={};k.inner.forEach(E=>{E.path&&!L[E.path]&&(L[E.path]=E.message)}),s.value=L}},a=ae(!1),l=ae(null),u=ae(i0),c=async k=>
36{if(a.value=!0,l.value){a.value=!1;return}try{await i("email")}catch(L){a.value=!1,s.value.code=L;return}try{await dt.user.sendVerificationMail(n.email,k)}catch(L){s.value.code=L,e.value.reset();return}finally{a.value=!1}l.value=setInterval(()=>{u.value--,u.value<=0&&(clearInterval(l.value),l.value=null,u.value=i0)},1e3)},d=is(),p=Oa(),g=Xe(),v=Ns(),b=async k=>{if(k==null||k.preventDefault(),n.loading=!0,await o(),Object.keys(s.value).length>0){n.loading=!1;return}try{const L=await dt.user.register(n.username,n.email,n.password,n.code);if(await g.setUser(L),!g.isAuthorized)return;v.authDialog=!1;const E=p.query.redirect||"/";d.push(E)}catch(L){s.value.general=L}finally{n.loading=!1}};return(k,L)=>(w(),C("form",{onSubmit:b},[T(Wn,{onBlur:L[0]||(L[0]=E=>i("username")),onInput:L[1]||(L[1]=E=>s.value.username&&i("username")),modelValue:n.username,"onUpdate:modelValue":L[2]||(L[2]=E=>n.username=E),type:"text",placeholder:"Username",class:"mt-3"},null,8,["modelValue"]),s.value.username?(w(),C("span",yx,ce(s.value.username),1)):(w(),C("p",bx,"This will be your publicly visible username")),T(Wn,{onBlur:L[3]||(L[3]=E=>i("email")),onInput:L[4]||(L[4]=E=>s.value.email&&i("email")),modelValue:n.email,"onUpdate:modelValue":L[5]||(L[5]=E=>n.email=E),type:"email",placeholder:"E-Mail"},null,8,["modelValue"]),s.value.email?(w(),C("span",wx,ce(s.value.email),1)):oe("",!0),L[14]||(L[14]=f("p",{class:"text-xs text-right text-zinc-400 mt-0.5"},[f("span",{class:"mr-0"},"*"),N(" We may send the occasional email ")],-1)),n.email.length?(w(),C(Ve,{key:3},[n.email.length?(w(),C("div",xx,[T(Wn,{onBlur:L[6]||(L[6]=E=>i("code")),onInput:L[7]||(L[7]=E=>s.value.code&&i("code")),modelValue:n.code,"onUpdate:modelValue":L[8]||(L[8]=E=>n.code=E),type:"text",class:"flex-1",placeholder:"Enter 6-digit code"},null,8,["modelValue"]),T(ze,{type:"button",onClick:L[9]||(L[9]=E=>e.value.execute()),class:"shrink-0",disabled:l.value!=null||s.value.email!==void 0,loading:a.value,theme:"blue"},{default:V(()=>[l.value?(w(),C("span",kx,"Resend ("+ce(u.value)+"s)",1)):(w(),C("span",Cx,"Send Code"))]),_:1},8,["disabled","loading"]),T(y(k9),{ref_key:"captcha",ref:e,onVerify:c,class:"absolute",size:"invisible",sitekey:y(g9),theme:"dark"},null,8,["sitekey"])])):oe("",!0),s.value.code?(w(),C("p",Sx,ce(s.value.code),1)):(w(),C("p",Ex,"A verification code will be sent to your email address"))],64)):oe("",!0),T(Wn,{onBlur:L[10]||(L[10]=E=>i("password")),onInput:L[11]||(L[11]=E=>s.value.password&&i("password")),modelValue:n.password,"onUpdate:modelValue":L[12]||(L[12]=E=>n.password=E),class:"mt-3",type:"password",placeholder:"Password"},null,8,["modelValue"]),s.value.password?(w(),C("span",Ax,ce(s.value.password),1)):oe("",!0),T(ze,{onClick:b,loading:n.loading,theme:"blue",class:"mt-3 w-full"},{default:V(()=>[...L[13]||(L[13]=[N("Sign Up",-1)])]),_:1},8,["loading"]),s.value.general?(w(),C("span",Lx,ce(s.value.general),1)):oe("",!0)],32))}}),Mx={key:0,class:"text-red-500 text-sm -mt-1.5"},Ox={key:1,class:"text-sm text-zinc-400 -mt-1.5"},Px={key:2,class:"text-center text-red-500"},$x=Ze({__name:"AuthForgotPassword",setup(t){const e=Ds({email:"",loading:!1,success:!1}),n=is(),s=Xe(),r=Ns(),i=ae({}),o=Zu().shape({email:ir().required("Required field. Please enter your email address.").email("Please enter a valid email address.").test("has-tld","Please enter a valid email address",c=>{if(!c)return!1;const[d,p]=c.split("@");return p!==void 0&&p.includes(".")})}),a=async c=>{try{await o.validateAt(c,e),delete i.value[c]}catch(d){i.value[c]=d.errors[0]}},l=async()=>{n.push("/"),s.setUser(null),r.authDialog=!1,window.location.reload()},u=async()=>{if(e.error=void 0,!await o.isValid(e)){await a("email");return}e.loading=!0;try{await dt.user.sendForgotPasswordToken(e.email),e.error=void 0,e.success=!0,setTimeout(()=>{l()},2e3)}catch(d){e.error=(d==null?void 0:d.message)||"Something went wrong. Please try again."}finally{e.loading=!1}};return(c,d)=>(w(),C("form",{onSubmit:It(u,["prevent"]),class:"flex flex-col gap-y-3"},[T(Wn,{class:"w-full",required:"",disabled:e.loading,modelValue:e.email,"onUpdate:modelValue":d[
360]||(d[0]=p=>e.email=p),type:"email",placeholder:"E-Mail",onBlur:d[1]||(d[1]=p=>a("email")),onInput:d[2]||(d[2]=p=>i.value.email&&a("email"))},null,8,["disabled","modelValue"]),i.value.email?(w(),C("span",Mx,ce(i.value.email),1)):oe("",!0),e.success?(w(),C("p",Ox," A link will be sent to your email address ")):oe("",!0),T(ze,{loading:e.loading,theme:"blue",class:"mt-2 w-full"},{default:V(()=>[...d[3]||(d[3]=[N("Reset Password",-1)])]),_:1},8,["loading"]),e.error?(w(),C("span",Px,ce(e.error),1)):oe("",!0)],32))}}),Rx={class:"p-4"},Vx={class:"flex gap-3 items-center px-1"},Ix={class:"bg-zinc-800 rounded-md p-3"},Hx={class:"bg-zinc-800 rounded-md p-3"},Fx={class:"bg-zinc-800 rounded-md p-3"},Dx={class:"mt-6 text-center"},o0=Ze({__name:"Auth",setup(t){const e=ae("login");return(n,s)=>{const r=fr("router-link");return w(),C("div",Rx,[f("div",Vx,[e.value==="login"?(w(),C(Ve,{key:0},[f("div",Ix,[T(Pe,{name:"account-key-outline",class:"h-7 w-7"})]),s[3]||(s[3]=f("div",null,[f("h1",{class:"text-2xl font-medium"},"Welcome Back,"),f("p",{class:"text-zinc-400 text-sm"},"Sign in to use your account")],-1))],64)):e.value==="forgotpwd"?(w(),C(Ve,{key:1},[f("div",Hx,[T(Pe,{name:"lock-reset",class:"h-8 w-8"})]),s[4]||(s[4]=f("div",null,[f("p",{class:"text-2xl font-medium"},"Forgot password?"),f("p",{class:"text-zinc-400 text-sm"},"No worries, we'll send you reset instructions.")],-1))],64)):(w(),C(Ve,{key:2},[f("div",Fx,[T(Pe,{name:"account-plus",class:"h-7 w-7"})]),s[5]||(s[5]=f("div",null,[f("p",{class:"text-2xl font-medium"},"Sign Up"),f("p",{class:"text-zinc-400 text-sm"},"Create an account to continue")],-1))],64))]),s[9]||(s[9]=f("hr",{class:"-mx-4 my-4 border-zinc-800"},null,-1)),f("div",null,[e.value==="login"?(w(),pe(m9,{key:0})):e.value==="forgotpwd"?(w(),pe($x,{key:1})):(w(),pe(Tx,{key:2}))]),s[10]||(s[10]=f("hr",{class:"-mx-4 my-4 border-zinc-800"},null,-1)),f("div",Dx,[e.value==="login"?(w(),pe(r,{key:0,to:"#",class:"block w-full",onClick:s[0]||(s[0]=i=>e.value="register")},{default:V(()=>[...s[6]||(s[6]=[N("Sign Up",-1)])]),_:1})):(w(),pe(r,{key:1,to:"#",class:"block w-full",onClick:s[1]||(s[1]=i=>e.value="login")},{default:V(()=>[...s[7]||(s[7]=[N("Log In",-1)])]),_:1})),e.value==="login"?(w(),pe(r,{key:2,to:"#",class:"block w-full mt-6",onClick:s[2]||(s[2]=i=>e.value="forgotpwd")},{default:V(()=>[...s[8]||(s[8]=[N("Forgot Password?",-1)])]),_:1})):oe("",!0)])])}}}),Bx={key:0,class:"fixed inset-0 flex items-center justify-center h-full z-50 px-3"},Nx={class:"flex items-center justify-between mb-6"},jx={class:"text-xl font-bold text-white"},Ux=Ze({__name:"Dialog",props:{modelValue:{type:Boolean},title:{},wide:{type:Boolean}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,s=e;return j4(async()=>{s("update:modelValue",!1)}),Pu(()=>{s("update:modelValue",!1)}),ct(()=>n.modelValue,r=>{const i="overflow-hidden",o=document.querySelector("html");r?o.classList.add(i):o.classList.remove(i)}),(r,i)=>(w(),pe($f,{to:"body"},[T(Iu,{name:"fade"},{default:V(()=>[n.modelValue?(w(),C("div",Bx,[f("div",{class:"fixed inset-0 bg-black/80 overflow-hidden h-full w-full backdrop-blur-sm",onClick:i[0]||(i[0]=o=>s("update:modelValue",!1))}),f("div",{class:Qe([n.wide?["sm:max-w-lg","md:max-w-xl","lg:max-w-[820px]"]:["sm:max-w-sm","md:max-w-md"],"dialog origin-center relative bg-zinc-900 p-6 rounded-xl shadow-2xl overflow-y-auto max-h-[90vh] flex-1 text-white border border-zinc-800 ring-1 ring-white/10 input-transition"])},[f("div",Nx,[f("h3",jx,ce(n.title),1),T(ze,{theme:"transparent",class:"!p-1 hover:bg-zinc-800 rounded-full transition-colors",onClick:i[1]||(i[1]=o=>s("update:modelValue",!1))},{default:V(()=>[T(Pe,{name:"close",class:"h-6 w-6 text-zinc-400 hover:text-white transition-colors"})]),_:1})]),hi(r.$slots,"default",{},void 0,!0)],2)])):oe("",!0)]),_:3})]))}});const An=(t,e)=>{const n=t.__vccOpts||t;for(const[s,r]of e)n[s]=r;return n},df=An(Ux,[["__scopeId","data-v-7cda2805"]]),zx=Object.freeze(Object.defineProperty({__proto__:null,default:df},Symbol.toStringTag,{value:"Module"})),qx=0,Wx=100,Gx=0,Zx=100,Kx=1e4,Yx="https://www.handyfeeling.com/api/handy/v2",Kc="https://www.handyfeeling.com/api/handy-rest/v3",Xx=12e4,Jx=3600;class Qx{constructor(){Z(this,"toyName","Handy");Z(this,"storageKey","handy");Z(this,"isFW4",!1);Z(this,"apiVersion",2);Z(this,"v3Token");Z(this,"v3TokenExpiresAt",0);Z(this,"v3BaseUrl",Kc);Z(this,"_connected",!1);Z(this,"_estimatedServerTimeOffset",0);Z(this,"_error");Z(this,"_setupError");Z(this,"_scanning",!1);Z(this,"_prepared",!1);Z(this,"_syncInterval",-1);
36Z(this,"_activeCommands",new Set);Z(this,"_hsspPlaying",!1);Z(this,"_lastPlayStartTime",-1);Z(this,"_lastXpvpAt",0);Z(this,"_mode",0);Z(this,"_fakeConnected",!1);Z(this,"_detectedName","The Handy");Z(this,"_model","Unknown");Z(this,"_firmwareVersion","Unknown");Z(this,"_hardwareVersion","Unknown");Z(this,"_fwStatus",null);Z(this,"_fwStatusLabel","unknown");Z(this,"_supportStatus","unknown");Z(this,"_playbackSupported",!1);Z(this,"_supportMessage","Compatibility not checked yet.");Z(this,"_connectedAt");Z(this,"_lastDisconnectAt");Z(this,"_lastDisconnectReason");Z(this,"_disconnectPhase","none");Z(this,"_disconnectWithin10s",!1);Z(this,"handler",{get:(e,n)=>typeof e[n]=="object"&&e[n]!==null?new Proxy(e[n],this.handler):e[n],set:(e,n,s)=>{if(e[n]=s,localStorage.setItem(this.storageKey,JSON.stringify(e)),this._connected&&this._playbackSupported)if(n==="limits"){const r=Array.isArray(s)?s:[0,100];this.callCommand("settings_slide","/slide","PUT",{min:r[0],max:r[1]},"settings_sync",!0).catch(()=>{})}else n==="offset"&&this.callCommand("settings_offset","/hstp/offset","PUT",{offset:s},"settings_sync",!0).catch(()=>{});return!0}});Z(this,"settings",new Proxy({invert:!1,offset:0,limits:[0,100],key:""},this.handler));const e=localStorage.getItem(this.storageKey);if(e){const n=JSON.parse(e);this.settings.key=n.key||"",this.settings.invert=n.invert||!1,this.settings.offset=n.offset||0,this.settings.limits=n.limits||[0,100]}if(this.settings.key===""){const n=localStorage.getItem("connectionKey");n&&(this.settings.key=n)}}get connected(){return this._connected||this._fakeConnected}get scanning(){return this._scanning}get error(){return this._error}get detectedName(){return this._detectedName}get deviceModel(){return this._model}get firmwareVersion(){return this._firmwareVersion}get firmwareStatus(){return this._fwStatusLabel}get supportStatus(){return this._supportStatus}get supportMessage(){return this._supportMessage}get playbackSupported(){return this._playbackSupported}get connectedAt(){return this._connectedAt}get lastDisconnectReason(){return this._lastDisconnectReason}get disconnectPhase(){return this._disconnectPhase}get disconnectWithin10s(){return this._disconnectWithin10s}get fwStatusCode(){return this._fwStatus}get identityLabel(){const e=this._model!=="Unknown"?` / ${this._model}`:"";return`${this._detectedName}${e} \xB7 FW ${this._firmwareVersion}`}get connectedDeviceLabel(){return this.identityLabel}get telemetry(){return{device_detected_name:this._detectedName,device_model:this._model,firmware_version:this._firmwareVersion,fw_status:this._fwStatusLabel,fw_status_code:this._fwStatus,support_status:this._supportStatus,support_message:this._supportMessage,disconnect_phase:this._disconnectPhase,disconnect_within_10s:this._disconnectWithin10s,playback_supported:this._playbackSupported,device_family:"Handy"}}async connect(){var e,n,s;if(!(this.settings.key.length<5||this._scanning)){this._scanning=!0,this._error=void 0,this._setupError=void 0,this._prepared=!1,this._hss
36pPlaying=!1,this._lastPlayStartTime=-1,this._disconnectPhase="none",this._disconnectWithin10s=!1,this._lastDisconnectReason=void 0,this._connected=!1,this._connectedAt=void 0,this.resetApiVersion(),this.clearSyncInterval();try{const r=await this.request("/connected","GET",void 0,"connectivity_check");if(!r||typeof r!="object"||!("connected"in r))throw new Error("Invalid response from Handy API during connectivity check.");if(!r.connected)throw this._supportStatus="unsupported",this._playbackSupported=!1,this._supportMessage="Handy is offline or not connected to Handy servers.",new Error("Device not connected");const i=await this.request("/info","GET",void 0,"info_detection");if(this.applyInfo(i),this.parseFirmwareMajor(this._firmwareVersion)>=4){await this.switchToApiV3();const u=await this.request("/connected","GET",void 0,"connectivity_check");if(!u||typeof u!="object"||!("connected"in u))throw new Error("Invalid response from Handy API v3 during connectivity check.");if(!u.connected)throw this._supportStatus="unsupported",this._playbackSupported=!1,this._supportMessage="Handy is offline or not connected to Handy servers.",new Error("Device not connected");const c=await this.request("/info","GET",void 0,"info_detection");this.applyInfo(c)}if(this.evaluateCompatibility(),!this._playbackSupported){this._disconnectPhase="compatibility_check",this._error=this._supportMessage;return}const a=await this.request("/settings","GET",void 0,"settings_sync");this.settings.limits=[Number((e=a==null?void 0:a.slideMin)!=null?e:0),Number((n=a==null?void 0:a.slideMax)!=null?n:100)];const l=await this.request("/hstp/offset","GET",void 0,"offset_sync");this.settings.offset=Number((s=l==null?void 0:l.offset)!=null?s:0),await this.request("/mode","PUT",{mode:1},"mode_setup"),this._mode=1,await this.offset(10),this._syncInterval=setInterval(async()=>{try{await this.offset(10)}catch{}},6e4),this._connected=!0,this._connectedAt=Date.now(),this._error=void 0,this._disconnectWithin10s=!1}catch(r){const i=this.toErrorMessage(r,"Connection failed");this._error||(this._error=i),this._setupError||(this._setupError=i),this._connected=!1,this._prepared=!1,this._hss
36pPlaying=!1}finally{this._scanning=!1}}}async setMode(e){if(!!this.ensureConnectedAndSupported("mode_switch",!1)&&this._mode!==e)try{await this.request("/mode","PUT",{mode:e},"mode_switch"),this._mode=e}catch(n){console.error("[Handy] Failed to set mode:",this.toErrorMessage(n,"Mode change failed"))}}disconnect(){this._scanning=!1,this._error=void 0,this._setupError=void 0,this._prepared=!1,this._hsspPlaying=!1,this._lastPlayStartTime=-1,this._connected=!1,this._fakeConnected=!1,this.resetApiVersion(),this._disconnectPhase="manual_disconnect",this._lastDisconnectReason="Disconnected by user.",this._disconnectWithin10s=!1,this._connectedAt=void 0,this.clearSyncInterval()}fakeconnection(){this._error=void 0,this._scanning=!1,this._fakeConnected=!this._fakeConnected,this._setupError=void 0,this._prepared=this._fakeConnected,this._hsspPlaying=!1,this._lastPlayStartTime=-1}async prepare(e){if(this._prepared=!1,this._setupError=void 0,this._fakeConnected){this._prepared=!0;return}if(!this.ensureConnectedAndSupported("playback_prepare",!0)){const n=this._error||this._supportMessage||"Handy is not connected.";throw this._setupError=n,new Error(n)}this.settings.invert&&(e+=e.includes("?")?"&reverse":"?reverse");try{await this.callCommand("hssp_setup","/hssp/setup","PUT",{url:e},"playback_prepare"),this._prepared=!0}catch(n){const s=this.toErrorMessage(n,"Failed to prepare script on device.");throw this._setupError=s,this._error=s,new Error(s)}}async play(e){const n=Math.max(0,Math.floor(e));if(this._fakeConnected){if(!this._prepared||this._setupError||this._hsspPlaying&&n===this._lastPlayStartTime)return;this._hsspPlaying=!0,this._lastPlayStartTime=n;return}!this.ensureConnectedAndSupported("playback_start",!1)||!this._prepared||this._setupError||this._hsspPlaying&&n===this._lastPlayStartTime||(await this.callCommand("hssp_play","/hssp/play","PUT",{startTime:n,estimatedServerTime:Math.trunc(Date.now()+this._estimatedServerTimeOffset)},"playback_start"),this._hsspPlaying=!0,this._lastPlayStartTime=n)}async stop(){if(this._fakeConnected){if(!this._prepared||!this._hsspPlaying)return;this._hsspPlaying=!1,this._lastPlayStartTime=-1;return}!this.ensureConnectedAndSupported("playback_stop",!1)||!this._prepared||!this._hsspPlaying||(await this.callCommand("hssp_stop","/hssp/stop","PUT",void 0,"playback_stop"),this._hss
36pPlaying=!1,this._lastPlayStartTime=-1)}async serverTime(){const e=await this.request("/servertime","GET",void 0,"offset_sync");return Number((e==null?void 0:e.serverTime)||Date.now())}async offset(e=30){await this.serverTime();let n=[];for(let l=0;l<e;l++){const u=Date.now(),c=await this.serverTime(),d=Date.now(),p=d-u,v=c+p/2-d;n.push(v)}if(!n.length)return this._estimatedServerTimeOffset=0,this._estimatedServerTimeOffset;const s=n.reduce((l,u)=>l+u,0)/n.length,r=n.map(l=>Math.pow(l-s,2)),i=Math.sqrt(r.reduce((l,u)=>l+u,0)/r.length),o=n.filter(l=>Math.abs(l-s)<i),a=o.length?o:n;return this._estimatedServerTimeOffset=a.reduce((l,u)=>l+u,0)/a.length,this._estimatedServerTimeOffset}async slide(e,n){if(!this.ensureConnectedAndSupported("settings_sync",!1))return;const s=this.clamp(Math.round(e),0,100),r=this.clamp(Math.round(n),s,100);await this.callCommand("slide","/slide","PUT",{min:s,max:r},"settings_sync")}async XPVP(e,n){if(!this.ensureConnectedAndSupported("hdsp_command",!1))return;const s=Date.now();if(this._activeCommands.has("xpvp")&&s-this._lastXpvpAt<65)return;const r=this.clamp(Math.round(e),qx,Wx),i=this.clamp(Math.round(Math.abs(n)),Gx,Zx);await this.callCommand("xpvp","/hdsp/xpvp","PUT",{position:r,velocity:i},"hdsp_command"),this._lastXpvpAt=s}async start_R(e){if(!this.ensureConnectedAndSupported("playback_start",!1))return;const n=Math.max(0,Math.floor(e));await this.callCommand("hssp_play_raw","/hssp/play","PUT",{startTime:n},"playback_start"),this._hsspPlaying=!0,this._lastPlayStartTime=n}async stop_R(){!this.ensureConnectedAndSupported("playback_stop",!1)||(await this.callCommand("hssp_stop_raw","/hssp/stop","PUT",void 0,"playback_stop"),this._hss
36pPlaying=!1,this._lastPlayStartTime=-1)}clearSyncInterval(){clearInterval(this._syncInterval),this._syncInterval=-1}resetApiVersion(){this.isFW4=!1,this.apiVersion=2,this.v3Token=void 0,this.v3TokenExpiresAt=0,this.v3BaseUrl=Kc}ensureConnectedAndSupported(e,n=!0){return this._connected?this._playbackSupported?!0:(this._disconnectPhase=e,n&&(this._error=this._supportMessage||"This Handy firmware/device combination is not supported."),!1):!1}applyInfo(e){var n;this._firmwareVersion=this.normalizeValue(e==null?void 0:e.fwVersion,"Unknown"),this._hardwareVersion=this.normalizeValue(e==null?void 0:e.hwVersion,"Unknown"),this._model=this.normalizeValue((n=e==null?void 0:e.model)!=null?n:e==null?void 0:e.hwModelName,"Unknown"),this._fwStatus=Number.isFinite(Number(e==null?void 0:e.fwStatus))?Number(e==null?void 0:e.fwStatus):null,this._fwStatusLabel=this.mapFwStatus(this._fwStatus),this._detectedName=this.resolveDetectedName(e,this._model)}evaluateCompatibility(){const e=[],n=this.parseFirmwareMajor(this._firmwareVersion);let s="supported",r=!0;this._fwStatus===1?(s="unsupported",r=!1,e.push("Firmware update is required before script playback can be used.")):this._fwStatus===2?(s="limited",e.push("Firmware update is available. Playback is allowed, but updating is recommended.")):this._fwStatus===null&&(s="unknown",e.push("Firmware status could not be detected.")),n>0&&n<3&&(s="unsupported",r=!1,e.push("Firmware below v3 is not supported by this integration.")),n>=4&&(this.apiVersion===2?(s==="supported"&&(s="limited"),e.push("Firmware v4+ detected on legacy v2 control path. Native API v3 is required for full support.")):(s==="limited"&&(s="supported"),e.push("Firmware v4+ detected. Using native API v3 control path."))),this._model==="Unknown"&&(s==="supported"&&(s="unknown"),e.push("Device model was not reported by the API.")),this._supportStatus=s,this._playbackSupported=r,this._supportMessage=e.length?e.join(" "):"Compatibility check passed. Playback is supported."}mapFwStatus(e){return e===0?"up_to_date":e===1?"update_required":e===2?"update_available":"unknown"}parseFirmwareMajor(e){const n=Number.parseInt((e||"").split(".")[0]||"",10);return Number.isFinite(n)?n:-1}resolveDetectedName(e,n){const s=[e==null?void 0:e.deviceName,e==null?void 0:e.name].find(i=>typeof i=="string"&&i.trim().length>0);if(s)return s.trim();const r=(n||"").toUpperCase();return r.includes("HANDYTOY")?"HandyToy":r.includes("PRO")?"The Handy 2 Pro":r.includes("STANDARD")?"The Handy 2 Standard":r.includes("H02")?"The Handy 2":r.includes("H01")?"The Handy":r&&r!=="UNKNOWN"?`The Handy (${n})`:"The Handy"}async callCommand(e,n,s,r,i,o=!1){if(!this._activeCommands.has(e)){this._activeCommands.add(e);try{return await this.request(n,s,r,i)}catch(a){if(o){console.warn("[Handy] Soft-failed command",e,a);return}throw a}finally{this._activeCommands.delete(e)}}}async request(e,n="GET",s,r="request"){let i;try{i=await this.json(e,n,s)}catch(o){const a=this.toErrorMessage(o,"Network error while contacting Handy API.");throw this.handleFailure(a,r,!1),new Error(a)}if(i&&typeof i=="object"&&"error"in i){const o=i.error||{},a=this.formatApiError(o),l=o.connected===!1;throw this.handleFailure(a,r,l),new Error(a)}return i}handleFailure(e,n,s){if(this._disconnectPhase=n,this._lastDisconnectReason=e,n==="playback_prepare"&&(this._setupError=e),s){this.markDisconnected(e,n);return}this._error=e}markDisconnected(e,n){const s=Date.now(),r=!!this._connectedAt&&s-this._connectedAt<=Kx;this._disconnectWithin10s=r,this._lastDisconnectAt=s,this._disconnectPhase=n,this._lastDisconnectReason=e,this._connected=!1,this._prepared=!1,this._hss
36pPlaying=!1,this._lastPlayStartTime=-1,this.clearSyncInterval(),r?this._error=`${e}. Device disconnected within 10 seconds of connecting.`:this._error=e}formatApiError(e){const n=(e==null?void 0:e.message)||(e==null?void 0:e.name)||"Handy API request failed",s=e==null?void 0:e.code;return s!=null?`${n} (${s})`:n}toErrorMessage(e,n){return e?typeof e=="string"?e:e instanceof Error?e.message||n:typeof e.message=="string"?e.message:n:n}clamp(e,n,s){return Math.max(n,Math.min(s,e))}normalizeValue(e,n){if(e==null)return n;const s=String(e).trim();return s.length?s:n}async json(e,n="GET",s){this.apiVersion===3&&await this.ensureV3Token();const{path:r,body:i}=this.mapRequest(e,n,s),o={"Content-Type":"application/json",Accept:"application/json","X-Connection-Key":this.settings.key};if(this.apiVersion===3&&!this.hasMockUrl()){if(!this.v3Token)throw new Error("Handy API v3 token is not available.");o.Authorization=`Bearer ${this.v3Token}`}const a={method:n,headers:o};n!=="GET"&&n!=="HEAD"&&i!==void 0&&(a.body=JSON.stringify(i));const l=await fetch(this.getBaseUrl()+r,a);let u={};try{u=await l.json()}catch{u={}}return!l.ok&&(!u||typeof u!="object"||!("error"in u))&&(u={error:{name:`HTTP_${l.status}`,message:l.statusText||"Request failed",code:l.status}}),this.apiVersion===3&&(u=this.normalizeV3Response(e,r,u)),console.log(`[handy] phase=${this._disconnectPhase} api=v${this.apiVersion} url=${r} method=${n} req_body=${JSON.stringify(i)} resp_body=${JSON.stringify(u)}`),u}getBaseUrl(){const e=localStorage.getItem("handyMockUrl");return e?this.apiVersion===3?e.replace("/api/handy/v2","/api/handy-rest/v3"):e:this.apiVersion===3?this.v3BaseUrl:Yx}hasMockUrl(){return!!localStorage.getItem("handyMockUrl")}async switchToApiV3(){if(this.isFW4=!0,this.hasMockUrl()){this.apiVersion=3,this.v3Token=void 0,this.v3TokenExpiresAt=0,this.v3BaseUrl=this.getBaseUrl();return}try{const e=await this.fetchV3Token();this.applyV3Token(e),this.apiVersion=3}catch(e){const n=this.toErrorMessage(e,"Handy API v3 is not configured.");throw this._supportStatus="unsupported",this._playbackSupported=!1,this._supportMessage=n,new Error(n)}}async ensureV3Token(){if(this.apiVersion!==3||this.hasMockUrl()||this.v3Token&&this.v3TokenExpiresAt-Date.now()>Xx)return;const e=await this.fetchV3Token();this.applyV3Token(e)}async fetchV3Token(){const e=await fetch("/api/handy/v3/token",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({connection_key:this.settings.key})}),n=await e.json().catch(()=>({}));if(!e.ok||(n==null?void 0:n.error)){const r=n==null?void 0:n.error,i=typeof r=="string"?r:(r==null?void 0:r.message)||(r==null?void 0:r.name)||"Could not issue Handy API v3 token.";throw new Error(i)}const s=n==null?void 0:n.data;if(!(s!=null&&s.token)||!(s!=null&&s.base_url))throw new Error("Invalid Handy API v3 token response.");return s}applyV3Token(e){this.v3Token=e.token,this.v3BaseUrl=e.base_url||Kc;const n=Date.parse(e.expires_at),s=Number(e.ttl_seconds||Jx);this.v3TokenExpiresAt=Number.isFinite(n)?n:Date.now()+Math.max(60,s)*1e3}mapRequest(e,n,s){var o,a;if(this.apiVersion!==3)return{path:e,body:s};let r=e,i=s;if(e==="/settings")r="/slider/stroke";else if(e==="/slide"){r="/slider/stroke";const l=(s==null?void 0:s.min)!==void 0?s.min:this.settings.limits[0],u=(s==null?void 0:s.max)!==void 0?s.max:this.settings.limits[1];i={min:this.clamp(Number(l),0,100)/100,max:this.clamp(Number(u),0,100)/100}}else if(e==="/mode"&&n==="PUT")r="/mode2";else if(e==="/hssp/play"){const l=(o=s==null?void 0:s.estimatedServerTime)!=null?o:Math.trunc(Date.now()+this._estimatedServerTimeOffset);i={start_time:Math.max(0,Math.floor(Number((a=s==null?void 0:s.startTime)!=null?a:0))),server_time:Math.trunc(Number(l))}}else e==="/hdsp/xpvp"&&s&&(i={xp:s.position,va:s.velocity});return{path:r,body:i}}normalizeV3Response(e,n,s){var r,i,o,a,l,u,c,d,p,g,v,b,k,L,E,_,m;if(!s||typeof s!="object"||"error"in s)return s;if(e==="/connected")return(r=s.result)!=null?r:s;if(e==="/info"){const x=(i=s.result)!=null?i:s;return{fwVersion:(o=x.fw_version)!=null?o:x.fwVersion,fwStatus:(a=x.fw_status)!=null?a:x.fwStatus,hwVersion:(u=(l=x.hw_version)!=null?l:x.hw_model_no)!=null?u:x.hwVersion,model:(c=x.model)!=null?c:x.hw_model_name,deviceName:(p=(d=x.device_name)!=null?d:x.name)!=null?p:x.hw_model_name}}if(e==="/settings"||e==="/slide"||n==="/slider/stroke"){const x=(g=s.result)!=null?g:s;if(x&&typeof x=="object"&&("min"in x||"max"in x))return{slideMin:Math.round(Number((v=x.min)!=null?v:0)*100),slideMax:Math.round(Number((b=x.max)!=null?b:1)*100)}}return e==="/hstp/offset"?(k=s.result)!=null?k:s:e==="/servertime"?{serverTime:Number((m=(_=(E=s.server_time)!=null?E:(L=s.result)==null?void 0:L.server_time)!=null?_:s.serverTime)!=null?m:Date.now())}:"result"in s?s.result:s}}class eC{constructor(){Z(this,"toyName","Autoblow");Z(this,"storageKey","autoblow");Z(this,"baseUrl","https://latency.autoblowapi.com");Z(this,"_connected",!1);Z(this,"_estimatedServerTimeOffset",0);Z(this,"_error");Z(this,"_setupError");Z(this,"_scanning",!1);Z(this,"_prepared",!1);Z(this,"_syncInterval",-1);Z(this,"_is_csv_sent",!1);Z(this,"_scriptToken");Z(this,"lastAction","");Z(this,"_fakeConnected",!1);Z(this,"handler",{get:(e,n)=>typeof e[n]=="object"&&e[n]!==null?new Proxy(e[n],this.handler):e[n],set:(e,n,s)=>(e[n]=s,localStorage.setItem(this.storageKey,JSON.stringify(e)),this._connected&&(n==="limits"?this.json("/autoblow/oscillate","PUT",{speed:0,minY:s[0],maxY:s[1]}).then(r=>console.log(r)).catch(r=>console.log(r)):n==="offset"&&this.json("/autoblow/sync-script/offset","PUT",{offsetTimeMs:s}).then(r=>console.log(r)).catch(r=>console.log(r))),!0)});Z(this,"settings",new Proxy({invert:!1,offset:0,limits:[0,100],key:""},this.handler));const e=localStorage.getItem(this.storageKey);if(e){const n=JSON.parse(e);this.settings.key=n.key||"",this.settings.invert=n.invert||!1,this.settings.offset=n.offset||0,this.settings.limits=n.limits||[0,100]}if(this.settings.key===""){const n=localStorage.getItem("autoblow-connectionKey");n&&(this.settings.key=n)}}get connected(){return this._connected||this._fakeConnected}get iscsvsent(){return this._is_csv_sent&&this.connected}get scanning(){return this._scanning}get error(){return this._error}async connect(){if(this.settings.key.length<5||this._scanning)return;this._scanning=!0,this._error=void 0;let e;try{e=await this.json("/autoblow/connected")}catch(n){this._error=n,this._connected=!1,this._scanning=!1;return}if("connected"in e&&!e.connected){this._error="Device not connected",this._connected=!1,this._scanning=!1;return}e.cluster&&(e.cluster.startsWith("http://")||e.cluster.startsWith("localhost")||e.cluster.startsWith("127.0.0.1")?this.baseUrl=e.cluster.startsWith("http")?e.cluster:"http://"+e.cluster:this.baseUrl=e.cluster.startsWith("http")?e.cluster:"https://"+e.cluster);try{e=await this.json("/autoblow/info")}catch(n){this._error=n,this._connected=!1,this._scanning=!1;return}if("error"in e){this._error=e.error.message,this._scanning=!1;return}if(e.firmwareStatus!="UP_TO_DATE"){this._error="Firmware update required",this._scanning=!1;return}try{e=await this.json("/autoblow/state")}catch{this._error="Couldn't get Autoblow settings",this._scanning=!1;return}if("error"in e){this._error=e.error.code||e.error.name||"Unknown error",this._connected=e.error.connected,this._scanning=!1;return}this.settings.limits[0]=e.oscillatorLowPoint||0,this.settings.limits[1]=e.oscillatorHighPoint||100,this._connected=!0}disconnect(){this._scanning=!1,this._error=void 0,this._prepared=!1,this._connected=!1,this._fakeConnected=!1,this._setupError=void 0,this._is_csv_sent=!1,clearInterval(this._syncInterval),this.lastAction="disconnect"}fakeconnection(){this._error=void 0,this._scanning=!1,this._fakeConnected=!this._fakeConnected,this._setupError=void 0,this._prepared=this._fakeConnected,this._is_csv_sent=this._fakeConnected,this.lastAction=this._fakeConnected?"":"disconnect"}prepare(e){return this._prepared=!1,this._is_csv_sent=!1,new Promise((n,s)=>{if(this.lastAction="prepare",this._setupError=void 0,this._fakeConnected)return this._prepared=!0,this._is_csv_sent=!0,n();if(!this._connected)return n();this.settings.invert&&(e+="?reverse"),this.json("/autoblow/sync-script/upload-csv-url","PUT",{url:e}).then(r=>{if("error"in r)return this._connected=r.error.connected,this._setupError=r.error.code||r.error.name||"Unknown error",Promise.reject(new Error(r.error.code||r.error.name||"Unknown error"));this._is_csv_sent=!0,this._prepared=!0,this._connected=!0,n()}).catch(r=>{console.error(r),s(r)})})}play(e){return new Promise(async(n,s)=>{if(this._fakeConnected)return this._setupError||!this._prepared||!this._is_csv_sent||(this.lastAction="play"),n();if(!this._connected||this._setupError||!this._is_csv_sent||this.lastAction=="play")return n();this.json("/autoblow/sync-script/start","PUT",{startTimeMs:e}).then(r=>{if("error"in r)return this._connected=r.error.connected,s(r.error.code||r.error.name||"Unknown error");this._connected=!0,this.lastAction="play",n()}).catch(r=>s(r))})}
36stop(){return new Promise((e,n)=>{if(this._fakeConnected)return!this._prepared||!this._is_csv_sent||(this.lastAction="stop"),e();if(!this._connected||!this._prepared||!this._is_csv_sent||this.lastAction=="stop")return e();this.json("/autoblow/sync-script/stop","PUT",{}).then(s=>{if("error"in s)return this._connected=s.error.connected,n(s.error.code||s.error.name||"Unknown error");this._connected=!0,this.lastAction="stop",e(s)}).catch(s=>n(s))})}getBaseUrl(){const e=localStorage.getItem("autoblowMockUrl");return e||this.baseUrl}json(e,n="GET",s,r){return new Promise((i,o)=>{const a={method:n,headers:{"Content-Type":"application/json",Accept:"application/json","x-device-token":this.settings.key}};n!=="GET"&&n!=="HEAD"&&s!==void 0&&(a.body=JSON.stringify(s)),fetch((r||this.getBaseUrl())+e,a).then(l=>l.json()).then(l=>{console.warn(`[autoblow] url=${e} method=${n} req_body=${JSON.stringify(s)} resp_body=${JSON.stringify(l)}`),i(l)}).catch(l=>{o(l)})})}async goto(e,n){return new Promise(async(s,r)=>{if(!(!this._connected||this._setupError)){if(e<0||n<0||!e||!n)return r("Number and speed should be positive");try{const i=await this.json("/autoblow/goto","PUT",{position:e,speed:n});i.position=e,i.oscillatorTargetSpeed=n,s(i)}catch{this._connected=!1,r()}}})}start_R(e){return new Promise(async(n,s)=>{if(!this._connected||this._setupError)return s();this.json("/autoblow/sync-script/start","PUT",{startTime:e}).then(r=>{if("error"in r)return this._connected=r.error.connected,s(r.error.code||r.error.name||"Unknown error");this._connected=!0,n(r)}).catch(r=>{console.log(r),s(r)})})}stop_R(){return new Promise((e,n)=>{if(!this._connected||this._setupError)return n();this.json("/autoblow/sync-script/stop","PUT").then(s=>{if("error"in s)return this._connected=s.error.connected,n(s.error.code||s.error.name||"Unknown error");this._connected=!0,e(s)}).catch(s=>n(s))})}}const ff=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),no=t=>Array.isArray(t)?[...t]:ff(t)?Object.keys(t).reduce((e,n)=>(e[n]=no(t[n]),e),{}):t,f2=(t,e)=>{if(Array.isArray(e))return Array.isArray(t)?e.map((n,s)=>t[s]===void 0||t[s]===null?no(n):t[s]):no(e);if(ff(e)){const n=no(e);return ff(t)&&Object.keys(t).forEach(s=>{n[s]=s in e?f2(t[s],e[s]):t[s]}),n}return t==null?e:t},tC=(t,e)=>{const n=localStorage.getItem(t);if(n===null)return no(e);try{return f2(JSON.parse(n),e)}catch(s){return console.warn(`[localStorage] Failed to parse ${t}; resetting to defaults`,s),no(e)}},$a=(t,e)=>{const n=tC(t,e);localStorage.setItem(t,JSON.stringify(n));const s={get(r,i){return r[i]},set(r,i,o){return r[i]=o,localStorage.setItem(t,JSON.stringify(r)),!0}};return new Proxy(n,s)};function Ku(t,e){var a,l,u,c;let n=Math.max(0,Math.min(100,t));const s=(a=e.speedLimit)!=null?a:100;n=n/100*s;const r=(l=e.limits)!=null?l:[0,100],i=(u=r[0])!=null?u:0,o=(c=r[1])!=null?c:100;return n=n/100*(o-i)+i,e.invert&&(n=100-n),Math.max(0,Math.min(100,n))}class nC{constructor(){Z(this,"toyName","OSR");Z(this,"_error");Z(this,"_port");Z(this,"_scanning",!1);Z(this,"_fakeConnected",!1);Z(this,"_ready",!1);Z(this,"settings",$a("osr",{limits:[0,100],invert:!1,speedLimit:100}));if(!("serial"in navigator)){this._error="This browser does not support Web Serial";return}navigator.serial.addEventListener("disconnect",()=>this._port=void 0)}getReconnectHint(){if(this._port)try{const e=this._port.getInfo();return{usbVendorId:e.usbVendorId,usbProductId:e.usbProductId}}catch(e){console.error("[OSR] getInfo failed",e)}return null}async connect(e){var n;this._scanning=!0,this._error=void 0;try{if((e==null?void 0:e.silent)&&"serial"in navigator){const r=await navigator.serial.getPorts();console.log(`[OSR] Found ${r.length} authorized ports`);let i=r[0];if((n=e.reconnectHint)!=null&&n.usbVendorId&&(i=r.find(o=>{var l,u;const a=o.getInfo();return a.usbVendorId===((l=e.reconnectHint)==null?void 0:l.usbVendorId)&&a.usbProductId===((u=e.reconnectHint)==null?void 0:u.usbProductId)})||r[0]),i)try{await i.open({baudRate:115200}),this._port=i,this._ready=!0,console.log("[OSR]","Silently reconnected."),this._scanning=!1;return}catch(o){console.warn("[OSR] Silent open failed",o)}}if((e==null?void 0:e.silent)&&!(e!=null&&e.allowInteractiveFallback)){this._scanning=!1;return}const s=await navigator.serial.requestPort();
36await s.open({baudRate:115200}),this._port=s,this._ready=!0,console.log("[OSR]","Connected.")}catch(s){console.log(s),this._error=s.message||String(s)}finally{this._scanning=!1}}disconnect(){this._fakeConnected=!1,this._ready=!1,this._port&&this._port.close().catch(e=>{console.log(e)}).finally(()=>{this._port=void 0})}fakeconnection(){this._error=void 0,this._scanning=!1,this._fakeConnected=!this._fakeConnected,this._ready=this._fakeConnected}move(e,n){if(!this._ready||!this._port||!this._port.writable){console.warn("[OSR] Skipping move command: port not ready");return}e=Ku(e,{speedLimit:this.settings.speedLimit,limits:this.settings.limits,invert:this.settings.invert}),e=Math.round(e),e<1&&(e=1),e>99&&(e=99);const s=("0"+e).slice(-2);console.log("[OSR][SEND]",`L0${s}I${n.toFixed(0)}`);try{const r=this._port.writable.getWriter();r.write(new TextEncoder().encode(`L0${s}I${n.toFixed(0)} 37`)),r.releaseLock()}catch(r){console.error("[OSR] Failed to write to port:",r)}}get error(){return this._error}get scanning(){return this._scanning}get connected(){return Boolean(this._port)&&this._ready||this._fakeConnected}}function zi(t,e){return t.then(n=>[null,n]).catch(n=>e?[Object.assign({},n,e),void 0]:[n,void 0])}var ii={},Yu={},ar={},Ra={exports:{}};(function(t){var e=Object.prototype.hasOwnProperty,n="~";function s(){}Object.create&&(s.prototype=Object.create(null),new s().__proto__||(n=!1));function r(l,u,c){this.fn=l,this.context=u,this.once=c||!1}function i(l,u,c,d,p){if(typeof c!="function")throw new TypeError("The listener must be a function");var g=new r(c,d||l,p),v=n?n+u:u;return l._events[v]?l._events[v].fn?l._events[v]=[l._events[v],g]:l._events[v].push(g):(l._events[v]=g,l._eventsCount++),l}function o(l,u){--l._eventsCount===0?l._events=new s:delete l._events[u]}function a(){this._events=new s,this._eventsCount=0}a.prototype.eventNames=function(){var u=[],c,d;if(this._eventsCount===0)return u;for(d in c=this._events)e.call(c,d)&&u.push(n?d.slice(1):d);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(c)):u},a.prototype.listeners=function(u){var c=n?n+u:u,d=this._events[c];if(!d)return[];if(d.fn)return[d.fn];for(var p=0,g=d.length,v=new Array(g);p<g;p++)v[p]=d[p].fn;return v},a.prototype.listenerCount=function(u){var c=n?n+u:u,d=this._events[c];return d?d.fn?1:d.length:0},a.prototype.emit=function(u,c,d,p,g,v){var b=n?n+u:u;if(!this._events[b])return!1;var k=this._events[b],L=arguments.length,E,_;if(k.fn){switch(k.once&&this.removeListener(u,k.fn,void 0,!0),L){case 1:return k.fn.call(k.context),!0;case 2:return k.fn.call(k.context,c),!0;case 3:return k.fn.call(k.context,c,d),!0;case 4:return k.fn.call(k.context,c,d,p),!0;case 5:return k.fn.call(k.context,c,d,p,g),!0;case 6:return k.fn.call(k.context,c,d,p,g,v),!0}for(_=1,E=new Array(L-1);_<L;_++)E[_-1]=arguments[_];k.fn.apply(k.context,E)}else{var m=k.length,x;for(_=0;_<m;_++)switch(k[_].once&&this.removeListener(u,k[_].fn,void 0,!0),L){case 1:k[_].fn.call(k[_].context);break;case 2:k[_].fn.call(k[_].context,c);break;case 3:k[_].fn.call(k[_].context,c,d);break;case 4:k[_].fn.call(k[_].context,c,d,p);break;default:if(!E)for(x=1,E=new Array(L-1);x<L;x++)E[x-1]=arguments[x];k[_].fn.apply(k[_].context,E)}}return!0},a.prototype.on=function(u,c,d){return i(this,u,c,d,!1)},a.prototype.once=function(u,c,d){return i(this,u,c,d,!0)},a.prototype.removeListener=function(u,c,d,p){var g=n?n+u:u;if(!this._events[g])return this;if(!c)return o(this,g),this;var v=this._events[g];if(v.fn)v.fn===c&&(!p||v.once)&&(!d||v.context===d)&&o(this,g);else{for(var b=0,k=[],L=v.length;b<L;b++)(v[b].fn!==c||p&&!v[b].once||d&&v[b].context!==d)&&k.push(v[b]);k.length?this._events[g]=k.length===1?k[0]:k:o(this,g)}return this},a.prototype.removeAllListeners=function(u){var c;return u?(c=n?n+u:u,this._events[c]&&o(this,c)):(this._events=new s,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=n,a.EventEmitter=a,t.exports=a})(Ra);/*! 38 * Buttplug JS Source Code File - Visit https://buttplug.io for more info about 39 * the project. Licensed under the BSD 3-Clause license. See LICENSE file in the 40 * project root for full license information. 41 * 42 * @copyright Copyright (c) Nonpolynomial Labs LLC. All rights reserved.
43 */Object.defineProperty(ar,"__esModule",{value:!0});ar.ButtplugLogger=ar.LogMessage=ar.ButtplugLogLevel=void 0;const sC=Ra.exports;var Os;(function(t){t[t.Off=0]="Off",t[t.Error=1]="Error",t[t.Warn=2]="Warn",t[t.Info=3]="Info",t[t.Debug=4]="Debug",t[t.Trace=5]="Trace"})(Os||(ar.ButtplugLogLevel=Os={}));class h2{constructor(e,n){const s=new Date,r=s.getHours(),i=s.getMinutes(),o=s.getSeconds();this.timestamp=`${r}:${i}:${o}`,this.logMessage=e,this.logLevel=n}get Message(){return this.logMessage}get LogLevel(){return this.logLevel}get Timestamp(){return this.timestamp}get FormattedMessage(){return`${Os[this.logLevel]} : ${this.timestamp} : ${this.logMessage}`}}ar.LogMessage=h2;class so extends sC.EventEmitter{static get Logger(){return so.sLogger===void 0&&(so.sLogger=new so),this.sLogger}constructor(){super(),this.maximumConsoleLogLevel=Os.Off,this.maximumEventLogLevel=Os.Off}get MaximumConsoleLogLevel(){return this.maximumConsoleLogLevel}set MaximumConsoleLogLevel(e){this.maximumConsoleLogLevel=e}get MaximumEventLogLevel(){return this.maximumEventLogLevel}set MaximumEventLogLevel(e){this.maximumEventLogLevel=e}Error(e){this.AddLogMessage(e,Os.Error)}Warn(e){this.AddLogMessage(e,Os.Warn)}Info(e){this.AddLogMessage(e,Os.Info)}Debug(e){this.AddLogMessage(e,Os.Debug)}Trace(e){this.AddLogMessage(e,Os.Trace)}AddLogMessage(e,n){if(n>this.maximumEventLogLevel&&n>this.maximumConsoleLogLevel)return;const s=new h2(e,n);n<=this.maximumConsoleLogLevel&&console.log(s.FormattedMessage),n<=this.maximumEventLogLevel&&this.emit("log",s)}}ar.ButtplugLogger=so;so.sLogger=void 0;var Va={},Dr={},Je;(function(t){t[t.PLAIN_TO_CLASS=0]="PLAIN_TO_CLASS",t[t.CLASS_TO_PLAIN=1]="CLASS_TO_PLAIN",t[t.CLASS_TO_CLASS=2]="CLASS_TO_CLASS"})(Je||(Je={}));var rC=function(){function t(){this._typeMetadatas=new Map,this._transformMetadatas=new Map,this._exposeMetadatas=new Map,this._excludeMetadatas=new Map,this._ancestorsMap=new Map}return t.prototype.addTypeMetadata=function(e){this._typeMetadatas.has(e.target)||this._typeMetadatas.set(e.target,new Map),this._typeMetadatas.get(e.target).set(e.propertyName,e)},t.prototype.addTransformMetadata=function(e){this._transformMetadatas.has(e.target)||this._transformMetadatas.set(e.target,new Map),this._transformMetadatas.get(e.target).has(e.propertyName)||this._transformMetadatas.get(e.target).set(e.propertyName,[]),this._transformMetadatas.get(e.target).get(e.propertyName).push(e)},t.prototype.addExposeMetadata=function(e){this._exposeMetadatas.has(e.target)||this._exposeMetadatas.set(e.target,new Map),this._exposeMetadatas.get(e.target).set(e.propertyName,e)},t.prototype.addExcludeMetadata=function(e){this._excludeMetadatas.has(e.target)||this._excludeMetadatas.set(e.target,new Map),this._excludeMetadatas.get(e.target).set(e.propertyName,e)},t.prototype.findTransformMetadatas=function(e,n,s){return this.findMetadatas(this._transformMetadatas,e,n).filter(function(r){return!r.options||r.options.toClassOnly===!0&&r.options.toPlainOnly===!0?!0:r.options.toClassOnly===!0?s===Je.CLASS_TO_CLASS||s===Je.PLAIN_TO_CLASS:r.options.toPlainOnly===!0?s===Je.CLASS_TO_PLAIN:!0})},t.prototype.findExcludeMetadata=function(e,n){return this.findMetadata(this._excludeMetadatas,e,n)},t.prototype.findExposeMetadata=function(e,n){return this.findMetadata(this._exposeMetadatas,e,n)},t.prototype.findExposeMetadataByCustomName=function(e,n){return this.getExposedMetadatas(e).find(function(s){return s.options&&s.options.name===n})},t.prototype.findTypeMetadata=function(e,n){return this.findMetadata(this._typeMetadatas,e,n)},t.prototype.getStrategy=function(e){var n=this._excludeMetadatas.get(e),s=n&&n.get(void 0),r=this._exposeMetadatas.get(e),i=r&&r.get(void 0);return s&&i||!s&&!i?"none":s?"excludeAll":"exposeAll"},t.prototype.getExposedMetadatas=function(e){return this.getMetadata(this._exposeMetadatas,e)},t.prototype.getExcludedMetadatas=function(e){return this.getMetadata(this._excludeMetadatas,e)},t.prototype.getExposedProperties=function(e,n){return this.getExposedMetadatas(e).filter(function(s){return!s.options||s.options.toClassOnly===!0&&s.options.toPlainOnly===!0?!0:s.options.toClassOnly===!0?n===Je.CLASS_TO_CLASS||n===Je.PLAIN_TO_CLASS:s.options.toPlainOnly===!0?n===Je.CLASS_TO_PLAIN:!0}).map(function(s){return s.propertyName})},t.prototype.getExcludedProperties=function(e,n){return this.getExcludedMetadatas(e).filter(function(s){return!s.options||s.options.toClassOnly===!0&&s.options.toPlainOnly===!0?!0:s.options.toClassOnly===!0?n===Je.CLASS_TO_CLASS||n===Je.PLAIN_TO_CLASS:s.options.toPlainOnly===!0?n===Je.CLASS_TO_PLAIN:!0}).map(function(s){return s.propertyName})},t.prototype.clear=function(){this._typeMetadatas.clear(),this._exposeMetadatas.clear(),this._excludeMetadatas.clear(),this._ancestorsMap.clear()},t.prototype.getMetadata=function(e,n){var s=e.get(n),r;s&&(r=Array.from(s.values()).filter(function(d){return d.propertyName!==void 0}));for(var i=[],o=0,a=this.getAncestors(n);o<a.length;o++){var l=a[o],u=e.get(l);if(u){var c=Array.from(u.values()).filter(function(d){return d.propertyName!==void 0});i.push.apply(i,c)}}return i.concat(r||[])},t.prototype.findMetadata=function(e,n,s){var r=e.get(n);if(r){var i=r.get(s);if(i)return i}for(var o=0,a=this.getAncestors(n);o<a.length;o++){var l=a[o],u=e.get(l);if(u){var c=u.get(s);if(c)return c}}},t.prototype.findMetadatas=function(e,n,s){var r=e.get(n),i;r&&(i=r.get(s));for(var o=[],a=0,l=this.getAncestors(n);a<l.length;a++){var u=l[a],c=e.get(u);c&&c.has(s)&&o.push.apply(o,c.get(s))}return o.slice().reverse().concat((i||[]).slice().reverse())},t.prototype.getAncestors=function(e){if(!e)return[];if(!this._ancestorsMap.has(e)){for(var n=[],s=Object.getPrototypeOf(e.prototype.constructor);typeof s.prototype<"u";s=Object.getPrototypeOf(s.prototype.constructor))n.push(s);this._ancestorsMap.set(e,n)}return this._ancestorsMap.get(e)},t}(),an=new rC;function iC(){if(typeof globalThis<"u")return globalThis;if(typeof global<"u")return global;if(typeof window<"u")return window;if(typeof self<"u")return self}function oC(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var a0=globalThis&&globalThis.__spreadArray||function(t,e,n){if(n||arguments.length===2)for(var s=0,r=e.length,i;s<r;s++)(i||!(s in e))&&(i||(i=Array.prototype.slice.call(e,0,s)),i[s]=e[s]);return t.concat(i||Array.prototype.slice.call(e))};function aC(t){var e=new t;return!(e instanceof Set)&&!("push"in e)?[]:e}var Ei=function(){function t(e,n){this.transformationType=e,this.options=n,this.recursionStack=new Set}return t.prototype.transform=function(e,n,s,r,i,o){var a=this;if(o===void 0&&(o=0),Array.isArray(n)||n instanceof Set){var l=r&&this.transformationType===Je.PLAIN_TO_CLASS?aC(r):[];
43return n.forEach(function(k,L){var E=e?e[L]:void 0;if(!a.options.enableCircularCheck||!a.isCircular(k)){var _=void 0;if(typeof s!="function"&&s&&s.options&&s.options.discriminator&&s.options.discriminator.property&&s.options.discriminator.subTypes){if(a.transformationType===Je.PLAIN_TO_CLASS){_=s.options.discriminator.subTypes.find(function(h){return h.name===k[s.options.discriminator.property]});var m={newObject:l,object:k,property:void 0},x=s.typeFunction(m);_===void 0?_=x:_=_.value,s.options.keepDiscriminatorProperty||delete k[s.options.discriminator.property]}a.transformationType===Je.CLASS_TO_CLASS&&(_=k.constructor),a.transformationType===Je.CLASS_TO_PLAIN&&(k[s.options.discriminator.property]=s.options.discriminator.subTypes.find(function(h){return h.value===k.constructor}).name)}else _=s;var A=a.transform(E,k,_,void 0,k instanceof Map,o+1);l instanceof Set?l.add(A):l.push(A)}else a.transformationType===Je.CLASS_TO_CLASS&&(l instanceof Set?l.add(k):l.push(k))}),l}else{if(s===String&&!i)return n==null?n:String(n);if(s===Number&&!i)return n==null?n:Number(n);if(s===Boolean&&!i)return n==null?n:Boolean(n);if((s===Date||n instanceof Date)&&!i)return n instanceof Date?new Date(n.valueOf()):n==null?n:new Date(n);if(!!iC().Buffer&&(s===Buffer||n instanceof Buffer)&&!i)return n==null?n:Buffer.from(n);if(oC(n)&&!i)return new Promise(function(k,L){n.then(function(E){return k(a.transform(void 0,E,s,void 0,void 0,o+1))},L)});if(!i&&n!==null&&typeof n=="object"&&typeof n.then=="function")return n;if(typeof n=="object"&&n!==null){!s&&n.constructor!==Object&&(!Array.isArray(n)&&n.constructor===Array||(s=n.constructor)),!s&&e&&(s=e.constructor),this.options.enableCircularCheck&&this.recursionStack.add(n);var u=this.getKeys(s,n,i),c=e||{};!e&&(this.transformationType===Je.PLAIN_TO_CLASS||this.transformationType===Je.CLASS_TO_CLASS)&&(i?c=new Map:s?c=new s:c={});for(var d=function(k){if(k==="__proto__"||k==="constructor")return"continue";var L=k,E=k,_=k;if(!p.options.ignoreDecorators&&s){if(p.transformationType===Je.PLAIN_TO_CLASS){var m=an.findExposeMetadataByCustomName(s,k);
43m&&(_=m.propertyName,E=m.propertyName)}else if(p.transformationType===Je.CLASS_TO_PLAIN||p.transformationType===Je.CLASS_TO_CLASS){var m=an.findExposeMetadata(s,k);m&&m.options&&m.options.name&&(E=m.options.name)}}var x=void 0;p.transformationType===Je.PLAIN_TO_CLASS?x=n[L]:n instanceof Map?x=n.get(L):n[L]instanceof Function?x=n[L]():x=n[L];var A=void 0,h=x instanceof Map;if(s&&i)A=s;else if(s){var S=an.findTypeMetadata(s,_);if(S){var $={newObject:c,object:n,property:_},R=S.typeFunction?S.typeFunction($):S.reflectedType;S.options&&S.options.discriminator&&S.options.discriminator.property&&S.options.discriminator.subTypes?n[L]instanceof Array?A=S:(p.transformationType===Je.PLAIN_TO_CLASS&&(A=S.options.discriminator.subTypes.find(function(re){if(x&&x instanceof Object&&S.options.discriminator.property in x)return re.name===x[S.options.discriminator.property]}),A===void 0?A=R:A=A.value,S.options.keepDiscriminatorProperty||x&&x instanceof Object&&S.options.discriminator.property in x&&delete x[S.options.discriminator.property]),p.transformationType===Je.CLASS_TO_CLASS&&(A=x.constructor),p.transformationType===Je.CLASS_TO_PLAIN&&x&&(x[S.options.discriminator.property]=S.options.discriminator.subTypes.find(function(re){return re.value===x.constructor}).name)):A=R,h=h||S.reflectedType===Map}else if(p.options.targetMaps)p.options.targetMaps.filter(function(re){return re.target===s&&!!re.properties[_]}).forEach(function(re){return A=re.properties[_]});else if(p.options.enableImplicitConversion&&p.transformationType===Je.PLAIN_TO_CLASS){var G=Reflect.getMetadata("design:type",s.prototype,_);G&&(A=G)}}var H=Array.isArray(n[L])?p.getReflectedType(s,_):void 0,ee=e?e[L]:void 0;if(c.constructor.prototype){var j=Object.getOwnPropertyDescriptor(c.constructor.prototype,E);if((p.transformationType===Je.PLAIN_TO_CLASS||p.transformationType===Je.CLASS_TO_CLASS)&&(j&&!j.set||c[E]instanceof Function))return"continue"}
43if(!p.options.enableCircularCheck||!p.isCircular(x)){var le=p.transformationType===Je.PLAIN_TO_CLASS?E:k,X=void 0;p.transformationType===Je.CLASS_TO_PLAIN?(X=n[le],X=p.applyCustomTransformations(X,s,le,n,p.transformationType),X=n[le]===X?x:X,X=p.transform(ee,X,A,H,h,o+1)):x===void 0&&p.options.exposeDefaultValues?X=c[E]:(X=p.transform(ee,x,A,H,h,o+1),X=p.applyCustomTransformations(X,s,le,n,p.transformationType)),(X!==void 0||p.options.exposeUnsetFields)&&(c instanceof Map?c.set(E,X):c[E]=X)}else if(p.transformationType===Je.CLASS_TO_CLASS){var X=x;X=p.applyCustomTransformations(X,s,k,n,p.transformationType),(X!==void 0||p.options.exposeUnsetFields)&&(c instanceof Map?c.set(E,X):c[E]=X)}},p=this,g=0,v=u;g<v.length;g++){var b=v[g];d(b)}return this.options.enableCircularCheck&&this.recursionStack.delete(n),c}else return n}},t.prototype.applyCustomTransformations=function(e,n,s,r,i){var o=this,a=an.findTransformMetadatas(n,s,this.transformationType);return this.options.version!==void 0&&(a=a.filter(function(l){return l.options?o.checkVersion(l.options.since,l.options.until):!0})),this.options.groups&&this.options.groups.length?a=a.filter(function(l){return l.options?o.checkGroups(l.options.groups):!0}):a=a.filter(function(l){return!l.options||!l.options.groups||!l.options.groups.length}),a.forEach(function(l){e=l.transformFn({value:e,key:s,obj:r,type:i,options:o.options})}),e},t.prototype.isCircular=function(e){return this.recursionStack.has(e)},t.prototype.getReflectedType=function(e,n){if(!!e){var s=an.findTypeMetadata(e,n);return s?s.reflectedType:void 0}},t.prototype.getKeys=function(e,n,s){var r=this,i=an.getStrategy(e);i==="none"&&(i=this.options.strategy||"exposeAll");var o=[];if((i==="exposeAll"||s)&&(n instanceof Map?o=Array.from(n.keys()):o=Object.keys(n)),s)return o;if(this.options.ignoreDecorators&&this.options.excludeExtraneousValues&&e){var a=an.getExposedProperties(e,this.transformationType),l=an.getExcludedProperties(e,this.transformationType);o=a0(a0([],a,!0),l,!0)}if(!this.options.ignoreDecorators&&e){var a=an.getExposedProperties(e,this.transformationType);this.transformationType===Je.PLAIN_TO_CLASS&&(a=a.map(function(d){var p=an.findExposeMetadata(e,d);return p&&p.options&&p.options.name?p.options.name:d})),this.options.excludeExtraneousValues?o=a:o=o.concat(a);var u=an.getExcludedProperties(e,this.transformationType);u.length>0&&(o=o.filter(function(d){return!u.includes(d)})),this.options.version!==void 0&&(o=o.filter(function(d){var p=an.findExposeMetadata(e,d);return!p||!p.options?!0:r.checkVersion(p.options.since,p.options.until)})),this.options.groups&&this.options.groups.length?o=o.filter(function(d){var p=an.findExposeMetadata(e,d);return!p||!p.options?!0:r.checkGroups(p.options.groups)}):o=o.filter(function(d){var p=an.findExposeMetadata(e,d);return!p||!p.options||!p.options.groups||!p.options.groups.length})}return this.options.excludePrefixes&&this.options.excludePrefixes.length&&(o=o.filter(function(c){return r.options.excludePrefixes.every(function(d){return c.substr(0,d.length)!==d})})),o=o.filter(function(c,d,p){return p.indexOf(c)===d}),o},t.prototype.checkVersion=function(e,n){var s=!0;return s&&e&&(s=this.options.version>=e),s&&n&&(s=this.options.version<n),s},t.prototype.checkGroups=function(e){return e?this.options.groups.some(function(n){return e.includes(n)}):!0},t}(),Ai={enableCircularCheck:!1,enableImplicitConversion:!1,excludeExtraneousValues:!1,excludePrefixes:void 0,exposeDefaultValues:!1,exposeUnsetFields:!0,groups:void 0,ignoreDecorators:!1,strategy:void 0,targetMaps:void 0,version:void 0},Dn=globalThis&&globalThis.__assign||function(){return Dn=Object.assign||function(t){for(var e,n=1,s=arguments.length;n<s;n++){e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},Dn.apply(this,arguments)},Ia=function(){function t(){}return t.prototype.instanceToPlain=function(e,n){var s=new Ei(Je.CLASS_TO_PLAIN,Dn(Dn({},Ai),n));return s.transform(void 0,e,void 0,void 0,void 0,void 0)},t.prototype.classToPlainFromExist=function(e,n,s){var r=new Ei(Je.CLASS_TO_PLAIN,Dn(Dn({},Ai),s));return r.transform(n,e,void 0,void 0,void 0,void 0)},t.prototype.plainToInstance=function(e,n,s){var r=new Ei(Je.PLAIN_TO_CLASS,Dn(Dn({},Ai),s));return r.transform(void 0,n,e,void 0,void 0,void 0)},t.prototype.plainToClassFromExist=function(e,n,s){var r=new Ei(Je.PLAIN_TO_CLASS,Dn(Dn({},Ai),s));return r.transform(e,n,void 0,void 0,void 0,void 0)},t.prototype.instanceToInstance=function(e,n){var s=new Ei(Je.CLASS_TO_CLASS,Dn(Dn({},Ai),n));return s.transform(void 0,e,void 0,void 0,void 0,void 0)},t.prototype.classToClassFromExist=function(e,n,s){var r=new Ei(Je.CLASS_TO_CLASS,Dn(Dn({},Ai),s));return r.transform(n,e,void 0,void 0,void 0,void 0)},t.prototype.serialize=function(e,n){return JSON.stringify(this.instanceToPlain(e,n))},t.prototype.deserialize=function(e,n,s){var r=JSON.parse(n);return this.plainToInstance(e,r,s)},t.prototype.deserializeArray=function(e,n,s){var r=JSON.parse(n);return this.plainToInstance(e,r,s)},t}();function lC(t){return t===void 0&&(t={}),function(e,n){an.addExcludeMetadata({target:e instanceof Function?e:e.constructor,propertyName:n,options:t})}}function uC(t){return t===void 0&&(t={}),function(e,n){an.addExposeMetadata({target:e instanceof Function?e:e.constructor,propertyName:n,options:t})}}function cC(t){return function(e,n,s){var r=new Ia,i=s.value;s.value=function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var l=i.apply(this,o),u=!!l&&(typeof l=="object"||typeof l=="function")&&typeof l.then=="function";return u?l.then(function(c){return r.instanceToInstance(c,t)}):r.instanceToInstance(l,t)}}}function dC(t){return function(e,n,s){var r=new Ia,i=s.value;s.value=function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var l=i.apply(this,o),u=!!l&&(typeof l=="object"||typeof l=="function")&&typeof l.then=="function";return u?l.then(function(c){return r.instanceToPlain(c,t)}):r.instanceToPlain(l,t)}}}function fC(t,e){return function(n,s,r){var i=new Ia,o=r.value;r.value=function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];var u=o.apply(this,a),c=!!u&&(typeof u=="object"||typeof u=="function")&&typeof u.then=="function";return c?u.then(function(d){return i.plainToInstance(t,d,e)}):i.plainToInstance(t,u,e)}}}function hC(t,e){return e===void 0&&(e={}),function(n,s){an.addTransformMetadata({target:n.constructor,propertyName:s,transformFn:t,options:e})}}function pC(t,e){return e===void 0&&(e={}),function(n,s){var r=Reflect.getMetadata("design:type",n,s);an.addTypeMetadata({target:n.constructor,propertyName:s,reflectedType:r,typeFunction:t,options:e})}}var Cs=new Ia;function gC(t,e){return Cs.instanceToPlain(t,e)}function vC(t,e){return Cs.instanceToPlain(t,e)}function mC(t,e,n){return Cs.classToPlainFromExist(t,e,n)}function _C(t,e,n){return Cs.plainToInstance(t,e,n)}function yC(t,e,n){return Cs.plainToInstance(t,e,n)}function bC(t,e,n){return Cs.plainToClassFromExist(t,e,n)}function wC(t,e){return Cs.instanceToInstance(t,e)}function xC(t,e,n){return Cs.classToClassFromExist(t,e,n)}function CC(t,e){return Cs.serialize(t,e)}function kC(t,e,n){return Cs.deserialize(t,e,n)}function SC(t,e,n){return Cs.deserializeArray(t,e,n)}const EC=Object.freeze(Object.defineProperty({__proto__:null,classToPlain:gC,instanceToPlain:vC,classToPlainFromExist:mC,plainToClass:_C,plainToInstance:yC,plainToClassFromExist:bC,instanceToInstance:wC,classToClassFromExist:xC,seri
43alize:CC,deserialize:kC,deserializeArray:SC,ClassTransformer:Ia,Exclude:lC,Expose:uC,TransformInstanceToInstance:cC,TransformInstanceToPlain:dC,TransformPlainToInstance:fC,Transform:hC,Type:pC,get TransformationType(){return Je}},Symbol.toStringTag,{value:"Module"})),p2=u_(EC);/*! ***************************************************************************** 44Copyright (C) Microsoft. All rights reserved. 45Licensed under the Apache License, Version 2.0 (the "License"); you may not use 46this file except in compliance with the License. You may obtain a copy of the 47License at http://www.apache.org/licenses/LICENSE-2.0 48 49THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 50KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 51WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 52MERCHANTABLITY OR NON-INFRINGEMENT. 53 54See the Apache Version 2.0 License for specific language governing permissions 55and limitations under the License. 56***************************************************************************** */var l0;(function(t){(function(e){var n=typeof globalThis=="object"?globalThis:typeof We=="object"?We:typeof self=="object"?self:typeof this=="object"?this:a(),s=r(t);typeof n.Reflect<"u"&&(s=r(n.Reflect,s)),e(s,n),typeof n.Reflect>"u"&&(n.Reflect=t);function r(l,u){return function(c,d){Object.defineProperty(l,c,{configurable:!0,writable:!0,value:d}),u&&u(c,d)}}function i(){try{return Function("return this;")()}catch{}}function o(){try{return(0,eval)("(function() { return this; })()")}catch{}}function a(){return i()||o()}})(function(e,n){var s=Object.prototype.hasOwnProperty,r=typeof Symbol=="function",i=r&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",o=r&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",a=typeof Object.create=="function",l={__proto__:[]}instanceof Array,u=!a&&!l,c={create:a?function(){return pt(Object.create(null))}:l?function(){return pt({__proto__:null})}:function(){return pt({})},has:u?function(F,z){return s.call(F,z)}:function(F,z){return z in F},get:u?function(F,z){return s.call(F,z)?F[z]:void 0}:function(F,z){return F[z]}},d=Object.getPrototypeOf(Function),p=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:st(),g=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:_t(),v=typeof WeakMap=="function"?WeakMap:ht(),b=r?Symbol.for("@reflect-metadata:registry"):void 0,k=be(),L=Ce(k);function E(F,z,Y,de){if(ye(Y)){if(!Ee(F))throw new TypeError;if(!M(z))throw new TypeError;return H(F,z)}else{if(!Ee(F))throw new TypeError;if(!xe(z))throw new TypeError;if(!xe(de)&&!ye(de)&&!ut(de))throw new TypeError;return ut(de)&&(de=void 0),Y=J(Y),ee(F,z,Y,de)}}e("decorate",E);function _(F,z){function Y(de,Be){if(!xe(de))throw new TypeError;if(!ye(Be)&&!P(Be))throw new TypeError;ne(F,z,de,Be)}return Y}e("metadata",_);function m(F,z,Y,de){if(!xe(Y))throw new TypeError;return ye(de)||(de=J(de)),ne(F,z,Y,de)}e("defineMetadata",m);function x(F,z,Y){if(!xe(z))throw new TypeError;return ye(Y)||(Y=J(Y)),j(F,z,Y)}e("hasMetadata",x);function A(F,z,Y){if(!xe(z))throw new TypeError;return ye(Y)||(Y=J(Y)),le(F,z,Y)}e("hasOwnMetadata",A);function h(F,z,Y){if(!xe(z))throw new TypeError;return ye(Y)||(Y=J(Y)),X(F,z,Y)}e("getMetadata",h);function S(F,z,Y){if(!xe(z))throw new TypeError;return ye(Y)||(Y=J(Y)),re(F,z,Y)}e("getOwnMetadata",S);function $(F,z){if(!xe(F))throw new TypeError;return ye(z)||(z=J(z)),De(F,z)}e("getMetadataKeys",$);function R(F,z){if(!xe(F))throw new TypeError;return ye(z)||(z=J(z)),ot(F,z)}e("getOwnMetadataKeys",R);function G(F,z,Y){if(!xe(z))throw new TypeError;if(ye(Y)||(Y=J(Y)),!xe(z))throw new TypeError;ye(Y)||(Y=J(Y));var de=je(z,Y,!1);return ye(de)?!1:de.OrdinaryDeleteMetadata(F,z,Y)}e("deleteMetadata",G);function H(F,z){for(var Y=F.length-1;Y>=0;--Y){var de=F[Y],Be=de(z);if(!ye(Be)&&!ut(Be)){if(!M(Be))throw new TypeError;z=Be}}return z}function ee(F,z,Y,de){for(var Be=F.length-1;Be>=0;--Be){var et=F[Be],gt=et(z,Y,de);if(!ye(gt)&&!ut(gt)){if(!xe(gt))throw new TypeError;de=gt}}return de}function j(F,z,Y){var de=le(F,z,Y);if(de)return!0;var Be=fe(z);return ut(Be)?!1:j(F,Be,Y)}function le(F,z,Y){var de=je(z,Y,!1);return ye(de)?!1:I(de.OrdinaryHasOwnMetadata(F,z,Y))}function X(F,z,Y){var de=le(F,z,Y);if(de)return re(F,z,Y);var Be=fe(z);if(!ut(Be))return X(F,Be,Y)}function re(F,z,Y){var de=je(z,Y,!1);if(!ye(de))return de.OrdinaryGetOwnMetadata(F,z,Y)}function ne(F,z,Y,de){var Be=je(Y,de,!0);Be.OrdinaryDefineOwnMetadata(F,z,Y,de)}function De(F,z){var Y=ot(F,z),de=fe(F);if(de===null)return Y;var Be=De(de,z);if(Be.length<=0)return Y;if(Y.length<=0)return Be;for(var et=new g,gt=[],Ye=0,ke=Y;Ye<ke.length;Ye++){var Oe=ke[Ye],$e=et.has(Oe);$e||(et.add(Oe),gt.push(Oe))}for(var Fe=0,tt=Be;Fe<tt.length;Fe++){var Oe=tt[Fe],$e=et.has(Oe);$e||(et.add(Oe),gt.push(Oe))}return gt}function ot(F,z){var Y=je(F,z,!1);
56return Y?Y.OrdinaryOwnMetadataKeys(F,z):[]}function nt(F){if(F===null)return 1;switch(typeof F){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return F===null?1:6;default:return 6}}function ye(F){return F===void 0}function ut(F){return F===null}function Ke(F){return typeof F=="symbol"}function xe(F){return typeof F=="object"?F!==null:typeof F=="function"}function ft(F,z){switch(nt(F)){case 0:return F;case 1:return F;case 2:return F;case 3:return F;case 4:return F;case 5:return F}var Y=z===3?"string":z===5?"number":"default",de=te(F,i);if(de!==void 0){var Be=de.call(F,Y);if(xe(Be))throw new TypeError;return Be}return B(F,Y==="default"?"number":Y)}function B(F,z){if(z==="string"){var Y=F.toString;if(Te(Y)){var de=Y.call(F);if(!xe(de))return de}var Be=F.valueOf;if(Te(Be)){var de=Be.call(F);if(!xe(de))return de}}else{var Be=F.valueOf;if(Te(Be)){var de=Be.call(F);if(!xe(de))return de}var et=F.toString;if(Te(et)){var de=et.call(F);if(!xe(de))return de}}throw new TypeError}function I(F){return!!F}function W(F){return""+F}function J(F){var z=ft(F,3);return Ke(z)?z:W(z)}function Ee(F){return Array.isArray?Array.isArray(F):F instanceof Object?F instanceof Array:Object.prototype.toString.call(F)==="[object Array]"}function Te(F){return typeof F=="function"}function M(F){return typeof F=="function"}function P(F){switch(nt(F)){case 3:return!0;case 4:return!0;default:return!1}}function q(F,z){return F===z||F!==F&&z!==z}function te(F,z){var Y=F[z];if(Y!=null){if(!Te(Y))throw new TypeError;return Y}}function Q(F){var z=te(F,o);if(!Te(z))throw new TypeError;var Y=z.call(F);if(!xe(Y))throw new TypeError;return Y}function ie(F){return F.value}function ge(F){var z=F.next();return z.done?!1:z}function he(F){var z=F.return;z&&z.call(F)}function fe(F){var z=Object.getPrototypeOf(F);if(typeof F!="function"||F===d||z!==d)return z;var Y=F.prototype,de=Y&&Object.getPrototypeOf(Y);if(de==null||de===Object.prototype)return z;var Be=de.constructor;return typeof Be!="function"||Be===F?z:Be}function se(){var F;!ye(b)&&typeof n.Reflect<"u"&&!(b in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(F=He(n.Reflect));var z,Y,de,Be=new v,et={registerProvider:gt,getProvider:ke,setProvider:$e};return et;function gt(Fe){if(!Object.isExtensible(et))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case F===Fe:break;case ye(z):z=Fe;break;case z===Fe:break;case ye(Y):Y=Fe;break;case Y===Fe:break;default:de===void 0&&(de=new g),de.add(Fe);break}}function Ye(Fe,tt){if(!ye(z)){if(z.isProviderFor(Fe,tt))return z;if(!ye(Y)){if(Y.isProviderFor(Fe,tt))return z;if(!ye(de))for(var wt=Q(de);;){var O=ge(wt);if(!O)return;var D=ie(O);if(D.isProviderFor(Fe,tt))return he(wt),D}}}if(!ye(F)&&F.isProviderFor(Fe,tt))return F}function ke(Fe,tt){var wt=Be.get(Fe),O;return ye(wt)||(O=wt.get(tt)),ye(O)&&(O=Ye(Fe,tt),ye(O)||(ye(wt)&&(wt=new p,Be.set(Fe,wt)),wt.set(tt,O))),O}function Oe(Fe){if(ye(Fe))throw new TypeError;return z===Fe||Y===Fe||!ye(de)&&de.has(Fe)}function $e(Fe,tt,wt){if(!Oe(wt))throw new Error("Metadata provider not registered.");var O=ke(Fe,tt);if(O!==wt){if(!ye(O))return!1;var D=Be.get(Fe);ye(D)&&(D=new p,Be.set(Fe,D)),D.set(tt,wt)}return!0}}function be(){var F;return!ye(b)&&xe(n.Reflect)&&Object.isExtensible(n.Reflect)&&(F=n.Reflect[b]),ye(F)&&(F=se()),!ye(b)&&xe(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,b,{enumerable:!1,configurable:!1,writable:!1,value:F}),F}function Ce(F){var z=new v,Y={isProviderFor:function(Oe,$e){var Fe=z.get(Oe);return ye(Fe)?!1:Fe.has($e)},OrdinaryDefineOwnMetadata:gt,OrdinaryHasOwnMetadata:Be,OrdinaryGetOwnMetadata:et,OrdinaryOwnMetadataKeys:Ye,OrdinaryDeleteMetadata:ke};return k.registerProvider(Y),Y;function de(Oe,$e,Fe){var tt=z.get(Oe),wt=!1;if(ye(tt)){if(!Fe)return;tt=new p,z.set(Oe,tt),wt=!0}var O=tt.get($e);if(ye(O)){if(!Fe)return;if(O=new p,tt.set($e,O),!F.setProvider(Oe,$e,Y))throw tt.delete($e),wt&&z.delete(Oe),new Error("Wrong provider for target.")}return O}function Be(Oe,$e,Fe){var tt=de($e,Fe,!1);return ye(tt)?!1:I(tt.has(Oe))}function et(Oe,$e,Fe){var tt=de($e,Fe,!1);if(!ye(tt))return tt.get(Oe)}function gt(Oe,$e,Fe,tt){var wt=de(Fe,tt,!0);wt.set(Oe,$e)}function Ye(Oe,$e){var Fe=[],tt=de(Oe,$e,!1);if(ye(tt))return Fe;for(var wt=tt.keys(),O=Q(wt),D=0;;){var U=ge(O);if(!U)return Fe.length=D,Fe;var ue=ie(U);try{Fe[D]=ue}catch(ve){try{he(O)}finally{throw ve}}D++}}function ke(Oe,$e,Fe){var tt=de($e,Fe,!1);if(ye(tt)||!tt.delete(Oe))return!1;if(tt.size===0){var wt=z.get($e);
56ye(wt)||(wt.delete(Fe),wt.size===0&&z.delete(wt))}return!0}}function He(F){var z=F.defineMetadata,Y=F.hasOwnMetadata,de=F.getOwnMetadata,Be=F.getOwnMetadataKeys,et=F.deleteMetadata,gt=new v,Ye={isProviderFor:function(ke,Oe){var $e=gt.get(ke);return!ye($e)&&$e.has(Oe)?!0:Be(ke,Oe).length?(ye($e)&&($e=new g,gt.set(ke,$e)),$e.add(Oe),!0):!1},OrdinaryDefineOwnMetadata:z,OrdinaryHasOwnMetadata:Y,OrdinaryGetOwnMetadata:de,OrdinaryOwnMetadataKeys:Be,OrdinaryDeleteMetadata:et};return Ye}function je(F,z,Y){var de=k.getProvider(F,z);if(!ye(de))return de;if(Y){if(k.setProvider(F,z,L))return L;throw new Error("Illegal state.")}}function st(){var F={},z=[],Y=function(){function Ye(ke,Oe,$e){this._index=0,this._keys=ke,this._values=Oe,this._selector=$e}return Ye.prototype["@@iterator"]=function(){return this},Ye.prototype[o]=function(){return this},Ye.prototype.next=function(){var ke=this._index;if(ke>=0&&ke<this._keys.length){var Oe=this._selector(this._keys[ke],this._values[ke]);return ke+1>=this._keys.length?(this._index=-1,this._keys=z,this._values=z):this._index++,{value:Oe,done:!1}}return{value:void 0,done:!0}},Ye.prototype.throw=function(ke){throw this._index>=0&&(this._index=-1,this._keys=z,this._values=z),ke},Ye.prototype.return=function(ke){return this._index>=0&&(this._index=-1,this._keys=z,this._values=z),{value:ke,done:!0}},Ye}(),de=function(){function Ye(){this._keys=[],this._values=[],this._cacheKey=F,this._cacheIndex=-2}return Object.defineProperty(Ye.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),Ye.prototype.has=function(ke){return this._find(ke,!1)>=0},Ye.prototype.get=function(ke){var Oe=this._find(ke,!1);return Oe>=0?this._values[Oe]:void 0},Ye.prototype.set=function(ke,Oe){var $e=this._find(ke,!0);return this._values[$e]=Oe,this},Ye.prototype.delete=function(ke){var Oe=this._find(ke,!1);if(Oe>=0){for(var $e=this._keys.length,Fe=Oe+1;Fe<$e;Fe++)this._keys[Fe-1]=this._keys[Fe],this._values[Fe-1]=this._values[Fe];return this._keys.length--,this._values.length--,q(ke,this._cacheKey)&&(this._cacheKey=F,this._cacheIndex=-2),!0}return!1},Ye.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=F,this._cacheIndex=-2},Ye.prototype.keys=function(){return new Y(this._keys,this._values,Be)},Ye.prototype.values=function(){return new Y(this._keys,this._values,et)},Ye.prototype.entries=function(){return new Y(this._keys,this._values,gt)},Ye.prototype["@@iterator"]=function(){return this.entries()},Ye.prototype[o]=function(){return this.entries()},Ye.prototype._find=function(ke,Oe){if(!q(this._cacheKey,ke)){this._cacheIndex=-1;for(var $e=0;$e<this._keys.length;$e++)if(q(this._keys[$e],ke)){this._cacheIndex=$e;break}}return this._cacheIndex<0&&Oe&&(this._cacheIndex=this._keys.length,this._keys.push(ke),this._values.push(void 0)),this._cacheIndex},Ye}();return de;function Be(Ye,ke){return Ye}function et(Ye,ke){return ke}function gt(Ye,ke){return[Ye,ke]}}function _t(){var F=function(){function z(){this._map=new p}return Object.defineProperty(z.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),z.prototype.has=function(Y){return this._map.has(Y)},z.prototype.add=function(Y){return this._map.set(Y,Y),this},z.prototype.delete=function(Y){return this._map.delete(Y)},z.prototype.clear=function(){this._map.clear()},z.prototype.keys=function(){return this._map.keys()},z.prototype.values=function(){return this._map.keys()},z.prototype.entries=function(){return this._map.entries()},z.prototype["@@iterator"]=function(){return this.keys()},z.prototype[o]=function(){return this.keys()},z}();return F}function ht(){var F=16,z=c.create(),Y=de();return function(){function ke(){this._key=de()}return ke.prototype.has=function(Oe){var $e=Be(Oe,!1);return $e!==void 0?c.has($e,this._key):!1},ke.prototype.get=function(Oe){var $e=Be(Oe,!1);return $e!==void 0?c.get($e,this._key):void 0},ke.prototype.set=function(Oe,$e){var Fe=Be(Oe,!0);return Fe[this._key]=$e,this},ke.prototype.delete=function(Oe){var $e=Be(Oe,!1);return $e!==void 0?delete $e[this._key]:!1},ke.prototype.clear=function(){this._key=de()},ke}();function de(){var ke;do ke="@@WeakMap@@"+Ye();while(c.has(z,ke));return z[ke]=!0,ke}function Be(ke,Oe){if(!s.call(ke,Y)){if(!Oe)return;Object.defineProperty(ke,Y,{value:c.create()})}return ke[Y]}function et(ke,Oe){for(var $e=0;$e<Oe;++$e)ke[$e]=Math.random()*255|0;return ke}function gt(ke){if(typeof Uint8Array=="function"){var Oe=new Uint8Array(ke);return typeof crypto<"u"?crypto.getRandomValues(Oe):typeof msCrypto<"u"?msCrypto.getRandomValues(Oe):et(Oe,ke),Oe}return et(new Array(ke),ke)}function Ye(){var ke=gt(F);ke[6]=ke[6]&79|64,ke[8]=ke[8]&191|128;for(var Oe="",$e=0;$e<F;++$e){var Fe=ke[$e];($e===4||$e===6||$e===8)&&(Oe+="-"),Fe<16&&(Oe+="0"),Oe+=Fe.toString(16).toLowerCase()}return Oe}}function pt(F){return F.__=void 0,delete F.__,F}})})(l0||(l0={}));/*! 57 * Buttplug JS Source Code File - Visit https://buttplug.io for more info about 58 * the project. Licensed under the BSD 3-Clause license. See LICENSE file in the 59 * project root for full license information. 60 * 61 * @copyright Copyright (c) Nonpolynomial Labs LLC. All rights reserved. 62 */(function(t){var e=We&&We.__decorate||function(B,I,W,J){var Ee=arguments.length,Te=Ee<3?I:J===null?J=Object.getOwnPropertyDescriptor(I,W):J,M;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Te=Reflect.decorate(B,I,W,J);else for(var P=B.length-1;P>=0;P--)(M=B[P])&&(Te=(Ee<3?M(Te):Ee>3?M(I,W,Te):M(I,W))||Te);return Ee>3&&Te&&Object.defineProperty(I,W,Te),Te},n=We&&We.__metadata||function(B,I){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(B,I)};
62Object.defineProperty(t,"__esModule",{value:!0}),t.RawReading=t.RawUnsubscribeCmd=t.RawSubscribeCmd=t.RawWriteCmd=t.RawReadCmd=t.SensorReading=t.SensorReadCmd=t.LinearCmd=t.VectorSubcommand=t.RotateCmd=t.RotateSubcommand=t.ScalarCmd=t.ScalarSubcommand=t.GenericMessageSubcommand=t.StopAllDevices=t.StopDeviceCmd=t.ServerInfo=t.RequestServerInfo=t.ScanningFinished=t.StopScanning=t.StartScanning=t.RequestDeviceList=t.DeviceRemoved=t.DeviceAdded=t.DeviceList=t.DeviceInfo=t.Error=t.ErrorClass=t.Ping=t.Ok=t.ButtplugSystemMessage=t.ButtplugDeviceMessage=t.ButtplugMessage=t.SensorDeviceMessageAttributes=t.RawDeviceMessageAttributes=t.GenericDeviceMessageAttributes=t.SensorType=t.ActuatorType=t.MessageAttributes=t.MESSAGE_SPEC_VERSION=t.MAX_ID=t.DEFAULT_MESSAGE_ID=t.SYSTEM_MESSAGE_ID=void 0;const s=p2;t.SYSTEM_MESSAGE_ID=0,t.DEFAULT_MESSAGE_ID=1,t.MAX_ID=4294967295,t.MESSAGE_SPEC_VERSION=3;class r{constructor(I){Object.assign(this,I)}update(){var I,W,J,Ee,Te;(I=this.ScalarCmd)===null||I===void 0||I.forEach((M,P)=>M.Index=P),(W=this.RotateCmd)===null||W===void 0||W.forEach((M,P)=>M.Index=P),(J=this.LinearCmd)===null||J===void 0||J.forEach((M,P)=>M.Index=P),(Ee=this.SensorReadCmd)===null||Ee===void 0||Ee.forEach((M,P)=>M.Index=P),(Te=this.SensorSubscribeCmd)===null||Te===void 0||Te.forEach((M,P)=>M.Index=P)}}t.MessageAttributes=r;var i;(function(B){B.Unknown="Unknown",B.Vibrate="Vibrate",B.Rotate="Rotate",B.Oscillate="Oscillate",B.Constrict="Constrict",B.Inflate="Inflate",B.Position="Position"})(i||(t.ActuatorType=i={}));var o;(function(B){B.Unknown="Unknown",B.Battery="Battery",B.RSSI="RSSI",B.Button="Button",B.Pressure="Pressure"})(o||(t.SensorType=o={}));class a{constructor(I){this.Index=0,Object.assign(this,I)}}t.GenericDeviceMessageAttributes=a;class l{constructor(I){this.Endpoints=I}}t.RawDeviceMessageAttributes=l;class u{constructor(I){this.Index=0,Object.assign(this,I)}}t.SensorDeviceMessageAttributes=u;class c{constructor(I){this.Id=I}get Type(){return this.constructor}toJSON(){return JSON.stringify(this.toProtocolFormat())}toProtocolFormat(){const I={};return I[this.constructor.Name]=(0,s.instanceToPlain)(this),I}update(){}}t.ButtplugMessage=c;class d extends c{constructor(I,W){super(W),this.DeviceIndex=I,this.Id=W}}t.ButtplugDeviceMessage=d;class p extends c{constructor(I=t.SYSTEM_MESSAGE_ID){super(I),this.Id=I}}t.ButtplugSystemMessage=p;class g extends p{constructor(I=t.DEFAULT_MESSAGE_ID){super(I),this.Id=I}}t.Ok=g,g.Name="Ok";class v extends c{constructor(I=t.DEFAULT_MESSAGE_ID){super(I),this.Id=I}}t.Ping=v,v.Name="Ping";var b;(function(B){B[B.ERROR_UNKNOWN=0]="ERROR_UNKNOWN",B[B.ERROR_INIT=1]="ERROR_INIT",B[B.ERROR_PING=2]="ERROR_PING",B[B.ERROR_MSG=3]="ERROR_MSG",B[B.ERROR_DEVICE=4]="ERROR_DEVICE"})(b||(t.ErrorClass=b={}));class k extends c{constructor(I,W=b.ERROR_UNKNOWN,J=t.DEFAULT_MESSAGE_ID){super(J),this.ErrorMessage=I,this.ErrorCode=W,this.Id=J}get Schemversion(){return 0}}t.Error=k,k.Name="Error";class L{constructor(I){Object.assign(this,I)}}t.DeviceInfo=L,e([(0,s.Type)(()=>r),n("design:type",r)],L.prototype,"DeviceMessages",void 0);class E extends c{constructor(I,W=t.DEFAULT_MESSAGE_ID){super(W),this.Devices=I,this.Id=W}update(){for(const I of this.Devices)I.DeviceMessages.update()}}t.DeviceList=E,E.Name="DeviceList",e([(0,s.Type)(()=>L),n("design:type",Array)],E.prototype,"Devices",void 0);class _ extends p{constructor(I){super(),Object.assign(this,I)}update(){this.DeviceMessages.update()}}t.DeviceAdded=_,_.Name="DeviceAdded",e([(0,s.Type)(()=>r),n("design:type",r)],_.prototype,"DeviceMessages",void 0);class m extends p{constructor(I){super(),this.DeviceIndex=I}}t.DeviceRemoved=m,m.Name="DeviceRemoved";class x extends c{constructor(I=t.DEFAULT_MESSAGE_ID){super(I),this.Id=I}}t.RequestDeviceList=x,x.Name="RequestDeviceList";class A extends c{constructor(I=t.DEFAULT_MESSAGE_ID){super(I),this.Id=I}}t.StartScanning=A,A.Name="StartScanning";class h extends c{constructor(I=t.DEFAULT_MESSAGE_ID){super(I),this.Id=I}}t.StopScanning=h,h.Name="StopScanning";class S extends p{constructor(){super()}}t.ScanningFinished=S,S.Name="ScanningFinished";class $ extends c{constructor(I,W=0,J=t.DEFAULT_MESSAGE_ID){super(J),this.ClientName=I,this.MessageVersion=W,this.Id=J}}t.RequestServerInfo=$,$.Name="RequestServerInfo";class R extends p{constructor(I,W,J,Ee=t.DEFAULT_MESSAGE_ID){super(),this.MessageVersion=I,this.MaxPingTime=W,this.ServerName=J,this.Id=Ee}}t.ServerInfo=R,R.Name="ServerInfo";class G extends d{constructor(I=-1,W=t.DEFAULT_MESSAGE_ID){super(I,W),this.DeviceIndex=I,this.Id=W}}t.StopDeviceCmd=G,G.Name="StopDeviceCmd";class H extends c{constructor(I=t.DEFAULT_MESSAGE_ID){super(I),this.Id=I}}t.StopAllDevices=H,H.Name="StopAllDevices";class ee{constructor(I){this.Index=I}}t.GenericMessageSubcommand=ee;class j extends ee{constructor(I,W,J){super(I),this.Scalar=W,this.ActuatorType=J}}t.ScalarSubcommand=j;class le extends d{constructor(I,W=-1,J=t.DEFAULT_MESSAGE_ID){super(W,J),this.Scalars=I,this.DeviceIndex=W,this.Id=J}}t.ScalarCmd=le,le.Name="ScalarCmd";class X extends ee{constructor(I,W,J){super(I),this.Speed=W,this.Clockwise=J}}t.RotateSubcommand=X;class re extends d{static Create(I,W){const J=new Array;let Ee=0;for(const[Te,M]of W)J.push(new X(Ee,Te,M)),++Ee;return new re(J,I)}constructor(I,W=-1,J=t.DEFAULT_MESSAGE_ID){super(W,J),this.Rotations=I,this.DeviceIndex=W,this.Id=J}}t.RotateCmd=re,re.Name="RotateCmd";class ne extends ee{constructor(I,W,J){super(I),this.Position=W,this.Duration=J}}t.VectorSubcommand=ne;class De extends d{static Create(I,W){const J=new Array;let Ee=0;for(const Te of W)J.push(new ne(Ee,Te[0],Te[1])),++Ee;return new De(J,I)}constructor(I,W=-1,J=t.DEFAULT_MESSAGE_ID){super(W,J),this.Vectors=I,this.DeviceIndex=W,this.Id=J}}t.LinearCmd=De,De.Name="LinearCmd";class ot extends d{constructor(I,W,J,Ee=t.DEFAULT_MESSAGE_ID){super(I,Ee),this.DeviceIndex=I,this.SensorIndex=W,this.SensorType=J,this.Id=Ee}}t.SensorReadCmd=ot,ot.Name="SensorReadCmd";class nt extends d{constructor(I,W,J,Ee,Te=t.DEFAULT_MESSAGE_ID){super(I,Te),this.DeviceIndex=I,this.SensorIndex=W,this.SensorType=J,this.Data=Ee,this.Id=Te}}t.SensorReading=nt,nt.Name="SensorReading";class ye extends d{constructor(I,W,J,Ee,Te=t.DEFAULT_MESSAGE_ID){super(I,Te),this.DeviceIndex=I,this.Endpoint=W,this.ExpectedLength=J,this.Timeout=Ee,this.Id=Te}}t.RawReadCmd=ye,ye.Name="RawReadCmd";class ut extends d{constructor(I,W,J,Ee,Te=t.DEFAULT_MESSAGE_ID){super(I,Te),this.DeviceIndex=I,this.Endpoint=W,this.Data=J,this.WriteWithResponse=Ee,this.Id=Te}}t.RawWriteCmd=ut,ut.Name="RawWriteCmd";class Ke extends d{constructor(I,W,J=t.DEFAULT_MESSAGE_ID){super(I,J),this.DeviceIndex=I,this.Endpoint=W,this.Id=J}}t.RawSubscribeCmd=Ke,Ke.Name="RawSubscribeCmd";class xe extends d{constructor(I,W,J=t.DEFAULT_MESSAGE_ID){super(I,J),this.DeviceIndex=I,this.Endpoint=W,this.Id=J}}t.RawUnsubscribeCmd=xe,xe.Name="RawUnsubscribeCmd";class ft extends d{constructor(I,W,J,Ee=t.DEFAULT_MESSAGE_ID){super(I,Ee),this.DeviceIndex=I,this.Endpoint=W,this.Data=J,this.Id=Ee}}t.RawReading=ft,ft.Name="RawReading"})(Dr);var ln={};/*! 63 * Buttplug JS Source Code File - Visit https://buttplug.io for more info about 64 * the project. Licensed under the BSD 3-Clause license. See LICENSE file in the 65 * project root for full license information. 66 * 67 * @copyright Copyright (c) Nonpolynomial Labs LLC. All rights reserved. 68 */var AC=We&&We.__createBinding||(Object.create?function(t,e,n,s){s===void 0&&(s=n);var r=Object.getOwnPropertyDescriptor(e,n);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,s,r)}
68:function(t,e,n,s){s===void 0&&(s=n),t[s]=e[n]}),LC=We&&We.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),TC=We&&We.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&AC(e,t,n);return LC(e,t),e};Object.defineProperty(ln,"__esModule",{value:!0});ln.ButtplugUnknownError=ln.ButtplugPingError=ln.ButtplugMessageError=ln.ButtplugDeviceError=ln.ButtplugInitError=ln.ButtplugError=void 0;const nn=TC(Dr);class wo extends Error{get ErrorClass(){return this.errorClass}get InnerError(){return this.innerError}get Id(){return this.messageId}get ErrorMessage(){return new nn.Error(this.message,this.ErrorClass,this.Id)}static LogAndError(e,n,s,r=nn.SYSTEM_MESSAGE_ID){return n.Error(s),new e(s,r)}static FromError(e){switch(e.ErrorCode){case nn.ErrorClass.ERROR_DEVICE:return new v2(e.ErrorMessage,e.Id);case nn.ErrorClass.ERROR_INIT:return new g2(e.ErrorMessage,e.Id);case nn.ErrorClass.ERROR_UNKNOWN:return new y2(e.ErrorMessage,e.Id);case nn.ErrorClass.ERROR_PING:return new _2(e.ErrorMessage,e.Id);case nn.ErrorClass.ERROR_MSG:return new m2(e.ErrorMessage,e.Id);default:throw new Error(`Message type ${e.ErrorCode} not handled`)}}constructor(e,n,s=nn.SYSTEM_MESSAGE_ID,r){super(e),this.errorClass=nn.ErrorClass.ERROR_UNKNOWN,this.errorClass=n,this.innerError=r,this.messageId=s}}ln.ButtplugError=wo;class g2 extends wo{constructor(e,n=nn.SYSTEM_MESSAGE_ID){super(e,nn.ErrorClass.ERROR_INIT,n)}}ln.ButtplugInitError=g2;class v2 extends wo{constructor(e,n=nn.SYSTEM_MESSAGE_ID){super(e,nn.ErrorClass.ERROR_DEVICE,n)}}ln.ButtplugDeviceError=v2;class m2 extends wo{constructor(e,n=nn.SYSTEM_MESSAGE_ID){super(e,nn.ErrorClass.ERROR_MSG,n)}}ln.ButtplugMessageError=m2;class _2 extends wo{constructor(e,n=nn.SYSTEM_MESSAGE_ID){super(e,nn.ErrorClass.ERROR_PING,n)}}ln.ButtplugPingError=_2;class y2 extends wo{constructor(e,n=nn.SYSTEM_MESSAGE_ID){super(e,nn.ErrorClass.ERROR_UNKNOWN,n)}}ln.ButtplugUnknownError=y2;var pr={};/*! 69 * Buttplug JS Source Code File - Visit https://buttplug.io for more info about 70 * the project. Licensed under the BSD 3-Clause license. See LICENSE file in the 71 * project root for full license information. 72 * 73 * @copyright Copyright (c) Nonpolynomial Labs LLC. All rights reserved. 74 */var MC=We&&We.__createBinding||(Object.create?function(t,e,n,s){s===void 0&&(s=n);var r=Object.getOwnPropertyDescriptor(e,n);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,s,r)}:function(t,e,n,s){s===void 0&&(s=n),t[s]=e[n]}),OC=We&&We.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),PC=We&&We.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&MC(e,t,n);return OC(e,t),e};Object.defineProperty(pr,"__esModule",{value:!0});pr.fromJSON=pr.getMessageClassFromMessage=void 0;const $C=p2,RC=PC(Dr);function b2(t){for(const e of Object.values(RC))if(typeof e=="function"&&"Name"in e&&e.Name===t)return e;return null}function VC(t){return b2(Object.getPrototypeOf(t).constructor.Name)}pr.getMessageClassFromMessage=VC;function IC(t){const e=JSON.parse(t),n=[];for(const s of Array.from(e)){const r=Object.getOwnPropertyNames(s)[0],i=b2(r);if(i){const o=(0,$C.plainToInstance)(i,s[r]);o.update(),n.push(o)}}return n}pr.fromJSON=IC;/*! 75 * Buttplug JS Source Code File - Visit https://buttplug.io for more info about 76 * the project. Licensed under the BSD 3-Clause license. See LICENSE file in the 77 * project root for full license information. 78 * 79 * @copyright Copyright (c) Nonpolynomial Labs LLC. All rights reserved. 80 */var HC=We&&We.__createBinding||(Object.create?function(t,e,n,s){s===void 0&&(s=n);var r=Object.getOwnPropertyDescriptor(e,n);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,s,r)}
80:function(t,e,n,s){s===void 0&&(s=n),t[s]=e[n]}),FC=We&&We.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),DC=We&&We.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&HC(e,t,n);return FC(e,t),e},_n=We&&We.__awaiter||function(t,e,n,s){function r(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(c){try{u(s.next(c))}catch(d){o(d)}}function l(c){try{u(s.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):r(c.value).then(a,l)}u((s=s.apply(t,e||[])).next())})};Object.defineProperty(Va,"__esModule",{value:!0});Va.ButtplugClientDevice=void 0;const Ct=DC(Dr),Ut=ln,BC=Ra.exports,Yc=pr;class m1 extends BC.EventEmitter{get name(){return this._deviceInfo.DeviceName}get displayName(){return this._deviceInfo.DeviceDisplayName}get index(){return this._deviceInfo.DeviceIndex}get messageTimingGap(){return this._deviceInfo.DeviceMessageTimingGap}get messageAttributes(){return this._deviceInfo.DeviceMessages}static fromMsg(e,n){return new m1(e,n)}constructor(e,n){super(),this._deviceInfo=e,this._sendClosure=n,this.allowedMsgs=new Map,e.DeviceMessages.update()}send(e){return _n(this,void 0,void 0,function*(){return yield this._sendClosure(this,e)})}sendExpectOk(e){return _n(this,void 0,void 0,function*(){const n=yield this.send(e);switch((0,Yc.getMessageClassFromMessage)(n)){case Ct.Ok:return;case Ct.Error:throw Ut.ButtplugError.FromError(n);default:throw new Ut.ButtplugMessageError(`Message type ${n.constructor} not handled by SendMsgExpectOk`)}})}scalar(e){return _n(this,void 0,void 0,function*(){Array.isArray(e)?yield this.sendExpectOk(new Ct.ScalarCmd(e,this.index)):yield this.sendExpectOk(new Ct.ScalarCmd([e],this.index))})}scalarCommandBuilder(e,n){var s;return _n(this,void 0,void 0,function*(){const r=(s=this.messageAttributes.ScalarCmd)===null||s===void 0?void 0:s.filter(o=>o.ActuatorType===n);if(!r||r.length===0)throw new Ut.ButtplugDeviceError(`Device ${this.name} has no ${n} capabilities`);const i=[];if(typeof e=="number")r.forEach(o=>i.push(new Ct.ScalarSubcommand(o.Index,e,n)));else if(Array.isArray(e)){if(e.length>r.length)throw new Ut.ButtplugDeviceError(`${e.length} commands send to a device with ${r.length} vibrators`);r.forEach((o,a)=>{i.push(new Ct.ScalarSubcommand(o.Index,e[a],n))})}else throw new Ut.ButtplugDeviceError(`${n} can only take numbers or arrays of numbers.`);yield this.scalar(i)})}get vibrateAttributes(){var e,n;return(n=(e=this.messageAttributes.ScalarCmd)===null||e===void 0?void 0:e.filter(s=>s.ActuatorType===Ct.ActuatorType.Vibrate))!==null&&n!==void 0?n:[]}vibrate(e){return _n(this,void 0,void 0,function*(){yield this.scalarCommandBuilder(e,Ct.ActuatorType.Vibrate)})}get oscillateAttributes(){var e,n;return(n=(e=this.messageAttributes.ScalarCmd)===null||e===void 0?void 0:e.filter(s=>s.ActuatorType===Ct.ActuatorType.Oscillate))!==null&&n!==void 0?n:[]}oscillate(e){return _n(this,void 0,void 0,function*(){yield this.scalarCommandBuilder(e,Ct.ActuatorType.Oscillate)})}get rotateAttributes(){var e;return(e=this.messageAttributes.RotateCmd)!==null&&e!==void 0?e:[]}rotate(e,n){return _n(this,void 0,void 0,function*(){const s=this.messageAttributes.RotateCmd;if(!s||s.length===0)throw new Ut.ButtplugDeviceError(`Device ${this.name} has no Rotate capabilities`);let r;if(typeof e=="number")r=Ct.RotateCmd.Create(this.index,new Array(s.length).fill([e,n]));else if(Array.isArray(e))r=Ct.RotateCmd.Create(this.index,e);else throw new Ut.ButtplugDeviceError("SendRotateCmd can only take a number and boolean, or an array of number/boolean tuples");yield this.sendExpectOk(r)})}get linearAttributes(){var e;return(e=this.messageAttributes.LinearCmd)!==null&&e!==void 0?e:[]}linear(e,n){return _n(this,void 0,void 0,function*(){const s=this.messageAttributes.LinearCmd;if(!s||s.length===0)throw new Ut.ButtplugDeviceError(`Device ${this.name} has no Linear capabilities`);let r;if(typeof e=="number")r=Ct.LinearCmd.Create(this.index,new Array(s.length).fill([e,
80n]));else if(Array.isArray(e))r=Ct.LinearCmd.Create(this.index,e);else throw new Ut.ButtplugDeviceError("SendLinearCmd can only take a number and number, or an array of number/number tuples");yield this.sendExpectOk(r)})}sensorRead(e,n){return _n(this,void 0,void 0,function*(){const s=yield this.send(new Ct.SensorReadCmd(this.index,e,n));switch((0,Yc.getMessageClassFromMessage)(s)){case Ct.SensorReading:return s.Data;case Ct.Error:throw Ut.ButtplugError.FromError(s);default:throw new Ut.ButtplugMessageError(`Message type ${s.constructor} not handled by sensorRead`)}})}get hasBattery(){var e;const n=(e=this.messageAttributes.SensorReadCmd)===null||e===void 0?void 0:e.filter(s=>s.SensorType===Ct.SensorType.Battery);return n!==void 0&&n.length>0}battery(){var e;return _n(this,void 0,void 0,function*(){if(!this.hasBattery)throw new Ut.ButtplugDeviceError(`Device ${this.name} has no Battery capabilities`);const n=(e=this.messageAttributes.SensorReadCmd)===null||e===void 0?void 0:e.filter(r=>r.SensorType===Ct.SensorType.Battery);return(yield this.sensorRead(n[0].Index,Ct.SensorType.Battery))[0]/100})}get hasRssi(){var e;const n=(e=this.messageAttributes.SensorReadCmd)===null||e===void 0?void 0:e.filter(s=>s.SensorType===Ct.SensorType.RSSI);return n!==void 0&&n.length===0}rssi(){var e;return _n(this,void 0,void 0,function*(){if(!this.hasRssi)throw new Ut.ButtplugDeviceError(`Device ${this.name} has no RSSI capabilities`);const n=(e=this.messageAttributes.SensorReadCmd)===null||e===void 0?void 0:e.filter(r=>r.SensorType===Ct.SensorType.RSSI);return(yield this.sensorRead(n[0].Index,Ct.SensorType.RSSI))[0]})}rawRead(e,n,s){return _n(this,void 0,void 0,function*(){if(!this.messageAttributes.RawReadCmd)throw new Ut.ButtplugDeviceError(`Device ${this.name} has no raw read capabilities`);if(this.messageAttributes.RawReadCmd.Endpoints.indexOf(e)===-1)throw new Ut.ButtplugDeviceError(`Device ${this.name} has no raw readable endpoint ${e}`);const r=yield this.send(new Ct.RawReadCmd(this.index,e,n,s));switch((0,Yc.getMessageClassFromMessage)(r)){case Ct.RawReading:return new Uint8Array(r.Data);case Ct.Error:throw Ut.ButtplugError.FromError(r);default:throw new Ut.ButtplugMessageError(`Message type ${r.constructor} not handled by rawRead`)}})}rawWrite(e,n,s){return _n(this,void 0,void 0,function*(){if(!this.messageAttributes.RawWriteCmd)throw new Ut.ButtplugDeviceError(`Device ${this.name} has no raw write capabilities`);if(this.messageAttributes.RawWriteCmd.Endpoints.indexOf(e)===-1)throw new Ut.ButtplugDeviceError(`Device ${this.name} has no raw writable endpoint ${e}`);yield this.sendExpectOk(new Ct.RawWriteCmd(this.index,e,n,s))})}rawSubscribe(e){return _n(this,void 0,void 0,function*(){if(!this.messageAttributes.RawSubscribeCmd)throw new Ut.ButtplugDeviceError(`Device ${this.name} has no raw subscribe capabilities`);if(this.messageAttributes.RawSubscribeCmd.Endpoints.indexOf(e)===-1)throw new Ut.ButtplugDeviceError(`Device ${this.name} has no raw subscribable endpoint ${e}`);yield this.sendExpectOk(new Ct.RawSubscribeCmd(this.index,e))})}rawUnsubscribe(e){return _n(this,void 0,void 0,function*(){if(!this.messageAttributes.RawSubscribeCmd)throw new Ut.ButtplugDeviceError(`Device ${this.name} has no raw unsubscribe capabilities`);if(this.messageAttributes.RawSubscribeCmd.Endpoints.indexOf(e)===-1)throw new Ut.ButtplugDeviceError(`Device ${this.name} has no raw unsubscribable endpoint ${e}`);yield this.sendExpectOk(new Ct.RawUnsubscribeCmd(this.index,e))})}stop(){return _n(this,void 0,void 0,function*(){yield this.sendExpectOk(new Ct.StopDeviceCmd(this.index))})}emitDisconnected(){this.emit("deviceremoved")}}Va.ButtplugClientDevice=m1;var Ha={};/*! 81 * Buttplug JS Source Code File - Visit https://buttplug.io for more info about 82 * the project. Licensed under the BSD 3-Clause license. See LICENSE file in the 83 * project root for full license information. 84 * 85 * @copyright Copyright (c) Nonpolynomial Labs LLC. All rights reserved. 86 */var NC=We&&We.__createBinding||(Object.create?function(t,e,n,s){s===void 0&&(s=n);var r=Object.getOwnPropertyDescriptor(e,n);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,s,r)}
86:function(t,e,n,s){s===void 0&&(s=n),t[s]=e[n]}),jC=We&&We.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),UC=We&&We.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&NC(e,t,n);return jC(e,t),e};Object.defineProperty(Ha,"__esModule",{value:!0});Ha.ButtplugMessageSorter=void 0;const u0=UC(Dr),zC=ln;class qC{constructor(e){this._useCounter=e,this._counter=1,this._waitingMsgs=new Map}PrepareOutgoingMessage(e){this._useCounter&&(e.Id=this._counter,this._counter+=1);let n,s;const r=new Promise((i,o)=>{n=i,s=o});return this._waitingMsgs.set(e.Id,[n,s]),r}ParseIncomingMessages(e){const n=[];for(const s of e)if(s.Id!==u0.SYSTEM_MESSAGE_ID&&this._waitingMsgs.has(s.Id)){const[r,i]=this._waitingMsgs.get(s.Id);if(s.Type===u0.Error){i(zC.ButtplugError.FromError(s));continue}r(s);continue}else n.push(s);return n}}Ha.ButtplugMessageSorter=qC;var Fa={};/*! 87 * Buttplug JS Source Code File - Visit https://buttplug.io for more info about 88 * the project. Licensed under the BSD 3-Clause license. See LICENSE file in the 89 * project root for full license information. 90 * 91 * @copyright Copyright (c) Nonpolynomial Labs LLC. All rights reserved. 92 */var WC=We&&We.__createBinding||(Object.create?function(t,e,n,s){s===void 0&&(s=n);var r=Object.getOwnPropertyDescriptor(e,n);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,s,r)}:function(t,e,n,s){s===void 0&&(s=n),t[s]=e[n]}),GC=We&&We.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),ZC=We&&We.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&WC(e,t,n);return GC(e,t),e};Object.defineProperty(Fa,"__esModule",{value:!0});Fa.ButtplugClientConnectorException=void 0;const KC=ln,YC=ZC(Dr);class XC extends KC.ButtplugError{constructor(e){super(e,YC.ErrorClass.ERROR_UNKNOWN)}}Fa.ButtplugClientConnectorException=XC;/*! 93 * Buttplug JS Source Code File - Visit https://buttplug.io for more info about 94 * the project. Licensed under the BSD 3-Clause license. See LICENSE file in the 95 * project root for full license information. 96 * 97 * @copyright Copyright (c) Nonpolynomial Labs LLC. All rights reserved. 98 */var JC=We&&We.__createBinding||(Object.create?function(t,e,n,s){s===void 0&&(s=n);var r=Object.getOwnPropertyDescriptor(e,n);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,s,r)}:function(t,e,n,s){s===void 0&&(s=n),t[s]=e[n]}),QC=We&&We.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),ek=We&&We.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&JC(e,t,n);return QC(e,t),e},ts=We&&We.__awaiter||function(t,e,n,s){function r(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(c){try{u(s.next(c))}catch(d){o(d)}}function l(c){try{u(s.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):r(c.value).then(a,l)}u((s=s.apply(t,e||[])).next())})};Object.defineProperty(Yu,"__esModule",{value:!0});Yu.ButtplugClient=void 0;const tk=ar,nk=Ra.exports,c0=Va,sk=Ha,Tn=ek(Dr),Gs=ln,rk=Fa,ll=pr;class ik extends nk.EventEmitter{constructor(e="Generic Buttplug Client"){super(),this._pingTimer=null,this._connector=null,this._devices=new Map,this._logger=tk.ButtplugLogger.Logger,this._isScanning=!1,this._sorter=new sk.ButtplugMessageSorter(!0),this.connect=n=>ts(this,void 0,void 0,function*(){this._logger.Info(`ButtplugClient: Connecting using ${n.constructor.name}`),yield n.connect(),this._connector=n,this._connector.addListener("message",this.parseMessages),this._connector.addListener("disconnect",this.disconnectHandler),yield this.initializeConnection()}),this.disconnect=()=>ts(this,void 0,void 0,function*(){this._logger.Debug("ButtplugClient: Disconnect called"),this.checkConnector(),yield this.shutdownConnection(),yield this._connector.disconnect()}),this.startScanning=()=>ts(this,void 0,void 0,function*(){this._logger.Debug("ButtplugClient: StartScanning called"),this._isScanning=!0,yield this.sendMsgExpectOk(new Tn.StartScanning)}),this.stopScanning=()=>ts(this,void 0,void 0,function*(){this._logger.Debug("ButtplugClient: StopScanning called"),this._isScanning=!1,yield this.sendMsgExpectOk(new Tn.StopScanning)}),this.stopAllDevices=()=>ts(this,void 0,void 0,function*(){this._logger.Debug("ButtplugClient: StopAllDevices"),yield this.sendMsgExpectOk(new Tn.StopAllDevices)}),this.disconnectHandler=()=>{this._logger.Info("ButtplugClient: Disconnect event receieved."),this.emit
98("disconnect")},this.parseMessages=n=>{const s=this._sorter.ParseIncomingMessages(n);for(const r of s)switch((0,ll.getMessageClassFromMessage)(r)){case Tn.DeviceAdded:{const i=r,o=c0.ButtplugClientDevice.fromMsg(i,this.sendDeviceMessageClosure);this._devices.set(i.DeviceIndex,o),this.emit("deviceadded",o);break}case Tn.DeviceRemoved:{const i=r;if(this._devices.has(i.DeviceIndex)){const o=this._devices.get(i.DeviceIndex);o==null||o.emitDisconnected(),this._devices.delete(i.DeviceIndex),this.emit("deviceremoved",o)}break}case Tn.ScanningFinished:this._isScanning=!1,this.emit("scanningfinished",r);break}},this.initializeConnection=()=>ts(this,void 0,void 0,function*(){this.checkConnector();const n=yield this.sendMessage(new Tn.RequestServerInfo(this._clientName,Tn.MESSAGE_SPEC_VERSION));switch((0,ll.getMessageClassFromMessage)(n)){case Tn.ServerInfo:{const s=n;if(this._logger.Info(`ButtplugClient: Connected to Server ${s.ServerName}`),s.MaxPingTime,s.MessageVersion<Tn.MESSAGE_SPEC_VERSION)throw yield this._connector.disconnect(),Gs.ButtplugError.LogAndError(Gs.ButtplugInitError,this._logger,`Server protocol version ${s.MessageVersion} is older than client protocol version ${Tn.MESSAGE_SPEC_VERSION}. Please update server.`);return yield this.requestDeviceList(),!0}case Tn.Error:{yield this._connector.disconnect();const s=n;throw Gs.ButtplugError.LogAndError(Gs.ButtplugInitError,this._logger,`Cannot connect to server. ${s.ErrorMessage}`)}}return!1}),this.requestDeviceList=()=>ts(this,void 0,void 0,function*(){this.checkConnector(),this._logger.Debug("ButtplugClient: ReceiveDeviceList called"),(yield this.sendMessage(new Tn.RequestDeviceList)).Devices.forEach(s=>{if(this._devices.has(s.DeviceIndex))this._logger.Debug(`ButtplugClient: Device already added: ${s}`);else{const r=c0.ButtplugClientDevice.fromMsg(s,this.sendDeviceMessageClosure);this._logger.Debug(`ButtplugClient: Adding Device: ${r}`),this._devices.set(s.DeviceIndex,r),this.emit("deviceadded",r)}})}),this.shutdownConnection=()=>ts(this,void 0,void 0,function*(){yield this.stopAllDevices(),this._pingTimer!==null&&(clearInterval(this._pingTimer),this._pingTimer=null)}),this.sendMsgExpectOk=n=>ts(this,void 0,void 0,function*(){const s=yield this.sendMessage(n);switch((0,ll.getMessageClassFromMessage)(s)){case Tn.Ok:return;case Tn.Error:throw Gs.ButtplugError.FromError(s);default:throw Gs.ButtplugError.LogAndError(Gs.ButtplugMessageError,this._logger,`Message type ${(0,ll.getMessageClassFromMessage)(s).constructor} not handled by SendMsgExpectOk`)}}),this.sendDeviceMessageClosure=(n,s)=>ts(this,void 0,void 0,function*(){return yield this.sendDeviceMessage(n,s)}),this._clientName=e,this._logger.Debug(`ButtplugClient: Client ${e} created.`)}get connected(){return this._connector!==null&&this._connector.Connected}get devices(){this.checkConnector();const e=[];return this._devices.forEach(n=>{e.push(n)}),e}get isScanning(){return this._isScanning}sendDeviceMessage(e,n){return ts(this,void 0,void 0,function*(){if(this.checkConnector(),this._devices.get(e.index)===void 0)throw Gs.ButtplugError.LogAndError(Gs.ButtplugDeviceError,this._logger,`Device ${e.index} not available.`);return n.DeviceIndex=e.index,yield this.sendMessage(n)})}sendMessage(e){return ts(this,void 0,void 0,function*(){this.checkConnector();const n=this._sorter.PrepareOutgoingMessage(e);return yield this._connector.send(e),yield n})}checkConnector(){if(!this.connected)throw new rk.ButtplugClientConnectorException("ButtplugClient not connected")}}Yu.ButtplugClient=ik;var Da={},Xu={};/*! 99 * Buttplug JS Source Code File - Visit https://buttplug.io for more info about 100 * the project. Licensed under the BSD 3-Clause license. See LICENSE file in the 101 * project root for full license information. 102 * 103 * @copyright Copyright (c) Nonpolynomial Labs LLC. All rights reserved. 104 */var ul=We&&We.__awaiter||function(t,e,n,s){function r(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(c){try{u(s.next(c))}catch(d){o(d)}}function l(c){try{u(s.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):r(c.value).then(a,l)}u((s=s.apply(t,e||[])).next())})};
104Object.defineProperty(Xu,"__esModule",{value:!0});Xu.ButtplugBrowserWebsocketConnector=void 0;const ok=Ra.exports,d0=pr;class ak extends ok.EventEmitter{constructor(e){super(),this._url=e,this._websocketConstructor=null,this.connect=()=>ul(this,void 0,void 0,function*(){var n;const s=new((n=this._websocketConstructor)!==null&&n!==void 0?n:WebSocket)(this._url);let r,i;const o=new Promise((l,u)=>{r=l,i=u}),a=()=>i();return s.addEventListener("open",()=>ul(this,void 0,void 0,function*(){this._ws=s;try{yield this.initialize(),this._ws.addEventListener("message",l=>{this.parseIncomingMessage(l)}),this._ws.removeEventListener("close",a),this._ws.addEventListener("close",this.disconnect),r()}catch(l){console.log(l),i()}})),s.addEventListener("close",a),o}),this.disconnect=()=>ul(this,void 0,void 0,function*(){!this.Connected||(this._ws.close(),this._ws=void 0,this.emit("disconnect"))}),this.initialize=()=>ul(this,void 0,void 0,function*(){return Promise.resolve()})}get Connected(){return this._ws!==void 0}sendMessage(e){if(!this.Connected)throw new Error("ButtplugBrowserWebsocketConnector not connected");this._ws.send("["+e.toJSON()+"]")}parseIncomingMessage(e){if(typeof e.data=="string"){const n=(0,d0.fromJSON)(e.data);this.emit("message",n)}else e.data instanceof Blob}onReaderLoad(e){const n=(0,d0.fromJSON)(e.target.result);this.emit("message",n)}}Xu.ButtplugBrowserWebsocketConnector=ak;/*! 105 * Buttplug JS Source Code File - Visit https://buttplug.io for more info about 106 * the project. Licensed under the BSD 3-Clause license. See LICENSE file in the 107 * project root for full license information. 108 * 109 * @copyright Copyright (c) Nonpolynomial Labs LLC. All rights reserved. 110 */Object.defineProperty(Da,"__esModule",{value:!0});Da.ButtplugBrowserWebsocketClientConnector=void 0;const lk=Xu;class uk extends lk.ButtplugBrowserWebsocketConnector{constructor(){super(...arguments),this.send=e=>{if(!this.Connected)throw new Error("ButtplugClient not connected");this.sendMessage(e)}}}Da.ButtplugBrowserWebsocketClientConnector=uk;var Ju={},ck=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")};/*! 111 * Buttplug JS Source Code File - Visit https://buttplug.io for more info about 112 * the project. Licensed under the BSD 3-Clause license. See LICENSE file in the 113 * project root for full license information. 114 * 115 * @copyright Copyright (c) Nonpolynomial Labs LLC. All rights reserved. 116 */Object.defineProperty(Ju,"__esModule",{value:!0});Ju.ButtplugNodeWebsocketClientConnector=void 0;const dk=Da,fk=ck;class hk extends dk.ButtplugBrowserWebsocketClientConnector{constructor(){super(...arguments),this._websocketConstructor=fk.WebSocket}}Ju.ButtplugNodeWebsocketClientConnector=hk;var w2={};/*! 117 * Buttplug JS Source Code File - Visit https://buttplug.io for more info about 118 * the project. Licensed under the BSD 3-Clause license. See LICENSE file in the 119 * project root for full license information. 120 * 121 * @copyright Copyright (c) Nonpolynomial Labs LLC. All rights reserved. 122 */Object.defineProperty(w2,"__esModule",{value:!0});(function(t){/*! 123 * Buttplug JS Source Code File - Visit https://buttplug.io for more info about 124 * the project. Licensed under the BSD 3-Clause license. See LICENSE file in the 125 * project root for full license information. 126 * 127 * @copyright Copyright (c) Nonpolynomial Labs LLC. All rights reserved. 128 */var e=We&&We.__createBinding||(Object.create?function(s,r,i,o){o===void 0&&(o=i);var a=Object.getOwnPropertyDescriptor(r,i);(!a||("get"in a?!r.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return r[i]}}),Object.defineProperty(s,o,a)}:function(s,r,i,o){o===void 0&&(o=i),s[o]=r[i]}),n=We&&We.__exportStar||function(s,r){for(var i in s)i!=="default"&&!Object.prototype.hasOwnProperty.call(r,i)&&e(r,s,i)};Object.defineProperty(t,"__esModule",{value:!0}),n(Yu,t),n(Va,t),n(Da,t),n(Ju,t),n(Fa,t),n(Ha,t),n(w2,t),n(Dr,t),n(pr,t),n(ar,t),n(ln,t)})(ii);class x2{constructor(){Z(this,"_client");Z(this,"_scanning",!1);Z(this,"_devices",[]);Z(this,"_error");Z(this,"fakeConn",!1);Z(this,"settings",$a("buttplug",{limits:[0,100],invert:!1,speedLimit:100}))}registerListener(){console.log("BUT check device event listener"),this._client&&(this._client.addListener("deviceadded",e=>{console.log("BUT deviceadded ",e),this._scanning=!1,this._devices=this._client.devices,this._client.stopScanning()}),this._client.addListener("deviceremoved",()=>{console.log("BUT deviceremoved listener called"),this._scanning=!1,this._devices=this._client.devices}),this._client.addListener("scanningfinished",()=>{console.log("BUT scanningfinished listener called"),this._scanning=!1}),this._client.addListener("log",e=>{console.log("Logs:",e)}),this._client.addListener("message",e=>{console.log("Message:",e)}))}get scanning(){return this._scanning}get error(){return this._error}get devices(){return this._devices}get connected(){return this.fakeConn?!0:(this._client&&(this._devices?this._devices.length:!1)&&console.log("Connected, First Device Name are :",this._devices[0].name),this._client&&(this._devices?this._devices.length:!1))}disconnect(){this.fakeConn=!1,this._devices=[],this._client&&(this._client.disconnect(),this._client=void 0)}limit(e){var l;let n=Math.max(0,Math.min(100,e));const s=(l=this.settings.limits)!=null?l:[0,100],r=Number.isFinite(s[0])?s[0]:0,i=Number.isFinite(s[1])?s[1]:100;n=n/100*(i-r)+r;const o=Number.isFinite(this.settings.speedLimit)?this.settings.speedLimit:100,a=Math.max(r,Math.min(100,o));return n=Math.min(n,a),this.settings.invert&&(n=100-n),Math.max(0,Math.min(100,n))}async fakeconnection(){if(this.fakeConn){this.disconnect();return}(this._client||this._devices.length)&&this.disconnect(),this._error=void 0,this._scanning=!1,this._client=new ii.ButtplugClient("FapTap");const e={Index:2,name:"Fake Linear Actuator",messageAttributes:{LinearCmd:{FeatureCount:1},VibrateCmd:{FeatureCount:1},RotateCmd:{FeatureCount:1},OscillateCmd:{FeatureCount:1}},linearAttributes:[{}],vibrateAttributes:[{}],rotateAttributes:[{}],oscillateAttributes:[{}],async linear(n,s){console.log(`Fake Linear Actuator moving to position ${n*100}% over ${s}ms`)},async vibrate(n){console.log(`Fake Linear Actuator vibrating at ${n*100}%`)},async rotate(n,s){console.log(`Fake Linear Actuator rotating at ${n*100}% ${s?"clockwise":"counterclockwise"}`)},async oscillate(n){console.log(`Fake Linear Actuator oscillating at ${n*100}%`)},async stop(){console.log("Fake Linear Actuator stopped")}};this._devices=[e],this.fakeConn=!0}}class pk extends x2{constructor(){super(...arguments);Z(this,"toyName","buttplug-external");Z(this,"_address","");Z(this,"_key","intiface")}get address(){return this._address===""&&(this._address=localStorage.getItem(this._key)||"ws://localhost:12345"),this._address}set address(n){this._address=n,localStorage.setItem(this._key,n)}async connect(){this._scanning=!0,this._error=void 0,console.log("BTI- connect()"),this._client||(console.log("BTI- init client"),this._client=new ii.ButtplugClient("FapTap"),console.log("BTI- check client",this._client),this.registerListener()),console.log("BTI- init connector");const n=new ii.ButtplugBrowserWebsocketClientConnector(this.address);console.log("BTI- check connector",n,n.Connected);const s=await zi(this._client.connect(n));if(console.log("BTI- resp connect",s),s[0]){this._scanning=!1,this._client=void 0,this._error=s[0].message||"Failed to connect via WebSocket";return}console.log("BTI- start scanning");const r=await zi(this._client.startScanning());if(console.log("BTI- check resp scanning ",r),r[0]){this._error=r[0].message||"Failed to start scanning",this._scanning=!1;return}setTimeout(()=>{var i;!((i=this._client)!=null&&i.connected)||(console.log("BTI- manual timeout"),this._scanning=!1,this._client.stopScanning().catch(o=>console.error("Stop scanning error:",o)))},2e4)}}class gk extends x2{constructor(){super(...arguments);Z(this,"toyName","buttplug-embedded")}async connect(){if(this._scanning=!0,this._error=void 0,console.log("BTE- connect()"),!this._client){if(console.log("BTE- check bluetooth"),!this.hasWebBluetooth()){this._scanning=!1,this._error="This browser does not support Bluetooth";return}console.log("BTE- init this._client"),this._client=new ii.ButtplugClient("FapTap"),console.log("BTE- check _client",this._client),this.registerListener(),console.log("BTE- check activate logging"),await P1.activateLogging()}console.log("BTE- init connector");const n=new P1;console.log("BTE- check connector",n);const s=await zi(this._client.connect(n));if(console.log("BTE- resp connect",s),s[0]){this._scanning=!1,this._error=s[0].message||"Failed to connect via Bluetooth";return}console.log("BTE- start scanning",this._client);const r=await zi(this._client.startScanning());if(console.log("BTE- check resp scanning",r,this._client),r[0]){this._scanning=!1,this._error=r[0].message||"Failed to start scanning";return}console.log("Device List are",this._client.requestDeviceList()),setTimeout(()=>{var i;!((i=this._client)!=null&&i.connected)||(console.log("BTE- manual SORRY TIMEOUT ----------------- ",this._client),this._scanning=!1,this._client.stopScanning().catch(o=>console.error("Stop scanning error:",o)))},6e4)}async fakeconnection(){if(this.fakeConn){this.disconnect();return}(this._client||this._devices.length)&&this.disconnect(),this._error=void 0,this._scanning=!1;const n=typeof localStorage<"u"&&localStorage.getItem("intiface")||"ws://localhost:12345";this._client=new ii.ButtplugClient("FapTap"),this.registerListener();const s=new ii.ButtplugBrowserWebsocketClientConnector(n),r=await zi(this._client.connect(s));if(r[0]){this._error=r[0].message||"Failed to connect to mock Intiface server",this._client=void 0;return}const i=await zi(this._client.startScanning());i[0]&&(this._error=i[0].message||"Failed to start scanning mock devices"),this.fakeConn=!0}hasWebBluetooth(){return typeof window<"u"&&typeof window.navigator<"u"&&!!navigator.bluetooth}}class vk{constructor(){Z(this,"toyName","Loob");Z(this,"_error");Z(this,"_loob");Z(this,"_device");Z(this,"_scanning",!1);Z(this,"_fakeConnected",!1);Z(this,"settings",$a("loob",{limits:[0,100],speedLimit:100,invert:!1}))}getReconnectHint(){return this._device?{deviceId:this._device.id,deviceName:this._device.name}:null}async connect(e){var n,s,r,i;if(this._scanning=!0,this._error=void 0,!window.navigator.bluetooth){this._error="Bluetooth is not supported in this browser",this._scanning=!1;return}
128try{if((e==null?void 0:e.silent)&&"getDevices"in navigator.bluetooth)try{const l=await navigator.bluetooth.getDevices();let u;if((n=e.reconnectHint)!=null&&n.deviceId&&(u=l.find(c=>{var d;return c.id===((d=e.reconnectHint)==null?void 0:d.deviceId)})),!u&&((s=e.reconnectHint)==null?void 0:s.deviceName)&&(u=l.find(c=>{var d;return c.name===((d=e.reconnectHint)==null?void 0:d.deviceName)})),u||(u=l.find(c=>{var d;return(d=c.name)==null?void 0:d.startsWith("LOOB")})),u){console.log("[Loob] Attempting silent connect to:",u.name),this._device=u,this._device.addEventListener("gattserverdisconnected",()=>{this._loob=void 0,this._device=void 0});const c=await((r=this._device.gatt)==null?void 0:r.connect()),d=await(c==null?void 0:c.getPrimaryService("b75c49d2-04a3-4071-a0b5-35853eb08307"));if(this._loob=await(d==null?void 0:d.getCharacteristic("ba5c49d2-04a3-4071-a0b5-35853eb08307")),this._loob){console.log("[Loob] Successfully reconnected silently to",this._device.name);return}}}catch(l){console.error("[Loob] silent reconnect failed",l)}if((e==null?void 0:e.silent)&&!(e!=null&&e.allowInteractiveFallback)){this._scanning=!1;return}this._device=await navigator.bluetooth.requestDevice({filters:[{namePrefix:"LOOB"}],optionalServices:["b75c49d2-04a3-4071-a0b5-35853eb08307"]}),this._device.addEventListener("gattserverdisconnected",()=>{this._loob=void 0,this._device=void 0});const o=await((i=this._device.gatt)==null?void 0:i.connect()),a=await(o==null?void 0:o.getPrimaryService("b75c49d2-04a3-4071-a0b5-35853eb08307"));this._loob=await(a==null?void 0:a.getCharacteristic("ba5c49d2-04a3-4071-a0b5-35853eb08307"))}catch(o){this._error=o}finally{this._scanning=!1}}async disconnect(){var e,n;this._fakeConnected=!1,!(!this._loob||!this._device)&&((n=(e=this._device)==null?void 0:e.gatt)==null||n.disconnect())}fakeconnection(){this._error=void 0,this._scanning=!1,this._fakeConnected=!this._fakeConnected}intToUint8Array(e){const n=new Uint8Array(4);return n[0]=(e&4278190080)>>24,n[1]=(e&16711680)>>16,n[2]=(e&65280)>>8,n[3]=e&255,n}async move(e,n){var o;if(!this._loob)return;e=Ku(e,{speedLimit:this.settings.speedLimit,limits:this.settings.limits,invert:this.settings.invert}),e=Math.round(e*10),e<1&&(e=1),e>1e3&&(e=1e3);const s=this.intToUint8Array(e),r=this.intToUint8Array(n),i=new Uint8Array([s[2],s[3],r[2],r[3]]);await((o=this._loob)==null?void 0:o.writeValueWithoutResponse(i))}get connected(){return this._loob!=null||this._fakeConnected}get error(){return this._error}get scanning(){return this._scanning}}class mk{constructor(){Z(this,"toyName","Erojoy Thrust Sync");Z(this,"_scanning",!1);Z(this,"_error");Z(this,"SERVICE_UUID","0000ffe0-0000-1000-8000-00805f9b34fb");Z(this,"CHARACTERISTIC_UUID","0000ffe1-0000-1000-8000-00805f9b34fb");Z(this,"characteristic",null);Z(this,"_device");Z(this,"MODE","Normal");Z(this,"lastPos",null);Z(this,"safeMode",!0);Z(this,"onlyBFTConnect",!1);Z(this,"offset",-30);Z(this,"deviceTimeout",60);Z(this,"startTime",0);Z(this,"fakeconn",!1);Z(this,"settings",$a("bluetoothFleshyThrust",{limits:[0,100],speedLimit:100,invert:!1}))}hasWebBluetooth(){return typeof window<"u"&&typeof window.navigator<"u"&&navigator.bluetooth!==void 0}get scanning(){return this._scanning}get error(){return this._error}get connected(){var e,n,s,r,i,o;return this.characteristic&&this._device?!!(((r=(s=(n=(e=this.characteristic)==null?void 0:e.service)==null?void 0:n.device)==null?void 0:s.gatt)==null?void 0:r.connected)&&((o=(i=this._device)==null?void 0:i.gatt)==null?void 0:o.connected)):!!this.fakeconn}get devicename(){var e,n;return this.connected&&(e=this._device)!=null&&e.name?(n=this._device)==null?void 0:n.name:"Erojoy Thrust Sync"}get isEXTREME(){return this.MODE=="EXTREME"}get getSafeMode(){return this.safeMode}get preventJittery(){return this.onlyBFTConnect}async connectDeviceAndCacheCharacteristic(){var e;try{if(console.log("[BFT] Connecting to GATT server..."),!((e=this._device)!=null&&e.gatt))throw new Error("[BFT] No GATT available on the device");const n=await this._device.gatt.connect();console.log("[BFT] GATT server connected"),console.log("[BFT] Getting primary service...");const s=await n.getPrimaryService(this.SERVICE_UUID);if(console.log("[BFT] Service found"),this.characteristic=await s.getCharacteristic(this.CHARACTERISTIC_UUID),!this.characteristic)throw new Error("[BFT] Required characteristic not found");
128return console.log("[BFT] Target characteristic found:",this.characteristic.uuid),this._scanning=!1,this.characteristic}catch(n){throw console.error("[BFT] Error in connectDeviceAndCacheCharacteristic:",n),this._scanning=!1,this._error=n,n}}async reConnection(){console.log("[BFT] Attempting to reconnect..."),this._scanning=!0,this.characteristic=null;try{return await this.connectDeviceAndCacheCharacteristic(),this.characteristic}catch(e){console.error("[BFT] Reconnection failed:",e),this._error=e}finally{this._scanning=!1}return null}getReconnectHint(){return this._device?{deviceId:this._device.id,deviceName:this._device.name}:null}async connectDevice(e){var n,s,r,i,o;if(this.hasWebBluetooth()){if(this.connected)return console.log("[BFT] Already connected to device"),this.characteristic;if((e==null?void 0:e.silent)&&"getDevices"in navigator.bluetooth)try{const l=await navigator.bluetooth.getDevices();console.log(`[BFT] Found ${l.length} authorized devices`);let u;if((n=e.reconnectHint)!=null&&n.deviceId&&(u=l.find(c=>{var d;return c.id===((d=e.reconnectHint)==null?void 0:d.deviceId)})),!u&&((s=e.reconnectHint)==null?void 0:s.deviceName)&&(u=l.find(c=>{var d;return c.name===((d=e.reconnectHint)==null?void 0:d.deviceName)})),u||(u=l.find(c=>c.name==="BT05"||c.name==="Flesh Thrust Sync"||c.name==="Erojoy Thrust Sync")),u){console.log("[BFT] Attempting silent connect to:",u.name),this._device=u,this._device.addEventListener("gattserverdisconnected",()=>{this.safeMode&&(console.log("[BFT] CallBack- gatt server disconnected, retry to connect ..."),this.reConnection())});try{return await this.connectDeviceAndCacheCharacteristic(),console.log("[BFT] Successfully reconnected silently to",this._device.name),this.characteristic}catch(c){console.warn("[BFT] Silent connection failed, falling back to picker",c),this._device=void 0}}}catch(l){console.error("[BFT] getDevices failed",l)}if((e==null?void 0:e.silent)&&!(e!=null&&e.allowInteractiveFallback))return this._scanning=!1,null;const a={filters:[{services:[this.SERVICE_UUID]}],optionalServices:[this.SERVICE_UUID]};return this._device=await navigator.bluetooth.requestDevice(a),console.log("[BFT] Device selected:",this._device.name),this._device.addEventListener("gattserverdisconnected",()=>{this.safeMode&&(console.log("[BFT] CallBack- gatt server disconnected, retry to connect ..."),this.reConnection())}),await this.connectDeviceAndCacheCharacteristic(),console.log("[BFT] Successfully connected to device",(o=(i=(r=this.characteristic)==null?void 0:r.service)==null?void 0:i.device)==null?void 0:o.name),this.characteristic}else this._scanning=!1,this._error="Bluetooth not supported or access denied. Please use a supported browser.";return null}async connect(e){this._scanning=!0,this._error=void 0;try{this.connected?(this.characteristic=null,console.log("[BFT] Disconnected from device")):(console.log("[BFT] try to connection. Current state:",this.connected,e),await this.connectDevice(e))}catch(n){console.error("[BFT] Error in connect:",n),this.characteristic=null,this._error=n}finally{this._scanning=!1}}disconnect(){var e,n,s,r;this.fakeconn=!1,this._device&&((n=(e=this._device)==null?void 0:e.gatt)==null||n.disconnect(),(r=(s=this.characteristic)==null?void 0:s.service.device.gatt)==null||r.disconnect(),this._device=void 0,this.characteristic=null,console.log("[BFT] device disconnected"))}async sendData(e){try{if(this.characteristic)console.log("Trying to send data."),await this.characteristic.writeValueWithoutResponse(new Uint8Array(e)),console.log("[BFT] Successfully sent bytes");else{this.safeMode&&(console.log("[BFT] characteristic not available, try to reconnect"),this.characteristic=await this.reConnection(),this.characteristic&&(await this.characteristic.writeValueWithoutResponse(new Uint8Array(e)),console.log("[BFT] Successfully sent bytes after reconnection")));return}}catch(n){this._scanning=!1,console.log("[BFT] GATT operation writeValue failed :",n)}}toggleMode(){let e=!this.isEXTREME;this.MODE=e?"EXTREME":"Normal",console.log("[BFT] device mode changed",this.MODE)}numberToBytes(e){try{const r=e.toString(2).padStart(16,"0").match(/.{1,8}/g);return r?r.map(o=>parseInt(o,2)):[0,0]}catch(n){return console.error("[BFT] Error in numberToBytes:",n),[0,0]}}mapToRange(e,n,s){try{return Math.trunc((e-n[0])*(s[1]-s[0])/(n[1]-n[0])+s[0])}catch(r){return console.error("[BFT] Error in mapToRange:",r),0}}async move(e,n){try{if(this.lastPos===e){console.log("[BFT] Move- Skipping duplicate position:",e);return}if(isNaN(n)||n>65535){console.log("[BFT] Move- Invalid inTime value:",n);return}if(this.MODE==="EXTREME"&&this.lastPos!==null&&(e>this.lastPos?(console.log("[BFT] Move- EXTREME MODE: GOING UP"),e=100):e<this.lastPos&&(console.log("[BFT] Move1- EXTREME MODE: GOING DOWN"),e=0)),e=Ku(e,{speedLimit:this.settings.speedLimit,limits:this.settings.limits,invert:this.settings.invert}
128),e=this.mapToRange(e,[0,100],[0,180]),console.info("[BFT] Move- Mapped position:",e,"inTime:",n),!this.fakeconn){let s=[e],r=this.numberToBytes(parseInt(n.toString())),i=s.concat(r);this.sendData(new Uint8Array(i))}this.lastPos=e}catch(s){console.error("[BFT] Move- Error in parseLogsFromFapTap:",s),this._error=s}}resetPosition(){return new Promise((e,n)=>{if(!this.connected||this._error)return n(!1);console.info("[BFT] Resetting position tracking"),this.lastPos=null,e(!0)})}toggleSafeMode(){this.safeMode=!this.safeMode,this.safeMode?console.log("[BFT] Safe Mode: ON"):console.log("[BFT] Safe Mode: OFF")}toggleOnlyBFTConnect(){this.onlyBFTConnect=!this.onlyBFTConnect,this.onlyBFTConnect?console.log("[BFT] Processing Jitteriness data: ON"):console.log("[BFT] Processing Jitteriness data: OFF")}resetOffset(){this.offset=-30}fakeconnection(){this._error=void 0,this._scanning=!1,this.fakeconn=!this.fakeconn}}class _k{constructor(){Z(this,"toyName","ErojoyX3");Z(this,"_error");Z(this,"_port");Z(this,"_scanning",!1);Z(this,"_fakeConnected",!1);Z(this,"_ready",!1);Z(this,"settings",$a("fleshyx3",{limits:[0,100],invert:!1,speedLimit:100}));if(!("serial"in navigator)){this._error="This browser does not support Web Serial";return}navigator.serial.addEventListener("disconnect",()=>this._port=void 0)}getReconnectHint(){if(this._port)try{const e=this._port.getInfo();return{usbVendorId:e.usbVendorId,usbProductId:e.usbProductId}}catch(e){console.error("[FleshyX3] getInfo failed",e)}return null}async connect(e){var n;this._scanning=!0,this._error=void 0;try{if((e==null?void 0:e.silent)&&"serial"in navigator){const r=await navigator.serial.getPorts();console.log(`[FleshyX3] Found ${r.length} authorized ports`);let i=r[0];if((n=e.reconnectHint)!=null&&n.usbVendorId&&(i=r.find(o=>{var l,u;const a=o.getInfo();return a.usbVendorId===((l=e.reconnectHint)==null?void 0:l.usbVendorId)&&a.usbProductId===((u=e.reconnectHint)==null?void 0:u.usbProductId)})||r[0]),i)try{await i.open({baudRate:115200}),this._port=i,this._ready=!0,console.log("[FleshyX3]","Silently reconnected."),this._scanning=!1;return}catch(o){console.warn("[FleshyX3] Silent open failed",o)}}if((e==null?void 0:e.silent)&&!(e!=null&&e.allowInteractiveFallback)){this._scanning=!1;return}const s=await navigator.serial.requestPort();await s.open({baudRate:115200}),this._port=s,this._ready=!0,console.log("[FleshyX3]","Connecting....")}catch(s){console.log(s),this._error=s.message||String(s)}finally{this._scanning=!1}}disconnect(){this._fakeConnected=!1,this._ready=!1,this._port&&this._port.close().catch(e=>{console.log(e)}).finally(()=>{this._port=void 0})}fakeconnection(){this._error=void 0,this._scanning=!1,this._fakeConnected=!this._fakeConnected,this._ready=this._fakeConnected}stop(){!this._ready||!this._port||this.move(1,1e3)}move(e,n){if(!this._ready||!this._port||!this._port.writable){console.warn("[FleshyX3] Skipping move command: port not ready");return}e=Ku(e,{speedLimit:this.settings.speedLimit,limits:this.settings.limits,invert:this.settings.invert}),e=Math.round(e),e<1&&(e=1),e>99&&(e=99);const s=("0"+e).slice(-2);console.log("[FleshyX3][SEND]",`L0${s}I${n.toFixed(0)}`);try{const r=this._port.writable.getWriter();r.write(new TextEncoder().encode(`L0${s}I${n.toFixed(0)} 129`)),r.releaseLock()}catch(r){console.error("[FleshyX3] Failed to write to port:",r)}}get error(){return this._error}get scanning(){return this._scanning}get connected(){return Boolean(this._port)&&this._ready||this._fakeConnected}}class yk{constructor(){Z(this,"toyName","VacuGlide 2");Z(this,"storageKey","vacuglide");Z(this,"baseUrl","https://latency.autoblowapi.com");Z(this,"_connected",!1);Z(this,"_scanning",!1);Z(this,"_prepared",!1);Z(this,"_error");Z(this,"_setupError");Z(this,"_is_csv_sent",!1);Z(this,"lastAction","");Z(this,"_syncInterval",-1);Z(this,"_fakeConnected",!1);Z(this,"handler",{get:(e,n)=>typeof e[n]=="object"&&e[n]!==null?new Proxy(e[n],this.handler):e[n],set:(e,n,s)=>(e[n]=s,localStorage.setItem(this.storageKey,JSON.stringify(e)),this._connected&&n==="offset"&&this.json("/vacuglide/sync-script/offset","PUT",{offsetTimeMs:s}).catch(r=>console.log(r)),!0)});Z(this,"settings",new Proxy({invert:!1,offset:0,key:""},this.handler));const e=localStorage.getItem(this.storageKey);if(e){const n=JSON.parse(e);this.settings.key=n.key||"",this.settings.invert=n.invert||!1,this.settings.offset=n.offset||0}}get connected(){return this._connected||this._fakeConnected}get iscsvsent(){return this._is_csv_sent&&this.connected}get scanning(){return this._scanning}get error(){return this._error}async connect(){if(this.settings.key.length<2||this._scanning)return;this._scanning=!0,this._error=void 0;let e;try{e=await this.json("/vacuglide/connected")}catch{this._error="Network Error: Could not reach VacuGlide API",this._connected=!1,this._scanning=!1;return}if("connected"in e&&!e.connected){this._error="Device not connected to WiFi",this._connected=!1,this._scanning=!1;return}e.cluster&&(e.cluster.startsWith("http://")||e.cluster.startsWith("localhost")||e.cluster.startsWith("127.0.0.1")?this.baseUrl=e.cluster.startsWith("http")?e.cluster:"http://"+e.cluster:this.baseUrl=e.cluster.startsWith("http")?e.cluster:"https://"+e.cluster);try{e=await this.json("/vacuglide/info")}catch(n){this._error=n,this._connected=!1,this._scanning=!1;return}if("error"in e){this._error=e.error.message,this._scanning=!1;return}if(e.deviceType!=="vacuglide"){this._error="Device type is not VacuGlide",this._scanning=!1;return}e.firmwareStatus!="UP_TO_DATE";try{e=await this.json("/vacuglide/state")}catch{this._error="Couldn't get VacuGlide settings",this._scanning=!1;return}if("error"in e){this._error=e.error.code||e.error.name||"Unknown error",this._connected=e.error.connected,this._scanning=!1;return}this._connected=!0,this._scanning=!1}disconnect(){this._scanning=!1,this._error=void 0,this._prepared=!1,this._connected=!1,this._fakeConnected=!1,this._setupError=void 0,this._is_csv_sent=!1,clearInterval(this._syncInterval),this.lastAction="disconnect"}fakeconnection(){this._error=void 0,this._scanning=!1,this._fakeConnected=!this._fakeConnected,this._setupError=void 0,this._prepared=this._fakeConnected,this._is_csv_sent=this._fakeConnected,this.lastAction=this._fakeConnected?"":"disconnect"}prepare(e){return this._prepared=!1,this._is_csv_sent=!1,new Promise((n,s)=>{if(this.lastAction="prepare",this._setupError=void 0,this._fakeConnected)return this._prepared=!0,this._is_csv_sent=!0,n();if(!this._connected)return n();this.json("/vacuglide/sync-script/upload-csv-url","PUT",{url:e}).then(r=>{if("error"in r)return this._connected=r.error.connected,this._setupError=r.error.code||r.error.name||"Unknown error",Promise.reject(new Error(r.error.code||r.error.name||"Unknown error"));this._is_csv_sent=!0,this._prepared=!0,this._connected=!0,n()}).catch(r=>{s(r)})})}play(e){return new Promise(async(n,s)=>{if(this._fakeConnected)return this._setupError||!this._prepared||!this._is_csv_sent||(this.lastAction="play"),n();if(!this._connected||this._setupError||!this._is_csv_sent||this.lastAction=="play")return n();this.json("/vacuglide/sync-script/start","PUT",{startTimeMs:e}).then(r=>{if("error"in r)return this._connected=r.error.connected,s(r.error.code||r.error.name||"Unknown error");this._connected=!0,this.lastAction="play",n()}).catch(r=>s(r))})}
129stop(){return new Promise((e,n)=>{if(this._fakeConnected)return!this._prepared||!this._is_csv_sent||(this.lastAction="stop"),e();if(!this._connected||!this._prepared||!this._is_csv_sent||this.lastAction=="stop")return e();this.json("/vacuglide/sync-script/stop","PUT",{}).then(s=>{if("error"in s)return this._connected=s.error.connected,n(s.error.code||s.error.name||"Unknown error");this._connected=!0,this.lastAction="stop",e(s)}).catch(s=>n(s))})}start_R(e){return this.play(e)}stop_R(){return this.stop()}getBaseUrl(){const e=localStorage.getItem("vacuglideMockUrl");return e||this.baseUrl}json(e,n="GET",s,r){return new Promise((i,o)=>{const a={method:n,headers:{"Content-Type":"application/json",Accept:"application/json","x-device-token":this.settings.key}};n!=="GET"&&n!=="HEAD"&&s!==void 0&&(a.body=JSON.stringify(s)),fetch((r||this.getBaseUrl())+e,a).then(l=>l.json()).then(l=>{i(l)}).catch(l=>{o(l)})})}}const hf="device-last-connection";var $t=(t=>(t.Handy="Handy",t.Autoblow="Autoblow",t.Bluetooth="Bluetooth",t.Intiface="Intiface",t.OSR="OSR",t.LOOB="LOOB",t.BluetoothFleshyThrust="Erojoy Thrust Sync",t.FleshyX3="ErojoyX3",t.VacuGlide="VacuGlide",t))($t||{}),At=(t=>(t[t.Start=0]="Start",t[t.Handy=1]="Handy",t[t.Autoblow=2]="Autoblow",t[t.Bluetooth=3]="Bluetooth",t[t.Osr=4]="Osr",t[t.Intiface=5]="Intiface",t[t.Loob=6]="Loob",t[t.BluetoothFleshyThrust=7]="BluetoothFleshyThrust",t[t.FleshyX3=8]="FleshyX3",t[t.VacuGlide=9]="VacuGlide",t))(At||{});const Xc=()=>{if(typeof navigator>"u")return"Unknown";const t=navigator.userAgentData,e=(t==null?void 0:t.platform)||navigator.platform||"",n=navigator.userAgent||"",s=navigator.maxTouchPoints||0;return/iPad/i.test(n)||/Mac/i.test(e)&&s>1||/iPhone|iPod/i.test(n)||/iOS/i.test(e)?"iOS":/Android/i.test(e)||/Android/i.test(n)?"Android":/CrOS/i.test(n)||/Chrome ?OS/i.test(e)?"ChromeOS":/Windows/i.test(e)||/Windows/i.test(n)?"Windows":/Mac/i.test(e)||/Mac OS X/i.test(n)?"macOS":/Linux/i.test(e)||/Linux/i.test(n)?"Linux":"Unknown"},bk=()=>{if(typeof window>"u")return null;const t=localStorage.getItem(hf);if(!t)return null;try{const e=JSON.parse(t);return!e.connector||!e.model||!e.method?null:{connector:e.connector,model:e.model,method:e.method,updatedAt:e.updatedAt||Date.now(),reconnectHint:e.reconnectHint}}catch(e){return console.error("Failed to load last device connection",e),null}},_1=Pa("device",()=>{const t=ae(new Qx),e=ae(new nC),n=ae(new eC),s=ae(new gk),r=ae(new pk),i=ae(new vk),o=ae(new mk),a=ae(new _k),l=ae(new yk),u=ae({open:!1,page:0}),c=ae(bk()),d=ae(!1),p=ae(null),g=ae(null),v=ae(0),b=Ne(()=>{const j=Xe().isProduction;return[{name:j?"Erojoy X3":"High-Speed Sync Device",bloglink:"fleshy-x3",thumbnail:j?"fleshy-x3-faptap-thumbnail.webp":"tech_device.webp",categorylink:"fleshy",manufacturer:j?"Erojoy":"Tech Device"},{name:j?"Erojoy Thrust Sync":"Linear Motion System",bloglink:"fleshy-thrust-sync",thumbnail:j?"fleshy-thrust-sync-thumbnail.webp":"tech_device.webp",categorylink:"fleshy",manufacturer:j?"Erojoy":"Tech Device"},{name:j?"The Handy 2":"Interactive Controller",bloglink:"the-handy-2",thumbnail:j?"the-handy-faptap-thumbnail.webp":"tech_device.webp",categorylink:"the-handy-2",manufacturer:j?"The Handy 2":"Tech Device"},{name:j?"Autoblow AI Ultra":"Automated Processing Hub",bloglink:"autoblow-ai-ultra",thumbnail:j?"autoblow-ai-ultra-thumbnail.webp":"tech_device.webp",categorylink:"autoblow",manufacturer:j?"Autoblow":"Tech Device"},{name:j?"Kiiroo Keon 2":"Vacuum Motion System",bloglink:"kiiroo-keon-2",thumbnail:j?"kiiroo-keon-2-faptap-thumbnail.webp":"tech_device.webp",categorylink:"kiiroo",manufacturer:j?"Kiiroo":"Tech Device"},{name:j?"Lelo F1S V3":"Professional Haptic Interface",bloglink:"lelo-f1s-v3",thumbnail:j?"lelo-f1s-v3-faptap-thumbnail.webp":"tech_device.webp",categorylink:"lelo",manufacturer:j?"Lelo F1S V3":"Tech Device"},{name:j?"Lovense Gush 2":"Vibrational Analysis Tool",bloglink:"lovense-gush-2",thumbnail:j?"lovense-gush-2-faptap-thumbnail.webp":"tech_device.webp",categorylink:"lovense",manufacturer:j?"Lovense":"Tech Device"},{name:j?"Lovense Hush 2":"Compact Interaction Node",bloglink:"lovense-hush-2",thumbnail:j?"lovense-hush-2-faptap-thumbn
129ail.webp":"tech_device.webp",categorylink:"lovense",manufacturer:j?"Lovense":"Tech Device"},{name:j?"Lovense Solace Pro":"Advanced Haptic Feedback",bloglink:"lovense-solace-pro",thumbnail:j?"lovense-solace-pro-faptap-thumbnail.webp":"tech_device.webp",categorylink:"lovense",manufacturer:j?"Lovense":"Tech Device"},{name:j?"Svakom Alex Neo 2":"Advanced Haptic Feedback",bloglink:"svakom-alex-neo-2",thumbnail:j?"svakom-alex-neo-2-faptap-thumbnail.webp":"tech_device.webp",categorylink:"svakom",manufacturer:j?"Svakom":"Tech Device"}]}),k=Ne(()=>{v.value;const j=[];return s.value.connected&&j.push(...s.value.devices.map(le=>({instance:le,name:le.name,connector:"Bluetooth"}))),r.value.connected&&(console.log("upfate global state",r.value.devices),j.push(...r.value.devices.map(le=>({instance:le,name:le.name,connector:"Intiface"})))),t.value.connected&&j.push({name:t.value.connectedDeviceLabel||"The Handy",connector:"Handy"}),n.value.connected&&j.push({name:"Autoblow",connector:"Autoblow"}),l.value.connected&&j.push({name:"VacuGlide 2",connector:"VacuGlide"}),e.value.connected&&j.push({name:"OSR",connector:"OSR"}),a.value.connected&&j.push({name:"ErojoyX3",connector:"ErojoyX3"}),i.value.connected&&j.push({name:"LOOB",connector:"LOOB"}),o.value.connected&&j.push({name:"Erojoy Thrust Sync",connector:"Erojoy Thrust Sync"}),j}),L=j=>{if(c.value=j,!(typeof window>"u")){if(!j){localStorage.removeItem(hf);return}localStorage.setItem(hf,JSON.stringify(j))}},E=j=>{switch(j){case"Handy":return 1;case"Autoblow":return 2;case"Bluetooth":return 3;case"Intiface":return 5;
129case"OSR":return 4;case"LOOB":return 6;case"Erojoy Thrust Sync":return 7;case"ErojoyX3":return 8;case"VacuGlide":return 9}return 0},_=j=>{switch(j){case"Handy":return t.value.error;case"Autoblow":return n.value.error;case"Bluetooth":return s.value.error;case"Intiface":return r.value.error;case"OSR":return e.value.error;case"LOOB":return i.value.error;case"Erojoy Thrust Sync":return o.value.error;case"ErojoyX3":return a.value.error;case"VacuGlide":return l.value.error}},m=j=>{switch(j){case"Handy":return Boolean(t.value.connected);case"Autoblow":return Boolean(n.value.connected);case"Bluetooth":return Boolean(s.value.connected);case"Intiface":return Boolean(r.value.connected);case"OSR":return Boolean(e.value.connected);case"LOOB":return Boolean(i.value.connected);case"Erojoy Thrust Sync":return Boolean(o.value.connected);case"ErojoyX3":return Boolean(a.value.connected);case"VacuGlide":return Boolean(l.value.connected)}return!1},x=j=>{switch(j){case"Handy":return Boolean(t.value.scanning);case"Autoblow":return Boolean(n.value.scanning);case"Bluetooth":return Boolean(s.value.scanning);case"Intiface":return Boolean(r.value.scanning);case"OSR":return Boolean(e.value.scanning);case"LOOB":return Boolean(i.value.scanning);case"Erojoy Thrust Sync":return Boolean(o.value.scanning);case"ErojoyX3":return Boolean(a.value.scanning);case"VacuGlide":return Boolean(l.value.scanning)}return!1},A=j=>{switch(j){case"Handy":return t.value.settings.key.length>=5;case"Autoblow":return n.value.settings.key.length>=5;case"VacuGlide":return l.value.settings.key.length>=5;case"Intiface":return r.value.address.length>0;default:return!0}},h=(j,le)=>{switch(j){case"Handy":return t.value.connect();case"Autoblow":return n.value.connect(le);case"Bluetooth":return s.value.connect();case"Intiface":return r.value.connect();case"OSR":return e.value.connect(le);case"LOOB":return i.value.connect(le);case"Erojoy Thrust Sync":return o.value.connect(le);case"ErojoyX3":return a.value.connect(le);case"VacuGlide":return l.value.connect()}},S=(j,le)=>{if(!d.value||!g.value)return;const X={connector:g.value.connector,model:g.value.model,method:g.value.method};j==="success"?$s.capture("toy_quick_reconnect_success",X):$s.capture("toy_quick_reconnect_failed",{...X,error:le||"Reconnect failed"}),d.value=!1,p.value=null,g.value=null,ee()},$=async()=>{if(!R.value||!c.value||d.value)return!1;const j={...c.value};d.value=!0,p.value=j.connector,g.value=j,u.value.page=E(j.connector),$s.capture("toy_quick_reconnect_attempt",{connector:j.connector,model:j.model,method:j.method});try{const le={silent:!0,allowInteractiveFallback:!0,reconnectHint:j.reconnectHint};await Promise.resolve(h(j.connector,le))}catch(le){return S("failed",(le==null?void 0:le.message)||String(le)),!1}return!x(j.connector)&&!m(j.connector)?(S("failed",_(j.connector)),!1):!0},R=Ne(()=>k.value.length>0||!c.value?!1:A(c.value.connector)),G=Ne(()=>k.value.map(j=>`${j.connector}:${j.name}`));ct(G,(j,le)=>{const X=new Set(le);j.filter(re=>!X.has(re)).forEach(re=>{const ne=k.value.find(ot=>`${ot.connector}:${ot.name}`===re);if(!ne)return;let De;ne.connector==="LOOB"&&(De=i.value.getReconnectHint()||void 0),ne.connector==="Erojoy Thrust Sync"&&(De=o.value.getReconnectHint()||void 0),ne.connector==="ErojoyX3"&&(De=a.value.getReconnectHint()||void 0),ne.connector==="OSR"&&(De=e.value.getReconnectHint()||void 0),L({connector:ne.connector,model:ne.name,method:ne.connector,updatedAt:Date.now(),reconnectHint:De}),$s.capture("toy_connected",{device:ne.name,connection_method:ne.connector,operating_system:Xc(),...ne.connector==="Handy"?(()=>{const{device_family:ot,...nt}=t.value.telemetry;return{...nt,device_family:"Handy"}})():{device_family:ne.name}}),d.value&&p.value===ne.connector&&S("success")})});const H=Ne(()=>t.value.scanning||e.value.scanning||s.value.scanning||r.value.scanning||o.value.scanning||a.value.scanning||l.value.scanning||i.value.scanning||n.value.scanning);ct(H,j=>{!d.value||!p.value||j||m(p.value)||S("failed",_(p.value))}),ct(()=>t.value.connected,(j,le)=>{if(le&&!j){const{device_family:X,...re}=t.value.telemetry;$s.capture("toy_disconnected",{device:t.value.connectedDeviceLabel||t.value.detectedName||"The Handy",connection_method:"Handy",operating_system:Xc(),...re,device_family:"Handy"})}}),ct(()=>t.value.scanning,(j,le)=>{if(le&&!j&&!t.value.connected&&t.value.error){const{device_family:X,...re}=t.value.telemetry;$s.capture("toy_connect_failed",{device:t.value.detectedName||"The Handy",connection_method:"Handy",operating_system:Xc(),error:t.value.error,...re,device_family:"Handy"})}});function ee(){v.value++}return{handy:t,autoblow:n,vacuglide:l,bluetooth:s,intiface:r,osr:e,loob:i,bluetoothFleshyThrust:o,fleshyX3:a,devices:k,connecting:H,ui:u,adtoys:b,lastConnection:c,quickReconnectPending:d,quickReconnectAvailable:R,quickReconnect:$,persistLastConnection:L,triggerRefresh:ee}});const vo=Math.min,oi=Math.max,uu=Math.round,cl=Math.floor,Is=t=>({x:t,y:t});function pf(t,e,n){return oi(t,vo(e,n))}function Qu(t,e){return typeof t=="function"?t(e):t}function y1(t){return t.split("-")[0]}function b1(t){return t.split("-")[1]}function C2(t){return t==="x"?"y":"x"}function k2(t){return t==="y"?"height":"width"}function ec(t){const e=t[0];return e==="t"||e==="b"?"y":"x"}function S2(t){return C2(ec(t))}function wk(t){return{top:0,right:0,bottom:0,left:0,...t}}function E2(t){return typeof t!="number"?wk(t):{top:t,right:t,bottom:t,left:t}}function cu(t){const{x:e,y:n,width:s,height:r}=t;return{width:s,height:r,top:n,left:e,right:e+s,bottom:n+r,x:e,y:n}}function f0(t,e,n){let{reference:s,floating:r}=t;const i=ec(e),o=S2(e),a=k2(o),l=y1(e),u=i==="y",c=s.x+s.width/2-r.width/2,d=s.y+s.height/2-r.height/2,p=s[a]/2-r[a]/2;let g;switch(l){case"top":g={x:c,y:s.y-r.height};break;case"bottom":g={x:c,y:s.y+s.height};break;case"right":g={x:s.x+s.width,y:d};break;case"left":g={x:s.x-r.width,y:d};break;default:g={x:s.x,y:s.y}}switch(b1(e)){case"start":g[o]-=p*(n&&u?-1:1);break;case"end":g[o]+=p*(n&&u?-1:1);break}return g}async function xk(t,e){var n;e===void 0&&(e={});const{x:s,y:r,platform:i,rects:o,elements:a,strategy:l}=t,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:p=!1,padding:g=0}=Qu(e,t),v=E2(g),k=a[p?d==="floating"?"reference":"floating":d],L=cu(await i.getClippingRect
129({element:(n=await(i.isElement==null?void 0:i.isElement(k)))==null||n?k:k.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),E=d==="floating"?{x:s,y:r,width:o.floating.width,height:o.floating.height}:o.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),m=await(i.isElement==null?void 0:i.isElement(_))?await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1}:{x:1,y:1},x=cu(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:E,offsetParent:_,strategy:l}):E);return{top:(L.top-x.top+v.top)/m.y,bottom:(x.bottom-L.bottom+v.bottom)/m.y,left:(L.left-x.left+v.left)/m.x,right:(x.right-L.right+v.right)/m.x}}const Ck=50,kk=async(t,e,n)=>{const{placement:s="bottom",strategy:r="absolute",middleware:i=[],platform:o}=n,a=o.detectOverflow?o:{...o,detectOverflow:xk},l=await(o.isRTL==null?void 0:o.isRTL(e));let u=await o.getElementRects({reference:t,floating:e,strategy:r}),{x:c,y:d}=f0(u,s,l),p=s,g=0;const v={};for(let b=0;b<i.length;b++){const k=i[b];if(!k)continue;const{name:L,fn:E}=k,{x:_,y:m,data:x,reset:A}=await E({x:c,y:d,initialPlacement:s,placement:p,strategy:r,middlewareData:v,rects:u,platform:a,elements:{reference:t,floating:e}});c=_!=null?_:c,d=m!=null?m:d,v[L]={...v[L],...x},A&&g<Ck&&(g++,typeof A=="object"&&(A.placement&&(p=A.placement),A.rects&&(u=A.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:r}):A.rects),{x:c,y:d}=f0(u,p,l)),b=-1)}return{x:c,y:d,placement:p,strategy:r,middlewareData:v}},Sk=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:s,placement:r,rects:i,platform:o,elements:a,middlewareData:l}=e,{element:u,padding:c=0}=Qu(t,e)||{};if(u==null)return{};const d=E2(c),p={x:n,y:s},g=S2(r),v=k2(g),b=await o.getDimensions(u),k=g==="y",L=k?"top":"left",E=k?"bottom":"right",_=k?"clientHeight":"clientWidth",m=i.reference[v]+i.reference[g]-p[g]-i.floating[v],x=p[g]-i.reference[g],A=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let h=A?A[_]:0;(!h||!await(o.isElement==null?void 0:o.isElement(A)))&&(h=a.floating[_]||i.floating[v]);const S=m/2-x/2,$=h/2-b[v]/2-1,R=vo(d[L],$),G=vo(d[E],$),H=R,ee=h-b[v]-G,j=h/2-b[v]/2+S,le=pf(H,j,ee),X=!l.arrow&&b1(r)!=null&&j!==le&&i.reference[v]/2-(j<H?R:G)-b[v]/2<0,re=X?j<H?j-H:j-ee:0;return{[g]:p[g]+re,data:{[g]:le,centerOffset:j-le-re,...X&&{alignmentOffset:re}},reset:X}}});const Ek=new Set(["left","top"]);async function Ak(t,e){const{placement:n,platform:s,elements:r}=t,i=await(s.isRTL==null?void 0:s.isRTL(r.floating)),o=y1(n),a=b1(n),l=ec(n)==="y",u=Ek.has(o)?-1:1,c=i&&l?-1:1,d=Qu(e,t);let{mainAxis:p,crossAxis:g,alignmentAxis:v}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof v=="number"&&(g=a==="end"?v*-1:v),l?{x:g*c,y:p*u}:{x:p*u,y:g*c}}const Lk=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,s;const{x:r,y:i,placement:o,middlewareData:a}=e,l=await Ak(e,t);return o===((n=a.offset)==null?void 0:n.placement)&&(s=a.arrow)!=null&&s.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:{...l,placement:o}}}}},Tk=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:s,placement:r,platform:i}=e,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:L=>{let{x:E,y:_}=L;return{x:E,y:_}}},...u}=Qu(t,e),c={x:n,y:s},d=await i.detectOverflow(e,u),p=ec(y1(r)),g=C2(p);let v=c[g],b=c[p];if(o){const L=g==="y"?"top":"left",E=g==="y"?"bottom":"right",_=v+d[L],m=v-d[E];v=pf(_,v,m)}if(a){const L=p==="y"?"top":"left",E=p==="y"?"bottom":"right",_=b+d[L],m=b-d[E];b=pf(_,b,m)}const k=l.fn({...e,[g]:v,[p]:b});return{...k,data:{x:k.x-n,y:k.y-s,enabled:{[g]:o,[p]:a}}}}}};function tc(){return typeof window<"u"}function xo(t){return A2(t)?(t.nodeName||"").toLowerCase():"#document"}function Xn(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function js(t){var e;return(e=(A2(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function A2(t){return tc()?t instanceof Node||t instanceof Xn(t).Node:!1}function ws(t){return tc()?t instanceof Element||t instanceof Xn(t).Element:!1}function vr(t){return tc()?t instanceof HTMLElement||t instanceof Xn(t).HTMLElement:!1}function h0(t){return!tc()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Xn(t).ShadowRoot}function Ba(t){const{overflow:e,overflowX:n,overflowY:s,display:r}=xs(t);return/auto|scroll|overlay|hidden|clip/.test(e+s+n)&&r!=="inline"&&r!=="contents"}function Mk(t){return/^(table|td|th)$/.test(xo(t))}function nc(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}const Ok=/transform|translate|scale|rotate|perspective|filter/,Pk=/paint|layout|strict|content/,Wr=t=>!!t&&t!=="none";let Jc;function w1(t){const e=ws(t)?xs(t):t;return Wr(e.transform)||Wr(e.translate)||Wr(e.scale)||Wr(e.rotate)||Wr(e.perspective)||!x1()&&(Wr(e.backdropFilter)||Wr(e.filter))||Ok.test(e.willChange||"")||Pk.test(e.contain||"")}function $k(t){let e=Ir(t);for(;vr(e)&&!mo(e);){if(w1(e))return e;if(nc(e))return null;e=Ir(e)}return null}function x1(){return Jc==null&&(Jc=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Jc}function mo(t){return/^(html|body|#document)$/.test(xo(t))}function xs(t){return Xn(t).getComputedStyle(t)}function sc(t){return ws(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Ir(t){if(xo(t)==="html")return t;const e=t.assignedSlot||t.parentNode||h0(t)&&t.host||js(t);return h0(e)?e.host:e}function L2(t){const e=Ir(t);return mo(e)?t.ownerDocument?t.ownerDocument.body:t.body:vr(e)&&Ba(e)?e:L2(e)}function wa(t,e,n){var s;e===void 0&&(e=[]),n===void 0&&(n=!0);const r=L2(t),i=r===((s=t.ownerDocument)==null?void 0:s.body),o=Xn(r);if(i){const a=gf(o);
vendor: 6,686 bytes, line 129
129return e.concat(o,o.visualViewport||[],Ba(r)?r:[],a&&n?wa(a):[])}else return e.concat(r,wa(r,[],n))}function gf(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function T2(t){const e=xs(t);let n=parseFloat(e.width)||0,s=parseFloat(e.height)||0;const r=vr(t),i=r?t.offsetWidth:n,o=r?t.offsetHeight:s,a=uu(n)!==i||uu(s)!==o;return a&&(n=i,s=o),{width:n,height:s,$:a}}function C1(t){return ws(t)?t:t.contextElement}function ro(t){const e=C1(t);if(!vr(e))return Is(1);const n=e.getBoundingClientRect(),{width:s,height:r,$:i}=T2(e);let o=(i?uu(n.width):n.width)/s,a=(i?uu(n.height):n.height)/r;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const Rk=Is(0);function M2(t){const e=Xn(t);return!x1()||!e.visualViewport?Rk:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Vk(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==Xn(t)?!1:e}function di(t,e,n,s){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=t.getBoundingClientRect(),i=C1(t);let o=Is(1);e&&(s?ws(s)&&(o=ro(s)):o=ro(t));const a=Vk(i,n,s)?M2(i):Is(0);let l=(r.left+a.x)/o.x,u=(r.top+a.y)/o.y,c=r.width/o.x,d=r.height/o.y;if(i){const p=Xn(i),g=s&&ws(s)?Xn(s):s;let v=p,b=gf(v);for(;b&&s&&g!==v;){const k=ro(b),L=b.getBoundingClientRect(),E=xs(b),_=L.left+(b.clientLeft+parseFloat(E.paddingLeft))*k.x,m=L.top+(b.clientTop+parseFloat(E.paddingTop))*k.y;l*=k.x,u*=k.y,c*=k.x,d*=k.y,l+=_,u+=m,v=Xn(b),b=gf(v)}}return cu({width:c,height:d,x:l,y:u})}function rc(t,e){const n=sc(t).scrollLeft;return e?e.left+n:di(js(t)).left+n}function O2(t,e){const n=t.getBoundingClientRect(),s=n.left+e.scrollLeft-rc(t,n),r=n.top+e.scrollTop;return{x:s,y:r}}function Ik(t){let{elements:e,rect:n,offsetParent:s,strategy:r}=t;const i=r==="fixed",o=js(s),a=e?nc(e.floating):!1;if(s===o||a&&i)return n;let l={scrollLeft:0,scrollTop:0},u=Is(1);const c=Is(0),d=vr(s);if((d||!d&&!i)&&((xo(s)!=="body"||Ba(o))&&(l=sc(s)),d)){const g=di(s);u=ro(s),c.x=g.x+s.clientLeft,c.y=g.y+s.clientTop}const p=o&&!d&&!i?O2(o,l):Is(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+p.x,y:n.y*u.y-l.scrollTop*u.y+c.y+p.y}}function Hk(t){return Array.from(t.getClientRects())}function Fk(t){const e=js(t),n=sc(t),s=t.ownerDocument.body,r=oi(e.scrollWidth,e.clientWidth,s.scrollWidth,s.clientWidth),i=oi(e.scrollHeight,e.clientHeight,s.scrollHeight,s.clientHeight);let o=-n.scrollLeft+rc(t);const a=-n.scrollTop;return xs(s).direction==="rtl"&&(o+=oi(e.clientWidth,s.clientWidth)-r),{width:r,height:i,x:o,y:a}}const p0=25;function Dk(t,e){const n=Xn(t),s=js(t),r=n.visualViewport;let i=s.clientWidth,o=s.clientHeight,a=0,l=0;if(r){i=r.width,o=r.height;const c=x1();(!c||c&&e==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}const u=rc(s);if(u<=0){const c=s.ownerDocument,d=c.body,p=getComputedStyle(d),g=c.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,v=Math.abs(s.clientWidth-d.clientWidth-g);v<=p0&&(i-=v)}else u<=p0&&(i+=u);return{width:i,height:o,x:a,y:l}}function Bk(t,e){const n=di(t,!0,e==="fixed"),s=n.top+t.clientTop,r=n.left+t.clientLeft,i=vr(t)?ro(t):Is(1),o=t.clientWidth*i.x,a=t.clientHeight*i.y,l=r*i.x,u=s*i.y;return{width:o,height:a,x:l,y:u}}function g0(t,e,n){let s;if(e==="viewport")s=Dk(t,n);else if(e==="document")s=Fk(js(t));else if(ws(e))s=Bk(e,n);else{const r=M2(t);s={x:e.x-r.x,y:e.y-r.y,width:e.width,height:e.height}}return cu(s)}function P2(t,e){const n=Ir(t);return n===e||!ws(n)||mo(n)?!1:xs(n).position==="fixed"||P2(n,e)}function Nk(t,e){const n=e.get(t);if(n)return n;let s=wa(t,[],!1).filter(a=>ws(a)&&xo(a)!=="body"),r=null;const i=xs(t).position==="fixed";let o=i?Ir(t):t;for(;ws(o)&&!mo(o);){const a=xs(o),l=w1(o);!l&&a.position==="fixed"&&(r=null),(i?!l&&!r:!l&&a.position==="static"&&!!r&&(r.position==="absolute"||r.position==="fixed")||Ba(o)&&!l&&P2(t,o))?s=s.filter(c=>c!==o):r=a,o=Ir(o)}return e.set(t,s),s}function jk(t){let{element:e,boundary:n,rootBoundary:s,strategy:r}=t;const o=[...n==="clippingAncestors"?nc(e)?[]:Nk(e,this._c):[].concat(n),s],a=g0(e,o[0],r);let l=a.top,u=a.right,c=a.bottom,d=a.left;for(let p=1;p<o.length;p++){const g=g0(e,o[p],r);l=oi(g.top,l),u=vo(g.right,u),c=vo(g.bottom,c),d=oi(g.left,d)}return{width:u-d,height:c-l,x:d,y:l}}function Uk(t){const{width:e,height:n}=T2(t);return{width:e,height:n}}function zk(t,e,n){const s=vr(e),r=js(e),i=n==="fixed",o=di(t,!0,i,e);let a={scrollLeft:0,scrollTop:0};const l=Is(0);function u(){l.x=rc(r)}if(s||!s&&!i)if((xo(e)!=="body"||Ba(r))&&(a=sc(e)),s){const g=di(e,!0,i,e);l.x=g.x+e.clientLeft,l.y=g.y+e.clientTop}else r&&u();i&&!s&&r&&u();const c=r&&!s&&!i?O2(r,a):Is(0),d=o.left+a.scrollLeft-l.x-c.x,p=o.top+a.scrollTop-l.y-c.y;return{x:d,y:p,width:o.width,height:o.height}}function Qc(t){return xs(t).position==="static"}function v0(t,e){if(!vr(t)||xs(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return js(t)===n&&(n=n.ownerDocument.body),n}function $2(t,e){const n=Xn(t);if(nc(t))return n;if(!vr(t)){let r=Ir(t);for(;r&&!mo(r);){if(ws(r)&&!Qc(r))return r;r=Ir(r)}return n}let s=v0(t,e);for(;s&&Mk(s)&&Qc(s);)s=v0(s,e);return s&&mo(s)&&Qc(s)&&!w1(s)?n:s||$k(t)||n}const qk=async function(t){const e=this.getOffsetParent||$2,n=this.getDimensions,s=await n(t.floating);return{reference:zk(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function Wk(t){return xs(t).direction==="rtl"}const Gk={convertOffsetParentRelativeRectToViewportRelativeRect:Ik,getDocumentElement:js,getClippingRect:jk,getOffsetParent:$2,getElementRects:qk,getClientRects:Hk,getDimensions:Uk,getScale:ro,isElement:ws,isRTL:Wk};function R2(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Zk(t,e){let n=null,s;const r=js(t);function i(){var a;clearTimeout(s),(a=n)==null||a.disconnect(),n=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const u=t.getBoundingClientRect(),{left:c,top:d,width:p,height:g}=u;if(a||e(),!p||!g)return;const v=cl(d),b=cl(r.clientWidth-(c+p)),k=cl(r.clientHeight-(d+g)),L=cl(c),_={rootMargin:-v+"px "+-b+"px "+-k+"px "+-L+"px",threshold:oi(0,vo(1,l))||1};let m=!0;function x(A){const h=A[0].intersectionRatio;if(h!==l){if(!m)return o();h?o(!1,h):s=setTimeout(()=>{o(!1,1e-7)},1e3)}h===1&&!R2(u,t.getBoundingClientRect())&&o(),m=!1}try{n=new IntersectionObserver(x,{..._,root:r.ownerDocument})}catch{n=new IntersectionObserver(x,_)}n.observe(t)}return o(!0),i}function Kk(t,e,n,s){s===void 0&&(s={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=s,u=C1(t),c=r||i?[...u?wa(u):[],...e?wa(e):[]]:[];
129c.forEach(L=>{r&&L.addEventListener("scroll",n,{passive:!0}),i&&L.addEventListener("resize",n)});const d=u&&a?Zk(u,n):null;let p=-1,g=null;o&&(g=new ResizeObserver(L=>{let[E]=L;E&&E.target===u&&g&&e&&(g.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var _;(_=g)==null||_.observe(e)})),n()}),u&&!l&&g.observe(u),e&&g.observe(e));let v,b=l?di(t):null;l&&k();function k(){const L=di(t);b&&!R2(b,L)&&n(),b=L,v=requestAnimationFrame(k)}return n(),()=>{var L;c.forEach(E=>{r&&E.removeEventListener("scroll",n),i&&E.removeEventListener("resize",n)}),d==null||d(),(L=g)==null||L.disconnect(),g=null,l&&cancelAnimationFrame(v)}}const Yk=Lk,Xk=Tk,Jk=Sk,Qk=(t,e,n)=>{const s=new Map,r={platform:Gk,...n},i={...r.platform,_c:s};return kk(t,e,{...r,platform:i})},Mr=Ze({__name:"Popup",props:{modelValue:{type:Boolean},target:{},placement:{default:"bottom"},offset:{default:0},teleport:{type:Boolean,default:!0},class:{}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,s=e,r=ae(),i=ae();let o;const a=()=>{if(!n.target||!r.value)return;const d=[Yk(n.offset),Xk(),Jk({element:i.value,padding:6})];o=Kk(n.target,r.value,()=>{Qk(n.target,r.value,{strategy:"fixed",placement:n.placement,middleware:d}).then(({x:p,y:g,placement:v,middlewareData:b})=>{Object.assign(r.value.style,{left:`${p}px`,top:`${g}px`});const{x:k,y:L}=b.arrow,E={top:"bottom",right:"left",bottom:"top",left:"right"}[v.split("-")[0]];Object.assign(i.value.style,{left:k?`${k}px`:"",top:L?`${L}px`:"",right:"",bottom:"",[E]:"-4px"})})})};zn(()=>{window.addEventListener("mousedown",u),window.addEventListener("mouseup",c)}),Bs(()=>{window.removeEventListener("mousedown",u),window.removeEventListener("mouseup",c)}),ct(()=>n.modelValue,d=>{if(!d)return o==null?void 0:o();requestAnimationFrame(()=>a())});let l=!1;const u=d=>{if(!n.modelValue||!n.target||!r.value){l=!1;return}l=d.target===r.value||r.value.contains(d.target)},c=d=>{if(!n.modelValue||!n.target||!r.value||l)return;const p=d.target===r.value||r.value.contains(d.target),g=d.target===n.target||n.target.contains(d.target);p||g||s("update:modelValue",!1)};return(d,p)=>(w(),pe($f,{to:"body",disabled:!t.teleport},[n.modelValue?(w(),C("div",{key:0,ref_key:"floatingElement",ref:r,class:"rounded-md fixed bg-zinc-700 z-50"},[f("div",{ref_key:"arrowElement",ref:i,class:"absolute bg-zinc-700 w-3 h-3 rotate-45 -z-10"},null,512),f("div",{class:Qe([n.class,"overflow-hidden max-h-screen overflow-y-auto rounded"])},[hi(d.$slots,"default")],2)],512)):oe("",!0)],8,["disabled"]))}}),eS={class:"relative flex items-center justify-center py-1.5 gap-1 text-zinc-300 text-lg md:text-base"},tS={class:"font-medium"},ed=Ze({__name:"SettingsPopupHeader",props:{title:{},icon:{},isPremium:{type:Boolean}},emits:["close"],setup(t,{emit:e}){const n=t,s=e,r=ae(!1),i=ae(null);return(o,a)=>(w(),C("div",eS,[T(Pe,{name:n.icon,class:"h-5 w-5"},null,8,["name"]),f("p",tS,ce(n.title),1),n.isPremium?(w(),C("a",{key:0,ref_key:"premiumStarEl",ref:i,href:"http://ai.erojoy.com/",target:"_blank",rel:"noopener noreferrer",onMouseenter:a[0]||(a[0]=l=>r.value=!0),onMouseleave:a[1]||(a[1]=l=>r.value=!1),class:"cursor-pointer"},[T(Pe,{name:"star",class:"h-5 w-5 text-blue-600"})],544)):oe("",!0),n.isPremium?(w(),pe(Mr,{key:1,modelValue:r.value,"onUpdate:modelValue":a[2]||(a[2]=l=>r.value=l),target:i.value,placement:"top",offset:6},{default:V(()=>[...a[4]||(a[4]=[f("div",{class:"px-2 py-1 text-white text-xs whitespace-nowrap border border-zinc-600 rounded-md"},"Premium",-1)])]),_:1},8,["modelValue","target"])):oe("",!0),n.title==="Account"?(w(),pe(ze,{key:2,onClick:a[3]||(a[3]=l=>s("close")),theme:"transparent",dense:!0,rounded:!0,class:"absolute right-2 !text-zinc-400 hover:!text-white"},{default:V(()=>[T(Pe,{name:"close",class:"h-7 w-7 text-white"})]),_:1})):oe("",!0)]))}}),nS={class:"flex-1 min-w-0 truncate"},Le=Ze({__name:"SettingsPopupListItem",props:{icon:{},arrow:{type:Boolean},active:{type:Boolean},activeType:{default:"background"},to:{}},setup(t){const e=t;return(n,s)=>(w(),pe(ps(e.to?"router-link":"div"),{to:e.to,class:Qe(["flex py-1.5 md:py-1.5 px-3 mx-1 my-0.5 rounded items-center gap-3 hover:bg-blue-500 cursor-pointer text-lg md:text-base group",{"bg-blue-500":e.active&&e.activeType==="background"}])},{default:V(()=>
129[e.icon?(w(),pe(Pe,{key:0,name:e.icon,class:Qe(["h-6 md:h-5 md:w-5 shrink-0",{"text-blue-500":e.active&&e.activeType==="icon","group-hover:text-white":e.activeType==="icon"}])},null,8,["name","class"])):oe("",!0),f("div",nS,[hi(n.$slots,"default")]),e.arrow?(w(),pe(Pe,{key:1,name:"chevron-right",class:"h-5 w-5 shrink-0"})):oe("",!0)]),_:3},8,["to","class"]))}}),sS={},rS={class:"border-zinc-500 my-1"};function iS(t,e){return w(),C("hr",rS)}const Zr=An(sS,[["render",iS]]),oS=Object.freeze(Object.defineProperty({__proto__:null,default:Zr},Symbol.toStringTag,{value:"Module"})),aS={key:0,class:"fixed flex inset-0 w-full z-50 pt-6"},xa=Ze({__name:"BottomSheet",props:{modelValue:{type:Boolean},teleport:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,s=e,r=ae(),i=ae(),o=ae(),a=Ds({transform:{value:100,start:{value:100,ms:0}},dragging:!1,contentScrolled:!1}),l=()=>{!r.value||!i.value||!o.value||(a.transform.value=0,r.value.addEventListener("touchmove",u),r.value.addEventListener("touchstart",d),r.value.addEventListener("touchend",p),o.value.addEventListener("scroll",g=>a.contentScrolled=!0))},u=g=>{if(!a.dragging||!r.value)return;const v=g.touches[0].clientY-c.clientY,b=g.target;if((b===o.value||o.value.contains(b))&&a.transform.value===0&&!(o.value.scrollTop===0&&v>0&&!a.contentScrolled))return;g.preventDefault();const k=r.value.offsetHeight,L=v/k*100;let E=a.transform.value+L;E>100&&(E=100),E<0&&(E=0),a.transform.value=E,c=g.touches[0]};let c;const d=g=>{a.dragging=!0,a.contentScrolled=!1,a.transform.start.value=a.transform.value,a.transform.start.ms=new Date().getTime(),c=g.touches[0]},p=g=>{a.dragging=!1;const v=a.transform.start,b={value:a.transform.value,ms:new Date().getTime()};if(b.value>v.value&&b.value-v.value>15&&b.ms-v.ms<200){a.transform.value=100;return}if(b.value>=80){a.transform.value=100;return}if(b.value<v.value&&v.value-b.value>5){a.transform.value=0;return}const k=[100,0].reduce((L,E)=>Math.abs(E-b.value)<Math.abs(L-b.value)?E:L);a.transform.value=k};return ct(()=>a.transform.value,g=>{g===100&&setTimeout(()=>s("update:modelValue",!1),150)}),ct(()=>n.modelValue,g=>{const v="overflow-hidden",b=document.querySelector("body");setTimeout(()=>{g?(b.classList.add(v),requestAnimationFrame(l)):b.classList.remove(v)},10)}),(g,v)=>(w(),pe($f,{disabled:!n.teleport,to:"body"},[T(Iu,null,{default:V(()=>[n.modelValue?(w(),C("div",aS,[f("div",{class:Qe(["fixed inset-0 bg-black overflow-hidden",{"transition-opacity":!a.dragging}]),style:ms(`opacity: ${(100-a.transform.value)*.8}%`),onClick:v[0]||(v[0]=b=>a.transform.value=100)},null,6),f("div",{class:"flex flex-col flex-grow flex-1 justify-end items-center",ref_key:"container",ref:i},[f("div",{class:Qe(["bg-zinc-900 rounded-t-md flex flex-col overflow-hidden shadow-xl w-full max-w-lg",{"transition-transform":!a.dragging}]),style:ms(`transform: translateY(${a.transform.value}%)`),ref_key:"sheet",ref:r},[v[1]||(v[1]=f("div",{class:"flex justify-center py-2.5"},[f("div",{class:"h-2 bg-zinc-700 w-16 h-1.5 rounded-full"})],-1)),f("div",{class:"py-2.5 overflow-y-overlay",ref_key:"content",ref:o},[hi(g.$slots,"default")],512)],6)],512)])):oe("",!0)]),_:3})],8,["disabled"]))}});function vi(){return{isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}}const lS=(t,e=4)=>{const n=(t||"").trim();return n?`${n.split(/\s+/).slice(0,e).join(" ")}...`:"this video"},yn=t=>(t==null?void 0:t.thumbnail_url)||(t==null?void 0:t.video_thumbnail_url)||(t==null?void 0:t.playlist_thumbnail_url);function m0(t){const e=t.data||{};switch(t.type){case dn.Video:return{parts:[{text:`${e.username} added a new script to the playlist `},{text:e.name||"this playlist",strong:!0}],path:`/v/${e.id}`,icon:"new-script-in-playlist",thumbnail:yn(e)};case dn.VideoComment:return{parts:[{text:`${e.username} commented on your video `},{text:e.video_name||"this video",strong:!0}],path:`/v/${e.video_id}?comments=true`,icon:"comment-2",thumbnail:yn(e)};case dn.VideoCommentResponse:return{parts:[{text:`${e.username} responded to your comment on video `},{text:e.video_name||"this video",strong:!0}],path:`/v/${e.video_id}?comments=true`,icon:"comment-2",thumbnail:yn(e)};case dn.BrokenVideo:return{parts:[{text:"Broken source for "},{text:lS(e.video_name),strong:!0},{text:" Please review the URL to fix playback."}],path:`/studio/videos/${e.video_id}`,icon:"broken-video",thumbnail:yn(e)};case dn.FunscriptReady:return{parts:[{text:"Your FaptapAI funscript for "},{text:e.video_name||"this video",strong:!0},{text:" is ready!"}],path:`/f/${e.funscript_id}`,icon:"new-fapai-script",thumbnail:yn(e)};case dn.PlaylistComment:return{parts:[{text:`${e.username} commented on your playlist `},{text:e.playlist_name||"this playlist",strong:!0}],path:`/playlist/${e.playlist_id}`,icon:"comment-2",thumbnail:yn(e)};case dn.PlaylistCommentResponse:return{parts:[{text:`${e.username} replied to your comment on playlist `},{text:e.playlist_name||"this playlist",strong:!0}],path:`/playlist/${e.playlist_id}`,icon:"comment-2",thumbnail:yn(e)};case dn.PlaylistLike:return{parts:[{text:`${e.username} liked your `},{text:e.playlist_name||"playlist",strong:!0}],path:`/playlist/${e.playlist_id}`,icon:"like-2",thumbnail:yn(e)};case dn.PlaylistVideoAdded:return{parts:[{text:`${e.username} added a new script to the playlist `},{text:e.playlist_name||"this playlist",strong:!0}],path:`/playlist/${e.playlist_id}`,icon:"new-script-in-playlist",thumbnail:yn(e)};case dn.NewFollower:return{parts:[{text:`${e.username} subscribed and wants more of your scripts!`}],path:`/u/${e.username}`,icon:"subscribe",thumbnail:yn(e)};case dn.VideoLike:return{parts:[{text:`${e.username} liked your script for `},{text:e.video_name||"this video",strong:!0}],path:`/v/${e.video_id}`,icon:"like-2",thumbnail:yn(e)};case dn.ScriptDownload:return{parts:[{text:`${e.username} downloaded your script for `},{text:e.video_name||"this video",strong:!0}],path:e.funscript_id?`/f/${e.funscript_id}`:`/v/${e.video_id}`,icon:"download-2",thumbnail:yn(e)};case dn.PlaylistVideoAddedToCreator:return{parts:[{text:`${e.username} added your script for `},{text:e.video_name||"this video",strong:!0},{text:" to a playlist"}],path:e.playlist_url||`/v/${e.video_id}`,icon:"playlist-addition",thumbnail:yn(e)};case dn.CommentLike:return e.thing_type===d1.Playlist?{parts:[{text:`${e.username} liked your comment in `},{text:e.playlist_name||"this playlist",strong:!0}],path:`/playlist/${e.playlist_id||e.thing_id}`,icon:"like-2",thumbnail:yn(e)}:{parts:[{text:`${e.username} liked your comment on `},{text:e.video_name||"this video",strong:!0}],path:`/v/${e.video_id||e.thing_id}?comments=true`,icon:"like-2",thumbnail:yn(e)};default:return{parts:[{text:"You have a new notification."}],path:"/notifications",icon:"notification",thumbnail:yn(e)}}}function bI(t){return t.type===dn.BrokenVideo||t.type===dn.FunscriptReady}const uS={key:0,class:"text-red-500 font-medium"},cS={key:0},dS={class:"max-h-[70vh] overflow-y-auto pr-1 py-0.5 space-y-0.5"},fS={key:0,class:"text-red-500 font-medium"},hS={class:"font-medium"},pS={key:1},gS={key:0,class:"max-h-[400px] overflow-y-auto text-sm"},vS={key:1,class:"text-center py-2 px-2"},mS={key:2},_S={key:3},yS={key:4},V2=Ze({__name:"SettingsPopup",setup(t){const e=ae(!1),n=Xe(),{isMobile:s}=vi(),{user:r,isAuthorized:i,isCreator:o,isAdmin:a,notifications:l,unreadNotificationsCount:u,isPremium:c}=gs(n),{authDialog:d}=gs(Ns()),p=is(),g=ae(0),v=ae("trash"),b=ae("Clear Server cache");function k(_){return new Promise(m=>setTimeout(m,_))}async function L(){v.value="loading-animated",b.value="Cleaning...",await dt.admin.flushCacheData(),await k(1e3),v.value="check",b.value="Cleaned (Refresh to see.)",await k(2e3),v.value="trash",b.value="Clear Server cache"}const E=async()=>{p.push("/"),await n.logout(),window.location.reload()};return ct(c),(_,m)=>{var x;return w(),C(Ve,null,[y(i)?(w(),pe(ze,{key:0,ref:"profile",onClick:m[0]||(m[0]=A=>e.value=!e.value),theme:"blue",class:"flex gap-x-1.5 items-center"},{default:V(()=>[m[42]||(m[42]=f("span",null,"Menu",-1)),y(u)?(w(),C("span",uS," ("+ce(y(u))+") ",1)):oe("",!0),T(Pe,{name:"account",class:"h-5 w-5"})]),_:1},512)):oe("",!0),(w(),pe(ps(y(s)?xa:Mr),{target:(x=_.$refs.profile)==null?void 0:x.$el,modelValue:e.value,"onUpdate:modelValue":m[41]||(m[41]=A=>e.value=A),placement:"bottom-end",offset:8,class:Qe(y(s)?"text-white":"text-white md:w-80 w-[calc(100vw-2rem)] max-w-sm py-1")},{default:V(()=>[T(Iu,{mode:"out-in"},{default:V(()=>[g.value===0?(w(),C("div",cS,[T(ed,{title:"Account",isPremium:y(n).isPremium,
129icon:"account",onClose:m[1]||(m[1]=A=>e.value=!1)},null,8,["isPremium"]),f("div",dS,[y(i)?(w(),C(Ve,{key:0},[T(Le,{icon:"notification-badge-outline",arrow:!0,onClick:m[2]||(m[2]=A=>(g.value=1,y(n).markNotificationsAsRead()))},{default:V(()=>[m[43]||(m[43]=N(" Notifications ",-1)),y(u)?(w(),C("span",fS,"("+ce(y(u))+") ",1)):oe("",!0)]),_:1}),T(Le,{icon:"animation-play-outline",onClick:m[3]||(m[3]=A=>(y(p).push("/feed"),e.value=!1))},{default:V(()=>[...m[44]||(m[44]=[N(" Subscriptions ",-1)])]),_:1}),T(Le,{icon:"heart",onClick:m[4]||(m[4]=A=>(y(p).push("/likes"),e.value=!1))},{default:V(()=>[...m[45]||(m[45]=[N(" Likes ",-1)])]),_:1}),T(Le,{icon:"account",onClick:m[5]||(m[5]=A=>(y(p).push(`/u/${y(r).username}`),e.value=!1))},{default:V(()=>[...m[46]||(m[46]=[N(" My Profile ",-1)])]),_:1}),y(s)?oe("",!0):(w(),pe(Le,{key:0,icon:y(n).getOrientationIcon(),arrow:!0,onClick:m[6]||(m[6]=A=>g.value=2)},{default:V(()=>[m[47]||(m[47]=N(" Orientation: ",-1)),f("span",hS,ce(y(r).orientation!==void 0?y(Et)[y(r).orientation]:"None"),1)]),_:1},8,["icon"])),T(Le,{icon:"cog",onClick:m[7]||(m[7]=A=>(y(p).push("/preferences"),e.value=!1))},{default:V(()=>[...m[48]||(m[48]=[N(" Preferences ",-1)])]),_:1}),T(Le,{icon:"gym",onClick:m[8]||(m[8]=A=>(e.value=!1,y(p).push("/gym")))},{default:V(()=>[...m[49]||(m[49]=[N(" Gym ",-1)])]),_:1}),T(Le,{icon:"ai-stroking",onClick:m[9]||(m[9]=A=>(e.value=!1,y(p).push("/ai-stroking")))},{default:V(()=>[...m[50]||(m[50]=[N(" AI Stroking ",-1)])]),_:1}),T(Le,{icon:"live-streaming",onClick:m[10]||(m[10]=A=>(e.value=!1,y(p).push("/live-stream")))},{default:V(()=>[...m[51]||(m[51]=[N(" Livestream ",-1)])]),_:1}),y(o)?(w(),C(Ve,{key:1},[T(ed,{title:"Studio",icon:"youtube-studio"}),T(Le,{icon:"chart-timeline-sparkles",onClick:m[11]||(m[11]=A=>(e.value=!1,y(p).push("/studio")))},{default:V(()=>[...m[52]||(m[52]=[N(" Analytics ",-1)])]),_:1}),T(Le,{icon:"video-box",onClick:m[12]||(m[12]=A=>(e.value=!1,y(p).push("/studio/videos")))},{default:V(()=>[...m[53]||(m[53]=[N(" My Videos ",-1)])]),_:1})],64)):oe("",!0),y(a)?(w(),C(Ve,{key:2},[T(ed,{title:"Administration",icon:"shield-crown"}),T(Le,{icon:"account-group",arrow:!0,onClick:m[13]||(m[13]=A=>g.value=3)},{default:V(()=>[...m[54]||(m[54]=[N(" Manage Users ",-1)])]),_:1}),T(Le,{icon:"source-branch",arrow:!0,onClick:m[14]||(m[14]=A=>g.value=4)},{default:V(()=>[...m[55]||(m[55]=[N(" Taxonomy ",-1)])]),_:1}),T(Le,{icon:"redirection",onClick:m[15]||(m[15]=A=>(e.value=!1,y(p).push("/manage-redirections")))},{default:V(()=>[...m[56]||(m[56]=[N(" Manage Redirections ",-1)])]),_:1}),T(Le,{icon:"ads",onClick:m[16]||(m[16]=A=>(e.value=!1,y(p).push("/manage-ads")))},{default:V(()=>[...m[57]||(m[57]=[N(" Manage Ads ",-1)])]),_:1}),T(Le,{icon:"globe",onClick:m[17]||(m[17]=A=>(e.value=!1,y(p).push("/manage-geo-blocks")))},{default:V(()=>[...m[58]||(m[58]=[N(" Manage Geo Blocks ",-1)])]),_:1}),T(Le,{icon:"notification-badge-outline",onClick:m[18]||(m[18]=A=>(e.value=!1,y(p).push("/manage-notification")))},{default:V(()=>[...m[59]||(m[59]=[N(" Manage Notification Bar ",-1)])]),_:1}),T(Le,{icon:"speedometer",onClick:m[19]||(m[19]=A=>(e.value=!1,y(p).push("/monitoring")))},{default:V(()=>[...m[60]||(m[60]=[N(" Monitoring ",-1)])]),_:1}),T(Le,{icon:"flag",onClick:m[20]||(m[20]=A=>(e.value=!1,y(p).push("/reports")))},{default:V(()=>[...m[61]||(m[61]=[N(" Reports ",-1)])]),_:1}),T(Le,{icon:v.value,onClick:L},{default:V(()=>[N(ce(b.value),1)]),_:1},8,["icon"])],64)):oe("",!0)],64)):(w(),C(Ve,{key:1},[T(Le,{icon:"animation-play-outline",onClick:m[21]||(m[21]=A=>d.value=!0)},{default:V(()=>[...m[62]||(m[62]=[N(" Subscriptions ",-1)])]),_:1}),T(Le,{icon:"heart",onClick:m[22]||(m[22]=A=>d.value=!0)},{default:V(()=>[...m[63]||(m[63]=[N(" Favorites ",-1)])]),_:1}),T(Le,{icon:"playlist",onClick:m[23]||(m[23]=A=>d.value=!0)},{default:V(()=>[...m[64]||(m[64]=[N(" Playlists ",-1)])]),_:1})],64))])])):g.value===1?(w(),C("div",pS,[T(Le,{icon:"chevron-left",onClick:m[24]||(m[24]=A=>g.value=0)}),T(Zr),y(l).length?(w(),C("div",gS,[(w(!0),C(Ve,null,Bt(y(l),A=>(w(),pe(Le,{key:A.id,to:y(m0)(A).path,onClick:m[25]||(m[25]=h=>e.value=!1)},{default:V(()=>[(w(!0),C(Ve,null,Bt(y(m0)(A).parts,(h,S)=>(w(),C("span",{key:S,class:Qe(h.strong?"font-medium text-white":void 0)},ce(h.text),3))),128))]),_:2},1032,["to"]))),128))])):(w(),C("div",vS,[...m[65]||(m[65]=[f("p",null,"No notifications",-1),f("p",{class:"text-sm text-zinc-300 mt-1.5"}," Subscribe to your favorite creators to get notified about their latest videos. ",-1)])])),T(Zr),f("button",{type:"button",class:"w-full py-2 text-center text-sm font-medium text-blue-400 hover:text-blue-300 hover:bg-zinc-800/50",onClick:m[26]||(m[26]=A=>(y(p).push("/notifications"),e.value=!1))}," See all notifications ")])):g.value===2?(w(),C("div",mS,[T(Le,{icon:"chevron-left",onClick:m[27]||(m[27]=A=>g.value=0)}),T(Zr),T(Le,{active:y(n).getOrientation()===void 0,icon:"close",onClick:m[28]||(m[28]=A=>y(n).setOrientation(null))},{default:V(()=>[...m[66]||(m[66]=[N(" None ",-1)])]),_:1},8,["active"]),T(Le,{active:y(n).getOrientation()===y(Et).Straight,icon:"orientation-straight",onClick:m[29]||(m[29]=A=>y(n).setOrientation(y(Et).Straight))},{default:V(()=>[...m[67]||(m[67]=[N(" Straight ",-1)])]),_:1},8,["active"]),T(Le,{active:y(n).getOrientation()===y(Et).Transgender,icon:"orientation-transgender",onClick:m[30]||(m[30]=A=>y(n).setOrientation(y(Et).Transgender))},{default:V(()=>[...m[68]||(m[68]=[N(" Transgender ",-1)])]),_:1},8,["active"]),T(Le,{active:y(n).getOrientation()===y(Et).Gay,icon:"orientation-gay",onClick:m[31]||(m[31]=A=>y(n).setOrientation(y(Et).Gay))},{default:V(()=>[...m[69]||(m[69]=[N(" Gay ",-1)])]),_:1}
129,8,["active"])])):g.value===4?(w(),C("div",_S,[T(Le,{icon:"chevron-left",onClick:m[32]||(m[32]=A=>g.value=0)}),T(Zr),T(Le,{icon:"source-branch",onClick:m[33]||(m[33]=A=>{e.value=!1,y(p).push("/taxonomy")})},{default:V(()=>[...m[70]||(m[70]=[N(" Taxonomy Manager ",-1)])]),_:1}),T(Le,{icon:"link",onClick:m[34]||(m[34]=A=>{e.value=!1,y(p).push("/taxonomy/aliases")})},{default:V(()=>[...m[71]||(m[71]=[N(" Taxonomy Aliases ",-1)])]),_:1}),T(Le,{icon:"block",onClick:m[35]||(m[35]=A=>{e.value=!1,y(p).push("/taxonomy/blacklist")})},{default:V(()=>[...m[72]||(m[72]=[N(" Taxonomy Blacklist ",-1)])]),_:1}),T(Le,{icon:"tag",onClick:m[36]||(m[36]=A=>{e.value=!1,y(p).push("/manage-badtag")})},{default:V(()=>[...m[73]||(m[73]=[N(" Bad Tags Manager ",-1)])]),_:1}),T(Le,{icon:"tag",onClick:m[37]||(m[37]=A=>{e.value=!1,y(p).push("/manage-animatedtags")})},{default:V(()=>[...m[74]||(m[74]=[N(" Animated Tag Manager ",-1)])]),_:1})])):g.value===3?(w(),C("div",yS,[T(Le,{icon:"chevron-left",onClick:m[38]||(m[38]=A=>g.value=0)}),T(Zr),y(a)?(w(),pe(Le,{key:0,icon:"account-group",onClick:m[39]||(m[39]=A=>(e.value=!1,y(p).push("/admin")))},{default:V(()=>[...m[75]||(m[75]=[N(" User Management ",-1)])]),_:1})):oe("",!0),y(a)?(w(),pe(Le,{key:1,icon:"star",onClick:m[40]||(m[40]=A=>(e.value=!1,y(p).push("/subscribe")))},{default:V(()=>[...m[76]||(m[76]=[N(" Premium Users ",-1)])]),_:1})):oe("",!0)])):oe("",!0)]),_:1}),y(i)&&g.value===0?(w(),C(Ve,{key:0},[T(Zr),T(Le,{icon:"logout",onClick:E},{default:V(()=>[...m[77]||(m[77]=[N(" Log Out ",-1)])]),_:1})],64)):oe("",!0)]),_:1},8,["target","modelValue","class"]))],64)}}}),bS="/handy.webm",wS="/autoblow.webm",xS="Use Code FAPTAP15 for 15% OFF",CS=["src","alt","fetchpriority"],kS=["alt","fetchpriority"],SS={key:2,class:"absolute inset-0 bg-zinc-800 -z-10 select-none",style:{"user-select":"none","-webkit-user-drag":"none"}},ES=Ze({__name:"LazyImage",props:{src:{},alt:{default:""},eager:{type:Boolean},aspectRatio:{default:"auto"},objectFit:{default:"cover"}},emits:["error"],setup(t,{emit:e}){const n=t,s=e,r=ae(!1),i=Ne(()=>n.eager?"high":"auto"),o=Ne(()=>{const a=n.src;return a?a.startsWith("http")||a.startsWith("/")||a.startsWith("data:")?a:ci(a):""});return ct(o,()=>{r.value=!1}),(a,l)=>{const u=Hy("lazy");return w(),C("div",Wf({class:"relative",style:{aspectRatio:n.aspectRatio==="auto"?"16/9":n.aspectRatio||"16/9"}},a.$attrs),[n.eager?(w(),C("img",{key:0,src:o.value,alt:t.alt,class:Qe(["lazy-image eager",{"is-loaded":!0}]),width:"100%",height:"100%",loading:"eager",decoding:"async",fetchpriority:i.value,style:ms({objectFit:n.objectFit,width:"100%",height:"100%"})},null,12,CS)):vt((w(),C("img",{key:1,alt:t.alt,class:Qe(["lazy-image",{"is-loaded":r.value}]),width:"100%",height:"100%",loading:"lazy",decoding:"async",fetchpriority:i.value,style:ms({objectFit:n.objectFit,width:"100%",height:"100%"})},null,14,kS)),[[u,{src:o.value,lifecycle:{loaded:()=>{r.value=!0},error:()=>{r.value=!0,s("error")}}}]]),r.value?oe("",!0):(w(),C("div",SS))],16)}}});const vf=An(ES,[["__scopeId","data-v-11c13111"]]),mi=Object.freeze(Object.defineProperty({__proto__:null,default:vf},Symbol.toStringTag,{value:"Module"}));var Qs;(function(t){t.Range="range",t.Steps="steps",t.Positions="positions",t.Count="count",t.Values="values"})(Qs||(Qs={}));var Pn;(function(t){t[t.None=-1]="None",t[t.NoValue=0]="NoValue",t[t.LargeValue=1]="LargeValue",t[t.SmallValue=2]="SmallValue"})(Pn||(Pn={}));function AS(t){return du(t)&&typeof t.from=="function"}function du(t){return typeof t=="object"&&typeof t.to=="function"}function _0(t){t.parentElement.removeChild(t)}function mf(t){return t!=null}function y0(t){t.preventDefault()}function LS(t){return t.filter(function(e){return this[e]?!1:this[e]=!0},{})}function TS(t,e){return Math.round(t/e)*e}function MS(t,e){var n=t.getBoundingClientRect(),s=t.ownerDocument,r=s.documentElement,i=I2(s);return/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(i.x=0),e?n.top+i.y-r.clientTop:n.left+i.x-r.clientLeft}function vs(t){return typeof t=="number"&&!isNaN(t)&&isFinite(t)}function b0(t,e,n){n>0&&(bn(t,e),setTimeout(function(){Cl(t,e)},n))}function w0(t){return Math.max(Math.min(t,100),0)}function ic(t){return Array.isArray(t)?t:[t]}function OS(t){t=String(t);var e=t.split(".");return e.length>1?e[1].length:0}function bn(t,e){t.classList&&!/\s/.test(e)?t.classList.add(e):t.className+=" "+e}function Cl(t,e){t.classList&&!/\s/.test(e)?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," ")}function PS(t,e){return t.classList?t.classList.contains(e):new RegExp("\\b"+e+"\\b").test(t.className)}function I2(t){var e=window.pageXOffset!==void 0,n=(t.compatMode||"")==="CSS1Compat",s=e?window.pageXOffset:n?t.documentElement.scrollLeft:t.body.scrollLeft,r=e?window.pageYOffset:n?t.documentElement.scrollTop:t.body.scrollTop;return{x:s,y:r}}function $S(){return window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}
129:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"}}function RS(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",null,e)}catch{}return t}function VS(){return window.CSS&&CSS.supports&&CSS.supports("touch-action","none")}function k1(t,e){return 100/(e-t)}function _f(t,e,n){return e*100/(t[n+1]-t[n])}function IS(t,e){return _f(t,t[0]<0?e+Math.abs(t[0]):e-t[0],0)}function HS(t,e){return e*(t[1]-t[0])/100+t[0]}function Ca(t,e){for(var n=1;t>=e[n];)n+=1;return n}function FS(t,e,n){if(n>=t.slice(-1)[0])return 100;var s=Ca(n,t),r=t[s-1],i=t[s],o=e[s-1],a=e[s];return o+IS([r,i],n)/k1(o,a)}function DS(t,e,n){if(n>=100)return t.slice(-1)[0];var s=Ca(n,e),r=t[s-1],i=t[s],o=e[s-1],a=e[s];return HS([r,i],(n-o)*k1(o,a))}function BS(t,e,n,s){if(s===100)return s;var r=Ca(s,t),i=t[r-1],o=t[r];return n?s-i>(o-i)/2?o:i:e[r-1]?t[r-1]+TS(s-t[r-1],e[r-1]):s}var H2=function(){function t(e,n,s){this.xPct=[],this.xVal=[],this.xSteps=[],this.xNumSteps=[],this.xHighestCompleteStep=[],this.xSteps=[s||!1],this.xNumSteps=[!1],this.snap=n;var r,i=[];for(Object.keys(e).forEach(function(o){i.push([ic(e[o]),o])}),i.sort(function(o,a){return o[0][0]-a[0][0]}),r=0;r<i.length;r++)this.handleEntryPoint(i[r][1],i[r][0]);for(this.xNumSteps=this.xSteps.slice(0),r=0;r<this.xNumSteps.length;r++)this.handleStepPoint(r,this.xNumSteps[r])}return t.prototype.getDistance=function(e){for(var n=[],s=0;s<this.xNumSteps.length-1;s++)n[s]=_f(this.xVal,e,s);return n},t.prototype.getAbsoluteDistance=function(e,n,s){var r=0;if(e<this.xPct[this.xPct.length-1])for(;e>this.xPct[r+1];)r++;else e===this.xPct[this.xPct.length-1]&&(r=this.xPct.length-2);!s&&e===this.xPct[r+1]&&r++,n===null&&(n=[]);var i,o=1,a=n[r],l=0,u=0,c=0,d=0;for(s?i=(e-this.xPct[r])/(this.xPct[r+1]-this.xPct[r]):i=(this.xPct[r+1]-e)/(this.xPct[r+1]-this.xPct[r]);a>0;)l=this.xPct[r+1+d]-this.xPct[r+d],n[r+d]*o+100-i*100>100?(u=l*i,o=(a-100*i)/n[r+d],i=1):(u=n[r+d]*l/100*o,o=0),s?(c=c-u,this.xPct.length+d>=1&&d--):(c=c+u,this.xPct.length-d>=1&&d++),a=n[r+d]*o;return e+c},t.prototype.toStepping=function(e){return e=FS(this.xVal,this.xPct,e),e},t.prototype.fromStepping=function(e){return DS(this.xVal,this.xPct,e)},t.prototype.getStep=function(e){return e=BS(this.xPct,this.xSteps,this.snap,e),e},t.prototype.getDefaultStep=function(e,n,s){var r=Ca(e,this.xPct);return(e===100||n&&e===this.xPct[r-1])&&(r=Math.max(r-1,1)),(this.xVal[r]-this.xVal[r-1])/s},t.prototype.getNearbySteps=function(e){var n=Ca(e,this.xPct);return{stepBefore:{startValue:this.xVal[n-2],step:this.xNumSteps[n-2],highestStep:this.xHighestCompleteStep[n-2]},thisStep:{startValue:this.xVal[n-1],step:this.xNumSteps[n-1],highestStep:this.xHighestCompleteStep[n-1]},stepAfter:{startValue:this.xVal[n],step:this.xNumSteps[n],highestStep:this.xHighestCompleteStep[n]}}},t.prototype.countStepDecimals=function(){var e=this.xNumSteps.map(OS);return Math.max.apply(null,e)},t.prototype.hasNoSize=function(){return this.xVal[0]===this.xVal[this.xVal.length-1]},t.prototype.convert=function(e){return this.getStep(this.toStepping(e))},t.prototype.handleEntryPoint=function(e,n){var s;if(e==="min"?s=0:e==="max"?s=100:s=parseFloat(e),!vs(s)||!vs(n[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");this.xPct.push(s),this.xVal.push(n[0]);var r=Number(n[1]);s?this.xSteps.push(isNaN(r)?!1:r):isNaN(r)||(this.xSteps[0]=r),this.xHighestCompleteStep.push(0)},t.prototype.handleStepPoint=function(e,n){if(!!n){if(this.xVal[e]===this.xVal[e+1]){this.xSteps[e]=this.xHighestCompleteStep[e]=this.xVal[e];return}this.xSteps[e]=_f([this.xVal[e],this.xVal[e+1]],n,0)/k1(this.xPct[e],this.xPct[e+1]);var s=(this.xVal[e+1]-this.xVal[e])/this.xNumSteps[e],r=Math.ceil(Number(s.toFixed(3))-1),i=this.xVal[e]+this.xNumSteps[e]*r;this.xHighestCompleteStep[e]=i}},t}(),x0={to:function(t){return t===void 0?"":t.toFixed(2)},from:Number},F2={target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",touchArea:"touch-area",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",connects:"connects",ltr:"ltr",rtl:"rtl",textDirectionLtr:"txt-dir-ltr",textDirectionRtl:"txt-dir-rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},Cr={tooltips:".__tooltips",aria:".__aria"};function NS(t,e){if(!vs(e))throw new Error("noUiSlider: 'step' is not numeric.");t.singleStep=e}function jS(t,e){if(!vs(e))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");t.keyboardPageMultiplier=e}function US(t,e){if(!vs(e))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");t.keyboardMultiplier=e}function zS(t,e){if(!vs(e))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");t.keyboardDefaultStep=e}function qS(t,e){if(typeof e!="object"||Array.isArray(e))throw new Error("noUiSlider: 'range' is not an object.");if(e.min===void 0||e.max===void 0)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");t.spectrum=new H2(e,t.snap||!1,t.singleStep)}function WS(t,e){if(e=ic(e),!Array.isArray(e)||!e.length)throw new Error("noUiSlider: 'start' option is incorrect.");t.handles=e.length,t.start=e}function GS(t,e){if(typeof e!="boolean")throw new Error("noUiSlider: 'snap' option must be a boolean.");t.snap=e}function ZS(t,e){if(typeof e!="boolean")throw new Error("noUiSlider: 'animate' option must be a boolean.");t.animate=e}function KS(t,e){if(typeof e!="number")throw new Error("noUiSlider: 'animationDuration' option must be a number.");t.animationDuration=e}function D2(t,e){var n=[!1],s;
129if(e==="lower"?e=[!0,!1]:e==="upper"&&(e=[!1,!0]),e===!0||e===!1){for(s=1;s<t.handles;s++)n.push(e);n.push(!1)}else{if(!Array.isArray(e)||!e.length||e.length!==t.handles+1)throw new Error("noUiSlider: 'connect' option doesn't match handle count.");n=e}t.connect=n}function YS(t,e){switch(e){case"horizontal":t.ort=0;break;case"vertical":t.ort=1;break;default:throw new Error("noUiSlider: 'orientation' option is invalid.")}}function B2(t,e){if(!vs(e))throw new Error("noUiSlider: 'margin' option must be numeric.");e!==0&&(t.margin=t.spectrum.getDistance(e))}function XS(t,e){if(!vs(e))throw new Error("noUiSlider: 'limit' option must be numeric.");if(t.limit=t.spectrum.getDistance(e),!t.limit||t.handles<2)throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.")}function JS(t,e){var n;if(!vs(e)&&!Array.isArray(e))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(Array.isArray(e)&&!(e.length===2||vs(e[0])||vs(e[1])))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(e!==0){for(Array.isArray(e)||(e=[e,e]),t.padding=[t.spectrum.getDistance(e[0]),t.spectrum.getDistance(e[1])],n=0;n<t.spectrum.xNumSteps.length-1;n++)if(t.padding[0][n]<0||t.padding[1][n]<0)throw new Error("noUiSlider: 'padding' option must be a positive number(s).");var s=e[0]+e[1],r=t.spectrum.xVal[0],i=t.spectrum.xVal[t.spectrum.xVal.length-1];if(s/(i-r)>1)throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.")}}function QS(t,e){switch(e){case"ltr":t.dir=0;break;case"rtl":t.dir=1;break;default:throw new Error("noUiSlider: 'direction' option was not recognized.")}}function eE(t,e){if(typeof e!="string")throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var n=e.indexOf("tap")>=0,s=e.indexOf("drag")>=0,r=e.indexOf("fixed")>=0,i=e.indexOf("snap")>=0,o=e.indexOf("hover")>=0,a=e.indexOf("unconstrained")>=0,l=e.indexOf("invert-connects")>=0,u=e.indexOf("drag-all")>=0,c=e.indexOf("smooth-steps")>=0;if(r){if(t.handles!==2)throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");B2(t,t.start[1]-t.start[0])}if(l&&t.handles!==2)throw new Error("noUiSlider: 'invert-connects' behaviour must be used with 2 handles");if(a&&(t.margin||t.limit))throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");t.events={tap:n||i,drag:s,dragAll:u,smoothSteps:c,fixed:r,snap:i,hover:o,unconstrained:a,invertConnects:l}}function tE(t,e){if(e!==!1)if(e===!0||du(e)){t.tooltips=[];for(var n=0;n<t.handles;n++)t.tooltips.push(e)}else{if(e=ic(e),e.length!==t.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");e.forEach(function(s){if(typeof s!="boolean"&&!du(s))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.")}),t.tooltips=e}}function nE(t,e){if(e.length!==t.handles)throw new Error("noUiSlider: must pass a attributes for all handles.");t.handleAttributes=e}function sE(t,e){if(!du(e))throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");t.ariaFormat=e}function rE(t,e){if(!AS(e))throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");t.format=e}function iE(t,e){if(typeof e!="boolean")throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");t.keyboardSupport=e}function oE(t,e){t.documentElement=e}function aE(t,e){if(typeof e!="string"&&e!==!1)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");t.cssPrefix=e}function lE(t,e){if(typeof e!="object")throw new Error("noUiSlider: 'cssClasses' must be an object.");typeof t.cssPrefix=="string"?(t.cssClasses={},Object.keys(e).forEach(function(n){t.cssClasses[n]=t.cssPrefix+e[n]})):t.cssClasses=e}function N2(t){var e={margin:null,limit:null,padding:null,animate:!0,animationDuration:300,ariaFormat:x0,format:x0},n={step:{r:!1,t:NS},keyboardPageMultiplier:{r:!1,t:jS},keyboardMultiplier:{r:!1,t:US},keyboardDefaultStep:{r:!1,t:zS},start:{r:!0,t:WS},connect:{r:!0,t:D2},direction:{r:!0,t:QS},snap:{r:!1,t:GS},animate:{r:!1,t:ZS},animationDuration:{r:!1,t:KS},range:{r:!0,t:qS},orientation:{r:!1,t:YS},margin:{r:!1,t:B2},limit:{r:!1,t:XS},padding:{r:!1,t:JS},behaviour:{r:!0,t:eE},ariaFormat:{r:!1,t:sE},format:{r:!1,t:rE},tooltips:{r:!1,t:tE},keyboardSupport:{r:!0,t:iE},documentElement:{r:!1,t:oE},cssPrefix:{r:!0,t:aE}
129,cssClasses:{r:!0,t:lE},handleAttributes:{r:!1,t:nE}},s={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:F2,keyboardPageMultiplier:5,keyboardMultiplier:1,keyboardDefaultStep:10};t.format&&!t.ariaFormat&&(t.ariaFormat=t.format),Object.keys(n).forEach(function(l){if(!mf(t[l])&&s[l]===void 0){if(n[l].r)throw new Error("noUiSlider: '"+l+"' is required.");return}n[l].t(e,mf(t[l])?t[l]:s[l])}),e.pips=t.pips;var r=document.createElement("div"),i=r.style.msTransform!==void 0,o=r.style.transform!==void 0;e.transformRule=o?"transform":i?"msTransform":"webkitTransform";var a=[["left","top"],["right","bottom"]];return e.style=a[e.dir][e.ort],e}function uE(t,e,n){var s=$S(),r=VS(),i=r&&RS(),o=t,a,l,u,c,d,p,g=e.spectrum,v=[],b=[],k=[],L=0,E={},_=!1,m=t.ownerDocument,x=e.documentElement||m.documentElement,A=m.body,h=m.dir==="rtl"||e.ort===1?0:100;function S(O,D){var U=m.createElement("div");return D&&bn(U,D),O.appendChild(U),U}function $(O,D){var U=S(O,e.cssClasses.origin),ue=S(U,e.cssClasses.handle);if(S(ue,e.cssClasses.touchArea),ue.setAttribute("data-handle",String(D)),e.keyboardSupport&&(ue.setAttribute("tabindex","0"),ue.addEventListener("keydown",function(me){return ie(me,D)})),e.handleAttributes!==void 0){var ve=e.handleAttributes[D];Object.keys(ve).forEach(function(me){ue.setAttribute(me,ve[me])})}return ue.setAttribute("role","slider"),ue.setAttribute("aria-orientation",e.ort?"vertical":"horizontal"),D===0?bn(ue,e.cssClasses.handleLower):D===e.handles-1&&bn(ue,e.cssClasses.handleUpper),U.handle=ue,U}function R(O,D){return D?S(O,e.cssClasses.connect):!1}function G(O,D){l=S(D,e.cssClasses.connects),u=[],c=[],c.push(R(l,O[0]));for(var U=0;U<e.handles;U++)u.push($(D,U)),k[U]=U,c.push(R(l,O[U+1]))}function H(O){bn(O,e.cssClasses.target),e.dir===0?bn(O,e.cssClasses.ltr):bn(O,e.cssClasses.rtl),e.ort===0?bn(O,e.cssClasses.horizontal):bn(O,e.cssClasses.vertical);var D=getComputedStyle(O).direction;return D==="rtl"?bn(O,e.cssClasses.textDirectionRtl):bn(O,e.cssClasses.textDirectionLtr),S(O,e.cssClasses.base)}function ee(O,D){return!e.tooltips||!e.tooltips[D]?!1:S(O.firstChild,e.cssClasses.tooltip)}function j(){return o.hasAttribute("disabled")}function le(O){var D=u[O];return D.hasAttribute("disabled")}function X(O){O!=null?(u[O].setAttribute("disabled",""),u[O].handle.removeAttribute("tabindex")):(o.setAttribute("disabled",""),u.forEach(function(D){D.handle.removeAttribute("tabindex")}))}function re(O){O!=null?(u[O].removeAttribute("disabled"),u[O].handle.setAttribute("tabindex","0")):(o.removeAttribute("disabled"),u.forEach(function(D){D.removeAttribute("disabled"),D.handle.setAttribute("tabindex","0")}))}function ne(){p&&(se("update"+Cr.tooltips),p.forEach(function(O){O&&_0(O)}),p=null)}function De(){ne(),p=u.map(ee),he("update"+Cr.tooltips,function(O,D,U){if(!(!p||!e.tooltips)&&p[D]!==!1){var ue=O[D];e.tooltips[D]!==!0&&(ue=e.tooltips[D].to(U[D])),p[D].innerHTML=ue}})}function ot(){se("update"+Cr.aria),he("update"+Cr.aria,function(O,D,U,ue,ve){k.forEach(function(me){var qe=u[me],Re=Ce(b,me,0,!0,!0,!0),Mt=Ce(b,me,100,!0,!0,!0),Ot=ve[me],Nt=String(e.ariaFormat.to(U[me]));Re=g.fromStepping(Re).toFixed(1),Mt=g.fromStepping(Mt).toFixed(1),Ot=g.fromStepping(Ot).toFixed(1),qe.children[0].setAttribute("aria-valuemin",Re),qe.children[0].setAttribute("aria-valuemax",Mt),qe.children[0].setAttribute("aria-valuenow",Ot),qe.children[0].setAttribute("aria-valuetext",Nt)})})}function nt(O){if(O.mode===Qs.Range||O.mode===Qs.Steps)return g.xVal;if(O.mode===Qs.Count){if(O.values<2)throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.");for(var D=O.values-1,U=100/D,ue=[];D--;)ue[D]=D*U;return ue.push(100),ye(ue,O.stepped)}return O.mode===Qs.Positions?ye(O.values,O.stepped):O.mode===Qs.Values?O.stepped?O.values.map(function(ve){return g.fromStepping(g.getStep(g.toStepping(ve)))}):O.values:[]}function ye(O,D){return O.map(function(U){return g.fromStepping(D?g.getStep(U):U)})}function ut(O){function D(Ot,Nt){return Number((Ot+Nt).toFixed(7))}var U=nt(O),ue={},ve=g.xVal[0],me=g.xVal[g.xVal.length-1],qe=!1,Re=!1,Mt=0;return U=LS(U.slice().sort(function(Ot,Nt){return Ot-Nt})),U[0]!==ve&&(U.unshift(ve),qe=!0),U[U.length-1]!==me&&(U.push(me),Re=!0),U.forEac
129h(function(Ot,Nt){var jt,xt,Kt,mn=Ot,on=U[Nt+1],un,oc,ac,lc,T1,uc,M1,O1=O.mode===Qs.Steps;for(O1&&(jt=g.xNumSteps[Nt]),jt||(jt=on-mn),on===void 0&&(on=mn),jt=Math.max(jt,1e-7),xt=mn;xt<=on;xt=D(xt,jt)){for(un=g.toStepping(xt),oc=un-Mt,T1=oc/(O.density||1),uc=Math.round(T1),M1=oc/uc,Kt=1;Kt<=uc;Kt+=1)ac=Mt+Kt*M1,ue[ac.toFixed(5)]=[g.fromStepping(ac),0];lc=U.indexOf(xt)>-1?Pn.LargeValue:O1?Pn.SmallValue:Pn.NoValue,!Nt&&qe&&xt!==on&&(lc=0),xt===on&&Re||(ue[un.toFixed(5)]=[xt,lc]),Mt=un}}),ue}function Ke(O,D,U){var ue,ve,me=m.createElement("div"),qe=(ue={},ue[Pn.None]="",ue[Pn.NoValue]=e.cssClasses.valueNormal,ue[Pn.LargeValue]=e.cssClasses.valueLarge,ue[Pn.SmallValue]=e.cssClasses.valueSub,ue),Re=(ve={},ve[Pn.None]="",ve[Pn.NoValue]=e.cssClasses.markerNormal,ve[Pn.LargeValue]=e.cssClasses.markerLarge,ve[Pn.SmallValue]=e.cssClasses.markerSub,ve),Mt=[e.cssClasses.valueHorizontal,e.cssClasses.valueVertical],Ot=[e.cssClasses.markerHorizontal,e.cssClasses.markerVertical];bn(me,e.cssClasses.pips),bn(me,e.ort===0?e.cssClasses.pipsHorizontal:e.cssClasses.pipsVertical);function Nt(xt,Kt){var mn=Kt===e.cssClasses.value,on=mn?Mt:Ot,un=mn?qe:Re;return Kt+" "+on[e.ort]+" "+un[xt]}function jt(xt,Kt,mn){if(mn=D?D(Kt,mn):mn,mn!==Pn.None){var on=S(me,!1);on.className=Nt(mn,e.cssClasses.marker),on.style[e.style]=xt+"%",mn>Pn.NoValue&&(on=S(me,!1),on.className=Nt(mn,e.cssClasses.value),on.setAttribute("data-value",String(Kt)),on.style[e.style]=xt+"%",on.innerHTML=String(U.to(Kt)))}}return Object.keys(O).forEach(function(xt){jt(xt,O[xt][0],O[xt][1])}),me}function xe(){d&&(_0(d),d=null)}function ft(O){xe();var D=ut(O),U=O.filter,ue=O.format||{to:function(ve){return String(Math.round(ve))}};return d=o.appendChild(Ke(D,U,ue)),d}function B(){var O=a.getBoundingClientRect(),D="offset"+["Width","Height"][e.ort];return e.ort===0?O.width||a[D]:O.height||a[D]}function I(O,D,U,ue){var ve=function(qe){var Re=W(qe,ue.pageOffset,ue.target||D);if(!Re||j()&&!ue.doNotReject||PS(o,e.cssClasses.tap)&&!ue.doNotReject||O===s.start&&Re.buttons!==void 0&&Re.buttons>1||ue.hover&&Re.buttons)return!1;i||Re.preventDefault(),Re.calcPoint=Re.points[e.ort],U(Re,ue)},me=[];return O.split(" ").forEach(function(qe){D.addEventListener(qe,ve,i?{passive:!0}:!1),me.push([qe,ve])}),me}function W(O,D,U){var ue=O.type.indexOf("touch")===0,ve=O.type.indexOf("mouse")===0,me=O.type.indexOf("pointer")===0,qe=0,Re=0;if(O.type.indexOf("MSPointer")===0&&(me=!0),O.type==="mousedown"&&!O.buttons&&!O.touches)return!1;if(ue){var Mt=function(jt){var xt=jt.target;return xt===U||U.contains(xt)||O.composed&&O.composedPath().shift()===U};if(O.type==="touchstart"){var Ot=Array.prototype.filter.call(O.touches,Mt);if(Ot.length>1)return!1;qe=Ot[0].pageX,Re=Ot[0].pageY}else{var Nt=Array.prototype.find.call(O.changedTouches,Mt);if(!Nt)return!1;qe=Nt.pageX,Re=Nt.pageY}}return D=D||I2(m),(ve||me)&&(qe=O.clientX+D.x,Re=O.clientY+D.y),O.pageOffset=D,O.points=[qe,Re],O.cursor=ve||me,O}function J(O){var D=O-MS(a,e.ort),U=D*100/B();return U=w0(U),e.dir?100-U:U}function Ee(O){var D=100,U=!1;return u.forEach(function(ue,ve){if(!le(ve)){var me=b[ve],qe=Math.abs(me-O),Re=qe===100&&D===100,Mt=qe<D,Ot=qe<=D&&O>me;(Mt||Ot||Re)&&(U=ve,D=qe)}}),U}function Te(O,D){O.type==="mouseout"&&O.target.nodeName==="HTML"&&O.relatedTarget===null&&P(O,D)}function M(O,D){if(navigator.appVersion.indexOf("MSIE 9")===-1&&O.buttons===0&&D.buttonsProperty!==0)return P(O,D);var U=(e.dir?-1:1)*(O.calcPoint-D.startCalcPoint),ue=U*100/D.baseSize;je(U>0,ue,D.locations,D.handleNumbers,D.connect)}function P(O,D){D.handle&&(Cl(D.handle,e.cssClasses.active),L-=1),D.listeners.forEach(function(U){x.removeEventListener(U[0],U[1])}),L===0&&(Cl(o,e.cssClasses.drag),ht(),O.cursor&&(A.style.cursor="",A.removeEventListener("selectstart",y0))),e.events.smoothSteps&&(D.handleNumbers.forEach(function(U){pt(U,b[U],!0,!0,!1,!1)}),D.handleNumbers.forEach(function(U){be("update",U)})),D.handleNumbers.forEach(function(U){be("change",U),be("set",U),be("end",U
129)})}function q(O,D){if(!D.handleNumbers.some(le)){var U;if(D.handleNumbers.length===1){var ue=u[D.handleNumbers[0]];U=ue.children[0],L+=1,bn(U,e.cssClasses.active)}O.stopPropagation();var ve=[],me=I(s.move,x,M,{target:O.target,handle:U,connect:D.connect,listeners:ve,startCalcPoint:O.calcPoint,baseSize:B(),pageOffset:O.pageOffset,handleNumbers:D.handleNumbers,buttonsProperty:O.buttons,locations:b.slice()}),qe=I(s.end,x,P,{target:O.target,handle:U,listeners:ve,doNotReject:!0,handleNumbers:D.handleNumbers}),Re=I("mouseout",x,Te,{target:O.target,handle:U,listeners:ve,doNotReject:!0,handleNumbers:D.handleNumbers});ve.push.apply(ve,me.concat(qe,Re)),O.cursor&&(A.style.cursor=getComputedStyle(O.target).cursor,u.length>1&&bn(o,e.cssClasses.drag),A.addEventListener("selectstart",y0,!1)),D.handleNumbers.forEach(function(Mt){be("start",Mt)})}}function te(O){O.stopPropagation();var D=J(O.calcPoint),U=Ee(D);U!==!1&&(e.events.snap||b0(o,e.cssClasses.tap,e.animationDuration),pt(U,D,!0,!0),ht(),be("slide",U,!0),be("update",U,!0),e.events.snap?q(O,{handleNumbers:[U]}):(be("change",U,!0),be("set",U,!0)))}function Q(O){var D=J(O.calcPoint),U=g.getStep(D),ue=g.fromStepping(U);
129Object.keys(E).forEach(function(ve){ve.split(".")[0]==="hover"&&E[ve].forEach(function(me){me.call(wt,ue)})})}function ie(O,D){if(j()||le(D))return!1;var U=["Left","Right"],ue=["Down","Up"],ve=["PageDown","PageUp"],me=["Home","End"];e.dir&&!e.ort?U.reverse():e.ort&&!e.dir&&(ue.reverse(),ve.reverse());var qe=O.key.replace("Arrow",""),Re=qe===ve[0],Mt=qe===ve[1],Ot=qe===ue[0]||qe===U[0]||Re,Nt=qe===ue[1]||qe===U[1]||Mt,jt=qe===me[0],xt=qe===me[1];if(!Ot&&!Nt&&!jt&&!xt)return!0;O.preventDefault();var Kt;if(Nt||Ot){var mn=Ot?0:1,on=Ye(D),un=on[mn];if(un===null)return!1;un===!1&&(un=g.getDefaultStep(b[D],Ot,e.keyboardDefaultStep)),Mt||Re?un*=e.keyboardPageMultiplier:un*=e.keyboardMultiplier,un=Math.max(un,1e-7),un=(Ot?-1:1)*un,Kt=v[D]+un}else xt?Kt=e.spectrum.xVal[e.spectrum.xVal.length-1]:Kt=e.spectrum.xVal[0];return pt(D,g.toStepping(Kt),!0,!0),be("slide",D),be("update",D),be("change",D),be("set",D),!1}function ge(O){O.fixed||u.forEach(function(D,U){I(s.start,D.children[0],q,{handleNumbers:[U]})}),O.tap&&I(s.start,a,te,{}),O.hover&&I(s.move,a,Q,{hover:!0}),O.drag&&c.forEach(function(D,U){if(!(D===!1||U===0||U===c.length-1)){var ue=u[U-1],ve=u[U],me=[D],qe=[ue,ve],Re=[U-1,U];bn(D,e.cssClasses.draggable),O.fixed&&(me.push(ue.children[0]),me.push(ve.children[0])),O.dragAll&&(qe=u,Re=k),me.forEach(function(Mt){I(s.start,Mt,q,{handles:qe,handleNumbers:Re,connect:D})})}})}function he(O,D){E[O]=E[O]||[],E[O].push(D),O.split(".")[0]==="update"&&u.forEach(function(U,ue){be("update",ue)})}function fe(O){return O===Cr.aria||O===Cr.tooltips}function se(O){var D=O&&O.split(".")[0],U=D?O.substring(D.length):O;
129Object.keys(E).forEach(function(ue){var ve=ue.split(".")[0],me=ue.substring(ve.length);(!D||D===ve)&&(!U||U===me)&&(!fe(me)||U===me)&&delete E[ue]})}function be(O,D,U){Object.keys(E).forEach(function(ue){var ve=ue.split(".")[0];O===ve&&E[ue].forEach(function(me){me.call(wt,v.map(e.format.to),D,v.slice(),U||!1,b.slice(),wt)})})}function Ce(O,D,U,ue,ve,me,qe){var Re;return u.length>1&&!e.events.unconstrained&&(ue&&D>0&&(Re=g.getAbsoluteDistance(O[D-1],e.margin,!1),U=Math.max(U,Re)),ve&&D<u.length-1&&(Re=g.getAbsoluteDistance(O[D+1],e.margin,!0),U=Math.min(U,Re))),u.length>1&&e.limit&&(ue&&D>0&&(Re=g.getAbsoluteDistance(O[D-1],e.limit,!1),U=Math.min(U,Re)),ve&&D<u.length-1&&(Re=g.getAbsoluteDistance(O[D+1],e.limit,!0),U=Math.max(U,Re))),e.padding&&(D===0&&(Re=g.getAbsoluteDistance(0,e.padding[0],!1),U=Math.max(U,Re)),D===u.length-1&&(Re=g.getAbsoluteDistance(100,e.padding[1],!0),U=Math.min(U,Re))),qe||(U=g.getStep(U)),U=w0(U),U===O[D]&&!me?!1:U}function He(O,D){var U=e.ort;return(U?D:O)+", "+(U?O:D)}function je(O,D,U,ue,ve){var me=U.slice(),qe=ue[0],Re=e.events.smoothSteps,Mt=[!O,O],Ot=[O,!O];ue=ue.slice(),O&&ue.reverse(),ue.length>1?ue.forEach(function(jt,xt){var Kt=Ce(me,jt,me[jt]+D,Mt[xt],Ot[xt],!1,Re);Kt===!1?D=0:(D=Kt-me[jt],me[jt]=Kt)}):Mt=Ot=[!0];var Nt=!1;ue.forEach(function(jt,xt){Nt=pt(jt,U[jt]+D,Mt[xt],Ot[xt],!1,Re)||Nt}),Nt&&(ue.forEach(function(jt){be("update",jt),be("slide",jt)}),ve!=null&&be("drag",qe))}function st(O,D){return e.dir?100-O-D:O}function _t(O,D){b[O]=D,v[O]=g.fromStepping(D);var U=st(D,0)-h,ue="translate("+He(U+"%","0")+")";if(u[O].style[e.transformRule]=ue,e.events.invertConnects&&b.length>1){var ve=b.every(function(me,qe,Re){return qe===0||me>=Re[qe-1]});if(_!==!ve){Fe();return}}F(O),F(O+1),_&&(F(O-1),F(O+2))}function ht(){k.forEach(function(O){var D=b[O]>50?-1:1,U=3+(u.length+D*O);u[O].style.zIndex=String(U)})}function pt(O,D,U,ue,ve,me){return ve||(D=Ce(b,O,D,U,ue,!1,me)),D===!1?!1:(_t(O,D),!0)}function F(O){if(!!c[O]){var D=b.slice();_&&D.sort(function(Re,Mt){return Re-Mt});var U=0,ue=100;O!==0&&(U=D[O-1]),O!==c.length-1&&(ue=D[O]);var ve=ue-U,me="translate("+He(st(U,ve)+"%","0")+")",qe="scale("+He(ve/100,"1")+")";c[O].style[e.transformRule]=me+" "+qe}}function z(O,D){return O===null||O===!1||O===void 0||(typeof O=="number"&&(O=String(O)),O=e.format.from(O),O!==!1&&(O=g.toStepping(O)),O===!1||isNaN(O))?b[D]:O}function Y(O,D,U){var ue=ic(O),ve=b[0]===void 0;D=D===void 0?!0:D,e.animate&&!ve&&b0(o,e.cssClasses.tap,e.animationDuration),k.forEach(function(Re){pt(Re,z(ue[Re],Re),!0,!1,U)});var me=k.length===1?0:1;if(ve&&g.hasNoSize()&&(U=!0,b[0]=0,k.length>1)){var qe=100/(k.length-1);k.forEach(function(Re){b[Re]=Re*qe})}for(;me<k.length;++me)k.forEach(function(Re){pt(Re,b[Re],!0,!0,U)});ht(),k.forEach(function(Re){be("update",Re),ue[Re]!==null&&D&&be("set",Re)})}function de(O){Y(e.start,O)}function Be(O,D,U,ue){if(O=Number(O),!(O>=0&&O<k.length))throw new Error("noUiSlider: invalid handle number, got: "+O);pt(O,z(D,O),!0,!0,ue),be("update",O),U&&be("set",O)}function et(O){if(O===void 0&&(O=!1),O)return v.length===1?v[0]:v.slice(0);var D=v.map(e.format.to);return D.length===1?D[0]:D}function gt(){for(se(Cr.aria),se(Cr.tooltips),Object.keys(e.cssClasses).forEach(function(O){Cl(o,e.cssClasses[O])});o.firstChild;)o.removeChild(o.firstChild);delete o.noUiSlider}function Ye(O){var D=b[O],U=g.getNearbySteps(D),ue=v[O],ve=U.thisStep.step,me=null;if(e.snap)return[ue-U.stepBefore.startValue||null,U.stepAfter.startValue-ue||null];ve!==!1&&ue+ve>U.stepAfter.startValue&&(ve=U.stepAfter.startValue-ue),ue>U.thisStep.startValue?me=U.thisStep.step:U.stepBefore.step===!1?me=!1:me=ue-U.stepBefore.highestStep,D===100?ve=null:D===0&&(me=null);var qe=g.countStepDecimals();return ve!==null&&ve!==!1&&(ve=Number(ve.toFixed(qe))),me!==null&&me!==!1&&(me=Number(me.toFixed(qe))),[me,ve]}function ke(){return k.map(Ye)}function Oe(O,D){var U=et(),ue=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips","connect"];ue.forEach(function(me){O[me]!==void 0&&(n[me]=O[me])});var ve=N2(n);ue.forEach(function(me){O[me]!==void 0&&(e[me]=ve[me])}),g=ve.spectrum,e.margin=ve.margin,e.limit=ve.limit,e.padding=ve.padding,e.pips?ft(e.pips):xe(),e.tooltips?De():ne(),b=[],Y(mf(O.start)?O.start:U,D),O.connect&&$e()}function $e(){for(;l.firstChild;)l.removeChild(l.firstChild);for(var O=0;O<=e.handles;O++)c[O]=R(l,e.connect[O]),F(O);ge({drag:e.events.drag,fixed:!0})}function Fe(){_=!_,D2(e,e.connect.map(function(O){return!O})),$e()}function tt(){a=H(o),G(e.connect,a),ge(e.events),Y(e.start),e.pips&&ft(e.pips),e.tooltips&&De(),ot()}tt();var wt={destroy:gt,steps:ke,on:he,off:se,get:et,set:Y,setHandle:Be,reset:de,disable:X,enable:re,__moveHandles:function(O,D,U){je(O,D,b,U)},options:n,updateOptions:Oe,target:o,removePips:xe,removeTooltips:ne,getPositions:function(){return b.slice()},getTooltips:function(){return p},getOrigins:function(){return u},pips:ft};return wt}function cE(t,e){if(!t||!t.nodeName)throw new Error("noUiSlider: create requires a single element, got: "+t);if(t.noUiSlider)throw new Error("noUiSlider: Slider was already initialized.");var n=N2(e),s=uE(t,n,e);return t.noUiSlider=s,s}
129const dE={__spectrum:H2,cssClasses:F2,create:cE},cn=Ze({__name:"Slider",props:{modelValue:{},min:{},max:{},tooltips:{type:Boolean,default:!1},values:{},suffix:{}},emits:["update:modelValue"],setup(t,{emit:e}){const n=ae(),s=t,r=e;let i;return zn(()=>{i=dE.create(n.value,{start:s.modelValue,connect:typeof s.modelValue=="number"?"lower":!0,behaviour:"snap",range:{min:s.min,max:s.max},format:{to:o=>`${o.toFixed(0)}${s.suffix||""}`,from:o=>parseInt(parseInt(o).toFixed(0))},step:1,tooltips:s.tooltips,cssPrefix:"slider-",pips:{mode:Qs.Values,values:s.values}}),i.on("change",(o,a,l)=>{l.length===1?r("update:modelValue",Math.round(l[0])):r("update:modelValue",l)}),n.value.addEventListener("click",o=>{const a=o.target;if(a&&a.classList.contains("slider-value")){const l=parseInt(a.getAttribute("data-value"));if(typeof s.modelValue=="number")r("update:modelValue",l);else{const u=Object.assign([],s.modelValue);Math.abs(u[0]-l)<Math.abs(u[1]-l)?u[0]=l:u[1]=l,r("update:modelValue",u)}}})}),ct(()=>s.modelValue,o=>i.set(o)),(o,a)=>(w(),C("div",{ref_key:"slider",ref:n},null,512))}});const fE={class:"flex-1"},hE={class:"bg-zinc-800"},Io=Ze({__name:"SettingsPopupCollapse",props:{title:{}},setup(t){const e=t,n=ae(!1);return(s,r)=>(w(),C("div",null,[f("div",{onClick:r[0]||(r[0]=i=>n.value=!n.value),class:"flex py-1.5 md:py-1.5 px-3 items-center gap-3 hover:bg-blue-500 cursor-pointer text-lg md:text-base hover:bg-blue-500"},[T(Pe,{name:"cog",class:"h-6 w-6 md:h-6 md:w-5"}),f("span",fE,ce(e.title),1),T(Pe,{name:"chevron-right",class:Qe(["h-5 w-5 transition-transform",n.value?"-rotate-90":"rotate-90"])},null,8,["class"])]),vt(f("div",hE,[hi(s.$slots,"default")],512),[[kt,n.value]])]))}}),pE=["disabled"],Zs=Ze({__name:"Toggle",props:{modelValue:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(t,{emit:e}){const n=e,s=t;return(r,i)=>(w(),C("button",{onClick:i[0]||(i[0]=o=>!s.disabled&&(n("update:modelValue",!s.modelValue),n("change"))),type:"button",disabled:s.disabled,class:Qe([[s.modelValue?"bg-blue-500":"bg-zinc-400",s.disabled?"opacity-50 cursor-not-allowed":"cursor-pointer"],"relative inline-flex flex-shrink-0 h-5 w-10 border-2 border-transparent rounded-full transition-colors ease-in-out duration-200 focus:outline-none"]),role:"switch","aria-checked":"false"},[f("span",{"aria-hidden":"true",class:Qe([s.modelValue?"translate-x-5":"translate-x-0","pointer-events-none inline-block h-4 w-4 rounded-full bg-white transform ring-0 transition ease-in-out duration-200"])},null,2)],10,pE))}}),gE={class:"text-white"},vE={key:0,class:"lg:w-80"},mE={class:"min-w-0"},_E={class:"font-semibold text-sm"},yE={key:0,class:"text-xs text-zinc-400 truncate"},bE={key:1,class:"border-b border-zinc-700/60 mb-1"},wE={class:"flex items-center justify-between"},xE={key:0,class:"rounded py-1 px-2.5 bg-green-500 text-xs text-green-50 font-semibold ml-2"},CE={class:"flex items-center justify-between"},kE={key:0,class:"rounded py-1 px-2.5 bg-green-500 text-xs text-green-50 font-semibold ml-2"},SE={class:"flex items-center justify-between gap-2"},EE={class:"flex items-center gap-2 shrink-0"},AE={key:0,class:"rounded py-1 px-2.5 bg-green-500 text-xs text-green-50 font-semibold"},LE={class:"flex items-center justify-between"},TE={key:0,class:"rounded py-1 px-2.5 bg-green-500 text-xs text-green-50 font-semibold"},ME={class:"flex items-center justify-between"},OE={key:0,class:"rounded py-1 px-2.5 bg-green-500 text-xs text-green-50 font-semibold"},PE={class:"flex items-center justify-between"},$E={key:0,class:"rounded- py-1 px-2.5 bg-green-500 text-xs text-green-50 font-semibold"},RE={class:"flex items-center justify-between"},VE={key:0,class:"rounded py-1 px-2.5 bg-green-500 text-xs text-green-50 font-semibold"},IE={class:"flex items-center justify-between"},HE={key:0,class:"rounded py-1 px-2.5 bg-green-500 text-xs text-green-50 font-semibold"},FE={class:"flex items-center justify-between"},DE={key:0,class:"rounded py-1 px-2.5 bg-green-500 text-xs text-green-50 font-semibold"},BE={key:1,class:"lg:max-w-3xl"},NE={class:"grid grid-cols-1 lg:grid-cols-2 gap-6 lg:max-w-3xl items-center p-3"},jE={key:0,"data-ph-capture-attribute-connector-handy":"1",href:"https://lp.thehandy.com/handy2-offer/?promo=FAPTAP15&ref=faptap&utm_source=faptap&utm_medium=connector-menu&utm_campaign=in-player-widget&utm_content=the-handy",target:"_blank",class:"leading-normal flex flex-col gap-2"},UE={key:0,class:"bg-white rounded-lg w-full aspect-video overflow-hidden"},zE={key:0,muted:"",autoplay:"",loop:"",src:bS,class:"w-full h-full"},qE={key:1,class:"lg:text-sm text-zinc-300 flex-1 text-center lg:text-left"},WE={key:2,class:"text-center font-medium"},GE={class:"font-bold text-blue-400"},ZE={key:1,class:"px-4 py-2"},KE={class:"flex items-center justify-between"},YE={class:"font-medium"},XE={class:"text-sm text-zinc-500 ml-1"},JE={class:"mt-4"},QE={class:"font-medium"},eA={class:"text-sm text-zinc-500 ml-1"},tA={class:"flex items-center justify-between"},nA={class:"flex flex-col items-center text-center text-white gap-y-3 mt-4 md:mt-0 h-full !order-first lg:!order-last"},sA={class:"flex items-center flex-1"},rA={key:0,class:"text-xs text-zinc-400 -mt-1"},iA={key:2,class:"lg:max-w-3xl"},oA={class:"grid grid-cols-1 lg:grid-cols-2 gap-6 lg:max-w-3xl items-center p-3"},aA={key:0,"data-ph-capture-attribute-connector-autoblow":"1",href:"https://autoblow.com/product/autoblow-ai-ultra/?a_id=3950&utm_source=faptap&utm_medium=connector-menu&utm_campaign=affiliate-link&utm_content=autoblow-ai-ultra",target:"_blank",class:"leading-normal flex flex-col gap-2"},lA={key:0,class:"bg-white rounded-lg w-full aspect-video overflow-hidden"},uA={key:0,muted:"",autoplay:"",loop:"",src:wS,class:"w-full h-full"},cA={key:1,class:"lg:text-sm text-zinc-300 flex-1 text-center lg:text-left"},dA={key:2,class:"text-center font-medium"},fA={key:1,class:"px-4 py-2"},hA={class:"flex items-center justify-between"},pA={class:"font-medium"},gA={class:"text-sm text-zinc-500 ml-1"},vA={class:"flex items-center justify-between"},mA={class:"flex flex-col items-center text-center text-white gap-y-3 mt-4 md:mt-0 h-full !order-first lg:!order-last"},_A={class:"flex items-center flex-1"},yA={class:"text-red-500 font-medium my-2"},bA={key:0},wA={key:1,class:"text-green-500"},xA={key:3,class:"lg:max-w-3xl"},CA={class:"grid grid-cols-1 lg:grid-cols-2 gap-6 lg:max-w-3xl items-center p-3"},kA={key:0,href:"https://autoblow.com/product/vacuglide/?a_id=3950&utm_source=faptap&utm_medium=connector-menu&utm_campaign=affiliate-link&utm_content=autoblow-vacuglide",target:"_blank",class:"leading-normal flex flex-col gap-2"},SA={key:0,class:"lg:text-sm text-zinc-300 flex-1 text-center lg:text-left"},EA={key:1,class:"px-4 py-2"},AA={class:"flex items-center justify-between"},LA={class:"font-medium"},TA={class:"text-sm text-zinc-500 ml-1"},MA={class:"flex flex-col items-center text-center text-white gap-y-3 mt-4 md:mt-0 h-full !order-first lg:!order-last"},OA={class:"flex items-center flex-1"},PA={class:"text-red-500 font-medium my-2"},$A={key:0},RA={key:1,class:"text-green-500"},VA={key:4,class:"lg:w-80"},IA={class:"flex flex-col items-center text-center text-white gap-y-3 mt-4 md:mt-0 px-3 py-2"},HA={class:"flex items-center"},FA={key:0,class:"my-3 rounded-md border border-zinc-700 overflow-hidden divide-y divide-zinc-700 w-full"},DA={class:"px-3 py-3 flex items-center justify-between"},BA={class:"font-medium"},NA={key:0,class:"flex flex items-center text-zinc-300"},jA={class:"ml-1"},UA={key:1,class:"font-medium text-red-500"},zA={class:"px-4 py-2"},qA={class:"mt-4"},WA={class:"flex items-center justify-between"},GA={class:"font-medium"},ZA={class:"text-sm text-zinc-500 ml-1"},KA={class:"mt-4"},YA={class:"flex items-center justify-between"},XA={class:"font-medium flex items-center gap-1"},JA={class:"text-sm text-zinc-500 ml-1"},QA={class:"flex items-center justify-between"},eL={key:5,class:"lg:w-80"},tL={class:"flex flex-col items-center text-center text-white gap-y-3 mt-4 md:mt-0 px-3 py-2"},nL={class:"flex items-center"},sL={key:1,class:"font-medium text-red-500"},rL={class:"px-4 py-2"},iL={class:"mt-4"},oL={class:"flex items-center justify-between"},aL={class:"font-medium"},lL={class:"text-sm text-zinc-500 ml-1"},uL={class:"mt-4"},cL={class:"flex items-center justify-between"},dL={class:"font-medium flex items-center gap-1"},fL={class:"text-sm text-zinc-500 ml-1"},hL={class:"flex items-center justify-between"}
129,pL={key:6,class:"lg:w-80"},gL={class:"flex flex-col items-center text-center text-white gap-y-3 mt-4 md:mt-0 px-3 py-2"},vL={class:"flex items-center"},mL={class:"text-red-500 font-medium my-2"},_L={key:0},yL={key:1,class:"text-green-500"},bL={key:0,class:"rounded-md border border-zinc-500 overflow-hidden divide-y divide-zinc-600 w-full"},wL={class:"px-2 py-1 flex items-center justify-between"},xL={class:"font-small"},CL={class:"px-4 py-2"},kL={class:"mt-4"},SL={class:"flex items-center justify-between"},EL={class:"font-medium"},AL={class:"text-sm text-zinc-500 ml-1"},LL={class:"mt-4"},TL={class:"flex items-center justify-between"},ML={class:"font-medium flex items-center gap-1"},OL={class:"text-sm text-zinc-500 ml-1"},PL={class:"flex items-center justify-between"},$L={key:7,class:"lg:w-80"},RL={class:"flex flex-col items-center text-center text-white gap-y-3 mt-4 md:mt-0 px-3 py-2"},VL={class:"flex items-center"},IL={class:"text-red-500 font-medium my-2"},HL={key:0},FL={key:1,class:"text-green-500"},DL={class:"px-4 py-2"},BL={class:"flex items-center justify-between"},NL={class:"font-medium"},jL={class:"text-sm text-zinc-500 ml-1"},UL={class:"mt-4"},zL={class:"flex items-center justify-between"},qL={class:"font-medium flex items-center gap-1"},WL={class:"text-sm text-zinc-500 ml-1"},GL={key:8,class:"lg:max-w-3xl"},ZL={key:0,class:"px-4 py-2"},KL={class:"flex items-center justify-between"},YL={class:"mt-4"},XL={class:"flex items-center justify-between"},JL={class:"font-medium"},QL={class:"text-sm text-zinc-500 ml-1"},eT={class:"mt-4"},tT={class:"mt-4"},nT={class:"flex items-center justify-between"},sT={class:"font-medium flex items-center gap-1"},rT={class:"text-sm text-zinc-500 ml-1"},iT={class:"mt-4"},oT={class:"flex items-center justify-between"},aT={class:"font-medium"},lT={class:"text-sm text-zinc-500 ml-1"},uT={class:"flex items-center justify-between"},cT={class:"flex gap-4"},dT={class:"mt-4"},fT={class:"flex flex-col items-center text-center text-white gap-y-3 mt-4 md:mt-0 h-full !order-first lg:!order-last"},hT={class:"flex items-center flex-1"},pT={class:"text-red-500 font-medium my-4"},gT={key:0},vT={key:1,class:"text-green-500"},mT={key:9,class:"lg:w-80"},_T={class:"flex flex-col items-center text-center text-white gap-y-3 mt-4 md:mt-0 px-3 py-2"},yT={class:"flex items-center"},bT={key:1,class:"font-medium text-red-500"},wT={class:"px-4 py-2"},xT={class:"mt-4"},CT={class:"flex items-center justify-between"},kT={class:"font-medium"},ST={class:"text-sm text-zinc-500 ml-1"},ET={class:"mt-4"},AT={class:"flex items-center justify-between"},LT={class:"font-medium flex items-center gap-1"},TT={class:"text-sm text-zinc-500 ml-1"},MT={class:"flex items-center justify-between"},Li="Reduces physical speed by capping stroke distance to maintain perfect video sync.",OT="Based on the principle that Speed = Distance / Time, this setting caps the travel range while keeping movement duration constant. This effectively reduces the device's speed and intensity without desyncing the script from the video.",PT=Ze({__name:"DeviceConnector",setup(t){const{isMobile:e}=vi(),n=_1();let s=ae(!1);const r=ae(!1),i=ae(null);let o=null;const a=()=>{o!==null&&(window.clearTimeout(o),o=null)},l=()=>{a()},u=()=>{a(),o=window.setTimeout(()=>{r.value=!1},120)},c=A=>{a(),i.value=A.currentTarget,r.value=!0},d=A=>{A.fakeconnection(),n.triggerRefresh()},p=async A=>{await Promise.allSettled(A.filter(h=>typeof h.stop=="function").map(h=>Promise.resolve(h.stop())))},g=async A=>{switch(A){case $t.Handy:await n.handy.stop();return;case $t.Autoblow:await n.autoblow.stop();return;case $t.VacuGlide:await n.vacuglide.stop();return;case $t.Intiface:await p(n.intiface.devices);return;case $t.BluetoothFleshyThrust:await Promise.resolve(n.bluetoothFleshyThrust.resetPosition());return;case $t.FleshyX3:await Promise.resolve(n.fleshyX3.stop());return;case $t.OSR:case $t.LOOB:return}},v=async A=>{try{await g(A)}catch(h){console.warn(`[DeviceConnector] stop before disconnect failed for ${A}`,h)}switch(A){case $t.Handy:await Promise.resolve(n.handy.disconnect());break;case $t.Autoblow:await Promise.resolve(n.autoblow.disconnect());break;case $t.VacuGlide:await Promise.resolve(n.vacuglide.disconnect());break;case $t.Intiface:await Promise.resolve(n.intiface.disconnect());break;case $t.BluetoothFleshyThrust:await Promise.resolve(n.bluetoothFleshyThrust.disconnect());break;case $t.FleshyX3:await Promise.resolve(n.fleshyX3.disconnect());break;case $t.OSR:await Promise.resolve(n.osr.disconnect());break;case $t.LOOB:await Promise.resolve(n.loob.disconnect());break;case $t.Bluetooth:await p(n.bluetooth.devices),await Promise.resolve(n.bluetooth.disconnect());break}n.triggerRefresh()};zn(()=>{s.value=window.location.hash==="#test"});const b=Ne(()=>n.handy.firmwareVersion!=="Unknown"||n.handy.deviceModel!=="Unknown"||n.handy.detectedName!=="The Handy"),k=Ne(()=>
129{switch(n.handy.supportStatus){case"supported":return"Supported";case"limited":return"Limited";case"unsupported":return"Unsupported";default:return"Unknown"}}),L=Ne(()=>{switch(n.handy.supportStatus){case"supported":return"rounded py-1 px-2.5 bg-green-500/20 text-xs text-green-300 font-semibold";case"limited":return"rounded py-1 px-2.5 bg-amber-500/20 text-xs text-amber-300 font-semibold";case"unsupported":return"rounded py-1 px-2.5 bg-red-500/20 text-xs text-red-300 font-semibold";default:return"rounded py-1 px-2.5 bg-zinc-500/20 text-xs text-zinc-300 font-semibold"}}),E=Ne(()=>b.value||n.handy.connected||!!n.handy.error),_=Ne(()=>{if(n.handy.error)return n.handy.error;switch(n.handy.supportStatus){case"supported":return n.handy.connected?"Connected and ready for script playback.":"Firmware is supported. Connect to start playback.";case"limited":return n.handy.connected?`Connected with limited compatibility. ${n.handy.supportMessage}`:n.handy.supportMessage;case"unsupported":return n.handy.supportMessage;default:return b.value?n.handy.supportMessage:"Enter your connection key to detect device compatibility."}}),m=Ne(()=>n.handy.error||n.handy.supportStatus==="unsupported"?"text-red-500":n.handy.connected&&n.handy.supportStatus==="supported"?"text-green-500":n.handy.supportStatus==="limited"||n.handy.supportStatus==="unknown"?"text-amber-400":"text-zinc-400");ct(()=>n.ui.open,A=>{A&&n.triggerRefresh()});const x=async(A,h)=>{n.ui.page=A,h&&!h.connected&&(n.triggerRefresh(),await h.connect())};return(A,h)=>(w(),C("div",gE,[T(Iu,{mode:"out-in"},{default:V(()=>[y(n).ui.page===y(At).Start?(w(),C("div",vE,[y(n).quickReconnectAvailable?(w(),pe(Le,{key:0,icon:"reconnect",arrow:!0,class:"bg-gradient-to-r from-blue-500/15 via-blue-500/5 to-transparent border-l-2 border-blue-500 mb-1",onClick:h[0]||(h[0]=S=>y(n).quickReconnect())},{default:V(()=>[f("div",mE,[f("div",_E,ce(y(n).quickReconnectPending?"Connecting...":"Quick Reconnect"),1),y(n).lastConnection?(w(),C("div",yE,ce(y(n).lastConnection.model)+" via "+ce(y(n).lastConnection.method),1)):oe("",!0)])]),_:1})):oe("",!0),y(n).quickReconnectAvailable?(w(),C("div",bE)):oe("",!0),T(Le,{icon:"usb-port",arrow:!0,onClick:h[1]||(h[1]=S=>x(y(At).FleshyX3,y(n).fleshyX3))},{default:V(()=>[f("div",wE,[h[102]||(h[102]=N(" Erojoy-X3 ",-1)),y(n).fleshyX3.connected?(w(),C("span",xE,"Connected")):oe("",!0)])]),_:1}),T(Le,{icon:"bluetooth",arrow:!0,onClick:h[2]||(h[2]=S=>x(y(At).BluetoothFleshyThrust,y(n).bluetoothFleshyThrust))},{default:V(()=>[f("div",CE,[h[103]||(h[103]=N(" Erojoy Thrust Sync ",-1)),y(n).bluetoothFleshyThrust.connected?(w(),C("span",kE,"Connected")):oe("",!0)])]),_:1}),T(Le,{icon:"thehandy",arrow:!0,onClick:h[3]||(h[3]=S=>x(y(At).Handy))},{default:V(()=>[f("div",SE,[h[104]||(h[104]=f("div",{class:"min-w-0"},[f("div",null,"TheHandy")],-1)),f("div",EE,[y(n).handy.connected?(w(),C("span",AE,"Connected")):oe("",!0)])])]),_:1}),T(Le,{icon:"autoblow",arrow:!0,onClick:h[4]||(h[4]=S=>x(y(At).Autoblow))},{default:V(()=>[f("div",LE,[h[105]||(h[105]=N(" Autoblow (Beta) ",-1)),y(n).autoblow.connected?(w(),C("span",TE," Connected ")):oe("",!0)])]),_:1}),T(Le,{icon:"autoblow",arrow:!0,onClick:h[5]||(h[5]=S=>x(y(At).VacuGlide))},{default:V(()=>[f("div",ME,[h[106]||(h[106]=N(" VacuGlide 2 ",-1)),y(n).vacuglide.connected?(w(),C("span",OE," Connected ")):oe("",!0)])]),_:1}),T(Le,{icon:"bluetooth",arrow:!0,onClick:h[6]||(h[6]=S=>x(y(At).Bluetooth,y(n).bluetooth))},{default:V(()=>[f("div",PE,[h[107]||(h[107]=N(" Bluetooth ",-1)),y(n).bluetooth.connected?(w(),C("span",$E,"Connected")):oe("",!0)])]),_:1}),T(Le,{icon:"loob",arrow:!0,onClick:h[7]||(h[7]=S=>x(y(At).Loob,y(n).loob))},{default:V(()=>[f("div",RE,[h[108]||(h[108]=N(" LOOB ",-1)),y(n).loob.connected?(w(),C("span",VE,"Connected")):oe("",!0)])]),_:1}),T(Le,{icon:"intiface",arrow:!0,onClick:h[8]||(h[8]=S=>x(y(At).Intiface))},{default:V(()=>[f("div",IE,[h[109]||(h[109]=N(" Intiface ",-1)),y(n).intiface.connected?(w(),C("span",HE,"Connected")):oe("",!0)])]),_:1}),T(Le,{icon:"usb-port",arrow:!0,onClick:h[9]||(h[9]=S=>x(y(At).Osr,y(n).osr))},{default:V(()=>[f("div",FE,[h[110]||(h[110]=N(" OSR ",-1)),y(n).osr.connected?(w(),C("span",DE,"Connected")):oe("",!0)])]),_:1})])):y(n).ui.page===y(At).Handy?(w(),C("div",BE,[f("div",NE,[h[126]||(h[126]=f("hr",{class:"mt-2 mb-0 border-zinc-700 lg:hidden"},null,-1)),y(n).handy.connected?(w(),C("div",ZE,[f("div",null,[f("div",KE,[f("p",YE,[h[114]||(h[114]=N(" Sync ",-1)),f("span",XE,ce(y(n).handy.settings.offset)+"ms",1)]),vt(f("button",{onClick:h[10]||(h[10]=S=>y(n).handy.settings.offset=0),class:"text-zinc-500 text-sm hover:text-white"},"Reset ",512),[[kt,y(n).handy.settings.offset!==0]])]),T(cn,{min:-250,max:250,tooltips:!0,values:[-250,-125,0,125,250],suffix:"ms",modelValue:y(n).handy.settings.offset,"onUpdate:modelValue":h[11]||(h[11]=S=>y(n).handy.settings.offset=S),class:"mt-1.5 mb-8"},null,8,["modelValue"]),h[115]||(h[115]=f("label",{class:"text-zinc-300 text-sm"},"If your sync is off, you can try to adjust this offset value.",-1))]),f("div",JE,[f("p",QE,[h[116]||(h[116]=N(" Stroke ",-1)),f("span",eA,ce(y(n).handy.settings.limits[0])+"-"+ce(y(n).handy.settings.limits[1]),1)]),T(cn,{modelValue:y(n).handy.settings.limits,"onUpdate:modelValue":h[12]||(h[12]=S=>y(n).handy.settings.limits=S),min:0,max:100,tooltips:!0,values:[0,25,50,75,100],class:"mt-1.5 mb-8"},null,8,["modelValue"]),h[117]||(h[117]=f("span",{class:"text-zinc-300 text-sm"},"You can adjust the stroke length to adjust the intensity of the script.",-1))]),f("div",{class:"mt-4 cursor-pointer",onClick:h[14]||(h[14]=S=>y(n).handy.settings.invert=!y(n).handy.settings.invert)},[f("div",tA,[h[118]||(h[118]=f("p",{class:"font-medium"},"Invert",-1)),T(Zs,{class:"pointer-events-none",modelValue:y(n).handy.settings.invert,"onUpdate:modelValue":h[13]||(h[13]=S=>y(n).handy.settings.invert=S)},null,8,["modelValue"])]),h[119]||(h[119]=f("span",{class:"text-zinc-300 text-sm"},"With this setting you can invert all script actions in a video. A page reload is required.",-1))])])):(w(),C("a",jE,[y(Xe)().isProduction?oe("",!0):(w(),C("div",UE,[y(e)?(w(),pe(vf,{key:1,src:"/affiliates/handy.png",alt:"The Handy",class:"w-full h-full"})):(w(),C("video",zE))])),y(Xe)().isProduction?(w(),C("span",qE,[...h[111]||(h[111]=[N("Feel what you see with ",-1),f("span",{class:"font-medium text-white"},"The Handy",-1),N(" - the interactive, automatic stroker that syncs up with any ",-1),f("span",{class:"font-medium text-white"},"FapTap",-1),N(" video.",-1)])])):oe("",!0),h[113]||(h[113]=f("div",{class:"lg:flex-1"}
129,null,-1)),y(Xe)().isProduction?(w(),C("div",WE,[f("span",GE,ce(y(xS)),1)])):oe("",!0),T(ze,{class:"w-full",theme:"green"},{default:V(()=>[...h[112]||(h[112]=[N("Buy Now",-1)])]),_:1})])),f("div",nA,[T(ze,{theme:"light",class:"block w-full hover:opacity-100 border border-zinc-600",onClick:h[15]||(h[15]=S=>y(n).ui.page=y(At).Start)},{default:V(()=>[...h[120]||(h[120]=[N(" Connect another device ",-1)])]),_:1}),f("div",sA,[T(Pe,{name:"thehandy",class:"h-16 w-16"}),h[121]||(h[121]=f("h2",{class:"text-2xl font-bold"},"TheHandy",-1))]),b.value?(w(),C("p",rA,ce(y(n).handy.identityLabel),1)):oe("",!0),E.value?(w(),C("div",{key:1,class:Qe(L.value)},ce(k.value),3)):oe("",!0),h[125]||(h[125]=f("p",{class:"text-sm text-zinc-400"},[N("To connect your Handy, please enter your connection key ("),f("a",{class:"text-blue-400",target:"_blank",href:"https://www.handysetup.com/en/docs/getting-started/connect-handy-to-wifi-fw3/"},"I need help"),N("). ")],-1)),f("div",{class:Qe(["font-medium my-2 min-h-6",m.value])},[f("p",null,ce(_.value),1)],2),T(Wn,{type:"text",modelValue:y(n).handy.settings.key,"onUpdate:modelValue":h[16]||(h[16]=S=>y(n).handy.settings.key=S),disabled:!!y(n).handy.connected,class:"text-center w-full",placeholder:"Enter connection key"},null,8,["modelValue","disabled"]),y(n).handy.connected?(w(),pe(ze,{key:3,onClick:h[18]||(h[18]=It(S=>v(y($t).Handy),["stop"])),class:"w-full"},{default:V(()=>[...h[123]||(h[123]=[N("Disconnect",-1)])]),_:1})):(w(),pe(ze,{key:2,onClick:h[17]||(h[17]=S=>y(n).handy.connect()),theme:"blue",loading:!!y(n).handy.scanning,disabled:!!(y(n).handy.settings.key.length<5||y(n).handy.scanning),class:"w-full"},{default:V(()=>[...h[122]||(h[122]=[N("Connect ",-1)])]),_:1},8,["loading","disabled"])),y(s)?(w(),pe(ze,{key:4,onClick:h[19]||(h[19]=It(S=>d(y(n).handy),["stop"]))},{default:V(()=>[...h[124]||(h[124]=[N("Fake connection",-1)])]),_:1})):oe("",!0)])])])):y(n).ui.page===y(At).Autoblow?(w(),C("div",iA,[f("div",oA,[h[142]||(h[142]=f("hr",{class:"mt-2 mb-0 border-zinc-700 lg:hidden"},null,-1)),y(n).autoblow.connected?(w(),C("div",fA,[f("div",null,[f("div",hA,[f("p",pA,[h[131]||(h[131]=N(" Sync ",-1)),f("span",gA,ce(y(n).autoblow.settings.offset)+"ms",1)]),vt(f("button",{onClick:h[20]||(h[20]=S=>y(n).autoblow.settings.offset=0),class:"text-zinc-500 text-sm hover:text-white"},"Reset ",512),[[kt,y(n).autoblow.settings.offset!==0]])]),T(cn,{min:-250,max:250,tooltips:!0,values:[-250,-125,0,125,250],suffix:"ms",modelValue:y(n).autoblow.settings.offset,"onUpdate:modelValue":h[21]||(h[21]=S=>y(n).autoblow.settings.offset=S),class:"mt-1.5 mb-8"},null,8,["modelValue"]),h[132]||(h[132]=f("label",{class:"text-zinc-300 text-sm"},"If your sync is off, you can try to adjust this offset value.",-1))]),h[135]||(h[135]=f("div",{class:"mt-8"},null,-1)),f("div",{class:"mt-4 cursor-pointer",onClick:h[23]||(h[23]=S=>y(n).autoblow.settings.invert=!y(n).autoblow.settings.invert)},[f("div",vA,[h[133]||(h[133]=f("p",{class:"font-medium"},"Invert",-1)),T(Zs,{class:"pointer-events-none",modelValue:y(n).autoblow.settings.invert,"onUpdate:modelValue":h[22]||(h[22]=S=>y(n).autoblow.settings.invert=S)},null,8,["modelValue"])]),h[134]||(h[134]=f("span",{class:"text-zinc-300 text-sm"},"With this setting you can invert all script actions in a video. A page reload is required.",-1))])])):(w(),C("a",aA,[y(Xe)().isProduction?oe("",!0):(w(),C("div",lA,[y(e)?(w(),pe(vf,{key:1,src:"/affiliates/autoblow.png",alt:"Autoblow",class:"w-full h-full"})):(w(),C("video",uA))])),y(Xe)().isProduction?(w(),C("span",cA,[...h[127]||(h[127]=[N("Feel what you see with ",-1),f("span",{class:"font-medium text-white"},"Autoblow",-1),N(" - the interactive, automatic stroker that syncs up with any ",-1),f("span",{class:"font-medium text-white"},"FapTap",-1),N(" video.",-1)])])):oe("",!0),h[130]||(h[130]=f("div",{class:"lg:flex-1"},null,-1)),y(Xe)().isProduction?(w(),C("div",dA,[...h[128]||(h[128]=[N(" 10% OFF WITH CODE ",-1),f("span",{class:"font-bold text-blue-400"},"FAPTAP",-1)])])):oe("",!0),T(ze,{class:"w-full",theme:"green"},{default:V(()=>[...h[129]||(h[129]=[N("Buy Now",-1)])]),_:1})])),f("div",mA,[T(ze,{theme:"light",class:"block w-full hover:opacity-100 border border-zinc-600",onClick:h[24]||(h[24]=S=>y(n).ui.page=y(At).Start)},{default:V(()=>[...h[136]||(h[136]=[N(" Connect another device ",-1)])]),_:1}),f("div",_A,[T(Pe,{name:"autoblow",class:"h-16 w-16 pr-2"}),h[137]||(h[137]=f("h2",{class:"text-2xl font-bold"},"Autoblow (Beta)",-1))]),h[141]||(h[141]=f("p",{class:"text-sm text-zinc-400"},[N("To connect your autoblow, please enter your connection key ("),f("a",{class:"text-blue-400",target:"_blank",href:"https://autoblowme.com/Autoblow_AI_Internet_Setup_Guide.pdf"},"I need help"),N("). ")],-1)),f("div",yA,[y(n).autoblow.error?(w(),C("p",bA,ce(y(n).autoblow.error),1)):y(n).autoblow.connected?(w(),C("p",wA,"Connected")):oe("",!0)]),T(Wn,{type:"text",modelValue:y(n).autoblow.settings.key,"onUpdate:modelValue":h[25]||
129(h[25]=S=>y(n).autoblow.settings.key=S),disabled:!!y(n).autoblow.connected,class:"text-center w-full",placeholder:"Enter connection key"},null,8,["modelValue","disabled"]),y(n).autoblow.connected?(w(),pe(ze,{key:1,onClick:h[27]||(h[27]=It(S=>v(y($t).Autoblow),["stop"])),class:"w-full"},{default:V(()=>[...h[139]||(h[139]=[N("Disconnect",-1)])]),_:1})):(w(),pe(ze,{key:0,onClick:h[26]||(h[26]=S=>y(n).autoblow.connect()),theme:"blue",loading:!!y(n).autoblow.scanning,disabled:!!(y(n).autoblow.settings.key.length<5||y(n).autoblow.scanning),class:"w-full"},{default:V(()=>[...h[138]||(h[138]=[N("Connect ",-1)])]),_:1},8,["loading","disabled"])),y(s)?(w(),pe(ze,{key:2,onClick:h[28]||(h[28]=It(S=>d(y(n).autoblow),["stop"]))},{default:V(()=>[...h[140]||(h[140]=[N("Fake connection",-1)])]),_:1})):oe("",!0)])])])):y(n).ui.page===y(At).VacuGlide?(w(),C("div",xA,[f("div",CA,[h[154]||(h[154]=f("hr",{class:"mt-2 mb-0 border-zinc-700 lg:hidden"},null,-1)),y(n).vacuglide.connected?(w(),C("div",EA,[f("div",null,[f("div",AA,[f("p",LA,[h[146]||(h[146]=N(" Sync ",-1)),f("span",TA,ce(y(n).vacuglide.settings.offset)+"ms",1)]),vt(f("button",{onClick:h[29]||(h[29]=S=>y(n).vacuglide.settings.offset=0),class:"text-zinc-500 text-sm hover:text-white"},"Reset ",512),[[kt,y(n).vacuglide.settings.offset!==0]])]),T(cn,{min:-250,max:250,tooltips:!0,values:[-250,-125,0,125,250],suffix:"ms",modelValue:y(n).vacuglide.settings.offset,"onUpdate:modelValue":h[30]||(h[30]=S=>y(n).vacuglide.settings.offset=S),class:"mt-1.5 mb-8"},null,8,["modelValue"]),h[147]||(h[147]=f("label",{class:"text-zinc-300 text-sm"},"Adjust this if the suction feels out of sync with the video action.",-1))])])):(w(),C("a",kA,[y(Xe)().isProduction?(w(),C("span",SA,[...h[143]||(h[143]=[N(" Experience premium suction stroking with ",-1),f("span",{class:"font-medium text-white"},"VacuGlide 2",-1),N(" syncs perfectly with FapTap videos. ",-1)])])):oe("",!0),h[145]||(h[145]=f("div",{class:"lg:flex-1"},null,-1)),T(ze,{class:"w-full",theme:"green"},{default:V(()=>[...h[144]||(h[144]=[N("Buy Now",-1)])]),_:1})])),f("div",MA,[T(ze,{theme:"light",class:"block w-full hover:opacity-100 border border-zinc-600",onClick:h[31]||(h[31]=S=>y(n).ui.page=y(At).Start)},{default:V(()=>[...h[148]||(h[148]=[N(" Connect another device ",-1)])]),_:1}),f("div",OA,[T(Pe,{name:"autoblow",class:"h-16 w-16 pr-2"}),h[149]||(h[149]=f("h2",{class:"text-2xl font-bold"},"VacuGlide 2",-1))]),h[153]||(h[153]=f("p",{class:"text-sm text-zinc-400"},[N("To connect your VacuGlide, please enter your connection key ("),f("a",{class:"text-blue-400",target:"_blank",href:"https://autoblowme.com/Autoblow_AI_Internet_Setup_Guide.pdf"},"I need help"),N("). ")],-1)),f("div",PA,[y(n).vacuglide.error?(w(),C("p",$A,ce(y(n).vacuglide.error),1)):y(n).vacuglide.connected?(w(),C("p",RA,"Connected")):oe("",!0)]),T(Wn,{type:"text",modelValue:y(n).vacuglide.settings.key,"onUpdate:modelValue":h[32]||(h[32]=S=>y(n).vacuglide.settings.key=S),disabled:y(n).vacuglide.connected,class:"text-center w-full",placeholder:"Enter connection key"},null,8,["modelValue","disabled"]),y(n).vacuglide.connected?(w(),pe(ze,{key:1,onClick:h[34]||(h[34]=It(S=>v(y($t).VacuGlide),["stop"])),class:"w-full"},{default:V(()=>[...h[151]||(h[151]=[N("Disconnect",-1)])]),_:1})):(w(),pe(ze,{key:0,onClick:h[33]||(h[33]=S=>y(n).vacuglide.connect()),theme:"blue",loading:y(n).vacuglide.scanning,disabled:y(n).vacuglide.settings.key.length<5||y(n).vacuglide.scanning,class:"w-full"},{default:V(()=>[...h[150]||(h[150]=[N("Connect ",-1)])]),_:1},8,["loading","disabled"])),y(s)?(w(),pe(ze,{key:2,onClick:h[35]||(h[35]=It(S=>d(y(n).vacuglide),["stop"]))},{default:V(()=>[...h[152]||(h[152]=[N("Fake connection",-1)])]),_:1})):oe("",!0)])])])):y(n).ui.page===y(At).Bluetooth?(w(),C("div",VA,[T(Le,{icon:"chevron-left",onClick:h[36]||(h[36]=S=>y(n).ui.page=y(At).Start)}),f("div",IA,[f("div",HA,[T(Pe,{name:"bluetooth",class:"h-16 w-16"}),h[155]||(h[155]=f("h2",{class:"text-2xl font-bold"},"Bluetooth",-1))]),h[159]||(h[159]=f("p",{class:"text-sm text-zinc-400 my-2"},[N("FapTap supports over 250 different toys, from vibrators to strokers ("),f("a",{class:"text-blue-400",href:"https://iostindex.com/?filter0Availability=Available,DIY&filter1ButtplugSupport=4",target:"_blank"},"supported devices"),N("). ")],-1)),h[160]||(h[160]=f("p",{class:"text-sm text-zinc-400 mb-2"}," If you have a problem with your toy, try downloading Intiface on your desktop and use the Intiface connection instead of Bluetooth. ",-1)),y(n).bluetooth.devices.length>0?(w(),C("div",FA,[(w(!0),C(Ve,null,Bt(y(n).bluetooth.devices,S=>(w(),C("div",DA,[f("span",BA,ce(S.name||"Connected device"),1),S.batteryLevel&&!isNaN(S.batteryLevel)?(w(),C("span",NA,[T(Pe,{name:"energy",class:"h-5 w-5"}),f("span",jA,ce(S.batteryLevel*100)+"%",1)])):oe("",!0)]))),256))])):oe("",!0),y(n).bluetooth.error?(w(),C("div",UA,[f("p",null,ce(y(n).bluetooth.error),1)])):(w(),C(Ve,{key:2},[y(n).bluetooth.connected?(w(),pe(ze,{key:1,class:"w-full",onClick:h[38]||(h[38]=S=>v(y($t).Bluetooth))},{default:V(()=>[...h[157]||(h[157]=[N("Disconnect",-1)])]),_:1})):(w(),pe(ze,{key:0,loading:y(n).bluetooth.scanning,class:"w-full",theme:"blue",onClick:h[37]||(h[37]=S=>y(n).bluetooth.connect())},{default:V(()=>[...h[156]||(h[156]=[N("Connect",-1)])]),_:1},8,["loading"]))],64)),y(s)?(w(),pe(ze,{key:3,onClick:h[39]||(h[39]=It(S=>d(y(n).bluetooth),["stop"]))},{default:V(()=>[...h[158]||(h[158]=[N("Fake connection",-1)])]),_:1})):oe("",!0)]),T(Io,{title:"Settings",icon:"cog"},{default:V(()=>[f("div",zA,[f("div",qA,[f("div",WA,[f("p",GA,[h[161]||(h[161]=N(" Stroke ",-1)),f("span",ZA,ce(y(n).bluetooth.settings.limits[0])+"-"+ce(y(n).bluetooth.settings.limits[1]),1)]),vt(f("button",{onClick:h[40]||(h[40]=S=>y(n).bluetooth.settings.limits=[0,100]),class:"text-zinc-500 text-sm hover:text-white"},"Reset ",512),[[kt,y(n).bluetooth.settings.limits[0]!==0||y(n).bluetooth.settings.limits[1]!==100]])]),T(cn,{modelValue:y(n).bluetooth.settings.limits,"onUpdate:modelValue":h[41]||(h[41]=S=>y(n).bluetooth.settings.limits=S),min:0,max:100,tooltips:!0,values:[0,25,50,75,100],class:"mt-1.5 mb-8"},null,8,["modelValue"]),h[162]||(h[162]=f("span",{class:"text-zinc-300 text-sm"},"You can adjust the stroke length to adjust the intensity of the script.",-1))]),f("div",KA,[f("div",YA,[f("p",XA,[h[163]||(h[163]=N(" Speed Limit ",-1)),f("button",{onMouseenter:c,onMouseleave:u,onFocus:c,onBlur:u,class:"text-zinc-400 hover:text-white"},[T(Pe,{name:"help-outline",class:"h-4 w-4"})],32),f("span",JA,ce(y(n).bluetooth.settings.speedLimit)+"% ",1)]),vt(f("button",{onClick:h[42]||(h[42]=S=>y(n).bluetooth.settings.speedLimit=100),class:"text-zinc-500 text-sm hover:text-white"},"Reset ",512),[[kt,y(n).bluetooth.settings.speedLimit!==100]])]),T(cn,{modelValue:y(n).bluetooth.settings.speedLimit,"onUpdate:modelValue":h[43]||(h[43]=S=>y(n).bluetooth.settings.speedLimit=S),min:0,max:100,tooltips:!0,values:[0,25,50,75,100],class:"mt-1.5 mb-8"},null,8,["modelValue"]),f("span",{class:"text-zinc-300 text-sm"},ce(Li))]),f("div",{class:"mt-4 cursor-pointer",onClick:h[45]||(h[45]=S=>y(n).bluetooth.settings.invert=!y(n).bluetooth.settings.invert)},[f("div",QA,[h[164]||(h[164]=f("p",{class:"font-medium"},"Invert",-1)),T(Zs,{class:"pointer-events-none",modelValue:y(n).bluetooth.settings.invert,"onUpdate:modelValue":h[44]||(h[44]=S=>y(n).bluetooth.settings.invert=S)},null,8,["modelValue"])]),h[165]||(h[165]=f("span",{class:"text-zinc-300 text-sm"},"With this setting you can invert all script actions in a video",-1))])])]),_:1})])):y(n).ui.page===y(At).Osr?(w(),C("div",eL,[T(Le,{icon:"chevron-left",onClick:h[46]||(h[46]=S=>y(n).ui.page=y(At).Start)}),f("div",tL,[f("div",nL,[T(Pe,{name:"usb-port",class:"h-16 w-16"}),h[166]||(h[166]=f("h2",{class:"text-2xl font-bold"}
129,"OSR",-1))]),h[171]||(h[171]=f("p",{class:"text-sm text-zinc-400 my-4"},'Simply plug in your OSR to any USB port on your PC/Laptop and click on "Connect".',-1)),y(n).osr.error?(w(),C("div",sL,[...h[169]||(h[169]=[N(" Your browser does not support Web Serial, please use ",-1),f("a",{target:"_blank",class:"text-blue-500",href:"https://www.google.com/chrome/"},"Chrome",-1)])])):(w(),C(Ve,{key:0},[y(n).osr.connected?(w(),pe(ze,{key:1,class:"w-full",onClick:h[48]||(h[48]=S=>v(y($t).OSR))},{default:V(()=>[...h[168]||(h[168]=[N("Disconnect",-1)])]),_:1})):(w(),pe(ze,{key:0,loading:y(n).osr.scanning,class:"w-full",theme:"blue",onClick:h[47]||(h[47]=S=>y(n).osr.connect())},{default:V(()=>[...h[167]||(h[167]=[N(" Connect ",-1)])]),_:1},8,["loading"]))],64)),y(s)?(w(),pe(ze,{key:2,onClick:h[49]||(h[49]=It(S=>d(y(n).osr),["stop"]))},{default:V(()=>[...h[170]||(h[170]=[N("Fake connection",-1)])]),_:1})):oe("",!0)]),vt(T(Io,{title:"Settings",icon:"cog"},{default:V(()=>[f("div",rL,[f("div",iL,[f("div",oL,[f("p",aL,[h[172]||(h[172]=N(" Stroke ",-1)),f("span",lL,ce(y(n).osr.settings.limits[0])+"-"+ce(y(n).osr.settings.limits[1]),1)]),vt(f("button",{onClick:h[50]||(h[50]=S=>y(n).osr.settings.limits=[0,100]),class:"text-zinc-500 text-sm hover:text-white"},"Reset ",512),[[kt,y(n).osr.settings.limits[0]!==0||y(n).osr.settings.limits[1]!==100]])]),T(cn,{modelValue:y(n).osr.settings.limits,"onUpdate:modelValue":h[51]||(h[51]=S=>y(n).osr.settings.limits=S),min:0,max:100,tooltips:!0,values:[0,25,50,75,100],class:"mt-1.5 mb-8"},null,8,["modelValue"]),h[173]||(h[173]=f("span",{class:"text-zinc-300 text-sm"},"You can adjust the stroke length to adjust the intensity of the script.",-1))]),f("div",uL,[f("div",cL,[f("p",dL,[h[174]||(h[174]=N(" Speed Limit ",-1)),f("button",{onMouseenter:c,onMouseleave:u,onFocus:c,onBlur:u,class:"text-zinc-400 hover:text-white"},[T(Pe,{name:"help-outline",class:"h-4 w-4"})],32),f("span",fL,ce(y(n).osr.settings.speedLimit)+"% ",1)]),vt(f("button",{onClick:h[52]||(h[52]=S=>y(n).osr.settings.speedLimit=100),class:"text-zinc-500 text-sm hover:text-white"},"Reset ",512),[[kt,y(n).osr.settings.speedLimit!==100]])]),T(cn,{modelValue:y(n).osr.settings.speedLimit,"onUpdate:modelValue":h[53]||(h[53]=S=>y(n).osr.settings.speedLimit=S),min:0,max:100,tooltips:!0,values:[0,25,50,75,100],class:"mt-1.5 mb-8"},null,8,["modelValue"]),f("span",{class:"text-zinc-300 text-sm"},ce(Li))]),f("div",{class:"mt-4 cursor-pointer",onClick:h[55]||(h[55]=S=>y(n).osr.settings.invert=!y(n).osr.settings.invert)},[f("div",hL,[h[175]||(h[175]=f("p",{class:"font-medium"},"Invert",-1)),T(Zs,{class:"pointer-events-none",modelValue:y(n).osr.settings.invert,"onUpdate:modelValue":h[54]||(h[54]=S=>y(n).osr.settings.invert=S)},null,8,["modelValue"])]),h[176]||(h[176]=f("span",{class:"text-zinc-300 text-sm"},"With this setting you can invert all script actions in a video",-1))])])]),_:1},512),[[kt,y(n).osr.connected]])])):y(n).ui.page===y(At).Intiface?(w(),C("div",pL,[T(Le,{icon:"chevron-left",onClick:h[56]||(h[56]=S=>y(n).ui.page=y(At).Start)}),f("div",gL,[f("div",vL,[T(Pe,{name:"intiface",class:"h-16 w-16"}),h[177]||(h[177]=f("h2",{class:"text-2xl font-bold"},"Intiface",-1))]),h[181]||(h[181]=f("p",{class:"text-sm text-zinc-400"},[N("Connect to "),f("a",{class:"font-medium text-blue-400",target:"_blank",href:"https://intiface.com/"},"Intiface"),N(" by entering the address below. ")],-1)),f("div",mL,[y(n).intiface.error?(w(),C("p",_L,ce(y(n).intiface.error),1)):y(n).intiface.connected?(w(),C("p",yL,"Connected")):oe("",!0)]),y(n).intiface.connected?(w(),C("div",bL,[(w(!0),C(Ve,null,Bt(y(n).intiface.devices,S=>(w(),C("div",wL,[f("span",xL,ce(S.name),1)]))),256))])):oe("",!0),T(Wn,{type:"text",modelValue:y(n).intiface.address,"onUpdate:modelValue":h[57]||(h[57]=S=>y(n).intiface.address=S),disabled:y(n).intiface.connected,class:"text-center w-full",placeholder:"Enter Intiface address"},null,8,["modelValue","disabled"]),y(n).intiface.connected?(w(),pe(ze,{key:2,onClick:h[59]||(h[59]=S=>v(y($t).Intiface)),class:"w-full"},{default:V(()=>[...h[179]||(h[179]=[N("Disconnect",-1)])]),_:1})):(w(),pe(ze,{key:1,onClick:h[58]||(h[58]=S=>y(n).intiface.connect()),theme:"blue",loading:y(n).intiface.scanning,disabled:y(n).intiface.address.length<1||y(n).intiface.scanning,class:"w-full"},{default:V(()=>[...h[178]||(h[178]=[N("Connect ",-1)])]),_:1},8,["loading","disabled"])),y(s)?(w(),pe(ze,{key:3,onClick:h[60]||(h[60]=It(S=>d(y(n).intiface),["stop"]))},{default:V(()=>[...h[180]||(h[180]=[N("Fake connection",-1)])]),_:1})):oe("",!0)]),vt(T(Io,{title:"Settings",icon:"cog"},{default:V(()=>[f("div",CL,[f("div",kL,[f("div",SL,[f("p",EL,[h[182]||(h[182]=N(" Stroke ",-1)),f("span",AL,ce(y(n).intiface.settings.limits[0])+"-"+ce(y(n).intiface.settings.limits[1]),1)]),vt(f("button",{onClick:h[61]||(h[61]=S=>y(n).intiface.settings.limits=[0,100]),class:"text-zinc-500 text-sm hover:text-white"},"Reset ",512),[[kt,y(n).intiface.settings.limits[0]!==0||y(n).intiface.settings.limits[1]!==100]])]),T(cn,{modelValue:y(n).intiface.settings.limits,"onUpdate:modelValue":h[62]||(h[62]=S=>y(n).intiface.settings.limits=S),min:0,max:100,tooltips:!0,values:[0,25,50,75,100],class:"mt-1.5 mb-8"},null,8,["modelValue"]),h[183]||(h[183]=f("span",{class:"text-zinc-300 text-sm"},"You can adjust the stroke length to adjust the intensity of the script.",-1))]),f("div",LL,[f("div",TL,[f("p",ML,[h[184]||(h[184]=N(" Speed Limit ",-1)),f("button",{onMouseenter:c,onMouseleave:u,onFocus:c,onBlur:u,class:"text-zinc-400 hover:text-white"},[T(Pe,{name:"help-outline",class:"h-4 w-4"})],32),f("span",OL,ce(y(n).intiface.settings.speedLimit)+"% ",1)]),vt(f("button",{onClick:h[63]||(h[63]=S=>y(n).intiface.settings.speedLimit=100),class:"text-zinc-500 text-sm hover:text-white"},"Reset ",512),[[kt,y(n).intiface.settings.speedLimit!==100]])]),T(cn,{modelValue:y(n).intiface.settings.speedLimit,"onUpdate:modelValue":h[64]||(h[64]=S=>y(n).intiface.settings.speedLimit=S),min:0,max:100,tooltips:!0,values:[0,25,50,75,100],class:"mt-1.5 mb-8"},null,8,["modelValue"]),f("span",{class:"text-zinc-300 text-sm"},ce(Li))]),f("div",{class:"mt-4 cursor-pointer",onClick:h[66]||(h[66]=S=>
129y(n).intiface.settings.invert=!y(n).intiface.settings.invert)},[f("div",PL,[h[185]||(h[185]=f("p",{class:"font-medium"},"Invert",-1)),T(Zs,{class:"pointer-events-none",modelValue:y(n).intiface.settings.invert,"onUpdate:modelValue":h[65]||(h[65]=S=>y(n).intiface.settings.invert=S)},null,8,["modelValue"])]),h[186]||(h[186]=f("span",{class:"text-zinc-300 text-sm"},"With this setting you can invert all script actions in a video",-1))])])]),_:1},512),[[kt,y(n).intiface.connected]])])):y(n).ui.page===y(At).Loob?(w(),C("div",$L,[T(Le,{icon:"chevron-left",onClick:h[67]||(h[67]=S=>y(n).ui.page=y(At).Start)}),f("div",RL,[f("div",VL,[T(Pe,{name:"loob",class:"h-16"})]),h[190]||(h[190]=f("p",{class:"text-sm text-zinc-400"},[N(" Connect to your "),f("a",{class:"font-medium text-blue-400",target:"_blank",href:"https://www.joyloob.com/?utm_source=faptap&utm_medium=connector-menu&utm_campaign=affiliate-link&utm_content=joyride-loob"},"LOOB")],-1)),f("div",IL,[y(n).loob.error?(w(),C("p",HL,ce(y(n).loob.error),1)):y(n).loob.connected?(w(),C("p",FL,"Connected")):oe("",!0)]),y(n).loob.connected?(w(),pe(ze,{key:1,onClick:h[69]||(h[69]=S=>v(y($t).LOOB)),class:"w-full"},{default:V(()=>[...h[188]||(h[188]=[N("Disconnect",-1)])]),_:1})):(w(),pe(ze,{key:0,onClick:h[68]||(h[68]=S=>y(n).loob.connect()),theme:"blue",loading:y(n).loob.scanning,disabled:y(n).loob.scanning,class:"w-full"},{default:V(()=>[...h[187]||(h[187]=[N("Connect ",-1)])]),_:1},8,["loading","disabled"])),y(s)?(w(),pe(ze,{key:2,onClick:h[70]||(h[70]=It(S=>d(y(n).loob),["stop"]))},{default:V(()=>[...h[189]||(h[189]=[N("Fake connection",-1)])]),_:1})):oe("",!0)]),vt(T(Io,{title:"Settings",icon:"cog"},{default:V(()=>[f("div",DL,[f("div",null,[f("div",BL,[f("p",NL,[h[191]||(h[191]=N(" Stroke ",-1)),f("span",jL,ce(y(n).loob.settings.limits[0])+"-"+ce(y(n).loob.settings.limits[1]),1)]),vt(f("button",{onClick:h[71]||(h[71]=S=>y(n).loob.settings.limits=[0,100]),class:"text-zinc-500 text-sm hover:text-white"},"Reset ",512),[[kt,y(n).loob.settings.limits[0]!==0||y(n).loob.settings.limits[1]!==100]])]),T(cn,{modelValue:y(n).loob.settings.limits,"onUpdate:modelValue":h[72]||(h[72]=S=>y(n).loob.settings.limits=S),min:0,max:100,tooltips:!0,values:[0,25,50,75,100],class:"mt-1.5 mb-8"},null,8,["modelValue"]),h[192]||(h[192]=f("span",{class:"text-zinc-300 text-sm"},"You can adjust the stroke length to adjust the intensity of the script.",-1))]),f("div",UL,[f("div",zL,[f("p",qL,[h[193]||(h[193]=N(" Speed Limit ",-1)),f("button",{onMouseenter:c,onMouseleave:u,onFocus:c,onBlur:u,class:"text-zinc-400 hover:text-white"},[T(Pe,{name:"help-outline",class:"h-4 w-4"})],32),f("span",WL,ce(y(n).loob.settings.speedLimit)+"% ",1)]),vt(f("button",{onClick:h[73]||(h[73]=S=>y(n).loob.settings.speedLimit=100),class:"text-zinc-500 text-sm hover:text-white"},"Reset ",512),[[kt,y(n).loob.settings.speedLimit!==100]])]),T(cn,{modelValue:y(n).loob.settings.speedLimit,"onUpdate:modelValue":h[74]||(h[74]=S=>y(n).loob.settings.speedLimit=S),min:0,max:100,tooltips:!0,values:[0,25,50,75,100],class:"mt-1.5 mb-8"},null,8,["modelValue"]),f("span",{class:"text-zinc-300 text-sm"},ce(Li))])])]),_:1},512),[[kt,y(n).loob.connected]])])):y(n).ui.page===y(At).BluetoothFleshyThrust?(w(),C("div",GL,[f("div",{class:Qe(["grid grid-cols-1 gap-6 items-center p-3",y(n).bluetoothFleshyThrust.connected?"lg:max-w-3xl lg:grid-cols-2":"lg:w-80 p-4"])},[h[211]||(h[211]=f("hr",{class:"mt-2 mb-0 border-zinc-700 lg:hidden"},null,-1)),y(n).bluetoothFleshyThrust.connected?(w(),C("div",ZL,[f("div",null,[f("div",KL,[h[194]||(h[194]=f("p",{class:"font-medium"},"Device Name:",-1)),N(" "+ce(y(n).bluetoothFleshyThrust.devicename),1)])]),f("div",YL,[f("div",XL,[f("p",JL,[h[195]||(h[195]=N(" Delay: ",-1)),f("span",QL,ce(y(n).bluetoothFleshyThrust.offset)+" ms",1)]),f("button",{class:"text-zinc-500 text-sm hover:text-white",onClick:h[75]||(h[75]=It((...S)=>y(n).bluetoothFleshyThrust.resetOffset&&y(n).bluetoothFleshyThrust.resetOffset(...S),["stop"]))},"Reset")]),T(cn,{modelValue:y(n).bluetoothFleshyThrust.offset,"onUpdate:modelValue":h[76]||(h[76]=S=>y(n).bluetoothFleshyThrust.offset=S),min:-250,max:250,tooltips:!0,values:[-250,-125,0,125,250],suffix:"ms",class:"mt-1.5 mb-8"},null,8,["modelValue"]),h[196]||(h[196]=f("label",{class:"text-zinc-300 text-xs"},"If your sync is off, you can try to adjust this offset value.",-1))]),f("div",eT,[f("div",{class:"flex items-center justify-between",onClick:h[78]||(h[78]=(...S)=>y(n).bluetoothFleshyThrust.toggleMode&&y(n).bluetoothFleshyThrust.toggleMode(...S))},[h[197]||(h[197]=f("p",{class:"font-medium"},"EXTREME Mode",-1)),T(Zs,{class:"pointer-events-none",modelValue:y(n).bluetoothFleshyThrust.isEXTREME,"onUpdate:modelValue":h[77]||(h[77]=S=>y(n).bluetoothFleshyThrust.isEXTREME=S)},null,8,["modelValue"])]),h[198]||(h[198]=f("span",{class:"text-zinc-300 text-sm"},"Enable to increase the intensity.",-1))]),f("div",tT,[f("div",nT,[f("p",sT,[h[199]||(h[199]=N(" Speed Limit ",-1)),f("button",{onMouseenter:c,onMouseleave:u,onFocus:c,onBlur:u,class:"text-zinc-400 hover:text-white"},[T(Pe,{name:"help-outline",class:"h-4 w-4"})],32),f("span",rT,ce(y(n).bluetoothFleshyThrust.settings.speedLimit)+"% ",1)]),vt(f("button",{onClick:h[79]||(h[79]=S=>y(n).bluetoothFleshyThrust.settings.speedLimit=100),class:"text-zinc-500 text-sm hover:text-white"},"Reset ",512),[[kt,y(n).bluetoothFleshyThrust.settings.speedLimit!==100]])]),T(cn,{modelValue:y(n).bluetoothFleshyThrust.settings.speedLimit,"onUpdate:modelValue":h[80]||(h[80]=S=>y(n).bluetoothFleshyThrust.settings.speedLimit=S),min:0,max:100,tooltips:!0,values:[0,25,50,75,100],class:"mt-1.5 mb-8"},null,8,["modelValue"]),f("span",{class:"text-zinc-300 text-sm"},ce(Li))]),f("div",iT,[f("div",oT,[f("p",aT,[h[200]||(h[200]=N(" Stroke ",-1)),f("span",lT,ce(y(n).bluetoothFleshyThrust.settings.limits[0])+"-"+ce(y(n).bluetoothFleshyThrust.settings.limits[1]),1)]),vt(f("button",{onClick:h[81]||(h[81]=S=>y(n).bluetoothFleshyThrust.settings.limits=[0,100]),class:"text-zinc-500 text-sm hover:text-white"},"Reset ",512),[[kt,y(n).bluetoothFleshyThrust.settings.limits[0]!==0||y(n).bluetoothFleshyThrust.settings.limits[1]!==100]])]),T(cn,{modelValue:y(n).bluetoothFleshyThrust.settings.limits,"onUpdate:modelValue":h[82]||(h[82]=S=>y(n).bluetoothFleshyThrust.settings.limits=S),min:0,max:100,tooltips:!0,values:[0,25,50,75,100],class:"mt-1.5 mb-8"},null,8,["modelValue"]),h[201]||(h[201]=f("span",{class:"text-zinc-300 text-sm"},"You can adjust the stroke length to adjust the intensity of the script.",-1))]),f("div",{class:"mt-4 cursor-pointer",onClick:h[84]||(h[84]=S=>y(n).bluetoothFleshyThrust.settings.invert=!y(n).bluetoothFleshyThrust.settings.invert)},[f("div",uT,[h[202]||(h[202]=f("p",{class:"font-medium"},"Invert",-1)),T(Zs,{class:"pointer-events-none",modelValue:y(n).bluetoothFleshyThrust.settings.invert,"onUpdate:modelValue":h[83]||(h[83]=S=>y(n).bluetoothFleshyThrust.settings.invert=S)},null,8,["modelValue"])]),h[203]||(h[203]=f("span",{class:"text-zinc-300 text-sm"},"With this setting you can invert all script actions in a video",-1))]),f("div",cT,[f("div",dT,[f("p",{class:"flex items-center gap-2 text-sm",onClick:h[86]||(h[86]=(...
129S)=>y(n).bluetoothFleshyThrust.toggleSafeMode&&y(n).bluetoothFleshyThrust.toggleSafeMode(...S))},[T(Zs,{class:"pointer-events-none",modelValue:y(n).bluetoothFleshyThrust.getSafeMode,"onUpdate:modelValue":h[85]||(h[85]=S=>y(n).bluetoothFleshyThrust.getSafeMode=S)},null,8,["modelValue"]),h[204]||(h[204]=N(" Safe Mode ",-1))])])])])):oe("",!0),f("div",fT,[T(ze,{theme:"light",class:"block w-full hover:opacity-100 border border-zinc-600",onClick:h[87]||(h[87]=S=>y(n).ui.page=y(At).Start)},{default:V(()=>[...h[205]||(h[205]=[N(" Connect another device ",-1)])]),_:1}),f("div",hT,[T(Pe,{name:"bluetooth",class:"h-16 w-16 pr-2"}),h[206]||(h[206]=f("h2",{class:"text-2xl font-bold"},"Erojoy Thrust Sync",-1))]),h[210]||(h[210]=f("p",{class:"text-sm text-zinc-400"},[N(" Connect to your "),f("a",{class:"font-medium text-blue-400",target:"_blank",href:"https://erojoy.com/products/thrust-sync?utm_source=faptap&utm_medium=connector-menu&utm_campaign=affiliate-link&utm_content=erojoy-thrust-sync"},"Erojoy Thrust Sync")],-1)),f("div",pT,[y(n).bluetoothFleshyThrust.error?(w(),C("p",gT,ce(y(n).bluetoothFleshyThrust.error),1)):y(n).bluetoothFleshyThrust.connected?(w(),C("p",vT,"Connected")):oe("",!0)]),y(n).bluetoothFleshyThrust.connected?(w(),pe(ze,{key:1,onClick:h[89]||(h[89]=It(S=>v(y($t).BluetoothFleshyThrust),["stop"])),class:"w-full"},{default:V(()=>[...h[208]||(h[208]=[N("Disconnect",-1)])]),_:1})):(w(),pe(ze,{key:0,onClick:h[88]||(h[88]=S=>y(n).bluetoothFleshyThrust.connect()),theme:"blue",loading:y(n).bluetoothFleshyThrust.scanning,disabled:y(n).bluetoothFleshyThrust.scanning,class:"w-full"},{default:V(()=>[...h[207]||(h[207]=[N("Connect ",-1)])]),_:1},8,["loading","disabled"])),y(s)?(w(),pe(ze,{key:2,onClick:h[90]||(h[90]=It(S=>d(y(n).bluetoothFleshyThrust),["stop"]))},{default:V(()=>[...h[209]||(h[209]=[N("Fake connection",-1)])]),_:1})):oe("",!0)])],2)])):y(n).ui.page===y(At).FleshyX3?(w(),C("div",mT,[T(Le,{icon:"chevron-left",onClick:h[91]||(h[91]=S=>y(n).ui.page=y(At).Start)}),f("div",_T,[f("div",yT,[T(Pe,{name:"usb-port",class:"h-16 w-16"}),h[212]||(h[212]=f("h2",{class:"text-2xl font-bold"},"Erojoy X3",-1))]),h[217]||(h[217]=f("p",{class:"text-sm text-zinc-400 my-4"},'Simply plug in your Erojoy X3 device to any USB port on your Laptop/PC and click on "Connect".',-1)),y(n).fleshyX3.error?(w(),C("div",bT,[...h[215]||(h[215]=[N(" Your browser does not support Web Serial, please use ",-1),f("a",{target:"_blank",class:"text-blue-500",href:"https://www.google.com/chrome/"},"Chrome",-1)])])):(w(),C(Ve,{key:0},[y(n).fleshyX3.connected?(w(),pe(ze,{key:1,class:"w-full",onClick:h[93]||(h[93]=S=>v(y($t).FleshyX3))},{default:V(()=>[...h[214]||(h[214]=[N("Disconnect",-1)])]),_:1})):(w(),pe(ze,{key:0,loading:y(n).fleshyX3.scanning,class:"w-full",theme:"blue",onClick:h[92]||(h[92]=S=>y(n).fleshyX3.connect())},{default:V(()=>[...h[213]||(h[213]=[N(" Connect ",-1)])]),_:1},8,["loading"]))],64)),y(s)?(w(),pe(ze,{key:2,onClick:h[94]||(h[94]=It(S=>d(y(n).fleshyX3),["stop"]))},{default:V(()=>[...h[216]||(h[216]=[N("Fake connection",-1)])]),_:1})):oe("",!0)]),vt(T(Io,{title:"Settings",icon:"cog"},{default:V(()=>[f("div",wT,[f("div",xT,[f("div",CT,[f("p",kT,[h[218]||(h[218]=N(" Stroke ",-1)),f("span",ST,ce(y(n).fleshyX3.settings.limits[0])+"-"+ce(y(n).fleshyX3.settings.limits[1]),1)]),vt(f("button",{onClick:h[95]||(h[95]=S=>y(n).fleshyX3.settings.limits=[0,100]),class:"text-zinc-500 text-sm hover:text-white"},"Reset ",512),[[kt,y(n).fleshyX3.settings.limits[0]!==0||y(n).fleshyX3.settings.limits[1]!==100]])]),T(cn,{modelValue:y(n).fleshyX3.settings.limits,"onUpdate:modelValue":h[96]||(h[96]=S=>y(n).fleshyX3.settings.limits=S),min:0,max:100,tooltips:!0,values:[0,25,50,75,100],class:"mt-1.5 mb-8"},null,8,["modelValue"]),h[219]||(h[219]=f("span",{class:"text-zinc-300 text-sm"},"You can adjust the stroke length to adjust the intensity of the script.",-1))]),f("div",ET,[f("div",AT,[f("p",LT,[h[220]||(h[220]=N(" Speed Limit ",-1)),f("button",{onMouseenter:c,onMouseleave:u,onFocus:c,onBlur:u,class:"text-zinc-400 hover:text-white"},[T(Pe,{name:"help-outline",class:"h-4 w-4"})],32),f("span",TT,ce(y(n).fleshyX3.settings.speedLimit)+"% ",1)]),vt(f("button",{onClick:h[97]||(h[97]=S=>y(n).fleshyX3.settings.speedLimit=100),class:"text-zinc-500 text-sm hover:text-white"},"Reset ",512),[[kt,y(n).fleshyX3.settings.speedLimit!==100]])]),T(cn,{modelValue:y(n).fleshyX3.settings.speedLimit,"onUpdate:modelValue":h[98]||(h[98]=S=>y(n).fleshyX3.settings.speedLimit=S),min:0,max:100,tooltips:!0,values:[0,25,50,75,100],class:"mt-1.5 mb-8"},null,8,["modelValue"]),f("span",{class:"text-zinc-300 text-sm"},ce(Li))]),f("div",{class:"mt-4 cursor-pointer",onClick:h[100]||(h[100]=S=>y(n).fleshyX3.settings.invert=!y(n).fleshyX3.settings.invert)},[f("div",MT,[h[221]||(h[221]=f("p",{class:"font-medium"},"Invert",-1)),T(Zs,{class:"pointer-events-none",modelValue:y(n).fleshyX3.settings.invert,"onUpdate:modelValue":h[99]||(h[99]=S=>y(n).fleshyX3.settings.invert=S)},null,8,["modelValue"])]),h[222]||(h[222]=f("span",{class:"text-zinc-300 text-sm"},"With this setting you can invert all script actions in a video",-1))])])]),_:1},512),[[kt,y(n).fleshyX3.connected]])])):oe("",!0)]),_:1}),i.value?(w(),pe(Mr,{key:0,modelValue:r.value,"onUpdate:modelValue":h[101]||(h[101]=S=>r.value=S),target:i.value,placement:"top",offset:8,class:"max-w-xs p-3 text-zinc-200 text-xs leading-relaxed shadow-xl"},{default:V(()=>[f("div",{onMouseenter:l,onMouseleave:u},ce(OT),32)]),_:1},8,["modelValue","target"])):oe("",!0)]))}});var C0;const S1=typeof window<"u",k0=t=>typeof t=="function",j2=t=>typeof t=="string",fu=()=>{},$T=S1&&((C0=window==null?void 0:window.navigator)==null?void 0:C0.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function hu(t){return typeof t=="function"?t():y(t)}function RT(t,e){function n(...s){return new Promise((r,i)=>{Promise.resolve(t(()=>e.apply(this,s),{fn:e,thisArg:this,args:s})).then(r).catch(i)})}return n}const VT=t=>t();function IT(t,e={}){let n,s,r=fu;const i=a=>{clearTimeout(a),r(),r=fu};return a=>{const l=hu(t),u=hu(e.maxWait);return n&&i(n),l<=0||u!==void 0&&u<=0?(s&&(i(s),s=null),Promise.resolve(a())):new Promise((c,d)=>{r=e.rejectOnCancel?d:c,u&&!s&&(s=setTimeout(()=>{n&&i(n),s=null,c(a())},u)),n=setTimeout(()=>{s&&i(s),s=null,c(a())},l)})}}function HT(t){return t}function U2(t){return Af()?(X0(t),!0):!1}function FT(t){return typeof t=="function"?Ne(t):ae(t)}function DT(t,e=!0){En()?zn(t):e?t():Hr(t)}var S0=Object.getOwnPropertySymbols,BT=Object.prototype.hasOwnProperty,NT=Object.prototype.propertyIsEnumerable,jT=(t,e)=>{var n={};for(var s in t)BT.call(t,s)&&e.indexOf(s)<0&&(n[s]=t[s]);if(t!=null&&S0)for(var s of S0(t))e.indexOf(s)<0&&NT.call(t,s)&&(n[s]=t[s]);return n};function UT(t,e,n={}){const s=n,{eventFilter:r=VT}=s,i=jT(s,["eventFilter"]);return ct(t,RT(r,e),i)}var zT=Object.defineProperty,qT=Object.defineProperties,WT=Object.getOwnPropertyDescriptors,pu=Object.getOwnPropertySymbols,z2=Object.prototype.hasOwnProperty,q2=Object.prototype.propertyIsEnumerable,E0=(t,e,n)=>e in t?zT(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,GT=(t,e)=>{for(var n in e||(e={}))z2.call(e,n)&&E0(t,n,e[n]);if(pu)for(var n of pu(e))q2.call(e,n)&&E0(t,n,e[n]);return t},ZT=(t,e)=>qT(t,WT(e)),KT=(t,e)=>{var n={};for(var s in t)z2.call(t,s)&&e.indexOf(s)<0&&(n[s]=t[s]);if(t!=null&&pu)for(var s of pu(t))e.indexOf(s)<0&&q2.call(t,s)&&(n[s]=t[s]);return n};function wI(t,e,n={}){const s=n,{debounce:r=0,maxWait:i=void 0}=s,o=KT(s,["debounce","maxWait"]);return UT(t,e,ZT(GT({},o),{eventFilter:IT(r,{maxWait:i})}))}function qi(t){var e;const n=hu(t);return(e=n==null?void 0:n.$el)!=null?e:n}const E1=S1?window:void 0,YT=S1?window.document:void 0;function td(...t){let e,n,s,r;if(j2(t[0])||Array.isArray(t[0])?([n,s,r]=t,e=E1):[e,n,s,r]=t,!e)return fu;Array.isArray(n)||(n=[n]),Array.isArray(s)||(s=[s]);const i=[],o=()=>
129{i.forEach(c=>c()),i.length=0},a=(c,d,p,g)=>(c.addEventListener(d,p,g),()=>c.removeEventListener(d,p,g)),l=ct(()=>[qi(e),hu(r)],([c,d])=>{o(),c&&i.push(...n.flatMap(p=>s.map(g=>a(c,p,g,d))))},{immediate:!0,flush:"post"}),u=()=>{l(),o()};return U2(u),u}let A0=!1;function XT(t,e,n={}){const{window:s=E1,ignore:r=[],capture:i=!0,detectIframe:o=!1}=n;if(!s)return;$T&&!A0&&(A0=!0,Array.from(s.document.body.children).forEach(p=>p.addEventListener("click",fu)));let a=!0;const l=p=>r.some(g=>{if(typeof g=="string")return Array.from(s.document.querySelectorAll(g)).some(v=>v===p.target||p.composedPath().includes(v));{const v=qi(g);return v&&(p.target===v||p.composedPath().includes(v))}}),c=[td(s,"click",p=>{const g=qi(t);if(!(!g||g===p.target||p.composedPath().includes(g))){if(p.detail===0&&(a=!l(p)),!a){a=!0;return}e(p)}},{passive:!0,capture:i}),td(s,"pointerdown",p=>{const g=qi(t);g&&(a=!p.composedPath().includes(g)&&!l(p))},{passive:!0}),o&&td(s,"blur",p=>{var g;const v=qi(t);((g=s.document.activeElement)==null?void 0:g.tagName)==="IFRAME"&&!(v!=null&&v.contains(s.document.activeElement))&&e(p)})].filter(Boolean);return()=>c.forEach(p=>p())}function JT(t,e=!1){const n=ae(),s=()=>n.value=Boolean(t());return s(),DT(s,e),n}const yf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},bf="__vueuse_ssr_handlers__";yf[bf]=yf[bf]||{};yf[bf];var L0=Object.getOwnPropertySymbols,QT=Object.prototype.hasOwnProperty,eM=Object.prototype.propertyIsEnumerable,tM=(t,e)=>{var n={};for(var s in t)QT.call(t,s)&&e.indexOf(s)<0&&(n[s]=t[s]);if(t!=null&&L0)for(var s of L0(t))e.indexOf(s)<0&&eM.call(t,s)&&(n[s]=t[s]);return n};function nM(t,e,n={}){const s=n,{window:r=E1}=s,i=tM(s,["window"]);let o;const a=JT(()=>r&&"MutationObserver"in r),l=()=>{o&&(o.disconnect(),o=void 0)},u=ct(()=>qi(t),d=>{l(),a.value&&r&&d&&(o=new MutationObserver(e),o.observe(d,i))},{immediate:!0}),c=()=>{l(),u()};return U2(c),{isSupported:a,stop:c}}var T0;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(T0||(T0={}));function xI(t=null,e={}){var n,s;const{document:r=YT}=e,i=FT((n=t!=null?t:r==null?void 0:r.title)!=null?n:null),o=t&&k0(t);function a(l){if(!("titleTemplate"in e))return l;const u=e.titleTemplate||"%s";return k0(u)?u(l):y(u).replace(/%s/g,l)}return ct(i,(l,u)=>{l!==u&&r&&(r.title=a(j2(l)?l:""))},{immediate:!0}),e.observe&&!e.titleTemplate&&r&&!o&&nM((s=r.head)==null?void 0:s.querySelector("title"),()=>{r&&r.title!==i.value&&(i.value=a(r.title))},{childList:!0}),i}var sM=Object.defineProperty,M0=Object.getOwnPropertySymbols,rM=Object.prototype.hasOwnProperty,iM=Object.prototype.propertyIsEnumerable,O0=(t,e,n)=>e in t?sM(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,oM=(t,e)=>{for(var n in e||(e={}))rM.call(e,n)&&O0(t,n,e[n]);if(M0)for(var n of M0(e))iM.call(e,n)&&O0(t,n,e[n]);return t};const aM={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};oM({linear:HT},aM);const A1=t=>t?t.trim().replace(/\s+/g," ").toLowerCase():"",W2=t=>{const e=new URLSearchParams;for(const n of Object.keys(t).sort()){const s=t[n];if(s==null)continue;const r=Array.isArray(s)?s:[s];for(const i of r)i!=null&&e.append(n,String(i))}return e.toString()},lM=t=>{const e={};if(!t)return e;const n=new URLSearchParams(t.startsWith("?")?t.slice(1):t);for(const[s,r]of n.entries())e[s]=e[s]===void 0?r:[].concat(e[s],r);return e},CI=t=>{const e=W2(t);return e?`?${e}`:""},uM=Ze({__name:"Search",setup(t){const e=is(),n=ae(!1),s=ae(""),r=ae(null),i=ae();XT(r,()=>n.value=!1);const o=()=>{var l;const a=A1(s.value);!a||(n.value=!1,e.push({path:"/videos",query:{q:a}}),(l=i.value)==null||l.blur())};return ct(()=>n.value,()=>{n.value&&requestAnimationFrame(()=>{var a;return(a=i.value)==null?void 0:a.focus()})}),ct(()=>e.currentRoute.value,a=>{a.name!=="videos"&&(s.value="")}
129),(a,l)=>(w(),C("form",{ref_key:"el",ref:r,onSubmit:It(o,["prevent"]),onClick:l[1]||(l[1]=u=>n.value=!0),class:Qe(["flex gap-3 p-1 rounded-md border-2 border-transparent bg-zinc-800",{"!border-blue-500":n.value}])},[T(Pe,{name:"search",class:"h-5 w-5 text-zinc-300 mt-0.5"}),vt(f("input",{ref_key:"input",ref:i,type:"search","onUpdate:modelValue":l[0]||(l[0]=u=>s.value=u),placeholder:"Search ...",class:"flex-1 bg-transparent focus-visible:outline-none w-[5rem]"},null,512),[[pa,s.value]])],34))}}),cM={class:"flex justify-between"},dM={class:"flex flex-col gap-2.5 mt-3 pb-20"},fM={class:"grid grid-cols-4 gap-2"},hM={class:"grid grid-cols-2 gap-2"},pM=Ze({__name:"Sidebar",setup(t){const e=Oa(),n=Cn(()=>Ae(()=>Promise.resolve().then(()=>mi),void 0,import.meta.url)),s=ae(!1),r=ae(!1),i=is(),{user:o,isAuthorized:a}=gs(Xe()),l=[{name:"Home",path:"/",routes:[],protected:!1},{name:"Videos",path:"/videos",routes:["videos","watch"],protected:!1},{name:"Tags",path:"/tags",routes:["tags","tag"],protected:!1},{name:"Creators",path:"/creators",routes:["creators","user"],protected:!1},{name:"Performers",path:"/performers",routes:["performers","performer"],protected:!1},{name:Xe().isProduction?"FaptapAI":"DemoAI",path:"/faptapai",routes:["faptapai"],protected:!1,hideFromUsers:!0},{name:Xe().isProduction?"FaptapAI":"DemoAI",path:"/funscripts",routes:["funscripts","funscript-watch"],protected:!0}],u=Ne(()=>{const p=l.find(g=>g.routes.includes(e.name));return p||l.find(g=>!g.routes.length)});ct(()=>s.value,p=>{const g="overflow-hidden",v=document.querySelector("html");p?v.classList.add(g):v.classList.remove(g)}),ct(()=>i.currentRoute.value.path,()=>{s.value=!1});const c=Xe(),{authDialog:d}=gs(Ns());return(p,g)=>{const v=fr("router-link");return w(),C("div",null,[f("button",{class:"p-2",onClick:g[0]||(g[0]=b=>s.value=!0)},[T(Pe,{name:"burger",class:"h-8 w-8"})]),s.value?(w(),C("div",{key:0,class:"fixed inset-0 bg-black/60 z-40",onClick:g[1]||(g[1]=b=>s.value=!1)})):oe("",!0),f("div",{class:Qe(["w-[85vw] h-screen bg-zinc-900 fixed inset-0 z-50 p-4 transition-transform overflow-y-auto",{"translate-x-[-85vw]":!s.value}])},[f("div",cM,[T(y(n),{src:y(Xe)().isProduction?"/logo.white.svg":"/tech_device.webp",alt:"FapTap Logo",class:"h-6 w-auto shrink-0","object-fit":"contain","aspect-ratio":"988 / 240"},null,8,["src"]),f("button",{onClick:g[2]||(g[2]=b=>s.value=!1)},[T(Pe,{name:"close",class:"h-7 w-7"})])]),f("div",dM,[(w(),C(Ve,null,Bt(l,b=>(w(),C(Ve,{key:b.path},[b.name==="Videos"?(w(),C("button",{key:0,onClick:g[3]||(g[3]=k=>r.value=!r.value),class:Qe(["rounded-lg p-3 text-left",u.value===b?"bg-zinc-700":"bg-zinc-800/50"])},ce(b.name),3)):vt((w(),pe(v,{key:1,to:b.path,onClick:g[4]||(g[4]=k=>s.value=!1),class:Qe(["rounded-lg p-3",u.value===b?"bg-zinc-700":"bg-zinc-800/50"])},{default:V(()=>[N(ce(b.name),1)]),_:2},1032,["to","class"])),[[kt,y(a)?!b.hideFromUsers:!b.protected]])],64))),64)),T(xa,{modelValue:r.value,"onUpdate:modelValue":g[11]||(g[11]=b=>r.value=b)},{default:V(()=>[T(Le,{active:p.$route.path==="/videos"},{default:V(()=>[T(v,{to:"/videos",class:"block w-full",onClick:g[5]||(g[5]=b=>{r.value=!1,s.value=!1})},{default:V(()=>[...g[17]||(g[17]=[N(" All Videos ",-1)])]),_:1})]),_:1},8,["active"]),T(Le,{active:p.$route.path==="/videos/best"},{default:V(()=>[T(v,{to:"/videos/best",class:"block w-full",onClick:g[6]||(g[6]=b=>{r.value=!1,s.value=!1})},{default:V(()=>[...g[18]||(g[18]=[N(" Best ",-1)])]),_:1})]),_:1},8,["active"]),T(Le,{active:p.$route.path==="/videos/frenzy"},{default:V(()=>[T(v,{to:"/videos/frenzy",class:"block w-full",onClick:g[7]||(g[7]=b=>{r.value=!1,s.value=!1})},{default:V(()=>[...g[19]||(g[19]=[N(" Frenzy ",-1)])]),_:1})]),_:1},8,["active"]),T(Le,{active:p.$route.path==="/videos/trending"},{default:V(()=>[T(v,{to:"/videos/trending",class:"block w-full",onClick:g[8]||(g[8]=b=>{r.value=!1,s.value=!1})},{default:V(()=>[...g[20]||(g[20]=[N(" Trending ",-1)])]),_:1})]),_:1},8,["active"]),T(Le,{active:p.$route.path==="/videos/underrated"},{default:V(()=>[T(v,{to:"/videos/underrated",class:"block w-full",onClick:g[9]||(g[9]=b=>{r.value=!1,s.value=!1})},{default:V(()=>[...g[21]||(g[21]=[N(" Underrated ",-1)])]),_:1})]),_:1},8,["active"]),T(Le,{active:p.$route.path==="/playlists"},{default:V(()=>[T(v,{to:"/playlists",class:"block w-full",onClick:g[10]||(g[10]=b=>{r.value=!1,s.value=!1})},{default:V(()=>[...g[22]||(g[22]=[N(" Playlists ",-1)])]),_:1})]),_:1},8,["active"])]),_:1},8,["modelValue"]),T(v,{to:"/p",class:"rounded-lg p-3 bg-zinc-800/50"},{default:V(()=>[...g[23]||(g[23]=[N(" Toys ",-1)])]),_:1}),y(c).isAuthorized?oe("",!0):(w(),C(Ve,{key:0},[g[24]||(g[24]=f("hr",{class:"my-2 border-zinc-800"},null,-1)),f("button",{class:"bg-blue-500 rounded-lg p-3",onClick:g[12]||(g[12]=b=>d.value=!0)}," Sign Up / Log In ")],64)),y(c).isAuthorized?(w(),pe(V2,{key:1})):oe("",!0),g[25]||(g[25]=f("hr",{class:"my-2 border-zinc-800"},null,-1)),g[26]||(g[26]=f("p",{class:"text-zinc-400 text-sm ml-1"},"Orientation",-1)),f("div",fM,[T(ze,{onClick:g[13]||(g[13]=b=>y(c).setOrientation(null)),theme:y(c).getOrientation()===void 0?"blue":void 0,class:"flex items-center justify-center p-3"},{default:V(()=>[T(Pe,{name:"infinity",class:"h-6 w-6"})]),_:1},8,["theme"]),T(ze,{onClick:g[14]||(g[14]=b=>y(c).setOrientation(y(Et).Straight)),theme:y(c).getOrientation()===y(Et).Straight?"blue":void 0,class:"flex items-center justify-center p-3"},{default:V(()=>[T(Pe,{name:"orientation-straight",class:"h-6 w-6"})]),_:1},8,["theme"]),T(ze,{onClick:g[15]||(g[15]=b=>y(c).setOrientation(y(Et).Transgender)),theme:y(c).getOrientation()===y(Et).Transgender?"blue":void 0,class:"flex items-center justify-center p-3"},{default:V(()=>[T(Pe,{name:"orientation-transgender",class:"h-6 w-6"})]),_:1},8,["theme"]),T(ze,{onClick:g[16]||(g[16]=b=>y(c).setOrientation(y(Et).Gay)),theme:y(c).getOrientation()===y(Et).Gay?"blue":void 0,class:"flex items-center justify-center p-3"},{default:V(()=>[T(Pe,{name:"orientation-gay",class:"h-6 w-6"})]),_:1},8,["theme"])]),g[27]||(g[27]=f("hr",{class:"my-2 border-zinc-800"},null,-1)),g[28]||(g[28]=f("p",{class:"text-zinc-400 text-sm ml-1"},"Community",-1)),f("div",hM,[T(ze,{href:"https://discord.gg/rTk6ehTnRT",class:"flex items-center justify-center p-3"},{default:V(()=>[T(Pe,{name:"discord",class:"h-6 w-6"})]),_:1}),T(ze,{href:"https://twitter.com/faptapnet",class:"flex items-center justify-center p-3"},{default:V(()=>[T(Pe,{name:"twitter",class:"h-6 w-6 text-white"})]),_:1})])])],2)])}}}),gM={class:"mr-3 flex h-11 flex-1 items-center gap-3 rounded-xl border border-zinc-700 bg-zinc-800 px-3"},vM={key:0,class:"text-white/80 transition-colors hover:text-white"},mM=Ze({__name:"MobileSearch",setup(t){const e=ae(""),n=ae(!1),s=ae(0),r=is(),i=ae(),o=()=>{const l=document.getElementById("notification-bar");s.value=l?l.getBoundingClientRect().height:0},a=()=>{const l=A1(e.value);!l||(r.push({path:"/videos",query:{q:l}}),n.value=!1)};return ct(()=>n.value,l=>{const u="overflow-hidden",c=document.querySelector("html");l?(o(),window.addEventListener("resize",o),c.classList.add(u),requestAnimationFrame(()=>{var d;return(d=i.value)==null?void 0:d.focus()})):(window.removeEventListener("resize",o),c.classList.remove(u))}),Ta(()=>{window.removeEventListener("resize",o)}),(l,u)=>(w(),C("div",null,[f("button",{class:"p-1",onClick:u[0]||(u[0]=c=>n.value=!0)},[T(Pe,{name:"search",class:"h-7 w-7"})]),n.value?(w(),C("div",{key:0,class:"mobile-search-overlay fixed inset-x-0 bottom-0 z-[80] flex flex-col bg-black/60 text-white backdrop-blur-sm",style:ms({top:`${s.value}px`}),onClick:u[5]||(u[5]=c=>n.value=!1)},[f("div",{class:"mobile-search-bar flex items-center border-b border-zinc-800 bg-zinc-900 px-1 py-1.5",onClick:u[4]||(u[4]=It(()=>{},["stop"]))},[f("button",{class:"rounded-lg p-3 transition-colors hover:bg-zinc-800",onClick:u[1]||(u[1]=c=>n.value=!1)},[T(Pe,{name:"arrow-left",class:"h-6 w-6"})]),f("div",gM,[f("form",{onSubmit:It(a,["prevent"]),class:"flex-1"},[vt(f("input",{"onUpdate:modelValue":u[2]||(u[2]=c=>e.value=c),ref_key:"input",ref:i,placeholder:"Search FapTap",type:"search",class:"w-full bg-transparent text-base text-white placeholder:text-zinc-400 focus-visible:outline-none"},null,512),[[pa,e.value]])],32),e.value.length?(w(),C("button",vM,[T(Pe,{onClick:u[3]||(u[3]=c=>{e.value="",i.value.focus()}),name:"close",class:"h-6 w-6"})])):oe("",!0)])])],4)):oe("",!0)]))}});const _M=An(mM,[["__scopeId","data-v-a1d42ade"]]),L1=Ze({__name:"Scroller",props:{gap:{},showMobileArrows:{type:Boolean,default:!0}},setup(t){const e=ae(),n=ae(),s=ae({left:!1,right:!1}),r=()=>{if(!n.value)return;const l=n.value.scrollWidth,u=n.value.clientWidth,c=Math.ceil(n.value.scrollLeft);s.value.right=l>u&&u+c<l-2,s.value.left=c>2},i=l=>{if(!n.value)return;let u=n.value.offsetWidth*.8;l==="left"&&(u*=-1),n.value.scrollBy({left:u,behavior:"smooth"})};let o=null,a=null;return zn(()=>{n.value&&(n.value.addEventListener("scroll",r,{passive:!0}),o=new ResizeObserver(r),o.observe(n.value),a=new MutationObserver(r),a.observe(n.value,{childList:!0,subtree:!0,characterData:!0}
129)),e.value&&o&&o.observe(e.value),window.addEventListener("resize",r,{passive:!0}),Hr(()=>{r()}),setTimeout(r,150),setTimeout(r,500)}),Bs(()=>{n.value&&n.value.removeEventListener("scroll",r),window.removeEventListener("resize",r),o==null||o.disconnect(),a==null||a.disconnect()}),(l,u)=>(w(),C("div",{class:"relative w-full min-w-0 max-w-full",ref_key:"root",ref:e},[vt(f("button",{type:"button",onClick:u[0]||(u[0]=It(c=>i("left"),["prevent","stop"])),class:Qe([t.showMobileArrows!==!1?"flex":"hidden lg:flex","absolute p-1 rounded-full bg-zinc-800/90 text-white z-20 left-3 lg:left-2 top-1/2 -translate-y-1/2 items-center justify-center shadow-lg active:scale-[0.98] transition-transform hover:bg-zinc-700"])},[T(Pe,{name:"chevron-left",class:"h-6 w-6 lg:h-8 lg:w-8"})],2),[[kt,s.value.left]]),f("div",{class:"scroller w-full min-w-0 max-w-full",ref_key:"container",ref:n},[f("div",{class:Qe(["scroller-content flex items-center shrink-0 w-max min-w-full",t.gap])},[hi(l.$slots,"default")],2)],512),vt(f("button",{type:"button",onClick:u[1]||(u[1]=It(c=>i("right"),["prevent","stop"])),class:Qe([t.showMobileArrows!==!1?"flex":"hidden lg:flex","absolute p-1 rounded-full bg-zinc-800/90 text-white z-20 right-1 lg:right-2 top-1/2 -translate-y-1/2 items-center justify-center shadow-lg active:scale-[0.98] transition-transform hover:bg-zinc-700"])},[T(Pe,{name:"chevron-right",class:"h-6 w-6 lg:h-8 lg:w-8"})],2),[[kt,s.value.right]])],512))}});const yM={viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},bM={fill:"currentColor"},wM={fill:"currentColor",d:"M12 5.5C12 3.567 10.433 2 8.5 2C6.567 2 5 3.567 5 5.5H12ZM5 18.5C5 20.433 6.567 22 8.5 22C10.433 22 12 20.433 12 18.5H5ZM20 13.5C20 11.567 18.433 10 16.5 10C14.567 10 13 11.567 13 13.5H20ZM13 18.5V22H20V18.5H13ZM5 5.5V18.5H12V5.5H5ZM13 13.5V18.5H20V13.5H13Z"},xM=Ze({__name:"HandyLogo",props:{loading:{type:Boolean}},setup(t){return(e,n)=>(w(),C("svg",yM,[vt(f("path",bM,[...n[0]||(n[0]=[f("animate",{attributeName:"d",dur:"1s",values:"M12 5.5C12 3.567 10.433 2 8.5 2C6.567 2 5 3.567 5 5.5H12ZM5 18.5C5 20.433 6.567 22 8.5 22C10.433 22 12 20.433 12 18.5H5ZM20 13.5C20 11.567 18.433 10 16.5 10C14.567 10 13 11.567 13 13.5H20ZM13 18.5V22H20V18.5H13ZM5 5.5V18.5H12V5.5H5ZM13 13.5V18.5H20V13.5H13Z; M12 13.5C12 11.567 10.433 10 8.5 10C6.567 10 5 11.567 5 13.5H12ZM5 18.5C5 20.433 6.567 22 8.5 22C10.433 22 12 20.433 12 18.5H5ZM20 5.5C20 3.567 18.433 2 16.5 2C14.567 2 13 3.567 13 5.5H20ZM13 18.5V22H20V18.5H13ZM5 13.5V18.5H12V13.5H5ZM13 5.5V18.5H20V5.5H13Z; M12 5.5C12 3.567 10.433 2 8.5 2C6.567 2 5 3.567 5 5.5H12ZM5 18.5C5 20.433 6.567 22 8.5 22C10.433 22 12 20.433 12 18.5H5ZM20 13.5C20 11.567 18.433 10 16.5 10C14.567 10 13 11.567 13 13.5H20ZM13 18.5V22H20V18.5H13ZM5 5.5V18.5H12V5.5H5ZM13 13.5V18.5H20V13.5H13Z",repeatCount:"indefinite",calcMode:"spline",keySplines:"0.65 0.05 0.03 1;0.65 0.05 0.03 1"},null,-1)])],512),[[kt,t.loading]]),vt(f("path",wM,null,512),[[kt,!t.loading]])]))}}),CM={class:"flex items-center lg:gap-1 border-b border-zinc-800 px-2 lg:px-8 py-0.5 lg:py-0 overflow-x-hidden min-h-[64px]"},kM={class:"flex items-center mr-[20px] shrink-0"},SM=["src"],EM={class:"absolute w-full bottom-0 left-0 h-[3px] bg-blue-500"},AM=["href","onClick"],LM={class:"absolute w-full bottom-0 left-0 h-[3px] bg-blue-500"},TM={class:"absolute w-full bottom-0 left-0 h-[3px] bg-blue-500"},MM={class:"py-1.5"},OM=["href"],PM={class:"flex justify-end gap-x-2 items-center z-10 flex-1"},$M={class:"hidden lg:block"},RM={class:"py-1.5"},VM={class:"hidden md:flex gap-x-2"},IM={href:"https://discord.gg/rTk6ehTnRT"},HM={href:"https://twitter.com/faptapnet"},FM={key:1,class:"hidden lg:block"},DM=Ze({__name:"Header",setup(t){Cn(()=>Ae(()=>Promise.resolve().then(()=>mi),void 0,import.meta.url));const{isMobile:e}=vi(),{authDialog:n}=gs(Ns()),{devices:s,ui:r,connecting:i,adtoys:o}=gs(_1()),{isAuthorized:a}=gs(Xe()),l=Oa(),u=is(),c=Xe(),d=ae(!1),p=ae(!1),g=ae(!1),v=ae(null),b=ae(!1),k=[{name:"Home",path:"/",routes:[],protected:!1},{name:"Videos",path:"/videos",routes:["videos","watch"],protected:!1},{name:"Tags",path:"/tags",routes:["tags","tag"],protected:!1},{name:"Creators",path:"/creators",routes:["creators","user"],protected:!1},{name:"Performers",path:"/performers",routes:["performers","performer"],protected:!1},{name:Xe().isProduction?"FaptapAI":"DemoAI",path:"/faptapai",routes:["faptapai"],protected:!1,hideFromUsers:!0},{name:Xe().isProduction?"FaptapAI":"DemoAI",path:"/funscripts",routes:["funscripts","funscript-watch"],protected:!0}],L=async()=>{const m=await dt.videos.getVideo("random");u.push(`/v/${m.id}`)},E=Ne(()=>{const m=k.find(x=>x.routes.includes(l.name));return m||k.find(x=>!x.routes.length)}),_=Ne(()=>k.filter(m=>m.name!=="Home"&&m.name!=="Videos"));return(m,x)=>{var h,S;const A=fr("router-link");return w(),C("div",CM,[T(pM,{class:"lg:hidden -ml-2"}),f("div",kM,[T(A,{to:"/",class:"inline-block shrink-0 items-center"},{default:V(()=>[f("img",{src:y(Xe)().isProduction?"/logo.white.svg":"/tech_device.webp",class:"h-7 w-auto object-contain",alt:"FapTap",aspectRatio:"auto"},null,8,SM)]),_:1})]),T(uM,{onMouseleave:x[0]||(x[0]=$=>g.value=!1),class:"hidden lg:flex shrink-0 pt-1.5"}),T(L1,{gap:"gap-3",class:"text-zinc-300 hidden lg:flex ml-3 justify-end"},{default:V(()=>{var $;return[T(A,{onMouseleave:x[1]||(x[1]=R=>g.value=!1),to:"/",class:"h-16 block relative flex items-center justify-center group"},{default:V(()=>{var R,G;return[f("span",{class:Qe(["group-hover:text-blue-500",((R=E.value)==null?void 0:R.name)==="Home"?"text-white":"text-zinc-400"])}," Home ",2),vt(f("div",EM,null,512),[[kt,((G=E.value)==null?void 0:G.name)==="Home"]])]}),_:1}),T(A,{to:"/videos",custom:""},{default:V(({href:R,navigate:G})=>{var H,ee;return[f("a",{href:R,onClick:G,ref_key:"videosBtn",ref:v,onMouseenter:x[2]||(x[2]=j=>g.value=!0),class:"h-16 relative flex items-center justify-center group cursor-pointer text-zinc-400"},[f("span",{class:Qe(["group-hover:text-blue-500",((H=E.value)==null?void 0:H.name)==="Videos"?"text-white":"text-zinc-400"])}," Videos ",2),vt(f("div",LM,null,512),[[kt,((ee=E.value)==null?void 0:ee.name)==="Videos"]])],40,AM)]}),_:1}),(w(),pe(ps(y(e)?xa:Mr),{modelValue:g.value,"onUpdate:modelValue":x[8]||(x[8]=R=>g.value=R),placement:"bottom",target:v.value,class:"text-white text-sm py-1",offset:8},{default:V(()=>[T(Le,{active:m.$route.path==="/videos/best"},{default:V(()=>[T(A,{to:"/videos/best",class:"block w-full",onClick:x[3]||(x[3]=R=>g.value=!1)},{default:V(()=>[...x[23]||(x[23]=[N(" Best ",-1)])]),_:1})]),_:1},8,["active"]),T(Le,{active:m.$route.path==="/videos/frenzy"},{default:V(()=>[T(A,{to:"/videos/frenzy",class:"block w-full",onClick:x[4]||(x[4]=R=>g.value=!1)},{default:V(()=>[...x[24]||(x[24]=[N(" Frenzy ",-1)])]),_:1})]),_:1},8,["active"]),T(Le,{active:m.$route.path==="/videos/trending"},{default:V(()=>[T(A,{to:"/videos/trending",class:"block w-full",onClick:x[5]||(x[5]=R=>g.value=!1)},{default:V(()=>[...x[25]||(x[25]=[N(" Trending ",-1)])]),_:1})]),_:1},8,["active"]),T(Le,{active:m.$route.path==="/videos/underrated"},{default:V(()=>[T(A,{to:"/videos/underrated",class:"block w-full",onClick:x[6]||(x[6]=R=>g.value=!1)},{default:V(()=>[...x[26]||(x[26]=[N(" Underrated ",-1)])]),_:1})]),_:1},8,["active"]),T(Le,{active:m.$route.path==="/playlists"},{default:V(()=>[T(A,{to:"/playlists",class:"block w-full",onClick:x[7]||(x[7]=R=>g.value=!1)},{default:V(()=>[...x[27]||(x[27]=[N(" Playlists ",-1)])]),_:1})]),_:1},8,["active"])]),_:1},8,["modelValue","target"])),(w(!0),C(Ve,null,Bt(_.value,R=>vt((w(),pe(A,{onMouseleave:x[9]||(x[9]=G=>g.value=!1),key:R.path,to:R.path,class:"h-16 block relative flex items-center justify-center group"},{default:V(()=>[f("span",{class:Qe(["group-hover:text-blue-500",E.value===R?"text-white":"text-zinc-400"])},ce(R.name),3),vt(f("div",TM,null,512),[[kt,E.value===R]])]),_:2},1032,["to"])),[[kt,y(a)?!R.hideFromUsers:!R.protected]])),128)),f("div",{class:"h-16 flex items-center",onMouseenter:x[11]||(x[11]=R=>
129p.value=!0),onMouseleave:x[12]||(x[12]=R=>p.value=!1)},[T(A,{ref:"toyad",to:"/p",class:"h-16 flex items-center"},{default:V(()=>[...x[28]||(x[28]=[f("span",{class:"text-zinc-400 font-normal"},"Toys",-1)])]),_:1},512),T(Mr,{modelValue:p.value,"onUpdate:modelValue":x[10]||(x[10]=R=>p.value=R),target:($=m.$refs.toyad)==null?void 0:$.$el,offset:4,teleport:!1},{default:V(()=>[f("div",MM,[(w(!0),C(Ve,null,Bt(y(o),R=>(w(),pe(Le,null,{default:V(()=>[f("a",{href:`/p?p=${R.bloglink}`},ce(R.name),9,OM)]),_:2},1024))),256))])]),_:1},8,["modelValue","target"])],32),T(ze,{onClick:L,onMouseenter:x[13]||(x[13]=R=>b.value=!0),theme:"transparent"},{default:V(()=>[T(Pe,{class:"h-5 w-5",name:"random"})]),_:1})]}),_:1}),f("div",PM,[y(a)?(w(),C("div",FM,[T(V2)])):(w(),C(Ve,{key:0},[f("div",$M,[T(ze,{title:"Orientation",ref:"orientation",onClick:x[14]||(x[14]=$=>d.value=!d.value),theme:"transparent",class:"flex gap-1.5 items-center"},{default:V(()=>[T(Pe,{class:"h-5 w-5",name:y(c).getOrientationIcon()},null,8,["name"])]),_:1},512),T(Mr,{modelValue:d.value,"onUpdate:modelValue":x[19]||(x[19]=$=>d.value=$),target:(h=m.$refs.orientation)==null?void 0:h.$el,offset:8},{default:V(()=>[f("div",RM,[T(Le,{active:y(c).getOrientation()===void 0,icon:"infinity",onClick:x[15]||(x[15]=$=>y(c).setOrientation(null))},{default:V(()=>[...x[29]||(x[29]=[N(" All Videos ",-1)])]),_:1},8,["active"]),T(Le,{active:y(c).getOrientation()===y(Et).Straight,icon:"orientation-straight",onClick:x[16]||(x[16]=$=>y(c).setOrientation(y(Et).Straight))},{default:V(()=>[...x[30]||(x[30]=[N(" Straight ",-1)])]),_:1},8,["active"]),T(Le,{active:y(c).getOrientation()===y(Et).Transgender,icon:"orientation-transgender",onClick:x[17]||(x[17]=$=>y(c).setOrientation(y(Et).Transgender))},{default:V(()=>[...x[31]||(x[31]=[N(" Transgender ",-1)])]),_:1},8,["active"]),T(Le,{active:y(c).getOrientation()===y(Et).Gay,icon:"orientation-gay",onClick:x[18]||(x[18]=$=>y(c).setOrientation(y(Et).Gay))},{default:V(()=>[...x[32]||(x[32]=[N(" Gay ",-1)])]),_:1},8,["active"])])]),_:1},8,["modelValue","target"])]),f("div",VM,[f("a",IM,[T(Pe,{class:"h-5 w-5",name:"discord"})]),f("a",HM,[T(Pe,{class:"h-5 w-5",name:"twitter"})])]),T(ze,{class:"hidden md:block shrink-0",onClick:x[20]||(x[20]=$=>n.value=!0)},{default:V(()=>[...x[33]||(x[33]=[N(" Log In ",-1)])]),_:1})],64)),T(_M,{class:"lg:hidden"}),T(ze,{ref:"el",class:"flex items-center gap-x-1.5 shrink-0",theme:y(s).length?"green":"blue",onClick:x[21]||(x[21]=$=>y(r).open=!y(r).open)},{default:V(()=>[T(xM,{loading:y(i),class:"h-5 w-5 text-white mx-auto"},null,8,["loading"]),f("span",null,ce(y(s).length?"Connected":"Connect"),1)]),_:1},8,["theme"]),(w(),pe(ps(y(e)?xa:Mr),{placement:"bottom-end",modelValue:y(r).open,"onUpdate:modelValue":x[22]||(x[22]=$=>y(r).open=$),target:(S=m.$refs.el)==null?void 0:S.$el,offset:8,class:"py-1"},{default:V(()=>[T(PT)]),_:1},8,["modelValue","target"]))])])}}});const BM={class:"bg-zinc-900 border-t border-zinc-800 text-zinc-400 text-sm"},NM={class:"max-w-[1570px] mx-auto px-4 lg:px-8 py-12"},jM={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8"},UM={class:"flex flex-col gap-4"},zM={class:"text-white font-bold text-xl"},qM={class:"text-zinc-500 mb-2"},WM={class:"flex gap-4"},GM={href:"https://x.com/faptapnet",target:"_blank",rel:"noopener noreferrer",class:"hover:text-white transition-colors"},ZM={href:"https://discord.gg/rTk6ehTnRT",target:"_blank",rel:"noopener noreferrer",class:"hover:text-white transition-colors"},KM={class:"flex flex-col gap-3"},YM={class:"flex flex-col gap-3"},XM={class:"flex flex-col gap-3"},JM={class:"mt-12 pt-8 border-t border-zinc-800 flex flex-col md:flex-row justify-between items-center gap-4"},QM={class:"text-xs"},eO={class:"flex items-center gap-6"},tO={href:"https://theporndude.com/",target:"_blank",rel:"nofollow",class:"hover:text-white transition-colors text-xs"},nO=Ze({__name:"Footer",setup(t){const e=Cn(()=>Ae(()=>Promise.resolve().then(()=>mi),void 0,import.meta.url));return(n,s)=>{const r=fr("router-link");return w(),C("footer",BM,[f("div",NM,[f("div",jM,[f("div",UM,[T(r,{to:"/",class:"flex items-center gap-2"},{default:V(()=>[T(Pe,{name:y(Xe)().isProduction?"faptap":"status",class:"h-5 w-5"},null,8,["name"]),f("span",zM,ce(y(Xe)().isProduction?"FapTap":"Staging"),1)]),_:1}),f("p",qM,ce(y(Xe)().isProduction?"The largest interactive adult platform. Connect, play funscripts instantly\u2014in your browser.":"Staging version"),1),f("div",WM,[f("a",GM,[s[0]||(s[0]=f("span",{class:"sr-only"},"X",-1)),T(Pe,{name:"x",class:"h-5 w-5"})]),f("a",ZM,[s[1]||(s[1]=f("span",{class:"sr-only"},"Discord",-1)),T(Pe,{name:"discord",class:"h-5 w-5"})])])]),f("div",KM,[s[6]||(s[6]=f("div",{class:"text-white font-semibold mb-1"},"Info",-1)),T(r,{to:"/about",class:"hover:text-white transition-colors"},{default:V(()=>[...s[2]||(s[2]=[N("About",-1)])]),_:1}),T(r,{to:"/p",class:"hover:text-white transition-colors"},{default:V(()=>[...s[3]||(s[3]=[N("Compatible Toys",-1)])]),_:1}),T(r,{to:"/advertising",class:"hover:text-white transition-colors"},{default:V(()=>[...s[4]||(s[4]=[N("Advertising",-1)])]),_:1}),T(r,{to:"/become-a-creator",class:"hover:text-white transition-colors"},{default:V(()=>[...s[5]||(s[5]=[N("Become a Creator",-1)])]),_:1})]),f("div",YM,[s[13]||(s[13]=f("div",{class:"text-white font-semibold mb-1"},"Legal",-1)),T(r,{to:"/terms-of-service",class:"hover:text-white transition-colors"},{default:V(()=>[...s[7]||(s[7]=[N("Terms of Service",-1)])]),_:1}),T(r,{to:"/creator-content-guidelines",class:"hover:text-white transition-colors"},{default:V(()=>[...s[8]||(s[8]=[N("Content Guidelines",-1)])]),_:1}),T(r,{to:"/privacy-policy",class:"hover:text-white transition-colors"},{default:V(()=>[...s[9]||(s[9]=[N("Privacy Policy",-1)])]),_:1}),T(r,{to:"/cookie-policy",class:"hover:text-white transition-colors"},{default:V(()=>[...s[10]||(s[10]=[N("Cookie Policy",-1)])]),_:1}),T(r,{to:"/dmca",class:"hover:text-white transition-colors"},{default:V(()=>[...s[11]||(s[11]=[N("DMCA Policy",-1)])]),_:1}),T(r,{to:"/2257",class:"hover:text-white transition-colors"},{default:V(()=>[...s[12]||(s[12]=[N("2257 Statement",-1)])]),_:1})]),f("div",XM,[s[18]||(s[18]=f("div",{class:"text-white font-semibold mb-1"},"Help",-1)),T(r,{to:"/faq",class:"hover:text-white transition-colors"},{default:V(()=>[...s[14]||(s[14]=[N("FAQ",-1)])]),_:1}),T(r,{to:"/support",class:"hover:text-white transition-colors"},{default:V(()=>[...s[15]||(s[15]=[N("Support",-1)])]),_:1}),T(r,{to:"/how-to-upload-a-script",class:"hover:text-white transition-colors"},{default:V(()=>[...s[16]||(s[16]=[N("How to Upload a Script",-1)])]),_:1}),T(r,{to:"/contact",class:"hover:text-white transition-colors"},{default:V(()=>[...s[17]||(s[17]=[N("Contact",-1)])]),_:1})])]),f("div",JM,[f("div",QM," \xA9 "+ce(new Date().getFullYear())+" "+ce(y(Xe)().isProduction?"FapTap":"Staging"),1),f("div",eO,[f("a",tO,ce(y(Xe)().isProduction?"ThePornDude":"Staging"),1),T(r,{to:"/responsible-access",class:"flex items-center hover:opacity-80 transition-opacity"},{default:V(()=>[T(y(e),{src:"/rta-logo.webp",alt:"Restricted to Adults",class:"h-8 w-auto",width:"64",height:"32","object-fit":"contain","aspect-ratio":"2 / 1"})]),_:1})])]),s[19]||(s[19]=f("div",{class:"mt-6 mb-6 flex flex-col space-y-4"},[f("div",{class:"text-xs text-zinc-500"},[f("strong",null,"18 U.S.C. \xA72257 Exemption Statement."),N(' All content appearing on this website is provided by third-party users. Faptap does not produce any video content and its involvement is limited to the transmission, storage, retrieval, hosting, and formatting of user-submitted video content without selection or alteration, within the meaning of 18 U.S.C. \xA72257(h)(2)(B)(v) and 28 C.F.R. \xA775.1(c)(4). Faptap is therefore not a "producer," primary or secondary, of any depicted content and is exempt from the record-keeping requirements of 18 U.S.C. \xA72257. ')]),f("div",{class:"text-xs text-zinc-500"}," All users who upload video content certify under penalty of perjury that all persons depicted were at least 18 years of age at the time of creation and that records required by 18 U.S.C. \xA72257 and 28 C.F.R. Part 75 are maintained by the applicable producer's custodian of records. ")],-1))])])}}}),sO=["href","data-ad-id"],rO=["src"],wf=Ze({__name:"Affiliate",props:{affiliate:{}},setup(t){const e=Cn(()=>Ae(()=>Promise.resolve().then(()=>mi),void 0,import.meta.url)),n=t,s=Xe(),r=Ne(()=>s.isProduction),i=Ne(()=>{var c,d;return(d=(c=n.affiliate)==null?void 0:c.url)!=null?d:""}),o=()=>{var d;const c=(d=n.affiliate)==null?void 0:d.id;
129!c||dt.ads.recordEvent(c,"click").catch(()=>{})},a=ae(null);let l=!1,u=null;return zn(()=>{const c=n.affiliate,d=c==null?void 0:c.id;!d||!a.value||(u=new IntersectionObserver(p=>{if(l)return;const g=p[0];g.isIntersecting&&g.intersectionRatio>=.5&&(l=!0,dt.ads.recordEvent(d,"impression").catch(()=>{}),u==null||u.disconnect())},{threshold:.5}),u.observe(a.value))}),Bs(()=>{u==null||u.disconnect()}),(c,d)=>{var p,g,v,b;return n.affiliate?(w(),C("a",{key:0,href:i.value,target:"_blank",rel:"noopener noreferrer nofollow sponsored",class:"group block bg-zinc-800 cursor-pointer","data-ad-id":(p=n.affiliate)==null?void 0:p.id,ref_key:"adEl",ref:a,onClick:o},[(g=n.affiliate)!=null&&g.image?(w(),pe(y(e),{key:0,src:r.value?n.affiliate.image:"/tech_device.webp",alt:((v=n.affiliate)==null?void 0:v.name)||"Affiliate",class:"h-full w-full transition-all group-hover:scale-[1.01] group-hover:brightness-[1.15] object-cover",width:"600",height:"400"},null,8,["src","alt"])):(b=n.affiliate)!=null&&b.video?(w(),C("video",{key:1,src:r.value?n.affiliate.video:"/video.webm",autoplay:"",muted:"",loop:"",playsinline:"",class:"aspect-video object-cover rounded-md overflow-hidden h-full bg-zinc-800 shadow"},null,8,rO)):oe("",!0)],8,sO)):oe("",!0)}}});function P0(t){if(!!t)return t.includes("affiliates")?t:t.includes("ads")?ci(t):t}function nd(t){return{id:t.id,url:t.affiliate_url,image:t.creative_type==="image"?P0(t.creative_url):void 0,video:t.creative_type==="video"?P0(t.creative_url):void 0,name:t.title}}const gu=ae([]),G2=ae([]),Z2=ae([]),kl=ae([]);let Ti=null,sd=!1;async function $0(t=!1){return Ti&&!t?Ti:sd?Ti||Promise.resolve():(sd=!0,Ti=(async()=>{try{const[e,n,s]=await Promise.all([dt.ads.getRotatedAds("top_banner",5),dt.ads.getRotatedAds("grid_banner",10),dt.ads.getRotatedAds("footer_banner",2)]);gu.value=e.map(nd),G2.value=[...gu.value],Z2.value=s.map(nd),kl.value=n.map(nd)}catch(e){console.warn("[useAffiliates] failed to fetch ads from API",e),Ti=null}finally{sd=!1}})(),Ti)}function K2(){const t=ae([]);ct(()=>kl.value.length>0?kl.value:gu.value,s=>{s.length>0?t.value=[...s]:t.value=[]},{immediate:!0,deep:!0});const e=kl;function n(s,r){const i=t.value;if(i.length!==0){if(s!==void 0){const a=(s+(r!==void 0?r:1))%i.length;return i[a]}return i[Math.floor(Math.random()*i.length)]}}return $0(),{affiliates:gu,shuffledAffiliates:G2,footervideoadb:Z2,gridAds:e,random:n,reload:()=>$0(!0)}}const iO={key:0,class:"text-red-500 text-sm -mt-1.5"},oO={key:1,class:"text-red-500 text-sm -mt-1.5"},aO={key:2,class:"text-sm text-center text-red-500"},lO={key:3,class:"text-sm text-center text-green-400"},uO=Ze({__name:"ChangePassword",setup(t){const e=Oa();is();const n=Xe(),s=Ns(),r=async()=>{n.setUser(null),s.changePassword=!1,s.authDialog=!0,window.location.href="/",o.value={}},i=Ds({fields:{newPassword:"",password:"",email:"",token:""},loadingpassword:!1}),o=ae({}),a=Zu().shape({email:ir().email().required("Required field. Please enter your email address.").test("has-tld","Please enter a valid email address",d=>{const[p,g]=d.split("@");return g!==void 0&&g.includes(".")}),password:ir().required("Required field. Please enter your password.").min(6,"Password too short. Please use 6 characters or more.").max(60,"Password can be at most 60 characters long."),newPassword:ir().required("Required field. Please enter your new password.").min(6,"New Password too short. Please use 6 characters or more.").max(60,"New password can be at most 60 characters long.")}),l=async d=>{try{await a.validateAt(d,i.fields),delete o.value[d]}catch(p){o.value[d]=p.errors[0]}},u=async()=>{try{await a.validate(i.fields,{abortEarly:!1}),o.value={}}catch(d){o.value=d.inner.reduce((p,g)=>(p[g.path]=g.message,p),{})}},c=async()=>{let d=e.params.email,p=e.params.token;if(i.fields.password!=i.fields.newPassword)return o.value.generalpassword="Password does not match",!0;if(d!=""&&p!=""&&p.length>=60){i.loadingpassword=!0;try{await u()}catch{i.loadingpassword=!1;return}try{await dt.user.changePassword(d,p,i.fields.newPassword),i.loadingpassword=!1,i.fields.newPassword="",i.fields.password="",o.value.success="Your password has been updated successfully.",o.value.generalpassword="",setTimeout(()=>{r()},2e3)}catch(g){o.value.generalpassword=g}finally{i.loadingpassword=!1}}else o.value.generalpassword="Invalid link"};return(d,p)=>(w(),C("form",{onSubmit:It(c,["prevent"]),class:"mt-3"}
129,[T(Wn,{required:"",modelValue:i.fields.password,"onUpdate:modelValue":p[0]||(p[0]=g=>i.fields.password=g),light:!0,placeholder:"New password",type:"password",class:"w-full",onBlur:p[1]||(p[1]=g=>l("password")),onInput:p[2]||(p[2]=g=>o.value.password&&l("password"))},null,8,["modelValue"]),o.value.password?(w(),C("span",iO,ce(o.value.password),1)):oe("",!0),T(Wn,{required:"",modelValue:i.fields.newPassword,"onUpdate:modelValue":p[3]||(p[3]=g=>i.fields.newPassword=g),light:!0,placeholder:"New password",type:"password",class:"w-full mt-2",onBlur:p[4]||(p[4]=g=>l("newPassword")),onInput:p[5]||(p[5]=g=>o.value.newPassword&&l("newPassword"))},null,8,["modelValue"]),o.value.newPassword?(w(),C("span",oO,ce(o.value.newPassword),1)):oe("",!0),T(ze,{loading:i.loadingpassword,theme:"blue",class:"mt-4 w-full"},{default:V(()=>[...p[6]||(p[6]=[N("Change Password",-1)])]),_:1},8,["loading"]),o.value.generalpassword?(w(),C("span",aO,ce(o.value.generalpassword),1)):oe("",!0),o.value.success?(w(),C("span",lO,ce(o.value.success),1)):oe("",!0)],32))}}),cO={class:"relative max-w-md w-full bg-zinc-900 rounded-lg shadow-2xl p-8 border border-zinc-800"},dO={class:"flex flex-col gap-3"},fO=Ze({__name:"AgeGate",emits:["verified"],setup(t,{emit:e}){const n=ae(!0),s=ae(!0);zn(()=>{const u=document.createElement("div").style;u.backdropFilter="blur(1px)",u.backdropFilter||(n.value=!1);const c=new Image;c.onerror=()=>{s.value=!1},c.src="/age-gate-bg.webp"}),Cn(()=>Ae(()=>Promise.resolve().then(()=>mi),void 0,import.meta.url));const r="FAPTAP_AGE_VERIFIED",i=e,o=async()=>{try{const l=new Date;l.setTime(l.getTime()+24*60*60*1e3);const u="; expires="+l.toUTCString();document.cookie=r+"=true"+u+"; path=/",window[r]=!0,i("verified")}catch(l){console.error(l)}},a=()=>{window.location.href="/exit.html"};return(l,u)=>(w(),C("div",{class:"fixed inset-0 z-[100] flex items-center justify-center bg-cover bg-center bg-no-repeat p-4 text-center bg-zinc-900",style:ms(s.value?{backgroundImage:"url('/age-gate-bg.webp')"}:{})},[f("div",{class:Qe(["absolute inset-0 bg-black/80 backdrop-blur-sm",{"backdrop-blur-none":!n.value}])},null,2),f("div",cO,[u[2]||(u[2]=f("div",{class:"flex justify-center mb-6"},[f("img",{src:"/logo.white.svg",alt:"FapTap",class:"h-10"})],-1)),u[3]||(u[3]=f("div",{class:"text-2xl font-bold text-white mb-4"}," This Website Is for Adults Only ",-1)),u[4]||(u[4]=f("p",{class:"text-zinc-400 mb-8 text-sm leading-relaxed"}," Faptap contains age-restricted materials. By entering, you affirm that you are at least 18 years of age or the age of majority in your jurisdiction, and you consent to viewing sexually explicit content. ",-1)),f("div",dO,[T(ze,{theme:"blue",class:"w-full py-3",onClick:o},{default:V(()=>[...u[0]||(u[0]=[N(" Yes, I am 18 or older - Enter ",-1)])]),_:1}),T(ze,{theme:"transparent",class:"w-full py-3",onClick:a},{default:V(()=>[...u[1]||(u[1]=[N(" No, I am under 18 - Exit ",-1)])]),_:1})]),u[5]||(u[5]=f("div",{class:"mt-6 flex justify-center gap-4 text-xs text-zinc-500"},[f("a",{href:"/terms-of-service",class:"hover:text-zinc-300 transition-colors"},"Terms of Service"),f("a",{href:"/privacy-policy",class:"hover:text-zinc-300 transition-colors"},"Privacy Policy")],-1))])],4))}});const hO=An(fO,[["__scopeId","data-v-f5f2a8d8"]]);const pO={},gO={class:"skeleton-feed space-y-8 animate-pulse"},vO={class:"space-y-4"},mO={class:"flex gap-4 px-2 lg:px-0 overflow-hidden min-h-[96px]"},_O={class:"space-y-4"},yO={class:"flex flex-wrap gap-1.5 px-2 lg:px-0 h-[52px] overflow-hidden mt-1.5"},bO={class:"space-y-4"},wO={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-5 gap-4 px-2 lg:px-0 min-h-[400px]"},xO={class:"space-y-4"},CO={class:"flex gap-4 overflow-hidden min-h-[180px] px-2 lg:px-0"};function kO(t,e){return w(),C("div",gO,[e[6]||(e[6]=f("div",{class:"welcome-message mb-4"},[f("div",{class:"h-24 bg-zinc-800 rounded-md"})],-1)),f("div",vO,[e[0]||(e[0]=f("div",{class:"h-8 w-48 bg-zinc-800 rounded mx-2 lg:mx-0 mt-2"},null,-1)),f("div",mO,[(w(),C(Ve,null,Bt(5,n=>f("div",{key:n,class:"aspect-video h-24 w-44 bg-zinc-800 rounded-md shrink-0"})),64))])]),f("div",_O,[e[1]||(e[1]=f("div",{class:"h-8 w-40 bg-zinc-800 rounded mx-2 lg:mx-0 mt-2"},null,-1)),f("div",yO,[(w(),C(Ve,null,Bt(12,n=>f("div",{key:n,class:"h-10 w-24 bg-zinc-800 rounded-lg"})),64))])]),f("div",bO,[e[3]||(e[3]=f("div",{class:"h-8 w-32 bg-zinc-800 rounded mx-2 lg:mx-0 mt-2"},null,-1)),f("div",wO,[(w(),C(Ve,null,Bt(10,n=>f("div",{key:n,class:"space-y-2"},[...e[2]||(e[2]=[f("div",{class:"aspect-video bg-zinc-800 rounded-md"},null,-1),f("div",{class:"py-1"},[f("div",{class:"h-4 w-3/4 bg-zinc-800 rounded mt-1"}),f("div",{class:"h-5 w-1/2 bg-zinc-800 rounded mt-2"}
129)],-1)])])),64))])]),f("div",xO,[e[5]||(e[5]=f("div",{class:"h-8 w-48 bg-zinc-800 rounded mx-2 lg:mx-0 mt-2"},null,-1)),f("div",CO,[(w(),C(Ve,null,Bt(6,n=>f("div",{key:n,class:"flex-shrink-0 w-48 space-y-2"},[...e[4]||(e[4]=[f("div",{class:"aspect-video bg-zinc-800 rounded-md"},null,-1),f("div",{class:"h-3 w-3/4 bg-zinc-800 rounded mt-1"},null,-1),f("div",{class:"h-4 w-1/2 bg-zinc-800 rounded"},null,-1)])])),64))])])])}const Y2=An(pO,[["render",kO],["__scopeId","data-v-53f25fd2"]]),SO={class:"skeleton-video-grid space-y-6 animate-pulse mt-4"},EO={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-5 gap-4 px-2 lg:px-0 min-h-[600px]"},AO={class:"relative overflow-hidden rounded-md bg-zinc-900 border border-zinc-800/10"},LO={class:"w-full h-[10px] bg-zinc-850 flex items-center justify-between px-0.5 gap-0.5"},TO=Ze({__name:"SkeletonVideoGrid",setup(t){return(e,n)=>(w(),C("div",SO,[f("div",EO,[(w(),C(Ve,null,Bt(15,s=>f("div",{key:s,class:"space-y-2"},[f("div",AO,[n[0]||(n[0]=f("div",{class:"aspect-video w-full bg-zinc-800"},null,-1)),f("div",LO,[(w(),C(Ve,null,Bt(1,r=>f("div",{key:r,class:"h-1 bg-zinc-700/60 rounded-full flex-1"})),64))])]),n[1]||(n[1]=ns('<div class="py-1 px-2 md:px-0 space-y-2" data-v-cd3464cd><div class="flex justify-between items-center gap-1.5 text-zinc-400" data-v-cd3464cd><div class="h-3 w-16 bg-zinc-800 rounded" data-v-cd3464cd></div><div class="flex gap-2" data-v-cd3464cd><div class="h-3 w-8 bg-zinc-800 rounded" data-v-cd3464cd></div><div class="h-3 w-8 bg-zinc-800 rounded" data-v-cd3464cd></div><div class="h-3 w-6 bg-zinc-800 rounded" data-v-cd3464cd></div></div></div><div class="flex items-start justify-between gap-2" data-v-cd3464cd><div class="h-4 bg-zinc-800 rounded w-5/6" data-v-cd3464cd></div><div class="h-4 w-4 bg-zinc-800 rounded-full shrink-0" data-v-cd3464cd></div></div></div>',1))])),64))])]))}});const Na=An(TO,[["__scopeId","data-v-cd3464cd"]]),MO={class:"skeleton-video-watch animate-pulse space-y-4 px-2 lg:px-0"},OO={class:"flex flex-col lg:flex-row lg:items-center justify-between gap-y-2 py-3 border-y border-zinc-800/50"},PO={class:"flex gap-2 overflow-hidden py-1"},$O={class:"flex flex-wrap gap-2 py-2 border-b border-zinc-800/50"},RO={class:"space-y-4 pt-4"},VO=Ze({__name:"SkeletonVideoWatch",setup(t){return(e,n)=>(w(),C("div",MO,[n[2]||(n[2]=ns('<div class="aspect-video w-full bg-zinc-800 rounded-md" data-v-8d5377f1></div><div class="w-full h-8 bg-zinc-800 rounded-md" data-v-8d5377f1></div><div class="space-y-2.5 mt-3" data-v-8d5377f1><div class="h-6 lg:h-8 w-3/4 bg-zinc-800 rounded" data-v-8d5377f1></div><div class="flex justify-between items-center text-sm" data-v-8d5377f1><div class="h-4 w-48 bg-zinc-800 rounded" data-v-8d5377f1></div><div class="h-4 w-32 bg-zinc-800 rounded" data-v-8d5377f1></div></div></div>',3)),f("div",OO,[n[0]||(n[0]=ns('<div class="flex items-center gap-x-8 justify-between" data-v-8d5377f1><div class="flex gap-x-3 items-center" data-v-8d5377f1><div class="h-9 w-9 bg-zinc-800 rounded-full shrink-0" data-v-8d5377f1></div><div class="space-y-1.5" data-v-8d5377f1><div class="h-4 w-28 bg-zinc-800 rounded" data-v-8d5377f1></div><div class="h-3 w-20 bg-zinc-800 rounded" data-v-8d5377f1></div></div></div><div class="flex gap-1.5" data-v-8d5377f1><div class="h-9 w-20 bg-zinc-800 rounded-md" data-v-8d5377f1></div><div class="h-9 w-28 bg-zinc-800 rounded-md" data-v-8d5377f1></div></div></div>',1)),f("div",PO,[(w(),C(Ve,null,Bt(5,s=>f("div",{key:s,class:"h-9 w-24 bg-zinc-800 rounded-md shrink-0"})),64))])]),n[3]||(n[3]=f("div",{class:"space-y-2 py-2"},[f("div",{class:"h-3.5 w-full bg-zinc-800 rounded"}),f("div",{class:"h-3.5 w-5/6 bg-zinc-800 rounded"}),f("div",{class:"h-3.5 w-2/3 bg-zinc-800 rounded"})],-1)),f("div",$O,[(w(),C(Ve,null,Bt(10,s=>f("div",{key:s,class:"h-7 w-20 bg-zinc-800 rounded-full"})),64))]),f("div",RO,[n[1]||(n[1]=f("div",{class:"h-6 w-48 bg-zinc-800 rounded"},null,-1)),T(Na)])]))}});const IO=An(VO,[["__scopeId","data-v-8d5377f1"]]),HO={class:"skeleton-creators animate-pulse space-y-6"},FO={class:"grid grid-cols-2 md:grid-cols-4 lg:grid-cols-10 gap-2 px-2 lg:px-0 min-h-[400px]"},DO=Ze({__name:"SkeletonCreators",setup(t){return(e,n)=>(w(),C("div",HO,[f("div",FO,[(w(),C(Ve,null,Bt(40,s=>f("div",{key:s,class:"p-2 space-y-2"},[...n[0]||(n[0]=[ns('<div class="aspect-square w-full bg-zinc-800 rounded-full" data-v-39cdfc36></div><div class="space-y-1.5 px-1" data-v-39cdfc36><div class="h-4 w-3/4 mx-auto bg-zinc-800 rounded" data-v-39cdfc36></div><div class="h-3 w-1/2 mx-auto bg-zinc-800 rounded" data-v-39cdfc36></div><div class="h-3 w-2/5 mx-auto bg-zinc-800 rounded" data-v-39cdfc36></div></div>',2)])])),64))])]))}});const BO=An(DO,[["__scopeId","data-v-39cdfc36"]]),NO={class:"skeleton-profile animate-pulse space-y-6"},jO=Ze({__name:"SkeletonProfile",setup(t){return(e,n)=>(w(),C("div",NO,[n[0]||(n[0]=ns('<div class="flex gap-8 flex-col items-center lg:items-start lg:flex-row text-center lg:text-left px-4 lg:px-0" data-v-557021e9><div class="h-48 w-48 bg-zinc-850 rounded-full shrink-0" data-v-557021e9></div><div class="flex flex-col space-y-3 justify-center lg:justify-start" data-v-557021e9><div class="h-4 w-20 bg-zinc-800 rounded mx-auto lg:mx-0" data-v-557021e9></div><div class="h-10 w-64 bg-zinc-800 rounded mx-auto lg:mx-0" data-v-557021e9></div><div class="h-5 w-40 bg-zinc-800 rounded mx-auto lg:mx-0" data-v-557021e9></div></div></div><div class="w-full mt-4 space-y-2 px-4 lg:px-0" data-v-557021e9><div class="h-4 w-full bg-zinc-800 rounded" data-v-557021e9></div><div class="h-4 w-2/3 bg-zinc-800 rounded" data-v-557021e9></div></div><div class="flex flex-wrap gap-2 px-4 lg:px-0" data-v-557021e9><div class="h-8 w-24 bg-zinc-800 rounded-md" data-v-557021e9></div><div class="h-8 w-20 bg-zinc-800 rounded-md" data-v-557021e9></div><div class="h-8 w-24 bg-zinc-800 rounded-md" data-v-557021e9></div><div class="h-8 w-20 bg-zinc-800 rounded-md" data-v-557021e9></div><div class="h-8 w-28 bg-zinc-800 rounded-md" data-v-557021e9></div><div class="h-8 w-32 bg-zinc-800 rounded-md" data-v-557021e9></div></div>',3)),T(Na,{class:"px-4 lg:px-0"})]))}});const UO=An(jO,[["__scopeId","data-v-557021e9"]]),zO={class:"skeleton-playlists animate-pulse space-y-6 px-2 lg:px-0"},qO={class:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 ga
129p-4 min-h-[400px]"},WO={class:"aspect-video w-full bg-zinc-900 rounded-md overflow-hidden flex border border-zinc-800/20"},GO={class:"w-1/3 h-full flex flex-col"},ZO={class:"h-1/3 bg-zinc-800 border-b border-zinc-900/60 flex items-center justify-center"},KO={class:"h-1/3 bg-zinc-800 flex items-center justify-center"},YO=Ze({__name:"SkeletonPlaylists",setup(t){return(e,n)=>(w(),C("div",zO,[n[3]||(n[3]=ns('<div class="flex justify-between items-center" data-v-f8b09bec><div class="h-8 w-64 bg-zinc-800 rounded" data-v-f8b09bec></div><div class="h-9 w-24 bg-zinc-800 rounded-md" data-v-f8b09bec></div></div><div class="h-10 w-full bg-zinc-800 rounded-md" data-v-f8b09bec></div><div class="flex flex-wrap gap-2" data-v-f8b09bec><div class="h-8 w-24 bg-zinc-800 rounded-md" data-v-f8b09bec></div><div class="h-8 w-20 bg-zinc-800 rounded-md" data-v-f8b09bec></div><div class="h-8 w-28 bg-zinc-800 rounded-md" data-v-f8b09bec></div><div class="h-8 w-16 bg-zinc-800 rounded-md" data-v-f8b09bec></div></div>',3)),f("div",qO,[(w(),C(Ve,null,Bt(15,s=>f("div",{key:s,class:"space-y-2"},[f("div",WO,[n[1]||(n[1]=f("div",{class:"w-2/3 h-full bg-zinc-800 border-r border-zinc-900/60"},null,-1)),f("div",GO,[n[0]||(n[0]=f("div",{class:"h-1/3 bg-zinc-850 flex flex-col items-center justify-center border-b border-zinc-900/60"},[f("div",{class:"h-3 w-6 bg-zinc-700 rounded"}),f("div",{class:"h-1.5 w-10 bg-zinc-700/80 rounded mt-0.5"})],-1)),f("div",ZO,[T(Pe,{name:"video",class:"w-3.5 h-3.5 text-zinc-700/60"})]),f("div",KO,[T(Pe,{name:"video",class:"w-3.5 h-3.5 text-zinc-700/60"})])])]),n[2]||(n[2]=ns('<div class="py-1 px-2 md:px-0 space-y-2" data-v-f8b09bec><div class="flex justify-between items-center gap-1.5" data-v-f8b09bec><div class="h-3 w-16 bg-zinc-800 rounded" data-v-f8b09bec></div><div class="flex gap-2" data-v-f8b09bec><div class="h-3 w-8 bg-zinc-800 rounded" data-v-f8b09bec></div><div class="h-3 w-8 bg-zinc-800 rounded" data-v-f8b09bec></div><div class="h-3 w-6 bg-zinc-800 rounded" data-v-f8b09bec></div></div></div><div class="h-4 w-3/4 bg-zinc-800 rounded" data-v-f8b09bec></div></div>',1))])),64))])]))}});const XO=An(YO,[["__scopeId","data-v-f8b09bec"]]),JO={class:"skeleton-playlist-watch animate-pulse space-y-6 px-2 lg:px-0"},QO={class:"space-y-4"},eP=Ze({__name:"SkeletonPlaylistWatch",setup(t){return(e,n)=>(w(),C("div",JO,[n[1]||(n[1]=ns('<div class="flex justify-end mb-4" data-v-e4f0002f><div class="h-5 w-36 bg-zinc-800 rounded" data-v-e4f0002f></div></div><div class="bg-zinc-800/30 rounded-xl p-6 lg:p-8 mb-10 border border-zinc-800/50 shadow-xl overflow-hidden relative" data-v-e4f0002f><div class="flex flex-col lg:flex-row gap-8" data-v-e4f0002f><div class="lg:w-1/3 xl:w-1/4 shrink-0 aspect-video bg-zinc-800 rounded-lg" data-v-e4f0002f></div><div class="flex-1 flex flex-col justify-center space-y-4" data-v-e4f0002f><div class="h-10 w-2/3 bg-zinc-800 rounded" data-v-e4f0002f></div><div class="flex flex-wrap items-center gap-4" data-v-e4f0002f><div class="h-6 w-32 bg-zinc-800 rounded-full" data-v-e4f0002f></div><div class="h-4 w-48 bg-zinc-800 rounded" data-v-e4f0002f></div></div><div class="flex gap-2" data-v-e4f0002f><div class="h-9 w-20 bg-zinc-800 rounded-md" data-v-e4f0002f></div><div class="h-9 w-20 bg-zinc-800 rounded-md" data-v-e4f0002f></div><div class="h-9 w-24 bg-zinc-800 rounded-md" data-v-e4f0002f></div></div></div></div></div>',2)),f("div",QO,[n[0]||(n[0]=f("div",{class:"h-7 w-32 bg-zinc-800 rounded"},null,-1)),T(Na)])]))}});const tP=An(eP,[["__scopeId","data-v-e4f0002f"]]),nP={class:"skeleton-tags animate-pulse px-2 lg:px-0"},sP={class:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-3 min-h-[300px]"},rP=Ze({__name:"SkeletonTags",setup(t){return(e,n)=>(w(),C("div",nP,[f("div",sP,[(w(),C(Ve,null,Bt(48,s=>f("div",{key:s,class:"h-10 bg-zinc-800 rounded-md flex justify-between overflow-hidden"},[...n[0]||(n[0]=[f("div",{class:"flex-1"},null,-1),f("div",{class:"w-12 bg-zinc-700 h-full"},null,-1)])])),64))])]))}});const iP=An(rP,[["__scopeId","data-v-38052d21"]]),oP={class:"skeleton-tag-page animate-pulse space-y-6"},aP={class:"flex flex-wrap gap-1.5 mt-1.5 mb-8 max-height-2tabs overflow-hidden"},lP=Ze({__name:"SkeletonTagPage",setup(t){return(e,n)=>(w(),C("div",oP,[f("div",aP,[(w(),C(Ve,null,Bt(12,s=>f("div",{key:s,class:"h-9 w-24 bg-zinc-800 rounded-lg"})),64))]),n[0]||(n[0]=ns('<div class="h-8 w-64 bg-zinc-800 rounded mx-2 lg:mx-0" data-v-be44c2b9></div><div class="flex flex-wrap gap-2 mx-2 lg:mx-0" data-v-be44c2b9><div class="h-8 w-24 bg-zinc-800 rounded-md" data-v-be44c2b9></div><div class="h-8 w-20 bg-zinc-800 rounded-md" data-v-be44c2b9></div><div class="h-8 w-24 bg-zinc-800 rounded-md" data-v-be44c2b9></div><div class="h-8 w-20 bg-zinc-800 rounded-md" data-v-be44c2b9></div><div class="h-8 w-28 bg-zinc-800 rounded-md" data-v-be44c2b9></div><div class="h-8 w-32 bg-zinc-800 rounded-md" data-v-be44c2b9></div></div>',2)),T(Na)]))}});const uP=An(lP,[["__scopeId","data-v-be44c2b9"]]),X2=Pa("announcement",()=>{const t=ae(null),e=ae(!1),n=Ne(()=>{var p,g;return((p=t.value)==null?void 0:p.enabled)&&!e.value&&!!((g=t.value)!=null&&g.message)}),s=Ne(()=>{var p;return((p=t.value)==null?void 0:p.link)||null}),r=Ne(()=>{const p=s.value;return p?p.startsWith("http://")||p.startsWith("https://"):!1});async function i(){try{t.value=await dt.announcement.getAnnouncement(),u()}catch(p){console.error("Failed to fetch announcement:",p)}}async function o(){try{t.value=await dt.announcement.getAnnouncement()}catch(p){console.error("Failed to fetch admin announcement:",p)}}const a="announcement_dismissed_at";function l(){e.value=!0,t.value&&localStorage.setItem(a,t.value.updated_at)}function u(){if(t.value){const p=localStorage.getItem(a);if(p){const g=new Date(p).getTime(),v=new Date(t.value.updated_at).getTime();e.value=g>=v}else e.value=!1}}async function c(p){t.value=await dt.announcement.updateAnnouncement(p)}async function d(p){const g=new FormData;return g.append("file",p),(await dt.announcement.uploadImage(g)).url}return{announcement:t,isVisible:n,fetchAnnouncement:i,fetchAdminAnnouncement:o,dismiss:l,updateAnnouncement:c,uploadImage:d,safeLink:s,isExternalLink:r}}),cP=["src"],dP=["innerHTML"],fP=Ze({__name:"NotificationBar",setup(t){const e=X2(),{isMobile:n}=vi();return(s,r)=>{var i,o,a;return y(e).isVisible&&((i=y(e).announcement)==null?void 0:i.enabled)?(w(),C("div",{key:0,id:"notification-bar",class:"relative z-[1] flex w-full items-center justify-center border-b border-black/5 shadow-xl transition-all duration-300",style:ms({backgroundColor:((o=y(e).announcement)==null?void 0:o.background_color)||"#DF988B",color:((a=y(e).announcement)==null?void 0:a.text_color)||"#000000"})},[(w(),pe(ps(y(e).isExternalLink?"a":"router-link"),Wf(y(e).isExternalLink?{href:y(e).safeLink||"#",target:"_blank",rel:"noopener noreferrer"}:{to:y(e).safeLink||"#"},{class:["group flex min-h-[50px] flex-1 flex-row items-center justify-center gap-3 px-10 py-2.5 no-underline select-none md:gap-5 md:px-12",{"cursor-default":!y(e).safeLink}],onClick:r[0]||(r[0]=l=>!y(e).safeLink&&l.preventDefault())}),{default:V(()=>{var l,u;return[((l=y(e).announcement)==null?void 0:l.image_url)&&!y(n)?(w(),C("img",{key:0,src:y(ci)(y(e).announcement.image_url),alt:"",class:"h-7 w-auto object-contain shrink-0 drop-shadow-sm transition-transform group-hover:scale-105"},null,8,cP)):oe("",!0),f("div",{class:"rich-content flex min-h-[24px] items-center justify-center break-words text-center text-[15px] font-medium leading-snug md:min-h-[24px] md:text-left md:text-[16
129px]",style:{"font-family":"'FapTap', sans-serif"},innerHTML:(u=y(e).announcement)==null?void 0:u.message},null,8,dP)]}),_:1},16,["class"])),f("button",{onClick:r[1]||(r[1]=It((...l)=>y(e).dismiss&&y(e).dismiss(...l),["stop","prevent"])),class:"close-btn absolute right-3 rounded-full p-1 opacity-40 transition-all hover:bg-black/5 hover:opacity-100 active:bg-black/10 md:right-5",title:"Dismiss"},[T(Pe,{name:"close",class:"h-4 w-4"})])],4)):oe("",!0)}}});const hP=An(fP,[["__scopeId","data-v-81f2523e"]]),pP={class:"sticky top-0 z-50 flex flex-col"},gP={class:"max-w-[1570px] mx-auto w-full"},vP={class:"max-w-[1570px] mx-auto w-full py-2 lg:py-8 lg:px-8 flex-1 flex flex-col gap-y-6 lg:gap-y-8 relative"},mP={class:"flex-1 flex flex-col gap-y-6 lg:gap-y-8"},_P={key:0,class:"min-h-[160px]"},yP={key:1,class:"flex justify-center items-center min-h-[80vh] w-full"},bP={key:1,class:"flex justify-center items-center min-h-[80vh] w-full"},wP={key:0,class:"mt-8 px-2 lg:px-0"},xP={class:"grid md:grid-cols-2 gap-4"},CP={class:"max-w-[1570px] mx-auto w-full"},kP={class:"-mt-10"},SP={class:"flex gap-3 items-center"},EP={class:"bg-zinc-800 rounded-md p-3"},AP={class:"mt-6 text-center"},LP=Ze({__name:"App",setup(t){const e=X2();zn(()=>{e.fetchAnnouncement()});const{authDialog:n,changePassword:s}=gs(Ns()),{isMobile:r}=vi(),i=is(),{shuffledAffiliates:o,footervideoadb:a}=K2();Ne(()=>i.currentRoute.value.name),Ne(()=>i.currentRoute.value.path);const l={SkeletonFeed:Y2,SkeletonVideoGrid:Na,SkeletonVideoWatch:IO,SkeletonProfile:UO,SkeletonCreators:BO,SkeletonPlaylistWatch:tP,SkeletonPlaylists:XO,SkeletonTagPage:uP,SkeletonTags:iP},u=E=>{const _=typeof window<"u"?window.location.pathname:(E==null?void 0:E.path)||"/",m={"/":"SkeletonFeed","":"SkeletonFeed","/playlists":"SkeletonPlaylists","/tags":"SkeletonTags","/likes":"SkeletonVideoGrid","/feed":"SkeletonVideoGrid"};if(m[_])return m[_];const x=[["/videos","SkeletonVideoGrid"],["/v/","SkeletonVideoWatch"],["/watch/","SkeletonVideoWatch"],["/creators","SkeletonCreators"],["/performers","SkeletonCreators"],["/u/","SkeletonProfile"],["/p/","SkeletonProfile"],["/playlist/","SkeletonPlaylistWatch"],["/t/","SkeletonTagPage"]];for(const[A,h]of x)if(_.startsWith(A))return h;if(E!=null&&E.name){const A=E.name;return{home:"SkeletonFeed",videos:"SkeletonVideoGrid",likes:"SkeletonVideoGrid",feed:"SkeletonVideoGrid",watch:"SkeletonVideoWatch",performer:"SkeletonProfile",user:"SkeletonProfile",creators:"SkeletonCreators",performers:"SkeletonCreators",playlist:"SkeletonPlaylistWatch",playlists:"SkeletonPlaylists",tag:"SkeletonTagPage",tags:"SkeletonTags"}[A]||""}return""},c=Ne(()=>r?i.currentRoute.value.name==="home":d.value),d=Ne(()=>{const E=i.currentRoute.value.name,_=i.currentRoute.value.path;return!(["Gymmode","Subscribe","preferences","Notifications","admin","studio","studio-videos","create-video","edit-video","Badtag","Animatedtags","ManageTags","ManagePerformers","ManageRedirections","ManageGeoBlocks","ManageNotification","Monitoring","reports","Taxonomy","TaxonomyManager","TaxonomyAliases","taxonomy-blacklist","faptapai","funscripts","create-funscript","funscript-watch","ai-stroking","live-stream","about","contact","advertising","faq","support","how-to-upload-script","2257-compliance","cookie-policy","creator-guidelines","dmca-policy","privacy-policy","terms-of-service","become-creator","responsible-access"].includes(E)||_.startsWith("/gym")||_.startsWith("/preferences")||_.startsWith("/subscribe")||_.startsWith("/notifications")||_.startsWith("/admin")||_.startsWith("/taxonomy")||_.startsWith("/studio")||_.startsWith("/manage-")||_.startsWith("/monitoring")||_.startsWith("/reports")||_.startsWith("/faptapai")||_.startsWith("/ai-stroking")||_.startsWith("/funscripts")||_.startsWith("/live-stream")||_.startsWith("/f/")||_.startsWith("/about")||_.startsWith("/contact")||_.startsWith("/advertising")||_.startsWith("/faq")||_.startsWith("/support")||_.startsWith("/how-to-upload-a-script")||_.startsWith("/2257")||_.startsWith("/cookie-policy")||_.startsWith("/creator-content-guidelines")||_.startsWith("/dmca")||_.startsWith("/privacy-policy")||_.startsWith("/terms-of-service")||_.startsWith("/become-a-creator")||_.startsWith("/responsible-access"))}),p=Ne(()=>d.value),g=()=>window.FAPTAP_BOT==="true",b=ae(Ym("FAPTAP_AGE_VERIFIED")==="true"),k=Ne(()=>i.currentRoute.value.path==="/exit.html"||g()?!1:!b.value),L=()=>{b.value=!0};return(E,_)=>{const m=fr("RouterView"),x=fr("router-link");return w(),C(Ve,null,[f("div",{class:Qe(["bg-zinc-900 flex flex-col min-h-screen relative",{"is-development":!y(Xe)().isProduction}])},[f("div",pP,[d.value?(w(),pe(hP,{key:0})):oe("",!0),f("div",gP,[T(DM,{class:"bg-zinc-900"})])]),f("div",vP,[f("div",mP,[c.value?(w(),C("div",_P,[T(L1,{gap:"gap-2 lg:gap-4",showMobileArrows:!0},{default:V(()=>[(w(!0),C(Ve,null,Bt(y(o),A=>(w(),pe(wf,{class:"aspect-video rounded-md overflow-hidden h-40 group flex items-center justify-center bg-zinc-800 shadow",affiliate:A},null,8,["affiliate"]))),256))]),_:1})])):oe("",!0),T(m,null,{default:V(({Component:A,route:h})=>[A?(w(),pe(Ty,{key:0,max:"3",exclude:["watch","LiveStream","Mosa3js","Player","VRPlayer","watchFunscript"]},[(w(),pe(u5,{timeout:"5000"},{fallback:V(()=>[u(h)&&l[u(h)]?(w(),pe(ps(l[u(h)]),{key:0})):(w(),C("div",yP,[T(Pe,{name:"loading",class:"h-10 w-10 text-blue-500 animate-spin"})]))]),default:V(()=>[(w(),pe(ps(A),{key:h.path}))]),_:2},1024))],1024)):(w(),C(Ve,{key:1},[u(h)&&l[u(h)]?(w(),pe(ps(l[u(h)]),{key:0})):(w(),C("div",bP,[T(Pe,{name:"loading",class:"h-10 w-10 text-blue-500 animate-spin"})]))],64))]),_:1})]),p.value?(w(),C("div",wP,[f("div",xP,[(w(!0),C(Ve,null,Bt(y(a),A=>(w(),pe(wf,{class:"group block bg-zinc-800 cursor-pointer aspect-video rounded-md overflow-hidden flex items-center justify-center shadow w-full",affiliate:A},null,8,["affiliate"]))),256))])])):oe("",!0)]),f("div",CP,[T(nO)])],2),y(r)?(w(),pe(
129xa,{key:0,modelValue:y(n),"onUpdate:modelValue":_[0]||(_[0]=A=>Tt(n)?n.value=A:null)},{default:V(()=>[T(o0)]),_:1},8,["modelValue"])):(w(),pe(df,{key:1,modelValue:y(n),"onUpdate:modelValue":_[1]||(_[1]=A=>Tt(n)?n.value=A:null)},{default:V(()=>[T(o0,{class:"-m-4 -mt-12"})]),_:1},8,["modelValue"])),T(df,{modelValue:y(s),"onUpdate:modelValue":_[3]||(_[3]=A=>Tt(s)?s.value=A:null)},{default:V(()=>[f("div",kP,[f("div",SP,[f("div",EP,[T(Pe,{name:"lock-reset",class:"h-7 w-7"})]),_[4]||(_[4]=f("div",null,[f("p",{class:"text-2xl font-medium"},"Change Password")],-1))]),_[6]||(_[6]=f("hr",{class:"-mx-4 my-4 border-zinc-800"},null,-1)),f("div",null,[T(uO)]),_[7]||(_[7]=f("hr",{class:"-mx-4 my-4 border-zinc-800"},null,-1)),f("div",AP,[T(x,{to:"#",class:"block w-full",onClick:_[2]||(_[2]=A=>(s.value=!1,n.value=!0))},{default:V(()=>[..._[5]||(_[5]=[N("Log In",-1)])]),_:1})])])]),_:1},8,["modelValue"]),k.value&&y(Xe)().isProduction?(w(),pe(hO,{key:2,onVerified:L})):oe("",!0)],64)}}});const TP=An(LP,[["__scopeId","data-v-0f9fdb66"]]),MP=new Set(["link","style","script","noscript"]),OP=new Set(["title","titleTemplate","script","style","noscript"]),xf=new Set(["base","meta","link","style","script","noscript"]),PP=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),$P=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),RP=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),VP=new Set(["templateParams","htmlAttrs","bodyAttrs"]),IP=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]);function Cf(t,e={},n){for(const s in t){const r=t[s],i=n?`${n}:${s}`:s;typeof r=="object"&&r!==null?Cf(r,e,i):typeof r=="function"&&(e[i]=r)}return e}const J2=(()=>{if(console.createTask)return console.createTask;const t={run:e=>e()};return()=>t})();function Q2(t,e,n,s){for(let r=n;r<t.length;r+=1)try{const i=s?s.run(()=>t[r](...e)):t[r](...e);if(i instanceof Promise)return i.then(()=>Q2(t,e,r+1,s))}catch(i){return Promise.reject(i)}}function HP(t,e,n){if(t.length>0)return Q2(t,e,0,J2(n))}function FP(t,e,n){if(t.length>0){const s=J2(n);return Promise.all(t.map(r=>s.run(()=>r(...e))))}}function rd(t,e){for(const n of[...t])n(e)}var DP=class{constructor(){Z(this,"_hooks");Z(this,"_before");Z(this,"_after");Z(this,"_deprecatedHooks");Z(this,"_deprecatedMessages");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,e,n={}){if(!t||typeof e!="function")return()=>{};const s=t;let r;for(;this._deprecatedHooks[t];)r=this._deprecatedHooks[t],t=r.to;if(r&&!n.allowDeprecated){let i=r.message;i||(i=`${s} hook has been deprecated`+(r.to?`, please use ${r.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(i)||(console.warn(i),this._deprecatedMessages.add(i))}if(!e.name)try{Object.defineProperty(e,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(e),()=>{e&&(this.removeHook(t,e),e=void 0)}}hookOnce(t,e){let n,s=(...r)=>(typeof n=="function"&&n(),n=void 0,s=void 0,e(...r));return n=this.hook(t,s),n}removeHook(t,e){const n=this._hooks[t];if(n){const s=n.indexOf(e);s!==-1&&n.splice(s,1),n.length===0&&(this._hooks[t]=void 0)}}clearHook(t){this._hooks[t]=void 0}deprecateHook(t,e){this._deprecatedHooks[t]=typeof e=="string"?{to:e}:e;const n=this._hooks[t]||[];this._hooks[t]=void 0;for(const s of n)this.hook(t,s)}deprecateHooks(t){for(const e in t)this.deprecateHook(e,t[e])}addHooks(t){const e=Cf(t),n=Object.keys(e).map(s=>this.hook(s,e[s]));return()=>{for(const s of n)s();n.length=0}}removeHooks(t){const e=Cf(t);for(const n in e)this.removeHook(n,e[n])}removeAllHooks(){this._hooks={}}callHook(t,...e){return this.callHookWith(HP,t,e)}callHookParallel(t,...e){return this.callHookWith(FP,t,e)}callHookWith(t,e,n){const s=this._before||this._after?{name:e,args:n,context:{}}:void 0;
129this._before&&rd(this._before,s);const r=t(this._hooks[e]?[...this._hooks[e]]:[],n,e);return r instanceof Promise?r.finally(()=>{this._after&&s&&rd(this._after,s)}):(this._after&&s&&rd(this._after,s),r)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const e=this._before.indexOf(t);e!==-1&&this._before.splice(e,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const e=this._after.indexOf(t);e!==-1&&this._after.splice(e,1)}}}};function BP(){return new DP}const NP=["name","property","http-equiv"],jP=new Set(["viewport","description","keywords","robots"]);function e_(t){const e=t.split(":");return e.length?IP.has(e[1]):!1}function kf(t){const{props:e,tag:n}=t;if($P.has(n))return n;if(n==="link"&&e.rel==="canonical")return"canonical";if(n==="link"&&e.rel==="alternate"){const s=e.hreflang||e.type;if(s)return`alternate:${s}`}if(e.charset)return"charset";if(t.tag==="meta"){for(const s of NP)if(e[s]!==void 0){const r=e[s],i=r&&typeof r=="string"&&r.includes(":"),o=r&&jP.has(r),l=!(i||o)&&t.key?`:key:${t.key}`:"";return`${n}:${r}${l}`}}if(t.key)return`${n}:key:${t.key}`;if(e.id)return`${n}:id:${e.id}`;if(n==="link"&&e.rel==="alternate")return`alternate:${e.href||""}`;if(OP.has(n)){const s=t.textContent||t.innerHTML;if(s)return`${n}:content:${s}`}}function t_(t){const e=t._h||t._d;if(e)return e;const n=t.textContent||t.innerHTML;return n||`${t.tag}:${Object.entries(t.props).map(([s,r])=>`${s}:${String(r)}`).join(",")}`}function vu(t,e,n){typeof t==="function"&&(!n||n!=="titleTemplate"&&!(n[0]==="o"&&n[1]==="n"))&&(t=t());const r=e?e(n,t):t;if(Array.isArray(r))return r.map(i=>vu(i,e));if((r==null?void 0:r.constructor)===Object){const i={};for(const o of Object.keys(r))i[o]=vu(r[o],e,o);return i}return r}function UP(t,e){const n=t==="style"?new Map:new Set;function s(r){if(r==null||r===void 0)return;const i=String(r).trim();if(!!i)if(t==="style"){const[o,...a]=i.split(":").map(l=>l?l.trim():"");o&&a.length&&n.set(o,a.join(":"))}else i.split(" ").filter(Boolean).forEach(o=>n.add(o))}return typeof e=="string"?t==="style"?e.split(";").forEach(s):s(e):Array.isArray(e)?e.forEach(r=>s(r)):e&&typeof e=="object"&&Object.entries(e).forEach(([r,i])=>{i&&i!=="false"&&(t==="style"?n.set(String(r).trim(),String(i)):s(r))}),n}function n_(t,e){if(t.props=t.props||{},!e)return t;if(t.tag==="templateParams")return t.props=e,t;const n=xf.has(t.tag)||t.tag==="htmlAttrs"||t.tag==="bodyAttrs";return Object.entries(e).forEach(([s,r])=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;if(r===null){t.props[s]=null;return}if(s==="class"||s==="style"){t.props[s]=UP(s,r);return}if(RP.has(s)){if((s==="textContent"||s==="innerHTML")&&typeof r=="object"){let u=e.type;if(e.type||(u="application/json"),!(u!=null&&u.endsWith("json"))&&u!=="speculationrules")return;e.type=u,t.props.type=u,t[s]=JSON.stringify(r)}else t[s]=r;return}const i=s.startsWith("data-"),o=n&&!i?s.toLowerCase():s,a=String(r),l=t.tag==="meta"&&o==="content";a==="true"||a===""?t.props[o]=i||l?a:!0:!r&&i&&a==="false"?t.props[o]="false":r!==void 0&&(t.props[o]=r)}),t}function zP(t,e){const n=typeof e=="object"&&typeof e!="function"?e:{[t==="script"||t==="noscript"||t==="style"?"innerHTML":"textContent"]:e},s=n_({tag:t,props:{}},n);return s.key&&MP.has(s.tag)&&(s.props["data-hid"]=s._h=s.key),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(r=>({...s,props:{...s.props,content:r}})):s}function qP(t,e){if(!t)return[];typeof t=="function"&&(t=t());const n=(r,i)=>{for(let o=0;o<e.length;o++)i=e[o](r,i);return i};t=n(void 0,t);const s=[];return t=vu(t,n),Object.entries(t||{}).forEach(([r,i])=>{if(i!==void 0)for(const o of Array.isArray(i)?i:[i])s.push(zP(r,o))}),s.flat()}const R0=(t,e)=>t._w===e._w?t._p-e._p:t._w-e._w,V0={base:-10,title:10},WP={critical:-8,high:-1,low:2},I0={meta:{"content-security-policy":-30,charset:-20,viewport:-15},link:{preconnect:20,stylesheet:60,preload:70,modulepreload:70,prefetch:90,"dns-prefetch":90,prerender:90},script:{async:30,defer:80,sync:50},style:{imported:40,sync:60}},GP=/@import/,Ho=t=>t===""||t===!0;function ZP(t,e){if(typeof e.tagPriority=="number")return e.tagPriority;let n=100;const s=WP[e.tagPriority]||0,r=t.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:I0;if(e.tag in V0)n=V0[e.tag];else if(e.tag==="meta"){const i=e.props["http-equiv"]==="content-security-policy"?"content-security-policy":e.props.charset?"charset":e.props.name==="viewport"?"viewport":null;i&&(n=I0.meta[i])}else if(e.tag==="link"&&e.props.rel)n=r.link[e.props.rel];else if(e.tag==="script"){const i=String(e.props.type);Ho(e.props.async)?n=r.script.async:e.props.src&&!Ho(e.props.defer)&&!Ho(e.props.async)&&i!=="module"&&!i.endsWith("json")||e.innerHTML&&!i.endsWith("json")?n=r.script.sync:(Ho(e.props.defer)&&e.props.src&&!Ho(e.props.async)||i==="module")&&(n=r.script.defer)}else e.tag==="style"&&(n=e.innerHTML&&GP.test(e.innerHTML)?r.style.imported:r.style.sync);return(n||100)+s}function H0(t,e){const n=typeof e=="function"?e(t):e,s=n.key||String(t.plugins.size+1);t.plugins.get(s)||(t.plugins.set(s,n),t.hooks.addHooks(n.hooks||{}))}function KP(t={}){var a;const e=BP();e.addHooks(t.hooks||{});const n=!t.document,s=new Map,r=new Map,i=new Set,o={_entryCount:1,plugins:r,dirty:!1,resolvedOptions:t,hooks:e,ssr:n,entries:s,headEntries(){return[...s.values()]},use:l=>H0(o,l),push(l,u){var v;const c={...u||{}};delete c.head;const d=(v=c._index)!=null?v:o._entryCount++,p={_i:d,input:l,options:c},g={_poll(b=!1){o.dirty=!0,!b&&i.add(d),e.callHook("entries:updated",o)}
129,dispose(){s.delete(d)&&o.invalidate()},patch(b){(!c.mode||c.mode==="server"&&n||c.mode==="client"&&!n)&&(p.input=b,s.set(d,p),g._poll())}};return g.patch(l),g},async resolveTags(){const l={tagMap:new Map,tags:[],entries:[...o.entries.values()]};for(await e.callHook("entries:resolve",l);i.size;){const g=i.values().next().value;i.delete(g);const v=s.get(g);if(v){const b={tags:qP(v.input,t.propResolvers||[]).map(k=>Object.assign(k,v.options)),entry:v};await e.callHook("entries:normalize",b),v._tags=b.tags.map((k,L)=>(k._w=ZP(o,k),k._p=(v._i<<10)+L,k._d=kf(k),k._d||(k._h=t_(k)),k))}}let u=!1;l.entries.flatMap(g=>(g._tags||[]).map(v=>({...v,props:{...v.props}}))).sort(R0).reduce((g,v)=>{const b=v._d||v._h;if(!g.has(b))return g.set(b,v);const k=g.get(b);if(((v==null?void 0:v.tagDuplicateStrategy)||(VP.has(v.tag)?"merge":null)||(v.key&&v.key===k.key?"merge":null))==="merge"){const E={...k.props};Object.entries(v.props).forEach(([_,m])=>E[_]=_==="style"?new Map([...k.props.style||new Map,...m]):_==="class"?new Set([...k.props.class||new Set,...m]):m),g.set(b,{...v,props:E})}else v._p>>10===k._p>>10&&v.tag==="meta"&&e_(b)?(g.set(b,Object.assign([...Array.isArray(k)?k:[k],v],v)),u=!0):(v._w===k._w?v._p>k._p:(v==null?void 0:v._w)<(k==null?void 0:k._w))&&g.set(b,v);return g},l.tagMap);const c=l.tagMap.get("title"),d=l.tagMap.get("titleTemplate");if(o._title=c==null?void 0:c.textContent,d){const g=d==null?void 0:d.textContent;if(o._titleTemplate=g,g){let v=typeof g=="function"?g(c==null?void 0:c.textContent):g;typeof v=="string"&&!o.plugins.has("template-params")&&(v=v.replace("%s",(c==null?void 0:c.textContent)||"")),c?v===null?l.tagMap.delete("title"):l.tagMap.set("title",{...c,textContent:v}):(d.tag="title",d.textContent=v)}}l.tags=Array.from(l.tagMap.values()),u&&(l.tags=l.tags.flat().sort(R0)),await e.callHook("tags:beforeResolve",l),await e.callHook("tags:resolve",l),await e.callHook("tags:afterResolve",l);const p=[];for(const g of l.tags){const{innerHTML:v,tag:b,props:k}=g;if(!!PP.has(b)&&!(Object.keys(k).length===0&&!g.innerHTML&&!g.textContent)&&!(b==="meta"&&!k.content&&!k["http-equiv"]&&!k.charset)){if(b==="script"&&v){if(String(k.type).endsWith("json")){const L=typeof v=="string"?v:JSON.stringify(v);g.innerHTML=L.replace(/</g,"\\u003C")}else typeof v=="string"&&(g.innerHTML=v.replace(new RegExp(`</${b}`,"g"),`<\\/${b}`));g._d=kf(g)}p.push(g)}}return p},invalidate(){for(const l of s.values())i.add(l._i);o.dirty=!0,e.callHook("entries:updated",o)}};return((t==null?void 0:t.plugins)||[]).forEach(l=>H0(o,l)),o.hooks.callHook("init",o),(a=t.init)==null||a.forEach(l=>l&&o.push(l)),o}const YP=(t,e)=>Tt(e)?G_(e):e,s_="usehead";function XP(t){return{install(n){n.config.globalProperties.$unhead=t,n.config.globalProperties.$head=t,n.provide(s_,t)}}.install}function JP(){if(Cg()){const t=Hn(s_);if(t)return t}throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.")}function QP(t,e={}){const n=e.head||JP();return n.ssr?n.push(t||{},e):e$(n,t,e)}function e$(t,e,n={}){const s=ae(!1);let r;return fy(()=>{const o=s.value?{}:vu(e,YP);r?r.patch(o):r=t.push(o,n)}),En()&&(Ta(()=>{r.dispose()}),Pu(()=>{s.value=!0}),If(()=>{s.value=!1})),r}const t$=t=>new Date(t*1e3).toISOString().slice(t<3600?14:11,19),kI=t=>{const e=new Date,n=Math.floor((e.getTime()-t.getTime())/1e3);let s=n/31536e3;if(s>1){const r=Math.floor(s);return`${r} year${r>1?"s":""}`}if(s=n/2592e3,s>1){const r=Math.floor(s);return`${r} month${r>1?"s":""}`}if(s=n/86400,s>1){const r=Math.floor(s);return`${r} day${r>1?"s":""}`}if(s=n/3600,s>1){const r=Math.floor(s);return`${r} hour${r>1?"s":""}`}if(s=n/60,s>1){const r=Math.floor(s);return`${r} minute${r>1?"s":""}`}return"a few seconds"};function SI(t){return new Date(Number(t)*1e3).toLocaleDateString("en-GB",{day:"2-digit",month:"short",year:"numeric",timeZone:"UTC"})}const n$=Pa("preview",()=>{const t=ae(),e=is();return ct(()=>e.currentRoute.value,()=>t.value=void 0),{activeItem:t}}),s$=(t,e=1)=>{const n=[{value:1,symbol:""},{value:1e3,symbol:"k"},{value:1e6,symbol:"M"}],s=/\.0+$|(\.[0-9]*[1-9])0+$/,r=n.slice().reverse().find(function(i){return t>=i.value});return r?(t/r.value).toFixed(e).replace(s,"$1")+r.symbol:"0"},r$={key:0,class:"corner-icon flex gap-x-0.5 items-center"},i$={key:1,class:"absolute top-1.5 left-1.5 bg-black/70 text-[10px] px-1.5 py-0.5 rounded text-zinc-300 font-medium z-10"},o$={key:2,class:"absolute top-1.5 right-1.5 opacity-0 group-hover/item:opacity-100 transition-opacity flex gap-1 z-20"},a$=["poster","src"],l$={class:"absolute right-1.5 bottom-1.5 flex gap-1.5 transition-all"},u$={key:0,class:"bg-black/90 rounded px-2 backdrop-blur py-0.5 font-medium text-sm lg:text-xs shadow"},c$={class:"bg-black/90 rounded px-2 backdrop-blur py-0.5 font-medium text-sm lg:text-xs shadow"},d$={class:"py-1 px-2 md:px-0"},f$={class:"flex gap-1.5 text-zinc-400 md:text-sm"},h$={class:"flex-1 justify-end shrink-0 flex gap-1.5"},p$={class:"flex gap-x-0.5 items-center"},g$={class:"flex gap-x-0.5 items-center"},v$={class:"flex gap-x-0.5 items-center"},m$={class:"flex items-start justify-between gap-1"},_$={class:"flex flex-col"},y$={class:"flex flex-1 justify-between items-center gap-2"},b$={class:"flex flex-1 justify-between items-center gap-2"},w$={class:"truncate"},x$=Ze({__name:"VideosItem",props:{video:{},rounded:{type:Boolean},playlistId:{},active:{type:Boolean},eager:{type:Boolean},position:{},isOwner:{type:Boolean}},emits:["remove","setThumbnail","play"],setup(t,{emit:e}){const n=Cn(()=>Ae(()=>Promise.resolve().then(()=>mi),void 0,import.meta.url)),s=Cn(()=>Ae(()=>import("./ScriptHeatmap.ff8a7999.js"),["/assets/ScriptHeatmap.ff8a7999.js"],import.meta.url)),r=Cn(()=>Ae(()=>import("./AddToPlaylistDialog.c6b795d3.js"),["/assets/AddToPlaylistDialog.c6b795d3.js","/assets/playlists.da3a5c16.js","/assets/Pagination.vue_vue_type_script_setup_true_lang.8b7ec3c5.js"],import.meta.url)),i=Cn(()=>Ae(()=>import("./SettingsPopupListItem.779cec10.js"),["/assets/SettingsPopupListItem.779cec10.js"],import.meta.url)),o=Cn(()=>Ae(()=>Promise.resolve().then(()=>oS),void 0,import.meta.url)),a=Cn(()=>Ae(()=>import("./BottomSheet.9347c646.js"),["/assets/BottomSheet.9347c646.js"],import.meta.url)),l=Cn(()=>Ae(()=>import("./Button.2babf4e0.js"),["/assets/Button.2babf4e0.js"],import.meta.url)),u=Cn(()=>Ae(()=>Promise.resolve().then(()=>zx),void 0,import.meta.url)),c=Cn(()=>Ae(()=>import("./VideoForm.37e02e65.js"),["/assets/VideoForm.37e02e65.js","/assets/SelectInput.vue_vue_type_script_setup_true_lang.493d8564.js","/assets/ExtraInput.vue_vue_type_style_index_0_lang.6d02d9ec.js","/assets/ExtraInput.ce217577.css","/assets/VideoForm.ef97d00f.css"],import.meta.url)),{activeItem:d}=gs(n$()),p=Xe(),{isAuthorized:g,subscriptions:v,user:b,isAdmin:k}=gs(p),{authDialog:L}=gs(Ns()),{isMobile:E}=vi(),_=t,m=e,x=Math.random();let A;const h=ae(!1),S=ae(null),$=ae(!1),R=ae(!1),G=Ne(()=>!g.value||!b.value?!1:k.value?!0:Boolean(_.isOwner||_.video.user&&_.video.user.id===b.value.id)),H=()=>{h.value=!1,R.value=!0},ee=Array(20).fill(10),j=Ne(()=>v.value.some(Ke=>Ke.id===_.video.user.id)),le=async()=>
129{if(!g.value){L.value=!0,h.value=!1;return}try{await dt.rating.setRating(_.video.id,d1.Video)&&(_.video.rating.liked=!_.video.rating.liked,_.video.rating.likes+=_.video.rating.liked?1:-1)}catch(Ke){console.error("Failed to update rating:",Ke)}h.value=!1},X=async()=>{if(!g.value){L.value=!0,h.value=!1;return}try{if(j.value){await dt.user.unsubscribe(_.video.user);const Ke=v.value.findIndex(xe=>xe.id===_.video.user.id);Ke!==-1&&v.value.splice(Ke,1)}else await dt.user.subscribe(_.video.user),v.value.unshift(_.video.user)}catch(Ke){console.error("Failed to update subscription:",Ke)}h.value=!1},re=()=>{if(!g.value){L.value=!0,h.value=!1;return}$.value=!0,h.value=!1},ne=Ke=>{m("play"),_.playlistId&&Ke.preventDefault()},De=()=>{A=window.setTimeout(()=>{d.value=_.video.id+x},100)},ot=()=>{window.clearTimeout(A),d.value=void 0},nt=Ne(()=>d.value===_.video.id+x),ye=Ne(()=>{var Ke;return(Ke=_.video.tags)==null?void 0:Ke.some(xe=>xe.name.toLowerCase()==="faptapai"||xe.name.toLowerCase()==="ai")}),ut=Ne(()=>{if(!_.video.vr||_.video.projection==="MONO_FLAT")return"";const Ke=_.video.projection;return["STEREO_360_LR","STEREO_360_TB","STEREO_FISHEYE_200_LR","MONO_360"].includes(Ke)?"VR \xB7 360\xB0":["STEREO_180_LR","STEREO_180_TB","STEREO_180_LR_SPHERICAL","STEREO_180_TB_SPHERICAL"].includes(Ke)?"VR \xB7 180\xB0":["STEREO_FLAT_LR","STEREO_FLAT_TB","STEREO_FLAT_LR_SQUARE","STEREO_FLAT_TB_SQUARE"].includes(Ke)?"VR \xB7 3D":"VR"});return Bs(()=>window.clearTimeout(A)),(Ke,xe)=>{var B,I;const ft=fr("router-link");return _.video?(w(),C("div",{key:0,onTouchstartPassive:xe[8]||(xe[8]=W=>d.value=_.video.id+y(x)),class:Qe(["group/item text-white overflow-hidden transition-all duration-200",{"bg-zinc-800/60 rounded-xl":_.active}])},[f("div",{class:Qe(["relative overflow-hidden lg:rounded-md",{"!rounded-md":_.rounded}])},[T(ft,{to:{path:`/v/${_.video.id}`,query:_.playlistId?{playlist:_.playlistId,index:_.position!==void 0?_.position-1:void 0}:{}},onMouseenter:De,onMouseleave:ot,onClick:ne,class:Qe(["block aspect-video w-full bg-zinc-800 relative transition-all overflow-hidden",{"!bg-black":nt.value}])},{default:V(()=>[ye.value?(w(),C("span",r$,[T(Pe,{name:"ai",class:"h-100 w-100"})])):oe("",!0),_.position!==void 0?(w(),C("div",i$," #"+ce(_.position),1)):oe("",!0),_.isOwner?(w(),C("div",o$,[T(y(l),{theme:"transparent",dense:"",onClick:xe[0]||(xe[0]=It(W=>m("setThumbnail",_.video.user_thumbnail_url||_.video.thumbnail_url),["stop","prevent"])),class:"!bg-black/80 !rounded p-1 hover:!bg-zinc-700 transition-colors",title:"Set as playlist thumbnail"},{default:V(()=>[T(Pe,{name:"image",class:"w-3.5 h-3.5"})]),_:1}),T(y(l),{theme:"transparent",dense:"",onClick:xe[1]||(xe[1]=It(W=>m("remove",_.video.id,_.video.name),["stop","prevent"])),class:"!bg-black/80 !rounded p-1 hover:!bg-red-900 transition-colors",title:"Remove from playlist"},{default:V(()=>[T(Pe,{name:"delete",class:"w-3.5 h-3.5"})]),_:1})])):oe("",!0),_.video.preview_url&&nt.value?(w(),C("video",{key:3,onCanplay:xe[2]||(xe[2]=W=>W.target.play()),poster:y(ci)(_.video.user_thumbnail_url||_.video.thumbnail_url),src:nt.value?y(ci)(_.video.preview_url):"",autoplay:"",loop:"",playsinline:"",muted:"",class:"h-full w-full"},null,40,a$)):(w(),C(Ve,{key:4},[T(y(n),{src:_.video.user_thumbnail_url||_.video.thumbnail_url,alt:_.video.name,class:"h-full w-auto mx-auto object-cover",eager:_.eager},null,8,["src","alt","eager"]),f("div",l$,[_.video.vr?(w(),C("div",u$,[f("span",null,ce(ut.value),1)])):oe("",!0),f("div",c$,ce(y(t$)(_.video.duration)),1)])],64))]),_:1},8,["to","class"]),T(y(s),{hotspots:(I=(B=_.video.script)==null?void 0:B.hotspots)!=null&&I.length?_.video.script.hotspots:y(ee),max:_.video.duration||100,interactive:!1,class:"w-full h-[10px] pointer-events-none"},null,8,["hotspots","max"])],2),f("div",d$,[f("div",f$,[T(ft,{to:`/u/${_.video.user.username}`,class:"underline overflow-hidden overflow-ellipsis"},{default:V(()=>[N(ce(_.video.user.username),1)]),_:1},8,["to"]),f("div",h$,[f("span",p$,[T(Pe,{name:"eye",class:"h-4 w-4"}),N(" "+ce(y(s$)(_.video.views)),1)]),f("span",g$,[T(Pe,{name:"heart-outline",class:"h-4 w-4"}),N(" "+ce(_.video.rating.likes),1)]),f("span",v$,[T(Pe,{name:"speedometer",class:"h-4 w-4"}),N(" "+ce(_.video.script.average_speed),1)])])]),f("div",m$,[T(ft,{to:{path:`/v/${_.video.id}`,query:_.playlistId?{playlist:_.playlistId,index:_.position!==void 0?_.position-1:void 0}:{}},onClick:ne,class:"break-all line-clamp-2 text-lg md:text-base flex-1 min-w-0",title:_.video.name},{default:V(()=>[N(ce(_.video.name),1)]),_:1},8,["to","title"]),f("div",{ref_key:"menuBtn",ref:S,class:"shrink-0 leading-[0]"},[T(y(l),{onClick:xe[3]||(xe[3]=It(W=>h.value=!h.value,["stop","prevent"])),theme:h.value?"blue":"transparent",dense:"",class:"!p-1 rounded-full transition-colors"},{default:V(()=>[T(Pe,{name:"more",class:Qe(["w-5 h-5",h.value?"text-white":"text-zinc-400"])},null,8,["class"])]),_:1}
129,8,["theme"])],512)])]),(w(),pe(ps(y(E)?y(a):Mr),{modelValue:h.value,"onUpdate:modelValue":xe[4]||(xe[4]=W=>h.value=W),target:S.value,placement:"bottom",offset:8,class:"text-white text-sm py-1 w-auto shadow-xl"},{default:V(()=>[f("div",_$,[T(y(i),{icon:_.video.rating.liked?"heart":"heart-outline",onClick:le,active:_.video.rating.liked,"active-type":"icon"},{default:V(()=>[f("div",y$,[f("span",null,ce(_.video.rating.liked?"Liked":"Like video"),1)])]),_:1},8,["icon","active"]),T(y(i),{icon:"account-plus",onClick:X,active:j.value,"active-type":"icon"},{default:V(()=>[f("div",b$,[f("span",w$,ce(j.value?"Unsubscribe from ":"Subscribe to ")+ce(_.video.user.username),1)])]),_:1},8,["active"]),T(y(o)),T(y(i),{icon:"playlist",onClick:re},{default:V(()=>[...xe[9]||(xe[9]=[N(" Add to playlist ",-1)])]),_:1}),G.value?(w(),pe(y(i),{key:0,icon:"pencil",onClick:H},{default:V(()=>[...xe[10]||(xe[10]=[N(" Edit video ",-1)])]),_:1})):oe("",!0)])]),_:1},8,["modelValue","target"])),$.value?(w(),pe(y(r),{key:0,"is-open":$.value,"video-id":_.video.id,onClose:xe[5]||(xe[5]=W=>$.value=!1)},null,8,["is-open","video-id"])):oe("",!0),T(y(u),{modelValue:R.value,"onUpdate:modelValue":xe[7]||
129(xe[7]=W=>R.value=W)},{default:V(()=>[T(y(c),{video:_.video,onSubmitVideo:xe[6]||(xe[6]=W=>R.value=!1)},null,8,["video"])]),_:1},8,["modelValue"])],34)):oe("",!0)}}}),C$=t=>!t||typeof t!="string"?"":t.replace(/\w\S*/g,e=>typeof e=="string"?e.charAt(0).toUpperCase()+e.substring(1).toLowerCase():""),k$={key:0,class:"w-full"},S$={class:"drop-shadow truncate"},E$=Ze({__name:"TagsList",props:{tags:{default:()=>[]},selectedSlugs:{default:()=>[]},showAllLink:{type:Boolean,default:!1},allTagsRoute:{default:"/tags"},titleCase:{type:Boolean,default:!0},maxRows:{default:2}},setup(t){const e=t,n=ae(null),s=ae(e.tags.length),r=ae(!1),i=d=>e.selectedSlugs.includes(d.slug),o=Ne(()=>r.value?e.tags:e.tags.slice(0,s.value)),a=Ne(()=>s.value<e.tags.length),l=()=>{var b;if(!n.value||!e.tags.length||r.value)return;const d=Array.from(n.value.querySelectorAll(".tag-pill"));if(!d.length)return;let p=0,g=1,v=d[0].offsetTop;for(let k=0;k<d.length;k++){if(d[k].offsetTop-v>10){if(++g>e.maxRows)break;v=d[k].offsetTop}p=k+1}if(p<e.tags.length){const k=n.value.getBoundingClientRect().right;for(;p>1&&((b=d[p-1])==null?void 0:b.getBoundingClientRect().right)+54>k;)p--}s.value=Math.max(1,p)},u=()=>{r.value||(s.value=e.tags.length,Hr(l))};ct(()=>e.tags,u,{deep:!0,immediate:!0});let c=null;return zn(()=>{n.value&&typeof ResizeObserver<"u"&&(c=new ResizeObserver(u),c.observe(n.value)),u()}),Bs(()=>c==null?void 0:c.disconnect()),(d,p)=>{var v;const g=fr("router-link");return(v=t.tags)!=null&&v.length?(w(),C("div",k$,[f("div",{ref_key:"containerRef",ref:n,class:"flex flex-wrap gap-1.5 mt-1.5"},[(w(!0),C(Ve,null,Bt(o.value,b=>(w(),pe(g,{key:b.slug,to:`/t/${b.slug}`,class:Qe(["tag-pill rounded-lg flex items-center justify-center font-bold text-1xl bg-zinc-800 hover:bg-zinc-700 px-4 py-2 truncate transition text-zinc-100",{"selected-tag-white-bg":i(b)}])},{default:V(()=>[f("span",S$,ce(t.titleCase?y(C$)(b.name):b.name),1)]),_:2},1032,["to","class"]))),128)),!r.value&&a.value?(w(),C("button",{key:0,type:"button",onClick:p[0]||(p[0]=b=>r.value=!0),class:"rounded-lg flex items-center justify-center bg-zinc-800 hover:bg-zinc-700 px-4 py-2 text-zinc-100 transition cursor-pointer","aria-label":"Show all tags"},[T(Pe,{name:"chevron-faq",class:"w-5 h-5"})])):oe("",!0),r.value&&t.showAllLink?(w(),pe(g,{key:1,to:t.allTagsRoute,class:"rounded-lg flex items-center justify-center font-bold text-1xl bg-zinc-800 hover:bg-zinc-700 px-4 py-2 text-white transition"},{default:V(()=>[...p[1]||(p[1]=[N(" All Tags ",-1)])]),_:1},8,["to"])):oe("",!0)],512)])):oe("",!0)}}}),A$="Faptap",Rt="https://faptap.net",Wt=`${Rt}/faptap-property-image.webp`;function EI(t){return t?t.startsWith("http")?t:`${Rt}/api/assets/${t}`:Wt}const F0={home:{url:`${Rt}/`,type:"website",image:Wt},videos:{url:`${Rt}/videos`,type:"website",image:Wt,seeAlso:[`${Rt}/videos?page=2`,`${Rt}/videos?page=3`]},tags:{url:"",type:"website",image:Wt,seeAlso:[`${Rt}/tags?page=2`,`${Rt}/tags/B`,`${Rt}/t/pov`]},creators:{url:`${Rt}/creators`,type:"website",image:Wt,seeAlso:[`${Rt}/creators?page=2`,`${Rt}/u/Slibowitz`]},performers:{url:`${Rt}/performers`,type:"website",image:Wt,seeAlso:[`${Rt}/performers?page=2`,`${Rt}/p/AbellaDanger`]},faptapai:{url:`${Rt}/faptapai`,type:"website",image:Wt},privacy:{url:`${Rt}/privacy-policy`,type:"article",image:Wt},"single-tag":{url:"",type:"website",image:Wt},"single-creator":{url:"",type:"profile",image:Wt},"single-performer":{url:"",type:"profile",image:Wt},"manage-tags":{url:`${Rt}/manage-tags`,type:"website",image:Wt},"manage-redirections":{url:`${Rt}/manage-redirections`,type:"website",image:Wt},"manage-ads":{url:`${Rt}/manage-ads`,type:"website",image:Wt},admin:{url:`${Rt}/admin`,type:"website",image:Wt},"manage-performers":{url:`${Rt}/manage-performers`,type:"website",image:Wt},"manage-geo-blocks":{url:`${Rt}/manage-geo-blocks`,type:"website",image:Wt},"taxonomy-manager":{url:`${Rt}/taxonomy`,type:"website",image:Wt},"taxonomy-aliases":{url:`${Rt}/taxonomy/aliases`,type:"website",image:Wt},playlists:{url:`${Rt}/playlists`,type:"website",image:Wt}};function L$(t,e={}){var i,o;const s={...F0[t]||F0.home,...e},r=[{property:"og:type",content:s.type||"website"},{property:"og:site_name",content:A$},{property:"og:url",content:s.url},{property:"og:image",content:s.image||Wt}];return s.title&&r.push({property:"og:title",content:s.title}),s.description&&r.push({property:"og:description",content:s.description}),s.description&&r.push({name:"description",content:s.description}),s.seeAlso&&r.push(...s.seeAlso.map(a=>({property:"og:see_also",content:a}))),s.updated_time&&r.push({property:"og:updated_time",content:s.updated_time}),"duration"in s&&s.duration&&r.push({property:"og:duration",content:String(s.duration)}),"tags"in s&&((i=s.tags)==null?void 0:i.length)&&r.push(...s.tags.slice(0,10).map(a=>({property:"og:video:tag",content:a}))),"actors"in s&&((o=s.actors)==null?void 0:o.length)&&r.push(...s.actors.map(a=>({property:"og:video:actor",content:a}))),r.push({name:"twitter:card",content:"summary_large_image"},{name:"twitter:domain",content:"faptap.net"},{name:"twitter:url",content:s.url}),s.title&&r.push({name:"twitter:title",content:s.title}),s.description&&r.push({name:"twitter:description",content:s.description}),r.push({name:"twitter:image",content:s.image||Wt}),{title:s.title,meta:r,link:[{rel:"canonical",href:s.url}]}}const T$={class:"text-white overflow-hidden"},M$={class:"relative overflow-hidden lg:rounded-md"},O$={class:"py-1 px-2 md:px-0"},P$={class:"flex gap-1.5 text-zinc-400 md:text-sm"},$$={class:"underline overflow-hidden overflow-ellipsis"},R$={class:"flex-1 justify-end shrink-0 flex gap-1.5"},V$={class:"flex gap-x-0.5 items-center"},I$={class:"flex gap-x-0.5 items-center"},H$={class:"flex gap-x-0.5 items-center"},F$=Ze({__name:"AffiliateListItem",props:{affiliate:{}},setup(t){const e=Cn(()=>Ae(()=>import("./ScriptHeatmap.ff8a7999.js"),["/assets/ScriptHeatmap.ff8a7999.js"],import.meta.url)),n=t,s=Xe(),r=Array(20).fill(10);return(i,o)=>(w(),C("div",T$,[f("div",M$,[T(wf,{affiliate:n.affiliate,class:"aspect-video rounded overflow-hidden w-full"},null,8,["affiliate"]),T(y(e),{hotspots:y(r),max:100,class:"w-full h-[10px] pointer-events-none"},null,8,["hotspots"])]),f("div",O$,[f("div",P$,[f("span",$$,ce(y(s).isProduction?"FapTap":"User Name"),1),f("div",R$,[f("span",V$,[T(Pe,{name:"eye",class:"h-4 w-4"}),o[0]||(o[0]=N("173 ",-1))]),f("span",I$,[T(Pe,{name:"heart-outline",class:"h-4 w-4"}),o[1]||(o[1]=N("47 ",-1))]),f("span",H$,[T(Pe,{name:"speedometer",class:"h-4 w-4"}),o[2]||(o[2]=N("376 ",-1))])])]),o[3]||(o[3]=f("div",{class:"flex items-start justify-between gap-1"},[f("span",{class:"break-all line-clamp-2 text-lg md:text-base flex-1 min-w-0"},"Special Offer")],-1))])]))}}),D$={key:1},B$={key:0,class:"welcome-message mb-4"},N$={key:0},j$={key:0,class:"flex items-center text-white gap-x-2 mb-4"},U$={class:"px-2 lg:px-0 text-xl lg:text-2xl !leading-none font-medium mt
129-2"},z$=["src","alt"],q$={class:"drop-shadow relative z-10"},W$={key:3,class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-5 gap-4"},G$=7,D0=Ze({__name:"Home",async setup(t){let e,n;Cn(()=>Ae(()=>Promise.resolve().then(()=>mi),void 0,import.meta.url));const s=is(),{isMobile:r}=vi(),{random:i}=K2(),o=m=>k.value.filter(A=>A.type==="videos").findIndex(A=>A.title===m.title),a=m=>{if(r)return 3;const x=o(m);return x===-1?-1:x%2===0?4:5};function l(m){return r?m.slice(0,G$):m}function u(m){const x=l(m);return x.length===0?[]:x.slice(0,x.length-1)}const c=Xe(),{isProduction:d,getOrientation:p}=c,g=ae([10,20]),v=ae([100,500]),b=ae(!1),k=ae([]),L=ae(!localStorage.getItem("hasVisited"));L.value&&localStorage.setItem("hasVisited","true"),k.value=([e,n]=Dy(()=>dt.feed.getFeed(g.value[0],g.value[1],v.value[0],v.value[1],p()||Et.Straight)),e=await e,n(),e);const E=async()=>{const m=await dt.videos.getVideo("random");s.push(`/v/${m.id}`)};zn(async()=>{}),Bs(()=>{});const _=Ne(()=>L$("home",{url:"https://faptap.net",title:d?"FapTap - The Interactive Porn Experience":"Demo",description:"Welcome to Faptap, the biggest interactive porn site in the world. All the videos here sync with any of 500 different sex toys.",updated_time:new Date().toISOString()}));return QP(_),(m,x)=>{const A=fr("router-link");return b.value?(w(),pe(Y2,{key:0})):(w(),C("div",D$,[L.value?(w(),C("div",B$,[y(Xe)().isProduction?(w(),C("div",N$,[...x[0]||(x[0]=[f("b",{class:"welcome-message-header"},[N(" \u{1F44B} \xA0 Welcome to Faptap, the "),f("u",null,"biggest interactive porn site"),N(" in the world. ")],-1),N(" All of the videos here sync with any of 500 different toys, so you can feel porn instead of just watching it. Stop watching caveman porn and insert yourself into the action!",-1),f("br",null,null,-1),N(" Faptap is free, and the best male masturbators are just $100. That\u2019s two avocado toasts and a parking ticket you weren\u2019t going to pay anyway. Click any video to see how syncing works. ",-1)])])):oe("",!0)])):oe("",!0),(w(!0),C(Ve,null,Bt(k.value,(h,S)=>{var $;return w(),C("div",{key:($=h.title)!=null?$:`${h.type}-${S}`,class:"mb-8"},[h.title&&h.type!=="products"?(w(),C("div",j$,[f("h1",U$,ce(h.title),1)])):oe("",!0),h.type==="categories"?(w(),pe(L1,{key:1,gap:"gap-2 lg:gap-4"},{default:V(()=>[f("button",{onClick:E,class:"aspect-video rounded-md overflow-hidden h-24 w-44 flex-shrink-0 group flex items-center justify-center font-bold text-2xl relative z-10 bg-zinc-800"},[...x[1]||(x[1]=[f("img",{src:"/categories/random.jpg",alt:"Random Category",class:"absolute inset-0 w-full h-full object-cover opacity-50 group-hover:opacity-25 -z-10",loading:"lazy",width:"176",height:"96"},null,-1),f("span",{class:"drop-shadow relative z-10"},"Random",-1)])]),(w(!0),C(Ve,null,Bt(h.data,R=>{var G,H;return w(),pe(A,{key:(G=R.slug)!=null?G:R.name,to:`/t/${(H=R.slug)!=null?H:R.name}`,class:"aspect-video rounded overflow-hidden h-24 w-44 flex-shrink-0 group flex items-center justify-center font-bold text-2xl relative z-10 bg-zinc-800"},{default:V(()=>[f("img",{src:y(Xe)().isProduction?R.image_url:"/categories/random.jpg",alt:y(Xe)().isProduction?R.name:"category",class:"absolute inset-0 w-full h-full object-cover opacity-50 group-hover:opacity-25 -z-10",loading:"lazy",width:"176",height:"96"},null,8,z$),f("span",q$,ce(y(Xe)().isProduction?R.name:"category"),1)]),_:2},1032,["to"])}),128))]),_:2},1024)):oe("",!0),h.type==="tags"?(w(),C(Ve,{key:2},[h.title==="Popular Tags"?(w(),pe(E$,{key:0,tags:h.data,titleCase:!1,"show-all-link":!0},null,8,["tags"])):oe("",!0)],64)):h.type==="videos"?(w(),C("div",W$,[(w(!0),C(Ve,null,Bt(u(h.data),(R,G)=>(w(),C(Ve,{key:R.id},[G===a(h)?(w(),pe(F$,{key:"ad-"+R.id,affiliate:y(i)(o(h),1)},null,8,["affiliate"])):oe("",!0),T(x$,{video:R,eager:G<5},null,8,["video","eager"])],64))),128))])):oe("",!0)])}),128))]))}}});const Z$=()=>Ae(()=>import("./User.1463e09d.js"),["/assets/User.1463e09d.js","/assets/VideosList.vue_vue_type_style_index_0_lang.50b2a65e.js","/assets/Notfound.vue_vue_type_script_setup_true_lang.b9e0406b.js","/assets/Pagination.vue_vue_type_script_setup_true_lang.8b7ec3c5.js","/assets/PlaylistsList.vue_vue_type_script_setup_true_lang.dcc03c1b.js","/assets/CreatePlaylistDialog.vue_vue_type_script_setup_true_lang.88885215.js","/assets/playlists.da3a5c16.js","/assets/ExtraInput.vue_vue_type_style_index_0_lang.6d02d9ec.js","/assets/SelectInput.vue_vue_type_script_setup_true_lang.493d8564.js","/assets/SubscriptionButton.vue_vue_type_script_setup_true_lang.6e0401d4.js","/assets/ExpandableText.vue_vue_type_style_index_0_lang.f6ea13cb.js","/assets/Avatar.vue_vue_type_script_setup_true_lang.87e6bbe3.js","/assets/VideosList.fe63fa54.css","/assets/ExtraInput.ce217577.css","/assets/ExpandableText.dce2eb38.css"],import.meta.url),K$=()=>Ae(()=>import("./Performer.10a8090f.js"),["/assets/Performer.10a8090f.js","/assets/VideosList.vue_vue_type_style_index_0_lang.50b2a65e.js","/assets/Notfound.vue_vue_type_script_setup_true_lang.b9e0406b.js","/assets/Pagination.vue_vue_type_script_setup_true_lang.8b7ec3c5.js","/assets/Avatar.vue_vue_type_script_setup_true_lang.87e6bbe3.js","/assets/ExpandableText.vue_vue_type_style_index_0_lang.f6ea13cb.js","/assets/ReportDialog.vue_vue_type_script_setup_true_lang.571cdeb2.js","/assets/ExtraInput.vue_vue_type_style_index_0_lang.6d02d9ec.js","/assets/NotFoundPage.vue_vue_type_script_setup_true_lang.8305e1c5.js","/assets/PlaylistsList.vue_vue_type_script_setup_true_lang.dcc03c1b.js","/assets/CreatePlaylistDialog.vue_vue_type_script_setup_true_lang.88885215.js","/assets/playlists.da3a5c16.js","/assets/SelectInput.vue_vue_type_script_setup_true_lang.493d8564.js","/assets/VideosList.fe63fa54.css","/assets/ExpandableText.dce2eb38.css","/assets/ExtraInput.ce217577.css"],import.meta.url),Y$=()=>Ae(()=>import("./Creators.873fbe78.js"),["/assets/Creators.873fbe78.js","/assets/Avatar.vue_vue_type_script_setup_true_lang.87e6bbe3.js","/assets/Notfound.vue_vue_type_script_setup_true_lang.b9e0406b.js","/assets/Pagination.vue_vue_type_script_setup_true_lang.8b7ec3c5.js"],import.meta.url),X$=()=>Ae(()=>import("./Preferences.35be7055.js"),["/assets/Preferences.35be7055.js"],import.meta.url),J$=()=>Ae(()=>import("./Tags.89be10a6.js"),["/assets/Tags.89be10a6.js","/assets/Notfound.vue_vue_type_script_setup_true_lang.b9e0406b.js","/assets/Pagination.vue_vue_type_script_setup_true_lang.8b7ec3c5.js"],import.meta.url),Q$=()=>Ae(()=>import("./Tag.9962d9d6.js"),["/assets/Tag.9962d9d6.js","/assets/NotFoundPage.vue_vue_type_script_setup_true_lang.8305e1c5.js","/assets/VideosList.vue_vue_type_style_index_0_lang.50b2a65e.js","/assets/Notfound.vue_vue_type_script_setup_true_lang.b9e0406b.js","/assets/Pagination.vue_vue_type_script_setup_true_lang.8b7ec3c5.js","/assets/PlaylistsList.vue_vue_type_script_setup_true_lang.dcc03c1b.js","/assets/CreatePlaylistDialog.vue_vue_type_script_setup_true_lang.88885215.js","/assets/playlists.da3a5c16.js","/assets/ExtraInput.vue_vue_type_style_index_0_lang.6d02d9ec.js","/assets/SelectInput.vue_vue_type_script_setup_true_lang.493d8564.js","/assets/ReportDialog.vue_vue_type_script_setup_true_lang.571cdeb2.js","/assets/ExpandableText.vue_vue_type_style_index_0_lang.f6ea13cb.js","/assets/VideosList.fe63fa54.css","/assets/ExtraInput.ce217577.css","/assets/ExpandableText.dce2eb38.css"],import.meta.url),eR=()=>Ae(()=>import("./Feed.daebdf2b.js"),["/assets/Feed.daebdf2b.js","/assets/SubscriptionButton.vue_vue_type_script_setup_true_lang.6e0401d4.js","/assets/Avatar.vue_vue_type_script_setup_true_lang.87e6bbe3.js","/assets/VideosList.vue_vue_type_style_index_0_lang.50b2a65e.js","/assets/Notfound.vue_vue_type_script_setup_true_lang.b9e0406b.js","/assets/Pagination.vue_vue_type_script_setup_true_lang.8b7ec3c5.js","/assets/VideosList.fe63fa54.css"],import.meta.url),tR=()=>Ae(()=>import("./Likes.7093e6c5.js"),["/assets/Likes.7093e6c5.js","/assets/VideosList.vue_vue_type_style_index_0_lang.50b2a65e.js","/assets/Notfound.vue_vue_type_script_setup_true_lang.b9e0406b.js","/assets/Pagination.vue_vue_type_script_setup_true_lang.8b7ec3c5.js","/assets/VideosList.fe63fa54.css"],import.meta.url),nR=()=>Ae(()=>import("./Performers.ae903ba4.js"),["/assets/Performers.ae903ba4.js","/assets/Avatar.vue_vue_type_script_setup_true_lang.87e6bbe3.js","/assets/Notfound.vue_vue_type_script_setup_true_lang.b9e0406b.js","/assets/Pagination.vue_vue_type_script_setup_true_lang.8b7ec3c5.js"],import.meta.url),sR=()=>Ae(()=>import("./Videos.cf72fe6c.js"),["/assets/Videos.cf72fe6c.js","/assets/VideosList.vue_vue_type_style_index_0_lang.50b2a65e.js","/assets/Notfound.vue_vue_type_script_setup_true_lang.b9e0406b.js","/assets/Pagination.vue_vue_type_script_setup_true_lang.8b7ec3c5.js","/assets/VideosList.fe63fa54.css"],import.meta.url),rR=()=>Ae(()=>import("./Video.246a35a0.js"),["/assets/Video.246a35a0.js","/assets/VRPlayer.vue_vue_type_style_index_0_lang.a44f4621.js","/assets/metric.84224865.js","/assets/playlists.da3a5c16.js","/assets/NotFoundPage.vue_vue_type_script_setup_true_lang.8305e1c5.js","/assets/VideosList.vue_vue_type_style_index_0_lang.50b2a65e.js","/assets/Notfound.vue_vue_type_script_setup_true_lang.b9e0406b.js","/assets/Pagination.vue_vue_type_script_setup_true_lang.8b7ec3c5.js","/assets/PlaylistsList.vue_vue_type_script_setup_true_lang.dcc03c1b.js","/assets/CreatePlaylistDialog.vue_vue_type_script_setup_true_lang.88885215.js","/assets/ExtraInput.vue_vue_type_style_index_0_lang.6d02d9ec.js","/assets/SelectInput.vue_vue_type_script_setup_true_lang.493d8564.js","/assets/ProductScroller.vue_vue_type_script_setup_true_lang.358909e3.js","/assets/VRPlayer.1b7a2b11.css","/assets/VideosList.fe63fa54.css","/assets/ExtraInput.ce217577.css","/assets/Video.e684ebd0.css"],import.meta.url),iR=()=>Ae(()=>import("./Funscript.942a8324.js"),["/assets/Funscript.942a8324.js","/assets/Avatar.vue_vue_type_script_setup_true_lang.87e6bbe3.js","/assets/ExpandableText.vue_vue_type_style_index_0_lang.f6ea13cb.js","/assets/SubscriptionButton.vue_vue_type_script_setup_true_lang.6e0401d4.js","/assets/SelectInput.vue_vue_type_script_setup_true_lang.493d8564.js","/assets/Player.vue_vue_type_script_setup_true_lang.373c1e69.js","/assets/VRPlayer.vue_vue_type_style_index_0_lang.a44f4621.js","/assets/metric.84224865.js","/assets/ProductScroller.vue_vue_type_script_setup_true_lang.358909e3.js","/assets/NotFoundPage.vue_vue_type_script_setup_true_lang.8305e1c5.js","/assets/VideosList.vue_vue_type_style_index_0_lang.50b2a65e.js","/assets/Notfound.vue_vue_type_script_setup_true_lang.b9e0406b.js","/assets/Pagination.vue_vue_type_script_setup_true_lang.8b7ec3c5.js","/assets/PlaylistsList.vue_vue_type_script_setup_true_lang.dcc03c1b.js","/assets/CreatePlaylistDialog.vue_vue_type_script_setup_true_lang.88885215.js","/assets/playlists.da3a5c16.js","/assets/ExtraInput.vue_vue_type_style_index_0_lang.6d02d9ec.js","/assets/ExpandableText.dce2eb38.css","/assets/VRPlayer.1b7a2b11.css","/assets/VideosList.fe63fa54.css","/assets/ExtraInput.ce217577.css"],import.meta.url),oR=()=>Ae(()=>import("./Funscripts.79eb2154.js"),["/assets/Funscripts.79eb2154.js","/assets/Notfound.vue_vue_type_script_setup_true_lang.b9e0406b.js","/assets/Pagination.vue_vue_type_script_setup_true_lang.8b7ec3c5.js","/assets/Funscripts.3ac600b9.css"],import.meta.url),aR=()=>Ae(()=>
129import("./Faptapai.e94a4d43.js"),["/assets/Faptapai.e94a4d43.js","/assets/Faptapai.226b6d83.css"],import.meta.url),lR=()=>Ae(()=>import("./CreateUserFunscript.96b690fa.js"),["/assets/CreateUserFunscript.96b690fa.js"],import.meta.url),uR=()=>Ae(()=>import("./LiveStream.fcd22da5.js"),["/assets/LiveStream.fcd22da5.js","/assets/Loader.vue_vue_type_script_setup_true_lang.322b4473.js","/assets/ThreeJS.vue_vue_type_script_setup_true_lang.af0f9bd6.js","/assets/vendor-threejs.ada2e648.js","/assets/vendor-tfjs.9e8265da.js","/assets/LiveStream.7b3f3db0.css"],import.meta.url),cR=()=>Ae(()=>import("./Subscribe.960b271f.js"),["/assets/Subscribe.960b271f.js"],import.meta.url),dR=()=>Ae(()=>import("./Mosa3js.f83d0a93.js"),["/assets/Mosa3js.f83d0a93.js","/assets/ThreeJS.vue_vue_type_script_setup_true_lang.af0f9bd6.js","/assets/vendor-threejs.ada2e648.js","/assets/metric.84224865.js"],import.meta.url),fR=()=>Ae(()=>import("./Gymmode.c9f9e68f.js"),["/assets/Gymmode.c9f9e68f.js","/assets/Loader.vue_vue_type_script_setup_true_lang.322b4473.js","/assets/Gymmode.5a1f568e.css"],import.meta.url),hR=()=>Ae(()=>import("./Page.f8462d31.js"),["/assets/Page.f8462d31.js","/assets/Page.d4f95158.css"],import.meta.url),pR=()=>Ae(()=>import("./Badtag.a0391174.js"),["/assets/Badtag.a0391174.js","/assets/Notfound.vue_vue_type_script_setup_true_lang.b9e0406b.js"],import.meta.url),gR=()=>Ae(()=>import("./AnimatedTags.2eb5462e.js"),["/assets/AnimatedTags.2eb5462e.js","/assets/Notfound.vue_vue_type_script_setup_true_lang.b9e0406b.js"],import.meta.url),vR=()=>Ae(()=>import("./ManageTags.8d79c89e.js"),["/assets/ManageTags.8d79c89e.js","/assets/Notfound.vue_vue_type_script_setup_true_lang.b9e0406b.js","/assets/ExtraInput.vue_vue_type_style_index_0_lang.6d02d9ec.js","/assets/Pagination.vue_vue_type_script_setup_true_lang.8b7ec3c5.js","/assets/ExtraInput.ce217577.css","/assets/ManageTags.5b4f9741.css"],import.meta.url),mR=()=>Ae(()=>import("./ManagePerformers.4747bd90.js"),["/assets/ManagePerformers.4747bd90.js","/assets/Avatar.vue_vue_type_script_setup_true_lang.87e6bbe3.js","/assets/Notfound.vue_vue_type_script_setup_true_lang.b9e0406b.js","/assets/ExtraInput.vue_vue_type_style_index_0_lang.6d02d9ec.js","/assets/Pagination.vue_vue_type_script_setup_true_lang.8b7ec3c5.js","/assets/ExtraInput.ce217577.css"],import.meta.url),_R=()=>Ae(()=>import("./Monitoring.9af32453.js"),["/assets/Monitoring.9af32453.js","/assets/Pagination.vue_vue_type_script_setup_true_lang.8b7ec3c5.js"],import.meta.url),yR=()=>Ae(()=>import("./ManageRedirection.4eb82d79.js"),["/assets/ManageRedirection.4eb82d79.js","/assets/Notfound.vue_vue_type_script_setup_true_lang.b9e0406b.js","/assets/Pagination.vue_vue_type_script_setup_true_lang.8b7ec3c5.js","/assets/ManageRedirection.7f922b42.css"],import.meta.url),bR=()=>Ae(()=>import("./TaxonomyManager.9de00c09.js"),["/assets/TaxonomyManager.9de00c09.js","/assets/Avatar.vue_vue_type_script_setup_true_lang.87e6bbe3.js","/assets/Notfound.vue_vue_type_script_setup_true_lang.b9e0406b.js","/assets/Pagination.vue_vue_type_script_setup_true_lang.8b7ec3c5.js","/assets/TaxonomyMergeModal.vue_vue_type_script_setup_true_lang.d9b24f76.js"],import.meta.url),wR=()=>Ae(()=>import("./TaxonomyAliases.bf878f29.js"),["/assets/TaxonomyAliases.bf878f29.js","/assets/Avatar.vue_vue_type_script_setup_true_lang.87e6bbe3.js","/assets/Notfound.vue_vue_type_script_setup_true_lang.b9e0406b.js","/assets/Pagination.vue_vue_type_script_setup_true_lang.8b7ec3c5.js"],import.meta.url),xR=()=>Ae(()=>import("./ManageAds.7062f4b1.js"),["/assets/ManageAds.7062f4b1.js","/assets/Notfound.vue_vue_type_script_setup_true_lang.b9e0406b.js","/assets/Pagination.vue_vue_type_script_setup_true_lang.8b7ec3c5.js"],import.meta.url),CR=()=>Ae(()=>import("./PrivacyPolicy.2b16df27.js"),["/assets/PrivacyPolicy.2b16df27.js"],import.meta.url),kR=()=>Ae(()=>import("./TermsOfService.fd493325.js"),["/assets/TermsOfService.fd493325.js"],import.meta.url),SR=()=>Ae(()=>import("./Compliance2257.35b89f09.js"),["/assets/Compliance2257.35b89f09.js"],import.meta.url),ER=()=>Ae(()=>import("./DmcaPolicy.d2a7a3e6.js"),["/assets/DmcaPolicy.d2a7a3e6.js"],import.meta.url),AR=()=>Ae(()=>import("./Contact.17f46f75.js"),["/assets/Contact.17f46f75.js"],import.meta.url),LR=()=>Ae(()=>import("./About.83df3698.js"),["/assets/About.83df3698.js"],import.meta.url),TR=()=>Ae(()=>import("./Faq.9f6b451d.js"),["/assets/Faq.9f6b451d.js"],import.meta.url),MR=()=>Ae(()=>import("./Support.feaebc15.js"),["/assets/Support.feaebc15.js"],import.meta.url),OR=()=>Ae(()=>import("./HowToUploadScript.9e2df926.js"),["/assets/HowToUploadScript.9e2df926.js"],import.meta.url),PR=()=>Ae(()=>import("./Advertising.e4b90d8a.js"),["/assets/Advertising.e4b90d8a.js"],import.meta.url),$R=()=>Ae(()=>import("./CreatorGuidelines.d75ed2a5.js"),["/assets/CreatorGuidelines.d75ed2a5.js"],import.meta.url),RR=()=>Ae(()=>import("./BecomeCreator.ae89f485.js"),["/assets/BecomeCreator.ae89f485.js"],import.meta.url),VR=()=>Ae(()=>import("./ResponsibleAccess.ffca134f.js"),["/assets/ResponsibleAccess.ffca134f.js"],import.meta.url),IR=()=>Ae(()=>import("./CookiePolicy.8d139972.js"),["/assets/CookiePolicy.8d139972.js"],import.meta.url),HR=()=>Ae(()=>import("./Playlists.62bae607.js"),["/assets/Playlists.62bae607.js","/assets/PlaylistsList.vue_vue_type_script_setup_true_lang.dcc03c1b.js","/assets/Notfound.vue_vue_type_script_setup_true_lang.b9e0406b.js","/assets/Pagination.vue_vue_type_script_setup_true_lang.8b7ec3c5.js","/assets/CreatePlaylistDialog.vue_vue_type_script_setup_true_lang.88885215.js","/assets/playlists.da3a5c16.js","/assets/ExtraInput.vue_vue_type_style_index_0_lang.6d02d9ec.js","/assets/SelectInput.vue_vue_type_script_setup_true_lang.493d8564.js","/assets/ExtraInput.ce217577.css"],import.meta.url),FR=()=>Ae(()=>import("./Playlist.1d74b042.js"),["/assets/Playlist.1d74b042.js","/assets/playlists.da3a5c16.js","/assets/Avatar.vue_vue_type_script_setup_true_lang.87e6bbe3.js","/assets/CreatePlaylistDialog.vue_vue_type_script_setup_true_lang.88885215.js","/assets/ExtraInput.vue_vue_type_style_index_0_lang.6d02d9ec.js","/assets/SelectInput.vue_vue_type_script_setup_true_lang.493d8564.js","/assets/Rating.vue_vue_type_script_setup_true_lang.3ad4ff04.js","/assets/ExpandableText.vue_vue_type_style_index_0_lang.f6ea13cb.js","/assets/NotFoundPage.vue_vue_type_script_setup_true_lang.8305e1c5.js","/assets/VideosList.vue_vue_type_style_index_0_lang.50b2a65e.js","/assets/Notfound.vue_vue_type_script_setup_true_lang.b9e0406b.js","/assets/Pagination.vue_vue_type_script_setup_true_lang.8b7ec3c5.js","/assets/PlaylistsList.vue_vue_type_script_setup_true_lang.dcc03c1b.js","/assets/Comments.vue_vue_type_script_setup_true_lang.270db979.js","/assets/ReportDialog.vue_vue_type_script_setup_true_lang.571cdeb2.js","/assets/ExtraInput.ce217577.css","/assets/ExpandableText.dce2eb38.css","/assets/VideosList.fe63fa54.css"],import.meta.url),DR=()=>Ae(()=>import("./Studio.0855ec48.js"),["/assets/Studio.0855ec48.js"],import.meta.url),BR=()=>Ae(()=>import("./Videos.56a9a7a5.js"),["/assets/Videos.56a9a7a5.js","/assets/Notfound.vue_vue_type_script_setup_true_lang.b9e0406b.js","/assets/VideoForm.37e02e65.js","/assets/SelectInput.vue_vue_type_script_setup_true_lang.493d8564.js","/assets/ExtraInput.vue_vue_type_style_index_0_lang.6d02d9ec.js","/assets/Pagination.vue_vue_type_script_setup_true_lang.8b7ec3c5.js","/assets/ExtraInput.ce217577.css","/assets/VideoForm.ef97d00f.css","/assets/Videos.8d102e31.css"],import.meta.url),NR=()=>Ae(()=>import("./CreateVideo.a880fec3.js"),["/assets/CreateVideo.a880fec3.js","/assets/VideoForm.37e02e65.js","/assets/SelectInput.vue_vue_type_script_setup_true_lang.493d8564.js","/assets/ExtraInput.vue_vue_type_style_index_0_lang.6d02d9ec.js","/assets/ExtraInput.ce217577.css","/assets/VideoForm.ef97d00f.css"],import.meta.url),jR=()=>Ae(()=>import("./EditVideo.03c00f3f.js"),["/assets/EditVideo.03c00f3f.js","/assets/VideoForm.37e02e65.js","/assets/SelectInput.vue_vue_type_script_setup_true_lang.493d8564.js","/assets/ExtraInput.vue_vue_type_style_index_0_lang.6d02d9ec.js","/assets/ExtraInput.ce217577.css","/assets/VideoForm.ef97d00f.css"],import.meta.url),UR=()=>Ae(()=>import("./ManageGeoBlocks.8f6071dd.js"),["/assets/ManageGeoBlocks.8f6071dd.js"],import.meta.url),zR=()=>Ae(()=>import("./ManageNotification.63810e38.js"),["/assets/ManageNotification.63810e38.js","/assets/ExtraInput.vue_vue_type_style_index_0_lang.6d02d9ec.js","/assets/ExtraInput.ce217577.css","/assets/ManageNotification.a51514d1.css"],import.meta.url),qR=()=>Ae(()=>import("./Notification.da87c9bd.js"),["/assets/Notification.da87c9bd.js","/assets/Avatar.vue_vue_type_script_setup_true_lang.87e6bbe3.js"],import.meta.url),WR=[{path:"/",name:"home",component:D0},{path:"/feed",name:"feed",component:eR},{path:"/videos/:slug?",name:"videos",component:sR},{path:"/faptapai",name:"faptapai",component:aR},{path:"/funscripts",name:"funscripts",component:oR,meta:{requiresAuth:!0}},{path:"/funscripts/create",name:"create-funscript",component:lR,meta:{requiresAuth:!0}},{path:"/likes",name:"likes",component:tR},{path:"/preferences",name:"preferences",component:X$,meta:{requiresAuth:!0}},{path:"/u/:username",name:"user",component:Z$},{path:"/p/:slug",name:"performer",component:K$},{path:"/t/:slug*",name:"tag",component:Q$},{path:"/creators",name:"creators",component:Y$},{path:"/v/:id",name:"watch",alias:"/watch/:id",component:rR},{path:"/tags",alias:"/tags/:slug",name:"tags",component:J$},{path:"/performers",name:"performers",component:nR},{path:"/f/:id",name:"funscript-watch",component:iR},{path:"/playlists",name:"playlists",component:HR},{path:"/playlist/:id",name:"playlist",component:FR},{path:"/studio",name:"studio",component:DR,meta:{requiresAuth:!0}},{path:"/studio/videos",name:"studio-videos",component:BR,meta:{requiresAuth:!0}},{path:"/studio/videos/create",name:"create-video",component:NR,meta:{requiresAuth:!0}},{path:"/studio/videos/:id",name:"edit-video",component:jR,meta:{requiresAuth:!0}},{path:"/admin",name:"admin",component:()=>Ae(()=>import("./Admin.4b7332bf.js"),["/assets/Admin.4b7332bf.js","/assets/Notfound.vue_vue_type_script_setup_true_lang.b9e0406b.js"],import.meta.url),meta:{requiresAuth:!0,requiresAdmin:!0}},{path:"/reports",name:"reports",component:()=>Ae(()=>import("./Reports.0c10186c.js"),["/assets/Reports.0c10186c.js","/assets/Avatar.vue_vue_type_script_setup_true_lang.87e6bbe3.js","/assets/Comments.vue_vue_type_script_setup_true_lang.270db979.js","/assets/Rating.vue_vue_type_script_setup_true_lang.3ad4ff04.js","/assets/ReportDialog.vue_vue_type_script_setup_true_lang.571cdeb2.js","/assets/Pagination.vue_vue_type_script_setup_true_lang.8b7ec3c5.js","/assets/Player.vue_vue_type_script_setup_true_lang.373c1e69.js","/assets/VRPlayer.vue_vue_type_style_index_0_lang.a44f4621.js","/assets/metric.84224865.js","/assets/TaxonomyMergeModal.vue_vue_type_script_setup_true_lang.d9b24f76.js","/assets/VRPlayer.1b7a2b11.css"],import.meta.url),meta:{requiresAuth:!0,requiresAdmin:!0}},{path:"/taxonomy/blacklist",name:"taxonomy-blacklist",component:()=>Ae(()=>import("./TaxonomyBlacklist.baba997f.js"),["/assets/TaxonomyBlacklist.baba997f.js","/assets/Avatar.vue_vue_type_script_setup_true_lang.87e6bbe3.js","/assets/Notfound.vue_vue_type_script_setup_true_lang.b9e0406b.js","/assets/Pagination.vue_vue_type_script_setup_true_lang.8b7ec3c5.js"],import.meta.url),meta:{requiresAuth:!0,requiresAdmin:!0}},{path:"/change-password/:email/:token",name:"forgot-password",component:D0,meta:{changePassword:!0}},{path:"/live-stream",alias:"/live-stream/:streamToken",name:"live-stream",component:uR},{path:"/ai-stroking",name:"ai-stroking",component:dR},{path:"/mosa",redirect:"/ai-stroking"},{path:"/subscribe",name:"Subscribe",component:cR,meta:{requiresAuth:!0,requiresAdmin:!0}},{path:"/gym",name:"Gymmode",component:fR},{path:"/manage-badtag",name:"Badtag",component:pR,meta:{requiresAuth:!0,requiresAdmin:!0}},{path:"/manage-animatedtags",name:"Animatedtags",component:gR,meta:{requiresAuth:!0,requiresAdmin:!0}},{path:"/manage-tags",name:"ManageTags",component:vR,meta:{requiresAuth:!0,requiresAdmin:!0}},{path:"/manage-performers",name:"ManagePerformers",component:mR,meta:{requiresAuth:!0,requiresAdmin:!0}},{},{path:"/manage-redirections",name:"ManageRedirection",component:yR,meta:{requiresAuth:!0,requiresAdmin:!0}},{path:"/taxonomy",name:"TaxonomyManager",component:bR,meta:{requiresAuth:!0,requiresAdmin:!0}},{path:"/taxonomy/aliases",name:"TaxonomyAliases",component:wR,meta:{requiresAuth:!0,requiresAdmin:!0}},{path:"/manage-ads",name:"ManageAds",component:xR,meta:{requiresAuth:!0,requiresAdmin:!0}},{path:"/manage-geo-blocks",name:"ManageGeoBlocks",component:UR,meta:{requiresAuth:!0,requiresAdmin:!0}},{path:"/manage-notification",name:"ManageNotification",component:zR,meta:{requiresAuth:!0,requiresAdmin:!0}},{path:"/notifications",name:"Notifications",component:qR,meta:{requiresAuth:!0}},{path:"/monitoring",name:"Monitoring",component:_R,meta:{requiresAuth:!0,requiresAdmin:!0}},{path:"/blog",alias:"/p",name:"Page",component:hR},{path:"/privacy-policy",name:"privacy-policy",component:CR},{path:"/terms-of-service",name:"terms-of-service",component:kR},{path:"/2257",name:"2257-compliance",component:SR},{path:"/dmca",name:"dmca-policy",component:ER},{path:"/contact",name:"contact",component:AR},{path:"/about",name:"about",component:LR},{path:"/faq",name:"faq",component:TR},{path:"/support",name:"support",component:MR},{path:"/how-to-upload-a-script",name:"how-to-upload-script",component:OR},{path:"/advertising",name:"advertising",component:PR},{path:"/creator-content-guidelines",name:"creator-guidelines",component:$R},{path:"/become-a-creator",name:"become-creator",component:RR},{path:"/responsible-access",name:"responsible-access",component:VR},{path:"/cookie-policy",name:"cookie-policy",component:IR},{path:"/:pathMatch(.*)*",name:"NotFound",redirect:"/"}],r_=g3({history:G4(),routes:WR,parseQuery:lM,stringifyQuery:W2,scrollBehavior(t,e,n){return n||{top:0}}});r_.beforeEach((t,e,n)=>{const s=Xe(),r=Ns();if(t.path.startsWith("/videos")&&"q"in t.query){const i=Array.isArray(t.query.q)?t.query.q[0]:t.query.q,o=A1(i);if(t.query.q!==o||Array.isArray(t.query.q))return n({path:t.path,query:{...t.query,q:o||void 0},hash:t.hash,replace:!0})}if(t.path!=="/"&&t.path.endsWith("/")){const i=t.path.replace(/\/+$/,"");return n({path:i,query:t.query,hash:t.hash,replace:!0})}if(t.matched.some(i=>i.meta.changePassword)&&(r.changePassword=!0),t.matched.some(i=>i.meta.requiresAuth)&&!s.user)return r.authDialog=!0,n({path:"/",query:{redirect:t.fullPath}});if(t.matched.some(i=>i.meta.requiresAdmin)&&!s.isAdmin)return n({path:"/"});n()});var Es=(t=>(t.LOADING="loading",t.LOADED="loaded",t.ERROR="error",t))(Es||{});const GR=typeof window<"u"&&window!==null,ZR=JR(),KR=Object.prototype.propertyIsEnumerable,B0=Object.getOwnPropertySymbols;function ia(t){return typeof t=="function"||toString.call(t)==="[object Object]"}function YR(t){return typeof t=="object"?t===null:typeof t!="function"}function XR(t){return t!=="__proto__"&&t!=="constructor"&&t!=="prototype"}function JR(){return GR&&"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype?("isIntersecting"in window.IntersectionObserverEntry.prototype||Ob
129ject.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get(){return this.intersectionRatio>0}}),!0):!1}function QR(t,...e){if(!ia(t))throw new TypeError("expected the first argument to be an object");if(e.length===0||typeof Symbol!="function"||typeof B0!="function")return t;for(const n of e){const s=B0(n);for(const r of s)KR.call(n,r)&&(t[r]=n[r])}return t}function i_(t,...e){let n=0;for(YR(t)&&(t=e[n++]),t||(t={});n<e.length;n++)if(ia(e[n])){for(const s of Object.keys(e[n]))XR(s)&&(ia(t[s])&&ia(e[n][s])?i_(t[s],e[n][s]):t[s]=e[n][s]);QR(t,e[n])}return t}const N0="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",eV="",tV={rootMargin:"0px",threshold:0},Mi="data-lazy-timeout-id";class nV{constructor(e){this.options={loading:N0,error:eV,observerOptions:tV,log:!0,lifecycle:{},logLevel:"error"},this._images=new WeakMap,this.config(e)}config(e={}){i_(this.options,e)}mount(e,n){if(!e)return;const{src:s,loading:r,error:i,lifecycle:o,delay:a}=this._valueFormatter(typeof n=="string"?n:n.value);this._lifecycle(Es.LOADING,o,e),e.setAttribute("src",r||N0),ZR||(this.loadImages(e,s,i,o),this._log(()=>{this._logger("Not support IntersectionObserver!")})),this._initIntersectionObserver(e,s,i,o,a)}update(e,n){var a;if(!e)return;(a=this._realObserver(e))==null||a.unobserve(e);const{src:s,error:r,lifecycle:i,delay:o}=this._valueFormatter(typeof n=="string"?n:n.value);this._initIntersectionObserver(e,s,r,i,o)}unmount(e){var n;!e||((n=this._realObserver(e))==null||n.unobserve(e),this._images.delete(e))}loadImages(e,n,s,r){this._setImageSrc(e,n,s,r)}_setImageSrc(e,n,s,r){e.tagName.toLowerCase()==="img"?(n&&e.getAttribute("src")!==n&&e.setAttribute("src",n),this._listenImageStatus(e,()=>{this._lifecycle(Es.LOADED,r,e)},()=>{var i;e.onload=null,this._lifecycle(Es.ERROR,r,e),(i=this._realObserver(e))==null||i.disconnect(),s&&e.getAttribute("src")!==s&&e.setAttribute("src",s),this._log(()=>{this._logger(`Image failed to load!And failed src was: ${n} `)})})):e.style.backgroundImage=`url('${n}')`}_initIntersectionObserver(e,n,s,r,i){var a;const o=this.options.observerOptions;this._images.set(e,new IntersectionObserver(l=>{Array.prototype.forEach.call(l,u=>{i&&i>0?this._delayedIntersectionCallback(e,u,i,n,s,r):this._intersectionCallback(e,u,n,s,r)})},o)),(a=this._realObserver(e))==null||a.observe(e)}_intersectionCallback(e,n,s,r,i){var o;n.isIntersecting&&((o=this._realObserver(e))==null||o.unobserve(n.target),this._setImageSrc(e,s,r,i))}_delayedIntersectionCallback(e,n,s,r,i,o){if(n.isIntersecting){if(n.target.hasAttribute(Mi))return;const a=setTimeout(()=>{this._intersectionCallback(e,n,r,i,o),n.target.removeAttribute(Mi)},s);n.target.setAttribute(Mi,String(a))}else n.target.hasAttribute(Mi)&&(clearTimeout(Number(n.target.getAttribute(Mi))),n.target.removeAttribute(Mi))}_listenImageStatus(e,n,s){e.onload=n,e.onerror=s}_valueFormatter(e){let n=e,s=this.options.loading,r=this.options.error,i=this.options.lifecycle,o=this.options.delay;return ia(e)&&(n=e.src,s=e.loading||this.options.loading,r=e.error||this.options.error,i=e.lifecycle||this.options.lifecycle,o=e.delay||this.options.delay),{src:n,loading:s,error:r,lifecycle:i,delay:o}}_log(e){this.options.log&&e()}_lifecycle(e,n,s){switch(e){case Es.LOADING:s==null||s.setAttribute("lazy",Es.LOADING),n!=null&&n.loading&&n.loading(s);break;case Es.LOADED:s==null||s.setAttribute("lazy",Es.LOADED),n!=null&&n.loaded&&n.loaded(s);break;case Es.ERROR:s==null||s.setAttribute("lazy",Es.ERROR),n!=null&&n.error&&n.error(s);break}}_realObserver(e){return this._images.get(e)}_logger(e,...n){let s=console.error;switch(this.options.logLevel){case"error":s=console.error;break;case"warn":s=console.warn;break;case"info":s=console.info;break;case"debug":s=console.debug;break}s(e,n)}}const sV={install(t,e){const n=new nV(e);t.config.globalProperties.$Lazyload=n,t.provide("Lazyload",n),t.directive("lazy",{mounted:n.mount.bind(n),updated:n.update.bind(n),unmounted:n.unmount.bind(n)})}};async function o_(t,e={}){const n=e.document||t.resolvedOptions.document;if(!n||!t.dirty)return;const s={shouldRender:!0,tags:[]};if(await t.hooks.callHook("dom:beforeRender",s),!!s.shouldRender)return t._domUpdatePromise||(t._domUpdatePromise=new Promise(async r=>{var g;const i=new Map,o=new Promise(v=>{t.resolveTags().then(b=>{v(b.map(k=>{const L=i.get(k._d)||0,E={tag:k,id:(L?`${k._d}:${L}`:k._d)||k._h,shouldRender:!0};return k._d&&e_(k._d)&&i.set(k._d,L+1),E}))})});let a=t._dom;if(!a){a={title:n.title,elMap:new Map().set("htmlAttrs",n.documentElement).set("bodyAttrs",n.body)};for(const v of["body","head"]){const b=(g=n[v])==null?void 0:g.children;for(const k of b){const L=k.tagName.toLowerCase();if(!xf.has(L))continue;const E=n_({tag:L,props:{}},{innerHTML:k.innerHTML,...k.getAttributeNames().reduce((_,m)=>(_[m]=k.getAttribute(m),_),{})||{}});if(E.key=k.getAttribute("data-hid")||void 0,E._d=kf(E)||t_(E),a.elMap.has(E._d)){let _=1,m=E._d;for(;a.elMap.has(m);)m=`${E._d}:${_++}`;a.elMap.set(m,k)}else a.elMap.set(E._d,k)}}}a.pendingSideEffects={...a.sideEffects},a.sideEffects={};function l(v,b,k){const L=`${v}:${b}`;a.sideEffects[L]=k,delete a.pendingSideEffects[L]}function u({id:v,$el:b,tag:k}){const L=k.tag.endsWith("Attrs");a.elMap.set(v,b),L||(k.textContent&&k.textContent!==b.textContent&&(b.textContent=k.textContent),k.innerHTML&&k.innerHTML!==b.innerHTML&&(b.innerHTML=k.innerHTML),l(v,"el",()=>{b==null||b.remove(),a.elMap.delete(v)}));for(const E in k.props){if(!Object.prototype.hasOwnProperty.call(k.props,E))continue;const _=k.props[E];if(E.startsWith("on")&&typeof _=="function"){const x=b==null?void 0:b.dataset;if(x&&x[`${E}fired`]){const A=E.slice(0,-5);_.call(b,new Event(A.substring(2)))}b.getAttribute(`data-${E}`)!==""&&((k.tag==="bodyAttrs"?n.defaultView:b).addEventListener(E.substring(2),_.bind(b)),b.setAttribute(`data-${E}`,""));continue}const m=`attr:${E}`;if(E==="class"){if(!_)continue;for(const x of _)L&&l(v,`${m}:${x}`,()=>b.classList.remove(x)),!b.classList.contains(x)&&b.classList.add(x)}else if(E==="style"){if(!_)continue;for(const[x,A]of _)l(v,`${m}:${x}`,()=>{b.style.removeProperty(x)}),b.style.setProperty(x,A)}else _!==!1&&_!==null&&(b.getAttribute(E)!==_&&b.setAttribute(E,_===!0?"":String(_)),L&&l(v,m,()=>b.removeAttribute(E)))}}const c=[],d={bodyClose:void 0,bodyOpen:void 0,head:void 0},p=await o;for(const v of p){const{tag:b,shouldRender:k,id:L}=v;if(!!k){if(b.tag==="title"){n.title=b.textContent,l("title","",()=>n.title=a.title);continue}v.$el=v.$el||a.elMap.get(L),v.$el?u(v):xf.has(b.tag)&&c.push(v)}}for(const v of c){const b=v.tag.tagPosition||"head";v.$el=n.createElement(v.tag.tag),u(v),d[b]=d[b]||n.createDocumentFragment(),d[b].appendChild(v.$el)}for(const v of p)await t.hooks.callHook("dom:renderTag",v,n,l);d.head&&n.head.appendChild(d.head),d.bodyOpen&&n.body.insertBefore(d.bodyOpen,n.body.firstChild),d.bodyClose&&n.body.appendChild(d.bodyClose);for(const v in a.pendingSideEffects)a.pendingSideEffects[v]();t._dom=a,await t.hooks.callHook("dom:rendered",{renders:p}),r()}).finally(()=>{t._domUpdatePromise=void 0,t.dirty=!1})),t._domUpdatePromise}function rV(t={}){var s,r,i;const e=((s=t.domOptions)==null?void 0:s.render)||o_;t.document=t.document||(typeof window<"u"?document:void 0);const n=((i=(r=t.document)==null?void 0:r.head.querySelector('script[id="unhead:payload"]'))==null?void 0:i.innerHTML)||!1;return KP({...t,plugins:[...t.plugins||[],{key:"client",hooks:{"entries:updated":e}}],init:[n?JSON.parse(n):!1,...t.init||[]]})}function iV(t,e){let n=0;return()=>{const s=++n;e(()=>{n===s&&t()})}}function oV(t={}){const e=rV({domOptions:{render:iV(()=>o_(e),n=>setTimeout(n,0))},...t});return e.install=XP(e),e}const ka=Cd(TP);ka.use(K8());ka.use(sV,{error:"/fallback.webp",observerOptions:{rootMargin:"300px",threshold:.1},attempt:1});ka.use(oV());async function aV(){try{const t=await dt.user.getSession();t&&await Xe().setUser(t)}catch{console.warn("Session fetch failed")}ka.use(r_),ka.mount("#app"),requestIdleCallback(async()=>{try{(await Ae(()=>Promise.resolve().then(()=>a9),void 0,import.meta.url)).default.init("phc_zc1EuYtTWZKEHv1aWddyphRW0SirWKSViC3KNZ46Rp0",{api_host:"https://a.faptap.net",ui_host:"https://us.posthog.com",capture_pageview:!1,autocapture:!1})}finally{_1().handy.connect()}}),requestIdleCallback(()=>{Ae(()=>import("./metric.84224865.js"),["/assets/metric.84224865.js"],import.meta.url).catch(()=>{})})}aV();export{vf as $,pI as A,Yr as B,L$ as C,df as D,K2 as E,Ve as F,vi as G,d9 as H,f9 as I,c9 as J,If as K,zn as L,L1 as M,Bt as N,ps as O,xa as P,Mr as Q,Le as R,UO as S,Tt as T,EI as U,h9 as V,cn as W,F$ as X,x$ as Y,Na as Z,ze as _,dt as a,fV as a$,fr as a0,cI as a1,Hr as a2,XO as a3,Ta as a4,Gf as a5,gs as a6,Ns as a7,ms as a8,gI as a9,kI as aA,d1 as aB,mI as aC,IO as aD,An as aE,$t as aF,_I as aG,ci as aH,yv as aI,kt as aJ,Bs as aK,t$ as aL,Ym as aM,$s as aN,ns as aO,xS as aP,vI as aQ,n$ as aR,hI as aS,$f as aT,wI as aU,P0 as aV,K0 as aW,El as aX,vV as aY,mV as aZ,Y_ as a_,Cn as aa,Ae as ab,vt as ac,n4 as ad,Pa as ae,pa as af,j4 as ag,Pu as ah,bv as ai,k9 as aj,g9 as ak,yI as al,XT as am,BO as an,Zu as ao,ir as ap,Zs as aq,xI as ar,fy as as,iP as at,E$ as au,uP as av,A1 as aw,CI as ax,_1 as ay,Dy as az,ae as b,ZV as b$,Y0 as b0,Af as b1,_V as b2,Mu as b3,hs as b4,dr as b5,Kn as b6,Of as b7,X0 as b8,sy as b9,ys as bA,Ea as bB,hr as bC,sI as bD,o5 as bE,zV as bF,i5 as bG,OV as bH,RV as bI,VV as bJ,FV as bK,IV as bL,$V as bM,HV as bN,QV as bO,En as bP,Rf as bQ,v5 as bR,yo as bS,Cg as bT,AV as bU,MV as bV,TV as bW,LV as bX,KV as bY,Hn as bZ,x
1295 as b_,vg as ba,ld as bb,hg as bc,pV as bd,pg as be,hV as bf,at as bg,ey as bh,X_ as bi,G_ as bj,gV as bk,rn as bl,xu as bm,dV as bn,dl as bo,yy as bp,Lg as bq,Qt as br,rI as bs,bV as bt,JV as bu,Ty as bv,Ji as bw,u5 as bx,ni as by,yV as bz,Ne as c,zx as c$,Rr as c0,jV as c1,UV as c2,Wf as c3,$g as c4,Vy as c5,Ry as c6,$y as c7,Py as c8,Hf as c9,hy as cA,DV as cB,YV as cC,CV as cD,Iu as cE,uI as cF,Zf as cG,Cd as cH,u4 as cI,W5 as cJ,oI as cK,dI as cL,fI as cM,A5 as cN,U5 as cO,l4 as cP,lI as cQ,iI as cR,Z5 as cS,aI as cT,s4 as cU,wf as cV,tP as cW,SI as cX,X2 as cY,bI as cZ,m0 as c_,xV as ca,fl as cb,wV as cc,Ml as cd,GV as ce,hi as cf,Hy as cg,nI as ch,ca as ci,Il as cj,eI as ck,$r as cl,cy as cm,tI as cn,PV as co,WV as cp,NV as cq,SV as cr,qV as cs,dy as ct,BV as cu,EV as cv,Ag as cw,C5 as cx,XV as cy,kV as cz,Ze as d,mi as d0,QP as e,C as f,pe as g,y as h,f as i,T as j,It as k,oe as l,N as m,V as n,Oy as o,Qe as p,Oa as q,Ds as r,is as s,ce as t,Xe as u,w as v,ct as w,Pe as x,s$ as y,Wn as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.