1import{m as P,Q as se,H as C,a9 as Ee,aa as Se,q as ye,D as ce,u as Oe,I as fe,ab as Z,ac as Te,ad as xe,d as N,P as Ae,G as he,a3 as ne,$ as $e}from"./app-BqnMDJjU.js";function q(e){return Ee()?(Se(e),!0):!1}function oe(){const e=new Set,n=o=>{e.delete(o)};return{on:o=>{e.add(o);const i=()=>n(o);return q(i),{off:i}},off:n,trigger:(...o)=>Promise.all(Array.from(e).map(i=>i(...o)))}}function T(e){return typeof e=="function"?e():Oe(e)}const re=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Pe=e=>typeof e<"u",Ne=Object.prototype.toString,je=e=>Ne.call(e)==="[object Object]",Y=()=>{};function pe(e,n){function r(...a){return new Promise((o,i)=>{Promise.resolve(e(()=>n.apply(this,a),{fn:n,thisArg:this,args:a})).then(o).catch(i)})}return r}const we=e=>e();function be(e,n={}){let r,a,o=Y;const i=d=>{clearTimeout(d),o(),o=Y};return d=>{const c=T(e),f=T(n.maxWait);return r&&i(r),c<=0||f!==void 0&&f<=0?(a&&(i(a),a=null),Promise.resolve(d())):new Promise((u,s)=>{o=n.rejectOnCancel?s:u,f&&!a&&(a=setTimeout(()=>{r&&i(r),a=null,u(d())},f)),r=setTimeout(()=>{a&&i(a),a=null,u(d())},c)})}}function De(e=we){const n=P(!0);function r(){n.value=!1}function a(){n.value=!0}const o=(...i)=>{n.value&&e(...i)};return{isActive:Z(n),pause:r,resume:a,eventFilter:o}}function me(e,n=!1,r="Timeout"){return new Promise((a,o)=>{setTimeout(n?()=>o(r):a,e)})}function Ce(e,...n){return n.some(r=>r in e)}function _e(e,n){var r;if(typeof e=="number")return e+n;const a=((r=e.match(/^-?\d+\.?\d*/))==null?void 0:r[0])||"",o=e.slice(a.length),i=Number.parseFloat(a)+n;return Number.isNaN(i)?e:i+o}function We(e){return fe()}function ue(...e){if(e.length!==1)return Te(...e);const n=e[0];return typeof n=="function"?Z(xe(()=>({get:n,set:Y}))):P(n)}function Me(e,n=200,r={}){return pe(be(n,r),e)}function it(e,n=200,r={}){const a=P(e.value),o=Me(()=>{a.value=e.value},n,r);return C(e,()=>o()),a}function ge(e,n,r={}){const{eventFilter:a=we,...o}=r;return C(e,pe(a,n),o)}function Ie(e,n,r={}){const{eventFilter:a,...o}=r,{eventFilter:i,pause:l,resume:d,isActive:c}=De(a);return{stop:ge(e,n,{...o,eventFilter:i}),pause:l,resume:d,isActive:c}}function Fe(e,n=!0,r){We()?ye(e,r):n?e():ce(e)}function le(e,n=!1){function r(s,{flush:v="sync",deep:m=!1,timeout:g,throwOnTimeout:y}={}){let w=null;const x=[new Promise(p=>{w=C(e,F=>{s(F)!==n&&(w==null||w(),p(F))},{flush:v,deep:m,immediate:!0})})];return g!=null&&x.push(me(g,y).then(()=>T(e)).finally(()=>w==null?void 0:w())),Promise.race(x)}function a(s,v){if(!se(s))return r(F=>F===s,v);const{flush:m="sync",deep:g=!1,timeout:y,throwOnTimeout:w}=v??{};let O=null;const p=[new Promise(F=>{O=C([e,s],([S,A])=>{n!==(S===A)&&(O==null||O(),F(S))},{flush:m,deep:g,immediate:!0})})];return y!=null&&p.push(me(y,w).then(()=>T(e)).finally(()=>(O==null||O(),T(e)))),Promise.race(p)}function o(s){return r(v=>!!v,s)}function i(s){return a(null,s)}function l(s){return a(void 0,s)}function d(s){return r(Number.isNaN,s)}function c(s,v){return r(m=>{const g=Array.from(m);return g.includes(s)||g.includes(T(s))},v)}function f(s){return u(1,s)}function u(s=1,v){let m=-1;return r(()=>(m+=1,m>=s),v)}return Array.isArray(T(e))?{toMatch:r,toContains:c,changed:f,changedTimes:u,get not(){return le(e,!n)}}:{toMatch:r,toBe:a,toBeTruthy:o,toBeNull:i,toBeNaN:d,toBeUndefined:l,changed:f,changedTimes:u,get not(){return le(e,!n)}}}function Le(e){return le(e)}function at(e,n=1e3,r={}){const{immediate:a=!0,immediateCallback:o=!1}=r;let i=null;const l=P(!1);function d(){i&&(clearInterval(i),i=null)}function c(){l.value=!1,d()}function f(){const u=T(n);u<=0||(l.value=!0,o&&e(),d(),i=setInterval(e,u))}if(a&&re&&f(),se(n)||typeof n=="function"){const u=C(n,()=>{l.value&&re&&f()});q(u)}return q(c),{isActive:l,pause:c,resume:f}}function Ve(e,n,r={}){const{immediate:a=!0}=r,o=P(!1);let i=null;function l(){i&&(clearTimeout(i),i=null)}function d(){o.value=!1,l()}function c(...f){l(),o.value=!0,i=setTimeout(()=>{o.value=!1,i=null,e(...f)},T(n))}return a&&(o.value=!0,re&&c()),q(d),{isPending:Z(o),start:c,stop:d}}function ot(e,n,r={}){const{debounce:a=0,maxWait:o=void 0,...i}=r;return ge(e,n,{...i,eventFilter:be(a,{maxWait:o})})}function Be(e){var n;const r=T(e);return(n=r==null?void 0:r.$el)!=null?n:r}const L=re?window:void 0;function G(...e){let n,r,a,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([r,a,o]=e,n=L):[n,r,a,o]=e,!n)return Y;
1Array.isArray(r)||(r=[r]),Array.isArray(a)||(a=[a]);const i=[],l=()=>{i.forEach(u=>u()),i.length=0},d=(u,s,v,m)=>(u.addEventListener(s,v,m),()=>u.removeEventListener(s,v,m)),c=C(()=>[Be(n),T(o)],([u,s])=>{if(l(),!u)return;const v=je(s)?{...s}:s;i.push(...r.flatMap(m=>a.map(g=>d(u,m,g,v))))},{immediate:!0,flush:"post"}),f=()=>{c(),l()};return q(f),f}function Ue(){const e=P(!1),n=fe();return n&&ye(()=>{e.value=!0},n),e}function He(e){const n=Ue();return N(()=>(n.value,!!e()))}function J(e,n={}){const{window:r=L}=n,a=He(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function");let o;const i=P(!1),l=f=>{i.value=f.matches},d=()=>{o&&("removeEventListener"in o?o.removeEventListener("change",l):o.removeListener(l))},c=Ae(()=>{a.value&&(d(),o=r.matchMedia(T(e)),"addEventListener"in o?o.addEventListener("change",l):o.addListener(l),i.value=o.matches)});return q(()=>{c(),d(),o=void 0}),i}const ut={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};function lt(e,n={}){function r(u,s){let v=T(e[T(u)]);return s!=null&&(v=_e(v,s)),typeof v=="number"&&(v=`${v}px`),v}const{window:a=L,strategy:o="min-width"}=n;function i(u){return a?a.matchMedia(u).matches:!1}const l=u=>J(()=>`(min-width: ${r(u)})`,n),d=u=>J(()=>`(max-width: ${r(u)})`,n),c=Object.keys(e).reduce((u,s)=>(Object.defineProperty(u,s,{get:()=>o==="min-width"?l(s):d(s),enumerable:!0,configurable:!0}),u),{});function f(){const u=Object.keys(e).map(s=>[s,l(s)]);return N(()=>u.filter(([,s])=>s.value).map(([s])=>s))}
1return Object.assign(c,{greaterOrEqual:l,smallerOrEqual:d,greater(u){return J(()=>`(min-width: ${r(u,.1)})`,n)},smaller(u){return J(()=>`(max-width: ${r(u,-.1)})`,n)},between(u,s){return J(()=>`(min-width: ${r(u)}) and (max-width: ${r(s,-.1)})`,n)},isGreater(u){return i(`(min-width: ${r(u,.1)})`)},isGreaterOrEqual(u){return i(`(min-width: ${r(u)})`)},isSmaller(u){return i(`(max-width: ${r(u,-.1)})`)},isSmallerOrEqual(u){return i(`(max-width: ${r(u)})`)},isInBetween(u,s){return i(`(min-width: ${r(u)}) and (max-width: ${r(s,-.1)})`)},current:f,active(){const u=f();return N(()=>u.value.length===0?"":u.value.at(-1))}})}function ze(e){return JSON.parse(JSON.stringify(e))}const k=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ee="__vueuse_ssr_handlers__",Je=Ge();function Ge(){return ee in k||(k[ee]=k[ee]||{}),k[ee]}function qe(e,n){return Je[e]||n}function Ye(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const Ke={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},ve="vueuse-storage";function st(e,n,r,a={}){var o;const{flush:i="pre",deep:l=!0,listenToStorageChanges:d=!0,writeDefaults:c=!0,mergeDefaults:f=!1,shallow:u,window:s=L,eventFilter:v,onError:m=h=>{console.error(h)},initOnMounted:g}=a,y=(u?ne:P)(typeof n=="function"?n():n);if(!r)try{r=qe("getDefaultStorage",()=>{var h;return(h=L)==null?void 0:h.localStorage})()}catch(h){m(h)}if(!r)return y;const w=T(n),O=Ye(w),x=(o=a.serializer)!=null?o:Ke[O],{pause:p,resume:F}=Ie(y,()=>A(y.value),{flush:i,deep:l,eventFilter:v});s&&d&&Fe(()=>{G(s,"storage",W),G(s,ve,b),g&&W()}),g||W();function S(h,E){s&&s.dispatchEvent(new CustomEvent(ve,{detail:{key:e,oldValue:h,newValue:E,storageArea:r}}))}function A(h){try{const E=r.getItem(e);if(h==null)S(E,null),r.removeItem(e);else{const D=x.write(h);E!==D&&(r.setItem(e,D),S(E,D))}}catch(E){m(E)}}function V(h){const E=h?h.newValue:r.getItem(e);if(E==null)return c&&w!=null&&r.setItem(e,x.write(w)),w;if(!h&&f){const D=x.read(E);return typeof f=="function"?f(D,w):O==="object"&&!Array.isArray(D)?{...w,...D}:D}else return typeof E!="string"?E:x.read(E)}function W(h){if(!(h&&h.storageArea!==r)){if(h&&h.key==null){y.value=w;return}if(!(h&&h.key!==e)){p();try{(h==null?void 0:h.newValue)!==x.write(y.value)&&(y.value=V(h))}catch(E){m(E)}finally{h?ce(F):F()}}}}function b(h){W(h.detail)}return y}const Qe={json:"application/json",text:"text/plain"};function ie(e){return e&&Ce(e,"immediate","refetch","initialData","timeout","beforeFetch","afterFetch","onFetchError","fetch","updateDataOnError")}const Re=/^(?:[a-z][a-z\d+\-.]*:)?\/\//i;function Xe(e){return Re.test(e)}function X(e){return typeof Headers<"u"&&e instanceof Headers?Object.fromEntries(e.entries()):e}function z(e,...n){return e==="overwrite"?async r=>{const a=n[n.length-1];return a?{...r,...await a(r)}:r}:async r=>{for(const a of n)a&&(r={...r,...await a(r)});return r}}function ct(e={}){const n=e.combination||"chain",r=e.options||{},a=e.fetchOptions||{};function o(i,...l){const d=N(()=>{const u=T(e.baseUrl),s=T(i);return u&&!Xe(s)?ke(u,s):s});let c=r,f=a;return l.length>0&&(ie(l[0])?c={...c,...l[0],beforeFetch:z(n,r.beforeFetch,l[0].beforeFetch),afterFetch:z(n,r.afterFetch,l[0].afterFetch),onFetchError:z(n,r.onFetchError,l[0].onFetchError)}:f={...f,...l[0],headers:{...X(f.headers)||{},...X(l[0].headers)||{}}}),l.length>1&&ie(l[1])&&(c={...c,...l[1],beforeFetch:z(n,r.beforeFetch,l[1].beforeFetch),afterFetch:z(n,r.afterFetch,l[1].afterFetch),onFetchError:z(n,r.onFetchError,l[1].onFetchError)}),Ze(d,f,c)}return o}function Ze(e,...n){var r;const a=typeof AbortController=="function";let o={},i={immediate:!0,refetch:!1,timeout:0,updateDataOnError:!1};const l={method:"GET",type:"text",payload:void 0};n.length>0&&(ie(n[0])?i={...i,...n[0]}:o=n[0]),n.length>1&&ie(n[1])&&(i={...i,...n[1]});const{fetch:d=(r=L)==null?void 0:r.fetch,initialData:c,timeout:f}=i,u=oe(),s=oe(),v=oe(),m=P(!1),g=P(!1),y=P(!1),w=P(null),O=ne(null),x=ne(null),p=ne(c||null),F=N(()=>a&&g.value);let S,A;const V=()=>{a&&(S==null||S.abort(),S=new AbortController,S.signal.onabort=()=>y.value=!0,o={...o,signal:S.signal})},W=j=>{g.value=j,m.value=!j};f&&(A=Ve(V,f,{immediate:!1}));let b=0;const h=async(j=!1)=>{var _,M;V(),W(!0),x.value=null,w.value=null,y.value=!1,b+=1;const Q=b,U={method:l.method,headers:{}};if(l.payload){const $=X(U.headers),I=T(l.payload);!l.payloadType&&I&&Object.getPrototypeOf(I)===Object.prototype&&!(I instanceof FormData)&&(l.payloadType="json"),l.payloadType&&($["Content-Type"]=(_=Qe[l.payloadType])!=null?_:l.payloadType),U.body=l.payloadType==="json"?JSON.stringify(I):I}let de=!1;const R={url:T(e),options:{...U,...o},cancel:()=>{de=!0}};if(i.beforeFetch&&Object.assign(R,await i.beforeFetch(R)),de||!d)return W(!1),Promise.resolve(null);let H=null;return A&&A.start(),d(R.url,{...U,...R.options,headers:{...X(U.headers),...X((M=R.options)==null?void 0:M.headers)}}).then(async $=>{if(O.value=$,w.value=$.status,H=await $.clone()[l.type](),!$.ok)throw p.value=c||null,
1new Error($.statusText);return i.afterFetch&&({data:H}=await i.afterFetch({data:H,response:$})),p.value=H,u.trigger($),$}).catch(async $=>{let I=$.message||$.name;if(i.onFetchError&&({error:I,data:H}=await i.onFetchError({data:H,error:$,response:O.value})),x.value=I,i.updateDataOnError&&(p.value=H),s.trigger($),j)throw $;return null}).finally(()=>{Q===b&&W(!1),A&&A.stop(),v.trigger(null)})},E=ue(i.refetch);C([E,ue(e)],([j])=>j&&h(),{deep:!0});const D={isFinished:Z(m),isFetching:Z(g),statusCode:w,response:O,error:x,data:p,canAbort:F,aborted:y,abort:V,execute:h,onFetchResponse:u.on,onFetchError:s.on,onFetchFinally:v.on,get:B("GET"),put:B("PUT"),post:B("POST"),delete:B("DELETE"),patch:B("PATCH"),head:B("HEAD"),options:B("OPTIONS"),json:K("json"),text:K("text"),blob:K("blob"),arrayBuffer:K("arrayBuffer"),formData:K("formData")};function B(j){return(_,M)=>{if(!g.value)return l.method=j,l.payload=_,l.payloadType=M,se(l.payload)&&C([E,ue(l.payload)],([Q])=>Q&&h(),{deep:!0}),{...D,then(Q,U){return ae().then(Q,U)}}}}function ae(){return new Promise((j,_)=>{Le(m).toBe(!0).then(()=>j(D)).catch(M=>_(M))})}function K(j){return()=>{if(!g.value)return l.type=j,{...D,then(_,M){return ae().then(_,M)}}}}return i.immediate&&Promise.resolve().then(()=>h()),{...D,then(j,_){return ae().then(j,_)}}}function ke(e,n){return!e.endsWith("/")&&!n.startsWith("/")?`${e}/${n}`:`${e}${n}`}function ft(e,n={}){const{threshold:r=50,onSwipe:a,onSwipeEnd:o,onSwipeStart:i,passive:l=!0,window:d=L}=n,c=he({x:0,y:0}),f=he({x:0,y:0}),u=N(()=>c.x-f.x),s=N(()=>c.y-f.y),{max:v,abs:m}=Math,g=N(()=>v(m(u.value),m(s.value))>=r),y=P(!1),w=N(()=>g.value?m(u.value)>m(s.value)?u.value>0?"left":"right":s.value>0?"up":"down":"none"),O=b=>[b.touches[0].clientX,b.touches[0].clientY],x=(b,h)=>{c.x=b,c.y=h},p=(b,h)=>{f.x=b,f.y=h};let F;const S=et(d==null?void 0:d.document);l?F=S?{passive:!0}:{capture:!1}:F=S?{passive:!1,capture:!0}:{capture:!0};const A=b=>{y.value&&(o==null||o(b,w.value)),y.value=!1},V=[G(e,"touchstart",b=>{if(b.touches.length!==1)return;F.capture&&!F.passive&&b.preventDefault();const[h,E]=O(b);x(h,E),p(h,E),i==null||i(b)},F),G(e,"touchmove",b=>{if(b.touches.length!==1)return;const[h,E]=O(b);p(h,E),!y.value&&g.value&&(y.value=!0),y.value&&(a==null||a(b))},F),G(e,["touchend","touchcancel"],A,F)];return{isPassiveEventSupported:S,isSwiping:y,direction:w,coordsStart:c,coordsEnd:f,lengthX:u,lengthY:s,stop:()=>V.forEach(b=>b())}}function et(e){if(!e)return!1;let n=!1;const r={get passive(){return n=!0,!1}};return e.addEventListener("x",Y,r),e.removeEventListener("x",Y),n}function tt(e,n,r,a={}){var o,i,l;const{clone:d=!1,passive:c=!1,eventName:f,deep:u=!1,defaultValue:s,shouldEmit:v}=a,m=fe(),g=r||(m==null?void 0:m.emit)||((o=m==null?void 0:m.$emit)==null?void 0:o.bind(m))||((l=(i=m==null?void 0:m.proxy)==null?void 0:i.$emit)==null?void 0:l.bind(m==null?void 0:m.proxy));let y=f;n||(n="modelValue"),y=y||`update:${n.toString()}`;const w=p=>d?typeof d=="function"?d(p):ze(p):p,O=()=>Pe(e[n])?w(e[n]):s,x=p=>{v?v(p)&&g(y,p):g(y,p)};if(c){const p=O(),F=P(p);let S=!1;return C(()=>e[n],A=>{S||(S=!0,F.value=w(A),ce(()=>S=!1))}),C(F,A=>{!S&&(A!==e[n]||u)&&x(A)},{deep:u}),F}else return N({get(){return O()},set(p){x(p)}})}function dt(e={}){const{window:n=L,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:a=Number.POSITIVE_INFINITY,listenOrientation:o=!0,includeScrollbar:i=!0}=e,l=P(r),d=P(a),c=()=>{n&&(i?(l.value=n.innerWidth,d.value=n.innerHeight):(l.value=n.document.documentElement.clientWidth,d.value=n.document.documentElement.clientHeight))};if(c(),Fe(c),G("resize",c,{passive:!0}),o){const f=J("(orientation: portrait)");C(f,()=>c())}return{width:l,height:d}}const te=e=>{const n=t(e);return!n||n===e?void 0:n},nt=e=>e?String(e).split(".").pop().replaceAll("_"," ").replaceAll("-"," ").replace(/\b\w/g,r=>r.toUpperCase()):void 0,ht=e=>{const n=$e("form",void 0),r=N(()=>{if(!(e!=null&&e.name))return;let c=e.name;return c=c.replaceAll("[]",e!=null&&e.value?`.${e==null?void 0:e.value}`:"").replaceAll("[",".").replaceAll("]",""),e!=null&&e.asRadio&&(e!=null&&e.value)&&(c+=`.${e==null?void 0:e.value}`),c}),a=N(()=>
1{if(e.label||!(n!=null&&n.i18n)||!r.value)return e.label;const f=te(`${n.i18n}.${r.value}.label`)??nt(r.value),u=te("form.optional");return f&&!e.required&&u?`${f} (${u.toLowerCase()})`:f}),o=N(()=>!e.description&&(n!=null&&n.i18n)&&r.value?te(`${n.i18n}.${r.value}.description`):e.description),i=N(()=>!e.placeholder&&(n!=null&&n.i18n)&&r.value?te(`${n.i18n}.${r.value}.placeholder`):e.placeholder),l=N(()=>{if(!(e!=null&&e.name)||!(n!=null&&n.errors))return e.error;const c=e.name.endsWith("[]")?Object.entries(n.errors).filter(([f])=>f.startsWith(r.value)).map(f=>f[1]).flat():n.errors[r.value];return c==null?void 0:c.join(" ")}),d=tt(e,void 0,void 0,{passive:!0,defaultValue:e!=null&&e.name&&(n!=null&&n.initialData)?n.initialData[e.name]:void 0});return{label:a,description:o,placeholder:i,error:l,currentValue:d}};export{Ke as S,dt as a,ht as b,ct as c,ft as d,lt as e,ut as f,at as g,st as h,re as i,it as r,q as t,tt as u,ot as w};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.