@budibase/server 2.6.19-alpha.42 → 2.6.19-alpha.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -249,7 +249,7 @@ function print() { __p += __j.call(arguments, '') }
249
249
  `}},date:{date:{args:["datetime","format"],numArgs:2,example:'{{date now "DD-MM-YYYY" "America/New_York" }} -> 21-01-2021',description:`<p>Format a date using moment.js date formatting - the timezone is optional and uses the tz database.</p>
250
250
  `},duration:{args:["time","durationType"],numArgs:2,example:'{{duration timeLeft "seconds"}} -> a few seconds',description:`<p>Produce a humanized duration left/until given an amount of time and the type of time measurement.</p>
251
251
  `}}};const{getHelperList:wEe}=bB;function Xde(n){if(!n||typeof n!="string")return n;let e=!1;return[",","{",":"].forEach(t=>{n.includes(t)&&(e=!0)}),n.startsWith("[")&&e?n:isNaN(parseFloat(n))?n.startsWith("'")||n.startsWith('"')?n:`$("${n}")`:n}function $Ee(n,e){function t(){return n.map(r=>r.startsWith("helper")?r:Xde(r)).join(", ")}return e?n.length===0?e:`${e}, ${t()}`:n.length>1?`${t()}`:t()}function kEe(n){const e=[];let t=null,r=null,i=0;function a(s){const l=["]"];for(;l.indexOf(s.substring(0,1))!==-1;)s=s.substring(1,s.length);s.length>0&&e.push(s.trim())}const o=["[","'",'"'];for(let s=0;s<n.length;s++){const l=n[s];o.indexOf(l)!==-1&&t==null?(t=s,r=l==="["?"]":l):l===r&&t!=null&&n[s+1]!=="."?(a(n.substring(t,s+1)),t=null,r=null,i=s+1):t==null&&l===" "&&(a(n.substring(i,s)),i=s)}return n.startsWith("[")&&e.length!==0||i===n.length-1||a(n.substring(i,n.length)),e}var OEe={convertHBSBlock:(n,e)=>{const t=n[2]==="{"?3:2,r=function(o){let s=[];for(;o.length;){const l=o.lastIndexOf("("),u=o.indexOf(")");let c;if(l===-1||u===-1)c=o.trim(),o="";else{const f=o.substring(l,u+1);c=f.substring(1,f.length-1).trim(),o=o.slice(0,l)+o.slice(l+f.length+1,o.length)}s.push(c)}return s}(n=n.substring(t,n.length-t).trim());let i=null;const a=wEe();for(let o of r){const s=kEe(o);if(i||s.length>1){const l=s.splice(0,1);a[l]&&(i=`helpers.${l}(${$Ee(s,i)})`)}else i=Xde(s[0])}return{variable:`var${e}`,value:i}}},Nu=Yn(function(n,e){const{registerAll:t,registerMinimum:r}=bB,{atob:i,btoa:a}=B_,{FIND_HBS_REGEX:o,FIND_ANY_HBS_REGEX:s,findDoubleHbsInstances:l}=B_,{convertHBSBlock:u}=OEe,c=P_.create();t(c);const f=P_.create();r(f);const d={noHelpers:!1,cacheTemplates:!1,noEscaping:!1,escapeNewlines:!1,noFinalise:!1};function p(v){try{JSON.stringify(v)}catch{throw"Unable to process inputs to JSON, cannot recurse"}}let h={};function m(v,y){y={...d,...y};const w=`${v}-${JSON.stringify(y)}`;if(y.cacheTemplates&&h[w])return h[w];v=Zq.preprocess(v,y),y.noEscaping&&(v=e.disableEscaping(v));const A=(y.noHelpers?f:c).compile(v,{strict:!1});return h[w]=A,A}n.exports.processObject=async(v,y,w)=>{p(v);for(let A of Object.keys(v||{}))if(v[A]!=null){let C=v[A];typeof C=="string"?v[A]=await n.exports.processString(v[A],y,w):typeof C=="object"&&(v[A]=await n.exports.processObject(v[A],y,w))}return v},n.exports.processString=async(v,y,w)=>n.exports.processStringSync(v,y,w),n.exports.processObjectSync=(v,y,w)=>{p(v);for(let A of Object.keys(v||{})){let C=v[A];typeof C=="string"?v[A]=n.exports.processStringSync(v[A],y,w):typeof C=="object"&&(v[A]=n.exports.processObjectSync(v[A],y,w))}return v},n.exports.processStringSync=(v,y,w)=>{const A=v;if(typeof v!="string")throw"Cannot process non-string types.";function C(L){const I=m(L,w),P=1e3*Math.floor(Date.now()/1e3);return Zq.postprocess(I({now:new Date(P).toISOString(),__opts:{...w,input:L},...y}))}try{if(w&&w.onlyFound){const L=e.findHBSBlocks(v);for(let I of L){const P=C(I);v=v.replace(I,P)}return v}return C(v)}catch{return A}},n.exports.disableEscaping=v=>{const y=l(v);if(y==null)return v;const w=[...new Set(y)];for(let A of w){const C=new RegExp(`${A}(?!})`,"g");v=v.replace(C,`{${A}}`)}return v},n.exports.makePropSafe=v=>`[${v}]`.replace("[[","[").replace("]]","]"),n.exports.isValid=(v,y)=>{const w=["string","number","object","array","cannot read property","undefined","json at position 0"],A=["expecting '"],C={};try{return m(v,{...y,noFinalise:!0})(C),!0}catch(L){const I=L&&L.message?L.message:L;if(!I)return!1;const P=A.some(V=>I.toLowerCase().includes(V));return w.some(V=>I.toLowerCase().includes(V))&&!P}},n.exports.getManifest=()=>yEe,n.exports.isJSBinding=v=>n.exports.decodeJSBinding(v)!=null,n.exports.encodeJSBinding=v=>`{{ js "${a(v)}" }}`,n.exports.decodeJSBinding=v=>{if(!v||typeof v!="string"||!v.trim().startsWith("{{ js "))return null;const y=new RegExp(/{{ js "(.*)" }}/),w=v.match(y);return!w||w.length<2?null:i(w[1])},n.exports.doesContainStrings=(v,y)=>{let w=new RegExp(o),A=v.match(w);if(A==null)return!1;for(let C of A){let L=C;e.isJSBinding(C)&&(L=e.decodeJSBinding(C));let I=!0;for(let P of y)L.includes(P)||(I=!1);if(I)return!0}return!1},n.exports.findHBSBlocks=v=>{if(!v||typeof v!="string")return[];let y=new RegExp(s),w=v.match(y);return w==null?[]:w},n.exports.doesContainString=(v,y)=>e.doesContainStrings(v,[y]),n.exports.convertToJS=v=>{const y=e.findHBSBlocks(v);let w="return `",A=null;const C={};y.length===0&&(w+=v);let L=1;for(let P of y){let V=v;A&&(V=V.split(A)[1]),V=V.split(P)[0],A=P;const{variable:H,value:Q}=u(P,L++);C[H]=Q,w+=`${V.split()}\${${H}}`}let I="";for(let[P,V]of Object.entries(C))I+=`const ${P} = ${V};
252
- `;return w+="`;",`${I}${w}`}});const Kq=Nu.isValid,Ba=Nu.makePropSafe,Yde=Nu.getManifest,Bb=Nu.isJSBinding,Wk=Nu.encodeJSBinding,u6=Nu.decodeJSBinding,B2=Nu.processStringSync;Nu.processObjectSync;Nu.processString;Nu.processObject;Nu.doesContainStrings;Nu.doesContainString;Nu.disableEscaping;const Zde=Nu.findHBSBlocks,Kde=Nu.convertToJS;process&&!{}.NO_JS&&Qde((n,e)=>(e={...e,alert:void 0,setInterval:void 0,setTimeout:void 0},kj.createContext(e),kj.runInNewContext(n,e,{timeout:1e3})));function Jq(n){let e,t,r;var i=n[3];function a(o){return{props:{row:o[0],schema:o[1],value:o[4],$$slots:{default:[AEe]},$$scope:{ctx:o}}}}return i&&(t=pi(i,a(n)),t.$on("clickrelationship",n[9]),t.$on("buttonclick",n[10])),{c(){e=U("div"),t&&T(t.$$.fragment),sn(e,"--max-cell-width",n[1].width?"none":"200px"),z(e,"class","svelte-16j2cvj")},m(o,s){k(o,e,s),t&&M(t,e,null),r=!0},p(o,s){const l={};if(s&1&&(l.row=o[0]),s&2&&(l.schema=o[1]),s&16&&(l.value=o[4]),s&2048&&(l.$$scope={dirty:s,ctx:o}),i!==(i=o[3])){if(t){pe();const u=t;_(u.$$.fragment,1,0,()=>{E(u,1)}),he()}i?(t=pi(i,a(o)),t.$on("clickrelationship",o[9]),t.$on("buttonclick",o[10]),T(t.$$.fragment),g(t.$$.fragment,1),M(t,e,null)):t=null}else i&&t.$set(l);(!r||s&2)&&sn(e,"--max-cell-width",o[1].width?"none":"200px")},i(o){r||(t&&g(t.$$.fragment,o),r=!0)},o(o){t&&_(t.$$.fragment,o),r=!1},d(o){o&&$(e),t&&E(t)}}}function AEe(n){let e;const t=n[8].default,r=vn(t,n,n[11],null);return{c(){r&&r.c()},m(i,a){r&&r.m(i,a),e=!0},p(i,a){r&&r.p&&(!e||a&2048)&&bn(r,t,i,i[11],e?_n(t,i[11],a,null):yn(i[11]),null)},i(i){e||(g(r,i),e=!0)},o(i){_(r,i),e=!1},d(i){r&&r.d(i)}}}function SEe(n){let e,t,r=n[3]&&(n[2]||n[4]!=null&&n[4]!=="")&&Jq(n);return{c(){r&&r.c(),e=ut()},m(i,a){r&&r.m(i,a),k(i,e,a),t=!0},p(i,[a]){i[3]&&(i[2]||i[4]!=null&&i[4]!=="")?r?(r.p(i,a),a&28&&g(r,1)):(r=Jq(i),r.c(),g(r,1),r.m(e.parentNode,e)):r&&(pe(),_(r,1,1,()=>{r=null}),he())},i(i){t||(g(r),t=!0)},o(i){_(r),t=!1},d(i){r&&r.d(i),i&&$(e)}}}function zEe(n,e,t){let r,i,a,{$$slots:o={},$$scope:s}=e,{row:l}=e,{schema:u}=e,{value:c}=e,{customRenderers:f=[]}=e,d;const p={boolean:Zke,datetime:eOe,link:aOe,attachment:mOe,string:ev,options:ev,number:ev,longform:ev,array:yOe,internal:Zfe},h=w=>(w==null?void 0:w.type)==="datetime"&&(w==null?void 0:w.template)?"string":(w==null?void 0:w.type)||"string",m=(w,A)=>A?B2(A,{value:w}):w;function v(w){ln.call(this,n,w)}function y(w){ln.call(this,n,w)}return n.$$set=w=>{"row"in w&&t(0,l=w.row),"schema"in w&&t(1,u=w.schema),"value"in w&&t(5,c=w.value),"customRenderers"in w&&t(6,f=w.customRenderers),"$$scope"in w&&t(11,s=w.$$scope)},n.$$.update=()=>{var w,A;n.$$.dirty&2&&t(7,r=h(u)),n.$$.dirty&66&&t(2,i=f==null?void 0:f.find(C=>C.column===(u==null?void 0:u.name))),n.$$.dirty&132&&t(3,d=(A=(w=i==null?void 0:i.component)!=null?w:p[r])!=null?A:ev),n.$$.dirty&2&&u!=null&&u.width,n.$$.dirty&34&&t(4,a=m(c,u.template))},[l,u,i,d,a,c,f,r,o,v,y,s]}class CEe extends Oe{constructor(e){super(),ke(this,e,zEe,SEe,we,{row:0,schema:1,value:5,customRenderers:6})}}function ex(n){let e,t;return e=new No({props:{value:n[0]}}),{c(){T(e.$$.fragment)},m(r,i){M(e,r,i),t=!0},p(r,i){const a={};i&1&&(a.value=r[0]),e.$set(a)},i(r){t||(g(e.$$.fragment,r),t=!0)},o(r){_(e.$$.fragment,r),t=!1},d(r){E(e,r)}}}function tx(n){let e,t;return e=new rr({props:{size:"S",$$slots:{default:[MEe]},$$scope:{ctx:n}}}),e.$on("click",function(){tn(n[1])&&n[1].apply(this,arguments)}),{c(){T(e.$$.fragment)},m(r,i){M(e,r,i),t=!0},p(r,i){n=r;const a={};i&16&&(a.$$scope={dirty:i,ctx:n}),e.$set(a)},i(r){t||(g(e.$$.fragment,r),t=!0)},o(r){_(e.$$.fragment,r),t=!1},d(r){E(e,r)}}}function MEe(n){let e;return{c(){e=ee("Edit")},m(t,r){k(t,e,r)},d(t){t&&$(e)}}}function EEe(n){let e,t,r,i=n[2]&&ex(n),a=n[3]&&tx(n);return{c(){e=U("div"),i&&i.c(),t=R(),a&&a.c(),z(e,"class","svelte-1fa8hd3")},m(o,s){k(o,e,s),i&&i.m(e,null),B(e,t),a&&a.m(e,null),r=!0},p(o,[s]){o[2]?i?(i.p(o,s),s&4&&g(i,1)):(i=ex(o),i.c(),g(i,1),i.m(e,t)):i&&(pe(),_(i,1,1,()=>{i=null}),he()),o[3]?a?(a.p(o,s),s&8&&g(a,1)):(a=tx(o),a.c(),g(a,1),a.m(e,null)):a&&(pe(),_(a,1,1,()=>{a=null}),he())},i(o){r||(g(i),g(a),r=!0)},o(o){_(i),_(a),r=!1},d(o){o&&$(e),i&&i.d(),a&&a.d()}}}function TEe(n,e,t){let{selected:r}=e,{onEdit:i}=e,{allowSelectRows:a=!1}=e,{allowEditRows:o=!1}=e;return n.$$set=s=>{"selected"in s&&t(0,r=s.selected),"onEdit"in s&&t(1,i=s.onEdit),"allowSelectRows"in s&&t(2,a=s.allowSelectRows),"allowEditRows"in s&&t(3,o=s.allowEditRows)},[r,i,a,o]}class LEe extends Oe{constructor(e){super(),ke(this,e,TEe,EEe,we,{selected:0,onEdit:1,allowSelectRows:2,allowEditRows:3})}}const PEe=n=>({}),nx=n=>({});function rx(n,e,t){const r=n.slice();return r[59]=e[t],r[61]=t,r}function ix(n,e,t){const r=n.slice();return r[62]=e[t],r}function ax(n,e,t){const r=n.slice();return r[62]=e[t],r}const DEe=n=>({}),ox=n=>({});function IEe(n){let e,t,r,i,a,o,s=n[18].length&&sx(n);const l=[NEe,VEe],u=[];function c(f,d){var p;return(p=f[23])!=null&&p.length?0:1}return r=c(n),i=u[r]=l[r](n),{c(){e=U("div"),s&&s.c(),t=R(),i.c(),z(e,"class","spectrum-Table svelte-rzhjll"),z(e,"style",a=`${n[24]}${n[22]}`),be(e,"no-scroll",!n[2])},m(f,d){k(f,e,d),s&&s.m(e,null),B(e,t),u[r].m(e,null),o=!0},p(f,d){f[18].length?s?(s.p(f,d),d[0]&262144&&g(s,1)):(s=sx(f),s.c(),g(s,1),s.m(e,t)):s&&(pe(),_(s,1,1,()=>{s=null}),he());let p=r;r=c(f),r===p?u[r].p(f,d):(pe(),_(u[p],1,1,()=>{u[p]=null}),he(),i=u[r],i?i.p(f,d):(i=u[r]=l[r](f),i.c()),g(i,1),i.m(e,null)),(!o||d[0]&20971520&&a!==(a=`${f[24]}${f[22]}`))&&z(e,"style",a),(!o||d[0]&4)&&be(e,"no-scroll",!f[2])},i(f){o||(g(s),g(i),o=!0)},o(f){_(s),_(i),o=!1},d(f){f&&$(e),s&&s.d(),u[r].d()}}}function BEe(n){let e,t;const r=n[40].loadingIndicator,i=vn(r,n,n[51],ox),a=i||qEe();return{c(){e=U("div"),a&&a.c(),z(e,"class","loading svelte-rzhjll"),z(e,"style",n[24])},m(o,s){k(o,e,s),a&&a.m(e,null),t=!0},p(o,s){i&&i.p&&(!t||s[1]&1048576)&&bn(i,r,o,o[51],t?_n(r,o[51],s,DEe):yn(o[51]),ox),(!t||s[0]&16777216)&&z(e,"style",o[24])},i(o){t||(g(a,o),t=!0)},o(o){_(a,o),t=!1},d(o){o&&$(e),a&&a.d(o)}}}function sx(n){let e,t,r,i=n[17]&&lx(n),a=n[18],o=[];for(let s=0;s<a.length;s+=1)o[s]=dx(ax(n,a,s));return{c(){e=U("div"),i&&i.c(),t=R();for(let s=0;s<o.length;s+=1)o[s].c();z(e,"class","spectrum-Table-head svelte-rzhjll")},m(s,l){k(s,e,l),i&&i.m(e,null),B(e,t);for(let u=0;u<o.length;u+=1)o[u].m(e,null);r=!0},p(s,l){if(s[17]?i?(i.p(s,l),l[0]&131072&&g(i,1)):(i=lx(s),i.c(),g(i,1),i.m(e,t)):i&&(pe(),_(i,1,1,()=>{i=null}),he()),l[0]&470077569){a=s[18];let u;for(u=0;u<a.length;u+=1){const c=ax(s,a,u);o[u]?o[u].p(c,l):(o[u]=dx(c),o[u].c(),o[u].m(e,null))}for(;u<o.length;u+=1)o[u].d(1);o.length=a.length}},i(s){r||(g(i),r=!0)},o(s){_(i),r=!1},d(s){s&&$(e),i&&i.d(),an(o,s)}}}function lx(n){let e,t,r,i;const a=[HEe,REe],o=[];function s(l,u){return l[5]?0:1}return t=s(n),r=o[t]=a[t](n),{c(){e=U("div"),r.c(),z(e,"class","spectrum-Table-headCell spectrum-Table-headCell--divider spectrum-Table-headCell--edit svelte-rzhjll"),be(e,"noBorderHeader",!n[12])},m(l,u){k(l,e,u),o[t].m(e,null),i=!0},p(l,u){let c=t;t=s(l),t===c?o[t].p(l,u):(pe(),_(o[c],1,1,()=>{o[c]=null}),he(),r=o[t],r?r.p(l,u):(r=o[t]=a[t](l),r.c()),g(r,1),r.m(e,null)),(!i||u[0]&4096)&&be(e,"noBorderHeader",!l[12])},i(l){i||(g(r),i=!0)},o(l){_(r),i=!1},d(l){l&&$(e),o[t].d()}}}function REe(n){let e;return{c(){e=ee("Edit")},m(t,r){k(t,e,r)},p:Xe,i:Xe,o:Xe,d(t){t&&$(e)}}}function HEe(n){let e,t,r;function i(o){n[41](o)}let a={};return n[20]!==void 0&&(a.value=n[20]),e=new No({props:a}),Ae.push(()=>qe(e,"value",i)),e.$on("change",n[31]),{c(){T(e.$$.fragment)},m(o,s){M(e,o,s),r=!0},p(o,s){const l={};!t&&s[0]&1048576&&(t=!0,l.value=o[20],xe(()=>t=!1)),e.$set(l)},i(o){r||(g(e.$$.fragment,o),r=!0)},o(o){_(e.$$.fragment,o),r=!1},d(o){E(e,o)}}}function ux(n){let e,t;return{c(){e=nt("svg"),t=nt("use"),Ar(t,"xlink:href","#spectrum-icon-18-MagicWand"),z(e,"class","spectrum-Icon spectrum-Table-autoIcon svelte-rzhjll"),z(e,"focusable","false")},m(r,i){k(r,e,i),B(e,t)},d(r){r&&$(e)}}}function cx(n){let e,t;return{c(){e=nt("svg"),t=nt("use"),Ar(t,"xlink:href","#spectrum-css-icon-Arrow100"),z(e,"class","spectrum-Icon spectrum-UIIcon-ArrowDown100 spectrum-Table-sortedIcon svelte-rzhjll"),z(e,"focusable","false"),z(e,"aria-hidden","true")},m(r,i){k(r,e,i),B(e,t)},d(r){r&&$(e)}}}function fx(n){let e,t,r,i;function a(...o){return n[42](n[62],...o)}return{c(){e=nt("svg"),t=nt("use"),Ar(t,"xlink:href","#spectrum-icon-18-Edit"),z(e,"class","spectrum-Icon spectrum-Table-editIcon svelte-rzhjll"),z(e,"focusable","false")},m(o,s){k(o,e,s),B(e,t),r||(i=at(e,"click",a),r=!0)},p(o,s){n=o},d(o){o&&$(e),r=!1,i()}}}function dx(n){var m,v;let e,t,r=n[27](n[0][n[62]])+"",i,a,o,s,l,u,c,f=((m=n[0][n[62]])==null?void 0:m.autocolumn)&&ux(),d=n[14]===n[62]&&cx(),p=n[7]&&((v=n[0][n[62]])==null?void 0:v.editable)!==!1&&fx(n);function h(){return n[43](n[62])}return{c(){e=U("div"),t=U("div"),i=ee(r),a=R(),f&&f.c(),o=R(),d&&d.c(),s=R(),p&&p.c(),l=R(),z(t,"class","title svelte-rzhjll"),z(e,"class","spectrum-Table-headCell svelte-rzhjll"),be(e,"noBorderHeader",!n[12]),be(e,"spectrum-Table-headCell--alignCenter",n[0][n[62]].align==="Center"),be(e,"spectrum-Table-headCell--alignRight",n[0][n[62]].align==="Right"),be(e,"is-sortable",n[0][n[62]].sortable!==!1),be(e,"is-sorted-desc",n[14]===n[62]&&n[15]==="Descending"),be(e,"is-sorted-asc",n[14]===n[62]&&n[15]==="Ascending")},m(y,w){k(y,e,w),B(e,t),B(t,i),B(e,a),f&&f.m(e,null),B(e,o),d&&d.m(e,null),B(e,s),p&&p.m(e,null),B(e,l),u||(c=at(e,"click",h),u=!0)},p(y,w){var A,C;n=y,w[0]&262145&&r!==(r=n[27](n[0][n[62]])+"")&&Ze(i,r),(A=n[0][n[62]])!=null&&A.autocolumn?f||(f=ux(),f.c(),f.m(e,o)):f&&(f.d(1),f=null),n[14]===n[62]?d||(d=cx(),d.c(),d.m(e,s)):d&&(d.d(1),d=null),n[7]&&((C=n[0][n[62]])==null?void 0:C.editable)!==!1?p?p.p(n,w):(p=fx(n),p.c(),p.m(e,l)):p&&(p.d(1),p=null),w[0]&4096&&be(e,"noBorderHeader",!n[12]),w[0]&262145&&be(e,"spectrum-Table-headCell--alignCenter",n[0][n[62]].align==="Center"),w[0]&262145&&be(e,"spectrum-Table-headCell--alignRight",n[0][n[62]].align==="Right"),w[0]&262145&&be(e,"is-sortable",n[0][n[62]].sortable!==!1),w[0]&311296&&be(e,"is-sorted-desc",n[14]===n[62]&&n[15]==="Descending"),w[0]&311296&&be(e,"is-sorted-asc",n[14]===n[62]&&n[15]==="Ascending")},d(y){y&&$(e),f&&f.d(),d&&d.d(),p&&p.d(),u=!1,c()}}}function VEe(n){let e,t,r,i;const a=[UEe,FEe],o=[];function s(l,u){return l[11]?0:1}return t=s(n),r=o[t]=a[t](n),{c(){var l;e=U("div"),r.c(),z(e,"class","placeholder svelte-rzhjll"),be(e,"placeholder--custom",n[11]),be(e,"placeholder--no-fields",!((l=n[18])!=null&&l.length))},m(l,u){k(l,e,u),o[t].m(e,null),i=!0},p(l,u){var f;let c=t;t=s(l),t===c?o[t].p(l,u):(pe(),_(o[c],1,1,()=>{o[c]=null}),he(),r=o[t],r?r.p(l,u):(r=o[t]=a[t](l),r.c()),g(r,1),r.m(e,null)),(!i||u[0]&2048)&&be(e,"placeholder--custom",l[11]),(!i||u[0]&262144)&&be(e,"placeholder--no-fields",!((f=l[18])!=null&&f.length))},i(l){i||(g(r),i=!0)},o(l){_(r),i=!1},d(l){l&&$(e),o[t].d()}}}function NEe(n){let e,t,r=n[23],i=[];for(let o=0;o<r.length;o+=1)i[o]=mx(rx(n,r,o));const a=o=>_(i[o],1,1,()=>{i[o]=null});return{c(){for(let o=0;o<i.length;o+=1)i[o].c();e=ut()},m(o,s){for(let l=0;l<i.length;l+=1)i[l].m(o,s);k(o,e,s),t=!0},p(o,s){if(s[0]&1655051107|s[1]&1048576){r=o[23];let l;for(l=0;l<r.length;l+=1){const u=rx(o,r,l);i[l]?(i[l].p(u,s),g(i[l],1)):(i[l]=mx(u),i[l].c(),g(i[l],1),i[l].m(e.parentNode,e))}for(pe(),l=r.length;l<i.length;l+=1)a(l);he()}},i(o){if(!t){for(let s=0;s<r.length;s+=1)g(i[s]);t=!0}},o(o){i=i.filter(Boolean);for(let s=0;s<i.length;s+=1)_(i[s]);t=!1},d(o){an(i,o),o&&$(e)}}}function FEe(n){let e,t,r,i,a,o;return{c(){e=U("div"),t=nt("svg"),r=nt("use"),i=R(),a=U("div"),o=ee(n[13]),Ar(r,"xlink:href","#spectrum-icon-18-Table"),z(t,"class","spectrum-Icon spectrum-Icon--sizeXXL"),z(t,"focusable","false"),z(a,"class","svelte-rzhjll"),z(e,"class","placeholder-content svelte-rzhjll")},m(s,l){k(s,e,l),B(e,t),B(t,r),B(e,i),B(e,a),B(a,o)},p(s,l){l[0]&8192&&Ze(o,s[13])},i:Xe,o:Xe,d(s){s&&$(e)}}}function UEe(n){let e;const t=n[40].placeholder,r=vn(t,n,n[51],nx);return{c(){r&&r.c()},m(i,a){r&&r.m(i,a),e=!0},p(i,a){r&&r.p&&(!e||a[1]&1048576)&&bn(r,t,i,i[51],e?_n(t,i[51],a,PEe):yn(i[51]),nx)},i(i){e||(g(r,i),e=!0)},o(i){_(r,i),e=!1},d(i){r&&r.d(i)}}}function px(n){let e,t,r,i,a;function o(...u){return n[44](n[59],...u)}function s(...u){return n[45](n[59],...u)}t=new LEe({props:{data:n[59],selected:n[1].findIndex(o)!==-1,onEdit:s,allowSelectRows:n[5],allowEditRows:n[6]}});function l(...u){return n[46](n[59],...u)}return{c(){e=U("div"),T(t.$$.fragment),z(e,"class","spectrum-Table-cell spectrum-Table-cell--divider spectrum-Table-cell--edit svelte-rzhjll"),be(e,"noBorderCheckbox",!n[12])},m(u,c){k(u,e,c),M(t,e,null),r=!0,i||(a=at(e,"click",l),i=!0)},p(u,c){n=u;const f={};c[0]&8388608&&(f.data=n[59]),c[0]&8388610&&(f.selected=n[1].findIndex(o)!==-1),c[0]&8388608&&(f.onEdit=s),c[0]&32&&(f.allowSelectRows=n[5]),c[0]&64&&(f.allowEditRows=n[6]),t.$set(f),(!r||c[0]&4096)&&be(e,"noBorderCheckbox",!n[12])},i(u){r||(g(t.$$.fragment,u),r=!0)},o(u){_(t.$$.fragment,u),r=!1},d(u){u&&$(e),E(t),i=!1,a()}}}function jEe(n){let e;const t=n[40].default,r=vn(t,n,n[51],null);return{c(){r&&r.c()},m(i,a){r&&r.m(i,a),e=!0},p(i,a){r&&r.p&&(!e||a[1]&1048576)&&bn(r,t,i,i[51],e?_n(t,i[51],a,null):yn(i[51]),null)},i(i){e||(g(r,i),e=!0)},o(i){_(r,i),e=!1},d(i){r&&r.d(i)}}}function hx(n){let e,t,r,i,a,o;t=new CEe({props:{customRenderers:n[9],row:n[59],schema:n[0][n[62]],value:T_(n[59],n[62]),$$slots:{default:[jEe]},$$scope:{ctx:n}}}),t.$on("clickrelationship",n[47]),t.$on("buttonclick",n[48]);function s(){return n[49](n[62],n[59])}return{c(){e=U("div"),T(t.$$.fragment),z(e,"class","spectrum-Table-cell svelte-rzhjll"),z(e,"style",r=n[21][n[62]]),be(e,"spectrum-Table-cell--divider",!!n[0][n[62]].divider)},m(l,u){k(l,e,u),M(t,e,null),i=!0,a||(o=at(e,"click",s),a=!0)},p(l,u){n=l;const c={};u[0]&512&&(c.customRenderers=n[9]),u[0]&8388608&&(c.row=n[59]),u[0]&262145&&(c.schema=n[0][n[62]]),u[0]&8650752&&(c.value=T_(n[59],n[62])),u[1]&1048576&&(c.$$scope={dirty:u,ctx:n}),t.$set(c),(!i||u[0]&2359296&&r!==(r=n[21][n[62]]))&&z(e,"style",r),(!i||u[0]&262145)&&be(e,"spectrum-Table-cell--divider",!!n[0][n[62]].divider)},i(l){i||(g(t.$$.fragment,l),i=!0)},o(l){_(t.$$.fragment,l),i=!1},d(l){l&&$(e),E(t),a=!1,o()}}}function mx(n){let e,t,r,i,a=n[17]&&px(n),o=n[18],s=[];for(let u=0;u<o.length;u+=1)s[u]=hx(ix(n,o,u));const l=u=>_(s[u],1,1,()=>{s[u]=null});return{c(){e=U("div"),a&&a.c(),t=R();for(let u=0;u<s.length;u+=1)s[u].c();r=R(),z(e,"class","spectrum-Table-row svelte-rzhjll"),be(e,"clickable",n[8])},m(u,c){k(u,e,c),a&&a.m(e,null),B(e,t);for(let f=0;f<s.length;f+=1)s[f].m(e,null);B(e,r),i=!0},p(u,c){if(u[17]?a?(a.p(u,c),c[0]&131072&&g(a,1)):(a=px(u),a.c(),g(a,1),a.m(e,t)):a&&(pe(),_(a,1,1,()=>{a=null}),he()),c[0]&1118044673|c[1]&1048576){o=u[18];let f;for(f=0;f<o.length;f+=1){const d=ix(u,o,f);s[f]?(s[f].p(d,c),g(s[f],1)):(s[f]=hx(d),s[f].c(),g(s[f],1),s[f].m(e,r))}for(pe(),f=o.length;f<s.length;f+=1)l(f);he()}(!i||c[0]&256)&&be(e,"clickable",u[8])},i(u){if(!i){g(a);for(let c=0;c<o.length;c+=1)g(s[c]);i=!0}},o(u){_(a),s=s.filter(Boolean);for(let c=0;c<s.length;c+=1)_(s[c]);i=!1},d(u){u&&$(e),a&&a.d(),an(s,u)}}}function qEe(n){let e,t;return e=new H7({}),{c(){T(e.$$.fragment)},m(r,i){M(e,r,i),t=!0},i(r){t||(g(e.$$.fragment,r),t=!0)},o(r){_(e.$$.fragment,r),t=!1},d(r){E(e,r)}}}function gx(n){let e,t,r,i,a,o;const s=[BEe,IEe],l=[];function u(c,f){return c[4]?0:1}return t=u(n),r=l[t]=s[t](n),{c(){e=U("div"),r.c(),z(e,"class","wrapper svelte-rzhjll"),z(e,"style",i=`--row-height: ${n[19]}px; --header-height: ${Gk}px;`),Mi(()=>n[50].call(e)),be(e,"wrapper--quiet",n[3]),be(e,"wrapper--compact",n[10])},m(c,f){k(c,e,f),l[t].m(e,null),a=Uve(e,n[50].bind(e)),o=!0},p(c,f){let d=t;t=u(c),t===d?l[t].p(c,f):(pe(),_(l[d],1,1,()=>{l[d]=null}),he(),r=l[t],r?r.p(c,f):(r=l[t]=s[t](c),r.c()),g(r,1),r.m(e,null)),(!o||f[0]&524288&&i!==(i=`--row-height: ${c[19]}px; --header-height: ${Gk}px;`))&&z(e,"style",i),(!o||f[0]&8)&&be(e,"wrapper--quiet",c[3]),(!o||f[0]&1024)&&be(e,"wrapper--compact",c[10])},i(c){o||(g(r),o=!0)},o(c){_(r),o=!1},d(c){c&&$(e),l[t].d(),a()}}}function xEe(n){var a;let e=(a=n[18])==null?void 0:a.length,t,r,i=gx(n);return{c(){i.c(),t=ut()},m(o,s){i.m(o,s),k(o,t,s),r=!0},p(o,s){var l;s[0]&262144&&we(e,e=(l=o[18])==null?void 0:l.length)?(pe(),_(i,1,1,Xe),he(),i=gx(o),i.c(),g(i,1),i.m(t.parentNode,t)):i.p(o,s)},i(o){r||(g(i),r=!0)},o(o){_(i),r=!1},d(o){o&&$(t),i.d(o)}}}const Gk=36;function QEe(n,e,t){let r,i,a,o,s,l,u,c,f,d,{$$slots:p={},$$scope:h}=e,{data:m=[]}=e,{schema:v={}}=e,{showAutoColumns:y=!1}=e,{rowCount:w=0}=e,{quiet:A=!1}=e,{loading:C=!1}=e,{allowSelectRows:L}=e,{allowEditRows:I=!0}=e,{allowEditColumns:P=!0}=e,{allowClickRows:V=!0}=e,{selectedRows:H=[]}=e,{customRenderers:Q=[]}=e,{disableSorting:K=!1}=e,{autoSortColumns:J=!0}=e,{compact:Y=!1}=e,{customPlaceholder:W=!1}=e,{showHeaderBorder:q=!0}=e,{placeholderText:Z="No rows found"}=e;const te=$n();let ie,se,ae=0,fe=!1,le=!1;const re=je=>{let it={};return Object.entries(je||{}).forEach(([pt,Xt])=>{typeof Xt=="string"?it[pt]={type:Xt,name:pt}:it[pt]={...Xt,name:pt}}),it},ge=(je,it,pt,Xt,kt)=>je?Xt?Math.min(pt,Xt):Math.min(pt,Math.ceil(it/kt)):Xt||0,Le=(je,it,pt,Xt,kt)=>kt?`height: ${Gk+je*Xt}px;`:!it||!je||pt<=it?"":`height: ${Gk+je*Xt}px;`,ve=(je,it,pt)=>{let Xt="grid-template-columns:";return pt&&(Xt+=" auto"),je==null||je.forEach(kt=>{const bt=it[kt];bt.width&&typeof bt.width=="string"?Xt+=` ${bt.width}`:Xt+=" minmax(auto, 1fr)"}),Xt+=";",Xt},ze=(je,it,pt)=>!it||!pt||K?je:je.slice().sort((Xt,kt)=>{const bt=Xt[it],Rt=kt[it];return pt==="Descending"?bt>Rt?-1:1:bt>Rt?1:-1}),de=je=>{je.sortable!==!1&&(je.name===ie?t(15,se=se==="Descending"?"Ascending":"Descending"):(t(14,ie=je.name),t(15,se="Descending")),te("sort",{column:ie,order:se}))},Ve=je=>{let it=je==null?void 0:je.displayName;return je&&it===void 0&&(it=je.name),it||""},lt=(je,it,pt)=>{let Xt=[],kt=[];return Object.entries(je||{}).forEach(([bt,Rt])=>{!bt||!Rt||(!pt||!(Rt!=null&&Rt.autocolumn)?Xt.push(Rt):it&&kt.push(Rt))}),Xt.sort((bt,Rt)=>{const Ut=bt.order||Number.MAX_SAFE_INTEGER,In=Rt.order||Number.MAX_SAFE_INTEGER,wn=Ve(bt),hn=Ve(Rt);return Ut!==In?Ut<In?Ut:In:wn<hn?bt:Rt}).concat(kt).map(bt=>bt.name)},Ce=(je,it)=>{je.stopPropagation(),te("editcolumn",it)},Ye=(je,it)=>{je.stopPropagation(),te("editrow",qI(it))},gt=je=>{!L||(H.some(it=>it._id===je._id)?t(1,H=H.filter(it=>it._id!==je._id)):t(1,H=[...H,je]))},ht=je=>{!!je.detail?a.forEach(pt=>{H.findIndex(Xt=>Xt._id===pt._id)===-1&&H.push(pt)}):t(1,H=H.filter(pt=>a.every(Xt=>Xt._id!==pt._id)))},mt=je=>{let it={};return Object.keys(je||{}).forEach(pt=>{it[pt]="",je[pt].color&&(it[pt]+=`color: ${je[pt].color};`),je[pt].background&&(it[pt]+=`background-color: ${je[pt].background};`),je[pt].align==="Center"&&(it[pt]+="justify-content: center; text-align: center;"),je[pt].align==="Right"&&(it[pt]+="justify-content: flex-end; text-align: right;"),je[pt].borderLeft&&(it[pt]+="border-left: 1px solid var(--spectrum-global-color-gray-200);"),je[pt].borderLeft&&(it[pt]+="border-right: 1px solid var(--spectrum-global-color-gray-200);"),je[pt].minWidth&&(it[pt]+=`min-width: ${je[pt].minWidth};`)}),it};function Bt(je){le=je,t(20,le),t(37,a),t(1,H),t(18,i),t(32,m),t(0,v),t(33,y),t(35,J)}const qt=(je,it)=>Ce(it,je),Ke=je=>de(v[je]),De=(je,it)=>it._id===je._id,yt=(je,it)=>Ye(it,je),He=(je,it)=>{gt(je),it.stopPropagation()};function Pe(je){ln.call(this,n,je)}function We(je){ln.call(this,n,je)}const Me=(je,it)=>{var pt;(pt=v[je])!=null&&pt.preventSelectRow||(te("click",it),gt(it))};function Fe(){ae=this.offsetHeight,t(16,ae)}return n.$$set=je=>{"data"in je&&t(32,m=je.data),"schema"in je&&t(0,v=je.schema),"showAutoColumns"in je&&t(33,y=je.showAutoColumns),"rowCount"in je&&t(2,w=je.rowCount),"quiet"in je&&t(3,A=je.quiet),"loading"in je&&t(4,C=je.loading),"allowSelectRows"in je&&t(5,L=je.allowSelectRows),"allowEditRows"in je&&t(6,I=je.allowEditRows),"allowEditColumns"in je&&t(7,P=je.allowEditColumns),"allowClickRows"in je&&t(8,V=je.allowClickRows),"selectedRows"in je&&t(1,H=je.selectedRows),"customRenderers"in je&&t(9,Q=je.customRenderers),"disableSorting"in je&&t(34,K=je.disableSorting),"autoSortColumns"in je&&t(35,J=je.autoSortColumns),"compact"in je&&t(10,Y=je.compact),"customPlaceholder"in je&&t(11,W=je.customPlaceholder),"showHeaderBorder"in je&&t(12,q=je.showHeaderBorder),"placeholderText"in je&&t(13,Z=je.placeholderText),"$$scope"in je&&t(51,h=je.$$scope)},n.$$.update=()=>{n.$$.dirty[0]&1024&&t(19,r=Y?46:55),n.$$.dirty[0]&1&&t(0,v=re(v)),n.$$.dirty[0]&16&&(C||t(36,fe=!0)),n.$$.dirty[0]&1|n.$$.dirty[1]&20&&t(18,i=lt(v,y,J)),n.$$.dirty[0]&262144|n.$$.dirty[1]&2&&t(37,a=i!=null&&i.length?m||[]:[]),n.$$.dirty[1]&64&&t(38,o=(a==null?void 0:a.length)||0),n.$$.dirty[0]&589828|n.$$.dirty[1]&96&&t(39,s=ge(fe,ae,a.length,w,r)),n.$$.dirty[0]&524308|n.$$.dirty[1]&384&&t(24,l=Le(s,w,o,r,C)),n.$$.dirty[0]&49152|n.$$.dirty[1]&64&&t(23,u=ze(a,ie,se)),n.$$.dirty[0]&96&&t(17,f=I||L),n.$$.dirty[0]&393217&&t(22,c=ve(i,v,f)),n.$$.dirty[0]&1&&t(21,d=mt(v)),n.$$.dirty[0]&2|n.$$.dirty[1]&64&&a.filter(it=>H.some(pt=>it._id===pt._id)).length===0&&t(20,le=!1)},[v,H,w,A,C,L,I,P,V,Q,Y,W,q,Z,ie,se,ae,f,i,r,le,d,c,u,l,te,de,Ve,Ce,Ye,gt,ht,m,y,K,J,fe,a,o,s,p,Bt,qt,Ke,De,yt,He,Pe,We,Me,Fe,h]}class Fo extends Oe{constructor(e){super(),ke(this,e,QEe,xEe,we,{data:32,schema:0,showAutoColumns:33,rowCount:2,quiet:3,loading:4,allowSelectRows:5,allowEditRows:6,allowEditColumns:7,allowClickRows:8,selectedRows:1,customRenderers:9,disableSorting:34,autoSortColumns:35,compact:10,customPlaceholder:11,showHeaderBorder:12,placeholderText:13},null,[-1,-1,-1])}}function vx(n){let e;return{c(){e=U("div"),z(e,"class","spectrum-Tabs-selectionIndicator svelte-jku8bn"),sn(e,"width",n[11]),sn(e,"height",n[12]),sn(e,"left",n[10]),sn(e,"top",n[9]),be(e,"emphasized",n[4])},m(t,r){k(t,e,r)},p(t,r){r&2048&&sn(e,"width",t[11]),r&4096&&sn(e,"height",t[12]),r&1024&&sn(e,"left",t[10]),r&512&&sn(e,"top",t[9]),r&16&&be(e,"emphasized",t[4])},d(t){t&&$(e)}}}function WEe(n){let e,t,r,i,a,o;const s=n[19].default,l=vn(s,n,n[18],null);let u=n[7].info&&vx(n);return{c(){e=U("div"),l&&l.c(),t=R(),u&&u.c(),i=R(),a=U("div"),z(e,"class",r="spectrum-Tabs spectrum-Tabs--size"+n[6]+" svelte-jku8bn"),be(e,"spectrum-Tabs--quiet",n[3]),be(e,"noHorizPadding",n[2]),be(e,"onTop",n[5]),be(e,"spectrum-Tabs--vertical",n[0]),be(e,"spectrum-Tabs--horizontal",!n[0]),z(a,"class","spectrum-Tabs-content spectrum-Tabs-content-"+n[13]+" svelte-jku8bn"),be(a,"noPadding",n[1])},m(c,f){k(c,e,f),l&&l.m(e,null),B(e,t),u&&u.m(e,null),n[20](e),k(c,i,f),k(c,a,f),o=!0},p(c,[f]){l&&l.p&&(!o||f&262144)&&bn(l,s,c,c[18],o?_n(s,c[18],f,null):yn(c[18]),null),c[7].info?u?u.p(c,f):(u=vx(c),u.c(),u.m(e,null)):u&&(u.d(1),u=null),(!o||f&64&&r!==(r="spectrum-Tabs spectrum-Tabs--size"+c[6]+" svelte-jku8bn"))&&z(e,"class",r),(!o||f&72)&&be(e,"spectrum-Tabs--quiet",c[3]),(!o||f&68)&&be(e,"noHorizPadding",c[2]),(!o||f&96)&&be(e,"onTop",c[5]),(!o||f&65)&&be(e,"spectrum-Tabs--vertical",c[0]),(!o||f&65)&&be(e,"spectrum-Tabs--horizontal",!c[0]),(!o||f&2)&&be(a,"noPadding",c[1])},i(c){o||(g(l,c),o=!0)},o(c){_(l,c),o=!1},d(c){c&&$(e),l&&l.d(c),u&&u.d(),n[20](null),c&&$(i),c&&$(a)}}}function GEe(){return"_"+Math.random().toString(36).slice(2,9)}function XEe(n,e,t){let r,{$$slots:i={},$$scope:a}=e,{selected:o}=e,{vertical:s=!1}=e,{noPadding:l=!1}=e,{noHorizPadding:u=!1}=e,{quiet:c=!1}=e,{emphasized:f=!1}=e,{onTop:d=!1}=e,{size:p="M"}=e,{beforeSwitch:h=null}=e,m,v=GEe();const y=Gn({title:o,id:v,emphasized:f});me(n,y,K=>t(7,r=K)),f0("tab",y);let w;const A=$n();let C,L,I,P;function V(){var K,J,Y,W;s?(t(12,P=((Y=r.info)==null?void 0:Y.height)+4+"px"),t(11,I=(W=r.info)==null?void 0:W.width)):(t(11,I=((K=r.info)==null?void 0:K.width)+"px"),t(12,P=(J=r.info)==null?void 0:J.height))}function H(){var K,J;s?t(9,C=((J=r.info)==null?void 0:J.top)-(w==null?void 0:w.getBoundingClientRect().top)+"px"):t(10,L=((K=r.info)==null?void 0:K.left)-(w==null?void 0:w.getBoundingClientRect().left)+"px")}gn(()=>{V(),H()});function Q(K){Ae[K?"unshift":"push"](()=>{w=K,t(8,w)})}return n.$$set=K=>{"selected"in K&&t(15,o=K.selected),"vertical"in K&&t(0,s=K.vertical),"noPadding"in K&&t(1,l=K.noPadding),"noHorizPadding"in K&&t(2,u=K.noHorizPadding),"quiet"in K&&t(3,c=K.quiet),"emphasized"in K&&t(4,f=K.emphasized),"onTop"in K&&t(5,d=K.onTop),"size"in K&&t(6,p=K.size),"beforeSwitch"in K&&t(16,h=K.beforeSwitch),"$$scope"in K&&t(18,a=K.$$scope)},n.$$.update=()=>{n.$$.dirty&229504&&(m!==o?(t(17,m=o),A("select",m)):r.title!==m&&typeof h=="function"&&h(r.title)&&(t(17,m=r.title),t(15,o=r.title),A("select",m)),r.title!==m&&y.update(K=>(K.title=m,K))),n.$$.dirty&128&&V(),n.$$.dirty&128&&H()},[s,l,u,c,f,d,p,r,w,C,L,I,P,v,y,o,h,m,a,i,Q]}class x2 extends Oe{constructor(e){super(),ke(this,e,XEe,WEe,we,{selected:15,vertical:0,noPadding:1,noHorizPadding:2,quiet:3,emphasized:4,onTop:5,size:6,beforeSwitch:16})}}function _x(n){let e,t,r;return{c(){e=nt("svg"),t=nt("use"),Ar(t,"xlink:href",r="#spectrum-icon-18-"+n[1]),z(e,"class","spectrum-Icon spectrum-Icon--sizeM"),z(e,"focusable","false"),z(e,"aria-hidden","true"),z(e,"aria-label","Folder")},m(i,a){k(i,e,a),B(e,t)},p(i,a){a&2&&r!==(r="#spectrum-icon-18-"+i[1])&&Ar(t,"xlink:href",r)},d(i){i&&$(e)}}}function bx(n){let e,t;return e=new W6({props:{target:".spectrum-Tabs-content-"+n[4].id,$$slots:{default:[YEe]},$$scope:{ctx:n}}}),{c(){T(e.$$.fragment)},m(r,i){M(e,r,i),t=!0},p(r,i){const a={};i&16&&(a.target=".spectrum-Tabs-content-"+r[4].id),i&512&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(g(e.$$.fragment,r),t=!0)},o(r){_(e.$$.fragment,r),t=!1},d(r){E(e,r)}}}function YEe(n){let e;const t=n[7].default,r=vn(t,n,n[9],null);return{c(){r&&r.c()},m(i,a){r&&r.m(i,a),e=!0},p(i,a){r&&r.p&&(!e||a&512)&&bn(r,t,i,i[9],e?_n(t,i[9],a,null):yn(i[9]),null)},i(i){e||(g(r,i),e=!0)},o(i){_(r,i),e=!1},d(i){r&&r.d(i)}}}function ZEe(n){let e,t,r,i,a,o,s,l,u,c=n[1]&&_x(n),f=n[4].title===n[0]&&bx(n);return{c(){e=U("div"),c&&c.c(),t=R(),r=U("span"),i=ee(n[0]),a=R(),f&&f.c(),o=ut(),z(r,"class","spectrum-Tabs-itemLabel"),z(e,"id",n[2]),z(e,"class","spectrum-Tabs-item svelte-l8f5vh"),z(e,"tabindex","0"),be(e,"is-selected",n[4].title===n[0]),be(e,"emphasized",n[4].title===n[0]&&n[4].emphasized)},m(d,p){k(d,e,p),c&&c.m(e,null),B(e,t),B(e,r),B(r,i),n[8](e),k(d,a,p),f&&f.m(d,p),k(d,o,p),s=!0,l||(u=at(e,"click",n[6]),l=!0)},p(d,[p]){d[1]?c?c.p(d,p):(c=_x(d),c.c(),c.m(e,t)):c&&(c.d(1),c=null),(!s||p&1)&&Ze(i,d[0]),(!s||p&4)&&z(e,"id",d[2]),(!s||p&17)&&be(e,"is-selected",d[4].title===d[0]),(!s||p&17)&&be(e,"emphasized",d[4].title===d[0]&&d[4].emphasized),d[4].title===d[0]?f?(f.p(d,p),p&17&&g(f,1)):(f=bx(d),f.c(),g(f,1),f.m(o.parentNode,o)):f&&(pe(),_(f,1,1,()=>{f=null}),he())},i(d){s||(g(f),s=!0)},o(d){_(f),s=!1},d(d){d&&$(e),c&&c.d(),n[8](null),d&&$(a),f&&f.d(d),d&&$(o),l=!1,u()}}}function KEe(n,e,t){let r,{$$slots:i={},$$scope:a}=e,{title:o}=e,{icon:s=""}=e,{id:l}=e;const u=$n();let c=Fr("tab");me(n,c,v=>t(4,r=v));let f,d;const p=()=>{setTimeout(()=>{d=f==null?void 0:f.getBoundingClientRect(),d&&r.title===o&&ci(c,r.info=d,r)},0)};gn(()=>{p()});const h=()=>{ci(c,r={...r,title:o,info:f.getBoundingClientRect()},r),u("click")};function m(v){Ae[v?"unshift":"push"](()=>{f=v,t(3,f)})}return n.$$set=v=>{"title"in v&&t(0,o=v.title),"icon"in v&&t(1,s=v.icon),"id"in v&&t(2,l=v.id),"$$scope"in v&&t(9,a=v.$$scope)},n.$$.update=()=>{var v;n.$$.dirty&25&&r.title===o&&f&&((v=r.info)==null?void 0:v.left)!==f.getBoundingClientRect().left&&p()},[o,s,l,f,r,c,h,i,m,a]}class wa extends Oe{constructor(e){super(),ke(this,e,KEe,ZEe,we,{title:0,icon:1,id:2})}}function JEe(n){let e,t,r;function i(o){n[9](o)}let a={updateOnChange:n[6],disabled:n[5],value:n[0],placeholder:n[4],quiet:n[7]};return n[1]!==void 0&&(a.inputRef=n[1]),e=new UI({props:a}),Ae.push(()=>qe(e,"inputRef",i)),e.$on("change",n[8]),e.$on("click",n[10]),e.$on("input",n[11]),e.$on("focus",n[12]),e.$on("blur",n[13]),{c(){T(e.$$.fragment)},m(o,s){M(e,o,s),r=!0},p(o,s){const l={};s&64&&(l.updateOnChange=o[6]),s&32&&(l.disabled=o[5]),s&1&&(l.value=o[0]),s&16&&(l.placeholder=o[4]),s&128&&(l.quiet=o[7]),!t&&s&2&&(t=!0,l.inputRef=o[1],xe(()=>t=!1)),e.$set(l)},i(o){r||(g(e.$$.fragment,o),r=!0)},o(o){_(e.$$.fragment,o),r=!1},d(o){E(e,o)}}}function eTe(n){let e,t;return e=new T1({props:{label:n[2],labelPosition:n[3],$$slots:{default:[JEe]},$$scope:{ctx:n}}}),{c(){T(e.$$.fragment)},m(r,i){M(e,r,i),t=!0},p(r,[i]){const a={};i&4&&(a.label=r[2]),i&8&&(a.labelPosition=r[3]),i&33011&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(g(e.$$.fragment,r),t=!0)},o(r){_(e.$$.fragment,r),t=!1},d(r){E(e,r)}}}function tTe(n,e,t){let{value:r=null}=e,{label:i=null}=e,{labelPosition:a="above"}=e,{placeholder:o=null}=e,{disabled:s=!1}=e,{updateOnChange:l=!0}=e,{quiet:u=!1}=e,{inputRef:c}=e;const f=$n(),d=w=>{t(0,r=w.detail),f("change",w.detail)};function p(w){c=w,t(1,c)}function h(w){ln.call(this,n,w)}function m(w){ln.call(this,n,w)}function v(w){ln.call(this,n,w)}function y(w){ln.call(this,n,w)}return n.$$set=w=>{"value"in w&&t(0,r=w.value),"label"in w&&t(2,i=w.label),"labelPosition"in w&&t(3,a=w.labelPosition),"placeholder"in w&&t(4,o=w.placeholder),"disabled"in w&&t(5,s=w.disabled),"updateOnChange"in w&&t(6,l=w.updateOnChange),"quiet"in w&&t(7,u=w.quiet),"inputRef"in w&&t(1,c=w.inputRef)},[r,c,i,a,o,s,l,u,d,p,h,m,v,y]}class Qh extends Oe{constructor(e){super(),ke(this,e,tTe,eTe,we,{value:0,label:2,labelPosition:3,placeholder:4,disabled:5,updateOnChange:6,quiet:7,inputRef:1})}}function nTe(n){let e,t,r,i,a,o,s,l,u,c;return{c(){e=U("nav"),t=U("div"),t.innerHTML='<svg class="spectrum-Icon spectrum-UIIcon-ChevronLeft100" focusable="false" aria-hidden="true" aria-label="ChevronLeft"><use xlink:href="#spectrum-css-icon-Chevron100"></use></svg>',r=R(),i=U("span"),a=ee("Page "),o=ee(n[0]),s=R(),l=U("div"),l.innerHTML='<svg class="spectrum-Icon spectrum-UIIcon-ChevronRight100" focusable="false" aria-hidden="true" aria-label="ChevronLeft"><use xlink:href="#spectrum-css-icon-Chevron100"></use></svg>',z(t,"href","#"),z(t,"class","spectrum-ActionButton spectrum-ActionButton--sizeM spectrum-ActionButton--quiet spectrum-Pagination-prevButton svelte-1w0vi9g"),be(t,"is-disabled",!n[3]),z(i,"class","spectrum-Body--secondary spectrum-Pagination-counter svelte-1w0vi9g"),z(l,"href","#"),z(l,"class","spectrum-ActionButton spectrum-ActionButton--sizeM spectrum-ActionButton--quiet spectrum-Pagination-nextButton svelte-1w0vi9g"),be(l,"is-disabled",!n[4]),z(e,"class","spectrum-Pagination spectrum-Pagination--explicit")},m(f,d){k(f,e,d),B(e,t),B(e,r),B(e,i),B(i,a),B(i,o),B(e,s),B(e,l),u||(c=[at(t,"click",function(){tn(n[3]?n[1]:null)&&(n[3]?n[1]:null).apply(this,arguments)}),at(l,"click",function(){tn(n[4]?n[2]:null)&&(n[4]?n[2]:null).apply(this,arguments)})],u=!0)},p(f,[d]){n=f,d&8&&be(t,"is-disabled",!n[3]),d&1&&Ze(o,n[0]),d&16&&be(l,"is-disabled",!n[4])},i:Xe,o:Xe,d(f){f&&$(e),u=!1,br(c)}}}function rTe(n,e,t){let{page:r}=e,{goToPrevPage:i}=e,{goToNextPage:a}=e,{hasPrevPage:o=!0}=e,{hasNextPage:s=!0}=e;return n.$$set=l=>{"page"in l&&t(0,r=l.page),"goToPrevPage"in l&&t(1,i=l.goToPrevPage),"goToNextPage"in l&&t(2,a=l.goToNextPage),"hasPrevPage"in l&&t(3,o=l.hasPrevPage),"hasNextPage"in l&&t(4,s=l.hasNextPage)},[r,i,a,o,s]}class N7 extends Oe{constructor(e){super(),ke(this,e,rTe,nTe,we,{page:0,goToPrevPage:1,goToNextPage:2,hasPrevPage:3,hasNextPage:4})}}function yx(n,e,t){const r=n.slice();return r[18]=e[t],r}function wx(n,e,t){const r=n.slice();return r[21]=e[t],r}function $x(n){let e,t,r,i,a,o,s,l,u,c,f,d,p,h=n[7],m=[];for(let y=0;y<h.length;y+=1)m[y]=Ax(yx(n,h,y));const v=y=>_(m[y],1,1,()=>{m[y]=null});return s=new fn({props:{updateOnChange:!1,quiet:!0,placeholder:"Hex, RGB, HSL...",value:n[6]}}),s.$on("change",n[13]),u=new Nt({props:{size:"S",name:"Close",hoverable:!0}}),u.$on("click",n[14]),{c(){e=U("div");for(let y=0;y<m.length;y+=1)m[y].c();t=R(),r=U("div"),i=U("div"),i.textContent="Custom",a=R(),o=U("div"),T(s.$$.fragment),l=R(),T(u.$$.fragment),z(i,"class","heading svelte-bfns6y"),z(o,"class","custom svelte-bfns6y"),z(r,"class","category category--custom svelte-bfns6y"),z(e,"class","spectrum-Popover spectrum-Popover--bottom spectrum-Picker-popover is-open svelte-bfns6y"),be(e,"spectrum-Popover--align-right",n[3])},m(y,w){k(y,e,w);for(let A=0;A<m.length;A+=1)m[A].m(e,null);B(e,t),B(e,r),B(r,i),B(r,a),B(r,o),M(s,o,null),B(o,l),M(u,o,null),f=!0,d||(p=Ra(W0.call(null,e,n[10])),d=!0)},p(y,w){if(w&933){h=y[7];let C;for(C=0;C<h.length;C+=1){const L=yx(y,h,C);m[C]?(m[C].p(L,w),g(m[C],1)):(m[C]=Ax(L),m[C].c(),g(m[C],1),m[C].m(e,t))}for(pe(),C=h.length;C<m.length;C+=1)v(C);he()}const A={};w&64&&(A.value=y[6]),s.$set(A),(!f||w&8)&&be(e,"spectrum-Popover--align-right",y[3])},i(y){if(!f){for(let w=0;w<h.length;w+=1)g(m[w]);g(s.$$.fragment,y),g(u.$$.fragment,y),y&&Mi(()=>{c||(c=Ci(e,bs,{y:-20,duration:200},!0)),c.run(1)}),f=!0}},o(y){m=m.filter(Boolean);for(let w=0;w<m.length;w+=1)_(m[w]);_(s.$$.fragment,y),_(u.$$.fragment,y),y&&(c||(c=Ci(e,bs,{y:-20,duration:200},!1)),c.run(0)),f=!1},d(y){y&&$(e),an(m,y),E(s),E(u),y&&c&&c.end(),d=!1,p()}}}function kx(n){let e,t;return e=new Nt({props:{name:"Checkmark",size:"S"}}),{c(){T(e.$$.fragment)},m(r,i){M(e,r,i),t=!0},i(r){t||(g(e.$$.fragment,r),t=!0)},o(r){_(e.$$.fragment,r),t=!1},d(r){E(e,r)}}}function Ox(n){let e,t,r,i,a,o,s=n[0]===`var(--spectrum-global-color-${n[21]})`&&kx();function l(){return n[12](n[21])}return{c(){e=U("div"),t=U("div"),s&&s.c(),z(t,"class",r="fill "+(n[2]||"")+" svelte-bfns6y"),sn(t,"background","var(--spectrum-global-color-"+n[21]+")"),sn(t,"color",n[5]),z(e,"class","color svelte-bfns6y"),z(e,"title",n[9](n[21]))},m(u,c){k(u,e,c),B(e,t),s&&s.m(t,null),i=!0,a||(o=at(e,"click",l),a=!0)},p(u,c){n=u,n[0]===`var(--spectrum-global-color-${n[21]})`?s?c&1&&g(s,1):(s=kx(),s.c(),g(s,1),s.m(t,null)):s&&(pe(),_(s,1,1,()=>{s=null}),he()),(!i||c&4&&r!==(r="fill "+(n[2]||"")+" svelte-bfns6y"))&&z(t,"class",r),(!i||c&32)&&sn(t,"color",n[5])},i(u){i||(g(s),i=!0)},o(u){_(s),i=!1},d(u){u&&$(e),s&&s.d(),a=!1,o()}}}function Ax(n){let e,t,r=n[18].label+"",i,a,o,s,l=n[18].colors,u=[];for(let f=0;f<l.length;f+=1)u[f]=Ox(wx(n,l,f));const c=f=>_(u[f],1,1,()=>{u[f]=null});return{c(){e=U("div"),t=U("div"),i=ee(r),a=R(),o=U("div");for(let f=0;f<u.length;f+=1)u[f].c();z(t,"class","heading svelte-bfns6y"),z(o,"class","colors svelte-bfns6y"),z(e,"class","category")},m(f,d){k(f,e,d),B(e,t),B(t,i),B(e,a),B(e,o);for(let p=0;p<u.length;p+=1)u[p].m(o,null);s=!0},p(f,d){if(d&933){l=f[18].colors;let p;for(p=0;p<l.length;p+=1){const h=wx(f,l,p);u[p]?(u[p].p(h,d),g(u[p],1)):(u[p]=Ox(h),u[p].c(),g(u[p],1),u[p].m(o,null))}for(pe(),p=l.length;p<u.length;p+=1)c(p);he()}},i(f){if(!s){for(let d=0;d<l.length;d+=1)g(u[d]);s=!0}},o(f){u=u.filter(Boolean);for(let d=0;d<u.length;d+=1)_(u[d]);s=!1},d(f){f&&$(e),an(u,f)}}}function iTe(n){let e,t,r,i,a,o,s,l,u,c,f=n[4]&&$x(n);return{c(){e=U("div"),t=U("div"),r=U("div"),s=R(),f&&f.c(),z(r,"class",i="fill "+(n[2]||"")+" svelte-bfns6y"),z(r,"style",a=n[0]?`background: ${n[0]};`:""),be(r,"placeholder",!n[0]),z(t,"class",o="preview size--"+(n[1]||"M")+" svelte-bfns6y"),z(e,"class","container svelte-bfns6y")},m(d,p){k(d,e,p),B(e,t),B(t,r),B(e,s),f&&f.m(e,null),l=!0,u||(c=at(t,"click",n[11]),u=!0)},p(d,[p]){(!l||p&4&&i!==(i="fill "+(d[2]||"")+" svelte-bfns6y"))&&z(r,"class",i),(!l||p&1&&a!==(a=d[0]?`background: ${d[0]};`:""))&&z(r,"style",a),(!l||p&5)&&be(r,"placeholder",!d[0]),(!l||p&2&&o!==(o="preview size--"+(d[1]||"M")+" svelte-bfns6y"))&&z(t,"class",o),d[4]?f?(f.p(d,p),p&16&&g(f,1)):(f=$x(d),f.c(),g(f,1),f.m(e,null)):f&&(pe(),_(f,1,1,()=>{f=null}),he())},i(d){l||(g(f),l=!0)},o(d){_(f),l=!1},d(d){d&&$(e),f&&f.d(),u=!1,c()}}}function aTe(n,e,t){let r,i,{value:a}=e,{size:o="M"}=e,{spectrumTheme:s}=e,{alignRight:l=!1}=e,u=!1;const c=$n(),f=[{label:"Theme",colors:["gray-50","gray-75","gray-100","gray-200","gray-300","gray-400","gray-500","gray-600","gray-700","gray-800","gray-900"]},{label:"Colors",colors:["red-400","orange-400","yellow-400","green-400","seafoam-400","blue-400","indigo-400","magenta-400","red-500","orange-500","yellow-500","green-500","seafoam-500","blue-500","indigo-500","magenta-500","red-600","orange-600","yellow-600","green-600","seafoam-600","blue-600","indigo-600","magenta-600","red-700","orange-700","yellow-700","green-700","seafoam-700","blue-700","indigo-700","magenta-700","static-white","static-black"]}],d=L=>{c("change",L),t(4,u=!1)},p=L=>{if(!L)return L;let I=!1;const P=L.substring(28,L.length-1);for(let V of f)if(I=V.colors.includes(P),I)break;return I?null:L},h=L=>mye(L.split("-").join(" ")),m=L=>L!=null&&L.includes("gray")?/^.*(gray-(50|75|100|200|300|400|500))\)$/.test(L)?"var(--spectrum-global-color-gray-900)":"var(--spectrum-global-color-gray-50)":L!=null&&L.includes("static-black")?"var(--spectrum-global-color-static-gray-50)":"var(--spectrum-global-color-static-gray-900)",v=L=>{u&&(L.stopPropagation(),t(4,u=!1))},y=()=>t(4,u=!0),w=L=>{d(`var(--spectrum-global-color-${L})`)};function A(L){ln.call(this,n,L)}const C=()=>d(null);return n.$$set=L=>{"value"in L&&t(0,a=L.value),"size"in L&&t(1,o=L.size),"spectrumTheme"in L&&t(2,s=L.spectrumTheme),"alignRight"in L&&t(3,l=L.alignRight)},n.$$.update=()=>{n.$$.dirty&1&&t(6,r=p(a)),n.$$.dirty&1&&t(5,i=m(a))},[a,o,s,l,u,i,r,f,d,h,v,y,w,A,C]}class sm extends Oe{constructor(e){super(),ke(this,e,aTe,iTe,we,{value:0,size:1,spectrumTheme:2,alignRight:3})}}function Sx(n,e,t){const r=n.slice();return r[10]=e[t],r}function zx(n,e,t){const r=n.slice();return r[10]=e[t],r}function Cx(n){let e,t,r,i,a,o=n[4],s=[];for(let u=0;u<o.length;u+=1)s[u]=Ex(Sx(n,o,u));const l=u=>_(s[u],1,1,()=>{s[u]=null});return{c(){e=U("div");for(let u=0;u<s.length;u+=1)s[u].c();z(e,"class","spectrum-Popover spectrum-Popover--bottom spectrum-Picker-popover is-open svelte-r1sbsa"),be(e,"spectrum-Popover--align-right",n[2])},m(u,c){k(u,e,c);for(let f=0;f<s.length;f+=1)s[f].m(e,null);r=!0,i||(a=Ra(W0.call(null,e,n[6])),i=!0)},p(u,c){if(c&48){o=u[4];let f;for(f=0;f<o.length;f+=1){const d=Sx(u,o,f);s[f]?(s[f].p(d,c),g(s[f],1)):(s[f]=Ex(d),s[f].c(),g(s[f],1),s[f].m(e,null))}for(pe(),f=o.length;f<s.length;f+=1)l(f);he()}(!r||c&4)&&be(e,"spectrum-Popover--align-right",u[2])},i(u){if(!r){for(let c=0;c<o.length;c+=1)g(s[c]);Mi(()=>{t||(t=Ci(e,bs,{y:-20,duration:200},!0)),t.run(1)}),r=!0}},o(u){s=s.filter(Boolean);for(let c=0;c<s.length;c+=1)_(s[c]);t||(t=Ci(e,bs,{y:-20,duration:200},!1)),t.run(0),r=!1},d(u){u&&$(e),an(s,u),u&&t&&t.end(),i=!1,a()}}}function Mx(n){let e,t,r,i,a,o;t=new Nt({props:{name:n[10]}});function s(){return n[8](n[10])}return{c(){e=U("div"),T(t.$$.fragment),r=R()},m(l,u){k(l,e,u),M(t,e,null),B(e,r),i=!0,a||(o=at(e,"click",s),a=!0)},p(l,u){n=l},i(l){i||(g(t.$$.fragment,l),i=!0)},o(l){_(t.$$.fragment,l),i=!1},d(l){l&&$(e),E(t),a=!1,o()}}}function Ex(n){let e,t,r=n[10].label+"",i,a,o,s,l,u=n[10].icons,c=[];for(let d=0;d<u.length;d+=1)c[d]=Mx(zx(n,u,d));const f=d=>_(c[d],1,1,()=>{c[d]=null});return{c(){e=U("div"),t=U("div"),i=ee(r),a=R(),o=U("div");for(let d=0;d<c.length;d+=1)c[d].c();s=R(),z(t,"class","heading svelte-r1sbsa"),z(o,"class","icons svelte-r1sbsa"),z(e,"class","category")},m(d,p){k(d,e,p),B(e,t),B(t,i),B(e,a),B(e,o);for(let h=0;h<c.length;h+=1)c[h].m(o,null);B(e,s),l=!0},p(d,p){if(p&48){u=d[10].icons;let h;for(h=0;h<u.length;h+=1){const m=zx(d,u,h);c[h]?(c[h].p(m,p),g(c[h],1)):(c[h]=Mx(m),c[h].c(),g(c[h],1),c[h].m(o,null))}for(pe(),h=u.length;h<c.length;h+=1)f(h);he()}},i(d){if(!l){for(let p=0;p<u.length;p+=1)g(c[p]);l=!0}},o(d){c=c.filter(Boolean);for(let p=0;p<c.length;p+=1)_(c[p]);l=!1},d(d){d&&$(e),an(c,d)}}}function oTe(n){let e,t,r,i,a,o,s,l,u,c;i=new Nt({props:{name:n[0]||"UserGroup"}});let f=n[3]&&Cx(n);return{c(){e=U("div"),t=U("div"),r=U("div"),T(i.$$.fragment),s=R(),f&&f.c(),z(r,"class","fill svelte-r1sbsa"),z(r,"style",a=n[0]?`background: ${n[0]};`:""),be(r,"placeholder",!n[0]),z(t,"class",o="preview size--"+(n[1]||"M")+" svelte-r1sbsa"),z(e,"class","container svelte-r1sbsa")},m(d,p){k(d,e,p),B(e,t),B(t,r),M(i,r,null),B(e,s),f&&f.m(e,null),l=!0,u||(c=at(t,"click",n[7]),u=!0)},p(d,[p]){const h={};p&1&&(h.name=d[0]||"UserGroup"),i.$set(h),(!l||p&1&&a!==(a=d[0]?`background: ${d[0]};`:""))&&z(r,"style",a),(!l||p&1)&&be(r,"placeholder",!d[0]),(!l||p&2&&o!==(o="preview size--"+(d[1]||"M")+" svelte-r1sbsa"))&&z(t,"class",o),d[3]?f?(f.p(d,p),p&8&&g(f,1)):(f=Cx(d),f.c(),g(f,1),f.m(e,null)):f&&(pe(),_(f,1,1,()=>{f=null}),he())},i(d){l||(g(i.$$.fragment,d),g(f),l=!0)},o(d){_(i.$$.fragment,d),_(f),l=!1},d(d){d&&$(e),E(i),f&&f.d(),u=!1,c()}}}function sTe(n,e,t){let{value:r}=e,{size:i="M"}=e,{alignRight:a=!1}=e,o=!1;const s=$n(),l=[{label:"Icons",icons:["Apps","Actions","ConversionFunnel","App","Briefcase","Money","ShoppingCart","Form","Help","Monitoring","Sandbox","Project","Organisations","Magnify","Launch","Car","Camera","Bug","Channel","Calculator","Calendar","GraphDonut","GraphBarHorizontal","Demographic"]}],u=p=>{s("change",p),t(3,o=!1)},c=p=>{o&&(p.stopPropagation(),t(3,o=!1))},f=()=>t(3,o=!0),d=p=>{u(p)};return n.$$set=p=>{"value"in p&&t(0,r=p.value),"size"in p&&t(1,i=p.size),"alignRight"in p&&t(2,a=p.alignRight)},[r,i,a,o,l,u,c,f,d]}class lTe extends Oe{constructor(e){super(),ke(this,e,sTe,oTe,we,{value:0,size:1,alignRight:2})}}function Tx(n,e,t){const r=n.slice();return r[8]=e[t],r}function Lx(n){let e,t=n[8]+"",r;return{c(){e=U("div"),r=ee(t),z(e,"class","spectrum-InLineAlert-content")},m(i,a){k(i,e,a),B(e,r)},p(i,a){a&32&&t!==(t=i[8]+"")&&Ze(r,t)},d(i){i&&$(e)}}}function Px(n){let e,t,r;return t=new nn({props:{cta:n[4],secondary:!n[4],$$slots:{default:[uTe]},$$scope:{ctx:n}}}),t.$on("click",function(){tn(n[2])&&n[2].apply(this,arguments)}),{c(){e=U("div"),T(t.$$.fragment),z(e,"class","spectrum-InLineAlert-footer button svelte-1dxkzv")},m(i,a){k(i,e,a),M(t,e,null),r=!0},p(i,a){n=i;const o={};a&16&&(o.cta=n[4]),a&16&&(o.secondary=!n[4]),a&2056&&(o.$$scope={dirty:a,ctx:n}),t.$set(o)},i(i){r||(g(t.$$.fragment,i),r=!0)},o(i){_(t.$$.fragment,i),r=!1},d(i){i&&$(e),E(t)}}}function uTe(n){let e=(n[3]||"OK")+"",t;return{c(){t=ee(e)},m(r,i){k(r,t,i)},p(r,i){i&8&&e!==(e=(r[3]||"OK")+"")&&Ze(t,e)},d(r){r&&$(t)}}}function cTe(n){let e,t,r,i,a,o,s,l,u,c,f,d=n[5],p=[];for(let m=0;m<d.length;m+=1)p[m]=Lx(Tx(n,d,m));let h=n[2]&&Px(n);return{c(){e=U("div"),t=nt("svg"),r=nt("use"),a=R(),o=U("div"),s=ee(n[1]),l=R();for(let m=0;m<p.length;m+=1)p[m].c();u=R(),h&&h.c(),Ar(r,"xlink:href",i="#spectrum-icon-18-"+n[6]),z(t,"class","spectrum-Icon spectrum-Icon--sizeM spectrum-InLineAlert-icon"),z(t,"focusable","false"),z(t,"aria-hidden","true"),z(o,"class","spectrum-InLineAlert-header"),z(e,"class",c="spectrum-InLineAlert spectrum-InLineAlert--"+n[0]+" svelte-1dxkzv")},m(m,v){k(m,e,v),B(e,t),B(t,r),B(e,a),B(e,o),B(o,s),B(e,l);for(let y=0;y<p.length;y+=1)p[y].m(e,null);B(e,u),h&&h.m(e,null),f=!0},p(m,[v]){if((!f||v&64&&i!==(i="#spectrum-icon-18-"+m[6]))&&Ar(r,"xlink:href",i),(!f||v&2)&&Ze(s,m[1]),v&32){d=m[5];let y;for(y=0;y<d.length;y+=1){const w=Tx(m,d,y);p[y]?p[y].p(w,v):(p[y]=Lx(w),p[y].c(),p[y].m(e,u))}for(;y<p.length;y+=1)p[y].d(1);p.length=d.length}m[2]?h?(h.p(m,v),v&4&&g(h,1)):(h=Px(m),h.c(),g(h,1),h.m(e,null)):h&&(pe(),_(h,1,1,()=>{h=null}),he()),(!f||v&1&&c!==(c="spectrum-InLineAlert spectrum-InLineAlert--"+m[0]+" svelte-1dxkzv"))&&z(e,"class",c)},i(m){f||(g(h),f=!0)},o(m){_(h),f=!1},d(m){m&&$(e),an(p,m),h&&h.d()}}}function fTe(n){switch(n){case"error":case"negative":return"Alert";case"success":return"CheckmarkCircle";case"help":return"Help";default:return"Info"}}function dTe(n,e,t){let r,i,{type:a="info"}=e,{header:o=""}=e,{message:s=""}=e,{onConfirm:l=void 0}=e,{buttonText:u=""}=e,{cta:c=!1}=e;return n.$$set=f=>{"type"in f&&t(0,a=f.type),"header"in f&&t(1,o=f.header),"message"in f&&t(7,s=f.message),"onConfirm"in f&&t(2,l=f.onConfirm),"buttonText"in f&&t(3,u=f.buttonText),"cta"in f&&t(4,c=f.cta)},n.$$.update=()=>{n.$$.dirty&1&&t(6,r=fTe(a)),n.$$.dirty&128&&t(5,i=s.split(`
252
+ `;return w+="`;",`${I}${w}`}});const Kq=Nu.isValid,Ba=Nu.makePropSafe,Yde=Nu.getManifest,Bb=Nu.isJSBinding,Wk=Nu.encodeJSBinding,u6=Nu.decodeJSBinding,B2=Nu.processStringSync;Nu.processObjectSync;Nu.processString;Nu.processObject;Nu.doesContainStrings;Nu.doesContainString;Nu.disableEscaping;const Zde=Nu.findHBSBlocks,Kde=Nu.convertToJS;process&&!{}.NO_JS&&Qde((n,e)=>(e={...e,alert:void 0,setInterval:void 0,setTimeout:void 0},kj.createContext(e),kj.runInNewContext(n,e,{timeout:1e3})));function Jq(n){let e,t,r;var i=n[3];function a(o){return{props:{row:o[0],schema:o[1],value:o[4],$$slots:{default:[AEe]},$$scope:{ctx:o}}}}return i&&(t=pi(i,a(n)),t.$on("clickrelationship",n[9]),t.$on("buttonclick",n[10])),{c(){e=U("div"),t&&T(t.$$.fragment),sn(e,"--max-cell-width",n[1].width?"none":"200px"),z(e,"class","svelte-16j2cvj")},m(o,s){k(o,e,s),t&&M(t,e,null),r=!0},p(o,s){const l={};if(s&1&&(l.row=o[0]),s&2&&(l.schema=o[1]),s&16&&(l.value=o[4]),s&2048&&(l.$$scope={dirty:s,ctx:o}),i!==(i=o[3])){if(t){pe();const u=t;_(u.$$.fragment,1,0,()=>{E(u,1)}),he()}i?(t=pi(i,a(o)),t.$on("clickrelationship",o[9]),t.$on("buttonclick",o[10]),T(t.$$.fragment),g(t.$$.fragment,1),M(t,e,null)):t=null}else i&&t.$set(l);(!r||s&2)&&sn(e,"--max-cell-width",o[1].width?"none":"200px")},i(o){r||(t&&g(t.$$.fragment,o),r=!0)},o(o){t&&_(t.$$.fragment,o),r=!1},d(o){o&&$(e),t&&E(t)}}}function AEe(n){let e;const t=n[8].default,r=vn(t,n,n[11],null);return{c(){r&&r.c()},m(i,a){r&&r.m(i,a),e=!0},p(i,a){r&&r.p&&(!e||a&2048)&&bn(r,t,i,i[11],e?_n(t,i[11],a,null):yn(i[11]),null)},i(i){e||(g(r,i),e=!0)},o(i){_(r,i),e=!1},d(i){r&&r.d(i)}}}function SEe(n){let e,t,r=n[3]&&(n[2]||n[4]!=null&&n[4]!=="")&&Jq(n);return{c(){r&&r.c(),e=ut()},m(i,a){r&&r.m(i,a),k(i,e,a),t=!0},p(i,[a]){i[3]&&(i[2]||i[4]!=null&&i[4]!=="")?r?(r.p(i,a),a&28&&g(r,1)):(r=Jq(i),r.c(),g(r,1),r.m(e.parentNode,e)):r&&(pe(),_(r,1,1,()=>{r=null}),he())},i(i){t||(g(r),t=!0)},o(i){_(r),t=!1},d(i){r&&r.d(i),i&&$(e)}}}function zEe(n,e,t){let r,i,a,{$$slots:o={},$$scope:s}=e,{row:l}=e,{schema:u}=e,{value:c}=e,{customRenderers:f=[]}=e,d;const p={boolean:Zke,datetime:eOe,link:aOe,attachment:mOe,string:ev,options:ev,number:ev,longform:ev,array:yOe,internal:Zfe},h=w=>(w==null?void 0:w.type)==="datetime"&&(w==null?void 0:w.template)?"string":(w==null?void 0:w.type)||"string",m=(w,A)=>A?B2(A,{value:w}):w;function v(w){ln.call(this,n,w)}function y(w){ln.call(this,n,w)}return n.$$set=w=>{"row"in w&&t(0,l=w.row),"schema"in w&&t(1,u=w.schema),"value"in w&&t(5,c=w.value),"customRenderers"in w&&t(6,f=w.customRenderers),"$$scope"in w&&t(11,s=w.$$scope)},n.$$.update=()=>{var w,A;n.$$.dirty&2&&t(7,r=h(u)),n.$$.dirty&66&&t(2,i=f==null?void 0:f.find(C=>C.column===(u==null?void 0:u.name))),n.$$.dirty&132&&t(3,d=(A=(w=i==null?void 0:i.component)!=null?w:p[r])!=null?A:ev),n.$$.dirty&2&&u!=null&&u.width,n.$$.dirty&34&&t(4,a=m(c,u.template))},[l,u,i,d,a,c,f,r,o,v,y,s]}class CEe extends Oe{constructor(e){super(),ke(this,e,zEe,SEe,we,{row:0,schema:1,value:5,customRenderers:6})}}function ex(n){let e,t;return e=new No({props:{value:n[0]}}),{c(){T(e.$$.fragment)},m(r,i){M(e,r,i),t=!0},p(r,i){const a={};i&1&&(a.value=r[0]),e.$set(a)},i(r){t||(g(e.$$.fragment,r),t=!0)},o(r){_(e.$$.fragment,r),t=!1},d(r){E(e,r)}}}function tx(n){let e,t;return e=new rr({props:{size:"S",$$slots:{default:[MEe]},$$scope:{ctx:n}}}),e.$on("click",function(){tn(n[1])&&n[1].apply(this,arguments)}),{c(){T(e.$$.fragment)},m(r,i){M(e,r,i),t=!0},p(r,i){n=r;const a={};i&16&&(a.$$scope={dirty:i,ctx:n}),e.$set(a)},i(r){t||(g(e.$$.fragment,r),t=!0)},o(r){_(e.$$.fragment,r),t=!1},d(r){E(e,r)}}}function MEe(n){let e;return{c(){e=ee("Edit")},m(t,r){k(t,e,r)},d(t){t&&$(e)}}}function EEe(n){let e,t,r,i=n[2]&&ex(n),a=n[3]&&tx(n);return{c(){e=U("div"),i&&i.c(),t=R(),a&&a.c(),z(e,"class","svelte-1fa8hd3")},m(o,s){k(o,e,s),i&&i.m(e,null),B(e,t),a&&a.m(e,null),r=!0},p(o,[s]){o[2]?i?(i.p(o,s),s&4&&g(i,1)):(i=ex(o),i.c(),g(i,1),i.m(e,t)):i&&(pe(),_(i,1,1,()=>{i=null}),he()),o[3]?a?(a.p(o,s),s&8&&g(a,1)):(a=tx(o),a.c(),g(a,1),a.m(e,null)):a&&(pe(),_(a,1,1,()=>{a=null}),he())},i(o){r||(g(i),g(a),r=!0)},o(o){_(i),_(a),r=!1},d(o){o&&$(e),i&&i.d(),a&&a.d()}}}function TEe(n,e,t){let{selected:r}=e,{onEdit:i}=e,{allowSelectRows:a=!1}=e,{allowEditRows:o=!1}=e;return n.$$set=s=>{"selected"in s&&t(0,r=s.selected),"onEdit"in s&&t(1,i=s.onEdit),"allowSelectRows"in s&&t(2,a=s.allowSelectRows),"allowEditRows"in s&&t(3,o=s.allowEditRows)},[r,i,a,o]}class LEe extends Oe{constructor(e){super(),ke(this,e,TEe,EEe,we,{selected:0,onEdit:1,allowSelectRows:2,allowEditRows:3})}}const PEe=n=>({}),nx=n=>({});function rx(n,e,t){const r=n.slice();return r[59]=e[t],r[61]=t,r}function ix(n,e,t){const r=n.slice();return r[62]=e[t],r}function ax(n,e,t){const r=n.slice();return r[62]=e[t],r}const DEe=n=>({}),ox=n=>({});function IEe(n){let e,t,r,i,a,o,s=n[18].length&&sx(n);const l=[NEe,VEe],u=[];function c(f,d){var p;return(p=f[23])!=null&&p.length?0:1}return r=c(n),i=u[r]=l[r](n),{c(){e=U("div"),s&&s.c(),t=R(),i.c(),z(e,"class","spectrum-Table svelte-rzhjll"),z(e,"style",a=`${n[24]}${n[22]}`),be(e,"no-scroll",!n[2])},m(f,d){k(f,e,d),s&&s.m(e,null),B(e,t),u[r].m(e,null),o=!0},p(f,d){f[18].length?s?(s.p(f,d),d[0]&262144&&g(s,1)):(s=sx(f),s.c(),g(s,1),s.m(e,t)):s&&(pe(),_(s,1,1,()=>{s=null}),he());let p=r;r=c(f),r===p?u[r].p(f,d):(pe(),_(u[p],1,1,()=>{u[p]=null}),he(),i=u[r],i?i.p(f,d):(i=u[r]=l[r](f),i.c()),g(i,1),i.m(e,null)),(!o||d[0]&20971520&&a!==(a=`${f[24]}${f[22]}`))&&z(e,"style",a),(!o||d[0]&4)&&be(e,"no-scroll",!f[2])},i(f){o||(g(s),g(i),o=!0)},o(f){_(s),_(i),o=!1},d(f){f&&$(e),s&&s.d(),u[r].d()}}}function BEe(n){let e,t;const r=n[40].loadingIndicator,i=vn(r,n,n[51],ox),a=i||qEe();return{c(){e=U("div"),a&&a.c(),z(e,"class","loading svelte-rzhjll"),z(e,"style",n[24])},m(o,s){k(o,e,s),a&&a.m(e,null),t=!0},p(o,s){i&&i.p&&(!t||s[1]&1048576)&&bn(i,r,o,o[51],t?_n(r,o[51],s,DEe):yn(o[51]),ox),(!t||s[0]&16777216)&&z(e,"style",o[24])},i(o){t||(g(a,o),t=!0)},o(o){_(a,o),t=!1},d(o){o&&$(e),a&&a.d(o)}}}function sx(n){let e,t,r,i=n[17]&&lx(n),a=n[18],o=[];for(let s=0;s<a.length;s+=1)o[s]=dx(ax(n,a,s));return{c(){e=U("div"),i&&i.c(),t=R();for(let s=0;s<o.length;s+=1)o[s].c();z(e,"class","spectrum-Table-head svelte-rzhjll")},m(s,l){k(s,e,l),i&&i.m(e,null),B(e,t);for(let u=0;u<o.length;u+=1)o[u].m(e,null);r=!0},p(s,l){if(s[17]?i?(i.p(s,l),l[0]&131072&&g(i,1)):(i=lx(s),i.c(),g(i,1),i.m(e,t)):i&&(pe(),_(i,1,1,()=>{i=null}),he()),l[0]&470077569){a=s[18];let u;for(u=0;u<a.length;u+=1){const c=ax(s,a,u);o[u]?o[u].p(c,l):(o[u]=dx(c),o[u].c(),o[u].m(e,null))}for(;u<o.length;u+=1)o[u].d(1);o.length=a.length}},i(s){r||(g(i),r=!0)},o(s){_(i),r=!1},d(s){s&&$(e),i&&i.d(),an(o,s)}}}function lx(n){let e,t,r,i;const a=[HEe,REe],o=[];function s(l,u){return l[5]?0:1}return t=s(n),r=o[t]=a[t](n),{c(){e=U("div"),r.c(),z(e,"class","spectrum-Table-headCell spectrum-Table-headCell--divider spectrum-Table-headCell--edit svelte-rzhjll"),be(e,"noBorderHeader",!n[12])},m(l,u){k(l,e,u),o[t].m(e,null),i=!0},p(l,u){let c=t;t=s(l),t===c?o[t].p(l,u):(pe(),_(o[c],1,1,()=>{o[c]=null}),he(),r=o[t],r?r.p(l,u):(r=o[t]=a[t](l),r.c()),g(r,1),r.m(e,null)),(!i||u[0]&4096)&&be(e,"noBorderHeader",!l[12])},i(l){i||(g(r),i=!0)},o(l){_(r),i=!1},d(l){l&&$(e),o[t].d()}}}function REe(n){let e;return{c(){e=ee("Edit")},m(t,r){k(t,e,r)},p:Xe,i:Xe,o:Xe,d(t){t&&$(e)}}}function HEe(n){let e,t,r;function i(o){n[41](o)}let a={};return n[20]!==void 0&&(a.value=n[20]),e=new No({props:a}),Ae.push(()=>qe(e,"value",i)),e.$on("change",n[31]),{c(){T(e.$$.fragment)},m(o,s){M(e,o,s),r=!0},p(o,s){const l={};!t&&s[0]&1048576&&(t=!0,l.value=o[20],xe(()=>t=!1)),e.$set(l)},i(o){r||(g(e.$$.fragment,o),r=!0)},o(o){_(e.$$.fragment,o),r=!1},d(o){E(e,o)}}}function ux(n){let e,t;return{c(){e=nt("svg"),t=nt("use"),Ar(t,"xlink:href","#spectrum-icon-18-MagicWand"),z(e,"class","spectrum-Icon spectrum-Table-autoIcon svelte-rzhjll"),z(e,"focusable","false")},m(r,i){k(r,e,i),B(e,t)},d(r){r&&$(e)}}}function cx(n){let e,t;return{c(){e=nt("svg"),t=nt("use"),Ar(t,"xlink:href","#spectrum-css-icon-Arrow100"),z(e,"class","spectrum-Icon spectrum-UIIcon-ArrowDown100 spectrum-Table-sortedIcon svelte-rzhjll"),z(e,"focusable","false"),z(e,"aria-hidden","true")},m(r,i){k(r,e,i),B(e,t)},d(r){r&&$(e)}}}function fx(n){let e,t,r,i;function a(...o){return n[42](n[62],...o)}return{c(){e=nt("svg"),t=nt("use"),Ar(t,"xlink:href","#spectrum-icon-18-Edit"),z(e,"class","spectrum-Icon spectrum-Table-editIcon svelte-rzhjll"),z(e,"focusable","false")},m(o,s){k(o,e,s),B(e,t),r||(i=at(e,"click",a),r=!0)},p(o,s){n=o},d(o){o&&$(e),r=!1,i()}}}function dx(n){var m,v;let e,t,r=n[27](n[0][n[62]])+"",i,a,o,s,l,u,c,f=((m=n[0][n[62]])==null?void 0:m.autocolumn)&&ux(),d=n[14]===n[62]&&cx(),p=n[7]&&((v=n[0][n[62]])==null?void 0:v.editable)!==!1&&fx(n);function h(){return n[43](n[62])}return{c(){e=U("div"),t=U("div"),i=ee(r),a=R(),f&&f.c(),o=R(),d&&d.c(),s=R(),p&&p.c(),l=R(),z(t,"class","title svelte-rzhjll"),z(e,"class","spectrum-Table-headCell svelte-rzhjll"),be(e,"noBorderHeader",!n[12]),be(e,"spectrum-Table-headCell--alignCenter",n[0][n[62]].align==="Center"),be(e,"spectrum-Table-headCell--alignRight",n[0][n[62]].align==="Right"),be(e,"is-sortable",n[0][n[62]].sortable!==!1),be(e,"is-sorted-desc",n[14]===n[62]&&n[15]==="Descending"),be(e,"is-sorted-asc",n[14]===n[62]&&n[15]==="Ascending")},m(y,w){k(y,e,w),B(e,t),B(t,i),B(e,a),f&&f.m(e,null),B(e,o),d&&d.m(e,null),B(e,s),p&&p.m(e,null),B(e,l),u||(c=at(e,"click",h),u=!0)},p(y,w){var A,C;n=y,w[0]&262145&&r!==(r=n[27](n[0][n[62]])+"")&&Ze(i,r),(A=n[0][n[62]])!=null&&A.autocolumn?f||(f=ux(),f.c(),f.m(e,o)):f&&(f.d(1),f=null),n[14]===n[62]?d||(d=cx(),d.c(),d.m(e,s)):d&&(d.d(1),d=null),n[7]&&((C=n[0][n[62]])==null?void 0:C.editable)!==!1?p?p.p(n,w):(p=fx(n),p.c(),p.m(e,l)):p&&(p.d(1),p=null),w[0]&4096&&be(e,"noBorderHeader",!n[12]),w[0]&262145&&be(e,"spectrum-Table-headCell--alignCenter",n[0][n[62]].align==="Center"),w[0]&262145&&be(e,"spectrum-Table-headCell--alignRight",n[0][n[62]].align==="Right"),w[0]&262145&&be(e,"is-sortable",n[0][n[62]].sortable!==!1),w[0]&311296&&be(e,"is-sorted-desc",n[14]===n[62]&&n[15]==="Descending"),w[0]&311296&&be(e,"is-sorted-asc",n[14]===n[62]&&n[15]==="Ascending")},d(y){y&&$(e),f&&f.d(),d&&d.d(),p&&p.d(),u=!1,c()}}}function VEe(n){let e,t,r,i;const a=[UEe,FEe],o=[];function s(l,u){return l[11]?0:1}return t=s(n),r=o[t]=a[t](n),{c(){var l;e=U("div"),r.c(),z(e,"class","placeholder svelte-rzhjll"),be(e,"placeholder--custom",n[11]),be(e,"placeholder--no-fields",!((l=n[18])!=null&&l.length))},m(l,u){k(l,e,u),o[t].m(e,null),i=!0},p(l,u){var f;let c=t;t=s(l),t===c?o[t].p(l,u):(pe(),_(o[c],1,1,()=>{o[c]=null}),he(),r=o[t],r?r.p(l,u):(r=o[t]=a[t](l),r.c()),g(r,1),r.m(e,null)),(!i||u[0]&2048)&&be(e,"placeholder--custom",l[11]),(!i||u[0]&262144)&&be(e,"placeholder--no-fields",!((f=l[18])!=null&&f.length))},i(l){i||(g(r),i=!0)},o(l){_(r),i=!1},d(l){l&&$(e),o[t].d()}}}function NEe(n){let e,t,r=n[23],i=[];for(let o=0;o<r.length;o+=1)i[o]=mx(rx(n,r,o));const a=o=>_(i[o],1,1,()=>{i[o]=null});return{c(){for(let o=0;o<i.length;o+=1)i[o].c();e=ut()},m(o,s){for(let l=0;l<i.length;l+=1)i[l].m(o,s);k(o,e,s),t=!0},p(o,s){if(s[0]&1655051107|s[1]&1048576){r=o[23];let l;for(l=0;l<r.length;l+=1){const u=rx(o,r,l);i[l]?(i[l].p(u,s),g(i[l],1)):(i[l]=mx(u),i[l].c(),g(i[l],1),i[l].m(e.parentNode,e))}for(pe(),l=r.length;l<i.length;l+=1)a(l);he()}},i(o){if(!t){for(let s=0;s<r.length;s+=1)g(i[s]);t=!0}},o(o){i=i.filter(Boolean);for(let s=0;s<i.length;s+=1)_(i[s]);t=!1},d(o){an(i,o),o&&$(e)}}}function FEe(n){let e,t,r,i,a,o;return{c(){e=U("div"),t=nt("svg"),r=nt("use"),i=R(),a=U("div"),o=ee(n[13]),Ar(r,"xlink:href","#spectrum-icon-18-Table"),z(t,"class","spectrum-Icon spectrum-Icon--sizeXXL"),z(t,"focusable","false"),z(a,"class","svelte-rzhjll"),z(e,"class","placeholder-content svelte-rzhjll")},m(s,l){k(s,e,l),B(e,t),B(t,r),B(e,i),B(e,a),B(a,o)},p(s,l){l[0]&8192&&Ze(o,s[13])},i:Xe,o:Xe,d(s){s&&$(e)}}}function UEe(n){let e;const t=n[40].placeholder,r=vn(t,n,n[51],nx);return{c(){r&&r.c()},m(i,a){r&&r.m(i,a),e=!0},p(i,a){r&&r.p&&(!e||a[1]&1048576)&&bn(r,t,i,i[51],e?_n(t,i[51],a,PEe):yn(i[51]),nx)},i(i){e||(g(r,i),e=!0)},o(i){_(r,i),e=!1},d(i){r&&r.d(i)}}}function px(n){let e,t,r,i,a;function o(...u){return n[44](n[59],...u)}function s(...u){return n[45](n[59],...u)}t=new LEe({props:{data:n[59],selected:n[1].findIndex(o)!==-1,onEdit:s,allowSelectRows:n[5],allowEditRows:n[6]}});function l(...u){return n[46](n[59],...u)}return{c(){e=U("div"),T(t.$$.fragment),z(e,"class","spectrum-Table-cell spectrum-Table-cell--divider spectrum-Table-cell--edit svelte-rzhjll"),be(e,"noBorderCheckbox",!n[12])},m(u,c){k(u,e,c),M(t,e,null),r=!0,i||(a=at(e,"click",l),i=!0)},p(u,c){n=u;const f={};c[0]&8388608&&(f.data=n[59]),c[0]&8388610&&(f.selected=n[1].findIndex(o)!==-1),c[0]&8388608&&(f.onEdit=s),c[0]&32&&(f.allowSelectRows=n[5]),c[0]&64&&(f.allowEditRows=n[6]),t.$set(f),(!r||c[0]&4096)&&be(e,"noBorderCheckbox",!n[12])},i(u){r||(g(t.$$.fragment,u),r=!0)},o(u){_(t.$$.fragment,u),r=!1},d(u){u&&$(e),E(t),i=!1,a()}}}function jEe(n){let e;const t=n[40].default,r=vn(t,n,n[51],null);return{c(){r&&r.c()},m(i,a){r&&r.m(i,a),e=!0},p(i,a){r&&r.p&&(!e||a[1]&1048576)&&bn(r,t,i,i[51],e?_n(t,i[51],a,null):yn(i[51]),null)},i(i){e||(g(r,i),e=!0)},o(i){_(r,i),e=!1},d(i){r&&r.d(i)}}}function hx(n){let e,t,r,i,a,o;t=new CEe({props:{customRenderers:n[9],row:n[59],schema:n[0][n[62]],value:T_(n[59],n[62]),$$slots:{default:[jEe]},$$scope:{ctx:n}}}),t.$on("clickrelationship",n[47]),t.$on("buttonclick",n[48]);function s(){return n[49](n[62],n[59])}return{c(){e=U("div"),T(t.$$.fragment),z(e,"class","spectrum-Table-cell svelte-rzhjll"),z(e,"style",r=n[21][n[62]]),be(e,"spectrum-Table-cell--divider",!!n[0][n[62]].divider)},m(l,u){k(l,e,u),M(t,e,null),i=!0,a||(o=at(e,"click",s),a=!0)},p(l,u){n=l;const c={};u[0]&512&&(c.customRenderers=n[9]),u[0]&8388608&&(c.row=n[59]),u[0]&262145&&(c.schema=n[0][n[62]]),u[0]&8650752&&(c.value=T_(n[59],n[62])),u[1]&1048576&&(c.$$scope={dirty:u,ctx:n}),t.$set(c),(!i||u[0]&2359296&&r!==(r=n[21][n[62]]))&&z(e,"style",r),(!i||u[0]&262145)&&be(e,"spectrum-Table-cell--divider",!!n[0][n[62]].divider)},i(l){i||(g(t.$$.fragment,l),i=!0)},o(l){_(t.$$.fragment,l),i=!1},d(l){l&&$(e),E(t),a=!1,o()}}}function mx(n){let e,t,r,i,a=n[17]&&px(n),o=n[18],s=[];for(let u=0;u<o.length;u+=1)s[u]=hx(ix(n,o,u));const l=u=>_(s[u],1,1,()=>{s[u]=null});return{c(){e=U("div"),a&&a.c(),t=R();for(let u=0;u<s.length;u+=1)s[u].c();r=R(),z(e,"class","spectrum-Table-row svelte-rzhjll"),be(e,"clickable",n[8])},m(u,c){k(u,e,c),a&&a.m(e,null),B(e,t);for(let f=0;f<s.length;f+=1)s[f].m(e,null);B(e,r),i=!0},p(u,c){if(u[17]?a?(a.p(u,c),c[0]&131072&&g(a,1)):(a=px(u),a.c(),g(a,1),a.m(e,t)):a&&(pe(),_(a,1,1,()=>{a=null}),he()),c[0]&1118044673|c[1]&1048576){o=u[18];let f;for(f=0;f<o.length;f+=1){const d=ix(u,o,f);s[f]?(s[f].p(d,c),g(s[f],1)):(s[f]=hx(d),s[f].c(),g(s[f],1),s[f].m(e,r))}for(pe(),f=o.length;f<s.length;f+=1)l(f);he()}(!i||c[0]&256)&&be(e,"clickable",u[8])},i(u){if(!i){g(a);for(let c=0;c<o.length;c+=1)g(s[c]);i=!0}},o(u){_(a),s=s.filter(Boolean);for(let c=0;c<s.length;c+=1)_(s[c]);i=!1},d(u){u&&$(e),a&&a.d(),an(s,u)}}}function qEe(n){let e,t;return e=new H7({}),{c(){T(e.$$.fragment)},m(r,i){M(e,r,i),t=!0},i(r){t||(g(e.$$.fragment,r),t=!0)},o(r){_(e.$$.fragment,r),t=!1},d(r){E(e,r)}}}function gx(n){let e,t,r,i,a,o;const s=[BEe,IEe],l=[];function u(c,f){return c[4]?0:1}return t=u(n),r=l[t]=s[t](n),{c(){e=U("div"),r.c(),z(e,"class","wrapper svelte-rzhjll"),z(e,"style",i=`--row-height: ${n[19]}px; --header-height: ${Gk}px;`),Mi(()=>n[50].call(e)),be(e,"wrapper--quiet",n[3]),be(e,"wrapper--compact",n[10])},m(c,f){k(c,e,f),l[t].m(e,null),a=Uve(e,n[50].bind(e)),o=!0},p(c,f){let d=t;t=u(c),t===d?l[t].p(c,f):(pe(),_(l[d],1,1,()=>{l[d]=null}),he(),r=l[t],r?r.p(c,f):(r=l[t]=s[t](c),r.c()),g(r,1),r.m(e,null)),(!o||f[0]&524288&&i!==(i=`--row-height: ${c[19]}px; --header-height: ${Gk}px;`))&&z(e,"style",i),(!o||f[0]&8)&&be(e,"wrapper--quiet",c[3]),(!o||f[0]&1024)&&be(e,"wrapper--compact",c[10])},i(c){o||(g(r),o=!0)},o(c){_(r),o=!1},d(c){c&&$(e),l[t].d(),a()}}}function xEe(n){var a;let e=(a=n[18])==null?void 0:a.length,t,r,i=gx(n);return{c(){i.c(),t=ut()},m(o,s){i.m(o,s),k(o,t,s),r=!0},p(o,s){var l;s[0]&262144&&we(e,e=(l=o[18])==null?void 0:l.length)?(pe(),_(i,1,1,Xe),he(),i=gx(o),i.c(),g(i,1),i.m(t.parentNode,t)):i.p(o,s)},i(o){r||(g(i),r=!0)},o(o){_(i),r=!1},d(o){o&&$(t),i.d(o)}}}const Gk=36;function QEe(n,e,t){let r,i,a,o,s,l,u,c,f,d,{$$slots:p={},$$scope:h}=e,{data:m=[]}=e,{schema:v={}}=e,{showAutoColumns:y=!1}=e,{rowCount:w=0}=e,{quiet:A=!1}=e,{loading:C=!1}=e,{allowSelectRows:L}=e,{allowEditRows:I=!0}=e,{allowEditColumns:P=!0}=e,{allowClickRows:V=!0}=e,{selectedRows:H=[]}=e,{customRenderers:Q=[]}=e,{disableSorting:K=!1}=e,{autoSortColumns:J=!0}=e,{compact:Y=!1}=e,{customPlaceholder:W=!1}=e,{showHeaderBorder:q=!0}=e,{placeholderText:Z="No rows found"}=e;const te=$n();let ie,se,ae=0,fe=!1,le=!1;const re=je=>{let it={};return Object.entries(je||{}).forEach(([pt,Xt])=>{typeof Xt=="string"?it[pt]={type:Xt,name:pt}:it[pt]={...Xt,name:pt}}),it},ge=(je,it,pt,Xt,kt)=>je?Xt?Math.min(pt,Xt):Math.min(pt,Math.ceil(it/kt)):Xt||0,Le=(je,it,pt,Xt,kt)=>kt?`height: ${Gk+je*Xt}px;`:!it||!je||pt<=it?"":`height: ${Gk+je*Xt}px;`,ve=(je,it,pt)=>{let Xt="grid-template-columns:";return pt&&(Xt+=" auto"),je==null||je.forEach(kt=>{const bt=it[kt];bt.width&&typeof bt.width=="string"?Xt+=` ${bt.width}`:Xt+=" minmax(auto, 1fr)"}),Xt+=";",Xt},ze=(je,it,pt)=>!it||!pt||K?je:je.slice().sort((Xt,kt)=>{const bt=Xt[it],Rt=kt[it];return pt==="Descending"?bt>Rt?-1:1:bt>Rt?1:-1}),de=je=>{je.sortable!==!1&&(je.name===ie?t(15,se=se==="Descending"?"Ascending":"Descending"):(t(14,ie=je.name),t(15,se="Descending")),te("sort",{column:ie,order:se}))},Ve=je=>{let it=je==null?void 0:je.displayName;return je&&it===void 0&&(it=je.name),it||""},lt=(je,it,pt)=>{let Xt=[],kt=[];return Object.entries(je||{}).forEach(([bt,Rt])=>{!bt||!Rt||(!pt||!(Rt!=null&&Rt.autocolumn)?Xt.push(Rt):it&&kt.push(Rt))}),Xt.sort((bt,Rt)=>{const Ut=bt.order||Number.MAX_SAFE_INTEGER,In=Rt.order||Number.MAX_SAFE_INTEGER,wn=Ve(bt),hn=Ve(Rt);return Ut!==In?Ut<In?Ut:In:wn<hn?bt:Rt}).concat(kt).map(bt=>bt.name)},Ce=(je,it)=>{je.stopPropagation(),te("editcolumn",it)},Ye=(je,it)=>{je.stopPropagation(),te("editrow",qI(it))},gt=je=>{!L||(H.some(it=>it._id===je._id)?t(1,H=H.filter(it=>it._id!==je._id)):t(1,H=[...H,je]))},ht=je=>{!!je.detail?a.forEach(pt=>{H.findIndex(Xt=>Xt._id===pt._id)===-1&&H.push(pt)}):t(1,H=H.filter(pt=>a.every(Xt=>Xt._id!==pt._id)))},mt=je=>{let it={};return Object.keys(je||{}).forEach(pt=>{it[pt]="",je[pt].color&&(it[pt]+=`color: ${je[pt].color};`),je[pt].background&&(it[pt]+=`background-color: ${je[pt].background};`),je[pt].align==="Center"&&(it[pt]+="justify-content: center; text-align: center;"),je[pt].align==="Right"&&(it[pt]+="justify-content: flex-end; text-align: right;"),je[pt].borderLeft&&(it[pt]+="border-left: 1px solid var(--spectrum-global-color-gray-200);"),je[pt].borderLeft&&(it[pt]+="border-right: 1px solid var(--spectrum-global-color-gray-200);"),je[pt].minWidth&&(it[pt]+=`min-width: ${je[pt].minWidth};`)}),it};function Bt(je){le=je,t(20,le),t(37,a),t(1,H),t(18,i),t(32,m),t(0,v),t(33,y),t(35,J)}const qt=(je,it)=>Ce(it,je),Ke=je=>de(v[je]),De=(je,it)=>it._id===je._id,yt=(je,it)=>Ye(it,je),He=(je,it)=>{gt(je),it.stopPropagation()};function Pe(je){ln.call(this,n,je)}function We(je){ln.call(this,n,je)}const Me=(je,it)=>{var pt;(pt=v[je])!=null&&pt.preventSelectRow||(te("click",it),gt(it))};function Fe(){ae=this.offsetHeight,t(16,ae)}return n.$$set=je=>{"data"in je&&t(32,m=je.data),"schema"in je&&t(0,v=je.schema),"showAutoColumns"in je&&t(33,y=je.showAutoColumns),"rowCount"in je&&t(2,w=je.rowCount),"quiet"in je&&t(3,A=je.quiet),"loading"in je&&t(4,C=je.loading),"allowSelectRows"in je&&t(5,L=je.allowSelectRows),"allowEditRows"in je&&t(6,I=je.allowEditRows),"allowEditColumns"in je&&t(7,P=je.allowEditColumns),"allowClickRows"in je&&t(8,V=je.allowClickRows),"selectedRows"in je&&t(1,H=je.selectedRows),"customRenderers"in je&&t(9,Q=je.customRenderers),"disableSorting"in je&&t(34,K=je.disableSorting),"autoSortColumns"in je&&t(35,J=je.autoSortColumns),"compact"in je&&t(10,Y=je.compact),"customPlaceholder"in je&&t(11,W=je.customPlaceholder),"showHeaderBorder"in je&&t(12,q=je.showHeaderBorder),"placeholderText"in je&&t(13,Z=je.placeholderText),"$$scope"in je&&t(51,h=je.$$scope)},n.$$.update=()=>{n.$$.dirty[0]&1024&&t(19,r=Y?46:55),n.$$.dirty[0]&1&&t(0,v=re(v)),n.$$.dirty[0]&16&&(C||t(36,fe=!0)),n.$$.dirty[0]&1|n.$$.dirty[1]&20&&t(18,i=lt(v,y,J)),n.$$.dirty[0]&262144|n.$$.dirty[1]&2&&t(37,a=i!=null&&i.length?m||[]:[]),n.$$.dirty[1]&64&&t(38,o=(a==null?void 0:a.length)||0),n.$$.dirty[0]&589828|n.$$.dirty[1]&96&&t(39,s=ge(fe,ae,a.length,w,r)),n.$$.dirty[0]&524308|n.$$.dirty[1]&384&&t(24,l=Le(s,w,o,r,C)),n.$$.dirty[0]&49152|n.$$.dirty[1]&64&&t(23,u=ze(a,ie,se)),n.$$.dirty[0]&96&&t(17,f=I||L),n.$$.dirty[0]&393217&&t(22,c=ve(i,v,f)),n.$$.dirty[0]&1&&t(21,d=mt(v)),n.$$.dirty[0]&2|n.$$.dirty[1]&64&&a.filter(it=>H.some(pt=>it._id===pt._id)).length===0&&t(20,le=!1)},[v,H,w,A,C,L,I,P,V,Q,Y,W,q,Z,ie,se,ae,f,i,r,le,d,c,u,l,te,de,Ve,Ce,Ye,gt,ht,m,y,K,J,fe,a,o,s,p,Bt,qt,Ke,De,yt,He,Pe,We,Me,Fe,h]}class Fo extends Oe{constructor(e){super(),ke(this,e,QEe,xEe,we,{data:32,schema:0,showAutoColumns:33,rowCount:2,quiet:3,loading:4,allowSelectRows:5,allowEditRows:6,allowEditColumns:7,allowClickRows:8,selectedRows:1,customRenderers:9,disableSorting:34,autoSortColumns:35,compact:10,customPlaceholder:11,showHeaderBorder:12,placeholderText:13},null,[-1,-1,-1])}}function vx(n){let e;return{c(){e=U("div"),z(e,"class","spectrum-Tabs-selectionIndicator svelte-jku8bn"),sn(e,"width",n[11]),sn(e,"height",n[12]),sn(e,"left",n[10]),sn(e,"top",n[9]),be(e,"emphasized",n[4])},m(t,r){k(t,e,r)},p(t,r){r&2048&&sn(e,"width",t[11]),r&4096&&sn(e,"height",t[12]),r&1024&&sn(e,"left",t[10]),r&512&&sn(e,"top",t[9]),r&16&&be(e,"emphasized",t[4])},d(t){t&&$(e)}}}function WEe(n){let e,t,r,i,a,o;const s=n[19].default,l=vn(s,n,n[18],null);let u=n[7].info&&vx(n);return{c(){e=U("div"),l&&l.c(),t=R(),u&&u.c(),i=R(),a=U("div"),z(e,"class",r="spectrum-Tabs spectrum-Tabs--size"+n[6]+" svelte-jku8bn"),be(e,"spectrum-Tabs--quiet",n[3]),be(e,"noHorizPadding",n[2]),be(e,"onTop",n[5]),be(e,"spectrum-Tabs--vertical",n[0]),be(e,"spectrum-Tabs--horizontal",!n[0]),z(a,"class","spectrum-Tabs-content spectrum-Tabs-content-"+n[13]+" svelte-jku8bn"),be(a,"noPadding",n[1])},m(c,f){k(c,e,f),l&&l.m(e,null),B(e,t),u&&u.m(e,null),n[20](e),k(c,i,f),k(c,a,f),o=!0},p(c,[f]){l&&l.p&&(!o||f&262144)&&bn(l,s,c,c[18],o?_n(s,c[18],f,null):yn(c[18]),null),c[7].info?u?u.p(c,f):(u=vx(c),u.c(),u.m(e,null)):u&&(u.d(1),u=null),(!o||f&64&&r!==(r="spectrum-Tabs spectrum-Tabs--size"+c[6]+" svelte-jku8bn"))&&z(e,"class",r),(!o||f&72)&&be(e,"spectrum-Tabs--quiet",c[3]),(!o||f&68)&&be(e,"noHorizPadding",c[2]),(!o||f&96)&&be(e,"onTop",c[5]),(!o||f&65)&&be(e,"spectrum-Tabs--vertical",c[0]),(!o||f&65)&&be(e,"spectrum-Tabs--horizontal",!c[0]),(!o||f&2)&&be(a,"noPadding",c[1])},i(c){o||(g(l,c),o=!0)},o(c){_(l,c),o=!1},d(c){c&&$(e),l&&l.d(c),u&&u.d(),n[20](null),c&&$(i),c&&$(a)}}}function GEe(){return"_"+Math.random().toString(36).slice(2,9)}function XEe(n,e,t){let r,{$$slots:i={},$$scope:a}=e,{selected:o}=e,{vertical:s=!1}=e,{noPadding:l=!1}=e,{noHorizPadding:u=!1}=e,{quiet:c=!1}=e,{emphasized:f=!1}=e,{onTop:d=!1}=e,{size:p="M"}=e,{beforeSwitch:h=null}=e,m,v=GEe();const y=Gn({title:o,id:v,emphasized:f});me(n,y,K=>t(7,r=K)),f0("tab",y);let w;const A=$n();let C,L,I,P;function V(){var K,J,Y,W;s?(t(12,P=((Y=r.info)==null?void 0:Y.height)+4+"px"),t(11,I=(W=r.info)==null?void 0:W.width)):(t(11,I=((K=r.info)==null?void 0:K.width)+"px"),t(12,P=(J=r.info)==null?void 0:J.height))}function H(){var K,J;s?t(9,C=((J=r.info)==null?void 0:J.top)-(w==null?void 0:w.getBoundingClientRect().top)+"px"):t(10,L=((K=r.info)==null?void 0:K.left)-(w==null?void 0:w.getBoundingClientRect().left)+"px")}gn(()=>{V(),H()});function Q(K){Ae[K?"unshift":"push"](()=>{w=K,t(8,w)})}return n.$$set=K=>{"selected"in K&&t(15,o=K.selected),"vertical"in K&&t(0,s=K.vertical),"noPadding"in K&&t(1,l=K.noPadding),"noHorizPadding"in K&&t(2,u=K.noHorizPadding),"quiet"in K&&t(3,c=K.quiet),"emphasized"in K&&t(4,f=K.emphasized),"onTop"in K&&t(5,d=K.onTop),"size"in K&&t(6,p=K.size),"beforeSwitch"in K&&t(16,h=K.beforeSwitch),"$$scope"in K&&t(18,a=K.$$scope)},n.$$.update=()=>{n.$$.dirty&229504&&(m!==o?(t(17,m=o),A("select",m)):r.title!==m&&(typeof h=="function"?h(r.title)&&(t(17,m=r.title),t(15,o=r.title),A("select",m)):(t(17,m=r.title),t(15,o=r.title),A("select",m))),r.title!==m&&y.update(K=>(K.title=m,K))),n.$$.dirty&128&&V(),n.$$.dirty&128&&H()},[s,l,u,c,f,d,p,r,w,C,L,I,P,v,y,o,h,m,a,i,Q]}class x2 extends Oe{constructor(e){super(),ke(this,e,XEe,WEe,we,{selected:15,vertical:0,noPadding:1,noHorizPadding:2,quiet:3,emphasized:4,onTop:5,size:6,beforeSwitch:16})}}function _x(n){let e,t,r;return{c(){e=nt("svg"),t=nt("use"),Ar(t,"xlink:href",r="#spectrum-icon-18-"+n[1]),z(e,"class","spectrum-Icon spectrum-Icon--sizeM"),z(e,"focusable","false"),z(e,"aria-hidden","true"),z(e,"aria-label","Folder")},m(i,a){k(i,e,a),B(e,t)},p(i,a){a&2&&r!==(r="#spectrum-icon-18-"+i[1])&&Ar(t,"xlink:href",r)},d(i){i&&$(e)}}}function bx(n){let e,t;return e=new W6({props:{target:".spectrum-Tabs-content-"+n[4].id,$$slots:{default:[YEe]},$$scope:{ctx:n}}}),{c(){T(e.$$.fragment)},m(r,i){M(e,r,i),t=!0},p(r,i){const a={};i&16&&(a.target=".spectrum-Tabs-content-"+r[4].id),i&512&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(g(e.$$.fragment,r),t=!0)},o(r){_(e.$$.fragment,r),t=!1},d(r){E(e,r)}}}function YEe(n){let e;const t=n[7].default,r=vn(t,n,n[9],null);return{c(){r&&r.c()},m(i,a){r&&r.m(i,a),e=!0},p(i,a){r&&r.p&&(!e||a&512)&&bn(r,t,i,i[9],e?_n(t,i[9],a,null):yn(i[9]),null)},i(i){e||(g(r,i),e=!0)},o(i){_(r,i),e=!1},d(i){r&&r.d(i)}}}function ZEe(n){let e,t,r,i,a,o,s,l,u,c=n[1]&&_x(n),f=n[4].title===n[0]&&bx(n);return{c(){e=U("div"),c&&c.c(),t=R(),r=U("span"),i=ee(n[0]),a=R(),f&&f.c(),o=ut(),z(r,"class","spectrum-Tabs-itemLabel"),z(e,"id",n[2]),z(e,"class","spectrum-Tabs-item svelte-l8f5vh"),z(e,"tabindex","0"),be(e,"is-selected",n[4].title===n[0]),be(e,"emphasized",n[4].title===n[0]&&n[4].emphasized)},m(d,p){k(d,e,p),c&&c.m(e,null),B(e,t),B(e,r),B(r,i),n[8](e),k(d,a,p),f&&f.m(d,p),k(d,o,p),s=!0,l||(u=at(e,"click",n[6]),l=!0)},p(d,[p]){d[1]?c?c.p(d,p):(c=_x(d),c.c(),c.m(e,t)):c&&(c.d(1),c=null),(!s||p&1)&&Ze(i,d[0]),(!s||p&4)&&z(e,"id",d[2]),(!s||p&17)&&be(e,"is-selected",d[4].title===d[0]),(!s||p&17)&&be(e,"emphasized",d[4].title===d[0]&&d[4].emphasized),d[4].title===d[0]?f?(f.p(d,p),p&17&&g(f,1)):(f=bx(d),f.c(),g(f,1),f.m(o.parentNode,o)):f&&(pe(),_(f,1,1,()=>{f=null}),he())},i(d){s||(g(f),s=!0)},o(d){_(f),s=!1},d(d){d&&$(e),c&&c.d(),n[8](null),d&&$(a),f&&f.d(d),d&&$(o),l=!1,u()}}}function KEe(n,e,t){let r,{$$slots:i={},$$scope:a}=e,{title:o}=e,{icon:s=""}=e,{id:l}=e;const u=$n();let c=Fr("tab");me(n,c,v=>t(4,r=v));let f,d;const p=()=>{setTimeout(()=>{d=f==null?void 0:f.getBoundingClientRect(),d&&r.title===o&&ci(c,r.info=d,r)},0)};gn(()=>{p()});const h=()=>{ci(c,r={...r,title:o,info:f.getBoundingClientRect()},r),u("click")};function m(v){Ae[v?"unshift":"push"](()=>{f=v,t(3,f)})}return n.$$set=v=>{"title"in v&&t(0,o=v.title),"icon"in v&&t(1,s=v.icon),"id"in v&&t(2,l=v.id),"$$scope"in v&&t(9,a=v.$$scope)},n.$$.update=()=>{var v;n.$$.dirty&25&&r.title===o&&f&&((v=r.info)==null?void 0:v.left)!==f.getBoundingClientRect().left&&p()},[o,s,l,f,r,c,h,i,m,a]}class wa extends Oe{constructor(e){super(),ke(this,e,KEe,ZEe,we,{title:0,icon:1,id:2})}}function JEe(n){let e,t,r;function i(o){n[9](o)}let a={updateOnChange:n[6],disabled:n[5],value:n[0],placeholder:n[4],quiet:n[7]};return n[1]!==void 0&&(a.inputRef=n[1]),e=new UI({props:a}),Ae.push(()=>qe(e,"inputRef",i)),e.$on("change",n[8]),e.$on("click",n[10]),e.$on("input",n[11]),e.$on("focus",n[12]),e.$on("blur",n[13]),{c(){T(e.$$.fragment)},m(o,s){M(e,o,s),r=!0},p(o,s){const l={};s&64&&(l.updateOnChange=o[6]),s&32&&(l.disabled=o[5]),s&1&&(l.value=o[0]),s&16&&(l.placeholder=o[4]),s&128&&(l.quiet=o[7]),!t&&s&2&&(t=!0,l.inputRef=o[1],xe(()=>t=!1)),e.$set(l)},i(o){r||(g(e.$$.fragment,o),r=!0)},o(o){_(e.$$.fragment,o),r=!1},d(o){E(e,o)}}}function eTe(n){let e,t;return e=new T1({props:{label:n[2],labelPosition:n[3],$$slots:{default:[JEe]},$$scope:{ctx:n}}}),{c(){T(e.$$.fragment)},m(r,i){M(e,r,i),t=!0},p(r,[i]){const a={};i&4&&(a.label=r[2]),i&8&&(a.labelPosition=r[3]),i&33011&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(g(e.$$.fragment,r),t=!0)},o(r){_(e.$$.fragment,r),t=!1},d(r){E(e,r)}}}function tTe(n,e,t){let{value:r=null}=e,{label:i=null}=e,{labelPosition:a="above"}=e,{placeholder:o=null}=e,{disabled:s=!1}=e,{updateOnChange:l=!0}=e,{quiet:u=!1}=e,{inputRef:c}=e;const f=$n(),d=w=>{t(0,r=w.detail),f("change",w.detail)};function p(w){c=w,t(1,c)}function h(w){ln.call(this,n,w)}function m(w){ln.call(this,n,w)}function v(w){ln.call(this,n,w)}function y(w){ln.call(this,n,w)}return n.$$set=w=>{"value"in w&&t(0,r=w.value),"label"in w&&t(2,i=w.label),"labelPosition"in w&&t(3,a=w.labelPosition),"placeholder"in w&&t(4,o=w.placeholder),"disabled"in w&&t(5,s=w.disabled),"updateOnChange"in w&&t(6,l=w.updateOnChange),"quiet"in w&&t(7,u=w.quiet),"inputRef"in w&&t(1,c=w.inputRef)},[r,c,i,a,o,s,l,u,d,p,h,m,v,y]}class Qh extends Oe{constructor(e){super(),ke(this,e,tTe,eTe,we,{value:0,label:2,labelPosition:3,placeholder:4,disabled:5,updateOnChange:6,quiet:7,inputRef:1})}}function nTe(n){let e,t,r,i,a,o,s,l,u,c;return{c(){e=U("nav"),t=U("div"),t.innerHTML='<svg class="spectrum-Icon spectrum-UIIcon-ChevronLeft100" focusable="false" aria-hidden="true" aria-label="ChevronLeft"><use xlink:href="#spectrum-css-icon-Chevron100"></use></svg>',r=R(),i=U("span"),a=ee("Page "),o=ee(n[0]),s=R(),l=U("div"),l.innerHTML='<svg class="spectrum-Icon spectrum-UIIcon-ChevronRight100" focusable="false" aria-hidden="true" aria-label="ChevronLeft"><use xlink:href="#spectrum-css-icon-Chevron100"></use></svg>',z(t,"href","#"),z(t,"class","spectrum-ActionButton spectrum-ActionButton--sizeM spectrum-ActionButton--quiet spectrum-Pagination-prevButton svelte-1w0vi9g"),be(t,"is-disabled",!n[3]),z(i,"class","spectrum-Body--secondary spectrum-Pagination-counter svelte-1w0vi9g"),z(l,"href","#"),z(l,"class","spectrum-ActionButton spectrum-ActionButton--sizeM spectrum-ActionButton--quiet spectrum-Pagination-nextButton svelte-1w0vi9g"),be(l,"is-disabled",!n[4]),z(e,"class","spectrum-Pagination spectrum-Pagination--explicit")},m(f,d){k(f,e,d),B(e,t),B(e,r),B(e,i),B(i,a),B(i,o),B(e,s),B(e,l),u||(c=[at(t,"click",function(){tn(n[3]?n[1]:null)&&(n[3]?n[1]:null).apply(this,arguments)}),at(l,"click",function(){tn(n[4]?n[2]:null)&&(n[4]?n[2]:null).apply(this,arguments)})],u=!0)},p(f,[d]){n=f,d&8&&be(t,"is-disabled",!n[3]),d&1&&Ze(o,n[0]),d&16&&be(l,"is-disabled",!n[4])},i:Xe,o:Xe,d(f){f&&$(e),u=!1,br(c)}}}function rTe(n,e,t){let{page:r}=e,{goToPrevPage:i}=e,{goToNextPage:a}=e,{hasPrevPage:o=!0}=e,{hasNextPage:s=!0}=e;return n.$$set=l=>{"page"in l&&t(0,r=l.page),"goToPrevPage"in l&&t(1,i=l.goToPrevPage),"goToNextPage"in l&&t(2,a=l.goToNextPage),"hasPrevPage"in l&&t(3,o=l.hasPrevPage),"hasNextPage"in l&&t(4,s=l.hasNextPage)},[r,i,a,o,s]}class N7 extends Oe{constructor(e){super(),ke(this,e,rTe,nTe,we,{page:0,goToPrevPage:1,goToNextPage:2,hasPrevPage:3,hasNextPage:4})}}function yx(n,e,t){const r=n.slice();return r[18]=e[t],r}function wx(n,e,t){const r=n.slice();return r[21]=e[t],r}function $x(n){let e,t,r,i,a,o,s,l,u,c,f,d,p,h=n[7],m=[];for(let y=0;y<h.length;y+=1)m[y]=Ax(yx(n,h,y));const v=y=>_(m[y],1,1,()=>{m[y]=null});return s=new fn({props:{updateOnChange:!1,quiet:!0,placeholder:"Hex, RGB, HSL...",value:n[6]}}),s.$on("change",n[13]),u=new Nt({props:{size:"S",name:"Close",hoverable:!0}}),u.$on("click",n[14]),{c(){e=U("div");for(let y=0;y<m.length;y+=1)m[y].c();t=R(),r=U("div"),i=U("div"),i.textContent="Custom",a=R(),o=U("div"),T(s.$$.fragment),l=R(),T(u.$$.fragment),z(i,"class","heading svelte-bfns6y"),z(o,"class","custom svelte-bfns6y"),z(r,"class","category category--custom svelte-bfns6y"),z(e,"class","spectrum-Popover spectrum-Popover--bottom spectrum-Picker-popover is-open svelte-bfns6y"),be(e,"spectrum-Popover--align-right",n[3])},m(y,w){k(y,e,w);for(let A=0;A<m.length;A+=1)m[A].m(e,null);B(e,t),B(e,r),B(r,i),B(r,a),B(r,o),M(s,o,null),B(o,l),M(u,o,null),f=!0,d||(p=Ra(W0.call(null,e,n[10])),d=!0)},p(y,w){if(w&933){h=y[7];let C;for(C=0;C<h.length;C+=1){const L=yx(y,h,C);m[C]?(m[C].p(L,w),g(m[C],1)):(m[C]=Ax(L),m[C].c(),g(m[C],1),m[C].m(e,t))}for(pe(),C=h.length;C<m.length;C+=1)v(C);he()}const A={};w&64&&(A.value=y[6]),s.$set(A),(!f||w&8)&&be(e,"spectrum-Popover--align-right",y[3])},i(y){if(!f){for(let w=0;w<h.length;w+=1)g(m[w]);g(s.$$.fragment,y),g(u.$$.fragment,y),y&&Mi(()=>{c||(c=Ci(e,bs,{y:-20,duration:200},!0)),c.run(1)}),f=!0}},o(y){m=m.filter(Boolean);for(let w=0;w<m.length;w+=1)_(m[w]);_(s.$$.fragment,y),_(u.$$.fragment,y),y&&(c||(c=Ci(e,bs,{y:-20,duration:200},!1)),c.run(0)),f=!1},d(y){y&&$(e),an(m,y),E(s),E(u),y&&c&&c.end(),d=!1,p()}}}function kx(n){let e,t;return e=new Nt({props:{name:"Checkmark",size:"S"}}),{c(){T(e.$$.fragment)},m(r,i){M(e,r,i),t=!0},i(r){t||(g(e.$$.fragment,r),t=!0)},o(r){_(e.$$.fragment,r),t=!1},d(r){E(e,r)}}}function Ox(n){let e,t,r,i,a,o,s=n[0]===`var(--spectrum-global-color-${n[21]})`&&kx();function l(){return n[12](n[21])}return{c(){e=U("div"),t=U("div"),s&&s.c(),z(t,"class",r="fill "+(n[2]||"")+" svelte-bfns6y"),sn(t,"background","var(--spectrum-global-color-"+n[21]+")"),sn(t,"color",n[5]),z(e,"class","color svelte-bfns6y"),z(e,"title",n[9](n[21]))},m(u,c){k(u,e,c),B(e,t),s&&s.m(t,null),i=!0,a||(o=at(e,"click",l),a=!0)},p(u,c){n=u,n[0]===`var(--spectrum-global-color-${n[21]})`?s?c&1&&g(s,1):(s=kx(),s.c(),g(s,1),s.m(t,null)):s&&(pe(),_(s,1,1,()=>{s=null}),he()),(!i||c&4&&r!==(r="fill "+(n[2]||"")+" svelte-bfns6y"))&&z(t,"class",r),(!i||c&32)&&sn(t,"color",n[5])},i(u){i||(g(s),i=!0)},o(u){_(s),i=!1},d(u){u&&$(e),s&&s.d(),a=!1,o()}}}function Ax(n){let e,t,r=n[18].label+"",i,a,o,s,l=n[18].colors,u=[];for(let f=0;f<l.length;f+=1)u[f]=Ox(wx(n,l,f));const c=f=>_(u[f],1,1,()=>{u[f]=null});return{c(){e=U("div"),t=U("div"),i=ee(r),a=R(),o=U("div");for(let f=0;f<u.length;f+=1)u[f].c();z(t,"class","heading svelte-bfns6y"),z(o,"class","colors svelte-bfns6y"),z(e,"class","category")},m(f,d){k(f,e,d),B(e,t),B(t,i),B(e,a),B(e,o);for(let p=0;p<u.length;p+=1)u[p].m(o,null);s=!0},p(f,d){if(d&933){l=f[18].colors;let p;for(p=0;p<l.length;p+=1){const h=wx(f,l,p);u[p]?(u[p].p(h,d),g(u[p],1)):(u[p]=Ox(h),u[p].c(),g(u[p],1),u[p].m(o,null))}for(pe(),p=l.length;p<u.length;p+=1)c(p);he()}},i(f){if(!s){for(let d=0;d<l.length;d+=1)g(u[d]);s=!0}},o(f){u=u.filter(Boolean);for(let d=0;d<u.length;d+=1)_(u[d]);s=!1},d(f){f&&$(e),an(u,f)}}}function iTe(n){let e,t,r,i,a,o,s,l,u,c,f=n[4]&&$x(n);return{c(){e=U("div"),t=U("div"),r=U("div"),s=R(),f&&f.c(),z(r,"class",i="fill "+(n[2]||"")+" svelte-bfns6y"),z(r,"style",a=n[0]?`background: ${n[0]};`:""),be(r,"placeholder",!n[0]),z(t,"class",o="preview size--"+(n[1]||"M")+" svelte-bfns6y"),z(e,"class","container svelte-bfns6y")},m(d,p){k(d,e,p),B(e,t),B(t,r),B(e,s),f&&f.m(e,null),l=!0,u||(c=at(t,"click",n[11]),u=!0)},p(d,[p]){(!l||p&4&&i!==(i="fill "+(d[2]||"")+" svelte-bfns6y"))&&z(r,"class",i),(!l||p&1&&a!==(a=d[0]?`background: ${d[0]};`:""))&&z(r,"style",a),(!l||p&5)&&be(r,"placeholder",!d[0]),(!l||p&2&&o!==(o="preview size--"+(d[1]||"M")+" svelte-bfns6y"))&&z(t,"class",o),d[4]?f?(f.p(d,p),p&16&&g(f,1)):(f=$x(d),f.c(),g(f,1),f.m(e,null)):f&&(pe(),_(f,1,1,()=>{f=null}),he())},i(d){l||(g(f),l=!0)},o(d){_(f),l=!1},d(d){d&&$(e),f&&f.d(),u=!1,c()}}}function aTe(n,e,t){let r,i,{value:a}=e,{size:o="M"}=e,{spectrumTheme:s}=e,{alignRight:l=!1}=e,u=!1;const c=$n(),f=[{label:"Theme",colors:["gray-50","gray-75","gray-100","gray-200","gray-300","gray-400","gray-500","gray-600","gray-700","gray-800","gray-900"]},{label:"Colors",colors:["red-400","orange-400","yellow-400","green-400","seafoam-400","blue-400","indigo-400","magenta-400","red-500","orange-500","yellow-500","green-500","seafoam-500","blue-500","indigo-500","magenta-500","red-600","orange-600","yellow-600","green-600","seafoam-600","blue-600","indigo-600","magenta-600","red-700","orange-700","yellow-700","green-700","seafoam-700","blue-700","indigo-700","magenta-700","static-white","static-black"]}],d=L=>{c("change",L),t(4,u=!1)},p=L=>{if(!L)return L;let I=!1;const P=L.substring(28,L.length-1);for(let V of f)if(I=V.colors.includes(P),I)break;return I?null:L},h=L=>mye(L.split("-").join(" ")),m=L=>L!=null&&L.includes("gray")?/^.*(gray-(50|75|100|200|300|400|500))\)$/.test(L)?"var(--spectrum-global-color-gray-900)":"var(--spectrum-global-color-gray-50)":L!=null&&L.includes("static-black")?"var(--spectrum-global-color-static-gray-50)":"var(--spectrum-global-color-static-gray-900)",v=L=>{u&&(L.stopPropagation(),t(4,u=!1))},y=()=>t(4,u=!0),w=L=>{d(`var(--spectrum-global-color-${L})`)};function A(L){ln.call(this,n,L)}const C=()=>d(null);return n.$$set=L=>{"value"in L&&t(0,a=L.value),"size"in L&&t(1,o=L.size),"spectrumTheme"in L&&t(2,s=L.spectrumTheme),"alignRight"in L&&t(3,l=L.alignRight)},n.$$.update=()=>{n.$$.dirty&1&&t(6,r=p(a)),n.$$.dirty&1&&t(5,i=m(a))},[a,o,s,l,u,i,r,f,d,h,v,y,w,A,C]}class sm extends Oe{constructor(e){super(),ke(this,e,aTe,iTe,we,{value:0,size:1,spectrumTheme:2,alignRight:3})}}function Sx(n,e,t){const r=n.slice();return r[10]=e[t],r}function zx(n,e,t){const r=n.slice();return r[10]=e[t],r}function Cx(n){let e,t,r,i,a,o=n[4],s=[];for(let u=0;u<o.length;u+=1)s[u]=Ex(Sx(n,o,u));const l=u=>_(s[u],1,1,()=>{s[u]=null});return{c(){e=U("div");for(let u=0;u<s.length;u+=1)s[u].c();z(e,"class","spectrum-Popover spectrum-Popover--bottom spectrum-Picker-popover is-open svelte-r1sbsa"),be(e,"spectrum-Popover--align-right",n[2])},m(u,c){k(u,e,c);for(let f=0;f<s.length;f+=1)s[f].m(e,null);r=!0,i||(a=Ra(W0.call(null,e,n[6])),i=!0)},p(u,c){if(c&48){o=u[4];let f;for(f=0;f<o.length;f+=1){const d=Sx(u,o,f);s[f]?(s[f].p(d,c),g(s[f],1)):(s[f]=Ex(d),s[f].c(),g(s[f],1),s[f].m(e,null))}for(pe(),f=o.length;f<s.length;f+=1)l(f);he()}(!r||c&4)&&be(e,"spectrum-Popover--align-right",u[2])},i(u){if(!r){for(let c=0;c<o.length;c+=1)g(s[c]);Mi(()=>{t||(t=Ci(e,bs,{y:-20,duration:200},!0)),t.run(1)}),r=!0}},o(u){s=s.filter(Boolean);for(let c=0;c<s.length;c+=1)_(s[c]);t||(t=Ci(e,bs,{y:-20,duration:200},!1)),t.run(0),r=!1},d(u){u&&$(e),an(s,u),u&&t&&t.end(),i=!1,a()}}}function Mx(n){let e,t,r,i,a,o;t=new Nt({props:{name:n[10]}});function s(){return n[8](n[10])}return{c(){e=U("div"),T(t.$$.fragment),r=R()},m(l,u){k(l,e,u),M(t,e,null),B(e,r),i=!0,a||(o=at(e,"click",s),a=!0)},p(l,u){n=l},i(l){i||(g(t.$$.fragment,l),i=!0)},o(l){_(t.$$.fragment,l),i=!1},d(l){l&&$(e),E(t),a=!1,o()}}}function Ex(n){let e,t,r=n[10].label+"",i,a,o,s,l,u=n[10].icons,c=[];for(let d=0;d<u.length;d+=1)c[d]=Mx(zx(n,u,d));const f=d=>_(c[d],1,1,()=>{c[d]=null});return{c(){e=U("div"),t=U("div"),i=ee(r),a=R(),o=U("div");for(let d=0;d<c.length;d+=1)c[d].c();s=R(),z(t,"class","heading svelte-r1sbsa"),z(o,"class","icons svelte-r1sbsa"),z(e,"class","category")},m(d,p){k(d,e,p),B(e,t),B(t,i),B(e,a),B(e,o);for(let h=0;h<c.length;h+=1)c[h].m(o,null);B(e,s),l=!0},p(d,p){if(p&48){u=d[10].icons;let h;for(h=0;h<u.length;h+=1){const m=zx(d,u,h);c[h]?(c[h].p(m,p),g(c[h],1)):(c[h]=Mx(m),c[h].c(),g(c[h],1),c[h].m(o,null))}for(pe(),h=u.length;h<c.length;h+=1)f(h);he()}},i(d){if(!l){for(let p=0;p<u.length;p+=1)g(c[p]);l=!0}},o(d){c=c.filter(Boolean);for(let p=0;p<c.length;p+=1)_(c[p]);l=!1},d(d){d&&$(e),an(c,d)}}}function oTe(n){let e,t,r,i,a,o,s,l,u,c;i=new Nt({props:{name:n[0]||"UserGroup"}});let f=n[3]&&Cx(n);return{c(){e=U("div"),t=U("div"),r=U("div"),T(i.$$.fragment),s=R(),f&&f.c(),z(r,"class","fill svelte-r1sbsa"),z(r,"style",a=n[0]?`background: ${n[0]};`:""),be(r,"placeholder",!n[0]),z(t,"class",o="preview size--"+(n[1]||"M")+" svelte-r1sbsa"),z(e,"class","container svelte-r1sbsa")},m(d,p){k(d,e,p),B(e,t),B(t,r),M(i,r,null),B(e,s),f&&f.m(e,null),l=!0,u||(c=at(t,"click",n[7]),u=!0)},p(d,[p]){const h={};p&1&&(h.name=d[0]||"UserGroup"),i.$set(h),(!l||p&1&&a!==(a=d[0]?`background: ${d[0]};`:""))&&z(r,"style",a),(!l||p&1)&&be(r,"placeholder",!d[0]),(!l||p&2&&o!==(o="preview size--"+(d[1]||"M")+" svelte-r1sbsa"))&&z(t,"class",o),d[3]?f?(f.p(d,p),p&8&&g(f,1)):(f=Cx(d),f.c(),g(f,1),f.m(e,null)):f&&(pe(),_(f,1,1,()=>{f=null}),he())},i(d){l||(g(i.$$.fragment,d),g(f),l=!0)},o(d){_(i.$$.fragment,d),_(f),l=!1},d(d){d&&$(e),E(i),f&&f.d(),u=!1,c()}}}function sTe(n,e,t){let{value:r}=e,{size:i="M"}=e,{alignRight:a=!1}=e,o=!1;const s=$n(),l=[{label:"Icons",icons:["Apps","Actions","ConversionFunnel","App","Briefcase","Money","ShoppingCart","Form","Help","Monitoring","Sandbox","Project","Organisations","Magnify","Launch","Car","Camera","Bug","Channel","Calculator","Calendar","GraphDonut","GraphBarHorizontal","Demographic"]}],u=p=>{s("change",p),t(3,o=!1)},c=p=>{o&&(p.stopPropagation(),t(3,o=!1))},f=()=>t(3,o=!0),d=p=>{u(p)};return n.$$set=p=>{"value"in p&&t(0,r=p.value),"size"in p&&t(1,i=p.size),"alignRight"in p&&t(2,a=p.alignRight)},[r,i,a,o,l,u,c,f,d]}class lTe extends Oe{constructor(e){super(),ke(this,e,sTe,oTe,we,{value:0,size:1,alignRight:2})}}function Tx(n,e,t){const r=n.slice();return r[8]=e[t],r}function Lx(n){let e,t=n[8]+"",r;return{c(){e=U("div"),r=ee(t),z(e,"class","spectrum-InLineAlert-content")},m(i,a){k(i,e,a),B(e,r)},p(i,a){a&32&&t!==(t=i[8]+"")&&Ze(r,t)},d(i){i&&$(e)}}}function Px(n){let e,t,r;return t=new nn({props:{cta:n[4],secondary:!n[4],$$slots:{default:[uTe]},$$scope:{ctx:n}}}),t.$on("click",function(){tn(n[2])&&n[2].apply(this,arguments)}),{c(){e=U("div"),T(t.$$.fragment),z(e,"class","spectrum-InLineAlert-footer button svelte-1dxkzv")},m(i,a){k(i,e,a),M(t,e,null),r=!0},p(i,a){n=i;const o={};a&16&&(o.cta=n[4]),a&16&&(o.secondary=!n[4]),a&2056&&(o.$$scope={dirty:a,ctx:n}),t.$set(o)},i(i){r||(g(t.$$.fragment,i),r=!0)},o(i){_(t.$$.fragment,i),r=!1},d(i){i&&$(e),E(t)}}}function uTe(n){let e=(n[3]||"OK")+"",t;return{c(){t=ee(e)},m(r,i){k(r,t,i)},p(r,i){i&8&&e!==(e=(r[3]||"OK")+"")&&Ze(t,e)},d(r){r&&$(t)}}}function cTe(n){let e,t,r,i,a,o,s,l,u,c,f,d=n[5],p=[];for(let m=0;m<d.length;m+=1)p[m]=Lx(Tx(n,d,m));let h=n[2]&&Px(n);return{c(){e=U("div"),t=nt("svg"),r=nt("use"),a=R(),o=U("div"),s=ee(n[1]),l=R();for(let m=0;m<p.length;m+=1)p[m].c();u=R(),h&&h.c(),Ar(r,"xlink:href",i="#spectrum-icon-18-"+n[6]),z(t,"class","spectrum-Icon spectrum-Icon--sizeM spectrum-InLineAlert-icon"),z(t,"focusable","false"),z(t,"aria-hidden","true"),z(o,"class","spectrum-InLineAlert-header"),z(e,"class",c="spectrum-InLineAlert spectrum-InLineAlert--"+n[0]+" svelte-1dxkzv")},m(m,v){k(m,e,v),B(e,t),B(t,r),B(e,a),B(e,o),B(o,s),B(e,l);for(let y=0;y<p.length;y+=1)p[y].m(e,null);B(e,u),h&&h.m(e,null),f=!0},p(m,[v]){if((!f||v&64&&i!==(i="#spectrum-icon-18-"+m[6]))&&Ar(r,"xlink:href",i),(!f||v&2)&&Ze(s,m[1]),v&32){d=m[5];let y;for(y=0;y<d.length;y+=1){const w=Tx(m,d,y);p[y]?p[y].p(w,v):(p[y]=Lx(w),p[y].c(),p[y].m(e,u))}for(;y<p.length;y+=1)p[y].d(1);p.length=d.length}m[2]?h?(h.p(m,v),v&4&&g(h,1)):(h=Px(m),h.c(),g(h,1),h.m(e,null)):h&&(pe(),_(h,1,1,()=>{h=null}),he()),(!f||v&1&&c!==(c="spectrum-InLineAlert spectrum-InLineAlert--"+m[0]+" svelte-1dxkzv"))&&z(e,"class",c)},i(m){f||(g(h),f=!0)},o(m){_(h),f=!1},d(m){m&&$(e),an(p,m),h&&h.d()}}}function fTe(n){switch(n){case"error":case"negative":return"Alert";case"success":return"CheckmarkCircle";case"help":return"Help";default:return"Info"}}function dTe(n,e,t){let r,i,{type:a="info"}=e,{header:o=""}=e,{message:s=""}=e,{onConfirm:l=void 0}=e,{buttonText:u=""}=e,{cta:c=!1}=e;return n.$$set=f=>{"type"in f&&t(0,a=f.type),"header"in f&&t(1,o=f.header),"message"in f&&t(7,s=f.message),"onConfirm"in f&&t(2,l=f.onConfirm),"buttonText"in f&&t(3,u=f.buttonText),"cta"in f&&t(4,c=f.cta)},n.$$.update=()=>{n.$$.dirty&1&&t(6,r=fTe(a)),n.$$.dirty&128&&t(5,i=s.split(`
253
253
  `))},[a,o,l,u,c,i,r,s]}class F7 extends Oe{constructor(e){super(),ke(this,e,dTe,cTe,we,{type:0,header:1,message:7,onConfirm:2,buttonText:3,cta:4})}}function Dx(n){let e,t,r,i,a,o,s,l,u,c,f,d;const p=n[9].default,h=vn(p,n,n[8],null);let m=n[3]&&n[4]&&Ix(n),v=n[5]&&Bx(n);return{c(){e=U("div"),t=nt("svg"),r=nt("use"),o=R(),s=U("div"),l=U("div"),h&&h.c(),u=R(),m&&m.c(),c=R(),v&&v.c(),Ar(r,"xlink:href",i="#spectrum-icon-18-"+n[1]),z(t,"class",a="spectrum-Icon spectrum-Icon--size"+n[2]+" spectrum-Toast-typeIcon svelte-1a3gkqo"),z(t,"focusable","false"),z(t,"aria-hidden","true"),z(l,"class","spectrum-Toast-content"),z(s,"class","spectrum-Toast-body"),z(e,"class",f="spectrum-Toast spectrum-Toast--"+n[0]+" svelte-1a3gkqo")},m(y,w){k(y,e,w),B(e,t),B(t,r),B(e,o),B(e,s),B(s,l),h&&h.m(l,null),B(s,u),m&&m.m(s,null),B(e,c),v&&v.m(e,null),d=!0},p(y,w){(!d||w&2&&i!==(i="#spectrum-icon-18-"+y[1]))&&Ar(r,"xlink:href",i),(!d||w&4&&a!==(a="spectrum-Icon spectrum-Icon--size"+y[2]+" spectrum-Toast-typeIcon svelte-1a3gkqo"))&&z(t,"class",a),h&&h.p&&(!d||w&256)&&bn(h,p,y,y[8],d?_n(p,y[8],w,null):yn(y[8]),null),y[3]&&y[4]?m?m.p(y,w):(m=Ix(y),m.c(),m.m(s,null)):m&&(m.d(1),m=null),y[5]?v?v.p(y,w):(v=Bx(y),v.c(),v.m(e,null)):v&&(v.d(1),v=null),(!d||w&1&&f!==(f="spectrum-Toast spectrum-Toast--"+y[0]+" svelte-1a3gkqo"))&&z(e,"class",f)},i(y){d||(g(h,y),d=!0)},o(y){_(h,y),d=!1},d(y){y&&$(e),h&&h.d(y),m&&m.d(),v&&v.d()}}}function Ix(n){let e,t,r,i,a;return{c(){e=U("button"),t=U("span"),r=ee(n[3]),z(t,"class","spectrum-Button-label"),z(e,"class","spectrum-Button spectrum-Button--sizeM spectrum-Button--overBackground spectrum-Button--quiet svelte-1a3gkqo")},m(o,s){k(o,e,s),B(e,t),B(t,r),i||(a=at(e,"click",function(){tn(n[4])&&n[4].apply(this,arguments)}),i=!0)},p(o,s){n=o,s&8&&Ze(r,n[3])},d(o){o&&$(e),i=!1,a()}}}function Bx(n){let e,t,r,i,a,o;return{c(){e=U("div"),t=U("button"),r=U("div"),r.innerHTML='<svg class="spectrum-ClearButton-icon spectrum-Icon spectrum-UIIcon-Cross100" focusable="false" aria-hidden="true"><use xlink:href="#spectrum-css-icon-Cross100"></use></svg>',z(r,"class","spectrum-ClearButton-fill"),z(t,"class",i="spectrum-ClearButton spectrum-ClearButton--overBackground spectrum-ClearButton--size"+n[2]+" svelte-1a3gkqo"),z(e,"class","spectrum-Toast-buttons")},m(s,l){k(s,e,l),B(e,t),B(t,r),a||(o=at(t,"click",n[7]),a=!0)},p(s,l){l&4&&i!==(i="spectrum-ClearButton spectrum-ClearButton--overBackground spectrum-ClearButton--size"+s[2]+" svelte-1a3gkqo")&&z(t,"class",i)},d(s){s&&$(e),a=!1,o()}}}function pTe(n){let e,t,r=n[6]&&Dx(n);return{c(){r&&r.c(),e=ut()},m(i,a){r&&r.m(i,a),k(i,e,a),t=!0},p(i,[a]){i[6]?r?(r.p(i,a),a&64&&g(r,1)):(r=Dx(i),r.c(),g(r,1),r.m(e.parentNode,e)):r&&(pe(),_(r,1,1,()=>{r=null}),he())},i(i){t||(g(r),t=!0)},o(i){_(r),t=!1},d(i){r&&r.d(i),i&&$(e)}}}function hTe(n,e,t){let{$$slots:r={},$$scope:i}=e,a=$n(),{type:o="info"}=e,{icon:s="Info"}=e,{size:l="S"}=e,{extraButtonText:u}=e,{extraButtonAction:c}=e,{showCloseButton:f=!0}=e,d=!0;function p(){t(6,d=!1),a("change")}return n.$$set=h=>{"type"in h&&t(0,o=h.type),"icon"in h&&t(1,s=h.icon),"size"in h&&t(2,l=h.size),"extraButtonText"in h&&t(3,u=h.extraButtonText),"extraButtonAction"in h&&t(4,c=h.extraButtonAction),"showCloseButton"in h&&t(5,f=h.showCloseButton),"$$scope"in h&&t(8,i=h.$$scope)},[o,s,l,u,c,f,d,p,i,r]}class Z6 extends Oe{constructor(e){super(),ke(this,e,hTe,pTe,we,{type:0,icon:1,size:2,extraButtonText:3,extraButtonAction:4,showCloseButton:5})}}function mTe(n){let e,t,r,i,a,o,s,l;return t=new fn({props:{readonly:!0,value:n[1],label:n[0]}}),a=new Nt({props:{size:"S",name:"Copy"}}),{c(){e=U("div"),T(t.$$.fragment),r=R(),i=U("div"),T(a.$$.fragment),z(i,"class","icon svelte-bmyadj"),z(e,"class","svelte-bmyadj")},m(u,c){k(u,e,c),M(t,e,null),B(e,r),B(e,i),M(a,i,null),o=!0,s||(l=at(i,"click",n[3]),s=!0)},p(u,[c]){const f={};c&2&&(f.value=u[1]),c&1&&(f.label=u[0]),t.$set(f)},i(u){o||(g(t.$$.fragment,u),g(a.$$.fragment,u),o=!0)},o(u){_(t.$$.fragment,u),_(a.$$.fragment,u),o=!1},d(u){u&&$(e),E(t),E(a),s=!1,l()}}}function gTe(n,e,t){let{label:r=null}=e,{value:i}=e;const a=s=>{const l=document.createElement("textarea");document.body.appendChild(l),l.value=s,l.select(),document.execCommand("copy"),document.body.removeChild(l),ct.success("Copied to clipboard")},o=()=>a(i);return n.$$set=s=>{"label"in s&&t(0,r=s.label),"value"in s&&t(1,i=s.value)},[r,i,a,o]}class IA extends Oe{constructor(e){super(),ke(this,e,gTe,mTe,we,{label:0,value:1})}}const d4={INFO:"info",NEGATIVE:"negative",WARNING:"warning"};function vTe(){const e=Gn({messages:[]}),t=async(a={message,type,extraButtonText,extraButtonAction,onChange})=>{e.update(o=>({...o,...a}))},r=async()=>{const a={message:"Some systems are experiencing issues",type:d4.NEGATIVE,extraButtonText:"View Status",extraButtonAction:()=>window.open("https://status.budibase.com/")};await i([a])},i=async a=>{const o={[d4.NEGATIVE]:0,[d4.WARNING]:1,[d4.INFO]:2};e.update(s=>{const l=[...s.messages,...a].sort((u,c)=>o[u.type]==o[c.type]?0:o[u.type]<o[c.type]?-1:1);return{...s,messages:l}})};return{subscribe:e.subscribe,showStatus:r,show:t,queue:i}}const yB=vTe();function Rx(n,e,t){const r=n.slice();return r[2]=e[t],r}function _Te(n){let e=n[2].message+"",t;return{c(){t=ee(e)},m(r,i){k(r,t,i)},p(r,i){i&1&&e!==(e=r[2].message+"")&&Ze(t,e)},d(r){r&&$(t)}}}function bTe(n){let e,t;return e=new nm({props:{tooltip:n[2].tooltip,disabled:!1,$$slots:{default:[_Te]},$$scope:{ctx:n}}}),{c(){T(e.$$.fragment)},m(r,i){M(e,r,i),t=!0},p(r,i){const a={};i&1&&(a.tooltip=r[2].tooltip),i&33&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(g(e.$$.fragment,r),t=!0)},o(r){_(e.$$.fragment,r),t=!1},d(r){E(e,r)}}}function Hx(n){let e,t,r,i,a;function o(){return n[1](n[2])}return t=new Z6({props:{type:n[2].type,extraButtonText:n[2].extraButtonText,extraButtonAction:n[2].extraButtonAction,showCloseButton:typeof n[2].showCloseButton=="boolean"?n[2].showCloseButton:!0,$$slots:{default:[bTe]},$$scope:{ctx:n}}}),t.$on("change",o),{c(){e=U("div"),T(t.$$.fragment),r=R()},m(s,l){k(s,e,l),M(t,e,null),B(e,r),a=!0},p(s,l){n=s;const u={};l&1&&(u.type=n[2].type),l&1&&(u.extraButtonText=n[2].extraButtonText),l&1&&(u.extraButtonAction=n[2].extraButtonAction),l&1&&(u.showCloseButton=typeof n[2].showCloseButton=="boolean"?n[2].showCloseButton:!0),l&33&&(u.$$scope={dirty:l,ctx:n}),t.$set(u)},i(s){a||(g(t.$$.fragment,s),Mi(()=>{i||(i=Ci(e,bs,{y:-30},!0)),i.run(1)}),a=!0)},o(s){_(t.$$.fragment,s),i||(i=Ci(e,bs,{y:-30},!1)),i.run(0),a=!1},d(s){s&&$(e),E(t),s&&i&&i.end()}}}function yTe(n){let e,t,r=n[0].messages,i=[];for(let o=0;o<r.length;o+=1)i[o]=Hx(Rx(n,r,o));const a=o=>_(i[o],1,1,()=>{i[o]=null});return{c(){e=U("div");for(let o=0;o<i.length;o+=1)i[o].c();z(e,"class","banner svelte-j1ssay")},m(o,s){k(o,e,s);for(let l=0;l<i.length;l+=1)i[l].m(e,null);t=!0},p(o,s){if(s&1){r=o[0].messages;let l;for(l=0;l<r.length;l+=1){const u=Rx(o,r,l);i[l]?(i[l].p(u,s),g(i[l],1)):(i[l]=Hx(u),i[l].c(),g(i[l],1),i[l].m(e,null))}for(pe(),l=r.length;l<i.length;l+=1)a(l);he()}},i(o){if(!t){for(let s=0;s<r.length;s+=1)g(i[s]);t=!0}},o(o){i=i.filter(Boolean);for(let s=0;s<i.length;s+=1)_(i[s]);t=!1},d(o){o&&$(e),an(i,o)}}}function wTe(n){let e,t;return e=new W6({props:{target:".banner-container",$$slots:{default:[yTe]},$$scope:{ctx:n}}}),{c(){T(e.$$.fragment)},m(r,i){M(e,r,i),t=!0},p(r,[i]){const a={};i&33&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(g(e.$$.fragment,r),t=!0)},o(r){_(e.$$.fragment,r),t=!1},d(r){E(e,r)}}}function $Te(n,e,t){let r;return me(n,yB,a=>t(0,r=a)),[r,a=>{a.onChange&&a.onChange()}]}class kTe extends Oe{constructor(e){super(),ke(this,e,$Te,wTe,we,{})}}var ts={exports:{}};(function(n,e){(function(t,r){n.exports=r()})(_r,function(){var t=navigator.userAgent,r=navigator.platform,i=/gecko\/\d/i.test(t),a=/MSIE \d/.test(t),o=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(t),s=/Edge\/(\d+)/.exec(t),l=a||o||s,u=l&&(a?document.documentMode||6:+(s||o)[1]),c=!s&&/WebKit\//.test(t),f=c&&/Qt\/\d+\.\d+/.test(t),d=!s&&/Chrome\/(\d+)/.exec(t),p=d&&+d[1],h=/Opera\//.test(t),m=/Apple Computer/.test(navigator.vendor),v=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t),y=/PhantomJS/.test(t),w=m&&(/Mobile\/\w+/.test(t)||navigator.maxTouchPoints>2),A=/Android/.test(t),C=w||A||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),L=w||/Mac/.test(r),I=/\bCrOS\b/.test(t),P=/win/i.test(r),V=h&&t.match(/Version\/(\d*\.\d*)/);V&&(V=Number(V[1])),V&&V>=15&&(h=!1,c=!0);var H=L&&(f||h&&(V==null||V<12.11)),Q=i||l&&u>=9;function K(O){return new RegExp("(^|\\s)"+O+"(?:$|\\s)\\s*")}var J=function(O,D){var x=O.className,j=K(D).exec(x);if(j){var G=x.slice(j.index+j[0].length);O.className=x.slice(0,j.index)+(G?j[1]+G:"")}};function Y(O){for(var D=O.childNodes.length;D>0;--D)O.removeChild(O.firstChild);return O}function W(O,D){return Y(O).appendChild(D)}function q(O,D,x,j){var G=document.createElement(O);if(x&&(G.className=x),j&&(G.style.cssText=j),typeof D=="string")G.appendChild(document.createTextNode(D));else if(D)for(var oe=0;oe<D.length;++oe)G.appendChild(D[oe]);return G}function Z(O,D,x,j){var G=q(O,D,x,j);return G.setAttribute("role","presentation"),G}var te;document.createRange?te=function(O,D,x,j){var G=document.createRange();return G.setEnd(j||O,x),G.setStart(O,D),G}:te=function(O,D,x){var j=document.body.createTextRange();try{j.moveToElementText(O.parentNode)}catch{return j}return j.collapse(!0),j.moveEnd("character",x),j.moveStart("character",D),j};function ie(O,D){if(D.nodeType==3&&(D=D.parentNode),O.contains)return O.contains(D);do if(D.nodeType==11&&(D=D.host),D==O)return!0;while(D=D.parentNode)}function se(O){var D;try{D=O.activeElement}catch{D=O.body||null}for(;D&&D.shadowRoot&&D.shadowRoot.activeElement;)D=D.shadowRoot.activeElement;return D}function ae(O,D){var x=O.className;K(D).test(x)||(O.className+=(x?" ":"")+D)}function fe(O,D){for(var x=O.split(" "),j=0;j<x.length;j++)x[j]&&!K(x[j]).test(D)&&(D+=" "+x[j]);return D}var le=function(O){O.select()};w?le=function(O){O.selectionStart=0,O.selectionEnd=O.value.length}:l&&(le=function(O){try{O.select()}catch{}});function re(O){return O.display.wrapper.ownerDocument}function ge(O){return re(O).defaultView}function Le(O){var D=Array.prototype.slice.call(arguments,1);return function(){return O.apply(null,D)}}function ve(O,D,x){D||(D={});for(var j in O)O.hasOwnProperty(j)&&(x!==!1||!D.hasOwnProperty(j))&&(D[j]=O[j]);return D}function ze(O,D,x,j,G){D==null&&(D=O.search(/[^\s\u00a0]/),D==-1&&(D=O.length));for(var oe=j||0,_e=G||0;;){var Se=O.indexOf(" ",oe);if(Se<0||Se>=D)return _e+(D-oe);_e+=Se-oe,_e+=x-_e%x,oe=Se+1}}var de=function(){this.id=null,this.f=null,this.time=0,this.handler=Le(this.onTimeout,this)};de.prototype.onTimeout=function(O){O.id=0,O.time<=+new Date?O.f():setTimeout(O.handler,O.time-+new Date)},de.prototype.set=function(O,D){this.f=D;var x=+new Date+O;(!this.id||x<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,O),this.time=x)};function Ve(O,D){for(var x=0;x<O.length;++x)if(O[x]==D)return x;return-1}var lt=50,Ce={toString:function(){return"CodeMirror.Pass"}},Ye={scroll:!1},gt={origin:"*mouse"},ht={origin:"+move"};function mt(O,D,x){for(var j=0,G=0;;){var oe=O.indexOf(" ",j);oe==-1&&(oe=O.length);var _e=oe-j;if(oe==O.length||G+_e>=D)return j+Math.min(_e,D-G);if(G+=oe-j,G+=x-G%x,j=oe+1,G>=D)return j}}var Bt=[""];function qt(O){for(;Bt.length<=O;)Bt.push(Ke(Bt)+" ");return Bt[O]}function Ke(O){return O[O.length-1]}function De(O,D){for(var x=[],j=0;j<O.length;j++)x[j]=D(O[j],j);return x}function yt(O,D,x){for(var j=0,G=x(D);j<O.length&&x(O[j])<=G;)j++;O.splice(j,0,D)}function He(){}function Pe(O,D){var x;return Object.create?x=Object.create(O):(He.prototype=O,x=new He),D&&ve(D,x),x}var We=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Me(O){return/\w/.test(O)||O>"\x80"&&(O.toUpperCase()!=O.toLowerCase()||We.test(O))}function Fe(O,D){return D?D.source.indexOf("\\w")>-1&&Me(O)?!0:D.test(O):Me(O)}function je(O){for(var D in O)if(O.hasOwnProperty(D)&&O[D])return!1;return!0}var it=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function pt(O){return O.charCodeAt(0)>=768&&it.test(O)}function Xt(O,D,x){for(;(x<0?D>0:D<O.length)&&pt(O.charAt(D));)D+=x;return D}function kt(O,D,x){for(var j=D>x?-1:1;;){if(D==x)return D;var G=(D+x)/2,oe=j<0?Math.ceil(G):Math.floor(G);if(oe==D)return O(oe)?D:x;O(oe)?x=oe:D=oe+j}}function bt(O,D,x,j){if(!O)return j(D,x,"ltr",0);for(var G=!1,oe=0;oe<O.length;++oe){var _e=O[oe];(_e.from<x&&_e.to>D||D==x&&_e.to==D)&&(j(Math.max(_e.from,D),Math.min(_e.to,x),_e.level==1?"rtl":"ltr",oe),G=!0)}G||j(D,x,"ltr")}var Rt=null;function Ut(O,D,x){var j;Rt=null;for(var G=0;G<O.length;++G){var oe=O[G];if(oe.from<D&&oe.to>D)return G;oe.to==D&&(oe.from!=oe.to&&x=="before"?j=G:Rt=G),oe.from==D&&(oe.from!=oe.to&&x!="before"?j=G:Rt=G)}return j!=null?j:Rt}var In=function(){var O="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",D="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function x(Re){return Re<=247?O.charAt(Re):1424<=Re&&Re<=1524?"R":1536<=Re&&Re<=1785?D.charAt(Re-1536):1774<=Re&&Re<=2220?"r":8192<=Re&&Re<=8203?"w":Re==8204?"b":"L"}var j=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,G=/[stwN]/,oe=/[LRr]/,_e=/[Lb1n]/,Se=/[1n]/;function Te(Re,dt,vt){this.level=Re,this.from=dt,this.to=vt}return function(Re,dt){var vt=dt=="ltr"?"L":"R";if(Re.length==0||dt=="ltr"&&!j.test(Re))return!1;for(var Pt=Re.length,Mt=[],Zt=0;Zt<Pt;++Zt)Mt.push(x(Re.charCodeAt(Zt)));for(var un=0,Mn=vt;un<Pt;++un){var Rn=Mt[un];Rn=="m"?Mt[un]=Mn:Mn=Rn}for(var Wn=0,Bn=vt;Wn<Pt;++Wn){var Jn=Mt[Wn];Jn=="1"&&Bn=="r"?Mt[Wn]="n":oe.test(Jn)&&(Bn=Jn,Jn=="r"&&(Mt[Wn]="R"))}for(var yr=1,mr=Mt[0];yr<Pt-1;++yr){var Wr=Mt[yr];Wr=="+"&&mr=="1"&&Mt[yr+1]=="1"?Mt[yr]="1":Wr==","&&mr==Mt[yr+1]&&(mr=="1"||mr=="n")&&(Mt[yr]=mr),mr=Wr}for(var Ai=0;Ai<Pt;++Ai){var Ua=Mt[Ai];if(Ua==",")Mt[Ai]="N";else if(Ua=="%"){var ta=void 0;for(ta=Ai+1;ta<Pt&&Mt[ta]=="%";++ta);for(var gs=Ai&&Mt[Ai-1]=="!"||ta<Pt&&Mt[ta]=="1"?"1":"N",Es=Ai;Es<ta;++Es)Mt[Es]=gs;Ai=ta-1}}for(var Pi=0,ja=vt;Pi<Pt;++Pi){var oo=Mt[Pi];ja=="L"&&oo=="1"?Mt[Pi]="L":oe.test(oo)&&(ja=oo)}for(var Ea=0;Ea<Pt;++Ea)if(G.test(Mt[Ea])){var _o=void 0;for(_o=Ea+1;_o<Pt&&G.test(Mt[_o]);++_o);for(var qa=(Ea?Mt[Ea-1]:vt)=="L",bo=(_o<Pt?Mt[_o]:vt)=="L",qr=qa==bo?qa?"L":"R":vt,lc=Ea;lc<_o;++lc)Mt[lc]=qr;Ea=_o-1}for(var Ta=[],O0,Eo=0;Eo<Pt;)if(_e.test(Mt[Eo])){var Md=Eo;for(++Eo;Eo<Pt&&_e.test(Mt[Eo]);++Eo);Ta.push(new Te(0,Md,Eo))}else{var A0=Eo,v1=Ta.length,uc=dt=="rtl"?1:0;for(++Eo;Eo<Pt&&Mt[Eo]!="L";++Eo);for(var na=A0;na<Eo;)if(Se.test(Mt[na])){A0<na&&(Ta.splice(v1,0,new Te(1,A0,na)),v1+=uc);var To=na;for(++na;na<Eo&&Se.test(Mt[na]);++na);Ta.splice(v1,0,new Te(2,To,na)),v1+=uc,A0=na}else++na;A0<Eo&&Ta.splice(v1,0,new Te(1,A0,Eo))}return dt=="ltr"&&(Ta[0].level==1&&(O0=Re.match(/^\s+/))&&(Ta[0].from=O0[0].length,Ta.unshift(new Te(0,0,O0[0].length))),Ke(Ta).level==1&&(O0=Re.match(/\s+$/))&&(Ke(Ta).to-=O0[0].length,Ta.push(new Te(0,Pt-O0[0].length,Pt)))),dt=="rtl"?Ta.reverse():Ta}}();function wn(O,D){var x=O.order;return x==null&&(x=O.order=In(O.text,D)),x}var hn=[],Kt=function(O,D,x){if(O.addEventListener)O.addEventListener(D,x,!1);else if(O.attachEvent)O.attachEvent("on"+D,x);else{var j=O._handlers||(O._handlers={});j[D]=(j[D]||hn).concat(x)}};function hr(O,D){return O._handlers&&O._handlers[D]||hn}function Hr(O,D,x){if(O.removeEventListener)O.removeEventListener(D,x,!1);else if(O.detachEvent)O.detachEvent("on"+D,x);else{var j=O._handlers,G=j&&j[D];if(G){var oe=Ve(G,x);oe>-1&&(j[D]=G.slice(0,oe).concat(G.slice(oe+1)))}}}function Fn(O,D){var x=hr(O,D);if(!!x.length)for(var j=Array.prototype.slice.call(arguments,2),G=0;G<x.length;++G)x[G].apply(null,j)}function Zn(O,D,x){return typeof D=="string"&&(D={type:D,preventDefault:function(){this.defaultPrevented=!0}}),Fn(O,x||D.type,O,D),ot(D)||D.codemirrorIgnore}function fo(O){var D=O._handlers&&O._handlers.cursorActivity;if(!!D)for(var x=O.curOp.cursorActivityHandlers||(O.curOp.cursorActivityHandlers=[]),j=0;j<D.length;++j)Ve(x,D[j])==-1&&x.push(D[j])}function Li(O,D){return hr(O,D).length>0}function tt(O){O.prototype.on=function(D,x){Kt(this,D,x)},O.prototype.off=function(D,x){Hr(this,D,x)}}function ft(O){O.preventDefault?O.preventDefault():O.returnValue=!1}function rt(O){O.stopPropagation?O.stopPropagation():O.cancelBubble=!0}function ot(O){return O.defaultPrevented!=null?O.defaultPrevented:O.returnValue==!1}function Vt(O){ft(O),rt(O)}function Wt(O){return O.target||O.srcElement}function Ln(O){var D=O.which;return D==null&&(O.button&1?D=1:O.button&2?D=3:O.button&4&&(D=2)),L&&O.ctrlKey&&D==1&&(D=3),D}var kn=function(){if(l&&u<9)return!1;var O=q("div");return"draggable"in O||"dragDrop"in O}(),cr;function qn(O){if(cr==null){var D=q("span","\u200B");W(O,q("span",[D,document.createTextNode("x")])),O.firstChild.offsetHeight!=0&&(cr=D.offsetWidth<=1&&D.offsetHeight>2&&!(l&&u<8))}var x=cr?q("span","\u200B"):q("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return x.setAttribute("cm-text",""),x}var xn;function ei(O){if(xn!=null)return xn;var D=W(O,document.createTextNode("A\u062EA")),x=te(D,0,1).getBoundingClientRect(),j=te(D,1,2).getBoundingClientRect();return Y(O),!x||x.left==x.right?!1:xn=j.right-x.right<3}var Uo=`
254
254
 
255
255
  b`.split(/\n/).length!=3?function(O){for(var D=0,x=[],j=O.length;D<=j;){var G=O.indexOf(`
@@ -8,7 +8,7 @@
8
8
  <link rel="preconnect" href="https://fonts.gstatic.com" />
9
9
  <link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap"
10
10
  rel="stylesheet" />
11
- <script type="module" crossorigin src="/builder/assets/index.e3ce193c.js"></script>
11
+ <script type="module" crossorigin src="/builder/assets/index.b81657e8.js"></script>
12
12
  <link rel="stylesheet" href="/builder/assets/index.49c9e712.css">
13
13
  </head>
14
14
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@budibase/server",
3
3
  "email": "hi@budibase.com",
4
- "version": "2.6.19-alpha.42",
4
+ "version": "2.6.19-alpha.43",
5
5
  "description": "Budibase Web Server",
6
6
  "main": "src/index.ts",
7
7
  "repository": {
@@ -46,12 +46,12 @@
46
46
  "license": "GPL-3.0",
47
47
  "dependencies": {
48
48
  "@apidevtools/swagger-parser": "10.0.3",
49
- "@budibase/backend-core": "2.6.19-alpha.42",
50
- "@budibase/client": "2.6.19-alpha.42",
51
- "@budibase/pro": "2.6.19-alpha.42",
52
- "@budibase/shared-core": "2.6.19-alpha.42",
53
- "@budibase/string-templates": "2.6.19-alpha.42",
54
- "@budibase/types": "2.6.19-alpha.42",
49
+ "@budibase/backend-core": "2.6.19-alpha.43",
50
+ "@budibase/client": "2.6.19-alpha.43",
51
+ "@budibase/pro": "2.6.19-alpha.43",
52
+ "@budibase/shared-core": "2.6.19-alpha.43",
53
+ "@budibase/string-templates": "2.6.19-alpha.43",
54
+ "@budibase/types": "2.6.19-alpha.43",
55
55
  "@bull-board/api": "3.7.0",
56
56
  "@bull-board/koa": "3.9.4",
57
57
  "@elastic/elasticsearch": "7.10.0",
@@ -195,5 +195,5 @@
195
195
  }
196
196
  }
197
197
  },
198
- "gitHead": "2f80b0b4cc54ed4f18a711651ae262b85ad88906"
198
+ "gitHead": "e86198f5373101c3ca2131b353dc09724ce2159c"
199
199
  }