(function(mt){typeof define=="function"&&define.amd?define(mt):mt()})((function(){"use strict";/** * @vue/shared v3.5.27 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function mt(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const z={},vt=[],He=()=>{},Us=()=>!1,tn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),jn=e=>e.startsWith("onUpdate:"),re=Object.assign,Ln=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Xi=Object.prototype.hasOwnProperty,q=(e,t)=>Xi.call(e,t),M=Array.isArray,_t=e=>nn(e)==="[object Map]",Vs=e=>nn(e)==="[object Set]",F=e=>typeof e=="function",oe=e=>typeof e=="string",rt=e=>typeof e=="symbol",te=e=>e!==null&&typeof e=="object",Un=e=>(te(e)||F(e))&&F(e.then)&&F(e.catch),Bs=Object.prototype.toString,nn=e=>Bs.call(e),Qi=e=>nn(e).slice(8,-1),sn=e=>nn(e)==="[object Object]",Vn=e=>oe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Pt=mt(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),on=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},er=/-\w/g,ge=on(e=>e.replace(er,t=>t.slice(1).toUpperCase())),tr=/\B([A-Z])/g,Ee=on(e=>e.replace(tr,"-$1").toLowerCase()),rn=on(e=>e.charAt(0).toUpperCase()+e.slice(1)),Bn=on(e=>e?`on${rn(e)}`:""),Se=(e,t)=>!Object.is(e,t),Hn=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},nr=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Wn=e=>{const t=oe(e)?Number(e):NaN;return isNaN(t)?e:t};let Ws;const ln=()=>Ws||(Ws=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function cn(e){if(M(e)){const t={};for(let n=0;n{if(n){const s=n.split(or);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Ne(e){let t="";if(oe(e))t=e;else if(M(e))for(let n=0;n!!(e&&e.__v_isRef===!0),$e=e=>oe(e)?e:e==null?"":M(e)||te(e)&&(e.toString===Bs||!F(e.toString))?zs(e)?$e(e.value):JSON.stringify(e,qs,2):String(e),qs=(e,t)=>zs(t)?qs(e,t.value):_t(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,o],i)=>(n[Kn(s,i)+" =>"]=o,n),{})}:Vs(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Kn(n))}:rt(t)?Kn(t):te(t)&&!M(t)&&!sn(t)?String(t):t,Kn=(e,t="")=>{var n;return rt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** * @vue/reactivity v3.5.27 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let Ce;class ar{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ce,!t&&Ce&&(this.index=(Ce.scopes||(Ce.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;t0&&--this._on===0&&(Ce=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n0)return;if($t){let t=$t;for($t=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Et;){let t=Et;for(Et=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function Zs(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Xs(e){let t,n=e.depsTail,s=n;for(;s;){const o=s.prevDep;s.version===-1?(s===n&&(n=o),Yn(s),fr(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=o}e.deps=t,e.depsTail=n}function Jn(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Qs(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Qs(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===At)||(e.globalVersion=At,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Jn(e))))return;e.flags|=2;const t=e.dep,n=Q,s=De;Q=e,De=!0;try{Zs(e);const o=e.fn(e._value);(t.version===0||Se(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{Q=n,De=s,Xs(e),e.flags&=-3}}function Yn(e,t=!1){const{dep:n,prevSub:s,nextSub:o}=e;if(s&&(s.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Yn(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function fr(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let De=!0;const eo=[];function We(){eo.push(De),De=!1}function Ke(){const e=eo.pop();De=e===void 0?!0:e}function to(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Q;Q=void 0;try{t()}finally{Q=n}}}let At=0;class dr{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 an{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(!Q||!De||Q===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Q)n=this.activeLink=new dr(Q,this),Q.deps?(n.prevDep=Q.depsTail,Q.depsTail.nextDep=n,Q.depsTail=n):Q.deps=Q.depsTail=n,no(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=Q.depsTail,n.nextDep=void 0,Q.depsTail.nextDep=n,Q.depsTail=n,Q.deps===n&&(Q.deps=s)}return n}trigger(t){this.version++,At++,this.notify(t)}notify(t){qn();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Gn()}}}function no(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)no(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Zn=new WeakMap,ft=Symbol(""),Xn=Symbol(""),Mt=Symbol("");function be(e,t,n){if(De&&Q){let s=Zn.get(e);s||Zn.set(e,s=new Map);let o=s.get(n);o||(s.set(n,o=new an),o.map=s,o.key=n),o.track()}}function Qe(e,t,n,s,o,i){const r=Zn.get(e);if(!r){At++;return}const l=c=>{c&&c.trigger()};if(qn(),t==="clear")r.forEach(l);else{const c=M(e),f=c&&Vn(n);if(c&&n==="length"){const u=Number(s);r.forEach((d,g)=>{(g==="length"||g===Mt||!rt(g)&&g>=u)&&l(d)})}else switch((n!==void 0||r.has(void 0))&&l(r.get(n)),f&&l(r.get(Mt)),t){case"add":c?f&&l(r.get("length")):(l(r.get(ft)),_t(e)&&l(r.get(Xn)));break;case"delete":c||(l(r.get(ft)),_t(e)&&l(r.get(Xn)));break;case"set":_t(e)&&l(r.get(ft));break}}Gn()}function yt(e){const t=W(e);return t===e?t:(be(t,"iterate",Mt),Fe(e)?t:t.map(je))}function un(e){return be(e=W(e),"iterate",Mt),e}function lt(e,t){return tt(e)?wt(dt(e)?je(t):t):je(t)}const hr={__proto__:null,[Symbol.iterator](){return Qn(this,Symbol.iterator,e=>lt(this,e))},concat(...e){return yt(this).concat(...e.map(t=>M(t)?yt(t):t))},entries(){return Qn(this,"entries",e=>(e[1]=lt(this,e[1]),e))},every(e,t){return et(this,"every",e,t,void 0,arguments)},filter(e,t){return et(this,"filter",e,t,n=>n.map(s=>lt(this,s)),arguments)},find(e,t){return et(this,"find",e,t,n=>lt(this,n),arguments)},findIndex(e,t){return et(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return et(this,"findLast",e,t,n=>lt(this,n),arguments)},findLastIndex(e,t){return et(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return et(this,"forEach",e,t,void 0,arguments)},includes(...e){return es(this,"includes",e)},indexOf(...e){return es(this,"indexOf",e)},join(e){return yt(this).join(e)},lastIndexOf(...e){return es(this,"lastIndexOf",e)},map(e,t){return et(this,"map",e,t,void 0,arguments)},pop(){return Ft(this,"pop")},push(...e){return Ft(this,"push",e)},reduce(e,...t){return so(this,"reduce",e,t)},reduceRight(e,...t){return so(this,"reduceRight",e,t)},shift(){return Ft(this,"shift")},some(e,t){return et(this,"some",e,t,void 0,arguments)},splice(...e){return Ft(this,"splice",e)},toReversed(){return yt(this).toReversed()},toSorted(e){return yt(this).toSorted(e)},toSpliced(...e){return yt(this).toSpliced(...e)},unshift(...e){return Ft(this,"unshift",e)},values(){return Qn(this,"values",e=>lt(this,e))}};function Qn(e,t,n){const s=un(e),o=s[t]();return s!==e&&!Fe(e)&&(o._next=o.next,o.next=()=>{const i=o._next();return i.done||(i.value=n(i.value)),i}),o}const pr=Array.prototype;function et(e,t,n,s,o,i){const r=un(e),l=r!==e&&!Fe(e),c=r[t];if(c!==pr[t]){const d=c.apply(e,i);return l?je(d):d}let f=n;r!==e&&(l?f=function(d,g){return n.call(this,lt(e,d),g,e)}:n.length>2&&(f=function(d,g){return n.call(this,d,g,e)}));const u=c.call(r,f,s);return l&&o?o(u):u}function so(e,t,n,s){const o=un(e);let i=n;return o!==e&&(Fe(e)?n.length>3&&(i=function(r,l,c){return n.call(this,r,l,c,e)}):i=function(r,l,c){return n.call(this,r,lt(e,l),c,e)}),o[t](i,...s)}function es(e,t,n){const s=W(e);be(s,"iterate",Mt);const o=s[t](...n);return(o===-1||o===!1)&&os(n[0])?(n[0]=W(n[0]),s[t](...n)):o}function Ft(e,t,n=[]){We(),qn();const s=W(e)[t].apply(e,n);return Gn(),Ke(),s}const gr=mt("__proto__,__v_isRef,__isVue"),oo=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(rt));function br(e){rt(e)||(e=String(e));const t=W(this);return be(t,"has",e),t.hasOwnProperty(e)}class io{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return i;if(n==="__v_raw")return s===(o?i?fo:uo:i?ao:co).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const r=M(t);if(!o){let c;if(r&&(c=hr[n]))return c;if(n==="hasOwnProperty")return br}const l=Reflect.get(t,n,fe(t)?t:s);if((rt(n)?oo.has(n):gr(n))||(o||be(t,"get",n),i))return l;if(fe(l)){const c=r&&Vn(n)?l:l.value;return o&&te(c)?ss(c):c}return te(l)?o?ss(l):ns(l):l}}class ro extends io{constructor(t=!1){super(!1,t)}set(t,n,s,o){let i=t[n];const r=M(t)&&Vn(n);if(!this._isShallow){const f=tt(i);if(!Fe(s)&&!tt(s)&&(i=W(i),s=W(s)),!r&&fe(i)&&!fe(s))return f||(i.value=s),!0}const l=r?Number(n)e,fn=e=>Reflect.getPrototypeOf(e);function wr(e,t,n){return function(...s){const o=this.__v_raw,i=W(o),r=_t(i),l=e==="entries"||e===Symbol.iterator&&r,c=e==="keys"&&r,f=o[e](...s),u=n?ts:t?wt:je;return!t&&be(i,"iterate",c?Xn:ft),re(Object.create(f),{next(){const{value:d,done:g}=f.next();return g?{value:d,done:g}:{value:l?[u(d[0]),u(d[1])]:u(d),done:g}}})}}function dn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function xr(e,t){const n={get(o){const i=this.__v_raw,r=W(i),l=W(o);e||(Se(o,l)&&be(r,"get",o),be(r,"get",l));const{has:c}=fn(r),f=t?ts:e?wt:je;if(c.call(r,o))return f(i.get(o));if(c.call(r,l))return f(i.get(l));i!==r&&i.get(o)},get size(){const o=this.__v_raw;return!e&&be(W(o),"iterate",ft),o.size},has(o){const i=this.__v_raw,r=W(i),l=W(o);return e||(Se(o,l)&&be(r,"has",o),be(r,"has",l)),o===l?i.has(o):i.has(o)||i.has(l)},forEach(o,i){const r=this,l=r.__v_raw,c=W(l),f=t?ts:e?wt:je;return!e&&be(c,"iterate",ft),l.forEach((u,d)=>o.call(i,f(u),f(d),r))}};return re(n,e?{add:dn("add"),set:dn("set"),delete:dn("delete"),clear:dn("clear")}:{add(o){!t&&!Fe(o)&&!tt(o)&&(o=W(o));const i=W(this);return fn(i).has.call(i,o)||(i.add(o),Qe(i,"add",o,o)),this},set(o,i){!t&&!Fe(i)&&!tt(i)&&(i=W(i));const r=W(this),{has:l,get:c}=fn(r);let f=l.call(r,o);f||(o=W(o),f=l.call(r,o));const u=c.call(r,o);return r.set(o,i),f?Se(i,u)&&Qe(r,"set",o,i):Qe(r,"add",o,i),this},delete(o){const i=W(this),{has:r,get:l}=fn(i);let c=r.call(i,o);c||(o=W(o),c=r.call(i,o)),l&&l.call(i,o);const f=i.delete(o);return c&&Qe(i,"delete",o,void 0),f},clear(){const o=W(this),i=o.size!==0,r=o.clear();return i&&Qe(o,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=wr(o,e,t)}),n}function hn(e,t){const n=xr(e,t);return(s,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?s:Reflect.get(q(n,o)&&o in s?n:s,o,i)}const kr={get:hn(!1,!1)},Sr={get:hn(!1,!0)},Cr={get:hn(!0,!1)},Tr={get:hn(!0,!0)},co=new WeakMap,ao=new WeakMap,uo=new WeakMap,fo=new WeakMap;function Or(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ir(e){return e.__v_skip||!Object.isExtensible(e)?0:Or(Qi(e))}function ns(e){return tt(e)?e:pn(e,!1,mr,kr,co)}function Rr(e){return pn(e,!1,_r,Sr,ao)}function ss(e){return pn(e,!0,vr,Cr,uo)}function Aa(e){return pn(e,!0,yr,Tr,fo)}function pn(e,t,n,s,o){if(!te(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=Ir(e);if(i===0)return e;const r=o.get(e);if(r)return r;const l=new Proxy(e,i===2?s:n);return o.set(e,l),l}function dt(e){return tt(e)?dt(e.__v_raw):!!(e&&e.__v_isReactive)}function tt(e){return!!(e&&e.__v_isReadonly)}function Fe(e){return!!(e&&e.__v_isShallow)}function os(e){return e?!!e.__v_raw:!1}function W(e){const t=e&&e.__v_raw;return t?W(t):e}function ho(e){return!q(e,"__v_skip")&&Object.isExtensible(e)&&Hs(e,"__v_skip",!0),e}const je=e=>te(e)?ns(e):e,wt=e=>te(e)?ss(e):e;function fe(e){return e?e.__v_isRef===!0:!1}function nt(e){return po(e,!1)}function Pr(e){return po(e,!0)}function po(e,t){return fe(e)?e:new Er(e,t)}class Er{constructor(t,n){this.dep=new an,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:W(t),this._value=n?t:je(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||Fe(t)||tt(t);t=s?t:W(t),Se(t,n)&&(this._rawValue=t,this._value=s?t:je(t),this.dep.trigger())}}function w(e){return fe(e)?e.value:e}const $r={get:(e,t,n)=>t==="__v_raw"?e:w(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const o=e[t];return fe(o)&&!fe(n)?(o.value=n,!0):Reflect.set(e,t,n,s)}};function go(e){return dt(e)?e:new Proxy(e,$r)}class Ar{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new an,{get:s,set:o}=t(n.track.bind(n),n.trigger.bind(n));this._get=s,this._set=o}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Mr(e){return new Ar(e)}class Fr{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new an(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=At-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&Q!==this)return Ys(this,!0),!0}get value(){const t=this.dep.track();return Qs(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Nr(e,t,n=!1){let s,o;return F(e)?s=e:(s=e.get,o=e.set),new Fr(s,o,n)}const gn={},bn=new WeakMap;let ht;function Dr(e,t=!1,n=ht){if(n){let s=bn.get(n);s||bn.set(n,s=[]),s.push(e)}}function jr(e,t,n=z){const{immediate:s,deep:o,once:i,scheduler:r,augmentJob:l,call:c}=n,f=E=>o?E:Fe(E)||o===!1||o===0?st(E,1):st(E);let u,d,g,_,k=!1,R=!1;if(fe(e)?(d=()=>e.value,k=Fe(e)):dt(e)?(d=()=>f(e),k=!0):M(e)?(R=!0,k=e.some(E=>dt(E)||Fe(E)),d=()=>e.map(E=>{if(fe(E))return E.value;if(dt(E))return f(E);if(F(E))return c?c(E,2):E()})):F(e)?t?d=c?()=>c(e,2):e:d=()=>{if(g){We();try{g()}finally{Ke()}}const E=ht;ht=u;try{return c?c(e,3,[_]):e(_)}finally{ht=E}}:d=He,t&&o){const E=d,I=o===!0?1/0:o;d=()=>st(E(),I)}const U=ur(),P=()=>{u.stop(),U&&U.active&&Ln(U.effects,u)};if(i&&t){const E=t;t=(...I)=>{E(...I),P()}}let L=R?new Array(e.length).fill(gn):gn;const K=E=>{if(!(!(u.flags&1)||!u.dirty&&!E))if(t){const I=u.run();if(o||k||(R?I.some((D,Y)=>Se(D,L[Y])):Se(I,L))){g&&g();const D=ht;ht=u;try{const Y=[I,L===gn?void 0:R&&L[0]===gn?[]:L,_];L=I,c?c(t,3,Y):t(...Y)}finally{ht=D}}}else u.run()};return l&&l(K),u=new Gs(d),u.scheduler=r?()=>r(K,!1):K,_=E=>Dr(E,!1,u),g=u.onStop=()=>{const E=bn.get(u);if(E){if(c)c(E,4);else for(const I of E)I();bn.delete(u)}},t?s?K(!0):L=u.run():r?r(K.bind(null,!0),!0):u.run(),P.pause=u.pause.bind(u),P.resume=u.resume.bind(u),P.stop=P,P}function st(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--,fe(e))st(e.value,t,n);else if(M(e))for(let s=0;s{st(s,t,n)});else if(sn(e)){for(const s in e)st(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&st(e[s],t,n)}return e}/** * @vue/runtime-core v3.5.27 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/const Nt=[];let is=!1;function Ma(e,...t){if(is)return;is=!0,We();const n=Nt.length?Nt[Nt.length-1].component:null,s=n&&n.appContext.config.warnHandler,o=Lr();if(s)xt(s,n,11,[e+t.map(i=>{var r,l;return(l=(r=i.toString)==null?void 0:r.call(i))!=null?l:JSON.stringify(i)}).join(""),n&&n.proxy,o.map(({vnode:i})=>`at <${gi(n,i.type)}>`).join(` `),o]);else{const i=[`[Vue warn]: ${e}`,...t];o.length&&i.push(` `,...Ur(o)),console.warn(...i)}Ke(),is=!1}function Lr(){let e=Nt[Nt.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const s=e.component&&e.component.parent;e=s&&s.vnode}return t}function Ur(e){const t=[];return e.forEach((n,s)=>{t.push(...s===0?[]:[` `],...Vr(n))}),t}function Vr({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",s=e.component?e.component.parent==null:!1,o=` at <${gi(e.component,e.type,s)}`,i=">"+n;return e.props?[o,...Br(e.props),i]:[o+i]}function Br(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(s=>{t.push(...bo(s,e[s]))}),n.length>3&&t.push(" ..."),t}function bo(e,t,n){return oe(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:fe(t)?(t=bo(e,W(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):F(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=W(t),n?t:[`${e}=`,t])}function xt(e,t,n,s){try{return s?e(...s):e()}catch(o){Dt(o,t,n)}}function ze(e,t,n,s){if(F(e)){const o=xt(e,t,n,s);return o&&Un(o)&&o.catch(i=>{Dt(i,t,n)}),o}if(M(e)){const o=[];for(let i=0;i>>1,o=we[s],i=jt(o);i=jt(n)?we.push(e):we.splice(Wr(t),0,e),e.flags|=1,_o()}}function _o(){mn||(mn=mo.then(xo))}function ls(e){M(e)?kt.push(...e):ct&&e.id===-1?ct.splice(St+1,0,e):e.flags&1||(kt.push(e),e.flags|=1),_o()}function yo(e,t,n=qe+1){for(;njt(n)-jt(s));if(kt.length=0,ct){ct.push(...t);return}for(ct=t,St=0;Ste.id==null?e.flags&2?-1:1/0:e.id;function xo(e){try{for(qe=0;qe{s._d&&On(-1);const i=vn(t);let r;try{r=e(...o)}finally{vn(i),s._d&&On(1)}return r};return s._n=!0,s._c=!0,s._d=!0,s}function So(e,t){if(Ae===null)return e;const n=En(Ae),s=e.dirs||(e.dirs=[]);for(let o=0;o1)return n&&F(t)?t.call(s&&s.proxy):t}}const Kr=Symbol.for("v-scx"),zr=()=>Le(Kr);function qr(e,t){return us(e,null,{flush:"sync"})}function as(e,t,n){return us(e,t,n)}function us(e,t,n=z){const{immediate:s,deep:o,flush:i,once:r}=n,l=re({},n),c=t&&s||!t&&i!=="post";let f;if(qt){if(i==="sync"){const _=zr();f=_.__watcherHandles||(_.__watcherHandles=[])}else if(!c){const _=()=>{};return _.stop=He,_.resume=He,_.pause=He,_}}const u=ve;l.call=(_,k,R)=>ze(_,u,k,R);let d=!1;i==="post"?l.scheduler=_=>{Te(_,u&&u.suspense)}:i!=="sync"&&(d=!0,l.scheduler=(_,k)=>{k?_():rs(_)}),l.augmentJob=_=>{t&&(_.flags|=4),d&&(_.flags|=2,u&&(_.id=u.uid,_.i=u))};const g=jr(e,t,l);return qt&&(f?f.push(g):c&&g()),g}function Gr(e,t,n){const s=this.proxy,o=oe(e)?e.includes(".")?Co(s,e):()=>s[e]:e.bind(s,s);let i;F(t)?i=t:(i=t.handler,n=t);const r=bt(this),l=us(o,i.bind(s),n);return r(),l}function Co(e,t){const n=t.split(".");return()=>{let s=e;for(let o=0;oe.__isTeleport,Zr=Symbol("_leaveCb");function fs(e,t){e.shapeFlag&6&&e.component?(e.transition=t,fs(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 me(e,t){return F(e)?re({name:e.name},t,{setup:e}):e}function To(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Xr(e){const t=Rn(),n=Pr(null);if(t){const o=t.refs===z?t.refs={}:t.refs;Object.defineProperty(o,e,{enumerable:!0,get:()=>n.value,set:i=>n.value=i})}return n}const _n=new WeakMap;function Lt(e,t,n,s,o=!1){if(M(e)){e.forEach((k,R)=>Lt(k,t&&(M(t)?t[R]:t),n,s,o));return}if(Ut(s)&&!o){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&Lt(e,t,n,s.component.subTree);return}const i=s.shapeFlag&4?En(s.component):s.el,r=o?null:i,{i:l,r:c}=e,f=t&&t.r,u=l.refs===z?l.refs={}:l.refs,d=l.setupState,g=W(d),_=d===z?Us:k=>q(g,k);if(f!=null&&f!==c){if(Oo(t),oe(f))u[f]=null,_(f)&&(d[f]=null);else if(fe(f)){f.value=null;const k=t;k.k&&(u[k.k]=null)}}if(F(c))xt(c,l,12,[r,u]);else{const k=oe(c),R=fe(c);if(k||R){const U=()=>{if(e.f){const P=k?_(c)?d[c]:u[c]:c.value;if(o)M(P)&&Ln(P,i);else if(M(P))P.includes(i)||P.push(i);else if(k)u[c]=[i],_(c)&&(d[c]=u[c]);else{const L=[i];c.value=L,e.k&&(u[e.k]=L)}}else k?(u[c]=r,_(c)&&(d[c]=r)):R&&(c.value=r,e.k&&(u[e.k]=r))};if(r){const P=()=>{U(),_n.delete(e)};P.id=-1,_n.set(e,P),Te(P,n)}else Oo(e),U()}}}function Oo(e){const t=_n.get(e);t&&(t.flags|=8,_n.delete(e))}ln().requestIdleCallback,ln().cancelIdleCallback;const Ut=e=>!!e.type.__asyncLoader,Io=e=>e.type.__isKeepAlive;function Qr(e,t){Ro(e,"a",t)}function el(e,t){Ro(e,"da",t)}function Ro(e,t,n=ve){const s=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(yn(t,s,n),n){let o=n.parent;for(;o&&o.parent;)Io(o.parent.vnode)&&tl(s,t,n,o),o=o.parent}}function tl(e,t,n,s){const o=yn(t,e,s,!0);Po(()=>{Ln(s[t],o)},n)}function yn(e,t,n=ve,s=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...r)=>{We();const l=bt(n),c=ze(t,n,e,r);return l(),Ke(),c});return s?o.unshift(i):o.push(i),i}}const ot=e=>(t,n=ve)=>{(!qt||e==="sp")&&yn(e,(...s)=>t(...s),n)},nl=ot("bm"),wn=ot("m"),sl=ot("bu"),ol=ot("u"),il=ot("bum"),Po=ot("um"),rl=ot("sp"),ll=ot("rtg"),cl=ot("rtc");function al(e,t=ve){yn("ec",e,t)}const Eo="components";function $o(e,t){return Mo(Eo,e,!0,t)||e}const Ao=Symbol.for("v-ndc");function ul(e){return oe(e)?Mo(Eo,e,!1)||e:e||Ao}function Mo(e,t,n=!0,s=!1){const o=Ae||ve;if(o){const i=o.type;{const l=pi(i,!1);if(l&&(l===t||l===ge(t)||l===rn(ge(t))))return i}const r=Fo(o[e]||i[e],t)||Fo(o.appContext[e],t);return!r&&s?i:r}}function Fo(e,t){return e&&(e[t]||e[ge(t)]||e[rn(ge(t))])}function fl(e,t,n,s){let o;const i=n,r=M(e);if(r||oe(e)){const l=r&&dt(e);let c=!1,f=!1;l&&(c=!Fe(e),f=tt(e),e=un(e)),o=new Array(e.length);for(let u=0,d=e.length;ut(l,c,void 0,i));else{const l=Object.keys(e);o=new Array(l.length);for(let c=0,f=l.length;ce?di(e)?En(e):ds(e.parent):null,Vt=re(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=>ds(e.parent),$root:e=>ds(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>jo(e),$forceUpdate:e=>e.f||(e.f=()=>{rs(e.update)}),$nextTick:e=>e.n||(e.n=vo.bind(e.proxy)),$watch:e=>Gr.bind(e)}),hs=(e,t)=>e!==z&&!e.__isScriptSetup&&q(e,t),dl={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:o,props:i,accessCache:r,type:l,appContext:c}=e;if(t[0]!=="$"){const g=r[t];if(g!==void 0)switch(g){case 1:return s[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(hs(s,t))return r[t]=1,s[t];if(o!==z&&q(o,t))return r[t]=2,o[t];if(q(i,t))return r[t]=3,i[t];if(n!==z&&q(n,t))return r[t]=4,n[t];ps&&(r[t]=0)}}const f=Vt[t];let u,d;if(f)return t==="$attrs"&&be(e.attrs,"get",""),f(e);if((u=l.__cssModules)&&(u=u[t]))return u;if(n!==z&&q(n,t))return r[t]=4,n[t];if(d=c.config.globalProperties,q(d,t))return d[t]},set({_:e},t,n){const{data:s,setupState:o,ctx:i}=e;return hs(o,t)?(o[t]=n,!0):s!==z&&q(s,t)?(s[t]=n,!0):q(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:o,props:i,type:r}},l){let c;return!!(n[l]||e!==z&&l[0]!=="$"&&q(e,l)||hs(t,l)||q(i,l)||q(s,l)||q(Vt,l)||q(o.config.globalProperties,l)||(c=r.__cssModules)&&c[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:q(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function xn(e){return M(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function kn(e,t){return!e||!t?e||t:M(e)&&M(t)?e.concat(t):re({},xn(e),xn(t))}function hl(e){const t=Rn();let n=e();return Ts(),Un(n)&&(n=n.catch(s=>{throw bt(t),s})),[n,()=>bt(t)]}let ps=!0;function pl(e){const t=jo(e),n=e.proxy,s=e.ctx;ps=!1,t.beforeCreate&&No(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:r,watch:l,provide:c,inject:f,created:u,beforeMount:d,mounted:g,beforeUpdate:_,updated:k,activated:R,deactivated:U,beforeDestroy:P,beforeUnmount:L,destroyed:K,unmounted:E,render:I,renderTracked:D,renderTriggered:Y,errorCaptured:G,serverPrefetch:ne,expose:Z,inheritAttrs:ae,components:ie,directives:se,filters:ye}=t;if(f&&gl(f,s,null),r)for(const V in r){const C=r[V];F(C)&&(s[V]=C.bind(n))}if(o){const V=o.call(n,n);te(V)&&(e.data=ns(V))}if(ps=!0,i)for(const V in i){const C=i[V],B=F(C)?C.bind(n,n):F(C.get)?C.get.bind(n,n):He,Be=!F(C)&&F(C.set)?C.set.bind(n):He,he=_e({get:B,set:Be});Object.defineProperty(s,V,{enumerable:!0,configurable:!0,get:()=>he.value,set:ue=>he.value=ue})}if(l)for(const V in l)Do(l[V],s,n,V);if(c){const V=F(c)?c.call(n):c;Reflect.ownKeys(V).forEach(C=>{cs(C,V[C])})}u&&No(u,e,"c");function X(V,C){M(C)?C.forEach(B=>V(B.bind(n))):C&&V(C.bind(n))}if(X(nl,d),X(wn,g),X(sl,_),X(ol,k),X(Qr,R),X(el,U),X(al,G),X(cl,D),X(ll,Y),X(il,L),X(Po,E),X(rl,ne),M(Z))if(Z.length){const V=e.exposed||(e.exposed={});Z.forEach(C=>{Object.defineProperty(V,C,{get:()=>n[C],set:B=>n[C]=B,enumerable:!0})})}else e.exposed||(e.exposed={});I&&e.render===He&&(e.render=I),ae!=null&&(e.inheritAttrs=ae),ie&&(e.components=ie),se&&(e.directives=se),ne&&To(e)}function gl(e,t,n=He){M(e)&&(e=gs(e));for(const s in e){const o=e[s];let i;te(o)?"default"in o?i=Le(o.from||s,o.default,!0):i=Le(o.from||s):i=Le(o),fe(i)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:r=>i.value=r}):t[s]=i}}function No(e,t,n){ze(M(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Do(e,t,n,s){let o=s.includes(".")?Co(n,s):()=>n[s];if(oe(e)){const i=t[e];F(i)&&as(o,i)}else if(F(e))as(o,e.bind(n));else if(te(e))if(M(e))e.forEach(i=>Do(i,t,n,s));else{const i=F(e.handler)?e.handler.bind(n):t[e.handler];F(i)&&as(o,i,e)}}function jo(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:r}}=e.appContext,l=i.get(t);let c;return l?c=l:!o.length&&!n&&!s?c=t:(c={},o.length&&o.forEach(f=>Sn(c,f,r,!0)),Sn(c,t,r)),te(t)&&i.set(t,c),c}function Sn(e,t,n,s=!1){const{mixins:o,extends:i}=t;i&&Sn(e,i,n,!0),o&&o.forEach(r=>Sn(e,r,n,!0));for(const r in t)if(!(s&&r==="expose")){const l=bl[r]||n&&n[r];e[r]=l?l(e[r],t[r]):t[r]}return e}const bl={data:Lo,props:Uo,emits:Uo,methods:Bt,computed:Bt,beforeCreate:xe,created:xe,beforeMount:xe,mounted:xe,beforeUpdate:xe,updated:xe,beforeDestroy:xe,beforeUnmount:xe,destroyed:xe,unmounted:xe,activated:xe,deactivated:xe,errorCaptured:xe,serverPrefetch:xe,components:Bt,directives:Bt,watch:vl,provide:Lo,inject:ml};function Lo(e,t){return t?e?function(){return re(F(e)?e.call(this,this):e,F(t)?t.call(this,this):t)}:t:e}function ml(e,t){return Bt(gs(e),gs(t))}function gs(e){if(M(e)){const t={};for(let n=0;n{let u,d=z,g;return qr(()=>{const _=e[o];Se(u,_)&&(u=_,f())}),{get(){return c(),n.get?n.get(u):u},set(_){const k=n.set?n.set(_):_;if(!Se(k,u)&&!(d!==z&&Se(_,d)))return;const R=s.vnode.props;R&&(t in R||o in R||i in R)&&(`onUpdate:${t}`in R||`onUpdate:${o}`in R||`onUpdate:${i}`in R)||(u=_,f()),s.emit(`update:${t}`,k),Se(_,k)&&Se(_,d)&&!Se(k,g)&&f(),d=_,g=k}}});return l[Symbol.iterator]=()=>{let c=0;return{next(){return c<2?{value:c++?r||z:l,done:!1}:{done:!0}}}},l}const Bo=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ge(t)}Modifiers`]||e[`${Ee(t)}Modifiers`];function wl(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||z;let o=n;const i=t.startsWith("update:"),r=i&&Bo(s,t.slice(7));r&&(r.trim&&(o=n.map(u=>oe(u)?u.trim():u)),r.number&&(o=n.map(nr)));let l,c=s[l=Bn(t)]||s[l=Bn(ge(t))];!c&&i&&(c=s[l=Bn(Ee(t))]),c&&ze(c,e,6,o);const f=s[l+"Once"];if(f){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,ze(f,e,6,o)}}const xl=new WeakMap;function Ho(e,t,n=!1){const s=n?xl:t.emitsCache,o=s.get(e);if(o!==void 0)return o;const i=e.emits;let r={},l=!1;if(!F(e)){const c=f=>{const u=Ho(f,t,!0);u&&(l=!0,re(r,u))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!l?(te(e)&&s.set(e,null),null):(M(i)?i.forEach(c=>r[c]=null):re(r,i),te(e)&&s.set(e,r),r)}function Cn(e,t){return!e||!tn(t)?!1:(t=t.slice(2).replace(/Once$/,""),q(e,t[0].toLowerCase()+t.slice(1))||q(e,Ee(t))||q(e,t))}function Fa(){}function Wo(e){const{type:t,vnode:n,proxy:s,withProxy:o,propsOptions:[i],slots:r,attrs:l,emit:c,render:f,renderCache:u,props:d,data:g,setupState:_,ctx:k,inheritAttrs:R}=e,U=vn(e);let P,L;try{if(n.shapeFlag&4){const E=o||s,I=E;P=Ue(f.call(I,E,u,d,_,g,k)),L=l}else{const E=t;P=Ue(E.length>1?E(d,{attrs:l,slots:r,emit:c}):E(d,null)),L=t.props?l:Sl(l)}}catch(E){Wt.length=0,Dt(E,e,1),P=de(Ge)}let K=P;if(L&&R!==!1){const E=Object.keys(L),{shapeFlag:I}=K;E.length&&I&7&&(i&&E.some(jn)&&(L=Cl(L,i)),K=Rt(K,L,!1,!0))}return n.dirs&&(K=Rt(K,null,!1,!0),K.dirs=K.dirs?K.dirs.concat(n.dirs):n.dirs),n.transition&&fs(K,n.transition),P=K,vn(U),P}function kl(e,t=!0){let n;for(let s=0;s{let t;for(const n in e)(n==="class"||n==="style"||tn(n))&&((t||(t={}))[n]=e[n]);return t},Cl=(e,t)=>{const n={};for(const s in e)(!jn(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Tl(e,t,n){const{props:s,children:o,component:i}=e,{props:r,children:l,patchFlag:c}=t,f=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?Ko(s,r,f):!!r;if(c&8){const u=t.dynamicProps;for(let d=0;dObject.create(zo),Go=e=>Object.getPrototypeOf(e)===zo;function Ol(e,t,n,s=!1){const o={},i=qo();e.propsDefaults=Object.create(null),Jo(e,t,o,i);for(const r in e.propsOptions[0])r in o||(o[r]=void 0);n?e.props=s?o:Rr(o):e.type.props?e.props=o:e.props=i,e.attrs=i}function Il(e,t,n,s){const{props:o,attrs:i,vnode:{patchFlag:r}}=e,l=W(o),[c]=e.propsOptions;let f=!1;if((s||r>0)&&!(r&16)){if(r&8){const u=e.vnode.dynamicProps;for(let d=0;d{c=!0;const[g,_]=Yo(d,t,!0);re(r,g),_&&l.push(..._)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!c)return te(e)&&s.set(e,vt),vt;if(M(i))for(let u=0;ue==="_"||e==="_ctx"||e==="$stable",ys=e=>M(e)?e.map(Ue):[Ue(e)],Pl=(e,t,n)=>{if(t._n)return t;const s=Ct((...o)=>ys(t(...o)),n);return s._c=!1,s},Xo=(e,t,n)=>{const s=e._ctx;for(const o in e){if(_s(o))continue;const i=e[o];if(F(i))t[o]=Pl(o,i,s);else if(i!=null){const r=ys(i);t[o]=()=>r}}},Qo=(e,t)=>{const n=ys(t);e.slots.default=()=>n},ei=(e,t,n)=>{for(const s in t)(n||!_s(s))&&(e[s]=t[s])},El=(e,t,n)=>{const s=e.slots=qo();if(e.vnode.shapeFlag&32){const o=t._;o?(ei(s,t,n),n&&Hs(s,"_",o,!0)):Xo(t,s)}else t&&Qo(e,t)},$l=(e,t,n)=>{const{vnode:s,slots:o}=e;let i=!0,r=z;if(s.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:ei(o,t,n):(i=!t.$stable,Xo(t,o)),r=t}else t&&(Qo(e,t),r={default:1});if(i)for(const l in o)!_s(l)&&r[l]==null&&delete o[l]},Te=Bl;function Al(e){return Ml(e)}function Ml(e,t){const n=ln();n.__VUE__=!0;const{insert:s,remove:o,patchProp:i,createElement:r,createText:l,createComment:c,setText:f,setElementText:u,parentNode:d,nextSibling:g,setScopeId:_=He,insertStaticContent:k}=e,R=(a,h,p,y=null,b=null,m=null,T=void 0,S=null,x=!!h.dynamicChildren)=>{if(a===h)return;a&&!at(a,h)&&(y=Dn(a),ue(a,b,m,!0),a=null),h.patchFlag===-2&&(x=!1,h.dynamicChildren=null);const{type:v,ref:A,shapeFlag:O}=h;switch(v){case Tn:U(a,h,p,y);break;case Ge:P(a,h,p,y);break;case ks:a==null&&L(h,p,y,T);break;case Oe:ie(a,h,p,y,b,m,T,S,x);break;default:O&1?I(a,h,p,y,b,m,T,S,x):O&6?se(a,h,p,y,b,m,T,S,x):(O&64||O&128)&&v.process(a,h,p,y,b,m,T,S,x,Qt)}A!=null&&b?Lt(A,a&&a.ref,m,h||a,!h):A==null&&a&&a.ref!=null&&Lt(a.ref,null,m,a,!0)},U=(a,h,p,y)=>{if(a==null)s(h.el=l(h.children),p,y);else{const b=h.el=a.el;h.children!==a.children&&f(b,h.children)}},P=(a,h,p,y)=>{a==null?s(h.el=c(h.children||""),p,y):h.el=a.el},L=(a,h,p,y)=>{[a.el,a.anchor]=k(a.children,h,p,y,a.el,a.anchor)},K=({el:a,anchor:h},p,y)=>{let b;for(;a&&a!==h;)b=g(a),s(a,p,y),a=b;s(h,p,y)},E=({el:a,anchor:h})=>{let p;for(;a&&a!==h;)p=g(a),o(a),a=p;o(h)},I=(a,h,p,y,b,m,T,S,x)=>{if(h.type==="svg"?T="svg":h.type==="math"&&(T="mathml"),a==null)D(h,p,y,b,m,T,S,x);else{const v=a.el&&a.el._isVueCE?a.el:null;try{v&&v._beginPatch(),ne(a,h,b,m,T,S,x)}finally{v&&v._endPatch()}}},D=(a,h,p,y,b,m,T,S)=>{let x,v;const{props:A,shapeFlag:O,transition:$,dirs:N}=a;if(x=a.el=r(a.type,m,A&&A.is,A),O&8?u(x,a.children):O&16&&G(a.children,x,null,y,b,ws(a,m),T,S),N&&pt(a,null,y,"created"),Y(x,a,a.scopeId,T,y),A){for(const ee in A)ee!=="value"&&!Pt(ee)&&i(x,ee,null,A[ee],m,y);"value"in A&&i(x,"value",null,A.value,m),(v=A.onVnodeBeforeMount)&&Je(v,y,a)}N&&pt(a,null,y,"beforeMount");const H=Fl(b,$);H&&$.beforeEnter(x),s(x,h,p),((v=A&&A.onVnodeMounted)||H||N)&&Te(()=>{v&&Je(v,y,a),H&&$.enter(x),N&&pt(a,null,y,"mounted")},b)},Y=(a,h,p,y,b)=>{if(p&&_(a,p),y)for(let m=0;m{for(let v=x;v{const S=h.el=a.el;let{patchFlag:x,dynamicChildren:v,dirs:A}=h;x|=a.patchFlag&16;const O=a.props||z,$=h.props||z;let N;if(p&>(p,!1),(N=$.onVnodeBeforeUpdate)&&Je(N,p,h,a),A&&pt(h,a,p,"beforeUpdate"),p&>(p,!0),(O.innerHTML&&$.innerHTML==null||O.textContent&&$.textContent==null)&&u(S,""),v?Z(a.dynamicChildren,v,S,p,y,ws(h,b),m):T||C(a,h,S,null,p,y,ws(h,b),m,!1),x>0){if(x&16)ae(S,O,$,p,b);else if(x&2&&O.class!==$.class&&i(S,"class",null,$.class,b),x&4&&i(S,"style",O.style,$.style,b),x&8){const H=h.dynamicProps;for(let ee=0;ee{N&&Je(N,p,h,a),A&&pt(h,a,p,"updated")},y)},Z=(a,h,p,y,b,m,T)=>{for(let S=0;S{if(h!==p){if(h!==z)for(const m in h)!Pt(m)&&!(m in p)&&i(a,m,h[m],null,b,y);for(const m in p){if(Pt(m))continue;const T=p[m],S=h[m];T!==S&&m!=="value"&&i(a,m,S,T,b,y)}"value"in p&&i(a,"value",h.value,p.value,b)}},ie=(a,h,p,y,b,m,T,S,x)=>{const v=h.el=a?a.el:l(""),A=h.anchor=a?a.anchor:l("");let{patchFlag:O,dynamicChildren:$,slotScopeIds:N}=h;N&&(S=S?S.concat(N):N),a==null?(s(v,p,y),s(A,p,y),G(h.children||[],p,A,b,m,T,S,x)):O>0&&O&64&&$&&a.dynamicChildren&&a.dynamicChildren.length===$.length?(Z(a.dynamicChildren,$,p,b,m,T,S),(h.key!=null||b&&h===b.subTree)&&ti(a,h,!0)):C(a,h,p,A,b,m,T,S,x)},se=(a,h,p,y,b,m,T,S,x)=>{h.slotScopeIds=S,a==null?h.shapeFlag&512?b.ctx.activate(h,p,y,T,x):ye(h,p,y,b,m,T,x):Ve(a,h,x)},ye=(a,h,p,y,b,m,T)=>{const S=a.component=Gl(a,y,b);if(Io(a)&&(S.ctx.renderer=Qt),Jl(S,!1,T),S.asyncDep){if(b&&b.registerDep(S,X,T),!a.el){const x=S.subTree=de(Ge);P(null,x,h,p),a.placeholder=x.el}}else X(S,a,h,p,b,m,T)},Ve=(a,h,p)=>{const y=h.component=a.component;if(Tl(a,h,p))if(y.asyncDep&&!y.asyncResolved){V(y,h,p);return}else y.next=h,y.update();else h.el=a.el,y.vnode=h},X=(a,h,p,y,b,m,T)=>{const S=()=>{if(a.isMounted){let{next:O,bu:$,u:N,parent:H,vnode:ee}=a;{const Ze=ni(a);if(Ze){O&&(O.el=ee.el,V(a,O,T)),Ze.asyncDep.then(()=>{a.isUnmounted||S()});return}}let J=O,Re;gt(a,!1),O?(O.el=ee.el,V(a,O,T)):O=ee,$&&Hn($),(Re=O.props&&O.props.onVnodeBeforeUpdate)&&Je(Re,H,O,ee),gt(a,!0);const Pe=Wo(a),Ye=a.subTree;a.subTree=Pe,R(Ye,Pe,d(Ye.el),Dn(Ye),a,b,m),O.el=Pe.el,J===null&&ms(a,Pe.el),N&&Te(N,b),(Re=O.props&&O.props.onVnodeUpdated)&&Te(()=>Je(Re,H,O,ee),b)}else{let O;const{el:$,props:N}=h,{bm:H,m:ee,parent:J,root:Re,type:Pe}=a,Ye=Ut(h);gt(a,!1),H&&Hn(H),!Ye&&(O=N&&N.onVnodeBeforeMount)&&Je(O,J,h),gt(a,!0);{Re.ce&&Re.ce._def.shadowRoot!==!1&&Re.ce._injectChildStyle(Pe);const Ze=a.subTree=Wo(a);R(null,Ze,p,y,a,b,m),h.el=Ze.el}if(ee&&Te(ee,b),!Ye&&(O=N&&N.onVnodeMounted)){const Ze=h;Te(()=>Je(O,J,Ze),b)}(h.shapeFlag&256||J&&Ut(J.vnode)&&J.vnode.shapeFlag&256)&&a.a&&Te(a.a,b),a.isMounted=!0,h=p=y=null}};a.scope.on();const x=a.effect=new Gs(S);a.scope.off();const v=a.update=x.run.bind(x),A=a.job=x.runIfDirty.bind(x);A.i=a,A.id=a.uid,x.scheduler=()=>rs(A),gt(a,!0),v()},V=(a,h,p)=>{h.component=a;const y=a.vnode.props;a.vnode=h,a.next=null,Il(a,h.props,y,p),$l(a,h.children,p),We(),yo(a),Ke()},C=(a,h,p,y,b,m,T,S,x=!1)=>{const v=a&&a.children,A=a?a.shapeFlag:0,O=h.children,{patchFlag:$,shapeFlag:N}=h;if($>0){if($&128){Be(v,O,p,y,b,m,T,S,x);return}else if($&256){B(v,O,p,y,b,m,T,S,x);return}}N&8?(A&16&&Xt(v,b,m),O!==v&&u(p,O)):A&16?N&16?Be(v,O,p,y,b,m,T,S,x):Xt(v,b,m,!0):(A&8&&u(p,""),N&16&&G(O,p,y,b,m,T,S,x))},B=(a,h,p,y,b,m,T,S,x)=>{a=a||vt,h=h||vt;const v=a.length,A=h.length,O=Math.min(v,A);let $;for($=0;$A?Xt(a,b,m,!0,!1,O):G(h,p,y,b,m,T,S,x,O)},Be=(a,h,p,y,b,m,T,S,x)=>{let v=0;const A=h.length;let O=a.length-1,$=A-1;for(;v<=O&&v<=$;){const N=a[v],H=h[v]=x?ut(h[v]):Ue(h[v]);if(at(N,H))R(N,H,p,null,b,m,T,S,x);else break;v++}for(;v<=O&&v<=$;){const N=a[O],H=h[$]=x?ut(h[$]):Ue(h[$]);if(at(N,H))R(N,H,p,null,b,m,T,S,x);else break;O--,$--}if(v>O){if(v<=$){const N=$+1,H=N$)for(;v<=O;)ue(a[v],b,m,!0),v++;else{const N=v,H=v,ee=new Map;for(v=H;v<=$;v++){const Me=h[v]=x?ut(h[v]):Ue(h[v]);Me.key!=null&&ee.set(Me.key,v)}let J,Re=0;const Pe=$-H+1;let Ye=!1,Ze=0;const en=new Array(Pe);for(v=0;v=Pe){ue(Me,b,m,!0);continue}let Xe;if(Me.key!=null)Xe=ee.get(Me.key);else for(J=H;J<=$;J++)if(en[J-H]===0&&at(Me,h[J])){Xe=J;break}Xe===void 0?ue(Me,b,m,!0):(en[Xe-H]=v+1,Xe>=Ze?Ze=Xe:Ye=!0,R(Me,h[Xe],p,null,b,m,T,S,x),Re++)}const Ji=Ye?Nl(en):vt;for(J=Ji.length-1,v=Pe-1;v>=0;v--){const Me=H+v,Xe=h[Me],Yi=h[Me+1],Zi=Me+1{const{el:m,type:T,transition:S,children:x,shapeFlag:v}=a;if(v&6){he(a.component.subTree,h,p,y);return}if(v&128){a.suspense.move(h,p,y);return}if(v&64){T.move(a,h,p,Qt);return}if(T===Oe){s(m,h,p);for(let O=0;OS.enter(m),b);else{const{leave:O,delayLeave:$,afterLeave:N}=S,H=()=>{a.ctx.isUnmounted?o(m):s(m,h,p)},ee=()=>{m._isLeaving&&m[Zr](!0),O(m,()=>{H(),N&&N()})};$?$(m,H,ee):ee()}else s(m,h,p)},ue=(a,h,p,y=!1,b=!1)=>{const{type:m,props:T,ref:S,children:x,dynamicChildren:v,shapeFlag:A,patchFlag:O,dirs:$,cacheIndex:N}=a;if(O===-2&&(b=!1),S!=null&&(We(),Lt(S,null,p,a,!0),Ke()),N!=null&&(h.renderCache[N]=void 0),A&256){h.ctx.deactivate(a);return}const H=A&1&&$,ee=!Ut(a);let J;if(ee&&(J=T&&T.onVnodeBeforeUnmount)&&Je(J,h,a),A&6)Ea(a.component,p,y);else{if(A&128){a.suspense.unmount(p,y);return}H&&pt(a,null,h,"beforeUnmount"),A&64?a.type.remove(a,h,p,Qt,y):v&&!v.hasOnce&&(m!==Oe||O>0&&O&64)?Xt(v,h,p,!1,!0):(m===Oe&&O&384||!b&&A&16)&&Xt(x,h,p),y&&Zt(a)}(ee&&(J=T&&T.onVnodeUnmounted)||H)&&Te(()=>{J&&Je(J,h,a),H&&pt(a,null,h,"unmounted")},p)},Zt=a=>{const{type:h,el:p,anchor:y,transition:b}=a;if(h===Oe){Pa(p,y);return}if(h===ks){E(a);return}const m=()=>{o(p),b&&!b.persisted&&b.afterLeave&&b.afterLeave()};if(a.shapeFlag&1&&b&&!b.persisted){const{leave:T,delayLeave:S}=b,x=()=>T(p,m);S?S(a.el,m,x):x()}else m()},Pa=(a,h)=>{let p;for(;a!==h;)p=g(a),o(a),a=p;o(h)},Ea=(a,h,p)=>{const{bum:y,scope:b,job:m,subTree:T,um:S,m:x,a:v}=a;si(x),si(v),y&&Hn(y),b.stop(),m&&(m.flags|=8,ue(T,a,h,p)),S&&Te(S,h),Te(()=>{a.isUnmounted=!0},h)},Xt=(a,h,p,y=!1,b=!1,m=0)=>{for(let T=m;T{if(a.shapeFlag&6)return Dn(a.component.subTree);if(a.shapeFlag&128)return a.suspense.next();const h=g(a.anchor||a.el),p=h&&h[Jr];return p?g(p):h};let Ls=!1;const Gi=(a,h,p)=>{let y;a==null?h._vnode&&(ue(h._vnode,null,null,!0),y=h._vnode.component):R(h._vnode||null,a,h,null,null,null,p),h._vnode=a,Ls||(Ls=!0,yo(y),wo(),Ls=!1)},Qt={p:R,um:ue,m:he,r:Zt,mt:ye,mc:G,pc:C,pbc:Z,n:Dn,o:e};return{render:Gi,hydrate:void 0,createApp:yl(Gi)}}function ws({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 gt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Fl(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ti(e,t,n=!1){const s=e.children,o=t.children;if(M(s)&&M(o))for(let i=0;i>1,e[n[l]]0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,r=n[i-1];i-- >0;)n[i]=r,r=t[r];return n}function ni(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ni(t)}function si(e){if(e)for(let t=0;te.__isSuspense;let xs=0;const Dl={name:"Suspense",__isSuspense:!0,process(e,t,n,s,o,i,r,l,c,f){if(e==null)jl(t,n,s,o,i,r,l,c,f);else{if(i&&i.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}Ll(e,t,n,s,o,r,l,c,f)}},hydrate:Ul,normalize:Vl};function Ht(e,t){const n=e.props&&e.props[t];F(n)&&n()}function jl(e,t,n,s,o,i,r,l,c){const{p:f,o:{createElement:u}}=c,d=u("div"),g=e.suspense=ri(e,o,s,t,d,n,i,r,l,c);f(null,g.pendingBranch=e.ssContent,d,null,s,g,i,r),g.deps>0?(Ht(e,"onPending"),Ht(e,"onFallback"),f(null,e.ssFallback,t,n,s,null,i,r),Ot(g,e.ssFallback)):g.resolve(!1,!0)}function Ll(e,t,n,s,o,i,r,l,{p:c,um:f,o:{createElement:u}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const g=t.ssContent,_=t.ssFallback,{activeBranch:k,pendingBranch:R,isInFallback:U,isHydrating:P}=d;if(R)d.pendingBranch=g,at(R,g)?(c(R,g,d.hiddenContainer,null,o,d,i,r,l),d.deps<=0?d.resolve():U&&(P||(c(k,_,n,s,o,null,i,r,l),Ot(d,_)))):(d.pendingId=xs++,P?(d.isHydrating=!1,d.activeBranch=R):f(R,o,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),U?(c(null,g,d.hiddenContainer,null,o,d,i,r,l),d.deps<=0?d.resolve():(c(k,_,n,s,o,null,i,r,l),Ot(d,_))):k&&at(k,g)?(c(k,g,n,s,o,d,i,r,l),d.resolve(!0)):(c(null,g,d.hiddenContainer,null,o,d,i,r,l),d.deps<=0&&d.resolve()));else if(k&&at(k,g))c(k,g,n,s,o,d,i,r,l),Ot(d,g);else if(Ht(t,"onPending"),d.pendingBranch=g,g.shapeFlag&512?d.pendingId=g.component.suspenseId:d.pendingId=xs++,c(null,g,d.hiddenContainer,null,o,d,i,r,l),d.deps<=0)d.resolve();else{const{timeout:L,pendingId:K}=d;L>0?setTimeout(()=>{d.pendingId===K&&d.fallback(_)},L):L===0&&d.fallback(_)}}function ri(e,t,n,s,o,i,r,l,c,f,u=!1){const{p:d,m:g,um:_,n:k,o:{parentNode:R,remove:U}}=f;let P;const L=Hl(e);L&&t&&t.pendingBranch&&(P=t.pendingId,t.deps++);const K=e.props?Wn(e.props.timeout):void 0,E=i,I={vnode:e,parent:t,parentComponent:n,namespace:r,container:s,hiddenContainer:o,deps:0,pendingId:xs++,timeout:typeof K=="number"?K:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(D=!1,Y=!1){const{vnode:G,activeBranch:ne,pendingBranch:Z,pendingId:ae,effects:ie,parentComponent:se,container:ye,isInFallback:Ve}=I;let X=!1;I.isHydrating?I.isHydrating=!1:D||(X=ne&&Z.transition&&Z.transition.mode==="out-in",X&&(ne.transition.afterLeave=()=>{ae===I.pendingId&&(g(Z,ye,i===E?k(ne):i,0),ls(ie),Ve&&G.ssFallback&&(G.ssFallback.el=null))}),ne&&(R(ne.el)===ye&&(i=k(ne)),_(ne,se,I,!0),!X&&Ve&&G.ssFallback&&Te(()=>G.ssFallback.el=null,I)),X||g(Z,ye,i,0)),Ot(I,Z),I.pendingBranch=null,I.isInFallback=!1;let V=I.parent,C=!1;for(;V;){if(V.pendingBranch){V.effects.push(...ie),C=!0;break}V=V.parent}!C&&!X&&ls(ie),I.effects=[],L&&t&&t.pendingBranch&&P===t.pendingId&&(t.deps--,t.deps===0&&!Y&&t.resolve()),Ht(G,"onResolve")},fallback(D){if(!I.pendingBranch)return;const{vnode:Y,activeBranch:G,parentComponent:ne,container:Z,namespace:ae}=I;Ht(Y,"onFallback");const ie=k(G),se=()=>{I.isInFallback&&(d(null,D,Z,ie,ne,null,ae,l,c),Ot(I,D))},ye=D.transition&&D.transition.mode==="out-in";ye&&(G.transition.afterLeave=se),I.isInFallback=!0,_(G,ne,null,!0),ye||se()},move(D,Y,G){I.activeBranch&&g(I.activeBranch,D,Y,G),I.container=D},next(){return I.activeBranch&&k(I.activeBranch)},registerDep(D,Y,G){const ne=!!I.pendingBranch;ne&&I.deps++;const Z=D.vnode.el;D.asyncDep.catch(ae=>{Dt(ae,D,0)}).then(ae=>{if(D.isUnmounted||I.isUnmounted||I.pendingId!==D.suspenseId)return;D.asyncResolved=!0;const{vnode:ie}=D;Os(D,ae),Z&&(ie.el=Z);const se=!Z&&D.subTree.el;Y(D,ie,R(Z||D.subTree.el),Z?null:k(D.subTree),I,r,G),se&&(ie.placeholder=null,U(se)),ms(D,ie.el),ne&&--I.deps===0&&I.resolve()})},unmount(D,Y){I.isUnmounted=!0,I.activeBranch&&_(I.activeBranch,n,D,Y),I.pendingBranch&&_(I.pendingBranch,n,D,Y)}};return I}function Ul(e,t,n,s,o,i,r,l,c){const f=t.suspense=ri(t,s,n,e.parentNode,document.createElement("div"),null,o,i,r,l,!0),u=c(e,f.pendingBranch=t.ssContent,n,f,i,r);return f.deps===0&&f.resolve(!1,!0),u}function Vl(e){const{shapeFlag:t,children:n}=e,s=t&32;e.ssContent=li(s?n.default:n),e.ssFallback=s?li(n.fallback):de(Ge)}function li(e){let t;if(F(e)){const n=It&&e._c;n&&(e._d=!1,j()),e=e(),n&&(e._d=!0,t=Ie,ci())}return M(e)&&(e=kl(e)),e=Ue(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Bl(e,t){t&&t.pendingBranch?M(e)?t.effects.push(...e):t.effects.push(e):ls(e)}function Ot(e,t){e.activeBranch=t;const{vnode:n,parentComponent:s}=e;let o=t.el;for(;!o&&t.component;)t=t.component.subTree,o=t.el;n.el=o,s&&s.subTree===n&&(s.vnode.el=o,ms(s,o))}function Hl(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Oe=Symbol.for("v-fgt"),Tn=Symbol.for("v-txt"),Ge=Symbol.for("v-cmt"),ks=Symbol.for("v-stc"),Wt=[];let Ie=null;function j(e=!1){Wt.push(Ie=e?null:[])}function ci(){Wt.pop(),Ie=Wt[Wt.length-1]||null}let It=1;function On(e,t=!1){It+=e,e<0&&Ie&&t&&(Ie.hasOnce=!0)}function ai(e){return e.dynamicChildren=It>0?Ie||vt:null,ci(),It>0&&Ie&&Ie.push(e),e}function le(e,t,n,s,o,i){return ai(ke(e,t,n,s,o,i,!0))}function pe(e,t,n,s,o){return ai(de(e,t,n,s,o,!0))}function Kt(e){return e?e.__v_isVNode===!0:!1}function at(e,t){return e.type===t.type&&e.key===t.key}const ui=({key:e})=>e??null,In=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?oe(e)||fe(e)||F(e)?{i:Ae,r:e,k:t,f:!!n}:e:null);function ke(e,t=null,n=null,s=0,o=null,i=e===Oe?0:1,r=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ui(t),ref:t&&In(t),scopeId:ko,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:s,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Ae};return l?(Ss(c,n),i&128&&e.normalize(c)):n&&(c.shapeFlag|=oe(n)?8:16),It>0&&!r&&Ie&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&Ie.push(c),c}const de=Wl;function Wl(e,t=null,n=null,s=0,o=null,i=!1){if((!e||e===Ao)&&(e=Ge),Kt(e)){const l=Rt(e,t,!0);return n&&Ss(l,n),It>0&&!i&&Ie&&(l.shapeFlag&6?Ie[Ie.indexOf(e)]=l:Ie.push(l)),l.patchFlag=-2,l}if(tc(e)&&(e=e.__vccOpts),t){t=fi(t);let{class:l,style:c}=t;l&&!oe(l)&&(t.class=Ne(l)),te(c)&&(os(c)&&!M(c)&&(c=re({},c)),t.style=cn(c))}const r=oe(e)?1:ii(e)?128:Yr(e)?64:te(e)?4:F(e)?2:0;return ke(e,t,n,s,o,r,i,!0)}function fi(e){return e?os(e)||Go(e)?re({},e):e:null}function Rt(e,t,n=!1,s=!1){const{props:o,ref:i,patchFlag:r,children:l,transition:c}=e,f=t?Kl(o||{},t):o,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:f,key:f&&ui(f),ref:t&&t.ref?n&&i?M(i)?i.concat(In(t)):[i,In(t)]:In(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Oe?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Rt(e.ssContent),ssFallback:e.ssFallback&&Rt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&s&&fs(u,c.clone(u)),u}function zt(e=" ",t=0){return de(Tn,null,e,t)}function ce(e="",t=!1){return t?(j(),pe(Ge,null,e)):de(Ge,null,e)}function Ue(e){return e==null||typeof e=="boolean"?de(Ge):M(e)?de(Oe,null,e.slice()):Kt(e)?ut(e):de(Tn,null,String(e))}function ut(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Rt(e)}function Ss(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(M(t))n=16;else if(typeof t=="object")if(s&65){const o=t.default;o&&(o._c&&(o._d=!1),Ss(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!Go(t)?t._ctx=Ae:o===3&&Ae&&(Ae.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else F(t)?(t={default:t,_ctx:Ae},n=32):(t=String(t),s&64?(n=16,t=[zt(t)]):n=8);e.children=t,e.shapeFlag|=n}function Kl(...e){const t={};for(let n=0;nve||Ae;let Pn,Cs;{const e=ln(),t=(n,s)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(s),i=>{o.length>1?o.forEach(r=>r(i)):o[0](i)}};Pn=t("__VUE_INSTANCE_SETTERS__",n=>ve=n),Cs=t("__VUE_SSR_SETTERS__",n=>qt=n)}const bt=e=>{const t=ve;return Pn(e),e.scope.on(),()=>{e.scope.off(),Pn(t)}},Ts=()=>{ve&&ve.scope.off(),Pn(null)};function di(e){return e.vnode.shapeFlag&4}let qt=!1;function Jl(e,t=!1,n=!1){t&&Cs(t);const{props:s,children:o}=e.vnode,i=di(e);Ol(e,s,i,t),El(e,o,n||t);const r=i?Yl(e,t):void 0;return t&&Cs(!1),r}function Yl(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,dl);const{setup:s}=n;if(s){We();const o=e.setupContext=s.length>1?Xl(e):null,i=bt(e),r=xt(s,e,0,[e.props,o]),l=Un(r);if(Ke(),i(),(l||e.sp)&&!Ut(e)&&To(e),l){if(r.then(Ts,Ts),t)return r.then(c=>{Os(e,c)}).catch(c=>{Dt(c,e,0)});e.asyncDep=r}else Os(e,r)}else hi(e)}function Os(e,t,n){F(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:te(t)&&(e.setupState=go(t)),hi(e)}function hi(e,t,n){const s=e.type;e.render||(e.render=s.render||He);{const o=bt(e);We();try{pl(e)}finally{Ke(),o()}}}const Zl={get(e,t){return be(e,"get",""),e[t]}};function Xl(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Zl),slots:e.slots,emit:e.emit,expose:t}}function En(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(go(ho(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Vt)return Vt[n](e)},has(t,n){return n in t||n in Vt}})):e.proxy}const Ql=/(?:^|[-_])\w/g,ec=e=>e.replace(Ql,t=>t.toUpperCase()).replace(/[-_]/g,"");function pi(e,t=!0){return F(e)?e.displayName||e.name:e.name||t&&e.__name}function gi(e,t,n=!1){let s=pi(t);if(!s&&t.__file){const o=t.__file.match(/([^/\\]+)\.\w+$/);o&&(s=o[1])}if(!s&&e){const o=i=>{for(const r in i)if(i[r]===t)return r};s=o(e.components)||e.parent&&o(e.parent.type.components)||o(e.appContext.components)}return s?ec(s):n?"App":"Anonymous"}function tc(e){return F(e)&&"__vccOpts"in e}const _e=(e,t)=>Nr(e,t,qt);function bi(e,t,n){try{On(-1);const s=arguments.length;return s===2?te(t)&&!M(t)?Kt(t)?de(e,null,[t]):de(e,t):de(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Kt(n)&&(n=[n]),de(e,t,n))}finally{On(1)}}const nc="3.5.27";/** * @vue/runtime-dom v3.5.27 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let Is;const mi=typeof window<"u"&&window.trustedTypes;if(mi)try{Is=mi.createPolicy("vue",{createHTML:e=>e})}catch{}const vi=Is?e=>Is.createHTML(e):e=>e,sc="http://www.w3.org/2000/svg",oc="http://www.w3.org/1998/Math/MathML",it=typeof document<"u"?document:null,_i=it&&it.createElement("template"),ic={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const o=t==="svg"?it.createElementNS(sc,e):t==="mathml"?it.createElementNS(oc,e):n?it.createElement(e,{is:n}):it.createElement(e);return e==="select"&&s&&s.multiple!=null&&o.setAttribute("multiple",s.multiple),o},createText:e=>it.createTextNode(e),createComment:e=>it.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>it.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,o,i){const r=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{_i.innerHTML=vi(s==="svg"?`${e}`:s==="mathml"?`${e}`:e);const l=_i.content;if(s==="svg"||s==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},rc=Symbol("_vtc");function lc(e,t,n){const s=e[rc];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const $n=Symbol("_vod"),yi=Symbol("_vsh"),wi={name:"show",beforeMount(e,{value:t},{transition:n}){e[$n]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Gt(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),Gt(e,!0),s.enter(e)):s.leave(e,()=>{Gt(e,!1)}):Gt(e,t))},beforeUnmount(e,{value:t}){Gt(e,t)}};function Gt(e,t){e.style.display=t?e[$n]:"none",e[yi]=!t}const cc=Symbol(""),ac=/(?:^|;)\s*display\s*:/;function uc(e,t,n){const s=e.style,o=oe(n);let i=!1;if(n&&!o){if(t)if(oe(t))for(const r of t.split(";")){const l=r.slice(0,r.indexOf(":")).trim();n[l]==null&&An(s,l,"")}else for(const r in t)n[r]==null&&An(s,r,"");for(const r in n)r==="display"&&(i=!0),An(s,r,n[r])}else if(o){if(t!==n){const r=s[cc];r&&(n+=";"+r),s.cssText=n,i=ac.test(n)}}else t&&e.removeAttribute("style");$n in e&&(e[$n]=i?s.display:"",e[yi]&&(s.display="none"))}const xi=/\s*!important$/;function An(e,t,n){if(M(n))n.forEach(s=>An(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=fc(e,t);xi.test(n)?e.setProperty(Ee(s),n.replace(xi,""),"important"):e[s]=n}}const ki=["Webkit","Moz","ms"],Rs={};function fc(e,t){const n=Rs[t];if(n)return n;let s=ge(t);if(s!=="filter"&&s in e)return Rs[t]=s;s=rn(s);for(let o=0;oPs||(bc.then(()=>Ps=0),Ps=Date.now());function vc(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;ze(_c(s,n.value),t,5,[s])};return n.value=e,n.attached=mc(),n}function _c(e,t){if(M(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>o=>!o._stopped&&s&&s(o))}else return t}const Ri=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,yc=(e,t,n,s,o,i)=>{const r=o==="svg";t==="class"?lc(e,s,r):t==="style"?uc(e,n,s):tn(t)?jn(t)||pc(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):wc(e,t,s,r))?(Ti(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Ci(e,t,s,r,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!oe(s))?Ti(e,ge(t),s,i,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Ci(e,t,s,r))};function wc(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&Ri(t)&&F(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 o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return Ri(t)&&oe(n)?!1:t in e}const Pi={};function Ei(e,t,n){let s=me(e,t);sn(s)&&(s=re({},s,t));class o extends Es{constructor(r){super(s,r,n)}}return o.def=s,o}const xc=typeof HTMLElement<"u"?HTMLElement:class{};class Es extends xc{constructor(t,n={},s=Mi){super(),this._def=t,this._props=n,this._createApp=s,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&s!==Mi?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow(re({},t.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof Es){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._inheritParentContext(t))}_inheritParentContext(t=this._parent){t&&this._app&&Object.setPrototypeOf(this._app._context.provides,t._instance.provides)}disconnectedCallback(){this._connected=!1,vo(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(t){for(const n of t)this._setAttr(n.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let s=0;s{this._resolved=!0,this._pendingResolve=void 0;const{props:i,styles:r}=s;let l;if(i&&!M(i))for(const c in i){const f=i[c];(f===Number||f&&f.type===Number)&&(c in this._props&&(this._props[c]=Wn(this._props[c])),(l||(l=Object.create(null)))[ge(c)]=!0)}this._numberProps=l,this._resolveProps(s),this.shadowRoot&&this._applyStyles(r),this._mount(s)},n=this._def.__asyncLoader;n?this._pendingResolve=n().then(s=>{s.configureApp=this._def.configureApp,t(this._def=s,!0)}):t(this._def)}_mount(t){this._app=this._createApp(t),this._inheritParentContext(),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const n=this._instance&&this._instance.exposed;if(n)for(const s in n)q(this,s)||Object.defineProperty(this,s,{get:()=>w(n[s])})}_resolveProps(t){const{props:n}=t,s=M(n)?n:Object.keys(n||{});for(const o of Object.keys(this))o[0]!=="_"&&s.includes(o)&&this._setProp(o,this[o]);for(const o of s.map(ge))Object.defineProperty(this,o,{get(){return this._getProp(o)},set(i){this._setProp(o,i,!0,!this._patching)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const n=this.hasAttribute(t);let s=n?this.getAttribute(t):Pi;const o=ge(t);n&&this._numberProps&&this._numberProps[o]&&(s=Wn(s)),this._setProp(o,s,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,n,s=!0,o=!1){if(n!==this._props[t]&&(this._dirty=!0,n===Pi?delete this._props[t]:(this._props[t]=n,t==="key"&&this._app&&(this._app._ceVNode.key=n)),o&&this._instance&&this._update(),s)){const i=this._ob;i&&(this._processMutations(i.takeRecords()),i.disconnect()),n===!0?this.setAttribute(Ee(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Ee(t),n+""):n||this.removeAttribute(Ee(t)),i&&i.observe(this,{attributes:!0})}}_update(){const t=this._createVNode();this._app&&(t.appContext=this._app._context),Sc(t,this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const n=de(this._def,re(t,this._props));return this._instance||(n.ce=s=>{this._instance=s,s.ce=this,s.isCE=!0;const o=(i,r)=>{this.dispatchEvent(new CustomEvent(i,sn(r[0])?re({detail:r},r[0]):{detail:r}))};s.emit=(i,...r)=>{o(i,r),Ee(i)!==i&&o(Ee(i),r)},this._setParent()}),n}_applyStyles(t,n){if(!t)return;if(n){if(n===this._def||this._styleChildren.has(n))return;this._styleChildren.add(n)}const s=this._nonce;for(let o=t.length-1;o>=0;o--){const i=document.createElement("style");s&&i.setAttribute("nonce",s),i.textContent=t[o],this.shadowRoot.prepend(i)}}_parseSlots(){const t=this._slots={};let n;for(;n=this.firstChild;){const s=n.nodeType===1&&n.getAttribute("slot")||"default";(t[s]||(t[s]=[])).push(n),this.removeChild(n)}}_renderSlots(){const t=this._getSlots(),n=this._instance.type.__scopeId;for(let s=0;s{Ai().render(...e)}),Mi=((...e)=>{const t=Ai().createApp(...e),{mount:n}=t;return t.mount=s=>{const o=Tc(s);if(!o)return;const i=t._component;!F(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const r=n(o,!1,Cc(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),r},t});function Cc(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Tc(e){return oe(e)?document.querySelector(e):e}function Fi(e,t,n,s=document.body){if(s.querySelector(`script[src='${t}']`))return;const o=document.createElement("script");o.defer=!0,o.src=t,o.id=e,s.appendChild(o)}function Mn(e){var t,n;return(n=(t=document.cookie)==null?void 0:t.split(";").find(s=>s.trim().startsWith(`${e}=`)))==null?void 0:n.split("=")[1]}function Ni(e,t,n,s=3600*24*365){document.cookie=`${e}=${t}; path=/; max-age=${s}; Secure${n?"; Domain="+n:""}`}function Di(e,t="1200"){if(!e.startsWith("https://media-cdn"))return e;const n=new URL(e),s=n.searchParams;return s.has("width")?e:(s.append("width",t),n.toString())}function ji(e){return e==null?void 0:e.split(".").reduce((t,n)=>t==null?void 0:t[n],globalThis)}async function $s(e,t){const n=ji(e);if(typeof n=="function")return await n(t)}const Oc=["src","alt"],Ic=["dir"],Rc=["dir","title"],Pc={key:0},Ec={class:"checkmark border-selected-option-background"},$c=me({__name:"Options",props:{poll:{type:null},dir:{type:String},result:{type:Boolean},publishedResult:{type:Boolean}},setup(e){const t=e,n=_e(()=>t.poll.uiConfig.layout),s=_e(()=>t.poll.uiConfig.optionImageOrientation);return(o,i)=>(j(),le("div",{class:Ne([{"flex-col":w(n)==="LIST","overflow-x-auto":w(n)==="HORIZONTAL"},"flex gap-2"])},[(j(!0),le(Oe,null,fl(e.poll.options,r=>(j(),pe(ul(e.result?"div":"button"),{key:r.id,dir:e.dir,class:Ne([{"bg-selected-option-background border-selected-option-border text-selected-option-font":r.selected,"bg-unselected-option-background border-unselected-option-border text-unselected-option-font":!r.selected,"h-20 w-full items-center":w(n)==="LIST","flex-col w-36":w(n)==="HORIZONTAL","cursor-pointer":!e.result},"flex font-optionFont text-option rounded-option border border-solid shrink-0 overflow-hidden"]),onClick:l=>o.$emit("select",r.id)},{default:Ct(()=>[r.imageURL?(j(),le("img",{key:0,src:w(Di)(r.imageURL,"200"),alt:r.label,class:Ne([{"aspect-video":w(s)==="LANDSCAPE","aspect-3/4":w(s)==="PORTRAIT"},"object-contain h-full"])},null,10,Oc)):ce("",!0),ke("div",{dir:e.dir,class:Ne([{"justify-between items-center":w(n)==="LIST","flex-col":w(n)==="HORIZONTAL"},"w-full flex gap-2 p-4"])},[ke("p",{dir:e.dir,class:Ne([{"text-left":e.dir==="auto","text-right":e.dir==="rtl"},"font-optionFont text-option line-clamp-1"]),title:r.label},$e(r.label),11,Rc),e.result?(j(),le(Oe,{key:0},[e.publishedResult?(j(),le("p",Pc,$e(e.poll.votes?(r.votes/e.poll.votes*100).toFixed(1):0)+"%",1)):ce("",!0)],64)):(j(),le("div",{key:1,class:Ne([{"bg-check-icon-background":r.selected,"border border-solid border-check-icon-border":!r.selected,"self-end":w(n)==="HORIZONTAL"&&e.poll.uiConfig.theme.optionRadius!=="PILL","self-center":w(n)==="HORIZONTAL"&&e.poll.uiConfig.theme.optionRadius==="PILL"},"rounded-full h-5 w-5 relative shrink-0"])},[So(ke("span",Ec,null,512),[[wi,r.selected]])],2))],10,Ic)]),_:2},1032,["dir","class","onClick"]))),128))],2))}}),Ac="/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */.checkmark[data-v-85e1b0a9]{--tw-border-style:solid;border-style:solid;border-width:0 2px 2px 0;width:6px;height:12px;position:absolute;top:.2rem;left:.45rem;rotate:45deg}",As=(e,t)=>{const n=e.__vccOpts||e;for(const[s,o]of t)n[s]=o;return n},Ms=As($c,[["styles",[Ac]],["__scopeId","data-v-85e1b0a9"]]),Mc=Object.freeze(Object.defineProperty({__proto__:null,default:Ms},Symbol.toStringTag,{value:"Module"})),Fc={class:"flex flex-col gap-4"},Nc=["id","disabled"],Li=me({__name:"Active",props:kn({id:{type:String},opened:{type:Boolean},dir:{type:String}},{modelValue:{},modelModifiers:{}}),emits:kn(["submit"],["update:modelValue"]),setup(e,{emit:t}){const n=e,s=bs(e,"modelValue"),o=c=>{s.value&&(s.value.options=s.value.options.map(f=>({...f,selected:f.id===c})))},i=_e(()=>{var c;return!n.opened||!((c=s.value)!=null&&c.options.find(f=>f.selected))}),r=t,l=Le("t");return(c,f)=>{var d;const u=Ms;return j(),le("div",Fc,[s.value&&e.opened?(j(),pe(u,{key:0,poll:s.value,dir:e.dir,onSelect:o},null,8,["poll","dir"])):ce("",!0),ke("button",{id:`poll-${e.id}-submit`,class:"button",disabled:w(i),onClick:f[0]||(f[0]=g=>r("submit"))},$e((d=w(l))==null?void 0:d(e.opened?"Vote now":"Coming soon")),9,Nc)])}}}),Dc=Object.freeze(Object.defineProperty({__proto__:null,default:Li},Symbol.toStringTag,{value:"Module"})),Ui=me({__name:"Form",props:{data:{type:null}},setup(e){Fi("cortex-form-script","https://form.cortextech.io/index.js");const t=Le("rootProps");return(n,s)=>{var i,r,l,c,f,u,d,g,_,k,R,U,P;const o=$o("cortex-form");return j(),pe(o,{id:e.data.formId,"client-id":(i=w(t))==null?void 0:i.clientId,stage:((r=w(t))==null?void 0:r.stage)||null,server:(l=w(t))==null?void 0:l.server,"access-token":(c=w(t))==null?void 0:c.accessToken,"access-token-cookie-name":(f=w(t))==null?void 0:f.accessTokenCookieName,"access-token-callback-name":(u=w(t))==null?void 0:u.accessTokenCallbackName,preview:((d=w(t))==null?void 0:d.preview)||null,"event-tracking-key":(g=w(t))==null?void 0:g.eventTrackingKey,"parent-source-system":"POLLS","parent-source-system-id":(_=w(t))==null?void 0:_.id,consent:((k=w(t))==null?void 0:k.consent)||null,"cookie-domain":(R=w(t))==null?void 0:R.cookieDomain,"device-id-cookie-name":(U=w(t))==null?void 0:U.deviceIdCookieName,"device-id-callback-name":(P=w(t))==null?void 0:P.deviceIdCallbackName},null,8,["id","client-id","stage","server","access-token","access-token-cookie-name","access-token-callback-name","preview","event-tracking-key","parent-source-system-id","consent","cookie-domain","device-id-cookie-name","device-id-callback-name"])}}}),jc=Object.freeze(Object.defineProperty({__proto__:null,default:Ui},Symbol.toStringTag,{value:"Module"})),Lc=["src"],Fs=me({__name:"Image",props:{data:{type:null}},setup(e){return(t,n)=>e.data.image?(j(),le("img",{key:0,src:w(Di)(e.data.image),alt:"",class:"w-full"},null,8,Lc)):ce("",!0)}}),Uc=Object.freeze(Object.defineProperty({__proto__:null,default:Fs},Symbol.toStringTag,{value:"Module"})),Vi=me({__name:"Personalised",props:{data:{type:null}},setup(e){Fi("cortex-promo-asset-script","https://promo-asset.cortextech.io/index.js");const t=Le("rootProps");return(n,s)=>{var i,r,l,c,f,u,d,g,_,k,R,U;const o=$o("cortex-promo-asset");return j(),pe(o,{id:e.data.sourceSystemId,"client-id":(i=w(t))==null?void 0:i.clientId,stage:((r=w(t))==null?void 0:r.stage)||null,server:(l=w(t))==null?void 0:l.server,"access-token":(c=w(t))==null?void 0:c.accessToken,"access-token-cookie-name":(f=w(t))==null?void 0:f.accessTokenCookieName,"access-token-callback-name":(u=w(t))==null?void 0:u.accessTokenCallbackName,"event-tracking-key":(d=w(t))==null?void 0:d.eventTrackingKey,"parent-source-system":"POLLS","parent-source-system-id":(g=w(t))==null?void 0:g.id,consent:((_=w(t))==null?void 0:_.consent)||null,"cookie-domain":(k=w(t))==null?void 0:k.cookieDomain,"device-id-cookie-name":(R=w(t))==null?void 0:R.deviceIdCookieName,"device-id-callback-name":(U=w(t))==null?void 0:U.deviceIdCallbackName},null,8,["id","client-id","stage","server","access-token","access-token-cookie-name","access-token-callback-name","event-tracking-key","parent-source-system-id","consent","cookie-domain","device-id-cookie-name","device-id-callback-name"])}}}),Vc=Object.freeze(Object.defineProperty({__proto__:null,default:Vi},Symbol.toStringTag,{value:"Module"})),Bc=["poster","src"],Hc=["src"],Bi=me({__name:"Video",props:{data:{type:null}},setup(e){const t=e,n=_e(()=>{var s,o;switch(t.data.sourceSystem){case"YOUTUBE":return`https://www.youtube.com/embed/${t.data.sourceSystemId}`;case"BRIGHTCOVE":return`https://players.brightcove.net/${(s=t.data.metadata)==null?void 0:s.accountId}/${(o=t.data.metadata)==null?void 0:o.playerId}_default/index.html?videoId=${t.data.sourceSystemId}`;default:return t.data.link}});return(s,o)=>e.data.sourceSystem==="MEDIA"?(j(),le("video",{key:0,poster:e.data.videoThumbnail,src:w(n),class:"w-full aspect-video",controls:""},null,8,Bc)):["YOUTUBE","BRIGHTCOVE"].includes(e.data.sourceSystem||"")?(j(),le("iframe",{key:1,src:w(n),frameborder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowfullscreen:"",class:"w-full aspect-video"},null,8,Hc)):ce("",!0)}}),Wc=Object.freeze(Object.defineProperty({__proto__:null,default:Bi},Symbol.toStringTag,{value:"Module"})),Ns=me({__name:"index",props:{data:{type:null}},setup(e){return(t,n)=>{const s=Fs,o=Bi,i=Ui,r=Vi;return j(),le(Oe,null,[e.data.contentType==="IMAGE"?(j(),pe(s,{key:0,data:e.data},null,8,["data"])):ce("",!0),e.data.contentType==="VIDEO"?(j(),pe(o,{key:1,data:e.data},null,8,["data"])):ce("",!0),e.data.contentType==="FORM"?(j(),pe(i,{key:2,data:e.data},null,8,["data"])):ce("",!0),e.data.contentType==="PROMO"?(j(),pe(r,{key:3,data:e.data},null,8,["data"])):ce("",!0)],64)}}}),Kc=Object.freeze(Object.defineProperty({__proto__:null,default:Ns},Symbol.toStringTag,{value:"Module"})),zc=["id"],Hi=me({__name:"Result",props:kn({id:{type:String},poll:{type:null},publishedResult:{type:Boolean},needScroll:{type:Boolean},dir:{type:String}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=bs(e,"modelValue"),s=nt(null);wn(()=>{var i;t.needScroll&&((i=s.value)==null||i.scrollIntoView({behavior:"smooth",block:"center"}))});const o=Le("t");return(i,r)=>{var c;const l=Ms;return j(),le("div",{ref_key:"resultDiv",ref:s,class:"flex flex-col gap-4"},[e.poll?(j(),pe(l,{key:0,poll:e.poll,dir:e.dir,result:"",publishedResult:e.publishedResult},null,8,["poll","dir","publishedResult"])):ce("",!0),e.poll.shareable?(j(),le("button",{key:1,id:`poll-${e.id}-share`,class:"button",onClick:r[0]||(r[0]=f=>n.value=!n.value)},$e((c=w(o))==null?void 0:c(e.publishedResult?"Share results":"Share poll")),9,zc)):ce("",!0)],512)}}}),qc=Object.freeze(Object.defineProperty({__proto__:null,default:Hi},Symbol.toStringTag,{value:"Module"})),Gc=["dir"],Jc={key:0,class:"whitespace-pre-wrap"},Yc=["href"],Zc=["id"],Wi=me({__name:"Success",props:kn({id:{type:String},publishedResult:{type:Boolean},postVoteMessage:{type:null},needScroll:{type:Boolean},dir:{type:String}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=bs(e,"modelValue"),n=e,s=nt(null);wn(()=>{var i;n.needScroll&&((i=s.value)==null||i.scrollIntoView({behavior:"smooth",block:"center"}))});const o=Le("t");return(i,r)=>{var c,f,u,d,g,_,k,R;const l=Ns;return j(),le("div",{ref_key:"successDiv",ref:s,class:"flex flex-col gap-4"},[ke("div",{dir:e.dir,class:"flex flex-col font-titleFont text-title text-title-font leading-tight",style:{gap:"calc(var(--text-title) * 1.25)"}},[(c=e.postVoteMessage)!=null&&c.message?(j(),le("h2",Jc,$e(e.postVoteMessage.message),1)):ce("",!0),(f=e.postVoteMessage)!=null&&f.linkText&&((u=e.postVoteMessage)!=null&&u.link)?(j(),le("a",{key:1,href:(d=e.postVoteMessage)==null?void 0:d.link,target:"_blank",class:"underline"},$e((g=e.postVoteMessage)==null?void 0:g.linkText),9,Yc)):ce("",!0)],8,Gc),(_=e.postVoteMessage)!=null&&_.content?(j(),pe(l,{key:0,data:(k=e.postVoteMessage)==null?void 0:k.content},null,8,["data"])):ce("",!0),ke("button",{id:`poll-${e.id}-see-results`,class:"button",onClick:r[0]||(r[0]=U=>t.value="result")},$e((R=w(o))==null?void 0:R(e.publishedResult?"See results":"See my vote")),9,Zc)],512)}}}),Xc=Object.freeze(Object.defineProperty({__proto__:null,default:Wi},Symbol.toStringTag,{value:"Module"}));function Qc(e){var t=Object.keys(e);return t.map(function(n){return"".concat(n,"=").concat(Number(e[n]))}).join(",")}function ea(e,t){var n=window.innerWidth/window.screen.availWidth,s=e/n,o=t/n,i=(window.innerWidth-e)/2/n+window.screenLeft,r=(window.innerHeight-t)/2/n+window.screenTop;return{width:s,height:o,top:r,left:i}}function ta(e){return Array.isArray(e)}function na(e){return e===void 0}var Fn={width:600,height:540};function Ki(e,t,n,s,o,i){return me({props:{windowFeatures:{type:Object,default:function(){return t||Fn},required:i},shareOptions:{type:Object,default:function(){return{}},required:o||!0},useNativeBehavior:{type:Boolean,default:!1}},data:function(){return{dialog:ho({shareDialog:null,shareDialogCloseIntervalId:void 0})}},emits:["click","popup-block","popup-open","popup-close","popup-focus"],beforeUnmount:function(){window.clearInterval(this.dialog.shareDialogCloseIntervalId)},computed:{mergedWindowFeatures:function(){var l=this.windowFeatures;return Object.assign({},Fn,l)},ariaLabel:function(){var l=this.$attrs,c=l.target,f="Share this with @s.";return(c==="_blank"||na(c))&&(f+=" (opens in new window)"),f.replace(/@s/g,e)}},methods:{openShareDialog:function(l){var c,f=this,u=this.mergedWindowFeatures,d=u.width,g=d===void 0?Fn.width:d,_=u.height,k=_===void 0?Fn.height:_,R=ea(g,k),U=Qc(Object.assign({},u,R));if(this.dialog.shareDialog===null||(c=this.dialog.shareDialog)!==null&&c!==void 0&&c.closed){if(this.dialog.shareDialog=window.open(l,"_blank",U),!this.dialog.shareDialog){this.$emit("popup-block");return}this.$emit("popup-open"),this.dialog.shareDialogCloseIntervalId=window.setInterval(function(){var P;(f.dialog.shareDialog===null||(P=f.dialog.shareDialog)!==null&&P!==void 0&&P.closed)&&(window.clearInterval(f.dialog.shareDialogCloseIntervalId),f.$emit("popup-close"),f.dialog.shareDialog=null)},300)}else this.dialog.shareDialog.focus(),this.$emit("popup-focus")},generateComponent:function(l){var c=this,f,u;return bi("a",{href:l,target:"_blank",rel:"nofollow noopener noreferrer","aria-label":this.ariaLabel,onClick:function(g){c.useNativeBehavior||(g.preventDefault(),c.openShareDialog(l)),c.$emit("click")}},(f=(u=this.$slots).default)===null||f===void 0?void 0:f.call(u))}}})}function Ds(e){var t=Object.entries(e).filter(function(n){return n[1]!==void 0&&n[1]!==null&&!Number.isNaN(n[1])&&n[1]!==""}).map(function(n){return"".concat(encodeURIComponent(n[0]),"=").concat(encodeURIComponent(String(n[1])))});return t.length>0?"?".concat(t.join("&")):""}function Jt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:",";return ta(e)?e.join(t):""}var sa=me({name:"SEmail",props:{shareOptions:{type:Object,required:!0}},computed:{networkURL:function(){var t="mailto:",n=this.shareOptions,s=n.mail,o=n.subject,i=n.body,r=n.cc,l=n.bcc,c=Ds({subject:o,body:i,cc:Jt(r,", "),bcc:Jt(l,", ")});return"".concat(t).concat(s).concat(c)},ariaLabel:function(){var t=this.shareOptions,n=t.mail,s=t.cc,o=t.bcc,i=["Send an e-mail to ".concat(n)];return s&&i.push("add a carbon copy for ".concat(Jt(s,", "))),o&&i.push("add a blind carbon copy for ".concat(Jt(o,", "))),"".concat(i.join(" and "),".")}},render:function(){var t,n;return bi("a",{href:this.networkURL,rel:"noopener noreferrer","aria-label":this.ariaLabel},(t=(n=this.$slots).default)===null||t===void 0?void 0:t.call(n))}}),oa=me({name:"SFacebook",mixins:[Ki("Facebook",{width:685,height:600})],computed:{networkURL:function(){var t="https://www.facebook.com/sharer/sharer.php",n=this.shareOptions,s=n.url,o=n.quote,i=n.hashtag;return"".concat(t).concat(Ds({u:s,quote:o,hashtag:i}))}},render:function(){return this.generateComponent(this.networkURL)}}),ia=me({name:"STwitter",mixins:[Ki("Twitter",void 0,void 0,void 0,!1)],computed:{networkURL:function(){var t="https://twitter.com/intent/tweet",n=this.shareOptions,s=n.text,o=n.url,i=n.hashtags,r=n.via,l=Ds({text:s,url:o,hashtags:Jt(i),via:r});return"".concat(t).concat(l)}},render:function(){return this.generateComponent(this.networkURL)}});const ra={class:"relative"},la={class:"absolute bottom-24 w-full px-4"},ca={class:"w-full p-4 flex flex-col bg-background border border-solid border-background-border rounded-background gap-2"},zi=me({__name:"Share",props:{label:{type:String},publishedResult:{type:Boolean}},setup(e){const t=Le("rootProps"),n=(t==null?void 0:t.shareUrl)||window.location.href,s=Le("t"),o=nt(!1),i=()=>{navigator.clipboard.writeText(n),o.value=!0};return(r,l)=>{var c;return j(),le("div",ra,[ke("div",la,[ke("div",ca,[de(w(oa),{shareOptions:{url:w(n),quote:e.label},class:"button text-center"},{default:Ct(()=>[...l[0]||(l[0]=[zt(" Facebook ",-1)])]),_:1},8,["shareOptions"]),de(w(ia),{shareOptions:{url:w(n),text:e.label},class:"button text-center"},{default:Ct(()=>[...l[1]||(l[1]=[zt(" X ",-1)])]),_:1},8,["shareOptions"]),de(w(sa),{shareOptions:{mail:"",subject:e.label,body:`${e.label} ${w(n)}`},class:"button text-center"},{default:Ct(()=>[...l[2]||(l[2]=[zt(" Email ",-1)])]),_:1},8,["shareOptions"]),ke("button",{class:"button",onClick:i},$e((c=w(s))==null?void 0:c(w(o)?"Copied":"Copy")),1)])])])}}}),aa=Object.freeze(Object.defineProperty({__proto__:null,default:zi},Symbol.toStringTag,{value:"Module"}));class Yt extends Error{}Yt.prototype.name="InvalidTokenError";function ua(e){return decodeURIComponent(atob(e).replace(/(.)/g,(t,n)=>{let s=n.charCodeAt(0).toString(16).toUpperCase();return s.length<2&&(s="0"+s),"%"+s}))}function fa(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return ua(t)}catch{return atob(t)}}function da(e,t){if(typeof e!="string")throw new Yt("Invalid token specified: must be a string");t||(t={});const n=t.header===!0?0:1,s=e.split(".")[n];if(typeof s!="string")throw new Yt(`Invalid token specified: missing part #${n+1}`);let o;try{o=fa(s)}catch(i){throw new Yt(`Invalid token specified: invalid base64 for part #${n+1} (${i.message})`)}try{return JSON.parse(o)}catch(i){throw new Yt(`Invalid token specified: invalid json for part #${n+1} (${i.message})`)}}async function ha(e){var c;let t=e.consent&&e.deviceIdCookieName&&Mn(e.deviceIdCookieName)||"";const n=await $s(e.deviceIdCallbackName,{props:e});typeof n=="string"&&(t=n),t||(t=crypto.randomUUID(),e.consent&&!e.deviceIdCallbackName&&Ni(e.deviceIdCookieName,t,e.cookieDomain));const s=nt();s.value=Mn("incrowd_anonymous_token"),e.authCookie&&(s.value=Mn(e.authCookie)),e.accessTokenCookieName&&(s.value=Mn(e.accessTokenCookieName));const o=await $s(e.accessTokenCallbackName,{props:e});typeof o=="string"&&(s.value=o),e.accessToken&&(s.value=e.accessToken);const i=_e(()=>s.value?da(s.value):void 0),r=new Date;return r.setHours(r.getHours()+1),i.value&&((c=i.value.authorities)!=null&&c.includes("ROLE_ANONYMOUS_*"))&&new Date(i.value.exp*1e3){try{const f=`https://oauth${e.stage?"-stage":""}.fanscore.${e.server==="standard"?"com":e.server}/oauth/token`,u={method:"POST",headers:{Accept:"*/*","Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({grant_type:"anonymous",deviceId:t,client_id:e.clientId}).toString()},d=await fetch(f,u).then(g=>g.json());s.value=d==null?void 0:d.access_token,s.value&&e.consent&&Ni("incrowd_anonymous_token",s.value,e.cookieDomain)}catch{}}}}function pa(e,t,n,s){return{trackEvent:async()=>{try{const i=`https://ctr${e.stage?"-stage":""}.incrowdsports.${e.server==="standard"?"com":e.server}/v1/${e.clientId}/events`,r=new Date().toISOString(),l=[{eventId:crypto.randomUUID(),eventType:"REQUEST",createdTimestamp:r,sentTimestamp:r,deviceId:t,authId:n==null?void 0:n.sub,sourceSystem:"POLLS",sourceSystemId:e.id,parentSourceSystem:e.parentSourceSystem,parentSourceSystemId:e.parentSourceSystemId,campaignCodes:s}],c={method:"POST",body:JSON.stringify({events:l}),headers:{"Content-type":"application/json; charset=UTF-8","X-API-KEY":e.eventTrackingKey,"X-REALM":e.clientId.toLowerCase(),"X-APP-ID":"web"}};await fetch(i,c)}catch{}}}}const js=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/\s+/g,"-").toLowerCase(),ga=e=>`${e==="PILL"?100:e==="SMOOTH"?4:0}px`,ba=async(e,t)=>{if(t)try{const n=new FontFace(e,`url(${t})`);await n.load(),document.fonts.add(n)}catch{}};function ma(e,t){var n,s,o,i,r,l,c,f,u;for(const[d,g]of Object.entries(e))if(d.endsWith("Color")){const _=g.includes("Background")?"white":"black";(o=(s=(n=t.value)==null?void 0:n.style)==null?void 0:s.setProperty)==null||o.call(s,`--color-${js(d.slice(0,-5))}`,g||_)}else d.endsWith("Font")?((l=(r=(i=t.value)==null?void 0:i.style)==null?void 0:r.setProperty)==null||l.call(r,`--text-${js(d.slice(0,-4))}`,`${(g==null?void 0:g.size)||16}px`),ba(`CortexPoll${d[0].toUpperCase()}${d.slice(1)}`,g==null?void 0:g.url)):d.endsWith("Radius")&&((u=(f=(c=t.value)==null?void 0:c.style)==null?void 0:f.setProperty)==null||u.call(f,`--radius-${js(d.slice(0,-6))}`,ga(g)))}function va(e){const t={es:{day:"día",hour:"hora",minute:"minuto",vote:"voto",days:"días",hours:"horas",minutes:"minutos",votes:"votos","Coming soon":"Próximamente","Vote now":"Vota ahora","Opening in":"Apertura en",Closed:"Cerrado","Results announced in":"Resultados anunciados en",left:"Quedan","See my vote":"Ver mi voto","See results":"Ver resultados","Share poll":"Compartir encuesta","Share results":"Compartir resultados",Copy:"Copiar",Copied:"Copiado"},fr:{day:"jour",hour:"heure",minute:"minute",vote:"vote",days:"jours",hours:"heures",minutes:"minutes",votes:"votes","Coming soon":"Bientôt disponible","Vote now":"Votez maintenant","Opening in":"Ouverture dans",Closed:"Fermé","Results announced in":"Résultats annoncés dans",left:"restant(s)","See my vote":"Voir mon vote","See results":"Voir les résultats","Share poll":"Partager le sondage","Share results":"Partager les résultats",Copy:"Copie",Copied:"Copié"},it:{day:"giorno",hour:"ora",minute:"minuto",vote:"voto",days:"giorni",hours:"ore",minutes:"minuti",votes:"voti","Coming soon":"Prossimamente","Vote now":"Vota ora","Opening in":"Apertura in",Closed:"Chiuso","Results announced in":"Risultati annunciati in",left:"rimasti","See my vote":"Vedi il mio voto","See results":"Vedi i risultati","Share poll":"Condividi il sondaggio","Share results":"Condividi i risultati",Copy:"Copia",Copied:"Copiato"},ar:{day:"يوم",hour:"ساعة",minute:"دقيقة",vote:"صوت",days:"أيام",hours:"ساعات",minutes:"دقائق",votes:"أصوات","Coming soon":"قريبًا","Vote now":"صوت الآن","Opening in":"يبدأ التصويت خلال",Closed:"انتهى التصويت","Results announced in":"تُعلن النتائج خلال",left:"متبقية","See my vote":"عرض تصويتي","See results":"عرض النتائج","Share poll":"شارك الاستطلاع","Share results":"شارك النتائج",Copy:"نسخ",Copied:"تم النسخ"}};return{t:(s,o)=>{var l,c;const i=((l=e.value)==null?void 0:l.language)||"";let r=((c=t[i]||t[i.split("-")[0]])==null?void 0:c[s])||s;if(o)for(const[f,u]of Object.entries(o))r=r.replaceAll(`{${f}}`,u);return r}}}async function _a(e,t){var ae,ie,se,ye,Ve,X,V;const n=nt();wn(()=>{var C,B;(B=(C=n.value)==null?void 0:C.uiConfig)!=null&&B.theme&&ma(n.value.uiConfig.theme,t)});const s=nt("active"),o=nt(!1),{deviceId:i,accessToken:r,decodedToken:l,anonymousLogin:c}=await ha(e),f=`https://polls${e.stage?"-stage":""}.fanscore.${e.server==="standard"?"com":e.server}`,u=(ae=e.locale)==null?void 0:ae.split(","),d=u==null?void 0:u.shift(),g=`${f}/v2${e.preview?`/admin/${e.clientId}`:""}/polls/${e.id}${e.preview?"/preview":""}${d?"?language="+d:""}${u!=null&&u.length?"&fallbackLanguages="+u.join(","):""}`,_=nt(!1),{t:k}=va(n),R=C=>{if(!C)return"";const B=new Date(C).valueOf()-new Date().valueOf(),Be=B/6e4,he=B/36e5,ue=B/864e5,Zt=he-Math.floor(ue)*24;return ue>3?`${Math.round(ue)} ${k("days")}`:ue>1?`${Math.floor(ue)} ${k(Math.floor(ue)===1?"day":"days")} ${Math.round(Zt)} ${k(Math.round(Zt)===1?"hour":"hours")}`:he>1?`${Math.round(he)} ${k(Math.round(he)===1?"hour":"hours")}`:`${Math.round(Be)} ${k(Math.round(Be)===1?"minute":"minutes")}`},U=_e(()=>{var C,B;return e.preview||((C=n.value)!=null&&C.publishDate?new Date((B=n.value)==null?void 0:B.publishDate).valueOf(){var C,B;return(C=n.value)!=null&&C.validFrom?new Date((B=n.value)==null?void 0:B.validFrom).valueOf(){var C,B;return(C=n.value)!=null&&C.validTo?new Date((B=n.value)==null?void 0:B.validTo).valueOf(){var C,B;return(C=n.value)!=null&&C.publishResultDate?new Date((B=n.value)==null?void 0:B.publishResultDate).valueOf(){var C;return R((C=n.value)==null?void 0:C.validFrom)}),I=_e(()=>{var C;return R((C=n.value)==null?void 0:C.validTo)}),D=_e(()=>{var C;return R((C=n.value)==null?void 0:C.publishResultDate)}),Y=_e(()=>P.value?L.value?K.value?k("Closed"):`${k("Results announced in")} ${D.value}`:`${I.value} ${k("left")}`:`${k("Opening in")} ${E.value}`),G=_e(()=>{var C;return(C=n.value)==null?void 0:C.options[0].postVoteMessage}),ne=()=>fetch(g,r.value?{headers:{Authorization:`Bearer ${r.value}`}}:void 0).then(C=>C.json());try{const C=await ne();if((C==null?void 0:C.status)!=="success")return;if(n.value=C.data,e.consent&&e.eventTrackingKey&&((ie=n.value)!=null&&ie.trackingEnabled)){const{trackEvent:B}=pa(e,i,l.value,(se=n.value)==null?void 0:se.campaignCodes);B()}(Ve=(ye=n.value)==null?void 0:ye.options)==null||Ve.sort((B,Be)=>B.uiIndex-Be.uiIndex),_.value=!!((V=(X=n.value)==null?void 0:X.options)!=null&&V.find(B=>B.selected)),(_.value&&P.value||L.value)&&(s.value="result")}catch{}return{page:s,needScroll:o,poll:n,t:k,published:U,opened:P,publishedResult:K,timeText:Y,postVoteMessage:G,submit:async()=>{try{if(!n.value)return;const C=n.value.options.find(ue=>ue.selected);if(!C)return;r.value||await c();const B=C.id,Be={method:"POST",body:JSON.stringify({answerId:B}),headers:{"Content-Type":"application/json",Authorization:`Bearer ${r.value}`}};let he;if(e.preview?he={status:"success"}:he=await fetch(`${f}/v1/polls/${e.id}/answer`,Be).then(ue=>ue.json()),(he==null?void 0:he.status)!=="success")return;n.value.votes+=1,C.votes+=1,o.value=!0,s.value=G.value?"success":"result",await $s(e.submitCallbackName||e.onSubmit,{props:e,content:W(n.value),elementType:"poll"})}catch(C){console.error(C)}}}}const ya={key:0,class:"absolute inset-0"},wa={class:"flex flex-col p-4 gap-4"},xa={key:0},ka=["dir"],Sa=["dir"],Ca={key:0},qi=As(me({__name:"Poll",props:{id:{type:String},locale:{type:String},clientId:{type:String},stage:{type:[Boolean,String]},server:{type:String},accessToken:{type:String},authCookie:{type:String},accessTokenCookieName:{type:String},accessTokenCallbackName:{type:String},preview:{type:[Boolean,String]},eventTrackingKey:{type:String},parentSourceSystem:{type:String},parentSourceSystemId:{type:String},shareUrl:{type:String},onSubmit:{type:String},submitCallbackName:{type:String},consent:{type:[Boolean,String],default:!0},cookieDomain:{type:String},deviceIdCookieName:{type:String},deviceIdCallbackName:{type:String}},async setup(e){var L,K;let t,n;const s=e,o=_e(()=>{var D,Y,G,ne,Z,ae,ie,se,ye,Ve,X,V,C;let E=s.locale||((D=globalThis.cortextech)==null?void 0:D.locale);const I=ji(E);return typeof I=="string"&&(E=I),{...s,locale:E,clientId:s.clientId||((Y=globalThis.cortextech)==null?void 0:Y.clientId),stage:s.stage==="false"?!1:s.stage||((G=globalThis.cortextech)==null?void 0:G.stage),server:s.server||((ne=globalThis.cortextech)==null?void 0:ne.server)||"standard",accessTokenCookieName:s.accessTokenCookieName||((Z=globalThis.cortextech)==null?void 0:Z.accessTokenCookieName),accessTokenCallbackName:s.accessTokenCallbackName||((ae=globalThis.cortextech)==null?void 0:ae.accessTokenCallbackName),preview:s.preview==="false"?!1:s.preview,eventTrackingKey:s.eventTrackingKey||((ie=globalThis.cortextech)==null?void 0:ie.eventTrackingKey),shareUrl:s.shareUrl||((se=globalThis.cortextech)==null?void 0:se.shareUrl),onSubmit:s.onSubmit||((ye=globalThis.cortextech)==null?void 0:ye.onSubmit),submitCallbackName:s.submitCallbackName||((Ve=globalThis.cortextech)==null?void 0:Ve.submitCallbackName),consent:s.consent==="false"?!1:s.consent,cookieDomain:s.cookieDomain||((X=globalThis.cortextech)==null?void 0:X.cookieDomain),deviceIdCookieName:s.deviceIdCookieName||((V=globalThis.cortextech)==null?void 0:V.deviceIdCookieName)||"cortex_device_id",deviceIdCallbackName:s.deviceIdCallbackName||((C=globalThis.cortextech)==null?void 0:C.deviceIdCallbackName)}});cs("rootProps",o.value);const i=Xr("rootDiv"),{page:r,needScroll:l,poll:c,t:f,published:u,opened:d,publishedResult:g,timeText:_,postVoteMessage:k,submit:R}=([t,n]=hl(()=>_a(o.value,i)),t=await t,n(),t);cs("t",f);const U=nt(!1),P=(K=(L=o.value)==null?void 0:L.locale)!=null&&K.startsWith("ar")?"rtl":"auto";return(E,I)=>{var ie;const D=zi,Y=Ns,G=Fs,ne=Li,Z=Wi,ae=Hi;return j(),le("div",{ref_key:"rootDiv",ref:i,class:Ne(w(u)?"w-full flex flex-col bg-background border border-solid border-background-border rounded-background overflow-hidden relative":"")},[w(c)&&w(u)?(j(),le(Oe,{key:0},[w(c).shareable?So((j(),le("div",ya,[ke("button",{"aria-label":"Close",class:"bg-black/75 h-full w-full cursor-default",onClick:I[0]||(I[0]=se=>U.value=!1)}),de(D,{label:w(c).label,publishedResult:w(g)},null,8,["label","publishedResult"])],512)),[[wi,w(U)]]):ce("",!0),(ie=w(c).heroMedia)!=null&&ie.content?(j(),pe(Y,{key:1,data:w(c).heroMedia.content},null,8,["data"])):ce("",!0),w(c).sponsorImageURL?(j(),pe(G,{key:2,data:{image:w(c).sponsorImageURL}},null,8,["data"])):ce("",!0),ke("div",wa,[w(r)!=="success"?(j(),le("div",xa,[ke("h2",{dir:w(P),class:"font-titleFont text-title text-title-font"},$e(w(c).label),9,ka),ke("p",{dir:w(P),class:"font-captionFont text-caption text-caption-font"},[w(c).showNumberOfVotes?(j(),le("span",Ca,$e(w(c).votes)+" "+$e(w(f)(w(c).votes===1?"vote":"votes"))+" ● ",1)):ce("",!0),zt(" "+$e(w(_)),1)],8,Sa)])):ce("",!0),w(r)==="active"?(j(),pe(ne,{key:1,modelValue:w(c),"onUpdate:modelValue":I[1]||(I[1]=se=>fe(c)?c.value=se:null),id:w(o).id,opened:w(d),dir:w(P),onSubmit:w(R)},null,8,["modelValue","id","opened","dir","onSubmit"])):w(r)==="success"?(j(),pe(Z,{key:2,modelValue:w(r),"onUpdate:modelValue":I[2]||(I[2]=se=>fe(r)?r.value=se:null),id:w(o).id,publishedResult:w(g),postVoteMessage:w(k),needScroll:w(l),dir:w(P)},null,8,["modelValue","id","publishedResult","postVoteMessage","needScroll","dir"])):w(r)==="result"?(j(),pe(ae,{key:3,modelValue:w(U),"onUpdate:modelValue":I[3]||(I[3]=se=>fe(U)?U.value=se:null),id:w(o).id,poll:w(c),publishedResult:w(g),needScroll:w(l),dir:w(P)},null,8,["modelValue","id","poll","publishedResult","needScroll","dir"])):ce("",!0)])],64)):ce("",!0)],2)}}}),[["styles",['/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid;--tw-leading:initial;--tw-outline-style:solid}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-black:#000;--spacing:.25rem;--leading-tight:1.25;--aspect-video:16/9;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--font-buttonFont:"CortexPollButtonFont","sans-serif";--font-captionFont:"CortexPollCaptionFont","sans-serif";--font-optionFont:"CortexPollOptionFont","sans-serif";--font-titleFont:"CortexPollTitleFont","sans-serif";--text-button:1rem;--text-caption:1rem;--text-option:1rem;--text-title:1rem;--color-title-font:black;--color-caption-font:black;--color-background:white;--color-background-border:black;--color-button-font:black;--color-button-border:black;--color-button-background:white;--color-selected-option-font:black;--color-selected-option-background:white;--color-selected-option-border:black;--color-unselected-option-font:black;--color-unselected-option-background:white;--color-unselected-option-border:black;--color-check-icon-background:white;--color-check-icon-border:black;--radius-background:0;--radius-button:0;--radius-option:0}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.absolute{position:absolute}.relative{position:relative}.inset-0{inset:calc(var(--spacing)*0)}.bottom-24{bottom:calc(var(--spacing)*24)}.line-clamp-1{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.flex{display:flex}.aspect-3\\/4{aspect-ratio:3/4}.aspect-video{aspect-ratio:var(--aspect-video)}.h-5{height:calc(var(--spacing)*5)}.h-20{height:calc(var(--spacing)*20)}.h-full{height:100%}.button{cursor:pointer;border-radius:var(--radius-button);border-style:var(--tw-border-style);--tw-border-style:solid;border-style:solid;border-width:1px;border-color:var(--color-button-border);background-color:var(--color-button-background);width:100%;padding:calc(var(--spacing)*4);font-family:var(--font-buttonFont);font-size:var(--text-button);color:var(--color-button-font)}.button:disabled{opacity:.5}.w-5{width:calc(var(--spacing)*5)}.w-36{width:calc(var(--spacing)*36)}.w-full{width:100%}.shrink-0{flex-shrink:0}.rotate-45{rotate:45deg}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.gap-2{gap:calc(var(--spacing)*2)}.gap-4{gap:calc(var(--spacing)*4)}.self-center{align-self:center}.self-end{align-self:flex-end}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.rounded-background{border-radius:var(--radius-background)}.rounded-button{border-radius:var(--radius-button)}.rounded-full{border-radius:3.40282e38px}.rounded-option{border-radius:var(--radius-option)}.border{border-style:var(--tw-border-style);border-width:1px}.border-solid{--tw-border-style:solid;border-style:solid}.border-background-border{border-color:var(--color-background-border)}.border-button-border{border-color:var(--color-button-border)}.border-check-icon-border{border-color:var(--color-check-icon-border)}.border-selected-option-background{border-color:var(--color-selected-option-background)}.border-selected-option-border{border-color:var(--color-selected-option-border)}.border-unselected-option-border{border-color:var(--color-unselected-option-border)}.bg-background{background-color:var(--color-background)}.bg-black\\/75{background-color:#000000bf}@supports (color:color-mix(in lab,red,red)){.bg-black\\/75{background-color:color-mix(in oklab,var(--color-black)75%,transparent)}}.bg-button-background{background-color:var(--color-button-background)}.bg-check-icon-background{background-color:var(--color-check-icon-background)}.bg-selected-option-background{background-color:var(--color-selected-option-background)}.bg-unselected-option-background{background-color:var(--color-unselected-option-background)}.object-contain{object-fit:contain}.p-4{padding:calc(var(--spacing)*4)}.px-4{padding-inline:calc(var(--spacing)*4)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-buttonFont{font-family:var(--font-buttonFont)}.font-captionFont{font-family:var(--font-captionFont)}.font-optionFont{font-family:var(--font-optionFont)}.font-titleFont{font-family:var(--font-titleFont)}.text-button{font-size:var(--text-button)}.text-caption{font-size:var(--text-caption)}.text-option{font-size:var(--text-option)}.text-title{font-size:var(--text-title)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.whitespace-pre-wrap{white-space:pre-wrap}.text-button-font{color:var(--color-button-font)}.text-caption-font{color:var(--color-caption-font)}.text-selected-option-font{color:var(--color-selected-option-font)}.text-title-font{color:var(--color-title-font)}.text-unselected-option-font{color:var(--color-unselected-option-font)}.underline{text-decoration-line:underline}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.disabled\\:opacity-50:disabled{opacity:.5}}:focus-visible{outline:none}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}']]]),Ta=Object.freeze(Object.defineProperty({__proto__:null,default:qi},Symbol.toStringTag,{value:"Module"})),Oa={};function Ia(e,t){const n=qi;return j(),pe(Dl,null,{default:Ct(()=>[de(n,lr(fi(e.$attrs)),null,16)]),_:1})}const Nn=As(Oa,[["render",Ia]]),Ra=Object.values([Dc,jc,Uc,Vc,Wc,Kc,Mc,Ta,qc,aa,Xc]);Nn.styles=Ra.reduce((e,t)=>[...e,...t.default.styles||[]],Nn.styles||[]),customElements.get("cortex-poll")||customElements.define("cortex-poll",Ei(Nn)),customElements.get("incrowd-poll")||customElements.define("incrowd-poll",Ei(Nn))}));