PageSourceSearch

https://dsdha-frontend.netlify.app/_nuxt/XrRBevAG.js

js dsdha-frontend.netlify.app collected 2026-10-03 11:42:07 UTC 511,597 bytes, 688 lines download raw bytes

vendor: 2,928 bytes, lines 1-2
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./qdERXZH2.js","./BZ8IWx-P.js","./B1bwpvfw.js","./keZnGz6W.js","./Do_SpEuc.js","./9P7tid2z.js","./SharedOverlayNavigationWrapper.BVBeBjiY.css","./lfNBqQgI.js","./SharedSanityImage.-NkjZ5t6.css","./Dg4lwyWZ.js","./SharedMuxVideoAutoplay.CBx4OPwF.css","./BdOX6J6-.js","./BY7cS-Sy.js","./SharedSlideshow.ma2OIvty.css","./Bdrgzm9p.js","./BnHvq93j.js","./BJnEEHsu.js","./BxJEn7Ts.js","./DwbRrYGx.js","./DzdKiYq4.js","./SharedRelatedItems.HtxYWXfS.css","./Dxp-JyYU.js","./SharedPortableText.DXd5BQcw.css","./PagesDiscoursePage.C9ys4ej_.css","./BKExR8LH.js","./3HM8U0XQ.js","./BsA7AbDr.js","./CwAxzcQq.js","./PagesDiscourseIndex.DqXSzwY_.css","./CCWuMPrl.js","./bp8BS_2d.js","./BGzYeiF6.js","./C173fRq9.js","./CJWUEVbK.js","./PagesProjectsMenu.aXvUG2DP.css","./image.R7AxTZqP.css","./dAaZAkHg.js","./map.9Lk24iWi.css","./CThrRx2P.js","./selected.JBbRRTtK.css","./hiM1knDT.js","./awards.4-S-mmkh.css","./CAwV6VjV.js","./clients.C9soPqk2.css","./DtxL51UB.js","./collaborators.DJqTDhtw.css","./DzRcNjVV.js","./people.D2MykJW2.css","./hihwoJvw.js","./practice.70QJmWjJ.css","./DwLIOfGa.js","./image-overview.DwBG_8oK.css","./bDQacbF_.js","./BQhK7gkg.js","./index.Cgfu17z7.css","./BNgIOZ2A.js","./_slug_.szVOGQ0N.css","./a5FhIeN6.js","./_slug_.RNFXdgso.css","./BLMFSFts.js","./contact.liddfMpR.css","./DZPtHg60.js","./BB8V3wAe.js","./index.DLB6AirZ.css","./DXTuCWXL.js","./search.D4IXawHf.css","./BnmBpyka.js","./index.CCnaxqJP.css","./DT_sQvQ-.js","./index.CiKZD8yf.css","./DzQLhZiR.js","./_slug_.Bchxz3DU.css","./CVHOE535.js","./index.Cgwvl6di.css","./BWduiV23.js","./Cf5RZXC4.js","./GlobalFooterNavigation.B3q2pxan.css","./GlobalFooter.DXx1hhTw.css"])))=>i.map(i=>d[i]);
2(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();function Ml(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Ie={},Tr=[],on=()=>{},xd=()=>!1,qs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),go=e=>e.startsWith("onUpdate:"),nt=Object.assign,jl=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},by=Object.prototype.hasOwnProperty,Ce=(e,t)=>by.call(e,t),se=Array.isArray,Sr=e=>Jr(e)==="[object Map]",Od=e=>Jr(e)==="[object Set]",Fc=e=>Jr(e)==="[object Date]",vy=e=>
vendor: 1,806 bytes, line 2
2Jr(e)==="[object RegExp]",ae=e=>typeof e=="function",Be=e=>typeof e=="string",Pt=e=>typeof e=="symbol",Te=e=>e!==null&&typeof e=="object",Ll=e=>(Te(e)||ae(e))&&ae(e.then)&&ae(e.catch),Id=Object.prototype.toString,Jr=e=>Id.call(e),wy=e=>Jr(e).slice(8,-1),Nl=e=>Jr(e)==="[object Object]",yo=e=>Be(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,er=Ml(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),bo=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},_y=/-\w/g,yt=bo(e=>e.replace(_y,t=>t.slice(1).toUpperCase())),Ey=/\B([A-Z])/g,ur=bo(e=>e.replace(Ey,"-$1").toLowerCase()),vo=bo(e=>e.charAt(0).toUpperCase()+e.slice(1)),Go=bo(e=>e?`on${vo(e)}`:""),en=(e,t)=>!Object.is(e,t),Cr=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},$d=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Dl=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Md=e=>{const t=Be(e)?Number(e):NaN;return isNaN(t)?e:t};let Hc;const wo=()=>Hc||(Hc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Fl(e){if(se(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=Be(r)?Ay(r):Fl(r);if(s)for(const i in s)t[i]=s[i]}return t}else if(Be(e)||Te(e))return e}const Ty=/;(?![^(]*\))/g,Sy=/:([^]+)/,Cy=/\/\*[^]*?\*\//g;function Ay(e){const t={};return e.replace(Cy,"").split(Ty).forEach(n=>{if(n){const r=n.split(Sy);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function tn(e){let t="";if(Be(e))t=e;else if(se(e))for(let n=0;n<e.length;n++){const r=tn(e[n]);r&&(t+=r+" ")}else if(Te(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const ky="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Ry=Ml(ky);
vendor: 6,551 bytes, line 2
2function jd(e){return!!e||e===""}function Py(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Hl(e[r],t[r]);return n}function Hl(e,t){if(e===t)return!0;let n=Fc(e),r=Fc(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Pt(e),r=Pt(t),n||r)return e===t;if(n=se(e),r=se(t),n||r)return n&&r?Py(e,t):!1;if(n=Te(e),r=Te(t),n||r){if(!n||!r)return!1;const s=Object.keys(e).length,i=Object.keys(t).length;if(s!==i)return!1;for(const o in e){const a=e.hasOwnProperty(o),l=t.hasOwnProperty(o);if(a&&!l||!a&&l||!Hl(e[o],t[o]))return!1}}return String(e)===String(t)}const Ld=e=>!!(e&&e.__v_isRef===!0),Ar=e=>Be(e)?e:e==null?"":se(e)||Te(e)&&(e.toString===Id||!ae(e.toString))?Ld(e)?Ar(e.value):JSON.stringify(e,Nd,2):String(e),Nd=(e,t)=>Ld(t)?Nd(e,t.value):Sr(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],i)=>(n[Qo(r,i)+" =>"]=s,n),{})}:Od(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Qo(n))}:Pt(t)?Qo(t):Te(t)&&!se(t)&&!Nl(t)?String(t):t,Qo=(e,t="")=>{var n;return Pt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let ut;class Dd{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=ut,!t&&ut&&(this.index=(ut.scopes||(ut.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=ut;try{return ut=this,t()}finally{ut=n}}}on(){++this._on===1&&(this.prevScope=ut,ut=this)}off(){this._on>0&&--this._on===0&&(ut=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function Ul(e){return new Dd(e)}function Yr(){return ut}function Ps(e,t=!1){ut&&ut.cleanups.push(e)}let je;const Jo=new WeakSet;class Fd{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,ut&&ut.active&&ut.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Jo.has(this)&&(Jo.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Ud(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Uc(this),Vd(this);const t=je,n=Vt;je=this,Vt=!0;try{return this.fn()}finally{Bd(this),je=t,Vt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)ql(t);this.deps=this.depsTail=void 0,Uc(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Jo.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ba(this)&&this.run()}get dirty(){return Ba(this)}}let Hd=0,vs,ws;function Ud(e,t=!1){if(e.flags|=8,t){e.next=ws,ws=e;return}e.next=vs,vs=e}function Vl(){Hd++}function Bl(){if(--Hd>0)return;if(ws){let t=ws;for(ws=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;vs;){let t=vs;for(vs=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function Vd(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Bd(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),ql(r),xy(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function Ba(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(qd(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function qd(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===xs)||(e.globalVersion=xs,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ba(e))))return;e.flags|=2;const t=e.dep,n=je,r=Vt;je=e,Vt=!0;try{Vd(e);const s=e.fn(e._value);(t.version===0||en(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{je=n,Vt=r,Bd(e),e.flags&=-3}}function ql(e,t=!1){const{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)ql(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function xy(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Vt=!0;const Wd=[];function _n(){Wd.push(Vt),Vt=!1}function En(){const e=Wd.pop();Vt=e===void 0?!0:e}function Uc(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=je;je=void 0;try{t()}finally{je=n}}}let xs=0;class Oy{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class _o{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!je||!Vt||je===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==je)n=this.activeLink=new Oy(je,this),je.deps?(n.prevDep=je.depsTail,je.depsTail.nextDep=n,je.depsTail=n):je.deps=je.depsTail=n,zd(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=je.depsTail,n.nextDep=void 0,je.depsTail.nextDep=n,je.depsTail=n,je.deps===n&&(je.deps=r)}return n}trigger(t){this.version++,xs++,this.notify(t)}notify(t){Vl();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Bl()}}}function zd(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)zd(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Fi=new WeakMap,tr=Symbol(""),qa=Symbol(""),Os=Symbol("");function ft(e,t,n){if(Vt&&je){let r=Fi.get(e);r||Fi.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new _o),s.map=r,s.key=n),s.track()}}function yn(e,t,n,r,s,i){const o=Fi.get(e);if(!o){xs++;return}const a=l=>{l&&l.trigger()};
vendor: 10,282 bytes, line 2
2if(Vl(),t==="clear")o.forEach(a);else{const l=se(e),u=l&&yo(n);if(l&&n==="length"){const c=Number(r);o.forEach((f,h)=>{(h==="length"||h===Os||!Pt(h)&&h>=c)&&a(f)})}else switch((n!==void 0||o.has(void 0))&&a(o.get(n)),u&&a(o.get(Os)),t){case"add":l?u&&a(o.get("length")):(a(o.get(tr)),Sr(e)&&a(o.get(qa)));break;case"delete":l||(a(o.get(tr)),Sr(e)&&a(o.get(qa)));break;case"set":Sr(e)&&a(o.get(tr));break}}Bl()}function Iy(e,t){const n=Fi.get(e);return n&&n.get(t)}function mr(e){const t=ve(e);return t===e?t:(ft(t,"iterate",Os),kt(e)?t:t.map(Bt))}function Eo(e){return ft(e=ve(e),"iterate",Os),e}function Xt(e,t){return ln(e)?Lr(an(e)?Bt(t):t):Bt(t)}const $y={__proto__:null,[Symbol.iterator](){return Yo(this,Symbol.iterator,e=>Xt(this,e))},concat(...e){return mr(this).concat(...e.map(t=>se(t)?mr(t):t))},entries(){return Yo(this,"entries",e=>(e[1]=Xt(this,e[1]),e))},every(e,t){return dn(this,"every",e,t,void 0,arguments)},filter(e,t){return dn(this,"filter",e,t,n=>n.map(r=>Xt(this,r)),arguments)},find(e,t){return dn(this,"find",e,t,n=>Xt(this,n),arguments)},findIndex(e,t){return dn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return dn(this,"findLast",e,t,n=>Xt(this,n),arguments)},findLastIndex(e,t){return dn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return dn(this,"forEach",e,t,void 0,arguments)},includes(...e){return Xo(this,"includes",e)},indexOf(...e){return Xo(this,"indexOf",e)},join(e){return mr(this).join(e)},lastIndexOf(...e){return Xo(this,"lastIndexOf",e)},map(e,t){return dn(this,"map",e,t,void 0,arguments)},pop(){return is(this,"pop")},push(...e){return is(this,"push",e)},reduce(e,...t){return Vc(this,"reduce",e,t)},reduceRight(e,...t){return Vc(this,"reduceRight",e,t)},shift(){return is(this,"shift")},some(e,t){return dn(this,"some",e,t,void 0,arguments)},splice(...e){return is(this,"splice",e)},toReversed(){return mr(this).toReversed()},toSorted(e){return mr(this).toSorted(e)},toSpliced(...e){return mr(this).toSpliced(...e)},unshift(...e){return is(this,"unshift",e)},values(){return Yo(this,"values",e=>Xt(this,e))}};function Yo(e,t,n){const r=Eo(e),s=r[t]();return r!==e&&!kt(e)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.done||(i.value=n(i.value)),i}),s}const My=Array.prototype;function dn(e,t,n,r,s,i){const o=Eo(e),a=o!==e&&!kt(e),l=o[t];if(l!==My[t]){const f=l.apply(e,i);return a?Bt(f):f}let u=n;o!==e&&(a?u=function(f,h){return n.call(this,Xt(e,f),h,e)}:n.length>2&&(u=function(f,h){return n.call(this,f,h,e)}));const c=l.call(o,u,r);return a&&s?s(c):c}function Vc(e,t,n,r){const s=Eo(e),i=s!==e&&!kt(e);let o=n,a=!1;s!==e&&(i?(a=r.length===0,o=function(u,c,f){return a&&(a=!1,u=Xt(e,u)),n.call(this,u,Xt(e,c),f,e)}):n.length>3&&(o=function(u,c,f){return n.call(this,u,c,f,e)}));const l=s[t](o,...r);return a?Xt(e,l):l}function Xo(e,t,n){const r=ve(e);ft(r,"iterate",Os);const s=r[t](...n);return(s===-1||s===!1)&&To(n[0])?(n[0]=ve(n[0]),r[t](...n)):s}function is(e,t,n=[]){_n(),Vl();const r=ve(e)[t].apply(e,n);return Bl(),En(),r}const jy=Ml("__proto__,__v_isRef,__isVue"),Kd=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Pt));function Ly(e){Pt(e)||(e=String(e));const t=ve(this);return ft(t,"has",e),t.hasOwnProperty(e)}class Gd{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(s?i?zy:Xd:i?Yd:Jd).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=se(t);if(!s){let l;if(o&&(l=$y[n]))return l;if(n==="hasOwnProperty")return Ly}const a=Reflect.get(t,n,De(t)?t:r);if((Pt(n)?Kd.has(n):jy(n))||(s||ft(t,"get",n),i))return a;if(De(a)){const l=o&&yo(n)?a:a.value;return s&&Te(l)?za(l):l}return Te(a)?s?za(a):xt(a):a}}class Qd extends Gd{constructor(t=!1){super(!1,t)}set(t,n,r,s){let i=t[n];const o=se(t)&&yo(n);if(!this._isShallow){const u=ln(i);if(!kt(r)&&!ln(r)&&(i=ve(i),r=ve(r)),!o&&De(i)&&!De(r))return u||(i.value=r),!0}const a=o?Number(n)<t.length:Ce(t,n),l=Reflect.set(t,n,r,De(t)?t:s);return t===ve(s)&&(a?en(r,i)&&yn(t,"set",n,r):yn(t,"add",n,r)),l}deleteProperty(t,n){const r=Ce(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&r&&yn(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!Pt(n)||!Kd.has(n))&&ft(t,"has",n),r}ownKeys(t){return ft(t,"iterate",se(t)?"length":tr),Reflect.ownKeys(t)}}class Ny extends Gd{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Dy=new Qd,Fy=new Ny,Hy=new Qd(!0);const Wa=e=>e,li=e=>Reflect.getPrototypeOf(e);function Uy(e,t,n){return function(...r){const s=this.__v_raw,i=ve(s),o=Sr(i),a=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=s[e](...r),c=n?Wa:t?Lr:Bt;return!t&&ft(i,"iterate",l?qa:tr),nt(Object.create(u),{next(){const{value:f,done:h}=u.next();return h?{value:f,done:h}:{value:a?[c(f[0]),c(f[1])]:c(f),done:h}}})}}function ci(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Vy(e,t){const n={get(s){const i=this.__v_raw,o=ve(i),a=ve(s);e||(en(s,a)&&ft(o,"get",s),ft(o,"get",a));const{has:l}=li(o),u=t?Wa:e?Lr:Bt;if(l.call(o,s))return u(i.get(s));if(l.call(o,a))return u(i.get(a));i!==o&&i.get(s)},get size(){const s=this.__v_raw;return!e&&ft(ve(s),"iterate",tr),s.size},has(s){const i=this.__v_raw,o=ve(i),a=ve(s);return e||(en(s,a)&&ft(o,"has",s),ft(o,"has",a)),s===a?i.has(s):i.has(s)||i.has(a)},forEach(s,i){const o=this,a=o.__v_raw,l=ve(a),u=t?Wa:e?Lr:Bt;return!e&&ft(l,"iterate",tr),a.forEach((c,f)=>s.call(i,u(c),u(f),o))}};return nt(n,e?{add:ci("add"),set:ci("set"),delete:ci("delete"),clear:ci("clear")}:{add(s){const i=ve(this),o=li(i),a=ve(s),l=!t&&!kt(s)&&!ln(s)?a:s;return o.has.call(i,l)||en(s,l)&&o.has.call(i,s)||en(a,l)&&o.has.call(i,a)||(i.add(l),yn(i,"add",l,l)),this},set(s,i){!t&&!kt(i)&&!ln(i)&&(i=ve(i));const o=ve(this),{has:a,get:l}=li(o);let u=a.call(o,s);u||(s=ve(s),u=a.call(o,s));const c=l.call(o,s);return o.set(s,i),u?en(i,c)&&yn(o,"set",s,i):yn(o,"add",s,i),this},delete(s){const i=ve(this),{has:o,get:a}=li(i);let l=o.call(i,s);l||(s=ve(s),l=o.call(i,s)),a&&a.call(i,s);const u=i.delete(s);return l&&yn(i,"delete",s,void 0),u},clear(){const s=ve(this),i=s.size!==0,o=s.clear();return i&&yn(s,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=Uy(s,e,t)}),n}function Wl(e,t){const n=Vy(e,t);return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(Ce(n,s)&&s in r?n:r,s,i)}const By={get:Wl(!1,!1)},qy={get:Wl(!1,!0)},Wy={get:Wl(!0,!1)};const Jd=new WeakMap,Yd=new WeakMap,Xd=new WeakMap,zy=new WeakMap;function Ky(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Gy(e){return e.__v_skip||!Object.isExtensible(e)?0:Ky(wy(e))}function xt(e){return ln(e)?e:zl(e,!1,Dy,By,Jd)}function nn(e){return zl(e,!1,Hy,qy,Yd)}function za(e){return zl(e,!0,Fy,Wy,Xd)}function zl(e,t,n,r,s){if(!Te(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=Gy(e);if(i===0)return e;const o=s.get(e);if(o)return o;const a=new Proxy(e,i===2?r:n);return s.set(e,a),a}function an(e){return ln(e)?an(e.__v_raw):!!(e&&e.__v_isReactive)}function ln(e){return!!(e&&e.__v_isReadonly)}function kt(e){return!!(e&&e.__v_isShallow)}function To(e){return e?!!e.__v_raw:!1}function ve(e){const t=e&&e.__v_raw;return t?ve(t):e}function Kl(e){return!Ce(e,"__v_skip")&&Object.isExtensible(e)&&$d(e,"__v_skip",!0),e}const Bt=e=>Te(e)?xt(e):e,Lr=e=>Te(e)?za(e):e;function De(e){return e?e.__v_isRef===!0:!1}function it(e){return Zd(e,!1)}function Hn(e){return Zd(e,!0)}function Zd(e,t){return De(e)?e:new Qy(e,t)}class Qy{constructor(t,n){this.dep=new _o,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ve(t),this._value=n?t:Bt(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||kt(t)||ln(t);t=r?t:ve(t),en(t,n)&&(this._rawValue=t,this._value=r?t:Bt(t),this.dep.trigger())}}function re(e){return De(e)?e.value:e}function Ft(e){return ae(e)?e():re(e)}const Jy={get:(e,t,n)=>t==="__v_raw"?e:re(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return De(s)&&!De(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function eh(e){return an(e)?e:new Proxy(e,Jy)}class Yy{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new _o,{get:r,set:s}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=s}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Xy(e){return new Yy(e)}function Gl(e){const t=se(e)?new Array(e.length):{};for(const n in e)t[n]=th(e,n);return t}class Zy{constructor(t,n,r){this._object=t,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._key=Pt(n)?n:String(n),this._raw=ve(t);let s=!0,i=t;if(!se(t)||Pt(this._key)||!yo(this._key))do s=!To(i)||kt(i);while(s&&(i=i.__v_raw));this._shallow=s}get value(){let t=this._object[this._key];return this._shallow&&(t=re(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&De(this._raw[this._key])){const n=this._object[this._key];if(De(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return Iy(this._raw,this._key)}}class eb{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Ql(e,t,n){return De(e)?e:ae(e)?new eb(e):Te(e)&&arguments.length>1?th(e,t,n):it(e)}function th(e,t,n){return new Zy(e,t,n)}class tb{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new _o(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=xs-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&je!==this)return Ud(this,!0),!0}get value(){const t=this.dep.track();return qd(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function nb(e,t,n=!1){let r,s;return ae(e)?r=e:(r=e.get,s=e.set),new tb(r,s,n)}const ui={},Hi=new WeakMap;let Qn;function rb(e,t=!1,n=Qn){if(n){let r=Hi.get(n);r||Hi.set(n,r=[]),r.push(e)}}
vendor: 19,768 bytes, lines 2-4
2function sb(e,t,n=Ie){const{immediate:r,deep:s,once:i,scheduler:o,augmentJob:a,call:l}=n,u=w=>s?w:kt(w)||s===!1||s===0?bn(w,1):bn(w);let c,f,h,d,m=!1,p=!1;if(De(e)?(f=()=>e.value,m=kt(e)):an(e)?(f=()=>u(e),m=!0):se(e)?(p=!0,m=e.some(w=>an(w)||kt(w)),f=()=>e.map(w=>{if(De(w))return w.value;if(an(w))return u(w);if(ae(w))return l?l(w,2):w()})):ae(e)?t?f=l?()=>l(e,2):e:f=()=>{if(h){_n();try{h()}finally{En()}}const w=Qn;Qn=c;try{return l?l(e,3,[d]):e(d)}finally{Qn=w}}:f=on,t&&s){const w=f,_=s===!0?1/0:s;f=()=>bn(w(),_)}const v=Yr(),b=()=>{c.stop(),v&&v.active&&jl(v.effects,c)};if(i&&t){const w=t;t=(..._)=>{w(..._),b()}}let g=p?new Array(e.length).fill(ui):ui;const y=w=>{if(!(!(c.flags&1)||!c.dirty&&!w))if(t){const _=c.run();if(s||m||(p?_.some((k,$)=>en(k,g[$])):en(_,g))){h&&h();const k=Qn;Qn=c;try{const $=[_,g===ui?void 0:p&&g[0]===ui?[]:g,d];g=_,l?l(t,3,$):t(...$)}finally{Qn=k}}}else c.run()};return a&&a(y),c=new Fd(f),c.scheduler=o?()=>o(y,!1):y,d=w=>rb(w,!1,c),h=c.onStop=()=>{const w=Hi.get(c);if(w){if(l)l(w,4);else for(const _ of w)_();Hi.delete(c)}},t?r?y(!0):g=c.run():o?o(y.bind(null,!0),!0):c.run(),b.pause=c.pause.bind(c),b.resume=c.resume.bind(c),b.stop=b,b}function bn(e,t=1/0,n){if(t<=0||!Te(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,De(e))bn(e.value,t,n);else if(se(e))for(let r=0;r<e.length;r++)bn(e[r],t,n);else if(Od(e)||Sr(e))e.forEach(r=>{bn(r,t,n)});else if(Nl(e)){for(const r in e)bn(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&bn(e[r],t,n)}return e}function Ws(e,t,n,r){try{return r?e(...r):e()}catch(s){Xr(s,t,n)}}function qt(e,t,n,r){if(ae(e)){const s=Ws(e,t,n,r);return s&&Ll(s)&&s.catch(i=>{Xr(i,t,n)}),s}if(se(e)){const s=[];for(let i=0;i<e.length;i++)s.push(qt(e[i],t,n,r));return s}}function Xr(e,t,n,r=!0){const s=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||Ie;if(t){let a=t.parent;const l=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const c=a.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](e,l,u)===!1)return}a=a.parent}if(i){_n(),Ws(i,null,10,[e,l,u]),En();return}}ib(e,n,s,r,o)}function ib(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}const gt=[];let Gt=-1;const kr=[];let jn=null,vr=0;const nh=Promise.resolve();let Ui=null;function Un(e){const t=Ui||nh;return e?t.then(this?e.bind(this):e):t}function ob(e){let t=Gt+1,n=gt.length;for(;t<n;){const r=t+n>>>1,s=gt[r],i=$s(s);i<e||i===e&&s.flags&2?t=r+1:n=r}return t}function Jl(e){if(!(e.flags&1)){const t=$s(e),n=gt[gt.length-1];!n||!(e.flags&2)&&t>=$s(n)?gt.push(e):gt.splice(ob(t),0,e),e.flags|=1,rh()}}function rh(){Ui||(Ui=nh.then(sh))}function Is(e){se(e)?kr.push(...e):jn&&e.id===-1?jn.splice(vr+1,0,e):e.flags&1||(kr.push(e),e.flags|=1),rh()}function Bc(e,t,n=Gt+1){for(;n<gt.length;n++){const r=gt[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;gt.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Vi(e){if(kr.length){const t=[...new Set(kr)].sort((n,r)=>$s(n)-$s(r));if(kr.length=0,jn){jn.push(...t);return}for(jn=t,vr=0;vr<jn.length;vr++){const n=jn[vr];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}jn=null,vr=0}}const $s=e=>e.id==null?e.flags&2?-1:1/0:e.id;function sh(e){try{for(Gt=0;Gt<gt.length;Gt++){const t=gt[Gt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Ws(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Gt<gt.length;Gt++){const t=gt[Gt];t&&(t.flags&=-2)}Gt=-1,gt.length=0,Vi(),Ui=null,(gt.length||kr.length)&&sh()}}let lt=null,ih=null;function Bi(e){const t=lt;return lt=e,ih=e&&e.type.__scopeId||null,t}function nr(e,t=lt,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&Gi(-1);const i=Bi(t);let o;try{o=e(...s)}finally{Bi(i),r._d&&Gi(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function qc(e,t){if(lt===null)return e;const n=Ro(lt),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,o,a,l=Ie]=t[s];i&&(ae(i)&&(i={mounted:i,updated:i}),i.deep&&bn(o),r.push({dir:i,instance:n,value:o,oldValue:void 0,arg:a,modifiers:l}))}return e}function Jt(e,t,n,r){const s=e.dirs,i=t&&t.dirs;for(let o=0;o<s.length;o++){const a=s[o];i&&(a.oldValue=i[o].value);let l=a.dir[r];l&&(_n(),qt(l,n,8,[e.el,a,e,t]),En())}}function Rr(e,t){if(at){let n=at.provides;const r=at.parent&&at.parent.provides;r===n&&(n=at.provides=Object.create(r)),n[e]=t}}function dt(e,t,n=!1){const r=Sn();if(r||rr){let s=rr?rr._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&ae(t)?t.call(r&&r.proxy):t}}function zs(){return!!(Sn()||rr)}const ab=Symbol.for("v-scx"),lb=()=>dt(ab);function cb(e,t){return Yl(e,null,t)}function Rt(e,t,n){return Yl(e,t,n)}function Yl(e,t,n=Ie){const{immediate:r,deep:s,flush:i,once:o}=n,a=nt({},n),l=t&&r||!t&&i!=="post";let u;if(cr){if(i==="sync"){const d=lb();u=d.__watcherHandles||(d.__watcherHandles=[])}else if(!l){const d=()=>{};return d.stop=on,d.resume=on,d.pause=on,d}}const c=at;a.call=(d,m,p)=>qt(d,c,m,p);let f=!1;i==="post"?a.scheduler=d=>{tt(d,c&&c.suspense)}:i!=="sync"&&(f=!0,a.scheduler=(d,m)=>{m?d():Jl(d)}),a.augmentJob=d=>{t&&(d.flags|=4),f&&(d.flags|=2,c&&(d.id=c.uid,d.i=c))};const h=sb(e,t,a);return cr&&(u?u.push(h):l&&h()),h}function ub(e,t,n){const r=this.proxy,s=Be(e)?e.includes(".")?oh(r,e):()=>r[e]:e.bind(r,r);let i;ae(t)?i=t:(i=t.handler,n=t);const o=ts(this),a=Yl(s,i.bind(r),n);return o(),a}function oh(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}const fb=Symbol("_vte"),ah=e=>e.__isTeleport,Yt=Symbol("_leaveCb"),os=Symbol("_enterCb");function db(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return fr(()=>{e.isMounted=!0}),es(()=>{e.isUnmounting=!0}),e}const Ot=[Function,Array],lh={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ot,onEnter:Ot,onAfterEnter:Ot,onEnterCancelled:Ot,onBeforeLeave:Ot,onLeave:Ot,onAfterLeave:Ot,onLeaveCancelled:Ot,onBeforeAppear:Ot,onAppear:Ot,onAfterAppear:Ot,onAppearCancelled:Ot},ch=e=>{const t=e.subTree;return t.component?ch(t.component):t},hb={name:"BaseTransition",props:lh,setup(e,{slots:t}){const n=Sn(),r=db();return()=>{const s=t.default&&dh(t.default(),!0);if(!s||!s.length)return;const i=uh(s),o=ve(e),{mode:a}=o;if(r.isLeaving)return Zo(i);const l=Wc(i);if(!l)return Zo(i);let u=Ka(l,o,r,n,f=>u=f);l.type!==Ye&&Nr(l,u);let c=n.subTree&&Wc(n.subTree);if(c&&c.type!==Ye&&!Ht(c,l)&&ch(n).type!==Ye){let f=Ka(c,o,r,n);if(Nr(c,f),a==="out-in"&&l.type!==Ye)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,c=void 0},Zo(i);a==="in-out"&&l.type!==Ye?f.delayLeave=(h,d,m)=>{const p=fh(r,c);p[String(c.key)]=c,h[Yt]=()=>{d(),h[Yt]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{m(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return i}}};function uh(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==Ye){t=n;break}}return t}const pb=hb;function fh(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Ka(e,t,n,r,s){const{appear:i,mode:o,persisted:a=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:h,onLeave:d,onAfterLeave:m,onLeaveCancelled:p,onBeforeAppear:v,onAppear:b,onAfterAppear:g,onAppearCancelled:y}=t,w=String(e.key),_=fh(n,e),k=(x,D)=>{x&&qt(x,r,9,D)},$=(x,D)=>{const q=D[1];k(x,D),se(x)?x.every(S=>S.length<=1)&&q():x.length<=1&&q()},O={mode:o,persisted:a,beforeEnter(x){let D=l;if(!n.isMounted)if(i)D=v||l;else return;x[Yt]&&x[Yt](!0);const q=_[w];q&&Ht(e,q)&&q.el[Yt]&&q.el[Yt](),k(D,[x])},enter(x){if(_[w]===e)return;let D=u,q=c,S=f;if(!n.isMounted)if(i)D=b||u,q=g||c,S=y||f;else return;let P=!1;x[os]=R=>{P||(P=!0,R?k(S,[x]):k(q,[x]),O.delayedLeave&&O.delayedLeave(),x[os]=void 0)};const j=x[os].bind(null,!1);D?$(D,[x,j]):j()},leave(x,D){const q=String(e.key);if(x[os]&&x[os](!0),n.isUnmounting)return D();k(h,[x]);let S=!1;x[Yt]=j=>{S||(S=!0,D(),j?k(p,[x]):k(m,[x]),x[Yt]=void 0,_[q]===e&&delete _[q])};const P=x[Yt].bind(null,!1);_[q]=e,d?$(d,[x,P]):P()},clone(x){const D=Ka(x,t,n,r,s);return s&&s(D),D}};return O}function Zo(e){if(Gs(e))return e=Tn(e),e.children=null,e}function Wc(e){if(!Gs(e))return ah(e.type)&&e.children?uh(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&ae(n.default))return n.default()}}function Nr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Nr(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function dh(e,t=!1,n){let r=[],s=0;for(let i=0;i<e.length;i++){let o=e[i];const a=n==null?o.key:String(n)+String(o.key!=null?o.key:i);o.type===st?(o.patchFlag&128&&s++,r=r.concat(dh(o.children,t,a))):(t||o.type!==Ye)&&r.push(a!=null?Tn(o,{key:a}):o)}if(s>1)for(let i=0;i<r.length;i++)r[i].patchFlag=-2;return r}function Zr(e,t){return ae(e)?nt({name:e.name},t,{setup:e}):e}function Xl(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function zc(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const qi=new WeakMap;function Pr(e,t,n,r,s=!1){if(se(e)){e.forEach((p,v)=>Pr(p,t&&(se(t)?t[v]:t),n,r,s));return}if(wn(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Pr(e,t,n,r.component.subTree);return}const i=r.shapeFlag&4?Ro(r.component):r.el,o=s?null:i,{i:a,r:l}=e,u=t&&t.r,c=a.refs===Ie?a.refs={}:a.refs,f=a.setupState,h=ve(f),d=f===Ie?xd:p=>zc(c,p)?!1:Ce(h,p),m=(p,v)=>!(v&&zc(c,v));if(u!=null&&u!==l){if(Kc(t),Be(u))c[u]=null,d(u)&&(f[u]=null);else if(De(u)){const p=t;m(u,p.k)&&(u.value=null),p.k&&(c[p.k]=null)}}if(ae(l))Ws(l,a,12,[o,c]);else{const p=Be(l),v=De(l);if(p||v){const b=()=>{if(e.f){const g=p?d(l)?f[l]:c[l]:m()||!e.k?l.value:c[e.k];if(s)se(g)&&jl(g,i);else if(se(g))g.includes(i)||g.push(i);else if(p)c[l]=[i],d(l)&&(f[l]=c[l]);else{const y=[i];m(l,e.k)&&(l.value=y),e.k&&(c[e.k]=y)}}else p?(c[l]=o,d(l)&&(f[l]=o)):v&&(m(l,e.k)&&(l.value=o),e.k&&(c[e.k]=o))};if(o){const g=()=>{b(),qi.delete(e)};g.id=-1,qi.set(e,g),tt(g,n)}else Kc(e),b()}}}function Kc(e){const t=qi.get(e);t&&(t.flags|=8,qi.delete(e))}let Gc=!1;const gr=()=>{Gc||(console.error("Hydration completed but contains mismatches."),Gc=!0)},mb=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",gb=e=>e.namespaceURI.includes("MathML"),fi=e=>{if(e.nodeType===1){if(mb(e))return"svg";if(gb(e))return"mathml"}},Er=e=>e.nodeType===8;function yb(e){const{mt:t,p:n,o:{patchProp:r,createText:s,nextSibling:i,parentNode:o,remove:a,insert:l,createComment:u}}=e,c=(y,w)=>{if(!w.hasChildNodes()){n(null,y,w),Vi(),w._vnode=y;return}f(w.firstChild,y,null,null,null),Vi(),w._vnode=y},f=(y,w,_,k,$,O=!1)=>{O=O||!!w.dynamicChildren;const x=Er(y)&&y.data==="[",D=()=>p(y,w,_,k,$,x),{type:q,ref:S,shapeFlag:P,patchFlag:j}=w;let R=y.nodeType;w.el=y,j===-2&&(O=!1,w.dynamicChildren=null);let C=null;switch(q){case sr:R!==3?w.children===""?(l(w.el=s(""),o(y),y),C=y):C=D():(y.data!==w.children&&(gr(),y.data=w.children),C=i(y));break;case Ye:g(y)?(C=i(y),b(w.el=y.content.firstChild,y,_)):R!==8||x?C=D():C=i(y);break;case ki:if(x&&(y=i(y),R=y.nodeType),R===1||R===3){C=y;const I=!w.children.length;for(let N=0;N<w.staticCount;N++)I&&(w.children+=C.nodeType===1?C.outerHTML:C.data),N===w.staticCount-1&&(w.anchor=C),C=i(C);return x?i(C):C}else D();break;case st:x?C=m(y,w,_,k,$,O):C=D();break;default:if(P&1)(R!==1||w.type.toLowerCase()!==y.tagName.toLowerCase())&&!g(y)?C=D():C=h(y,w,_,k,$,O);else if(P&6){w.slotScopeIds=$;const I=o(y);if(x?C=v(y):Er(y)&&y.data==="teleport start"?C=v(y,y.data,"teleport end"):C=i(y),t(w,I,null,_,k,fi(I),O),wn(w)&&!w.type.__asyncResolved){let N;x?(N=Pe(st),N.anchor=C?C.previousSibling:I.lastChild):N=y.nodeType===3?Fr(""):Pe("div"),N.el=y,w.component.subTree=N}}else P&64?R!==8?C=D():C=w.type.hydrate(y,w,_,k,$,O,e,d):P&128&&(C=w.type.hydrate(y,w,_,k,fi(o(y)),$,O,e,f))}return S!=null&&Pr(S,null,k,w),C},h=(y,w,_,k,$,O)=>{O=O||!!w.dynamicChildren;const{type:x,props:D,patchFlag:q,shapeFlag:S,dirs:P,transition:j}=w,R=x==="input"||x==="option";if(R||q!==-1){P&&Jt(w,null,_,"created");let C=!1;if(g(y)){C=jh(null,j)&&_&&_.vnode.props&&_.vnode.props.appear;const N=y.content.firstChild;if(C){const W=N.getAttribute("class");W&&(N.$cls=W),j.beforeEnter(N)}b(N,y,_),w.el=y=N}if(S&16&&!(D&&(D.innerHTML||D.textContent))){let N=d(y.firstChild,w,y,_,k,$,O);for(;N;){di(y,1)||gr();const W=N;N=N.nextSibling,a(W)}}else if(S&8){let N=w.children;N[0]===`
3`&&(y.tagName==="PRE"||y.tagName==="TEXTAREA")&&(N=N.slice(1));const{textContent:W}=y;W!==N&&W!==N.replace(/\r\n|\r/g,`
4`)&&(di(y,0)||gr(),y.textContent=w.children)}if(D){if(R||!O||q&48){const N=y.tagName.includes("-");for(const W in D)(R&&(W.endsWith("value")||W==="indeterminate")||qs(W)&&!er(W)||W[0]==="."||N&&!er(W))&&r(y,W,null,D[W],void 0,_)}else if(D.onClick)r(y,"onClick",null,D.onClick,void 0,_);else if(q&4&&an(D.style))for(const N in D.style)D.style[N]}let I;(I=D&&D.onVnodeBeforeMount)&&_t(I,_,w),P&&Jt(w,null,_,"beforeMount"),((I=D&&D.onVnodeMounted)||P||C)&&Uh(()=>{I&&_t(I,_,w),C&&j.enter(y),P&&Jt(w,null,_,"mounted")},k)}return y.nextSibling},d=(y,w,_,k,$,O,x)=>{x=x||!!w.dynamicChildren;const D=w.children,q=D.length;for(let S=0;S<q;S++){const P=x?D[S]:D[S]=At(D[S]),j=P.type===sr;y?(j&&!x&&S+1<q&&At(D[S+1]).type===sr&&(l(s(y.data.slice(P.children.length)),_,i(y)),y.data=P.children),y=f(y,P,k,$,O,x)):j&&!P.children?l(P.el=s(""),_):(di(_,1)||gr(),n(null,P,_,null,k,$,fi(_),O))}return y},m=(y,w,_,k,$,O)=>{const{slotScopeIds:x}=w;x&&($=$?$.concat(x):x);const D=o(y),q=d(i(y),w,D,_,k,$,O);return q&&Er(q)&&q.data==="]"?i(w.anchor=q):(gr(),l(w.anchor=u("]"),D,q),q)},p=(y,w,_,k,$,O)=>{if(di(y.parentElement,1)||gr(),w.el=null,O){const q=v(y);for(;;){const S=i(y);if(S&&S!==q)a(S);else break}}const x=i(y),D=o(y);return a(y),n(null,w,D,x,_,k,fi(D),$),_&&(_.vnode.el=w.el,ko(_,w.el)),x},v=(y,w="[",_="]")=>{let k=0;for(;y;)if(y=i(y),y&&Er(y)&&(y.data===w&&k++,y.data===_)){if(k===0)return i(y);k--}return y},b=(y,w,_)=>{const k=w.parentNode;k&&k.replaceChild(y,w);let $=_;for(;$;)$.vnode.el===w&&($.vnode.el=$.subTree.el=y),$=$.parent},g=y=>y.nodeType===1&&y.tagName==="TEMPLATE";return[c,f]}const Qc="data-allow-mismatch",bb={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function di(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(Qc);)e=e.parentElement;const n=e&&e.getAttribute(Qc);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return t===0&&r.includes("children")?!0:r.includes(bb[t])}}wo().requestIdleCallback;wo().cancelIdleCallback;function vb(e,t){if(Er(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(Er(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}const wn=e=>!!e.type.__asyncLoader;function Ks(e){ae(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:s=200,hydrate:i,timeout:o,suspensible:a=!0,onError:l}=e;let u=null,c,f=0;const h=()=>(f++,u=null,d()),d=()=>{let m;return u||(m=u=t().catch(p=>{if(p=p instanceof Error?p:new Error(String(p)),l)return new Promise((v,b)=>{l(p,()=>v(h()),()=>b(p),f+1)});throw p}).then(p=>m!==u&&u?u:(p&&(p.__esModule||p[Symbol.toStringTag]==="Module")&&(p=p.default),c=p,p)))};return Zr({name:"AsyncComponentWrapper",__asyncLoader:d,__asyncHydrate(m,p,v){let b=!1;(p.bu||(p.bu=[])).push(()=>b=!0);const g=()=>{b||v()},y=i?()=>{const w=i(g,_=>vb(m,_));w&&(p.bum||(p.bum=[])).push(w)}:g;c?y():d().then(()=>!p.isUnmounted&&y())},get __asyncResolved(){return c},setup(){const m=at;if(Xl(m),c)return()=>hi(c,m);const p=y=>{u=null,Xr(y,m,13,!r)};if(a&&m.suspense||cr)return d().then(y=>()=>hi(y,m)).catch(y=>(p(y),()=>r?Pe(r,{error:y}):null));const v=it(!1),b=it(),g=it(!!s);return s&&setTimeout(()=>{g.value=!1},s),o!=null&&setTimeout(()=>{if(!v.value&&!b.value){const y=new Error(`Async component timed out after ${o}ms.`);p(y),b.value=y}},o),d().then(()=>{v.value=!0,m.parent&&Gs(m.parent.vnode)&&m.parent.update()}).catch(y=>{p(y),b.value=y}),()=>{if(v.value&&c)return hi(c,m);if(b.value&&r)return Pe(r,{error:b.value});if(n&&!g.value)return hi(n,m)}}})}function hi(e,t){const{ref:n,props:r,children:s,ce:i}=t.vnode,o=Pe(e,r,s);return o.ref=n,o.ce=i,delete t.vnode.ce,o}const Gs=e=>e.type.__isKeepAlive,wb={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Sn(),r=n.ctx;if(!r.renderer)return()=>{const g=t.default&&t.default();return g&&g.length===1?g[0]:g};const s=new Map,i=new Set;let o=null;const a=n.suspense,{renderer:{p:l,m:u,um:c,o:{createElement:f}}}=r,h=f("div");r.activate=(g,y,w,_,k)=>{const $=g.component;u(g,y,w,0,a),l($.vnode,g,y,w,$,a,_,g.slotScopeIds,k),tt(()=>{$.isDeactivated=!1,$.a&&Cr($.a);const O=g.props&&g.props.onVnodeMounted;O&&_t(O,$.parent,g)},a)},r.deactivate=g=>{const y=g.component;zi(y.m),zi(y.a),u(g,h,null,1,a),tt(()=>{y.da&&Cr(y.da);const w=g.props&&g.props.onVnodeUnmounted;w&&_t(w,y.parent,g),y.isDeactivated=!0},a)};function d(g){ea(g),c(g,n,a,!0)}function m(g){s.forEach((y,w)=>{const _=tl(wn(y)?y.type.__asyncResolved||{}:y.type);_&&!g(_)&&p(w)})}function p(g){const y=s.get(g);y&&(!o||!Ht(y,o))?d(y):o&&ea(o),s.delete(g),i.delete(g)}Rt(()=>[e.include,e.exclude],([g,y])=>{g&&m(w=>ps(g,w)),y&&m(w=>!ps(y,w))},{flush:"post",deep:!0});let v=null;const b=()=>{v!=null&&(Ki(n.subTree.type)?tt(()=>{s.set(v,pi(n.subTree))},n.subTree.suspense):s.set(v,pi(n.subTree)))};return fr(b),yh(b),es(()=>{s.forEach(g=>{const{subTree:y,suspense:w}=n,_=pi(y);if(g.type===_.type&&g.key===_.key){ea(_);const k=_.component.da;k&&tt(k,w);return}d(g)})}),()=>{if(v=null,!t.default)return o=null;const g=t.default(),y=g[0];if(g.length>1)return o=null,g;if(!lr(y)||!(y.shapeFlag&4)&&!(y.shapeFlag&128))return o=null,y;let w=pi(y);if(w.type===Ye)return o=null,w;const _=w.type,k=tl(wn(w)?w.type.__asyncResolved||{}:_),{include:$,exclude:O,max:x}=e;if($&&(!k||!ps($,k))||O&&k&&ps(O,k))return w.shapeFlag&=-257,o=w,y;const D=w.key==null?_:w.key,q=s.get(D);return w.el&&(w=Tn(w),y.shapeFlag&128&&(y.ssContent=w)),v=D,q?(w.el=q.el,w.component=q.component,w.transition&&Nr(w,w.transition),w.shapeFlag|=512,i.delete(D),i.add(D)):(i.add(D),x&&i.size>parseInt(x,10)&&p(i.values().next().value)),w.shapeFlag|=256,o=w,Ki(y.type)?y:w}}},_b=wb;function ps(e,t){return se(e)?e.some(n=>ps(n,t)):Be(e)?e.split(",").includes(t):vy(e)?(e.lastIndex=0,e.test(t)):!1}function hh(e,t){mh(e,"a",t)}function ph(e,t){mh(e,"da",t)}function mh(e,t,n=at){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(So(t,r,n),n){let s=n.parent;for(;s&&s.parent;)Gs(s.parent.vnode)&&Eb(r,t,n,s),s=s.parent}}function Eb(e,t,n,r){const s=So(t,e,r,!0);Co(()=>{jl(r[t],s)},n)}function ea(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function pi(e){return e.shapeFlag&128?e.ssContent:e}function So(e,t,n=at,r=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{_n();const a=ts(n),l=qt(t,n,e,o);return a(),En(),l});return r?s.unshift(i):s.push(i),i}}const Rn=e=>(t,n=at)=>{(!cr||e==="sp")&&So(e,(...r)=>t(...r),n)},gh=Rn("bm"),fr=Rn("m"),Tb=Rn("bu"),yh=Rn("u"),es=Rn("bum"),Co=Rn("um"),Sb=Rn("sp"),Cb=Rn("rtg"),Ab=Rn("rtc");function bh(e,t=at){So("ec",e,t)}const Zl="components",kb="directives";function Ga(e,t){return ec(Zl,e,!0,t)||e}const vh=Symbol.for("v-ndc");function Rb(e){return Be(e)?ec(Zl,e,!1)||e:e||vh}function jP(e){return ec(kb,e)}function ec(e,t,n=!0,r=!1){const s=lt||at;if(s){const i=s.type;if(e===Zl){const a=tl(i,!1);if(a&&(a===t||a===yt(t)||a===vo(yt(t))))return i}const o=Jc(s[e]||i[e],t)||Jc(s.appContext[e],t);return!o&&r?i:o}}
vendor: 4,436 bytes, line 4
4function Jc(e,t){return e&&(e[t]||e[yt(t)]||e[vo(yt(t))])}function Yc(e,t,n,r){let s;const i=n,o=se(e);if(o||Be(e)){const a=o&&an(e);let l=!1,u=!1;a&&(l=!kt(e),u=ln(e),e=Eo(e)),s=new Array(e.length);for(let c=0,f=e.length;c<f;c++)s[c]=t(l?u?Lr(Bt(e[c])):Bt(e[c]):e[c],c,void 0,i)}else if(typeof e=="number"){s=new Array(e);for(let a=0;a<e;a++)s[a]=t(a+1,a,void 0,i)}else if(Te(e))if(e[Symbol.iterator])s=Array.from(e,(a,l)=>t(a,l,void 0,i));else{const a=Object.keys(e);s=new Array(a.length);for(let l=0,u=a.length;l<u;l++){const c=a[l];s[l]=t(e[c],c,l,i)}}else s=[];return s}function LP(e,t,n={},r,s){if(lt.ce||lt.parent&&wn(lt.parent)&&lt.parent.ce){const u=Object.keys(n).length>0;return Ve(),rn(st,null,[Pe("slot",n,r)],u?-2:64)}let i=e[t];i&&i._c&&(i._d=!1),Ve();const o=i&&wh(i(n)),a=n.key||o&&o.key,l=rn(st,{key:(a&&!Pt(a)?a:`_${t}`)+(!o&&r?"_fb":"")},o||[],o&&e._===1?64:-2);return i&&i._c&&(i._d=!0),l}function wh(e){return e.some(t=>lr(t)?!(t.type===Ye||t.type===st&&!wh(t.children)):!0)?e:null}const Qa=e=>e?Wh(e)?Ro(e):Qa(e.parent):null,_s=nt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Qa(e.parent),$root:e=>Qa(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Eh(e),$forceUpdate:e=>e.f||(e.f=()=>{Jl(e.update)}),$nextTick:e=>e.n||(e.n=Un.bind(e.proxy)),$watch:e=>ub.bind(e)}),ta=(e,t)=>e!==Ie&&!e.__isScriptSetup&&Ce(e,t),Pb={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:i,accessCache:o,type:a,appContext:l}=e;if(t[0]!=="$"){const h=o[t];if(h!==void 0)switch(h){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(ta(r,t))return o[t]=1,r[t];if(s!==Ie&&Ce(s,t))return o[t]=2,s[t];if(Ce(i,t))return o[t]=3,i[t];if(n!==Ie&&Ce(n,t))return o[t]=4,n[t];Ja&&(o[t]=0)}}const u=_s[t];let c,f;if(u)return t==="$attrs"&&ft(e.attrs,"get",""),u(e);if((c=a.__cssModules)&&(c=c[t]))return c;if(n!==Ie&&Ce(n,t))return o[t]=4,n[t];if(f=l.config.globalProperties,Ce(f,t))return f[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:i}=e;return ta(s,t)?(s[t]=n,!0):r!==Ie&&Ce(r,t)?(r[t]=n,!0):Ce(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,props:i,type:o}},a){let l;return!!(n[a]||e!==Ie&&a[0]!=="$"&&Ce(e,a)||ta(t,a)||Ce(i,a)||Ce(r,a)||Ce(_s,a)||Ce(s.config.globalProperties,a)||(l=o.__cssModules)&&l[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ce(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Xc(e){return se(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function NP(e){const t=Sn(),n=cr;let r=e();js(),n&&Or(!1);const s=()=>{ts(t),n&&Or(!0)},i=()=>{Sn()!==t&&t.scope.off(),js(),n&&Or(!1)};return Ll(r)&&(r=r.catch(o=>{throw s(),Promise.resolve().then(()=>Promise.resolve().then(i)),o})),[r,()=>{s(),Promise.resolve().then(i)}]}let Ja=!0;function xb(e){const t=Eh(e),n=e.proxy,r=e.ctx;Ja=!1,t.beforeCreate&&Zc(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:o,watch:a,provide:l,inject:u,created:c,beforeMount:f,mounted:h,beforeUpdate:d,updated:m,activated:p,deactivated:v,beforeDestroy:b,beforeUnmount:g,destroyed:y,unmounted:w,render:_,renderTracked:k,renderTriggered:$,errorCaptured:O,serverPrefetch:x,expose:D,inheritAttrs:q,components:S,directives:P,filters:j}=t;if(u&&Ob(u,r,null),o)for(const I in o){const N=o[I];ae(N)&&(r[I]=N.bind(n))}if(s){const I=s.call(n,n);Te(I)&&(e.data=xt(I))}if(Ja=!0,i)for(const I in i){const N=i[I],W=ae(N)?N.bind(n,n):ae(N.get)?N.get.bind(n,n):on,ie=!ae(N)&&ae(N.set)?N.set.bind(n):on,Z=ke({get:W,set:ie});Object.defineProperty(r,I,{enumerable:!0,configurable:!0,get:()=>Z.value,set:te=>Z.value=te})}if(a)for(const I in a)_h(a[I],r,n,I);if(l){const I=ae(l)?l.call(n):l;Reflect.ownKeys(I).forEach(N=>{Rr(N,I[N])})}c&&Zc(c,e,"c");function C(I,N){se(N)?N.forEach(W=>I(W.bind(n))):N&&I(N.bind(n))}if(C(gh,f),C(fr,h),C(Tb,d),C(yh,m),C(hh,p),C(ph,v),C(bh,O),C(Ab,k),C(Cb,$),C(es,g),C(Co,w),C(Sb,x),se(D))if(D.length){const I=e.exposed||(e.exposed={});D.forEach(N=>{Object.defineProperty(I,N,{get:()=>n[N],set:W=>n[N]=W,enumerable:!0})})}else e.exposed||(e.exposed={});_&&e.render===on&&(e.render=_),q!=null&&(e.inheritAttrs=q),S&&(e.components=S),P&&(e.directives=P),x&&Xl(e)}function Ob(e,t,n=on){se(e)&&(e=Ya(e));for(const r in e){const s=e[r];let i;Te(s)?"default"in s?i=dt(s.from||r,s.default,!0):i=dt(s.from||r):i=dt
vendor: 2,112 bytes, line 4
4(s),De(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[r]=i}}function Zc(e,t,n){qt(se(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function _h(e,t,n,r){let s=r.includes(".")?oh(n,r):()=>n[r];if(Be(e)){const i=t[e];ae(i)&&Rt(s,i)}else if(ae(e))Rt(s,e.bind(n));else if(Te(e))if(se(e))e.forEach(i=>_h(i,t,n,r));else{const i=ae(e.handler)?e.handler.bind(n):t[e.handler];ae(i)&&Rt(s,i,e)}}function Eh(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,a=i.get(t);let l;return a?l=a:!s.length&&!n&&!r?l=t:(l={},s.length&&s.forEach(u=>Wi(l,u,o,!0)),Wi(l,t,o)),Te(t)&&i.set(t,l),l}function Wi(e,t,n,r=!1){const{mixins:s,extends:i}=t;i&&Wi(e,i,n,!0),s&&s.forEach(o=>Wi(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const a=Ib[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const Ib={data:eu,props:tu,emits:tu,methods:ms,computed:ms,beforeCreate:pt,created:pt,beforeMount:pt,mounted:pt,beforeUpdate:pt,updated:pt,beforeDestroy:pt,beforeUnmount:pt,destroyed:pt,unmounted:pt,activated:pt,deactivated:pt,errorCaptured:pt,serverPrefetch:pt,components:ms,directives:ms,watch:Mb,provide:eu,inject:$b};function eu(e,t){return t?e?function(){return nt(ae(e)?e.call(this,this):e,ae(t)?t.call(this,this):t)}:t:e}function $b(e,t){return ms(Ya(e),Ya(t))}function Ya(e){if(se(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function pt(e,t){return e?[...new Set([].concat(e,t))]:t}function ms(e,t){return e?nt(Object.create(null),e,t):t}function tu(e,t){return e?se(e)&&se(t)?[...new Set([...e,...t])]:nt(Object.create(null),Xc(e),Xc(t??{})):t}function Mb(e,t){if(!e)return t;if(!t)return e;const n=nt(Object.create(null),e);for(const r in t)n[r]=pt(e[r],t[r]);return n}function Th(){return{app:null,config:{isNativeTag:xd,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 jb=0;
vendor: 4,558 bytes, line 4
4function Lb(e,t){return function(r,s=null){ae(r)||(r=nt({},r)),s!=null&&!Te(s)&&(s=null);const i=Th(),o=new WeakSet,a=[];let l=!1;const u=i.app={_uid:jb++,_component:r,_props:s,_container:null,_context:i,_instance:null,version:gv,get config(){return i.config},set config(c){},use(c,...f){return o.has(c)||(c&&ae(c.install)?(o.add(c),c.install(u,...f)):ae(c)&&(o.add(c),c(u,...f))),u},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),u},component(c,f){return f?(i.components[c]=f,u):i.components[c]},directive(c,f){return f?(i.directives[c]=f,u):i.directives[c]},mount(c,f,h){if(!l){const d=u._ceVNode||Pe(r,s);return d.appContext=i,h===!0?h="svg":h===!1&&(h=void 0),f&&t?t(d,c):e(d,c,h),l=!0,u._container=c,c.__vue_app__=u,Ro(d.component)}},onUnmount(c){a.push(c)},unmount(){l&&(qt(a,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,f){return i.provides[c]=f,u},runWithContext(c){const f=rr;rr=u;try{return c()}finally{rr=f}}};return u}}let rr=null;const Nb=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${yt(t)}Modifiers`]||e[`${ur(t)}Modifiers`];function Db(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Ie;let s=n;const i=t.startsWith("update:"),o=i&&Nb(r,t.slice(7));o&&(o.trim&&(s=n.map(c=>Be(c)?c.trim():c)),o.number&&(s=n.map(Dl)));let a,l=r[a=Go(t)]||r[a=Go(yt(t))];!l&&i&&(l=r[a=Go(ur(t))]),l&&qt(l,e,6,s);const u=r[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,qt(u,e,6,s)}}const Fb=new WeakMap;function Sh(e,t,n=!1){const r=n?Fb:t.emitsCache,s=r.get(e);if(s!==void 0)return s;const i=e.emits;let o={},a=!1;if(!ae(e)){const l=u=>{const c=Sh(u,t,!0);c&&(a=!0,nt(o,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!a?(Te(e)&&r.set(e,null),null):(se(i)?i.forEach(l=>o[l]=null):nt(o,i),Te(e)&&r.set(e,o),o)}function Ao(e,t){return!e||!qs(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ce(e,t[0].toLowerCase()+t.slice(1))||Ce(e,ur(t))||Ce(e,t))}function na(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[i],slots:o,attrs:a,emit:l,render:u,renderCache:c,props:f,data:h,setupState:d,ctx:m,inheritAttrs:p}=e,v=Bi(e);let b,g;try{if(n.shapeFlag&4){const w=s||r,_=w;b=At(u.call(_,w,c,f,d,h,m)),g=a}else{const w=t;b=At(w.length>1?w(f,{attrs:a,slots:o,emit:l}):w(f,null)),g=t.props?a:Ub(a)}}catch(w){Es.length=0,Xr(w,e,1),b=Pe(Ye)}let y=b;if(g&&p!==!1){const w=Object.keys(g),{shapeFlag:_}=y;w.length&&_&7&&(i&&w.some(go)&&(g=Vb(g,i)),y=Tn(y,g,!1,!0))}return n.dirs&&(y=Tn(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&Nr(y,n.transition),b=y,Bi(v),b}function Hb(e,t=!0){let n;for(let r=0;r<e.length;r++){const s=e[r];if(lr(s)){if(s.type!==Ye||s.children==="v-if"){if(n)return;n=s}}else return}return n}const Ub=e=>{let t;for(const n in e)(n==="class"||n==="style"||qs(n))&&((t||(t={}))[n]=e[n]);return t},Vb=(e,t)=>{const n={};for(const r in e)(!go(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Bb(e,t,n){const{props:r,children:s,component:i}=e,{props:o,children:a,patchFlag:l}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?nu(r,o,u):!!o;if(l&8){const c=t.dynamicProps;for(let f=0;f<c.length;f++){const h=c[f];if(Ch(o,r,h)&&!Ao(u,h))return!0}}}else return(s||a)&&(!a||!a.$stable)?!0:r===o?!1:r?o?nu(r,o,u):!0:!!o;return!1}function nu(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let s=0;s<r.length;s++){const i=r[s];if(Ch(t,e,i)&&!Ao(n,i))return!0}return!1}function Ch(e,t,n){const r=e[n],s=t[n];return n==="style"&&Te(r)&&Te(s)?!Hl(r,s):r!==s}function ko({vnode:e,parent:t,suspense:n},r){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.suspense.vnode.el=s.el=r,e=s),s===e)(e=t.vnode).el=r,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=r)}const Ah={},kh=()=>Object.create(Ah),Rh=e=>Object.getPrototypeOf(e)===Ah;function qb(e,t,n,r=!1){const s={},i=kh();e.propsDefaults=Object.create(null),Ph(e,t,s,i);for(const o in e.propsOptions[0])o in s||(s[o]=void 0);n?e.props=r?s:nn(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function Wb(e,t,n,r){const{props:s,attrs:i,vnode:{patchFlag:o}}=e,a=ve(s),[l]=e.propsOptions;let u=!1;if((r||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let f=0;f<c.length;f++){let h=c[f];if(Ao(e.emitsOptions,h))continue;const d=t[h];if(l)if(Ce(i,h))d!==i[h]&&(i[h]=d,u=!0);else{const m=yt(h);s[m]=Xa(l,a,m,d,e,!1)}else d!==i[h]&&(i[h]=d,u=!0)}}}else{Ph(e,t,s,i)&&(u=!0);let c;
vendor: 7,673 bytes, line 4
4for(const f in a)(!t||!Ce(t,f)&&((c=ur(f))===f||!Ce(t,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(s[f]=Xa(l,a,f,void 0,e,!0)):delete s[f]);if(i!==a)for(const f in i)(!t||!Ce(t,f))&&(delete i[f],u=!0)}u&&yn(e.attrs,"set","")}function Ph(e,t,n,r){const[s,i]=e.propsOptions;let o=!1,a;if(t)for(let l in t){if(er(l))continue;const u=t[l];let c;s&&Ce(s,c=yt(l))?!i||!i.includes(c)?n[c]=u:(a||(a={}))[c]=u:Ao(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,o=!0)}if(i){const l=ve(n),u=a||Ie;for(let c=0;c<i.length;c++){const f=i[c];n[f]=Xa(s,l,f,u[f],e,!Ce(u,f))}}return o}function Xa(e,t,n,r,s,i){const o=e[n];if(o!=null){const a=Ce(o,"default");if(a&&r===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&ae(l)){const{propsDefaults:u}=s;if(n in u)r=u[n];else{const c=ts(s);r=u[n]=l.call(null,t),c()}}else r=l;s.ce&&s.ce._setProp(n,r)}o[0]&&(i&&!a?r=!1:o[1]&&(r===""||r===ur(n))&&(r=!0))}return r}const zb=new WeakMap;function xh(e,t,n=!1){const r=n?zb:t.propsCache,s=r.get(e);if(s)return s;const i=e.props,o={},a=[];let l=!1;if(!ae(e)){const c=f=>{l=!0;const[h,d]=xh(f,t,!0);nt(o,h),d&&a.push(...d)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!l)return Te(e)&&r.set(e,Tr),Tr;if(se(i))for(let c=0;c<i.length;c++){const f=yt(i[c]);ru(f)&&(o[f]=Ie)}else if(i)for(const c in i){const f=yt(c);if(ru(f)){const h=i[c],d=o[f]=se(h)||ae(h)?{type:h}:nt({},h),m=d.type;let p=!1,v=!0;if(se(m))for(let b=0;b<m.length;++b){const g=m[b],y=ae(g)&&g.name;if(y==="Boolean"){p=!0;break}else y==="String"&&(v=!1)}else p=ae(m)&&m.name==="Boolean";d[0]=p,d[1]=v,(p||Ce(d,"default"))&&a.push(f)}}const u=[o,a];return Te(e)&&r.set(e,u),u}function ru(e){return e[0]!=="$"&&!er(e)}const tc=e=>e==="_"||e==="_ctx"||e==="$stable",nc=e=>se(e)?e.map(At):[At(e)],Kb=(e,t,n)=>{if(t._n)return t;const r=nr((...s)=>nc(t(...s)),n);return r._c=!1,r},Oh=(e,t,n)=>{const r=e._ctx;for(const s in e){if(tc(s))continue;const i=e[s];if(ae(i))t[s]=Kb(s,i,r);else if(i!=null){const o=nc(i);t[s]=()=>o}}},Ih=(e,t)=>{const n=nc(t);e.slots.default=()=>n},$h=(e,t,n)=>{for(const r in t)(n||!tc(r))&&(e[r]=t[r])},Gb=(e,t,n)=>{const r=e.slots=kh();if(e.vnode.shapeFlag&32){const s=t._;s?($h(r,t,n),n&&$d(r,"_",s,!0)):Oh(t,r)}else t&&Ih(e,t)},Qb=(e,t,n)=>{const{vnode:r,slots:s}=e;let i=!0,o=Ie;if(r.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:$h(s,t,n):(i=!t.$stable,Oh(t,s)),o=t}else t&&(Ih(e,t),o={default:1});if(i)for(const a in s)!tc(a)&&o[a]==null&&delete s[a]},tt=Uh;function Jb(e){return Mh(e)}function Yb(e){return Mh(e,yb)}function Mh(e,t){const n=wo();n.__VUE__=!0;const{insert:r,remove:s,patchProp:i,createElement:o,createText:a,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:h,setScopeId:d=on,insertStaticContent:m}=e,p=(E,A,L,H=null,F=null,U=null,X=void 0,G=null,K=!!A.dynamicChildren)=>{if(E===A)return;E&&!Ht(E,A)&&(H=M(E),te(E,F,U,!0),E=null),A.patchFlag===-2&&(K=!1,A.dynamicChildren=null);const{type:V,ref:oe,shapeFlag:ee}=A;switch(V){case sr:v(E,A,L,H);break;case Ye:b(E,A,L,H);break;case ki:E==null&&g(A,L,H,X);break;case st:S(E,A,L,H,F,U,X,G,K);break;default:ee&1?_(E,A,L,H,F,U,X,G,K):ee&6?P(E,A,L,H,F,U,X,G,K):(ee&64||ee&128)&&V.process(E,A,L,H,F,U,X,G,K,J)}oe!=null&&F?Pr(oe,E&&E.ref,U,A||E,!A):oe==null&&E&&E.ref!=null&&Pr(E.ref,null,U,E,!0)},v=(E,A,L,H)=>{if(E==null)r(A.el=a(A.children),L,H);else{const F=A.el=E.el;A.children!==E.children&&u(F,A.children)}},b=(E,A,L,H)=>{E==null?r(A.el=l(A.children||""),L,H):A.el=E.el},g=(E,A,L,H)=>{[E.el,E.anchor]=m(E.children,A,L,H,E.el,E.anchor)},y=({el:E,anchor:A},L,H)=>{let F;for(;E&&E!==A;)F=h(E),r(E,L,H),E=F;r(A,L,H)},w=({el:E,anchor:A})=>{let L;for(;E&&E!==A;)L=h(E),s(E),E=L;s(A)},_=(E,A,L,H,F,U,X,G,K)=>{if(A.type==="svg"?X="svg":A.type==="math"&&(X="mathml"),E==null)k(A,L,H,F,U,X,G,K);else{const V=E.el&&E.el._isVueCE?E.el:null;try{V&&V._beginPatch(),x(E,A,F,U,X,G,K)}finally{V&&V._endPatch()}}},k=(E,A,L,H,F,U,X,G)=>{let K,V;const{props:oe,shapeFlag:ee,transition:ne,dirs:fe}=E;if(K=E.el=o(E.type,U,oe&&oe.is,oe),ee&8?c(K,E.children):ee&16&&O(E.children,K,null,H,F,ra(E,U),X,G),fe&&Jt(E,null,H,"created"),$(K,E,E.scopeId,X,H),oe){for(const Oe in oe)Oe!=="value"&&!er(Oe)&&i(K,Oe,null,oe[Oe],U,H);"value"in oe&&i(K,"value",null,oe.value,U),(V=oe.onVnodeBeforeMount)&&_t(V,H,E)}fe&&Jt(E,null,H,"beforeMount");const _e=jh(F,ne);_e&&ne.beforeEnter(K),r(K,A,L),((V=oe&&oe.onVnodeMounted)||_e||fe)&&tt(()=>{V&&_t(V,H,E),_e&&ne.enter(K),fe&&Jt(E,null,H,"mounted")},F)},$=(E,A,L,H,F)=>{if(L&&d(E,L),H)for(let U=0;U<H.length;U++)d(E,H[U]);if(F){let U=F.subTree;if(A===U||Ki(U.type)&&(U.ssContent===A||U.ssFallback===A)){const X=F.vnode;$(E,X,X.scopeId,X.slotScopeIds,F.parent)}}},O=(E,A,L,H,F,U,X,G,K=0)=>{for(let V=K;V<E.length;V++){const oe=E[V]=G?gn(E[V]):At(E[V]);p(null,oe,A,L,H,F,U,X,G)}},x=(E,A,L,H,F,U,X)=>{const G=A.el=E.el;let{patchFlag:K,dynamicChildren:V,dirs:oe}=A;K|=E.patchFlag&16;const ee=E.props||Ie,ne=A.props||Ie;let fe;if(L&&Bn(L,!1),(fe=ne.onVnodeBeforeUpdate)&&_t(fe,L,A,E),oe&&Jt(A,E,L,"beforeUpdate"),L&&Bn(L,!0),(ee.innerHTML&&ne.innerHTML==null||ee.textContent&&ne.textContent==null)&&c(G,""),V?D(E.dynamicChildren,V,G,L,H,ra(A,F),U):X||N(E,A,G,null,L,H,ra(A,F),U,!1),K>0){if(K&16)q(G,ee,ne,L,F);else if(K&2&&ee.class!==ne.class&&i(G,"class",null,ne.class,F),K&4&&i(G,"style",ee.style,ne.style,F),K&8){const _e=A.dynamicProps;for(let Oe=0;Oe<_e.length;Oe++){const Me=_e[Oe],Je=ee[Me],Xe=ne[Me];(Xe!==Je||Me==="value")&&i(G,Me,Je,Xe,F,L)}}K&1&&E.children!==A.children&&c(G,A.children)}else!X&&V==null&&q(G,ee,ne,L,F);((fe=ne.onVnodeUpdated)||oe)&&tt(()=>{fe&&_t(fe,L,A,E),oe&&Jt(A,E,L,"updated")},H)},D=(E,A,L,H,F,U,X)=>{for(let G=0;G<A.length;G++){const K=E[G],V=A[G],oe=K.el&&(K.type===st||!Ht(K,V)||K.shapeFlag&198)?f(K.el):L;p(K,V,oe,null,H,F,U,X,!0)}},q=(E,A,L,H,F)=>{if(A!==L){if(A!==Ie)for(const U in A)!er(U)&&!(U in L)&&i(E,U,A[U],null,F,H);for(const U in L){if(er(U))continue;const X=L[U],G=A[U];X!==G&&U!=="value"&&i(E,U,G,X,F,H)}"value"in L&&i(E,"value",A.value,L.value,F)}},S=(E,A,L,H,F,U,X,G,K)=>{const V=A.el=E?E.el:a(""),oe=A.anchor=E?E.anchor:a("");let{patchFlag:ee,dynamicChildren:ne,slotScopeIds:fe}=A;fe&&(G=G?G.concat(fe):fe),E==null?(r(V,L,H),r(oe,L,H),O(A.children||[],L,oe,F,U,X,G,K)):ee>0&&ee&64&&ne&&E.dynamicChildren&&E.dynamicChildren.length===ne.length?(D(E.dynamicChildren,ne,L,F,U,X,G),(A.key!=null||F&&A===F.subTree)&&Lh(E,A,!0)):N(E,A,L,oe,F,U,X,G,K)},P=(E,A,L,H,F,U,X,G,K)=>{A.slotScopeIds=G,E==null?A.shapeFlag&512?F.ctx.activate(A,L,H,X,K):j(A,L,H,F,U,X,K):R(E,A,K)},j=(E,A,L,H,F,U,X)=>{const G=E.component=uv(E,H,F);if(Gs(E)&&(G.ctx.renderer=J),fv(G,!1,X),G.asyncDep){if(F&&F.registerDep(G,C,X),!E.el){const K=G.subTree=Pe(Ye);b(null,K,A,L),E.placeholder=K.el}}else C(G,E,A,L,F,U,X)},R=(E,A,L)=>{const H=A.component=E.component;if(Bb(E,A,L))if(H.asyncDep&&!H.asyncResolved){I(H,A,L);return}else H.next=A,H.update();else A.el=E.el,H.vnode=A},C=(E,A,L,H,F,U,X)=>{const G=()=>{if(E.isMounted){let{next:ee,bu:ne,u:fe,parent:_e,vnode:Oe}=E;{const St=Nh(E);if(St){ee&&(ee.el=Oe.el,I(E,ee,X)),St.asyncDep.then(()=>{tt(()=>{E.isUnmounted||V()},F)});return}}let Me=ee,Je;Bn(E,!1),ee?(ee.el=Oe.el,I(E,ee,X)):ee=Oe,ne&&Cr(ne),(Je=ee.props&&ee.props.onVnodeBeforeUpdate)&&_t(Je,_e,ee,Oe),Bn(E,!0);const Xe=na(E),jt=E.subTree;E.subTree=Xe,p(jt,Xe,f(jt.el),M(jt),E,F,U),ee.el=Xe.el,Me===null&&ko(E,Xe.el),fe&&tt(fe,F),(Je=ee.props&&ee.props.onVnodeUpdated)&&tt(()=>_t(Je,_e,ee,Oe),F)}else{let ee;const{el:ne,props:fe}=A,{bm:_e,m:Oe,parent:Me,root:Je,type:Xe}=E,jt=wn(A);if(Bn(E,!1),_e&&Cr(_e),!jt&&(ee=fe&&fe.onVnodeBeforeMount)&&_t(ee,Me,A),Bn(E,!0),ne&&ye){const St=()=>{E.subTree=na(E),ye(ne,E.subTree,E,F,null)};
vendor: 17,859 bytes, line 4
4jt&&Xe.__asyncHydrate?Xe.__asyncHydrate(ne,E,St):St()}else{Je.ce&&Je.ce._hasShadowRoot()&&Je.ce._injectChildStyle(Xe,E.parent?E.parent.type:void 0);const St=E.subTree=na(E);p(null,St,L,H,E,F,U),A.el=St.el}if(Oe&&tt(Oe,F),!jt&&(ee=fe&&fe.onVnodeMounted)){const St=A;tt(()=>_t(ee,Me,St),F)}(A.shapeFlag&256||Me&&wn(Me.vnode)&&Me.vnode.shapeFlag&256)&&E.a&&tt(E.a,F),E.isMounted=!0,A=L=H=null}};E.scope.on();const K=E.effect=new Fd(G);E.scope.off();const V=E.update=K.run.bind(K),oe=E.job=K.runIfDirty.bind(K);oe.i=E,oe.id=E.uid,K.scheduler=()=>Jl(oe),Bn(E,!0),V()},I=(E,A,L)=>{A.component=E;const H=E.vnode.props;E.vnode=A,E.next=null,Wb(E,A.props,H,L),Qb(E,A.children,L),_n(),Bc(E),En()},N=(E,A,L,H,F,U,X,G,K=!1)=>{const V=E&&E.children,oe=E?E.shapeFlag:0,ee=A.children,{patchFlag:ne,shapeFlag:fe}=A;if(ne>0){if(ne&128){ie(V,ee,L,H,F,U,X,G,K);return}else if(ne&256){W(V,ee,L,H,F,U,X,G,K);return}}fe&8?(oe&16&&pe(V,F,U),ee!==V&&c(L,ee)):oe&16?fe&16?ie(V,ee,L,H,F,U,X,G,K):pe(V,F,U,!0):(oe&8&&c(L,""),fe&16&&O(ee,L,H,F,U,X,G,K))},W=(E,A,L,H,F,U,X,G,K)=>{E=E||Tr,A=A||Tr;const V=E.length,oe=A.length,ee=Math.min(V,oe);let ne;for(ne=0;ne<ee;ne++){const fe=A[ne]=K?gn(A[ne]):At(A[ne]);p(E[ne],fe,L,null,F,U,X,G,K)}V>oe?pe(E,F,U,!0,!1,ee):O(A,L,H,F,U,X,G,K,ee)},ie=(E,A,L,H,F,U,X,G,K)=>{let V=0;const oe=A.length;let ee=E.length-1,ne=oe-1;for(;V<=ee&&V<=ne;){const fe=E[V],_e=A[V]=K?gn(A[V]):At(A[V]);if(Ht(fe,_e))p(fe,_e,L,null,F,U,X,G,K);else break;V++}for(;V<=ee&&V<=ne;){const fe=E[ee],_e=A[ne]=K?gn(A[ne]):At(A[ne]);if(Ht(fe,_e))p(fe,_e,L,null,F,U,X,G,K);else break;ee--,ne--}if(V>ee){if(V<=ne){const fe=ne+1,_e=fe<oe?A[fe].el:H;for(;V<=ne;)p(null,A[V]=K?gn(A[V]):At(A[V]),L,_e,F,U,X,G,K),V++}}else if(V>ne)for(;V<=ee;)te(E[V],F,U,!0),V++;else{const fe=V,_e=V,Oe=new Map;for(V=_e;V<=ne;V++){const Ct=A[V]=K?gn(A[V]):At(A[V]);Ct.key!=null&&Oe.set(Ct.key,V)}let Me,Je=0;const Xe=ne-_e+1;let jt=!1,St=0;const ss=new Array(Xe);for(V=0;V<Xe;V++)ss[V]=0;for(V=fe;V<=ee;V++){const Ct=E[V];if(Je>=Xe){te(Ct,F,U,!0);continue}let Kt;if(Ct.key!=null)Kt=Oe.get(Ct.key);else for(Me=_e;Me<=ne;Me++)if(ss[Me-_e]===0&&Ht(Ct,A[Me])){Kt=Me;break}Kt===void 0?te(Ct,F,U,!0):(ss[Kt-_e]=V+1,Kt>=St?St=Kt:jt=!0,p(Ct,A[Kt],L,null,F,U,X,G,K),Je++)}const Lc=jt?Xb(ss):Tr;for(Me=Lc.length-1,V=Xe-1;V>=0;V--){const Ct=_e+V,Kt=A[Ct],Nc=A[Ct+1],Dc=Ct+1<oe?Nc.el||Dh(Nc):H;ss[V]===0?p(null,Kt,L,Dc,F,U,X,G,K):jt&&(Me<0||V!==Lc[Me]?Z(Kt,L,Dc,2):Me--)}}},Z=(E,A,L,H,F=null)=>{const{el:U,type:X,transition:G,children:K,shapeFlag:V}=E;if(V&6){Z(E.component.subTree,A,L,H);return}if(V&128){E.suspense.move(A,L,H);return}if(V&64){X.move(E,A,L,J);return}if(X===st){r(U,A,L);for(let ee=0;ee<K.length;ee++)Z(K[ee],A,L,H);r(E.anchor,A,L);return}if(X===ki){y(E,A,L);return}if(H!==2&&V&1&&G)if(H===0)G.beforeEnter(U),r(U,A,L),tt(()=>G.enter(U),F);else{const{leave:ee,delayLeave:ne,afterLeave:fe}=G,_e=()=>{E.ctx.isUnmounted?s(U):r(U,A,L)},Oe=()=>{U._isLeaving&&U[Yt](!0),ee(U,()=>{_e(),fe&&fe()})};ne?ne(U,_e,Oe):Oe()}else r(U,A,L)},te=(E,A,L,H=!1,F=!1)=>{const{type:U,props:X,ref:G,children:K,dynamicChildren:V,shapeFlag:oe,patchFlag:ee,dirs:ne,cacheIndex:fe,memo:_e}=E;if(ee===-2&&(F=!1),G!=null&&(_n(),Pr(G,null,L,E,!0),En()),fe!=null&&(A.renderCache[fe]=void 0),oe&256){A.ctx.deactivate(E);return}const Oe=oe&1&&ne,Me=!wn(E);let Je;if(Me&&(Je=X&&X.onVnodeBeforeUnmount)&&_t(Je,A,E),oe&6)de(E.component,L,H);else{if(oe&128){E.suspense.unmount(L,H);return}Oe&&Jt(E,null,A,"beforeUnmount"),oe&64?E.type.remove(E,A,L,J,H):V&&!V.hasOnce&&(U!==st||ee>0&&ee&64)?pe(V,A,L,!1,!0):(U===st&&ee&384||!F&&oe&16)&&pe(K,A,L),H&&be(E)}const Xe=_e!=null&&fe==null;(Me&&(Je=X&&X.onVnodeUnmounted)||Oe||Xe)&&tt(()=>{Je&&_t(Je,A,E),Oe&&Jt(E,null,A,"unmounted"),Xe&&(E.el=null)},L)},be=E=>{const{type:A,el:L,anchor:H,transition:F}=E;if(A===st){ge(L,H);return}if(A===ki){w(E);return}const U=()=>{s(L),F&&!F.persisted&&F.afterLeave&&F.afterLeave()};if(E.shapeFlag&1&&F&&!F.persisted){const{leave:X,delayLeave:G}=F,K=()=>X(L,U);G?G(E.el,U,K):K()}else U()},ge=(E,A)=>{let L;for(;E!==A;)L=h(E),s(E),E=L;s(A)},de=(E,A,L)=>{const{bum:H,scope:F,job:U,subTree:X,um:G,m:K,a:V}=E;zi(K),zi(V),H&&Cr(H),F.stop(),U&&(U.flags|=8,te(X,E,A,L)),G&&tt(G,A),tt(()=>{E.isUnmounted=!0},A)},pe=(E,A,L,H=!1,F=!1,U=0)=>{for(let X=U;X<E.length;X++)te(E[X],A,L,H,F)},M=E=>{if(E.shapeFlag&6)return M(E.component.subTree);if(E.shapeFlag&128)return E.suspense.next();const A=h(E.anchor||E.el),L=A&&A[fb];return L?h(L):A};let z=!1;const B=(E,A,L)=>{let H;E==null?A._vnode&&(te(A._vnode,null,null,!0),H=A._vnode.component):p(A._vnode||null,E,A,null,null,null,L),A._vnode=E,z||(z=!0,Bc(H),Vi(),z=!1)},J={p,um:te,m:Z,r:be,mt:j,mc:O,pc:N,pbc:D,n:M,o:e};let le,ye;return t&&([le,ye]=t(J)),{render:B,hydrate:le,createApp:Lb(B,le)}}function ra({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Bn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function jh(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Lh(e,t,n=!1){const r=e.children,s=t.children;if(se(r)&&se(s))for(let i=0;i<r.length;i++){const o=r[i];let a=s[i];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=s[i]=gn(s[i]),a.el=o.el),!n&&a.patchFlag!==-2&&Lh(o,a)),a.type===sr&&(a.patchFlag===-1&&(a=s[i]=gn(a)),a.el=o.el),a.type===Ye&&!a.el&&(a.el=o.el)}}function Xb(e){const t=e.slice(),n=[0];let r,s,i,o,a;const l=e.length;for(r=0;r<l;r++){const u=e[r];if(u!==0){if(s=n[n.length-1],e[s]<u){t[r]=s,n.push(r);continue}for(i=0,o=n.length-1;i<o;)a=i+o>>1,e[n[a]]<u?i=a+1:o=a;u<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function Nh(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Nh(t)}function zi(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Dh(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Dh(t.subTree):null}const Ki=e=>e.__isSuspense;let Za=0;const Zb={name:"Suspense",__isSuspense:!0,process(e,t,n,r,s,i,o,a,l,u){if(e==null)ev(t,n,r,s,i,o,a,l,u);else{if(i&&i.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}tv(e,t,n,r,s,o,a,l,u)}},hydrate:nv,normalize:rv},Fh=Zb;function Ms(e,t){const n=e.props&&e.props[t];ae(n)&&n()}function ev(e,t,n,r,s,i,o,a,l){const{p:u,o:{createElement:c}}=l,f=c("div"),h=e.suspense=Hh(e,s,r,t,f,n,i,o,a,l);u(null,h.pendingBranch=e.ssContent,f,null,r,h,i,o),h.deps>0?(Ms(e,"onPending"),Ms(e,"onFallback"),u(null,e.ssFallback,t,n,r,null,i,o),xr(h,e.ssFallback)):h.resolve(!1,!0)}function tv(e,t,n,r,s,i,o,a,{p:l,um:u,o:{createElement:c}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const h=t.ssContent,d=t.ssFallback,{activeBranch:m,pendingBranch:p,isInFallback:v,isHydrating:b}=f;if(p)f.pendingBranch=h,Ht(p,h)?(l(p,h,f.hiddenContainer,null,s,f,i,o,a),f.deps<=0?f.resolve():v&&(b||(l(m,d,n,r,s,null,i,o,a),xr(f,d)))):(f.pendingId=Za++,b?(f.isHydrating=!1,f.activeBranch=p):u(p,s,f),f.deps=0,f.effects.length=0,f.hiddenContainer=c("div"),v?(l(null,h,f.hiddenContainer,null,s,f,i,o,a),f.deps<=0?f.resolve():(l(m,d,n,r,s,null,i,o,a),xr(f,d))):m&&Ht(m,h)?(l(m,h,n,r,s,f,i,o,a),f.resolve(!0)):(l(null,h,f.hiddenContainer,null,s,f,i,o,a),f.deps<=0&&f.resolve()));else if(m&&Ht(m,h))l(m,h,n,r,s,f,i,o,a),xr(f,h);else if(Ms(t,"onPending"),f.pendingBranch=h,h.shapeFlag&512?f.pendingId=h.component.suspenseId:f.pendingId=Za++,l(null,h,f.hiddenContainer,null,s,f,i,o,a),f.deps<=0)f.resolve();else{const{timeout:g,pendingId:y}=f;g>0?setTimeout(()=>{f.pendingId===y&&f.fallback(d)},g):g===0&&f.fallback(d)}}function Hh(e,t,n,r,s,i,o,a,l,u,c=!1){const{p:f,m:h,um:d,n:m,o:{parentNode:p,remove:v}}=u;let b;const g=sv(e);g&&t&&t.pendingBranch&&(b=t.pendingId,t.deps++);const y=e.props?Md(e.props.timeout):void 0,w=i,_={vnode:e,parent:t,parentComponent:n,namespace:o,container:r,hiddenContainer:s,deps:0,pendingId:Za++,timeout:typeof y=="number"?y:-1,activeBranch:null,isFallbackMountPending:!1,pendingBranch:null,isInFallback:!c,isHydrating:c,isUnmounted:!1,effects:[],resolve(k=!1,$=!1){const{vnode:O,activeBranch:x,pendingBranch:D,pendingId:q,effects:S,parentComponent:P,container:j,isInFallback:R}=_;let C=!1;_.isHydrating?_.isHydrating=!1:k||(C=x&&D.transition&&D.transition.mode==="out-in",C&&(x.transition.afterLeave=()=>{q===_.pendingId&&(h(D,j,i===w?m(x):i,0),Is(S),R&&O.ssFallback&&(O.ssFallback.el=null))}),x&&!_.isFallbackMountPending&&(p(x.el)===j&&(i=m(x)),d(x,P,_,!0),!C&&R&&O.ssFallback&&tt(()=>O.ssFallback.el=null,_)),C||h(D,j,i,0)),_.isFallbackMountPending=!1,xr(_,D),_.pendingBranch=null,_.isInFallback=!1;let I=_.parent,N=!1;for(;I;){if(I.pendingBranch){I.effects.push(...S),N=!0;break}I=I.parent}!N&&!C&&Is(S),_.effects=[],g&&t&&t.pendingBranch&&b===t.pendingId&&(t.deps--,t.deps===0&&!$&&t.resolve()),Ms(O,"onResolve")},fallback(k){if(!_.pendingBranch)return;const{vnode:$,activeBranch:O,parentComponent:x,container:D,namespace:q}=_;Ms($,"onFallback");const S=m(O),P=()=>{_.isFallbackMountPending=!1,_.isInFallback&&(f(null,k,D,S,x,null,q,a,l),xr(_,k))},j=k.transition&&k.transition.mode==="out-in";j&&(_.isFallbackMountPending=!0,O.transition.afterLeave=P),_.isInFallback=!0,d(O,x,null,!0),j||P()},move(k,$,O){_.activeBranch&&h(_.activeBranch,k,$,O),_.container=k},next(){return _.activeBranch&&m(_.activeBranch)},registerDep(k,$,O){const x=!!_.pendingBranch;x&&_.deps++;const D=k.vnode.el;k.asyncDep.catch(q=>{Xr(q,k,0)}).then(q=>{if(k.isUnmounted||_.isUnmounted||_.pendingId!==k.suspenseId)return;js(),k.asyncResolved=!0;const{vnode:S}=k;el(k,q),D&&(S.el=D);const P=!D&&k.subTree.el;$(k,S,p(D||k.subTree.el),D?null:m(k.subTree),_,o,O),P&&(S.placeholder=null,v(P)),ko(k,S.el),x&&--_.deps===0&&_.resolve()})},unmount(k,$){_.isUnmounted=!0,_.activeBranch&&d(_.activeBranch,n,k,$),_.pendingBranch&&d(_.pendingBranch,n,k,$)}};return _}function nv(e,t,n,r,s,i,o,a,l){const u=t.suspense=Hh(t,r,n,e.parentNode,document.createElement("div"),null,s,i,o,a,!0),c=l(e,u.pendingBranch=t.ssContent,n,u,i,o);return u.deps===0&&u.resolve(!1,!0),c}function rv(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=su(r?n.default:n),e.ssFallback=r?su(n.fallback):Pe(Ye)}function su(e){let t;if(ae(e)){const n=Dr&&e._c;n&&(e._d=!1,Ve()),e=e(),n&&(e._d=!0,t=Et,Vh())}return se(e)&&(e=Hb(e)),e=At(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Uh(e,t){t&&t.pendingBranch?se(e)?t.effects.push(...e):t.effects.push(e):Is(e)}function xr(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let s=t.el;for(;!s&&t.component;)t=t.component.subTree,s=t.el;n.el=s,r&&r.subTree===n&&(r.vnode.el=s,ko(r,s))}function sv(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const st=Symbol.for("v-fgt"),sr=Symbol.for("v-txt"),Ye=Symbol.for("v-cmt"),ki=Symbol.for("v-stc"),Es=[];let Et=null;function Ve(e=!1){Es.push(Et=e?null:[])}function Vh(){Es.pop(),Et=Es[Es.length-1]||null}let Dr=1;function Gi(e,t=!1){Dr+=e,e<0&&Et&&t&&(Et.hasOnce=!0)}function Bh(e){return e.dynamicChildren=Dr>0?Et||Tr:null,Vh(),Dr>0&&Et&&Et.push(e),e}function $t(e,t,n,r,s,i){return Bh(Ut(e,t,n,r,s,i,!0))}function rn(e,t,n,r,s){return Bh(Pe(e,t,n,r,s,!0))}function lr(e){return e?e.__v_isVNode===!0:!1}function Ht(e,t){return e.type===t.type&&e.key===t.key}const qh=({key:e})=>e??null,Ri=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Be(e)||De(e)||ae(e)?{i:lt,r:e,k:t,f:!!n}:e:null);function Ut(e,t=null,n=null,r=0,s=null,i=e===st?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&qh(t),ref:t&&Ri(t),scopeId:ih,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:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:lt};return a?(rc(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=Be(n)?8:16),Dr>0&&!o&&Et&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&Et.push(l),l}const Pe=iv;function iv(e,t=null,n=null,r=0,s=null,i=!1){if((!e||e===vh)&&(e=Ye),lr(e)){const a=Tn(e,t,!0);return n&&rc(a,n),Dr>0&&!i&&Et&&(a.shapeFlag&6?Et[Et.indexOf(e)]=a:Et.push(a)),a.patchFlag=-2,a}if(mv(e)&&(e=e.__vccOpts),t){t=ov(t);let{class:a,style:l}=t;a&&!Be(a)&&(t.class=tn(a)),Te(l)&&(To(l)&&!se(l)&&(l=nt({},l)),t.style=Fl(l))}const o=Be(e)?1:Ki(e)?128:ah(e)?64:Te(e)?4:ae(e)?2:0;return Ut(e,t,n,r,s,o,i,!0)}function ov(e){return e?To(e)||Rh(e)?nt({},e):e:null}function Tn(e,t,n=!1,r=!1){const{props:s,ref:i,patchFlag:o,children:a,transition:l}=e,u=t?av(s||{},t):s,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&qh(u),ref:t&&t.ref?n&&i?se(i)?i.concat(Ri(t)):[i,Ri(t)]:Ri(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==st?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Tn(e.ssContent),ssFallback:e.ssFallback&&Tn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&Nr(c,l.clone(c)),c}function Fr(e=" ",t=0){return Pe(sr,null,e,t)}function DP(e="",t=!1){return t?(Ve(),rn(Ye,null,e)):Pe(Ye,null,e)}function At(e){return e==null||typeof e=="boolean"?Pe(Ye):se(e)?Pe(st,null,e.slice()):lr(e)?gn(e):Pe(sr,null,String(e))}function gn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Tn(e)}function rc(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(se(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),rc(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!Rh(t)?t._ctx=lt:s===3&&lt&&(lt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ae(t)?(t={default:t,_ctx:lt},n=32):(t=String(t),r&64?(n=16,t=[Fr(t)]):n=8);e.children=t,e.shapeFlag|=n}function av(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const s in r)if(s==="class")t.class!==r.class&&(t.class=tn([t.class,r.class]));else if(s==="style")t.style=Fl([t.style,r.style]);else if(qs(s)){const i=t[s],o=r[s];o&&i!==o&&!(se(i)&&i.includes(o))?t[s]=i?[].concat(i,o):o:o==null&&i==null&&!go(s)&&(t[s]=o)}else s!==""&&(t[s]=r[s])}return t}function _t(e,t,n,r=null){qt(e,t,7,[n,r])}const lv=Th();let cv=0;function uv(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||lv,i={uid:cv++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Dd(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:xh(r,s),emitsOptions:Sh(r,s),emit:null,emitted:null,propsDefaults:Ie,inheritAttrs:r.inheritAttrs,ctx:Ie,data:Ie,props:Ie,attrs:Ie,slots:Ie,refs:Ie,setupState:Ie,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=t?t.root:i,i.emit=Db.bind(null,i),e.ce&&e.ce(i),i}let at=null;const Sn=()=>at||lt;let Qi,Or;{const e=wo(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),i=>{s.length>1?s.forEach(o=>o(i)):s[0](i)}};Qi=t("__VUE_INSTANCE_SETTERS__",n=>at=n),Or=t("__VUE_SSR_SETTERS__",n=>cr=n)}const ts=e=>{const t=at;return Qi(e),e.scope.on(),()=>{e.scope.off(),Qi(t)}},js=()=>{at&&at.scope.off(),Qi(null)};function Wh(e){return e.vnode.shapeFlag&4}let cr=!1;function fv(e,t=!1,n=!1){t&&Or(t);const{props:r,children:s}=e.vnode,i=Wh(e);qb(e,r,i,t),Gb(e,s,n||t);const o=i?dv(e,t):void 0;return t&&Or(!1),o}function dv(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Pb);const{setup:r}=n;if(r){_n();const s=e.setupContext=r.length>1?pv(e):null,i=ts(e),o=Ws(r,e,0,[e.props,s]),a=Ll(o);if(En(),i(),(a||e.sp)&&!wn(e)&&Xl(e),a){if(o.then(js,js),t)return o.then(l=>{el(e,l)}).catch(l=>{Xr(l,e,0)});e.asyncDep=o}else el(e,o)}else zh(e)}function el(e,t,n){ae(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Te(t)&&(e.setupState=eh(t)),zh(e)}function zh(e,t,n){const r=e.type;e.render||(e.render=r.render||on);{const s=ts(e);_n();try{xb(e)}finally{En(),s()}}}const hv={get(e,t){return ft(e,"get",""),e[t]}};function pv(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,hv),slots:e.slots,emit:e.emit,expose:t}}function Ro(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(eh(Kl(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in _s)return _s[n](e)},has(t,n){return n in t||n in _s}})):e.proxy}function tl(e,t=!0){return ae(e)?e.displayName||e.name:e.name||t&&e.__name}function mv(e){return ae(e)&&"__vccOpts"in e}const ke=(e,t)=>nb(e,t,cr);function Tt(e,t,n){try{Gi(-1);const r=arguments.length;return r===2?Te(t)&&!se(t)?lr(t)?Pe(e,null,[t]):Pe(e,t):Pe(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&lr(n)&&(n=[n]),Pe(e,t,n))}finally{Gi(1)}}const gv="3.5.32";let nl;const iu=typeof window<"u"&&window.trustedTypes;if(iu)try{nl=iu.createPolicy("vue",{createHTML:e=>e})}catch{}const Kh=nl?e=>nl.createHTML(e):e=>e,yv="http://www.w3.org/2000/svg",bv="http://www.w3.org/1998/Math/MathML",mn=typeof document<"u"?document:null,ou=mn&&mn.createElement("template"),vv={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?mn.createElementNS(yv,e):t==="mathml"?mn.createElementNS(bv,e):n?mn.createElement(e,{is:n}):mn.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>mn.createTextNode(e),createComment:e=>mn.createComment(e),setText:(e,t)=>
vendor: 4,246 bytes, line 4
4{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>mn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,i){const o=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{ou.innerHTML=Kh(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const a=ou.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},On="transition",as="animation",Ls=Symbol("_vtc"),Gh={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},wv=nt({},lh,Gh),_v=e=>(e.displayName="Transition",e.props=wv,e),rl=_v((e,{slots:t})=>Tt(pb,Ev(e),t)),qn=(e,t=[])=>{se(e)?e.forEach(n=>n(...t)):e&&e(...t)},au=e=>e?se(e)?e.some(t=>t.length>1):e.length>1:!1;function Ev(e){const t={};for(const S in e)S in Gh||(t[S]=e[S]);if(e.css===!1)return t;const{name:n="v",type:r,duration:s,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:f=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:d=`${n}-leave-to`}=e,m=Tv(s),p=m&&m[0],v=m&&m[1],{onBeforeEnter:b,onEnter:g,onEnterCancelled:y,onLeave:w,onLeaveCancelled:_,onBeforeAppear:k=b,onAppear:$=g,onAppearCancelled:O=y}=t,x=(S,P,j,R)=>{S._enterCancelled=R,Wn(S,P?c:a),Wn(S,P?u:o),j&&j()},D=(S,P)=>{S._isLeaving=!1,Wn(S,f),Wn(S,d),Wn(S,h),P&&P()},q=S=>(P,j)=>{const R=S?$:g,C=()=>x(P,S,j);qn(R,[P,C]),lu(()=>{Wn(P,S?l:i),hn(P,S?c:a),au(R)||cu(P,r,p,C)})};return nt(t,{onBeforeEnter(S){qn(b,[S]),hn(S,i),hn(S,o)},onBeforeAppear(S){qn(k,[S]),hn(S,l),hn(S,u)},onEnter:q(!1),onAppear:q(!0),onLeave(S,P){S._isLeaving=!0;const j=()=>D(S,P);hn(S,f),S._enterCancelled?(hn(S,h),du(S)):(du(S),hn(S,h)),lu(()=>{S._isLeaving&&(Wn(S,f),hn(S,d),au(w)||cu(S,r,v,j))}),qn(w,[S,j])},onEnterCancelled(S){x(S,!1,void 0,!0),qn(y,[S])},onAppearCancelled(S){x(S,!0,void 0,!0),qn(O,[S])},onLeaveCancelled(S){D(S),qn(_,[S])}})}function Tv(e){if(e==null)return null;if(Te(e))return[sa(e.enter),sa(e.leave)];{const t=sa(e);return[t,t]}}function sa(e){return Md(e)}function hn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Ls]||(e[Ls]=new Set)).add(t)}function Wn(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Ls];n&&(n.delete(t),n.size||(e[Ls]=void 0))}function lu(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Sv=0;function cu(e,t,n,r){const s=e._endId=++Sv,i=()=>{s===e._endId&&r()};if(n!=null)return setTimeout(i,n);const{type:o,timeout:a,propCount:l}=Cv(e,t);if(!o)return r();const u=o+"end";let c=0;const f=()=>{e.removeEventListener(u,h),i()},h=d=>{d.target===e&&++c>=l&&f()};setTimeout(()=>{c<l&&f()},a+1),e.addEventListener(u,h)}function Cv(e,t){const n=window.getComputedStyle(e),r=m=>(n[m]||"").split(", "),s=r(`${On}Delay`),i=r(`${On}Duration`),o=uu(s,i),a=r(`${as}Delay`),l=r(`${as}Duration`),u=uu(a,l);let c=null,f=0,h=0;t===On?o>0&&(c=On,f=o,h=i.length):t===as?u>0&&(c=as,f=u,h=l.length):(f=Math.max(o,u),c=f>0?o>u?On:as:null,h=c?c===On?i.length:l.length:0);const d=c===On&&/\b(?:transform|all)(?:,|$)/.test(r(`${On}Property`).toString());return{type:c,timeout:f,propCount:h,hasTransform:d}}function uu(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>fu(n)+fu(e[r])))}function fu(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function du(e){return(e?e.ownerDocument:document).body.offsetHeight}function Av(e,t,n){const r=e[Ls];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Ji=Symbol("_vod"),Qh=Symbol("_vsh"),hu={name:"show",beforeMount(e,{value:t},{transition:n}){e[Ji]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):ls(e,t)}
4,mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),ls(e,!0),r.enter(e)):r.leave(e,()=>{ls(e,!1)}):ls(e,t))},beforeUnmount(e,{value:t}){ls(e,t)}};function ls(e,t){e.style.display=t?e[Ji]:"none",e[Qh]=!t}const kv=Symbol(""),Rv=/(?:^|;)\s*display\s*:/;function Pv(e,t,n){const r=e.style,s=Be(n);let i=!1;if(n&&!s){if(t)if(Be(t))for(const o of t.split(";")){const a=o.slice(0,o.indexOf(":")).trim();n[a]==null&&Pi(r,a,"")}else for(const o in t)n[o]==null&&Pi(r,o,"");for(const o in n)o==="display"&&(i=!0),Pi(r,o,n[o])}else if(s){if(t!==n){const o=r[kv];o&&(n+=";"+o),r.cssText=n,i=Rv.test(n)}}else t&&e.removeAttribute("style");Ji in e&&(e[Ji]=i?r.display:"",e[Qh]&&(r.display="none"))}const pu=/\s*!important$/;function Pi(e,t,n){if(se(n))n.forEach(r=>Pi(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=xv(e,t);pu.test(n)?e.setProperty(ur(r),n.replace(pu,""),"important"):e[r]=n}}const mu=["Webkit","Moz","ms"],ia={};function xv(e,t){const n=ia[t];if(n)return n;let r=yt(t);if(r!=="filter"&&r in e)return ia[t]=r;r=vo(r);for(let s=0;s<mu.length;s++){const i=mu[s]+r;if(i in e)return ia[t]=i}return t}const gu="http://www.w3.org/1999/xlink";function yu(e,t,n,r,s,i=Ry(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(gu,t.slice(6,t.length)):e.setAttributeNS(gu,t,n):n==null||i&&!jd(n)?e.removeAttribute(t):e.setAttribute(t,i?"":Pt(n)?String(n):n)}function bu(e,t,n,r,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Kh(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const a=i==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(a!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let o=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=jd(n):n==null&&a==="string"?(n="",o=!0):a==="number"&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(s||t)}function wr(e,t,n,r){e.addEventListener(t,n,r)}function Ov(e,t,n,r){e.removeEventListener(t,n,r)}const vu=Symbol("_vei");function Iv(e,t,n,r,s=null){const i=e[vu]||(e[vu]={}),o=i[t];if(r&&o)o.value=r;else{const[a,l]=$v(t);if(r){const u=i[t]=Lv(r,s);wr(e,a,u,l)}else o&&(Ov(e,a,o,l),i[t]=void 0)}}const wu=/(?:Once|Passive|Capture)$/;function $v(e){let t;if(wu.test(e)){t={};let r;for(;r=e.match(wu);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):ur(e.slice(2)),t]}let oa=0;const Mv=Promise.resolve(),jv=()=>oa||(Mv.then(()=>oa=0),oa=Date.now());function Lv(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;qt(Nv(r,n.value),t,5,[r])};return n.value=e,n.attached=jv(),n}function Nv(e,t){if(se(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const _u=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Dv=(e,t,n,r,s,i)=>{const o=s==="svg";t==="class"?Av(e,r,o):t==="style"?Pv(e,n,r):qs(t)?go(t)||Iv(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Fv(e,t,r,o))?(bu(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&yu(e,t,r,o,i,t!=="value")):e._isVueCE&&(Hv(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Be(r)))?bu(e,yt(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),yu(e,t,r,o))};function Fv(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&_u(t)&&ae(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return _u(t)&&Be(n)?!1:t in e}function Hv(e,t){const n=e._def.props;if(!n)return!1;const r=yt(t);return Array.isArray(n)?n.some(s=>yt(s)===r):Object.keys(n).some(s=>yt(s)===r)}const Eu=e=>{const t=e.props["onUpdate:modelValue"]||!1;return se(t)?n=>Cr(t,n):t};function Uv(e){e.target.composing=!0}function Tu(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const aa=Symbol("_assign");function Su(e,t,n){return t&&(e=e.trim()),n&&(e=Dl(e)),e}const FP={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e[aa]=Eu(s);const i=r||s.props&&s.props.type==="number";wr(e,t?"change":"input",o=>{o.target.composing||e[aa](Su(e.value,n,i))}),(n||i)&&wr(e,"change",()=>{e.value=Su(e.value,n,i)}),t||(wr(e,"compositionstart",Uv),wr(e,"compositionend",Tu),wr(e,"change",Tu))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:s,number:i}},o){if(e[aa]=Eu(o),e.composing)return;const a=(i||e.type==="number")&&!/^0\d/.test(e.value)?Dl(e.value):e.value,l=t??"";if(a===l)return;const u=e.getRootNode();(u instanceof Document||u instanceof ShadowRoot)&&u.activeElement===e&&e.type!=="range"&&(r&&t===n||s&&e.value.trim()===l)||(e.value=l)}},Jh=nt({patchProp:Dv},vv);let Ts,Cu=!1;function Yh(){return Ts||(Ts=Jb(Jh))}function Vv(){return Ts=Cu?Ts:Yb(Jh),Cu=!0,Ts}const HP=((...e)=>{Yh().render(...e)}),Bv=((...e)=>{const t=Yh().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Zh(r);if(!s)return;const i=t._component;!ae(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const o=n(s,!1,Xh(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},t}),qv=((...e)=>{const t=Vv().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Zh(r);if(s)return n(s,!0,Xh(s))},t});function Xh(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Zh(e){return Be(e)?document.querySelector(e):e}const Wv=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,zv=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,Kv=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function Gv(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){Qv(e);return}return t}function Qv(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function Jv(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const n=e.trim();if(n.length<=9)switch(n.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!Kv.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(Wv.test(e)||zv.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,Gv)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}const ep=/#/g,tp=/&/g,Yv=/\//g,Xv=/=/g,Zv=/\?/g,Po=/\+/g,ew=/%5e/gi,tw=/%60/gi,nw=/%7c/gi,rw=/%20/gi,sw=/%2f/gi,iw=/%252f/gi;function np(e){return encodeURI(""+e).replace(nw,"|")}function sl(e){return np(typeof e=="string"?e:JSON.stringify(e)).replace(Po,"%2B").replace(rw,"+").replace(ep,"%23").replace(tp,"%26").replace(tw,"`").replace(ew,"^").replace(Yv,"%2F")}function la(e){return sl(e).replace(Xv,"%3D")}function ow(e){return np(e).replace(ep,"%23").replace(Zv,"%3F").replace(iw,"%2F").replace(tp,"%26").replace(Po,"%2B")}function Ns(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function aw(e){return Ns(e.replace(sw,"%252F"))}function lw(e){return Ns(e.replace(Po," "))}function cw(e){return Ns(e.replace(Po," "))}function sc(e=""){const t=Object.create(null);e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const s=lw(r[1]);if(s==="__proto__"||s==="constructor")continue;const i=cw(r[2]||"");t[s]===void 0?t[s]=i:Array.isArray(t[s])?t[s].push(i):t[s]=[t[s],i]}return t}function uw(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${la(e)}=${sl(n)}`).join("&"):`${la(e)}=${sl(t)}`:la(e)}function fw(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>
4uw(t,e[t])).filter(Boolean).join("&")}const dw=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,rp=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,hw=/^([/\\]\s*){2,}[^/\\]/,pw=/^[\s\0]*(blob|data|javascript|vbscript):$/i,mw=/\/$|\/\?|\/#/,gw=/^\.?\//;function cn(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?dw.test(e):rp.test(e)||(t.acceptRelative?hw.test(e):!1)}function yw(e){return!!e&&pw.test(e)}function il(e="",t){return t?mw.test(e):e.endsWith("/")}function Ds(e="",t){if(!t)return(il(e)?e.slice(0,-1):e)||"/";if(!il(e,!0))return e||"/";let n=e,r="";const s=e.indexOf("#");s!==-1&&(n=e.slice(0,s),r=e.slice(s));const[i,...o]=n.split("?");return((i.endsWith("/")?i.slice(0,-1):i)||"/")+(o.length>0?`?${o.join("?")}`:"")+r}function sp(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(il(e,!0))return e||"/";let n=e,r="";const s=e.indexOf("#");if(s!==-1&&(n=e.slice(0,s),r=e.slice(s),!n))return r;const[i,...o]=n.split("?");return i+"/"+(o.length>0?`?${o.join("?")}`:"")+r}function bw(e,t){if(op(t)||cn(e))return e;const n=Ds(t);if(e.startsWith(n)){const r=e[n.length];if(!r||r==="/"||r==="?")return e}return xo(n,e)}function Au(e,t){if(op(t))return e;const n=Ds(t);if(!e.startsWith(n))return e;const r=e[n.length];if(r&&r!=="/"&&r!=="?")return e;const s=e.slice(n.length);return s[0]==="/"?s:"/"+s}function ip(e,t){const n=ic(e),r={...sc(n.search),...t};return n.search=fw(r),Ew(n)}function op(e){return!e||e==="/"}function vw(e){return e&&e!=="/"}function xo(e,...t){let n=e||"";for(const r of t.filter(s=>vw(s)))if(n){const s=r.replace(gw,"");n=sp(n)+s}else n=r;return n}function ap(...e){const t=/\/(?!\/)/,n=e.filter(Boolean),r=[];let s=0;for(const o of n)if(!(!o||o==="/")){for(const[a,l]of o.split(t).entries())if(!(!l||l===".")){if(l===".."){if(r.length===1&&cn(r[0]))continue;r.pop(),s--;continue}if(a===1&&r[r.length-1]?.endsWith(":/")){r[r.length-1]+="/"+l;continue}r.push(l),s++}}let i=r.join("/");return s>=0?n[0]?.startsWith("/")&&!i.startsWith("/")?i="/"+i:n[0]?.startsWith("./")&&!i.startsWith("./")&&(i="./"+i):i="../".repeat(-1*s)+i,n[n.length-1]?.endsWith("/")&&!i.endsWith("/")&&(i+="/"),i}function ww(e){return _w(e,"https://")}function _w(e,t){let n=e.match(rp);return n||(n=e.match(/^\/{2,}/)),n?t+e.slice(n[0].length):t+e}function lp(e,t){return Ns(Ds(e))===Ns(Ds(t))}const cp=Symbol.for("ufo:protocolRelative");function ic(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,f,h=""]=n;return{protocol:f.toLowerCase(),pathname:h,href:f+h,auth:"",host:"",search:"",hash:""}}if(!cn(e,{acceptRelative:!0}))return ku(e);const[,r="",s,i=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,o="",a=""]=i.match(/([^#/?]*)(.*)?/)||[];r==="file:"&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:l,search:u,hash:c}=ku(a);return{protocol:r.toLowerCase(),auth:s?s.slice(0,Math.max(0,s.length-1)):"",host:o,pathname:l,search:u,hash:c,[cp]:!r}}function ku(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function Ew(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",r=e.hash||"",s=e.auth?e.auth+"@":"",i=e.host||"";return(e.protocol||e[cp]?(e.protocol||"")+"//":"")+s+i+t+n+r}class Tw extends Error{constructor(t,n){super(t,n),this.name="FetchError",n?.cause&&!this.cause&&(this.cause=n.cause)}}function Sw(e){const t=e.error?.message||e.error?.toString()||"",n=e.request?.method||e.options?.method||"GET",r=e.request?.url||String(e.request)||"/",s=`[${n}] ${JSON.stringify(r)}`,i=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",o=`${s}: ${i}${t?` ${t}`:""}`,a=new Tw(o,e.error?{cause:e.error}:void 0);for(const l of["request","options","response"])Object.defineProperty(a,l,{get(){return e[l]}});for(const[l,u]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,l,{get(){return e.response&&e.response[u]}});return a}const Cw=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function Ru(e="GET"){return Cw.has(e.toUpperCase())}function Aw(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer||e instanceof FormData||e instanceof URLSearchParams?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const kw=new Set(["image/svg","application/xml","application/xhtml","application/html"]),Rw=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function Pw(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return Rw.test(t)?"json":t==="text/event-stream"?"stream":kw.has(t)||t.startsWith("text/")?"text":"blob"}function xw(e,t,n,r){const s=Ow(t?.headers??e?.headers,n?.headers,r);let i;return(n?.query||n?.params||t?.params||t?.query)&&(i={...n?.params,...n?.query,...t?.params,...t?.query}),{...n,...t,query:i,params:i,headers:s}}function Ow(e,t,n){if(!t)return new n(e);const r=new n(t);if(e)for(const[s,i]of Symbol.iterator in e||Array.isArray(e)?e:new n(e))r.set(s,i);return r}async function mi(e,t){if(t)if(Array.isArray(t))for(const n of t)await n(e);else await t(e)}const Iw=new Set([408,409,425,429,500,502,503,504]),$w=new Set([101,204,205,304]);function up(e={}){const{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=e;async function s(a){const l=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!l){let c;typeof a.options.retry=="number"?c=a.options.retry:c=Ru(a.options.method)?0:1;const f=a.response&&a.response.status||500;if(c>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(f):Iw.has(f))){const h=typeof a.options.retryDelay=="function"?a.options.retryDelay(a):a.options.retryDelay||0;return h>0&&await new Promise(d=>setTimeout(d,h)),i(a.request,{...a.options,retry:c-1})}}const u=Sw(a);throw Error.captureStackTrace&&Error.captureStackTrace(u,i),u}const i=async function(l,u={}){const c={request:l,options:xw(l,u,e.defaults,n),response:void 0,error:void 0};if(c.options.method&&(c.options.method=c.options.method.toUpperCase()),c.options.onRequest&&(await mi(c,
4c.options.onRequest),c.options.headers instanceof n||(c.options.headers=new n(c.options.headers||{}))),typeof c.request=="string"&&(c.options.baseURL&&(c.request=bw(c.request,c.options.baseURL)),c.options.query&&(c.request=ip(c.request,c.options.query),delete c.options.query),"query"in c.options&&delete c.options.query,"params"in c.options&&delete c.options.params),c.options.body&&Ru(c.options.method))if(Aw(c.options.body)){const d=c.options.headers.get("content-type");typeof c.options.body!="string"&&(c.options.body=d==="application/x-www-form-urlencoded"?new URLSearchParams(c.options.body).toString():JSON.stringify(c.options.body)),d||c.options.headers.set("content-type","application/json"),c.options.headers.has("accept")||c.options.headers.set("accept","application/json")}else("pipeTo"in c.options.body&&typeof c.options.body.pipeTo=="function"||typeof c.options.body.pipe=="function")&&("duplex"in c.options||(c.options.duplex="half"));let f;if(!c.options.signal&&c.options.timeout){const d=new r;f=setTimeout(()=>{const m=new Error("[TimeoutError]: The operation was aborted due to timeout");m.name="TimeoutError",m.code=23,d.abort(m)},c.options.timeout),c.options.signal=d.signal}try{c.response=await t(c.request,c.options)}catch(d){return c.error=d,c.options.onRequestError&&await mi(c,c.options.onRequestError),await s(c)}finally{f&&clearTimeout(f)}if((c.response.body||c.response._bodyInit)&&!$w.has(c.response.status)&&c.options.method!=="HEAD"){const d=(c.options.parseResponse?"json":c.options.responseType)||Pw(c.response.headers.get("content-type")||"");switch(d){case"json":{const m=await c.response.text(),p=c.options.parseResponse||Jv;c.response._data=p(m);break}case"stream":{c.response._data=c.response.body||c.response._bodyInit;break}default:c.response._data=await c.response[d]()}}return c.options.onResponse&&await mi(c,c.options.onResponse),!c.options.ignoreResponseError&&c.response.status>=400&&c.response.status<600?(c.options.onResponseError&&await mi(c,c.options.onResponseError),await s(c)):c.response},o=async function(l,u){return(await i(l,u))._data};return o.raw=i,o.native=(...a)=>t(...a),o.create=(a={},l={})=>up({...e,...l,defaults:{...e.defaults,...l.defaults,...a}}),o}const Yi=(function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")})(),Mw=Yi.fetch?(...e)=>Yi.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),jw=Yi.Headers,Lw=Yi.AbortController,Nw=up({fetch:Mw,Headers:jw,AbortController:Lw}),Dw=Nw,Fw=()=>window?.__NUXT__?.config||window?.useNuxtApp?.().payload?.config,oc=()=>Fw().app,Hw=()=>oc().baseURL,Uw=()=>oc().buildAssetsDir,ac=(...e)=>ap(fp(),Uw(),...e),fp=(...e)=>{const t=oc(),n=t.cdnURL||t.baseURL;return e.length?ap(n,...e):n};globalThis.__buildAssetsURL=ac,globalThis.__publicAssetsURL=fp;globalThis.$fetch||(globalThis.$fetch=Dw.create({baseURL:Hw()}));"global"in globalThis||(globalThis.global=globalThis);function ol(e,t={},n){for(const r in e){const s=e[r],i=n?`${n}:${r}`:r;typeof s=="object"&&s!==null?ol(s,t,i):typeof s=="function"&&(t[i]=s)}return t}const dp=(()=>{if(console.createTask)return console.createTask;const e={run:t=>t()};return()=>e})();function hp(e,t,n,r){for(let s=n;s<e.length;s+=1)try{const i=r?r.run(()=>e[s](...t)):e[s](...t);if(i instanceof Promise)return i.then(()=>hp(e,t,s+1,r))}catch(i){return Promise.reject(i)}}function Vw(e,t,n){if(e.length>0)return hp(e,t,0,dp(n))}function Bw(e,t,n){if(e.length>0){const r=dp(n);return Promise.all(e.map(s=>r.run(()=>s(...t))))}}function ca(e,t){for(const n of[...e])n(t)}var qw=class{_hooks;_before;_after;_deprecatedHooks;_deprecatedMessages;constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,t,n={}){if(!e||typeof t!="function")return()=>{};const r=e;let s;for(;this._deprecatedHooks[e];)s=this._deprecatedHooks[e],e=s.to;if(s&&!n.allowDeprecated){let i=s.message;i||(i=`${r} hook has been deprecated`+(s.to?`, please use ${s.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(i)||(console.warn(i),this._deprecatedMessages.add(i))}if(!t.name)try{Object.defineProperty(t,"name",{get:()=>"_"+e.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&(this.removeHook(e,t),t=void 0)}}hookOnce(e,t){let n,r=(...s)=>(typeof n=="function"&&n(),n=void 0,r=void 0,t(...s));return n=this.hook(e,r),n}removeHook(e,t){const n=this._hooks[e];if(n){const r=n.indexOf(t);r!==-1&&n.splice(r,1),n.length===0&&(this._hooks[e]=void 0)}}clearHook(e){this._hooks[e]=void 0}deprecateHook(e,t){this._deprecatedHooks[e]=typeof t=="string"?{to:t}:t;const n=this._hooks[e]||[];this._hooks[e]=void 0;for(const r of n)this.hook(e,r)}deprecateHooks(e){for(const t in e)this.deprecateHook(t,e[t])}addHooks(e){const t=ol(e),n=Object.keys(t).map(r=>this.hook(r,t[r]));return()=>{for(const r of n)r();n.length=0}}removeHooks(e){const t=ol(e);for(const n in t)this.removeHook(n,t[n])}removeAllHooks(){this._hooks={}}callHook(e,...t){return this.callHookWith(Vw,e,t)}callHookParallel(e,...t){return this.callHookWith(Bw,e,t)}callHookWith(e,t,n){const r=this._before||this._after?{name:t,args:n,context:{}}:void 0;this._before&&ca(this._before,r);const s=e(this._hooks[t]?[...this._hooks[t]]:[],n,t);return s instanceof Promise?s.finally(()=>{this._after&&r&&ca(this._after,r)}):(this._after&&r&&ca(this._after,r),s)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){const t=this._before.indexOf(e);t!==-1&&this._before.splice(t,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){const t=this._after.indexOf(e);t!==-1&&this._after.splice(t,1)}}}};function pp(){return new qw}function Ww(e={}){let t,n=!1;const r=o=>{if(t&&t!==o)throw new Error("Context conflict")};let s;if(e.asyncContext){const o=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;o?s=new o:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const i=()=>
4{if(s){const o=s.getStore();if(o!==void 0)return o}return t};return{use:()=>{const o=i();if(o===void 0)throw new Error("Context is not available");return o},tryUse:()=>i(),set:(o,a)=>{a||r(o),t=o,n=!0},unset:()=>{t=void 0,n=!1},call:(o,a)=>{r(o),t=o;try{return s?s.run(o,a):a()}finally{n||(t=void 0)}},async callAsync(o,a){t=o;const l=()=>{t=o},u=()=>t===o?l:void 0;al.add(u);try{const c=s?s.run(o,a):a();return n||(t=void 0),await c}finally{al.delete(u)}}}}function zw(e={}){const t={};return{get(n,r={}){return t[n]||(t[n]=Ww({...e,...r})),t[n]}}}const Xi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},Pu="__unctx__",Kw=Xi[Pu]||(Xi[Pu]=zw()),Gw=(e,t={})=>Kw.get(e,t),xu="__unctx_async_handlers__",al=Xi[xu]||(Xi[xu]=new Set);function Ir(e){const t=[];for(const s of al){const i=s();i&&t.push(i)}const n=()=>{for(const s of t)s()};let r=e();return r&&typeof r=="object"&&"catch"in r&&(r=r.catch(s=>{throw n(),s})),[r,n]}const Ou=!1,Qw=!1,Iu={id:"__nuxt-loader"},Jw={componentName:"NuxtLink",prefetch:!0,prefetchOn:{visibility:!0}},Yw={deep:!1},Xw={},Zw="#__nuxt",mp="nuxt-app",$u=36e5,e_="vite:preloadError";function gp(e=mp){return Gw(e,{asyncContext:!1})}const t_="__nuxt_plugin";function n_(e){let t=0;const n={_id:e.id||mp||"nuxt-app",_scope:Ul(),provide:void 0,versions:{get nuxt(){return"4.4.2"},get vue(){return n.vueApp.version}},payload:nn({...e.ssrContext?.payload||{},data:nn({}),state:xt({}),once:new Set,_errors:nn({})}),static:{data:{}},runWithContext(s){return n._scope.active&&!Yr()?n._scope.run(()=>Mu(n,s)):Mu(n,s)},isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};t++;let s=!1;return()=>{if(!s&&(s=!0,t--,t===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:nn({}),_state:nn({}),_payloadRevivers:{},...e};{const s=window.__NUXT__;if(s)for(const i in s)switch(i){case"data":case"state":case"_errors":Object.assign(n.payload[i],s[i]);break;default:n.payload[i]=s[i]}}n.hooks=pp(),n.hook=n.hooks.hook;{const s=n.hooks.callHook;n.hooks.callHook=(i,...o)=>Promise.resolve().then(()=>s(i,...o))}n.callHook=n.hooks.callHook,n.provide=(s,i)=>{const o="$"+s;gi(n,o,i),gi(n.vueApp.config.globalProperties,o,i)},gi(n.vueApp,"$nuxt",n),gi(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener(e_,i=>{n.callHook("app:chunkError",{error:i.payload}),i.payload.message.includes("Unable to preload CSS")&&i.preventDefault()}),window.useNuxtApp||=Le;const s=n.hook("app:error",(...i)=>{console.error("[nuxt] error caught during app initialization",...i)});n.hook("app:mounted",s)}const r=n.payload.config;return n.provide("config",r),n}function r_(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function s_(e,t){if(typeof t=="function"){const{provide:n}=await e.runWithContext(()=>t(e))||{};if(n&&typeof n=="object")for(const r in n)e.provide(r,n[r])}}async function i_(e,t){const n=new Set,r=[],s=[];let i,o=0;async function a(l){const u=l.dependsOn?.filter(c=>t.some(f=>f._name===c)&&!n.has(c))??[];if(u.length>0)r.push([new Set(u),l]);else{const c=s_(e,l).then(async()=>{l._name&&(n.add(l._name),await Promise.all(r.map(async([f,h])=>{f.has(l._name)&&(f.delete(l._name),f.size===0&&(o++,await a(h)))})))}).catch(f=>{if(!l.parallel&&!e.payload.error)throw f;i||=f});l.parallel?s.push(c):await c}}for(const l of t)r_(e,l);for(const l of t)await a(l);if(await Promise.all(s),o)for(let l=0;l<o;l++)await Promise.all(s);if(i)throw e.payload.error||i}function wt(e){if(typeof e=="function")return e;const t=e._name||e.name;return delete e.name,Object.assign(e.setup||(()=>{}),e,{[t_]:!0,_name:t})}const o_=wt;function Mu(e,t,n){const r=()=>t();return gp(e._id).set(e),e.vueApp.runWithContext(r)}function a_(e){let t;return zs()&&(t=Sn()?.appContext.app.$nuxt),t||=gp(e).tryUse(),t||null}function Le(e){const t=a_(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function dr(e){return Le().$config}function gi(e,t,n){Object.defineProperty(e,t,{get:()=>n})}function ua(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function ll(e,t,n=".",r){if(!ua(t))return ll(e,{},n,r);const s={...t};for(const i of Object.keys(e)){if(i==="__proto__"||i==="constructor")continue;const o=e[i];o!=null&&(r&&r(s,i,o,n)||(Array.isArray(o)&&Array.isArray(s[i])?s[i]=[...o,...s[i]]:ua(o)&&ua(s[i])?s[i]=ll(o,s[i],(n?`${n}.`:"")+i.toString(),r):s[i]=o))}return s}function l_(e){return(...t)=>t.reduce((n,r)=>ll(n,r,"",e),{})}const Oo=l_();function c_(e,t){try{return t in e}catch{return!1}}
4class ju extends Error{static __h3_error__=!0;statusCode=500;fatal=!1;unhandled=!1;statusMessage;data;cause;constructor(t,n={}){super(t,n),n.cause&&!this.cause&&(this.cause=n.cause)}toJSON(){const t={message:this.message,statusCode:cl(this.statusCode,500)};return this.statusMessage&&(t.statusMessage=yp(this.statusMessage)),this.data!==void 0&&(t.data=this.data),t}}function u_(e){if(typeof e=="string")return new ju(e);if(f_(e))return e;const t=new ju(e.message??e.statusMessage??"",{cause:e.cause||e});if(c_(e,"stack"))try{Object.defineProperty(t,"stack",{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=cl(e.statusCode,t.statusCode):e.status&&(t.statusCode=cl(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage;yp(t.statusMessage)!==n&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function f_(e){return e?.constructor?.__h3_error__===!0}const d_=/[^\u0009\u0020-\u007E]/g;function yp(e=""){return e.replace(d_,"")}function cl(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const h_=Symbol("layout-meta"),Io=Symbol("route");function p_(e){return Array.isArray(e)?e:[e]}import.meta.url.replace(/\/app\/.*$/,"/");const bt=()=>Le()?.$router,Qs=()=>zs()?dt(Io,Le()._route):Le()._route;function UP(e){return e}const m_=()=>{try{if(Le()._processingMiddleware)return!0}catch{return!1}return!1},g_=(e,t)=>{e||="/";const n=typeof e=="string"?e:"path"in e?ul(e):bt().resolve(e).href;if(t?.open){const{target:u="_blank",windowFeatures:c={}}=t.open,f=[];for(const[h,d]of Object.entries(c))d!==void 0&&f.push(`${h.toLowerCase()}=${d}`);return open(n,u,f.join(", ")),Promise.resolve()}const r=cn(n,{acceptRelative:!0}),s=t?.external||r;if(s){if(!t?.external)throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const{protocol:u}=new URL(n,window.location.href);if(u&&yw(u))throw new Error(`Cannot navigate to a URL with '${u}' protocol.`)}const i=m_();if(!s&&i){if(t?.replace){if(typeof e=="string"){const{pathname:u,search:c,hash:f}=ic(e);return{path:u,...c&&{query:sc(c)},...f&&{hash:f},replace:!0}}return{...e,replace:!0}}return e}const o=bt(),a=Le();if(s)return a._scope.stop(),t?.replace?location.replace(n):location.href=n,i?a.isHydrating?new Promise(()=>{}):!1:Promise.resolve();const l=typeof e=="string"?bp(e):e;return t?.replace?o.replace(l):o.push(l)};function ul(e){return ip(e.path||"",e.query||{})+(e.hash||"")}function bp(e){const t=ic(e);return ow(aw(t.pathname))+t.search+t.hash}const vp="__nuxt_error",$o=()=>Ql(Le().payload,"error"),Jn=e=>{const t=$e(e);try{const n=$o();Le().hooks.callHook("app:error",t),n.value||=t}catch{throw t}return t},wp=async(e={})=>{const t=Le(),n=$o();t.callHook("app:error:cleared",e),e.redirect&&await bt().replace(e.redirect),n.value=void 0},_p=e=>!!e&&typeof e=="object"&&vp in e,$e=e=>{typeof e!="string"&&e.statusText&&(e.message??=e.statusText);const t=u_(e);return Object.defineProperty(t,vp,{value:!0,configurable:!1,writable:!1}),Object.defineProperty(t,"status",{get:()=>t.statusCode,configurable:!0}),Object.defineProperty(t,"statusText",{get:()=>t.statusMessage,configurable:!0}),t};let Ep;const Hr=e=>Ep=e,Tp=Symbol();function fl(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Ss;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Ss||(Ss={}));function y_(){const e=Ul(!0),t=e.run(()=>it({}));let n=[],r=[];const s=Kl({install(i){Hr(s),s._a=i,i.provide(Tp,s),i.config.globalProperties.$pinia=s,r.forEach(o=>n.push(o)),r=[]},use(i){return this._a?n.push(i):r.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}const Sp=()=>{};function Lu(e,t,n,r=Sp){e.add(t);const s=()=>{e.delete(t)&&r()};return!n&&Yr()&&Ps(s),s}function yr(e,...t){e.forEach(n=>
4{n(...t)})}const b_=e=>e(),Nu=Symbol(),fa=Symbol();function dl(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],s=e[n];fl(s)&&fl(r)&&e.hasOwnProperty(n)&&!De(r)&&!an(r)?e[n]=dl(s,r):e[n]=r}return e}const v_=Symbol();function w_(e){return!fl(e)||!Object.prototype.hasOwnProperty.call(e,v_)}const{assign:Mn}=Object;function __(e){return!!(De(e)&&e.effect)}function E_(e,t,n,r){const{state:s,actions:i,getters:o}=t,a=n.state.value[e];let l;function u(){a||(n.state.value[e]=s?s():{});const c=Gl(n.state.value[e]);return Mn(c,i,Object.keys(o||{}).reduce((f,h)=>(f[h]=Kl(ke(()=>{Hr(n);const d=n._s.get(e);return o[h].call(d,d)})),f),{}))}return l=Cp(e,u,t,n,r,!0),l}function Cp(e,t,n={},r,s,i){let o;const a=Mn({actions:{}},n),l={deep:!0};let u,c,f=new Set,h=new Set,d;const m=r.state.value[e];!i&&!m&&(r.state.value[e]={});let p;function v(O){let x;u=c=!1,typeof O=="function"?(O(r.state.value[e]),x={type:Ss.patchFunction,storeId:e,events:d}):(dl(r.state.value[e],O),x={type:Ss.patchObject,payload:O,storeId:e,events:d});const D=p=Symbol();Un().then(()=>{p===D&&(u=!0)}),c=!0,yr(f,x,r.state.value[e])}const b=i?function(){const{state:x}=n,D=x?x():{};this.$patch(q=>{Mn(q,D)})}:Sp;function g(){o.stop(),f.clear(),h.clear(),r._s.delete(e)}const y=(O,x="")=>{if(Nu in O)return O[fa]=x,O;const D=function(){Hr(r);const q=Array.from(arguments),S=new Set,P=new Set;function j(I){S.add(I)}function R(I){P.add(I)}yr(h,{args:q,name:D[fa],store:_,after:j,onError:R});let C;try{C=O.apply(this&&this.$id===e?this:_,q)}catch(I){throw yr(P,I),I}return C instanceof Promise?C.then(I=>(yr(S,I),I)).catch(I=>(yr(P,I),Promise.reject(I))):(yr(S,C),C)};return D[Nu]=!0,D[fa]=x,D},w={_p:r,$id:e,$onAction:Lu.bind(null,h),$patch:v,$reset:b,$subscribe(O,x={}){const D=Lu(f,O,x.detached,()=>q()),q=o.run(()=>Rt(()=>r.state.value[e],S=>{(x.flush==="sync"?c:u)&&O({storeId:e,type:Ss.direct,events:d},S)},Mn({},l,x)));return D},$dispose:g},_=xt(w);r._s.set(e,_);const $=(r._a&&r._a.runWithContext||b_)(()=>r._e.run(()=>(o=Ul()).run(()=>t({action:y}))));for(const O in $){const x=$[O];if(De(x)&&!__(x)||an(x))i||(m&&w_(x)&&(De(x)?x.value=m[O]:dl(x,m[O])),r.state.value[e][O]=x);else if(typeof x=="function"){const D=y(x,O);$[O]=D,a.actions[O]=x}}return Mn(_,$),Mn(ve(_),$),Object.defineProperty(_,"$state",{get:()=>r.state.value[e],set:O=>{v(x=>{Mn(x,O)})}}),r._p.forEach(O=>{Mn(_,o.run(()=>O({store:_,app:r._a,pinia:r,options:a})))}),m&&i&&n.hydrate&&n.hydrate(_.$state,m),u=!0,c=!0,_}function T_(e,t,n){let r;const s=typeof t=="function";r=s?n:t;function i(o,a){const l=zs();return o=o||(l?dt(Tp,null):null),o&&Hr(o),o=Ep,o._s.has(e)||(s?Cp(e,t,r,o):E_(e,r,o)),o._s.get(e)}return i.$id=e,i}function S_(e){return Uint8Array.fromBase64(e).buffer}function C_(e){return Uint8Array.from(Buffer.from(e,"base64")).buffer}function A_(e){const t=atob(e),n=t.length,r=new Uint8Array(n);for(let s=0;s<n;s++)r[s]=t.charCodeAt(s);return r.buffer}const k_=typeof Uint8Array.fromBase64=="function",R_=typeof process=="object"&&process.versions?.node!==void 0,P_=k_?S_:R_?C_:A_,x_=-1,O_=-2,I_=-3,$_=-4,M_=-5,j_=-6,L_=-7;function N_(e,t){return D_(JSON.parse(e),t)}function D_(e,t){if(typeof e=="number")return i(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);let s=null;function i(o,a=!1){if(o===x_)return;if(o===I_)return NaN;if(o===$_)return 1/0;if(o===M_)return-1/0;if(o===j_)return-0;if(a||typeof o!="number")throw new Error("Invalid input");if(o in r)return r[o];const l=n[o];if(!l||typeof l!="object")r[o]=l;else if(Array.isArray(l))if(typeof l[0]=="string"){const u=l[0],c=t&&Object.hasOwn(t,u)?t[u]:void 0;if(c){let f=l[1];if(typeof f!="number"&&(f=n.push(l[1])-1),s??=new Set,s.has(f))throw new Error("Invalid circular reference");return s.add(f),r[o]=c(i(f)),s.delete(f),r[o]}switch(u){case"Date":r[o]=new Date(l[1]);break;case"Set":const f=new Set;r[o]=f;for(let m=1;m<l.length;m+=1)f.add(i(l[m]));break;case"Map":const h=new Map;r[o]=h;for(let m=1;m<l.length;m+=2)h.set(i(l[m]),i(l[m+1]));break;case"RegExp":r[o]=new RegExp(l[1],l[2]);break;case"Object":{const m=l[1];if(typeof n[m]=="object"&&n[m][0]!=="BigInt")throw new Error("Invalid input");r[o]=Object(i(m));break}case"BigInt":r[o]=BigInt(l[1]);break;case"null":const d=Object.create(null);r[o]=d;for(let m=1;m<l.length;m+=2){if(l[m]==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");d[l[m]]=i(l[m+1])}break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Float16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":case"DataView":{if(n[l[1]][0]!=="ArrayBuffer")throw new Error("Invalid data");const m=globalThis[u],p=i(l[1]);r[o]=l[2]!==void 0?new m(p,l[2],l[3]):new m(p);break}case"ArrayBuffer":{const m=l[1];if(typeof m!="string")throw new Error("Invalid ArrayBuffer encoding");const p=P_(m);r[o]=p;break}case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":{const m=u.slice(9);r[o]=Temporal[m].from(l[1]);break}case"URL":{const m=new URL(l[1]);r[o]=m;break}case"URLSearchParams":{const m=new URLSearchParams(l[1]);r[o]=m;break}default:throw new Error(`Unknown type ${u}`)}}else if(l[0]===L_){const u=l[1];if(!Number.isInteger(u)||u<0)throw new Error("Invalid input");const c=new Array(u);r[o]=c;for(let f=2;f<l.length;f+=2){const h=l[f];if(!Number.isInteger(h)||h<0||h>=u)throw new Error("Invalid input");c[h]=i(l[f+1])}}else{const u=new Array(l.length);r[o]=u;for(let c=0;c<l.length;c+=1){const f=l[c];f!==O_&&(u[c]=i(f))}}else{const u={};r[o]=u;
4for(const c of Object.keys(l)){if(c==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");const f=l[c];u[c]=i(f)}}return r[o]}return i(0)}const F_=new Set(["link","style","script","noscript"]),H_=new Set(["title","titleTemplate","script","style","noscript"]),hl=new Set(["base","meta","link","style","script","noscript"]),U_=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),V_=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),B_=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),q_=new Set(["templateParams","htmlAttrs","bodyAttrs"]),W_=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]),z_=["name","property","http-equiv"],K_=new Set(["viewport","description","keywords","robots"]);function Ap(e){const t=e.split(":");return t.length?W_.has(t[1]):!1}function pl(e){const{props:t,tag:n}=e;if(V_.has(n))return n;if(n==="link"&&t.rel==="canonical")return"canonical";if(n==="link"&&t.rel==="alternate"){const r=t.hreflang||t.type;if(r)return`alternate:${r}`}if(t.charset)return"charset";if(e.tag==="meta"){for(const r of z_)if(t[r]!==void 0){const s=t[r],i=s&&typeof s=="string"&&s.includes(":"),o=s&&K_.has(s),l=!(i||o)&&e.key?`:key:${e.key}`:"";return`${n}:${s}${l}`}}if(e.key)return`${n}:key:${e.key}`;if(t.id)return`${n}:id:${t.id}`;if(n==="link"&&t.rel==="alternate")return`alternate:${t.href||""}`;if(H_.has(n)){const r=e.textContent||e.innerHTML;if(r)return`${n}:content:${r}`}}function kp(e){const t=e._h||e._d;if(t)return t;const n=e.textContent||e.innerHTML;return n||`${e.tag}:${Object.entries(e.props).map(([r,s])=>`${r}:${String(s)}`).join(",")}`}function Zi(e,t,n){typeof e==="function"&&(!n||n!=="titleTemplate"&&!(n[0]==="o"&&n[1]==="n"))&&(e=e());const s=t?t(n,e):e;if(Array.isArray(s))return s.map(i=>Zi(i,t));if(s?.constructor===Object){const i={};for(const o of Object.keys(s))i[o]=Zi(s[o],t,o);return i}return s}function G_(e,t){const n=e==="style"?new Map:new Set;function r(s){if(s==null||s===void 0)return;const i=String(s).trim();if(i)if(e==="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 t=="string"?e==="style"?t.split(";").forEach(r):r(t):Array.isArray(t)?t.forEach(s=>r(s)):t&&typeof t=="object"&&Object.entries(t).forEach(([s,i])=>{i&&i!=="false"&&(e==="style"?n.set(String(s).trim(),String(i)):r(s))}),n}function Rp(e,t){if(e.props=e.props||{},!t)return e;if(e.tag==="templateParams")return e.props=t,e;const n=hl.has(e.tag)||e.tag==="htmlAttrs"||e.tag==="bodyAttrs";return Object.entries(t).forEach(([r,s])=>{if(r==="__proto__"||r==="constructor"||r==="prototype")return;if(s===null){e.props[r]=null;return}if(r==="class"||r==="style"){e.props[r]=G_(r,s);return}if(B_.has(r)){if((r==="textContent"||r==="innerHTML")&&typeof s=="object"){let u=t.type;if(t.type||(u="application/json"),!u?.endsWith("json")&&u!=="speculationrules")return;t.type=u,e.props.type=u,e[r]=JSON.stringify(s)}else e[r]=s;return}const i=r.startsWith("data-"),o=n&&!i?r.toLowerCase():r,a=String(s),l=e.tag==="meta"&&o==="content";a==="true"||a===""?e.props[o]=i||l?a:!0:!s&&i&&a==="false"?e.props[o]="false":s!==void 0&&(e.props[o]=s)}),e}function Q_(e,t){const n=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},r=Rp({tag:e,props:{}},n);return r.key&&F_.has(r.tag)&&(r.props["data-hid"]=r._h=r.key),r.tag==="script"&&typeof r.innerHTML=="object"&&(r.innerHTML=JSON.stringify(r.innerHTML),r.props.type=r.props.type||"application/json"),Array.isArray(r.props.content)?r.props.content.map(s=>({...r,props:{...r.props,content:s}})):r}function J_(e,t){if(!e)return[];typeof e=="function"&&(e=e());const n=(s,i)=>{for(let o=0;o<t.length;o++)i=t[o](s,i);return i};e=n(void 0,e);const r=[];return e=Zi(e,n),Object.entries(e||{}).forEach(([s,i])=>{if(i!==void 0)for(const o of Array.isArray(i)?i:[i])r.push(Q_(s,o))}),r.flat()}const Du=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,Fu={base:-10,title:10},Y_={critical:-8,high:-1,low:2},Hu={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}},X_=/@import/,cs=e=>e===""||e===!0;function Z_(e,t){if(typeof t.tagPriority=="number")return t.tagPriority;let n=100;const r=Y_[t.tagPriority]||0,s=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:Hu;if(t.tag in Fu)n=Fu[t.tag];else if(t.tag==="meta"){const i=t.props["http-equiv"]==="content-security-policy"?"content-security-policy":t.props.charset?"charset":t.props.name==="viewport"?"viewport":null;i&&(n=Hu.meta[i])}else if(t.tag==="link"&&t.props.rel)n=s.link[t.props.rel];else if(t.tag==="script"){const i=String(t.props.type);cs(t.props.async)?n=s.script.async:t.props.src&&!cs(t.props.defer)&&!cs(t.props.async)&&i!=="module"&&!i.endsWith("json")||t.innerHTML&&!i.endsWith("json")?n=s.script.sync:(cs(t.props.defer)&&t.props.src&&!cs(t.props.async)||i==="module")&&(n=s.script.defer)}else t.tag==="style"&&(n=t.innerHTML&&X_.test(t.innerHTML)?s.style.imported:s.style.sync);return(n||100)+r}function Uu(e,t){const n=typeof t=="function"?t(e):t,r=n.key||String(e.plugins.size+1);e.plugins.get(r)||(e.plugins.set(r,n),e.hooks.addHooks(n.hooks||{}))}function e0(e={}){const t=pp();t.addHooks(e.hooks||{});const n=!e.document,r=new Map,s=new Map,i=new Set,o={_entryCount:1,plugins:s,dirty:!1,resolvedOptions:e,hooks:t,ssr:n,entries:r,headEntries(){return[...r.values()]},use:a=>Uu(o,a),push(a,l){const u={...l||{}};delete u.head;const c=u._index??o._entryCount++,f={_i:c,input:a,options:u},h={_poll(d=!1){o.dirty=!0,!d&&i.add(c),t.callHook("entries:updated",o)},dispose(){r.delete(c)&&o.invalidate()},patch(d){(!u.mode||u.mode==="server"&&n||u.mode==="client"&&!n)&&(f.input=d,r.set(c,f),h._poll())}};return h.patch(a),h},async resolveTags(){const a={tagMap:new Map,tags:[],entries:[...o.entries.values()]};for(await t.callHook("entries:resolve",a);i.size;){const h=i.values().next().value;i.delete(h);const d=r.get(h);if(d){const m={tags:J_(d.input,e.propResolvers||[]).map(p=>Object.assign(p,d.options)),entry:d};await t.callHook("entries:normalize",m),d._tags=m.tags.map((p,v)=>(p._w=Z_(o,p),p._p=(d._i<<10)+v,p._d=pl(p),p._d||(p._h=kp(p)),p))}}let l=!1;a.entries.flatMap(h=>(h._tags||[]).map(d=>({...d,props:{...d.props}}))).sort(Du).reduce((h,d)=>{const m=d._d||d._h;if(!h.has(m))return h.set(m,d);const p=h.get(m);
4if((d?.tagDuplicateStrategy||(q_.has(d.tag)?"merge":null)||(d.key&&d.key===p.key?"merge":null))==="merge"){const b={...p.props};Object.entries(d.props).forEach(([g,y])=>b[g]=g==="style"?new Map([...p.props.style||new Map,...y]):g==="class"?new Set([...p.props.class||new Set,...y]):y),h.set(m,{...d,props:b})}else d._p>>10===p._p>>10&&d.tag==="meta"&&Ap(m)?(h.set(m,Object.assign([...Array.isArray(p)?p:[p],d],d)),l=!0):(d._w===p._w?d._p>p._p:d?._w<p?._w)&&h.set(m,d);return h},a.tagMap);const u=a.tagMap.get("title"),c=a.tagMap.get("titleTemplate");if(o._title=u?.textContent,c){const h=c?.textContent;if(o._titleTemplate=h,h){let d=typeof h=="function"?h(u?.textContent):h;typeof d=="string"&&!o.plugins.has("template-params")&&(d=d.replace("%s",u?.textContent||"")),u?d===null?a.tagMap.delete("title"):a.tagMap.set("title",{...u,textContent:d}):(c.tag="title",c.textContent=d)}}a.tags=Array.from(a.tagMap.values()),l&&(a.tags=a.tags.flat().sort(Du)),await t.callHook("tags:beforeResolve",a),await t.callHook("tags:resolve",a),await t.callHook("tags:afterResolve",a);const f=[];for(const h of a.tags){const{innerHTML:d,tag:m,props:p}=h;if(U_.has(m)&&!(Object.keys(p).length===0&&!h.innerHTML&&!h.textContent)&&!(m==="meta"&&!p.content&&!p["http-equiv"]&&!p.charset)){if(m==="script"&&d){if(String(p.type).endsWith("json")){const v=typeof d=="string"?d:JSON.stringify(d);h.innerHTML=v.replace(/</g,"\\u003C")}else typeof d=="string"&&(h.innerHTML=d.replace(new RegExp(`</${m}`,"g"),`<\\/${m}`));h._d=pl(h)}f.push(h)}}return f},invalidate(){for(const a of r.values())i.add(a._i);o.dirty=!0,t.callHook("entries:updated",o)}};return(e?.plugins||[]).forEach(a=>Uu(o,a)),o.hooks.callHook("init",o),e.init?.forEach(a=>a&&o.push(a)),o}const t0=(e,t)=>De(t)?Ft(t):t,lc="usehead";function n0(e){return{install(n){n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(lc,e)}}.install}function r0(){if(zs()){const e=dt(lc);if(e)return e}throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.")}function s0(e,t={}){const n=t.head||r0();return n.ssr?n.push(e||{},t):i0(n,e,t)}function i0(e,t,n={}){const r=it(!1);let s;return cb(()=>{const o=r.value?{}:Zi(t,t0);s?s.patch(o):s=e.push(o,n)}),Sn()&&(es(()=>{s.dispose()}),ph(()=>{r.value=!0}),hh(()=>{r.value=!1})),s}function o0(e){const t=e||Le();return t.ssrContext?.head||t.runWithContext(()=>{if(zs()){const n=dt(lc);if(!n)throw new Error("[nuxt] [unhead] Missing Unhead instance.");return n}})}function a0(e,t={}){const n=t.head||o0(t.nuxt);return s0(e,{head:n,...t})}const l0=(()=>{const e={payload:!0},t={};return(n,r)=>{let s=[];r.charCodeAt(r.length-1)===47&&(r=r.slice(0,-1)||"/"),r==="/"?s.unshift({data:e}):r==="/contact"?s.unshift({data:e}):r==="/search"?s.unshift({data:e}):r==="/__sitemap__/style.xsl"?s.unshift({data:t}):r==="/sitemap.xml"&&s.unshift({data:t});let i=r.split("/"),o=i.length;return o>1&&(i[1]==="discourse"?s.unshift({data:e,params:{_:i.slice(2).join("/")}}):i[1]==="projects"?s.unshift({data:e,params:{_:i.slice(2).join("/")}}):i[1]==="studio"?s.unshift({data:e,params:{_:i.slice(2).join("/")}}):i[1]==="values"&&s.unshift({data:e,params:{_:i.slice(2).join("/")}})),(o===2||o===1)&&s.unshift({data:e,params:{0:i[1]}}),s}})(),c0=e=>Oo({},...l0("",e).map(t=>t.data).reverse()),u0=c0;let xi;function f0(){return xi=$fetch(ac(`builds/meta/${dr().app.buildId}.json`),{responseType:"json"}),xi.catch(e=>{console.error("[nuxt] Error fetching app manifest.",e)}),xi}function cc(){return xi||f0()}function Mo(e){const t=typeof e=="string"?e:e.path;try{return u0(t)}catch(n){return console.error("[nuxt] Error matching route rules.",n),{}}}async function Vu(e,t={}){if(await p0(e)){const n=await h0(e,t);return await Pp(n)||null}return null}const d0="_payload.json";async function h0(e,t={}){const n=new URL(e,"http://localhost");if(n.host!=="localhost"||cn(n.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+e);const r=dr(),s=t.hash||(t.fresh?Date.now():r.app.buildId),i=r.app.cdnURL,o=i&&await m0(e)?i:r.app.baseURL;return xo(o,n.pathname,d0+(s?`?${s}`:""))}async function Pp(e){const t=fetch(e,{cache:"force-cache"}).then(n=>n.text().then(Ip));try{return await t}catch(n){console.warn("[nuxt] Cannot load payload ",e,n)}return null}function xp(e){if(e.redirect)return!1;if(e.prerender)return!0}async function Op(e){return e=e==="/"?e:e.replace(/\/$/,""),(await cc()).prerendered.includes(e)}async function p0(e=Qs().path){const t=Mo({path:e});if(t.ssr===!1)return!1;const n=xp(t);return n!==void 0?n:t.payload?!0:await Op(e)}async function m0(e=Qs().path){const t=xp(Mo({path:e}));return t!==void 0?t:await Op(e)}let zn=null;async function g0(){if(zn)return zn;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await Ip(e.textContent||""),n=e.dataset.src?await Pp(e.dataset.src):void 0;return zn={...t,...n,...window.__NUXT__},zn.config?.public&&(zn.config.public=xt(zn.config.public)),zn}async function Ip(e){return await N_(e,Le()._payloadRevivers)}function $p(e,t){Le()._payloadRevivers[e]=t}const y0=o_(()=>{$p("skipHydrate",e=>{})});function Bu(e){try{return JSON.parse(e)}catch{return e}}const b0=[["NuxtError",e=>$e(e)],["EmptyShallowRef",e=>Hn(e==="_"?void 0:e==="0n"?BigInt(0):Bu(e))],["EmptyRef",e=>it(e==="_"?void 0:e==="0n"?BigInt(0):Bu(e))],["ShallowRef",e=>Hn(e)],["ShallowReactive",e=>nn(e)],["Ref",e=>it(e)],["Reactive",e=>xt(e)]],v0=wt({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,n;for(const[r,s]of b0)$p(r,s);Object.assign(e.payload,([t,n]=Ir(()=>e.runWithContext(g0)),t=await t,n(),t)),delete window.__NUXT__}});async function uc(e,t={}){const n=t.document||e.resolvedOptions.document;if(!n||!e.dirty)return;const r={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",r),!!r.shouldRender)return e._domUpdatePromise||(e._domUpdatePromise=new Promise(async s=>{const i=new Map,o=new Promise(d=>{e.resolveTags().then(m=>{d(m.map(p=>{const v=i.get(p._d)||0,b={tag:p,id:(v?`${p._d}:${v}`:p._d)||p._h,shouldRender:!0};return p._d&&Ap(p._d)&&i.set(p._d,v+1),b}))})});let a=e._dom;if(!a){a={title:n.title,elMap:new Map().set("htmlAttrs",n.documentElement).set("bodyAttrs",n.body)};for(const d of["body","head"]){const m=n[d]?.children;for(const p of m){const v=p.tagName.toLowerCase();if(!hl.has(v))continue;const b=Rp({tag:v,props:{}},{innerHTML:p.innerHTML,...p.getAttributeNames().reduce((g,y)=>(g[y]=p.getAttribute(y),g),{})||{}});if(b.key=p.getAttribute("data-hid")||void 0,b._d=pl(b)||kp(b),a.elMap.has(b._d)){let g=1,y=b._d;for(;a.elMap.has(y);)y=`${b._d}:${g++}`;a.elMap.set(y,p)}else a.elMap.set(b._d,p)}}}a.pendingSideEffects={...a.sideEffects},a.sideEffects={};function l(d,m,p){const v=`${d}:${m}`;
4a.sideEffects[v]=p,delete a.pendingSideEffects[v]}function u({id:d,$el:m,tag:p}){const v=p.tag.endsWith("Attrs");a.elMap.set(d,m),v||(p.textContent&&p.textContent!==m.textContent&&(m.textContent=p.textContent),p.innerHTML&&p.innerHTML!==m.innerHTML&&(m.innerHTML=p.innerHTML),l(d,"el",()=>{m?.remove(),a.elMap.delete(d)}));for(const b in p.props){if(!Object.prototype.hasOwnProperty.call(p.props,b))continue;const g=p.props[b];if(b.startsWith("on")&&typeof g=="function"){const w=m?.dataset;if(w&&w[`${b}fired`]){const _=b.slice(0,-5);g.call(m,new Event(_.substring(2)))}m.getAttribute(`data-${b}`)!==""&&((p.tag==="bodyAttrs"?n.defaultView:m).addEventListener(b.substring(2),g.bind(m)),m.setAttribute(`data-${b}`,""));continue}const y=`attr:${b}`;if(b==="class"){if(!g)continue;for(const w of g)v&&l(d,`${y}:${w}`,()=>m.classList.remove(w)),!m.classList.contains(w)&&m.classList.add(w)}else if(b==="style"){if(!g)continue;for(const[w,_]of g)l(d,`${y}:${w}`,()=>{m.style.removeProperty(w)}),m.style.setProperty(w,_)}else g!==!1&&g!==null&&(m.getAttribute(b)!==g&&m.setAttribute(b,g===!0?"":String(g)),v&&l(d,y,()=>m.removeAttribute(b)))}}const c=[],f={bodyClose:void 0,bodyOpen:void 0,head:void 0},h=await o;for(const d of h){const{tag:m,shouldRender:p,id:v}=d;if(p){if(m.tag==="title"){n.title=m.textContent,l("title","",()=>n.title=a.title);continue}d.$el=d.$el||a.elMap.get(v),d.$el?u(d):hl.has(m.tag)&&c.push(d)}}for(const d of c){const m=d.tag.tagPosition||"head";d.$el=n.createElement(d.tag.tag),u(d),f[m]=f[m]||n.createDocumentFragment(),f[m].appendChild(d.$el)}for(const d of h)await e.hooks.callHook("dom:renderTag",d,n,l);f.head&&n.head.appendChild(f.head),f.bodyOpen&&n.body.insertBefore(f.bodyOpen,n.body.firstChild),f.bodyClose&&n.body.appendChild(f.bodyClose);for(const d in a.pendingSideEffects)a.pendingSideEffects[d]();e._dom=a,await e.hooks.callHook("dom:rendered",{renders:h}),s()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}function w0(e={}){const t=e.domOptions?.render||uc;e.document=e.document||(typeof window<"u"?document:void 0);const n=e.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1;return e0({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[n?JSON.parse(n):!1,...e.init||[]]})}function _0(e,t){let n=0;return()=>{const r=++n;t(()=>{n===r&&e()})}}function E0(e={}){const t=w0({domOptions:{render:_0(()=>uc(t),n=>setTimeout(n,0))},...e});return t.install=n0(t),t}const T0={disableDefaults:!0},S0=wt({name:"nuxt:head",enforce:"pre",setup(e){const t=E0(T0);e.vueApp.use(t);{let n=!0;const r=async()=>{n=!1,await uc(t)};t.hooks.hook("dom:beforeRender",s=>{s.shouldRender=!n}),e.hooks.hook("page:start",()=>{n=!0}),e.hooks.hook("page:finish",()=>{e.isHydrating||r()}),e.hooks.hook("app:error",r),e.hooks.hook("app:suspense:resolve",r)}}});const _r=typeof document<"u";function Mp(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function C0(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Mp(e.default)}const Se=Object.assign;function da(e,t){const n={};for(const r in t){const s=t[r];n[r]=Wt(s)?s.map(e):e(s)}return n}const Cs=()=>{},Wt=Array.isArray;function qu(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}let We=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const jp=Symbol("");We.MATCHER_NOT_FOUND+"",We.NAVIGATION_GUARD_REDIRECT+"",We.NAVIGATION_ABORTED+"",We.NAVIGATION_CANCELLED+"",We.NAVIGATION_DUPLICATED+"";function Ur(e,t){return Se(new Error,{type:e,[jp]:!0},t)}function pn(e,t){return e instanceof Error&&jp in e&&(t==null||!!(e.type&t))}const A0=["params","query","hash"];function k0(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of A0)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}const R0=Symbol(""),Wu=Symbol(""),fc=Symbol(""),Lp=Symbol(""),ml=Symbol(""),P0={trailing:!0};function x0(e,t=25,n={}){if(n={...P0,...n},!Number.isFinite(t))throw new TypeError("Expected `wait` to be a finite number");let r,s,i=[],o,a;const l=(f,h)=>(o=O0(e,f,h),o.finally(()=>
4{if(o=null,n.trailing&&a&&!s){const d=l(f,a);return a=null,d}}),o),u=function(...f){return n.trailing&&(a=f),o||new Promise(h=>{const d=!s&&n.leading;clearTimeout(s),s=setTimeout(()=>{s=null;const m=n.leading?r:l(this,f);a=null;for(const p of i)p(m);i=[]},t),d?(r=l(this,f),h(r)):i.push(h)})},c=f=>{f&&(clearTimeout(f),s=null)};return u.isPending=()=>!!s,u.cancel=()=>{c(s),i=[],a=null},u.flush=()=>{if(c(s),!a||o)return;const f=a;return a=null,l(this,f)},u}async function O0(e,t,n){return await e.apply(t,n)}const Np=/#/g,I0=/&/g,$0=/\//g,M0=/=/g,j0=/\?/g,Dp=/\+/g,L0=/%5B/g,N0=/%5D/g,Fp=/%5E/g,D0=/%60/g,Hp=/%7B/g,F0=/%7C/g,Up=/%7D/g,H0=/%20/g;function dc(e){return e==null?"":encodeURI(""+e).replace(F0,"|").replace(L0,"[").replace(N0,"]")}function U0(e){return dc(e).replace(Hp,"{").replace(Up,"}").replace(Fp,"^")}function gl(e){return dc(e).replace(Dp,"%2B").replace(H0,"+").replace(Np,"%23").replace(I0,"%26").replace(D0,"`").replace(Hp,"{").replace(Up,"}").replace(Fp,"^")}function V0(e){return gl(e).replace(M0,"%3D")}function B0(e){return dc(e).replace(Np,"%23").replace(j0,"%3F")}function q0(e){return B0(e).replace($0,"%2F")}function Fs(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const W0=/\/$/,z0=e=>e.replace(W0,"");function ha(e,t,n="/"){let r,s={},i="",o="";const a=t.indexOf("#");let l=t.indexOf("?");return l=a>=0&&l>a?-1:l,l>=0&&(r=t.slice(0,l),i=t.slice(l,a>0?a:t.length),s=e(i.slice(1))),a>=0&&(r=r||t.slice(0,a),o=t.slice(a,t.length)),r=J0(r??t,n),{fullPath:r+i+o,path:r,query:s,hash:Fs(o)}}function K0(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function zu(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function G0(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&Vr(t.matched[r],n.matched[s])&&Vp(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Vr(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Vp(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Q0(e[n],t[n]))return!1;return!0}function Q0(e,t){return Wt(e)?Ku(e,t):Wt(t)?Ku(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function Ku(e,t){return Wt(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function J0(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let i=n.length-1,o,a;for(o=0;o<r.length;o++)if(a=r[o],a!==".")if(a==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(o).join("/")}const It={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let yl=(function(e){return e.pop="pop",e.push="push",e})({}),pa=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function Y0(e){if(!e)if(_r){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),z0(e)}const X0=/^[^#]+#/;function Z0(e,t){return e.replace(X0,"#")+t}function eE(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const jo=()=>({left:window.scrollX,top:window.scrollY});function tE(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=eE(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Gu(e,t){return(history.state?history.state.position-t:-1)+e}const bl=new Map;function nE(e,t){bl.set(e,t)}function rE(e){const t=bl.get(e);return bl.delete(e),t}function sE(e){return typeof e=="string"||e&&typeof e=="object"}function Bp(e){return typeof e=="string"||typeof e=="symbol"}function iE(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<n.length;++r){const s=n[r].replace(Dp," "),i=s.indexOf("="),o=Fs(i<0?s:s.slice(0,i)),a=i<0?null:Fs(s.slice(i+1));if(o in t){let l=t[o];Wt(l)||(l=t[o]=[l]),l.push(a)}else t[o]=a}return t}function Qu(e){let t="";for(let n in e){const r=e[n];if(n=V0(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(Wt(r)?r.map(s=>
vendor: 20,269 bytes, line 4
4s&&gl(s)):[r&&gl(r)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function oE(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Wt(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}function us(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Ln(e,t,n,r,s,i=o=>o()){const o=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((a,l)=>{const u=h=>{h===!1?l(Ur(We.NAVIGATION_ABORTED,{from:n,to:t})):h instanceof Error?l(h):sE(h)?l(Ur(We.NAVIGATION_GUARD_REDIRECT,{from:t,to:h})):(o&&r.enterCallbacks[s]===o&&typeof h=="function"&&o.push(h),a())},c=i(()=>e.call(r&&r.instances[s],t,n,u));let f=Promise.resolve(c);e.length<3&&(f=f.then(u)),f.catch(h=>l(h))})}function ma(e,t,n,r,s=i=>i()){const i=[];for(const o of e)for(const a in o.components){let l=o.components[a];if(!(t!=="beforeRouteEnter"&&!o.instances[a]))if(Mp(l)){const u=(l.__vccOpts||l)[t];u&&i.push(Ln(u,n,r,o,a,s))}else{let u=l();i.push(()=>u.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${a}" at "${o.path}"`);const f=C0(c)?c.default:c;o.mods[a]=c,o.components[a]=f;const h=(f.__vccOpts||f)[t];return h&&Ln(h,n,r,o,a,s)()}))}}return i}function aE(e,t){const n=[],r=[],s=[],i=Math.max(t.matched.length,e.matched.length);for(let o=0;o<i;o++){const a=t.matched[o];a&&(e.matched.find(u=>Vr(u,a))?r.push(a):n.push(a));const l=e.matched[o];l&&(t.matched.find(u=>Vr(u,l))||s.push(l))}return[n,r,s]}let lE=()=>location.protocol+"//"+location.host;function qp(e,t){const{pathname:n,search:r,hash:s}=t,i=e.indexOf("#");if(i>-1){let o=s.includes(e.slice(i))?e.slice(i).length:1,a=s.slice(o);return a[0]!=="/"&&(a="/"+a),zu(a,"")}return zu(n,e)+r+s}function cE(e,t,n,r){let s=[],i=[],o=null;const a=({state:h})=>{const d=qp(e,location),m=n.value,p=t.value;let v=0;if(h){if(n.value=d,t.value=h,o&&o===m){o=null;return}v=p?h.position-p.position:0}else r(d);s.forEach(b=>{b(n.value,m,{delta:v,type:yl.pop,direction:v?v>0?pa.forward:pa.back:pa.unknown})})};function l(){o=n.value}function u(h){s.push(h);const d=()=>{const m=s.indexOf(h);m>-1&&s.splice(m,1)};return i.push(d),d}function c(){if(document.visibilityState==="hidden"){const{history:h}=window;if(!h.state)return;h.replaceState(Se({},h.state,{scroll:jo()}),"")}}function f(){for(const h of i)h();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:f}}function Ju(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?jo():null}}function uE(e){const{history:t,location:n}=window,r={value:qp(e,n)},s={value:t.state};s.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,u,c){const f=e.indexOf("#"),h=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:lE()+e+l;try{t[c?"replaceState":"pushState"](u,"",h),s.value=u}catch(d){console.error(d),n[c?"replace":"assign"](h)}}function o(l,u){i(l,Se({},t.state,Ju(s.value.back,l,s.value.forward,!0),u,{position:s.value.position}),!0),r.value=l}function a(l,u){const c=Se({},s.value,t.state,{forward:l,scroll:jo()});i(c.current,c,!0),i(l,Se({},Ju(r.value,l,null),{position:c.position+1},u),!1),r.value=l}return{location:r,state:s,push:a,replace:o}}function fE(e){e=Y0(e);const t=uE(e),n=cE(e,t.state,t.location,t.replace);function r(i,o=!0){o||n.pauseListeners(),history.go(i)}const s=Se({location:"",base:e,go:r,createHref:Z0.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}let Xn=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var Ze=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(Ze||{});const dE={type:Xn.Static,value:""},hE=/[a-zA-Z0-9_]/;function pE(e){if(!e)return[[]];if(e==="/")return[[dE]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(d){throw new Error(`ERR (${n})/"${u}": ${d}`)}let n=Ze.Static,r=n;const s=[];let i;function o(){i&&s.push(i),i=[]}let a=0,l,u="",c="";function f(){u&&(n===Ze.Static?i.push({type:Xn.Static,value:u}):n===Ze.Param||n===Ze.ParamRegExp||n===Ze.ParamRegExpEnd?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:Xn.Param,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function h(){u+=l}for(;a<e.length;){if(l=e[a++],l==="\\"&&n!==Ze.ParamRegExp){r=n,n=Ze.EscapeNext;continue}switch(n){case Ze.Static:l==="/"?(u&&f(),o()):l===":"?(f(),n=Ze.Param):h();break;case Ze.EscapeNext:h(),n=r;break;case Ze.Param:l==="("?n=Ze.ParamRegExp:hE.test(l)?h():(f(),n=Ze.Static,l!=="*"&&l!=="?"&&l!=="+"&&a--);break;case Ze.ParamRegExp:l===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+l:n=Ze.ParamRegExpEnd:c+=l;break;case Ze.ParamRegExpEnd:f(),n=Ze.Static,l!=="*"&&l!=="?"&&l!=="+"&&a--,c="";break;default:t("Unknown state");break}}return n===Ze.ParamRegExp&&t(`Unfinished custom RegExp for param "${u}"`),f(),o(),s}const Yu="[^/]+?",mE={sensitive:!1,strict:!1,start:!0,end:!0};var mt=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(mt||{});const gE=/[.+*?^${}()[\]/\\]/g;function yE(e,t){const n=Se({},mE,t),r=[];let s=n.start?"^":"";const i=[];for(const u of e){const c=u.length?[]:[mt.Root];n.strict&&!u.length&&(s+="/");for(let f=0;f<u.length;f++){const h=u[f];let d=mt.Segment+(n.sensitive?mt.BonusCaseSensitive:0);if(h.type===Xn.Static)f||(s+="/"),s+=h.value.replace(gE,"\\$&"),d+=mt.Static;else if(h.type===Xn.Param){const{value:m,repeatable:p,optional:v,regexp:b}=h;i.push({name:m,repeatable:p,optional:v});const g=b||Yu;if(g!==Yu){d+=mt.BonusCustomRegExp;try{new RegExp(`(${g})`)}catch(w){throw new Error(`Invalid custom RegExp for param "${m}" (${g}): `+w.message)}}let y=p?`((?:${g})(?:/(?:${g}))*)`:`(${g})`;f||(y=v&&u.length<2?`(?:/${y})`:"/"+y),v&&(y+="?"),s+=y,d+=mt.Dynamic,v&&(d+=mt.BonusOptional),p&&(d+=mt.BonusRepeatable),g===".*"&&(d+=mt.BonusWildcard)}c.push(d)}r.push(c)}if(n.strict&&n.end){const u=r.length-1;r[u][r[u].length-1]+=mt.BonusStrict}n.strict||(s+="/?"),n.end?s+="$":n.strict&&!s.endsWith("/")&&(s+="(?:/|$)");const o=new RegExp(s,n.sensitive?"":"i");function a(u){const c=u.match(o),f={};if(!c)return null;for(let h=1;h<c.length;h++){const d=c[h]||"",m=i[h-1];f[m.name]=d&&m.repeatable?d.split("/"):d}return f}function l(u){let c="",f=!1;for(const h of e){(!f||!c.endsWith("/"))&&(c+="/"),f=!1;for(const d of h)if(d.type===Xn.Static)c+=d.value;else if(d.type===Xn.Param){const{value:m,repeatable:p,optional:v}=d,b=m in u?u[m]:"";if(Wt(b)&&!p)throw new Error(`Provided param "${m}" is an array but it is not repeatable (* or + modifiers)`);const g=Wt(b)?b.join("/"):b;if(!g)if(v)h.length<2&&(c.endsWith("/")?c=c.slice(0,-1):f=!0);else throw new Error(`Missing required param "${m}"`);c+=g}}return c||"/"}return{re:o,score:r,keys:i,parse:a,stringify:l}}function bE(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===mt.Static+mt.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===mt.Static+mt.Segment?1:-1:0}function Wp(e,t){let n=0;const r=e.score,s=t.score;for(;n<r.length&&n<s.length;){const i=bE(r[n],s[n]);if(i)return i;n++}if(Math.abs(s.length-r.length)===1){if(Xu(r))return 1;if(Xu(s))return-1}return s.length-r.length}function Xu(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const vE={strict:!1,end:!0,sensitive:!1};function wE(e,t,n){const r=yE(pE(e.path),n),s=Se(r,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function _E(e,t){const n=[],r=new Map;t=qu(vE,t);function s(f){return r.get(f)}function i(f,h,d){const m=!d,p=ef(f);p.aliasOf=d&&d.record;const v=qu(t,f),b=[p];if("alias"in f){const w=typeof f.alias=="string"?[f.alias]:f.alias;for(const _ of w)b.push(ef(Se({},p,{components:d?d.record.components:p.components,path:_,aliasOf:d?d.record:p})))}let g,y;for(const w of b){const{path:_}=w;if(h&&_[0]!=="/"){const k=h.record.path,$=k[k.length-1]==="/"?"":"/";w.path=h.record.path+(_&&$+_)}if(g=wE(w,h,v),d?d.alias.push(g):(y=y||g,y!==g&&y.alias.push(g),m&&f.name&&!tf(g)&&o(f.name)),zp(g)&&l(g),p.children){const k=p.children;for(let $=0;$<k.length;$++)i(k[$],g,d&&d.children[$])}d=d||g}return y?()=>{o(y)}:Cs}function o(f){if(Bp(f)){const h=r.get(f);h&&(r.delete(f),n.splice(n.indexOf(h),1),h.children.forEach(o),h.alias.forEach(o))}else{const h=n.indexOf(f);h>-1&&(n.splice(h,1),f.record.name&&r.delete(f.record.name),f.children.forEach(o),f.alias.forEach(o))}}function a(){return n}function l(f){const h=SE(f,n);n.splice(h,0,f),f.record.name&&!tf(f)&&r.set(f.record.name,f)}function u(f,h){let d,m={},p,v;if("name"in f&&f.name){if(d=r.get(f.name),!d)throw Ur(We.MATCHER_NOT_FOUND,{location:f});v=d.record.name,m=Se(Zu(h.params,d.keys.filter(y=>!y.optional).concat(d.parent?d.parent.keys.filter(y=>y.optional):[]).map(y=>y.name)),f.params&&Zu(f.params,d.keys.map(y=>y.name))),p=d.stringify(m)}else if(f.path!=null)p=f.path,d=n.find(y=>y.re.test(p)),d&&(m=d.parse(p),v=d.record.name);else{if(d=h.name?r.get(h.name):n.find(y=>y.re.test(h.path)),!d)throw Ur(We.MATCHER_NOT_FOUND,{location:f,currentLocation:h});v=d.record.name,m=Se({},h.params,f.params),p=d.stringify(m)}const b=[];let g=d;for(;g;)b.unshift(g.record),g=g.parent;return{name:v,path:p,params:m,matched:b,meta:TE(b)}}e.forEach(f=>i(f));function c(){n.length=0,r.clear()}return{addRoute:i,resolve:u,removeRoute:o,clearRoutes:c,getRoutes:a,getRecordMatcher:s}}function Zu(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function ef(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:EE(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function EE(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function tf(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function TE(e){return e.reduce((t,n)=>Se(t,n.meta),{})}function SE(e,t){let n=0,r=t.length;for(;n!==r;){const i=n+r>>1;Wp(e,t[i])<0?r=i:n=i+1}const s=CE(e);return s&&(r=t.lastIndexOf(s,r-1)),r}function CE(e){let t=e;for(;t=t.parent;)if(zp(t)&&Wp(e,t)===0)return t}function zp({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function nf(e){const t=dt(fc),n=dt(Lp),r=ke(()=>{const l=re(e.to);return t.resolve(l)}),s=ke(()=>{const{matched:l}=r.value,{length:u}=l,c=l[u-1],f=n.matched;if(!c||!f.length)return-1;const h=f.findIndex(Vr.bind(null,c));if(h>-1)return h;const d=rf(l[u-2]);return u>1&&rf(c)===d&&f[f.length-1].path!==d?f.findIndex(Vr.bind(null,l[u-2])):h}),i=ke(()=>s.value>-1&&xE(n.params,r.value.params)),o=ke(()=>s.value>-1&&s.value===n.matched.length-1&&Vp(n.params,r.value.params));function a(l={}){if(PE(l)){const u=t[re(e.replace)?"replace":"push"](re(e.to)).catch(Cs);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:r,href:ke(()=>r.value.href),isActive:i,isExactActive:o,navigate:a}}function AE(e){return e.length===1?e[0]:e}const kE=Zr({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:nf,setup(e,{slots:t}){const n=xt(nf(e)),{options:r}=dt(fc),s=ke(()=>({[sf(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[sf(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&AE(t.default(n));return e.custom?i:Tt("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},i)}}}),RE=kE;function PE(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function xE(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!Wt(s)||s.length!==r.length||r.some((i,o)=>i.valueOf()!==s[o].valueOf()))return!1}return!0}function rf(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const sf=(e,t,n)=>e??t??n,OE=Zr({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=dt(ml),s=ke(()=>e.route||r.value),i=dt(Wu,0),o=ke(()=>{let u=re(i);const{matched:c}=s.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),a=ke(()=>s.value.matched[o.value]);Rr(Wu,ke(()=>o.value+1)),Rr(R0,a),Rr(ml,s);const l=it();return Rt(()=>[l.value,a.value,e.name],([u,c,f],[h,d,m])=>{c&&(c.instances[f]=u,d&&d!==c&&u&&u===h&&(c.leaveGuards.size||(c.leaveGuards=d.leaveGuards),c.updateGuards.size||(c.updateGuards=d.updateGuards))),u&&c&&(!d||!Vr(c,d)||!h)&&(c.enterCallbacks[f]||[]).forEach(p=>p(u))},{flush:"post"}),()=>{const u=s.value,c=e.name,f=a.value,h=f&&f.components[c];if(!h)return of(n.default,{Component:h,route:u});const d=f.props[c],m=d?d===!0?u.params:typeof d=="function"?d(u):d:null,v=Tt(h,Se({},m,t,{onVnodeUnmounted:b=>{b.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return of(n.default,{Component:v,route:u})||v}}});function of(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Kp=OE;function IE(e){const t=_E(e.routes,e),n=e.parseQuery||iE,r=e.stringifyQuery||Qu,s=e.history,i=us(),o=us(),a=us(),l=Hn(It);let u=It;_r&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=da.bind(null,M=>""+M),f=da.bind(null,q0),h=da.bind(null,Fs);function d(M,z){let B,J;return Bp(M)?(B=t.getRecordMatcher(M),J=z):J=M,t.addRoute(J,B)}function m(M){const z=t.getRecordMatcher(M);z&&t.removeRoute(z)}function p(){return t.getRoutes().map(M=>M.record)}function v(M){return!!t.getRecordMatcher(M)}function b(M,z){if(z=Se({},z||l.value),typeof M=="string"){const A=ha(n,M,z.path),L=t.resolve({path:A.path},z),H=s.createHref(A.fullPath);return Se(A,L,{params:h(L.params),hash:Fs(A.hash),redirectedFrom:void 0,href:H})}let B;if(M.path!=null)B=Se({},M,{path:ha(n,M.path,z.path).path});else{const A=Se({},M.params);for(const L in A)A[L]==null&&delete A[L];B=Se({},M,{params:f(A)}),z.params=f(z.params)}const J=t.resolve(B,z),le=M.hash||"";J.params=c(h(J.params));const ye=K0(r,Se({},M,{hash:U0(le),path:J.path})),E=s.createHref(ye);return Se({fullPath:ye,hash:le,query:r===Qu?oE(M.query):M.query||{}},J,{redirectedFrom:void 0,href:E})}function g(M){return typeof M=="string"?ha(n,M,l.value.path):Se({},M)}function y(M,z){if(u!==M)return Ur(We.NAVIGATION_CANCELLED,{from:z,to:M})}function w(M){return $(M)}function _(M){return w(Se(g(M),{replace:!0}))}function k(M,z){const B=M.matched[M.matched.length-1];if(B&&B.redirect){const{redirect:J}=B;let le=typeof J=="function"?J(M,z):J;return typeof le=="string"&&(le=le.includes("?")||le.includes("#")?le=g(le):{path:le},le.params={}),Se({query:M.query,hash:M.hash,params:le.path!=null?{}:M.params},le)}}function $(M,z){const B=u=b(M),J=l.value,le=M.state,ye=M.force,E=M.replace===!0,A=k(B,J);if(A)return $(Se(g(A),{state:typeof A=="object"?Se({},le,A.state):le,force:ye,replace:E}),z||B);const L=B;L.redirectedFrom=z;let H;return!ye&&G0(r,J,B)&&(H=Ur(We.NAVIGATION_DUPLICATED,{to:L,from:J}),Z(J,J,!0,!1)),(H?Promise.resolve(H):D(L,J)).catch(F=>pn(F)?pn(F,We.NAVIGATION_GUARD_REDIRECT)?F:ie(F):N(F,L,J)).then(F=>{if(F){if(pn(F,We.NAVIGATION_GUARD_REDIRECT))return $(Se({replace:E},g(F.to),{state:typeof F.to=="object"?Se({},le,F.to.state):le,force:ye}),z||L)}else F=S(L,J,!0,E,le);return q(L,J,F),F})}function O(M,z){const B=y(M,z);return B?Promise.reject(B):Promise.resolve()}function x(M){const z=ge.values().next().value;return z&&typeof z.runWithContext=="function"?z.runWithContext(M):M()}function D(M,z){let B;const[J,le,ye]=aE(M,z);B=ma(J.reverse(),"beforeRouteLeave",M,z);for(const A of J)A.leaveGuards.forEach(L=>{B.push(Ln(L,M,z))});const E=O.bind(null,M,z);return B.push(E),pe(B).then(()=>{B=[];for(const A of i.list())B.push(Ln(A,M,z));return B.push(E),pe(B)}).then(()=>{B=ma(le,"beforeRouteUpdate",M,z);for(const A of le)A.updateGuards.forEach(L=>{B.push(Ln(L,M,z))});return B.push(E),pe(B)}).then(()=>{B=[];for(const A of ye)if(A.beforeEnter)if(Wt(A.beforeEnter))for(const L of A.beforeEnter)B.push(Ln(L,M,z));else B.push(Ln(A.beforeEnter,M,z));return B.push(E),pe(B)}).then(()=>(M.matched.forEach(A=>A.enterCallbacks={}),B=ma(ye,"beforeRouteEnter",M,z,x),B.push(E),pe(B))).then(()=>{B=[];for(const A of o.list())B.push(Ln(A,M,z));return B.push(E),pe(B)}).catch(A=>pn(A,We.NAVIGATION_CANCELLED)?A:Promise.reject(A))}function q(M,z,B){a.list().forEach(J=>x(()=>J(M,z,B)))}function S(M,z,B,J,le){const ye=y(M,z);if(ye)return ye;const E=z===It,A=_r?history.state:{};B&&(J||E?s.replace(M.fullPath,Se({scroll:E&&A&&A.scroll},le)):s.push(M.fullPath,le)),l.value=M,Z(M,z,B,E),ie()}let P;function j(){P||(P=s.listen((M,z,B)=>{if(!de.listening)return;const J=b(M),le=k(J,de.currentRoute.value);if(le){$(Se(le,{replace:!0,force:!0}),J).catch(Cs);return}u=J;const ye=l.value;_r&&nE(Gu(ye.fullPath,B.delta),jo()),D(J,ye).catch(E=>pn(E,We.NAVIGATION_ABORTED|We.NAVIGATION_CANCELLED)?E:pn(E,We.NAVIGATION_GUARD_REDIRECT)?($(Se(g(E.to),{force:!0}),J).then(A=>{pn(A,We.NAVIGATION_ABORTED|We.NAVIGATION_DUPLICATED)&&!B.delta&&B.type===yl.pop&&s.go(-1,!1)}).catch(Cs),Promise.reject()):(B.delta&&s.go(-B.delta,!1),N(E,J,ye))).then(E=>{E=E||S(J,ye,!1),E&&(B.delta&&!pn(E,We.NAVIGATION_CANCELLED)?s.go(-B.delta,!1):B.type===yl.pop&&pn(E,We.NAVIGATION_ABORTED|We.NAVIGATION_DUPLICATED)&&s.go(-1,!1)),q(J,ye,E)}).catch(Cs)}))}let R=us(),C=us(),I;function N(M,z,B){ie(M);const J=C.list();return J.length?J.forEach(le=>le(M,z,B)):console.error(M),Promise.reject(M)}function W(){return I&&l.value!==It?Promise.resolve():new Promise((M,z)=>{R.add([M,z])})}function ie(M){return I||(I=!M,j(),R.list().forEach(([z,B])=>M?B(M):z()),R.reset()),M}function Z(M,z,B,J){const{scrollBehavior:le}=e;if(!_r||!le)return Promise.resolve();const ye=!B&&rE(Gu(M.fullPath,0))||(J||!B)&&history.state&&history.state.scroll||null;return Un().then(()=>le(M,z,ye)).then(E=>E&&tE(E)).catch(E=>N(E,M,z))}const te=M=>s.go(M);let be;const ge=new Set,de={currentRoute:l,listening:!0,addRoute:d,removeRoute:m,clearRoutes:t.clearRoutes,hasRoute:v,getRoutes:p,resolve:b,options:e,push:w,replace:_,go:te,back:()=>te(-1),forward:()=>te(1),beforeEach:i.add,beforeResolve:o.add,afterEach:a.add,onError:C.add,isReady:W,install(M){M.component("RouterLink",RE),M.component("RouterView",Kp),M.config.globalProperties.$router=de,Object.defineProperty(M.config.globalProperties,"$route",{enumerable:!0,get:()=>re(l)}),_r&&!be&&l.value===It&&(be=!0,w(s.location).catch(J=>{}));const z={};for(const J in It)Object.defineProperty(z,J,{get:()=>l.value[J],enumerable:!0});M.provide(fc,de),M.provide(Lp,nn(z)),M.provide(ml,l);const B=M.unmount;ge.add(M),M.unmount=function(){ge.delete(M),ge.size<1&&(u=It,P&&P(),P=null,l.value=
4It,be=!1,I=!1),B()}}};function pe(M){return M.reduce((z,B)=>z.then(()=>x(B)),Promise.resolve())}return de}const $E=/(:\w+)\([^)]+\)/g,ME=/(:\w+)[?+*]/g,jE=/:\w+/g,LE=(e,t)=>t.path.replace($E,"$1").replace(ME,"$1").replace(jE,n=>e.params[n.slice(1)]?.toString()||""),vl=(e,t)=>{const n=e.route.matched.find(s=>s.components?.default===e.Component.type),r=t??n?.meta.key??(n&&LE(e.route,n));return typeof r=="function"?r(e.route):r},NE=(e,t)=>({default:()=>e?Tt(_b,e===!0?{}:e,t):t});function Gp(e){return Array.isArray(e)?e:[e]}const DE="modulepreload",FE=function(e,t){return new URL(e,t).href},af={},me=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){let u=function(c){return Promise.all(c.map(f=>Promise.resolve(f).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};const o=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),l=a?.nonce||a?.getAttribute("nonce");s=u(n.map(c=>{if(c=FE(c,r),c in af)return;af[c]=!0;const f=c.endsWith(".css"),h=f?'[rel="stylesheet"]':"";if(r)for(let m=o.length-1;m>=0;m--){const p=o[m];if(p.href===c&&(!f||p.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${h}`))return;const d=document.createElement("link");if(d.rel=f?"stylesheet":DE,f||(d.as="script"),d.crossOrigin="",d.href=c,l&&d.setAttribute("nonce",l),document.head.appendChild(d),f)return new Promise((m,p)=>{d.addEventListener("load",m),d.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return s.then(o=>{for(const a of o||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})},Qp=`
5	_type == "internalLink" => {
6		"linkType": "internalLink",
7		"title": coalesce( title,
8			linkTarget->title
9		),
10		"route": select(
11			linkTarget->_type == "pageHome" => "index",
12			linkTarget->_type == "pageProjects" => "projects",
13			linkTarget->_type == "page" => "slug",
14			linkTarget->_type == "project" => "projects-slug",
15			"index"
16		),
17		"slug": linkTarget->slug.current
18	},
19	_type == "link" => {
20		...,
21		"linkType": "externalLink",
22		"title": coalesce(title, href)
23	}
24`,vt=`
25  _type,
26  alt,
27  caption,
28  body,
29  asset,
30  "id": asset._ref,
31  "preview": asset->metadata.lqip,
32  "aspectRatio": asset->metadata.dimensions.aspectRatio,
33  "width": asset->metadata.dimensions.width,
34  "height": asset->metadata.dimensions.height,
35  hotspot { x, y }
36`,zt=`
37  ...,
38	_type == "block" => {
39		...
40	},
41  _type == 'image' => {
42    "image": {${vt}},
43  },
44	markDefs[]{
45		...,
46		_type == "download" => {"url": file.asset->url},
47		${Qp}
48	}
49`,ns=`
50	seo {
51		...,
52		ogImage{asset->}
53	}
54`,Js=`
55...,
56_type,
57title,
58"slug": slug.current,
59_type in ['value', 'writing'] => {
60  "color": color->color.hex,
61},
62_type in ['processItem', 'journal'] => {
63  "coverImage": coverImage {
64    ${vt},
65  }
66},
67_type == 'processItem' => {
68  "slug": reference->slug.current,
69  large,
70}
71`,hc=`
72relatedItems[] -> {
73  _id,
74  _type,
75  title,
76  "slug": slug.current,
77}
78`;function Fe(e,...t){const n=e.length-1;return e.slice(0,n).reduce((r,s,i)=>r+s+t[i],"")+e[n]}const HE=Fe`{
79  "home": *[_id == "home"] [0] {
80    ...,
81    showcaseProjects[]-> {
82      _id,
83      _type,
84      title,
85      "slug": slug.current,
86    }
87  },
88  "settings": *[_id == "settings"] [0] {
89    ...,
90    menuItems[]-> {
91      _type,
92      "slug": slug.current,
93      title
94    },
95    footer[] {
96      ${Qp}
97    },
98  },
99  "studioSubpages": *[_type == "studioSettings"] [0].subpages[]-> {
100    _id,
101    _type,
102    title,
103    "slug": slug.current,
104  },
105  "colors": *[_type == "colorScheme"] | order(_updatedAt desc).color.hex,
106	"slugs": {
107		"pages": *[_type == "page"].slug.current,
108		"projects": *[_type == "project"].slug.current,
109    "values": *[_type == "value"].slug.current,
110    "journals": *[_type == "journal"].slug.current,
111    "publicTalks": *[_type == "publicTalk"].slug.current,
112    "writings": *[_type == "writing"].slug.current,
113    "studioSubpages": *[_type == "studioSubpage"].slug.current,
114	}
115}`,VP=Fe`
116*[(_type == "home")] | order(_updatedAt desc) [0]{
117  ...,
118  showcaseProjects[] {
119    "_type": reference->_type,
120    "_id": reference->_id,
121    "title": reference->title,
122    "slug": reference->slug.current,
123    textColor,
124    "coverImage": image {
125      ${vt},
126      "recommendedTextColor": ^.textColor
127    },
128    video {
129      ...,
130      ...asset-> {
131        ...,
132      }
133    },
134  },
135}`,BP=Fe`
136*[_type == 'page' && slug.current == $slug] | order(_updatedAt desc) [0]{
137	...,
138  slug.current == 'people' => {
139    "people": people[]-> {
140      _id, 
141      _type,
142      name,
143      role,
144      "slug": slug.current,
145      "image": image {${vt}},
146      body[] {${zt}},
147    },
148    peopleByTitle[] {
149      title,
150      people[]-> {
151        _id, 
152        _type,
153        name,
154        role,
155        "slug": slug.current,
156        body[] {${zt}},,
157      },
158    },
159  },
160  slug.current == 'collaborators' => {
161    "collaborators": *[_type == "collaborator"] | order(name asc, _updatedAt desc) {
162      _id, 
163      _type,
164      name, 
165      "slug": slug.current,
166      link,
167    },
168  },
169  slug.current == 'clients' => {
170    "clients": *[_type == "client" && showOnClientsPage == true] | order(name asc, _updatedAt desc) {
171      _id, 
172      _type,
173      name, 
174      "slug": slug.current,
175      link,
176    },
177  },
178  slug.current == 'awards' => {
179    "projects": *[_type == "project" && defined(awards)] | order(completionDate desc, title asc, _updatedAt desc) {
180      _id, 
181      _type,
182      title, 
183      "slug": slug.current, 
184      awards,
185    },
186  },
187  slug.current == 'selected' => {
188    "projects": selectedProjects[] {
189      "_type": reference->_type,
190      "_id": reference->_id,
191      "title": reference->title,
192      "slug": reference->slug.current,
193      "coverImage": image {
194        ${vt},
195        "recommendedTextColor": ^.textColor
196      },
197    },
198  },
199	${ns}
200}
201`,qP=Fe`
202*[_type == 'studioSubpage' && slug.current == $slug] | order(_updatedAt desc) [0]{
203  ...,
204  "slug": slug.current,
205  body[] {${zt}},
206}`,WP=Fe`{
207  "title": "Projects",
208	"projects": *[_type == "project"] | order(title asc, _updatedAt desc) {
209    _id, 
210    _type,
211		title, 
212    "slug": slug.current,
213    "year": completionDate,
214    "types": projectTypes[]->{
215      _id,
216      _type,
217      title,
218      "slug": slug.current,
219    },
220    "fields": projectFields[]->{
221      _id,
222      _type,
223      title,
224      "slug": slug.current,
225    },
226    "themes": projectThemes[]->{
227      _id,
228      _type,
229      title,
230      "slug": slug.current,
231    },
232    coverImage {
233      ${vt},
234      "recommendedTextColor": asset->metadata.palette.dominant.title
235    },
236    rolloverImage {
237      ${vt},
238      "recommendedTextColor": asset->metadata.palette.dominant.title
239    },
240    location,
241	},
242  "types": *[_type == "projectType"] | order(title asc, _updatedAt desc) {
243    _id, 
244    _type,
245    title, 
246    "slug": "slug.current",
247  },
248  "fields": *[_type == "projectField"] | order(title asc, _updatedAt desc) {
249    _id, 
250    _type,
251    title, 
252    "slug": slug.current,
253  },
254  "themes": *[_type == "projectTheme"] | order(title asc, _updatedAt desc) {
255    _id, 
256    _type,
257    title, 
258    "slug": slug.current,
259  }
260}
261`,zP=Fe`
262*[_type == 'project' && slug.current == $slug] | order(_updatedAt desc) [0]{
263	...,
264  _type,
265  "slug": slug.current,
266  body[] {${zt}},
267  "imageGroups": imageGroups[] {
268    ...,
269    images[] {
270      ...,
271      _type == 'image' => {
272        ${vt}
273      },
274      _type == 'video' => {
275        ...,
276        "video": video.asset-> {
277          ...,
278        }
279      }
280    },
281    _type == 'video' => {
282      ...,
283      "video": video.asset-> {
284        ...,
285      }
286    }
287  },
288  "images": imageGroups[defined(images)].images[] {
289    ...,
290    _type,
291    _type == 'image' => {
292      ${vt}
293    },
294    _type == 'video' => {
295      ...,
296      "video": video.asset-> {
297        ...,
298      }
299    }
300  },
301  "tableItems": [
302    {
303      "_key": "types",
304      "type": "array",
305      "title": "Type",
306      "value": projectTypes[]->{
307        _id,
308        _type,
309        title,
310        "slug": slug.current,
311      },
312      "defined": defined(projectTypes)
313    },
314    {
315      "_key": "fields",
316      "type": "array",
317      "title": "Field",
318      "value": projectFields[]->{
319        _id,
320        _type,
321        title,
322        "slug": slug.current,
323      },
324      "defined": defined(projectFields)
325    },
326    {
327      "_key": "themes",
328      "type": "array",
329      "title": "Theme",
330      "value": projectThemes[]->{
331        _id,
332        _type,
333        title,
334        "slug": slug.current,
335      },
336      "defined": defined(projectThemes)
337    },
338    {
339      "_key": "clients",
340      "type": "array",
341      "title": "Client",
342      "value": clients[]->{
343        _id,
344        _type,
345        "title": name,
346        "slug": slug.current,
347      },
348      "defined": defined(clients)
349    },
350    {
351      "_key": "year",
352      "type": "string",
353      "title": "Completion",
354      "value": completionDate,
355      "defined": defined(completionDate)
356    },
357    {
358      "_key": "size",
359      "type": "string",
360      "title": "Size",
361      "value": size,
362      "defined": defined(size)
363    },
364    {
365      "_key": "budget",
366      "type": "string",
367      "title": "Value",
368      "value": budget,
369      "defined": defined(budget)
370    },
371    {
372      "_key": "services",
373      "type": "array",
374      "title": "Services",
375      "value": services[]->{
376        _id,
377        _type,
378        title,
379        "slug": slug.current,
380      },
381      "defined": defined(services)
382    },
383    {
384      "_key": "team",
385      "type": "array",
386      "title": "People",
387      "value": projectTeam[]->{
388        _id,
389        _type,
390        "title": name,
391      },
392      "defined": defined(projectTeam)
393    },
394    {
395      "_key": "collaborators",
396      "type": "array",
397      "title": "Team",
398      "value": collaborators[] {
399        "title": role + ": " + collaborator->name,
400        role,
401        collaborator->{
402          _id,
403          _type,
404          "title": name,
405          "slug": slug.current,
406        },
407      },
408      "defined": defined(collaborators)
409    },
410    {
411      "_key": "awards",
412      "type": "array",
413      "title": "Awards",
414      "value": *[_type == "award" && references(^._id)] | order(date desc) {
415        _id,
416        _type,
417        "title": title + ", " + string::split(date, '-')[0],
418        link
419      },
420      "defined": count(*[_type == "award" && references(^._id)]) > 0
421    },
422  ],
423  additionalTableItems[] {
424    _key,
425    "type": "array",
426    title,
427    tableValues
428  },
429  relatedItems[]-> {
430    _id,
431    _type,
432    title,
433    "slug": slug.current,  
434  },
435	${ns}
436}
437`,KP=Fe`{
438  "title": "Values",
439	"values": *[_type == "value"] | order(title asc, _updatedAt desc) {
440    _id, 
441    _type,
442		title, 
443    "slug": slug.current, 
444    "color": color->color.hex,
445	}
446}
447`,GP=Fe`
448*[_type == 'value' && slug.current == $slug] | order(_updatedAt desc) [0]{
449	...,
450  "color": color->color.hex,
451  "blocks": blocks[] {
452    _key,
453    _type,
454    mode,
455    reference->{
456      _id,
457      _type,
458      title,
459      "slug": slug.current,
460    },
461    _type == 'valueTextBlock' => {
462      text,
463      backgroundImage {
464        ${vt},
465        "recommendedTextColor": asset->metadata.palette.dominant.title
466      },
467      defined(backgroundImage) => {
468        "recommendedTextColor": backgroundImage.asset->metadata.palette.dominant.title
469      }
470    },
471    _type == "valueImageBlock" => {
472      images[] {
473        ${vt}
474      },
475      "recommendedTextColor": images[0].asset->metadata.palette.dominant.title,
476      "aspectRatio": images[0].asset->metadata.dimensions.aspectRatio
477    }
478  },
479	${ns}
480}
481`,QP=Fe`{
482  "title": "Discourse",
483	"items": *[_type in ["value", "processItem", "writing", "publicTalk", "journal"]] | order(date desc, _updatedAt desc) {
484    ${Js},
485  }
486}
487`,JP=Fe`{
488  "title": "Journals",
489	"items": *[_type in ["journal"]] | order(date desc, _updatedAt desc) {
490    ${Js},
491  }
492}
493`,YP=Fe`
494*[_type == 'journal' && slug.current == $slug] | order(_updatedAt desc) [0]{
495  ...,
496  "slug": slug.current,
497  coverImage {
498    ${vt},
499  },
500  "images": images[] {
501    ${vt}
502  },
503  body[] {${zt}},
504  ${hc},
505  ${ns}
506}
507`,XP=Fe`{
508  "title": "Public Talks",
509	"items": *[_type in ["publicTalk"]] | order(date desc, _updatedAt desc) {
510    ${Js},
511  }
512}
513`,ZP=Fe`
514*[_type == 'publicTalk' && slug.current == $slug] | order(_updatedAt desc) [0]{
515  ...,
516  body[] {${zt}},
517  "video": video.asset-> {
518    ...,
519  },
520  ${hc},
521  ${ns}
522}
523`,ex=Fe`{
524  "title": "Writings",
525  "items": *[_type in ["writing"]] | order(date desc, _updatedAt desc) {
526    ${Js},
527  }
528}
529`,tx=Fe`
530*[_type == 'writing' && slug.current == $slug] | order(_updatedAt desc) [0]{
531  ...,
532  body[] {${zt}},
533  pdf {
534    asset-> {
535      ...,
536    },
537  },
538  ${hc},
539  ${ns}
540}
541`,nx=Fe`{
542  "title": "Process",
543  "items": *[_type in ["processItem"]] | order(date desc, _updatedAt desc) {
544    ${Js},
545  }
546}
547`,rx=Fe`
548*[(_type == "about")] | order(_updatedAt desc) [0]{
549  "title": "About",
550  body[] {${zt}},
551}
552`,sx=Fe`
553*[(_type == "contact")] | order(_updatedAt desc) [0]{
554  "title": "Contact",
555  body[] {${zt}},
556}
557`,ix=Fe`
558*[(_type == "search")] | order(_updatedAt desc) [0]{
559  "title": "Search",
560  ...,
561}
562`,ox=Fe`
563*[(_type == "practice")] | order(_updatedAt desc) [0]{
564  "title": "Practice",
565  body[] {${zt}},
566}
567`,ax=Fe`
568*[(_type == "people")] | order(_updatedAt desc) [0]{
569  "title": "People",
570  peopleByTitle[] {
571    title,
572    people[]-> {
573      _id, 
574      _type,
575      name,
576      pronouns,
577      role,
578      "slug": slug.current,
579      "image": image {${vt}},
580      body[] {${zt}},
581      "projects": select(
582        count(coalesce(selectedProjects, [])) > 0 => selectedProjects[]-> {
583          _id,
584          _type,
585          title,
586          "slug": slug.current,
587        },
588        *[_type == "project" && references(^._id)] | order(completionDate desc, title asc) {
589          _id,
590          _type,
591          title,
592          "slug": slug.current,
593        }
594      ),
595      cv {
596        asset->
597      },
598    },
599  }
600}
601`,lx=Fe`{
602  "title": "Collaborators",
603  "collaborators": *[_type == "collaborator"] | order(name asc, _updatedAt desc) {
604    _id, 
605    _type,
606    name, 
607    "slug": slug.current,
608    link,
609  }
610}
611`,cx=Fe`{
612  "title": "Clients",
613  "clients": *[_type == "client" && showOnClientsPage == true] | order(name asc, _updatedAt desc) {
614    _id, 
615    _type,
616    name, 
617    "slug": slug.current,
618    link,
619  }
620}
621`,ux=Fe`{
622  "title": "Awards",
623  "awards": *[_type == "award"] | order(date desc) {
624    _id, 
625    _type,
626    title, 
627    date,
628    "year": string::split(date, '-')[0],
629    project->{
630      _id,
631      _type,
632      title,
633      "slug": slug.current,
634    },
635    link,
636  }
637}
638`,fx=Fe`
639*[(_type == "selectedProjects")] | order(_updatedAt desc) [0]{
640  "title": "Selected Projects",
641  "projects": selectedProjects[] {
642    "_type": reference->_type,
643    "_id": reference->_id,
644    "title": reference->title,
645    "slug": reference->slug.current,
646    "coverImage": image {
647      ${vt},
648      "recommendedTextColor": ^.textColor
649    },
650  }
651}
652`;function wl(e){return typeof e=="string"?`'${e}'`:new UE().serialize(e)}const UE=(function(){class e{#e=new Map;compare(n,r){const s=typeof n,i=typeof r;return s==="string"&&i==="string"?n.localeCompare(r):s==="number"&&i==="number"?n-r:String.prototype.localeCompare.call(this.serialize(n,!0),this.serialize(r,!0))}serialize(n,r){if(n===null)return"null";switch(typeof n){case"string":return r?n:`'${n}'`;case"bigint":return`${n}n`;case"object":return this.$object(n);case"function":return this.$function(n)}return String(n)}serializeObject(n){const r=Object.prototype.toString.call(n);if(r!=="[object Object]")return this.serializeBuiltInType(r.length<10?`unknown:${r}`:r.slice(8,-1),n);const s=n.constructor,i=s===Object||s===void 0?"":s.name;if(i!==""&&globalThis[i]===s)return this.serializeBuiltInType(i,n);if(typeof n.toJSON=="function"){const o=n.toJSON();return i+(o!==null&&typeof o=="object"?this.$object(o):`(${this.serialize(o)})`)}return this.serializeObjectEntries(i,Object.entries(n))}serializeBuiltInType(n,r){const s=this["$"+n];if(s)return s.call(this,r);if(typeof r?.entries=="function")return this.serializeObjectEntries(n,r.entries());throw new Error(`Cannot serialize ${n}`)}serializeObjectEntries(n,r){const s=Array.from(r).sort((o,a)=>this.compare(o[0],a[0]));let i=`${n}{`;for(let o=0;o<s.length;o++){const[a,l]=s[o];i+=`${this.serialize(a,!0)}:${this.serialize(l)}`,o<s.length-1&&(i+=",")}return i+"}"}$object(n){let r=this.#e.get(n);return r===void 0&&(this.#e.set(n,`#${this.#e.size}`),r=this.serializeObject(n),this.#e.set(n,r)),r}$function(n){const r=Function.prototype.toString.call(n);
652return r.slice(-15)==="[native code] }"?`${n.name||""}()[native]`:`${n.name}(${n.length})${r.replace(/\s*\n\s*/g,"")}`}$Array(n){let r="[";for(let s=0;s<n.length;s++)r+=this.serialize(n[s]),s<n.length-1&&(r+=",");return r+"]"}$Date(n){try{return`Date(${n.toISOString()})`}catch{return"Date(null)"}}$ArrayBuffer(n){return`ArrayBuffer[${new Uint8Array(n).join(",")}]`}$Set(n){return`Set${this.$Array(Array.from(n).sort((r,s)=>this.compare(r,s)))}`}$Map(n){return this.serializeObjectEntries("Map",n.entries())}}for(const t of["Error","RegExp","URL"])e.prototype["$"+t]=function(n){return`${t}(${n})`};for(const t of["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"])e.prototype["$"+t]=function(n){return`${t}[${n.join(",")}]`};for(const t of["BigInt64Array","BigUint64Array"])e.prototype["$"+t]=function(n){return`${t}[${n.join("n,")}${n.length>0?"n":""}]`};return e})();function VE(e,t){return e===t||wl(e)===wl(t)}const BE=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],qE=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],WE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",Kn=[];class zE{_data=new yi;_hash=new yi([...BE]);_nDataBytes=0;_minBufferSize=0;finalize(t){t&&this._append(t);const n=this._nDataBytes*8,r=this._data.sigBytes*8;return this._data.words[r>>>5]|=128<<24-r%32,this._data.words[(r+64>>>9<<4)+14]=Math.floor(n/4294967296),this._data.words[(r+64>>>9<<4)+15]=n,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}_doProcessBlock(t,n){const r=this._hash.words;let s=r[0],i=r[1],o=r[2],a=r[3],l=r[4],u=r[5],c=r[6],f=r[7];for(let h=0;h<64;h++){if(h<16)Kn[h]=t[n+h]|0;else{const y=Kn[h-15],w=(y<<25|y>>>7)^(y<<14|y>>>18)^y>>>3,_=Kn[h-2],k=(_<<15|_>>>17)^(_<<13|_>>>19)^_>>>10;Kn[h]=w+Kn[h-7]+k+Kn[h-16]}const d=l&u^~l&c,m=s&i^s&o^i&o,p=(s<<30|s>>>2)^(s<<19|s>>>13)^(s<<10|s>>>22),v=(l<<26|l>>>6)^(l<<21|l>>>11)^(l<<7|l>>>25),b=f+v+d+qE[h]+Kn[h],g=p+m;f=c,c=u,u=l,l=a+b|0,a=o,o=i,i=s,s=b+g|0}r[0]=r[0]+s|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+l|0,r[5]=r[5]+u|0,r[6]=r[6]+c|0,r[7]=r[7]+f|0}_append(t){typeof t=="string"&&(t=yi.fromUtf8(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes}_process(t){let n,r=this._data.sigBytes/64;t?r=Math.ceil(r):r=Math.max((r|0)-this._minBufferSize,0);const s=r*16,i=Math.min(s*4,this._data.sigBytes);if(s){for(let o=0;o<s;o+=16)this._doProcessBlock(this._data.words,o);n=this._data.words.splice(0,s),this._data.sigBytes-=i}return new yi(n,i)}}let yi=class Jp{words;sigBytes;constructor(t,n){t=this.words=t||[],this.sigBytes=n===void 0?t.length*4:n}static fromUtf8(t){const n=unescape(encodeURIComponent(t)),r=n.length,s=[];for(let i=0;i<r;i++)s[i>>>2]|=(n.charCodeAt(i)&255)<<24-i%4*8;return new Jp(s,r)}toBase64(){const t=[];for(let n=0;n<this.sigBytes;n+=3){const r=this.words[n>>>2]>>>24-n%4*8&255,s=this.words[n+1>>>2]>>>24-(n+1)%4*8&255,i=this.words[n+2>>>2]>>>24-(n+2)%4*8&255,o=r<<16|s<<8|i;for(let a=0;a<4&&n*8+a*6<this.sigBytes*8;a++)t.push(WE.charAt(o>>>6*(3-a)&63))}return t.join("")}concat(t){if(this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4),this.sigBytes%4)for(let n=0;n<t.sigBytes;n++){const r=t.words[n>>>2]>>>24-n%4*8&255;this.words[this.sigBytes+n>>>2]|=r<<24-(this.sigBytes+n)%4*8}else for(let n=0;n<t.sigBytes;n+=4)this.words[this.sigBytes+n>>>2]=t.words[n>>>2];this.sigBytes+=t.sigBytes}};function KE(e){return new zE().finalize(e).toBase64()}function Yn(e){return KE(wl(e))}const GE=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,pc=/_key\s*==\s*['"](.*)['"]/,QE=/^\d*:\d*$/;function mc(e){return typeof e=="number"||typeof e=="string"&&/^\[\d+\]$/.test(e)}function Lo(e){return typeof e=="string"?pc.test(e.trim()):typeof e=="object"&&"_key"in e}function Yp(e){if(typeof e=="string"&&QE.test(e))return!0;
652if(!Array.isArray(e)||e.length!==2)return!1;const[t,n]=e;return(typeof t=="number"||t==="")&&(typeof n=="number"||n==="")}function JE(e,t,n){const r=typeof t=="string"?gc(t):t;if(!Array.isArray(r))throw new Error("Path must be an array or a string");let s=e;for(let i=0;i<r.length;i++){const o=r[i];if(mc(o)){if(!Array.isArray(s))return n;s=s[o]}if(Lo(o)){if(!Array.isArray(s))return n;s=s.find(a=>a._key===o._key)}if(typeof o=="string"&&(s=typeof s=="object"&&s!==null?s[o]:void 0),typeof s>"u")return n}return s}function YE(e){if(!Array.isArray(e))throw new Error("Path is not an array");return e.reduce((t,n,r)=>{const s=typeof n;if(s==="number")return`${t}[${n}]`;if(s==="string")return`${t}${r===0?"":"."}${n}`;if(Lo(n)&&n._key)return`${t}[_key=="${n._key}"]`;if(Array.isArray(n)){const[i,o]=n;return`${t}[${i}:${o}]`}throw new Error(`Unsupported path segment \`${JSON.stringify(n)}\``)},"")}function gc(e){if(typeof e!="string")throw new Error("Path is not a string");const t=e.match(GE);if(!t)throw new Error("Invalid path string");return t.map(XE)}function XE(e){return mc(e)?ZE(e):Lo(e)?eT(e):Yp(e)?tT(e):e}function ZE(e){return Number(e.replace(/[^\d]/g,""))}function eT(e){return{_key:e.match(pc)[1]}}function tT(e){const[t,n]=e.split(":").map(r=>r===""?r:Number(r));return[t,n]}var yc=Object.freeze({__proto__:null,fromString:gc,get:JE,isIndexSegment:mc,isIndexTuple:Yp,isKeySegment:Lo,reKeySegment:pc,toString:YE});const nT="drafts",rT="versions",Br=".",eo=`${nT}${Br}`,Xp=`${rT}${Br}`;function No(e){return e.startsWith(eo)}function Do(e){return e.startsWith(Xp)}function Zp(e){if(Do(e)){const t=Xs(e);return eo+t}return No(e)?e:eo+e}function Ys(e,t){if(t==="drafts"||t==="published")throw new Error('Version can not be "published" or "drafts"');return`${Xp}${t}${Br}${Xs(e)}`}function em(e){if(!Do(e))return;const[t,n]=e.split(Br);return n}function Xs(e){return Do(e)?e.split(Br).slice(2).join(Br):No(e)?e.slice(eo.length):e}const to={"\f":"\\f","\n":"\\n","\r":"\\r","	":"\\t","'":"\\'","\\":"\\\\"},lf={"\\f":"\f","\\n":`
653`,"\\r":"\r","\\t":"	","\\'":"'","\\\\":"\\"};function sT(e){return`$${e.map(t=>typeof t=="string"?`['${t.replace(/[\f\n\r\t'\\]/g,n=>to[n])}']`:typeof t=="number"?`[${t}]`:t._key!==""?`[?(@._key=='${t._key.replace(/['\\]/g,n=>to[n])}')]`:`[${t._index}]`).join("")}`}function iT(e){return e.map(t=>typeof t=="string"?`['${t.replace(/[\f\n\r\t'\\]/g,n=>to[n])}']`:typeof t=="number"?`[${t}]`:t._key!==""?`[?(@._key=='${t._key.replace(/['\\]/g,n=>to[n])}')]`:`[${t._index}]`)}function oT(e){const t=[],n=/\['(.*?)'\]|\[(\d+)\]|\[\?\(@\._key=='(.*?)'\)\]/g;let r;for(;(r=n.exec(e))!==null;){if(r[1]!==void 0){const s=r[1].replace(/\\(\\|f|n|r|t|')/g,i=>lf[i]);t.push(s);continue}if(r[2]!==void 0){t.push(parseInt(r[2],10));continue}if(r[3]!==void 0){const s=r[3].replace(/\\(\\')/g,i=>lf[i]);t.push({_key:s,_index:-1});continue}}return t}function aT(e){return e.map(t=>{if(typeof t=="string"||typeof t=="number")return t;if(t._key!=="")return{_key:t._key};if(t._index!==-1)return t._index;throw new Error(`invalid segment:${JSON.stringify(t)}`)})}function lT(e){return(typeof e=="string"?gc(e):e).map(t=>{if(typeof t=="string"||typeof t=="number")return t;if(Array.isArray(t))throw new Error(`IndexTuple segments aren't supported:${JSON.stringify(t)}`);if(cT(t))return t;if(t._key)return{_key:t._key,_index:-1};throw new Error(`invalid segment:${JSON.stringify(t)}`)})}function cT(e){return typeof e=="object"&&"_key"in e&&"_index"in e}function cf(e){return e.map(t=>{if(typeof t=="string"||typeof t=="number")return t;if(t._index!==-1)return t._index;throw new Error(`invalid segment:${JSON.stringify(t)}`)})}function uT(e,t){if(!t?.mappings)return;const n=sT(cf(e));if(t.mappings[n]!==void 0)return{mapping:t.mappings[n],matchedPath:n,pathSuffix:""};const r=iT(cf(e));for(let s=r.length-1;s>=0;s--){const i=`$${r.slice(0,s).join("")}`,o=t.mappings[i];if(o){const a=n.substring(i.length);return{mapping:o,matchedPath:i,pathSuffix:a}}}}function fT(e){const{resultSourceMap:t,resultPath:n}=e,{mapping:r,pathSuffix:s}=uT(n,t)||{};if(!r||r.source.type==="literal"||r.source.type==="unknown")return;const i=t.documents[r.source.document],o=t.paths[r.source.path];if(i&&o){const{baseUrl:a,workspace:l,tool:u}=dT(typeof e.studioUrl=="function"?e.studioUrl(i):e.studioUrl);if(!a)return;
653const{_id:c,_type:f,_projectId:h,_dataset:d}=i;return{baseUrl:a,workspace:l,tool:u,id:c,type:f,path:oT(o+s),projectId:h,dataset:d}}}function dT(e){let t=typeof e=="string"?e:e.baseUrl;return t!=="/"&&(t=t.replace(/\/$/,"")),typeof e=="string"?{baseUrl:t}:{...e,baseUrl:t}}let ga;function hT(e){return{lang:e?.lang??ga?.lang,message:e?.message,abortEarly:e?.abortEarly??ga?.abortEarly,abortPipeEarly:e?.abortPipeEarly??ga?.abortPipeEarly}}let pT;function mT(e){return pT?.get(e)}let gT;function yT(e){return gT?.get(e)}let bT;function vT(e,t){return bT?.get(e)?.get(t)}function wT(e){const t=typeof e;return t==="string"?`"${e}"`:t==="number"||t==="bigint"||t==="boolean"?`${e}`:t==="object"||t==="function"?(e&&Object.getPrototypeOf(e)?.constructor?.name)??"null":t}function no(e,t,n,r,s){const i=s&&"input"in s?s.input:n.value,o=s?.expected??e.expects??null,a=s?.received??wT(i),l={kind:e.kind,type:e.type,input:i,expected:o,received:a,message:`Invalid ${t}: ${o?`Expected ${o} but r`:"R"}eceived ${a}`,requirement:e.requirement,path:s?.path,issues:s?.issues,lang:r.lang,abortEarly:r.abortEarly,abortPipeEarly:r.abortPipeEarly},u=e.kind==="schema",c=s?.message??e.message??vT(e.reference,l.lang)??(u?yT(l.lang):null)??r.message??mT(l.lang);c!==void 0&&(l.message=typeof c=="function"?c(l):c),u&&(n.typed=!1),n.issues?n.issues.push(l):n.issues=[l]}function Zs(e){return{version:1,vendor:"valibot",validate(t){return e["~run"]({value:t},hT())}}}function tm(e,t){return{kind:"validation",type:"min_length",reference:tm,async:!1,expects:`>=${e}`,requirement:e,message:t,"~run"(n,r){return n.typed&&n.value.length<this.requirement&&no(this,"length",n,r,{received:`${n.value.length}`}),n}}}function nm(e,t,n){return typeof e.fallback=="function"?e.fallback(t,n):e.fallback}function _T(e,t){return{...e,fallback:t,get"~standard"(){return Zs(this)},"~run"(n,r){const s=e["~run"](n,r);return s.issues?{typed:!0,value:nm(this,s,r)}:s}}}function rm(e,t,n){return typeof e.default=="function"?e.default(t,n):e.default}function ET(e,t){return!e["~run"]({value:t},{abortEarly:!0}).issues}function sm(e,t){return{kind:"schema",type:"object",reference:sm,expects:"Object",async:!1,entries:e,message:t,get"~standard"(){return Zs(this)},"~run"(n,r){const s=n.value;if(s&&typeof s=="object"){n.typed=!0,n.value={};for(const i in this.entries){const o=this.entries[i];if(i in s||(o.type==="exact_optional"||o.type==="optional"||o.type==="nullish")&&o.default!==void 0){const a=i in s?s[i]:rm(o),l=o["~run"]({value:a},r);if(l.issues){const u={type:"object",origin:"value",input:s,key:i,value:a};for(const c of l.issues)c.path?c.path.unshift(u):c.path=[u],n.issues?.push(c);if(n.issues||(n.issues=l.issues),r.abortEarly){n.typed=!1;break}}l.typed||(n.typed=!1),n.value[i]=l.value}else if(o.fallback!==void 0)n.value[i]=nm(o);else if(o.type!=="exact_optional"&&o.type!=="optional"&&o.type!=="nullish"&&(no(this,"key",n,r,{input
653:void 0,expected:`"${i}"`,path:[{type:"object",origin:"key",input:s,key:i,value:s[i]}]}),r.abortEarly))break}}else no(this,"type",n,r);return n}}}function im(e,t){return{kind:"schema",type:"optional",reference:im,expects:`(${e.expects} | undefined)`,async:!1,wrapped:e,default:t,get"~standard"(){return Zs(this)},"~run"(n,r){return n.value===void 0&&(this.default!==void 0&&(n.value=rm(this,n,r)),n.value===void 0)?(n.typed=!0,n):this.wrapped["~run"](n,r)}}}function bc(e){return{kind:"schema",type:"string",reference:bc,expects:"string",async:!1,message:e,get"~standard"(){return Zs(this)},"~run"(t,n){return typeof t.value=="string"?t.typed=!0:no(this,"type",t,n),t}}}function TT(...e){return{...e[0],pipe:e,get"~standard"(){return Zs(this)},"~run"(t,n){for(const r of e)if(r.kind!=="metadata"){if(t.issues&&(r.kind==="schema"||r.kind==="transformation")){t.typed=!1;break}(!t.issues||!n.abortEarly&&!n.abortPipeEarly)&&(t=r["~run"](t,n))}return t}}}const Oi=TT(bc(),tm(1)),fs=im(Oi),ST=sm({baseUrl:Oi,dataset:fs,id:Oi,path:Oi,projectId:fs,tool:fs,type:fs,workspace:fs,perspective:_T(bc(),"drafts")});function CT(e){return ET(ST,e)}function AT(e){return e!==null&&Array.isArray(e)}function kT(e){let t="";for(const n of e){if(typeof n=="string"){t&&(t+="."),t+=n;continue}if(typeof n=="number"){t&&(t+=":"),t+=`${n}`;continue}if(AT(n)){t&&(t+=":"),t+=`${n.join(",")}}`;continue}if(n._key){t&&(t+=":"),t+=`${n._key}`;continue}}return t}function RT(e){const{id:t,path:n,baseUrl:r,tool:s,workspace:i,type:o}=e;return CT(e)?[["id",Xs(t)],["type",o],["path",kT(yc.fromString(n))],["base",encodeURIComponent(r)],["workspace",i],["tool",s]].filter(([,a])=>!!a).map(a=>a.join("=")).join(";"):void 0}const PT=(e,t,n,r)=>{if(!t||!n)return;const s=lT(r),i=fT({resultPath:s,resultSourceMap:t,studioUrl:n});if(i)return RT({baseUrl:i.baseUrl,workspace:i.workspace,tool:i.tool,type:i.type,id:i.id,path:typeof i.path=="string"?i.path:yc.toString(aT(i.path))})};function om(e,t,n,r){const s=o=>o?typeof o=="string"?yc.fromString(o):o:[],i=s(r);return Object.assign(o=>PT(e,t,n,[...i,...s(o)]),{scope:o=>om(e,t,n,[...i,...s(o)])})}function xT(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!==void 0))}function OT({clientConfig:e,lastLiveEventId:t,liveContentEnabled:n,perspective:r,queryOptions:s,runtimeConfig:i,stega:o,visualEditingEnabled:a}){const l=e?.stega?.enabled&&typeof e?.stega.studioUrl<"u"&&a||void 0,u=o??l,f=r!=="published"&&r!=="raw"?i?.liveContent?.serverToken??(a?i?.visualEditing?.token:void 0):void 0,h=s?.token??f,d=s?.useCdn??(n?r==="published":void 0),m=s?.cacheMode??(n&&d?"noStale":void 0),p=s?.resultSourceMap??(a?"withKeyArraySelector":void 0);return{...s,...xT({filterResponse:!1,returnQuery:!0,resultSourceMap:p,cacheMode:m,lastLiveEventId:t,perspective:r,stega:u,token:h,useCdn:d})}}const Fo=()=>Oo({},dr().public.sanity),IT=e=>{if(!e)return;const t=new Map;return{notify(n,r){t.forEach(s=>{const i=()=>{s.lastLiveEventId=r};s.callback(n,i)})},subscribe(n,r){return t.set(n,{lastLiveEventId:void 0,callback:r}),{getLastLiveEventId:()=>t.get(n)?.lastLiveEventId,unsubscribe:()=>{t.delete(n)}}}}};var ya={},uf,ff;function $T(){return ff||(ff=1,uf={kValues:Symbol("values"),kStorage:Symbol("kStorage"),kStorages:Symbol("kStorages"),kTransfromer:Symbol("kTransformer"),kTTL:Symbol("kTTL"),kOnDedupe:Symbol("kOnDedupe"),kOnError:Symbol("kOnError"),kOnHit:Symbol("kOnHit"),kOnMiss:Symbol("kOnMiss"),kStale:Symbol("kStale")}),uf}var ba={exports:{}},df;function am(){return df||(df=1,(function(e,t){const{hasOwnProperty:n}=Object.prototype,r=b();r.configure=b,r.stringify=r,r.default=r,t.stringify=r,t.configure=b,e.exports=r;const s=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function i(g){return g.length<5e3&&!s.test(g)?`"${g}"`:JSON.stringify(g)}function o(g,y){if(g.length>200||y)return g.sort(y);for(let w=1;w<g.length;w++){const _=g[w];let k=w;for(;k!==0&&g[k-1]>_;)g[k]=g[k-1],k--;g[k]=_}return g}const a=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function l(g){return a.call(g)!==void 0&&g.length!==0}function u(g,y,w){g.length<w&&(w=g.length);const _=y===","?"":" ";let k=`"0":${_}${g[0]}`;for(let $=1;$<w;$++)k+=`${y}"${$}":${_}${g[$]}`;return k}function c(g){if(n.call(g,"circularValue")){const y=g.circularValue;if(typeof y=="string")return`"${y}"`;if(y==null)return y;if(y===Error||y===TypeError)return{toString(){throw new TypeError("Converting circular structure to JSON")}};
653throw new TypeError('The "circularValue" argument must be of type string or the value null or undefined')}return'"[Circular]"'}function f(g){let y;if(n.call(g,"deterministic")&&(y=g.deterministic,typeof y!="boolean"&&typeof y!="function"))throw new TypeError('The "deterministic" argument must be of type boolean or comparator function');return y===void 0?!0:y}function h(g,y){let w;if(n.call(g,y)&&(w=g[y],typeof w!="boolean"))throw new TypeError(`The "${y}" argument must be of type boolean`);return w===void 0?!0:w}function d(g,y){let w;if(n.call(g,y)){if(w=g[y],typeof w!="number")throw new TypeError(`The "${y}" argument must be of type number`);if(!Number.isInteger(w))throw new TypeError(`The "${y}" argument must be an integer`);if(w<1)throw new RangeError(`The "${y}" argument must be >= 1`)}return w===void 0?1/0:w}function m(g){return g===1?"1 item":`${g} items`}function p(g){const y=new Set;for(const w of g)(typeof w=="string"||typeof w=="number")&&y.add(String(w));return y}function v(g){if(n.call(g,"strict")){const y=g.strict;if(typeof y!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(y)return w=>{let _=`Object can not safely be stringified. Received type ${typeof w}`;throw typeof w!="function"&&(_+=` (${w.toString()})`),new Error(_)}}}function b(g){g={...g};const y=v(g);y&&(g.bigint===void 0&&(g.bigint=!1),"circularValue"in g||(g.circularValue=Error));const w=c(g),_=h(g,"bigint"),k=f(g),$=typeof k=="function"?k:void 0,O=d(g,"maximumDepth"),x=d(g,"maximumBreadth");function D(R,C,I,N,W,ie){let Z=C[R];switch(typeof Z=="object"&&Z!==null&&typeof Z.toJSON=="function"&&(Z=Z.toJSON(R)),Z=N.call(C,R,Z),typeof Z){case"string":return i(Z);case"object":{if(Z===null)return"null";if(I.indexOf(Z)!==-1)return w;let te="",be=",";const ge=ie;if(Array.isArray(Z)){if(Z.length===0)return"[]";if(O<I.length+1)return'"[Array]"';I.push(Z),W!==""&&(ie+=W,te+=`
654${ie}`,be=`,
655${ie}`);const J=Math.min(Z.length,x);let le=0;for(;le<J-1;le++){const E=D(String(le),Z,I,N,W,ie);te+=E!==void 0?E:"null",te+=be}const ye=D(String(le),Z,I,N,W,ie);if(te+=ye!==void 0?ye:"null",Z.length-1>x){const E=Z.length-x-1;te+=`${be}"... ${m(E)} not stringified"`}return W!==""&&(te+=`
656${ge}`),I.pop(),`[${te}]`}let de=Object.keys(Z);const pe=de.length;if(pe===0)return"{}";if(O<I.length+1)return'"[Object]"';let M="",z="";W!==""&&(ie+=W,be=`,
657${ie}`,M=" ");const B=Math.min(pe,x);k&&!l(Z)&&(de=o(de,$)),I.push(Z);for(let J=0;J<B;J++){const le=de[J],ye=D(le,Z,I,N,W,ie);ye!==void 0&&(te+=`${z}${i(le)}:${M}${ye}`,z=be)}if(pe>x){const J=pe-x;te+=`${z}"...":${M}"${m(J)} not stringified"`,z=be}return W!==""&&z.length>1&&(te=`
658${ie}${te}
659${ge}`),I.pop(),`{${te}}`}case"number":return isFinite(Z)?String(Z):y?y(Z):"null";case"boolean":return Z===!0?"true":"false";case"undefined":return;case"bigint":if(_)return String(Z);default:return y?y(Z):void 0}}function q(R,C,I,N,W,ie){switch(typeof C=="object"&&C!==null&&typeof C.toJSON=="function"&&(C=C.toJSON(R)),typeof C){case"string":return i(C);case"object":{if(C===null)return"null";if(I.indexOf(C)!==-1)return w;const Z=ie;let te="",be=",";if(Array.isArray(C)){if(C.length===0)return"[]";if(O<I.length+1)return'"[Array]"';I.push(C),W!==""&&(ie+=W,te+=`
660${ie}`,be=`,
661${ie}`);const pe=Math.min(C.length,x);let M=0;for(;M<pe-1;M++){const B=q(String(M),C[M],I,N,W,ie);te+=B!==void 0?B:"null",te+=be}const z=q(String(M),C[M],I,N,W,ie);if(te+=z!==void 0?z:"null",C.length-1>x){const B=C.length-x-1;te+=`${be}"... ${m(B)} not stringified"`}return W!==""&&(te+=`
662${Z}`),I.pop(),`[${te}]`}I.push(C);let ge="";W!==""&&(ie+=W,be=`,
663${ie}`,ge=" ");let de="";for(const pe of N){const M=q(pe,C[pe],I,N,W,ie);M!==void 0&&(te+=`${de}${i(pe)}:${ge}${M}`,de=be)}return W!==""&&de.length>1&&(te=`
664${ie}${te}
665${Z}`),I.pop(),`{${te}}`}case"number":return isFinite(C)?String(C):y?y(C):"null";case"boolean":return C===!0?"true":"false";case"undefined":return;case"bigint":if(_)return String(C);default:return y?y(C):void 0}}function S(R,C,I,N,W){switch(typeof C){case"string":return i(C);case"object":{if(C===null)return"null";if(typeof C.toJSON=="function"){if(C=C.toJSON(R),typeof C!="object")return S(R,C,I,N,W);if(C===null)return"null"}if(I.indexOf(C)!==-1)return w;const ie=W;if(Array.isArray(C)){if(C.length===0)return"[]";if(O<I.length+1)return'"[Array]"';I.push(C),W+=N;let M=`
666${W}`;const z=`,
667${W}`,B=Math.min(C.length,x);let J=0;for(;J<B-1;J++){const ye=S(String(J),C[J],I,N,W);M+=ye!==void 0?ye:"null",M+=z}const le=S(String(J),C[J],I,N,W);if(M+=le!==void 0?le:"null",C.length-1>x){const ye=C.length-x-1;M+=`${z}"... ${m(ye)} not stringified"`}return M+=`
668${ie}`,I.pop(),`[${M}]`}let Z=Object.keys(C);const te=Z.length;if(te===0)return"{}";if(O<I.length+1)return'"[Object]"';W+=N;const be=`,
669${W}`;let ge="",de="",pe=Math.min(te,x);l(C)&&(ge+=u(C,be,x),Z=Z.slice(C.length),pe-=C.length,de=be),k&&(Z=o(Z,$)),I.push(C);for(let M=0;M<pe;M++){const z=Z[M],B=S(z,C[z],I,N,W);B!==void 0&&(ge+=`${de}${i(z)}: ${B}`,de=be)}if(te>x){const M=te-x;ge+=`${de}"...": "${m(M)}
669 not stringified"`,de=be}return de!==""&&(ge=`
670${W}${ge}
671${ie}`),I.pop(),`{${ge}}`}case"number":return isFinite(C)?String(C):y?y(C):"null";case"boolean":return C===!0?"true":"false";case"undefined":return;case"bigint":if(_)return String(C);default:return y?y(C):void 0}}function P(R,C,I){switch(typeof C){case"string":return i(C);case"object":{if(C===null)return"null";if(typeof C.toJSON=="function"){if(C=C.toJSON(R),typeof C!="object")return P(R,C,I);if(C===null)return"null"}if(I.indexOf(C)!==-1)return w;let N="";const W=C.length!==void 0;if(W&&Array.isArray(C)){if(C.length===0)return"[]";if(O<I.length+1)return'"[Array]"';I.push(C);const ge=Math.min(C.length,x);let de=0;for(;de<ge-1;de++){const M=P(String(de),C[de],I);N+=M!==void 0?M:"null",N+=","}const pe=P(String(de),C[de],I);if(N+=pe!==void 0?pe:"null",C.length-1>x){const M=C.length-x-1;N+=`,"... ${m(M)} not stringified"`}return I.pop(),`[${N}]`}let ie=Object.keys(C);const Z=ie.length;if(Z===0)return"{}";if(O<I.length+1)return'"[Object]"';let te="",be=Math.min(Z,x);W&&l(C)&&(N+=u(C,",",x),ie=ie.slice(C.length),be-=C.length,te=","),k&&(ie=o(ie,$)),I.push(C);for(let ge=0;ge<be;ge++){const de=ie[ge],pe=P(de,C[de],I);pe!==void 0&&(N+=`${te}${i(de)}:${pe}`,te=",")}if(Z>x){const ge=Z-x;N+=`${te}"...":"${m(ge)} not stringified"`}return I.pop(),`{${N}}`}case"number":return isFinite(C)?String(C):y?y(C):"null";case"boolean":return C===!0?"true":"false";case"undefined":return;case"bigint":if(_)return String(C);default:return y?y(C):void 0}}function j(R,C,I){if(arguments.length>1){let N="";if(typeof I=="number"?N=" ".repeat(Math.min(I,10)):typeof I=="string"&&(N=I.slice(0,10)),C!=null){if(typeof C=="function")return D("",{"":R},[],C,N,"");if(Array.isArray(C))return q("",R,[],p(C),N,"")}if(N.length!==0)return S("",R,[],N,"")}return P("",R,[])}return j}})(ba,ba.exports)),ba.exports}var va,hf;function ro(){if(hf)return va;hf=1;function e(l,u){const c=[];let f=0;for(let h=0;h<l.length;h++)for(let d=f;d<u.length;d++)l[h]===u[d]&&(c.push(d),f=d+1);return c}function t(l,u){const c=[];let f=0;for(let h=0;h<l.length;h++)for(let d=f;d<u.length;d++)l[h]!==u[d]&&(c.push(u[d]),f=d+1);return c}function n(l,u){let c=0,f=l.length-1;for(;c<=f;){const h=(c+f)/2|0;if(l[h]===u)return h;l[h]<u?c=h+1:f=h-1}return-1}function r(l){return l*Math.random()|0}function s(l,u){return l=Math.floor(l),u=Math.floor(u),l+r(1+u-l)}function i(l,u){if(l.length<1||u<1)return[];const c=Math.min(l.length,u),f=s(1,c),h=new Set;for(let m=0;m<f;m++)h.add(r(l.length));const d=[];for(const m of h)d.push(l[m]);return d}function o(l,u){if(l==="*"||l.length===u.length&&l===u)return!0;let c=0,f=0;for(;c<l.length&&f<u.length;){if(l[c]===u[f]){c++,f++;continue}if(l[c]==="*"){if(l[c+1]===u[f]){c++;continue}f++;continue}return!1}return c>=l.length-1}function a(){const l=()=>{};return{fatal:l,error:l,warn:l,info:l,debug:l,trace:l}}return va={findNotMatching:t,findMatchingIndexes:e,bsearchIndex:n,wildcardMatch:o,randomSubset:i,abstractLogging:a,isServerSide:typeof window>"u"},va}var wa,pf;function lm(){if(pf)return wa;pf=1;class e{constructor(n){this.options=n}async get(n){throw new Error("storage get method not implemented")}async set(n,r,s,i){throw new Error("storage set method not implemented")}async remove(n){throw new Error("storage remove method not implemented")}async invalidate(n){throw new Error("storage invalidate method not implemented")}async clear(n){throw new Error("storage clear method not implemented")}async refresh(){throw new Error("storage refresh method not implemented")}}return wa=e,wa}var _a,mf;function MT(){if(mf)return _a;mf=1;const e=am(),t=lm(),{findNotMatching:n,randomSubset:r,abstractLogging:s}=ro(),i=64,o=64,a=60;class l extends t{constructor(c={}){if(!c.client||typeof c.client!="object")throw new Error("Redis client is required");if(super(c),c.invalidation&&c.invalidation.referencesTTL&&(typeof c.invalidation.referencesTTL!="number"||c.invalidation.referencesTTL<1))throw new Error("invalidation.referencesTTL must be a positive integer greater than 1");this.log=c.log||s(),this.store=c.client,this.invalidation=!!c.invalidation,this.referencesTTL=c.invalidation&&c.invalidation.referencesTTL||a}getReferenceKeyLabel(c){return`r:${c}`}
671getKeyReferenceLabel(c){return`k:${c}`}async get(c){this.log.debug({msg:"acd/storage/redis.get",key:c});try{const f=await this.store.get(c);if(!f){if(!this.invalidation)return;this.clearReferences(c);return}return JSON.parse(f)}catch(f){this.log.error({msg:"acd/storage/redis.get error",err:f,key:c})}}async getTTL(c){this.log.debug({msg:"acd/storage/memory.getTTL",key:c});let f=await this.store.pttl(c);return f<0?0:(f=Math.ceil(f/1e3),f)}async set(c,f,h,d){if(this.log.debug({msg:"acd/storage/redis.set key",key:c,value:f,ttl:h,references:d}),h=Number(h),!(!h||h<0))try{if(await this.store.set(c,e(f),"EX",h),!d||d.length<1)return;if(!this.invalidation){this.log.warn({msg:"acd/storage/redis.set, invalidation is disabled, references are useless",key:c,references:d});return}const m=[],p=await this.store.smembers(this.getKeyReferenceLabel(c));if(this.log.debug({msg:"acd/storage/redis.set current references",key:c,currentReferences:p}),p.length>1){p.sort(),d.sort();const g=n(d,p);for(const y of g)m.push(["srem",this.getReferenceKeyLabel(y),c]);m.push(["del",this.getKeyReferenceLabel(c)])}const v=p.length>1?n(p,d):d;this.log.debug({msg:"acd/storage/redis.set references to add",key:c,referencesToAdd:v});for(let g=0;g<v.length;g++){const y=v[g],w=this.getReferenceKeyLabel(y);m.push(["sadd",w,c]),m.push(["expire",w,this.referencesTTL])}const b=this.getKeyReferenceLabel(c);m.push(["sadd",b,d]),m.push(["expire",b,h]),this.log.debug({msg:"acd/storage/redis.set references writes",writes:m}),await this.store.pipeline(m).exec()}catch(m){this.log.error({msg:"acd/storage/redis.set error",err:m,key:c,ttl:h,references:d})}}async remove(c){this.log.debug({msg:"acd/storage/redis.remove",key:c});try{const f=await this.store.del(c)>0;return f&&this.invalidation&&await this.clearReferences(c),f}catch(f){this.log.error({msg:"acd/storage/redis.remove error",err:f,key:c})}}async invalidate(c){if(!this.invalidation)return this.log.warn({msg:"acd/storage/redis.invalidate, exit due invalidation is disabled"}),[];this.log.debug({msg:"acd/storage/redis.invalidate",references:c});try{return Array.isArray(c)?await this._invalidateReferences(c):await this._invalidateReference(c)}catch(f){return this.log.error({msg:"acd/storage/redis.invalidate error",err:f,references:c}),[]}}async _invalidateReferences(c,f=!0){const h=c.map(v=>["smembers",f?this.getReferenceKeyLabel(v):v]),d=await this.store.pipeline(h).exec();this.log.debug({msg:"acd/storage/redis._invalidateReferences keys",keys:d});const m=[],p=[];for(let v=0;v<d.length;v++){const b=d[v][1];if(b){this.log.debug({msg:"acd/storage/redis._invalidateReferences got keys to be invalidated",keys:b});for(let g=0;g<b.length;g++){const y=b[g];this.log.debug({msg:"acd/storage/redis._invalidateReferences del key"+y}),p.push(y),m.push(["del",y])}}}return await this.store.pipeline(m).exec(),await this.clearReferences(p),p}async _invalidateReference(c){let f;if(c.includes("*")){const m=await this.store.keys(this.getReferenceKeyLabel(c));return this._invalidateReferences(m,!1)}else f=await this.store.smembers(this.getReferenceKeyLabel(c));this.log.debug({msg:"acd/storage/redis._invalidateReference keys",keys:f});const h=[],d=[];for(let m=0;m<f.length;m++){const p=f[m];this.log.debug({msg:"acd/storage/redis._invalidateReference del key"+p}),d.push(p),h.push(["del",p])}return await this.store.pipeline(h).exec(),await this.clearReferences(d),d}async clear(c){this.log.debug({msg:"acd/storage/redis.clear",name:c});try{if(!c){await this.store.flushall();return}const f=await this.store.keys(`${c}*`);this.log.debug({msg:"acd/storage/redis.clear keys",keys:f});const h=f.map(d=>["del",d]);if(await this.store.pipeline(h).exec(),!this.invalidation)return;await this.clearReferences(f)}catch(f){this.log.error({msg:"acd/storage/redis.clear error",err:f,name:c}
671)}}async refresh(){try{await this.store.flushall()}catch(c){this.log.error({msg:"acd/storage/redis.refresh error",err:c})}}async clearReferences(c){try{if(!c){this.log.warn({msg:"acd/storage/redis.clearReferences invalid call due to empty key"});return}Array.isArray(c)||(c=[c]);const f=c.map(m=>["smembers",this.getKeyReferenceLabel(m)]),h=await this.store.pipeline(f).exec();this.log.debug({msg:"acd/storage/redis.clearReferences references",keys:c,referencesKeys:h});const d={};for(let m=0;m<c.length;m++){for(let v=0;v<h[m][1].length;v++){const b=this.getReferenceKeyLabel(h[m][1][v]);d[b]||(d[b]=["srem",b,c])}const p=this.getKeyReferenceLabel(c[m]);d[p]=["del",p]}this.log.debug({msg:"acd/storage/redis.clearReferences writes pipeline",writes:d}),await this.store.pipeline(Object.values(d)).exec()}catch(f){this.log.error({msg:"acd/storage/redis.clearReferences error",err:f})}}async gc(c="lazy",f={}){if(this.log.debug({msg:"acd/storage/redis.gc",mode:c,options:f}),!this.invalidation){this.log.warn({msg:"acd/storage/redis.gc does not run due to invalidation is disabled"});return}c!=="strict"&&c!=="lazy"&&(c="lazy");const h={references:{scanned:[],removed:[]},keys:{scanned:new Set,removed:new Set},loops:0,cursor:0,error:null};try{let d=0,m=o;if(f.chunk&&(typeof f.chunk!="number"||f.chunk<1))return h.error=new Error("chunk must be a positive integer greater than 1"),h;if(f.lazy){if(f.lazy.chunk){if(typeof f.lazy.chunk!="number"||f.lazy.chunk<1)return h.error=new Error("lazy.chunk must be a positive integer greater than 1"),h;m=f.lazy.chunk}if(f.lazy.cursor){if(typeof f.lazy.cursor!="number"||f.lazy.cursor<0)return h.error=new Error("lazy.cursor must be a positive integer greater than 0"),h;d=f.lazy.cursor}}const p=f.chunk||i,v=Math.min(m,p),b=d;let g=-1,y=-1;do{h.loops++;const w=await this.store.scan(d,"match","r:*","count",v);d=Number(w[0]),g=w[1].length;const _=c==="lazy"?r(w[1],m):w[1];h.references.scanned=h.references.scanned.concat(_);let k=[];for(let R=0;R<_.length;R++){const C=_[R];k.push(["smembers",C])}const $=await this.store.pipeline(k).exec(),O={},x={};for(let R=0;R<$.length;R++){const C=$[R],I=_[R];x[I]=C[1];for(let N=0;N<C[1].length;N++){const W=C[1][N];O[W]?O[W].push(I):O[W]=[I],h.keys.scanned.add(W)}}const D=Object.keys(O);k=D.map(R=>["exists",R]);const q=await this.store.pipeline(k).exec(),S={};for(let R=0;R<D.length;R++){const C=D[R];if(q[R][1]!==1)for(let I=0;I<O[C].length;I++){const N=O[C][I];S[N]?S[N].push(C):S[N]=[C],h.keys.removed.add(C)}}const P=Object.keys(S),j=[];for(let R=0;R<P.length;R++){const C=P[R];x[C].length===S[C].length?(j.push(["del",C]),h.references.removed.push(C)):j.push(["srem",C,S[C]])}if(await this.store.pipeline(j).exec(),y=j.length,c==="lazy"&&h.references.scanned.length>=m)break}while(b!==d&&g>0&&y>0);h.cursor=d,h.keys.scanned=Array.from(h.keys.scanned),h.keys.removed=Array.from(h.keys.removed)}catch(d){this.log.error({msg:"acd/storage/redis.gc error",err:d}),h.error=d}return h}}return _a=l,_a}var Ea,gf;function jT(){if(gf)return Ea;gf=1;function e(t){if(typeof t!="function")throw new Error("obliterator/iterator: expecting a function!");this.next=t}return typeof Symbol<"u"&&(e.prototype[Symbol.iterator]=function(){return this}),e.of=function(){var t=arguments,n=t.length,r=0;return new e(function(){return r>=n?{done:!0}:{done:!1,value:t[r++]}})},e.empty=function(){var t=new e(function(){return{done:!0}});return t},e.fromSequence=function(t){var n=0,r=t.length;return new e(function(){return n>=r?{done:!0}:{done:!1,value:t[n++]}})},e.is=function(t){return t instanceof e?!0:typeof t=="object"&&t!==null&&typeof t.next=="function"},Ea=e,Ea}var Ta={},yf;function LT(){return yf||(yf=1,Ta.ARRAY_BUFFER_SUPPORT=typeof ArrayBuffer<"u",Ta.SYMBOL_SUPPORT=typeof Symbol<"u"),Ta}var Sa,bf;function cm(){if(bf)return Sa;bf=1;var e=LT(),t=e.ARRAY_BUFFER_SUPPORT,n=e.SYMBOL_SUPPORT;return Sa=function(r,s){var i,o,a,l,u;if(!r)throw new Error("obliterator/forEach: invalid iterable.");if(typeof s!="function")throw new Error("obliterator/forEach: expecting a callback.");if(Array.isArray(r)||t&&ArrayBuffer.isView(r)||typeof r=="string"||r.toString()==="[object Arguments]"){for(a=0,l=r.length;a<l;a++)s(r[a],a);return}if(typeof r.forEach=="function"){r.forEach(s);return}if(n&&Symbol.iterator in r&&typeof r.next!="function"&&(r=r[Symbol.iterator]()),typeof r.next=="function"){for(i=r,a=0;u=i.next(),u.done!==!0;)s(u.value,a),a++;return}for(o in r)r.hasOwnProperty(o)&&s(r[o],o)},Sa}var vf={},wf;function um(){return wf||(wf=1,(function(e){var t=Math.pow(2,8)-1,n=Math.pow(2,16)-1,r=Math.pow(2,32)-1,s=Math.pow(2,7)-1,i=Math.pow(2,15)-1,o=Math.pow(2,31)-1;e.getPointerArray=function(l){var u=l-1;if(u<=t)return Uint8Array;
671if(u<=n)return Uint16Array;if(u<=r)return Uint32Array;throw new Error("mnemonist: Pointer Array of size > 4294967295 is not supported.")},e.getSignedPointerArray=function(l){var u=l-1;return u<=s?Int8Array:u<=i?Int16Array:u<=o?Int32Array:Float64Array},e.getNumberType=function(l){return l===(l|0)?Math.sign(l)===-1?l<=127&&l>=-128?Int8Array:l<=32767&&l>=-32768?Int16Array:Int32Array:l<=255?Uint8Array:l<=65535?Uint16Array:Uint32Array:Float64Array};var a={Uint8Array:1,Int8Array:2,Uint16Array:3,Int16Array:4,Uint32Array:5,Int32Array:6,Float32Array:7,Float64Array:8};e.getMinimalRepresentation=function(l,u){var c=null,f=0,h,d,m,p,v;for(p=0,v=l.length;p<v;p++)m=u?u(l[p]):l[p],d=e.getNumberType(m),h=a[d.name],h>f&&(f=h,c=d);return c},e.isTypedArray=function(l){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView(l)},e.concat=function(){var l=0,u,c,f;for(u=0,f=arguments.length;u<f;u++)l+=arguments[u].length;var h=new arguments[0].constructor(l);for(u=0,c=0;u<f;u++)h.set(arguments[u],c),c+=arguments[u].length;return h},e.indices=function(l){for(var u=e.getPointerArray(l),c=new u(l),f=0;f<l;f++)c[f]=f;return c}})(vf)),vf}var br={},_f;function NT(){if(_f)return br;_f=1;var e=cm(),t=um();function n(o){return Array.isArray(o)||t.isTypedArray(o)}function r(o){if(typeof o.length=="number")return o.length;if(typeof o.size=="number")return o.size}function s(o){var a=r(o),l=typeof a=="number"?new Array(a):[],u=0;return e(o,function(c){l[u++]=c}),l}function i(o){var a=r(o),l=typeof a=="number"?t.getPointerArray(a):Array,u=typeof a=="number"?new Array(a):[],c=typeof a=="number"?new l(a):[],f=0;return e(o,function(h){u[f]=h,c[f]=f++}),[u,c]}return br.isArrayLike=n,br.guessLength=r,br.toArray=s,br.toArrayWithIndices=i,br}var Ca,Ef;function DT(){if(Ef)return Ca;Ef=1;var e=jT(),t=cm(),n=um(),r=NT();function s(i,o,a){if(arguments.length<2&&(a=i,i=null,o=null),this.capacity=a,typeof this.capacity!="number"||this.capacity<=0)throw new Error("mnemonist/lru-cache: capacity should be positive number.");if(!isFinite(this.capacity)||Math.floor(this.capacity)!==this.capacity)throw new Error("mnemonist/lru-cache: capacity should be a finite positive integer.");var l=n.getPointerArray(a);this.forward=new l(a),this.backward=new l(a),this.K=typeof i=="function"?new i(a):new Array(a),this.V=typeof o=="function"?new o(a):new Array(a),this.size=0,this.head=0,this.tail=0,this.items={}}return s.prototype.clear=function(){this.size=0,this.head=0,this.tail=0,this.items={}},s.prototype.splayOnTop=function(i){var o=this.head;if(this.head===i)return this;var a=this.backward[i],l=this.forward[i];return this.tail===i?this.tail=a:this.backward[l]=a,this.forward[a]=l,this.backward[o]=i,this.head=i,this.forward[i]=o,this},s.prototype.set=function(i,o){var a=this.items[i];if(typeof a<"u"){this.splayOnTop(a),this.V[a]=o;return}this.size<this.capacity?a=this.size++:(a=this.tail,this.tail=this.backward[a],delete this.items[this.K[a]]),this.items[i]=a,this.K[a]=i,this.V[a]=o,this.forward[a]=this.head,this.backward[this.head]=a,this.head=a},s.prototype.setpop=function(i,o){var a=null,l=null,u=this.items[i];return typeof u<"u"?(this.splayOnTop(u),a=this.V[u],this.V[u]=o,{evicted:!1,key:i,value:a}):(this.size<this.capacity?u=this.size++:(u=this.tail,this.tail=this.backward[u],a=this.V[u],l=this.K[u],delete this.items[l]),this.items[i]=u,this.K[u]=i,this.V[u]=o,this.forward[u]=this.head,this.backward[this.head]=u,this.head=u,l?{evicted:!0,key:l,value:a}:null)},s.prototype.has=function(i){return i in this.items},s.prototype.get=function(i){var o=this.items[i];if(!(typeof o>"u"))return this.splayOnTop(o),this.V[o]},s.prototype.peek=function(i){var o=this.items[i];if(!(typeof o>"u"))return this.V[o]},s.prototype.forEach=function(i,o){o=arguments.length>1?o:this;for(var a=0,l=this.size,u=this.head,c=this.K,f=this.V,h=this.forward;a<l;)i.call(o,f[u],c[u],this),u=h[u],a++},s.prototype.keys=function(){var i=0,o=this.size,a=this.head,l=this.K,u=this.forward;return new e(function(){if(i>=o)return{done:!0};var c=l[a];return i++,i<o&&(a=u[a]),{done:!1,value:c}})},s.prototype.values=function(){var i=0,o=this.size,a=this.head,l=this.V,u=this.forward;return new e(function(){if(i>=o)return{done:!0};var c=l[a];return i++,i<o&&(a=u[a]),{done:!1,value:c}})},s.prototype.entries=function(){var i=0,o=this.size,a=this.head,l=this.K,u=this.V,c=this.forward;return new e(function(){if(i>=o)return{done:!0};var f=l[a],h=u[a];return i++,i<o&&(a=c[a]),{done:!1,value:[f,h]}})},typeof Symbol<"u"&&(s.prototype[Symbol.iterator]=s.prototype.entries),s.prototype.inspect=function(){for(var i=new Map,o=this.entries(),a;a=o.next(),!a.done;)i.set(a.value[0],a.value[1]);return Object.defineProperty(i,"constructor",{value:s,enumerable:!1}),i},typeof Symbol<"u"&&(s.prototype[Symbol.for("nodejs.util.inspect.custom")]=s.prototype.inspect),s.from=function(i,o,a,l){if(arguments.length<2){if(l=r.guessLength(i),typeof l!="number")throw new Error("mnemonist/lru-cache.from: could not guess iterable length. Please provide desired capacity as last argument.")}else arguments.length===2&&(l=o,o=null,a=null);var u=new s(o,a,l);return t(i,function(c,f){u.set(f,c)}),u},Ca=s,Ca}var Aa,Tf;function FT(){if(Tf)return Aa;Tf=1;const e=DT(),{abstractLogging:t}=ro(),n=lm(),{findMatchingIndexes:r,findNotMatching:s,bsearchIndex:i,wildcardMatch:o}=ro(),a=typeof globalThis.setImmediate<"u"?globalThis.setImmediate:(d,...m)=>setTimeout(d,0,...m),l=1024;class u extends n{constructor(m={}){if(m.size&&(typeof m.size!="number"||m.size<1))throw new Error("size must be a positive integer greater than 0");super(m),this.size=m.size||l,this.log=m.log||t(),this.invalidation=m.invalidation||!1,this.init()}init(){this.store=new e(this.size),this.invalidation&&(this.keysReferences=new Map,this.referencesKeys=new Map)}get(m){this.log.debug({msg:"acd/storage/memory.get",key:m});const p=this.store.get(m);
671if(p){if(this.log.debug({msg:"acd/storage/memory.get, entry",entry:p,now:f()}),p.start+p.ttl>f())return this.log.debug({msg:"acd/storage/memory.get, key is NOT expired",key:m,entry:p}),p.value;this.log.debug({msg:"acd/storage/memory.get, key is EXPIRED",key:m,entry:p}),a(()=>this.remove(m))}}getTTL(m){this.log.debug({msg:"acd/storage/memory.getTTL",key:m});const p=this.store.peek(m);let v=0;return p&&(v=p.start+p.ttl-f(),v<0&&(v=0)),v}set(m,p,v,b){if(this.log.debug({msg:"acd/storage/memory.set",key:m,value:p,ttl:v,references:b}),v=Number(v),!v||v<0)return;const g=this.store.has(m),y=this.store.setpop(m,{value:p,ttl:v,start:f()});if(this.log.debug({msg:"acd/storage/memory.set, evicted",removed:y}),y&&y.evicted&&(this.log.debug({msg:"acd/storage/memory.set, remove evicted key",key:y.key}),this._removeReferences([y.key])),!b||b.length<1)return;if(!this.invalidation){this.log.warn({msg:"acd/storage/memory.set, invalidation is disabled, references are useless"});return}b=[...new Set(b)];let w;if(g&&(w=this.keysReferences.get(m),this.log.debug({msg:"acd/storage/memory.set, current keys-references",key:m,references:w}),w)){w.sort(),b.sort();const k=s(b,w);for(const $ of k){const O=this.referencesKeys.get($);if(!O)continue;const x=i(O,m);if(!(x<0)){if(O.splice(x,1),O.length<1){this.referencesKeys.delete($);continue}this.referencesKeys.set($,O)}}}const _=w?s(w,b):b;for(let k=0;k<_.length;k++){const $=_[k];let O=this.referencesKeys.get($);O?(this.log.debug({msg:"acd/storage/memory.set, add reference-key",key:m,reference:$}),O.push(m)):O=[m],this.log.debug({msg:"acd/storage/memory.set, set reference-keys",keys:O,reference:$}),this.referencesKeys.set($,O)}this.keysReferences.set(m,b)}remove(m){this.log.debug({msg:"acd/storage/memory.remove",key:m});const p=this._removeKey(m);return this._removeReferences([m]),p}_removeKey(m){return this.log.debug({msg:"acd/storage/memory._removeKey",key:m}),this.store.has(m)?(this.store.set(m,void 0),!0):!1}_removeReferences(m){if(!this.invalidation)return;this.log.debug({msg:"acd/storage/memory._removeReferences",keys:m});const p=new Set;for(let v=0;v<m.length;v++){const b=m[v],g=this.keysReferences.get(b);if(g){for(let y=0;y<g.length;y++)p.add(g[y]);this.log.debug({msg:"acd/storage/memory._removeReferences, delete key-references",key:b}),this.keysReferences.delete(b)}}this._removeReferencesKeys([...p],m)}_removeReferencesKeys(m,p){p.sort(),this.log.debug({msg:"acd/storage/memory._removeReferencesKeys",references:m,keys:p});for(let v=0;v<m.length;v++){const b=m[v],g=this.referencesKeys.get(b);if(this.log.debug({msg:"acd/storage/memory._removeReferencesKeys, get reference-key",reference:b,keys:p,referencesKeys:g}),!g)continue;const y=r(p,g);if(this.log.debug({msg:"acd/storage/memory._removeReferencesKeys, removing",reference:b,referencesToRemove:y,referencesKeys:g}),y.length===g.length){this.log.debug({msg:"acd/storage/memory._removeReferencesKeys, delete",reference:b}),this.referencesKeys.delete(b);continue}for(let w=y.length-1;w>=0;w--)this.log.debug({msg:"acd/storage/memory._removeReferencesKeys, remove",reference:b,referencesKeys:g,at:y[w]}),g.splice(y[w],1)}}invalidate(m){return this.invalidation?(this.log.debug({msg:"acd/storage/memory.invalidate",references:m}),Array.isArray(m)?this._invalidateReferences(m):this._invalidateReference(m)):(this.log.warn({msg:"acd/storage/memory.invalidate, exit due invalidation is disabled"}),[])}_invalidateReferences(m){const p=[];for(let v=0;v<m.length;v++){const b=m[v],g=this.referencesKeys.get(b);if(this.log.debug({msg:"acd/storage/memory._invalidateReferences, remove keys on reference",reference:b,keys:g}),!!g){for(let y=0;y<g.length;y++){const w=g[y];this.log.debug({msg:"acd/storage/memory._invalidateReferences, remove key on reference",reference:b,key:w}),this._removeKey(w)&&p.push(w)}this.log.debug({msg:"acd/storage/memory._invalidateReferences, remove references of",reference:b,keys:g}),this._removeReferences([...g])}}return p}_invalidateReference(m){if(m.includes("*")){const b=[];for(const g of this.referencesKeys.keys())o(m,g)&&b.push(g);return this._invalidateReferences(b)}const p=this.referencesKeys.get(m),v=[];
671if(this.log.debug({msg:"acd/storage/memory._invalidateReference, remove keys on reference",reference:m,keys:p}),!p)return v;for(let b=0;b<p.length;b++){const g=p[b];this.log.debug({msg:"acd/storage/memory._invalidateReference, remove key on reference",reference:m,key:g}),this._removeKey(g)&&v.push(g)}return this.log.debug({msg:"acd/storage/memory._invalidateReference, remove references of",reference:m,keys:p}),this._removeReferences([...p]),v}clear(m){if(this.log.debug({msg:"acd/storage/memory.clear",name:m}),!m){if(this.store.clear(),!this.invalidation)return;this.referencesKeys.clear(),this.keysReferences.clear();return}const p=[];this.store.forEach((b,g)=>{this.log.debug({msg:"acd/storage/memory.clear, iterate key",key:g}),g.indexOf(m)===0&&(this.log.debug({msg:"acd/storage/memory.clear, remove key",key:g}),p.push(g))});const v=[];for(let b=0;b<p.length;b++)this._removeKey(p[b])&&v.push(p[b]);return this._removeReferences(v),v}refresh(){this.log.debug({msg:"acd/storage/memory.refresh"}),this.init()}}let c;function f(){if(c!==void 0)return c;c=Math.floor(Date.now()/1e3);const d=setTimeout(h,1e3);return typeof d.unref=="function"&&d.unref(),c}function h(){c=void 0}return Aa=u,Aa}var ka,Sf;function fm(){if(Sf)return ka;Sf=1;const{isServerSide:e}=ro();let t;e&&(t=MT());
671const n=FT(),r={redis:"redis"};function s(i,o){if(!e&&i===r.redis)throw new Error("Redis storage is not supported in the browser");return i===r.redis?new t(o):new n(o)}return ka=s,ka}var Cf;function HT(){if(Cf)return ya;Cf=1;const{kValues:e,kStorage:t,kStorages:n,kTransfromer:r,kTTL:s,kOnDedupe:i,kOnError:o,kOnHit:a,kOnMiss:l,kStale:u}=$T(),c=am(),f=fm();class h{constructor(b={}){if(!b.storage)throw new Error("storage is required");if(b.ttl&&typeof b.ttl=="number"&&(b.ttl<0||!Number.isInteger(b.ttl)))throw new Error("ttl must be a positive integer greater than 0");if(b.onDedupe&&typeof b.onDedupe!="function")throw new Error("onDedupe must be a function");if(b.onError&&typeof b.onError!="function")throw new Error("onError must be a function");if(b.onHit&&typeof b.onHit!="function")throw new Error("onHit must be a function");if(b.onMiss&&typeof b.onMiss!="function")throw new Error("onMiss must be a function");if(typeof b.stale=="number"&&!(Math.floor(b.stale)===b.stale&&b.stale>=0))throw new Error("stale must be an integer greater or equal to 0");this[e]={},this[t]=b.storage,this[n]=new Map,this[n].set("_default",b.storage),this[r]=b.transformer,this[s]=b.ttl||0,this[i]=b.onDedupe||p,this[o]=b.onError||p,this[a]=b.onHit||p,this[l]=b.onMiss||p,this[u]=b.stale||0}define(b,g,y){if(typeof g=="function"&&(y=g,g={}),b&&this[b])throw new Error(`${b} is already defined in the cache or it is a forbidden name`);if(g=g||{},typeof y!="function")throw new TypeError(`Missing the function parameter for '${b}'`);const w=g.serialize;if(w&&typeof w!="function")throw new TypeError("serialize must be a function");const _=g.references;if(_&&typeof _!="function")throw new TypeError("references must be a function");if(typeof g.ttl!="function"&&g.ttl&&(typeof g.ttl!="number"||g.ttl<0||!Number.isInteger(g.ttl)))throw new Error("ttl must be a positive integer greater than 0");let k;g.storage?(k=f(g.storage.type,g.storage.options),this[n].set(b,k)):k=this[t];const $=g.ttl!==void 0?g.ttl:this[s],O=g.stale!==void 0?g.stale:this[u],x=g.onDedupe||this[i],D=g.onError||this[o],q=g.onHit||this[a],S=g.onMiss||this[l],P=g.transformer||this[r],j=new d(y,b,w,_,k,P,$,x,D,q,S,O);return this[e][b]=j,this[b]=j.add.bind(j),this}async clear(b,g){if(b){if(!this[e][b])throw new Error(`${b} is not defined in the cache`);await this[e][b].clear(g);return}const y=[];for(const w of Object.values(this[e]))y.push(w.clear());await Promise.all(y)}async get(b,g){if(!this[e][b])throw new Error(`${b} is not defined in the cache`);return this[e][b].get(g)}async set(b,g,y,w,_){if(!this[e][b])throw new Error(`${b} is not defined in the cache`);return this[e][b].set(g,y,w,_)}async invalidate(b,g){if(!this[e][b])throw new Error(`${b} is not defined in the cache`);return this[e][b].invalidate(g)}async invalidateAll(b,g="_default"){if(!this[n].has(g))throw new Error(`${g} storage is not defined in the cache`);await this[n].get(g).invalidate(b)}}class d{constructor(b,g,y,w,_,k,$,O,x,D,q,S){this.dedupes=new Map,this.func=b,this.name=g,this.serialize=y,this.references=w,this.storage=_,this.transformer=k,this.ttl=$,this.onDedupe=O,this.onError=x,this.onHit=D,this.onMiss=q,this.stale=S}getKey(b){const g=this.serialize?this.serialize(b):b;return typeof g=="string"?g:c(g)}getStorageKey(b){return`${this.name}~${b}`}getStorageName(){return`${this.name}~`}add(b){try{const g=this.getKey(b);let y=this.dedupes.get(g);return y?this.onDedupe(g):(y=new m,this.buildPromise(y,b,g),this.dedupes.set(g,y)),y.promise}catch(g){this.onError(g)}}async wrapFunction(b,g){const y=this.getStorageKey(g);if(this.ttl>0||typeof this.ttl=="function"){const w=await this.get(y);if(w!==void 0){this.onHit(g);const _=typeof this.stale=="function"?this.stale(w):this.stale;return _>0&&await this.storage.getTTL(y)<=_&&this._wrapFunction(y,b,g).catch(p),w}else this.onMiss(g)}return this._wrapFunction(y,b,g)}async _wrapFunction(b,g,y){const w=await this.func(g,y),_=typeof this.stale=="function"?this.stale(w):this.stale;let k=typeof this.ttl=="function"?this.ttl(w):this.ttl;if(k==null||typeof k!="number"||!Number.isInteger(k))return this.onError(new Error("ttl must be an integer")),w;if(k+=_,k<1)return w;if(!this.references)return await this.set(b,w,k),w;try{let $=this.references(g,y,w),O=w;$&&typeof $.then=="function"&&($=await $),this.transformer&&(O=this.transformer.serialize(w)),await this.storage.set(b,O,k,$)}catch($){this.onError($)}return w}buildPromise(b,g,y){b.promise=this.wrapFunction(g,y),b.promise.then(w=>(this.dedupes.delete(y),w)).catch(w=>{this.onError(w),this.dedupes.delete(y);const _=this.storage.remove(this.getStorageKey(y));_&&typeof _.catch=="function"&&_.catch(p)})}async clear(b){if(b){const g=this.getKey(b);this.dedupes.delete(g),await this.storage.remove(this.getStorageKey(g));return}await this.storage.clear(this.getStorageName()),this.dedupes.clear()}async get(b){const g=await this.storage.get(b);return this.transformer&&g?await this.transformer.deserialize(g):g}async set(b,g,y,w){return this.transformer&&(g=this.transformer.serialize(g)),this.storage.set(b,g,y,w)}
671async invalidate(b){return this.storage.invalidate(b)}}class m{constructor(){this.promise=null}}function p(){}return ya.Cache=h,ya}var Ra,Af;function UT(){if(Af)return Ra;Af=1;const{Cache:e}=HT(),t=fm();function n(r){r?r.storage||(r.storage={type:"memory"}):r={storage:{type:"memory"}};const s=t(r.storage.type,r.storage.options);return new e({...r,storage:s})}return Ra={Cache:e,createCache:n,createStorage:t},Ra}var VT=UT();let Pa=0,kf=[];function BT(){return Pa+=1,()=>{if(Pa-=1,Pa===0){let e=kf;kf=[];for(let t of e)t()}}}let Lt=[],In=0;const bi=4;let dm=e=>{let t=[],n={get(){return n.lc||n.listen(()=>{})(),n.value},lc:0,listen(r){return n.lc=t.push(r),()=>{for(let i=In+bi;i<Lt.length;)Lt[i]===r?Lt.splice(i,bi):i+=bi;let s=t.indexOf(r);~s&&(t.splice(s,1),--n.lc||n.off())}},notify(r,s){let i=!Lt.length;for(let o of t)Lt.push(o,n.value,r,s);if(i){for(In=0;In<Lt.length;In+=bi)Lt[In](Lt[In+1],Lt[In+2],Lt[In+3]);Lt.length=0}},off(){},set(r){let s=n.value;s!==r&&(n.value=r,n.notify(s))},subscribe(r){let s=n.listen(r);return r(n.value),s},value:e};return n};const qT=5,vi=6,wi=10;let WT=(e,t,n,r)=>(e.events=e.events||{},e.events[n+wi]||(e.events[n+wi]=r(s=>{e.events[n].reduceRight((i,o)=>(o(i),i),{shared:{},...s})})),e.events[n]=e.events[n]||[],e.events[n].push(t),()=>{let s=e.events[n],i=s.indexOf(t);s.splice(i,1),s.length||(delete e.events[n],e.events[n+wi](),delete e.events[n+wi])}),zT=1e3,KT=(e,t)=>WT(e,n=>{let r=t(n);r&&e.events[vi].push(r)},qT,n=>{let r=e.listen;e.listen=(...i)=>(!e.lc&&!e.active&&(e.active=!0,n()),r(...i));let s=e.off;return e.events[vi]=[],e.off=()=>{s(),setTimeout(()=>{if(e.active&&!e.lc){e.active=!1;for(let i of e.events[vi])i();e.events[vi]=[]}},zT)},()=>{e.listen=r,e.off=s}}),GT=(e={})=>{let t=dm(e);return t.setKey=function(n,r){let s=t.value;typeof r>"u"&&n in t.value?(t.value={...t.value},delete t.value[n],t.notify(s,n)):t.value[n]!==r&&(t.value={...t.value,[n]:r},t.notify(s,n))},t};const _l=typeof document>"u"?"server":"browser",QT=e=>{const{ssr:t,setFetcher:n}=e;return r=>{if(_l==="server")throw new Error("Live mode is not supported in server environments");if(t&&!r.client)throw new Error("The `client` option in `enableLiveMode` is required");const s=r.client||e.client||void 0,i=new AbortController;let o;return me(async()=>{const{enableLiveMode:a}=await import("./qdERXZH2.js");return{enableLiveMode:a}},__vite__mapDeps([0,1]),import.meta.url).then(({enableLiveMode:a})=>{i.signal.aborted||(o=a({...r,client:s,setFetcher:n,ssr:t}))}),()=>{i.abort(),o?.()}}};function Rf(e){return e.withConfig({allowReconfigure:!1})}const JT=e=>{const{ssr:t=!1,tag:n="core-loader"}=e;if(t&&e.client)throw new TypeError("`client` option is not allowed when `ssr: true`, use `setServerClient` from your server entry point instead");if(!t&&e.client===!1)throw new TypeError("You must set `ssr: true` when `client: false` is used");if(!t&&!e.client)throw new TypeError("`client` is required");let r=t?void 0:Rf(e.client);function s(f){return VT.createCache().define("fetch",async h=>{if(!f)throw new Error("You have to set the Sanity client with `setServerClient` before any data fetching is done");const{query:d,params:m={},perspective:p,useCdn:v,stega:b}=JSON.parse(h),{result:g,resultSourceMap:y}=await f.fetch(d,m,{tag:n,filterResponse:!1,perspective:p,useCdn:v,stega:b});return{result:g,resultSourceMap:y}})}function i(){const f=r?.config().perspective||"published";return o.instance=s(r),{hydrate:(h,d,m)=>({loading:m?.data===void 0||m?.sourceMap===void 0,error:void 0,data:m?.data,sourceMap:m?.sourceMap,perspective:f}),fetch:(h,d,m,p)=>{if(p.signal.aborted)return;const v=BT();m.setKey("loading",!0),m.setKey("error",void 0),o.instance.fetch(JSON.stringify({query:h,params:d})).then(b=>{p.signal.aborted||(m.setKey("data",b.result),m.setKey("sourceMap",b.resultSourceMap),m.setKey("perspective",f))}).catch(b=>{m.setKey("error",b)}).finally(()=>{m.setKey("loading",!1),v()})}}}const o={instance:s(r)},a=dm(r?i():void 0),l=QT({client:r||void 0,ssr:t,setFetcher:f=>{const h=a.get();return a.set(f),()=>a.set(h)}}),u=(f,h={},d)=>{const m=a.get(),p=GT(m?m.hydrate(f,h,d):{loading:!1,error:typeof d?.data>"u"?new Error("The `initial` option is required when `ssr: true`"):void 0,data:d?.data,sourceMap:d?.sourceMap,perspective:d?.perspective});return KT(p,()=>{let v=new AbortController;const b=a.subscribe(g=>{!g||v.signal.aborted||(v.abort(),v=new AbortController,g.fetch(f,h,p,v))});return()=>{v.abort(),b()}}),p},c={instance:void 0,canPreviewDrafts:!1};return{createFetcherStore:u,enableLiveMode:l,setServerClient:f=>{if(_l!=="server")throw new Error("`setServerClient` can only be called in server environments, detected: "+JSON.stringify(_l));if(!t)throw new Error("`setServerClient` can only be called when `ssr: true`");c.instance=r=Rf(f),c.canPreviewDrafts=!!r.config().token,a.set(i())}
671,unstable__cache:o,unstable__serverClient:c}},Pf=(e,t,n)=>e?JT({tag:"nuxt-loader",client:!1,ssr:!0}):void 0,hm=!(typeof navigator>"u")&&navigator.product==="ReactNative",pm={timeout:hm?6e4:12e4},YT=function(e){const t={...pm,...typeof e=="string"?{url:e}:e};if(t.timeout=mm(t.timeout),t.query){const{url:n,searchParams:r}=(function(s){const i=s.indexOf("?");if(i===-1)return{url:s,searchParams:new URLSearchParams};const o=s.slice(0,i),a=s.slice(i+1);if(!hm)return{url:o,searchParams:new URLSearchParams(a)};if(typeof decodeURIComponent!="function")throw new Error("Broken `URLSearchParams` implementation, and `decodeURIComponent` is not defined");const l=new URLSearchParams;for(const u of a.split("&")){const[c,f]=u.split("=");c&&l.append(xf(c),xf(f||""))}return{url:o,searchParams:l}})(t.url);for(const[s,i]of Object.entries(t.query)){if(i!==void 0)if(Array.isArray(i))for(const a of i)r.append(s,a);else r.append(s,i);const o=r.toString();o&&(t.url=`${n}?${o}`)}}return t.method=t.body&&!t.method?"POST":(t.method||"GET").toUpperCase(),t};function xf(e){return decodeURIComponent(e.replace(/\+/g," "))}function mm(e){if(e===!1||e===0)return!1;if(e.connect||e.socket)return e;const t=Number(e);return isNaN(t)?mm(pm.timeout):{connect:t,socket:t}}const XT=/^https?:\/\//i,ZT=function(e){if(!XT.test(e.url))throw new Error(`"${e.url}" is not a valid URL`)};function gm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const eS=["request","response","progress","error","abort"],Of=["processOptions","validateOptions","interceptRequest","finalizeOptions","onRequest","onResponse","onError","onReturn","onHeaders"];function ym(e,t){const n=[],r=Of.reduce((i,o)=>(i[o]=i[o]||[],i),{processOptions:[YT],validateOptions:[ZT]});function s(i){const o=eS.reduce((d,m)=>(d[m]=(function(){const p=Object.create(null);let v=0;return{publish:function(b){for(const g in p)p[g](b)},subscribe:function(b){const g=v++;return p[g]=b,function(){delete p[g]}}}})(),d),{}),a=(d=>function(m,p,...v){const b=m==="onError";let g=p;for(let y=0;y<d[m].length&&(g=(0,d[m][y])(g,...v),!b||g);y++);return g})(r),l=a("processOptions",i);a("validateOptions",l);const u={options:l,channels:o,applyMiddleware:a};let c;const f=o.request.subscribe(d=>{c=t(d,(m,p)=>((v,b,g)=>{let y=v,w=b;if(!y)try{w=a("onResponse",b,g)}catch(_){w=null,y=_}y=y&&a("onError",y,g),y?o.error.publish(y):w&&o.response.publish(w)})(m,p,d))});o.abort.subscribe(()=>{f(),c&&c.abort()});const h=a("onReturn",o,u);return h===o&&o.request.publish(u),h}return s.use=function(i){if(!i)throw new Error("Tried to add middleware that resolved to falsey value");if(typeof i=="function")throw new Error("Tried to add middleware that was a function. It probably expects you to pass options to it.");if(i.onReturn&&r.onReturn.length>0)throw new Error("Tried to add new middleware with `onReturn` handler, but another handler has already been registered for this event");return Of.forEach(o=>{i[o]&&r[o].push(i[o])}),n.push(i),s},s.clone=()=>ym(n,t),e.forEach(s.use),s}var If,$f,tS=gm((function(){if($f)return If;$f=1;var e=function(n){return n.replace(/^\s+|\s+$/g,"")},t=function(n){return Object.prototype.toString.call(n)==="[object Array]"};return If=function(n){if(!n)return{};for(var r=Object.create(null),s=e(n).split(`
672`),i=0;i<s.length;i++){var o=s[i],a=o.indexOf(":"),l=e(o.slice(0,a)).toLowerCase(),u=e(o.slice(a+1));typeof r[l]>"u"?r[l]=u:t(r[l])?r[l].push(u):r[l]=[r[l],u]}return r}})());let El=class{onabort;onerror;onreadystatechange;ontimeout;readyState=0;response;responseText="";responseType="";status;statusText;withCredentials;#e;#t;#r;#s={};#n;#i={};#o;open(t,n,r){this.#e=t,this.#t=n,this.#r="",this.readyState=1,this.onreadystatechange?.(),this.#n=void 0}abort(){this.#n&&this.#n.abort()}getAllResponseHeaders(){return this.#r}setRequestHeader(t,n){this.#s[t]=n}setInit(t,n=!0){this.#i=t,this.#o=n}send(t){const n=this.responseType!=="arraybuffer",r={...this.#i,method:this.#e,headers:this.#s,body:t};typeof AbortController=="function"&&this.#o&&(this.#n=new AbortController,typeof EventTarget<"u"&&this.#n.signal instanceof EventTarget&&(r.signal=this.#n.signal)),typeof document<"u"&&(r.credentials=this.withCredentials?"include":"omit"),fetch(this.#t,r).then(s=>
672(s.headers.forEach((i,o)=>{this.#r+=`${o}: ${i}\r
673`}),this.status=s.status,this.statusText=s.statusText,this.readyState=3,this.onreadystatechange?.(),n?s.text():s.arrayBuffer())).then(s=>{typeof s=="string"?this.responseText=s:this.response=s,this.readyState=4,this.onreadystatechange?.()}).catch(s=>{s.name!=="AbortError"?this.onerror?.(s):this.onabort?.()})}};const Tl=typeof XMLHttpRequest=="function"?"xhr":"fetch",nS=Tl==="xhr"?XMLHttpRequest:El,rS=(e,t)=>{const n=e.options,r=e.applyMiddleware("finalizeOptions",n),s={},i=e.applyMiddleware("interceptRequest",void 0,{adapter:Tl,context:e});if(i){const p=setTimeout(t,0,null,i);return{abort:()=>clearTimeout(p)}}let o=new nS;o instanceof El&&typeof r.fetch=="object"&&o.setInit(r.fetch,r.useAbortSignal??!0);const a=r.headers,l=r.timeout;let u=!1,c=!1,f=!1;if(o.onerror=p=>{m(o instanceof El?p instanceof Error?p:new Error(`Request error while attempting to reach is ${r.url}`,{cause:p}):new Error(`Request error while attempting to reach is ${r.url}${p.lengthComputable?`(${p.loaded} of ${p.total} bytes transferred)`:""}`))},o.ontimeout=p=>{m(new Error(`Request timeout while attempting to reach ${r.url}${p.lengthComputable?`(${p.loaded} of ${p.total} bytes transferred)`:""}`))},o.onabort=()=>{d(!0),u=!0},o.onreadystatechange=function(){l&&(d(),s.socket=setTimeout(()=>h("ESOCKETTIMEDOUT"),l.socket)),!u&&o&&o.readyState===4&&o.status!==0&&(function(){if(!(u||c||f)){if(o.status===0)return void m(new Error("Unknown XHR error"));d(),c=!0,t(null,{body:o.response||(o.responseType===""||o.responseType==="text"?o.responseText:""),url:r.url,method:r.method,headers:tS(o.getAllResponseHeaders()),statusCode:o.status,statusMessage:o.statusText})}})()},o.open(r.method,r.url,!0),o.withCredentials=!!r.withCredentials,a&&o.setRequestHeader)for(const p in a)a.hasOwnProperty(p)&&o.setRequestHeader(p,a[p]);return r.rawBody&&(o.responseType="arraybuffer"),e.applyMiddleware("onRequest",{options:r,adapter:Tl,request:o,context:e}),o.send(r.body||null),l&&(s.connect=setTimeout(()=>h("ETIMEDOUT"),l.connect)),{abort:function(){u=!0,o&&o.abort()}};function h(p){f=!0,o.abort();const v=new Error(p==="ESOCKETTIMEDOUT"?`Socket timed out on request to ${r.url}`:`Connection timed out on request to ${r.url}`);v.code=p,e.channels.error.publish(v)}function d(p){(p||u||o&&o.readyState>=2&&s.connect)&&clearTimeout(s.connect),s.socket&&clearTimeout(s.socket)}function m(p){if(c)return;d(!0),c=!0,o=null;const v=p||new Error(`Network error while attempting to reach ${r.url}`);v.isNetworkError=!0,v.request=r,t(v)}},sS=(e=[],t=rS)=>ym(e,t);var iS={},Mf,jf,Lf,Nf,Df,xa={exports:{}};Df||(Df=1,(function(e,t){t.formatArgs=function(r){if(r[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+r[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const s="color: "+this.color;r.splice(1,0,s,"color: inherit");let i=0,o=0;r[0].replace(/%[a-zA-Z%]/g,a=>{a!=="%%"&&(i++,a==="%c"&&(o=i))}),r.splice(o,0,s)},t.save=function(r){try{r?t.storage.setItem("debug",r):t.storage.removeItem("debug")}catch{}},t.load=function(){let r;try{r=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch{}return!r&&typeof process<"u"&&"env"in process&&(r=iS.DEBUG),r},t.useColors=function(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let r;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(r=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(r[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=(function(){try{return localStorage}catch{}})(),t.destroy=(()=>{let r=!1;return()=>{r||(r=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33
673CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=(Nf?Lf:(Nf=1,Lf=function(r){function s(a){let l,u,c,f=null;function h(...d){if(!h.enabled)return;const m=h,p=Number(new Date),v=p-(l||p);m.diff=v,m.prev=l,m.curr=p,l=p,d[0]=s.coerce(d[0]),typeof d[0]!="string"&&d.unshift("%O");let b=0;d[0]=d[0].replace(/%([a-zA-Z%])/g,(g,y)=>{if(g==="%%")return"%";b++;const w=s.formatters[y];if(typeof w=="function"){const _=d[b];g=w.call(m,_),d.splice(b,1),b--}return g}),s.formatArgs.call(m,d),(m.log||s.log).apply(m,d)}return h.namespace=a,h.useColors=s.useColors(),h.color=s.selectColor(a),h.extend=i,h.destroy=s.destroy,Object.defineProperty(h,"enabled",{enumerable:!0,configurable:!1,get:()=>f!==null?f:(u!==s.namespaces&&(u=s.namespaces,c=s.enabled(a)),c),set:d=>{f=d}}),typeof s.init=="function"&&s.init(h),h}function i(a,l){const u=s(this.namespace+(typeof l>"u"?":":l)+a);return u.log=this.log,u}function o(a,l){let u=0,c=0,f=-1,h=0;for(;u<a.length;)if(c<l.length&&(l[c]===a[u]||l[c]==="*"))l[c]==="*"?(f=c,h=u,c++):(u++,c++);else{if(f===-1)return!1;c=f+1,h++,u=h}for(;c<l.length&&l[c]==="*";)c++;return c===l.length}return s.debug=s,s.default=s,s.coerce=function(a){return a instanceof Error?a.stack||a.message:a},s.disable=function(){const a=[...s.names,...s.skips.map(l=>"-"+l)].join(",");return s.enable(""),a},s.enable=function(a){s.save(a),s.namespaces=a,s.names=[],s.skips=[];const l=(typeof a=="string"?a:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const u of l)u[0]==="-"?s.skips.push(u.slice(1)):s.names.push(u)},s.enabled=function(a){for(const l of s.skips)if(o(a,l))return!1;for(const l of s.names)if(o(a,l))return!0;return!1},s.humanize=(function(){if(jf)return Mf;jf=1;var a=1e3,l=60*a,u=60*l,c=24*u,f=7*c;function h(d,m,p,v){var b=m>=1.5*p;return Math.round(d/p)+" "+v+(b?"s":"")}return Mf=function(d,m){m=m||{};var p,v,b=typeof d;if(b==="string"&&d.length>0)return(function(g){if(!((g=String(g)).length>100)){var y=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(g);if(y){var w=parseFloat(y[1]);switch((y[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*w;case"weeks":case"week":case"w":return w*f;case"days":case"day":case"d":return w*c;case"hours":case"hour":case"hrs":case"hr":case"h":return w*u;case"minutes":case"minute":case"mins":case"min":case"m":return w*l;case"seconds":case"second":case"secs":case"sec":case"s":return w*a;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return w;default:return}}}})(d);if(b==="number"&&isFinite(d))return m.long?(p=d,(v=Math.abs(p))>=c?h(p,v,c,"day"):v>=u?h(p,v,u,"hour"):v>=l?h(p,v,l,"minute"):v>=a?h(p,v,a,"second"):p+" ms"):(function(g){var y=Math.abs(g);return y>=c?Math.round(g/c)+"d":y>=u?Math.round(g/u)+"h":y>=l?Math.round(g/l)+"m":y>=a?Math.round(g/a)+"s":g+"ms"})(d);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(d))}})(),s.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(r).forEach(a=>{s[a]=r[a]}),s.names=[],s.skips=[],s.formatters={},s.selectColor=function(a){let l=0;for(let u=0;u<a.length;u++)l=(l<<5)-l+a.charCodeAt(u),l|=0;return s.colors[Math.abs(l)%s.colors.length]},s.enable(s.load()),s}))(t);const{formatters:n}=e.exports;n.j=function(r){try{return JSON.stringify(r)}catch(s){return"[UnexpectedJSONParseError]: "+s.message}}})(xa,xa.exports)),xa.exports;const oS=typeof Buffer>"u"?()=>!1:e=>Buffer.isBuffer(e);function Ff(e){return Object.prototype.toString.call(e)==="[object Object]"}function aS(e){if(Ff(e)===!1)return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;
673return!(Ff(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)}const lS=["boolean","string","number"];function cS(){return{processOptions:e=>{const t=e.body;return!t||typeof t.pipe=="function"||oS(t)||lS.indexOf(typeof t)===-1&&!Array.isArray(t)&&!aS(t)?e:Object.assign({},e,{body:JSON.stringify(e.body),headers:Object.assign({},e.headers,{"Content-Type":"application/json"})})}}}function uS(e){return{onResponse:n=>{const r=n.headers["content-type"]||"",s=e&&e.force||r.indexOf("application/json")!==-1;return n.body&&r&&s?Object.assign({},n,{body:t(n.body)}):n},processOptions:n=>Object.assign({},n,{headers:Object.assign({Accept:"application/json"},n.headers)})};function t(n){try{return JSON.parse(n)}catch(r){throw r.message=`Failed to parsed response body as JSON: ${r.message}`,r}}}let gs={};typeof globalThis<"u"?gs=globalThis:typeof window<"u"?gs=window:typeof global<"u"?gs=global:typeof self<"u"&&(gs=self);var fS=gs;function dS(e={}){const t=e.implementation||fS.Observable;if(!t)throw new Error("`Observable` is not available in global scope, and no implementation was passed");return{onReturn:(n,r)=>new t(s=>(n.error.subscribe(i=>s.error(i)),n.progress.subscribe(i=>s.next(Object.assign({type:"progress"},i))),n.response.subscribe(i=>{s.next(Object.assign({type:"response"},i)),s.complete()}),n.request.publish(r),()=>n.abort.publish()))}}function hS(){return{onRequest:e=>{if(e.adapter!=="xhr")return;const t=e.request,n=e.context;function r(s){return i=>{const o=i.lengthComputable?i.loaded/i.total*100:-1;n.channels.progress.publish({stage:s,percent:o,total:i.total,loaded:i.loaded,lengthComputable:i.lengthComputable})}}"upload"in t&&"onprogress"in t.upload&&(t.upload.onprogress=r("upload")),"onprogress"in t&&(t.onprogress=r("download"))}}}var bm=(e,t,n)=>(n.method==="GET"||n.method==="HEAD")&&(e.isNetworkError||!1);function pS(e){return 100*Math.pow(2,e)+100*Math.random()}const vc=(e={})=>(t=>{const n=t.maxRetries||5,r=t.retryDelay||pS,s=t.shouldRetry;return{onError:(i,o)=>{const a=o.options,l=a.maxRetries||n,u=a.retryDelay||r,c=a.shouldRetry||s,f=a.attemptNumber||0;if((h=a.body)!==null&&typeof h=="object"&&typeof h.pipe=="function"||!c(i,f,a)||f>=l)return i;var h;const d=Object.assign({},o,{options:Object.assign({},a,{attemptNumber:f+1})});return setTimeout(()=>o.channels.request.publish(d),u(f)),null}}})({shouldRetry:bm,...e});vc.shouldRetry=bm;var Sl=function(e,t){return Sl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&
vendor: 4,805 bytes, lines 673-675
673(n[s]=r[s])},Sl(e,t)};function Pn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Sl(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function mS(e,t,n,r){function s(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(r.next(c))}catch(f){o(f)}}function l(c){try{u(r.throw(c))}catch(f){o(f)}}function u(c){c.done?i(c.value):s(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})}function vm(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,s,i,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=a(0),o.throw=a(1),o.return=a(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(u){return function(c){return l([u,c])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(n=0)),n;)try{if(r=1,s&&(i=u[0]&2?s.return:u[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,u[1])).done)return i;switch(s=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,s=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){n.label=u[1];break}if(u[0]===6&&n.label<i[1]){n.label=i[1],i=u;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(u);break}i[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(c){u=[6,c],s=0}finally{r=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function qr(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Cn(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),s,i=[],o;try{for(;(t===void 0||t-- >0)&&!(s=r.next()).done;)i.push(s.value)}catch(a){o={error:a}}finally{try{s&&!s.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return i}function An(e,t,n){if(n||arguments.length===2)for(var r=0,s=t.length,i;r<s;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}function $r(e){return this instanceof $r?(this.v=e,this):new $r(e)}function gS(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),s,i=[];return s=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",o),s[Symbol.asyncIterator]=function(){return this},s;function o(d){return function(m){return Promise.resolve(m).then(d,f)}}function a(d,m){r[d]&&(s[d]=function(p){return new Promise(function(v,b){i.push([d,p,v,b])>1||l(d,p)})},m&&(s[d]=m(s[d])))}function l(d,m){try{u(r[d](m))}catch(p){h(i[0][3],p)}}function u(d){d.value instanceof $r?Promise.resolve(d.value.v).then(c,f):h(i[0][2],d)}function c(d){l("next",d)}function f(d){l("throw",d)}function h(d,m){d(m),i.shift(),i.length&&l(i[0][0],i[0][1])}}function yS(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof qr=="function"?qr(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(o){return new Promise(function(a,l){o=e[i](o),s(a,l,o.done,o.value)})}}function s(i,o,a,l){Promise.resolve(l).then(function(u){i({value:u,done:a})},o)}}function He(e){return typeof e=="function"}function wc(e){var t=function(r){Error.call(r),r.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Oa=wc(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
674`+n.map(function(r,s){return s+1+") "+r.toString()}).join(`
675  `):"",this.name="UnsubscriptionError",this.errors=n}});function so(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var ei=(function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,r,s,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=qr(o),l=a.next();!l.done;l=a.next()){var u=l.value;u.remove(this)}}catch(p){t={error:p}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}else o.remove(this);var c=this.initialTeardown;
vendor: 4,826 bytes, line 675
675if(He(c))try{c()}catch(p){i=p instanceof Oa?p.errors:[p]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var h=qr(f),d=h.next();!d.done;d=h.next()){var m=d.value;try{Hf(m)}catch(p){i=i??[],p instanceof Oa?i=An(An([],Cn(i)),Cn(p.errors)):i.push(p)}}}catch(p){r={error:p}}finally{try{d&&!d.done&&(s=h.return)&&s.call(h)}finally{if(r)throw r.error}}}if(i)throw new Oa(i)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)Hf(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&so(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&so(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})(),wm=ei.EMPTY;function _m(e){return e instanceof ei||e&&"closed"in e&&He(e.remove)&&He(e.add)&&He(e.unsubscribe)}function Hf(e){He(e)?e():e.unsubscribe()}var bS={Promise:void 0},vS={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,An([e,t],Cn(n)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Em(e){vS.setTimeout(function(){throw e})}function Uf(){}function Ii(e){e()}var _c=(function(e){Pn(t,e);function t(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,_m(n)&&n.add(r)):r.destination=ES,r}return t.create=function(n,r,s){return new Wr(n,r,s)},t.prototype.next=function(n){this.isStopped||this._next(n)},t.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t})(ei),wS=(function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(r){_i(r)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(r){_i(r)}else _i(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){_i(n)}},e})(),Wr=(function(e){Pn(t,e);function t(n,r,s){var i=e.call(this)||this,o;return He(n)||!n?o={next:n??void 0,error:r??void 0,complete:s??void 0}:o=n,i.destination=new wS(o),i}return t})(_c);function _i(e){Em(e)}function _S(e){throw e}var ES={closed:!0,next:Uf,error:_S,complete:Uf},Ec=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function Ho(e){return e}function TS(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Tm(e)}function Tm(e){return e.length===0?Ho:e.length===1?e[0]:function(n){return e.reduce(function(r,s){return s(r)},n)}}var ze=(function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,r){var s=this,i=CS(t)?t:new Wr(t,n,r);return Ii(function(){var o=s,a=o.operator,l=o.source;i.add(a?a.call(i,l):l?s._subscribe(i):s._trySubscribe(i))}),i},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var r=this;return n=Vf(n),new n(function(s,i){var o=new Wr({next:function(a){try{t(a)}catch(l){i(l),o.unsubscribe()}},error:i,complete:s});r.subscribe(o)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[Ec]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Tm(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=Vf(t),new t(function(r,s){var i;n.subscribe(function(o){return i=o},function(o){return s(o)},function(){return r(i)})})},e.create=function(t){return new e(t)},e})();function Vf(e){var t;return(t=e??bS.Promise)!==null&&t!==void 0?t:Promise}function SS(e){return e&&He(e.next)&&He(e.error)&&He(e.complete)}function CS(e){return e&&e instanceof _c||SS(e)&&_m(e)}function AS(e){return He(e?.lift)}function un(e){return function(t){if(AS(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}
675function Vn(e,t,n,r,s){return new kS(e,t,n,r,s)}var kS=(function(e){Pn(t,e);function t(n,r,s,i,o,a){var l=e.call(this,n)||this;return l.onFinalize=o,l.shouldUnsubscribe=a,l._next=r?function(u){try{r(u)}catch(c){n.error(c)}}:e.prototype._next,l._error=i?function(u){try{i(u)}catch(c){n.error(c)}finally{this.unsubscribe()}}:e.prototype._error,l._complete=s?function(){try{s()}catch(u){n.error(u)}finally{this.unsubscribe()}}:e.prototype._complete,l}return t.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),!r&&((n=this.onFinalize)===null||n===void 0||n.call(this))}},t})(_c),RS=wc(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Tc=(function(e){Pn(t,e);function t(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return t.prototype.lift=function(n){var r=new Bf(this,this);return r.operator=n,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new RS},t.prototype.next=function(n){var r=this;Ii(function(){var s,i;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var o=qr(r.currentObservers),a=o.next();!a.done;a=o.next()){var l=a.value;l.next(n)}}catch(u){s={error:u}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(s)throw s.error}}}})},t.prototype.error=function(n){var r=this;Ii(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=n;for(var s=r.observers;s.length;)s.shift().error(n)}})},t.prototype.complete=function(){var n=this;Ii(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var r=n.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var r=this,s=this,i=s.hasError,o=s.isStopped,a=s.observers;return i||o?wm:(this.currentObservers=null,a.push(n),new ei(function(){r.currentObservers=null,so(a,n)}))},t.prototype._checkFinalizedStatuses=function(n){var r=this,s=r.hasError,i=r.thrownError,o=r.isStopped;s?n.error(i):o&&n.complete()},t.prototype.asObservable=function(){var n=new ze;return n.source=this,n},t.create=function(n,r){return new Bf(n,r)},t})(ze),Bf=(function(e){Pn(t,e);function t(n,r){var s=e.call(this)||this;return s.destination=n,s.source=r,s}return t.prototype.next=function(n){var r,s;(s=(r=this.destination)===null||r===void 0?void 0:r.next)===null||s===void 0||s.call(r,n)},t.prototype.error=function(n){var r,s;(s=(r=this.destination)===null||r===void 0?void 0:r.error)===null||s===void 0||s.call(r,n)},t.prototype.complete=function(){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||r===void 0||r.call(n)},t.prototype._subscribe=function(n){var r,s;return(s=(r=this.source)===null||r===void 0?void 0:r.subscribe(n))!==null&&s!==void 0?s:wm},t})(Tc),Sc={now:function(){return(Sc.delegate||Date).now()},delegate:void 0},PS=(function(e){Pn(t,e);function t(n,r,s){n===void 0&&(n=1/0),r===void 0&&(r=1/0),s===void 0&&(s=Sc);var i=e.call(this)||this;return i._bufferSize=n,i._windowTime=r,i._timestampProvider=s,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=r===1/0,i._bufferSize=Math.max(1,n),i._windowTime=Math.max(1,r),i}return t.prototype.next=function(n){var r=this,s=r.isStopped,i=r._buffer,o=r._infiniteTimeWindow,a=r._timestampProvider,l=r._windowTime;s||(i.push(n),!o&&i.push(a.now()+l)),this._trimBuffer(),e.prototype.next.call(this,n)},t.prototype._subscribe=function(n){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(n),s=this,i=s._infiniteTimeWindow,o=s._buffer,a=o.slice(),l=0;l<a.length&&!n.closed;l+=i?1:2)n.next(a[l]);return this._checkFinalizedStatuses(n),r},t.prototype._trimBuffer=function(){var n=this,r=n._bufferSize,s=n._timestampProvider,i=n._buffer,o=n._infiniteTimeWindow,a=(o?1:2)*r;if(r<1/0&&a<i.length&&i.splice(0,i.length-a),!o){for(var l=s.now(),u=0,c=1;c<i.length&&i[c]<=l;c+=2)u=c;u&&i.splice(0,u+1)}},t})(Tc),xS=(function(e){Pn(t,e);function t(n,r){return e.call(this)||this}return t.prototype.schedule=function(n,r){return this},t})(ei),qf={setInterval:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setInterval.apply(void 0,An([e,t],Cn(n)))},clearInterval:function(e){return clearInterval(e)},delegate:void 0},OS=(function(e){Pn(t,e);function t(n,r){var s=e.call(this,n,r)||this;
vendor: 4,818 bytes, line 675
675return s.scheduler=n,s.work=r,s.pending=!1,s}return t.prototype.schedule=function(n,r){var s;if(r===void 0&&(r=0),this.closed)return this;this.state=n;var i=this.id,o=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(o,i,r)),this.pending=!0,this.delay=r,this.id=(s=this.id)!==null&&s!==void 0?s:this.requestAsyncId(o,this.id,r),this},t.prototype.requestAsyncId=function(n,r,s){return s===void 0&&(s=0),qf.setInterval(n.flush.bind(n,this),s)},t.prototype.recycleAsyncId=function(n,r,s){if(s===void 0&&(s=0),s!=null&&this.delay===s&&this.pending===!1)return r;r!=null&&qf.clearInterval(r)},t.prototype.execute=function(n,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var s=this._execute(n,r);if(s)return s;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(n,r){var s=!1,i;try{this.work(n)}catch(o){s=!0,i=o||new Error("Scheduled action threw falsy error")}if(s)return this.unsubscribe(),i},t.prototype.unsubscribe=function(){if(!this.closed){var n=this,r=n.id,s=n.scheduler,i=s.actions;this.work=this.state=this.scheduler=null,this.pending=!1,so(i,this),r!=null&&(this.id=this.recycleAsyncId(s,r,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t})(xS),Wf=(function(){function e(t,n){n===void 0&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(t,n,r){return n===void 0&&(n=0),new this.schedulerActionCtor(this,t).schedule(r,n)},e.now=Sc.now,e})(),IS=(function(e){Pn(t,e);function t(n,r){r===void 0&&(r=Wf.now);var s=e.call(this,n,r)||this;return s.actions=[],s._active=!1,s}return t.prototype.flush=function(n){var r=this.actions;if(this._active){r.push(n);return}var s;this._active=!0;do if(s=n.execute(n.state,n.delay))break;while(n=r.shift());if(this._active=!1,s){for(;n=r.shift();)n.unsubscribe();throw s}},t})(Wf),$S=new IS(OS),MS=$S,jS=new ze(function(e){return e.complete()});function LS(e){return e&&He(e.schedule)}function Cc(e){return e[e.length-1]}function NS(e){return He(Cc(e))?e.pop():void 0}function Ac(e){return LS(Cc(e))?e.pop():void 0}function DS(e,t){return typeof Cc(e)=="number"?e.pop():t}var Sm=(function(e){return e&&typeof e.length=="number"&&typeof e!="function"});function Cm(e){return He(e?.then)}function Am(e){return He(e[Ec])}function km(e){return Symbol.asyncIterator&&He(e?.[Symbol.asyncIterator])}function Rm(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function FS(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Pm=FS();function xm(e){return He(e?.[Pm])}function Om(e){return gS(this,arguments,function(){var n,r,s,i;return vm(this,function(o){switch(o.label){case 0:n=e.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,$r(n.read())];case 3:return r=o.sent(),s=r.value,i=r.done,i?[4,$r(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,$r(s)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return n.releaseLock(),[7];case 10:return[2]}})})}function Im(e){return He(e?.getReader)}function fn(e){if(e instanceof ze)return e;if(e!=null){if(Am(e))return HS(e);if(Sm(e))return US(e);if(Cm(e))return VS(e);if(km(e))return $m(e);if(xm(e))return BS(e);if(Im(e))return qS(e)}throw Rm(e)}function HS(e){return new ze(function(t){var n=e[Ec]();if(He(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function US(e){return new ze(function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function VS(e){return new ze(function(t){e.then(function(n){t.closed||(t.next(n),t.complete())},function(n){return t.error(n)}).then(null,Em)})}function BS(e){return new ze(function(t){var n,r;try{for(var s=qr(e),i=s.next();!i.done;i=s.next()){var o=i.value;if(t.next(o),t.closed)return}}catch(a){n={error:a}}finally{try{i&&!i.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}t.complete()})}function $m(e){return new ze(function(t){WS(e,t).catch(function(n){return t.error(n)})})}function qS(e){return $m(Om(e))}function WS(e,t){var n,r,s,i;return mS(this,void 0,void 0,function(){var o,a;return vm(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),n=yS(e),l.label=1;case 1:return[4,n.next()];case 2:if(r=l.sent(),!!r.done)return[3,4];if(o=r.value,t.next(o),t.closed)return[2];l.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=l.sent(),s={error:a},[3,11];case 6:return l.trys.push([6,,9,10]),r&&!r.done&&(i=n.return)?[4,i.call(n)]:[3,8];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(s)throw s.error;return[7];
675case 10:return[7];case 11:return t.complete(),[2]}})})}function ir(e,t,n,r,s){r===void 0&&(r=0),s===void 0&&(s=!1);var i=t.schedule(function(){n(),s?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!s)return i}function Mm(e,t){return t===void 0&&(t=0),un(function(n,r){n.subscribe(Vn(r,function(s){return ir(r,e,function(){return r.next(s)},t)},function(){return ir(r,e,function(){return r.complete()},t)},function(s){return ir(r,e,function(){return r.error(s)},t)}))})}function jm(e,t){return t===void 0&&(t=0),un(function(n,r){r.add(e.schedule(function(){return n.subscribe(r)},t))})}function zS(e,t){return fn(e).pipe(jm(t),Mm(t))}function KS(e,t){return fn(e).pipe(jm(t),Mm(t))}function GS(e,t){return new ze(function(n){var r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function QS(e,t){return new ze(function(n){var r;return ir(n,t,function(){r=e[Pm](),ir(n,t,function(){var s,i,o;try{s=r.next(),i=s.value,o=s.done}catch(a){n.error(a);return}o?n.complete():n.next(i)},0,!0)}),function(){return He(r?.return)&&r.return()}})}function Lm(e,t){if(!e)throw new Error("Iterable cannot be null");return new ze(function(n){ir(n,t,function(){var r=e[Symbol.asyncIterator]();ir(n,t,function(){r.next().then(function(s){s.done?n.complete():n.next(s.value)})},0,!0)})})}function JS(e,t){return Lm(Om(e),t)}function YS(e,t){if(e!=null){if(Am(e))return zS(e,t);if(Sm(e))return GS(e,t);if(Cm(e))return KS(e,t);if(km(e))return Lm(e,t);if(xm(e))return QS(e,t);if(Im(e))return JS(e,t)}throw Rm(e)}function ti(e,t){return t?YS(e,t):fn(e)}function Mr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Ac(e);return ti(e,n)}function Nm(e,t){var n=He(e)?e:function(){return e},r=function(s){return s.error(n())};return new ze(r)}function XS(e){return!!e&&(e instanceof ze||He(e.lift)&&He(e.subscribe))}var Dm=wc(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}});function he(e,t){return new Promise(function(n,r){var s=!1,i;e.subscribe({next:function(o){i=o,s=!0},error:r,complete:function(){s?n(i):r(new Dm)}})})}function Ia(e,t){return new Promise(function(n,r){var s=new Wr({next:function(i){n(i),s.unsubscribe()},error:r,complete:function(){r(new Dm)}});e.subscribe(s)})}function ZS(e){return e instanceof Date&&!isNaN(e)}function ht(e,t){return un(function(n,r){var s=0;n.subscribe(Vn(r,function(i){r.next(e.call(t,i,s++))}))})}var eC=Array.isArray;function tC(e,t){return eC(t)?e.apply(void 0,An([],Cn(t))):e(t)}function nC(e){return ht(function(t){return tC(e,t)})}function rC(e,t,n){return n===void 0&&(n=Ho),function(r){zf(t,function(){for(var s=e.length,i=new Array(s),o=s,a=s,l=function(c){zf(t,function(){var f=ti(e[c],t),h=!1;f.subscribe(Vn(r,function(d){i[c]=d,h||(h=!0,a--),a||r.next(n(i.slice()))},function(){--o||r.complete()}))},r)},u=0;u<s;u++)l(u)})}}function zf(e,t,n){t()}function sC(e,t,n,r,s,i,o,a){var l=[],u=0,c=0,f=!1,h=function(){f&&!l.length&&!u&&t.complete()},d=function(p){return u<r?m(p):l.push(p)},m=function(p){u++;var v=!1;fn(n(p,c++)).subscribe(Vn(t,function(b){t.next(b)},function(){v=!0},void 0,function(){if(v)try{u--;for(var b=function(){var g=l.shift();o||m(g)};l.length&&u<r;)b();h()}catch(g){t.error(g)}}))};return e.subscribe(Vn(t,d,function(){f=!0,h()})),function(){}}function or(e,t,n){return n===void 0&&(n=1/0),He(t)?or(function(r,s){return ht(function(i,o){return t(r,i,s,o)})(fn(e(r,s)))},n):(typeof t=="number"&&(n=t),un(function(r,s){return sC(r,s,e,n)}))}function Fm(e){return e===void 0&&(e=1/0),or(Ho,e)}function iC(){return Fm(1)}function oC(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return iC()(ti(e,Ac(e)))}function Hm(e){return new ze(function(t){fn(e()).subscribe(t)})}function aC(e,t,n){return n===void 0&&(n=MS),new ze(function(r){var s=ZS(e)?+e-n.now():e;s<0&&(s=0);var i=0;return n.schedule(function(){r.closed||(r.next(i++),r.complete())},s)})}function lC(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Ac(e),r=DS(e,1/0),s=e;return s.length?s.length===1?fn(s[0]):Fm(r)(ti(s,n)):jS}var cC=Array.isArray;function uC(e){return e.length===1&&cC(e[0])?e[0]:e}function rs(e,t){return un(function(n,r){var s=0;n.subscribe(Vn(r,function(i){return e.call(t,i,s++)&&r.next(i)}))})}function io(e){return un(function(t,n){var r=null,s=!1,i;r=t.subscribe(Vn(n,void 0,void 0,function(o){i=fn(e(o,io(e)(t))),r?
675(r.unsubscribe(),r=null,i.subscribe(n)):s=!0})),s&&(r.unsubscribe(),r=null,i.subscribe(n))})}function Um(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=NS(e);return n?TS(Um.apply(void 0,An([],Cn(e))),nC(n)):un(function(r,s){rC(An([r],Cn(uC(e))))(s)})}function fC(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Um.apply(void 0,An([],Cn(e)))}function Vm(e){return un(function(t,n){try{t.subscribe(n)}finally{n.add(e)}})}function Bm(e){e===void 0&&(e={});var t=e.connector,n=t===void 0?function(){return new Tc}:t,r=e.resetOnError,s=r===void 0?!0:r,i=e.resetOnComplete,o=i===void 0?!0:i,a=e.resetOnRefCountZero,l=a===void 0?!0:a;return function(u){var c,f,h,d=0,m=!1,p=!1,v=function(){f?.unsubscribe(),f=void 0},b=function(){v(),c=h=void 0,m=p=!1},g=function(){var y=c;b(),y?.unsubscribe()};return un(function(y,w){d++,!p&&!m&&v();var _=h=h??n();w.add(function(){d--,d===0&&!p&&!m&&(f=$a(g,l))}),_.subscribe(w),!c&&d>0&&(c=new Wr({next:function(k){return _.next(k)},error:function(k){p=!0,v(),f=$a(b,s,k),_.error(k)},complete:function(){m=!0,v(),f=$a(b,o),_.complete()}}),fn(y).subscribe(c))})(u)}}function $a(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(t===!0){e();return}if(t!==!1){var s=new Wr({next:function(){s.unsubscribe(),e()}});return fn(t.apply(void 0,An([],Cn(n)))).subscribe(s)}}function dC(e,t,n){var r,s=!1;return r=e,Bm({connector:function(){return new PS(r,t,n)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:s})}function hC(e,t,n){var r=He(e)||t||n?{next:e,error:t,complete:n}:e;return r?un(function(s,i){var o;(o=r.subscribe)===null||o===void 0||o.call(r);var a=!0;s.subscribe(Vn(i,function(l){var u;(u=r.next)===null||u===void 0||u.call(r,l),i.next(l)},function(){var l;a=!1,(l=r.complete)===null||l===void 0||l.call(r),i.complete()},function(l){var u;a=!1,(u=r.error)===null||u===void 0||u.call(r,l),i.error(l)},function(){var l,u;a&&((l=r.unsubscribe)===null||l===void 0||l.call(r)),(u=r.finalize)===null||u===void 0||u.call(r)}))}):Ho}function qm(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Wm={0:8203,1:8204,2:8205,3:8290,4:8291,5:8288,6:65279,7:8289,8:119155,9:119156,a:119157,b:119158,c:119159,d:119160,e:119161,f:119162},ys={0:8203,1:8204,2:8205,3:65279},bs={0:String.fromCodePoint(ys[0]),1:String.fromCodePoint(ys[1]),2:String.fromCodePoint(ys[2]),3:String.fromCodePoint(ys[3])},pC=new Array(4).fill(String.fromCodePoint(ys[0])).join("");function mC(e){let t=JSON.stringify(e),n=new TextEncoder().encode(t),r="";for(let s=0;s<n.length;s++){let i=n[s];r+=bs[i>>6&3]+bs[i>>4&3]+bs[i>>2&3]+bs[i&3]}return pC+r}function gC(e){return!Number.isNaN(Number(e))||/[a-z]/i.test(e)&&!/\d+(?:[-:\/]\d+){2}(?:T\d+(?:[-:\/]\d+){1,2}(\.\d+)?Z?)?/.test(e)?!1:!!Date.parse(e)}function yC(e){try{new URL(e,e.startsWith("/")?"https://acme.com":void 0)}catch{return!1}return!0}function hx(e,t,n="auto"){return n===!0||n==="auto"&&(gC(e)||yC(e))?e:`${e}${mC(t)}`}Object.fromEntries(Object.entries(bs).map(e=>[e[1],+e[0]]));Object.fromEntries(Object.entries(Wm).map(e=>e.reverse()));var bC=`${Object.values(Wm).map(e=>`\\u{${e.toString(16)}}`).join("")}`,Kf=new RegExp(`[${bC}]{4,}`,"gu");function vC(e){var t;return{cleaned:e.replace(Kf,""),encoded:((t=e.match(Kf))==null?void 0:t[0])||""}}function wC(e){return e&&JSON.parse(vC(JSON.stringify(e)).cleaned)}function _C(e){return wC(e)}let EC=e=>crypto.getRandomValues(new Uint8Array(e)),TC=(e,t,n)=>{let r=(2<<Math.log(e.length-1)/Math.LN2)-1,s=-~(1.6*r*t/e.length);return(i=t)=>{let o="";for(;;){let a=n(s),l=s|0;for(;l--;)if(o+=e[a[l]&r]||"",o.length===i)return o}}},SC=(e,t=21)=>TC(e,t,EC);const Gf=/\r\n|[\n\r\u2028\u2029]/;function CC(e,t,n){const r=e.split(Gf),s={start:Qf(t.start,r),end:t.end?Qf(t.end,r):void 0},{start:i,end:o,markerLines:a}=AC(s,r),l=`${o}`.length;return e.split(Gf,o).slice(i,o).map((u,c)=>{const f=i+1+c,h=` ${` ${f}`.slice(-l)} |`,d=a[f],m=!a[f+1];if(!d)return` ${h}${u.length>0?` ${u}`:""}`;let p="";if(Array.isArray(d)){const v=u.slice(0,Math.max(d[0]-1,0)).replace(/[^\t]/g," "),b=d[1]||1;p=[`
676 `,h.replace(/\d/g," ")," ",v,"^".repeat(b)].join(""),m&&n&&(p+=" "+n)}return[">",h,u.length>0?` ${u}`:"",p].join("")}).join(`
677`)}function AC(e,t){const n={...e.start},r={...n,...e.end},s=2,i=3,o=n.line??-1,a=n.column??0,l=r.line,u=r.column;let c=Math.max(o-(s+1),0),f=Math.min(t.length,l+i);o===-1&&(c=0),l===-1&&(f=t.length);const h=l-o,d={};if(h)for(let m=0;m<=h;m++){const p=m+o;
677if(!a)d[p]=!0;else if(m===0){const v=t[p-1].length;d[p]=[a,v-a+1]}else if(m===h)d[p]=[0,u];else{const v=t[p-m].length;d[p]=[0,v]}}else a===u?a?d[o]=[a,0]:d[o]=!0:d[o]=[a,u-a];return{start:c,end:f,markerLines:d}}function Qf(e,t){let n=0;for(let r=0;r<t.length;r++){const s=t[r].length+1;if(n+s>e)return{line:r+1,column:e-n};n+=s}return{line:t.length,column:t[t.length-1]?.length??0}}const Ma=5;class kC extends Error{response;statusCode=400;responseBody;details;constructor(t,n){const r=zm(t,n);super(r.message),Object.assign(this,r)}}class RC extends Error{response;statusCode=500;responseBody;details;constructor(t){const n=zm(t);super(n.message),Object.assign(this,n)}}function zm(e,t){const n=e.body,r={response:e,statusCode:e.statusCode,responseBody:OC(n,e),message:"",details:void 0};if(!qm(n))return r.message=ja(e,n),r;const s=n.error;if(typeof s=="string"&&typeof n.message=="string")return r.message=`${s} - ${n.message}`,r;if(typeof s!="object"||s===null)return typeof s=="string"?r.message=s:typeof n.message=="string"?r.message=n.message:r.message=ja(e,n),r;if(PC(s)||xC(s)){const i=s.items||[],o=i.slice(0,Ma).map(l=>l.error?.description).filter(Boolean);let a=o.length?`:
678- ${o.join(`
679- `)}`:"";return i.length>Ma&&(a+=`
680...and ${i.length-Ma} more`),r.message=`${s.description}${a}`,r.details=n.error,r}if(Km(s)){const i=t?.options?.query?.tag;return r.message=Gm(s,i),r.details=n.error,r}return"description"in s&&typeof s.description=="string"?(r.message=s.description,r.details=s,r):(r.message=ja(e,n),r)}function PC(e){return"type"in e&&e.type==="mutationError"&&"description"in e&&typeof e.description=="string"}function xC(e){return"type"in e&&e.type==="actionError"&&"description"in e&&typeof e.description=="string"}function Km(e){return qm(e)&&e.type==="queryParseError"&&typeof e.query=="string"&&typeof e.start=="number"&&typeof e.end=="number"}function Gm(e,t){const{query:n,start:r,end:s,description:i}=e;if(!n||typeof r>"u")return`GROQ query parse error: ${i}`;const o=t?`
681
682Tag: ${t}`:"";return`GROQ query parse error:
683${CC(n,{start:r,end:s},i)}${o}`}function ja(e,t){const n=typeof t=="string"?` (${IC(t,100)})`:"",r=e.statusMessage?` ${e.statusMessage}`:"";return`${e.method}-request to ${e.url} resulted in HTTP ${e.statusCode}${r}${n}`}function OC(e,t){return(t.headers["content-type"]||"").toLowerCase().indexOf("application/json")!==-1?JSON.stringify(e,null,2):e}function IC(e,t){return e.length>t?`${e.slice(0,t)}…`:e}class $C extends Error{projectId;addOriginUrl;constructor({projectId:t}){super("CorsOriginError"),this.name="CorsOriginError",this.projectId=t;const n=new URL(`https://sanity.io/manage/project/${t}/api`);if(typeof location<"u"){const{origin:r}=location;n.searchParams.set("cors","add"),n.searchParams.set("origin",r),this.addOriginUrl=n,this.message=`The current origin is not allowed to connect to the Live Content API. Add it here: ${n}`}else this.message=`The current origin is not allowed to connect to the Live Content API. Change your configuration here: ${n}`}}const MC={onResponse:(e,t)=>{if(e.statusCode>=500)throw new RC(e);if(e.statusCode>=400)throw new kC(e,t);return e}};function jC(e={}){const t={},n=r=>e.ignoreWarnings===void 0?!1:(Array.isArray(e.ignoreWarnings)?e.ignoreWarnings:[e.ignoreWarnings]).some(s=>typeof s=="string"?r.includes(s):s instanceof RegExp?s.test(r):!1);return{onResponse:r=>{const s=r.headers["x-sanity-warning"],i=Array.isArray(s)?s:[s];for(const o of i)!o||t[o]||n(o)||(t[o]=!0,console.warn(o));return r}}}function Jf(e,t={}){return sS([vc({shouldRetry:LC}),...e,jC(t),cS(),uS(),hS(),MC,dS({implementation:ze})])}function LC(e,t,n){if(n.maxRetries===0)return!1;const r=n.method==="GET"||n.method==="HEAD",s=(n.uri||n.url).startsWith("/data/query"),i=e.response&&(e.response.statusCode===429||e.response.statusCode===502||e.response.statusCode===503);return(r||s)&&i?!0:vc.shouldRetry(e,t,n)}const NC="https://www.sanity.io/help/";function kc(e){return NC+e}const Yf=["image","file"],Xf=["before","after","replace"],zr=e=>{if(!/^(~[a-z0-9]{1}[-\w]{0,63}|[a-z0-9]{1}[-\w]{0,63})$/.test(e))throw new Error("Datasets can only contain lowercase characters, numbers, underscores and dashes, and start with tilde, and be maximum 64 characters")},DC=e=>{if(!/^[-a-z0-9]+$/i.test(e))throw new Error("`projectId` can only contain only a-z, 0-9 and dashes")},FC=e=>{if(Yf.indexOf(e)===-1)throw new Error(`Invalid asset type: ${e}. Must be one of ${Yf.join(", ")}`)},As=(e,t)=>{if(t===null||typeof t!="object"||Array.isArray(t))throw new Error(`${e}() takes an object of properties`)},oo=(e,t)=>{if(typeof t!="string"||!/^[a-z0-9_][a-z0-9_.-]{0,127}$/i.test(t)||t.includes(".."))throw new Error(`${e}(): "${t}" is not a valid document ID`)},Kr=(e,t)=>
683{if(!t._id)throw new Error(`${e}() requires that the document contains an ID ("_id" property)`);oo(e,t._id)},HC=(e,t)=>{if(typeof t!="string")throw new Error(`\`${e}()\`: \`${t}\` is not a valid document type`)},Qm=(e,t)=>{if(!t._type)throw new Error(`\`${e}()\` requires that the document contains a type (\`_type\` property)`);HC(e,t._type)},UC=(e,t)=>{if(t._id&&t._id!==e)throw new Error(`The provided document ID (\`${t._id}\`) does not match the generated version ID (\`${e}\`)`)},VC=(e,t,n)=>{const r="insert(at, selector, items)";if(Xf.indexOf(e)===-1){const s=Xf.map(i=>`"${i}"`).join(", ");throw new Error(`${r} takes an "at"-argument which is one of: ${s}`)}if(typeof t!="string")throw new Error(`${r} takes a "selector"-argument which must be a string`);if(!Array.isArray(n))throw new Error(`${r} takes an "items"-argument which must be an array`)},hr=e=>{if(e.dataset)return e.dataset;const t=e.resource;if(t&&t.type==="dataset"){const n=t.id.split(".");if(n.length!==2)throw new Error('Dataset resource ID must be in the format "project.dataset"');return n[1]}throw new Error("`dataset` must be provided to perform queries")},Jm=e=>{if(typeof e!="string"||!/^[a-z0-9._-]{1,75}$/i.test(e))throw new Error("Tag can only contain alphanumeric characters, underscores, dashes and dots, and be between one and 75 characters long.");return e},Ym=e=>{const t=e.resource;if(!t)throw new Error("`resource` must be provided to perform resource queries");const{type:n,id:r}=t;switch(n){case"dataset":{if(r.split(".").length!==2)throw new Error('Dataset resource ID must be in the format "project.dataset"');return}case"dashboard":case"media-library":case"canvas":return;default:throw new Error(`Unsupported resource type: ${n.toString()}`)}},Zt=(e,t)=>{if(t.resource)throw new Error(`\`${e}\` does not support resource-based operations`)};function BC(e){let t=!1,n;return(...r)=>(t||(n=e(...r),t=!0),n)}const xn=e=>BC((...t)=>console.warn(e.join(" "),...t)),qC=xn(["Because you set `withCredentials` to true, we will override your `useCdn`","setting to be false since (cookie-based) credentials are never set on the CDN"]),WC=xn(["Since you haven't set a value for `useCdn`, we will deliver content using our","global, edge-cached API-CDN. If you wish to have content delivered faster, set","`useCdn: false` to use the Live API. Note: You may incur higher costs using the live API."]),zC=xn(["The Sanity client is configured with the `perspective` set to `drafts` or `previewDrafts`, which doesn't support the API-CDN.","The Live API will be used instead. Set `useCdn: false` in your configuration to hide this warning."]),KC=xn(["The `previewDrafts` perspective has been renamed to  `drafts` and will be removed in a future API version"]),GC=xn(["You have configured Sanity client to use a token in the browser. This may cause unintentional security issues.",`See ${kc("js-client-browser-token")} for more information and how to hide this warning.`]),QC=xn(["You have configured Sanity client to use a token, but also provided `withCredentials: true`.","This is no longer supported - only token will be used - remove `withCredentials: true`."]),JC=xn(["Using the Sanity client without specifying an API version is deprecated.",`See ${kc("js-client-api-version")}`]),YC=xn(["You have called `createVersion()` with a defined `document`. The recommended approach is to provide a `baseId` and `releaseId` instead."]),XC=xn(["The `~experimental_resource` configuration property has been renamed to `resource`.","Please update your client configuration to use `resource` instead. Support for `~experimental_resource` will be removed in a future version."]),ZC="apicdn.sanity.io",ks={apiHost:"https://api.sanity.io",apiVersion:"1",useProjectHostname:!0,stega:{enabled:!1}},eA=["localhost","127.0.0.1","0.0.0.0"],tA=e=>eA.indexOf(e)!==-1;function nA(e){if(e==="1"||e==="X")return;const t=new Date(e);if(!(/^\d{4}-\d{2}-\d{2}$/.test(e)&&t instanceof Date&&t.getTime()>0))throw new Error("Invalid API version string, expected `1` or date in format `YYYY-MM-DD`")}function Xm(e){if(Array.isArray(e)&&e.length>1&&e.includes("raw"))throw new TypeError('Invalid API perspective value: "raw". The raw-perspective can not be combined with other perspectives')}const Zm=(e,t)=>{const n={...t,...e,stega:{...typeof t.stega=="boolean"?{enabled:t.stega}:t.stega||ks.stega,...typeof e.stega=="boolean"?{enabled:e.stega}:e.stega||{}}};n.apiVersion||JC();const r={...ks,...n};r["~experimental_resource"]&&!r.resource&&(XC(),r.resource=r["~experimental_resource"]);const s=r.resource,i=r.useProjectHostname&&!s;if(typeof Promise>
683"u"){const d=kc("js-client-promise-polyfill");throw new Error(`No native Promise-implementation found, polyfill needed - see ${d}`)}if(i&&!r.projectId)throw new Error("Configuration must contain `projectId`");if(s&&Ym(r),typeof r.perspective<"u"&&Xm(r.perspective),"encodeSourceMap"in r)throw new Error("It looks like you're using options meant for '@sanity/preview-kit/client'. 'encodeSourceMap' is not supported in '@sanity/client'. Did you mean 'stega.enabled'?");if("encodeSourceMapAtPath"in r)throw new Error("It looks like you're using options meant for '@sanity/preview-kit/client'. 'encodeSourceMapAtPath' is not supported in '@sanity/client'. Did you mean 'stega.filter'?");if(typeof r.stega.enabled!="boolean")throw new Error(`stega.enabled must be a boolean, received ${r.stega.enabled}`);if(r.stega.enabled&&r.stega.studioUrl===void 0)throw new Error("stega.studioUrl must be defined when stega.enabled is true");if(r.stega.enabled&&typeof r.stega.studioUrl!="string"&&typeof r.stega.studioUrl!="function")throw new Error(`stega.studioUrl must be a string or a function, received ${r.stega.studioUrl}`);const o=typeof window<"u"&&window.location&&window.location.hostname,a=o&&tA(window.location.hostname),l=!!r.token;r.withCredentials&&l&&(QC(),r.withCredentials=!1),o&&a&&l&&r.ignoreBrowserTokenWarning!==!0?GC():typeof r.useCdn>"u"&&WC(),i&&DC(r.projectId),r.dataset&&zr(r.dataset),"requestTagPrefix"in r&&(r.requestTagPrefix=r.requestTagPrefix?Jm(r.requestTagPrefix).replace(/\.+$/,""):void 0),r.apiVersion=`${r.apiVersion}`.replace(/^v/,""),r.isDefaultApi=r.apiHost===ks.apiHost,r.useCdn===!0&&r.withCredentials&&qC(),r.useCdn=r.useCdn!==!1&&!r.withCredentials,nA(r.apiVersion);const u=r.apiHost.split("://",2),c=u[0],f=u[1],h=r.isDefaultApi?ZC:f;return i?(r.url=`${c}://${r.projectId}.${f}/v${r.apiVersion}`,r.cdnUrl=`${c}://${r.projectId}.${h}/v${r.apiVersion}`):(r.url=`${r.apiHost}/v${r.apiVersion}`,r.cdnUrl=r.url),r};class eg extends Error{name="ConnectionFailedError"}class rA extends Error{name="DisconnectError";reason;constructor(t,n,r={}){super(t,r),this.reason=n}}class sA extends Error{name="ChannelError";data;constructor(t,n){super(t),this.data=n}}class iA extends Error{name="MessageError";data;constructor(t,n,r={}){super(t,r),this.data=n}}class Zf extends Error{name="MessageParseError"}const oA=["channelError","disconnect"];function tg(e,t){return Hm(()=>{const n=e();return XS(n)?n:Mr(n)}).pipe(or(n=>aA(n,t)))}function aA(e,t){return new ze(n=>{const r=t.includes("open"),s=t.includes("reconnect");function i(u){if("data"in u){const[c,f]=ed(u);n.error(c?new Zf("Unable to parse EventSource error message",{cause:f}):new iA((f?.data).message,f));return}e.readyState===e.CLOSED?n.error(new eg("EventSource connection failed")):s&&n.next({type:"reconnect"})}function o(){n.next({type:"open"})}function a(u){const[c,f]=ed(u);if(c){n.error(new Zf("Unable to parse EventSource message",{cause:c}));return}if(u.type==="channelError"){const h=new URL(e.url).searchParams.get("tag");n.error(new sA(lA(f?.data,h),f.data));return}if(u.type==="disconnect"){n.error(new rA(`Server disconnected client: ${f.data?.reason||"unknown error"}`));return}n.next({type:u.type,id:u.lastEventId,...f.data?{data:f.data}:{}})}e.addEventListener("error",i),r&&e.addEventListener("open",o);const l=[...new Set([...oA,...t])].filter(u=>u!=="error"&&u!=="open"&&u!=="reconnect");return l.forEach(u=>e.addEventListener(u,a)),()=>{e.removeEventListener("error",i),r&&e.removeEventListener("open",o),l.forEach(u=>e.removeEventListener(u,a)),e.close()}})}function ed(e){try{const t=typeof e.data=="string"&&JSON.parse(e.data);return[null,{type:e.type,id:e.lastEventId,...cA(t)?{}:{data:t}}]}catch(t){return[t,null]}}function lA(e,t){const n=e.error;return n?Km(n)?Gm(n,t):n.description?n.description:typeof n=="string"?n:JSON.stringify(n,null,2):e.message||"Unknown listener error"}function cA(e){for(const t in e)return!1;return!0}function ng(e){if(typeof e=="string")return{id:e};if(Array.isArray(e))return{query:"*[_id in $ids]",params:{ids:e}};if(typeof e=="object"&&e!==null&&"query"in e&&typeof e.query=="string")return"params"in e&&typeof e.params=="object"&&e.params!==null?{query:e.query,params:e.params}:{query:e.query};const t=["* Document ID (<docId>)","* Array of document IDs","* Object containing `query`"].join(`
684`);throw new Error(`Unknown selection - must be one of:
685
686${t}`)}class rg{selection;operations;constructor(t,n={}){this.selection=t,this.operations=n}set(t){return this._assign("set",t)}setIfMissing(t){return this._assign("setIfMissing",t)}diffMatchPatch(t){return As("diffMatchPatch",t),this._assign("diffMatchPatch",t)}unset(t){if(!Array.isArray(t))throw new Error("unset(attrs) takes an array of attributes to unset, non-array given");return this.operations=Object.assign({},this.operations,{unset:t}),this}inc(t){return this._assign("inc",t)}dec(t){return this._assign("dec",t)}insert(t,n,r){return VC(t,n,r),this._assign("insert",{[t]:n,items:r})}append(t,n){return this.insert("after",`${t}[-1]`,n)}prepend(t,n){return this.insert("before",`${t}[0]`,n)}splice(t,n,r,s){const i=typeof r>"u"||r===-1,o=n<0?n-1:n,a=i?-1:Math.max(0,n+r),l=o<0&&a>=0?"":a,u=`${t}[${o}:${l}]`;return this.insert("replace",u,s||[])}ifRevisionId(t){return this.operations.ifRevisionID=t,this}serialize(){return{...ng(this.selection),...this.operations}}toJSON(){return this.serialize()}reset(){return this.operations={},this}_assign(t,n,r=!0){return As(t,n),this.operations=Object.assign({},this.operations,{[t]:Object.assign({},r&&this.operations[t]||{},n)}),this}_set(t,n){return this._assign(t,n,!1)}}class ar extends rg{#e;constructor(t,n,r){super(t,n),this.#e=r}clone(){return new ar(this.selection,{...this.operations},this.#e)}commit(t){if(!this.#e)throw new Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");
686const n=typeof this.selection=="string",r=Object.assign({returnFirst:n,returnDocuments:!0},t);return this.#e.mutate({patch:this.serialize()},r)}}class Dn extends rg{#e;constructor(t,n,r){super(t,n),this.#e=r}clone(){return new Dn(this.selection,{...this.operations},this.#e)}commit(t){if(!this.#e)throw new Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");const n=typeof this.selection=="string",r=Object.assign({returnFirst:n,returnDocuments:!0},t);return this.#e.mutate({patch:this.serialize()},r)}}const sg={returnDocuments:!1};class ig{operations;trxId;constructor(t=[],n){this.operations=t,this.trxId=n}create(t){return As("create",t),this._add({create:t})}createIfNotExists(t){const n="createIfNotExists";return As(n,t),Kr(n,t),this._add({[n]:t})}createOrReplace(t){const n="createOrReplace";return As(n,t),Kr(n,t),this._add({[n]:t})}delete(t){return oo("delete",t),this._add({delete:{id:t}})}transactionId(t){return t?(this.trxId=t,this):this.trxId}serialize(){return[...this.operations]}toJSON(){return this.serialize()}reset(){return this.operations=[],this}_add(t){return this.operations.push(t),this}}class Uo extends ig{#e;constructor(t,n,r){super(t,r),this.#e=n}clone(){return new Uo([...this.operations],this.#e,this.trxId)}commit(t){if(!this.#e)throw new Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return this.#e.mutate(this.serialize(),Object.assign({transactionId:this.trxId},sg,t||{}))}patch(t,n){const r=typeof n=="function",s=typeof t!="string"&&t instanceof Dn,i=typeof t=="object"&&("query"in t||"id"in t);if(s)return this._add({patch:t.serialize()});if(r){const o=n(new Dn(t,{},this.#e));if(!(o instanceof Dn))throw new Error("function passed to `patch()` must return the patch");return this._add({patch:o.serialize()})}if(i){const o=new Dn(t,n||{},this.#e);return this._add({patch:o.serialize()})}return this._add({patch:{id:t,...n}})}}class Vo extends ig{#e;constructor(t,n,r){super(t,r),this.#e=n}clone(){return new Vo([...this.operations],this.#e,this.trxId)}commit(t){if(!this.#e)throw new Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return this.#e.mutate(this.serialize(),Object.assign({transactionId:this.trxId},sg,t||{}))}patch(t,n){const r=typeof n=="function";if(typeof t!="string"&&t instanceof ar)return this._add({patch:t.serialize()});if(r){const s=n(new ar(t,{},this.#e));if(!(s instanceof ar))throw new Error("function passed to `patch()` must return the patch");return this._add({patch:s.serialize()})}return this._add({patch:{id:t,...n}})}}const uA="X-Sanity-Project-ID";function fA(e,t={}){const n={};e.headers&&Object.assign(n,e.headers);const r=t.token||e.token;r&&(n.Authorization=`Bearer ${r}`),!t.useGlobalApi&&!e.useProjectHostname&&e.projectId&&(n[uA]=e.projectId);const s=!!(typeof t.withCredentials>"u"?e.withCredentials:t.withCredentials),i=typeof t.timeout>"u"?e.timeout:t.timeout;return Object.assign({},t,{headers:Object.assign({},n,t.headers||{}),timeout:typeof i>"u"?300*1e3:i,proxy:t.proxy||e.proxy,json:!0,withCredentials:s,fetch:typeof t.fetch=="object"&&typeof e.fetch=="object"?{...e.fetch,...t.fetch}:t.fetch||e.fetch})}const og=({query:e,params:t={},options:n={}})=>{const r=new URLSearchParams,{tag:s,includeMutations:i,returnQuery:o,...a}=n;s&&r.append("tag",s),r.append("query",e);for(const[l,u]of Object.entries(t))u!==void 0&&r.append(`$${l}`,JSON.stringify(u));for(const[l,u]of Object.entries(a))u&&r.append(l,`${u}`);return o===!1&&r.append("returnQuery","false"),i===!1&&r.append("includeMutations","false"),`?${r}`},dA=(e,t)=>e===!1?void 0:typeof e>"u"?t:e,hA=(e={})=>({dryRun:e.dryRun,returnIds:!0,returnDocuments:dA(e.returnDocuments,!0),visibility:e.visibility||"sync",autoGenerateArrayKeys:e.autoGenerateArrayKeys,skipCrossDatasetReferenceValidation:e.skipCrossDatasetReferenceValidation}),Rc=e=>e.type==="response",pA=e=>e.body,mA=(e,t)=>e.reduce((n,r)=>(n[t(r)]=r,n),Object.create(null)),gA=11264;function ag(e,t,n,r,s={},i={}){const o="stega"in i?{...n||{},...typeof i.stega=="boolean"?{enabled:i.stega}:i.stega||{}}:n,a=o.enabled?_C(s):s,l=i.filterResponse===!1?m=>m:m=>m.result,{cache:u,next:c,...f}={useAbortSignal:typeof i.signal<"u",resultSourceMap:o.enabled?"withKeyArraySelector":i.resultSourceMap,...i,returnQuery:i.filterResponse===!1&&i.returnQuery!==!1}
686,h=typeof u<"u"||typeof c<"u"?{...f,fetch:{cache:u,next:c}}:f,d=pr(e,t,"query",{query:r,params:a},h);return o.enabled?d.pipe(fC(ti(me(()=>import("./BZ8IWx-P.js"),[],import.meta.url).then(function(m){return m.stegaEncodeSourceMap$1}).then(({stegaEncodeSourceMap:m})=>m))),ht(([m,p])=>{const v=p(m.result,m.resultSourceMap,o);return l({...m,result:v})})):d.pipe(ht(l))}function Gr(e,t,n,r={}){const s=(()=>{if(!r.releaseId)return n;const o=em(n);if(!o){if(No(n))throw new Error(`The document ID (\`${n}\`) is a draft, but \`options.releaseId\` is set as \`${r.releaseId}\``);return Ys(n,r.releaseId)}if(o!==r.releaseId)throw new Error(`The document ID (\`${n}\`) is already a version of \`${o}\` release, but this does not match the provided \`options.releaseId\` (\`${r.releaseId}\`)`);return n})(),i={uri:Mt(e,"doc",s),json:!0,tag:r.tag,signal:r.signal,query:r.includeAllVersions!==void 0?{includeAllVersions:r.includeAllVersions}:void 0};return ri(e,t,i).pipe(rs(Rc),ht(o=>{const a=o.body.documents;return a?r.includeAllVersions?a:a[0]:r.includeAllVersions?[]:void 0}))}function lg(e,t,n,r={}){const s={uri:Mt(e,"doc",n.join(",")),json:!0,tag:r.tag,signal:r.signal};return ri(e,t,s).pipe(rs(Rc),ht(i=>{const o=mA(i.body.documents||[],a=>a._id);return n.map(a=>o[a]||null)}))}function cg(e,t,n,r={}){return pr(e,t,"query",{query:"*[sanity::partOfRelease($releaseId)]",params:{releaseId:n}},r)}function ug(e,t,n,r){return Kr("createIfNotExists",n),Bo(e,t,n,"createIfNotExists",r)}function fg(e,t,n,r){return Kr("createOrReplace",n),Bo(e,t,n,"createOrReplace",r)}function dg(e,t,n,r,s){return Kr("createVersion",n),Qm("createVersion",n),YC(),Ue(e,t,{actionType:"sanity.action.document.version.create",publishedId:r,document:n},s)}function hg(e,t,n,r,s,i,o){if(!r)throw new Error("`createVersion()` requires `baseId` when no `document` is provided");if(!n)throw new Error("`createVersion()` requires `publishedId` when `baseId` is provided");oo("createVersion",r),oo("createVersion",n);const a={actionType:"sanity.action.document.version.create",publishedId:n,baseId:r,versionId:s?Ys(n,s):Zp(n),ifBaseRevisionId:i};return Ue(e,t,a,o)}function pg(e,t,n,r){return pr(e,t,"mutate",{mutations:[{delete:ng(n)}]},r)}function mg(e,t,n,r=!1,s){return Ue(e,t,{actionType:"sanity.action.document.version.discard",versionId:n,purge:r},s)}function gg(e,t,n,r){return Kr("replaceVersion",n),Qm("replaceVersion",n),Ue(e,t,{actionType:"sanity.action.document.version.replace",document:n},r)}function yg(e,t,n,r,s){return Ue(e,t,{actionType:"sanity.action.document.version.unpublish",versionId:n,publishedId:r},s)}function bg(e,t,n,r){let s;n instanceof Dn||n instanceof ar?s={patch:n.serialize()}:n instanceof Uo||n instanceof Vo?s=n.serialize():s=n;const i=Array.isArray(s)?s:[s],o=r&&r.transactionId||void 0;return pr(e,t,"mutate",{mutations:i,transactionId:o},r)}function Ue(e,t,n,r){const s=Array.isArray(n)?n:[n],i=r&&r.transactionId||void 0,o=r&&r.skipCrossDatasetReferenceValidation||void 0,a=r&&r.dryRun||void 0;return pr(e,t,"actions",{actions:s,transactionId:i,skipCrossDatasetReferenceValidation:o,dryRun:a},r)}function pr(e,t,n,r,s={}){const i=n==="mutate",o=n==="actions",a=n==="query",l=i||o?"":og(r),u=!i&&!o&&l.length<gA,c=u?l:"",f=s.returnFirst,{timeout:h,token:d,tag:m,headers:p,returnQuery:v,lastLiveEventId:b,cacheMode:g}=s,y=Mt(e,n,c),w={method:u?"GET":"POST",uri:y,json:!0,body:u?void 0:r,query:i&&hA(s),timeout:h,headers:p,token:d,tag:m,returnQuery:v,perspective:s.perspective,resultSourceMap:s.resultSourceMap,lastLiveEventId:Array.isArray(b)?b[0]:b,cacheMode:g,canUseCdn:a,signal:s.signal,fetch:s.fetch,useAbortSignal:s.useAbortSignal,useCdn:s.useCdn};return ri(e,t,w).pipe(rs(Rc),ht(pA),ht(_=>{if(!i)return _;const k=_.results||[];if(s.returnDocuments)return f?k[0]&&k[0].document:k.map(x=>x.document);const $=f?"documentId":"documentIds",O=f?k[0]&&k[0].id:k.map(x=>x.id);return{transactionId:_.transactionId,results:k,[$]:O}}))}function Bo(e,t,n,r,s={}){const i={[r]:n},o=Object.assign({returnFirst:!0,returnDocuments:!0},s);return pr(e,t,"mutate",{mutations:[i]},o)}const ni=e=>{const t=e.config();return t.dataset!==void 0&&t.projectId!==void 0||t.resource!==void 0},vg=(e,t)=>ni(e)&&t.startsWith(Mt(e,"query")),yA=(e,t)=>ni(e)&&t.startsWith(Mt(e,"mutate")),bA=(e,t)=>
686ni(e)&&t.startsWith(Mt(e,"doc","")),vA=(e,t)=>ni(e)&&t.startsWith(Mt(e,"listen")),wA=(e,t)=>ni(e)&&t.startsWith(Mt(e,"history","")),_A=(e,t)=>t.startsWith("/data/")||vg(e,t)||yA(e,t)||bA(e,t)||vA(e,t)||wA(e,t);function ri(e,t,n){const r=n.url||n.uri,s=e.config(),i=typeof n.canUseCdn>"u"?["GET","HEAD"].indexOf(n.method||"GET")>=0&&_A(e,r):n.canUseCdn;let o=(n.useCdn??s.useCdn)&&i;const a=n.tag&&s.requestTagPrefix?[s.requestTagPrefix,n.tag].join("."):n.tag||s.requestTagPrefix;if(a&&n.tag!==null&&(n.query={tag:Jm(a),...n.query}),["GET","HEAD","POST"].indexOf(n.method||"GET")>=0&&vg(e,r)){const c=n.resultSourceMap??s.resultSourceMap;c!==void 0&&c!==!1&&(n.query={resultSourceMap:c,...n.query});const f=n.perspective||s.perspective;typeof f<"u"&&(f==="previewDrafts"&&KC(),Xm(f),n.query={perspective:Array.isArray(f)?f.join(","):f,...n.query},(Array.isArray(f)&&f.length>0||f==="previewDrafts"||f==="drafts")&&o&&(o=!1,zC())),n.lastLiveEventId&&(n.query={...n.query,lastLiveEventId:n.lastLiveEventId}),n.returnQuery===!1&&(n.query={returnQuery:"false",...n.query}),o&&n.cacheMode=="noStale"&&(n.query={cacheMode:"noStale",...n.query})}const l=fA(s,Object.assign({},n,{url:Pc(e,r,o)})),u=new ze(c=>t(l,s.requester).subscribe(c));return n.signal?u.pipe(EA(n.signal)):u}function Qe(e,t,n){return ri(e,t,n).pipe(rs(r=>r.type==="response"),ht(r=>r.body))}function Mt(e,t,n){const r=e.config();if(r.resource){Ym(r);const o=CA(r),a=n!==void 0?`${t}/${n}`:t;return`${o}/${a}`.replace(/\/($|\?)/,"$1")}const s=hr(r),i=`/${t}/${s}`;return`/data${n!==void 0?`${i}/${n}`:i}`.replace(/\/($|\?)/,"$1")}function Pc(e,t,n=!1){const{url:r,cdnUrl:s}=e.config();return`${n?s:r}/${t.replace(/^\//,"")}`}function EA(e){return t=>new ze(n=>{const r=()=>n.error(SA(e));if(e&&e.aborted){r();return}const s=t.subscribe(n);return e.addEventListener("abort",r),()=>{e.removeEventListener("abort",r),s.unsubscribe()}})}const TA=!!globalThis.DOMException;function SA(e){if(TA)return new DOMException(e?.reason??"The operation was aborted.","AbortError");const t=new Error(e?.reason??"The operation was aborted.");return t.name="AbortError",t}const CA=e=>{const t=e.resource;if(!t)throw new Error("`resource` must be provided to perform resource queries");const{type:n,id:r}=t;switch(n){case"dataset":{const s=r.split(".");if(s.length!==2)throw new Error('Dataset ID must be in the format "project.dataset"');return`/projects/${s[0]}/datasets/${s[1]}`}case"canvas":return`/canvases/${r}`;case"media-library":return`/media-libraries/${r}`;case"dashboard":return`/dashboards/${r}`;default:throw new Error(`Unsupported resource type: ${n.toString()}`)}};function wg(e,t,n){const r=hr(e.config());return Qe(e,t,{method:"POST",uri:`/agent/action/generate/${r}`,body:n})}function AA(e,t,n){const r=hr(e.config());return Qe(e,t,{method:"POST",uri:`/agent/action/patch/${r}`,body:n})}function kA(e,t,n){const r=hr(e.config());return Qe(e,t,{method:"POST",uri:`/agent/action/prompt/${r}`,body:n})}function _g(e,t,n){const r=hr(e.config());return Qe(e,t,{method:"POST",uri:`/agent/action/transform/${r}`,body:n})}function Eg(e,t,n){const r=hr(e.config());return Qe(e,t,{method:"POST",uri:`/agent/action/translate/${r}`,body:n})}class RA{#e;#t;constructor(t,n){this.#e=t,this.#t=n}generate(t){return wg(this.#e,this.#t,t)}transform(t){return _g(this.#e,this.#t,t)}translate(t){return Eg(this.#e,this.#t,t)}}class PA{#e;#t;constructor(t,n){this.#e=t,this.#t=n}generate(t){return he(wg(this.#e,this.#t,t))}transform(t){return he(_g(this.#e,this.#t,t))}translate(t){return he(Eg(this.#e,this.#t,t))}prompt(t){return he(kA(this.#e,this.#t,t))}patch(t){return he(AA(this.#e,this.#t,t))}}class xA{#e;#t;constructor(t,n){this.#e=t,this.#t=n}upload(t,n,r){return Tg(this.#e,this.#t,t,n,r)}}class OA{#e;#t;constructor(t,n){this.#e=t,this.#t=n}upload(t,n,r){const s=Tg(this.#e,this.#t,t,n,r);return he(s.pipe(rs(i=>i.type==="response"),ht(i=>i.body.document)))}}function Tg(e,t,n,r,s={}){FC(n);let i=s.extract||void 0;i&&!i.length&&(i=["none"]);const o=e.config(),a=$A(s,r),{tag:l,label:u,title:c,description:f,creditLine:h,filename:d,source:m}=a,p=o.resource?.type==="media-library",v=p?{title:c,filename:d}:{label:u,title:c,description:f,filename:d,meta:i,creditLine:h};return m&&!p&&(v.sourceId=m.id,v.sourceName=m.name,v.sourceUrl=m.url),ri(e,t,{tag:l,method:"POST",timeout:a.timeout||0,uri:IA(o,n),headers:a.contentType?{"Content-Type":a.contentType}:{},query:v,body:r})}function IA(e,t){const n=t==="image"?"images":"files",r=e.resource;if(r){const{type:i,id:o}=r;switch(i){case"dataset":throw new Error("Assets are not supported for dataset resources, yet. Configure the client with `{projectId: <projectId>, dataset: <datasetId>}` instead.");case"canvas":return`/canvases/${o}/assets/${n}`;case"media-library":return`/media-libraries/${o}/upload`;case"dashboard":return`/dashboards/${o}/assets/${n}`;default:throw new Error(`Unsupported resource type: ${i.toString()}`)}}const s=hr(e);return`assets/${n}/${s}`}function $A(e,t){return typeof File>"u"||!(t instanceof File)?e:Object.assign({filename:e.preserveFilename===!1?void 0:t.name,contentType:t.type},e)}var MA=(e,t)=>Object.keys(t).concat(Object.keys(e)).reduce((n,r)=>(n[r]=typeof e[r]>"u"?t[r]:e[r],n),{});const jA=(e,t)=>t.reduce((n,r)=>(typeof e[r]>"u"||(n[r]=e[r]),n),{}),Sg=Hm(()=>me(()=>import("./B-nFKEMZ.js").then(e=>e.b),[],import.meta.url)).pipe(ht(({default:e})=>e),dC(1));function Cg(){return function(e){return e.pipe(io((t,n)=>t instanceof eg?oC(Mr({type:"reconnect"}),aC(1e3).pipe(or(()=>n))):Nm(()=>t)))}}const LA=14800,NA=["includePreviousRevision","includeResult","includeMutations","includeAllVersions","visibility","effectFormat","enableResume","tag"],DA={includeResult:!0};function Ag(e,t,n={}){const{url:r,token:s,withCredentials:i,requestTagPrefix:o,headers:a}=this.config(),l=n.tag&&o?[o,n.tag].join("."):n.tag,u={...MA(n,DA),tag:l},c=jA(u,NA),f=og({query:e,params:t,options:{tag:l,...c}}),h=`${r}${Mt(this,"listen",f)}`;if(h.length>LA)return Nm(()=>new Error("Query too large for listener"));const d=u.events?u.events:["mutation"],m={};return i&&(m.withCredentials=!0),(s||a)&&(m.headers={},s&&(m.headers.Authorization=`Bearer ${s}`),a&&Object.assign(m.headers,a)),tg(()=>(typeof EventSource>"u"||m.headers?Sg:Mr(EventSource)).pipe(ht(p=>new p(h,m))),d).pipe(Cg(),rs(p=>d.includes(p.type)),ht(p=>({type:p.type,..."data"in p?p.data:{}})))}function FA(e,t){return HA(typeof e=="function"?{predicate:e,...t}:e)}function HA(e){return t=>{let n,r=!1;const{predicate:s,...i}=e,o=t.pipe(hC(l=>{e.predicate(l)&&(r=!0,n=l)}),Vm(()=>{r=!1,n=void 0}),Bm(i)),a=new ze(l=>{r&&l.next(n),l.complete()});return lC(o,a)}}const td="2021-03-25";class kg{#e;constructor(t){this.#e=t}events({includeDrafts:t=!1,tag:n}={}
686){const{projectId:r,apiVersion:s,token:i,withCredentials:o,requestTagPrefix:a,headers:l}=this.#e.config(),u=s.replace(/^v/,"");if(u!=="X"&&u<td)throw new Error(`The live events API requires API version ${td} or later. The current API version is ${u}. Please update your API version to use this feature.`);if(t&&!i&&!o)throw new Error("The live events API requires a token or withCredentials when 'includeDrafts: true'. Please update your client configuration. The token should have the lowest possible access role.");const c=Mt(this.#e,"live/events"),f=new URL(this.#e.getUrl(c,!1)),h=n&&a?[a,n].join("."):n;h&&f.searchParams.set("tag",h),t&&f.searchParams.set("includeDrafts","true");const d={};t&&o&&(d.withCredentials=!0),(t&&i||l)&&(d.headers={},t&&i&&(d.headers.Authorization=`Bearer ${i}`),l&&Object.assign(d.headers,l));const m=`${f.href}::${JSON.stringify(d)}`,p=La.get(m);if(p)return p;const v=tg(()=>(typeof EventSource>"u"||d.headers?Sg:Mr(EventSource)).pipe(ht(y=>new y(f.href,d))),["message","restart","welcome","reconnect","goaway"]),b=UA(f,{method:"OPTIONS",mode:"cors",credentials:d.withCredentials?"include":"omit",headers:d.headers}).pipe(io(()=>{throw new $C({projectId:r})})),g=v.pipe(Cg(),or(y=>y.type==="reconnect"?b.pipe(or(()=>Mr(y))):Mr(y)),io(y=>b.pipe(or(()=>{throw y}))),ht(y=>{if(y.type==="message"){const{data:w,..._}=y;return{..._,tags:w.tags}}return y})).pipe(Vm(()=>La.delete(m)),FA({predicate:y=>y.type==="welcome"}));return La.set(m,g),g}}function UA(e,t){return new ze(n=>{const r=new AbortController,s=r.signal;return fetch(e,{...t,signal:r.signal}).then(i=>{n.next(i),n.complete()},i=>{s.aborted||n.error(i)}),()=>r.abort()})}const La=new Map;class VA{#e;#t;constructor(t,n){this.#e=t,this.#t=n}create(t,n){return jr(this.#e,this.#t,"PUT",t,n)}edit(t,n){return jr(this.#e,this.#t,"PATCH",t,n)}delete(t){return jr(this.#e,this.#t,"DELETE",t)}list(){Zt("dataset",this.#e.config());const t=this.#e.config(),n=t.projectId;let r="/datasets";return t.useProjectHostname===!1&&(r=`/projects/${n}/datasets`),Qe(this.#e,this.#t,{uri:r,tag:null})}getEmbeddingsSettings(t){return Zt("dataset",this.#e.config()),zr(t),Qe(this.#e,this.#t,{uri:ao(this.#e,t),tag:null})}editEmbeddingsSettings(t,n){return Zt("dataset",this.#e.config()),zr(t),Qe(this.#e,this.#t,{method:"PUT",uri:ao(this.#e,t),body:n,tag:null})}}class BA{#e;#t;constructor(t,n){this.#e=t,this.#t=n}create(t,n){return Zt("dataset",this.#e.config()),he(jr(this.#e,this.#t,"PUT",t,n))}edit(t,n){return Zt("dataset",this.#e.config()),he(jr(this.#e,this.#t,"PATCH",t,n))}delete(t){return Zt("dataset",this.#e.config()),he(jr(this.#e,this.#t,"DELETE",t))}list(){Zt("dataset",this.#e.config());const t=this.#e.config(),n=t.projectId;let r="/datasets";return t.useProjectHostname===!1&&(r=`/projects/${n}/datasets`),he(Qe(this.#e,this.#t,{uri:r,tag:null}))}getEmbeddingsSettings(t){return Zt("dataset",this.#e.config()),zr(t),he(Qe(this.#e,this.#t,{uri:ao(this.#e,t),tag:null}))}editEmbeddingsSettings(t,n){return Zt("dataset",this.#e.config()),zr(t),he(Qe(this.#e,this.#t,{method:"PUT",uri:ao(this.#e,t),body:n,tag:null}))}}function ao(e,t){const n=e.config();return n.useProjectHostname===!1?`/projects/${n.projectId}/datasets/${t}/settings/embeddings`:`/datasets/${t}/settings/embeddings`}function jr(e,t,n,r,s){return Zt("dataset",e.config()),zr(r),Qe(e,t,{method:n,uri:`/datasets/${r}`,body:s,tag:null})}class Rg{#e;#t;constructor(t,n){this.#e=t,this.#t=n}getPlaybackInfo(t,n={}){const r=this.#e.config(),s=(r.resource||r["~experimental_resource"])?.id,{instanceId:i,libraryId:o}=KA(t),a=o||s;if(!a)throw new Error("Could not determine Media Library ID - you need to provide a valid Media Library ID in the client config or a Media Library GDR");const l=GA(i,a),u=QA(n);return Qe(this.#e,this.#t,{method:"GET",uri:l,query:u})}}class qA{#e;#t;constructor(t,n){this.#e=t,this.#t=n}getPlaybackInfo(t,n={}){return he(new Rg(this.#e.observable,this.#t).getPlaybackInfo(t,n))}}const WA=/^media-library:(ml[^:]+):([^:]+)$/;function zA(e){return typeof e=="object"&&"_ref"in e}function KA(e){const t=zA(e)?e._ref:e,n=WA.exec(t);if(n){const[,r,s]=n;return{libraryId:r,instanceId:s}}if(typeof e=="string"&&e.startsWith("video-"))return{instanceId:e};throw new Error(`Invalid video asset instance identifier "${t}": must be a valid video instance id or a Global Dataset Reference (GDR) to the video asset in the Media Library`)}function GA(e,t){return`/media-libraries/${t}/video/${e}/playback-info`}function QA(e){const t={};if(e.transformations){const{thumbnail:n,animated:r,storyboard:s}=e.transformations;n&&(n.width&&(t.thumbnailWidth=n.width),n.height&&(t.thumbnailHeight=n.height),n.time!==void 0&&(t.thumbnailTime=n.time),n.fit&&(t.thumbnailFit=n.fit),n.format&&(t.thumbnailFormat=n.format)),r&&(r.width&&(t.animatedWidth=r.width),r.height&&(t.animatedHeight=r.height),r.start!==void 0&&(t.animatedStart=r.start),r.end!==void 0&&(t.animatedEnd=r.end),r.fps&&(t.animatedFps=r.fps),r.format&&(t.animatedFormat=r.format)),s&&s.format&&(t.storyboardFormat=s.format)}return e.expiration&&(t.expiration=e.expiration),t}class JA{#e;#t;constructor(t,n){this.#e=t,this.#t=n}
686list(t){const n={},r="/projects";return t?.includeMembers===!1&&(n.includeMembers="false"),t?.includeFeatures===!1&&(n.includeFeatures="false"),t?.organizationId&&(n.organizationId=t.organizationId),t?.onlyExplicitMembership&&(n.onlyExplicitMembership="true"),Qe(this.#e,this.#t,{uri:r,query:n})}getById(t){return Qe(this.#e,this.#t,{uri:`/projects/${t}`})}}class YA{#e;#t;constructor(t,n){this.#e=t,this.#t=n}list(t){const n={},r="/projects";return t?.includeMembers===!1&&(n.includeMembers="false"),t?.includeFeatures===!1&&(n.includeFeatures="false"),t?.organizationId&&(n.organizationId=t.organizationId),t?.onlyExplicitMembership&&(n.onlyExplicitMembership="true"),he(Qe(this.#e,this.#t,{uri:r,query:n}))}getById(t){return he(Qe(this.#e,this.#t,{uri:`/projects/${t}`}))}}const nd=SC("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",8),lo=(e,t)=>t?Ys(e,t):Zp(e);function co(e,{releaseId:t,publishedId:n,document:r}){if(n&&r._id){const s=lo(n,t);return UC(s,r),s}if(r._id){const s=No(r._id),i=Do(r._id);if(!s&&!i)throw new Error(`\`${e}()\` requires a document with an \`_id\` that is a version or draft ID`);if(t){if(s)throw new Error(`\`${e}()\` was called with a document ID (\`${r._id}\`) that is a draft ID, but a release ID (\`${t}\`) was also provided.`);const o=em(r._id);if(o!==t)throw new Error(`\`${e}()\` was called with a document ID (\`${r._id}\`) that is a version ID, but the release ID (\`${t}\`) does not match the document's version ID (\`${o}\`).`)}return r._id}if(n)return lo(n,t);throw new Error(`\`${e}()\` requires either a publishedId or a document with an \`_id\``)}const XA=(e,t)=>{if(typeof e=="object"&&e!==null&&("releaseId"in e||"metadata"in e)){const{releaseId:n=nd(),metadata:r={}}=e;return[n,r,t]}return[nd(),{},e]},Pg=(e,t)=>{const[n,r,s]=XA(e,t),i={...r,releaseType:r.releaseType||"undecided"};return{action:{actionType:"sanity.action.release.create",releaseId:n,metadata:i},options:s}};class ZA{#e;#t;constructor(t,n){this.#e=t,this.#t=n}get({releaseId:t},n){return Gr(this.#e,this.#t,`_.releases.${t}`,n)}create(t,n){const{action:r,options:s}=Pg(t,n),{releaseId:i,metadata:o}=r;return Ue(this.#e,this.#t,r,s).pipe(ht(a=>({...a,releaseId:i,metadata:o})))}edit({releaseId:t,patch:n},r){const s={actionType:"sanity.action.release.edit",releaseId:t,patch:n};return Ue(this.#e,this.#t,s,r)}publish({releaseId:t},n){const r={actionType:"sanity.action.release.publish",releaseId:t};return Ue(this.#e,this.#t,r,n)}archive({releaseId:t},n){const r={actionType:"sanity.action.release.archive",releaseId:t};return Ue(this.#e,this.#t,r,n)}unarchive({releaseId:t},n){const r={actionType:"sanity.action.release.unarchive",releaseId:t};return Ue(this.#e,this.#t,r,n)}schedule({releaseId:t,publishAt:n},r){const s={actionType:"sanity.action.release.schedule",releaseId:t,publishAt:n};return Ue(this.#e,this.#t,s,r)}unschedule({releaseId:t},n){const r={actionType:"sanity.action.release.unschedule",releaseId:t};return Ue(this.#e,this.#t,r,n)}delete({releaseId:t},n){const r={actionType:"sanity.action.release.delete",releaseId:t};return Ue(this.#e,this.#t,r,n)}fetchDocuments({releaseId:t},n){return cg(this.#e,this.#t,t,n)}}class ek{#e;#t;constructor(t,n){this.#e=t,this.#t=n}get({releaseId:t},n){return he(Gr(this.#e,this.#t,`_.releases.${t}`,n))}async create(t,n){const{action:r,options:s}=Pg(t,n),{releaseId:i,metadata:o}=r;return{...await he(Ue(this.#e,this.#t,r,s)),releaseId:i,metadata:o}}edit({releaseId:t,patch:n},r){const s={actionType:"sanity.action.release.edit",releaseId:t,patch:n};return he(Ue(this.#e,this.#t,s,r))}publish({releaseId:t},n){const r={actionType:"sanity.action.release.publish",releaseId:t};return he(Ue(this.#e,this.#t,r,n))}archive({releaseId:t},n){const r={actionType:"sanity.action.release.archive",releaseId:t};return he(Ue(this.#e,this.#t,r,n))}unarchive({releaseId:t},n){const r={actionType:"sanity.action.release.unarchive",releaseId:t};return he(Ue(this.#e,this.#t,r,n))}schedule({releaseId:t,publishAt:n},r){const s={actionType:"sanity.action.release.schedule",releaseId:t,publishAt:n};return he(Ue(this.#e,this.#t,s,r))}unschedule({releaseId:t},n){const r={actionType:"sanity.action.release.unschedule",releaseId:t};return he(Ue(this.#e,this.#t,r,n))}delete({releaseId:t},n){const r={actionType:"sanity.action.release.delete",releaseId:t};return he(Ue(this.#e,this.#t,r,n))}fetchDocuments({releaseId:t},n){return he(cg(this.#e,this.#t,t,n))}}class tk{#e;#t;constructor(t,n){this.#e=t,this.#t=n}
686getById(t){return Qe(this.#e,this.#t,{uri:`/users/${t}`})}}class nk{#e;#t;constructor(t,n){this.#e=t,this.#t=n}getById(t){return he(Qe(this.#e,this.#t,{uri:`/users/${t}`}))}}class uo{assets;datasets;live;mediaLibrary;projects;users;agent;releases;#e;#t;listen=Ag;constructor(t,n=ks){this.config(n),this.#t=t,this.assets=new xA(this,this.#t),this.datasets=new VA(this,this.#t),this.live=new kg(this),this.mediaLibrary={video:new Rg(this,this.#t)},this.projects=new JA(this,this.#t),this.users=new tk(this,this.#t),this.agent={action:new RA(this,this.#t)},this.releases=new ZA(this,this.#t)}clone(){return new uo(this.#t,this.config())}config(t){if(t===void 0)return{...this.#e};if(this.#e&&this.#e.allowReconfigure===!1)throw new Error("Existing client instance cannot be reconfigured - use `withConfig(newConfig)` to return a new client");return this.#e=Zm(t,this.#e||{}),this}withConfig(t){const n=this.config();return new uo(this.#t,{...n,...t,stega:{...n.stega||{},...typeof t?.stega=="boolean"?{enabled:t.stega}:t?.stega||{}}})}fetch(t,n,r){return ag(this,this.#t,this.#e.stega,t,n,r)}getDocument(t,n){if(n?.includeAllVersions===!0)return Gr(this,this.#t,t,{...n,includeAllVersions:!0});const r={signal:n?.signal,tag:n?.tag,releaseId:n?.releaseId,...n&&"includeAllVersions"in n?{includeAllVersions:!1}:{}};return Gr(this,this.#t,t,r)}getDocuments(t,n){return lg(this,this.#t,t,n)}create(t,n){return Bo(this,this.#t,t,"create",n)}createIfNotExists(t,n){return ug(this,this.#t,t,n)}createOrReplace(t,n){return fg(this,this.#t,t,n)}createVersion({document:t,publishedId:n,releaseId:r,baseId:s,ifBaseRevisionId:i},o){if(!t)return hg(this,this.#t,n,s,r,i,o);const a=co("createVersion",{document:t,publishedId:n,releaseId:r}),l={...t,_id:a},u=n||Xs(t._id);return dg(this,this.#t,l,u,o)}delete(t,n){return pg(this,this.#t,t,n)}discardVersion({releaseId:t,publishedId:n},r,s){const i=lo(n,t);return mg(this,this.#t,i,r,s)}replaceVersion({document:t,publishedId:n,releaseId:r},s){const i=co("replaceVersion",{document:t,publishedId:n,releaseId:r}),o={...t,_id:i};return gg(this,this.#t,o,s)}unpublishVersion({releaseId:t,publishedId:n},r){const s=Ys(n,t);return yg(this,this.#t,s,n,r)}mutate(t,n){return bg(this,this.#t,t,n)}patch(t,n){return new ar(t,n,this)}transaction(t){return new Vo(t,this)}action(t,n){return Ue(this,this.#t,t,n)}request(t){return Qe(this,this.#t,t)}getUrl(t,n){return Pc(this,t,n)}getDataUrl(t,n){return Mt(this,t,n)}}class fo{assets;datasets;live;mediaLibrary;projects;users;agent;releases;observable;#e;#t;listen=Ag;constructor(t,n=ks){this.config(n),this.#t=t,this.assets=new OA(this,this.#t),this.datasets=new BA(this,this.#t),this.live=new kg(this),this.mediaLibrary={video:new qA(this,this.#t)},this.projects=new YA(this,this.#t),this.users=new nk(this,this.#t),this.agent={action:new PA(this,this.#t)},this.releases=new ek(this,this.#t),this.observable=new uo(t,n)}clone(){return new fo(this.#t,this.config())}config(t){if(t===void 0)return{...this.#e};if(this.#e&&this.#e.allowReconfigure===!1)throw new Error("Existing client instance cannot be reconfigured - use `withConfig(newConfig)` to return a new client");return this.observable&&this.observable.config(t),this.#e=Zm(t,this.#e||{}),this}withConfig(t){const n=this.config();return new fo(this.#t,{...n,...t,stega:{...n.stega||{},...typeof t?.stega=="boolean"?{enabled:t.stega}:t?.stega||{}}})}fetch(t,n,r){return he(ag(this,this.#t,this.#e.stega,t,n,r))}getDocument(t,n){if(n?.includeAllVersions===!0)return he(Gr(this,this.#t,t,{...n,includeAllVersions:!0}));const r={signal:n?.signal,tag:n?.tag,releaseId:n?.releaseId,...n&&"includeAllVersions"in n?{includeAllVersions:!1}:{}};return he(Gr(this,this.#t,t,r))}getDocuments(t,n){return he(lg(this,this.#t,t,n))}create(t,n){return he(Bo(this,this.#t,t,"create",n))}createIfNotExists(t,n){return he(ug(this,this.#t,t,n))}createOrReplace(t,n){return he(fg(this,this.#t,t,n))}createVersion({document:t,publishedId:n,releaseId:r,baseId:s,ifBaseRevisionId:i},o){if(!t)return Ia(hg(this,this.#t,n,s,r,i,o));const a=co("createVersion",{document:t,publishedId:n,releaseId:r}),l={...t,_id:a},u=n||Xs(t._id);return Ia(dg(this,this.#t,l,u,o))}delete(t,n){return he(pg(this,this.#t,t,n))}discardVersion({releaseId:t,publishedId:n}
686,r,s){const i=lo(n,t);return he(mg(this,this.#t,i,r,s))}replaceVersion({document:t,publishedId:n,releaseId:r},s){const i=co("replaceVersion",{document:t,publishedId:n,releaseId:r}),o={...t,_id:i};return Ia(gg(this,this.#t,o,s))}unpublishVersion({releaseId:t,publishedId:n},r){const s=Ys(n,t);return he(yg(this,this.#t,s,n,r))}mutate(t,n){return he(bg(this,this.#t,t,n))}patch(t,n){return new Dn(t,n,this)}transaction(t){return new Uo(t,this)}action(t,n){return he(Ue(this,this.#t,t,n))}request(t){return he(Qe(this,this.#t,t))}dataRequest(t,n,r){return he(pr(this,this.#t,t,n,r))}getUrl(t,n){return Pc(this,t,n)}getDataUrl(t,n){return Mt(this,t,n)}}function rk(e,t){return{requester:Jf(e),createClient:n=>{const r=Jf(e,{ignoreWarnings:n.ignoreWarnings});return new t((s,i)=>(i||r)({maxRedirects:0,maxRetries:n.maxRetries,retryDelay:n.retryDelay,lineage:n.lineage,...s}),n)}}}var sk=[];const ik=rk(sk,fo),rd=ik.createClient,sd=e=>{const t=Fo(),n={...e};let r=rd(n),s=Pf(t.visualEditing);const i=IT(t.liveContent);return{client:r,config:n,fetch:(...o)=>r.fetch(...o),liveStore:i,queryStore:s,setToken(o){n.token=o,r=rd(n),s&&t.visualEditing&&(s=Pf(t.visualEditing))}}};function xg(e,t){const n=typeof e=="string"?e:"default",r=Le();if(r._sanity?.[n])return r._sanity[n];r._sanity=r._sanity||{};const s=Fo(),{additionalClients:i={},liveContent:o,visualEditing:a,...l}=s;return!l.disableSmartCdn&&r.$preview&&(l.useCdn=!1),n==="default"?(r._sanity.default=sd(l),r._sanity.default):(r._sanity[n]=sd(Oo(i[n],l)),r._sanity[n])}const ok="$s";function qo(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);const[n,r]=e;if(!n||typeof n!="string")throw new TypeError("[nuxt] [useState] key must be a string: "+n);if(r!==void 0&&typeof r!="function")throw new Error("[nuxt] [useState] init must be a function: "+r);const s=ok+n,i=Le(),o=Ql(i.payload.state,s);if(r&&(i._state[s]??={_default:r}),o.value===void 0&&r){const a=r();if(De(a))return i.payload.state[s]=a,a;o.value=a}return o}function ak(){return qo("sanity-preview-environment",()=>"checking")}function lk(){const e=ak();return ke(()=>e.value==="checking"?null:["presentation-iframe","presentation-window"].includes(e.value))}const ck="sanity-preview-perspective",Og=()=>{const{visualEditing:e}=Fo();if(!e)return;const t=qo("sanity-preview",()=>!1),n=ke({get(){return e.previewMode===!1?!0:t.value},set(s){t.value=s}});return xt({enabled:n,inFrame:!!(window.self!==window.top||window.opener),token:e.token,previewMode:e.previewMode,previewModeId:e.previewModeId})},uk=(()=>{const e=function(){};return e.prototype=Object.create(null),e})();function fk(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");const n=new uk,r=t||{},s=r.decode||dk;let i=0;for(;i<e.length;){const o=e.indexOf("=",i);if(o===-1)break;let a=e.indexOf(";",i);if(a===-1)a=e.length;else if(a<o){i=e.lastIndexOf(";",o-1)+1;continue}const l=e.slice(i,o).trim();if(r?.filter&&!r?.filter(l)){i=a+1;continue}if(n[l]===void 0){let u=e.slice(o+1,a).trim();u.codePointAt(0)===34&&(u=u.slice(1,-1)),n[l]=hk(u,s)}i=a+1}return n}function dk(e){return e.includes("%")?decodeURIComponent(e):e}function hk(e,t){try{return t(e)}catch{return e}}const Ei=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function id(e,t,n){const r=n||{},s=r.encode||encodeURIComponent;if(typeof s!="function")throw new TypeError("option encode is invalid");if(!Ei.test(e))throw new TypeError("argument name is invalid");const i=s(t);if(i&&!Ei.test(i))throw new TypeError("argument val is invalid");let o=e+"="+i;if(r.maxAge!==void 0&&r.maxAge!==null){const a=r.maxAge-0;if(Number.isNaN(a)||!Number.isFinite(a))throw new TypeError("option maxAge is invalid");o+="; Max-Age="+Math.floor(a)}if(r.domain){if(!Ei.test(r.domain))throw new TypeError("option domain is invalid");o+="; Domain="+r.domain}if(r.path){if(!Ei.test(r.path))throw new TypeError("option path is invalid");o+="; Path="+r.path}if(r.expires){if(!pk(r.expires)||Number.isNaN(r.expires.valueOf()))throw new TypeError("option expires is invali
686d");o+="; Expires="+r.expires.toUTCString()}if(r.httpOnly&&(o+="; HttpOnly"),r.secure&&(o+="; Secure"),r.priority)switch(typeof r.priority=="string"?r.priority.toLowerCase():r.priority){case"low":{o+="; Priority=Low";break}case"medium":{o+="; Priority=Medium";break}case"high":{o+="; Priority=High";break}default:throw new TypeError("option priority is invalid")}if(r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:{o+="; SameSite=Strict";break}case"lax":{o+="; SameSite=Lax";break}case"strict":{o+="; SameSite=Strict";break}case"none":{o+="; SameSite=None";break}default:throw new TypeError("option sameSite is invalid")}return r.partitioned&&(o+="; Partitioned"),o}function pk(e){return Object.prototype.toString.call(e)==="[object Date]"||e instanceof Date}function Dt(e){if(typeof e!="object")return e;var t,n,r=Object.prototype.toString.call(e);if(r==="[object Object]"){if(e.constructor!==Object&&typeof e.constructor=="function"){n=new e.constructor;for(t in e)e.hasOwnProperty(t)&&n[t]!==e[t]&&(n[t]=Dt(e[t]))}else{n={};for(t in e)t==="__proto__"?Object.defineProperty(n,t,{value:Dt(e[t]),configurable:!0,enumerable:!0,writable:!0}):n[t]=Dt(e[t])}return n}if(r==="[object Array]"){for(t=e.length,n=Array(t);t--;)n[t]=Dt(e[t]);return n}return r==="[object Set]"?(n=new Set,e.forEach(function(s){n.add(Dt(s))}),n):r==="[object Map]"?(n=new Map,e.forEach(function(s,i){n.set(Dt(i),Dt(s))}),n):r==="[object Date]"?new Date(+e):r==="[object RegExp]"?(n=new RegExp(e.source,e.flags),n.lastIndex=e.lastIndex,n):r==="[object DataView]"?new e.constructor(Dt(e.buffer)):r==="[object ArrayBuffer]"?e.slice(0):r.slice(-6)==="Array]"?new e.constructor(e):e}function mk(e){if(e!=="undefined")try{const t=JSON.parse(e);return typeof t=="number"&&String(t)!==e?e:t}catch{return e}}const gk={path:"/",watch:!0,decode:e=>mk(decodeURIComponent(e)),encode:e=>{if(typeof e!="string"||e==="undefined")return encodeURIComponent(JSON.stringify(e));try{if(typeof JSON.parse(e)!="string")return encodeURIComponent(JSON.stringify(e))}catch{}return encodeURIComponent(e)},refresh:!1},Ti=globalThis.cookieStore;function yk(e,t){const n={...gk,...t};n.filter??=u=>u===e;const r=od(n)||{};let s;n.maxAge!==void 0?s=n.maxAge*1e3:n.expires&&(s=n.expires.getTime()-Date.now());const i=s!==void 0&&s<=0,o=i||r[e]===void 0||r[e]===null,a=Dt(i?void 0:r[e]??n.default?.()),l=s&&!i?wk(a,s,n.watch&&n.watch!=="shallow"):it(a);{let u=null;try{!Ti&&typeof BroadcastChannel<"u"&&(u=new BroadcastChannel(`nuxt:cookies:${e}`))}catch{}const c=(m=!1)=>{!m&&(n.readonly||VE(l.value,r[e]))||(vk(e,l.value,n),r[e]=Dt(l.value),u?.postMessage({value:n.encode(l.value)}))},f=m=>{const p=m.refresh?od(n)?.[e]:n.decode(m.value);h=!0,l.value=p,r[e]=Dt(p),Un(()=>{h=!1})};let h=!1;const d=!!Yr();if(d&&Ps(()=>{h=!0,c(),u?.close()}),Ti){const m=p=>{const v=p.changed.find(g=>g.name===e),b=p.deleted.find(g=>g.name===e);v&&f({value:v.value}),b&&f({value:null})};Ti.addEventListener("change",m),d&&Ps(()=>Ti.removeEventListener("change",m))}else u&&(u.onmessage=({data:m})=>f(m));n.watch&&Rt(l,()=>{h||c(n.refresh)},{deep:n.watch!=="shallow"}),o&&c(o)}return l}function od(e={}){return fk(document.cookie,e)}function bk(e,t,n={}){return t==null?id(e,t,{...n,maxAge:-1}):id(e,t,n)}function vk(e,t,n={}){document.cookie=bk(e,t,n)}const ad=2147483647;function wk(e,t,n){let r,s,i=0;const o=n?it(e):{value:e};return Yr()&&Ps(()=>{s?.(),clearTimeout(r)}),Xy((a,l)=>{n&&(s=Rt(o,l));function u(){const f=t-i,h=f<ad?f:ad;r=setTimeout(()=>{if(i+=h,i<t)return u();o.value=void 0,l()},h)}function c(){i=0,clearTimeout(r),u()}return{get(){return a(),o.value},set(f){c(),o.value=f,l()}}})}function Ig(e,t){return typeof e=="string"?e==="published"||e==="drafts"||e==="previewDrafts"||t&&e==="raw":Array.isArray(e)?e.every(n=>typeof n=="string"):!1}const _k=(e,t)=>{const n=typeof e=="string"&&e.includes(",")?e.split(","):e;try{return Ig(n,!1)?n:t}catch(r){return console.warn("Invalid perspective:",e,n,r),t}},Ek=(e,t)=>{const n=Og(),r=yk(ck,{default:()=>null,sameSite:"none",secure:!0,path:"/"});return ke({get(){return e||(n?.enabled?_k(r.value,"drafts"):t||"published")},set(s){try{if(Ig(s,!0))r.value=s;else throw new Error("Invalid perspective value provided")}catch{r.value=null}}})},ld=e=>({fetch:(t,n,r)=>$fetch(e,{method:"POST",body:{query:t,params:n,options:r}})}),Tk=(e,t)=>({default:()=>e?Tt(rl,e===!0?{}:e,t):t.default?.()}),Sk=/(:\w+)\([^)]+\)/g,Ck=/(:\w+)[?+*]/g,Ak=/:\w+/g;function cd(e){const t=e?.meta.key??e.path.replace(Sk,"$1").replace(Ck,"$1").replace(Ak,n=>e.params[n.slice(1)]?.toString()||"");return typeof t=="function"?t(e):t}function kk(e,t){return e===t||t===It?!1:cd(e)!==cd(t)?!0:!e.matched.every((r,s)=>r.components&&r.components.default===t.matched[s]?.components?.default)}function ud(e){return Array.isArray(e)?e:[e]}function Rk(e){const t=[];for(const n of e)n&&t.push({...n,onAfterLeave:n.onAfterLeave?ud(n.onAfterLeave):void 0,onBeforeLeave:n.onBeforeLeave?ud(n.onBeforeLeave):void 0});return Oo(...t)}const Pk=Symbol.for("nuxt:client-only"),Cl=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),xk=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),si=e=>{const t=Le();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{Cl(()=>e())}):Cl(()=>e())};function $g(e){return Object.defineProperty(function(){throw new Error(`[nuxt] \`${e.name}\` is a compiler macro and cannot be called at runtime.`)},"__nuxt_factory",{enumerable:!1,get:()=>e.factory})}const Mg=$g({name:"createUseAsyncData",factory(e={}){function t(...n){const r=typeof n[n.length-1]=="string"?n.pop():void 0;Ok(n[0],n[1])&&n.unshift(r);let[s,i,o={}]=n,a=!1;const l=ke(()=>Ft(s));if(typeof l.value!="string")throw new TypeError("[nuxt] [useAsyncData] key must be a string.");if(typeof i!="function")throw new TypeError("[nuxt] [useAsyncData] handler must be a function.");const u=typeof e=="function",c=Le(),f=u?e(o):e;if(!u)for(const g in f)f[g]!==void 0&&o[g]===void 0&&(o[g]=f[g]);if(o.server??=!0,o.default??=Mk,o.getCachedData??=Ng,o.lazy??=!1,o.immediate??=!0,o.deep??=Yw.deep,o.dedupe??="cancel",u)for(const g in f)f[g]!==void 0&&(o[g]=f[g]);c._asyncData[l.value];function h(){const g={cause:"initial",dedupe:o.dedupe};return c._asyncData[l.value]?._init||(g.cachedData=o.getCachedData(l.value,c,{cause:"initial"}),c._asyncData[l.value]=fd(c,l.value,i,o,g.cachedData)),()=>c._asyncData[l.value].execute(g)}const d=h(),m=c._asyncData[l.value];m._deps++;const p=o.server!==!1&&c.payload.serverRendered;{let g=function(O){const x=c._asyncData[O];x?._deps&&(x._deps--,x._deps===0&&x?._off())};const y=Sn();if(y&&p&&o.immediate&&!y.sp&&(y.sp=[]),y&&!y._nuxtOnBeforeMountCbs){y._nuxtOnBeforeMountCbs=[];const O=y._nuxtOnBeforeMountCbs;gh(()=>{O.forEach(x=>{x()}),O.splice(0,O.length)}),Co(()=>O.splice(0,O.length))}const w=y&&(y._nuxtClientOnly||dt(Pk,!1));p&&c.isHydrating&&(m.error.value||m.data.value!==void 0)?m.status.value=m.error.value?"error":"success":y&&(!w&&c.payload.serverRendered&&c.isHydrating||o.lazy)&&o.immediate?y._nuxtOnBeforeMountCbs.push(d):o.immediate&&m.status.value!=="success"&&d();const _=Yr(),k=Rt(l,(O,x)=>{if((O||x)&&O!==x){a=!0;const D=c._asyncData[x]?.data.value!==void 0,q=c._asyncDataPromises[x]!==void 0,S={cause:"initial",dedupe:o.dedupe};if(!c._asyncData[O]?._init){let P;x&&D?P=c._asyncData[x].data.value:(P=o.getCachedData(O,c,{cause:"initial"}),S.cachedData=P),c._asyncData[O]=fd(c,O,i,o,P)}c._asyncData[O]._deps++,x&&g(x),(o.immediate||D||q)&&c._asyncData[O].execute(S),Is(()=>{a=!1})}},{flush:"sync"}),$=o.watch?Rt(o.watch,()=>{a||(c._asyncData[l.value]?._execute.isPending()&&Is(()=>{c._asyncData[l.value]?._execute.flush()}),c._asyncData[l.value]?._execute({cause:"watch",dedupe:o.dedupe}))}):()=>{};_&&Ps(()=>{k(),$(),g(l.value)})}const v={data:Si(()=>c._asyncData[l.value]?.data),pending:Si(()=>c._asyncData[l.value]?.pending),status:Si(()=>c._asyncData[l.value]?.status),error:Si(()=>c._asyncData[l.value]?.error),refresh:(...g)=>c._asyncData[l.value]?._init?c._asyncData[l.value].execute(...g):h()(),execute:(...g)=>v.refresh(...g),clear:()=>{const g=c._asyncData[l.value];if(g?._abortController)try{g._abortController.abort(new DOMException("AsyncData aborted by user.","AbortError"))}finally{g._abortController=void 0}Lg(c,l.value)}},b=Promise.resolve(c._asyncDataPromises[l.value]).then(()=>v);return Object.assign(b,v),Object.defineProperties(b,{then:{enumerable:!0,value:b.then.bind(b)},catch:{enumerable:!0,value:b.catch.bind(b)},finally:{enumerable:!0,value:b.finally.bind(b)}}),b}return t}}),jg=Mg.__nuxt_factory();Mg.__nuxt_factory({lazy:!0,_functionName:"useLazyAsyncData"});function Si(e){return ke({get(){return e()?.value},set(t){const n=e();n&&(n.value=t)}})}function Ok(e,t){return!(typeof e=="string"||typeof e=="object"&&e!==null||typeof e=="function"&&typeof t=="function")}async function Ik(e){await new Promise(n=>si(n));const t=e?p_(e):void 0;await Le().hooks.callHookParallel("app:data:refresh",t)}function Lg(e,t){t in e.payload.data&&(e.payload.data[t]=void 0),t in e.payload._errors&&(e.payload._errors[t]=void 0),e._asyncData[t]&&(e._asyncData[t].data.value=re(e._asyncData[t]._default()),e._asyncData[t].error.value=void 0,e._asyncData[t].status.value="idle"),t in e._asyncDataPromises&&(e._asyncDataPromises[t]=void 0)}function $k(e,t){const n={};for(const r of t)n[r]=e[r];return n}
686function fd(e,t,n,r,s){e.payload._errors[t]??=void 0;const i=r.getCachedData!==Ng,o=n,a=r.deep?it:Hn,l=s!==void 0,u=e.hook("app:data:refresh",async f=>{(!f||f.includes(t))&&await c.execute({cause:"refresh:hook"})}),c={data:a(l?s:r.default()),pending:ke(()=>c.status.value==="pending"),error:Ql(e.payload._errors,t),status:Hn("idle"),execute:(...f)=>{const[h,d=void 0]=f,m=h&&d===void 0&&typeof h=="object"?h:{};if(e._asyncDataPromises[t]&&(m.dedupe??r.dedupe)==="defer")return e._asyncDataPromises[t];{const b="cachedData"in m?m.cachedData:r.getCachedData(t,e,{cause:m.cause??"refresh:manual"});if(b!==void 0)return e.payload.data[t]=c.data.value=b,c.error.value=void 0,c.status.value="success",Promise.resolve(b)}c._abortController&&c._abortController.abort(new DOMException("AsyncData request cancelled by deduplication","AbortError")),c._abortController=new AbortController,c.status.value="pending";const p=new AbortController,v=new Promise((b,g)=>{try{const y=m.timeout??r.timeout,w=jk([c._abortController?.signal,m?.signal],p.signal,y);if(w.aborted){const _=w.reason;g(_ instanceof Error?_:new DOMException(String(_??"Aborted"),"AbortError"));return}return w.addEventListener("abort",()=>{const _=w.reason;g(_ instanceof Error?_:new DOMException(String(_??"Aborted"),"AbortError"))},{once:!0,signal:p.signal}),Promise.resolve(o(e,{signal:w})).then(b,g)}catch(y){g(y)}}).then(async b=>{let g=b;r.transform&&(g=await r.transform(b)),r.pick&&(g=$k(g,r.pick)),e.payload.data[t]=g,c.data.value=g,c.error.value=void 0,c.status.value="success"}).catch(b=>{if(e._asyncDataPromises[t]&&e._asyncDataPromises[t]!==v||c._abortController?.signal.aborted)return e._asyncDataPromises[t];if(typeof DOMException<"u"&&b instanceof DOMException&&b.name==="AbortError")return c.status.value="idle",e._asyncDataPromises[t];c.error.value=$e(b),c.data.value=re(r.default()),c.status.value="error"}).finally(()=>{p.abort(),delete e._asyncDataPromises[t]});return e._asyncDataPromises[t]=v,e._asyncDataPromises[t]},_execute:x0((...f)=>c.execute(...f),0,{leading:!0}),_default:r.default,_deps:0,_init:!0,_hash:void 0,_off:()=>{u(),e._asyncData[t]?._init&&(e._asyncData[t]._init=!1),i||Un(()=>{e._asyncData[t]?._init||(Lg(e,t),c.execute=()=>Promise.resolve())})}};return c}const Mk=()=>{},Ng=(e,t,n)=>{if(t.isHydrating)return t.payload.data[e];if(n.cause!=="refresh:manual"&&n.cause!=="refresh:hook")return t.static.data[e]};function jk(e,t,n){const r=e.filter(o=>!!o);if(typeof n=="number"&&n>=0){const o=AbortSignal.timeout?.(n);o&&r.push(o)}if(AbortSignal.any)return AbortSignal.any(r);const s=new AbortController;for(const o of r)if(o.aborted){const a=o.reason??new DOMException("Aborted","AbortError");try{s.abort(a)}catch{s.abort()}return s.signal}const i=()=>{const a=r.find(l=>l.aborted)?.reason??new DOMException("Aborted","AbortError");try{s.abort(a)}catch{s.abort()}};for(const o of r)o.addEventListener?.("abort",i,{once:!0,signal:t});return s.signal}const Lk=({client:e,queryKey:t,liveStore:n})=>{const r=qo(`tags:${t}`,()=>[]);let s=()=>{},i=()=>{};if(n){const a=n.subscribe(t,(l,u)=>{const c=new Set(l);r.value.some(f=>c.has(f))&&(u(),Ik(t))});s=a.unsubscribe,i=a.getLastLiveEventId}return{fetchTags:async(a,l,u)=>{const{syncTags:c}=await e.fetch(a,l,{...u,resultSourceMap:!1,returnQuery:!1,stega:!1,tag:["fetch-sync-tags"].filter(Boolean).join(".")});r.value=c?.map(f=>`sanity:${f}`)||[]},getLastLiveEventId:i,unsubscribe:s}},Nk=({onSnapshot:e,params:t,query:n,queryStore:r})=>{let s=()=>{};if(r){const i=o=>r.createFetcherStore(n,t?JSON.parse(JSON.stringify(t)):void 0,void 0).subscribe(u=>{u.data&&e(u.data,u.sourceMap)});s=i(),t&&Rt(t,(o,a,l)=>{l(()=>s()),s=i()})}return{unsubscribe:s}};function Dk(e,t,n={}){const{client:r,key:s,perspective:i,stega:o,queryOptions:a,...l}=n,u=a?.perspective??i,c=a?.stega??o,f=xg(r),h=Fo(),d=Og(),m=f.client.config(),p=t?xt(t):void 0,v=s||"sanity-"+Yn(e+(p?JSON.stringify(p):"")),b=Ek(u,m.perspective);l.watch=l.watch||[],l.watch.push(b),p&&l.watch.push(p);const g=it(null),y=it(null),w=it(()=>{}),_=(R,C)=>{g.value=R,y.value=C||null,w.value=om(R,C,h.visualEditing?.studioUrl)},k=h.visualEditing&&d?.enabled&&b.value!=="published"?ld(h.visualEditing.proxyEndpoint):h.queryEndpoint?ld(h.queryEndpoint):f.client;let $,O;const x=lk();Rt(x,(R,C,I)=>{I(()=>{O?.unsubscribe?.(),$?.unsubscribe()});const N=!!(d?.enabled&&h.visualEditing?.mode==="live-visual-editing"&&R===!0);if(N){O=Nk({onSnapshot:_,params:p,query:e,queryStore:f.queryStore});return}h.liveContent&&!N&&($=Lk({client:f.client,liveStore:f.liveStore,queryKey:v}))},{immediate:!0});const D=jg(v,async()=>{const R=OT({clientConfig:m,lastLiveEventId:$?.getLastLiveEventId(),liveContentEnabled:!!h.liveContent,perspective:b.value,queryOptions:a,runtimeConfig:h,stega:c,visualEditingEnabled:!!d?.enabled});await $?.fetchTags(e,p,{cacheMode:b.value==="published"?"noStale":void 0,filterResponse:!1,perspective:b.value,useCdn:b.value==="published"});const{result:C,resultSourceMap:I}=await k.fetch(e,p||{},R);return _(C,I),{data:C,sourceMap:I}},l),{then:q,catch:S,finally:P,...j}=D;return Object.assign(new Promise(R=>{D.then(C=>{C.data.value&&_(C.data.value.data,C.data.value.sourceMap),R({...j,data:g,sourceMap:y,encodeDataAttribute:w})})}),{...j,data:g,sourceMap:y,encodeDataAttribute:w})}const qe=T_("MainStore",{state:()=>({home:{},settings:{},footer:{},colors:[],slugs:{},studioSubpages:[],previewIsActive:!1,window:{width:0,height:0,desktopWidth:700},navIsVisible:!0,textColor:"#000",menuIsOpen:!1,messages:{notFound:"Page not found."},pageTransition:"slide-up"}),actions:{async fetchSiteContent(){const{data:e}=await Dk(HE);this.home=e.value.home,this.settings=e.value.settings,this.footer=e.value.settings&&e.value.settings.footer,this.colors=e.value.colors,this.slugs=e.value.slugs,this.studioSubpages=e.value.studioSubpages},showNavigation(){this.navIsVisible=!0},hideNavigation(){this.navIsVisible=!1},setTextColor(e){this.textColor=e},closeMenu(){this.menuIsOpen=!1},openMenu(){this.menuIsOpen=!0},toggleMenu(){this.menuIsOpen=!this.menuIsOpen},setPageTransition(e){this.pageTransition=e}}});function xe(){return{name:"slide-up"}}const Fk={validate({params:e}){const t=qe();return!t.slugs.journals.includes(e.slug)&&!t.previewIsActive?$e({
686statusCode:404,message:"Journal not found"}):!0},pageTransition:xe()},Hk={validate({params:e}){const t=qe();return!t.slugs.journals.includes(e.slug)&&!t.previewIsActive?$e({statusCode:404,message:"Page not found"}):!0},pageTransition:xe()},Uk={validate({params:e}){const t=qe();return!t.slugs.publicTalks.includes(e.slug)&&!t.previewIsActive?$e({statusCode:404,message:"Page not found"}):!0},pageTransition:xe()},Vk={validate({params:e}){const t=qe();return!t.slugs.writings.includes(e.slug)&&!t.previewIsActive?$e({statusCode:404,message:"Page not found"}):!0},pageTransition:xe()},Bk={pageTransition:xe()},qk={pageTransition:xe()},Wk={pageTransition:xe()},zk={pageTransition:xe()},Kk={pageTransition:xe()},Gk={validate(){const e=qe();return!e.slugs.pages.includes("selected")&&!e.previewIsActive?$e({statusCode:404,message:"Page not found"}):!0},pageTransition:xe()},Qk={validate(){const e=qe();return!e.slugs.pages.includes("awards")&&!e.previewIsActive?$e({statusCode:404,message:"Page not found"}):!0},pageTransition:xe()},Jk={validate(){const e=qe();return!e.slugs.pages.includes("clients")&&!e.previewIsActive?$e({statusCode:404,message:"Page not found"}):!0},pageTransition:xe()},Yk={validate(){const e=qe();return!e.slugs.pages.includes("collaborators")&&!e.previewIsActive?$e({statusCode:404,message:"Page not found"}):!0},pageTransition:xe()},Xk={validate(){const e=qe();return!e.slugs.pages.includes("people")&&!e.previewIsActive?$e({statusCode:404,message:"Page not found"}):!0},pageTransition:xe()},Zk={validate(){const e=qe();return!e.slugs.pages.includes("practice")&&!e.previewIsActive?$e({statusCode:404,message:"Page not found"}):!0},pageTransition:xe()},e1={validate({params:e}){const t=qe();return!t.slugs.projects.includes(e.slug)&&!t.previewIsActive?$e({statusCode:404,message:"Project not found"}):!0},pageTransition:xe()},t1={validate({params:e}){const t=qe();return!t.slugs.projects.includes(e.slug)&&!t.previewIsActive?$e({statusCode:404,message:"Project not found"}):!0},pageTransition:xe()},n1={validate({params:e}){const t=qe();return!t.slugs.projects.includes(e.slug)&&!t.previewIsActive?$e({statusCode:404,message:"Project not found"}):!0},pageTransition:xe()},r1={validate({params:e}){const t=qe();return!t.slugs.studioSubpages.includes(e.slug)&&!t.previewIsActive?$e({statusCode:404,message:"Subpage not found"}):!0},pageTransition:xe()},s1={validate({params:e}){const t=qe();return!t.slugs.values.includes(e.slug)&&!t.previewIsActive?$e({statusCode:404,message:"Value not found"}):!0},pageTransition:xe()},i1={validate(){const e=qe();return!e.slugs.pages.includes("contact")&&!e.previewIsActive?$e({statusCode:404,message:"Page not found"}):!0},pageTransition:xe()},o1={pageTransition:xe()},a1={pageTransition:xe()},l1={validate(){const e=qe();return!e.slugs.pages.includes("search")&&!e.previewIsActive?$e({statusCode:404,message:"Page not found"}):!0},pageTransition:xe()},c1={validate(){const e=qe();return!e.slugs.pages.includes("studio")&&!e.previewIsActive?$e({statusCode:404,message:"Page not found"}):!0},pageTransition:xe()},u1={pageTransition:xe()},f1={validate({params:e}){const t=qe();return!t.slugs.pages.includes(e.slug)&&!t.previewIsActive?$e({statusCode:404,message:"Page not found"}):!0},pageTransition:xe()},d1={pageTransition:xe()},Na=[{name:"discourse-journals-slug-slideshow",path:"/discourse/journals/:slug()/slideshow",meta:{...Fk||{},middleware:"transition"},component:()=>me(()=>import("./B1bwpvfw.js"),__vite__mapDeps([2,3,4,5,6,7,8,9,10,11,12,13,14,15]),import.meta.url)},{name:"discourse-journals-slug",path:"/discourse/journals/:slug()",meta:{...Hk||{},middleware:"transition"},component:()=>me(()=>import("./BJnEEHsu.js"),__vite__mapDeps([16,17,18,7,8,9,10,11,19,20,21,22,23,14,15]),import.meta.url)},{name:"discourse-public-talks-slug",path:"/discourse/public-talks/:slug()",meta:{...Uk||{},middleware:"transition"},component:()=>me(()=>import("./BKExR8LH.js"),__vite__mapDeps([24,17,18,7,8,9,10,11,19,20,21,22,23,14,15]),import.meta.url)},{name:"discourse-writing-slug",path:"/discourse/writing/:slug()",meta:{...Vk||{},middleware:"transition"},component:()=>me(()=>import("./3HM8U0XQ.js"),__vite__mapDeps([25,17,18,7,8,9,10,11,19,20,21,22,23,14,15]),import.meta.url)},{name:"discourse-journals",path:"/discourse/journals",meta:{...Bk||{},middleware:"transition"},component:()=>me(()=>import("./BsA7AbDr.js"),__vite__mapDeps([26,27,7,8,28,15]),import.meta.url)},{name:"discourse-process",path:"/discourse/process",meta:{...qk||{},middleware:"transition"},component:()=>me(()=>import("./CCWuMPrl.js"),__vite__mapDeps([29,27,7,8,28,15]),import.meta.url)},{name:"discourse-public-talks",path:"/discourse/public-talks",meta:{...Wk||{},middleware:"transition"},component:()=>me(()=>import("./bp8BS_2d.js"),__vite__mapDeps([30,27,7,8,28,15]),import.meta.url)},{name:"discourse-writing",path:"/discourse/writing",meta:{...zk||{},middleware:"transition"},component:()=>me(()=>import("./BGzYeiF6.js"),__vite__mapDeps([31,27,7,8,28,15]),import.meta.url)},{name:"projects-image",path:"/projects/image",meta:{...Kk||{},middleware:"transition"},component:()=>me(()=>import("./C173fRq9.js"),__vite__mapDeps([32,33,5,34,7,8,15,35]),import.meta.url)},{name:"projects-map",path:"/projects/map",component:()=>me(()=>import("./dAaZAkHg.js"),__vite__mapDeps([36,33,5,34,7,8,15,37]),import.meta.url)},{name:"projects-selected",path:"/projects/selected",meta:{...Gk||{},middleware:"transition"},component:()=>me(()=>import("./CThrRx2P.js"),__vite__mapDeps([38,7,8,14,15,39]),import.meta.url)},{name:"studio-awards",path:"/studio/awards",meta:{...Qk||{},middleware:"transition"},component:()=>me(()=>
686import("./hiM1knDT.js"),__vite__mapDeps([40,14,15,41]),import.meta.url)},{name:"studio-clients",path:"/studio/clients",meta:{...Jk||{},middleware:"transition"},component:()=>me(()=>import("./CAwV6VjV.js"),__vite__mapDeps([42,14,15,43]),import.meta.url)},{name:"studio-collaborators",path:"/studio/collaborators",meta:{...Yk||{},middleware:"transition"},component:()=>me(()=>import("./DtxL51UB.js"),__vite__mapDeps([44,14,15,45]),import.meta.url)},{name:"studio-people",path:"/studio/people",meta:{...Xk||{},middleware:"transition"},component:()=>me(()=>import("./DzRcNjVV.js"),__vite__mapDeps([46,7,8,21,22,14,15,47]),import.meta.url)},{name:"studio-practice",path:"/studio/practice",meta:{...Zk||{},middleware:"transition"},component:()=>me(()=>import("./hihwoJvw.js"),__vite__mapDeps([48,21,7,8,22,14,15,49]),import.meta.url)},{name:"projects-slug-image-overview",path:"/projects/:slug()/image-overview",meta:{...e1||{},middleware:"transition"},component:()=>me(()=>import("./DwLIOfGa.js"),__vite__mapDeps([50,4,5,6,7,8,9,10,14,15,51]),import.meta.url)},{name:"projects-slug-slideshow",path:"/projects/:slug()/slideshow",meta:{...t1||{},middleware:"transition"},component:()=>me(()=>import("./bDQacbF_.js"),__vite__mapDeps([52,3,4,5,6,7,8,9,10,11,12,13,14,15]),import.meta.url)},{name:"projects-slug",path:"/projects/:slug()",meta:{...n1||{},middleware:"transition"},component:()=>me(()=>import("./BQhK7gkg.js"),__vite__mapDeps([53,18,7,8,9,10,11,19,20,21,22,14,15,54]),import.meta.url)},{name:"studio-slug",path:"/studio/:slug()",meta:{...r1||{},middleware:"transition"},component:()=>me(()=>import("./BNgIOZ2A.js"),__vite__mapDeps([55,21,7,8,22,14,15,56]),import.meta.url)},{name:"values-slug",path:"/values/:slug()",meta:{...s1||{},middleware:"transition"},component:()=>me(()=>import("./a5FhIeN6.js"),__vite__mapDeps([57,4,5,6,7,8,11,12,14,15,58]),import.meta.url)},{name:"contact",path:"/contact",meta:{...i1||{},middleware:"transition"},component:()=>me(()=>import("./BLMFSFts.js"),__vite__mapDeps([59,21,7,8,22,14,15,60]),import.meta.url)},{name:"discourse",path:"/discourse",meta:{...o1||{},middleware:"transition"},component:()=>me(()=>import("./DZPtHg60.js"),__vite__mapDeps([61,27,7,8,28,15]),import.meta.url)},{name:"projects",path:"/projects",meta:{...a1||{},middleware:"transition"},component:()=>me(()=>import("./BB8V3wAe.js"),__vite__mapDeps([62,33,5,34,15,63]),import.meta.url)},{name:"search",path:"/search",meta:{...l1||{},middleware:"transition"},component:()=>me(()=>import("./DXTuCWXL.js"),__vite__mapDeps([64,19,14,15,65]),import.meta.url)},{name:"studio",path:"/studio",meta:{...c1||{},middleware:"transition"},component:()=>me(()=>import("./BnmBpyka.js"),__vite__mapDeps([66,21,7,8,22,14,15,67]),import.meta.url)},{name:"values",path:"/values",meta:{...u1||{},middleware:"transition"},component:()=>me(()=>import("./DT_sQvQ-.js"),__vite__mapDeps([68,15,69]),import.meta.url)},{name:"slug",path:"/:slug()",meta:{...f1||{},middleware:"transition"},component:()=>me(()=>
686import("./DzQLhZiR.js"),__vite__mapDeps([70,14,15,71]),import.meta.url)},{name:"index",path:"/",meta:{...d1||{},middleware:"transition"},component:()=>me(()=>import("./CVHOE535.js"),__vite__mapDeps([72,7,8,9,10,11,12,14,15,73]),import.meta.url)}],h1={scrollBehavior(e,t,n){const r=Le(),s=bt().options?.scrollBehaviorType??"auto";return e.path.replace(/\/$/,"")===t.path.replace(/\/$/,"")?t.hash&&!e.hash?{left:0,top:0}:e.hash?{el:e.hash,top:Dg(e.hash),behavior:s}:!1:(typeof e.meta.scrollToTop=="function"?e.meta.scrollToTop(e,t):e.meta.scrollToTop)===!1?!1:t===It?dd(e,t,n,s):new Promise(o=>{const a=()=>{requestAnimationFrame(()=>o(dd(e,t,n,s)))};r.hooks.hookOnce("page:loading:end",()=>{const l=r["~transitionPromise"];l?l.then(a):a()})})}};function Dg(e){try{const t=document.querySelector(e);if(t)return(Number.parseFloat(getComputedStyle(t).scrollMarginTop)||0)+(Number.parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop)||0)}catch{}return 0}function dd(e,t,n,r){if(n)return n;const s=kk(e,t);return e.hash?{el:e.hash,top:Dg(e.hash),behavior:s?r:"instant"}:{left:0,top:0}}const p1={hashMode:!1,scrollBehaviorType:"auto"},$n={...p1,...h1},m1=async(e,t)=>{let n,r;if(!e.meta?.validate)return;const s=([n,r]=Ir(()=>Promise.resolve(e.meta.validate(e))),n=await n,r(),n);if(s===!0)return;const i=$e({fatal:!0,status:s&&(s.status||s.statusCode)||404,statusText:s&&(s.statusText||s.statusMessage)||`Page Not Found: ${e.fullPath}`,data:{path:e.fullPath}});return typeof window<"u"&&window.history.pushState({},"",t.fullPath),i},g1=e=>{const t=Mo({path:e.path});if(t.redirect){const n=t.redirect.includes("#")?t.redirect:t.redirect+e.hash;return cn(n,{acceptRelative:!0})?(window.location.href=n,!1):n}},y1=[m1,g1],Al={transition:()=>me(()=>import("./DNSrOH4Y.js"),[],import.meta.url)};function b1(e,t,n){const{pathname:r,search:s,hash:i}=t,o=e.indexOf("#");if(o>-1){const u=i.includes(e.slice(o))?e.slice(o).length:1;let c=i.slice(u);return c[0]!=="/"&&(c="/"+c),Au(c,"")}const a=Au(r,e),l=!n||lp(a,n)?a:n;return l+(l.includes("?")?"":s)+i}const v1=wt({name:"nuxt:router",enforce:"pre",async setup(e){let t,n,r=dr().app.baseURL;const s=$n.history?.(r)??fE(r),i=$n.routes?([t,n]=Ir(()=>$n.routes(Na)),t=await t,n(),t??Na):Na;let o;const a=IE({...$n,scrollBehavior:(b,g,y)=>{if(g===It){o=y;return}if($n.scrollBehavior){if(a.options.scrollBehavior=$n.scrollBehavior,"scrollRestoration"in window.history){const w=a.beforeEach(()=>{w(),window.history.scrollRestoration="manual"})}return $n.scrollBehavior(b,It,o||y)}},history:s,routes:i});"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto"),e.vueApp.use(a);const l=Hn(a.currentRoute.value);a.afterEach((b,g)=>{l.value=g}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>l.value});const u=b1(r,window.location,e.payload.path),c=Hn(a.currentRoute.value),f=()=>{c.value=a.currentRoute.value};a.afterEach((b,g)=>{b.matched.at(-1)?.components?.default===g.matched.at(-1)?.components?.default&&f()});const h={sync:f};for(const b in c.value)Object.defineProperty(h,b,{get:()=>c.value[b],enumerable:!0});e._route=nn(h),e._middleware||={global:[],named:{}};const d=$o();a.afterEach(async(b,g,y)=>{delete e._processingMiddleware,!e.isHydrating&&d.value&&await e.runWithContext(wp),y&&await e.callHook("page:loading:end")});try{[t,n]=Ir(()=>a.isReady()),await t,n()}catch(b){[t,n]=Ir(()=>e.runWithContext(()=>Jn(b))),await t,n()}const m=u!==a.currentRoute.value.fullPath?a.resolve(u):a.currentRoute.value,p=e.isHydrating&&e.payload.prerenderedAt&&e.payload.path&&u!==e.payload.path&&lp(a.currentRoute.value.path,e.payload.path);f();const v=e.payload.state._layout;return a.beforeEach(async(b,g)=>{await e.callHook("page:loading:start"),b.meta=xt(b.meta),e.isHydrating&&v&&!ln(b.meta.layout)&&(b.meta.layout=v),e._processingMiddleware=!0;{const y=new Set([...y1,...e._middleware.global]);for(const _ of b.matched){const k=_.meta.middleware;if(k)for(const $ of Gp(k))y.add($)}const w=Mo({path:b.path});if(w.appMiddleware)for(const _ in w.appMiddleware)w.appMiddleware[_]?y.add(_):y.delete(_);for(const _ of y){const k=typeof _=="string"?e._middleware.named[_]||await Al[_]?.().then($=>$.default||$):_;if(!k)throw new Error(`Unknown route middleware: '${_}'.`);try{const $=await e.runWithContext(()=>k(b,g));if(!e.payload.serverRendered&&e.isHydrating&&($===!1||$ instanceof Error)){const O=$||$e({status:404,statusText:`Page Not Found: ${u}`});return await e.runWithContext(()=>Jn(O)),!1}if($===!0)continue;if($===!1)return $;if($)return _p($)&&$.fatal&&await e.runWithContext(()=>Jn($)),$}catch($){const O=$e($);return O.fatal&&await e.runWithContext(()=>Jn(O)),O}}}}),a.onError(async()=>{delete e._processingMiddleware,await e.callHook("page:loading:end")}),a.afterEach(b=>{if(b.matched.length===0&&!d.value)return e.runWithContext(()=>Jn($e({status:404,fatal:!1,statusText:`Page not found: ${b.fullPath}`,data:{path:b.fullPath}})))}),e.hooks.hookOnce("app:created",async()=>
686{try{if("name"in m&&(m.name=void 0),p){const b=a.resolve(e.payload.path);"name"in b&&(b.name=void 0),await a.replace({...b,force:!0}),e.hooks.hookOnce("app:suspense:resolve",async()=>{await a.replace({...m,force:!0})})}else await a.replace({...m,force:!0});a.options.scrollBehavior=$n.scrollBehavior}catch(b){await e.runWithContext(()=>Jn(b))}}),{provide:{router:a}}}});function w1(e){const t=[Ft(e.method)?.toUpperCase()||"GET",Ft(e.baseURL)];for(const n of[e.query||e.params]){const r=Ft(n);if(!r)continue;const s={};for(const[i,o]of Object.entries(r))s[Ft(i)]=Ft(o);t.push(s)}if(e.body){const n=Ft(e.body);if(!n)t.push(Yn(n));else if(n instanceof ArrayBuffer)t.push(Yn(Object.fromEntries([...new Uint8Array(n).entries()].map(([r,s])=>[r,s.toString()]))));else if(n instanceof FormData){const r={};for(const s of n.entries()){const[i,o]=s;r[i]=o instanceof File?o.name:o}t.push(Yn(r))}else if(Nl(n))t.push(Yn(xt(n)));else try{t.push(Yn(n))}catch{console.warn("[useFetch] Failed to hash body",n)}}return t}const Fg=$g({name:"createUseFetch",factory(e={}){function t(n,r,s){const[i={},o]=typeof r=="string"?[{},r]:[r,s],a=ke(()=>Ft(n)),l=ke(()=>Ft(i.key)||"$f"+Yn([o,typeof a.value=="string"?a.value:"",...w1(i)]));if(!i.baseURL&&typeof a.value=="string"&&a.value[0]==="/"&&a.value[1]==="/")throw new Error('[nuxt] [useFetch] the request URL must not start with "//".');const u=typeof e=="function"?e(i):e,{server:c,lazy:f,default:h,transform:d,pick:m,watch:p,immediate:v,getCachedData:b,deep:g,dedupe:y,timeout:w,..._}={...typeof e=="function"?{}:u,...i,...typeof e=="function"?u:{}},k=xt({...Xw,..._,cache:typeof _.cache=="boolean"?void 0:_.cache}),$={server:c,lazy:f,default:h,transform:d,pick:m,immediate:v,getCachedData:b,deep:g,dedupe:y,timeout:w,watch:p===!1?[]:[...p||[],k]};return jg(p===!1?l.value:l,(x,{signal:D})=>(i.$fetch||globalThis.$fetch)(a.value,{signal:D,...k}),$)}return t}});Fg.__nuxt_factory();Fg.__nuxt_factory({lazy:!0,_functionName:"useLazyFetch"});function _1(e){if(e?.__asyncLoader&&!e.__asyncResolved)return e.__asyncLoader()}async function Hg(e,t=bt()){const{path:n,matched:r}=t.resolve(e);if(!r.length||(t._routePreloaded||=new Set,t._routePreloaded.has(n)))return;const s=t._preloadPromises||=[];if(s.length>4)return Promise.all(s).then(()=>Hg(e,t));t._routePreloaded.add(n);for(const i of r){const o=i.components?.default;if(typeof o!="function")continue;const a=Promise.resolve(o()).catch(()=>{}).finally(()=>s.splice(s.indexOf(a),1));s.push(a)}await Promise.all(s)}function E1(e={}){const t=e.path||window.location.pathname;let n={};try{n=JSON.parse(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||n?.path!==t||n?.expires<Date.now()){try{sessionStorage.setItem("nuxt:reload",JSON.stringify({path:t,expires:Date.now()+(e.ttl??1e4)}))}catch{}if(e.persistState)try{sessionStorage.setItem("nuxt:reload:state",JSON.stringify({state:Le().payload.state}))}catch{}window.location.pathname!==t?window.location.href=t:window.location.reload()}}const T1=(...e)=>e.find(t=>t!==void 0);function S1(e){const t=e.componentName||"NuxtLink";function n(i){return typeof i=="string"&&i.startsWith("#")}function r(i,o,a){const l=a??e.trailingSlash;if(!i||l!=="append"&&l!=="remove")return i;if(typeof i=="string")return Ci(i,l);const u="path"in i&&i.path!==void 0?i.path:o(i).path;return{...i,name:void 0,path:Ci(u,l)}}function s(i){const o=bt(),a=dr(),l=ke(()=>!!re(i.target)&&re(i.target)!=="_self"),u=ke(()=>{const v=re(i.to)||re(i.href)||"";return typeof v=="string"&&cn(v,{acceptRelative:!0})}),c=Ga("RouterLink"),f=c&&typeof c!="string"?c.useLink:void 0,h=ke(()=>{if(re(i.external))return!0;const v=re(i.to)||re(i.href)||"";return typeof v=="object"?!1:v===""||u.value}),d=ke(()=>{const v=re(i.to)||re(i.href)||"";return h.value?v:r(v,o.resolve,re(i.trailingSlash))}),m=h.value?void 0:f?.({...i,to:d,viewTransition:re(i.viewTransition)}),p=ke(()=>{const v=re(i.trailingSlash)??e.trailingSlash;if(!d.value||u.value||n(d.value))return d.value;if(h.value){const b=typeof d.value=="object"&&"path"in d.value?ul(d.value):d.value,g=typeof b=="object"?o.resolve(b).href:b;return Ci(g,v)}return typeof d.value=="object"?o.resolve(d.value)?.href??null:Ci(xo(a.app.baseURL,d.value),v)});return{to:d,hasTarget:l,isAbsoluteUrl:u,isExternal:h,href:p,isActive:m?.isActive??ke(()=>d.value===o.currentRoute.value.path),isExactActive:m?.isExactActive??ke(()=>d.value===o.currentRoute.value.path),route:m?.route??ke(()=>o.resolve(d.value)),async navigate(v){await g_(p.value,{replace:re(i.replace),external:h.value||l.value})}}}return Zr({name:t,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1},trailingSlash:{type:String,default:void 0,required:!1}},useLink:s,setup(i,{slots:o}){const a=bt(),{to:l,href:u,navigate:c,isExternal:f,hasTarget:h,isAbsoluteUrl:d}=s(i),m=Hn(!1),p=it(null),v=y=>{p.value=i.custom?y?.$el?.nextElementSibling:y?.$el};function b(y){return!m.value&&(typeof i.prefetchOn=="string"?i.prefetchOn===y:i.prefetchOn?.[y]??e.prefetchOn?.[y])&&(i.prefetch??e.prefetch)!==!1&&i.noPrefetch!==!0&&i.target!=="_blank"&&!k1()}async function g(y=Le()){if(m.value)return;m.value=!0;const w=typeof l.value=="string"?l.value:f.value?ul(l.value):a.resolve(l.value).fullPath,_=f.value?new URL(w,window.location.href).href:w;await Promise.all([y.hooks.callHook("link:prefetch",_)?.catch(()=>{}),!f.value&&!h.value&&Hg(l.value,a).catch(()=>{})])}if(b("visibility")){const y=Le();let w,_=null;fr(()=>{const k=C1();si(()=>{w=Cl(()=>{p?.value?.tagName&&(_=k.observe(p.value,async()=>{_?.(),_=null,await g(y)}))})})}),es(()=>{w&&xk(w),_?.(),_=null})}return()=>{if(!f.value&&!h.value&&!n(l.value)){const _={ref:v,to:l.value,activeClass:i.activeClass||e.activeClass,exactActiveClass:i.exactActiveClass||e.exactActiveClass,replace:i.replace,ariaCurrentValue:i.ariaCurrentValue,custom:i.custom};
686return i.custom||(b("interaction")&&(_.onPointerenter=g.bind(null,void 0),_.onFocus=g.bind(null,void 0)),m.value&&(_.class=i.prefetchedClass||e.prefetchedClass),_.rel=i.rel||void 0),Tt(Ga("RouterLink"),_,o.default)}const y=i.target||null,w=T1(i.noRel?"":i.rel,e.externalRelAttribute,d.value||h.value?"noopener noreferrer":"")||null;return i.custom?o.default?o.default({href:u.value,navigate:c,prefetch:g,get route(){if(!u.value)return;const _=new URL(u.value,window.location.href);return{path:_.pathname,fullPath:_.pathname,get query(){return sc(_.search)},hash:_.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:u.value}},rel:w,target:y,isExternal:f.value||h.value,isActive:!1,isExactActive:!1}):null:Tt("a",{ref:p,href:u.value||null,rel:w,target:y,onClick:async _=>{if(!(f.value||h.value)){_.preventDefault();try{const k=bp(u.value);return await(i.replace?a.replace(k):a.push(k))}finally{if(n(l.value)){const k=l.value.slice(1);let $=k;try{$=decodeURIComponent(k)}catch{}document.getElementById($)?.focus()}}}}},o.default?.())}}})}const Ug=S1(Jw);function Ci(e,t){const n=t==="append"?sp:Ds;return cn(e)&&!e.startsWith("http")?e:n(e,!0)}function C1(){const e=Le();if(e._observer)return e._observer;let t=null;const n=new Map,r=(i,o)=>(t||=new IntersectionObserver(a=>{for(const l of a){const u=n.get(l.target);(l.isIntersecting||l.intersectionRatio>0)&&u&&u()}}),n.set(i,o),t.observe(i),()=>{n.delete(i),t?.unobserve(i),n.size===0&&(t?.disconnect(),t=null)});return e._observer={observe:r}}const A1=/2g/;function k1(){const e=navigator.connection;return!!(e&&(e.saveData||A1.test(e.effectiveType)))}function R1(e){typeof e.indexable<"u"&&(e.indexable=String(e.indexable)!=="false"),typeof e.trailingSlash<"u"&&!e.trailingSlash&&(e.trailingSlash=String(e.trailingSlash)!=="false"),e.url&&!cn(String(e.url),{acceptRelative:!0,strict:!1})&&(e.url=ww(String(e.url)));const t=Object.keys(e).sort((r,s)=>r.localeCompare(s)),n={};for(const r of t)n[r]=e[r];return n}function P1(e){const n=[];function r(i){if(!i||typeof i!="object"||Object.keys(i).length===0)return()=>{};i._context;const o={};for(const a in i){const l=i[a];typeof l<"u"&&l!==""&&(o[a]=l)}return Object.keys(o).filter(a=>!a.startsWith("_")).length===0?()=>{}:(n.push(o),()=>{const a=n.indexOf(o);a!==-1&&n.splice(a,1)})}function s(i){const o={};i?.debug&&(o._context={}),o._priority={};for(const a in n.sort((l,u)=>(l._priority||0)-(u._priority||0)))for(const l in n[a]){const u=l,c=i?.resolveRefs?Ft(n[a][l]):n[a][l];!l.startsWith("_")&&typeof c<"u"&&c!==""&&(o[l]=c,typeof n[a]._priority<"u"&&n[a]._priority!==-1&&(o._priority[u]=n[a]._priority),i?.debug&&(o._context[u]=n[a]._context?.[u]||n[a]._context||"anonymous"))}return i?.skipNormalize?o:R1(o)}return{stack:n,push:r,get:s}}const x1=wt({name:"nuxt-site-config:init",enforce:"pre",async setup(e){const t=P1(),n=qo("site-config");{const r=n.value||window.__NUXT_SITE_CONFIG__||{};for(const s in r)s[0]!=="_"&&t.push({[s]:r[s],_priority:r._priority?.[s]||-1})}return{provide:{nuxtSiteConfig:t}}}}),O1=wt({name:"nuxt:payload",setup(e){const t=new Set;bt().beforeResolve(async(n,r)=>{if(n.path===r.path)return;const s=await Vu(n.path);if(s){for(const i of t)delete e.static.data[i];for(const i in s.data)i in e.static.data||t.add(i),e.static.data[i]=s.data[i]}}),si(()=>{e.hooks.hook("link:prefetch",async n=>{const{hostname:r}=new URL(n,window.location.href);r===window.location.hostname&&await Vu(n).catch(()=>{console.warn("[nuxt] Error preloading payload for",n)})}),navigator.connection?.effectiveType!=="slow-2g"&&setTimeout(cc,1e3)})}}),I1=wt(()=>{const e=bt();si(()=>{e.beforeResolve(async()=>{await new Promise(t=>{setTimeout(t,100),requestAnimationFrame(()=>{setTimeout(t,0)})})})})}),$1=wt(e=>{let t;async function n(){let r;try{r=await cc()}catch(s){const i=s;
686if(!("status"in i&&(i.status===404||i.status===403)))throw i}t&&clearTimeout(t),t=setTimeout(n,$u);try{const s=await $fetch(ac("builds/latest.json")+`?${Date.now()}`);s.id!==r?.id&&(e.hooks.callHook("app:manifest:update",s),t&&clearTimeout(t))}catch{}}si(()=>{t=setTimeout(n,$u)})}),M1=wt({name:"nuxt:chunk-reload",setup(e){const t=bt(),n=dr(),r=new Set;t.beforeEach(()=>{r.clear()}),e.hook("app:chunkError",({error:i})=>{r.add(i)});function s(i){const o=xo(n.app.baseURL,i.fullPath);E1({path:o,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(s)}),t.onError((i,o)=>{r.has(i)&&s(o)})}}),j1=wt({name:"pinia",setup(e){const t=y_();return e.vueApp.use(t),Hr(t),e.payload&&e.payload.pinia&&(t.state.value=e.payload.pinia),{provide:{pinia:t}}},hooks:{"app:rendered"(){const e=Le();e.payload.pinia=ve(e.$pinia).state.value,Hr(void 0)}}}),L1=Ks(()=>me(()=>import("./BWduiV23.js"),__vite__mapDeps([74,75,76,77]),import.meta.url).then(e=>e.default||e.default||e)),N1=Ks(()=>me(()=>import("./Cf5RZXC4.js"),__vite__mapDeps([75,76]),import.meta.url).then(e=>e.default||e.default||e)),D1=Ks(()=>me(()=>Promise.resolve().then(()=>bP),void 0,import.meta.url).then(e=>e.default||e.default||e)),F1=Ks(()=>me(()=>Promise.resolve().then(()=>mP),void 0,import.meta.url).then(e=>e.default||e.default||e)),H1=Ks(()=>me(()=>Promise.resolve().then(()=>cP),void 0,import.meta.url).then(e=>e.default||e.default||e)),U1=[["GlobalFooter",L1],["GlobalFooterNavigation",N1],["GlobalHeader",D1],["GlobalHeaderNavigation",F1],["GlobalSmartquotes",H1]],V1=wt({name:"nuxt:global-components",setup(e){for(const[t,n]of U1)e.vueApp.component(t,n),e.vueApp.component("Lazy"+t,n)}}),Ai={},B1=wt({name:"nuxt:prefetch",setup(e){const t=bt();e.hooks.hook("app:mounted",()=>{t.beforeEach(async n=>{const r=n?.meta?.layout;r&&typeof Ai[r]=="function"&&await Ai[r]()})}),e.hooks.hook("link:prefetch",n=>{if(cn(n))return;const r=t.resolve(n);if(!r)return;const s=r.meta.layout;let i=Gp(r.meta.middleware);i=i.filter(o=>typeof o=="string");for(const o of i)typeof Al[o]=="function"&&Al[o]();typeof s=="string"&&s in Ai&&_1(Ai[s])})}});function Y(e,t,n){return(t=W1(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function q1(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function W1(e){var t=q1(e,"string");return typeof t=="symbol"?t:t+""}function z1(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function K1(e,t,n){return t&&hd(e.prototype,t),n&&hd(e,n),e}function G1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function md(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pd(Object(n),!0).forEach(function(r){G1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pd(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var gd={addCSS:!0,thumbWidth:15,watch:!0};function Q1(e,t){return(function(){return Array.from(document.querySelectorAll(t)).includes(this)}).call(e,t)}function J1(e,t){if(e&&t){var n=new Event(t,{bubbles:!0});e.dispatchEvent(n)}}var ii=function(e){return e!=null?e.constructor:null},xc=function(e,t){return!!(e&&t&&e instanceof t)},Vg=function(e){return e==null},Bg=function(e){return ii(e)===Object},Y1=function(e){return ii(e)===Number&&!Number.isNaN(e)},qg=function(e){return ii(e)===String},X1=function(e){return ii(e)===Boolean},Z1=function(e){return ii(e)===Function},Wg=function(e){return Array.isArray(e)},zg=function(e){return xc(e,NodeList)},eR=function(e){return xc(e,Element)},tR=function(e){return xc(e,Event)},nR=function(e){return Vg(e)||(qg(e)||Wg(e)||zg(e))&&!e.length||Bg(e)&&!Object.keys(e).length},ct={nullOrUndefined:Vg,object:Bg,number:Y1,string:qg,boolean:X1,function:Z1,array:Wg,nodeList:zg,element:eR,event:tR,empty:nR};function rR(e){var t="".concat(e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}function sR(e,t){if(1>t){var n=rR(t);return parseFloat(e.toFixed(n))}return Math.round(e/t)*t}var iR=(function(){function e(t,n){z1(this,e),ct.element(t)?this.element=t:ct.string(t)&&(this.element=document.querySelector(t)),ct.element(this.element)&&ct.empty(this.element.rangeTouch)&&(this.config=md({},gd,{},n),this.init())}return K1(e,[{key:"init",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="none",this.element.style.webKitUserSelect="none",this.element.style.touchAction="manipulation"),this.listeners(!0),this.element.rangeTouch=this)}},{key:"destroy",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="",this.element.style.webKitUserSelect="",this.element.style.touchAction=""),this.listeners(!1),this.element.rangeTouch=null)}},{key:"listeners",value:function(t){var n=this,r=t?"addEventListener":"removeEventListener";["touchstart","touchmove","touchend"].forEach(function(s){n.element[r](s,function(i){return n.set(i)},!1)})}},{key:"get",value:function(t){if(!e.enabled||!ct.event(t))return null;var n,r=t.target,s=t.changedTouches[0],i=parseFloat(r.getAttribute("min"))||0,o=parseFloat(r.getAttribute("max"))||100,a=parseFloat(r.getAttribute("step"))||1,l=r.getBoundingClientRect(),u=100/l.width*(this.config.thumbWidth/2)/100;return 0>(n=100/l.width*(s.clientX-l.left))?n=0:100<n&&(n=100),50>n?n-=(100-2*n)*u:50<n&&(n+=2*(n-50)*u),i+sR(n/100*(o-i),a)}},{key:"set",value:function(t){e.enabled&&ct.event(t)&&!t.target.disabled&&(t.preventDefault(),t.target.value=this.get(t),J1(t.target,t.type==="touchend"?"change":"input"))}}],[{key:"setup",value:function(t){var n=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},r=null;if(ct.empty(t)||ct.string(t)?r=Array.from(document.querySelectorAll(ct.string(t)?t:'input[type="range"]')):ct.element(t)?r=[t]:ct.nodeList(t)?r=Array.from(t):ct.array(t)&&(r=t.filter(ct.element)),ct.empty(r))return null;var s=md({},gd,{},n);if(ct.string(t)&&s.watch){var i=new MutationObserver(function(o){Array.from(o).forEac
686h(function(a){Array.from(a.addedNodes).forEach(function(l){ct.element(l)&&Q1(l,t)&&new e(l,s)})})});i.observe(document.body,{childList:!0,subtree:!0})}return r.map(function(o){return new e(o,n)})}},{key:"enabled",get:function(){return"ontouchstart"in document.documentElement}}]),e})();const oi=e=>e!==null&&typeof e<"u"?e.constructor:null,kn=(e,t)=>!!(e&&t&&e instanceof t),Oc=e=>e===null||typeof e>"u",Kg=e=>oi(e)===Object,oR=e=>oi(e)===Number&&!Number.isNaN(e),Wo=e=>oi(e)===String,aR=e=>oi(e)===Boolean,Gg=e=>typeof e=="function",Qg=e=>Array.isArray(e),lR=e=>kn(e,WeakMap),Jg=e=>kn(e,NodeList),cR=e=>oi(e)===Text,uR=e=>kn(e,Event),fR=e=>kn(e,KeyboardEvent),dR=e=>kn(e,window.TextTrackCue)||kn(e,window.VTTCue),hR=e=>kn(e,TextTrack)||!Oc(e)&&Wo(e.kind),pR=e=>kn(e,Promise)&&Gg(e.then);function mR(e){return e!==null&&typeof e=="object"&&e.nodeType===1&&typeof e.style=="object"&&typeof e.ownerDocument=="object"}function Yg(e){return Oc(e)||(Wo(e)||Qg(e)||Jg(e))&&!e.length||Kg(e)&&!Object.keys(e).length}function gR(e){if(kn(e,window.URL))return!0;if(!Wo(e))return!1;let t=e;(!e.startsWith("http://")||!e.startsWith("https://"))&&(t=`http://${e}`);try{return!Yg(new URL(t).hostname)}catch{return!1}}var T={nullOrUndefined:Oc,object:Kg,number:oR,string:Wo,boolean:aR,function:Gg,array:Qg,weakMap:lR,nodeList:Jg,element:mR,textNode:cR,event:uR,keyboardEvent:fR,cue:dR,track:hR,promise:pR,url:gR,empty:Yg};const kl=(()=>{const e=document.createElement("span"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},n=Object.keys(t).find(r=>e.style[r]!==void 0);return T.string(n)?t[n]:!1})();function Xg(e,t){setTimeout(()=>{try{e.hidden=!0,e.offsetHeight,e.hidden=!1}catch{}},t)}function yR(e){return JSON.parse(JSON.stringify(e))}function Zg(e,t){return t.split(".").reduce((n,r)=>n&&n[r],e)}function Ke(e={},...t){if(!t.length)return e;const n=t.shift();return T.object(n)?(Object.keys(n).forEach(r=>{T.object(n[r])?(Object.keys(e).includes(r)||Object.assign(e,{[r]:{}}),Ke(e[r],n[r])):Object.assign(e,{[r]:n[r]})}),Ke(e,...t)):e}function ey(e,t){const n=e.length?e:[e];Array.from(n).reverse().forEach((r,s)=>{const i=s>0?t.cloneNode(!0):t,o=r.parentNode,a=r.nextSibling;i.appendChild(r),a?o.insertBefore(i,a):o.appendChild(i)})}function Rl(e,t){!T.element(e)||T.empty(t)||Object.entries(t).filter(([,n])=>!T.nullOrUndefined(n)).forEach(([n,r])=>e.setAttribute(n,r))}function ce(e,t,n){const r=document.createElement(e);return T.object(t)&&Rl(r,t),T.string(n)&&(r.textContent=n),r}function bR(e,t){!T.element(e)||!T.element(t)||t.parentNode.insertBefore(e,t.nextSibling)}function yd(e,t,n,r){T.element(t)&&t.appendChild(ce(e,n,r))}function vn(e){if(T.nodeList(e)||T.array(e)){Array.from(e).forEach(vn);return}!T.element(e)||!T.element(e.parentNode)||e.parentNode.removeChild(e)}function $i(e){if(!T.element(e))return;let{length:t}=e.childNodes;for(;t>0;)e.removeChild(e.lastChild),t-=1}function ho(e,t){return!T.element(t)||!T.element(t.parentNode)||!T.element(e)?null:(t.parentNode.replaceChild(e,t),e)}function Qt(e,t){if(!T.string(e)||T.empty(e))return{};const n={},r=Ke({},t);return e.split(",").forEach(s=>{const i=s.trim(),o=i.replace(".",""),l=i.replace(/[[\]]/g,"").split("="),[u]=l,c=l.length>1?l[1].replace(/["']/g,""):"";switch(i.charAt(0)){case".":T.string(r.class)?n.class=`${r.class} ${o}`:n.class=o;break;case"#":n.id=i.replace("#","");break;case"[":n[u]=c;break}}),Ke(r,n)}function Gn(e,t){if(!T.element(e))return;let n=t;T.boolean(n)||(n=!e.hidden),e.hidden=n}function Ae(e,t,n){if(T.nodeList(e))return Array.from(e).map(r=>Ae(r,t,n));if(T.element(e)){let r="toggle";return typeof n<"u"&&(r=n?"add":"remove"),e.classList[r](t),e.classList.contains(t)}return!1}function po(e,t){return T.element(e)&&e.classList.contains(t)}function Zn(e,t){const{prototype:n}=Element;function r(){return Array.from(document.querySelectorAll(t)).includes(this)}return(n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector||r).call(e,t)}function vR(e,t){const{prototype:n}=Element;function r(){let i=this;do{if(Zn.matches(i,t))return i;i=i.parentElement||i.parentNode}while(i!==null&&i.nodeType===1);return null}return(n.closest||r).call(e,t)}function Hs(e){return this.elements.container.querySelectorAll(e)}function et(e){return this.elements.container.querySelector(e)}function Da(e=null,t=!1){T.element(e)&&e.focus({preventScroll:!0,focusVisible:t})}const bd={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},Ge={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check(e,t){const n=Ge[e]||t!=="html5",r=n&&Ge.rangeInput;return{api:n,ui:r}},pip:document.pictureInPictureEnabled&&!ce("video").disablePictureInPicture,airplay:T.function(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInl
686ine"in document.createElement("video"),mime(e){if(T.empty(e))return!1;const[t]=e.split("/");let n=e;if(!this.isHTML5||t!==this.type)return!1;Object.keys(bd).includes(n)&&(n+=`; codecs="${bd[e]}"`);try{return!!(n&&this.media.canPlayType(n).replace(/no/,""))}catch{return!1}},textTracks:"textTracks"in document.createElement("video"),rangeInput:(()=>{const e=document.createElement("input");return e.type="range",e.type==="range"})(),touch:"ontouchstart"in document.documentElement,transitions:kl!==!1,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},wR=(()=>{let e=!1;try{const t=Object.defineProperty({},"passive",{get(){return e=!0,null}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch{}return e})();function Us(e,t,n,r=!1,s=!0,i=!1){if(!e||!("addEventListener"in e)||T.empty(t)||!T.function(n))return;const o=t.split(" ");let a=i;wR&&(a={passive:s,capture:i}),o.forEach(l=>{this&&this.eventListeners&&r&&this.eventListeners.push({element:e,type:l,callback:n,options:a}),e[r?"addEventListener":"removeEventListener"](l,n,a)})}function we(e,t="",n,r=!0,s=!1){Us.call(this,e,t,n,!0,r,s)}function zo(e,t="",n,r=!0,s=!1){Us.call(this,e,t,n,!1,r,s)}function Ic(e,t="",n,r=!0,s=!1){const i=(...o)=>{zo(e,t,i,r,s),n.apply(this,o)};Us.call(this,e,t,i,!0,r,s)}function ue(e,t="",n=!1,r={}){if(!T.element(e)||T.empty(t))return;const s=new CustomEvent(t,{bubbles:n,detail:{...r,plyr:this}});e.dispatchEvent(s)}function _R(){this&&this.eventListeners&&(this.eventListeners.forEach(e=>{const{element:t,type:n,callback:r,options:s}=e;t.removeEventListener(n,r,s)}),this.eventListeners=[])}function ER(){return new Promise(e=>this.ready?setTimeout(e,0):we.call(this,this.elements.container,"ready",e)).then(()=>{})}function sn(e){T.promise(e)&&e.then(null,()=>{})}function Pl(e){return T.array(e)?e.filter((t,n)=>e.indexOf(t)===n):e}function ty(e,t){return!T.array(e)||!e.length?null:e.reduce((n,r)=>Math.abs(r-t)<Math.abs(n-t)?r:n)}function ny(e){return!window||!window.CSS?!1:window.CSS.supports(e)}const vd=[[1,1],[4,3],[3,4],[5,4],[4,5],[3,2],[2,3],[16,10],[10,16],[16,9],[9,16],[21,9],[9,21],[32,9],[9,32]].reduce((e,[t,n])=>({...e,[t/n]:[t,n]}),{});function ry(e){return!T.array(e)&&(!T.string(e)||!e.includes(":"))?!1:(T.array(e)?e:e.split(":")).map(Number).every(T.number)}function mo(e){if(!T.array(e)||!e.every(T.number))return null;const[t,n]=e,r=(i,o)=>o===0?i:r(o,i%o),s=r(t,n);return[t/s,n/s]}function $c(e){const t=r=>ry(r)?r.split(":").map(Number):null;let n=t(e);if(n===null&&(n=t(this.config.ratio)),n===null&&!T.empty(this.embed)&&T.array(this.embed.ratio)&&({ratio:n}=this.embed),n===null&&this.isHTML5){const{videoWidth:r,videoHeight:s}=this.media;n=[r,s]}return mo(n)}function Qr(e){if(!this.isVideo)return{};const{wrapper:t}=this.elements,n=$c.call(this,e);if(!T.array(n))return{};const[r,s]=mo(n),i=ny(`aspect-ratio: ${r}/${s}`),o=100/r*s;if(i?t.style.aspectRatio=`${r}/${s}`:t.style.paddingBottom=`${o}%`,this.isVimeo&&!this.config.vimeo.premium&&this.supported.ui){const a=100/this.media.offsetWidth*Number.parseInt(window.getComputedStyle(this.media).paddingBottom,10),l=(a-o)/(a/50);this.fullscreen.active?t.style.paddingBottom=null:this.media.style.transform=`translateY(-${l}%)`}else this.isHTML5&&t.classList.add(this.config.classNames.videoFixedRatio);return{padding:o,ratio:n}}function sy(e,t,n=.05){const r=e/t,s=ty(Object.keys(vd),r);return Math.abs(s-r)<=n?vd[s]:[e,t]}function TR(){const e=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),t=Math.max(document.documentElement.clientHeight||0,window.innerHeight||0);return[e,t]}const Fn={getSources(){return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter(t=>{const n=t.getAttribute("type");return T.empty(n)?!0:Ge.mime.call(this,n)}):[]},getQualityOptions(){return this.config.quality.forced?this.config.quality.options:Fn.getSources.call(this).map(e=>Number(e.getAttribute("size"))).filter(Boolean)},setup(){if(!this.isHTML5)return;const e=this;e.options.speed=e.config.speed.options,T.empty(this.config.ratio)||Qr.call(e),Object.defineProperty(e.media,"quality",{get(){const n=Fn.getSources.call(e).find(r=>r.getAttribute("src")===e.source);return n&&Number(n.getAttribute("size"))},set(t){if(e.quality!==t){if(e.config.quality.forced&&T.function(e.config.quality.onChange))e.config.quality.onChange(t);else{const r=Fn.getSources.call(e).find(u=>Number(u.getAttribute("size"))===t);if(!r)return;const{currentTime:s,paused:i,preload:o,readyState:a,playbackRate:l}=e.media;e.media.src=r.getAttribute("src"),(o!=="none"||a)&&(e.once("loadedmetadata",()=>{e.speed=l,e.currentTime=s,i||sn(e.play())}),e.media.load())}ue.call(e,e.media,"qualitychange",!1,{quality:t})}}})},cancelRequests(){this.isHTML5&&(vn(Fn.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}},SR=!!window.document.documentMode,CR=/Edge/.test(navigator.userAgent),AR="WebkitAppearance"in document.documentElement.style&&!/Edge/.test(navigator.userAgent),kR=navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,RR=/iPad|iPhone|iPod/i.test(navigator.userAgent)&&navigator.maxTouchPoints>1;var ot={isIE:SR,isEdge:CR,isWebKit:AR,isIPadOS:kR,isIos:RR};function PR(e){return`${e}-${Math.floor(Math.random()*1e4)}`}function xl(e,...t){return T.empty(e)?e:e.toString().replace(/\{(\d+)\}/g,(n,r)=>t[r].toString())}function xR(e,t){return e===0||t===0||Number.isNaN(e)||Number.isNaN(t)?0:(e/t*100).toFixed(2)}function Rs(e="",t="",n=""){return e.replace(new RegExp(t.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1"),"g"),n.toString())}function iy(e=""){return e.toString().replace(/\w\S*/g,t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase())}function OR(e=""){let t=e.toString();return t=Rs(t,"-"," "),t=Rs(t,"_"," "),t=iy(t),Rs(t," ","")}function IR(e=""){let t=e.toString();return t=OR(t),t.charAt(0).toLowerCase()+t.slice(1)}function $R(e){const t=document.createDocumentFragment(),n=document.createElement("div");return t.appendChild(n),n.innerHTML=e,t.firstChild.textContent}function MR(e){const t=document.createElement("div");return t.appendChild(e),t.innerHTML}const wd={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},rt={get(e="",t={}){if(T.empty(e)||T.empty(t))return"";let n=Zg(t.i18n,e);if(T.empty(n))return Object.keys(wd).includes(e)?wd[e]:"";const r={"{seektime}":t.seekTime,"{title}":t.title};return Object.entries(r).forEach(([s,i])=>{n=Rs(n,s,i)}),n}};class Vs{constructor(t){Y(this,"get",n=>{if(!Vs.supported||!this.enabled)return null;const r=window.localStorage.getItem(this.key);if(T.empty(r))return null;const s=JSON.parse(r);
686return T.string(n)&&n.length?s[n]:s}),Y(this,"set",n=>{if(!Vs.supported||!this.enabled||!T.object(n))return;let r=this.get();T.empty(r)&&(r={}),Ke(r,n);try{window.localStorage.setItem(this.key,JSON.stringify(r))}catch{}}),this.enabled=t.config.storage.enabled,this.key=t.config.storage.key}static get supported(){try{if(!("localStorage"in window))return!1;const t="___test";return window.localStorage.setItem(t,t),window.localStorage.removeItem(t),!0}catch{return!1}}}function ai(e,t="text",n=!1){return new Promise((r,s)=>{try{const i=new XMLHttpRequest;if(!("withCredentials"in i))return;n&&(i.withCredentials=!0),i.addEventListener("load",()=>{if(t==="text")try{r(JSON.parse(i.responseText))}catch{r(i.responseText)}else r(i.response)}),i.addEventListener("error",()=>{throw new Error(i.status)}),i.open("GET",e,!0),i.responseType=t,i.send()}catch(i){s(i)}})}function oy(e,t){if(!T.string(e))return;const n="cache",r=T.string(t);let s=!1;const i=()=>document.getElementById(t)!==null,o=(a,l)=>{a.innerHTML=l,!(r&&i())&&document.body.insertAdjacentElement("afterbegin",a)};if(!r||!i()){const a=Vs.supported,l=document.createElement("div");if(l.setAttribute("hidden",""),r&&l.setAttribute("id",t),a){const u=window.localStorage.getItem(`${n}-${t}`);if(s=u!==null,s){const c=JSON.parse(u);o(l,c.content)}}ai(e).then(u=>{if(!T.empty(u)){if(a)try{window.localStorage.setItem(`${n}-${t}`,JSON.stringify({content:u}))}catch{}o(l,u)}}).catch(()=>{})}}const ay=e=>Math.trunc(e/60/60%60,10),jR=e=>Math.trunc(e/60%60,10),LR=e=>Math.trunc(e%60,10);function Ko(e=0,t=!1,n=!1){if(!T.number(e))return Ko(void 0,t,n);const r=a=>`0${a}`.slice(-2);let s=ay(e);const i=jR(e),o=LR(e);return t||s>0?s=`${s}:`:s="",`${n&&e>0?"-":""}${s}${r(i)}:${r(o)}`}const Q={getIconUrl(){const e=new URL(this.config.iconUrl,window.location),t=window.location.host?window.location.host:window.top.location.host,n=e.host!==t||ot.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:n}},findElements(){try{return this.elements.controls=et.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:Hs.call(this,this.config.selectors.buttons.play),pause:et.call(this,this.config.selectors.buttons.pause),restart:et.call(this,this.config.selectors.buttons.restart),rewind:et.call(this,this.config.selectors.buttons.rewind),fastForward:et.call(this,this.config.selectors.buttons.fastForward),mute:et.call(this,this.config.selectors.buttons.mute),pip:et.call(this,this.config.selectors.buttons.pip),airplay:et.call(this,this.config.selectors.buttons.airplay),settings:et.call(this,this.config.selectors.buttons.settings),captions:et.call(this,this.config.selectors.buttons.captions),fullscreen:et.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=et.call(this,this.config.selectors.progress),this.elements.inputs={seek:et.call(this,this.config.selectors.inputs.seek),volume:et.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:et.call(this,this.config.selectors.display.buffer),currentTime:et.call(this,this.config.selectors.display.currentTime),duration:et.call(this,this.config.selectors.display.duration)},T.element(this.elements.progress)&&(this.elements.display.seekTooltip=this.elements.progress.querySelector(`.${this.config.classNames.tooltip}`)),!0}catch(e){return this.debug.warn("It looks like there is a problem with your custom controls HTML",e),this.toggleNativeControls(!0),!1}},createIcon(e,t){const n="http://www.w3.org/2000/svg",r=Q.getIconUrl.call(this),s=`${r.cors?"":r.url}#${this.config.iconPrefix}`,i=document.createElementNS(n,"svg");Rl(i,Ke(t,{"aria-hidden":"true",focusable:"false"}));const o=document.createElementNS(n,"use"),a=`${s}-${e}`;return"href"in o&&o.setAttributeNS("http://www.w3.org/1999/xlink","href",a),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a),i.appendChild(o),i},createLabel(e,t={}){const n=rt.get(e,this.config),r={...t,class:[t.class,this.config.classNames.hidden].filter(Boolean).join(" ")};return ce("span",r,n)},createBadge(e){if(T.empty(e))return null;const t=ce("span",{class:this.config.classNames.menu.value});return t.appendChild(ce("span",{class:this.config.classNames.menu.badge},e)),t},createButton(e,t){const n=Ke({},t);let r=IR(e);const s={element:"button",toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null};switch(["element","icon","label"].forEach(o=>{Object.keys(n).includes(o)&&(s[o]=n[o],delete n[o])}),s.element==="button"&&!Object.keys(n).includes("type")&&(n.type="button"),Object.keys(n).includes("class")?n.class.split(" ").includes(this.config.classNames.c
686ontrol)||Ke(n,{class:`${n.class} ${this.config.classNames.control}`}):n.class=this.config.classNames.control,e){case"play":s.toggle=!0,s.label="play",s.labelPressed="pause",s.icon="play",s.iconPressed="pause";break;case"mute":s.toggle=!0,s.label="mute",s.labelPressed="unmute",s.icon="volume",s.iconPressed="muted";break;case"captions":s.toggle=!0,s.label="enableCaptions",s.labelPressed="disableCaptions",s.icon="captions-off",s.iconPressed="captions-on";break;case"fullscreen":s.toggle=!0,s.label="enterFullscreen",s.labelPressed="exitFullscreen",s.icon="enter-fullscreen",s.iconPressed="exit-fullscreen";break;case"play-large":n.class+=` ${this.config.classNames.control}--overlaid`,r="play",s.label="play",s.icon="play";break;default:T.empty(s.label)&&(s.label=r),T.empty(s.icon)&&(s.icon=e)}const i=ce(s.element);return s.toggle?(i.appendChild(Q.createIcon.call(this,s.iconPressed,{class:"icon--pressed"})),i.appendChild(Q.createIcon.call(this,s.icon,{class:"icon--not-pressed"})),i.appendChild(Q.createLabel.call(this,s.labelPressed,{class:"label--pressed"})),i.appendChild(Q.createLabel.call(this,s.label,{class:"label--not-pressed"}))):(i.appendChild(Q.createIcon.call(this,s.icon)),i.appendChild(Q.createLabel.call(this,s.label))),Ke(n,Qt(this.config.selectors.buttons[r],n)),Rl(i,n),r==="play"?(T.array(this.elements.buttons[r])||(this.elements.buttons[r]=[]),this.elements.buttons[r].push(i)):this.elements.buttons[r]=i,i},createRange(e,t){const n=ce("input",Ke(Qt(this.config.selectors.inputs[e]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":rt.get(e,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},t));return this.elements.inputs[e]=n,Q.updateRangeFill.call(this,n),iR.setup(n),n},createProgress(e,t){const n=ce("progress",Ke(Qt(this.config.selectors.display[e]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},t));if(e!=="volume"){n.appendChild(ce("span",null,"0"));const r={played:"played",buffer:"buffered"}[e],s=r?rt.get(r,this.config):"";n.textContent=`% ${s.toLowerCase()}`}return this.elements.display[e]=n,n},createTime(e,t){const n=Qt(this.config.selectors.display[e],t),r=ce("div",Ke(n,{class:`${n.class?n.class:""} ${this.config.classNames.display.time} `.trim(),"aria-label":rt.get(e,this.config),role:"timer"}),"00:00");return this.elements.display[e]=r,r},bindMenuItemShortcuts(e,t){we.call(this,e,"keydown keyup",n=>{if(![" ","ArrowUp","ArrowDown","ArrowRight"].includes(n.key)||(n.preventDefault(),n.stopPropagation(),n.type==="keydown"))return;const r=Zn(e,'[role="menuitemradio"]');if(!r&&[" ","ArrowRight"].includes(n.key))Q.showMenuPanel.call(this,t,!0);else{let s;n.key!==" "&&(n.key==="ArrowDown"||r&&n.key==="ArrowRight"?(s=e.nextElementSibling,T.element(s)||(s=e.parentNode.firstElementChild)):(s=e.previousElementSibling,T.element(s)||(s=e.parentNode.lastElementChild)),Da.call(this,s,!0))}},!1),we.call(this,e,"keyup",n=>{n.key==="Return"&&Q.focusFirstMenuItem.call(this,null,!0)})},createMenuItem({value:e,list:t,type:n,title:r,badge:s=null,checked:i=!1}){const o=Qt(this.config.selectors.inputs[n]),a=ce("button",Ke(o,{type:"button",role:"menuitemradio",class:`${this.config.classNames.control} ${o.class?o.class:""}`.trim(),"aria-checked":i,value:e})),l=ce("span");l.innerHTML=r,T.element(s)&&l.appendChild(s),a.appendChild(l),Object.defineProperty(a,"checked",{enumerable:!0,get(){return a.getAttribute("aria-checked")==="true"},set(u){u&&Array.from(a.parentNode.children).filter(c=>Zn(c,'[role="menuitemradio"]')).forEach(c=>c.setAttribute("aria-checked","false")),a.setAttribute("aria-checked",u?"true":"false")}}),this.listeners.bind(a,"click keyup",u=>{if(!(T.keyboardEvent(u)&&u.key!==" ")){switch(u.preventDefault(),u.stopPropagation(),a.checked=!0,n){case"language":this.currentTrack=Number(e);break;case"quality":this.quality=e;break;case"speed":this.speed=Number.parseFloat(e);break}Q.showMenuPanel.call(this,"home",T.keyboardEvent(u))}},n,!1),Q.bindMenuItemShortcuts.call(this,a,n),t.appendChild(a)},formatTime(e=0,t=!1){if(!T.number(e))return e;const n=ay(this.duration)>0;return Ko(e,n,t)},updateTimeDisplay(e=null,t=0,n=!1){!T.element(e)||!T.number(t)||(e.textContent=Q.formatTime(t,n))},updateVolume(){this.supported.ui&&(T.element(this.elements.inputs.volume)&&Q.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),T.element(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||this.volume===0))},setRange(e,t=0){T.element(e)&&(e.value=t,Q.updateRangeFill.call(this,e))},updateProgress(e){if(!this.supported.ui||!T.event(e))return;let t=0;const n=(r,s)=>{const i=T.number(s)?s:0,o=T.element(r)?r:this.elements.display.buffer;if(T.element(o)){o.value=i;const a=o.getElementsByTagName("span")[0];T.element(a)&&(a.childNodes[0].nodeValue=i)}};if(e)switch(e.type){case"timeupdate":case"seeking":case"seeked":t=xR(this.currentTime,this.duration),e.type==="timeupdate"&&Q.setRange.call(this,this.elements.inputs.seek,t);break;case"playing":case"progress":n(this.elements.display.buffer,this.buffered*100);break}},updateRangeFill(e){const t=T.event(e)?e.target:e;if(!(!T.element(t)||t.getAttribute("type")!=="range")){if(Zn(t,this.config.selectors.inputs.seek)){t.setAttribute("aria-valuenow",this.currentTime);const n=Q.formatTime(this.currentTime),r=Q.formatTime(this.duration),s=rt.get("seekLabel",this.config);t.setAttribute("aria-valuetext",s.replace("{currentTime}",n).replace("{duration}",r))}else if(Zn(t,this.config.selectors.inputs.volume)){const n=t.value*100;t.setAttribute("aria-valuenow",n),t.setAttribute("aria-valuetext",`${n.toFixed(1)}%`)}else t.setAttribute("aria-valuenow",t.value);!ot.isWebKit&&!ot.isIPadOS||t.style.setProperty("--value",`${t.value/t.max*100}%`)}},updateSeekTooltip(e){var t,n;if(!this.config.tooltips.seek||!T.element(this.elements.inputs.seek)||!T.element(this.elements.display.seekTooltip)||this.duration===0)return;const r=this.elements.display.seekTooltip,s=`${this.config.classNames.tooltip}--visible`,i=c=>Ae(r,s,c);if(this.touch){i(!1);return}let o=0;const a=this.elements.progress.getBoundingClientRect();if(T.event(e)){const c=e.pageX-e.clientX;o=100/a.width*(e.pageX-a.left-c)}else if(po(r,s))o=Number.parseFloat(r.style.left,10);else return;o<0?o=0:o>100&&(o=100);const l=this.duration/100*o;r.textContent=Q.formatTime(l);const u=(t=this.config.markers)===null||t===void 0||(n=t.points)===null||n===void 0?void 0:n.find(({time:c}
686)=>c===Math.round(l));u&&r.insertAdjacentHTML("afterbegin",`${u.label}<br>`),r.style.left=`${o}%`,T.event(e)&&["mouseenter","mouseleave"].includes(e.type)&&i(e.type==="mouseenter")},timeUpdate(e){const t=!T.element(this.elements.display.duration)&&this.config.invertTime;Q.updateTimeDisplay.call(this,this.elements.display.currentTime,t?this.duration-this.currentTime:this.currentTime,t),!(e&&e.type==="timeupdate"&&this.media.seeking)&&Q.updateProgress.call(this,e)},durationUpdate(){if(!this.supported.ui||!this.config.invertTime&&this.currentTime)return;if(this.duration>=2**32){Gn(this.elements.display.currentTime,!0),Gn(this.elements.progress,!0);return}T.element(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);const e=T.element(this.elements.display.duration);!e&&this.config.displayDuration&&this.paused&&Q.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),e&&Q.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),this.config.markers.enabled&&Q.setMarkers.call(this),Q.updateSeekTooltip.call(this)},toggleMenuButton(e,t){Gn(this.elements.settings.buttons[e],!t)},updateSetting(e,t,n){const r=this.elements.settings.panels[e];let s=null,i=t;if(e==="captions")s=this.currentTrack;else{if(s=T.empty(n)?this[e]:n,T.empty(s)&&(s=this.config[e].default),!T.empty(this.options[e])&&!this.options[e].includes(s)){this.debug.warn(`Unsupported value of '${s}' for ${e}`);return}if(!this.config[e].options.includes(s)){this.debug.warn(`Disabled value of '${s}' for ${e}`);return}}if(T.element(i)||(i=r&&r.querySelector('[role="menu"]')),!T.element(i))return;const o=this.elements.settings.buttons[e].querySelector(`.${this.config.classNames.menu.value}`);o.innerHTML=Q.getLabel.call(this,e,s);const a=i&&i.querySelector(`[value="${s}"]`);T.element(a)&&(a.checked=!0)},getLabel(e,t){switch(e){case"speed":return t===1?rt.get("normal",this.config):`${t}&times;`;case"quality":if(T.number(t)){const n=rt.get(`qualityLabel.${t}`,this.config);return n.length?n:`${t}p`}return iy(t);case"captions":return Ee.getLabel.call(this);default:return null}},setQualityMenu(e){if(!T.element(this.elements.settings.panels.quality))return;const t="quality",n=this.elements.settings.panels.quality.querySelector('[role="menu"]');T.array(e)&&(this.options.quality=Pl(e).filter(i=>this.config.quality.options.includes(i)));const r=!T.empty(this.options.quality)&&this.options.quality.length>1;if(Q.toggleMenuButton.call(this,t,r),$i(n),Q.checkMenu.call(this),!r)return;const s=i=>{const o=rt.get(`qualityBadge.${i}`,this.config);return o.length?Q.createBadge.call(this,o):null};this.options.quality.sort((i,o)=>{const a=this.config.quality.options;return a.indexOf(i)>a.indexOf(o)?1:-1}).forEach(i=>{Q.createMenuItem.call(this,{value:i,list:n,type:t,title:Q.getLabel.call(this,"quality",i),badge:s(i)})}),Q.updateSetting.call(this,t,n)},setCaptionsMenu(){if(!T.element(this.elements.settings.panels.captions))return;const e="captions",t=this.elements.settings.panels.captions.querySelector('[role="menu"]'),n=Ee.getTracks.call(this),r=!!n.length;if(Q.toggleMenuButton.call(this,e,r),$i(t),Q.checkMenu.call(this),!r)return;const s=n.map((i,o)=>({value:o,checked:this.captions.toggled&&this.currentTrack===o,title:Ee.getLabel.call(this,i),badge:i.language&&Q.createBadge.call(this,i.language.toUpperCase()),list:t,type:"language"}));s.unshift({value:-1,checked:!this.captions.toggled,title:rt.get("disabled",this.config),list:t,type:"language"}),s.forEach(Q.createMenuItem.bind(this)),Q.updateSetting.call(this,e,t)},setSpeedMenu(){if(!T.element(this.elements.settings.panels.speed))return;const e="speed",t=this.elements.settings.panels.speed.querySelector('[role="menu"]');this.options.speed=this.options.speed.filter(r=>r>=this.minimumSpeed&&r<=this.maximumSpeed);const n=!T.empty(this.options.speed)&&this.options.speed.length>1;Q.toggleMenuButton.call(this,e,n),$i(t),Q.checkMenu.call(this),n&&(this.options.speed.forEach(r=>{Q.createMenuItem.call(this,{value:r,list:t,type:e,title:Q.getLabel.call(this,"speed",r)})}),Q.updateSetting.call(this,e,t))},checkMenu(){const{buttons:e}=this.elements.settings,t=!T.empty(e)&&Object.values(e).some(n=>!n.hidden);Gn(this.elements.settings.menu,!t)},focusFirstMenuItem(e,t=!1){if(this.elements.settings.popup.hidden)return;let n=e;T.element(n)||(n=Object.values(this.elements.settings.panels).find(s=>!s.hidden));const r=n.querySelector('[role^="menuitem"]');Da.call(this,r,t)},toggleMenu(e){const{popup:t}=this.elements.settings,n=this.elements.buttons.settings;if(!T.element(t)||!T.element(n))return;const{hidden:r}=t;let s=r;if(T.boolean(e))s=e;else if(T.keyboardEvent(e)&&e.key==="Escape")s=!1;else if(T.event(e)){const i=T.function(e.composedPath)?e.composedPath()[0]:e.target,o=t.contains(i);if(o||!o&&e.target!==n&&s)return}n.setAttribute("aria-expanded",s),Gn(t,!s),Ae(this.elements.container,this.config.classNames.menu.open,s),s&&T.keyboardEvent(e)?Q.focusFirstMenuItem.call(this,null,!0):!s&&!r&&Da.call(this,n,T.keyboardEvent(e))},getMenuSize(e){const t=e.cloneNode(!0);t.style.position="absolute",t.style.opacity=0,t.removeAttribute("hidden"),e.parentNode.appendChild(t);const n=t.scrollWidth,r=t.scrollHeight;return vn(t),{width:n,height:r}},showMenuPanel(e="",t=!1){const n=this.elements.container.querySelector(`#plyr-settings-${this.id}-${e}`);if(!T.element(n))return;const r=n.parentNode,s=Array.from(r.children).find(i=>!i.hidden);if(Ge.transitions&&!Ge.reducedMotion){r.style.width=`${s.scrollWidth}px`,r.style.height=`${s.scrollHeight}px`;
686const i=Q.getMenuSize.call(this,n),o=a=>{a.target!==r||!["width","height"].includes(a.propertyName)||(r.style.width="",r.style.height="",zo.call(this,r,kl,o))};we.call(this,r,kl,o),r.style.width=`${i.width}px`,r.style.height=`${i.height}px`}Gn(s,!0),Gn(n,!1),Q.focusFirstMenuItem.call(this,n,t)},setDownloadUrl(){const e=this.elements.buttons.download;T.element(e)&&e.setAttribute("href",this.download)},create(e){const{bindMenuItemShortcuts:t,createButton:n,createProgress:r,createRange:s,createTime:i,setQualityMenu:o,setSpeedMenu:a,showMenuPanel:l}=Q;this.elements.controls=null,T.array(this.config.controls)&&this.config.controls.includes("play-large")&&this.elements.container.appendChild(n.call(this,"play-large"));const u=ce("div",Qt(this.config.selectors.controls.wrapper));this.elements.controls=u;const c={class:"plyr__controls__item"};return Pl(T.array(this.config.controls)?this.config.controls:[]).forEach(f=>{if(f==="restart"&&u.appendChild(n.call(this,"restart",c)),f==="rewind"&&u.appendChild(n.call(this,"rewind",c)),f==="play"&&u.appendChild(n.call(this,"play",c)),f==="fast-forward"&&u.appendChild(n.call(this,"fast-forward",c)),f==="progress"){const h=ce("div",{class:`${c.class} plyr__progress__container`}),d=ce("div",Qt(this.config.selectors.progress));if(d.appendChild(s.call(this,"seek",{id:`plyr-seek-${e.id}`})),d.appendChild(r.call(this,"buffer")),this.config.tooltips.seek){const m=ce("span",{class:this.config.classNames.tooltip},"00:00");d.appendChild(m),this.elements.display.seekTooltip=m}this.elements.progress=d,h.appendChild(this.elements.progress),u.appendChild(h)}if(f==="current-time"&&u.appendChild(i.call(this,"currentTime",c)),f==="duration"&&u.appendChild(i.call(this,"duration",c)),f==="mute"||f==="volume"){let{volume:h}=this.elements;if((!T.element(h)||!u.contains(h))&&(h=ce("div",Ke({},c,{class:`${c.class} plyr__volume`.trim()})),this.elements.volume=h,u.appendChild(h)),f==="mute"&&h.appendChild(n.call(this,"mute")),f==="volume"&&!ot.isIos&&!ot.isIPadOS){const d={max:1,step:.05,value:this.config.volume};h.appendChild(s.call(this,"volume",Ke(d,{id:`plyr-volume-${e.id}`})))}}if(f==="captions"&&u.appendChild(n.call(this,"captions",c)),f==="settings"&&!T.empty(this.config.settings)){const h=ce("div",Ke({},c,{class:`${c.class} plyr__menu`.trim(),hidden:""}));h.appendChild(n.call(this,"settings",{"aria-haspopup":!0,"aria-controls":`plyr-settings-${e.id}`,"aria-expanded":!1}));const d=ce("div",{class:"plyr__menu__container",id:`plyr-settings-${e.id}`,hidden:""}),m=ce("div"),p=ce("div",{id:`plyr-settings-${e.id}-home`}),v=ce("div",{role:"menu"});p.appendChild(v),m.appendChild(p),this.elements.settings.panels.home=p,this.config.settings.forEach(b=>{const g=ce("button",Ke(Qt(this.config.selectors.buttons.settings),{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--forward`,role:"menuitem","aria-haspopup":!0,hidden:""}));t.call(this,g,b),we.call(this,g,"click",()=>{l.call(this,b,!1)});const y=ce("span",null,rt.get(b,this.config)),w=ce("span",{class:this.config.classNames.menu.value});w.innerHTML=e[b],y.appendChild(w),g.appendChild(y),v.appendChild(g);const _=ce("div",{id:`plyr-settings-${e.id}-${b}`,hidden:""}),k=ce("button",{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--back`});k.appendChild(ce("span",{"aria-hidden":!0},rt.get(b,this.config))),k.appendChild(ce("span",{class:this.config.classNames.hidden},rt.get("menuBack",this.config))),we.call(this,_,"keydown",$=>{$.key==="ArrowLeft"&&($.preventDefault(),$.stopPropagation(),l.call(this,"home",!0))},!1),we.call(this,k,"click",()=>{l.call(this,"home",!1)}),_.appendChild(k),_.appendChild(ce("div",{role:"menu"})),m.appendChild(_),this.elements.settings.buttons[b]=g,this.elements.settings.panels[b]=_}),d.appendChild(m),h.appendChild(d),u.appendChild(h),this.elements.settings.popup=d,this.elements.settings.menu=h}if(f==="pip"&&Ge.pip&&u.appendChild(n.call(this,"pip",c)),f==="airplay"&&Ge.airplay&&u.appendChild(n.call(this,"airplay",c)),f==="download"){const h=Ke({},c,{element:"a",href:this.download,target:"_blank"});this.isHTML5&&(h.download="");const{download:d}=this.config.urls;!T.url(d)&&this.isEmbed&&Ke(h,{icon:`logo-${this.provider}`,label:this.provider}),u.appendChild(n.call(this,"download",h))}
686f==="fullscreen"&&u.appendChild(n.call(this,"fullscreen",c))}),this.isHTML5&&o.call(this,Fn.getQualityOptions.call(this)),a.call(this),u},inject(){if(this.config.loadSprite){const o=Q.getIconUrl.call(this);o.cors&&oy(o.url,"sprite-plyr")}this.id=Math.floor(Math.random()*1e4);let e=null;this.elements.controls=null;const t={id:this.id,seektime:this.config.seekTime,title:this.config.title};let n=!0;T.function(this.config.controls)&&(this.config.controls=this.config.controls.call(this,t)),this.config.controls||(this.config.controls=[]),T.element(this.config.controls)||T.string(this.config.controls)?e=this.config.controls:(e=Q.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:Ee.getLabel.call(this)}),n=!1);const r=o=>{let a=o;return Object.entries(t).forEach(([l,u])=>{a=Rs(a,`{${l}}`,u)}),a};n&&T.string(this.config.controls)&&(e=r(e));let s;T.string(this.config.selectors.controls.container)&&(s=document.querySelector(this.config.selectors.controls.container)),T.element(s)||(s=this.elements.container);const i=T.element(e)?"insertAdjacentElement":"insertAdjacentHTML";if(s[i]("afterbegin",e),T.element(this.elements.controls)||Q.findElements.call(this),!T.empty(this.elements.buttons)){const o=a=>{const l=this.config.classNames.controlPressed;a.setAttribute("aria-pressed","false"),Object.defineProperty(a,"pressed",{configurable:!0,enumerable:!0,get(){return po(a,l)},set(u=!1){Ae(a,l,u),a.setAttribute("aria-pressed",u?"true":"false")}})};Object.values(this.elements.buttons).filter(Boolean).forEach(a=>{T.array(a)||T.nodeList(a)?Array.from(a).filter(Boolean).forEach(o):o(a)})}if(ot.isEdge&&Xg(s),this.config.tooltips.controls){const{classNames:o,selectors:a}=this.config,l=`${a.controls.wrapper} ${a.labels} .${o.hidden}`,u=Hs.call(this,l);Array.from(u).forEach(c=>{Ae(c,this.config.classNames.hidden,!1),Ae(c,this.config.classNames.tooltip,!0)})}},setMediaMetadata(){try{"mediaSession"in navigator&&(navigator.mediaSession.metadata=new window.MediaMetadata({title:this.config.mediaMetadata.title,artist:this.config.mediaMetadata.artist,album:this.config.mediaMetadata.album,artwork:this.config.mediaMetadata.artwork}))}catch{}},setMarkers(){var e,t;if(!this.duration||this.elements.markers)return;const n=(e=this.config.markers)===null||e===void 0||(t=e.points)===null||t===void 0?void 0:t.filter(({time:l})=>l>0&&l<this.duration);if(!(n!=null&&n.length))return;const r=document.createDocumentFragment(),s=document.createDocumentFragment();let i=null;const o=`${this.config.classNames.tooltip}--visible`,a=l=>Ae(i,o,l);n.forEach(l=>{const u=ce("span",{class:this.config.classNames.marker},""),c=`${l.time/this.duration*100}%`;i&&(u.addEventListener("mouseenter",()=>{l.label||(i.style.left=c,i.innerHTML=l.label,a(!0))}),u.addEventListener("mouseleave",()=>{a(!1)})),u.addEventListener("click",()=>{this.currentTime=l.time}),u.style.left=c,s.appendChild(u)}),r.appendChild(s),this.config.tooltips.seek||(i=ce("span",{class:this.config.classNames.tooltip},""),r.appendChild(i)),this.elements.markers={points:s,tip:i},this.elements.progress.appendChild(r)}};function ly(e,t=!0){let n=e;if(t){const r=document.createElement("a");r.href=n,n=r.href}try{return new URL(n)}catch{return null}}function cy(e){const t=new URLSearchParams;return T.object(e)&&Object.entries(e).forEach(([n,r])=>{t.set(n,r)}),t}const Ee={setup(){if(!this.supported.ui)return;if(!this.isVideo||this.isYouTube||this.isHTML5&&!Ge.textTracks){T.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&Q.setCaptionsMenu.call(this);return}if(T.element(this.elements.captions)||(this.elements.captions=ce("div",Qt(this.config.selectors.captions)),this.elements.captions.setAttribute("dir","auto"),bR(this.elements.captions,this.elements.wrapper)),ot.isIE&&window.URL){const s=this.media.querySelectorAll("track");Array.from(s).forEach(i=>{const o=i.getAttribute("src"),a=ly(o);a!==null&&a.hostname!==window.location.href.hostname&&["http:","https:"].includes(a.protocol)&&ai(o,"blob").then(l=>
686{i.setAttribute("src",window.URL.createObjectURL(l))}).catch(()=>{vn(i)})})}const e=navigator.languages||[navigator.language||navigator.userLanguage||"en"],t=Pl(e.map(s=>s.split("-")[0]));let n=(this.storage.get("language")||this.captions.language||this.config.captions.language||"auto").toLowerCase();n==="auto"&&([n]=t);let r=this.storage.get("captions")||this.captions.active;if(T.boolean(r)||({active:r}=this.config.captions),Object.assign(this.captions,{toggled:!1,active:r,language:n,languages:t}),this.isHTML5){const s=this.config.captions.update?"addtrack removetrack":"removetrack";we.call(this,this.media.textTracks,s,Ee.update.bind(this))}setTimeout(Ee.update.bind(this),0)},update(){const e=Ee.getTracks.call(this,!0),{active:t,language:n,meta:r,currentTrackNode:s}=this.captions,i=!!e.find(o=>o.language===n);this.isHTML5&&this.isVideo&&e.filter(o=>!r.get(o)).forEach(o=>{this.debug.log("Track added",o),r.set(o,{default:o.mode==="showing"}),o.mode==="showing"&&(o.mode="hidden"),we.call(this,o,"cuechange",()=>Ee.updateCues.call(this))}),(i&&this.language!==n||!e.includes(s))&&(Ee.setLanguage.call(this,n),Ee.toggle.call(this,t&&i)),this.elements&&Ae(this.elements.container,this.config.classNames.captions.enabled,!T.empty(e)),T.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&Q.setCaptionsMenu.call(this)},toggle(e,t=!0){if(!this.supported.ui)return;const{toggled:n}=this.captions,r=this.config.classNames.captions.active,s=T.nullOrUndefined(e)?!n:e;if(s!==n){if(t||(this.captions.active=s,this.storage.set({captions:s})),!this.language&&s&&!t){const i=Ee.getTracks.call(this),o=Ee.findTrack.call(this,[this.captions.language,...this.captions.languages],!0);this.captions.language=o.language,Ee.set.call(this,i.indexOf(o));return}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=s),Ae(this.elements.container,r,s),this.captions.toggled=s,Q.updateSetting.call(this,"captions"),ue.call(this,this.media,s?"captionsenabled":"captionsdisabled")}setTimeout(()=>{s&&this.captions.toggled&&(this.captions.currentTrackNode.mode="hidden")})},set(e,t=!0){const n=Ee.getTracks.call(this);if(e===-1){Ee.toggle.call(this,!1,t);return}if(!T.number(e)){this.debug.warn("Invalid caption argument",e);return}if(!(e in n)){this.debug.warn("Track not found",e);return}if(this.captions.currentTrack!==e){this.captions.currentTrack=e;const r=n[e],{language:s}=r||{};this.captions.currentTrackNode=r,Q.updateSetting.call(this,"captions"),t||(this.captions.language=s,this.storage.set({language:s})),this.isVimeo&&this.embed.enableTextTrack(s,null,!1),ue.call(this,this.media,"languagechange")}Ee.toggle.call(this,!0,t),this.isHTML5&&this.isVideo&&Ee.updateCues.call(this)},setLanguage(e,t=!0){if(!T.string(e)){this.debug.warn("Invalid language argument",e);return}const n=e.toLowerCase();this.captions.language=n;const r=Ee.getTracks.call(this),s=Ee.findTrack.call(this,[n]);Ee.set.call(this,r.indexOf(s),t)},getTracks(e=!1){return Array.from((this.media||{}).textTracks||[]).filter(n=>!this.isHTML5||e||this.captions.meta.has(n)).filter(n=>["captions","subtitles"].includes(n.kind))},findTrack(e,t=!1){const n=Ee.getTracks.call(this),r=o=>Number((this.captions.meta.get(o)||{}).default),s=Array.from(n).sort((o,a)=>r(a)-r(o));let i;return e.every(o=>(i=s.find(a=>a.language===o),!i)),i||(t?s[0]:void 0)},getCurrentTrack(){return Ee.getTracks.call(this)[this.currentTrack]},getLabel(e){let t=e;return!T.track(t)&&Ge.textTracks&&this.captions.toggled&&(t=Ee.getCurrentTrack.call(this)),T.track(t)?T.empty(t.label)?T.empty(t.language)?rt.get("enabled",this.config):e.language.toUpperCase():t.label:rt.get("disabled",this.config)},updateCues(e){if(!this.supported.ui)return;if(!T.element(this.elements.captions)){this.debug.warn("No captions element to render to");return}if(!T.nullOrUndefined(e)&&!Array.isArray(e)){this.debug.warn("updateCues: Invalid input",e);return}let t=e;if(!t){const s=Ee.getCurrentTrack.call(this);t=Array.from((s||{}).activeCues||[]).map(i=>i.getCueAsHTML()).map(MR)}const n=t.map(s=>s.trim()).join(`
687`);if(n!==this.elements.captions.innerHTML){$i(this.elements.captions);const s=ce("span",Qt(this.config.selectors.caption));s.innerHTML=n,this.elements.captions.appendChild(s),ue.call(this,this.media,"cuechange")}}},uy={enabled:!0,title:"",debug:!1,autoplay:!1,autopause:!0,playsinline:!0,seekTime:10,volume:1,muted:!1,duration:null,displayDuration:!0,invertTime:!0,toggleInvert:!0,ratio:null,clickToPlay:!0,hideControls:!0,resetOnEnd:!1,disableContextMenu:!0,loadSprite:!0,iconPrefix:"plyr",iconUrl:"https://cdn.plyr.io/3.8.4/plyr.svg",blankVideo:"https://cdn.plyr.io/static/blank.mp4",quality:{default:576,options:[4320,2880,2160,1440,1080,720,576,480,360,240],forced:!1,onChange:null},loop:{active:!1},speed:{selected:1,options:[.5,.75,1,1.25,1.5,1.75,2,4]},keyboard:{focused:!0,global:!1},tooltips:{controls:!1,seek:!0},captions:{active:!1,language:"auto",update:!1},fullscreen:{enabled:!0,fallback:!0,iosNative:!1},storage:{enabled:!0,key:"plyr"},controls:["play-large","play","progress","current-time","mute","volume","captions","settings","pip","airplay","fullscreen"],settings:["captions","quality","speed"],i18n:{restart:"Restart",rewind:"Rewind {seektime}s",play:"Play",pause:"Pause",fastForward:"Forward {seektime}s",seek:"Seek",seekLabel:"{currentTime} of {duration}",played:"Played",buffered:"Buffered",currentTime:"Current time",duration:"Duration",volume:"Volume",mute:"Mute",unmute:"Unmute",enableCaptions:"Enable captions",disableCaptions:"Disable captions",download:"Download",enterFullscreen:"Enter fullscreen",exitFullscreen:"Exit fullscreen",frameTitle:"Player for {title}",captions:"Captions",settings:"Settings",pip:"PIP",menuBack:"Go back to previous menu",speed:"Speed",normal:"Normal",quality:"Quality",loop:"Loop",start:"Start",end:"End",all:"All",reset:"Reset",disabled:"Disabled",enabled:"Enabled",advertisement:"Ad",qualityBadge:{2160:"4K",1440:"HD",1080:"HD",720:"HD",576:"SD",480:"S
687D"}},urls:{download:null,vimeo:{sdk:"https://player.vimeo.com/api/player.js",iframe:"https://player.vimeo.com/video/{0}?{1}",api:"https://vimeo.com/api/oembed.json?url={0}"},youtube:{sdk:"https://www.youtube.com/iframe_api",api:"https://noembed.com/embed?url=https://www.youtube.com/watch?v={0}"},googleIMA:{sdk:"https://imasdk.googleapis.com/js/sdkloader/ima3.js"}},listeners:{seek:null,play:null,pause:null,restart:null,rewind:null,fastForward:null,mute:null,volume:null,captions:null,download:null,fullscreen:null,pip:null,airplay:null,speed:null,quality:null,loop:null,language:null},events:["ended","progress","stalled","playing","waiting","canplay","canplaythrough","loadstart","loadeddata","loadedmetadata","timeupdate","volumechange","play","pause","error","seeking","seeked","emptied","ratechange","cuechange","download","enterfullscreen","exitfullscreen","captionsenabled","captionsdisabled","languagechange","controlshidden","controlsshown","ready","statechange","qualitychange","adsloaded","adscontentpause","adscontentresume","adstarted","adsmidpoint","adscomplete","adsallcomplete","adsimpression","adsclick"],selectors:{editable:"input, textarea, select, [contenteditable]",container:".plyr",controls:{container:null,wrapper:".plyr__controls"},labels:"[data-plyr]",buttons:{play:'[data-plyr="play"]',pause:'[data-plyr="pause"]',restart:'[data-plyr="restart"]',rewind:'[data-plyr="rewind"]',fastForward:'[data-plyr="fast-forward"]',mute:'[data-plyr="mute"]',captions:'[data-plyr="captions"]',download:'[data-plyr="download"]',fullscreen:'[data-plyr="fullscreen"]',pip:'[data-plyr="pip"]',airplay:'[data-plyr="airplay"]',settings:'[data-plyr="settings"]',loop:'[data-plyr="loop"]'},inputs:{seek:'[data-plyr="seek"]',volume:'[data-plyr="volume"]',speed:'[data-plyr="speed"]',language:'[data-plyr="language"]',quality:'[data-plyr="quality"]'},display:{currentTime:".plyr__time--current",duration:".plyr__time--duration",buffer:".plyr__progress__buffer",loop:".plyr__progress__loop",volume:".plyr__volume--display"},progress:".plyr__progress",captions:".plyr__captions",caption:".plyr__caption"},classNames:{type:"plyr--{0}",provider:"plyr--{0}",video:"plyr__video-wrapper",embed:"plyr__video-embed",videoFixedRatio:"plyr__video-wrapper--fixed-ratio",embedContainer:"plyr__video-embed__container",poster:"plyr__poster",posterEnabled:"plyr__poster-enabled",ads:"plyr__ads",control:"plyr__control",controlPressed:"plyr__control--pressed",playing:"plyr--playing",paused:"plyr--paused",stopped:"plyr--stopped",loading:"plyr--loading",hover:"plyr--hover",tooltip:"plyr__tooltip",cues:"plyr__cues",marker:"plyr__progress__marker",hidden:"plyr__sr-only",hideControls:"plyr--hide-controls",isTouch:"plyr--is-touch",uiSupported:"plyr--full-ui",noTransition:"plyr--no-transition",display:{time:"plyr__time"},menu:{value:"plyr__menu__value",badge:"plyr__badge",open:"plyr--menu-open"},captions:{enabled:"plyr--captions-enabled",active:"plyr--captions-active"},fullscreen:{enabled:"plyr--fullscreen-enabled",fallback:"plyr--fullscreen-fallback"},pip:{supported:"plyr--pip-supported",active:"plyr--pip-active"},airplay:{supported:"plyr--airplay-supported",active:"plyr--airplay-active"},previewThumbnails:{thumbContainer:"plyr__preview-thumb",thumbContainerShown:"plyr__preview-thumb--is-shown",imageContainer:"plyr__preview-thumb__image-container",timeContainer:"plyr__preview-thumb__time-container",scrubbingContainer:"plyr__preview-scrubbing",scrubbingContainerShown:"plyr__preview-scrubbing--is-shown"}},attributes:{embed:{provider:"data-plyr-provider",id:"data-plyr-embed-id",hash:"data-plyr-embed-hash"}},ads:{enabled:!1,publisherId:"",tagUrl:""},previewThumbnails:{enabled:!1,src:"",withCredentials:!1},vimeo:{byline:!1,portrait:!1,title:!1,speed:!0,transparent:!1,customControls:!0,referrerPolicy:null,premium:!1},youtube:{rel:0,showinfo:0,iv_load_policy:3,modestbranding:1,customControls:!0,noCookie:!1},mediaMetadata:{title:"",artist:"",album:"",artwork:[]},markers:{enabled:!1,points:[]}},Fa={active:"picture-in-picture",inactive:"inline"},Nn={html5:"html5",youtube:"youtube",vimeo:"vimeo"},Ha={audio:"audio",video:"video"};function NR(e){return/^(?:https?:\/\/)?(?:www\.)?(?:youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(e)?Nn.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(e)?Nn.vimeo:null}function Ua(){}class DR{constructor(t=!1){this.enabled=window.console&&t,this.enabled&&this.log("Debugging enabled")}get log(){return this.enabled?Function.prototype.bind.call(console.log,console):Ua}get warn(){return this.enabled?Function.prototype.bind.call(console.warn,console):Ua}get error(){return this.enabled?Function.prototype.bind.call(console.error,console):Ua}}class Nt{constructor(t){Y(this,"onChange",()=>{if(!this.supported)return;const n=this.player.elements.buttons.fullscreen;T.element(n)&&(n.pressed=this.active);const r=this.target===this.player.media?this.target:this.player.elements.container;ue.call(this.player,r,this.active?"enterfullscreen":"exitfullscreen",!0)}),Y(this,"toggleFallback",(n=!1)=>
687{if(n){var r,s;this.scrollPosition={x:(r=window.scrollX)!==null&&r!==void 0?r:0,y:(s=window.scrollY)!==null&&s!==void 0?s:0}}else window.scrollTo(this.scrollPosition.x,this.scrollPosition.y);if(document.body.style.overflow=n?"hidden":"",Ae(this.target,this.player.config.classNames.fullscreen.fallback,n),ot.isIos){let i=document.head.querySelector('meta[name="viewport"]');const o="viewport-fit=cover";i||(i=document.createElement("meta"),i.setAttribute("name","viewport"));const a=T.string(i.content)&&i.content.includes(o);n?(this.cleanupViewport=!a,a||(i.content+=`,${o}`)):this.cleanupViewport&&(i.content=i.content.split(",").filter(l=>l.trim()!==o).join(","))}this.onChange()}),Y(this,"trapFocus",n=>{if(ot.isIos||ot.isIPadOS||!this.active||n.key!=="Tab")return;const r=document.activeElement,s=Hs.call(this.player,"a[href], button:not(:disabled), input:not(:disabled), [tabindex]"),[i]=s,o=s[s.length-1];r===o&&!n.shiftKey?(i.focus(),n.preventDefault()):r===i&&n.shiftKey&&(o.focus(),n.preventDefault())}),Y(this,"update",()=>{if(this.supported){let n;this.forceFallback?n="Fallback (forced)":Nt.nativeSupported?n="Native":n="Fallback",this.player.debug.log(`${n} fullscreen enabled`)}else this.player.debug.log("Fullscreen not supported and fallback disabled");Ae(this.player.elements.container,this.player.config.classNames.fullscreen.enabled,this.supported)}),Y(this,"enter",()=>{this.supported&&(ot.isIos&&this.player.config.fullscreen.iosNative?this.player.isVimeo?this.player.embed.requestFullscreen():this.target.webkitEnterFullscreen():!Nt.nativeSupported||this.forceFallback?this.toggleFallback(!0):this.prefix?T.empty(this.prefix)||this.target[`${this.prefix}Request${this.property}`]():this.target.requestFullscreen({navigationUI:"hide"}))}),Y(this,"exit",()=>{if(this.supported){if(ot.isIos&&this.player.config.fullscreen.iosNative)this.player.isVimeo?this.player.embed.exitFullscreen():this.target.webkitEnterFullscreen(),sn(this.player.play());else if(!Nt.nativeSupported||this.forceFallback)this.toggleFallback(!1);else if(!this.prefix)(document.cancelFullScreen||document.exitFullscreen).call(document);else if(!T.empty(this.prefix)){const n=this.prefix==="moz"?"Cancel":"Exit";document[`${this.prefix}${n}${this.property}`]()}}}),Y(this,"toggle",()=>{this.active?this.exit():this.enter()}),this.player=t,this.prefix=Nt.prefix,this.property=Nt.property,this.scrollPosition={x:0,y:0},this.forceFallback=t.config.fullscreen.fallback==="force",this.player.elements.fullscreen=t.config.fullscreen.container&&vR(this.player.elements.container,t.config.fullscreen.container),we.call(this.player,document,this.prefix==="ms"?"MSFullscreenChange":`${this.prefix}fullscreenchange`,()=>{this.onChange()}),we.call(this.player,this.player.elements.container,"dblclick",n=>{T.element(this.player.elements.controls)&&this.player.elements.controls.contains(n.target)||this.player.listeners.proxy(n,this.toggle,"fullscreen")}),we.call(this,this.player.elements.container,"keydown",n=>this.trapFocus(n)),this.update()}static get nativeSupported(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}get useNative(){return Nt.nativeSupported&&!this.forceFallback}static get prefix(){if(T.function(document.exitFullscreen))return"";let t="";return["webkit","moz","ms"].some(r=>T.function(document[`${r}ExitFullscreen`])||T.function(document[`${r}CancelFullScreen`])?(t=r,!0):!1),t}static get property(){return this.prefix==="moz"?"FullScreen":"Fullscreen"}get supported(){return[this.player.config.fullscreen.enabled,this.player.isVideo,Nt.nativeSupported||this.player.config.fullscreen.fallback,!this.player.isYouTube||Nt.nativeSupported||!ot.isIos||this.player.config.playsinline&&!this.player.config.fullscreen.iosNative].every(Boolean)}get active(){if(!this.supported)return!1;if(!Nt.nativeSupported||this.forceFallback)return po(this.target,this.player.config.classNames.fullscreen.fallback);const t=this.prefix?this.target.getRootNode()[`${this.prefix}${this.property}Element`]:this.target.getRootNode().fullscreenElement;return t&&t.shadowRoot?t===this.target.getRootNode().host:t===this.target}get target(){var t;return ot.isIos&&this.player.config.fullscreen.iosNative?this.player.media:(t=this.player.elements.fullscreen)!==null&&t!==void 0?t:this.player.elements.container}}
vendor: 4,762 bytes, line 687
687function Mi(e,t=1){return new Promise((n,r)=>{const s=new Image,i=()=>{delete s.onload,delete s.onerror,(s.naturalWidth>=t?n:r)(s)};Object.assign(s,{onload:i,onerror:i,src:e})})}const Re={addStyleHook(){Ae(this.elements.container,this.config.selectors.container.replace(".",""),!0),Ae(this.elements.container,this.config.classNames.uiSupported,this.supported.ui)},toggleNativeControls(e=!1){e&&this.isHTML5?this.media.setAttribute("controls",""):this.media.removeAttribute("controls")},build(){if(this.listeners.media(),!this.supported.ui){this.debug.warn(`Basic support only for ${this.provider} ${this.type}`),Re.toggleNativeControls.call(this,!0);return}T.element(this.elements.controls)||(Q.inject.call(this),this.listeners.controls()),Re.toggleNativeControls.call(this),this.isHTML5&&Ee.setup.call(this),this.volume=null,this.muted=null,this.loop=null,this.quality=null,this.speed=null,Q.updateVolume.call(this),Q.timeUpdate.call(this),Q.durationUpdate.call(this),Re.checkPlaying.call(this),Ae(this.elements.container,this.config.classNames.pip.supported,Ge.pip&&this.isHTML5&&this.isVideo),Ae(this.elements.container,this.config.classNames.airplay.supported,Ge.airplay&&this.isHTML5),Ae(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout(()=>{ue.call(this,this.media,"ready")},0),Re.setTitle.call(this),this.poster&&Re.setPoster.call(this,this.poster,!1).catch(()=>{}),this.config.duration&&Q.durationUpdate.call(this),this.config.mediaMetadata&&Q.setMediaMetadata.call(this)},setTitle(){let e=rt.get("play",this.config);if(T.string(this.config.title)&&!T.empty(this.config.title)&&(e+=`, ${this.config.title}`),Array.from(this.elements.buttons.play||[]).forEach(t=>{t.setAttribute("aria-label",e)}),this.isEmbed){const t=et.call(this,"iframe");if(!T.element(t))return;const n=T.empty(this.config.title)?"video":this.config.title,r=rt.get("frameTitle",this.config);t.setAttribute("title",r.replace("{title}",n))}},togglePoster(e){Ae(this.elements.container,this.config.classNames.posterEnabled,e)},setPoster(e,t=!0){return t&&this.poster?Promise.reject(new Error("Poster already set")):(this.media.setAttribute("data-poster",e),this.elements.poster.removeAttribute("hidden"),ER.call(this).then(()=>Mi(e)).catch(n=>{throw e===this.poster&&Re.togglePoster.call(this,!1),n}).then(()=>{if(e!==this.poster)throw new Error("setPoster cancelled by later call to setPoster")}).then(()=>(Object.assign(this.elements.poster.style,{backgroundImage:`url('${e}')`,backgroundSize:""}),Re.togglePoster.call(this,!0),e)))},checkPlaying(e){Ae(this.elements.container,this.config.classNames.playing,this.playing),Ae(this.elements.container,this.config.classNames.paused,this.paused),Ae(this.elements.container,this.config.classNames.stopped,this.stopped),Array.from(this.elements.buttons.play||[]).forEach(t=>{Object.assign(t,{pressed:this.playing}),t.setAttribute("aria-label",rt.get(this.playing?"pause":"play",this.config))}),!(T.event(e)&&e.type==="timeupdate")&&Re.toggleControls.call(this)},checkLoading(e){this.loading=["stalled","waiting"].includes(e.type),clearTimeout(this.timers.loading),this.timers.loading=setTimeout(()=>{Ae(this.elements.container,this.config.classNames.loading,this.loading),Re.toggleControls.call(this)},this.loading?250:0)},toggleControls(e){const{controls:t}=this.elements;if(t&&this.config.hideControls){const n=this.touch&&this.lastSeekTime+2e3>Date.now();this.toggleControls(!!(e||this.loading||this.paused||t.pressed||t.hover||n))}},migrateStyles(){Object.values({...this.media.style}).filter(e=>!T.empty(e)&&T.string(e)&&e.startsWith("--plyr")).forEach(e=>{this.elements.container.style.setProperty(e,this.media.style.getPropertyValue(e)),this.media.style.removeProperty(e)}),T.empty(this.media.style)&&this.media.removeAttribute("style")}};class FR{constructor(t){Y(this,"firstTouch",()=>{const{player:n}=this,{elements:r}=n;n.touch=!0,Ae(r.container,n.config.classNames.isTouch,!0)}),Y(this,"global",(n=!0)=>{const{player:r}=this;r.config.keyboard.global&&Us.call(r,window,"keydown keyup",this.handleKey,n,!1),Us.call(r,document.body,"click",this.toggleMenu,n),Ic.call(r,document.body,"touchstart",this.firstTouch)}),Y(this,"container",()=>{const{player:n}=this,{config:r,elements:s,timers:i}=n;!r.keyboard.global&&r.keyboard.focused&&we.call(n,s.container,"keydown keyup",this.handleKey,!1),we.call(n,s.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",l=>{const{controls:u}=s;u&&l.type==="enterfullscreen"&&(u.pressed=!1,u.hover=!1);const c=["touchstart","touchmove","mousemove"].includes(l.type);let f=0;c&&(Re.toggleControls.call(n,!0),f=n.touch?3e3:2e3),clearTimeout(i.controls),i.controls=setTimeout(()=>Re.toggleControls.call(n,!1),f)});const o=()=>
687{if(!n.isVimeo||n.config.vimeo.premium)return;const l=s.wrapper,{active:u}=n.fullscreen,[c,f]=$c.call(n),h=ny(`aspect-ratio: ${c} / ${f}`);if(!u){h?(l.style.width=null,l.style.height=null):(l.style.maxWidth=null,l.style.margin=null);return}const[d,m]=TR(),p=d/m>c/f;h?(l.style.width=p?"auto":"100%",l.style.height=p?"100%":"auto"):(l.style.maxWidth=p?`${m/f*c}px`:null,l.style.margin=p?"0 auto":null)},a=()=>{clearTimeout(i.resized),i.resized=setTimeout(o,50)};we.call(n,s.container,"enterfullscreen exitfullscreen",l=>{const{target:u}=n.fullscreen;if(u!==s.container||!n.isEmbed&&T.empty(n.config.ratio))return;o(),(l.type==="enterfullscreen"?we:zo).call(n,window,"resize",a)})}),Y(this,"media",()=>{const{player:n}=this,{elements:r}=n;if(we.call(n,n.media,"timeupdate seeking seeked",i=>Q.timeUpdate.call(n,i)),we.call(n,n.media,"durationchange loadeddata loadedmetadata",i=>Q.durationUpdate.call(n,i)),we.call(n,n.media,"ended",()=>{n.isHTML5&&n.isVideo&&n.config.resetOnEnd&&(n.restart(),n.pause())}),we.call(n,n.media,"progress playing seeking seeked",i=>Q.updateProgress.call(n,i)),we.call(n,n.media,"volumechange",i=>Q.updateVolume.call(n,i)),we.call(n,n.media,"playing play pause ended emptied timeupdate",i=>Re.checkPlaying.call(n,i)),we.call(n,n.media,"waiting canplay seeked playing",i=>Re.checkLoading.call(n,i)),n.supported.ui&&n.config.clickToPlay&&!n.isAudio){const i=et.call(n,`.${n.config.classNames.video}`);
687if(!T.element(i))return;we.call(n,r.container,"click",o=>{![r.container,i].includes(o.target)&&!i.contains(o.target)||n.touch&&n.config.hideControls||(n.ended?(this.proxy(o,n.restart,"restart"),this.proxy(o,()=>{sn(n.play())},"play")):this.proxy(o,()=>{sn(n.togglePlay())},"play"))})}n.supported.ui&&n.config.disableContextMenu&&we.call(n,r.wrapper,"contextmenu",i=>{i.preventDefault()},!1),we.call(n,n.media,"volumechange",()=>{n.storage.set({volume:n.volume,muted:n.muted})}),we.call(n,n.media,"ratechange",()=>{Q.updateSetting.call(n,"speed"),n.storage.set({speed:n.speed})}),we.call(n,n.media,"qualitychange",i=>{Q.updateSetting.call(n,"quality",null,i.detail.quality)}),we.call(n,n.media,"ready qualitychange",()=>{Q.setDownloadUrl.call(n)});const s=n.config.events.concat(["keyup","keydown"]).join(" ");we.call(n,n.media,s,i=>{let{detail:o={}}=i;i.type==="error"&&(o=n.media.error),ue.call(n,r.container,i.type,!0,o)})}),Y(this,"proxy",(n,r,s)=>{const{player:i}=this,o=i.config.listeners[s],a=T.function(o);let l=!0;a&&(l=o.call(i,n)),l!==!1&&T.function(r)&&r.call(i,n)}),Y(this,"bind",(n,r,s,i,o=!0)=>{const{player:a}=this,l=a.config.listeners[i],u=T.function(l);we.call(a,n,r,c=>this.proxy(c,s,i),o&&!u)}),Y(this,"controls",()=>{const{player:n}=this,{elements:r}=n,s=ot.isIE?"change":"input";if(r.buttons.play&&Array.from(r.buttons.play).forEach(i=>{this.bind(i,"click",()=>{sn(n.togglePlay())},"play")}),this.bind(r.buttons.restart,"click",n.restart,"restart"),this.bind(r.buttons.rewind,"click",()=>{n.lastSeekTime=Date.now(),n.rewind()},"rewind"),this.bind(r.buttons.fastForward,"click",()=>{n.lastSeekTime=Date.now(),n.forward()},"fastForward"),this.bind(r.buttons.mute,"click",()=>{n.muted=!n.muted},"mute"),this.bind(r.buttons.captions,"click",()=>n.toggleCaptions()),this.bind(r.buttons.download,"click",()=>{ue.call(n,n.media,"download")},"download"),this.bind(r.buttons.fullscreen,"click",()=>{n.fullscreen.toggle()},"fullscreen"),this.bind(r.buttons.pip,"click",()=>{n.pip="toggle"},"pip"),this.bind(r.buttons.airplay,"click",n.airplay,"airplay"),this.bind(r.buttons.settings,"click",i=>{i.stopPropagation(),i.preventDefault(),Q.toggleMenu.call(n,i)}
687,null,!1),this.bind(r.buttons.settings,"keyup",i=>{if([" ","Enter"].includes(i.key)){if(i.key==="Enter"){Q.focusFirstMenuItem.call(n,null,!0);return}i.preventDefault(),i.stopPropagation(),Q.toggleMenu.call(n,i)}},null,!1),this.bind(r.settings.menu,"keydown",i=>{i.key==="Escape"&&Q.toggleMenu.call(n,i)}),this.bind(r.inputs.seek,"mousedown mousemove",i=>{const o=r.progress.getBoundingClientRect(),a=i.pageX-i.clientX,l=100/o.width*(i.pageX-o.left-a);i.currentTarget.setAttribute("seek-value",l)}),this.bind(r.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",i=>{const o=i.currentTarget,a="play-on-seeked";if(T.keyboardEvent(i)&&!["ArrowLeft","ArrowRight"].includes(i.key))return;n.lastSeekTime=Date.now();const l=o.hasAttribute(a),u=["mouseup","touchend","keyup"].includes(i.type);l&&u?(o.removeAttribute(a),sn(n.play())):!u&&n.playing&&(o.setAttribute(a,""),n.pause())}),ot.isIos){const i=Hs.call(n,'input[type="range"]');Array.from(i).forEach(o=>this.bind(o,s,a=>Xg(a.target)))}this.bind(r.inputs.seek,s,i=>{const o=i.currentTarget;let a=o.getAttribute("seek-value");T.empty(a)&&(a=o.value),o.removeAttribute("seek-value"),n.currentTime=a/o.max*n.duration},"seek"),this.bind(r.progress,"mouseenter mouseleave mousemove",i=>Q.updateSeekTooltip.call(n,i)),this.bind(r.progress,"mousemove touchmove",i=>{const{previewThumbnails:o}=n;o&&o.loaded&&o.startMove(i)}),this.bind(r.progress,"mouseleave touchend click",()=>{const{previewThumbnails:i}=n;i&&i.loaded&&i.endMove(!1,!0)}),this.bind(r.progress,"mousedown touchstart",i=>{const{previewThumbnails:o}=n;o&&o.loaded&&o.startScrubbing(i)}),this.bind(r.progress,"mouseup touchend",i=>{const{previewThumbnails:o}=n;o&&o.loaded&&o.endScrubbing(i)}),ot.isWebKit&&Array.from(Hs.call(n,'input[type="range"]')).forEach(i=>{this.bind(i,"input",o=>Q.updateRangeFill.call(n,o.target))}),n.config.toggleInvert&&!T.element(r.display.duration)&&this.bind(r.display.currentTime,"click",()=>{n.currentTime!==0&&(n.config.invertTime=!n.config.invertTime,Q.timeUpdate.call(n))}),this.bind(r.inputs.volume,s,i=>{n.volume=i.target.value},"volume"),this.bind(r.controls,"mouseenter mouseleave",i=>{r.controls.hover=!n.touch&&i.type==="mouseenter"}),r.fullscreen&&Array.from(r.fullscreen.children).filter(i=>
687!i.contains(r.container)).forEach(i=>{this.bind(i,"mouseenter mouseleave",o=>{r.controls&&(r.controls.hover=!n.touch&&o.type==="mouseenter")})}),this.bind(r.controls,"mousedown mouseup touchstart touchend touchcancel",i=>{r.controls.pressed=["mousedown","touchstart"].includes(i.type)}),this.bind(r.controls,"focusin",()=>{const{config:i,timers:o}=n;Ae(r.controls,i.classNames.noTransition,!0),Re.toggleControls.call(n,!0),setTimeout(()=>{Ae(r.controls,i.classNames.noTransition,!1)},0);const a=this.touch?3e3:4e3;clearTimeout(o.controls),o.controls=setTimeout(()=>Re.toggleControls.call(n,!1),a)}),this.bind(r.inputs.volume,"wheel",i=>{const o=i.webkitDirectionInvertedFromDevice,[a,l]=[i.deltaX,-i.deltaY].map(f=>o?-f:f),u=Math.sign(Math.abs(a)>Math.abs(l)?a:l);n.increaseVolume(u/50);const{volume:c}=n.media;(u===1&&c<1||u===-1&&c>0)&&i.preventDefault()},"volume",!1)}),this.player=t,this.lastKey=null,this.focusTimer=null,this.lastKeyDown=null,this.handleKey=this.handleKey.bind(this),this.toggleMenu=this.toggleMenu.bind(this),this.firstTouch=this.firstTouch.bind(this)}handleKey(t){const{player:n}=this,{elements:r}=n,{key:s,type:i,altKey:o,ctrlKey:a,metaKey:l,shiftKey:u}=t,c=i==="keydown",f=c&&s===this.lastKey;if(o||a||l||u||!s)return;const h=d=>{n.currentTime=n.duration/10*d};if(c){const d=document.activeElement;if(T.element(d)){const{editable:p}=n.config.selectors,{seek:v}=r.inputs;if(d!==v&&Zn(d,p)||t.key===" "&&Zn(d,'button, [role^="menuitem"]'))return}switch([" ","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","0","1","2","3","4","5","6","7","8","9","c","f","k","l","m"].includes(s)&&(t.preventDefault(),t.stopPropagation()),s){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":f||h(Number.parseInt(s,10));break;case" ":case"k":f||sn(n.togglePlay());break;case"ArrowUp":n.increaseVolume(.1);break;case"ArrowDown":n.decreaseVolume(.1);break;case"m":f||(n.muted=!n.muted);break;case"ArrowRight":n.forward();break;case"ArrowLeft":n.rewind();break;case"f":n.fullscreen.toggle();break;case"c":f||n.toggleCaptions();break;case"l":n.loop=!n.loop;break}s==="Escape"&&!n.fullscreen.usingNative&&n.fullscreen.active&&n.fullscreen.toggle(),this.lastKey=s}else this.lastKey=null}toggleMenu(t){Q.toggleMenu.call(this.player,t)}}function HR(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ji={exports:{}},UR=ji.exports,_d;function VR(){return _d||(_d=1,(function(e,t){(function(n,r){e.exports=r()})(UR,function(){var n=function(){},r={},s={},i={};function o(h,d){h=h.push?h:[h];var m=[],p=h.length,v=p,b,g,y,w;for(b=function(_,k){k.length&&m.push(_),v--,v||d(m)};p--;){if(g=h[p],y=s[g],y){b(g,y);continue}w=i[g]=i[g]||[],w.push(b)}}function a(h,d){if(h){var m=i[h];if(s[h]=d,!!m)for(;m.length;)m[0](h,d),m.splice(0,1)}}function l(h,d){h.call&&(h={success:h}),d.length?(h.error||n)(d):(h.success||n)(h)}function u(h,d,m,p){var v=document,b=m.async,g=(m.numRetries||0)+1,y=m.before||n,w=h.replace(/[\?|#].*$/,""),_=h.replace(/^(css|img|module|nomodule)!/,""),k,$,O;if(p=p||0,/(^css!|\.css$)/.test(w))O=v.createElement("link"),O.rel="stylesheet",O.href=_,k="hideFocus"in O,k&&O.relList&&(k=0,O.rel="preload",O.as="style");else if(/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(w))O=v.createElement("img"),O.src=_;else if(O=v.createElement("script"),O.src=_,O.async=b===void 0?!0:b,$="noModule"in O,/^module!/.test(w)){if(!$)return d(h,"l");O.type="module"}else if(/^nomodule!/.test(w)&&$)return d(h,"l");O.onload=O.onerror=O.onbeforeload=function(x){var D=x.type[0];if(k)try{O.sheet.cssText.length||(D="e")}catch(q){q.code!=18&&(D="e")}if(D=="e"){if(p+=1,p<g)return u(h,d,m,p)}else if(O.rel=="preload"&&O.as=="style")return O.rel="stylesheet";d(h,D,x.defaultPrevented)},y(h,O)!==!1&&v.head.appendChild(O)}function c(h,d,m){h=h.push?h:[h];var p=h.length,v=p,b=[],g,y;for(g=function(w,_,k){if(_=="e"&&b.push(w),_=="b")if(k)b.push(w);else return;p--,p||d(b)},y=0;y<v;y++)u(h[y],g,m)}function f(h,d,m){var p,v;if(d&&d.trim&&(p=d),v=(p?m:d)||{},p){if(p in r)throw"LoadJS";r[p]=!0}function b(g,y){c(h,function(w){l(v,w),g&&l({success:g,error:y},w),a(p,w)},v)}if(v.returnPromise)return new Promise(b);b()}return f.ready=function(d,m){return o(d,function(p){l(m,p)}),f},f.done=function(d){a(d,[])},f.reset=function(){r={},s={},i={}},f.isDefined=function(d){return d in r},f})})(ji)),ji.exports}var BR=VR(),qR=HR(BR);function Mc(e){return new Promise((t,n)=>{qR(e,{success:t,error:n})})}function WR(e){if(T.empty(e))return null;if(T.number(Number(e)))return e;const t=/^.*(vimeo.com\/|video\/)(\d+).*/,n=e.match(t);return n?n[2]:e}function zR(e){const t=/^.*(vimeo.com\/|video\/)(\d+)(\?.*h=|\/)+([\d,a-f]+)/,n=e.match(t);return n&&n.length===5?n[4]:null}function ds(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,ue.call(this,this.media,e?"play":"pause"))}const Ol={setup(){const e=this;Ae(e.elements.wrapper,e.config.classNames.embed,!0),e.options.speed=e.config.speed.options,Qr.call(e),T.object(window.Vimeo)?Ol.ready.call(e):Mc(e.config.urls.vimeo.sdk).then(()=>{Ol.ready.call(e)}).catch(t=>{e.debug.warn("Vimeo SDK (player.js) failed to load",t)})},ready(){const e=this,t=e.config.vimeo,{premium:n,referrerPolicy:r,...s}=t;let i=e.media.getAttribute("src"),o="";T.empty(i)?(i=e.media.getAttribute(e.config.attributes.embed.id),o=e.media.getAttribute(e.config.attributes.embed.hash)):o=zR(i);const a=o?{h:o}:{};n&&Object.assign(s,{controls:!1,sidedock:!1});const l=cy({loop:e.config.loop.active,autoplay:e.autoplay,muted:e.muted,gesture:"media",playsinline:e.config.playsinline,...a,...s}),u=WR(i),c=ce("iframe"),f=xl(e.config.urls.vimeo.iframe,u,l);if(c.setAttribute("src",f),c.setAttribute("allowfullscreen",""),c.setAttribute("allow",["auto
687play","fullscreen","picture-in-picture","encrypted-media","accelerometer","gyroscope"].join("; ")),T.empty(r)||c.setAttribute("referrerPolicy",r),n||!t.customControls)c.setAttribute("data-poster",e.poster),e.media=ho(c,e.media);else{const g=ce("div",{class:e.config.classNames.embedContainer,"data-poster":e.poster});g.appendChild(c),e.media=ho(g,e.media)}t.customControls||ai(xl(e.config.urls.vimeo.api,f)).then(g=>{T.empty(g)||!g.thumbnail_url||Re.setPoster.call(e,g.thumbnail_url).catch(()=>{})}),e.embed=new window.Vimeo.Player(c,{autopause:e.config.autopause,muted:e.muted}),e.media.paused=!0,e.media.currentTime=0,e.supported.ui&&e.embed.disableTextTrack(),e.media.play=()=>(ds.call(e,!0),e.embed.play()),e.media.pause=()=>(ds.call(e,!1),e.embed.pause()),e.media.stop=()=>{e.pause(),e.currentTime=0};let{currentTime:h}=e.media;Object.defineProperty(e.media,"currentTime",{get(){return h},set(g){const{embed:y,media:w,paused:_,volume:k}=e,$=_&&!y.hasPlayed;w.seeking=!0,ue.call(e,w,"seeking"),Promise.resolve($&&y.setVolume(0)).then(()=>y.setCurrentTime(g)).then(()=>$&&y.pause()).then(()=>$&&y.setVolume(k)).catch(()=>{})}});let d=e.config.speed.selected;Object.defineProperty(e.media,"playbackRate",{get(){return d},set(g){e.embed.setPlaybackRate(g).then(()=>{d=g,ue.call(e,e.media,"ratechange")}).catch(()=>{e.options.speed=[1]})}});let{volume:m}=e.config;Object.defineProperty(e.media,"volume",{get(){return m},set(g){e.embed.setVolume(g).then(()=>{m=g,ue.call(e,e.media,"volumechange")})}});let{muted:p}=e.config;Object.defineProperty(e.media,"muted",{get(){return p},set(g){const y=T.boolean(g)?g:!1;e.embed.setMuted(y?!0:e.config.muted).then(()=>{p=y,ue.call(e,e.media,"volumechange")})}});let{loop:v}=e.config;Object.defineProperty(e.media,"loop",{get(){return v},set(g){const y=T.boolean(g)?g:e.config.loop.active;e.embed.setLoop(y).then(()=>{v=y})}});let b;e.embed.getVideoUrl().then(g=>{b=g,Q.setDownloadUrl.call(e)}).catch(g=>{this.debug.warn(g)}),Object.defineProperty(e.media,"currentSrc",{get(){return b}}),Object.defineProperty(e.media,"ended",{get(){return e.currentTime===e.duration}}),Promise.all([e.embed.getVideoWidth(),e.embed.getVideoHeight()]).then(g=>{const[y,w]=g;e.embed.ratio=sy(y,w),Qr.call(this)}),e.embed.setAutopause(e.config.autopause).then(g=>{e.config.autopause=g}),e.embed.getVideoTitle().then(g=>{e.config.title=g,Re.setTitle.call(this)}),e.embed.getCurrentTime().then(g=>{h=g,ue.call(e,e.media,"timeupdate")}),e.embed.getDuration().then(g=>{e.media.duration=g,ue.call(e,e.media,"durationchange")}),e.embed.getTextTracks().then(g=>{e.media.textTracks=g,Ee.setup.call(e)}),e.embed.on("cuechange",({cues:g=[]})=>{const y=g.map(w=>$R(w.text));Ee.updateCues.call(e,y)}),e.embed.on("loaded",()=>{e.embed.getPaused().then(g=>{ds.call(e,!g),g||ue.call(e,e.media,"playing")}),T.element(e.embed.element)&&e.supported.ui&&e.embed.element.setAttribute("tabindex",-1)}),e.embed.on("bufferstart",()=>{ue.call(e,e.media,"waiting")}),e.embed.on("bufferend",()=>{ue.call(e,e.media,"playing")}),e.embed.on("play",()=>{ds.call(e,!0),ue.call(e,e.media,"playing")}),e.embed.on("pause",()=>{ds.call(e,!1)}),e.embed.on("timeupdate",g=>{e.media.seeking=!1,h=g.seconds,ue.call(e,e.media,"timeupdate")}),e.embed.on("progress",g=>{e.media.buffered=g.percent,ue.call(e,e.media,"progress"),Number.parseInt(g.percent,10)===1&&ue.call(e,e.media,"canplaythrough"),e.embed.getDuration().then(y=>{y!==e.media.duration&&(e.media.duration=y,ue.call(e,e.media,"durationchange"))})}),e.embed.on("seeked",()=>{e.media.seeking=!1,ue.call(e,e.media,"seeked")}),e.embed.on("ended",()=>{e.media.paused=!0,ue.call(e,e.media,"ended")}),e.embed.on("error",g=>{e.media.error=g,ue.call(e,e.media,"error")}),t.customControls&&setTimeout(()=>Re.build.call(e),0)}};function KR(e){if(T.empty(e))return null;const t=/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/,n=e.match(t);return n&&n[2]?n[2]:e}function hs(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,ue.call(this,this.media,e?"play":"pause"))}function GR(e){if(e.noCookie)return"https://www.youtube-nocookie.com";if(window.location.protocol==="http:")return"http://www.youtube.com"}const Li={setup(){if(Ae(this.elements.wrapper,this.config.classNames.embed,!0),T.object(window.YT)&&T.function(window.YT.Player))Li.ready.call(this);else{const e=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=()=>{T.function(e)&&e(),Li.ready.call(this)},Mc(this.config.urls.youtube.sdk).catch(t=>{this.debug.warn("YouTube API failed to load",t)})}},getTitle(e){const t=xl(this.config.urls.youtube.api,e);ai(t).then(n=>{if(T.object(n)){const{title:r,height:s,width:i}=n;this.config.title=r,Re.setTitle.call(this),this.embed.ratio=sy(i,s)}Qr.call(this)}).catch(()=>{Qr.call(this)})},ready(){const e=this,t=e.config.youtube,n=e.media&&e.media.getAttribute("id");if(!T.empty(n)&&n.startsWith("youtube-"))return;let r=e.media.getAttribute("src");T.empty(r)&&(r=e.media.getAttribute(this.config.attributes.embed.id));const s=KR(r),i=PR(e.provider),o=ce("div",{id:i,"data-poster":t.customControls?e.poster:void 0});if(e.media=ho(o,e.media),t.customControls){const a=l=>`https://i.ytimg.com/vi/${s}/${l}default.jpg`;Mi(a("maxres"),121).catch(()=>
687Mi(a("sd"),121)).catch(()=>Mi(a("hq"))).then(l=>Re.setPoster.call(e,l.src)).then(l=>{l.includes("maxres")||(e.elements.poster.style.backgroundSize="cover")}).catch(()=>{})}e.embed=new window.YT.Player(e.media,{videoId:s,host:GR(t),playerVars:Ke({},{autoplay:e.config.autoplay?1:0,hl:e.config.hl,controls:e.supported.ui&&t.customControls?0:1,disablekb:1,playsinline:e.config.playsinline&&!e.config.fullscreen.iosNative?1:0,cc_load_policy:e.captions.active?1:0,cc_lang_pref:e.config.captions.language,widget_referrer:window?window.location.href:null},t),events:{onError(a){if(!e.media.error){const l=a.data,u={2:"The request contains an invalid parameter value. For example, this error occurs if you specify a video ID that does not have 11 characters, or if the video ID contains invalid characters, such as exclamation points or asterisks.",5:"The requested content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred.",100:"The video requested was not found. This error occurs when a video has been removed (for any reason) or has been marked as private.",101:"The owner of the requested video does not allow it to be played in embedded players.",150:"The owner of the requested video does not allow it to be played in embedded players."}[l]||"An unknown error occurred";e.media.error={code:l,message:u},ue.call(e,e.media,"error")}},onPlaybackRateChange(a){const l=a.target;e.media.playbackRate=l.getPlaybackRate(),ue.call(e,e.media,"ratechange")},onReady(a){if(T.function(e.media.play))return;const l=a.target;Li.getTitle.call(e,s),e.media.play=()=>{hs.call(e,!0),l.playVideo()},e.media.pause=()=>{hs.call(e,!1),l.pauseVideo()},e.media.stop=()=>{l.stopVideo()},e.media.duration=l.getDuration(),e.media.paused=!0,e.media.currentTime=0,Object.defineProperty(e.media,"currentTime",{get(){return Number(l.getCurrentTime())},set(h){e.paused&&!e.embed.hasPlayed&&e.embed.mute(),e.media.seeking=!0,ue.call(e,e.media,"seeking"),l.seekTo(h)}}),Object.defineProperty(e.media,"playbackRate",{get(){return l.getPlaybackRate()},set(h){l.setPlaybackRate(h)}});let{volume:u}=e.config;Object.defineProperty(e.media,"volume",{get(){return u},set(h){u=h,l.setVolume(u*100),ue.call(e,e.media,"volumechange")}});let{muted:c}=e.config;Object.defineProperty(e.media,"muted",{get(){return c},set(h){const d=T.boolean(h)?h:c;c=d,l[d?"mute":"unMute"](),l.setVolume(u*100),ue.call(e,e.media,"volumechange")}}),Object.defineProperty(e.media,"currentSrc",{get(){return l.getVideoUrl()}}),Object.defineProperty(e.media,"ended",{get(){return e.currentTime===e.duration}});const f=l.getAvailablePlaybackRates();e.options.speed=f.filter(h=>e.config.speed.options.includes(h)),e.supported.ui&&t.customControls&&e.media.setAttribute("tabindex",-1),ue.call(e,e.media,"timeupdate"),ue.call(e,e.media,"durationchange"),clearInterval(e.timers.buffering),e.timers.buffering=setInterval(()=>{e.media.buffered=l.getVideoLoadedFraction(),(e.media.lastBuffered===null||e.media.lastBuffered<e.media.buffered)&&ue.call(e,e.media,"progress"),e.media.lastBuffered=e.media.buffered,e.media.buffered===1&&(clearInterval(e.timers.buffering),ue.call(e,e.media,"canplaythrough"))},200),t.customControls&&setTimeout(()=>Re.build.call(e),50)},onStateChange(a){const l=a.target;switch(clearInterval(e.timers.playing),e.media.seeking&&[1,2].includes(a.data)&&(e.media.seeking=!1,ue.call(e,e.media,"seeked")),a.data){case-1:ue.call(e,e.media,"timeupdate"),e.media.buffered=l.getVideoLoadedFraction(),ue.call(e,e.media,"progress");break;case 0:hs.call(e,!1),e.media.loop?(l.stopVideo(),l.playVideo()):ue.call(e,e.media,"ended");break;case 1:t.customControls&&!e.config.autoplay&&e.media.paused&&!e.embed.hasPlayed?e.media.pause():(hs.call(e,!0),ue.call(e,e.media,"playing"),e.timers.playing=setInterval(()=>{ue.call(e,e.media,"timeupdate")},50),e.media.duration!==l.getDuration()&&(e.media.duration=l.getDuration(),ue.call(e,e.media,"durationchange")));break;case 2:e.muted||e.embed.unMute(),hs.call(e,!1);break;case 3:ue.call(e,e.media,"waiting");break}ue.call(e,e.elements.container,"statechange",!1,{code:a.data})}}})}},fy={setup(){if(!this.media){this.debug.warn("No media element found!");return}Ae(this.elements.container,this.config.classNames.type.replace("{0}",this.type),!0),Ae(this.elements.container,this.config.classNames.provider.replace("{0}",this.provider),!0),this.isEmbed&&Ae(this.elements.container,this.config.classNames.type.replace("{0}","video"),!0),this.isVideo&&(this.elements.wrapper=ce("div",{class:this.config.classNames.video}),ey(this.media,this.elements.wrapper),this.elements.poster=ce("div",{class:this.config.classNames.poster}),this.elements.wrapper.appendChild(this.elements.poster)),this.isHTML5?Fn.setup.call(this):this.isYouTube?Li.setup.call(this):this.isVimeo&&Ol.setup.call(this)}};function QR(e){e.manager&&e.manager.destroy(),e.elements.displayContainer&&e.elements.displayContainer.destroy(),e.elements.container.remove()}class JR{constructor(t){Y(this,"load",()=>{this.enabled&&(!T.object(window.google)||!T.object(window.google.ima)?Mc(this.player.config.urls.googleIMA.sdk).then(()=>{this.ready()}).catch(()=>{this.trigger("error",new Error("Google IMA SDK failed to load"))}):this.ready())}),Y(this,"ready",()=>{this.enabled||QR(this),this.startSafetyTimer(12e3,"ready()"),this.managerPromise.then(()=>{this.clearSafetyTimer("onAdsManagerLoaded()")}),this.listeners(),this.setupIMA()}),Y(this,"setupIMA",()=>{this.elements.container=ce("div",{class:this.player.config.classNames.ads}),this.player.elements.container.appendChild(this.elements.container),google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED),google.ima.settings.setLocale(this.player.config.ads.language),google.ima.settings.setDisableCustomPlaybackForIOS10Plus(this.player.config.playsinline),this.elements.displayContainer=new google.ima.AdDisplayContainer(this.elements.container,this.player.media),this.loader=new google.ima.AdsLoader(this.elements.displayContainer),this.loader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,n=>this.onAdsManagerLoaded(n),!1),this.loader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,n=>this.onAdError(n),!1),this.requestAds()}),Y(this,"requestAds",()=>{const{container:n}=this.player.elements;try{const r=new google.ima.AdsRequest;r.adTagUrl=this.tagUrl,r.linearAdSlotWidth=n.offsetWidth,r.linearAdSlotHeight=n.offsetHeight,r.nonLinearAdSlotWidth=n.offsetWidth,r.nonLinearAdSlotHeight=n.offsetHeight,r.forceNonLinearFullSlot=!1,r.setAdWillPlayMuted(!this.player.muted),this.loader.requestAds(r)}catch(r){this.onAdError(r)}}
vendor: 5,118 bytes, line 687
687),Y(this,"pollCountdown",(n=!1)=>{if(!n){clearInterval(this.countdownTimer),this.elements.container.removeAttribute("data-badge-text");return}const r=()=>{const s=Ko(Math.max(this.manager.getRemainingTime(),0)),i=`${rt.get("advertisement",this.player.config)} - ${s}`;this.elements.container.setAttribute("data-badge-text",i)};this.countdownTimer=setInterval(r,100)}),Y(this,"onAdsManagerLoaded",n=>{if(!this.enabled)return;const r=new google.ima.AdsRenderingSettings;r.restoreCustomPlaybackStateOnAdBreakComplete=!0,r.enablePreloading=!0,this.manager=n.getAdsManager(this.player,r),this.cuePoints=this.manager.getCuePoints(),this.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,s=>this.onAdError(s)),Object.keys(google.ima.AdEvent.Type).forEach(s=>{this.manager.addEventListener(google.ima.AdEvent.Type[s],i=>this.onAdEvent(i))}),this.trigger("loaded")}),Y(this,"addCuePoints",()=>{T.empty(this.cuePoints)||this.cuePoints.forEach(n=>{if(n!==0&&n!==-1&&n<this.player.duration){const r=this.player.elements.progress;if(T.element(r)){const s=100/this.player.duration*n,i=ce("span",{class:this.player.config.classNames.cues});i.style.left=`${s.toString()}%`,r.appendChild(i)}}})}),Y(this,"onAdEvent",n=>{const{container:r}=this.player.elements,s=n.getAd(),i=n.getAdData();switch((a=>{ue.call(this.player,this.player.media,`ads${a.replace(/_/g,"").toLowerCase()}`)})(n.type),n.type){case google.ima.AdEvent.Type.LOADED:this.trigger("loaded"),this.pollCountdown(!0),s.isLinear()||(s.width=r.offsetWidth,s.height=r.offsetHeight);break;case google.ima.AdEvent.Type.STARTED:this.manager.setVolume(this.player.volume);break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:this.player.ended?this.loadAds():this.loader.contentComplete();break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:this.pauseContent();break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:this.pollCountdown(),this.resumeContent();break;case google.ima.AdEvent.Type.LOG:i.adError&&this.player.debug.warn(`Non-fatal ad error: ${i.adError.getMessage()}`);break}}),Y(this,"onAdError",n=>{this.cancel(),this.player.debug.warn("Ads error",n)}),Y(this,"listeners",()=>{const{container:n}=this.player.elements;let r;this.player.on("canplay",()=>{this.addCuePoints()}),this.player.on("ended",()=>{this.loader.contentComplete()}),this.player.on("timeupdate",()=>{r=this.player.currentTime}),this.player.on("seeked",()=>{const s=this.player.currentTime;T.empty(this.cuePoints)||this.cuePoints.forEach((i,o)=>{r<i&&i<s&&(this.manager.discardAdBreak(),this.cuePoints.splice(o,1))})}),window.addEventListener("resize",()=>{this.manager&&this.manager.resize(n.offsetWidth,n.offsetHeight,google.ima.ViewMode.NORMAL)})}),Y(this,"play",()=>{const{container:n}=this.player.elements;this.managerPromise||this.resumeContent(),this.managerPromise.then(()=>{this.manager.setVolume(this.player.volume),this.elements.displayContainer.initialize();try{this.initialized||(this.manager.init(n.offsetWidth,n.offsetHeight,google.ima.ViewMode.NORMAL),this.manager.start()),this.initialized=!0}catch(r){this.onAdError(r)}}).catch(()=>{})}),Y(this,"resumeContent",()=>{this.elements.container.style.zIndex="",this.playing=!1,sn(this.player.media.play())}),Y(this,"pauseContent",()=>{this.elements.container.style.zIndex=3,this.playing=!0,this.player.media.pause()}),Y(this,"cancel",()=>{this.initialized&&this.resumeContent(),this.trigger("error"),this.loadAds()}),Y(this,"loadAds",()=>{this.managerPromise.then(()=>{this.manager&&this.manager.destroy(),this.managerPromise=new Promise(n=>{this.on("loaded",n),this.player.debug.log(this.manager)}),this.initialized=!1,this.requestAds()}).catch(()=>{})}),Y(this,"trigger",(n,...r)=>{const s=this.events[n];T.array(s)&&s.forEach(i=>{T.function(i)&&i.apply(this,r)})}),Y(this,"on",(n,r)=>(T.array(this.events[n])||(this.events[n]=[]),this.events[n].push(r),this)),Y(this,"startSafetyTimer",(n,r)=>{this.player.debug.log(`Safety timer invoked from: ${r}`),this.safetyTimer=setTimeout(()=>{this.cancel(),this.clearSafetyTimer("startSafetyTimer()")},n)}),Y(this,"clearSafetyTimer",n=>{T.nullOrUndefined(this.safetyTimer)||(this.player.debug.log(`Safety timer cleared from: ${n}`),clearTimeout(this.safetyTimer),this.safetyTimer=null)}),this.player=t,this.config=t.config.ads,this.playing=!1,this.initialized=!1,this.elements={container:null,displayContainer:null},this.manager=null,this.loader=null,this.cuePoints=null,this.events={},this.safetyTimer=null,this.countdownTimer=null,this.managerPromise=new Promise((n,r)=>{this.on("loaded",n),this.on("error",r)}),this.load()}get enabled(){const{config:t}=this;return this.player.isHTML5&&this.player.isVideo&&t.enabled&&(!T.empty(t.publisherId)||T.url(t.tagUrl))}get tagUrl(){const{config:t}=this;if(T.url(t.tagUrl))return t.tagUrl;const n={AV_PUBLISHERID:"58c25bb0073ef448b1087ad6",AV_CHANNELID:"5a0458dc28a06145e4519d21",AV_URL:window.location.hostname,cb:Date.now(),AV_WIDTH:640,AV_HEIGHT:480,AV_CDIM2:t.publisherId};return`https://go.aniview.com/api/adserver6/vast/?${cy(n)}`}}function dy(e=0,t=0,n=255){return Math.min(Math.max(e,t),n)}function YR(e){const t=[];
687return e.split(/\r\n\r\n|\n\n|\r\r/).forEach(r=>{const s={};r.split(/\r\n|\n|\r/).forEach(o=>{if(T.number(s.startTime)){if(!T.empty(o.trim())&&T.empty(s.text)){const a=o.trim().split("#xywh=");[s.text]=a,a[1]&&([s.x,s.y,s.w,s.h]=a[1].split(","))}}else{const a=o.match(/(\d{2})?:?(\d{2}):(\d{2}).(\d{2,3})( ?--> ?)(\d{2})?:?(\d{2}):(\d{2}).(\d{2,3})/);a&&(s.startTime=Number(a[1]||0)*60*60+Number(a[2])*60+Number(a[3])+ +`0.${a[4]}`,s.endTime=Number(a[6]||0)*60*60+Number(a[7])*60+Number(a[8])+ +`0.${a[9]}`)}}),s.text&&t.push(s)}),t}function Ed(e,t){const n=t.width/t.height,r={};return e>n?(r.width=t.width,r.height=1/e*t.width):(r.height=t.height,r.width=e*t.height),r}class Il{constructor(t){Y(this,"load",()=>{this.player.elements.display.seekTooltip&&(this.player.elements.display.seekTooltip.hidden=this.enabled),this.enabled&&this.getThumbnails().then(()=>{this.enabled&&(this.render(),this.determineContainerAutoSizing(),this.listeners(),this.loaded=!0)})}),Y(this,"getThumbnails",()=>new Promise(n=>{const{src:r}=this.player.config.previewThumbnails;if(T.empty(r))throw new Error("Missing previewThumbnails.src config attribute");const s=()=>{this.thumbnails.sort((i,o)=>i.height-o.height),this.player.debug.log("Preview thumbnails",this.thumbnails),n()};if(T.function(r))r(i=>{this.thumbnails=i,s()});else{const o=(T.string(r)?[r]:r).map(a=>this.getThumbnail(a));Promise.all(o).then(s)}})),Y(this,"getThumbnail",n=>new Promise(r=>{ai(n,void 0,this.player.config.previewThumbnails.withCredentials).then(s=>{const i={frames:YR(s),height:null,urlPrefix:""};!i.frames[0].text.startsWith("/")&&!i.frames[0].text.startsWith("http://")&&!i.frames[0].text.startsWith("https://")&&(i.urlPrefix=n.substring(0,n.lastIndexOf("/")+1));const o=new Image;o.onload=()=>{i.height=o.naturalHeight,i.width=o.naturalWidth,this.thumbnails.push(i),r()},o.src=i.urlPrefix+i.frames[0].text})})),Y(this,"startMove",n=>
687{if(this.loaded&&!(!T.event(n)||!["touchmove","mousemove"].includes(n.type))&&this.player.media.duration){if(n.type==="touchmove")this.seekTime=this.player.media.duration*(this.player.elements.inputs.seek.value/100);else{var r,s;const i=this.player.elements.progress.getBoundingClientRect(),o=100/i.width*(n.pageX-i.left);this.seekTime=this.player.media.duration*(o/100),this.seekTime<0&&(this.seekTime=0),this.seekTime>this.player.media.duration-1&&(this.seekTime=this.player.media.duration-1),this.mousePosX=n.pageX,this.elements.thumb.time.textContent=Ko(this.seekTime);const a=(r=this.player.config.markers)===null||r===void 0||(s=r.points)===null||s===void 0?void 0:s.find(({time:l})=>l===Math.round(this.seekTime));a&&this.elements.thumb.time.insertAdjacentHTML("afterbegin",`${a.label}<br>`)}this.showImageAtCurrentTime()}}),Y(this,"endMove",()=>{this.toggleThumbContainer(!1,!0)}),Y(this,"startScrubbing",n=>{(T.nullOrUndefined(n.button)||n.button===!1||n.button===0)&&(this.mouseDown=!0,this.player.media.duration&&(this.toggleScrubbingContainer(!0),this.toggleThumbContainer(!1,!0),this.showImageAtCurrentTime()))}
vendor: 10,840 bytes, line 687
687),Y(this,"endScrubbing",()=>{this.mouseDown=!1,Math.ceil(this.lastTime)===Math.ceil(this.player.media.currentTime)?this.toggleScrubbingContainer(!1):Ic.call(this.player,this.player.media,"timeupdate",()=>{this.mouseDown||this.toggleScrubbingContainer(!1)})}),Y(this,"listeners",()=>{this.player.on("play",()=>{this.toggleThumbContainer(!1,!0)}),this.player.on("seeked",()=>{this.toggleThumbContainer(!1)}),this.player.on("timeupdate",()=>{this.lastTime=this.player.media.currentTime})}),Y(this,"render",()=>{this.elements.thumb.container=ce("div",{class:this.player.config.classNames.previewThumbnails.thumbContainer}),this.elements.thumb.imageContainer=ce("div",{class:this.player.config.classNames.previewThumbnails.imageContainer}),this.elements.thumb.container.appendChild(this.elements.thumb.imageContainer);const n=ce("div",{class:this.player.config.classNames.previewThumbnails.timeContainer});this.elements.thumb.time=ce("span",{},"00:00"),n.appendChild(this.elements.thumb.time),this.elements.thumb.imageContainer.appendChild(n),T.element(this.player.elements.progress)&&this.player.elements.progress.appendChild(this.elements.thumb.container),this.elements.scrubbing.container=ce("div",{class:this.player.config.classNames.previewThumbnails.scrubbingContainer}),this.player.elements.wrapper.appendChild(this.elements.scrubbing.container)}),Y(this,"destroy",()=>{this.elements.thumb.container&&this.elements.thumb.container.remove(),this.elements.scrubbing.container&&this.elements.scrubbing.container.remove()}),Y(this,"showImageAtCurrentTime",()=>{this.mouseDown?this.setScrubbingContainerSize():this.setThumbContainerSizeAndPos();const n=this.thumbnails[0].frames.findIndex(i=>this.seekTime>=i.startTime&&this.seekTime<=i.endTime),r=n>=0;let s=0;this.mouseDown||this.toggleThumbContainer(r),r&&(this.thumbnails.forEach((i,o)=>{this.loadedImages.includes(i.frames[n].text)&&(s=o)}),n!==this.showingThumb&&(this.showingThumb=n,this.loadImage(s)))}),Y(this,"loadImage",(n=0)=>{const r=this.showingThumb,s=this.thumbnails[n],{urlPrefix:i}=s,o=s.frames[r],a=s.frames[r].text,l=i+a;if(!this.currentImageElement||this.currentImageElement.dataset.filename!==a){this.loadingImage&&this.usingSprites&&(this.loadingImage.onload=null);const u=new Image;u.src=l,u.dataset.index=r,u.dataset.filename=a,this.showingThumbFilename=a,this.player.debug.log(`Loading image: ${l}`),u.onload=()=>this.showImage(u,o,n,r,a,!0),this.loadingImage=u,this.removeOldImages(u)}else this.showImage(this.currentImageElement,o,n,r,a,!1),this.currentImageElement.dataset.index=r,this.removeOldImages(this.currentImageElement)}),Y(this,"showImage",(n,r,s,i,o,a=!0)=>{this.player.debug.log(`Showing thumb: ${o}. num: ${i}. qual: ${s}. newimg: ${a}`),this.setImageSizeAndOffset(n,r),a&&(this.currentImageContainer.appendChild(n),this.currentImageElement=n,this.loadedImages.includes(o)||this.loadedImages.push(o)),this.preloadNearby(i,!0).then(this.preloadNearby(i,!1)).then(this.getHigherQuality(s,n,r,o))}),Y(this,"removeOldImages",n=>{Array.from(this.currentImageContainer.children).forEach(r=>{if(r.tagName.toLowerCase()!=="img")return;const s=this.usingSprites?500:1e3;if(r.dataset.index!==n.dataset.index&&!r.dataset.deleting){r.dataset.deleting=!0;const{currentImageContainer:i}=this;setTimeout(()=>{i.removeChild(r),this.player.debug.log(`Removing thumb: ${r.dataset.filename}`)},s)}})}),Y(this,"preloadNearby",(n,r=!0)=>new Promise(s=>{setTimeout(()=>{const i=this.thumbnails[0].frames[n].text;if(this.showingThumbFilename===i){let o;r?o=this.thumbnails[0].frames.slice(n):o=this.thumbnails[0].frames.slice(0,n).reverse();let a=!1;o.forEach(l=>{const u=l.text;if(u!==i&&!this.loadedImages.includes(u)){a=!0,this.player.debug.log(`Preloading thumb filename: ${u}`);const{urlPrefix:c}=this.thumbnails[0],f=c+u,h=new Image;h.src=f,h.onload=()=>{this.player.debug.log(`Preloaded thumb filename: ${u}`),this.loadedImages.includes(u)||this.loadedImages.push(u),s()}}}),a||s()}},300)})),Y(this,"getHigherQuality",(n,r,s,i)=>{if(n<this.thumbnails.length-1){let o=r.naturalHeight;this.usingSprites&&(o=s.h),o<this.thumbContainerHeight&&setTimeout(()=>{this.showingThumbFilename===i&&(this.player.debug.log(`Showing higher quality thumb for: ${i}`),this.loadImage(n+1))},300)}}),Y(this,"toggleThumbContainer",(n=!1,r=!1)=>{const s=this.player.config.classNames.previewThumbnails.thumbContainerShown;this.elements.thumb.container.classList.toggle(s,n),!n&&r&&(this.showingThumb=null,this.showingThumbFilename=null)}),Y(this,"toggleScrubbingContainer",(n=!1)=>{const r=this.player.config.classNames.previewThumbnails.scrubbingContainerShown;this.elements.scrubbing.container.classList.toggle(r,n),n||(this.showingThumb=null,this.showingThumbFilename=null)}),Y(this,"determineContainerAutoSizing",()=>{(this.elements.thumb.imageContainer.clientHeight>20||this.elements.thumb.imageContainer.clientWidth>20)&&(this.sizeSpecifiedInCSS=!0)}),Y(this,"setThumbContainerSizeAndPos",()=>{const{imageContainer:n}=this.elements.thumb;if(this.sizeSpecifiedInCSS){if(n.clientHeight>20&&n.clientWidth<20){const r=Math.floor(n.clientHeight*this.thumbAspectRatio);n.style.width=`${r}px`}else if(n.clientHeight<20&&n.clientWidth>20){const r=Math.floor(n.clientWidth/this.thumbAspectRatio);n.style.height=`${r}px`}}else{const r=Math.floor(this.thumbContainerHeight*this.thumbAspectRatio);n.style.height=`${this.thumbContainerHeight}px`,n.style.width=`${r}px`}this.setThumbContainerPos()}),Y(this,"setThumbContainerPos",()=>{const n=this.player.elements.progress.getBoundingClientRect(),r=this.player.elements.container.getBoundingClientRect(),{container:s}=this.elements.thumb,i=r.left-n.left+10,o=r.right-n.left-s.clientWidth-10,a=this.mousePosX-n.left-s.clientWidth/2,l=dy(a,i,o);s.style.left=`${l}px`,s.style.setProperty("--preview-arrow-offset",`${a-l}px`)}),Y(this,"setScrubbingContainerSize",()=>{const{width:n,height:r}=Ed(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight});this.elements.scrubbing.container.style.width=`${n}px`,this.elements.scrubbing.container.style.height=`${r}px`}),Y(this,"setImageSizeAndOffset",(n,r)=>{if(!this.usingSprites)return;const s=this.thumbContainerHeight/r.h;n.style.height=`${n.naturalHeight*s}px`,n.style.width=`${n.naturalWidth*s}px`,n.style.left=`-${r.x*s}px`,n.style.top=`-${r.y*s}px`}),this.player=t,this.thumbnails=[],this.loaded=!1,this.lastMouseMoveTime=Date.now(),this.mouseDown=!1,this.loadedImages=[],this.elements={thumb:{},scrubbing:{}},this.load()}get enabled(){return this.player.isHTML5&&this.player.isVideo&&this.player.config.previewThumbnails.enabled}get currentImageContainer(){return this.mouseDown?this.elements.scrubbing.container:this.elements.thumb.imageContainer}get usingSprites(){return Object.keys(this.thumbnails[0].frames[0]).includes("w")}get thumbAspectRatio(){return this.usingSprites?this.thumbnails[0].frames[0].w/this.thumbnails[0].frames[0].h:this.thumbnails[0].width/this.thumbnails[0].height}get thumbContainerHeight(){if(this.mouseDown){const{height:t}=Ed(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight});return t}return this.sizeSpecifiedInCSS?this.elements.thumb.imageContainer.clientHeight:Math.floor(this.player.media.clientWidth/this.thumbAspectRatio/4)}get currentImageElement(){return this.mouseDown?this.currentScrubbingImageElement:this.currentThumbnailImageElement}set currentImageElement(t){this.mouseDown?this.currentScrubbingImageElement=t:this.currentThumbnailImageElement=t}}const $l={insertElements(e,t){T.string(t)?yd(e,this.media,{src:t}):T.array(t)&&t.forEach(n=>{yd(e,this.media,n)})},change(e){if(!Zg(e,"sources.length")){this.debug.warn("Invalid source format");return}Fn.cancelRequests.call(this),this.destroy(()=>{this.options.quality=[],vn(this.media),this.media=null,T.element(this.elements.container)&&this.elements.container.removeAttribute("class");const{sources:t,type:n}=e,[{provider:r=Nn.html5,src:s}]=t,i=r==="html5"?n:"div",o=r==="html5"?{}:{src:s};Object.assign(this,{provider:r,type:n,supported:Ge.check(n,r,this.config.playsinline),media:ce(i,o)}),this.elements.container.appendChild(this.media),T.boolean(e.autoplay)&&(this.config.autoplay=e.autoplay),this.isHTML5&&(this.config.crossorigin&&this.media.setAttribute("crossorigin",""),this.config.autoplay&&this.media.setAttribute("autoplay",""),T.empty(e.poster)||(this.poster=e.poster),this.config.loop.active&&this.media.setAttribute("loop",""),this.config.muted&&this.media.setAttribute("muted",""),this.config.playsinline&&this.media.setAttribute("playsinline","")),Re.addStyleHook.call(this),this.isHTML5&&$l.insertElements.call(this,"source",t),this.config.title=e.title,fy.setup.call(this),this.isHTML5&&Object.keys(e).includes("tracks")&&$l.insertElements.call(this,"track",e.tracks),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&Re.build.call(this),this.isHTML5&&this.media.load(),T.empty(e.previewThumbnails)||(Object.assign(this.config.previewThumbnails,e.previewThumbnails),this.previewThumbnails&&this.previewThumbnails.loaded&&(this.previewThumbnails.destroy(),this.previewThumbnails=null),this.config.previewThumbnails.enabled&&(this.previewThumbnails=new Il(this))),this.fullscreen.update()},!0)}};class Bs{constructor(t,n){if(Y(this,"play",()=>T.function(this.media.play)?(this.ads&&this.ads.enabled&&this.ads.managerPromise.then(()=>this.ads.play()).catch(()=>sn(this.media.play())),this.media.play()):null),Y(this,"pause",()=>!this.playing||!T.function(this.media.pause)?null:this.media.pause()),Y(this,"togglePlay",a=>(T.boolean(a)?a:!this.playing)?this.play():this.pause()),Y(this,"stop",()=>{this.isHTML5?(this.pause(),this.restart()):T.function(this.media.stop)&&this.media.stop()}),Y(this,"restart",()=>{this.currentTime=0}),Y(this,"rewind",a=>{this.currentTime-=T.number(a)?a:this.config.seekTime}),Y(this,"forward",a=>{this.currentTime+=T.number(a)?a:this.config.seekTime}),Y(this,"increaseVolume",a=>{const l=this.media.muted?0:this.volume;this.volume=l+(T.number(a)?a:0)}),Y(this,"decreaseVolume",a=>{this.increaseVolume(-a)}),Y(this,"airplay",()=>{Ge.airplay&&this.media.webkitShowPlaybackTargetPicker()}),Y(this,"toggleControls",a=>{if(this.supported.ui&&!this.isAudio){const l=po(this.elements.container,this.config.classNames.hideControls),u=typeof a>"u"?void 0:!a,c=Ae(this.elements.container,this.config.classNames.hideControls,u);if(c&&T.array(this.config.controls)&&this.config.controls.includes("settings")&&!T.empty(this.config.settings)&&Q.toggleMenu.call(this,!1),c!==l){const f=c?"controlshidden":"controlsshown";ue.call(this,this.media,f)}return!c}return!1}),Y(this,"on",(a,l)=>{we.call(this,this.elements.container,a,l)}),Y(this,"once",(a,l)=>{Ic.call(this,this.elements.container,a,l)}),Y(this,"off",(a,l)=>{zo(this.elements.container,a,l)}),Y(this,"destroy",(a,l=!1)=>
687{if(!this.ready)return;const u=()=>{document.body.style.overflow="",this.embed=null,l?(Object.keys(this.elements).length&&(vn(this.elements.buttons.play),vn(this.elements.captions),vn(this.elements.controls),vn(this.elements.wrapper),this.elements.buttons.play=null,this.elements.captions=null,this.elements.controls=null,this.elements.wrapper=null),T.function(a)&&a()):(_R.call(this),Fn.cancelRequests.call(this),ho(this.elements.original,this.elements.container),ue.call(this,this.elements.original,"destroyed",!0),T.function(a)&&a.call(this.elements.original),this.ready=!1,setTimeout(()=>{this.elements=null,this.media=null},200))};this.stop(),clearTimeout(this.timers.loading),clearTimeout(this.timers.controls),clearTimeout(this.timers.resized),this.isHTML5?(Re.toggleNativeControls.call(this,!0),u()):this.isYouTube?(clearInterval(this.timers.buffering),clearInterval(this.timers.playing),this.embed!==null&&T.function(this.embed.destroy)&&this.embed.destroy(),u()):this.isVimeo&&(this.embed!==null&&this.embed.unload().then(u),setTimeout(u,200))}),Y(this,"supports",a=>Ge.mime.call(this,a)),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=Ge.touch,this.media=t,T.string(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||T.nodeList(this.media)||T.array(this.media))&&(this.media=this.media[0]),this.config=Ke({},uy,Bs.defaults,n||{},(()=>{try{return JSON.parse(this.media.getAttribute("data-plyr-config"))}catch{return{}}})()),this.elements={container:null,fullscreen:null,captions:null,buttons:{},display:{},progress:{},inputs:{},settings:{popup:null,menu:null,panels:{},buttons:{}}},this.captions={active:null,currentTrack:-1,meta:new WeakMap},this.fullscreen={active:!1},this.options={speed:[],quality:[]},this.debug=new DR(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",Ge),T.nullOrUndefined(this.media)||!T.element(this.media)){this.debug.error("Setup failed: no suitable element passed");return}if(this.media.plyr){this.debug.warn("Target already setup");return}if(!this.config.enabled){this.debug.error("Setup failed: disabled by config");return}if(!Ge.check().api){this.debug.error("Setup failed: no support");return}const r=this.media.cloneNode(!0);r.autoplay=!1,this.elements.original=r;const s=this.media.tagName.toLowerCase();let i=null,o=null;switch(s){case"div":if(i=this.media.querySelector("iframe"),T.element(i)){if(o=ly(i.getAttribute("src")),this.provider=NR(o.toString()),this.elements.container=this.media,this.media=i,this.elements.container.className="",o.search.length){const a=["1","true"];a.includes(o.searchParams.get("autoplay"))&&(this.config.autoplay=!0),a.includes(o.searchParams.get("loop"))&&(this.config.loop.active=!0),this.isYouTube?(this.config.playsinline=a.includes(o.searchParams.get("playsinline")),this.config.youtube.hl=o.searchParams.get("hl")):this.config.playsinline=!0}}else this.provider=this.media.getAttribute(this.config.attributes.embed.provider),this.media.removeAttribute(this.config.attributes.embed.provider);if(T.empty(this.provider)||!Object.values(Nn).includes(this.provider)){this.debug.error("Setup failed: Invalid provider");return}this.type=Ha.video;break;case"video":case"audio":this.type=s,this.provider=Nn.html5,this.media.hasAttribute("crossorigin")&&(this.config.crossorigin=!0),this.media.hasAttribute("autoplay")&&(this.config.autoplay=!0),(this.media.hasAttribute("playsinline")||this.media.hasAttribute("webkit-playsinline"))&&(this.config.playsinline=!0),this.media.hasAttribute("muted")&&(this.config.muted=!0),this.media.hasAttribute("loop")&&(this.config.loop.active=!0);break;default:this.debug.error("Setup failed: unsupported type");return}if(this.supported=Ge.check(this.type,this.provider),!this.supported.api){this.debug.error("Setup failed: no support");return}this.eventListeners=[],this.listeners=new FR(this),this.storage=new Vs(this),this.media.plyr=this,T.element(this.elements.container)||(this.elements.container=ce("div"),ey(this.media,this.elements.container)),Re.migrateStyles.call(this),Re.addStyleHook.call(this),fy.setup.call(this),this.config.debug&&we.call(this,this.elements.container,this.config.events.join(" "),a=>{this.debug.log(`event: ${a.type}`)}),this.fullscreen=new Nt(this),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&Re.build.call(this),this.listeners.container(),this.listeners.global(),this.config.ads.enabled&&(this.ads=new JR(this)),this.isHTML5&&this.config.auto
687play&&this.once("canplay",()=>sn(this.play())),this.lastSeekTime=0,this.config.previewThumbnails.enabled&&(this.previewThumbnails=new Il(this))}get isHTML5(){return this.provider===Nn.html5}get isEmbed(){return this.isYouTube||this.isVimeo}get isYouTube(){return this.provider===Nn.youtube}get isVimeo(){return this.provider===Nn.vimeo}get isVideo(){return this.type===Ha.video}get isAudio(){return this.type===Ha.audio}get playing(){return!!(this.ready&&!this.paused&&!this.ended)}get paused(){return!!this.media.paused}get stopped(){return!!(this.paused&&this.currentTime===0)}get ended(){return!!this.media.ended}set currentTime(t){if(!this.duration)return;const n=T.number(t)&&t>0;this.media.currentTime=n?Math.min(t,this.duration):0,this.debug.log(`Seeking to ${this.currentTime} seconds`)}get currentTime(){return Number(this.media.currentTime)}get buffered(){const{buffered:t}=this.media;return T.number(t)?t:t&&t.length&&this.duration>0?t.end(0)/this.duration:0}get seeking(){return!!this.media.seeking}get duration(){const t=Number.parseFloat(this.config.duration),n=(this.media||{}).duration,r=!T.number(n)||n===1/0?0:n;return t||r}set volume(t){let n=t;const r=1,s=0;T.string(n)&&(n=Number(n)),T.number(n)||(n=this.storage.get("volume")),T.number(n)||({volume:n}=this.config),n>r&&(n=r),n<s&&(n=s),this.config.volume=n,this.media.volume=n,!T.empty(t)&&this.muted&&n>0&&(this.muted=!1)}get volume(){return Number(this.media.volume)}set muted(t){let n=t;T.boolean(n)||(n=this.storage.get("muted")),T.boolean(n)||(n=this.config.muted),this.config.muted=n,this.media.muted=n}get muted(){return!!this.media.muted}get hasAudio(){return!this.isHTML5||this.isAudio?!0:!!this.media.mozHasAudio||!!this.media.webkitAudioDecodedByteCount||!!(this.media.audioTracks&&this.media.audioTracks.length)}set speed(t){let n=null;T.number(t)&&(n=t),T.number(n)||(n=this.storage.get("speed")),T.number(n)||(n=this.config.speed.selected);const{minimumSpeed:r,maximumSpeed:s}=this;n=dy(n,r,s),this.config.speed.selected=n,setTimeout(()=>{this.media&&(this.media.playbackRate=n)},0)}get speed(){return Number(this.media.playbackRate)}get minimumSpeed(){return this.isYouTube?Math.min(...this.options.speed):this.isVimeo?.5:.0625}get maximumSpeed(){return this.isYouTube?Math.max(...this.options.speed):this.isVimeo?2:16}set quality(t){const n=this.config.quality,r=this.options.quality;if(!r.length)return;let s=[!T.empty(t)&&Number(t),this.storage.get("quality"),n.selected,n.default].find(T.number),i=!0;if(!r.includes(s)){const o=ty(r,s);this.debug.warn(`Unsupported quality option: ${s}, using ${o} instead`),s=o,i=!1}n.selected=s,this.media.quality=s,i&&this.storage.set({quality:s})}get quality(){return this.media.quality}set loop(t){const n=T.boolean(t)?t:this.config.loop.active;this.config.loop.active=n,this.media.loop=n}get loop(){return!!this.media.loop}set source(t){$l.change.call(this,t)}get source(){return this.media.currentSrc}get download(){const{download:t}=this.config.urls;return T.url(t)?t:this.source}set download(t){T.url(t)&&(this.config.urls.download=t,Q.setDownloadUrl.call(this))}set poster(t){if(!this.isVideo){this.debug.warn("Poster can only be set for video");return}Re.setPoster.call(this,t,!1).catch(()=>{})}get poster(){return this.isVideo?this.media.getAttribute("poster")||this.media.getAttribute("data-poster"):null}get ratio(){if(!this.isVideo)return null;const t=mo($c.call(this));return T.array(t)?t.join(":"):t}set ratio(t){if(!this.isVideo){this.debug.warn("Aspect ratio can only be set for video");return}if(!T.string(t)||!ry(t)){this.debug.error(`Invalid aspect ratio specified (${t})`);return}this.config.ratio=mo(t),Qr.call(this)}set autoplay(t){this.config.autoplay=T.boolean(t)?t:this.config.autoplay}get autoplay(){return!!this.config.autoplay}toggleCaptions(t){Ee.toggle.call(this,t,!1)}set currentTrack(t){Ee.set.call(this,t,!1),Ee.setup.call(this)}get currentTrack(){const{toggled:t,currentTrack:n}=this.captions;return t?n:-1}set language(t){Ee.setLanguage.call(this,t,!1)}get language(){return(Ee.getCurrentTrack.call(this)||{}).language}set pip(t){if(!Ge.pip)return;const n=T.boolean(t)?t:!this.pip;T.function(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(n?Fa.active:Fa.inactive),T.function(this.media.requestPictureInPicture)&&(!this.pip&&n?this.media.requestPictureInPicture():this.pip&&!n&&document.exitPictureInPicture())}get pip(){return Ge.pip?T.empty(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:this.media.webkitPresentationMode===Fa.active:null}setPreviewThumbnails(t){this.previewThumbnails&&this.previewThumbnails.loaded&&(this.previewThumbnails.destroy(),this.previewThumbnails=null),Object.assign(this.config.previewThumbnails,t),this.config.previewThumbnails.enabled&&(this.previewThumbnails=new Il(this))}
687static supported(t,n){return Ge.check(t,n)}static loadSprite(t,n){return oy(t,n)}static setup(t,n={}){let r=null;return T.string(t)?r=Array.from(document.querySelectorAll(t)):T.nodeList(t)?r=Array.from(t):T.array(t)&&(r=t.filter(T.element)),T.empty(r)?null:r.map(s=>new Bs(s,n))}}Bs.defaults=yR(uy);const XR=wt(()=>({provide:{plyr:Bs}})),ZR=()=>{},eP=wt(async()=>{let e,t;const n=qe(),r=Qs();[e,t]=Ir(()=>n.fetchSiteContent()),await e,t(),r.query.preview&&r.query.preview==="true"&&(n.previewIsActive=!0)});function Td(e){return e.type.indexOf("mouse")!==-1?e.clientX:e.touches[0].clientX}function Sd(e){return e.type.indexOf("mouse")!==-1?e.clientY:e.touches[0].clientY}var tP=(function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t)}catch{}return e})(),nP={install:function(e,t){var n=Object.assign({},{disableClick:!1,tapTolerance:10,swipeTolerance:30,touchHoldTolerance:400,longTapTimeInterval:400,touchClass:"",dragFrequency:100,rollOverFrequency:100,namespace:"touch"},t);function r(p){var v=this.$$touchObj,b=p.type.indexOf("touch")>=0,g=p.type.indexOf("mouse")>=0,y=this;b&&(v.lastTouchStartTime=p.timeStamp),!(g&&v.lastTouchStartTime&&p.timeStamp-v.lastTouchStartTime<350)&&(v.touchStarted||(f(this),v.touchStarted=!0,v.touchMoved=!1,v.swipeOutBounded=!1,v.startX=Td(p),v.startY=Sd(p),v.currentX=0,v.currentY=0,v.touchStartTime=p.timeStamp,v.hasSwipe=u(this,"swipe")||u(this,"swipe.left")||u(this,"swipe.right")||u(this,"swipe.top")||u(this,"swipe.bottom"),u(this,"hold")&&(v.touchHoldTimer=setTimeout(function(){v.touchHoldTimer=null,c(p,y,"hold")},v.options.touchHoldTolerance)),c(p,this,"press")))}function s(p){var v=this.$$touchObj,b=Td(p),g=Sd(p),y=v.currentX!=b||v.currentY!=g;if(v.currentX=b,v.currentY=g,v.touchMoved){if(v.hasSwipe&&!v.swipeOutBounded){var _=v.options.swipeTolerance;v.swipeOutBounded=Math.abs(v.startX-v.currentX)>_&&Math.abs(v.startY-v.currentY)>_}}else{var w=v.options.tapTolerance;v.touchMoved=Math.abs(v.startX-v.currentX)>w||Math.abs(v.startY-v.currentY)>w,v.touchMoved&&(d(v),c(p,this,"drag.once"))}if(u(this,"rollover")&&y){var k=p.timeStamp,$=v.options.rollOverFrequency;(v.touchRollTime==null||k>v.touchRollTime+$)&&(v.touchRollTime=k,c(p,this,"rollover"))}if(u(this,"drag")&&v.touchStarted&&v.touchMoved&&y){var k=p.timeStamp,$=v.options.dragFrequency;(v.touchDragTime==null||k>v.touchDragTime+$)&&(v.touchDragTime=k,c(p,this,"drag"))}}function i(){var p=this.$$touchObj;d(p),h(this),p.touchStarted=p.touchMoved=!1,p.startX=p.startY=0}function o(p){var v=this.$$touchObj,b=p.type.indexOf("touch")>=0,g=p.type.indexOf("mouse")>=0;b&&(v.lastTouchEndTime=p.timeStamp);var y=b&&!v.touchHoldTimer;if(d(v),v.touchStarted=!1,h(this),!(g&&v.lastTouchEndTime&&p.timeStamp-v.lastTouchEndTime<350))if(c(p,this,"release"),v.touchMoved){if(v.hasSwipe&&!v.swipeOutBounded){var w=v.options.swipeTolerance,_,k=Math.abs(v.startY-v.currentY),$=Math.abs(v.startX-v.currentX);(k>w||$>w)&&(k>$?_=v.startY>v.currentY?"top":"bottom":_=v.startX>v.currentX?"left":"right",u(this,"swipe."+_)?c(p,this,"swipe."+_,_):c(p,this,"swipe",_))}}else if(u(this,"longtap")&&p.timeStamp-v.touchStartTime>v.options.longTapTimeInterval)p.cancelable&&p.preventDefault(),c(p,this,"longtap");else if(u(this,"hold")&&y){p.cancelable&&p.preventDefault();return}else c(p,this,"tap")}function a(){f(this)}function l(){h(this)}function u(p,v){var b=p.$$touchObj.callbacks[v];return b!=null&&b.length>0}function c(p,v,b,g){var y=v.$$touchObj,w=y.callbacks[b];if(w==null||w.length===0)return null;for(var _=0;_<w.length;_++){var k=w[_];k.modifiers.stop&&p.stopPropagation(),k.modifiers.prevent&&p.preventDefault(),!(k.modifiers.self&&p.target!==p.currentTarget)&&typeof k.value=="function"&&(g?k.value(g,p):k.value(p))}}function f(p){var v=p.$$touchObj.options.touchClass;v&&p.classList.add(v)}function h(p){var v=p.$$touchObj.options.touchClass;v&&p.classList.remove(v)}function d(p){p&&p.touchHoldTimer&&(clearTimeout(p.touchHoldTimer),p.touchHoldTimer=null)}function m(p,v){var b=p.$$touchObj||{callbacks:{},hasBindTouchEvents:!1,options:n};return v&&(b.options=Object.assign({},b.options,v)),p.$$touchObj=b,p.$$touchObj}e.directive(n.namespace,{beforeMount:function(p,v){var b=m(p),g=tP?{passive:!0}:!1,y=v.arg||"tap";switch(y){case"swipe":var w=v.modifiers;if(w.left||w.right||w.top||w.bottom){for(var _ in v.modifiers)if(["left","right","top","bottom"].indexOf(_)>=0){var k="swipe."+_;b.callbacks[k]=b.callbacks[k]||[],b.callbacks[k].push(v)}}else b.callbacks.swipe=b.callbacks.swipe||[],b.callbacks.swipe.push(v);break;case"press":case"drag":v.modifiers.disablePassive&&(g=!1);default:b.callbacks[y]=b.callbacks[y]||[],b.callbacks[y].push(v)}b.hasBindTouchEvents||(p.addEventListener("touchstart",r,g),p.addEventListener("touchmove",s,g),p.addEventListener("touchcancel",i),p.addEventListener("touchend",o),b.options.disableClick||(p.addEventListener("mousedown",r),p.addEventListener("mousemove",s),p.addEventListener("mouseup",o),p.addEventListener("mouseenter",a),p.addEventListener("mouseleave",l)),b.hasBindTouchEvents=!0)},unmounted:function(p){d(p.$$touchObj),p.removeEventListener("touchstart",r),p.removeEventListener("touchmove",s),p.removeEventListener("touchcancel",i),p.removeEventListener("touchend",o),p.$$touchObj&&!p.$$touchObj.options.disableClick&&(p.removeEventListener("mousedown",r),p.removeEventListener("mousemove",s),p.removeEventListener("mouseup",o),p.removeEventListener("mouseenter",a),p.removeEventListener("mouseleave",l)),delete p.$$touchObj}}),e.directive(`${n.namespace}-class`,{beforeMount:function(p,v){m(p,{touchClass:v.value})}}),e.directive(`${n.namespace}-options`,{beforeMount:function(p,v){m(p,v.value)}})}};const rP=wt(e=>{e.vueApp.use(nP)}),sP=[y0,v0,S0,v1,x1,O1,I1,$1,M1,j1,V1,B1,XR,ZR,eP,rP];var px=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};
687function hy(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ni={exports:{}},iP=Ni.exports,Cd;function oP(){return Cd||(Cd=1,(function(e,t){(function(n,r){e.exports=r()})(iP,function(){return(function(n){function r(i){if(s[i])return s[i].exports;var o=s[i]={i,l:!1,exports:{}};return n[i].call(o.exports,o,o.exports,r),o.l=!0,o.exports}var s={};return r.m=n,r.c=s,r.d=function(i,o,a){r.o(i,o)||Object.defineProperty(i,o,{configurable:!1,enumerable:!0,get:a})},r.n=function(i){var o=i&&i.__esModule?function(){return i.default}:function(){return i};return r.d(o,"a",o),o},r.o=function(i,o){return Object.prototype.hasOwnProperty.call(i,o)},r.p="",r(r.s=3)})([function(n,r,s){var i=s(1);n.exports=function(o,a){return a=a||{},i.forEach(function(l){var u=typeof l[1]=="function"?l[1](a.retainLength):l[1];o=o.replace(l[0],u)}),o}},function(n){n.exports=[[/'''/g,function(r){return"‴"+(r?"⁣⁣":"")}],[/(\W|^)"(\w)/g,"$1“$2"],[/(\u201c[^"]*)"([^"]*$|[^\u201c"]*\u201c)/g,"$1”$2"],[/([^0-9])"/g,"$1”"],[/''/g,function(r){return"″"+(r?"⁣":"")}],[/(\W|^)'(\S)/g,"$1‘$2"],[/([a-z0-9])'([a-z])/ig,"$1’$2"],[/(\u2018)([0-9]{2}[^\u2019]*)(\u2018([^0-9]|$)|$|\u2019[a-z])/ig,"’$2$3"],[/((\u2018[^']*)|[a-z])'([^0-9]|$)/ig,"$1’$3"],[/(\B|^)\u2018(?=([^\u2018\u2019]*\u2019\b)*([^\u2018\u2019]*\B\W[\u2018\u2019]\b|[^\u2018\u2019]*$))/ig,"$1’"],[/"/g,"″"],[/'/g,"′"]]},function(n,r,s){function i(u){if(["CODE","PRE","SCRIPT","STYLE","NOSCRIPT"].indexOf(u.nodeName.toUpperCase())===-1){var c,f,h,d="",m=u.childNodes,p=[];for(c=0;c<m.length;c++)f=m[c],f.nodeType===l||f.nodeName==="#text"?(p.push([f,d.length]),d+=f.nodeValue||f.value):f.childNodes&&f.childNodes.length&&(d+=i(f));for(c in d=a(d,{retainLength:!0}),p)h=p[c],h[0].nodeValue?h[0].nodeValue=o(d,h[0].nodeValue,h[1]):h[0].value&&(h[0].value=o(d,h[0].value,h[1]));return d}}function o(u,c,f){return u.substr(f,c.length).replace("⁣","")}var a=s(0),l=typeof Element<"u"&&Element.TEXT_NODE||3;n.exports=function(u){return i(u),u}},function(n,r,s){function i(c){return typeof document<"u"&&typeof c>"u"?(l.runOnReady(function(){return a(document.body)}),i):typeof c=="string"?u(c):a(c)}var o=s(1),a=s(2),l=s(4),u=s(0);n.exports=i,n.exports.string=u,n.exports.element=a,n.exports.replacements=o,n.exports.listen=l},function(n,r,s){function i(a){var l=new MutationObserver(function(u){u.forEach(function(c){var f,h=!0,d=!1;try{for(var m,p,v=c.addedNodes[Symbol.iterator]();!(h=(m=v.next()).done);h=!0)p=m.value,o(p)}catch(b){d=!0,f=b}finally{try{!h&&v.return&&v.return()}finally{if(d)throw f}}})});return i.runOnReady(function(){l.observe(a||document.body,{childList:!0,subtree:!0})}),l}var o=s(2);s(0),i.runOnReady=function(a){if(document.readyState!=="loading")a();else if(document.addEventListener)document.addEventListener("DOMContentLoaded",a,!1);else var l=setInterval(function(){document.readyState!=="loading"&&(clearInterval(l),a())},10)},n.exports=i}])})})(Ni)),Ni.exports}var aP=oP();const Ne=hy(aP),lP={class:"smartquotes"},py={__name:"GlobalSmartquotes",setup(e){return Ne.replacements.push([/([0-9])-([0-9])/g,"$1–$2"]),Ne.replacements.push([/([0-9]) -([0-9])/g,"$1–$2"]),Ne.replacements.push([/(\d) -(\d)/g,"$1–$2"]),Ne.replacements.push([/([0-9])- ([0-9])/g,"$1–$2"]),Ne.replacements.push([/([0-9]) - ([0-9])/g,"$1–$2"]),Ne.replacements.push([/([0-9]) – ([0-9])/g,"$1–$2"]),Ne.replacements.push([/([0-9])– ([0-9])/g,"$1–$2"]),Ne.replacements.push([/([0-9]) –([0-9])/g,"$1–$2"]),Ne.replacements.push([/(.)\u2013(.)/g,"$1–$2"]),Ne.replacements.push([/(\s)-(\s)/g,"$1–$2"]),Ne.replacements.push([/(.)-(\d)/g,"$1–$2"]),Ne.replacements.push([/(\d)-(.)/g,"$1–$2"]),Ne.replacements.push([/([0-9])x(\s)/g,"$1×$2"]),Ne.replacements.push([/(\s)x([0-9])/g,"$1×$2"]),Ne.replacements.push([/([0-9])X(\s)/g,"$1×$2"]),Ne.replacements.push([/(\s)X([0-9])/g,"$1×$2"]),Ne.replacements.push([/(\s)x(\s)/g,"$1×$2"]),Ne.replacements.push([/(\s)X(\s)/g,"$1×$2"]),Ne.replacements.push([/(\d)cm/g,"$1 cm"]),Ne.replacements.push([/(\d)CM/g,"$1 cm"]),Ne.replacements.push([/(\d)mm/g,"$1 mm"]),Ne.replacements.push([/(\d)MM/g,"$1 mm"]),Ne.replacements.push([/(CO2)/g,"CO₂"]),Ne.replacements.push([/(\.\.\.)/g,"…"]),fr(()=>{setTimeout(()=>{Ne().listen()},0)}),(t,n)=>(Ve(),$t("div",lP))}},cP=Object.freeze(Object.defineProperty({__proto__:null,default:py},Symbol.toStringTag,{value:"Module"}));function Va(e,t,n){switch(e){case"home":return"/";case"page":return t?`/${t}`:void 0;case"studioSubpage":return t?`/studio/${t}`:void 0;case"project":return t?`/projects/${t}`:void 0;case"projectType":return n?`/search?q=${n}`:void 0;case"projectField":return n?`/search?q=${n}`:void 0;case"projectTheme":return n?`/search?q=${n}`:void 0;case"value":return t?`/values/${t}`:void 0;case"processItem":return t?`/projects/${t}`:void 0;case"writing":return t?`/discourse/writing/${t}`:void 0;case"publicTalk":return t?`/discourse/public-talks/${t}`:void 0;case"journal":return t?`/discourse/journals/${t}`:void 0;case"example":return n?`/search?q=${n}`:void 0;default:console.warn("Invalid document type:",e);return}}const jc=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},uP={class:"navigation-items"},fP={key:0},dP={key:1},hP=["onClick"],pP={__name:"GlobalHeaderNavigation",props:{transparent:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:t}){const n=qe(),r=bt(),s=e,i=t,{transparent:o}=Gl(s),{studioSubpages:a}=n,l=ke(()=>[{title:"Values",slug:"values",items:[{title:"Values",_type:"page",slug:"values"}]},{title:"Projects",slug:"projects",items:[{title:"Selected Projects",_type:"page",slug:"projects/selected"},{title:"All Projects",_type:"page",slug:"projects"}]},{title:"Discourse",slug:"discourse",items:[{title:"All Discourse",_type:"page",slug:"discourse"},{title:"Journals",_type:"page",slug:"discourse/journals"},{title:"Public Talks",_type:"page",slug:"discourse/public-talks"},{title:"Writing",_type:"page",slug:"discourse/writing"},{title:"Process",_type:"page",slug:"discourse/process"}]},{title:"Studio",slug:"studio",items:[{title:"About",_type:"page",slug:"studio"},{title:"Practice",_type:"page",slug:"studio/practice"},{title:"People",_type:"page",slug:"studio/people"},{title:"Collaborators",_type:"page",slug:"studio/collaborators"},{title:"Clients",_type:"page",slug:"studio/clients"},{title:"Awards",_type:"page",slug:"studio/awards"},...a||[]]},{title:"Contact",slug:"contact",items:[{title:"Contact",_type:"page",slug:"contact"}]},{title:"Search",slug:"search",items:[{title:"Search",_type:"page",slug:"search"}]}]),u=d=>r.currentRoute.value.path===`${Va(d._type,d?.slug)}`||r.currentRoute.value.name===`${d?.slug}-slug`&&d.slug!=="studio"||r.currentRoute.value.name===`${d?.slug}-map`||r.currentRoute.value.name===`${d?.slug}-image`||r.currentRoute.value.name===`${d?.slug.replace("/","-")}-slug`&&d.slug!=="studio",c=d=>d.items.some(m=>u(m)),f=it(null),h=d=>{f.value?.slug===d.slug?f.value=null:f.value=d};return fr(()=>{f.value=l.value.find(d=>d.items.some(m=>u(m)))}),(d,m)=>{const p=Ug;return Ve(),$t("nav",{class:tn(["navigation",{transparent:re(o)}])},[Ut("ul",uP,[(Ve(!0),$t(st,null,Yc(re(l),v=>(Ve(),$t("li",{key:v?.slug,class:"navigation-item"},[v.items.length===1?(Ve(),$t("div",fP,[Pe(p,{class:tn(["primary-link",{active:re(r).currentRoute.value.path.includes(v.items[0]?.slug)}]),to:("resolveHref"in d?d.resolveHref:re(Va))(v.items[0]._type,v.items[0]?.slug),onClick:m[0]||(m[0]=()=>(f.value=null,i("close")))},{default:nr(()=>
687[Fr(Ar(v.title),1)]),_:2},1032,["class","to"])])):(Ve(),$t("div",dP,[Ut("button",{class:tn(["primary-link",{active:c(v)&&re(f)?.slug!==v?.slug}]),onClick:()=>h(v)},Ar(v.title),11,hP),Ut("div",{class:tn([{visible:re(f)?.slug===v?.slug},"sub-items"])},[(Ve(!0),$t(st,null,Yc(v.items,b=>(Ve(),rn(p,{key:b?.slug,class:tn(["secondary-link",{active:u(b)}]),to:("resolveHref"in d?d.resolveHref:re(Va))(b._type,b?.slug),onClick:m[1]||(m[1]=()=>i("close"))},{default:nr(()=>[Fr(Ar(b.title),1)]),_:2},1032,["class","to"]))),128))],2)]))]))),128))])],2)}}},my=jc(pP,[["__scopeId","data-v-5f1094b0"]]),mP=Object.freeze(Object.defineProperty({__proto__:null,default:my},Symbol.toStringTag,{value:"Module"})),gP={class:"header shadow"},yP={__name:"GlobalHeader",props:{transparent:{type:Boolean,default:!1}},setup(e){const t=e,{transparent:n}=Gl(t),r=qe(),s=()=>{r.menuIsOpen&&r.closeMenu()};return fr(()=>{window.addEventListener("scroll",s)}),Co(()=>{window.removeEventListener("scroll",s)}),(i,o)=>{const a=Ug,l=my;return Ve(),rn(rl,{name:"fade"},{default:nr(()=>[qc(Ut("header",gP,[Ut("div",{class:tn(["menu-wrapper",{transparent:re(n),open:re(r).menuIsOpen}])},[Pe(a,{class:"title",to:{name:"index"}},{default:nr(()=>[...o[2]||(o[2]=[Fr(" DSDHA ",-1)])]),_:1}),re(r).menuIsOpen?(Ve(),$t("button",{key:0,onClick:o[0]||(o[0]=(...u)=>re(r).closeMenu&&re(r).closeMenu(...u)),class:"menu-button"}," Close ")):(Ve(),$t("button",{key:1,onClick:o[1]||(o[1]=(...u)=>re(r).openMenu&&re(r).openMenu(...u)),class:"menu-button"}," Menu "))],2),Pe(rl,{name:"fade"},{default:nr(()=>[qc(Pe(l,{transparent:re(n),onClose:re(r).closeMenu},null,8,["transparent","onClose"]),[[hu,re(r).menuIsOpen]])]),_:1})],512),[[hu,re(r).navIsVisible]])]),_:1})}}},gy=jc(yP,[["__scopeId","data-v-41f8d2a9"]]),bP=Object.freeze(Object.defineProperty({__proto__:null,default:gy},Symbol.toStringTag,{value:"Module"})),yy=(e="RouteProvider")=>Zr({name:e,props:{route:{type:Object,required:!0},vnode:Object,vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(t){const n=t.renderKey,r=t.route,s={};for(const i in t.route)Object.defineProperty(s,i,{get:()=>n===t.renderKey?t.route[i]:r[i],enumerable:!0});return Rr(Io,nn(s)),()=>t.vnode?Tt(t.vnode,{ref:t.vnodeRef}):t.vnode}}),vP=yy(),Ad=new WeakMap,wP=Zr({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t,slots:n,expose:r}){const s=Le(),i=it(),o=dt(Io,null);let a;r({pageRef:i});const l=dt(h_,null);let u;const c=s.deferHydration();let f=!1,h=0;if(s.isHydrating){const m=s.hooks.hookOnce("app:error",c);bt().beforeEach(m)}e.pageKey&&Rt(()=>e.pageKey,(m,p)=>{m!==p&&s.callHook("page:loading:start")});let d=!1;{const m=bt().beforeResolve(()=>{d=!1});es(()=>{m(),c()})}return()=>Tt(Kp,{name:e.name,route:e.route,...t},{default:m=>{const p=_P(o,m.route,m.Component),v=o&&o.matched.length===m.route.matched.length;if(!m.Component){if(u&&!v)return u;c();return}if(u&&l&&!l.isCurrent(m.route))return u;if(p&&o&&(!l||l?.isCurrent(o)))return v||u?u:null;const b=vl(m,e.pageKey),g=EP(o,m.route,m.Component);!s.isHydrating&&a===b&&!g&&Un(()=>{d||(d=!0,s.callHook("page:loading:end"))}),f&&a!==b&&h++,a=b;const y=!!(e.transition??m.route.meta.pageTransition??Ou),w=y&&Rk([e.transition,m.route.meta.pageTransition,Ou,{onAfterLeave(){s["~transitionFinish"]?.(),delete s["~transitionFinish"],delete s["~transitionPromise"],s.callHook("page:transition:finish",m.Component)}}]),_=e.keepalive??m.route.meta.keepalive??Qw;return u=Tk(y&&w,NE(_,Tt(Fh,{key:h,suspensible:!0,onPending:()=>{f=!0,y&&!s["~transitionPromise"]&&(s["~transitionPromise"]=new Promise(k=>{s["~transitionFinish"]=k})),s.callHook("page:start",m.Component)}
687,onResolve:async()=>{f=!1;try{await Un(),s._route.sync?.(),await s.callHook("page:finish",m.Component),!d&&!g&&(d=!0,await s.callHook("page:loading:end"))}finally{c()}}},{default:()=>{const k={key:b||void 0,vnode:n.default?TP(n.default,m):m.Component,route:m.route,renderKey:b||void 0,trackRootNodes:y,vnodeRef:i};if(!_)return Tt(vP,k);const $=m.Component.type,O=$;let x=Ad.get(O);return x||(x=yy($.name||$.__name),Ad.set(O,x)),Tt(x,k)}}))).default(),u}})}});function _P(e,t,n){if(!e)return!1;const r=t.matched.findIndex(s=>s.components?.default===n?.type);return!r||r===-1?!1:t.matched.slice(0,r).some((s,i)=>s.components?.default!==e.matched[i]?.components?.default)||n&&vl({route:t,Component:n})!==vl({route:e,Component:n})}function EP(e,t,n){return e?t.matched.findIndex(s=>s.components?.default===n?.type)<t.matched.length-1:!1}function TP(e,t){const n=e(t);return n.length===1?Tt(n[0]):Tt(st,void 0,n)}var Di={exports:{}},SP=Di.exports,kd;function CP(){return kd||(kd=1,(function(e,t){(function(n,r){e.exports=r()})(SP,(function(){function n(S,P){(P==null||P>S.length)&&(P=S.length);for(var j=0,R=Array(P);j<P;j++)R[j]=S[j];return R}function r(S,P){var j=typeof Symbol<"u"&&S[Symbol.iterator]||S["@@iterator"];if(j)return(j=j.call(S)).next.bind(j);if(Array.isArray(S)||(j=i(S))||P){j&&(S=j);var R=0;return function(){return R>=S.length?{done:!0}:{done:!1,value:S[R++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
688In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function s(){return s=Object.assign?Object.assign.bind():function(S){for(var P=1;P<arguments.length;P++){var j=arguments[P];for(var R in j)({}).hasOwnProperty.call(j,R)&&(S[R]=j[R])}return S},s.apply(null,arguments)}function i(S,P){if(S){if(typeof S=="string")return n(S,P);var j={}.toString.call(S).slice(8,-1);return j==="Object"&&S.constructor&&(j=S.constructor.name),j==="Map"||j==="Set"?Array.from(S):j==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(j)?n(S,P):void 0}}var o="image-Tb9Ew8CXIwaY6R1kjMvI0uRR-2000x3000-jpg";function a(S){var P=S.split("-"),j=P[1],R=P[2],C=P[3];if(!j||!R||!C)throw new Error("Malformed asset _ref '"+S+`'. Expected an id like "`+o+'".');var I=R.split("x"),N=I[0],W=I[1],ie=+N,Z=+W,te=isFinite(ie)&&isFinite(Z);if(!te)throw new Error("Malformed asset _ref '"+S+`'. Expected an id like "`+o+'".');return{id:j,width:ie,height:Z,format:C}}var l=function(P){var j=P;return j?typeof j._ref=="string":!1},u=function(P){var j=P;return j?typeof j._id=="string":!1},c=function(P){var j=P;return j&&j.asset?typeof j.asset.url=="string":!1},f=function(P){if(typeof P=="object"&&P!==null){var j=P;return j._upload&&(!j.asset||!j.asset._ref)}return!1};function h(S){if(!S)return null;var P;if(typeof S=="string"&&d(S))P={asset:{_ref:m(S)}};else if(typeof S=="string")P={asset:{_ref:S}};else if(l(S))P={asset:S};else if(u(S))P={asset:{_ref:S._id||""}};else if(c(S))P={asset:{_ref:m(S.asset.url)}};else if(typeof S.asset=="object")P=s({},S);else return null;var j=S;return j.crop&&(P.crop=j.crop),j.hotspot&&(P.hotspot=j.hotspot),p(P)}function d(S){return/^https?:\/\//.test(""+S)}function m(S){var P=S.split("/").slice(-1);return("image-"+P[0]).replace(/\.([a-z]+)$/,"-$1")}function p(S){if(S.crop&&S.hotspot)return S;var P=s({},S);return P.crop||(P.crop={left:0,top:0,bottom:0,right:0}),P.hotspot||(P.hotspot={x:.5,y:.5,height:1,width:1}),P}var v=[["width","w"],["height","h"],["format","fm"],["download","dl"],["blur","blur"],["sharpen","sharp"],["invert","invert"],["orientation","or"],["minHeight","min-h"],["maxHeight","max-h"],["minWidth","min-w"],["maxWidth","max-w"],["quality","q"],["fit","fit"],["crop","crop"],["saturation","sat"],["auto","auto"],["dpr","dpr"],["pad","pad"],["frame","frame"]];function b(S){var P=s({},S||{}),j=P.source;delete P.source;var R=h(j);if(!R){if(j&&f(j))return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8HwQACfsD/QNViZkAAAAASUVORK5CYII=";throw new Error("Unable to resolve image URL from source ("+JSON.stringify(j)+")")}var C=R.asset._ref||R.asset._id||"",I=a(C),N=Math.round(R.crop.left*I.width),W=Math.round(R.crop.top*I.height),ie={left:N,top:W,width:Math.round(I.width-R.crop.right*I.width-N),height:Math.round(I.height-R.crop.bottom*I.height-W)},Z=R.hotspot.height*I.height/2,te=R.hotspot.width*I.width/2,be=R.hotspot.x*I.width,ge=R.hotspot.y*I.height,de={left:be-te,top:ge-Z,right:be+te,bottom:ge+Z};
688return P.rect||P.focalPoint||P.ignoreImageParams||P.crop||(P=s({},P,y({crop:ie,hotspot:de},P))),g(s({},P,{asset:I}))}function g(S){var P=(S.baseUrl||"https://cdn.sanity.io").replace(/\/+$/,""),j=S.vanityName?"/"+S.vanityName:"",R=S.asset.id+"-"+S.asset.width+"x"+S.asset.height+"."+S.asset.format+j,C=P+"/images/"+S.projectId+"/"+S.dataset+"/"+R,I=[];if(S.rect){var N=S.rect,W=N.left,ie=N.top,Z=N.width,te=N.height,be=W!==0||ie!==0||te!==S.asset.height||Z!==S.asset.width;be&&I.push("rect="+W+","+ie+","+Z+","+te)}S.bg&&I.push("bg="+S.bg),S.focalPoint&&(I.push("fp-x="+S.focalPoint.x),I.push("fp-y="+S.focalPoint.y));var ge=[S.flipHorizontal&&"h",S.flipVertical&&"v"].filter(Boolean).join("");return ge&&I.push("flip="+ge),v.forEach(function(de){var pe=de[0],M=de[1];typeof S[pe]<"u"?I.push(M+"="+encodeURIComponent(S[pe])):typeof S[M]<"u"&&I.push(M+"="+encodeURIComponent(S[M]))}),I.length===0?C:C+"?"+I.join("&")}function y(S,P){var j,R=P.width,C=P.height;if(!(R&&C))return{width:R,height:C,rect:S.crop};var I=S.crop,N=S.hotspot,W=R/C,ie=I.width/I.height;if(ie>W){var Z=Math.round(I.height),te=Math.round(Z*W),be=Math.max(0,Math.round(I.top)),ge=Math.round((N.right-N.left)/2+N.left),de=Math.max(0,Math.round(ge-te/2));de<I.left?de=I.left:de+te>I.left+I.width&&(de=I.left+I.width-te),j={left:de,top:be,width:te,height:Z}}else{var pe=I.width,M=Math.round(pe/W),z=Math.max(0,Math.round(I.left)),B=Math.round((N.bottom-N.top)/2+N.top),J=Math.max(0,Math.round(B-M/2));J<I.top?J=I.top:J+M>I.top+I.height&&(J=I.top+I.height-M),j={left:z,top:J,width:pe,height:M}}return{width:R,height:C,rect:j}}var w=["clip","crop","fill","fillmax","max","scale","min"],_=["top","bottom","left","right","center","focalpoint","entropy"],k=["format"];function $(S){return S&&"config"in S?typeof S.config=="function":!1}function O(S){return S&&"clientConfig"in S?typeof S.clientConfig=="object":!1}function x(S){for(var P=v,j=r(P),R;!(R=j()).done;){var C=R.value,I=C[0],N=C[1];if(S===I||S===N)return I}return S}function D(S){if($(S)){var P=S.config(),j=P.apiHost,R=P.projectId,C=P.dataset,I=j||"https://api.sanity.io";return new q(null,{baseUrl:I.replace(/^https:\/\/api\./,"https://cdn."),projectId:R,dataset:C})}if(O(S)){var N=S.clientConfig,W=N.apiHost,ie=N.projectId,Z=N.dataset,te=W||"https://api.sanity.io";return new q(null,{baseUrl:te.replace(/^https:\/\/api\./,"https://cdn."),projectId:ie,dataset:Z})}return new q(null,S||{})}var q=(function(){function S(j,R){this.options=void 0,this.options=j?s({},j.options||{},R||{}):s({},R||{})}var P=S.prototype;return P.withOptions=function(R){var C=R.baseUrl||this.options.baseUrl,I={baseUrl:C};for(var N in R)if(R.hasOwnProperty(N)){var W=x(N);I[W]=R[N]}return new S(this,s({baseUrl:C},I))},P.image=function(R){return this.withOptions({source:R})},P.dataset=function(R){return this.withOptions({dataset:R})},P.projectId=function(R){return this.withOptions({projectId:R})},P.bg=function(R){return this.withOptions({bg:R})},P.dpr=function(R){return this.withOptions(R&&R!==1?{dpr:R}:{})},P.width=function(R){return this.withOptions({width:R})},P.height=function(R){return this.withOptions({height:R})},P.focalPoint=function(R,C){return this.withOptions({focalPoint:{x:R,y:C}})},P.maxWidth=function(R){return this.withOptions({maxWidth:R})},P.minWidth=function(R){return this.withOptions({minWidth:R})},P.maxHeight=function(R){return this.withOptions({maxHeight:R})},P.minHeight=function(R){return this.withOptions({minHeight:R})},P.size=function(R,C){return this.withOptions({width:R,height:C})},P.blur=function(R){return this.withOptions({blur:R})},P.sharpen=function(R){return this.withOptions({sharpen:R})},P.rect=function(R,C,I,N){return this.withOptions({rect:{left:R,top:C,width:I,height:N}})},P.format=function(R){return this.withOptions({format:R})},P.invert=function(R){return this.withOptions({invert:R})},P.orientation=function(R){return this.withOptions({orientation:R})},P.quality=function(R){return this.withOptions({quality:R})},P.forceDownload=function(R){return this.withOptions({download:R})},P.flipHorizontal=function(){return this.withOptions({flipHorizontal:!0})},P.flipVertical=function(){return this.withOptions({flipVertical:!0})},P.ignoreImageParams=function(){return this.withOptions({ignoreImageParams:!0})},P.fit=function(R){if(w.indexOf(R)===-1)throw new Error('Invalid fit mode "'+R+'"');return this.withOptions({fit:R})},P.crop=function(R){if(_.indexOf(R)===-1)throw new Error('Invalid crop mode "'+R+'"');return this.withOptions({crop:R})},P.saturation=function(R){return this.withOptions({saturation:R})},P.auto=function(R){if(k.indexOf(R)===-1)throw new Error('Invalid auto mode "'+R+'"');return this.withOptions({auto:R})},P.pad=function(R){return this.withOptions({pad:R})},P.vanityName=function(R){return this.withOptions({vanityName:R})},P.frame=function(R){if(R!==1)throw new Error('Invalid frame value "'+R+'"');return this.withOptions({frame:R})},P.url=function(){return b(this.options)},P.toString=function(){return this.url()},S})();return D}))})(Di)),Di.exports}var AP=CP();const kP=hy(AP),RP={__name:"app",setup(e){const t=qe(),n=Qs(),r=dr(),s=kP(xg().config),i=t.settings?.seo?.seoImage?s.image(t.settings?.seo?.seoImage).width(1200).height(627).fit("crop").url():"";return a0({titleTemplate:o=>o?`${o} | ${t.settings?.seo?.seoTitle}`:t.settings?.seo?.seoTitle,htmlAttrs:{lang:t.settings?.language??"en"},meta:[{property:"og:locale",content:t.settings?.language??"en"},{property:"og:title",content:t.settings?.seo?.seoTitle},{property:"og:site_name",content:t.settings?.seo?.seoTitle},{property:"og:url",content:`${r.public.BASE_URL}${n.fullPath}`},{name:"description",content:t.settings?.seo?.seoDescription},{property:"og:description",content:t.settings?.seo?.seoDescription},{name:"keywords",content:t.settings?.seo?.metaKeywords?t.settings?.seo?.metaKeywords.join(","):""},{property:"og:image",content:i},{property:"og:image:width",content:i?"1200":""},{property:"og:image:height",content:i?Math.floor(1200/(t.settings?.seo?.seoImage?.metadata?.dimensions?.aspectRatio??1.5)):""},{property:"og:image:type",content:t.settings?.seo?.seoImage?.asset?.mimeType??""},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:title",content:t.settings?.seo?.seoTitle},{name:"twitter:description",content:t.settings?.seo?.seoDescription},{name:"twitter:image",content:i}]}),(o,a)=>{const l=py,u=gy,c=wP;return Ve(),$t("div",{class:tn(["container",{white:re(t).textColor==="#fff",black:re(t).textColor==="#000"}])},[Pe(l),Pe(u),Pe(c,{keepalive:!1})],2)}}},PP={class:"container"},xP={class:"text-lg"},OP={class:"text_bold"},IP={__name:"error",props:{error:{type:Object,default:()=>{}}},setup(e){const t=e,n=()=>wp({redirect:"/"});return(r,s)=>{const i=Ga("Header");return Ve(),$t("div",PP,[Pe(i,{onClick:n}),Ut("main",null,[Ut("p",xP,[Ut("span",OP,"Error "+Ar(t.error.statusCode)+":",1),Fr
688(" "+Ar(t.error.message),1)]),Ut("button",{onClick:n,class:"text-base text_bold textlink"},"Back to Main")])])}}},$P=jc(IP,[["__scopeId","data-v-06915621"]]),MP={key:0},Rd={__name:"nuxt-root",setup(e){const t=()=>null,n=Le(),r=n.deferHydration();if(n.isHydrating){const u=n.hooks.hookOnce("app:error",r);bt().beforeEach(u)}const s=!1;Rr(Io,Qs()),n.hooks.callHookWith(u=>u.map(c=>c()),"vue:setup");const i=$o(),o=!1,a=/bot\b|chrome-lighthouse|facebookexternalhit|google\b/i;bh((u,c,f)=>{if(n.hooks.callHook("vue:error",u,c,f)?.catch(h=>console.error("[nuxt] Error in `vue:error` hook",h)),a.test(navigator.userAgent))return n.hooks.callHook("app:error",u),console.error(`[nuxt] Not rendering error page for bot with user agent \`${navigator.userAgent}\`:`,u),!1;if(_p(u)&&(u.fatal||u.unhandled))return n.runWithContext(()=>Jn(u)),!1});const l=!1;return(u,c)=>(Ve(),rn(Fh,{onResolve:re(r)},{default:nr(()=>[re(o)?(Ve(),$t("div",MP)):re(i)?(Ve(),rn(re($P),{key:1,error:re(i)},null,8,["error"])):re(l)?(Ve(),rn(re(t),{key:2,context:re(l)},null,8,["context"])):re(s)?(Ve(),rn(Rb(re(s)),{key:3})):(Ve(),rn(re(RP),{key:4}))]),_:1},8,["onResolve"]))}};let Pd;{let e;Pd=async function(){if(e)return e;const n=!!(window.__NUXT__?.serverRendered??document.getElementById("__NUXT_DATA__")?.dataset.ssr==="true"),r=n?qv(Rd):Bv(Rd),s=n_({vueApp:r});async function i(o){await s.callHook("app:error",o),s.payload.error||=$e(o)}r.config.errorHandler=i,s.hook("app:suspense:resolve",()=>{r.config.errorHandler===i&&(r.config.errorHandler=void 0)}),!n&&Iu.id&&s.hook("app:suspense:resolve",()=>{document.getElementById(Iu.id)?.remove()});try{await i_(s,sP)}catch(o){i(o)}try{await s.hooks.callHook("app:created",r),await s.hooks.callHook("app:beforeMount",r),r.mount(Zw),await s.hooks.callHook("app:mounted",r),await Un()}catch(o){i(o)}return r},e=Pd().catch(t=>{throw console.error("Error while mounting app:",t),t})}export{Le as $,nr as A,Va as B,Ug as C,hy as D,fr as E,st as F,Rt as G,es as H,dr as I,Tt as J,HP as K,Hn as L,qc as M,hu as N,Fr as O,tn as P,fx as Q,gy as R,ux as S,cx as T,lx as U,ax as V,ox as W,zP as X,Fl as Y,jP as Z,jc as _,Qs as a,qP as a0,GP as a1,sx as a2,QP as a3,LP as a4,Rb as a5,px as a6,xg as a7,FP as a8,De as a9,jS as aA,Uf as aB,ht as aC,TS as aD,rs as aE,Hm as aF,Xm as aG,dm as aH,ix as aa,rx as ab,Zr as ac,KP as ad,BP as ae,Ga as af,rl as ag,VP as ah,Ft as ai,kP as aj,me as ak,Un as al,UP as am,qm as an,hx as ao,Cn as ap,Sm as aq,or as ar,fn as as,ze as at,He as au,nC as av,un as aw,Vn as ax,qr as ay,so as az,re as b,rn as c,DP as d,qe as e,bt as f,$t as g,Pe as h,tx as i,YP as j,Ut as k,Ar as l,Dk as m,JP as n,Ve as o,ZP as p,nx as q,XP as r,ex as s,Gl as t,a0 as u,Yc as v,NP as w,it as x,ke as y,WP 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.