20 lines
353 KiB
JavaScript
20 lines
353 KiB
JavaScript
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports),s=(e,n)=>{let r=Object.setPrototypeOf({},null);for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n&1||t(r,Symbol.toStringTag,{value:`Module`}),n&2?r:Object.preventExtensions(r)},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(let c of r(i))!a.call(e,c)&&c!==o&&(s=n(i,c),t(e,c,{get:s&&s.get&&!s.configurable?s.get:()=>i[c],enumerable:!s||s.enumerable}));return e},l=(n,r,o)=>(o=n==null?{}:e(i(n)),c(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));function u(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var d={},f=[],p=()=>{},m=()=>!1,h=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),g=e=>e.startsWith(`onUpdate:`),_=Object.assign,v=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},y=Object.prototype.hasOwnProperty,b=(e,t)=>y.call(e,t),x=Array.isArray,S=e=>ie(e)===`[object Map]`,C=e=>ie(e)===`[object Set]`,w=e=>ie(e)===`[object Date]`,ee=e=>ie(e)===`[object RegExp]`,T=e=>typeof e==`function`,E=e=>typeof e==`string`,te=e=>typeof e==`symbol`,D=e=>typeof e==`object`&&!!e,ne=e=>(D(e)||T(e))&&T(e.then)&&T(e.catch),re=Object.prototype.toString,ie=e=>re.call(e),ae=e=>ie(e).slice(8,-1),oe=e=>ie(e)===`[object Object]`,se=e=>E(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,ce=u(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),le=1e4,ue=e=>{let t=Object.create(null),n=0;return(r=>{let i=t[r];return i===void 0?(++n>le&&(t=Object.create(null),n=1),t[r]=e(r)):i})},de=/-\w/g,O=ue(e=>e.replace(de,e=>e.slice(1).toUpperCase())),fe=/\B([A-Z])/g,pe=ue(e=>e.replace(fe,`-$1`).toLowerCase()),me=ue(e=>e.charAt(0).toUpperCase()+e.slice(1)),he=ue(e=>e?`on${me(e)}`:``),ge=(e,t)=>!Object.is(e,t),_e=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},ve=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},ye=e=>{let t=parseFloat(e);return isNaN(t)?e:t},be=e=>{let t=E(e)?Number(e):NaN;return isNaN(t)?e:t},xe,Se=()=>xe||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{},Ce=u(`Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol`);function k(e){if(x(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=E(r)?De(r):k(r);if(i)for(let e in i)t[e]=i[e]}return t}if(E(e)||D(e))return e}var we=/;(?![^(]*\))/g,Te=/:([^]+)/,Ee=/"(?:[^"\\]|\\[^])*"|'(?:[^'\\]|\\[^])*'|\\[^]|\/\*[^]*?\*\//g;function De(e){let t={};return e.replace(Ee,e=>e.startsWith(`/*`)?``:e).split(we).forEach(e=>{if(e){let n=e.split(Te);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function A(e){let t=``;if(E(e))t=e;else if(x(e))for(let n=0;n<e.length;n++){let r=A(e[n]);r&&(t+=r+` `)}else if(D(e))for(let n in e)e[n]&&(t+=n+` `);return t.trim()}function Oe(e){if(!e)return null;let{class:t,style:n}=e;return t&&!E(t)&&(e.class=A(t)),n&&(e.style=k(n)),e}var ke=`itemscope,allowfullscreen,disablepictureinpicture,disableremoteplayback,formnovalidate,ismap,nomodule,novalidate,playsinline,readonly`,Ae=u(ke);ke+``;function je(e){return!!e||e===``}function Me(e,t,n){if(e.length!==t.length)return!1;let r=!0;for(let i=0;r&&i<e.length;i++)r=Ie(e[i],t[i],n);return r}function Ne(e,t,n){if(e.size!==t.size)return!1;let r=Array.from(t),i=new Uint8Array(r.length);for(let t of e){let e=-1;for(let a=0;a<r.length;a++)if(!i[a]&&Ie(t,r[a],n)){e=a;break}if(e<0)return!1;i[e]=1}return!0}function Pe(e,t,n){let r=S(e),i=S(t);if(r||i||(r=C(e),i=C(t),r||i))return r&&i?Ne(e,t,n):!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e){let i=b(e,r),a=b(t,r);if(i&&!a||!i&&a||!Ie(e[r],t[r],n))return!1}return Re(e)===Re(t)}function Fe(e,t,n,r){n||=[new Map,new Map];let[i,a]=n;if(i.has(e)||a.has(t))return i.get(e)===t&&a.get(t)===e;i.set(e,t),a.set(t,e);let o=r(e,t,n);return i.delete(e),a.delete(t),o}function Ie(e,t,n){if(e===t)return!0;let r=w(e),i=w(t);return r||i?r&&i?e.getTime()===t.getTime():!1:(r=te(e),i=te(t),r||i?e===t:(r=x(e),i=x(t),r||i?r&&i?Fe(e,t,n,Me):!1:(r=D(e),i=D(t),r||i?!r||!i?!1:Fe(e,t,n,Pe):String(e)===String(t))))}function Le(e,t){return e.findIndex(e=>Ie(e,t))}function Re(e){return Object.getPrototypeOf(e)===null&&e[Symbol.toPrimitive]==null&&typeof e.toString!=`function`&&typeof e.valueOf!=`function`?ie(e):String(e)}var ze=e=>!!(e&&e.__v_isRef===!0),j=e=>E(e)?e:e==null?``:x(e)||D(e)&&(e.toString===re||!T(e.toString))?ze(e)?j(e.value):JSON.stringify(e,Be,2):String(e),Be=(e,t)=>ze(t)?Be(e,t.value):S(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[Ve(t,r)+` =>`]=n,e),{})}:C(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Ve(e))}:te(t)?Ve(t):D(t)&&!x(t)&&!oe(t)?String(t):t,Ve=(e,t=``)=>te(e)?`Symbol(${e.description??t})`:e;function He(e){return e==null?`initial`:typeof e==`string`?e===``?` `:e:String(e)}var Ue,We=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&Ue&&(Ue.active?(this.parent=Ue,this.index=(Ue.scopes||(Ue.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes){let n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[e].pause()}for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,t;if(this.scopes){let n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}let n=this.effects.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}}run(e){if(this._active){let t=Ue;try{return Ue=this,e()}finally{Ue=t}}}on(){++this._on===1&&(this.prevScope=Ue,Ue=this)}off(){if(this._on>0&&--this._on===0){if(Ue===this)Ue=this.prevScope;else{let e=Ue;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){let e=this.scopes.slice();for(t=0,n=e.length;t<n;t++)e[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){let e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}};function Ge(e){return new We(e)}function Ke(){return Ue}function qe(e,t=!1){Ue&&(Ue.active?Ue.cleanups.push(e):e())}var Je,Ye=new WeakSet,Xe=class{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Ue&&(Ue.active?Ue.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ye.has(this)&&(Ye.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||et(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,ht(this),rt(this);let e=Je,t=dt;Je=this,dt=!0;try{return this.fn()}finally{it(this),Je=e,dt=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)st(e);this.deps=this.depsTail=void 0,ht(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ye.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){at(this)&&this.run()}get dirty(){return at(this)}},Ze=0,Qe,$e;function et(e,t=!1){e.flags|=8,t?(e.next=$e,$e=e):(e.next=Qe,Qe=e)}function tt(){Ze++}function nt(){if(--Ze>0)return;if($e){let e=$e;for($e=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;Qe;){let t=Qe;for(Qe=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(t){e||=t}t=n}}if(e)throw e}function rt(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function it(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),st(r),ct(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function at(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ot(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ot(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===gt)||(e.globalVersion=gt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!at(e))))return;e.flags|=2;let t=e.dep,n=Je,r=dt;Je=e,dt=!0;try{rt(e);let n=e.fn(e._value);(t.version===0||ge(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{Je=n,dt=r,it(e),e.flags&=-3}}function st(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)st(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function ct(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function lt(e,t){e.effect instanceof Xe&&(e=e.effect.fn);let n=new Xe(e);t&&_(n,t);try{n.run()}catch(e){throw n.stop(),e}let r=n.run.bind(n);return r.effect=n,r}function ut(e){e.effect.stop()}var dt=!0,ft=[];function pt(){ft.push(dt),dt=!1}function mt(){let e=ft.pop();dt=e===void 0||e}function ht(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=Je;Je=void 0;try{t()}finally{Je=e}}}var gt=0,_t=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},vt=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!Je||!dt||Je===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==Je)t=this.activeLink=new _t(Je,this),Je.deps?(t.prevDep=Je.depsTail,Je.depsTail.nextDep=t,Je.depsTail=t):Je.deps=Je.depsTail=t,yt(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=Je.depsTail,t.nextDep=void 0,Je.depsTail.nextDep=t,Je.depsTail=t,Je.deps===t&&(Je.deps=e)}return t}trigger(e){this.version++,gt++,this.notify(e)}notify(e){tt();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{nt()}}};function yt(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)yt(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var bt=new WeakMap,xt=Symbol(``),St=Symbol(``),Ct=Symbol(``);function wt(e,t,n){if(dt&&Je){let t=bt.get(e);t||bt.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new vt),r.map=t,r.key=n),r.track()}}function Tt(e,t,n,r,i,a){let o=bt.get(e);if(!o){gt++;return}let s=e=>{e&&e.trigger()};if(tt(),t===`clear`)o.forEach(s);else{let i=x(e),a=i&&se(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===Ct||!te(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(Ct)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(xt)),S(e)&&s(o.get(St)));break;case`delete`:i||(s(o.get(xt)),S(e)&&s(o.get(St)));break;case`set`:S(e)&&s(o.get(xt))}}nt()}function Et(e,t){let n=bt.get(e);return n&&n.get(t)}function Dt(e){let t=M(e);return t===e||(wt(t,`iterate`,Ct),vn(e))?t:_n(e)?gn(e)?t.map(e=>Sn(xn(e))):t.map(Sn):t.map(xn)}function Ot(e){return wt(e=M(e),`iterate`,Ct),e}var kt=e=>Sn(xn(e));function At(e){return _n(e)?gn(e)?kt:Sn:xn}var jt={__proto__:null,[Symbol.iterator](){return Mt(this,Symbol.iterator,At(this))},concat(...e){return Dt(this).concat(...e.map(e=>x(e)?Dt(e):e))},entries(){let e=At(this);return Mt(this,`entries`,t=>(t[1]=e(t[1]),t))},every(e,t){return Ft(this,`every`,e,t,void 0,arguments)},filter(e,t){return Ft(this,`filter`,e,t,e=>e.map(At(this)),arguments)},find(e,t){return Ft(this,`find`,e,t,e=>At(this)(e),arguments)},findIndex(e,t){return Ft(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return Ft(this,`findLast`,e,t,e=>At(this)(e),arguments)},findLastIndex(e,t){return Ft(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return Ft(this,`forEach`,e,t,void 0,arguments)},includes(...e){return Lt(this,`includes`,e)},indexOf(...e){return Lt(this,`indexOf`,e)},join(e){return Dt(this).join(e)},lastIndexOf(...e){return Lt(this,`lastIndexOf`,e)},map(e,t){return Ft(this,`map`,e,t,void 0,arguments)},pop(){return Rt(this,`pop`)},push(...e){return Rt(this,`push`,e)},reduce(e,...t){return It(this,`reduce`,e,t)},reduceRight(e,...t){return It(this,`reduceRight`,e,t)},shift(){return Rt(this,`shift`)},some(e,t){return Ft(this,`some`,e,t,void 0,arguments)},splice(...e){return Rt(this,`splice`,e)},toReversed(){return Dt(this).toReversed()},toSorted(e){return Dt(this).toSorted(e)},toSpliced(...e){return Dt(this).toSpliced(...e)},unshift(...e){return Rt(this,`unshift`,e)},values(){return Mt(this,`values`,At(this))}};function Mt(e,t,n){let r=Ot(e),i=r[t],a=i.call(r);if(r!==e&&!vn(e)){if(a[Symbol.toStringTag]===`Array Iterator`){let e=Object.create(Object.getPrototypeOf(a));return e.next=()=>Nt(a.next(),n),i!==Pt[t]&&Object.defineProperties(e,{return:{get(){let e=a.return;return typeof e==`function`?e.bind(a):e}},throw:{get(){let e=a.throw;return typeof e==`function`?e.bind(a):e}}}),e}a._next=a.next,a.next=()=>Nt(a._next(),n)}return a}function Nt(e,t){return e.done||(e.value=t(e.value)),e}var Pt=Array.prototype;function Ft(e,t,n,r,i,a){let o=Ot(e),s=o!==e&&!vn(e),c=o[t];if(c!==Pt[t]){let t=c.apply(e,a);return s?xn(t):t}let l=n;if(o!==e){if(s){let t=At(e);l=function(r,i){return n.call(this,t(r),i,e)}}else n.length>2&&(l=function(t,r){return n.call(this,t,r,e)})}let u=c.call(o,l,r);return s&&i?i(u):u}function It(e,t,n,r){let i=Ot(e),a=i!==e&&!vn(e),o=n,s=!1;if(i!==e){if(a){let t=At(e);s=r.length===0,o=function(r,i,a){return s&&(s=!1,r=t(r)),n.call(this,r,t(i),a,e)}}else n.length>3&&(o=function(t,r,i){return n.call(this,t,r,i,e)})}let c=i[t](o,...r);return s?At(e)(c):c}function Lt(e,t,n){let r=M(e);wt(r,`iterate`,Ct);let i=r[t](...n);return(i===-1||i===!1)&&yn(n[0])?(n[0]=M(n[0]),r[t](...n)):i}function Rt(e,t,n=[]){pt(),tt();let r=M(e)[t].apply(e,n);return nt(),mt(),r}var zt=u(`__proto__,__v_isRef,__isVue`),Bt=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(te));function Vt(e){te(e)||(e=String(e));let t=M(this);return wt(t,`has`,e),t.hasOwnProperty(e)}var Ht=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t===`__v_skip`)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if(t===`__v_isReactive`)return!r;if(t===`__v_isReadonly`)return r;if(t===`__v_isShallow`)return i;if(t===`__v_raw`)return n===(r?i?ln:cn:i?sn:on).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=x(e);if(!r){let e;if(a&&(e=jt[t]))return e;if(t===`hasOwnProperty`)return Vt}let o=Reflect.get(e,t,Cn(e)?e:n);if((te(t)?Bt.has(t):zt(t))||(r||wt(e,`get`,t),i))return o;if(Cn(o)){let e=a&&se(t)?o:o.value;return r&&D(e)?pn(e):e}return D(o)?r?pn(o):dn(o):o}},Ut=class extends Ht{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=x(e)&&se(t);if(!this._isShallow){let e=_n(i);if(!vn(n)&&!_n(n)&&(i=M(i),n=M(n)),!a&&Cn(i)&&!Cn(n))return e||(i.value=n),!0}let o=a?Number(t)<e.length:b(e,t),s=Reflect.set(e,t,n,Cn(e)?e:r);return e===M(r)&&s&&(o?ge(n,i)&&Tt(e,`set`,t,n,i):Tt(e,`add`,t,n)),s}deleteProperty(e,t){let n=b(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&Tt(e,`delete`,t,void 0,r),i}has(e,t){let n=Reflect.has(e,t);return te(t)&&Bt.has(t)||wt(e,`has`,t),n}ownKeys(e){return wt(e,`iterate`,x(e)?`length`:xt),Reflect.ownKeys(e)}},Wt=class extends Ht{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},Gt=new Ut,Kt=new Wt,qt=new Ut(!0),Jt=new Wt(!0),Yt=e=>e,Xt=e=>Reflect.getPrototypeOf(e);function Zt(e,t,n){return function(...r){let i=this.__v_raw,a=M(i),o=S(a),s=e===`entries`||e===Symbol.iterator&&o,c=e===`keys`&&o,l=i[e](...r),u=n?Yt:t?Sn:xn;return!t&&wt(a,`iterate`,c?St:xt),_(Object.create(l),{next(){let{value:e,done:t}=l.next();return t?{value:e,done:t}:{value:s?[u(e[0]),u(e[1])]:u(e),done:t}}})}}function Qt(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function $t(e,t){let n={get(n){let r=this.__v_raw,i=M(r),a=M(n);e||(ge(n,a)&&wt(i,`get`,n),wt(i,`get`,a));let{has:o}=Xt(i),s=t?Yt:e?Sn:xn;if(o.call(i,n))return s(r.get(n));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(n)},get size(){let t=this.__v_raw;return!e&&wt(M(t),`iterate`,xt),t.size},has(t){let n=this.__v_raw,r=M(n),i=M(t);return e||(ge(t,i)&&wt(r,`has`,t),wt(r,`has`,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,o=M(a),s=t?Yt:e?Sn:xn;return!e&&wt(o,`iterate`,xt),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return _(n,e?{add:Qt(`add`),set:Qt(`set`),delete:Qt(`delete`),clear:Qt(`clear`)}:{add(e){let n=M(this),r=Xt(n),i=M(e),a=!t&&!vn(e)&&!_n(e)?i:e;return r.has.call(n,a)||ge(e,a)&&r.has.call(n,e)||ge(i,a)&&r.has.call(n,i)||(n.add(a),Tt(n,`add`,a,a)),this},set(e,n){t||vn(n)||_n(n)||(n=M(n));let r=M(this),{has:i,get:a}=Xt(r),o=i.call(r,e);o||=(e=M(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?ge(n,s)&&Tt(r,`set`,e,n,s):Tt(r,`add`,e,n),this},delete(e){let t=M(this),{has:n,get:r}=Xt(t),i=n.call(t,e);i||=(e=M(e),n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&Tt(t,`delete`,e,void 0,a),o},clear(){let e=M(this),t=e.size!==0,n=e.clear();return t&&Tt(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=Zt(r,e,t)}),n}function en(e,t){let n=$t(e,t);return(r,i,a)=>i===`__v_isReactive`?!e:i===`__v_isReadonly`?e:i===`__v_isShallow`?t:i===`__v_raw`?r:Reflect.get(b(n,i)&&i in r?n:r,i,a)}var tn={get:en(!1,!1)},nn={get:en(!1,!0)},rn={get:en(!0,!1)},an={get:en(!0,!0)},on=new WeakMap,sn=new WeakMap,cn=new WeakMap,ln=new WeakMap;function un(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function dn(e){return _n(e)?e:hn(e,!1,Gt,tn,on)}function fn(e){return hn(e,!1,qt,nn,sn)}function pn(e){return hn(e,!0,Kt,rn,cn)}function mn(e){return hn(e,!0,Jt,an,ln)}function hn(e,t,n,r,i){if(!D(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let a=i.get(e);if(a)return a;let o=un(ae(e));if(o===0)return e;let s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function gn(e){return _n(e)?gn(e.__v_raw):!!(e&&e.__v_isReactive)}function _n(e){return!!(e&&e.__v_isReadonly)}function vn(e){return!!(e&&e.__v_isShallow)}function yn(e){return e?!!e.__v_raw:!1}function M(e){let t=e&&e.__v_raw;return t?M(t):e}function bn(e){return!b(e,`__v_skip`)&&Object.isExtensible(e)&&ve(e,`__v_skip`,!0),e}var xn=e=>D(e)?dn(e):e,Sn=e=>D(e)?pn(e):e;function Cn(e){return e?e.__v_isRef===!0:!1}function N(e){return Tn(e,!1)}function wn(e){return Tn(e,!0)}function Tn(e,t){return Cn(e)?e:new En(e,t)}var En=class{constructor(e,t){this.dep=new vt,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:M(e),this._value=t?e:xn(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||vn(e)||_n(e);e=n?e:M(e),ge(e,t)&&(this._rawValue=e,this._value=n?e:xn(e),this.dep.trigger())}};function Dn(e){e.dep&&e.dep.trigger()}function P(e){return Cn(e)?e.value:e}function On(e){return T(e)?e():P(e)}var kn={get:(e,t,n)=>t===`__v_raw`?e:P(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return Cn(i)&&!Cn(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function An(e){return gn(e)?e:new Proxy(e,kn)}var jn=class{constructor(e){this.__v_isRef=!0,this._value=void 0;let t=this.dep=new vt,{get:n,set:r}=e(t.track.bind(t),t.trigger.bind(t));this._get=n,this._set=r}get value(){return this._value=this._get()}set value(e){this._set(e)}};function Mn(e){return new jn(e)}function Nn(e){let t=x(e)?Array(e.length):{};for(let n in e)t[n]=Ln(e,n);return t}var Pn=class{constructor(e,t,n){this._object=e,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=te(t)?t:String(t),this._raw=M(e);let r=!0,i=e;if(!x(e)||te(this._key)||!se(this._key))do r=!yn(i)||vn(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let e=this._object[this._key];return this._shallow&&(e=P(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&Cn(this._raw[this._key])){let t=this._object[this._key];if(Cn(t)){t.value=e;return}}this._object[this._key]=e}get dep(){return Et(this._raw,this._key)}},Fn=class{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}};function In(e,t,n){return Cn(e)?e:T(e)?new Fn(e):D(e)&&arguments.length>1?Ln(e,t,n):N(e)}function Ln(e,t,n){return new Pn(e,t,n)}var Rn=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new vt(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=gt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&Je!==this)return et(this,!0),!0}get value(){let e=this.dep.track();return ot(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function zn(e,t,n=!1){let r,i;return T(e)?r=e:(r=e.get,i=e.set),new Rn(r,i,n)}var Bn={GET:`get`,HAS:`has`,ITERATE:`iterate`},Vn={SET:`set`,ADD:`add`,DELETE:`delete`,CLEAR:`clear`},Hn={},Un=new WeakMap,Wn=void 0;function Gn(){return Wn}function Kn(e,t=!1,n=Wn){if(n){let t=Un.get(n);t||Un.set(n,t=[]),t.push(e)}}function qn(e,t,n=d){let{immediate:r,deep:i,once:a,scheduler:o,augmentJob:s,call:c,onStop:l}=n,u=e=>i?e:vn(e)||i===!1||i===0?Jn(e,1):Jn(e),f,m,h,g,_=!1,y=!1;if(Cn(e)?(m=()=>e.value,_=vn(e)):gn(e)?(m=()=>u(e),_=!0):x(e)?(y=!0,_=e.some(e=>gn(e)||vn(e)),m=()=>e.map(e=>{if(Cn(e))return e.value;if(gn(e))return u(e);if(T(e))return c?c(e,2):e()})):m=T(e)?t?c?()=>c(e,2):e:()=>{if(h){pt();try{h()}finally{mt()}}let t=Wn;Wn=f;try{return c?c(e,3,[g]):e(g)}finally{Wn=t}}:p,t&&i){let e=m,t=i===!0?1/0:i;m=()=>Jn(e(),y?t+1:t)}let b=Ke(),S=()=>{f.stop(),b&&b.active&&v(b.effects,f)},C=!1;if(a&&t){let e=t;t=(...t)=>{C=!0;try{return e(...t)}finally{S()}}}let w=y?Array(e.length).fill(Hn):Hn,ee=e=>{if(!C&&f.flags&1&&(f.dirty||e)){if(t){let n=f.run();if(e||i||_||(y?n.some((e,t)=>ge(e,w[t])):ge(n,w))){let e=Wn;pt();try{h&&h(),Wn=f;let e=[n,w===Hn?void 0:y&&w[0]===Hn?[]:w,g];w=n,c?c(t,3,e):t(...e)}finally{Wn=e,mt()}}}else f.run()}};return s&&s(ee),f=new Xe(m),f.scheduler=o?()=>o(ee,!1):ee,g=e=>Kn(e,!1,f),h=f.onStop=()=>{let e=Un.get(f);if(e){if(c)c(e,4);else for(let t of e)t();Un.delete(f)}},l&&(f.onStop=()=>{h(),l()}),t?r?ee(!0):w=f.run():o?o(ee.bind(null,!0),!0):f.run(),S.pause=f.pause.bind(f),S.resume=f.resume.bind(f),S.stop=S,S}function Jn(e,t=1/0,n){if(t<=0||!D(e)||e.__v_skip||(n||=new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Cn(e))Jn(e.value,t,n);else if(x(e)){if(gn(e)&&!_n(e)&&!vn(e)){let r=M(e);wt(r,`iterate`,Ct);for(let e=0;e<r.length;e++){let i=r[e];Jn(Cn(i)?i:xn(i),t,n)}}else for(let r=0;r<e.length;r++)Jn(e[r],t,n)}else if(C(e)||S(e))e.forEach(e=>{Jn(e,t,n)});else if(oe(e)){for(let r in e)Jn(e[r],t,n);let r=M(e);for(let i of Object.getOwnPropertySymbols(r))Object.prototype.propertyIsEnumerable.call(r,i)&&Jn(e[i],t,n)}return e}var Yn=[];function Xn(e){Yn.push(e)}function Zn(){Yn.pop()}function Qn(e,t){}var $n={SETUP_FUNCTION:0,0:`SETUP_FUNCTION`,RENDER_FUNCTION:1,1:`RENDER_FUNCTION`,NATIVE_EVENT_HANDLER:5,5:`NATIVE_EVENT_HANDLER`,COMPONENT_EVENT_HANDLER:6,6:`COMPONENT_EVENT_HANDLER`,VNODE_HOOK:7,7:`VNODE_HOOK`,DIRECTIVE_HOOK:8,8:`DIRECTIVE_HOOK`,TRANSITION_HOOK:9,9:`TRANSITION_HOOK`,APP_ERROR_HANDLER:10,10:`APP_ERROR_HANDLER`,APP_WARN_HANDLER:11,11:`APP_WARN_HANDLER`,FUNCTION_REF:12,12:`FUNCTION_REF`,ASYNC_COMPONENT_LOADER:13,13:`ASYNC_COMPONENT_LOADER`,SCHEDULER:14,14:`SCHEDULER`,COMPONENT_UPDATE:15,15:`COMPONENT_UPDATE`,APP_UNMOUNT_CLEANUP:16,16:`APP_UNMOUNT_CLEANUP`},er={sp:`serverPrefetch hook`,bc:`beforeCreate hook`,c:`created hook`,bm:`beforeMount hook`,m:`mounted hook`,bu:`beforeUpdate hook`,u:`updated`,bum:`beforeUnmount hook`,um:`unmounted hook`,a:`activated hook`,da:`deactivated hook`,ec:`errorCaptured hook`,rtc:`renderTracked hook`,rtg:`renderTriggered hook`,0:`setup function`,1:`render function`,2:`watcher getter`,3:`watcher callback`,4:`watcher cleanup function`,5:`native event handler`,6:`component event handler`,7:`vnode hook`,8:`directive hook`,9:`transition hook`,10:`app errorHandler`,11:`app warnHandler`,12:`ref function`,13:`async component loader`,14:`scheduler flush`,15:`component update`,16:`app unmount cleanup function`};function tr(e,t,n,r){try{return r?e(...r):e()}catch(e){rr(e,t,n)}}function nr(e,t,n,r){if(T(e)){let i=tr(e,t,n,r);return i&&ne(i)&&i.catch(e=>{rr(e,t,n,void 0,!0)}),i}if(x(e)){let i=[];for(let a=0;a<e.length;a++)i.push(nr(e[a],t,n,r));return i}}function rr(e,t,n,r=!0,i=!1){let a=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:s}=t&&t.appContext.config||d;if(t){let r=t.parent,a=t.proxy,s=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){let t=r.ec;if(t&&!r.isUnmounted&&(!i||r.scope.active)){for(let n=0;n<t.length;n++)if(t[n](e,a,s)===!1)return}r=r.parent}if(o){pt(),tr(o,null,10,[e,a,s]),mt();return}}ir(e,n,a,r,s)}function ir(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}var ar=[],or=-1,sr=[],cr=null,lr=0,ur=Promise.resolve(),dr=null;function fr(e){let t=dr||ur;return e?t.then(this?e.bind(this):e):t}function pr(e){let t=or+1,n=ar.length;for(;t<n;){let r=t+n>>>1,i=ar[r],a=xr(i);a<e||a===e&&i.flags&2?t=r+1:n=r}return t}function mr(e){if(!(e.flags&1)){let t=xr(e),n=ar[ar.length-1];!n||!(e.flags&2)&&t>=xr(n)?ar.push(e):ar.splice(pr(t),0,e),e.flags|=1,hr()}}function hr(){dr||=ur.then(Sr)}function gr(e){if(!x(e))cr&&e.id===-1?cr.splice(lr+1,0,e):e.flags&1||(sr.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)sr.push(e[t]);hr()}function _r(e,t,n,r=or+1){for(;r<ar.length;r++){let n=ar[r];if(n&&n.flags&2){if(e&&n.id!==e.uid||t!==void 0&&!(n.id>=t))continue;ar.splice(r,1),r=e?r-1:or,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function vr(e,t,n=0){if(sr.length){let e=sr,r=0;if(t){e=[];for(let i=0;i<sr.length;i++){let a=sr[i];(a.i===void 0?t.has(a):!a.i||a.i.uid<n)?sr[r++]=a:e.push(a)}}let i=[...new Set(e)].sort((e,t)=>xr(e)-xr(t));if(sr.length=r,cr){for(let e=0;e<i.length;e++)cr.push(i[e]);return}for(cr=i,lr=0;lr<cr.length;lr++){let e=cr[lr];e.flags&4&&(e.flags&=-2),e.flags&8||e(),e.flags&=-2}cr=null,lr=0}}var yr=!1;function br(e,t){if(yr){e();return}let n=t===void 0?void 0:new Set(sr);e(),yr=!0;try{_r(void 0,t),vr(void 0,n,t)}finally{yr=!1}}var xr=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Sr(e){try{for(or=0;or<ar.length;or++){let e=ar[or];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),tr(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;or<ar.length;or++){let e=ar[or];e&&(e.flags&=-2)}or=-1,ar.length=0,vr(e),dr=null,(ar.length||sr.length)&&Sr(e)}}var Cr,wr=[];function Tr(e,t){Cr=e,Cr?(Cr.enabled=!0,wr.forEach(({event:e,args:t})=>Cr.emit(e,...t)),wr=[]):typeof window<`u`&&window.HTMLElement&&!(window.navigator?.userAgent)?.includes(`jsdom`)?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(e=>{Tr(e,t)}),setTimeout(()=>{Cr||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,wr=[])},3e3)):wr=[]}var Er=null,Dr=null;function Or(e){let t=Er;return Er=e,Dr=e&&e.type.__scopeId||null,t}function kr(e){Dr=e}function Ar(){Dr=null}var jr=e=>F;function F(e,t=Er,n){if(!t||e._n)return e;let r=(...n)=>{r._d&&Ns(-1);let i=Or(t),a=ks.length,o;try{o=e(...n)}finally{for(let e=ks.length;e>a;e--)js();Or(i),r._d&&Ns(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function I(e,t){if(Er===null)return e;let n=vc(Er),r=e.dirs||=[];for(let e=0;e<t.length;e++){let[i,a,o,s=d]=t[e];i&&(T(i)&&(i={mounted:i,updated:i}),i.deep&&Jn(a),r.push({dir:i,instance:n,value:a,oldValue:void 0,arg:o,modifiers:s}))}return e}function Mr(e,t,n,r){let i=e;if(r===`beforeMount`)e._mount=e;else if(r===`beforeUpdate`){let n=t&&t._mount;n&&(n._latest=e,e._mount=n)}else if(r===`mounted`){let t=e._latest;e._mount=e._latest=void 0,t&&(i=t,t._mount=void 0)}let a=i.dirs,o=t&&t.dirs;for(let s=0;s<a.length;s++){let c=a[s];o?c.oldValue=o[s].value:r===`mounted`&&c.oldValue!==void 0&&(c=_({},c,{oldValue:void 0}));let l=c.dir[r];l&&(pt(),nr(l,n,8,[e.el,c,i,t]),mt())}}function Nr(e,t){if($s){let n=$s.provides,r=$s.parent&&$s.parent.provides;r===n&&(n=$s.provides=Object.create(r)),n[e]=t}}function Pr(e,t,n=!1){let r=ec();if(r||vo){let i=vo?vo._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&T(t)?t.call(r&&r.proxy):t}}function Fr(){return!!(ec()||vo)}var Ir=Symbol.for(`v-scx`),Lr=()=>Pr(Ir);function Rr(e,t){return Hr(e,null,t)}function zr(e,t){return Hr(e,null,{flush:`post`})}function Br(e,t){return Hr(e,null,{flush:`sync`})}function Vr(e,t,n){return Hr(e,t,n)}function Hr(e,t,n=d){let{immediate:r,deep:i,flush:a,once:o}=n,s=_({},n),c=t&&r||!t&&a!==`post`,l;if(oc){if(a===`sync`){let e=Lr();l=e.__watcherHandles||=[]}else if(!c){let e=()=>{};return e.stop=p,e.resume=p,e.pause=p,e}}let u=$s,f;if(u&&Ke()!==u.scope){if(u.scope.active){let e=u.scope.run(()=>new We);e.run(()=>qe(()=>Promise.resolve().then(()=>{u=null,f&&(f.i=null)}))),s.onStop=()=>e.stop()}else u=null}s.call=(e,t,n)=>nr(e,u,t,n);let m=!1;a===`post`?s.scheduler=e=>{e.i=u,Zo(e,u&&u.suspense)}:a!==`sync`&&(m=!0,s.scheduler=(e,t)=>{t?e():mr(e)}),s.augmentJob=e=>{f=e,t&&(e.flags|=4),m&&(e.flags|=2,u&&(e.id=u.uid,e.i=u))};let h=qn(e,t,s);return oc&&(l?l.push(h):c&&h()),h}function Ur(e,t,n){let r=this.proxy,i=E(e)?e.includes(`.`)?Wr(r,e):()=>r[e]:e.bind(r,r),a;T(t)?a=t:(a=t.handler,n=t);let o=rc(this),s=Hr(i,a.bind(r),n);return o(),s}function Wr(e,t){let n=t.split(`.`);return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}var Gr=new WeakMap,Kr=Symbol(`_vte`),qr=e=>e.__isTeleport,Jr=e=>e&&(e.disabled||e.disabled===``),Yr=e=>e&&(e.defer||e.defer===``),Xr=e=>typeof SVGElement<`u`&&e instanceof SVGElement,Zr=e=>typeof MathMLElement==`function`&&e instanceof MathMLElement,Qr=(e,t)=>{let n=e&&e.to;return E(n)?t?t(n):null:n},$r={name:`Teleport`,__isTeleport:!0,process(e,t,n,r,i,a,o,s,c,l){let{mc:u,pc:d,pbc:f,o:{insert:p,querySelector:m,createText:h,createComment:g,parentNode:_}}=l,v=Jr(t.props),{dynamicChildren:y}=t,b=(e,t,n)=>{e.shapeFlag&16&&u(e.children,t,n,i,a,o,s,c)},x=(e=t)=>{let n=Jr(e.props),r=e.target=Qr(e.props,m),a=ii(r,e,h,p);r&&(o!==`svg`&&Xr(r)?o=`svg`:o!==`mathml`&&Zr(r)&&(o=`mathml`),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(r),n||(b(e,r,a),ri(e,!1)))},S=e=>{let t=()=>{if(Gr.get(e)===t){if(Gr.delete(e),Jr(e.props)){let t=_(e.el)||n;b(e,t,e.anchor),ri(e,!0)}x(e)}};Gr.set(e,t),Zo(t,a)};if(e==null){let e=t.el=h(``),i=t.anchor=h(``);if(p(e,n,r),p(i,n,r),Yr(t.props)||a&&a.pendingBranch){S(t);return}v&&(b(t,n,i),ri(t,!0)),x()}else{t.el=e.el;let r=t.anchor=e.anchor,u=Gr.get(e);if(u){u.flags|=8,Gr.delete(e),S(t);return}t.targetStart=e.targetStart;let p=t.target=e.target,h=t.targetAnchor=e.targetAnchor,g=Jr(e.props),_=g?n:p,b=g?r:h;if(o===`svg`||Xr(p)?o=`svg`:(o===`mathml`||Zr(p))&&(o=`mathml`),y?(f(e.dynamicChildren,y,_,i,a,o,s),is(e,t,!0)):c||d(e,t,_,b,i,a,o,s,!1),v)g?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):ei(t,n,r,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){let e=Qr(t.props,m);e&&(t.target=e,ei(t,e,null,l,0))}else g&&ei(t,p,h,l,1);ri(t,v)}},remove(e,t,n,{um:r,o:{remove:i}},a){let{shapeFlag:o,children:s,anchor:c,targetStart:l,targetAnchor:u,target:d,props:f}=e,p=Jr(f),m=a||!p,h=Gr.get(e);if(h&&(h.flags|=8,Gr.delete(e)),d&&(i(l),i(u)),a&&i(c),!h&&(p||d)&&o&16)for(let e=0;e<s.length;e++){let i=s[e];r(i,t,n,m,!!i.dynamicChildren)}},move:ei,hydrate:ti};function ei(e,t,n,{o:{insert:r},m:i},a=2){a===0&&(e.targetStart&&r(e.targetStart,t,n),r(e.targetAnchor,t,n),n=e.targetAnchor);let{el:o,anchor:s,shapeFlag:c,children:l,props:u}=e,d=a===2;if(d&&r(o,t,n),!Gr.has(e)&&(!d||Jr(u))&&c&16)for(let e=0;e<l.length;e++)i(l[e],t,n,2);d&&r(s,t,n)}function ti(e,t,n,r,i,a,{o:{nextSibling:o,parentNode:s,querySelector:c,insert:l,createText:u}},d){function f(e,n){let r=n;for(;r;){if(r&&r.nodeType===8){if(r.data===`teleport start anchor`)t.targetStart=r;else if(r.data===`teleport anchor`){t.targetAnchor=r,e._lpa=t.targetAnchor&&o(t.targetAnchor);break}}r=o(r)}}function p(e,t){t.anchor=d(o(e),t,s(e),n,r,i,a)}let m=t.target=Qr(t.props,c),h=Jr(t.props);if(m){let c=m._lpa||m.firstChild;if(t.shapeFlag&16){if(h)f(m,c),p(e,t),t.targetAnchor||ii(m,t,u,l,s(e)===m?e:null);else{t.anchor=o(e),f(m,c);let s=!!t.targetAnchor;s||ii(m,t,u,l),d(s?c&&o(c):null,t,m,n,r,i,a,t.targetAnchor)}}ri(t,h)}else h&&t.shapeFlag&16&&(p(e,t),t.targetStart=e,t.targetAnchor=o(e));return t.anchor&&o(t.anchor)}var ni=$r;function ri(e,t){let n=e.ctx;n&&n.ut&&(t?n.ut(e.el,e.anchor):n.ut(e.targetStart,e.targetAnchor))}function ii(e,t,n,r,i=null){let a=t.targetStart=n(``),o=t.targetAnchor=n(``);return a[Kr]=o,e&&(r(a,e,i),r(o,e,i)),o}var ai=Symbol(`_leaveCb`),oi=Symbol(`_enterCb`);function si(){let e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return fa(()=>{e.isMounted=!0}),ha(()=>{e.isUnmounting=!0}),e}var ci=[Function,Array],li={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ci,onEnter:ci,onAfterEnter:ci,onEnterCancelled:ci,onBeforeLeave:ci,onLeave:ci,onAfterLeave:ci,onLeaveCancelled:ci,onBeforeAppear:ci,onAppear:ci,onAfterAppear:ci,onAppearCancelled:ci},ui={name:`BaseTransition`,props:li,setup(e,{slots:t}){let n=ec(),r=si();return()=>{let i=t.default&&vi(t.default(),!0),a=i&&i.length?di(i):n.subTree?K():void 0;if(!a)return;let o=M(e),{mode:s}=o;if(r.isLeaving)return hi(a);let c=gi(a);if(!c)return hi(a);let l=mi(c,o,r,n);c.type!==Ds&&_i(c,l);let u=n.subTree&&gi(n.subTree);if(u&&u.type!==Ds&&!Is(u,c)&&yi(n.subTree)){let e=mi(u,o,r,n);if(_i(u,e),s===`out-in`&&c.type!==Ds)return r.isLeaving=!0,e.afterLeave=()=>{if(r.isLeaving=!1,!(n.job.flags&8)){if(n.effect.flags&2){let e=()=>{n.job.flags&8||n.update()};e.i=n,mr(e)}else n.update()}delete e.afterLeave,u=void 0},hi(a);s===`in-out`&&c.type!==Ds?e.delayLeave=(t,n,i)=>{let a=pi(r,u);a[String(u.key)]=u,t[ai]=()=>{n(),t[ai]=void 0,delete l.delayedLeave,delete e.delayLeave,u=void 0},l.delayedLeave=()=>{i(),delete l.delayedLeave,delete e.delayLeave,u=void 0}}:u=void 0}else u&&=void 0;return a}}};function di(e){let t=e[0];if(e.length>1){for(let n of e)if(n.type!==Ds){t=n;break}}return t}var fi=ui;function pi(e,t){let{leavingVNodes:n}=e,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function mi(e,t,n,r){let{appear:i,mode:a,persisted:o=!1,onBeforeEnter:s,onEnter:c,onAfterEnter:l,onEnterCancelled:u,onBeforeLeave:d,onLeave:f,onAfterLeave:p,onLeaveCancelled:m,onBeforeAppear:h,onAppear:g,onAfterAppear:_,onAppearCancelled:v}=t,y=String(e.key),b=pi(n,e),S=(e,t)=>{e&&nr(e,r,9,t)},C=(e,t)=>{let n=t[1];S(e,t),x(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},w={mode:a,persisted:o,beforeEnter(t){let r=s;if(!n.isMounted){if(i)r=h||s;else return}t[ai]&&t[ai](!0);let a=b[y];if(a&&Is(e,a)){let e=a.el[ai];if(!e){let t=yi(a);e=t&&t.el[ai]}e&&e()}S(r,[t])},enter(e){if(e[ai]){w.delayedLeave&&w.delayedLeave();return}let t=c,r=l,a=u;if(!n.isMounted){if(i)t=g||c,r=_||l,a=v||u;else return}let o=!1;e[oi]=t=>{o||(o=!0,S(t?a:r,[e]),w.delayedLeave&&w.delayedLeave(),e[oi]=void 0)};let s=e[oi].bind(null,!1);t?C(t,[e,s]):s()},leave(t,r){let i=String(e.key);if(t[oi]&&t[oi](!0),n.isUnmounting)return r();S(d,[t]);let a=!1;t[ai]=n=>{a||(a=!0,r(),S(n?m:p,[t]),t[ai]=void 0,b[i]===e&&delete b[i])};let o=t[ai].bind(null,!1);b[i]=e,f?C(f,[t,o]):o()},clone(e){let i=mi(e,t,n,r);return i.afterLeave=()=>{w.afterLeave&&w.afterLeave()},i.delayLeave=(e,t,n)=>{w.delayLeave?w.delayLeave(e,t,n):n()},i.delayedLeave=()=>{w.delayedLeave&&w.delayedLeave()},i}};return w}function hi(e){if(ea(e))return e=Hs(e),e.children=null,e}function gi(e){if(!ea(e))return qr(e.type)&&e.children?di(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&T(n.default))return n.default()}}function _i(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;let n=e.component.subTree;_i(qr(n.type)&&gi(n)||n,t)}else if(e.shapeFlag&128){let n=e.suspense;if(n){let e=n.isHydrating?n.pendingBranch:n.activeBranch;e&&_i(e,t.clone(e))}else e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)}else if(e.transition=t,e.type===z&&x(e.children)){let n=Eo(e.children,!1);n&&_i(n,t)}}function vi(e,t=!1,n){let r=[],i=0;for(let a=0;a<e.length;a++){let o=e[a],s=n==null?o.key:String(n)+String(o.key==null?a:o.key);o.type===z?(o.patchFlag&128&&i++,r=r.concat(vi(o.children,t,s))):(t||o.type!==Ds)&&r.push(s==null?o:Hs(o,{key:s}))}if(i>1)for(let e=0;e<r.length;e++)r[e].patchFlag=-2;return r}function yi(e){if(e.component)return yi(e.component.subTree);if(e.type===z){let t=x(e.children)&&Eo(e.children,!1);return t?yi(t):void 0}if(e.type!==Ds)return e}function L(e,t){return T(e)?_({name:e.name},t,{setup:e}):e}function bi(){let e=ec();return e?(e.appContext.config.idPrefix||`v`)+`-`+e.ids[0]+e.ids[1]++:``}function xi(e){e.ids=[e.ids[0]+e.ids[2]+++`-`,0,0]}function Si(e){let t=ec(),n=wn(null);if(t){let r=t.refs===d?t.refs={}:t.refs;Object.defineProperty(r,e,{enumerable:!0,get:()=>n.value,set:e=>n.value=e})}return n}function Ci(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}var wi=new WeakMap;function Ti(e,t,n,r,i=!1){if(x(e)){e.forEach((e,a)=>Ti(e,t&&(x(t)?t[a]:t),n,r,i));return}if(Zi(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Ti(e,t,n,r.component.subTree);return}let a=r.shapeFlag&4?vc(r.component):r.el,o=i?null:a,{i:s,r:c}=e,l=t&&t.r,u=s.refs===d?s.refs={}:s.refs,f=s.setupState,p=M(f),h=f===d?m:e=>!Ci(u,e)&&b(p,e),g=(e,t)=>!(t&&Ci(u,t));if(l!=null&&l!==c){if(Ei(t),E(l))u[l]=null,h(l)&&(f[l]=null);else if(Cn(l)){let e=t;g(l,e.k)&&(l.value=null),e.k&&(u[e.k]=null)}}if(T(c))tr(c,s,12,[o,u]);else{let t=E(c),r=Cn(c);if(t||r){let s=()=>{if(e.f){let n=t?h(c)?f[c]:u[c]:g(c)||!e.k?c.value:u[e.k];if(i)x(n)&&v(n,a);else if(x(n))n.includes(a)||n.push(a);else if(t)u[c]=[a],h(c)&&(f[c]=u[c]);else{let t=[a];g(c,e.k)&&(c.value=t),e.k&&(u[e.k]=t)}}else t?(u[c]=o,h(c)&&(f[c]=o)):r&&(g(c,e.k)&&(c.value=o),e.k&&(u[e.k]=o))};if(o){let t=()=>{s(),wi.delete(e)};t.id=-1,wi.set(e,t),Zo(t,n)}else Ei(e),s()}}}function Ei(e){let t=wi.get(e);t&&(t.flags|=8,wi.delete(e))}var Di=!1,Oi=()=>{Di||=(console.error(`Hydration completed but contains mismatches.`),!0)},ki=e=>e.namespaceURI.includes(`svg`)&&e.tagName!==`foreignObject`,Ai=e=>e.namespaceURI.includes(`MathML`),ji=e=>{if(e.nodeType===1){if(ki(e))return`svg`;if(Ai(e))return`mathml`}},Mi=e=>e.nodeType===8;function Ni(e){let{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:a,parentNode:o,remove:s,insert:c,createComment:l}}=e,u=(e,t)=>{t.hasChildNodes()?(d(t.firstChild,e,null,null,null),vr(),t._vnode=e):(n(null,e,t),vr(),t._vnode=e)},d=(n,r,s,l,u,h=!1)=>{h||=!!r.dynamicChildren;let b=Mi(n)&&n.data===`[`,x=()=>g(n,r,s,l,u,b),{type:S,ref:C,shapeFlag:w,patchFlag:ee}=r,T=n.nodeType;r.el=n,ee===-2&&(h=!1,r.dynamicChildren=null);let E=null;switch(S){case Es:T===3?(n.data!==r.children&&(Oi(),n.data=r.children),E=a(n)):r.children===``?(c(r.el=i(``),o(n),n),E=n):E=x();break;case Ds:y(n)?(E=a(n),v(r.el=n.content.firstChild,n,s)):E=T!==8||b?x():a(n);break;case Os:if(b&&(n=a(n),T=n.nodeType),T===1||T===3){E=n;let e=!r.children.length;for(let t=0;t<r.staticCount;t++)e&&(r.children+=E.nodeType===1?E.outerHTML:E.data),t===r.staticCount-1&&(r.anchor=E),E=a(E);return b?a(E):E}E=x();break;case z:E=b?m(n,r,s,l,u,h):x();break;default:if(w&1)E=(T!==1||r.type.toLowerCase()!==n.tagName.toLowerCase())&&!y(n)?x():f(n,r,s,l,u,h);else if(w&6){r.slotScopeIds=u;let e=o(n);if(E=b?_(n):Mi(n)&&n.data===`teleport start`?_(n,n.data,`teleport end`):a(n),t(r,e,null,s,l,ji(e),h),(Zi(r)||r.component.asyncDep)&&!r.component.subTree){let t;b?(t=W(Os),t.anchor=E?E.previousSibling:e.lastChild):t=n.nodeType===3?G(``):W(n.nodeType===8?Ds:`div`),t.el=n,r.component.subTree=t}}else w&64?E=T===8?r.type.hydrate(n,r,s,l,u,h,e,p):x():w&128&&(E=r.type.hydrate(n,r,s,l,ji(o(n)),u,h,e,d))}return C!=null&&Ti(C,null,l,r),E},f=(e,t,n,i,a,o)=>{o||=!!t.dynamicChildren;let{type:c,dynamicProps:l,props:u,patchFlag:d,shapeFlag:f,dirs:m,transition:g}=t,_=c===`input`||c===`option`,b=!!l;if(_||b||d!==-1||g&&c!==`template`&&y(e)){m&&Mr(t,null,n,`created`);let c=!1;if(y(e)){c=rs(null,g)&&n&&n.vnode.props&&n.vnode.props.appear;let r=e.content.firstChild;if(c){let e=r.getAttribute(`class`);e&&(r.$cls=e),g.beforeEnter(r)}v(r,e,n),t.el=e=r}if(f&16&&!(u&&(u.innerHTML||u.textContent))){let r=p(e.firstChild,t,e,n,i,a,o);for(r&&!Ri(e,1)&&Oi();r;){let e=r;r=r.nextSibling,s(e)}}else if(f&8){let n=t.children;n[0]===`
|
||
`&&(e.tagName===`PRE`||e.tagName===`TEXTAREA`)&&(n=n.slice(1));let{textContent:r}=e;r!==n&&r!==n.replace(/\r\n|\r/g,`
|
||
`)&&(Ri(e,0)||Oi(),e.textContent=t.children)}if(u){if(_||b||!o||d&48){let t=e.tagName.includes(`-`),i=e.namespaceURI.includes(`svg`)?`svg`:e.namespaceURI.includes(`MathML`)?`mathml`:void 0;for(let a in u)if(_&&(a.endsWith(`value`)||a===`indeterminate`)||h(a)&&!ce(a)||a[0]===`.`||t&&!ce(a)||l&&l.includes(a)){if(Fi(e,a,u[a]))continue;r(e,a,null,u[a],i,n)}}else if(u.onClick)r(e,`onClick`,null,u.onClick,void 0,n);else if(d&4&&gn(u.style))for(let e in u.style)u.style[e]}let x;(x=u&&u.onVnodeBeforeMount)&&Js(x,n,t),m&&Mr(t,null,n,`beforeMount`),((x=u&&u.onVnodeMounted)||m||c)&&Cs(()=>{x&&Js(x,n,t),c&&g.enter(e),m&&Mr(t,null,n,`mounted`)},i)}return e.nextSibling},p=(e,t,r,o,s,l,u,f)=>{u||=!!t.dynamicChildren;let p=t.children,m=p.length,h=t.type===z,g=!1;for(let t=0;t<m;t++){let _=u?p[t]:p[t]=Ws(p[t]),v=_.type===Es;h&&e&&Mi(e)&&e.data===`]`&&(f=e),e&&e!==f?(v&&!u&&t+1<m&&Ws(p[t+1]).type===Es&&(c(i(e.data.slice(_.children.length)),r,a(e)),e.data=_.children),e=d(e,_,o,s,l,u)):v&&!_.children?c(_.el=i(``),r,f):(g||(g=!0,Ri(r,1)||Oi()),n(null,_,r,f,o,s,ji(r),l))}return e},m=(e,t,n,r,i,s)=>{let{slotScopeIds:u}=t;u&&(i=i?i.concat(u):u);let d=o(e),f=p(a(e),t,d,n,r,i,s);return f&&Mi(f)&&f.data===`]`?a(t.anchor=f):(Oi(),c(t.anchor=l(`]`),d,f),f)},g=(e,t,r,i,c,l)=>{if(Bi(e,t)||Oi(),t.el=null,l){let t=_(e);for(;;){let n=a(e);if(n&&n!==t)s(n);else break}}let u=a(e),d=o(e);return s(e),n(null,t,d,u,r,i,ji(d),c),r&&r.vnode.el===e&&(r.vnode.el=t.el,Mo(r,t.el)),u},_=(e,t=`[`,n=`]`)=>{let r=0;for(;e;)if(e=a(e),e&&Mi(e)&&(e.data===t&&r++,e.data===n)){if(r===0)return a(e);r--}return e},v=(e,t,n)=>{let r=t.parentNode;r&&r.replaceChild(e,t);let i=n;for(;i;)i.vnode.el===t&&(i.vnode.el=i.subTree.el=e),i=i.parent},y=e=>e.nodeType===1&&e.tagName===`TEMPLATE`;return[u,d]}var Pi=new Set([`src`,`srcset`,`href`,`poster`]);function Fi(e,t,n){return Pi.has(t)?e.getAttribute(t)===(n==null?null:`${n}`):!1}var Ii=`data-allow-mismatch`,Li={0:`text`,1:`children`,2:`class`,3:`style`,4:`attribute`};function Ri(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(Ii);)e=e.parentElement;return zi(e&&e.getAttribute(Ii),t)}function zi(e,t){if(e==null)return!1;if(e===``)return!0;{let n=e.split(`,`);return t===0&&n.includes(`children`)?!0:n.includes(Li[t])}}function Bi(e,t){return Ri(e.parentElement,1)||Vi(e)||Hi(t)}function Vi(e){return e.nodeType===1&&zi(e.getAttribute(Ii),1)}function Hi({props:e}){let t=e&&e[Ii];return typeof t==`string`&&zi(t,1)}var Ui=Se().requestIdleCallback||(e=>setTimeout(e,1)),Wi=Se().cancelIdleCallback||(e=>clearTimeout(e)),Gi=(e=1e4)=>t=>{let n=Ui(t,{timeout:e});return()=>Wi(n)};function Ki(e){let{top:t,left:n,bottom:r,right:i}=e.getBoundingClientRect(),{innerHeight:a,innerWidth:o}=window;return(t>0&&t<a||r>0&&r<a)&&(n>0&&n<o||i>0&&i<o)}var qi=e=>(t,n)=>{let r=new IntersectionObserver(e=>{for(let n of e)if(n.isIntersecting){r.disconnect(),t();break}},e),i=e=>{if(Ki(e))return t(),r.disconnect(),!1;if(getComputedStyle(e).display===`contents`){for(let t=0;t<e.children.length;t++)if(i(e.children[t])===!1)return!1}r.observe(e)};return n(e=>{if(e instanceof Element)return i(e)}),()=>r.disconnect()},Ji=e=>t=>{if(e){let n=matchMedia(e);if(n.matches)t();else return n.addEventListener(`change`,t,{once:!0}),()=>n.removeEventListener(`change`,t)}},Yi=(e=[])=>(t,n)=>{E(e)&&(e=[e]);let r=!1,i=e=>{r||(r=!0,a(),t(),e.target.dispatchEvent(new e.constructor(e.type,e)))},a=()=>{n(t=>{for(let n of e)t.removeEventListener(n,i)})};return n(t=>{for(let n of e)t.addEventListener(n,i,{once:!0})}),a};function Xi(e,t){if(Mi(e)&&e.data===`[`){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(Mi(r)){if(r.data===`]`){if(--n===0)break}else r.data===`[`&&n++}r=r.nextSibling}}else t(e)}var Zi=e=>!!e.type.__asyncLoader;function Qi(e){T(e)&&(e={loader:e});let{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,hydrate:a,timeout:o,suspensible:s=!0,onError:c}=e,l=null,u,d=0,f=()=>(d++,l=null,p()),p=()=>{let e;return l||(e=l=t().catch(e=>{if(e=e instanceof Error?e:Error(String(e)),c)return new Promise((t,n)=>{c(e,()=>t(f()),()=>n(e),d+1)});throw e}).then(t=>e!==l&&l?l:(t&&(t.__esModule||t[Symbol.toStringTag]===`Module`)&&(t=t.default),u=t,t)))};return L({name:`AsyncComponentWrapper`,__asyncLoader:p,__asyncHydrate(e,t,n){let r=e.isConnected,i=!1;(t.bu||=[]).push(()=>i=!0);let o=()=>{i||!e.parentNode||r&&!e.isConnected||n()},s=a?()=>{let n=a(o,t=>Xi(e,t));n&&(t.bum||=[]).push(n)}:o;u?s():p().then(()=>!t.isUnmounted&&s())},get __asyncResolved(){return u},setup(){let e=$s;if(xi(e),u)return()=>$i(u,e);let t=t=>{l=null,rr(t,e,13,!r,!0)};if(s&&e.suspense||oc)return p().then(t=>()=>$i(t,e)).catch(e=>(t(e),()=>r?W(r,{error:e}):null));let a=N(!1),c=N(),d=N(!!i),f,m;return qe(()=>{f!=null&&clearTimeout(f),m!=null&&clearTimeout(m)}),i&&(m=setTimeout(()=>{e.isUnmounted||(d.value=!1)},i)),o!=null&&(f=setTimeout(()=>{if(!e.isUnmounted&&!a.value&&!c.value){let e=Error(`Async component timed out after ${o}ms.`);t(e),c.value=e}},o)),p().then(()=>{e.isUnmounted||(a.value=!0,e.parent&&ea(e.parent.vnode)&&e.parent.update())}).catch(n=>{e.isUnmounted?l=null:(t(n),c.value=n)}),()=>{if(a.value&&u)return $i(u,e);if(c.value&&r)return W(r,{error:c.value});if(n&&!d.value)return $i(n,e)}}})}function $i(e,t){let{ref:n,props:r,children:i,ce:a}=t.vnode,o=W(e,r,i);return o.ref=n,o.ce=a,delete t.vnode.ce,o}var ea=e=>e.type.__isKeepAlive,ta={name:`KeepAlive`,__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){let n=ec(),r=n.ctx;if(!r.renderer)return()=>{let e=t.default&&t.default();return e&&e.length===1?e[0]:e};let i=new Map,a=new Set,o=null,s=n.suspense,{renderer:{p:c,m:l,um:u,o:{createElement:d}}}=r,f=d(`div`);r.activate=(e,t,n,r,i)=>{let a=e.component;l(e,t,n,0,s),c(a.vnode,e,t,n,a,s,r,e.slotScopeIds,i),Zo(()=>{a.isDeactivated=!1,a.a&&_e(a.a);let t=e.props&&e.props.onVnodeMounted;t&&Js(t,a.parent,e)},s)},r.deactivate=e=>{let t=i.get(e.key==null?e.type:e.key);if(!t||t.component!==e.component)return!1;let n=e.component;return ss(n.m),ss(n.a),l(e,f,null,1,s),Zo(()=>{n.da&&_e(n.da);let t=e.props&&e.props.onVnodeUnmounted;t&&Js(t,n.parent,e),n.isDeactivated=!0},s),!0};function p(e){sa(e),u(e,n,s,!0)}function m(e){i.forEach((t,n)=>{let r=yc(Zi(t)?t.type.__asyncResolved||{}:t.type);r&&!e(r)&&h(n)})}function h(e){let t=i.get(e);t&&(!o||!Is(t,o))?p(t):o&&(o.key==null?o.type:o.key)===e&&(sa(o),t&&sa(t)),i.delete(e),a.delete(e)}Vr(()=>[e.include,e.exclude],([e,t])=>{e&&m(t=>na(e,t)),t&&m(e=>!na(t,e))},{flush:`post`,deep:!0});let g=null,_=()=>{if(g!=null){if(ls(n.subTree.type)){let e=()=>{let e=ca(n.subTree);e.component&&i.set(g,e)};n.subTree.suspense.pendingBranch?Zo(e,n.subTree.suspense):e()}else i.set(g,ca(n.subTree))}};return fa(_),ma(_),ha(()=>{i.forEach(e=>{let{subTree:t,suspense:r}=n,i=ca(t);if(e.type===i.type&&e.key===i.key){sa(i);let e=i.component.da;e&&Zo(e,r)}else p(e)})}),()=>{if(g=null,!t.default)return o=null;let n=t.default(),r=n[0];if(n.length>1)return o=null,n;if(!Fs(r)||!(r.shapeFlag&4)&&!(r.shapeFlag&128))return o=null,r;let s=ca(r);if(s.type===Ds)return o=null,s;let c=s.type,l=yc(Zi(s)?s.type.__asyncResolved||{}:c),{include:u,exclude:d,max:f}=e;if(u&&(!l||!na(u,l))||d&&l&&na(d,l))return s.shapeFlag&=-257,o=s,r;let p=s.key==null?c:s.key,m=i.get(p);return s.el&&(s=Hs(s),r.shapeFlag&128&&(r.ssContent=s)),g=p,m?(s.el=m.el,s.component=m.component,s.transition&&_i(s,s.transition),s.shapeFlag|=512,a.delete(p),a.add(p)):(a.add(p),f&&a.size>parseInt(f,10)&&h(a.values().next().value)),s.shapeFlag|=256,o=s,ls(r.type)?r:s}}};function na(e,t){return x(e)?e.some(e=>na(e,t)):E(e)?e.split(`,`).includes(t):ee(e)?(e.lastIndex=0,e.test(t)):!1}function ra(e,t){aa(e,`a`,t)}function ia(e,t){aa(e,`da`,t)}function aa(e,t,n=$s){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(la(t,r,n),n){let e=n.parent;for(;e&&e.parent;)ea(e.parent.vnode)&&oa(r,t,n,e),e=e.parent}}function oa(e,t,n,r){let i=la(t,e,r,!0),a=la(`um`,()=>v(r[t],i),n);a.flags=16}function sa(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function ca(e){return e.shapeFlag&128?e.ssContent:e}function la(e,t,n=$s,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{pt();let i=rc(n),a=nr(t,n,e,r);return i(),mt(),a};return r?i.unshift(a):i.push(a),a}}var ua=e=>(t,n=$s)=>{oc&&e!==`sp`||la(e,(...e)=>t(...e),n)},da=ua(`bm`),fa=ua(`m`),pa=ua(`bu`),ma=ua(`u`),ha=ua(`bum`),ga=ua(`um`),_a=ua(`sp`),va=ua(`rtg`),ya=ua(`rtc`);function ba(e,t=$s){la(`ec`,e,t)}var xa=`components`,Sa=`directives`;function Ca(e,t){return Da(xa,e,!0,t)||e}var wa=Symbol.for(`v-ndc`);function Ta(e){return E(e)?Da(xa,e,!1)||e:e||wa}function Ea(e){return Da(Sa,e)}function Da(e,t,n=!0,r=!1){let i=Er||$s;if(i){let n=i.type;if(e===xa){let e=yc(n,!1);if(e&&(e===t||e===O(t)||e===me(O(t))))return n}let a=Oa(i[e]||n[e],t)||Oa(i.appContext[e],t);return!a&&r?n:a}}function Oa(e,t){return e&&(e[t]||e[O(t)]||e[me(O(t))])}function R(e,t,n,r){let i,a=n&&n[r],o=x(e);if(o||E(e)){let n=o&&gn(e),r=!1,s=!1;n&&(r=!vn(e),s=_n(e),e=Ot(e)),i=Array(e.length);for(let n=0,o=e.length;n<o;n++)i[n]=t(r?s?Sn(xn(e[n])):xn(e[n]):e[n],n,void 0,a&&a[n])}else if(typeof e==`number`){if(!Number.isInteger(e)||e<0)i=[];else{i=Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,a&&a[n])}}else if(D(e)){if(e[Symbol.iterator])i=Array.from(e,(e,n)=>t(e,n,void 0,a&&a[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,o=n.length;r<o;r++){let o=n[r];i[r]=t(e[o],o,r,a&&a[r])}}}else i=[];return n&&(n[r]=i),i}function ka(e,t){for(let n=0;n<t.length;n++){let r=t[n];if(x(r))for(let t=0;t<r.length;t++)e[r[t].name]=r[t].fn;else r&&(e[r.name]=r.key?(...e)=>{let t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e}function Aa(e,t,n,r,i,a){if(n??={},Er.ce||Er.parent&&Zi(Er.parent)&&Er.parent.ce){let e=a!=null&&n.key==null?_({},n,{key:a}):n,i=Object.keys(e).length>0;return t!=="default"&&(e.name=t),B(),H(z,null,[W(`slot`,e,r&&r())],i?-2:64)}let o=e[t];o&&o._c&&(o._d=!1);let s=ks.length;B();let c;try{let i=o&&ja(o(n)),s=n.key||a||i&&i.key;c=H(z,{key:(s&&!te(s)?s:`_${t}`)+(!i&&r?`_fb`:``)},i||(r?r():[]),i&&e._===1?64:-2)}catch(e){for(let e=ks.length;e>s;e--)js();throw e}finally{o&&o._c&&(o._d=!0)}return!i&&c.scopeId&&(c.slotScopeIds=[c.scopeId+`-s`]),c}function ja(e){return e.some(e=>!Fs(e)||!(e.type===Ds||e.type===z&&!ja(e.children)))?e:null}function Ma(e,t){let n={};for(let r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:he(r)]=e[r];return n}var Na=e=>e?ac(e)?vc(e):Na(e.parent):null,Pa=_(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=>Na(e.parent),$root:e=>Na(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>io(e),$forceUpdate:e=>e.f||=()=>{mr(e.update)},$nextTick:e=>e.n||=fr.bind(e.proxy),$watch:e=>Ur.bind(e)}),Fa=(e,t)=>e!==d&&!e.__isScriptSetup&&b(e,t),Ia={get({_:e},t){if(t===`__v_skip`)return!0;let{ctx:n,setupState:r,data:i,props:a,accessCache:o,type:s,appContext:c}=e;if(t[0]!==`$`){let e=o[t];if(e!==void 0)switch(e){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return a[t]}else if(Fa(r,t))return o[t]=1,r[t];else if(i!==d&&b(i,t))return o[t]=2,i[t];else if(b(a,t))return o[t]=3,a[t];else if(n!==d&&b(n,t))return o[t]=4,n[t];else $a&&(o[t]=0)}let l=Pa[t],u,f;if(l)return t===`$attrs`&&wt(e.attrs,`get`,``),l(e);if((u=s.__cssModules)&&(u=u[t]))return u;if(n!==d&&b(n,t))return o[t]=4,n[t];if(f=c.config.globalProperties,b(f,t))return f[t]},set({_:e},t,n){let{data:r,setupState:i,ctx:a}=e;return Fa(i,t)?(i[t]=n,!0):r!==d&&b(r,t)?(r[t]=n,!0):b(e.props,t)||t[0]===`$`&&t.slice(1)in e?!1:(a[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,props:a,type:o}},s){let c;return!!(n[s]||e!==d&&s[0]!==`$`&&b(e,s)||Fa(t,s)||b(a,s)||b(r,s)||b(Pa,s)||b(i.config.globalProperties,s)||(c=o.__cssModules)&&c[s])},defineProperty(e,t,n){return n.get==null?b(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}},La=_({},Ia,{get(e,t){if(t!==Symbol.unscopables)return Ia.get(e,t,e)},has(e,t){return t[0]!==`_`&&!Ce(t)}});function Ra(){return null}function za(){return null}function Ba(e){}function Va(e){}function Ha(){return null}function Ua(){}function Wa(e,t){return null}function Ga(){return qa(`useSlots`).slots}function Ka(){return qa(`useAttrs`).attrs}function qa(e){let t=ec();return t.setupContext||=_c(t)}function Ja(e){return x(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function Ya(e,t){let n=Ja(e);for(let e in t){if(e.startsWith(`__skip`))continue;let r=n[e];r?x(r)||T(r)?r=n[e]={type:r,default:t[e]}:r.default=t[e]:r===null&&(r=n[e]={default:t[e]}),r&&t[`__skip_${e}`]&&(r.skipFactory=!0)}return n}function Xa(e,t){return!e||!t?e||t:x(e)&&x(t)?e.concat(t):_({},Ja(e),Ja(t))}function Za(e,t){let n={};for(let r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function Qa(e){let t=ec(),n=oc,r=e();ic(),n&&nc(!1);let i=()=>{rc(t),n&&nc(!0)},a=()=>{ec()!==t&&t.scope.off(),ic(),n&&nc(!1)};return ne(r)&&(r=r.catch(e=>{throw i(),Promise.resolve().then(()=>Promise.resolve().then(a)),e})),[r,()=>{i(),Promise.resolve().then(a)}]}var $a=!0;function eo(e){let t=io(e),n=e.proxy,r=e.ctx;$a=!1,t.beforeCreate&&no(t.beforeCreate,e,`bc`);let{data:i,computed:a,methods:o,watch:s,provide:c,inject:l,created:u,beforeMount:d,mounted:f,beforeUpdate:m,updated:h,activated:g,deactivated:_,beforeDestroy:v,beforeUnmount:y,destroyed:b,unmounted:S,render:C,renderTracked:w,renderTriggered:ee,errorCaptured:E,serverPrefetch:te,expose:ne,inheritAttrs:re,components:ie,directives:ae,filters:oe}=t;if(l&&to(l,r,null),o)for(let e in o){let t=o[e];T(t)&&(r[e]=t.bind(n))}if(i){let t=i.call(n,n);D(t)&&(e.data=dn(t))}if($a=!0,a)for(let e in a){let t=a[e],i=q({get:T(t)?t.bind(n,n):T(t.get)?t.get.bind(n,n):p,set:!T(t)&&T(t.set)?t.set.bind(n):p});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e})}if(s)for(let e in s)ro(s[e],r,n,e);if(c){let e=T(c)?c.call(n):c;Reflect.ownKeys(e).forEach(t=>{Nr(t,e[t])})}u&&no(u,e,`c`);function se(e,t){x(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(se(da,d),se(fa,f),se(pa,m),se(ma,h),se(ra,g),se(ia,_),se(ba,E),se(ya,w),se(va,ee),se(ha,y),se(ga,S),se(_a,te),x(ne)){if(ne.length){let t=e.exposed||={};ne.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||={}}C&&e.render===p&&(e.render=C),re!=null&&(e.inheritAttrs=re),ie&&(e.components=ie),ae&&(e.directives=ae),te&&xi(e)}function to(e,t,n=p){x(e)&&(e=lo(e));for(let n in e){let r=e[n],i;i=D(r)?`default`in r?Pr(r.from||n,r.default,!0):Pr(r.from||n):Pr(r),Cn(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function no(e,t,n){nr(x(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function ro(e,t,n,r){let i=r.includes(`.`)?Wr(n,r):()=>n[r];if(E(e)){let n=t[e];T(n)&&Vr(i,n)}else if(T(e))Vr(i,e.bind(n));else if(D(e)){if(x(e))e.forEach(e=>ro(e,t,n,r));else{let r=T(e.handler)?e.handler.bind(n):t[e.handler];T(r)&&Vr(i,r,e)}}}function io(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t),c;return s?c=s:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(e=>ao(c,e,o,!0)),ao(c,t,o)),D(t)&&a.set(t,c),c}function ao(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&ao(e,a,n,!0),i&&i.forEach(t=>ao(e,t,n,!0));for(let i in t)if(!(r&&i===`expose`)){let r=oo[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}var oo={data:so,props:po,emits:po,methods:fo,computed:fo,beforeCreate:uo,created:uo,beforeMount:uo,mounted:uo,beforeUpdate:uo,updated:uo,beforeDestroy:uo,beforeUnmount:uo,destroyed:uo,unmounted:uo,activated:uo,deactivated:uo,errorCaptured:uo,serverPrefetch:uo,components:fo,directives:fo,watch:mo,provide:so,inject:co};function so(e,t){return t?e?function(){return _(T(e)?e.call(this,this):e,T(t)?t.call(this,this):t)}:t:e}function co(e,t){return fo(lo(e),lo(t))}function lo(e){if(x(e)){let t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function uo(e,t){return e?[...new Set([].concat(e,t))]:t}function fo(e,t){return e?_(Object.create(null),e,t):t}function po(e,t){return e?x(e)&&x(t)?[...new Set([...e,...t])]:_(Object.create(null),Ja(e),Ja(t??{})):t}function mo(e,t){if(!e)return t;if(!t)return e;let n=_(Object.create(null),e);for(let r in t)n[r]=uo(e[r],t[r]);return n}function ho(){return{app:null,config:{isNativeTag:m,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}var go=0;function _o(e,t){return function(n,r=null){T(n)||(n=_({},n)),r!=null&&!D(r)&&(r=null);let i=ho(),a=new WeakSet,o=[],s=!1,c=i.app={_uid:go++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:Tc,get config(){return i.config},set config(e){},use(e,...t){return a.has(e)||(e&&T(e.install)?(a.add(e),e.install(c,...t)):T(e)&&(a.add(e),e(c,...t))),c},mixin(e){return i.mixins.includes(e)||i.mixins.push(e),c},component(e,t){return t?(i.components[e]=t,c):i.components[e]},directive(e,t){return t?(i.directives[e]=t,c):i.directives[e]},mount(a,o,l){if(!s){let u=c._ceVNode||W(n,r);return u.appContext=i,l===!0?l=`svg`:l===!1&&(l=void 0),o&&t?t(u,a):e(u,a,l),s=!0,c._container=a,a.__vue_app__=c,vc(u.component)}},onUnmount(e){o.push(e)},unmount(){s&&(nr(o,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(e,t){return i.provides[e]=t,c},runWithContext(e){let t=vo;vo=c;try{return e()}finally{vo=t}}};return c}}var vo=null;function yo(e,t,n=d){let r=ec(),i=O(t),a=pe(t),o=bo(e,i),s=Mn((o,s)=>{let c,l=d,u;return Br(()=>{let t=e[i];ge(c,t)&&(c=t,s())}),{get(){return o(),n.get?n.get(c):c},set(e){let o=n.set?n.set(e):e;if(!ge(o,c)&&!(l!==d&&ge(e,l)))return;let f=r.vnode.props,p=!!(f&&(t in f||i in f||a in f)&&(`onUpdate:${t}`in f||`onUpdate:${i}`in f||`onUpdate:${a}`in f));p||(c=e,s()),r.emit(`update:${t}`,o),ge(e,l)&&(ge(e,o)&&!ge(o,u)||p&&l!==d&&!ge(o,c))&&s(),l=e,u=o}}});return s[Symbol.iterator]=()=>{let e=0;return{next(){return e<2?{value:e++?o||d:s,done:!1}:{done:!0}}}},s}var bo=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${O(t)}Modifiers`]||e[`${pe(t)}Modifiers`];function xo(e,t,...n){if(e.isUnmounted)return;let r=e.vnode.props||d,i=n,a=t.startsWith(`update:`),o=a&&bo(r,t.slice(7));o&&(o.trim&&(i=n.map(e=>E(e)?e.trim():e)),o.number&&(i=i.map(ye)));let s,c=r[s=he(t)]||r[s=he(O(t))];!c&&a&&(c=r[s=he(pe(t))]),c&&nr(c,e,6,i);let l=r[s+`Once`];if(l){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,nr(l,e,6,i)}}var So=new WeakMap;function Co(e,t,n=!1){let r=n?So:t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},s=!1;if(!T(e)){let r=e=>{let n=Co(e,t,!0);n&&(s=!0,_(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return!a&&!s?(D(e)&&r.set(e,null),null):(x(a)?a.forEach(e=>o[e]=null):_(o,a),D(e)&&r.set(e,o),o)}function wo(e,t){return!e||!h(t)?!1:(t=t.slice(2),t=t===`Once`?t:t.replace(/Once$/,``),b(e,t[0].toLowerCase()+t.slice(1))||b(e,pe(t))||b(e,t))}function To(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:o,attrs:s,emit:c,render:l,renderCache:u,props:d,data:f,setupState:p,ctx:m,inheritAttrs:h}=e,_=Or(e),v,y;try{if(n.shapeFlag&4){let e=i||r,t=e;v=Ws(l.call(t,e,u,d,p,f,m)),y=s}else{let e=t;v=Ws(e.length>1?e(d,{attrs:s,slots:o,emit:c}):e(d,null)),y=t.props?s:Do(s)}}catch(t){ks.length=0,rr(t,e,1),v=W(Ds)}let b=v;if(y&&h!==!1){let e=Object.keys(y),{shapeFlag:t}=b;e.length&&t&7&&(a&&e.some(g)&&(y=Oo(y,a)),b=Hs(b,y,!1,!0))}return n.dirs&&(b=Hs(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&_i(qr(b.type)&&gi(b)||b,n.transition),v=b,Or(_),v}function Eo(e,t=!0){let n;for(let t=0;t<e.length;t++){let r=e[t];if(Fs(r)){if(r.type!==Ds||r.children===`v-if`){if(n)return;n=r}}else return}return n}var Do=e=>{let t;for(let n in e)(n===`class`||n===`style`||h(n))&&((t||={})[n]=e[n]);return t},Oo=(e,t)=>{let n={};for(let r in e)g(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function ko(e,t,n){let{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?Ao(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t];if(jo(o,r,n)&&!wo(l,n))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===o?!1:r?!o||Ao(r,o,l):!!o;return!1}function Ao(e,t,n){let r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){let a=r[i];if(!b(e,a)||jo(t,e,a)&&!wo(n,a))return!0}return!1}function jo(e,t,n){let r=e[n],i=t[n];return n===`style`&&D(r)&&D(i)?!Ie(r,i):r!==i}function Mo({vnode:e,parent:t,suspense:n},r){for(;t;){let n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.suspense.vnode.el=n.el=r,e=n),n===e)(e=t.vnode).el=r,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=r)}var No={},Po=()=>Object.create(No),Fo=e=>Object.getPrototypeOf(e)===No;function Io(e,t,n,r=!1){let i={},a=Po();e.propsDefaults=Object.create(null),Ro(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);e.props=n?r?i:fn(i):e.type.props?i:a,e.attrs=a}function Lo(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=M(i),[c]=e.propsOptions,l=!1;if((r||o>0)&&!(o&16)){if(o&8){let n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let o=n[r];if(wo(e.emitsOptions,o))continue;let u=t[o];if(c){if(b(a,o))u!==a[o]&&(a[o]=u,l=!0);else{let t=O(o);i[t]=zo(c,s,t,u,e,!1)}}else u!==a[o]&&(a[o]=u,l=!0)}}}else{Ro(e,t,i,a)&&(l=!0);let r;for(let a in s)t&&(b(t,a)||(r=pe(a))!==a&&b(t,r))||(c?n&&(n[a]!==void 0||n[r]!==void 0)&&(i[a]=zo(c,s,a,void 0,e,!0)):delete i[a]);if(a!==s)for(let e in a)t&&b(t,e)||(delete a[e],l=!0)}l&&Tt(e.attrs,`set`,``)}function Ro(e,t,n,r){let[i,a]=e.propsOptions,o=!1,s;if(t)for(let c in t){if(ce(c))continue;let l=t[c],u;i&&b(i,u=O(c))?!a||!a.includes(u)?n[u]=l:(s||={})[u]=l:wo(e.emitsOptions,c)||c in r&&l===r[c]||(r[c]=l,o=!0)}if(a){let t=M(n),r=s||d;for(let o=0;o<a.length;o++){let s=a[o];n[s]=zo(i,t,s,r[s],e,!b(r,s))}}return o}function zo(e,t,n,r,i,a){let o=e[n];if(o!=null){let e=b(o,`default`);if(e&&r===void 0){let e=o.default;if(o.type!==Function&&!o.skipFactory&&T(e)){let{propsDefaults:a}=i;if(n in a)r=a[n];else{let o=rc(i);r=a[n]=e.call(null,t),o()}}else r=e;i.ce&&i.ce._setProp(n,r)}o[0]&&(a&&!e?r=!1:o[1]&&(r===``||r===pe(n))&&(r=!0))}return r}var Bo=new WeakMap;function Vo(e,t,n=!1){let r=n?Bo:t.propsCache,i=r.get(e);if(i)return i;let a=e.props,o={},s=[],c=!1;if(!T(e)){let r=e=>{c=!0;let[n,r]=Vo(e,t,!0);_(o,n),r&&s.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!a&&!c)return D(e)&&r.set(e,f),f;if(x(a))for(let e=0;e<a.length;e++){let t=O(a[e]);Ho(t)&&(o[t]=d)}else if(a)for(let e in a){let t=O(e);if(Ho(t)){let n=a[e],r=o[t]=x(n)||T(n)?{type:n}:_({},n),i=r.type,c=!1,l=!0;if(x(i))for(let e=0;e<i.length;++e){let t=i[e],n=T(t)&&t.name;if(n===`Boolean`){c=!0;break}n===`String`&&(l=!1)}else c=T(i)&&i.name===`Boolean`;r[0]=c,r[1]=l,(c||b(r,`default`))&&s.push(t)}}let l=[o,s];return D(e)&&r.set(e,l),l}function Ho(e){return e[0]!==`$`&&!ce(e)}var Uo=e=>e===`_`||e===`_ctx`||e===`$stable`,Wo=e=>x(e)?e.map(Ws):[Ws(e)],Go=(e,t,n)=>{if(t._n)return t;let r=F((...e)=>Wo(t(...e)),n);return r._c=!1,r},Ko=(e,t,n)=>{let r=e._ctx;for(let n in e){if(Uo(n))continue;let i=e[n];if(T(i))t[n]=Go(n,i,r);else if(i!=null){let e=Wo(i);t[n]=()=>e}}},qo=(e,t)=>{let n=Wo(t);e.slots.default=()=>n},Jo=(e,t,n)=>{for(let r in t)(n||!Uo(r))&&(e[r]=t[r])},Yo=(e,t,n)=>{let r=e.slots=Po();if(e.vnode.shapeFlag&32){let e=t._;e?(Jo(r,t,n),n&&ve(r,`_`,e,!0)):Ko(t,r)}else t&&qo(e,t)},Xo=(e,t,n)=>{let{vnode:r,slots:i}=e,a=!0,o=d;if(r.shapeFlag&32){let e=t._;e?n&&e===1?a=!1:Jo(i,t,n):(a=!t.$stable,Ko(t,i)),o=t}else t&&(qo(e,t),o={default:1});if(a)for(let e in i)!Uo(e)&&o[e]==null&&delete i[e]},Zo=Cs;function Qo(e){return es(e)}function $o(e){return es(e,Ni)}function es(e,t){let n=Se();n.__VUE__=!0;let{insert:r,remove:i,patchProp:a,createElement:o,createText:s,createComment:c,setText:l,setElementText:u,parentNode:m,nextSibling:h,setScopeId:g=p,insertStaticContent:_}=e,v=(e,t,n,r=null,i=null,a=null,o=void 0,s=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!Is(e,t)&&(r=ye(e),pe(e,i,a,!0),e=null),t.patchFlag===-2&&(c=!1,t.dynamicChildren=null),t.dynamicChildren&&e&&e.dynamicChildren&&e.dynamicChildren.hasOnce&&(t.dynamicChildren===f&&(t.dynamicChildren=[]),t.dynamicChildren.hasOnce=!0);let{type:l,ref:u,shapeFlag:d}=t;switch(l){case Es:y(e,t,n,r);break;case Ds:b(e,t,n,r);break;case Os:e??x(t,n,r,o);break;case z:re(e,t,n,r,i,a,o,s,c);break;default:d&1?w(e,t,n,r,i,a,o,s,c):d&6?ie(e,t,n,r,i,a,o,s,c):(d&64||d&128)&&l.process(e,t,n,r,i,a,o,s,c,xe)}u!=null&&i?Ti(u,e&&e.ref,a,t||e,!t):u==null&&e&&e.ref!=null&&Ti(e.ref,null,a,e,!0)},y=(e,t,n,i)=>{if(e==null)r(t.el=s(t.children),n,i);else{let n=t.el=e.el;t.children!==e.children&&l(n,t.children)}},b=(e,t,n,i)=>{e==null?r(t.el=c(t.children||``),n,i):t.el=e.el},x=(e,t,n,r)=>{[e.el,e.anchor]=_(e.children,t,n,r,e.el,e.anchor)},S=({el:e,anchor:t},n,i)=>{let a;for(;e&&e!==t;)a=h(e),r(e,n,i),e=a;r(t,n,i)},C=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),i(e),e=n;i(t)},w=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)ee(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),te(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},ee=(e,t,n,i,s,c,l,d)=>{let f,p,{props:m,shapeFlag:h,transition:g,dirs:_}=e;if(f=e.el=o(e.type,c,m&&m.is,m),h&8?u(f,e.children):h&16&&E(e.children,f,null,i,s,ts(e,c),l,d),_&&Mr(e,null,i,`created`),T(f,e,e.scopeId,l,i),m){for(let e in m)e!==`value`&&!ce(e)&&a(f,e,null,m[e],c,i);`value`in m&&a(f,`value`,null,m.value,c),(p=m.onVnodeBeforeMount)&&Js(p,i,e)}_&&Mr(e,null,i,`beforeMount`);let v=rs(s,g);v?g.beforeEnter(f):g&&!g.persisted&&(f[ds]=!0),r(f,t,n),((p=m&&m.onVnodeMounted)||v||_)&&Zo(()=>{try{p&&Js(p,i,e),v&&g.enter(f),_&&Mr(e,null,i,`mounted`)}finally{}},s)},T=(e,t,n,r,i)=>{if(n&&g(e,n),r)for(let t=0;t<r.length;t++)g(e,r[t]);if(i){let n=i.subTree;if(t===n||ls(n.type)&&(n.ssContent===t||n.ssFallback===t)){let t=i.vnode;T(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},E=(e,t,n,r,i,a,o,s,c=0)=>{for(let l=c;l<e.length;l++){let c=e[l]=s?Gs(e[l]):Ws(e[l]);v(null,c,t,n,r,i,a,o,s)}},te=(e,t,n,r,i,o,s)=>{let c=t.el=e.el,{patchFlag:l,dynamicChildren:f,dirs:p}=t;l|=e.patchFlag&16;let m=e.props||d,h=t.props||d,g;if(n&&ns(n,!1),(g=h.onVnodeBeforeUpdate)&&Js(g,n,t,e),p&&Mr(t,e,n,`beforeUpdate`),n&&ns(n,!0),f&&(!e.dynamicChildren||e.dynamicChildren.length!==f.length)&&(l=0,s=!1,f=null),(m.innerHTML&&h.innerHTML==null||m.textContent&&h.textContent==null)&&u(c,``),f?D(e.dynamicChildren,f,c,n,r,ts(t,i),o):s||ue(e,t,c,null,n,r,ts(t,i),o,!1),l>0){if(l&16)ne(c,m,h,n,i);else if(l&2&&m.class!==h.class&&a(c,`class`,null,h.class,i),l&4&&a(c,`style`,m.style,h.style,i),l&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let r=e[t],o=m[r],s=h[r];(s!==o||r===`value`)&&a(c,r,o,s,i,n)}}l&1&&e.children!==t.children&&u(c,t.children)}else!s&&f==null&&ne(c,m,h,n,i);((g=h.onVnodeUpdated)||p)&&Zo(()=>{g&&Js(g,n,t,e),p&&Mr(t,e,n,`updated`)},r)},D=(e,t,n,r,i,a,o)=>{for(let s=0;s<t.length;s++){let c=e[s],l=t[s],u=c.el||cs(c),d=u&&(c.type===z||!Is(c,l)||c.shapeFlag&198)?m(u):n;v(c,l,d,null,r,i,a,o,!0)}},ne=(e,t,n,r,i)=>{if(t!==n){if(t!==d)for(let o in t)!ce(o)&&!(o in n)&&a(e,o,t[o],null,i,r);for(let o in n){if(ce(o))continue;let s=n[o],c=t[o];s!==c&&o!==`value`&&a(e,o,c,s,i,r)}`value`in n&&a(e,`value`,t.value,n.value,i)}},re=(e,t,n,i,a,o,c,l,u)=>{let d=t.el=e?e.el:s(``),f=t.anchor=e?e.anchor:s(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;h&&(l=l?l.concat(h):h),e==null?(r(d,n,i),r(f,n,i),E(t.children||[],n,f,a,o,c,l,u)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(D(e.dynamicChildren,m,n,a,o,c,l),(t.key!=null||a&&t===a.subTree)&&is(e,t,!0)):ue(e,t,n,f,a,o,c,l,u)},ie=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):ae(t,n,r,i,a,o,c):oe(e,t,c)},ae=(e,t,n,r,i,a,o)=>{let s=e.component=Qs(e,r,i);if(ea(e)&&(s.ctx.renderer=xe),sc(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,se,o,a),!e.el){let r=s.subTree=W(Ds);b(null,r,t,n),e.placeholder=r.el}}else se(s,e,t,n,i,a,o)},oe=(e,t,n)=>{let r=t.component=e.component;if(ko(e,t,n)){if(r.asyncDep&&!r.asyncResolved){t.el=e.el,t.placeholder=e.placeholder,le(r,t,n);return}r.next=t,r.update()}else t.el=e.el,t.placeholder=e.placeholder,r.vnode=t},se=(e,t,n,r,i,a,o)=>{let s=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:s,vnode:c}=e;{let n=os(e);if(n){t&&(t.el=c.el,le(e,t,o)),n.asyncDep.then(()=>{let t=()=>{e.job.flags&8||(i&&i.pendingBranch?Zo(t,i):l())};t.flags=48,Zo(t,i)});return}}let u=t,d;ns(e,!1),t?(t.el=c.el,le(e,t,o)):t=c,n&&_e(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&Js(d,s,t,c),ns(e,!0);let f=To(e),p=e.subTree;e.subTree=f,v(p,f,m(p.el||cs(p)),ye(p),e,i,a),t.el=f.el,u===null&&Mo(e,f.el),r&&Zo(r,i),(d=t.props&&t.props.onVnodeUpdated)&&Zo(()=>Js(d,s,t,c),i)}else{let o,{el:s,props:c}=t,{bm:l,m:u,parent:d,root:f,type:p}=e,m=Zi(t);if(ns(e,!1),l&&_e(l),!m&&(o=c&&c.onVnodeBeforeMount)&&Js(o,d,t),ns(e,!0),s&&k){let t=()=>{e.subTree=To(e),k(s,e.subTree,e,i,null)};m&&p.__asyncHydrate?p.__asyncHydrate(s,e,t):t()}else{f.ce&&f.ce._hasShadowRoot()&&f.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);let o=e.subTree=To(e);v(null,o,n,r,e,i,a),t.el=o.el}if(u&&Zo(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;Zo(()=>Js(o,d,e),i)}(t.shapeFlag&256||d&&Zi(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&Zo(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new Xe(s);e.scope.off();let l=e.update=c.run.bind(c),u=e.job=c.runIfDirty.bind(c);u.i=e,u.id=e.uid,c.scheduler=()=>mr(u),ns(e,!0),l()},le=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,Lo(e,t.props,r,n),Xo(e,t.children,n),pt(),_r(e),mt()},ue=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,d=e?e.shapeFlag:0,f=t.children,{patchFlag:p,shapeFlag:m}=t;if(p>0){if(p&128){O(l,f,n,r,i,a,o,s,c);return}if(p&256){de(l,f,n,r,i,a,o,s,c);return}}m&8?(d&16&&ve(l,i,a),f!==l&&u(n,f)):d&16?m&16?O(l,f,n,r,i,a,o,s,c):ve(l,i,a,!0):(d&8&&u(n,``),m&16&&E(f,n,r,i,a,o,s,c))},de=(e,t,n,r,i,a,o,s,c)=>{e||=f,t||=f;let l=e.length,u=t.length,d=Math.min(l,u),p=0;for(;p<d;p++){let r=t[p]=c?Gs(t[p]):Ws(t[p]);v(e[p],r,n,null,i,a,o,s,c)}l>u?ve(e,i,a,!0,!1,d):E(t,n,r,i,a,o,s,c,d)},O=(e,t,n,r,i,a,o,s,c)=>{let l=0,u=t.length,d=e.length-1,p=u-1;for(;l<=d&&l<=p;){let r=e[l],u=t[l]=c?Gs(t[l]):Ws(t[l]);if(Is(r,u))v(r,u,n,null,i,a,o,s,c);else break;l++}for(;l<=d&&l<=p;){let r=e[d],l=t[p]=c?Gs(t[p]):Ws(t[p]);if(Is(r,l))v(r,l,n,null,i,a,o,s,c);else break;d--,p--}if(l>d){if(l<=p){let e=p+1,d=e<u?t[e].el:r;for(;l<=p;)v(null,t[l]=c?Gs(t[l]):Ws(t[l]),n,d,i,a,o,s,c),l++}}else if(l>p)for(;l<=d;)pe(e[l],i,a,!0),l++;else{let m=l,h=l,g=new Map;for(l=h;l<=p;l++){let e=t[l]=c?Gs(t[l]):Ws(t[l]);e.key!=null&&g.set(e.key,l)}let _,y=0,b=p-h+1,x=!1,S=0,C=Array(b);for(l=0;l<b;l++)C[l]=0;for(l=m;l<=d;l++){let r=e[l];if(y>=b){pe(r,i,a,!0);continue}let u;if(r.key!=null)u=g.get(r.key);else for(_=h;_<=p;_++)if(C[_-h]===0&&Is(r,t[_])){u=_;break}u===void 0?pe(r,i,a,!0):(C[u-h]=l+1,u>=S?S=u:x=!0,v(r,t[u],n,null,i,a,o,s,c),y++)}let w=x?as(C):f;for(_=w.length-1,l=b-1;l>=0;l--){let e=h+l,d=t[e],f=t[e+1],p=e+1<u?f.el||cs(f):r;C[l]===0?v(null,d,n,p,i,a,o,s,c):x&&(_<0||l!==w[_]?fe(d,n,p,2):_--)}}},fe=(e,t,n,a,o=null)=>{let{el:s,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6)fe(e.component.subTree,t,n,a);else if(d&128)e.suspense.move(t,n,a);else if(d&64)c.move(e,t,n,xe);else if(c===z){r(s,t,n);for(let e=0;e<u.length;e++)fe(u[e],t,n,a);r(e.anchor,t,n)}else if(c===Os)S(e,t,n);else if(a!==2&&d&1&&l){if(a===0)l.persisted&&!s[ai]?r(s,t,n):(l.beforeEnter(s),r(s,t,n),Zo(()=>l.enter(s),o));else{let{leave:a,delayLeave:o,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?i(s):r(s,t,n)},d=()=>{let e=s._isLeaving||!!s[ai];s._isLeaving&&s[ai](!0),l.persisted&&!e?u():a(s,()=>{u(),c&&c()})};o?o(s,u,d):d()}}else r(s,t,n)},pe=(e,t,n,r=!1,i=!1)=>{let{type:a,props:o,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p,memo:m}=e;if((d===-2||l&&l.hasOnce)&&(i=!1),s!=null&&(pt(),Ti(s,null,n,e,!0),mt()),p==null||e.ctx&&e.ctx!==t||(t.renderCache[p]=void 0),u&256&&t.ctx.deactivate(e))return;let h=u&1&&f,g=!Zi(e),_;if(g&&(_=o&&o.onVnodeBeforeUnmount)&&Js(_,t,e),u&6)ge(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}h&&Mr(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,xe,r):l&&!l.hasOnce&&(a!==z||d>0&&d&64)?ve(l,t,n,!1,!0):(a===z&&d&384||!i&&u&16)&&ve(c,t,n),r&&me(e)}let v=m!=null&&p==null;(g&&(_=o&&o.onVnodeUnmounted)||h||v)&&Zo(()=>{_&&Js(_,t,e),h&&Mr(e,null,t,`unmounted`),v&&(e.el=null)},n)},me=e=>{let{type:t,el:n,anchor:r,transition:a}=e,o=t===z;if(o&&!a){he(n,r);return}if(t===Os){C(e),a&&!a.persisted&&a.afterLeave&&a.afterLeave();return}let s=o?yi(e):e,c=()=>{o?m(n)&&he(n,r):i(n),a&&!a.persisted&&a.afterLeave&&a.afterLeave()};if(s&&s.shapeFlag&1&&a&&!a.persisted){let{leave:e,delayLeave:t}=a,n=s.el,r=()=>e(n,c);t?t(n,c,r):r()}else c()},he=(e,t)=>{let n;for(;e!==t;)n=h(e),i(e),e=n;i(t)},ge=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;ss(c),ss(l),r&&_e(r),i.stop(),a?(a.flags|=8,pe(o,e,t,n)):o&&(o.transition=e.vnode.transition,pe(o,e,t,n)),s&&Zo(s,t);let u=()=>{e.isUnmounted=!0};u.flags=16,Zo(u,t)},ve=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o<e.length;o++)pe(e[o],t,n,r,i)},ye=e=>{if(e.shapeFlag&6)return ye(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=h(e.anchor||e.el),n=t&&t[Kr];return n?h(n):t},be=(e,t,n)=>{br(()=>{e==null?t._vnode&&pe(t._vnode,null,null,!0):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e},e&&t._vnode?void 0:e&&e.component?e.component.uid:Zs())},xe={p:v,um:pe,m:fe,r:me,mt:ae,mc:E,pc:ue,pbc:D,n:ye,o:e},Ce,k;return t&&([Ce,k]=t(xe)),{render:be,hydrate:Ce,createApp:_o(be,Ce)}}function ts({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 ns({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function rs(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function is(e,t,n=!1){let r=e.children,i=t.children;if(x(r)&&x(i))for(let e=0;e<r.length;e++){let t=r[e],a=i[e];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[e]=Gs(i[e]),a.el=t.el),!n&&a.patchFlag!==-2&&is(t,a)),a.type===Es&&(a.patchFlag===-1&&(a=i[e]=Gs(a)),a.el=t.el),a.type===Ds&&!a.el&&(a.el=t.el)}}function as(e){let t=e.slice(),n=[0],r,i,a,o,s,c=e.length;for(r=0;r<c;r++){let c=e[r];if(c!==0){if(i=n[n.length-1],e[i]<c){t[r]=i,n.push(r);continue}for(a=0,o=n.length-1;a<o;)s=a+o>>1,e[n[s]]<c?a=s+1:o=s;c<e[n[a]]&&(a>0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-->0;)n[a]=o,o=t[o];return n}function os(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:os(t)}function ss(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function cs(e){if(e.placeholder)return e.placeholder;let t=e.component;if(t)return cs(t.subTree);let n=e.suspense;return n&&n.activeBranch?cs(n.activeBranch):null}var ls=e=>e.__isSuspense,us=0,ds=Symbol(`_deferredEnter`),fs={name:`Suspense`,__isSuspense:!0,process(e,t,n,r,i,a,o,s,c,l){if(e==null)gs(t,n,r,i,a,o,s,c,l);else{let u=e.suspense;if(a&&a.deps>0&&!a.isHydrating){let n=u.parentComponent;if(n&&n.suspense===a&&n.suspenseId!==a.pendingId?a.pendingBranch&&!Is(t.ssContent,u.pendingBranch||u.activeBranch):!u.isInFallback){t.suspense=u,u.vnode=t,t.el=e.el;return}}_s(e,t,n,r,i,o,s,c,l)}},hydrate:ys,normalize:bs};function ps(e,t){let n=e.props&&e.props[t];T(n)&&n()}function ms(e){let t=[];hs(e,t,!0),t.length&&gr(t)}function hs(e,t,n){let{el:r,transition:i,children:a,shapeFlag:o}=e;if(o&6)hs(e.component.subTree,t,n);else if(!(o&192)&&(o&1&&(!n&&r&&r[ds]&&(r[ds]=void 0,i&&!i.persisted&&(i.beforeEnter(r),t.push(()=>i.enter(r)))),n=!1),o&16))for(let e=0;e<a.length;e++)hs(a[e],t,n)}function gs(e,t,n,r,i,a,o,s,c){let{p:l,o:{createElement:u}}=c,d=u(`div`),f=e.suspense=vs(e,i,r,t,d,n,a,o,s,c);l(null,f.pendingBranch=e.ssContent,d,null,r,f,a,o),f.deps>0?(ps(e,`onPending`),ps(e,`onFallback`),l(null,e.ssFallback,t,n,r,null,a,o),ws(f,e.ssFallback)):f.resolve(!1,!0)}function _s(e,t,n,r,i,a,o,s,{p:c,um:l,o:{createElement:u}}){let d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;let f=t.ssContent,p=t.ssFallback,{activeBranch:m,pendingBranch:h,isInFallback:g,isHydrating:_}=d;if(h)d.pendingBranch=f,Is(h,f)?(d.deps++,c(h,f,_?n:d.hiddenContainer,null,i,d,a,o,s),d.deps--,d.deps<=0?d.resolve():g&&!_&&!d.isFallbackMountPending&&(c(m,p,n,r,i,null,a,o,s),ws(d,p))):(d.pendingId=us++,_?(d.isHydrating=!1,d.activeBranch=h):l(h,i,d),d.deps=0,Ss(d),d.hiddenContainer=u(`div`),g?(c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0?d.resolve():d.isFallbackMountPending||(c(m,p,n,r,i,null,a,o,s),ws(d,p))):m&&Is(m,f)?(c(m,f,n,r,i,d,a,o,s),d.resolve(!0),d.pendingId=us++,d.deps=0):(c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0&&d.resolve()));else if(m&&Is(m,f))c(m,f,n,r,i,d,a,o,s),ws(d,f);else if(ps(t,`onPending`),d.pendingBranch=f,d.pendingId=us++,c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0)d.resolve();else{let{timeout:e}=d;e>0?d.timeoutTimer=setTimeout(()=>{d.timeoutTimer=void 0,d.fallback(d.vnode.ssFallback)},e):e===0&&d.fallback(p)}}function vs(e,t,n,r,i,a,o,s,c,l,u=!1){let{p:d,m:f,um:p,n:m,o:{parentNode:h,remove:g}}=l,_,v=Ts(e);v&&t&&t.pendingBranch&&(_=t.pendingId,t.deps++);let y=e.props?be(e.props.timeout):void 0,b=a,x={vnode:e,parent:t,parentComponent:n,namespace:o,container:r,hiddenContainer:i,deps:0,pendingId:us++,timeout:typeof y==`number`?y:-1,timeoutTimer:void 0,activeBranch:null,isFallbackMountPending:!1,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){let{vnode:r,activeBranch:i,pendingBranch:o,pendingId:s,effects:c,parentComponent:l,container:u,isInFallback:d}=x,g=x.parent;for(;g&&!g.pendingBranch;)g=g.parent;let y=!1;if(x.isHydrating)x.isHydrating=!1;else if(!e){y=i&&o.transition&&o.transition.mode===`out-in`;let e=!1;y&&(i.transition.afterLeave=()=>{if(s===x.pendingId&&!x.isUnmounted){ms(o),f(o,u,a===b&&!e?m(i):a,0);let t=!1;if(g){let e=u,n;for(;n=h(e);)e=n;t=e===g.hiddenContainer}t||gr(c),d&&r.ssFallback&&(r.ssFallback.el=null)}}),i&&!x.isFallbackMountPending&&(h(i.el||cs(i))===u&&(a=m(i),e=!0),p(i,l,x,!0),!y&&d&&r.ssFallback&&Zo(()=>r.ssFallback.el=null,x)),y||(ms(o),f(o,u,a,0))}clearTimeout(x.timeoutTimer),x.timeoutTimer=void 0,x.isFallbackMountPending=!1,ws(x,o),x.pendingBranch=null,x.isInFallback=!1;let S=0;for(let e=0;e<c.length;e++){let t=c[e];t.flags&32?gr(t):c[S++]=t}if(c.length=S,g)for(let e=0;e<c.length;e++)g.effects.push(c[e]);else y||gr(c);x.effects=[],v&&t&&t.pendingBranch&&_===t.pendingId&&(_=void 0,t.deps--,t.deps===0&&!n&&t.resolve()),ps(r,`onResolve`)},fallback(e){if(x.isUnmounted||!x.pendingBranch)return;let{vnode:t,activeBranch:n,parentComponent:r,container:i,namespace:a}=x;ps(t,`onFallback`);let o=m(n),l=()=>{if(x.isFallbackMountPending=!1,x.isUnmounted||!x.isInFallback)return;let e=x.vnode.ssFallback;d(null,e,i,o,r,null,a,s,c),ws(x,e)},u=e.transition&&e.transition.mode===`out-in`;u&&(x.isFallbackMountPending=!0,n.transition.afterLeave=l),x.isInFallback=!0,p(n,r,null,!0),u||l()},move(e,t,n){x.activeBranch&&f(x.activeBranch,e,t,n),x.container=e},next(){return x.activeBranch&&m(x.activeBranch)},registerDep(e,t,n,r){let i=!!x.pendingBranch;i&&x.deps++;let a=e.vnode.el,o=i=>{e.asyncResolved=!0;let{vnode:o}=e;lc(e,i,!1),a&&(o.el=a);let s=!a&&e.subTree.el;t(e,o,h(a||e.subTree.el),a?null:m(e.subTree),x,r,n),s&&(o.placeholder=null,g(s)),Mo(e,o.el)};e.asyncDep.catch(t=>(e.scope.active&&rr(t,e,0,!1,!0),()=>null)).then(t=>{if(e.isUnmounted||x.isUnmounted)return;let n=i&&x.pendingId===e.suspenseId;if(ic(),!e.scope.active)n&&--x.deps===0&&x.resolve();else if(!n&&x.pendingBranch){let n=()=>{e.isUnmounted||x.isUnmounted||!e.scope.active||(x.pendingBranch?Cs(n,x):o(t))};n.flags=48,Cs(n,x)}else o(t),n&&--x.deps===0&&x.resolve()})},unmount(e,t){if(x.isUnmounted=!0,clearTimeout(x.timeoutTimer),x.timeoutTimer=void 0,_!==void 0){let e=x.parent,t=_;_=void 0,gr(()=>{e.pendingId===t&&!e.isUnmounted&&--e.deps===0&&e.resolve()})}x.activeBranch&&p(x.activeBranch,n,e,t),x.pendingBranch&&(p(x.pendingBranch,n,x,t),Ss(x))}};return x}function ys(e,t,n,r,i,a,o,s,c){let l=t.suspense=vs(t,r,n,e.parentNode,document.createElement(`div`),null,i,a,o,s,!0),u=c(e,l.pendingBranch=t.ssContent,n,l,a,o);return l.deps===0&&l.resolve(!1,!0),u}function bs(e){let{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=xs(r?n.default:n),e.ssFallback=r?xs(n.fallback):W(Ds)}function xs(e){let t;if(T(e)){let n=Ms&&e._c;n&&(e._d=!1,B()),e=e(),n&&(e._d=!0,t=As,js())}return x(e)&&(e=Eo(e)),e=Ws(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(t=>t!==e)),e}function Ss(e){let{effects:t}=e;for(let e=0;e<t.length;e++){let n=t[e];n.flags&16&&gr(n)}t.length=0}function Cs(e,t){t&&t.pendingBranch?x(e)?t.effects.push(...e):t.effects.push(e):gr(e)}function ws(e,t){e.activeBranch=t;let{vnode:n,parentComponent:r}=e,i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,Mo(r,i))}function Ts(e){let t=e.props&&e.props.suspensible;return t!=null&&t!==!1}var z=Symbol.for(`v-fgt`),Es=Symbol.for(`v-txt`),Ds=Symbol.for(`v-cmt`),Os=Symbol.for(`v-stc`),ks=[],As=null;function B(e=!1){ks.push(As=e?null:[])}function js(){ks.pop(),As=ks[ks.length-1]||null}var Ms=1;function Ns(e,t=!1){Ms+=e,e<0&&As&&t&&(As.hasOnce=!0)}function Ps(e){return e.dynamicChildren=Ms>0?As||f:null,js(),Ms>0&&As&&As.push(e),e}function V(e,t,n,r,i,a){return Ps(U(e,t,n,r,i,a,!0))}function H(e,t,n,r,i){return Ps(W(e,t,n,r,i,!0))}function Fs(e){return e?e.__v_isVNode===!0:!1}function Is(e,t){return e.type===t.type&&e.key===t.key}function Ls(e){}var Rs=({key:e})=>e??null,zs=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:E(e)||Cn(e)||T(e)?{i:Er,r:e,k:t,f:!!n}:e);function U(e,t=null,n=null,r=0,i=null,a=e===z?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Rs(t),ref:t&&zs(t),scopeId:Dr,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:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Er};return s?(Ks(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=E(n)?8:16),Ms>0&&!o&&As&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&As.push(c),c}var W=Bs;function Bs(e,t=null,n=null,r=0,i=null,a=!1){if(e&&e!==wa||(e=Ds),Fs(e)){let r=Hs(e,t,!0);return n&&Ks(r,n),Ms>0&&!a&&As&&(r.shapeFlag&6?As[As.indexOf(e)]=r:As.push(r)),r.patchFlag=-2,r}if(bc(e)&&(e=e.__vccOpts),t){t=Vs(t);let{class:e,style:n}=t;e&&!E(e)&&(t.class=A(e)),D(n)&&(yn(n)&&!x(n)&&(n=_({},n)),t.style=k(n))}let o=E(e)?1:ls(e)?128:qr(e)?64:D(e)?4:T(e)?2:0;return U(e,t,n,r,i,o,a,!0)}function Vs(e){return e?yn(e)?_({},e):Fo(e)?_({},e[hc]||e):e:null}function Hs(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?qs(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Rs(l),ref:t&&t.ref?n&&a?x(a)?a.concat(zs(t)):[a,zs(t)]:zs(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==z?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Hs(e.ssContent),ssFallback:e.ssFallback&&Hs(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return c&&r&&_i(u,c.clone(u)),u}function G(e=` `,t=0){return W(Es,null,e,t)}function Us(e,t){let n=W(Os,null,e);return n.staticCount=t,n}function K(e=``,t=!1){return t?(B(),H(Ds,null,e)):W(Ds,null,e)}function Ws(e){return e==null||typeof e==`boolean`?W(Ds):x(e)?W(z,null,e.slice()):Fs(e)?Gs(e):W(Es,null,String(e))}function Gs(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Hs(e)}function Ks(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(x(t))n=16;else if(typeof t==`object`){if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),Ks(e,n()),n._c&&(n._d=!0));return}{n=32;let r=t._;!r&&!Fo(t)?t._ctx=Er:r===3&&Er&&(Er.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}}else if(T(t)){if(r&65){Ks(e,{default:t});return}t={default:t,_ctx:Er},n=32}else t=String(t),r&64?(n=16,t=[G(t)]):n=8;e.children=t,e.shapeFlag|=n}function qs(...e){let t={};for(let n=0;n<e.length;n++){let r=e[n];for(let e in r)if(e===`class`)t.class!==r.class&&(t.class=A([t.class,r.class]));else if(e===`style`)t.style=k([t.style,r.style]);else if(h(e)){let n=t[e],i=r[e];i&&n!==i&&!(x(n)&&n.includes(i))?t[e]=n?[].concat(n,i):i:i==null&&n==null&&!g(e)&&(t[e]=i)}else e!==``&&(t[e]=r[e])}return t}function Js(e,t,n,r=null){nr(e,t,7,[n,r])}var Ys=ho(),Xs=0;function Zs(){return Xs}function Qs(e,t,n){let r=e.type,i=(t?t.appContext:e.appContext)||Ys,a={uid:Xs++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new We(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:[``,0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Vo(r,i),emitsOptions:Co(r,i),emit:null,emitted:null,propsDefaults:d,inheritAttrs:r.inheritAttrs,ctx:d,data:d,props:d,attrs:d,slots:d,refs:d,setupState:d,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=t?t.root:a,a.emit=xo.bind(null,a),e.ce&&e.ce(a),a}var $s=null,ec=()=>$s||Er,tc,nc;{let e=Se(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};tc=t(`__VUE_INSTANCE_SETTERS__`,e=>$s=e),nc=t(`__VUE_SSR_SETTERS__`,e=>oc=e)}var rc=e=>{let t=$s;return tc(e),e.scope.on(),()=>{e.scope.off(),tc(t)}},ic=()=>{$s&&$s.scope.off(),tc(null)};function ac(e){return e.vnode.shapeFlag&4}var oc=!1;function sc(e,t=!1,n=!1){t&&nc(t);let{props:r,children:i}=e.vnode,a=ac(e);Io(e,r,a,t),Yo(e,i,n||t);let o=a?cc(e,t):void 0;return t&&nc(!1),o}function cc(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ia);let{setup:r}=n;if(r){pt();let n=e.setupContext=r.length>1?_c(e):null,i=rc(e),a=tr(r,e,0,[e.props,n]),o=ne(a);if(mt(),i(),(o||e.sp)&&!Zi(e)&&xi(e),o){if(a.then(ic,ic),t)return a.then(n=>{nc(!0);try{lc(e,n,t)}finally{nc(!1)}}).catch(t=>{rr(t,e,0,void 0,!0),e.ssrRender=(e,t)=>t(`<!---->`)});e.asyncDep=a}else lc(e,a,t)}else mc(e,t)}function lc(e,t,n){T(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:D(t)&&(e.setupState=An(t)),mc(e,n)}var uc,dc;function fc(e){uc=e,dc=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,La))}}var pc=()=>!uc;function mc(e,t,n){let r=e.type;if(!e.render){if(!t&&uc&&!r.render){let t=r.template||io(e).template;if(t){let{isCustomElement:n,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:o}=r,s=_(_({isCustomElement:n,delimiters:a},i),o);r.render=uc(t,s)}}e.render=r.render||p,dc&&dc(e)}{let t=rc(e);pt();try{eo(e)}finally{mt(),t()}}}var hc=Symbol(),gc={get(e,t){return wt(e,`get`,``),t===hc?e:e[t]}};function _c(e){return{attrs:new Proxy(e.attrs,gc),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function vc(e){return e.exposed?e.exposeProxy||=new Proxy(An(bn(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Pa)return Pa[n](e)},has(e,t){return t in e||t in Pa}}):e.proxy}function yc(e,t=!0){return T(e)?e.displayName||e.name:e.name||t&&e.__name}function bc(e){return T(e)&&`__vccOpts`in e}var q=(e,t)=>zn(e,t,oc);function xc(e,t,n){try{Ns(-1);let r=arguments.length;return r===2?D(t)&&!x(t)?Fs(t)?W(e,null,[t]):W(e,t):W(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Fs(n)&&(n=[n]),W(e,t,n))}finally{Ns(1)}}function Sc(){}function Cc(e,t,n,r){let i=n[r];if(i&&wc(i,e))return i;let a=t();return a.memo=e.slice(),a.cacheIndex=r,n[r]=a}function wc(e,t){let n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e<n.length;e++)if(ge(n[e],t[e]))return!1;return Ms>0&&As&&As.push(e),!0}var Tc=`3.5.47`,Ec=p,Dc=er,Oc=Cr,kc=Tr,Ac={createComponentInstance:Qs,setupComponent:sc,renderComponentRoot:To,setCurrentRenderingInstance:Or,isVNode:Fs,normalizeVNode:Ws,getComponentPublicInstance:vc,ensureValidVNode:ja,pushWarningContext:Xn,popWarningContext:Zn},jc=void 0,Mc=typeof window<`u`&&window.trustedTypes;if(Mc)try{jc=Mc.createPolicy(`vue`,{createHTML:e=>e})}catch{}var Nc=jc?e=>jc.createHTML(e):e=>e,Pc=`http://www.w3.org/2000/svg`,Fc=`http://www.w3.org/1998/Math/MathML`,Ic=typeof document<`u`?document:null,Lc=Ic&&Ic.createElement(`template`),Rc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?Ic.createElementNS(Pc,e):t===`mathml`?Ic.createElementNS(Fc,e):n?Ic.createElement(e,{is:n}):Ic.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>Ic.createTextNode(e),createComment:e=>Ic.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ic.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),i!==a&&(i=i.nextSibling););else{Lc.innerHTML=Nc(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=Lc.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},zc=`transition`,Bc=`animation`,Vc=Symbol(`_vtc`),Hc={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Uc=_({},li,Hc),Wc=(e=>(e.displayName=`Transition`,e.props=Uc,e))((e,{slots:t})=>xc(fi,qc(e),t)),Gc=(e,t=[])=>{x(e)?e.forEach(e=>e(...t)):e&&e(...t)},Kc=e=>e?x(e)?e.some(e=>e.length>1):e.length>1:!1;function qc(e){let t={};for(let n in e)n in Hc||(t[n]=e[n]);if(e.css===!1)return t;let{name:n=`v`,type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:c=a,appearActiveClass:l=o,appearToClass:u=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,m=Jc(i),h=m&&m[0],g=m&&m[1],{onBeforeEnter:v,onEnter:y,onEnterCancelled:b,onLeave:x,onLeaveCancelled:S,onBeforeAppear:C=v,onAppear:w=y,onAppearCancelled:ee=b}=t,T=(e,t,n,r)=>{e._enterResolve=void 0,e._enterCancelled=r,Zc(e,t?u:s),Zc(e,t?l:o),n&&n()},E=(e,t)=>{e._leaveResolve=void 0,e._isLeaving=!1,Zc(e,d),Zc(e,p),Zc(e,f),t&&t()},te=e=>(t,n)=>{let i=e?w:y,o=()=>{t._enterResolve===o&&T(t,e,n)};t._enterResolve=o,Gc(i,[t,o]),Qc(()=>{Zc(t,e?c:a),t._enterResolve===o&&(Xc(t,e?u:s),Kc(i)||el(t,r,h,o))})};return _(t,{onBeforeEnter(e){Gc(v,[e]),Xc(e,a),Xc(e,o)},onBeforeAppear(e){Gc(C,[e]),Xc(e,c),Xc(e,l)},onEnter:te(!1),onAppear:te(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>{e._leaveResolve===n&&E(e,t)};e._leaveResolve=n,Xc(e,d),e._enterCancelled?(Xc(e,f),il(e)):(il(e),Xc(e,f)),Qc(()=>{e._leaveResolve===n&&(Zc(e,d),Xc(e,p),Kc(x)||el(e,r,g,n))}),Gc(x,[e,n])},onEnterCancelled(e){T(e,!1,void 0,!0),Gc(b,[e])},onAppearCancelled(e){T(e,!0,void 0,!0),Gc(ee,[e])},onLeaveCancelled(e){E(e),Gc(S,[e])}})}function Jc(e){if(e==null)return null;if(D(e))return[Yc(e.enter),Yc(e.leave)];{let t=Yc(e);return[t,t]}}function Yc(e){return be(e)}function Xc(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[Vc]||(e[Vc]=new Set)).add(t)}function Zc(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[Vc];n&&(n.delete(t),n.size||(e[Vc]=void 0))}function Qc(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var $c=0;function el(e,t,n,r){let i=e._endId=++$c,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=tl(e,t);if(!o)return r();let l=o+`end`,u=0,d=()=>{e.removeEventListener(l,f),a()},f=t=>{t.target===e&&++u>=c&&d()};setTimeout(()=>{u<c&&d()},s+1),e.addEventListener(l,f)}function tl(e,t){let n=window.getComputedStyle(e),r=e=>(n[e]||``).split(`, `),i=r(`${zc}Delay`),a=r(`${zc}Duration`),o=nl(i,a),s=r(`${Bc}Delay`),c=r(`${Bc}Duration`),l=nl(s,c),u=null,d=0,f=0;t===zc?o>0&&(u=zc,d=o,f=a.length):t===Bc?l>0&&(u=Bc,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?zc:Bc:null,f=u?u===zc?a.length:c.length:0);let p=u===zc&&/\b(?:transform|all)(?:,|$)/.test(r(`${zc}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function nl(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((t,n)=>rl(t)+rl(e[n])))}function rl(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function il(e){return(e?e.ownerDocument:document).body.offsetHeight}function al(e,t,n){let r=e[Vc];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var ol=Symbol(`_vod`),sl=Symbol(`_vsh`),cl={name:`show`,beforeMount(e,{value:t},{transition:n}){e[ol]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):ll(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),ll(e,!0),r.enter(e)):r.leave(e,()=>{ll(e,!1)}):ll(e,t))},beforeUnmount(e,{value:t}){ll(e,t)}};function ll(e,t){e.style.display=t?e[ol]:`none`,e[sl]=!t}function ul(){cl.getSSRProps=({value:e})=>{if(!e)return{style:{display:`none`}}}}var dl=Symbol(``);function fl(e){let t=ec();if(!t)return;let n=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(e=>vl(e,n))},r={uid:String(t.uid),update:n};qe(()=>r.update=void 0),t.ut=(e,t)=>{e&&(e[pl]=[t,r],hl(e),ml(e)),n()};let i=()=>{let r=e(t.proxy);t.ce?vl(t.ce,r):_l(t.subTree,r),n(r)};pa(()=>{gr(i)}),fa(()=>{Vr(i,p,{flush:`post`});let e=new MutationObserver(i);e.observe(t.subTree.el.parentNode,{childList:!0}),ga(()=>e.disconnect())})}var pl=Symbol(``);function ml(e,t){let[n,r]=e[pl],i;if(r.update)for(let a=e;a&&a!==n;a=a.nextSibling)a.nodeType===1&&(!t||(t===!0||t.has(a))&&(a.getAttribute(`data-v-owner`)||r.uid)===r.uid)&&(a.setAttribute(`data-v-owner`,r.uid),i=r.update);return i}function hl(e){let t=e.parentNode;if(t){let n=t[pl];n||(n=t[pl]=new Set,new MutationObserver(gl).observe(t,{childList:!0})),n.add(e)}}function gl(e,t){let n=e[0].target,r=n[pl],i=new Set;for(let{addedNodes:t}of e)t.forEach(e=>i.add(e));let a=new Set;r.forEach(e=>{e.parentNode===n?i.size&&a.add(ml(e,i)):(r.delete(e),hl(e),a.add(ml(e,!0)))}),a.forEach(e=>e&&e()),r.size||(t.disconnect(),n[pl]=void 0)}function _l(e,t){if(e.shapeFlag&128){let n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{_l(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)vl(e.el,t);else if(e.type===z)e.children.forEach(e=>_l(e,t));else if(e.type===Os){let{el:n,anchor:r}=e;for(;n&&(vl(n,t),n!==r);)n=n.nextSibling}}function vl(e,t){if(e.nodeType===1){let n=e.style,r=``;for(let e in t){let i=He(t[e]);n.setProperty(`--${e}`,i),r+=`--${e}: ${i};`}n[dl]=r}}var yl=/(?:^|;)\s*display\s*:/;function bl(e,t,n){let r=e.style,i=E(n),a=!1;if(n&&!i){if(t){if(E(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??Sl(r,t,``)}else for(let e in t)n[e]??Sl(r,e,``)}for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?Sl(r,i,``):El(e,i,!E(t)&&t?t[i]:void 0,o)||Sl(r,i,o)}}else if(i){if(t!==n){let e=r[dl];e&&(n+=`;`+e),r.cssText=n,a=yl.test(n)}}else t&&e.removeAttribute(`style`);ol in e&&(i&&t===n||(e[ol]=a?r.display:``),e[sl]&&(r.display=`none`))}var xl=/\s*!important$/;function Sl(e,t,n){if(x(n))n.forEach(n=>Sl(e,t,n));else if(n??=``,t.startsWith(`--`))xl.test(n)?e.setProperty(t,n.replace(xl,``),`important`):e.setProperty(t,n);else{let r=Tl(e,t);xl.test(n)?e.setProperty(pe(r),n.replace(xl,``),`important`):e[r]=n}}var Cl=[`Webkit`,`Moz`,`ms`],wl={};function Tl(e,t){let n=wl[t];if(n)return n;let r=O(t);if(r!==`filter`&&r in e)return wl[t]=r;r=me(r);for(let n=0;n<Cl.length;n++){let i=Cl[n]+r;if(i in e)return wl[t]=i}return t}function El(e,t,n,r){return e.tagName===`TEXTAREA`&&(t===`width`||t===`height`)&&E(r)&&n===r}var Dl=`http://www.w3.org/1999/xlink`;function Ol(e,t,n,r,i,a=Ae(t)){r&&t.startsWith(`xlink:`)?n==null?e.removeAttributeNS(Dl,t.slice(6,t.length)):e.setAttributeNS(Dl,t,n):n==null||a&&!je(n)?e.removeAttribute(t):e.setAttribute(t,a?``:te(n)?String(n):n)}function kl(e,t,n,r,i){if(t===`innerHTML`||t===`textContent`){n!=null&&(e[t]=t===`innerHTML`?Nc(n):n);return}let a=e.tagName;if(t===`value`&&a!==`PROGRESS`&&!a.includes(`-`)){let r=a===`OPTION`?e.getAttribute(`value`)||``:e.value,i=n==null?e.type===`checkbox`?`on`:``:String(n);r===i&&`_value`in e||(e.value=i),n??e.removeAttribute(t),e._value=n;return}let o=!1;if(n===``||n==null){let r=typeof e[t];r===`boolean`?n=je(n):n==null&&r===`string`?(n=``,o=!0):r===`number`&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(i||t)}function Al(e,t,n,r){e.addEventListener(t,n,r)}function jl(e,t,n,r){e.removeEventListener(t,n,r)}var Ml=Symbol(`_vei`);function Nl(e,t,n,r,i=null){let a=e[Ml]||(e[Ml]={}),o=a[t];if(r&&o)o.value=r;else{let[n,s]=Il(t);r?Al(e,n,a[t]=Bl(r,i),s):o&&(jl(e,n,o,s),a[t]=void 0)}}var Pl=/(Once|Passive|Capture)$/,Fl=/^on:?(?:Once|Passive|Capture)$/;function Il(e){let t,n;for(;(n=e.match(Pl))&&!Fl.test(e);)t||={},e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===`:`?e.slice(3):pe(e.slice(2)),t]}var Ll=0,Rl=Promise.resolve(),zl=()=>Ll||=(Rl.then(()=>Ll=0),Date.now());function Bl(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;let r=n.value;if(x(r)){let n=e.stopImmediatePropagation;e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0};let i=r.slice(),a=[e];for(let n=0;n<i.length&&!e._stopped;n++){let e=i[n];e&&nr(e,t,5,a)}}else nr(r,t,5,[e])};return n.value=e,n.attached=zl(),n}var Vl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Hl=(e,t,n,r,i,a)=>{let o=i===`svg`;t===`class`?al(e,r,o):t===`style`?bl(e,n,r):h(t)?g(t)||Nl(e,t,n,r,a):(t[0]===`.`?(t=t.slice(1),1):t[0]===`^`?(t=t.slice(1),0):Ul(e,t,r,o))?(kl(e,t,r),e.tagName.includes(`-`)||t!==`value`&&t!==`checked`&&t!==`selected`||Ol(e,t,r,o,a,t!==`value`)):e._isVueCE&&(Wl(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!E(r)))?kl(e,O(t),r,a,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),Ol(e,t,r,o))};function Ul(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&Vl(t)&&T(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`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return Vl(t)&&E(n)?!1:t in e}function Wl(e,t){let n=e._def.props;if(!n)return!1;let r=O(t);return Array.isArray(n)?n.some(e=>O(e)===r):Object.keys(n).some(e=>O(e)===r)}var Gl={};function Kl(e,t,n){let r=L(e,t);oe(r)&&(r=_({},r,t));class i extends Yl{constructor(e){super(r,e,n)}}return i.def=r,i}var ql=((e,t)=>Kl(e,t,Gu)),Jl=typeof HTMLElement<`u`?HTMLElement:class{},Yl=class e extends Jl{constructor(e,t={},n=Wu){super(),this._def=e,this._props=t,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._styleAnchors=new WeakMap,this._ob=null,this.shadowRoot&&n!==Wu?this._root=this.shadowRoot:e.shadowRoot===!1?this._root=this:(this.attachShadow(_({},e.shadowRootOptions,{mode:`open`})),this._root=this.shadowRoot)}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t&&=t.assignedSlot||t.parentNode||t.host;)if(t instanceof e){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{if(this._pendingResolve=void 0,this.isConnected)return this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._inheritParentContext(e))}_inheritParentContext(e=this._parent){e&&this._app&&Object.setPrototypeOf(this._app._context.provides,e._instance.provides)}disconnectedCallback(){this._connected=!1,fr(()=>{this._connected||(this._ob&&=(this._ob.disconnect(),null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&=(this._teleportTargets.clear(),void 0))})}_processMutations(e){for(let t of e)this._setAttr(t.attributeName)}_resolveDef(){if(this._pendingResolve)return this._pendingResolve;for(let e=0;e<this.attributes.length;e++)this._setAttr(this.attributes[e].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});let e=(e,t=!1)=>{this._resolved=!0,this._pendingResolve=void 0;let{props:n,styles:r}=e,i;if(n&&!x(n))for(let e in n){let t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=be(this._props[e])),(i||=Object.create(null))[O(e)]=!0)}this._numberProps=i,this._resolveProps(e),this.shadowRoot&&this._applyStyles(r),this._connected&&this._mount(e)},t=this._def.__asyncLoader;if(t)return this._pendingResolve=t().then(t=>{t.configureApp=this._def.configureApp,e(this._def=t,!0)}),this._pendingResolve;e(this._def)}_mount(e){this._app=this._createApp(e),this._inheritParentContext(),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);let t=this._instance&&this._instance.exposed;if(t)for(let e in t)b(this,e)||Object.defineProperty(this,e,{get:()=>P(t[e])})}_resolveProps(e){let{props:t}=e,n=x(t)?t:Object.keys(t||{});for(let e of Object.keys(this))e[0]!==`_`&&n.includes(e)&&this._setProp(e,this[e]);for(let e of n.map(O))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t,!0,!this._patching)}})}_setAttr(e){if(e.startsWith(`data-v-`))return;let t=this.hasAttribute(e),n=t?this.getAttribute(e):Gl,r=O(e);t&&this._numberProps&&this._numberProps[r]&&(n=be(n)),this._setProp(r,n,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,r=!1){if(t!==this._props[e]&&(this._dirty=!0,t===Gl?delete this._props[e]:(this._props[e]=t,e===`key`&&this._app&&(this._app._ceVNode.key=t)),r&&this._instance&&this._update(),n)){let n=this._ob;n&&(this._processMutations(n.takeRecords()),n.disconnect()),t===!0?this.setAttribute(pe(e),``):typeof t==`string`||typeof t==`number`?this.setAttribute(pe(e),t+``):t||this.removeAttribute(pe(e)),n&&n.observe(this,{attributes:!0})}}_update(){let e=this._createVNode();this._app&&(e.appContext=this._app._context),Hu(e,this._root)}_createVNode(){let e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));let t=W(this._def,_(e,this._props));return this._instance||(t.ce=e=>{this._instance=e,e.ce=this,e.isCE=!0;let t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,oe(t[0])?_({detail:t},t[0]):{detail:t}))};e.emit=(e,...n)=>{t(e,n),pe(e)!==e&&t(pe(e),n)},this._setParent()}),t}_applyStyles(e,t,n){if(!e)return;if(t){if(t===this._def||this._styleChildren.has(t))return;this._styleChildren.add(t)}let r=this._nonce,i=this.shadowRoot,a=n?this._getStyleAnchor(n)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(i),o=null;for(let s=e.length-1;s>=0;s--){let c=document.createElement(`style`);r&&c.setAttribute(`nonce`,r),c.textContent=e[s],i.insertBefore(c,o||a),o=c,s===0&&(n||this._styleAnchors.set(this._def,c),t&&this._styleAnchors.set(t,c))}}_getStyleAnchor(e){if(!e)return null;let t=this._styleAnchors.get(e);return t&&t.parentNode===this.shadowRoot?t:(t&&this._styleAnchors.delete(e),null)}_getRootStyleInsertionAnchor(e){for(let t=0;t<e.childNodes.length;t++){let n=e.childNodes[t];if(!(n instanceof HTMLStyleElement))return n}return null}_parseSlots(){let e=this._slots={},t;for(;t=this.firstChild;){let n=t.nodeType===1&&t.getAttribute(`slot`)||`default`;(e[n]||(e[n]=[])).push(t),this.removeChild(t)}}_renderSlots(){let e=this._getSlots(),t=this._instance.type.__scopeId;for(let n=0;n<e.length;n++){let r=e[n],i=r.getAttribute(`name`)||`default`,a=this._slots[i],o=r.parentNode;if(a)for(let e of a){if(t&&e.nodeType===1){let n=t+`-s`,r=document.createTreeWalker(e,1);e.setAttribute(n,``);let i;for(;i=r.nextNode();)i.setAttribute(n,``)}o.insertBefore(e,r)}else for(;r.firstChild;)o.insertBefore(r.firstChild,r);o.removeChild(r)}}_getSlots(){let e=[this];this._teleportTargets&&e.push(...this._teleportTargets);let t=new Set;for(let n of e){let e=n.querySelectorAll(`slot`);for(let n=0;n<e.length;n++)t.add(e[n])}return Array.from(t)}_injectChildStyle(e,t){this._applyStyles(e.styles,e,t)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_hasShadowRoot(){return this._def.shadowRoot!==!1}_removeChildStyle(e){}};function Xl(e){let t=ec();return t&&t.ce||null}function Zl(){let e=Xl();return e&&e.shadowRoot}function Ql(e=`$style`){{let t=ec();if(!t)return d;let n=t.type.__cssModules;return n&&n[e]||d}}var $l=new WeakMap,eu=new WeakMap,tu=Symbol(`_moveCb`),nu=Symbol(`_enterCb`),ru=new WeakMap,iu=(e=>(delete e.props.mode,e))({name:`TransitionGroup`,props:_({},Uc,{tag:String,moveClass:String}),setup(e,{slots:t}){let n=ec(),r=si(),i,a,o,s,c=()=>(s===void 0&&(s=i.length>0&&pu(i[0].el,n.vnode.el,ou(e))),s);return ma(()=>{if(ru.delete(n),!c()){i=[],o=void 0;return}let t=ou(e);i.forEach(au);let r=o&&fu(o,n.vnode.el);o=void 0,i.forEach(e=>su(e,r));let a=i.filter(cu);il(n.vnode.el),a.forEach(e=>{let n=e.el,r=n.style;Xc(n,t),r.transform=r.webkitTransform=r.transitionDuration=``;let i=n[tu]=e=>{e&&e.target!==n||(!e||e.propertyName.endsWith(`transform`))&&(n.removeEventListener(`transitionend`,i),n[tu]=null,Zc(n,t))};n.addEventListener(`transitionend`,i)}),i=[]}),()=>{let l=M(e),u=qc(l),d=l.tag||z;if(i=[],s=void 0,a)for(let e=0;e<a.length;e++){let t=a[e];t.el&&t.el instanceof Element&&!t.el[sl]&&(i.push(t),_i(t,mi(t,u,r,n)),$l.set(t,lu(t.el)))}a=t.default?vi(t.default()):[];for(let e=0;e<a.length;e++){let t=a[e];t.key!=null&&_i(t,mi(t,u,r,n))}return i.length&&(o=uu(n),ru.set(n,c)),W(d,null,a)}}});function au(e){let t=e.el;t[tu]&&t[tu](),t[nu]&&t[nu]()}function ou(e){return e.moveClass||`${e.name||`v`}-move`}function su(e,t){eu.set(e,lu(e.el,t))}function cu(e){let t=$l.get(e),n=eu.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){let t=e.el,n=t.style,a=t.getBoundingClientRect(),o=1,s=1;return t.offsetWidth&&(o=a.width/t.offsetWidth),t.offsetHeight&&(s=a.height/t.offsetHeight),Number.isFinite(o)&&o!==0||(o=1),Number.isFinite(s)&&s!==0||(s=1),Math.abs(o-1)<.01&&(o=1),Math.abs(s-1)<.01&&(s=1),n.transform=n.webkitTransform=`translate(${r/o}px,${i/s}px)`,n.transitionDuration=`0s`,e}}function lu(e,t){let n=e.getBoundingClientRect();return{left:n.left-(t?t.left:0),top:n.top-(t?t.top:0)}}function uu(e){let t;for(let n=e.parent;n;n=n.parent){let r=ru.get(n);if(r){let i=du(n.vnode.el,e.vnode.el);i&&(t||=[]).push(_(lu(i),{item:i,willMove:r}))}}return t}function du(e,t){let n=e.nodeType===1?e:e.parentNode;for(;t&&t.parentNode!==n;)t=t.parentNode;if(t&&t.nodeType===1)return t}function fu(e,t){let n=e.find(e=>e.willMove()&&e.item.contains(t));return n&&lu(n.item,n)}function pu(e,t,n){let r=e.cloneNode(),i=e[Vc];i&&i.forEach(e=>{e.split(/\s+/).forEach(e=>e&&r.classList.remove(e))}),n.split(/\s+/).forEach(e=>e&&r.classList.add(e)),r.style.display=`none`;let a=t.nodeType===1?t:t.parentNode;a.appendChild(r);let{hasTransform:o}=tl(r);return a.removeChild(r),o}var mu=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return x(t)?e=>_e(t,e):t};function hu(e){e.target.composing=!0}function gu(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var _u=Symbol(`_assign`),vu=Symbol(`_initialValue`);function yu(e,t,n){return t&&(e=e.trim()),n&&(e=ye(e)),e}var J={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e.parentNode&&(e.type===`text`?e[vu]=e.defaultValue.replace(/[\r\n]/g,``):e.type===`textarea`&&(e[vu]=e.defaultValue.replace(/\r\n?/g,`
|
||
`))),e[_u]=mu(i);let a=r||i.props&&i.props.type===`number`;Al(e,t?`change`:`input`,t=>{t.target.composing||e[_u](yu(e.value,n,a))}),(n||a)&&Al(e,`change`,()=>{e.value=yu(e.value,n,a)}),t||(Al(e,`compositionstart`,hu),Al(e,`compositionend`,gu),Al(e,`change`,gu))},mounted(e,{value:t,modifiers:{trim:n,number:r}}){let i=t??``,a=e[vu];delete e[vu],a!==void 0&&(e.type===`text`||e.type===`textarea`)&&e.value!==a?e[_u](yu(e.value,n,r)):e.value=i},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[_u]=mu(o),e.composing)return;let s=(a||e.type===`number`)&&!/^0\d/.test(e.value)?ye(e.value):e.value,c=t??``;if(s===c)return;let l=e.getRootNode();(l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===e&&e.type!==`range`&&(r&&t===n||i&&e.value.trim()===c)||(e.value=c)}},bu={deep:!0,created(e,t,n){e[_u]=mu(n),Al(e,`change`,()=>{let t=e._modelValue,n=Eu(e),r=e.checked,i=e[_u];if(x(t)){let e=Le(t,n),a=e!==-1;if(r&&!a)i(t.concat(n));else if(!r&&a){let n=[...t];n.splice(e,1),i(n)}}else if(C(t)){let e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(Du(e,r))})},mounted:xu,beforeUpdate(e,t,n){e[_u]=mu(n),xu(e,t,n)}};function xu(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(x(t))i=Le(t,r.props.value)>-1;else if(C(t))i=t.has(r.props.value);else{if(t===n)return;i=Ie(t,Du(e,!0))}e.checked!==i&&(e.checked=i)}var Su={created(e,{value:t},n){e.checked=Ie(t,n.props.value),e[_u]=mu(n),Al(e,`change`,()=>{e[_u](Eu(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[_u]=mu(r),t!==n&&(e.checked=Ie(t,r.props.value))}},Cu={deep:!0,created(e,{value:t,modifiers:{number:n}},r){e._modelValue=t,Al(e,`change`,()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?ye(Eu(e)):Eu(e)),r=e.multiple,i=r?C(e._modelValue)?new Set(t):t:t[0],a=e._pendingValue=[r,r?x(i)?t.slice():t:i];try{e[_u](i)}finally{fr(()=>{e._pendingValue===a&&(e._pendingValue=void 0)})}}),e[_u]=mu(r)},mounted(e,{value:t,modifiers:{number:n}}){Tu(e,t,n)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[_u]=mu(n)},updated(e,{value:t,modifiers:{number:n}}){let r=e._pendingValue;e._pendingValue=void 0,r&&r[0]===e.multiple&&wu(t,r[1],r[0])||Tu(e,t,n)}};function wu(e,t,n){if(!n||x(e))return Ie(e,t);if(C(e)){if(e.size!==t.length)return!1;for(let n of t)if(!e.has(n))return!1;return!0}return!1}function Tu(e,t,n=!1){let r=e.multiple,i=x(t);if(!r||i||C(t)){for(let a=0,o=e.options.length;a<o;a++){let o=e.options[a],s=Eu(o);if(r){if(i){let e=typeof s;o.selected=e===`string`||e===`number`?t.some(e=>String(e)===String(s)):Le(t,s)>-1}else o.selected=t.has(s)||n&&typeof s==`string`&&t.has(ye(s))}else if(Ie(Eu(o),t)){e.selectedIndex!==a&&(e.selectedIndex=a);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Eu(e){return`_value`in e?e._value:e.value}function Du(e,t){let n=t?`_trueValue`:`_falseValue`;return n in e?e[n]:t}var Ou={created(e,t,n){Au(e,t,n,null,`created`)},mounted(e,t,n){Au(e,t,n,null,`mounted`)},beforeUpdate(e,t,n,r){Au(e,t,n,r,`beforeUpdate`)},updated(e,t,n,r){Au(e,t,n,r,`updated`)}};function ku(e,t){switch(e){case`SELECT`:return Cu;case`TEXTAREA`:return J;default:switch(t){case`checkbox`:return bu;case`radio`:return Su;default:return J}}}function Au(e,t,n,r,i){let a=ku(e.tagName,n.props&&n.props.type)[i];a&&a(e,t,n,r)}function ju(){J.getSSRProps=({value:e})=>({value:e}),Su.getSSRProps=({value:e},t)=>{if(t.props&&Ie(t.props.value,e))return{checked:!0}},bu.getSSRProps=({value:e},t)=>{if(x(e)){if(t.props&&Le(e,t.props.value)>-1)return{checked:!0}}else if(C(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},Ou.getSSRProps=(e,t)=>{if(typeof t.type!=`string`)return;let n=ku(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}var Mu=[`ctrl`,`shift`,`alt`,`meta`],Nu={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>`button`in e&&e.button!==0,middle:e=>`button`in e&&e.button!==1,right:e=>`button`in e&&e.button!==2,exact:(e,t)=>Mu.some(n=>e[`${n}Key`]&&!t.includes(n))},Pu=(e,t)=>{if(!e)return e;let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e<t.length;e++){let r=Nu[t[e]];if(r&&r(n,t))return}return e(n,...r)}))},Fu={esc:`escape`,space:` `,up:`arrow-up`,left:`arrow-left`,right:`arrow-right`,down:`arrow-down`,delete:`backspace`},Iu=(e,t)=>{let n=e._withKeys||={},r=t.join(`.`),i=n[r];if(i)return i;let a=t.some(e=>e===`left`||e===`right`);return n[r]=(n=>{if(!(`key`in n))return a?e(n):void 0;let r=pe(n.key);if(t.some(e=>e===r||Fu[e]===r))return e(n)})},Lu=_({patchProp:Hl},Rc),Ru,zu=!1;function Bu(){return Ru||=Qo(Lu)}function Vu(){return Ru=zu?Ru:$o(Lu),zu=!0,Ru}var Hu=((...e)=>{Bu().render(...e)}),Uu=((...e)=>{Vu().hydrate(...e)}),Wu=((...e)=>{let t=Bu().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=qu(e);if(!r)return;let i=t._component;T(i)||i.render||i.template||(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,Ku(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t}),Gu=((...e)=>{let t=Vu().createApp(...e),{mount:n}=t;return t.mount=e=>{let t=qu(e);if(t)return n(t,!0,Ku(t))},t});function Ku(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function qu(e){return E(e)?document.querySelector(e):e}var Ju=!1,Yu=()=>{Ju||(Ju=!0,ju(),ul())},Xu=s({BaseTransition:()=>fi,BaseTransitionPropsValidators:()=>li,Comment:()=>Ds,DeprecationTypes:()=>null,EffectScope:()=>We,ErrorCodes:()=>$n,ErrorTypeStrings:()=>Dc,Fragment:()=>z,KeepAlive:()=>ta,ReactiveEffect:()=>Xe,Static:()=>Os,Suspense:()=>fs,Teleport:()=>ni,Text:()=>Es,TrackOpTypes:()=>Bn,Transition:()=>Wc,TransitionGroup:()=>iu,TriggerOpTypes:()=>Vn,VueElement:()=>Yl,assertNumber:()=>Qn,callWithAsyncErrorHandling:()=>nr,callWithErrorHandling:()=>tr,camelize:()=>O,capitalize:()=>me,cloneVNode:()=>Hs,compatUtils:()=>null,compile:()=>Zu,computed:()=>q,createApp:()=>Wu,createBlock:()=>H,createCommentVNode:()=>K,createElementBlock:()=>V,createElementVNode:()=>U,createHydrationRenderer:()=>$o,createPropsRestProxy:()=>Za,createRenderer:()=>Qo,createSSRApp:()=>Gu,createSlots:()=>ka,createStaticVNode:()=>Us,createTextVNode:()=>G,createVNode:()=>W,customRef:()=>Mn,defineAsyncComponent:()=>Qi,defineComponent:()=>L,defineCustomElement:()=>Kl,defineEmits:()=>za,defineExpose:()=>Ba,defineModel:()=>Ua,defineOptions:()=>Va,defineProps:()=>Ra,defineSSRCustomElement:()=>ql,defineSlots:()=>Ha,devtools:()=>Oc,effect:()=>lt,effectScope:()=>Ge,getCurrentInstance:()=>ec,getCurrentScope:()=>Ke,getCurrentWatcher:()=>Gn,getTransitionRawChildren:()=>vi,guardReactiveProps:()=>Vs,h:()=>xc,handleError:()=>rr,hasInjectionContext:()=>Fr,hydrate:()=>Uu,hydrateOnIdle:()=>Gi,hydrateOnInteraction:()=>Yi,hydrateOnMediaQuery:()=>Ji,hydrateOnVisible:()=>qi,initCustomFormatter:()=>Sc,initDirectivesForSSR:()=>Yu,inject:()=>Pr,isMemoSame:()=>wc,isProxy:()=>yn,isReactive:()=>gn,isReadonly:()=>_n,isRef:()=>Cn,isRuntimeOnly:()=>pc,isShallow:()=>vn,isVNode:()=>Fs,markRaw:()=>bn,mergeDefaults:()=>Ya,mergeModels:()=>Xa,mergeProps:()=>qs,nextTick:()=>fr,nodeOps:()=>Rc,normalizeClass:()=>A,normalizeProps:()=>Oe,normalizeStyle:()=>k,onActivated:()=>ra,onBeforeMount:()=>da,onBeforeUnmount:()=>ha,onBeforeUpdate:()=>pa,onDeactivated:()=>ia,onErrorCaptured:()=>ba,onMounted:()=>fa,onRenderTracked:()=>ya,onRenderTriggered:()=>va,onScopeDispose:()=>qe,onServerPrefetch:()=>_a,onUnmounted:()=>ga,onUpdated:()=>ma,onWatcherCleanup:()=>Kn,openBlock:()=>B,patchProp:()=>Hl,popScopeId:()=>Ar,provide:()=>Nr,proxyRefs:()=>An,pushScopeId:()=>kr,queuePostFlushCb:()=>gr,reactive:()=>dn,readonly:()=>pn,ref:()=>N,registerRuntimeCompiler:()=>fc,render:()=>Hu,renderList:()=>R,renderSlot:()=>Aa,resolveComponent:()=>Ca,resolveDirective:()=>Ea,resolveDynamicComponent:()=>Ta,resolveFilter:()=>null,resolveTransitionHooks:()=>mi,setBlockTracking:()=>Ns,setDevtoolsHook:()=>kc,setTransitionHooks:()=>_i,shallowReactive:()=>fn,shallowReadonly:()=>mn,shallowRef:()=>wn,ssrContextKey:()=>Ir,ssrUtils:()=>Ac,stop:()=>ut,toDisplayString:()=>j,toHandlerKey:()=>he,toHandlers:()=>Ma,toRaw:()=>M,toRef:()=>In,toRefs:()=>Nn,toValue:()=>On,transformVNodeArgs:()=>Ls,triggerRef:()=>Dn,unref:()=>P,useAttrs:()=>Ka,useCssModule:()=>Ql,useCssVars:()=>fl,useHost:()=>Xl,useId:()=>bi,useModel:()=>yo,useSSRContext:()=>Lr,useShadowRoot:()=>Zl,useSlots:()=>Ga,useTemplateRef:()=>Si,useTransitionState:()=>si,vModelCheckbox:()=>bu,vModelDynamic:()=>Ou,vModelRadio:()=>Su,vModelSelect:()=>Cu,vModelText:()=>J,vShow:()=>cl,version:()=>Tc,warn:()=>Ec,watch:()=>Vr,watchEffect:()=>Rr,watchPostEffect:()=>zr,watchSyncEffect:()=>Br,withAsyncContext:()=>Qa,withCtx:()=>F,withDefaults:()=>Wa,withDirectives:()=>I,withKeys:()=>Iu,withMemo:()=>Cc,withModifiers:()=>Pu,withScopeId:()=>jr}),Zu=()=>{},Qu=class extends Error{status;body;constructor(e,t){super(t?.message??`HTTP ${e}`),this.status=e,this.body=t}get errors(){return Object.fromEntries(Object.entries(this.body?.errors??{}).map(([e,t])=>[e,t[0]]))}},Y=JSON.parse(document.getElementById(`manager-boot`).textContent);function $u(){let e=document.cookie.match(/(?:^|; )XSRF-TOKEN=([^;]+)/);return e?decodeURIComponent(e[1]):``}async function ed(e,t,n){let r=await fetch(t,{method:e,credentials:`same-origin`,headers:{Accept:`application/json`,"X-Requested-With":`XMLHttpRequest`,"X-XSRF-TOKEN":$u(),...n===void 0?{}:{"Content-Type":`application/json`}},body:n===void 0?void 0:JSON.stringify(n)}),i=r.status===204?null:await r.json().catch(()=>null);if(r.status===423&&i?.two_factor&&i.two_factor!==Y.two_factor?.state&&window.location.reload(),!r.ok)throw new Qu(r.status,i);return i}async function td(e,t){let n=await fetch(e,{method:`POST`,credentials:`same-origin`,headers:{Accept:`application/json`,"X-Requested-With":`XMLHttpRequest`,"X-XSRF-TOKEN":$u()},body:t}),r=await n.json().catch(()=>null);if(!n.ok)throw new Qu(n.status,r);return r}var X={get:e=>ed(`GET`,e),post:(e,t={})=>ed(`POST`,e,t),put:(e,t={})=>ed(`PUT`,e,t),delete:(e,t)=>ed(`DELETE`,e,t)};function nd(e){let t=dn({values:{...e},errors:{},busy:!1,async send(e,n){t.busy=!0,t.errors={};try{return await X[e](n,t.values)}catch(e){if(e instanceof Qu&&e.status===422)return t.errors=e.errors,null;throw e}finally{t.busy=!1}}});return t}var rd={"Besides your password you type a code of 6 digits from an app on your phone. Then nobody can get in with only your password.":`Naast je wachtwoord typ je een code van 6 cijfers uit een app op je telefoon. Dan kan niemand met alleen je wachtwoord naar binnen.`,"Install an authenticator app on your phone, for example Google Authenticator, Microsoft Authenticator or 2FAS.":`Installeer een authenticator-app op je telefoon, bijvoorbeeld Google Authenticator, Microsoft Authenticator of 2FAS.`,"Press the button below and put your account in the app.":`Druk op de knop hieronder en zet je account in de app.`,"Type the 6 digits the app shows.":`Typ de 6 cijfers die de app laat zien.`,"Setup key":`Instelcode`,"Copy the key":`Code kopiëren`,"No camera, or you use a password manager such as Bitwarden? Add the setup key under the picture by hand: choose to add a key or secret, paste it, and keep the other options as they are (time based, 6 digits).":`Geen camera, of gebruik je een wachtwoordmanager zoals Bitwarden? Voeg de instelcode onder het plaatje met de hand toe: kies voor een sleutel of geheim toevoegen, plak hem erin en laat de rest staan (tijdgebaseerd, 6 cijfers).`,"Only those where this yes/no field is on":`Alleen die waarbij dit ja/nee-veld aan staat`,"The name of a yes/no field of the list, for example on_home. For posts: is_featured. Leave empty to show them all.":`De naam van een ja/nee-veld van de lijst, bijvoorbeeld on_home. Voor berichten: is_featured. Laat leeg om ze allemaal te tonen.`,Start:`Beginnen`,"Put your account in the app":`Zet je account in de app`,"Scan this picture with the app.":`Scan dit plaatje met de app.`,"Is this the phone you have the app on? Press the button, the app opens by itself.":`Is dit de telefoon waar de app op staat? Druk op de knop, de app opent vanzelf.`,"Open in the app":`Openen in de app`,Copy:`Kopiëren`,Copied:`Gekopieerd`,"The 6 digits the app shows":`De 6 cijfers die de app laat zien`,"Turn on":`Aanzetten`,"It is on. Keep these recovery codes safe.":`Het staat aan. Bewaar deze herstelcodes goed.`,"Lost your phone? Each of these codes works once instead of the 6 digits. Keep them somewhere safe, for example in a password manager. They are shown only now.":`Telefoon kwijt? Elk van deze codes werkt één keer in plaats van de 6 cijfers. Bewaar ze op een veilige plek, bijvoorbeeld in een wachtwoordmanager. Ze worden alleen nu getoond.`,"I have saved them":`Ik heb ze bewaard`,"That code is not right.":`Die code klopt niet.`,"One more step":`Nog één stap`,"Make your login extra safe":`Maak je login extra veilig`,"Type one of your recovery codes. Each works once.":`Typ een van je herstelcodes. Elke werkt één keer.`,"Open the authenticator app on your phone and type the 6 digits.":`Open de authenticator-app op je telefoon en typ de 6 cijfers.`,"Recovery code":`Herstelcode`,"The 6 digits":`De 6 cijfers`,Continue:`Doorgaan`,"Use the app instead":`Toch de app gebruiken`,"I lost my phone":`Ik ben mijn telefoon kwijt`,"You have to set this up now. The time you had for it is over.":`Dit moet je nu instellen. De tijd die je ervoor had is voorbij.`,"Extra safe login":`Extra veilig inloggen`,On:`Aan`,"You type a code from your phone after your password.":`Je typt na je wachtwoord een code van je telefoon.`,":count recovery codes left.":`Nog :count herstelcodes over.`,"New recovery codes":`Nieuwe herstelcodes`,"Turn off":`Uitzetten`,"You have to have this, so it cannot be turned off.":`Dit moet je hebben, dus je kunt het niet uitzetten.`,"To be sure it is you: your password and the 6 digits from the app.":`Om zeker te weten dat jij het bent: je wachtwoord en de 6 cijfers uit de app.`,"Make new codes":`Nieuwe codes maken`,"Your new recovery codes. The old ones do not work any more. They are shown only now.":`Je nieuwe herstelcodes. De oude werken niet meer. Ze worden alleen nu getoond.`,"You have to set this up.":`Dit moet je instellen.`,"You have to set this up within :days days.":`Dit moet je binnen :days dagen instellen.`,"Not on. You can turn it on to keep your account safer.":`Niet aan. Je kunt het aanzetten om je account veiliger te houden.`,"Set up":`Instellen`,"The second step is off.":`De tweede stap staat uit.`,"You have to make your login extra safe.":`Je moet je login extra veilig maken.`,"Make your login extra safe within :days days.":`Maak je login extra veilig binnen :days dagen.`,"Do it now":`Doe het nu`,"Requires two-step login":`Vraagt tweestapsinloggen`,"Everyone in this group has to set up a code from an authenticator app, within the days of grace the site allows. Super admins always have to.":`Iedereen in deze groep moet een code uit een authenticator-app instellen, binnen de uitstelperiode van de site. Super admins moeten dat altijd.`,"Two-step login required":`Tweestapsinloggen verplicht`,"Two-step login":`Tweestapsinloggen`,"Two-step login still to do":`Tweestapsinloggen nog te doen`,"Reset two-step login":`Tweestapsinloggen terugzetten`,"Take away the second step of :name? They set it up again at the next login.":`De tweede stap van :name weghalen? Die stelt hem bij de volgende login opnieuw in.`,"The second step is reset.":`De tweede stap is teruggezet.`,Dashboard:`Dashboard`,Lists:`Lijsten`,Project:`Project`,Administration:`Beheer`,"Log in":`Inloggen`,"Log out":`Uitloggen`,Email:`E-mailadres`,Password:`Wachtwoord`,"Keep me logged in":`Ingelogd blijven`,"Logging in…":`Bezig met inloggen…`,"Log in to manage the site.":`Log in om de site te beheren.`,"My account":`Mijn account`,Name:`Naam`,"Email address":`E-mailadres`,"What you may do":`Wat je mag`,"Super admin: everything":`Super admin: alles`,"Not in a group yet":`Nog in geen groep`,"New password":`Nieuw wachtwoord`,"Leave empty to keep the password you have.":`Laat leeg om je wachtwoord te houden.`,"Current password":`Huidig wachtwoord`,"At least 12 characters.":`Minstens 12 tekens.`,"New password, once more":`Nieuw wachtwoord, nogmaals`,Save:`Opslaan`,"Saving…":`Bezig met opslaan…`,"Saved.":`Opgeslagen.`,Look:`Uiterlijk`,Theme:`Thema`,Posts:`Berichten`,"New post":`Nieuw bericht`,Title:`Titel`,Status:`Status`,Category:`Categorie`,Edit:`Bewerken`,Delete:`Verwijderen`,"Put online":`Online zetten`,"Take offline":`Offline halen`,Draft:`Concept`,Scheduled:`Ingepland`,Published:`Gepubliceerd`,"Are you sure?":`Weet je het zeker?`,"No posts yet.":`Nog geen berichten.`,"Address (slug)":`Adres (slug)`,Summary:`Samenvatting`,"Text (Markdown)":`Tekst (Markdown)`,"Cover image":`Omslagafbeelding`,"Tags (comma separated)":`Tags (met komma's)`,Featured:`Uitgelicht`,Publish:`Publiceren`,"Publish at":`Publiceren op`,Menu:`Menu`,"Click the part of the picture that must stay in view.":`Klik op het deel van de foto dat in beeld moet blijven.`,"Focus point":`Scherpstelpunt`,Clear:`Wissen`,Formatting:`Opmaak`,Bold:`Vet`,Italic:`Cursief`,Heading:`Kop`,List:`Lijst`,Quote:`Citaat`,Link:`Link`,bold:`vet`,italic:`cursief`,text:`tekst`,Photo:`Foto`,Write:`Schrijven`,Preview:`Voorbeeld`,History:`Geschiedenis`,Now:`Nu`,"Put back":`Terugzetten`,"Put this version back? The text now is kept in the history.":`Deze versie terugzetten? De tekst van nu blijft bewaard in de geschiedenis.`,"The earlier version is back.":`De eerdere versie is terug.`,New:`Nieuw`,"New page":`Nieuwe pagina`,"Description for search engines":`Omschrijving voor zoekmachines`,"One per line.":`Eén per regel.`,"Show everything":`Alles tonen`,"Simple view":`Simpele weergave`,"Loading…":`Laden…`,"You may not open this page.":`Je mag deze pagina niet openen.`,"Something went wrong. Try again.":`Er ging iets mis. Probeer het opnieuw.`,"This page has no screen in the manager yet.":`Deze pagina heeft nog geen scherm in de manager.`,"Go to the dashboard":`Naar het dashboard`,"The page expired. Reload it and try again.":`De pagina is verlopen. Laad hem opnieuw en probeer het nog eens.`,Back:`Terug`,"Start screen":`Startscherm`,"The dashboard":`Het dashboard`,Primary:`Primair`,"Primary group":`Primaire groep`,"Where accounts with this as their primary group land when they open the manager.":`Waar accounts met dit als primaire groep landen als ze de manager openen.`,"The primary group is the label of the account and sets its start screen. What it may do is everything its groups allow together.":`De primaire groep is het label van het account en bepaalt het startscherm. Wat het account mag, is alles wat al zijn groepen samen toestaan.`,Settings:`Instellingen`,"Refresh now":`Nu verversen`,"Try it":`Proberen`,"Trying…":`Bezig met proberen…`,"Save first: it tries what is saved.":`Sla eerst op: er wordt geprobeerd met wat is opgeslagen.`,"The check could not be run.":`De controle kon niet worden uitgevoerd.`,"Refreshed.":`Ververst.`,"These parts need new tables:":`Deze onderdelen hebben nieuwe tabellen nodig:`,"Run php artisan migrate on the server.":`Draai php artisan migrate op de server.`,"The changes are saved, but the file that makes them work at once could not be written (bootstrap/cache). They work after Refresh now, or when that folder may be written.":`De wijzigingen zijn opgeslagen, maar het bestand dat ze direct laat werken kon niet geschreven worden (bootstrap/cache). Ze werken na Nu verversen, of als die map beschreven mag worden.`,"A change works at once and is kept in the database.":`Een wijziging werkt direct en wordt in de database bewaard.`,"It is also written into the .env file.":`Hij wordt ook in het .env-bestand geschreven.`,"The .env file may not be written here, so only the database is used.":`Het .env-bestand mag hier niet beschreven worden, dus alleen de database wordt gebruikt.`,"Set. Type to replace it.":`Ingesteld. Typ om te vervangen.`,"Keep what is saved":`Bewaar wat is opgeslagen`,"Back to what the config says":`Terug naar wat de config zegt`,"Your password":`Je wachtwoord`,"Keys, passwords and addresses of integrations are only changed after you type your own password.":`Sleutels, wachtwoorden en adressen van koppelingen worden alleen gewijzigd nadat je je eigen wachtwoord typt.`,Accounts:`Accounts`,"New account":`Nieuw account`,you:`jij`,"Super admin":`Super admin`,Groups:`Groepen`,Cancel:`Annuleren`,"New group":`Nieuwe groep`,Description:`Omschrijving`,accounts:`accounts`,"Categories and tags":`Categorieën en tags`,Categories:`Categorieën`,Tags:`Tags`,Add:`Toevoegen`,Rename:`Hernoemen`,"New name":`Nieuwe naam`,Pages:`Pagina's`,Reviews:`Reviews`,"Nothing here yet.":`Hier is nog niets.`,Previous:`Vorige`,Next:`Volgende`,Media:`Media`,"Choose an image":`Kies een afbeelding`,"No images yet.":`Nog geen afbeeldingen.`,"Uploaded.":`Geüpload.`,Upload:`Uploaden`,"Uploading…":`Bezig met uploaden…`,"This file is in use. Delete it anyway?":`Dit bestand is in gebruik. Toch verwijderen?`,"Largest file":`Grootste bestand`,"Alternative text":`Alternatieve tekst`,Used:`Gebruikt`,"No files yet.":`Nog geen bestanden.`,Choose:`Kiezen`,"Audit log":`Auditlog`,"Addresses banned":`Geblokkeerde adressen`,"Logins (24 h)":`Logins (24 u)`,"Failed logins (24 h)":`Mislukte logins (24 u)`,"Refused (24 h)":`Geweigerd (24 u)`,all:`alles`,logins:`logins`,failed:`mislukt`,actions:`acties`,viewed:`bekeken`,refused:`geweigerd`,bans:`blokkades`,Search:`Zoeken`,Account:`Account`,Everyone:`Iedereen`,Filter:`Filteren`,Someone:`Iemand`,banned:`geblokkeerd`,Ban:`Blokkeren`,Bans:`Blokkades`,"Minutes (0 = until lifted)":`Minuten (0 = tot opgeheven)`,Reason:`Reden`,"Whole site":`Hele site`,"No bans.":`Geen blokkades.`,automatic:`automatisch`,"whole site":`hele site`,hits:`pogingen`,Lift:`Opheffen`,Rules:`Regels`,"until lifted":`tot opgeheven`,"Ban an address by itself after too many failed logins":`Een adres zelf blokkeren na te veel mislukte logins`,"Failed logins":`Mislukte logins`,"Within minutes":`Binnen minuten`,"Ban for minutes (0 = until lifted)":`Blokkeren voor minuten (0 = tot opgeheven)`,"Keep the log (days)":`Log bewaren (dagen)`,"Notes about addresses":`Notities over adressen`,Group:`Groep`,Note:`Notitie`,Statistics:`Statistieken`,"compared with":`vergeleken met`,Visitors:`Bezoekers`,Visits:`Bezoeken`,"Page views":`Paginaweergaven`,"Average time":`Gemiddelde tijd`,"Bounce rate":`Bouncepercentage`,Channels:`Kanalen`,Sources:`Bronnen`,Countries:`Landen`,Devices:`Apparaten`,Browsers:`Browsers`,Systems:`Systemen`,Direct:`Direct`,"When people visit":`Wanneer mensen komen`,Programs:`Programma's`,Download:`Downloaden`,Sharing:`Delen`,"Posts are shared for real.":`Berichten worden echt gedeeld.`,'Dry run: nothing is sent to the networks. Turn on "Post for real" under Settings when the site is live.':`Proefrun: er wordt niets naar de netwerken gestuurd. Zet "Echt posten" aan bij Instellingen als de site live is.`,Connected:`Gekoppeld`,"Not connected":`Niet gekoppeld`,"Fill in under Settings:":`Vul in bij Instellingen:`,"Return address for the app":`Terugkeeradres voor de app`,Connect:`Koppel`,"Connect again":`Koppel opnieuw`,Disconnect:`Ontkoppel`,"Recently shared":`Onlangs gedeeld`,"Nothing has been shared yet.":`Er is nog niets gedeeld.`,"Dry run":`Proefrun`,Shared:`Gedeeld`,Failed:`Mislukt`,"The account is connected.":`Het account is gekoppeld.`,"The network did not give permission, or it was cancelled.":`Het netwerk gaf geen toestemming, of het is afgebroken.`,"Connecting did not complete. Try again.":`Koppelen is niet gelukt. Probeer het opnieuw.`,"The account is disconnected. What was shared stays where it is.":`Het account is ontkoppeld. Wat gedeeld is, blijft staan.`,Share:`Delen`,"Share now":`Nu delen`,"Dry run: nothing was sent.":`Proefrun: er is niets verstuurd.`,"Shared.":`Gedeeld.`,View:`Bekijk`,"Dry run: nothing is sent to the networks.":`Proefrun: er wordt niets naar de netwerken gestuurd.`,"Name of the service":`Naam van de dienst`,'What you call it, for example "Roof extensions".':`Hoe je het noemt, bijvoorbeeld "Dakkapellen".`,"Short description":`Korte beschrijving`,"One sentence that shows under the name.":`Eén zin die onder de naam staat.`,"The full story":`Het hele verhaal`,"What you do and how you work. This is the text on the page of this service.":`Wat je doet en hoe je werkt. Dit is de tekst op de pagina van deze dienst.`,"Main photo":`Hoofdfoto`,"What you do":`Wat je doet`,"Short lines, one per line.":`Korte regels, één per regel.`,"Questions people ask":`Vragen die mensen stellen`,"Add the questions you hear often, with your answer.":`Zet hier de vragen die je vaak hoort, met je antwoord.`,"Show this on my website":`Laat dit zien op mijn website`,"Name of the job":`Naam van de klus`,'For example "New kitchen in a farmhouse".':`Bijvoorbeeld "Nieuwe keuken in een boerderij".`,"What kind of work was it?":`Wat voor werk was het?`,Town:`Plaats`,"The town only, never the street.":`Alleen de plaats, nooit de straat.`,"Year it was finished":`Jaar waarin het klaar was`,"What happened":`Wat er gebeurd is`,"A few sentences about the job. Leave an empty line between paragraphs.":`Een paar zinnen over de klus. Laat een lege regel tussen alinea's.`,"The customer said these photos may be on the website":`De klant heeft gezegd dat deze foto's op de website mogen`,"Show this on the home page":`Laat dit zien op de voorpagina`,"Who said it":`Wie het zei`,"Where they live or what they do":`Waar ze wonen of wat ze doen`,'For example "Utrecht" or "owner of a bakery".':`Bijvoorbeeld "Utrecht" of "eigenaar van een bakkerij".`,"What they said":`Wat ze zeiden`,"Their words, as they gave them.":`Hun woorden, zoals ze ze gaven.`,"What the button says":`Wat er op de knop staat`,"Where it goes":`Waar het naartoe gaat`,"A page of your website, like /contact, or a full web address.":`Een pagina van je website, zoals /contact, of een volledig webadres.`,"Open it in a new tab":`Open het in een nieuw tabblad`,'For example "Facebook".':`Bijvoorbeeld "Facebook".`,"Web address of your page":`Webadres van je pagina`,"Name of your business":`Naam van je bedrijf`,"Your first name":`Je voornaam`,'Used on buttons such as "Call Alex".':`Staat op knoppen zoals "Bel Alex".`,"Your phone number":`Je telefoonnummer`,"As you want people to read it. It shows on every page, and behind the Call button.":`Zoals je wilt dat mensen het lezen. Het staat op elke pagina en achter de knop Bel.`,"Your WhatsApp number":`Je nummer voor WhatsApp`,"Leave it empty and there are no WhatsApp buttons on the website.":`Laat je het leeg, dan staan er geen WhatsApp-knoppen op de website.`,"Your mail address":`Je mailadres`,"It is never printed on the website, so spammers cannot find it. A visitor gets it by pressing a button.":`Het staat nergens leesbaar op de website, zodat spammers het niet vinden. Een bezoeker krijgt het door op een knop te drukken.`,"Street and number":`Straat en huisnummer`,"Chamber of Commerce number":`KvK-nummer`,"VAT number":`Btw-nummer`,"As on your invoices. Not sure? Leave it empty.":`Zoals op je facturen. Niet zeker? Laat het leeg.`,"When people can reach you":`Wanneer mensen je kunnen bereiken`,"One line per day or group of days, as you want it read.":`Eén regel per dag of groep dagen, zoals je het wilt laten lezen.`,"Towns where you work":`Plaatsen waar je werkt`,"One town per line.":`Eén plaats per regel.`,"What customers say":`Wat klanten zeggen`,"Customer review":`Review van een klant`,"Our jobs":`Onze klussen`,Job:`Klus`,"Buttons at the top":`Knoppen bovenaan`,Button:`Knop`,"Your pages on other sites":`Je pagina's op andere sites`,"About your business":`Over je bedrijf`,"What it cost":`Wat het kostte`,"What was built, and what it cost":`Wat er gebouwd is, en wat het kostte`,"The work":`Het werk`,"The AI model":`Het AI-model`,Hosting:`Hosting`,":hours hours at :rate an hour":`:hours uur à :rate per uur`,":count tokens":`:count tokens`,":amount a year, from :day":`:amount per jaar, vanaf :day`,Total:`Totaal`,":percent% discount on the work, until :day":`:percent% korting op het werk, tot :day`,"To pay":`Te betalen`,":count pieces of work have no hours yet.":`Bij :count stukken werk staan nog geen uren.`,":count pieces of work could not be priced yet.":`Voor :count stukken werk was nog geen prijs te bepalen.`,"No work has been recorded yet.":`Er is nog geen werk vastgelegd.`,"Not released yet":`Nog niet uitgebracht`,"Priced with the fixed rates of the site.":`Geprijsd met de vaste tarieven van de site.`,"Priced with the price of each day, and for some rows with the fixed rates of the site.":`Geprijsd met de prijs van elke dag, en voor een deel met de vaste tarieven van de site.`,"Priced with the price list and the euro rate of the day of each row.":`Geprijsd met de prijslijst en de eurokoers van de dag van elke regel.`,Numbers:`Cijfers`,Period:`Periode`,"The same as :period.":`Evenveel als :period.`,":count more than :period.":`:count meer dan :period.`,":count fewer than :period.":`:count minder dan :period.`,"Nothing has been counted in this period yet. As soon as people visit the site, you will see it here.":`In deze periode is er nog niets geteld. Zodra mensen de site bezoeken, zie je het hier.`,"Together they looked at :count pages.":`Samen bekeken ze :count pagina's.`,"Requests through the site":`Aanvragen via de site`,":count became a job.":`:count werd een klus.`,":count still wait for an answer.":`:count wachten nog op antwoord.`,"To the requests":`Naar de aanvragen`,"Taps on Call":`Tikken op Bel`,"Taps on WhatsApp":`Tikken op WhatsApp`,"Visitors per month":`Bezoekers per maand`,"Visitors per day":`Bezoekers per dag`,"Busiest: :when, with :count visitors.":`Het drukst: :when, met :count bezoekers.`,"Most viewed pages":`Meest bekeken pagina's`,":count times":`:count keer`,"How people find you":`Hoe mensen je vinden`,"What the requests were about":`Waar de aanvragen over gingen`,"Most read articles":`Meest gelezen artikelen`,":count messages of spam or advertising were kept away from you.":`:count berichten van spam of reclame zijn bij je weggehouden.`,"Visitors are counted without cookies. Search robots, and you yourself when you are logged in, are not counted.":`Bezoekers worden geteld zonder cookies. Zoekrobots en jijzelf, als je bent ingelogd, tellen niet mee.`,"Need help? Message :name":`Hulp nodig? App :name`,"Need help?":`Hulp nodig?`,"View the site":`Bekijk de site`,"Preview of the page":`Voorbeeld van de pagina`,"Width of the preview":`Breedte van het voorbeeld`,Phone:`Telefoon`,Tablet:`Tablet`,Desktop:`Bureaublad`,"Open the preview in a new tab":`Voorbeeld in een nieuw tabblad openen`,"View the page":`Bekijk de pagina`,"The preview could not be made.":`Het voorbeeld kon niet worden gemaakt.`,"Making the preview…":`Het voorbeeld wordt gemaakt…`,"No blocks yet.":`Nog geen blokken.`,Updates:`Updates`,"What changed on your website":`Wat er op je website veranderd is`,"No changes recorded yet.":`Er is nog niets bijgehouden.`,Requests:`Aanvragen`,Waiting:`Wachtend`,Handled:`Afgehandeld`,Other:`Overig`,Spam:`Spam`,"Note saved.":`Notitie bewaard.`,"Moved.":`Verplaatst.`,"Blocked.":`Geblokkeerd.`,"The block is lifted.":`De blokkade is opgeheven.`,"This could not be done.":`Dit kon niet worden gedaan.`,"The mail about this request could not be sent.":`De mail over deze aanvraag kon niet worden verstuurd.`,Where:`Waar`,Call:`Bel`,Mail:`Mail`,"Back to waiting":`Terug naar wachtend`,"It became a job":`Het is een klus geworden`,"No job":`Geen klus`,"A note for yourself":`Een notitie voor jezelf`,Screening:`Screening`,"It is a real request":`Dit is een echte aanvraag`,"This is not a request":`Dit is geen aanvraag`,"Block this address":`Blokkeer dit e-mailadres`,"Block its domain":`Blokkeer het domein`,"Block this number":`Blokkeer dit nummer`,"Block the sender address":`Blokkeer het adres van de afzender`,"Blocked senders":`Geblokkeerde afzenders`,until:`tot`,"What it brought in":`Wat het opleverde`,"The last :days days":`De laatste :days dagen`,requests:`aanvragen`,"became a job":`werden een klus`,"kept away by the screening":`tegengehouden door de screening`,"Ways in":`Manieren om binnen te komen`,About:`Waarover`,"Where the buttons are pressed":`Waar op de knoppen wordt gedrukt`,Remove:`Verwijderen`,"Add a picture":`Een foto toevoegen`,Open:`Openen`,"Created.":`Aangemaakt.`,"Deleted.":`Verwijderd.`,Language:`Taal`,"What this account sees":`Wat dit account ziet`,"What its rights give":`Wat zijn rechten geven`,"The simple manager":`De simpele manager`,"The whole manager":`De hele manager`,"Hi :name!":`Hoi :name!`,"What would you like to do today? Take your time and pick one.":`Wat wil je vandaag doen? Neem je tijd en kies er één.`,"Show the tour the next time this account opens the manager":`Toon de rondleiding de volgende keer dat dit account de manager opent`,"Hi :name! Welcome!":`Hoi :name! Welkom!`,"I will show you around in a few small steps. Looking around cannot break anything, and you can stop whenever you like: press the cross.":`Ik laat je in een paar kleine stapjes zien waar alles staat. Rondkijken kan niks stuk maken, en je kunt altijd stoppen: druk op het kruisje.`,"This is the menu":`Dit is het menu`,"Everything you can do lives here. Press a name and you are there.":`Alles wat je kunt doen staat hier. Druk op een naam en je bent er.`,"Your start page":`Je startpagina`,"Lost? Press Dashboard, at the top of the menu, and you are back here. Nice and calm.":`Even kwijt? Druk op Dashboard, bovenaan het menu, en je bent weer hier. Lekker rustig.`,"Write news":`Nieuws schrijven`,"Here you write articles and news for your website. Keep it as a draft until you are happy, then put it online.":`Hier schrijf je berichten en nieuws voor je website. Laat het een concept tot je tevreden bent, en zet het dan online.`,"Your photos":`Je foto's`,"All photos and files live here. Upload them once and use them in posts and pages.":`Alle foto's en bestanden staan hier. Upload ze één keer en gebruik ze in berichten en pagina's.`,"Your pages":`Je pagina's`,"Change the texts and photos of the pages of your website here.":`Pas hier de teksten en foto's van de pagina's van je website aan.`,"Changed your mind?":`Bedacht je het anders?`,"Every time you save a post or a page I keep the old version. You can always put an earlier one back.":`Elke keer dat je een bericht of pagina bewaart, bewaar ik de oude versie. Je kunt altijd een eerdere terugzetten.`,"Something went wrong?":`Gaat er iets mis?`,"A message tells you what. Read it, fix it and try again. Nothing is deleted without asking you first.":`Een melding vertelt wat. Lees hem, los het op en probeer het nog eens. Er wordt niks verwijderd zonder dat ik het eerst vraag.`,"Your own corner":`Je eigen hoekje`,"Here you choose your language and your colours, and change your password.":`Hier kies je je taal en je kleuren, en verander je je wachtwoord.`,"That is it!":`Dat was het!`,"Want to see this again? Press Show the tour in the menu. Have fun!":`Wil je dit nog eens zien? Druk op Rondleiding tonen in het menu. Veel plezier!`,"Stop the tour":`Rondleiding stoppen`,Tour:`Rondleiding`,"The tour":`De rondleiding`,"Show the tour":`Rondleiding tonen`,Done:`Klaar`,"Page layout":`Pagina-indeling`,"Page layout of :name":`Pagina-indeling van :name`,"The page every :name gets. Write {record.field} in a text to fill in a field of the record, for example {record.title}.":`De pagina die elke :name krijgt. Schrijf {record.veld} in een tekst om een veld van het item in te vullen, bijvoorbeeld {record.title}.`,"Fields you can fill in":`Velden die je kunt invullen`,Blocks:`Blokken`,"Add a block":`Blok toevoegen`,"Choose a block":`Kies een blok`,":name added":`:name toegevoegd`,"Moved to place :place of :total":`Verplaatst naar plek :place van :total`,"Block removed":`Blok verwijderd`,"Drag to reorder":`Sleep om de volgorde te veranderen`,"Edit :name":`:name bewerken`,"Alt + arrow up or down moves the block":`Alt + pijl omhoog of omlaag verplaatst het blok`,Hidden:`Verborgen`,"Move up":`Omhoog`,"Move down":`Omlaag`,Duplicate:`Dupliceren`,Show:`Tonen`,Hide:`Verbergen`,"No blocks yet. Add one to start.":`Nog geen blokken. Voeg er een toe om te beginnen.`,Opening:`Opening`,Content:`Inhoud`,"From lists":`Uit lijsten`,Action:`Actie`,Layout:`Indeling`,Site:`Site`,Background:`Achtergrond`,Width:`Breedte`,Spacing:`Ruimte`,Align:`Uitlijning`,Height:`Hoogte`,Side:`Kant`,Columns:`Kolommen`,None:`Geen`,Light:`Licht`,Dark:`Donker`,"Brand colour":`Merkkleur`,Normal:`Normaal`,Wide:`Breed`,"Full width":`Volle breedte`,Small:`Klein`,Medium:`Middel`,Large:`Groot`,Left:`Links`,Centred:`Gecentreerd`,Tall:`Hoog`,"Picture on the right":`Afbeelding rechts`,"Picture on the left":`Afbeelding links`,Cards:`Kaarten`,Tiles:`Tegels`,Hero:`Opening met foto`,"Page title":`Paginatitel`,Text:`Tekst`,"Text with picture":`Tekst met afbeelding`,Picture:`Afbeelding`,"Box with points":`Kader met punten`,Gallery:`Galerij`,"Before and after":`Voor en na`,"Questions and answers":`Vragen en antwoorden`,"Cards from a list":`Kaarten uit een lijst`,"Call to action":`Oproep tot actie`,"Request form":`Aanvraagformulier`,Line:`Lijn`,Space:`Ruimte`,"The big opening of the page":`De grote opening van de pagina`,"A piece of text":`Een stuk tekst`,"A text with a picture next to it":`Een tekst met een afbeelding ernaast`,"One picture":`Eén afbeelding`,"Several pictures":`Meerdere afbeeldingen`,"Your services, projects or reviews":`Je diensten, projecten of reviews`,"A banner that asks the visitor to act":`Een balk die de bezoeker iets laat doen`,"A form for visitors":`Een formulier voor bezoekers`,"Line above the title":`Regel boven de titel`,"The big title":`De grote titel`,"A few words under the title":`Een paar woorden onder de titel`,"Text under the title":`Tekst onder de titel`,"Words that follow each other":`Woorden die elkaar afwisselen`,Buttons:`Knoppen`,Main:`Hoofd`,Second:`Tweede`,Caption:`Onderschrift`,Points:`Punten`,Pictures:`Afbeeldingen`,Before:`Voor`,After:`Na`,Number:`Getal`,"After the number":`Achter het getal`,"What it is":`Wat het is`,Questions:`Vragen`,Question:`Vraag`,Answer:`Antwoord`,"Which list":`Welke lijst`,"How many":`Hoeveel`,"Text of the button":`Tekst van de knop`,"Address of the button":`Adres van de knop`,"Show the phone and WhatsApp buttons":`De knoppen voor bellen en WhatsApp tonen`,"Which form":`Welk formulier`,"Call me back":`Bel mij terug`,"A question":`Een vraag`,"A quote":`Een offerte`,"A message":`Een bericht`,"Place or function":`Plaats of functie`,"Use another photo":`Andere foto kiezen`,"Choose a photo":`Kies een foto`,"Take it away":`Weghalen`,"Add photos":`Foto's erbij`,"Choose a photo from this phone or computer":`Kies een foto van deze telefoon of computer`,"Choose photos from this phone or computer":`Kies foto's van deze telefoon of computer`,"Busy with :count…":`Bezig met :count…`,"Or use a photo that is already there:":`Of gebruik een foto die er al is:`,"On a phone you can also take a new photo. It is made smaller by itself, so a big photo is fine.":`Op een telefoon kun je ook een nieuwe foto maken. Hij wordt vanzelf kleiner gemaakt, dus een grote foto is prima.`,"Not every photo worked. Try those again, or ask the person who looks after your website.":`Niet alle foto's zijn gelukt. Probeer die nog een keer, of vraag het aan wie je website beheert.`,"The parts of your page":`De onderdelen van je pagina`,"Add something to the page":`Iets toevoegen aan de pagina`,'Nothing on this page yet. Press "Add something to the page" to start.':`Er staat nog niets op deze pagina. Druk op "Iets toevoegen aan de pagina" om te beginnen.`,"Press a part to change it. The arrows move it up or down. Nothing is lost: a part you take off the site can be put back.":`Druk op een onderdeel om het te veranderen. Met de pijltjes zet je het hoger of lager. Er gaat niets verloren: wat je van de site haalt, kun je terugzetten.`,"Put it back on the site":`Zet het terug op de site`,"Take it off the site":`Haal het van de site`,"Change how it looks":`Verander hoe het eruitziet`,"A title for the page":`Een titel voor de pagina`,"A box with a short list":`Een kader met een kort lijstje`,"Two photos: before and after":`Twee foto's: voor en na`,"What someone said about you":`Wat iemand over je zei`,"A few big numbers":`Een paar grote cijfers`,"A row of short words":`Een rij korte woorden`,"A line between two parts":`Een lijn tussen twee delen`,"Some empty room":`Wat lege ruimte`,"Wide (landscape), at least 1600 pixels across; it is cut to fit, so keep what matters in the middle.":`Breed (liggend), minstens 1600 pixels breed; hij wordt bijgesneden, dus houd wat belangrijk is in het midden.`,"Hold your phone sideways when you take it, and keep what matters in the middle: the edges can be cut off.":`Houd je telefoon liggend als je hem maakt en houd wat belangrijk is in het midden: de randen kunnen wegvallen.`,"Landscape or square, at least 1000 pixels across.":`Liggend of vierkant, minstens 1000 pixels breed.`,"Any photo will do, as long as it is sharp.":`Elke foto is goed, als hij maar scherp is.`,"At least 1200 pixels across; it is shown as wide as the block allows.":`Minstens 1200 pixels breed; hij wordt zo breed getoond als het onderdeel toelaat.`,"Any sharp photo will do. A photo from your phone is fine.":`Elke scherpe foto is goed. Een foto van je telefoon is prima.`,"At least 800 pixels across each; they are shown as squares or in a grid, so keep what matters in the middle.":`Elk minstens 800 pixels breed; ze worden als vierkantjes of in een raster getoond, dus houd wat belangrijk is in het midden.`,"Pick as many as you like, in one go. The first one comes first on the page.":`Kies er zoveel je wilt, in één keer. De eerste staat vooraan op de pagina.`,"Take both from the same spot and the same side, so they can be compared.":`Maak ze allebei vanaf dezelfde plek en kant, zodat ze te vergelijken zijn.`,"Take both photos from the same spot, then they fit together.":`Maak allebei de foto's vanaf dezelfde plek, dan passen ze bij elkaar.`,"The same size and angle as the photo before.":`Dezelfde maat en hoek als de foto van ervoor.`,"The same spot as the photo before.":`Dezelfde plek als de foto van ervoor.`},id={};function ad(e){id=e.toLowerCase().startsWith(`nl`)?rd:{}}function Z(e,t){let n=id[e]??e;return t?n.replace(/:(\w+)/g,(e,n)=>n in t?String(t[n]):e):n}var od=[`d`],sd=L({__name:`Icon`,props:{name:{},big:{type:Boolean}},setup(e){let t={home:`M3 11l9-8 9 8v9a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1z`,file:`M7 3h7l5 5v13H7zM14 3v5h5`,image:`M4 5h16v14H4zM4 16l5-5 4 4 3-3 4 4M9 9h.01`,users:`M16 20v-1a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v1M10 11a3 3 0 1 0 0-6 3 3 0 0 0 0 6M20 20v-1a3 3 0 0 0-2-2.8M16 5.2a3 3 0 0 1 0 5.6`,group:`M3 7h18v12H3zM8 7V5h8v2`,chart:`M4 20V10M10 20V4M16 20v-8M22 20H2`,shield:`M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6z`,star:`M12 3l2.7 5.6 6.1.9-4.4 4.3 1 6.1L12 17l-5.4 2.9 1-6.1L3.2 9.5l6.1-.9z`,tag:`M3 12V4h8l10 10-8 8zM7.5 8h.01`,link:`M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1`,layout:`M3 4h18v16H3zM3 9h18M9 9v11`,mail:`M3 5h18v14H3zM3 7l9 7 9-7`,coin:`M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18M14.5 9.5c-.5-1-1.4-1.5-2.5-1.5-1.4 0-2.5.8-2.5 2s1 1.7 2.5 2 2.5.8 2.5 2-1.1 2-2.5 2c-1.1 0-2-.5-2.5-1.5M12 6.5V8M12 16v1.5`,refresh:`M20 11a8 8 0 0 0-14.5-4M4 4v4h4M4 13a8 8 0 0 0 14.5 4M20 20v-4h-4`,share:`M18 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6M6 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6M18 22a3 3 0 1 0 0-6 3 3 0 0 0 0 6M8.6 13.5l6.8 4M15.4 6.5l-6.8 4`,clipboard:`M9 4h6v3H9zM7 5H5v16h14V5h-2M9 12h6M9 16h6`,list:`M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01`,hash:`M5 9h14M5 15h14M10 4L8 20M16 4l-2 16`,server:`M4 4h16v6H4zM4 14h16v6H4zM8 7h.01M8 17h.01`,dot:`M12 12h.01`,cog:`M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6M19 12a7 7 0 0 0-.1-1.2l2-1.5-2-3.4-2.3.9a7 7 0 0 0-2-1.2L14.2 3h-4l-.4 2.6a7 7 0 0 0-2 1.2l-2.3-.9-2 3.4 2 1.5A7 7 0 0 0 5 12c0 .4 0 .8.1 1.2l-2 1.5 2 3.4 2.3-.9a7 7 0 0 0 2 1.2l.4 2.6h4l.4-2.6a7 7 0 0 0 2-1.2l2.3.9 2-3.4-2-1.5c.1-.4.1-.8.1-1.2`};return(n,r)=>e.name&&t[e.name]?(B(),V(`svg`,{key:0,class:A(e.big?`h-8 w-8 shrink-0`:`h-4 w-4 shrink-0`),viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.8`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"aria-hidden":`true`},[U(`path`,{d:t[e.name]},null,8,od)],2)):K(``,!0)}}),cd=[`href`],ld=L({__name:`Link`,props:{href:{}},setup(e){function t(e,t){e.metaKey||e.ctrlKey||e.shiftKey||e.button!==0||(e.preventDefault(),bx(t))}return(n,r)=>(B(),V(`a`,{href:e.href,onClick:r[0]||=n=>t(n,e.href)},[Aa(n.$slots,`default`)],8,cd))}}),ud={key:0,class:`mx-auto max-w-3xl pt-4`},dd={class:`font-display text-3xl font-bold`},fd={class:`mb-8 mt-2 text-lg text-muted`},pd={key:0,class:`font-display mb-2 text-xl font-bold`},md={key:1,class:`mt-3 text-sm text-muted`},hd=[`onClick`],gd={class:`grid gap-4 sm:grid-cols-2`},_d={class:`flex items-start justify-between`},vd={key:0,class:`m-badge`,"aria-hidden":`true`},yd={class:`text-xl font-bold`},bd={key:0,class:`text-muted`},xd={key:1,class:`text-muted`},Sd={key:0,class:`mt-8 flex flex-wrap items-center gap-3`},Cd=[`href`],wd=[`href`],Td={class:`font-display mb-6 text-2xl font-bold`},Ed={class:`mb-4 text-muted`},Dd={key:0,class:`font-display mb-2 text-xl font-bold`},Od={key:1,class:`mt-3 text-sm text-muted`},kd=[`onClick`],Ad={class:`grid gap-3 sm:grid-cols-2 lg:grid-cols-3`},jd=L({__name:`Dashboard`,props:{navigation:{},facts:{},help:{},site:{},messages:{}},setup(e){let t=e,n=e=>`manager.message.${Y.user?.email??``}.${e}`,r=N((t.messages??[]).filter(e=>localStorage.getItem(n(e.id))!==null).map(e=>e.id)),i=q(()=>(t.messages??[]).filter(e=>!r.value.includes(e.id)));function a(e){localStorage.setItem(n(e),`1`),r.value=[...r.value,e]}let o=e=>e.split(/\n\s*\n/).map(e=>e.trim()).filter(e=>e!==``);function s(e){return e.icon?e.icon:e.href.endsWith(`/media`)?`image`:e.href.endsWith(`/posts`)||e.href.endsWith(`/pages`)?`file`:`star`}let c=Y.view===`simple`,l=(Y.user?.name??``).split(` `)[0];return(t,n)=>c?(B(),V(`div`,ud,[U(`h1`,dd,j(P(Z)(`Hi :name!`,{name:P(l)})),1),U(`p`,fd,j(P(Z)(`What would you like to do today? Take your time and pick one.`)),1),(B(!0),V(z,null,R(i.value,e=>(B(),V(`div`,{key:e.id,class:`m-card mb-6 border-brand p-5`,role:`note`},[e.title?(B(),V(`h2`,pd,j(e.title),1)):K(``,!0),(B(!0),V(z,null,R(o(e.text),(e,t)=>(B(),V(`p`,{key:t,class:`mb-2 whitespace-pre-line`},j(e),1))),128)),e.from?(B(),V(`p`,md,`— `+j(e.from),1)):K(``,!0),U(`button`,{type:`button`,class:`m-btn m-btn-secondary mt-4`,onClick:t=>a(e.id)},j(P(Z)(`Got it`)),9,hd)]))),128)),U(`div`,gd,[(B(!0),V(z,null,R(e.navigation,t=>(B(),H(ld,{key:t.href,href:t.href,class:`m-card m-tile`},{default:F(()=>[U(`span`,_d,[W(sd,{name:s(t),big:``,class:`text-brand`},null,8,[`name`]),e.facts?.[t.href]?.badge?(B(),V(`span`,vd,j(e.facts[t.href].badge),1)):K(``,!0)]),U(`span`,yd,j(P(Z)(t.label)),1),e.facts?.[t.href]?.summary?(B(),V(`span`,bd,j(e.facts[t.href].summary),1)):t.hint?(B(),V(`span`,xd,j(P(Z)(t.hint)),1)):K(``,!0)]),_:2},1032,[`href`]))),128))]),e.help||e.site?(B(),V(`div`,Sd,[e.help?(B(),V(`a`,{key:0,href:e.help.link,target:`_blank`,rel:`noopener`,class:`m-btn m-btn-secondary`},j(e.help.name?P(Z)(`Need help? Message :name`,{name:e.help.name}):P(Z)(`Need help?`)),9,Cd)):K(``,!0),e.site?(B(),V(`a`,{key:1,href:e.site,target:`_blank`,rel:`noopener`,class:`m-btn m-btn-secondary`},j(P(Z)(`View the site`)),9,wd)):K(``,!0)])):K(``,!0)])):(B(),V(z,{key:1},[U(`h1`,Td,j(P(Z)(`Dashboard`)),1),U(`p`,Ed,j(P(Y).user?.name),1),(B(!0),V(z,null,R(i.value,e=>(B(),V(`div`,{key:e.id,class:`m-card mb-6 border-brand p-5`,role:`note`},[e.title?(B(),V(`h2`,Dd,j(e.title),1)):K(``,!0),(B(!0),V(z,null,R(o(e.text),(e,t)=>(B(),V(`p`,{key:t,class:`mb-2 whitespace-pre-line`},j(e),1))),128)),e.from?(B(),V(`p`,Od,`— `+j(e.from),1)):K(``,!0),U(`button`,{type:`button`,class:`m-btn m-btn-secondary mt-4`,onClick:t=>a(e.id)},j(P(Z)(`Got it`)),9,kd)]))),128)),U(`div`,Ad,[(B(!0),V(z,null,R(e.navigation,e=>(B(),H(ld,{key:e.href,href:e.href,class:`m-card block p-5 font-semibold transition hover:border-brand`},{default:F(()=>[G(j(P(Z)(e.label)),1)]),_:2},1032,[`href`]))),128))])],64))}}),Md={class:`m-card max-w-xl p-6`},Nd={class:`text-sm`},Pd=L({__name:`Fallback`,setup(e){return(e,t)=>(B(),V(`div`,Md,[U(`p`,Nd,j(P(Z)(`This page has no screen in the manager yet.`)),1),W(ld,{href:P(Y).base,class:`m-btn m-btn-secondary mt-4`},{default:F(()=>[G(j(P(Z)(`Go to the dashboard`)),1)]),_:1},8,[`href`])]))}}),Fd={class:`grid min-h-screen place-items-center px-4`},Id=[`src`],Ld={class:`font-display text-2xl font-bold`},Rd={class:`mt-1 text-sm text-muted`},zd={class:`mt-6`},Bd={for:`email`,class:`m-label`},Vd={key:0,class:`m-error`},Hd={class:`mt-4`},Ud={for:`password`,class:`m-label`},Wd={key:0,class:`m-error`},Gd={key:0,class:`mt-4`},Kd={key:0,class:`m-error`},qd={key:1,class:`mt-4`},Jd=[`for`],Yd=[`id`,`onUpdate:modelValue`,`type`,`autocomplete`,`required`],Xd={key:0,class:`m-error`},Zd={class:`mt-4 flex items-center gap-2 text-sm text-muted`},Qd=[`disabled`],$d=L({__name:`Login`,setup(e){let t=Y.login_fields??[],n=nd({email:``,password:``,remember:!1,...Object.fromEntries(t.map(e=>[e.name,``]))}),r=N(null),i;fa(()=>{let e=t.find(e=>e.type===`turnstile`);if(!e)return;let a=()=>{i=window.turnstile.render(r.value,{sitekey:e.site_key,callback:t=>n.values[e.name]=t})};if(window.turnstile)a();else{let e=document.createElement(`script`);e.src=`https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit`,e.async=!0,e.onload=a,document.head.appendChild(e)}});async function a(){let e=await n.send(`post`,Y.base+`/login`);e?window.location.assign(e.redirect):(n.values.password=``,i!==void 0&&window.turnstile.reset(i),t.filter(e=>e.type===`turnstile`).forEach(e=>n.values[e.name]=``))}return(e,i)=>(B(),V(`div`,Fd,[U(`form`,{class:`m-card w-full max-w-sm p-7`,onSubmit:Pu(a,[`prevent`])},[P(Y).logo?(B(),V(`img`,{key:0,src:P(Y).logo,alt:``,class:`mb-4 h-9 w-auto`},null,8,Id)):K(``,!0),U(`h1`,Ld,j(P(Y).name),1),U(`p`,Rd,j(P(Z)(`Log in to manage the site.`)),1),U(`div`,zd,[U(`label`,Bd,j(P(Z)(`Email`)),1),I(U(`input`,{id:`email`,"onUpdate:modelValue":i[0]||=e=>P(n).values.email=e,type:`email`,autocomplete:`username`,required:``,autofocus:``,class:`m-input`},null,512),[[J,P(n).values.email]]),P(n).errors.email?(B(),V(`p`,Vd,j(P(n).errors.email),1)):K(``,!0)]),U(`div`,Hd,[U(`label`,Ud,j(P(Z)(`Password`)),1),I(U(`input`,{id:`password`,"onUpdate:modelValue":i[1]||=e=>P(n).values.password=e,type:`password`,autocomplete:`current-password`,required:``,class:`m-input`},null,512),[[J,P(n).values.password]]),P(n).errors.password?(B(),V(`p`,Wd,j(P(n).errors.password),1)):K(``,!0)]),(B(!0),V(z,null,R(P(t),e=>(B(),V(z,{key:e.name},[e.type===`turnstile`?(B(),V(`div`,Gd,[U(`div`,{ref_for:!0,ref:e=>r.value=e},null,512),P(n).errors[e.name]?(B(),V(`p`,Kd,j(P(n).errors[e.name]),1)):K(``,!0)])):(B(),V(`div`,qd,[U(`label`,{for:`login-`+e.name,class:`m-label`},j(P(Z)(e.label??e.name)),9,Jd),I(U(`input`,{id:`login-`+e.name,"onUpdate:modelValue":t=>P(n).values[e.name]=t,type:e.type===`password`||e.type===`number`?e.type:`text`,autocomplete:e.autocomplete,required:e.required,class:`m-input`},null,8,Yd),[[Ou,P(n).values[e.name]]]),P(n).errors[e.name]?(B(),V(`p`,Xd,j(P(n).errors[e.name]),1)):K(``,!0)]))],64))),128)),U(`label`,Zd,[I(U(`input`,{"onUpdate:modelValue":i[2]||=e=>P(n).values.remember=e,type:`checkbox`},null,512),[[bu,P(n).values.remember]]),G(` `+j(P(Z)(`Keep me logged in`)),1)]),U(`button`,{type:`submit`,class:`m-btn m-btn-primary mt-6 w-full justify-center`,disabled:P(n).busy},j(P(n).busy?P(Z)(`Logging in…`):P(Z)(`Log in`)),9,Qd)],32)]))}}),ef={x:0,y:0,width:1,height:1},tf={turns:0,flipH:!1,flipV:!1,straighten:0},nf={preset:`none`,brightness:0,contrast:0,saturation:0},rf=4096,af={"image/webp":`webp`,"image/jpeg":`jpg`,"image/png":`png`};function of(e){return[`image/jpeg`,`image/png`,`image/webp`].includes(e.type)}function sf(e){return{orientation:{...tf},crop:{...ef},adjust:{...nf},marks:[],focus:{x:.5,y:.5},output:{...e}}}function cf(e){return createImageBitmap(e,{imageOrientation:`from-image`})}function lf(e,t){let n=(t.turns%4+4)%4,r=n%2==1?e.height:e.width,i=n%2==1?e.width:e.height,a=Math.abs(t.straighten)*Math.PI/180,o=Math.cos(a)+Math.max(r/i,i/r)*Math.sin(a);return{width:r,height:i,matrix:new DOMMatrix().translate(r/2,i/2).rotate(t.straighten).scale(o).rotate(n*90).scale(t.flipH?-1:1,t.flipV?-1:1).translate(-e.width/2,-e.height/2),zoom:o}}function uf(e,t,n){let r=lf(e,t),i=Math.min(1,n/Math.max(r.width,r.height)),a=Tf(r.width*i,r.height*i),o=Ef(a);return o.setTransform(new DOMMatrix().scale(i).multiply(r.matrix)),o.drawImage(e,0,0),o.resetTransform(),a}function df(e,t,n,r){let i=lf(t,n),a=lf(t,r),o=a.matrix.multiply(i.matrix.inverse()),s=a.zoom/i.zoom,c=n.straighten,l=r.straighten,u=e=>{let t=o.transformPoint(new DOMPoint(e.x*i.width,e.y*i.height));return{x:t.x/a.width,y:t.y/a.height}},d=(e,t)=>{if(i.zoom===a.zoom&&c===l)return{from:u(e),to:u(t)};let n=u({x:(e.x+t.x)/2,y:(e.y+t.y)/2}),r=Math.abs(t.x-e.x)*i.width*s/2/a.width,o=Math.abs(t.y-e.y)*i.height*s/2/a.height;return{from:{x:n.x-r,y:n.y-o},to:{x:n.x+r,y:n.y+o}}};return e.map(e=>{switch(e.type){case`pen`:return{...e,points:e.points.map(u),size:e.size*s};case`arrow`:return{...e,from:u(e.from),to:u(e.to),size:e.size*s};case`text`:return{...e,at:u(e.at),size:e.size*s};case`rect`:return{...e,...d(e.from,e.to),size:e.size*s};case`blur`:return{...e,...d(e.from,e.to)}}})}function ff(e){return e.preset===`none`&&e.brightness===0&&e.contrast===0&&e.saturation===0}function pf(e,t){if(ff(t))return;let n=Ef(e),r=n.getImageData(0,0,e.width,e.height),i=r.data,a=t.preset,o=1+t.brightness/100,s=1+t.contrast/100,c=1+t.saturation/100,l=0;a===`faded`?(s*=.82,c*=.85,l=14):a===`vivid`&&(s*=1.12,c*=1.35);for(let e=0;e<i.length;e+=4){let t=i[e],n=i[e+1],r=i[e+2];if(a===`bw`)t=n=r=.2126*t+.7152*n+.0722*r;else if(a===`sepia`){let[e,i,a]=[t,n,r];t=.393*e+.769*i+.189*a,n=.349*e+.686*i+.168*a,r=.272*e+.534*i+.131*a}else a===`warm`?(t*=1.1,n*=1.02,r*=.9):a===`cool`&&(t*=.9,n*=1.01,r*=1.1);if(c!==1){let e=.2126*t+.7152*n+.0722*r;t=e+(t-e)*c,n=e+(n-e)*c,r=e+(r-e)*c}i[e]=((t-128)*s+128)*o+l,i[e+1]=((n-128)*s+128)*o+l,i[e+2]=((r-128)*s+128)*o+l}n.putImageData(r,0,0)}function mf(e,t){let n=Ef(e),{width:r,height:i}=e,a=Math.max(r,i),o=e=>[e.x*r,e.y*i];for(let r of t){if(n.save(),r.type===`blur`){hf(e,r),n.restore();continue}let t=Math.max(1,r.size*a);if(n.strokeStyle=r.color,n.fillStyle=r.color,n.lineWidth=t,n.lineCap=`round`,n.lineJoin=`round`,r.type===`pen`){let e=r.points.map(o);if(n.beginPath(),e.length===1)n.arc(e[0][0],e[0][1],t/2,0,Math.PI*2),n.fill();else{n.moveTo(e[0][0],e[0][1]);for(let t=1;t<e.length-1;t++){let r=(e[t][0]+e[t+1][0])/2,i=(e[t][1]+e[t+1][1])/2;n.quadraticCurveTo(e[t][0],e[t][1],r,i)}let t=e[e.length-1];n.lineTo(t[0],t[1]),n.stroke()}}else if(r.type===`arrow`){let[e,i]=o(r.from),[s,c]=o(r.to),l=Math.atan2(c-i,s-e),u=Math.min(Math.hypot(s-e,c-i),Math.max(t*4,a*.012));n.beginPath(),n.moveTo(e,i),n.lineTo(s-Math.cos(l)*u*.8,c-Math.sin(l)*u*.8),n.stroke(),n.beginPath(),n.moveTo(s,c),n.lineTo(s-u*Math.cos(l-.45),c-u*Math.sin(l-.45)),n.lineTo(s-u*Math.cos(l+.45),c-u*Math.sin(l+.45)),n.closePath(),n.fill()}else if(r.type===`rect`){let[e,t]=o(r.from),[i,a]=o(r.to);n.strokeRect(Math.min(e,i),Math.min(t,a),Math.abs(i-e),Math.abs(a-t))}else{let e=Math.max(8,r.size*a),[t,i]=o(r.at);n.font=`700 ${e}px system-ui, -apple-system, "Segoe UI", sans-serif`,n.textBaseline=`top`,n.lineWidth=Math.max(2,e*.14),n.strokeStyle=wf(r.color)?`rgba(0, 0, 0, 0.7)`:`rgba(255, 255, 255, 0.8)`,r.text.split(`
|
||
`).forEach((r,a)=>{n.strokeText(r,t,i+a*e*1.2),n.fillText(r,t,i+a*e*1.2)})}n.restore()}}function hf(e,t){let n=Ef(e),r=Math.max(e.width,e.height),i=Math.round(Sf(Math.min(t.from.x,t.to.x))*e.width),a=Math.round(Sf(Math.min(t.from.y,t.to.y))*e.height),o=Math.round(Sf(Math.max(t.from.x,t.to.x))*e.width)-i,s=Math.round(Sf(Math.max(t.from.y,t.to.y))*e.height)-a;if(o<2||s<2)return;let c=Sf(t.strength,1,100)/100,l=Math.max(2,(t.mode===`pixelate`?.008+c*.05:.004+c*.035)*r),u=Math.max(1,Math.round(o/l)),d=Math.max(1,Math.round(s/l)),f=Tf(o,s);for(Ef(f).drawImage(e,i,a,o,s,0,0,o,s);f.width/2>=u&&f.height/2>=d;){let e=Tf(Math.max(1,Math.floor(f.width/2)),Math.max(1,Math.floor(f.height/2)));Ef(e).drawImage(f,0,0,e.width,e.height),f=e}let p=Tf(u,d);if(Ef(p).drawImage(f,0,0,u,d),n.save(),n.beginPath(),t.shape===`ellipse`?n.ellipse(i+o/2,a+s/2,o/2,s/2,0,0,Math.PI*2):n.rect(i,a,o,s),n.clip(),t.mode===`pixelate`)n.imageSmoothingEnabled=!1,n.drawImage(p,0,0,u,d,i,a,o,s);else{let e=Tf(Math.min(o,u*4),Math.min(s,d*4));Ef(e).drawImage(p,0,0,e.width,e.height),n.drawImage(e,0,0,e.width,e.height,i,a,o,s)}n.restore()}function gf(e,t,n){let r=uf(e,t.orientation,n);return pf(r,t.adjust),mf(r,t.marks),r}function _f(e,t,n){return yf(gf(e,t,rf),{crop:t.crop,...t.output},n)}function vf(e,t){let n=Math.max(1,Math.round(e.width*t.crop.width)),r=Math.max(1,Math.round(e.height*t.crop.height)),i=Math.max(n,r),a=t.maxSize&&t.maxSize<i?t.maxSize/i:1;return{width:Math.max(1,Math.round(n*a)),height:Math.max(1,Math.round(r*a))}}async function yf(e,t,n){let r=Math.round(e.width*t.crop.x),i=Math.round(e.height*t.crop.y),a=Math.max(1,Math.min(e.width-r,Math.round(e.width*t.crop.width))),o=Math.max(1,Math.min(e.height-i,Math.round(e.height*t.crop.height))),s=vf(e,t),c=e,[l,u,d,f]=[r,i,a,o];for(;d/2>=s.width&&f/2>=s.height;){let e=Tf(Math.max(1,Math.floor(d/2)),Math.max(1,Math.floor(f/2)));Ef(e).drawImage(c,l,u,d,f,0,0,e.width,e.height),c=e,[l,u,d,f]=[0,0,e.width,e.height]}let p=Tf(s.width,s.height),m=Ef(p);t.format===`image/jpeg`&&(m.fillStyle=`#ffffff`,m.fillRect(0,0,p.width,p.height)),m.drawImage(c,l,u,d,f,0,0,p.width,p.height);let h=Math.min(100,Math.max(1,t.quality))/100,g=await new Promise(e=>p.toBlob(e,t.format,h));if(!g)throw Error(`The image could not be processed.`);let _=g.type in af?g.type:`image/png`,v=n.replace(/\.[^.]+$/,``)||`image`;return{file:new File([g],`${v}.${af[_]}`,{type:_}),width:p.width,height:p.height}}function bf(e,t){let n=e.width/e.height,r=t>=n?1:t/n,i=t>=n?n/t:1;return{x:(1-r)/2,y:(1-i)/2,width:r,height:i}}function xf(e){return e?`${Cf(e.x*100)}% ${Cf(e.y*100)}%`:`50% 50%`}function Sf(e,t=0,n=1){return Math.min(n,Math.max(t,e))}function Cf(e){return Math.round(e*100)/100}function wf(e){let t=/^#([0-9a-f]{6})$/i.exec(e)?.[1];if(!t)return!0;let n=parseInt(t,16);return .2126*(n>>16)+.7152*(n>>8&255)+.0722*(n&255)>140}function Tf(e,t){let n=document.createElement(`canvas`);return n.width=Math.max(1,Math.round(e)),n.height=Math.max(1,Math.round(t)),n}function Ef(e){let t=e.getContext(`2d`,{willReadFrequently:!1});if(!t)throw Error(`This browser cannot edit images.`);return t.imageSmoothingEnabled=!0,t.imageSmoothingQuality=`high`,t}var Df={class:`ie-backdrop`},Of=[`aria-label`],kf={class:`ie-header`},Af={class:`ie-title`},jf=[`disabled`,`aria-label`,`title`],Mf=[`disabled`,`aria-label`,`title`],Nf=[`aria-label`,`title`],Pf={class:`ie-body`},Ff={class:`ie-stage-wrap`},If={key:0,class:`ie-error`,role:`alert`},Lf={key:1,class:`ie-muted ie-loading`},Rf=[`onPointerdown`],zf=[`title`],Bf=[`placeholder`,`aria-label`],Vf={class:`ie-panel`},Hf=[`aria-label`],Uf=[`aria-selected`,`onClick`],Wf={key:0,class:`ie-tool`,role:`tabpanel`},Gf={class:`ie-hint`},Kf={class:`ie-options`},qf=[`aria-pressed`,`onClick`],Jf={class:`ie-options`},Yf={class:`ie-row`},Xf=[`value`,`aria-label`],Zf={key:1,class:`ie-tool`,role:`tabpanel`},Qf={class:`ie-options`},$f=[`aria-pressed`,`onClick`],ep=[`onUpdate:modelValue`],tp={key:2,class:`ie-tool`,role:`tabpanel`},np={class:`ie-hint`},rp={class:`ie-options`},ip=[`aria-pressed`,`onClick`],ap={class:`ie-options ie-swatches`},op=[`aria-label`,`aria-pressed`,`onClick`],sp=[`title`],cp=[`aria-label`],lp={class:`ie-row`},up=[`aria-label`],dp={key:3,class:`ie-tool`,role:`tabpanel`},fp={class:`ie-hint`},pp={class:`ie-options`},mp=[`aria-pressed`],hp=[`aria-pressed`],gp={class:`ie-options`},_p=[`aria-pressed`],vp=[`aria-pressed`],yp={class:`ie-row`},bp=[`aria-label`],xp={key:4,class:`ie-tool`,role:`tabpanel`},Sp={class:`ie-options`},Cp=[`aria-pressed`,`onClick`],wp={class:`ie-row`},Tp=[`value`],Ep={value:`image/webp`},Dp={value:`image/png`},Op=[`disabled`],kp={key:0},Ap=[`src`],jp=[`src`],Mp={class:`ie-result`,"aria-live":`polite`},Np={key:1,class:`ie-muted`},Pp={class:`ie-footer`},Fp=[`disabled`],Ip=1600,Lp=.05,Rp=((e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n})(L({__name:`ImageEditor`,props:{file:{},remaining:{default:0},maxSize:{default:2400},format:{default:`image/webp`},quality:{default:82}},emits:[`apply`,`original`,`originalAll`,`cancel`],setup(e,{emit:t}){let n=e,r=t,i=N(sf({maxSize:n.maxSize,format:n.format,quality:n.quality})),a=N([]),o=N(-1),s=q(()=>o.value>0),c=q(()=>o.value<a.value.length-1);function l(){let e=JSON.stringify(i.value);a.value[o.value]!==e&&(a.value=[...a.value.slice(0,o.value+1),e],o.value=a.value.length-1)}function u(e){let t=o.value+e;t<0||t>=a.value.length||(ke(!1),o.value=t,i.value=JSON.parse(a.value[t]))}let d=wn(null),f=N(null),p=N(null),m=N({width:0,height:0}),h=null,g=null,_=null,v=wn(null);async function y(){try{let e=await cf(n.file);d.value=e,h=uf(e,{turns:0,flipH:!1,flipV:!1,straighten:0},Ip),b(),l()}catch{f.value=Z(`This picture could not be opened for editing. You can still upload it as it is.`)}}function b(){h&&(g=uf(h,i.value.orientation,Ip),m.value={width:g.width,height:g.height},x())}function x(){g&&(_=document.createElement(`canvas`),_.width=g.width,_.height=g.height,_.getContext(`2d`)?.drawImage(g,0,0),pf(_,i.value.adjust),C())}let S=0;function C(){cancelAnimationFrame(S),S=requestAnimationFrame(()=>{let e=p.value;e&&_&&((e.width!==_.width||e.height!==_.height)&&(e.width=_.width,e.height=_.height),e.getContext(`2d`)?.drawImage(_,0,0),mf(e,v.value?[...i.value.marks,v.value]:i.value.marks))})}Vr(()=>i.value.orientation,b,{deep:!0}),Vr(()=>i.value.adjust,x,{deep:!0}),Vr([()=>i.value.marks,v,p],C,{deep:!0});let w=[{key:`crop`,label:`Crop`},{key:`adjust`,label:`Filter`},{key:`draw`,label:`Draw`},{key:`blur`,label:`Blur`},{key:`export`,label:`Size`}],ee=N(`crop`);function T(e){ke(!0),ee.value=e}let E=[{key:`free`,label:`Free`},{key:`original`,label:`Original`},{key:`16:9`,label:`16:9`},{key:`4:3`,label:`4:3`},{key:`1:1`,label:`Square`},{key:`3:4`,label:`3:4`}],te=N(`free`);function D(e){if(e===`free`||e===`original`)return m.value.width/m.value.height;let[t,n]=e.split(`:`).map(Number);return t/n}function ne(e){te.value=e,e!==`free`&&(i.value.crop=bf(m.value,D(e))),l()}function re(){return{width:d.value?.width??1,height:d.value?.height??1}}function ie(e){i.value.marks=df(i.value.marks,re(),i.value.orientation,e),i.value.orientation=e}function ae(e){let t=i.value.orientation;ie({...t,turns:(t.turns+e+4)%4}),fr(()=>{i.value.crop=te.value===`free`?{...ef}:bf(m.value,D(te.value)),i.value.focus={x:.5,y:.5},l()})}function oe(e){let t=i.value.orientation,n=t.turns%2==1,r=e===`h`!==n;ie({...t,flipH:r?!t.flipH:t.flipH,flipV:r?t.flipV:!t.flipV,straighten:-t.straighten});let a=i.value.crop,o=i.value.focus;e===`h`?(i.value.crop={...a,x:1-a.x-a.width},i.value.focus={...o,x:1-o.x}):(i.value.crop={...a,y:1-a.y-a.height},i.value.focus={...o,y:1-o.y}),l()}let se=null;function ce(e){let t=Number(e.target.value);se??={orientation:{...i.value.orientation},marks:JSON.parse(JSON.stringify(i.value.marks))};let n={...se.orientation,straighten:t};i.value.marks=df(se.marks,re(),se.orientation,n),i.value.orientation=n}function le(){se=null,l()}function ue(){ie({...i.value.orientation,straighten:0}),l()}let de=N(null),O=null;function fe(e){let t=de.value.getBoundingClientRect();return{x:Sf((e.clientX-t.left)/t.width),y:Sf((e.clientY-t.top)/t.height)}}function pe(e,t){de.value&&(O={mode:e,start:fe(t),crop:{...i.value.crop},moved:!1},de.value.setPointerCapture(t.pointerId))}function me(e){if(ee.value!==`draw`&&ee.value!==`blur`)return;e.preventDefault();let t=fe(e);if(ee.value===`blur`)v.value={type:`blur`,shape:Ne.value,from:t,to:t,mode:Pe.value,strength:Fe.value};else if(Ce.value===`text`){De.value?ke(!0):De.value={at:t,value:``};return}else Ce.value===`pen`?v.value={type:`pen`,points:[t],color:we.value,size:Ee.value}:v.value={type:Ce.value,from:t,to:t,color:we.value,size:Ee.value};pe(`mark`,e)}function he(e){if(!O)return;let t=fe(e),n=i.value.crop;if(O.moved=!0,O.mode===`mark`){let e=v.value;if(e?.type===`pen`){let n=e.points[e.points.length-1];Math.hypot(t.x-n.x,t.y-n.y)>.003&&(v.value={...e,points:[...e.points,t]})}else e&&e.type!==`text`&&(v.value={...e,to:t});return}if(O.mode===`focus`){i.value.focus={x:Sf((t.x-n.x)/n.width),y:Sf((t.y-n.y)/n.height)};return}let r=O.crop;if(O.mode===`move`){i.value.crop={...r,x:Sf(r.x+t.x-O.start.x,0,1-r.width),y:Sf(r.y+t.y-O.start.y,0,1-r.height)};return}let a=O.mode.endsWith(`e`),o=O.mode.startsWith(`s`),s=a?r.x:r.x+r.width,c=o?r.y:r.y+r.height,l=a?1-s:s,u=o?1-c:c,d=Sf(Math.abs(t.x-s),Lp,l),f=Sf(Math.abs(t.y-c),Lp,u);if(te.value!==`free`){let e=D(te.value)*(m.value.height/m.value.width);f=d/e,f>u&&(f=u,d=f*e)}i.value.crop={x:a?s:s-d,y:o?c:c-f,width:d,height:f}}function ge(){if(!O)return;let e=O;if(O=null,e.mode===`mark`){let e=v.value;v.value=null;let t=e&&e.type!==`pen`&&e.type!==`text`&&Math.hypot(e.to.x-e.from.x,e.to.y-e.from.y)<.015;e&&!t&&(i.value.marks=[...i.value.marks,e],l())}else e.moved&&l()}let _e=[{key:`none`,label:`None`},{key:`vivid`,label:`Vivid`},{key:`warm`,label:`Warm`},{key:`cool`,label:`Cool`},{key:`faded`,label:`Faded`},{key:`bw`,label:`B&W`},{key:`sepia`,label:`Sepia`}],ve=[{key:`brightness`,label:`Brightness`},{key:`contrast`,label:`Contrast`},{key:`saturation`,label:`Saturation`}];function ye(e){i.value.adjust.preset=e,l()}function be(){i.value.adjust={...nf},l()}let xe=[{key:`pen`,label:`Pen`},{key:`arrow`,label:`Arrow`},{key:`rect`,label:`Box`},{key:`text`,label:`Text`}],Se=[`#f43676`,`#ffffff`,`#111111`,`#facc15`,`#22d3ee`,`#22c55e`],Ce=N(`pen`),we=N(Se[0]),Te=N(4),Ee=q(()=>Ce.value===`text`?.02+Te.value*.006:Te.value*.0022),De=N(null),Oe=N(null);Vr(De,(e,t)=>{e&&!t&&fr(()=>Oe.value?.focus())});function ke(e){let t=De.value;De.value=null,e&&t&&t.value.trim()!==``&&(i.value.marks=[...i.value.marks,{type:`text`,at:t.at,text:t.value.trim(),color:we.value,size:Ee.value}],l())}let Ae=q(()=>i.value.marks.filter(e=>e.type!==`blur`).length),je=q(()=>i.value.marks.filter(e=>e.type===`blur`).length);function Me(e){i.value.marks=i.value.marks.filter(t=>t.type===`blur`!=(e===`blurs`)),l()}let Ne=N(`rect`),Pe=N(`blur`),Fe=N(60),Ie=[{value:null,label:`Keep size`},{value:2400,label:`2400 px`},{value:1600,label:`1600 px`},{value:1200,label:`1200 px`},{value:800,label:`800 px`}];function Le(e,t){i.value.output[e]=t,l()}let Re=wn(null),ze=N(null),Be=N(!1),Ve,He=0;Vr([i,d],()=>{window.clearTimeout(Ve),Be.value=!0,Ve=window.setTimeout(Ue,500)},{deep:!0});async function Ue(){let e=d.value;if(!e)return null;let t=++He;try{let r=await _f(e,i.value,n.file.name);return t===He?(Re.value=r,ze.value&&URL.revokeObjectURL(ze.value),ze.value=URL.createObjectURL(r.file),r):null}catch{return f.value=Z(`The picture could not be processed. You can still upload it as it is.`),null}finally{t===He&&(Be.value=!1)}}let We=N(!1);async function Ge(){ke(!0),window.clearTimeout(Ve),We.value=!0;let e=await Ue();We.value=!1,e&&r(`apply`,{file:e.file,focus:{...i.value.focus},width:e.width,height:e.height})}let Ke=q(()=>{if(!Re.value)return null;let e=Math.round((1-Re.value.file.size/n.file.size)*100);return e>0?Z(`:percent% smaller`,{percent:e}):e<0?Z(`:percent% larger`,{percent:-e}):Z(`same size`)});function qe(e){return e<1048576?`${Math.max(1,Math.round(e/1024))} KB`:`${(e/1024/1024).toFixed(1)} MB`}function Je(e){e.key===`Escape`?De.value?ke(!1):r(`cancel`):(e.ctrlKey||e.metaKey)&&e.key.toLowerCase()===`z`&&!De.value?(e.preventDefault(),u(e.shiftKey?1:-1)):(e.ctrlKey||e.metaKey)&&e.key.toLowerCase()===`y`&&!De.value&&(e.preventDefault(),u(1))}return fa(()=>{window.addEventListener(`keydown`,Je),y()}),ha(()=>{window.removeEventListener(`keydown`,Je),window.clearTimeout(Ve),cancelAnimationFrame(S),He++,d.value?.close(),ze.value&&URL.revokeObjectURL(ze.value)}),(t,n)=>(B(),V(`div`,Df,[U(`div`,{class:`ie-dialog`,role:`dialog`,"aria-modal":`true`,"aria-label":P(Z)(`Edit image`)},[U(`header`,kf,[U(`div`,Af,[U(`h2`,null,j(P(Z)(`Edit image`)),1),U(`p`,null,[G(j(e.file.name)+` · `+j(qe(e.file.size))+` `,1),Re.value?(B(),V(z,{key:0},[G(` → `+j(qe(Re.value.file.size)),1)],64)):K(``,!0)])]),U(`button`,{type:`button`,class:`ie-icon`,disabled:!s.value,"aria-label":P(Z)(`Undo`),title:P(Z)(`Undo (Ctrl+Z)`),onClick:n[0]||=e=>u(-1)},`↶`,8,jf),U(`button`,{type:`button`,class:`ie-icon`,disabled:!c.value,"aria-label":P(Z)(`Redo`),title:P(Z)(`Redo (Ctrl+Shift+Z)`),onClick:n[1]||=e=>u(1)},`↷`,8,Mf),U(`button`,{type:`button`,class:`ie-icon`,"aria-label":P(Z)(`Cancel`),title:P(Z)(`Cancel`),onClick:n[2]||=e=>r(`cancel`)},`✕`,8,Nf)]),U(`div`,Pf,[U(`div`,Ff,[f.value?(B(),V(`p`,If,j(f.value),1)):d.value?(B(),V(`div`,{key:2,ref_key:`stage`,ref:de,class:A([`ie-stage`,`ie-tab-${ee.value}`]),onPointerdown:me,onPointermove:he,onPointerup:ge,onPointercancel:ge},[U(`canvas`,{ref_key:`canvas`,ref:p},null,512),U(`div`,{class:A([`ie-crop`,{"ie-crop-fixed":ee.value!==`crop`}]),style:k({left:`${i.value.crop.x*100}%`,top:`${i.value.crop.y*100}%`,width:`${i.value.crop.width*100}%`,height:`${i.value.crop.height*100}%`}),onPointerdown:n[4]||=Pu(e=>pe(`move`,e),[`prevent`,`stop`])},[ee.value===`crop`?(B(),V(z,{key:0},[(B(),V(z,null,R([`nw`,`ne`,`sw`,`se`],e=>U(`span`,{key:e,class:A([`ie-handle`,`ie-${e}`]),onPointerdown:Pu(t=>pe(e,t),[`prevent`,`stop`])},null,42,Rf)),64)),U(`span`,{class:`ie-focus-dot`,title:P(Z)(`Focus point: drag it onto the most important part of the picture`),style:k({left:`${i.value.focus.x*100}%`,top:`${i.value.focus.y*100}%`}),onPointerdown:n[3]||=Pu(e=>pe(`focus`,e),[`prevent`,`stop`])},null,44,zf)],64)):K(``,!0)],38),De.value?I((B(),V(`input`,{key:0,ref_key:`textField`,ref:Oe,"onUpdate:modelValue":n[5]||=e=>De.value.value=e,type:`text`,class:`ie-text-field`,placeholder:P(Z)(`Type, then Enter`),"aria-label":P(Z)(`Text to put on the picture`),style:k({left:`${De.value.at.x*100}%`,top:`${De.value.at.y*100}%`,color:we.value}),onPointerdown:n[6]||=Pu(()=>{},[`stop`]),onKeydown:n[7]||=Iu(Pu(e=>ke(!0),[`prevent`]),[`enter`])},null,44,Bf)),[[J,De.value.value]]):K(``,!0)],34)):(B(),V(`p`,Lf,j(P(Z)(`Opening picture…`)),1))]),U(`div`,Vf,[U(`div`,{class:`ie-tabs`,role:`tablist`,"aria-label":P(Z)(`Editing tools`)},[(B(),V(z,null,R(w,e=>U(`button`,{key:e.key,type:`button`,role:`tab`,"aria-selected":ee.value===e.key,class:A({"ie-on":ee.value===e.key}),onClick:t=>T(e.key)},j(P(Z)(e.label)),11,Uf)),64))],8,Hf),ee.value===`crop`?(B(),V(`div`,Wf,[U(`p`,Gf,[G(j(P(Z)(`Drag the frame or its corners. Drag the`))+` `,1),n[26]||=U(`span`,{class:`ie-dot-inline`},null,-1),G(` `+j(P(Z)(`dot onto the most important part: it stays in view wherever the picture is cut to fit.`)),1)]),U(`fieldset`,null,[U(`legend`,null,j(P(Z)(`Shape`)),1),U(`div`,Kf,[(B(),V(z,null,R(E,e=>U(`button`,{key:e.key,type:`button`,class:A({"ie-on":te.value===e.key}),"aria-pressed":te.value===e.key,onClick:t=>ne(e.key)},j(P(Z)(e.label)),11,qf)),64))])]),U(`fieldset`,null,[U(`legend`,null,j(P(Z)(`Turn`)),1),U(`div`,Jf,[U(`button`,{type:`button`,onClick:n[8]||=e=>ae(-1)},`↺ `+j(P(Z)(`Left`)),1),U(`button`,{type:`button`,onClick:n[9]||=e=>ae(1)},`↻ `+j(P(Z)(`Right`)),1),U(`button`,{type:`button`,onClick:n[10]||=e=>oe(`h`)},`⇋ `+j(P(Z)(`Mirror`)),1),U(`button`,{type:`button`,onClick:n[11]||=e=>oe(`v`)},`⇵ `+j(P(Z)(`Flip`)),1)])]),U(`fieldset`,null,[U(`legend`,null,j(P(Z)(`Straighten`)),1),U(`label`,Yf,[U(`span`,null,j(i.value.orientation.straighten>0?`+`:``)+j(i.value.orientation.straighten)+`°`,1),U(`input`,{type:`range`,min:`-15`,max:`15`,step:`0.5`,value:i.value.orientation.straighten,"aria-label":P(Z)(`Straighten, in degrees`),onInput:ce,onChange:le},null,40,Xf)]),i.value.orientation.straighten===0?K(``,!0):(B(),V(`button`,{key:0,type:`button`,class:`ie-link`,onClick:ue},j(P(Z)(`Reset`)),1))])])):ee.value===`adjust`?(B(),V(`div`,Zf,[U(`fieldset`,null,[U(`legend`,null,j(P(Z)(`Look`)),1),U(`div`,Qf,[(B(),V(z,null,R(_e,e=>U(`button`,{key:e.key,type:`button`,class:A({"ie-on":i.value.adjust.preset===e.key}),"aria-pressed":i.value.adjust.preset===e.key,onClick:t=>ye(e.key)},j(P(Z)(e.label)),11,$f)),64))])]),U(`fieldset`,null,[U(`legend`,null,j(P(Z)(`Fine-tune`)),1),(B(),V(z,null,R(ve,e=>U(`label`,{key:e.key,class:`ie-row`},[U(`span`,null,j(P(Z)(e.label)),1),I(U(`input`,{"onUpdate:modelValue":t=>i.value.adjust[e.key]=t,type:`range`,min:`-60`,max:`60`,step:`1`,onChange:l},null,40,ep),[[J,i.value.adjust[e.key],void 0,{number:!0}]])])),64)),U(`button`,{type:`button`,class:`ie-link`,onClick:be},j(P(Z)(`Reset`)),1)])])):ee.value===`draw`?(B(),V(`div`,tp,[U(`p`,np,j(Ce.value===`text`?P(Z)(`Tap the picture where the text should start, type, and press Enter.`):P(Z)(`Draw on the picture with your mouse, finger or pen.`)),1),U(`fieldset`,null,[U(`legend`,null,j(P(Z)(`Tool`)),1),U(`div`,rp,[(B(),V(z,null,R(xe,e=>U(`button`,{key:e.key,type:`button`,class:A({"ie-on":Ce.value===e.key}),"aria-pressed":Ce.value===e.key,onClick:t=>{ke(!0),Ce.value=e.key}},j(P(Z)(e.label)),11,ip)),64))])]),U(`fieldset`,null,[U(`legend`,null,j(P(Z)(`Colour`)),1),U(`div`,ap,[(B(),V(z,null,R(Se,e=>U(`button`,{key:e,type:`button`,class:A([`ie-swatch`,{"ie-on":we.value===e}]),style:k({background:e}),"aria-label":P(Z)(`Colour`)+` `+e,"aria-pressed":we.value===e,onClick:t=>we.value=e},null,14,op)),64)),U(`label`,{class:A([`ie-swatch ie-custom`,{"ie-on":!Se.includes(we.value)}]),style:k({background:Se.includes(we.value)?void 0:we.value}),title:P(Z)(`Another colour`)},[I(U(`input`,{"onUpdate:modelValue":n[12]||=e=>we.value=e,type:`color`,"aria-label":P(Z)(`Another colour`)},null,8,cp),[[J,we.value]])],14,sp)])]),U(`fieldset`,null,[U(`legend`,null,j(Ce.value===`text`?P(Z)(`Text size`):P(Z)(`Thickness`)),1),U(`label`,lp,[U(`span`,null,j(Te.value),1),I(U(`input`,{"onUpdate:modelValue":n[13]||=e=>Te.value=e,type:`range`,min:`1`,max:`10`,step:`1`,"aria-label":Ce.value===`text`?P(Z)(`Text size`):P(Z)(`Thickness`)},null,8,up),[[J,Te.value,void 0,{number:!0}]])])]),Ae.value?(B(),V(`button`,{key:0,type:`button`,class:`ie-link`,onClick:n[14]||=e=>Me(`drawings`)},`Remove all drawings (`+j(Ae.value)+`)`,1)):K(``,!0)])):ee.value===`blur`?(B(),V(`div`,dp,[U(`p`,fp,j(P(Z)(`Drag over what should not be recognisable, such as a licence plate or a face. It cannot be undone in the uploaded picture.`)),1),U(`fieldset`,null,[U(`legend`,null,j(P(Z)(`Shape`)),1),U(`div`,pp,[U(`button`,{type:`button`,class:A({"ie-on":Ne.value===`rect`}),"aria-pressed":Ne.value===`rect`,onClick:n[15]||=e=>Ne.value=`rect`},j(P(Z)(`Rectangle`)),11,mp),U(`button`,{type:`button`,class:A({"ie-on":Ne.value===`ellipse`}),"aria-pressed":Ne.value===`ellipse`,onClick:n[16]||=e=>Ne.value=`ellipse`},j(P(Z)(`Oval`)),11,hp)])]),U(`fieldset`,null,[U(`legend`,null,j(P(Z)(`Style`)),1),U(`div`,gp,[U(`button`,{type:`button`,class:A({"ie-on":Pe.value===`blur`}),"aria-pressed":Pe.value===`blur`,onClick:n[17]||=e=>Pe.value=`blur`},j(P(Z)(`Blur`)),11,_p),U(`button`,{type:`button`,class:A({"ie-on":Pe.value===`pixelate`}),"aria-pressed":Pe.value===`pixelate`,onClick:n[18]||=e=>Pe.value=`pixelate`},j(P(Z)(`Pixels`)),11,vp)])]),U(`fieldset`,null,[U(`legend`,null,j(P(Z)(`Strength`)),1),U(`label`,yp,[U(`span`,null,j(Fe.value),1),I(U(`input`,{"onUpdate:modelValue":n[19]||=e=>Fe.value=e,type:`range`,min:`20`,max:`100`,step:`5`,"aria-label":P(Z)(`Blur strength`)},null,8,bp),[[J,Fe.value,void 0,{number:!0}]])])]),je.value?(B(),V(`button`,{key:0,type:`button`,class:`ie-link`,onClick:n[20]||=e=>Me(`blurs`)},`Remove all blurs (`+j(je.value)+`)`,1)):K(``,!0)])):(B(),V(`div`,xp,[U(`fieldset`,null,[U(`legend`,null,j(P(Z)(`Longest side`)),1),U(`div`,Sp,[(B(),V(z,null,R(Ie,e=>U(`button`,{key:e.label,type:`button`,class:A({"ie-on":i.value.output.maxSize===e.value}),"aria-pressed":i.value.output.maxSize===e.value,onClick:t=>Le(`maxSize`,e.value)},j(P(Z)(e.label)),11,Cp)),64))])]),U(`fieldset`,null,[U(`legend`,null,j(P(Z)(`Compression`)),1),U(`label`,wp,[U(`span`,null,j(P(Z)(`Format`)),1),U(`select`,{value:i.value.output.format,onChange:n[21]||=e=>Le(`format`,e.target.value)},[U(`option`,Ep,j(P(Z)(`WebP (smallest)`)),1),n[27]||=U(`option`,{value:`image/jpeg`},`JPEG`,-1),U(`option`,Dp,j(P(Z)(`PNG (lossless)`)),1)],40,Tp)]),U(`label`,{class:A([`ie-row`,{"ie-disabled":i.value.output.format===`image/png`}])},[U(`span`,null,`Quality `+j(i.value.output.format===`image/png`?``:i.value.output.quality),1),I(U(`input`,{"onUpdate:modelValue":n[22]||=e=>i.value.output.quality=e,type:`range`,min:`30`,max:`100`,step:`1`,disabled:i.value.output.format===`image/png`,onChange:l},null,40,Op),[[J,i.value.output.quality,void 0,{number:!0}]])],2)]),ze.value?(B(),V(`fieldset`,kp,[U(`legend`,null,j(P(Z)(`How it is cut to fit`)),1),U(`div`,{class:A([`ie-previews`,{"ie-working":Be.value}])},[U(`figure`,null,[U(`img`,{src:ze.value,alt:``,class:`ie-wide`,style:k({objectPosition:P(xf)(i.value.focus)})},null,12,Ap),U(`figcaption`,null,j(P(Z)(`In a wide card`)),1)]),U(`figure`,null,[U(`img`,{src:ze.value,alt:``,class:`ie-round`,style:k({objectPosition:P(xf)(i.value.focus)})},null,12,jp),U(`figcaption`,null,j(P(Z)(`As a round photo`)),1)])],2)])):K(``,!0)])),U(`p`,Mp,[Re.value?(B(),V(z,{key:0},[U(`strong`,null,j(Re.value.width)+` × `+j(Re.value.height)+` px · `+j(qe(Re.value.file.size)),1),U(`span`,{class:A({"ie-good":Re.value.file.size<e.file.size})},j(Ke.value),3)],64)):f.value?K(``,!0):(B(),V(`span`,Np,j(P(Z)(`Calculating…`)),1))])])]),U(`footer`,Pp,[U(`button`,{type:`button`,class:`ie-btn`,onClick:n[23]||=e=>r(`cancel`)},j(P(Z)(`Cancel`)),1),n[28]||=U(`span`,{class:`ie-spacer`},null,-1),e.remaining>0?(B(),V(`button`,{key:0,type:`button`,class:`ie-btn`,onClick:n[24]||=e=>r(`originalAll`)},`Upload all `+j(e.remaining+1)+` without editing`,1)):K(``,!0),U(`button`,{type:`button`,class:`ie-btn`,onClick:n[25]||=e=>r(`original`)},j(P(Z)(`Upload original`)),1),U(`button`,{type:`button`,class:`ie-btn ie-primary`,disabled:!d.value||!!f.value||We.value,onClick:Ge},j(We.value?P(Z)(`Preparing…`):e.remaining>0?P(Z)(`Upload and next`):P(Z)(`Upload`)),9,Fp)])],8,Of)]))}}),[[`__scopeId`,`data-v-b8859fa6`]]),zp=dn({ask:null});function Bp(e,t){return new Promise(n=>{zp.ask={file:e,remaining:t,done:e=>(zp.ask=null,n(e))}})}async function Vp(e,t){let n=!1;for(let[r,i]of e.entries()){if(n||!of(i)){await t({file:i,focus:null,edited:!1});continue}let a=await Bp(i,e.length-r-1);if(a===`cancel`)return;n=a===`all`,await t(a===`original`||a===`all`?{file:i,focus:null,edited:!1}:a)}}async function Hp(e){let t=await Bp(e,0);return typeof t==`string`?null:t}var Up=(e,t)=>Y.view===`simple`&&t?t:e,Wp={class:`m-card max-h-[85vh] w-full max-w-3xl overflow-y-auto p-5`,role:`dialog`,"aria-modal":`true`},Gp={class:`mb-4 flex items-center justify-between gap-3`},Kp={class:`font-display text-lg font-bold`},qp={key:0,class:`mb-4`},Jp=[`multiple`,`disabled`],Yp={key:0},Xp={key:1},Zp={class:`m-help`},Qp={key:0,class:`m-error`,role:`alert`},$p={key:1,class:`text-sm text-muted`},em={key:2,class:`text-sm text-muted`},tm={key:0,class:`mb-2 text-sm text-muted`},nm={class:`grid grid-cols-2 gap-3 sm:grid-cols-3 md:grid-cols-4`},rm=[`onClick`],im=[`src`,`alt`],am={key:0,class:`block truncate px-2 py-1 text-xs`},om=2400,sm=L({__name:`MediaPicker`,props:{many:{type:Boolean}},emits:[`pick`,`many`,`close`],setup(e,{emit:t}){let n=e,r=t,i=N([]),a=N(!0),o=N(0),s=N(null),c=Y.permissions.includes(`media.upload`),l=Y.view===`simple`;async function u(e){try{let t=await createImageBitmap(e,{imageOrientation:`from-image`}),n=Math.min(1,om/Math.max(t.width,t.height)),r=document.createElement(`canvas`);r.width=Math.round(t.width*n),r.height=Math.round(t.height*n),r.getContext(`2d`)?.drawImage(t,0,0,r.width,r.height),t.close();let i=await new Promise((e,t)=>r.toBlob(n=>n?e(n):t(Error(`no image`)),`image/jpeg`,.86));return new File([i],e.name.replace(/\.[^.]+$/,``)+`.jpg`,{type:`image/jpeg`})}catch{return e}}async function d(){try{i.value=(await X.get(`${Y.base}/media/items`)).items.filter(e=>e.is_image)}finally{a.value=!1}}async function f(e){let t=e.target,i=Array.from(t.files??[]).slice(0,n.many?40:1),a=[],c=null;s.value=null,o.value=i.length;try{await Vp(i,async e=>{try{let t=new FormData;t.append(`file`,e.edited?e.file:await u(e.file)),e.focus!==null&&(t.append(`focus_x`,String(Math.round(e.focus.x*1e3)/1e3)),t.append(`focus_y`,String(Math.round(e.focus.y*1e3)/1e3)));let n=await td(`${Y.base}/media`,t);a.push(n.item.url),c??=n.item}catch(e){s.value=e instanceof Qu&&e.status===422&&e.errors?.file?String(Object.values(e.errors)[0]):Z(`Not every photo worked. Try those again, or ask the person who looks after your website.`)}o.value--})}finally{o.value=0}t.value=``,a.length&&(n.many?r(`many`,a):r(`pick`,a[0],c))}return fa(d),(t,n)=>(B(),V(`div`,{class:`fixed inset-0 z-50 grid place-items-center bg-black/60 p-4`,onClick:n[1]||=Pu(e=>r(`close`),[`self`])},[U(`div`,Wp,[U(`div`,Gp,[U(`h2`,Kp,j(P(Up)(P(Z)(`Choose an image`),P(Z)(`Choose a photo`))),1),U(`button`,{type:`button`,class:`m-btn m-btn-secondary`,onClick:n[0]||=e=>r(`close`)},j(P(Z)(`Cancel`)),1)]),P(c)?(B(),V(`div`,qp,[U(`label`,{class:A([`m-btn m-btn-primary cursor-pointer`,{"opacity-60":o.value>0}])},[U(`input`,{type:`file`,accept:`image/jpeg,image/png,image/webp`,multiple:e.many,class:`sr-only`,disabled:o.value>0,onChange:f},null,40,Jp),o.value>0?(B(),V(`span`,Yp,j(P(Z)(`Busy with :count…`,{count:o.value})),1)):(B(),V(`span`,Xp,j(e.many?P(Z)(`Choose photos from this phone or computer`):P(Z)(`Choose a photo from this phone or computer`)),1))],2),U(`p`,Zp,j(P(Z)(`On a phone you can also take a new photo. It is made smaller by itself, so a big photo is fine.`)),1),s.value?(B(),V(`p`,Qp,j(s.value),1)):K(``,!0)])):K(``,!0),a.value?(B(),V(`p`,$p,j(P(Z)(`Loading…`)),1)):i.value.length?(B(),V(z,{key:3},[l?(B(),V(`p`,tm,j(P(Z)(`Or use a photo that is already there:`)),1)):K(``,!0),U(`div`,nm,[(B(!0),V(z,null,R(i.value,e=>(B(),V(`button`,{key:e.id,type:`button`,class:`overflow-hidden rounded-lg border border-line text-left hover:border-brand`,onClick:t=>r(`pick`,e.url,e)},[U(`img`,{src:e.url,alt:e.name,loading:`lazy`,class:`aspect-square w-full object-cover`},null,8,im),l?K(``,!0):(B(),V(`span`,am,j(e.name),1))],8,rm))),128))])],64)):(B(),V(`p`,em,j(P(Z)(`No images yet.`)),1))])]))}}),cm=[`aria-label`],lm=[`disabled`,`title`],um=[`disabled`,`title`],dm=[`disabled`,`title`],fm=[`disabled`,`title`],pm=[`disabled`,`title`],mm=[`disabled`,`title`],hm=[`disabled`],gm={class:`ml-auto flex gap-1`},_m=[`id`,`value`,`rows`,`required`,`maxlength`],vm={key:0,class:`m-input min-h-40 overflow-auto`},ym={key:0,class:`text-sm text-muted`},bm=[`innerHTML`],xm=L({__name:`MarkdownEditor`,props:{modelValue:{},id:{},rows:{},required:{type:Boolean},maxlength:{}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,i=N(null),a=N(`write`),o=N(``),s=N(!1),c=N(!1),l=Y.permissions.includes(`media.view`);function u(e,t=e,a=``){let o=i.value,s=o.selectionStart,c=o.selectionEnd,l=n.modelValue.slice(s,c)||a,u=n.modelValue.slice(0,s)+e+l+t+n.modelValue.slice(c);r(`update:modelValue`,u),requestAnimationFrame(()=>{o.focus(),o.setSelectionRange(s+e.length,s+e.length+l.length)})}function d(e){let t=i.value,a=n.modelValue.lastIndexOf(`
|
||
`,t.selectionStart-1)+1,o=t.selectionEnd,s=n.modelValue.slice(a,o).split(`
|
||
`).map(t=>e+t).join(`
|
||
`);r(`update:modelValue`,n.modelValue.slice(0,a)+s+n.modelValue.slice(o)),requestAnimationFrame(()=>t.focus())}function f(e,t){c.value=!1;let a=(t?.alt||t?.name||``).replace(/[[\]]/g,``),o=i.value,s=o.selectionStart,l=``;r(`update:modelValue`,n.modelValue.slice(0,s)+l+n.modelValue.slice(o.selectionEnd)),requestAnimationFrame(()=>{o.focus(),o.setSelectionRange(s+l.length,s+l.length)})}async function p(e){if(a.value=e,e===`preview`){s.value=!0;try{o.value=(await X.post(`${Y.base}/markdown`,{text:n.modelValue})).html}finally{s.value=!1}}}return(t,n)=>(B(),V(`div`,null,[U(`div`,{class:`mb-2 flex flex-wrap items-center gap-1`,role:`toolbar`,"aria-label":P(Z)(`Formatting`)},[U(`button`,{type:`button`,class:`m-btn m-btn-secondary !px-2 !py-1 font-bold`,disabled:a.value===`preview`,title:P(Z)(`Bold`),onClick:n[0]||=e=>u(`**`,`**`,P(Z)(`bold`))},`B`,8,lm),U(`button`,{type:`button`,class:`m-btn m-btn-secondary !px-2 !py-1 italic`,disabled:a.value===`preview`,title:P(Z)(`Italic`),onClick:n[1]||=e=>u(`*`,`*`,P(Z)(`italic`))},`I`,8,um),U(`button`,{type:`button`,class:`m-btn m-btn-secondary !px-2 !py-1`,disabled:a.value===`preview`,title:P(Z)(`Heading`),onClick:n[2]||=e=>d(`## `)},`H`,8,dm),U(`button`,{type:`button`,class:`m-btn m-btn-secondary !px-2 !py-1`,disabled:a.value===`preview`,title:P(Z)(`List`),onClick:n[3]||=e=>d(`- `)},`•`,8,fm),U(`button`,{type:`button`,class:`m-btn m-btn-secondary !px-2 !py-1`,disabled:a.value===`preview`,title:P(Z)(`Quote`),onClick:n[4]||=e=>d(`> `)},`”`,8,pm),U(`button`,{type:`button`,class:`m-btn m-btn-secondary !px-2 !py-1`,disabled:a.value===`preview`,title:P(Z)(`Link`),onClick:n[5]||=e=>u(`[`,`](https://)`,P(Z)(`text`))},`🔗`,8,mm),P(l)?(B(),V(`button`,{key:0,type:`button`,class:`m-btn m-btn-secondary !px-2 !py-1`,disabled:a.value===`preview`,onClick:n[6]||=e=>c.value=!0},j(P(Z)(`Photo`)),9,hm)):K(``,!0),U(`span`,gm,[U(`button`,{type:`button`,class:A([`m-btn !px-3 !py-1`,a.value===`write`?`m-btn-primary`:`m-btn-secondary`]),onClick:n[7]||=e=>p(`write`)},j(P(Z)(`Write`)),3),U(`button`,{type:`button`,class:A([`m-btn !px-3 !py-1`,a.value===`preview`?`m-btn-primary`:`m-btn-secondary`]),onClick:n[8]||=e=>p(`preview`)},j(P(Z)(`Preview`)),3)])],8,cm),I(U(`textarea`,{id:e.id,ref_key:`area`,ref:i,value:e.modelValue,rows:e.rows??14,required:e.required,maxlength:e.maxlength,class:`m-input font-mono`,onInput:n[9]||=e=>r(`update:modelValue`,e.target.value)},null,40,_m),[[cl,a.value===`write`]]),a.value===`preview`?(B(),V(`div`,vm,[s.value?(B(),V(`p`,ym,j(P(Z)(`Loading…`)),1)):(B(),V(`div`,{key:1,class:`m-prose`,innerHTML:o.value},null,8,bm))])):K(``,!0),c.value?(B(),H(sm,{key:1,onPick:f,onClose:n[10]||=e=>c.value=!1})):K(``,!0)]))}}),Sm={class:`m-card mt-6 max-w-3xl p-5`},Cm={class:`font-display text-lg font-bold`},wm={key:0,class:`mt-2 text-sm text-muted`},Tm={key:1,class:`mt-2 text-sm text-muted`},Em={key:2,class:`mt-3 divide-y divide-line`},Dm={class:`flex flex-wrap items-center justify-between gap-2`},Om=[`aria-expanded`,`onClick`],km={class:`font-semibold`},Am={key:0,class:`text-muted`},jm={key:1,class:`m-badge ml-2`},Mm={class:`block text-xs text-muted`},Nm=[`onClick`],Pm={key:0,class:`mt-2 space-y-2 text-sm`},Fm={class:`text-xs font-semibold uppercase tracking-wide text-muted`},Im={class:`whitespace-pre-wrap break-words`},Lm=L({__name:`RevisionsPanel`,props:{type:{},id:{}},setup(e){let t=e,n=N([]),r=N(!1),i=N(null),a=N(!0),o=`${Y.base}/revisions/${t.type}/${t.id}`;fa(async()=>{try{let e=await X.get(o);n.value=e.revisions,r.value=e.can_restore}finally{a.value=!1}});async function s(e){window.confirm(Z(`Put this version back? The text now is kept in the history.`))&&(await X.post(`${o}/${e.id}/restore`),$(Z(`The earlier version is back.`)),await xx())}let c=e=>new Date(e).toLocaleString(Y.locale||void 0);return(e,t)=>(B(),V(`section`,Sm,[U(`h2`,Cm,j(P(Z)(`History`)),1),a.value?(B(),V(`p`,wm,j(P(Z)(`Loading…`)),1)):n.value.length?(B(),V(`ul`,Em,[(B(!0),V(z,null,R(n.value,e=>(B(),V(`li`,{key:e.id,class:`py-3`},[U(`div`,Dm,[U(`button`,{type:`button`,class:`text-left text-sm`,"aria-expanded":i.value===e.id,onClick:t=>i.value=i.value===e.id?null:e.id},[U(`span`,km,j(c(e.created_at)),1),e.user?(B(),V(`span`,Am,` · `+j(e.user),1)):K(``,!0),e.current?(B(),V(`span`,jm,j(P(Z)(`Now`)),1)):K(``,!0),U(`span`,Mm,j(e.changed.join(`, `)),1)],8,Om),r.value&&!e.current?(B(),V(`button`,{key:0,type:`button`,class:`m-btn m-btn-secondary`,onClick:t=>s(e)},j(P(Z)(`Put back`)),9,Nm)):K(``,!0)]),i.value===e.id?(B(),V(`dl`,Pm,[(B(!0),V(z,null,R(e.values,(e,t)=>(B(),V(`div`,{key:t},[U(`dt`,Fm,j(t),1),U(`dd`,Im,j(e),1)]))),128))])):K(``,!0)]))),128))])):(B(),V(`p`,Tm,j(P(Z)(`Nothing here yet.`)),1))]))}}),Rm={key:0,class:`m-card mt-6 p-4`},zm={class:`mb-3 font-semibold`},Bm={key:0,class:`mb-3 text-xs text-muted`},Vm={class:`flex items-center justify-between gap-3`},Hm={class:`font-medium`},Um=[`disabled`,`onClick`],Wm={class:`mt-1 text-xs text-muted`},Gm={key:0,class:`mt-1 text-xs`},Km=[`href`],qm=L({__name:`SharePanel`,props:{id:{}},setup(e){let t=e,n=N([]),r=N(!1),i=N(``);async function a(){let e=await X.get(`${Y.base}/posts/${t.id}/sharing`);n.value=e.platforms,r.value=e.live}async function o(e){i.value=e.platform;try{$((await X.post(`${Y.base}/posts/${t.id}/share`,{platform:e.platform})).dry_run?Z(`Dry run: nothing was sent.`):Z(`Shared.`))}catch(e){if(!(e instanceof Qu)||e.status!==422)throw e;$(e.body?.message??Z(`This could not be done.`),!0)}finally{i.value=``,await a()}}return fa(a),(e,t)=>n.value.length?(B(),V(`section`,Rm,[U(`h2`,zm,j(P(Z)(`Share`)),1),r.value?K(``,!0):(B(),V(`p`,Bm,j(P(Z)(`Dry run: nothing is sent to the networks.`)),1)),(B(!0),V(z,null,R(n.value,e=>(B(),V(`div`,{key:e.platform,class:`mb-3 border-t border-line pt-3 first:border-0 first:pt-0`},[U(`div`,Vm,[U(`p`,Hm,j(e.label),1),U(`button`,{type:`button`,class:`m-btn m-btn-secondary`,disabled:!e.connected||i.value===e.platform,onClick:t=>o(e)},j(e.connected?P(Z)(`Share now`):P(Z)(`Not connected`)),9,Um)]),U(`p`,Wm,j(e.preview),1),e.last?(B(),V(`p`,Gm,[e.last.status===`failed`?(B(),V(z,{key:0},[G(j(P(Z)(`Failed`))+`: `+j(e.last.error),1)],64)):(B(),V(z,{key:1},[G(j(e.last.dry_run?P(Z)(`Dry run`):P(Z)(`Shared`))+` · `+j(e.last.shared_at),1)],64)),e.last.url?(B(),V(`a`,{key:2,href:e.last.url,target:`_blank`,rel:`noopener`,class:`ml-2 underline`},j(P(Z)(`View`)),9,Km)):K(``,!0)])):K(``,!0)]))),128))])):K(``,!0)}}),Jm={class:`mb-6 flex items-center justify-between gap-3`},Ym={class:`font-display text-2xl font-bold`},Xm={for:`title`,class:`m-label`},Zm={key:0,class:`m-error`},Qm={class:`grid gap-5 sm:grid-cols-2`},$m={for:`slug`,class:`m-label`},eh={key:0,class:`m-error`},th={for:`category`,class:`m-label`},nh={id:`categories`},rh=[`value`],ih={for:`excerpt`,class:`m-label`},ah={key:0,class:`m-error`},oh={for:`body`,class:`m-label`},sh={key:0,class:`m-error`},ch={class:`grid gap-5 sm:grid-cols-2`},lh={for:`cover`,class:`m-label`},uh={class:`flex gap-2`},dh={for:`tags`,class:`m-label`},fh={id:`known-tags`},ph=[`value`],mh={class:`flex flex-wrap items-center gap-6`},hh={class:`flex items-center gap-2 text-sm`},gh={key:0,class:`flex items-center gap-2 text-sm`},_h={key:1},vh={for:`at`,class:`m-label`},yh=[`disabled`],bh=L({__name:`PostForm`,props:{post:{},categories:{},known_tags:{}},setup(e){let t=e.post,n=nd({title:t?.title??``,slug:t?.slug??``,excerpt:t?.excerpt??``,body:t?.body??``,cover_image:t?.cover_image??``,category:t?.category??``,tags:t?.tags??[],is_featured:t?.is_featured??!1,is_published:t?.is_published??!1,published_at:t?.published_at??``}),r=N(!1),i=(t?.tags??[]).join(`, `);async function a(){n.values.tags=i.split(`,`).map(e=>e.trim()).filter(Boolean),(t?await n.send(`put`,`${Y.base}/posts/${t.id}`):await n.send(`post`,`${Y.base}/posts`))&&($(Z(t?`Saved.`:`Created.`)),bx(`${Y.base}/posts`))}return(o,s)=>(B(),V(z,null,[U(`div`,Jm,[U(`h1`,Ym,j(P(t)?P(t).title:P(Z)(`New post`)),1),W(ld,{href:P(Y).base+`/posts`,class:`m-btn m-btn-secondary`},{default:F(()=>[G(j(P(Z)(`Back`)),1)]),_:1},8,[`href`])]),U(`form`,{class:`m-card max-w-3xl space-y-5 p-5`,onSubmit:Pu(a,[`prevent`])},[U(`div`,null,[U(`label`,Xm,j(P(Z)(`Title`)),1),I(U(`input`,{id:`title`,"onUpdate:modelValue":s[0]||=e=>P(n).values.title=e,required:``,maxlength:`255`,class:`m-input`},null,512),[[J,P(n).values.title]]),P(n).errors.title?(B(),V(`p`,Zm,j(P(n).errors.title),1)):K(``,!0)]),U(`div`,Qm,[U(`div`,null,[U(`label`,$m,j(P(Z)(`Address (slug)`)),1),I(U(`input`,{id:`slug`,"onUpdate:modelValue":s[1]||=e=>P(n).values.slug=e,maxlength:`255`,class:`m-input`},null,512),[[J,P(n).values.slug]]),P(n).errors.slug?(B(),V(`p`,eh,j(P(n).errors.slug),1)):K(``,!0)]),U(`div`,null,[U(`label`,th,j(P(Z)(`Category`)),1),I(U(`input`,{id:`category`,"onUpdate:modelValue":s[2]||=e=>P(n).values.category=e,list:`categories`,maxlength:`60`,class:`m-input`},null,512),[[J,P(n).values.category]]),U(`datalist`,nh,[(B(!0),V(z,null,R(e.categories,e=>(B(),V(`option`,{key:e,value:e},null,8,rh))),128))])])]),U(`div`,null,[U(`label`,ih,j(P(Z)(`Summary`)),1),I(U(`textarea`,{id:`excerpt`,"onUpdate:modelValue":s[3]||=e=>P(n).values.excerpt=e,rows:`2`,maxlength:`500`,class:`m-input`},null,512),[[J,P(n).values.excerpt]]),P(n).errors.excerpt?(B(),V(`p`,ah,j(P(n).errors.excerpt),1)):K(``,!0)]),U(`div`,null,[U(`label`,oh,j(P(Z)(`Text (Markdown)`)),1),W(xm,{id:`body`,modelValue:P(n).values.body,"onUpdate:modelValue":s[4]||=e=>P(n).values.body=e,required:``},null,8,[`modelValue`]),P(n).errors.body?(B(),V(`p`,sh,j(P(n).errors.body),1)):K(``,!0)]),U(`div`,ch,[U(`div`,null,[U(`label`,lh,j(P(Z)(`Cover image`)),1),U(`div`,uh,[I(U(`input`,{id:`cover`,"onUpdate:modelValue":s[5]||=e=>P(n).values.cover_image=e,maxlength:`2048`,class:`m-input`},null,512),[[J,P(n).values.cover_image]]),P(Y).permissions.includes(`media.view`)?(B(),V(`button`,{key:0,type:`button`,class:`m-btn m-btn-secondary shrink-0`,onClick:s[6]||=e=>r.value=!0},j(P(Z)(`Choose`)),1)):K(``,!0)])]),U(`div`,null,[U(`label`,dh,j(P(Z)(`Tags (comma separated)`)),1),I(U(`input`,{id:`tags`,"onUpdate:modelValue":s[7]||=e=>Cn(i)?i.value=e:i=e,list:`known-tags`,class:`m-input`},null,512),[[J,P(i)]]),U(`datalist`,fh,[(B(!0),V(z,null,R(e.known_tags,e=>(B(),V(`option`,{key:e,value:e},null,8,ph))),128))])])]),U(`div`,mh,[U(`label`,hh,[I(U(`input`,{"onUpdate:modelValue":s[8]||=e=>P(n).values.is_featured=e,type:`checkbox`},null,512),[[bu,P(n).values.is_featured]]),G(` `+j(P(Z)(`Featured`)),1)]),P(Y).permissions.includes(`posts.publish`)?(B(),V(`label`,gh,[I(U(`input`,{"onUpdate:modelValue":s[9]||=e=>P(n).values.is_published=e,type:`checkbox`},null,512),[[bu,P(n).values.is_published]]),G(` `+j(P(Z)(`Publish`)),1)])):K(``,!0),P(n).values.is_published?(B(),V(`div`,_h,[U(`label`,vh,j(P(Z)(`Publish at`)),1),I(U(`input`,{id:`at`,"onUpdate:modelValue":s[10]||=e=>P(n).values.published_at=e,type:`datetime-local`,class:`m-input`},null,512),[[J,P(n).values.published_at]])])):K(``,!0)]),U(`button`,{type:`submit`,class:`m-btn m-btn-primary`,disabled:P(n).busy},j(P(n).busy?P(Z)(`Saving…`):P(Z)(`Save`)),9,yh)],32),P(t)&&P(Y).permissions.includes(`sharing.publish`)?(B(),H(qm,{key:0,id:P(t).id},null,8,[`id`])):K(``,!0),P(t)&&P(Y).permissions.includes(`revisions.view`)?(B(),H(Lm,{key:1,type:`posts`,id:P(t).id},null,8,[`id`])):K(``,!0),r.value?(B(),H(sm,{key:2,onPick:s[11]||=e=>{P(n).values.cover_image=e,r.value=!1},onClose:s[12]||=e=>r.value=!1})):K(``,!0)],64))}}),xh={class:`mb-6 flex flex-wrap items-center justify-between gap-3`},Sh={class:`font-display text-2xl font-bold`},Ch={key:0,class:`m-card p-5 text-sm text-muted`},wh={key:1,class:`m-card divide-y divide-line`},Th={class:`min-w-0`},Eh={class:`truncate font-semibold`},Dh={class:`mt-1 flex items-center gap-2 text-xs text-muted`},Oh={class:`m-badge`},kh={key:0},Ah={class:`flex gap-2`},jh=[`onClick`],Mh=[`onClick`],Nh=L({__name:`PostsIndex`,props:{posts:{}},setup(e){let t={draft:`Draft`,scheduled:`Scheduled`,published:`Published`};async function n(e){await X.put(`${Y.base}/posts/${e.id}/online`,{online:e.status!==`published`}),await xx()}async function r(e){window.confirm(Z(`Are you sure?`))&&(await X.delete(`${Y.base}/posts/${e.id}`),$(Z(`Deleted.`)),await xx())}return(i,a)=>(B(),V(z,null,[U(`div`,xh,[U(`h1`,Sh,j(P(Z)(`Posts`)),1),P(Y).permissions.includes(`posts.write`)?(B(),H(ld,{key:0,href:P(Y).base+`/posts/create`,class:`m-btn m-btn-primary`},{default:F(()=>[G(j(P(Z)(`New post`)),1)]),_:1},8,[`href`])):K(``,!0)]),e.posts.length?(B(),V(`ul`,wh,[(B(!0),V(z,null,R(e.posts,e=>(B(),V(`li`,{key:e.id,class:`flex flex-wrap items-center justify-between gap-3 p-4`},[U(`div`,Th,[U(`p`,Eh,j(e.title),1),U(`p`,Dh,[U(`span`,Oh,j(P(Z)(t[e.status])),1),e.category?(B(),V(`span`,kh,j(e.category),1)):K(``,!0)])]),U(`div`,Ah,[P(Y).permissions.includes(`posts.publish`)&&e.can_change?(B(),V(`button`,{key:0,type:`button`,class:`m-btn m-btn-secondary`,onClick:t=>n(e)},j(e.status===`published`?P(Z)(`Take offline`):P(Z)(`Put online`)),9,jh)):K(``,!0),e.can_change?(B(),H(ld,{key:1,href:`${P(Y).base}/posts/${e.id}/edit`,class:`m-btn m-btn-secondary`},{default:F(()=>[G(j(P(Z)(`Edit`)),1)]),_:1},8,[`href`])):K(``,!0),e.can_delete?(B(),V(`button`,{key:2,type:`button`,class:`m-btn m-btn-danger`,onClick:t=>r(e)},j(P(Z)(`Delete`)),9,Mh)):K(``,!0)])]))),128))])):(B(),V(`p`,Ch,j(P(Z)(`No posts yet.`)),1))],64))}}),Ph=[`src`],Fh=L({__name:`Mascot`,props:{name:{},flip:{type:Boolean},size:{}},setup(e){return(t,n)=>(B(),V(`img`,{src:P(Y).mascot+e.name,alt:``,class:A([`m-mascot select-none object-contain`,e.flip?`-scale-x-100`:``]),style:k({width:(e.size??112)+`px`,height:(e.size??112)+`px`}),draggable:`false`},null,14,Ph))}}),Ih=o(((e,t)=>{t.exports=function(){return typeof Promise==`function`&&Promise.prototype&&Promise.prototype.then}})),Lh=o((e=>{var t,n=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];e.getSymbolSize=function(e){if(!e)throw Error(`"version" cannot be null or undefined`);if(e<1||e>40)throw Error(`"version" should be in range from 1 to 40`);return e*4+17},e.getSymbolTotalCodewords=function(e){return n[e]},e.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t},e.setToSJISFunction=function(e){if(typeof e!=`function`)throw Error(`"toSJISFunc" is not a valid function.`);t=e},e.isKanjiModeEnabled=function(){return t!==void 0},e.toSJIS=function(e){return t(e)}})),Rh=o((e=>{e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(t){if(typeof t!=`string`)throw Error(`Param is not a string`);switch(t.toLowerCase()){case`l`:case`low`:return e.L;case`m`:case`medium`:return e.M;case`q`:case`quartile`:return e.Q;case`h`:case`high`:return e.H;default:throw Error(`Unknown EC Level: `+t)}}e.isValid=function(e){return e&&e.bit!==void 0&&e.bit>=0&&e.bit<4},e.from=function(n,r){if(e.isValid(n))return n;try{return t(n)}catch{return r}}})),zh=o(((e,t)=>{function n(){this.buffer=[],this.length=0}n.prototype={get:function(e){let t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)==1},put:function(e,t){for(let n=0;n<t;n++)this.putBit((e>>>t-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},t.exports=n})),Bh=o(((e,t)=>{function n(e){if(!e||e<1)throw Error(`BitMatrix size must be defined and greater than 0`);this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}n.prototype.set=function(e,t,n,r){let i=e*this.size+t;this.data[i]=n,r&&(this.reservedBit[i]=!0)},n.prototype.get=function(e,t){return this.data[e*this.size+t]},n.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},n.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},t.exports=n})),Vh=o((e=>{var t=Lh().getSymbolSize;e.getRowColCoords=function(e){if(e===1)return[];let n=Math.floor(e/7)+2,r=t(e),i=r===145?26:Math.ceil((r-13)/(2*n-2))*2,a=[r-7];for(let e=1;e<n-1;e++)a[e]=a[e-1]-i;return a.push(6),a.reverse()},e.getPositions=function(t){let n=[],r=e.getRowColCoords(t),i=r.length;for(let e=0;e<i;e++)for(let t=0;t<i;t++)e===0&&t===0||e===0&&t===i-1||e===i-1&&t===0||n.push([r[e],r[t]]);return n}})),Hh=o((e=>{var t=Lh().getSymbolSize,n=7;e.getPositions=function(e){let r=t(e);return[[0,0],[r-n,0],[0,r-n]]}})),Uh=o((e=>{e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(e){return e!=null&&e!==``&&!isNaN(e)&&e>=0&&e<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(e){let n=e.size,r=0,i=0,a=0,o=null,s=null;for(let c=0;c<n;c++){i=a=0,o=s=null;for(let l=0;l<n;l++){let n=e.get(c,l);n===o?i++:(i>=5&&(r+=t.N1+(i-5)),o=n,i=1),n=e.get(l,c),n===s?a++:(a>=5&&(r+=t.N1+(a-5)),s=n,a=1)}i>=5&&(r+=t.N1+(i-5)),a>=5&&(r+=t.N1+(a-5))}return r},e.getPenaltyN2=function(e){let n=e.size,r=0;for(let t=0;t<n-1;t++)for(let i=0;i<n-1;i++){let n=e.get(t,i)+e.get(t,i+1)+e.get(t+1,i)+e.get(t+1,i+1);(n===4||n===0)&&r++}return r*t.N2},e.getPenaltyN3=function(e){let n=e.size,r=0,i=0,a=0;for(let t=0;t<n;t++){i=a=0;for(let o=0;o<n;o++)i=i<<1&2047|e.get(t,o),o>=10&&(i===1488||i===93)&&r++,a=a<<1&2047|e.get(o,t),o>=10&&(a===1488||a===93)&&r++}return r*t.N3},e.getPenaltyN4=function(e){let n=0,r=e.data.length;for(let t=0;t<r;t++)n+=e.data[t];return Math.abs(Math.ceil(n*100/r/5)-10)*t.N4};function n(t,n,r){switch(t){case e.Patterns.PATTERN000:return(n+r)%2==0;case e.Patterns.PATTERN001:return n%2==0;case e.Patterns.PATTERN010:return r%3==0;case e.Patterns.PATTERN011:return(n+r)%3==0;case e.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2==0;case e.Patterns.PATTERN101:return n*r%2+n*r%3==0;case e.Patterns.PATTERN110:return(n*r%2+n*r%3)%2==0;case e.Patterns.PATTERN111:return(n*r%3+(n+r)%2)%2==0;default:throw Error(`bad maskPattern:`+t)}}e.applyMask=function(e,t){let r=t.size;for(let i=0;i<r;i++)for(let a=0;a<r;a++)t.isReserved(a,i)||t.xor(a,i,n(e,a,i))},e.getBestMask=function(t,n){let r=Object.keys(e.Patterns).length,i=0,a=1/0;for(let o=0;o<r;o++){n(o),e.applyMask(o,t);let r=e.getPenaltyN1(t)+e.getPenaltyN2(t)+e.getPenaltyN3(t)+e.getPenaltyN4(t);e.applyMask(o,t),r<a&&(a=r,i=o)}return i}})),Wh=o((e=>{var t=Rh(),n=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],r=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];e.getBlocksCount=function(e,r){switch(r){case t.L:return n[(e-1)*4+0];case t.M:return n[(e-1)*4+1];case t.Q:return n[(e-1)*4+2];case t.H:return n[(e-1)*4+3];default:return}},e.getTotalCodewordsCount=function(e,n){switch(n){case t.L:return r[(e-1)*4+0];case t.M:return r[(e-1)*4+1];case t.Q:return r[(e-1)*4+2];case t.H:return r[(e-1)*4+3];default:return}}})),Gh=o((e=>{var t=new Uint8Array(512),n=new Uint8Array(256);(function(){let e=1;for(let r=0;r<255;r++)t[r]=e,n[e]=r,e<<=1,e&256&&(e^=285);for(let e=255;e<512;e++)t[e]=t[e-255]})(),e.log=function(e){if(e<1)throw Error(`log(`+e+`)`);return n[e]},e.exp=function(e){return t[e]},e.mul=function(e,r){return e===0||r===0?0:t[n[e]+n[r]]}})),Kh=o((e=>{var t=Gh();e.mul=function(e,n){let r=new Uint8Array(e.length+n.length-1);for(let i=0;i<e.length;i++)for(let a=0;a<n.length;a++)r[i+a]^=t.mul(e[i],n[a]);return r},e.mod=function(e,n){let r=new Uint8Array(e);for(;r.length-n.length>=0;){let e=r[0];for(let i=0;i<n.length;i++)r[i]^=t.mul(n[i],e);let i=0;for(;i<r.length&&r[i]===0;)i++;r=r.slice(i)}return r},e.generateECPolynomial=function(n){let r=new Uint8Array([1]);for(let i=0;i<n;i++)r=e.mul(r,new Uint8Array([1,t.exp(i)]));return r}})),qh=o(((e,t)=>{var n=Kh();function r(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}r.prototype.initialize=function(e){this.degree=e,this.genPoly=n.generateECPolynomial(this.degree)},r.prototype.encode=function(e){if(!this.genPoly)throw Error(`Encoder not initialized`);let t=new Uint8Array(e.length+this.degree);t.set(e);let r=n.mod(t,this.genPoly),i=this.degree-r.length;if(i>0){let e=new Uint8Array(this.degree);return e.set(r,i),e}return r},t.exports=r})),Jh=o((e=>{e.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}})),Yh=o((e=>{var t=`[0-9]+`,n=`[A-Z $%*+\\-./:]+`,r=`(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+`;r=r.replace(/u/g,`\\u`);var i=`(?:(?![A-Z0-9 $%*+\\-./:]|`+r+`)(?:.|[\r
|
||
]))+`;e.KANJI=new RegExp(r,`g`),e.BYTE_KANJI=RegExp(`[^A-Z0-9 $%*+\\-./:]+`,`g`),e.BYTE=new RegExp(i,`g`),e.NUMERIC=new RegExp(t,`g`),e.ALPHANUMERIC=new RegExp(n,`g`);var a=RegExp(`^`+r+`$`),o=RegExp(`^[0-9]+$`),s=RegExp(`^[A-Z0-9 $%*+\\-./:]+$`);e.testKanji=function(e){return a.test(e)},e.testNumeric=function(e){return o.test(e)},e.testAlphanumeric=function(e){return s.test(e)}})),Xh=o((e=>{var t=Jh(),n=Yh();e.NUMERIC={id:`Numeric`,bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:`Alphanumeric`,bit:2,ccBits:[9,11,13]},e.BYTE={id:`Byte`,bit:4,ccBits:[8,16,16]},e.KANJI={id:`Kanji`,bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(e,n){if(!e.ccBits)throw Error(`Invalid mode: `+e);if(!t.isValid(n))throw Error(`Invalid version: `+n);return n>=1&&n<10?e.ccBits[0]:n<27?e.ccBits[1]:e.ccBits[2]},e.getBestModeForData=function(t){return n.testNumeric(t)?e.NUMERIC:n.testAlphanumeric(t)?e.ALPHANUMERIC:n.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(e){if(e&&e.id)return e.id;throw Error(`Invalid mode`)},e.isValid=function(e){return e&&e.bit&&e.ccBits};function r(t){if(typeof t!=`string`)throw Error(`Param is not a string`);switch(t.toLowerCase()){case`numeric`:return e.NUMERIC;case`alphanumeric`:return e.ALPHANUMERIC;case`kanji`:return e.KANJI;case`byte`:return e.BYTE;default:throw Error(`Unknown mode: `+t)}}e.from=function(t,n){if(e.isValid(t))return t;try{return r(t)}catch{return n}}})),Zh=o((e=>{var t=Lh(),n=Wh(),r=Rh(),i=Xh(),a=Jh(),o=7973,s=t.getBCHDigit(o);function c(t,n,r){for(let i=1;i<=40;i++)if(n<=e.getCapacity(i,r,t))return i}function l(e,t){return i.getCharCountIndicator(e,t)+4}function u(e,t){let n=0;return e.forEach(function(e){let r=l(e.mode,t);n+=r+e.getBitsLength()}),n}function d(t,n){for(let r=1;r<=40;r++)if(u(t,r)<=e.getCapacity(r,n,i.MIXED))return r}e.from=function(e,t){return a.isValid(e)?parseInt(e,10):t},e.getCapacity=function(e,r,o){if(!a.isValid(e))throw Error(`Invalid QR Code version`);o===void 0&&(o=i.BYTE);let s=(t.getSymbolTotalCodewords(e)-n.getTotalCodewordsCount(e,r))*8;if(o===i.MIXED)return s;let c=s-l(o,e);switch(o){case i.NUMERIC:return Math.floor(c/10*3);case i.ALPHANUMERIC:return Math.floor(c/11*2);case i.KANJI:return Math.floor(c/13);case i.BYTE:default:return Math.floor(c/8)}},e.getBestVersionForData=function(e,t){let n,i=r.from(t,r.M);if(Array.isArray(e)){if(e.length>1)return d(e,i);if(e.length===0)return 1;n=e[0]}else n=e;return c(n.mode,n.getLength(),i)},e.getEncodedBits=function(e){if(!a.isValid(e)||e<7)throw Error(`Invalid QR Code version`);let n=e<<12;for(;t.getBCHDigit(n)-s>=0;)n^=o<<t.getBCHDigit(n)-s;return e<<12|n}})),Qh=o((e=>{var t=Lh(),n=1335,r=21522,i=t.getBCHDigit(n);e.getEncodedBits=function(e,a){let o=e.bit<<3|a,s=o<<10;for(;t.getBCHDigit(s)-i>=0;)s^=n<<t.getBCHDigit(s)-i;return(o<<10|s)^r}})),$h=o(((e,t)=>{var n=Xh();function r(e){this.mode=n.NUMERIC,this.data=e.toString()}r.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(e){let t,n,r;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),r=parseInt(n,10),e.put(r,10);let i=this.data.length-t;i>0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,i*3+1))},t.exports=r})),eg=o(((e,t)=>{var n=Xh(),r=`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:`.split(``);function i(e){this.mode=n.ALPHANUMERIC,this.data=e}i.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t=0;for(;t+2<=this.data.length;t+=2){let n=r.indexOf(this.data[t])*45;n+=r.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(r.indexOf(this.data[t]),6)},t.exports=i})),tg=o(((e,t)=>{var n=Xh();function r(e){this.mode=n.BYTE,this.data=typeof e==`string`?new TextEncoder().encode(e):new Uint8Array(e)}r.getBitsLength=function(e){return e*8},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)},t.exports=r})),ng=o(((e,t)=>{var n=Xh(),r=Lh();function i(e){this.mode=n.KANJI,this.data=e}i.getBitsLength=function(e){return e*13},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t=0;for(;t<this.data.length;t++){let n=r.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw Error(`Invalid SJIS character: `+this.data[t]+`
|
||
Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}},t.exports=i})),rg=o(((e,t)=>{var n={single_source_shortest_paths:function(e,t,r){var i={},a={};a[t]=0;var o=n.PriorityQueue.make();o.push(t,0);for(var s,c,l,u,d,f,p,m,h;!o.empty();)for(l in s=o.pop(),c=s.value,u=s.cost,d=e[c]||{},d)d.hasOwnProperty(l)&&(f=d[l],p=u+f,m=a[l],h=a[l]===void 0,(h||m>p)&&(a[l]=p,o.push(l,p),i[l]=c));if(r!==void 0&&a[r]===void 0){var g=[`Could not find a path from `,t,` to `,r,`.`].join(``);throw Error(g)}return i},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],r=t;r;)n.push(r),e[r],r=e[r];return n.reverse(),n},find_path:function(e,t,r){var i=n.single_source_shortest_paths(e,t,r);return n.extract_shortest_path_from_predecessor_list(i,r)},PriorityQueue:{make:function(e){var t=n.PriorityQueue,r={},i;for(i in e||={},t)t.hasOwnProperty(i)&&(r[i]=t[i]);return r.queue=[],r.sorter=e.sorter||t.default_sorter,r},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};t!==void 0&&(t.exports=n)})),ig=o((e=>{var t=Xh(),n=$h(),r=eg(),i=tg(),a=ng(),o=Yh(),s=Lh(),c=rg();function l(e){return unescape(encodeURIComponent(e)).length}function u(e,t,n){let r=[],i;for(;(i=e.exec(n))!==null;)r.push({data:i[0],index:i.index,mode:t,length:i[0].length});return r}function d(e){let n=u(o.NUMERIC,t.NUMERIC,e),r=u(o.ALPHANUMERIC,t.ALPHANUMERIC,e),i,a;return s.isKanjiModeEnabled()?(i=u(o.BYTE,t.BYTE,e),a=u(o.KANJI,t.KANJI,e)):(i=u(o.BYTE_KANJI,t.BYTE,e),a=[]),n.concat(r,i,a).sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function f(e,o){switch(o){case t.NUMERIC:return n.getBitsLength(e);case t.ALPHANUMERIC:return r.getBitsLength(e);case t.KANJI:return a.getBitsLength(e);case t.BYTE:return i.getBitsLength(e)}}function p(e){return e.reduce(function(e,t){let n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)},[])}function m(e){let n=[];for(let r=0;r<e.length;r++){let i=e[r];switch(i.mode){case t.NUMERIC:n.push([i,{data:i.data,mode:t.ALPHANUMERIC,length:i.length},{data:i.data,mode:t.BYTE,length:i.length}]);break;case t.ALPHANUMERIC:n.push([i,{data:i.data,mode:t.BYTE,length:i.length}]);break;case t.KANJI:n.push([i,{data:i.data,mode:t.BYTE,length:l(i.data)}]);break;case t.BYTE:n.push([{data:i.data,mode:t.BYTE,length:l(i.data)}])}}return n}function h(e,n){let r={},i={start:{}},a=[`start`];for(let o=0;o<e.length;o++){let s=e[o],c=[];for(let e=0;e<s.length;e++){let l=s[e],u=``+o+e;c.push(u),r[u]={node:l,lastCount:0},i[u]={};for(let e=0;e<a.length;e++){let o=a[e];r[o]&&r[o].node.mode===l.mode?(i[o][u]=f(r[o].lastCount+l.length,l.mode)-f(r[o].lastCount,l.mode),r[o].lastCount+=l.length):(r[o]&&(r[o].lastCount=l.length),i[o][u]=f(l.length,l.mode)+4+t.getCharCountIndicator(l.mode,n))}}a=c}for(let e=0;e<a.length;e++)i[a[e]].end=0;return{map:i,table:r}}function g(e,o){let c,l=t.getBestModeForData(e);if(c=t.from(o,l),c!==t.BYTE&&c.bit<l.bit)throw Error(`"`+e+`" cannot be encoded with mode `+t.toString(c)+`.
|
||
Suggested mode is: `+t.toString(l));switch(c===t.KANJI&&!s.isKanjiModeEnabled()&&(c=t.BYTE),c){case t.NUMERIC:return new n(e);case t.ALPHANUMERIC:return new r(e);case t.KANJI:return new a(e);case t.BYTE:return new i(e)}}e.fromArray=function(e){return e.reduce(function(e,t){return typeof t==`string`?e.push(g(t,null)):t.data&&e.push(g(t.data,t.mode)),e},[])},e.fromString=function(t,n){let r=h(m(d(t,s.isKanjiModeEnabled())),n),i=c.find_path(r.map,`start`,`end`),a=[];for(let e=1;e<i.length-1;e++)a.push(r.table[i[e]].node);return e.fromArray(p(a))},e.rawSplit=function(t){return e.fromArray(d(t,s.isKanjiModeEnabled()))}})),ag=o((e=>{var t=Lh(),n=Rh(),r=zh(),i=Bh(),a=Vh(),o=Hh(),s=Uh(),c=Wh(),l=qh(),u=Zh(),d=Qh(),f=Xh(),p=ig();function m(e,t){let n=e.size,r=o.getPositions(t);for(let t=0;t<r.length;t++){let i=r[t][0],a=r[t][1];for(let t=-1;t<=7;t++)if(!(i+t<=-1||n<=i+t))for(let r=-1;r<=7;r++)a+r<=-1||n<=a+r||(t>=0&&t<=6&&(r===0||r===6)||r>=0&&r<=6&&(t===0||t===6)||t>=2&&t<=4&&r>=2&&r<=4?e.set(i+t,a+r,!0,!0):e.set(i+t,a+r,!1,!0))}}function h(e){let t=e.size;for(let n=8;n<t-8;n++){let t=n%2==0;e.set(n,6,t,!0),e.set(6,n,t,!0)}}function g(e,t){let n=a.getPositions(t);for(let t=0;t<n.length;t++){let r=n[t][0],i=n[t][1];for(let t=-2;t<=2;t++)for(let n=-2;n<=2;n++)t===-2||t===2||n===-2||n===2||t===0&&n===0?e.set(r+t,i+n,!0,!0):e.set(r+t,i+n,!1,!0)}}function _(e,t){let n=e.size,r=u.getEncodedBits(t),i,a,o;for(let t=0;t<18;t++)i=Math.floor(t/3),a=t%3+n-8-3,o=(r>>t&1)==1,e.set(i,a,o,!0),e.set(a,i,o,!0)}function v(e,t,n){let r=e.size,i=d.getEncodedBits(t,n),a,o;for(a=0;a<15;a++)o=(i>>a&1)==1,a<6?e.set(a,8,o,!0):a<8?e.set(a+1,8,o,!0):e.set(r-15+a,8,o,!0),a<8?e.set(8,r-a-1,o,!0):a<9?e.set(8,15-a-1+1,o,!0):e.set(8,15-a-1,o,!0);e.set(r-8,8,1,!0)}function y(e,t){let n=e.size,r=-1,i=n-1,a=7,o=0;for(let s=n-1;s>0;s-=2)for(s===6&&s--;;){for(let n=0;n<2;n++)if(!e.isReserved(i,s-n)){let r=!1;o<t.length&&(r=(t[o]>>>a&1)==1),e.set(i,s-n,r),a--,a===-1&&(o++,a=7)}if(i+=r,i<0||n<=i){i-=r,r=-r;break}}}function b(e,n,i){let a=new r;i.forEach(function(t){a.put(t.mode.bit,4),a.put(t.getLength(),f.getCharCountIndicator(t.mode,e)),t.write(a)});let o=(t.getSymbolTotalCodewords(e)-c.getTotalCodewordsCount(e,n))*8;for(a.getLengthInBits()+4<=o&&a.put(0,4);a.getLengthInBits()%8!=0;)a.putBit(0);let s=(o-a.getLengthInBits())/8;for(let e=0;e<s;e++)a.put(e%2?17:236,8);return x(a,e,n)}function x(e,n,r){let i=t.getSymbolTotalCodewords(n),a=i-c.getTotalCodewordsCount(n,r),o=c.getBlocksCount(n,r),s=o-i%o,u=Math.floor(i/o),d=Math.floor(a/o),f=d+1,p=u-d,m=new l(p),h=0,g=Array(o),_=Array(o),v=0,y=new Uint8Array(e.buffer);for(let e=0;e<o;e++){let t=e<s?d:f;g[e]=y.slice(h,h+t),_[e]=m.encode(g[e]),h+=t,v=Math.max(v,t)}let b=new Uint8Array(i),x=0,S,C;for(S=0;S<v;S++)for(C=0;C<o;C++)S<g[C].length&&(b[x++]=g[C][S]);for(S=0;S<p;S++)for(C=0;C<o;C++)b[x++]=_[C][S];return b}function S(e,n,r,a){let o;if(Array.isArray(e))o=p.fromArray(e);else if(typeof e==`string`){let t=n;if(!t){let n=p.rawSplit(e);t=u.getBestVersionForData(n,r)}o=p.fromString(e,t||40)}else throw Error(`Invalid data`);let c=u.getBestVersionForData(o,r);if(!c)throw Error(`The amount of data is too big to be stored in a QR Code`);if(!n)n=c;else if(n<c)throw Error(`
|
||
The chosen QR Code version cannot contain this amount of data.
|
||
Minimum version required to store current data is: `+c+`.
|
||
`);let l=b(n,r,o),d=new i(t.getSymbolSize(n));return m(d,n),h(d),g(d,n),v(d,r,0),n>=7&&_(d,n),y(d,l),isNaN(a)&&(a=s.getBestMask(d,v.bind(null,d,r))),s.applyMask(a,d),v(d,r,a),{modules:d,version:n,errorCorrectionLevel:r,maskPattern:a,segments:o}}e.create=function(e,r){if(e===void 0||e===``)throw Error(`No input text`);let i=n.M,a,o;return r!==void 0&&(i=n.from(r.errorCorrectionLevel,n.M),a=u.from(r.version),o=s.from(r.maskPattern),r.toSJISFunc&&t.setToSJISFunction(r.toSJISFunc)),S(e,a,i,o)}})),og=o((e=>{function t(e){if(typeof e==`number`&&(e=e.toString()),typeof e!=`string`)throw Error(`Color should be defined as hex string`);let t=e.slice().replace(`#`,``).split(``);if(t.length<3||t.length===5||t.length>8)throw Error(`Invalid hex color: `+e);(t.length===3||t.length===4)&&(t=Array.prototype.concat.apply([],t.map(function(e){return[e,e]}))),t.length===6&&t.push(`F`,`F`);let n=parseInt(t.join(``),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:n&255,hex:`#`+t.slice(0,6).join(``)}}e.getOptions=function(e){e||={},e.color||(e.color={});let n=e.margin===void 0||e.margin===null||e.margin<0?4:e.margin,r=e.width&&e.width>=21?e.width:void 0,i=e.scale||4;return{width:r,scale:r?4:i,margin:n,color:{dark:t(e.color.dark||`#000000ff`),light:t(e.color.light||`#ffffffff`)},type:e.type,rendererOpts:e.rendererOpts||{}}},e.getScale=function(e,t){return t.width&&t.width>=e+t.margin*2?t.width/(e+t.margin*2):t.scale},e.getImageWidth=function(t,n){let r=e.getScale(t,n);return Math.floor((t+n.margin*2)*r)},e.qrToImageData=function(t,n,r){let i=n.modules.size,a=n.modules.data,o=e.getScale(i,r),s=Math.floor((i+r.margin*2)*o),c=r.margin*o,l=[r.color.light,r.color.dark];for(let e=0;e<s;e++)for(let n=0;n<s;n++){let u=(e*s+n)*4,d=r.color.light;if(e>=c&&n>=c&&e<s-c&&n<s-c){let t=Math.floor((e-c)/o),r=Math.floor((n-c)/o);d=l[+!!a[t*i+r]]}t[u++]=d.r,t[u++]=d.g,t[u++]=d.b,t[u]=d.a}}})),sg=o((e=>{var t=og();function n(e,t,n){e.clearRect(0,0,t.width,t.height),t.style||={},t.height=n,t.width=n,t.style.height=n+`px`,t.style.width=n+`px`}function r(){try{return document.createElement(`canvas`)}catch{throw Error(`You need to specify a canvas element`)}}e.render=function(e,i,a){let o=a,s=i;o!==void 0||i&&i.getContext||(o=i,i=void 0),i||(s=r()),o=t.getOptions(o);let c=t.getImageWidth(e.modules.size,o),l=s.getContext(`2d`),u=l.createImageData(c,c);return t.qrToImageData(u.data,e,o),n(l,s,c),l.putImageData(u,0,0),s},e.renderToDataURL=function(t,n,r){let i=r;i!==void 0||n&&n.getContext||(i=n,n=void 0),i||={};let a=e.render(t,n,i),o=i.type||`image/png`,s=i.rendererOpts||{};return a.toDataURL(o,s.quality)}})),cg=o((e=>{var t=og();function n(e,t){let n=e.a/255,r=t+`="`+e.hex+`"`;return n<1?r+` `+t+`-opacity="`+n.toFixed(2).slice(1)+`"`:r}function r(e,t,n){let r=e+t;return n!==void 0&&(r+=` `+n),r}function i(e,t,n){let i=``,a=0,o=!1,s=0;for(let c=0;c<e.length;c++){let l=Math.floor(c%t),u=Math.floor(c/t);!l&&!o&&(o=!0),e[c]?(s++,c>0&&l>0&&e[c-1]||(i+=o?r(`M`,l+n,.5+u+n):r(`m`,a,0),a=0,o=!1),l+1<t&&e[c+1]||(i+=r(`h`,s),s=0)):a++}return i}e.render=function(e,r,a){let o=t.getOptions(r),s=e.modules.size,c=e.modules.data,l=s+o.margin*2,u=o.color.light.a?`<path `+n(o.color.light,`fill`)+` d="M0 0h`+l+`v`+l+`H0z"/>`:``,d=`<path `+n(o.color.dark,`stroke`)+` d="`+i(c,s,o.margin)+`"/>`,f=`viewBox="0 0 `+l+` `+l+`"`,p=`<svg xmlns="http://www.w3.org/2000/svg" `+(o.width?`width="`+o.width+`" height="`+o.width+`" `:``)+f+` shape-rendering="crispEdges">`+u+d+`</svg>
|
||
`;return typeof a==`function`&&a(null,p),p}})),lg=l(o((e=>{var t=Ih(),n=ag(),r=sg(),i=cg();function a(e,r,i,a,o){let s=[].slice.call(arguments,1),c=s.length,l=typeof s[c-1]==`function`;if(!l&&!t())throw Error(`Callback required as last argument`);if(l){if(c<2)throw Error(`Too few arguments provided`);c===2?(o=i,i=r,r=a=void 0):c===3&&(r.getContext&&o===void 0?(o=a,a=void 0):(o=a,a=i,i=r,r=void 0))}else{if(c<1)throw Error(`Too few arguments provided`);return c===1?(i=r,r=a=void 0):c===2&&!r.getContext&&(a=i,i=r,r=void 0),new Promise(function(t,o){try{t(e(n.create(i,a),r,a))}catch(e){o(e)}})}try{let t=n.create(i,a);o(null,e(t,r,a))}catch(e){o(e)}}e.create=n.create,e.toCanvas=a.bind(null,r.render),e.toDataURL=a.bind(null,r.renderToDataURL),e.toString=a.bind(null,function(e,t,n){return i.render(e,n)})}))(),1),ug={class:`space-y-4`},dg={class:`text-sm`},fg={class:`list-decimal space-y-1 pl-5 text-sm`},pg=[`disabled`],mg={class:`text-sm font-semibold`},hg={class:`flex flex-wrap items-start gap-5`},gg={class:`w-56 max-w-full`},_g=[`src`],vg={class:`mt-3 text-xs font-semibold`},yg={class:`mt-1 block select-all break-all rounded bg-text/5 px-2 py-1.5 font-mono text-sm tracking-wide`,"data-testid":`two-factor-key`},bg={class:`min-w-0 flex-1 space-y-3 text-sm`},xg=[`href`],Sg={for:`tf-code`,class:`m-label`},Cg={key:0,class:`m-error`},wg=[`disabled`],Tg={class:`text-sm font-semibold`},Eg={class:`text-sm`},Dg={class:`grid max-w-sm grid-cols-2 gap-2 font-mono text-sm`},Og={class:`flex flex-wrap gap-2`},kg=L({__name:`TwoFactorSetup`,emits:[`done`],setup(e,{emit:t}){let n=t,r=N(`start`),i=N(``),a=N(``),o=N(``),s=N(``),c=N(``),l=N(!1),u=N([]),d=N(!1),f=q(()=>a.value.replace(/(.{4})/g,`$1 `).trim());async function p(){l.value=!0;try{let e=await X.post(`${Y.base}/two-factor/setup`);i.value=e.uri,a.value=e.secret,o.value=await lg.toDataURL(e.uri,{margin:1,width:224}),r.value=`app`}finally{l.value=!1}}async function m(){l.value=!0,c.value=``;try{let e=await X.post(`${Y.base}/two-factor/confirm`,{code:s.value});u.value=e.recovery_codes,r.value=`codes`}catch(e){if(e instanceof Qu&&(e.status===422||e.status===429))c.value=e.body?.message??Z(`That code is not right.`),s.value=``;else throw e}finally{l.value=!1}}async function h(e){await navigator.clipboard?.writeText(e),d.value=!0,setTimeout(()=>d.value=!1,2e3)}function g(){let e=new Blob([`${Y.two_factor.issuer}\n${Y.user?.email??``}\n\n${u.value.join(`
|
||
`)}\n`],{type:`text/plain`}),t=document.createElement(`a`);t.href=URL.createObjectURL(e),t.download=`recovery-codes.txt`,t.click(),URL.revokeObjectURL(t.href)}return(e,t)=>(B(),V(`div`,ug,[r.value===`start`?(B(),V(z,{key:0},[U(`p`,dg,j(P(Z)(`Besides your password you type a code of 6 digits from an app on your phone. Then nobody can get in with only your password.`)),1),U(`ol`,fg,[U(`li`,null,j(P(Z)(`Install an authenticator app on your phone, for example Google Authenticator, Microsoft Authenticator or 2FAS.`)),1),U(`li`,null,j(P(Z)(`Press the button below and put your account in the app.`)),1),U(`li`,null,j(P(Z)(`Type the 6 digits the app shows.`)),1)]),U(`button`,{type:`button`,class:`m-btn m-btn-primary`,disabled:l.value,onClick:p},j(P(Z)(`Start`)),9,pg)],64)):r.value===`app`?(B(),V(z,{key:1},[U(`p`,mg,j(P(Z)(`Put your account in the app`)),1),U(`div`,hg,[U(`div`,gg,[U(`img`,{src:o.value,alt:``,width:`224`,height:`224`,class:`rounded-lg border border-line bg-white`},null,8,_g),U(`p`,vg,j(P(Z)(`Setup key`)),1),U(`code`,yg,j(f.value),1),U(`button`,{type:`button`,class:`mt-1 text-sm text-brand underline`,onClick:t[0]||=e=>h(a.value)},j(d.value?P(Z)(`Copied`):P(Z)(`Copy the key`)),1)]),U(`div`,bg,[U(`p`,null,j(P(Z)(`Scan this picture with the app.`)),1),U(`p`,null,j(P(Z)(`No camera, or you use a password manager such as Bitwarden? Add the setup key under the picture by hand: choose to add a key or secret, paste it, and keep the other options as they are (time based, 6 digits).`)),1),U(`p`,null,[G(j(P(Z)(`Is this the phone you have the app on? Press the button, the app opens by itself.`)),1),t[4]||=U(`br`,null,null,-1),U(`a`,{href:i.value,class:`m-btn m-btn-secondary mt-2 inline-flex`},j(P(Z)(`Open in the app`)),9,xg)])])]),U(`form`,{class:`max-w-xs`,onSubmit:Pu(m,[`prevent`])},[U(`label`,Sg,j(P(Z)(`The 6 digits the app shows`)),1),I(U(`input`,{id:`tf-code`,"onUpdate:modelValue":t[1]||=e=>s.value=e,type:`text`,inputmode:`numeric`,autocomplete:`one-time-code`,maxlength:`10`,required:``,class:`m-input text-center text-xl tracking-widest`},null,512),[[J,s.value]]),c.value?(B(),V(`p`,Cg,j(c.value),1)):K(``,!0),U(`button`,{type:`submit`,class:`m-btn m-btn-primary mt-3`,disabled:l.value},j(P(Z)(`Turn on`)),9,wg)],32)],64)):(B(),V(z,{key:2},[U(`p`,Tg,j(P(Z)(`It is on. Keep these recovery codes safe.`)),1),U(`p`,Eg,j(P(Z)(`Lost your phone? Each of these codes works once instead of the 6 digits. Keep them somewhere safe, for example in a password manager. They are shown only now.`)),1),U(`ul`,Dg,[(B(!0),V(z,null,R(u.value,e=>(B(),V(`li`,{key:e,class:`select-all rounded bg-text/5 px-2 py-1`},j(e),1))),128))]),U(`div`,Og,[U(`button`,{type:`button`,class:`m-btn m-btn-secondary`,onClick:t[2]||=e=>h(u.value.join(`
|
||
`))},j(d.value?P(Z)(`Copied`):P(Z)(`Copy`)),1),U(`button`,{type:`button`,class:`m-btn m-btn-secondary`,onClick:g},j(P(Z)(`Download`)),1),U(`button`,{type:`button`,class:`m-btn m-btn-primary`,onClick:t[3]||=e=>n(`done`)},j(P(Z)(`I have saved them`)),1)])],64))]))}}),Ag={class:`space-y-3 rounded-lg border border-line p-4`},jg={class:`px-1.5 text-sm font-semibold`},Mg={class:`text-sm`},Ng={class:`m-badge`},Pg={class:`m-help`},Fg={class:`flex flex-wrap gap-2`},Ig={key:0,class:`m-help`},Lg={class:`m-help`},Rg={for:`tf-pw`,class:`m-label`},zg={key:0,class:`m-error`},Bg={for:`tf-c`,class:`m-label`},Vg={key:0,class:`m-error`},Hg={class:`flex gap-2`},Ug=[`disabled`],Wg={key:2,class:`space-y-2`},Gg={class:`text-sm`},Kg={class:`grid max-w-sm grid-cols-2 gap-2 font-mono text-sm`},qg={key:0,class:`text-sm font-semibold text-red-700 dark:text-red-400`},Jg={key:1,class:`text-sm`},Yg=L({__name:`TwoFactorPanel`,setup(e){let t=N({...Y.two_factor}),n=N(`none`),r=N(``),i=N(``),a=N({}),o=N([]),s=N(!1);async function c(e,t){s.value=!0,a.value={};try{return await X[e](`${Y.base}/two-factor${t}`,{password:r.value,code:i.value})}catch(e){if(e instanceof Qu&&[403,422,429].includes(e.status))return a.value=Object.keys(e.errors).length?e.errors:{code:e.body?.message??``},null;throw e}finally{s.value=!1,r.value=i.value=``}}async function l(){let e=await c(`post`,`/recovery-codes`);e&&(o.value=e.recovery_codes,t.value={...t.value,...e})}async function u(){let e=await c(`delete`,``);e&&(t.value={...t.value,...e},n.value=`none`,$(Z(`The second step is off.`)))}function d(){window.location.reload()}return(e,c)=>(B(),V(`fieldset`,Ag,[U(`legend`,jg,j(P(Z)(`Extra safe login`)),1),t.value.enrolled?(B(),V(z,{key:0},[U(`p`,Mg,[U(`span`,Ng,j(P(Z)(`On`)),1),G(` `+j(P(Z)(`You type a code from your phone after your password.`)),1)]),U(`p`,Pg,j(P(Z)(`:count recovery codes left.`,{count:String(t.value.recovery_left)})),1),n.value===`none`?(B(),V(z,{key:0},[U(`div`,Fg,[U(`button`,{type:`button`,class:`m-btn m-btn-secondary`,onClick:c[0]||=e=>{n.value=`codes`,o.value=[]}},j(P(Z)(`New recovery codes`)),1),t.value.required?K(``,!0):(B(),V(`button`,{key:0,type:`button`,class:`m-btn m-btn-secondary`,onClick:c[1]||=e=>n.value=`off`},j(P(Z)(`Turn off`)),1))]),t.value.required?(B(),V(`p`,Ig,j(P(Z)(`You have to have this, so it cannot be turned off.`)),1)):K(``,!0)],64)):o.value.length?K(``,!0):(B(),V(`form`,{key:1,class:`max-w-xs space-y-3`,onSubmit:c[5]||=Pu(e=>n.value===`codes`?l():u(),[`prevent`])},[U(`p`,Lg,j(P(Z)(`To be sure it is you: your password and the 6 digits from the app.`)),1),U(`div`,null,[U(`label`,Rg,j(P(Z)(`Current password`)),1),I(U(`input`,{id:`tf-pw`,"onUpdate:modelValue":c[2]||=e=>r.value=e,type:`password`,required:``,class:`m-input`,autocomplete:`current-password`},null,512),[[J,r.value]]),a.value.password?(B(),V(`p`,zg,j(a.value.password),1)):K(``,!0)]),U(`div`,null,[U(`label`,Bg,j(P(Z)(`The 6 digits`)),1),I(U(`input`,{id:`tf-c`,"onUpdate:modelValue":c[3]||=e=>i.value=e,type:`text`,inputmode:`numeric`,autocomplete:`one-time-code`,maxlength:`40`,required:``,class:`m-input`},null,512),[[J,i.value]]),a.value.code?(B(),V(`p`,Vg,j(a.value.code),1)):K(``,!0)]),U(`div`,Hg,[U(`button`,{type:`submit`,class:A([`m-btn`,n.value===`off`?`m-btn-danger`:`m-btn-primary`]),disabled:s.value},j(n.value===`off`?P(Z)(`Turn off`):P(Z)(`Make new codes`)),11,Ug),U(`button`,{type:`button`,class:`m-btn m-btn-secondary`,onClick:c[4]||=e=>n.value=`none`},j(P(Z)(`Cancel`)),1)])],32)),o.value.length?(B(),V(`div`,Wg,[U(`p`,Gg,j(P(Z)(`Your new recovery codes. The old ones do not work any more. They are shown only now.`)),1),U(`ul`,Kg,[(B(!0),V(z,null,R(o.value,e=>(B(),V(`li`,{key:e,class:`select-all rounded bg-text/5 px-2 py-1`},j(e),1))),128))]),U(`button`,{type:`button`,class:`m-btn m-btn-primary`,onClick:c[6]||=e=>{o.value=[],n.value=`none`}},j(P(Z)(`I have saved them`)),1)])):K(``,!0)],64)):(B(),V(z,{key:1},[t.value.required?(B(),V(`p`,qg,j(t.value.days_left===null?P(Z)(`You have to set this up.`):P(Z)(`You have to set this up within :days days.`,{days:String(t.value.days_left)})),1)):(B(),V(`p`,Jg,j(P(Z)(`Not on. You can turn it on to keep your account safer.`)),1)),n.value===`setup`?(B(),H(kg,{key:3,onDone:d})):(B(),V(`button`,{key:2,type:`button`,class:`m-btn m-btn-primary`,onClick:c[7]||=e=>n.value=`setup`},j(P(Z)(`Set up`)),1))],64))]))}}),Xg={class:`font-display mb-6 text-2xl font-bold`},Zg={for:`name`,class:`m-label`},Qg={key:0,class:`m-error`},$g={class:`m-label`},e_={class:`text-sm`},t_={class:`m-label`},n_={class:`flex flex-wrap gap-1.5`},r_={key:0,class:`m-badge`},i_={key:0,class:`m-badge`},a_={key:0,class:`rounded-lg border border-line p-4`},o_={class:`px-1.5 text-sm font-semibold`},s_={class:`mt-1 flex flex-wrap gap-3`},c_=[`onUpdate:modelValue`,`value`],l_={class:`flex`},u_={key:0,class:`m-error`},d_={key:1,class:`rounded-lg border border-line p-4`},f_={class:`px-1.5 text-sm font-semibold`},p_={class:`mt-1 flex flex-wrap gap-3`},m_=[`onUpdate:modelValue`,`value`],h_={key:0,class:`m-error`},g_={class:`space-y-4 rounded-lg border border-line p-4`},__={class:`px-1.5 text-sm font-semibold`},v_={class:`m-help`},y_={for:`current_password`,class:`m-label`},b_={key:0,class:`m-error`},x_={for:`password`,class:`m-label`},S_={class:`m-help`},C_={key:0,class:`m-error`},w_={for:`password_confirmation`,class:`m-label`},T_={key:3,class:`flex items-center gap-3 rounded-lg border border-line p-4`},E_={class:`text-sm font-semibold`},D_=[`disabled`],O_=L({__name:`Profile`,props:{profile:{}},setup(e){let t=e,n=nd({name:t.profile.name,theme:t.profile.theme,locale:t.profile.locale,current_password:``,password:``,password_confirmation:``});async function r(){await n.send(`put`,Y.base+`/profile`)&&($(Z(`Saved.`)),(n.values.theme!==Y.theme||n.values.locale!==Y.locale)&&window.location.reload(),n.values.current_password=n.values.password=n.values.password_confirmation=``)}return(t,i)=>(B(),V(z,null,[U(`h1`,Xg,j(P(Z)(`My account`)),1),U(`form`,{class:`m-card max-w-xl space-y-5 p-5`,onSubmit:Pu(r,[`prevent`])},[U(`div`,null,[U(`label`,Zg,j(P(Z)(`Name`)),1),I(U(`input`,{id:`name`,"onUpdate:modelValue":i[0]||=e=>P(n).values.name=e,type:`text`,required:``,maxlength:`255`,class:`m-input`,autocomplete:`name`},null,512),[[J,P(n).values.name]]),P(n).errors.name?(B(),V(`p`,Qg,j(P(n).errors.name),1)):K(``,!0)]),U(`div`,null,[U(`span`,$g,j(P(Z)(`Email address`)),1),U(`p`,e_,j(e.profile.email),1)]),U(`div`,null,[U(`span`,t_,j(P(Z)(`What you may do`)),1),U(`p`,n_,[e.profile.is_super_admin?(B(),V(`span`,r_,j(P(Z)(`Super admin: everything`)),1)):(B(),V(z,{key:1},[(B(!0),V(z,null,R(e.profile.groups,e=>(B(),V(`span`,{key:e,class:`m-badge`},j(e),1))),128)),e.profile.groups.length?K(``,!0):(B(),V(`span`,i_,j(P(Z)(`Not in a group yet`)),1))],64))])]),e.profile.themes.length?(B(),V(`fieldset`,a_,[U(`legend`,o_,j(P(Z)(`Look`)),1),U(`div`,s_,[(B(!0),V(z,null,R(e.profile.themes,e=>(B(),V(`label`,{key:e.key,class:A([`flex cursor-pointer items-center gap-2 rounded-lg border px-3 py-2 text-sm`,P(n).values.theme===e.key?`border-brand`:`border-line`])},[I(U(`input`,{"onUpdate:modelValue":e=>P(n).values.theme=e,type:`radio`,name:`theme`,value:e.key,class:`sr-only`},null,8,c_),[[Su,P(n).values.theme]]),U(`span`,l_,[(B(),V(z,null,R([`ink`,`panel`,`brand`],t=>U(`span`,{key:t,class:`h-4 w-4 border border-line`,style:k({background:e.colors[t]})},null,4)),64))]),G(` `+j(e.label),1)],2))),128))]),P(n).errors.theme?(B(),V(`p`,u_,j(P(n).errors.theme),1)):K(``,!0)])):K(``,!0),e.profile.locales.length?(B(),V(`fieldset`,d_,[U(`legend`,f_,j(P(Z)(`Language`)),1),U(`div`,p_,[(B(!0),V(z,null,R(e.profile.locales,e=>(B(),V(`label`,{key:e,class:A([`flex cursor-pointer items-center gap-2 rounded-lg border px-3 py-2 text-sm`,P(n).values.locale===e?`border-brand`:`border-line`])},[I(U(`input`,{"onUpdate:modelValue":e=>P(n).values.locale=e,type:`radio`,name:`locale`,value:e,class:`sr-only`},null,8,m_),[[Su,P(n).values.locale]]),G(` `+j(e===`nl`?`Nederlands`:`English`),1)],2))),128))]),P(n).errors.locale?(B(),V(`p`,h_,j(P(n).errors.locale),1)):K(``,!0)])):K(``,!0),U(`fieldset`,g_,[U(`legend`,__,j(P(Z)(`New password`)),1),U(`p`,v_,j(P(Z)(`Leave empty to keep the password you have.`)),1),U(`div`,null,[U(`label`,y_,j(P(Z)(`Current password`)),1),I(U(`input`,{id:`current_password`,"onUpdate:modelValue":i[1]||=e=>P(n).values.current_password=e,type:`password`,class:`m-input`,autocomplete:`current-password`},null,512),[[J,P(n).values.current_password]]),P(n).errors.current_password?(B(),V(`p`,b_,j(P(n).errors.current_password),1)):K(``,!0)]),U(`div`,null,[U(`label`,x_,j(P(Z)(`New password`)),1),I(U(`input`,{id:`password`,"onUpdate:modelValue":i[2]||=e=>P(n).values.password=e,type:`password`,minlength:`12`,maxlength:`200`,class:`m-input`,autocomplete:`new-password`},null,512),[[J,P(n).values.password]]),U(`p`,S_,j(P(Z)(`At least 12 characters.`)),1),P(n).errors.password?(B(),V(`p`,C_,j(P(n).errors.password),1)):K(``,!0)]),U(`div`,null,[U(`label`,w_,j(P(Z)(`New password, once more`)),1),I(U(`input`,{id:`password_confirmation`,"onUpdate:modelValue":i[3]||=e=>P(n).values.password_confirmation=e,type:`password`,maxlength:`200`,class:`m-input`,autocomplete:`new-password`},null,512),[[J,P(n).values.password_confirmation]])])]),P(Y).two_factor.state===`off`?K(``,!0):(B(),H(Yg,{key:2})),P(Y).tutorial_state?(B(),V(`div`,T_,[W(Fh,{name:`peek`,size:64}),U(`div`,null,[U(`p`,E_,j(P(Z)(`The tour`)),1),U(`button`,{type:`button`,class:`text-sm text-brand underline`,onClick:i[4]||=e=>P(Q).tour=!0},j(P(Z)(`Show the tour`)),1)])])):K(``,!0),U(`button`,{type:`submit`,class:`m-btn m-btn-primary`,disabled:P(n).busy},j(P(n).busy?P(Z)(`Saving…`):P(Z)(`Save`)),9,D_)],32)],64))}}),k_={class:`mb-6 flex flex-wrap items-center justify-between gap-3`},A_={class:`font-display text-2xl font-bold`},j_={class:`grid gap-4 sm:grid-cols-2`},M_={class:`m-label`,for:`a-name`},N_={key:0,class:`m-error`},P_={class:`m-label`,for:`a-email`},F_={key:0,class:`m-error`},I_={class:`m-label`,for:`a-pass`},L_=[`required`],R_={class:`m-help`},z_={key:0,class:`m-error`},B_={key:0},V_={class:`m-label`},H_=[`value`,`disabled`],U_={key:0,class:`ml-auto flex items-center gap-1 text-xs text-muted`},W_=[`value`],G_={class:`m-help`},K_={key:1},q_={class:`m-label`},J_={class:`flex items-center gap-2 py-0.5 text-sm`},Y_={class:`flex items-center gap-2 py-0.5 text-sm`},X_={class:`flex items-center gap-2 py-0.5 text-sm`},Z_={class:`flex items-center gap-2 text-sm`},Q_={class:`flex gap-2`},$_=[`disabled`],e1={class:`m-card divide-y divide-line`},t1={class:`min-w-0`},n1={class:`truncate font-semibold`},r1={key:0,class:`text-xs font-normal text-muted`},i1={class:`truncate text-xs text-muted`},a1={class:`mt-1 flex flex-wrap gap-1`},o1={key:0,class:`m-badge`},s1={key:1,class:`m-badge`},c1={key:2,class:`m-badge`},l1=[`title`],u1={class:`flex gap-2`},d1=[`onClick`],f1=[`onClick`],p1=[`onClick`],m1=L({__name:`AccountsIndex`,props:{accounts:{},groups:{}},setup(e){let t=N(null),n=nd({name:``,email:``,password:``,groups:[],primary_group:0,view:``,tutorial:!1});function r(e){t.value=e,n.errors={},n.values.name=e===`new`?``:e.name,n.values.email=e===`new`?``:e.email,n.values.password=``,n.values.groups=e===`new`?[]:e.groups.map(e=>e.id),n.values.primary_group=e===`new`?0:e.groups.find(e=>e.primary)?.id??0,n.values.view=e===`new`?``:e.view??``,n.values.tutorial=e!==`new`&&e.tutorial===`pending`}async function i(){let e=t.value;(e===`new`?await n.send(`post`,`${Y.base}/accounts`):await n.send(`put`,`${Y.base}/accounts/${e.id}`))&&($(Z(`Saved.`)),t.value=null,await xx())}async function a(e){window.confirm(Z(`Take away the second step of :name? They set it up again at the next login.`,{name:e.name}))&&(await X.post(`${Y.base}/accounts/${e.id}/two-factor/reset`),$(Z(`The second step is reset.`)),await xx())}async function o(e){window.confirm(Z(`Are you sure?`))&&(await X.delete(`${Y.base}/accounts/${e.id}`),$(Z(`Deleted.`)),await xx())}return(s,c)=>(B(),V(z,null,[U(`div`,k_,[U(`h1`,A_,j(P(Z)(`Accounts`)),1),U(`button`,{type:`button`,class:`m-btn m-btn-primary`,onClick:c[0]||=e=>r(`new`)},j(P(Z)(`New account`)),1)]),t.value?(B(),V(`form`,{key:0,class:`m-card mb-6 max-w-2xl space-y-4 p-5`,onSubmit:Pu(i,[`prevent`])},[U(`div`,j_,[U(`div`,null,[U(`label`,M_,j(P(Z)(`Name`)),1),I(U(`input`,{id:`a-name`,"onUpdate:modelValue":c[1]||=e=>P(n).values.name=e,required:``,maxlength:`255`,class:`m-input`},null,512),[[J,P(n).values.name]]),P(n).errors.name?(B(),V(`p`,N_,j(P(n).errors.name),1)):K(``,!0)]),U(`div`,null,[U(`label`,P_,j(P(Z)(`Email address`)),1),I(U(`input`,{id:`a-email`,"onUpdate:modelValue":c[2]||=e=>P(n).values.email=e,type:`email`,required:``,maxlength:`255`,class:`m-input`},null,512),[[J,P(n).values.email]]),P(n).errors.email?(B(),V(`p`,F_,j(P(n).errors.email),1)):K(``,!0)])]),U(`div`,null,[U(`label`,I_,j(P(Z)(`Password`)),1),I(U(`input`,{id:`a-pass`,"onUpdate:modelValue":c[3]||=e=>P(n).values.password=e,type:`password`,minlength:`12`,maxlength:`200`,required:t.value===`new`,class:`m-input`,autocomplete:`new-password`},null,8,L_),[[J,P(n).values.password]]),U(`p`,R_,j(t.value===`new`?P(Z)(`At least 12 characters.`):P(Z)(`Leave empty to keep the password you have.`)),1),P(n).errors.password?(B(),V(`p`,z_,j(P(n).errors.password),1)):K(``,!0)]),e.groups.length?(B(),V(`fieldset`,B_,[U(`legend`,V_,j(P(Z)(`Groups`)),1),(B(!0),V(z,null,R(e.groups,e=>(B(),V(`label`,{key:e.id,class:A([`flex items-center gap-2 py-0.5 text-sm`,e.can_give?``:`opacity-50`])},[I(U(`input`,{"onUpdate:modelValue":c[4]||=e=>P(n).values.groups=e,type:`checkbox`,value:e.id,disabled:!e.can_give},null,8,H_),[[bu,P(n).values.groups]]),G(` `+j(e.name)+` `,1),P(n).values.groups.includes(e.id)&&P(n).values.groups.length>1?(B(),V(`label`,U_,[I(U(`input`,{"onUpdate:modelValue":c[5]||=e=>P(n).values.primary_group=e,type:`radio`,value:e.id},null,8,W_),[[Su,P(n).values.primary_group]]),G(` `+j(P(Z)(`Primary`)),1)])):K(``,!0)],2))),128)),U(`p`,G_,j(P(Z)(`The primary group is the label of the account and sets its start screen. What it may do is everything its groups allow together.`)),1)])):K(``,!0),P(Y).simple_view?(B(),V(`fieldset`,K_,[U(`legend`,q_,j(P(Z)(`What this account sees`)),1),U(`label`,J_,[I(U(`input`,{"onUpdate:modelValue":c[6]||=e=>P(n).values.view=e,type:`radio`,value:``},null,512),[[Su,P(n).values.view]]),G(` `+j(P(Z)(`What its rights give`)),1)]),U(`label`,Y_,[I(U(`input`,{"onUpdate:modelValue":c[7]||=e=>P(n).values.view=e,type:`radio`,value:`simple`},null,512),[[Su,P(n).values.view]]),G(` `+j(P(Z)(`The simple manager`)),1)]),U(`label`,X_,[I(U(`input`,{"onUpdate:modelValue":c[8]||=e=>P(n).values.view=e,type:`radio`,value:`full`},null,512),[[Su,P(n).values.view]]),G(` `+j(P(Z)(`The whole manager`)),1)])])):K(``,!0),U(`label`,Z_,[I(U(`input`,{"onUpdate:modelValue":c[9]||=e=>P(n).values.tutorial=e,type:`checkbox`},null,512),[[bu,P(n).values.tutorial]]),G(` `+j(P(Z)(`Show the tour the next time this account opens the manager`)),1)]),U(`div`,Q_,[U(`button`,{type:`submit`,class:`m-btn m-btn-primary`,disabled:P(n).busy},j(P(n).busy?P(Z)(`Saving…`):P(Z)(`Save`)),9,$_),U(`button`,{type:`button`,class:`m-btn m-btn-secondary`,onClick:c[10]||=e=>t.value=null},j(P(Z)(`Cancel`)),1)])],32)):K(``,!0),U(`ul`,e1,[(B(!0),V(z,null,R(e.accounts,e=>(B(),V(`li`,{key:e.id,class:`flex flex-wrap items-center justify-between gap-3 p-4`},[U(`div`,t1,[U(`p`,n1,[G(j(e.name)+` `,1),e.is_you?(B(),V(`span`,r1,`(`+j(P(Z)(`you`))+`)`,1)):K(``,!0)]),U(`p`,i1,j(e.email),1),U(`p`,a1,[e.is_super_admin?(B(),V(`span`,o1,j(P(Z)(`Super admin`)),1)):K(``,!0),e.two_factor.on?(B(),V(`span`,s1,j(P(Z)(`Two-step login`)),1)):e.two_factor.required?(B(),V(`span`,c1,j(P(Z)(`Two-step login still to do`)),1)):K(``,!0),(B(!0),V(z,null,R(e.groups,t=>(B(),V(`span`,{key:t.id,class:A([`m-badge`,t.primary&&e.groups.length>1?`font-bold`:``]),title:t.primary&&e.groups.length>1?P(Z)(`Primary group`):``},j(t.name),11,l1))),128))])]),U(`div`,u1,[e.can_reset_two_factor?(B(),V(`button`,{key:0,type:`button`,class:`m-btn m-btn-secondary`,onClick:t=>a(e)},j(P(Z)(`Reset two-step login`)),9,d1)):K(``,!0),e.can_change?(B(),V(`button`,{key:1,type:`button`,class:`m-btn m-btn-secondary`,onClick:t=>r(e)},j(P(Z)(`Edit`)),9,f1)):K(``,!0),e.can_delete?(B(),V(`button`,{key:2,type:`button`,class:`m-btn m-btn-danger`,onClick:t=>o(e)},j(P(Z)(`Delete`)),9,p1)):K(``,!0)])]))),128))])],64))}}),h1={class:`mb-6 flex flex-wrap items-center justify-between gap-3`},g1={class:`font-display text-2xl font-bold`},_1={class:`m-label`,for:`g-name`},v1={key:0,class:`m-error`},y1={class:`m-label`,for:`g-desc`},b1={class:`m-label`,for:`g-start`},x1={value:``},S1=[`value`],C1={class:`m-help`},w1={class:`flex items-center gap-2 text-sm font-medium`},T1={class:`m-help`},E1={class:`px-1 text-sm font-semibold`},D1=[`value`,`onChange`],O1={class:`flex gap-2`},k1=[`disabled`],A1={key:1,class:`m-card p-5 text-sm text-muted`},j1={key:2,class:`m-card divide-y divide-line`},M1={class:`min-w-0`},N1={class:`font-semibold`},P1={class:`text-xs font-normal text-muted`},F1={key:0,class:`text-xs text-muted`},I1={key:1,class:`mt-1`},L1={class:`m-badge`},R1={class:`flex gap-2`},z1=[`onClick`],B1=[`onClick`],V1=L({__name:`GroupsIndex`,props:{groups:{},catalogue:{}},setup(e){let t=e,n=N(null),r=nd({name:``,description:``,start:``,permissions:[],require_two_factor:!1}),i=Y.navigation.filter(e=>e.href.startsWith(Y.base+`/`)&&!e.new_tab).map(e=>({label:e.label,value:e.href.slice(Y.base.length)})),a=t.catalogue.flatMap(e=>e.permissions);function o(e){n.value=e,r.errors={},r.values.name=e===`new`?``:e.name,r.values.description=e===`new`?``:e.description??``,r.values.start=e===`new`?``:e.start??``,r.values.permissions=e===`new`?[]:[...e.permissions],r.values.require_two_factor=e!==`new`&&e.require_two_factor}function s(e){r.values.permissions.includes(e.value)?r.values.permissions=[...new Set([...r.values.permissions,...e.needs])]:r.values.permissions=r.values.permissions.filter(t=>!a.find(e=>e.value===t)?.needs.includes(e.value))}async function c(){let e=n.value;(e===`new`?await r.send(`post`,`${Y.base}/groups`):await r.send(`put`,`${Y.base}/groups/${e.id}`))&&($(Z(`Saved.`)),n.value=null,await xx())}async function l(e){window.confirm(Z(`Are you sure?`))&&(await X.delete(`${Y.base}/groups/${e.id}`),$(Z(`Deleted.`)),await xx())}return(t,a)=>(B(),V(z,null,[U(`div`,h1,[U(`h1`,g1,j(P(Z)(`Groups`)),1),U(`button`,{type:`button`,class:`m-btn m-btn-primary`,onClick:a[0]||=e=>o(`new`)},j(P(Z)(`New group`)),1)]),n.value?(B(),V(`form`,{key:0,class:`m-card mb-6 max-w-3xl space-y-4 p-5`,onSubmit:Pu(c,[`prevent`])},[U(`div`,null,[U(`label`,_1,j(P(Z)(`Name`)),1),I(U(`input`,{id:`g-name`,"onUpdate:modelValue":a[1]||=e=>P(r).values.name=e,required:``,maxlength:`60`,class:`m-input`},null,512),[[J,P(r).values.name]]),P(r).errors.name?(B(),V(`p`,v1,j(P(r).errors.name),1)):K(``,!0)]),U(`div`,null,[U(`label`,y1,j(P(Z)(`Description`)),1),I(U(`textarea`,{id:`g-desc`,"onUpdate:modelValue":a[2]||=e=>P(r).values.description=e,rows:`2`,maxlength:`500`,class:`m-input`},null,512),[[J,P(r).values.description]])]),U(`div`,null,[U(`label`,b1,j(P(Z)(`Start screen`)),1),I(U(`select`,{id:`g-start`,"onUpdate:modelValue":a[3]||=e=>P(r).values.start=e,class:`m-input`},[U(`option`,x1,j(P(Z)(`The dashboard`)),1),(B(!0),V(z,null,R(P(i),e=>(B(),V(`option`,{key:e.value,value:e.value},j(e.label),9,S1))),128))],512),[[Cu,P(r).values.start]]),U(`p`,C1,j(P(Z)(`Where accounts with this as their primary group land when they open the manager.`)),1)]),U(`div`,null,[U(`label`,w1,[I(U(`input`,{"onUpdate:modelValue":a[4]||=e=>P(r).values.require_two_factor=e,type:`checkbox`},null,512),[[bu,P(r).values.require_two_factor]]),G(` `+j(P(Z)(`Requires two-step login`)),1)]),U(`p`,T1,j(P(Z)(`Everyone in this group has to set up a code from an authenticator app, within the days of grace the site allows. Super admins always have to.`)),1)]),(B(!0),V(z,null,R(e.catalogue,e=>(B(),V(`fieldset`,{key:e.section,class:`rounded-lg border border-line p-3`},[U(`legend`,E1,j(e.section),1),(B(!0),V(z,null,R(e.permissions,e=>(B(),V(`label`,{key:e.value,class:`flex items-center gap-2 py-0.5 text-sm`},[I(U(`input`,{"onUpdate:modelValue":a[5]||=e=>P(r).values.permissions=e,type:`checkbox`,value:e.value,onChange:t=>s(e)},null,40,D1),[[bu,P(r).values.permissions]]),G(` `+j(e.label),1)]))),128))]))),128)),U(`div`,O1,[U(`button`,{type:`submit`,class:`m-btn m-btn-primary`,disabled:P(r).busy},j(P(r).busy?P(Z)(`Saving…`):P(Z)(`Save`)),9,k1),U(`button`,{type:`button`,class:`m-btn m-btn-secondary`,onClick:a[6]||=e=>n.value=null},j(P(Z)(`Cancel`)),1)])],32)):K(``,!0),e.groups.length?(B(),V(`ul`,j1,[(B(!0),V(z,null,R(e.groups,e=>(B(),V(`li`,{key:e.id,class:`flex flex-wrap items-center justify-between gap-3 p-4`},[U(`div`,M1,[U(`p`,N1,[G(j(e.name)+` `,1),U(`span`,P1,`· `+j(e.accounts)+` `+j(P(Z)(`accounts`)),1)]),e.description?(B(),V(`p`,F1,j(e.description),1)):K(``,!0),e.require_two_factor?(B(),V(`p`,I1,[U(`span`,L1,j(P(Z)(`Two-step login required`)),1)])):K(``,!0)]),U(`div`,R1,[U(`button`,{type:`button`,class:`m-btn m-btn-secondary`,onClick:t=>o(e)},j(P(Z)(`Edit`)),9,z1),U(`button`,{type:`button`,class:`m-btn m-btn-danger`,onClick:t=>l(e)},j(P(Z)(`Delete`)),9,B1)])]))),128))])):(B(),V(`p`,A1,j(P(Z)(`Nothing here yet.`)),1))],64))}}),H1={class:`font-display mb-6 text-2xl font-bold`},U1={key:0,class:`m-error mb-4`},W1={class:`grid gap-6 md:grid-cols-2`},G1={class:`mb-3 font-semibold`},K1=[`onSubmit`],q1=[`onUpdate:modelValue`,`aria-label`],J1={type:`submit`,class:`m-btn m-btn-primary`},Y1={class:`divide-y divide-line`},X1={class:`min-w-0 truncate`},Z1={class:`text-xs text-muted`},Q1={class:`flex gap-1`},$1=[`onClick`],e0=[`onClick`],t0=L({__name:`LabelsIndex`,props:{categories:{},tags:{}},setup(e){let t=[{type:`category`,title:`Categories`},{type:`tag`,title:`Tags`}],n=N({category:``,tag:``}),r=N(``);async function i(e){r.value=``;try{await e(),await xx()}catch(e){if(e instanceof Qu&&e.status===422)r.value=Object.values(e.errors)[0]??e.message;else throw e}}let a=e=>i(async()=>{await X.post(`${Y.base}/labels`,{type:e,name:n.value[e]}),n.value[e]=``,$(Z(`Created.`))}),o=(e,t)=>{let n=window.prompt(Z(`New name`),t);return n&&n!==t?i(()=>X.put(`${Y.base}/labels`,{type:e,name:t,new_name:n})):void 0},s=(e,t)=>window.confirm(Z(`Are you sure?`))?i(()=>X.delete(`${Y.base}/labels`,{type:e,name:t})):void 0;return(i,c)=>(B(),V(z,null,[U(`h1`,H1,j(P(Z)(`Categories and tags`)),1),r.value?(B(),V(`p`,U1,j(r.value),1)):K(``,!0),U(`div`,W1,[(B(),V(z,null,R(t,t=>U(`section`,{key:t.type,class:`m-card p-4`},[U(`h2`,G1,j(P(Z)(t.title)),1),U(`form`,{class:`mb-3 flex gap-2`,onSubmit:Pu(e=>a(t.type),[`prevent`])},[I(U(`input`,{"onUpdate:modelValue":e=>n.value[t.type]=e,required:``,maxlength:`60`,class:`m-input`,"aria-label":P(Z)(t.title)},null,8,q1),[[J,n.value[t.type]]]),U(`button`,J1,j(P(Z)(`Add`)),1)],40,K1),U(`ul`,Y1,[(B(!0),V(z,null,R(t.type===`category`?e.categories:e.tags,e=>(B(),V(`li`,{key:e.name,class:`flex items-center justify-between gap-2 py-2 text-sm`},[U(`span`,X1,[G(j(e.name)+` `,1),U(`span`,Z1,`· `+j(e.posts),1)]),U(`span`,Q1,[U(`button`,{type:`button`,class:`m-btn m-btn-secondary`,onClick:n=>o(t.type,e.name)},j(P(Z)(`Rename`)),9,$1),U(`button`,{type:`button`,class:`m-btn m-btn-danger`,onClick:n=>s(t.type,e.name)},j(P(Z)(`Delete`)),9,e0)])]))),128))])])),64))])],64))}}),n0={class:`mb-6 flex flex-wrap items-center justify-between gap-3`},r0={class:`font-display text-2xl font-bold`},i0=[`accept`,`disabled`],a0=[`title`],o0={class:`h-2 overflow-hidden rounded-full bg-panel-2`},s0={class:`m-help`},c0={key:0,class:`w-full shrink-0 sm:w-64`},l0=[`src`,`alt`],u0={class:`m-help`},d0={class:`mt-2 flex items-center gap-2`},f0=[`src`],p0={class:`min-w-0 flex-1 space-y-3`},m0={class:`m-label`,for:`m-name`},h0=[`disabled`],g0={key:0,class:`m-error`},_0={key:0},v0={class:`m-label`,for:`m-alt`},y0=[`disabled`],b0={class:`m-help`},x0={key:0},S0={key:1},C0={class:`m-help break-all`},w0={class:`flex gap-2`},T0=[`disabled`],E0=[`disabled`],D0={key:1,class:`m-card p-5 text-sm text-muted`},O0={key:2,class:`grid grid-cols-2 gap-3 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5`},k0=[`onClick`],A0=[`src`,`alt`],j0={key:1,class:`grid aspect-square w-full place-items-center text-xs text-muted`},M0={class:`block truncate px-2 py-1.5 text-xs`},N0=L({__name:`MediaLibrary`,props:{items:{},max_file_mb:{},extensions:{},storage:{}},setup(e){let t=e=>Y.permissions.includes(e),n=N(!1),r=N(null),i=nd({name:``,alt:``,focus_x:null,focus_y:null}),a=e=>e>1e6?`${(e/1e6).toFixed(1)} MB`:`${Math.max(1,Math.round(e/1e3))} kB`;function o(e){r.value=e,i.errors={},i.values.name=e.name,i.values.alt=e.alt??``,i.values.focus_x=e.focus_x,i.values.focus_y=e.focus_y}function s(e){if(!t(`media.edit`))return;let n=e.currentTarget.getBoundingClientRect();i.values.focus_x=Math.round(Math.min(1,Math.max(0,(e.clientX-n.left)/n.width))*1e3)/1e3,i.values.focus_y=Math.round(Math.min(1,Math.max(0,(e.clientY-n.top)/n.height))*1e3)/1e3}let c=(e,t)=>`${(e??.5)*100}% ${(t??.5)*100}%`;async function l({file:e,focus:t}){let n=new FormData;n.append(`file`,e),t!==null&&(n.append(`focus_x`,String(Math.round(t.x*1e3)/1e3)),n.append(`focus_y`,String(Math.round(t.y*1e3)/1e3))),await td(`${Y.base}/media`,n)}async function u(e){let t=e.target,r=Array.from(t.files??[]);t.value=``,n.value=!0;try{await Vp(r,l),$(Z(`Uploaded.`)),await xx()}catch(e){$(e instanceof Qu?Object.values(e.errors)[0]??e.message:Z(`Something went wrong. Try again.`),!0),await xx()}finally{n.value=!1}}async function d(e){n.value=!0;try{let t=await(await fetch(e.url,{credentials:`same-origin`})).blob(),n=await Hp(new File([t],e.filename,{type:e.mime_type}));n!==null&&(await l(n),r.value=null,$(Z(`Saved as a new picture.`)),await xx())}catch(e){$(e instanceof Qu?Object.values(e.errors)[0]??e.message:Z(`Something went wrong. Try again.`),!0)}finally{n.value=!1}}async function f(){r.value&&await i.send(`put`,`${Y.base}/media/${r.value.id}`)&&($(Z(`Saved.`)),r.value=null,await xx())}async function p(e){let t=e.usage_count>0?Z(`This file is in use. Delete it anyway?`):Z(`Are you sure?`);window.confirm(t)&&(await X.delete(`${Y.base}/media/${e.id}`),r.value=null,$(Z(`Deleted.`)),await xx())}return(l,m)=>(B(),V(z,null,[U(`div`,n0,[U(`h1`,r0,j(P(Z)(`Media`)),1),t(`media.upload`)?(B(),V(`label`,{key:0,class:A([`m-btn m-btn-primary cursor-pointer`,n.value?`opacity-50`:``])},[G(j(n.value?P(Z)(`Uploading…`):P(Z)(`Upload`))+` `,1),U(`input`,{type:`file`,multiple:``,class:`sr-only`,accept:e.extensions.map(e=>`.`+e).join(`,`),disabled:n.value,onChange:u},null,40,i0)],2)):K(``,!0)]),U(`div`,{class:`mb-6 max-w-md`,title:`${a(e.storage.used)} / ${a(e.storage.limit)}`},[U(`div`,o0,[U(`div`,{class:`h-full bg-brand`,style:k({width:Math.min(100,e.storage.used/Math.max(1,e.storage.limit)*100)+`%`})},null,4)]),U(`p`,s0,j(a(e.storage.used))+` / `+j(a(e.storage.limit))+` · `+j(P(Z)(`Largest file`))+`: `+j(e.max_file_mb)+` MB`,1)],8,a0),r.value?(B(),V(`form`,{key:0,class:`m-card mb-6 flex max-w-3xl flex-wrap gap-5 p-5`,onSubmit:Pu(f,[`prevent`])},[r.value.is_image?(B(),V(`div`,c0,[U(`div`,{class:A([`relative`,t(`media.edit`)?`cursor-crosshair`:``]),onClick:s},[U(`img`,{src:r.value.url,alt:r.value.alt??``,class:`w-full rounded-lg`,draggable:`false`},null,8,l0),P(i).values.focus_x===null?K(``,!0):(B(),V(`span`,{key:0,class:`pointer-events-none absolute h-5 w-5 -translate-x-1/2 -translate-y-1/2 rounded-full border-2 border-white bg-brand/60 shadow`,style:k({left:(P(i).values.focus_x??0)*100+`%`,top:(P(i).values.focus_y??0)*100+`%`})},null,4))],2),U(`p`,u0,j(t(`media.edit`)?P(Z)(`Click the part of the picture that must stay in view.`):P(Z)(`Focus point`)),1),U(`div`,d0,[U(`img`,{src:r.value.url,alt:``,class:`h-16 w-16 rounded-lg object-cover`,style:k({objectPosition:c(P(i).values.focus_x,P(i).values.focus_y)})},null,12,f0),t(`media.edit`)&&P(i).values.focus_x!==null?(B(),V(`button`,{key:0,type:`button`,class:`m-btn m-btn-secondary`,onClick:m[0]||=e=>P(i).values.focus_x=P(i).values.focus_y=null},j(P(Z)(`Clear`)),1)):K(``,!0)])])):K(``,!0),U(`div`,p0,[U(`div`,null,[U(`label`,m0,j(P(Z)(`Name`)),1),I(U(`input`,{id:`m-name`,"onUpdate:modelValue":m[1]||=e=>P(i).values.name=e,required:``,maxlength:`250`,class:`m-input`,disabled:!t(`media.edit`)},null,8,h0),[[J,P(i).values.name]]),P(i).errors.name?(B(),V(`p`,g0,j(P(i).errors.name),1)):K(``,!0)]),r.value.is_image?(B(),V(`div`,_0,[U(`label`,v0,j(P(Z)(`Alternative text`)),1),I(U(`input`,{id:`m-alt`,"onUpdate:modelValue":m[2]||=e=>P(i).values.alt=e,maxlength:`500`,class:`m-input`,disabled:!t(`media.edit`)},null,8,y0),[[J,P(i).values.alt]])])):K(``,!0),U(`p`,b0,[G(j(r.value.mime_type)+` · `+j(a(r.value.size)),1),r.value.width?(B(),V(`span`,x0,` · `+j(r.value.width)+`×`+j(r.value.height),1)):K(``,!0),G(` · `+j(P(Z)(`Used`))+`: `+j(r.value.usage_count),1),r.value.uploaded_by?(B(),V(`span`,S0,` · `+j(r.value.uploaded_by),1)):K(``,!0)]),U(`p`,C0,j(r.value.url),1),U(`div`,w0,[t(`media.edit`)?(B(),V(`button`,{key:0,type:`submit`,class:`m-btn m-btn-primary`,disabled:P(i).busy},j(P(Z)(`Save`)),9,T0)):K(``,!0),r.value.is_image&&t(`media.upload`)?(B(),V(`button`,{key:1,type:`button`,class:`m-btn m-btn-secondary`,disabled:n.value,onClick:m[3]||=e=>d(r.value)},j(P(Z)(`Edit picture`)),9,E0)):K(``,!0),t(`media.delete`)?(B(),V(`button`,{key:2,type:`button`,class:`m-btn m-btn-danger`,onClick:m[4]||=e=>p(r.value)},j(P(Z)(`Delete`)),1)):K(``,!0),U(`button`,{type:`button`,class:`m-btn m-btn-secondary`,onClick:m[5]||=e=>r.value=null},j(P(Z)(`Cancel`)),1)])])],32)):K(``,!0),e.items.length?(B(),V(`div`,O0,[(B(!0),V(z,null,R(e.items,e=>(B(),V(`button`,{key:e.id,type:`button`,class:A([`m-card overflow-hidden text-left transition hover:border-brand`,r.value?.id===e.id?`border-brand`:``]),onClick:t=>o(e)},[e.is_image?(B(),V(`img`,{key:0,src:e.url,alt:e.alt??``,loading:`lazy`,class:`aspect-square w-full object-cover`},null,8,A0)):(B(),V(`span`,j0,j(e.mime_type),1)),U(`span`,M0,j(e.name),1)],10,k0))),128))])):(B(),V(`p`,D0,j(P(Z)(`No files yet.`)),1))],64))}}),P0={class:`font-display mb-6 text-2xl font-bold`},F0={class:`mb-6 grid grid-cols-2 gap-3 md:grid-cols-4`},I0={class:`text-2xl font-bold`},L0={class:`m-help`},R0={class:`mb-4 flex flex-wrap gap-2`},z0=[`onClick`],B0=[`placeholder`,`aria-label`],V0=[`aria-label`],H0={value:``},U0=[`value`],W0={type:`submit`,class:`m-btn m-btn-secondary`},G0={key:0,class:`m-card p-5 text-sm text-muted`},K0={key:1,class:`m-card divide-y divide-line`},q0={class:`min-w-0`},J0={class:`font-semibold`},Y0={key:1},X0={class:`text-xs text-muted`},Z0={class:`flex gap-2`},Q0={key:0,class:`m-badge`},$0=[`onClick`],ev={key:2,class:`mt-4 flex items-center gap-2`},tv={class:`text-sm text-muted`},nv={class:`font-display mb-3 mt-10 text-xl font-bold`},rv={class:`m-label`,for:`b-min`},iv={class:`min-w-[10rem] flex-1`},av={class:`m-label`,for:`b-why`},ov={key:0,class:`flex items-center gap-2 text-sm`},sv={type:`submit`,class:`m-btn m-btn-danger`},cv={key:1,class:`m-error w-full`},lv={key:4,class:`text-sm text-muted`},uv={key:5,class:`m-card divide-y divide-line`},dv={class:`font-semibold`},fv={key:0,class:`m-badge`},pv={key:1,class:`m-badge`},mv={class:`text-xs text-muted`},hv=[`onClick`],gv={class:`font-display mb-3 mt-10 text-xl font-bold`},_v={class:`flex items-center gap-2 text-sm sm:col-span-2`},vv={class:`m-label`,for:`r-max`},yv={class:`m-label`,for:`r-win`},bv={class:`m-label`,for:`r-ban`},xv={class:`m-label`,for:`r-keep`},Sv=[`max`],Cv={class:`m-help`},wv={class:`sm:col-span-2`},Tv=[`disabled`],Ev={class:`font-display mb-3 mt-10 text-xl font-bold`},Dv={class:`m-label`,for:`n-group`},Ov={class:`min-w-[10rem] flex-1`},kv={class:`m-label`,for:`n-note`},Av={type:`submit`,class:`m-btn m-btn-secondary`},jv={key:0,class:`m-error w-full`},Mv={key:0,class:`m-card divide-y divide-line text-sm`},Nv={key:0,class:`m-badge`},Pv=L({__name:`AuditLog`,props:{entries:{},pagination:{},filters:{},accounts:{},summary:{},bans:{},notes:{},settings:{},max_keep_days:{},can_manage:{type:Boolean},my_ip:{},never_banned:{},whole_site_bans:{type:Boolean}},setup(e){let t=e,n=[`all`,`logins`,`failed`,`actions`,`viewed`,`refused`,`bans`],r=dn({q:t.filters.q,ip:t.filters.ip,user:t.filters.user??``}),i=e=>new Date(e).toLocaleString();function a(e){let n=new URLSearchParams,i={show:t.filters.show,q:r.q,ip:r.ip,user:r.user,...e};for(let[e,t]of Object.entries(i))t!==``&&t!==`all`&&t!==1&&n.set(e,String(t));bx(`${Y.base}/audit${n.size?`?`+n:``}`)}let o=nd({ip:``,minutes:1440,reason:``,whole_site:!1});async function s(e){e&&(o.values.ip=e);let t=await o.send(`post`,`${Y.base}/audit/bans`);t&&($(t.message),o.values.ip=o.values.reason=``,await xx())}async function c(e){$((await X.delete(`${Y.base}/audit/bans/${e.id}`)).message),await xx()}let l=nd({...t.settings});async function u(){await l.send(`put`,`${Y.base}/audit/settings`)&&($(Z(`Saved.`)),await xx())}let d=nd({ip:``,group:``,note:``});async function f(){await d.send(`put`,`${Y.base}/audit/notes`)&&($(Z(`Saved.`)),d.values.ip=d.values.group=d.values.note=``,await xx())}let p=e=>e.expires_at?i(e.expires_at):Z(`until lifted`);return(t,m)=>(B(),V(z,null,[U(`h1`,P0,j(P(Z)(`Audit log`)),1),U(`div`,F0,[(B(!0),V(z,null,R(e.summary,(e,t)=>(B(),V(`div`,{key:t,class:`m-card p-4`},[U(`p`,I0,j(e),1),U(`p`,L0,j(P(Z)(t===`banned`?`Addresses banned`:t===`logins`?`Logins (24 h)`:t===`failed`?`Failed logins (24 h)`:`Refused (24 h)`)),1)]))),128))]),U(`nav`,R0,[(B(),V(z,null,R(n,t=>U(`button`,{key:t,type:`button`,class:A([`m-btn`,e.filters.show===t?`m-btn-primary`:`m-btn-secondary`]),onClick:e=>a({show:t,page:1})},j(P(Z)(t)),11,z0)),64))]),U(`form`,{class:`mb-4 flex flex-wrap gap-2`,onSubmit:m[3]||=Pu(e=>a({page:1}),[`prevent`])},[I(U(`input`,{"onUpdate:modelValue":m[0]||=e=>r.q=e,class:`m-input max-w-xs`,placeholder:P(Z)(`Search`),"aria-label":P(Z)(`Search`)},null,8,B0),[[J,r.q]]),I(U(`input`,{"onUpdate:modelValue":m[1]||=e=>r.ip=e,class:`m-input max-w-[12rem]`,placeholder:`IP`,"aria-label":`IP`},null,512),[[J,r.ip]]),I(U(`select`,{"onUpdate:modelValue":m[2]||=e=>r.user=e,class:`m-input max-w-[12rem]`,"aria-label":P(Z)(`Account`)},[U(`option`,H0,j(P(Z)(`Everyone`)),1),(B(!0),V(z,null,R(e.accounts,e=>(B(),V(`option`,{key:e.id,value:e.id},j(e.name),9,U0))),128))],8,V0),[[Cu,r.user]]),U(`button`,W0,j(P(Z)(`Filter`)),1)],32),e.entries.length?(B(),V(`ul`,K0,[(B(!0),V(z,null,R(e.entries,t=>(B(),V(`li`,{key:t.id,class:`flex flex-wrap items-start justify-between gap-3 p-4 text-sm`},[U(`div`,q0,[U(`p`,J0,[G(j(t.summary)+` `,1),t.subject?(B(),V(z,{key:0},[m[19]||=G(` · `,-1),t.subject.url?(B(),H(ld,{key:0,href:t.subject.url,class:`underline`},{default:F(()=>[G(j(t.subject.label),1)]),_:2},1032,[`href`])):(B(),V(`span`,Y0,j(t.subject.label),1))],64)):K(``,!0)]),U(`p`,X0,j(i(t.at))+` · `+j(t.who??t.email??P(Z)(`Someone`))+` · `+j(t.ip)+` · `+j(t.browser),1)]),U(`span`,Z0,[t.banned?(B(),V(`span`,Q0,j(P(Z)(`banned`)),1)):K(``,!0),e.can_manage&&t.ip&&!t.banned&&!t.never_banned&&t.ip!==e.my_ip?(B(),V(`button`,{key:1,type:`button`,class:`m-btn m-btn-danger`,onClick:e=>s(t.ip)},j(P(Z)(`Ban`)),9,$0)):K(``,!0)])]))),128))])):(B(),V(`p`,G0,j(P(Z)(`Nothing here yet.`)),1)),e.pagination.pages>1?(B(),V(`nav`,ev,[e.pagination.page>1?(B(),V(`button`,{key:0,type:`button`,class:`m-btn m-btn-secondary`,onClick:m[4]||=t=>a({page:e.pagination.page-1})},j(P(Z)(`Previous`)),1)):K(``,!0),U(`span`,tv,j(e.pagination.page)+` / `+j(e.pagination.pages),1),e.pagination.page<e.pagination.pages?(B(),V(`button`,{key:1,type:`button`,class:`m-btn m-btn-secondary`,onClick:m[5]||=t=>a({page:e.pagination.page+1})},j(P(Z)(`Next`)),1)):K(``,!0)])):K(``,!0),U(`h2`,nv,j(P(Z)(`Bans`)),1),e.can_manage?(B(),V(`form`,{key:3,class:`m-card mb-4 flex max-w-3xl flex-wrap items-end gap-3 p-4`,onSubmit:m[10]||=Pu(e=>s(),[`prevent`])},[U(`div`,null,[m[20]||=U(`label`,{class:`m-label`,for:`b-ip`},`IP`,-1),I(U(`input`,{id:`b-ip`,"onUpdate:modelValue":m[6]||=e=>P(o).values.ip=e,required:``,class:`m-input`},null,512),[[J,P(o).values.ip]])]),U(`div`,null,[U(`label`,rv,j(P(Z)(`Minutes (0 = until lifted)`)),1),I(U(`input`,{id:`b-min`,"onUpdate:modelValue":m[7]||=e=>P(o).values.minutes=e,type:`number`,min:`0`,class:`m-input w-32`},null,512),[[J,P(o).values.minutes,void 0,{number:!0}]])]),U(`div`,iv,[U(`label`,av,j(P(Z)(`Reason`)),1),I(U(`input`,{id:`b-why`,"onUpdate:modelValue":m[8]||=e=>P(o).values.reason=e,maxlength:`200`,class:`m-input`},null,512),[[J,P(o).values.reason]])]),e.whole_site_bans?(B(),V(`label`,ov,[I(U(`input`,{"onUpdate:modelValue":m[9]||=e=>P(o).values.whole_site=e,type:`checkbox`},null,512),[[bu,P(o).values.whole_site]]),G(` `+j(P(Z)(`Whole site`)),1)])):K(``,!0),U(`button`,sv,j(P(Z)(`Ban`)),1),P(o).errors.ip?(B(),V(`p`,cv,j(P(o).errors.ip),1)):K(``,!0)],32)):K(``,!0),e.bans.length?(B(),V(`ul`,uv,[(B(!0),V(z,null,R(e.bans,t=>(B(),V(`li`,{key:t.id,class:A([`flex flex-wrap items-center justify-between gap-3 p-4 text-sm`,t.active?``:`opacity-50`])},[U(`div`,null,[U(`p`,dv,[G(j(t.ip)+` `,1),t.automatic?(B(),V(`span`,fv,j(P(Z)(`automatic`)),1)):K(``,!0),m[21]||=G(),t.whole_site?(B(),V(`span`,pv,j(P(Z)(`whole site`)),1)):K(``,!0)]),U(`p`,mv,j(t.reason)+` · `+j(p(t))+` · `+j(t.hits)+` `+j(P(Z)(`hits`)),1)]),e.can_manage&&t.active?(B(),V(`button`,{key:0,type:`button`,class:`m-btn m-btn-secondary`,onClick:e=>c(t)},j(P(Z)(`Lift`)),9,hv)):K(``,!0)],2))),128))])):(B(),V(`p`,lv,j(P(Z)(`No bans.`)),1)),e.can_manage?(B(),V(z,{key:6},[U(`h2`,gv,j(P(Z)(`Rules`)),1),U(`form`,{class:`m-card grid max-w-3xl gap-4 p-5 sm:grid-cols-2`,onSubmit:Pu(u,[`prevent`])},[U(`label`,_v,[I(U(`input`,{"onUpdate:modelValue":m[11]||=e=>P(l).values.auto_ban=e,type:`checkbox`},null,512),[[bu,P(l).values.auto_ban]]),G(` `+j(P(Z)(`Ban an address by itself after too many failed logins`)),1)]),U(`div`,null,[U(`label`,vv,j(P(Z)(`Failed logins`)),1),I(U(`input`,{id:`r-max`,"onUpdate:modelValue":m[12]||=e=>P(l).values.max_failures=e,type:`number`,min:`3`,max:`100`,class:`m-input`},null,512),[[J,P(l).values.max_failures,void 0,{number:!0}]])]),U(`div`,null,[U(`label`,yv,j(P(Z)(`Within minutes`)),1),I(U(`input`,{id:`r-win`,"onUpdate:modelValue":m[13]||=e=>P(l).values.window_minutes=e,type:`number`,min:`1`,max:`1440`,class:`m-input`},null,512),[[J,P(l).values.window_minutes,void 0,{number:!0}]])]),U(`div`,null,[U(`label`,bv,j(P(Z)(`Ban for minutes (0 = until lifted)`)),1),I(U(`input`,{id:`r-ban`,"onUpdate:modelValue":m[14]||=e=>P(l).values.ban_minutes=e,type:`number`,min:`0`,class:`m-input`},null,512),[[J,P(l).values.ban_minutes,void 0,{number:!0}]])]),U(`div`,null,[U(`label`,xv,j(P(Z)(`Keep the log (days)`)),1),I(U(`input`,{id:`r-keep`,"onUpdate:modelValue":m[15]||=e=>P(l).values.keep_days=e,type:`number`,min:`7`,max:e.max_keep_days,class:`m-input`},null,8,Sv),[[J,P(l).values.keep_days,void 0,{number:!0}]]),U(`p`,Cv,`≤ `+j(e.max_keep_days),1)]),U(`div`,wv,[U(`button`,{type:`submit`,class:`m-btn m-btn-primary`,disabled:P(l).busy},j(P(Z)(`Save`)),9,Tv)]),(B(!0),V(z,null,R(P(l).errors,(e,t)=>(B(),V(`p`,{key:t,class:`m-error sm:col-span-2`},j(e),1))),128))],32),U(`h2`,Ev,j(P(Z)(`Notes about addresses`)),1),U(`form`,{class:`m-card mb-4 flex max-w-3xl flex-wrap items-end gap-3 p-4`,onSubmit:Pu(f,[`prevent`])},[U(`div`,null,[m[22]||=U(`label`,{class:`m-label`,for:`n-ip`},`IP`,-1),I(U(`input`,{id:`n-ip`,"onUpdate:modelValue":m[16]||=e=>P(d).values.ip=e,required:``,class:`m-input`},null,512),[[J,P(d).values.ip]])]),U(`div`,null,[U(`label`,Dv,j(P(Z)(`Group`)),1),I(U(`input`,{id:`n-group`,"onUpdate:modelValue":m[17]||=e=>P(d).values.group=e,maxlength:`60`,class:`m-input`},null,512),[[J,P(d).values.group]])]),U(`div`,Ov,[U(`label`,kv,j(P(Z)(`Note`)),1),I(U(`input`,{id:`n-note`,"onUpdate:modelValue":m[18]||=e=>P(d).values.note=e,maxlength:`2000`,class:`m-input`},null,512),[[J,P(d).values.note]])]),U(`button`,Av,j(P(Z)(`Save`)),1),P(d).errors.ip?(B(),V(`p`,jv,j(P(d).errors.ip),1)):K(``,!0)],32),e.notes.length?(B(),V(`ul`,Mv,[(B(!0),V(z,null,R(e.notes,e=>(B(),V(`li`,{key:e.ip,class:`p-3`},[U(`b`,null,j(e.ip),1),m[23]||=G(),e.group?(B(),V(`span`,Nv,j(e.group),1)):K(``,!0),G(` `+j(e.note),1)]))),128))])):K(``,!0)],64)):K(``,!0)],64))}}),Fv={class:`mb-6 flex flex-wrap items-center justify-between gap-3`},Iv={class:`font-display text-2xl font-bold`},Lv={key:0,class:`m-card mb-4 p-4 text-sm`},Rv={key:1,class:`m-card mb-4 p-4 text-sm`},zv={class:`mb-4 max-w-3xl text-sm text-muted`},Bv={class:`px-1 text-sm font-semibold`},Vv={key:0,class:`flex items-center justify-between gap-3 text-sm`},Hv=[`checked`,`disabled`,`onChange`],Uv=[`for`],Wv=[`id`,`value`,`onChange`],Gv=[`value`],Kv=[`id`,`type`,`value`,`placeholder`,`autocomplete`,`disabled`,`onInput`],qv={key:2,class:`m-help`},Jv={key:3,class:`m-error`},Yv=[`onClick`],Xv={key:0,class:`flex flex-wrap items-center gap-3`},Zv=[`disabled`,`onClick`],Qv={key:0,class:`m-help`},$v={key:0,class:`m-card p-5`},ey={class:`m-label`,for:`s-password`},ty={class:`m-help`},ny={key:0,class:`m-error`},ry=[`disabled`],iy=L({__name:`Settings`,props:{groups:{},write_env:{type:Boolean},env_writable:{type:Boolean},config_cached:{type:Boolean}},setup(e){let t=e,n=dn({}),r=N([]),i=N(``),a=N({}),o=N(!1),s=N(null),c=q(()=>t.groups.flatMap(e=>e.items)),l=e=>e.key in n?n[e.key]:e.value,u=q(()=>Object.keys(n).length>0||r.value.length>0),d=q(()=>c.value.some(e=>e.sensitive&&(e.key in n||r.value.includes(e.key))));function f(e,t){e.type===`secret`&&(t===``||t===null)||t===e.value&&e.type!==`secret`?delete n[e.key]:n[e.key]=t}function p(e){delete n[e.key],r.value=r.value.includes(e.key)?r.value.filter(t=>t!==e.key):[...r.value,e.key]}async function m(){o.value=!0,a.value={};try{let e=await X.put(`${Y.base}/settings`,{values:{...n},reset:r.value,password:i.value});s.value={migrate:e.migrate??[],file:e.file_written,env:e.env_written},$(Z(`Saved.`)),Object.keys(n).forEach(e=>delete n[e]),r.value=[],i.value=``,await xx()}catch(e){if(e instanceof Qu&&e.status===422)a.value=e.errors;else throw e}finally{o.value=!1}}let h=N({});async function g(e){h.value[e]=`busy`;try{h.value[e]=await X.post(`${Y.base}/settings/check`,{group:e})}catch{h.value[e]={ok:!1,message:Z(`The check could not be run.`)}}}async function _(){await X.post(`${Y.base}/settings/refresh`),$(Z(`Refreshed.`))}return(t,c)=>(B(),V(z,null,[U(`div`,Fv,[U(`h1`,Iv,j(P(Z)(`Settings`)),1),U(`button`,{type:`button`,class:`m-btn m-btn-secondary`,onClick:_},j(P(Z)(`Refresh now`)),1)]),s.value?.migrate.length?(B(),V(`p`,Lv,[G(j(P(Z)(`These parts need new tables:`))+` `,1),U(`strong`,null,j(s.value.migrate.join(`, `)),1),G(`. `+j(P(Z)(`Run php artisan migrate on the server.`)),1)])):K(``,!0),s.value&&!s.value.file?(B(),V(`p`,Rv,j(P(Z)(`The changes are saved, but the file that makes them work at once could not be written (bootstrap/cache). They work after Refresh now, or when that folder may be written.`)),1)):K(``,!0),U(`p`,zv,[G(j(P(Z)(`A change works at once and is kept in the database.`))+` `,1),e.write_env?(B(),V(z,{key:0},[G(j(e.env_writable?P(Z)(`It is also written into the .env file.`):P(Z)(`The .env file may not be written here, so only the database is used.`)),1)],64)):K(``,!0)]),U(`form`,{class:`max-w-3xl space-y-6`,onSubmit:Pu(m,[`prevent`])},[(B(!0),V(z,null,R(e.groups,e=>(B(),V(`fieldset`,{key:e.name,class:`m-card space-y-4 p-5`},[U(`legend`,Bv,j(e.name),1),(B(!0),V(z,null,R(e.items,e=>(B(),V(`div`,{key:e.key},[e.type===`toggle`?(B(),V(`label`,Vv,[U(`span`,null,j(e.label),1),U(`input`,{type:`checkbox`,checked:!!l(e),disabled:r.value.includes(e.key),onChange:t=>f(e,t.target.checked)},null,40,Hv)])):(B(),V(z,{key:1},[U(`label`,{class:`m-label`,for:`s-`+e.key},j(e.label),9,Uv),e.type===`select`?(B(),V(`select`,{key:0,id:`s-`+e.key,class:`m-input`,value:l(e),onChange:t=>f(e,t.target.value)},[(B(!0),V(z,null,R(e.options,(e,t)=>(B(),V(`option`,{key:t,value:t},j(e),9,Gv))),128))],40,Wv)):(B(),V(`input`,{key:1,id:`s-`+e.key,class:`m-input`,type:e.type===`secret`?`password`:e.type===`number`?`number`:`text`,value:e.type===`secret`?n[e.key]??``:l(e)??``,placeholder:e.type===`secret`&&e.set?P(Z)(`Set. Type to replace it.`):``,autocomplete:e.type===`secret`?`new-password`:`off`,disabled:r.value.includes(e.key),onInput:t=>f(e,t.target.value)},null,40,Kv))],64)),e.help?(B(),V(`p`,qv,j(e.help),1)):K(``,!0),a.value[`values.`+e.key]?(B(),V(`p`,Jv,j(a.value[`values.`+e.key]),1)):K(``,!0),e.saved||r.value.includes(e.key)?(B(),V(`button`,{key:4,type:`button`,class:`mt-1 text-xs text-muted underline hover:text-text`,onClick:t=>p(e)},j(r.value.includes(e.key)?P(Z)(`Keep what is saved`):P(Z)(`Back to what the config says`)),9,Yv)):K(``,!0)]))),128)),e.check?(B(),V(`div`,Xv,[U(`button`,{type:`button`,class:`m-btn m-btn-secondary`,disabled:u.value||h.value[e.name]===`busy`,onClick:t=>g(e.name)},j(h.value[e.name]===`busy`?P(Z)(`Trying…`):P(Z)(`Try it`)),9,Zv),u.value?(B(),V(`span`,Qv,j(P(Z)(`Save first: it tries what is saved.`)),1)):h.value[e.name]&&h.value[e.name]!==`busy`?(B(),V(`span`,{key:1,class:A(h.value[e.name].ok?`text-sm`:`m-error`),role:`status`},j(h.value[e.name].ok?`✓`:`✗`)+` `+j(h.value[e.name].message),3)):K(``,!0)])):K(``,!0)]))),128)),d.value?(B(),V(`div`,$v,[U(`label`,ey,j(P(Z)(`Your password`)),1),I(U(`input`,{id:`s-password`,"onUpdate:modelValue":c[0]||=e=>i.value=e,type:`password`,class:`m-input`,autocomplete:`current-password`,required:``},null,512),[[J,i.value]]),U(`p`,ty,j(P(Z)(`Keys, passwords and addresses of integrations are only changed after you type your own password.`)),1),a.value.password?(B(),V(`p`,ny,j(a.value.password),1)):K(``,!0)])):K(``,!0),U(`button`,{type:`submit`,class:`m-btn m-btn-primary`,disabled:o.value||!u.value},j(o.value?P(Z)(`Saving…`):P(Z)(`Save`)),9,ry)],32)],64))}}),ay={class:`mb-6 flex flex-wrap items-center justify-between gap-3`},oy={class:`font-display text-2xl font-bold`},sy={class:`text-sm text-muted`},cy={key:0},ly={class:`mb-6 flex flex-wrap gap-2`},uy={class:`mb-6 grid grid-cols-2 gap-3 md:grid-cols-5`},dy={class:`text-2xl font-bold`},fy={class:`m-help`},py={class:`m-card mb-6 p-4`},my={class:`mb-3 font-semibold`},hy=[`aria-label`],gy=[`title`],_y={class:`mb-6 grid gap-6 md:grid-cols-2`},vy={class:`m-card p-4`},yy={class:`mb-3 font-semibold`},by={key:0,class:`text-sm text-muted`},xy={class:`divide-y divide-line text-sm`},Sy={class:`truncate`},Cy={class:`text-muted`},wy={class:`m-card p-4`},Ty={class:`mb-3 font-semibold`},Ey={key:0,class:`text-sm text-muted`},Dy={class:`divide-y divide-line text-sm`},Oy={class:`truncate`},ky={class:`text-muted`},Ay={class:`mb-3 font-semibold`},jy={key:0,class:`text-sm text-muted`},My={class:`divide-y divide-line text-sm`},Ny={class:`truncate`},Py={class:`text-muted`},Fy={class:`m-card mb-6 overflow-x-auto p-4`},Iy={class:`mb-3 font-semibold`},Ly={class:`space-y-0.5 text-xs`},Ry={class:`w-9 shrink-0 text-muted`},zy=[`title`],By={class:`m-card mb-6 p-4`},Vy={class:`mb-3 font-semibold`},Hy={class:`text-sm font-normal text-muted`},Uy={key:0,class:`text-sm text-muted`},Wy={class:`divide-y divide-line text-sm`},Gy={class:`text-xs text-muted`},Ky={class:`text-muted`},qy={class:`flex flex-wrap items-center gap-2 text-sm`},Jy={class:`text-muted`},Yy=[`href`],Xy=L({__name:`StatisticsReport`,props:{range:{},ranges:{},exports:{},totals:{},previous:{},series:{},pages:{},posts:{},channels:{},sources:{},countries:{},devices:{},browsers:{},systems:{},heatmap:{},bots:{}},setup(e){let t=e,n=q(()=>[[`Visitors`,`visitors`],[`Visits`,`visits`],[`Page views`,`page_views`],[`Average time`,`average_seconds`],[`Bounce rate`,`bounce_rate`]]),r=(e,t)=>e===`average_seconds`?`${Math.floor(t/60)}:${String(t%60).padStart(2,`0`)}`:e===`bounce_rate`?`${t}%`:t.toLocaleString(),i=e=>{let n=t.previous?.[e];return n?Math.round((t.totals[e]-n)/n*100):null},a=q(()=>Math.max(1,...t.series.map(e=>e.visits))),o=q(()=>Math.max(1,...t.heatmap.flatMap(e=>e.hours))),s=q(()=>[[`Channels`,t.channels],[`Sources`,t.sources],[`Countries`,t.countries],[`Devices`,t.devices],[`Browsers`,t.browsers],[`Systems`,t.systems]]),c=e=>`${Y.base}/statistics?range=${e}`,l=e=>`${Y.base}/statistics/export?sheet=${e}&range=${new URLSearchParams(Q.path.split(`?`)[1]??``).get(`range`)??t.range.key}`;return(t,u)=>(B(),V(z,null,[U(`div`,ay,[U(`h1`,oy,j(P(Z)(`Statistics`)),1),U(`p`,sy,[G(j(e.range.from)+` → `+j(e.range.to),1),e.range.compared_to?(B(),V(`span`,cy,` · `+j(P(Z)(`compared with`))+` `+j(e.range.compared_to),1)):K(``,!0)])]),U(`nav`,ly,[(B(!0),V(z,null,R(e.ranges,t=>(B(),H(ld,{key:t.key,href:c(t.key),class:A([`m-btn`,e.range.key===t.key?`m-btn-primary`:`m-btn-secondary`])},{default:F(()=>[G(j(t.label),1)]),_:2},1032,[`href`,`class`]))),128))]),U(`div`,uy,[(B(!0),V(z,null,R(n.value,([t,n])=>(B(),V(`div`,{key:n,class:`m-card p-4`},[U(`p`,dy,j(r(n,e.totals[n])),1),U(`p`,fy,[G(j(P(Z)(t)),1),i(n)===null?K(``,!0):(B(),V(`span`,{key:0,class:A((i(n)??0)>=0?`text-emerald-500`:`text-red-500`)},j((i(n)??0)>0?`+`:``)+j(i(n))+`%`,3))])]))),128))]),U(`section`,py,[U(`h2`,my,j(P(Z)(`Visits`)),1),U(`div`,{class:`flex h-40 items-end gap-px`,role:`img`,"aria-label":P(Z)(`Visits`)},[(B(!0),V(z,null,R(e.series,e=>(B(),V(`div`,{key:e.key,class:`min-w-px flex-1 rounded-t bg-brand`,style:k({height:Math.max(2,e.visits/a.value*100)+`%`}),title:`${e.label}: ${e.visits}`},null,12,gy))),128))],8,hy)]),U(`div`,_y,[U(`section`,vy,[U(`h2`,yy,j(P(Z)(`Pages`)),1),e.pages.length?K(``,!0):(B(),V(`p`,by,j(P(Z)(`Nothing here yet.`)),1)),U(`ul`,xy,[(B(!0),V(z,null,R(e.pages,e=>(B(),V(`li`,{key:e.path,class:`flex justify-between gap-3 py-1.5`},[U(`span`,Sy,j(e.title??e.path),1),U(`span`,Cy,j(e.views),1)]))),128))])]),U(`section`,wy,[U(`h2`,Ty,j(P(Z)(`Posts`)),1),e.posts.length?K(``,!0):(B(),V(`p`,Ey,j(P(Z)(`Nothing here yet.`)),1)),U(`ul`,Dy,[(B(!0),V(z,null,R(e.posts,e=>(B(),V(`li`,{key:e.slug,class:`flex justify-between gap-3 py-1.5`},[U(`span`,Oy,j(e.title),1),U(`span`,ky,j(e.views),1)]))),128))])]),(B(!0),V(z,null,R(s.value,([e,t])=>(B(),V(`section`,{key:e,class:`m-card p-4`},[U(`h2`,Ay,j(P(Z)(e)),1),t.length?K(``,!0):(B(),V(`p`,jy,j(P(Z)(`Nothing here yet.`)),1)),U(`ul`,My,[(B(!0),V(z,null,R(t,e=>(B(),V(`li`,{key:e.name+(e.channel??``),class:`flex justify-between gap-3 py-1.5`},[U(`span`,Ny,j(e.name||P(Z)(`Direct`)),1),U(`span`,Py,j(e.visits),1)]))),128))])]))),128))]),U(`section`,Fy,[U(`h2`,Iy,j(P(Z)(`When people visit`)),1),U(`div`,Ly,[(B(!0),V(z,null,R(e.heatmap,e=>(B(),V(`div`,{key:e.day,class:`flex items-center gap-0.5`},[U(`span`,Ry,j(e.day),1),(B(!0),V(z,null,R(e.hours,(t,n)=>(B(),V(`span`,{key:n,class:`block h-5 min-w-3 flex-1 rounded-sm border border-line`,title:`${e.day} ${n}:00 · ${t}`,style:k({background:`color-mix(in srgb, var(--m-brand) ${Math.round(t/o.value*100)}%, var(--m-panel-2))`})},null,12,zy))),128))]))),128))])]),U(`section`,By,[U(`h2`,Vy,[G(j(P(Z)(`Programs`))+` `,1),U(`span`,Hy,`· `+j(e.bots.total),1)]),e.bots.names.length?K(``,!0):(B(),V(`p`,Uy,j(P(Z)(`Nothing here yet.`)),1)),U(`ul`,Wy,[(B(!0),V(z,null,R(e.bots.names,e=>(B(),V(`li`,{key:e.name,class:`flex justify-between gap-3 py-1.5`},[U(`span`,null,[G(j(e.name)+` `,1),U(`span`,Gy,j(e.kind),1)]),U(`span`,Ky,j(e.hits),1)]))),128))])]),U(`p`,qy,[U(`span`,Jy,j(P(Z)(`Download`))+`:`,1),(B(!0),V(z,null,R(e.exports,(e,t)=>(B(),V(`a`,{key:t,href:l(String(t)),class:`m-btn m-btn-secondary`},j(e)+` (CSV)`,9,Yy))),128))])],64))}}),Zy={class:`font-display mb-6 text-2xl font-bold`},Qy={key:0,class:`m-card p-5 text-sm text-muted`},$y={key:1,class:`m-card divide-y divide-line`},e2={class:`min-w-0`},t2={class:`truncate font-semibold`},n2={class:`truncate text-xs text-muted`},r2={class:`m-badge`},i2={key:2,class:`mt-4 flex gap-2`},a2=L({__name:`ListPage`,props:{data:{},current_page:{},last_page:{},path:{}},setup(e){let t=e,n=q(()=>Q.path.includes(`/reviews`)?`reviews`:`pages`),r=q(()=>n.value===`reviews`?`Reviews`:`Pages`),i=e=>n.value===`reviews`?e.author:e.title,a=e=>n.value===`reviews`?e.rating?`★`.repeat(e.rating):``:e.slug,o=e=>n.value===`reviews`?e.is_visible:e.is_published,s=e=>`${Q.path.split(`?`)[0]}?page=${e}`;return(e,n)=>(B(),V(z,null,[U(`h1`,Zy,j(P(Z)(r.value)),1),t.data.length?(B(),V(`ul`,$y,[(B(!0),V(z,null,R(t.data,e=>(B(),V(`li`,{key:e.id,class:`flex items-center justify-between gap-3 p-4`},[U(`div`,e2,[U(`p`,t2,j(i(e)),1),U(`p`,n2,j(a(e)),1)]),U(`span`,r2,j(o(e)?P(Z)(`Published`):P(Z)(`Draft`)),1)]))),128))])):(B(),V(`p`,Qy,j(P(Z)(`Nothing here yet.`)),1)),t.last_page>1?(B(),V(`nav`,i2,[t.current_page>1?(B(),H(ld,{key:0,href:s(t.current_page-1),class:`m-btn m-btn-secondary`},{default:F(()=>[G(j(P(Z)(`Previous`)),1)]),_:1},8,[`href`])):K(``,!0),t.current_page<t.last_page?(B(),H(ld,{key:1,href:s(t.current_page+1),class:`m-btn m-btn-secondary`},{default:F(()=>[G(j(P(Z)(`Next`)),1)]),_:1},8,[`href`])):K(``,!0)])):K(``,!0)],64))}}),o2={class:`space-y-5`},s2={key:0,class:`flex items-center gap-2 text-sm`},c2=[`onUpdate:modelValue`],l2=[`for`],u2={key:0,class:`text-muted`},d2=[`id`,`onUpdate:modelValue`],f2={key:0,value:``},p2=[`value`],m2=[`id`,`onUpdate:modelValue`,`rows`,`maxlength`,`required`],h2={key:3,class:`flex flex-wrap items-center gap-3`},g2=[`src`],_2=[`id`,`onClick`],v2=[`onClick`],y2={key:4,class:`flex gap-2`},b2=[`id`,`onUpdate:modelValue`],x2=[`onClick`],S2=[`id`,`value`,`onInput`],C2={key:6,class:`space-y-2`},w2=[`src`],T2=[`onUpdate:modelValue`,`aria-label`],E2=[`onClick`],D2=[`onClick`],O2={key:7,class:`space-y-3`},k2=[`for`],A2=[`id`,`onUpdate:modelValue`],j2=[`id`,`onUpdate:modelValue`],M2=[`onClick`],N2=[`onClick`],P2=[`id`,`onUpdate:modelValue`,`type`,`maxlength`,`required`],F2=[`src`],I2={key:2,class:`mt-1 text-xs text-muted`},L2={key:3,class:`m-help`},R2={key:4,class:`m-error`},z2=L({__name:`FormFields`,props:{fields:{},values:{},errors:{},prefix:{},idPrefix:{}},setup(e){let t=e,n=e=>(t.idPrefix??`f-`)+e.key,r=q(()=>t.fields.filter(e=>!(e.advanced&&Y.view===`simple`))),i=e=>Y.view===`simple`&&e.simple_label||e.label,a=e=>Y.view===`simple`&&e.simple_help||e.help,o=N(null),s=N(null),c=e=>t.values[e]=Array.isArray(t.values[e])?t.values[e]:[],l=e=>c(e).join(`
|
||
`),u=(e,n)=>t.values[e]=n.split(`
|
||
`),d=e=>Object.values(e.items??{}),f=e=>c(e.key).push(Object.fromEntries(d(e).map(e=>[e.key,``]))),p=Y.permissions.includes(`media.view`),m=Y.view===`simple`;return(t,h)=>(B(),V(`div`,o2,[(B(!0),V(z,null,R(r.value,t=>(B(),V(`div`,{key:t.key},[t.type===`toggle`?(B(),V(`label`,s2,[I(U(`input`,{"onUpdate:modelValue":n=>e.values[t.key]=n,type:`checkbox`},null,8,c2),[[bu,e.values[t.key]]]),G(` `+j(P(Z)(i(t))),1)])):(B(),V(z,{key:1},[U(`label`,{for:n(t),class:`m-label`},[G(j(P(Z)(i(t))),1),t.required?(B(),V(`span`,u2,` *`)):K(``,!0)],8,l2),t.type===`select`?I((B(),V(`select`,{key:0,id:n(t),"onUpdate:modelValue":n=>e.values[t.key]=n,class:`m-input`},[t.required?K(``,!0):(B(),V(`option`,f2)),(B(!0),V(z,null,R(t.options,(e,t)=>(B(),V(`option`,{key:t,value:t},j(e),9,p2))),128))],8,d2)),[[Cu,e.values[t.key]]]):t.type===`markdown`?(B(),H(xm,{key:1,id:n(t),modelValue:e.values[t.key],"onUpdate:modelValue":n=>e.values[t.key]=n,required:t.required,maxlength:t.max??void 0},null,8,[`id`,`modelValue`,`onUpdate:modelValue`,`required`,`maxlength`])):t.type===`textarea`||t.type===`lines`?I((B(),V(`textarea`,{key:2,id:n(t),"onUpdate:modelValue":n=>e.values[t.key]=n,rows:t.type===`lines`?5:4,maxlength:t.max??void 0,required:t.required,class:`m-input`},null,8,m2)),[[J,e.values[t.key]]]):t.type===`media`&&m?(B(),V(`div`,h2,[e.values[t.key]?(B(),V(`img`,{key:0,src:e.values[t.key],alt:``,class:`h-28 w-auto max-w-full rounded-lg border border-line object-cover`},null,8,g2)):K(``,!0),P(p)?(B(),V(`button`,{key:1,id:n(t),type:`button`,class:`m-btn m-btn-primary`,onClick:e=>o.value=t.key},j(e.values[t.key]?P(Z)(`Use another photo`):P(Z)(`Choose a photo`)),9,_2)):K(``,!0),e.values[t.key]?(B(),V(`button`,{key:2,type:`button`,class:`m-btn m-btn-secondary`,onClick:n=>e.values[t.key]=``},j(P(Z)(`Take it away`)),9,v2)):K(``,!0)])):t.type===`media`?(B(),V(`div`,y2,[I(U(`input`,{id:n(t),"onUpdate:modelValue":n=>e.values[t.key]=n,maxlength:`2048`,class:`m-input`},null,8,b2),[[J,e.values[t.key]]]),P(p)?(B(),V(`button`,{key:0,type:`button`,class:`m-btn m-btn-secondary shrink-0`,onClick:e=>o.value=t.key},j(P(Z)(`Choose`)),9,x2)):K(``,!0)])):t.type===`list`?(B(),V(`textarea`,{key:5,id:n(t),value:l(t.key),rows:`5`,class:`m-input`,onInput:e=>u(t.key,e.target.value)},null,40,S2)):t.type===`media_list`?(B(),V(`div`,C2,[(B(!0),V(z,null,R(c(t.key),(n,r)=>(B(),V(`div`,{key:r,class:`flex items-center gap-2`},[U(`img`,{src:n,alt:``,class:A([`rounded border border-line object-cover`,m?`h-20 w-20`:`h-12 w-12`])},null,10,w2),m?K(``,!0):I((B(),V(`input`,{key:0,"onUpdate:modelValue":n=>e.values[t.key][r]=n,maxlength:`2048`,class:`m-input`,"aria-label":P(Z)(i(t))},null,8,T2)),[[J,e.values[t.key][r]]]),U(`button`,{type:`button`,class:`m-btn m-btn-secondary`,onClick:n=>e.values[t.key].splice(r,1)},j(m?P(Z)(`Take it away`):P(Z)(`Remove`)),9,E2)]))),128)),P(p)?(B(),V(`button`,{key:0,type:`button`,class:`m-btn m-btn-secondary`,onClick:e=>s.value=t.key},j(m?P(Z)(`Add photos`):P(Z)(`Add a picture`)),9,D2)):K(``,!0)])):t.type===`repeater`?(B(),V(`div`,O2,[(B(!0),V(z,null,R(c(t.key),(n,r)=>(B(),V(`div`,{key:r,class:`m-card space-y-2 p-3`},[(B(!0),V(z,null,R(d(t),e=>(B(),V(`div`,{key:e.key},[U(`label`,{class:`m-label`,for:`f-${t.key}-${r}-${e.key}`},j(P(Z)(e.label)),9,k2),e.type===`textarea`?I((B(),V(`textarea`,{key:0,id:`f-${t.key}-${r}-${e.key}`,"onUpdate:modelValue":t=>n[e.key]=t,rows:`3`,class:`m-input`},null,8,A2)),[[J,n[e.key]]]):I((B(),V(`input`,{key:1,id:`f-${t.key}-${r}-${e.key}`,"onUpdate:modelValue":t=>n[e.key]=t,class:`m-input`},null,8,j2)),[[J,n[e.key]]])]))),128)),U(`button`,{type:`button`,class:`m-btn m-btn-secondary`,onClick:n=>e.values[t.key].splice(r,1)},j(P(Z)(`Remove`)),9,M2)]))),128)),U(`button`,{type:`button`,class:`m-btn m-btn-secondary`,onClick:e=>f(t)},j(P(Z)(`Add`)),9,N2)])):I((B(),V(`input`,{key:8,id:n(t),"onUpdate:modelValue":n=>e.values[t.key]=n,type:t.type===`number`?`number`:t.type===`date`?`date`:`text`,maxlength:t.max??void 0,required:t.required,class:`m-input`},null,8,P2)),[[Ou,e.values[t.key]]]),t.type===`media`&&e.values[t.key]&&!m?(B(),V(`img`,{key:9,src:e.values[t.key],alt:``,class:`mt-2 h-24 w-auto rounded-lg border border-line object-cover`},null,8,F2)):K(``,!0)],64)),t.type===`lines`||t.type===`list`?(B(),V(`p`,I2,j(P(Z)(`One per line.`)),1)):K(``,!0),a(t)?(B(),V(`p`,L2,j(P(Z)(a(t))),1)):K(``,!0),e.errors?.[(e.prefix??``)+t.key]?(B(),V(`p`,R2,j(e.errors[(e.prefix??``)+t.key]),1)):K(``,!0)]))),128)),o.value?(B(),H(sm,{key:0,onPick:h[0]||=t=>{e.values[o.value]=t,o.value=null},onClose:h[1]||=e=>o.value=null})):K(``,!0),s.value?(B(),H(sm,{key:1,many:``,onPick:h[2]||=e=>{c(s.value).push(e),s.value=null},onMany:h[3]||=e=>{c(s.value).push(...e),s.value=null},onClose:h[4]||=e=>s.value=null})):K(``,!0)]))}}),B2=[`aria-label`],V2={class:`flex items-center justify-between gap-3`},H2={class:`font-display text-lg font-bold`},U2=[`aria-expanded`],W2={class:`sr-only`,role:`status`,"aria-live":`polite`},G2=[`aria-label`],K2={class:`m-label`},q2={class:`flex flex-wrap gap-2`},J2=[`title`,`onClick`],Y2={key:1,class:`text-sm text-muted`},X2={key:2,class:`m-card p-4 text-sm text-muted`},Z2={key:3,class:`space-y-2`},Q2=[`id`,`draggable`,`onDragstart`,`onDragover`,`onDragleave`,`onDrop`],$2={class:`flex items-center gap-2 p-3`},e4=[`title`],t4=[`id`,`aria-expanded`,`aria-label`,`title`,`onClick`,`onKeydown`],n4={class:`font-semibold`},r4={key:0,class:`ml-2 truncate text-sm text-muted`},i4={key:1,class:`m-badge ml-2`},a4={class:`flex shrink-0 gap-1`},o4=[`disabled`,`aria-label`,`onClick`],s4=[`disabled`,`aria-label`,`onClick`],c4=[`aria-label`,`onClick`],l4=[`aria-pressed`,`aria-label`,`onClick`],u4=[`aria-label`,`onClick`],d4={key:0,class:`space-y-4 border-t border-line p-4`},f4={key:0,class:`rounded-lg border border-line p-3`},p4={class:`cursor-pointer text-sm font-semibold`},m4={class:`mt-3 grid gap-3 sm:grid-cols-2`},h4=[`for`],g4=[`id`,`onUpdate:modelValue`],_4=[`value`],v4={key:1,class:`grid gap-3 sm:grid-cols-2`},y4=[`for`],b4=[`id`,`onUpdate:modelValue`],x4=[`value`],S4=0,C4=e=>({...e,_key:e.id??`new-${++S4}`}),w4=L({__name:`BlocksEditor`,props:{modelValue:{},types:{},errors:{},layout:{type:Boolean,default:!0}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,i=q(()=>n.modelValue),a=Y.view===`simple`,o=e=>n.types.find(t=>t.key===e),s=e=>Z(Up(e.label,e.simple_label)),c={image:`image`,gallery:`image`,hero:`image`,"image-text":`image`,compare:`image`,text:`file`,title:`file`,quote:`file`,faq:`file`,list:`file`,cards:`group`,stats:`chart`,tags:`tag`,cta:`link`,form:`link`},l=e=>c[e.icon]??void 0,u=N(null),d=N(!1),f=N(null),p=N(null),m=N(``),h=q(()=>{let e={};return n.types.forEach(t=>(e[t.group]??=[]).push(t)),Object.entries(e)}),g=e=>r(`update:modelValue`,e),_=e=>e._key??e.id??``;function v(e){for(let t of Object.values(e.data))if(typeof t==`string`&&t.trim()!==``&&!/^https?:|^\//.test(t))return t.trim().replace(/\s+/g,` `).slice(0,80);return``}function y(e){let t={};return e.fields.forEach(e=>{t[e.key]=e.default??(e.type===`toggle`?!1:[`list`,`media_list`,`repeater`].includes(e.type)?[]:``)}),C4({type:e.key,data:t,style:Object.fromEntries(e.style.map(e=>[e.key,e.default])),hidden:!1})}function b(e){let t=y(e);g([...i.value,t]),u.value=_(t),d.value=!1,m.value=Z(`:name added`,{name:s(e)}),fr(()=>document.getElementById(`block-`+_(t))?.scrollIntoView({block:`nearest`}))}function x(e,t){if(t<0||t>=i.value.length||e===t)return;let n=[...i.value];n.splice(t,0,n.splice(e,1)[0]),g(n),m.value=Z(`Moved to place :place of :total`,{place:t+1,total:n.length}),fr(()=>document.getElementById(`move-${_(n[t])}`)?.focus())}function S(e){let t=i.value[e],n=C4({...JSON.parse(JSON.stringify(t)),id:void 0,_key:void 0}),r=[...i.value];r.splice(e+1,0,n),g(r),u.value=_(n)}function C(e){let t=[...i.value];t[e]={...t[e],hidden:!t[e].hidden},g(t)}function w(e){if(!window.confirm(Z(`Are you sure?`)))return;let t=i.value.filter((t,n)=>n!==e);g(t),m.value=Z(`Block removed`)}function ee(e){f.value!==null&&x(f.value,e),f.value=p.value=null}function T(e,t){n.layout&&e.altKey&&(e.key===`ArrowUp`||e.key===`ArrowDown`)&&(e.preventDefault(),x(t,t+(e.key===`ArrowUp`?-1:1)))}return(t,r)=>(B(),V(`section`,{class:`space-y-3`,"aria-label":P(Z)(`Blocks`)},[U(`div`,V2,[U(`h2`,H2,j(P(Up)(P(Z)(`Blocks`),P(Z)(`The parts of your page`))),1),n.layout?(B(),V(`button`,{key:0,type:`button`,class:`m-btn m-btn-secondary`,"aria-expanded":d.value,onClick:r[0]||=e=>d.value=!d.value},j(P(Up)(P(Z)(`Add a block`),P(Z)(`Add something to the page`))),9,U2)):K(``,!0)]),U(`p`,W2,j(m.value),1),d.value&&n.layout?(B(),V(`div`,{key:0,class:`m-card space-y-4 p-4`,role:`group`,"aria-label":P(Z)(`Choose a block`)},[(B(!0),V(z,null,R(h.value,([e,t])=>(B(),V(`div`,{key:e},[U(`p`,K2,j(P(Z)(e)),1),U(`div`,q2,[(B(!0),V(z,null,R(t,e=>(B(),V(`button`,{key:e.key,type:`button`,class:`m-btn m-btn-secondary`,title:e.icon,onClick:t=>b(e)},[W(sd,{name:l(e)},null,8,[`name`]),G(` `+j(s(e)),1)],8,J2))),128))])]))),128))],8,G2)):K(``,!0),a&&i.value.length&&n.layout?(B(),V(`p`,Y2,j(P(Z)(`Press a part to change it. The arrows move it up or down. Nothing is lost: a part you take off the site can be put back.`)),1)):K(``,!0),i.value.length?(B(),V(`ol`,Z2,[(B(!0),V(z,null,R(i.value,(t,c)=>(B(),V(`li`,{id:`block-`+_(t),key:_(t),class:A([`m-card`,[p.value===c&&f.value!==c?`ring-2 ring-brand`:``,t.hidden?`opacity-70`:``]]),draggable:n.layout,onDragstart:e=>f.value=c,onDragover:Pu(e=>p.value=c,[`prevent`]),onDragleave:e=>p.value=p.value===c?null:p.value,onDrop:Pu(e=>ee(c),[`prevent`]),onDragend:r[1]||=e=>f.value=p.value=null},[U(`div`,$2,[n.layout&&!a?(B(),V(`span`,{key:0,class:`cursor-grab select-none text-muted`,"aria-hidden":`true`,title:P(Z)(`Drag to reorder`)},`⠿`,8,e4)):K(``,!0),U(`button`,{id:`move-`+_(t),type:`button`,class:`min-w-0 flex-1 text-left`,"aria-expanded":u.value===_(t),"aria-label":P(Z)(`Edit :name`,{name:o(t.type)?s(o(t.type)):t.type})+(v(t)?`: `+v(t):``),title:P(Z)(`Alt + arrow up or down moves the block`),onClick:e=>u.value=u.value===_(t)?null:_(t),onKeydown:e=>T(e,c)},[U(`span`,n4,j(o(t.type)?s(o(t.type)):t.type),1),v(t)?(B(),V(`span`,r4,j(v(t)),1)):K(``,!0),t.hidden?(B(),V(`span`,i4,j(P(Z)(`Hidden`)),1)):K(``,!0)],40,t4),U(`div`,a4,[n.layout?(B(),V(`button`,{key:0,type:`button`,class:`m-btn m-btn-secondary`,disabled:c===0,"aria-label":P(Z)(`Move up`),onClick:e=>x(c,c-1)},`↑`,8,o4)):K(``,!0),n.layout?(B(),V(`button`,{key:1,type:`button`,class:`m-btn m-btn-secondary`,disabled:c===i.value.length-1,"aria-label":P(Z)(`Move down`),onClick:e=>x(c,c+1)},`↓`,8,s4)):K(``,!0),n.layout&&!a?(B(),V(`button`,{key:2,type:`button`,class:`m-btn m-btn-secondary`,"aria-label":P(Z)(`Duplicate`),onClick:e=>S(c)},`⧉`,8,c4)):K(``,!0),n.layout?(B(),V(`button`,{key:3,type:`button`,class:`m-btn m-btn-secondary`,"aria-pressed":t.hidden,"aria-label":t.hidden?P(Z)(`Show`):P(Z)(`Hide`),onClick:e=>C(c)},j(t.hidden?a?P(Z)(`Put it back on the site`):P(Z)(`Show`):a?P(Z)(`Take it off the site`):P(Z)(`Hide`)),9,l4)):K(``,!0),n.layout&&!a?(B(),V(`button`,{key:4,type:`button`,class:`m-btn m-btn-danger`,"aria-label":P(Z)(`Delete`),onClick:e=>w(c)},`✕`,8,u4)):K(``,!0)])]),u.value===_(t)&&o(t.type)?(B(),V(`div`,d4,[W(z2,{fields:o(t.type).fields,values:t.data,errors:e.errors,prefix:`blocks.${c}.data.`,"id-prefix":`b-${_(t)}-`},null,8,[`fields`,`values`,`errors`,`prefix`,`id-prefix`]),a&&o(t.type).style.length?(B(),V(`details`,f4,[U(`summary`,p4,j(P(Z)(`Change how it looks`)),1),U(`div`,m4,[(B(!0),V(z,null,R(o(t.type).style,e=>(B(),V(`div`,{key:e.key},[U(`label`,{for:`s-${_(t)}-${e.key}`,class:`m-label`},j(P(Z)(e.key.charAt(0).toUpperCase()+e.key.slice(1))),9,h4),I(U(`select`,{id:`s-${_(t)}-${e.key}`,"onUpdate:modelValue":n=>t.style[e.key]=n,class:`m-input`},[(B(!0),V(z,null,R(e.options,(e,t)=>(B(),V(`option`,{key:t,value:t},j(P(Z)(e)),9,_4))),128))],8,g4),[[Cu,t.style[e.key]]])]))),128))])])):o(t.type).style.length?(B(),V(`div`,v4,[(B(!0),V(z,null,R(o(t.type).style,e=>(B(),V(`div`,{key:e.key},[U(`label`,{for:`s-${_(t)}-${e.key}`,class:`m-label`},j(P(Z)(e.key.charAt(0).toUpperCase()+e.key.slice(1))),9,y4),I(U(`select`,{id:`s-${_(t)}-${e.key}`,"onUpdate:modelValue":n=>t.style[e.key]=n,class:`m-input`},[(B(!0),V(z,null,R(e.options,(e,t)=>(B(),V(`option`,{key:t,value:t},j(P(Z)(e)),9,x4))),128))],8,b4),[[Cu,t.style[e.key]]])]))),128))])):K(``,!0)])):K(``,!0)],42,Q2))),128))])):(B(),V(`p`,X2,j(n.layout?P(Up)(P(Z)(`No blocks yet. Add one to start.`),P(Z)(`Nothing on this page yet. Press "Add something to the page" to start.`)):P(Z)(`No blocks yet.`)),1))],8,B2))}}),T4={class:`mb-6 flex items-center justify-between gap-3`},E4={class:`font-display text-2xl font-bold`},D4={class:`text-sm opacity-80`},O4={class:`text-sm`},k4=[`disabled`],A4=L({__name:`RecordTemplate`,props:{resource:{},record_fields:{},blocks:{},block_types:{}},setup(e){let t=e,n=Z(Up(t.resource.label,t.resource.simple_label)),r=nd({blocks:t.blocks.map(C4)});async function i(){await r.send(`put`,`${Y.base}/records/${t.resource.key}/template`)&&$(Z(`Saved.`))}return(t,a)=>(B(),V(z,null,[U(`div`,T4,[U(`h1`,E4,j(P(Z)(`Page layout of :name`,{name:P(n)})),1),W(ld,{href:`${P(Y).base}/records/${e.resource.key}`,class:`m-btn m-btn-secondary`},{default:F(()=>[G(j(P(Z)(`Back`)),1)]),_:1},8,[`href`])]),U(`form`,{class:`m-card max-w-3xl space-y-5 p-5`,onSubmit:Pu(i,[`prevent`])},[U(`p`,D4,j(P(Z)(`The page every :name gets. Write {record.field} in a text to fill in a field of the record, for example {record.title}.`,{name:P(Up)(e.resource.singular,e.resource.simple_singular)})),1),U(`p`,O4,[U(`strong`,null,j(P(Z)(`Fields you can fill in`))+`:`,1),a[1]||=G(),(B(!0),V(z,null,R(e.record_fields,e=>(B(),V(`code`,{key:e.key,class:`mr-2`},j(`{record.`+e.key+`}`),1))),128))]),W(w4,{modelValue:P(r).values.blocks,"onUpdate:modelValue":a[0]||=e=>P(r).values.blocks=e,types:e.block_types,errors:P(r).errors},null,8,[`modelValue`,`types`,`errors`]),U(`button`,{type:`submit`,class:`m-btn m-btn-primary`,disabled:P(r).busy},j(P(r).busy?P(Z)(`Saving…`):P(Z)(`Save`)),9,k4)],32)],64))}}),j4={class:`mb-6 flex items-center justify-between gap-3`},M4={class:`font-display text-2xl font-bold`},N4=[`disabled`],P4=L({__name:`RecordForm`,props:{resource:{},record:{}},setup(e){let t=e,n=`${Y.base}/records/${t.resource.key}`,r=nd({...t.record.values});async function i(){(t.record.id===null?await r.send(`post`,n):await r.send(`put`,`${n}/${t.record.id}`))&&($(Z(`Saved.`)),bx(n))}return(t,a)=>(B(),V(z,null,[U(`div`,j4,[U(`h1`,M4,j(e.record.id===null?P(Z)(`New`)+`: `+P(Z)(P(Up)(e.resource.singular,e.resource.simple_singular)):P(Z)(P(Up)(e.resource.singular,e.resource.simple_singular))),1),W(ld,{href:n,class:`m-btn m-btn-secondary`},{default:F(()=>[G(j(P(Z)(`Back`)),1)]),_:1})]),U(`form`,{class:`m-card max-w-3xl space-y-5 p-5`,onSubmit:Pu(i,[`prevent`])},[W(z2,{fields:e.resource.fields,values:P(r).values,errors:P(r).errors},null,8,[`fields`,`values`,`errors`]),U(`button`,{type:`submit`,class:`m-btn m-btn-primary`,disabled:P(r).busy},j(P(r).busy?P(Z)(`Saving…`):P(Z)(`Save`)),9,N4)],32)],64))}}),F4={class:`mb-4 font-display text-2xl font-bold`},I4={class:`mb-4 flex flex-wrap gap-2`,role:`tablist`},L4=[`aria-selected`,`onClick`],R4={class:`ml-1 text-xs opacity-75`},z4={key:0,class:`m-error mb-3`,role:`alert`},B4={key:1,class:`m-card p-5 text-sm text-muted`},V4={key:2,class:`space-y-3`},H4=[`aria-expanded`,`onClick`],U4=[`title`],W4={class:`min-w-0 flex-1`},G4={class:`block truncate font-semibold`},K4={class:`font-normal text-muted`},q4={class:`block truncate text-sm text-muted`},J4={class:`shrink-0 text-xs text-muted`},Y4={key:0,class:`space-y-4 border-t border-line p-4 text-sm`},X4={key:0,class:`m-error`},Z4={key:1,class:`whitespace-pre-line`},Q4={key:2,class:`grid gap-1`},$4={class:`inline text-muted`},e3={class:`inline font-medium`},t3={key:0},n3={class:`inline text-muted`},r3={class:`inline font-medium`},i3={class:`flex flex-wrap gap-2`},a3=[`href`],o3=[`href`],s3=[`href`],c3=[`onClick`],l3=[`onClick`],u3=[`disabled`,`onClick`],d3=[`disabled`,`onClick`],f3={key:3,class:`space-y-1`},p3={class:`text-xs text-muted`},m3=[`onSubmit`],h3=[`onUpdate:modelValue`,`placeholder`,`aria-label`],g3=[`disabled`],_3={key:5,class:`space-y-2 border-t border-line pt-3`},v3={class:`text-xs text-muted`},y3={key:0,class:`list-disc pl-5 text-xs text-muted`},b3={class:`flex flex-wrap gap-2`},x3=[`onClick`],S3=[`onClick`],C3=[`onClick`],w3=[`onClick`],T3=[`onClick`],E3=[`onClick`],D3=[`onClick`],O3={key:3,class:`m-card mt-8 p-4`},k3={class:`mb-1 font-semibold`},A3={class:`mb-3 text-sm text-muted`},j3={class:`grid gap-6 text-sm sm:grid-cols-2`},M3={class:`mb-1 font-medium`},N3={class:`mb-1 font-medium`},P3={class:`truncate`},F3={class:`shrink-0`},I3={key:0,class:`text-muted`},L3={key:0,class:`text-muted`},R3={key:0},z3={class:`mb-1 font-medium`},B3={class:`truncate`},V3={key:4,class:`m-card mt-8 p-4`},H3={class:`mb-2 font-semibold`},U3={class:`divide-y divide-line text-sm`},W3={key:0,class:`text-muted`},G3=[`onClick`],K3=L({__name:`LeadsInbox`,props:{view:{},items:{},counts:{},open:{},blocks:{},can:{},report:{}},setup(e){let t=e,n=`${Y.base}/leads`,r=N(t.open),i=dn({}),a=N(``),o=q(()=>[[`waiting`,Z(`Waiting`)],[`handled`,Z(`Handled`)],...t.can.manage?[[`other`,Z(`Other`)],[`spam`,Z(`Spam`)]]:[]]),s=e=>new Date(e).toLocaleString(Y.locale===`nl`?`nl-NL`:`en-GB`,{dateStyle:`medium`,timeStyle:`short`});async function c(e){r.value=r.value===e.id?null:e.id,r.value===e.id&&e.is_new&&(await X.post(`${n}/${e.id}/opened`),e.is_new=!1)}async function l(e,t){a.value=``;try{await e(),t&&$(t),await xx()}catch(e){if(e instanceof Qu&&e.status===422)a.value=e.errors?.message??Object.values(e.errors??{})[0]??Z(`This could not be done.`);else throw e}}let u=(e,t)=>l(()=>X.put(`${n}/${e.id}/handled`,{handled:!e.handled||!!t,outcome:t}),Z(`Saved.`)),d=e=>l(async()=>{await X.post(`${n}/${e.id}/notes`,{text:i[e.id]}),i[e.id]=``},Z(`Note saved.`)),f=(e,t)=>l(()=>X.put(`${n}/${e.id}/folder`,{folder:t}),Z(`Moved.`)),p=(e,t)=>l(()=>X.post(`${n}/${e.id}/block`,{type:t}),Z(`Blocked.`)),m=e=>l(()=>X.delete(`${n}/blocks/${e.id}`),Z(`The block is lifted.`)),h=e=>window.confirm(Z(`Are you sure?`))&&l(()=>X.delete(`${n}/${e.id}`),Z(`Deleted.`)),g=e=>bx(`${n}${e===`waiting`?``:`?view=`+e}`);return(t,n)=>(B(),V(z,null,[U(`h1`,F4,j(P(Z)(`Requests`)),1),U(`div`,I4,[(B(!0),V(z,null,R(o.value,([t,n])=>(B(),V(`button`,{key:t,type:`button`,role:`tab`,"aria-selected":e.view===t,class:A([`m-btn`,e.view===t?`m-btn-primary`:`m-btn-secondary`]),onClick:e=>g(t)},[G(j(n)+` `,1),U(`span`,R4,j(e.counts[t]),1)],10,L4))),128))]),a.value?(B(),V(`p`,z4,j(a.value),1)):K(``,!0),e.items.length?(B(),V(`ul`,V4,[(B(!0),V(z,null,R(e.items,t=>(B(),V(`li`,{key:t.id,class:`m-card`},[U(`button`,{type:`button`,class:`flex w-full items-center gap-3 p-4 text-left`,"aria-expanded":r.value===t.id,onClick:e=>c(t)},[t.is_new?(B(),V(`span`,{key:0,class:`h-2.5 w-2.5 shrink-0 rounded-full bg-accent`,title:P(Z)(`New`)},null,8,U4)):K(``,!0),U(`span`,W4,[U(`span`,G4,[G(j(t.name)+` `,1),U(`span`,K4,`· `+j(t.subject),1)]),U(`span`,q4,j(t.message??t.kind),1)]),U(`span`,J4,j(s(t.created_at)),1)],8,H4),r.value===t.id?(B(),V(`div`,Y4,[t.notify_failed?(B(),V(`p`,X4,j(P(Z)(`The mail about this request could not be sent.`)),1)):K(``,!0),t.message?(B(),V(`p`,Z4,j(t.message),1)):K(``,!0),Object.keys(t.answers).length||t.location?(B(),V(`dl`,Q4,[(B(!0),V(z,null,R(t.answers,(e,t)=>(B(),V(`div`,{key:t},[U(`dt`,$4,j(t)+`: `,1),U(`dd`,e3,j(e),1)]))),128)),t.location?(B(),V(`div`,t3,[U(`dt`,n3,j(P(Z)(`Where`))+`: `,1),U(`dd`,r3,j(t.location),1)])):K(``,!0)])):K(``,!0),U(`div`,i3,[t.call_link?(B(),V(`a`,{key:0,href:t.call_link,class:`m-btn m-btn-primary`},j(P(Z)(`Call`)),9,a3)):K(``,!0),t.whatsapp_link?(B(),V(`a`,{key:1,href:t.whatsapp_link,target:`_blank`,rel:`noopener`,class:`m-btn m-btn-secondary`},`WhatsApp`,8,o3)):K(``,!0),t.mail_link?(B(),V(`a`,{key:2,href:t.mail_link,class:`m-btn m-btn-secondary`},j(P(Z)(`Mail`)),9,s3)):K(``,!0),e.can.handle&&!t.handled&&t.folder!==`spam`?(B(),V(`button`,{key:3,type:`button`,class:`m-btn m-btn-secondary`,onClick:e=>u(t)},j(P(Z)(`Handled`)),9,c3)):K(``,!0),e.can.handle&&t.handled?(B(),V(z,{key:4},[U(`button`,{type:`button`,class:`m-btn m-btn-secondary`,onClick:e=>u(t)},j(P(Z)(`Back to waiting`)),9,l3),U(`button`,{type:`button`,class:`m-btn m-btn-secondary`,disabled:t.outcome===`won`,onClick:e=>u(t,`won`)},j(P(Z)(`It became a job`)),9,u3),U(`button`,{type:`button`,class:`m-btn m-btn-secondary`,disabled:t.outcome===`lost`,onClick:e=>u(t,`lost`)},j(P(Z)(`No job`)),9,d3)],64)):K(``,!0)]),t.notes.length?(B(),V(`div`,f3,[(B(!0),V(z,null,R(t.notes,(e,t)=>(B(),V(`p`,{key:t,class:`rounded bg-surface-2 p-2`},[U(`span`,p3,j(e.at)+` · `+j(e.by),1),n[0]||=U(`br`,null,null,-1),G(j(e.text),1)]))),128))])):K(``,!0),e.can.handle?(B(),V(`form`,{key:4,class:`flex gap-2`,onSubmit:Pu(e=>d(t),[`prevent`])},[I(U(`input`,{"onUpdate:modelValue":e=>i[t.id]=e,class:`m-input`,placeholder:P(Z)(`A note for yourself`),"aria-label":P(Z)(`A note for yourself`),maxlength:`2000`},null,8,h3),[[J,i[t.id]]]),U(`button`,{type:`submit`,class:`m-btn m-btn-secondary`,disabled:!i[t.id]},j(P(Z)(`Add`)),9,g3)],40,m3)):K(``,!0),e.can.manage?(B(),V(`div`,_3,[U(`p`,v3,[G(j(P(Z)(`Screening`))+`: `+j(t.folder),1),t.source?(B(),V(z,{key:0},[G(` · `+j(t.source),1)],64)):K(``,!0),t.ip?(B(),V(z,{key:1},[G(` · `+j(t.ip),1)],64)):K(``,!0)]),t.reasons?.length?(B(),V(`ul`,y3,[(B(!0),V(z,null,R(t.reasons,(e,t)=>(B(),V(`li`,{key:t},j(e),1))),128))])):K(``,!0),U(`div`,b3,[t.folder===`inbox`?K(``,!0):(B(),V(`button`,{key:0,type:`button`,class:`m-btn m-btn-secondary`,onClick:e=>f(t,`inbox`)},j(P(Z)(`It is a real request`)),9,x3)),t.folder===`inbox`?(B(),V(`button`,{key:1,type:`button`,class:`m-btn m-btn-secondary`,onClick:e=>f(t,`other`)},j(P(Z)(`This is not a request`)),9,S3)):K(``,!0),t.email?(B(),V(`button`,{key:2,type:`button`,class:`m-btn m-btn-secondary`,onClick:e=>p(t,`email`)},j(P(Z)(`Block this address`)),9,C3)):K(``,!0),t.email?(B(),V(`button`,{key:3,type:`button`,class:`m-btn m-btn-secondary`,onClick:e=>p(t,`domain`)},j(P(Z)(`Block its domain`)),9,w3)):K(``,!0),t.phone?(B(),V(`button`,{key:4,type:`button`,class:`m-btn m-btn-secondary`,onClick:e=>p(t,`phone`)},j(P(Z)(`Block this number`)),9,T3)):K(``,!0),t.ip?(B(),V(`button`,{key:5,type:`button`,class:`m-btn m-btn-secondary`,onClick:e=>p(t,`ip`)},j(P(Z)(`Block the sender address`)),9,E3)):K(``,!0)])])):K(``,!0),e.can.delete?(B(),V(`button`,{key:6,type:`button`,class:`m-btn m-btn-danger`,onClick:e=>h(t)},j(P(Z)(`Delete`)),9,D3)):K(``,!0)])):K(``,!0)]))),128))])):(B(),V(`p`,B4,j(P(Z)(`Nothing here yet.`)),1)),e.report?(B(),V(`section`,O3,[U(`h2`,k3,j(P(Z)(`What it brought in`)),1),U(`p`,A3,j(P(Z)(`The last :days days`,{days:e.report.days}))+`: `+j(e.report.requests)+` `+j(P(Z)(`requests`))+`, `+j(e.report.won)+` `+j(P(Z)(`became a job`))+`, `+j(e.report.kept_away.other+e.report.kept_away.spam)+` `+j(P(Z)(`kept away by the screening`))+`. `,1),U(`div`,j3,[U(`div`,null,[U(`h3`,M3,j(P(Z)(`Ways in`)),1),U(`ul`,null,[(B(!0),V(z,null,R(e.report.ways,e=>(B(),V(`li`,{key:e.name,class:`flex justify-between`},[U(`span`,null,j(e.name),1),U(`strong`,null,j(e.count),1)]))),128))])]),(B(!0),V(z,null,R([[P(Z)(`Pages`),e.report.pages],[P(Z)(`Sources`),e.report.sources],[P(Z)(`About`),e.report.subjects]],([e,t])=>(B(),V(`div`,{key:e},[U(`h3`,N3,j(e),1),U(`ul`,null,[(B(!0),V(z,null,R(t,e=>(B(),V(`li`,{key:e.name,class:`flex justify-between gap-3`},[U(`span`,P3,j(e.name),1),U(`span`,F3,[U(`strong`,null,j(e.count),1),e.won?(B(),V(`span`,I3,` (`+j(e.won)+` ✓)`,1)):K(``,!0)])]))),128)),t.length?K(``,!0):(B(),V(`li`,L3,`—`))])]))),128)),e.report.tap_pages.length?(B(),V(`div`,R3,[U(`h3`,z3,j(P(Z)(`Where the buttons are pressed`)),1),U(`ul`,null,[(B(!0),V(z,null,R(e.report.tap_pages,e=>(B(),V(`li`,{key:e.name,class:`flex justify-between gap-3`},[U(`span`,B3,j(e.name),1),U(`strong`,null,j(e.count),1)]))),128))])])):K(``,!0)])])):K(``,!0),e.blocks?.length?(B(),V(`section`,V3,[U(`h2`,H3,j(P(Z)(`Blocked senders`)),1),U(`ul`,U3,[(B(!0),V(z,null,R(e.blocks,e=>(B(),V(`li`,{key:e.id,class:`flex items-center justify-between gap-3 py-2`},[U(`span`,null,[G(j(e.type)+`: `,1),U(`strong`,null,j(e.value),1),e.expires_at?(B(),V(`span`,W3,` · `+j(P(Z)(`until`))+` `+j(s(e.expires_at)),1)):K(``,!0)]),U(`button`,{type:`button`,class:`m-btn m-btn-secondary`,onClick:t=>m(e)},j(P(Z)(`Lift`)),9,G3)]))),128))])])):K(``,!0)],64))}}),q3={class:`mb-6 flex flex-wrap items-center justify-between gap-3`},J3={class:`font-display text-2xl font-bold`},Y3={key:0,class:`m-card mb-4 border-danger p-4 text-sm text-danger`,role:`alert`},X3={key:1,class:`m-card mb-4 border-danger p-4 text-sm text-danger`,role:`alert`},Z3={class:`grid gap-4 md:grid-cols-2`},Q3={class:`font-display mb-3 text-lg font-bold`},$3={class:`space-y-1 text-sm`},e6={class:`text-muted`},t6={class:`break-all text-right font-medium`},n6={class:`m-card p-5`},r6={class:`font-display mb-3 text-lg font-bold`},i6={class:`h-2 overflow-hidden rounded-full bg-panel-2`},a6={class:`m-help`},o6={key:0},s6={class:`m-card p-5`},c6={class:`font-display mb-3 text-lg font-bold`},l6={key:0,class:`mb-2 text-sm text-muted`},u6={class:`text-sm leading-relaxed`},d6={class:`m-card mt-4 p-5`},f6={class:`font-display mb-1 text-lg font-bold`},p6={class:`m-help mb-3`},m6={key:0,class:`max-h-[32rem] overflow-auto whitespace-pre-wrap break-all rounded-lg bg-panel-2 p-3 text-xs leading-relaxed`},h6=L({__name:`SystemPage`,props:{versions:{},app:{},drivers:{},php:{},extensions:{},disk:{},log:{}},setup(e){let t=e,n=e=>e===null?`–`:e>1e9?`${(e/1e9).toFixed(1)} GB`:e>1e6?`${(e/1e6).toFixed(1)} MB`:`${Math.max(1,Math.round(e/1e3))} kB`,r=e=>Z(e?`Yes`:`No`),i=q(()=>t.disk.total&&t.disk.free!==null?Math.round((t.disk.total-t.disk.free)/t.disk.total*100):null),a=q(()=>[[[Z(`Manager`),t.versions.package],[`Laravel`,t.versions.laravel],[`PHP`,`${t.versions.php} (${t.versions.php_sapi})`],[Z(`Database`),t.versions.database]],[[Z(`Environment`),t.app.environment],[Z(`Debug mode`),r(t.app.debug)],[Z(`Maintenance mode`),r(t.app.maintenance)],[Z(`Address`),t.app.url],[Z(`Time zone`),t.app.timezone],[Z(`Language`),t.app.locale]],[[`memory_limit`,t.php.memory_limit],[`max_execution_time`,t.php.max_execution_time],[`upload_max_filesize`,t.php.upload_max_filesize],[`post_max_size`,t.php.post_max_size],[`OPcache`,r(t.php.opcache)]],Object.entries(t.drivers).map(([e,t])=>[e,t])]),o=q(()=>[Z(`Versions`),Z(`The site`),Z(`PHP settings`),Z(`Drivers`)]);return(t,r)=>(B(),V(z,null,[U(`div`,q3,[U(`h1`,J3,j(P(Z)(`System`)),1),U(`button`,{type:`button`,class:`m-btn m-btn-secondary`,onClick:r[0]||=e=>P(xx)()},j(P(Z)(`Refresh`)),1)]),e.app.debug&&e.app.environment===`production`?(B(),V(`p`,Y3,j(P(Z)(`Debug mode is on in production: errors show details to visitors. Turn it off.`)),1)):K(``,!0),e.extensions.missing_required.length?(B(),V(`p`,X3,j(P(Z)(`PHP modules that are missing and needed`))+`: `+j(e.extensions.missing_required.join(`, `)),1)):K(``,!0),U(`div`,Z3,[(B(!0),V(z,null,R(a.value,(e,t)=>(B(),V(`section`,{key:t,class:`m-card p-5`},[U(`h2`,Q3,j(o.value[t]),1),U(`dl`,$3,[(B(!0),V(z,null,R(e,([e,t])=>(B(),V(`div`,{key:e,class:`flex justify-between gap-4`},[U(`dt`,e6,j(e),1),U(`dd`,t6,j(t),1)]))),128))])]))),128)),U(`section`,n6,[U(`h2`,r6,j(P(Z)(`Disk`)),1),U(`div`,i6,[U(`div`,{class:`h-full bg-brand`,style:k({width:(i.value??0)+`%`})},null,4)]),U(`p`,a6,[G(j(n(e.disk.free))+` `+j(P(Z)(`free of`))+` `+j(n(e.disk.total)),1),i.value===null?K(``,!0):(B(),V(`span`,o6,` · `+j(i.value)+`%`,1))])]),U(`section`,s6,[U(`h2`,c6,j(P(Z)(`PHP modules`))+` (`+j(e.extensions.loaded.length)+`)`,1),e.extensions.missing_advised.length?(B(),V(`p`,l6,j(P(Z)(`Not installed, but good to have`))+`: `+j(e.extensions.missing_advised.join(`, `)),1)):K(``,!0),U(`p`,u6,[(B(!0),V(z,null,R(e.extensions.loaded,e=>(B(),V(`span`,{key:e,class:`mr-2 inline-block`},j(e),1))),128))])])]),U(`section`,d6,[U(`h2`,f6,j(P(Z)(`The last lines of the log`)),1),U(`p`,p6,[e.log.file?(B(),V(z,{key:0},[G(j(e.log.file)+` · `+j(n(e.log.size))+` · `+j(P(Z)(`Passwords and tokens are hidden, but the log can still hold names and addresses.`)),1)],64)):(B(),V(z,{key:1},[G(j(P(Z)(`There is no log yet.`)),1)],64))]),e.log.lines.length?(B(),V(`pre`,m6,j(e.log.lines.join(`
|
||
`)),1)):K(``,!0)])],64))}}),g6={class:`font-display mb-2 text-2xl font-bold`},_6={class:`mb-6 text-sm text-muted`},v6={key:0,class:`m-card p-5 text-sm text-muted`},y6={key:1,class:`space-y-4`},b6={class:`font-display text-lg font-bold`},x6={key:0,class:`ml-2 text-sm font-normal text-muted`},S6={key:0,class:`text-sm font-semibold`},C6={class:`mt-1 list-disc space-y-1 pl-5 text-sm`},w6=L({__name:`UpdatesList`,props:{releases:{}},setup(e){let t=e;return(e,n)=>(B(),V(z,null,[U(`h1`,g6,j(P(Z)(`Updates`)),1),U(`p`,_6,j(P(Z)(`What changed on your website`)),1),t.releases.length?(B(),V(`div`,y6,[(B(!0),V(z,null,R(t.releases,e=>(B(),V(`section`,{key:e.version,class:`m-card p-5`},[U(`h2`,b6,[G(j(e.version)+` `,1),e.date?(B(),V(`span`,x6,j(e.date),1)):K(``,!0)]),(B(!0),V(z,null,R(e.sections,(e,t)=>(B(),V(`div`,{key:t,class:`mt-3`},[e.title?(B(),V(`h3`,S6,j(e.title),1)):K(``,!0),U(`ul`,C6,[(B(!0),V(z,null,R(e.items,(e,t)=>(B(),V(`li`,{key:t},j(e),1))),128))])]))),128))]))),128))])):(B(),V(`p`,v6,j(P(Z)(`No changes recorded yet.`)),1))],64))}}),T6={class:`font-display mb-2 text-2xl font-bold`},E6={class:`mb-6 text-sm text-muted`},D6={class:`m-card mb-6 divide-y divide-line`},O6={class:`font-semibold`},k6={class:`text-xs text-muted`},A6={class:`text-xs text-muted`},j6={key:0,class:`flex gap-2`},M6=[`onClick`],N6=[`onClick`],P6={class:`mb-3 font-semibold`},F6={key:0,class:`m-card p-5 text-sm text-muted`},I6={key:1,class:`m-card divide-y divide-line`},L6={class:`min-w-0`},R6={class:`truncate font-semibold`},z6={class:`truncate text-xs text-muted`},B6={class:`m-badge`},V6=L({__name:`SharingPage`,props:{live:{type:Boolean},platforms:{},shares:{},notice:{}},setup(e){let t=e,n={connected:[`The account is connected.`,!1],denied:[`The network did not give permission, or it was cancelled.`,!0],failed:[`Connecting did not complete. Try again.`,!0],state:[`Connecting did not complete. Try again.`,!0]};fa(()=>{t.notice&&n[t.notice]&&$(Z(n[t.notice][0]),n[t.notice][1])});let r=e=>window.location.assign(`${Y.base}/sharing/${e}/connect`);async function i(e){window.confirm(Z(`Are you sure?`))&&(await X.delete(`${Y.base}/sharing/${e}`),$(Z(`The account is disconnected. What was shared stays where it is.`)),await xx())}return(e,n)=>(B(),V(z,null,[U(`h1`,T6,j(P(Z)(`Sharing`)),1),U(`p`,E6,j(t.live?P(Z)(`Posts are shared for real.`):P(Z)(`Dry run: nothing is sent to the networks. Turn on "Post for real" under Settings when the site is live.`)),1),U(`section`,D6,[(B(!0),V(z,null,R(t.platforms,e=>(B(),V(`div`,{key:e.platform,class:`flex flex-wrap items-center justify-between gap-3 p-4`},[U(`div`,null,[U(`p`,O6,j(e.label),1),U(`p`,k6,[e.connected?(B(),V(z,{key:0},[G(j(P(Z)(`Connected`))+j(e.account?` · `+e.account:``),1)],64)):e.can_connect?(B(),V(z,{key:1},[G(j(P(Z)(`Not connected`)),1)],64)):(B(),V(z,{key:2},[G(j(P(Z)(`Fill in under Settings:`))+` `+j(e.missing),1)],64))]),U(`p`,A6,[G(j(P(Z)(`Return address for the app`))+`: `,1),U(`code`,null,j(e.callback_url),1)])]),P(Y).permissions.includes(`sharing.manage`)?(B(),V(`div`,j6,[e.can_connect?(B(),V(`button`,{key:0,type:`button`,class:`m-btn m-btn-secondary`,onClick:t=>r(e.platform)},j(e.connected?P(Z)(`Connect again`):P(Z)(`Connect`)),9,M6)):K(``,!0),e.connected?(B(),V(`button`,{key:1,type:`button`,class:`m-btn m-btn-secondary`,onClick:t=>i(e.platform)},j(P(Z)(`Disconnect`)),9,N6)):K(``,!0)])):K(``,!0)]))),128))]),U(`h2`,P6,j(P(Z)(`Recently shared`)),1),t.shares.length?(B(),V(`ul`,I6,[(B(!0),V(z,null,R(t.shares,e=>(B(),V(`li`,{key:e.id,class:`flex items-center justify-between gap-3 p-4 text-sm`},[U(`div`,L6,[U(`p`,R6,j(e.post_title),1),U(`p`,z6,[G(j(e.platform)+` · `+j(e.at),1),e.error?(B(),V(z,{key:0},[G(` · `+j(e.error),1)],64)):K(``,!0)])]),U(`span`,B6,j(e.dry_run?P(Z)(`Dry run`):e.status===`shared`?P(Z)(`Shared`):P(Z)(`Failed`)),1)]))),128))])):(B(),V(`p`,F6,j(P(Z)(`Nothing has been shared yet.`)),1))],64))}}),H6={class:`font-display mb-2 text-2xl font-bold`},U6={class:`mb-6 text-sm text-muted`},W6={class:`grid gap-3 sm:grid-cols-3`},G6={class:`m-card p-4`},K6={class:`text-muted`},q6={class:`text-2xl font-bold`},J6={class:`text-sm text-muted`},Y6={class:`m-card p-4`},X6={class:`text-muted`},Z6={class:`text-2xl font-bold`},Q6={class:`text-sm text-muted`},$6={class:`m-card p-4`},eb={class:`text-muted`},tb={class:`text-2xl font-bold`},nb={key:0,class:`text-sm text-muted`},rb={class:`m-card mt-3 p-4`},ib={class:`flex justify-between`},ab={key:0,class:`flex justify-between text-muted`},ob={class:`mt-1 flex justify-between text-lg`},sb={key:0,class:`mt-2 text-sm text-muted`},cb={key:1,class:`mt-1 text-sm text-muted`},lb={key:2,class:`m-card mt-6 p-5 text-sm text-muted`},ub={class:`font-display text-lg font-bold`},db={key:0,class:`ml-2 text-sm font-normal text-muted`},fb={class:`float-right text-base`},pb={class:`mt-3 divide-y divide-line text-sm`},mb={class:`min-w-0`},hb={class:`text-muted`},gb={class:`shrink-0 text-muted`},_b={class:`mt-6 text-xs text-muted`},vb=L({__name:`CostsView`,props:{groups:{},costs:{},totals:{},source:{}},setup(e){let t=e=>e===null?`—`:new Intl.NumberFormat(void 0,{style:`currency`,currency:`EUR`}).format(e),n=e=>new Intl.NumberFormat().format(e);return(r,i)=>(B(),V(z,null,[U(`h1`,H6,j(P(Z)(`What it cost`)),1),U(`p`,U6,j(P(Z)(`What was built, and what it cost`)),1),U(`div`,W6,[U(`div`,G6,[U(`p`,K6,j(P(Z)(`The work`)),1),U(`p`,q6,j(t(e.costs.work_eur)),1),U(`p`,J6,j(P(Z)(`:hours hours at :rate an hour`,{hours:e.costs.hours,rate:t(e.costs.hourly_rate)})),1)]),U(`div`,Y6,[U(`p`,X6,j(P(Z)(`The AI model`)),1),U(`p`,Z6,j(t(e.costs.ai_eur)),1),U(`p`,Q6,j(P(Z)(`:count tokens`,{count:n(e.totals.tokens)})),1)]),U(`div`,$6,[U(`p`,eb,j(P(Z)(`Hosting`)),1),U(`p`,tb,j(t(e.costs.hosting.eur)),1),e.costs.hosting.from?(B(),V(`p`,nb,j(P(Z)(`:amount a year, from :day`,{amount:t(e.costs.hosting.per_year),day:e.costs.hosting.from})),1)):K(``,!0)])]),U(`div`,rb,[U(`p`,ib,[U(`span`,null,j(P(Z)(`Total`)),1),U(`b`,null,j(t(e.costs.total_eur)),1)]),e.costs.discount?(B(),V(`p`,ab,[U(`span`,null,j(P(Z)(`:percent% discount on the work, until :day`,{percent:e.costs.discount.percent,day:e.costs.discount.until})),1),U(`span`,null,`− `+j(t(e.costs.discount.eur)),1)])):K(``,!0),U(`p`,ob,[U(`span`,null,j(P(Z)(`To pay`)),1),U(`b`,null,j(t(e.costs.due_eur)),1)])]),e.costs.without_hours?(B(),V(`p`,sb,j(P(Z)(`:count pieces of work have no hours yet.`,{count:e.costs.without_hours})),1)):K(``,!0),e.totals.unpriced?(B(),V(`p`,cb,j(P(Z)(`:count pieces of work could not be priced yet.`,{count:e.totals.unpriced})),1)):K(``,!0),e.groups.length?K(``,!0):(B(),V(`p`,lb,j(P(Z)(`No work has been recorded yet.`)),1)),(B(!0),V(z,null,R(e.groups,e=>(B(),V(`section`,{key:e.version??`open`,class:`m-card mt-4 p-5`},[U(`h2`,ub,[G(j(e.version??P(Z)(`Not released yet`))+` `,1),e.date?(B(),V(`span`,db,j(e.date),1)):K(``,!0),U(`span`,fb,j(t(e.eur+e.work_eur)),1)]),U(`ul`,pb,[(B(!0),V(z,null,R(e.items,(e,n)=>(B(),V(`li`,{key:n,class:`flex items-baseline justify-between gap-3 py-2`},[U(`span`,mb,[U(`span`,hb,j(e.date),1),G(` `+j(e.name),1)]),U(`span`,gb,j(t((e.eur??0)+(e.work_eur??0))),1)]))),128))])]))),128)),U(`p`,_b,j(e.source===`config`?P(Z)(`Priced with the fixed rates of the site.`):e.source===`mixed`?P(Z)(`Priced with the price of each day, and for some rows with the fixed rates of the site.`):P(Z)(`Priced with the price list and the euro rate of the day of each row.`)),1)],64))}}),yb={class:`font-display mb-4 text-2xl font-bold`},bb=[`aria-label`],xb={class:`mb-3 text-lg font-bold`},Sb={key:0,class:`m-card mb-5 p-4 text-muted`},Cb={class:`grid grid-cols-2 gap-3`},wb={class:`m-card col-span-2 p-4`},Tb={class:`text-muted`},Eb={class:`text-4xl font-bold`},Db={key:0,class:`text-muted`},Ob={class:`text-muted`},kb={key:0,class:`m-card col-span-2 p-4`},Ab={class:`text-muted`},jb={class:`text-4xl font-bold`},Mb={key:0,class:`text-muted`},Nb={class:`m-card p-4`},Pb={class:`text-muted`},Fb={class:`text-3xl font-bold`},Ib={class:`m-card p-4`},Lb={class:`text-muted`},Rb={class:`text-3xl font-bold`},zb={key:1,class:`mt-8`},Bb={class:`mb-1 text-lg font-bold`},Vb={key:0,class:`mb-3 text-muted`},Hb={class:`m-card p-4`},Ub=[`aria-label`],Wb=[`title`],Gb={class:`mt-2 flex justify-between text-sm text-muted`},Kb={key:2,class:`mt-8`},qb={class:`mb-3 text-lg font-bold`},Jb={class:`m-card divide-y divide-line`},Yb={class:`flex items-baseline justify-between gap-3`},Xb={class:`min-w-0 break-words font-semibold`},Zb={class:`shrink-0 text-muted`},Qb={key:3,class:`mt-8`},$b={class:`mb-3 text-lg font-bold`},e8={class:`m-card divide-y divide-line`},t8={class:`flex items-baseline justify-between gap-3`},n8={class:`min-w-0 font-semibold`},r8={class:`shrink-0 text-muted`},i8={key:4,class:`mt-8`},a8={class:`mb-3 text-lg font-bold`},o8={class:`m-card divide-y divide-line`},s8={class:`min-w-0 font-semibold`},c8={class:`shrink-0 text-muted`},l8={key:5,class:`mt-8`},u8={class:`mb-3 text-lg font-bold`},d8={class:`m-card divide-y divide-line`},f8={class:`min-w-0 font-semibold`},p8={class:`shrink-0 text-muted`},m8={class:`mt-8 text-sm text-muted`},h8=L({__name:`NumbersView`,props:{period:{},periods:{},visitors:{},visitors_before:{},page_views:{},steps:{},pages:{},found:{},articles:{},contact:{},requests:{}},setup(e){let t=e,n=q(()=>{if(t.visitors_before===null)return``;let e=t.visitors-t.visitors_before;return e===0?Z(`The same as :period.`,{period:t.period.before}):Z(e>0?`:count more than :period.`:`:count fewer than :period.`,{count:Math.abs(e),period:t.period.before})}),r=q(()=>Math.max(1,...t.steps.map(e=>e.visitors))),i=q(()=>t.steps.reduce((e,t)=>e===null||t.visitors>e.visitors?t:e,null)),a=(e,t)=>`${Math.round(e/Math.max(1,...t)*100)}%`,o=q(()=>t.visitors===0&&(t.contact?.calls??0)===0&&(t.contact?.whatsapp??0)===0&&(t.requests?.count??0)===0);return(t,s)=>(B(),V(z,null,[U(`h1`,yb,j(P(Z)(`Numbers`)),1),U(`nav`,{class:`mb-5 flex flex-wrap gap-2`,"aria-label":P(Z)(`Period`)},[(B(!0),V(z,null,R(e.periods,t=>(B(),H(ld,{key:t.key,href:`${P(Y).base}/numbers?range=${t.key}`,class:A([`m-btn`,t.key===e.period.key?`m-btn-primary`:`m-btn-secondary`]),"aria-current":t.key===e.period.key?`true`:void 0},{default:F(()=>[G(j(t.button),1)]),_:2},1032,[`href`,`class`,`aria-current`]))),128))],8,bb),U(`h2`,xb,j(e.period.label),1),o.value?(B(),V(`p`,Sb,j(P(Z)(`Nothing has been counted in this period yet. As soon as people visit the site, you will see it here.`)),1)):K(``,!0),U(`div`,Cb,[U(`div`,wb,[U(`p`,Tb,j(P(Z)(`Visitors`)),1),U(`p`,Eb,j(e.visitors),1),n.value?(B(),V(`p`,Db,j(n.value),1)):K(``,!0),U(`p`,Ob,j(P(Z)(`Together they looked at :count pages.`,{count:e.page_views})),1)]),e.requests?(B(),V(`div`,kb,[U(`p`,Ab,j(P(Z)(`Requests through the site`)),1),U(`p`,jb,j(e.requests.count),1),e.requests.count?(B(),V(`p`,Mb,[e.requests.won?(B(),V(z,{key:0},[G(j(P(Z)(`:count became a job.`,{count:e.requests.won})),1)],64)):K(``,!0),e.requests.waiting?(B(),V(z,{key:1},[G(j(P(Z)(`:count still wait for an answer.`,{count:e.requests.waiting})),1)],64)):K(``,!0)])):K(``,!0),e.requests.waiting?(B(),H(ld,{key:1,href:`${P(Y).base}/leads`,class:`m-btn m-btn-secondary mt-3`},{default:F(()=>[G(j(P(Z)(`To the requests`)),1)]),_:1},8,[`href`])):K(``,!0)])):K(``,!0),e.contact?(B(),V(z,{key:1},[U(`div`,Nb,[U(`p`,Pb,j(P(Z)(`Taps on Call`)),1),U(`p`,Fb,j(e.contact.calls),1)]),U(`div`,Ib,[U(`p`,Lb,j(P(Z)(`Taps on WhatsApp`)),1),U(`p`,Rb,j(e.contact.whatsapp),1)])],64)):K(``,!0)]),e.visitors>0?(B(),V(`section`,zb,[U(`h2`,Bb,j(e.period.key===`12m`?P(Z)(`Visitors per month`):P(Z)(`Visitors per day`)),1),i.value&&i.value.visitors>0?(B(),V(`p`,Vb,j(P(Z)(`Busiest: :when, with :count visitors.`,{when:i.value.label,count:i.value.visitors})),1)):K(``,!0),U(`div`,Hb,[U(`div`,{class:`flex h-36 items-end gap-px`,role:`img`,"aria-label":P(Z)(`Visitors`)},[(B(!0),V(z,null,R(e.steps,(e,t)=>(B(),V(`div`,{key:t,class:`min-w-0 flex-1 rounded-t bg-brand`,style:k({height:e.visitors>0?`${Math.max(4,Math.round(e.visitors/r.value*100))}%`:`2px`,opacity:e.visitors>0?1:.35}),title:`${e.label}: ${e.visitors}`},null,12,Wb))),128))],8,Ub),U(`div`,Gb,[U(`span`,null,j(e.steps[0]?.label),1),U(`span`,null,j(e.steps[e.steps.length-1]?.label),1)])])])):K(``,!0),e.pages.length?(B(),V(`section`,Kb,[U(`h2`,qb,j(P(Z)(`Most viewed pages`)),1),U(`ul`,Jb,[(B(!0),V(z,null,R(e.pages,t=>(B(),V(`li`,{key:t.path,class:`p-4`},[U(`div`,Yb,[U(`span`,Xb,j(t.name),1),U(`span`,Zb,j(P(Z)(`:count times`,{count:t.views})),1)]),U(`div`,{class:`mt-2 h-1.5 rounded-full bg-brand`,style:k({width:a(t.views,e.pages.map(e=>e.views))}),"aria-hidden":`true`},null,4)]))),128))])])):K(``,!0),e.found.length?(B(),V(`section`,Qb,[U(`h2`,$b,j(P(Z)(`How people find you`)),1),U(`ul`,e8,[(B(!0),V(z,null,R(e.found,t=>(B(),V(`li`,{key:t.name,class:`p-4`},[U(`div`,t8,[U(`span`,n8,j(t.name),1),U(`span`,r8,j(P(Z)(`:count times`,{count:t.visits})),1)]),U(`div`,{class:`mt-2 h-1.5 rounded-full bg-brand`,style:k({width:a(t.visits,e.found.map(e=>e.visits))}),"aria-hidden":`true`},null,4)]))),128))])])):K(``,!0),e.requests&&e.requests.subjects.length?(B(),V(`section`,i8,[U(`h2`,a8,j(P(Z)(`What the requests were about`)),1),U(`ul`,o8,[(B(!0),V(z,null,R(e.requests.subjects,e=>(B(),V(`li`,{key:e.name,class:`flex items-baseline justify-between gap-3 p-4`},[U(`span`,s8,j(e.name),1),U(`span`,c8,j(e.count),1)]))),128))])])):K(``,!0),e.articles.length?(B(),V(`section`,l8,[U(`h2`,u8,j(P(Z)(`Most read articles`)),1),U(`ul`,d8,[(B(!0),V(z,null,R(e.articles,e=>(B(),V(`li`,{key:e.title,class:`flex items-baseline justify-between gap-3 p-4`},[U(`span`,f8,j(e.title),1),U(`span`,p8,j(P(Z)(`:count times`,{count:e.views})),1)]))),128))])])):K(``,!0),U(`p`,m8,[e.requests&&e.requests.kept_away?(B(),V(z,{key:0},[G(j(P(Z)(`:count messages of spam or advertising were kept away from you.`,{count:e.requests.kept_away})),1)],64)):K(``,!0),G(` `+j(P(Z)(`Visitors are counted without cookies. Search robots, and you yourself when you are logged in, are not counted.`)),1)])],64))}}),g8={class:`mb-6 flex items-center justify-between gap-3`},_8={class:`font-display text-2xl font-bold`},v8={class:`flex gap-2`},y8={key:0,class:`m-card p-5 text-sm text-muted`},b8={key:1,class:`m-card overflow-x-auto`},x8={class:`w-full text-left text-sm`},S8={class:`border-b border-line text-xs uppercase tracking-wide text-muted`},C8={key:0,class:`px-4 py-3`},w8={class:`divide-y divide-line`},T8={key:0,class:`flex justify-end gap-2 px-4 py-2`},E8=[`onClick`],D8={key:2,class:`mt-4 flex gap-2`},O8=L({__name:`RecordsIndex`,props:{resource:{},rows:{},current_page:{},last_page:{}},setup(e){let t=e,n=`${Y.base}/records/${t.resource.key}`,r=e=>{let n=t.resource.fields.find(t=>t.key===e);return n?Up(n.label,n.simple_label):e};function i(e,n){let r=e.values[n],i=t.resource.fields.find(e=>e.key===n);return i?.type===`toggle`?r?`✓`:``:i?.type===`select`?i.options[r]??r:String(r??``)}async function a(e){window.confirm(Z(`Are you sure?`))&&(await X.delete(`${n}/${e.id}`),await xx())}return(t,o)=>(B(),V(z,null,[U(`div`,g8,[U(`h1`,_8,j(P(Z)(P(Up)(e.resource.label,e.resource.simple_label))),1),U(`div`,v8,[e.resource.can_manage&&e.resource.has_template?(B(),H(ld,{key:0,href:n+`/template`,class:`m-btn m-btn-secondary`},{default:F(()=>[G(j(P(Z)(`Page layout`)),1)]),_:1},8,[`href`])):K(``,!0),e.resource.can_manage?(B(),H(ld,{key:1,href:n+`/create`,class:`m-btn m-btn-primary`},{default:F(()=>[G(j(P(Z)(`Add`)),1)]),_:1},8,[`href`])):K(``,!0)])]),e.rows.length?(B(),V(`div`,b8,[U(`table`,x8,[U(`thead`,S8,[U(`tr`,null,[(B(!0),V(z,null,R(e.resource.columns,e=>(B(),V(`th`,{key:e,class:`px-4 py-3 font-semibold`},j(P(Z)(r(e))),1))),128)),e.resource.can_manage?(B(),V(`th`,C8)):K(``,!0)])]),U(`tbody`,w8,[(B(!0),V(z,null,R(e.rows,t=>(B(),V(`tr`,{key:t.id},[(B(!0),V(z,null,R(e.resource.columns,e=>(B(),V(`td`,{key:e,class:`max-w-xs truncate px-4 py-3`},j(i(t,e)),1))),128)),e.resource.can_manage?(B(),V(`td`,T8,[W(ld,{href:`${n}/${t.id}/edit`,class:`m-btn m-btn-secondary`},{default:F(()=>[G(j(P(Z)(`Edit`)),1)]),_:1},8,[`href`]),U(`button`,{type:`button`,class:`m-btn m-btn-danger`,onClick:e=>a(t)},j(P(Z)(`Delete`)),9,E8)])):K(``,!0)]))),128))])])])):(B(),V(`p`,y8,j(P(Z)(`Nothing here yet.`)),1)),e.last_page>1?(B(),V(`nav`,D8,[e.current_page>1?(B(),H(ld,{key:0,href:`${n}?page=${e.current_page-1}`,class:`m-btn m-btn-secondary`},{default:F(()=>[G(j(P(Z)(`Previous`)),1)]),_:1},8,[`href`])):K(``,!0),e.current_page<e.last_page?(B(),H(ld,{key:1,href:`${n}?page=${e.current_page+1}`,class:`m-btn m-btn-secondary`},{default:F(()=>[G(j(P(Z)(`Next`)),1)]),_:1},8,[`href`])):K(``,!0)])):K(``,!0)],64))}}),k8=[`aria-label`],A8={class:`flex flex-wrap items-center justify-between gap-2`},j8={class:`font-display text-lg font-bold`},M8={class:`flex flex-wrap items-center gap-2`},N8=[`aria-label`],P8=[`aria-pressed`,`onClick`],F8=[`href`],I8={key:0,class:`m-error`,role:`alert`},L8={class:`overflow-auto rounded border border-line bg-white`,style:{height:`70vh`}},R8=[`src`,`title`],z8={key:1,class:`p-4 text-sm text-muted`},B8=L({__name:`PagePreview`,props:{slug:{},blocks:{}},setup(e){let t=e,n=[{key:`phone`,label:`Phone`,width:`390px`},{key:`tablet`,label:`Tablet`,width:`768px`},{key:`desktop`,label:`Desktop`,width:`100%`}],r=N(`desktop`),i=N(``),a=N(!1),o,s=0,c=()=>n.find(e=>e.key===r.value).width;async function l(){let e=++s;try{let n=t.blocks.map(({_key:e,...t})=>t),r=await X.post(`${Y.base}/pages/${t.slug}/preview`,{blocks:n});e===s&&(i.value=r.url,a.value=!1)}catch{a.value=!0}}return Vr(()=>t.blocks,()=>{clearTimeout(o),o=setTimeout(()=>void l(),700)},{deep:!0}),fa(()=>void l()),ha(()=>clearTimeout(o)),(e,t)=>(B(),V(`aside`,{class:`m-card space-y-3 p-3`,"aria-label":P(Z)(`Preview of the page`)},[U(`div`,A8,[U(`h2`,j8,j(P(Z)(`Preview`)),1),U(`div`,M8,[U(`div`,{class:`flex gap-1`,role:`group`,"aria-label":P(Z)(`Width of the preview`)},[(B(),V(z,null,R(n,e=>U(`button`,{key:e.key,type:`button`,class:`m-btn m-btn-secondary`,"aria-pressed":r.value===e.key,onClick:t=>r.value=e.key},j(P(Z)(e.label)),9,P8)),64))],8,N8),i.value?(B(),V(`a`,{key:0,href:i.value,target:`_blank`,rel:`noopener`,class:`m-btn m-btn-secondary`},j(P(Z)(`Open the preview in a new tab`)),9,F8)):K(``,!0)])]),a.value?(B(),V(`p`,I8,j(P(Z)(`The preview could not be made.`)),1)):K(``,!0),U(`div`,L8,[i.value?(B(),V(`iframe`,{key:0,src:i.value,title:P(Z)(`Preview of the page`),class:`mx-auto block h-full border-0`,style:k({width:c(),maxWidth:`100%`})},null,12,R8)):(B(),V(`p`,z8,j(P(Z)(`Making the preview…`)),1))])],8,k8))}}),V8={class:`mb-6 flex items-center justify-between gap-3`},H8={class:`font-display text-2xl font-bold`},U8={class:`flex gap-2`},W8=[`href`],G8={for:`title`,class:`m-label`},K8={key:0,class:`m-error`},q8={for:`meta`,class:`m-label`},J8={key:0,class:`m-error`},Y8={for:`body`,class:`m-label`},X8={key:0,class:`m-error`},Z8={class:`flex items-center gap-2 text-sm`},Q8={class:`flex gap-3`},$8=[`disabled`],ex={key:0,class:`xl:sticky xl:top-4`},tx=L({__name:`PageForm`,props:{page:{}},setup(e){let t=e.page,n=nd({title:t.title,meta_description:t.meta_description??``,...t.defined?{content:{...t.content}}:{body:t.body??``,is_published:t.is_published??!1},...t.blocks&&t.block_types?{blocks:t.blocks.map(C4)}:{}});async function r(){await n.send(`put`,`${Y.base}/pages/${t.slug}`)&&$(Z(`Saved.`))}async function i(){window.confirm(Z(`Are you sure?`))&&(await X.delete(`${Y.base}/pages/${t.slug}`),bx(`${Y.base}/pages`))}return(e,a)=>(B(),V(z,null,[U(`div`,V8,[U(`h1`,H8,j(P(Up)(P(t).title,P(t).simple_title)),1),U(`div`,U8,[P(t).view_url?(B(),V(`a`,{key:0,href:P(t).view_url,target:`_blank`,rel:`noopener`,class:`m-btn m-btn-secondary`},j(P(Z)(`View the page`)),9,W8)):K(``,!0),W(ld,{href:P(Y).base+`/pages`,class:`m-btn m-btn-secondary`},{default:F(()=>[G(j(P(Z)(`Back`)),1)]),_:1},8,[`href`])])]),U(`div`,{class:A(P(t).preview&&P(n).values.blocks?`grid items-start gap-6 xl:grid-cols-2`:``)},[U(`form`,{class:A([`m-card space-y-5 p-5`,P(t).preview&&P(n).values.blocks?``:`max-w-3xl`]),onSubmit:Pu(r,[`prevent`])},[U(`div`,null,[U(`label`,G8,j(P(Z)(`Title`)),1),I(U(`input`,{id:`title`,"onUpdate:modelValue":a[0]||=e=>P(n).values.title=e,required:``,maxlength:`255`,class:`m-input`},null,512),[[J,P(n).values.title]]),P(n).errors.title?(B(),V(`p`,K8,j(P(n).errors.title),1)):K(``,!0)]),U(`div`,null,[U(`label`,q8,j(P(Z)(`Description for search engines`)),1),I(U(`input`,{id:`meta`,"onUpdate:modelValue":a[1]||=e=>P(n).values.meta_description=e,maxlength:`255`,class:`m-input`},null,512),[[J,P(n).values.meta_description]]),P(n).errors.meta_description?(B(),V(`p`,J8,j(P(n).errors.meta_description),1)):K(``,!0)]),P(t).defined?(B(),H(z2,{key:0,fields:P(t).fields,values:P(n).values.content,errors:P(n).errors,prefix:`content.`},null,8,[`fields`,`values`,`errors`])):(B(),V(z,{key:1},[U(`div`,null,[U(`label`,Y8,j(P(Z)(`Text (Markdown)`)),1),W(xm,{id:`body`,modelValue:P(n).values.body,"onUpdate:modelValue":a[2]||=e=>P(n).values.body=e},null,8,[`modelValue`]),P(n).errors.body?(B(),V(`p`,X8,j(P(n).errors.body),1)):K(``,!0)]),U(`label`,Z8,[I(U(`input`,{"onUpdate:modelValue":a[3]||=e=>P(n).values.is_published=e,type:`checkbox`},null,512),[[bu,P(n).values.is_published]]),G(` `+j(P(Z)(`Publish`)),1)])],64)),P(t).blocks&&P(t).block_types?(B(),H(w4,{key:2,modelValue:P(n).values.blocks,"onUpdate:modelValue":a[4]||=e=>P(n).values.blocks=e,types:P(t).block_types,errors:P(n).errors,layout:P(t).can_layout!==!1},null,8,[`modelValue`,`types`,`errors`,`layout`])):K(``,!0),U(`div`,Q8,[U(`button`,{type:`submit`,class:`m-btn m-btn-primary`,disabled:P(n).busy},j(P(n).busy?P(Z)(`Saving…`):P(Z)(`Save`)),9,$8),P(t).defined?K(``,!0):(B(),V(`button`,{key:0,type:`button`,class:`m-btn m-btn-danger`,onClick:i},j(P(Z)(`Delete`)),1))])],34),P(t).preview&&P(n).values.blocks?(B(),V(`div`,ex,[W(B8,{slug:P(t).slug,blocks:P(n).values.blocks},null,8,[`slug`,`blocks`])])):K(``,!0)],2),P(t).id&&P(Y).permissions.includes(`revisions.view`)?(B(),H(Lm,{key:0,type:`pages`,id:P(t).id},null,8,[`id`])):K(``,!0)],64))}}),nx={class:`font-display mb-6 text-2xl font-bold`},rx={class:`m-card divide-y divide-line`},ix={class:`min-w-0`},ax={class:`truncate font-semibold`},ox={class:`truncate text-xs text-muted`},sx={class:`flex items-center gap-2`},cx={key:0,class:`m-badge`},lx={key:0,class:`p-4 text-sm text-muted`},ux={for:`new-title`,class:`m-label`},dx={key:0,class:`m-error`},fx={for:`new-slug`,class:`m-label`},px={key:0,class:`m-error`},mx=[`disabled`],hx=[{pattern:/^\/?$/,component:jd,data:!0},{pattern:/^\/login$/,component:$d,guest:!0},{pattern:/^\/profile$/,component:O_,data:!0},{pattern:/^\/posts$/,component:Nh,data:!0},{pattern:/^\/posts\/create$/,component:bh,data:!0},{pattern:/^\/posts\/\d+\/edit$/,component:bh,data:!0},{pattern:/^\/media$/,component:N0,data:!0,source:`/media/items`},{pattern:/^\/audit$/,component:Pv,data:!0},{pattern:/^\/settings$/,component:iy,data:!0},{pattern:/^\/leads$/,component:K3,data:!0},{pattern:/^\/updates$/,component:w6,data:!0},{pattern:/^\/system$/,component:h6,data:!0},{pattern:/^\/sharing$/,component:V6,data:!0},{pattern:/^\/costs$/,component:vb,data:!0},{pattern:/^\/numbers$/,component:h8,data:!0},{pattern:/^\/statistics$/,component:Xy,data:!0},{pattern:/^\/accounts$/,component:m1,data:!0},{pattern:/^\/groups$/,component:V1,data:!0},{pattern:/^\/labels$/,component:t0,data:!0},{pattern:/^\/pages$/,component:L({__name:`PagesIndex`,props:{pages:{}},setup(e){let t=nd({slug:``,title:``});async function n(){await t.send(`post`,`${Y.base}/pages`)&&bx(`${Y.base}/pages/${t.values.slug}`)}return(r,i)=>(B(),V(z,null,[U(`h1`,nx,j(P(Z)(`Pages`)),1),U(`ul`,rx,[(B(!0),V(z,null,R(e.pages,e=>(B(),V(`li`,{key:e.slug,class:`flex items-center justify-between gap-3 p-4`},[U(`div`,ix,[U(`p`,ax,j(P(Up)(e.title,e.simple_title)),1),U(`p`,ox,`/`+j(e.slug),1)]),U(`div`,sx,[e.defined?K(``,!0):(B(),V(`span`,cx,j(e.is_published?P(Z)(`Published`):P(Z)(`Draft`)),1)),W(ld,{href:`${P(Y).base}/pages/${e.slug}`,class:`m-btn m-btn-secondary`},{default:F(()=>[G(j(P(Z)(`Edit`)),1)]),_:1},8,[`href`])])]))),128)),e.pages.length?K(``,!0):(B(),V(`li`,lx,j(P(Z)(`Nothing here yet.`)),1))]),U(`form`,{class:`m-card mt-6 grid max-w-3xl gap-4 p-5 sm:grid-cols-[1fr_1fr_auto] sm:items-end`,onSubmit:Pu(n,[`prevent`])},[U(`div`,null,[U(`label`,ux,j(P(Z)(`Title`)),1),I(U(`input`,{id:`new-title`,"onUpdate:modelValue":i[0]||=e=>P(t).values.title=e,required:``,maxlength:`255`,class:`m-input`},null,512),[[J,P(t).values.title]]),P(t).errors.title?(B(),V(`p`,dx,j(P(t).errors.title),1)):K(``,!0)]),U(`div`,null,[U(`label`,fx,j(P(Z)(`Address (slug)`)),1),I(U(`input`,{id:`new-slug`,"onUpdate:modelValue":i[1]||=e=>P(t).values.slug=e,required:``,maxlength:`120`,class:`m-input`},null,512),[[J,P(t).values.slug]]),P(t).errors.slug?(B(),V(`p`,px,j(P(t).errors.slug),1)):K(``,!0)]),U(`button`,{type:`submit`,class:`m-btn m-btn-primary`,disabled:P(t).busy},j(P(Z)(`New page`)),9,mx)],32)],64))}}),data:!0},{pattern:/^\/pages\/[a-z0-9]+(?:-[a-z0-9]+)*$/,component:tx,data:!0},{pattern:/^\/records\/[a-z][a-z0-9_]*$/,component:O8,data:!0},{pattern:/^\/records\/[a-z][a-z0-9_]*\/template$/,component:A4,data:!0},{pattern:/^\/records\/[a-z][a-z0-9_]*\/(create|\d+\/edit)$/,component:P4,data:!0},{pattern:/^\/reviews$/,component:a2,data:!0}];function gx(e,t,n={}){hx.unshift({pattern:new RegExp(e),component:t,data:n.data,source:n.source})}var Q=dn({path:``,component:null,props:{},loading:!0,forbidden:!1,tour:Y.tutorial,menu:!1,tourHref:null,toast:null}),_x;function $(e,t=!1){Q.toast={text:e,error:t},window.clearTimeout(_x),_x=window.setTimeout(()=>Q.toast=null,4e3)}function vx(e){return e.split(`?`)[0].slice(Y.base.length)||`/`}async function yx(e){let t=hx.find(t=>t.pattern.test(vx(e)));if(!Y.user&&!t?.guest)window.location.assign(Y.base+`/login`);else{if(Y.user&&t?.guest)return bx(Y.base,!0);Q.loading=!0,Q.forbidden=!1,Q.path=e,Q.component=t?.component??Pd,Q.props={};try{Q.props=t?.data?await X.get(t.source?Y.base+t.source:e):{}}catch(e){e instanceof Qu&&e.status===401?window.location.assign(Y.base+`/login`):e instanceof Qu&&e.status===403?Q.forbidden=!0:$(Z(`Something went wrong. Try again.`),!0)}finally{Q.loading=!1}}}function bx(e,t=!1){return window.history[t?`replaceState`:`pushState`]({},``,e),window.scrollTo(0,0),yx(e)}function xx(){return yx(Q.path)}function Sx(){window.addEventListener(`popstate`,()=>yx(window.location.pathname+window.location.search));let e=window.location.pathname.replace(/\/+$/,``);Y.user&&Y.start&&e===Y.base&&!window.sessionStorage.getItem(`manager-start`)?(window.sessionStorage.setItem(`manager-start`,`1`),bx(Y.start,!0)):yx(window.location.pathname+window.location.search)}var Cx=L({__name:`MediaEditHost`,setup(e){return(e,t)=>P(zp).ask?(B(),H(P(Rp),{key:P(zp).ask.file.name+P(zp).ask.file.size+P(zp).ask.file.lastModified,file:P(zp).ask.file,remaining:P(zp).ask.remaining,onApply:t[0]||=e=>P(zp).ask.done({file:e.file,focus:e.focus,edited:!0}),onOriginal:t[1]||=e=>P(zp).ask.done(`original`),onOriginalAll:t[2]||=e=>P(zp).ask.done(`all`),onCancel:t[3]||=e=>P(zp).ask.done(`cancel`)},null,8,[`file`,`remaining`])):K(``,!0)}}),wx=[`aria-label`],Tx={key:0,class:`absolute inset-0 bg-black/60`},Ex=[`aria-label`],Dx={class:`flex items-start gap-3`},Ox={class:`m-bob m-glow -ml-1 shrink-0 rounded-full`},kx={class:`min-w-0 pr-6`,"aria-live":`polite`},Ax={class:`font-display text-lg font-bold leading-snug`},jx={class:`mt-1.5 text-sm leading-relaxed text-muted`},Mx={class:`mt-4 flex items-center justify-between gap-2`},Nx={class:`flex gap-1`,"aria-hidden":`true`},Px={class:`text-xs text-muted`},Fx={class:`mt-4 flex flex-wrap items-center gap-2`},Ix=L({__name:`Tutorial`,setup(e){let t=e=>new Promise(t=>setTimeout(t,e)),n=(Y.user?.name??``).split(` `)[0],r=e=>Y.navigation.some(t=>t.href.endsWith(e)),i=()=>window.matchMedia(`(min-width: 768px)`).matches;function a(e){if(!(e instanceof HTMLElement))return null;let t=e.getBoundingClientRect();return t.width>0&&t.height>0&&t.left>=0&&t.right<=window.innerWidth&&t.top>=0&&t.bottom<=window.innerHeight?e:null}let o=e=>()=>a(document.querySelector(`nav[aria-label="Manager"] a[href$="${e}"]`)),s=e=>({href:e,menu:!0,target:o(e)});function c(){let e=[{id:`welcome`,image:`welcome`,title:Z(`Hi :name! Welcome!`,{name:n}),text:Z(`I will show you around in a few small steps. Looking around cannot break anything, and you can stop whenever you like: press the cross.`)},{id:`menu`,image:`point`,title:Z(`This is the menu`),text:Z(`Everything you can do lives here. Press a name and you are there.`),menu:!0,target:()=>a(document.querySelector(`nav[aria-label="Manager"]`))},{id:`start`,image:`calm`,title:Z(`Your start page`),text:Z(`Lost? Press Dashboard, at the top of the menu, and you are back here. Nice and calm.`),...s(Y.base)}];r(`/posts`)&&e.push({id:`posts`,image:`write`,title:Z(`Write news`),text:Z(`Here you write articles and news for your website. Keep it as a draft until you are happy, then put it online.`),...s(`/posts`)}),r(`/media`)&&e.push({id:`media`,image:`photos`,title:Z(`Your photos`),text:Z(`All photos and files live here. Upload them once and use them in posts and pages.`),...s(`/media`)}),r(`/pages`)&&e.push({id:`pages`,image:`pages`,title:Z(`Your pages`),text:Z(`Change the texts and photos of the pages of your website here.`),...s(`/pages`)});for(let[t,n]of(Y.tutorial_steps??[]).entries())e.push({id:`module-`+t,image:n.image??`point`,title:Z(n.title),text:Z(n.text),...n.href?s(n.href):{}});return Y.permissions.includes(`revisions.view`)&&(r(`/posts`)||r(`/pages`))&&e.push({id:`undo`,image:`undo`,title:Z(`Changed your mind?`),text:Z(`Every time you save a post or a page I keep the old version. You can always put an earlier one back.`)}),e.push({id:`oops`,image:`oops`,title:Z(`Something went wrong?`),text:Z(`A message tells you what. Read it, fix it and try again. Nothing is deleted without asking you first.`)}),e.push({id:`profile`,image:`profile`,title:Z(`Your own corner`),text:Z(`Here you choose your language and your colours, and change your password.`),menu:!0,target:()=>a(document.querySelector(`a[href="${Y.base}/profile"]`))}),e.push({id:`party`,image:`party`,title:Z(`That is it!`),text:Z(`Want to see this again? Press Show the tour in the menu. Have fun!`)}),e}let l=c(),u=N(0),d=q(()=>l[u.value]),f=q(()=>u.value===l.length-1),p=N(null),m=N(null),h=N(null),g=N(null),_=N(!1),v=N(!1);async function y(){let e=!i();e&&Q.menu!==!!d.value.menu&&(Q.menu=!!d.value.menu,await t(280)),Q.tourHref=d.value.href??null,await fr();let n=d.value.target?.()??null;if(!n){h.value=null,g.value=null,_.value=!1,v.value=!1,m.value?.focus();return}n.scrollIntoView({block:`center`,behavior:`instant`});let r=n.getBoundingClientRect(),a=p.value?.offsetHeight??320,o=p.value?.offsetWidth??380;if(h.value={top:r.top-6,left:r.left-6,width:r.width+12,height:r.height+12},e){g.value=null,_.value=!1,v.value=r.top+r.height/2>window.innerHeight/2,m.value?.focus();return}v.value=!1;let s=r.right+28;g.value={left:s+o<window.innerWidth?s:Math.max(16,r.left-o-28),top:Math.min(Math.max(16,r.top+r.height/2-a/2),window.innerHeight-a-16)},_.value=g.value.left<r.left,m.value?.focus()}function b(e){Q.tour=!1,Q.menu=!1,Q.tourHref=null,Y.tutorial=!1,X.put(Y.base+`/profile/tutorial`,{state:e?`done`:`skipped`}).catch(()=>void 0)}function x(e){let t=u.value+e;if(t>=l.length)return b(!0);u.value=Math.max(0,t),y()}function S(e){e.key===`Escape`?b(!1):e.key===`ArrowRight`?x(1):e.key===`ArrowLeft`&&u.value>0&&x(-1)}return fa(()=>{window.addEventListener(`keydown`,S),window.addEventListener(`resize`,y),y()}),ha(()=>{window.removeEventListener(`keydown`,S),window.removeEventListener(`resize`,y)}),(e,t)=>(B(),V(`div`,{class:`fixed inset-0 z-50`,role:`dialog`,"aria-modal":`true`,"aria-label":P(Z)(`Tour`)},[h.value?(B(),V(`div`,{key:1,class:`m-spot pointer-events-none absolute rounded-xl`,style:k({top:h.value.top+`px`,left:h.value.left+`px`,width:h.value.width+`px`,height:h.value.height+`px`})},null,4)):(B(),V(`div`,Tx)),U(`div`,{ref_key:`card`,ref:p,class:A([`m-card absolute w-[min(24rem,calc(100vw-2rem))] p-5 shadow-2xl`,g.value?``:[v.value?`top-4`:`bottom-4 md:bottom-auto`,`left-1/2 -translate-x-1/2 md:top-1/2 md:-translate-y-1/2`]]),style:k(g.value?{top:g.value.top+`px`,left:g.value.left+`px`}:void 0)},[U(`button`,{type:`button`,class:`absolute right-3 top-3 rounded-lg p-1.5 text-muted hover:bg-text/10 hover:text-text`,"aria-label":P(Z)(`Stop the tour`),onClick:t[0]||=e=>b(!1)},[...t[4]||=[U(`svg`,{class:`h-5 w-5`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"aria-hidden":`true`},[U(`path`,{d:`M6 6l12 12M18 6L6 18`})],-1)]],8,Ex),U(`div`,Dx,[U(`div`,Ox,[(B(),H(Fh,{key:d.value.image,name:d.value.image,flip:_.value,size:128},null,8,[`name`,`flip`]))]),U(`div`,kx,[U(`h2`,Ax,j(d.value.title),1),U(`p`,jx,j(d.value.text),1)])]),U(`div`,Mx,[U(`span`,Nx,[(B(!0),V(z,null,R(P(l),(e,t)=>(B(),V(`span`,{key:t,class:A([`h-1.5 w-1.5 rounded-full`,t===u.value?`bg-brand`:`bg-line`])},null,2))),128))]),U(`span`,Px,j(u.value+1)+` / `+j(P(l).length),1)]),U(`div`,Fx,[U(`button`,{type:`button`,class:`text-sm text-muted underline hover:text-text`,onClick:t[1]||=e=>b(!1)},j(P(Z)(`Stop the tour`)),1),t[5]||=U(`span`,{class:`flex-1`},null,-1),u.value>0?(B(),V(`button`,{key:0,type:`button`,class:`m-btn m-btn-secondary`,onClick:t[2]||=e=>x(-1)},j(P(Z)(`Back`)),1)):K(``,!0),U(`button`,{ref_key:`next`,ref:m,type:`button`,class:`m-btn m-btn-primary`,onClick:t[3]||=e=>x(1)},j(f.value?P(Z)(`Done`):P(Z)(`Next`)),513)])],6)],8,wx))}}),Lx={class:`min-h-screen`},Rx={class:`fixed inset-x-0 top-0 z-40 flex h-14 items-center justify-between border-b border-line bg-panel px-4 md:hidden`},zx={class:`font-display font-bold`},Bx=[`aria-expanded`],Vx={class:`hidden h-16 items-center gap-2 px-5 md:flex`},Hx=[`src`],Ux={class:`font-display text-lg font-bold`},Wx={class:`flex-1 space-y-0.5 overflow-y-auto px-3 py-3`,"aria-label":`Manager`},Gx=[`href`],Kx=[`aria-expanded`,`onClick`],qx={class:`space-y-0.5 pb-1`},Jx=[`href`],Yx={class:`border-t border-line p-4`},Xx={class:`truncate text-sm font-semibold group-hover:text-brand`},Zx={class:`truncate text-xs text-muted`},Qx={key:0,class:`truncate text-xs text-muted`},$x={class:`mt-3 text-center text-xs text-muted`},e5={class:`px-4 pb-16 pt-20 md:ml-60 md:px-8 md:pt-8`},t5={class:`mx-auto max-w-5xl`},n5={key:0,class:`mb-5 rounded-lg border border-l-4 border-line border-l-amber-500 bg-panel px-4 py-3 text-sm`,role:`status`},r5=L({__name:`Layout`,setup(e){let t=[`Content`,`Your website`,`Lists`,`What you offer`,`Visitors`,`Your visitors`,`Administration`,`Who may do what`,`Project`,`The project`,`Iriks-IT`],n=e=>t.includes(e)?t.indexOf(e):t.length,r=q(()=>{let e=[{label:`Dashboard`,href:Y.base,icon:`home`}],r=new Map;for(let t of Y.navigation){let n=t.section??``;n===``?e.push(t):r.set(n,[...r.get(n)??[],t])}let i=[...r.keys()],a=e=>t.find(t=>Z(t)===e)??e;return i.sort((e,t)=>n(a(e))-n(a(t))),{loose:e,sections:i.map(e=>({title:e,items:r.get(e)??[]}))}}),i=Y.view===`simple`?`manager.menu.open.simple`:`manager.menu.open`,a=localStorage.getItem(i),o=N(a===null?Y.view===`simple`?r.value.sections.map(e=>e.title):[]:JSON.parse(a));function s(e){return e.some(e=>!e.new_tab&&p(e.href))}function c(e){return Q.tourHref!==null&&e.some(e=>e.href.endsWith(Q.tourHref))}function l(e){return o.value.includes(e.title)||s(e.items)||c(e.items)}function u(e){o.value=l(e)?o.value.filter(t=>t!==e.title):[...o.value,e.title],localStorage.setItem(i,JSON.stringify(o.value))}let d=N(Y.view);async function f(){await X.put(Y.base+`/profile/view`,{view:d.value===`simple`?`full`:`simple`}),window.location.assign(Y.base)}function p(e){let t=Q.path.split(`?`)[0];return e===Y.base?t===e:t===e||t.startsWith(e+`/`)}async function m(){let{redirect:e}=await X.post(Y.base+`/logout`);window.location.assign(e)}return Vr(()=>Q.path,()=>Q.menu=!1),(e,t)=>(B(),V(`div`,Lx,[U(`header`,Rx,[U(`span`,zx,j(P(Y).name),1),U(`button`,{type:`button`,class:`m-btn m-btn-secondary`,"aria-expanded":P(Q).menu,onClick:t[0]||=e=>P(Q).menu=!P(Q).menu},j(P(Z)(`Menu`)),9,Bx)]),U(`aside`,{class:A([`fixed inset-y-0 left-0 z-30 flex w-60 flex-col border-r border-line bg-panel pt-14 transition-transform md:translate-x-0 md:pt-0`,P(Q).menu?`translate-x-0`:`-translate-x-full`])},[U(`div`,Vx,[P(Y).logo?(B(),V(`img`,{key:0,src:P(Y).logo,alt:``,class:`h-7 w-auto`},null,8,Hx)):K(``,!0),U(`span`,Ux,j(P(Y).name),1)]),U(`nav`,Wx,[(B(!0),V(z,null,R(r.value.loose,e=>(B(),V(z,{key:e.href},[e.new_tab?(B(),V(`a`,{key:0,href:e.href,target:`_blank`,rel:`noopener`,class:`flex items-center gap-2 rounded-lg px-3 py-2 text-sm font-medium text-muted transition hover:bg-text/5 hover:text-text`},[W(sd,{name:e.icon},null,8,[`name`]),G(j(P(Z)(e.label)),1)],8,Gx)):(B(),H(ld,{key:1,href:e.href,class:A([`flex items-center gap-2 rounded-lg px-3 py-2 text-sm font-medium transition`,p(e.href)?`bg-brand/15 text-text`:`text-muted hover:bg-text/5 hover:text-text`]),"aria-current":p(e.href)?`page`:void 0},{default:F(()=>[W(sd,{name:e.icon},null,8,[`name`]),G(j(P(Z)(e.label)),1)]),_:2},1032,[`href`,`class`,`aria-current`]))],64))),128)),(B(!0),V(z,null,R(r.value.sections,e=>(B(),V(`div`,{key:e.title,class:`pt-2`},[U(`button`,{type:`button`,class:`flex w-full items-center justify-between rounded-lg px-3 py-2 text-xs font-semibold uppercase tracking-wide text-muted transition hover:bg-text/5 hover:text-text`,"aria-expanded":l(e),onClick:t=>u(e)},[U(`span`,null,j(P(Z)(e.title)),1),U(`span`,{"aria-hidden":`true`,class:A([`text-base leading-none transition`,l(e)?`rotate-90`:``])},`›`,2)],8,Kx),I(U(`div`,qx,[(B(!0),V(z,null,R(e.items,e=>(B(),V(z,{key:e.href},[e.new_tab?(B(),V(`a`,{key:0,href:e.href,target:`_blank`,rel:`noopener`,class:`flex items-center gap-2 rounded-lg px-3 py-2 text-sm font-medium text-muted transition hover:bg-text/5 hover:text-text`},[W(sd,{name:e.icon},null,8,[`name`]),G(j(P(Z)(e.label)),1)],8,Jx)):(B(),H(ld,{key:1,href:e.href,class:A([`flex items-center gap-2 rounded-lg px-3 py-2 text-sm font-medium transition`,p(e.href)?`bg-brand/15 text-text`:`text-muted hover:bg-text/5 hover:text-text`]),"aria-current":p(e.href)?`page`:void 0},{default:F(()=>[W(sd,{name:e.icon},null,8,[`name`]),G(j(P(Z)(e.label)),1)]),_:2},1032,[`href`,`class`,`aria-current`]))],64))),128))],512),[[cl,l(e)]])]))),128))]),U(`div`,Yx,[W(ld,{href:P(Y).base+`/profile`,class:`group block`},{default:F(()=>[U(`p`,Xx,j(P(Y).user?.name),1),U(`p`,Zx,j(P(Y).user?.email),1),P(Y).user?.group?(B(),V(`p`,Qx,j(P(Y).user.group),1)):K(``,!0)]),_:1},8,[`href`]),P(Y).tutorial_state?(B(),V(`button`,{key:0,type:`button`,class:`mt-2 block text-xs text-muted underline hover:text-text`,onClick:t[1]||=e=>P(Q).tour=!0},j(P(Z)(`Show the tour`)),1)):K(``,!0),P(Y).can_switch?(B(),V(`button`,{key:1,type:`button`,class:`m-btn m-btn-secondary mt-3 w-full justify-center`,onClick:f},j(d.value===`simple`?P(Z)(`Show everything`):P(Z)(`Simple view`)),1)):K(``,!0),U(`button`,{type:`button`,class:`m-btn m-btn-secondary mt-3 w-full justify-center`,onClick:m},j(P(Z)(`Log out`)),1),U(`p`,$x,j(P(Z)(`Manager :version`,{version:P(Y).package_version})),1)])],2),P(Q).menu?(B(),V(`div`,{key:0,class:`fixed inset-0 z-20 bg-black/60 md:hidden`,onClick:t[2]||=e=>P(Q).menu=!1})):K(``,!0),P(Q).tour?(B(),H(Ix,{key:1})):K(``,!0),W(Cx),U(`main`,e5,[U(`div`,t5,[P(Y).two_factor.required&&!P(Y).two_factor.enrolled?(B(),V(`p`,n5,[G(j(P(Y).two_factor.days_left===null?P(Z)(`You have to make your login extra safe.`):P(Z)(`Make your login extra safe within :days days.`,{days:String(P(Y).two_factor.days_left)}))+` `,1),W(ld,{href:P(Y).base+`/profile`,class:`font-semibold text-brand underline`},{default:F(()=>[G(j(P(Z)(`Do it now`)),1)]),_:1},8,[`href`])])):K(``,!0),Aa(e.$slots,`default`)])])]))}}),i5={class:`grid min-h-screen place-items-center px-4 py-8`},a5=[`src`],o5={class:`font-display text-2xl font-bold`},s5={class:`text-sm text-muted`},c5={for:`tf-answer`,class:`m-label mt-4`},l5=[`inputmode`,`autocomplete`],u5={key:0,class:`m-error`},d5=[`disabled`],f5={key:2,class:`mt-3 space-y-4`},p5={class:`text-sm`},m5=L({__name:`TwoFactorGate`,setup(e){let t=N(``),n=N(``),r=N(!1),i=N(!1);async function a(){r.value=!0,n.value=``;try{await X.post(`${Y.base}/two-factor/challenge`,{code:t.value}),window.location.assign(Y.base)}catch(e){if(e instanceof Qu&&(e.status===422||e.status===429))n.value=e.body?.message??Z(`That code is not right.`),t.value=``;else throw e}finally{r.value=!1}}function o(){window.location.assign(Y.base)}async function s(){let{redirect:e}=await X.post(Y.base+`/logout`);window.location.assign(e)}return(e,c)=>(B(),V(`div`,i5,[U(`div`,{class:A([`m-card w-full p-7`,P(Y).two_factor.state===`challenge`?`max-w-sm`:`max-w-2xl`])},[P(Y).logo?(B(),V(`img`,{key:0,src:P(Y).logo,alt:``,class:`mb-4 h-9 w-auto`},null,8,a5)):K(``,!0),U(`h1`,o5,j(P(Y).two_factor.state===`challenge`?P(Z)(`One more step`):P(Z)(`Make your login extra safe`)),1),P(Y).two_factor.state===`challenge`?(B(),V(`form`,{key:1,class:`mt-4`,onSubmit:Pu(a,[`prevent`])},[U(`p`,s5,j(i.value?P(Z)(`Type one of your recovery codes. Each works once.`):P(Z)(`Open the authenticator app on your phone and type the 6 digits.`)),1),U(`label`,c5,j(i.value?P(Z)(`Recovery code`):P(Z)(`The 6 digits`)),1),I(U(`input`,{id:`tf-answer`,"onUpdate:modelValue":c[0]||=e=>t.value=e,type:`text`,inputmode:i.value?`text`:`numeric`,autocomplete:i.value?`off`:`one-time-code`,maxlength:`40`,required:``,autofocus:``,class:`m-input text-center text-xl tracking-widest`},null,8,l5),[[J,t.value]]),n.value?(B(),V(`p`,u5,j(n.value),1)):K(``,!0),U(`button`,{type:`submit`,class:`m-btn m-btn-primary mt-4 w-full justify-center`,disabled:r.value},j(P(Z)(`Continue`)),9,d5),U(`button`,{type:`button`,class:`mt-3 block w-full text-center text-sm text-brand underline`,onClick:c[1]||=e=>{i.value=!i.value,t.value=``,n.value=``}},j(i.value?P(Z)(`Use the app instead`):P(Z)(`I lost my phone`)),1)],32)):(B(),V(`div`,f5,[U(`p`,p5,j(P(Z)(`You have to set this up now. The time you had for it is over.`)),1),W(kg,{onDone:o})])),U(`button`,{type:`button`,class:`mt-6 block w-full text-center text-sm text-muted underline`,onClick:s},j(P(Z)(`Log out`)),1)],2)]))}}),h5={key:0,class:`m-card p-5 text-sm`},g5={key:1,class:`text-sm text-muted`},_5=L({__name:`App`,setup(e){return(e,t)=>(B(),V(z,null,[P(Y).user&&[`challenge`,`setup_required`].includes(P(Y).two_factor.state)?(B(),H(m5,{key:0})):P(Q).component&&!P(Y).user?(B(),H(Ta(P(Q).component),{key:1})):P(Q).component?(B(),H(r5,{key:2},{default:F(()=>[P(Q).forbidden?(B(),V(`p`,h5,j(P(Z)(`You may not open this page.`)),1)):P(Q).loading?(B(),V(`p`,g5,j(P(Z)(`Loading…`)),1)):(B(),H(Ta(P(Q).component),Oe(qs({key:2},P(Q).props)),null,16))]),_:1})):K(``,!0),P(Q).toast?(B(),V(`div`,{key:3,role:`status`,class:A([`fixed bottom-5 right-5 z-50 rounded-lg border border-l-4 border-line bg-panel px-4 py-3 text-sm font-medium text-text shadow-xl`,P(Q).toast.error?`border-l-red-500`:`border-l-emerald-500`])},j(P(Q).toast.text),3)):K(``,!0)],64))}});ad(Y.locale),Y.view===`simple`&&document.documentElement.classList.add(`is-simple`),window.IriksManager={Vue:Xu,boot:Y,api:X,t:Z,flash:$,navigate:bx,register:gx,components:{Link:ld,FormFields:z2,Icon:sd,MediaPicker:sm}};async function v5(){for(let e of Y.extensions??[])try{await import(e)}catch(t){console.error(`Manager extension ${e} did not load`,t)}Wu(_5).mount(`#manager`),Sx()}v5(); |