diff --git a/ui/dist/assets/AuthMethodsDocs-fdba4410.js b/ui/dist/assets/AuthMethodsDocs-fdba4410.js new file mode 100644 index 00000000..2cf705ce --- /dev/null +++ b/ui/dist/assets/AuthMethodsDocs-fdba4410.js @@ -0,0 +1,66 @@ +import{S as $e,i as Se,s as ye,e as c,w,b as k,c as oe,f as h,g as d,h as a,m as se,x as G,N as we,P as Te,k as je,Q as Ae,n as Be,t as U,a as W,o as u,d as ae,T as Fe,C as Oe,p as Qe,r as V,u as Ne,M as He}from"./index-055843b5.js";import{S as Ke}from"./SdkTabs-1c685373.js";import{F as qe}from"./FieldsQueryParam-815b0ee8.js";function ve(n,l,o){const s=n.slice();return s[5]=l[o],s}function Ce(n,l,o){const s=n.slice();return s[5]=l[o],s}function Pe(n,l){let o,s=l[5].code+"",_,p,i,f;function m(){return l[4](l[5])}return{key:n,first:null,c(){o=c("button"),_=w(s),p=k(),h(o,"class","tab-item"),V(o,"active",l[1]===l[5].code),this.first=o},m(v,C){d(v,o,C),a(o,_),a(o,p),i||(f=Ne(o,"click",m),i=!0)},p(v,C){l=v,C&4&&s!==(s=l[5].code+"")&&G(_,s),C&6&&V(o,"active",l[1]===l[5].code)},d(v){v&&u(o),i=!1,f()}}}function Me(n,l){let o,s,_,p;return s=new He({props:{content:l[5].body}}),{key:n,first:null,c(){o=c("div"),oe(s.$$.fragment),_=k(),h(o,"class","tab-item"),V(o,"active",l[1]===l[5].code),this.first=o},m(i,f){d(i,o,f),se(s,o,null),a(o,_),p=!0},p(i,f){l=i;const m={};f&4&&(m.content=l[5].body),s.$set(m),(!p||f&6)&&V(o,"active",l[1]===l[5].code)},i(i){p||(U(s.$$.fragment,i),p=!0)},o(i){W(s.$$.fragment,i),p=!1},d(i){i&&u(o),ae(s)}}}function ze(n){var _e,be;let l,o,s=n[0].name+"",_,p,i,f,m,v,C,H=n[0].name+"",L,ne,E,P,I,j,J,M,K,ie,q,A,ce,Y,z=n[0].name+"",X,re,R,B,Z,$,x,de,ee,T,te,F,le,S,O,g=[],ue=new Map,fe,Q,b=[],me=new Map,y;P=new Ke({props:{js:` + import PocketBase from 'pocketbase'; + + const pb = new PocketBase('${n[3]}'); + + ... + + const result = await pb.collection('${(_e=n[0])==null?void 0:_e.name}').listAuthMethods(); + `,dart:` + import 'package:pocketbase/pocketbase.dart'; + + final pb = PocketBase('${n[3]}'); + + ... + + final result = await pb.collection('${(be=n[0])==null?void 0:be.name}').listAuthMethods(); + `}}),T=new qe({});let D=n[2];const pe=e=>e[5].code;for(let e=0;ee[5].code;for(let e=0;eParam + Type + Description`,de=k(),ee=c("tbody"),oe(T.$$.fragment),te=k(),F=c("div"),F.textContent="Responses",le=k(),S=c("div"),O=c("div");for(let e=0;eo(1,p=m.code);return n.$$set=m=>{"collection"in m&&o(0,_=m.collection)},o(3,s=Oe.getApiExampleUrl(Qe.baseUrl)),o(2,i=[{code:200,body:` + { + "usernamePassword": true, + "emailPassword": true, + "authProviders": [ + { + "name": "github", + "state": "3Yd8jNkK_6PJG6hPWwBjLqKwse6Ejd", + "codeVerifier": "KxFDWz1B3fxscCDJ_9gHQhLuh__ie7", + "codeChallenge": "NM1oVexB6Q6QH8uPtOUfK7tq4pmu4Jz6lNDIwoxHZNE=", + "codeChallengeMethod": "S256", + "authUrl": "https://github.com/login/oauth/authorize?client_id=demo&code_challenge=NM1oVexB6Q6QH8uPtOUfK7tq4pmu4Jz6lNDIwoxHZNE%3D&code_challenge_method=S256&response_type=code&scope=user&state=3Yd8jNkK_6PJG6hPWwBjLqKwse6Ejd&redirect_uri=" + }, + { + "name": "gitlab", + "state": "NeQSbtO5cShr_mk5__3CUukiMnymeb", + "codeVerifier": "ahTFHOgua8mkvPAlIBGwCUJbWKR_xi", + "codeChallenge": "O-GATkTj4eXDCnfonsqGLCd6njvTixlpCMvy5kjgOOg=", + "codeChallengeMethod": "S256", + "authUrl": "https://gitlab.com/oauth/authorize?client_id=demo&code_challenge=O-GATkTj4eXDCnfonsqGLCd6njvTixlpCMvy5kjgOOg%3D&code_challenge_method=S256&response_type=code&scope=read_user&state=NeQSbtO5cShr_mk5__3CUukiMnymeb&redirect_uri=" + }, + { + "name": "google", + "state": "zB3ZPifV1TW2GMuvuFkamSXfSNkHPQ", + "codeVerifier": "t3CmO5VObGzdXqieakvR_fpjiW0zdO", + "codeChallenge": "KChwoQPKYlz2anAdqtgsSTdIo8hdwtc1fh2wHMwW2Yk=", + "codeChallengeMethod": "S256", + "authUrl": "https://accounts.google.com/o/oauth2/auth?client_id=demo&code_challenge=KChwoQPKYlz2anAdqtgsSTdIo8hdwtc1fh2wHMwW2Yk%3D&code_challenge_method=S256&response_type=code&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email&state=zB3ZPifV1TW2GMuvuFkamSXfSNkHPQ&redirect_uri=" + } + ] + } + `}]),[_,p,i,s,f]}class Ve extends $e{constructor(l){super(),Se(this,l,De,ze,ye,{collection:0})}}export{Ve as default}; diff --git a/ui/dist/assets/AuthMethodsDocs-ff4a33f2.js b/ui/dist/assets/AuthMethodsDocs-ff4a33f2.js deleted file mode 100644 index 5434eddc..00000000 --- a/ui/dist/assets/AuthMethodsDocs-ff4a33f2.js +++ /dev/null @@ -1,64 +0,0 @@ -import{S as ke,i as be,s as ge,e as r,w as g,b as w,c as _e,f as k,g as h,h as n,m as me,x as G,N as re,P as we,k as ve,Q as Ce,n as Pe,t as L,a as Y,o as _,d as pe,T as Me,C as Se,p as $e,r as H,u as je,M as Ae}from"./index-69e255fe.js";import{S as Be}from"./SdkTabs-5df68e34.js";function ue(a,l,o){const s=a.slice();return s[5]=l[o],s}function de(a,l,o){const s=a.slice();return s[5]=l[o],s}function fe(a,l){let o,s=l[5].code+"",m,f,i,u;function d(){return l[4](l[5])}return{key:a,first:null,c(){o=r("button"),m=g(s),f=w(),k(o,"class","tab-item"),H(o,"active",l[1]===l[5].code),this.first=o},m(v,C){h(v,o,C),n(o,m),n(o,f),i||(u=je(o,"click",d),i=!0)},p(v,C){l=v,C&4&&s!==(s=l[5].code+"")&&G(m,s),C&6&&H(o,"active",l[1]===l[5].code)},d(v){v&&_(o),i=!1,u()}}}function he(a,l){let o,s,m,f;return s=new Ae({props:{content:l[5].body}}),{key:a,first:null,c(){o=r("div"),_e(s.$$.fragment),m=w(),k(o,"class","tab-item"),H(o,"active",l[1]===l[5].code),this.first=o},m(i,u){h(i,o,u),me(s,o,null),n(o,m),f=!0},p(i,u){l=i;const d={};u&4&&(d.content=l[5].body),s.$set(d),(!f||u&6)&&H(o,"active",l[1]===l[5].code)},i(i){f||(L(s.$$.fragment,i),f=!0)},o(i){Y(s.$$.fragment,i),f=!1},d(i){i&&_(o),pe(s)}}}function Te(a){var ae,ne;let l,o,s=a[0].name+"",m,f,i,u,d,v,C,F=a[0].name+"",U,X,q,P,D,j,W,M,K,R,Q,A,Z,V,y=a[0].name+"",E,x,I,B,J,S,T,b=[],ee=new Map,te,O,p=[],le=new Map,$;P=new Be({props:{js:` - import PocketBase from 'pocketbase'; - - const pb = new PocketBase('${a[3]}'); - - ... - - const result = await pb.collection('${(ae=a[0])==null?void 0:ae.name}').listAuthMethods(); - `,dart:` - import 'package:pocketbase/pocketbase.dart'; - - final pb = PocketBase('${a[3]}'); - - ... - - final result = await pb.collection('${(ne=a[0])==null?void 0:ne.name}').listAuthMethods(); - `}});let z=a[2];const oe=e=>e[5].code;for(let e=0;ee[5].code;for(let e=0;eo(1,f=d.code);return a.$$set=d=>{"collection"in d&&o(0,m=d.collection)},o(3,s=Se.getApiExampleUrl($e.baseUrl)),o(2,i=[{code:200,body:` - { - "usernamePassword": true, - "emailPassword": true, - "authProviders": [ - { - "name": "github", - "state": "3Yd8jNkK_6PJG6hPWwBjLqKwse6Ejd", - "codeVerifier": "KxFDWz1B3fxscCDJ_9gHQhLuh__ie7", - "codeChallenge": "NM1oVexB6Q6QH8uPtOUfK7tq4pmu4Jz6lNDIwoxHZNE=", - "codeChallengeMethod": "S256", - "authUrl": "https://github.com/login/oauth/authorize?client_id=demo&code_challenge=NM1oVexB6Q6QH8uPtOUfK7tq4pmu4Jz6lNDIwoxHZNE%3D&code_challenge_method=S256&response_type=code&scope=user&state=3Yd8jNkK_6PJG6hPWwBjLqKwse6Ejd&redirect_uri=" - }, - { - "name": "gitlab", - "state": "NeQSbtO5cShr_mk5__3CUukiMnymeb", - "codeVerifier": "ahTFHOgua8mkvPAlIBGwCUJbWKR_xi", - "codeChallenge": "O-GATkTj4eXDCnfonsqGLCd6njvTixlpCMvy5kjgOOg=", - "codeChallengeMethod": "S256", - "authUrl": "https://gitlab.com/oauth/authorize?client_id=demo&code_challenge=O-GATkTj4eXDCnfonsqGLCd6njvTixlpCMvy5kjgOOg%3D&code_challenge_method=S256&response_type=code&scope=read_user&state=NeQSbtO5cShr_mk5__3CUukiMnymeb&redirect_uri=" - }, - { - "name": "google", - "state": "zB3ZPifV1TW2GMuvuFkamSXfSNkHPQ", - "codeVerifier": "t3CmO5VObGzdXqieakvR_fpjiW0zdO", - "codeChallenge": "KChwoQPKYlz2anAdqtgsSTdIo8hdwtc1fh2wHMwW2Yk=", - "codeChallengeMethod": "S256", - "authUrl": "https://accounts.google.com/o/oauth2/auth?client_id=demo&code_challenge=KChwoQPKYlz2anAdqtgsSTdIo8hdwtc1fh2wHMwW2Yk%3D&code_challenge_method=S256&response_type=code&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email&state=zB3ZPifV1TW2GMuvuFkamSXfSNkHPQ&redirect_uri=" - } - ] - } - `}]),[m,f,i,s,u]}class Ke extends ke{constructor(l){super(),be(this,l,Oe,Te,ge,{collection:0})}}export{Ke as default}; diff --git a/ui/dist/assets/AuthRefreshDocs-36d963ec.js b/ui/dist/assets/AuthRefreshDocs-36d963ec.js deleted file mode 100644 index c4f3e37d..00000000 --- a/ui/dist/assets/AuthRefreshDocs-36d963ec.js +++ /dev/null @@ -1,82 +0,0 @@ -import{S as ze,i as Ue,s as je,M as Ve,e as a,w as k,b as p,c as ae,f as b,g as d,h as o,m as ne,x as re,N as He,P as xe,k as Je,Q as Ke,n as Qe,t as U,a as j,o as u,d as ie,T as Ie,C as Oe,p as We,r as x,u as Ge}from"./index-69e255fe.js";import{S as Xe}from"./SdkTabs-5df68e34.js";function Ee(r,l,s){const n=r.slice();return n[5]=l[s],n}function Fe(r,l,s){const n=r.slice();return n[5]=l[s],n}function Le(r,l){let s,n=l[5].code+"",m,_,i,f;function v(){return l[4](l[5])}return{key:r,first:null,c(){s=a("button"),m=k(n),_=p(),b(s,"class","tab-item"),x(s,"active",l[1]===l[5].code),this.first=s},m(g,w){d(g,s,w),o(s,m),o(s,_),i||(f=Ge(s,"click",v),i=!0)},p(g,w){l=g,w&4&&n!==(n=l[5].code+"")&&re(m,n),w&6&&x(s,"active",l[1]===l[5].code)},d(g){g&&u(s),i=!1,f()}}}function Ne(r,l){let s,n,m,_;return n=new Ve({props:{content:l[5].body}}),{key:r,first:null,c(){s=a("div"),ae(n.$$.fragment),m=p(),b(s,"class","tab-item"),x(s,"active",l[1]===l[5].code),this.first=s},m(i,f){d(i,s,f),ne(n,s,null),o(s,m),_=!0},p(i,f){l=i;const v={};f&4&&(v.content=l[5].body),n.$set(v),(!_||f&6)&&x(s,"active",l[1]===l[5].code)},i(i){_||(U(n.$$.fragment,i),_=!0)},o(i){j(n.$$.fragment,i),_=!1},d(i){i&&u(s),ie(n)}}}function Ye(r){var Ae,Be;let l,s,n=r[0].name+"",m,_,i,f,v,g,w,A,J,$,F,ce,L,B,de,K,N=r[0].name+"",Q,ue,pe,V,I,D,W,T,G,fe,X,C,Y,he,Z,be,h,me,R,_e,ke,ve,ee,ge,te,ye,Se,$e,oe,we,le,q,se,P,H,S=[],Te=new Map,Ce,O,y=[],Pe=new Map,M;g=new Xe({props:{js:` - import PocketBase from 'pocketbase'; - - const pb = new PocketBase('${r[3]}'); - - ... - - const authData = await pb.collection('${(Ae=r[0])==null?void 0:Ae.name}').authRefresh(); - - // after the above you can also access the refreshed auth data from the authStore - console.log(pb.authStore.isValid); - console.log(pb.authStore.token); - console.log(pb.authStore.model.id); - `,dart:` - import 'package:pocketbase/pocketbase.dart'; - - final pb = PocketBase('${r[3]}'); - - ... - - final authData = await pb.collection('${(Be=r[0])==null?void 0:Be.name}').authRefresh(); - - // after the above you can also access the refreshed auth data from the authStore - print(pb.authStore.isValid); - print(pb.authStore.token); - print(pb.authStore.model.id); - `}}),R=new Ve({props:{content:"?expand=relField1,relField2.subRelField"}});let z=r[2];const Re=e=>e[5].code;for(let e=0;ee[5].code;for(let e=0;eReturns a new auth response (token and record data) for an - already authenticated record.

-

This method is usually called by users on page/screen reload to ensure that the previously stored - data in pb.authStore is still valid and up-to-date.

`,v=p(),ae(g.$$.fragment),w=p(),A=a("h6"),A.textContent="API details",J=p(),$=a("div"),F=a("strong"),F.textContent="POST",ce=p(),L=a("div"),B=a("p"),de=k("/api/collections/"),K=a("strong"),Q=k(N),ue=k("/auth-refresh"),pe=p(),V=a("p"),V.innerHTML="Requires record Authorization:TOKEN header",I=p(),D=a("div"),D.textContent="Query parameters",W=p(),T=a("table"),G=a("thead"),G.innerHTML=`Param - Type - Description`,fe=p(),X=a("tbody"),C=a("tr"),Y=a("td"),Y.textContent="expand",he=p(),Z=a("td"),Z.innerHTML='String',be=p(),h=a("td"),me=k(`Auto expand record relations. Ex.: - `),ae(R.$$.fragment),_e=k(` - Supports up to 6-levels depth nested relations expansion. `),ke=a("br"),ve=k(` - The expanded relations will be appended to the record under the - `),ee=a("code"),ee.textContent="expand",ge=k(" property (eg. "),te=a("code"),te.textContent='"expand": {"relField1": {...}, ...}',ye=k(`). - `),Se=a("br"),$e=k(` - Only the relations to which the request user has permissions to `),oe=a("strong"),oe.textContent="view",we=k(" will be expanded."),le=p(),q=a("div"),q.textContent="Responses",se=p(),P=a("div"),H=a("div");for(let e=0;es(1,_=v.code);return r.$$set=v=>{"collection"in v&&s(0,m=v.collection)},r.$$.update=()=>{r.$$.dirty&1&&s(2,i=[{code:200,body:JSON.stringify({token:"JWT_TOKEN",record:Oe.dummyCollectionRecord(m)},null,2)},{code:401,body:` - { - "code": 401, - "message": "The request requires valid record authorization token to be set.", - "data": {} - } - `},{code:403,body:` - { - "code": 403, - "message": "The authorized record model is not allowed to perform this action.", - "data": {} - } - `},{code:404,body:` - { - "code": 404, - "message": "Missing auth record context.", - "data": {} - } - `}])},s(3,n=Oe.getApiExampleUrl(We.baseUrl)),[m,_,i,n,f]}class ot extends ze{constructor(l){super(),Ue(this,l,Ze,Ye,je,{collection:0})}}export{ot as default}; diff --git a/ui/dist/assets/AuthRefreshDocs-598c40a9.js b/ui/dist/assets/AuthRefreshDocs-598c40a9.js new file mode 100644 index 00000000..d54d4958 --- /dev/null +++ b/ui/dist/assets/AuthRefreshDocs-598c40a9.js @@ -0,0 +1,82 @@ +import{S as Ue,i as je,s as xe,M as Qe,e as s,w as k,b as p,c as J,f as b,g as d,h as o,m as K,x as ce,N as Oe,P as Je,k as Ke,Q as Ie,n as We,t as N,a as V,o as u,d as I,T as Ge,C as Ee,p as Xe,r as W,u as Ye}from"./index-055843b5.js";import{S as Ze}from"./SdkTabs-1c685373.js";import{F as et}from"./FieldsQueryParam-815b0ee8.js";function Le(r,l,a){const n=r.slice();return n[5]=l[a],n}function Ne(r,l,a){const n=r.slice();return n[5]=l[a],n}function Ve(r,l){let a,n=l[5].code+"",m,_,i,f;function v(){return l[4](l[5])}return{key:r,first:null,c(){a=s("button"),m=k(n),_=p(),b(a,"class","tab-item"),W(a,"active",l[1]===l[5].code),this.first=a},m($,w){d($,a,w),o(a,m),o(a,_),i||(f=Ye(a,"click",v),i=!0)},p($,w){l=$,w&4&&n!==(n=l[5].code+"")&&ce(m,n),w&6&&W(a,"active",l[1]===l[5].code)},d($){$&&u(a),i=!1,f()}}}function ze(r,l){let a,n,m,_;return n=new Qe({props:{content:l[5].body}}),{key:r,first:null,c(){a=s("div"),J(n.$$.fragment),m=p(),b(a,"class","tab-item"),W(a,"active",l[1]===l[5].code),this.first=a},m(i,f){d(i,a,f),K(n,a,null),o(a,m),_=!0},p(i,f){l=i;const v={};f&4&&(v.content=l[5].body),n.$set(v),(!_||f&6)&&W(a,"active",l[1]===l[5].code)},i(i){_||(N(n.$$.fragment,i),_=!0)},o(i){V(n.$$.fragment,i),_=!1},d(i){i&&u(a),I(n)}}}function tt(r){var qe,De;let l,a,n=r[0].name+"",m,_,i,f,v,$,w,B,G,S,z,de,Q,q,ue,X,U=r[0].name+"",Y,pe,fe,j,Z,D,ee,T,te,he,F,C,oe,be,le,me,h,_e,R,ke,ve,$e,ae,ge,se,ye,Se,we,ne,Te,Ce,M,re,H,ie,P,O,y=[],Pe=new Map,Re,E,g=[],Me=new Map,A;$=new Ze({props:{js:` + import PocketBase from 'pocketbase'; + + const pb = new PocketBase('${r[3]}'); + + ... + + const authData = await pb.collection('${(qe=r[0])==null?void 0:qe.name}').authRefresh(); + + // after the above you can also access the refreshed auth data from the authStore + console.log(pb.authStore.isValid); + console.log(pb.authStore.token); + console.log(pb.authStore.model.id); + `,dart:` + import 'package:pocketbase/pocketbase.dart'; + + final pb = PocketBase('${r[3]}'); + + ... + + final authData = await pb.collection('${(De=r[0])==null?void 0:De.name}').authRefresh(); + + // after the above you can also access the refreshed auth data from the authStore + print(pb.authStore.isValid); + print(pb.authStore.token); + print(pb.authStore.model.id); + `}}),R=new Qe({props:{content:"?expand=relField1,relField2.subRelField"}}),M=new et({});let x=r[2];const Ae=e=>e[5].code;for(let e=0;ee[5].code;for(let e=0;eReturns a new auth response (token and record data) for an + already authenticated record.

+

This method is usually called by users on page/screen reload to ensure that the previously stored + data in pb.authStore is still valid and up-to-date.

`,v=p(),J($.$$.fragment),w=p(),B=s("h6"),B.textContent="API details",G=p(),S=s("div"),z=s("strong"),z.textContent="POST",de=p(),Q=s("div"),q=s("p"),ue=k("/api/collections/"),X=s("strong"),Y=k(U),pe=k("/auth-refresh"),fe=p(),j=s("p"),j.innerHTML="Requires record Authorization:TOKEN header",Z=p(),D=s("div"),D.textContent="Query parameters",ee=p(),T=s("table"),te=s("thead"),te.innerHTML=`Param + Type + Description`,he=p(),F=s("tbody"),C=s("tr"),oe=s("td"),oe.textContent="expand",be=p(),le=s("td"),le.innerHTML='String',me=p(),h=s("td"),_e=k(`Auto expand record relations. Ex.: + `),J(R.$$.fragment),ke=k(` + Supports up to 6-levels depth nested relations expansion. `),ve=s("br"),$e=k(` + The expanded relations will be appended to the record under the + `),ae=s("code"),ae.textContent="expand",ge=k(" property (eg. "),se=s("code"),se.textContent='"expand": {"relField1": {...}, ...}',ye=k(`). + `),Se=s("br"),we=k(` + Only the relations to which the request user has permissions to `),ne=s("strong"),ne.textContent="view",Te=k(" will be expanded."),Ce=p(),J(M.$$.fragment),re=p(),H=s("div"),H.textContent="Responses",ie=p(),P=s("div"),O=s("div");for(let e=0;ea(1,_=v.code);return r.$$set=v=>{"collection"in v&&a(0,m=v.collection)},r.$$.update=()=>{r.$$.dirty&1&&a(2,i=[{code:200,body:JSON.stringify({token:"JWT_TOKEN",record:Ee.dummyCollectionRecord(m)},null,2)},{code:401,body:` + { + "code": 401, + "message": "The request requires valid record authorization token to be set.", + "data": {} + } + `},{code:403,body:` + { + "code": 403, + "message": "The authorized record model is not allowed to perform this action.", + "data": {} + } + `},{code:404,body:` + { + "code": 404, + "message": "Missing auth record context.", + "data": {} + } + `}])},a(3,n=Ee.getApiExampleUrl(Xe.baseUrl)),[m,_,i,n,f]}class nt extends Ue{constructor(l){super(),je(this,l,ot,tt,xe,{collection:0})}}export{nt as default}; diff --git a/ui/dist/assets/AuthWithOAuth2Docs-a84f7634.js b/ui/dist/assets/AuthWithOAuth2Docs-4c58b701.js similarity index 51% rename from ui/dist/assets/AuthWithOAuth2Docs-a84f7634.js rename to ui/dist/assets/AuthWithOAuth2Docs-4c58b701.js index f94ade66..8e764973 100644 --- a/ui/dist/assets/AuthWithOAuth2Docs-a84f7634.js +++ b/ui/dist/assets/AuthWithOAuth2Docs-4c58b701.js @@ -1,4 +1,4 @@ -import{S as je,i as Fe,s as Ve,M as He,e as s,w as g,b as h,c as re,f as p,g as r,h as a,m as ce,x as ue,N as Pe,P as Le,k as Ee,Q as Je,n as Ne,t as E,a as J,o as c,d as de,T as Qe,C as Re,p as ze,r as N,u as Ie}from"./index-69e255fe.js";import{S as Ke}from"./SdkTabs-5df68e34.js";function xe(i,l,o){const n=i.slice();return n[5]=l[o],n}function We(i,l,o){const n=i.slice();return n[5]=l[o],n}function Ue(i,l){let o,n=l[5].code+"",m,k,u,b;function _(){return l[4](l[5])}return{key:i,first:null,c(){o=s("button"),m=g(n),k=h(),p(o,"class","tab-item"),N(o,"active",l[1]===l[5].code),this.first=o},m(v,A){r(v,o,A),a(o,m),a(o,k),u||(b=Ie(o,"click",_),u=!0)},p(v,A){l=v,A&4&&n!==(n=l[5].code+"")&&ue(m,n),A&6&&N(o,"active",l[1]===l[5].code)},d(v){v&&c(o),u=!1,b()}}}function Be(i,l){let o,n,m,k;return n=new He({props:{content:l[5].body}}),{key:i,first:null,c(){o=s("div"),re(n.$$.fragment),m=h(),p(o,"class","tab-item"),N(o,"active",l[1]===l[5].code),this.first=o},m(u,b){r(u,o,b),ce(n,o,null),a(o,m),k=!0},p(u,b){l=u;const _={};b&4&&(_.content=l[5].body),n.$set(_),(!k||b&6)&&N(o,"active",l[1]===l[5].code)},i(u){k||(E(n.$$.fragment,u),k=!0)},o(u){J(n.$$.fragment,u),k=!1},d(u){u&&c(o),de(n)}}}function Ge(i){let l,o,n=i[0].name+"",m,k,u,b,_,v,A,D,Q,S,j,he,F,M,pe,z,V=i[0].name+"",I,be,K,P,G,R,X,x,Y,y,Z,fe,ee,$,te,me,ae,ke,f,ge,C,_e,ve,we,le,Oe,oe,Ae,Se,ye,se,$e,ne,W,ie,T,U,O=[],Te=new Map,Ce,B,w=[],qe=new Map,q;v=new Ke({props:{js:` +import{S as Ve,i as Le,s as Ee,M as je,e as s,w as k,b as h,c as z,f as p,g as r,h as a,m as I,x as he,N as xe,P as Je,k as Ne,Q as Qe,n as ze,t as V,a as L,o as c,d as K,T as Ie,C as We,p as Ke,r as G,u as Ge}from"./index-055843b5.js";import{S as Xe}from"./SdkTabs-1c685373.js";import{F as Ye}from"./FieldsQueryParam-815b0ee8.js";function Ue(i,l,o){const n=i.slice();return n[5]=l[o],n}function Be(i,l,o){const n=i.slice();return n[5]=l[o],n}function Fe(i,l){let o,n=l[5].code+"",m,g,u,b;function _(){return l[4](l[5])}return{key:i,first:null,c(){o=s("button"),m=k(n),g=h(),p(o,"class","tab-item"),G(o,"active",l[1]===l[5].code),this.first=o},m(v,A){r(v,o,A),a(o,m),a(o,g),u||(b=Ge(o,"click",_),u=!0)},p(v,A){l=v,A&4&&n!==(n=l[5].code+"")&&he(m,n),A&6&&G(o,"active",l[1]===l[5].code)},d(v){v&&c(o),u=!1,b()}}}function He(i,l){let o,n,m,g;return n=new je({props:{content:l[5].body}}),{key:i,first:null,c(){o=s("div"),z(n.$$.fragment),m=h(),p(o,"class","tab-item"),G(o,"active",l[1]===l[5].code),this.first=o},m(u,b){r(u,o,b),I(n,o,null),a(o,m),g=!0},p(u,b){l=u;const _={};b&4&&(_.content=l[5].body),n.$set(_),(!g||b&6)&&G(o,"active",l[1]===l[5].code)},i(u){g||(V(n.$$.fragment,u),g=!0)},o(u){L(n.$$.fragment,u),g=!1},d(u){u&&c(o),K(n)}}}function Ze(i){let l,o,n=i[0].name+"",m,g,u,b,_,v,A,P,X,S,E,pe,J,M,be,Y,N=i[0].name+"",Z,fe,ee,R,te,x,ae,W,le,y,oe,me,U,$,se,ge,ne,ke,f,_e,C,ve,we,Oe,ie,Ae,re,Se,ye,$e,ce,Te,Ce,q,ue,B,de,T,F,O=[],qe=new Map,De,H,w=[],Pe=new Map,D;v=new Xe({props:{js:` import PocketBase from 'pocketbase'; const pb = new PocketBase('${i[3]}'); @@ -45,10 +45,10 @@ import{S as je,i as Fe,s as Ve,M as He,e as s,w as g,b as h,c as re,f as p,g as // "logout" the last authenticated model pb.authStore.clear(); - `}}),C=new He({props:{content:"?expand=relField1,relField2.subRelField"}});let L=i[2];const De=e=>e[5].code;for(let e=0;ee[5].code;for(let e=0;eAuthenticate with an OAuth2 provider and returns a new auth token and record data.

+ `}}),C=new je({props:{content:"?expand=relField1,relField2.subRelField"}}),q=new Ye({});let Q=i[2];const Me=e=>e[5].code;for(let e=0;ee[5].code;for(let e=0;eAuthenticate with an OAuth2 provider and returns a new auth token and record data.

For more details please check the OAuth2 integration documentation - .

`,_=h(),re(v.$$.fragment),A=h(),D=s("h6"),D.textContent="API details",Q=h(),S=s("div"),j=s("strong"),j.textContent="POST",he=h(),F=s("div"),M=s("p"),pe=g("/api/collections/"),z=s("strong"),I=g(V),be=g("/auth-with-oauth2"),K=h(),P=s("div"),P.textContent="Body Parameters",G=h(),R=s("table"),R.innerHTML=`Param + .

`,_=h(),z(v.$$.fragment),A=h(),P=s("h6"),P.textContent="API details",X=h(),S=s("div"),E=s("strong"),E.textContent="POST",pe=h(),J=s("div"),M=s("p"),be=k("/api/collections/"),Y=s("strong"),Z=k(N),fe=k("/auth-with-oauth2"),ee=h(),R=s("div"),R.textContent="Body Parameters",te=h(),x=s("table"),x.innerHTML=`Param Type Description
Required @@ -75,15 +75,15 @@ import{S as je,i as Fe,s as Ve,M as He,e as s,w as g,b as h,c as re,f as p,g as regular create action.
The data can only be in json, aka. multipart/form-data and files - upload currently are not supported during OAuth2 sign-ups.

`,X=h(),x=s("div"),x.textContent="Query parameters",Y=h(),y=s("table"),Z=s("thead"),Z.innerHTML=`Param + upload currently are not supported during OAuth2 sign-ups.

`,ae=h(),W=s("div"),W.textContent="Query parameters",le=h(),y=s("table"),oe=s("thead"),oe.innerHTML=`Param Type - Description`,fe=h(),ee=s("tbody"),$=s("tr"),te=s("td"),te.textContent="expand",me=h(),ae=s("td"),ae.innerHTML='String',ke=h(),f=s("td"),ge=g(`Auto expand record relations. Ex.: - `),re(C.$$.fragment),_e=g(` - Supports up to 6-levels depth nested relations expansion. `),ve=s("br"),we=g(` + Description`,me=h(),U=s("tbody"),$=s("tr"),se=s("td"),se.textContent="expand",ge=h(),ne=s("td"),ne.innerHTML='String',ke=h(),f=s("td"),_e=k(`Auto expand record relations. Ex.: + `),z(C.$$.fragment),ve=k(` + Supports up to 6-levels depth nested relations expansion. `),we=s("br"),Oe=k(` The expanded relations will be appended to the record under the - `),le=s("code"),le.textContent="expand",Oe=g(" property (eg. "),oe=s("code"),oe.textContent='"expand": {"relField1": {...}, ...}',Ae=g(`). - `),Se=s("br"),ye=g(` - Only the relations to which the request user has permissions to `),se=s("strong"),se.textContent="view",$e=g(" will be expanded."),ne=h(),W=s("div"),W.textContent="Responses",ie=h(),T=s("div"),U=s("div");for(let e=0;eo(1,k=_.code);return i.$$set=_=>{"collection"in _&&o(0,m=_.collection)},i.$$.update=()=>{i.$$.dirty&1&&o(2,u=[{code:200,body:JSON.stringify({token:"JWT_AUTH_TOKEN",record:Re.dummyCollectionRecord(m),meta:{id:"abc123",name:"John Doe",username:"john.doe",email:"test@example.com",avatarUrl:"https://example.com/avatar.png",accessToken:"...",refreshToken:"...",rawUser:{}}},null,2)},{code:400,body:` + `),v.$set(d),(!D||t&1)&&N!==(N=e[0].name+"")&&he(Z,N),t&6&&(Q=e[2],O=xe(O,t,Me,1,e,Q,qe,F,Je,Fe,null,Be)),t&6&&(j=e[2],Ne(),w=xe(w,t,Re,1,e,j,Pe,H,Qe,He,null,Ue),ze())},i(e){if(!D){V(v.$$.fragment,e),V(C.$$.fragment,e),V(q.$$.fragment,e);for(let t=0;to(1,g=_.code);return i.$$set=_=>{"collection"in _&&o(0,m=_.collection)},i.$$.update=()=>{i.$$.dirty&1&&o(2,u=[{code:200,body:JSON.stringify({token:"JWT_AUTH_TOKEN",record:We.dummyCollectionRecord(m),meta:{id:"abc123",name:"John Doe",username:"john.doe",email:"test@example.com",avatarUrl:"https://example.com/avatar.png",accessToken:"...",refreshToken:"...",rawUser:{}}},null,2)},{code:400,body:` { "code": 400, "message": "An error occurred while submitting the form.", @@ -141,4 +141,4 @@ import{S as je,i as Fe,s as Ve,M as He,e as s,w as g,b as h,c as re,f as p,g as } } } - `}])},o(3,n=Re.getApiExampleUrl(ze.baseUrl)),[m,k,u,n,b]}class et extends je{constructor(l){super(),Fe(this,l,Xe,Ge,Ve,{collection:0})}}export{et as default}; + `}])},o(3,n=We.getApiExampleUrl(Ke.baseUrl)),[m,g,u,n,b]}class ot extends Ve{constructor(l){super(),Le(this,l,et,Ze,Ee,{collection:0})}}export{ot as default}; diff --git a/ui/dist/assets/AuthWithPasswordDocs-29a3e2b7.js b/ui/dist/assets/AuthWithPasswordDocs-29a3e2b7.js deleted file mode 100644 index 7d320d53..00000000 --- a/ui/dist/assets/AuthWithPasswordDocs-29a3e2b7.js +++ /dev/null @@ -1,106 +0,0 @@ -import{S as Se,i as ve,s as we,M as ke,e as s,w as f,b as u,c as Tt,f as h,g as r,h as o,m as At,x as Ot,N as ce,P as ye,k as ge,Q as Pe,n as $e,t as tt,a as et,o as c,d as Mt,T as Re,C as de,p as Ce,r as lt,u as Te}from"./index-69e255fe.js";import{S as Ae}from"./SdkTabs-5df68e34.js";function ue(n,e,l){const i=n.slice();return i[8]=e[l],i}function fe(n,e,l){const i=n.slice();return i[8]=e[l],i}function Oe(n){let e;return{c(){e=f("email")},m(l,i){r(l,e,i)},d(l){l&&c(e)}}}function Me(n){let e;return{c(){e=f("username")},m(l,i){r(l,e,i)},d(l){l&&c(e)}}}function Ue(n){let e;return{c(){e=f("username/email")},m(l,i){r(l,e,i)},d(l){l&&c(e)}}}function pe(n){let e;return{c(){e=s("strong"),e.textContent="username"},m(l,i){r(l,e,i)},d(l){l&&c(e)}}}function be(n){let e;return{c(){e=f("or")},m(l,i){r(l,e,i)},d(l){l&&c(e)}}}function me(n){let e;return{c(){e=s("strong"),e.textContent="email"},m(l,i){r(l,e,i)},d(l){l&&c(e)}}}function he(n,e){let l,i=e[8].code+"",S,m,p,d;function _(){return e[7](e[8])}return{key:n,first:null,c(){l=s("button"),S=f(i),m=u(),h(l,"class","tab-item"),lt(l,"active",e[3]===e[8].code),this.first=l},m(R,C){r(R,l,C),o(l,S),o(l,m),p||(d=Te(l,"click",_),p=!0)},p(R,C){e=R,C&16&&i!==(i=e[8].code+"")&&Ot(S,i),C&24&<(l,"active",e[3]===e[8].code)},d(R){R&&c(l),p=!1,d()}}}function _e(n,e){let l,i,S,m;return i=new ke({props:{content:e[8].body}}),{key:n,first:null,c(){l=s("div"),Tt(i.$$.fragment),S=u(),h(l,"class","tab-item"),lt(l,"active",e[3]===e[8].code),this.first=l},m(p,d){r(p,l,d),At(i,l,null),o(l,S),m=!0},p(p,d){e=p;const _={};d&16&&(_.content=e[8].body),i.$set(_),(!m||d&24)&<(l,"active",e[3]===e[8].code)},i(p){m||(tt(i.$$.fragment,p),m=!0)},o(p){et(i.$$.fragment,p),m=!1},d(p){p&&c(l),Mt(i)}}}function De(n){var se,ne;let e,l,i=n[0].name+"",S,m,p,d,_,R,C,T,B,Ut,ot,O,at,F,st,M,G,Dt,X,N,Et,nt,Z=n[0].name+"",it,Wt,rt,I,ct,U,dt,Lt,V,D,ut,Bt,ft,Ht,P,Yt,pt,bt,mt,qt,ht,_t,j,kt,E,St,Ft,vt,W,wt,Nt,yt,It,k,Vt,H,jt,Jt,Qt,gt,Kt,Pt,zt,Gt,Xt,$t,Zt,Rt,J,Ct,L,Q,A=[],xt=new Map,te,K,v=[],ee=new Map,Y;function le(t,a){if(t[1]&&t[2])return Ue;if(t[1])return Me;if(t[2])return Oe}let q=le(n),$=q&&q(n);O=new Ae({props:{js:` - import PocketBase from 'pocketbase'; - - const pb = new PocketBase('${n[6]}'); - - ... - - const authData = await pb.collection('${(se=n[0])==null?void 0:se.name}').authWithPassword( - '${n[5]}', - 'YOUR_PASSWORD', - ); - - // after the above you can also access the auth data from the authStore - console.log(pb.authStore.isValid); - console.log(pb.authStore.token); - console.log(pb.authStore.model.id); - - // "logout" the last authenticated account - pb.authStore.clear(); - `,dart:` - import 'package:pocketbase/pocketbase.dart'; - - final pb = PocketBase('${n[6]}'); - - ... - - final authData = await pb.collection('${(ne=n[0])==null?void 0:ne.name}').authWithPassword( - '${n[5]}', - 'YOUR_PASSWORD', - ); - - // after the above you can also access the auth data from the authStore - print(pb.authStore.isValid); - print(pb.authStore.token); - print(pb.authStore.model.id); - - // "logout" the last authenticated account - pb.authStore.clear(); - `}});let w=n[1]&&pe(),y=n[1]&&n[2]&&be(),g=n[2]&&me();H=new ke({props:{content:"?expand=relField1,relField2.subRelField"}});let x=n[4];const oe=t=>t[8].code;for(let t=0;tt[8].code;for(let t=0;tParam - Type - Description`,Lt=u(),V=s("tbody"),D=s("tr"),ut=s("td"),ut.innerHTML=`
Required - identity
`,Bt=u(),ft=s("td"),ft.innerHTML='String',Ht=u(),P=s("td"),Yt=f(`The - `),w&&w.c(),pt=u(),y&&y.c(),bt=u(),g&&g.c(),mt=f(` - of the record to authenticate.`),qt=u(),ht=s("tr"),ht.innerHTML=`
Required - password
- String - The auth record password.`,_t=u(),j=s("div"),j.textContent="Query parameters",kt=u(),E=s("table"),St=s("thead"),St.innerHTML=`Param - Type - Description`,Ft=u(),vt=s("tbody"),W=s("tr"),wt=s("td"),wt.textContent="expand",Nt=u(),yt=s("td"),yt.innerHTML='String',It=u(),k=s("td"),Vt=f(`Auto expand record relations. Ex.: - `),Tt(H.$$.fragment),jt=f(` - Supports up to 6-levels depth nested relations expansion. `),Jt=s("br"),Qt=f(` - The expanded relations will be appended to the record under the - `),gt=s("code"),gt.textContent="expand",Kt=f(" property (eg. "),Pt=s("code"),Pt.textContent='"expand": {"relField1": {...}, ...}',zt=f(`). - `),Gt=s("br"),Xt=f(` - Only the relations to which the request user has permissions to `),$t=s("strong"),$t.textContent="view",Zt=f(" will be expanded."),Rt=u(),J=s("div"),J.textContent="Responses",Ct=u(),L=s("div"),Q=s("div");for(let t=0;tl(3,_=T.code);return n.$$set=T=>{"collection"in T&&l(0,d=T.collection)},n.$$.update=()=>{var T,B;n.$$.dirty&1&&l(2,S=(T=d==null?void 0:d.options)==null?void 0:T.allowEmailAuth),n.$$.dirty&1&&l(1,m=(B=d==null?void 0:d.options)==null?void 0:B.allowUsernameAuth),n.$$.dirty&6&&l(5,p=m&&S?"YOUR_USERNAME_OR_EMAIL":m?"YOUR_USERNAME":"YOUR_EMAIL"),n.$$.dirty&1&&l(4,R=[{code:200,body:JSON.stringify({token:"JWT_TOKEN",record:de.dummyCollectionRecord(d)},null,2)},{code:400,body:` - { - "code": 400, - "message": "Failed to authenticate.", - "data": { - "identity": { - "code": "validation_required", - "message": "Missing required value." - } - } - } - `}])},l(6,i=de.getApiExampleUrl(Ce.baseUrl)),[d,m,S,_,R,p,i,C]}class Be extends Se{constructor(e){super(),ve(this,e,Ee,De,we,{collection:0})}}export{Be as default}; diff --git a/ui/dist/assets/AuthWithPasswordDocs-7af159f4.js b/ui/dist/assets/AuthWithPasswordDocs-7af159f4.js new file mode 100644 index 00000000..f830a1bf --- /dev/null +++ b/ui/dist/assets/AuthWithPasswordDocs-7af159f4.js @@ -0,0 +1,106 @@ +import{S as ve,i as ye,s as ge,M as we,e as s,w as f,b as d,c as ot,f as h,g as r,h as e,m as st,x as Ut,N as ue,P as $e,k as Pe,Q as Re,n as Ce,t as Z,a as x,o as c,d as nt,T as Te,C as fe,p as Ae,r as it,u as Oe}from"./index-055843b5.js";import{S as Me}from"./SdkTabs-1c685373.js";import{F as Ue}from"./FieldsQueryParam-815b0ee8.js";function pe(n,l,a){const i=n.slice();return i[8]=l[a],i}function be(n,l,a){const i=n.slice();return i[8]=l[a],i}function De(n){let l;return{c(){l=f("email")},m(a,i){r(a,l,i)},d(a){a&&c(l)}}}function Ee(n){let l;return{c(){l=f("username")},m(a,i){r(a,l,i)},d(a){a&&c(l)}}}function We(n){let l;return{c(){l=f("username/email")},m(a,i){r(a,l,i)},d(a){a&&c(l)}}}function me(n){let l;return{c(){l=s("strong"),l.textContent="username"},m(a,i){r(a,l,i)},d(a){a&&c(l)}}}function he(n){let l;return{c(){l=f("or")},m(a,i){r(a,l,i)},d(a){a&&c(l)}}}function _e(n){let l;return{c(){l=s("strong"),l.textContent="email"},m(a,i){r(a,l,i)},d(a){a&&c(l)}}}function ke(n,l){let a,i=l[8].code+"",S,m,p,u;function _(){return l[7](l[8])}return{key:n,first:null,c(){a=s("button"),S=f(i),m=d(),h(a,"class","tab-item"),it(a,"active",l[3]===l[8].code),this.first=a},m(R,C){r(R,a,C),e(a,S),e(a,m),p||(u=Oe(a,"click",_),p=!0)},p(R,C){l=R,C&16&&i!==(i=l[8].code+"")&&Ut(S,i),C&24&&it(a,"active",l[3]===l[8].code)},d(R){R&&c(a),p=!1,u()}}}function Se(n,l){let a,i,S,m;return i=new we({props:{content:l[8].body}}),{key:n,first:null,c(){a=s("div"),ot(i.$$.fragment),S=d(),h(a,"class","tab-item"),it(a,"active",l[3]===l[8].code),this.first=a},m(p,u){r(p,a,u),st(i,a,null),e(a,S),m=!0},p(p,u){l=p;const _={};u&16&&(_.content=l[8].body),i.$set(_),(!m||u&24)&&it(a,"active",l[3]===l[8].code)},i(p){m||(Z(i.$$.fragment,p),m=!0)},o(p){x(i.$$.fragment,p),m=!1},d(p){p&&c(a),nt(i)}}}function Le(n){var ie,re;let l,a,i=n[0].name+"",S,m,p,u,_,R,C,T,B,Dt,rt,O,ct,N,dt,M,tt,Et,et,I,Wt,ut,lt=n[0].name+"",ft,Lt,pt,V,bt,U,mt,Bt,Q,D,ht,qt,_t,Ft,$,Ht,kt,St,wt,Yt,vt,yt,j,gt,E,$t,Nt,J,W,Pt,It,Rt,Vt,k,Qt,q,jt,Jt,Kt,Ct,zt,Tt,Gt,Xt,Zt,At,xt,te,F,Ot,K,Mt,L,z,A=[],ee=new Map,le,G,w=[],ae=new Map,H;function oe(t,o){if(t[1]&&t[2])return We;if(t[1])return Ee;if(t[2])return De}let Y=oe(n),P=Y&&Y(n);O=new Me({props:{js:` + import PocketBase from 'pocketbase'; + + const pb = new PocketBase('${n[6]}'); + + ... + + const authData = await pb.collection('${(ie=n[0])==null?void 0:ie.name}').authWithPassword( + '${n[5]}', + 'YOUR_PASSWORD', + ); + + // after the above you can also access the auth data from the authStore + console.log(pb.authStore.isValid); + console.log(pb.authStore.token); + console.log(pb.authStore.model.id); + + // "logout" the last authenticated account + pb.authStore.clear(); + `,dart:` + import 'package:pocketbase/pocketbase.dart'; + + final pb = PocketBase('${n[6]}'); + + ... + + final authData = await pb.collection('${(re=n[0])==null?void 0:re.name}').authWithPassword( + '${n[5]}', + 'YOUR_PASSWORD', + ); + + // after the above you can also access the auth data from the authStore + print(pb.authStore.isValid); + print(pb.authStore.token); + print(pb.authStore.model.id); + + // "logout" the last authenticated account + pb.authStore.clear(); + `}});let v=n[1]&&me(),y=n[1]&&n[2]&&he(),g=n[2]&&_e();q=new we({props:{content:"?expand=relField1,relField2.subRelField"}}),F=new Ue({});let at=n[4];const se=t=>t[8].code;for(let t=0;tt[8].code;for(let t=0;tParam + Type + Description`,Bt=d(),Q=s("tbody"),D=s("tr"),ht=s("td"),ht.innerHTML=`
Required + identity
`,qt=d(),_t=s("td"),_t.innerHTML='String',Ft=d(),$=s("td"),Ht=f(`The + `),v&&v.c(),kt=d(),y&&y.c(),St=d(),g&&g.c(),wt=f(` + of the record to authenticate.`),Yt=d(),vt=s("tr"),vt.innerHTML=`
Required + password
+ String + The auth record password.`,yt=d(),j=s("div"),j.textContent="Query parameters",gt=d(),E=s("table"),$t=s("thead"),$t.innerHTML=`Param + Type + Description`,Nt=d(),J=s("tbody"),W=s("tr"),Pt=s("td"),Pt.textContent="expand",It=d(),Rt=s("td"),Rt.innerHTML='String',Vt=d(),k=s("td"),Qt=f(`Auto expand record relations. Ex.: + `),ot(q.$$.fragment),jt=f(` + Supports up to 6-levels depth nested relations expansion. `),Jt=s("br"),Kt=f(` + The expanded relations will be appended to the record under the + `),Ct=s("code"),Ct.textContent="expand",zt=f(" property (eg. "),Tt=s("code"),Tt.textContent='"expand": {"relField1": {...}, ...}',Gt=f(`). + `),Xt=s("br"),Zt=f(` + Only the relations to which the request user has permissions to `),At=s("strong"),At.textContent="view",xt=f(" will be expanded."),te=d(),ot(F.$$.fragment),Ot=d(),K=s("div"),K.textContent="Responses",Mt=d(),L=s("div"),z=s("div");for(let t=0;ta(3,_=T.code);return n.$$set=T=>{"collection"in T&&a(0,u=T.collection)},n.$$.update=()=>{var T,B;n.$$.dirty&1&&a(2,S=(T=u==null?void 0:u.options)==null?void 0:T.allowEmailAuth),n.$$.dirty&1&&a(1,m=(B=u==null?void 0:u.options)==null?void 0:B.allowUsernameAuth),n.$$.dirty&6&&a(5,p=m&&S?"YOUR_USERNAME_OR_EMAIL":m?"YOUR_USERNAME":"YOUR_EMAIL"),n.$$.dirty&1&&a(4,R=[{code:200,body:JSON.stringify({token:"JWT_TOKEN",record:fe.dummyCollectionRecord(u)},null,2)},{code:400,body:` + { + "code": 400, + "message": "Failed to authenticate.", + "data": { + "identity": { + "code": "validation_required", + "message": "Missing required value." + } + } + } + `}])},a(6,i=fe.getApiExampleUrl(Ae.baseUrl)),[u,m,S,_,R,p,i,C]}class Ye extends ve{constructor(l){super(),ye(this,l,Be,Le,ge,{collection:0})}}export{Ye as default}; diff --git a/ui/dist/assets/CodeEditor-ad47c205.js b/ui/dist/assets/CodeEditor-fa610c65.js similarity index 99% rename from ui/dist/assets/CodeEditor-ad47c205.js rename to ui/dist/assets/CodeEditor-fa610c65.js index d6b1ac50..70edb580 100644 --- a/ui/dist/assets/CodeEditor-ad47c205.js +++ b/ui/dist/assets/CodeEditor-fa610c65.js @@ -1,4 +1,4 @@ -import{S as gt,i as Pt,s as mt,e as Xt,f as Zt,U as E,g as bt,y as Re,o as wt,I as kt,J as yt,K as xt,H as Yt,C as vt,L as Tt}from"./index-69e255fe.js";import{P as Ut,N as qt,u as _t,D as Wt,v as xe,T as B,I as Ye,w as re,x as l,y as Vt,L as se,z as ne,A as G,B as le,F as yO,G as oe,H as W,J as xO,K as YO,M as vO,E as v,O as z,Q as Ct,R as Rt,U as TO,V as X,W as jt,X as Gt,a as V,h as zt,b as At,c as It,d as Et,e as Nt,s as Dt,t as Bt,f as Jt,g as Lt,r as Mt,i as Ft,k as Ht,j as Kt,l as ea,m as Oa,n as ta,o as aa,p as ia,q as je,C as N}from"./index-84ab2e4b.js";class F{constructor(e,a,t,i,r,s,n,o,c,f=0,Q){this.p=e,this.stack=a,this.state=t,this.reducePos=i,this.pos=r,this.score=s,this.buffer=n,this.bufferBase=o,this.curContext=c,this.lookAhead=f,this.parent=Q}toString(){return`[${this.stack.filter((e,a)=>a%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,a,t=0){let i=e.parser.context;return new F(e,[],a,t,t,0,[],0,i?new Ge(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,a){this.stack.push(this.state,a,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var a;let t=e>>19,i=e&65535,{parser:r}=this.p,s=r.dynamicPrecedence(i);if(s&&(this.score+=s),t==0){this.pushState(r.getGoto(this.state,i,!0),this.reducePos),i=2e3&&!(!((a=this.p.parser.nodeSet.types[i])===null||a===void 0)&&a.isAnonymous)&&(o==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=c):this.p.lastBigReductionSizen;)this.stack.pop();this.reduceContext(i,o)}storeNode(e,a,t,i=4,r=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&s.buffer[n-4]==0&&s.buffer[n-1]>-1){if(a==t)return;if(s.buffer[n-2]>=a){s.buffer[n-2]=t;return}}}if(!r||this.pos==t)this.buffer.push(e,a,t,i);else{let s=this.buffer.length;if(s>0&&this.buffer[s-4]!=0)for(;s>0&&this.buffer[s-2]>t;)this.buffer[s]=this.buffer[s-4],this.buffer[s+1]=this.buffer[s-3],this.buffer[s+2]=this.buffer[s-2],this.buffer[s+3]=this.buffer[s-1],s-=4,i>4&&(i-=4);this.buffer[s]=e,this.buffer[s+1]=a,this.buffer[s+2]=t,this.buffer[s+3]=i}}shift(e,a,t){let i=this.pos;if(e&131072)this.pushState(e&65535,this.pos);else if(e&262144)this.pos=t,this.shiftContext(a,i),a<=this.p.parser.maxNode&&this.buffer.push(a,i,t,4);else{let r=e,{parser:s}=this.p;(t>this.pos||a<=s.maxNode)&&(this.pos=t,s.stateFlag(r,1)||(this.reducePos=t)),this.pushState(r,i),this.shiftContext(a,i),a<=s.maxNode&&this.buffer.push(a,i,t,4)}}apply(e,a,t){e&65536?this.reduce(e):this.shift(e,a,t)}useNode(e,a){let t=this.p.reused.length-1;(t<0||this.p.reused[t]!=e)&&(this.p.reused.push(e),t++);let i=this.pos;this.reducePos=this.pos=i+e.length,this.pushState(a,i),this.buffer.push(t,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,a=e.buffer.length;for(;a>0&&e.buffer[a-2]>e.reducePos;)a-=4;let t=e.buffer.slice(a),i=e.bufferBase+a;for(;e&&i==e.bufferBase;)e=e.parent;return new F(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,t,i,this.curContext,this.lookAhead,e)}recoverByDelete(e,a){let t=e<=this.p.parser.maxNode;t&&this.storeNode(e,this.pos,a,4),this.storeNode(0,this.pos,a,t?8:4),this.pos=this.reducePos=a,this.score-=190}canShift(e){for(let a=new ra(this);;){let t=this.p.parser.stateSlot(a.state,4)||this.p.parser.hasAction(a.state,e);if(t==0)return!1;if(!(t&65536))return!0;a.reduce(t)}}recoverByInsert(e){if(this.stack.length>=300)return[];let a=this.p.parser.nextStates(this.state);if(a.length>8||this.stack.length>=120){let i=[];for(let r=0,s;ro&1&&n==s)||i.push(a[r],s)}a=i}let t=[];for(let i=0;i>19,i=e&65535,r=this.stack.length-t*3;if(r<0||a.getGoto(this.stack[r],i,!1)<0)return!1;this.storeNode(0,this.reducePos,this.reducePos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(e),!0}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let a=0;athis.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class Ge{constructor(e,a){this.tracker=e,this.context=a,this.hash=e.strict?e.hash(a):0}}var ze;(function(O){O[O.Insert=200]="Insert",O[O.Delete=190]="Delete",O[O.Reduce=100]="Reduce",O[O.MaxNext=4]="MaxNext",O[O.MaxInsertStackDepth=300]="MaxInsertStackDepth",O[O.DampenInsertStackDepth=120]="DampenInsertStackDepth",O[O.MinBigReduction=2e3]="MinBigReduction"})(ze||(ze={}));class ra{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let a=e&65535,t=e>>19;t==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(t-1)*3;let i=this.start.p.parser.getGoto(this.stack[this.base-3],a,!0);this.state=i}}class H{constructor(e,a,t){this.stack=e,this.pos=a,this.index=t,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,a=e.bufferBase+e.buffer.length){return new H(e,a,a-e.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new H(this.stack,this.pos,this.index)}}function j(O,e=Uint16Array){if(typeof O!="string")return O;let a=null;for(let t=0,i=0;t=92&&s--,s>=34&&s--;let o=s-32;if(o>=46&&(o-=46,n=!0),r+=o,n)break;r*=46}a?a[i++]=r:a=new e(r)}return a}class J{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const Ae=new J;class sa{constructor(e,a){this.input=e,this.ranges=a,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=Ae,this.rangeIndex=0,this.pos=this.chunkPos=a[0].from,this.range=a[0],this.end=a[a.length-1].to,this.readNext()}resolveOffset(e,a){let t=this.range,i=this.rangeIndex,r=this.pos+e;for(;rt.to:r>=t.to;){if(i==this.ranges.length-1)return null;let s=this.ranges[++i];r+=s.from-t.to,t=s}return r}clipPos(e){if(e>=this.range.from&&ee)return Math.max(e,a.from);return this.end}peek(e){let a=this.chunkOff+e,t,i;if(a>=0&&a=this.chunk2Pos&&tn.to&&(this.chunk2=this.chunk2.slice(0,n.to-t)),i=this.chunk2.charCodeAt(0)}}return t>=this.token.lookAhead&&(this.token.lookAhead=t+1),i}acceptToken(e,a=0){let t=a?this.resolveOffset(a,-1):this.pos;if(t==null||t=this.chunk2Pos&&this.posthis.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,a){if(a?(this.token=a,a.start=e,a.lookAhead=e+1,a.value=a.extended=-1):this.token=Ae,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e=this.chunkPos&&a<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,a-this.chunkPos);if(e>=this.chunk2Pos&&a<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,a-this.chunk2Pos);if(e>=this.range.from&&a<=this.range.to)return this.input.read(e,a);let t="";for(let i of this.ranges){if(i.from>=a)break;i.to>e&&(t+=this.input.read(Math.max(i.from,e),Math.min(i.to,a)))}return t}}class q{constructor(e,a){this.data=e,this.id=a}token(e,a){let{parser:t}=a.p;UO(this.data,e,a,this.id,t.data,t.tokenPrecTable)}}q.prototype.contextual=q.prototype.fallback=q.prototype.extend=!1;class Xe{constructor(e,a,t){this.precTable=a,this.elseToken=t,this.data=typeof e=="string"?j(e):e}token(e,a){let t=e.pos,i=0;for(;UO(this.data,e,a,0,this.data,this.precTable),!(e.token.value>-1);){if(this.elseToken==null)return;if(e.next<0)break;e.advance(),e.reset(e.pos,e.token),i++}i&&(e.reset(t,e.token),e.acceptToken(this.elseToken,i))}}Xe.prototype.contextual=q.prototype.fallback=q.prototype.extend=!1;class b{constructor(e,a={}){this.token=e,this.contextual=!!a.contextual,this.fallback=!!a.fallback,this.extend=!!a.extend}}function UO(O,e,a,t,i,r){let s=0,n=1<0){let d=O[u];if(o.allows(d)&&(e.token.value==-1||e.token.value==d||na(d,e.token.value,i,r))){e.acceptToken(d);break}}let f=e.next,Q=0,h=O[s+2];if(e.next<0&&h>Q&&O[c+h*3-3]==65535&&O[c+h*3-3]==65535){s=O[c+h*3-1];continue e}for(;Q>1,d=c+u+(u<<1),$=O[d],g=O[d+1]||65536;if(f<$)h=u;else if(f>=g)Q=u+1;else{s=O[d+2],e.advance();continue e}}break}}function Ie(O,e,a){for(let t=e,i;(i=O[t])!=65535;t++)if(i==a)return t-e;return-1}function na(O,e,a,t){let i=Ie(a,t,e);return i<0||Ie(a,t,O)e)&&!t.type.isError)return a<0?Math.max(0,Math.min(t.to-1,e-25)):Math.min(O.length,Math.max(t.from+1,e+25));if(a<0?t.prevSibling():t.nextSibling())break;if(!t.parent())return a<0?0:O.length}}class la{constructor(e,a){this.fragments=e,this.nodeSet=a,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?Ne(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?Ne(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(ee)return this.nextStart=s,null;if(r instanceof B){if(s==e){if(s=Math.max(this.safeFrom,e)&&(this.trees.push(r),this.start.push(s),this.index.push(0))}else this.index[a]++,this.nextStart=s+r.length}}}class oa{constructor(e,a){this.stream=a,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(t=>new J)}getActions(e){let a=0,t=null,{parser:i}=e.p,{tokenizers:r}=i,s=i.stateSlot(e.state,3),n=e.curContext?e.curContext.hash:0,o=0;for(let c=0;cQ.end+25&&(o=Math.max(Q.lookAhead,o)),Q.value!=0)){let h=a;if(Q.extended>-1&&(a=this.addActions(e,Q.extended,Q.end,a)),a=this.addActions(e,Q.value,Q.end,a),!f.extend&&(t=Q,a>h))break}}for(;this.actions.length>a;)this.actions.pop();return o&&e.setLookAhead(o),!t&&e.pos==this.stream.end&&(t=new J,t.value=e.p.parser.eofTerm,t.start=t.end=e.pos,a=this.addActions(e,t.value,t.end,a)),this.mainToken=t,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let a=new J,{pos:t,p:i}=e;return a.start=t,a.end=Math.min(t+1,i.stream.end),a.value=t==i.stream.end?i.parser.eofTerm:0,a}updateCachedToken(e,a,t){let i=this.stream.clipPos(t.pos);if(a.token(this.stream.reset(i,e),t),e.value>-1){let{parser:r}=t.p;for(let s=0;s=0&&t.p.parser.dialect.allows(n>>1)){n&1?e.extended=n>>1:e.value=n>>1;break}}}else e.value=0,e.end=this.stream.clipPos(i+1)}putAction(e,a,t,i){for(let r=0;re.bufferLength*4?new la(t,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,a=this.minStackPos,t=this.stacks=[],i,r;if(this.bigReductionCount>300&&e.length==1){let[s]=e;for(;s.forceReduce()&&s.stack.length&&s.stack[s.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let s=0;sa)t.push(n);else{if(this.advanceStack(n,t,e))continue;{i||(i=[],r=[]),i.push(n);let o=this.tokens.getMainToken(n);r.push(o.value,o.end)}}break}}if(!t.length){let s=i&&ua(i);if(s)return this.stackToTree(s);if(this.parser.strict)throw Z&&i&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+a);this.recovering||(this.recovering=5)}if(this.recovering&&i){let s=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,r,t);if(s)return this.stackToTree(s.forceAll())}if(this.recovering){let s=this.recovering==1?1:this.recovering*3;if(t.length>s)for(t.sort((n,o)=>o.score-n.score);t.length>s;)t.pop();t.some(n=>n.reducePos>a)&&this.recovering--}else if(t.length>1){e:for(let s=0;s500&&c.buffer.length>500)if((n.score-c.score||n.buffer.length-c.buffer.length)>0)t.splice(o--,1);else{t.splice(s--,1);continue e}}}t.length>12&&t.splice(12,t.length-12)}this.minStackPos=t[0].pos;for(let s=1;s ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let c=e.curContext&&e.curContext.tracker.strict,f=c?e.curContext.hash:0;for(let Q=this.fragments.nodeAt(i);Q;){let h=this.parser.nodeSet.types[Q.type.id]==Q.type?r.getGoto(e.state,Q.type.id):-1;if(h>-1&&Q.length&&(!c||(Q.prop(xe.contextHash)||0)==f))return e.useNode(Q,h),Z&&console.log(s+this.stackID(e)+` (via reuse of ${r.getName(Q.type.id)})`),!0;if(!(Q instanceof B)||Q.children.length==0||Q.positions[0]>0)break;let u=Q.children[0];if(u instanceof B&&Q.positions[0]==0)Q=u;else break}}let n=r.stateSlot(e.state,4);if(n>0)return e.reduce(n),Z&&console.log(s+this.stackID(e)+` (via always-reduce ${r.getName(n&65535)})`),!0;if(e.stack.length>=15e3)for(;e.stack.length>9e3&&e.forceReduce(););let o=this.tokens.getActions(e);for(let c=0;ci?a.push(d):t.push(d)}return!1}advanceFully(e,a){let t=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>t)return Be(e,a),!0}}runRecovery(e,a,t){let i=null,r=!1;for(let s=0;s ":"";if(n.deadEnd&&(r||(r=!0,n.restart(),Z&&console.log(f+this.stackID(n)+" (restarted)"),this.advanceFully(n,t))))continue;let Q=n.split(),h=f;for(let u=0;Q.forceReduce()&&u<10&&(Z&&console.log(h+this.stackID(Q)+" (via force-reduce)"),!this.advanceFully(Q,t));u++)Z&&(h=this.stackID(Q)+" -> ");for(let u of n.recoverByInsert(o))Z&&console.log(f+this.stackID(u)+" (via recover-insert)"),this.advanceFully(u,t);this.stream.end>n.pos?(c==n.pos&&(c++,o=0),n.recoverByDelete(o,c),Z&&console.log(f+this.stackID(n)+` (via recover-delete ${this.parser.getName(o)})`),Be(n,t)):(!i||i.scoreO;class qO{constructor(e){this.start=e.start,this.shift=e.shift||fe,this.reduce=e.reduce||fe,this.reuse=e.reuse||fe,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}}class T extends Ut{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let a=e.nodeNames.split(" ");this.minRepeatTerm=a.length;for(let n=0;ne.topRules[n][1]),i=[];for(let n=0;n=0)r(f,o,n[c++]);else{let Q=n[c+-f];for(let h=-f;h>0;h--)r(n[c++],o,Q);c++}}}this.nodeSet=new qt(a.map((n,o)=>_t.define({name:o>=this.minRepeatTerm?void 0:n,id:o,props:i[o],top:t.indexOf(o)>-1,error:o==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(o)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=Wt;let s=j(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let n=0;ntypeof n=="number"?new q(s,n):n),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,a,t){let i=new Qa(this,e,a,t);for(let r of this.wrappers)i=r(i,e,a,t);return i}getGoto(e,a,t=!1){let i=this.goto;if(a>=i[0])return-1;for(let r=i[a+1];;){let s=i[r++],n=s&1,o=i[r++];if(n&&t)return o;for(let c=r+(s>>1);r0}validAction(e,a){if(a==this.stateSlot(e,4))return!0;for(let t=this.stateSlot(e,1);;t+=3){if(this.data[t]==65535)if(this.data[t+1]==1)t=w(this.data,t+2);else return!1;if(a==w(this.data,t+1))return!0}}nextStates(e){let a=[];for(let t=this.stateSlot(e,1);;t+=3){if(this.data[t]==65535)if(this.data[t+1]==1)t=w(this.data,t+2);else break;if(!(this.data[t+2]&1)){let i=this.data[t+1];a.some((r,s)=>s&1&&r==i)||a.push(this.data[t],i)}}return a}configure(e){let a=Object.assign(Object.create(T.prototype),this);if(e.props&&(a.nodeSet=this.nodeSet.extend(...e.props)),e.top){let t=this.topRules[e.top];if(!t)throw new RangeError(`Invalid top rule name ${e.top}`);a.top=t}return e.tokenizers&&(a.tokenizers=this.tokenizers.map(t=>{let i=e.tokenizers.find(r=>r.from==t);return i?i.to:t})),e.specializers&&(a.specializers=this.specializers.slice(),a.specializerSpecs=this.specializerSpecs.map((t,i)=>{let r=e.specializers.find(n=>n.from==t.external);if(!r)return t;let s=Object.assign(Object.assign({},t),{external:r.to});return a.specializers[i]=Je(s),s})),e.contextTracker&&(a.context=e.contextTracker),e.dialect&&(a.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(a.strict=e.strict),e.wrap&&(a.wrappers=a.wrappers.concat(e.wrap)),e.bufferLength!=null&&(a.bufferLength=e.bufferLength),a}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let a=this.dynamicPrecedences;return a==null?0:a[e]||0}parseDialect(e){let a=Object.keys(this.dialects),t=a.map(()=>!1);if(e)for(let r of e.split(" ")){let s=a.indexOf(r);s>=0&&(t[s]=!0)}let i=null;for(let r=0;rt)&&a.p.parser.stateFlag(a.state,2)&&(!e||e.scoreO.external(a,t)<<1|e}return O.get}const fa=54,ha=1,pa=55,da=2,Sa=56,$a=3,Le=4,ga=5,K=6,_O=7,WO=8,VO=9,CO=10,Pa=11,ma=12,Xa=13,he=57,Za=14,Me=58,RO=20,ba=22,jO=23,wa=24,Ze=26,GO=27,ka=28,ya=31,xa=34,Ya=36,va=37,Ta=0,Ua=1,qa={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},_a={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},Fe={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function Wa(O){return O==45||O==46||O==58||O>=65&&O<=90||O==95||O>=97&&O<=122||O>=161}function zO(O){return O==9||O==10||O==13||O==32}let He=null,Ke=null,eO=0;function be(O,e){let a=O.pos+e;if(eO==a&&Ke==O)return He;let t=O.peek(e);for(;zO(t);)t=O.peek(++e);let i="";for(;Wa(t);)i+=String.fromCharCode(t),t=O.peek(++e);return Ke=O,eO=a,He=i?i.toLowerCase():t==Va||t==Ca?void 0:null}const AO=60,ee=62,ve=47,Va=63,Ca=33,Ra=45;function OO(O,e){this.name=O,this.parent=e,this.hash=e?e.hash:0;for(let a=0;a-1?new OO(be(t,1)||"",O):O},reduce(O,e){return e==RO&&O?O.parent:O},reuse(O,e,a,t){let i=e.type.id;return i==K||i==Ya?new OO(be(t,1)||"",O):O},hash(O){return O?O.hash:0},strict:!1}),za=new b((O,e)=>{if(O.next!=AO){O.next<0&&e.context&&O.acceptToken(he);return}O.advance();let a=O.next==ve;a&&O.advance();let t=be(O,0);if(t===void 0)return;if(!t)return O.acceptToken(a?Za:K);let i=e.context?e.context.name:null;if(a){if(t==i)return O.acceptToken(Pa);if(i&&_a[i])return O.acceptToken(he,-2);if(e.dialectEnabled(Ta))return O.acceptToken(ma);for(let r=e.context;r;r=r.parent)if(r.name==t)return;O.acceptToken(Xa)}else{if(t=="script")return O.acceptToken(_O);if(t=="style")return O.acceptToken(WO);if(t=="textarea")return O.acceptToken(VO);if(qa.hasOwnProperty(t))return O.acceptToken(CO);i&&Fe[i]&&Fe[i][t]?O.acceptToken(he,-1):O.acceptToken(K)}},{contextual:!0}),Aa=new b(O=>{for(let e=0,a=0;;a++){if(O.next<0){a&&O.acceptToken(Me);break}if(O.next==Ra)e++;else if(O.next==ee&&e>=2){a>3&&O.acceptToken(Me,-2);break}else e=0;O.advance()}});function Ia(O){for(;O;O=O.parent)if(O.name=="svg"||O.name=="math")return!0;return!1}const Ea=new b((O,e)=>{if(O.next==ve&&O.peek(1)==ee){let a=e.dialectEnabled(Ua)||Ia(e.context);O.acceptToken(a?ga:Le,2)}else O.next==ee&&O.acceptToken(Le,1)});function Te(O,e,a){let t=2+O.length;return new b(i=>{for(let r=0,s=0,n=0;;n++){if(i.next<0){n&&i.acceptToken(e);break}if(r==0&&i.next==AO||r==1&&i.next==ve||r>=2&&rs?i.acceptToken(e,-s):i.acceptToken(a,-(s-2));break}else if((i.next==10||i.next==13)&&n){i.acceptToken(e,1);break}else r=s=0;i.advance()}})}const Na=Te("script",fa,ha),Da=Te("style",pa,da),Ba=Te("textarea",Sa,$a),Ja=re({"Text RawText":l.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":l.angleBracket,TagName:l.tagName,"MismatchedCloseTag/TagName":[l.tagName,l.invalid],AttributeName:l.attributeName,"AttributeValue UnquotedAttributeValue":l.attributeValue,Is:l.definitionOperator,"EntityReference CharacterReference":l.character,Comment:l.blockComment,ProcessingInst:l.processingInstruction,DoctypeDecl:l.documentMeta}),La=T.deserialize({version:14,states:",xOVO!rOOO!WQ#tO'#CqO!]Q#tO'#CzO!bQ#tO'#C}O!gQ#tO'#DQO!lQ#tO'#DSO!qOaO'#CpO!|ObO'#CpO#XOdO'#CpO$eO!rO'#CpOOO`'#Cp'#CpO$lO$fO'#DTO$tQ#tO'#DVO$yQ#tO'#DWOOO`'#Dk'#DkOO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^Oa^Ob^Oc^Ox^O!dZO~O!ZrO~P#dO![sO!euO~OfvO~OfwO~OS|OhyO~OS!OOhyO~OS!QOhyO~OS!SOT!TOhyO~OS!TOhyO~O!WfOPlX!ZlX~OP!WO!Z!XO~O!XiOQoX!ZoX~OQ!ZO!Z!XO~O!YlORrX!ZrX~OR!]O!Z!XO~O!Z!XO~P#dOf!_O~O![sO!e!aO~OS!bO~OS!cO~Oi!dOSgXhgXTgX~OS!fOhyO~OS!gOhyO~OS!hOhyO~OS!iOT!jOhyO~OS!jOhyO~Of!kO~Of!lO~Of!mO~OS!nO~Ok!qO!`!oO!b!pO~OS!rO~OS!sO~OS!tO~Oa!uOb!uOc!uO!`!wO!a!uO~Oa!xOb!xOc!xO!b!wO!c!xO~Oa!uOb!uOc!uO!`!{O!a!uO~Oa!xOb!xOc!xO!b!{O!c!xO~OT~bac!dx{!d~",goto:"%p!`PPPPPPPPPPPPPPPPPPPP!a!gP!mPP!yP!|#P#S#Y#]#`#f#i#l#r#x!aP!a!aP$O$U$l$r$x%O%U%[%bPPPPPPPP%hX^OX`pXUOX`pezabcde{}!P!R!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ}bQ!PcQ!RdQ!UeZ!e{}!P!R!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"âš  StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:67,context:Ga,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,21,30,33,36,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,29,32,35,37,"OpenTag"],["group",-9,14,17,18,19,20,39,40,41,42,"Entity",16,"Entity TextContent",-3,28,31,34,"TextContent Entity"]],propSources:[Ja],skippedNodes:[0],repeatNodeCount:9,tokenData:"#%g!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs4ysv-_vw5iwxJ^x}-_}!OKP!O!P-_!P!Q$q!Q![-_![!]!!O!]!^-_!^!_!&W!_!`#$o!`!a&X!a!c-_!c!}!!O!}#R-_#R#S!!O#S#T3V#T#o!!O#o#s-_#s$f$q$f%W-_%W%o!!O%o%p-_%p&a!!O&a&b-_&b1p!!O1p4U-_4U4d!!O4d4e-_4e$IS!!O$IS$I`-_$I`$Ib!!O$Ib$Kh-_$Kh%#t!!O%#t&/x-_&/x&Et!!O&Et&FV-_&FV;'S!!O;'S;:j!&Q;:j;=`4s<%l?&r-_?&r?Ah!!O?Ah?BY$q?BY?Mn!!O?MnO$q!Z$|c`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr$qrs&}sv$qvw+Pwx(tx!^$q!^!_*V!_!a&X!a#S$q#S#T&X#T;'S$q;'S;=`+z<%lO$q!R&bX`P!a`!cpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&Xq'UV`P!cpOv&}wx'kx!^&}!^!_(V!_;'S&};'S;=`(n<%lO&}P'pT`POv'kw!^'k!_;'S'k;'S;=`(P<%lO'kP(SP;=`<%l'kp([S!cpOv(Vx;'S(V;'S;=`(h<%lO(Vp(kP;=`<%l(Vq(qP;=`<%l&}a({W`P!a`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t`)jT!a`Or)esv)ew;'S)e;'S;=`)y<%lO)e`)|P;=`<%l)ea*SP;=`<%l(t!Q*^V!a`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=`!N]<%lO!G_!R!MvV!a`!cpxPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!N`P;=`<%l!G_T!NhbhSOq!Hpqr!Ncrs!Hpsw!Ncwx!Hpx!P!Nc!P!Q!Hp!Q!_!Nc!_!a!Hp!a!b# p!b#s!Nc#s$f!Hp$f;'S!Nc;'S;=`#!}<%l?Ah!Nc?Ah?BY!Hp?BY?Mn!Nc?MnO!HpT# ubhSOq!Hpqr!Ncrs!Hpsw!Ncwx!Hpx!P!Nc!P!Q!Hp!Q!_!Nc!_!`!Hp!`!a!If!a#s!Nc#s$f!Hp$f;'S!Nc;'S;=`#!}<%l?Ah!Nc?Ah?BY!Hp?BY?Mn!Nc?MnO!HpT##QP;=`<%l!Nc!V##^chS!a`!cpOq!G_qr!Eyrs!HUsv!Eyvw!Ncwx!Jvx!P!Ey!P!Q!G_!Q!_!Ey!_!`!G_!`!a!Mm!a#s!Ey#s$f!G_$f;'S!Ey;'S;=`#$i<%l?Ah!Ey?Ah?BY!G_?BY?Mn!Ey?MnO!G_!V#$lP;=`<%l!Ey!V#$zXiS`P!a`!cpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",tokenizers:[Na,Da,Ba,Ea,za,Aa,0,1,2,3,4,5],topRules:{Document:[0,15]},dialects:{noMatch:0,selfClosing:485},tokenPrec:487});function IO(O,e){let a=Object.create(null);for(let t of O.getChildren(jO)){let i=t.getChild(wa),r=t.getChild(Ze)||t.getChild(GO);i&&(a[e.read(i.from,i.to)]=r?r.type.id==Ze?e.read(r.from+1,r.to-1):e.read(r.from,r.to):"")}return a}function tO(O,e){let a=O.getChild(ba);return a?e.read(a.from,a.to):" "}function pe(O,e,a){let t;for(let i of a)if(!i.attrs||i.attrs(t||(t=IO(O.node.parent.firstChild,e))))return{parser:i.parser};return null}function EO(O=[],e=[]){let a=[],t=[],i=[],r=[];for(let n of O)(n.tag=="script"?a:n.tag=="style"?t:n.tag=="textarea"?i:r).push(n);let s=e.length?Object.create(null):null;for(let n of e)(s[n.name]||(s[n.name]=[])).push(n);return Vt((n,o)=>{let c=n.type.id;if(c==ka)return pe(n,o,a);if(c==ya)return pe(n,o,t);if(c==xa)return pe(n,o,i);if(c==RO&&r.length){let f=n.node,Q=f.firstChild,h=Q&&tO(Q,o),u;if(h){for(let d of r)if(d.tag==h&&(!d.attrs||d.attrs(u||(u=IO(f,o))))){let $=f.lastChild;return{parser:d.parser,overlay:[{from:Q.to,to:$.type.id==va?$.from:f.to}]}}}}if(s&&c==jO){let f=n.node,Q;if(Q=f.firstChild){let h=s[o.read(Q.from,Q.to)];if(h)for(let u of h){if(u.tagName&&u.tagName!=tO(f.parent,o))continue;let d=f.lastChild;if(d.type.id==Ze){let $=d.from+1,g=d.lastChild,x=d.to-(g&&g.isError?0:1);if(x>$)return{parser:u.parser,overlay:[{from:$,to:x}]}}else if(d.type.id==GO)return{parser:u.parser,overlay:[{from:d.from,to:d.to}]}}}}return null})}const Ma=95,aO=1,Fa=96,Ha=97,iO=2,NO=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],Ka=58,ei=40,DO=95,Oi=91,L=45,ti=46,ai=35,ii=37;function Oe(O){return O>=65&&O<=90||O>=97&&O<=122||O>=161}function ri(O){return O>=48&&O<=57}const si=new b((O,e)=>{for(let a=!1,t=0,i=0;;i++){let{next:r}=O;if(Oe(r)||r==L||r==DO||a&&ri(r))!a&&(r!=L||i>0)&&(a=!0),t===i&&r==L&&t++,O.advance();else{a&&O.acceptToken(r==ei?Fa:t==2&&e.canShift(iO)?iO:Ha);break}}}),ni=new b(O=>{if(NO.includes(O.peek(-1))){let{next:e}=O;(Oe(e)||e==DO||e==ai||e==ti||e==Oi||e==Ka||e==L)&&O.acceptToken(Ma)}}),li=new b(O=>{if(!NO.includes(O.peek(-1))){let{next:e}=O;if(e==ii&&(O.advance(),O.acceptToken(aO)),Oe(e)){do O.advance();while(Oe(O.next));O.acceptToken(aO)}}}),oi=re({"AtKeyword import charset namespace keyframes media supports":l.definitionKeyword,"from to selector":l.keyword,NamespaceName:l.namespace,KeyframeName:l.labelName,KeyframeRangeName:l.operatorKeyword,TagName:l.tagName,ClassName:l.className,PseudoClassName:l.constant(l.className),IdName:l.labelName,"FeatureName PropertyName":l.propertyName,AttributeName:l.attributeName,NumberLiteral:l.number,KeywordQuery:l.keyword,UnaryQueryOp:l.operatorKeyword,"CallTag ValueName":l.atom,VariableName:l.variableName,Callee:l.operatorKeyword,Unit:l.unit,"UniversalSelector NestingSelector":l.definitionOperator,MatchOp:l.compareOperator,"ChildOp SiblingOp, LogicOp":l.logicOperator,BinOp:l.arithmeticOperator,Important:l.modifier,Comment:l.blockComment,ColorLiteral:l.color,"ParenthesizedContent StringLiteral":l.string,":":l.punctuation,"PseudoOp #":l.derefOperator,"; ,":l.separator,"( )":l.paren,"[ ]":l.squareBracket,"{ }":l.brace}),Qi={__proto__:null,lang:32,"nth-child":32,"nth-last-child":32,"nth-of-type":32,"nth-last-of-type":32,dir:32,"host-context":32,url:60,"url-prefix":60,domain:60,regexp:60,selector:134},ci={__proto__:null,"@import":114,"@media":138,"@charset":142,"@namespace":146,"@keyframes":152,"@supports":164},ui={__proto__:null,not:128,only:128},fi=T.deserialize({version:14,states:"8`QYQ[OOO#_Q[OOOOQP'#Cd'#CdOOQP'#Cc'#CcO#fQ[O'#CfO$YQXO'#CaO$aQ[O'#ChO$lQ[O'#DPO$qQ[O'#DTOOQP'#Ee'#EeO$vQdO'#DeO%bQ[O'#DrO$vQdO'#DtO%sQ[O'#DvO&OQ[O'#DyO&WQ[O'#EPO&fQ[O'#EROOQS'#Ed'#EdOOQS'#ET'#ETQYQ[OOO&mQXO'#CdO'bQWO'#DaO'gQWO'#EkO'rQ[O'#EkQOQWOOOOQP'#Cg'#CgOOQP,59Q,59QO#fQ[O,59QO'|Q[O'#EWO(hQWO,58{O(pQ[O,59SO$lQ[O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z;'S%^;'S;=`%o<%lO%^_EqS!WVOy%^z;'S%^;'S;=`%o<%lO%^YFSSzQOy%^z;'S%^;'S;=`%o<%lO%^XFeU|POy%^z!`%^!`!aFw!a;'S%^;'S;=`%o<%lO%^XGOS|PoWOy%^z;'S%^;'S;=`%o<%lO%^XG_WOy%^z!c%^!c!}Gw!}#T%^#T#oGw#o;'S%^;'S;=`%o<%lO%^XHO[!YPoWOy%^z}%^}!OGw!O!Q%^!Q![Gw![!c%^!c!}Gw!}#T%^#T#oGw#o;'S%^;'S;=`%o<%lO%^XHySxPOy%^z;'S%^;'S;=`%o<%lO%^^I[SvUOy%^z;'S%^;'S;=`%o<%lO%^XIkUOy%^z#b%^#b#cI}#c;'S%^;'S;=`%o<%lO%^XJSUoWOy%^z#W%^#W#XJf#X;'S%^;'S;=`%o<%lO%^XJmS!`PoWOy%^z;'S%^;'S;=`%o<%lO%^XJ|UOy%^z#f%^#f#gJf#g;'S%^;'S;=`%o<%lO%^ZKeS!RROy%^z;'S%^;'S;=`%o<%lO%^_KvS!QVOy%^z;'S%^;'S;=`%o<%lO%^ZLXU!PPOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^WLnP;=`<%l$}",tokenizers:[ni,li,si,0,1,2,3],topRules:{StyleSheet:[0,4],Styles:[1,84]},specialized:[{term:96,get:O=>Qi[O]||-1},{term:56,get:O=>ci[O]||-1},{term:97,get:O=>ui[O]||-1}],tokenPrec:1142});let de=null;function Se(){if(!de&&typeof document=="object"&&document.body){let{style:O}=document.body,e=[],a=new Set;for(let t in O)t!="cssText"&&t!="cssFloat"&&typeof O[t]=="string"&&(/[A-Z]/.test(t)&&(t=t.replace(/[A-Z]/g,i=>"-"+i.toLowerCase())),a.has(t)||(e.push(t),a.add(t)));de=e.sort().map(t=>({type:"property",label:t}))}return de||[]}const rO=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(O=>({type:"class",label:O})),sO=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(O=>({type:"keyword",label:O})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(O=>({type:"constant",label:O}))),hi=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(O=>({type:"type",label:O})),y=/^(\w[\w-]*|-\w[\w-]*|)$/,pi=/^-(-[\w-]*)?$/;function di(O,e){var a;if((O.name=="("||O.type.isError)&&(O=O.parent||O),O.name!="ArgList")return!1;let t=(a=O.parent)===null||a===void 0?void 0:a.firstChild;return(t==null?void 0:t.name)!="Callee"?!1:e.sliceString(t.from,t.to)=="var"}const nO=new xO,Si=["Declaration"];function $i(O){for(let e=O;;){if(e.type.isTop)return e;if(!(e=e.parent))return O}}function BO(O,e,a){if(e.to-e.from>4096){let t=nO.get(e);if(t)return t;let i=[],r=new Set,s=e.cursor(Ye.IncludeAnonymous);if(s.firstChild())do for(let n of BO(O,s.node,a))r.has(n.label)||(r.add(n.label),i.push(n));while(s.nextSibling());return nO.set(e,i),i}else{let t=[],i=new Set;return e.cursor().iterate(r=>{var s;if(a(r)&&r.matchContext(Si)&&((s=r.node.nextSibling)===null||s===void 0?void 0:s.name)==":"){let n=O.sliceString(r.from,r.to);i.has(n)||(i.add(n),t.push({label:n,type:"variable"}))}}),t}}const gi=O=>e=>{let{state:a,pos:t}=e,i=W(a).resolveInner(t,-1),r=i.type.isError&&i.from==i.to-1&&a.doc.sliceString(i.from,i.to)=="-";if(i.name=="PropertyName"||(r||i.name=="TagName")&&/^(Block|Styles)$/.test(i.resolve(i.to).name))return{from:i.from,options:Se(),validFor:y};if(i.name=="ValueName")return{from:i.from,options:sO,validFor:y};if(i.name=="PseudoClassName")return{from:i.from,options:rO,validFor:y};if(O(i)||(e.explicit||r)&&di(i,a.doc))return{from:O(i)||r?i.from:t,options:BO(a.doc,$i(i),O),validFor:pi};if(i.name=="TagName"){for(let{parent:o}=i;o;o=o.parent)if(o.name=="Block")return{from:i.from,options:Se(),validFor:y};return{from:i.from,options:hi,validFor:y}}if(!e.explicit)return null;let s=i.resolve(t),n=s.childBefore(t);return n&&n.name==":"&&s.name=="PseudoClassSelector"?{from:t,options:rO,validFor:y}:n&&n.name==":"&&s.name=="Declaration"||s.name=="ArgList"?{from:t,options:sO,validFor:y}:s.name=="Block"||s.name=="Styles"?{from:t,options:Se(),validFor:y}:null},Pi=gi(O=>O.name=="VariableName"),te=se.define({name:"css",parser:fi.configure({props:[ne.add({Declaration:G()}),le.add({Block:yO})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function mi(){return new oe(te,te.data.of({autocomplete:Pi}))}const lO=302,oO=1,Xi=2,QO=303,Zi=305,bi=306,wi=3,ki=4,yi=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],JO=125,xi=59,cO=47,Yi=42,vi=43,Ti=45,Ui=new qO({start:!1,shift(O,e){return e==wi||e==ki||e==Zi?O:e==bi},strict:!1}),qi=new b((O,e)=>{let{next:a}=O;(a==JO||a==-1||e.context)&&e.canShift(QO)&&O.acceptToken(QO)},{contextual:!0,fallback:!0}),_i=new b((O,e)=>{let{next:a}=O,t;yi.indexOf(a)>-1||a==cO&&((t=O.peek(1))==cO||t==Yi)||a!=JO&&a!=xi&&a!=-1&&!e.context&&e.canShift(lO)&&O.acceptToken(lO)},{contextual:!0}),Wi=new b((O,e)=>{let{next:a}=O;if((a==vi||a==Ti)&&(O.advance(),a==O.next)){O.advance();let t=!e.context&&e.canShift(oO);O.acceptToken(t?oO:Xi)}},{contextual:!0}),Vi=re({"get set async static":l.modifier,"for while do if else switch try catch finally return throw break continue default case":l.controlKeyword,"in of await yield void typeof delete instanceof":l.operatorKeyword,"let var const function class extends":l.definitionKeyword,"import export from":l.moduleKeyword,"with debugger as new":l.keyword,TemplateString:l.special(l.string),super:l.atom,BooleanLiteral:l.bool,this:l.self,null:l.null,Star:l.modifier,VariableName:l.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":l.function(l.variableName),VariableDefinition:l.definition(l.variableName),Label:l.labelName,PropertyName:l.propertyName,PrivatePropertyName:l.special(l.propertyName),"CallExpression/MemberExpression/PropertyName":l.function(l.propertyName),"FunctionDeclaration/VariableDefinition":l.function(l.definition(l.variableName)),"ClassDeclaration/VariableDefinition":l.definition(l.className),PropertyDefinition:l.definition(l.propertyName),PrivatePropertyDefinition:l.definition(l.special(l.propertyName)),UpdateOp:l.updateOperator,LineComment:l.lineComment,BlockComment:l.blockComment,Number:l.number,String:l.string,Escape:l.escape,ArithOp:l.arithmeticOperator,LogicOp:l.logicOperator,BitOp:l.bitwiseOperator,CompareOp:l.compareOperator,RegExp:l.regexp,Equals:l.definitionOperator,Arrow:l.function(l.punctuation),": Spread":l.punctuation,"( )":l.paren,"[ ]":l.squareBracket,"{ }":l.brace,"InterpolationStart InterpolationEnd":l.special(l.brace),".":l.derefOperator,", ;":l.separator,"@":l.meta,TypeName:l.typeName,TypeDefinition:l.definition(l.typeName),"type enum interface implements namespace module declare":l.definitionKeyword,"abstract global Privacy readonly override":l.modifier,"is keyof unique infer":l.operatorKeyword,JSXAttributeValue:l.attributeValue,JSXText:l.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":l.angleBracket,"JSXIdentifier JSXNameSpacedName":l.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":l.attributeName,"JSXBuiltin/JSXIdentifier":l.standard(l.tagName)}),Ci={__proto__:null,export:14,as:19,from:27,default:30,async:35,function:36,extends:46,this:50,true:58,false:58,null:70,void:74,typeof:78,super:96,new:130,delete:146,yield:155,await:159,class:164,public:221,private:221,protected:221,readonly:223,instanceof:242,satisfies:245,in:246,const:248,import:280,keyof:335,unique:339,infer:345,is:381,abstract:401,implements:403,type:405,let:408,var:410,interface:417,enum:421,namespace:427,module:429,declare:433,global:437,for:456,of:465,while:468,with:472,do:476,if:480,else:482,switch:486,case:492,try:498,catch:502,finally:506,return:510,throw:514,break:518,continue:522,debugger:526},Ri={__proto__:null,async:117,get:119,set:121,declare:181,public:183,private:183,protected:183,static:185,abstract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5v2b2cR7u5w`#YW#S#V%v't'}+e-mt#cZ|}#d#e#h%Z(X(Y(Z+h-s-t-u-w2b2c5wQ1_,ZQ1r,oQ5e1jQ7m5fT:x&y+fT#]W%vS#[W%vS'u#S'}S'z#V+eS,t&y+fT-h't-mT'O!c%wQ$hfR)j$mT)_$h)`R3Z.kT*O$u*QR*W$xQ/}*zQ2e.OQ4s0wQ5{2iQ7X4vQ7x5zQ8e7WQ8w7wQ9W8gQ9`8yQ9e9XR9h9alpOXr!X#`%]&d&f&g&i,],b1b1eQ&^!TR,Q&ZV%z|},ZR0q+qR,P&XQ%szR+c%tR+X%nT&b!U&eT&c!U&eT1d,b1e",nodeNames:"âš  ArithOp ArithOp LineComment BlockComment Script ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXStartTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:364,context:Ui,nodeProps:[["group",-26,6,14,16,62,199,203,206,207,209,212,215,225,227,233,235,237,239,242,248,254,256,258,260,262,264,265,"Statement",-32,10,11,25,28,29,35,45,48,49,51,56,64,72,76,78,80,81,103,104,113,114,131,134,136,137,138,139,141,142,162,163,165,"Expression",-23,24,26,30,34,36,38,166,168,170,171,173,174,175,177,178,179,181,182,183,193,195,197,198,"Type",-3,84,96,102,"ClassItem"],["openedBy",31,"InterpolationStart",50,"[",54,"{",69,"(",143,"JSXStartTag",155,"JSXStartTag JSXStartCloseTag"],["closedBy",33,"InterpolationEnd",44,"]",55,"}",70,")",144,"JSXSelfCloseEndTag JSXEndTag",160,"JSXEndTag"]],propSources:[Vi],skippedNodes:[0,3,4,268],repeatNodeCount:33,tokenData:"$>y(CSR!bOX%ZXY+gYZ-yZ[+g[]%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ialects:{jsx:12686,ts:12688},dynamicPrecedences:{76:1,78:1,163:1,191:1},specialized:[{term:312,get:O=>Ci[O]||-1},{term:328,get:O=>Ri[O]||-1},{term:67,get:O=>ji[O]||-1}],tokenPrec:12712}),zi=[X("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),X("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),X("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),X("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),X("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),X(`try { +import{S as gt,i as Pt,s as mt,e as Xt,f as Zt,U as E,g as bt,y as Re,o as wt,I as kt,J as yt,K as xt,H as Yt,C as vt,L as Tt}from"./index-055843b5.js";import{P as Ut,N as qt,u as _t,D as Wt,v as xe,T as B,I as Ye,w as re,x as l,y as Vt,L as se,z as ne,A as G,B as le,F as yO,G as oe,H as W,J as xO,K as YO,M as vO,E as v,O as z,Q as Ct,R as Rt,U as TO,V as X,W as jt,X as Gt,a as V,h as zt,b as At,c as It,d as Et,e as Nt,s as Dt,t as Bt,f as Jt,g as Lt,r as Mt,i as Ft,k as Ht,j as Kt,l as ea,m as Oa,n as ta,o as aa,p as ia,q as je,C as N}from"./index-84ab2e4b.js";class F{constructor(e,a,t,i,r,s,n,o,c,f=0,Q){this.p=e,this.stack=a,this.state=t,this.reducePos=i,this.pos=r,this.score=s,this.buffer=n,this.bufferBase=o,this.curContext=c,this.lookAhead=f,this.parent=Q}toString(){return`[${this.stack.filter((e,a)=>a%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,a,t=0){let i=e.parser.context;return new F(e,[],a,t,t,0,[],0,i?new Ge(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,a){this.stack.push(this.state,a,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var a;let t=e>>19,i=e&65535,{parser:r}=this.p,s=r.dynamicPrecedence(i);if(s&&(this.score+=s),t==0){this.pushState(r.getGoto(this.state,i,!0),this.reducePos),i=2e3&&!(!((a=this.p.parser.nodeSet.types[i])===null||a===void 0)&&a.isAnonymous)&&(o==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=c):this.p.lastBigReductionSizen;)this.stack.pop();this.reduceContext(i,o)}storeNode(e,a,t,i=4,r=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&s.buffer[n-4]==0&&s.buffer[n-1]>-1){if(a==t)return;if(s.buffer[n-2]>=a){s.buffer[n-2]=t;return}}}if(!r||this.pos==t)this.buffer.push(e,a,t,i);else{let s=this.buffer.length;if(s>0&&this.buffer[s-4]!=0)for(;s>0&&this.buffer[s-2]>t;)this.buffer[s]=this.buffer[s-4],this.buffer[s+1]=this.buffer[s-3],this.buffer[s+2]=this.buffer[s-2],this.buffer[s+3]=this.buffer[s-1],s-=4,i>4&&(i-=4);this.buffer[s]=e,this.buffer[s+1]=a,this.buffer[s+2]=t,this.buffer[s+3]=i}}shift(e,a,t){let i=this.pos;if(e&131072)this.pushState(e&65535,this.pos);else if(e&262144)this.pos=t,this.shiftContext(a,i),a<=this.p.parser.maxNode&&this.buffer.push(a,i,t,4);else{let r=e,{parser:s}=this.p;(t>this.pos||a<=s.maxNode)&&(this.pos=t,s.stateFlag(r,1)||(this.reducePos=t)),this.pushState(r,i),this.shiftContext(a,i),a<=s.maxNode&&this.buffer.push(a,i,t,4)}}apply(e,a,t){e&65536?this.reduce(e):this.shift(e,a,t)}useNode(e,a){let t=this.p.reused.length-1;(t<0||this.p.reused[t]!=e)&&(this.p.reused.push(e),t++);let i=this.pos;this.reducePos=this.pos=i+e.length,this.pushState(a,i),this.buffer.push(t,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,a=e.buffer.length;for(;a>0&&e.buffer[a-2]>e.reducePos;)a-=4;let t=e.buffer.slice(a),i=e.bufferBase+a;for(;e&&i==e.bufferBase;)e=e.parent;return new F(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,t,i,this.curContext,this.lookAhead,e)}recoverByDelete(e,a){let t=e<=this.p.parser.maxNode;t&&this.storeNode(e,this.pos,a,4),this.storeNode(0,this.pos,a,t?8:4),this.pos=this.reducePos=a,this.score-=190}canShift(e){for(let a=new ra(this);;){let t=this.p.parser.stateSlot(a.state,4)||this.p.parser.hasAction(a.state,e);if(t==0)return!1;if(!(t&65536))return!0;a.reduce(t)}}recoverByInsert(e){if(this.stack.length>=300)return[];let a=this.p.parser.nextStates(this.state);if(a.length>8||this.stack.length>=120){let i=[];for(let r=0,s;ro&1&&n==s)||i.push(a[r],s)}a=i}let t=[];for(let i=0;i>19,i=e&65535,r=this.stack.length-t*3;if(r<0||a.getGoto(this.stack[r],i,!1)<0)return!1;this.storeNode(0,this.reducePos,this.reducePos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(e),!0}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let a=0;athis.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class Ge{constructor(e,a){this.tracker=e,this.context=a,this.hash=e.strict?e.hash(a):0}}var ze;(function(O){O[O.Insert=200]="Insert",O[O.Delete=190]="Delete",O[O.Reduce=100]="Reduce",O[O.MaxNext=4]="MaxNext",O[O.MaxInsertStackDepth=300]="MaxInsertStackDepth",O[O.DampenInsertStackDepth=120]="DampenInsertStackDepth",O[O.MinBigReduction=2e3]="MinBigReduction"})(ze||(ze={}));class ra{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let a=e&65535,t=e>>19;t==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(t-1)*3;let i=this.start.p.parser.getGoto(this.stack[this.base-3],a,!0);this.state=i}}class H{constructor(e,a,t){this.stack=e,this.pos=a,this.index=t,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,a=e.bufferBase+e.buffer.length){return new H(e,a,a-e.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new H(this.stack,this.pos,this.index)}}function j(O,e=Uint16Array){if(typeof O!="string")return O;let a=null;for(let t=0,i=0;t=92&&s--,s>=34&&s--;let o=s-32;if(o>=46&&(o-=46,n=!0),r+=o,n)break;r*=46}a?a[i++]=r:a=new e(r)}return a}class J{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const Ae=new J;class sa{constructor(e,a){this.input=e,this.ranges=a,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=Ae,this.rangeIndex=0,this.pos=this.chunkPos=a[0].from,this.range=a[0],this.end=a[a.length-1].to,this.readNext()}resolveOffset(e,a){let t=this.range,i=this.rangeIndex,r=this.pos+e;for(;rt.to:r>=t.to;){if(i==this.ranges.length-1)return null;let s=this.ranges[++i];r+=s.from-t.to,t=s}return r}clipPos(e){if(e>=this.range.from&&ee)return Math.max(e,a.from);return this.end}peek(e){let a=this.chunkOff+e,t,i;if(a>=0&&a=this.chunk2Pos&&tn.to&&(this.chunk2=this.chunk2.slice(0,n.to-t)),i=this.chunk2.charCodeAt(0)}}return t>=this.token.lookAhead&&(this.token.lookAhead=t+1),i}acceptToken(e,a=0){let t=a?this.resolveOffset(a,-1):this.pos;if(t==null||t=this.chunk2Pos&&this.posthis.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,a){if(a?(this.token=a,a.start=e,a.lookAhead=e+1,a.value=a.extended=-1):this.token=Ae,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e=this.chunkPos&&a<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,a-this.chunkPos);if(e>=this.chunk2Pos&&a<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,a-this.chunk2Pos);if(e>=this.range.from&&a<=this.range.to)return this.input.read(e,a);let t="";for(let i of this.ranges){if(i.from>=a)break;i.to>e&&(t+=this.input.read(Math.max(i.from,e),Math.min(i.to,a)))}return t}}class q{constructor(e,a){this.data=e,this.id=a}token(e,a){let{parser:t}=a.p;UO(this.data,e,a,this.id,t.data,t.tokenPrecTable)}}q.prototype.contextual=q.prototype.fallback=q.prototype.extend=!1;class Xe{constructor(e,a,t){this.precTable=a,this.elseToken=t,this.data=typeof e=="string"?j(e):e}token(e,a){let t=e.pos,i=0;for(;UO(this.data,e,a,0,this.data,this.precTable),!(e.token.value>-1);){if(this.elseToken==null)return;if(e.next<0)break;e.advance(),e.reset(e.pos,e.token),i++}i&&(e.reset(t,e.token),e.acceptToken(this.elseToken,i))}}Xe.prototype.contextual=q.prototype.fallback=q.prototype.extend=!1;class b{constructor(e,a={}){this.token=e,this.contextual=!!a.contextual,this.fallback=!!a.fallback,this.extend=!!a.extend}}function UO(O,e,a,t,i,r){let s=0,n=1<0){let d=O[u];if(o.allows(d)&&(e.token.value==-1||e.token.value==d||na(d,e.token.value,i,r))){e.acceptToken(d);break}}let f=e.next,Q=0,h=O[s+2];if(e.next<0&&h>Q&&O[c+h*3-3]==65535&&O[c+h*3-3]==65535){s=O[c+h*3-1];continue e}for(;Q>1,d=c+u+(u<<1),$=O[d],g=O[d+1]||65536;if(f<$)h=u;else if(f>=g)Q=u+1;else{s=O[d+2],e.advance();continue e}}break}}function Ie(O,e,a){for(let t=e,i;(i=O[t])!=65535;t++)if(i==a)return t-e;return-1}function na(O,e,a,t){let i=Ie(a,t,e);return i<0||Ie(a,t,O)e)&&!t.type.isError)return a<0?Math.max(0,Math.min(t.to-1,e-25)):Math.min(O.length,Math.max(t.from+1,e+25));if(a<0?t.prevSibling():t.nextSibling())break;if(!t.parent())return a<0?0:O.length}}class la{constructor(e,a){this.fragments=e,this.nodeSet=a,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?Ne(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?Ne(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(ee)return this.nextStart=s,null;if(r instanceof B){if(s==e){if(s=Math.max(this.safeFrom,e)&&(this.trees.push(r),this.start.push(s),this.index.push(0))}else this.index[a]++,this.nextStart=s+r.length}}}class oa{constructor(e,a){this.stream=a,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(t=>new J)}getActions(e){let a=0,t=null,{parser:i}=e.p,{tokenizers:r}=i,s=i.stateSlot(e.state,3),n=e.curContext?e.curContext.hash:0,o=0;for(let c=0;cQ.end+25&&(o=Math.max(Q.lookAhead,o)),Q.value!=0)){let h=a;if(Q.extended>-1&&(a=this.addActions(e,Q.extended,Q.end,a)),a=this.addActions(e,Q.value,Q.end,a),!f.extend&&(t=Q,a>h))break}}for(;this.actions.length>a;)this.actions.pop();return o&&e.setLookAhead(o),!t&&e.pos==this.stream.end&&(t=new J,t.value=e.p.parser.eofTerm,t.start=t.end=e.pos,a=this.addActions(e,t.value,t.end,a)),this.mainToken=t,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let a=new J,{pos:t,p:i}=e;return a.start=t,a.end=Math.min(t+1,i.stream.end),a.value=t==i.stream.end?i.parser.eofTerm:0,a}updateCachedToken(e,a,t){let i=this.stream.clipPos(t.pos);if(a.token(this.stream.reset(i,e),t),e.value>-1){let{parser:r}=t.p;for(let s=0;s=0&&t.p.parser.dialect.allows(n>>1)){n&1?e.extended=n>>1:e.value=n>>1;break}}}else e.value=0,e.end=this.stream.clipPos(i+1)}putAction(e,a,t,i){for(let r=0;re.bufferLength*4?new la(t,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,a=this.minStackPos,t=this.stacks=[],i,r;if(this.bigReductionCount>300&&e.length==1){let[s]=e;for(;s.forceReduce()&&s.stack.length&&s.stack[s.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let s=0;sa)t.push(n);else{if(this.advanceStack(n,t,e))continue;{i||(i=[],r=[]),i.push(n);let o=this.tokens.getMainToken(n);r.push(o.value,o.end)}}break}}if(!t.length){let s=i&&ua(i);if(s)return this.stackToTree(s);if(this.parser.strict)throw Z&&i&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+a);this.recovering||(this.recovering=5)}if(this.recovering&&i){let s=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,r,t);if(s)return this.stackToTree(s.forceAll())}if(this.recovering){let s=this.recovering==1?1:this.recovering*3;if(t.length>s)for(t.sort((n,o)=>o.score-n.score);t.length>s;)t.pop();t.some(n=>n.reducePos>a)&&this.recovering--}else if(t.length>1){e:for(let s=0;s500&&c.buffer.length>500)if((n.score-c.score||n.buffer.length-c.buffer.length)>0)t.splice(o--,1);else{t.splice(s--,1);continue e}}}t.length>12&&t.splice(12,t.length-12)}this.minStackPos=t[0].pos;for(let s=1;s ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let c=e.curContext&&e.curContext.tracker.strict,f=c?e.curContext.hash:0;for(let Q=this.fragments.nodeAt(i);Q;){let h=this.parser.nodeSet.types[Q.type.id]==Q.type?r.getGoto(e.state,Q.type.id):-1;if(h>-1&&Q.length&&(!c||(Q.prop(xe.contextHash)||0)==f))return e.useNode(Q,h),Z&&console.log(s+this.stackID(e)+` (via reuse of ${r.getName(Q.type.id)})`),!0;if(!(Q instanceof B)||Q.children.length==0||Q.positions[0]>0)break;let u=Q.children[0];if(u instanceof B&&Q.positions[0]==0)Q=u;else break}}let n=r.stateSlot(e.state,4);if(n>0)return e.reduce(n),Z&&console.log(s+this.stackID(e)+` (via always-reduce ${r.getName(n&65535)})`),!0;if(e.stack.length>=15e3)for(;e.stack.length>9e3&&e.forceReduce(););let o=this.tokens.getActions(e);for(let c=0;ci?a.push(d):t.push(d)}return!1}advanceFully(e,a){let t=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>t)return Be(e,a),!0}}runRecovery(e,a,t){let i=null,r=!1;for(let s=0;s ":"";if(n.deadEnd&&(r||(r=!0,n.restart(),Z&&console.log(f+this.stackID(n)+" (restarted)"),this.advanceFully(n,t))))continue;let Q=n.split(),h=f;for(let u=0;Q.forceReduce()&&u<10&&(Z&&console.log(h+this.stackID(Q)+" (via force-reduce)"),!this.advanceFully(Q,t));u++)Z&&(h=this.stackID(Q)+" -> ");for(let u of n.recoverByInsert(o))Z&&console.log(f+this.stackID(u)+" (via recover-insert)"),this.advanceFully(u,t);this.stream.end>n.pos?(c==n.pos&&(c++,o=0),n.recoverByDelete(o,c),Z&&console.log(f+this.stackID(n)+` (via recover-delete ${this.parser.getName(o)})`),Be(n,t)):(!i||i.scoreO;class qO{constructor(e){this.start=e.start,this.shift=e.shift||fe,this.reduce=e.reduce||fe,this.reuse=e.reuse||fe,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}}class T extends Ut{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let a=e.nodeNames.split(" ");this.minRepeatTerm=a.length;for(let n=0;ne.topRules[n][1]),i=[];for(let n=0;n=0)r(f,o,n[c++]);else{let Q=n[c+-f];for(let h=-f;h>0;h--)r(n[c++],o,Q);c++}}}this.nodeSet=new qt(a.map((n,o)=>_t.define({name:o>=this.minRepeatTerm?void 0:n,id:o,props:i[o],top:t.indexOf(o)>-1,error:o==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(o)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=Wt;let s=j(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let n=0;ntypeof n=="number"?new q(s,n):n),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,a,t){let i=new Qa(this,e,a,t);for(let r of this.wrappers)i=r(i,e,a,t);return i}getGoto(e,a,t=!1){let i=this.goto;if(a>=i[0])return-1;for(let r=i[a+1];;){let s=i[r++],n=s&1,o=i[r++];if(n&&t)return o;for(let c=r+(s>>1);r0}validAction(e,a){if(a==this.stateSlot(e,4))return!0;for(let t=this.stateSlot(e,1);;t+=3){if(this.data[t]==65535)if(this.data[t+1]==1)t=w(this.data,t+2);else return!1;if(a==w(this.data,t+1))return!0}}nextStates(e){let a=[];for(let t=this.stateSlot(e,1);;t+=3){if(this.data[t]==65535)if(this.data[t+1]==1)t=w(this.data,t+2);else break;if(!(this.data[t+2]&1)){let i=this.data[t+1];a.some((r,s)=>s&1&&r==i)||a.push(this.data[t],i)}}return a}configure(e){let a=Object.assign(Object.create(T.prototype),this);if(e.props&&(a.nodeSet=this.nodeSet.extend(...e.props)),e.top){let t=this.topRules[e.top];if(!t)throw new RangeError(`Invalid top rule name ${e.top}`);a.top=t}return e.tokenizers&&(a.tokenizers=this.tokenizers.map(t=>{let i=e.tokenizers.find(r=>r.from==t);return i?i.to:t})),e.specializers&&(a.specializers=this.specializers.slice(),a.specializerSpecs=this.specializerSpecs.map((t,i)=>{let r=e.specializers.find(n=>n.from==t.external);if(!r)return t;let s=Object.assign(Object.assign({},t),{external:r.to});return a.specializers[i]=Je(s),s})),e.contextTracker&&(a.context=e.contextTracker),e.dialect&&(a.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(a.strict=e.strict),e.wrap&&(a.wrappers=a.wrappers.concat(e.wrap)),e.bufferLength!=null&&(a.bufferLength=e.bufferLength),a}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let a=this.dynamicPrecedences;return a==null?0:a[e]||0}parseDialect(e){let a=Object.keys(this.dialects),t=a.map(()=>!1);if(e)for(let r of e.split(" ")){let s=a.indexOf(r);s>=0&&(t[s]=!0)}let i=null;for(let r=0;rt)&&a.p.parser.stateFlag(a.state,2)&&(!e||e.scoreO.external(a,t)<<1|e}return O.get}const fa=54,ha=1,pa=55,da=2,Sa=56,$a=3,Le=4,ga=5,K=6,_O=7,WO=8,VO=9,CO=10,Pa=11,ma=12,Xa=13,he=57,Za=14,Me=58,RO=20,ba=22,jO=23,wa=24,Ze=26,GO=27,ka=28,ya=31,xa=34,Ya=36,va=37,Ta=0,Ua=1,qa={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},_a={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},Fe={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function Wa(O){return O==45||O==46||O==58||O>=65&&O<=90||O==95||O>=97&&O<=122||O>=161}function zO(O){return O==9||O==10||O==13||O==32}let He=null,Ke=null,eO=0;function be(O,e){let a=O.pos+e;if(eO==a&&Ke==O)return He;let t=O.peek(e);for(;zO(t);)t=O.peek(++e);let i="";for(;Wa(t);)i+=String.fromCharCode(t),t=O.peek(++e);return Ke=O,eO=a,He=i?i.toLowerCase():t==Va||t==Ca?void 0:null}const AO=60,ee=62,ve=47,Va=63,Ca=33,Ra=45;function OO(O,e){this.name=O,this.parent=e,this.hash=e?e.hash:0;for(let a=0;a-1?new OO(be(t,1)||"",O):O},reduce(O,e){return e==RO&&O?O.parent:O},reuse(O,e,a,t){let i=e.type.id;return i==K||i==Ya?new OO(be(t,1)||"",O):O},hash(O){return O?O.hash:0},strict:!1}),za=new b((O,e)=>{if(O.next!=AO){O.next<0&&e.context&&O.acceptToken(he);return}O.advance();let a=O.next==ve;a&&O.advance();let t=be(O,0);if(t===void 0)return;if(!t)return O.acceptToken(a?Za:K);let i=e.context?e.context.name:null;if(a){if(t==i)return O.acceptToken(Pa);if(i&&_a[i])return O.acceptToken(he,-2);if(e.dialectEnabled(Ta))return O.acceptToken(ma);for(let r=e.context;r;r=r.parent)if(r.name==t)return;O.acceptToken(Xa)}else{if(t=="script")return O.acceptToken(_O);if(t=="style")return O.acceptToken(WO);if(t=="textarea")return O.acceptToken(VO);if(qa.hasOwnProperty(t))return O.acceptToken(CO);i&&Fe[i]&&Fe[i][t]?O.acceptToken(he,-1):O.acceptToken(K)}},{contextual:!0}),Aa=new b(O=>{for(let e=0,a=0;;a++){if(O.next<0){a&&O.acceptToken(Me);break}if(O.next==Ra)e++;else if(O.next==ee&&e>=2){a>3&&O.acceptToken(Me,-2);break}else e=0;O.advance()}});function Ia(O){for(;O;O=O.parent)if(O.name=="svg"||O.name=="math")return!0;return!1}const Ea=new b((O,e)=>{if(O.next==ve&&O.peek(1)==ee){let a=e.dialectEnabled(Ua)||Ia(e.context);O.acceptToken(a?ga:Le,2)}else O.next==ee&&O.acceptToken(Le,1)});function Te(O,e,a){let t=2+O.length;return new b(i=>{for(let r=0,s=0,n=0;;n++){if(i.next<0){n&&i.acceptToken(e);break}if(r==0&&i.next==AO||r==1&&i.next==ve||r>=2&&rs?i.acceptToken(e,-s):i.acceptToken(a,-(s-2));break}else if((i.next==10||i.next==13)&&n){i.acceptToken(e,1);break}else r=s=0;i.advance()}})}const Na=Te("script",fa,ha),Da=Te("style",pa,da),Ba=Te("textarea",Sa,$a),Ja=re({"Text RawText":l.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":l.angleBracket,TagName:l.tagName,"MismatchedCloseTag/TagName":[l.tagName,l.invalid],AttributeName:l.attributeName,"AttributeValue UnquotedAttributeValue":l.attributeValue,Is:l.definitionOperator,"EntityReference CharacterReference":l.character,Comment:l.blockComment,ProcessingInst:l.processingInstruction,DoctypeDecl:l.documentMeta}),La=T.deserialize({version:14,states:",xOVO!rOOO!WQ#tO'#CqO!]Q#tO'#CzO!bQ#tO'#C}O!gQ#tO'#DQO!lQ#tO'#DSO!qOaO'#CpO!|ObO'#CpO#XOdO'#CpO$eO!rO'#CpOOO`'#Cp'#CpO$lO$fO'#DTO$tQ#tO'#DVO$yQ#tO'#DWOOO`'#Dk'#DkOOO`'#DY'#DYQVO!rOOO%OQ&rO,59]O%WQ&rO,59fO%`Q&rO,59iO%hQ&rO,59lO%sQ&rO,59nOOOa'#D^'#D^O%{OaO'#CxO&WOaO,59[OOOb'#D_'#D_O&`ObO'#C{O&kObO,59[OOOd'#D`'#D`O&sOdO'#DOO'OOdO,59[OOO`'#Da'#DaO'WO!rO,59[O'_Q#tO'#DROOO`,59[,59[OOOp'#Db'#DbO'dO$fO,59oOOO`,59o,59oO'lQ#|O,59qO'qQ#|O,59rOOO`-E7W-E7WO'vQ&rO'#CsOOQW'#DZ'#DZO(UQ&rO1G.wOOOa1G.w1G.wO(^Q&rO1G/QOOOb1G/Q1G/QO(fQ&rO1G/TOOOd1G/T1G/TO(nQ&rO1G/WOOO`1G/W1G/WOOO`1G/Y1G/YO(yQ&rO1G/YOOOa-E7[-E7[O)RQ#tO'#CyOOO`1G.v1G.vOOOb-E7]-E7]O)WQ#tO'#C|OOOd-E7^-E7^O)]Q#tO'#DPOO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`#f#i#l#r#x!aP!a!aP$O$U$l$r$x%O%U%[%bPPPPPPPP%hX^OX`pXUOX`pezabcde{}!P!R!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ}bQ!PcQ!RdQ!UeZ!e{}!P!R!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"âš  StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:67,context:Ga,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,21,30,33,36,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,29,32,35,37,"OpenTag"],["group",-9,14,17,18,19,20,39,40,41,42,"Entity",16,"Entity TextContent",-3,28,31,34,"TextContent Entity"]],propSources:[Ja],skippedNodes:[0],repeatNodeCount:9,tokenData:"#%g!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs4ysv-_vw5iwxJ^x}-_}!OKP!O!P-_!P!Q$q!Q![-_![!]!!O!]!^-_!^!_!&W!_!`#$o!`!a&X!a!c-_!c!}!!O!}#R-_#R#S!!O#S#T3V#T#o!!O#o#s-_#s$f$q$f%W-_%W%o!!O%o%p-_%p&a!!O&a&b-_&b1p!!O1p4U-_4U4d!!O4d4e-_4e$IS!!O$IS$I`-_$I`$Ib!!O$Ib$Kh-_$Kh%#t!!O%#t&/x-_&/x&Et!!O&Et&FV-_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=`#$i<%l?Ah!Ey?Ah?BY!G_?BY?Mn!Ey?MnO!G_!V#$lP;=`<%l!Ey!V#$zXiS`P!a`!cpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",tokenizers:[Na,Da,Ba,Ea,za,Aa,0,1,2,3,4,5],topRules:{Document:[0,15]},dialects:{noMatch:0,selfClosing:485},tokenPrec:487});function IO(O,e){let a=Object.create(null);for(let t of O.getChildren(jO)){let i=t.getChild(wa),r=t.getChild(Ze)||t.getChild(GO);i&&(a[e.read(i.from,i.to)]=r?r.type.id==Ze?e.read(r.from+1,r.to-1):e.read(r.from,r.to):"")}return a}function tO(O,e){let a=O.getChild(ba);return a?e.read(a.from,a.to):" "}function pe(O,e,a){let t;for(let i of a)if(!i.attrs||i.attrs(t||(t=IO(O.node.parent.firstChild,e))))return{parser:i.parser};return null}function EO(O=[],e=[]){let a=[],t=[],i=[],r=[];for(let n of O)(n.tag=="script"?a:n.tag=="style"?t:n.tag=="textarea"?i:r).push(n);let s=e.length?Object.create(null):null;for(let n of e)(s[n.name]||(s[n.name]=[])).push(n);return Vt((n,o)=>{let c=n.type.id;if(c==ka)return pe(n,o,a);if(c==ya)return pe(n,o,t);if(c==xa)return pe(n,o,i);if(c==RO&&r.length){let f=n.node,Q=f.firstChild,h=Q&&tO(Q,o),u;if(h){for(let d of r)if(d.tag==h&&(!d.attrs||d.attrs(u||(u=IO(f,o))))){let $=f.lastChild;return{parser:d.parser,overlay:[{from:Q.to,to:$.type.id==va?$.from:f.to}]}}}}if(s&&c==jO){let f=n.node,Q;if(Q=f.firstChild){let h=s[o.read(Q.from,Q.to)];if(h)for(let u of h){if(u.tagName&&u.tagName!=tO(f.parent,o))continue;let d=f.lastChild;if(d.type.id==Ze){let $=d.from+1,g=d.lastChild,x=d.to-(g&&g.isError?0:1);if(x>$)return{parser:u.parser,overlay:[{from:$,to:x}]}}else if(d.type.id==GO)return{parser:u.parser,overlay:[{from:d.from,to:d.to}]}}}}return null})}const Ma=95,aO=1,Fa=96,Ha=97,iO=2,NO=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],Ka=58,ei=40,DO=95,Oi=91,L=45,ti=46,ai=35,ii=37;function Oe(O){return O>=65&&O<=90||O>=97&&O<=122||O>=161}function ri(O){return O>=48&&O<=57}const si=new b((O,e)=>{for(let a=!1,t=0,i=0;;i++){let{next:r}=O;if(Oe(r)||r==L||r==DO||a&&ri(r))!a&&(r!=L||i>0)&&(a=!0),t===i&&r==L&&t++,O.advance();else{a&&O.acceptToken(r==ei?Fa:t==2&&e.canShift(iO)?iO:Ha);break}}}),ni=new b(O=>{if(NO.includes(O.peek(-1))){let{next:e}=O;(Oe(e)||e==DO||e==ai||e==ti||e==Oi||e==Ka||e==L)&&O.acceptToken(Ma)}}),li=new b(O=>{if(!NO.includes(O.peek(-1))){let{next:e}=O;if(e==ii&&(O.advance(),O.acceptToken(aO)),Oe(e)){do O.advance();while(Oe(O.next));O.acceptToken(aO)}}}),oi=re({"AtKeyword import charset namespace keyframes media supports":l.definitionKeyword,"from to selector":l.keyword,NamespaceName:l.namespace,KeyframeName:l.labelName,KeyframeRangeName:l.operatorKeyword,TagName:l.tagName,ClassName:l.className,PseudoClassName:l.constant(l.className),IdName:l.labelName,"FeatureName PropertyName":l.propertyName,AttributeName:l.attributeName,NumberLiteral:l.number,KeywordQuery:l.keyword,UnaryQueryOp:l.operatorKeyword,"CallTag ValueName":l.atom,VariableName:l.variableName,Callee:l.operatorKeyword,Unit:l.unit,"UniversalSelector NestingSelector":l.definitionOperator,MatchOp:l.compareOperator,"ChildOp SiblingOp, LogicOp":l.logicOperator,BinOp:l.arithmeticOperator,Important:l.modifier,Comment:l.blockComment,ColorLiteral:l.color,"ParenthesizedContent StringLiteral":l.string,":":l.punctuation,"PseudoOp #":l.derefOperator,"; ,":l.separator,"( )":l.paren,"[ ]":l.squareBracket,"{ }":l.brace}),Qi={__proto__:null,lang:32,"nth-child":32,"nth-last-child":32,"nth-of-type":32,"nth-last-of-type":32,dir:32,"host-context":32,url:60,"url-prefix":60,domain:60,regexp:60,selector:134},ci={__proto__:null,"@import":114,"@media":138,"@charset":142,"@namespace":146,"@keyframes":152,"@supports":164},ui={__proto__:null,not:128,only:128},fi=T.deserialize({version:14,states:"8`QYQ[OOO#_Q[OOOOQP'#Cd'#CdOOQP'#Cc'#CcO#fQ[O'#CfO$YQXO'#CaO$aQ[O'#ChO$lQ[O'#DPO$qQ[O'#DTOOQP'#Ee'#EeO$vQdO'#DeO%bQ[O'#DrO$vQdO'#DtO%sQ[O'#DvO&OQ[O'#DyO&WQ[O'#EPO&fQ[O'#EROOQS'#Ed'#EdOOQS'#ET'#ETQYQ[OOO&mQXO'#CdO'bQWO'#DaO'gQWO'#EkO'rQ[O'#EkQOQWOOOOQP'#Cg'#CgOOQP,59Q,59QO#fQ[O,59QO'|Q[O'#EWO(hQWO,58{O(pQ[O,59SO$lQ[O,59kO$qQ[O,59oO'|Q[O,59sO'|Q[O,59uO'|Q[O,59vO({Q[O'#D`OOQS,58{,58{OOQP'#Ck'#CkOOQO'#C}'#C}OOQP,59S,59SO)SQWO,59SO)XQWO,59SOOQP'#DR'#DROOQP,59k,59kOOQO'#DV'#DVO)^Q`O,59oOOQS'#Cp'#CpO$vQdO'#CqO)fQvO'#CsO*sQtO,5:POOQO'#Cx'#CxO)XQWO'#CwO+XQWO'#CyOOQS'#Eh'#EhOOQO'#Dh'#DhO+^Q[O'#DoO+lQWO'#ElO&WQ[O'#DmO+zQWO'#DpOOQO'#Em'#EmO(kQWO,5:^O,PQpO,5:`OOQS'#Dx'#DxO,XQWO,5:bO,^Q[O,5:bOOQO'#D{'#D{O,fQWO,5:eO,kQWO,5:kO,sQWO,5:mOOQS-E8R-E8RO$vQdO,59{O,{Q[O'#EYO-YQWO,5;VO-YQWO,5;VOOQP1G.l1G.lO.PQXO,5:rOOQO-E8U-E8UOOQS1G.g1G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eS!RROy%^z;'S%^;'S;=`%o<%lO%^_KvS!QVOy%^z;'S%^;'S;=`%o<%lO%^ZLXU!PPOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^WLnP;=`<%l$}",tokenizers:[ni,li,si,0,1,2,3],topRules:{StyleSheet:[0,4],Styles:[1,84]},specialized:[{term:96,get:O=>Qi[O]||-1},{term:56,get:O=>ci[O]||-1},{term:97,get:O=>ui[O]||-1}],tokenPrec:1142});let de=null;function Se(){if(!de&&typeof document=="object"&&document.body){let{style:O}=document.body,e=[],a=new Set;for(let t in O)t!="cssText"&&t!="cssFloat"&&typeof O[t]=="string"&&(/[A-Z]/.test(t)&&(t=t.replace(/[A-Z]/g,i=>"-"+i.toLowerCase())),a.has(t)||(e.push(t),a.add(t)));de=e.sort().map(t=>({type:"property",label:t}))}return de||[]}const rO=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(O=>({type:"class",label:O})),sO=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(O=>({type:"keyword",label:O})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(O=>({type:"constant",label:O}))),hi=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(O=>({type:"type",label:O})),y=/^(\w[\w-]*|-\w[\w-]*|)$/,pi=/^-(-[\w-]*)?$/;function di(O,e){var a;if((O.name=="("||O.type.isError)&&(O=O.parent||O),O.name!="ArgList")return!1;let t=(a=O.parent)===null||a===void 0?void 0:a.firstChild;return(t==null?void 0:t.name)!="Callee"?!1:e.sliceString(t.from,t.to)=="var"}const nO=new xO,Si=["Declaration"];function $i(O){for(let e=O;;){if(e.type.isTop)return e;if(!(e=e.parent))return O}}function BO(O,e,a){if(e.to-e.from>4096){let t=nO.get(e);if(t)return t;let i=[],r=new Set,s=e.cursor(Ye.IncludeAnonymous);if(s.firstChild())do for(let n of BO(O,s.node,a))r.has(n.label)||(r.add(n.label),i.push(n));while(s.nextSibling());return nO.set(e,i),i}else{let t=[],i=new Set;return e.cursor().iterate(r=>{var s;if(a(r)&&r.matchContext(Si)&&((s=r.node.nextSibling)===null||s===void 0?void 0:s.name)==":"){let n=O.sliceString(r.from,r.to);i.has(n)||(i.add(n),t.push({label:n,type:"variable"}))}}),t}}const gi=O=>e=>{let{state:a,pos:t}=e,i=W(a).resolveInner(t,-1),r=i.type.isError&&i.from==i.to-1&&a.doc.sliceString(i.from,i.to)=="-";if(i.name=="PropertyName"||(r||i.name=="TagName")&&/^(Block|Styles)$/.test(i.resolve(i.to).name))return{from:i.from,options:Se(),validFor:y};if(i.name=="ValueName")return{from:i.from,options:sO,validFor:y};if(i.name=="PseudoClassName")return{from:i.from,options:rO,validFor:y};if(O(i)||(e.explicit||r)&&di(i,a.doc))return{from:O(i)||r?i.from:t,options:BO(a.doc,$i(i),O),validFor:pi};if(i.name=="TagName"){for(let{parent:o}=i;o;o=o.parent)if(o.name=="Block")return{from:i.from,options:Se(),validFor:y};return{from:i.from,options:hi,validFor:y}}if(!e.explicit)return null;let s=i.resolve(t),n=s.childBefore(t);return n&&n.name==":"&&s.name=="PseudoClassSelector"?{from:t,options:rO,validFor:y}:n&&n.name==":"&&s.name=="Declaration"||s.name=="ArgList"?{from:t,options:sO,validFor:y}:s.name=="Block"||s.name=="Styles"?{from:t,options:Se(),validFor:y}:null},Pi=gi(O=>O.name=="VariableName"),te=se.define({name:"css",parser:fi.configure({props:[ne.add({Declaration:G()}),le.add({Block:yO})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function mi(){return new oe(te,te.data.of({autocomplete:Pi}))}const lO=302,oO=1,Xi=2,QO=303,Zi=305,bi=306,wi=3,ki=4,yi=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],JO=125,xi=59,cO=47,Yi=42,vi=43,Ti=45,Ui=new qO({start:!1,shift(O,e){return e==wi||e==ki||e==Zi?O:e==bi},strict:!1}),qi=new b((O,e)=>{let{next:a}=O;(a==JO||a==-1||e.context)&&e.canShift(QO)&&O.acceptToken(QO)},{contextual:!0,fallback:!0}),_i=new b((O,e)=>{let{next:a}=O,t;yi.indexOf(a)>-1||a==cO&&((t=O.peek(1))==cO||t==Yi)||a!=JO&&a!=xi&&a!=-1&&!e.context&&e.canShift(lO)&&O.acceptToken(lO)},{contextual:!0}),Wi=new b((O,e)=>{let{next:a}=O;if((a==vi||a==Ti)&&(O.advance(),a==O.next)){O.advance();let t=!e.context&&e.canShift(oO);O.acceptToken(t?oO:Xi)}},{contextual:!0}),Vi=re({"get set async static":l.modifier,"for while do if else switch try catch finally return throw break continue default case":l.controlKeyword,"in of await yield void typeof delete instanceof":l.operatorKeyword,"let var const function class extends":l.definitionKeyword,"import export from":l.moduleKeyword,"with debugger as new":l.keyword,TemplateString:l.special(l.string),super:l.atom,BooleanLiteral:l.bool,this:l.self,null:l.null,Star:l.modifier,VariableName:l.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":l.function(l.variableName),VariableDefinition:l.definition(l.variableName),Label:l.labelName,PropertyName:l.propertyName,PrivatePropertyName:l.special(l.propertyName),"CallExpression/MemberExpression/PropertyName":l.function(l.propertyName),"FunctionDeclaration/VariableDefinition":l.function(l.definition(l.variableName)),"ClassDeclaration/VariableDefinition":l.definition(l.className),PropertyDefinition:l.definition(l.propertyName),PrivatePropertyDefinition:l.definition(l.special(l.propertyName)),UpdateOp:l.updateOperator,LineComment:l.lineComment,BlockComment:l.blockComment,Number:l.number,String:l.string,Escape:l.escape,ArithOp:l.arithmeticOperator,LogicOp:l.logicOperator,BitOp:l.bitwiseOperator,CompareOp:l.compareOperator,RegExp:l.regexp,Equals:l.definitionOperator,Arrow:l.function(l.punctuation),": Spread":l.punctuation,"( )":l.paren,"[ ]":l.squareBracket,"{ }":l.brace,"InterpolationStart InterpolationEnd":l.special(l.brace),".":l.derefOperator,", ;":l.separator,"@":l.meta,TypeName:l.typeName,TypeDefinition:l.definition(l.typeName),"type enum interface implements namespace module declare":l.definitionKeyword,"abstract global Privacy readonly override":l.modifier,"is keyof unique infer":l.operatorKeyword,JSXAttributeValue:l.attributeValue,JSXText:l.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":l.angleBracket,"JSXIdentifier JSXNameSpacedName":l.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":l.attributeName,"JSXBuiltin/JSXIdentifier":l.standard(l.tagName)}),Ci={__proto__:null,export:14,as:19,from:27,default:30,async:35,function:36,extends:46,this:50,true:58,false:58,null:70,void:74,typeof:78,super:96,new:130,delete:146,yield:155,await:159,class:164,public:221,private:221,protected:221,readonly:223,instanceof:242,satisfies:245,in:246,const:248,import:280,keyof:335,unique:339,infer:345,is:381,abstract:401,implements:403,type:405,let:408,var:410,interface:417,enum:421,namespace:427,module:429,declare:433,global:437,for:456,of:465,while:468,with:472,do:476,if:480,else:482,switch:486,case:492,try:498,catch:502,finally:506,return:510,throw:514,break:518,continue:522,debugger:526},Ri={__proto__:null,async:117,get:119,set:121,declare:181,public:183,private:183,protected:183,static:185,abstract:187,override:189,readonly:195,accessor:197,new:385},ji={__proto__:null,"<":137},Gi=T.deserialize({version:14,states:"$6[O`QUOOO%QQUOOO'TQWOOP(bOSOOO*pQ(CjO'#CfO*wOpO'#CgO+VO!bO'#CgO+eO07`O'#DZO-vQUO'#DaO.WQUO'#DlO%QQUO'#DvO0[QUO'#EOOOQ(CY'#EW'#EWO0uQSO'#ETOOQO'#Ei'#EiOOQO'#Ib'#IbO0}QSO'#GkO1YQSO'#EhO1_QSO'#EhO3aQ(CjO'#JcO6QQ(CjO'#JdO6nQSO'#FWO6sQ#tO'#FoOOQ(CY'#F`'#F`O7OO&jO'#F`O7^Q,UO'#FvO8tQSO'#FuOOQ(CY'#Jd'#JdOOQ(CW'#Jc'#JcOOQQ'#KO'#KOO8yQSO'#IOO9OQ(C[O'#IPOOQQ'#JP'#JPOOQQ'#IT'#ITQ`QUOOO%QQUO'#DnO9WQUO'#DzO%QQUO'#D|O9_QSO'#GkO9dQ,UO'#ClO9rQS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-b'dS-g't-iQ-l'|Q-n(TQ.X(iQ._(mQ.c9lQ.e9oQ.f9pQ.g9qQ.v)pQ/x*sQ1q,nQ1t,qQ2U-ZQ2]-oQ2q.]Q2v9tQ2w9uQ2x9vQ2y9wQ2z9xQ2{9yQ2|9zQ2}9{Q3O9|Q3P9}Q3Q:OQ3R:PQ3S.dQ3V:UQ3W:_Q3]:QQ4O/zQ4V0XQ5i:`Q5o2WQ5t2^Q6Q2rQ6R:aQ6W:cQ6X:jQ7P4kQ7n5gQ7r5pQ7{:kQ8P:pQ8Q:qQ8v7tQ9U8cQ9]8tQ9n#OR;Q;^R#WWR&{!cY!qQ'Q,}0u4pS&w!c,uQ']!oS'g!r!uS'i!v4rS,r&x'PS-^'^'_Q-`'`Q1{,{R2Z-_R(k#tR(n#uQ!dQT,|'Q,}]!nQ!o'Q,}0u4pQ#l]R'Z9mT#gZ%ZS#fZ%ZU%y|},ZU(W#d#e#hS-r(X(YQ-v(ZQ0h+hQ2`-sU2a-t-u-wS5v2b2cR7u5w`#YW#S#V%v't'}+e-mt#cZ|}#d#e#h%Z(X(Y(Z+h-s-t-u-w2b2c5wQ1_,ZQ1r,oQ5e1jQ7m5fT:x&y+fT#]W%vS#[W%vS'u#S'}S'z#V+eS,t&y+fT-h't-mT'O!c%wQ$hfR)j$mT)_$h)`R3Z.kT*O$u*QR*W$xQ/}*zQ2e.OQ4s0wQ5{2iQ7X4vQ7x5zQ8e7WQ8w7wQ9W8gQ9`8yQ9e9XR9h9alpOXr!X#`%]&d&f&g&i,],b1b1eQ&^!TR,Q&ZV%z|},ZR0q+qR,P&XQ%szR+c%tR+X%nT&b!U&eT&c!U&eT1d,b1e",nodeNames:"âš  ArithOp ArithOp LineComment BlockComment Script ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXStartTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:364,context:Ui,nodeProps:[["group",-26,6,14,16,62,199,203,206,207,209,212,215,225,227,233,235,237,239,242,248,254,256,258,260,262,264,265,"Statement",-32,10,11,25,28,29,35,45,48,49,51,56,64,72,76,78,80,81,103,104,113,114,131,134,136,137,138,139,141,142,162,163,165,"Expression",-23,24,26,30,34,36,38,166,168,170,171,173,174,175,177,178,179,181,182,183,193,195,197,198,"Type",-3,84,96,102,"ClassItem"],["openedBy",31,"InterpolationStart",50,"[",54,"{",69,"(",143,"JSXStartTag",155,"JSXStartTag JSXStartCloseTag"],["closedBy",33,"InterpolationEnd",44,"]",55,"}",70,")",144,"JSXSelfCloseEndTag JSXEndTag",160,"JSXEndTag"]],propSources:[Vi],skippedNodes:[0,3,4,268],repeatNodeCount:33,tokenData:"$>y(CSR!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tu>PuvBavwDxwxGgxyMvyz! Qz{!![{|!%O|}!&]}!O!%O!O!P!'g!P!Q!1w!Q!R#0t!R![#3T![!]#@T!]!^#Aa!^!_#Bk!_!`#GS!`!a#In!a!b#N{!b!c$$z!c!}>P!}#O$&U#O#P$'`#P#Q$,w#Q#R$.R#R#S>P#S#T$/`#T#o$0j#o#p$4z#p#q$5p#q#r$7Q#r#s$8^#s$f%Z$f$g+g$g#BY>P#BY#BZ$9h#BZ$IS>P$IS$I_$9h$I_$I|>P$I|$I}$P$JT$JU$9h$JU$KV>P$KV$KW$9h$KW&FU>P&FU&FV$9h&FV;'S>P;'S;=`BZ<%l?HT>P?HT?HU$9h?HUO>P(n%d_$d&j'wp'z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$d&jO!^&c!_#o&c#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(rx}%Z}!O@T!O!Q%Z!Q![>P![!^%Z!^!_*g!_!c%Z!c!}>P!}#O%Z#O#P&c#P#R%Z#R#S>P#S#T%Z#T#o>P#o#p*g#p$g%Z$g;'S>P;'S;=`BZ<%lO>P",tokenizers:[_i,Wi,2,3,4,5,6,7,8,9,10,11,12,13,qi,new Xe("$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOq~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;'S!P;'S;=`#v<%lO!P~!UO!O~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(T~~",141,326),new Xe("j~RQYZXz{^~^O'q~~aP!P!Qd~iO'r~~",25,308)],topRules:{Script:[0,5],SingleExpression:[1,266],SingleClassItem:[2,267]},dialects:{jsx:12686,ts:12688},dynamicPrecedences:{76:1,78:1,163:1,191:1},specialized:[{term:312,get:O=>Ci[O]||-1},{term:328,get:O=>Ri[O]||-1},{term:67,get:O=>ji[O]||-1}],tokenPrec:12712}),zi=[X("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),X("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),X("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),X("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),X("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),X(`try { \${} } catch (\${error}) { \${} diff --git a/ui/dist/assets/ConfirmEmailChangeDocs-46e0d26f.js b/ui/dist/assets/ConfirmEmailChangeDocs-afbacda3.js similarity index 97% rename from ui/dist/assets/ConfirmEmailChangeDocs-46e0d26f.js rename to ui/dist/assets/ConfirmEmailChangeDocs-afbacda3.js index b5636805..e9cbf7f4 100644 --- a/ui/dist/assets/ConfirmEmailChangeDocs-46e0d26f.js +++ b/ui/dist/assets/ConfirmEmailChangeDocs-afbacda3.js @@ -1,4 +1,4 @@ -import{S as Ce,i as $e,s as we,e as r,w as g,b as h,c as he,f as b,g as f,h as n,m as ve,x as Y,N as pe,P as Pe,k as Se,Q as Oe,n as Te,t as Z,a as x,o as m,d as ge,T as Re,C as Ee,p as ye,r as j,u as Be,M as qe}from"./index-69e255fe.js";import{S as Ae}from"./SdkTabs-5df68e34.js";function ue(o,l,s){const a=o.slice();return a[5]=l[s],a}function be(o,l,s){const a=o.slice();return a[5]=l[s],a}function _e(o,l){let s,a=l[5].code+"",_,u,i,d;function p(){return l[4](l[5])}return{key:o,first:null,c(){s=r("button"),_=g(a),u=h(),b(s,"class","tab-item"),j(s,"active",l[1]===l[5].code),this.first=s},m(C,$){f(C,s,$),n(s,_),n(s,u),i||(d=Be(s,"click",p),i=!0)},p(C,$){l=C,$&4&&a!==(a=l[5].code+"")&&Y(_,a),$&6&&j(s,"active",l[1]===l[5].code)},d(C){C&&m(s),i=!1,d()}}}function ke(o,l){let s,a,_,u;return a=new qe({props:{content:l[5].body}}),{key:o,first:null,c(){s=r("div"),he(a.$$.fragment),_=h(),b(s,"class","tab-item"),j(s,"active",l[1]===l[5].code),this.first=s},m(i,d){f(i,s,d),ve(a,s,null),n(s,_),u=!0},p(i,d){l=i;const p={};d&4&&(p.content=l[5].body),a.$set(p),(!u||d&6)&&j(s,"active",l[1]===l[5].code)},i(i){u||(Z(a.$$.fragment,i),u=!0)},o(i){x(a.$$.fragment,i),u=!1},d(i){i&&m(s),ge(a)}}}function Ue(o){var re,fe;let l,s,a=o[0].name+"",_,u,i,d,p,C,$,D=o[0].name+"",H,ee,F,w,I,T,L,P,M,te,N,R,le,Q,K=o[0].name+"",z,se,G,E,J,y,V,B,X,S,q,v=[],ae=new Map,oe,A,k=[],ne=new Map,O;w=new Ae({props:{js:` +import{S as Ce,i as $e,s as we,e as r,w as g,b as h,c as he,f as b,g as f,h as n,m as ve,x as Y,N as pe,P as Pe,k as Se,Q as Oe,n as Te,t as Z,a as x,o as m,d as ge,T as Re,C as Ee,p as ye,r as j,u as Be,M as qe}from"./index-055843b5.js";import{S as Ae}from"./SdkTabs-1c685373.js";function ue(o,l,s){const a=o.slice();return a[5]=l[s],a}function be(o,l,s){const a=o.slice();return a[5]=l[s],a}function _e(o,l){let s,a=l[5].code+"",_,u,i,d;function p(){return l[4](l[5])}return{key:o,first:null,c(){s=r("button"),_=g(a),u=h(),b(s,"class","tab-item"),j(s,"active",l[1]===l[5].code),this.first=s},m(C,$){f(C,s,$),n(s,_),n(s,u),i||(d=Be(s,"click",p),i=!0)},p(C,$){l=C,$&4&&a!==(a=l[5].code+"")&&Y(_,a),$&6&&j(s,"active",l[1]===l[5].code)},d(C){C&&m(s),i=!1,d()}}}function ke(o,l){let s,a,_,u;return a=new qe({props:{content:l[5].body}}),{key:o,first:null,c(){s=r("div"),he(a.$$.fragment),_=h(),b(s,"class","tab-item"),j(s,"active",l[1]===l[5].code),this.first=s},m(i,d){f(i,s,d),ve(a,s,null),n(s,_),u=!0},p(i,d){l=i;const p={};d&4&&(p.content=l[5].body),a.$set(p),(!u||d&6)&&j(s,"active",l[1]===l[5].code)},i(i){u||(Z(a.$$.fragment,i),u=!0)},o(i){x(a.$$.fragment,i),u=!1},d(i){i&&m(s),ge(a)}}}function Ue(o){var re,fe;let l,s,a=o[0].name+"",_,u,i,d,p,C,$,D=o[0].name+"",H,ee,F,w,I,T,L,P,M,te,N,R,le,Q,K=o[0].name+"",z,se,G,E,J,y,V,B,X,S,q,v=[],ae=new Map,oe,A,k=[],ne=new Map,O;w=new Ae({props:{js:` import PocketBase from 'pocketbase'; const pb = new PocketBase('${o[3]}'); diff --git a/ui/dist/assets/ConfirmPasswordResetDocs-a44e6cea.js b/ui/dist/assets/ConfirmPasswordResetDocs-9eb1f601.js similarity index 98% rename from ui/dist/assets/ConfirmPasswordResetDocs-a44e6cea.js rename to ui/dist/assets/ConfirmPasswordResetDocs-9eb1f601.js index 9f101ed1..dc61eb37 100644 --- a/ui/dist/assets/ConfirmPasswordResetDocs-a44e6cea.js +++ b/ui/dist/assets/ConfirmPasswordResetDocs-9eb1f601.js @@ -1,4 +1,4 @@ -import{S as Se,i as he,s as Re,e as r,w as P,b as v,c as ve,f as b,g as d,h as n,m as we,x as K,N as me,P as Ne,k as Oe,Q as Ce,n as We,t as Z,a as x,o as f,d as Pe,T as $e,C as Ee,p as Te,r as U,u as ge,M as Ae}from"./index-69e255fe.js";import{S as De}from"./SdkTabs-5df68e34.js";function ue(o,s,l){const a=o.slice();return a[5]=s[l],a}function be(o,s,l){const a=o.slice();return a[5]=s[l],a}function _e(o,s){let l,a=s[5].code+"",_,u,i,p;function m(){return s[4](s[5])}return{key:o,first:null,c(){l=r("button"),_=P(a),u=v(),b(l,"class","tab-item"),U(l,"active",s[1]===s[5].code),this.first=l},m(S,h){d(S,l,h),n(l,_),n(l,u),i||(p=ge(l,"click",m),i=!0)},p(S,h){s=S,h&4&&a!==(a=s[5].code+"")&&K(_,a),h&6&&U(l,"active",s[1]===s[5].code)},d(S){S&&f(l),i=!1,p()}}}function ke(o,s){let l,a,_,u;return a=new Ae({props:{content:s[5].body}}),{key:o,first:null,c(){l=r("div"),ve(a.$$.fragment),_=v(),b(l,"class","tab-item"),U(l,"active",s[1]===s[5].code),this.first=l},m(i,p){d(i,l,p),we(a,l,null),n(l,_),u=!0},p(i,p){s=i;const m={};p&4&&(m.content=s[5].body),a.$set(m),(!u||p&6)&&U(l,"active",s[1]===s[5].code)},i(i){u||(Z(a.$$.fragment,i),u=!0)},o(i){x(a.$$.fragment,i),u=!1},d(i){i&&f(l),Pe(a)}}}function ye(o){var re,de;let s,l,a=o[0].name+"",_,u,i,p,m,S,h,M=o[0].name+"",j,ee,H,R,L,W,Q,N,q,te,B,$,se,z,F=o[0].name+"",G,le,J,E,V,T,X,g,Y,O,A,w=[],ae=new Map,oe,D,k=[],ne=new Map,C;R=new De({props:{js:` +import{S as Se,i as he,s as Re,e as r,w as P,b as v,c as ve,f as b,g as d,h as n,m as we,x as K,N as me,P as Ne,k as Oe,Q as Ce,n as We,t as Z,a as x,o as f,d as Pe,T as $e,C as Ee,p as Te,r as U,u as ge,M as Ae}from"./index-055843b5.js";import{S as De}from"./SdkTabs-1c685373.js";function ue(o,s,l){const a=o.slice();return a[5]=s[l],a}function be(o,s,l){const a=o.slice();return a[5]=s[l],a}function _e(o,s){let l,a=s[5].code+"",_,u,i,p;function m(){return s[4](s[5])}return{key:o,first:null,c(){l=r("button"),_=P(a),u=v(),b(l,"class","tab-item"),U(l,"active",s[1]===s[5].code),this.first=l},m(S,h){d(S,l,h),n(l,_),n(l,u),i||(p=ge(l,"click",m),i=!0)},p(S,h){s=S,h&4&&a!==(a=s[5].code+"")&&K(_,a),h&6&&U(l,"active",s[1]===s[5].code)},d(S){S&&f(l),i=!1,p()}}}function ke(o,s){let l,a,_,u;return a=new Ae({props:{content:s[5].body}}),{key:o,first:null,c(){l=r("div"),ve(a.$$.fragment),_=v(),b(l,"class","tab-item"),U(l,"active",s[1]===s[5].code),this.first=l},m(i,p){d(i,l,p),we(a,l,null),n(l,_),u=!0},p(i,p){s=i;const m={};p&4&&(m.content=s[5].body),a.$set(m),(!u||p&6)&&U(l,"active",s[1]===s[5].code)},i(i){u||(Z(a.$$.fragment,i),u=!0)},o(i){x(a.$$.fragment,i),u=!1},d(i){i&&f(l),Pe(a)}}}function ye(o){var re,de;let s,l,a=o[0].name+"",_,u,i,p,m,S,h,M=o[0].name+"",j,ee,H,R,L,W,Q,N,q,te,B,$,se,z,F=o[0].name+"",G,le,J,E,V,T,X,g,Y,O,A,w=[],ae=new Map,oe,D,k=[],ne=new Map,C;R=new De({props:{js:` import PocketBase from 'pocketbase'; const pb = new PocketBase('${o[3]}'); diff --git a/ui/dist/assets/ConfirmVerificationDocs-5a1a3f37.js b/ui/dist/assets/ConfirmVerificationDocs-807a8aac.js similarity index 97% rename from ui/dist/assets/ConfirmVerificationDocs-5a1a3f37.js rename to ui/dist/assets/ConfirmVerificationDocs-807a8aac.js index bdcc90b0..b592706e 100644 --- a/ui/dist/assets/ConfirmVerificationDocs-5a1a3f37.js +++ b/ui/dist/assets/ConfirmVerificationDocs-807a8aac.js @@ -1,4 +1,4 @@ -import{S as we,i as Ce,s as Pe,e as r,w as $,b as v,c as ve,f as b,g as f,h as n,m as he,x as H,N as de,P as Te,k as ge,Q as ye,n as Be,t as Z,a as x,o as m,d as $e,T as qe,C as Se,p as Ee,r as R,u as Me,M as Ne}from"./index-69e255fe.js";import{S as Oe}from"./SdkTabs-5df68e34.js";function ue(i,l,s){const o=i.slice();return o[5]=l[s],o}function be(i,l,s){const o=i.slice();return o[5]=l[s],o}function _e(i,l){let s,o=l[5].code+"",_,u,a,p;function d(){return l[4](l[5])}return{key:i,first:null,c(){s=r("button"),_=$(o),u=v(),b(s,"class","tab-item"),R(s,"active",l[1]===l[5].code),this.first=s},m(w,C){f(w,s,C),n(s,_),n(s,u),a||(p=Me(s,"click",d),a=!0)},p(w,C){l=w,C&4&&o!==(o=l[5].code+"")&&H(_,o),C&6&&R(s,"active",l[1]===l[5].code)},d(w){w&&m(s),a=!1,p()}}}function ke(i,l){let s,o,_,u;return o=new Ne({props:{content:l[5].body}}),{key:i,first:null,c(){s=r("div"),ve(o.$$.fragment),_=v(),b(s,"class","tab-item"),R(s,"active",l[1]===l[5].code),this.first=s},m(a,p){f(a,s,p),he(o,s,null),n(s,_),u=!0},p(a,p){l=a;const d={};p&4&&(d.content=l[5].body),o.$set(d),(!u||p&6)&&R(s,"active",l[1]===l[5].code)},i(a){u||(Z(o.$$.fragment,a),u=!0)},o(a){x(o.$$.fragment,a),u=!1},d(a){a&&m(s),$e(o)}}}function Ve(i){var re,fe;let l,s,o=i[0].name+"",_,u,a,p,d,w,C,K=i[0].name+"",F,ee,I,P,L,B,Q,T,A,te,U,q,le,z,j=i[0].name+"",G,se,J,S,W,E,X,M,Y,g,N,h=[],oe=new Map,ie,O,k=[],ne=new Map,y;P=new Oe({props:{js:` +import{S as we,i as Ce,s as Pe,e as r,w as $,b as v,c as ve,f as b,g as f,h as n,m as he,x as H,N as de,P as Te,k as ge,Q as ye,n as Be,t as Z,a as x,o as m,d as $e,T as qe,C as Se,p as Ee,r as R,u as Me,M as Ne}from"./index-055843b5.js";import{S as Oe}from"./SdkTabs-1c685373.js";function ue(i,l,s){const o=i.slice();return o[5]=l[s],o}function be(i,l,s){const o=i.slice();return o[5]=l[s],o}function _e(i,l){let s,o=l[5].code+"",_,u,a,p;function d(){return l[4](l[5])}return{key:i,first:null,c(){s=r("button"),_=$(o),u=v(),b(s,"class","tab-item"),R(s,"active",l[1]===l[5].code),this.first=s},m(w,C){f(w,s,C),n(s,_),n(s,u),a||(p=Me(s,"click",d),a=!0)},p(w,C){l=w,C&4&&o!==(o=l[5].code+"")&&H(_,o),C&6&&R(s,"active",l[1]===l[5].code)},d(w){w&&m(s),a=!1,p()}}}function ke(i,l){let s,o,_,u;return o=new Ne({props:{content:l[5].body}}),{key:i,first:null,c(){s=r("div"),ve(o.$$.fragment),_=v(),b(s,"class","tab-item"),R(s,"active",l[1]===l[5].code),this.first=s},m(a,p){f(a,s,p),he(o,s,null),n(s,_),u=!0},p(a,p){l=a;const d={};p&4&&(d.content=l[5].body),o.$set(d),(!u||p&6)&&R(s,"active",l[1]===l[5].code)},i(a){u||(Z(o.$$.fragment,a),u=!0)},o(a){x(o.$$.fragment,a),u=!1},d(a){a&&m(s),$e(o)}}}function Ve(i){var re,fe;let l,s,o=i[0].name+"",_,u,a,p,d,w,C,K=i[0].name+"",F,ee,I,P,L,B,Q,T,A,te,U,q,le,z,j=i[0].name+"",G,se,J,S,W,E,X,M,Y,g,N,h=[],oe=new Map,ie,O,k=[],ne=new Map,y;P=new Oe({props:{js:` import PocketBase from 'pocketbase'; const pb = new PocketBase('${i[3]}'); diff --git a/ui/dist/assets/CreateApiDocs-3f2e45a8.js b/ui/dist/assets/CreateApiDocs-3f2e45a8.js deleted file mode 100644 index 82fc4051..00000000 --- a/ui/dist/assets/CreateApiDocs-3f2e45a8.js +++ /dev/null @@ -1,114 +0,0 @@ -import{S as Ht,i as Lt,s as Pt,C as Q,M as At,e as a,w as k,b as m,c as Pe,f as h,g as r,h as n,m as Be,x,N as Le,P as ht,k as Bt,Q as Ft,n as Rt,t as fe,a as pe,o as d,d as Fe,T as gt,p as jt,r as ue,u as Dt,y as le}from"./index-69e255fe.js";import{S as Nt}from"./SdkTabs-5df68e34.js";function wt(o,e,l){const s=o.slice();return s[7]=e[l],s}function Ct(o,e,l){const s=o.slice();return s[7]=e[l],s}function St(o,e,l){const s=o.slice();return s[12]=e[l],s}function $t(o){let e;return{c(){e=a("p"),e.innerHTML="Requires admin Authorization:TOKEN header",h(e,"class","txt-hint txt-sm txt-right")},m(l,s){r(l,e,s)},d(l){l&&d(e)}}}function Tt(o){let e,l,s,b,p,c,f,v,T,w,M,g,D,E,L,I,j,R,S,N,q,C,_;function O(u,$){var ee,K;return(K=(ee=u[0])==null?void 0:ee.options)!=null&&K.requireEmail?Jt:Vt}let z=O(o),P=z(o);return{c(){e=a("tr"),e.innerHTML='Auth fields',l=m(),s=a("tr"),s.innerHTML=`
Optional - username
- String - The username of the auth record. -
- If not set, it will be auto generated.`,b=m(),p=a("tr"),c=a("td"),f=a("div"),P.c(),v=m(),T=a("span"),T.textContent="email",w=m(),M=a("td"),M.innerHTML='String',g=m(),D=a("td"),D.textContent="Auth record email address.",E=m(),L=a("tr"),L.innerHTML=`
Optional - emailVisibility
- Boolean - Whether to show/hide the auth record email when fetching the record data.`,I=m(),j=a("tr"),j.innerHTML=`
Required - password
- String - Auth record password.`,R=m(),S=a("tr"),S.innerHTML=`
Required - passwordConfirm
- String - Auth record password confirmation.`,N=m(),q=a("tr"),q.innerHTML=`
Optional - verified
- Boolean - Indicates whether the auth record is verified or not. -
- This field can be set only by admins or auth records with "Manage" access.`,C=m(),_=a("tr"),_.innerHTML='Schema fields',h(f,"class","inline-flex")},m(u,$){r(u,e,$),r(u,l,$),r(u,s,$),r(u,b,$),r(u,p,$),n(p,c),n(c,f),P.m(f,null),n(f,v),n(f,T),n(p,w),n(p,M),n(p,g),n(p,D),r(u,E,$),r(u,L,$),r(u,I,$),r(u,j,$),r(u,R,$),r(u,S,$),r(u,N,$),r(u,q,$),r(u,C,$),r(u,_,$)},p(u,$){z!==(z=O(u))&&(P.d(1),P=z(u),P&&(P.c(),P.m(f,v)))},d(u){u&&d(e),u&&d(l),u&&d(s),u&&d(b),u&&d(p),P.d(),u&&d(E),u&&d(L),u&&d(I),u&&d(j),u&&d(R),u&&d(S),u&&d(N),u&&d(q),u&&d(C),u&&d(_)}}}function Vt(o){let e;return{c(){e=a("span"),e.textContent="Optional",h(e,"class","label label-warning")},m(l,s){r(l,e,s)},d(l){l&&d(e)}}}function Jt(o){let e;return{c(){e=a("span"),e.textContent="Required",h(e,"class","label label-success")},m(l,s){r(l,e,s)},d(l){l&&d(e)}}}function Et(o){let e;return{c(){e=a("span"),e.textContent="Optional",h(e,"class","label label-warning")},m(l,s){r(l,e,s)},d(l){l&&d(e)}}}function It(o){let e;return{c(){e=a("span"),e.textContent="Required",h(e,"class","label label-success")},m(l,s){r(l,e,s)},d(l){l&&d(e)}}}function Ut(o){var p;let e,l=((p=o[12].options)==null?void 0:p.maxSelect)===1?"id":"ids",s,b;return{c(){e=k("Relation record "),s=k(l),b=k(".")},m(c,f){r(c,e,f),r(c,s,f),r(c,b,f)},p(c,f){var v;f&1&&l!==(l=((v=c[12].options)==null?void 0:v.maxSelect)===1?"id":"ids")&&x(s,l)},d(c){c&&d(e),c&&d(s),c&&d(b)}}}function Qt(o){let e,l,s,b,p;return{c(){e=k("File object."),l=a("br"),s=k(` - Set to `),b=a("code"),b.textContent="null",p=k(" to delete already uploaded file(s).")},m(c,f){r(c,e,f),r(c,l,f),r(c,s,f),r(c,b,f),r(c,p,f)},p:le,d(c){c&&d(e),c&&d(l),c&&d(s),c&&d(b),c&&d(p)}}}function zt(o){let e;return{c(){e=k("URL address.")},m(l,s){r(l,e,s)},p:le,d(l){l&&d(e)}}}function Kt(o){let e;return{c(){e=k("Email address.")},m(l,s){r(l,e,s)},p:le,d(l){l&&d(e)}}}function Wt(o){let e;return{c(){e=k("JSON array or object.")},m(l,s){r(l,e,s)},p:le,d(l){l&&d(e)}}}function Yt(o){let e;return{c(){e=k("Number value.")},m(l,s){r(l,e,s)},p:le,d(l){l&&d(e)}}}function Gt(o){let e;return{c(){e=k("Plain text value.")},m(l,s){r(l,e,s)},p:le,d(l){l&&d(e)}}}function qt(o,e){let l,s,b,p,c,f=e[12].name+"",v,T,w,M,g=Q.getFieldValueType(e[12])+"",D,E,L,I;function j(_,O){return _[12].required?It:Et}let R=j(e),S=R(e);function N(_,O){if(_[12].type==="text")return Gt;if(_[12].type==="number")return Yt;if(_[12].type==="json")return Wt;if(_[12].type==="email")return Kt;if(_[12].type==="url")return zt;if(_[12].type==="file")return Qt;if(_[12].type==="relation")return Ut}let q=N(e),C=q&&q(e);return{key:o,first:null,c(){l=a("tr"),s=a("td"),b=a("div"),S.c(),p=m(),c=a("span"),v=k(f),T=m(),w=a("td"),M=a("span"),D=k(g),E=m(),L=a("td"),C&&C.c(),I=m(),h(b,"class","inline-flex"),h(M,"class","label"),this.first=l},m(_,O){r(_,l,O),n(l,s),n(s,b),S.m(b,null),n(b,p),n(b,c),n(c,v),n(l,T),n(l,w),n(w,M),n(M,D),n(l,E),n(l,L),C&&C.m(L,null),n(l,I)},p(_,O){e=_,R!==(R=j(e))&&(S.d(1),S=R(e),S&&(S.c(),S.m(b,p))),O&1&&f!==(f=e[12].name+"")&&x(v,f),O&1&&g!==(g=Q.getFieldValueType(e[12])+"")&&x(D,g),q===(q=N(e))&&C?C.p(e,O):(C&&C.d(1),C=q&&q(e),C&&(C.c(),C.m(L,null)))},d(_){_&&d(l),S.d(),C&&C.d()}}}function Mt(o,e){let l,s=e[7].code+"",b,p,c,f;function v(){return e[6](e[7])}return{key:o,first:null,c(){l=a("button"),b=k(s),p=m(),h(l,"class","tab-item"),ue(l,"active",e[1]===e[7].code),this.first=l},m(T,w){r(T,l,w),n(l,b),n(l,p),c||(f=Dt(l,"click",v),c=!0)},p(T,w){e=T,w&4&&s!==(s=e[7].code+"")&&x(b,s),w&6&&ue(l,"active",e[1]===e[7].code)},d(T){T&&d(l),c=!1,f()}}}function Ot(o,e){let l,s,b,p;return s=new At({props:{content:e[7].body}}),{key:o,first:null,c(){l=a("div"),Pe(s.$$.fragment),b=m(),h(l,"class","tab-item"),ue(l,"active",e[1]===e[7].code),this.first=l},m(c,f){r(c,l,f),Be(s,l,null),n(l,b),p=!0},p(c,f){e=c;const v={};f&4&&(v.content=e[7].body),s.$set(v),(!p||f&6)&&ue(l,"active",e[1]===e[7].code)},i(c){p||(fe(s.$$.fragment,c),p=!0)},o(c){pe(s.$$.fragment,c),p=!1},d(c){c&&d(l),Fe(s)}}}function Xt(o){var st,it,at,ot,rt,dt,ct,ft;let e,l,s=o[0].name+"",b,p,c,f,v,T,w,M=o[0].name+"",g,D,E,L,I,j,R,S,N,q,C,_,O,z,P,u,$,ee,K=o[0].name+"",me,Re,ge,be,ne,_e,W,ke,je,U,ye,De,ve,V=[],Ne=new Map,he,se,we,Y,Ce,Ve,Se,G,$e,Je,Te,Ee,A,Ie,te,Ue,Qe,ze,qe,Ke,Me,We,Ye,Ge,Oe,Xe,Ae,ie,He,X,ae,J=[],Ze=new Map,xe,oe,B=[],et=new Map,Z;S=new Nt({props:{js:` -import PocketBase from 'pocketbase'; - -const pb = new PocketBase('${o[4]}'); - -... - -// example create data -const data = ${JSON.stringify(Object.assign({},o[3],Q.dummyCollectionSchemaData(o[0])),null,4)}; - -const record = await pb.collection('${(st=o[0])==null?void 0:st.name}').create(data); -`+((it=o[0])!=null&&it.isAuth?` -// (optional) send an email verification request -await pb.collection('${(at=o[0])==null?void 0:at.name}').requestVerification('test@example.com'); -`:""),dart:` -import 'package:pocketbase/pocketbase.dart'; - -final pb = PocketBase('${o[4]}'); - -... - -// example create body -final body = ${JSON.stringify(Object.assign({},o[3],Q.dummyCollectionSchemaData(o[0])),null,2)}; - -final record = await pb.collection('${(ot=o[0])==null?void 0:ot.name}').create(body: body); -`+((rt=o[0])!=null&&rt.isAuth?` -// (optional) send an email verification request -await pb.collection('${(dt=o[0])==null?void 0:dt.name}').requestVerification('test@example.com'); -`:"")}});let F=o[5]&&$t(),H=((ct=o[0])==null?void 0:ct.isAuth)&&Tt(o),de=(ft=o[0])==null?void 0:ft.schema;const tt=t=>t[12].name;for(let t=0;tt[7].code;for(let t=0;tt[7].code;for(let t=0;tapplication/json or - multipart/form-data.`,I=m(),j=a("p"),j.innerHTML=`File upload is supported only via multipart/form-data. -
- For more info and examples you could check the detailed - Files upload and handling docs - .`,R=m(),Pe(S.$$.fragment),N=m(),q=a("h6"),q.textContent="API details",C=m(),_=a("div"),O=a("strong"),O.textContent="POST",z=m(),P=a("div"),u=a("p"),$=k("/api/collections/"),ee=a("strong"),me=k(K),Re=k("/records"),ge=m(),F&&F.c(),be=m(),ne=a("div"),ne.textContent="Body Parameters",_e=m(),W=a("table"),ke=a("thead"),ke.innerHTML=`Param - Type - Description`,je=m(),U=a("tbody"),ye=a("tr"),ye.innerHTML=`
Optional - id
- String - 15 characters string to store as record ID. -
- If not set, it will be auto generated.`,De=m(),H&&H.c(),ve=m();for(let t=0;tParam - Type - Description`,Ve=m(),Se=a("tbody"),G=a("tr"),$e=a("td"),$e.textContent="expand",Je=m(),Te=a("td"),Te.innerHTML='String',Ee=m(),A=a("td"),Ie=k(`Auto expand relations when returning the created record. Ex.: - `),Pe(te.$$.fragment),Ue=k(` - Supports up to 6-levels depth nested relations expansion. `),Qe=a("br"),ze=k(` - The expanded relations will be appended to the record under the - `),qe=a("code"),qe.textContent="expand",Ke=k(" property (eg. "),Me=a("code"),Me.textContent='"expand": {"relField1": {...}, ...}',We=k(`). - `),Ye=a("br"),Ge=k(` - Only the relations to which the request user has permissions to `),Oe=a("strong"),Oe.textContent="view",Xe=k(" will be expanded."),Ae=m(),ie=a("div"),ie.textContent="Responses",He=m(),X=a("div"),ae=a("div");for(let t=0;t${JSON.stringify(Object.assign({},t[3],Q.dummyCollectionSchemaData(t[0])),null,2)}; - -final record = await pb.collection('${(bt=t[0])==null?void 0:bt.name}').create(body: body); -`+((_t=t[0])!=null&&_t.isAuth?` -// (optional) send an email verification request -await pb.collection('${(kt=t[0])==null?void 0:kt.name}').requestVerification('test@example.com'); -`:"")),S.$set(y),(!Z||i&1)&&K!==(K=t[0].name+"")&&x(me,K),t[5]?F||(F=$t(),F.c(),F.m(_,null)):F&&(F.d(1),F=null),(yt=t[0])!=null&&yt.isAuth?H?H.p(t,i):(H=Tt(t),H.c(),H.m(U,ve)):H&&(H.d(1),H=null),i&1&&(de=(vt=t[0])==null?void 0:vt.schema,V=Le(V,i,tt,1,t,de,Ne,U,ht,qt,null,St)),i&6&&(ce=t[2],J=Le(J,i,lt,1,t,ce,Ze,ae,ht,Mt,null,Ct)),i&6&&(re=t[2],Bt(),B=Le(B,i,nt,1,t,re,et,oe,Ft,Ot,null,wt),Rt())},i(t){if(!Z){fe(S.$$.fragment,t),fe(te.$$.fragment,t);for(let i=0;il(1,c=w.code);return o.$$set=w=>{"collection"in w&&l(0,p=w.collection)},o.$$.update=()=>{var w,M;o.$$.dirty&1&&l(5,s=(p==null?void 0:p.createRule)===null),o.$$.dirty&1&&l(2,f=[{code:200,body:JSON.stringify(Q.dummyCollectionRecord(p),null,2)},{code:400,body:` - { - "code": 400, - "message": "Failed to create record.", - "data": { - "${(M=(w=p==null?void 0:p.schema)==null?void 0:w[0])==null?void 0:M.name}": { - "code": "validation_required", - "message": "Missing required value." - } - } - } - `},{code:403,body:` - { - "code": 403, - "message": "You are not allowed to perform this request.", - "data": {} - } - `}]),o.$$.dirty&1&&(p.$isAuth?l(3,v={username:"test_username",email:"test@example.com",emailVisibility:!0,password:"12345678",passwordConfirm:"12345678"}):l(3,v={}))},l(4,b=Q.getApiExampleUrl(jt.baseUrl)),[p,c,f,v,b,s,T]}class tl extends Ht{constructor(e){super(),Lt(this,e,Zt,Xt,Pt,{collection:0})}}export{tl as default}; diff --git a/ui/dist/assets/CreateApiDocs-e288535b.js b/ui/dist/assets/CreateApiDocs-e288535b.js new file mode 100644 index 00000000..68b637f8 --- /dev/null +++ b/ui/dist/assets/CreateApiDocs-e288535b.js @@ -0,0 +1,114 @@ +import{S as Pt,i as gt,s as Ft,C as Q,M as Lt,e as a,w as k,b as m,c as be,f as h,g as r,h as n,m as _e,x,N as Be,P as $t,k as Bt,Q as Rt,n as jt,t as fe,a as pe,o as d,d as ke,T as Dt,p as Nt,r as ye,u as Vt,y as ne}from"./index-055843b5.js";import{S as Jt}from"./SdkTabs-1c685373.js";import{F as Et}from"./FieldsQueryParam-815b0ee8.js";function Ct(o,e,l){const s=o.slice();return s[7]=e[l],s}function St(o,e,l){const s=o.slice();return s[7]=e[l],s}function Tt(o,e,l){const s=o.slice();return s[12]=e[l],s}function qt(o){let e;return{c(){e=a("p"),e.innerHTML="Requires admin Authorization:TOKEN header",h(e,"class","txt-hint txt-sm txt-right")},m(l,s){r(l,e,s)},d(l){l&&d(e)}}}function Mt(o){let e,l,s,b,p,c,f,v,T,w,M,R,D,E,L,I,j,B,C,N,q,$,_;function O(u,S){var ee,K;return(K=(ee=u[0])==null?void 0:ee.options)!=null&&K.requireEmail?Ut:It}let z=O(o),P=z(o);return{c(){e=a("tr"),e.innerHTML='Auth fields',l=m(),s=a("tr"),s.innerHTML=`
Optional + username
+ String + The username of the auth record. +
+ If not set, it will be auto generated.`,b=m(),p=a("tr"),c=a("td"),f=a("div"),P.c(),v=m(),T=a("span"),T.textContent="email",w=m(),M=a("td"),M.innerHTML='String',R=m(),D=a("td"),D.textContent="Auth record email address.",E=m(),L=a("tr"),L.innerHTML=`
Optional + emailVisibility
+ Boolean + Whether to show/hide the auth record email when fetching the record data.`,I=m(),j=a("tr"),j.innerHTML=`
Required + password
+ String + Auth record password.`,B=m(),C=a("tr"),C.innerHTML=`
Required + passwordConfirm
+ String + Auth record password confirmation.`,N=m(),q=a("tr"),q.innerHTML=`
Optional + verified
+ Boolean + Indicates whether the auth record is verified or not. +
+ This field can be set only by admins or auth records with "Manage" access.`,$=m(),_=a("tr"),_.innerHTML='Schema fields',h(f,"class","inline-flex")},m(u,S){r(u,e,S),r(u,l,S),r(u,s,S),r(u,b,S),r(u,p,S),n(p,c),n(c,f),P.m(f,null),n(f,v),n(f,T),n(p,w),n(p,M),n(p,R),n(p,D),r(u,E,S),r(u,L,S),r(u,I,S),r(u,j,S),r(u,B,S),r(u,C,S),r(u,N,S),r(u,q,S),r(u,$,S),r(u,_,S)},p(u,S){z!==(z=O(u))&&(P.d(1),P=z(u),P&&(P.c(),P.m(f,v)))},d(u){u&&d(e),u&&d(l),u&&d(s),u&&d(b),u&&d(p),P.d(),u&&d(E),u&&d(L),u&&d(I),u&&d(j),u&&d(B),u&&d(C),u&&d(N),u&&d(q),u&&d($),u&&d(_)}}}function It(o){let e;return{c(){e=a("span"),e.textContent="Optional",h(e,"class","label label-warning")},m(l,s){r(l,e,s)},d(l){l&&d(e)}}}function Ut(o){let e;return{c(){e=a("span"),e.textContent="Required",h(e,"class","label label-success")},m(l,s){r(l,e,s)},d(l){l&&d(e)}}}function Qt(o){let e;return{c(){e=a("span"),e.textContent="Optional",h(e,"class","label label-warning")},m(l,s){r(l,e,s)},d(l){l&&d(e)}}}function zt(o){let e;return{c(){e=a("span"),e.textContent="Required",h(e,"class","label label-success")},m(l,s){r(l,e,s)},d(l){l&&d(e)}}}function Kt(o){var p;let e,l=((p=o[12].options)==null?void 0:p.maxSelect)===1?"id":"ids",s,b;return{c(){e=k("Relation record "),s=k(l),b=k(".")},m(c,f){r(c,e,f),r(c,s,f),r(c,b,f)},p(c,f){var v;f&1&&l!==(l=((v=c[12].options)==null?void 0:v.maxSelect)===1?"id":"ids")&&x(s,l)},d(c){c&&d(e),c&&d(s),c&&d(b)}}}function Wt(o){let e,l,s,b,p;return{c(){e=k("File object."),l=a("br"),s=k(` + Set to `),b=a("code"),b.textContent="null",p=k(" to delete already uploaded file(s).")},m(c,f){r(c,e,f),r(c,l,f),r(c,s,f),r(c,b,f),r(c,p,f)},p:ne,d(c){c&&d(e),c&&d(l),c&&d(s),c&&d(b),c&&d(p)}}}function Yt(o){let e;return{c(){e=k("URL address.")},m(l,s){r(l,e,s)},p:ne,d(l){l&&d(e)}}}function Gt(o){let e;return{c(){e=k("Email address.")},m(l,s){r(l,e,s)},p:ne,d(l){l&&d(e)}}}function Xt(o){let e;return{c(){e=k("JSON array or object.")},m(l,s){r(l,e,s)},p:ne,d(l){l&&d(e)}}}function Zt(o){let e;return{c(){e=k("Number value.")},m(l,s){r(l,e,s)},p:ne,d(l){l&&d(e)}}}function xt(o){let e;return{c(){e=k("Plain text value.")},m(l,s){r(l,e,s)},p:ne,d(l){l&&d(e)}}}function Ot(o,e){let l,s,b,p,c,f=e[12].name+"",v,T,w,M,R=Q.getFieldValueType(e[12])+"",D,E,L,I;function j(_,O){return _[12].required?zt:Qt}let B=j(e),C=B(e);function N(_,O){if(_[12].type==="text")return xt;if(_[12].type==="number")return Zt;if(_[12].type==="json")return Xt;if(_[12].type==="email")return Gt;if(_[12].type==="url")return Yt;if(_[12].type==="file")return Wt;if(_[12].type==="relation")return Kt}let q=N(e),$=q&&q(e);return{key:o,first:null,c(){l=a("tr"),s=a("td"),b=a("div"),C.c(),p=m(),c=a("span"),v=k(f),T=m(),w=a("td"),M=a("span"),D=k(R),E=m(),L=a("td"),$&&$.c(),I=m(),h(b,"class","inline-flex"),h(M,"class","label"),this.first=l},m(_,O){r(_,l,O),n(l,s),n(s,b),C.m(b,null),n(b,p),n(b,c),n(c,v),n(l,T),n(l,w),n(w,M),n(M,D),n(l,E),n(l,L),$&&$.m(L,null),n(l,I)},p(_,O){e=_,B!==(B=j(e))&&(C.d(1),C=B(e),C&&(C.c(),C.m(b,p))),O&1&&f!==(f=e[12].name+"")&&x(v,f),O&1&&R!==(R=Q.getFieldValueType(e[12])+"")&&x(D,R),q===(q=N(e))&&$?$.p(e,O):($&&$.d(1),$=q&&q(e),$&&($.c(),$.m(L,null)))},d(_){_&&d(l),C.d(),$&&$.d()}}}function At(o,e){let l,s=e[7].code+"",b,p,c,f;function v(){return e[6](e[7])}return{key:o,first:null,c(){l=a("button"),b=k(s),p=m(),h(l,"class","tab-item"),ye(l,"active",e[1]===e[7].code),this.first=l},m(T,w){r(T,l,w),n(l,b),n(l,p),c||(f=Vt(l,"click",v),c=!0)},p(T,w){e=T,w&4&&s!==(s=e[7].code+"")&&x(b,s),w&6&&ye(l,"active",e[1]===e[7].code)},d(T){T&&d(l),c=!1,f()}}}function Ht(o,e){let l,s,b,p;return s=new Lt({props:{content:e[7].body}}),{key:o,first:null,c(){l=a("div"),be(s.$$.fragment),b=m(),h(l,"class","tab-item"),ye(l,"active",e[1]===e[7].code),this.first=l},m(c,f){r(c,l,f),_e(s,l,null),n(l,b),p=!0},p(c,f){e=c;const v={};f&4&&(v.content=e[7].body),s.$set(v),(!p||f&6)&&ye(l,"active",e[1]===e[7].code)},i(c){p||(fe(s.$$.fragment,c),p=!0)},o(c){pe(s.$$.fragment,c),p=!1},d(c){c&&d(l),ke(s)}}}function el(o){var at,ot,rt,dt,ct,ft,pt,ut;let e,l,s=o[0].name+"",b,p,c,f,v,T,w,M=o[0].name+"",R,D,E,L,I,j,B,C,N,q,$,_,O,z,P,u,S,ee,K=o[0].name+"",ve,Re,je,he,se,we,W,$e,De,U,Ce,Ne,Se,V=[],Ve=new Map,Te,ie,qe,Y,Me,Je,ae,G,Oe,Ee,Ae,Ie,A,Ue,te,Qe,ze,Ke,He,We,Le,Ye,Ge,Xe,Pe,Ze,xe,le,ge,oe,Fe,X,re,J=[],et=new Map,tt,de,g=[],lt=new Map,Z;C=new Jt({props:{js:` +import PocketBase from 'pocketbase'; + +const pb = new PocketBase('${o[4]}'); + +... + +// example create data +const data = ${JSON.stringify(Object.assign({},o[3],Q.dummyCollectionSchemaData(o[0])),null,4)}; + +const record = await pb.collection('${(at=o[0])==null?void 0:at.name}').create(data); +`+((ot=o[0])!=null&&ot.isAuth?` +// (optional) send an email verification request +await pb.collection('${(rt=o[0])==null?void 0:rt.name}').requestVerification('test@example.com'); +`:""),dart:` +import 'package:pocketbase/pocketbase.dart'; + +final pb = PocketBase('${o[4]}'); + +... + +// example create body +final body = ${JSON.stringify(Object.assign({},o[3],Q.dummyCollectionSchemaData(o[0])),null,2)}; + +final record = await pb.collection('${(dt=o[0])==null?void 0:dt.name}').create(body: body); +`+((ct=o[0])!=null&&ct.isAuth?` +// (optional) send an email verification request +await pb.collection('${(ft=o[0])==null?void 0:ft.name}').requestVerification('test@example.com'); +`:"")}});let F=o[5]&&qt(),H=((pt=o[0])==null?void 0:pt.isAuth)&&Mt(o),ue=(ut=o[0])==null?void 0:ut.schema;const nt=t=>t[12].name;for(let t=0;tt[7].code;for(let t=0;tt[7].code;for(let t=0;tapplication/json or + multipart/form-data.`,I=m(),j=a("p"),j.innerHTML=`File upload is supported only via multipart/form-data. +
+ For more info and examples you could check the detailed + Files upload and handling docs + .`,B=m(),be(C.$$.fragment),N=m(),q=a("h6"),q.textContent="API details",$=m(),_=a("div"),O=a("strong"),O.textContent="POST",z=m(),P=a("div"),u=a("p"),S=k("/api/collections/"),ee=a("strong"),ve=k(K),Re=k("/records"),je=m(),F&&F.c(),he=m(),se=a("div"),se.textContent="Body Parameters",we=m(),W=a("table"),$e=a("thead"),$e.innerHTML=`Param + Type + Description`,De=m(),U=a("tbody"),Ce=a("tr"),Ce.innerHTML=`
Optional + id
+ String + 15 characters string to store as record ID. +
+ If not set, it will be auto generated.`,Ne=m(),H&&H.c(),Se=m();for(let t=0;tParam + Type + Description`,Je=m(),ae=a("tbody"),G=a("tr"),Oe=a("td"),Oe.textContent="expand",Ee=m(),Ae=a("td"),Ae.innerHTML='String',Ie=m(),A=a("td"),Ue=k(`Auto expand relations when returning the created record. Ex.: + `),be(te.$$.fragment),Qe=k(` + Supports up to 6-levels depth nested relations expansion. `),ze=a("br"),Ke=k(` + The expanded relations will be appended to the record under the + `),He=a("code"),He.textContent="expand",We=k(" property (eg. "),Le=a("code"),Le.textContent='"expand": {"relField1": {...}, ...}',Ye=k(`). + `),Ge=a("br"),Xe=k(` + Only the relations to which the request user has permissions to `),Pe=a("strong"),Pe.textContent="view",Ze=k(" will be expanded."),xe=m(),be(le.$$.fragment),ge=m(),oe=a("div"),oe.textContent="Responses",Fe=m(),X=a("div"),re=a("div");for(let t=0;t${JSON.stringify(Object.assign({},t[3],Q.dummyCollectionSchemaData(t[0])),null,2)}; + +final record = await pb.collection('${(kt=t[0])==null?void 0:kt.name}').create(body: body); +`+((yt=t[0])!=null&&yt.isAuth?` +// (optional) send an email verification request +await pb.collection('${(vt=t[0])==null?void 0:vt.name}').requestVerification('test@example.com'); +`:"")),C.$set(y),(!Z||i&1)&&K!==(K=t[0].name+"")&&x(ve,K),t[5]?F||(F=qt(),F.c(),F.m(_,null)):F&&(F.d(1),F=null),(ht=t[0])!=null&&ht.isAuth?H?H.p(t,i):(H=Mt(t),H.c(),H.m(U,Se)):H&&(H.d(1),H=null),i&1&&(ue=(wt=t[0])==null?void 0:wt.schema,V=Be(V,i,nt,1,t,ue,Ve,U,$t,Ot,null,Tt)),i&6&&(me=t[2],J=Be(J,i,st,1,t,me,et,re,$t,At,null,St)),i&6&&(ce=t[2],Bt(),g=Be(g,i,it,1,t,ce,lt,de,Rt,Ht,null,Ct),jt())},i(t){if(!Z){fe(C.$$.fragment,t),fe(te.$$.fragment,t),fe(le.$$.fragment,t);for(let i=0;il(1,c=w.code);return o.$$set=w=>{"collection"in w&&l(0,p=w.collection)},o.$$.update=()=>{var w,M;o.$$.dirty&1&&l(5,s=(p==null?void 0:p.createRule)===null),o.$$.dirty&1&&l(2,f=[{code:200,body:JSON.stringify(Q.dummyCollectionRecord(p),null,2)},{code:400,body:` + { + "code": 400, + "message": "Failed to create record.", + "data": { + "${(M=(w=p==null?void 0:p.schema)==null?void 0:w[0])==null?void 0:M.name}": { + "code": "validation_required", + "message": "Missing required value." + } + } + } + `},{code:403,body:` + { + "code": 403, + "message": "You are not allowed to perform this request.", + "data": {} + } + `}]),o.$$.dirty&1&&(p.$isAuth?l(3,v={username:"test_username",email:"test@example.com",emailVisibility:!0,password:"12345678",passwordConfirm:"12345678"}):l(3,v={}))},l(4,b=Q.getApiExampleUrl(Nt.baseUrl)),[p,c,f,v,b,s,T]}class il extends Pt{constructor(e){super(),gt(this,e,tl,el,Ft,{collection:0})}}export{il as default}; diff --git a/ui/dist/assets/DeleteApiDocs-47e527fe.js b/ui/dist/assets/DeleteApiDocs-f44d12c6.js similarity index 97% rename from ui/dist/assets/DeleteApiDocs-47e527fe.js rename to ui/dist/assets/DeleteApiDocs-f44d12c6.js index 40dff82d..0f2aa02c 100644 --- a/ui/dist/assets/DeleteApiDocs-47e527fe.js +++ b/ui/dist/assets/DeleteApiDocs-f44d12c6.js @@ -1,4 +1,4 @@ -import{S as Ce,i as Re,s as Pe,e as c,w as $,b as h,c as $e,f as m,g as f,h as n,m as we,x,N as _e,P as Ee,k as Te,Q as Be,n as Oe,t as ee,a as te,o as u,d as ge,T as Ie,C as Me,p as Ae,r as N,u as Se,M as qe}from"./index-69e255fe.js";import{S as He}from"./SdkTabs-5df68e34.js";function ke(o,l,s){const a=o.slice();return a[6]=l[s],a}function he(o,l,s){const a=o.slice();return a[6]=l[s],a}function ve(o){let l;return{c(){l=c("p"),l.innerHTML="Requires admin Authorization:TOKEN header",m(l,"class","txt-hint txt-sm txt-right")},m(s,a){f(s,l,a)},d(s){s&&u(l)}}}function ye(o,l){let s,a=l[6].code+"",v,i,r,p;function w(){return l[5](l[6])}return{key:o,first:null,c(){s=c("button"),v=$(a),i=h(),m(s,"class","tab-item"),N(s,"active",l[2]===l[6].code),this.first=s},m(b,g){f(b,s,g),n(s,v),n(s,i),r||(p=Se(s,"click",w),r=!0)},p(b,g){l=b,g&20&&N(s,"active",l[2]===l[6].code)},d(b){b&&u(s),r=!1,p()}}}function De(o,l){let s,a,v,i;return a=new qe({props:{content:l[6].body}}),{key:o,first:null,c(){s=c("div"),$e(a.$$.fragment),v=h(),m(s,"class","tab-item"),N(s,"active",l[2]===l[6].code),this.first=s},m(r,p){f(r,s,p),we(a,s,null),n(s,v),i=!0},p(r,p){l=r,(!i||p&20)&&N(s,"active",l[2]===l[6].code)},i(r){i||(ee(a.$$.fragment,r),i=!0)},o(r){te(a.$$.fragment,r),i=!1},d(r){r&&u(s),ge(a)}}}function Le(o){var ue,pe;let l,s,a=o[0].name+"",v,i,r,p,w,b,g,q=o[0].name+"",z,le,F,C,K,T,Q,y,H,se,L,E,oe,G,U=o[0].name+"",J,ae,V,ne,W,B,X,O,Y,I,Z,R,M,D=[],ie=new Map,re,A,_=[],ce=new Map,P;C=new He({props:{js:` +import{S as Ce,i as Re,s as Pe,e as c,w as $,b as h,c as $e,f as m,g as f,h as n,m as we,x,N as _e,P as Ee,k as Te,Q as Be,n as Oe,t as ee,a as te,o as u,d as ge,T as Ie,C as Me,p as Ae,r as N,u as Se,M as qe}from"./index-055843b5.js";import{S as He}from"./SdkTabs-1c685373.js";function ke(o,l,s){const a=o.slice();return a[6]=l[s],a}function he(o,l,s){const a=o.slice();return a[6]=l[s],a}function ve(o){let l;return{c(){l=c("p"),l.innerHTML="Requires admin Authorization:TOKEN header",m(l,"class","txt-hint txt-sm txt-right")},m(s,a){f(s,l,a)},d(s){s&&u(l)}}}function ye(o,l){let s,a=l[6].code+"",v,i,r,p;function w(){return l[5](l[6])}return{key:o,first:null,c(){s=c("button"),v=$(a),i=h(),m(s,"class","tab-item"),N(s,"active",l[2]===l[6].code),this.first=s},m(b,g){f(b,s,g),n(s,v),n(s,i),r||(p=Se(s,"click",w),r=!0)},p(b,g){l=b,g&20&&N(s,"active",l[2]===l[6].code)},d(b){b&&u(s),r=!1,p()}}}function De(o,l){let s,a,v,i;return a=new qe({props:{content:l[6].body}}),{key:o,first:null,c(){s=c("div"),$e(a.$$.fragment),v=h(),m(s,"class","tab-item"),N(s,"active",l[2]===l[6].code),this.first=s},m(r,p){f(r,s,p),we(a,s,null),n(s,v),i=!0},p(r,p){l=r,(!i||p&20)&&N(s,"active",l[2]===l[6].code)},i(r){i||(ee(a.$$.fragment,r),i=!0)},o(r){te(a.$$.fragment,r),i=!1},d(r){r&&u(s),ge(a)}}}function Le(o){var ue,pe;let l,s,a=o[0].name+"",v,i,r,p,w,b,g,q=o[0].name+"",z,le,F,C,K,T,Q,y,H,se,L,E,oe,G,U=o[0].name+"",J,ae,V,ne,W,B,X,O,Y,I,Z,R,M,D=[],ie=new Map,re,A,_=[],ce=new Map,P;C=new He({props:{js:` import PocketBase from 'pocketbase'; const pb = new PocketBase('${o[3]}'); diff --git a/ui/dist/assets/FieldsQueryParam-815b0ee8.js b/ui/dist/assets/FieldsQueryParam-815b0ee8.js new file mode 100644 index 00000000..6b5e2045 --- /dev/null +++ b/ui/dist/assets/FieldsQueryParam-815b0ee8.js @@ -0,0 +1,6 @@ +import{S as d,i as n,s as i,e as l,g as o,y as s,o as p}from"./index-055843b5.js";function c(a){let e;return{c(){e=l("tr"),e.innerHTML=`fields + String + Comma separated string of the fields to return in the JSON response + (by default returns all fields). For example: +
+ ?fields=id,expand.relField.id,expand.relField.created`},m(t,r){o(t,e,r)},p:s,i:s,o:s,d(t){t&&p(e)}}}class f extends d{constructor(e){super(),n(this,e,null,c,i,{})}}export{f as F}; diff --git a/ui/dist/assets/FilterAutocompleteInput-b8c7c37b.js b/ui/dist/assets/FilterAutocompleteInput-a7a53af8.js similarity index 99% rename from ui/dist/assets/FilterAutocompleteInput-b8c7c37b.js rename to ui/dist/assets/FilterAutocompleteInput-a7a53af8.js index efc55fac..4630ebd0 100644 --- a/ui/dist/assets/FilterAutocompleteInput-b8c7c37b.js +++ b/ui/dist/assets/FilterAutocompleteInput-a7a53af8.js @@ -1 +1 @@ -import{S as oe,i as ae,s as le,e as ue,f as ce,g as fe,y as H,o as de,I as he,J as ge,K as pe,H as ye,C as q,L as me}from"./index-69e255fe.js";import{E as S,a as w,h as be,b as ke,c as xe,d as Ke,e as Ce,s as qe,f as Se,g as we,r as Le,i as Ie,k as Ee,j as Re,l as Ae,m as Be,n as Oe,o as _e,p as ve,q as Y,C as E,S as He,t as De}from"./index-84ab2e4b.js";function Me(e){Z(e,"start");var i={},n=e.languageData||{},g=!1;for(var p in e)if(p!=n&&e.hasOwnProperty(p))for(var d=i[p]=[],o=e[p],s=0;s2&&o.token&&typeof o.token!="string"){n.pending=[];for(var a=2;a-1)return null;var p=n.indent.length-1,d=e[n.state];e:for(;;){for(var o=0;on(21,g=t));const p=pe();let{id:d=""}=i,{value:o=""}=i,{disabled:s=!1}=i,{placeholder:l=""}=i,{baseCollection:a=null}=i,{singleLine:b=!1}=i,{extraAutocompleteKeys:R=[]}=i,{disableRequestKeys:x=!1}=i,{disableIndirectCollectionsKeys:K=!1}=i,f,k,A=s,D=new E,M=new E,F=new E,T=new E,L=[],U=[],W=[],N=[],I="",B="";function O(){f==null||f.focus()}let _=null;function j(){clearTimeout(_),_=setTimeout(()=>{L=$(g),N=ee(),U=x?[]:te(),W=K?[]:ne()},300)}function $(t){let r=t.slice();return a&&q.pushOrReplaceByKey(r,a,"id"),r}function J(){k==null||k.dispatchEvent(new CustomEvent("change",{detail:{value:o},bubbles:!0}))}function P(){if(!d)return;const t=document.querySelectorAll('[for="'+d+'"]');for(let r of t)r.removeEventListener("click",O)}function V(){if(!d)return;P();const t=document.querySelectorAll('[for="'+d+'"]');for(let r of t)r.addEventListener("click",O)}function C(t,r="",c=0){var m,z,Q;let h=L.find(y=>y.name==t||y.id==t);if(!h||c>=4)return[];let u=q.getAllCollectionIdentifiers(h,r);for(const y of h.schema){const v=r+y.name;if(y.type==="relation"&&((m=y.options)!=null&&m.collectionId)){const X=C(y.options.collectionId,v+".",c+1);X.length&&(u=u.concat(X))}y.type==="select"&&((z=y.options)==null?void 0:z.maxSelect)!=1&&u.push(v+":each"),((Q=y.options)==null?void 0:Q.maxSelect)!=1&&["select","file","relation"].includes(y.type)&&u.push(v+":length")}return u}function ee(){return C(a==null?void 0:a.name)}function te(){const t=[];t.push("@request.method"),t.push("@request.query."),t.push("@request.data."),t.push("@request.headers."),t.push("@request.auth.id"),t.push("@request.auth.collectionId"),t.push("@request.auth.collectionName"),t.push("@request.auth.verified"),t.push("@request.auth.username"),t.push("@request.auth.email"),t.push("@request.auth.emailVisibility"),t.push("@request.auth.created"),t.push("@request.auth.updated");const r=L.filter(h=>h.$isAuth);for(const h of r){const u=C(h.id,"@request.auth.");for(const m of u)q.pushUnique(t,m)}const c=["created","updated"];if(a!=null&&a.id){const h=C(a.name,"@request.data.");for(const u of h){t.push(u);const m=u.split(".");m.length===3&&m[2].indexOf(":")===-1&&!c.includes(m[2])&&t.push(u+":isset")}}return t}function ne(){const t=[];for(const r of L){const c="@collection."+r.name+".",h=C(r.name,c);for(const u of h)t.push(u)}return t}function ie(t=!0,r=!0){let c=[].concat(R);return c=c.concat(N||[]),t&&(c=c.concat(U||[])),r&&(c=c.concat(W||[])),c.sort(function(h,u){return u.length-h.length}),c}function se(t){let r=t.matchBefore(/[\'\"\@\w\.]*/);if(r&&r.from==r.to&&!t.explicit)return null;let c=[{label:"false"},{label:"true"},{label:"@now"}];K||c.push({label:"@collection.*",apply:"@collection."});const h=ie(!x,!x&&r.text.startsWith("@c"));for(const u of h)c.push({label:u.endsWith(".")?u+"*":u,apply:u});return{from:r.from,options:c}}function G(){return He.define(Me({start:[{regex:/true|false|null/,token:"atom"},{regex:/"(?:[^\\]|\\.)*?(?:"|$)/,token:"string"},{regex:/'(?:[^\\]|\\.)*?(?:'|$)/,token:"string"},{regex:/0x[a-f\d]+|[-+]?(?:\.\d+|\d+\.?\d*)(?:e[-+]?\d+)?/i,token:"number"},{regex:/\&\&|\|\||\=|\!\=|\~|\!\~|\>|\<|\>\=|\<\=/,token:"operator"},{regex:/[\{\[\(]/,indent:!0},{regex:/[\}\]\)]/,dedent:!0},{regex:/\w+[\w\.]*\w+/,token:"keyword"},{regex:q.escapeRegExp("@now"),token:"keyword"},{regex:q.escapeRegExp("@request.method"),token:"keyword"}]}))}ye(()=>{const t={key:"Enter",run:r=>{b&&p("submit",o)}};return V(),n(11,f=new S({parent:k,state:w.create({doc:o,extensions:[be(),ke(),xe(),Ke(),Ce(),w.allowMultipleSelections.of(!0),qe(De,{fallback:!0}),Se(),we(),Le(),Ie(),Ee.of([t,...Re,...Ae,Be.find(r=>r.key==="Mod-d"),...Oe,..._e]),S.lineWrapping,ve({override:[se],icons:!1}),T.of(Y(l)),M.of(S.editable.of(!s)),F.of(w.readOnly.of(s)),D.of(G()),w.transactionFilter.of(r=>b&&r.newDoc.lines>1?[]:r),S.updateListener.of(r=>{!r.docChanged||s||(n(1,o=r.state.doc.toString()),J())})]})})),()=>{clearTimeout(_),P(),f==null||f.destroy()}});function re(t){me[t?"unshift":"push"](()=>{k=t,n(0,k)})}return e.$$set=t=>{"id"in t&&n(2,d=t.id),"value"in t&&n(1,o=t.value),"disabled"in t&&n(3,s=t.disabled),"placeholder"in t&&n(4,l=t.placeholder),"baseCollection"in t&&n(5,a=t.baseCollection),"singleLine"in t&&n(6,b=t.singleLine),"extraAutocompleteKeys"in t&&n(7,R=t.extraAutocompleteKeys),"disableRequestKeys"in t&&n(8,x=t.disableRequestKeys),"disableIndirectCollectionsKeys"in t&&n(9,K=t.disableIndirectCollectionsKeys)},e.$$.update=()=>{e.$$.dirty[0]&32&&n(13,I=Pe(a)),e.$$.dirty[0]&25352&&!s&&(B!=I||x!==-1||K!==-1)&&(n(14,B=I),j()),e.$$.dirty[0]&4&&d&&V(),e.$$.dirty[0]&2080&&f&&a!=null&&a.schema&&f.dispatch({effects:[D.reconfigure(G())]}),e.$$.dirty[0]&6152&&f&&A!=s&&(f.dispatch({effects:[M.reconfigure(S.editable.of(!s)),F.reconfigure(w.readOnly.of(s))]}),n(12,A=s),J()),e.$$.dirty[0]&2050&&f&&o!=f.state.doc.toString()&&f.dispatch({changes:{from:0,to:f.state.doc.length,insert:o}}),e.$$.dirty[0]&2064&&f&&typeof l<"u"&&f.dispatch({effects:[T.reconfigure(Y(l))]})},[k,o,d,s,l,a,b,R,x,K,O,f,A,I,B,re]}class Qe extends oe{constructor(i){super(),ae(this,i,Ve,Je,le,{id:2,value:1,disabled:3,placeholder:4,baseCollection:5,singleLine:6,extraAutocompleteKeys:7,disableRequestKeys:8,disableIndirectCollectionsKeys:9,focus:10},null,[-1,-1])}get focus(){return this.$$.ctx[10]}}export{Qe as default}; +import{S as oe,i as ae,s as le,e as ue,f as ce,g as fe,y as H,o as de,I as he,J as ge,K as pe,H as ye,C as q,L as me}from"./index-055843b5.js";import{E as S,a as w,h as be,b as ke,c as xe,d as Ke,e as Ce,s as qe,f as Se,g as we,r as Le,i as Ie,k as Ee,j as Re,l as Ae,m as Be,n as Oe,o as _e,p as ve,q as Y,C as E,S as He,t as De}from"./index-84ab2e4b.js";function Me(e){Z(e,"start");var i={},n=e.languageData||{},g=!1;for(var p in e)if(p!=n&&e.hasOwnProperty(p))for(var d=i[p]=[],o=e[p],s=0;s2&&o.token&&typeof o.token!="string"){n.pending=[];for(var a=2;a-1)return null;var p=n.indent.length-1,d=e[n.state];e:for(;;){for(var o=0;on(21,g=t));const p=pe();let{id:d=""}=i,{value:o=""}=i,{disabled:s=!1}=i,{placeholder:l=""}=i,{baseCollection:a=null}=i,{singleLine:b=!1}=i,{extraAutocompleteKeys:R=[]}=i,{disableRequestKeys:x=!1}=i,{disableIndirectCollectionsKeys:K=!1}=i,f,k,A=s,D=new E,M=new E,F=new E,T=new E,L=[],U=[],W=[],N=[],I="",B="";function O(){f==null||f.focus()}let _=null;function j(){clearTimeout(_),_=setTimeout(()=>{L=$(g),N=ee(),U=x?[]:te(),W=K?[]:ne()},300)}function $(t){let r=t.slice();return a&&q.pushOrReplaceByKey(r,a,"id"),r}function J(){k==null||k.dispatchEvent(new CustomEvent("change",{detail:{value:o},bubbles:!0}))}function P(){if(!d)return;const t=document.querySelectorAll('[for="'+d+'"]');for(let r of t)r.removeEventListener("click",O)}function V(){if(!d)return;P();const t=document.querySelectorAll('[for="'+d+'"]');for(let r of t)r.addEventListener("click",O)}function C(t,r="",c=0){var m,z,Q;let h=L.find(y=>y.name==t||y.id==t);if(!h||c>=4)return[];let u=q.getAllCollectionIdentifiers(h,r);for(const y of h.schema){const v=r+y.name;if(y.type==="relation"&&((m=y.options)!=null&&m.collectionId)){const X=C(y.options.collectionId,v+".",c+1);X.length&&(u=u.concat(X))}y.type==="select"&&((z=y.options)==null?void 0:z.maxSelect)!=1&&u.push(v+":each"),((Q=y.options)==null?void 0:Q.maxSelect)!=1&&["select","file","relation"].includes(y.type)&&u.push(v+":length")}return u}function ee(){return C(a==null?void 0:a.name)}function te(){const t=[];t.push("@request.method"),t.push("@request.query."),t.push("@request.data."),t.push("@request.headers."),t.push("@request.auth.id"),t.push("@request.auth.collectionId"),t.push("@request.auth.collectionName"),t.push("@request.auth.verified"),t.push("@request.auth.username"),t.push("@request.auth.email"),t.push("@request.auth.emailVisibility"),t.push("@request.auth.created"),t.push("@request.auth.updated");const r=L.filter(h=>h.$isAuth);for(const h of r){const u=C(h.id,"@request.auth.");for(const m of u)q.pushUnique(t,m)}const c=["created","updated"];if(a!=null&&a.id){const h=C(a.name,"@request.data.");for(const u of h){t.push(u);const m=u.split(".");m.length===3&&m[2].indexOf(":")===-1&&!c.includes(m[2])&&t.push(u+":isset")}}return t}function ne(){const t=[];for(const r of L){const c="@collection."+r.name+".",h=C(r.name,c);for(const u of h)t.push(u)}return t}function ie(t=!0,r=!0){let c=[].concat(R);return c=c.concat(N||[]),t&&(c=c.concat(U||[])),r&&(c=c.concat(W||[])),c.sort(function(h,u){return u.length-h.length}),c}function se(t){let r=t.matchBefore(/[\'\"\@\w\.]*/);if(r&&r.from==r.to&&!t.explicit)return null;let c=[{label:"false"},{label:"true"},{label:"@now"}];K||c.push({label:"@collection.*",apply:"@collection."});const h=ie(!x,!x&&r.text.startsWith("@c"));for(const u of h)c.push({label:u.endsWith(".")?u+"*":u,apply:u});return{from:r.from,options:c}}function G(){return He.define(Me({start:[{regex:/true|false|null/,token:"atom"},{regex:/"(?:[^\\]|\\.)*?(?:"|$)/,token:"string"},{regex:/'(?:[^\\]|\\.)*?(?:'|$)/,token:"string"},{regex:/0x[a-f\d]+|[-+]?(?:\.\d+|\d+\.?\d*)(?:e[-+]?\d+)?/i,token:"number"},{regex:/\&\&|\|\||\=|\!\=|\~|\!\~|\>|\<|\>\=|\<\=/,token:"operator"},{regex:/[\{\[\(]/,indent:!0},{regex:/[\}\]\)]/,dedent:!0},{regex:/\w+[\w\.]*\w+/,token:"keyword"},{regex:q.escapeRegExp("@now"),token:"keyword"},{regex:q.escapeRegExp("@request.method"),token:"keyword"}]}))}ye(()=>{const t={key:"Enter",run:r=>{b&&p("submit",o)}};return V(),n(11,f=new S({parent:k,state:w.create({doc:o,extensions:[be(),ke(),xe(),Ke(),Ce(),w.allowMultipleSelections.of(!0),qe(De,{fallback:!0}),Se(),we(),Le(),Ie(),Ee.of([t,...Re,...Ae,Be.find(r=>r.key==="Mod-d"),...Oe,..._e]),S.lineWrapping,ve({override:[se],icons:!1}),T.of(Y(l)),M.of(S.editable.of(!s)),F.of(w.readOnly.of(s)),D.of(G()),w.transactionFilter.of(r=>b&&r.newDoc.lines>1?[]:r),S.updateListener.of(r=>{!r.docChanged||s||(n(1,o=r.state.doc.toString()),J())})]})})),()=>{clearTimeout(_),P(),f==null||f.destroy()}});function re(t){me[t?"unshift":"push"](()=>{k=t,n(0,k)})}return e.$$set=t=>{"id"in t&&n(2,d=t.id),"value"in t&&n(1,o=t.value),"disabled"in t&&n(3,s=t.disabled),"placeholder"in t&&n(4,l=t.placeholder),"baseCollection"in t&&n(5,a=t.baseCollection),"singleLine"in t&&n(6,b=t.singleLine),"extraAutocompleteKeys"in t&&n(7,R=t.extraAutocompleteKeys),"disableRequestKeys"in t&&n(8,x=t.disableRequestKeys),"disableIndirectCollectionsKeys"in t&&n(9,K=t.disableIndirectCollectionsKeys)},e.$$.update=()=>{e.$$.dirty[0]&32&&n(13,I=Pe(a)),e.$$.dirty[0]&25352&&!s&&(B!=I||x!==-1||K!==-1)&&(n(14,B=I),j()),e.$$.dirty[0]&4&&d&&V(),e.$$.dirty[0]&2080&&f&&a!=null&&a.schema&&f.dispatch({effects:[D.reconfigure(G())]}),e.$$.dirty[0]&6152&&f&&A!=s&&(f.dispatch({effects:[M.reconfigure(S.editable.of(!s)),F.reconfigure(w.readOnly.of(s))]}),n(12,A=s),J()),e.$$.dirty[0]&2050&&f&&o!=f.state.doc.toString()&&f.dispatch({changes:{from:0,to:f.state.doc.length,insert:o}}),e.$$.dirty[0]&2064&&f&&typeof l<"u"&&f.dispatch({effects:[T.reconfigure(Y(l))]})},[k,o,d,s,l,a,b,R,x,K,O,f,A,I,B,re]}class Qe extends oe{constructor(i){super(),ae(this,i,Ve,Je,le,{id:2,value:1,disabled:3,placeholder:4,baseCollection:5,singleLine:6,extraAutocompleteKeys:7,disableRequestKeys:8,disableIndirectCollectionsKeys:9,focus:10},null,[-1,-1])}get focus(){return this.$$.ctx[10]}}export{Qe as default}; diff --git a/ui/dist/assets/ListApiDocs-0c49b414.js b/ui/dist/assets/ListApiDocs-0c49b414.js deleted file mode 100644 index f475e76b..00000000 --- a/ui/dist/assets/ListApiDocs-0c49b414.js +++ /dev/null @@ -1,135 +0,0 @@ -import{S as Ke,i as Ve,s as We,e,b as s,E as Ye,f as i,g as u,u as Xe,y as De,o as m,w,h as t,M as $e,c as Zt,m as te,x as Ce,N as He,P as Ze,k as tl,Q as el,n as ll,t as Gt,a as Ut,d as ee,R as sl,T as nl,C as ge,p as ol,r as ke}from"./index-69e255fe.js";import{S as il}from"./SdkTabs-5df68e34.js";function al(c){let n,o,a;return{c(){n=e("span"),n.textContent="Show details",o=s(),a=e("i"),i(n,"class","txt"),i(a,"class","ri-arrow-down-s-line")},m(p,b){u(p,n,b),u(p,o,b),u(p,a,b)},d(p){p&&m(n),p&&m(o),p&&m(a)}}}function rl(c){let n,o,a;return{c(){n=e("span"),n.textContent="Hide details",o=s(),a=e("i"),i(n,"class","txt"),i(a,"class","ri-arrow-up-s-line")},m(p,b){u(p,n,b),u(p,o,b),u(p,a,b)},d(p){p&&m(n),p&&m(o),p&&m(a)}}}function Ie(c){let n,o,a,p,b,d,h,C,x,_,f,et,kt,jt,S,Qt,D,ct,R,lt,le,U,j,se,dt,vt,st,yt,ne,ft,pt,nt,E,zt,Ft,T,ot,Lt,Jt,At,Q,it,Tt,Kt,Pt,L,ut,Rt,oe,mt,ie,H,Ot,at,St,O,bt,ae,z,Et,Vt,Nt,re,N,Wt,J,ht,ce,I,de,B,fe,P,qt,K,_t,pe,xt,ue,$,Mt,rt,Dt,me,Ht,Xt,V,wt,be,It,he,Ct,_e,G,W,Yt,q,gt,A,xe,X,Y,y,Bt,Z,v,tt,k;return{c(){n=e("p"),n.innerHTML=`The syntax basically follows the format - OPERAND - OPERATOR - OPERAND, where:`,o=s(),a=e("ul"),p=e("li"),p.innerHTML=`OPERAND - could be any of the above field literal, string (single - or double quoted), number, null, true, false`,b=s(),d=e("li"),h=e("code"),h.textContent="OPERATOR",C=w(` - is one of: - `),x=e("br"),_=s(),f=e("ul"),et=e("li"),kt=e("code"),kt.textContent="=",jt=s(),S=e("span"),S.textContent="Equal",Qt=s(),D=e("li"),ct=e("code"),ct.textContent="!=",R=s(),lt=e("span"),lt.textContent="NOT equal",le=s(),U=e("li"),j=e("code"),j.textContent=">",se=s(),dt=e("span"),dt.textContent="Greater than",vt=s(),st=e("li"),yt=e("code"),yt.textContent=">=",ne=s(),ft=e("span"),ft.textContent="Greater than or equal",pt=s(),nt=e("li"),E=e("code"),E.textContent="<",zt=s(),Ft=e("span"),Ft.textContent="Less than",T=s(),ot=e("li"),Lt=e("code"),Lt.textContent="<=",Jt=s(),At=e("span"),At.textContent="Less than or equal",Q=s(),it=e("li"),Tt=e("code"),Tt.textContent="~",Kt=s(),Pt=e("span"),Pt.textContent=`Like/Contains (if not specified auto wraps the right string OPERAND in a "%" for - wildcard match)`,L=s(),ut=e("li"),Rt=e("code"),Rt.textContent="!~",oe=s(),mt=e("span"),mt.textContent=`NOT Like/Contains (if not specified auto wraps the right string OPERAND in a "%" for - wildcard match)`,ie=s(),H=e("li"),Ot=e("code"),Ot.textContent="?=",at=s(),St=e("em"),St.textContent="Any/At least one of",O=s(),bt=e("span"),bt.textContent="Equal",ae=s(),z=e("li"),Et=e("code"),Et.textContent="?!=",Vt=s(),Nt=e("em"),Nt.textContent="Any/At least one of",re=s(),N=e("span"),N.textContent="NOT equal",Wt=s(),J=e("li"),ht=e("code"),ht.textContent="?>",ce=s(),I=e("em"),I.textContent="Any/At least one of",de=s(),B=e("span"),B.textContent="Greater than",fe=s(),P=e("li"),qt=e("code"),qt.textContent="?>=",K=s(),_t=e("em"),_t.textContent="Any/At least one of",pe=s(),xt=e("span"),xt.textContent="Greater than or equal",ue=s(),$=e("li"),Mt=e("code"),Mt.textContent="?<",rt=s(),Dt=e("em"),Dt.textContent="Any/At least one of",me=s(),Ht=e("span"),Ht.textContent="Less than",Xt=s(),V=e("li"),wt=e("code"),wt.textContent="?<=",be=s(),It=e("em"),It.textContent="Any/At least one of",he=s(),Ct=e("span"),Ct.textContent="Less than or equal",_e=s(),G=e("li"),W=e("code"),W.textContent="?~",Yt=s(),q=e("em"),q.textContent="Any/At least one of",gt=s(),A=e("span"),A.textContent=`Like/Contains (if not specified auto wraps the right string OPERAND in a "%" for - wildcard match)`,xe=s(),X=e("li"),Y=e("code"),Y.textContent="?!~",y=s(),Bt=e("em"),Bt.textContent="Any/At least one of",Z=s(),v=e("span"),v.textContent=`NOT Like/Contains (if not specified auto wraps the right string OPERAND in a "%" for - wildcard match)`,tt=s(),k=e("p"),k.innerHTML=`To group and combine several expressions you could use brackets - (...), && (AND) and || (OR) tokens.`,i(h,"class","txt-danger"),i(kt,"class","filter-op svelte-1w7s5nw"),i(S,"class","txt"),i(ct,"class","filter-op svelte-1w7s5nw"),i(lt,"class","txt"),i(j,"class","filter-op svelte-1w7s5nw"),i(dt,"class","txt"),i(yt,"class","filter-op svelte-1w7s5nw"),i(ft,"class","txt"),i(E,"class","filter-op svelte-1w7s5nw"),i(Ft,"class","txt"),i(Lt,"class","filter-op svelte-1w7s5nw"),i(At,"class","txt"),i(Tt,"class","filter-op svelte-1w7s5nw"),i(Pt,"class","txt"),i(Rt,"class","filter-op svelte-1w7s5nw"),i(mt,"class","txt"),i(Ot,"class","filter-op svelte-1w7s5nw"),i(St,"class","txt-hint"),i(bt,"class","txt"),i(Et,"class","filter-op svelte-1w7s5nw"),i(Nt,"class","txt-hint"),i(N,"class","txt"),i(ht,"class","filter-op svelte-1w7s5nw"),i(I,"class","txt-hint"),i(B,"class","txt"),i(qt,"class","filter-op svelte-1w7s5nw"),i(_t,"class","txt-hint"),i(xt,"class","txt"),i(Mt,"class","filter-op svelte-1w7s5nw"),i(Dt,"class","txt-hint"),i(Ht,"class","txt"),i(wt,"class","filter-op svelte-1w7s5nw"),i(It,"class","txt-hint"),i(Ct,"class","txt"),i(W,"class","filter-op svelte-1w7s5nw"),i(q,"class","txt-hint"),i(A,"class","txt"),i(Y,"class","filter-op svelte-1w7s5nw"),i(Bt,"class","txt-hint"),i(v,"class","txt")},m(F,$t){u(F,n,$t),u(F,o,$t),u(F,a,$t),t(a,p),t(a,b),t(a,d),t(d,h),t(d,C),t(d,x),t(d,_),t(d,f),t(f,et),t(et,kt),t(et,jt),t(et,S),t(f,Qt),t(f,D),t(D,ct),t(D,R),t(D,lt),t(f,le),t(f,U),t(U,j),t(U,se),t(U,dt),t(f,vt),t(f,st),t(st,yt),t(st,ne),t(st,ft),t(f,pt),t(f,nt),t(nt,E),t(nt,zt),t(nt,Ft),t(f,T),t(f,ot),t(ot,Lt),t(ot,Jt),t(ot,At),t(f,Q),t(f,it),t(it,Tt),t(it,Kt),t(it,Pt),t(f,L),t(f,ut),t(ut,Rt),t(ut,oe),t(ut,mt),t(f,ie),t(f,H),t(H,Ot),t(H,at),t(H,St),t(H,O),t(H,bt),t(f,ae),t(f,z),t(z,Et),t(z,Vt),t(z,Nt),t(z,re),t(z,N),t(f,Wt),t(f,J),t(J,ht),t(J,ce),t(J,I),t(J,de),t(J,B),t(f,fe),t(f,P),t(P,qt),t(P,K),t(P,_t),t(P,pe),t(P,xt),t(f,ue),t(f,$),t($,Mt),t($,rt),t($,Dt),t($,me),t($,Ht),t(f,Xt),t(f,V),t(V,wt),t(V,be),t(V,It),t(V,he),t(V,Ct),t(f,_e),t(f,G),t(G,W),t(G,Yt),t(G,q),t(G,gt),t(G,A),t(f,xe),t(f,X),t(X,Y),t(X,y),t(X,Bt),t(X,Z),t(X,v),u(F,tt,$t),u(F,k,$t)},d(F){F&&m(n),F&&m(o),F&&m(a),F&&m(tt),F&&m(k)}}}function cl(c){let n,o,a,p,b;function d(_,f){return _[0]?rl:al}let h=d(c),C=h(c),x=c[0]&&Ie();return{c(){n=e("button"),C.c(),o=s(),x&&x.c(),a=Ye(),i(n,"class","btn btn-sm btn-secondary m-t-10")},m(_,f){u(_,n,f),C.m(n,null),u(_,o,f),x&&x.m(_,f),u(_,a,f),p||(b=Xe(n,"click",c[1]),p=!0)},p(_,[f]){h!==(h=d(_))&&(C.d(1),C=h(_),C&&(C.c(),C.m(n,null))),_[0]?x||(x=Ie(),x.c(),x.m(a.parentNode,a)):x&&(x.d(1),x=null)},i:De,o:De,d(_){_&&m(n),C.d(),_&&m(o),x&&x.d(_),_&&m(a),p=!1,b()}}}function dl(c,n,o){let a=!1;function p(){o(0,a=!a)}return[a,p]}class fl extends Ke{constructor(n){super(),Ve(this,n,dl,cl,We,{})}}function Be(c,n,o){const a=c.slice();return a[7]=n[o],a}function Ge(c,n,o){const a=c.slice();return a[7]=n[o],a}function Ue(c,n,o){const a=c.slice();return a[12]=n[o],a[14]=o,a}function je(c){let n;return{c(){n=e("p"),n.innerHTML="Requires admin Authorization:TOKEN header",i(n,"class","txt-hint txt-sm txt-right")},m(o,a){u(o,n,a)},d(o){o&&m(n)}}}function Qe(c){let n,o=c[12]+"",a,p=c[14]= "2022-01-01 00:00:00" && someField1 != someField2', - }); - - // you can also fetch all records at once via getFullList - const records = await pb.collection('${(Fe=c[0])==null?void 0:Fe.name}').getFullList({ - sort: '-created', - }); - - // or fetch only the first record that matches the specified filter - const record = await pb.collection('${(Le=c[0])==null?void 0:Le.name}').getFirstListItem('someField="test"', { - expand: 'relField1,relField2.subRelField', - }); - `,dart:` - import 'package:pocketbase/pocketbase.dart'; - - final pb = PocketBase('${c[3]}'); - - ... - - // fetch a paginated records list - final resultList = await pb.collection('${(Ae=c[0])==null?void 0:Ae.name}').getList( - page: 1, - perPage: 50, - filter: 'created >= "2022-01-01 00:00:00" && someField1 != someField2', - ); - - // you can also fetch all records at once via getFullList - final records = await pb.collection('${(Te=c[0])==null?void 0:Te.name}').getFullList( - sort: '-created', - ); - - // or fetch only the first record that matches the specified filter - final record = await pb.collection('${(Pe=c[0])==null?void 0:Pe.name}').getFirstListItem( - 'someField="test"', - expand: 'relField1,relField2.subRelField', - ); - `}});let v=c[1]&&je();at=new $e({props:{content:` - // DESC by created and ASC by id - ?sort=-created,id - `}});let tt=c[4],k=[];for(let l=0;l'2022-01-01') - `}}),P=new fl({}),rt=new $e({props:{content:"?expand=relField1,relField2.subRelField"}});let F=c[5];const $t=l=>l[7].code;for(let l=0;ll[7].code;for(let l=0;lParam - Type - Description`,Ft=s(),T=e("tbody"),ot=e("tr"),ot.innerHTML=`page - Number - The page (aka. offset) of the paginated list (default to 1).`,Lt=s(),Jt=e("tr"),Jt.innerHTML=`perPage - Number - Specify the max returned records per page (default to 30).`,At=s(),Q=e("tr"),it=e("td"),it.textContent="sort",Tt=s(),Kt=e("td"),Kt.innerHTML='String',Pt=s(),L=e("td"),ut=w("Specify the records order attribute(s). "),Rt=e("br"),oe=w(` - Add `),mt=e("code"),mt.textContent="-",ie=w(" / "),H=e("code"),H.textContent="+",Ot=w(` (default) in front of the attribute for DESC / ASC order. - Ex.: - `),Zt(at.$$.fragment),St=s(),O=e("p"),bt=e("strong"),bt.textContent="Supported record sort fields:",ae=s(),z=e("br"),Et=s(),Vt=e("code"),Vt.textContent="@random",Nt=w(`, - `);for(let l=0;lString',ce=s(),I=e("td"),de=w(`Filter the returned records. Ex.: - `),Zt(B.$$.fragment),fe=s(),Zt(P.$$.fragment),qt=s(),K=e("tr"),_t=e("td"),_t.textContent="expand",pe=s(),xt=e("td"),xt.innerHTML='String',ue=s(),$=e("td"),Mt=w(`Auto expand record relations. Ex.: - `),Zt(rt.$$.fragment),Dt=w(` - Supports up to 6-levels depth nested relations expansion. `),me=e("br"),Ht=w(` - The expanded relations will be appended to each individual record under the - `),Xt=e("code"),Xt.textContent="expand",V=w(" property (eg. "),wt=e("code"),wt.textContent='"expand": {"relField1": {...}, ...}',be=w(`). - `),It=e("br"),he=w(` - Only the relations to which the request user has permissions to `),Ct=e("strong"),Ct.textContent="view",_e=w(" will be expanded."),G=s(),W=e("div"),W.textContent="Responses",Yt=s(),q=e("div"),gt=e("div");for(let l=0;l= "2022-01-01 00:00:00" && someField1 != someField2', - }); - - // you can also fetch all records at once via getFullList - const records = await pb.collection('${(Oe=l[0])==null?void 0:Oe.name}').getFullList({ - sort: '-created', - }); - - // or fetch only the first record that matches the specified filter - const record = await pb.collection('${(Se=l[0])==null?void 0:Se.name}').getFirstListItem('someField="test"', { - expand: 'relField1,relField2.subRelField', - }); - `),r&9&&(g.dart=` - import 'package:pocketbase/pocketbase.dart'; - - final pb = PocketBase('${l[3]}'); - - ... - - // fetch a paginated records list - final resultList = await pb.collection('${(Ee=l[0])==null?void 0:Ee.name}').getList( - page: 1, - perPage: 50, - filter: 'created >= "2022-01-01 00:00:00" && someField1 != someField2', - ); - - // you can also fetch all records at once via getFullList - final records = await pb.collection('${(Ne=l[0])==null?void 0:Ne.name}').getFullList( - sort: '-created', - ); - - // or fetch only the first record that matches the specified filter - final record = await pb.collection('${(qe=l[0])==null?void 0:qe.name}').getFirstListItem( - 'someField="test"', - expand: 'relField1,relField2.subRelField', - ); - `),S.$set(g),(!Z||r&1)&&vt!==(vt=l[0].name+"")&&Ce(st,vt),l[1]?v||(v=je(),v.c(),v.m(R,null)):v&&(v.d(1),v=null),r&16){tt=l[4];let M;for(M=0;Mo(2,h=_.code);return c.$$set=_=>{"collection"in _&&o(0,d=_.collection)},c.$$.update=()=>{c.$$.dirty&1&&o(4,a=ge.getAllCollectionIdentifiers(d)),c.$$.dirty&1&&o(1,p=(d==null?void 0:d.listRule)===null),c.$$.dirty&3&&d!=null&&d.id&&(C.push({code:200,body:JSON.stringify({page:1,perPage:30,totalPages:1,totalItems:2,items:[ge.dummyCollectionRecord(d),ge.dummyCollectionRecord(d)]},null,2)}),C.push({code:400,body:` - { - "code": 400, - "message": "Something went wrong while processing your request. Invalid filter.", - "data": {} - } - `}),p&&C.push({code:403,body:` - { - "code": 403, - "message": "Only admins can access this action.", - "data": {} - } - `}))},o(3,b=ge.getApiExampleUrl(ol.baseUrl)),[d,p,h,b,a,C,x]}class hl extends Ke{constructor(n){super(),Ve(this,n,ul,pl,We,{collection:0})}}export{hl as default}; diff --git a/ui/dist/assets/ListApiDocs-69c941e3.js b/ui/dist/assets/ListApiDocs-69c941e3.js new file mode 100644 index 00000000..0e953302 --- /dev/null +++ b/ui/dist/assets/ListApiDocs-69c941e3.js @@ -0,0 +1,138 @@ +import{S as We,i as Xe,s as Ye,e,b as s,E as tl,f as i,g as u,u as Ze,y as Ie,o as m,w,h as t,M as ke,c as Zt,m as te,x as ge,N as Be,P as el,k as ll,Q as sl,n as nl,t as Bt,a as Gt,d as ee,R as ol,T as il,C as $e,p as al,r as ye}from"./index-055843b5.js";import{S as rl}from"./SdkTabs-1c685373.js";function cl(c){let n,o,a;return{c(){n=e("span"),n.textContent="Show details",o=s(),a=e("i"),i(n,"class","txt"),i(a,"class","ri-arrow-down-s-line")},m(p,b){u(p,n,b),u(p,o,b),u(p,a,b)},d(p){p&&m(n),p&&m(o),p&&m(a)}}}function dl(c){let n,o,a;return{c(){n=e("span"),n.textContent="Hide details",o=s(),a=e("i"),i(n,"class","txt"),i(a,"class","ri-arrow-up-s-line")},m(p,b){u(p,n,b),u(p,o,b),u(p,a,b)},d(p){p&&m(n),p&&m(o),p&&m(a)}}}function Ge(c){let n,o,a,p,b,d,h,g,x,_,f,Z,Ct,Ut,O,jt,H,at,R,tt,le,U,j,se,rt,$t,et,kt,ne,ct,dt,lt,E,Jt,yt,L,st,vt,Qt,Ft,J,nt,Lt,zt,At,T,ft,Tt,oe,pt,ie,D,Pt,ot,Rt,S,ut,ae,Q,St,Kt,Ot,re,N,Vt,z,mt,ce,I,de,B,fe,P,Et,K,bt,pe,ht,ue,$,Nt,it,qt,me,Mt,Wt,V,_t,be,Ht,he,xt,_e,W,wt,Xt,X,Yt,q,gt,y,Dt,xe,Y,A,It,G,v;return{c(){n=e("p"),n.innerHTML=`The syntax basically follows the format + OPERAND + OPERATOR + OPERAND, where:`,o=s(),a=e("ul"),p=e("li"),p.innerHTML=`OPERAND - could be any of the above field literal, string (single + or double quoted), number, null, true, false`,b=s(),d=e("li"),h=e("code"),h.textContent="OPERATOR",g=w(` - is one of: + `),x=e("br"),_=s(),f=e("ul"),Z=e("li"),Ct=e("code"),Ct.textContent="=",Ut=s(),O=e("span"),O.textContent="Equal",jt=s(),H=e("li"),at=e("code"),at.textContent="!=",R=s(),tt=e("span"),tt.textContent="NOT equal",le=s(),U=e("li"),j=e("code"),j.textContent=">",se=s(),rt=e("span"),rt.textContent="Greater than",$t=s(),et=e("li"),kt=e("code"),kt.textContent=">=",ne=s(),ct=e("span"),ct.textContent="Greater than or equal",dt=s(),lt=e("li"),E=e("code"),E.textContent="<",Jt=s(),yt=e("span"),yt.textContent="Less than",L=s(),st=e("li"),vt=e("code"),vt.textContent="<=",Qt=s(),Ft=e("span"),Ft.textContent="Less than or equal",J=s(),nt=e("li"),Lt=e("code"),Lt.textContent="~",zt=s(),At=e("span"),At.textContent=`Like/Contains (if not specified auto wraps the right string OPERAND in a "%" for + wildcard match)`,T=s(),ft=e("li"),Tt=e("code"),Tt.textContent="!~",oe=s(),pt=e("span"),pt.textContent=`NOT Like/Contains (if not specified auto wraps the right string OPERAND in a "%" for + wildcard match)`,ie=s(),D=e("li"),Pt=e("code"),Pt.textContent="?=",ot=s(),Rt=e("em"),Rt.textContent="Any/At least one of",S=s(),ut=e("span"),ut.textContent="Equal",ae=s(),Q=e("li"),St=e("code"),St.textContent="?!=",Kt=s(),Ot=e("em"),Ot.textContent="Any/At least one of",re=s(),N=e("span"),N.textContent="NOT equal",Vt=s(),z=e("li"),mt=e("code"),mt.textContent="?>",ce=s(),I=e("em"),I.textContent="Any/At least one of",de=s(),B=e("span"),B.textContent="Greater than",fe=s(),P=e("li"),Et=e("code"),Et.textContent="?>=",K=s(),bt=e("em"),bt.textContent="Any/At least one of",pe=s(),ht=e("span"),ht.textContent="Greater than or equal",ue=s(),$=e("li"),Nt=e("code"),Nt.textContent="?<",it=s(),qt=e("em"),qt.textContent="Any/At least one of",me=s(),Mt=e("span"),Mt.textContent="Less than",Wt=s(),V=e("li"),_t=e("code"),_t.textContent="?<=",be=s(),Ht=e("em"),Ht.textContent="Any/At least one of",he=s(),xt=e("span"),xt.textContent="Less than or equal",_e=s(),W=e("li"),wt=e("code"),wt.textContent="?~",Xt=s(),X=e("em"),X.textContent="Any/At least one of",Yt=s(),q=e("span"),q.textContent=`Like/Contains (if not specified auto wraps the right string OPERAND in a "%" for + wildcard match)`,gt=s(),y=e("li"),Dt=e("code"),Dt.textContent="?!~",xe=s(),Y=e("em"),Y.textContent="Any/At least one of",A=s(),It=e("span"),It.textContent=`NOT Like/Contains (if not specified auto wraps the right string OPERAND in a "%" for + wildcard match)`,G=s(),v=e("p"),v.innerHTML=`To group and combine several expressions you could use brackets + (...), && (AND) and || (OR) tokens.`,i(h,"class","txt-danger"),i(Ct,"class","filter-op svelte-1w7s5nw"),i(O,"class","txt"),i(at,"class","filter-op svelte-1w7s5nw"),i(tt,"class","txt"),i(j,"class","filter-op svelte-1w7s5nw"),i(rt,"class","txt"),i(kt,"class","filter-op svelte-1w7s5nw"),i(ct,"class","txt"),i(E,"class","filter-op svelte-1w7s5nw"),i(yt,"class","txt"),i(vt,"class","filter-op svelte-1w7s5nw"),i(Ft,"class","txt"),i(Lt,"class","filter-op svelte-1w7s5nw"),i(At,"class","txt"),i(Tt,"class","filter-op svelte-1w7s5nw"),i(pt,"class","txt"),i(Pt,"class","filter-op svelte-1w7s5nw"),i(Rt,"class","txt-hint"),i(ut,"class","txt"),i(St,"class","filter-op svelte-1w7s5nw"),i(Ot,"class","txt-hint"),i(N,"class","txt"),i(mt,"class","filter-op svelte-1w7s5nw"),i(I,"class","txt-hint"),i(B,"class","txt"),i(Et,"class","filter-op svelte-1w7s5nw"),i(bt,"class","txt-hint"),i(ht,"class","txt"),i(Nt,"class","filter-op svelte-1w7s5nw"),i(qt,"class","txt-hint"),i(Mt,"class","txt"),i(_t,"class","filter-op svelte-1w7s5nw"),i(Ht,"class","txt-hint"),i(xt,"class","txt"),i(wt,"class","filter-op svelte-1w7s5nw"),i(X,"class","txt-hint"),i(q,"class","txt"),i(Dt,"class","filter-op svelte-1w7s5nw"),i(Y,"class","txt-hint"),i(It,"class","txt")},m(F,k){u(F,n,k),u(F,o,k),u(F,a,k),t(a,p),t(a,b),t(a,d),t(d,h),t(d,g),t(d,x),t(d,_),t(d,f),t(f,Z),t(Z,Ct),t(Z,Ut),t(Z,O),t(f,jt),t(f,H),t(H,at),t(H,R),t(H,tt),t(f,le),t(f,U),t(U,j),t(U,se),t(U,rt),t(f,$t),t(f,et),t(et,kt),t(et,ne),t(et,ct),t(f,dt),t(f,lt),t(lt,E),t(lt,Jt),t(lt,yt),t(f,L),t(f,st),t(st,vt),t(st,Qt),t(st,Ft),t(f,J),t(f,nt),t(nt,Lt),t(nt,zt),t(nt,At),t(f,T),t(f,ft),t(ft,Tt),t(ft,oe),t(ft,pt),t(f,ie),t(f,D),t(D,Pt),t(D,ot),t(D,Rt),t(D,S),t(D,ut),t(f,ae),t(f,Q),t(Q,St),t(Q,Kt),t(Q,Ot),t(Q,re),t(Q,N),t(f,Vt),t(f,z),t(z,mt),t(z,ce),t(z,I),t(z,de),t(z,B),t(f,fe),t(f,P),t(P,Et),t(P,K),t(P,bt),t(P,pe),t(P,ht),t(f,ue),t(f,$),t($,Nt),t($,it),t($,qt),t($,me),t($,Mt),t(f,Wt),t(f,V),t(V,_t),t(V,be),t(V,Ht),t(V,he),t(V,xt),t(f,_e),t(f,W),t(W,wt),t(W,Xt),t(W,X),t(W,Yt),t(W,q),t(f,gt),t(f,y),t(y,Dt),t(y,xe),t(y,Y),t(y,A),t(y,It),u(F,G,k),u(F,v,k)},d(F){F&&m(n),F&&m(o),F&&m(a),F&&m(G),F&&m(v)}}}function fl(c){let n,o,a,p,b;function d(_,f){return _[0]?dl:cl}let h=d(c),g=h(c),x=c[0]&&Ge();return{c(){n=e("button"),g.c(),o=s(),x&&x.c(),a=tl(),i(n,"class","btn btn-sm btn-secondary m-t-10")},m(_,f){u(_,n,f),g.m(n,null),u(_,o,f),x&&x.m(_,f),u(_,a,f),p||(b=Ze(n,"click",c[1]),p=!0)},p(_,[f]){h!==(h=d(_))&&(g.d(1),g=h(_),g&&(g.c(),g.m(n,null))),_[0]?x||(x=Ge(),x.c(),x.m(a.parentNode,a)):x&&(x.d(1),x=null)},i:Ie,o:Ie,d(_){_&&m(n),g.d(),_&&m(o),x&&x.d(_),_&&m(a),p=!1,b()}}}function pl(c,n,o){let a=!1;function p(){o(0,a=!a)}return[a,p]}class ul extends We{constructor(n){super(),Xe(this,n,pl,fl,Ye,{})}}function Ue(c,n,o){const a=c.slice();return a[7]=n[o],a}function je(c,n,o){const a=c.slice();return a[7]=n[o],a}function Je(c,n,o){const a=c.slice();return a[12]=n[o],a[14]=o,a}function Qe(c){let n;return{c(){n=e("p"),n.innerHTML="Requires admin Authorization:TOKEN header",i(n,"class","txt-hint txt-sm txt-right")},m(o,a){u(o,n,a)},d(o){o&&m(n)}}}function ze(c){let n,o=c[12]+"",a,p=c[14]= "2022-01-01 00:00:00" && someField1 != someField2', + }); + + // you can also fetch all records at once via getFullList + const records = await pb.collection('${(Ae=c[0])==null?void 0:Ae.name}').getFullList({ + sort: '-created', + }); + + // or fetch only the first record that matches the specified filter + const record = await pb.collection('${(Te=c[0])==null?void 0:Te.name}').getFirstListItem('someField="test"', { + expand: 'relField1,relField2.subRelField', + }); + `,dart:` + import 'package:pocketbase/pocketbase.dart'; + + final pb = PocketBase('${c[3]}'); + + ... + + // fetch a paginated records list + final resultList = await pb.collection('${(Pe=c[0])==null?void 0:Pe.name}').getList( + page: 1, + perPage: 50, + filter: 'created >= "2022-01-01 00:00:00" && someField1 != someField2', + ); + + // you can also fetch all records at once via getFullList + final records = await pb.collection('${(Re=c[0])==null?void 0:Re.name}').getFullList( + sort: '-created', + ); + + // or fetch only the first record that matches the specified filter + final record = await pb.collection('${(Se=c[0])==null?void 0:Se.name}').getFirstListItem( + 'someField="test"', + expand: 'relField1,relField2.subRelField', + ); + `}});let v=c[1]&&Qe();ot=new ke({props:{content:` + // DESC by created and ASC by id + ?sort=-created,id + `}});let F=c[4],k=[];for(let l=0;l'2022-01-01') + `}}),P=new ul({}),it=new ke({props:{content:"?expand=relField1,relField2.subRelField"}});let Ce=c[5];const ve=l=>l[7].code;for(let l=0;ll[7].code;for(let l=0;lParam + Type + Description`,yt=s(),L=e("tbody"),st=e("tr"),st.innerHTML=`page + Number + The page (aka. offset) of the paginated list (default to 1).`,vt=s(),Qt=e("tr"),Qt.innerHTML=`perPage + Number + Specify the max returned records per page (default to 30).`,Ft=s(),J=e("tr"),nt=e("td"),nt.textContent="sort",Lt=s(),zt=e("td"),zt.innerHTML='String',At=s(),T=e("td"),ft=w("Specify the records order attribute(s). "),Tt=e("br"),oe=w(` + Add `),pt=e("code"),pt.textContent="-",ie=w(" / "),D=e("code"),D.textContent="+",Pt=w(` (default) in front of the attribute for DESC / ASC order. + Ex.: + `),Zt(ot.$$.fragment),Rt=s(),S=e("p"),ut=e("strong"),ut.textContent="Supported record sort fields:",ae=s(),Q=e("br"),St=s(),Kt=e("code"),Kt.textContent="@random",Ot=w(`, + `);for(let l=0;lString',ce=s(),I=e("td"),de=w(`Filter the returned records. Ex.: + `),Zt(B.$$.fragment),fe=s(),Zt(P.$$.fragment),Et=s(),K=e("tr"),bt=e("td"),bt.textContent="expand",pe=s(),ht=e("td"),ht.innerHTML='String',ue=s(),$=e("td"),Nt=w(`Auto expand record relations. Ex.: + `),Zt(it.$$.fragment),qt=w(` + Supports up to 6-levels depth nested relations expansion. `),me=e("br"),Mt=w(` + The expanded relations will be appended to each individual record under the + `),Wt=e("code"),Wt.textContent="expand",V=w(" property (eg. "),_t=e("code"),_t.textContent='"expand": {"relField1": {...}, ...}',be=w(`). + `),Ht=e("br"),he=w(` + Only the relations to which the request user has permissions to `),xt=e("strong"),xt.textContent="view",_e=w(" will be expanded."),W=s(),wt=e("tr"),wt.innerHTML=`fields + String + Comma separated string of the fields to return in the JSON response + (by default returns all fields).`,Xt=s(),X=e("div"),X.textContent="Responses",Yt=s(),q=e("div"),gt=e("div");for(let l=0;l= "2022-01-01 00:00:00" && someField1 != someField2', + }); + + // you can also fetch all records at once via getFullList + const records = await pb.collection('${(Ee=l[0])==null?void 0:Ee.name}').getFullList({ + sort: '-created', + }); + + // or fetch only the first record that matches the specified filter + const record = await pb.collection('${(Ne=l[0])==null?void 0:Ne.name}').getFirstListItem('someField="test"', { + expand: 'relField1,relField2.subRelField', + }); + `),r&9&&(C.dart=` + import 'package:pocketbase/pocketbase.dart'; + + final pb = PocketBase('${l[3]}'); + + ... + + // fetch a paginated records list + final resultList = await pb.collection('${(qe=l[0])==null?void 0:qe.name}').getList( + page: 1, + perPage: 50, + filter: 'created >= "2022-01-01 00:00:00" && someField1 != someField2', + ); + + // you can also fetch all records at once via getFullList + final records = await pb.collection('${(Me=l[0])==null?void 0:Me.name}').getFullList( + sort: '-created', + ); + + // or fetch only the first record that matches the specified filter + final record = await pb.collection('${(He=l[0])==null?void 0:He.name}').getFirstListItem( + 'someField="test"', + expand: 'relField1,relField2.subRelField', + ); + `),O.$set(C),(!G||r&1)&&$t!==($t=l[0].name+"")&&ge(et,$t),l[1]?v||(v=Qe(),v.c(),v.m(R,null)):v&&(v.d(1),v=null),r&16){F=l[4];let M;for(M=0;Mo(2,h=_.code);return c.$$set=_=>{"collection"in _&&o(0,d=_.collection)},c.$$.update=()=>{c.$$.dirty&1&&o(4,a=$e.getAllCollectionIdentifiers(d)),c.$$.dirty&1&&o(1,p=(d==null?void 0:d.listRule)===null),c.$$.dirty&3&&d!=null&&d.id&&(g.push({code:200,body:JSON.stringify({page:1,perPage:30,totalPages:1,totalItems:2,items:[$e.dummyCollectionRecord(d),$e.dummyCollectionRecord(d)]},null,2)}),g.push({code:400,body:` + { + "code": 400, + "message": "Something went wrong while processing your request. Invalid filter.", + "data": {} + } + `}),p&&g.push({code:403,body:` + { + "code": 403, + "message": "Only admins can access this action.", + "data": {} + } + `}))},o(3,b=$e.getApiExampleUrl(al.baseUrl)),[d,p,h,b,a,g,x]}class xl extends We{constructor(n){super(),Xe(this,n,bl,ml,Ye,{collection:0})}}export{xl as default}; diff --git a/ui/dist/assets/ListExternalAuthsDocs-576d3337.js b/ui/dist/assets/ListExternalAuthsDocs-576d3337.js new file mode 100644 index 00000000..570bafd8 --- /dev/null +++ b/ui/dist/assets/ListExternalAuthsDocs-576d3337.js @@ -0,0 +1,95 @@ +import{S as ze,i as Qe,s as Re,e as n,w as v,b as f,c as de,f as m,g as r,h as o,m as pe,x as F,N as Le,P as Ue,k as je,Q as Fe,n as Ne,t as N,a as G,o as c,d as ue,T as Ge,C as Ke,p as Je,r as K,u as Ve,M as Xe}from"./index-055843b5.js";import{S as Ye}from"./SdkTabs-1c685373.js";import{F as Ze}from"./FieldsQueryParam-815b0ee8.js";function De(a,l,s){const i=a.slice();return i[5]=l[s],i}function He(a,l,s){const i=a.slice();return i[5]=l[s],i}function Oe(a,l){let s,i=l[5].code+"",b,_,d,u;function h(){return l[4](l[5])}return{key:a,first:null,c(){s=n("button"),b=v(i),_=f(),m(s,"class","tab-item"),K(s,"active",l[1]===l[5].code),this.first=s},m(y,P){r(y,s,P),o(s,b),o(s,_),d||(u=Ve(s,"click",h),d=!0)},p(y,P){l=y,P&4&&i!==(i=l[5].code+"")&&F(b,i),P&6&&K(s,"active",l[1]===l[5].code)},d(y){y&&c(s),d=!1,u()}}}function We(a,l){let s,i,b,_;return i=new Xe({props:{content:l[5].body}}),{key:a,first:null,c(){s=n("div"),de(i.$$.fragment),b=f(),m(s,"class","tab-item"),K(s,"active",l[1]===l[5].code),this.first=s},m(d,u){r(d,s,u),pe(i,s,null),o(s,b),_=!0},p(d,u){l=d;const h={};u&4&&(h.content=l[5].body),i.$set(h),(!_||u&6)&&K(s,"active",l[1]===l[5].code)},i(d){_||(N(i.$$.fragment,d),_=!0)},o(d){G(i.$$.fragment,d),_=!1},d(d){d&&c(s),ue(i)}}}function xe(a){var Ce,ge,Se,Ee;let l,s,i=a[0].name+"",b,_,d,u,h,y,P,W=a[0].name+"",J,fe,me,V,X,T,Y,I,Z,$,z,be,Q,A,he,x,R=a[0].name+"",ee,_e,te,ke,ve,U,le,B,se,q,oe,M,ae,C,ie,we,ne,E,re,L,ce,g,D,w=[],$e=new Map,ye,H,k=[],Pe=new Map,S;T=new Ye({props:{js:` + import PocketBase from 'pocketbase'; + + const pb = new PocketBase('${a[3]}'); + + ... + + await pb.collection('${(Ce=a[0])==null?void 0:Ce.name}').authWithPassword('test@example.com', '123456'); + + const result = await pb.collection('${(ge=a[0])==null?void 0:ge.name}').listExternalAuths( + pb.authStore.model.id + ); + `,dart:` + import 'package:pocketbase/pocketbase.dart'; + + final pb = PocketBase('${a[3]}'); + + ... + + await pb.collection('${(Se=a[0])==null?void 0:Se.name}').authWithPassword('test@example.com', '123456'); + + final result = await pb.collection('${(Ee=a[0])==null?void 0:Ee.name}').listExternalAuths( + pb.authStore.model.id, + ); + `}}),E=new Ze({});let j=a[2];const Te=e=>e[5].code;for(let e=0;ee[5].code;for(let e=0;eAuthorization:TOKEN header",le=f(),B=n("div"),B.textContent="Path Parameters",se=f(),q=n("table"),q.innerHTML=`Param + Type + Description + id + String + ID of the auth record.`,oe=f(),M=n("div"),M.textContent="Query parameters",ae=f(),C=n("table"),ie=n("thead"),ie.innerHTML=`Param + Type + Description`,we=f(),ne=n("tbody"),de(E.$$.fragment),re=f(),L=n("div"),L.textContent="Responses",ce=f(),g=n("div"),D=n("div");for(let e=0;es(1,_=h.code);return a.$$set=h=>{"collection"in h&&s(0,b=h.collection)},a.$$.update=()=>{a.$$.dirty&1&&s(2,d=[{code:200,body:` + [ + { + "id": "8171022dc95a4e8", + "created": "2022-09-01 10:24:18.434", + "updated": "2022-09-01 10:24:18.889", + "recordId": "e22581b6f1d44ea", + "collectionId": "${b.id}", + "provider": "google", + "providerId": "2da15468800514p", + }, + { + "id": "171022dc895a4e8", + "created": "2022-09-01 10:24:18.434", + "updated": "2022-09-01 10:24:18.889", + "recordId": "e22581b6f1d44ea", + "collectionId": "${b.id}", + "provider": "twitter", + "providerId": "720688005140514", + } + ] + `},{code:401,body:` + { + "code": 401, + "message": "The request requires valid record authorization token to be set.", + "data": {} + } + `},{code:403,body:` + { + "code": 403, + "message": "The authorized record model is not allowed to perform this action.", + "data": {} + } + `},{code:404,body:` + { + "code": 404, + "message": "The requested resource wasn't found.", + "data": {} + } + `}])},s(3,i=Ke.getApiExampleUrl(Je.baseUrl)),[b,_,d,i,u]}class ot extends ze{constructor(l){super(),Qe(this,l,et,xe,Re,{collection:0})}}export{ot as default}; diff --git a/ui/dist/assets/ListExternalAuthsDocs-c81f336e.js b/ui/dist/assets/ListExternalAuthsDocs-c81f336e.js deleted file mode 100644 index 98eacb29..00000000 --- a/ui/dist/assets/ListExternalAuthsDocs-c81f336e.js +++ /dev/null @@ -1,93 +0,0 @@ -import{S as Be,i as qe,s as Me,e as i,w as v,b as _,c as Se,f as b,g as d,h as s,m as Ee,x as U,N as Pe,P as Le,k as Oe,Q as We,n as ze,t as te,a as le,o as u,d as Ie,T as De,C as He,p as Re,r as j,u as Ue,M as je}from"./index-69e255fe.js";import{S as Ne}from"./SdkTabs-5df68e34.js";function ye(a,l,o){const n=a.slice();return n[5]=l[o],n}function Ae(a,l,o){const n=a.slice();return n[5]=l[o],n}function Te(a,l){let o,n=l[5].code+"",f,h,c,p;function m(){return l[4](l[5])}return{key:a,first:null,c(){o=i("button"),f=v(n),h=_(),b(o,"class","tab-item"),j(o,"active",l[1]===l[5].code),this.first=o},m(g,P){d(g,o,P),s(o,f),s(o,h),c||(p=Ue(o,"click",m),c=!0)},p(g,P){l=g,P&4&&n!==(n=l[5].code+"")&&U(f,n),P&6&&j(o,"active",l[1]===l[5].code)},d(g){g&&u(o),c=!1,p()}}}function Ce(a,l){let o,n,f,h;return n=new je({props:{content:l[5].body}}),{key:a,first:null,c(){o=i("div"),Se(n.$$.fragment),f=_(),b(o,"class","tab-item"),j(o,"active",l[1]===l[5].code),this.first=o},m(c,p){d(c,o,p),Ee(n,o,null),s(o,f),h=!0},p(c,p){l=c;const m={};p&4&&(m.content=l[5].body),n.$set(m),(!h||p&6)&&j(o,"active",l[1]===l[5].code)},i(c){h||(te(n.$$.fragment,c),h=!0)},o(c){le(n.$$.fragment,c),h=!1},d(c){c&&u(o),Ie(n)}}}function Ge(a){var be,he,_e,ke;let l,o,n=a[0].name+"",f,h,c,p,m,g,P,O=a[0].name+"",N,oe,se,G,K,y,Q,S,F,$,W,ae,z,A,ne,J,D=a[0].name+"",V,ie,X,ce,re,H,Y,E,Z,I,x,B,ee,T,q,w=[],de=new Map,ue,M,k=[],pe=new Map,C;y=new Ne({props:{js:` - import PocketBase from 'pocketbase'; - - const pb = new PocketBase('${a[3]}'); - - ... - - await pb.collection('${(be=a[0])==null?void 0:be.name}').authWithPassword('test@example.com', '123456'); - - const result = await pb.collection('${(he=a[0])==null?void 0:he.name}').listExternalAuths( - pb.authStore.model.id - ); - `,dart:` - import 'package:pocketbase/pocketbase.dart'; - - final pb = PocketBase('${a[3]}'); - - ... - - await pb.collection('${(_e=a[0])==null?void 0:_e.name}').authWithPassword('test@example.com', '123456'); - - final result = await pb.collection('${(ke=a[0])==null?void 0:ke.name}').listExternalAuths( - pb.authStore.model.id, - ); - `}});let R=a[2];const fe=e=>e[5].code;for(let e=0;ee[5].code;for(let e=0;eAuthorization:TOKEN header",Y=_(),E=i("div"),E.textContent="Path Parameters",Z=_(),I=i("table"),I.innerHTML=`Param - Type - Description - id - String - ID of the auth record.`,x=_(),B=i("div"),B.textContent="Responses",ee=_(),T=i("div"),q=i("div");for(let e=0;eo(1,h=m.code);return a.$$set=m=>{"collection"in m&&o(0,f=m.collection)},a.$$.update=()=>{a.$$.dirty&1&&o(2,c=[{code:200,body:` - [ - { - "id": "8171022dc95a4e8", - "created": "2022-09-01 10:24:18.434", - "updated": "2022-09-01 10:24:18.889", - "recordId": "e22581b6f1d44ea", - "collectionId": "${f.id}", - "provider": "google", - "providerId": "2da15468800514p", - }, - { - "id": "171022dc895a4e8", - "created": "2022-09-01 10:24:18.434", - "updated": "2022-09-01 10:24:18.889", - "recordId": "e22581b6f1d44ea", - "collectionId": "${f.id}", - "provider": "twitter", - "providerId": "720688005140514", - } - ] - `},{code:401,body:` - { - "code": 401, - "message": "The request requires valid record authorization token to be set.", - "data": {} - } - `},{code:403,body:` - { - "code": 403, - "message": "The authorized record model is not allowed to perform this action.", - "data": {} - } - `},{code:404,body:` - { - "code": 404, - "message": "The requested resource wasn't found.", - "data": {} - } - `}])},o(3,n=He.getApiExampleUrl(Re.baseUrl)),[f,h,c,n,p]}class Je extends Be{constructor(l){super(),qe(this,l,Ke,Ge,Me,{collection:0})}}export{Je as default}; diff --git a/ui/dist/assets/PageAdminConfirmPasswordReset-af82cd77.js b/ui/dist/assets/PageAdminConfirmPasswordReset-0496da25.js similarity index 98% rename from ui/dist/assets/PageAdminConfirmPasswordReset-af82cd77.js rename to ui/dist/assets/PageAdminConfirmPasswordReset-0496da25.js index c4d80867..4192cf28 100644 --- a/ui/dist/assets/PageAdminConfirmPasswordReset-af82cd77.js +++ b/ui/dist/assets/PageAdminConfirmPasswordReset-0496da25.js @@ -1,2 +1,2 @@ -import{S as E,i as G,s as I,F as K,c as A,m as B,t as N,a as T,d as h,C as M,q as J,e as c,w as q,b as C,f as u,r as L,g as b,h as _,u as j,v as O,j as Q,l as U,o as w,A as V,p as W,B as X,D as Y,x as Z,z as S}from"./index-69e255fe.js";function y(f){let e,o,s;return{c(){e=q("for "),o=c("strong"),s=q(f[3]),u(o,"class","txt-nowrap")},m(l,t){b(l,e,t),b(l,o,t),_(o,s)},p(l,t){t&8&&Z(s,l[3])},d(l){l&&w(e),l&&w(o)}}}function x(f){let e,o,s,l,t,r,p,d;return{c(){e=c("label"),o=q("New password"),l=C(),t=c("input"),u(e,"for",s=f[8]),u(t,"type","password"),u(t,"id",r=f[8]),t.required=!0,t.autofocus=!0},m(n,i){b(n,e,i),_(e,o),b(n,l,i),b(n,t,i),S(t,f[0]),t.focus(),p||(d=j(t,"input",f[6]),p=!0)},p(n,i){i&256&&s!==(s=n[8])&&u(e,"for",s),i&256&&r!==(r=n[8])&&u(t,"id",r),i&1&&t.value!==n[0]&&S(t,n[0])},d(n){n&&w(e),n&&w(l),n&&w(t),p=!1,d()}}}function ee(f){let e,o,s,l,t,r,p,d;return{c(){e=c("label"),o=q("New password confirm"),l=C(),t=c("input"),u(e,"for",s=f[8]),u(t,"type","password"),u(t,"id",r=f[8]),t.required=!0},m(n,i){b(n,e,i),_(e,o),b(n,l,i),b(n,t,i),S(t,f[1]),p||(d=j(t,"input",f[7]),p=!0)},p(n,i){i&256&&s!==(s=n[8])&&u(e,"for",s),i&256&&r!==(r=n[8])&&u(t,"id",r),i&2&&t.value!==n[1]&&S(t,n[1])},d(n){n&&w(e),n&&w(l),n&&w(t),p=!1,d()}}}function te(f){let e,o,s,l,t,r,p,d,n,i,g,F,P,v,k,R,z,m=f[3]&&y(f);return r=new J({props:{class:"form-field required",name:"password",$$slots:{default:[x,({uniqueId:a})=>({8:a}),({uniqueId:a})=>a?256:0]},$$scope:{ctx:f}}}),d=new J({props:{class:"form-field required",name:"passwordConfirm",$$slots:{default:[ee,({uniqueId:a})=>({8:a}),({uniqueId:a})=>a?256:0]},$$scope:{ctx:f}}}),{c(){e=c("form"),o=c("div"),s=c("h4"),l=q(`Reset your admin password +import{S as E,i as G,s as I,F as K,c as A,m as B,t as N,a as T,d as h,C as M,q as J,e as c,w as q,b as C,f as u,r as L,g as b,h as _,u as j,v as O,j as Q,l as U,o as w,A as V,p as W,B as X,D as Y,x as Z,z as S}from"./index-055843b5.js";function y(f){let e,o,s;return{c(){e=q("for "),o=c("strong"),s=q(f[3]),u(o,"class","txt-nowrap")},m(l,t){b(l,e,t),b(l,o,t),_(o,s)},p(l,t){t&8&&Z(s,l[3])},d(l){l&&w(e),l&&w(o)}}}function x(f){let e,o,s,l,t,r,p,d;return{c(){e=c("label"),o=q("New password"),l=C(),t=c("input"),u(e,"for",s=f[8]),u(t,"type","password"),u(t,"id",r=f[8]),t.required=!0,t.autofocus=!0},m(n,i){b(n,e,i),_(e,o),b(n,l,i),b(n,t,i),S(t,f[0]),t.focus(),p||(d=j(t,"input",f[6]),p=!0)},p(n,i){i&256&&s!==(s=n[8])&&u(e,"for",s),i&256&&r!==(r=n[8])&&u(t,"id",r),i&1&&t.value!==n[0]&&S(t,n[0])},d(n){n&&w(e),n&&w(l),n&&w(t),p=!1,d()}}}function ee(f){let e,o,s,l,t,r,p,d;return{c(){e=c("label"),o=q("New password confirm"),l=C(),t=c("input"),u(e,"for",s=f[8]),u(t,"type","password"),u(t,"id",r=f[8]),t.required=!0},m(n,i){b(n,e,i),_(e,o),b(n,l,i),b(n,t,i),S(t,f[1]),p||(d=j(t,"input",f[7]),p=!0)},p(n,i){i&256&&s!==(s=n[8])&&u(e,"for",s),i&256&&r!==(r=n[8])&&u(t,"id",r),i&2&&t.value!==n[1]&&S(t,n[1])},d(n){n&&w(e),n&&w(l),n&&w(t),p=!1,d()}}}function te(f){let e,o,s,l,t,r,p,d,n,i,g,F,P,v,k,R,z,m=f[3]&&y(f);return r=new J({props:{class:"form-field required",name:"password",$$slots:{default:[x,({uniqueId:a})=>({8:a}),({uniqueId:a})=>a?256:0]},$$scope:{ctx:f}}}),d=new J({props:{class:"form-field required",name:"passwordConfirm",$$slots:{default:[ee,({uniqueId:a})=>({8:a}),({uniqueId:a})=>a?256:0]},$$scope:{ctx:f}}}),{c(){e=c("form"),o=c("div"),s=c("h4"),l=q(`Reset your admin password `),m&&m.c(),t=C(),A(r.$$.fragment),p=C(),A(d.$$.fragment),n=C(),i=c("button"),g=c("span"),g.textContent="Set new password",F=C(),P=c("div"),v=c("a"),v.textContent="Back to login",u(s,"class","m-b-xs"),u(o,"class","content txt-center m-b-sm"),u(g,"class","txt"),u(i,"type","submit"),u(i,"class","btn btn-lg btn-block"),i.disabled=f[2],L(i,"btn-loading",f[2]),u(e,"class","m-b-base"),u(v,"href","/login"),u(v,"class","link-hint"),u(P,"class","content txt-center")},m(a,$){b(a,e,$),_(e,o),_(o,s),_(s,l),m&&m.m(s,null),_(e,t),B(r,e,null),_(e,p),B(d,e,null),_(e,n),_(e,i),_(i,g),b(a,F,$),b(a,P,$),_(P,v),k=!0,R||(z=[j(e,"submit",O(f[4])),Q(U.call(null,v))],R=!0)},p(a,$){a[3]?m?m.p(a,$):(m=y(a),m.c(),m.m(s,null)):m&&(m.d(1),m=null);const D={};$&769&&(D.$$scope={dirty:$,ctx:a}),r.$set(D);const H={};$&770&&(H.$$scope={dirty:$,ctx:a}),d.$set(H),(!k||$&4)&&(i.disabled=a[2]),(!k||$&4)&&L(i,"btn-loading",a[2])},i(a){k||(N(r.$$.fragment,a),N(d.$$.fragment,a),k=!0)},o(a){T(r.$$.fragment,a),T(d.$$.fragment,a),k=!1},d(a){a&&w(e),m&&m.d(),h(r),h(d),a&&w(F),a&&w(P),R=!1,V(z)}}}function se(f){let e,o;return e=new K({props:{$$slots:{default:[te]},$$scope:{ctx:f}}}),{c(){A(e.$$.fragment)},m(s,l){B(e,s,l),o=!0},p(s,[l]){const t={};l&527&&(t.$$scope={dirty:l,ctx:s}),e.$set(t)},i(s){o||(N(e.$$.fragment,s),o=!0)},o(s){T(e.$$.fragment,s),o=!1},d(s){h(e,s)}}}function le(f,e,o){let s,{params:l}=e,t="",r="",p=!1;async function d(){if(!p){o(2,p=!0);try{await W.admins.confirmPasswordReset(l==null?void 0:l.token,t,r),X("Successfully set a new admin password."),Y("/")}catch(g){W.error(g)}o(2,p=!1)}}function n(){t=this.value,o(0,t)}function i(){r=this.value,o(1,r)}return f.$$set=g=>{"params"in g&&o(5,l=g.params)},f.$$.update=()=>{f.$$.dirty&32&&o(3,s=M.getJWTPayload(l==null?void 0:l.token).email||"")},[t,r,p,s,d,l,n,i]}class ae extends E{constructor(e){super(),G(this,e,le,se,I,{params:5})}}export{ae as default}; diff --git a/ui/dist/assets/PageAdminRequestPasswordReset-d01d0920.js b/ui/dist/assets/PageAdminRequestPasswordReset-b4edd74d.js similarity index 98% rename from ui/dist/assets/PageAdminRequestPasswordReset-d01d0920.js rename to ui/dist/assets/PageAdminRequestPasswordReset-b4edd74d.js index b0575545..3b3ce996 100644 --- a/ui/dist/assets/PageAdminRequestPasswordReset-d01d0920.js +++ b/ui/dist/assets/PageAdminRequestPasswordReset-b4edd74d.js @@ -1,2 +1,2 @@ -import{S as M,i as T,s as j,F as z,c as R,m as S,t as w,a as y,d as E,b as g,e as _,f as p,g as k,h as d,j as A,l as B,k as N,n as D,o as v,p as C,q as G,r as F,u as H,v as I,w as h,x as J,y as P,z as L}from"./index-69e255fe.js";function K(c){let e,s,n,l,t,i,f,m,o,a,b,u;return l=new G({props:{class:"form-field required",name:"email",$$slots:{default:[Q,({uniqueId:r})=>({5:r}),({uniqueId:r})=>r?32:0]},$$scope:{ctx:c}}}),{c(){e=_("form"),s=_("div"),s.innerHTML=`

Forgotten admin password

+import{S as M,i as T,s as j,F as z,c as R,m as S,t as w,a as y,d as E,b as g,e as _,f as p,g as k,h as d,j as A,l as B,k as N,n as D,o as v,p as C,q as G,r as F,u as H,v as I,w as h,x as J,y as P,z as L}from"./index-055843b5.js";function K(c){let e,s,n,l,t,i,f,m,o,a,b,u;return l=new G({props:{class:"form-field required",name:"email",$$slots:{default:[Q,({uniqueId:r})=>({5:r}),({uniqueId:r})=>r?32:0]},$$scope:{ctx:c}}}),{c(){e=_("form"),s=_("div"),s.innerHTML=`

Forgotten admin password

Enter the email associated with your account and we’ll send you a recovery link:

`,n=g(),R(l.$$.fragment),t=g(),i=_("button"),f=_("i"),m=g(),o=_("span"),o.textContent="Send recovery link",p(s,"class","content txt-center m-b-sm"),p(f,"class","ri-mail-send-line"),p(o,"class","txt"),p(i,"type","submit"),p(i,"class","btn btn-lg btn-block"),i.disabled=c[1],F(i,"btn-loading",c[1]),p(e,"class","m-b-base")},m(r,$){k(r,e,$),d(e,s),d(e,n),S(l,e,null),d(e,t),d(e,i),d(i,f),d(i,m),d(i,o),a=!0,b||(u=H(e,"submit",I(c[3])),b=!0)},p(r,$){const q={};$&97&&(q.$$scope={dirty:$,ctx:r}),l.$set(q),(!a||$&2)&&(i.disabled=r[1]),(!a||$&2)&&F(i,"btn-loading",r[1])},i(r){a||(w(l.$$.fragment,r),a=!0)},o(r){y(l.$$.fragment,r),a=!1},d(r){r&&v(e),E(l),b=!1,u()}}}function O(c){let e,s,n,l,t,i,f,m,o;return{c(){e=_("div"),s=_("div"),s.innerHTML='',n=g(),l=_("div"),t=_("p"),i=h("Check "),f=_("strong"),m=h(c[0]),o=h(" for the recovery link."),p(s,"class","icon"),p(f,"class","txt-nowrap"),p(l,"class","content"),p(e,"class","alert alert-success")},m(a,b){k(a,e,b),d(e,s),d(e,n),d(e,l),d(l,t),d(t,i),d(t,f),d(f,m),d(t,o)},p(a,b){b&1&&J(m,a[0])},i:P,o:P,d(a){a&&v(e)}}}function Q(c){let e,s,n,l,t,i,f,m;return{c(){e=_("label"),s=h("Email"),l=g(),t=_("input"),p(e,"for",n=c[5]),p(t,"type","email"),p(t,"id",i=c[5]),t.required=!0,t.autofocus=!0},m(o,a){k(o,e,a),d(e,s),k(o,l,a),k(o,t,a),L(t,c[0]),t.focus(),f||(m=H(t,"input",c[4]),f=!0)},p(o,a){a&32&&n!==(n=o[5])&&p(e,"for",n),a&32&&i!==(i=o[5])&&p(t,"id",i),a&1&&t.value!==o[0]&&L(t,o[0])},d(o){o&&v(e),o&&v(l),o&&v(t),f=!1,m()}}}function U(c){let e,s,n,l,t,i,f,m;const o=[O,K],a=[];function b(u,r){return u[2]?0:1}return e=b(c),s=a[e]=o[e](c),{c(){s.c(),n=g(),l=_("div"),t=_("a"),t.textContent="Back to login",p(t,"href","/login"),p(t,"class","link-hint"),p(l,"class","content txt-center")},m(u,r){a[e].m(u,r),k(u,n,r),k(u,l,r),d(l,t),i=!0,f||(m=A(B.call(null,t)),f=!0)},p(u,r){let $=e;e=b(u),e===$?a[e].p(u,r):(N(),y(a[$],1,1,()=>{a[$]=null}),D(),s=a[e],s?s.p(u,r):(s=a[e]=o[e](u),s.c()),w(s,1),s.m(n.parentNode,n))},i(u){i||(w(s),i=!0)},o(u){y(s),i=!1},d(u){a[e].d(u),u&&v(n),u&&v(l),f=!1,m()}}}function V(c){let e,s;return e=new z({props:{$$slots:{default:[U]},$$scope:{ctx:c}}}),{c(){R(e.$$.fragment)},m(n,l){S(e,n,l),s=!0},p(n,[l]){const t={};l&71&&(t.$$scope={dirty:l,ctx:n}),e.$set(t)},i(n){s||(w(e.$$.fragment,n),s=!0)},o(n){y(e.$$.fragment,n),s=!1},d(n){E(e,n)}}}function W(c,e,s){let n="",l=!1,t=!1;async function i(){if(!l){s(1,l=!0);try{await C.admins.requestPasswordReset(n),s(2,t=!0)}catch(m){C.error(m)}s(1,l=!1)}}function f(){n=this.value,s(0,n)}return[n,l,t,i,f]}class Y extends M{constructor(e){super(),T(this,e,W,V,j,{})}}export{Y as default}; diff --git a/ui/dist/assets/PageOAuth2Redirect-ea5d5f39.js b/ui/dist/assets/PageOAuth2Redirect-62ebe949.js similarity index 87% rename from ui/dist/assets/PageOAuth2Redirect-ea5d5f39.js rename to ui/dist/assets/PageOAuth2Redirect-62ebe949.js index 3c569bad..901ed063 100644 --- a/ui/dist/assets/PageOAuth2Redirect-ea5d5f39.js +++ b/ui/dist/assets/PageOAuth2Redirect-62ebe949.js @@ -1,2 +1,2 @@ -import{S as o,i,s as c,e as r,f as l,g as u,y as s,o as d,H as h}from"./index-69e255fe.js";function f(n){let t;return{c(){t=r("div"),t.innerHTML=`

Auth completed.

+import{S as o,i,s as c,e as r,f as l,g as u,y as s,o as d,H as h}from"./index-055843b5.js";function f(n){let t;return{c(){t=r("div"),t.innerHTML=`

Auth completed.

You can go back to the app if this window is not automatically closed.
`,l(t,"class","content txt-hint txt-center p-base")},m(e,a){u(e,t,a)},p:s,i:s,o:s,d(e){e&&d(t)}}}function m(n){return h(()=>{window.close()}),[]}class x extends o{constructor(t){super(),i(this,t,m,f,c,{})}}export{x as default}; diff --git a/ui/dist/assets/PageRecordConfirmEmailChange-0c791012.js b/ui/dist/assets/PageRecordConfirmEmailChange-5fa0e2cd.js similarity index 98% rename from ui/dist/assets/PageRecordConfirmEmailChange-0c791012.js rename to ui/dist/assets/PageRecordConfirmEmailChange-5fa0e2cd.js index f5ef36c9..5ef62fee 100644 --- a/ui/dist/assets/PageRecordConfirmEmailChange-0c791012.js +++ b/ui/dist/assets/PageRecordConfirmEmailChange-5fa0e2cd.js @@ -1,4 +1,4 @@ -import{S as G,i as I,s as J,F as M,c as H,m as L,t as v,a as y,d as z,C as N,E as O,g as _,k as R,n as W,o as b,O as Y,G as j,p as A,q as B,e as m,w as C,b as h,f as d,r as T,h as k,u as P,v as D,y as E,x as K,z as F}from"./index-69e255fe.js";function Q(r){let e,t,l,s,n,o,c,i,a,u,g,$,p=r[3]&&S(r);return o=new B({props:{class:"form-field required",name:"password",$$slots:{default:[V,({uniqueId:f})=>({8:f}),({uniqueId:f})=>f?256:0]},$$scope:{ctx:r}}}),{c(){e=m("form"),t=m("div"),l=m("h5"),s=C(`Type your password to confirm changing your email address +import{S as G,i as I,s as J,F as M,c as H,m as L,t as v,a as y,d as z,C as N,E as O,g as _,k as R,n as W,o as b,O as Y,G as j,p as A,q as B,e as m,w as C,b as h,f as d,r as T,h as k,u as P,v as D,y as E,x as K,z as F}from"./index-055843b5.js";function Q(r){let e,t,l,s,n,o,c,i,a,u,g,$,p=r[3]&&S(r);return o=new B({props:{class:"form-field required",name:"password",$$slots:{default:[V,({uniqueId:f})=>({8:f}),({uniqueId:f})=>f?256:0]},$$scope:{ctx:r}}}),{c(){e=m("form"),t=m("div"),l=m("h5"),s=C(`Type your password to confirm changing your email address `),p&&p.c(),n=h(),H(o.$$.fragment),c=h(),i=m("button"),a=m("span"),a.textContent="Confirm new email",d(t,"class","content txt-center m-b-base"),d(a,"class","txt"),d(i,"type","submit"),d(i,"class","btn btn-lg btn-block"),i.disabled=r[1],T(i,"btn-loading",r[1])},m(f,w){_(f,e,w),k(e,t),k(t,l),k(l,s),p&&p.m(l,null),k(e,n),L(o,e,null),k(e,c),k(e,i),k(i,a),u=!0,g||($=P(e,"submit",D(r[4])),g=!0)},p(f,w){f[3]?p?p.p(f,w):(p=S(f),p.c(),p.m(l,null)):p&&(p.d(1),p=null);const q={};w&769&&(q.$$scope={dirty:w,ctx:f}),o.$set(q),(!u||w&2)&&(i.disabled=f[1]),(!u||w&2)&&T(i,"btn-loading",f[1])},i(f){u||(v(o.$$.fragment,f),u=!0)},o(f){y(o.$$.fragment,f),u=!1},d(f){f&&b(e),p&&p.d(),z(o),g=!1,$()}}}function U(r){let e,t,l,s,n;return{c(){e=m("div"),e.innerHTML=`

Successfully changed the user email address.

You can now sign in with your new email address.

`,t=h(),l=m("button"),l.textContent="Close",d(e,"class","alert alert-success"),d(l,"type","button"),d(l,"class","btn btn-transparent btn-block")},m(o,c){_(o,e,c),_(o,t,c),_(o,l,c),s||(n=P(l,"click",r[6]),s=!0)},p:E,i:E,o:E,d(o){o&&b(e),o&&b(t),o&&b(l),s=!1,n()}}}function S(r){let e,t,l;return{c(){e=C("to "),t=m("strong"),l=C(r[3]),d(t,"class","txt-nowrap")},m(s,n){_(s,e,n),_(s,t,n),k(t,l)},p(s,n){n&8&&K(l,s[3])},d(s){s&&b(e),s&&b(t)}}}function V(r){let e,t,l,s,n,o,c,i;return{c(){e=m("label"),t=C("Password"),s=h(),n=m("input"),d(e,"for",l=r[8]),d(n,"type","password"),d(n,"id",o=r[8]),n.required=!0,n.autofocus=!0},m(a,u){_(a,e,u),k(e,t),_(a,s,u),_(a,n,u),F(n,r[0]),n.focus(),c||(i=P(n,"input",r[7]),c=!0)},p(a,u){u&256&&l!==(l=a[8])&&d(e,"for",l),u&256&&o!==(o=a[8])&&d(n,"id",o),u&1&&n.value!==a[0]&&F(n,a[0])},d(a){a&&b(e),a&&b(s),a&&b(n),c=!1,i()}}}function X(r){let e,t,l,s;const n=[U,Q],o=[];function c(i,a){return i[2]?0:1}return e=c(r),t=o[e]=n[e](r),{c(){t.c(),l=O()},m(i,a){o[e].m(i,a),_(i,l,a),s=!0},p(i,a){let u=e;e=c(i),e===u?o[e].p(i,a):(R(),y(o[u],1,1,()=>{o[u]=null}),W(),t=o[e],t?t.p(i,a):(t=o[e]=n[e](i),t.c()),v(t,1),t.m(l.parentNode,l))},i(i){s||(v(t),s=!0)},o(i){y(t),s=!1},d(i){o[e].d(i),i&&b(l)}}}function Z(r){let e,t;return e=new M({props:{nobranding:!0,$$slots:{default:[X]},$$scope:{ctx:r}}}),{c(){H(e.$$.fragment)},m(l,s){L(e,l,s),t=!0},p(l,[s]){const n={};s&527&&(n.$$scope={dirty:s,ctx:l}),e.$set(n)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){y(e.$$.fragment,l),t=!1},d(l){z(e,l)}}}function x(r,e,t){let l,{params:s}=e,n="",o=!1,c=!1;async function i(){if(o)return;t(1,o=!0);const g=new Y("../");try{const $=j(s==null?void 0:s.token);await g.collection($.collectionId).confirmEmailChange(s==null?void 0:s.token,n),t(2,c=!0)}catch($){A.error($)}t(1,o=!1)}const a=()=>window.close();function u(){n=this.value,t(0,n)}return r.$$set=g=>{"params"in g&&t(5,s=g.params)},r.$$.update=()=>{r.$$.dirty&32&&t(3,l=N.getJWTPayload(s==null?void 0:s.token).newEmail||"")},[n,o,c,l,i,s,a,u]}class te extends G{constructor(e){super(),I(this,e,x,Z,J,{params:5})}}export{te as default}; diff --git a/ui/dist/assets/PageRecordConfirmPasswordReset-6c2514b3.js b/ui/dist/assets/PageRecordConfirmPasswordReset-37905e2b.js similarity index 98% rename from ui/dist/assets/PageRecordConfirmPasswordReset-6c2514b3.js rename to ui/dist/assets/PageRecordConfirmPasswordReset-37905e2b.js index 12abc08d..5a4f5f10 100644 --- a/ui/dist/assets/PageRecordConfirmPasswordReset-6c2514b3.js +++ b/ui/dist/assets/PageRecordConfirmPasswordReset-37905e2b.js @@ -1,4 +1,4 @@ -import{S as J,i as M,s as O,F as W,c as N,m as T,t as y,a as q,d as H,C as Y,E as j,g as _,k as A,n as B,o as m,O as D,G as K,p as Q,q as E,e as b,w as h,b as P,f as p,r as G,h as w,u as S,v as U,y as F,x as V,z as R}from"./index-69e255fe.js";function X(r){let e,l,s,n,t,o,c,u,i,a,v,k,g,C,d=r[4]&&I(r);return o=new E({props:{class:"form-field required",name:"password",$$slots:{default:[x,({uniqueId:f})=>({10:f}),({uniqueId:f})=>f?1024:0]},$$scope:{ctx:r}}}),u=new E({props:{class:"form-field required",name:"passwordConfirm",$$slots:{default:[ee,({uniqueId:f})=>({10:f}),({uniqueId:f})=>f?1024:0]},$$scope:{ctx:r}}}),{c(){e=b("form"),l=b("div"),s=b("h5"),n=h(`Reset your user password +import{S as J,i as M,s as O,F as W,c as N,m as T,t as y,a as q,d as H,C as Y,E as j,g as _,k as A,n as B,o as m,O as D,G as K,p as Q,q as E,e as b,w as h,b as P,f as p,r as G,h as w,u as S,v as U,y as F,x as V,z as R}from"./index-055843b5.js";function X(r){let e,l,s,n,t,o,c,u,i,a,v,k,g,C,d=r[4]&&I(r);return o=new E({props:{class:"form-field required",name:"password",$$slots:{default:[x,({uniqueId:f})=>({10:f}),({uniqueId:f})=>f?1024:0]},$$scope:{ctx:r}}}),u=new E({props:{class:"form-field required",name:"passwordConfirm",$$slots:{default:[ee,({uniqueId:f})=>({10:f}),({uniqueId:f})=>f?1024:0]},$$scope:{ctx:r}}}),{c(){e=b("form"),l=b("div"),s=b("h5"),n=h(`Reset your user password `),d&&d.c(),t=P(),N(o.$$.fragment),c=P(),N(u.$$.fragment),i=P(),a=b("button"),v=b("span"),v.textContent="Set new password",p(l,"class","content txt-center m-b-base"),p(v,"class","txt"),p(a,"type","submit"),p(a,"class","btn btn-lg btn-block"),a.disabled=r[2],G(a,"btn-loading",r[2])},m(f,$){_(f,e,$),w(e,l),w(l,s),w(s,n),d&&d.m(s,null),w(e,t),T(o,e,null),w(e,c),T(u,e,null),w(e,i),w(e,a),w(a,v),k=!0,g||(C=S(e,"submit",U(r[5])),g=!0)},p(f,$){f[4]?d?d.p(f,$):(d=I(f),d.c(),d.m(s,null)):d&&(d.d(1),d=null);const L={};$&3073&&(L.$$scope={dirty:$,ctx:f}),o.$set(L);const z={};$&3074&&(z.$$scope={dirty:$,ctx:f}),u.$set(z),(!k||$&4)&&(a.disabled=f[2]),(!k||$&4)&&G(a,"btn-loading",f[2])},i(f){k||(y(o.$$.fragment,f),y(u.$$.fragment,f),k=!0)},o(f){q(o.$$.fragment,f),q(u.$$.fragment,f),k=!1},d(f){f&&m(e),d&&d.d(),H(o),H(u),g=!1,C()}}}function Z(r){let e,l,s,n,t;return{c(){e=b("div"),e.innerHTML=`

Successfully changed the user password.

You can now sign in with your new password.

`,l=P(),s=b("button"),s.textContent="Close",p(e,"class","alert alert-success"),p(s,"type","button"),p(s,"class","btn btn-transparent btn-block")},m(o,c){_(o,e,c),_(o,l,c),_(o,s,c),n||(t=S(s,"click",r[7]),n=!0)},p:F,i:F,o:F,d(o){o&&m(e),o&&m(l),o&&m(s),n=!1,t()}}}function I(r){let e,l,s;return{c(){e=h("for "),l=b("strong"),s=h(r[4])},m(n,t){_(n,e,t),_(n,l,t),w(l,s)},p(n,t){t&16&&V(s,n[4])},d(n){n&&m(e),n&&m(l)}}}function x(r){let e,l,s,n,t,o,c,u;return{c(){e=b("label"),l=h("New password"),n=P(),t=b("input"),p(e,"for",s=r[10]),p(t,"type","password"),p(t,"id",o=r[10]),t.required=!0,t.autofocus=!0},m(i,a){_(i,e,a),w(e,l),_(i,n,a),_(i,t,a),R(t,r[0]),t.focus(),c||(u=S(t,"input",r[8]),c=!0)},p(i,a){a&1024&&s!==(s=i[10])&&p(e,"for",s),a&1024&&o!==(o=i[10])&&p(t,"id",o),a&1&&t.value!==i[0]&&R(t,i[0])},d(i){i&&m(e),i&&m(n),i&&m(t),c=!1,u()}}}function ee(r){let e,l,s,n,t,o,c,u;return{c(){e=b("label"),l=h("New password confirm"),n=P(),t=b("input"),p(e,"for",s=r[10]),p(t,"type","password"),p(t,"id",o=r[10]),t.required=!0},m(i,a){_(i,e,a),w(e,l),_(i,n,a),_(i,t,a),R(t,r[1]),c||(u=S(t,"input",r[9]),c=!0)},p(i,a){a&1024&&s!==(s=i[10])&&p(e,"for",s),a&1024&&o!==(o=i[10])&&p(t,"id",o),a&2&&t.value!==i[1]&&R(t,i[1])},d(i){i&&m(e),i&&m(n),i&&m(t),c=!1,u()}}}function te(r){let e,l,s,n;const t=[Z,X],o=[];function c(u,i){return u[3]?0:1}return e=c(r),l=o[e]=t[e](r),{c(){l.c(),s=j()},m(u,i){o[e].m(u,i),_(u,s,i),n=!0},p(u,i){let a=e;e=c(u),e===a?o[e].p(u,i):(A(),q(o[a],1,1,()=>{o[a]=null}),B(),l=o[e],l?l.p(u,i):(l=o[e]=t[e](u),l.c()),y(l,1),l.m(s.parentNode,s))},i(u){n||(y(l),n=!0)},o(u){q(l),n=!1},d(u){o[e].d(u),u&&m(s)}}}function se(r){let e,l;return e=new W({props:{nobranding:!0,$$slots:{default:[te]},$$scope:{ctx:r}}}),{c(){N(e.$$.fragment)},m(s,n){T(e,s,n),l=!0},p(s,[n]){const t={};n&2079&&(t.$$scope={dirty:n,ctx:s}),e.$set(t)},i(s){l||(y(e.$$.fragment,s),l=!0)},o(s){q(e.$$.fragment,s),l=!1},d(s){H(e,s)}}}function le(r,e,l){let s,{params:n}=e,t="",o="",c=!1,u=!1;async function i(){if(c)return;l(2,c=!0);const g=new D("../");try{const C=K(n==null?void 0:n.token);await g.collection(C.collectionId).confirmPasswordReset(n==null?void 0:n.token,t,o),l(3,u=!0)}catch(C){Q.error(C)}l(2,c=!1)}const a=()=>window.close();function v(){t=this.value,l(0,t)}function k(){o=this.value,l(1,o)}return r.$$set=g=>{"params"in g&&l(6,n=g.params)},r.$$.update=()=>{r.$$.dirty&64&&l(4,s=Y.getJWTPayload(n==null?void 0:n.token).email||"")},[t,o,c,u,s,i,n,a,v,k]}class oe extends J{constructor(e){super(),M(this,e,le,se,O,{params:6})}}export{oe as default}; diff --git a/ui/dist/assets/PageRecordConfirmVerification-263c8bd5.js b/ui/dist/assets/PageRecordConfirmVerification-9b0d0fd9.js similarity index 97% rename from ui/dist/assets/PageRecordConfirmVerification-263c8bd5.js rename to ui/dist/assets/PageRecordConfirmVerification-9b0d0fd9.js index 08910b52..eb30788b 100644 --- a/ui/dist/assets/PageRecordConfirmVerification-263c8bd5.js +++ b/ui/dist/assets/PageRecordConfirmVerification-9b0d0fd9.js @@ -1,3 +1,3 @@ -import{S as v,i as y,s as w,F as g,c as x,m as C,t as $,a as L,d as P,O as T,G as H,E as M,g as r,o as a,e as u,b as _,f,u as b,y as p}from"./index-69e255fe.js";function S(o){let t,s,e,n,l;return{c(){t=u("div"),t.innerHTML=`
+import{S as v,i as y,s as w,F as g,c as x,m as C,t as $,a as L,d as P,O as T,G as H,E as M,g as r,o as a,e as u,b as _,f,u as b,y as p}from"./index-055843b5.js";function S(o){let t,s,e,n,l;return{c(){t=u("div"),t.innerHTML=`

Invalid or expired verification token.

`,s=_(),e=u("button"),e.textContent="Close",f(t,"class","alert alert-danger"),f(e,"type","button"),f(e,"class","btn btn-transparent btn-block")},m(i,c){r(i,t,c),r(i,s,c),r(i,e,c),n||(l=b(e,"click",o[4]),n=!0)},p,d(i){i&&a(t),i&&a(s),i&&a(e),n=!1,l()}}}function F(o){let t,s,e,n,l;return{c(){t=u("div"),t.innerHTML=`

Successfully verified email address.

`,s=_(),e=u("button"),e.textContent="Close",f(t,"class","alert alert-success"),f(e,"type","button"),f(e,"class","btn btn-transparent btn-block")},m(i,c){r(i,t,c),r(i,s,c),r(i,e,c),n||(l=b(e,"click",o[3]),n=!0)},p,d(i){i&&a(t),i&&a(s),i&&a(e),n=!1,l()}}}function I(o){let t;return{c(){t=u("div"),t.innerHTML='
Please wait...
',f(t,"class","txt-center")},m(s,e){r(s,t,e)},p,d(s){s&&a(t)}}}function V(o){let t;function s(l,i){return l[1]?I:l[0]?F:S}let e=s(o),n=e(o);return{c(){n.c(),t=M()},m(l,i){n.m(l,i),r(l,t,i)},p(l,i){e===(e=s(l))&&n?n.p(l,i):(n.d(1),n=e(l),n&&(n.c(),n.m(t.parentNode,t)))},d(l){n.d(l),l&&a(t)}}}function q(o){let t,s;return t=new g({props:{nobranding:!0,$$slots:{default:[V]},$$scope:{ctx:o}}}),{c(){x(t.$$.fragment)},m(e,n){C(t,e,n),s=!0},p(e,[n]){const l={};n&67&&(l.$$scope={dirty:n,ctx:e}),t.$set(l)},i(e){s||($(t.$$.fragment,e),s=!0)},o(e){L(t.$$.fragment,e),s=!1},d(e){P(t,e)}}}function E(o,t,s){let{params:e}=t,n=!1,l=!1;i();async function i(){s(1,l=!0);const d=new T("../");try{const m=H(e==null?void 0:e.token);await d.collection(m.collectionId).confirmVerification(e==null?void 0:e.token),s(0,n=!0)}catch{s(0,n=!1)}s(1,l=!1)}const c=()=>window.close(),k=()=>window.close();return o.$$set=d=>{"params"in d&&s(2,e=d.params)},[n,l,e,c,k]}class N extends v{constructor(t){super(),y(this,t,E,q,w,{params:2})}}export{N as default}; diff --git a/ui/dist/assets/RealtimeApiDocs-23a629ab.js b/ui/dist/assets/RealtimeApiDocs-3da2900a.js similarity index 98% rename from ui/dist/assets/RealtimeApiDocs-23a629ab.js rename to ui/dist/assets/RealtimeApiDocs-3da2900a.js index 905d5d38..b9cd6e43 100644 --- a/ui/dist/assets/RealtimeApiDocs-23a629ab.js +++ b/ui/dist/assets/RealtimeApiDocs-3da2900a.js @@ -1,4 +1,4 @@ -import{S as re,i as ae,s as be,M as ue,C as P,e as u,w as y,b as a,c as te,f as p,g as t,h as I,m as ne,x as pe,t as ie,a as le,o as n,d as ce,T as me,p as de}from"./index-69e255fe.js";import{S as fe}from"./SdkTabs-5df68e34.js";function $e(o){var B,U,W,T,A,H,L,M,q,j,J,N;let i,m,l=o[0].name+"",b,d,h,f,_,$,k,c,S,v,w,R,C,g,E,r,D;return c=new fe({props:{js:` +import{S as re,i as ae,s as be,M as ue,C as P,e as u,w as y,b as a,c as te,f as p,g as t,h as I,m as ne,x as pe,t as ie,a as le,o as n,d as ce,T as me,p as de}from"./index-055843b5.js";import{S as fe}from"./SdkTabs-1c685373.js";function $e(o){var B,U,W,T,A,H,L,M,q,j,J,N;let i,m,l=o[0].name+"",b,d,h,f,_,$,k,c,S,v,w,R,C,g,E,r,D;return c=new fe({props:{js:` import PocketBase from 'pocketbase'; const pb = new PocketBase('${o[1]}'); diff --git a/ui/dist/assets/RequestEmailChangeDocs-c1a86908.js b/ui/dist/assets/RequestEmailChangeDocs-18fca019.js similarity index 98% rename from ui/dist/assets/RequestEmailChangeDocs-c1a86908.js rename to ui/dist/assets/RequestEmailChangeDocs-18fca019.js index 692a6498..0a2e8b29 100644 --- a/ui/dist/assets/RequestEmailChangeDocs-c1a86908.js +++ b/ui/dist/assets/RequestEmailChangeDocs-18fca019.js @@ -1,4 +1,4 @@ -import{S as Te,i as Ee,s as Be,e as r,w,b as k,c as Pe,f,g as m,h as n,m as Ce,x as N,N as ve,P as Se,k as Me,Q as Re,n as Ae,t as x,a as ee,o as d,d as ye,T as We,C as ze,p as He,r as O,u as Ue,M as je}from"./index-69e255fe.js";import{S as De}from"./SdkTabs-5df68e34.js";function we(o,l,s){const a=o.slice();return a[5]=l[s],a}function ge(o,l,s){const a=o.slice();return a[5]=l[s],a}function $e(o,l){let s,a=l[5].code+"",_,b,i,p;function u(){return l[4](l[5])}return{key:o,first:null,c(){s=r("button"),_=w(a),b=k(),f(s,"class","tab-item"),O(s,"active",l[1]===l[5].code),this.first=s},m($,q){m($,s,q),n(s,_),n(s,b),i||(p=Ue(s,"click",u),i=!0)},p($,q){l=$,q&4&&a!==(a=l[5].code+"")&&N(_,a),q&6&&O(s,"active",l[1]===l[5].code)},d($){$&&d(s),i=!1,p()}}}function qe(o,l){let s,a,_,b;return a=new je({props:{content:l[5].body}}),{key:o,first:null,c(){s=r("div"),Pe(a.$$.fragment),_=k(),f(s,"class","tab-item"),O(s,"active",l[1]===l[5].code),this.first=s},m(i,p){m(i,s,p),Ce(a,s,null),n(s,_),b=!0},p(i,p){l=i;const u={};p&4&&(u.content=l[5].body),a.$set(u),(!b||p&6)&&O(s,"active",l[1]===l[5].code)},i(i){b||(x(a.$$.fragment,i),b=!0)},o(i){ee(a.$$.fragment,i),b=!1},d(i){i&&d(s),ye(a)}}}function Le(o){var de,pe,ue,fe;let l,s,a=o[0].name+"",_,b,i,p,u,$,q,z=o[0].name+"",F,te,I,P,K,T,Q,g,H,le,U,E,se,G,j=o[0].name+"",J,ae,oe,D,V,B,X,S,Y,M,Z,C,R,v=[],ne=new Map,ie,A,h=[],ce=new Map,y;P=new De({props:{js:` +import{S as Te,i as Ee,s as Be,e as r,w,b as k,c as Pe,f,g as m,h as n,m as Ce,x as N,N as ve,P as Se,k as Me,Q as Re,n as Ae,t as x,a as ee,o as d,d as ye,T as We,C as ze,p as He,r as O,u as Ue,M as je}from"./index-055843b5.js";import{S as De}from"./SdkTabs-1c685373.js";function we(o,l,s){const a=o.slice();return a[5]=l[s],a}function ge(o,l,s){const a=o.slice();return a[5]=l[s],a}function $e(o,l){let s,a=l[5].code+"",_,b,i,p;function u(){return l[4](l[5])}return{key:o,first:null,c(){s=r("button"),_=w(a),b=k(),f(s,"class","tab-item"),O(s,"active",l[1]===l[5].code),this.first=s},m($,q){m($,s,q),n(s,_),n(s,b),i||(p=Ue(s,"click",u),i=!0)},p($,q){l=$,q&4&&a!==(a=l[5].code+"")&&N(_,a),q&6&&O(s,"active",l[1]===l[5].code)},d($){$&&d(s),i=!1,p()}}}function qe(o,l){let s,a,_,b;return a=new je({props:{content:l[5].body}}),{key:o,first:null,c(){s=r("div"),Pe(a.$$.fragment),_=k(),f(s,"class","tab-item"),O(s,"active",l[1]===l[5].code),this.first=s},m(i,p){m(i,s,p),Ce(a,s,null),n(s,_),b=!0},p(i,p){l=i;const u={};p&4&&(u.content=l[5].body),a.$set(u),(!b||p&6)&&O(s,"active",l[1]===l[5].code)},i(i){b||(x(a.$$.fragment,i),b=!0)},o(i){ee(a.$$.fragment,i),b=!1},d(i){i&&d(s),ye(a)}}}function Le(o){var de,pe,ue,fe;let l,s,a=o[0].name+"",_,b,i,p,u,$,q,z=o[0].name+"",F,te,I,P,K,T,Q,g,H,le,U,E,se,G,j=o[0].name+"",J,ae,oe,D,V,B,X,S,Y,M,Z,C,R,v=[],ne=new Map,ie,A,h=[],ce=new Map,y;P=new De({props:{js:` import PocketBase from 'pocketbase'; const pb = new PocketBase('${o[3]}'); diff --git a/ui/dist/assets/RequestPasswordResetDocs-ab2b98e9.js b/ui/dist/assets/RequestPasswordResetDocs-b80ea171.js similarity index 97% rename from ui/dist/assets/RequestPasswordResetDocs-ab2b98e9.js rename to ui/dist/assets/RequestPasswordResetDocs-b80ea171.js index 78f73e90..aedb04b3 100644 --- a/ui/dist/assets/RequestPasswordResetDocs-ab2b98e9.js +++ b/ui/dist/assets/RequestPasswordResetDocs-b80ea171.js @@ -1,4 +1,4 @@ -import{S as Pe,i as $e,s as qe,e as r,w as h,b as v,c as ve,f as b,g as d,h as n,m as we,x as L,N as ue,P as ge,k as ye,Q as Re,n as Be,t as Z,a as x,o as f,d as he,T as Ce,C as Se,p as Te,r as N,u as Me,M as Ae}from"./index-69e255fe.js";import{S as Ue}from"./SdkTabs-5df68e34.js";function me(a,s,l){const o=a.slice();return o[5]=s[l],o}function be(a,s,l){const o=a.slice();return o[5]=s[l],o}function _e(a,s){let l,o=s[5].code+"",_,m,i,p;function u(){return s[4](s[5])}return{key:a,first:null,c(){l=r("button"),_=h(o),m=v(),b(l,"class","tab-item"),N(l,"active",s[1]===s[5].code),this.first=l},m(P,$){d(P,l,$),n(l,_),n(l,m),i||(p=Me(l,"click",u),i=!0)},p(P,$){s=P,$&4&&o!==(o=s[5].code+"")&&L(_,o),$&6&&N(l,"active",s[1]===s[5].code)},d(P){P&&f(l),i=!1,p()}}}function ke(a,s){let l,o,_,m;return o=new Ae({props:{content:s[5].body}}),{key:a,first:null,c(){l=r("div"),ve(o.$$.fragment),_=v(),b(l,"class","tab-item"),N(l,"active",s[1]===s[5].code),this.first=l},m(i,p){d(i,l,p),we(o,l,null),n(l,_),m=!0},p(i,p){s=i;const u={};p&4&&(u.content=s[5].body),o.$set(u),(!m||p&6)&&N(l,"active",s[1]===s[5].code)},i(i){m||(Z(o.$$.fragment,i),m=!0)},o(i){x(o.$$.fragment,i),m=!1},d(i){i&&f(l),he(o)}}}function je(a){var re,de;let s,l,o=a[0].name+"",_,m,i,p,u,P,$,D=a[0].name+"",O,ee,Q,q,z,B,G,g,H,te,E,C,se,J,F=a[0].name+"",K,le,V,S,W,T,X,M,Y,y,A,w=[],oe=new Map,ae,U,k=[],ne=new Map,R;q=new Ue({props:{js:` +import{S as Pe,i as $e,s as qe,e as r,w as h,b as v,c as ve,f as b,g as d,h as n,m as we,x as L,N as ue,P as ge,k as ye,Q as Re,n as Be,t as Z,a as x,o as f,d as he,T as Ce,C as Se,p as Te,r as N,u as Me,M as Ae}from"./index-055843b5.js";import{S as Ue}from"./SdkTabs-1c685373.js";function me(a,s,l){const o=a.slice();return o[5]=s[l],o}function be(a,s,l){const o=a.slice();return o[5]=s[l],o}function _e(a,s){let l,o=s[5].code+"",_,m,i,p;function u(){return s[4](s[5])}return{key:a,first:null,c(){l=r("button"),_=h(o),m=v(),b(l,"class","tab-item"),N(l,"active",s[1]===s[5].code),this.first=l},m(P,$){d(P,l,$),n(l,_),n(l,m),i||(p=Me(l,"click",u),i=!0)},p(P,$){s=P,$&4&&o!==(o=s[5].code+"")&&L(_,o),$&6&&N(l,"active",s[1]===s[5].code)},d(P){P&&f(l),i=!1,p()}}}function ke(a,s){let l,o,_,m;return o=new Ae({props:{content:s[5].body}}),{key:a,first:null,c(){l=r("div"),ve(o.$$.fragment),_=v(),b(l,"class","tab-item"),N(l,"active",s[1]===s[5].code),this.first=l},m(i,p){d(i,l,p),we(o,l,null),n(l,_),m=!0},p(i,p){s=i;const u={};p&4&&(u.content=s[5].body),o.$set(u),(!m||p&6)&&N(l,"active",s[1]===s[5].code)},i(i){m||(Z(o.$$.fragment,i),m=!0)},o(i){x(o.$$.fragment,i),m=!1},d(i){i&&f(l),he(o)}}}function je(a){var re,de;let s,l,o=a[0].name+"",_,m,i,p,u,P,$,D=a[0].name+"",O,ee,Q,q,z,B,G,g,H,te,E,C,se,J,F=a[0].name+"",K,le,V,S,W,T,X,M,Y,y,A,w=[],oe=new Map,ae,U,k=[],ne=new Map,R;q=new Ue({props:{js:` import PocketBase from 'pocketbase'; const pb = new PocketBase('${a[3]}'); diff --git a/ui/dist/assets/RequestVerificationDocs-620e4d62.js b/ui/dist/assets/RequestVerificationDocs-6631debd.js similarity index 97% rename from ui/dist/assets/RequestVerificationDocs-620e4d62.js rename to ui/dist/assets/RequestVerificationDocs-6631debd.js index 81482241..10128e36 100644 --- a/ui/dist/assets/RequestVerificationDocs-620e4d62.js +++ b/ui/dist/assets/RequestVerificationDocs-6631debd.js @@ -1,4 +1,4 @@ -import{S as qe,i as we,s as Pe,e as r,w as $,b as v,c as ve,f as b,g as f,h as i,m as he,x as I,N as me,P as ge,k as ye,Q as Be,n as Ce,t as Z,a as x,o as u,d as $e,T as Se,C as Te,p as Me,r as L,u as Ve,M as Re}from"./index-69e255fe.js";import{S as Ae}from"./SdkTabs-5df68e34.js";function pe(a,l,s){const o=a.slice();return o[5]=l[s],o}function be(a,l,s){const o=a.slice();return o[5]=l[s],o}function _e(a,l){let s,o=l[5].code+"",_,p,n,d;function m(){return l[4](l[5])}return{key:a,first:null,c(){s=r("button"),_=$(o),p=v(),b(s,"class","tab-item"),L(s,"active",l[1]===l[5].code),this.first=s},m(q,w){f(q,s,w),i(s,_),i(s,p),n||(d=Ve(s,"click",m),n=!0)},p(q,w){l=q,w&4&&o!==(o=l[5].code+"")&&I(_,o),w&6&&L(s,"active",l[1]===l[5].code)},d(q){q&&u(s),n=!1,d()}}}function ke(a,l){let s,o,_,p;return o=new Re({props:{content:l[5].body}}),{key:a,first:null,c(){s=r("div"),ve(o.$$.fragment),_=v(),b(s,"class","tab-item"),L(s,"active",l[1]===l[5].code),this.first=s},m(n,d){f(n,s,d),he(o,s,null),i(s,_),p=!0},p(n,d){l=n;const m={};d&4&&(m.content=l[5].body),o.$set(m),(!p||d&6)&&L(s,"active",l[1]===l[5].code)},i(n){p||(Z(o.$$.fragment,n),p=!0)},o(n){x(o.$$.fragment,n),p=!1},d(n){n&&u(s),$e(o)}}}function Ue(a){var re,fe;let l,s,o=a[0].name+"",_,p,n,d,m,q,w,j=a[0].name+"",N,ee,O,P,Q,C,z,g,D,te,H,S,le,G,E=a[0].name+"",J,se,K,T,W,M,X,V,Y,y,R,h=[],oe=new Map,ae,A,k=[],ie=new Map,B;P=new Ae({props:{js:` +import{S as qe,i as we,s as Pe,e as r,w as $,b as v,c as ve,f as b,g as f,h as i,m as he,x as I,N as me,P as ge,k as ye,Q as Be,n as Ce,t as Z,a as x,o as u,d as $e,T as Se,C as Te,p as Me,r as L,u as Ve,M as Re}from"./index-055843b5.js";import{S as Ae}from"./SdkTabs-1c685373.js";function pe(a,l,s){const o=a.slice();return o[5]=l[s],o}function be(a,l,s){const o=a.slice();return o[5]=l[s],o}function _e(a,l){let s,o=l[5].code+"",_,p,n,d;function m(){return l[4](l[5])}return{key:a,first:null,c(){s=r("button"),_=$(o),p=v(),b(s,"class","tab-item"),L(s,"active",l[1]===l[5].code),this.first=s},m(q,w){f(q,s,w),i(s,_),i(s,p),n||(d=Ve(s,"click",m),n=!0)},p(q,w){l=q,w&4&&o!==(o=l[5].code+"")&&I(_,o),w&6&&L(s,"active",l[1]===l[5].code)},d(q){q&&u(s),n=!1,d()}}}function ke(a,l){let s,o,_,p;return o=new Re({props:{content:l[5].body}}),{key:a,first:null,c(){s=r("div"),ve(o.$$.fragment),_=v(),b(s,"class","tab-item"),L(s,"active",l[1]===l[5].code),this.first=s},m(n,d){f(n,s,d),he(o,s,null),i(s,_),p=!0},p(n,d){l=n;const m={};d&4&&(m.content=l[5].body),o.$set(m),(!p||d&6)&&L(s,"active",l[1]===l[5].code)},i(n){p||(Z(o.$$.fragment,n),p=!0)},o(n){x(o.$$.fragment,n),p=!1},d(n){n&&u(s),$e(o)}}}function Ue(a){var re,fe;let l,s,o=a[0].name+"",_,p,n,d,m,q,w,j=a[0].name+"",N,ee,O,P,Q,C,z,g,D,te,H,S,le,G,E=a[0].name+"",J,se,K,T,W,M,X,V,Y,y,R,h=[],oe=new Map,ae,A,k=[],ie=new Map,B;P=new Ae({props:{js:` import PocketBase from 'pocketbase'; const pb = new PocketBase('${a[3]}'); diff --git a/ui/dist/assets/SdkTabs-5df68e34.js b/ui/dist/assets/SdkTabs-1c685373.js similarity index 96% rename from ui/dist/assets/SdkTabs-5df68e34.js rename to ui/dist/assets/SdkTabs-1c685373.js index e46162d4..e2cefaa3 100644 --- a/ui/dist/assets/SdkTabs-5df68e34.js +++ b/ui/dist/assets/SdkTabs-1c685373.js @@ -1 +1 @@ -import{S as q,i as B,s as F,e as v,b as j,f as h,g as y,h as m,N as C,P as J,k as Q,Q as Y,n as z,t as N,a as P,o as w,w as E,r as S,u as A,x as R,M as G,c as H,m as L,d as O}from"./index-69e255fe.js";function D(o,e,l){const s=o.slice();return s[6]=e[l],s}function K(o,e,l){const s=o.slice();return s[6]=e[l],s}function M(o,e){let l,s,g=e[6].title+"",r,i,n,k;function c(){return e[5](e[6])}return{key:o,first:null,c(){l=v("button"),s=v("div"),r=E(g),i=j(),h(s,"class","txt"),h(l,"class","tab-item svelte-1maocj6"),S(l,"active",e[1]===e[6].language),this.first=l},m(_,f){y(_,l,f),m(l,s),m(s,r),m(l,i),n||(k=A(l,"click",c),n=!0)},p(_,f){e=_,f&4&&g!==(g=e[6].title+"")&&R(r,g),f&6&&S(l,"active",e[1]===e[6].language)},d(_){_&&w(l),n=!1,k()}}}function T(o,e){let l,s,g,r,i,n,k=e[6].title+"",c,_,f,p,d;return s=new G({props:{language:e[6].language,content:e[6].content}}),{key:o,first:null,c(){l=v("div"),H(s.$$.fragment),g=j(),r=v("div"),i=v("em"),n=v("a"),c=E(k),_=E(" SDK"),p=j(),h(n,"href",f=e[6].url),h(n,"target","_blank"),h(n,"rel","noopener noreferrer"),h(i,"class","txt-sm txt-hint"),h(r,"class","txt-right"),h(l,"class","tab-item svelte-1maocj6"),S(l,"active",e[1]===e[6].language),this.first=l},m(b,t){y(b,l,t),L(s,l,null),m(l,g),m(l,r),m(r,i),m(i,n),m(n,c),m(n,_),m(l,p),d=!0},p(b,t){e=b;const a={};t&4&&(a.language=e[6].language),t&4&&(a.content=e[6].content),s.$set(a),(!d||t&4)&&k!==(k=e[6].title+"")&&R(c,k),(!d||t&4&&f!==(f=e[6].url))&&h(n,"href",f),(!d||t&6)&&S(l,"active",e[1]===e[6].language)},i(b){d||(N(s.$$.fragment,b),d=!0)},o(b){P(s.$$.fragment,b),d=!1},d(b){b&&w(l),O(s)}}}function U(o){let e,l,s=[],g=new Map,r,i,n=[],k=new Map,c,_,f=o[2];const p=t=>t[6].language;for(let t=0;tt[6].language;for(let t=0;tl(1,n=c.language);return o.$$set=c=>{"class"in c&&l(0,g=c.class),"js"in c&&l(3,r=c.js),"dart"in c&&l(4,i=c.dart)},o.$$.update=()=>{o.$$.dirty&2&&n&&localStorage.setItem(I,n),o.$$.dirty&24&&l(2,s=[{title:"JavaScript",language:"javascript",content:r,url:"https://github.com/pocketbase/js-sdk"},{title:"Dart",language:"dart",content:i,url:"https://github.com/pocketbase/dart-sdk"}])},[g,n,s,r,i,k]}class X extends q{constructor(e){super(),B(this,e,V,U,F,{class:0,js:3,dart:4})}}export{X as S}; +import{S as q,i as B,s as F,e as v,b as j,f as h,g as y,h as m,N as C,P as J,k as Q,Q as Y,n as z,t as N,a as P,o as w,w as E,r as S,u as A,x as R,M as G,c as H,m as L,d as O}from"./index-055843b5.js";function D(o,e,l){const s=o.slice();return s[6]=e[l],s}function K(o,e,l){const s=o.slice();return s[6]=e[l],s}function M(o,e){let l,s,g=e[6].title+"",r,i,n,k;function c(){return e[5](e[6])}return{key:o,first:null,c(){l=v("button"),s=v("div"),r=E(g),i=j(),h(s,"class","txt"),h(l,"class","tab-item svelte-1maocj6"),S(l,"active",e[1]===e[6].language),this.first=l},m(_,f){y(_,l,f),m(l,s),m(s,r),m(l,i),n||(k=A(l,"click",c),n=!0)},p(_,f){e=_,f&4&&g!==(g=e[6].title+"")&&R(r,g),f&6&&S(l,"active",e[1]===e[6].language)},d(_){_&&w(l),n=!1,k()}}}function T(o,e){let l,s,g,r,i,n,k=e[6].title+"",c,_,f,p,d;return s=new G({props:{language:e[6].language,content:e[6].content}}),{key:o,first:null,c(){l=v("div"),H(s.$$.fragment),g=j(),r=v("div"),i=v("em"),n=v("a"),c=E(k),_=E(" SDK"),p=j(),h(n,"href",f=e[6].url),h(n,"target","_blank"),h(n,"rel","noopener noreferrer"),h(i,"class","txt-sm txt-hint"),h(r,"class","txt-right"),h(l,"class","tab-item svelte-1maocj6"),S(l,"active",e[1]===e[6].language),this.first=l},m(b,t){y(b,l,t),L(s,l,null),m(l,g),m(l,r),m(r,i),m(i,n),m(n,c),m(n,_),m(l,p),d=!0},p(b,t){e=b;const a={};t&4&&(a.language=e[6].language),t&4&&(a.content=e[6].content),s.$set(a),(!d||t&4)&&k!==(k=e[6].title+"")&&R(c,k),(!d||t&4&&f!==(f=e[6].url))&&h(n,"href",f),(!d||t&6)&&S(l,"active",e[1]===e[6].language)},i(b){d||(N(s.$$.fragment,b),d=!0)},o(b){P(s.$$.fragment,b),d=!1},d(b){b&&w(l),O(s)}}}function U(o){let e,l,s=[],g=new Map,r,i,n=[],k=new Map,c,_,f=o[2];const p=t=>t[6].language;for(let t=0;tt[6].language;for(let t=0;tl(1,n=c.language);return o.$$set=c=>{"class"in c&&l(0,g=c.class),"js"in c&&l(3,r=c.js),"dart"in c&&l(4,i=c.dart)},o.$$.update=()=>{o.$$.dirty&2&&n&&localStorage.setItem(I,n),o.$$.dirty&24&&l(2,s=[{title:"JavaScript",language:"javascript",content:r,url:"https://github.com/pocketbase/js-sdk"},{title:"Dart",language:"dart",content:i,url:"https://github.com/pocketbase/dart-sdk"}])},[g,n,s,r,i,k]}class X extends q{constructor(e){super(),B(this,e,V,U,F,{class:0,js:3,dart:4})}}export{X as S}; diff --git a/ui/dist/assets/UnlinkExternalAuthDocs-b5c46456.js b/ui/dist/assets/UnlinkExternalAuthDocs-46e2e894.js similarity index 98% rename from ui/dist/assets/UnlinkExternalAuthDocs-b5c46456.js rename to ui/dist/assets/UnlinkExternalAuthDocs-46e2e894.js index 115e31df..1fd38ab3 100644 --- a/ui/dist/assets/UnlinkExternalAuthDocs-b5c46456.js +++ b/ui/dist/assets/UnlinkExternalAuthDocs-46e2e894.js @@ -1,4 +1,4 @@ -import{S as qe,i as Me,s as De,e as i,w as v,b as h,c as Se,f as m,g as d,h as s,m as Be,x as I,N as Te,P as Oe,k as We,Q as ze,n as He,t as le,a as oe,o as u,d as Ue,T as Le,C as je,p as Ie,r as N,u as Ne,M as Re}from"./index-69e255fe.js";import{S as Ke}from"./SdkTabs-5df68e34.js";function ye(n,l,o){const a=n.slice();return a[5]=l[o],a}function Ae(n,l,o){const a=n.slice();return a[5]=l[o],a}function Ce(n,l){let o,a=l[5].code+"",_,b,c,p;function f(){return l[4](l[5])}return{key:n,first:null,c(){o=i("button"),_=v(a),b=h(),m(o,"class","tab-item"),N(o,"active",l[1]===l[5].code),this.first=o},m($,P){d($,o,P),s(o,_),s(o,b),c||(p=Ne(o,"click",f),c=!0)},p($,P){l=$,P&4&&a!==(a=l[5].code+"")&&I(_,a),P&6&&N(o,"active",l[1]===l[5].code)},d($){$&&u(o),c=!1,p()}}}function Ee(n,l){let o,a,_,b;return a=new Re({props:{content:l[5].body}}),{key:n,first:null,c(){o=i("div"),Se(a.$$.fragment),_=h(),m(o,"class","tab-item"),N(o,"active",l[1]===l[5].code),this.first=o},m(c,p){d(c,o,p),Be(a,o,null),s(o,_),b=!0},p(c,p){l=c;const f={};p&4&&(f.content=l[5].body),a.$set(f),(!b||p&6)&&N(o,"active",l[1]===l[5].code)},i(c){b||(le(a.$$.fragment,c),b=!0)},o(c){oe(a.$$.fragment,c),b=!1},d(c){c&&u(o),Ue(a)}}}function Qe(n){var he,_e,ke,ve;let l,o,a=n[0].name+"",_,b,c,p,f,$,P,O=n[0].name+"",R,se,ae,K,Q,y,F,E,G,w,W,ne,z,T,ie,J,H=n[0].name+"",V,ce,X,re,Y,de,L,Z,S,x,B,ee,U,te,A,q,g=[],ue=new Map,pe,M,k=[],fe=new Map,C;y=new Ke({props:{js:` +import{S as qe,i as Me,s as De,e as i,w as v,b as h,c as Se,f as m,g as d,h as s,m as Be,x as I,N as Te,P as Oe,k as We,Q as ze,n as He,t as le,a as oe,o as u,d as Ue,T as Le,C as je,p as Ie,r as N,u as Ne,M as Re}from"./index-055843b5.js";import{S as Ke}from"./SdkTabs-1c685373.js";function ye(n,l,o){const a=n.slice();return a[5]=l[o],a}function Ae(n,l,o){const a=n.slice();return a[5]=l[o],a}function Ce(n,l){let o,a=l[5].code+"",_,b,c,p;function f(){return l[4](l[5])}return{key:n,first:null,c(){o=i("button"),_=v(a),b=h(),m(o,"class","tab-item"),N(o,"active",l[1]===l[5].code),this.first=o},m($,P){d($,o,P),s(o,_),s(o,b),c||(p=Ne(o,"click",f),c=!0)},p($,P){l=$,P&4&&a!==(a=l[5].code+"")&&I(_,a),P&6&&N(o,"active",l[1]===l[5].code)},d($){$&&u(o),c=!1,p()}}}function Ee(n,l){let o,a,_,b;return a=new Re({props:{content:l[5].body}}),{key:n,first:null,c(){o=i("div"),Se(a.$$.fragment),_=h(),m(o,"class","tab-item"),N(o,"active",l[1]===l[5].code),this.first=o},m(c,p){d(c,o,p),Be(a,o,null),s(o,_),b=!0},p(c,p){l=c;const f={};p&4&&(f.content=l[5].body),a.$set(f),(!b||p&6)&&N(o,"active",l[1]===l[5].code)},i(c){b||(le(a.$$.fragment,c),b=!0)},o(c){oe(a.$$.fragment,c),b=!1},d(c){c&&u(o),Ue(a)}}}function Qe(n){var he,_e,ke,ve;let l,o,a=n[0].name+"",_,b,c,p,f,$,P,O=n[0].name+"",R,se,ae,K,Q,y,F,E,G,w,W,ne,z,T,ie,J,H=n[0].name+"",V,ce,X,re,Y,de,L,Z,S,x,B,ee,U,te,A,q,g=[],ue=new Map,pe,M,k=[],fe=new Map,C;y=new Ke({props:{js:` import PocketBase from 'pocketbase'; const pb = new PocketBase('${n[3]}'); diff --git a/ui/dist/assets/UpdateApiDocs-9036caca.js b/ui/dist/assets/UpdateApiDocs-9036caca.js new file mode 100644 index 00000000..e37c79a4 --- /dev/null +++ b/ui/dist/assets/UpdateApiDocs-9036caca.js @@ -0,0 +1,118 @@ +import{S as $t,i as Ot,s as Mt,C as E,M as St,e as r,w as y,b as m,c as be,f as T,g as a,h as i,m as me,x as U,N as Ne,P as mt,k as qt,Q as Dt,n as Ht,t as de,a as re,o,d as _e,T as Pt,p as Rt,r as ye,u as Lt,y as X}from"./index-055843b5.js";import{S as Ft}from"./SdkTabs-1c685373.js";import{F as At}from"./FieldsQueryParam-815b0ee8.js";function _t(f,t,l){const s=f.slice();return s[7]=t[l],s}function yt(f,t,l){const s=f.slice();return s[7]=t[l],s}function kt(f,t,l){const s=f.slice();return s[12]=t[l],s}function ht(f){let t;return{c(){t=r("p"),t.innerHTML="Requires admin Authorization:TOKEN header",T(t,"class","txt-hint txt-sm txt-right")},m(l,s){a(l,t,s)},d(l){l&&o(t)}}}function vt(f){let t,l,s,b,u,d,p,k,C,w,$,P,F,j,O,g,A;return{c(){t=r("tr"),t.innerHTML='Auth fields',l=m(),s=r("tr"),s.innerHTML=`
Optional + username
+ String + The username of the auth record.`,b=m(),u=r("tr"),u.innerHTML=`
Optional + email
+ String + The auth record email address. +
+ This field can be updated only by admins or auth records with "Manage" access. +
+ Regular accounts can update their email by calling "Request email change".`,d=m(),p=r("tr"),p.innerHTML=`
Optional + emailVisibility
+ Boolean + Whether to show/hide the auth record email when fetching the record data.`,k=m(),C=r("tr"),C.innerHTML=`
Optional + oldPassword
+ String + Old auth record password. +
+ This field is required only when changing the record password. Admins and auth records with + "Manage" access can skip this field.`,w=m(),$=r("tr"),$.innerHTML=`
Optional + password
+ String + New auth record password.`,P=m(),F=r("tr"),F.innerHTML=`
Optional + passwordConfirm
+ String + New auth record password confirmation.`,j=m(),O=r("tr"),O.innerHTML=`
Optional + verified
+ Boolean + Indicates whether the auth record is verified or not. +
+ This field can be set only by admins or auth records with "Manage" access.`,g=m(),A=r("tr"),A.innerHTML='Schema fields'},m(c,_){a(c,t,_),a(c,l,_),a(c,s,_),a(c,b,_),a(c,u,_),a(c,d,_),a(c,p,_),a(c,k,_),a(c,C,_),a(c,w,_),a(c,$,_),a(c,P,_),a(c,F,_),a(c,j,_),a(c,O,_),a(c,g,_),a(c,A,_)},d(c){c&&o(t),c&&o(l),c&&o(s),c&&o(b),c&&o(u),c&&o(d),c&&o(p),c&&o(k),c&&o(C),c&&o(w),c&&o($),c&&o(P),c&&o(F),c&&o(j),c&&o(O),c&&o(g),c&&o(A)}}}function Bt(f){let t;return{c(){t=r("span"),t.textContent="Optional",T(t,"class","label label-warning")},m(l,s){a(l,t,s)},d(l){l&&o(t)}}}function Nt(f){let t;return{c(){t=r("span"),t.textContent="Required",T(t,"class","label label-success")},m(l,s){a(l,t,s)},d(l){l&&o(t)}}}function jt(f){var u;let t,l=((u=f[12].options)==null?void 0:u.maxSelect)>1?"ids":"id",s,b;return{c(){t=y("User "),s=y(l),b=y(".")},m(d,p){a(d,t,p),a(d,s,p),a(d,b,p)},p(d,p){var k;p&1&&l!==(l=((k=d[12].options)==null?void 0:k.maxSelect)>1?"ids":"id")&&U(s,l)},d(d){d&&o(t),d&&o(s),d&&o(b)}}}function gt(f){var u;let t,l=((u=f[12].options)==null?void 0:u.maxSelect)>1?"ids":"id",s,b;return{c(){t=y("Relation record "),s=y(l),b=y(".")},m(d,p){a(d,t,p),a(d,s,p),a(d,b,p)},p(d,p){var k;p&1&&l!==(l=((k=d[12].options)==null?void 0:k.maxSelect)>1?"ids":"id")&&U(s,l)},d(d){d&&o(t),d&&o(s),d&&o(b)}}}function Et(f){let t,l,s,b,u;return{c(){t=y("File object."),l=r("br"),s=y(` + Set to `),b=r("code"),b.textContent="null",u=y(" to delete already uploaded file(s).")},m(d,p){a(d,t,p),a(d,l,p),a(d,s,p),a(d,b,p),a(d,u,p)},p:X,d(d){d&&o(t),d&&o(l),d&&o(s),d&&o(b),d&&o(u)}}}function Ut(f){let t;return{c(){t=y("URL address.")},m(l,s){a(l,t,s)},p:X,d(l){l&&o(t)}}}function It(f){let t;return{c(){t=y("Email address.")},m(l,s){a(l,t,s)},p:X,d(l){l&&o(t)}}}function Jt(f){let t;return{c(){t=y("JSON array or object.")},m(l,s){a(l,t,s)},p:X,d(l){l&&o(t)}}}function Vt(f){let t;return{c(){t=y("Number value.")},m(l,s){a(l,t,s)},p:X,d(l){l&&o(t)}}}function xt(f){let t;return{c(){t=y("Plain text value.")},m(l,s){a(l,t,s)},p:X,d(l){l&&o(t)}}}function wt(f,t){let l,s,b,u,d,p=t[12].name+"",k,C,w,$,P=E.getFieldValueType(t[12])+"",F,j,O,g;function A(h,L){return h[12].required?Nt:Bt}let c=A(t),_=c(t);function K(h,L){if(h[12].type==="text")return xt;if(h[12].type==="number")return Vt;if(h[12].type==="json")return Jt;if(h[12].type==="email")return It;if(h[12].type==="url")return Ut;if(h[12].type==="file")return Et;if(h[12].type==="relation")return gt;if(h[12].type==="user")return jt}let R=K(t),S=R&&R(t);return{key:f,first:null,c(){l=r("tr"),s=r("td"),b=r("div"),_.c(),u=m(),d=r("span"),k=y(p),C=m(),w=r("td"),$=r("span"),F=y(P),j=m(),O=r("td"),S&&S.c(),g=m(),T(b,"class","inline-flex"),T($,"class","label"),this.first=l},m(h,L){a(h,l,L),i(l,s),i(s,b),_.m(b,null),i(b,u),i(b,d),i(d,k),i(l,C),i(l,w),i(w,$),i($,F),i(l,j),i(l,O),S&&S.m(O,null),i(l,g)},p(h,L){t=h,c!==(c=A(t))&&(_.d(1),_=c(t),_&&(_.c(),_.m(b,u))),L&1&&p!==(p=t[12].name+"")&&U(k,p),L&1&&P!==(P=E.getFieldValueType(t[12])+"")&&U(F,P),R===(R=K(t))&&S?S.p(t,L):(S&&S.d(1),S=R&&R(t),S&&(S.c(),S.m(O,null)))},d(h){h&&o(l),_.d(),S&&S.d()}}}function Tt(f,t){let l,s=t[7].code+"",b,u,d,p;function k(){return t[6](t[7])}return{key:f,first:null,c(){l=r("button"),b=y(s),u=m(),T(l,"class","tab-item"),ye(l,"active",t[1]===t[7].code),this.first=l},m(C,w){a(C,l,w),i(l,b),i(l,u),d||(p=Lt(l,"click",k),d=!0)},p(C,w){t=C,w&4&&s!==(s=t[7].code+"")&&U(b,s),w&6&&ye(l,"active",t[1]===t[7].code)},d(C){C&&o(l),d=!1,p()}}}function Ct(f,t){let l,s,b,u;return s=new St({props:{content:t[7].body}}),{key:f,first:null,c(){l=r("div"),be(s.$$.fragment),b=m(),T(l,"class","tab-item"),ye(l,"active",t[1]===t[7].code),this.first=l},m(d,p){a(d,l,p),me(s,l,null),i(l,b),u=!0},p(d,p){t=d;const k={};p&4&&(k.content=t[7].body),s.$set(k),(!u||p&6)&&ye(l,"active",t[1]===t[7].code)},i(d){u||(de(s.$$.fragment,d),u=!0)},o(d){re(s.$$.fragment,d),u=!1},d(d){d&&o(l),_e(s)}}}function Qt(f){var ot,dt,rt,ft;let t,l,s=f[0].name+"",b,u,d,p,k,C,w,$=f[0].name+"",P,F,j,O,g,A,c,_,K,R,S,h,L,je,fe,W,ge,ke,pe=f[0].name+"",he,Ee,ve,Ue,we,Z,Te,ee,Ce,te,Se,I,$e,Ie,J,Oe,B=[],Je=new Map,Me,le,qe,V,De,Ve,se,x,He,xe,Pe,Qe,M,ze,Y,Ke,We,Ye,Re,Ge,Le,Xe,Fe,Ze,et,G,Ae,ne,Be,Q,ie,N=[],tt=new Map,lt,ae,q=[],st=new Map,z;_=new Ft({props:{js:` +import PocketBase from 'pocketbase'; + +const pb = new PocketBase('${f[4]}'); + +... + +// example update data +const data = ${JSON.stringify(Object.assign({},f[3],E.dummyCollectionSchemaData(f[0])),null,4)}; + +const record = await pb.collection('${(ot=f[0])==null?void 0:ot.name}').update('RECORD_ID', data); + `,dart:` +import 'package:pocketbase/pocketbase.dart'; + +final pb = PocketBase('${f[4]}'); + +... + +// example update body +final body = ${JSON.stringify(Object.assign({},f[3],E.dummyCollectionSchemaData(f[0])),null,2)}; + +final record = await pb.collection('${(dt=f[0])==null?void 0:dt.name}').update('RECORD_ID', body: body); + `}});let D=f[5]&&ht(),H=((rt=f[0])==null?void 0:rt.isAuth)&&vt(),ce=(ft=f[0])==null?void 0:ft.schema;const nt=e=>e[12].name;for(let e=0;ee[7].code;for(let e=0;ee[7].code;for(let e=0;eapplication/json or + multipart/form-data.`,g=m(),A=r("p"),A.innerHTML=`File upload is supported only via multipart/form-data. +
+ For more info and examples you could check the detailed + Files upload and handling docs + .`,c=m(),be(_.$$.fragment),K=m(),R=r("h6"),R.textContent="API details",S=m(),h=r("div"),L=r("strong"),L.textContent="PATCH",je=m(),fe=r("div"),W=r("p"),ge=y("/api/collections/"),ke=r("strong"),he=y(pe),Ee=y("/records/"),ve=r("strong"),ve.textContent=":id",Ue=m(),D&&D.c(),we=m(),Z=r("div"),Z.textContent="Path parameters",Te=m(),ee=r("table"),ee.innerHTML=`Param + Type + Description + id + String + ID of the record to update.`,Ce=m(),te=r("div"),te.textContent="Body Parameters",Se=m(),I=r("table"),$e=r("thead"),$e.innerHTML=`Param + Type + Description`,Ie=m(),J=r("tbody"),H&&H.c(),Oe=m();for(let e=0;eParam + Type + Description`,Ve=m(),se=r("tbody"),x=r("tr"),He=r("td"),He.textContent="expand",xe=m(),Pe=r("td"),Pe.innerHTML='String',Qe=m(),M=r("td"),ze=y(`Auto expand relations when returning the updated record. Ex.: + `),be(Y.$$.fragment),Ke=y(` + Supports up to 6-levels depth nested relations expansion. `),We=r("br"),Ye=y(` + The expanded relations will be appended to the record under the + `),Re=r("code"),Re.textContent="expand",Ge=y(" property (eg. "),Le=r("code"),Le.textContent='"expand": {"relField1": {...}, ...}',Xe=y(`). Only + the relations that the user has permissions to `),Fe=r("strong"),Fe.textContent="view",Ze=y(" will be expanded."),et=m(),be(G.$$.fragment),Ae=m(),ne=r("div"),ne.textContent="Responses",Be=m(),Q=r("div"),ie=r("div");for(let e=0;e${JSON.stringify(Object.assign({},e[3],E.dummyCollectionSchemaData(e[0])),null,2)}; + +final record = await pb.collection('${(ct=e[0])==null?void 0:ct.name}').update('RECORD_ID', body: body); + `),_.$set(v),(!z||n&1)&&pe!==(pe=e[0].name+"")&&U(he,pe),e[5]?D||(D=ht(),D.c(),D.m(h,null)):D&&(D.d(1),D=null),(ut=e[0])!=null&&ut.isAuth?H||(H=vt(),H.c(),H.m(J,Oe)):H&&(H.d(1),H=null),n&1&&(ce=(bt=e[0])==null?void 0:bt.schema,B=Ne(B,n,nt,1,e,ce,Je,J,mt,wt,null,kt)),n&6&&(ue=e[2],N=Ne(N,n,it,1,e,ue,tt,ie,mt,Tt,null,yt)),n&6&&(oe=e[2],qt(),q=Ne(q,n,at,1,e,oe,st,ae,Dt,Ct,null,_t),Ht())},i(e){if(!z){de(_.$$.fragment,e),de(Y.$$.fragment,e),de(G.$$.fragment,e);for(let n=0;nl(1,d=w.code);return f.$$set=w=>{"collection"in w&&l(0,u=w.collection)},f.$$.update=()=>{var w,$;f.$$.dirty&1&&l(5,s=(u==null?void 0:u.updateRule)===null),f.$$.dirty&1&&l(2,p=[{code:200,body:JSON.stringify(E.dummyCollectionRecord(u),null,2)},{code:400,body:` + { + "code": 400, + "message": "Failed to update record.", + "data": { + "${($=(w=u==null?void 0:u.schema)==null?void 0:w[0])==null?void 0:$.name}": { + "code": "validation_required", + "message": "Missing required value." + } + } + } + `},{code:403,body:` + { + "code": 403, + "message": "You are not allowed to perform this request.", + "data": {} + } + `},{code:404,body:` + { + "code": 404, + "message": "The requested resource wasn't found.", + "data": {} + } + `}]),f.$$.dirty&1&&(u.$isAuth?l(3,k={username:"test_username_update",emailVisibility:!1,password:"87654321",passwordConfirm:"87654321",oldPassword:"12345678"}):l(3,k={}))},l(4,b=E.getApiExampleUrl(Rt.baseUrl)),[u,d,p,k,b,s,C]}class Gt extends $t{constructor(t){super(),Ot(this,t,zt,Qt,Mt,{collection:0})}}export{Gt as default}; diff --git a/ui/dist/assets/UpdateApiDocs-b6c9fd88.js b/ui/dist/assets/UpdateApiDocs-b6c9fd88.js deleted file mode 100644 index 25094c28..00000000 --- a/ui/dist/assets/UpdateApiDocs-b6c9fd88.js +++ /dev/null @@ -1,118 +0,0 @@ -import{S as Ct,i as St,s as Ot,C as U,M as Tt,e as r,w as y,b as m,c as Ae,f as T,g as a,h as i,m as Be,x as I,N as Pe,P as ut,k as Mt,Q as $t,n as qt,t as fe,a as pe,o,d as Fe,T as Dt,p as Ht,r as ce,u as Rt,y as G}from"./index-69e255fe.js";import{S as Lt}from"./SdkTabs-5df68e34.js";function bt(f,t,l){const s=f.slice();return s[7]=t[l],s}function mt(f,t,l){const s=f.slice();return s[7]=t[l],s}function _t(f,t,l){const s=f.slice();return s[12]=t[l],s}function yt(f){let t;return{c(){t=r("p"),t.innerHTML="Requires admin Authorization:TOKEN header",T(t,"class","txt-hint txt-sm txt-right")},m(l,s){a(l,t,s)},d(l){l&&o(t)}}}function kt(f){let t,l,s,b,u,d,p,k,C,w,O,R,A,j,M,E,B;return{c(){t=r("tr"),t.innerHTML='Auth fields',l=m(),s=r("tr"),s.innerHTML=`
Optional - username
- String - The username of the auth record.`,b=m(),u=r("tr"),u.innerHTML=`
Optional - email
- String - The auth record email address. -
- This field can be updated only by admins or auth records with "Manage" access. -
- Regular accounts can update their email by calling "Request email change".`,d=m(),p=r("tr"),p.innerHTML=`
Optional - emailVisibility
- Boolean - Whether to show/hide the auth record email when fetching the record data.`,k=m(),C=r("tr"),C.innerHTML=`
Optional - oldPassword
- String - Old auth record password. -
- This field is required only when changing the record password. Admins and auth records with - "Manage" access can skip this field.`,w=m(),O=r("tr"),O.innerHTML=`
Optional - password
- String - New auth record password.`,R=m(),A=r("tr"),A.innerHTML=`
Optional - passwordConfirm
- String - New auth record password confirmation.`,j=m(),M=r("tr"),M.innerHTML=`
Optional - verified
- Boolean - Indicates whether the auth record is verified or not. -
- This field can be set only by admins or auth records with "Manage" access.`,E=m(),B=r("tr"),B.innerHTML='Schema fields'},m(c,_){a(c,t,_),a(c,l,_),a(c,s,_),a(c,b,_),a(c,u,_),a(c,d,_),a(c,p,_),a(c,k,_),a(c,C,_),a(c,w,_),a(c,O,_),a(c,R,_),a(c,A,_),a(c,j,_),a(c,M,_),a(c,E,_),a(c,B,_)},d(c){c&&o(t),c&&o(l),c&&o(s),c&&o(b),c&&o(u),c&&o(d),c&&o(p),c&&o(k),c&&o(C),c&&o(w),c&&o(O),c&&o(R),c&&o(A),c&&o(j),c&&o(M),c&&o(E),c&&o(B)}}}function Pt(f){let t;return{c(){t=r("span"),t.textContent="Optional",T(t,"class","label label-warning")},m(l,s){a(l,t,s)},d(l){l&&o(t)}}}function At(f){let t;return{c(){t=r("span"),t.textContent="Required",T(t,"class","label label-success")},m(l,s){a(l,t,s)},d(l){l&&o(t)}}}function Bt(f){var u;let t,l=((u=f[12].options)==null?void 0:u.maxSelect)>1?"ids":"id",s,b;return{c(){t=y("User "),s=y(l),b=y(".")},m(d,p){a(d,t,p),a(d,s,p),a(d,b,p)},p(d,p){var k;p&1&&l!==(l=((k=d[12].options)==null?void 0:k.maxSelect)>1?"ids":"id")&&I(s,l)},d(d){d&&o(t),d&&o(s),d&&o(b)}}}function Ft(f){var u;let t,l=((u=f[12].options)==null?void 0:u.maxSelect)>1?"ids":"id",s,b;return{c(){t=y("Relation record "),s=y(l),b=y(".")},m(d,p){a(d,t,p),a(d,s,p),a(d,b,p)},p(d,p){var k;p&1&&l!==(l=((k=d[12].options)==null?void 0:k.maxSelect)>1?"ids":"id")&&I(s,l)},d(d){d&&o(t),d&&o(s),d&&o(b)}}}function Nt(f){let t,l,s,b,u;return{c(){t=y("File object."),l=r("br"),s=y(` - Set to `),b=r("code"),b.textContent="null",u=y(" to delete already uploaded file(s).")},m(d,p){a(d,t,p),a(d,l,p),a(d,s,p),a(d,b,p),a(d,u,p)},p:G,d(d){d&&o(t),d&&o(l),d&&o(s),d&&o(b),d&&o(u)}}}function jt(f){let t;return{c(){t=y("URL address.")},m(l,s){a(l,t,s)},p:G,d(l){l&&o(t)}}}function Et(f){let t;return{c(){t=y("Email address.")},m(l,s){a(l,t,s)},p:G,d(l){l&&o(t)}}}function Ut(f){let t;return{c(){t=y("JSON array or object.")},m(l,s){a(l,t,s)},p:G,d(l){l&&o(t)}}}function It(f){let t;return{c(){t=y("Number value.")},m(l,s){a(l,t,s)},p:G,d(l){l&&o(t)}}}function Jt(f){let t;return{c(){t=y("Plain text value.")},m(l,s){a(l,t,s)},p:G,d(l){l&&o(t)}}}function ht(f,t){let l,s,b,u,d,p=t[12].name+"",k,C,w,O,R=U.getFieldValueType(t[12])+"",A,j,M,E;function B(h,P){return h[12].required?At:Pt}let c=B(t),_=c(t);function K(h,P){if(h[12].type==="text")return Jt;if(h[12].type==="number")return It;if(h[12].type==="json")return Ut;if(h[12].type==="email")return Et;if(h[12].type==="url")return jt;if(h[12].type==="file")return Nt;if(h[12].type==="relation")return Ft;if(h[12].type==="user")return Bt}let L=K(t),S=L&&L(t);return{key:f,first:null,c(){l=r("tr"),s=r("td"),b=r("div"),_.c(),u=m(),d=r("span"),k=y(p),C=m(),w=r("td"),O=r("span"),A=y(R),j=m(),M=r("td"),S&&S.c(),E=m(),T(b,"class","inline-flex"),T(O,"class","label"),this.first=l},m(h,P){a(h,l,P),i(l,s),i(s,b),_.m(b,null),i(b,u),i(b,d),i(d,k),i(l,C),i(l,w),i(w,O),i(O,A),i(l,j),i(l,M),S&&S.m(M,null),i(l,E)},p(h,P){t=h,c!==(c=B(t))&&(_.d(1),_=c(t),_&&(_.c(),_.m(b,u))),P&1&&p!==(p=t[12].name+"")&&I(k,p),P&1&&R!==(R=U.getFieldValueType(t[12])+"")&&I(A,R),L===(L=K(t))&&S?S.p(t,P):(S&&S.d(1),S=L&&L(t),S&&(S.c(),S.m(M,null)))},d(h){h&&o(l),_.d(),S&&S.d()}}}function vt(f,t){let l,s=t[7].code+"",b,u,d,p;function k(){return t[6](t[7])}return{key:f,first:null,c(){l=r("button"),b=y(s),u=m(),T(l,"class","tab-item"),ce(l,"active",t[1]===t[7].code),this.first=l},m(C,w){a(C,l,w),i(l,b),i(l,u),d||(p=Rt(l,"click",k),d=!0)},p(C,w){t=C,w&4&&s!==(s=t[7].code+"")&&I(b,s),w&6&&ce(l,"active",t[1]===t[7].code)},d(C){C&&o(l),d=!1,p()}}}function wt(f,t){let l,s,b,u;return s=new Tt({props:{content:t[7].body}}),{key:f,first:null,c(){l=r("div"),Ae(s.$$.fragment),b=m(),T(l,"class","tab-item"),ce(l,"active",t[1]===t[7].code),this.first=l},m(d,p){a(d,l,p),Be(s,l,null),i(l,b),u=!0},p(d,p){t=d;const k={};p&4&&(k.content=t[7].body),s.$set(k),(!u||p&6)&&ce(l,"active",t[1]===t[7].code)},i(d){u||(fe(s.$$.fragment,d),u=!0)},o(d){pe(s.$$.fragment,d),u=!1},d(d){d&&o(l),Fe(s)}}}function gt(f){var it,at,ot,dt;let t,l,s=f[0].name+"",b,u,d,p,k,C,w,O=f[0].name+"",R,A,j,M,E,B,c,_,K,L,S,h,P,Ne,ae,W,je,ue,oe=f[0].name+"",be,Ee,me,Ue,_e,X,ye,Z,ke,ee,he,J,ve,Ie,g,we,F=[],Je=new Map,Te,te,Ce,V,Se,ge,Oe,x,Me,Ve,$e,xe,$,Qe,Y,ze,Ke,We,qe,Ye,De,Ge,He,Xe,Re,le,Le,Q,se,N=[],Ze=new Map,et,ne,q=[],tt=new Map,z;_=new Lt({props:{js:` -import PocketBase from 'pocketbase'; - -const pb = new PocketBase('${f[4]}'); - -... - -// example update data -const data = ${JSON.stringify(Object.assign({},f[3],U.dummyCollectionSchemaData(f[0])),null,4)}; - -const record = await pb.collection('${(it=f[0])==null?void 0:it.name}').update('RECORD_ID', data); - `,dart:` -import 'package:pocketbase/pocketbase.dart'; - -final pb = PocketBase('${f[4]}'); - -... - -// example update body -final body = ${JSON.stringify(Object.assign({},f[3],U.dummyCollectionSchemaData(f[0])),null,2)}; - -final record = await pb.collection('${(at=f[0])==null?void 0:at.name}').update('RECORD_ID', body: body); - `}});let D=f[5]&&yt(),H=((ot=f[0])==null?void 0:ot.isAuth)&&kt(),de=(dt=f[0])==null?void 0:dt.schema;const lt=e=>e[12].name;for(let e=0;ee[7].code;for(let e=0;ee[7].code;for(let e=0;eapplication/json or - multipart/form-data.`,E=m(),B=r("p"),B.innerHTML=`File upload is supported only via multipart/form-data. -
- For more info and examples you could check the detailed - Files upload and handling docs - .`,c=m(),Ae(_.$$.fragment),K=m(),L=r("h6"),L.textContent="API details",S=m(),h=r("div"),P=r("strong"),P.textContent="PATCH",Ne=m(),ae=r("div"),W=r("p"),je=y("/api/collections/"),ue=r("strong"),be=y(oe),Ee=y("/records/"),me=r("strong"),me.textContent=":id",Ue=m(),D&&D.c(),_e=m(),X=r("div"),X.textContent="Path parameters",ye=m(),Z=r("table"),Z.innerHTML=`Param - Type - Description - id - String - ID of the record to update.`,ke=m(),ee=r("div"),ee.textContent="Body Parameters",he=m(),J=r("table"),ve=r("thead"),ve.innerHTML=`Param - Type - Description`,Ie=m(),g=r("tbody"),H&&H.c(),we=m();for(let e=0;eParam - Type - Description`,ge=m(),Oe=r("tbody"),x=r("tr"),Me=r("td"),Me.textContent="expand",Ve=m(),$e=r("td"),$e.innerHTML='String',xe=m(),$=r("td"),Qe=y(`Auto expand relations when returning the updated record. Ex.: - `),Ae(Y.$$.fragment),ze=y(` - Supports up to 6-levels depth nested relations expansion. `),Ke=r("br"),We=y(` - The expanded relations will be appended to the record under the - `),qe=r("code"),qe.textContent="expand",Ye=y(" property (eg. "),De=r("code"),De.textContent='"expand": {"relField1": {...}, ...}',Ge=y(`). Only - the relations that the user has permissions to `),He=r("strong"),He.textContent="view",Xe=y(" will be expanded."),Re=m(),le=r("div"),le.textContent="Responses",Le=m(),Q=r("div"),se=r("div");for(let e=0;e${JSON.stringify(Object.assign({},e[3],U.dummyCollectionSchemaData(e[0])),null,2)}; - -final record = await pb.collection('${(ft=e[0])==null?void 0:ft.name}').update('RECORD_ID', body: body); - `),_.$set(v),(!z||n&1)&&oe!==(oe=e[0].name+"")&&I(be,oe),e[5]?D||(D=yt(),D.c(),D.m(h,null)):D&&(D.d(1),D=null),(pt=e[0])!=null&&pt.isAuth?H||(H=kt(),H.c(),H.m(g,we)):H&&(H.d(1),H=null),n&1&&(de=(ct=e[0])==null?void 0:ct.schema,F=Pe(F,n,lt,1,e,de,Je,g,ut,ht,null,_t)),n&6&&(re=e[2],N=Pe(N,n,st,1,e,re,Ze,se,ut,vt,null,mt)),n&6&&(ie=e[2],Mt(),q=Pe(q,n,nt,1,e,ie,tt,ne,$t,wt,null,bt),qt())},i(e){if(!z){fe(_.$$.fragment,e),fe(Y.$$.fragment,e);for(let n=0;nl(1,d=w.code);return f.$$set=w=>{"collection"in w&&l(0,u=w.collection)},f.$$.update=()=>{var w,O;f.$$.dirty&1&&l(5,s=(u==null?void 0:u.updateRule)===null),f.$$.dirty&1&&l(2,p=[{code:200,body:JSON.stringify(U.dummyCollectionRecord(u),null,2)},{code:400,body:` - { - "code": 400, - "message": "Failed to update record.", - "data": { - "${(O=(w=u==null?void 0:u.schema)==null?void 0:w[0])==null?void 0:O.name}": { - "code": "validation_required", - "message": "Missing required value." - } - } - } - `},{code:403,body:` - { - "code": 403, - "message": "You are not allowed to perform this request.", - "data": {} - } - `},{code:404,body:` - { - "code": 404, - "message": "The requested resource wasn't found.", - "data": {} - } - `}]),f.$$.dirty&1&&(u.$isAuth?l(3,k={username:"test_username_update",emailVisibility:!1,password:"87654321",passwordConfirm:"87654321",oldPassword:"12345678"}):l(3,k={}))},l(4,b=U.getApiExampleUrl(Ht.baseUrl)),[u,d,p,k,b,s,C]}class zt extends Ct{constructor(t){super(),St(this,t,Vt,gt,Ot,{collection:0})}}export{zt as default}; diff --git a/ui/dist/assets/ViewApiDocs-303351a6.js b/ui/dist/assets/ViewApiDocs-303351a6.js new file mode 100644 index 00000000..22e155ca --- /dev/null +++ b/ui/dist/assets/ViewApiDocs-303351a6.js @@ -0,0 +1,66 @@ +import{S as tt,i as lt,s as st,M as et,e as o,w as b,b as u,c as W,f as _,g as r,h as l,m as X,x as ve,N as Ge,P as nt,k as ot,Q as it,n as at,t as U,a as j,o as d,d as Y,T as rt,C as Je,p as dt,r as Z,u as ct}from"./index-055843b5.js";import{S as ft}from"./SdkTabs-1c685373.js";import{F as pt}from"./FieldsQueryParam-815b0ee8.js";function Ke(i,s,n){const a=i.slice();return a[6]=s[n],a}function We(i,s,n){const a=i.slice();return a[6]=s[n],a}function Xe(i){let s;return{c(){s=o("p"),s.innerHTML="Requires admin Authorization:TOKEN header",_(s,"class","txt-hint txt-sm txt-right")},m(n,a){r(n,s,a)},d(n){n&&d(s)}}}function Ye(i,s){let n,a=s[6].code+"",w,c,f,m;function F(){return s[5](s[6])}return{key:i,first:null,c(){n=o("button"),w=b(a),c=u(),_(n,"class","tab-item"),Z(n,"active",s[2]===s[6].code),this.first=n},m(h,g){r(h,n,g),l(n,w),l(n,c),f||(m=ct(n,"click",F),f=!0)},p(h,g){s=h,g&20&&Z(n,"active",s[2]===s[6].code)},d(h){h&&d(n),f=!1,m()}}}function Ze(i,s){let n,a,w,c;return a=new et({props:{content:s[6].body}}),{key:i,first:null,c(){n=o("div"),W(a.$$.fragment),w=u(),_(n,"class","tab-item"),Z(n,"active",s[2]===s[6].code),this.first=n},m(f,m){r(f,n,m),X(a,n,null),l(n,w),c=!0},p(f,m){s=f,(!c||m&20)&&Z(n,"active",s[2]===s[6].code)},i(f){c||(U(a.$$.fragment,f),c=!0)},o(f){j(a.$$.fragment,f),c=!1},d(f){f&&d(n),Y(a)}}}function ut(i){var Ue,je;let s,n,a=i[0].name+"",w,c,f,m,F,h,g,V=i[0].name+"",ee,$e,te,R,le,M,se,y,z,we,G,E,ye,ne,J=i[0].name+"",oe,Ce,ie,Fe,ae,x,re,A,de,I,ce,O,fe,ge,q,P,pe,Re,ue,Oe,k,Pe,S,Te,De,Ee,me,Se,be,Be,Me,xe,_e,Ae,Ie,B,ke,H,he,T,L,C=[],qe=new Map,He,N,v=[],Le=new Map,D;R=new ft({props:{js:` + import PocketBase from 'pocketbase'; + + const pb = new PocketBase('${i[3]}'); + + ... + + const record = await pb.collection('${(Ue=i[0])==null?void 0:Ue.name}').getOne('RECORD_ID', { + expand: 'relField1,relField2.subRelField', + }); + `,dart:` + import 'package:pocketbase/pocketbase.dart'; + + final pb = PocketBase('${i[3]}'); + + ... + + final record = await pb.collection('${(je=i[0])==null?void 0:je.name}').getOne('RECORD_ID', + expand: 'relField1,relField2.subRelField', + ); + `}});let $=i[1]&&Xe();S=new et({props:{content:"?expand=relField1,relField2.subRelField"}}),B=new pt({});let K=i[4];const Ne=e=>e[6].code;for(let e=0;ee[6].code;for(let e=0;eParam + Type + Description + id + String + ID of the record to view.`,de=u(),I=o("div"),I.textContent="Query parameters",ce=u(),O=o("table"),fe=o("thead"),fe.innerHTML=`Param + Type + Description`,ge=u(),q=o("tbody"),P=o("tr"),pe=o("td"),pe.textContent="expand",Re=u(),ue=o("td"),ue.innerHTML='String',Oe=u(),k=o("td"),Pe=b(`Auto expand record relations. Ex.: + `),W(S.$$.fragment),Te=b(` + Supports up to 6-levels depth nested relations expansion. `),De=o("br"),Ee=b(` + The expanded relations will be appended to the record under the + `),me=o("code"),me.textContent="expand",Se=b(" property (eg. "),be=o("code"),be.textContent='"expand": {"relField1": {...}, ...}',Be=b(`). + `),Me=o("br"),xe=b(` + Only the relations to which the request user has permissions to `),_e=o("strong"),_e.textContent="view",Ae=b(" will be expanded."),Ie=u(),W(B.$$.fragment),ke=u(),H=o("div"),H.textContent="Responses",he=u(),T=o("div"),L=o("div");for(let e=0;en(2,f=h.code);return i.$$set=h=>{"collection"in h&&n(0,c=h.collection)},i.$$.update=()=>{i.$$.dirty&1&&n(1,a=(c==null?void 0:c.viewRule)===null),i.$$.dirty&3&&c!=null&&c.id&&(m.push({code:200,body:JSON.stringify(Je.dummyCollectionRecord(c),null,2)}),a&&m.push({code:403,body:` + { + "code": 403, + "message": "Only admins can access this action.", + "data": {} + } + `}),m.push({code:404,body:` + { + "code": 404, + "message": "The requested resource wasn't found.", + "data": {} + } + `}))},n(3,w=Je.getApiExampleUrl(dt.baseUrl)),[c,a,f,w,m,F]}class ht extends tt{constructor(s){super(),lt(this,s,mt,ut,st,{collection:0})}}export{ht as default}; diff --git a/ui/dist/assets/ViewApiDocs-442f6b99.js b/ui/dist/assets/ViewApiDocs-442f6b99.js deleted file mode 100644 index 6f5fc882..00000000 --- a/ui/dist/assets/ViewApiDocs-442f6b99.js +++ /dev/null @@ -1,66 +0,0 @@ -import{S as Ze,i as et,s as tt,M as Ye,e as o,w as m,b as u,c as _e,f as _,g as r,h as l,m as ke,x as me,N as Ve,P as lt,k as st,Q as nt,n as ot,t as z,a as G,o as d,d as he,T as it,C as ze,p as at,r as J,u as rt}from"./index-69e255fe.js";import{S as dt}from"./SdkTabs-5df68e34.js";function Ge(i,s,n){const a=i.slice();return a[6]=s[n],a}function Je(i,s,n){const a=i.slice();return a[6]=s[n],a}function Ke(i){let s;return{c(){s=o("p"),s.innerHTML="Requires admin Authorization:TOKEN header",_(s,"class","txt-hint txt-sm txt-right")},m(n,a){r(n,s,a)},d(n){n&&d(s)}}}function We(i,s){let n,a=s[6].code+"",y,c,f,b;function F(){return s[5](s[6])}return{key:i,first:null,c(){n=o("button"),y=m(a),c=u(),_(n,"class","tab-item"),J(n,"active",s[2]===s[6].code),this.first=n},m(h,R){r(h,n,R),l(n,y),l(n,c),f||(b=rt(n,"click",F),f=!0)},p(h,R){s=h,R&20&&J(n,"active",s[2]===s[6].code)},d(h){h&&d(n),f=!1,b()}}}function Xe(i,s){let n,a,y,c;return a=new Ye({props:{content:s[6].body}}),{key:i,first:null,c(){n=o("div"),_e(a.$$.fragment),y=u(),_(n,"class","tab-item"),J(n,"active",s[2]===s[6].code),this.first=n},m(f,b){r(f,n,b),ke(a,n,null),l(n,y),c=!0},p(f,b){s=f,(!c||b&20)&&J(n,"active",s[2]===s[6].code)},i(f){c||(z(a.$$.fragment,f),c=!0)},o(f){G(a.$$.fragment,f),c=!1},d(f){f&&d(n),he(a)}}}function ct(i){var Ne,Ue;let s,n,a=i[0].name+"",y,c,f,b,F,h,R,N=i[0].name+"",K,ve,W,g,X,B,Y,$,U,we,j,E,ye,Z,Q=i[0].name+"",ee,$e,te,Ce,le,M,se,x,ne,A,oe,O,ie,Fe,ae,T,re,Re,de,ge,k,Oe,S,Te,De,Pe,ce,Ee,fe,Se,Be,Me,pe,xe,ue,I,be,D,H,C=[],Ae=new Map,Ie,q,v=[],He=new Map,P;g=new dt({props:{js:` - import PocketBase from 'pocketbase'; - - const pb = new PocketBase('${i[3]}'); - - ... - - const record = await pb.collection('${(Ne=i[0])==null?void 0:Ne.name}').getOne('RECORD_ID', { - expand: 'relField1,relField2.subRelField', - }); - `,dart:` - import 'package:pocketbase/pocketbase.dart'; - - final pb = PocketBase('${i[3]}'); - - ... - - final record = await pb.collection('${(Ue=i[0])==null?void 0:Ue.name}').getOne('RECORD_ID', - expand: 'relField1,relField2.subRelField', - ); - `}});let w=i[1]&&Ke();S=new Ye({props:{content:"?expand=relField1,relField2.subRelField"}});let V=i[4];const qe=e=>e[6].code;for(let e=0;ee[6].code;for(let e=0;eParam - Type - Description - id - String - ID of the record to view.`,ne=u(),A=o("div"),A.textContent="Query parameters",oe=u(),O=o("table"),ie=o("thead"),ie.innerHTML=`Param - Type - Description`,Fe=u(),ae=o("tbody"),T=o("tr"),re=o("td"),re.textContent="expand",Re=u(),de=o("td"),de.innerHTML='String',ge=u(),k=o("td"),Oe=m(`Auto expand record relations. Ex.: - `),_e(S.$$.fragment),Te=m(` - Supports up to 6-levels depth nested relations expansion. `),De=o("br"),Pe=m(` - The expanded relations will be appended to the record under the - `),ce=o("code"),ce.textContent="expand",Ee=m(" property (eg. "),fe=o("code"),fe.textContent='"expand": {"relField1": {...}, ...}',Se=m(`). - `),Be=o("br"),Me=m(` - Only the relations to which the request user has permissions to `),pe=o("strong"),pe.textContent="view",xe=m(" will be expanded."),ue=u(),I=o("div"),I.textContent="Responses",be=u(),D=o("div"),H=o("div");for(let e=0;en(2,f=h.code);return i.$$set=h=>{"collection"in h&&n(0,c=h.collection)},i.$$.update=()=>{i.$$.dirty&1&&n(1,a=(c==null?void 0:c.viewRule)===null),i.$$.dirty&3&&c!=null&&c.id&&(b.push({code:200,body:JSON.stringify(ze.dummyCollectionRecord(c),null,2)}),a&&b.push({code:403,body:` - { - "code": 403, - "message": "Only admins can access this action.", - "data": {} - } - `}),b.push({code:404,body:` - { - "code": 404, - "message": "The requested resource wasn't found.", - "data": {} - } - `}))},n(3,y=ze.getApiExampleUrl(at.baseUrl)),[c,a,f,y,b,F]}class bt extends Ze{constructor(s){super(),et(this,s,ft,ct,tt,{collection:0})}}export{bt as default}; diff --git a/ui/dist/assets/index-69e255fe.js b/ui/dist/assets/index-055843b5.js similarity index 95% rename from ui/dist/assets/index-69e255fe.js rename to ui/dist/assets/index-055843b5.js index a40a56cb..d483d6ae 100644 --- a/ui/dist/assets/index-69e255fe.js +++ b/ui/dist/assets/index-055843b5.js @@ -14,7 +14,7 @@ `}}let ia,Ki;const sa="app-tooltip";function Qu(n){return typeof n=="string"?{text:n,position:"bottom",hideOnClick:null}:n||{}}function Fi(){return Ki=Ki||document.querySelector("."+sa),Ki||(Ki=document.createElement("div"),Ki.classList.add(sa),document.body.appendChild(Ki)),Ki}function vb(n,e){let t=Fi();if(!t.classList.contains("active")||!(e!=null&&e.text)){la();return}t.textContent=e.text,t.className=sa+" active",e.class&&t.classList.add(e.class),e.position&&t.classList.add(e.position),t.style.top="0px",t.style.left="0px";let i=t.offsetHeight,s=t.offsetWidth,l=n.getBoundingClientRect(),o=0,r=0,a=5;e.position=="left"?(o=l.top+l.height/2-i/2,r=l.left-s-a):e.position=="right"?(o=l.top+l.height/2-i/2,r=l.right+a):e.position=="top"?(o=l.top-i-a,r=l.left+l.width/2-s/2):e.position=="top-left"?(o=l.top-i-a,r=l.left):e.position=="top-right"?(o=l.top-i-a,r=l.right-s):e.position=="bottom-left"?(o=l.top+l.height+a,r=l.left):e.position=="bottom-right"?(o=l.top+l.height+a,r=l.right-s):(o=l.top+l.height+a,r=l.left+l.width/2-s/2),r+s>document.documentElement.clientWidth&&(r=document.documentElement.clientWidth-s),r=r>=0?r:0,o+i>document.documentElement.clientHeight&&(o=document.documentElement.clientHeight-i),o=o>=0?o:0,t.style.top=o+"px",t.style.left=r+"px"}function la(){clearTimeout(ia),Fi().classList.remove("active"),Fi().activeNode=void 0}function Hy(n,e){Fi().activeNode=n,clearTimeout(ia),ia=setTimeout(()=>{Fi().classList.add("active"),vb(n,e)},isNaN(e.delay)?0:e.delay)}function Be(n,e){let t=Qu(e);function i(){Hy(n,t)}function s(){la()}return n.addEventListener("mouseenter",i),n.addEventListener("mouseleave",s),n.addEventListener("blur",s),(t.hideOnClick===!0||t.hideOnClick===null&&W.isFocusable(n))&&n.addEventListener("click",s),Fi(),{update(l){var o,r;t=Qu(l),(r=(o=Fi())==null?void 0:o.activeNode)!=null&&r.contains(n)&&vb(n,t)},destroy(){var l,o;(o=(l=Fi())==null?void 0:l.activeNode)!=null&&o.contains(n)&&la(),n.removeEventListener("mouseenter",i),n.removeEventListener("mouseleave",s),n.removeEventListener("blur",s),n.removeEventListener("click",s)}}}function xu(n,e,t){const i=n.slice();return i[12]=e[t],i}const By=n=>({}),ef=n=>({uniqueId:n[4]});function Uy(n){let e,t,i=n[3],s=[];for(let o=0;oP(s[o],1,1,()=>{s[o]=null});return{c(){for(let o=0;o{l&&(s||(s=Ve(t,Jt,{duration:150,start:.7},!0)),s.run(1))}),l=!0)},o(a){a&&(s||(s=Ve(t,Jt,{duration:150,start:.7},!1)),s.run(0)),l=!1},d(a){a&&w(e),a&&s&&s.end(),o=!1,r()}}}function tf(n){let e,t,i=wo(n[12])+"",s,l,o,r;return{c(){e=y("div"),t=y("pre"),s=Y(i),l=D(),m(e,"class","help-block help-block-error")},m(a,u){S(a,e,u),v(e,t),v(t,s),v(e,l),r=!0},p(a,u){(!r||u&8)&&i!==(i=wo(a[12])+"")&&le(s,i)},i(a){r||(a&&et(()=>{r&&(o||(o=Ve(e,rt,{duration:150},!0)),o.run(1))}),r=!0)},o(a){a&&(o||(o=Ve(e,rt,{duration:150},!1)),o.run(0)),r=!1},d(a){a&&w(e),a&&o&&o.end()}}}function Yy(n){let e,t,i,s,l,o,r;const a=n[9].default,u=kt(a,n,n[8],ef),f=[Wy,Uy],d=[];function p(h,g){return h[0]&&h[3].length?0:1}return i=p(n),s=d[i]=f[i](n),{c(){e=y("div"),u&&u.c(),t=D(),s.c(),m(e,"class",n[1]),Q(e,"error",n[3].length)},m(h,g){S(h,e,g),u&&u.m(e,null),v(e,t),d[i].m(e,null),n[11](e),l=!0,o||(r=J(e,"click",n[10]),o=!0)},p(h,[g]){u&&u.p&&(!l||g&256)&&St(u,a,h,h[8],l?wt(a,h[8],g,By):$t(h[8]),ef);let _=i;i=p(h),i===_?d[i].p(h,g):(ue(),P(d[_],1,1,()=>{d[_]=null}),fe(),s=d[i],s?s.p(h,g):(s=d[i]=f[i](h),s.c()),I(s,1),s.m(e,null)),(!l||g&2)&&m(e,"class",h[1]),(!l||g&10)&&Q(e,"error",h[3].length)},i(h){l||(I(u,h),I(s),l=!0)},o(h){P(u,h),P(s),l=!1},d(h){h&&w(e),u&&u.d(h),d[i].d(),n[11](null),o=!1,r()}}}const nf="Invalid value";function wo(n){return typeof n=="object"?(n==null?void 0:n.message)||(n==null?void 0:n.code)||nf:n||nf}function Ky(n,e,t){let i;Ze(n,Ti,_=>t(7,i=_));let{$$slots:s={},$$scope:l}=e;const o="field_"+W.randomString(7);let{name:r=""}=e,{inlineError:a=!1}=e,{class:u=void 0}=e,f,d=[];function p(){ui(r)}Xt(()=>(f.addEventListener("input",p),f.addEventListener("change",p),()=>{f.removeEventListener("input",p),f.removeEventListener("change",p)}));function h(_){he.call(this,n,_)}function g(_){ne[_?"unshift":"push"](()=>{f=_,t(2,f)})}return n.$$set=_=>{"name"in _&&t(5,r=_.name),"inlineError"in _&&t(0,a=_.inlineError),"class"in _&&t(1,u=_.class),"$$scope"in _&&t(8,l=_.$$scope)},n.$$.update=()=>{n.$$.dirty&160&&t(3,d=W.toArray(W.getNestedVal(i,r)))},[a,u,f,d,o,r,p,i,l,s,h,g]}class me extends ve{constructor(e){super(),be(this,e,Ky,Yy,_e,{name:5,inlineError:0,class:1,changed:6})}get changed(){return this.$$.ctx[6]}}function Jy(n){let e,t,i,s,l,o,r,a;return{c(){e=y("label"),t=Y("Email"),s=D(),l=y("input"),m(e,"for",i=n[9]),m(l,"type","email"),m(l,"autocomplete","off"),m(l,"id",o=n[9]),l.required=!0,l.autofocus=!0},m(u,f){S(u,e,f),v(e,t),S(u,s,f),S(u,l,f),ae(l,n[0]),l.focus(),r||(a=J(l,"input",n[5]),r=!0)},p(u,f){f&512&&i!==(i=u[9])&&m(e,"for",i),f&512&&o!==(o=u[9])&&m(l,"id",o),f&1&&l.value!==u[0]&&ae(l,u[0])},d(u){u&&w(e),u&&w(s),u&&w(l),r=!1,a()}}}function Zy(n){let e,t,i,s,l,o,r,a,u,f;return{c(){e=y("label"),t=Y("Password"),s=D(),l=y("input"),r=D(),a=y("div"),a.textContent="Minimum 10 characters.",m(e,"for",i=n[9]),m(l,"type","password"),m(l,"autocomplete","new-password"),m(l,"minlength","10"),m(l,"id",o=n[9]),l.required=!0,m(a,"class","help-block")},m(d,p){S(d,e,p),v(e,t),S(d,s,p),S(d,l,p),ae(l,n[1]),S(d,r,p),S(d,a,p),u||(f=J(l,"input",n[6]),u=!0)},p(d,p){p&512&&i!==(i=d[9])&&m(e,"for",i),p&512&&o!==(o=d[9])&&m(l,"id",o),p&2&&l.value!==d[1]&&ae(l,d[1])},d(d){d&&w(e),d&&w(s),d&&w(l),d&&w(r),d&&w(a),u=!1,f()}}}function Gy(n){let e,t,i,s,l,o,r,a;return{c(){e=y("label"),t=Y("Password confirm"),s=D(),l=y("input"),m(e,"for",i=n[9]),m(l,"type","password"),m(l,"minlength","10"),m(l,"id",o=n[9]),l.required=!0},m(u,f){S(u,e,f),v(e,t),S(u,s,f),S(u,l,f),ae(l,n[2]),r||(a=J(l,"input",n[7]),r=!0)},p(u,f){f&512&&i!==(i=u[9])&&m(e,"for",i),f&512&&o!==(o=u[9])&&m(l,"id",o),f&4&&l.value!==u[2]&&ae(l,u[2])},d(u){u&&w(e),u&&w(s),u&&w(l),r=!1,a()}}}function Xy(n){let e,t,i,s,l,o,r,a,u,f,d,p,h;return s=new me({props:{class:"form-field required",name:"email",$$slots:{default:[Jy,({uniqueId:g})=>({9:g}),({uniqueId:g})=>g?512:0]},$$scope:{ctx:n}}}),o=new me({props:{class:"form-field required",name:"password",$$slots:{default:[Zy,({uniqueId:g})=>({9:g}),({uniqueId:g})=>g?512:0]},$$scope:{ctx:n}}}),a=new me({props:{class:"form-field required",name:"passwordConfirm",$$slots:{default:[Gy,({uniqueId:g})=>({9:g}),({uniqueId:g})=>g?512:0]},$$scope:{ctx:n}}}),{c(){e=y("form"),t=y("div"),t.innerHTML="

Create your first admin account in order to continue

",i=D(),B(s.$$.fragment),l=D(),B(o.$$.fragment),r=D(),B(a.$$.fragment),u=D(),f=y("button"),f.innerHTML=`Create and login - `,m(t,"class","content txt-center m-b-base"),m(f,"type","submit"),m(f,"class","btn btn-lg btn-block btn-next"),Q(f,"btn-disabled",n[3]),Q(f,"btn-loading",n[3]),m(e,"class","block"),m(e,"autocomplete","off")},m(g,_){S(g,e,_),v(e,t),v(e,i),z(s,e,null),v(e,l),z(o,e,null),v(e,r),z(a,e,null),v(e,u),v(e,f),d=!0,p||(h=J(e,"submit",xe(n[4])),p=!0)},p(g,[_]){const b={};_&1537&&(b.$$scope={dirty:_,ctx:g}),s.$set(b);const k={};_&1538&&(k.$$scope={dirty:_,ctx:g}),o.$set(k);const $={};_&1540&&($.$$scope={dirty:_,ctx:g}),a.$set($),(!d||_&8)&&Q(f,"btn-disabled",g[3]),(!d||_&8)&&Q(f,"btn-loading",g[3])},i(g){d||(I(s.$$.fragment,g),I(o.$$.fragment,g),I(a.$$.fragment,g),d=!0)},o(g){P(s.$$.fragment,g),P(o.$$.fragment,g),P(a.$$.fragment,g),d=!1},d(g){g&&w(e),H(s),H(o),H(a),p=!1,h()}}}function Qy(n,e,t){const i=Tt();let s="",l="",o="",r=!1;async function a(){if(!r){t(3,r=!0);try{await de.admins.create({email:s,password:l,passwordConfirm:o}),await de.admins.authWithPassword(s,l),i("submit")}catch(p){de.error(p)}t(3,r=!1)}}function u(){s=this.value,t(0,s)}function f(){l=this.value,t(1,l)}function d(){o=this.value,t(2,o)}return[s,l,o,r,a,u,f,d]}class xy extends ve{constructor(e){super(),be(this,e,Qy,Xy,_e,{})}}function sf(n){let e,t;return e=new bb({props:{$$slots:{default:[ek]},$$scope:{ctx:n}}}),{c(){B(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p(i,s){const l={};s&9&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(I(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){H(e,i)}}}function ek(n){let e,t;return e=new xy({}),e.$on("submit",n[1]),{c(){B(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p:te,i(i){t||(I(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){H(e,i)}}}function tk(n){let e,t,i=n[0]&&sf(n);return{c(){i&&i.c(),e=we()},m(s,l){i&&i.m(s,l),S(s,e,l),t=!0},p(s,[l]){s[0]?i?(i.p(s,l),l&1&&I(i,1)):(i=sf(s),i.c(),I(i,1),i.m(e.parentNode,e)):i&&(ue(),P(i,1,1,()=>{i=null}),fe())},i(s){t||(I(i),t=!0)},o(s){P(i),t=!1},d(s){i&&i.d(s),s&&w(e)}}}function nk(n,e,t){let i=!1;s();function s(){if(t(0,i=!1),new URLSearchParams(window.location.search).has("installer")){de.logout(!1),t(0,i=!0);return}de.authStore.isValid?Vi("/collections"):de.logout()}return[i,async()=>{t(0,i=!1),await cn(),window.location.search=""}]}class ik extends ve{constructor(e){super(),be(this,e,nk,tk,_e,{})}}const Mt=Ln(""),So=Ln(""),Is=Ln(!1);function sk(n){let e,t,i,s;return{c(){e=y("input"),m(e,"type","text"),m(e,"id",n[8]),m(e,"placeholder",t=n[0]||n[1])},m(l,o){S(l,e,o),n[13](e),ae(e,n[7]),i||(s=J(e,"input",n[14]),i=!0)},p(l,o){o&3&&t!==(t=l[0]||l[1])&&m(e,"placeholder",t),o&128&&e.value!==l[7]&&ae(e,l[7])},i:te,o:te,d(l){l&&w(e),n[13](null),i=!1,s()}}}function lk(n){let e,t,i,s;function l(a){n[12](a)}var o=n[4];function r(a){let u={id:a[8],singleLine:!0,disableRequestKeys:!0,disableIndirectCollectionsKeys:!0,extraAutocompleteKeys:a[3],baseCollection:a[2],placeholder:a[0]||a[1]};return a[7]!==void 0&&(u.value=a[7]),{props:u}}return o&&(e=Rt(o,r(n)),ne.push(()=>pe(e,"value",l)),e.$on("submit",n[10])),{c(){e&&B(e.$$.fragment),i=we()},m(a,u){e&&z(e,a,u),S(a,i,u),s=!0},p(a,u){const f={};if(u&8&&(f.extraAutocompleteKeys=a[3]),u&4&&(f.baseCollection=a[2]),u&3&&(f.placeholder=a[0]||a[1]),!t&&u&128&&(t=!0,f.value=a[7],ge(()=>t=!1)),u&16&&o!==(o=a[4])){if(e){ue();const d=e;P(d.$$.fragment,1,0,()=>{H(d,1)}),fe()}o?(e=Rt(o,r(a)),ne.push(()=>pe(e,"value",l)),e.$on("submit",a[10]),B(e.$$.fragment),I(e.$$.fragment,1),z(e,i.parentNode,i)):e=null}else o&&e.$set(f)},i(a){s||(e&&I(e.$$.fragment,a),s=!0)},o(a){e&&P(e.$$.fragment,a),s=!1},d(a){a&&w(i),e&&H(e,a)}}}function lf(n){let e,t,i;return{c(){e=y("button"),e.innerHTML='Search',m(e,"type","submit"),m(e,"class","btn btn-expanded btn-sm btn-warning")},m(s,l){S(s,e,l),i=!0},i(s){i||(s&&et(()=>{i&&(t||(t=Ve(e,ci,{duration:150,x:5},!0)),t.run(1))}),i=!0)},o(s){s&&(t||(t=Ve(e,ci,{duration:150,x:5},!1)),t.run(0)),i=!1},d(s){s&&w(e),s&&t&&t.end()}}}function of(n){let e,t,i,s,l;return{c(){e=y("button"),e.innerHTML='Clear',m(e,"type","button"),m(e,"class","btn btn-transparent btn-sm btn-hint p-l-xs p-r-xs m-l-10")},m(o,r){S(o,e,r),i=!0,s||(l=J(e,"click",n[15]),s=!0)},p:te,i(o){i||(o&&et(()=>{i&&(t||(t=Ve(e,ci,{duration:150,x:5},!0)),t.run(1))}),i=!0)},o(o){o&&(t||(t=Ve(e,ci,{duration:150,x:5},!1)),t.run(0)),i=!1},d(o){o&&w(e),o&&t&&t.end(),s=!1,l()}}}function ok(n){let e,t,i,s,l,o,r,a,u,f,d;const p=[lk,sk],h=[];function g(k,$){return k[4]&&!k[5]?0:1}l=g(n),o=h[l]=p[l](n);let _=(n[0].length||n[7].length)&&n[7]!=n[0]&&lf(),b=(n[0].length||n[7].length)&&of(n);return{c(){e=y("form"),t=y("label"),i=y("i"),s=D(),o.c(),r=D(),_&&_.c(),a=D(),b&&b.c(),m(i,"class","ri-search-line"),m(t,"for",n[8]),m(t,"class","m-l-10 txt-xl"),m(e,"class","searchbar")},m(k,$){S(k,e,$),v(e,t),v(t,i),v(e,s),h[l].m(e,null),v(e,r),_&&_.m(e,null),v(e,a),b&&b.m(e,null),u=!0,f||(d=[J(e,"click",In(n[11])),J(e,"submit",xe(n[10]))],f=!0)},p(k,[$]){let C=l;l=g(k),l===C?h[l].p(k,$):(ue(),P(h[C],1,1,()=>{h[C]=null}),fe(),o=h[l],o?o.p(k,$):(o=h[l]=p[l](k),o.c()),I(o,1),o.m(e,r)),(k[0].length||k[7].length)&&k[7]!=k[0]?_?$&129&&I(_,1):(_=lf(),_.c(),I(_,1),_.m(e,a)):_&&(ue(),P(_,1,1,()=>{_=null}),fe()),k[0].length||k[7].length?b?(b.p(k,$),$&129&&I(b,1)):(b=of(k),b.c(),I(b,1),b.m(e,null)):b&&(ue(),P(b,1,1,()=>{b=null}),fe())},i(k){u||(I(o),I(_),I(b),u=!0)},o(k){P(o),P(_),P(b),u=!1},d(k){k&&w(e),h[l].d(),_&&_.d(),b&&b.d(),f=!1,De(d)}}}function rk(n,e,t){const i=Tt(),s="search_"+W.randomString(7);let{value:l=""}=e,{placeholder:o='Search term or filter like created > "2022-01-01"...'}=e,{autocompleteCollection:r=new kn}=e,{extraAutocompleteKeys:a=[]}=e,u,f=!1,d,p="";function h(O=!0){t(7,p=""),O&&(d==null||d.focus()),i("clear")}function g(){t(0,l=p),i("submit",l)}async function _(){u||f||(t(5,f=!0),t(4,u=(await ut(()=>import("./FilterAutocompleteInput-b8c7c37b.js"),["./FilterAutocompleteInput-b8c7c37b.js","./index-84ab2e4b.js"],import.meta.url)).default),t(5,f=!1))}Xt(()=>{_()});function b(O){he.call(this,n,O)}function k(O){p=O,t(7,p),t(0,l)}function $(O){ne[O?"unshift":"push"](()=>{d=O,t(6,d)})}function C(){p=this.value,t(7,p),t(0,l)}const T=()=>{h(!1),g()};return n.$$set=O=>{"value"in O&&t(0,l=O.value),"placeholder"in O&&t(1,o=O.placeholder),"autocompleteCollection"in O&&t(2,r=O.autocompleteCollection),"extraAutocompleteKeys"in O&&t(3,a=O.extraAutocompleteKeys)},n.$$.update=()=>{n.$$.dirty&1&&typeof l=="string"&&t(7,p=l)},[l,o,r,a,u,f,d,p,s,h,g,b,k,$,C,T]}class Jo extends ve{constructor(e){super(),be(this,e,rk,ok,_e,{value:0,placeholder:1,autocompleteCollection:2,extraAutocompleteKeys:3})}}function ak(n){let e,t,i,s,l,o;return{c(){e=y("button"),t=y("i"),m(t,"class","ri-refresh-line svelte-1bvelc2"),m(e,"type","button"),m(e,"aria-label","Refresh"),m(e,"class",i="btn btn-transparent btn-circle "+n[1]+" svelte-1bvelc2"),Q(e,"refreshing",n[2])},m(r,a){S(r,e,a),v(e,t),l||(o=[Ee(s=Be.call(null,e,n[0])),J(e,"click",n[3])],l=!0)},p(r,[a]){a&2&&i!==(i="btn btn-transparent btn-circle "+r[1]+" svelte-1bvelc2")&&m(e,"class",i),s&&jt(s.update)&&a&1&&s.update.call(null,r[0]),a&6&&Q(e,"refreshing",r[2])},i:te,o:te,d(r){r&&w(e),l=!1,De(o)}}}function uk(n,e,t){const i=Tt();let{tooltip:s={text:"Refresh",position:"right"}}=e,{class:l=""}=e,o=null;function r(){i("refresh");const a=s;t(0,s=null),clearTimeout(o),t(2,o=setTimeout(()=>{t(2,o=null),t(0,s=a)},150))}return Xt(()=>()=>clearTimeout(o)),n.$$set=a=>{"tooltip"in a&&t(0,s=a.tooltip),"class"in a&&t(1,l=a.class)},[s,l,o,r]}class Zo extends ve{constructor(e){super(),be(this,e,uk,ak,_e,{tooltip:0,class:1})}}function fk(n){let e,t,i,s,l;const o=n[6].default,r=kt(o,n,n[5],null);return{c(){e=y("th"),r&&r.c(),m(e,"tabindex","0"),m(e,"title",n[2]),m(e,"class",t="col-sort "+n[1]),Q(e,"col-sort-disabled",n[3]),Q(e,"sort-active",n[0]==="-"+n[2]||n[0]==="+"+n[2]),Q(e,"sort-desc",n[0]==="-"+n[2]),Q(e,"sort-asc",n[0]==="+"+n[2])},m(a,u){S(a,e,u),r&&r.m(e,null),i=!0,s||(l=[J(e,"click",n[7]),J(e,"keydown",n[8])],s=!0)},p(a,[u]){r&&r.p&&(!i||u&32)&&St(r,o,a,a[5],i?wt(o,a[5],u,null):$t(a[5]),null),(!i||u&4)&&m(e,"title",a[2]),(!i||u&2&&t!==(t="col-sort "+a[1]))&&m(e,"class",t),(!i||u&10)&&Q(e,"col-sort-disabled",a[3]),(!i||u&7)&&Q(e,"sort-active",a[0]==="-"+a[2]||a[0]==="+"+a[2]),(!i||u&7)&&Q(e,"sort-desc",a[0]==="-"+a[2]),(!i||u&7)&&Q(e,"sort-asc",a[0]==="+"+a[2])},i(a){i||(I(r,a),i=!0)},o(a){P(r,a),i=!1},d(a){a&&w(e),r&&r.d(a),s=!1,De(l)}}}function ck(n,e,t){let{$$slots:i={},$$scope:s}=e,{class:l=""}=e,{name:o}=e,{sort:r=""}=e,{disable:a=!1}=e;function u(){a||("-"+o===r?t(0,r="+"+o):t(0,r="-"+o))}const f=()=>u(),d=p=>{(p.code==="Enter"||p.code==="Space")&&(p.preventDefault(),u())};return n.$$set=p=>{"class"in p&&t(1,l=p.class),"name"in p&&t(2,o=p.name),"sort"in p&&t(0,r=p.sort),"disable"in p&&t(3,a=p.disable),"$$scope"in p&&t(5,s=p.$$scope)},[r,l,o,a,u,s,i,f,d]}class un extends ve{constructor(e){super(),be(this,e,ck,fk,_e,{class:1,name:2,sort:0,disable:3})}}function dk(n){let e;return{c(){e=y("span"),e.textContent="N/A",m(e,"class","txt txt-hint")},m(t,i){S(t,e,i)},p:te,d(t){t&&w(e)}}}function pk(n){let e,t,i,s,l,o,r;return{c(){e=y("div"),t=y("div"),i=Y(n[2]),s=D(),l=y("div"),o=Y(n[1]),r=Y(" UTC"),m(t,"class","date"),m(l,"class","time svelte-zdiknu"),m(e,"class","datetime svelte-zdiknu")},m(a,u){S(a,e,u),v(e,t),v(t,i),v(e,s),v(e,l),v(l,o),v(l,r)},p(a,u){u&4&&le(i,a[2]),u&2&&le(o,a[1])},d(a){a&&w(e)}}}function mk(n){let e;function t(l,o){return l[0]?pk:dk}let i=t(n),s=i(n);return{c(){s.c(),e=we()},m(l,o){s.m(l,o),S(l,e,o)},p(l,[o]){i===(i=t(l))&&s?s.p(l,o):(s.d(1),s=i(l),s&&(s.c(),s.m(e.parentNode,e)))},i:te,o:te,d(l){s.d(l),l&&w(e)}}}function hk(n,e,t){let i,s,{date:l=""}=e;return n.$$set=o=>{"date"in o&&t(0,l=o.date)},n.$$.update=()=>{n.$$.dirty&1&&t(2,i=l?l.substring(0,10):null),n.$$.dirty&1&&t(1,s=l?l.substring(10,19):null)},[l,s,i]}class $i extends ve{constructor(e){super(),be(this,e,hk,mk,_e,{date:0})}}const _k=n=>({}),rf=n=>({}),gk=n=>({}),af=n=>({});function bk(n){let e,t,i,s,l,o,r,a;const u=n[5].before,f=kt(u,n,n[4],af),d=n[5].default,p=kt(d,n,n[4],null),h=n[5].after,g=kt(h,n,n[4],rf);return{c(){e=y("div"),f&&f.c(),t=D(),i=y("div"),p&&p.c(),l=D(),g&&g.c(),m(i,"class",s="horizontal-scroller "+n[0]+" "+n[3]+" svelte-wc2j9h"),m(e,"class","horizontal-scroller-wrapper svelte-wc2j9h")},m(_,b){S(_,e,b),f&&f.m(e,null),v(e,t),v(e,i),p&&p.m(i,null),n[6](i),v(e,l),g&&g.m(e,null),o=!0,r||(a=[J(window,"resize",n[1]),J(i,"scroll",n[1])],r=!0)},p(_,[b]){f&&f.p&&(!o||b&16)&&St(f,u,_,_[4],o?wt(u,_[4],b,gk):$t(_[4]),af),p&&p.p&&(!o||b&16)&&St(p,d,_,_[4],o?wt(d,_[4],b,null):$t(_[4]),null),(!o||b&9&&s!==(s="horizontal-scroller "+_[0]+" "+_[3]+" svelte-wc2j9h"))&&m(i,"class",s),g&&g.p&&(!o||b&16)&&St(g,h,_,_[4],o?wt(h,_[4],b,_k):$t(_[4]),rf)},i(_){o||(I(f,_),I(p,_),I(g,_),o=!0)},o(_){P(f,_),P(p,_),P(g,_),o=!1},d(_){_&&w(e),f&&f.d(_),p&&p.d(_),n[6](null),g&&g.d(_),r=!1,De(a)}}}function vk(n,e,t){let{$$slots:i={},$$scope:s}=e,{class:l=""}=e,o=null,r="",a=null,u;function f(){o&&(clearTimeout(a),a=setTimeout(()=>{const p=o.offsetWidth,h=o.scrollWidth;h-p?(t(3,r="scrollable"),o.scrollLeft===0?t(3,r+=" scroll-start"):o.scrollLeft+p==h&&t(3,r+=" scroll-end")):t(3,r="")},100))}Xt(()=>(f(),u=new MutationObserver(()=>{f()}),u.observe(o,{attributeFilter:["width"],childList:!0,subtree:!0}),()=>{u==null||u.disconnect(),clearTimeout(a)}));function d(p){ne[p?"unshift":"push"](()=>{o=p,t(2,o)})}return n.$$set=p=>{"class"in p&&t(0,l=p.class),"$$scope"in p&&t(4,s=p.$$scope)},[l,f,o,r,s,i,d]}class Va extends ve{constructor(e){super(),be(this,e,vk,bk,_e,{class:0,refresh:1})}get refresh(){return this.$$.ctx[1]}}function uf(n,e,t){const i=n.slice();return i[23]=e[t],i}function yk(n){let e;return{c(){e=y("div"),e.innerHTML=` + `,m(t,"class","content txt-center m-b-base"),m(f,"type","submit"),m(f,"class","btn btn-lg btn-block btn-next"),Q(f,"btn-disabled",n[3]),Q(f,"btn-loading",n[3]),m(e,"class","block"),m(e,"autocomplete","off")},m(g,_){S(g,e,_),v(e,t),v(e,i),z(s,e,null),v(e,l),z(o,e,null),v(e,r),z(a,e,null),v(e,u),v(e,f),d=!0,p||(h=J(e,"submit",xe(n[4])),p=!0)},p(g,[_]){const b={};_&1537&&(b.$$scope={dirty:_,ctx:g}),s.$set(b);const k={};_&1538&&(k.$$scope={dirty:_,ctx:g}),o.$set(k);const $={};_&1540&&($.$$scope={dirty:_,ctx:g}),a.$set($),(!d||_&8)&&Q(f,"btn-disabled",g[3]),(!d||_&8)&&Q(f,"btn-loading",g[3])},i(g){d||(I(s.$$.fragment,g),I(o.$$.fragment,g),I(a.$$.fragment,g),d=!0)},o(g){P(s.$$.fragment,g),P(o.$$.fragment,g),P(a.$$.fragment,g),d=!1},d(g){g&&w(e),H(s),H(o),H(a),p=!1,h()}}}function Qy(n,e,t){const i=Tt();let s="",l="",o="",r=!1;async function a(){if(!r){t(3,r=!0);try{await de.admins.create({email:s,password:l,passwordConfirm:o}),await de.admins.authWithPassword(s,l),i("submit")}catch(p){de.error(p)}t(3,r=!1)}}function u(){s=this.value,t(0,s)}function f(){l=this.value,t(1,l)}function d(){o=this.value,t(2,o)}return[s,l,o,r,a,u,f,d]}class xy extends ve{constructor(e){super(),be(this,e,Qy,Xy,_e,{})}}function sf(n){let e,t;return e=new bb({props:{$$slots:{default:[ek]},$$scope:{ctx:n}}}),{c(){B(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p(i,s){const l={};s&9&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(I(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){H(e,i)}}}function ek(n){let e,t;return e=new xy({}),e.$on("submit",n[1]),{c(){B(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p:te,i(i){t||(I(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){H(e,i)}}}function tk(n){let e,t,i=n[0]&&sf(n);return{c(){i&&i.c(),e=we()},m(s,l){i&&i.m(s,l),S(s,e,l),t=!0},p(s,[l]){s[0]?i?(i.p(s,l),l&1&&I(i,1)):(i=sf(s),i.c(),I(i,1),i.m(e.parentNode,e)):i&&(ue(),P(i,1,1,()=>{i=null}),fe())},i(s){t||(I(i),t=!0)},o(s){P(i),t=!1},d(s){i&&i.d(s),s&&w(e)}}}function nk(n,e,t){let i=!1;s();function s(){if(t(0,i=!1),new URLSearchParams(window.location.search).has("installer")){de.logout(!1),t(0,i=!0);return}de.authStore.isValid?Vi("/collections"):de.logout()}return[i,async()=>{t(0,i=!1),await cn(),window.location.search=""}]}class ik extends ve{constructor(e){super(),be(this,e,nk,tk,_e,{})}}const Mt=Ln(""),So=Ln(""),Is=Ln(!1);function sk(n){let e,t,i,s;return{c(){e=y("input"),m(e,"type","text"),m(e,"id",n[8]),m(e,"placeholder",t=n[0]||n[1])},m(l,o){S(l,e,o),n[13](e),ae(e,n[7]),i||(s=J(e,"input",n[14]),i=!0)},p(l,o){o&3&&t!==(t=l[0]||l[1])&&m(e,"placeholder",t),o&128&&e.value!==l[7]&&ae(e,l[7])},i:te,o:te,d(l){l&&w(e),n[13](null),i=!1,s()}}}function lk(n){let e,t,i,s;function l(a){n[12](a)}var o=n[4];function r(a){let u={id:a[8],singleLine:!0,disableRequestKeys:!0,disableIndirectCollectionsKeys:!0,extraAutocompleteKeys:a[3],baseCollection:a[2],placeholder:a[0]||a[1]};return a[7]!==void 0&&(u.value=a[7]),{props:u}}return o&&(e=Rt(o,r(n)),ne.push(()=>pe(e,"value",l)),e.$on("submit",n[10])),{c(){e&&B(e.$$.fragment),i=we()},m(a,u){e&&z(e,a,u),S(a,i,u),s=!0},p(a,u){const f={};if(u&8&&(f.extraAutocompleteKeys=a[3]),u&4&&(f.baseCollection=a[2]),u&3&&(f.placeholder=a[0]||a[1]),!t&&u&128&&(t=!0,f.value=a[7],ge(()=>t=!1)),u&16&&o!==(o=a[4])){if(e){ue();const d=e;P(d.$$.fragment,1,0,()=>{H(d,1)}),fe()}o?(e=Rt(o,r(a)),ne.push(()=>pe(e,"value",l)),e.$on("submit",a[10]),B(e.$$.fragment),I(e.$$.fragment,1),z(e,i.parentNode,i)):e=null}else o&&e.$set(f)},i(a){s||(e&&I(e.$$.fragment,a),s=!0)},o(a){e&&P(e.$$.fragment,a),s=!1},d(a){a&&w(i),e&&H(e,a)}}}function lf(n){let e,t,i;return{c(){e=y("button"),e.innerHTML='Search',m(e,"type","submit"),m(e,"class","btn btn-expanded btn-sm btn-warning")},m(s,l){S(s,e,l),i=!0},i(s){i||(s&&et(()=>{i&&(t||(t=Ve(e,ci,{duration:150,x:5},!0)),t.run(1))}),i=!0)},o(s){s&&(t||(t=Ve(e,ci,{duration:150,x:5},!1)),t.run(0)),i=!1},d(s){s&&w(e),s&&t&&t.end()}}}function of(n){let e,t,i,s,l;return{c(){e=y("button"),e.innerHTML='Clear',m(e,"type","button"),m(e,"class","btn btn-transparent btn-sm btn-hint p-l-xs p-r-xs m-l-10")},m(o,r){S(o,e,r),i=!0,s||(l=J(e,"click",n[15]),s=!0)},p:te,i(o){i||(o&&et(()=>{i&&(t||(t=Ve(e,ci,{duration:150,x:5},!0)),t.run(1))}),i=!0)},o(o){o&&(t||(t=Ve(e,ci,{duration:150,x:5},!1)),t.run(0)),i=!1},d(o){o&&w(e),o&&t&&t.end(),s=!1,l()}}}function ok(n){let e,t,i,s,l,o,r,a,u,f,d;const p=[lk,sk],h=[];function g(k,$){return k[4]&&!k[5]?0:1}l=g(n),o=h[l]=p[l](n);let _=(n[0].length||n[7].length)&&n[7]!=n[0]&&lf(),b=(n[0].length||n[7].length)&&of(n);return{c(){e=y("form"),t=y("label"),i=y("i"),s=D(),o.c(),r=D(),_&&_.c(),a=D(),b&&b.c(),m(i,"class","ri-search-line"),m(t,"for",n[8]),m(t,"class","m-l-10 txt-xl"),m(e,"class","searchbar")},m(k,$){S(k,e,$),v(e,t),v(t,i),v(e,s),h[l].m(e,null),v(e,r),_&&_.m(e,null),v(e,a),b&&b.m(e,null),u=!0,f||(d=[J(e,"click",In(n[11])),J(e,"submit",xe(n[10]))],f=!0)},p(k,[$]){let C=l;l=g(k),l===C?h[l].p(k,$):(ue(),P(h[C],1,1,()=>{h[C]=null}),fe(),o=h[l],o?o.p(k,$):(o=h[l]=p[l](k),o.c()),I(o,1),o.m(e,r)),(k[0].length||k[7].length)&&k[7]!=k[0]?_?$&129&&I(_,1):(_=lf(),_.c(),I(_,1),_.m(e,a)):_&&(ue(),P(_,1,1,()=>{_=null}),fe()),k[0].length||k[7].length?b?(b.p(k,$),$&129&&I(b,1)):(b=of(k),b.c(),I(b,1),b.m(e,null)):b&&(ue(),P(b,1,1,()=>{b=null}),fe())},i(k){u||(I(o),I(_),I(b),u=!0)},o(k){P(o),P(_),P(b),u=!1},d(k){k&&w(e),h[l].d(),_&&_.d(),b&&b.d(),f=!1,De(d)}}}function rk(n,e,t){const i=Tt(),s="search_"+W.randomString(7);let{value:l=""}=e,{placeholder:o='Search term or filter like created > "2022-01-01"...'}=e,{autocompleteCollection:r=new kn}=e,{extraAutocompleteKeys:a=[]}=e,u,f=!1,d,p="";function h(O=!0){t(7,p=""),O&&(d==null||d.focus()),i("clear")}function g(){t(0,l=p),i("submit",l)}async function _(){u||f||(t(5,f=!0),t(4,u=(await ut(()=>import("./FilterAutocompleteInput-a7a53af8.js"),["./FilterAutocompleteInput-a7a53af8.js","./index-84ab2e4b.js"],import.meta.url)).default),t(5,f=!1))}Xt(()=>{_()});function b(O){he.call(this,n,O)}function k(O){p=O,t(7,p),t(0,l)}function $(O){ne[O?"unshift":"push"](()=>{d=O,t(6,d)})}function C(){p=this.value,t(7,p),t(0,l)}const T=()=>{h(!1),g()};return n.$$set=O=>{"value"in O&&t(0,l=O.value),"placeholder"in O&&t(1,o=O.placeholder),"autocompleteCollection"in O&&t(2,r=O.autocompleteCollection),"extraAutocompleteKeys"in O&&t(3,a=O.extraAutocompleteKeys)},n.$$.update=()=>{n.$$.dirty&1&&typeof l=="string"&&t(7,p=l)},[l,o,r,a,u,f,d,p,s,h,g,b,k,$,C,T]}class Jo extends ve{constructor(e){super(),be(this,e,rk,ok,_e,{value:0,placeholder:1,autocompleteCollection:2,extraAutocompleteKeys:3})}}function ak(n){let e,t,i,s,l,o;return{c(){e=y("button"),t=y("i"),m(t,"class","ri-refresh-line svelte-1bvelc2"),m(e,"type","button"),m(e,"aria-label","Refresh"),m(e,"class",i="btn btn-transparent btn-circle "+n[1]+" svelte-1bvelc2"),Q(e,"refreshing",n[2])},m(r,a){S(r,e,a),v(e,t),l||(o=[Ee(s=Be.call(null,e,n[0])),J(e,"click",n[3])],l=!0)},p(r,[a]){a&2&&i!==(i="btn btn-transparent btn-circle "+r[1]+" svelte-1bvelc2")&&m(e,"class",i),s&&jt(s.update)&&a&1&&s.update.call(null,r[0]),a&6&&Q(e,"refreshing",r[2])},i:te,o:te,d(r){r&&w(e),l=!1,De(o)}}}function uk(n,e,t){const i=Tt();let{tooltip:s={text:"Refresh",position:"right"}}=e,{class:l=""}=e,o=null;function r(){i("refresh");const a=s;t(0,s=null),clearTimeout(o),t(2,o=setTimeout(()=>{t(2,o=null),t(0,s=a)},150))}return Xt(()=>()=>clearTimeout(o)),n.$$set=a=>{"tooltip"in a&&t(0,s=a.tooltip),"class"in a&&t(1,l=a.class)},[s,l,o,r]}class Zo extends ve{constructor(e){super(),be(this,e,uk,ak,_e,{tooltip:0,class:1})}}function fk(n){let e,t,i,s,l;const o=n[6].default,r=kt(o,n,n[5],null);return{c(){e=y("th"),r&&r.c(),m(e,"tabindex","0"),m(e,"title",n[2]),m(e,"class",t="col-sort "+n[1]),Q(e,"col-sort-disabled",n[3]),Q(e,"sort-active",n[0]==="-"+n[2]||n[0]==="+"+n[2]),Q(e,"sort-desc",n[0]==="-"+n[2]),Q(e,"sort-asc",n[0]==="+"+n[2])},m(a,u){S(a,e,u),r&&r.m(e,null),i=!0,s||(l=[J(e,"click",n[7]),J(e,"keydown",n[8])],s=!0)},p(a,[u]){r&&r.p&&(!i||u&32)&&St(r,o,a,a[5],i?wt(o,a[5],u,null):$t(a[5]),null),(!i||u&4)&&m(e,"title",a[2]),(!i||u&2&&t!==(t="col-sort "+a[1]))&&m(e,"class",t),(!i||u&10)&&Q(e,"col-sort-disabled",a[3]),(!i||u&7)&&Q(e,"sort-active",a[0]==="-"+a[2]||a[0]==="+"+a[2]),(!i||u&7)&&Q(e,"sort-desc",a[0]==="-"+a[2]),(!i||u&7)&&Q(e,"sort-asc",a[0]==="+"+a[2])},i(a){i||(I(r,a),i=!0)},o(a){P(r,a),i=!1},d(a){a&&w(e),r&&r.d(a),s=!1,De(l)}}}function ck(n,e,t){let{$$slots:i={},$$scope:s}=e,{class:l=""}=e,{name:o}=e,{sort:r=""}=e,{disable:a=!1}=e;function u(){a||("-"+o===r?t(0,r="+"+o):t(0,r="-"+o))}const f=()=>u(),d=p=>{(p.code==="Enter"||p.code==="Space")&&(p.preventDefault(),u())};return n.$$set=p=>{"class"in p&&t(1,l=p.class),"name"in p&&t(2,o=p.name),"sort"in p&&t(0,r=p.sort),"disable"in p&&t(3,a=p.disable),"$$scope"in p&&t(5,s=p.$$scope)},[r,l,o,a,u,s,i,f,d]}class un extends ve{constructor(e){super(),be(this,e,ck,fk,_e,{class:1,name:2,sort:0,disable:3})}}function dk(n){let e;return{c(){e=y("span"),e.textContent="N/A",m(e,"class","txt txt-hint")},m(t,i){S(t,e,i)},p:te,d(t){t&&w(e)}}}function pk(n){let e,t,i,s,l,o,r;return{c(){e=y("div"),t=y("div"),i=Y(n[2]),s=D(),l=y("div"),o=Y(n[1]),r=Y(" UTC"),m(t,"class","date"),m(l,"class","time svelte-zdiknu"),m(e,"class","datetime svelte-zdiknu")},m(a,u){S(a,e,u),v(e,t),v(t,i),v(e,s),v(e,l),v(l,o),v(l,r)},p(a,u){u&4&&le(i,a[2]),u&2&&le(o,a[1])},d(a){a&&w(e)}}}function mk(n){let e;function t(l,o){return l[0]?pk:dk}let i=t(n),s=i(n);return{c(){s.c(),e=we()},m(l,o){s.m(l,o),S(l,e,o)},p(l,[o]){i===(i=t(l))&&s?s.p(l,o):(s.d(1),s=i(l),s&&(s.c(),s.m(e.parentNode,e)))},i:te,o:te,d(l){s.d(l),l&&w(e)}}}function hk(n,e,t){let i,s,{date:l=""}=e;return n.$$set=o=>{"date"in o&&t(0,l=o.date)},n.$$.update=()=>{n.$$.dirty&1&&t(2,i=l?l.substring(0,10):null),n.$$.dirty&1&&t(1,s=l?l.substring(10,19):null)},[l,s,i]}class $i extends ve{constructor(e){super(),be(this,e,hk,mk,_e,{date:0})}}const _k=n=>({}),rf=n=>({}),gk=n=>({}),af=n=>({});function bk(n){let e,t,i,s,l,o,r,a;const u=n[5].before,f=kt(u,n,n[4],af),d=n[5].default,p=kt(d,n,n[4],null),h=n[5].after,g=kt(h,n,n[4],rf);return{c(){e=y("div"),f&&f.c(),t=D(),i=y("div"),p&&p.c(),l=D(),g&&g.c(),m(i,"class",s="horizontal-scroller "+n[0]+" "+n[3]+" svelte-wc2j9h"),m(e,"class","horizontal-scroller-wrapper svelte-wc2j9h")},m(_,b){S(_,e,b),f&&f.m(e,null),v(e,t),v(e,i),p&&p.m(i,null),n[6](i),v(e,l),g&&g.m(e,null),o=!0,r||(a=[J(window,"resize",n[1]),J(i,"scroll",n[1])],r=!0)},p(_,[b]){f&&f.p&&(!o||b&16)&&St(f,u,_,_[4],o?wt(u,_[4],b,gk):$t(_[4]),af),p&&p.p&&(!o||b&16)&&St(p,d,_,_[4],o?wt(d,_[4],b,null):$t(_[4]),null),(!o||b&9&&s!==(s="horizontal-scroller "+_[0]+" "+_[3]+" svelte-wc2j9h"))&&m(i,"class",s),g&&g.p&&(!o||b&16)&&St(g,h,_,_[4],o?wt(h,_[4],b,_k):$t(_[4]),rf)},i(_){o||(I(f,_),I(p,_),I(g,_),o=!0)},o(_){P(f,_),P(p,_),P(g,_),o=!1},d(_){_&&w(e),f&&f.d(_),p&&p.d(_),n[6](null),g&&g.d(_),r=!1,De(a)}}}function vk(n,e,t){let{$$slots:i={},$$scope:s}=e,{class:l=""}=e,o=null,r="",a=null,u;function f(){o&&(clearTimeout(a),a=setTimeout(()=>{const p=o.offsetWidth,h=o.scrollWidth;h-p?(t(3,r="scrollable"),o.scrollLeft===0?t(3,r+=" scroll-start"):o.scrollLeft+p==h&&t(3,r+=" scroll-end")):t(3,r="")},100))}Xt(()=>(f(),u=new MutationObserver(()=>{f()}),u.observe(o,{attributeFilter:["width"],childList:!0,subtree:!0}),()=>{u==null||u.disconnect(),clearTimeout(a)}));function d(p){ne[p?"unshift":"push"](()=>{o=p,t(2,o)})}return n.$$set=p=>{"class"in p&&t(0,l=p.class),"$$scope"in p&&t(4,s=p.$$scope)},[l,f,o,r,s,i,d]}class Va extends ve{constructor(e){super(),be(this,e,vk,bk,_e,{class:0,refresh:1})}get refresh(){return this.$$.ctx[1]}}function uf(n,e,t){const i=n.slice();return i[23]=e[t],i}function yk(n){let e;return{c(){e=y("div"),e.innerHTML=` Method`,m(e,"class","col-header-content")},m(t,i){S(t,e,i)},p:te,d(t){t&&w(e)}}}function kk(n){let e,t,i,s;return{c(){e=y("div"),t=y("i"),i=D(),s=y("span"),s.textContent="URL",m(t,"class",W.getFieldTypeIcon("url")),m(s,"class","txt"),m(e,"class","col-header-content")},m(l,o){S(l,e,o),v(e,t),v(e,i),v(e,s)},p:te,d(l){l&&w(e)}}}function wk(n){let e,t,i,s;return{c(){e=y("div"),t=y("i"),i=D(),s=y("span"),s.textContent="Referer",m(t,"class",W.getFieldTypeIcon("url")),m(s,"class","txt"),m(e,"class","col-header-content")},m(l,o){S(l,e,o),v(e,t),v(e,i),v(e,s)},p:te,d(l){l&&w(e)}}}function Sk(n){let e,t,i,s;return{c(){e=y("div"),t=y("i"),i=D(),s=y("span"),s.textContent="User IP",m(t,"class",W.getFieldTypeIcon("number")),m(s,"class","txt"),m(e,"class","col-header-content")},m(l,o){S(l,e,o),v(e,t),v(e,i),v(e,s)},p:te,d(l){l&&w(e)}}}function $k(n){let e,t,i,s;return{c(){e=y("div"),t=y("i"),i=D(),s=y("span"),s.textContent="Status",m(t,"class",W.getFieldTypeIcon("number")),m(s,"class","txt"),m(e,"class","col-header-content")},m(l,o){S(l,e,o),v(e,t),v(e,i),v(e,s)},p:te,d(l){l&&w(e)}}}function Tk(n){let e,t,i,s;return{c(){e=y("div"),t=y("i"),i=D(),s=y("span"),s.textContent="Created",m(t,"class",W.getFieldTypeIcon("date")),m(s,"class","txt"),m(e,"class","col-header-content")},m(l,o){S(l,e,o),v(e,t),v(e,i),v(e,s)},p:te,d(l){l&&w(e)}}}function ff(n){let e;function t(l,o){return l[6]?Mk:Ck}let i=t(n),s=i(n);return{c(){s.c(),e=we()},m(l,o){s.m(l,o),S(l,e,o)},p(l,o){i===(i=t(l))&&s?s.p(l,o):(s.d(1),s=i(l),s&&(s.c(),s.m(e.parentNode,e)))},d(l){s.d(l),l&&w(e)}}}function Ck(n){var r;let e,t,i,s,l,o=((r=n[0])==null?void 0:r.length)&&cf(n);return{c(){e=y("tr"),t=y("td"),i=y("h6"),i.textContent="No logs found.",s=D(),o&&o.c(),l=D(),m(t,"colspan","99"),m(t,"class","txt-center txt-hint p-xs")},m(a,u){S(a,e,u),v(e,t),v(t,i),v(t,s),o&&o.m(t,null),v(e,l)},p(a,u){var f;(f=a[0])!=null&&f.length?o?o.p(a,u):(o=cf(a),o.c(),o.m(t,null)):o&&(o.d(1),o=null)},d(a){a&&w(e),o&&o.d()}}}function Mk(n){let e;return{c(){e=y("tr"),e.innerHTML=` `},m(t,i){S(t,e,i)},p:te,d(t){t&&w(e)}}}function cf(n){let e,t,i;return{c(){e=y("button"),e.innerHTML='Clear filters',m(e,"type","button"),m(e,"class","btn btn-hint btn-expanded m-t-sm")},m(s,l){S(s,e,l),t||(i=J(e,"click",n[19]),t=!0)},p:te,d(s){s&&w(e),t=!1,i()}}}function df(n){let e;return{c(){e=y("i"),m(e,"class","ri-error-warning-line txt-danger m-l-5 m-r-5"),m(e,"title","Error")},m(t,i){S(t,e,i)},d(t){t&&w(e)}}}function pf(n,e){var Oe,Ge,_t;let t,i,s,l=((Oe=e[23].method)==null?void 0:Oe.toUpperCase())+"",o,r,a,u,f,d=e[23].url+"",p,h,g,_,b,k,$=(e[23].referer||"N/A")+"",C,T,O,M,E,A=(e[23].userIp||"N/A")+"",L,N,q,F,R,V=e[23].status+"",j,U,x,X,Z,oe,ee,se,ye,$e,ze=(((Ge=e[23].meta)==null?void 0:Ge.errorMessage)||((_t=e[23].meta)==null?void 0:_t.errorData))&&df();X=new $i({props:{date:e[23].created}});function Ue(){return e[17](e[23])}function Se(...Xe){return e[18](e[23],...Xe)}return{key:n,first:null,c(){t=y("tr"),i=y("td"),s=y("span"),o=Y(l),a=D(),u=y("td"),f=y("span"),p=Y(d),g=D(),ze&&ze.c(),_=D(),b=y("td"),k=y("span"),C=Y($),O=D(),M=y("td"),E=y("span"),L=Y(A),q=D(),F=y("td"),R=y("span"),j=Y(V),U=D(),x=y("td"),B(X.$$.fragment),Z=D(),oe=y("td"),oe.innerHTML='',ee=D(),m(s,"class",r="label txt-uppercase "+e[9][e[23].method.toLowerCase()]),m(i,"class","col-type-text col-field-method min-width"),m(f,"class","txt txt-ellipsis"),m(f,"title",h=e[23].url),m(u,"class","col-type-text col-field-url"),m(k,"class","txt txt-ellipsis"),m(k,"title",T=e[23].referer),Q(k,"txt-hint",!e[23].referer),m(b,"class","col-type-text col-field-referer"),m(E,"class","txt txt-ellipsis"),m(E,"title",N=e[23].userIp),Q(E,"txt-hint",!e[23].userIp),m(M,"class","col-type-number col-field-userIp"),m(R,"class","label"),Q(R,"label-danger",e[23].status>=400),m(F,"class","col-type-number col-field-status"),m(x,"class","col-type-date col-field-created"),m(oe,"class","col-type-action min-width"),m(t,"tabindex","0"),m(t,"class","row-handle"),this.first=t},m(Xe,Ke){S(Xe,t,Ke),v(t,i),v(i,s),v(s,o),v(t,a),v(t,u),v(u,f),v(f,p),v(u,g),ze&&ze.m(u,null),v(t,_),v(t,b),v(b,k),v(k,C),v(t,O),v(t,M),v(M,E),v(E,L),v(t,q),v(t,F),v(F,R),v(R,j),v(t,U),v(t,x),z(X,x,null),v(t,Z),v(t,oe),v(t,ee),se=!0,ye||($e=[J(t,"click",Ue),J(t,"keydown",Se)],ye=!0)},p(Xe,Ke){var ce,He,At;e=Xe,(!se||Ke&8)&&l!==(l=((ce=e[23].method)==null?void 0:ce.toUpperCase())+"")&&le(o,l),(!se||Ke&8&&r!==(r="label txt-uppercase "+e[9][e[23].method.toLowerCase()]))&&m(s,"class",r),(!se||Ke&8)&&d!==(d=e[23].url+"")&&le(p,d),(!se||Ke&8&&h!==(h=e[23].url))&&m(f,"title",h),(He=e[23].meta)!=null&&He.errorMessage||(At=e[23].meta)!=null&&At.errorData?ze||(ze=df(),ze.c(),ze.m(u,null)):ze&&(ze.d(1),ze=null),(!se||Ke&8)&&$!==($=(e[23].referer||"N/A")+"")&&le(C,$),(!se||Ke&8&&T!==(T=e[23].referer))&&m(k,"title",T),(!se||Ke&8)&&Q(k,"txt-hint",!e[23].referer),(!se||Ke&8)&&A!==(A=(e[23].userIp||"N/A")+"")&&le(L,A),(!se||Ke&8&&N!==(N=e[23].userIp))&&m(E,"title",N),(!se||Ke&8)&&Q(E,"txt-hint",!e[23].userIp),(!se||Ke&8)&&V!==(V=e[23].status+"")&&le(j,V),(!se||Ke&8)&&Q(R,"label-danger",e[23].status>=400);const Te={};Ke&8&&(Te.date=e[23].created),X.$set(Te)},i(Xe){se||(I(X.$$.fragment,Xe),se=!0)},o(Xe){P(X.$$.fragment,Xe),se=!1},d(Xe){Xe&&w(t),ze&&ze.d(),H(X),ye=!1,De($e)}}}function Ok(n){let e,t,i,s,l,o,r,a,u,f,d,p,h,g,_,b,k,$,C,T,O,M,E,A,L=[],N=new Map,q;function F(Se){n[11](Se)}let R={disable:!0,class:"col-field-method",name:"method",$$slots:{default:[yk]},$$scope:{ctx:n}};n[1]!==void 0&&(R.sort=n[1]),s=new un({props:R}),ne.push(()=>pe(s,"sort",F));function V(Se){n[12](Se)}let j={disable:!0,class:"col-type-text col-field-url",name:"url",$$slots:{default:[kk]},$$scope:{ctx:n}};n[1]!==void 0&&(j.sort=n[1]),r=new un({props:j}),ne.push(()=>pe(r,"sort",V));function U(Se){n[13](Se)}let x={disable:!0,class:"col-type-text col-field-referer",name:"referer",$$slots:{default:[wk]},$$scope:{ctx:n}};n[1]!==void 0&&(x.sort=n[1]),f=new un({props:x}),ne.push(()=>pe(f,"sort",U));function X(Se){n[14](Se)}let Z={disable:!0,class:"col-type-number col-field-userIp",name:"userIp",$$slots:{default:[Sk]},$$scope:{ctx:n}};n[1]!==void 0&&(Z.sort=n[1]),h=new un({props:Z}),ne.push(()=>pe(h,"sort",X));function oe(Se){n[15](Se)}let ee={disable:!0,class:"col-type-number col-field-status",name:"status",$$slots:{default:[$k]},$$scope:{ctx:n}};n[1]!==void 0&&(ee.sort=n[1]),b=new un({props:ee}),ne.push(()=>pe(b,"sort",oe));function se(Se){n[16](Se)}let ye={disable:!0,class:"col-type-date col-field-created",name:"created",$$slots:{default:[Tk]},$$scope:{ctx:n}};n[1]!==void 0&&(ye.sort=n[1]),C=new un({props:ye}),ne.push(()=>pe(C,"sort",se));let $e=n[3];const ze=Se=>Se[23].id;for(let Se=0;Se<$e.length;Se+=1){let Oe=uf(n,$e,Se),Ge=ze(Oe);N.set(Ge,L[Se]=pf(Ge,Oe))}let Ue=null;return $e.length||(Ue=ff(n)),{c(){e=y("table"),t=y("thead"),i=y("tr"),B(s.$$.fragment),o=D(),B(r.$$.fragment),u=D(),B(f.$$.fragment),p=D(),B(h.$$.fragment),_=D(),B(b.$$.fragment),$=D(),B(C.$$.fragment),O=D(),M=y("th"),E=D(),A=y("tbody");for(let Se=0;Sel=!1)),s.$set(Ge);const _t={};Oe&67108864&&(_t.$$scope={dirty:Oe,ctx:Se}),!a&&Oe&2&&(a=!0,_t.sort=Se[1],ge(()=>a=!1)),r.$set(_t);const Xe={};Oe&67108864&&(Xe.$$scope={dirty:Oe,ctx:Se}),!d&&Oe&2&&(d=!0,Xe.sort=Se[1],ge(()=>d=!1)),f.$set(Xe);const Ke={};Oe&67108864&&(Ke.$$scope={dirty:Oe,ctx:Se}),!g&&Oe&2&&(g=!0,Ke.sort=Se[1],ge(()=>g=!1)),h.$set(Ke);const Te={};Oe&67108864&&(Te.$$scope={dirty:Oe,ctx:Se}),!k&&Oe&2&&(k=!0,Te.sort=Se[1],ge(()=>k=!1)),b.$set(Te);const ce={};Oe&67108864&&(ce.$$scope={dirty:Oe,ctx:Se}),!T&&Oe&2&&(T=!0,ce.sort=Se[1],ge(()=>T=!1)),C.$set(ce),Oe&841&&($e=Se[3],ue(),L=yt(L,Oe,ze,1,Se,$e,N,A,Kt,pf,null,uf),fe(),!$e.length&&Ue?Ue.p(Se,Oe):$e.length?Ue&&(Ue.d(1),Ue=null):(Ue=ff(Se),Ue.c(),Ue.m(A,null))),(!q||Oe&64)&&Q(e,"table-loading",Se[6])},i(Se){if(!q){I(s.$$.fragment,Se),I(r.$$.fragment,Se),I(f.$$.fragment,Se),I(h.$$.fragment,Se),I(b.$$.fragment,Se),I(C.$$.fragment,Se);for(let Oe=0;Oe<$e.length;Oe+=1)I(L[Oe]);q=!0}},o(Se){P(s.$$.fragment,Se),P(r.$$.fragment,Se),P(f.$$.fragment,Se),P(h.$$.fragment,Se),P(b.$$.fragment,Se),P(C.$$.fragment,Se);for(let Oe=0;Oe{if(N<=1&&_(),t(6,p=!1),t(5,f=F.page),t(4,d=F.totalItems),s("load",u.concat(F.items)),q){const R=++h;for(;F.items.length&&h==R;)t(3,u=u.concat(F.items.splice(0,10))),await W.yieldToMain()}else t(3,u=u.concat(F.items))}).catch(F=>{F!=null&&F.isAbort||(t(6,p=!1),console.warn(F),_(),de.error(F,!1))})}function _(){t(3,u=[]),t(5,f=1),t(4,d=0)}function b(N){a=N,t(1,a)}function k(N){a=N,t(1,a)}function $(N){a=N,t(1,a)}function C(N){a=N,t(1,a)}function T(N){a=N,t(1,a)}function O(N){a=N,t(1,a)}const M=N=>s("select",N),E=(N,q)=>{q.code==="Enter"&&(q.preventDefault(),s("select",N))},A=()=>t(0,o=""),L=()=>g(f+1);return n.$$set=N=>{"filter"in N&&t(0,o=N.filter),"presets"in N&&t(10,r=N.presets),"sort"in N&&t(1,a=N.sort)},n.$$.update=()=>{n.$$.dirty&1027&&(typeof a<"u"||typeof o<"u"||typeof r<"u")&&(_(),g(1)),n.$$.dirty&24&&t(7,i=d>u.length)},[o,a,g,u,d,f,p,i,s,l,r,b,k,$,C,T,O,M,E,A,L]}class Ak extends ve{constructor(e){super(),be(this,e,Dk,Ek,_e,{filter:0,presets:10,sort:1,load:2})}get load(){return this.$$.ctx[2]}}/*! * Chart.js v3.9.1 @@ -49,7 +49,7 @@ `),b.hasAttribute("data-start")||b.setAttribute("data-start",String(L+1))}k.textContent=M,t.highlightElement(k)},function(M){b.setAttribute(r,f),k.textContent=M})}}),t.plugins.fileHighlight={highlight:function(b){for(var k=(b||document).querySelectorAll(d),$=0,C;C=k[$++];)t.highlightElement(C)}};var g=!1;t.fileHighlight=function(){g||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),g=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(g1);var m$=g1.exports;const el=p$(m$);var h$={exports:{}};(function(n){(function(){if(typeof Prism>"u")return;var e=Object.assign||function(o,r){for(var a in r)r.hasOwnProperty(a)&&(o[a]=r[a]);return o};function t(o){this.defaults=e({},o)}function i(o){return o.replace(/-(\w)/g,function(r,a){return a.toUpperCase()})}function s(o){for(var r=0,a=0;ar&&(f[p]=` `+f[p],d=h)}a[u]=f.join("")}return a.join(` -`)}},n.exports&&(n.exports=t),Prism.plugins.NormalizeWhitespace=new t({"remove-trailing":!0,"remove-indent":!0,"left-trim":!0,"right-trim":!0}),Prism.hooks.add("before-sanity-check",function(o){var r=Prism.plugins.NormalizeWhitespace;if(!(o.settings&&o.settings["whitespace-normalization"]===!1)&&Prism.util.isActive(o.element,"whitespace-normalization",!0)){if((!o.element||!o.element.parentNode)&&o.code){o.code=r.normalize(o.code,o.settings);return}var a=o.element.parentNode;if(!(!o.code||!a||a.nodeName.toLowerCase()!=="pre")){o.settings==null&&(o.settings={});for(var u in l)if(Object.hasOwnProperty.call(l,u)){var f=l[u];if(a.hasAttribute("data-"+u))try{var d=JSON.parse(a.getAttribute("data-"+u)||"true");typeof d===f&&(o.settings[u]=d)}catch{}}for(var p=a.childNodes,h="",g="",_=!1,b=0;b>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),n.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:n.languages.dart}}},string:/[\s\S]+/}},string:void 0}),n.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),n.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":i,keyword:e,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})})(Prism);function _$(n){let e,t,i;return{c(){e=y("div"),t=y("code"),m(t,"class","svelte-10s5tkd"),m(e,"class",i="code-wrapper prism-light "+n[0]+" svelte-10s5tkd")},m(s,l){S(s,e,l),v(e,t),t.innerHTML=n[1]},p(s,[l]){l&2&&(t.innerHTML=s[1]),l&1&&i!==(i="code-wrapper prism-light "+s[0]+" svelte-10s5tkd")&&m(e,"class",i)},i:te,o:te,d(s){s&&w(e)}}}function g$(n,e,t){let{class:i=""}=e,{content:s=""}=e,{language:l="javascript"}=e,o="";function r(a){return a=typeof a=="string"?a:"",a=el.plugins.NormalizeWhitespace.normalize(a,{"remove-trailing":!0,"remove-indent":!0,"left-trim":!0,"right-trim":!0}),el.highlight(a,el.languages[l]||el.languages.javascript,l)}return n.$$set=a=>{"class"in a&&t(0,i=a.class),"content"in a&&t(2,s=a.content),"language"in a&&t(3,l=a.language)},n.$$.update=()=>{n.$$.dirty&4&&typeof el<"u"&&s&&t(1,o=r(s))},[i,o,s,l]}class b1 extends ve{constructor(e){super(),be(this,e,g$,_$,_e,{class:0,content:2,language:3})}}const b$=n=>({}),Dc=n=>({}),v$=n=>({}),Ac=n=>({});function Ic(n){let e,t,i,s,l,o,r,a,u,f,d,p,h,g,_,b,k,$,C=n[4]&&!n[2]&&Lc(n);const T=n[19].header,O=kt(T,n,n[18],Ac);let M=n[4]&&n[2]&&Pc(n);const E=n[19].default,A=kt(E,n,n[18],null),L=n[19].footer,N=kt(L,n,n[18],Dc);return{c(){e=y("div"),t=y("div"),s=D(),l=y("div"),o=y("div"),C&&C.c(),r=D(),O&&O.c(),a=D(),M&&M.c(),u=D(),f=y("div"),A&&A.c(),d=D(),p=y("div"),N&&N.c(),m(t,"class","overlay"),m(o,"class","overlay-panel-section panel-header"),m(f,"class","overlay-panel-section panel-content"),m(p,"class","overlay-panel-section panel-footer"),m(l,"class",h="overlay-panel "+n[1]+" "+n[8]),Q(l,"popup",n[2]),m(e,"class","overlay-panel-container"),Q(e,"padded",n[2]),Q(e,"active",n[0])},m(q,F){S(q,e,F),v(e,t),v(e,s),v(e,l),v(l,o),C&&C.m(o,null),v(o,r),O&&O.m(o,null),v(o,a),M&&M.m(o,null),v(l,u),v(l,f),A&&A.m(f,null),n[21](f),v(l,d),v(l,p),N&&N.m(p,null),b=!0,k||($=[J(t,"click",xe(n[20])),J(f,"scroll",n[22])],k=!0)},p(q,F){n=q,n[4]&&!n[2]?C?C.p(n,F):(C=Lc(n),C.c(),C.m(o,r)):C&&(C.d(1),C=null),O&&O.p&&(!b||F[0]&262144)&&St(O,T,n,n[18],b?wt(T,n[18],F,v$):$t(n[18]),Ac),n[4]&&n[2]?M?M.p(n,F):(M=Pc(n),M.c(),M.m(o,null)):M&&(M.d(1),M=null),A&&A.p&&(!b||F[0]&262144)&&St(A,E,n,n[18],b?wt(E,n[18],F,null):$t(n[18]),null),N&&N.p&&(!b||F[0]&262144)&&St(N,L,n,n[18],b?wt(L,n[18],F,b$):$t(n[18]),Dc),(!b||F[0]&258&&h!==(h="overlay-panel "+n[1]+" "+n[8]))&&m(l,"class",h),(!b||F[0]&262)&&Q(l,"popup",n[2]),(!b||F[0]&4)&&Q(e,"padded",n[2]),(!b||F[0]&1)&&Q(e,"active",n[0])},i(q){b||(q&&et(()=>{b&&(i||(i=Ve(t,na,{duration:ks,opacity:0},!0)),i.run(1))}),I(O,q),I(A,q),I(N,q),et(()=>{b&&(_&&_.end(1),g=ag(l,ci,n[2]?{duration:ks,y:-10}:{duration:ks,x:50}),g.start())}),b=!0)},o(q){q&&(i||(i=Ve(t,na,{duration:ks,opacity:0},!1)),i.run(0)),P(O,q),P(A,q),P(N,q),g&&g.invalidate(),_=Ta(l,ci,n[2]?{duration:ks,y:10}:{duration:ks,x:50}),b=!1},d(q){q&&w(e),q&&i&&i.end(),C&&C.d(),O&&O.d(q),M&&M.d(),A&&A.d(q),n[21](null),N&&N.d(q),q&&_&&_.end(),k=!1,De($)}}}function Lc(n){let e,t,i;return{c(){e=y("button"),e.innerHTML='',m(e,"type","button"),m(e,"class","overlay-close")},m(s,l){S(s,e,l),t||(i=J(e,"click",xe(n[5])),t=!0)},p:te,d(s){s&&w(e),t=!1,i()}}}function Pc(n){let e,t,i;return{c(){e=y("button"),e.innerHTML='',m(e,"type","button"),m(e,"class","btn btn-sm btn-circle btn-transparent btn-close m-l-auto")},m(s,l){S(s,e,l),t||(i=J(e,"click",xe(n[5])),t=!0)},p:te,d(s){s&&w(e),t=!1,i()}}}function y$(n){let e,t,i,s,l=n[0]&&Ic(n);return{c(){e=y("div"),l&&l.c(),m(e,"class","overlay-panel-wrapper"),m(e,"tabindex","-1")},m(o,r){S(o,e,r),l&&l.m(e,null),n[23](e),t=!0,i||(s=[J(window,"resize",n[10]),J(window,"keydown",n[9])],i=!0)},p(o,r){o[0]?l?(l.p(o,r),r[0]&1&&I(l,1)):(l=Ic(o),l.c(),I(l,1),l.m(e,null)):l&&(ue(),P(l,1,1,()=>{l=null}),fe())},i(o){t||(I(l),t=!0)},o(o){P(l),t=!1},d(o){o&&w(e),l&&l.d(),n[23](null),i=!1,De(s)}}}let Gi,Er=[];function v1(){return Gi=Gi||document.querySelector(".overlays"),Gi||(Gi=document.createElement("div"),Gi.classList.add("overlays"),document.body.appendChild(Gi)),Gi}let ks=150;function Nc(){return 1e3+v1().querySelectorAll(".overlay-panel-container.active").length}function k$(n,e,t){let{$$slots:i={},$$scope:s}=e,{class:l=""}=e,{active:o=!1}=e,{popup:r=!1}=e,{overlayClose:a=!0}=e,{btnClose:u=!0}=e,{escClose:f=!0}=e,{beforeOpen:d=void 0}=e,{beforeHide:p=void 0}=e;const h=Tt(),g="op_"+W.randomString(10);let _,b,k,$,C="",T=o;function O(){typeof d=="function"&&d()===!1||t(0,o=!0)}function M(){typeof p=="function"&&p()===!1||t(0,o=!1)}function E(){return o}async function A(Z){t(17,T=Z),Z?(k=document.activeElement,h("show"),_==null||_.focus()):(clearTimeout($),h("hide"),k==null||k.focus()),await cn(),L()}function L(){_&&(o?t(6,_.style.zIndex=Nc(),_):t(6,_.style="",_))}function N(){W.pushUnique(Er,g),document.body.classList.add("overlay-active")}function q(){W.removeByValue(Er,g),Er.length||document.body.classList.remove("overlay-active")}function F(Z){o&&f&&Z.code=="Escape"&&!W.isInput(Z.target)&&_&&_.style.zIndex==Nc()&&(Z.preventDefault(),M())}function R(Z){o&&V(b)}function V(Z,oe){oe&&t(8,C=""),Z&&($||($=setTimeout(()=>{if(clearTimeout($),$=null,!Z)return;if(Z.scrollHeight-Z.offsetHeight>0)t(8,C="scrollable");else{t(8,C="");return}Z.scrollTop==0?t(8,C+=" scroll-top-reached"):Z.scrollTop+Z.offsetHeight==Z.scrollHeight&&t(8,C+=" scroll-bottom-reached")},100)))}Xt(()=>(v1().appendChild(_),()=>{var Z;clearTimeout($),q(),(Z=_==null?void 0:_.classList)==null||Z.add("hidden"),setTimeout(()=>{_==null||_.remove()},0)}));const j=()=>a?M():!0;function U(Z){ne[Z?"unshift":"push"](()=>{b=Z,t(7,b)})}const x=Z=>V(Z.target);function X(Z){ne[Z?"unshift":"push"](()=>{_=Z,t(6,_)})}return n.$$set=Z=>{"class"in Z&&t(1,l=Z.class),"active"in Z&&t(0,o=Z.active),"popup"in Z&&t(2,r=Z.popup),"overlayClose"in Z&&t(3,a=Z.overlayClose),"btnClose"in Z&&t(4,u=Z.btnClose),"escClose"in Z&&t(12,f=Z.escClose),"beforeOpen"in Z&&t(13,d=Z.beforeOpen),"beforeHide"in Z&&t(14,p=Z.beforeHide),"$$scope"in Z&&t(18,s=Z.$$scope)},n.$$.update=()=>{n.$$.dirty[0]&131073&&T!=o&&A(o),n.$$.dirty[0]&128&&V(b,!0),n.$$.dirty[0]&64&&_&&L(),n.$$.dirty[0]&1&&(o?N():q())},[o,l,r,a,u,M,_,b,C,F,R,V,f,d,p,O,E,T,s,i,j,U,x,X]}class on extends ve{constructor(e){super(),be(this,e,k$,y$,_e,{class:1,active:0,popup:2,overlayClose:3,btnClose:4,escClose:12,beforeOpen:13,beforeHide:14,show:15,hide:5,isActive:16},null,[-1,-1])}get show(){return this.$$.ctx[15]}get hide(){return this.$$.ctx[5]}get isActive(){return this.$$.ctx[16]}}function w$(n){let e;return{c(){e=y("span"),e.textContent="N/A",m(e,"class","txt-hint")},m(t,i){S(t,e,i)},p:te,d(t){t&&w(e)}}}function S$(n){let e,t=n[2].referer+"",i,s;return{c(){e=y("a"),i=Y(t),m(e,"href",s=n[2].referer),m(e,"target","_blank"),m(e,"rel","noopener noreferrer")},m(l,o){S(l,e,o),v(e,i)},p(l,o){o&4&&t!==(t=l[2].referer+"")&&le(i,t),o&4&&s!==(s=l[2].referer)&&m(e,"href",s)},d(l){l&&w(e)}}}function $$(n){let e;return{c(){e=y("span"),e.textContent="N/A",m(e,"class","txt-hint")},m(t,i){S(t,e,i)},p:te,i:te,o:te,d(t){t&&w(e)}}}function T$(n){let e,t,i;return t=new b1({props:{content:JSON.stringify(n[2].meta,null,2)}}),{c(){e=y("div"),B(t.$$.fragment),m(e,"class","block")},m(s,l){S(s,e,l),z(t,e,null),i=!0},p(s,l){const o={};l&4&&(o.content=JSON.stringify(s[2].meta,null,2)),t.$set(o)},i(s){i||(I(t.$$.fragment,s),i=!0)},o(s){P(t.$$.fragment,s),i=!1},d(s){s&&w(e),H(t)}}}function C$(n){var Pe;let e,t,i,s,l,o,r=n[2].id+"",a,u,f,d,p,h,g,_=n[2].status+"",b,k,$,C,T,O,M=((Pe=n[2].method)==null?void 0:Pe.toUpperCase())+"",E,A,L,N,q,F,R=n[2].auth+"",V,j,U,x,X,Z,oe=n[2].url+"",ee,se,ye,$e,ze,Ue,Se,Oe,Ge,_t,Xe,Ke=n[2].remoteIp+"",Te,ce,He,At,Ne,Ce,it=n[2].userIp+"",It,Vt,Ut,Pn,ti,$n,gt=n[2].userAgent+"",Nn,ps,ni,Oi,ms,mi,ke,Ie,Re,Qe,Et,Tn,Fn,Ui,sn,dn;function Rl(Fe,Ae){return Fe[2].referer?S$:w$}let K=Rl(n),G=K(n);const ie=[T$,$$],re=[];function Me(Fe,Ae){return Ae&4&&(ke=null),ke==null&&(ke=!W.isEmpty(Fe[2].meta)),ke?0:1}return Ie=Me(n,-1),Re=re[Ie]=ie[Ie](n),sn=new $i({props:{date:n[2].created}}),{c(){e=y("table"),t=y("tbody"),i=y("tr"),s=y("td"),s.textContent="ID",l=D(),o=y("td"),a=Y(r),u=D(),f=y("tr"),d=y("td"),d.textContent="Status",p=D(),h=y("td"),g=y("span"),b=Y(_),k=D(),$=y("tr"),C=y("td"),C.textContent="Method",T=D(),O=y("td"),E=Y(M),A=D(),L=y("tr"),N=y("td"),N.textContent="Auth",q=D(),F=y("td"),V=Y(R),j=D(),U=y("tr"),x=y("td"),x.textContent="URL",X=D(),Z=y("td"),ee=Y(oe),se=D(),ye=y("tr"),$e=y("td"),$e.textContent="Referer",ze=D(),Ue=y("td"),G.c(),Se=D(),Oe=y("tr"),Ge=y("td"),Ge.textContent="Remote IP",_t=D(),Xe=y("td"),Te=Y(Ke),ce=D(),He=y("tr"),At=y("td"),At.textContent="User IP",Ne=D(),Ce=y("td"),It=Y(it),Vt=D(),Ut=y("tr"),Pn=y("td"),Pn.textContent="UserAgent",ti=D(),$n=y("td"),Nn=Y(gt),ps=D(),ni=y("tr"),Oi=y("td"),Oi.textContent="Meta",ms=D(),mi=y("td"),Re.c(),Qe=D(),Et=y("tr"),Tn=y("td"),Tn.textContent="Created",Fn=D(),Ui=y("td"),B(sn.$$.fragment),m(s,"class","min-width txt-hint txt-bold"),m(d,"class","min-width txt-hint txt-bold"),m(g,"class","label"),Q(g,"label-danger",n[2].status>=400),m(C,"class","min-width txt-hint txt-bold"),m(N,"class","min-width txt-hint txt-bold"),m(x,"class","min-width txt-hint txt-bold"),m($e,"class","min-width txt-hint txt-bold"),m(Ge,"class","min-width txt-hint txt-bold"),m(At,"class","min-width txt-hint txt-bold"),m(Pn,"class","min-width txt-hint txt-bold"),m(Oi,"class","min-width txt-hint txt-bold"),m(Tn,"class","min-width txt-hint txt-bold"),m(e,"class","table-border")},m(Fe,Ae){S(Fe,e,Ae),v(e,t),v(t,i),v(i,s),v(i,l),v(i,o),v(o,a),v(t,u),v(t,f),v(f,d),v(f,p),v(f,h),v(h,g),v(g,b),v(t,k),v(t,$),v($,C),v($,T),v($,O),v(O,E),v(t,A),v(t,L),v(L,N),v(L,q),v(L,F),v(F,V),v(t,j),v(t,U),v(U,x),v(U,X),v(U,Z),v(Z,ee),v(t,se),v(t,ye),v(ye,$e),v(ye,ze),v(ye,Ue),G.m(Ue,null),v(t,Se),v(t,Oe),v(Oe,Ge),v(Oe,_t),v(Oe,Xe),v(Xe,Te),v(t,ce),v(t,He),v(He,At),v(He,Ne),v(He,Ce),v(Ce,It),v(t,Vt),v(t,Ut),v(Ut,Pn),v(Ut,ti),v(Ut,$n),v($n,Nn),v(t,ps),v(t,ni),v(ni,Oi),v(ni,ms),v(ni,mi),re[Ie].m(mi,null),v(t,Qe),v(t,Et),v(Et,Tn),v(Et,Fn),v(Et,Ui),z(sn,Ui,null),dn=!0},p(Fe,Ae){var Ye;(!dn||Ae&4)&&r!==(r=Fe[2].id+"")&&le(a,r),(!dn||Ae&4)&&_!==(_=Fe[2].status+"")&&le(b,_),(!dn||Ae&4)&&Q(g,"label-danger",Fe[2].status>=400),(!dn||Ae&4)&&M!==(M=((Ye=Fe[2].method)==null?void 0:Ye.toUpperCase())+"")&&le(E,M),(!dn||Ae&4)&&R!==(R=Fe[2].auth+"")&&le(V,R),(!dn||Ae&4)&&oe!==(oe=Fe[2].url+"")&&le(ee,oe),K===(K=Rl(Fe))&&G?G.p(Fe,Ae):(G.d(1),G=K(Fe),G&&(G.c(),G.m(Ue,null))),(!dn||Ae&4)&&Ke!==(Ke=Fe[2].remoteIp+"")&&le(Te,Ke),(!dn||Ae&4)&&it!==(it=Fe[2].userIp+"")&&le(It,it),(!dn||Ae&4)&>!==(gt=Fe[2].userAgent+"")&&le(Nn,gt);let Je=Ie;Ie=Me(Fe,Ae),Ie===Je?re[Ie].p(Fe,Ae):(ue(),P(re[Je],1,1,()=>{re[Je]=null}),fe(),Re=re[Ie],Re?Re.p(Fe,Ae):(Re=re[Ie]=ie[Ie](Fe),Re.c()),I(Re,1),Re.m(mi,null));const qe={};Ae&4&&(qe.date=Fe[2].created),sn.$set(qe)},i(Fe){dn||(I(Re),I(sn.$$.fragment,Fe),dn=!0)},o(Fe){P(Re),P(sn.$$.fragment,Fe),dn=!1},d(Fe){Fe&&w(e),G.d(),re[Ie].d(),H(sn)}}}function M$(n){let e;return{c(){e=y("h4"),e.textContent="Request log"},m(t,i){S(t,e,i)},p:te,d(t){t&&w(e)}}}function O$(n){let e,t,i;return{c(){e=y("button"),e.innerHTML='Close',m(e,"type","button"),m(e,"class","btn btn-transparent")},m(s,l){S(s,e,l),t||(i=J(e,"click",n[4]),t=!0)},p:te,d(s){s&&w(e),t=!1,i()}}}function E$(n){let e,t,i={class:"overlay-panel-lg log-panel",$$slots:{footer:[O$],header:[M$],default:[C$]},$$scope:{ctx:n}};return e=new on({props:i}),n[5](e),e.$on("hide",n[6]),e.$on("show",n[7]),{c(){B(e.$$.fragment)},m(s,l){z(e,s,l),t=!0},p(s,[l]){const o={};l&260&&(o.$$scope={dirty:l,ctx:s}),e.$set(o)},i(s){t||(I(e.$$.fragment,s),t=!0)},o(s){P(e.$$.fragment,s),t=!1},d(s){n[5](null),H(e,s)}}}function D$(n,e,t){let i,s=new Kr;function l(d){return t(2,s=d),i==null?void 0:i.show()}function o(){return i==null?void 0:i.hide()}const r=()=>o();function a(d){ne[d?"unshift":"push"](()=>{i=d,t(1,i)})}function u(d){he.call(this,n,d)}function f(d){he.call(this,n,d)}return[o,i,s,l,r,a,u,f]}class A$ extends ve{constructor(e){super(),be(this,e,D$,E$,_e,{show:3,hide:0})}get show(){return this.$$.ctx[3]}get hide(){return this.$$.ctx[0]}}function I$(n){let e,t,i,s,l,o,r,a;return{c(){e=y("input"),i=D(),s=y("label"),l=Y("Include requests by admins"),m(e,"type","checkbox"),m(e,"id",t=n[14]),m(s,"for",o=n[14])},m(u,f){S(u,e,f),e.checked=n[1],S(u,i,f),S(u,s,f),v(s,l),r||(a=J(e,"change",n[10]),r=!0)},p(u,f){f&16384&&t!==(t=u[14])&&m(e,"id",t),f&2&&(e.checked=u[1]),f&16384&&o!==(o=u[14])&&m(s,"for",o)},d(u){u&&w(e),u&&w(i),u&&w(s),r=!1,a()}}}function Fc(n){let e,t;return e=new d$({props:{filter:n[4],presets:n[5]}}),{c(){B(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p(i,s){const l={};s&16&&(l.filter=i[4]),s&32&&(l.presets=i[5]),e.$set(l)},i(i){t||(I(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){H(e,i)}}}function Rc(n){let e,t;return e=new Ak({props:{filter:n[4],presets:n[5]}}),e.$on("select",n[12]),{c(){B(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p(i,s){const l={};s&16&&(l.filter=i[4]),s&32&&(l.presets=i[5]),e.$set(l)},i(i){t||(I(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){H(e,i)}}}function L$(n){let e,t,i,s,l,o,r,a,u,f,d,p,h,g,_,b,k,$=n[3],C,T=n[3],O,M;r=new Zo({}),r.$on("refresh",n[9]),p=new me({props:{class:"form-field form-field-toggle m-0",$$slots:{default:[I$,({uniqueId:L})=>({14:L}),({uniqueId:L})=>L?16384:0]},$$scope:{ctx:n}}}),g=new Jo({props:{value:n[0],placeholder:"Search term or filter like status >= 400",extraAutocompleteKeys:n[7]}}),g.$on("submit",n[11]);let E=Fc(n),A=Rc(n);return{c(){e=y("div"),t=y("header"),i=y("nav"),s=y("div"),l=Y(n[6]),o=D(),B(r.$$.fragment),a=D(),u=y("div"),f=D(),d=y("div"),B(p.$$.fragment),h=D(),B(g.$$.fragment),_=D(),b=y("div"),k=D(),E.c(),C=D(),A.c(),O=we(),m(s,"class","breadcrumb-item"),m(i,"class","breadcrumbs"),m(u,"class","flex-fill"),m(d,"class","inline-flex"),m(t,"class","page-header"),m(b,"class","clearfix m-b-base"),m(e,"class","page-header-wrapper m-b-0")},m(L,N){S(L,e,N),v(e,t),v(t,i),v(i,s),v(s,l),v(t,o),z(r,t,null),v(t,a),v(t,u),v(t,f),v(t,d),z(p,d,null),v(e,h),z(g,e,null),v(e,_),v(e,b),v(e,k),E.m(e,null),S(L,C,N),A.m(L,N),S(L,O,N),M=!0},p(L,N){(!M||N&64)&&le(l,L[6]);const q={};N&49154&&(q.$$scope={dirty:N,ctx:L}),p.$set(q);const F={};N&1&&(F.value=L[0]),g.$set(F),N&8&&_e($,$=L[3])?(ue(),P(E,1,1,te),fe(),E=Fc(L),E.c(),I(E,1),E.m(e,null)):E.p(L,N),N&8&&_e(T,T=L[3])?(ue(),P(A,1,1,te),fe(),A=Rc(L),A.c(),I(A,1),A.m(O.parentNode,O)):A.p(L,N)},i(L){M||(I(r.$$.fragment,L),I(p.$$.fragment,L),I(g.$$.fragment,L),I(E),I(A),M=!0)},o(L){P(r.$$.fragment,L),P(p.$$.fragment,L),P(g.$$.fragment,L),P(E),P(A),M=!1},d(L){L&&w(e),H(r),H(p),H(g),E.d(L),L&&w(C),L&&w(O),A.d(L)}}}function P$(n){let e,t,i,s;e=new Sn({props:{$$slots:{default:[L$]},$$scope:{ctx:n}}});let l={};return i=new A$({props:l}),n[13](i),{c(){B(e.$$.fragment),t=D(),B(i.$$.fragment)},m(o,r){z(e,o,r),S(o,t,r),z(i,o,r),s=!0},p(o,[r]){const a={};r&32895&&(a.$$scope={dirty:r,ctx:o}),e.$set(a);const u={};i.$set(u)},i(o){s||(I(e.$$.fragment,o),I(i.$$.fragment,o),s=!0)},o(o){P(e.$$.fragment,o),P(i.$$.fragment,o),s=!1},d(o){H(e,o),o&&w(t),n[13](null),H(i,o)}}}const qc="includeAdminLogs";function N$(n,e,t){var k;let i,s,l;Ze(n,Mt,$=>t(6,l=$));const o=["method","url","remoteIp","userIp","referer","status","auth","userAgent","created"];ln(Mt,l="Request logs",l);let r,a="",u=((k=window.localStorage)==null?void 0:k.getItem(qc))<<0,f=1;function d(){t(3,f++,f)}const p=()=>d();function h(){u=this.checked,t(1,u)}const g=$=>t(0,a=$.detail),_=$=>r==null?void 0:r.show($==null?void 0:$.detail);function b($){ne[$?"unshift":"push"](()=>{r=$,t(2,r)})}return n.$$.update=()=>{n.$$.dirty&2&&t(5,i=u?"":'auth!="admin"'),n.$$.dirty&2&&typeof u<"u"&&window.localStorage&&window.localStorage.setItem(qc,u<<0),n.$$.dirty&1&&t(4,s=W.normalizeSearchFilter(a,o))},[a,u,r,f,s,i,l,o,d,p,h,g,_,b]}class F$ extends ve{constructor(e){super(),be(this,e,N$,P$,_e,{})}}const uu=Ln({});function mn(n,e,t){uu.set({text:n,yesCallback:e,noCallback:t})}function y1(){uu.set({})}function jc(n){let e,t,i;const s=n[17].default,l=kt(s,n,n[16],null);return{c(){e=y("div"),l&&l.c(),m(e,"class",n[1]),Q(e,"active",n[0])},m(o,r){S(o,e,r),l&&l.m(e,null),n[18](e),i=!0},p(o,r){l&&l.p&&(!i||r&65536)&&St(l,s,o,o[16],i?wt(s,o[16],r,null):$t(o[16]),null),(!i||r&2)&&m(e,"class",o[1]),(!i||r&3)&&Q(e,"active",o[0])},i(o){i||(I(l,o),o&&et(()=>{i&&(t||(t=Ve(e,ci,{duration:150,y:3},!0)),t.run(1))}),i=!0)},o(o){P(l,o),o&&(t||(t=Ve(e,ci,{duration:150,y:3},!1)),t.run(0)),i=!1},d(o){o&&w(e),l&&l.d(o),n[18](null),o&&t&&t.end()}}}function R$(n){let e,t,i,s,l=n[0]&&jc(n);return{c(){e=y("div"),l&&l.c(),m(e,"class","toggler-container"),m(e,"tabindex","-1")},m(o,r){S(o,e,r),l&&l.m(e,null),n[19](e),t=!0,i||(s=[J(window,"mousedown",n[5]),J(window,"click",n[6]),J(window,"keydown",n[4]),J(window,"focusin",n[7])],i=!0)},p(o,[r]){o[0]?l?(l.p(o,r),r&1&&I(l,1)):(l=jc(o),l.c(),I(l,1),l.m(e,null)):l&&(ue(),P(l,1,1,()=>{l=null}),fe())},i(o){t||(I(l),t=!0)},o(o){P(l),t=!1},d(o){o&&w(e),l&&l.d(),n[19](null),i=!1,De(s)}}}function q$(n,e,t){let{$$slots:i={},$$scope:s}=e,{trigger:l=void 0}=e,{active:o=!1}=e,{escClose:r=!0}=e,{autoScroll:a=!0}=e,{closableClass:u="closable"}=e,{class:f=""}=e,d,p,h,g,_=!1;const b=Tt();function k(){t(0,o=!1),_=!1,clearTimeout(g)}function $(){t(0,o=!0),clearTimeout(g),g=setTimeout(()=>{a&&(p!=null&&p.scrollIntoViewIfNeeded?p==null||p.scrollIntoViewIfNeeded():p!=null&&p.scrollIntoView&&(p==null||p.scrollIntoView({behavior:"smooth",block:"nearest"})))},180)}function C(){o?k():$()}function T(j){return!d||j.classList.contains(u)||(h==null?void 0:h.contains(j))&&!d.contains(j)||d.contains(j)&&j.closest&&j.closest("."+u)}function O(j){(!o||T(j.target))&&(j.preventDefault(),j.stopPropagation(),C())}function M(j){(j.code==="Enter"||j.code==="Space")&&(!o||T(j.target))&&(j.preventDefault(),j.stopPropagation(),C())}function E(j){o&&r&&j.code==="Escape"&&(j.preventDefault(),k())}function A(j){o&&!(d!=null&&d.contains(j.target))?_=!0:_&&(_=!1)}function L(j){var U;o&&_&&!(d!=null&&d.contains(j.target))&&!(h!=null&&h.contains(j.target))&&!((U=j.target)!=null&&U.closest(".flatpickr-calendar"))&&k()}function N(j){A(j),L(j)}function q(j){F(),d==null||d.addEventListener("click",O),t(15,h=j||(d==null?void 0:d.parentNode)),h==null||h.addEventListener("click",O),h==null||h.addEventListener("keydown",M)}function F(){clearTimeout(g),d==null||d.removeEventListener("click",O),h==null||h.removeEventListener("click",O),h==null||h.removeEventListener("keydown",M)}Xt(()=>(q(),()=>F()));function R(j){ne[j?"unshift":"push"](()=>{p=j,t(3,p)})}function V(j){ne[j?"unshift":"push"](()=>{d=j,t(2,d)})}return n.$$set=j=>{"trigger"in j&&t(8,l=j.trigger),"active"in j&&t(0,o=j.active),"escClose"in j&&t(9,r=j.escClose),"autoScroll"in j&&t(10,a=j.autoScroll),"closableClass"in j&&t(11,u=j.closableClass),"class"in j&&t(1,f=j.class),"$$scope"in j&&t(16,s=j.$$scope)},n.$$.update=()=>{var j,U;n.$$.dirty&260&&d&&q(l),n.$$.dirty&32769&&(o?((j=h==null?void 0:h.classList)==null||j.add("active"),b("show")):((U=h==null?void 0:h.classList)==null||U.remove("active"),b("hide")))},[o,f,d,p,E,A,L,N,l,r,a,u,k,$,C,h,s,i,R,V]}class Jn extends ve{constructor(e){super(),be(this,e,q$,R$,_e,{trigger:8,active:0,escClose:9,autoScroll:10,closableClass:11,class:1,hide:12,show:13,toggle:14})}get hide(){return this.$$.ctx[12]}get show(){return this.$$.ctx[13]}get toggle(){return this.$$.ctx[14]}}function Vc(n,e,t){const i=n.slice();return i[27]=e[t],i}function j$(n){let e,t,i,s,l,o,r,a,u;return{c(){e=y("input"),s=D(),l=y("label"),o=Y("Unique"),m(e,"type","checkbox"),m(e,"id",t=n[30]),e.checked=i=n[3].unique,m(l,"for",r=n[30])},m(f,d){S(f,e,d),S(f,s,d),S(f,l,d),v(l,o),a||(u=J(e,"change",n[19]),a=!0)},p(f,d){d[0]&1073741824&&t!==(t=f[30])&&m(e,"id",t),d[0]&8&&i!==(i=f[3].unique)&&(e.checked=i),d[0]&1073741824&&r!==(r=f[30])&&m(l,"for",r)},d(f){f&&w(e),f&&w(s),f&&w(l),a=!1,u()}}}function V$(n){let e,t,i,s;function l(a){n[20](a)}var o=n[7];function r(a){var f;let u={id:a[30],placeholder:`eg. CREATE INDEX idx_test on ${(f=a[0])==null?void 0:f.name} (created)`,language:"sql-create-index",minHeight:"85"};return a[2]!==void 0&&(u.value=a[2]),{props:u}}return o&&(e=Rt(o,r(n)),ne.push(()=>pe(e,"value",l))),{c(){e&&B(e.$$.fragment),i=we()},m(a,u){e&&z(e,a,u),S(a,i,u),s=!0},p(a,u){var d;const f={};if(u[0]&1073741824&&(f.id=a[30]),u[0]&1&&(f.placeholder=`eg. CREATE INDEX idx_test on ${(d=a[0])==null?void 0:d.name} (created)`),!t&&u[0]&4&&(t=!0,f.value=a[2],ge(()=>t=!1)),u[0]&128&&o!==(o=a[7])){if(e){ue();const p=e;P(p.$$.fragment,1,0,()=>{H(p,1)}),fe()}o?(e=Rt(o,r(a)),ne.push(()=>pe(e,"value",l)),B(e.$$.fragment),I(e.$$.fragment,1),z(e,i.parentNode,i)):e=null}else o&&e.$set(f)},i(a){s||(e&&I(e.$$.fragment,a),s=!0)},o(a){e&&P(e.$$.fragment,a),s=!1},d(a){a&&w(i),e&&H(e,a)}}}function z$(n){let e;return{c(){e=y("textarea"),e.disabled=!0,m(e,"rows","7"),m(e,"placeholder","Loading...")},m(t,i){S(t,e,i)},p:te,i:te,o:te,d(t){t&&w(e)}}}function H$(n){let e,t,i,s;const l=[z$,V$],o=[];function r(a,u){return a[8]?0:1}return e=r(n),t=o[e]=l[e](n),{c(){t.c(),i=we()},m(a,u){o[e].m(a,u),S(a,i,u),s=!0},p(a,u){let f=e;e=r(a),e===f?o[e].p(a,u):(ue(),P(o[f],1,1,()=>{o[f]=null}),fe(),t=o[e],t?t.p(a,u):(t=o[e]=l[e](a),t.c()),I(t,1),t.m(i.parentNode,i))},i(a){s||(I(t),s=!0)},o(a){P(t),s=!1},d(a){o[e].d(a),a&&w(i)}}}function zc(n){let e,t,i,s=n[10],l=[];for(let o=0;o({30:a}),({uniqueId:a})=>[a?1073741824:0]]},$$scope:{ctx:n}}}),i=new me({props:{class:"form-field required m-b-sm",name:`indexes.${n[6]||""}`,$$slots:{default:[H$,({uniqueId:a})=>({30:a}),({uniqueId:a})=>[a?1073741824:0]]},$$scope:{ctx:n}}});let r=n[10].length>0&&zc(n);return{c(){B(e.$$.fragment),t=D(),B(i.$$.fragment),s=D(),r&&r.c(),l=we()},m(a,u){z(e,a,u),S(a,t,u),z(i,a,u),S(a,s,u),r&&r.m(a,u),S(a,l,u),o=!0},p(a,u){const f={};u[0]&1073741837|u[1]&1&&(f.$$scope={dirty:u,ctx:a}),e.$set(f);const d={};u[0]&64&&(d.name=`indexes.${a[6]||""}`),u[0]&1073742213|u[1]&1&&(d.$$scope={dirty:u,ctx:a}),i.$set(d),a[10].length>0?r?r.p(a,u):(r=zc(a),r.c(),r.m(l.parentNode,l)):r&&(r.d(1),r=null)},i(a){o||(I(e.$$.fragment,a),I(i.$$.fragment,a),o=!0)},o(a){P(e.$$.fragment,a),P(i.$$.fragment,a),o=!1},d(a){H(e,a),a&&w(t),H(i,a),a&&w(s),r&&r.d(a),a&&w(l)}}}function U$(n){let e,t=n[5]?"Update":"Create",i,s;return{c(){e=y("h4"),i=Y(t),s=Y(" index")},m(l,o){S(l,e,o),v(e,i),v(e,s)},p(l,o){o[0]&32&&t!==(t=l[5]?"Update":"Create")&&le(i,t)},d(l){l&&w(e)}}}function Bc(n){let e,t,i;return{c(){e=y("button"),e.innerHTML='',m(e,"type","button"),m(e,"class","btn btn-sm btn-circle btn-hint btn-transparent m-r-auto")},m(s,l){S(s,e,l),t||(i=[Ee(Be.call(null,e,{text:"Delete",position:"top"})),J(e,"click",n[16])],t=!0)},p:te,d(s){s&&w(e),t=!1,De(i)}}}function W$(n){let e,t,i,s,l,o,r=n[5]!=""&&Bc(n);return{c(){r&&r.c(),e=D(),t=y("button"),t.innerHTML='Cancel',i=D(),s=y("button"),s.innerHTML='Set index',m(t,"type","button"),m(t,"class","btn btn-transparent"),m(s,"type","button"),m(s,"class","btn"),Q(s,"btn-disabled",n[9].length<=0)},m(a,u){r&&r.m(a,u),S(a,e,u),S(a,t,u),S(a,i,u),S(a,s,u),l||(o=[J(t,"click",n[17]),J(s,"click",n[18])],l=!0)},p(a,u){a[5]!=""?r?r.p(a,u):(r=Bc(a),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),u[0]&512&&Q(s,"btn-disabled",a[9].length<=0)},d(a){r&&r.d(a),a&&w(e),a&&w(t),a&&w(i),a&&w(s),l=!1,De(o)}}}function Y$(n){let e,t;const i=[{popup:!0},n[14]];let s={$$slots:{footer:[W$],header:[U$],default:[B$]},$$scope:{ctx:n}};for(let l=0;lX.name==j);x?W.removeByValue(U.columns,x):W.pushUnique(U.columns,{name:j}),t(2,p=W.buildIndex(U))}Xt(async()=>{t(8,_=!0);try{t(7,g=(await ut(()=>import("./CodeEditor-ad47c205.js"),["./CodeEditor-ad47c205.js","./index-84ab2e4b.js"],import.meta.url)).default)}catch(j){console.warn(j)}t(8,_=!1)});const M=()=>C(),E=()=>k(),A=()=>T(),L=j=>{t(3,s.unique=j.target.checked,s),t(3,s.tableName=s.tableName||(u==null?void 0:u.name),s),t(2,p=W.buildIndex(s))};function N(j){p=j,t(2,p)}const q=j=>O(j);function F(j){ne[j?"unshift":"push"](()=>{f=j,t(4,f)})}function R(j){he.call(this,n,j)}function V(j){he.call(this,n,j)}return n.$$set=j=>{e=je(je({},e),Gt(j)),t(14,r=tt(e,o)),"collection"in j&&t(0,u=j.collection)},n.$$.update=()=>{var j,U,x;n.$$.dirty[0]&1&&t(10,i=(((U=(j=u==null?void 0:u.schema)==null?void 0:j.filter(X=>!X.toDelete))==null?void 0:U.map(X=>X.name))||[]).concat(["created","updated"])),n.$$.dirty[0]&4&&t(3,s=W.parseIndex(p)),n.$$.dirty[0]&8&&t(9,l=((x=s.columns)==null?void 0:x.map(X=>X.name))||[])},[u,k,p,s,f,d,h,g,_,l,i,C,T,O,r,b,M,E,A,L,N,q,F,R,V]}class J$ extends ve{constructor(e){super(),be(this,e,K$,Y$,_e,{collection:0,show:15,hide:1},null,[-1,-1])}get show(){return this.$$.ctx[15]}get hide(){return this.$$.ctx[1]}}function Uc(n,e,t){const i=n.slice();i[10]=e[t],i[13]=t;const s=W.parseIndex(i[10]);return i[11]=s,i}function Wc(n){let e;return{c(){e=y("strong"),e.textContent="Unique:"},m(t,i){S(t,e,i)},d(t){t&&w(e)}}}function Yc(n){var p;let e,t,i,s=((p=n[11].columns)==null?void 0:p.map(Kc).join(", "))+"",l,o,r,a,u,f=n[11].unique&&Wc();function d(){return n[4](n[10],n[13])}return{c(){var h,g;e=y("button"),f&&f.c(),t=D(),i=y("span"),l=Y(s),m(i,"class","txt"),m(e,"type","button"),m(e,"class",o="label link-primary "+((g=(h=n[2].indexes)==null?void 0:h[n[13]])!=null&&g.message?"label-danger":"")+" svelte-167lbwu")},m(h,g){var _,b;S(h,e,g),f&&f.m(e,null),v(e,t),v(e,i),v(i,l),a||(u=[Ee(r=Be.call(null,e,((b=(_=n[2].indexes)==null?void 0:_[n[13]])==null?void 0:b.message)||"")),J(e,"click",d)],a=!0)},p(h,g){var _,b,k,$,C;n=h,n[11].unique?f||(f=Wc(),f.c(),f.m(e,t)):f&&(f.d(1),f=null),g&1&&s!==(s=((_=n[11].columns)==null?void 0:_.map(Kc).join(", "))+"")&&le(l,s),g&4&&o!==(o="label link-primary "+((k=(b=n[2].indexes)==null?void 0:b[n[13]])!=null&&k.message?"label-danger":"")+" svelte-167lbwu")&&m(e,"class",o),r&&jt(r.update)&&g&4&&r.update.call(null,((C=($=n[2].indexes)==null?void 0:$[n[13]])==null?void 0:C.message)||"")},d(h){h&&w(e),f&&f.d(),a=!1,De(u)}}}function Z$(n){var T,O,M;let e,t,i=(((O=(T=n[0])==null?void 0:T.indexes)==null?void 0:O.length)||0)+"",s,l,o,r,a,u,f,d,p,h,g,_,b=((M=n[0])==null?void 0:M.indexes)||[],k=[];for(let E=0;Epe(d,"collection",$)),d.$on("remove",n[8]),d.$on("submit",n[9]),{c(){e=y("div"),t=Y("Unique constraints and indexes ("),s=Y(i),l=Y(")"),o=D(),r=y("div");for(let E=0;E+ +`)}},n.exports&&(n.exports=t),Prism.plugins.NormalizeWhitespace=new t({"remove-trailing":!0,"remove-indent":!0,"left-trim":!0,"right-trim":!0}),Prism.hooks.add("before-sanity-check",function(o){var r=Prism.plugins.NormalizeWhitespace;if(!(o.settings&&o.settings["whitespace-normalization"]===!1)&&Prism.util.isActive(o.element,"whitespace-normalization",!0)){if((!o.element||!o.element.parentNode)&&o.code){o.code=r.normalize(o.code,o.settings);return}var a=o.element.parentNode;if(!(!o.code||!a||a.nodeName.toLowerCase()!=="pre")){o.settings==null&&(o.settings={});for(var u in l)if(Object.hasOwnProperty.call(l,u)){var f=l[u];if(a.hasAttribute("data-"+u))try{var d=JSON.parse(a.getAttribute("data-"+u)||"true");typeof d===f&&(o.settings[u]=d)}catch{}}for(var p=a.childNodes,h="",g="",_=!1,b=0;b>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),n.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:n.languages.dart}}},string:/[\s\S]+/}},string:void 0}),n.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),n.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":i,keyword:e,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})})(Prism);function _$(n){let e,t,i;return{c(){e=y("div"),t=y("code"),m(t,"class","svelte-10s5tkd"),m(e,"class",i="code-wrapper prism-light "+n[0]+" svelte-10s5tkd")},m(s,l){S(s,e,l),v(e,t),t.innerHTML=n[1]},p(s,[l]){l&2&&(t.innerHTML=s[1]),l&1&&i!==(i="code-wrapper prism-light "+s[0]+" svelte-10s5tkd")&&m(e,"class",i)},i:te,o:te,d(s){s&&w(e)}}}function g$(n,e,t){let{class:i=""}=e,{content:s=""}=e,{language:l="javascript"}=e,o="";function r(a){return a=typeof a=="string"?a:"",a=el.plugins.NormalizeWhitespace.normalize(a,{"remove-trailing":!0,"remove-indent":!0,"left-trim":!0,"right-trim":!0}),el.highlight(a,el.languages[l]||el.languages.javascript,l)}return n.$$set=a=>{"class"in a&&t(0,i=a.class),"content"in a&&t(2,s=a.content),"language"in a&&t(3,l=a.language)},n.$$.update=()=>{n.$$.dirty&4&&typeof el<"u"&&s&&t(1,o=r(s))},[i,o,s,l]}class b1 extends ve{constructor(e){super(),be(this,e,g$,_$,_e,{class:0,content:2,language:3})}}const b$=n=>({}),Dc=n=>({}),v$=n=>({}),Ac=n=>({});function Ic(n){let e,t,i,s,l,o,r,a,u,f,d,p,h,g,_,b,k,$,C=n[4]&&!n[2]&&Lc(n);const T=n[19].header,O=kt(T,n,n[18],Ac);let M=n[4]&&n[2]&&Pc(n);const E=n[19].default,A=kt(E,n,n[18],null),L=n[19].footer,N=kt(L,n,n[18],Dc);return{c(){e=y("div"),t=y("div"),s=D(),l=y("div"),o=y("div"),C&&C.c(),r=D(),O&&O.c(),a=D(),M&&M.c(),u=D(),f=y("div"),A&&A.c(),d=D(),p=y("div"),N&&N.c(),m(t,"class","overlay"),m(o,"class","overlay-panel-section panel-header"),m(f,"class","overlay-panel-section panel-content"),m(p,"class","overlay-panel-section panel-footer"),m(l,"class",h="overlay-panel "+n[1]+" "+n[8]),Q(l,"popup",n[2]),m(e,"class","overlay-panel-container"),Q(e,"padded",n[2]),Q(e,"active",n[0])},m(q,F){S(q,e,F),v(e,t),v(e,s),v(e,l),v(l,o),C&&C.m(o,null),v(o,r),O&&O.m(o,null),v(o,a),M&&M.m(o,null),v(l,u),v(l,f),A&&A.m(f,null),n[21](f),v(l,d),v(l,p),N&&N.m(p,null),b=!0,k||($=[J(t,"click",xe(n[20])),J(f,"scroll",n[22])],k=!0)},p(q,F){n=q,n[4]&&!n[2]?C?C.p(n,F):(C=Lc(n),C.c(),C.m(o,r)):C&&(C.d(1),C=null),O&&O.p&&(!b||F[0]&262144)&&St(O,T,n,n[18],b?wt(T,n[18],F,v$):$t(n[18]),Ac),n[4]&&n[2]?M?M.p(n,F):(M=Pc(n),M.c(),M.m(o,null)):M&&(M.d(1),M=null),A&&A.p&&(!b||F[0]&262144)&&St(A,E,n,n[18],b?wt(E,n[18],F,null):$t(n[18]),null),N&&N.p&&(!b||F[0]&262144)&&St(N,L,n,n[18],b?wt(L,n[18],F,b$):$t(n[18]),Dc),(!b||F[0]&258&&h!==(h="overlay-panel "+n[1]+" "+n[8]))&&m(l,"class",h),(!b||F[0]&262)&&Q(l,"popup",n[2]),(!b||F[0]&4)&&Q(e,"padded",n[2]),(!b||F[0]&1)&&Q(e,"active",n[0])},i(q){b||(q&&et(()=>{b&&(i||(i=Ve(t,na,{duration:ks,opacity:0},!0)),i.run(1))}),I(O,q),I(A,q),I(N,q),et(()=>{b&&(_&&_.end(1),g=ag(l,ci,n[2]?{duration:ks,y:-10}:{duration:ks,x:50}),g.start())}),b=!0)},o(q){q&&(i||(i=Ve(t,na,{duration:ks,opacity:0},!1)),i.run(0)),P(O,q),P(A,q),P(N,q),g&&g.invalidate(),_=Ta(l,ci,n[2]?{duration:ks,y:10}:{duration:ks,x:50}),b=!1},d(q){q&&w(e),q&&i&&i.end(),C&&C.d(),O&&O.d(q),M&&M.d(),A&&A.d(q),n[21](null),N&&N.d(q),q&&_&&_.end(),k=!1,De($)}}}function Lc(n){let e,t,i;return{c(){e=y("button"),e.innerHTML='',m(e,"type","button"),m(e,"class","overlay-close")},m(s,l){S(s,e,l),t||(i=J(e,"click",xe(n[5])),t=!0)},p:te,d(s){s&&w(e),t=!1,i()}}}function Pc(n){let e,t,i;return{c(){e=y("button"),e.innerHTML='',m(e,"type","button"),m(e,"class","btn btn-sm btn-circle btn-transparent btn-close m-l-auto")},m(s,l){S(s,e,l),t||(i=J(e,"click",xe(n[5])),t=!0)},p:te,d(s){s&&w(e),t=!1,i()}}}function y$(n){let e,t,i,s,l=n[0]&&Ic(n);return{c(){e=y("div"),l&&l.c(),m(e,"class","overlay-panel-wrapper"),m(e,"tabindex","-1")},m(o,r){S(o,e,r),l&&l.m(e,null),n[23](e),t=!0,i||(s=[J(window,"resize",n[10]),J(window,"keydown",n[9])],i=!0)},p(o,r){o[0]?l?(l.p(o,r),r[0]&1&&I(l,1)):(l=Ic(o),l.c(),I(l,1),l.m(e,null)):l&&(ue(),P(l,1,1,()=>{l=null}),fe())},i(o){t||(I(l),t=!0)},o(o){P(l),t=!1},d(o){o&&w(e),l&&l.d(),n[23](null),i=!1,De(s)}}}let Gi,Er=[];function v1(){return Gi=Gi||document.querySelector(".overlays"),Gi||(Gi=document.createElement("div"),Gi.classList.add("overlays"),document.body.appendChild(Gi)),Gi}let ks=150;function Nc(){return 1e3+v1().querySelectorAll(".overlay-panel-container.active").length}function k$(n,e,t){let{$$slots:i={},$$scope:s}=e,{class:l=""}=e,{active:o=!1}=e,{popup:r=!1}=e,{overlayClose:a=!0}=e,{btnClose:u=!0}=e,{escClose:f=!0}=e,{beforeOpen:d=void 0}=e,{beforeHide:p=void 0}=e;const h=Tt(),g="op_"+W.randomString(10);let _,b,k,$,C="",T=o;function O(){typeof d=="function"&&d()===!1||t(0,o=!0)}function M(){typeof p=="function"&&p()===!1||t(0,o=!1)}function E(){return o}async function A(Z){t(17,T=Z),Z?(k=document.activeElement,h("show"),_==null||_.focus()):(clearTimeout($),h("hide"),k==null||k.focus()),await cn(),L()}function L(){_&&(o?t(6,_.style.zIndex=Nc(),_):t(6,_.style="",_))}function N(){W.pushUnique(Er,g),document.body.classList.add("overlay-active")}function q(){W.removeByValue(Er,g),Er.length||document.body.classList.remove("overlay-active")}function F(Z){o&&f&&Z.code=="Escape"&&!W.isInput(Z.target)&&_&&_.style.zIndex==Nc()&&(Z.preventDefault(),M())}function R(Z){o&&V(b)}function V(Z,oe){oe&&t(8,C=""),Z&&($||($=setTimeout(()=>{if(clearTimeout($),$=null,!Z)return;if(Z.scrollHeight-Z.offsetHeight>0)t(8,C="scrollable");else{t(8,C="");return}Z.scrollTop==0?t(8,C+=" scroll-top-reached"):Z.scrollTop+Z.offsetHeight==Z.scrollHeight&&t(8,C+=" scroll-bottom-reached")},100)))}Xt(()=>(v1().appendChild(_),()=>{var Z;clearTimeout($),q(),(Z=_==null?void 0:_.classList)==null||Z.add("hidden"),setTimeout(()=>{_==null||_.remove()},0)}));const j=()=>a?M():!0;function U(Z){ne[Z?"unshift":"push"](()=>{b=Z,t(7,b)})}const x=Z=>V(Z.target);function X(Z){ne[Z?"unshift":"push"](()=>{_=Z,t(6,_)})}return n.$$set=Z=>{"class"in Z&&t(1,l=Z.class),"active"in Z&&t(0,o=Z.active),"popup"in Z&&t(2,r=Z.popup),"overlayClose"in Z&&t(3,a=Z.overlayClose),"btnClose"in Z&&t(4,u=Z.btnClose),"escClose"in Z&&t(12,f=Z.escClose),"beforeOpen"in Z&&t(13,d=Z.beforeOpen),"beforeHide"in Z&&t(14,p=Z.beforeHide),"$$scope"in Z&&t(18,s=Z.$$scope)},n.$$.update=()=>{n.$$.dirty[0]&131073&&T!=o&&A(o),n.$$.dirty[0]&128&&V(b,!0),n.$$.dirty[0]&64&&_&&L(),n.$$.dirty[0]&1&&(o?N():q())},[o,l,r,a,u,M,_,b,C,F,R,V,f,d,p,O,E,T,s,i,j,U,x,X]}class on extends ve{constructor(e){super(),be(this,e,k$,y$,_e,{class:1,active:0,popup:2,overlayClose:3,btnClose:4,escClose:12,beforeOpen:13,beforeHide:14,show:15,hide:5,isActive:16},null,[-1,-1])}get show(){return this.$$.ctx[15]}get hide(){return this.$$.ctx[5]}get isActive(){return this.$$.ctx[16]}}function w$(n){let e;return{c(){e=y("span"),e.textContent="N/A",m(e,"class","txt-hint")},m(t,i){S(t,e,i)},p:te,d(t){t&&w(e)}}}function S$(n){let e,t=n[2].referer+"",i,s;return{c(){e=y("a"),i=Y(t),m(e,"href",s=n[2].referer),m(e,"target","_blank"),m(e,"rel","noopener noreferrer")},m(l,o){S(l,e,o),v(e,i)},p(l,o){o&4&&t!==(t=l[2].referer+"")&&le(i,t),o&4&&s!==(s=l[2].referer)&&m(e,"href",s)},d(l){l&&w(e)}}}function $$(n){let e;return{c(){e=y("span"),e.textContent="N/A",m(e,"class","txt-hint")},m(t,i){S(t,e,i)},p:te,i:te,o:te,d(t){t&&w(e)}}}function T$(n){let e,t,i;return t=new b1({props:{content:JSON.stringify(n[2].meta,null,2)}}),{c(){e=y("div"),B(t.$$.fragment),m(e,"class","block")},m(s,l){S(s,e,l),z(t,e,null),i=!0},p(s,l){const o={};l&4&&(o.content=JSON.stringify(s[2].meta,null,2)),t.$set(o)},i(s){i||(I(t.$$.fragment,s),i=!0)},o(s){P(t.$$.fragment,s),i=!1},d(s){s&&w(e),H(t)}}}function C$(n){var Pe;let e,t,i,s,l,o,r=n[2].id+"",a,u,f,d,p,h,g,_=n[2].status+"",b,k,$,C,T,O,M=((Pe=n[2].method)==null?void 0:Pe.toUpperCase())+"",E,A,L,N,q,F,R=n[2].auth+"",V,j,U,x,X,Z,oe=n[2].url+"",ee,se,ye,$e,ze,Ue,Se,Oe,Ge,_t,Xe,Ke=n[2].remoteIp+"",Te,ce,He,At,Ne,Ce,it=n[2].userIp+"",It,Vt,Ut,Pn,ti,$n,gt=n[2].userAgent+"",Nn,ps,ni,Oi,ms,mi,ke,Ie,Re,Qe,Et,Tn,Fn,Ui,sn,dn;function Rl(Fe,Ae){return Fe[2].referer?S$:w$}let K=Rl(n),G=K(n);const ie=[T$,$$],re=[];function Me(Fe,Ae){return Ae&4&&(ke=null),ke==null&&(ke=!W.isEmpty(Fe[2].meta)),ke?0:1}return Ie=Me(n,-1),Re=re[Ie]=ie[Ie](n),sn=new $i({props:{date:n[2].created}}),{c(){e=y("table"),t=y("tbody"),i=y("tr"),s=y("td"),s.textContent="ID",l=D(),o=y("td"),a=Y(r),u=D(),f=y("tr"),d=y("td"),d.textContent="Status",p=D(),h=y("td"),g=y("span"),b=Y(_),k=D(),$=y("tr"),C=y("td"),C.textContent="Method",T=D(),O=y("td"),E=Y(M),A=D(),L=y("tr"),N=y("td"),N.textContent="Auth",q=D(),F=y("td"),V=Y(R),j=D(),U=y("tr"),x=y("td"),x.textContent="URL",X=D(),Z=y("td"),ee=Y(oe),se=D(),ye=y("tr"),$e=y("td"),$e.textContent="Referer",ze=D(),Ue=y("td"),G.c(),Se=D(),Oe=y("tr"),Ge=y("td"),Ge.textContent="Remote IP",_t=D(),Xe=y("td"),Te=Y(Ke),ce=D(),He=y("tr"),At=y("td"),At.textContent="User IP",Ne=D(),Ce=y("td"),It=Y(it),Vt=D(),Ut=y("tr"),Pn=y("td"),Pn.textContent="UserAgent",ti=D(),$n=y("td"),Nn=Y(gt),ps=D(),ni=y("tr"),Oi=y("td"),Oi.textContent="Meta",ms=D(),mi=y("td"),Re.c(),Qe=D(),Et=y("tr"),Tn=y("td"),Tn.textContent="Created",Fn=D(),Ui=y("td"),B(sn.$$.fragment),m(s,"class","min-width txt-hint txt-bold"),m(d,"class","min-width txt-hint txt-bold"),m(g,"class","label"),Q(g,"label-danger",n[2].status>=400),m(C,"class","min-width txt-hint txt-bold"),m(N,"class","min-width txt-hint txt-bold"),m(x,"class","min-width txt-hint txt-bold"),m($e,"class","min-width txt-hint txt-bold"),m(Ge,"class","min-width txt-hint txt-bold"),m(At,"class","min-width txt-hint txt-bold"),m(Pn,"class","min-width txt-hint txt-bold"),m(Oi,"class","min-width txt-hint txt-bold"),m(Tn,"class","min-width txt-hint txt-bold"),m(e,"class","table-border")},m(Fe,Ae){S(Fe,e,Ae),v(e,t),v(t,i),v(i,s),v(i,l),v(i,o),v(o,a),v(t,u),v(t,f),v(f,d),v(f,p),v(f,h),v(h,g),v(g,b),v(t,k),v(t,$),v($,C),v($,T),v($,O),v(O,E),v(t,A),v(t,L),v(L,N),v(L,q),v(L,F),v(F,V),v(t,j),v(t,U),v(U,x),v(U,X),v(U,Z),v(Z,ee),v(t,se),v(t,ye),v(ye,$e),v(ye,ze),v(ye,Ue),G.m(Ue,null),v(t,Se),v(t,Oe),v(Oe,Ge),v(Oe,_t),v(Oe,Xe),v(Xe,Te),v(t,ce),v(t,He),v(He,At),v(He,Ne),v(He,Ce),v(Ce,It),v(t,Vt),v(t,Ut),v(Ut,Pn),v(Ut,ti),v(Ut,$n),v($n,Nn),v(t,ps),v(t,ni),v(ni,Oi),v(ni,ms),v(ni,mi),re[Ie].m(mi,null),v(t,Qe),v(t,Et),v(Et,Tn),v(Et,Fn),v(Et,Ui),z(sn,Ui,null),dn=!0},p(Fe,Ae){var Ye;(!dn||Ae&4)&&r!==(r=Fe[2].id+"")&&le(a,r),(!dn||Ae&4)&&_!==(_=Fe[2].status+"")&&le(b,_),(!dn||Ae&4)&&Q(g,"label-danger",Fe[2].status>=400),(!dn||Ae&4)&&M!==(M=((Ye=Fe[2].method)==null?void 0:Ye.toUpperCase())+"")&&le(E,M),(!dn||Ae&4)&&R!==(R=Fe[2].auth+"")&&le(V,R),(!dn||Ae&4)&&oe!==(oe=Fe[2].url+"")&&le(ee,oe),K===(K=Rl(Fe))&&G?G.p(Fe,Ae):(G.d(1),G=K(Fe),G&&(G.c(),G.m(Ue,null))),(!dn||Ae&4)&&Ke!==(Ke=Fe[2].remoteIp+"")&&le(Te,Ke),(!dn||Ae&4)&&it!==(it=Fe[2].userIp+"")&&le(It,it),(!dn||Ae&4)&>!==(gt=Fe[2].userAgent+"")&&le(Nn,gt);let Je=Ie;Ie=Me(Fe,Ae),Ie===Je?re[Ie].p(Fe,Ae):(ue(),P(re[Je],1,1,()=>{re[Je]=null}),fe(),Re=re[Ie],Re?Re.p(Fe,Ae):(Re=re[Ie]=ie[Ie](Fe),Re.c()),I(Re,1),Re.m(mi,null));const qe={};Ae&4&&(qe.date=Fe[2].created),sn.$set(qe)},i(Fe){dn||(I(Re),I(sn.$$.fragment,Fe),dn=!0)},o(Fe){P(Re),P(sn.$$.fragment,Fe),dn=!1},d(Fe){Fe&&w(e),G.d(),re[Ie].d(),H(sn)}}}function M$(n){let e;return{c(){e=y("h4"),e.textContent="Request log"},m(t,i){S(t,e,i)},p:te,d(t){t&&w(e)}}}function O$(n){let e,t,i;return{c(){e=y("button"),e.innerHTML='Close',m(e,"type","button"),m(e,"class","btn btn-transparent")},m(s,l){S(s,e,l),t||(i=J(e,"click",n[4]),t=!0)},p:te,d(s){s&&w(e),t=!1,i()}}}function E$(n){let e,t,i={class:"overlay-panel-lg log-panel",$$slots:{footer:[O$],header:[M$],default:[C$]},$$scope:{ctx:n}};return e=new on({props:i}),n[5](e),e.$on("hide",n[6]),e.$on("show",n[7]),{c(){B(e.$$.fragment)},m(s,l){z(e,s,l),t=!0},p(s,[l]){const o={};l&260&&(o.$$scope={dirty:l,ctx:s}),e.$set(o)},i(s){t||(I(e.$$.fragment,s),t=!0)},o(s){P(e.$$.fragment,s),t=!1},d(s){n[5](null),H(e,s)}}}function D$(n,e,t){let i,s=new Kr;function l(d){return t(2,s=d),i==null?void 0:i.show()}function o(){return i==null?void 0:i.hide()}const r=()=>o();function a(d){ne[d?"unshift":"push"](()=>{i=d,t(1,i)})}function u(d){he.call(this,n,d)}function f(d){he.call(this,n,d)}return[o,i,s,l,r,a,u,f]}class A$ extends ve{constructor(e){super(),be(this,e,D$,E$,_e,{show:3,hide:0})}get show(){return this.$$.ctx[3]}get hide(){return this.$$.ctx[0]}}function I$(n){let e,t,i,s,l,o,r,a;return{c(){e=y("input"),i=D(),s=y("label"),l=Y("Include requests by admins"),m(e,"type","checkbox"),m(e,"id",t=n[14]),m(s,"for",o=n[14])},m(u,f){S(u,e,f),e.checked=n[1],S(u,i,f),S(u,s,f),v(s,l),r||(a=J(e,"change",n[10]),r=!0)},p(u,f){f&16384&&t!==(t=u[14])&&m(e,"id",t),f&2&&(e.checked=u[1]),f&16384&&o!==(o=u[14])&&m(s,"for",o)},d(u){u&&w(e),u&&w(i),u&&w(s),r=!1,a()}}}function Fc(n){let e,t;return e=new d$({props:{filter:n[4],presets:n[5]}}),{c(){B(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p(i,s){const l={};s&16&&(l.filter=i[4]),s&32&&(l.presets=i[5]),e.$set(l)},i(i){t||(I(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){H(e,i)}}}function Rc(n){let e,t;return e=new Ak({props:{filter:n[4],presets:n[5]}}),e.$on("select",n[12]),{c(){B(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p(i,s){const l={};s&16&&(l.filter=i[4]),s&32&&(l.presets=i[5]),e.$set(l)},i(i){t||(I(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){H(e,i)}}}function L$(n){let e,t,i,s,l,o,r,a,u,f,d,p,h,g,_,b,k,$=n[3],C,T=n[3],O,M;r=new Zo({}),r.$on("refresh",n[9]),p=new me({props:{class:"form-field form-field-toggle m-0",$$slots:{default:[I$,({uniqueId:L})=>({14:L}),({uniqueId:L})=>L?16384:0]},$$scope:{ctx:n}}}),g=new Jo({props:{value:n[0],placeholder:"Search term or filter like status >= 400",extraAutocompleteKeys:n[7]}}),g.$on("submit",n[11]);let E=Fc(n),A=Rc(n);return{c(){e=y("div"),t=y("header"),i=y("nav"),s=y("div"),l=Y(n[6]),o=D(),B(r.$$.fragment),a=D(),u=y("div"),f=D(),d=y("div"),B(p.$$.fragment),h=D(),B(g.$$.fragment),_=D(),b=y("div"),k=D(),E.c(),C=D(),A.c(),O=we(),m(s,"class","breadcrumb-item"),m(i,"class","breadcrumbs"),m(u,"class","flex-fill"),m(d,"class","inline-flex"),m(t,"class","page-header"),m(b,"class","clearfix m-b-base"),m(e,"class","page-header-wrapper m-b-0")},m(L,N){S(L,e,N),v(e,t),v(t,i),v(i,s),v(s,l),v(t,o),z(r,t,null),v(t,a),v(t,u),v(t,f),v(t,d),z(p,d,null),v(e,h),z(g,e,null),v(e,_),v(e,b),v(e,k),E.m(e,null),S(L,C,N),A.m(L,N),S(L,O,N),M=!0},p(L,N){(!M||N&64)&&le(l,L[6]);const q={};N&49154&&(q.$$scope={dirty:N,ctx:L}),p.$set(q);const F={};N&1&&(F.value=L[0]),g.$set(F),N&8&&_e($,$=L[3])?(ue(),P(E,1,1,te),fe(),E=Fc(L),E.c(),I(E,1),E.m(e,null)):E.p(L,N),N&8&&_e(T,T=L[3])?(ue(),P(A,1,1,te),fe(),A=Rc(L),A.c(),I(A,1),A.m(O.parentNode,O)):A.p(L,N)},i(L){M||(I(r.$$.fragment,L),I(p.$$.fragment,L),I(g.$$.fragment,L),I(E),I(A),M=!0)},o(L){P(r.$$.fragment,L),P(p.$$.fragment,L),P(g.$$.fragment,L),P(E),P(A),M=!1},d(L){L&&w(e),H(r),H(p),H(g),E.d(L),L&&w(C),L&&w(O),A.d(L)}}}function P$(n){let e,t,i,s;e=new Sn({props:{$$slots:{default:[L$]},$$scope:{ctx:n}}});let l={};return i=new A$({props:l}),n[13](i),{c(){B(e.$$.fragment),t=D(),B(i.$$.fragment)},m(o,r){z(e,o,r),S(o,t,r),z(i,o,r),s=!0},p(o,[r]){const a={};r&32895&&(a.$$scope={dirty:r,ctx:o}),e.$set(a);const u={};i.$set(u)},i(o){s||(I(e.$$.fragment,o),I(i.$$.fragment,o),s=!0)},o(o){P(e.$$.fragment,o),P(i.$$.fragment,o),s=!1},d(o){H(e,o),o&&w(t),n[13](null),H(i,o)}}}const qc="includeAdminLogs";function N$(n,e,t){var k;let i,s,l;Ze(n,Mt,$=>t(6,l=$));const o=["method","url","remoteIp","userIp","referer","status","auth","userAgent","created"];ln(Mt,l="Request logs",l);let r,a="",u=((k=window.localStorage)==null?void 0:k.getItem(qc))<<0,f=1;function d(){t(3,f++,f)}const p=()=>d();function h(){u=this.checked,t(1,u)}const g=$=>t(0,a=$.detail),_=$=>r==null?void 0:r.show($==null?void 0:$.detail);function b($){ne[$?"unshift":"push"](()=>{r=$,t(2,r)})}return n.$$.update=()=>{n.$$.dirty&2&&t(5,i=u?"":'auth!="admin"'),n.$$.dirty&2&&typeof u<"u"&&window.localStorage&&window.localStorage.setItem(qc,u<<0),n.$$.dirty&1&&t(4,s=W.normalizeSearchFilter(a,o))},[a,u,r,f,s,i,l,o,d,p,h,g,_,b]}class F$ extends ve{constructor(e){super(),be(this,e,N$,P$,_e,{})}}const uu=Ln({});function mn(n,e,t){uu.set({text:n,yesCallback:e,noCallback:t})}function y1(){uu.set({})}function jc(n){let e,t,i;const s=n[17].default,l=kt(s,n,n[16],null);return{c(){e=y("div"),l&&l.c(),m(e,"class",n[1]),Q(e,"active",n[0])},m(o,r){S(o,e,r),l&&l.m(e,null),n[18](e),i=!0},p(o,r){l&&l.p&&(!i||r&65536)&&St(l,s,o,o[16],i?wt(s,o[16],r,null):$t(o[16]),null),(!i||r&2)&&m(e,"class",o[1]),(!i||r&3)&&Q(e,"active",o[0])},i(o){i||(I(l,o),o&&et(()=>{i&&(t||(t=Ve(e,ci,{duration:150,y:3},!0)),t.run(1))}),i=!0)},o(o){P(l,o),o&&(t||(t=Ve(e,ci,{duration:150,y:3},!1)),t.run(0)),i=!1},d(o){o&&w(e),l&&l.d(o),n[18](null),o&&t&&t.end()}}}function R$(n){let e,t,i,s,l=n[0]&&jc(n);return{c(){e=y("div"),l&&l.c(),m(e,"class","toggler-container"),m(e,"tabindex","-1")},m(o,r){S(o,e,r),l&&l.m(e,null),n[19](e),t=!0,i||(s=[J(window,"mousedown",n[5]),J(window,"click",n[6]),J(window,"keydown",n[4]),J(window,"focusin",n[7])],i=!0)},p(o,[r]){o[0]?l?(l.p(o,r),r&1&&I(l,1)):(l=jc(o),l.c(),I(l,1),l.m(e,null)):l&&(ue(),P(l,1,1,()=>{l=null}),fe())},i(o){t||(I(l),t=!0)},o(o){P(l),t=!1},d(o){o&&w(e),l&&l.d(),n[19](null),i=!1,De(s)}}}function q$(n,e,t){let{$$slots:i={},$$scope:s}=e,{trigger:l=void 0}=e,{active:o=!1}=e,{escClose:r=!0}=e,{autoScroll:a=!0}=e,{closableClass:u="closable"}=e,{class:f=""}=e,d,p,h,g,_=!1;const b=Tt();function k(){t(0,o=!1),_=!1,clearTimeout(g)}function $(){t(0,o=!0),clearTimeout(g),g=setTimeout(()=>{a&&(p!=null&&p.scrollIntoViewIfNeeded?p==null||p.scrollIntoViewIfNeeded():p!=null&&p.scrollIntoView&&(p==null||p.scrollIntoView({behavior:"smooth",block:"nearest"})))},180)}function C(){o?k():$()}function T(j){return!d||j.classList.contains(u)||(h==null?void 0:h.contains(j))&&!d.contains(j)||d.contains(j)&&j.closest&&j.closest("."+u)}function O(j){(!o||T(j.target))&&(j.preventDefault(),j.stopPropagation(),C())}function M(j){(j.code==="Enter"||j.code==="Space")&&(!o||T(j.target))&&(j.preventDefault(),j.stopPropagation(),C())}function E(j){o&&r&&j.code==="Escape"&&(j.preventDefault(),k())}function A(j){o&&!(d!=null&&d.contains(j.target))?_=!0:_&&(_=!1)}function L(j){var U;o&&_&&!(d!=null&&d.contains(j.target))&&!(h!=null&&h.contains(j.target))&&!((U=j.target)!=null&&U.closest(".flatpickr-calendar"))&&k()}function N(j){A(j),L(j)}function q(j){F(),d==null||d.addEventListener("click",O),t(15,h=j||(d==null?void 0:d.parentNode)),h==null||h.addEventListener("click",O),h==null||h.addEventListener("keydown",M)}function F(){clearTimeout(g),d==null||d.removeEventListener("click",O),h==null||h.removeEventListener("click",O),h==null||h.removeEventListener("keydown",M)}Xt(()=>(q(),()=>F()));function R(j){ne[j?"unshift":"push"](()=>{p=j,t(3,p)})}function V(j){ne[j?"unshift":"push"](()=>{d=j,t(2,d)})}return n.$$set=j=>{"trigger"in j&&t(8,l=j.trigger),"active"in j&&t(0,o=j.active),"escClose"in j&&t(9,r=j.escClose),"autoScroll"in j&&t(10,a=j.autoScroll),"closableClass"in j&&t(11,u=j.closableClass),"class"in j&&t(1,f=j.class),"$$scope"in j&&t(16,s=j.$$scope)},n.$$.update=()=>{var j,U;n.$$.dirty&260&&d&&q(l),n.$$.dirty&32769&&(o?((j=h==null?void 0:h.classList)==null||j.add("active"),b("show")):((U=h==null?void 0:h.classList)==null||U.remove("active"),b("hide")))},[o,f,d,p,E,A,L,N,l,r,a,u,k,$,C,h,s,i,R,V]}class Jn extends ve{constructor(e){super(),be(this,e,q$,R$,_e,{trigger:8,active:0,escClose:9,autoScroll:10,closableClass:11,class:1,hide:12,show:13,toggle:14})}get hide(){return this.$$.ctx[12]}get show(){return this.$$.ctx[13]}get toggle(){return this.$$.ctx[14]}}function Vc(n,e,t){const i=n.slice();return i[27]=e[t],i}function j$(n){let e,t,i,s,l,o,r,a,u;return{c(){e=y("input"),s=D(),l=y("label"),o=Y("Unique"),m(e,"type","checkbox"),m(e,"id",t=n[30]),e.checked=i=n[3].unique,m(l,"for",r=n[30])},m(f,d){S(f,e,d),S(f,s,d),S(f,l,d),v(l,o),a||(u=J(e,"change",n[19]),a=!0)},p(f,d){d[0]&1073741824&&t!==(t=f[30])&&m(e,"id",t),d[0]&8&&i!==(i=f[3].unique)&&(e.checked=i),d[0]&1073741824&&r!==(r=f[30])&&m(l,"for",r)},d(f){f&&w(e),f&&w(s),f&&w(l),a=!1,u()}}}function V$(n){let e,t,i,s;function l(a){n[20](a)}var o=n[7];function r(a){var f;let u={id:a[30],placeholder:`eg. CREATE INDEX idx_test on ${(f=a[0])==null?void 0:f.name} (created)`,language:"sql-create-index",minHeight:"85"};return a[2]!==void 0&&(u.value=a[2]),{props:u}}return o&&(e=Rt(o,r(n)),ne.push(()=>pe(e,"value",l))),{c(){e&&B(e.$$.fragment),i=we()},m(a,u){e&&z(e,a,u),S(a,i,u),s=!0},p(a,u){var d;const f={};if(u[0]&1073741824&&(f.id=a[30]),u[0]&1&&(f.placeholder=`eg. CREATE INDEX idx_test on ${(d=a[0])==null?void 0:d.name} (created)`),!t&&u[0]&4&&(t=!0,f.value=a[2],ge(()=>t=!1)),u[0]&128&&o!==(o=a[7])){if(e){ue();const p=e;P(p.$$.fragment,1,0,()=>{H(p,1)}),fe()}o?(e=Rt(o,r(a)),ne.push(()=>pe(e,"value",l)),B(e.$$.fragment),I(e.$$.fragment,1),z(e,i.parentNode,i)):e=null}else o&&e.$set(f)},i(a){s||(e&&I(e.$$.fragment,a),s=!0)},o(a){e&&P(e.$$.fragment,a),s=!1},d(a){a&&w(i),e&&H(e,a)}}}function z$(n){let e;return{c(){e=y("textarea"),e.disabled=!0,m(e,"rows","7"),m(e,"placeholder","Loading...")},m(t,i){S(t,e,i)},p:te,i:te,o:te,d(t){t&&w(e)}}}function H$(n){let e,t,i,s;const l=[z$,V$],o=[];function r(a,u){return a[8]?0:1}return e=r(n),t=o[e]=l[e](n),{c(){t.c(),i=we()},m(a,u){o[e].m(a,u),S(a,i,u),s=!0},p(a,u){let f=e;e=r(a),e===f?o[e].p(a,u):(ue(),P(o[f],1,1,()=>{o[f]=null}),fe(),t=o[e],t?t.p(a,u):(t=o[e]=l[e](a),t.c()),I(t,1),t.m(i.parentNode,i))},i(a){s||(I(t),s=!0)},o(a){P(t),s=!1},d(a){o[e].d(a),a&&w(i)}}}function zc(n){let e,t,i,s=n[10],l=[];for(let o=0;o({30:a}),({uniqueId:a})=>[a?1073741824:0]]},$$scope:{ctx:n}}}),i=new me({props:{class:"form-field required m-b-sm",name:`indexes.${n[6]||""}`,$$slots:{default:[H$,({uniqueId:a})=>({30:a}),({uniqueId:a})=>[a?1073741824:0]]},$$scope:{ctx:n}}});let r=n[10].length>0&&zc(n);return{c(){B(e.$$.fragment),t=D(),B(i.$$.fragment),s=D(),r&&r.c(),l=we()},m(a,u){z(e,a,u),S(a,t,u),z(i,a,u),S(a,s,u),r&&r.m(a,u),S(a,l,u),o=!0},p(a,u){const f={};u[0]&1073741837|u[1]&1&&(f.$$scope={dirty:u,ctx:a}),e.$set(f);const d={};u[0]&64&&(d.name=`indexes.${a[6]||""}`),u[0]&1073742213|u[1]&1&&(d.$$scope={dirty:u,ctx:a}),i.$set(d),a[10].length>0?r?r.p(a,u):(r=zc(a),r.c(),r.m(l.parentNode,l)):r&&(r.d(1),r=null)},i(a){o||(I(e.$$.fragment,a),I(i.$$.fragment,a),o=!0)},o(a){P(e.$$.fragment,a),P(i.$$.fragment,a),o=!1},d(a){H(e,a),a&&w(t),H(i,a),a&&w(s),r&&r.d(a),a&&w(l)}}}function U$(n){let e,t=n[5]?"Update":"Create",i,s;return{c(){e=y("h4"),i=Y(t),s=Y(" index")},m(l,o){S(l,e,o),v(e,i),v(e,s)},p(l,o){o[0]&32&&t!==(t=l[5]?"Update":"Create")&&le(i,t)},d(l){l&&w(e)}}}function Bc(n){let e,t,i;return{c(){e=y("button"),e.innerHTML='',m(e,"type","button"),m(e,"class","btn btn-sm btn-circle btn-hint btn-transparent m-r-auto")},m(s,l){S(s,e,l),t||(i=[Ee(Be.call(null,e,{text:"Delete",position:"top"})),J(e,"click",n[16])],t=!0)},p:te,d(s){s&&w(e),t=!1,De(i)}}}function W$(n){let e,t,i,s,l,o,r=n[5]!=""&&Bc(n);return{c(){r&&r.c(),e=D(),t=y("button"),t.innerHTML='Cancel',i=D(),s=y("button"),s.innerHTML='Set index',m(t,"type","button"),m(t,"class","btn btn-transparent"),m(s,"type","button"),m(s,"class","btn"),Q(s,"btn-disabled",n[9].length<=0)},m(a,u){r&&r.m(a,u),S(a,e,u),S(a,t,u),S(a,i,u),S(a,s,u),l||(o=[J(t,"click",n[17]),J(s,"click",n[18])],l=!0)},p(a,u){a[5]!=""?r?r.p(a,u):(r=Bc(a),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),u[0]&512&&Q(s,"btn-disabled",a[9].length<=0)},d(a){r&&r.d(a),a&&w(e),a&&w(t),a&&w(i),a&&w(s),l=!1,De(o)}}}function Y$(n){let e,t;const i=[{popup:!0},n[14]];let s={$$slots:{footer:[W$],header:[U$],default:[B$]},$$scope:{ctx:n}};for(let l=0;lX.name==j);x?W.removeByValue(U.columns,x):W.pushUnique(U.columns,{name:j}),t(2,p=W.buildIndex(U))}Xt(async()=>{t(8,_=!0);try{t(7,g=(await ut(()=>import("./CodeEditor-fa610c65.js"),["./CodeEditor-fa610c65.js","./index-84ab2e4b.js"],import.meta.url)).default)}catch(j){console.warn(j)}t(8,_=!1)});const M=()=>C(),E=()=>k(),A=()=>T(),L=j=>{t(3,s.unique=j.target.checked,s),t(3,s.tableName=s.tableName||(u==null?void 0:u.name),s),t(2,p=W.buildIndex(s))};function N(j){p=j,t(2,p)}const q=j=>O(j);function F(j){ne[j?"unshift":"push"](()=>{f=j,t(4,f)})}function R(j){he.call(this,n,j)}function V(j){he.call(this,n,j)}return n.$$set=j=>{e=je(je({},e),Gt(j)),t(14,r=tt(e,o)),"collection"in j&&t(0,u=j.collection)},n.$$.update=()=>{var j,U,x;n.$$.dirty[0]&1&&t(10,i=(((U=(j=u==null?void 0:u.schema)==null?void 0:j.filter(X=>!X.toDelete))==null?void 0:U.map(X=>X.name))||[]).concat(["created","updated"])),n.$$.dirty[0]&4&&t(3,s=W.parseIndex(p)),n.$$.dirty[0]&8&&t(9,l=((x=s.columns)==null?void 0:x.map(X=>X.name))||[])},[u,k,p,s,f,d,h,g,_,l,i,C,T,O,r,b,M,E,A,L,N,q,F,R,V]}class J$ extends ve{constructor(e){super(),be(this,e,K$,Y$,_e,{collection:0,show:15,hide:1},null,[-1,-1])}get show(){return this.$$.ctx[15]}get hide(){return this.$$.ctx[1]}}function Uc(n,e,t){const i=n.slice();i[10]=e[t],i[13]=t;const s=W.parseIndex(i[10]);return i[11]=s,i}function Wc(n){let e;return{c(){e=y("strong"),e.textContent="Unique:"},m(t,i){S(t,e,i)},d(t){t&&w(e)}}}function Yc(n){var p;let e,t,i,s=((p=n[11].columns)==null?void 0:p.map(Kc).join(", "))+"",l,o,r,a,u,f=n[11].unique&&Wc();function d(){return n[4](n[10],n[13])}return{c(){var h,g;e=y("button"),f&&f.c(),t=D(),i=y("span"),l=Y(s),m(i,"class","txt"),m(e,"type","button"),m(e,"class",o="label link-primary "+((g=(h=n[2].indexes)==null?void 0:h[n[13]])!=null&&g.message?"label-danger":"")+" svelte-167lbwu")},m(h,g){var _,b;S(h,e,g),f&&f.m(e,null),v(e,t),v(e,i),v(i,l),a||(u=[Ee(r=Be.call(null,e,((b=(_=n[2].indexes)==null?void 0:_[n[13]])==null?void 0:b.message)||"")),J(e,"click",d)],a=!0)},p(h,g){var _,b,k,$,C;n=h,n[11].unique?f||(f=Wc(),f.c(),f.m(e,t)):f&&(f.d(1),f=null),g&1&&s!==(s=((_=n[11].columns)==null?void 0:_.map(Kc).join(", "))+"")&&le(l,s),g&4&&o!==(o="label link-primary "+((k=(b=n[2].indexes)==null?void 0:b[n[13]])!=null&&k.message?"label-danger":"")+" svelte-167lbwu")&&m(e,"class",o),r&&jt(r.update)&&g&4&&r.update.call(null,((C=($=n[2].indexes)==null?void 0:$[n[13]])==null?void 0:C.message)||"")},d(h){h&&w(e),f&&f.d(),a=!1,De(u)}}}function Z$(n){var T,O,M;let e,t,i=(((O=(T=n[0])==null?void 0:T.indexes)==null?void 0:O.length)||0)+"",s,l,o,r,a,u,f,d,p,h,g,_,b=((M=n[0])==null?void 0:M.indexes)||[],k=[];for(let E=0;Epe(d,"collection",$)),d.$on("remove",n[8]),d.$on("submit",n[9]),{c(){e=y("div"),t=Y("Unique constraints and indexes ("),s=Y(i),l=Y(")"),o=D(),r=y("div");for(let E=0;E+ New index`,f=D(),B(d.$$.fragment),m(e,"class","section-title"),m(u,"type","button"),m(u,"class","btn btn-xs btn-transparent btn-pill btn-outline"),m(r,"class","indexes-list svelte-167lbwu")},m(E,A){S(E,e,A),v(e,t),v(e,s),v(e,l),S(E,o,A),S(E,r,A);for(let L=0;Lp=!1)),d.$set(L)},i(E){h||(I(d.$$.fragment,E),h=!0)},o(E){P(d.$$.fragment,E),h=!1},d(E){E&&w(e),E&&w(o),E&&w(r),pt(k,E),E&&w(f),n[6](null),H(d,E),g=!1,_()}}}const Kc=n=>n.name;function G$(n,e,t){let i;Ze(n,Ti,h=>t(2,i=h));let{collection:s}=e,l;function o(h,g){for(let _=0;_l==null?void 0:l.show(h,g),a=()=>l==null?void 0:l.show();function u(h){ne[h?"unshift":"push"](()=>{l=h,t(1,l)})}function f(h){s=h,t(0,s)}const d=h=>{for(let g=0;g{o(h.detail.old,h.detail.new)};return n.$$set=h=>{"collection"in h&&t(0,s=h.collection)},[s,l,i,o,r,a,u,f,d,p]}class X$ extends ve{constructor(e){super(),be(this,e,G$,Z$,_e,{collection:0})}}function Jc(n,e,t){const i=n.slice();return i[6]=e[t],i}function Zc(n){let e,t,i,s,l=n[6].label+"",o,r,a,u;function f(){return n[4](n[6])}function d(...p){return n[5](n[6],...p)}return{c(){e=y("div"),t=y("i"),i=D(),s=y("span"),o=Y(l),r=D(),m(t,"class","icon "+n[6].icon+" svelte-1gz9b6p"),m(s,"class","txt"),m(e,"tabindex","0"),m(e,"class","dropdown-item closable svelte-1gz9b6p")},m(p,h){S(p,e,h),v(e,t),v(e,i),v(e,s),v(s,o),v(e,r),a||(u=[J(e,"click",In(f)),J(e,"keydown",In(d))],a=!0)},p(p,h){n=p},d(p){p&&w(e),a=!1,De(u)}}}function Q$(n){let e,t=n[2],i=[];for(let s=0;s{o(u.value)},a=(u,f)=>{(f.code==="Enter"||f.code==="Space")&&o(u.value)};return n.$$set=u=>{"class"in u&&t(0,i=u.class)},[i,s,l,o,r,a]}class t4 extends ve{constructor(e){super(),be(this,e,e4,x$,_e,{class:0})}}const n4=n=>({interactive:n&128,hasErrors:n&64}),Gc=n=>({interactive:n[7],hasErrors:n[6]}),i4=n=>({interactive:n&128,hasErrors:n&64}),Xc=n=>({interactive:n[7],hasErrors:n[6]}),s4=n=>({interactive:n&128,hasErrors:n&64}),Qc=n=>({interactive:n[7],hasErrors:n[6]}),l4=n=>({interactive:n&128,hasErrors:n&64}),xc=n=>({interactive:n[7],hasErrors:n[6]});function ed(n){let e;return{c(){e=y("div"),e.innerHTML='',m(e,"class","drag-handle-wrapper"),m(e,"draggable","true"),m(e,"aria-label","Sort")},m(t,i){S(t,e,i)},d(t){t&&w(e)}}}function td(n){let e,t,i,s;return{c(){e=y("span"),m(e,"class","marker marker-required")},m(l,o){S(l,e,o),i||(s=Ee(t=Be.call(null,e,n[5])),i=!0)},p(l,o){t&&jt(t.update)&&o&32&&t.update.call(null,l[5])},d(l){l&&w(e),i=!1,s()}}}function o4(n){let e,t,i,s,l,o,r,a,u,f,d,p,h,g=n[0].required&&td(n);return{c(){e=y("div"),g&&g.c(),t=D(),i=y("div"),s=y("i"),o=D(),r=y("input"),m(e,"class","markers"),m(s,"class",l=W.getFieldTypeIcon(n[0].type)),m(i,"class","form-field-addon prefix no-pointer-events field-type-icon"),Q(i,"txt-disabled",!n[7]),m(r,"type","text"),r.required=!0,r.disabled=a=!n[7],r.readOnly=u=n[0].id&&n[0].system,m(r,"spellcheck","false"),r.autofocus=f=!n[0].id,m(r,"placeholder","Field name"),r.value=d=n[0].name},m(_,b){S(_,e,b),g&&g.m(e,null),S(_,t,b),S(_,i,b),v(i,s),S(_,o,b),S(_,r,b),n[16](r),n[0].id||r.focus(),p||(h=J(r,"input",n[17]),p=!0)},p(_,b){_[0].required?g?g.p(_,b):(g=td(_),g.c(),g.m(e,null)):g&&(g.d(1),g=null),b&1&&l!==(l=W.getFieldTypeIcon(_[0].type))&&m(s,"class",l),b&128&&Q(i,"txt-disabled",!_[7]),b&128&&a!==(a=!_[7])&&(r.disabled=a),b&1&&u!==(u=_[0].id&&_[0].system)&&(r.readOnly=u),b&1&&f!==(f=!_[0].id)&&(r.autofocus=f),b&1&&d!==(d=_[0].name)&&r.value!==d&&(r.value=d)},d(_){_&&w(e),g&&g.d(),_&&w(t),_&&w(i),_&&w(o),_&&w(r),n[16](null),p=!1,h()}}}function r4(n){let e;return{c(){e=y("span"),m(e,"class","separator")},m(t,i){S(t,e,i)},p:te,d(t){t&&w(e)}}}function a4(n){let e,t,i,s,l;return{c(){e=y("button"),t=y("i"),m(t,"class","ri-settings-3-line"),m(e,"type","button"),m(e,"aria-label","Toggle field options"),m(e,"class",i="btn btn-sm btn-circle options-trigger "+(n[4]?"btn-secondary":"btn-transparent")),Q(e,"btn-hint",!n[4]&&!n[6]),Q(e,"btn-danger",n[6])},m(o,r){S(o,e,r),v(e,t),s||(l=J(e,"click",n[12]),s=!0)},p(o,r){r&16&&i!==(i="btn btn-sm btn-circle options-trigger "+(o[4]?"btn-secondary":"btn-transparent"))&&m(e,"class",i),r&80&&Q(e,"btn-hint",!o[4]&&!o[6]),r&80&&Q(e,"btn-danger",o[6])},d(o){o&&w(e),s=!1,l()}}}function u4(n){let e,t,i;return{c(){e=y("button"),e.innerHTML='',m(e,"type","button"),m(e,"class","btn btn-sm btn-circle btn-warning btn-transparent options-trigger"),m(e,"aria-label","Restore")},m(s,l){S(s,e,l),t||(i=[Ee(Be.call(null,e,"Restore")),J(e,"click",n[10])],t=!0)},p:te,d(s){s&&w(e),t=!1,De(i)}}}function nd(n){let e,t,i,s,l,o,r,a,u,f,d;const p=n[14].options,h=kt(p,n,n[23],Qc),g=n[14].beforeNonempty,_=kt(g,n,n[23],Xc);r=new me({props:{class:"form-field form-field-toggle m-0",name:"requried",$$slots:{default:[f4,({uniqueId:C})=>({29:C}),({uniqueId:C})=>C?536870912:0]},$$scope:{ctx:n}}});const b=n[14].afterNonempty,k=kt(b,n,n[23],Gc);let $=!n[0].toDelete&&id(n);return{c(){e=y("div"),t=y("div"),i=y("div"),h&&h.c(),s=D(),_&&_.c(),l=D(),o=y("div"),B(r.$$.fragment),a=D(),k&&k.c(),u=D(),$&&$.c(),m(i,"class","col-sm-12 hidden-empty"),m(o,"class","col-sm-4"),m(t,"class","grid grid-sm"),m(e,"class","schema-field-options")},m(C,T){S(C,e,T),v(e,t),v(t,i),h&&h.m(i,null),v(t,s),_&&_.m(t,null),v(t,l),v(t,o),z(r,o,null),v(t,a),k&&k.m(t,null),v(t,u),$&&$.m(t,null),d=!0},p(C,T){h&&h.p&&(!d||T&8388800)&&St(h,p,C,C[23],d?wt(p,C[23],T,s4):$t(C[23]),Qc),_&&_.p&&(!d||T&8388800)&&St(_,g,C,C[23],d?wt(g,C[23],T,i4):$t(C[23]),Xc);const O={};T&545259553&&(O.$$scope={dirty:T,ctx:C}),r.$set(O),k&&k.p&&(!d||T&8388800)&&St(k,b,C,C[23],d?wt(b,C[23],T,n4):$t(C[23]),Gc),C[0].toDelete?$&&(ue(),P($,1,1,()=>{$=null}),fe()):$?($.p(C,T),T&1&&I($,1)):($=id(C),$.c(),I($,1),$.m(t,null))},i(C){d||(I(h,C),I(_,C),I(r.$$.fragment,C),I(k,C),I($),C&&et(()=>{d&&(f||(f=Ve(e,rt,{duration:150},!0)),f.run(1))}),d=!0)},o(C){P(h,C),P(_,C),P(r.$$.fragment,C),P(k,C),P($),C&&(f||(f=Ve(e,rt,{duration:150},!1)),f.run(0)),d=!1},d(C){C&&w(e),h&&h.d(C),_&&_.d(C),H(r),k&&k.d(C),$&&$.d(),C&&f&&f.end()}}}function f4(n){let e,t,i,s,l,o,r,a,u,f,d,p;return{c(){e=y("input"),i=D(),s=y("label"),l=y("span"),o=Y(n[5]),r=D(),a=y("i"),m(e,"type","checkbox"),m(e,"id",t=n[29]),m(l,"class","txt"),m(a,"class","ri-information-line link-hint"),m(s,"for",f=n[29])},m(h,g){S(h,e,g),e.checked=n[0].required,S(h,i,g),S(h,s,g),v(s,l),v(l,o),v(s,r),v(s,a),d||(p=[J(e,"change",n[18]),Ee(u=Be.call(null,a,{text:`Requires the field value NOT to be ${W.zeroDefaultStr(n[0])}.`,position:"right"}))],d=!0)},p(h,g){g&536870912&&t!==(t=h[29])&&m(e,"id",t),g&1&&(e.checked=h[0].required),g&32&&le(o,h[5]),u&&jt(u.update)&&g&1&&u.update.call(null,{text:`Requires the field value NOT to be ${W.zeroDefaultStr(h[0])}.`,position:"right"}),g&536870912&&f!==(f=h[29])&&m(s,"for",f)},d(h){h&&w(e),h&&w(i),h&&w(s),d=!1,De(p)}}}function id(n){let e,t,i,s,l,o,r,a,u;return a=new Jn({props:{class:"dropdown dropdown-sm dropdown-upside dropdown-right dropdown-nowrap no-min-width",$$slots:{default:[c4]},$$scope:{ctx:n}}}),{c(){e=y("div"),t=y("div"),i=D(),s=y("div"),l=y("button"),o=y("i"),r=D(),B(a.$$.fragment),m(t,"class","flex-fill"),m(o,"class","ri-more-line"),m(l,"type","button"),m(l,"aria-label","More"),m(l,"class","btn btn-circle btn-sm btn-transparent"),m(s,"class","inline-flex flex-gap-sm flex-nowrap"),m(e,"class","col-sm-4 m-l-auto txt-right")},m(f,d){S(f,e,d),v(e,t),v(e,i),v(e,s),v(s,l),v(l,o),v(l,r),z(a,l,null),u=!0},p(f,d){const p={};d&8388608&&(p.$$scope={dirty:d,ctx:f}),a.$set(p)},i(f){u||(I(a.$$.fragment,f),u=!0)},o(f){P(a.$$.fragment,f),u=!1},d(f){f&&w(e),H(a)}}}function c4(n){let e,t,i;return{c(){e=y("button"),e.innerHTML='Remove',m(e,"type","button"),m(e,"class","dropdown-item txt-right")},m(s,l){S(s,e,l),t||(i=J(e,"click",n[9]),t=!0)},p:te,d(s){s&&w(e),t=!1,i()}}}function d4(n){let e,t,i,s,l,o,r,a,u,f,d,p=n[7]&&ed();s=new me({props:{class:"form-field required m-0 "+(n[7]?"":"disabled"),name:"schema."+n[1]+".name",inlineError:!0,$$slots:{default:[o4]},$$scope:{ctx:n}}});const h=n[14].default,g=kt(h,n,n[23],xc),_=g||r4();function b(T,O){if(T[0].toDelete)return u4;if(T[7])return a4}let k=b(n),$=k&&k(n),C=n[7]&&n[4]&&nd(n);return{c(){e=y("div"),t=y("div"),p&&p.c(),i=D(),B(s.$$.fragment),l=D(),_&&_.c(),o=D(),$&&$.c(),r=D(),C&&C.c(),m(t,"class","schema-field-header"),m(e,"draggable",!0),m(e,"class","schema-field"),Q(e,"required",n[0].required),Q(e,"expanded",n[7]&&n[4]),Q(e,"deleted",n[0].toDelete),Q(e,"drag-over",n[3])},m(T,O){S(T,e,O),v(e,t),p&&p.m(t,null),v(t,i),z(s,t,null),v(t,l),_&&_.m(t,null),v(t,o),$&&$.m(t,null),v(e,r),C&&C.m(e,null),u=!0,f||(d=[J(e,"dragstart",n[19]),J(e,"dragenter",n[20]),J(e,"drop",xe(n[21])),J(e,"dragleave",n[22]),J(e,"dragover",xe(n[15]))],f=!0)},p(T,[O]){T[7]?p||(p=ed(),p.c(),p.m(t,i)):p&&(p.d(1),p=null);const M={};O&128&&(M.class="form-field required m-0 "+(T[7]?"":"disabled")),O&2&&(M.name="schema."+T[1]+".name"),O&8388773&&(M.$$scope={dirty:O,ctx:T}),s.$set(M),g&&g.p&&(!u||O&8388800)&&St(g,h,T,T[23],u?wt(h,T[23],O,l4):$t(T[23]),xc),k===(k=b(T))&&$?$.p(T,O):($&&$.d(1),$=k&&k(T),$&&($.c(),$.m(t,null))),T[7]&&T[4]?C?(C.p(T,O),O&144&&I(C,1)):(C=nd(T),C.c(),I(C,1),C.m(e,null)):C&&(ue(),P(C,1,1,()=>{C=null}),fe()),(!u||O&1)&&Q(e,"required",T[0].required),(!u||O&144)&&Q(e,"expanded",T[7]&&T[4]),(!u||O&1)&&Q(e,"deleted",T[0].toDelete),(!u||O&8)&&Q(e,"drag-over",T[3])},i(T){u||(I(s.$$.fragment,T),I(_,T),I(C),T&&et(()=>{u&&(a||(a=Ve(e,rt,{duration:150},!0)),a.run(1))}),u=!0)},o(T){P(s.$$.fragment,T),P(_,T),P(C),T&&(a||(a=Ve(e,rt,{duration:150},!1)),a.run(0)),u=!1},d(T){T&&w(e),p&&p.d(),H(s),_&&_.d(T),$&&$.d(),C&&C.d(),T&&a&&a.end(),f=!1,De(d)}}}let Dr=[];function p4(n,e,t){let i,s,l,o;Ze(n,Ti,U=>t(13,o=U));let{$$slots:r={},$$scope:a}=e,{key:u=""}=e,{field:f=new wn}=e,d,p=!1,h=!1;const g="f_"+W.randomString(8),_=Tt(),b={bool:"Nonfalsey",number:"Nonzero"};function k(){f.id?t(0,f.toDelete=!0,f):_("remove")}function $(){t(0,f.toDelete=!1,f),tn({})}function C(U){return W.slugify(U)}function T(){t(4,h=!0),E()}function O(){t(4,h=!1)}function M(){h?O():T()}function E(){for(let U of Dr)U.id!=g&&U.collapse()}Xt(()=>(Dr.push({id:g,collapse:O}),f.onMountSelect&&(t(0,f.onMountSelect=!1,f),d==null||d.select()),()=>{W.removeByKey(Dr,"id",g)}));function A(U){he.call(this,n,U)}function L(U){ne[U?"unshift":"push"](()=>{d=U,t(2,d)})}const N=U=>{const x=f.name;t(0,f.name=C(U.target.value),f),U.target.value=f.name,_("rename",{oldName:x,newName:f.name})};function q(){f.required=this.checked,t(0,f)}const F=U=>{if(!U.target.classList.contains("drag-handle-wrapper")){U.preventDefault();return}const x=document.createElement("div");U.dataTransfer.setDragImage(x,0,0),i&&_("dragstart",U)},R=U=>{i&&(t(3,p=!0),_("dragenter",U))},V=U=>{i&&(t(3,p=!1),_("drop",U))},j=U=>{i&&(t(3,p=!1),_("dragleave",U))};return n.$$set=U=>{"key"in U&&t(1,u=U.key),"field"in U&&t(0,f=U.field),"$$scope"in U&&t(23,a=U.$$scope)},n.$$.update=()=>{n.$$.dirty&1&&f.toDelete&&f.originalName&&f.name!==f.originalName&&t(0,f.name=f.originalName,f),n.$$.dirty&1&&!f.originalName&&f.name&&t(0,f.originalName=f.name,f),n.$$.dirty&1&&typeof f.toDelete>"u"&&t(0,f.toDelete=!1,f),n.$$.dirty&1&&f.required&&t(0,f.nullable=!1,f),n.$$.dirty&1&&t(7,i=!f.toDelete&&!(f.id&&f.system)),n.$$.dirty&8194&&t(6,s=!W.isEmpty(W.getNestedVal(o,`schema.${u}`))),n.$$.dirty&1&&t(5,l=b[f==null?void 0:f.type]||"Nonempty")},[f,u,d,p,h,l,s,i,_,k,$,C,M,o,r,A,L,N,q,F,R,V,j,a]}class pi extends ve{constructor(e){super(),be(this,e,p4,d4,_e,{key:1,field:0})}}function m4(n){let e,t,i,s,l,o,r,a;return{c(){e=y("label"),t=Y("Min length"),s=D(),l=y("input"),m(e,"for",i=n[13]),m(l,"type","number"),m(l,"id",o=n[13]),m(l,"step","1"),m(l,"min","0")},m(u,f){S(u,e,f),v(e,t),S(u,s,f),S(u,l,f),ae(l,n[0].options.min),r||(a=J(l,"input",n[3]),r=!0)},p(u,f){f&8192&&i!==(i=u[13])&&m(e,"for",i),f&8192&&o!==(o=u[13])&&m(l,"id",o),f&1&&mt(l.value)!==u[0].options.min&&ae(l,u[0].options.min)},d(u){u&&w(e),u&&w(s),u&&w(l),r=!1,a()}}}function h4(n){let e,t,i,s,l,o,r,a,u;return{c(){e=y("label"),t=Y("Max length"),s=D(),l=y("input"),m(e,"for",i=n[13]),m(l,"type","number"),m(l,"id",o=n[13]),m(l,"step","1"),m(l,"min",r=n[0].options.min||0)},m(f,d){S(f,e,d),v(e,t),S(f,s,d),S(f,l,d),ae(l,n[0].options.max),a||(u=J(l,"input",n[4]),a=!0)},p(f,d){d&8192&&i!==(i=f[13])&&m(e,"for",i),d&8192&&o!==(o=f[13])&&m(l,"id",o),d&1&&r!==(r=f[0].options.min||0)&&m(l,"min",r),d&1&&mt(l.value)!==f[0].options.max&&ae(l,f[0].options.max)},d(f){f&&w(e),f&&w(s),f&&w(l),a=!1,u()}}}function _4(n){let e,t,i,s,l,o,r,a;return{c(){e=y("label"),t=Y("Regex pattern"),s=D(),l=y("input"),m(e,"for",i=n[13]),m(l,"type","text"),m(l,"id",o=n[13]),m(l,"placeholder","Valid Go regular expression, eg. ^w+$")},m(u,f){S(u,e,f),v(e,t),S(u,s,f),S(u,l,f),ae(l,n[0].options.pattern),r||(a=J(l,"input",n[5]),r=!0)},p(u,f){f&8192&&i!==(i=u[13])&&m(e,"for",i),f&8192&&o!==(o=u[13])&&m(l,"id",o),f&1&&l.value!==u[0].options.pattern&&ae(l,u[0].options.pattern)},d(u){u&&w(e),u&&w(s),u&&w(l),r=!1,a()}}}function g4(n){let e,t,i,s,l,o,r,a,u,f;return i=new me({props:{class:"form-field",name:"schema."+n[1]+".options.min",$$slots:{default:[m4,({uniqueId:d})=>({13:d}),({uniqueId:d})=>d?8192:0]},$$scope:{ctx:n}}}),o=new me({props:{class:"form-field",name:"schema."+n[1]+".options.max",$$slots:{default:[h4,({uniqueId:d})=>({13:d}),({uniqueId:d})=>d?8192:0]},$$scope:{ctx:n}}}),u=new me({props:{class:"form-field",name:"schema."+n[1]+".options.pattern",$$slots:{default:[_4,({uniqueId:d})=>({13:d}),({uniqueId:d})=>d?8192:0]},$$scope:{ctx:n}}}),{c(){e=y("div"),t=y("div"),B(i.$$.fragment),s=D(),l=y("div"),B(o.$$.fragment),r=D(),a=y("div"),B(u.$$.fragment),m(t,"class","col-sm-3"),m(l,"class","col-sm-3"),m(a,"class","col-sm-6"),m(e,"class","grid grid-sm")},m(d,p){S(d,e,p),v(e,t),z(i,t,null),v(e,s),v(e,l),z(o,l,null),v(e,r),v(e,a),z(u,a,null),f=!0},p(d,p){const h={};p&2&&(h.name="schema."+d[1]+".options.min"),p&24577&&(h.$$scope={dirty:p,ctx:d}),i.$set(h);const g={};p&2&&(g.name="schema."+d[1]+".options.max"),p&24577&&(g.$$scope={dirty:p,ctx:d}),o.$set(g);const _={};p&2&&(_.name="schema."+d[1]+".options.pattern"),p&24577&&(_.$$scope={dirty:p,ctx:d}),u.$set(_)},i(d){f||(I(i.$$.fragment,d),I(o.$$.fragment,d),I(u.$$.fragment,d),f=!0)},o(d){P(i.$$.fragment,d),P(o.$$.fragment,d),P(u.$$.fragment,d),f=!1},d(d){d&&w(e),H(i),H(o),H(u)}}}function b4(n){let e,t,i;const s=[{key:n[1]},n[2]];function l(r){n[6](r)}let o={$$slots:{options:[g4]},$$scope:{ctx:n}};for(let r=0;rpe(e,"field",l)),e.$on("rename",n[7]),e.$on("remove",n[8]),e.$on("drop",n[9]),e.$on("dragstart",n[10]),e.$on("dragenter",n[11]),e.$on("dragleave",n[12]),{c(){B(e.$$.fragment)},m(r,a){z(e,r,a),i=!0},p(r,[a]){const u=a&6?Ot(s,[a&2&&{key:r[1]},a&4&&Qt(r[2])]):{};a&16387&&(u.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,u.field=r[0],ge(()=>t=!1)),e.$set(u)},i(r){i||(I(e.$$.fragment,r),i=!0)},o(r){P(e.$$.fragment,r),i=!1},d(r){H(e,r)}}}function v4(n,e,t){const i=["field","key"];let s=tt(e,i),{field:l}=e,{key:o=""}=e;function r(){l.options.min=mt(this.value),t(0,l)}function a(){l.options.max=mt(this.value),t(0,l)}function u(){l.options.pattern=this.value,t(0,l)}function f(k){l=k,t(0,l)}function d(k){he.call(this,n,k)}function p(k){he.call(this,n,k)}function h(k){he.call(this,n,k)}function g(k){he.call(this,n,k)}function _(k){he.call(this,n,k)}function b(k){he.call(this,n,k)}return n.$$set=k=>{e=je(je({},e),Gt(k)),t(2,s=tt(e,i)),"field"in k&&t(0,l=k.field),"key"in k&&t(1,o=k.key)},[l,o,s,r,a,u,f,d,p,h,g,_,b]}class y4 extends ve{constructor(e){super(),be(this,e,v4,b4,_e,{field:0,key:1})}}function k4(n){let e,t,i,s,l,o,r,a;return{c(){e=y("label"),t=Y("Min"),s=D(),l=y("input"),m(e,"for",i=n[12]),m(l,"type","number"),m(l,"id",o=n[12])},m(u,f){S(u,e,f),v(e,t),S(u,s,f),S(u,l,f),ae(l,n[0].options.min),r||(a=J(l,"input",n[3]),r=!0)},p(u,f){f&4096&&i!==(i=u[12])&&m(e,"for",i),f&4096&&o!==(o=u[12])&&m(l,"id",o),f&1&&mt(l.value)!==u[0].options.min&&ae(l,u[0].options.min)},d(u){u&&w(e),u&&w(s),u&&w(l),r=!1,a()}}}function w4(n){let e,t,i,s,l,o,r,a,u;return{c(){e=y("label"),t=Y("Max"),s=D(),l=y("input"),m(e,"for",i=n[12]),m(l,"type","number"),m(l,"id",o=n[12]),m(l,"min",r=n[0].options.min)},m(f,d){S(f,e,d),v(e,t),S(f,s,d),S(f,l,d),ae(l,n[0].options.max),a||(u=J(l,"input",n[4]),a=!0)},p(f,d){d&4096&&i!==(i=f[12])&&m(e,"for",i),d&4096&&o!==(o=f[12])&&m(l,"id",o),d&1&&r!==(r=f[0].options.min)&&m(l,"min",r),d&1&&mt(l.value)!==f[0].options.max&&ae(l,f[0].options.max)},d(f){f&&w(e),f&&w(s),f&&w(l),a=!1,u()}}}function S4(n){let e,t,i,s,l,o,r;return i=new me({props:{class:"form-field",name:"schema."+n[1]+".options.min",$$slots:{default:[k4,({uniqueId:a})=>({12:a}),({uniqueId:a})=>a?4096:0]},$$scope:{ctx:n}}}),o=new me({props:{class:"form-field",name:"schema."+n[1]+".options.max",$$slots:{default:[w4,({uniqueId:a})=>({12:a}),({uniqueId:a})=>a?4096:0]},$$scope:{ctx:n}}}),{c(){e=y("div"),t=y("div"),B(i.$$.fragment),s=D(),l=y("div"),B(o.$$.fragment),m(t,"class","col-sm-6"),m(l,"class","col-sm-6"),m(e,"class","grid grid-sm")},m(a,u){S(a,e,u),v(e,t),z(i,t,null),v(e,s),v(e,l),z(o,l,null),r=!0},p(a,u){const f={};u&2&&(f.name="schema."+a[1]+".options.min"),u&12289&&(f.$$scope={dirty:u,ctx:a}),i.$set(f);const d={};u&2&&(d.name="schema."+a[1]+".options.max"),u&12289&&(d.$$scope={dirty:u,ctx:a}),o.$set(d)},i(a){r||(I(i.$$.fragment,a),I(o.$$.fragment,a),r=!0)},o(a){P(i.$$.fragment,a),P(o.$$.fragment,a),r=!1},d(a){a&&w(e),H(i),H(o)}}}function $4(n){let e,t,i;const s=[{key:n[1]},n[2]];function l(r){n[5](r)}let o={$$slots:{options:[S4]},$$scope:{ctx:n}};for(let r=0;rpe(e,"field",l)),e.$on("rename",n[6]),e.$on("remove",n[7]),e.$on("drop",n[8]),e.$on("dragstart",n[9]),e.$on("dragenter",n[10]),e.$on("dragleave",n[11]),{c(){B(e.$$.fragment)},m(r,a){z(e,r,a),i=!0},p(r,[a]){const u=a&6?Ot(s,[a&2&&{key:r[1]},a&4&&Qt(r[2])]):{};a&8195&&(u.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,u.field=r[0],ge(()=>t=!1)),e.$set(u)},i(r){i||(I(e.$$.fragment,r),i=!0)},o(r){P(e.$$.fragment,r),i=!1},d(r){H(e,r)}}}function T4(n,e,t){const i=["field","key"];let s=tt(e,i),{field:l}=e,{key:o=""}=e;function r(){l.options.min=mt(this.value),t(0,l)}function a(){l.options.max=mt(this.value),t(0,l)}function u(b){l=b,t(0,l)}function f(b){he.call(this,n,b)}function d(b){he.call(this,n,b)}function p(b){he.call(this,n,b)}function h(b){he.call(this,n,b)}function g(b){he.call(this,n,b)}function _(b){he.call(this,n,b)}return n.$$set=b=>{e=je(je({},e),Gt(b)),t(2,s=tt(e,i)),"field"in b&&t(0,l=b.field),"key"in b&&t(1,o=b.key)},[l,o,s,r,a,u,f,d,p,h,g,_]}class C4 extends ve{constructor(e){super(),be(this,e,T4,$4,_e,{field:0,key:1})}}function M4(n){let e,t,i;const s=[{key:n[1]},n[2]];function l(r){n[3](r)}let o={};for(let r=0;rpe(e,"field",l)),e.$on("rename",n[4]),e.$on("remove",n[5]),e.$on("drop",n[6]),e.$on("dragstart",n[7]),e.$on("dragenter",n[8]),e.$on("dragleave",n[9]),{c(){B(e.$$.fragment)},m(r,a){z(e,r,a),i=!0},p(r,[a]){const u=a&6?Ot(s,[a&2&&{key:r[1]},a&4&&Qt(r[2])]):{};!t&&a&1&&(t=!0,u.field=r[0],ge(()=>t=!1)),e.$set(u)},i(r){i||(I(e.$$.fragment,r),i=!0)},o(r){P(e.$$.fragment,r),i=!1},d(r){H(e,r)}}}function O4(n,e,t){const i=["field","key"];let s=tt(e,i),{field:l}=e,{key:o=""}=e;function r(g){l=g,t(0,l)}function a(g){he.call(this,n,g)}function u(g){he.call(this,n,g)}function f(g){he.call(this,n,g)}function d(g){he.call(this,n,g)}function p(g){he.call(this,n,g)}function h(g){he.call(this,n,g)}return n.$$set=g=>{e=je(je({},e),Gt(g)),t(2,s=tt(e,i)),"field"in g&&t(0,l=g.field),"key"in g&&t(1,o=g.key)},[l,o,s,r,a,u,f,d,p,h]}class E4 extends ve{constructor(e){super(),be(this,e,O4,M4,_e,{field:0,key:1})}}function D4(n){let e,t,i,s,l=[{type:t=n[5].type||"text"},{value:n[4]},{disabled:n[3]},{readOnly:n[2]},n[5]],o={};for(let r=0;r{t(0,o=W.splitNonEmpty(d.target.value,r))};return n.$$set=d=>{e=je(je({},e),Gt(d)),t(5,l=tt(e,s)),"value"in d&&t(0,o=d.value),"separator"in d&&t(1,r=d.separator),"readonly"in d&&t(2,a=d.readonly),"disabled"in d&&t(3,u=d.disabled)},n.$$.update=()=>{n.$$.dirty&1&&t(4,i=(o||[]).join(", "))},[o,r,a,u,i,l,f]}class zs extends ve{constructor(e){super(),be(this,e,A4,D4,_e,{value:0,separator:1,readonly:2,disabled:3})}}function I4(n){let e,t,i,s,l,o,r,a,u,f,d,p,h;function g(b){n[3](b)}let _={id:n[12],disabled:!W.isEmpty(n[0].options.onlyDomains)};return n[0].options.exceptDomains!==void 0&&(_.value=n[0].options.exceptDomains),r=new zs({props:_}),ne.push(()=>pe(r,"value",g)),{c(){e=y("label"),t=y("span"),t.textContent="Except domains",i=D(),s=y("i"),o=D(),B(r.$$.fragment),u=D(),f=y("div"),f.textContent="Use comma as separator.",m(t,"class","txt"),m(s,"class","ri-information-line link-hint"),m(e,"for",l=n[12]),m(f,"class","help-block")},m(b,k){S(b,e,k),v(e,t),v(e,i),v(e,s),S(b,o,k),z(r,b,k),S(b,u,k),S(b,f,k),d=!0,p||(h=Ee(Be.call(null,s,{text:`List of domains that are NOT allowed. This field is disabled if "Only domains" is set.`,position:"top"})),p=!0)},p(b,k){(!d||k&4096&&l!==(l=b[12]))&&m(e,"for",l);const $={};k&4096&&($.id=b[12]),k&1&&($.disabled=!W.isEmpty(b[0].options.onlyDomains)),!a&&k&1&&(a=!0,$.value=b[0].options.exceptDomains,ge(()=>a=!1)),r.$set($)},i(b){d||(I(r.$$.fragment,b),d=!0)},o(b){P(r.$$.fragment,b),d=!1},d(b){b&&w(e),b&&w(o),H(r,b),b&&w(u),b&&w(f),p=!1,h()}}}function L4(n){let e,t,i,s,l,o,r,a,u,f,d,p,h;function g(b){n[4](b)}let _={id:n[12]+".options.onlyDomains",disabled:!W.isEmpty(n[0].options.exceptDomains)};return n[0].options.onlyDomains!==void 0&&(_.value=n[0].options.onlyDomains),r=new zs({props:_}),ne.push(()=>pe(r,"value",g)),{c(){e=y("label"),t=y("span"),t.textContent="Only domains",i=D(),s=y("i"),o=D(),B(r.$$.fragment),u=D(),f=y("div"),f.textContent="Use comma as separator.",m(t,"class","txt"),m(s,"class","ri-information-line link-hint"),m(e,"for",l=n[12]+".options.onlyDomains"),m(f,"class","help-block")},m(b,k){S(b,e,k),v(e,t),v(e,i),v(e,s),S(b,o,k),z(r,b,k),S(b,u,k),S(b,f,k),d=!0,p||(h=Ee(Be.call(null,s,{text:`List of domains that are ONLY allowed. This field is disabled if "Except domains" is set.`,position:"top"})),p=!0)},p(b,k){(!d||k&4096&&l!==(l=b[12]+".options.onlyDomains"))&&m(e,"for",l);const $={};k&4096&&($.id=b[12]+".options.onlyDomains"),k&1&&($.disabled=!W.isEmpty(b[0].options.exceptDomains)),!a&&k&1&&(a=!0,$.value=b[0].options.onlyDomains,ge(()=>a=!1)),r.$set($)},i(b){d||(I(r.$$.fragment,b),d=!0)},o(b){P(r.$$.fragment,b),d=!1},d(b){b&&w(e),b&&w(o),H(r,b),b&&w(u),b&&w(f),p=!1,h()}}}function P4(n){let e,t,i,s,l,o,r;return i=new me({props:{class:"form-field",name:"schema."+n[1]+".options.exceptDomains",$$slots:{default:[I4,({uniqueId:a})=>({12:a}),({uniqueId:a})=>a?4096:0]},$$scope:{ctx:n}}}),o=new me({props:{class:"form-field",name:"schema."+n[1]+".options.onlyDomains",$$slots:{default:[L4,({uniqueId:a})=>({12:a}),({uniqueId:a})=>a?4096:0]},$$scope:{ctx:n}}}),{c(){e=y("div"),t=y("div"),B(i.$$.fragment),s=D(),l=y("div"),B(o.$$.fragment),m(t,"class","col-sm-6"),m(l,"class","col-sm-6"),m(e,"class","grid grid-sm")},m(a,u){S(a,e,u),v(e,t),z(i,t,null),v(e,s),v(e,l),z(o,l,null),r=!0},p(a,u){const f={};u&2&&(f.name="schema."+a[1]+".options.exceptDomains"),u&12289&&(f.$$scope={dirty:u,ctx:a}),i.$set(f);const d={};u&2&&(d.name="schema."+a[1]+".options.onlyDomains"),u&12289&&(d.$$scope={dirty:u,ctx:a}),o.$set(d)},i(a){r||(I(i.$$.fragment,a),I(o.$$.fragment,a),r=!0)},o(a){P(i.$$.fragment,a),P(o.$$.fragment,a),r=!1},d(a){a&&w(e),H(i),H(o)}}}function N4(n){let e,t,i;const s=[{key:n[1]},n[2]];function l(r){n[5](r)}let o={$$slots:{options:[P4]},$$scope:{ctx:n}};for(let r=0;rpe(e,"field",l)),e.$on("rename",n[6]),e.$on("remove",n[7]),e.$on("drop",n[8]),e.$on("dragstart",n[9]),e.$on("dragenter",n[10]),e.$on("dragleave",n[11]),{c(){B(e.$$.fragment)},m(r,a){z(e,r,a),i=!0},p(r,[a]){const u=a&6?Ot(s,[a&2&&{key:r[1]},a&4&&Qt(r[2])]):{};a&8195&&(u.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,u.field=r[0],ge(()=>t=!1)),e.$set(u)},i(r){i||(I(e.$$.fragment,r),i=!0)},o(r){P(e.$$.fragment,r),i=!1},d(r){H(e,r)}}}function F4(n,e,t){const i=["field","key"];let s=tt(e,i),{field:l}=e,{key:o=""}=e;function r(b){n.$$.not_equal(l.options.exceptDomains,b)&&(l.options.exceptDomains=b,t(0,l))}function a(b){n.$$.not_equal(l.options.onlyDomains,b)&&(l.options.onlyDomains=b,t(0,l))}function u(b){l=b,t(0,l)}function f(b){he.call(this,n,b)}function d(b){he.call(this,n,b)}function p(b){he.call(this,n,b)}function h(b){he.call(this,n,b)}function g(b){he.call(this,n,b)}function _(b){he.call(this,n,b)}return n.$$set=b=>{e=je(je({},e),Gt(b)),t(2,s=tt(e,i)),"field"in b&&t(0,l=b.field),"key"in b&&t(1,o=b.key)},[l,o,s,r,a,u,f,d,p,h,g,_]}class k1 extends ve{constructor(e){super(),be(this,e,F4,N4,_e,{field:0,key:1})}}function R4(n){let e,t,i;const s=[{key:n[1]},n[2]];function l(r){n[3](r)}let o={};for(let r=0;rpe(e,"field",l)),e.$on("rename",n[4]),e.$on("remove",n[5]),e.$on("drop",n[6]),e.$on("dragstart",n[7]),e.$on("dragenter",n[8]),e.$on("dragleave",n[9]),{c(){B(e.$$.fragment)},m(r,a){z(e,r,a),i=!0},p(r,[a]){const u=a&6?Ot(s,[a&2&&{key:r[1]},a&4&&Qt(r[2])]):{};!t&&a&1&&(t=!0,u.field=r[0],ge(()=>t=!1)),e.$set(u)},i(r){i||(I(e.$$.fragment,r),i=!0)},o(r){P(e.$$.fragment,r),i=!1},d(r){H(e,r)}}}function q4(n,e,t){const i=["field","key"];let s=tt(e,i),{field:l}=e,{key:o=""}=e;function r(g){l=g,t(0,l)}function a(g){he.call(this,n,g)}function u(g){he.call(this,n,g)}function f(g){he.call(this,n,g)}function d(g){he.call(this,n,g)}function p(g){he.call(this,n,g)}function h(g){he.call(this,n,g)}return n.$$set=g=>{e=je(je({},e),Gt(g)),t(2,s=tt(e,i)),"field"in g&&t(0,l=g.field),"key"in g&&t(1,o=g.key)},[l,o,s,r,a,u,f,d,p,h]}class j4 extends ve{constructor(e){super(),be(this,e,q4,R4,_e,{field:0,key:1})}}function V4(n){let e,t,i;const s=[{key:n[1]},n[2]];function l(r){n[3](r)}let o={};for(let r=0;rpe(e,"field",l)),e.$on("rename",n[4]),e.$on("remove",n[5]),e.$on("drop",n[6]),e.$on("dragstart",n[7]),e.$on("dragenter",n[8]),e.$on("dragleave",n[9]),{c(){B(e.$$.fragment)},m(r,a){z(e,r,a),i=!0},p(r,[a]){const u=a&6?Ot(s,[a&2&&{key:r[1]},a&4&&Qt(r[2])]):{};!t&&a&1&&(t=!0,u.field=r[0],ge(()=>t=!1)),e.$set(u)},i(r){i||(I(e.$$.fragment,r),i=!0)},o(r){P(e.$$.fragment,r),i=!1},d(r){H(e,r)}}}function z4(n,e,t){const i=["field","key"];let s=tt(e,i),{field:l}=e,{key:o=""}=e;function r(g){l=g,t(0,l)}function a(g){he.call(this,n,g)}function u(g){he.call(this,n,g)}function f(g){he.call(this,n,g)}function d(g){he.call(this,n,g)}function p(g){he.call(this,n,g)}function h(g){he.call(this,n,g)}return n.$$set=g=>{e=je(je({},e),Gt(g)),t(2,s=tt(e,i)),"field"in g&&t(0,l=g.field),"key"in g&&t(1,o=g.key)},[l,o,s,r,a,u,f,d,p,h]}class H4 extends ve{constructor(e){super(),be(this,e,z4,V4,_e,{field:0,key:1})}}var Ar=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],Ms={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:typeof window=="object"&&window.navigator.userAgent.indexOf("MSIE")===-1,ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(n){return typeof console<"u"&&console.warn(n)},getWeek:function(n){var e=new Date(n.getTime());e.setHours(0,0,0,0),e.setDate(e.getDate()+3-(e.getDay()+6)%7);var t=new Date(e.getFullYear(),0,4);return 1+Math.round(((e.getTime()-t.getTime())/864e5-3+(t.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},kl={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(n){var e=n%100;if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},gn=function(n,e){return e===void 0&&(e=2),("000"+n).slice(e*-1)},Vn=function(n){return n===!0?1:0};function sd(n,e){var t;return function(){var i=this,s=arguments;clearTimeout(t),t=setTimeout(function(){return n.apply(i,s)},e)}}var Ir=function(n){return n instanceof Array?n:[n]};function pn(n,e,t){if(t===!0)return n.classList.add(e);n.classList.remove(e)}function ct(n,e,t){var i=window.document.createElement(n);return e=e||"",t=t||"",i.className=e,t!==void 0&&(i.textContent=t),i}function so(n){for(;n.firstChild;)n.removeChild(n.firstChild)}function w1(n,e){if(e(n))return n;if(n.parentNode)return w1(n.parentNode,e)}function lo(n,e){var t=ct("div","numInputWrapper"),i=ct("input","numInput "+n),s=ct("span","arrowUp"),l=ct("span","arrowDown");if(navigator.userAgent.indexOf("MSIE 9.0")===-1?i.type="number":(i.type="text",i.pattern="\\d*"),e!==void 0)for(var o in e)i.setAttribute(o,e[o]);return t.appendChild(i),t.appendChild(s),t.appendChild(l),t}function Mn(n){try{if(typeof n.composedPath=="function"){var e=n.composedPath();return e[0]}return n.target}catch{return n.target}}var Lr=function(){},Fo=function(n,e,t){return t.months[e?"shorthand":"longhand"][n]},B4={D:Lr,F:function(n,e,t){n.setMonth(t.months.longhand.indexOf(e))},G:function(n,e){n.setHours((n.getHours()>=12?12:0)+parseFloat(e))},H:function(n,e){n.setHours(parseFloat(e))},J:function(n,e){n.setDate(parseFloat(e))},K:function(n,e,t){n.setHours(n.getHours()%12+12*Vn(new RegExp(t.amPM[1],"i").test(e)))},M:function(n,e,t){n.setMonth(t.months.shorthand.indexOf(e))},S:function(n,e){n.setSeconds(parseFloat(e))},U:function(n,e){return new Date(parseFloat(e)*1e3)},W:function(n,e,t){var i=parseInt(e),s=new Date(n.getFullYear(),0,2+(i-1)*7,0,0,0,0);return s.setDate(s.getDate()-s.getDay()+t.firstDayOfWeek),s},Y:function(n,e){n.setFullYear(parseFloat(e))},Z:function(n,e){return new Date(e)},d:function(n,e){n.setDate(parseFloat(e))},h:function(n,e){n.setHours((n.getHours()>=12?12:0)+parseFloat(e))},i:function(n,e){n.setMinutes(parseFloat(e))},j:function(n,e){n.setDate(parseFloat(e))},l:Lr,m:function(n,e){n.setMonth(parseFloat(e)-1)},n:function(n,e){n.setMonth(parseFloat(e)-1)},s:function(n,e){n.setSeconds(parseFloat(e))},u:function(n,e){return new Date(parseFloat(e))},w:Lr,y:function(n,e){n.setFullYear(2e3+parseFloat(e))}},es={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},dl={Z:function(n){return n.toISOString()},D:function(n,e,t){return e.weekdays.shorthand[dl.w(n,e,t)]},F:function(n,e,t){return Fo(dl.n(n,e,t)-1,!1,e)},G:function(n,e,t){return gn(dl.h(n,e,t))},H:function(n){return gn(n.getHours())},J:function(n,e){return e.ordinal!==void 0?n.getDate()+e.ordinal(n.getDate()):n.getDate()},K:function(n,e){return e.amPM[Vn(n.getHours()>11)]},M:function(n,e){return Fo(n.getMonth(),!0,e)},S:function(n){return gn(n.getSeconds())},U:function(n){return n.getTime()/1e3},W:function(n,e,t){return t.getWeek(n)},Y:function(n){return gn(n.getFullYear(),4)},d:function(n){return gn(n.getDate())},h:function(n){return n.getHours()%12?n.getHours()%12:12},i:function(n){return gn(n.getMinutes())},j:function(n){return n.getDate()},l:function(n,e){return e.weekdays.longhand[n.getDay()]},m:function(n){return gn(n.getMonth()+1)},n:function(n){return n.getMonth()+1},s:function(n){return n.getSeconds()},u:function(n){return n.getTime()},w:function(n){return n.getDay()},y:function(n){return String(n.getFullYear()).substring(2)}},S1=function(n){var e=n.config,t=e===void 0?Ms:e,i=n.l10n,s=i===void 0?kl:i,l=n.isMobile,o=l===void 0?!1:l;return function(r,a,u){var f=u||s;return t.formatDate!==void 0&&!o?t.formatDate(r,a,f):a.split("").map(function(d,p,h){return dl[d]&&h[p-1]!=="\\"?dl[d](r,f,t):d!=="\\"?d:""}).join("")}},va=function(n){var e=n.config,t=e===void 0?Ms:e,i=n.l10n,s=i===void 0?kl:i;return function(l,o,r,a){if(!(l!==0&&!l)){var u=a||s,f,d=l;if(l instanceof Date)f=new Date(l.getTime());else if(typeof l!="string"&&l.toFixed!==void 0)f=new Date(l);else if(typeof l=="string"){var p=o||(t||Ms).dateFormat,h=String(l).trim();if(h==="today")f=new Date,r=!0;else if(t&&t.parseDate)f=t.parseDate(l,p);else if(/Z$/.test(h)||/GMT$/.test(h))f=new Date(l);else{for(var g=void 0,_=[],b=0,k=0,$="";bMath.min(e,t)&&n=0?new Date:new Date(t.config.minDate.getTime()),ie=Nr(t.config);G.setHours(ie.hours,ie.minutes,ie.seconds,G.getMilliseconds()),t.selectedDates=[G],t.latestSelectedDateObj=G}K!==void 0&&K.type!=="blur"&&Rl(K);var re=t._input.value;d(),sn(),t._input.value!==re&&t._debouncedChange()}function u(K,G){return K%12+12*Vn(G===t.l10n.amPM[1])}function f(K){switch(K%24){case 0:case 12:return 12;default:return K%12}}function d(){if(!(t.hourElement===void 0||t.minuteElement===void 0)){var K=(parseInt(t.hourElement.value.slice(-2),10)||0)%24,G=(parseInt(t.minuteElement.value,10)||0)%60,ie=t.secondElement!==void 0?(parseInt(t.secondElement.value,10)||0)%60:0;t.amPM!==void 0&&(K=u(K,t.amPM.textContent));var re=t.config.minTime!==void 0||t.config.minDate&&t.minDateHasTime&&t.latestSelectedDateObj&&On(t.latestSelectedDateObj,t.config.minDate,!0)===0,Me=t.config.maxTime!==void 0||t.config.maxDate&&t.maxDateHasTime&&t.latestSelectedDateObj&&On(t.latestSelectedDateObj,t.config.maxDate,!0)===0;if(t.config.maxTime!==void 0&&t.config.minTime!==void 0&&t.config.minTime>t.config.maxTime){var Pe=Pr(t.config.minTime.getHours(),t.config.minTime.getMinutes(),t.config.minTime.getSeconds()),Fe=Pr(t.config.maxTime.getHours(),t.config.maxTime.getMinutes(),t.config.maxTime.getSeconds()),Ae=Pr(K,G,ie);if(Ae>Fe&&Ae=12)]),t.secondElement!==void 0&&(t.secondElement.value=gn(ie)))}function g(K){var G=Mn(K),ie=parseInt(G.value)+(K.delta||0);(ie/1e3>1||K.key==="Enter"&&!/[^\d]/.test(ie.toString()))&&Se(ie)}function _(K,G,ie,re){if(G instanceof Array)return G.forEach(function(Me){return _(K,Me,ie,re)});if(K instanceof Array)return K.forEach(function(Me){return _(Me,G,ie,re)});K.addEventListener(G,ie,re),t._handlers.push({remove:function(){return K.removeEventListener(G,ie,re)}})}function b(){Re("onChange")}function k(){if(t.config.wrap&&["open","close","toggle","clear"].forEach(function(ie){Array.prototype.forEach.call(t.element.querySelectorAll("[data-"+ie+"]"),function(re){return _(re,"click",t[ie])})}),t.isMobile){ke();return}var K=sd(Te,50);if(t._debouncedChange=sd(b,K4),t.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&_(t.daysContainer,"mouseover",function(ie){t.config.mode==="range"&&Ke(Mn(ie))}),_(t._input,"keydown",Xe),t.calendarContainer!==void 0&&_(t.calendarContainer,"keydown",Xe),!t.config.inline&&!t.config.static&&_(window,"resize",K),window.ontouchstart!==void 0?_(window.document,"touchstart",Ue):_(window.document,"mousedown",Ue),_(window.document,"focus",Ue,{capture:!0}),t.config.clickOpens===!0&&(_(t._input,"focus",t.open),_(t._input,"click",t.open)),t.daysContainer!==void 0&&(_(t.monthNav,"click",dn),_(t.monthNav,["keyup","increment"],g),_(t.daysContainer,"click",ti)),t.timeContainer!==void 0&&t.minuteElement!==void 0&&t.hourElement!==void 0){var G=function(ie){return Mn(ie).select()};_(t.timeContainer,["increment"],a),_(t.timeContainer,"blur",a,{capture:!0}),_(t.timeContainer,"click",C),_([t.hourElement,t.minuteElement],["focus","click"],G),t.secondElement!==void 0&&_(t.secondElement,"focus",function(){return t.secondElement&&t.secondElement.select()}),t.amPM!==void 0&&_(t.amPM,"click",function(ie){a(ie)})}t.config.allowInput&&_(t._input,"blur",_t)}function $(K,G){var ie=K!==void 0?t.parseDate(K):t.latestSelectedDateObj||(t.config.minDate&&t.config.minDate>t.now?t.config.minDate:t.config.maxDate&&t.config.maxDate1),t.calendarContainer.appendChild(K);var Me=t.config.appendTo!==void 0&&t.config.appendTo.nodeType!==void 0;if((t.config.inline||t.config.static)&&(t.calendarContainer.classList.add(t.config.inline?"inline":"static"),t.config.inline&&(!Me&&t.element.parentNode?t.element.parentNode.insertBefore(t.calendarContainer,t._input.nextSibling):t.config.appendTo!==void 0&&t.config.appendTo.appendChild(t.calendarContainer)),t.config.static)){var Pe=ct("div","flatpickr-wrapper");t.element.parentNode&&t.element.parentNode.insertBefore(Pe,t.element),Pe.appendChild(t.element),t.altInput&&Pe.appendChild(t.altInput),Pe.appendChild(t.calendarContainer)}!t.config.static&&!t.config.inline&&(t.config.appendTo!==void 0?t.config.appendTo:window.document.body).appendChild(t.calendarContainer)}function M(K,G,ie,re){var Me=Oe(G,!0),Pe=ct("span",K,G.getDate().toString());return Pe.dateObj=G,Pe.$i=re,Pe.setAttribute("aria-label",t.formatDate(G,t.config.ariaDateFormat)),K.indexOf("hidden")===-1&&On(G,t.now)===0&&(t.todayDateElem=Pe,Pe.classList.add("today"),Pe.setAttribute("aria-current","date")),Me?(Pe.tabIndex=-1,Et(G)&&(Pe.classList.add("selected"),t.selectedDateElem=Pe,t.config.mode==="range"&&(pn(Pe,"startRange",t.selectedDates[0]&&On(G,t.selectedDates[0],!0)===0),pn(Pe,"endRange",t.selectedDates[1]&&On(G,t.selectedDates[1],!0)===0),K==="nextMonthDay"&&Pe.classList.add("inRange")))):Pe.classList.add("flatpickr-disabled"),t.config.mode==="range"&&Tn(G)&&!Et(G)&&Pe.classList.add("inRange"),t.weekNumbers&&t.config.showMonths===1&&K!=="prevMonthDay"&&re%7===6&&t.weekNumbers.insertAdjacentHTML("beforeend",""+t.config.getWeek(G)+""),Re("onDayCreate",Pe),Pe}function E(K){K.focus(),t.config.mode==="range"&&Ke(K)}function A(K){for(var G=K>0?0:t.config.showMonths-1,ie=K>0?t.config.showMonths:-1,re=G;re!=ie;re+=K)for(var Me=t.daysContainer.children[re],Pe=K>0?0:Me.children.length-1,Fe=K>0?Me.children.length:-1,Ae=Pe;Ae!=Fe;Ae+=K){var Je=Me.children[Ae];if(Je.className.indexOf("hidden")===-1&&Oe(Je.dateObj))return Je}}function L(K,G){for(var ie=K.className.indexOf("Month")===-1?K.dateObj.getMonth():t.currentMonth,re=G>0?t.config.showMonths:-1,Me=G>0?1:-1,Pe=ie-t.currentMonth;Pe!=re;Pe+=Me)for(var Fe=t.daysContainer.children[Pe],Ae=ie-t.currentMonth===Pe?K.$i+G:G<0?Fe.children.length-1:0,Je=Fe.children.length,qe=Ae;qe>=0&&qe0?Je:-1);qe+=Me){var Ye=Fe.children[qe];if(Ye.className.indexOf("hidden")===-1&&Oe(Ye.dateObj)&&Math.abs(K.$i-qe)>=Math.abs(G))return E(Ye)}t.changeMonth(Me),N(A(Me),0)}function N(K,G){var ie=l(),re=Ge(ie||document.body),Me=K!==void 0?K:re?ie:t.selectedDateElem!==void 0&&Ge(t.selectedDateElem)?t.selectedDateElem:t.todayDateElem!==void 0&&Ge(t.todayDateElem)?t.todayDateElem:A(G>0?1:-1);Me===void 0?t._input.focus():re?L(Me,G):E(Me)}function q(K,G){for(var ie=(new Date(K,G,1).getDay()-t.l10n.firstDayOfWeek+7)%7,re=t.utils.getDaysInMonth((G-1+12)%12,K),Me=t.utils.getDaysInMonth(G,K),Pe=window.document.createDocumentFragment(),Fe=t.config.showMonths>1,Ae=Fe?"prevMonthDay hidden":"prevMonthDay",Je=Fe?"nextMonthDay hidden":"nextMonthDay",qe=re+1-ie,Ye=0;qe<=re;qe++,Ye++)Pe.appendChild(M("flatpickr-day "+Ae,new Date(K,G-1,qe),qe,Ye));for(qe=1;qe<=Me;qe++,Ye++)Pe.appendChild(M("flatpickr-day",new Date(K,G,qe),qe,Ye));for(var vt=Me+1;vt<=42-ie&&(t.config.showMonths===1||Ye%7!==0);vt++,Ye++)Pe.appendChild(M("flatpickr-day "+Je,new Date(K,G+1,vt%Me),vt,Ye));var ii=ct("div","dayContainer");return ii.appendChild(Pe),ii}function F(){if(t.daysContainer!==void 0){so(t.daysContainer),t.weekNumbers&&so(t.weekNumbers);for(var K=document.createDocumentFragment(),G=0;G1||t.config.monthSelectorType!=="dropdown")){var K=function(re){return t.config.minDate!==void 0&&t.currentYear===t.config.minDate.getFullYear()&&ret.config.maxDate.getMonth())};t.monthsDropdownContainer.tabIndex=-1,t.monthsDropdownContainer.innerHTML="";for(var G=0;G<12;G++)if(K(G)){var ie=ct("option","flatpickr-monthDropdown-month");ie.value=new Date(t.currentYear,G).getMonth().toString(),ie.textContent=Fo(G,t.config.shorthandCurrentMonth,t.l10n),ie.tabIndex=-1,t.currentMonth===G&&(ie.selected=!0),t.monthsDropdownContainer.appendChild(ie)}}}function V(){var K=ct("div","flatpickr-month"),G=window.document.createDocumentFragment(),ie;t.config.showMonths>1||t.config.monthSelectorType==="static"?ie=ct("span","cur-month"):(t.monthsDropdownContainer=ct("select","flatpickr-monthDropdown-months"),t.monthsDropdownContainer.setAttribute("aria-label",t.l10n.monthAriaLabel),_(t.monthsDropdownContainer,"change",function(Fe){var Ae=Mn(Fe),Je=parseInt(Ae.value,10);t.changeMonth(Je-t.currentMonth),Re("onMonthChange")}),R(),ie=t.monthsDropdownContainer);var re=lo("cur-year",{tabindex:"-1"}),Me=re.getElementsByTagName("input")[0];Me.setAttribute("aria-label",t.l10n.yearAriaLabel),t.config.minDate&&Me.setAttribute("min",t.config.minDate.getFullYear().toString()),t.config.maxDate&&(Me.setAttribute("max",t.config.maxDate.getFullYear().toString()),Me.disabled=!!t.config.minDate&&t.config.minDate.getFullYear()===t.config.maxDate.getFullYear());var Pe=ct("div","flatpickr-current-month");return Pe.appendChild(ie),Pe.appendChild(re),G.appendChild(Pe),K.appendChild(G),{container:K,yearElement:Me,monthElement:ie}}function j(){so(t.monthNav),t.monthNav.appendChild(t.prevMonthNav),t.config.showMonths&&(t.yearElements=[],t.monthElements=[]);for(var K=t.config.showMonths;K--;){var G=V();t.yearElements.push(G.yearElement),t.monthElements.push(G.monthElement),t.monthNav.appendChild(G.container)}t.monthNav.appendChild(t.nextMonthNav)}function U(){return t.monthNav=ct("div","flatpickr-months"),t.yearElements=[],t.monthElements=[],t.prevMonthNav=ct("span","flatpickr-prev-month"),t.prevMonthNav.innerHTML=t.config.prevArrow,t.nextMonthNav=ct("span","flatpickr-next-month"),t.nextMonthNav.innerHTML=t.config.nextArrow,j(),Object.defineProperty(t,"_hidePrevMonthArrow",{get:function(){return t.__hidePrevMonthArrow},set:function(K){t.__hidePrevMonthArrow!==K&&(pn(t.prevMonthNav,"flatpickr-disabled",K),t.__hidePrevMonthArrow=K)}}),Object.defineProperty(t,"_hideNextMonthArrow",{get:function(){return t.__hideNextMonthArrow},set:function(K){t.__hideNextMonthArrow!==K&&(pn(t.nextMonthNav,"flatpickr-disabled",K),t.__hideNextMonthArrow=K)}}),t.currentYearElement=t.yearElements[0],Fn(),t.monthNav}function x(){t.calendarContainer.classList.add("hasTime"),t.config.noCalendar&&t.calendarContainer.classList.add("noCalendar");var K=Nr(t.config);t.timeContainer=ct("div","flatpickr-time"),t.timeContainer.tabIndex=-1;var G=ct("span","flatpickr-time-separator",":"),ie=lo("flatpickr-hour",{"aria-label":t.l10n.hourAriaLabel});t.hourElement=ie.getElementsByTagName("input")[0];var re=lo("flatpickr-minute",{"aria-label":t.l10n.minuteAriaLabel});if(t.minuteElement=re.getElementsByTagName("input")[0],t.hourElement.tabIndex=t.minuteElement.tabIndex=-1,t.hourElement.value=gn(t.latestSelectedDateObj?t.latestSelectedDateObj.getHours():t.config.time_24hr?K.hours:f(K.hours)),t.minuteElement.value=gn(t.latestSelectedDateObj?t.latestSelectedDateObj.getMinutes():K.minutes),t.hourElement.setAttribute("step",t.config.hourIncrement.toString()),t.minuteElement.setAttribute("step",t.config.minuteIncrement.toString()),t.hourElement.setAttribute("min",t.config.time_24hr?"0":"1"),t.hourElement.setAttribute("max",t.config.time_24hr?"23":"12"),t.hourElement.setAttribute("maxlength","2"),t.minuteElement.setAttribute("min","0"),t.minuteElement.setAttribute("max","59"),t.minuteElement.setAttribute("maxlength","2"),t.timeContainer.appendChild(ie),t.timeContainer.appendChild(G),t.timeContainer.appendChild(re),t.config.time_24hr&&t.timeContainer.classList.add("time24hr"),t.config.enableSeconds){t.timeContainer.classList.add("hasSeconds");var Me=lo("flatpickr-second");t.secondElement=Me.getElementsByTagName("input")[0],t.secondElement.value=gn(t.latestSelectedDateObj?t.latestSelectedDateObj.getSeconds():K.seconds),t.secondElement.setAttribute("step",t.minuteElement.getAttribute("step")),t.secondElement.setAttribute("min","0"),t.secondElement.setAttribute("max","59"),t.secondElement.setAttribute("maxlength","2"),t.timeContainer.appendChild(ct("span","flatpickr-time-separator",":")),t.timeContainer.appendChild(Me)}return t.config.time_24hr||(t.amPM=ct("span","flatpickr-am-pm",t.l10n.amPM[Vn((t.latestSelectedDateObj?t.hourElement.value:t.config.defaultHour)>11)]),t.amPM.title=t.l10n.toggleTitle,t.amPM.tabIndex=-1,t.timeContainer.appendChild(t.amPM)),t.timeContainer}function X(){t.weekdayContainer?so(t.weekdayContainer):t.weekdayContainer=ct("div","flatpickr-weekdays");for(var K=t.config.showMonths;K--;){var G=ct("div","flatpickr-weekdaycontainer");t.weekdayContainer.appendChild(G)}return Z(),t.weekdayContainer}function Z(){if(t.weekdayContainer){var K=t.l10n.firstDayOfWeek,G=ld(t.l10n.weekdays.shorthand);K>0&&KO=!1)),T.$set(V)},i(F){if(!M){for(let R=0;RO.name===T)}function f(T){return i.findIndex(O=>O===T)}function d(T,O){var M;!((M=s==null?void 0:s.schema)!=null&&M.length)||T===O||!O||t(0,s.indexes=s.indexes.map(E=>W.replaceIndexColumn(E,T,O)),s)}function p(T,O){if(!T)return;T.dataTransfer.dropEffect="move";const M=parseInt(T.dataTransfer.getData("text/plain")),E=s.schema;Mo(T),_=T=>d(T.detail.oldName,T.detail.newName),b=(T,O)=>cC(O.detail,T),k=(T,O)=>p(O.detail,T),$=T=>r(T.detail);function C(T){s=T,t(0,s)}return n.$$set=T=>{"collection"in T&&t(0,s=T.collection)},n.$$.update=()=>{n.$$.dirty&1&&typeof s.schema>"u"&&(t(0,s=s||new kn),t(0,s.schema=[],s)),n.$$.dirty&1&&(i=s.schema.filter(T=>!T.toDelete)||[])},[s,l,o,r,f,d,p,h,g,_,b,k,$,C]}class pC extends ve{constructor(e){super(),be(this,e,dC,fC,_e,{collection:0})}}const mC=n=>({isAdminOnly:n&512}),Id=n=>({isAdminOnly:n[9]}),hC=n=>({isAdminOnly:n&512}),Ld=n=>({isAdminOnly:n[9]}),_C=n=>({isAdminOnly:n&512}),Pd=n=>({isAdminOnly:n[9]});function gC(n){let e,t;return e=new me({props:{class:"form-field rule-field "+(n[4]?"requied":"")+" "+(n[9]?"disabled":""),name:n[3],$$slots:{default:[vC,({uniqueId:i})=>({18:i}),({uniqueId:i})=>i?262144:0]},$$scope:{ctx:n}}}),{c(){B(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p(i,s){const l={};s&528&&(l.class="form-field rule-field "+(i[4]?"requied":"")+" "+(i[9]?"disabled":"")),s&8&&(l.name=i[3]),s&295655&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(I(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){H(e,i)}}}function bC(n){let e;return{c(){e=y("div"),e.innerHTML='',m(e,"class","txt-center")},m(t,i){S(t,e,i)},p:te,i:te,o:te,d(t){t&&w(e)}}}function Nd(n){let e,t,i;return{c(){e=y("button"),e.innerHTML=` Set Admins only`,m(e,"type","button"),m(e,"class","btn btn-sm btn-transparent btn-hint lock-toggle svelte-1akuazq")},m(s,l){S(s,e,l),t||(i=J(e,"click",n[11]),t=!0)},p:te,d(s){s&&w(e),t=!1,i()}}}function Fd(n){let e,t,i,s,l;return{c(){e=y("button"),e.innerHTML=`Unlock and set custom rule -
`,m(e,"type","button"),m(e,"class","unlock-overlay svelte-1akuazq"),m(e,"aria-label","Unlock and set custom rule")},m(o,r){S(o,e,r),i=!0,s||(l=J(e,"click",n[10]),s=!0)},p:te,i(o){i||(o&&et(()=>{i&&(t||(t=Ve(e,Jt,{duration:150,start:.98},!0)),t.run(1))}),i=!0)},o(o){o&&(t||(t=Ve(e,Jt,{duration:150,start:.98},!1)),t.run(0)),i=!1},d(o){o&&w(e),o&&t&&t.end(),s=!1,l()}}}function vC(n){let e,t,i,s,l,o,r=n[9]?"- Admins only":"",a,u,f,d,p,h,g,_,b,k,$;const C=n[12].beforeLabel,T=kt(C,n,n[15],Pd),O=n[12].afterLabel,M=kt(O,n,n[15],Ld);let E=!n[9]&&Nd(n);function A(V){n[14](V)}var L=n[7];function N(V){let j={id:V[18],baseCollection:V[1],disabled:V[9],placeholder:V[9]?"":V[5]};return V[0]!==void 0&&(j.value=V[0]),{props:j}}L&&(h=Rt(L,N(n)),n[13](h),ne.push(()=>pe(h,"value",A)));let q=n[9]&&Fd(n);const F=n[12].default,R=kt(F,n,n[15],Id);return{c(){e=y("div"),t=y("label"),T&&T.c(),i=D(),s=y("span"),l=Y(n[2]),o=D(),a=Y(r),u=D(),M&&M.c(),f=D(),E&&E.c(),p=D(),h&&B(h.$$.fragment),_=D(),q&&q.c(),b=D(),k=y("div"),R&&R.c(),m(s,"class","txt"),Q(s,"txt-hint",n[9]),m(t,"for",d=n[18]),m(e,"class","input-wrapper svelte-1akuazq"),m(k,"class","help-block")},m(V,j){S(V,e,j),v(e,t),T&&T.m(t,null),v(t,i),v(t,s),v(s,l),v(s,o),v(s,a),v(t,u),M&&M.m(t,null),v(t,f),E&&E.m(t,null),v(e,p),h&&z(h,e,null),v(e,_),q&&q.m(e,null),S(V,b,j),S(V,k,j),R&&R.m(k,null),$=!0},p(V,j){T&&T.p&&(!$||j&33280)&&St(T,C,V,V[15],$?wt(C,V[15],j,_C):$t(V[15]),Pd),(!$||j&4)&&le(l,V[2]),(!$||j&512)&&r!==(r=V[9]?"- Admins only":"")&&le(a,r),(!$||j&512)&&Q(s,"txt-hint",V[9]),M&&M.p&&(!$||j&33280)&&St(M,O,V,V[15],$?wt(O,V[15],j,hC):$t(V[15]),Ld),V[9]?E&&(E.d(1),E=null):E?E.p(V,j):(E=Nd(V),E.c(),E.m(t,null)),(!$||j&262144&&d!==(d=V[18]))&&m(t,"for",d);const U={};if(j&262144&&(U.id=V[18]),j&2&&(U.baseCollection=V[1]),j&512&&(U.disabled=V[9]),j&544&&(U.placeholder=V[9]?"":V[5]),!g&&j&1&&(g=!0,U.value=V[0],ge(()=>g=!1)),j&128&&L!==(L=V[7])){if(h){ue();const x=h;P(x.$$.fragment,1,0,()=>{H(x,1)}),fe()}L?(h=Rt(L,N(V)),V[13](h),ne.push(()=>pe(h,"value",A)),B(h.$$.fragment),I(h.$$.fragment,1),z(h,e,_)):h=null}else L&&h.$set(U);V[9]?q?(q.p(V,j),j&512&&I(q,1)):(q=Fd(V),q.c(),I(q,1),q.m(e,null)):q&&(ue(),P(q,1,1,()=>{q=null}),fe()),R&&R.p&&(!$||j&33280)&&St(R,F,V,V[15],$?wt(F,V[15],j,mC):$t(V[15]),Id)},i(V){$||(I(T,V),I(M,V),h&&I(h.$$.fragment,V),I(q),I(R,V),$=!0)},o(V){P(T,V),P(M,V),h&&P(h.$$.fragment,V),P(q),P(R,V),$=!1},d(V){V&&w(e),T&&T.d(V),M&&M.d(V),E&&E.d(),n[13](null),h&&H(h),q&&q.d(),V&&w(b),V&&w(k),R&&R.d(V)}}}function yC(n){let e,t,i,s;const l=[bC,gC],o=[];function r(a,u){return a[8]?0:1}return e=r(n),t=o[e]=l[e](n),{c(){t.c(),i=we()},m(a,u){o[e].m(a,u),S(a,i,u),s=!0},p(a,[u]){let f=e;e=r(a),e===f?o[e].p(a,u):(ue(),P(o[f],1,1,()=>{o[f]=null}),fe(),t=o[e],t?t.p(a,u):(t=o[e]=l[e](a),t.c()),I(t,1),t.m(i.parentNode,i))},i(a){s||(I(t),s=!0)},o(a){P(t),s=!1},d(a){o[e].d(a),a&&w(i)}}}let Rd;function kC(n,e,t){let i,{$$slots:s={},$$scope:l}=e,{collection:o=null}=e,{rule:r=null}=e,{label:a="Rule"}=e,{formKey:u="rule"}=e,{required:f=!1}=e,{placeholder:d="Leave empty to grant everyone access..."}=e,p=null,h=null,g=Rd,_=!1;b();async function b(){g||_||(t(8,_=!0),t(7,g=(await ut(()=>import("./FilterAutocompleteInput-b8c7c37b.js"),["./FilterAutocompleteInput-b8c7c37b.js","./index-84ab2e4b.js"],import.meta.url)).default),Rd=g,t(8,_=!1))}async function k(){t(0,r=h||""),await cn(),p==null||p.focus()}async function $(){h=r,t(0,r=null)}function C(O){ne[O?"unshift":"push"](()=>{p=O,t(6,p)})}function T(O){r=O,t(0,r)}return n.$$set=O=>{"collection"in O&&t(1,o=O.collection),"rule"in O&&t(0,r=O.rule),"label"in O&&t(2,a=O.label),"formKey"in O&&t(3,u=O.formKey),"required"in O&&t(4,f=O.required),"placeholder"in O&&t(5,d=O.placeholder),"$$scope"in O&&t(15,l=O.$$scope)},n.$$.update=()=>{n.$$.dirty&1&&t(9,i=r===null)},[r,o,a,u,f,d,p,g,_,i,k,$,s,C,T,l]}class Es extends ve{constructor(e){super(),be(this,e,kC,yC,_e,{collection:1,rule:0,label:2,formKey:3,required:4,placeholder:5})}}function qd(n,e,t){const i=n.slice();return i[11]=e[t],i}function jd(n){let e,t,i,s,l,o,r,a,u,f,d,p,h,g,_,b,k,$,C,T,O,M,E,A,L=n[2],N=[];for(let q=0;q@request filter:",d=D(),p=y("div"),p.innerHTML=`@request.headers.* +
`,m(e,"type","button"),m(e,"class","unlock-overlay svelte-1akuazq"),m(e,"aria-label","Unlock and set custom rule")},m(o,r){S(o,e,r),i=!0,s||(l=J(e,"click",n[10]),s=!0)},p:te,i(o){i||(o&&et(()=>{i&&(t||(t=Ve(e,Jt,{duration:150,start:.98},!0)),t.run(1))}),i=!0)},o(o){o&&(t||(t=Ve(e,Jt,{duration:150,start:.98},!1)),t.run(0)),i=!1},d(o){o&&w(e),o&&t&&t.end(),s=!1,l()}}}function vC(n){let e,t,i,s,l,o,r=n[9]?"- Admins only":"",a,u,f,d,p,h,g,_,b,k,$;const C=n[12].beforeLabel,T=kt(C,n,n[15],Pd),O=n[12].afterLabel,M=kt(O,n,n[15],Ld);let E=!n[9]&&Nd(n);function A(V){n[14](V)}var L=n[7];function N(V){let j={id:V[18],baseCollection:V[1],disabled:V[9],placeholder:V[9]?"":V[5]};return V[0]!==void 0&&(j.value=V[0]),{props:j}}L&&(h=Rt(L,N(n)),n[13](h),ne.push(()=>pe(h,"value",A)));let q=n[9]&&Fd(n);const F=n[12].default,R=kt(F,n,n[15],Id);return{c(){e=y("div"),t=y("label"),T&&T.c(),i=D(),s=y("span"),l=Y(n[2]),o=D(),a=Y(r),u=D(),M&&M.c(),f=D(),E&&E.c(),p=D(),h&&B(h.$$.fragment),_=D(),q&&q.c(),b=D(),k=y("div"),R&&R.c(),m(s,"class","txt"),Q(s,"txt-hint",n[9]),m(t,"for",d=n[18]),m(e,"class","input-wrapper svelte-1akuazq"),m(k,"class","help-block")},m(V,j){S(V,e,j),v(e,t),T&&T.m(t,null),v(t,i),v(t,s),v(s,l),v(s,o),v(s,a),v(t,u),M&&M.m(t,null),v(t,f),E&&E.m(t,null),v(e,p),h&&z(h,e,null),v(e,_),q&&q.m(e,null),S(V,b,j),S(V,k,j),R&&R.m(k,null),$=!0},p(V,j){T&&T.p&&(!$||j&33280)&&St(T,C,V,V[15],$?wt(C,V[15],j,_C):$t(V[15]),Pd),(!$||j&4)&&le(l,V[2]),(!$||j&512)&&r!==(r=V[9]?"- Admins only":"")&&le(a,r),(!$||j&512)&&Q(s,"txt-hint",V[9]),M&&M.p&&(!$||j&33280)&&St(M,O,V,V[15],$?wt(O,V[15],j,hC):$t(V[15]),Ld),V[9]?E&&(E.d(1),E=null):E?E.p(V,j):(E=Nd(V),E.c(),E.m(t,null)),(!$||j&262144&&d!==(d=V[18]))&&m(t,"for",d);const U={};if(j&262144&&(U.id=V[18]),j&2&&(U.baseCollection=V[1]),j&512&&(U.disabled=V[9]),j&544&&(U.placeholder=V[9]?"":V[5]),!g&&j&1&&(g=!0,U.value=V[0],ge(()=>g=!1)),j&128&&L!==(L=V[7])){if(h){ue();const x=h;P(x.$$.fragment,1,0,()=>{H(x,1)}),fe()}L?(h=Rt(L,N(V)),V[13](h),ne.push(()=>pe(h,"value",A)),B(h.$$.fragment),I(h.$$.fragment,1),z(h,e,_)):h=null}else L&&h.$set(U);V[9]?q?(q.p(V,j),j&512&&I(q,1)):(q=Fd(V),q.c(),I(q,1),q.m(e,null)):q&&(ue(),P(q,1,1,()=>{q=null}),fe()),R&&R.p&&(!$||j&33280)&&St(R,F,V,V[15],$?wt(F,V[15],j,mC):$t(V[15]),Id)},i(V){$||(I(T,V),I(M,V),h&&I(h.$$.fragment,V),I(q),I(R,V),$=!0)},o(V){P(T,V),P(M,V),h&&P(h.$$.fragment,V),P(q),P(R,V),$=!1},d(V){V&&w(e),T&&T.d(V),M&&M.d(V),E&&E.d(),n[13](null),h&&H(h),q&&q.d(),V&&w(b),V&&w(k),R&&R.d(V)}}}function yC(n){let e,t,i,s;const l=[bC,gC],o=[];function r(a,u){return a[8]?0:1}return e=r(n),t=o[e]=l[e](n),{c(){t.c(),i=we()},m(a,u){o[e].m(a,u),S(a,i,u),s=!0},p(a,[u]){let f=e;e=r(a),e===f?o[e].p(a,u):(ue(),P(o[f],1,1,()=>{o[f]=null}),fe(),t=o[e],t?t.p(a,u):(t=o[e]=l[e](a),t.c()),I(t,1),t.m(i.parentNode,i))},i(a){s||(I(t),s=!0)},o(a){P(t),s=!1},d(a){o[e].d(a),a&&w(i)}}}let Rd;function kC(n,e,t){let i,{$$slots:s={},$$scope:l}=e,{collection:o=null}=e,{rule:r=null}=e,{label:a="Rule"}=e,{formKey:u="rule"}=e,{required:f=!1}=e,{placeholder:d="Leave empty to grant everyone access..."}=e,p=null,h=null,g=Rd,_=!1;b();async function b(){g||_||(t(8,_=!0),t(7,g=(await ut(()=>import("./FilterAutocompleteInput-a7a53af8.js"),["./FilterAutocompleteInput-a7a53af8.js","./index-84ab2e4b.js"],import.meta.url)).default),Rd=g,t(8,_=!1))}async function k(){t(0,r=h||""),await cn(),p==null||p.focus()}async function $(){h=r,t(0,r=null)}function C(O){ne[O?"unshift":"push"](()=>{p=O,t(6,p)})}function T(O){r=O,t(0,r)}return n.$$set=O=>{"collection"in O&&t(1,o=O.collection),"rule"in O&&t(0,r=O.rule),"label"in O&&t(2,a=O.label),"formKey"in O&&t(3,u=O.formKey),"required"in O&&t(4,f=O.required),"placeholder"in O&&t(5,d=O.placeholder),"$$scope"in O&&t(15,l=O.$$scope)},n.$$.update=()=>{n.$$.dirty&1&&t(9,i=r===null)},[r,o,a,u,f,d,p,g,_,i,k,$,s,C,T,l]}class Es extends ve{constructor(e){super(),be(this,e,kC,yC,_e,{collection:1,rule:0,label:2,formKey:3,required:4,placeholder:5})}}function qd(n,e,t){const i=n.slice();return i[11]=e[t],i}function jd(n){let e,t,i,s,l,o,r,a,u,f,d,p,h,g,_,b,k,$,C,T,O,M,E,A,L=n[2],N=[];for(let q=0;q@request filter:",d=D(),p=y("div"),p.innerHTML=`@request.headers.* @request.query.* @request.data.* @request.auth.*`,h=D(),g=y("hr"),_=D(),b=y("p"),b.innerHTML="You could also add constraints and query other collections using the @collection filter:",k=D(),$=y("div"),$.innerHTML="@collection.ANY_COLLECTION_NAME.*",C=D(),T=y("hr"),O=D(),M=y("p"),M.innerHTML=`Example rule: @@ -101,7 +101,7 @@ If your query doesn't have a suitable one, you can use the universal (ROW_NUMBER() OVER()) as id.
  • Expressions must be aliased with a valid formatted field name (eg. - MAX(balance) as maxBalance).
  • `,u=D(),_&&_.c(),f=we(),m(t,"class","txt"),m(e,"for",i=n[8]),m(a,"class","help-block")},m(b,k){S(b,e,k),v(e,t),S(b,s,k),h[l].m(b,k),S(b,r,k),S(b,a,k),S(b,u,k),_&&_.m(b,k),S(b,f,k),d=!0},p(b,k){(!d||k&256&&i!==(i=b[8]))&&m(e,"for",i);let $=l;l=g(b),l===$?h[l].p(b,k):(ue(),P(h[$],1,1,()=>{h[$]=null}),fe(),o=h[l],o?o.p(b,k):(o=h[l]=p[l](b),o.c()),I(o,1),o.m(r.parentNode,r)),b[3].length?_?_.p(b,k):(_=Wd(b),_.c(),_.m(f.parentNode,f)):_&&(_.d(1),_=null)},i(b){d||(I(o),d=!0)},o(b){P(o),d=!1},d(b){b&&w(e),b&&w(s),h[l].d(b),b&&w(r),b&&w(a),b&&w(u),_&&_.d(b),b&&w(f)}}}function DC(n){let e,t;return e=new me({props:{class:"form-field required "+(n[3].length?"error":""),name:"options.query",$$slots:{default:[EC,({uniqueId:i})=>({8:i}),({uniqueId:i})=>i?256:0]},$$scope:{ctx:n}}}),{c(){B(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p(i,[s]){const l={};s&8&&(l.class="form-field required "+(i[3].length?"error":"")),s&4367&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(I(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){H(e,i)}}}function AC(n,e,t){let i;Ze(n,Ti,d=>t(4,i=d));let{collection:s=new kn}=e,l,o=!1,r=[];function a(d){var g;t(3,r=[]);const p=W.getNestedVal(d,"schema",null);if(W.isEmpty(p))return;if(p!=null&&p.message){r.push(p==null?void 0:p.message);return}const h=W.extractColumnsFromQuery((g=s==null?void 0:s.options)==null?void 0:g.query);W.removeByValue(h,"id"),W.removeByValue(h,"created"),W.removeByValue(h,"updated");for(let _ in p)for(let b in p[_]){const k=p[_][b].message,$=h[_]||_;r.push(W.sentenize($+": "+k))}}Xt(async()=>{t(2,o=!0);try{t(1,l=(await ut(()=>import("./CodeEditor-ad47c205.js"),["./CodeEditor-ad47c205.js","./index-84ab2e4b.js"],import.meta.url)).default)}catch(d){console.warn(d)}t(2,o=!1)});function u(d){n.$$.not_equal(s.options.query,d)&&(s.options.query=d,t(0,s))}const f=()=>{r.length&&ui("schema")};return n.$$set=d=>{"collection"in d&&t(0,s=d.collection)},n.$$.update=()=>{n.$$.dirty&16&&a(i)},[s,l,o,r,i,u,f]}class IC extends ve{constructor(e){super(),be(this,e,AC,DC,_e,{collection:0})}}const LC=n=>({active:n&1}),Kd=n=>({active:n[0]});function Jd(n){let e,t,i;const s=n[15].default,l=kt(s,n,n[14],null);return{c(){e=y("div"),l&&l.c(),m(e,"class","accordion-content")},m(o,r){S(o,e,r),l&&l.m(e,null),i=!0},p(o,r){l&&l.p&&(!i||r&16384)&&St(l,s,o,o[14],i?wt(s,o[14],r,null):$t(o[14]),null)},i(o){i||(I(l,o),o&&et(()=>{i&&(t||(t=Ve(e,rt,{duration:150},!0)),t.run(1))}),i=!0)},o(o){P(l,o),o&&(t||(t=Ve(e,rt,{duration:150},!1)),t.run(0)),i=!1},d(o){o&&w(e),l&&l.d(o),o&&t&&t.end()}}}function PC(n){let e,t,i,s,l,o,r;const a=n[15].header,u=kt(a,n,n[14],Kd);let f=n[0]&&Jd(n);return{c(){e=y("div"),t=y("button"),u&&u.c(),i=D(),f&&f.c(),m(t,"type","button"),m(t,"class","accordion-header"),m(t,"draggable",n[2]),Q(t,"interactive",n[3]),m(e,"class",s="accordion "+(n[7]?"drag-over":"")+" "+n[1]),Q(e,"active",n[0])},m(d,p){S(d,e,p),v(e,t),u&&u.m(t,null),v(e,i),f&&f.m(e,null),n[22](e),l=!0,o||(r=[J(t,"click",xe(n[17])),J(t,"drop",xe(n[18])),J(t,"dragstart",n[19]),J(t,"dragenter",n[20]),J(t,"dragleave",n[21]),J(t,"dragover",xe(n[16]))],o=!0)},p(d,[p]){u&&u.p&&(!l||p&16385)&&St(u,a,d,d[14],l?wt(a,d[14],p,LC):$t(d[14]),Kd),(!l||p&4)&&m(t,"draggable",d[2]),(!l||p&8)&&Q(t,"interactive",d[3]),d[0]?f?(f.p(d,p),p&1&&I(f,1)):(f=Jd(d),f.c(),I(f,1),f.m(e,null)):f&&(ue(),P(f,1,1,()=>{f=null}),fe()),(!l||p&130&&s!==(s="accordion "+(d[7]?"drag-over":"")+" "+d[1]))&&m(e,"class",s),(!l||p&131)&&Q(e,"active",d[0])},i(d){l||(I(u,d),I(f),l=!0)},o(d){P(u,d),P(f),l=!1},d(d){d&&w(e),u&&u.d(d),f&&f.d(),n[22](null),o=!1,De(r)}}}function NC(n,e,t){let{$$slots:i={},$$scope:s}=e;const l=Tt();let o,r,{class:a=""}=e,{draggable:u=!1}=e,{active:f=!1}=e,{interactive:d=!0}=e,{single:p=!1}=e,h=!1;function g(){return!!f}function _(){$(),t(0,f=!0),l("expand")}function b(){t(0,f=!1),clearTimeout(r),l("collapse")}function k(){l("toggle"),f?b():_()}function $(){if(p&&o.closest(".accordions")){const N=o.closest(".accordions").querySelectorAll(".accordion.active .accordion-header.interactive");for(const q of N)q.click()}}Xt(()=>()=>clearTimeout(r));function C(N){he.call(this,n,N)}const T=()=>d&&k(),O=N=>{u&&(t(7,h=!1),$(),l("drop",N))},M=N=>u&&l("dragstart",N),E=N=>{u&&(t(7,h=!0),l("dragenter",N))},A=N=>{u&&(t(7,h=!1),l("dragleave",N))};function L(N){ne[N?"unshift":"push"](()=>{o=N,t(6,o)})}return n.$$set=N=>{"class"in N&&t(1,a=N.class),"draggable"in N&&t(2,u=N.draggable),"active"in N&&t(0,f=N.active),"interactive"in N&&t(3,d=N.interactive),"single"in N&&t(9,p=N.single),"$$scope"in N&&t(14,s=N.$$scope)},n.$$.update=()=>{n.$$.dirty&8257&&f&&(clearTimeout(r),t(13,r=setTimeout(()=>{o!=null&&o.scrollIntoViewIfNeeded?o.scrollIntoViewIfNeeded():o!=null&&o.scrollIntoView&&o.scrollIntoView({behavior:"smooth",block:"nearest"})},200)))},[f,a,u,d,k,$,o,h,l,p,g,_,b,r,s,i,C,T,O,M,E,A,L]}class co extends ve{constructor(e){super(),be(this,e,NC,PC,_e,{class:1,draggable:2,active:0,interactive:3,single:9,isExpanded:10,expand:11,collapse:12,toggle:4,collapseSiblings:5})}get isExpanded(){return this.$$.ctx[10]}get expand(){return this.$$.ctx[11]}get collapse(){return this.$$.ctx[12]}get toggle(){return this.$$.ctx[4]}get collapseSiblings(){return this.$$.ctx[5]}}function FC(n){let e,t,i,s,l,o,r,a;return{c(){e=y("input"),i=D(),s=y("label"),l=Y("Enable"),m(e,"type","checkbox"),m(e,"id",t=n[12]),m(s,"for",o=n[12])},m(u,f){S(u,e,f),e.checked=n[0].options.allowUsernameAuth,S(u,i,f),S(u,s,f),v(s,l),r||(a=J(e,"change",n[5]),r=!0)},p(u,f){f&4096&&t!==(t=u[12])&&m(e,"id",t),f&1&&(e.checked=u[0].options.allowUsernameAuth),f&4096&&o!==(o=u[12])&&m(s,"for",o)},d(u){u&&w(e),u&&w(i),u&&w(s),r=!1,a()}}}function RC(n){let e,t;return e=new me({props:{class:"form-field form-field-toggle m-b-0",name:"options.allowUsernameAuth",$$slots:{default:[FC,({uniqueId:i})=>({12:i}),({uniqueId:i})=>i?4096:0]},$$scope:{ctx:n}}}),{c(){B(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p(i,s){const l={};s&12289&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(I(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){H(e,i)}}}function qC(n){let e;return{c(){e=y("span"),e.textContent="Disabled",m(e,"class","label")},m(t,i){S(t,e,i)},d(t){t&&w(e)}}}function jC(n){let e;return{c(){e=y("span"),e.textContent="Enabled",m(e,"class","label label-success")},m(t,i){S(t,e,i)},d(t){t&&w(e)}}}function Zd(n){let e,t,i,s,l;return{c(){e=y("i"),m(e,"class","ri-error-warning-fill txt-danger")},m(o,r){S(o,e,r),i=!0,s||(l=Ee(Be.call(null,e,{text:"Has errors",position:"left"})),s=!0)},i(o){i||(et(()=>{i&&(t||(t=Ve(e,Jt,{duration:150,start:.7},!0)),t.run(1))}),i=!0)},o(o){t||(t=Ve(e,Jt,{duration:150,start:.7},!1)),t.run(0),i=!1},d(o){o&&w(e),o&&t&&t.end(),s=!1,l()}}}function VC(n){let e,t,i,s,l,o,r;function a(p,h){return p[0].options.allowUsernameAuth?jC:qC}let u=a(n),f=u(n),d=n[3]&&Zd();return{c(){e=y("div"),e.innerHTML=` + MAX(balance) as maxBalance).`,u=D(),_&&_.c(),f=we(),m(t,"class","txt"),m(e,"for",i=n[8]),m(a,"class","help-block")},m(b,k){S(b,e,k),v(e,t),S(b,s,k),h[l].m(b,k),S(b,r,k),S(b,a,k),S(b,u,k),_&&_.m(b,k),S(b,f,k),d=!0},p(b,k){(!d||k&256&&i!==(i=b[8]))&&m(e,"for",i);let $=l;l=g(b),l===$?h[l].p(b,k):(ue(),P(h[$],1,1,()=>{h[$]=null}),fe(),o=h[l],o?o.p(b,k):(o=h[l]=p[l](b),o.c()),I(o,1),o.m(r.parentNode,r)),b[3].length?_?_.p(b,k):(_=Wd(b),_.c(),_.m(f.parentNode,f)):_&&(_.d(1),_=null)},i(b){d||(I(o),d=!0)},o(b){P(o),d=!1},d(b){b&&w(e),b&&w(s),h[l].d(b),b&&w(r),b&&w(a),b&&w(u),_&&_.d(b),b&&w(f)}}}function DC(n){let e,t;return e=new me({props:{class:"form-field required "+(n[3].length?"error":""),name:"options.query",$$slots:{default:[EC,({uniqueId:i})=>({8:i}),({uniqueId:i})=>i?256:0]},$$scope:{ctx:n}}}),{c(){B(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p(i,[s]){const l={};s&8&&(l.class="form-field required "+(i[3].length?"error":"")),s&4367&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(I(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){H(e,i)}}}function AC(n,e,t){let i;Ze(n,Ti,d=>t(4,i=d));let{collection:s=new kn}=e,l,o=!1,r=[];function a(d){var g;t(3,r=[]);const p=W.getNestedVal(d,"schema",null);if(W.isEmpty(p))return;if(p!=null&&p.message){r.push(p==null?void 0:p.message);return}const h=W.extractColumnsFromQuery((g=s==null?void 0:s.options)==null?void 0:g.query);W.removeByValue(h,"id"),W.removeByValue(h,"created"),W.removeByValue(h,"updated");for(let _ in p)for(let b in p[_]){const k=p[_][b].message,$=h[_]||_;r.push(W.sentenize($+": "+k))}}Xt(async()=>{t(2,o=!0);try{t(1,l=(await ut(()=>import("./CodeEditor-fa610c65.js"),["./CodeEditor-fa610c65.js","./index-84ab2e4b.js"],import.meta.url)).default)}catch(d){console.warn(d)}t(2,o=!1)});function u(d){n.$$.not_equal(s.options.query,d)&&(s.options.query=d,t(0,s))}const f=()=>{r.length&&ui("schema")};return n.$$set=d=>{"collection"in d&&t(0,s=d.collection)},n.$$.update=()=>{n.$$.dirty&16&&a(i)},[s,l,o,r,i,u,f]}class IC extends ve{constructor(e){super(),be(this,e,AC,DC,_e,{collection:0})}}const LC=n=>({active:n&1}),Kd=n=>({active:n[0]});function Jd(n){let e,t,i;const s=n[15].default,l=kt(s,n,n[14],null);return{c(){e=y("div"),l&&l.c(),m(e,"class","accordion-content")},m(o,r){S(o,e,r),l&&l.m(e,null),i=!0},p(o,r){l&&l.p&&(!i||r&16384)&&St(l,s,o,o[14],i?wt(s,o[14],r,null):$t(o[14]),null)},i(o){i||(I(l,o),o&&et(()=>{i&&(t||(t=Ve(e,rt,{duration:150},!0)),t.run(1))}),i=!0)},o(o){P(l,o),o&&(t||(t=Ve(e,rt,{duration:150},!1)),t.run(0)),i=!1},d(o){o&&w(e),l&&l.d(o),o&&t&&t.end()}}}function PC(n){let e,t,i,s,l,o,r;const a=n[15].header,u=kt(a,n,n[14],Kd);let f=n[0]&&Jd(n);return{c(){e=y("div"),t=y("button"),u&&u.c(),i=D(),f&&f.c(),m(t,"type","button"),m(t,"class","accordion-header"),m(t,"draggable",n[2]),Q(t,"interactive",n[3]),m(e,"class",s="accordion "+(n[7]?"drag-over":"")+" "+n[1]),Q(e,"active",n[0])},m(d,p){S(d,e,p),v(e,t),u&&u.m(t,null),v(e,i),f&&f.m(e,null),n[22](e),l=!0,o||(r=[J(t,"click",xe(n[17])),J(t,"drop",xe(n[18])),J(t,"dragstart",n[19]),J(t,"dragenter",n[20]),J(t,"dragleave",n[21]),J(t,"dragover",xe(n[16]))],o=!0)},p(d,[p]){u&&u.p&&(!l||p&16385)&&St(u,a,d,d[14],l?wt(a,d[14],p,LC):$t(d[14]),Kd),(!l||p&4)&&m(t,"draggable",d[2]),(!l||p&8)&&Q(t,"interactive",d[3]),d[0]?f?(f.p(d,p),p&1&&I(f,1)):(f=Jd(d),f.c(),I(f,1),f.m(e,null)):f&&(ue(),P(f,1,1,()=>{f=null}),fe()),(!l||p&130&&s!==(s="accordion "+(d[7]?"drag-over":"")+" "+d[1]))&&m(e,"class",s),(!l||p&131)&&Q(e,"active",d[0])},i(d){l||(I(u,d),I(f),l=!0)},o(d){P(u,d),P(f),l=!1},d(d){d&&w(e),u&&u.d(d),f&&f.d(),n[22](null),o=!1,De(r)}}}function NC(n,e,t){let{$$slots:i={},$$scope:s}=e;const l=Tt();let o,r,{class:a=""}=e,{draggable:u=!1}=e,{active:f=!1}=e,{interactive:d=!0}=e,{single:p=!1}=e,h=!1;function g(){return!!f}function _(){$(),t(0,f=!0),l("expand")}function b(){t(0,f=!1),clearTimeout(r),l("collapse")}function k(){l("toggle"),f?b():_()}function $(){if(p&&o.closest(".accordions")){const N=o.closest(".accordions").querySelectorAll(".accordion.active .accordion-header.interactive");for(const q of N)q.click()}}Xt(()=>()=>clearTimeout(r));function C(N){he.call(this,n,N)}const T=()=>d&&k(),O=N=>{u&&(t(7,h=!1),$(),l("drop",N))},M=N=>u&&l("dragstart",N),E=N=>{u&&(t(7,h=!0),l("dragenter",N))},A=N=>{u&&(t(7,h=!1),l("dragleave",N))};function L(N){ne[N?"unshift":"push"](()=>{o=N,t(6,o)})}return n.$$set=N=>{"class"in N&&t(1,a=N.class),"draggable"in N&&t(2,u=N.draggable),"active"in N&&t(0,f=N.active),"interactive"in N&&t(3,d=N.interactive),"single"in N&&t(9,p=N.single),"$$scope"in N&&t(14,s=N.$$scope)},n.$$.update=()=>{n.$$.dirty&8257&&f&&(clearTimeout(r),t(13,r=setTimeout(()=>{o!=null&&o.scrollIntoViewIfNeeded?o.scrollIntoViewIfNeeded():o!=null&&o.scrollIntoView&&o.scrollIntoView({behavior:"smooth",block:"nearest"})},200)))},[f,a,u,d,k,$,o,h,l,p,g,_,b,r,s,i,C,T,O,M,E,A,L]}class co extends ve{constructor(e){super(),be(this,e,NC,PC,_e,{class:1,draggable:2,active:0,interactive:3,single:9,isExpanded:10,expand:11,collapse:12,toggle:4,collapseSiblings:5})}get isExpanded(){return this.$$.ctx[10]}get expand(){return this.$$.ctx[11]}get collapse(){return this.$$.ctx[12]}get toggle(){return this.$$.ctx[4]}get collapseSiblings(){return this.$$.ctx[5]}}function FC(n){let e,t,i,s,l,o,r,a;return{c(){e=y("input"),i=D(),s=y("label"),l=Y("Enable"),m(e,"type","checkbox"),m(e,"id",t=n[12]),m(s,"for",o=n[12])},m(u,f){S(u,e,f),e.checked=n[0].options.allowUsernameAuth,S(u,i,f),S(u,s,f),v(s,l),r||(a=J(e,"change",n[5]),r=!0)},p(u,f){f&4096&&t!==(t=u[12])&&m(e,"id",t),f&1&&(e.checked=u[0].options.allowUsernameAuth),f&4096&&o!==(o=u[12])&&m(s,"for",o)},d(u){u&&w(e),u&&w(i),u&&w(s),r=!1,a()}}}function RC(n){let e,t;return e=new me({props:{class:"form-field form-field-toggle m-b-0",name:"options.allowUsernameAuth",$$slots:{default:[FC,({uniqueId:i})=>({12:i}),({uniqueId:i})=>i?4096:0]},$$scope:{ctx:n}}}),{c(){B(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p(i,s){const l={};s&12289&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(I(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){H(e,i)}}}function qC(n){let e;return{c(){e=y("span"),e.textContent="Disabled",m(e,"class","label")},m(t,i){S(t,e,i)},d(t){t&&w(e)}}}function jC(n){let e;return{c(){e=y("span"),e.textContent="Enabled",m(e,"class","label label-success")},m(t,i){S(t,e,i)},d(t){t&&w(e)}}}function Zd(n){let e,t,i,s,l;return{c(){e=y("i"),m(e,"class","ri-error-warning-fill txt-danger")},m(o,r){S(o,e,r),i=!0,s||(l=Ee(Be.call(null,e,{text:"Has errors",position:"left"})),s=!0)},i(o){i||(et(()=>{i&&(t||(t=Ve(e,Jt,{duration:150,start:.7},!0)),t.run(1))}),i=!0)},o(o){t||(t=Ve(e,Jt,{duration:150,start:.7},!1)),t.run(0),i=!1},d(o){o&&w(e),o&&t&&t.end(),s=!1,l()}}}function VC(n){let e,t,i,s,l,o,r;function a(p,h){return p[0].options.allowUsernameAuth?jC:qC}let u=a(n),f=u(n),d=n[3]&&Zd();return{c(){e=y("div"),e.innerHTML=` Username/Password`,t=D(),i=y("div"),s=D(),f.c(),l=D(),d&&d.c(),o=we(),m(e,"class","inline-flex"),m(i,"class","flex-fill")},m(p,h){S(p,e,h),S(p,t,h),S(p,i,h),S(p,s,h),f.m(p,h),S(p,l,h),d&&d.m(p,h),S(p,o,h),r=!0},p(p,h){u!==(u=a(p))&&(f.d(1),f=u(p),f&&(f.c(),f.m(l.parentNode,l))),p[3]?d?h&8&&I(d,1):(d=Zd(),d.c(),I(d,1),d.m(o.parentNode,o)):d&&(ue(),P(d,1,1,()=>{d=null}),fe())},i(p){r||(I(d),r=!0)},o(p){P(d),r=!1},d(p){p&&w(e),p&&w(t),p&&w(i),p&&w(s),f.d(p),p&&w(l),d&&d.d(p),p&&w(o)}}}function zC(n){let e,t,i,s,l,o,r,a;return{c(){e=y("input"),i=D(),s=y("label"),l=Y("Enable"),m(e,"type","checkbox"),m(e,"id",t=n[12]),m(s,"for",o=n[12])},m(u,f){S(u,e,f),e.checked=n[0].options.allowEmailAuth,S(u,i,f),S(u,s,f),v(s,l),r||(a=J(e,"change",n[6]),r=!0)},p(u,f){f&4096&&t!==(t=u[12])&&m(e,"id",t),f&1&&(e.checked=u[0].options.allowEmailAuth),f&4096&&o!==(o=u[12])&&m(s,"for",o)},d(u){u&&w(e),u&&w(i),u&&w(s),r=!1,a()}}}function Gd(n){let e,t,i,s,l,o,r,a;return i=new me({props:{class:"form-field "+(W.isEmpty(n[0].options.onlyEmailDomains)?"":"disabled"),name:"options.exceptEmailDomains",$$slots:{default:[HC,({uniqueId:u})=>({12:u}),({uniqueId:u})=>u?4096:0]},$$scope:{ctx:n}}}),o=new me({props:{class:"form-field "+(W.isEmpty(n[0].options.exceptEmailDomains)?"":"disabled"),name:"options.onlyEmailDomains",$$slots:{default:[BC,({uniqueId:u})=>({12:u}),({uniqueId:u})=>u?4096:0]},$$scope:{ctx:n}}}),{c(){e=y("div"),t=y("div"),B(i.$$.fragment),s=D(),l=y("div"),B(o.$$.fragment),m(t,"class","col-lg-6"),m(l,"class","col-lg-6"),m(e,"class","grid grid-sm p-t-sm")},m(u,f){S(u,e,f),v(e,t),z(i,t,null),v(e,s),v(e,l),z(o,l,null),a=!0},p(u,f){const d={};f&1&&(d.class="form-field "+(W.isEmpty(u[0].options.onlyEmailDomains)?"":"disabled")),f&12289&&(d.$$scope={dirty:f,ctx:u}),i.$set(d);const p={};f&1&&(p.class="form-field "+(W.isEmpty(u[0].options.exceptEmailDomains)?"":"disabled")),f&12289&&(p.$$scope={dirty:f,ctx:u}),o.$set(p)},i(u){a||(I(i.$$.fragment,u),I(o.$$.fragment,u),u&&et(()=>{a&&(r||(r=Ve(e,rt,{duration:150},!0)),r.run(1))}),a=!0)},o(u){P(i.$$.fragment,u),P(o.$$.fragment,u),u&&(r||(r=Ve(e,rt,{duration:150},!1)),r.run(0)),a=!1},d(u){u&&w(e),H(i),H(o),u&&r&&r.end()}}}function HC(n){let e,t,i,s,l,o,r,a,u,f,d,p,h;function g(b){n[7](b)}let _={id:n[12],disabled:!W.isEmpty(n[0].options.onlyEmailDomains)};return n[0].options.exceptEmailDomains!==void 0&&(_.value=n[0].options.exceptEmailDomains),r=new zs({props:_}),ne.push(()=>pe(r,"value",g)),{c(){e=y("label"),t=y("span"),t.textContent="Except domains",i=D(),s=y("i"),o=D(),B(r.$$.fragment),u=D(),f=y("div"),f.textContent="Use comma as separator.",m(t,"class","txt"),m(s,"class","ri-information-line link-hint"),m(e,"for",l=n[12]),m(f,"class","help-block")},m(b,k){S(b,e,k),v(e,t),v(e,i),v(e,s),S(b,o,k),z(r,b,k),S(b,u,k),S(b,f,k),d=!0,p||(h=Ee(Be.call(null,s,{text:`Email domains that are NOT allowed to sign up. This field is disabled if "Only domains" is set.`,position:"top"})),p=!0)},p(b,k){(!d||k&4096&&l!==(l=b[12]))&&m(e,"for",l);const $={};k&4096&&($.id=b[12]),k&1&&($.disabled=!W.isEmpty(b[0].options.onlyEmailDomains)),!a&&k&1&&(a=!0,$.value=b[0].options.exceptEmailDomains,ge(()=>a=!1)),r.$set($)},i(b){d||(I(r.$$.fragment,b),d=!0)},o(b){P(r.$$.fragment,b),d=!1},d(b){b&&w(e),b&&w(o),H(r,b),b&&w(u),b&&w(f),p=!1,h()}}}function BC(n){let e,t,i,s,l,o,r,a,u,f,d,p,h;function g(b){n[8](b)}let _={id:n[12],disabled:!W.isEmpty(n[0].options.exceptEmailDomains)};return n[0].options.onlyEmailDomains!==void 0&&(_.value=n[0].options.onlyEmailDomains),r=new zs({props:_}),ne.push(()=>pe(r,"value",g)),{c(){e=y("label"),t=y("span"),t.textContent="Only domains",i=D(),s=y("i"),o=D(),B(r.$$.fragment),u=D(),f=y("div"),f.textContent="Use comma as separator.",m(t,"class","txt"),m(s,"class","ri-information-line link-hint"),m(e,"for",l=n[12]),m(f,"class","help-block")},m(b,k){S(b,e,k),v(e,t),v(e,i),v(e,s),S(b,o,k),z(r,b,k),S(b,u,k),S(b,f,k),d=!0,p||(h=Ee(Be.call(null,s,{text:`Email domains that are ONLY allowed to sign up. This field is disabled if "Except domains" is set.`,position:"top"})),p=!0)},p(b,k){(!d||k&4096&&l!==(l=b[12]))&&m(e,"for",l);const $={};k&4096&&($.id=b[12]),k&1&&($.disabled=!W.isEmpty(b[0].options.exceptEmailDomains)),!a&&k&1&&(a=!0,$.value=b[0].options.onlyEmailDomains,ge(()=>a=!1)),r.$set($)},i(b){d||(I(r.$$.fragment,b),d=!0)},o(b){P(r.$$.fragment,b),d=!1},d(b){b&&w(e),b&&w(o),H(r,b),b&&w(u),b&&w(f),p=!1,h()}}}function UC(n){let e,t,i,s;e=new me({props:{class:"form-field form-field-toggle m-0",name:"options.allowEmailAuth",$$slots:{default:[zC,({uniqueId:o})=>({12:o}),({uniqueId:o})=>o?4096:0]},$$scope:{ctx:n}}});let l=n[0].options.allowEmailAuth&&Gd(n);return{c(){B(e.$$.fragment),t=D(),l&&l.c(),i=we()},m(o,r){z(e,o,r),S(o,t,r),l&&l.m(o,r),S(o,i,r),s=!0},p(o,r){const a={};r&12289&&(a.$$scope={dirty:r,ctx:o}),e.$set(a),o[0].options.allowEmailAuth?l?(l.p(o,r),r&1&&I(l,1)):(l=Gd(o),l.c(),I(l,1),l.m(i.parentNode,i)):l&&(ue(),P(l,1,1,()=>{l=null}),fe())},i(o){s||(I(e.$$.fragment,o),I(l),s=!0)},o(o){P(e.$$.fragment,o),P(l),s=!1},d(o){H(e,o),o&&w(t),l&&l.d(o),o&&w(i)}}}function WC(n){let e;return{c(){e=y("span"),e.textContent="Disabled",m(e,"class","label")},m(t,i){S(t,e,i)},d(t){t&&w(e)}}}function YC(n){let e;return{c(){e=y("span"),e.textContent="Enabled",m(e,"class","label label-success")},m(t,i){S(t,e,i)},d(t){t&&w(e)}}}function Xd(n){let e,t,i,s,l;return{c(){e=y("i"),m(e,"class","ri-error-warning-fill txt-danger")},m(o,r){S(o,e,r),i=!0,s||(l=Ee(Be.call(null,e,{text:"Has errors",position:"left"})),s=!0)},i(o){i||(et(()=>{i&&(t||(t=Ve(e,Jt,{duration:150,start:.7},!0)),t.run(1))}),i=!0)},o(o){t||(t=Ve(e,Jt,{duration:150,start:.7},!1)),t.run(0),i=!1},d(o){o&&w(e),o&&t&&t.end(),s=!1,l()}}}function KC(n){let e,t,i,s,l,o,r;function a(p,h){return p[0].options.allowEmailAuth?YC:WC}let u=a(n),f=u(n),d=n[2]&&Xd();return{c(){e=y("div"),e.innerHTML=` @@ -114,7 +114,7 @@ Also note that some OAuth2 providers (like Twitter), don't return an email and t you'll have to update it manually!`,o=D(),u&&u.c(),r=D(),f&&f.c(),a=we(),m(t,"class","icon"),m(s,"class","content txt-bold"),m(e,"class","alert alert-warning")},m(d,p){S(d,e,p),v(e,t),v(e,i),v(e,s),v(s,l),v(s,o),u&&u.m(s,null),S(d,r,p),f&&f.m(d,p),S(d,a,p)},p(d,p){d[6].length?u||(u=ip(),u.c(),u.m(s,null)):u&&(u.d(1),u=null),d[8]?f?f.p(d,p):(f=sp(d),f.c(),f.m(a.parentNode,a)):f&&(f.d(1),f=null)},d(d){d&&w(e),u&&u.d(),d&&w(r),f&&f.d(d),d&&w(a)}}}function l6(n){let e;return{c(){e=y("h4"),e.textContent="Confirm collection changes"},m(t,i){S(t,e,i)},p:te,d(t){t&&w(e)}}}function o6(n){let e,t,i,s,l;return{c(){e=y("button"),e.innerHTML='Cancel',t=D(),i=y("button"),i.innerHTML='Confirm',e.autofocus=!0,m(e,"type","button"),m(e,"class","btn btn-transparent"),m(i,"type","button"),m(i,"class","btn btn-expanded")},m(o,r){S(o,e,r),S(o,t,r),S(o,i,r),e.focus(),s||(l=[J(e,"click",n[11]),J(i,"click",n[12])],s=!0)},p:te,d(o){o&&w(e),o&&w(t),o&&w(i),s=!1,De(l)}}}function r6(n){let e,t,i={class:"confirm-changes-panel",popup:!0,$$slots:{footer:[o6],header:[l6],default:[s6]},$$scope:{ctx:n}};return e=new on({props:i}),n[13](e),e.$on("hide",n[14]),e.$on("show",n[15]),{c(){B(e.$$.fragment)},m(s,l){z(e,s,l),t=!0},p(s,[l]){const o={};l&16777710&&(o.$$scope={dirty:l,ctx:s}),e.$set(o)},i(s){t||(I(e.$$.fragment,s),t=!0)},o(s){P(e.$$.fragment,s),t=!1},d(s){n[13](null),H(e,s)}}}function a6(n,e,t){let i,s,l,o,r;const a=Tt();let u,f,d;async function p(T,O){t(1,f=T),t(2,d=O),await cn(),i||s.length||l.length||o.length?u==null||u.show():g()}function h(){u==null||u.hide()}function g(){h(),a("confirm")}const _=()=>h(),b=()=>g();function k(T){ne[T?"unshift":"push"](()=>{u=T,t(4,u)})}function $(T){he.call(this,n,T)}function C(T){he.call(this,n,T)}return n.$$.update=()=>{var T,O,M;n.$$.dirty&6&&t(3,i=(f==null?void 0:f.name)!=(d==null?void 0:d.name)),n.$$.dirty&4&&t(7,s=((T=d==null?void 0:d.schema)==null?void 0:T.filter(E=>E.id&&!E.toDelete&&E.originalName!=E.name))||[]),n.$$.dirty&4&&t(6,l=((O=d==null?void 0:d.schema)==null?void 0:O.filter(E=>E.id&&E.toDelete))||[]),n.$$.dirty&6&&t(5,o=((M=d==null?void 0:d.schema)==null?void 0:M.filter(E=>{var L,N,q;const A=(L=f==null?void 0:f.schema)==null?void 0:L.find(F=>F.id==E.id);return A?((N=A.options)==null?void 0:N.maxSelect)!=1&&((q=E.options)==null?void 0:q.maxSelect)==1:!1}))||[]),n.$$.dirty&12&&t(8,r=!(d!=null&&d.$isView)||i)},[h,f,d,i,u,o,l,s,r,g,p,_,b,k,$,C]}class u6 extends ve{constructor(e){super(),be(this,e,a6,r6,_e,{show:10,hide:0})}get show(){return this.$$.ctx[10]}get hide(){return this.$$.ctx[0]}}function fp(n,e,t){const i=n.slice();return i[47]=e[t][0],i[48]=e[t][1],i}function f6(n){let e,t,i;function s(o){n[33](o)}let l={};return n[2]!==void 0&&(l.collection=n[2]),e=new pC({props:l}),ne.push(()=>pe(e,"collection",s)),{c(){B(e.$$.fragment)},m(o,r){z(e,o,r),i=!0},p(o,r){const a={};!t&&r[0]&4&&(t=!0,a.collection=o[2],ge(()=>t=!1)),e.$set(a)},i(o){i||(I(e.$$.fragment,o),i=!0)},o(o){P(e.$$.fragment,o),i=!1},d(o){H(e,o)}}}function c6(n){let e,t,i;function s(o){n[32](o)}let l={};return n[2]!==void 0&&(l.collection=n[2]),e=new IC({props:l}),ne.push(()=>pe(e,"collection",s)),{c(){B(e.$$.fragment)},m(o,r){z(e,o,r),i=!0},p(o,r){const a={};!t&&r[0]&4&&(t=!0,a.collection=o[2],ge(()=>t=!1)),e.$set(a)},i(o){i||(I(e.$$.fragment,o),i=!0)},o(o){P(e.$$.fragment,o),i=!1},d(o){H(e,o)}}}function cp(n){let e,t,i,s;function l(r){n[34](r)}let o={};return n[2]!==void 0&&(o.collection=n[2]),t=new CC({props:o}),ne.push(()=>pe(t,"collection",l)),{c(){e=y("div"),B(t.$$.fragment),m(e,"class","tab-item active")},m(r,a){S(r,e,a),z(t,e,null),s=!0},p(r,a){const u={};!i&&a[0]&4&&(i=!0,u.collection=r[2],ge(()=>i=!1)),t.$set(u)},i(r){s||(I(t.$$.fragment,r),s=!0)},o(r){P(t.$$.fragment,r),s=!1},d(r){r&&w(e),H(t)}}}function dp(n){let e,t,i,s;function l(r){n[35](r)}let o={};return n[2]!==void 0&&(o.collection=n[2]),t=new i6({props:o}),ne.push(()=>pe(t,"collection",l)),{c(){e=y("div"),B(t.$$.fragment),m(e,"class","tab-item"),Q(e,"active",n[3]===Fs)},m(r,a){S(r,e,a),z(t,e,null),s=!0},p(r,a){const u={};!i&&a[0]&4&&(i=!0,u.collection=r[2],ge(()=>i=!1)),t.$set(u),(!s||a[0]&8)&&Q(e,"active",r[3]===Fs)},i(r){s||(I(t.$$.fragment,r),s=!0)},o(r){P(t.$$.fragment,r),s=!1},d(r){r&&w(e),H(t)}}}function d6(n){let e,t,i,s,l,o,r;const a=[c6,f6],u=[];function f(h,g){return h[2].$isView?0:1}i=f(n),s=u[i]=a[i](n);let d=n[3]===wl&&cp(n),p=n[2].$isAuth&&dp(n);return{c(){e=y("div"),t=y("div"),s.c(),l=D(),d&&d.c(),o=D(),p&&p.c(),m(t,"class","tab-item"),Q(t,"active",n[3]===Ni),m(e,"class","tabs-content svelte-12y0yzb")},m(h,g){S(h,e,g),v(e,t),u[i].m(t,null),v(e,l),d&&d.m(e,null),v(e,o),p&&p.m(e,null),r=!0},p(h,g){let _=i;i=f(h),i===_?u[i].p(h,g):(ue(),P(u[_],1,1,()=>{u[_]=null}),fe(),s=u[i],s?s.p(h,g):(s=u[i]=a[i](h),s.c()),I(s,1),s.m(t,null)),(!r||g[0]&8)&&Q(t,"active",h[3]===Ni),h[3]===wl?d?(d.p(h,g),g[0]&8&&I(d,1)):(d=cp(h),d.c(),I(d,1),d.m(e,o)):d&&(ue(),P(d,1,1,()=>{d=null}),fe()),h[2].$isAuth?p?(p.p(h,g),g[0]&4&&I(p,1)):(p=dp(h),p.c(),I(p,1),p.m(e,null)):p&&(ue(),P(p,1,1,()=>{p=null}),fe())},i(h){r||(I(s),I(d),I(p),r=!0)},o(h){P(s),P(d),P(p),r=!1},d(h){h&&w(e),u[i].d(),d&&d.d(),p&&p.d()}}}function pp(n){let e,t,i,s,l,o,r;return o=new Jn({props:{class:"dropdown dropdown-right m-t-5",$$slots:{default:[p6]},$$scope:{ctx:n}}}),{c(){e=y("div"),t=D(),i=y("button"),s=y("i"),l=D(),B(o.$$.fragment),m(e,"class","flex-fill"),m(s,"class","ri-more-line"),m(i,"type","button"),m(i,"aria-label","More"),m(i,"class","btn btn-sm btn-circle btn-transparent flex-gap-0")},m(a,u){S(a,e,u),S(a,t,u),S(a,i,u),v(i,s),v(i,l),z(o,i,null),r=!0},p(a,u){const f={};u[1]&1048576&&(f.$$scope={dirty:u,ctx:a}),o.$set(f)},i(a){r||(I(o.$$.fragment,a),r=!0)},o(a){P(o.$$.fragment,a),r=!1},d(a){a&&w(e),a&&w(t),a&&w(i),H(o)}}}function p6(n){let e,t,i,s,l;return{c(){e=y("button"),e.innerHTML=` Duplicate`,t=D(),i=y("button"),i.innerHTML=` Delete`,m(e,"type","button"),m(e,"class","dropdown-item closable"),m(i,"type","button"),m(i,"class","dropdown-item txt-danger closable")},m(o,r){S(o,e,r),S(o,t,r),S(o,i,r),s||(l=[J(e,"click",n[24]),J(i,"click",In(xe(n[25])))],s=!0)},p:te,d(o){o&&w(e),o&&w(t),o&&w(i),s=!1,De(l)}}}function mp(n){let e,t,i,s;return i=new Jn({props:{class:"dropdown dropdown-right dropdown-nowrap m-t-5",$$slots:{default:[m6]},$$scope:{ctx:n}}}),{c(){e=y("i"),t=D(),B(i.$$.fragment),m(e,"class","ri-arrow-down-s-fill")},m(l,o){S(l,e,o),S(l,t,o),z(i,l,o),s=!0},p(l,o){const r={};o[0]&68|o[1]&1048576&&(r.$$scope={dirty:o,ctx:l}),i.$set(r)},i(l){s||(I(i.$$.fragment,l),s=!0)},o(l){P(i.$$.fragment,l),s=!1},d(l){l&&w(e),l&&w(t),H(i,l)}}}function hp(n){let e,t,i,s,l,o=n[48]+"",r,a,u,f,d;function p(){return n[27](n[47])}return{c(){e=y("button"),t=y("i"),s=D(),l=y("span"),r=Y(o),a=Y(" collection"),u=D(),m(t,"class",i=os(W.getCollectionTypeIcon(n[47]))+" svelte-12y0yzb"),m(l,"class","txt"),m(e,"type","button"),m(e,"class","dropdown-item closable"),Q(e,"selected",n[47]==n[2].type)},m(h,g){S(h,e,g),v(e,t),v(e,s),v(e,l),v(l,r),v(l,a),v(e,u),f||(d=J(e,"click",p),f=!0)},p(h,g){n=h,g[0]&64&&i!==(i=os(W.getCollectionTypeIcon(n[47]))+" svelte-12y0yzb")&&m(t,"class",i),g[0]&64&&o!==(o=n[48]+"")&&le(r,o),g[0]&68&&Q(e,"selected",n[47]==n[2].type)},d(h){h&&w(e),f=!1,d()}}}function m6(n){let e,t=Object.entries(n[6]),i=[];for(let s=0;s{q=null}),fe()),(!A||V[0]&4&&T!==(T="btn btn-sm p-r-10 p-l-10 "+(R[2].$isNew?"btn-outline":"btn-transparent")))&&m(p,"class",T),(!A||V[0]&4&&O!==(O=!R[2].$isNew))&&(p.disabled=O),R[2].system?F||(F=_p(),F.c(),F.m(E.parentNode,E)):F&&(F.d(1),F=null)},i(R){A||(I(q),A=!0)},o(R){P(q),A=!1},d(R){R&&w(e),R&&w(s),R&&w(l),R&&w(f),R&&w(d),q&&q.d(),R&&w(M),F&&F.d(R),R&&w(E),L=!1,N()}}}function gp(n){let e,t,i,s,l,o;return{c(){e=y("i"),m(e,"class","ri-error-warning-fill txt-danger")},m(r,a){S(r,e,a),s=!0,l||(o=Ee(t=Be.call(null,e,n[11])),l=!0)},p(r,a){t&&jt(t.update)&&a[0]&2048&&t.update.call(null,r[11])},i(r){s||(r&&et(()=>{s&&(i||(i=Ve(e,Jt,{duration:150,start:.7},!0)),i.run(1))}),s=!0)},o(r){r&&(i||(i=Ve(e,Jt,{duration:150,start:.7},!1)),i.run(0)),s=!1},d(r){r&&w(e),r&&i&&i.end(),l=!1,o()}}}function bp(n){let e,t,i,s,l;return{c(){e=y("i"),m(e,"class","ri-error-warning-fill txt-danger")},m(o,r){S(o,e,r),i=!0,s||(l=Ee(Be.call(null,e,"Has errors")),s=!0)},i(o){i||(o&&et(()=>{i&&(t||(t=Ve(e,Jt,{duration:150,start:.7},!0)),t.run(1))}),i=!0)},o(o){o&&(t||(t=Ve(e,Jt,{duration:150,start:.7},!1)),t.run(0)),i=!1},d(o){o&&w(e),o&&t&&t.end(),s=!1,l()}}}function vp(n){var a,u,f;let e,t,i,s=!W.isEmpty((a=n[5])==null?void 0:a.options)&&!((f=(u=n[5])==null?void 0:u.options)!=null&&f.manageRule),l,o,r=s&&yp();return{c(){e=y("button"),t=y("span"),t.textContent="Options",i=D(),r&&r.c(),m(t,"class","txt"),m(e,"type","button"),m(e,"class","tab-item"),Q(e,"active",n[3]===Fs)},m(d,p){S(d,e,p),v(e,t),v(e,i),r&&r.m(e,null),l||(o=J(e,"click",n[31]),l=!0)},p(d,p){var h,g,_;p[0]&32&&(s=!W.isEmpty((h=d[5])==null?void 0:h.options)&&!((_=(g=d[5])==null?void 0:g.options)!=null&&_.manageRule)),s?r?p[0]&32&&I(r,1):(r=yp(),r.c(),I(r,1),r.m(e,null)):r&&(ue(),P(r,1,1,()=>{r=null}),fe()),p[0]&8&&Q(e,"active",d[3]===Fs)},d(d){d&&w(e),r&&r.d(),l=!1,o()}}}function yp(n){let e,t,i,s,l;return{c(){e=y("i"),m(e,"class","ri-error-warning-fill txt-danger")},m(o,r){S(o,e,r),i=!0,s||(l=Ee(Be.call(null,e,"Has errors")),s=!0)},i(o){i||(o&&et(()=>{i&&(t||(t=Ve(e,Jt,{duration:150,start:.7},!0)),t.run(1))}),i=!0)},o(o){o&&(t||(t=Ve(e,Jt,{duration:150,start:.7},!1)),t.run(0)),i=!1},d(o){o&&w(e),o&&t&&t.end(),s=!1,l()}}}function _6(n){var j,U,x,X,Z,oe,ee,se;let e,t=n[2].$isNew?"New collection":"Edit collection",i,s,l,o,r,a,u,f,d,p,h,g=(j=n[2])!=null&&j.$isView?"Query":"Fields",_,b,k=!W.isEmpty(n[11]),$,C,T,O,M=!W.isEmpty((U=n[5])==null?void 0:U.listRule)||!W.isEmpty((x=n[5])==null?void 0:x.viewRule)||!W.isEmpty((X=n[5])==null?void 0:X.createRule)||!W.isEmpty((Z=n[5])==null?void 0:Z.updateRule)||!W.isEmpty((oe=n[5])==null?void 0:oe.deleteRule)||!W.isEmpty((se=(ee=n[5])==null?void 0:ee.options)==null?void 0:se.manageRule),E,A,L,N,q=!n[2].$isNew&&!n[2].system&&pp(n);r=new me({props:{class:"form-field collection-field-name required m-b-0 "+(n[13]?"disabled":""),name:"name",$$slots:{default:[h6,({uniqueId:ye})=>({46:ye}),({uniqueId:ye})=>[0,ye?32768:0]]},$$scope:{ctx:n}}});let F=k&&gp(n),R=M&&bp(),V=n[2].$isAuth&&vp(n);return{c(){e=y("h4"),i=Y(t),s=D(),q&&q.c(),l=D(),o=y("form"),B(r.$$.fragment),a=D(),u=y("input"),f=D(),d=y("div"),p=y("button"),h=y("span"),_=Y(g),b=D(),F&&F.c(),$=D(),C=y("button"),T=y("span"),T.textContent="API Rules",O=D(),R&&R.c(),E=D(),V&&V.c(),m(e,"class","upsert-panel-title svelte-12y0yzb"),m(u,"type","submit"),m(u,"class","hidden"),m(u,"tabindex","-1"),m(o,"class","block"),m(h,"class","txt"),m(p,"type","button"),m(p,"class","tab-item"),Q(p,"active",n[3]===Ni),m(T,"class","txt"),m(C,"type","button"),m(C,"class","tab-item"),Q(C,"active",n[3]===wl),m(d,"class","tabs-header stretched")},m(ye,$e){S(ye,e,$e),v(e,i),S(ye,s,$e),q&&q.m(ye,$e),S(ye,l,$e),S(ye,o,$e),z(r,o,null),v(o,a),v(o,u),S(ye,f,$e),S(ye,d,$e),v(d,p),v(p,h),v(h,_),v(p,b),F&&F.m(p,null),v(d,$),v(d,C),v(C,T),v(C,O),R&&R.m(C,null),v(d,E),V&&V.m(d,null),A=!0,L||(N=[J(o,"submit",xe(n[28])),J(p,"click",n[29]),J(C,"click",n[30])],L=!0)},p(ye,$e){var Ue,Se,Oe,Ge,_t,Xe,Ke,Te;(!A||$e[0]&4)&&t!==(t=ye[2].$isNew?"New collection":"Edit collection")&&le(i,t),!ye[2].$isNew&&!ye[2].system?q?(q.p(ye,$e),$e[0]&4&&I(q,1)):(q=pp(ye),q.c(),I(q,1),q.m(l.parentNode,l)):q&&(ue(),P(q,1,1,()=>{q=null}),fe());const ze={};$e[0]&8192&&(ze.class="form-field collection-field-name required m-b-0 "+(ye[13]?"disabled":"")),$e[0]&8260|$e[1]&1081344&&(ze.$$scope={dirty:$e,ctx:ye}),r.$set(ze),(!A||$e[0]&4)&&g!==(g=(Ue=ye[2])!=null&&Ue.$isView?"Query":"Fields")&&le(_,g),$e[0]&2048&&(k=!W.isEmpty(ye[11])),k?F?(F.p(ye,$e),$e[0]&2048&&I(F,1)):(F=gp(ye),F.c(),I(F,1),F.m(p,null)):F&&(ue(),P(F,1,1,()=>{F=null}),fe()),(!A||$e[0]&8)&&Q(p,"active",ye[3]===Ni),$e[0]&32&&(M=!W.isEmpty((Se=ye[5])==null?void 0:Se.listRule)||!W.isEmpty((Oe=ye[5])==null?void 0:Oe.viewRule)||!W.isEmpty((Ge=ye[5])==null?void 0:Ge.createRule)||!W.isEmpty((_t=ye[5])==null?void 0:_t.updateRule)||!W.isEmpty((Xe=ye[5])==null?void 0:Xe.deleteRule)||!W.isEmpty((Te=(Ke=ye[5])==null?void 0:Ke.options)==null?void 0:Te.manageRule)),M?R?$e[0]&32&&I(R,1):(R=bp(),R.c(),I(R,1),R.m(C,null)):R&&(ue(),P(R,1,1,()=>{R=null}),fe()),(!A||$e[0]&8)&&Q(C,"active",ye[3]===wl),ye[2].$isAuth?V?V.p(ye,$e):(V=vp(ye),V.c(),V.m(d,null)):V&&(V.d(1),V=null)},i(ye){A||(I(q),I(r.$$.fragment,ye),I(F),I(R),A=!0)},o(ye){P(q),P(r.$$.fragment,ye),P(F),P(R),A=!1},d(ye){ye&&w(e),ye&&w(s),q&&q.d(ye),ye&&w(l),ye&&w(o),H(r),ye&&w(f),ye&&w(d),F&&F.d(),R&&R.d(),V&&V.d(),L=!1,De(N)}}}function g6(n){let e,t,i,s,l,o=n[2].$isNew?"Create":"Save changes",r,a,u,f;return{c(){e=y("button"),t=y("span"),t.textContent="Cancel",i=D(),s=y("button"),l=y("span"),r=Y(o),m(t,"class","txt"),m(e,"type","button"),m(e,"class","btn btn-transparent"),e.disabled=n[9],m(l,"class","txt"),m(s,"type","button"),m(s,"class","btn btn-expanded"),s.disabled=a=!n[12]||n[9],Q(s,"btn-loading",n[9])},m(d,p){S(d,e,p),v(e,t),S(d,i,p),S(d,s,p),v(s,l),v(l,r),u||(f=[J(e,"click",n[22]),J(s,"click",n[23])],u=!0)},p(d,p){p[0]&512&&(e.disabled=d[9]),p[0]&4&&o!==(o=d[2].$isNew?"Create":"Save changes")&&le(r,o),p[0]&4608&&a!==(a=!d[12]||d[9])&&(s.disabled=a),p[0]&512&&Q(s,"btn-loading",d[9])},d(d){d&&w(e),d&&w(i),d&&w(s),u=!1,De(f)}}}function b6(n){let e,t,i,s,l={class:"overlay-panel-lg colored-header collection-panel",escClose:!1,overlayClose:!n[9],beforeHide:n[36],$$slots:{footer:[g6],header:[_6],default:[d6]},$$scope:{ctx:n}};e=new on({props:l}),n[37](e),e.$on("hide",n[38]),e.$on("show",n[39]);let o={};return i=new u6({props:o}),n[40](i),i.$on("confirm",n[41]),{c(){B(e.$$.fragment),t=D(),B(i.$$.fragment)},m(r,a){z(e,r,a),S(r,t,a),z(i,r,a),s=!0},p(r,a){const u={};a[0]&512&&(u.overlayClose=!r[9]),a[0]&1040&&(u.beforeHide=r[36]),a[0]&14956|a[1]&1048576&&(u.$$scope={dirty:a,ctx:r}),e.$set(u);const f={};i.$set(f)},i(r){s||(I(e.$$.fragment,r),I(i.$$.fragment,r),s=!0)},o(r){P(e.$$.fragment,r),P(i.$$.fragment,r),s=!1},d(r){n[37](null),H(e,r),r&&w(t),n[40](null),H(i,r)}}}const Ni="schema",wl="api_rules",Fs="options",v6="base",kp="auth",wp="view";function Fr(n){return JSON.stringify(n)}function y6(n,e,t){let i,s,l,o;Ze(n,Ti,Te=>t(5,o=Te));const r={};r[v6]="Base",r[wp]="View",r[kp]="Auth";const a=Tt();let u,f,d=null,p=new kn,h=!1,g=!1,_=Ni,b=Fr(p),k="";function $(Te){t(3,_=Te)}function C(Te){return O(Te),t(10,g=!0),$(Ni),u==null?void 0:u.show()}function T(){return u==null?void 0:u.hide()}async function O(Te){tn({}),typeof Te<"u"?(t(20,d=Te),t(2,p=Te.$clone())):(t(20,d=null),t(2,p=new kn)),t(2,p.schema=p.schema||[],p),t(2,p.originalName=p.name||"",p),await cn(),t(21,b=Fr(p))}function M(){p.$isNew?E():f==null||f.show(d,p)}function E(){if(h)return;t(9,h=!0);const Te=A();let ce;p.$isNew?ce=de.collections.create(Te):ce=de.collections.update(p.id,Te),ce.then(He=>{Fa(),Ly(He),t(10,g=!1),T(),Ht(p.$isNew?"Successfully created collection.":"Successfully updated collection."),a("save",{isNew:p.$isNew,collection:He})}).catch(He=>{de.error(He)}).finally(()=>{t(9,h=!1)})}function A(){const Te=p.$export();Te.schema=Te.schema.slice(0);for(let ce=Te.schema.length-1;ce>=0;ce--)Te.schema[ce].toDelete&&Te.schema.splice(ce,1);return Te}function L(){d!=null&&d.id&&mn(`Do you really want to delete collection "${d==null?void 0:d.name}" and all its records?`,()=>de.collections.delete(d==null?void 0:d.id).then(()=>{T(),Ht(`Successfully deleted collection "${d==null?void 0:d.name}".`),a("delete",d),Py(d)}).catch(Te=>{de.error(Te)}))}function N(Te){t(2,p.type=Te,p),ui("schema")}function q(){s?mn("You have unsaved changes. Do you really want to discard them?",()=>{F()}):F()}async function F(){const Te=d==null?void 0:d.$clone();if(Te){if(Te.id="",Te.created="",Te.updated="",Te.name+="_duplicate",!W.isEmpty(Te.schema))for(const ce of Te.schema)ce.id="";if(!W.isEmpty(Te.indexes))for(let ce=0;ceT(),V=()=>M(),j=()=>q(),U=()=>L(),x=Te=>{t(2,p.name=W.slugify(Te.target.value),p),Te.target.value=p.name},X=Te=>N(Te),Z=()=>{l&&M()},oe=()=>$(Ni),ee=()=>$(wl),se=()=>$(Fs);function ye(Te){p=Te,t(2,p),t(20,d)}function $e(Te){p=Te,t(2,p),t(20,d)}function ze(Te){p=Te,t(2,p),t(20,d)}function Ue(Te){p=Te,t(2,p),t(20,d)}const Se=()=>s&&g?(mn("You have unsaved changes. Do you really want to close the panel?",()=>{t(10,g=!1),T()}),!1):!0;function Oe(Te){ne[Te?"unshift":"push"](()=>{u=Te,t(7,u)})}function Ge(Te){he.call(this,n,Te)}function _t(Te){he.call(this,n,Te)}function Xe(Te){ne[Te?"unshift":"push"](()=>{f=Te,t(8,f)})}const Ke=()=>E();return n.$$.update=()=>{var Te,ce;n.$$.dirty[0]&32&&(o.schema||(Te=o.options)!=null&&Te.query?t(11,k=W.getNestedVal(o,"schema.message")||"Has errors"):t(11,k="")),n.$$.dirty[0]&4&&p.type===wp&&(t(2,p.createRule=null,p),t(2,p.updateRule=null,p),t(2,p.deleteRule=null,p),t(2,p.indexes=[],p)),n.$$.dirty[0]&1048580&&p!=null&&p.name&&(d==null?void 0:d.name)!=(p==null?void 0:p.name)&&t(2,p.indexes=(ce=p.indexes)==null?void 0:ce.map(He=>W.replaceIndexTableName(He,p.name)),p),n.$$.dirty[0]&4&&t(13,i=!p.$isNew&&p.system),n.$$.dirty[0]&2097156&&t(4,s=b!=Fr(p)),n.$$.dirty[0]&20&&t(12,l=p.$isNew||s),n.$$.dirty[0]&12&&_===Fs&&p.type!==kp&&$(Ni)},[$,T,p,_,s,o,r,u,f,h,g,k,l,i,M,E,L,N,q,C,d,b,R,V,j,U,x,X,Z,oe,ee,se,ye,$e,ze,Ue,Se,Oe,Ge,_t,Xe,Ke]}class du extends ve{constructor(e){super(),be(this,e,y6,b6,_e,{changeTab:0,show:19,hide:1},null,[-1,-1])}get changeTab(){return this.$$.ctx[0]}get show(){return this.$$.ctx[19]}get hide(){return this.$$.ctx[1]}}function Sp(n,e,t){const i=n.slice();return i[15]=e[t],i}function $p(n){let e,t=n[1].length&&Tp();return{c(){t&&t.c(),e=we()},m(i,s){t&&t.m(i,s),S(i,e,s)},p(i,s){i[1].length?t||(t=Tp(),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(i){t&&t.d(i),i&&w(e)}}}function Tp(n){let e;return{c(){e=y("p"),e.textContent="No collections found.",m(e,"class","txt-hint m-t-10 m-b-10 txt-center")},m(t,i){S(t,e,i)},d(t){t&&w(e)}}}function Cp(n,e){let t,i,s,l,o,r=e[15].name+"",a,u,f,d,p,h;return{key:n,first:null,c(){var g;t=y("a"),i=y("i"),l=D(),o=y("span"),a=Y(r),u=D(),m(i,"class",s=W.getCollectionTypeIcon(e[15].type)),m(o,"class","txt"),m(t,"href",f="/collections?collectionId="+e[15].id),m(t,"class","sidebar-list-item"),m(t,"title",d=e[15].name),Q(t,"active",((g=e[5])==null?void 0:g.id)===e[15].id),this.first=t},m(g,_){S(g,t,_),v(t,i),v(t,l),v(t,o),v(o,a),v(t,u),p||(h=Ee(rn.call(null,t)),p=!0)},p(g,_){var b;e=g,_&8&&s!==(s=W.getCollectionTypeIcon(e[15].type))&&m(i,"class",s),_&8&&r!==(r=e[15].name+"")&&le(a,r),_&8&&f!==(f="/collections?collectionId="+e[15].id)&&m(t,"href",f),_&8&&d!==(d=e[15].name)&&m(t,"title",d),_&40&&Q(t,"active",((b=e[5])==null?void 0:b.id)===e[15].id)},d(g){g&&w(t),p=!1,h()}}}function Mp(n){let e,t,i,s;return{c(){e=y("footer"),t=y("button"),t.innerHTML=` - New collection`,m(t,"type","button"),m(t,"class","btn btn-block btn-outline"),m(e,"class","sidebar-footer")},m(l,o){S(l,e,o),v(e,t),i||(s=J(t,"click",n[12]),i=!0)},p:te,d(l){l&&w(e),i=!1,s()}}}function k6(n){let e,t,i,s,l,o,r,a,u,f,d,p=[],h=new Map,g,_,b,k,$,C,T=n[3];const O=L=>L[15].id;for(let L=0;L',o=D(),r=y("input"),a=D(),u=y("hr"),f=D(),d=y("div");for(let L=0;L20),m(e,"class","page-sidebar collection-sidebar")},m(L,N){S(L,e,N),v(e,t),v(t,i),v(i,s),v(s,l),v(i,o),v(i,r),ae(r,n[0]),v(e,a),v(e,u),v(e,f),v(e,d);for(let q=0;q20),L[7]?E&&(E.d(1),E=null):E?E.p(L,N):(E=Mp(L),E.c(),E.m(e,null));const q={};b.$set(q)},i(L){k||(I(b.$$.fragment,L),k=!0)},o(L){P(b.$$.fragment,L),k=!1},d(L){L&&w(e);for(let N=0;N{const n=document.querySelector(".collection-sidebar .sidebar-list-item.active");n&&(n==null||n.scrollIntoView({block:"nearest"}))},0)}function S6(n,e,t){let i,s,l,o,r,a,u;Ze(n,fi,$=>t(5,o=$)),Ze(n,di,$=>t(9,r=$)),Ze(n,ko,$=>t(6,a=$)),Ze(n,Is,$=>t(7,u=$));let f,d="";function p($){ln(fi,o=$,o)}const h=()=>t(0,d="");function g(){d=this.value,t(0,d)}const _=()=>f==null?void 0:f.show();function b($){ne[$?"unshift":"push"](()=>{f=$,t(2,f)})}const k=$=>{var C;(C=$.detail)!=null&&C.isNew&&$.detail.collection&&p($.detail.collection)};return n.$$.update=()=>{n.$$.dirty&512&&r&&w6(),n.$$.dirty&1&&t(1,i=d.replace(/\s+/g,"").toLowerCase()),n.$$.dirty&1&&t(4,s=d!==""),n.$$.dirty&515&&t(3,l=r.filter($=>$.id==d||$.name.replace(/\s+/g,"").toLowerCase().includes(i)))},[d,i,f,l,s,o,a,u,p,r,h,g,_,b,k]}class $6 extends ve{constructor(e){super(),be(this,e,S6,k6,_e,{})}}function Op(n,e,t){const i=n.slice();return i[14]=e[t][0],i[15]=e[t][1],i}function Ep(n){n[18]=n[19].default}function Dp(n,e,t){const i=n.slice();return i[14]=e[t][0],i[15]=e[t][1],i[21]=t,i}function Ap(n){let e;return{c(){e=y("hr"),m(e,"class","m-t-sm m-b-sm")},m(t,i){S(t,e,i)},d(t){t&&w(e)}}}function Ip(n,e){let t,i=e[21]===Object.keys(e[6]).length,s,l,o=e[15].label+"",r,a,u,f,d=i&&Ap();function p(){return e[9](e[14])}return{key:n,first:null,c(){t=we(),d&&d.c(),s=D(),l=y("button"),r=Y(o),a=D(),m(l,"type","button"),m(l,"class","sidebar-item"),Q(l,"active",e[5]===e[14]),this.first=t},m(h,g){S(h,t,g),d&&d.m(h,g),S(h,s,g),S(h,l,g),v(l,r),v(l,a),u||(f=J(l,"click",p),u=!0)},p(h,g){e=h,g&8&&(i=e[21]===Object.keys(e[6]).length),i?d||(d=Ap(),d.c(),d.m(s.parentNode,s)):d&&(d.d(1),d=null),g&8&&o!==(o=e[15].label+"")&&le(r,o),g&40&&Q(l,"active",e[5]===e[14])},d(h){h&&w(t),d&&d.d(h),h&&w(s),h&&w(l),u=!1,f()}}}function Lp(n){let e,t,i,s={ctx:n,current:null,token:null,hasCatch:!1,pending:M6,then:C6,catch:T6,value:19,blocks:[,,,]};return bu(t=n[15].component,s),{c(){e=we(),s.block.c()},m(l,o){S(l,e,o),s.block.m(l,s.anchor=o),s.mount=()=>e.parentNode,s.anchor=e,i=!0},p(l,o){n=l,s.ctx=n,o&8&&t!==(t=n[15].component)&&bu(t,s)||n0(s,n,o)},i(l){i||(I(s.block),i=!0)},o(l){for(let o=0;o<3;o+=1){const r=s.blocks[o];P(r)}i=!1},d(l){l&&w(e),s.block.d(l),s.token=null,s=null}}}function T6(n){return{c:te,m:te,p:te,i:te,o:te,d:te}}function C6(n){Ep(n);let e,t,i;return e=new n[18]({props:{collection:n[2]}}),{c(){B(e.$$.fragment),t=D()},m(s,l){z(e,s,l),S(s,t,l),i=!0},p(s,l){Ep(s);const o={};l&4&&(o.collection=s[2]),e.$set(o)},i(s){i||(I(e.$$.fragment,s),i=!0)},o(s){P(e.$$.fragment,s),i=!1},d(s){H(e,s),s&&w(t)}}}function M6(n){return{c:te,m:te,p:te,i:te,o:te,d:te}}function Pp(n,e){let t,i,s,l=e[5]===e[14]&&Lp(e);return{key:n,first:null,c(){t=we(),l&&l.c(),i=we(),this.first=t},m(o,r){S(o,t,r),l&&l.m(o,r),S(o,i,r),s=!0},p(o,r){e=o,e[5]===e[14]?l?(l.p(e,r),r&40&&I(l,1)):(l=Lp(e),l.c(),I(l,1),l.m(i.parentNode,i)):l&&(ue(),P(l,1,1,()=>{l=null}),fe())},i(o){s||(I(l),s=!0)},o(o){P(l),s=!1},d(o){o&&w(t),l&&l.d(o),o&&w(i)}}}function O6(n){let e,t,i,s=[],l=new Map,o,r,a=[],u=new Map,f,d=Object.entries(n[3]);const p=_=>_[14];for(let _=0;__[14];for(let _=0;_Close',m(e,"type","button"),m(e,"class","btn btn-transparent")},m(s,l){S(s,e,l),t||(i=J(e,"click",n[8]),t=!0)},p:te,d(s){s&&w(e),t=!1,i()}}}function D6(n){let e,t,i={class:"docs-panel",$$slots:{footer:[E6],default:[O6]},$$scope:{ctx:n}};return e=new on({props:i}),n[10](e),e.$on("hide",n[11]),e.$on("show",n[12]),{c(){B(e.$$.fragment)},m(s,l){z(e,s,l),t=!0},p(s,[l]){const o={};l&4194348&&(o.$$scope={dirty:l,ctx:s}),e.$set(o)},i(s){t||(I(e.$$.fragment,s),t=!0)},o(s){P(e.$$.fragment,s),t=!1},d(s){n[10](null),H(e,s)}}}function A6(n,e,t){const i={list:{label:"List/Search",component:ut(()=>import("./ListApiDocs-0c49b414.js"),["./ListApiDocs-0c49b414.js","./SdkTabs-5df68e34.js","./SdkTabs-9b0b7a06.css","./ListApiDocs-68f52edd.css"],import.meta.url)},view:{label:"View",component:ut(()=>import("./ViewApiDocs-442f6b99.js"),["./ViewApiDocs-442f6b99.js","./SdkTabs-5df68e34.js","./SdkTabs-9b0b7a06.css"],import.meta.url)},create:{label:"Create",component:ut(()=>import("./CreateApiDocs-3f2e45a8.js"),["./CreateApiDocs-3f2e45a8.js","./SdkTabs-5df68e34.js","./SdkTabs-9b0b7a06.css"],import.meta.url)},update:{label:"Update",component:ut(()=>import("./UpdateApiDocs-b6c9fd88.js"),["./UpdateApiDocs-b6c9fd88.js","./SdkTabs-5df68e34.js","./SdkTabs-9b0b7a06.css"],import.meta.url)},delete:{label:"Delete",component:ut(()=>import("./DeleteApiDocs-47e527fe.js"),["./DeleteApiDocs-47e527fe.js","./SdkTabs-5df68e34.js","./SdkTabs-9b0b7a06.css"],import.meta.url)},realtime:{label:"Realtime",component:ut(()=>import("./RealtimeApiDocs-23a629ab.js"),["./RealtimeApiDocs-23a629ab.js","./SdkTabs-5df68e34.js","./SdkTabs-9b0b7a06.css"],import.meta.url)}},s={"auth-with-password":{label:"Auth with password",component:ut(()=>import("./AuthWithPasswordDocs-29a3e2b7.js"),["./AuthWithPasswordDocs-29a3e2b7.js","./SdkTabs-5df68e34.js","./SdkTabs-9b0b7a06.css"],import.meta.url)},"auth-with-oauth2":{label:"Auth with OAuth2",component:ut(()=>import("./AuthWithOAuth2Docs-a84f7634.js"),["./AuthWithOAuth2Docs-a84f7634.js","./SdkTabs-5df68e34.js","./SdkTabs-9b0b7a06.css"],import.meta.url)},refresh:{label:"Auth refresh",component:ut(()=>import("./AuthRefreshDocs-36d963ec.js"),["./AuthRefreshDocs-36d963ec.js","./SdkTabs-5df68e34.js","./SdkTabs-9b0b7a06.css"],import.meta.url)},"request-verification":{label:"Request verification",component:ut(()=>import("./RequestVerificationDocs-620e4d62.js"),["./RequestVerificationDocs-620e4d62.js","./SdkTabs-5df68e34.js","./SdkTabs-9b0b7a06.css"],import.meta.url)},"confirm-verification":{label:"Confirm verification",component:ut(()=>import("./ConfirmVerificationDocs-5a1a3f37.js"),["./ConfirmVerificationDocs-5a1a3f37.js","./SdkTabs-5df68e34.js","./SdkTabs-9b0b7a06.css"],import.meta.url)},"request-password-reset":{label:"Request password reset",component:ut(()=>import("./RequestPasswordResetDocs-ab2b98e9.js"),["./RequestPasswordResetDocs-ab2b98e9.js","./SdkTabs-5df68e34.js","./SdkTabs-9b0b7a06.css"],import.meta.url)},"confirm-password-reset":{label:"Confirm password reset",component:ut(()=>import("./ConfirmPasswordResetDocs-a44e6cea.js"),["./ConfirmPasswordResetDocs-a44e6cea.js","./SdkTabs-5df68e34.js","./SdkTabs-9b0b7a06.css"],import.meta.url)},"request-email-change":{label:"Request email change",component:ut(()=>import("./RequestEmailChangeDocs-c1a86908.js"),["./RequestEmailChangeDocs-c1a86908.js","./SdkTabs-5df68e34.js","./SdkTabs-9b0b7a06.css"],import.meta.url)},"confirm-email-change":{label:"Confirm email change",component:ut(()=>import("./ConfirmEmailChangeDocs-46e0d26f.js"),["./ConfirmEmailChangeDocs-46e0d26f.js","./SdkTabs-5df68e34.js","./SdkTabs-9b0b7a06.css"],import.meta.url)},"list-auth-methods":{label:"List auth methods",component:ut(()=>import("./AuthMethodsDocs-ff4a33f2.js"),["./AuthMethodsDocs-ff4a33f2.js","./SdkTabs-5df68e34.js","./SdkTabs-9b0b7a06.css"],import.meta.url)},"list-linked-accounts":{label:"List OAuth2 accounts",component:ut(()=>import("./ListExternalAuthsDocs-c81f336e.js"),["./ListExternalAuthsDocs-c81f336e.js","./SdkTabs-5df68e34.js","./SdkTabs-9b0b7a06.css"],import.meta.url)},"unlink-account":{label:"Unlink OAuth2 account",component:ut(()=>import("./UnlinkExternalAuthDocs-b5c46456.js"),["./UnlinkExternalAuthDocs-b5c46456.js","./SdkTabs-5df68e34.js","./SdkTabs-9b0b7a06.css"],import.meta.url)}};let l,o=new kn,r,a=[];a.length&&(r=Object.keys(a)[0]);function u(k){return t(2,o=k),d(Object.keys(a)[0]),l==null?void 0:l.show()}function f(){return l==null?void 0:l.hide()}function d(k){t(5,r=k)}const p=()=>f(),h=k=>d(k);function g(k){ne[k?"unshift":"push"](()=>{l=k,t(4,l)})}function _(k){he.call(this,n,k)}function b(k){he.call(this,n,k)}return n.$$.update=()=>{n.$$.dirty&12&&(o.$isAuth?(t(3,a=Object.assign({},i,s)),!(o!=null&&o.options.allowUsernameAuth)&&!(o!=null&&o.options.allowEmailAuth)&&delete a["auth-with-password"],o!=null&&o.options.allowOAuth2Auth||delete a["auth-with-oauth2"]):o.$isView?(t(3,a=Object.assign({},i)),delete a.create,delete a.update,delete a.delete,delete a.realtime):t(3,a=Object.assign({},i)))},[f,d,o,a,l,r,i,u,p,h,g,_,b]}class I6 extends ve{constructor(e){super(),be(this,e,A6,D6,_e,{show:7,hide:0,changeTab:1})}get show(){return this.$$.ctx[7]}get hide(){return this.$$.ctx[0]}get changeTab(){return this.$$.ctx[1]}}function L6(n){let e,t,i,s,l,o,r,a,u,f,d,p;return{c(){e=y("label"),t=y("i"),i=D(),s=y("span"),s.textContent="Username",o=D(),r=y("input"),m(t,"class",W.getFieldTypeIcon("user")),m(s,"class","txt"),m(e,"for",l=n[13]),m(r,"type","text"),m(r,"requried",a=!n[2]),m(r,"placeholder",u=n[2]?"Leave empty to auto generate...":n[4]),m(r,"id",f=n[13])},m(h,g){S(h,e,g),v(e,t),v(e,i),v(e,s),S(h,o,g),S(h,r,g),ae(r,n[0].username),d||(p=J(r,"input",n[5]),d=!0)},p(h,g){g&8192&&l!==(l=h[13])&&m(e,"for",l),g&4&&a!==(a=!h[2])&&m(r,"requried",a),g&4&&u!==(u=h[2]?"Leave empty to auto generate...":h[4])&&m(r,"placeholder",u),g&8192&&f!==(f=h[13])&&m(r,"id",f),g&1&&r.value!==h[0].username&&ae(r,h[0].username)},d(h){h&&w(e),h&&w(o),h&&w(r),d=!1,p()}}}function P6(n){let e,t,i,s,l,o,r,a,u,f,d=n[0].emailVisibility?"On":"Off",p,h,g,_,b,k,$,C;return{c(){var T;e=y("label"),t=y("i"),i=D(),s=y("span"),s.textContent="Email",o=D(),r=y("div"),a=y("button"),u=y("span"),f=Y("Public: "),p=Y(d),g=D(),_=y("input"),m(t,"class",W.getFieldTypeIcon("email")),m(s,"class","txt"),m(e,"for",l=n[13]),m(u,"class","txt"),m(a,"type","button"),m(a,"class",h="btn btn-sm btn-transparent "+(n[0].emailVisibility?"btn-success":"btn-hint")),m(r,"class","form-field-addon email-visibility-addon svelte-1751a4d"),m(_,"type","email"),_.autofocus=n[2],m(_,"autocomplete","off"),m(_,"id",b=n[13]),_.required=k=(T=n[1].options)==null?void 0:T.requireEmail,m(_,"class","svelte-1751a4d")},m(T,O){S(T,e,O),v(e,t),v(e,i),v(e,s),S(T,o,O),S(T,r,O),v(r,a),v(a,u),v(u,f),v(u,p),S(T,g,O),S(T,_,O),ae(_,n[0].email),n[2]&&_.focus(),$||(C=[Ee(Be.call(null,a,{text:"Make email public or private",position:"top-right"})),J(a,"click",n[6]),J(_,"input",n[7])],$=!0)},p(T,O){var M;O&8192&&l!==(l=T[13])&&m(e,"for",l),O&1&&d!==(d=T[0].emailVisibility?"On":"Off")&&le(p,d),O&1&&h!==(h="btn btn-sm btn-transparent "+(T[0].emailVisibility?"btn-success":"btn-hint"))&&m(a,"class",h),O&4&&(_.autofocus=T[2]),O&8192&&b!==(b=T[13])&&m(_,"id",b),O&2&&k!==(k=(M=T[1].options)==null?void 0:M.requireEmail)&&(_.required=k),O&1&&_.value!==T[0].email&&ae(_,T[0].email)},d(T){T&&w(e),T&&w(o),T&&w(r),T&&w(g),T&&w(_),$=!1,De(C)}}}function Np(n){let e,t;return e=new me({props:{class:"form-field form-field-toggle",name:"verified",$$slots:{default:[N6,({uniqueId:i})=>({13:i}),({uniqueId:i})=>i?8192:0]},$$scope:{ctx:n}}}),{c(){B(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p(i,s){const l={};s&24584&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(I(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){H(e,i)}}}function N6(n){let e,t,i,s,l,o,r,a;return{c(){e=y("input"),i=D(),s=y("label"),l=Y("Change password"),m(e,"type","checkbox"),m(e,"id",t=n[13]),m(s,"for",o=n[13])},m(u,f){S(u,e,f),e.checked=n[3],S(u,i,f),S(u,s,f),v(s,l),r||(a=J(e,"change",n[8]),r=!0)},p(u,f){f&8192&&t!==(t=u[13])&&m(e,"id",t),f&8&&(e.checked=u[3]),f&8192&&o!==(o=u[13])&&m(s,"for",o)},d(u){u&&w(e),u&&w(i),u&&w(s),r=!1,a()}}}function Fp(n){let e,t,i,s,l,o,r,a,u;return s=new me({props:{class:"form-field required",name:"password",$$slots:{default:[F6,({uniqueId:f})=>({13:f}),({uniqueId:f})=>f?8192:0]},$$scope:{ctx:n}}}),r=new me({props:{class:"form-field required",name:"passwordConfirm",$$slots:{default:[R6,({uniqueId:f})=>({13:f}),({uniqueId:f})=>f?8192:0]},$$scope:{ctx:n}}}),{c(){e=y("div"),t=y("div"),i=y("div"),B(s.$$.fragment),l=D(),o=y("div"),B(r.$$.fragment),m(i,"class","col-sm-6"),m(o,"class","col-sm-6"),m(t,"class","grid"),Q(t,"p-t-xs",n[3]),m(e,"class","block")},m(f,d){S(f,e,d),v(e,t),v(t,i),z(s,i,null),v(t,l),v(t,o),z(r,o,null),u=!0},p(f,d){const p={};d&24577&&(p.$$scope={dirty:d,ctx:f}),s.$set(p);const h={};d&24577&&(h.$$scope={dirty:d,ctx:f}),r.$set(h),(!u||d&8)&&Q(t,"p-t-xs",f[3])},i(f){u||(I(s.$$.fragment,f),I(r.$$.fragment,f),f&&et(()=>{u&&(a||(a=Ve(e,rt,{duration:150},!0)),a.run(1))}),u=!0)},o(f){P(s.$$.fragment,f),P(r.$$.fragment,f),f&&(a||(a=Ve(e,rt,{duration:150},!1)),a.run(0)),u=!1},d(f){f&&w(e),H(s),H(r),f&&a&&a.end()}}}function F6(n){let e,t,i,s,l,o,r,a,u,f;return{c(){e=y("label"),t=y("i"),i=D(),s=y("span"),s.textContent="Password",o=D(),r=y("input"),m(t,"class","ri-lock-line"),m(s,"class","txt"),m(e,"for",l=n[13]),m(r,"type","password"),m(r,"autocomplete","new-password"),m(r,"id",a=n[13]),r.required=!0},m(d,p){S(d,e,p),v(e,t),v(e,i),v(e,s),S(d,o,p),S(d,r,p),ae(r,n[0].password),u||(f=J(r,"input",n[9]),u=!0)},p(d,p){p&8192&&l!==(l=d[13])&&m(e,"for",l),p&8192&&a!==(a=d[13])&&m(r,"id",a),p&1&&r.value!==d[0].password&&ae(r,d[0].password)},d(d){d&&w(e),d&&w(o),d&&w(r),u=!1,f()}}}function R6(n){let e,t,i,s,l,o,r,a,u,f;return{c(){e=y("label"),t=y("i"),i=D(),s=y("span"),s.textContent="Password confirm",o=D(),r=y("input"),m(t,"class","ri-lock-line"),m(s,"class","txt"),m(e,"for",l=n[13]),m(r,"type","password"),m(r,"autocomplete","new-password"),m(r,"id",a=n[13]),r.required=!0},m(d,p){S(d,e,p),v(e,t),v(e,i),v(e,s),S(d,o,p),S(d,r,p),ae(r,n[0].passwordConfirm),u||(f=J(r,"input",n[10]),u=!0)},p(d,p){p&8192&&l!==(l=d[13])&&m(e,"for",l),p&8192&&a!==(a=d[13])&&m(r,"id",a),p&1&&r.value!==d[0].passwordConfirm&&ae(r,d[0].passwordConfirm)},d(d){d&&w(e),d&&w(o),d&&w(r),u=!1,f()}}}function q6(n){let e,t,i,s,l,o,r,a;return{c(){e=y("input"),i=D(),s=y("label"),l=Y("Verified"),m(e,"type","checkbox"),m(e,"id",t=n[13]),m(s,"for",o=n[13])},m(u,f){S(u,e,f),e.checked=n[0].verified,S(u,i,f),S(u,s,f),v(s,l),r||(a=[J(e,"change",n[11]),J(e,"change",xe(n[12]))],r=!0)},p(u,f){f&8192&&t!==(t=u[13])&&m(e,"id",t),f&1&&(e.checked=u[0].verified),f&8192&&o!==(o=u[13])&&m(s,"for",o)},d(u){u&&w(e),u&&w(i),u&&w(s),r=!1,De(a)}}}function j6(n){var b;let e,t,i,s,l,o,r,a,u,f,d,p,h;i=new me({props:{class:"form-field "+(n[2]?"":"required"),name:"username",$$slots:{default:[L6,({uniqueId:k})=>({13:k}),({uniqueId:k})=>k?8192:0]},$$scope:{ctx:n}}}),o=new me({props:{class:"form-field "+((b=n[1].options)!=null&&b.requireEmail?"required":""),name:"email",$$slots:{default:[P6,({uniqueId:k})=>({13:k}),({uniqueId:k})=>k?8192:0]},$$scope:{ctx:n}}});let g=!n[2]&&Np(n),_=(n[2]||n[3])&&Fp(n);return p=new me({props:{class:"form-field form-field-toggle",name:"verified",$$slots:{default:[q6,({uniqueId:k})=>({13:k}),({uniqueId:k})=>k?8192:0]},$$scope:{ctx:n}}}),{c(){e=y("div"),t=y("div"),B(i.$$.fragment),s=D(),l=y("div"),B(o.$$.fragment),r=D(),a=y("div"),g&&g.c(),u=D(),_&&_.c(),f=D(),d=y("div"),B(p.$$.fragment),m(t,"class","col-lg-6"),m(l,"class","col-lg-6"),m(a,"class","col-lg-12"),m(d,"class","col-lg-12"),m(e,"class","grid m-b-base")},m(k,$){S(k,e,$),v(e,t),z(i,t,null),v(e,s),v(e,l),z(o,l,null),v(e,r),v(e,a),g&&g.m(a,null),v(a,u),_&&_.m(a,null),v(e,f),v(e,d),z(p,d,null),h=!0},p(k,[$]){var M;const C={};$&4&&(C.class="form-field "+(k[2]?"":"required")),$&24581&&(C.$$scope={dirty:$,ctx:k}),i.$set(C);const T={};$&2&&(T.class="form-field "+((M=k[1].options)!=null&&M.requireEmail?"required":"")),$&24583&&(T.$$scope={dirty:$,ctx:k}),o.$set(T),k[2]?g&&(ue(),P(g,1,1,()=>{g=null}),fe()):g?(g.p(k,$),$&4&&I(g,1)):(g=Np(k),g.c(),I(g,1),g.m(a,u)),k[2]||k[3]?_?(_.p(k,$),$&12&&I(_,1)):(_=Fp(k),_.c(),I(_,1),_.m(a,null)):_&&(ue(),P(_,1,1,()=>{_=null}),fe());const O={};$&24581&&(O.$$scope={dirty:$,ctx:k}),p.$set(O)},i(k){h||(I(i.$$.fragment,k),I(o.$$.fragment,k),I(g),I(_),I(p.$$.fragment,k),h=!0)},o(k){P(i.$$.fragment,k),P(o.$$.fragment,k),P(g),P(_),P(p.$$.fragment,k),h=!1},d(k){k&&w(e),H(i),H(o),g&&g.d(),_&&_.d(),H(p)}}}function V6(n,e,t){let{collection:i=new kn}=e,{record:s=new wi}=e,{isNew:l=s.$isNew}=e,o=s.username||null,r=!1;function a(){s.username=this.value,t(0,s),t(3,r)}const u=()=>t(0,s.emailVisibility=!s.emailVisibility,s);function f(){s.email=this.value,t(0,s),t(3,r)}function d(){r=this.checked,t(3,r)}function p(){s.password=this.value,t(0,s),t(3,r)}function h(){s.passwordConfirm=this.value,t(0,s),t(3,r)}function g(){s.verified=this.checked,t(0,s),t(3,r)}const _=b=>{l||mn("Do you really want to manually change the verified account state?",()=>{},()=>{t(0,s.verified=!b.target.checked,s)})};return n.$$set=b=>{"collection"in b&&t(1,i=b.collection),"record"in b&&t(0,s=b.record),"isNew"in b&&t(2,l=b.isNew)},n.$$.update=()=>{n.$$.dirty&1&&!s.username&&s.username!==null&&t(0,s.username=null,s),n.$$.dirty&8&&(r||(t(0,s.password=null,s),t(0,s.passwordConfirm=null,s),ui("password"),ui("passwordConfirm")))},[s,i,l,r,o,a,u,f,d,p,h,g,_]}class z6 extends ve{constructor(e){super(),be(this,e,V6,j6,_e,{collection:1,record:0,isNew:2})}}function H6(n){let e,t,i,s=[n[3]],l={};for(let o=0;o{r&&(t(1,r.style.height="",r),t(1,r.style.height=Math.min(r.scrollHeight,o)+"px",r))},0)}function f(h){if((h==null?void 0:h.code)==="Enter"&&!(h!=null&&h.shiftKey)&&!(h!=null&&h.isComposing)){h.preventDefault();const g=r.closest("form");g!=null&&g.requestSubmit&&g.requestSubmit()}}Xt(()=>(u(),()=>clearTimeout(a)));function d(h){ne[h?"unshift":"push"](()=>{r=h,t(1,r)})}function p(){l=this.value,t(0,l)}return n.$$set=h=>{e=je(je({},e),Gt(h)),t(3,s=tt(e,i)),"value"in h&&t(0,l=h.value),"maxHeight"in h&&t(4,o=h.maxHeight)},n.$$.update=()=>{n.$$.dirty&1&&typeof l!==void 0&&u()},[l,r,f,s,o,d,p]}class U6 extends ve{constructor(e){super(),be(this,e,B6,H6,_e,{value:0,maxHeight:4})}}function W6(n){let e,t,i,s,l,o=n[1].name+"",r,a,u,f,d,p;function h(_){n[2](_)}let g={id:n[3],required:n[1].required};return n[0]!==void 0&&(g.value=n[0]),f=new U6({props:g}),ne.push(()=>pe(f,"value",h)),{c(){e=y("label"),t=y("i"),s=D(),l=y("span"),r=Y(o),u=D(),B(f.$$.fragment),m(t,"class",i=W.getFieldTypeIcon(n[1].type)),m(l,"class","txt"),m(e,"for",a=n[3])},m(_,b){S(_,e,b),v(e,t),v(e,s),v(e,l),v(l,r),S(_,u,b),z(f,_,b),p=!0},p(_,b){(!p||b&2&&i!==(i=W.getFieldTypeIcon(_[1].type)))&&m(t,"class",i),(!p||b&2)&&o!==(o=_[1].name+"")&&le(r,o),(!p||b&8&&a!==(a=_[3]))&&m(e,"for",a);const k={};b&8&&(k.id=_[3]),b&2&&(k.required=_[1].required),!d&&b&1&&(d=!0,k.value=_[0],ge(()=>d=!1)),f.$set(k)},i(_){p||(I(f.$$.fragment,_),p=!0)},o(_){P(f.$$.fragment,_),p=!1},d(_){_&&w(e),_&&w(u),H(f,_)}}}function Y6(n){let e,t;return e=new me({props:{class:"form-field "+(n[1].required?"required":""),name:n[1].name,$$slots:{default:[W6,({uniqueId:i})=>({3:i}),({uniqueId:i})=>i?8:0]},$$scope:{ctx:n}}}),{c(){B(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p(i,[s]){const l={};s&2&&(l.class="form-field "+(i[1].required?"required":"")),s&2&&(l.name=i[1].name),s&27&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(I(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){H(e,i)}}}function K6(n,e,t){let{field:i=new wn}=e,{value:s=void 0}=e;function l(o){s=o,t(0,s)}return n.$$set=o=>{"field"in o&&t(1,i=o.field),"value"in o&&t(0,s=o.value)},[s,i,l]}class J6 extends ve{constructor(e){super(),be(this,e,K6,Y6,_e,{field:1,value:0})}}function Z6(n){let e,t,i,s,l,o=n[1].name+"",r,a,u,f,d,p,h,g,_,b;return{c(){var k,$;e=y("label"),t=y("i"),s=D(),l=y("span"),r=Y(o),u=D(),f=y("input"),m(t,"class",i=W.getFieldTypeIcon(n[1].type)),m(l,"class","txt"),m(e,"for",a=n[3]),m(f,"type","number"),m(f,"id",d=n[3]),f.required=p=n[1].required,m(f,"min",h=(k=n[1].options)==null?void 0:k.min),m(f,"max",g=($=n[1].options)==null?void 0:$.max),m(f,"step","any")},m(k,$){S(k,e,$),v(e,t),v(e,s),v(e,l),v(l,r),S(k,u,$),S(k,f,$),ae(f,n[0]),_||(b=J(f,"input",n[2]),_=!0)},p(k,$){var C,T;$&2&&i!==(i=W.getFieldTypeIcon(k[1].type))&&m(t,"class",i),$&2&&o!==(o=k[1].name+"")&&le(r,o),$&8&&a!==(a=k[3])&&m(e,"for",a),$&8&&d!==(d=k[3])&&m(f,"id",d),$&2&&p!==(p=k[1].required)&&(f.required=p),$&2&&h!==(h=(C=k[1].options)==null?void 0:C.min)&&m(f,"min",h),$&2&&g!==(g=(T=k[1].options)==null?void 0:T.max)&&m(f,"max",g),$&1&&mt(f.value)!==k[0]&&ae(f,k[0])},d(k){k&&w(e),k&&w(u),k&&w(f),_=!1,b()}}}function G6(n){let e,t;return e=new me({props:{class:"form-field "+(n[1].required?"required":""),name:n[1].name,$$slots:{default:[Z6,({uniqueId:i})=>({3:i}),({uniqueId:i})=>i?8:0]},$$scope:{ctx:n}}}),{c(){B(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p(i,[s]){const l={};s&2&&(l.class="form-field "+(i[1].required?"required":"")),s&2&&(l.name=i[1].name),s&27&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(I(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){H(e,i)}}}function X6(n,e,t){let{field:i=new wn}=e,{value:s=void 0}=e;function l(){s=mt(this.value),t(0,s)}return n.$$set=o=>{"field"in o&&t(1,i=o.field),"value"in o&&t(0,s=o.value)},[s,i,l]}class Q6 extends ve{constructor(e){super(),be(this,e,X6,G6,_e,{field:1,value:0})}}function x6(n){let e,t,i,s,l=n[1].name+"",o,r,a,u;return{c(){e=y("input"),i=D(),s=y("label"),o=Y(l),m(e,"type","checkbox"),m(e,"id",t=n[3]),m(s,"for",r=n[3])},m(f,d){S(f,e,d),e.checked=n[0],S(f,i,d),S(f,s,d),v(s,o),a||(u=J(e,"change",n[2]),a=!0)},p(f,d){d&8&&t!==(t=f[3])&&m(e,"id",t),d&1&&(e.checked=f[0]),d&2&&l!==(l=f[1].name+"")&&le(o,l),d&8&&r!==(r=f[3])&&m(s,"for",r)},d(f){f&&w(e),f&&w(i),f&&w(s),a=!1,u()}}}function eM(n){let e,t;return e=new me({props:{class:"form-field form-field-toggle "+(n[1].required?"required":""),name:n[1].name,$$slots:{default:[x6,({uniqueId:i})=>({3:i}),({uniqueId:i})=>i?8:0]},$$scope:{ctx:n}}}),{c(){B(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p(i,[s]){const l={};s&2&&(l.class="form-field form-field-toggle "+(i[1].required?"required":"")),s&2&&(l.name=i[1].name),s&27&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(I(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){H(e,i)}}}function tM(n,e,t){let{field:i=new wn}=e,{value:s=!1}=e;function l(){s=this.checked,t(0,s)}return n.$$set=o=>{"field"in o&&t(1,i=o.field),"value"in o&&t(0,s=o.value)},[s,i,l]}class nM extends ve{constructor(e){super(),be(this,e,tM,eM,_e,{field:1,value:0})}}function iM(n){let e,t,i,s,l,o=n[1].name+"",r,a,u,f,d,p,h,g;return{c(){e=y("label"),t=y("i"),s=D(),l=y("span"),r=Y(o),u=D(),f=y("input"),m(t,"class",i=W.getFieldTypeIcon(n[1].type)),m(l,"class","txt"),m(e,"for",a=n[3]),m(f,"type","email"),m(f,"id",d=n[3]),f.required=p=n[1].required},m(_,b){S(_,e,b),v(e,t),v(e,s),v(e,l),v(l,r),S(_,u,b),S(_,f,b),ae(f,n[0]),h||(g=J(f,"input",n[2]),h=!0)},p(_,b){b&2&&i!==(i=W.getFieldTypeIcon(_[1].type))&&m(t,"class",i),b&2&&o!==(o=_[1].name+"")&&le(r,o),b&8&&a!==(a=_[3])&&m(e,"for",a),b&8&&d!==(d=_[3])&&m(f,"id",d),b&2&&p!==(p=_[1].required)&&(f.required=p),b&1&&f.value!==_[0]&&ae(f,_[0])},d(_){_&&w(e),_&&w(u),_&&w(f),h=!1,g()}}}function sM(n){let e,t;return e=new me({props:{class:"form-field "+(n[1].required?"required":""),name:n[1].name,$$slots:{default:[iM,({uniqueId:i})=>({3:i}),({uniqueId:i})=>i?8:0]},$$scope:{ctx:n}}}),{c(){B(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p(i,[s]){const l={};s&2&&(l.class="form-field "+(i[1].required?"required":"")),s&2&&(l.name=i[1].name),s&27&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(I(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){H(e,i)}}}function lM(n,e,t){let{field:i=new wn}=e,{value:s=void 0}=e;function l(){s=this.value,t(0,s)}return n.$$set=o=>{"field"in o&&t(1,i=o.field),"value"in o&&t(0,s=o.value)},[s,i,l]}class oM extends ve{constructor(e){super(),be(this,e,lM,sM,_e,{field:1,value:0})}}function rM(n){let e,t,i,s,l,o=n[1].name+"",r,a,u,f,d,p,h,g;return{c(){e=y("label"),t=y("i"),s=D(),l=y("span"),r=Y(o),u=D(),f=y("input"),m(t,"class",i=W.getFieldTypeIcon(n[1].type)),m(l,"class","txt"),m(e,"for",a=n[3]),m(f,"type","url"),m(f,"id",d=n[3]),f.required=p=n[1].required},m(_,b){S(_,e,b),v(e,t),v(e,s),v(e,l),v(l,r),S(_,u,b),S(_,f,b),ae(f,n[0]),h||(g=J(f,"input",n[2]),h=!0)},p(_,b){b&2&&i!==(i=W.getFieldTypeIcon(_[1].type))&&m(t,"class",i),b&2&&o!==(o=_[1].name+"")&&le(r,o),b&8&&a!==(a=_[3])&&m(e,"for",a),b&8&&d!==(d=_[3])&&m(f,"id",d),b&2&&p!==(p=_[1].required)&&(f.required=p),b&1&&f.value!==_[0]&&ae(f,_[0])},d(_){_&&w(e),_&&w(u),_&&w(f),h=!1,g()}}}function aM(n){let e,t;return e=new me({props:{class:"form-field "+(n[1].required?"required":""),name:n[1].name,$$slots:{default:[rM,({uniqueId:i})=>({3:i}),({uniqueId:i})=>i?8:0]},$$scope:{ctx:n}}}),{c(){B(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p(i,[s]){const l={};s&2&&(l.class="form-field "+(i[1].required?"required":"")),s&2&&(l.name=i[1].name),s&27&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(I(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){H(e,i)}}}function uM(n,e,t){let{field:i=new wn}=e,{value:s=void 0}=e;function l(){s=this.value,t(0,s)}return n.$$set=o=>{"field"in o&&t(1,i=o.field),"value"in o&&t(0,s=o.value)},[s,i,l]}class fM extends ve{constructor(e){super(),be(this,e,uM,aM,_e,{field:1,value:0})}}function Rp(n){let e,t,i,s;return{c(){e=y("div"),t=y("button"),t.innerHTML='',m(t,"type","button"),m(t,"class","link-hint clear-btn svelte-11df51y"),m(e,"class","form-field-addon")},m(l,o){S(l,e,o),v(e,t),i||(s=[Ee(Be.call(null,t,"Clear")),J(t,"click",n[5])],i=!0)},p:te,d(l){l&&w(e),i=!1,De(s)}}}function cM(n){let e,t,i,s,l,o=n[1].name+"",r,a,u,f,d,p,h,g,_,b=n[0]&&!n[1].required&&Rp(n);function k(T){n[6](T)}function $(T){n[7](T)}let C={id:n[8],options:W.defaultFlatpickrOptions()};return n[2]!==void 0&&(C.value=n[2]),n[0]!==void 0&&(C.formattedValue=n[0]),p=new fu({props:C}),ne.push(()=>pe(p,"value",k)),ne.push(()=>pe(p,"formattedValue",$)),p.$on("close",n[3]),{c(){e=y("label"),t=y("i"),s=D(),l=y("span"),r=Y(o),a=Y(" (UTC)"),f=D(),b&&b.c(),d=D(),B(p.$$.fragment),m(t,"class",i=os(W.getFieldTypeIcon(n[1].type))+" svelte-11df51y"),m(l,"class","txt"),m(e,"for",u=n[8])},m(T,O){S(T,e,O),v(e,t),v(e,s),v(e,l),v(l,r),v(l,a),S(T,f,O),b&&b.m(T,O),S(T,d,O),z(p,T,O),_=!0},p(T,O){(!_||O&2&&i!==(i=os(W.getFieldTypeIcon(T[1].type))+" svelte-11df51y"))&&m(t,"class",i),(!_||O&2)&&o!==(o=T[1].name+"")&&le(r,o),(!_||O&256&&u!==(u=T[8]))&&m(e,"for",u),T[0]&&!T[1].required?b?b.p(T,O):(b=Rp(T),b.c(),b.m(d.parentNode,d)):b&&(b.d(1),b=null);const M={};O&256&&(M.id=T[8]),!h&&O&4&&(h=!0,M.value=T[2],ge(()=>h=!1)),!g&&O&1&&(g=!0,M.formattedValue=T[0],ge(()=>g=!1)),p.$set(M)},i(T){_||(I(p.$$.fragment,T),_=!0)},o(T){P(p.$$.fragment,T),_=!1},d(T){T&&w(e),T&&w(f),b&&b.d(T),T&&w(d),H(p,T)}}}function dM(n){let e,t;return e=new me({props:{class:"form-field "+(n[1].required?"required":""),name:n[1].name,$$slots:{default:[cM,({uniqueId:i})=>({8:i}),({uniqueId:i})=>i?256:0]},$$scope:{ctx:n}}}),{c(){B(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p(i,[s]){const l={};s&2&&(l.class="form-field "+(i[1].required?"required":"")),s&2&&(l.name=i[1].name),s&775&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(I(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){H(e,i)}}}function pM(n,e,t){let{field:i=new wn}=e,{value:s=void 0}=e,l=s;function o(d){d.detail&&d.detail.length==3&&t(0,s=d.detail[1])}function r(){t(0,s="")}const a=()=>r();function u(d){l=d,t(2,l),t(0,s)}function f(d){s=d,t(0,s)}return n.$$set=d=>{"field"in d&&t(1,i=d.field),"value"in d&&t(0,s=d.value)},n.$$.update=()=>{n.$$.dirty&1&&s&&s.length>19&&t(0,s=s.substring(0,19)),n.$$.dirty&5&&l!=s&&t(2,l=s)},[s,i,l,o,r,a,u,f]}class mM extends ve{constructor(e){super(),be(this,e,pM,dM,_e,{field:1,value:0})}}function qp(n){let e,t,i=n[1].options.maxSelect+"",s,l;return{c(){e=y("div"),t=Y("Select up to "),s=Y(i),l=Y(" items."),m(e,"class","help-block")},m(o,r){S(o,e,r),v(e,t),v(e,s),v(e,l)},p(o,r){r&2&&i!==(i=o[1].options.maxSelect+"")&&le(s,i)},d(o){o&&w(e)}}}function hM(n){var $,C,T,O,M,E;let e,t,i,s,l,o=n[1].name+"",r,a,u,f,d,p,h,g;function _(A){n[3](A)}let b={id:n[4],toggle:!n[1].required||n[2],multiple:n[2],closable:!n[2]||(($=n[0])==null?void 0:$.length)>=((C=n[1].options)==null?void 0:C.maxSelect),items:(T=n[1].options)==null?void 0:T.values,searchable:((M=(O=n[1].options)==null?void 0:O.values)==null?void 0:M.length)>5};n[0]!==void 0&&(b.selected=n[0]),f=new cu({props:b}),ne.push(()=>pe(f,"selected",_));let k=((E=n[1].options)==null?void 0:E.maxSelect)>1&&qp(n);return{c(){e=y("label"),t=y("i"),s=D(),l=y("span"),r=Y(o),u=D(),B(f.$$.fragment),p=D(),k&&k.c(),h=we(),m(t,"class",i=W.getFieldTypeIcon(n[1].type)),m(l,"class","txt"),m(e,"for",a=n[4])},m(A,L){S(A,e,L),v(e,t),v(e,s),v(e,l),v(l,r),S(A,u,L),z(f,A,L),S(A,p,L),k&&k.m(A,L),S(A,h,L),g=!0},p(A,L){var q,F,R,V,j,U;(!g||L&2&&i!==(i=W.getFieldTypeIcon(A[1].type)))&&m(t,"class",i),(!g||L&2)&&o!==(o=A[1].name+"")&&le(r,o),(!g||L&16&&a!==(a=A[4]))&&m(e,"for",a);const N={};L&16&&(N.id=A[4]),L&6&&(N.toggle=!A[1].required||A[2]),L&4&&(N.multiple=A[2]),L&7&&(N.closable=!A[2]||((q=A[0])==null?void 0:q.length)>=((F=A[1].options)==null?void 0:F.maxSelect)),L&2&&(N.items=(R=A[1].options)==null?void 0:R.values),L&2&&(N.searchable=((j=(V=A[1].options)==null?void 0:V.values)==null?void 0:j.length)>5),!d&&L&1&&(d=!0,N.selected=A[0],ge(()=>d=!1)),f.$set(N),((U=A[1].options)==null?void 0:U.maxSelect)>1?k?k.p(A,L):(k=qp(A),k.c(),k.m(h.parentNode,h)):k&&(k.d(1),k=null)},i(A){g||(I(f.$$.fragment,A),g=!0)},o(A){P(f.$$.fragment,A),g=!1},d(A){A&&w(e),A&&w(u),H(f,A),A&&w(p),k&&k.d(A),A&&w(h)}}}function _M(n){let e,t;return e=new me({props:{class:"form-field "+(n[1].required?"required":""),name:n[1].name,$$slots:{default:[hM,({uniqueId:i})=>({4:i}),({uniqueId:i})=>i?16:0]},$$scope:{ctx:n}}}),{c(){B(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p(i,[s]){const l={};s&2&&(l.class="form-field "+(i[1].required?"required":"")),s&2&&(l.name=i[1].name),s&55&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(I(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){H(e,i)}}}function gM(n,e,t){let i,{field:s=new wn}=e,{value:l=void 0}=e;function o(r){l=r,t(0,l),t(2,i),t(1,s)}return n.$$set=r=>{"field"in r&&t(1,s=r.field),"value"in r&&t(0,l=r.value)},n.$$.update=()=>{var r;n.$$.dirty&2&&t(2,i=((r=s.options)==null?void 0:r.maxSelect)>1),n.$$.dirty&5&&typeof l>"u"&&t(0,l=i?[]:""),n.$$.dirty&7&&i&&Array.isArray(l)&&l.length>s.options.maxSelect&&t(0,l=l.slice(l.length-s.options.maxSelect))},[l,s,i,o]}class bM extends ve{constructor(e){super(),be(this,e,gM,_M,_e,{field:1,value:0})}}function vM(n){let e,t,i,s,l,o=n[1].name+"",r,a,u,f,d,p,h,g;return{c(){e=y("label"),t=y("i"),s=D(),l=y("span"),r=Y(o),u=D(),f=y("textarea"),m(t,"class",i=W.getFieldTypeIcon(n[1].type)),m(l,"class","txt"),m(e,"for",a=n[4]),m(f,"id",d=n[4]),m(f,"class","txt-mono"),f.required=p=n[1].required,f.value=n[2]},m(_,b){S(_,e,b),v(e,t),v(e,s),v(e,l),v(l,r),S(_,u,b),S(_,f,b),h||(g=J(f,"input",n[3]),h=!0)},p(_,b){b&2&&i!==(i=W.getFieldTypeIcon(_[1].type))&&m(t,"class",i),b&2&&o!==(o=_[1].name+"")&&le(r,o),b&16&&a!==(a=_[4])&&m(e,"for",a),b&16&&d!==(d=_[4])&&m(f,"id",d),b&2&&p!==(p=_[1].required)&&(f.required=p),b&4&&(f.value=_[2])},d(_){_&&w(e),_&&w(u),_&&w(f),h=!1,g()}}}function yM(n){let e,t;return e=new me({props:{class:"form-field "+(n[1].required?"required":""),name:n[1].name,$$slots:{default:[vM,({uniqueId:i})=>({4:i}),({uniqueId:i})=>i?16:0]},$$scope:{ctx:n}}}),{c(){B(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p(i,[s]){const l={};s&2&&(l.class="form-field "+(i[1].required?"required":"")),s&2&&(l.name=i[1].name),s&55&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(I(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){H(e,i)}}}function kM(n,e,t){let{field:i=new wn}=e,{value:s=void 0}=e,l=JSON.stringify(typeof s>"u"?null:s,null,2);const o=r=>{t(2,l=r.target.value),t(0,s=r.target.value.trim())};return n.$$set=r=>{"field"in r&&t(1,i=r.field),"value"in r&&t(0,s=r.value)},n.$$.update=()=>{n.$$.dirty&5&&s!==(l==null?void 0:l.trim())&&(t(2,l=JSON.stringify(typeof s>"u"?null:s,null,2)),t(0,s=l))},[s,i,l,o]}class wM extends ve{constructor(e){super(),be(this,e,kM,yM,_e,{field:1,value:0})}}const SM=n=>({dragging:n&4,dragover:n&8}),jp=n=>({dragging:n[2],dragover:n[3]});function $M(n){let e,t,i,s,l;const o=n[9].default,r=kt(o,n,n[8],jp);return{c(){e=y("div"),r&&r.c(),m(e,"draggable",t=!n[1]),m(e,"class","draggable svelte-28orm4"),Q(e,"dragging",n[2]),Q(e,"dragover",n[3])},m(a,u){S(a,e,u),r&&r.m(e,null),i=!0,s||(l=[J(e,"dragover",xe(n[10])),J(e,"dragleave",xe(n[11])),J(e,"dragend",n[12]),J(e,"dragstart",n[13]),J(e,"drop",n[14])],s=!0)},p(a,[u]){r&&r.p&&(!i||u&268)&&St(r,o,a,a[8],i?wt(o,a[8],u,SM):$t(a[8]),jp),(!i||u&2&&t!==(t=!a[1]))&&m(e,"draggable",t),(!i||u&4)&&Q(e,"dragging",a[2]),(!i||u&8)&&Q(e,"dragover",a[3])},i(a){i||(I(r,a),i=!0)},o(a){P(r,a),i=!1},d(a){a&&w(e),r&&r.d(a),s=!1,De(l)}}}function TM(n,e,t){let{$$slots:i={},$$scope:s}=e;const l=Tt();let{index:o}=e,{list:r=[]}=e,{group:a="default"}=e,{disabled:u=!1}=e,f=!1,d=!1;function p(C,T){!C||u||(t(2,f=!0),C.dataTransfer.effectAllowed="move",C.dataTransfer.dropEffect="move",C.dataTransfer.setData("text/plain",JSON.stringify({index:T,group:a})))}function h(C,T){if(!C||u)return;t(3,d=!1),t(2,f=!1),C.dataTransfer.dropEffect="move";let O={};try{O=JSON.parse(C.dataTransfer.getData("text/plain"))}catch{}if(O.group!=a)return;const M=O.index<<0;M{t(3,d=!0)},_=()=>{t(3,d=!1)},b=()=>{t(3,d=!1),t(2,f=!1)},k=C=>p(C,o),$=C=>h(C,o);return n.$$set=C=>{"index"in C&&t(0,o=C.index),"list"in C&&t(6,r=C.list),"group"in C&&t(7,a=C.group),"disabled"in C&&t(1,u=C.disabled),"$$scope"in C&&t(8,s=C.$$scope)},[o,u,f,d,p,h,r,a,s,i,g,_,b,k,$]}class nr extends ve{constructor(e){super(),be(this,e,TM,$M,_e,{index:0,list:6,group:7,disabled:1})}}function CM(n){let e,t;return{c(){e=y("i"),m(e,"class","ri-file-line"),m(e,"alt",t=n[0].name)},m(i,s){S(i,e,s)},p(i,s){s&1&&t!==(t=i[0].name)&&m(e,"alt",t)},d(i){i&&w(e)}}}function MM(n){let e,t,i;return{c(){e=y("img"),m(e,"draggable",!1),_n(e.src,t=n[2])||m(e,"src",t),m(e,"width",n[1]),m(e,"height",n[1]),m(e,"alt",i=n[0].name)},m(s,l){S(s,e,l)},p(s,l){l&4&&!_n(e.src,t=s[2])&&m(e,"src",t),l&2&&m(e,"width",s[1]),l&2&&m(e,"height",s[1]),l&1&&i!==(i=s[0].name)&&m(e,"alt",i)},d(s){s&&w(e)}}}function OM(n){let e;function t(l,o){return l[2]?MM:CM}let i=t(n),s=i(n);return{c(){s.c(),e=we()},m(l,o){s.m(l,o),S(l,e,o)},p(l,[o]){i===(i=t(l))&&s?s.p(l,o):(s.d(1),s=i(l),s&&(s.c(),s.m(e.parentNode,e)))},i:te,o:te,d(l){s.d(l),l&&w(e)}}}function EM(n,e,t){let i,{file:s}=e,{size:l=50}=e;function o(){W.hasImageExtension(s==null?void 0:s.name)?W.generateThumb(s,l,l).then(r=>{t(2,i=r)}).catch(r=>{t(2,i=""),console.warn("Unable to generate thumb: ",r)}):t(2,i="")}return n.$$set=r=>{"file"in r&&t(0,s=r.file),"size"in r&&t(1,l=r.size)},n.$$.update=()=>{n.$$.dirty&1&&typeof s<"u"&&o()},t(2,i=""),[s,l,i]}class DM extends ve{constructor(e){super(),be(this,e,EM,OM,_e,{file:0,size:1})}}function Vp(n){let e;function t(l,o){return l[4]==="image"?IM:AM}let i=t(n),s=i(n);return{c(){s.c(),e=we()},m(l,o){s.m(l,o),S(l,e,o)},p(l,o){i===(i=t(l))&&s?s.p(l,o):(s.d(1),s=i(l),s&&(s.c(),s.m(e.parentNode,e)))},d(l){s.d(l),l&&w(e)}}}function AM(n){let e,t;return{c(){e=y("object"),t=Y("Cannot preview the file."),m(e,"title",n[2]),m(e,"data",n[1])},m(i,s){S(i,e,s),v(e,t)},p(i,s){s&4&&m(e,"title",i[2]),s&2&&m(e,"data",i[1])},d(i){i&&w(e)}}}function IM(n){let e,t,i;return{c(){e=y("img"),_n(e.src,t=n[1])||m(e,"src",t),m(e,"alt",i="Preview "+n[2])},m(s,l){S(s,e,l)},p(s,l){l&2&&!_n(e.src,t=s[1])&&m(e,"src",t),l&4&&i!==(i="Preview "+s[2])&&m(e,"alt",i)},d(s){s&&w(e)}}}function LM(n){var s;let e=(s=n[3])==null?void 0:s.isActive(),t,i=e&&Vp(n);return{c(){i&&i.c(),t=we()},m(l,o){i&&i.m(l,o),S(l,t,o)},p(l,o){var r;o&8&&(e=(r=l[3])==null?void 0:r.isActive()),e?i?i.p(l,o):(i=Vp(l),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null)},d(l){i&&i.d(l),l&&w(t)}}}function PM(n){let e,t,i;return{c(){e=y("button"),e.innerHTML='',m(e,"type","button"),m(e,"class","overlay-close")},m(s,l){S(s,e,l),t||(i=J(e,"click",xe(n[0])),t=!0)},p:te,d(s){s&&w(e),t=!1,i()}}}function NM(n){let e,t,i,s,l,o,r,a,u,f;return{c(){e=y("a"),t=Y(n[2]),i=D(),s=y("i"),l=D(),o=y("div"),r=D(),a=y("button"),a.textContent="Close",m(s,"class","ri-external-link-line"),m(e,"href",n[1]),m(e,"title",n[2]),m(e,"target","_blank"),m(e,"rel","noreferrer noopener"),m(e,"class","link-hint txt-ellipsis inline-flex"),m(o,"class","flex-fill"),m(a,"type","button"),m(a,"class","btn btn-transparent")},m(d,p){S(d,e,p),v(e,t),v(e,i),v(e,s),S(d,l,p),S(d,o,p),S(d,r,p),S(d,a,p),u||(f=J(a,"click",n[0]),u=!0)},p(d,p){p&4&&le(t,d[2]),p&2&&m(e,"href",d[1]),p&4&&m(e,"title",d[2])},d(d){d&&w(e),d&&w(l),d&&w(o),d&&w(r),d&&w(a),u=!1,f()}}}function FM(n){let e,t,i={class:"preview preview-"+n[4],btnClose:!1,popup:!0,$$slots:{footer:[NM],header:[PM],default:[LM]},$$scope:{ctx:n}};return e=new on({props:i}),n[7](e),e.$on("show",n[8]),e.$on("hide",n[9]),{c(){B(e.$$.fragment)},m(s,l){z(e,s,l),t=!0},p(s,[l]){const o={};l&16&&(o.class="preview preview-"+s[4]),l&1054&&(o.$$scope={dirty:l,ctx:s}),e.$set(o)},i(s){t||(I(e.$$.fragment,s),t=!0)},o(s){P(e.$$.fragment,s),t=!1},d(s){n[7](null),H(e,s)}}}function RM(n,e,t){let i,s,l,o,r="";function a(h){h!==""&&(t(1,r=h),o==null||o.show())}function u(){return o==null?void 0:o.hide()}function f(h){ne[h?"unshift":"push"](()=>{o=h,t(3,o)})}function d(h){he.call(this,n,h)}function p(h){he.call(this,n,h)}return n.$$.update=()=>{n.$$.dirty&2&&t(6,i=r.indexOf("?")),n.$$.dirty&66&&t(2,s=r.substring(r.lastIndexOf("/")+1,i>0?i:void 0)),n.$$.dirty&4&&t(4,l=W.getFileType(s))},[u,r,s,o,l,a,i,f,d,p]}class qM extends ve{constructor(e){super(),be(this,e,RM,FM,_e,{show:5,hide:0})}get show(){return this.$$.ctx[5]}get hide(){return this.$$.ctx[0]}}function jM(n){let e,t,i,s,l;function o(u,f){return u[3]==="image"?BM:u[3]==="video"||u[3]==="audio"?HM:zM}let r=o(n),a=r(n);return{c(){e=y("a"),a.c(),m(e,"draggable",!1),m(e,"class",t="thumb "+(n[1]?`thumb-${n[1]}`:"")),m(e,"href",n[6]),m(e,"target","_blank"),m(e,"rel","noreferrer"),m(e,"title",i=(n[7]?"Preview":"Download")+" "+n[0])},m(u,f){S(u,e,f),a.m(e,null),s||(l=J(e,"click",In(n[11])),s=!0)},p(u,f){r===(r=o(u))&&a?a.p(u,f):(a.d(1),a=r(u),a&&(a.c(),a.m(e,null))),f&2&&t!==(t="thumb "+(u[1]?`thumb-${u[1]}`:""))&&m(e,"class",t),f&64&&m(e,"href",u[6]),f&129&&i!==(i=(u[7]?"Preview":"Download")+" "+u[0])&&m(e,"title",i)},d(u){u&&w(e),a.d(),s=!1,l()}}}function VM(n){let e,t;return{c(){e=y("div"),m(e,"class",t="thumb "+(n[1]?`thumb-${n[1]}`:""))},m(i,s){S(i,e,s)},p(i,s){s&2&&t!==(t="thumb "+(i[1]?`thumb-${i[1]}`:""))&&m(e,"class",t)},d(i){i&&w(e)}}}function zM(n){let e;return{c(){e=y("i"),m(e,"class","ri-file-3-line")},m(t,i){S(t,e,i)},p:te,d(t){t&&w(e)}}}function HM(n){let e;return{c(){e=y("i"),m(e,"class","ri-video-line")},m(t,i){S(t,e,i)},p:te,d(t){t&&w(e)}}}function BM(n){let e,t,i,s,l;return{c(){e=y("img"),m(e,"draggable",!1),_n(e.src,t=n[5])||m(e,"src",t),m(e,"alt",n[0]),m(e,"title",i="Preview "+n[0])},m(o,r){S(o,e,r),s||(l=J(e,"error",n[8]),s=!0)},p(o,r){r&32&&!_n(e.src,t=o[5])&&m(e,"src",t),r&1&&m(e,"alt",o[0]),r&1&&i!==(i="Preview "+o[0])&&m(e,"title",i)},d(o){o&&w(e),s=!1,l()}}}function UM(n){let e,t,i;function s(a,u){return a[2]?VM:jM}let l=s(n),o=l(n),r={};return t=new qM({props:r}),n[12](t),{c(){o.c(),e=D(),B(t.$$.fragment)},m(a,u){o.m(a,u),S(a,e,u),z(t,a,u),i=!0},p(a,[u]){l===(l=s(a))&&o?o.p(a,u):(o.d(1),o=l(a),o&&(o.c(),o.m(e.parentNode,e)));const f={};t.$set(f)},i(a){i||(I(t.$$.fragment,a),i=!0)},o(a){P(t.$$.fragment,a),i=!1},d(a){o.d(a),a&&w(e),n[12](null),H(t,a)}}}function WM(n,e,t){let i,s,{record:l=null}=e,{filename:o=""}=e,{size:r=""}=e,a,u="",f="",d="",p=!1;h();async function h(){t(2,p=!0);try{t(10,d=await de.getAdminFileToken(l.collectionId))}catch(k){console.warn("File token failure:",k)}t(2,p=!1)}function g(){t(5,u="")}const _=k=>{s&&(k.preventDefault(),a==null||a.show(f))};function b(k){ne[k?"unshift":"push"](()=>{a=k,t(4,a)})}return n.$$set=k=>{"record"in k&&t(9,l=k.record),"filename"in k&&t(0,o=k.filename),"size"in k&&t(1,r=k.size)},n.$$.update=()=>{n.$$.dirty&1&&t(3,i=W.getFileType(o)),n.$$.dirty&9&&t(7,s=["image","audio","video"].includes(i)||o.endsWith(".pdf")),n.$$.dirty&1541&&t(6,f=p?"":de.files.getUrl(l,o,{token:d})),n.$$.dirty&1541&&t(5,u=p?"":de.files.getUrl(l,o,{thumb:"100x100",token:d}))},[o,r,p,i,a,u,f,s,g,l,d,_,b]}class pu extends ve{constructor(e){super(),be(this,e,WM,UM,_e,{record:9,filename:0,size:1})}}function zp(n,e,t){const i=n.slice();return i[29]=e[t],i[31]=t,i}function Hp(n,e,t){const i=n.slice();i[34]=e[t],i[31]=t;const s=i[2].includes(i[34]);return i[35]=s,i}function YM(n){let e,t,i;function s(){return n[17](n[34])}return{c(){e=y("button"),e.innerHTML='',m(e,"type","button"),m(e,"class","btn btn-transparent btn-hint btn-sm btn-circle btn-remove")},m(l,o){S(l,e,o),t||(i=[Ee(Be.call(null,e,"Remove file")),J(e,"click",s)],t=!0)},p(l,o){n=l},d(l){l&&w(e),t=!1,De(i)}}}function KM(n){let e,t,i;function s(){return n[16](n[34])}return{c(){e=y("button"),e.innerHTML='Restore',m(e,"type","button"),m(e,"class","btn btn-sm btn-danger btn-transparent")},m(l,o){S(l,e,o),t||(i=J(e,"click",s),t=!0)},p(l,o){n=l},d(l){l&&w(e),t=!1,i()}}}function JM(n){let e,t,i,s,l,o,r=n[34]+"",a,u,f,d,p,h;i=new pu({props:{record:n[3],filename:n[34]}});function g(k,$){return k[35]?KM:YM}let _=g(n),b=_(n);return{c(){e=y("div"),t=y("div"),B(i.$$.fragment),s=D(),l=y("div"),o=y("a"),a=Y(r),d=D(),p=y("div"),b.c(),Q(t,"fade",n[35]),m(o,"draggable",!1),m(o,"href",u=de.files.getUrl(n[3],n[34],{token:n[10]})),m(o,"class",f="txt-ellipsis "+(n[35]?"txt-strikethrough txt-hint":"link-primary")),m(o,"title","Download"),m(o,"target","_blank"),m(o,"rel","noopener noreferrer"),m(l,"class","content"),m(p,"class","actions"),m(e,"class","list-item"),Q(e,"dragging",n[32]),Q(e,"dragover",n[33])},m(k,$){S(k,e,$),v(e,t),z(i,t,null),v(e,s),v(e,l),v(l,o),v(o,a),v(e,d),v(e,p),b.m(p,null),h=!0},p(k,$){const C={};$[0]&8&&(C.record=k[3]),$[0]&32&&(C.filename=k[34]),i.$set(C),(!h||$[0]&36)&&Q(t,"fade",k[35]),(!h||$[0]&32)&&r!==(r=k[34]+"")&&le(a,r),(!h||$[0]&1064&&u!==(u=de.files.getUrl(k[3],k[34],{token:k[10]})))&&m(o,"href",u),(!h||$[0]&36&&f!==(f="txt-ellipsis "+(k[35]?"txt-strikethrough txt-hint":"link-primary")))&&m(o,"class",f),_===(_=g(k))&&b?b.p(k,$):(b.d(1),b=_(k),b&&(b.c(),b.m(p,null))),(!h||$[1]&2)&&Q(e,"dragging",k[32]),(!h||$[1]&4)&&Q(e,"dragover",k[33])},i(k){h||(I(i.$$.fragment,k),h=!0)},o(k){P(i.$$.fragment,k),h=!1},d(k){k&&w(e),H(i),b.d()}}}function Bp(n,e){let t,i,s,l;function o(a){e[18](a)}let r={group:e[4].name+"_uploaded",index:e[31],disabled:!e[6],$$slots:{default:[JM,({dragging:a,dragover:u})=>({32:a,33:u}),({dragging:a,dragover:u})=>[0,(a?2:0)|(u?4:0)]]},$$scope:{ctx:e}};return e[0]!==void 0&&(r.list=e[0]),i=new nr({props:r}),ne.push(()=>pe(i,"list",o)),{key:n,first:null,c(){t=we(),B(i.$$.fragment),this.first=t},m(a,u){S(a,t,u),z(i,a,u),l=!0},p(a,u){e=a;const f={};u[0]&16&&(f.group=e[4].name+"_uploaded"),u[0]&32&&(f.index=e[31]),u[0]&64&&(f.disabled=!e[6]),u[0]&1068|u[1]&70&&(f.$$scope={dirty:u,ctx:e}),!s&&u[0]&1&&(s=!0,f.list=e[0],ge(()=>s=!1)),i.$set(f)},i(a){l||(I(i.$$.fragment,a),l=!0)},o(a){P(i.$$.fragment,a),l=!1},d(a){a&&w(t),H(i,a)}}}function ZM(n){let e,t,i,s,l,o,r,a,u=n[29].name+"",f,d,p,h,g,_,b;i=new DM({props:{file:n[29]}});function k(){return n[19](n[31])}return{c(){e=y("div"),t=y("figure"),B(i.$$.fragment),s=D(),l=y("div"),o=y("small"),o.textContent="New",r=D(),a=y("span"),f=Y(u),p=D(),h=y("button"),h.innerHTML='',m(t,"class","thumb"),m(o,"class","label label-success m-r-5"),m(a,"class","txt"),m(l,"class","filename m-r-auto"),m(l,"title",d=n[29].name),m(h,"type","button"),m(h,"class","btn btn-transparent btn-hint btn-sm btn-circle btn-remove"),m(e,"class","list-item"),Q(e,"dragging",n[32]),Q(e,"dragover",n[33])},m($,C){S($,e,C),v(e,t),z(i,t,null),v(e,s),v(e,l),v(l,o),v(l,r),v(l,a),v(a,f),v(e,p),v(e,h),g=!0,_||(b=[Ee(Be.call(null,h,"Remove file")),J(h,"click",k)],_=!0)},p($,C){n=$;const T={};C[0]&2&&(T.file=n[29]),i.$set(T),(!g||C[0]&2)&&u!==(u=n[29].name+"")&&le(f,u),(!g||C[0]&2&&d!==(d=n[29].name))&&m(l,"title",d),(!g||C[1]&2)&&Q(e,"dragging",n[32]),(!g||C[1]&4)&&Q(e,"dragover",n[33])},i($){g||(I(i.$$.fragment,$),g=!0)},o($){P(i.$$.fragment,$),g=!1},d($){$&&w(e),H(i),_=!1,De(b)}}}function Up(n){let e,t,i;function s(o){n[20](o)}let l={group:n[4].name+"_new",index:n[31],disabled:!n[6],$$slots:{default:[ZM,({dragging:o,dragover:r})=>({32:o,33:r}),({dragging:o,dragover:r})=>[0,(o?2:0)|(r?4:0)]]},$$scope:{ctx:n}};return n[1]!==void 0&&(l.list=n[1]),e=new nr({props:l}),ne.push(()=>pe(e,"list",s)),{c(){B(e.$$.fragment)},m(o,r){z(e,o,r),i=!0},p(o,r){const a={};r[0]&16&&(a.group=o[4].name+"_new"),r[0]&64&&(a.disabled=!o[6]),r[0]&2|r[1]&70&&(a.$$scope={dirty:r,ctx:o}),!t&&r[0]&2&&(t=!0,a.list=o[1],ge(()=>t=!1)),e.$set(a)},i(o){i||(I(e.$$.fragment,o),i=!0)},o(o){P(e.$$.fragment,o),i=!1},d(o){H(e,o)}}}function GM(n){let e,t,i,s,l,o=n[4].name+"",r,a,u,f,d=[],p=new Map,h,g,_,b,k,$,C,T,O,M,E,A,L,N=n[5];const q=j=>j[34]+j[3].id;for(let j=0;jP(R[j],1,1,()=>{R[j]=null});return{c(){var j,U;e=y("label"),t=y("i"),s=D(),l=y("span"),r=Y(o),u=D(),f=y("div");for(let x=0;xNew collection`,m(t,"type","button"),m(t,"class","btn btn-block btn-outline"),m(e,"class","sidebar-footer")},m(l,o){S(l,e,o),v(e,t),i||(s=J(t,"click",n[12]),i=!0)},p:te,d(l){l&&w(e),i=!1,s()}}}function k6(n){let e,t,i,s,l,o,r,a,u,f,d,p=[],h=new Map,g,_,b,k,$,C,T=n[3];const O=L=>L[15].id;for(let L=0;L',o=D(),r=y("input"),a=D(),u=y("hr"),f=D(),d=y("div");for(let L=0;L20),m(e,"class","page-sidebar collection-sidebar")},m(L,N){S(L,e,N),v(e,t),v(t,i),v(i,s),v(s,l),v(i,o),v(i,r),ae(r,n[0]),v(e,a),v(e,u),v(e,f),v(e,d);for(let q=0;q20),L[7]?E&&(E.d(1),E=null):E?E.p(L,N):(E=Mp(L),E.c(),E.m(e,null));const q={};b.$set(q)},i(L){k||(I(b.$$.fragment,L),k=!0)},o(L){P(b.$$.fragment,L),k=!1},d(L){L&&w(e);for(let N=0;N{const n=document.querySelector(".collection-sidebar .sidebar-list-item.active");n&&(n==null||n.scrollIntoView({block:"nearest"}))},0)}function S6(n,e,t){let i,s,l,o,r,a,u;Ze(n,fi,$=>t(5,o=$)),Ze(n,di,$=>t(9,r=$)),Ze(n,ko,$=>t(6,a=$)),Ze(n,Is,$=>t(7,u=$));let f,d="";function p($){ln(fi,o=$,o)}const h=()=>t(0,d="");function g(){d=this.value,t(0,d)}const _=()=>f==null?void 0:f.show();function b($){ne[$?"unshift":"push"](()=>{f=$,t(2,f)})}const k=$=>{var C;(C=$.detail)!=null&&C.isNew&&$.detail.collection&&p($.detail.collection)};return n.$$.update=()=>{n.$$.dirty&512&&r&&w6(),n.$$.dirty&1&&t(1,i=d.replace(/\s+/g,"").toLowerCase()),n.$$.dirty&1&&t(4,s=d!==""),n.$$.dirty&515&&t(3,l=r.filter($=>$.id==d||$.name.replace(/\s+/g,"").toLowerCase().includes(i)))},[d,i,f,l,s,o,a,u,p,r,h,g,_,b,k]}class $6 extends ve{constructor(e){super(),be(this,e,S6,k6,_e,{})}}function Op(n,e,t){const i=n.slice();return i[14]=e[t][0],i[15]=e[t][1],i}function Ep(n){n[18]=n[19].default}function Dp(n,e,t){const i=n.slice();return i[14]=e[t][0],i[15]=e[t][1],i[21]=t,i}function Ap(n){let e;return{c(){e=y("hr"),m(e,"class","m-t-sm m-b-sm")},m(t,i){S(t,e,i)},d(t){t&&w(e)}}}function Ip(n,e){let t,i=e[21]===Object.keys(e[6]).length,s,l,o=e[15].label+"",r,a,u,f,d=i&&Ap();function p(){return e[9](e[14])}return{key:n,first:null,c(){t=we(),d&&d.c(),s=D(),l=y("button"),r=Y(o),a=D(),m(l,"type","button"),m(l,"class","sidebar-item"),Q(l,"active",e[5]===e[14]),this.first=t},m(h,g){S(h,t,g),d&&d.m(h,g),S(h,s,g),S(h,l,g),v(l,r),v(l,a),u||(f=J(l,"click",p),u=!0)},p(h,g){e=h,g&8&&(i=e[21]===Object.keys(e[6]).length),i?d||(d=Ap(),d.c(),d.m(s.parentNode,s)):d&&(d.d(1),d=null),g&8&&o!==(o=e[15].label+"")&&le(r,o),g&40&&Q(l,"active",e[5]===e[14])},d(h){h&&w(t),d&&d.d(h),h&&w(s),h&&w(l),u=!1,f()}}}function Lp(n){let e,t,i,s={ctx:n,current:null,token:null,hasCatch:!1,pending:M6,then:C6,catch:T6,value:19,blocks:[,,,]};return bu(t=n[15].component,s),{c(){e=we(),s.block.c()},m(l,o){S(l,e,o),s.block.m(l,s.anchor=o),s.mount=()=>e.parentNode,s.anchor=e,i=!0},p(l,o){n=l,s.ctx=n,o&8&&t!==(t=n[15].component)&&bu(t,s)||n0(s,n,o)},i(l){i||(I(s.block),i=!0)},o(l){for(let o=0;o<3;o+=1){const r=s.blocks[o];P(r)}i=!1},d(l){l&&w(e),s.block.d(l),s.token=null,s=null}}}function T6(n){return{c:te,m:te,p:te,i:te,o:te,d:te}}function C6(n){Ep(n);let e,t,i;return e=new n[18]({props:{collection:n[2]}}),{c(){B(e.$$.fragment),t=D()},m(s,l){z(e,s,l),S(s,t,l),i=!0},p(s,l){Ep(s);const o={};l&4&&(o.collection=s[2]),e.$set(o)},i(s){i||(I(e.$$.fragment,s),i=!0)},o(s){P(e.$$.fragment,s),i=!1},d(s){H(e,s),s&&w(t)}}}function M6(n){return{c:te,m:te,p:te,i:te,o:te,d:te}}function Pp(n,e){let t,i,s,l=e[5]===e[14]&&Lp(e);return{key:n,first:null,c(){t=we(),l&&l.c(),i=we(),this.first=t},m(o,r){S(o,t,r),l&&l.m(o,r),S(o,i,r),s=!0},p(o,r){e=o,e[5]===e[14]?l?(l.p(e,r),r&40&&I(l,1)):(l=Lp(e),l.c(),I(l,1),l.m(i.parentNode,i)):l&&(ue(),P(l,1,1,()=>{l=null}),fe())},i(o){s||(I(l),s=!0)},o(o){P(l),s=!1},d(o){o&&w(t),l&&l.d(o),o&&w(i)}}}function O6(n){let e,t,i,s=[],l=new Map,o,r,a=[],u=new Map,f,d=Object.entries(n[3]);const p=_=>_[14];for(let _=0;__[14];for(let _=0;_Close',m(e,"type","button"),m(e,"class","btn btn-transparent")},m(s,l){S(s,e,l),t||(i=J(e,"click",n[8]),t=!0)},p:te,d(s){s&&w(e),t=!1,i()}}}function D6(n){let e,t,i={class:"docs-panel",$$slots:{footer:[E6],default:[O6]},$$scope:{ctx:n}};return e=new on({props:i}),n[10](e),e.$on("hide",n[11]),e.$on("show",n[12]),{c(){B(e.$$.fragment)},m(s,l){z(e,s,l),t=!0},p(s,[l]){const o={};l&4194348&&(o.$$scope={dirty:l,ctx:s}),e.$set(o)},i(s){t||(I(e.$$.fragment,s),t=!0)},o(s){P(e.$$.fragment,s),t=!1},d(s){n[10](null),H(e,s)}}}function A6(n,e,t){const i={list:{label:"List/Search",component:ut(()=>import("./ListApiDocs-69c941e3.js"),["./ListApiDocs-69c941e3.js","./SdkTabs-1c685373.js","./SdkTabs-9b0b7a06.css","./ListApiDocs-68f52edd.css"],import.meta.url)},view:{label:"View",component:ut(()=>import("./ViewApiDocs-303351a6.js"),["./ViewApiDocs-303351a6.js","./SdkTabs-1c685373.js","./SdkTabs-9b0b7a06.css","./FieldsQueryParam-815b0ee8.js"],import.meta.url)},create:{label:"Create",component:ut(()=>import("./CreateApiDocs-e288535b.js"),["./CreateApiDocs-e288535b.js","./SdkTabs-1c685373.js","./SdkTabs-9b0b7a06.css","./FieldsQueryParam-815b0ee8.js"],import.meta.url)},update:{label:"Update",component:ut(()=>import("./UpdateApiDocs-9036caca.js"),["./UpdateApiDocs-9036caca.js","./SdkTabs-1c685373.js","./SdkTabs-9b0b7a06.css","./FieldsQueryParam-815b0ee8.js"],import.meta.url)},delete:{label:"Delete",component:ut(()=>import("./DeleteApiDocs-f44d12c6.js"),["./DeleteApiDocs-f44d12c6.js","./SdkTabs-1c685373.js","./SdkTabs-9b0b7a06.css"],import.meta.url)},realtime:{label:"Realtime",component:ut(()=>import("./RealtimeApiDocs-3da2900a.js"),["./RealtimeApiDocs-3da2900a.js","./SdkTabs-1c685373.js","./SdkTabs-9b0b7a06.css"],import.meta.url)}},s={"auth-with-password":{label:"Auth with password",component:ut(()=>import("./AuthWithPasswordDocs-7af159f4.js"),["./AuthWithPasswordDocs-7af159f4.js","./SdkTabs-1c685373.js","./SdkTabs-9b0b7a06.css","./FieldsQueryParam-815b0ee8.js"],import.meta.url)},"auth-with-oauth2":{label:"Auth with OAuth2",component:ut(()=>import("./AuthWithOAuth2Docs-4c58b701.js"),["./AuthWithOAuth2Docs-4c58b701.js","./SdkTabs-1c685373.js","./SdkTabs-9b0b7a06.css","./FieldsQueryParam-815b0ee8.js"],import.meta.url)},refresh:{label:"Auth refresh",component:ut(()=>import("./AuthRefreshDocs-598c40a9.js"),["./AuthRefreshDocs-598c40a9.js","./SdkTabs-1c685373.js","./SdkTabs-9b0b7a06.css","./FieldsQueryParam-815b0ee8.js"],import.meta.url)},"request-verification":{label:"Request verification",component:ut(()=>import("./RequestVerificationDocs-6631debd.js"),["./RequestVerificationDocs-6631debd.js","./SdkTabs-1c685373.js","./SdkTabs-9b0b7a06.css"],import.meta.url)},"confirm-verification":{label:"Confirm verification",component:ut(()=>import("./ConfirmVerificationDocs-807a8aac.js"),["./ConfirmVerificationDocs-807a8aac.js","./SdkTabs-1c685373.js","./SdkTabs-9b0b7a06.css"],import.meta.url)},"request-password-reset":{label:"Request password reset",component:ut(()=>import("./RequestPasswordResetDocs-b80ea171.js"),["./RequestPasswordResetDocs-b80ea171.js","./SdkTabs-1c685373.js","./SdkTabs-9b0b7a06.css"],import.meta.url)},"confirm-password-reset":{label:"Confirm password reset",component:ut(()=>import("./ConfirmPasswordResetDocs-9eb1f601.js"),["./ConfirmPasswordResetDocs-9eb1f601.js","./SdkTabs-1c685373.js","./SdkTabs-9b0b7a06.css"],import.meta.url)},"request-email-change":{label:"Request email change",component:ut(()=>import("./RequestEmailChangeDocs-18fca019.js"),["./RequestEmailChangeDocs-18fca019.js","./SdkTabs-1c685373.js","./SdkTabs-9b0b7a06.css"],import.meta.url)},"confirm-email-change":{label:"Confirm email change",component:ut(()=>import("./ConfirmEmailChangeDocs-afbacda3.js"),["./ConfirmEmailChangeDocs-afbacda3.js","./SdkTabs-1c685373.js","./SdkTabs-9b0b7a06.css"],import.meta.url)},"list-auth-methods":{label:"List auth methods",component:ut(()=>import("./AuthMethodsDocs-fdba4410.js"),["./AuthMethodsDocs-fdba4410.js","./SdkTabs-1c685373.js","./SdkTabs-9b0b7a06.css","./FieldsQueryParam-815b0ee8.js"],import.meta.url)},"list-linked-accounts":{label:"List OAuth2 accounts",component:ut(()=>import("./ListExternalAuthsDocs-576d3337.js"),["./ListExternalAuthsDocs-576d3337.js","./SdkTabs-1c685373.js","./SdkTabs-9b0b7a06.css","./FieldsQueryParam-815b0ee8.js"],import.meta.url)},"unlink-account":{label:"Unlink OAuth2 account",component:ut(()=>import("./UnlinkExternalAuthDocs-46e2e894.js"),["./UnlinkExternalAuthDocs-46e2e894.js","./SdkTabs-1c685373.js","./SdkTabs-9b0b7a06.css"],import.meta.url)}};let l,o=new kn,r,a=[];a.length&&(r=Object.keys(a)[0]);function u(k){return t(2,o=k),d(Object.keys(a)[0]),l==null?void 0:l.show()}function f(){return l==null?void 0:l.hide()}function d(k){t(5,r=k)}const p=()=>f(),h=k=>d(k);function g(k){ne[k?"unshift":"push"](()=>{l=k,t(4,l)})}function _(k){he.call(this,n,k)}function b(k){he.call(this,n,k)}return n.$$.update=()=>{n.$$.dirty&12&&(o.$isAuth?(t(3,a=Object.assign({},i,s)),!(o!=null&&o.options.allowUsernameAuth)&&!(o!=null&&o.options.allowEmailAuth)&&delete a["auth-with-password"],o!=null&&o.options.allowOAuth2Auth||delete a["auth-with-oauth2"]):o.$isView?(t(3,a=Object.assign({},i)),delete a.create,delete a.update,delete a.delete,delete a.realtime):t(3,a=Object.assign({},i)))},[f,d,o,a,l,r,i,u,p,h,g,_,b]}class I6 extends ve{constructor(e){super(),be(this,e,A6,D6,_e,{show:7,hide:0,changeTab:1})}get show(){return this.$$.ctx[7]}get hide(){return this.$$.ctx[0]}get changeTab(){return this.$$.ctx[1]}}function L6(n){let e,t,i,s,l,o,r,a,u,f,d,p;return{c(){e=y("label"),t=y("i"),i=D(),s=y("span"),s.textContent="Username",o=D(),r=y("input"),m(t,"class",W.getFieldTypeIcon("user")),m(s,"class","txt"),m(e,"for",l=n[13]),m(r,"type","text"),m(r,"requried",a=!n[2]),m(r,"placeholder",u=n[2]?"Leave empty to auto generate...":n[4]),m(r,"id",f=n[13])},m(h,g){S(h,e,g),v(e,t),v(e,i),v(e,s),S(h,o,g),S(h,r,g),ae(r,n[0].username),d||(p=J(r,"input",n[5]),d=!0)},p(h,g){g&8192&&l!==(l=h[13])&&m(e,"for",l),g&4&&a!==(a=!h[2])&&m(r,"requried",a),g&4&&u!==(u=h[2]?"Leave empty to auto generate...":h[4])&&m(r,"placeholder",u),g&8192&&f!==(f=h[13])&&m(r,"id",f),g&1&&r.value!==h[0].username&&ae(r,h[0].username)},d(h){h&&w(e),h&&w(o),h&&w(r),d=!1,p()}}}function P6(n){let e,t,i,s,l,o,r,a,u,f,d=n[0].emailVisibility?"On":"Off",p,h,g,_,b,k,$,C;return{c(){var T;e=y("label"),t=y("i"),i=D(),s=y("span"),s.textContent="Email",o=D(),r=y("div"),a=y("button"),u=y("span"),f=Y("Public: "),p=Y(d),g=D(),_=y("input"),m(t,"class",W.getFieldTypeIcon("email")),m(s,"class","txt"),m(e,"for",l=n[13]),m(u,"class","txt"),m(a,"type","button"),m(a,"class",h="btn btn-sm btn-transparent "+(n[0].emailVisibility?"btn-success":"btn-hint")),m(r,"class","form-field-addon email-visibility-addon svelte-1751a4d"),m(_,"type","email"),_.autofocus=n[2],m(_,"autocomplete","off"),m(_,"id",b=n[13]),_.required=k=(T=n[1].options)==null?void 0:T.requireEmail,m(_,"class","svelte-1751a4d")},m(T,O){S(T,e,O),v(e,t),v(e,i),v(e,s),S(T,o,O),S(T,r,O),v(r,a),v(a,u),v(u,f),v(u,p),S(T,g,O),S(T,_,O),ae(_,n[0].email),n[2]&&_.focus(),$||(C=[Ee(Be.call(null,a,{text:"Make email public or private",position:"top-right"})),J(a,"click",n[6]),J(_,"input",n[7])],$=!0)},p(T,O){var M;O&8192&&l!==(l=T[13])&&m(e,"for",l),O&1&&d!==(d=T[0].emailVisibility?"On":"Off")&&le(p,d),O&1&&h!==(h="btn btn-sm btn-transparent "+(T[0].emailVisibility?"btn-success":"btn-hint"))&&m(a,"class",h),O&4&&(_.autofocus=T[2]),O&8192&&b!==(b=T[13])&&m(_,"id",b),O&2&&k!==(k=(M=T[1].options)==null?void 0:M.requireEmail)&&(_.required=k),O&1&&_.value!==T[0].email&&ae(_,T[0].email)},d(T){T&&w(e),T&&w(o),T&&w(r),T&&w(g),T&&w(_),$=!1,De(C)}}}function Np(n){let e,t;return e=new me({props:{class:"form-field form-field-toggle",name:"verified",$$slots:{default:[N6,({uniqueId:i})=>({13:i}),({uniqueId:i})=>i?8192:0]},$$scope:{ctx:n}}}),{c(){B(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p(i,s){const l={};s&24584&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(I(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){H(e,i)}}}function N6(n){let e,t,i,s,l,o,r,a;return{c(){e=y("input"),i=D(),s=y("label"),l=Y("Change password"),m(e,"type","checkbox"),m(e,"id",t=n[13]),m(s,"for",o=n[13])},m(u,f){S(u,e,f),e.checked=n[3],S(u,i,f),S(u,s,f),v(s,l),r||(a=J(e,"change",n[8]),r=!0)},p(u,f){f&8192&&t!==(t=u[13])&&m(e,"id",t),f&8&&(e.checked=u[3]),f&8192&&o!==(o=u[13])&&m(s,"for",o)},d(u){u&&w(e),u&&w(i),u&&w(s),r=!1,a()}}}function Fp(n){let e,t,i,s,l,o,r,a,u;return s=new me({props:{class:"form-field required",name:"password",$$slots:{default:[F6,({uniqueId:f})=>({13:f}),({uniqueId:f})=>f?8192:0]},$$scope:{ctx:n}}}),r=new me({props:{class:"form-field required",name:"passwordConfirm",$$slots:{default:[R6,({uniqueId:f})=>({13:f}),({uniqueId:f})=>f?8192:0]},$$scope:{ctx:n}}}),{c(){e=y("div"),t=y("div"),i=y("div"),B(s.$$.fragment),l=D(),o=y("div"),B(r.$$.fragment),m(i,"class","col-sm-6"),m(o,"class","col-sm-6"),m(t,"class","grid"),Q(t,"p-t-xs",n[3]),m(e,"class","block")},m(f,d){S(f,e,d),v(e,t),v(t,i),z(s,i,null),v(t,l),v(t,o),z(r,o,null),u=!0},p(f,d){const p={};d&24577&&(p.$$scope={dirty:d,ctx:f}),s.$set(p);const h={};d&24577&&(h.$$scope={dirty:d,ctx:f}),r.$set(h),(!u||d&8)&&Q(t,"p-t-xs",f[3])},i(f){u||(I(s.$$.fragment,f),I(r.$$.fragment,f),f&&et(()=>{u&&(a||(a=Ve(e,rt,{duration:150},!0)),a.run(1))}),u=!0)},o(f){P(s.$$.fragment,f),P(r.$$.fragment,f),f&&(a||(a=Ve(e,rt,{duration:150},!1)),a.run(0)),u=!1},d(f){f&&w(e),H(s),H(r),f&&a&&a.end()}}}function F6(n){let e,t,i,s,l,o,r,a,u,f;return{c(){e=y("label"),t=y("i"),i=D(),s=y("span"),s.textContent="Password",o=D(),r=y("input"),m(t,"class","ri-lock-line"),m(s,"class","txt"),m(e,"for",l=n[13]),m(r,"type","password"),m(r,"autocomplete","new-password"),m(r,"id",a=n[13]),r.required=!0},m(d,p){S(d,e,p),v(e,t),v(e,i),v(e,s),S(d,o,p),S(d,r,p),ae(r,n[0].password),u||(f=J(r,"input",n[9]),u=!0)},p(d,p){p&8192&&l!==(l=d[13])&&m(e,"for",l),p&8192&&a!==(a=d[13])&&m(r,"id",a),p&1&&r.value!==d[0].password&&ae(r,d[0].password)},d(d){d&&w(e),d&&w(o),d&&w(r),u=!1,f()}}}function R6(n){let e,t,i,s,l,o,r,a,u,f;return{c(){e=y("label"),t=y("i"),i=D(),s=y("span"),s.textContent="Password confirm",o=D(),r=y("input"),m(t,"class","ri-lock-line"),m(s,"class","txt"),m(e,"for",l=n[13]),m(r,"type","password"),m(r,"autocomplete","new-password"),m(r,"id",a=n[13]),r.required=!0},m(d,p){S(d,e,p),v(e,t),v(e,i),v(e,s),S(d,o,p),S(d,r,p),ae(r,n[0].passwordConfirm),u||(f=J(r,"input",n[10]),u=!0)},p(d,p){p&8192&&l!==(l=d[13])&&m(e,"for",l),p&8192&&a!==(a=d[13])&&m(r,"id",a),p&1&&r.value!==d[0].passwordConfirm&&ae(r,d[0].passwordConfirm)},d(d){d&&w(e),d&&w(o),d&&w(r),u=!1,f()}}}function q6(n){let e,t,i,s,l,o,r,a;return{c(){e=y("input"),i=D(),s=y("label"),l=Y("Verified"),m(e,"type","checkbox"),m(e,"id",t=n[13]),m(s,"for",o=n[13])},m(u,f){S(u,e,f),e.checked=n[0].verified,S(u,i,f),S(u,s,f),v(s,l),r||(a=[J(e,"change",n[11]),J(e,"change",xe(n[12]))],r=!0)},p(u,f){f&8192&&t!==(t=u[13])&&m(e,"id",t),f&1&&(e.checked=u[0].verified),f&8192&&o!==(o=u[13])&&m(s,"for",o)},d(u){u&&w(e),u&&w(i),u&&w(s),r=!1,De(a)}}}function j6(n){var b;let e,t,i,s,l,o,r,a,u,f,d,p,h;i=new me({props:{class:"form-field "+(n[2]?"":"required"),name:"username",$$slots:{default:[L6,({uniqueId:k})=>({13:k}),({uniqueId:k})=>k?8192:0]},$$scope:{ctx:n}}}),o=new me({props:{class:"form-field "+((b=n[1].options)!=null&&b.requireEmail?"required":""),name:"email",$$slots:{default:[P6,({uniqueId:k})=>({13:k}),({uniqueId:k})=>k?8192:0]},$$scope:{ctx:n}}});let g=!n[2]&&Np(n),_=(n[2]||n[3])&&Fp(n);return p=new me({props:{class:"form-field form-field-toggle",name:"verified",$$slots:{default:[q6,({uniqueId:k})=>({13:k}),({uniqueId:k})=>k?8192:0]},$$scope:{ctx:n}}}),{c(){e=y("div"),t=y("div"),B(i.$$.fragment),s=D(),l=y("div"),B(o.$$.fragment),r=D(),a=y("div"),g&&g.c(),u=D(),_&&_.c(),f=D(),d=y("div"),B(p.$$.fragment),m(t,"class","col-lg-6"),m(l,"class","col-lg-6"),m(a,"class","col-lg-12"),m(d,"class","col-lg-12"),m(e,"class","grid m-b-base")},m(k,$){S(k,e,$),v(e,t),z(i,t,null),v(e,s),v(e,l),z(o,l,null),v(e,r),v(e,a),g&&g.m(a,null),v(a,u),_&&_.m(a,null),v(e,f),v(e,d),z(p,d,null),h=!0},p(k,[$]){var M;const C={};$&4&&(C.class="form-field "+(k[2]?"":"required")),$&24581&&(C.$$scope={dirty:$,ctx:k}),i.$set(C);const T={};$&2&&(T.class="form-field "+((M=k[1].options)!=null&&M.requireEmail?"required":"")),$&24583&&(T.$$scope={dirty:$,ctx:k}),o.$set(T),k[2]?g&&(ue(),P(g,1,1,()=>{g=null}),fe()):g?(g.p(k,$),$&4&&I(g,1)):(g=Np(k),g.c(),I(g,1),g.m(a,u)),k[2]||k[3]?_?(_.p(k,$),$&12&&I(_,1)):(_=Fp(k),_.c(),I(_,1),_.m(a,null)):_&&(ue(),P(_,1,1,()=>{_=null}),fe());const O={};$&24581&&(O.$$scope={dirty:$,ctx:k}),p.$set(O)},i(k){h||(I(i.$$.fragment,k),I(o.$$.fragment,k),I(g),I(_),I(p.$$.fragment,k),h=!0)},o(k){P(i.$$.fragment,k),P(o.$$.fragment,k),P(g),P(_),P(p.$$.fragment,k),h=!1},d(k){k&&w(e),H(i),H(o),g&&g.d(),_&&_.d(),H(p)}}}function V6(n,e,t){let{collection:i=new kn}=e,{record:s=new wi}=e,{isNew:l=s.$isNew}=e,o=s.username||null,r=!1;function a(){s.username=this.value,t(0,s),t(3,r)}const u=()=>t(0,s.emailVisibility=!s.emailVisibility,s);function f(){s.email=this.value,t(0,s),t(3,r)}function d(){r=this.checked,t(3,r)}function p(){s.password=this.value,t(0,s),t(3,r)}function h(){s.passwordConfirm=this.value,t(0,s),t(3,r)}function g(){s.verified=this.checked,t(0,s),t(3,r)}const _=b=>{l||mn("Do you really want to manually change the verified account state?",()=>{},()=>{t(0,s.verified=!b.target.checked,s)})};return n.$$set=b=>{"collection"in b&&t(1,i=b.collection),"record"in b&&t(0,s=b.record),"isNew"in b&&t(2,l=b.isNew)},n.$$.update=()=>{n.$$.dirty&1&&!s.username&&s.username!==null&&t(0,s.username=null,s),n.$$.dirty&8&&(r||(t(0,s.password=null,s),t(0,s.passwordConfirm=null,s),ui("password"),ui("passwordConfirm")))},[s,i,l,r,o,a,u,f,d,p,h,g,_]}class z6 extends ve{constructor(e){super(),be(this,e,V6,j6,_e,{collection:1,record:0,isNew:2})}}function H6(n){let e,t,i,s=[n[3]],l={};for(let o=0;o{r&&(t(1,r.style.height="",r),t(1,r.style.height=Math.min(r.scrollHeight,o)+"px",r))},0)}function f(h){if((h==null?void 0:h.code)==="Enter"&&!(h!=null&&h.shiftKey)&&!(h!=null&&h.isComposing)){h.preventDefault();const g=r.closest("form");g!=null&&g.requestSubmit&&g.requestSubmit()}}Xt(()=>(u(),()=>clearTimeout(a)));function d(h){ne[h?"unshift":"push"](()=>{r=h,t(1,r)})}function p(){l=this.value,t(0,l)}return n.$$set=h=>{e=je(je({},e),Gt(h)),t(3,s=tt(e,i)),"value"in h&&t(0,l=h.value),"maxHeight"in h&&t(4,o=h.maxHeight)},n.$$.update=()=>{n.$$.dirty&1&&typeof l!==void 0&&u()},[l,r,f,s,o,d,p]}class U6 extends ve{constructor(e){super(),be(this,e,B6,H6,_e,{value:0,maxHeight:4})}}function W6(n){let e,t,i,s,l,o=n[1].name+"",r,a,u,f,d,p;function h(_){n[2](_)}let g={id:n[3],required:n[1].required};return n[0]!==void 0&&(g.value=n[0]),f=new U6({props:g}),ne.push(()=>pe(f,"value",h)),{c(){e=y("label"),t=y("i"),s=D(),l=y("span"),r=Y(o),u=D(),B(f.$$.fragment),m(t,"class",i=W.getFieldTypeIcon(n[1].type)),m(l,"class","txt"),m(e,"for",a=n[3])},m(_,b){S(_,e,b),v(e,t),v(e,s),v(e,l),v(l,r),S(_,u,b),z(f,_,b),p=!0},p(_,b){(!p||b&2&&i!==(i=W.getFieldTypeIcon(_[1].type)))&&m(t,"class",i),(!p||b&2)&&o!==(o=_[1].name+"")&&le(r,o),(!p||b&8&&a!==(a=_[3]))&&m(e,"for",a);const k={};b&8&&(k.id=_[3]),b&2&&(k.required=_[1].required),!d&&b&1&&(d=!0,k.value=_[0],ge(()=>d=!1)),f.$set(k)},i(_){p||(I(f.$$.fragment,_),p=!0)},o(_){P(f.$$.fragment,_),p=!1},d(_){_&&w(e),_&&w(u),H(f,_)}}}function Y6(n){let e,t;return e=new me({props:{class:"form-field "+(n[1].required?"required":""),name:n[1].name,$$slots:{default:[W6,({uniqueId:i})=>({3:i}),({uniqueId:i})=>i?8:0]},$$scope:{ctx:n}}}),{c(){B(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p(i,[s]){const l={};s&2&&(l.class="form-field "+(i[1].required?"required":"")),s&2&&(l.name=i[1].name),s&27&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(I(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){H(e,i)}}}function K6(n,e,t){let{field:i=new wn}=e,{value:s=void 0}=e;function l(o){s=o,t(0,s)}return n.$$set=o=>{"field"in o&&t(1,i=o.field),"value"in o&&t(0,s=o.value)},[s,i,l]}class J6 extends ve{constructor(e){super(),be(this,e,K6,Y6,_e,{field:1,value:0})}}function Z6(n){let e,t,i,s,l,o=n[1].name+"",r,a,u,f,d,p,h,g,_,b;return{c(){var k,$;e=y("label"),t=y("i"),s=D(),l=y("span"),r=Y(o),u=D(),f=y("input"),m(t,"class",i=W.getFieldTypeIcon(n[1].type)),m(l,"class","txt"),m(e,"for",a=n[3]),m(f,"type","number"),m(f,"id",d=n[3]),f.required=p=n[1].required,m(f,"min",h=(k=n[1].options)==null?void 0:k.min),m(f,"max",g=($=n[1].options)==null?void 0:$.max),m(f,"step","any")},m(k,$){S(k,e,$),v(e,t),v(e,s),v(e,l),v(l,r),S(k,u,$),S(k,f,$),ae(f,n[0]),_||(b=J(f,"input",n[2]),_=!0)},p(k,$){var C,T;$&2&&i!==(i=W.getFieldTypeIcon(k[1].type))&&m(t,"class",i),$&2&&o!==(o=k[1].name+"")&&le(r,o),$&8&&a!==(a=k[3])&&m(e,"for",a),$&8&&d!==(d=k[3])&&m(f,"id",d),$&2&&p!==(p=k[1].required)&&(f.required=p),$&2&&h!==(h=(C=k[1].options)==null?void 0:C.min)&&m(f,"min",h),$&2&&g!==(g=(T=k[1].options)==null?void 0:T.max)&&m(f,"max",g),$&1&&mt(f.value)!==k[0]&&ae(f,k[0])},d(k){k&&w(e),k&&w(u),k&&w(f),_=!1,b()}}}function G6(n){let e,t;return e=new me({props:{class:"form-field "+(n[1].required?"required":""),name:n[1].name,$$slots:{default:[Z6,({uniqueId:i})=>({3:i}),({uniqueId:i})=>i?8:0]},$$scope:{ctx:n}}}),{c(){B(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p(i,[s]){const l={};s&2&&(l.class="form-field "+(i[1].required?"required":"")),s&2&&(l.name=i[1].name),s&27&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(I(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){H(e,i)}}}function X6(n,e,t){let{field:i=new wn}=e,{value:s=void 0}=e;function l(){s=mt(this.value),t(0,s)}return n.$$set=o=>{"field"in o&&t(1,i=o.field),"value"in o&&t(0,s=o.value)},[s,i,l]}class Q6 extends ve{constructor(e){super(),be(this,e,X6,G6,_e,{field:1,value:0})}}function x6(n){let e,t,i,s,l=n[1].name+"",o,r,a,u;return{c(){e=y("input"),i=D(),s=y("label"),o=Y(l),m(e,"type","checkbox"),m(e,"id",t=n[3]),m(s,"for",r=n[3])},m(f,d){S(f,e,d),e.checked=n[0],S(f,i,d),S(f,s,d),v(s,o),a||(u=J(e,"change",n[2]),a=!0)},p(f,d){d&8&&t!==(t=f[3])&&m(e,"id",t),d&1&&(e.checked=f[0]),d&2&&l!==(l=f[1].name+"")&&le(o,l),d&8&&r!==(r=f[3])&&m(s,"for",r)},d(f){f&&w(e),f&&w(i),f&&w(s),a=!1,u()}}}function eM(n){let e,t;return e=new me({props:{class:"form-field form-field-toggle "+(n[1].required?"required":""),name:n[1].name,$$slots:{default:[x6,({uniqueId:i})=>({3:i}),({uniqueId:i})=>i?8:0]},$$scope:{ctx:n}}}),{c(){B(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p(i,[s]){const l={};s&2&&(l.class="form-field form-field-toggle "+(i[1].required?"required":"")),s&2&&(l.name=i[1].name),s&27&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(I(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){H(e,i)}}}function tM(n,e,t){let{field:i=new wn}=e,{value:s=!1}=e;function l(){s=this.checked,t(0,s)}return n.$$set=o=>{"field"in o&&t(1,i=o.field),"value"in o&&t(0,s=o.value)},[s,i,l]}class nM extends ve{constructor(e){super(),be(this,e,tM,eM,_e,{field:1,value:0})}}function iM(n){let e,t,i,s,l,o=n[1].name+"",r,a,u,f,d,p,h,g;return{c(){e=y("label"),t=y("i"),s=D(),l=y("span"),r=Y(o),u=D(),f=y("input"),m(t,"class",i=W.getFieldTypeIcon(n[1].type)),m(l,"class","txt"),m(e,"for",a=n[3]),m(f,"type","email"),m(f,"id",d=n[3]),f.required=p=n[1].required},m(_,b){S(_,e,b),v(e,t),v(e,s),v(e,l),v(l,r),S(_,u,b),S(_,f,b),ae(f,n[0]),h||(g=J(f,"input",n[2]),h=!0)},p(_,b){b&2&&i!==(i=W.getFieldTypeIcon(_[1].type))&&m(t,"class",i),b&2&&o!==(o=_[1].name+"")&&le(r,o),b&8&&a!==(a=_[3])&&m(e,"for",a),b&8&&d!==(d=_[3])&&m(f,"id",d),b&2&&p!==(p=_[1].required)&&(f.required=p),b&1&&f.value!==_[0]&&ae(f,_[0])},d(_){_&&w(e),_&&w(u),_&&w(f),h=!1,g()}}}function sM(n){let e,t;return e=new me({props:{class:"form-field "+(n[1].required?"required":""),name:n[1].name,$$slots:{default:[iM,({uniqueId:i})=>({3:i}),({uniqueId:i})=>i?8:0]},$$scope:{ctx:n}}}),{c(){B(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p(i,[s]){const l={};s&2&&(l.class="form-field "+(i[1].required?"required":"")),s&2&&(l.name=i[1].name),s&27&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(I(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){H(e,i)}}}function lM(n,e,t){let{field:i=new wn}=e,{value:s=void 0}=e;function l(){s=this.value,t(0,s)}return n.$$set=o=>{"field"in o&&t(1,i=o.field),"value"in o&&t(0,s=o.value)},[s,i,l]}class oM extends ve{constructor(e){super(),be(this,e,lM,sM,_e,{field:1,value:0})}}function rM(n){let e,t,i,s,l,o=n[1].name+"",r,a,u,f,d,p,h,g;return{c(){e=y("label"),t=y("i"),s=D(),l=y("span"),r=Y(o),u=D(),f=y("input"),m(t,"class",i=W.getFieldTypeIcon(n[1].type)),m(l,"class","txt"),m(e,"for",a=n[3]),m(f,"type","url"),m(f,"id",d=n[3]),f.required=p=n[1].required},m(_,b){S(_,e,b),v(e,t),v(e,s),v(e,l),v(l,r),S(_,u,b),S(_,f,b),ae(f,n[0]),h||(g=J(f,"input",n[2]),h=!0)},p(_,b){b&2&&i!==(i=W.getFieldTypeIcon(_[1].type))&&m(t,"class",i),b&2&&o!==(o=_[1].name+"")&&le(r,o),b&8&&a!==(a=_[3])&&m(e,"for",a),b&8&&d!==(d=_[3])&&m(f,"id",d),b&2&&p!==(p=_[1].required)&&(f.required=p),b&1&&f.value!==_[0]&&ae(f,_[0])},d(_){_&&w(e),_&&w(u),_&&w(f),h=!1,g()}}}function aM(n){let e,t;return e=new me({props:{class:"form-field "+(n[1].required?"required":""),name:n[1].name,$$slots:{default:[rM,({uniqueId:i})=>({3:i}),({uniqueId:i})=>i?8:0]},$$scope:{ctx:n}}}),{c(){B(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p(i,[s]){const l={};s&2&&(l.class="form-field "+(i[1].required?"required":"")),s&2&&(l.name=i[1].name),s&27&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(I(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){H(e,i)}}}function uM(n,e,t){let{field:i=new wn}=e,{value:s=void 0}=e;function l(){s=this.value,t(0,s)}return n.$$set=o=>{"field"in o&&t(1,i=o.field),"value"in o&&t(0,s=o.value)},[s,i,l]}class fM extends ve{constructor(e){super(),be(this,e,uM,aM,_e,{field:1,value:0})}}function Rp(n){let e,t,i,s;return{c(){e=y("div"),t=y("button"),t.innerHTML='',m(t,"type","button"),m(t,"class","link-hint clear-btn svelte-11df51y"),m(e,"class","form-field-addon")},m(l,o){S(l,e,o),v(e,t),i||(s=[Ee(Be.call(null,t,"Clear")),J(t,"click",n[5])],i=!0)},p:te,d(l){l&&w(e),i=!1,De(s)}}}function cM(n){let e,t,i,s,l,o=n[1].name+"",r,a,u,f,d,p,h,g,_,b=n[0]&&!n[1].required&&Rp(n);function k(T){n[6](T)}function $(T){n[7](T)}let C={id:n[8],options:W.defaultFlatpickrOptions()};return n[2]!==void 0&&(C.value=n[2]),n[0]!==void 0&&(C.formattedValue=n[0]),p=new fu({props:C}),ne.push(()=>pe(p,"value",k)),ne.push(()=>pe(p,"formattedValue",$)),p.$on("close",n[3]),{c(){e=y("label"),t=y("i"),s=D(),l=y("span"),r=Y(o),a=Y(" (UTC)"),f=D(),b&&b.c(),d=D(),B(p.$$.fragment),m(t,"class",i=os(W.getFieldTypeIcon(n[1].type))+" svelte-11df51y"),m(l,"class","txt"),m(e,"for",u=n[8])},m(T,O){S(T,e,O),v(e,t),v(e,s),v(e,l),v(l,r),v(l,a),S(T,f,O),b&&b.m(T,O),S(T,d,O),z(p,T,O),_=!0},p(T,O){(!_||O&2&&i!==(i=os(W.getFieldTypeIcon(T[1].type))+" svelte-11df51y"))&&m(t,"class",i),(!_||O&2)&&o!==(o=T[1].name+"")&&le(r,o),(!_||O&256&&u!==(u=T[8]))&&m(e,"for",u),T[0]&&!T[1].required?b?b.p(T,O):(b=Rp(T),b.c(),b.m(d.parentNode,d)):b&&(b.d(1),b=null);const M={};O&256&&(M.id=T[8]),!h&&O&4&&(h=!0,M.value=T[2],ge(()=>h=!1)),!g&&O&1&&(g=!0,M.formattedValue=T[0],ge(()=>g=!1)),p.$set(M)},i(T){_||(I(p.$$.fragment,T),_=!0)},o(T){P(p.$$.fragment,T),_=!1},d(T){T&&w(e),T&&w(f),b&&b.d(T),T&&w(d),H(p,T)}}}function dM(n){let e,t;return e=new me({props:{class:"form-field "+(n[1].required?"required":""),name:n[1].name,$$slots:{default:[cM,({uniqueId:i})=>({8:i}),({uniqueId:i})=>i?256:0]},$$scope:{ctx:n}}}),{c(){B(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p(i,[s]){const l={};s&2&&(l.class="form-field "+(i[1].required?"required":"")),s&2&&(l.name=i[1].name),s&775&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(I(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){H(e,i)}}}function pM(n,e,t){let{field:i=new wn}=e,{value:s=void 0}=e,l=s;function o(d){d.detail&&d.detail.length==3&&t(0,s=d.detail[1])}function r(){t(0,s="")}const a=()=>r();function u(d){l=d,t(2,l),t(0,s)}function f(d){s=d,t(0,s)}return n.$$set=d=>{"field"in d&&t(1,i=d.field),"value"in d&&t(0,s=d.value)},n.$$.update=()=>{n.$$.dirty&1&&s&&s.length>19&&t(0,s=s.substring(0,19)),n.$$.dirty&5&&l!=s&&t(2,l=s)},[s,i,l,o,r,a,u,f]}class mM extends ve{constructor(e){super(),be(this,e,pM,dM,_e,{field:1,value:0})}}function qp(n){let e,t,i=n[1].options.maxSelect+"",s,l;return{c(){e=y("div"),t=Y("Select up to "),s=Y(i),l=Y(" items."),m(e,"class","help-block")},m(o,r){S(o,e,r),v(e,t),v(e,s),v(e,l)},p(o,r){r&2&&i!==(i=o[1].options.maxSelect+"")&&le(s,i)},d(o){o&&w(e)}}}function hM(n){var $,C,T,O,M,E;let e,t,i,s,l,o=n[1].name+"",r,a,u,f,d,p,h,g;function _(A){n[3](A)}let b={id:n[4],toggle:!n[1].required||n[2],multiple:n[2],closable:!n[2]||(($=n[0])==null?void 0:$.length)>=((C=n[1].options)==null?void 0:C.maxSelect),items:(T=n[1].options)==null?void 0:T.values,searchable:((M=(O=n[1].options)==null?void 0:O.values)==null?void 0:M.length)>5};n[0]!==void 0&&(b.selected=n[0]),f=new cu({props:b}),ne.push(()=>pe(f,"selected",_));let k=((E=n[1].options)==null?void 0:E.maxSelect)>1&&qp(n);return{c(){e=y("label"),t=y("i"),s=D(),l=y("span"),r=Y(o),u=D(),B(f.$$.fragment),p=D(),k&&k.c(),h=we(),m(t,"class",i=W.getFieldTypeIcon(n[1].type)),m(l,"class","txt"),m(e,"for",a=n[4])},m(A,L){S(A,e,L),v(e,t),v(e,s),v(e,l),v(l,r),S(A,u,L),z(f,A,L),S(A,p,L),k&&k.m(A,L),S(A,h,L),g=!0},p(A,L){var q,F,R,V,j,U;(!g||L&2&&i!==(i=W.getFieldTypeIcon(A[1].type)))&&m(t,"class",i),(!g||L&2)&&o!==(o=A[1].name+"")&&le(r,o),(!g||L&16&&a!==(a=A[4]))&&m(e,"for",a);const N={};L&16&&(N.id=A[4]),L&6&&(N.toggle=!A[1].required||A[2]),L&4&&(N.multiple=A[2]),L&7&&(N.closable=!A[2]||((q=A[0])==null?void 0:q.length)>=((F=A[1].options)==null?void 0:F.maxSelect)),L&2&&(N.items=(R=A[1].options)==null?void 0:R.values),L&2&&(N.searchable=((j=(V=A[1].options)==null?void 0:V.values)==null?void 0:j.length)>5),!d&&L&1&&(d=!0,N.selected=A[0],ge(()=>d=!1)),f.$set(N),((U=A[1].options)==null?void 0:U.maxSelect)>1?k?k.p(A,L):(k=qp(A),k.c(),k.m(h.parentNode,h)):k&&(k.d(1),k=null)},i(A){g||(I(f.$$.fragment,A),g=!0)},o(A){P(f.$$.fragment,A),g=!1},d(A){A&&w(e),A&&w(u),H(f,A),A&&w(p),k&&k.d(A),A&&w(h)}}}function _M(n){let e,t;return e=new me({props:{class:"form-field "+(n[1].required?"required":""),name:n[1].name,$$slots:{default:[hM,({uniqueId:i})=>({4:i}),({uniqueId:i})=>i?16:0]},$$scope:{ctx:n}}}),{c(){B(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p(i,[s]){const l={};s&2&&(l.class="form-field "+(i[1].required?"required":"")),s&2&&(l.name=i[1].name),s&55&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(I(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){H(e,i)}}}function gM(n,e,t){let i,{field:s=new wn}=e,{value:l=void 0}=e;function o(r){l=r,t(0,l),t(2,i),t(1,s)}return n.$$set=r=>{"field"in r&&t(1,s=r.field),"value"in r&&t(0,l=r.value)},n.$$.update=()=>{var r;n.$$.dirty&2&&t(2,i=((r=s.options)==null?void 0:r.maxSelect)>1),n.$$.dirty&5&&typeof l>"u"&&t(0,l=i?[]:""),n.$$.dirty&7&&i&&Array.isArray(l)&&l.length>s.options.maxSelect&&t(0,l=l.slice(l.length-s.options.maxSelect))},[l,s,i,o]}class bM extends ve{constructor(e){super(),be(this,e,gM,_M,_e,{field:1,value:0})}}function vM(n){let e,t,i,s,l,o=n[1].name+"",r,a,u,f,d,p,h,g;return{c(){e=y("label"),t=y("i"),s=D(),l=y("span"),r=Y(o),u=D(),f=y("textarea"),m(t,"class",i=W.getFieldTypeIcon(n[1].type)),m(l,"class","txt"),m(e,"for",a=n[4]),m(f,"id",d=n[4]),m(f,"class","txt-mono"),f.required=p=n[1].required,f.value=n[2]},m(_,b){S(_,e,b),v(e,t),v(e,s),v(e,l),v(l,r),S(_,u,b),S(_,f,b),h||(g=J(f,"input",n[3]),h=!0)},p(_,b){b&2&&i!==(i=W.getFieldTypeIcon(_[1].type))&&m(t,"class",i),b&2&&o!==(o=_[1].name+"")&&le(r,o),b&16&&a!==(a=_[4])&&m(e,"for",a),b&16&&d!==(d=_[4])&&m(f,"id",d),b&2&&p!==(p=_[1].required)&&(f.required=p),b&4&&(f.value=_[2])},d(_){_&&w(e),_&&w(u),_&&w(f),h=!1,g()}}}function yM(n){let e,t;return e=new me({props:{class:"form-field "+(n[1].required?"required":""),name:n[1].name,$$slots:{default:[vM,({uniqueId:i})=>({4:i}),({uniqueId:i})=>i?16:0]},$$scope:{ctx:n}}}),{c(){B(e.$$.fragment)},m(i,s){z(e,i,s),t=!0},p(i,[s]){const l={};s&2&&(l.class="form-field "+(i[1].required?"required":"")),s&2&&(l.name=i[1].name),s&55&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(I(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){H(e,i)}}}function kM(n,e,t){let{field:i=new wn}=e,{value:s=void 0}=e,l=JSON.stringify(typeof s>"u"?null:s,null,2);const o=r=>{t(2,l=r.target.value),t(0,s=r.target.value.trim())};return n.$$set=r=>{"field"in r&&t(1,i=r.field),"value"in r&&t(0,s=r.value)},n.$$.update=()=>{n.$$.dirty&5&&s!==(l==null?void 0:l.trim())&&(t(2,l=JSON.stringify(typeof s>"u"?null:s,null,2)),t(0,s=l))},[s,i,l,o]}class wM extends ve{constructor(e){super(),be(this,e,kM,yM,_e,{field:1,value:0})}}const SM=n=>({dragging:n&4,dragover:n&8}),jp=n=>({dragging:n[2],dragover:n[3]});function $M(n){let e,t,i,s,l;const o=n[9].default,r=kt(o,n,n[8],jp);return{c(){e=y("div"),r&&r.c(),m(e,"draggable",t=!n[1]),m(e,"class","draggable svelte-28orm4"),Q(e,"dragging",n[2]),Q(e,"dragover",n[3])},m(a,u){S(a,e,u),r&&r.m(e,null),i=!0,s||(l=[J(e,"dragover",xe(n[10])),J(e,"dragleave",xe(n[11])),J(e,"dragend",n[12]),J(e,"dragstart",n[13]),J(e,"drop",n[14])],s=!0)},p(a,[u]){r&&r.p&&(!i||u&268)&&St(r,o,a,a[8],i?wt(o,a[8],u,SM):$t(a[8]),jp),(!i||u&2&&t!==(t=!a[1]))&&m(e,"draggable",t),(!i||u&4)&&Q(e,"dragging",a[2]),(!i||u&8)&&Q(e,"dragover",a[3])},i(a){i||(I(r,a),i=!0)},o(a){P(r,a),i=!1},d(a){a&&w(e),r&&r.d(a),s=!1,De(l)}}}function TM(n,e,t){let{$$slots:i={},$$scope:s}=e;const l=Tt();let{index:o}=e,{list:r=[]}=e,{group:a="default"}=e,{disabled:u=!1}=e,f=!1,d=!1;function p(C,T){!C||u||(t(2,f=!0),C.dataTransfer.effectAllowed="move",C.dataTransfer.dropEffect="move",C.dataTransfer.setData("text/plain",JSON.stringify({index:T,group:a})))}function h(C,T){if(!C||u)return;t(3,d=!1),t(2,f=!1),C.dataTransfer.dropEffect="move";let O={};try{O=JSON.parse(C.dataTransfer.getData("text/plain"))}catch{}if(O.group!=a)return;const M=O.index<<0;M{t(3,d=!0)},_=()=>{t(3,d=!1)},b=()=>{t(3,d=!1),t(2,f=!1)},k=C=>p(C,o),$=C=>h(C,o);return n.$$set=C=>{"index"in C&&t(0,o=C.index),"list"in C&&t(6,r=C.list),"group"in C&&t(7,a=C.group),"disabled"in C&&t(1,u=C.disabled),"$$scope"in C&&t(8,s=C.$$scope)},[o,u,f,d,p,h,r,a,s,i,g,_,b,k,$]}class nr extends ve{constructor(e){super(),be(this,e,TM,$M,_e,{index:0,list:6,group:7,disabled:1})}}function CM(n){let e,t;return{c(){e=y("i"),m(e,"class","ri-file-line"),m(e,"alt",t=n[0].name)},m(i,s){S(i,e,s)},p(i,s){s&1&&t!==(t=i[0].name)&&m(e,"alt",t)},d(i){i&&w(e)}}}function MM(n){let e,t,i;return{c(){e=y("img"),m(e,"draggable",!1),_n(e.src,t=n[2])||m(e,"src",t),m(e,"width",n[1]),m(e,"height",n[1]),m(e,"alt",i=n[0].name)},m(s,l){S(s,e,l)},p(s,l){l&4&&!_n(e.src,t=s[2])&&m(e,"src",t),l&2&&m(e,"width",s[1]),l&2&&m(e,"height",s[1]),l&1&&i!==(i=s[0].name)&&m(e,"alt",i)},d(s){s&&w(e)}}}function OM(n){let e;function t(l,o){return l[2]?MM:CM}let i=t(n),s=i(n);return{c(){s.c(),e=we()},m(l,o){s.m(l,o),S(l,e,o)},p(l,[o]){i===(i=t(l))&&s?s.p(l,o):(s.d(1),s=i(l),s&&(s.c(),s.m(e.parentNode,e)))},i:te,o:te,d(l){s.d(l),l&&w(e)}}}function EM(n,e,t){let i,{file:s}=e,{size:l=50}=e;function o(){W.hasImageExtension(s==null?void 0:s.name)?W.generateThumb(s,l,l).then(r=>{t(2,i=r)}).catch(r=>{t(2,i=""),console.warn("Unable to generate thumb: ",r)}):t(2,i="")}return n.$$set=r=>{"file"in r&&t(0,s=r.file),"size"in r&&t(1,l=r.size)},n.$$.update=()=>{n.$$.dirty&1&&typeof s<"u"&&o()},t(2,i=""),[s,l,i]}class DM extends ve{constructor(e){super(),be(this,e,EM,OM,_e,{file:0,size:1})}}function Vp(n){let e;function t(l,o){return l[4]==="image"?IM:AM}let i=t(n),s=i(n);return{c(){s.c(),e=we()},m(l,o){s.m(l,o),S(l,e,o)},p(l,o){i===(i=t(l))&&s?s.p(l,o):(s.d(1),s=i(l),s&&(s.c(),s.m(e.parentNode,e)))},d(l){s.d(l),l&&w(e)}}}function AM(n){let e,t;return{c(){e=y("object"),t=Y("Cannot preview the file."),m(e,"title",n[2]),m(e,"data",n[1])},m(i,s){S(i,e,s),v(e,t)},p(i,s){s&4&&m(e,"title",i[2]),s&2&&m(e,"data",i[1])},d(i){i&&w(e)}}}function IM(n){let e,t,i;return{c(){e=y("img"),_n(e.src,t=n[1])||m(e,"src",t),m(e,"alt",i="Preview "+n[2])},m(s,l){S(s,e,l)},p(s,l){l&2&&!_n(e.src,t=s[1])&&m(e,"src",t),l&4&&i!==(i="Preview "+s[2])&&m(e,"alt",i)},d(s){s&&w(e)}}}function LM(n){var s;let e=(s=n[3])==null?void 0:s.isActive(),t,i=e&&Vp(n);return{c(){i&&i.c(),t=we()},m(l,o){i&&i.m(l,o),S(l,t,o)},p(l,o){var r;o&8&&(e=(r=l[3])==null?void 0:r.isActive()),e?i?i.p(l,o):(i=Vp(l),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null)},d(l){i&&i.d(l),l&&w(t)}}}function PM(n){let e,t,i;return{c(){e=y("button"),e.innerHTML='',m(e,"type","button"),m(e,"class","overlay-close")},m(s,l){S(s,e,l),t||(i=J(e,"click",xe(n[0])),t=!0)},p:te,d(s){s&&w(e),t=!1,i()}}}function NM(n){let e,t,i,s,l,o,r,a,u,f;return{c(){e=y("a"),t=Y(n[2]),i=D(),s=y("i"),l=D(),o=y("div"),r=D(),a=y("button"),a.textContent="Close",m(s,"class","ri-external-link-line"),m(e,"href",n[1]),m(e,"title",n[2]),m(e,"target","_blank"),m(e,"rel","noreferrer noopener"),m(e,"class","link-hint txt-ellipsis inline-flex"),m(o,"class","flex-fill"),m(a,"type","button"),m(a,"class","btn btn-transparent")},m(d,p){S(d,e,p),v(e,t),v(e,i),v(e,s),S(d,l,p),S(d,o,p),S(d,r,p),S(d,a,p),u||(f=J(a,"click",n[0]),u=!0)},p(d,p){p&4&&le(t,d[2]),p&2&&m(e,"href",d[1]),p&4&&m(e,"title",d[2])},d(d){d&&w(e),d&&w(l),d&&w(o),d&&w(r),d&&w(a),u=!1,f()}}}function FM(n){let e,t,i={class:"preview preview-"+n[4],btnClose:!1,popup:!0,$$slots:{footer:[NM],header:[PM],default:[LM]},$$scope:{ctx:n}};return e=new on({props:i}),n[7](e),e.$on("show",n[8]),e.$on("hide",n[9]),{c(){B(e.$$.fragment)},m(s,l){z(e,s,l),t=!0},p(s,[l]){const o={};l&16&&(o.class="preview preview-"+s[4]),l&1054&&(o.$$scope={dirty:l,ctx:s}),e.$set(o)},i(s){t||(I(e.$$.fragment,s),t=!0)},o(s){P(e.$$.fragment,s),t=!1},d(s){n[7](null),H(e,s)}}}function RM(n,e,t){let i,s,l,o,r="";function a(h){h!==""&&(t(1,r=h),o==null||o.show())}function u(){return o==null?void 0:o.hide()}function f(h){ne[h?"unshift":"push"](()=>{o=h,t(3,o)})}function d(h){he.call(this,n,h)}function p(h){he.call(this,n,h)}return n.$$.update=()=>{n.$$.dirty&2&&t(6,i=r.indexOf("?")),n.$$.dirty&66&&t(2,s=r.substring(r.lastIndexOf("/")+1,i>0?i:void 0)),n.$$.dirty&4&&t(4,l=W.getFileType(s))},[u,r,s,o,l,a,i,f,d,p]}class qM extends ve{constructor(e){super(),be(this,e,RM,FM,_e,{show:5,hide:0})}get show(){return this.$$.ctx[5]}get hide(){return this.$$.ctx[0]}}function jM(n){let e,t,i,s,l;function o(u,f){return u[3]==="image"?BM:u[3]==="video"||u[3]==="audio"?HM:zM}let r=o(n),a=r(n);return{c(){e=y("a"),a.c(),m(e,"draggable",!1),m(e,"class",t="thumb "+(n[1]?`thumb-${n[1]}`:"")),m(e,"href",n[6]),m(e,"target","_blank"),m(e,"rel","noreferrer"),m(e,"title",i=(n[7]?"Preview":"Download")+" "+n[0])},m(u,f){S(u,e,f),a.m(e,null),s||(l=J(e,"click",In(n[11])),s=!0)},p(u,f){r===(r=o(u))&&a?a.p(u,f):(a.d(1),a=r(u),a&&(a.c(),a.m(e,null))),f&2&&t!==(t="thumb "+(u[1]?`thumb-${u[1]}`:""))&&m(e,"class",t),f&64&&m(e,"href",u[6]),f&129&&i!==(i=(u[7]?"Preview":"Download")+" "+u[0])&&m(e,"title",i)},d(u){u&&w(e),a.d(),s=!1,l()}}}function VM(n){let e,t;return{c(){e=y("div"),m(e,"class",t="thumb "+(n[1]?`thumb-${n[1]}`:""))},m(i,s){S(i,e,s)},p(i,s){s&2&&t!==(t="thumb "+(i[1]?`thumb-${i[1]}`:""))&&m(e,"class",t)},d(i){i&&w(e)}}}function zM(n){let e;return{c(){e=y("i"),m(e,"class","ri-file-3-line")},m(t,i){S(t,e,i)},p:te,d(t){t&&w(e)}}}function HM(n){let e;return{c(){e=y("i"),m(e,"class","ri-video-line")},m(t,i){S(t,e,i)},p:te,d(t){t&&w(e)}}}function BM(n){let e,t,i,s,l;return{c(){e=y("img"),m(e,"draggable",!1),_n(e.src,t=n[5])||m(e,"src",t),m(e,"alt",n[0]),m(e,"title",i="Preview "+n[0])},m(o,r){S(o,e,r),s||(l=J(e,"error",n[8]),s=!0)},p(o,r){r&32&&!_n(e.src,t=o[5])&&m(e,"src",t),r&1&&m(e,"alt",o[0]),r&1&&i!==(i="Preview "+o[0])&&m(e,"title",i)},d(o){o&&w(e),s=!1,l()}}}function UM(n){let e,t,i;function s(a,u){return a[2]?VM:jM}let l=s(n),o=l(n),r={};return t=new qM({props:r}),n[12](t),{c(){o.c(),e=D(),B(t.$$.fragment)},m(a,u){o.m(a,u),S(a,e,u),z(t,a,u),i=!0},p(a,[u]){l===(l=s(a))&&o?o.p(a,u):(o.d(1),o=l(a),o&&(o.c(),o.m(e.parentNode,e)));const f={};t.$set(f)},i(a){i||(I(t.$$.fragment,a),i=!0)},o(a){P(t.$$.fragment,a),i=!1},d(a){o.d(a),a&&w(e),n[12](null),H(t,a)}}}function WM(n,e,t){let i,s,{record:l=null}=e,{filename:o=""}=e,{size:r=""}=e,a,u="",f="",d="",p=!1;h();async function h(){t(2,p=!0);try{t(10,d=await de.getAdminFileToken(l.collectionId))}catch(k){console.warn("File token failure:",k)}t(2,p=!1)}function g(){t(5,u="")}const _=k=>{s&&(k.preventDefault(),a==null||a.show(f))};function b(k){ne[k?"unshift":"push"](()=>{a=k,t(4,a)})}return n.$$set=k=>{"record"in k&&t(9,l=k.record),"filename"in k&&t(0,o=k.filename),"size"in k&&t(1,r=k.size)},n.$$.update=()=>{n.$$.dirty&1&&t(3,i=W.getFileType(o)),n.$$.dirty&9&&t(7,s=["image","audio","video"].includes(i)||o.endsWith(".pdf")),n.$$.dirty&1541&&t(6,f=p?"":de.files.getUrl(l,o,{token:d})),n.$$.dirty&1541&&t(5,u=p?"":de.files.getUrl(l,o,{thumb:"100x100",token:d}))},[o,r,p,i,a,u,f,s,g,l,d,_,b]}class pu extends ve{constructor(e){super(),be(this,e,WM,UM,_e,{record:9,filename:0,size:1})}}function zp(n,e,t){const i=n.slice();return i[29]=e[t],i[31]=t,i}function Hp(n,e,t){const i=n.slice();i[34]=e[t],i[31]=t;const s=i[2].includes(i[34]);return i[35]=s,i}function YM(n){let e,t,i;function s(){return n[17](n[34])}return{c(){e=y("button"),e.innerHTML='',m(e,"type","button"),m(e,"class","btn btn-transparent btn-hint btn-sm btn-circle btn-remove")},m(l,o){S(l,e,o),t||(i=[Ee(Be.call(null,e,"Remove file")),J(e,"click",s)],t=!0)},p(l,o){n=l},d(l){l&&w(e),t=!1,De(i)}}}function KM(n){let e,t,i;function s(){return n[16](n[34])}return{c(){e=y("button"),e.innerHTML='Restore',m(e,"type","button"),m(e,"class","btn btn-sm btn-danger btn-transparent")},m(l,o){S(l,e,o),t||(i=J(e,"click",s),t=!0)},p(l,o){n=l},d(l){l&&w(e),t=!1,i()}}}function JM(n){let e,t,i,s,l,o,r=n[34]+"",a,u,f,d,p,h;i=new pu({props:{record:n[3],filename:n[34]}});function g(k,$){return k[35]?KM:YM}let _=g(n),b=_(n);return{c(){e=y("div"),t=y("div"),B(i.$$.fragment),s=D(),l=y("div"),o=y("a"),a=Y(r),d=D(),p=y("div"),b.c(),Q(t,"fade",n[35]),m(o,"draggable",!1),m(o,"href",u=de.files.getUrl(n[3],n[34],{token:n[10]})),m(o,"class",f="txt-ellipsis "+(n[35]?"txt-strikethrough txt-hint":"link-primary")),m(o,"title","Download"),m(o,"target","_blank"),m(o,"rel","noopener noreferrer"),m(l,"class","content"),m(p,"class","actions"),m(e,"class","list-item"),Q(e,"dragging",n[32]),Q(e,"dragover",n[33])},m(k,$){S(k,e,$),v(e,t),z(i,t,null),v(e,s),v(e,l),v(l,o),v(o,a),v(e,d),v(e,p),b.m(p,null),h=!0},p(k,$){const C={};$[0]&8&&(C.record=k[3]),$[0]&32&&(C.filename=k[34]),i.$set(C),(!h||$[0]&36)&&Q(t,"fade",k[35]),(!h||$[0]&32)&&r!==(r=k[34]+"")&&le(a,r),(!h||$[0]&1064&&u!==(u=de.files.getUrl(k[3],k[34],{token:k[10]})))&&m(o,"href",u),(!h||$[0]&36&&f!==(f="txt-ellipsis "+(k[35]?"txt-strikethrough txt-hint":"link-primary")))&&m(o,"class",f),_===(_=g(k))&&b?b.p(k,$):(b.d(1),b=_(k),b&&(b.c(),b.m(p,null))),(!h||$[1]&2)&&Q(e,"dragging",k[32]),(!h||$[1]&4)&&Q(e,"dragover",k[33])},i(k){h||(I(i.$$.fragment,k),h=!0)},o(k){P(i.$$.fragment,k),h=!1},d(k){k&&w(e),H(i),b.d()}}}function Bp(n,e){let t,i,s,l;function o(a){e[18](a)}let r={group:e[4].name+"_uploaded",index:e[31],disabled:!e[6],$$slots:{default:[JM,({dragging:a,dragover:u})=>({32:a,33:u}),({dragging:a,dragover:u})=>[0,(a?2:0)|(u?4:0)]]},$$scope:{ctx:e}};return e[0]!==void 0&&(r.list=e[0]),i=new nr({props:r}),ne.push(()=>pe(i,"list",o)),{key:n,first:null,c(){t=we(),B(i.$$.fragment),this.first=t},m(a,u){S(a,t,u),z(i,a,u),l=!0},p(a,u){e=a;const f={};u[0]&16&&(f.group=e[4].name+"_uploaded"),u[0]&32&&(f.index=e[31]),u[0]&64&&(f.disabled=!e[6]),u[0]&1068|u[1]&70&&(f.$$scope={dirty:u,ctx:e}),!s&&u[0]&1&&(s=!0,f.list=e[0],ge(()=>s=!1)),i.$set(f)},i(a){l||(I(i.$$.fragment,a),l=!0)},o(a){P(i.$$.fragment,a),l=!1},d(a){a&&w(t),H(i,a)}}}function ZM(n){let e,t,i,s,l,o,r,a,u=n[29].name+"",f,d,p,h,g,_,b;i=new DM({props:{file:n[29]}});function k(){return n[19](n[31])}return{c(){e=y("div"),t=y("figure"),B(i.$$.fragment),s=D(),l=y("div"),o=y("small"),o.textContent="New",r=D(),a=y("span"),f=Y(u),p=D(),h=y("button"),h.innerHTML='',m(t,"class","thumb"),m(o,"class","label label-success m-r-5"),m(a,"class","txt"),m(l,"class","filename m-r-auto"),m(l,"title",d=n[29].name),m(h,"type","button"),m(h,"class","btn btn-transparent btn-hint btn-sm btn-circle btn-remove"),m(e,"class","list-item"),Q(e,"dragging",n[32]),Q(e,"dragover",n[33])},m($,C){S($,e,C),v(e,t),z(i,t,null),v(e,s),v(e,l),v(l,o),v(l,r),v(l,a),v(a,f),v(e,p),v(e,h),g=!0,_||(b=[Ee(Be.call(null,h,"Remove file")),J(h,"click",k)],_=!0)},p($,C){n=$;const T={};C[0]&2&&(T.file=n[29]),i.$set(T),(!g||C[0]&2)&&u!==(u=n[29].name+"")&&le(f,u),(!g||C[0]&2&&d!==(d=n[29].name))&&m(l,"title",d),(!g||C[1]&2)&&Q(e,"dragging",n[32]),(!g||C[1]&4)&&Q(e,"dragover",n[33])},i($){g||(I(i.$$.fragment,$),g=!0)},o($){P(i.$$.fragment,$),g=!1},d($){$&&w(e),H(i),_=!1,De(b)}}}function Up(n){let e,t,i;function s(o){n[20](o)}let l={group:n[4].name+"_new",index:n[31],disabled:!n[6],$$slots:{default:[ZM,({dragging:o,dragover:r})=>({32:o,33:r}),({dragging:o,dragover:r})=>[0,(o?2:0)|(r?4:0)]]},$$scope:{ctx:n}};return n[1]!==void 0&&(l.list=n[1]),e=new nr({props:l}),ne.push(()=>pe(e,"list",s)),{c(){B(e.$$.fragment)},m(o,r){z(e,o,r),i=!0},p(o,r){const a={};r[0]&16&&(a.group=o[4].name+"_new"),r[0]&64&&(a.disabled=!o[6]),r[0]&2|r[1]&70&&(a.$$scope={dirty:r,ctx:o}),!t&&r[0]&2&&(t=!0,a.list=o[1],ge(()=>t=!1)),e.$set(a)},i(o){i||(I(e.$$.fragment,o),i=!0)},o(o){P(e.$$.fragment,o),i=!1},d(o){H(e,o)}}}function GM(n){let e,t,i,s,l,o=n[4].name+"",r,a,u,f,d=[],p=new Map,h,g,_,b,k,$,C,T,O,M,E,A,L,N=n[5];const q=j=>j[34]+j[3].id;for(let j=0;jP(R[j],1,1,()=>{R[j]=null});return{c(){var j,U;e=y("label"),t=y("i"),s=D(),l=y("span"),r=Y(o),u=D(),f=y("div");for(let x=0;x{M[N]=null}),fe(),o=M[l],o?o.p(A,L):(o=M[l]=O[l](A),o.c()),I(o,1),o.m(r.parentNode,r))},i(A){$||(I(o),$=!0)},o(A){P(o),$=!1},d(A){A&&w(e),A&&w(s),M[l].d(A),A&&w(r),A&&w(a),C=!1,De(T)}}}function zD(n){let e,t,i,s,l,o;return e=new me({props:{class:"form-field required",name:n[1]+".subject",$$slots:{default:[FD,({uniqueId:r})=>({31:r}),({uniqueId:r})=>[0,r?1:0]]},$$scope:{ctx:n}}}),i=new me({props:{class:"form-field required",name:n[1]+".actionUrl",$$slots:{default:[RD,({uniqueId:r})=>({31:r}),({uniqueId:r})=>[0,r?1:0]]},$$scope:{ctx:n}}}),l=new me({props:{class:"form-field m-0 required",name:n[1]+".body",$$slots:{default:[VD,({uniqueId:r})=>({31:r}),({uniqueId:r})=>[0,r?1:0]]},$$scope:{ctx:n}}}),{c(){B(e.$$.fragment),t=D(),B(i.$$.fragment),s=D(),B(l.$$.fragment)},m(r,a){z(e,r,a),S(r,t,a),z(i,r,a),S(r,s,a),z(l,r,a),o=!0},p(r,a){const u={};a[0]&2&&(u.name=r[1]+".subject"),a[0]&1|a[1]&3&&(u.$$scope={dirty:a,ctx:r}),e.$set(u);const f={};a[0]&2&&(f.name=r[1]+".actionUrl"),a[0]&1|a[1]&3&&(f.$$scope={dirty:a,ctx:r}),i.$set(f);const d={};a[0]&2&&(d.name=r[1]+".body"),a[0]&49|a[1]&3&&(d.$$scope={dirty:a,ctx:r}),l.$set(d)},i(r){o||(I(e.$$.fragment,r),I(i.$$.fragment,r),I(l.$$.fragment,r),o=!0)},o(r){P(e.$$.fragment,r),P(i.$$.fragment,r),P(l.$$.fragment,r),o=!1},d(r){H(e,r),r&&w(t),H(i,r),r&&w(s),H(l,r)}}}function Ih(n){let e,t,i,s,l;return{c(){e=y("i"),m(e,"class","ri-error-warning-fill txt-danger")},m(o,r){S(o,e,r),i=!0,s||(l=Ee(Be.call(null,e,{text:"Has errors",position:"left"})),s=!0)},i(o){i||(o&&et(()=>{i&&(t||(t=Ve(e,Jt,{duration:150,start:.7},!0)),t.run(1))}),i=!0)},o(o){o&&(t||(t=Ve(e,Jt,{duration:150,start:.7},!1)),t.run(0)),i=!1},d(o){o&&w(e),o&&t&&t.end(),s=!1,l()}}}function HD(n){let e,t,i,s,l,o,r,a,u,f=n[6]&&Ih();return{c(){e=y("div"),t=y("i"),i=D(),s=y("span"),l=Y(n[2]),o=D(),r=y("div"),a=D(),f&&f.c(),u=we(),m(t,"class","ri-draft-line"),m(s,"class","txt"),m(e,"class","inline-flex"),m(r,"class","flex-fill")},m(d,p){S(d,e,p),v(e,t),v(e,i),v(e,s),v(s,l),S(d,o,p),S(d,r,p),S(d,a,p),f&&f.m(d,p),S(d,u,p)},p(d,p){p[0]&4&&le(l,d[2]),d[6]?f?p[0]&64&&I(f,1):(f=Ih(),f.c(),I(f,1),f.m(u.parentNode,u)):f&&(ue(),P(f,1,1,()=>{f=null}),fe())},d(d){d&&w(e),d&&w(o),d&&w(r),d&&w(a),f&&f.d(d),d&&w(u)}}}function BD(n){let e,t;const i=[n[8]];let s={$$slots:{header:[HD],default:[zD]},$$scope:{ctx:n}};for(let l=0;lt(12,o=Z));let{key:r}=e,{title:a}=e,{config:u={}}=e,f,d=Lh,p=!1;function h(){f==null||f.expand()}function g(){f==null||f.collapse()}function _(){f==null||f.collapseSiblings()}async function b(){d||p||(t(5,p=!0),t(4,d=(await ut(()=>import("./CodeEditor-ad47c205.js"),["./CodeEditor-ad47c205.js","./index-84ab2e4b.js"],import.meta.url)).default),Lh=d,t(5,p=!1))}function k(Z){W.copyToClipboard(Z),yo(`Copied ${Z} to clipboard`,2e3)}b();function $(){u.subject=this.value,t(0,u)}const C=()=>k("{APP_NAME}"),T=()=>k("{APP_URL}");function O(){u.actionUrl=this.value,t(0,u)}const M=()=>k("{APP_NAME}"),E=()=>k("{APP_URL}"),A=()=>k("{TOKEN}");function L(Z){n.$$.not_equal(u.body,Z)&&(u.body=Z,t(0,u))}function N(){u.body=this.value,t(0,u)}const q=()=>k("{APP_NAME}"),F=()=>k("{APP_URL}"),R=()=>k("{TOKEN}"),V=()=>k("{ACTION_URL}");function j(Z){ne[Z?"unshift":"push"](()=>{f=Z,t(3,f)})}function U(Z){he.call(this,n,Z)}function x(Z){he.call(this,n,Z)}function X(Z){he.call(this,n,Z)}return n.$$set=Z=>{e=je(je({},e),Gt(Z)),t(8,l=tt(e,s)),"key"in Z&&t(1,r=Z.key),"title"in Z&&t(2,a=Z.title),"config"in Z&&t(0,u=Z.config)},n.$$.update=()=>{n.$$.dirty[0]&4098&&t(6,i=!W.isEmpty(W.getNestedVal(o,r))),n.$$.dirty[0]&3&&(u.enabled||ui(r))},[u,r,a,f,d,p,i,k,l,h,g,_,o,$,C,T,O,M,E,A,L,N,q,F,R,V,j,U,x,X]}class jr extends ve{constructor(e){super(),be(this,e,UD,BD,_e,{key:1,title:2,config:0,expand:9,collapse:10,collapseSiblings:11},null,[-1,-1])}get expand(){return this.$$.ctx[9]}get collapse(){return this.$$.ctx[10]}get collapseSiblings(){return this.$$.ctx[11]}}function Ph(n,e,t){const i=n.slice();return i[21]=e[t],i}function Nh(n,e){let t,i,s,l,o,r=e[21].label+"",a,u,f,d,p,h;return d=Y1(e[11][0]),{key:n,first:null,c(){t=y("div"),i=y("input"),l=D(),o=y("label"),a=Y(r),f=D(),m(i,"type","radio"),m(i,"name","template"),m(i,"id",s=e[20]+e[21].value),i.__value=e[21].value,i.value=i.__value,m(o,"for",u=e[20]+e[21].value),m(t,"class","form-field-block"),d.p(i),this.first=t},m(g,_){S(g,t,_),v(t,i),i.checked=i.__value===e[2],v(t,l),v(t,o),v(o,a),v(t,f),p||(h=J(i,"change",e[10]),p=!0)},p(g,_){e=g,_&1048576&&s!==(s=e[20]+e[21].value)&&m(i,"id",s),_&4&&(i.checked=i.__value===e[2]),_&1048576&&u!==(u=e[20]+e[21].value)&&m(o,"for",u)},d(g){g&&w(t),d.r(),p=!1,h()}}}function WD(n){let e=[],t=new Map,i,s=n[7];const l=o=>o[21].value;for(let o=0;o({20:a}),({uniqueId:a})=>a?1048576:0]},$$scope:{ctx:n}}}),s=new me({props:{class:"form-field required m-0",name:"email",$$slots:{default:[YD,({uniqueId:a})=>({20:a}),({uniqueId:a})=>a?1048576:0]},$$scope:{ctx:n}}}),{c(){e=y("form"),B(t.$$.fragment),i=D(),B(s.$$.fragment),m(e,"id",n[6]),m(e,"autocomplete","off")},m(a,u){S(a,e,u),z(t,e,null),v(e,i),z(s,e,null),l=!0,o||(r=J(e,"submit",xe(n[13])),o=!0)},p(a,u){const f={};u&17825796&&(f.$$scope={dirty:u,ctx:a}),t.$set(f);const d={};u&17825794&&(d.$$scope={dirty:u,ctx:a}),s.$set(d)},i(a){l||(I(t.$$.fragment,a),I(s.$$.fragment,a),l=!0)},o(a){P(t.$$.fragment,a),P(s.$$.fragment,a),l=!1},d(a){a&&w(e),H(t),H(s),o=!1,r()}}}function JD(n){let e;return{c(){e=y("h4"),e.textContent="Send test email",m(e,"class","center txt-break")},m(t,i){S(t,e,i)},p:te,d(t){t&&w(e)}}}function ZD(n){let e,t,i,s,l,o,r,a,u,f;return{c(){e=y("button"),t=Y("Close"),i=D(),s=y("button"),l=y("i"),o=D(),r=y("span"),r.textContent="Send",m(e,"type","button"),m(e,"class","btn btn-transparent"),e.disabled=n[4],m(l,"class","ri-mail-send-line"),m(r,"class","txt"),m(s,"type","submit"),m(s,"form",n[6]),m(s,"class","btn btn-expanded"),s.disabled=a=!n[5]||n[4],Q(s,"btn-loading",n[4])},m(d,p){S(d,e,p),v(e,t),S(d,i,p),S(d,s,p),v(s,l),v(s,o),v(s,r),u||(f=J(e,"click",n[0]),u=!0)},p(d,p){p&16&&(e.disabled=d[4]),p&48&&a!==(a=!d[5]||d[4])&&(s.disabled=a),p&16&&Q(s,"btn-loading",d[4])},d(d){d&&w(e),d&&w(i),d&&w(s),u=!1,f()}}}function GD(n){let e,t,i={class:"overlay-panel-sm email-test-popup",overlayClose:!n[4],escClose:!n[4],beforeHide:n[14],popup:!0,$$slots:{footer:[ZD],header:[JD],default:[KD]},$$scope:{ctx:n}};return e=new on({props:i}),n[15](e),e.$on("show",n[16]),e.$on("hide",n[17]),{c(){B(e.$$.fragment)},m(s,l){z(e,s,l),t=!0},p(s,[l]){const o={};l&16&&(o.overlayClose=!s[4]),l&16&&(o.escClose=!s[4]),l&16&&(o.beforeHide=s[14]),l&16777270&&(o.$$scope={dirty:l,ctx:s}),e.$set(o)},i(s){t||(I(e.$$.fragment,s),t=!0)},o(s){P(e.$$.fragment,s),t=!1},d(s){n[15](null),H(e,s)}}}const Vr="last_email_test",Fh="email_test_request";function XD(n,e,t){let i;const s=Tt(),l="email_test_"+W.randomString(5),o=[{label:'"Verification" template',value:"verification"},{label:'"Password reset" template',value:"password-reset"},{label:'"Confirm email change" template',value:"email-change"}];let r,a=localStorage.getItem(Vr),u=o[0].value,f=!1,d=null;function p(E="",A=""){t(1,a=E||localStorage.getItem(Vr)),t(2,u=A||o[0].value),tn({}),r==null||r.show()}function h(){return clearTimeout(d),r==null?void 0:r.hide()}async function g(){if(!(!i||f)){t(4,f=!0),localStorage==null||localStorage.setItem(Vr,a),clearTimeout(d),d=setTimeout(()=>{de.cancelRequest(Fh),As("Test email send timeout.")},3e4);try{await de.settings.testEmail(a,u,{$cancelKey:Fh}),Ht("Successfully sent test email."),s("submit"),t(4,f=!1),await cn(),h()}catch(E){t(4,f=!1),de.error(E)}clearTimeout(d)}}const _=[[]];function b(){u=this.__value,t(2,u)}function k(){a=this.value,t(1,a)}const $=()=>g(),C=()=>!f;function T(E){ne[E?"unshift":"push"](()=>{r=E,t(3,r)})}function O(E){he.call(this,n,E)}function M(E){he.call(this,n,E)}return n.$$.update=()=>{n.$$.dirty&6&&t(5,i=!!a&&!!u)},[h,a,u,r,f,i,l,o,g,p,b,_,k,$,C,T,O,M]}class QD extends ve{constructor(e){super(),be(this,e,XD,GD,_e,{show:9,hide:0})}get show(){return this.$$.ctx[9]}get hide(){return this.$$.ctx[0]}}function xD(n){let e,t,i,s,l,o,r,a,u,f,d,p,h,g,_,b,k,$,C,T,O,M,E,A,L,N;i=new me({props:{class:"form-field required",name:"meta.senderName",$$slots:{default:[tA,({uniqueId:ee})=>({31:ee}),({uniqueId:ee})=>[0,ee?1:0]]},$$scope:{ctx:n}}}),o=new me({props:{class:"form-field required",name:"meta.senderAddress",$$slots:{default:[nA,({uniqueId:ee})=>({31:ee}),({uniqueId:ee})=>[0,ee?1:0]]},$$scope:{ctx:n}}});function q(ee){n[14](ee)}let F={single:!0,key:"meta.verificationTemplate",title:'Default "Verification" email template'};n[0].meta.verificationTemplate!==void 0&&(F.config=n[0].meta.verificationTemplate),u=new jr({props:F}),ne.push(()=>pe(u,"config",q));function R(ee){n[15](ee)}let V={single:!0,key:"meta.resetPasswordTemplate",title:'Default "Password reset" email template'};n[0].meta.resetPasswordTemplate!==void 0&&(V.config=n[0].meta.resetPasswordTemplate),p=new jr({props:V}),ne.push(()=>pe(p,"config",R));function j(ee){n[16](ee)}let U={single:!0,key:"meta.confirmEmailChangeTemplate",title:'Default "Confirm email change" email template'};n[0].meta.confirmEmailChangeTemplate!==void 0&&(U.config=n[0].meta.confirmEmailChangeTemplate),_=new jr({props:U}),ne.push(()=>pe(_,"config",j)),T=new me({props:{class:"form-field form-field-toggle m-b-sm",$$slots:{default:[iA,({uniqueId:ee})=>({31:ee}),({uniqueId:ee})=>[0,ee?1:0]]},$$scope:{ctx:n}}});let x=n[0].smtp.enabled&&Rh(n);function X(ee,se){return ee[4]?cA:fA}let Z=X(n),oe=Z(n);return{c(){e=y("div"),t=y("div"),B(i.$$.fragment),s=D(),l=y("div"),B(o.$$.fragment),r=D(),a=y("div"),B(u.$$.fragment),d=D(),B(p.$$.fragment),g=D(),B(_.$$.fragment),k=D(),$=y("hr"),C=D(),B(T.$$.fragment),O=D(),x&&x.c(),M=D(),E=y("div"),A=y("div"),L=D(),oe.c(),m(t,"class","col-lg-6"),m(l,"class","col-lg-6"),m(e,"class","grid m-b-base"),m(a,"class","accordions"),m(A,"class","flex-fill"),m(E,"class","flex")},m(ee,se){S(ee,e,se),v(e,t),z(i,t,null),v(e,s),v(e,l),z(o,l,null),S(ee,r,se),S(ee,a,se),z(u,a,null),v(a,d),z(p,a,null),v(a,g),z(_,a,null),S(ee,k,se),S(ee,$,se),S(ee,C,se),z(T,ee,se),S(ee,O,se),x&&x.m(ee,se),S(ee,M,se),S(ee,E,se),v(E,A),v(E,L),oe.m(E,null),N=!0},p(ee,se){const ye={};se[0]&1|se[1]&3&&(ye.$$scope={dirty:se,ctx:ee}),i.$set(ye);const $e={};se[0]&1|se[1]&3&&($e.$$scope={dirty:se,ctx:ee}),o.$set($e);const ze={};!f&&se[0]&1&&(f=!0,ze.config=ee[0].meta.verificationTemplate,ge(()=>f=!1)),u.$set(ze);const Ue={};!h&&se[0]&1&&(h=!0,Ue.config=ee[0].meta.resetPasswordTemplate,ge(()=>h=!1)),p.$set(Ue);const Se={};!b&&se[0]&1&&(b=!0,Se.config=ee[0].meta.confirmEmailChangeTemplate,ge(()=>b=!1)),_.$set(Se);const Oe={};se[0]&1|se[1]&3&&(Oe.$$scope={dirty:se,ctx:ee}),T.$set(Oe),ee[0].smtp.enabled?x?(x.p(ee,se),se[0]&1&&I(x,1)):(x=Rh(ee),x.c(),I(x,1),x.m(M.parentNode,M)):x&&(ue(),P(x,1,1,()=>{x=null}),fe()),Z===(Z=X(ee))&&oe?oe.p(ee,se):(oe.d(1),oe=Z(ee),oe&&(oe.c(),oe.m(E,null)))},i(ee){N||(I(i.$$.fragment,ee),I(o.$$.fragment,ee),I(u.$$.fragment,ee),I(p.$$.fragment,ee),I(_.$$.fragment,ee),I(T.$$.fragment,ee),I(x),N=!0)},o(ee){P(i.$$.fragment,ee),P(o.$$.fragment,ee),P(u.$$.fragment,ee),P(p.$$.fragment,ee),P(_.$$.fragment,ee),P(T.$$.fragment,ee),P(x),N=!1},d(ee){ee&&w(e),H(i),H(o),ee&&w(r),ee&&w(a),H(u),H(p),H(_),ee&&w(k),ee&&w($),ee&&w(C),H(T,ee),ee&&w(O),x&&x.d(ee),ee&&w(M),ee&&w(E),oe.d()}}}function eA(n){let e;return{c(){e=y("div"),m(e,"class","loader")},m(t,i){S(t,e,i)},p:te,i:te,o:te,d(t){t&&w(e)}}}function tA(n){let e,t,i,s,l,o,r,a;return{c(){e=y("label"),t=Y("Sender name"),s=D(),l=y("input"),m(e,"for",i=n[31]),m(l,"type","text"),m(l,"id",o=n[31]),l.required=!0},m(u,f){S(u,e,f),v(e,t),S(u,s,f),S(u,l,f),ae(l,n[0].meta.senderName),r||(a=J(l,"input",n[12]),r=!0)},p(u,f){f[1]&1&&i!==(i=u[31])&&m(e,"for",i),f[1]&1&&o!==(o=u[31])&&m(l,"id",o),f[0]&1&&l.value!==u[0].meta.senderName&&ae(l,u[0].meta.senderName)},d(u){u&&w(e),u&&w(s),u&&w(l),r=!1,a()}}}function nA(n){let e,t,i,s,l,o,r,a;return{c(){e=y("label"),t=Y("Sender address"),s=D(),l=y("input"),m(e,"for",i=n[31]),m(l,"type","email"),m(l,"id",o=n[31]),l.required=!0},m(u,f){S(u,e,f),v(e,t),S(u,s,f),S(u,l,f),ae(l,n[0].meta.senderAddress),r||(a=J(l,"input",n[13]),r=!0)},p(u,f){f[1]&1&&i!==(i=u[31])&&m(e,"for",i),f[1]&1&&o!==(o=u[31])&&m(l,"id",o),f[0]&1&&l.value!==u[0].meta.senderAddress&&ae(l,u[0].meta.senderAddress)},d(u){u&&w(e),u&&w(s),u&&w(l),r=!1,a()}}}function iA(n){let e,t,i,s,l,o,r,a,u,f;return{c(){e=y("input"),i=D(),s=y("label"),l=y("span"),l.innerHTML="Use SMTP mail server (recommended)",o=D(),r=y("i"),m(e,"type","checkbox"),m(e,"id",t=n[31]),e.required=!0,m(l,"class","txt"),m(r,"class","ri-information-line link-hint"),m(s,"for",a=n[31])},m(d,p){S(d,e,p),e.checked=n[0].smtp.enabled,S(d,i,p),S(d,s,p),v(s,l),v(s,o),v(s,r),u||(f=[J(e,"change",n[17]),Ee(Be.call(null,r,{text:'By default PocketBase uses the unix "sendmail" command for sending emails. For better emails deliverability it is recommended to use a SMTP mail server.',position:"top"}))],u=!0)},p(d,p){p[1]&1&&t!==(t=d[31])&&m(e,"id",t),p[0]&1&&(e.checked=d[0].smtp.enabled),p[1]&1&&a!==(a=d[31])&&m(s,"for",a)},d(d){d&&w(e),d&&w(i),d&&w(s),u=!1,De(f)}}}function Rh(n){let e,t,i,s,l,o,r,a,u,f,d,p,h,g,_,b,k,$,C,T,O,M;return i=new me({props:{class:"form-field required",name:"smtp.host",$$slots:{default:[sA,({uniqueId:E})=>({31:E}),({uniqueId:E})=>[0,E?1:0]]},$$scope:{ctx:n}}}),o=new me({props:{class:"form-field required",name:"smtp.port",$$slots:{default:[lA,({uniqueId:E})=>({31:E}),({uniqueId:E})=>[0,E?1:0]]},$$scope:{ctx:n}}}),u=new me({props:{class:"form-field required",name:"smtp.tls",$$slots:{default:[oA,({uniqueId:E})=>({31:E}),({uniqueId:E})=>[0,E?1:0]]},$$scope:{ctx:n}}}),p=new me({props:{class:"form-field",name:"smtp.authMethod",$$slots:{default:[rA,({uniqueId:E})=>({31:E}),({uniqueId:E})=>[0,E?1:0]]},$$scope:{ctx:n}}}),_=new me({props:{class:"form-field",name:"smtp.username",$$slots:{default:[aA,({uniqueId:E})=>({31:E}),({uniqueId:E})=>[0,E?1:0]]},$$scope:{ctx:n}}}),$=new me({props:{class:"form-field",name:"smtp.password",$$slots:{default:[uA,({uniqueId:E})=>({31:E}),({uniqueId:E})=>[0,E?1:0]]},$$scope:{ctx:n}}}),{c(){e=y("div"),t=y("div"),B(i.$$.fragment),s=D(),l=y("div"),B(o.$$.fragment),r=D(),a=y("div"),B(u.$$.fragment),f=D(),d=y("div"),B(p.$$.fragment),h=D(),g=y("div"),B(_.$$.fragment),b=D(),k=y("div"),B($.$$.fragment),C=D(),T=y("div"),m(t,"class","col-lg-4"),m(l,"class","col-lg-2"),m(a,"class","col-lg-3"),m(d,"class","col-lg-3"),m(g,"class","col-lg-6"),m(k,"class","col-lg-6"),m(T,"class","col-lg-12"),m(e,"class","grid")},m(E,A){S(E,e,A),v(e,t),z(i,t,null),v(e,s),v(e,l),z(o,l,null),v(e,r),v(e,a),z(u,a,null),v(e,f),v(e,d),z(p,d,null),v(e,h),v(e,g),z(_,g,null),v(e,b),v(e,k),z($,k,null),v(e,C),v(e,T),M=!0},p(E,A){const L={};A[0]&1|A[1]&3&&(L.$$scope={dirty:A,ctx:E}),i.$set(L);const N={};A[0]&1|A[1]&3&&(N.$$scope={dirty:A,ctx:E}),o.$set(N);const q={};A[0]&1|A[1]&3&&(q.$$scope={dirty:A,ctx:E}),u.$set(q);const F={};A[0]&1|A[1]&3&&(F.$$scope={dirty:A,ctx:E}),p.$set(F);const R={};A[0]&1|A[1]&3&&(R.$$scope={dirty:A,ctx:E}),_.$set(R);const V={};A[0]&1|A[1]&3&&(V.$$scope={dirty:A,ctx:E}),$.$set(V)},i(E){M||(I(i.$$.fragment,E),I(o.$$.fragment,E),I(u.$$.fragment,E),I(p.$$.fragment,E),I(_.$$.fragment,E),I($.$$.fragment,E),E&&et(()=>{M&&(O||(O=Ve(e,rt,{duration:150},!0)),O.run(1))}),M=!0)},o(E){P(i.$$.fragment,E),P(o.$$.fragment,E),P(u.$$.fragment,E),P(p.$$.fragment,E),P(_.$$.fragment,E),P($.$$.fragment,E),E&&(O||(O=Ve(e,rt,{duration:150},!1)),O.run(0)),M=!1},d(E){E&&w(e),H(i),H(o),H(u),H(p),H(_),H($),E&&O&&O.end()}}}function sA(n){let e,t,i,s,l,o,r,a;return{c(){e=y("label"),t=Y("SMTP server host"),s=D(),l=y("input"),m(e,"for",i=n[31]),m(l,"type","text"),m(l,"id",o=n[31]),l.required=!0},m(u,f){S(u,e,f),v(e,t),S(u,s,f),S(u,l,f),ae(l,n[0].smtp.host),r||(a=J(l,"input",n[18]),r=!0)},p(u,f){f[1]&1&&i!==(i=u[31])&&m(e,"for",i),f[1]&1&&o!==(o=u[31])&&m(l,"id",o),f[0]&1&&l.value!==u[0].smtp.host&&ae(l,u[0].smtp.host)},d(u){u&&w(e),u&&w(s),u&&w(l),r=!1,a()}}}function lA(n){let e,t,i,s,l,o,r,a;return{c(){e=y("label"),t=Y("Port"),s=D(),l=y("input"),m(e,"for",i=n[31]),m(l,"type","number"),m(l,"id",o=n[31]),l.required=!0},m(u,f){S(u,e,f),v(e,t),S(u,s,f),S(u,l,f),ae(l,n[0].smtp.port),r||(a=J(l,"input",n[19]),r=!0)},p(u,f){f[1]&1&&i!==(i=u[31])&&m(e,"for",i),f[1]&1&&o!==(o=u[31])&&m(l,"id",o),f[0]&1&&mt(l.value)!==u[0].smtp.port&&ae(l,u[0].smtp.port)},d(u){u&&w(e),u&&w(s),u&&w(l),r=!1,a()}}}function oA(n){let e,t,i,s,l,o,r;function a(f){n[20](f)}let u={id:n[31],items:n[6]};return n[0].smtp.tls!==void 0&&(u.keyOfSelected=n[0].smtp.tls),l=new Bi({props:u}),ne.push(()=>pe(l,"keyOfSelected",a)),{c(){e=y("label"),t=Y("TLS encryption"),s=D(),B(l.$$.fragment),m(e,"for",i=n[31])},m(f,d){S(f,e,d),v(e,t),S(f,s,d),z(l,f,d),r=!0},p(f,d){(!r||d[1]&1&&i!==(i=f[31]))&&m(e,"for",i);const p={};d[1]&1&&(p.id=f[31]),!o&&d[0]&1&&(o=!0,p.keyOfSelected=f[0].smtp.tls,ge(()=>o=!1)),l.$set(p)},i(f){r||(I(l.$$.fragment,f),r=!0)},o(f){P(l.$$.fragment,f),r=!1},d(f){f&&w(e),f&&w(s),H(l,f)}}}function rA(n){let e,t,i,s,l,o,r;function a(f){n[21](f)}let u={id:n[31],items:n[7]};return n[0].smtp.authMethod!==void 0&&(u.keyOfSelected=n[0].smtp.authMethod),l=new Bi({props:u}),ne.push(()=>pe(l,"keyOfSelected",a)),{c(){e=y("label"),t=Y("AUTH method"),s=D(),B(l.$$.fragment),m(e,"for",i=n[31])},m(f,d){S(f,e,d),v(e,t),S(f,s,d),z(l,f,d),r=!0},p(f,d){(!r||d[1]&1&&i!==(i=f[31]))&&m(e,"for",i);const p={};d[1]&1&&(p.id=f[31]),!o&&d[0]&1&&(o=!0,p.keyOfSelected=f[0].smtp.authMethod,ge(()=>o=!1)),l.$set(p)},i(f){r||(I(l.$$.fragment,f),r=!0)},o(f){P(l.$$.fragment,f),r=!1},d(f){f&&w(e),f&&w(s),H(l,f)}}}function aA(n){let e,t,i,s,l,o,r,a;return{c(){e=y("label"),t=Y("Username"),s=D(),l=y("input"),m(e,"for",i=n[31]),m(l,"type","text"),m(l,"id",o=n[31])},m(u,f){S(u,e,f),v(e,t),S(u,s,f),S(u,l,f),ae(l,n[0].smtp.username),r||(a=J(l,"input",n[22]),r=!0)},p(u,f){f[1]&1&&i!==(i=u[31])&&m(e,"for",i),f[1]&1&&o!==(o=u[31])&&m(l,"id",o),f[0]&1&&l.value!==u[0].smtp.username&&ae(l,u[0].smtp.username)},d(u){u&&w(e),u&&w(s),u&&w(l),r=!1,a()}}}function uA(n){let e,t,i,s,l,o,r;function a(f){n[23](f)}let u={id:n[31]};return n[0].smtp.password!==void 0&&(u.value=n[0].smtp.password),l=new hu({props:u}),ne.push(()=>pe(l,"value",a)),{c(){e=y("label"),t=Y("Password"),s=D(),B(l.$$.fragment),m(e,"for",i=n[31])},m(f,d){S(f,e,d),v(e,t),S(f,s,d),z(l,f,d),r=!0},p(f,d){(!r||d[1]&1&&i!==(i=f[31]))&&m(e,"for",i);const p={};d[1]&1&&(p.id=f[31]),!o&&d[0]&1&&(o=!0,p.value=f[0].smtp.password,ge(()=>o=!1)),l.$set(p)},i(f){r||(I(l.$$.fragment,f),r=!0)},o(f){P(l.$$.fragment,f),r=!1},d(f){f&&w(e),f&&w(s),H(l,f)}}}function fA(n){let e,t,i;return{c(){e=y("button"),e.innerHTML=` + `,k=Y("."),m(e,"for",i=n[31]),m(f,"type","button"),m(f,"class","label label-sm link-primary txt-mono"),m(p,"type","button"),m(p,"class","label label-sm link-primary txt-mono"),m(g,"type","button"),m(g,"class","label label-sm link-primary txt-mono"),m(b,"type","button"),m(b,"class","label label-sm link-primary txt-mono"),m(b,"title","Required parameter"),m(a,"class","help-block")},m(A,L){S(A,e,L),v(e,t),S(A,s,L),M[l].m(A,L),S(A,r,L),S(A,a,L),v(a,u),v(a,f),v(a,d),v(a,p),v(a,h),v(a,g),v(a,_),v(a,b),v(a,k),$=!0,C||(T=[J(f,"click",n[22]),J(p,"click",n[23]),J(g,"click",n[24]),J(b,"click",n[25])],C=!0)},p(A,L){(!$||L[1]&1&&i!==(i=A[31]))&&m(e,"for",i);let N=l;l=E(A),l===N?M[l].p(A,L):(ue(),P(M[N],1,1,()=>{M[N]=null}),fe(),o=M[l],o?o.p(A,L):(o=M[l]=O[l](A),o.c()),I(o,1),o.m(r.parentNode,r))},i(A){$||(I(o),$=!0)},o(A){P(o),$=!1},d(A){A&&w(e),A&&w(s),M[l].d(A),A&&w(r),A&&w(a),C=!1,De(T)}}}function zD(n){let e,t,i,s,l,o;return e=new me({props:{class:"form-field required",name:n[1]+".subject",$$slots:{default:[FD,({uniqueId:r})=>({31:r}),({uniqueId:r})=>[0,r?1:0]]},$$scope:{ctx:n}}}),i=new me({props:{class:"form-field required",name:n[1]+".actionUrl",$$slots:{default:[RD,({uniqueId:r})=>({31:r}),({uniqueId:r})=>[0,r?1:0]]},$$scope:{ctx:n}}}),l=new me({props:{class:"form-field m-0 required",name:n[1]+".body",$$slots:{default:[VD,({uniqueId:r})=>({31:r}),({uniqueId:r})=>[0,r?1:0]]},$$scope:{ctx:n}}}),{c(){B(e.$$.fragment),t=D(),B(i.$$.fragment),s=D(),B(l.$$.fragment)},m(r,a){z(e,r,a),S(r,t,a),z(i,r,a),S(r,s,a),z(l,r,a),o=!0},p(r,a){const u={};a[0]&2&&(u.name=r[1]+".subject"),a[0]&1|a[1]&3&&(u.$$scope={dirty:a,ctx:r}),e.$set(u);const f={};a[0]&2&&(f.name=r[1]+".actionUrl"),a[0]&1|a[1]&3&&(f.$$scope={dirty:a,ctx:r}),i.$set(f);const d={};a[0]&2&&(d.name=r[1]+".body"),a[0]&49|a[1]&3&&(d.$$scope={dirty:a,ctx:r}),l.$set(d)},i(r){o||(I(e.$$.fragment,r),I(i.$$.fragment,r),I(l.$$.fragment,r),o=!0)},o(r){P(e.$$.fragment,r),P(i.$$.fragment,r),P(l.$$.fragment,r),o=!1},d(r){H(e,r),r&&w(t),H(i,r),r&&w(s),H(l,r)}}}function Ih(n){let e,t,i,s,l;return{c(){e=y("i"),m(e,"class","ri-error-warning-fill txt-danger")},m(o,r){S(o,e,r),i=!0,s||(l=Ee(Be.call(null,e,{text:"Has errors",position:"left"})),s=!0)},i(o){i||(o&&et(()=>{i&&(t||(t=Ve(e,Jt,{duration:150,start:.7},!0)),t.run(1))}),i=!0)},o(o){o&&(t||(t=Ve(e,Jt,{duration:150,start:.7},!1)),t.run(0)),i=!1},d(o){o&&w(e),o&&t&&t.end(),s=!1,l()}}}function HD(n){let e,t,i,s,l,o,r,a,u,f=n[6]&&Ih();return{c(){e=y("div"),t=y("i"),i=D(),s=y("span"),l=Y(n[2]),o=D(),r=y("div"),a=D(),f&&f.c(),u=we(),m(t,"class","ri-draft-line"),m(s,"class","txt"),m(e,"class","inline-flex"),m(r,"class","flex-fill")},m(d,p){S(d,e,p),v(e,t),v(e,i),v(e,s),v(s,l),S(d,o,p),S(d,r,p),S(d,a,p),f&&f.m(d,p),S(d,u,p)},p(d,p){p[0]&4&&le(l,d[2]),d[6]?f?p[0]&64&&I(f,1):(f=Ih(),f.c(),I(f,1),f.m(u.parentNode,u)):f&&(ue(),P(f,1,1,()=>{f=null}),fe())},d(d){d&&w(e),d&&w(o),d&&w(r),d&&w(a),f&&f.d(d),d&&w(u)}}}function BD(n){let e,t;const i=[n[8]];let s={$$slots:{header:[HD],default:[zD]},$$scope:{ctx:n}};for(let l=0;lt(12,o=Z));let{key:r}=e,{title:a}=e,{config:u={}}=e,f,d=Lh,p=!1;function h(){f==null||f.expand()}function g(){f==null||f.collapse()}function _(){f==null||f.collapseSiblings()}async function b(){d||p||(t(5,p=!0),t(4,d=(await ut(()=>import("./CodeEditor-fa610c65.js"),["./CodeEditor-fa610c65.js","./index-84ab2e4b.js"],import.meta.url)).default),Lh=d,t(5,p=!1))}function k(Z){W.copyToClipboard(Z),yo(`Copied ${Z} to clipboard`,2e3)}b();function $(){u.subject=this.value,t(0,u)}const C=()=>k("{APP_NAME}"),T=()=>k("{APP_URL}");function O(){u.actionUrl=this.value,t(0,u)}const M=()=>k("{APP_NAME}"),E=()=>k("{APP_URL}"),A=()=>k("{TOKEN}");function L(Z){n.$$.not_equal(u.body,Z)&&(u.body=Z,t(0,u))}function N(){u.body=this.value,t(0,u)}const q=()=>k("{APP_NAME}"),F=()=>k("{APP_URL}"),R=()=>k("{TOKEN}"),V=()=>k("{ACTION_URL}");function j(Z){ne[Z?"unshift":"push"](()=>{f=Z,t(3,f)})}function U(Z){he.call(this,n,Z)}function x(Z){he.call(this,n,Z)}function X(Z){he.call(this,n,Z)}return n.$$set=Z=>{e=je(je({},e),Gt(Z)),t(8,l=tt(e,s)),"key"in Z&&t(1,r=Z.key),"title"in Z&&t(2,a=Z.title),"config"in Z&&t(0,u=Z.config)},n.$$.update=()=>{n.$$.dirty[0]&4098&&t(6,i=!W.isEmpty(W.getNestedVal(o,r))),n.$$.dirty[0]&3&&(u.enabled||ui(r))},[u,r,a,f,d,p,i,k,l,h,g,_,o,$,C,T,O,M,E,A,L,N,q,F,R,V,j,U,x,X]}class jr extends ve{constructor(e){super(),be(this,e,UD,BD,_e,{key:1,title:2,config:0,expand:9,collapse:10,collapseSiblings:11},null,[-1,-1])}get expand(){return this.$$.ctx[9]}get collapse(){return this.$$.ctx[10]}get collapseSiblings(){return this.$$.ctx[11]}}function Ph(n,e,t){const i=n.slice();return i[21]=e[t],i}function Nh(n,e){let t,i,s,l,o,r=e[21].label+"",a,u,f,d,p,h;return d=Y1(e[11][0]),{key:n,first:null,c(){t=y("div"),i=y("input"),l=D(),o=y("label"),a=Y(r),f=D(),m(i,"type","radio"),m(i,"name","template"),m(i,"id",s=e[20]+e[21].value),i.__value=e[21].value,i.value=i.__value,m(o,"for",u=e[20]+e[21].value),m(t,"class","form-field-block"),d.p(i),this.first=t},m(g,_){S(g,t,_),v(t,i),i.checked=i.__value===e[2],v(t,l),v(t,o),v(o,a),v(t,f),p||(h=J(i,"change",e[10]),p=!0)},p(g,_){e=g,_&1048576&&s!==(s=e[20]+e[21].value)&&m(i,"id",s),_&4&&(i.checked=i.__value===e[2]),_&1048576&&u!==(u=e[20]+e[21].value)&&m(o,"for",u)},d(g){g&&w(t),d.r(),p=!1,h()}}}function WD(n){let e=[],t=new Map,i,s=n[7];const l=o=>o[21].value;for(let o=0;o({20:a}),({uniqueId:a})=>a?1048576:0]},$$scope:{ctx:n}}}),s=new me({props:{class:"form-field required m-0",name:"email",$$slots:{default:[YD,({uniqueId:a})=>({20:a}),({uniqueId:a})=>a?1048576:0]},$$scope:{ctx:n}}}),{c(){e=y("form"),B(t.$$.fragment),i=D(),B(s.$$.fragment),m(e,"id",n[6]),m(e,"autocomplete","off")},m(a,u){S(a,e,u),z(t,e,null),v(e,i),z(s,e,null),l=!0,o||(r=J(e,"submit",xe(n[13])),o=!0)},p(a,u){const f={};u&17825796&&(f.$$scope={dirty:u,ctx:a}),t.$set(f);const d={};u&17825794&&(d.$$scope={dirty:u,ctx:a}),s.$set(d)},i(a){l||(I(t.$$.fragment,a),I(s.$$.fragment,a),l=!0)},o(a){P(t.$$.fragment,a),P(s.$$.fragment,a),l=!1},d(a){a&&w(e),H(t),H(s),o=!1,r()}}}function JD(n){let e;return{c(){e=y("h4"),e.textContent="Send test email",m(e,"class","center txt-break")},m(t,i){S(t,e,i)},p:te,d(t){t&&w(e)}}}function ZD(n){let e,t,i,s,l,o,r,a,u,f;return{c(){e=y("button"),t=Y("Close"),i=D(),s=y("button"),l=y("i"),o=D(),r=y("span"),r.textContent="Send",m(e,"type","button"),m(e,"class","btn btn-transparent"),e.disabled=n[4],m(l,"class","ri-mail-send-line"),m(r,"class","txt"),m(s,"type","submit"),m(s,"form",n[6]),m(s,"class","btn btn-expanded"),s.disabled=a=!n[5]||n[4],Q(s,"btn-loading",n[4])},m(d,p){S(d,e,p),v(e,t),S(d,i,p),S(d,s,p),v(s,l),v(s,o),v(s,r),u||(f=J(e,"click",n[0]),u=!0)},p(d,p){p&16&&(e.disabled=d[4]),p&48&&a!==(a=!d[5]||d[4])&&(s.disabled=a),p&16&&Q(s,"btn-loading",d[4])},d(d){d&&w(e),d&&w(i),d&&w(s),u=!1,f()}}}function GD(n){let e,t,i={class:"overlay-panel-sm email-test-popup",overlayClose:!n[4],escClose:!n[4],beforeHide:n[14],popup:!0,$$slots:{footer:[ZD],header:[JD],default:[KD]},$$scope:{ctx:n}};return e=new on({props:i}),n[15](e),e.$on("show",n[16]),e.$on("hide",n[17]),{c(){B(e.$$.fragment)},m(s,l){z(e,s,l),t=!0},p(s,[l]){const o={};l&16&&(o.overlayClose=!s[4]),l&16&&(o.escClose=!s[4]),l&16&&(o.beforeHide=s[14]),l&16777270&&(o.$$scope={dirty:l,ctx:s}),e.$set(o)},i(s){t||(I(e.$$.fragment,s),t=!0)},o(s){P(e.$$.fragment,s),t=!1},d(s){n[15](null),H(e,s)}}}const Vr="last_email_test",Fh="email_test_request";function XD(n,e,t){let i;const s=Tt(),l="email_test_"+W.randomString(5),o=[{label:'"Verification" template',value:"verification"},{label:'"Password reset" template',value:"password-reset"},{label:'"Confirm email change" template',value:"email-change"}];let r,a=localStorage.getItem(Vr),u=o[0].value,f=!1,d=null;function p(E="",A=""){t(1,a=E||localStorage.getItem(Vr)),t(2,u=A||o[0].value),tn({}),r==null||r.show()}function h(){return clearTimeout(d),r==null?void 0:r.hide()}async function g(){if(!(!i||f)){t(4,f=!0),localStorage==null||localStorage.setItem(Vr,a),clearTimeout(d),d=setTimeout(()=>{de.cancelRequest(Fh),As("Test email send timeout.")},3e4);try{await de.settings.testEmail(a,u,{$cancelKey:Fh}),Ht("Successfully sent test email."),s("submit"),t(4,f=!1),await cn(),h()}catch(E){t(4,f=!1),de.error(E)}clearTimeout(d)}}const _=[[]];function b(){u=this.__value,t(2,u)}function k(){a=this.value,t(1,a)}const $=()=>g(),C=()=>!f;function T(E){ne[E?"unshift":"push"](()=>{r=E,t(3,r)})}function O(E){he.call(this,n,E)}function M(E){he.call(this,n,E)}return n.$$.update=()=>{n.$$.dirty&6&&t(5,i=!!a&&!!u)},[h,a,u,r,f,i,l,o,g,p,b,_,k,$,C,T,O,M]}class QD extends ve{constructor(e){super(),be(this,e,XD,GD,_e,{show:9,hide:0})}get show(){return this.$$.ctx[9]}get hide(){return this.$$.ctx[0]}}function xD(n){let e,t,i,s,l,o,r,a,u,f,d,p,h,g,_,b,k,$,C,T,O,M,E,A,L,N;i=new me({props:{class:"form-field required",name:"meta.senderName",$$slots:{default:[tA,({uniqueId:ee})=>({31:ee}),({uniqueId:ee})=>[0,ee?1:0]]},$$scope:{ctx:n}}}),o=new me({props:{class:"form-field required",name:"meta.senderAddress",$$slots:{default:[nA,({uniqueId:ee})=>({31:ee}),({uniqueId:ee})=>[0,ee?1:0]]},$$scope:{ctx:n}}});function q(ee){n[14](ee)}let F={single:!0,key:"meta.verificationTemplate",title:'Default "Verification" email template'};n[0].meta.verificationTemplate!==void 0&&(F.config=n[0].meta.verificationTemplate),u=new jr({props:F}),ne.push(()=>pe(u,"config",q));function R(ee){n[15](ee)}let V={single:!0,key:"meta.resetPasswordTemplate",title:'Default "Password reset" email template'};n[0].meta.resetPasswordTemplate!==void 0&&(V.config=n[0].meta.resetPasswordTemplate),p=new jr({props:V}),ne.push(()=>pe(p,"config",R));function j(ee){n[16](ee)}let U={single:!0,key:"meta.confirmEmailChangeTemplate",title:'Default "Confirm email change" email template'};n[0].meta.confirmEmailChangeTemplate!==void 0&&(U.config=n[0].meta.confirmEmailChangeTemplate),_=new jr({props:U}),ne.push(()=>pe(_,"config",j)),T=new me({props:{class:"form-field form-field-toggle m-b-sm",$$slots:{default:[iA,({uniqueId:ee})=>({31:ee}),({uniqueId:ee})=>[0,ee?1:0]]},$$scope:{ctx:n}}});let x=n[0].smtp.enabled&&Rh(n);function X(ee,se){return ee[4]?cA:fA}let Z=X(n),oe=Z(n);return{c(){e=y("div"),t=y("div"),B(i.$$.fragment),s=D(),l=y("div"),B(o.$$.fragment),r=D(),a=y("div"),B(u.$$.fragment),d=D(),B(p.$$.fragment),g=D(),B(_.$$.fragment),k=D(),$=y("hr"),C=D(),B(T.$$.fragment),O=D(),x&&x.c(),M=D(),E=y("div"),A=y("div"),L=D(),oe.c(),m(t,"class","col-lg-6"),m(l,"class","col-lg-6"),m(e,"class","grid m-b-base"),m(a,"class","accordions"),m(A,"class","flex-fill"),m(E,"class","flex")},m(ee,se){S(ee,e,se),v(e,t),z(i,t,null),v(e,s),v(e,l),z(o,l,null),S(ee,r,se),S(ee,a,se),z(u,a,null),v(a,d),z(p,a,null),v(a,g),z(_,a,null),S(ee,k,se),S(ee,$,se),S(ee,C,se),z(T,ee,se),S(ee,O,se),x&&x.m(ee,se),S(ee,M,se),S(ee,E,se),v(E,A),v(E,L),oe.m(E,null),N=!0},p(ee,se){const ye={};se[0]&1|se[1]&3&&(ye.$$scope={dirty:se,ctx:ee}),i.$set(ye);const $e={};se[0]&1|se[1]&3&&($e.$$scope={dirty:se,ctx:ee}),o.$set($e);const ze={};!f&&se[0]&1&&(f=!0,ze.config=ee[0].meta.verificationTemplate,ge(()=>f=!1)),u.$set(ze);const Ue={};!h&&se[0]&1&&(h=!0,Ue.config=ee[0].meta.resetPasswordTemplate,ge(()=>h=!1)),p.$set(Ue);const Se={};!b&&se[0]&1&&(b=!0,Se.config=ee[0].meta.confirmEmailChangeTemplate,ge(()=>b=!1)),_.$set(Se);const Oe={};se[0]&1|se[1]&3&&(Oe.$$scope={dirty:se,ctx:ee}),T.$set(Oe),ee[0].smtp.enabled?x?(x.p(ee,se),se[0]&1&&I(x,1)):(x=Rh(ee),x.c(),I(x,1),x.m(M.parentNode,M)):x&&(ue(),P(x,1,1,()=>{x=null}),fe()),Z===(Z=X(ee))&&oe?oe.p(ee,se):(oe.d(1),oe=Z(ee),oe&&(oe.c(),oe.m(E,null)))},i(ee){N||(I(i.$$.fragment,ee),I(o.$$.fragment,ee),I(u.$$.fragment,ee),I(p.$$.fragment,ee),I(_.$$.fragment,ee),I(T.$$.fragment,ee),I(x),N=!0)},o(ee){P(i.$$.fragment,ee),P(o.$$.fragment,ee),P(u.$$.fragment,ee),P(p.$$.fragment,ee),P(_.$$.fragment,ee),P(T.$$.fragment,ee),P(x),N=!1},d(ee){ee&&w(e),H(i),H(o),ee&&w(r),ee&&w(a),H(u),H(p),H(_),ee&&w(k),ee&&w($),ee&&w(C),H(T,ee),ee&&w(O),x&&x.d(ee),ee&&w(M),ee&&w(E),oe.d()}}}function eA(n){let e;return{c(){e=y("div"),m(e,"class","loader")},m(t,i){S(t,e,i)},p:te,i:te,o:te,d(t){t&&w(e)}}}function tA(n){let e,t,i,s,l,o,r,a;return{c(){e=y("label"),t=Y("Sender name"),s=D(),l=y("input"),m(e,"for",i=n[31]),m(l,"type","text"),m(l,"id",o=n[31]),l.required=!0},m(u,f){S(u,e,f),v(e,t),S(u,s,f),S(u,l,f),ae(l,n[0].meta.senderName),r||(a=J(l,"input",n[12]),r=!0)},p(u,f){f[1]&1&&i!==(i=u[31])&&m(e,"for",i),f[1]&1&&o!==(o=u[31])&&m(l,"id",o),f[0]&1&&l.value!==u[0].meta.senderName&&ae(l,u[0].meta.senderName)},d(u){u&&w(e),u&&w(s),u&&w(l),r=!1,a()}}}function nA(n){let e,t,i,s,l,o,r,a;return{c(){e=y("label"),t=Y("Sender address"),s=D(),l=y("input"),m(e,"for",i=n[31]),m(l,"type","email"),m(l,"id",o=n[31]),l.required=!0},m(u,f){S(u,e,f),v(e,t),S(u,s,f),S(u,l,f),ae(l,n[0].meta.senderAddress),r||(a=J(l,"input",n[13]),r=!0)},p(u,f){f[1]&1&&i!==(i=u[31])&&m(e,"for",i),f[1]&1&&o!==(o=u[31])&&m(l,"id",o),f[0]&1&&l.value!==u[0].meta.senderAddress&&ae(l,u[0].meta.senderAddress)},d(u){u&&w(e),u&&w(s),u&&w(l),r=!1,a()}}}function iA(n){let e,t,i,s,l,o,r,a,u,f;return{c(){e=y("input"),i=D(),s=y("label"),l=y("span"),l.innerHTML="Use SMTP mail server (recommended)",o=D(),r=y("i"),m(e,"type","checkbox"),m(e,"id",t=n[31]),e.required=!0,m(l,"class","txt"),m(r,"class","ri-information-line link-hint"),m(s,"for",a=n[31])},m(d,p){S(d,e,p),e.checked=n[0].smtp.enabled,S(d,i,p),S(d,s,p),v(s,l),v(s,o),v(s,r),u||(f=[J(e,"change",n[17]),Ee(Be.call(null,r,{text:'By default PocketBase uses the unix "sendmail" command for sending emails. For better emails deliverability it is recommended to use a SMTP mail server.',position:"top"}))],u=!0)},p(d,p){p[1]&1&&t!==(t=d[31])&&m(e,"id",t),p[0]&1&&(e.checked=d[0].smtp.enabled),p[1]&1&&a!==(a=d[31])&&m(s,"for",a)},d(d){d&&w(e),d&&w(i),d&&w(s),u=!1,De(f)}}}function Rh(n){let e,t,i,s,l,o,r,a,u,f,d,p,h,g,_,b,k,$,C,T,O,M;return i=new me({props:{class:"form-field required",name:"smtp.host",$$slots:{default:[sA,({uniqueId:E})=>({31:E}),({uniqueId:E})=>[0,E?1:0]]},$$scope:{ctx:n}}}),o=new me({props:{class:"form-field required",name:"smtp.port",$$slots:{default:[lA,({uniqueId:E})=>({31:E}),({uniqueId:E})=>[0,E?1:0]]},$$scope:{ctx:n}}}),u=new me({props:{class:"form-field required",name:"smtp.tls",$$slots:{default:[oA,({uniqueId:E})=>({31:E}),({uniqueId:E})=>[0,E?1:0]]},$$scope:{ctx:n}}}),p=new me({props:{class:"form-field",name:"smtp.authMethod",$$slots:{default:[rA,({uniqueId:E})=>({31:E}),({uniqueId:E})=>[0,E?1:0]]},$$scope:{ctx:n}}}),_=new me({props:{class:"form-field",name:"smtp.username",$$slots:{default:[aA,({uniqueId:E})=>({31:E}),({uniqueId:E})=>[0,E?1:0]]},$$scope:{ctx:n}}}),$=new me({props:{class:"form-field",name:"smtp.password",$$slots:{default:[uA,({uniqueId:E})=>({31:E}),({uniqueId:E})=>[0,E?1:0]]},$$scope:{ctx:n}}}),{c(){e=y("div"),t=y("div"),B(i.$$.fragment),s=D(),l=y("div"),B(o.$$.fragment),r=D(),a=y("div"),B(u.$$.fragment),f=D(),d=y("div"),B(p.$$.fragment),h=D(),g=y("div"),B(_.$$.fragment),b=D(),k=y("div"),B($.$$.fragment),C=D(),T=y("div"),m(t,"class","col-lg-4"),m(l,"class","col-lg-2"),m(a,"class","col-lg-3"),m(d,"class","col-lg-3"),m(g,"class","col-lg-6"),m(k,"class","col-lg-6"),m(T,"class","col-lg-12"),m(e,"class","grid")},m(E,A){S(E,e,A),v(e,t),z(i,t,null),v(e,s),v(e,l),z(o,l,null),v(e,r),v(e,a),z(u,a,null),v(e,f),v(e,d),z(p,d,null),v(e,h),v(e,g),z(_,g,null),v(e,b),v(e,k),z($,k,null),v(e,C),v(e,T),M=!0},p(E,A){const L={};A[0]&1|A[1]&3&&(L.$$scope={dirty:A,ctx:E}),i.$set(L);const N={};A[0]&1|A[1]&3&&(N.$$scope={dirty:A,ctx:E}),o.$set(N);const q={};A[0]&1|A[1]&3&&(q.$$scope={dirty:A,ctx:E}),u.$set(q);const F={};A[0]&1|A[1]&3&&(F.$$scope={dirty:A,ctx:E}),p.$set(F);const R={};A[0]&1|A[1]&3&&(R.$$scope={dirty:A,ctx:E}),_.$set(R);const V={};A[0]&1|A[1]&3&&(V.$$scope={dirty:A,ctx:E}),$.$set(V)},i(E){M||(I(i.$$.fragment,E),I(o.$$.fragment,E),I(u.$$.fragment,E),I(p.$$.fragment,E),I(_.$$.fragment,E),I($.$$.fragment,E),E&&et(()=>{M&&(O||(O=Ve(e,rt,{duration:150},!0)),O.run(1))}),M=!0)},o(E){P(i.$$.fragment,E),P(o.$$.fragment,E),P(u.$$.fragment,E),P(p.$$.fragment,E),P(_.$$.fragment,E),P($.$$.fragment,E),E&&(O||(O=Ve(e,rt,{duration:150},!1)),O.run(0)),M=!1},d(E){E&&w(e),H(i),H(o),H(u),H(p),H(_),H($),E&&O&&O.end()}}}function sA(n){let e,t,i,s,l,o,r,a;return{c(){e=y("label"),t=Y("SMTP server host"),s=D(),l=y("input"),m(e,"for",i=n[31]),m(l,"type","text"),m(l,"id",o=n[31]),l.required=!0},m(u,f){S(u,e,f),v(e,t),S(u,s,f),S(u,l,f),ae(l,n[0].smtp.host),r||(a=J(l,"input",n[18]),r=!0)},p(u,f){f[1]&1&&i!==(i=u[31])&&m(e,"for",i),f[1]&1&&o!==(o=u[31])&&m(l,"id",o),f[0]&1&&l.value!==u[0].smtp.host&&ae(l,u[0].smtp.host)},d(u){u&&w(e),u&&w(s),u&&w(l),r=!1,a()}}}function lA(n){let e,t,i,s,l,o,r,a;return{c(){e=y("label"),t=Y("Port"),s=D(),l=y("input"),m(e,"for",i=n[31]),m(l,"type","number"),m(l,"id",o=n[31]),l.required=!0},m(u,f){S(u,e,f),v(e,t),S(u,s,f),S(u,l,f),ae(l,n[0].smtp.port),r||(a=J(l,"input",n[19]),r=!0)},p(u,f){f[1]&1&&i!==(i=u[31])&&m(e,"for",i),f[1]&1&&o!==(o=u[31])&&m(l,"id",o),f[0]&1&&mt(l.value)!==u[0].smtp.port&&ae(l,u[0].smtp.port)},d(u){u&&w(e),u&&w(s),u&&w(l),r=!1,a()}}}function oA(n){let e,t,i,s,l,o,r;function a(f){n[20](f)}let u={id:n[31],items:n[6]};return n[0].smtp.tls!==void 0&&(u.keyOfSelected=n[0].smtp.tls),l=new Bi({props:u}),ne.push(()=>pe(l,"keyOfSelected",a)),{c(){e=y("label"),t=Y("TLS encryption"),s=D(),B(l.$$.fragment),m(e,"for",i=n[31])},m(f,d){S(f,e,d),v(e,t),S(f,s,d),z(l,f,d),r=!0},p(f,d){(!r||d[1]&1&&i!==(i=f[31]))&&m(e,"for",i);const p={};d[1]&1&&(p.id=f[31]),!o&&d[0]&1&&(o=!0,p.keyOfSelected=f[0].smtp.tls,ge(()=>o=!1)),l.$set(p)},i(f){r||(I(l.$$.fragment,f),r=!0)},o(f){P(l.$$.fragment,f),r=!1},d(f){f&&w(e),f&&w(s),H(l,f)}}}function rA(n){let e,t,i,s,l,o,r;function a(f){n[21](f)}let u={id:n[31],items:n[7]};return n[0].smtp.authMethod!==void 0&&(u.keyOfSelected=n[0].smtp.authMethod),l=new Bi({props:u}),ne.push(()=>pe(l,"keyOfSelected",a)),{c(){e=y("label"),t=Y("AUTH method"),s=D(),B(l.$$.fragment),m(e,"for",i=n[31])},m(f,d){S(f,e,d),v(e,t),S(f,s,d),z(l,f,d),r=!0},p(f,d){(!r||d[1]&1&&i!==(i=f[31]))&&m(e,"for",i);const p={};d[1]&1&&(p.id=f[31]),!o&&d[0]&1&&(o=!0,p.keyOfSelected=f[0].smtp.authMethod,ge(()=>o=!1)),l.$set(p)},i(f){r||(I(l.$$.fragment,f),r=!0)},o(f){P(l.$$.fragment,f),r=!1},d(f){f&&w(e),f&&w(s),H(l,f)}}}function aA(n){let e,t,i,s,l,o,r,a;return{c(){e=y("label"),t=Y("Username"),s=D(),l=y("input"),m(e,"for",i=n[31]),m(l,"type","text"),m(l,"id",o=n[31])},m(u,f){S(u,e,f),v(e,t),S(u,s,f),S(u,l,f),ae(l,n[0].smtp.username),r||(a=J(l,"input",n[22]),r=!0)},p(u,f){f[1]&1&&i!==(i=u[31])&&m(e,"for",i),f[1]&1&&o!==(o=u[31])&&m(l,"id",o),f[0]&1&&l.value!==u[0].smtp.username&&ae(l,u[0].smtp.username)},d(u){u&&w(e),u&&w(s),u&&w(l),r=!1,a()}}}function uA(n){let e,t,i,s,l,o,r;function a(f){n[23](f)}let u={id:n[31]};return n[0].smtp.password!==void 0&&(u.value=n[0].smtp.password),l=new hu({props:u}),ne.push(()=>pe(l,"value",a)),{c(){e=y("label"),t=Y("Password"),s=D(),B(l.$$.fragment),m(e,"for",i=n[31])},m(f,d){S(f,e,d),v(e,t),S(f,s,d),z(l,f,d),r=!0},p(f,d){(!r||d[1]&1&&i!==(i=f[31]))&&m(e,"for",i);const p={};d[1]&1&&(p.id=f[31]),!o&&d[0]&1&&(o=!0,p.value=f[0].smtp.password,ge(()=>o=!1)),l.$set(p)},i(f){r||(I(l.$$.fragment,f),r=!0)},o(f){P(l.$$.fragment,f),r=!1},d(f){f&&w(e),f&&w(s),H(l,f)}}}function fA(n){let e,t,i;return{c(){e=y("button"),e.innerHTML=` Send test email`,m(e,"type","button"),m(e,"class","btn btn-expanded btn-outline")},m(s,l){S(s,e,l),t||(i=J(e,"click",n[26]),t=!0)},p:te,d(s){s&&w(e),t=!1,i()}}}function cA(n){let e,t,i,s,l,o,r,a;return{c(){e=y("button"),t=y("span"),t.textContent="Cancel",i=D(),s=y("button"),l=y("span"),l.textContent="Save changes",m(t,"class","txt"),m(e,"type","button"),m(e,"class","btn btn-transparent btn-hint"),e.disabled=n[3],m(l,"class","txt"),m(s,"type","submit"),m(s,"class","btn btn-expanded"),s.disabled=o=!n[4]||n[3],Q(s,"btn-loading",n[3])},m(u,f){S(u,e,f),v(e,t),S(u,i,f),S(u,s,f),v(s,l),r||(a=[J(e,"click",n[24]),J(s,"click",n[25])],r=!0)},p(u,f){f[0]&8&&(e.disabled=u[3]),f[0]&24&&o!==(o=!u[4]||u[3])&&(s.disabled=o),f[0]&8&&Q(s,"btn-loading",u[3])},d(u){u&&w(e),u&&w(i),u&&w(s),r=!1,De(a)}}}function dA(n){let e,t,i,s,l,o,r,a,u,f,d,p,h,g,_,b;const k=[eA,xD],$=[];function C(T,O){return T[2]?0:1}return p=C(n),h=$[p]=k[p](n),{c(){e=y("header"),t=y("nav"),i=y("div"),i.textContent="Settings",s=D(),l=y("div"),o=Y(n[5]),r=D(),a=y("div"),u=y("form"),f=y("div"),f.innerHTML="

    Configure common settings for sending emails.

    ",d=D(),h.c(),m(i,"class","breadcrumb-item"),m(l,"class","breadcrumb-item"),m(t,"class","breadcrumbs"),m(e,"class","page-header"),m(f,"class","content txt-xl m-b-base"),m(u,"class","panel"),m(u,"autocomplete","off"),m(a,"class","wrapper")},m(T,O){S(T,e,O),v(e,t),v(t,i),v(t,s),v(t,l),v(l,o),S(T,r,O),S(T,a,O),v(a,u),v(u,f),v(u,d),$[p].m(u,null),g=!0,_||(b=J(u,"submit",xe(n[27])),_=!0)},p(T,O){(!g||O[0]&32)&&le(o,T[5]);let M=p;p=C(T),p===M?$[p].p(T,O):(ue(),P($[M],1,1,()=>{$[M]=null}),fe(),h=$[p],h?h.p(T,O):(h=$[p]=k[p](T),h.c()),I(h,1),h.m(u,null))},i(T){g||(I(h),g=!0)},o(T){P(h),g=!1},d(T){T&&w(e),T&&w(r),T&&w(a),$[p].d(),_=!1,b()}}}function pA(n){let e,t,i,s,l,o;e=new Mi({}),i=new Sn({props:{$$slots:{default:[dA]},$$scope:{ctx:n}}});let r={};return l=new QD({props:r}),n[28](l),{c(){B(e.$$.fragment),t=D(),B(i.$$.fragment),s=D(),B(l.$$.fragment)},m(a,u){z(e,a,u),S(a,t,u),z(i,a,u),S(a,s,u),z(l,a,u),o=!0},p(a,u){const f={};u[0]&63|u[1]&2&&(f.$$scope={dirty:u,ctx:a}),i.$set(f);const d={};l.$set(d)},i(a){o||(I(e.$$.fragment,a),I(i.$$.fragment,a),I(l.$$.fragment,a),o=!0)},o(a){P(e.$$.fragment,a),P(i.$$.fragment,a),P(l.$$.fragment,a),o=!1},d(a){H(e,a),a&&w(t),H(i,a),a&&w(s),n[28](null),H(l,a)}}}function mA(n,e,t){let i,s,l;Ze(n,Mt,X=>t(5,l=X));const o=[{label:"Auto (StartTLS)",value:!1},{label:"Always",value:!0}],r=[{label:"PLAIN (default)",value:"PLAIN"},{label:"LOGIN",value:"LOGIN"}];ln(Mt,l="Mail settings",l);let a,u={},f={},d=!1,p=!1;h();async function h(){t(2,d=!0);try{const X=await de.settings.getAll()||{};_(X)}catch(X){de.error(X)}t(2,d=!1)}async function g(){if(!(p||!s)){t(3,p=!0);try{const X=await de.settings.update(W.filterRedactedProps(f));_(X),tn({}),Ht("Successfully saved mail settings.")}catch(X){de.error(X)}t(3,p=!1)}}function _(X={}){t(0,f={meta:(X==null?void 0:X.meta)||{},smtp:(X==null?void 0:X.smtp)||{}}),f.smtp.authMethod||t(0,f.smtp.authMethod=r[0].value,f),t(10,u=JSON.parse(JSON.stringify(f)))}function b(){t(0,f=JSON.parse(JSON.stringify(u||{})))}function k(){f.meta.senderName=this.value,t(0,f)}function $(){f.meta.senderAddress=this.value,t(0,f)}function C(X){n.$$.not_equal(f.meta.verificationTemplate,X)&&(f.meta.verificationTemplate=X,t(0,f))}function T(X){n.$$.not_equal(f.meta.resetPasswordTemplate,X)&&(f.meta.resetPasswordTemplate=X,t(0,f))}function O(X){n.$$.not_equal(f.meta.confirmEmailChangeTemplate,X)&&(f.meta.confirmEmailChangeTemplate=X,t(0,f))}function M(){f.smtp.enabled=this.checked,t(0,f)}function E(){f.smtp.host=this.value,t(0,f)}function A(){f.smtp.port=mt(this.value),t(0,f)}function L(X){n.$$.not_equal(f.smtp.tls,X)&&(f.smtp.tls=X,t(0,f))}function N(X){n.$$.not_equal(f.smtp.authMethod,X)&&(f.smtp.authMethod=X,t(0,f))}function q(){f.smtp.username=this.value,t(0,f)}function F(X){n.$$.not_equal(f.smtp.password,X)&&(f.smtp.password=X,t(0,f))}const R=()=>b(),V=()=>g(),j=()=>a==null?void 0:a.show(),U=()=>g();function x(X){ne[X?"unshift":"push"](()=>{a=X,t(1,a)})}return n.$$.update=()=>{n.$$.dirty[0]&1024&&t(11,i=JSON.stringify(u)),n.$$.dirty[0]&2049&&t(4,s=i!=JSON.stringify(f))},[f,a,d,p,s,l,o,r,g,b,u,i,k,$,C,T,O,M,E,A,L,N,q,F,R,V,j,U,x]}class hA extends ve{constructor(e){super(),be(this,e,mA,pA,_e,{},null,[-1,-1])}}const _A=n=>({isTesting:n&4,testError:n&2,enabled:n&1}),qh=n=>({isTesting:n[2],testError:n[1],enabled:n[0].enabled});function gA(n){let e,t,i,s,l,o,r,a;return{c(){e=y("input"),i=D(),s=y("label"),l=Y(n[4]),m(e,"type","checkbox"),m(e,"id",t=n[20]),e.required=!0,m(s,"for",o=n[20])},m(u,f){S(u,e,f),e.checked=n[0].enabled,S(u,i,f),S(u,s,f),v(s,l),r||(a=J(e,"change",n[8]),r=!0)},p(u,f){f&1048576&&t!==(t=u[20])&&m(e,"id",t),f&1&&(e.checked=u[0].enabled),f&16&&le(l,u[4]),f&1048576&&o!==(o=u[20])&&m(s,"for",o)},d(u){u&&w(e),u&&w(i),u&&w(s),r=!1,a()}}}function jh(n){let e,t,i,s,l,o,r,a,u,f,d,p,h,g,_,b,k,$,C,T,O,M;return i=new me({props:{class:"form-field required",name:n[3]+".endpoint",$$slots:{default:[bA,({uniqueId:E})=>({20:E}),({uniqueId:E})=>E?1048576:0]},$$scope:{ctx:n}}}),o=new me({props:{class:"form-field required",name:n[3]+".bucket",$$slots:{default:[vA,({uniqueId:E})=>({20:E}),({uniqueId:E})=>E?1048576:0]},$$scope:{ctx:n}}}),u=new me({props:{class:"form-field required",name:n[3]+".region",$$slots:{default:[yA,({uniqueId:E})=>({20:E}),({uniqueId:E})=>E?1048576:0]},$$scope:{ctx:n}}}),p=new me({props:{class:"form-field required",name:n[3]+".accessKey",$$slots:{default:[kA,({uniqueId:E})=>({20:E}),({uniqueId:E})=>E?1048576:0]},$$scope:{ctx:n}}}),_=new me({props:{class:"form-field required",name:n[3]+".secret",$$slots:{default:[wA,({uniqueId:E})=>({20:E}),({uniqueId:E})=>E?1048576:0]},$$scope:{ctx:n}}}),$=new me({props:{class:"form-field",name:n[3]+".forcePathStyle",$$slots:{default:[SA,({uniqueId:E})=>({20:E}),({uniqueId:E})=>E?1048576:0]},$$scope:{ctx:n}}}),{c(){e=y("div"),t=y("div"),B(i.$$.fragment),s=D(),l=y("div"),B(o.$$.fragment),r=D(),a=y("div"),B(u.$$.fragment),f=D(),d=y("div"),B(p.$$.fragment),h=D(),g=y("div"),B(_.$$.fragment),b=D(),k=y("div"),B($.$$.fragment),C=D(),T=y("div"),m(t,"class","col-lg-6"),m(l,"class","col-lg-3"),m(a,"class","col-lg-3"),m(d,"class","col-lg-6"),m(g,"class","col-lg-6"),m(k,"class","col-lg-12"),m(T,"class","col-lg-12"),m(e,"class","grid")},m(E,A){S(E,e,A),v(e,t),z(i,t,null),v(e,s),v(e,l),z(o,l,null),v(e,r),v(e,a),z(u,a,null),v(e,f),v(e,d),z(p,d,null),v(e,h),v(e,g),z(_,g,null),v(e,b),v(e,k),z($,k,null),v(e,C),v(e,T),M=!0},p(E,A){const L={};A&8&&(L.name=E[3]+".endpoint"),A&1081345&&(L.$$scope={dirty:A,ctx:E}),i.$set(L);const N={};A&8&&(N.name=E[3]+".bucket"),A&1081345&&(N.$$scope={dirty:A,ctx:E}),o.$set(N);const q={};A&8&&(q.name=E[3]+".region"),A&1081345&&(q.$$scope={dirty:A,ctx:E}),u.$set(q);const F={};A&8&&(F.name=E[3]+".accessKey"),A&1081345&&(F.$$scope={dirty:A,ctx:E}),p.$set(F);const R={};A&8&&(R.name=E[3]+".secret"),A&1081345&&(R.$$scope={dirty:A,ctx:E}),_.$set(R);const V={};A&8&&(V.name=E[3]+".forcePathStyle"),A&1081345&&(V.$$scope={dirty:A,ctx:E}),$.$set(V)},i(E){M||(I(i.$$.fragment,E),I(o.$$.fragment,E),I(u.$$.fragment,E),I(p.$$.fragment,E),I(_.$$.fragment,E),I($.$$.fragment,E),E&&et(()=>{M&&(O||(O=Ve(e,rt,{duration:150},!0)),O.run(1))}),M=!0)},o(E){P(i.$$.fragment,E),P(o.$$.fragment,E),P(u.$$.fragment,E),P(p.$$.fragment,E),P(_.$$.fragment,E),P($.$$.fragment,E),E&&(O||(O=Ve(e,rt,{duration:150},!1)),O.run(0)),M=!1},d(E){E&&w(e),H(i),H(o),H(u),H(p),H(_),H($),E&&O&&O.end()}}}function bA(n){let e,t,i,s,l,o,r,a;return{c(){e=y("label"),t=Y("Endpoint"),s=D(),l=y("input"),m(e,"for",i=n[20]),m(l,"type","text"),m(l,"id",o=n[20]),l.required=!0},m(u,f){S(u,e,f),v(e,t),S(u,s,f),S(u,l,f),ae(l,n[0].endpoint),r||(a=J(l,"input",n[9]),r=!0)},p(u,f){f&1048576&&i!==(i=u[20])&&m(e,"for",i),f&1048576&&o!==(o=u[20])&&m(l,"id",o),f&1&&l.value!==u[0].endpoint&&ae(l,u[0].endpoint)},d(u){u&&w(e),u&&w(s),u&&w(l),r=!1,a()}}}function vA(n){let e,t,i,s,l,o,r,a;return{c(){e=y("label"),t=Y("Bucket"),s=D(),l=y("input"),m(e,"for",i=n[20]),m(l,"type","text"),m(l,"id",o=n[20]),l.required=!0},m(u,f){S(u,e,f),v(e,t),S(u,s,f),S(u,l,f),ae(l,n[0].bucket),r||(a=J(l,"input",n[10]),r=!0)},p(u,f){f&1048576&&i!==(i=u[20])&&m(e,"for",i),f&1048576&&o!==(o=u[20])&&m(l,"id",o),f&1&&l.value!==u[0].bucket&&ae(l,u[0].bucket)},d(u){u&&w(e),u&&w(s),u&&w(l),r=!1,a()}}}function yA(n){let e,t,i,s,l,o,r,a;return{c(){e=y("label"),t=Y("Region"),s=D(),l=y("input"),m(e,"for",i=n[20]),m(l,"type","text"),m(l,"id",o=n[20]),l.required=!0},m(u,f){S(u,e,f),v(e,t),S(u,s,f),S(u,l,f),ae(l,n[0].region),r||(a=J(l,"input",n[11]),r=!0)},p(u,f){f&1048576&&i!==(i=u[20])&&m(e,"for",i),f&1048576&&o!==(o=u[20])&&m(l,"id",o),f&1&&l.value!==u[0].region&&ae(l,u[0].region)},d(u){u&&w(e),u&&w(s),u&&w(l),r=!1,a()}}}function kA(n){let e,t,i,s,l,o,r,a;return{c(){e=y("label"),t=Y("Access key"),s=D(),l=y("input"),m(e,"for",i=n[20]),m(l,"type","text"),m(l,"id",o=n[20]),l.required=!0},m(u,f){S(u,e,f),v(e,t),S(u,s,f),S(u,l,f),ae(l,n[0].accessKey),r||(a=J(l,"input",n[12]),r=!0)},p(u,f){f&1048576&&i!==(i=u[20])&&m(e,"for",i),f&1048576&&o!==(o=u[20])&&m(l,"id",o),f&1&&l.value!==u[0].accessKey&&ae(l,u[0].accessKey)},d(u){u&&w(e),u&&w(s),u&&w(l),r=!1,a()}}}function wA(n){let e,t,i,s,l,o,r;function a(f){n[13](f)}let u={id:n[20],required:!0};return n[0].secret!==void 0&&(u.value=n[0].secret),l=new hu({props:u}),ne.push(()=>pe(l,"value",a)),{c(){e=y("label"),t=Y("Secret"),s=D(),B(l.$$.fragment),m(e,"for",i=n[20])},m(f,d){S(f,e,d),v(e,t),S(f,s,d),z(l,f,d),r=!0},p(f,d){(!r||d&1048576&&i!==(i=f[20]))&&m(e,"for",i);const p={};d&1048576&&(p.id=f[20]),!o&&d&1&&(o=!0,p.value=f[0].secret,ge(()=>o=!1)),l.$set(p)},i(f){r||(I(l.$$.fragment,f),r=!0)},o(f){P(l.$$.fragment,f),r=!1},d(f){f&&w(e),f&&w(s),H(l,f)}}}function SA(n){let e,t,i,s,l,o,r,a,u,f;return{c(){e=y("input"),i=D(),s=y("label"),l=y("span"),l.textContent="Force path-style addressing",o=D(),r=y("i"),m(e,"type","checkbox"),m(e,"id",t=n[20]),m(l,"class","txt"),m(r,"class","ri-information-line link-hint"),m(s,"for",a=n[20])},m(d,p){S(d,e,p),e.checked=n[0].forcePathStyle,S(d,i,p),S(d,s,p),v(s,l),v(s,o),v(s,r),u||(f=[J(e,"change",n[14]),Ee(Be.call(null,r,{text:'Forces the request to use path-style addressing, eg. "https://s3.amazonaws.com/BUCKET/KEY" instead of the default "https://BUCKET.s3.amazonaws.com/KEY".',position:"top"}))],u=!0)},p(d,p){p&1048576&&t!==(t=d[20])&&m(e,"id",t),p&1&&(e.checked=d[0].forcePathStyle),p&1048576&&a!==(a=d[20])&&m(s,"for",a)},d(d){d&&w(e),d&&w(i),d&&w(s),u=!1,De(f)}}}function $A(n){let e,t,i,s,l;e=new me({props:{class:"form-field form-field-toggle",$$slots:{default:[gA,({uniqueId:u})=>({20:u}),({uniqueId:u})=>u?1048576:0]},$$scope:{ctx:n}}});const o=n[7].default,r=kt(o,n,n[15],qh);let a=n[0].enabled&&jh(n);return{c(){B(e.$$.fragment),t=D(),r&&r.c(),i=D(),a&&a.c(),s=we()},m(u,f){z(e,u,f),S(u,t,f),r&&r.m(u,f),S(u,i,f),a&&a.m(u,f),S(u,s,f),l=!0},p(u,[f]){const d={};f&1081361&&(d.$$scope={dirty:f,ctx:u}),e.$set(d),r&&r.p&&(!l||f&32775)&&St(r,o,u,u[15],l?wt(o,u[15],f,_A):$t(u[15]),qh),u[0].enabled?a?(a.p(u,f),f&1&&I(a,1)):(a=jh(u),a.c(),I(a,1),a.m(s.parentNode,s)):a&&(ue(),P(a,1,1,()=>{a=null}),fe())},i(u){l||(I(e.$$.fragment,u),I(r,u),I(a),l=!0)},o(u){P(e.$$.fragment,u),P(r,u),P(a),l=!1},d(u){H(e,u),u&&w(t),r&&r.d(u),u&&w(i),a&&a.d(u),u&&w(s)}}}const zr="s3_test_request";function TA(n,e,t){let{$$slots:i={},$$scope:s}=e,{originalConfig:l={}}=e,{config:o={}}=e,{configKey:r="s3"}=e,{toggleLabel:a="Enable S3"}=e,{testFilesystem:u="storage"}=e,{testError:f=null}=e,{isTesting:d=!1}=e,p=null,h=null;function g(E){t(2,d=!0),clearTimeout(h),h=setTimeout(()=>{_()},E)}async function _(){if(t(1,f=null),!o.enabled)return t(2,d=!1),f;de.cancelRequest(zr),clearTimeout(p),p=setTimeout(()=>{de.cancelRequest(zr),t(1,f=new Error("S3 test connection timeout.")),t(2,d=!1)},3e4),t(2,d=!0);let E;try{await de.settings.testS3(u,{$cancelKey:zr})}catch(A){E=A}return E!=null&&E.isAbort||(t(1,f=E),t(2,d=!1),clearTimeout(p)),f}Xt(()=>()=>{clearTimeout(p),clearTimeout(h)});function b(){o.enabled=this.checked,t(0,o)}function k(){o.endpoint=this.value,t(0,o)}function $(){o.bucket=this.value,t(0,o)}function C(){o.region=this.value,t(0,o)}function T(){o.accessKey=this.value,t(0,o)}function O(E){n.$$.not_equal(o.secret,E)&&(o.secret=E,t(0,o))}function M(){o.forcePathStyle=this.checked,t(0,o)}return n.$$set=E=>{"originalConfig"in E&&t(5,l=E.originalConfig),"config"in E&&t(0,o=E.config),"configKey"in E&&t(3,r=E.configKey),"toggleLabel"in E&&t(4,a=E.toggleLabel),"testFilesystem"in E&&t(6,u=E.testFilesystem),"testError"in E&&t(1,f=E.testError),"isTesting"in E&&t(2,d=E.isTesting),"$$scope"in E&&t(15,s=E.$$scope)},n.$$.update=()=>{n.$$.dirty&32&&l!=null&&l.enabled&&g(100),n.$$.dirty&9&&(o.enabled||ui(r))},[o,f,d,r,a,l,u,i,b,k,$,C,T,O,M,s]}class M1 extends ve{constructor(e){super(),be(this,e,TA,$A,_e,{originalConfig:5,config:0,configKey:3,toggleLabel:4,testFilesystem:6,testError:1,isTesting:2})}}function CA(n){var E;let e,t,i,s,l,o,r,a,u,f,d,p,h,g,_,b;function k(A){n[11](A)}function $(A){n[12](A)}function C(A){n[13](A)}let T={toggleLabel:"Use S3 storage",originalConfig:n[0].s3,$$slots:{default:[OA]},$$scope:{ctx:n}};n[1].s3!==void 0&&(T.config=n[1].s3),n[4]!==void 0&&(T.isTesting=n[4]),n[5]!==void 0&&(T.testError=n[5]),e=new M1({props:T}),ne.push(()=>pe(e,"config",k)),ne.push(()=>pe(e,"isTesting",$)),ne.push(()=>pe(e,"testError",C));let O=((E=n[1].s3)==null?void 0:E.enabled)&&!n[6]&&!n[3]&&zh(n),M=n[6]&&Hh(n);return{c(){B(e.$$.fragment),l=D(),o=y("div"),r=y("div"),a=D(),O&&O.c(),u=D(),M&&M.c(),f=D(),d=y("button"),p=y("span"),p.textContent="Save changes",m(r,"class","flex-fill"),m(p,"class","txt"),m(d,"type","submit"),m(d,"class","btn btn-expanded"),d.disabled=h=!n[6]||n[3],Q(d,"btn-loading",n[3]),m(o,"class","flex")},m(A,L){z(e,A,L),S(A,l,L),S(A,o,L),v(o,r),v(o,a),O&&O.m(o,null),v(o,u),M&&M.m(o,null),v(o,f),v(o,d),v(d,p),g=!0,_||(b=J(d,"click",n[15]),_=!0)},p(A,L){var q;const N={};L&1&&(N.originalConfig=A[0].s3),L&524291&&(N.$$scope={dirty:L,ctx:A}),!t&&L&2&&(t=!0,N.config=A[1].s3,ge(()=>t=!1)),!i&&L&16&&(i=!0,N.isTesting=A[4],ge(()=>i=!1)),!s&&L&32&&(s=!0,N.testError=A[5],ge(()=>s=!1)),e.$set(N),(q=A[1].s3)!=null&&q.enabled&&!A[6]&&!A[3]?O?O.p(A,L):(O=zh(A),O.c(),O.m(o,u)):O&&(O.d(1),O=null),A[6]?M?M.p(A,L):(M=Hh(A),M.c(),M.m(o,f)):M&&(M.d(1),M=null),(!g||L&72&&h!==(h=!A[6]||A[3]))&&(d.disabled=h),(!g||L&8)&&Q(d,"btn-loading",A[3])},i(A){g||(I(e.$$.fragment,A),g=!0)},o(A){P(e.$$.fragment,A),g=!1},d(A){H(e,A),A&&w(l),A&&w(o),O&&O.d(),M&&M.d(),_=!1,b()}}}function MA(n){let e;return{c(){e=y("div"),m(e,"class","loader")},m(t,i){S(t,e,i)},p:te,i:te,o:te,d(t){t&&w(e)}}}function Vh(n){var L;let e,t,i,s,l,o,r,a=(L=n[0].s3)!=null&&L.enabled?"S3 storage":"local file system",u,f,d,p=n[1].s3.enabled?"S3 storage":"local file system",h,g,_,b,k,$,C,T,O,M,E,A;return{c(){e=y("div"),t=y("div"),i=y("div"),i.innerHTML='',s=D(),l=y("div"),o=Y(`If you have existing uploaded files, you'll have to migrate them manually from the `),r=y("strong"),u=Y(a),f=Y(` @@ -221,6 +221,6 @@ Updated: ${b[1].updated}`,position:"left"}),k[0]&536870912&&p!==(p=b[29])&&m(d," `,m(e,"class","list-item list-item-placeholder svelte-1ulbkf5")},m(t,i){S(t,e,i)},p:te,d(t){t&&w(e)}}}function B_(n,e){let t,i,s,l,o,r=e[22].key+"",a,u,f,d,p=W.formattedFileSize(e[22].size)+"",h,g,_,b,k,$,C,T,O,M,E,A,L,N,q,F,R,V,j,U;function x(){return e[10](e[22])}function X(){return e[11](e[22])}function Z(){return e[12](e[22])}return{key:n,first:null,c(){t=y("div"),i=y("i"),s=D(),l=y("div"),o=y("span"),a=Y(r),u=D(),f=y("span"),d=Y("("),h=Y(p),g=Y(")"),_=D(),b=y("div"),k=y("button"),$=y("i"),T=D(),O=y("button"),M=y("i"),A=D(),L=y("button"),N=y("i"),F=D(),m(i,"class","ri-folder-zip-line"),m(o,"class","name backup-name svelte-1ulbkf5"),m(f,"class","size txt-hint txt-nowrap"),m(l,"class","content"),m($,"class","ri-download-line"),m(k,"type","button"),m(k,"class","btn btn-sm btn-circle btn-hint btn-transparent"),k.disabled=C=e[6][e[22].key]||e[5][e[22].key],m(k,"aria-label","Download"),Q(k,"btn-loading",e[5][e[22].key]),m(M,"class","ri-restart-line"),m(O,"type","button"),m(O,"class","btn btn-sm btn-circle btn-hint btn-transparent"),O.disabled=E=e[6][e[22].key],m(O,"aria-label","Restore"),m(N,"class","ri-delete-bin-7-line"),m(L,"type","button"),m(L,"class","btn btn-sm btn-circle btn-hint btn-transparent"),L.disabled=q=e[6][e[22].key],m(L,"aria-label","Delete"),Q(L,"btn-loading",e[6][e[22].key]),m(b,"class","actions nonintrusive"),m(t,"class","list-item svelte-1ulbkf5"),this.first=t},m(oe,ee){S(oe,t,ee),v(t,i),v(t,s),v(t,l),v(l,o),v(o,a),v(l,u),v(l,f),v(f,d),v(f,h),v(f,g),v(t,_),v(t,b),v(b,k),v(k,$),v(b,T),v(b,O),v(O,M),v(b,A),v(b,L),v(L,N),v(t,F),V=!0,j||(U=[Ee(Be.call(null,k,"Download")),J(k,"click",xe(x)),Ee(Be.call(null,O,"Restore")),J(O,"click",xe(X)),Ee(Be.call(null,L,"Delete")),J(L,"click",xe(Z))],j=!0)},p(oe,ee){e=oe,(!V||ee&8)&&r!==(r=e[22].key+"")&&le(a,r),(!V||ee&8)&&p!==(p=W.formattedFileSize(e[22].size)+"")&&le(h,p),(!V||ee&104&&C!==(C=e[6][e[22].key]||e[5][e[22].key]))&&(k.disabled=C),(!V||ee&40)&&Q(k,"btn-loading",e[5][e[22].key]),(!V||ee&72&&E!==(E=e[6][e[22].key]))&&(O.disabled=E),(!V||ee&72&&q!==(q=e[6][e[22].key]))&&(L.disabled=q),(!V||ee&72)&&Q(L,"btn-loading",e[6][e[22].key])},i(oe){V||(oe&&et(()=>{V&&(R||(R=Ve(t,rt,{duration:150},!0)),R.run(1))}),V=!0)},o(oe){oe&&(R||(R=Ve(t,rt,{duration:150},!1)),R.run(0)),V=!1},d(oe){oe&&w(t),oe&&R&&R.end(),j=!1,De(U)}}}function U_(n){let e;return{c(){e=y("div"),e.innerHTML=` `,m(e,"class","list-item list-item-loader svelte-1ulbkf5")},m(t,i){S(t,e,i)},p:te,d(t){t&&w(e)}}}function G8(n){let e,t,i;return{c(){e=y("span"),t=D(),i=y("span"),i.textContent="Backup/restore operation is in process",m(e,"class","loader loader-sm"),m(i,"class","txt")},m(s,l){S(s,e,l),S(s,t,l),S(s,i,l)},d(s){s&&w(e),s&&w(t),s&&w(i)}}}function X8(n){let e,t,i;return{c(){e=y("i"),t=D(),i=y("span"),i.textContent="Initialize new backup",m(e,"class","ri-play-circle-line"),m(i,"class","txt")},m(s,l){S(s,e,l),S(s,t,l),S(s,i,l)},d(s){s&&w(e),s&&w(t),s&&w(i)}}}function Q8(n){let e,t,i,s,l,o,r,a,u,f,d,p,h,g,_;const b=[Z8,J8],k=[];function $(A,L){return A[4]?0:1}i=$(n),s=k[i]=b[i](n);function C(A,L){return A[7]?X8:G8}let T=C(n),O=T(n),M={};f=new V8({props:M}),n[14](f),f.$on("submit",n[15]);let E={};return p=new K8({props:E}),n[16](p),{c(){e=y("div"),t=y("div"),s.c(),l=D(),o=y("div"),r=y("button"),O.c(),u=D(),B(f.$$.fragment),d=D(),B(p.$$.fragment),m(t,"class","list-content svelte-1ulbkf5"),m(r,"type","button"),m(r,"class","btn btn-block btn-transparent"),r.disabled=a=n[4]||!n[7],m(o,"class","list-item list-item-btn"),m(e,"class","list list-compact")},m(A,L){S(A,e,L),v(e,t),k[i].m(t,null),v(e,l),v(e,o),v(o,r),O.m(r,null),S(A,u,L),z(f,A,L),S(A,d,L),z(p,A,L),h=!0,g||(_=J(r,"click",n[13]),g=!0)},p(A,[L]){let N=i;i=$(A),i===N?k[i].p(A,L):(ue(),P(k[N],1,1,()=>{k[N]=null}),fe(),s=k[i],s?s.p(A,L):(s=k[i]=b[i](A),s.c()),I(s,1),s.m(t,null)),T!==(T=C(A))&&(O.d(1),O=T(A),O&&(O.c(),O.m(r,null))),(!h||L&144&&a!==(a=A[4]||!A[7]))&&(r.disabled=a);const q={};f.$set(q);const F={};p.$set(F)},i(A){h||(I(s),I(f.$$.fragment,A),I(p.$$.fragment,A),h=!0)},o(A){P(s),P(f.$$.fragment,A),P(p.$$.fragment,A),h=!1},d(A){A&&w(e),k[i].d(),O.d(),A&&w(u),n[14](null),H(f,A),A&&w(d),n[16](null),H(p,A),g=!1,_()}}}function x8(n,e,t){let i,s,l=[],o=!1,r={},a={},u=!0;f(),g();async function f(){t(4,o=!0);try{t(3,l=await de.backups.getFullList()),l.sort((M,E)=>M.modifiedE.modified?-1:0),t(4,o=!1)}catch(M){M.isAbort||(de.error(M),t(4,o=!1))}}async function d(M){if(!r[M]){t(5,r[M]=!0,r);try{const E=await de.getAdminFileToken(),A=de.backups.getDownloadUrl(E,M);W.download(A)}catch(E){E.isAbort||de.error(E)}delete r[M],t(5,r)}}function p(M){mn(`Do you really want to delete ${M}?`,()=>h(M))}async function h(M){if(!a[M]){t(6,a[M]=!0,a);try{await de.backups.delete(M),W.removeByKey(l,"name",M),f(),Ht(`Successfully deleted ${M}.`)}catch(E){E.isAbort||de.error(E)}delete a[M],t(6,a)}}async function g(){var M;try{const E=await de.health.check({$autoCancel:!1}),A=u;t(7,u=((M=E==null?void 0:E.data)==null?void 0:M.canBackup)||!1),A!=u&&u&&f()}catch{}}Xt(()=>{let M=setInterval(()=>{g()},3e3);return()=>{clearInterval(M)}});const _=M=>d(M.key),b=M=>s.show(M.key),k=M=>p(M.key),$=()=>i==null?void 0:i.show();function C(M){ne[M?"unshift":"push"](()=>{i=M,t(1,i)})}const T=()=>{f()};function O(M){ne[M?"unshift":"push"](()=>{s=M,t(2,s)})}return[f,i,s,l,o,r,a,u,d,p,_,b,k,$,C,T,O]}class eI extends ve{constructor(e){super(),be(this,e,x8,Q8,_e,{loadBackups:0})}get loadBackups(){return this.$$.ctx[0]}}function tI(n){let e;return{c(){e=y("i"),m(e,"class","ri-arrow-down-s-line")},m(t,i){S(t,e,i)},d(t){t&&w(e)}}}function nI(n){let e;return{c(){e=y("i"),m(e,"class","ri-arrow-up-s-line")},m(t,i){S(t,e,i)},d(t){t&&w(e)}}}function W_(n){var j,U,x;let e,t,i,s,l,o,r,a,u,f,d,p,h,g,_,b,k,$,C,T,O,M,E;t=new me({props:{class:"form-field form-field-toggle m-t-base m-b-0",$$slots:{default:[iI,({uniqueId:X})=>({32:X}),({uniqueId:X})=>[0,X?2:0]]},$$scope:{ctx:n}}});let A=n[2]&&Y_(n);function L(X){n[25](X)}function N(X){n[26](X)}function q(X){n[27](X)}let F={toggleLabel:"Store backups in S3 storage",testFilesystem:"backups",configKey:"backups.s3",originalConfig:(j=n[0].backups)==null?void 0:j.s3};n[1].backups.s3!==void 0&&(F.config=n[1].backups.s3),n[7]!==void 0&&(F.isTesting=n[7]),n[8]!==void 0&&(F.testError=n[8]),r=new M1({props:F}),ne.push(()=>pe(r,"config",L)),ne.push(()=>pe(r,"isTesting",N)),ne.push(()=>pe(r,"testError",q));let R=((x=(U=n[1].backups)==null?void 0:U.s3)==null?void 0:x.enabled)&&!n[9]&&!n[5]&&K_(n),V=n[9]&&J_(n);return{c(){e=y("form"),B(t.$$.fragment),i=D(),A&&A.c(),s=D(),l=y("div"),o=D(),B(r.$$.fragment),d=D(),p=y("div"),h=y("div"),g=D(),R&&R.c(),_=D(),V&&V.c(),b=D(),k=y("button"),$=y("span"),$.textContent="Save changes",m(l,"class","clearfix m-b-base"),m(h,"class","flex-fill"),m($,"class","txt"),m(k,"type","submit"),m(k,"class","btn btn-expanded"),k.disabled=C=!n[9]||n[5],Q(k,"btn-loading",n[5]),m(p,"class","flex"),m(e,"class","block"),m(e,"autocomplete","off")},m(X,Z){S(X,e,Z),z(t,e,null),v(e,i),A&&A.m(e,null),v(e,s),v(e,l),v(e,o),z(r,e,null),v(e,d),v(e,p),v(p,h),v(p,g),R&&R.m(p,null),v(p,_),V&&V.m(p,null),v(p,b),v(p,k),v(k,$),O=!0,M||(E=[J(k,"click",n[29]),J(e,"submit",xe(n[11]))],M=!0)},p(X,Z){var se,ye,$e;const oe={};Z[0]&4|Z[1]&6&&(oe.$$scope={dirty:Z,ctx:X}),t.$set(oe),X[2]?A?(A.p(X,Z),Z[0]&4&&I(A,1)):(A=Y_(X),A.c(),I(A,1),A.m(e,s)):A&&(ue(),P(A,1,1,()=>{A=null}),fe());const ee={};Z[0]&1&&(ee.originalConfig=(se=X[0].backups)==null?void 0:se.s3),!a&&Z[0]&2&&(a=!0,ee.config=X[1].backups.s3,ge(()=>a=!1)),!u&&Z[0]&128&&(u=!0,ee.isTesting=X[7],ge(()=>u=!1)),!f&&Z[0]&256&&(f=!0,ee.testError=X[8],ge(()=>f=!1)),r.$set(ee),($e=(ye=X[1].backups)==null?void 0:ye.s3)!=null&&$e.enabled&&!X[9]&&!X[5]?R?R.p(X,Z):(R=K_(X),R.c(),R.m(p,_)):R&&(R.d(1),R=null),X[9]?V?V.p(X,Z):(V=J_(X),V.c(),V.m(p,b)):V&&(V.d(1),V=null),(!O||Z[0]&544&&C!==(C=!X[9]||X[5]))&&(k.disabled=C),(!O||Z[0]&32)&&Q(k,"btn-loading",X[5])},i(X){O||(I(t.$$.fragment,X),I(A),I(r.$$.fragment,X),X&&et(()=>{O&&(T||(T=Ve(e,rt,{duration:150},!0)),T.run(1))}),O=!0)},o(X){P(t.$$.fragment,X),P(A),P(r.$$.fragment,X),X&&(T||(T=Ve(e,rt,{duration:150},!1)),T.run(0)),O=!1},d(X){X&&w(e),H(t),A&&A.d(),H(r),R&&R.d(),V&&V.d(),X&&T&&T.end(),M=!1,De(E)}}}function iI(n){let e,t,i,s,l,o,r,a;return{c(){e=y("input"),i=D(),s=y("label"),l=Y("Enable auto backups"),m(e,"type","checkbox"),m(e,"id",t=n[32]),e.required=!0,m(s,"for",o=n[32])},m(u,f){S(u,e,f),e.checked=n[2],S(u,i,f),S(u,s,f),v(s,l),r||(a=J(e,"change",n[18]),r=!0)},p(u,f){f[1]&2&&t!==(t=u[32])&&m(e,"id",t),f[0]&4&&(e.checked=u[2]),f[1]&2&&o!==(o=u[32])&&m(s,"for",o)},d(u){u&&w(e),u&&w(i),u&&w(s),r=!1,a()}}}function Y_(n){let e,t,i,s,l,o,r,a,u;return s=new me({props:{class:"form-field required",name:"backups.cron",$$slots:{default:[lI,({uniqueId:f})=>({32:f}),({uniqueId:f})=>[0,f?2:0]]},$$scope:{ctx:n}}}),r=new me({props:{class:"form-field required",name:"backups.cronMaxKeep",$$slots:{default:[oI,({uniqueId:f})=>({32:f}),({uniqueId:f})=>[0,f?2:0]]},$$scope:{ctx:n}}}),{c(){e=y("div"),t=y("div"),i=y("div"),B(s.$$.fragment),l=D(),o=y("div"),B(r.$$.fragment),m(i,"class","col-lg-6"),m(o,"class","col-lg-6"),m(t,"class","grid p-t-base p-b-sm"),m(e,"class","block")},m(f,d){S(f,e,d),v(e,t),v(t,i),z(s,i,null),v(t,l),v(t,o),z(r,o,null),u=!0},p(f,d){const p={};d[0]&3|d[1]&6&&(p.$$scope={dirty:d,ctx:f}),s.$set(p);const h={};d[0]&2|d[1]&6&&(h.$$scope={dirty:d,ctx:f}),r.$set(h)},i(f){u||(I(s.$$.fragment,f),I(r.$$.fragment,f),f&&et(()=>{u&&(a||(a=Ve(e,rt,{duration:150},!0)),a.run(1))}),u=!0)},o(f){P(s.$$.fragment,f),P(r.$$.fragment,f),f&&(a||(a=Ve(e,rt,{duration:150},!1)),a.run(0)),u=!1},d(f){f&&w(e),H(s),H(r),f&&a&&a.end()}}}function sI(n){let e,t,i,s,l,o,r,a,u;return{c(){e=y("button"),e.innerHTML='Every day at 00:00h',t=D(),i=y("button"),i.innerHTML='Every sunday at 00:00h',s=D(),l=y("button"),l.innerHTML='Every Mon and Wed at 00:00h',o=D(),r=y("button"),r.innerHTML='Every first day of the month at 00:00h',m(e,"type","button"),m(e,"class","dropdown-item closable"),m(i,"type","button"),m(i,"class","dropdown-item closable"),m(l,"type","button"),m(l,"class","dropdown-item closable"),m(r,"type","button"),m(r,"class","dropdown-item closable")},m(f,d){S(f,e,d),S(f,t,d),S(f,i,d),S(f,s,d),S(f,l,d),S(f,o,d),S(f,r,d),a||(u=[J(e,"click",n[20]),J(i,"click",n[21]),J(l,"click",n[22]),J(r,"click",n[23])],a=!0)},p:te,d(f){f&&w(e),f&&w(t),f&&w(i),f&&w(s),f&&w(l),f&&w(o),f&&w(r),a=!1,De(u)}}}function lI(n){let e,t,i,s,l,o,r,a,u,f,d,p,h,g,_,b,k,$,C,T;return _=new Jn({props:{class:"dropdown dropdown-nowrap dropdown-right",$$slots:{default:[sI]},$$scope:{ctx:n}}}),{c(){var O,M;e=y("label"),t=Y("Cron expression"),s=D(),l=y("input"),a=D(),u=y("div"),f=y("button"),d=y("span"),d.textContent="Presets",p=D(),h=y("i"),g=D(),B(_.$$.fragment),b=D(),k=y("div"),k.textContent="Only numeric list, steps or ranges are supported.",m(e,"for",i=n[32]),l.required=!0,m(l,"type","text"),m(l,"id",o=n[32]),m(l,"class","txt-lg txt-mono"),m(l,"placeholder","* * * * *"),l.autofocus=r=!((M=(O=n[0])==null?void 0:O.backups)!=null&&M.cron),m(d,"class","txt"),m(h,"class","ri-arrow-drop-down-fill"),m(f,"type","button"),m(f,"class","btn btn-sm btn-outline p-r-0"),m(u,"class","form-field-addon"),m(k,"class","help-block")},m(O,M){var E,A;S(O,e,M),v(e,t),S(O,s,M),S(O,l,M),ae(l,n[1].backups.cron),S(O,a,M),S(O,u,M),v(u,f),v(f,d),v(f,p),v(f,h),v(f,g),z(_,f,null),S(O,b,M),S(O,k,M),$=!0,(A=(E=n[0])==null?void 0:E.backups)!=null&&A.cron||l.focus(),C||(T=J(l,"input",n[19]),C=!0)},p(O,M){var A,L;(!$||M[1]&2&&i!==(i=O[32]))&&m(e,"for",i),(!$||M[1]&2&&o!==(o=O[32]))&&m(l,"id",o),(!$||M[0]&1&&r!==(r=!((L=(A=O[0])==null?void 0:A.backups)!=null&&L.cron)))&&(l.autofocus=r),M[0]&2&&l.value!==O[1].backups.cron&&ae(l,O[1].backups.cron);const E={};M[0]&2|M[1]&4&&(E.$$scope={dirty:M,ctx:O}),_.$set(E)},i(O){$||(I(_.$$.fragment,O),$=!0)},o(O){P(_.$$.fragment,O),$=!1},d(O){O&&w(e),O&&w(s),O&&w(l),O&&w(a),O&&w(u),H(_),O&&w(b),O&&w(k),C=!1,T()}}}function oI(n){let e,t,i,s,l,o,r,a;return{c(){e=y("label"),t=Y("Max @auto backups to keep"),s=D(),l=y("input"),m(e,"for",i=n[32]),m(l,"type","number"),m(l,"id",o=n[32]),m(l,"min","1")},m(u,f){S(u,e,f),v(e,t),S(u,s,f),S(u,l,f),ae(l,n[1].backups.cronMaxKeep),r||(a=J(l,"input",n[24]),r=!0)},p(u,f){f[1]&2&&i!==(i=u[32])&&m(e,"for",i),f[1]&2&&o!==(o=u[32])&&m(l,"id",o),f[0]&2&&mt(l.value)!==u[1].backups.cronMaxKeep&&ae(l,u[1].backups.cronMaxKeep)},d(u){u&&w(e),u&&w(s),u&&w(l),r=!1,a()}}}function K_(n){let e;function t(l,o){return l[7]?uI:l[8]?aI:rI}let i=t(n),s=i(n);return{c(){s.c(),e=we()},m(l,o){s.m(l,o),S(l,e,o)},p(l,o){i===(i=t(l))&&s?s.p(l,o):(s.d(1),s=i(l),s&&(s.c(),s.m(e.parentNode,e)))},d(l){s.d(l),l&&w(e)}}}function rI(n){let e;return{c(){e=y("div"),e.innerHTML=` S3 connected successfully`,m(e,"class","label label-sm label-success entrance-right")},m(t,i){S(t,e,i)},p:te,d(t){t&&w(e)}}}function aI(n){let e,t,i,s;return{c(){e=y("div"),e.innerHTML=` - Failed to establish S3 connection`,m(e,"class","label label-sm label-warning entrance-right")},m(l,o){var r;S(l,e,o),i||(s=Ee(t=Be.call(null,e,(r=n[8].data)==null?void 0:r.message)),i=!0)},p(l,o){var r;t&&jt(t.update)&&o[0]&256&&t.update.call(null,(r=l[8].data)==null?void 0:r.message)},d(l){l&&w(e),i=!1,s()}}}function uI(n){let e;return{c(){e=y("span"),m(e,"class","loader loader-sm")},m(t,i){S(t,e,i)},p:te,d(t){t&&w(e)}}}function J_(n){let e,t,i,s,l;return{c(){e=y("button"),t=y("span"),t.textContent="Reset",m(t,"class","txt"),m(e,"type","submit"),m(e,"class","btn btn-hint btn-transparent"),e.disabled=i=!n[9]||n[5]},m(o,r){S(o,e,r),v(e,t),s||(l=J(e,"click",n[28]),s=!0)},p(o,r){r[0]&544&&i!==(i=!o[9]||o[5])&&(e.disabled=i)},d(o){o&&w(e),s=!1,l()}}}function fI(n){let e,t,i,s,l,o,r,a,u,f,d,p,h,g,_,b,k,$,C,T,O,M,E,A,L;h=new Zo({props:{class:"btn-sm",tooltip:"Reload backups list"}}),h.$on("refresh",n[15]);let N={};_=new eI({props:N}),n[16](_);function q(j,U){return j[6]?nI:tI}let F=q(n),R=F(n),V=n[6]&&!n[4]&&W_(n);return{c(){e=y("header"),t=y("nav"),i=y("div"),i.textContent="Settings",s=D(),l=y("div"),o=Y(n[10]),r=D(),a=y("div"),u=y("div"),f=y("div"),d=y("span"),d.textContent="Backup and restore your PocketBase data",p=D(),B(h.$$.fragment),g=D(),B(_.$$.fragment),b=D(),k=y("hr"),$=D(),C=y("button"),T=y("span"),T.textContent="Backups options",O=D(),R.c(),M=D(),V&&V.c(),m(i,"class","breadcrumb-item"),m(l,"class","breadcrumb-item"),m(t,"class","breadcrumbs"),m(e,"class","page-header"),m(d,"class","txt-xl"),m(f,"class","flex m-b-sm flex-gap-5"),m(T,"class","txt"),m(C,"type","button"),m(C,"class","btn btn-secondary"),C.disabled=n[4],Q(C,"btn-loading",n[4]),m(u,"class","panel"),m(u,"autocomplete","off"),m(a,"class","wrapper")},m(j,U){S(j,e,U),v(e,t),v(t,i),v(t,s),v(t,l),v(l,o),S(j,r,U),S(j,a,U),v(a,u),v(u,f),v(f,d),v(f,p),z(h,f,null),v(u,g),z(_,u,null),v(u,b),v(u,k),v(u,$),v(u,C),v(C,T),v(C,O),R.m(C,null),v(u,M),V&&V.m(u,null),E=!0,A||(L=[J(C,"click",n[17]),J(u,"submit",xe(n[11]))],A=!0)},p(j,U){(!E||U[0]&1024)&&le(o,j[10]);const x={};_.$set(x),F!==(F=q(j))&&(R.d(1),R=F(j),R&&(R.c(),R.m(C,null))),(!E||U[0]&16)&&(C.disabled=j[4]),(!E||U[0]&16)&&Q(C,"btn-loading",j[4]),j[6]&&!j[4]?V?(V.p(j,U),U[0]&80&&I(V,1)):(V=W_(j),V.c(),I(V,1),V.m(u,null)):V&&(ue(),P(V,1,1,()=>{V=null}),fe())},i(j){E||(I(h.$$.fragment,j),I(_.$$.fragment,j),I(V),E=!0)},o(j){P(h.$$.fragment,j),P(_.$$.fragment,j),P(V),E=!1},d(j){j&&w(e),j&&w(r),j&&w(a),H(h),n[16](null),H(_),R.d(),V&&V.d(),A=!1,De(L)}}}function cI(n){let e,t,i,s;return e=new Mi({}),i=new Sn({props:{$$slots:{default:[fI]},$$scope:{ctx:n}}}),{c(){B(e.$$.fragment),t=D(),B(i.$$.fragment)},m(l,o){z(e,l,o),S(l,t,o),z(i,l,o),s=!0},p(l,o){const r={};o[0]&2047|o[1]&4&&(r.$$scope={dirty:o,ctx:l}),i.$set(r)},i(l){s||(I(e.$$.fragment,l),I(i.$$.fragment,l),s=!0)},o(l){P(e.$$.fragment,l),P(i.$$.fragment,l),s=!1},d(l){H(e,l),l&&w(t),H(i,l)}}}function dI(n,e,t){let i,s;Ze(n,Mt,Z=>t(10,s=Z)),ln(Mt,s="Backups",s);let l,o={},r={},a=!1,u=!1,f="",d=!1,p=!1,h=!1,g=null;_();async function _(){t(4,a=!0);try{const Z=await de.settings.getAll()||{};k(Z)}catch(Z){de.error(Z)}t(4,a=!1)}async function b(){if(!(u||!i)){t(5,u=!0);try{const Z=await de.settings.update(W.filterRedactedProps(r));await C(),k(Z),Ht("Successfully saved application settings.")}catch(Z){de.error(Z)}t(5,u=!1)}}function k(Z={}){t(1,r={backups:(Z==null?void 0:Z.backups)||{}}),t(2,d=r.backups.cron!=""),t(0,o=JSON.parse(JSON.stringify(r)))}function $(){t(1,r=JSON.parse(JSON.stringify(o||{backups:{}}))),t(2,d=r.backups.cron!="")}async function C(){await(l==null?void 0:l.loadBackups())}const T=()=>C();function O(Z){ne[Z?"unshift":"push"](()=>{l=Z,t(3,l)})}const M=()=>t(6,p=!p);function E(){d=this.checked,t(2,d)}function A(){r.backups.cron=this.value,t(1,r),t(2,d)}const L=()=>{t(1,r.backups.cron="0 0 * * *",r)},N=()=>{t(1,r.backups.cron="0 0 * * 0",r)},q=()=>{t(1,r.backups.cron="0 0 * * 1,3",r)},F=()=>{t(1,r.backups.cron="0 0 1 * *",r)};function R(){r.backups.cronMaxKeep=mt(this.value),t(1,r),t(2,d)}function V(Z){n.$$.not_equal(r.backups.s3,Z)&&(r.backups.s3=Z,t(1,r),t(2,d))}function j(Z){h=Z,t(7,h)}function U(Z){g=Z,t(8,g)}const x=()=>$(),X=()=>b();return n.$$.update=()=>{var Z;n.$$.dirty[0]&1&&t(14,f=JSON.stringify(o)),n.$$.dirty[0]&6&&!d&&(Z=r==null?void 0:r.backups)!=null&&Z.cron&&(ui("backups.cron"),t(1,r.backups.cron="",r)),n.$$.dirty[0]&16386&&t(9,i=f!=JSON.stringify(r))},[o,r,d,l,a,u,p,h,g,i,s,b,$,C,f,T,O,M,E,A,L,N,q,F,R,V,j,U,x,X]}class pI extends ve{constructor(e){super(),be(this,e,dI,cI,_e,{},null,[-1,-1])}}const zt=[async n=>{const e=new URLSearchParams(window.location.search);return n.location!=="/"&&e.has("installer")?Vi("/"):!0}],mI={"/login":Lt({component:kD,conditions:zt.concat([n=>!de.authStore.isValid]),userData:{showAppSidebar:!1}}),"/request-password-reset":Lt({asyncComponent:()=>ut(()=>import("./PageAdminRequestPasswordReset-d01d0920.js"),[],import.meta.url),conditions:zt.concat([n=>!de.authStore.isValid]),userData:{showAppSidebar:!1}}),"/confirm-password-reset/:token":Lt({asyncComponent:()=>ut(()=>import("./PageAdminConfirmPasswordReset-af82cd77.js"),[],import.meta.url),conditions:zt.concat([n=>!de.authStore.isValid]),userData:{showAppSidebar:!1}}),"/collections":Lt({component:WE,conditions:zt.concat([n=>de.authStore.isValid]),userData:{showAppSidebar:!0}}),"/logs":Lt({component:F$,conditions:zt.concat([n=>de.authStore.isValid]),userData:{showAppSidebar:!0}}),"/settings":Lt({component:AD,conditions:zt.concat([n=>de.authStore.isValid]),userData:{showAppSidebar:!0}}),"/settings/admins":Lt({component:hD,conditions:zt.concat([n=>de.authStore.isValid]),userData:{showAppSidebar:!0}}),"/settings/mail":Lt({component:hA,conditions:zt.concat([n=>de.authStore.isValid]),userData:{showAppSidebar:!0}}),"/settings/storage":Lt({component:FA,conditions:zt.concat([n=>de.authStore.isValid]),userData:{showAppSidebar:!0}}),"/settings/auth-providers":Lt({component:xA,conditions:zt.concat([n=>de.authStore.isValid]),userData:{showAppSidebar:!0}}),"/settings/tokens":Lt({component:a8,conditions:zt.concat([n=>de.authStore.isValid]),userData:{showAppSidebar:!0}}),"/settings/export-collections":Lt({component:m8,conditions:zt.concat([n=>de.authStore.isValid]),userData:{showAppSidebar:!0}}),"/settings/import-collections":Lt({component:L8,conditions:zt.concat([n=>de.authStore.isValid]),userData:{showAppSidebar:!0}}),"/settings/backups":Lt({component:pI,conditions:zt.concat([n=>de.authStore.isValid]),userData:{showAppSidebar:!0}}),"/users/confirm-password-reset/:token":Lt({asyncComponent:()=>ut(()=>import("./PageRecordConfirmPasswordReset-6c2514b3.js"),[],import.meta.url),conditions:zt,userData:{showAppSidebar:!1}}),"/auth/confirm-password-reset/:token":Lt({asyncComponent:()=>ut(()=>import("./PageRecordConfirmPasswordReset-6c2514b3.js"),[],import.meta.url),conditions:zt,userData:{showAppSidebar:!1}}),"/users/confirm-verification/:token":Lt({asyncComponent:()=>ut(()=>import("./PageRecordConfirmVerification-263c8bd5.js"),[],import.meta.url),conditions:zt,userData:{showAppSidebar:!1}}),"/auth/confirm-verification/:token":Lt({asyncComponent:()=>ut(()=>import("./PageRecordConfirmVerification-263c8bd5.js"),[],import.meta.url),conditions:zt,userData:{showAppSidebar:!1}}),"/users/confirm-email-change/:token":Lt({asyncComponent:()=>ut(()=>import("./PageRecordConfirmEmailChange-0c791012.js"),[],import.meta.url),conditions:zt,userData:{showAppSidebar:!1}}),"/auth/confirm-email-change/:token":Lt({asyncComponent:()=>ut(()=>import("./PageRecordConfirmEmailChange-0c791012.js"),[],import.meta.url),conditions:zt,userData:{showAppSidebar:!1}}),"/auth/oauth2-redirect":Lt({asyncComponent:()=>ut(()=>import("./PageOAuth2Redirect-ea5d5f39.js"),[],import.meta.url),conditions:zt,userData:{showAppSidebar:!1}}),"*":Lt({component:ik,userData:{showAppSidebar:!1}})};function hI(n,{from:e,to:t},i={}){const s=getComputedStyle(n),l=s.transform==="none"?"":s.transform,[o,r]=s.transformOrigin.split(" ").map(parseFloat),a=e.left+e.width*o/t.width-(t.left+o),u=e.top+e.height*r/t.height-(t.top+r),{delay:f=0,duration:d=h=>Math.sqrt(h)*120,easing:p=Ko}=i;return{delay:f,duration:jt(d)?d(Math.sqrt(a*a+u*u)):d,easing:p,css:(h,g)=>{const _=g*a,b=g*u,k=h+g*e.width/t.width,$=h+g*e.height/t.height;return`transform: ${l} translate(${_}px, ${b}px) scale(${k}, ${$});`}}}function Z_(n,e,t){const i=n.slice();return i[2]=e[t],i}function _I(n){let e;return{c(){e=y("i"),m(e,"class","ri-alert-line")},m(t,i){S(t,e,i)},d(t){t&&w(e)}}}function gI(n){let e;return{c(){e=y("i"),m(e,"class","ri-error-warning-line")},m(t,i){S(t,e,i)},d(t){t&&w(e)}}}function bI(n){let e;return{c(){e=y("i"),m(e,"class","ri-checkbox-circle-line")},m(t,i){S(t,e,i)},d(t){t&&w(e)}}}function vI(n){let e;return{c(){e=y("i"),m(e,"class","ri-information-line")},m(t,i){S(t,e,i)},d(t){t&&w(e)}}}function G_(n,e){let t,i,s,l,o=e[2].message+"",r,a,u,f,d,p,h,g=te,_,b,k;function $(M,E){return M[2].type==="info"?vI:M[2].type==="success"?bI:M[2].type==="warning"?gI:_I}let C=$(e),T=C(e);function O(){return e[1](e[2])}return{key:n,first:null,c(){t=y("div"),i=y("div"),T.c(),s=D(),l=y("div"),r=Y(o),a=D(),u=y("button"),u.innerHTML='',f=D(),m(i,"class","icon"),m(l,"class","content"),m(u,"type","button"),m(u,"class","close"),m(t,"class","alert txt-break"),Q(t,"alert-info",e[2].type=="info"),Q(t,"alert-success",e[2].type=="success"),Q(t,"alert-danger",e[2].type=="error"),Q(t,"alert-warning",e[2].type=="warning"),this.first=t},m(M,E){S(M,t,E),v(t,i),T.m(i,null),v(t,s),v(t,l),v(l,r),v(t,a),v(t,u),v(t,f),_=!0,b||(k=J(u,"click",xe(O)),b=!0)},p(M,E){e=M,C!==(C=$(e))&&(T.d(1),T=C(e),T&&(T.c(),T.m(i,null))),(!_||E&1)&&o!==(o=e[2].message+"")&&le(r,o),(!_||E&1)&&Q(t,"alert-info",e[2].type=="info"),(!_||E&1)&&Q(t,"alert-success",e[2].type=="success"),(!_||E&1)&&Q(t,"alert-danger",e[2].type=="error"),(!_||E&1)&&Q(t,"alert-warning",e[2].type=="warning")},r(){h=t.getBoundingClientRect()},f(){Q1(t),g(),lg(t,h)},a(){g(),g=X1(t,h,hI,{duration:150})},i(M){_||(et(()=>{_&&(p&&p.end(1),d=ag(t,rt,{duration:150}),d.start())}),_=!0)},o(M){d&&d.invalidate(),p=Ta(t,na,{duration:150}),_=!1},d(M){M&&w(t),T.d(),M&&p&&p.end(),b=!1,k()}}}function yI(n){let e,t=[],i=new Map,s,l=n[0];const o=r=>r[2].message;for(let r=0;rt(0,i=l)),[i,l=>_b(l)]}class wI extends ve{constructor(e){super(),be(this,e,kI,yI,_e,{})}}function SI(n){var s;let e,t=((s=n[1])==null?void 0:s.text)+"",i;return{c(){e=y("h4"),i=Y(t),m(e,"class","block center txt-break"),m(e,"slot","header")},m(l,o){S(l,e,o),v(e,i)},p(l,o){var r;o&2&&t!==(t=((r=l[1])==null?void 0:r.text)+"")&&le(i,t)},d(l){l&&w(e)}}}function $I(n){let e,t,i,s,l,o,r;return{c(){e=y("button"),t=y("span"),t.textContent="No",i=D(),s=y("button"),l=y("span"),l.textContent="Yes",m(t,"class","txt"),e.autofocus=!0,m(e,"type","button"),m(e,"class","btn btn-transparent btn-expanded-sm"),e.disabled=n[2],m(l,"class","txt"),m(s,"type","button"),m(s,"class","btn btn-danger btn-expanded"),s.disabled=n[2],Q(s,"btn-loading",n[2])},m(a,u){S(a,e,u),v(e,t),S(a,i,u),S(a,s,u),v(s,l),e.focus(),o||(r=[J(e,"click",n[4]),J(s,"click",n[5])],o=!0)},p(a,u){u&4&&(e.disabled=a[2]),u&4&&(s.disabled=a[2]),u&4&&Q(s,"btn-loading",a[2])},d(a){a&&w(e),a&&w(i),a&&w(s),o=!1,De(r)}}}function TI(n){let e,t,i={class:"confirm-popup hide-content overlay-panel-sm",overlayClose:!n[2],escClose:!n[2],btnClose:!1,popup:!0,$$slots:{footer:[$I],header:[SI]},$$scope:{ctx:n}};return e=new on({props:i}),n[6](e),e.$on("hide",n[7]),{c(){B(e.$$.fragment)},m(s,l){z(e,s,l),t=!0},p(s,[l]){const o={};l&4&&(o.overlayClose=!s[2]),l&4&&(o.escClose=!s[2]),l&271&&(o.$$scope={dirty:l,ctx:s}),e.$set(o)},i(s){t||(I(e.$$.fragment,s),t=!0)},o(s){P(e.$$.fragment,s),t=!1},d(s){n[6](null),H(e,s)}}}function CI(n,e,t){let i;Ze(n,uu,d=>t(1,i=d));let s,l=!1,o=!1;const r=()=>{t(3,o=!1),s==null||s.hide()},a=async()=>{i!=null&&i.yesCallback&&(t(2,l=!0),await Promise.resolve(i.yesCallback()),t(2,l=!1)),t(3,o=!0),s==null||s.hide()};function u(d){ne[d?"unshift":"push"](()=>{s=d,t(0,s)})}const f=async()=>{!o&&(i!=null&&i.noCallback)&&i.noCallback(),await cn(),t(3,o=!1),y1()};return n.$$.update=()=>{n.$$.dirty&3&&i!=null&&i.text&&(t(3,o=!1),s==null||s.show())},[s,i,l,o,r,a,u,f]}class MI extends ve{constructor(e){super(),be(this,e,CI,TI,_e,{})}}function X_(n){let e,t,i,s,l,o,r,a,u,f,d,p,h,g,_,b,k,$;return _=new Jn({props:{class:"dropdown dropdown-nowrap dropdown-upside dropdown-left",$$slots:{default:[OI]},$$scope:{ctx:n}}}),{c(){var C;e=y("aside"),t=y("a"),t.innerHTML='PocketBase logo',i=D(),s=y("nav"),l=y("a"),l.innerHTML='',o=D(),r=y("a"),r.innerHTML='',a=D(),u=y("a"),u.innerHTML='',f=D(),d=y("figure"),p=y("img"),g=D(),B(_.$$.fragment),m(t,"href","/"),m(t,"class","logo logo-sm"),m(l,"href","/collections"),m(l,"class","menu-item"),m(l,"aria-label","Collections"),m(r,"href","/logs"),m(r,"class","menu-item"),m(r,"aria-label","Logs"),m(u,"href","/settings"),m(u,"class","menu-item"),m(u,"aria-label","Settings"),m(s,"class","main-menu"),_n(p.src,h="./images/avatars/avatar"+(((C=n[0])==null?void 0:C.avatar)||0)+".svg")||m(p,"src",h),m(p,"alt","Avatar"),m(d,"class","thumb thumb-circle link-hint closable"),m(e,"class","app-sidebar")},m(C,T){S(C,e,T),v(e,t),v(e,i),v(e,s),v(s,l),v(s,o),v(s,r),v(s,a),v(s,u),v(e,f),v(e,d),v(d,p),v(d,g),z(_,d,null),b=!0,k||($=[Ee(rn.call(null,t)),Ee(rn.call(null,l)),Ee(zn.call(null,l,{path:"/collections/?.*",className:"current-route"})),Ee(Be.call(null,l,{text:"Collections",position:"right"})),Ee(rn.call(null,r)),Ee(zn.call(null,r,{path:"/logs/?.*",className:"current-route"})),Ee(Be.call(null,r,{text:"Logs",position:"right"})),Ee(rn.call(null,u)),Ee(zn.call(null,u,{path:"/settings/?.*",className:"current-route"})),Ee(Be.call(null,u,{text:"Settings",position:"right"}))],k=!0)},p(C,T){var M;(!b||T&1&&!_n(p.src,h="./images/avatars/avatar"+(((M=C[0])==null?void 0:M.avatar)||0)+".svg"))&&m(p,"src",h);const O={};T&4096&&(O.$$scope={dirty:T,ctx:C}),_.$set(O)},i(C){b||(I(_.$$.fragment,C),b=!0)},o(C){P(_.$$.fragment,C),b=!1},d(C){C&&w(e),H(_),k=!1,De($)}}}function OI(n){let e,t,i,s,l,o,r;return{c(){e=y("a"),e.innerHTML=` + Failed to establish S3 connection`,m(e,"class","label label-sm label-warning entrance-right")},m(l,o){var r;S(l,e,o),i||(s=Ee(t=Be.call(null,e,(r=n[8].data)==null?void 0:r.message)),i=!0)},p(l,o){var r;t&&jt(t.update)&&o[0]&256&&t.update.call(null,(r=l[8].data)==null?void 0:r.message)},d(l){l&&w(e),i=!1,s()}}}function uI(n){let e;return{c(){e=y("span"),m(e,"class","loader loader-sm")},m(t,i){S(t,e,i)},p:te,d(t){t&&w(e)}}}function J_(n){let e,t,i,s,l;return{c(){e=y("button"),t=y("span"),t.textContent="Reset",m(t,"class","txt"),m(e,"type","submit"),m(e,"class","btn btn-hint btn-transparent"),e.disabled=i=!n[9]||n[5]},m(o,r){S(o,e,r),v(e,t),s||(l=J(e,"click",n[28]),s=!0)},p(o,r){r[0]&544&&i!==(i=!o[9]||o[5])&&(e.disabled=i)},d(o){o&&w(e),s=!1,l()}}}function fI(n){let e,t,i,s,l,o,r,a,u,f,d,p,h,g,_,b,k,$,C,T,O,M,E,A,L;h=new Zo({props:{class:"btn-sm",tooltip:"Reload backups list"}}),h.$on("refresh",n[15]);let N={};_=new eI({props:N}),n[16](_);function q(j,U){return j[6]?nI:tI}let F=q(n),R=F(n),V=n[6]&&!n[4]&&W_(n);return{c(){e=y("header"),t=y("nav"),i=y("div"),i.textContent="Settings",s=D(),l=y("div"),o=Y(n[10]),r=D(),a=y("div"),u=y("div"),f=y("div"),d=y("span"),d.textContent="Backup and restore your PocketBase data",p=D(),B(h.$$.fragment),g=D(),B(_.$$.fragment),b=D(),k=y("hr"),$=D(),C=y("button"),T=y("span"),T.textContent="Backups options",O=D(),R.c(),M=D(),V&&V.c(),m(i,"class","breadcrumb-item"),m(l,"class","breadcrumb-item"),m(t,"class","breadcrumbs"),m(e,"class","page-header"),m(d,"class","txt-xl"),m(f,"class","flex m-b-sm flex-gap-5"),m(T,"class","txt"),m(C,"type","button"),m(C,"class","btn btn-secondary"),C.disabled=n[4],Q(C,"btn-loading",n[4]),m(u,"class","panel"),m(u,"autocomplete","off"),m(a,"class","wrapper")},m(j,U){S(j,e,U),v(e,t),v(t,i),v(t,s),v(t,l),v(l,o),S(j,r,U),S(j,a,U),v(a,u),v(u,f),v(f,d),v(f,p),z(h,f,null),v(u,g),z(_,u,null),v(u,b),v(u,k),v(u,$),v(u,C),v(C,T),v(C,O),R.m(C,null),v(u,M),V&&V.m(u,null),E=!0,A||(L=[J(C,"click",n[17]),J(u,"submit",xe(n[11]))],A=!0)},p(j,U){(!E||U[0]&1024)&&le(o,j[10]);const x={};_.$set(x),F!==(F=q(j))&&(R.d(1),R=F(j),R&&(R.c(),R.m(C,null))),(!E||U[0]&16)&&(C.disabled=j[4]),(!E||U[0]&16)&&Q(C,"btn-loading",j[4]),j[6]&&!j[4]?V?(V.p(j,U),U[0]&80&&I(V,1)):(V=W_(j),V.c(),I(V,1),V.m(u,null)):V&&(ue(),P(V,1,1,()=>{V=null}),fe())},i(j){E||(I(h.$$.fragment,j),I(_.$$.fragment,j),I(V),E=!0)},o(j){P(h.$$.fragment,j),P(_.$$.fragment,j),P(V),E=!1},d(j){j&&w(e),j&&w(r),j&&w(a),H(h),n[16](null),H(_),R.d(),V&&V.d(),A=!1,De(L)}}}function cI(n){let e,t,i,s;return e=new Mi({}),i=new Sn({props:{$$slots:{default:[fI]},$$scope:{ctx:n}}}),{c(){B(e.$$.fragment),t=D(),B(i.$$.fragment)},m(l,o){z(e,l,o),S(l,t,o),z(i,l,o),s=!0},p(l,o){const r={};o[0]&2047|o[1]&4&&(r.$$scope={dirty:o,ctx:l}),i.$set(r)},i(l){s||(I(e.$$.fragment,l),I(i.$$.fragment,l),s=!0)},o(l){P(e.$$.fragment,l),P(i.$$.fragment,l),s=!1},d(l){H(e,l),l&&w(t),H(i,l)}}}function dI(n,e,t){let i,s;Ze(n,Mt,Z=>t(10,s=Z)),ln(Mt,s="Backups",s);let l,o={},r={},a=!1,u=!1,f="",d=!1,p=!1,h=!1,g=null;_();async function _(){t(4,a=!0);try{const Z=await de.settings.getAll()||{};k(Z)}catch(Z){de.error(Z)}t(4,a=!1)}async function b(){if(!(u||!i)){t(5,u=!0);try{const Z=await de.settings.update(W.filterRedactedProps(r));await C(),k(Z),Ht("Successfully saved application settings.")}catch(Z){de.error(Z)}t(5,u=!1)}}function k(Z={}){t(1,r={backups:(Z==null?void 0:Z.backups)||{}}),t(2,d=r.backups.cron!=""),t(0,o=JSON.parse(JSON.stringify(r)))}function $(){t(1,r=JSON.parse(JSON.stringify(o||{backups:{}}))),t(2,d=r.backups.cron!="")}async function C(){await(l==null?void 0:l.loadBackups())}const T=()=>C();function O(Z){ne[Z?"unshift":"push"](()=>{l=Z,t(3,l)})}const M=()=>t(6,p=!p);function E(){d=this.checked,t(2,d)}function A(){r.backups.cron=this.value,t(1,r),t(2,d)}const L=()=>{t(1,r.backups.cron="0 0 * * *",r)},N=()=>{t(1,r.backups.cron="0 0 * * 0",r)},q=()=>{t(1,r.backups.cron="0 0 * * 1,3",r)},F=()=>{t(1,r.backups.cron="0 0 1 * *",r)};function R(){r.backups.cronMaxKeep=mt(this.value),t(1,r),t(2,d)}function V(Z){n.$$.not_equal(r.backups.s3,Z)&&(r.backups.s3=Z,t(1,r),t(2,d))}function j(Z){h=Z,t(7,h)}function U(Z){g=Z,t(8,g)}const x=()=>$(),X=()=>b();return n.$$.update=()=>{var Z;n.$$.dirty[0]&1&&t(14,f=JSON.stringify(o)),n.$$.dirty[0]&6&&!d&&(Z=r==null?void 0:r.backups)!=null&&Z.cron&&(ui("backups.cron"),t(1,r.backups.cron="",r)),n.$$.dirty[0]&16386&&t(9,i=f!=JSON.stringify(r))},[o,r,d,l,a,u,p,h,g,i,s,b,$,C,f,T,O,M,E,A,L,N,q,F,R,V,j,U,x,X]}class pI extends ve{constructor(e){super(),be(this,e,dI,cI,_e,{},null,[-1,-1])}}const zt=[async n=>{const e=new URLSearchParams(window.location.search);return n.location!=="/"&&e.has("installer")?Vi("/"):!0}],mI={"/login":Lt({component:kD,conditions:zt.concat([n=>!de.authStore.isValid]),userData:{showAppSidebar:!1}}),"/request-password-reset":Lt({asyncComponent:()=>ut(()=>import("./PageAdminRequestPasswordReset-b4edd74d.js"),[],import.meta.url),conditions:zt.concat([n=>!de.authStore.isValid]),userData:{showAppSidebar:!1}}),"/confirm-password-reset/:token":Lt({asyncComponent:()=>ut(()=>import("./PageAdminConfirmPasswordReset-0496da25.js"),[],import.meta.url),conditions:zt.concat([n=>!de.authStore.isValid]),userData:{showAppSidebar:!1}}),"/collections":Lt({component:WE,conditions:zt.concat([n=>de.authStore.isValid]),userData:{showAppSidebar:!0}}),"/logs":Lt({component:F$,conditions:zt.concat([n=>de.authStore.isValid]),userData:{showAppSidebar:!0}}),"/settings":Lt({component:AD,conditions:zt.concat([n=>de.authStore.isValid]),userData:{showAppSidebar:!0}}),"/settings/admins":Lt({component:hD,conditions:zt.concat([n=>de.authStore.isValid]),userData:{showAppSidebar:!0}}),"/settings/mail":Lt({component:hA,conditions:zt.concat([n=>de.authStore.isValid]),userData:{showAppSidebar:!0}}),"/settings/storage":Lt({component:FA,conditions:zt.concat([n=>de.authStore.isValid]),userData:{showAppSidebar:!0}}),"/settings/auth-providers":Lt({component:xA,conditions:zt.concat([n=>de.authStore.isValid]),userData:{showAppSidebar:!0}}),"/settings/tokens":Lt({component:a8,conditions:zt.concat([n=>de.authStore.isValid]),userData:{showAppSidebar:!0}}),"/settings/export-collections":Lt({component:m8,conditions:zt.concat([n=>de.authStore.isValid]),userData:{showAppSidebar:!0}}),"/settings/import-collections":Lt({component:L8,conditions:zt.concat([n=>de.authStore.isValid]),userData:{showAppSidebar:!0}}),"/settings/backups":Lt({component:pI,conditions:zt.concat([n=>de.authStore.isValid]),userData:{showAppSidebar:!0}}),"/users/confirm-password-reset/:token":Lt({asyncComponent:()=>ut(()=>import("./PageRecordConfirmPasswordReset-37905e2b.js"),[],import.meta.url),conditions:zt,userData:{showAppSidebar:!1}}),"/auth/confirm-password-reset/:token":Lt({asyncComponent:()=>ut(()=>import("./PageRecordConfirmPasswordReset-37905e2b.js"),[],import.meta.url),conditions:zt,userData:{showAppSidebar:!1}}),"/users/confirm-verification/:token":Lt({asyncComponent:()=>ut(()=>import("./PageRecordConfirmVerification-9b0d0fd9.js"),[],import.meta.url),conditions:zt,userData:{showAppSidebar:!1}}),"/auth/confirm-verification/:token":Lt({asyncComponent:()=>ut(()=>import("./PageRecordConfirmVerification-9b0d0fd9.js"),[],import.meta.url),conditions:zt,userData:{showAppSidebar:!1}}),"/users/confirm-email-change/:token":Lt({asyncComponent:()=>ut(()=>import("./PageRecordConfirmEmailChange-5fa0e2cd.js"),[],import.meta.url),conditions:zt,userData:{showAppSidebar:!1}}),"/auth/confirm-email-change/:token":Lt({asyncComponent:()=>ut(()=>import("./PageRecordConfirmEmailChange-5fa0e2cd.js"),[],import.meta.url),conditions:zt,userData:{showAppSidebar:!1}}),"/auth/oauth2-redirect":Lt({asyncComponent:()=>ut(()=>import("./PageOAuth2Redirect-62ebe949.js"),[],import.meta.url),conditions:zt,userData:{showAppSidebar:!1}}),"*":Lt({component:ik,userData:{showAppSidebar:!1}})};function hI(n,{from:e,to:t},i={}){const s=getComputedStyle(n),l=s.transform==="none"?"":s.transform,[o,r]=s.transformOrigin.split(" ").map(parseFloat),a=e.left+e.width*o/t.width-(t.left+o),u=e.top+e.height*r/t.height-(t.top+r),{delay:f=0,duration:d=h=>Math.sqrt(h)*120,easing:p=Ko}=i;return{delay:f,duration:jt(d)?d(Math.sqrt(a*a+u*u)):d,easing:p,css:(h,g)=>{const _=g*a,b=g*u,k=h+g*e.width/t.width,$=h+g*e.height/t.height;return`transform: ${l} translate(${_}px, ${b}px) scale(${k}, ${$});`}}}function Z_(n,e,t){const i=n.slice();return i[2]=e[t],i}function _I(n){let e;return{c(){e=y("i"),m(e,"class","ri-alert-line")},m(t,i){S(t,e,i)},d(t){t&&w(e)}}}function gI(n){let e;return{c(){e=y("i"),m(e,"class","ri-error-warning-line")},m(t,i){S(t,e,i)},d(t){t&&w(e)}}}function bI(n){let e;return{c(){e=y("i"),m(e,"class","ri-checkbox-circle-line")},m(t,i){S(t,e,i)},d(t){t&&w(e)}}}function vI(n){let e;return{c(){e=y("i"),m(e,"class","ri-information-line")},m(t,i){S(t,e,i)},d(t){t&&w(e)}}}function G_(n,e){let t,i,s,l,o=e[2].message+"",r,a,u,f,d,p,h,g=te,_,b,k;function $(M,E){return M[2].type==="info"?vI:M[2].type==="success"?bI:M[2].type==="warning"?gI:_I}let C=$(e),T=C(e);function O(){return e[1](e[2])}return{key:n,first:null,c(){t=y("div"),i=y("div"),T.c(),s=D(),l=y("div"),r=Y(o),a=D(),u=y("button"),u.innerHTML='',f=D(),m(i,"class","icon"),m(l,"class","content"),m(u,"type","button"),m(u,"class","close"),m(t,"class","alert txt-break"),Q(t,"alert-info",e[2].type=="info"),Q(t,"alert-success",e[2].type=="success"),Q(t,"alert-danger",e[2].type=="error"),Q(t,"alert-warning",e[2].type=="warning"),this.first=t},m(M,E){S(M,t,E),v(t,i),T.m(i,null),v(t,s),v(t,l),v(l,r),v(t,a),v(t,u),v(t,f),_=!0,b||(k=J(u,"click",xe(O)),b=!0)},p(M,E){e=M,C!==(C=$(e))&&(T.d(1),T=C(e),T&&(T.c(),T.m(i,null))),(!_||E&1)&&o!==(o=e[2].message+"")&&le(r,o),(!_||E&1)&&Q(t,"alert-info",e[2].type=="info"),(!_||E&1)&&Q(t,"alert-success",e[2].type=="success"),(!_||E&1)&&Q(t,"alert-danger",e[2].type=="error"),(!_||E&1)&&Q(t,"alert-warning",e[2].type=="warning")},r(){h=t.getBoundingClientRect()},f(){Q1(t),g(),lg(t,h)},a(){g(),g=X1(t,h,hI,{duration:150})},i(M){_||(et(()=>{_&&(p&&p.end(1),d=ag(t,rt,{duration:150}),d.start())}),_=!0)},o(M){d&&d.invalidate(),p=Ta(t,na,{duration:150}),_=!1},d(M){M&&w(t),T.d(),M&&p&&p.end(),b=!1,k()}}}function yI(n){let e,t=[],i=new Map,s,l=n[0];const o=r=>r[2].message;for(let r=0;rt(0,i=l)),[i,l=>_b(l)]}class wI extends ve{constructor(e){super(),be(this,e,kI,yI,_e,{})}}function SI(n){var s;let e,t=((s=n[1])==null?void 0:s.text)+"",i;return{c(){e=y("h4"),i=Y(t),m(e,"class","block center txt-break"),m(e,"slot","header")},m(l,o){S(l,e,o),v(e,i)},p(l,o){var r;o&2&&t!==(t=((r=l[1])==null?void 0:r.text)+"")&&le(i,t)},d(l){l&&w(e)}}}function $I(n){let e,t,i,s,l,o,r;return{c(){e=y("button"),t=y("span"),t.textContent="No",i=D(),s=y("button"),l=y("span"),l.textContent="Yes",m(t,"class","txt"),e.autofocus=!0,m(e,"type","button"),m(e,"class","btn btn-transparent btn-expanded-sm"),e.disabled=n[2],m(l,"class","txt"),m(s,"type","button"),m(s,"class","btn btn-danger btn-expanded"),s.disabled=n[2],Q(s,"btn-loading",n[2])},m(a,u){S(a,e,u),v(e,t),S(a,i,u),S(a,s,u),v(s,l),e.focus(),o||(r=[J(e,"click",n[4]),J(s,"click",n[5])],o=!0)},p(a,u){u&4&&(e.disabled=a[2]),u&4&&(s.disabled=a[2]),u&4&&Q(s,"btn-loading",a[2])},d(a){a&&w(e),a&&w(i),a&&w(s),o=!1,De(r)}}}function TI(n){let e,t,i={class:"confirm-popup hide-content overlay-panel-sm",overlayClose:!n[2],escClose:!n[2],btnClose:!1,popup:!0,$$slots:{footer:[$I],header:[SI]},$$scope:{ctx:n}};return e=new on({props:i}),n[6](e),e.$on("hide",n[7]),{c(){B(e.$$.fragment)},m(s,l){z(e,s,l),t=!0},p(s,[l]){const o={};l&4&&(o.overlayClose=!s[2]),l&4&&(o.escClose=!s[2]),l&271&&(o.$$scope={dirty:l,ctx:s}),e.$set(o)},i(s){t||(I(e.$$.fragment,s),t=!0)},o(s){P(e.$$.fragment,s),t=!1},d(s){n[6](null),H(e,s)}}}function CI(n,e,t){let i;Ze(n,uu,d=>t(1,i=d));let s,l=!1,o=!1;const r=()=>{t(3,o=!1),s==null||s.hide()},a=async()=>{i!=null&&i.yesCallback&&(t(2,l=!0),await Promise.resolve(i.yesCallback()),t(2,l=!1)),t(3,o=!0),s==null||s.hide()};function u(d){ne[d?"unshift":"push"](()=>{s=d,t(0,s)})}const f=async()=>{!o&&(i!=null&&i.noCallback)&&i.noCallback(),await cn(),t(3,o=!1),y1()};return n.$$.update=()=>{n.$$.dirty&3&&i!=null&&i.text&&(t(3,o=!1),s==null||s.show())},[s,i,l,o,r,a,u,f]}class MI extends ve{constructor(e){super(),be(this,e,CI,TI,_e,{})}}function X_(n){let e,t,i,s,l,o,r,a,u,f,d,p,h,g,_,b,k,$;return _=new Jn({props:{class:"dropdown dropdown-nowrap dropdown-upside dropdown-left",$$slots:{default:[OI]},$$scope:{ctx:n}}}),{c(){var C;e=y("aside"),t=y("a"),t.innerHTML='PocketBase logo',i=D(),s=y("nav"),l=y("a"),l.innerHTML='',o=D(),r=y("a"),r.innerHTML='',a=D(),u=y("a"),u.innerHTML='',f=D(),d=y("figure"),p=y("img"),g=D(),B(_.$$.fragment),m(t,"href","/"),m(t,"class","logo logo-sm"),m(l,"href","/collections"),m(l,"class","menu-item"),m(l,"aria-label","Collections"),m(r,"href","/logs"),m(r,"class","menu-item"),m(r,"aria-label","Logs"),m(u,"href","/settings"),m(u,"class","menu-item"),m(u,"aria-label","Settings"),m(s,"class","main-menu"),_n(p.src,h="./images/avatars/avatar"+(((C=n[0])==null?void 0:C.avatar)||0)+".svg")||m(p,"src",h),m(p,"alt","Avatar"),m(d,"class","thumb thumb-circle link-hint closable"),m(e,"class","app-sidebar")},m(C,T){S(C,e,T),v(e,t),v(e,i),v(e,s),v(s,l),v(s,o),v(s,r),v(s,a),v(s,u),v(e,f),v(e,d),v(d,p),v(d,g),z(_,d,null),b=!0,k||($=[Ee(rn.call(null,t)),Ee(rn.call(null,l)),Ee(zn.call(null,l,{path:"/collections/?.*",className:"current-route"})),Ee(Be.call(null,l,{text:"Collections",position:"right"})),Ee(rn.call(null,r)),Ee(zn.call(null,r,{path:"/logs/?.*",className:"current-route"})),Ee(Be.call(null,r,{text:"Logs",position:"right"})),Ee(rn.call(null,u)),Ee(zn.call(null,u,{path:"/settings/?.*",className:"current-route"})),Ee(Be.call(null,u,{text:"Settings",position:"right"}))],k=!0)},p(C,T){var M;(!b||T&1&&!_n(p.src,h="./images/avatars/avatar"+(((M=C[0])==null?void 0:M.avatar)||0)+".svg"))&&m(p,"src",h);const O={};T&4096&&(O.$$scope={dirty:T,ctx:C}),_.$set(O)},i(C){b||(I(_.$$.fragment,C),b=!0)},o(C){P(_.$$.fragment,C),b=!1},d(C){C&&w(e),H(_),k=!1,De($)}}}function OI(n){let e,t,i,s,l,o,r;return{c(){e=y("a"),e.innerHTML=` Manage admins`,t=D(),i=y("hr"),s=D(),l=y("button"),l.innerHTML=` Logout`,m(e,"href","/settings/admins"),m(e,"class","dropdown-item closable"),m(l,"type","button"),m(l,"class","dropdown-item closable")},m(a,u){S(a,e,u),S(a,t,u),S(a,i,u),S(a,s,u),S(a,l,u),o||(r=[Ee(rn.call(null,e)),J(l,"click",n[7])],o=!0)},p:te,d(a){a&&w(e),a&&w(t),a&&w(i),a&&w(s),a&&w(l),o=!1,De(r)}}}function Q_(n){let e,t,i;return t=new mu({props:{scriptSrc:"./libs/tinymce/tinymce.min.js",conf:W.defaultEditorOptions()}}),t.$on("init",n[8]),{c(){e=y("div"),B(t.$$.fragment),m(e,"class","tinymce-preloader hidden")},m(s,l){S(s,e,l),z(t,e,null),i=!0},p:te,i(s){i||(I(t.$$.fragment,s),i=!0)},o(s){P(t.$$.fragment,s),i=!1},d(s){s&&w(e),H(t)}}}function EI(n){var b;let e,t,i,s,l,o,r,a,u,f,d,p,h;document.title=e=W.joinNonEmpty([n[4],n[3],"PocketBase"]," - ");let g=((b=n[0])==null?void 0:b.id)&&n[1]&&X_(n);o=new d0({props:{routes:mI}}),o.$on("routeLoading",n[5]),o.$on("conditionsFailed",n[6]),a=new wI({}),f=new MI({});let _=n[1]&&!n[2]&&Q_(n);return{c(){t=D(),i=y("div"),g&&g.c(),s=D(),l=y("div"),B(o.$$.fragment),r=D(),B(a.$$.fragment),u=D(),B(f.$$.fragment),d=D(),_&&_.c(),p=we(),m(l,"class","app-body"),m(i,"class","app-layout")},m(k,$){S(k,t,$),S(k,i,$),g&&g.m(i,null),v(i,s),v(i,l),z(o,l,null),v(l,r),z(a,l,null),S(k,u,$),z(f,k,$),S(k,d,$),_&&_.m(k,$),S(k,p,$),h=!0},p(k,[$]){var C;(!h||$&24)&&e!==(e=W.joinNonEmpty([k[4],k[3],"PocketBase"]," - "))&&(document.title=e),(C=k[0])!=null&&C.id&&k[1]?g?(g.p(k,$),$&3&&I(g,1)):(g=X_(k),g.c(),I(g,1),g.m(i,s)):g&&(ue(),P(g,1,1,()=>{g=null}),fe()),k[1]&&!k[2]?_?(_.p(k,$),$&6&&I(_,1)):(_=Q_(k),_.c(),I(_,1),_.m(p.parentNode,p)):_&&(ue(),P(_,1,1,()=>{_=null}),fe())},i(k){h||(I(g),I(o.$$.fragment,k),I(a.$$.fragment,k),I(f.$$.fragment,k),I(_),h=!0)},o(k){P(g),P(o.$$.fragment,k),P(a.$$.fragment,k),P(f.$$.fragment,k),P(_),h=!1},d(k){k&&w(t),k&&w(i),g&&g.d(),H(o),H(a),k&&w(u),H(f,k),k&&w(d),_&&_.d(k),k&&w(p)}}}function DI(n,e,t){let i,s,l,o;Ze(n,Is,_=>t(10,i=_)),Ze(n,So,_=>t(3,s=_)),Ze(n,qa,_=>t(0,l=_)),Ze(n,Mt,_=>t(4,o=_));let r,a=!1,u=!1;function f(_){var b,k,$,C;((b=_==null?void 0:_.detail)==null?void 0:b.location)!==r&&(t(1,a=!!(($=(k=_==null?void 0:_.detail)==null?void 0:k.userData)!=null&&$.showAppSidebar)),r=(C=_==null?void 0:_.detail)==null?void 0:C.location,ln(Mt,o="",o),tn({}),y1())}function d(){Vi("/")}async function p(){var _,b;if(l!=null&&l.id)try{const k=await de.settings.getAll({$cancelKey:"initialAppSettings"});ln(So,s=((_=k==null?void 0:k.meta)==null?void 0:_.appName)||"",s),ln(Is,i=!!((b=k==null?void 0:k.meta)!=null&&b.hideControls),i)}catch(k){k!=null&&k.isAbort||console.warn("Failed to load app settings.",k)}}function h(){de.logout()}const g=()=>{t(2,u=!0)};return n.$$.update=()=>{n.$$.dirty&1&&l!=null&&l.id&&p()},[l,a,u,s,o,f,d,h,g]}class AI extends ve{constructor(e){super(),be(this,e,DI,EI,_e,{})}}new AI({target:document.getElementById("app")});export{De as A,Ht as B,W as C,Vi as D,we as E,bb as F,hg as G,Xt as H,Ze as I,di as J,Tt as K,ne as L,b1 as M,yt as N,zo as O,us as P,Kt as Q,pt as R,ve as S,kn as T,Hr as U,P as a,D as b,B as c,H as d,y as e,m as f,S as g,v as h,be as i,Ee as j,ue as k,rn as l,z as m,fe as n,w as o,de as p,me as q,Q as r,_e as s,I as t,J as u,xe as v,Y as w,le as x,te as y,ae as z}; diff --git a/ui/dist/index.html b/ui/dist/index.html index dc937d44..15cc018c 100644 --- a/ui/dist/index.html +++ b/ui/dist/index.html @@ -45,7 +45,7 @@ window.Prism = window.Prism || {}; window.Prism.manual = true; - + diff --git a/ui/src/components/collections/docs/AuthMethodsDocs.svelte b/ui/src/components/collections/docs/AuthMethodsDocs.svelte index e40fd823..75d9c121 100644 --- a/ui/src/components/collections/docs/AuthMethodsDocs.svelte +++ b/ui/src/components/collections/docs/AuthMethodsDocs.svelte @@ -4,6 +4,7 @@ import CommonHelper from "@/utils/CommonHelper"; import CodeBlock from "@/components/base/CodeBlock.svelte"; import SdkTabs from "@/components/collections/docs/SdkTabs.svelte"; + import FieldsQueryParam from "@/components/collections/docs/FieldsQueryParam.svelte"; export let collection = new Collection(); @@ -87,6 +88,20 @@
    +
    Query parameters
    + + + + + + + + + + + +
    ParamTypeDescription
    +
    Responses
    diff --git a/ui/src/components/collections/docs/AuthRefreshDocs.svelte b/ui/src/components/collections/docs/AuthRefreshDocs.svelte index 4e7454b4..11cc3d6c 100644 --- a/ui/src/components/collections/docs/AuthRefreshDocs.svelte +++ b/ui/src/components/collections/docs/AuthRefreshDocs.svelte @@ -4,6 +4,7 @@ import CommonHelper from "@/utils/CommonHelper"; import CodeBlock from "@/components/base/CodeBlock.svelte"; import SdkTabs from "@/components/collections/docs/SdkTabs.svelte"; + import FieldsQueryParam from "@/components/collections/docs/FieldsQueryParam.svelte"; export let collection = new Collection(); @@ -138,6 +139,7 @@ Only the relations to which the request user has permissions to view will be expanded. + diff --git a/ui/src/components/collections/docs/AuthWithOAuth2Docs.svelte b/ui/src/components/collections/docs/AuthWithOAuth2Docs.svelte index eb66fe67..fe4765c6 100644 --- a/ui/src/components/collections/docs/AuthWithOAuth2Docs.svelte +++ b/ui/src/components/collections/docs/AuthWithOAuth2Docs.svelte @@ -4,6 +4,7 @@ import CommonHelper from "@/utils/CommonHelper"; import CodeBlock from "@/components/base/CodeBlock.svelte"; import SdkTabs from "@/components/collections/docs/SdkTabs.svelte"; + import FieldsQueryParam from "@/components/collections/docs/FieldsQueryParam.svelte"; export let collection = new Collection(); @@ -234,6 +235,7 @@ Only the relations to which the request user has permissions to view will be expanded. + diff --git a/ui/src/components/collections/docs/AuthWithPasswordDocs.svelte b/ui/src/components/collections/docs/AuthWithPasswordDocs.svelte index 61aa8798..c58c7ffa 100644 --- a/ui/src/components/collections/docs/AuthWithPasswordDocs.svelte +++ b/ui/src/components/collections/docs/AuthWithPasswordDocs.svelte @@ -4,6 +4,7 @@ import CommonHelper from "@/utils/CommonHelper"; import CodeBlock from "@/components/base/CodeBlock.svelte"; import SdkTabs from "@/components/collections/docs/SdkTabs.svelte"; + import FieldsQueryParam from "@/components/collections/docs/FieldsQueryParam.svelte"; export let collection = new Collection(); @@ -197,6 +198,7 @@ Only the relations to which the request user has permissions to view will be expanded. + diff --git a/ui/src/components/collections/docs/CreateApiDocs.svelte b/ui/src/components/collections/docs/CreateApiDocs.svelte index 5a580001..4e269237 100644 --- a/ui/src/components/collections/docs/CreateApiDocs.svelte +++ b/ui/src/components/collections/docs/CreateApiDocs.svelte @@ -4,6 +4,7 @@ import CommonHelper from "@/utils/CommonHelper"; import CodeBlock from "@/components/base/CodeBlock.svelte"; import SdkTabs from "@/components/collections/docs/SdkTabs.svelte"; + import FieldsQueryParam from "@/components/collections/docs/FieldsQueryParam.svelte"; export let collection = new Collection(); @@ -311,6 +312,7 @@ await pb.collection('${collection?.name}').requestVerification('test@example.com Only the relations to which the request user has permissions to view will be expanded. + diff --git a/ui/src/components/collections/docs/FieldsQueryParam.svelte b/ui/src/components/collections/docs/FieldsQueryParam.svelte new file mode 100644 index 00000000..2e64c9bc --- /dev/null +++ b/ui/src/components/collections/docs/FieldsQueryParam.svelte @@ -0,0 +1,12 @@ + + fields + + String + + + Comma separated string of the fields to return in the JSON response + (by default returns all fields). For example: +
    + ?fields=id,expand.relField.id,expand.relField.created + + diff --git a/ui/src/components/collections/docs/ListApiDocs.svelte b/ui/src/components/collections/docs/ListApiDocs.svelte index 7049e5e5..c464a1c3 100644 --- a/ui/src/components/collections/docs/ListApiDocs.svelte +++ b/ui/src/components/collections/docs/ListApiDocs.svelte @@ -210,6 +210,16 @@ Only the relations to which the request user has permissions to view will be expanded. + + fields + + String + + + Comma separated string of the fields to return in the JSON response + (by default returns all fields). + + @@ -217,13 +227,14 @@
    {#each responses as response (response.code)} -
    (responseTab = response.code)} > {response.code} -
    + {/each}
    diff --git a/ui/src/components/collections/docs/ListExternalAuthsDocs.svelte b/ui/src/components/collections/docs/ListExternalAuthsDocs.svelte index 1ff88cf9..589c6f09 100644 --- a/ui/src/components/collections/docs/ListExternalAuthsDocs.svelte +++ b/ui/src/components/collections/docs/ListExternalAuthsDocs.svelte @@ -4,6 +4,7 @@ import CommonHelper from "@/utils/CommonHelper"; import CodeBlock from "@/components/base/CodeBlock.svelte"; import SdkTabs from "@/components/collections/docs/SdkTabs.svelte"; + import FieldsQueryParam from "@/components/collections/docs/FieldsQueryParam.svelte"; export let collection = new Collection(); @@ -139,6 +140,20 @@ +
    Query parameters
    + + + + + + + + + + + +
    ParamTypeDescription
    +
    Responses
    diff --git a/ui/src/components/collections/docs/UpdateApiDocs.svelte b/ui/src/components/collections/docs/UpdateApiDocs.svelte index 5174bcd2..b6cbd741 100644 --- a/ui/src/components/collections/docs/UpdateApiDocs.svelte +++ b/ui/src/components/collections/docs/UpdateApiDocs.svelte @@ -4,6 +4,7 @@ import CommonHelper from "@/utils/CommonHelper"; import CodeBlock from "@/components/base/CodeBlock.svelte"; import SdkTabs from "@/components/collections/docs/SdkTabs.svelte"; + import FieldsQueryParam from "@/components/collections/docs/FieldsQueryParam.svelte"; export let collection = new Collection(); @@ -330,6 +331,7 @@ final record = await pb.collection('${collection?.name}').update('RECORD_ID', bo the relations that the user has permissions to view will be expanded. + diff --git a/ui/src/components/collections/docs/ViewApiDocs.svelte b/ui/src/components/collections/docs/ViewApiDocs.svelte index ba95908b..fccb19f5 100644 --- a/ui/src/components/collections/docs/ViewApiDocs.svelte +++ b/ui/src/components/collections/docs/ViewApiDocs.svelte @@ -4,6 +4,7 @@ import CommonHelper from "@/utils/CommonHelper"; import CodeBlock from "@/components/base/CodeBlock.svelte"; import SdkTabs from "@/components/collections/docs/SdkTabs.svelte"; + import FieldsQueryParam from "@/components/collections/docs/FieldsQueryParam.svelte"; export let collection = new Collection(); @@ -134,6 +135,7 @@ Only the relations to which the request user has permissions to view will be expanded. +