@budibase/server 2.0.33 → 2.0.35
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.
- package/builder/assets/{index.ce49a649.js → index.c499270c.js} +3 -3
- package/builder/index.html +1 -1
- package/coverage/clover.xml +2 -2
- package/coverage/lcov-report/api/controllers/apikeys.js.html +1 -1
- package/coverage/lcov-report/api/controllers/automation.js.html +1 -1
- package/coverage/lcov-report/api/controllers/backup.js.html +1 -1
- package/coverage/lcov-report/api/controllers/cloud.js.html +1 -1
- package/coverage/lcov-report/api/controllers/datasource.js.html +1 -1
- package/coverage/lcov-report/api/controllers/dev.js.html +1 -1
- package/coverage/lcov-report/api/controllers/index.html +1 -1
- package/coverage/lcov-report/api/controllers/integration.js.html +1 -1
- package/coverage/lcov-report/api/controllers/layout.js.html +1 -1
- package/coverage/lcov-report/api/controllers/metadata.js.html +1 -1
- package/coverage/lcov-report/api/controllers/migrations.js.html +1 -1
- package/coverage/lcov-report/api/controllers/permission.js.html +1 -1
- package/coverage/lcov-report/api/controllers/query/index.html +1 -1
- package/coverage/lcov-report/api/controllers/query/validation.js.html +1 -1
- package/coverage/lcov-report/api/controllers/role.js.html +1 -1
- package/coverage/lcov-report/api/controllers/routing.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/external.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/index.html +1 -1
- package/coverage/lcov-report/api/controllers/row/internal.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/internalSearch.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/staticFormula.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/utils.js.html +1 -1
- package/coverage/lcov-report/api/controllers/script.js.html +1 -1
- package/coverage/lcov-report/api/controllers/table/bulkFormula.js.html +1 -1
- package/coverage/lcov-report/api/controllers/table/external.js.html +1 -1
- package/coverage/lcov-report/api/controllers/table/index.html +1 -1
- package/coverage/lcov-report/api/controllers/table/index.js.html +1 -1
- package/coverage/lcov-report/api/controllers/templates.js.html +1 -1
- package/coverage/lcov-report/api/controllers/user.js.html +1 -1
- package/coverage/lcov-report/api/controllers/view/exporters.js.html +1 -1
- package/coverage/lcov-report/api/controllers/view/index.html +1 -1
- package/coverage/lcov-report/api/controllers/view/index.js.html +1 -1
- package/coverage/lcov-report/api/controllers/view/utils.js.html +1 -1
- package/coverage/lcov-report/api/controllers/view/viewBuilder.js.html +1 -1
- package/coverage/lcov-report/api/controllers/webhook.js.html +1 -1
- package/coverage/lcov-report/api/index.html +1 -1
- package/coverage/lcov-report/api/index.js.html +1 -1
- package/coverage/lcov-report/api/routes/analytics.js.html +1 -1
- package/coverage/lcov-report/api/routes/apikeys.js.html +1 -1
- package/coverage/lcov-report/api/routes/automation.js.html +1 -1
- package/coverage/lcov-report/api/routes/backup.js.html +1 -1
- package/coverage/lcov-report/api/routes/cloud.js.html +1 -1
- package/coverage/lcov-report/api/routes/component.js.html +1 -1
- package/coverage/lcov-report/api/routes/datasource.js.html +1 -1
- package/coverage/lcov-report/api/routes/deploy.js.html +1 -1
- package/coverage/lcov-report/api/routes/dev.js.html +1 -1
- package/coverage/lcov-report/api/routes/index.html +1 -1
- package/coverage/lcov-report/api/routes/integration.js.html +1 -1
- package/coverage/lcov-report/api/routes/layout.js.html +1 -1
- package/coverage/lcov-report/api/routes/metadata.js.html +1 -1
- package/coverage/lcov-report/api/routes/migrations.js.html +1 -1
- package/coverage/lcov-report/api/routes/permission.js.html +1 -1
- package/coverage/lcov-report/api/routes/query.js.html +1 -1
- package/coverage/lcov-report/api/routes/role.js.html +1 -1
- package/coverage/lcov-report/api/routes/routing.js.html +1 -1
- package/coverage/lcov-report/api/routes/screen.js.html +1 -1
- package/coverage/lcov-report/api/routes/script.js.html +1 -1
- package/coverage/lcov-report/api/routes/table.js.html +1 -1
- package/coverage/lcov-report/api/routes/templates.js.html +1 -1
- package/coverage/lcov-report/api/routes/user.js.html +1 -1
- package/coverage/lcov-report/api/routes/utils/index.html +1 -1
- package/coverage/lcov-report/api/routes/utils/validators.js.html +1 -1
- package/coverage/lcov-report/api/routes/view.js.html +1 -1
- package/coverage/lcov-report/api/routes/webhook.js.html +1 -1
- package/coverage/lcov-report/automations/actions.js.html +1 -1
- package/coverage/lcov-report/automations/automationUtils.js.html +1 -1
- package/coverage/lcov-report/automations/bullboard.js.html +1 -1
- package/coverage/lcov-report/automations/index.html +1 -1
- package/coverage/lcov-report/automations/index.js.html +1 -1
- package/coverage/lcov-report/automations/steps/bash.js.html +1 -1
- package/coverage/lcov-report/automations/steps/delay.js.html +1 -1
- package/coverage/lcov-report/automations/steps/discord.js.html +1 -1
- package/coverage/lcov-report/automations/steps/executeQuery.js.html +1 -1
- package/coverage/lcov-report/automations/steps/executeScript.js.html +1 -1
- package/coverage/lcov-report/automations/steps/filter.js.html +1 -1
- package/coverage/lcov-report/automations/steps/index.html +1 -1
- package/coverage/lcov-report/automations/steps/integromat.js.html +1 -1
- package/coverage/lcov-report/automations/steps/loop.js.html +1 -1
- package/coverage/lcov-report/automations/steps/outgoingWebhook.js.html +1 -1
- package/coverage/lcov-report/automations/steps/queryRows.js.html +1 -1
- package/coverage/lcov-report/automations/steps/sendSmtpEmail.js.html +1 -1
- package/coverage/lcov-report/automations/steps/serverLog.js.html +1 -1
- package/coverage/lcov-report/automations/steps/slack.js.html +1 -1
- package/coverage/lcov-report/automations/steps/updateRow.js.html +1 -1
- package/coverage/lcov-report/automations/steps/utils.js.html +1 -1
- package/coverage/lcov-report/automations/steps/zapier.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/app.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/cron.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/index.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/index.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/rowDeleted.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/rowSaved.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/rowUpdated.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/webhook.js.html +1 -1
- package/coverage/lcov-report/automations/triggers.js.html +1 -1
- package/coverage/lcov-report/constants/index.html +1 -1
- package/coverage/lcov-report/constants/index.js.html +1 -1
- package/coverage/lcov-report/constants/layouts.js.html +1 -1
- package/coverage/lcov-report/constants/screens.js.html +1 -1
- package/coverage/lcov-report/db/inMemoryView.js.html +1 -1
- package/coverage/lcov-report/db/index.html +1 -1
- package/coverage/lcov-report/db/index.js.html +1 -1
- package/coverage/lcov-report/db/linkedRows/LinkController.js.html +1 -1
- package/coverage/lcov-report/db/linkedRows/index.html +1 -1
- package/coverage/lcov-report/db/linkedRows/index.js.html +1 -1
- package/coverage/lcov-report/db/linkedRows/linkUtils.js.html +1 -1
- package/coverage/lcov-report/db/newid.js.html +1 -1
- package/coverage/lcov-report/db/utils.js.html +1 -1
- package/coverage/lcov-report/events/AutomationEmitter.js.html +1 -1
- package/coverage/lcov-report/events/index.html +1 -1
- package/coverage/lcov-report/events/index.js.html +1 -1
- package/coverage/lcov-report/events/utils.js.html +1 -1
- package/coverage/lcov-report/index.html +1 -1
- package/coverage/lcov-report/integrations/tests/TestConfiguration.js.html +1 -1
- package/coverage/lcov-report/integrations/tests/index.html +1 -1
- package/coverage/lcov-report/middleware/appInfo.js.html +1 -1
- package/coverage/lcov-report/middleware/builder.js.html +1 -1
- package/coverage/lcov-report/middleware/currentapp.js.html +1 -1
- package/coverage/lcov-report/middleware/index.html +1 -1
- package/coverage/lcov-report/middleware/joi-validator.js.html +1 -1
- package/coverage/lcov-report/middleware/publicApi.js.html +1 -1
- package/coverage/lcov-report/middleware/resourceId.js.html +1 -1
- package/coverage/lcov-report/middleware/selfhost.js.html +1 -1
- package/coverage/lcov-report/middleware/utils.js.html +1 -1
- package/coverage/lcov-report/utilities/budibaseDir.js.html +1 -1
- package/coverage/lcov-report/utilities/centralPath.js.html +1 -1
- package/coverage/lcov-report/utilities/csvParser.js.html +1 -1
- package/coverage/lcov-report/utilities/global.js.html +1 -1
- package/coverage/lcov-report/utilities/index.html +1 -1
- package/coverage/lcov-report/utilities/index.js.html +1 -1
- package/coverage/lcov-report/utilities/plugins.js.html +1 -1
- package/coverage/lcov-report/utilities/queue/inMemoryQueue.js.html +1 -1
- package/coverage/lcov-report/utilities/queue/index.html +1 -1
- package/coverage/lcov-report/utilities/routing/index.html +1 -1
- package/coverage/lcov-report/utilities/routing/index.js.html +1 -1
- package/coverage/lcov-report/utilities/rowProcessor/index.html +1 -1
- package/coverage/lcov-report/utilities/rowProcessor/index.js.html +1 -1
- package/coverage/lcov-report/utilities/rowProcessor/utils.js.html +1 -1
- package/coverage/lcov-report/utilities/scriptRunner.js.html +1 -1
- package/coverage/lcov-report/utilities/security.js.html +1 -1
- package/coverage/lcov-report/utilities/statusCodes.js.html +1 -1
- package/coverage/lcov-report/utilities/usageQuota/index.html +1 -1
- package/coverage/lcov-report/utilities/usageQuota/rows.js.html +1 -1
- package/coverage/lcov-report/utilities/usageQuota/usageQuoteReset.js.html +1 -1
- package/coverage/lcov-report/utilities/users.js.html +1 -1
- package/coverage/lcov-report/utilities/workerRequests.js.html +1 -1
- package/dist/package.json +6 -6
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +7 -7
|
@@ -242,8 +242,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
242
242
|
`},stringify:{args:["obj"],numArgs:1,description:`<p>Stringify an object using <code>JSON.stringify</code>.</p>
|
|
243
243
|
`}},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>
|
|
244
244
|
`},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>
|
|
245
|
-
`}}};const{getHelperList:Ise}=$k;function QW(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 Pse(n,e){function t(){return n.map(r=>r.startsWith("helper")?r:QW(r)).join(", ")}return e?n.length===0?e:`${e}, ${t()}`:n.length>1?`${t()}`:t()}function Vse(n){const e=[];let t=null,r=null,i=0;function a(l){const s=["]"];for(;s.indexOf(l.substring(0,1))!==-1;)l=l.substring(1,l.length);l.length>0&&e.push(l.trim())}const o=["[","'",'"'];for(let l=0;l<n.length;l++){const s=n[l];o.indexOf(s)!==-1&&t==null?(t=l,r=s==="["?"]":s):s===r&&t!=null&&n[l+1]!=="."?(a(n.substring(t,l+1)),t=null,r=null,i=l+1):t==null&&s===" "&&(a(n.substring(i,l)),i=l)}return n.startsWith("[")&&e.length!==0||i===n.length-1||a(n.substring(i,n.length)),e}var Rse={convertHBSBlock:(n,e)=>{const t=n[2]==="{"?3:2,r=function(o){let l=[];for(;o.length;){const s=o.lastIndexOf("("),u=o.indexOf(")");let c;if(s===-1||u===-1)c=o.trim(),o="";else{const f=o.substring(s,u+1);c=f.substring(1,f.length-1).trim(),o=o.slice(0,s)+o.slice(s+f.length+1,o.length)}l.push(c)}return l}(n=n.substring(t,n.length-t).trim());let i=null;const a=Ise();for(let o of r){const l=Vse(o);if(i||l.length>1){const s=l.splice(0,1);a[s]&&(i=`helpers.${s}(${Pse(l,i)})`)}else i=QW(l[0])}return{variable:`var${e}`,value:i}}},h2=sr(function(n,e){const{registerAll:t,registerMinimum:r}=$k,{atob:i,btoa:a}=Gg,{FIND_HBS_REGEX:o,FIND_ANY_HBS_REGEX:l,findDoubleHbsInstances:s}=Gg,{convertHBSBlock:u}=Rse,c=Ug.create();t(c);const f=Ug.create();r(f);const h={noHelpers:!1,cacheTemplates:!1,noEscaping:!1,escapeNewlines:!1,noFinalise:!1};function m(w){try{JSON.stringify(w)}catch{throw"Unable to process inputs to JSON, cannot recurse"}}let _={};function y(w,A){A={...h,...A};const E=`${w}-${JSON.stringify(A)}`;if(A.cacheTemplates&&_[E])return _[E];w=Hse(w,A),A.noEscaping&&(w=e.disableEscaping(w));const T=(A.noHelpers?f:c).compile(w,{strict:!1});return _[E]=T,T}n.exports.processObject=async(w,A,E)=>{m(w);for(let T of Object.keys(w||{}))if(w[T]!=null){let I=w[T];typeof I=="string"?w[T]=await n.exports.processString(w[T],A,E):typeof I=="object"&&(w[T]=await n.exports.processObject(w[T],A,E))}return w},n.exports.processString=async(w,A,E)=>n.exports.processStringSync(w,A,E),n.exports.processObjectSync=(w,A,E)=>{m(w);for(let T of Object.keys(w||{})){let I=w[T];typeof I=="string"?w[T]=n.exports.processStringSync(w[T],A,E):typeof I=="object"&&(w[T]=n.exports.processObjectSync(w[T],A,E))}return w},n.exports.processStringSync=(w,A,E)=>{const T=w;if(typeof w!="string")throw"Cannot process non-string types.";try{const I=y(w,E),P=1e3*Math.floor(Date.now()/1e3);return Bse(I({now:new Date(P).toISOString(),__opts:E,...A}))}catch{return T}},n.exports.disableEscaping=w=>{const A=s(w);if(A==null)return w;const E=[...new Set(A)];for(let T of E){const I=new RegExp(`${T}(?!})`,"g");w=w.replace(I,`{${T}}`)}return w},n.exports.makePropSafe=w=>`[${w}]`.replace("[[","[").replace("]]","]"),n.exports.isValid=(w,A)=>{const E=["string","number","object","array","cannot read property","undefined","json at position 0"],T=["expecting '"],I={};try{return y(w,{...A,noFinalise:!0})(I),!0}catch(P){const x=P&&P.message?P.message:P;if(!x)return!1;const F=T.some(G=>x.toLowerCase().includes(G));return E.some(G=>x.toLowerCase().includes(G))&&!F}},n.exports.getManifest=()=>Ose,n.exports.isJSBinding=w=>n.exports.decodeJSBinding(w)!=null,n.exports.encodeJSBinding=w=>`{{ js "${a(w)}" }}`,n.exports.decodeJSBinding=w=>{if(!w||typeof w!="string"||!w.trim().startsWith("{{ js "))return null;const A=new RegExp(/{{ js "(.*)" }}/),E=w.match(A);return!E||E.length<2?null:i(E[1])},n.exports.doesContainStrings=(w,A)=>{let E=new RegExp(o),T=w.match(E);if(T==null)return!1;for(let I of T){let P=I;e.isJSBinding(I)&&(P=e.decodeJSBinding(I));let x=!0;for(let F of A)P.includes(F)||(x=!1);if(x)return!0}return!1},n.exports.findHBSBlocks=w=>{let A=new RegExp(l),E=w.match(A);return E==null?[]:E},n.exports.doesContainString=(w,A)=>e.doesContainStrings(w,[A]),n.exports.convertToJS=w=>{const A=e.findHBSBlocks(w);let E="return `",T=null;const I={};A.length===0&&(E+=w);let P=1;for(let F of A){let G=w;T&&(G=G.split(T)[1]),G=G.split(F)[0],T=F;const{variable:W,value:ee}=u(F,P++);I[W]=ee,E+=`${G.split()}\${${W}}`}let x="";for(let[F,G]of Object.entries(I))x+=`const ${F} = ${G};
|
|
246
|
-
`;return E+="`;",`${x}${E}`}});const zL=h2.isValid,$1=h2.makePropSafe,Nse=h2.getManifest,w7=h2.isJSBinding,Sh=h2.encodeJSBinding,Xh=h2.decodeJSBinding,d2=h2.processStringSync;h2.processObjectSync;h2.processString;h2.processObject;h2.doesContainStrings;h2.doesContainString;h2.disableEscaping;const eG=h2.findHBSBlocks,AL=h2.convertToJS;process&&!process.env.NO_JS&&KW((n,e)=>(e={...e,alert:void 0,setInterval:void 0,setTimeout:void 0},eS.createContext(e),eS.runInNewContext(n,e,{timeout:1e3})));function ML(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:[Fse]},$$scope:{ctx:o}}}}return i&&(t=new i(a(n)),t.$on("clickrelationship",n[9])),{c(){e=J("div"),t&&O(t.$$.fragment),yn(e,"--max-cell-width",n[1].width?"none":"200px"),D(e,"class","svelte-16j2cvj")},m(o,l){S(o,e,l),t&&H(t,e,null),r=!0},p(o,l){const s={};if(l&1&&(s.row=o[0]),l&2&&(s.schema=o[1]),l&16&&(s.value=o[4]),l&1024&&(s.$$scope={dirty:l,ctx:o}),i!==(i=o[3])){if(t){ze();const u=t;$(u.$$.fragment,1,0,()=>{B(u,1)}),Ae()}i?(t=new i(a(o)),t.$on("clickrelationship",o[9]),O(t.$$.fragment),b(t.$$.fragment,1),H(t,e,null)):t=null}else i&&t.$set(s);(!r||l&2)&&yn(e,"--max-cell-width",o[1].width?"none":"200px")},i(o){r||(t&&b(t.$$.fragment,o),r=!0)},o(o){t&&$(t.$$.fragment,o),r=!1},d(o){o&&C(e),t&&B(t)}}}function Fse(n){let e;const t=n[8].default,r=Xn(t,n,n[10],null);return{c(){r&&r.c()},m(i,a){r&&r.m(i,a),e=!0},p(i,a){r&&r.p&&(!e||a&1024)&&Zn(r,t,i,i[10],e?Jn(t,i[10],a,null):Qn(i[10]),null)},i(i){e||(b(r,i),e=!0)},o(i){$(r,i),e=!1},d(i){r&&r.d(i)}}}function xse(n){let e,t,r=n[3]&&(n[2]||n[4]!=null&&n[4]!=="")&&ML(n);return{c(){r&&r.c(),e=$t()},m(i,a){r&&r.m(i,a),S(i,e,a),t=!0},p(i,[a]){i[3]&&(i[2]||i[4]!=null&&i[4]!=="")?r?(r.p(i,a),a&28&&b(r,1)):(r=ML(i),r.c(),b(r,1),r.m(e.parentNode,e)):r&&(ze(),$(r,1,1,()=>{r=null}),Ae())},i(i){t||(b(r),t=!0)},o(i){$(r),t=!1},d(i){r&&r.d(i),i&&C(e)}}}function jse(n,e,t){let r,i,a,{$$slots:o={},$$scope:l}=e,{row:s}=e,{schema:u}=e,{value:c}=e,{customRenderers:f=[]}=e,h;const m={boolean:Lie,datetime:Hie,link:Pie,attachment:Gie,string:Fm,options:Fm,number:Fm,longform:Fm,array:Zie,internal:rq},_=A=>(A==null?void 0:A.type)==="datetime"&&(A==null?void 0:A.template)?"string":(A==null?void 0:A.type)||"string",y=(A,E)=>E?d2(E,{value:A}):A;function w(A){Bn.call(this,n,A)}return n.$$set=A=>{"row"in A&&t(0,s=A.row),"schema"in A&&t(1,u=A.schema),"value"in A&&t(5,c=A.value),"customRenderers"in A&&t(6,f=A.customRenderers),"$$scope"in A&&t(10,l=A.$$scope)},n.$$.update=()=>{var A,E;n.$$.dirty&2&&t(7,r=_(u)),n.$$.dirty&66&&t(2,i=f==null?void 0:f.find(T=>T.column===(u==null?void 0:u.name))),n.$$.dirty&132&&t(3,h=(E=(A=i==null?void 0:i.component)!=null?A:m[r])!=null?E:Fm),n.$$.dirty&2&&u!=null&&u.width,n.$$.dirty&34&&t(4,a=y(c,u.template))},[s,u,i,h,a,c,f,r,o,w,l]}class Use extends Re{constructor(e){super(),Ve(this,e,jse,xse,Oe,{row:0,schema:1,value:5,customRenderers:6})}}function CL(n){let e,t;return e=new Fu({props:{value:n[0]}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&1&&(a.value=r[0]),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function SL(n){let e,t;return e=new Br({props:{size:"S",$$slots:{default:[qse]},$$scope:{ctx:n}}}),e.$on("click",function(){An(n[1])&&n[1].apply(this,arguments)}),{c(){O(e.$$.fragment)},m(r,i){H(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||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function qse(n){let e;return{c(){e=oe("Edit")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function Wse(n){let e,t,r,i=n[2]&&CL(n),a=n[3]&&SL(n);return{c(){e=J("div"),i&&i.c(),t=U(),a&&a.c(),D(e,"class","svelte-1fa8hd3")},m(o,l){S(o,e,l),i&&i.m(e,null),j(e,t),a&&a.m(e,null),r=!0},p(o,[l]){o[2]?i?(i.p(o,l),l&4&&b(i,1)):(i=CL(o),i.c(),b(i,1),i.m(e,t)):i&&(ze(),$(i,1,1,()=>{i=null}),Ae()),o[3]?a?(a.p(o,l),l&8&&b(a,1)):(a=SL(o),a.c(),b(a,1),a.m(e,null)):a&&(ze(),$(a,1,1,()=>{a=null}),Ae())},i(o){r||(b(i),b(a),r=!0)},o(o){$(i),$(a),r=!1},d(o){o&&C(e),i&&i.d(),a&&a.d()}}}function Gse(n,e,t){let{selected:r}=e,{onEdit:i}=e,{allowSelectRows:a=!1}=e,{allowEditRows:o=!1}=e;return n.$$set=l=>{"selected"in l&&t(0,r=l.selected),"onEdit"in l&&t(1,i=l.onEdit),"allowSelectRows"in l&&t(2,a=l.allowSelectRows),"allowEditRows"in l&&t(3,o=l.allowEditRows)},[r,i,a,o]}class Yse extends Re{constructor(e){super(),Ve(this,e,Gse,Wse,Oe,{selected:0,onEdit:1,allowSelectRows:2,allowEditRows:3})}}const Kse=n=>({}),LL=n=>({});function EL(n,e,t){const r=n.slice();return r[57]=e[t],r[59]=t,r}function TL(n,e,t){const r=n.slice();return r[60]=e[t],r}function DL(n,e,t){const r=n.slice();return r[60]=e[t],r}function Xse(n){let e,t,r,i,a,o,l=n[16].length&&HL(n);const s=[tue,eue],u=[];function c(f,h){var m;return(m=f[21])!=null&&m.length?0:1}return r=c(n),i=u[r]=s[r](n),{c(){e=J("div"),l&&l.c(),t=U(),i.c(),D(e,"class","spectrum-Table svelte-12whv0s"),D(e,"style",a=`${n[22]}${n[20]}`)},m(f,h){S(f,e,h),l&&l.m(e,null),j(e,t),u[r].m(e,null),o=!0},p(f,h){f[16].length?l?(l.p(f,h),h[0]&65536&&b(l,1)):(l=HL(f),l.c(),b(l,1),l.m(e,t)):l&&(ze(),$(l,1,1,()=>{l=null}),Ae());let m=r;r=c(f),r===m?u[r].p(f,h):(ze(),$(u[m],1,1,()=>{u[m]=null}),Ae(),i=u[r],i?i.p(f,h):(i=u[r]=s[r](f),i.c()),b(i,1),i.m(e,null)),(!o||h[0]&5242880&&a!==(a=`${f[22]}${f[20]}`))&&D(e,"style",a)},i(f){o||(b(l),b(i),o=!0)},o(f){$(l),$(i),o=!1},d(f){f&&C(e),l&&l.d(),u[r].d()}}}function Jse(n){let e,t,r;return t=new hp({}),{c(){e=J("div"),O(t.$$.fragment),D(e,"class","loading svelte-12whv0s"),D(e,"style",n[22])},m(i,a){S(i,e,a),H(t,e,null),r=!0},p(i,a){(!r||a[0]&4194304)&&D(e,"style",i[22])},i(i){r||(b(t.$$.fragment,i),r=!0)},o(i){$(t.$$.fragment,i),r=!1},d(i){i&&C(e),B(t)}}}function HL(n){let e,t,r,i=n[15]&&BL(n),a=n[16],o=[];for(let l=0;l<a.length;l+=1)o[l]=VL(DL(n,a,l));return{c(){e=J("div"),i&&i.c(),t=U();for(let l=0;l<o.length;l+=1)o[l].c();D(e,"class","spectrum-Table-head svelte-12whv0s")},m(l,s){S(l,e,s),i&&i.m(e,null),j(e,t);for(let u=0;u<o.length;u+=1)o[u].m(e,null);r=!0},p(l,s){if(l[15]?i?(i.p(l,s),s[0]&32768&&b(i,1)):(i=BL(l),i.c(),b(i,1),i.m(e,t)):i&&(ze(),$(i,1,1,()=>{i=null}),Ae()),s[0]&117512737){a=l[16];let u;for(u=0;u<a.length;u+=1){const c=DL(l,a,u);o[u]?o[u].p(c,s):(o[u]=VL(c),o[u].c(),o[u].m(e,null))}for(;u<o.length;u+=1)o[u].d(1);o.length=a.length}},i(l){r||(b(i),r=!0)},o(l){$(i),r=!1},d(l){l&&C(e),i&&i.d(),Dn(o,l)}}}function BL(n){let e,t,r,i;const a=[Qse,Zse],o=[];function l(s,u){return s[3]?0:1}return t=l(n),r=o[t]=a[t](n),{c(){e=J("div"),r.c(),D(e,"class","spectrum-Table-headCell spectrum-Table-headCell--divider spectrum-Table-headCell--edit svelte-12whv0s"),De(e,"noBorderHeader",!n[9])},m(s,u){S(s,e,u),o[t].m(e,null),i=!0},p(s,u){let c=t;t=l(s),t===c?o[t].p(s,u):(ze(),$(o[c],1,1,()=>{o[c]=null}),Ae(),r=o[t],r?r.p(s,u):(r=o[t]=a[t](s),r.c()),b(r,1),r.m(e,null)),u[0]&512&&De(e,"noBorderHeader",!s[9])},i(s){i||(b(r),i=!0)},o(s){$(r),i=!1},d(s){s&&C(e),o[t].d()}}}function Zse(n){let e;return{c(){e=oe("Edit")},m(t,r){S(t,e,r)},p:vt,i:vt,o:vt,d(t){t&&C(e)}}}function Qse(n){let e,t,r;function i(o){n[40](o)}let a={};return n[18]!==void 0&&(a.value=n[18]),e=new Fu({props:a}),He.push(()=>nt(e,"value",i)),e.$on("change",n[29]),{c(){O(e.$$.fragment)},m(o,l){H(e,o,l),r=!0},p(o,l){const s={};!t&&l[0]&262144&&(t=!0,s.value=o[18],rt(()=>t=!1)),e.$set(s)},i(o){r||(b(e.$$.fragment,o),r=!0)},o(o){$(e.$$.fragment,o),r=!1},d(o){B(e,o)}}}function OL(n){let e,t;return{c(){e=lt("svg"),t=lt("use"),Wr(t,"xlink:href","#spectrum-icon-18-MagicWand"),D(e,"class","spectrum-Icon spectrum-Table-autoIcon svelte-12whv0s"),D(e,"focusable","false")},m(r,i){S(r,e,i),j(e,t)},d(r){r&&C(e)}}}function IL(n){let e,t;return{c(){e=lt("svg"),t=lt("use"),Wr(t,"xlink:href","#spectrum-css-icon-Arrow100"),D(e,"class","spectrum-Icon spectrum-UIIcon-ArrowDown100 spectrum-Table-sortedIcon svelte-12whv0s"),D(e,"focusable","false"),D(e,"aria-hidden","true")},m(r,i){S(r,e,i),j(e,t)},d(r){r&&C(e)}}}function PL(n){let e,t,r,i;function a(...o){return n[41](n[60],...o)}return{c(){e=lt("svg"),t=lt("use"),Wr(t,"xlink:href","#spectrum-icon-18-Edit"),D(e,"class","spectrum-Icon spectrum-Table-editIcon svelte-12whv0s"),D(e,"focusable","false")},m(o,l){S(o,e,l),j(e,t),r||(i=At(e,"click",a),r=!0)},p(o,l){n=o},d(o){o&&C(e),r=!1,i()}}}function VL(n){var y,w;let e,t,r=n[25](n[0][n[60]])+"",i,a,o,l,s,u,c,f=((y=n[0][n[60]])==null?void 0:y.autocolumn)&&OL(),h=n[11]===n[60]&&IL(),m=n[5]&&((w=n[0][n[60]])==null?void 0:w.editable)!==!1&&PL(n);function _(){return n[42](n[60])}return{c(){e=J("div"),t=J("div"),i=oe(r),a=U(),f&&f.c(),o=U(),h&&h.c(),l=U(),m&&m.c(),s=U(),D(t,"class","title svelte-12whv0s"),D(e,"class","spectrum-Table-headCell svelte-12whv0s"),De(e,"noBorderHeader",!n[9]),De(e,"spectrum-Table-headCell--alignCenter",n[0][n[60]].align==="Center"),De(e,"spectrum-Table-headCell--alignRight",n[0][n[60]].align==="Right"),De(e,"is-sortable",n[0][n[60]].sortable!==!1),De(e,"is-sorted-desc",n[11]===n[60]&&n[12]==="Descending"),De(e,"is-sorted-asc",n[11]===n[60]&&n[12]==="Ascending")},m(A,E){S(A,e,E),j(e,t),j(t,i),j(e,a),f&&f.m(e,null),j(e,o),h&&h.m(e,null),j(e,l),m&&m.m(e,null),j(e,s),u||(c=At(e,"click",_),u=!0)},p(A,E){var T,I;n=A,E[0]&65537&&r!==(r=n[25](n[0][n[60]])+"")&&_t(i,r),(T=n[0][n[60]])!=null&&T.autocolumn?f||(f=OL(),f.c(),f.m(e,o)):f&&(f.d(1),f=null),n[11]===n[60]?h||(h=IL(),h.c(),h.m(e,l)):h&&(h.d(1),h=null),n[5]&&((I=n[0][n[60]])==null?void 0:I.editable)!==!1?m?m.p(n,E):(m=PL(n),m.c(),m.m(e,s)):m&&(m.d(1),m=null),E[0]&512&&De(e,"noBorderHeader",!n[9]),E[0]&65537&&De(e,"spectrum-Table-headCell--alignCenter",n[0][n[60]].align==="Center"),E[0]&65537&&De(e,"spectrum-Table-headCell--alignRight",n[0][n[60]].align==="Right"),E[0]&65537&&De(e,"is-sortable",n[0][n[60]].sortable!==!1),E[0]&71680&&De(e,"is-sorted-desc",n[11]===n[60]&&n[12]==="Descending"),E[0]&71680&&De(e,"is-sorted-asc",n[11]===n[60]&&n[12]==="Ascending")},d(A){A&&C(e),f&&f.d(),h&&h.d(),m&&m.d(),u=!1,c()}}}function eue(n){let e,t,r,i;const a=[rue,nue],o=[];function l(s,u){return s[8]?0:1}return t=l(n),r=o[t]=a[t](n),{c(){var s;e=J("div"),r.c(),D(e,"class","placeholder svelte-12whv0s"),De(e,"placeholder--custom",n[8]),De(e,"placeholder--no-fields",!((s=n[16])!=null&&s.length))},m(s,u){S(s,e,u),o[t].m(e,null),i=!0},p(s,u){var f;let c=t;t=l(s),t===c?o[t].p(s,u):(ze(),$(o[c],1,1,()=>{o[c]=null}),Ae(),r=o[t],r?r.p(s,u):(r=o[t]=a[t](s),r.c()),b(r,1),r.m(e,null)),u[0]&256&&De(e,"placeholder--custom",s[8]),u[0]&65536&&De(e,"placeholder--no-fields",!((f=s[16])!=null&&f.length))},i(s){i||(b(r),i=!0)},o(s){$(r),i=!1},d(s){s&&C(e),o[t].d()}}}function tue(n){let e,t,r=n[21],i=[];for(let o=0;o<r.length;o+=1)i[o]=FL(EL(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=$t()},m(o,l){for(let s=0;s<i.length;s+=1)i[s].m(o,l);S(o,e,l),t=!0},p(o,l){if(l[0]&413762139|l[1]&262144){r=o[21];let s;for(s=0;s<r.length;s+=1){const u=EL(o,r,s);i[s]?(i[s].p(u,l),b(i[s],1)):(i[s]=FL(u),i[s].c(),b(i[s],1),i[s].m(e.parentNode,e))}for(ze(),s=r.length;s<i.length;s+=1)a(s);Ae()}},i(o){if(!t){for(let l=0;l<r.length;l+=1)b(i[l]);t=!0}},o(o){i=i.filter(Boolean);for(let l=0;l<i.length;l+=1)$(i[l]);t=!1},d(o){Dn(i,o),o&&C(e)}}}function nue(n){let e,t,r,i,a,o;return{c(){e=J("div"),t=lt("svg"),r=lt("use"),i=U(),a=J("div"),o=oe(n[10]),Wr(r,"xlink:href","#spectrum-icon-18-Table"),D(t,"class","spectrum-Icon spectrum-Icon--sizeXXL"),D(t,"focusable","false"),D(a,"class","svelte-12whv0s"),D(e,"class","placeholder-content svelte-12whv0s")},m(l,s){S(l,e,s),j(e,t),j(t,r),j(e,i),j(e,a),j(a,o)},p(l,s){s[0]&1024&&_t(o,l[10])},i:vt,o:vt,d(l){l&&C(e)}}}function rue(n){let e;const t=n[39].placeholder,r=Xn(t,n,n[49],LL);return{c(){r&&r.c()},m(i,a){r&&r.m(i,a),e=!0},p(i,a){r&&r.p&&(!e||a[1]&262144)&&Zn(r,t,i,i[49],e?Jn(t,i[49],a,Kse):Qn(i[49]),LL)},i(i){e||(b(r,i),e=!0)},o(i){$(r,i),e=!1},d(i){r&&r.d(i)}}}function RL(n){let e,t,r,i,a;function o(...u){return n[43](n[57],...u)}function l(...u){return n[44](n[57],...u)}t=new Yse({props:{data:n[57],selected:n[1].findIndex(o)!==-1,onEdit:l,allowSelectRows:n[3],allowEditRows:n[4]}});function s(...u){return n[45](n[57],...u)}return{c(){e=J("div"),O(t.$$.fragment),D(e,"class","spectrum-Table-cell spectrum-Table-cell--divider spectrum-Table-cell--edit svelte-12whv0s"),De(e,"noBorderCheckbox",!n[9])},m(u,c){S(u,e,c),H(t,e,null),r=!0,i||(a=At(e,"click",s),i=!0)},p(u,c){n=u;const f={};c[0]&2097152&&(f.data=n[57]),c[0]&2097154&&(f.selected=n[1].findIndex(o)!==-1),c[0]&2097152&&(f.onEdit=l),c[0]&8&&(f.allowSelectRows=n[3]),c[0]&16&&(f.allowEditRows=n[4]),t.$set(f),c[0]&512&&De(e,"noBorderCheckbox",!n[9])},i(u){r||(b(t.$$.fragment,u),r=!0)},o(u){$(t.$$.fragment,u),r=!1},d(u){u&&C(e),B(t),i=!1,a()}}}function iue(n){let e;const t=n[39].default,r=Xn(t,n,n[49],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]&262144)&&Zn(r,t,i,i[49],e?Jn(t,i[49],a,null):Qn(i[49]),null)},i(i){e||(b(r,i),e=!0)},o(i){$(r,i),e=!1},d(i){r&&r.d(i)}}}function NL(n){let e,t,r,i,a,o;t=new Use({props:{customRenderers:n[6],row:n[57],schema:n[0][n[60]],value:qh(n[57],n[60]),$$slots:{default:[iue]},$$scope:{ctx:n}}}),t.$on("clickrelationship",n[46]);function l(){return n[47](n[60],n[57])}return{c(){e=J("div"),O(t.$$.fragment),D(e,"class","spectrum-Table-cell svelte-12whv0s"),D(e,"style",r=n[19][n[60]]),De(e,"spectrum-Table-cell--divider",!!n[0][n[60]].divider)},m(s,u){S(s,e,u),H(t,e,null),i=!0,a||(o=At(e,"click",l),a=!0)},p(s,u){n=s;const c={};u[0]&64&&(c.customRenderers=n[6]),u[0]&2097152&&(c.row=n[57]),u[0]&65537&&(c.schema=n[0][n[60]]),u[0]&2162688&&(c.value=qh(n[57],n[60])),u[1]&262144&&(c.$$scope={dirty:u,ctx:n}),t.$set(c),(!i||u[0]&589824&&r!==(r=n[19][n[60]]))&&D(e,"style",r),u[0]&65537&&De(e,"spectrum-Table-cell--divider",!!n[0][n[60]].divider)},i(s){i||(b(t.$$.fragment,s),i=!0)},o(s){$(t.$$.fragment,s),i=!1},d(s){s&&C(e),B(t),a=!1,o()}}}function FL(n){let e,t,r,i,a=n[15]&&RL(n),o=n[16],l=[];for(let u=0;u<o.length;u+=1)l[u]=NL(TL(n,o,u));const s=u=>$(l[u],1,1,()=>{l[u]=null});return{c(){e=J("div"),a&&a.c(),t=U();for(let u=0;u<l.length;u+=1)l[u].c();r=U(),D(e,"class","spectrum-Table-row svelte-12whv0s")},m(u,c){S(u,e,c),a&&a.m(e,null),j(e,t);for(let f=0;f<l.length;f+=1)l[f].m(e,null);j(e,r),i=!0},p(u,c){if(u[15]?a?(a.p(u,c),c[0]&32768&&b(a,1)):(a=RL(u),a.c(),b(a,1),a.m(e,t)):a&&(ze(),$(a,1,1,()=>{a=null}),Ae()),c[0]&279511105|c[1]&262144){o=u[16];let f;for(f=0;f<o.length;f+=1){const h=TL(u,o,f);l[f]?(l[f].p(h,c),b(l[f],1)):(l[f]=NL(h),l[f].c(),b(l[f],1),l[f].m(e,r))}for(ze(),f=o.length;f<l.length;f+=1)s(f);Ae()}},i(u){if(!i){b(a);for(let c=0;c<o.length;c+=1)b(l[c]);i=!0}},o(u){$(a),l=l.filter(Boolean);for(let c=0;c<l.length;c+=1)$(l[c]);i=!1},d(u){u&&C(e),a&&a.d(),Dn(l,u)}}}function aue(n){let e,t,r,i,a,o;const l=[Jse,Xse],s=[];function u(c,f){return c[14]?1:0}return t=u(n),r=s[t]=l[t](n),{c(){e=J("div"),r.c(),D(e,"class","wrapper svelte-12whv0s"),D(e,"style",i=`--row-height: ${n[17]}px; --header-height: ${L$}px;`),Po(()=>n[48].call(e)),De(e,"wrapper--quiet",n[2]),De(e,"wrapper--compact",n[7])},m(c,f){S(c,e,f),s[t].m(e,null),a=RZ(e,n[48].bind(e)),o=!0},p(c,f){let h=t;t=u(c),t===h?s[t].p(c,f):(ze(),$(s[h],1,1,()=>{s[h]=null}),Ae(),r=s[t],r?r.p(c,f):(r=s[t]=l[t](c),r.c()),b(r,1),r.m(e,null)),(!o||f[0]&131072&&i!==(i=`--row-height: ${c[17]}px; --header-height: ${L$}px;`))&&D(e,"style",i),f[0]&4&&De(e,"wrapper--quiet",c[2]),f[0]&128&&De(e,"wrapper--compact",c[7])},i(c){o||(b(r),o=!0)},o(c){$(r),o=!1},d(c){c&&C(e),s[t].d(),a()}}}const L$=36;function oue(n,e,t){let r,i,a,o,l,s,u,c,f,h,{$$slots:m={},$$scope:_}=e,{data:y=[]}=e,{schema:w={}}=e,{showAutoColumns:A=!1}=e,{rowCount:E=0}=e,{quiet:T=!1}=e,{loading:I=!1}=e,{allowSelectRows:P}=e,{allowEditRows:x=!0}=e,{allowEditColumns:F=!0}=e,{selectedRows:G=[]}=e,{customRenderers:W=[]}=e,{disableSorting:ee=!1}=e,{autoSortColumns:ne=!0}=e,{compact:le=!1}=e,{customPlaceholder:te=!1}=e,{showHeaderBorder:X=!0}=e,{placeholderText:q="No rows found"}=e;const re=jn();let ue,pe,be=0,ve=!1,Me=!1;const Ce=$e=>{let Ke={};return Object.entries($e||{}).forEach(([zt,Ct])=>{typeof Ct=="string"?Ke[zt]={type:Ct,name:zt}:Ke[zt]={...Ct,name:zt}}),Ke},me=($e,Ke,zt,Ct,on)=>$e?Ct?Math.min(zt,Ct):Math.min(zt,Math.ceil(Ke/on)):Ct||0,ut=($e,Ke,zt,Ct)=>!Ke||!$e||zt<=Ke?"":`height: ${L$+$e*Ct}px;`,ke=($e,Ke,zt)=>{let Ct="grid-template-columns:";return zt&&(Ct+=" auto"),$e==null||$e.forEach(on=>{const ln=Ke[on];ln.width?Ct+=` ${ln.width}`:Ct+=" minmax(auto, 1fr)"}),Ct+=";",Ct},ge=($e,Ke,zt)=>!Ke||!zt||ee?$e:$e.slice().sort((Ct,on)=>{const ln=Ct[Ke],un=on[Ke];return zt==="Descending"?ln>un?-1:1:ln>un?1:-1}),xe=$e=>{$e.sortable!==!1&&($e.name===ue?t(12,pe=pe==="Descending"?"Ascending":"Descending"):(t(11,ue=$e.name),t(12,pe="Descending")),re("sort",{column:ue,order:pe}))},je=$e=>{let Ke=$e==null?void 0:$e.displayName;return $e&&Ke===void 0&&(Ke=$e.name),Ke||""},_e=($e,Ke,zt)=>{let Ct=[],on=[];return Object.entries($e||{}).forEach(([ln,un])=>{!ln||!un||(!zt||!(un!=null&&un.autocolumn)?Ct.push(un):Ke&&on.push(un))}),Ct.sort((ln,un)=>{const Vn=ln.order||Number.MAX_SAFE_INTEGER,On=un.order||Number.MAX_SAFE_INTEGER,wn=je(ln),St=je(un);return Vn!==On?Vn<On?Vn:On:wn<St?ln:un}).concat(on).map(ln=>ln.name)},st=($e,Ke)=>{$e.stopPropagation(),re("editcolumn",Ke)},dt=($e,Ke)=>{$e.stopPropagation(),re("editrow",qw(Ke))},mt=$e=>{!P||(G.some(Ke=>Ke._id===$e._id)?t(1,G=G.filter(Ke=>Ke._id!==$e._id)):t(1,G=[...G,$e]))},Ze=$e=>{!!$e.detail?a.forEach(zt=>{G.findIndex(Ct=>Ct._id===zt._id)===-1&&G.push(zt)}):t(1,G=G.filter(zt=>a.every(Ct=>Ct._id!==zt._id)))},We=$e=>{let Ke={};return Object.keys($e||{}).forEach(zt=>{Ke[zt]="",$e[zt].color&&(Ke[zt]+=`color: ${$e[zt].color};`),$e[zt].background&&(Ke[zt]+=`background-color: ${$e[zt].background};`),$e[zt].align==="Center"&&(Ke[zt]+="justify-content: center; text-align: center;"),$e[zt].align==="Right"&&(Ke[zt]+="justify-content: flex-end; text-align: right;")}),Ke};function tt($e){Me=$e,t(18,Me),t(36,a),t(1,G),t(16,i),t(30,y),t(0,w),t(31,A),t(35,ne)}const Bt=($e,Ke)=>st(Ke,$e),an=$e=>xe(w[$e]),Tt=($e,Ke)=>Ke._id===$e._id,de=($e,Ke)=>dt(Ke,$e),Xe=($e,Ke)=>{mt($e),Ke.stopPropagation()};function it($e){Bn.call(this,n,$e)}const Le=($e,Ke)=>{var zt;(zt=w[$e])!=null&&zt.preventSelectRow||(re("click",Ke),mt(Ke))};function Ie(){be=this.offsetHeight,t(13,be)}return n.$$set=$e=>{"data"in $e&&t(30,y=$e.data),"schema"in $e&&t(0,w=$e.schema),"showAutoColumns"in $e&&t(31,A=$e.showAutoColumns),"rowCount"in $e&&t(32,E=$e.rowCount),"quiet"in $e&&t(2,T=$e.quiet),"loading"in $e&&t(33,I=$e.loading),"allowSelectRows"in $e&&t(3,P=$e.allowSelectRows),"allowEditRows"in $e&&t(4,x=$e.allowEditRows),"allowEditColumns"in $e&&t(5,F=$e.allowEditColumns),"selectedRows"in $e&&t(1,G=$e.selectedRows),"customRenderers"in $e&&t(6,W=$e.customRenderers),"disableSorting"in $e&&t(34,ee=$e.disableSorting),"autoSortColumns"in $e&&t(35,ne=$e.autoSortColumns),"compact"in $e&&t(7,le=$e.compact),"customPlaceholder"in $e&&t(8,te=$e.customPlaceholder),"showHeaderBorder"in $e&&t(9,X=$e.showHeaderBorder),"placeholderText"in $e&&t(10,q=$e.placeholderText),"$$scope"in $e&&t(49,_=$e.$$scope)},n.$$.update=()=>{n.$$.dirty[0]&128&&t(17,r=le?46:55),n.$$.dirty[0]&1&&t(0,w=Ce(w)),n.$$.dirty[1]&4&&(I||t(14,ve=!0)),n.$$.dirty[0]&1|n.$$.dirty[1]&17&&t(16,i=_e(w,A,ne)),n.$$.dirty[0]&1073807360&&t(36,a=i!=null&&i.length?y||[]:[]),n.$$.dirty[1]&32&&t(37,o=(a==null?void 0:a.length)||0),n.$$.dirty[0]&155648|n.$$.dirty[1]&34&&t(38,l=me(ve,be,a.length,E,r)),n.$$.dirty[0]&131072|n.$$.dirty[1]&194&&t(22,s=ut(l,E,o,r)),n.$$.dirty[0]&6144|n.$$.dirty[1]&32&&t(21,u=ge(a,ue,pe)),n.$$.dirty[0]&24&&t(15,f=x||P),n.$$.dirty[0]&98305&&t(20,c=ke(i,w,f)),n.$$.dirty[0]&1&&t(19,h=We(w)),n.$$.dirty[0]&2|n.$$.dirty[1]&32&&a.filter(Ke=>G.some(zt=>Ke._id===zt._id)).length===0&&t(18,Me=!1)},[w,G,T,P,x,F,W,le,te,X,q,ue,pe,be,ve,f,i,r,Me,h,c,u,s,re,xe,je,st,dt,mt,Ze,y,A,E,I,ee,ne,a,o,l,m,tt,Bt,an,Tt,de,Xe,it,Le,Ie,_]}class Bf extends Re{constructor(e){super(),Ve(this,e,oue,aue,Oe,{data:30,schema:0,showAutoColumns:31,rowCount:32,quiet:2,loading:33,allowSelectRows:3,allowEditRows:4,allowEditColumns:5,selectedRows:1,customRenderers:6,disableSorting:34,autoSortColumns:35,compact:7,customPlaceholder:8,showHeaderBorder:9,placeholderText:10},null,[-1,-1,-1])}}function xL(n){let e;return{c(){e=J("div"),D(e,"class","spectrum-Tabs-selectionIndicator svelte-jku8bn"),yn(e,"width",n[11]),yn(e,"height",n[12]),yn(e,"left",n[10]),yn(e,"top",n[9]),De(e,"emphasized",n[4])},m(t,r){S(t,e,r)},p(t,r){r&2048&&yn(e,"width",t[11]),r&4096&&yn(e,"height",t[12]),r&1024&&yn(e,"left",t[10]),r&512&&yn(e,"top",t[9]),r&16&&De(e,"emphasized",t[4])},d(t){t&&C(e)}}}function lue(n){let e,t,r,i,a,o;const l=n[18].default,s=Xn(l,n,n[17],null);let u=n[7].info&&xL(n);return{c(){e=J("div"),s&&s.c(),t=U(),u&&u.c(),i=U(),a=J("div"),D(e,"class",r="spectrum-Tabs spectrum-Tabs--size"+n[6]+" svelte-jku8bn"),De(e,"spectrum-Tabs--quiet",n[3]),De(e,"noHorizPadding",n[2]),De(e,"onTop",n[5]),De(e,"spectrum-Tabs--vertical",n[0]),De(e,"spectrum-Tabs--horizontal",!n[0]),D(a,"class","spectrum-Tabs-content spectrum-Tabs-content-"+n[13]+" svelte-jku8bn"),De(a,"noPadding",n[1])},m(c,f){S(c,e,f),s&&s.m(e,null),j(e,t),u&&u.m(e,null),n[19](e),S(c,i,f),S(c,a,f),o=!0},p(c,[f]){s&&s.p&&(!o||f&131072)&&Zn(s,l,c,c[17],o?Jn(l,c[17],f,null):Qn(c[17]),null),c[7].info?u?u.p(c,f):(u=xL(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"))&&D(e,"class",r),f&72&&De(e,"spectrum-Tabs--quiet",c[3]),f&68&&De(e,"noHorizPadding",c[2]),f&96&&De(e,"onTop",c[5]),f&65&&De(e,"spectrum-Tabs--vertical",c[0]),f&65&&De(e,"spectrum-Tabs--horizontal",!c[0]),f&2&&De(a,"noPadding",c[1])},i(c){o||(b(s,c),o=!0)},o(c){$(s,c),o=!1},d(c){c&&C(e),s&&s.d(c),u&&u.d(),n[19](null),c&&C(i),c&&C(a)}}}function sue(){return"_"+Math.random().toString(36).slice(2,9)}function uue(n,e,t){let r,{$$slots:i={},$$scope:a}=e,{selected:o}=e,{vertical:l=!1}=e,{noPadding:s=!1}=e,{noHorizPadding:u=!1}=e,{quiet:c=!1}=e,{emphasized:f=!1}=e,{onTop:h=!1}=e,{size:m="M"}=e,_,y=sue();const w=yi({title:o,id:y,emphasized:f});Ne(n,w,ee=>t(7,r=ee)),Hd("tab",w);let A;const E=jn();let T,I,P,x;function F(){var ee,ne,le,te;l?(t(12,x=((le=r.info)==null?void 0:le.height)+4+"px"),t(11,P=(te=r.info)==null?void 0:te.width)):(t(11,P=((ee=r.info)==null?void 0:ee.width)+"px"),t(12,x=(ne=r.info)==null?void 0:ne.height))}function G(){var ee,ne;l?t(9,T=((ne=r.info)==null?void 0:ne.top)-(A==null?void 0:A.getBoundingClientRect().top)+"px"):t(10,I=((ee=r.info)==null?void 0:ee.left)-(A==null?void 0:A.getBoundingClientRect().left)+"px")}ar(()=>{F(),G()});function W(ee){He[ee?"unshift":"push"](()=>{A=ee,t(8,A)})}return n.$$set=ee=>{"selected"in ee&&t(15,o=ee.selected),"vertical"in ee&&t(0,l=ee.vertical),"noPadding"in ee&&t(1,s=ee.noPadding),"noHorizPadding"in ee&&t(2,u=ee.noHorizPadding),"quiet"in ee&&t(3,c=ee.quiet),"emphasized"in ee&&t(4,f=ee.emphasized),"onTop"in ee&&t(5,h=ee.onTop),"size"in ee&&t(6,m=ee.size),"$$scope"in ee&&t(17,a=ee.$$scope)},n.$$.update=()=>{n.$$.dirty&98432&&(_!==o?(t(16,_=o),E("select",_)):r.title!==_&&(t(16,_=r.title),t(15,o=r.title),E("select",_)),r.title!==_&&w.update(ee=>(ee.title=_,ee))),n.$$.dirty&128&&F(),n.$$.dirty&128&&G()},[l,s,u,c,f,h,m,r,A,T,I,P,x,y,w,o,_,a,i,W]}class K2 extends Re{constructor(e){super(),Ve(this,e,uue,lue,Oe,{selected:15,vertical:0,noPadding:1,noHorizPadding:2,quiet:3,emphasized:4,onTop:5,size:6})}}function jL(n){let e,t,r;return{c(){e=lt("svg"),t=lt("use"),Wr(t,"xlink:href",r="#spectrum-icon-18-"+n[1]),D(e,"class","spectrum-Icon spectrum-Icon--sizeM"),D(e,"focusable","false"),D(e,"aria-hidden","true"),D(e,"aria-label","Folder")},m(i,a){S(i,e,a),j(e,t)},p(i,a){a&2&&r!==(r="#spectrum-icon-18-"+i[1])&&Wr(t,"xlink:href",r)},d(i){i&&C(e)}}}function UL(n){let e,t;return e=new w6({props:{target:".spectrum-Tabs-content-"+n[3].id,$$slots:{default:[cue]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&8&&(a.target=".spectrum-Tabs-content-"+r[3].id),i&256&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function cue(n){let e;const t=n[6].default,r=Xn(t,n,n[8],null);return{c(){r&&r.c()},m(i,a){r&&r.m(i,a),e=!0},p(i,a){r&&r.p&&(!e||a&256)&&Zn(r,t,i,i[8],e?Jn(t,i[8],a,null):Qn(i[8]),null)},i(i){e||(b(r,i),e=!0)},o(i){$(r,i),e=!1},d(i){r&&r.d(i)}}}function fue(n){let e,t,r,i,a,o,l,s,u,c=n[1]&&jL(n),f=n[3].title===n[0]&&UL(n);return{c(){e=J("div"),c&&c.c(),t=U(),r=J("span"),i=oe(n[0]),a=U(),f&&f.c(),o=$t(),D(r,"class","spectrum-Tabs-itemLabel"),D(e,"class","spectrum-Tabs-item svelte-1tmawtn"),D(e,"tabindex","0"),De(e,"is-selected",n[3].title===n[0]),De(e,"emphasized",n[3].title===n[0]&&n[3].emphasized)},m(h,m){S(h,e,m),c&&c.m(e,null),j(e,t),j(e,r),j(r,i),n[7](e),S(h,a,m),f&&f.m(h,m),S(h,o,m),l=!0,s||(u=At(e,"click",n[5]),s=!0)},p(h,[m]){h[1]?c?c.p(h,m):(c=jL(h),c.c(),c.m(e,t)):c&&(c.d(1),c=null),(!l||m&1)&&_t(i,h[0]),m&9&&De(e,"is-selected",h[3].title===h[0]),m&9&&De(e,"emphasized",h[3].title===h[0]&&h[3].emphasized),h[3].title===h[0]?f?(f.p(h,m),m&9&&b(f,1)):(f=UL(h),f.c(),b(f,1),f.m(o.parentNode,o)):f&&(ze(),$(f,1,1,()=>{f=null}),Ae())},i(h){l||(b(f),l=!0)},o(h){$(f),l=!1},d(h){h&&C(e),c&&c.d(),n[7](null),h&&C(a),f&&f.d(h),h&&C(o),s=!1,u()}}}function pue(n,e,t){let r,{$$slots:i={},$$scope:a}=e,{title:o}=e,{icon:l=""}=e;const s=jn();let u=M4("tab");Ne(n,u,y=>t(3,r=y));let c,f;const h=()=>{setTimeout(()=>{f=c==null?void 0:c.getBoundingClientRect(),f&&r.title===o&&Y1(u,r.info=f,r)},0)};ar(()=>{h()});const m=()=>{Y1(u,r={...r,title:o,info:c.getBoundingClientRect()},r),s("click")};function _(y){He[y?"unshift":"push"](()=>{c=y,t(2,c)})}return n.$$set=y=>{"title"in y&&t(0,o=y.title),"icon"in y&&t(1,l=y.icon),"$$scope"in y&&t(8,a=y.$$scope)},n.$$.update=()=>{var y;n.$$.dirty&13&&r.title===o&&c&&((y=r.info)==null?void 0:y.left)!==c.getBoundingClientRect().left&&Y1(u,r={...r,info:c.getBoundingClientRect()},r)},[o,l,c,r,u,m,i,_,a]}class x1 extends Re{constructor(e){super(),Ve(this,e,pue,fue,Oe,{title:0,icon:1})}}function due(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 Uw({props:a}),He.push(()=>nt(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(){O(e.$$.fragment)},m(o,l){H(e,o,l),r=!0},p(o,l){const s={};l&64&&(s.updateOnChange=o[6]),l&32&&(s.disabled=o[5]),l&1&&(s.value=o[0]),l&16&&(s.placeholder=o[4]),l&128&&(s.quiet=o[7]),!t&&l&2&&(t=!0,s.inputRef=o[1],rt(()=>t=!1)),e.$set(s)},i(o){r||(b(e.$$.fragment,o),r=!0)},o(o){$(e.$$.fragment,o),r=!1},d(o){B(e,o)}}}function hue(n){let e,t;return e=new Cc({props:{label:n[2],labelPosition:n[3],$$slots:{default:[due]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(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||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function mue(n,e,t){let{value:r=null}=e,{label:i=null}=e,{labelPosition:a="above"}=e,{placeholder:o=null}=e,{disabled:l=!1}=e,{updateOnChange:s=!0}=e,{quiet:u=!1}=e,{inputRef:c}=e;const f=jn(),h=E=>{t(0,r=E.detail),f("change",E.detail)};function m(E){c=E,t(1,c)}function _(E){Bn.call(this,n,E)}function y(E){Bn.call(this,n,E)}function w(E){Bn.call(this,n,E)}function A(E){Bn.call(this,n,E)}return n.$$set=E=>{"value"in E&&t(0,r=E.value),"label"in E&&t(2,i=E.label),"labelPosition"in E&&t(3,a=E.labelPosition),"placeholder"in E&&t(4,o=E.placeholder),"disabled"in E&&t(5,l=E.disabled),"updateOnChange"in E&&t(6,s=E.updateOnChange),"quiet"in E&&t(7,u=E.quiet),"inputRef"in E&&t(1,c=E.inputRef)},[r,c,i,a,o,l,s,u,h,m,_,y,w,A]}class v5 extends Re{constructor(e){super(),Ve(this,e,mue,hue,Oe,{value:0,label:2,labelPosition:3,placeholder:4,disabled:5,updateOnChange:6,quiet:7,inputRef:1})}}function gue(n){let e,t,r,i,a,o,l,s,u,c;return{c(){e=J("nav"),t=J("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=U(),i=J("span"),a=oe("Page "),o=oe(n[0]),l=U(),s=J("div"),s.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>',D(t,"href","#"),D(t,"class","spectrum-ActionButton spectrum-ActionButton--sizeM spectrum-ActionButton--quiet spectrum-Pagination-prevButton svelte-1w0vi9g"),De(t,"is-disabled",!n[3]),D(i,"class","spectrum-Body--secondary spectrum-Pagination-counter svelte-1w0vi9g"),D(s,"href","#"),D(s,"class","spectrum-ActionButton spectrum-ActionButton--sizeM spectrum-ActionButton--quiet spectrum-Pagination-nextButton svelte-1w0vi9g"),De(s,"is-disabled",!n[4]),D(e,"class","spectrum-Pagination spectrum-Pagination--explicit")},m(f,h){S(f,e,h),j(e,t),j(e,r),j(e,i),j(i,a),j(i,o),j(e,l),j(e,s),u||(c=[At(t,"click",function(){An(n[3]?n[1]:null)&&(n[3]?n[1]:null).apply(this,arguments)}),At(s,"click",function(){An(n[4]?n[2]:null)&&(n[4]?n[2]:null).apply(this,arguments)})],u=!0)},p(f,[h]){n=f,h&8&&De(t,"is-disabled",!n[3]),h&1&&_t(o,n[0]),h&16&&De(s,"is-disabled",!n[4])},i:vt,o:vt,d(f){f&&C(e),u=!1,Ni(c)}}}function vue(n,e,t){let{page:r}=e,{goToPrevPage:i}=e,{goToNextPage:a}=e,{hasPrevPage:o=!0}=e,{hasNextPage:l=!0}=e;return n.$$set=s=>{"page"in s&&t(0,r=s.page),"goToPrevPage"in s&&t(1,i=s.goToPrevPage),"goToNextPage"in s&&t(2,a=s.goToNextPage),"hasPrevPage"in s&&t(3,o=s.hasPrevPage),"hasNextPage"in s&&t(4,l=s.hasNextPage)},[r,i,a,o,l]}class p_ extends Re{constructor(e){super(),Ve(this,e,vue,gue,Oe,{page:0,goToPrevPage:1,goToNextPage:2,hasPrevPage:3,hasNextPage:4})}}function qL(n,e,t){const r=n.slice();return r[18]=e[t],r}function WL(n,e,t){const r=n.slice();return r[21]=e[t],r}function GL(n){let e,t,r,i,a,o,l,s,u,c,f,h,m,_,y=n[7],w=[];for(let E=0;E<y.length;E+=1)w[E]=XL(qL(n,y,E));const A=E=>$(w[E],1,1,()=>{w[E]=null});return l=new En({props:{updateOnChange:!1,quiet:!0,placeholder:"Hex, RGB, HSL...",value:n[6]}}),l.$on("change",n[12]),u=new dn({props:{size:"S",name:"Close",hoverable:!0}}),u.$on("click",n[13]),{c(){e=J("div");for(let E=0;E<w.length;E+=1)w[E].c();t=U(),r=J("div"),i=J("div"),i.textContent="Custom",a=U(),o=J("div"),O(l.$$.fragment),s=U(),O(u.$$.fragment),D(i,"class","heading svelte-bfns6y"),D(o,"class","custom svelte-bfns6y"),D(r,"class","category category--custom svelte-bfns6y"),D(e,"class","spectrum-Popover spectrum-Popover--bottom spectrum-Picker-popover is-open svelte-bfns6y"),De(e,"spectrum-Popover--align-right",n[3])},m(E,T){S(E,e,T);for(let I=0;I<w.length;I+=1)w[I].m(e,null);j(e,t),j(e,r),j(r,i),j(r,a),j(r,o),H(l,o,null),j(o,s),H(u,o,null),h=!0,m||(_=Ol(c=pp.call(null,e,n[14])),m=!0)},p(E,T){if(T&933){y=E[7];let P;for(P=0;P<y.length;P+=1){const x=qL(E,y,P);w[P]?(w[P].p(x,T),b(w[P],1)):(w[P]=XL(x),w[P].c(),b(w[P],1),w[P].m(e,t))}for(ze(),P=y.length;P<w.length;P+=1)A(P);Ae()}const I={};T&64&&(I.value=E[6]),l.$set(I),c&&An(c.update)&&T&16&&c.update.call(null,E[14]),T&8&&De(e,"spectrum-Popover--align-right",E[3])},i(E){if(!h){for(let T=0;T<y.length;T+=1)b(w[T]);b(l.$$.fragment,E),b(u.$$.fragment,E),Po(()=>{f||(f=w0(e,k0,{y:-20,duration:200},!0)),f.run(1)}),h=!0}},o(E){w=w.filter(Boolean);for(let T=0;T<w.length;T+=1)$(w[T]);$(l.$$.fragment,E),$(u.$$.fragment,E),f||(f=w0(e,k0,{y:-20,duration:200},!1)),f.run(0),h=!1},d(E){E&&C(e),Dn(w,E),B(l),B(u),E&&f&&f.end(),m=!1,_()}}}function YL(n){let e,t;return e=new dn({props:{name:"Checkmark",size:"S"}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function KL(n){let e,t,r,i,a,o,l=n[0]===`var(--spectrum-global-color-${n[21]})`&&YL();function s(){return n[11](n[21])}return{c(){e=J("div"),t=J("div"),l&&l.c(),D(t,"class",r="fill "+(n[2]||"")+" svelte-bfns6y"),yn(t,"background","var(--spectrum-global-color-"+n[21]+")"),yn(t,"color",n[5]),D(e,"class","color svelte-bfns6y"),D(e,"title",n[9](n[21]))},m(u,c){S(u,e,c),j(e,t),l&&l.m(t,null),i=!0,a||(o=At(e,"click",s),a=!0)},p(u,c){n=u,n[0]===`var(--spectrum-global-color-${n[21]})`?l?c&1&&b(l,1):(l=YL(),l.c(),b(l,1),l.m(t,null)):l&&(ze(),$(l,1,1,()=>{l=null}),Ae()),(!i||c&4&&r!==(r="fill "+(n[2]||"")+" svelte-bfns6y"))&&D(t,"class",r),(!i||c&32)&&yn(t,"color",n[5])},i(u){i||(b(l),i=!0)},o(u){$(l),i=!1},d(u){u&&C(e),l&&l.d(),a=!1,o()}}}function XL(n){let e,t,r=n[18].label+"",i,a,o,l,s=n[18].colors,u=[];for(let f=0;f<s.length;f+=1)u[f]=KL(WL(n,s,f));const c=f=>$(u[f],1,1,()=>{u[f]=null});return{c(){e=J("div"),t=J("div"),i=oe(r),a=U(),o=J("div");for(let f=0;f<u.length;f+=1)u[f].c();D(t,"class","heading svelte-bfns6y"),D(o,"class","colors svelte-bfns6y"),D(e,"class","category")},m(f,h){S(f,e,h),j(e,t),j(t,i),j(e,a),j(e,o);for(let m=0;m<u.length;m+=1)u[m].m(o,null);l=!0},p(f,h){if(h&933){s=f[18].colors;let m;for(m=0;m<s.length;m+=1){const _=WL(f,s,m);u[m]?(u[m].p(_,h),b(u[m],1)):(u[m]=KL(_),u[m].c(),b(u[m],1),u[m].m(o,null))}for(ze(),m=s.length;m<u.length;m+=1)c(m);Ae()}},i(f){if(!l){for(let h=0;h<s.length;h+=1)b(u[h]);l=!0}},o(f){u=u.filter(Boolean);for(let h=0;h<u.length;h+=1)$(u[h]);l=!1},d(f){f&&C(e),Dn(u,f)}}}function _ue(n){let e,t,r,i,a,o,l,s,u,c,f=n[4]&&GL(n);return{c(){e=J("div"),t=J("div"),r=J("div"),l=U(),f&&f.c(),D(r,"class",i="fill "+(n[2]||"")+" svelte-bfns6y"),D(r,"style",a=n[0]?`background: ${n[0]};`:""),De(r,"placeholder",!n[0]),D(t,"class",o="preview size--"+(n[1]||"M")+" svelte-bfns6y"),D(e,"class","container svelte-bfns6y")},m(h,m){S(h,e,m),j(e,t),j(t,r),j(e,l),f&&f.m(e,null),s=!0,u||(c=At(t,"click",n[10]),u=!0)},p(h,[m]){(!s||m&4&&i!==(i="fill "+(h[2]||"")+" svelte-bfns6y"))&&D(r,"class",i),(!s||m&1&&a!==(a=h[0]?`background: ${h[0]};`:""))&&D(r,"style",a),m&5&&De(r,"placeholder",!h[0]),(!s||m&2&&o!==(o="preview size--"+(h[1]||"M")+" svelte-bfns6y"))&&D(t,"class",o),h[4]?f?(f.p(h,m),m&16&&b(f,1)):(f=GL(h),f.c(),b(f,1),f.m(e,null)):f&&(ze(),$(f,1,1,()=>{f=null}),Ae())},i(h){s||(b(f),s=!0)},o(h){$(f),s=!1},d(h){h&&C(e),f&&f.d(),u=!1,c()}}}function bue(n,e,t){let r,i,{value:a}=e,{size:o="M"}=e,{spectrumTheme:l}=e,{alignRight:s=!1}=e,u=!1;const c=jn(),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"]}],h=P=>{c("change",P),t(4,u=!1)},m=P=>{if(!P)return P;let x=!1;const F=P.substring(28,P.length-1);for(let G of f)if(x=G.colors.includes(F),x)break;return x?null:P},_=P=>Wee(P.split("-").join(" ")),y=P=>P!=null&&P.includes("gray")?/^.*(gray-(50|75|100|200|300|400|500))\)$/.test(P)?"var(--spectrum-global-color-gray-900)":"var(--spectrum-global-color-gray-50)":P!=null&&P.includes("static-black")?"var(--spectrum-global-color-static-gray-50)":"var(--spectrum-global-color-static-gray-900)",w=()=>t(4,u=!0),A=P=>{h(`var(--spectrum-global-color-${P})`)};function E(P){Bn.call(this,n,P)}const T=()=>h(null),I=()=>t(4,u=!1);return n.$$set=P=>{"value"in P&&t(0,a=P.value),"size"in P&&t(1,o=P.size),"spectrumTheme"in P&&t(2,l=P.spectrumTheme),"alignRight"in P&&t(3,s=P.alignRight)},n.$$.update=()=>{n.$$.dirty&1&&t(6,r=m(a)),n.$$.dirty&1&&t(5,i=y(a))},[a,o,l,s,u,i,r,f,h,_,w,A,E,T,I]}class _5 extends Re{constructor(e){super(),Ve(this,e,bue,_ue,Oe,{value:0,size:1,spectrumTheme:2,alignRight:3})}}function JL(n,e,t){const r=n.slice();return r[10]=e[t],r}function ZL(n,e,t){const r=n.slice();return r[10]=e[t],r}function QL(n){let e,t,r,i,a,o,l=n[4],s=[];for(let c=0;c<l.length;c+=1)s[c]=tE(JL(n,l,c));const u=c=>$(s[c],1,1,()=>{s[c]=null});return{c(){e=J("div");for(let c=0;c<s.length;c+=1)s[c].c();D(e,"class","spectrum-Popover spectrum-Popover--bottom spectrum-Picker-popover is-open svelte-r1sbsa"),De(e,"spectrum-Popover--align-right",n[2])},m(c,f){S(c,e,f);for(let h=0;h<s.length;h+=1)s[h].m(e,null);i=!0,a||(o=Ol(t=pp.call(null,e,n[8])),a=!0)},p(c,f){if(f&48){l=c[4];let h;for(h=0;h<l.length;h+=1){const m=JL(c,l,h);s[h]?(s[h].p(m,f),b(s[h],1)):(s[h]=tE(m),s[h].c(),b(s[h],1),s[h].m(e,null))}for(ze(),h=l.length;h<s.length;h+=1)u(h);Ae()}t&&An(t.update)&&f&8&&t.update.call(null,c[8]),f&4&&De(e,"spectrum-Popover--align-right",c[2])},i(c){if(!i){for(let f=0;f<l.length;f+=1)b(s[f]);Po(()=>{r||(r=w0(e,k0,{y:-20,duration:200},!0)),r.run(1)}),i=!0}},o(c){s=s.filter(Boolean);for(let f=0;f<s.length;f+=1)$(s[f]);r||(r=w0(e,k0,{y:-20,duration:200},!1)),r.run(0),i=!1},d(c){c&&C(e),Dn(s,c),c&&r&&r.end(),a=!1,o()}}}function eE(n){let e,t,r,i,a,o;t=new dn({props:{name:n[10]}});function l(){return n[7](n[10])}return{c(){e=J("div"),O(t.$$.fragment),r=U()},m(s,u){S(s,e,u),H(t,e,null),j(e,r),i=!0,a||(o=At(e,"click",l),a=!0)},p(s,u){n=s},i(s){i||(b(t.$$.fragment,s),i=!0)},o(s){$(t.$$.fragment,s),i=!1},d(s){s&&C(e),B(t),a=!1,o()}}}function tE(n){let e,t,r=n[10].label+"",i,a,o,l,s,u=n[10].icons,c=[];for(let h=0;h<u.length;h+=1)c[h]=eE(ZL(n,u,h));const f=h=>$(c[h],1,1,()=>{c[h]=null});return{c(){e=J("div"),t=J("div"),i=oe(r),a=U(),o=J("div");for(let h=0;h<c.length;h+=1)c[h].c();l=U(),D(t,"class","heading svelte-r1sbsa"),D(o,"class","icons svelte-r1sbsa"),D(e,"class","category")},m(h,m){S(h,e,m),j(e,t),j(t,i),j(e,a),j(e,o);for(let _=0;_<c.length;_+=1)c[_].m(o,null);j(e,l),s=!0},p(h,m){if(m&48){u=h[10].icons;let _;for(_=0;_<u.length;_+=1){const y=ZL(h,u,_);c[_]?(c[_].p(y,m),b(c[_],1)):(c[_]=eE(y),c[_].c(),b(c[_],1),c[_].m(o,null))}for(ze(),_=u.length;_<c.length;_+=1)f(_);Ae()}},i(h){if(!s){for(let m=0;m<u.length;m+=1)b(c[m]);s=!0}},o(h){c=c.filter(Boolean);for(let m=0;m<c.length;m+=1)$(c[m]);s=!1},d(h){h&&C(e),Dn(c,h)}}}function yue(n){let e,t,r,i,a,o,l,s,u,c;i=new dn({props:{name:n[0]||"UserGroup"}});let f=n[3]&&QL(n);return{c(){e=J("div"),t=J("div"),r=J("div"),O(i.$$.fragment),l=U(),f&&f.c(),D(r,"class","fill svelte-r1sbsa"),D(r,"style",a=n[0]?`background: ${n[0]};`:""),De(r,"placeholder",!n[0]),D(t,"class",o="preview size--"+(n[1]||"M")+" svelte-r1sbsa"),D(e,"class","container svelte-r1sbsa")},m(h,m){S(h,e,m),j(e,t),j(t,r),H(i,r,null),j(e,l),f&&f.m(e,null),s=!0,u||(c=At(t,"click",n[6]),u=!0)},p(h,[m]){const _={};m&1&&(_.name=h[0]||"UserGroup"),i.$set(_),(!s||m&1&&a!==(a=h[0]?`background: ${h[0]};`:""))&&D(r,"style",a),m&1&&De(r,"placeholder",!h[0]),(!s||m&2&&o!==(o="preview size--"+(h[1]||"M")+" svelte-r1sbsa"))&&D(t,"class",o),h[3]?f?(f.p(h,m),m&8&&b(f,1)):(f=QL(h),f.c(),b(f,1),f.m(e,null)):f&&(ze(),$(f,1,1,()=>{f=null}),Ae())},i(h){s||(b(i.$$.fragment,h),b(f),s=!0)},o(h){$(i.$$.fragment,h),$(f),s=!1},d(h){h&&C(e),B(i),f&&f.d(),u=!1,c()}}}function $ue(n,e,t){let{value:r}=e,{size:i="M"}=e,{alignRight:a=!1}=e,o=!1;const l=jn(),s=[{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=m=>{l("change",m),t(3,o=!1)},c=()=>t(3,o=!0),f=m=>{u(m)},h=()=>t(3,o=!1);return n.$$set=m=>{"value"in m&&t(0,r=m.value),"size"in m&&t(1,i=m.size),"alignRight"in m&&t(2,a=m.alignRight)},[r,i,a,o,s,u,c,f,h]}class wue extends Re{constructor(e){super(),Ve(this,e,$ue,yue,Oe,{value:0,size:1,alignRight:2})}}function nE(n,e,t){const r=n.slice();return r[7]=e[t],r}function rE(n){let e,t=n[7]+"",r;return{c(){e=J("div"),r=oe(t),D(e,"class","spectrum-InLineAlert-content")},m(i,a){S(i,e,a),j(e,r)},p(i,a){a&16&&t!==(t=i[7]+"")&&_t(r,t)},d(i){i&&C(e)}}}function iE(n){let e,t,r;return t=new $n({props:{secondary:!0,$$slots:{default:[kue]},$$scope:{ctx:n}}}),t.$on("click",function(){An(n[2])&&n[2].apply(this,arguments)}),{c(){e=J("div"),O(t.$$.fragment),D(e,"class","spectrum-InLineAlert-footer button svelte-22oo0d")},m(i,a){S(i,e,a),H(t,e,null),r=!0},p(i,a){n=i;const o={};a&1032&&(o.$$scope={dirty:a,ctx:n}),t.$set(o)},i(i){r||(b(t.$$.fragment,i),r=!0)},o(i){$(t.$$.fragment,i),r=!1},d(i){i&&C(e),B(t)}}}function kue(n){let e=(n[3]||"OK")+"",t;return{c(){t=oe(e)},m(r,i){S(r,t,i)},p(r,i){i&8&&e!==(e=(r[3]||"OK")+"")&&_t(t,e)},d(r){r&&C(t)}}}function zue(n){let e,t,r,i,a,o,l,s,u,c,f,h=n[4],m=[];for(let y=0;y<h.length;y+=1)m[y]=rE(nE(n,h,y));let _=n[2]&&iE(n);return{c(){e=J("div"),t=lt("svg"),r=lt("use"),a=U(),o=J("div"),l=oe(n[1]),s=U();for(let y=0;y<m.length;y+=1)m[y].c();u=U(),_&&_.c(),Wr(r,"xlink:href",i="#spectrum-icon-18-"+n[5]),D(t,"class","spectrum-Icon spectrum-Icon--sizeM spectrum-InLineAlert-icon"),D(t,"focusable","false"),D(t,"aria-hidden","true"),D(o,"class","spectrum-InLineAlert-header"),D(e,"class",c="spectrum-InLineAlert spectrum-InLineAlert--"+n[0]+" svelte-22oo0d")},m(y,w){S(y,e,w),j(e,t),j(t,r),j(e,a),j(e,o),j(o,l),j(e,s);for(let A=0;A<m.length;A+=1)m[A].m(e,null);j(e,u),_&&_.m(e,null),f=!0},p(y,[w]){if((!f||w&32&&i!==(i="#spectrum-icon-18-"+y[5]))&&Wr(r,"xlink:href",i),(!f||w&2)&&_t(l,y[1]),w&16){h=y[4];let A;for(A=0;A<h.length;A+=1){const E=nE(y,h,A);m[A]?m[A].p(E,w):(m[A]=rE(E),m[A].c(),m[A].m(e,u))}for(;A<m.length;A+=1)m[A].d(1);m.length=h.length}y[2]?_?(_.p(y,w),w&4&&b(_,1)):(_=iE(y),_.c(),b(_,1),_.m(e,null)):_&&(ze(),$(_,1,1,()=>{_=null}),Ae()),(!f||w&1&&c!==(c="spectrum-InLineAlert spectrum-InLineAlert--"+y[0]+" svelte-22oo0d"))&&D(e,"class",c)},i(y){f||(b(_),f=!0)},o(y){$(_),f=!1},d(y){y&&C(e),Dn(m,y),_&&_.d()}}}function Aue(n){switch(n){case"error":case"negative":return"Alert";case"success":return"CheckmarkCircle";case"help":return"Help";default:return"Info"}}function Mue(n,e,t){let r,i,{type:a="info"}=e,{header:o=""}=e,{message:l=""}=e,{onConfirm:s=void 0}=e,{buttonText:u=""}=e;return n.$$set=c=>{"type"in c&&t(0,a=c.type),"header"in c&&t(1,o=c.header),"message"in c&&t(6,l=c.message),"onConfirm"in c&&t(2,s=c.onConfirm),"buttonText"in c&&t(3,u=c.buttonText)},n.$$.update=()=>{n.$$.dirty&1&&t(5,r=Aue(a)),n.$$.dirty&64&&t(4,i=l.split(`
|
|
245
|
+
`}}};const{getHelperList:Ise}=$k;function QW(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 Pse(n,e){function t(){return n.map(r=>r.startsWith("helper")?r:QW(r)).join(", ")}return e?n.length===0?e:`${e}, ${t()}`:n.length>1?`${t()}`:t()}function Vse(n){const e=[];let t=null,r=null,i=0;function a(l){const s=["]"];for(;s.indexOf(l.substring(0,1))!==-1;)l=l.substring(1,l.length);l.length>0&&e.push(l.trim())}const o=["[","'",'"'];for(let l=0;l<n.length;l++){const s=n[l];o.indexOf(s)!==-1&&t==null?(t=l,r=s==="["?"]":s):s===r&&t!=null&&n[l+1]!=="."?(a(n.substring(t,l+1)),t=null,r=null,i=l+1):t==null&&s===" "&&(a(n.substring(i,l)),i=l)}return n.startsWith("[")&&e.length!==0||i===n.length-1||a(n.substring(i,n.length)),e}var Rse={convertHBSBlock:(n,e)=>{const t=n[2]==="{"?3:2,r=function(o){let l=[];for(;o.length;){const s=o.lastIndexOf("("),u=o.indexOf(")");let c;if(s===-1||u===-1)c=o.trim(),o="";else{const f=o.substring(s,u+1);c=f.substring(1,f.length-1).trim(),o=o.slice(0,s)+o.slice(s+f.length+1,o.length)}l.push(c)}return l}(n=n.substring(t,n.length-t).trim());let i=null;const a=Ise();for(let o of r){const l=Vse(o);if(i||l.length>1){const s=l.splice(0,1);a[s]&&(i=`helpers.${s}(${Pse(l,i)})`)}else i=QW(l[0])}return{variable:`var${e}`,value:i}}},h2=sr(function(n,e){const{registerAll:t,registerMinimum:r}=$k,{atob:i,btoa:a}=Gg,{FIND_HBS_REGEX:o,FIND_ANY_HBS_REGEX:l,findDoubleHbsInstances:s}=Gg,{convertHBSBlock:u}=Rse,c=Ug.create();t(c);const f=Ug.create();r(f);const h={noHelpers:!1,cacheTemplates:!1,noEscaping:!1,escapeNewlines:!1,noFinalise:!1};function m(w){try{JSON.stringify(w)}catch{throw"Unable to process inputs to JSON, cannot recurse"}}let _={};function y(w,A){A={...h,...A};const E=`${w}-${JSON.stringify(A)}`;if(A.cacheTemplates&&_[E])return _[E];w=Hse(w,A),A.noEscaping&&(w=e.disableEscaping(w));const T=(A.noHelpers?f:c).compile(w,{strict:!1});return _[E]=T,T}n.exports.processObject=async(w,A,E)=>{m(w);for(let T of Object.keys(w||{}))if(w[T]!=null){let I=w[T];typeof I=="string"?w[T]=await n.exports.processString(w[T],A,E):typeof I=="object"&&(w[T]=await n.exports.processObject(w[T],A,E))}return w},n.exports.processString=async(w,A,E)=>n.exports.processStringSync(w,A,E),n.exports.processObjectSync=(w,A,E)=>{m(w);for(let T of Object.keys(w||{})){let I=w[T];typeof I=="string"?w[T]=n.exports.processStringSync(w[T],A,E):typeof I=="object"&&(w[T]=n.exports.processObjectSync(w[T],A,E))}return w},n.exports.processStringSync=(w,A,E)=>{const T=w;if(typeof w!="string")throw"Cannot process non-string types.";try{const I=y(w,E),P=1e3*Math.floor(Date.now()/1e3);return Bse(I({now:new Date(P).toISOString(),__opts:E,...A}))}catch{return T}},n.exports.disableEscaping=w=>{const A=s(w);if(A==null)return w;const E=[...new Set(A)];for(let T of E){const I=new RegExp(`${T}(?!})`,"g");w=w.replace(I,`{${T}}`)}return w},n.exports.makePropSafe=w=>`[${w}]`.replace("[[","[").replace("]]","]"),n.exports.isValid=(w,A)=>{const E=["string","number","object","array","cannot read property","undefined","json at position 0"],T=["expecting '"],I={};try{return y(w,{...A,noFinalise:!0})(I),!0}catch(P){const x=P&&P.message?P.message:P;if(!x)return!1;const F=T.some(G=>x.toLowerCase().includes(G));return E.some(G=>x.toLowerCase().includes(G))&&!F}},n.exports.getManifest=()=>Ose,n.exports.isJSBinding=w=>n.exports.decodeJSBinding(w)!=null,n.exports.encodeJSBinding=w=>`{{ js "${a(w)}" }}`,n.exports.decodeJSBinding=w=>{if(!w||typeof w!="string"||!w.trim().startsWith("{{ js "))return null;const A=new RegExp(/{{ js "(.*)" }}/),E=w.match(A);return!E||E.length<2?null:i(E[1])},n.exports.doesContainStrings=(w,A)=>{let E=new RegExp(o),T=w.match(E);if(T==null)return!1;for(let I of T){let P=I;e.isJSBinding(I)&&(P=e.decodeJSBinding(I));let x=!0;for(let F of A)P.includes(F)||(x=!1);if(x)return!0}return!1},n.exports.findHBSBlocks=w=>{if(!w||typeof w!="string")return[];let A=new RegExp(l),E=w.match(A);return E==null?[]:E},n.exports.doesContainString=(w,A)=>e.doesContainStrings(w,[A]),n.exports.convertToJS=w=>{const A=e.findHBSBlocks(w);let E="return `",T=null;const I={};A.length===0&&(E+=w);let P=1;for(let F of A){let G=w;T&&(G=G.split(T)[1]),G=G.split(F)[0],T=F;const{variable:W,value:ee}=u(F,P++);I[W]=ee,E+=`${G.split()}\${${W}}`}let x="";for(let[F,G]of Object.entries(I))x+=`const ${F} = ${G};
|
|
246
|
+
`;return E+="`;",`${x}${E}`}});const zL=h2.isValid,$1=h2.makePropSafe,Nse=h2.getManifest,w7=h2.isJSBinding,Sh=h2.encodeJSBinding,Xh=h2.decodeJSBinding,d2=h2.processStringSync;h2.processObjectSync;h2.processString;h2.processObject;h2.doesContainStrings;h2.doesContainString;h2.disableEscaping;const eG=h2.findHBSBlocks,AL=h2.convertToJS;process&&!process.env.NO_JS&&KW((n,e)=>(e={...e,alert:void 0,setInterval:void 0,setTimeout:void 0},eS.createContext(e),eS.runInNewContext(n,e,{timeout:1e3})));function ML(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:[Fse]},$$scope:{ctx:o}}}}return i&&(t=new i(a(n)),t.$on("clickrelationship",n[9])),{c(){e=J("div"),t&&O(t.$$.fragment),yn(e,"--max-cell-width",n[1].width?"none":"200px"),D(e,"class","svelte-16j2cvj")},m(o,l){S(o,e,l),t&&H(t,e,null),r=!0},p(o,l){const s={};if(l&1&&(s.row=o[0]),l&2&&(s.schema=o[1]),l&16&&(s.value=o[4]),l&1024&&(s.$$scope={dirty:l,ctx:o}),i!==(i=o[3])){if(t){ze();const u=t;$(u.$$.fragment,1,0,()=>{B(u,1)}),Ae()}i?(t=new i(a(o)),t.$on("clickrelationship",o[9]),O(t.$$.fragment),b(t.$$.fragment,1),H(t,e,null)):t=null}else i&&t.$set(s);(!r||l&2)&&yn(e,"--max-cell-width",o[1].width?"none":"200px")},i(o){r||(t&&b(t.$$.fragment,o),r=!0)},o(o){t&&$(t.$$.fragment,o),r=!1},d(o){o&&C(e),t&&B(t)}}}function Fse(n){let e;const t=n[8].default,r=Xn(t,n,n[10],null);return{c(){r&&r.c()},m(i,a){r&&r.m(i,a),e=!0},p(i,a){r&&r.p&&(!e||a&1024)&&Zn(r,t,i,i[10],e?Jn(t,i[10],a,null):Qn(i[10]),null)},i(i){e||(b(r,i),e=!0)},o(i){$(r,i),e=!1},d(i){r&&r.d(i)}}}function xse(n){let e,t,r=n[3]&&(n[2]||n[4]!=null&&n[4]!=="")&&ML(n);return{c(){r&&r.c(),e=$t()},m(i,a){r&&r.m(i,a),S(i,e,a),t=!0},p(i,[a]){i[3]&&(i[2]||i[4]!=null&&i[4]!=="")?r?(r.p(i,a),a&28&&b(r,1)):(r=ML(i),r.c(),b(r,1),r.m(e.parentNode,e)):r&&(ze(),$(r,1,1,()=>{r=null}),Ae())},i(i){t||(b(r),t=!0)},o(i){$(r),t=!1},d(i){r&&r.d(i),i&&C(e)}}}function jse(n,e,t){let r,i,a,{$$slots:o={},$$scope:l}=e,{row:s}=e,{schema:u}=e,{value:c}=e,{customRenderers:f=[]}=e,h;const m={boolean:Lie,datetime:Hie,link:Pie,attachment:Gie,string:Fm,options:Fm,number:Fm,longform:Fm,array:Zie,internal:rq},_=A=>(A==null?void 0:A.type)==="datetime"&&(A==null?void 0:A.template)?"string":(A==null?void 0:A.type)||"string",y=(A,E)=>E?d2(E,{value:A}):A;function w(A){Bn.call(this,n,A)}return n.$$set=A=>{"row"in A&&t(0,s=A.row),"schema"in A&&t(1,u=A.schema),"value"in A&&t(5,c=A.value),"customRenderers"in A&&t(6,f=A.customRenderers),"$$scope"in A&&t(10,l=A.$$scope)},n.$$.update=()=>{var A,E;n.$$.dirty&2&&t(7,r=_(u)),n.$$.dirty&66&&t(2,i=f==null?void 0:f.find(T=>T.column===(u==null?void 0:u.name))),n.$$.dirty&132&&t(3,h=(E=(A=i==null?void 0:i.component)!=null?A:m[r])!=null?E:Fm),n.$$.dirty&2&&u!=null&&u.width,n.$$.dirty&34&&t(4,a=y(c,u.template))},[s,u,i,h,a,c,f,r,o,w,l]}class Use extends Re{constructor(e){super(),Ve(this,e,jse,xse,Oe,{row:0,schema:1,value:5,customRenderers:6})}}function CL(n){let e,t;return e=new Fu({props:{value:n[0]}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&1&&(a.value=r[0]),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function SL(n){let e,t;return e=new Br({props:{size:"S",$$slots:{default:[qse]},$$scope:{ctx:n}}}),e.$on("click",function(){An(n[1])&&n[1].apply(this,arguments)}),{c(){O(e.$$.fragment)},m(r,i){H(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||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function qse(n){let e;return{c(){e=oe("Edit")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function Wse(n){let e,t,r,i=n[2]&&CL(n),a=n[3]&&SL(n);return{c(){e=J("div"),i&&i.c(),t=U(),a&&a.c(),D(e,"class","svelte-1fa8hd3")},m(o,l){S(o,e,l),i&&i.m(e,null),j(e,t),a&&a.m(e,null),r=!0},p(o,[l]){o[2]?i?(i.p(o,l),l&4&&b(i,1)):(i=CL(o),i.c(),b(i,1),i.m(e,t)):i&&(ze(),$(i,1,1,()=>{i=null}),Ae()),o[3]?a?(a.p(o,l),l&8&&b(a,1)):(a=SL(o),a.c(),b(a,1),a.m(e,null)):a&&(ze(),$(a,1,1,()=>{a=null}),Ae())},i(o){r||(b(i),b(a),r=!0)},o(o){$(i),$(a),r=!1},d(o){o&&C(e),i&&i.d(),a&&a.d()}}}function Gse(n,e,t){let{selected:r}=e,{onEdit:i}=e,{allowSelectRows:a=!1}=e,{allowEditRows:o=!1}=e;return n.$$set=l=>{"selected"in l&&t(0,r=l.selected),"onEdit"in l&&t(1,i=l.onEdit),"allowSelectRows"in l&&t(2,a=l.allowSelectRows),"allowEditRows"in l&&t(3,o=l.allowEditRows)},[r,i,a,o]}class Yse extends Re{constructor(e){super(),Ve(this,e,Gse,Wse,Oe,{selected:0,onEdit:1,allowSelectRows:2,allowEditRows:3})}}const Kse=n=>({}),LL=n=>({});function EL(n,e,t){const r=n.slice();return r[57]=e[t],r[59]=t,r}function TL(n,e,t){const r=n.slice();return r[60]=e[t],r}function DL(n,e,t){const r=n.slice();return r[60]=e[t],r}function Xse(n){let e,t,r,i,a,o,l=n[16].length&&HL(n);const s=[tue,eue],u=[];function c(f,h){var m;return(m=f[21])!=null&&m.length?0:1}return r=c(n),i=u[r]=s[r](n),{c(){e=J("div"),l&&l.c(),t=U(),i.c(),D(e,"class","spectrum-Table svelte-12whv0s"),D(e,"style",a=`${n[22]}${n[20]}`)},m(f,h){S(f,e,h),l&&l.m(e,null),j(e,t),u[r].m(e,null),o=!0},p(f,h){f[16].length?l?(l.p(f,h),h[0]&65536&&b(l,1)):(l=HL(f),l.c(),b(l,1),l.m(e,t)):l&&(ze(),$(l,1,1,()=>{l=null}),Ae());let m=r;r=c(f),r===m?u[r].p(f,h):(ze(),$(u[m],1,1,()=>{u[m]=null}),Ae(),i=u[r],i?i.p(f,h):(i=u[r]=s[r](f),i.c()),b(i,1),i.m(e,null)),(!o||h[0]&5242880&&a!==(a=`${f[22]}${f[20]}`))&&D(e,"style",a)},i(f){o||(b(l),b(i),o=!0)},o(f){$(l),$(i),o=!1},d(f){f&&C(e),l&&l.d(),u[r].d()}}}function Jse(n){let e,t,r;return t=new hp({}),{c(){e=J("div"),O(t.$$.fragment),D(e,"class","loading svelte-12whv0s"),D(e,"style",n[22])},m(i,a){S(i,e,a),H(t,e,null),r=!0},p(i,a){(!r||a[0]&4194304)&&D(e,"style",i[22])},i(i){r||(b(t.$$.fragment,i),r=!0)},o(i){$(t.$$.fragment,i),r=!1},d(i){i&&C(e),B(t)}}}function HL(n){let e,t,r,i=n[15]&&BL(n),a=n[16],o=[];for(let l=0;l<a.length;l+=1)o[l]=VL(DL(n,a,l));return{c(){e=J("div"),i&&i.c(),t=U();for(let l=0;l<o.length;l+=1)o[l].c();D(e,"class","spectrum-Table-head svelte-12whv0s")},m(l,s){S(l,e,s),i&&i.m(e,null),j(e,t);for(let u=0;u<o.length;u+=1)o[u].m(e,null);r=!0},p(l,s){if(l[15]?i?(i.p(l,s),s[0]&32768&&b(i,1)):(i=BL(l),i.c(),b(i,1),i.m(e,t)):i&&(ze(),$(i,1,1,()=>{i=null}),Ae()),s[0]&117512737){a=l[16];let u;for(u=0;u<a.length;u+=1){const c=DL(l,a,u);o[u]?o[u].p(c,s):(o[u]=VL(c),o[u].c(),o[u].m(e,null))}for(;u<o.length;u+=1)o[u].d(1);o.length=a.length}},i(l){r||(b(i),r=!0)},o(l){$(i),r=!1},d(l){l&&C(e),i&&i.d(),Dn(o,l)}}}function BL(n){let e,t,r,i;const a=[Qse,Zse],o=[];function l(s,u){return s[3]?0:1}return t=l(n),r=o[t]=a[t](n),{c(){e=J("div"),r.c(),D(e,"class","spectrum-Table-headCell spectrum-Table-headCell--divider spectrum-Table-headCell--edit svelte-12whv0s"),De(e,"noBorderHeader",!n[9])},m(s,u){S(s,e,u),o[t].m(e,null),i=!0},p(s,u){let c=t;t=l(s),t===c?o[t].p(s,u):(ze(),$(o[c],1,1,()=>{o[c]=null}),Ae(),r=o[t],r?r.p(s,u):(r=o[t]=a[t](s),r.c()),b(r,1),r.m(e,null)),u[0]&512&&De(e,"noBorderHeader",!s[9])},i(s){i||(b(r),i=!0)},o(s){$(r),i=!1},d(s){s&&C(e),o[t].d()}}}function Zse(n){let e;return{c(){e=oe("Edit")},m(t,r){S(t,e,r)},p:vt,i:vt,o:vt,d(t){t&&C(e)}}}function Qse(n){let e,t,r;function i(o){n[40](o)}let a={};return n[18]!==void 0&&(a.value=n[18]),e=new Fu({props:a}),He.push(()=>nt(e,"value",i)),e.$on("change",n[29]),{c(){O(e.$$.fragment)},m(o,l){H(e,o,l),r=!0},p(o,l){const s={};!t&&l[0]&262144&&(t=!0,s.value=o[18],rt(()=>t=!1)),e.$set(s)},i(o){r||(b(e.$$.fragment,o),r=!0)},o(o){$(e.$$.fragment,o),r=!1},d(o){B(e,o)}}}function OL(n){let e,t;return{c(){e=lt("svg"),t=lt("use"),Wr(t,"xlink:href","#spectrum-icon-18-MagicWand"),D(e,"class","spectrum-Icon spectrum-Table-autoIcon svelte-12whv0s"),D(e,"focusable","false")},m(r,i){S(r,e,i),j(e,t)},d(r){r&&C(e)}}}function IL(n){let e,t;return{c(){e=lt("svg"),t=lt("use"),Wr(t,"xlink:href","#spectrum-css-icon-Arrow100"),D(e,"class","spectrum-Icon spectrum-UIIcon-ArrowDown100 spectrum-Table-sortedIcon svelte-12whv0s"),D(e,"focusable","false"),D(e,"aria-hidden","true")},m(r,i){S(r,e,i),j(e,t)},d(r){r&&C(e)}}}function PL(n){let e,t,r,i;function a(...o){return n[41](n[60],...o)}return{c(){e=lt("svg"),t=lt("use"),Wr(t,"xlink:href","#spectrum-icon-18-Edit"),D(e,"class","spectrum-Icon spectrum-Table-editIcon svelte-12whv0s"),D(e,"focusable","false")},m(o,l){S(o,e,l),j(e,t),r||(i=At(e,"click",a),r=!0)},p(o,l){n=o},d(o){o&&C(e),r=!1,i()}}}function VL(n){var y,w;let e,t,r=n[25](n[0][n[60]])+"",i,a,o,l,s,u,c,f=((y=n[0][n[60]])==null?void 0:y.autocolumn)&&OL(),h=n[11]===n[60]&&IL(),m=n[5]&&((w=n[0][n[60]])==null?void 0:w.editable)!==!1&&PL(n);function _(){return n[42](n[60])}return{c(){e=J("div"),t=J("div"),i=oe(r),a=U(),f&&f.c(),o=U(),h&&h.c(),l=U(),m&&m.c(),s=U(),D(t,"class","title svelte-12whv0s"),D(e,"class","spectrum-Table-headCell svelte-12whv0s"),De(e,"noBorderHeader",!n[9]),De(e,"spectrum-Table-headCell--alignCenter",n[0][n[60]].align==="Center"),De(e,"spectrum-Table-headCell--alignRight",n[0][n[60]].align==="Right"),De(e,"is-sortable",n[0][n[60]].sortable!==!1),De(e,"is-sorted-desc",n[11]===n[60]&&n[12]==="Descending"),De(e,"is-sorted-asc",n[11]===n[60]&&n[12]==="Ascending")},m(A,E){S(A,e,E),j(e,t),j(t,i),j(e,a),f&&f.m(e,null),j(e,o),h&&h.m(e,null),j(e,l),m&&m.m(e,null),j(e,s),u||(c=At(e,"click",_),u=!0)},p(A,E){var T,I;n=A,E[0]&65537&&r!==(r=n[25](n[0][n[60]])+"")&&_t(i,r),(T=n[0][n[60]])!=null&&T.autocolumn?f||(f=OL(),f.c(),f.m(e,o)):f&&(f.d(1),f=null),n[11]===n[60]?h||(h=IL(),h.c(),h.m(e,l)):h&&(h.d(1),h=null),n[5]&&((I=n[0][n[60]])==null?void 0:I.editable)!==!1?m?m.p(n,E):(m=PL(n),m.c(),m.m(e,s)):m&&(m.d(1),m=null),E[0]&512&&De(e,"noBorderHeader",!n[9]),E[0]&65537&&De(e,"spectrum-Table-headCell--alignCenter",n[0][n[60]].align==="Center"),E[0]&65537&&De(e,"spectrum-Table-headCell--alignRight",n[0][n[60]].align==="Right"),E[0]&65537&&De(e,"is-sortable",n[0][n[60]].sortable!==!1),E[0]&71680&&De(e,"is-sorted-desc",n[11]===n[60]&&n[12]==="Descending"),E[0]&71680&&De(e,"is-sorted-asc",n[11]===n[60]&&n[12]==="Ascending")},d(A){A&&C(e),f&&f.d(),h&&h.d(),m&&m.d(),u=!1,c()}}}function eue(n){let e,t,r,i;const a=[rue,nue],o=[];function l(s,u){return s[8]?0:1}return t=l(n),r=o[t]=a[t](n),{c(){var s;e=J("div"),r.c(),D(e,"class","placeholder svelte-12whv0s"),De(e,"placeholder--custom",n[8]),De(e,"placeholder--no-fields",!((s=n[16])!=null&&s.length))},m(s,u){S(s,e,u),o[t].m(e,null),i=!0},p(s,u){var f;let c=t;t=l(s),t===c?o[t].p(s,u):(ze(),$(o[c],1,1,()=>{o[c]=null}),Ae(),r=o[t],r?r.p(s,u):(r=o[t]=a[t](s),r.c()),b(r,1),r.m(e,null)),u[0]&256&&De(e,"placeholder--custom",s[8]),u[0]&65536&&De(e,"placeholder--no-fields",!((f=s[16])!=null&&f.length))},i(s){i||(b(r),i=!0)},o(s){$(r),i=!1},d(s){s&&C(e),o[t].d()}}}function tue(n){let e,t,r=n[21],i=[];for(let o=0;o<r.length;o+=1)i[o]=FL(EL(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=$t()},m(o,l){for(let s=0;s<i.length;s+=1)i[s].m(o,l);S(o,e,l),t=!0},p(o,l){if(l[0]&413762139|l[1]&262144){r=o[21];let s;for(s=0;s<r.length;s+=1){const u=EL(o,r,s);i[s]?(i[s].p(u,l),b(i[s],1)):(i[s]=FL(u),i[s].c(),b(i[s],1),i[s].m(e.parentNode,e))}for(ze(),s=r.length;s<i.length;s+=1)a(s);Ae()}},i(o){if(!t){for(let l=0;l<r.length;l+=1)b(i[l]);t=!0}},o(o){i=i.filter(Boolean);for(let l=0;l<i.length;l+=1)$(i[l]);t=!1},d(o){Dn(i,o),o&&C(e)}}}function nue(n){let e,t,r,i,a,o;return{c(){e=J("div"),t=lt("svg"),r=lt("use"),i=U(),a=J("div"),o=oe(n[10]),Wr(r,"xlink:href","#spectrum-icon-18-Table"),D(t,"class","spectrum-Icon spectrum-Icon--sizeXXL"),D(t,"focusable","false"),D(a,"class","svelte-12whv0s"),D(e,"class","placeholder-content svelte-12whv0s")},m(l,s){S(l,e,s),j(e,t),j(t,r),j(e,i),j(e,a),j(a,o)},p(l,s){s[0]&1024&&_t(o,l[10])},i:vt,o:vt,d(l){l&&C(e)}}}function rue(n){let e;const t=n[39].placeholder,r=Xn(t,n,n[49],LL);return{c(){r&&r.c()},m(i,a){r&&r.m(i,a),e=!0},p(i,a){r&&r.p&&(!e||a[1]&262144)&&Zn(r,t,i,i[49],e?Jn(t,i[49],a,Kse):Qn(i[49]),LL)},i(i){e||(b(r,i),e=!0)},o(i){$(r,i),e=!1},d(i){r&&r.d(i)}}}function RL(n){let e,t,r,i,a;function o(...u){return n[43](n[57],...u)}function l(...u){return n[44](n[57],...u)}t=new Yse({props:{data:n[57],selected:n[1].findIndex(o)!==-1,onEdit:l,allowSelectRows:n[3],allowEditRows:n[4]}});function s(...u){return n[45](n[57],...u)}return{c(){e=J("div"),O(t.$$.fragment),D(e,"class","spectrum-Table-cell spectrum-Table-cell--divider spectrum-Table-cell--edit svelte-12whv0s"),De(e,"noBorderCheckbox",!n[9])},m(u,c){S(u,e,c),H(t,e,null),r=!0,i||(a=At(e,"click",s),i=!0)},p(u,c){n=u;const f={};c[0]&2097152&&(f.data=n[57]),c[0]&2097154&&(f.selected=n[1].findIndex(o)!==-1),c[0]&2097152&&(f.onEdit=l),c[0]&8&&(f.allowSelectRows=n[3]),c[0]&16&&(f.allowEditRows=n[4]),t.$set(f),c[0]&512&&De(e,"noBorderCheckbox",!n[9])},i(u){r||(b(t.$$.fragment,u),r=!0)},o(u){$(t.$$.fragment,u),r=!1},d(u){u&&C(e),B(t),i=!1,a()}}}function iue(n){let e;const t=n[39].default,r=Xn(t,n,n[49],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]&262144)&&Zn(r,t,i,i[49],e?Jn(t,i[49],a,null):Qn(i[49]),null)},i(i){e||(b(r,i),e=!0)},o(i){$(r,i),e=!1},d(i){r&&r.d(i)}}}function NL(n){let e,t,r,i,a,o;t=new Use({props:{customRenderers:n[6],row:n[57],schema:n[0][n[60]],value:qh(n[57],n[60]),$$slots:{default:[iue]},$$scope:{ctx:n}}}),t.$on("clickrelationship",n[46]);function l(){return n[47](n[60],n[57])}return{c(){e=J("div"),O(t.$$.fragment),D(e,"class","spectrum-Table-cell svelte-12whv0s"),D(e,"style",r=n[19][n[60]]),De(e,"spectrum-Table-cell--divider",!!n[0][n[60]].divider)},m(s,u){S(s,e,u),H(t,e,null),i=!0,a||(o=At(e,"click",l),a=!0)},p(s,u){n=s;const c={};u[0]&64&&(c.customRenderers=n[6]),u[0]&2097152&&(c.row=n[57]),u[0]&65537&&(c.schema=n[0][n[60]]),u[0]&2162688&&(c.value=qh(n[57],n[60])),u[1]&262144&&(c.$$scope={dirty:u,ctx:n}),t.$set(c),(!i||u[0]&589824&&r!==(r=n[19][n[60]]))&&D(e,"style",r),u[0]&65537&&De(e,"spectrum-Table-cell--divider",!!n[0][n[60]].divider)},i(s){i||(b(t.$$.fragment,s),i=!0)},o(s){$(t.$$.fragment,s),i=!1},d(s){s&&C(e),B(t),a=!1,o()}}}function FL(n){let e,t,r,i,a=n[15]&&RL(n),o=n[16],l=[];for(let u=0;u<o.length;u+=1)l[u]=NL(TL(n,o,u));const s=u=>$(l[u],1,1,()=>{l[u]=null});return{c(){e=J("div"),a&&a.c(),t=U();for(let u=0;u<l.length;u+=1)l[u].c();r=U(),D(e,"class","spectrum-Table-row svelte-12whv0s")},m(u,c){S(u,e,c),a&&a.m(e,null),j(e,t);for(let f=0;f<l.length;f+=1)l[f].m(e,null);j(e,r),i=!0},p(u,c){if(u[15]?a?(a.p(u,c),c[0]&32768&&b(a,1)):(a=RL(u),a.c(),b(a,1),a.m(e,t)):a&&(ze(),$(a,1,1,()=>{a=null}),Ae()),c[0]&279511105|c[1]&262144){o=u[16];let f;for(f=0;f<o.length;f+=1){const h=TL(u,o,f);l[f]?(l[f].p(h,c),b(l[f],1)):(l[f]=NL(h),l[f].c(),b(l[f],1),l[f].m(e,r))}for(ze(),f=o.length;f<l.length;f+=1)s(f);Ae()}},i(u){if(!i){b(a);for(let c=0;c<o.length;c+=1)b(l[c]);i=!0}},o(u){$(a),l=l.filter(Boolean);for(let c=0;c<l.length;c+=1)$(l[c]);i=!1},d(u){u&&C(e),a&&a.d(),Dn(l,u)}}}function aue(n){let e,t,r,i,a,o;const l=[Jse,Xse],s=[];function u(c,f){return c[14]?1:0}return t=u(n),r=s[t]=l[t](n),{c(){e=J("div"),r.c(),D(e,"class","wrapper svelte-12whv0s"),D(e,"style",i=`--row-height: ${n[17]}px; --header-height: ${L$}px;`),Po(()=>n[48].call(e)),De(e,"wrapper--quiet",n[2]),De(e,"wrapper--compact",n[7])},m(c,f){S(c,e,f),s[t].m(e,null),a=RZ(e,n[48].bind(e)),o=!0},p(c,f){let h=t;t=u(c),t===h?s[t].p(c,f):(ze(),$(s[h],1,1,()=>{s[h]=null}),Ae(),r=s[t],r?r.p(c,f):(r=s[t]=l[t](c),r.c()),b(r,1),r.m(e,null)),(!o||f[0]&131072&&i!==(i=`--row-height: ${c[17]}px; --header-height: ${L$}px;`))&&D(e,"style",i),f[0]&4&&De(e,"wrapper--quiet",c[2]),f[0]&128&&De(e,"wrapper--compact",c[7])},i(c){o||(b(r),o=!0)},o(c){$(r),o=!1},d(c){c&&C(e),s[t].d(),a()}}}const L$=36;function oue(n,e,t){let r,i,a,o,l,s,u,c,f,h,{$$slots:m={},$$scope:_}=e,{data:y=[]}=e,{schema:w={}}=e,{showAutoColumns:A=!1}=e,{rowCount:E=0}=e,{quiet:T=!1}=e,{loading:I=!1}=e,{allowSelectRows:P}=e,{allowEditRows:x=!0}=e,{allowEditColumns:F=!0}=e,{selectedRows:G=[]}=e,{customRenderers:W=[]}=e,{disableSorting:ee=!1}=e,{autoSortColumns:ne=!0}=e,{compact:le=!1}=e,{customPlaceholder:te=!1}=e,{showHeaderBorder:X=!0}=e,{placeholderText:q="No rows found"}=e;const re=jn();let ue,pe,be=0,ve=!1,Me=!1;const Ce=$e=>{let Ke={};return Object.entries($e||{}).forEach(([zt,Ct])=>{typeof Ct=="string"?Ke[zt]={type:Ct,name:zt}:Ke[zt]={...Ct,name:zt}}),Ke},me=($e,Ke,zt,Ct,on)=>$e?Ct?Math.min(zt,Ct):Math.min(zt,Math.ceil(Ke/on)):Ct||0,ut=($e,Ke,zt,Ct)=>!Ke||!$e||zt<=Ke?"":`height: ${L$+$e*Ct}px;`,ke=($e,Ke,zt)=>{let Ct="grid-template-columns:";return zt&&(Ct+=" auto"),$e==null||$e.forEach(on=>{const ln=Ke[on];ln.width?Ct+=` ${ln.width}`:Ct+=" minmax(auto, 1fr)"}),Ct+=";",Ct},ge=($e,Ke,zt)=>!Ke||!zt||ee?$e:$e.slice().sort((Ct,on)=>{const ln=Ct[Ke],un=on[Ke];return zt==="Descending"?ln>un?-1:1:ln>un?1:-1}),xe=$e=>{$e.sortable!==!1&&($e.name===ue?t(12,pe=pe==="Descending"?"Ascending":"Descending"):(t(11,ue=$e.name),t(12,pe="Descending")),re("sort",{column:ue,order:pe}))},je=$e=>{let Ke=$e==null?void 0:$e.displayName;return $e&&Ke===void 0&&(Ke=$e.name),Ke||""},_e=($e,Ke,zt)=>{let Ct=[],on=[];return Object.entries($e||{}).forEach(([ln,un])=>{!ln||!un||(!zt||!(un!=null&&un.autocolumn)?Ct.push(un):Ke&&on.push(un))}),Ct.sort((ln,un)=>{const Vn=ln.order||Number.MAX_SAFE_INTEGER,On=un.order||Number.MAX_SAFE_INTEGER,wn=je(ln),St=je(un);return Vn!==On?Vn<On?Vn:On:wn<St?ln:un}).concat(on).map(ln=>ln.name)},st=($e,Ke)=>{$e.stopPropagation(),re("editcolumn",Ke)},dt=($e,Ke)=>{$e.stopPropagation(),re("editrow",qw(Ke))},mt=$e=>{!P||(G.some(Ke=>Ke._id===$e._id)?t(1,G=G.filter(Ke=>Ke._id!==$e._id)):t(1,G=[...G,$e]))},Ze=$e=>{!!$e.detail?a.forEach(zt=>{G.findIndex(Ct=>Ct._id===zt._id)===-1&&G.push(zt)}):t(1,G=G.filter(zt=>a.every(Ct=>Ct._id!==zt._id)))},We=$e=>{let Ke={};return Object.keys($e||{}).forEach(zt=>{Ke[zt]="",$e[zt].color&&(Ke[zt]+=`color: ${$e[zt].color};`),$e[zt].background&&(Ke[zt]+=`background-color: ${$e[zt].background};`),$e[zt].align==="Center"&&(Ke[zt]+="justify-content: center; text-align: center;"),$e[zt].align==="Right"&&(Ke[zt]+="justify-content: flex-end; text-align: right;")}),Ke};function tt($e){Me=$e,t(18,Me),t(36,a),t(1,G),t(16,i),t(30,y),t(0,w),t(31,A),t(35,ne)}const Bt=($e,Ke)=>st(Ke,$e),an=$e=>xe(w[$e]),Tt=($e,Ke)=>Ke._id===$e._id,de=($e,Ke)=>dt(Ke,$e),Xe=($e,Ke)=>{mt($e),Ke.stopPropagation()};function it($e){Bn.call(this,n,$e)}const Le=($e,Ke)=>{var zt;(zt=w[$e])!=null&&zt.preventSelectRow||(re("click",Ke),mt(Ke))};function Ie(){be=this.offsetHeight,t(13,be)}return n.$$set=$e=>{"data"in $e&&t(30,y=$e.data),"schema"in $e&&t(0,w=$e.schema),"showAutoColumns"in $e&&t(31,A=$e.showAutoColumns),"rowCount"in $e&&t(32,E=$e.rowCount),"quiet"in $e&&t(2,T=$e.quiet),"loading"in $e&&t(33,I=$e.loading),"allowSelectRows"in $e&&t(3,P=$e.allowSelectRows),"allowEditRows"in $e&&t(4,x=$e.allowEditRows),"allowEditColumns"in $e&&t(5,F=$e.allowEditColumns),"selectedRows"in $e&&t(1,G=$e.selectedRows),"customRenderers"in $e&&t(6,W=$e.customRenderers),"disableSorting"in $e&&t(34,ee=$e.disableSorting),"autoSortColumns"in $e&&t(35,ne=$e.autoSortColumns),"compact"in $e&&t(7,le=$e.compact),"customPlaceholder"in $e&&t(8,te=$e.customPlaceholder),"showHeaderBorder"in $e&&t(9,X=$e.showHeaderBorder),"placeholderText"in $e&&t(10,q=$e.placeholderText),"$$scope"in $e&&t(49,_=$e.$$scope)},n.$$.update=()=>{n.$$.dirty[0]&128&&t(17,r=le?46:55),n.$$.dirty[0]&1&&t(0,w=Ce(w)),n.$$.dirty[1]&4&&(I||t(14,ve=!0)),n.$$.dirty[0]&1|n.$$.dirty[1]&17&&t(16,i=_e(w,A,ne)),n.$$.dirty[0]&1073807360&&t(36,a=i!=null&&i.length?y||[]:[]),n.$$.dirty[1]&32&&t(37,o=(a==null?void 0:a.length)||0),n.$$.dirty[0]&155648|n.$$.dirty[1]&34&&t(38,l=me(ve,be,a.length,E,r)),n.$$.dirty[0]&131072|n.$$.dirty[1]&194&&t(22,s=ut(l,E,o,r)),n.$$.dirty[0]&6144|n.$$.dirty[1]&32&&t(21,u=ge(a,ue,pe)),n.$$.dirty[0]&24&&t(15,f=x||P),n.$$.dirty[0]&98305&&t(20,c=ke(i,w,f)),n.$$.dirty[0]&1&&t(19,h=We(w)),n.$$.dirty[0]&2|n.$$.dirty[1]&32&&a.filter(Ke=>G.some(zt=>Ke._id===zt._id)).length===0&&t(18,Me=!1)},[w,G,T,P,x,F,W,le,te,X,q,ue,pe,be,ve,f,i,r,Me,h,c,u,s,re,xe,je,st,dt,mt,Ze,y,A,E,I,ee,ne,a,o,l,m,tt,Bt,an,Tt,de,Xe,it,Le,Ie,_]}class Bf extends Re{constructor(e){super(),Ve(this,e,oue,aue,Oe,{data:30,schema:0,showAutoColumns:31,rowCount:32,quiet:2,loading:33,allowSelectRows:3,allowEditRows:4,allowEditColumns:5,selectedRows:1,customRenderers:6,disableSorting:34,autoSortColumns:35,compact:7,customPlaceholder:8,showHeaderBorder:9,placeholderText:10},null,[-1,-1,-1])}}function xL(n){let e;return{c(){e=J("div"),D(e,"class","spectrum-Tabs-selectionIndicator svelte-jku8bn"),yn(e,"width",n[11]),yn(e,"height",n[12]),yn(e,"left",n[10]),yn(e,"top",n[9]),De(e,"emphasized",n[4])},m(t,r){S(t,e,r)},p(t,r){r&2048&&yn(e,"width",t[11]),r&4096&&yn(e,"height",t[12]),r&1024&&yn(e,"left",t[10]),r&512&&yn(e,"top",t[9]),r&16&&De(e,"emphasized",t[4])},d(t){t&&C(e)}}}function lue(n){let e,t,r,i,a,o;const l=n[18].default,s=Xn(l,n,n[17],null);let u=n[7].info&&xL(n);return{c(){e=J("div"),s&&s.c(),t=U(),u&&u.c(),i=U(),a=J("div"),D(e,"class",r="spectrum-Tabs spectrum-Tabs--size"+n[6]+" svelte-jku8bn"),De(e,"spectrum-Tabs--quiet",n[3]),De(e,"noHorizPadding",n[2]),De(e,"onTop",n[5]),De(e,"spectrum-Tabs--vertical",n[0]),De(e,"spectrum-Tabs--horizontal",!n[0]),D(a,"class","spectrum-Tabs-content spectrum-Tabs-content-"+n[13]+" svelte-jku8bn"),De(a,"noPadding",n[1])},m(c,f){S(c,e,f),s&&s.m(e,null),j(e,t),u&&u.m(e,null),n[19](e),S(c,i,f),S(c,a,f),o=!0},p(c,[f]){s&&s.p&&(!o||f&131072)&&Zn(s,l,c,c[17],o?Jn(l,c[17],f,null):Qn(c[17]),null),c[7].info?u?u.p(c,f):(u=xL(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"))&&D(e,"class",r),f&72&&De(e,"spectrum-Tabs--quiet",c[3]),f&68&&De(e,"noHorizPadding",c[2]),f&96&&De(e,"onTop",c[5]),f&65&&De(e,"spectrum-Tabs--vertical",c[0]),f&65&&De(e,"spectrum-Tabs--horizontal",!c[0]),f&2&&De(a,"noPadding",c[1])},i(c){o||(b(s,c),o=!0)},o(c){$(s,c),o=!1},d(c){c&&C(e),s&&s.d(c),u&&u.d(),n[19](null),c&&C(i),c&&C(a)}}}function sue(){return"_"+Math.random().toString(36).slice(2,9)}function uue(n,e,t){let r,{$$slots:i={},$$scope:a}=e,{selected:o}=e,{vertical:l=!1}=e,{noPadding:s=!1}=e,{noHorizPadding:u=!1}=e,{quiet:c=!1}=e,{emphasized:f=!1}=e,{onTop:h=!1}=e,{size:m="M"}=e,_,y=sue();const w=yi({title:o,id:y,emphasized:f});Ne(n,w,ee=>t(7,r=ee)),Hd("tab",w);let A;const E=jn();let T,I,P,x;function F(){var ee,ne,le,te;l?(t(12,x=((le=r.info)==null?void 0:le.height)+4+"px"),t(11,P=(te=r.info)==null?void 0:te.width)):(t(11,P=((ee=r.info)==null?void 0:ee.width)+"px"),t(12,x=(ne=r.info)==null?void 0:ne.height))}function G(){var ee,ne;l?t(9,T=((ne=r.info)==null?void 0:ne.top)-(A==null?void 0:A.getBoundingClientRect().top)+"px"):t(10,I=((ee=r.info)==null?void 0:ee.left)-(A==null?void 0:A.getBoundingClientRect().left)+"px")}ar(()=>{F(),G()});function W(ee){He[ee?"unshift":"push"](()=>{A=ee,t(8,A)})}return n.$$set=ee=>{"selected"in ee&&t(15,o=ee.selected),"vertical"in ee&&t(0,l=ee.vertical),"noPadding"in ee&&t(1,s=ee.noPadding),"noHorizPadding"in ee&&t(2,u=ee.noHorizPadding),"quiet"in ee&&t(3,c=ee.quiet),"emphasized"in ee&&t(4,f=ee.emphasized),"onTop"in ee&&t(5,h=ee.onTop),"size"in ee&&t(6,m=ee.size),"$$scope"in ee&&t(17,a=ee.$$scope)},n.$$.update=()=>{n.$$.dirty&98432&&(_!==o?(t(16,_=o),E("select",_)):r.title!==_&&(t(16,_=r.title),t(15,o=r.title),E("select",_)),r.title!==_&&w.update(ee=>(ee.title=_,ee))),n.$$.dirty&128&&F(),n.$$.dirty&128&&G()},[l,s,u,c,f,h,m,r,A,T,I,P,x,y,w,o,_,a,i,W]}class K2 extends Re{constructor(e){super(),Ve(this,e,uue,lue,Oe,{selected:15,vertical:0,noPadding:1,noHorizPadding:2,quiet:3,emphasized:4,onTop:5,size:6})}}function jL(n){let e,t,r;return{c(){e=lt("svg"),t=lt("use"),Wr(t,"xlink:href",r="#spectrum-icon-18-"+n[1]),D(e,"class","spectrum-Icon spectrum-Icon--sizeM"),D(e,"focusable","false"),D(e,"aria-hidden","true"),D(e,"aria-label","Folder")},m(i,a){S(i,e,a),j(e,t)},p(i,a){a&2&&r!==(r="#spectrum-icon-18-"+i[1])&&Wr(t,"xlink:href",r)},d(i){i&&C(e)}}}function UL(n){let e,t;return e=new w6({props:{target:".spectrum-Tabs-content-"+n[3].id,$$slots:{default:[cue]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&8&&(a.target=".spectrum-Tabs-content-"+r[3].id),i&256&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function cue(n){let e;const t=n[6].default,r=Xn(t,n,n[8],null);return{c(){r&&r.c()},m(i,a){r&&r.m(i,a),e=!0},p(i,a){r&&r.p&&(!e||a&256)&&Zn(r,t,i,i[8],e?Jn(t,i[8],a,null):Qn(i[8]),null)},i(i){e||(b(r,i),e=!0)},o(i){$(r,i),e=!1},d(i){r&&r.d(i)}}}function fue(n){let e,t,r,i,a,o,l,s,u,c=n[1]&&jL(n),f=n[3].title===n[0]&&UL(n);return{c(){e=J("div"),c&&c.c(),t=U(),r=J("span"),i=oe(n[0]),a=U(),f&&f.c(),o=$t(),D(r,"class","spectrum-Tabs-itemLabel"),D(e,"class","spectrum-Tabs-item svelte-1tmawtn"),D(e,"tabindex","0"),De(e,"is-selected",n[3].title===n[0]),De(e,"emphasized",n[3].title===n[0]&&n[3].emphasized)},m(h,m){S(h,e,m),c&&c.m(e,null),j(e,t),j(e,r),j(r,i),n[7](e),S(h,a,m),f&&f.m(h,m),S(h,o,m),l=!0,s||(u=At(e,"click",n[5]),s=!0)},p(h,[m]){h[1]?c?c.p(h,m):(c=jL(h),c.c(),c.m(e,t)):c&&(c.d(1),c=null),(!l||m&1)&&_t(i,h[0]),m&9&&De(e,"is-selected",h[3].title===h[0]),m&9&&De(e,"emphasized",h[3].title===h[0]&&h[3].emphasized),h[3].title===h[0]?f?(f.p(h,m),m&9&&b(f,1)):(f=UL(h),f.c(),b(f,1),f.m(o.parentNode,o)):f&&(ze(),$(f,1,1,()=>{f=null}),Ae())},i(h){l||(b(f),l=!0)},o(h){$(f),l=!1},d(h){h&&C(e),c&&c.d(),n[7](null),h&&C(a),f&&f.d(h),h&&C(o),s=!1,u()}}}function pue(n,e,t){let r,{$$slots:i={},$$scope:a}=e,{title:o}=e,{icon:l=""}=e;const s=jn();let u=M4("tab");Ne(n,u,y=>t(3,r=y));let c,f;const h=()=>{setTimeout(()=>{f=c==null?void 0:c.getBoundingClientRect(),f&&r.title===o&&Y1(u,r.info=f,r)},0)};ar(()=>{h()});const m=()=>{Y1(u,r={...r,title:o,info:c.getBoundingClientRect()},r),s("click")};function _(y){He[y?"unshift":"push"](()=>{c=y,t(2,c)})}return n.$$set=y=>{"title"in y&&t(0,o=y.title),"icon"in y&&t(1,l=y.icon),"$$scope"in y&&t(8,a=y.$$scope)},n.$$.update=()=>{var y;n.$$.dirty&13&&r.title===o&&c&&((y=r.info)==null?void 0:y.left)!==c.getBoundingClientRect().left&&Y1(u,r={...r,info:c.getBoundingClientRect()},r)},[o,l,c,r,u,m,i,_,a]}class x1 extends Re{constructor(e){super(),Ve(this,e,pue,fue,Oe,{title:0,icon:1})}}function due(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 Uw({props:a}),He.push(()=>nt(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(){O(e.$$.fragment)},m(o,l){H(e,o,l),r=!0},p(o,l){const s={};l&64&&(s.updateOnChange=o[6]),l&32&&(s.disabled=o[5]),l&1&&(s.value=o[0]),l&16&&(s.placeholder=o[4]),l&128&&(s.quiet=o[7]),!t&&l&2&&(t=!0,s.inputRef=o[1],rt(()=>t=!1)),e.$set(s)},i(o){r||(b(e.$$.fragment,o),r=!0)},o(o){$(e.$$.fragment,o),r=!1},d(o){B(e,o)}}}function hue(n){let e,t;return e=new Cc({props:{label:n[2],labelPosition:n[3],$$slots:{default:[due]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(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||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function mue(n,e,t){let{value:r=null}=e,{label:i=null}=e,{labelPosition:a="above"}=e,{placeholder:o=null}=e,{disabled:l=!1}=e,{updateOnChange:s=!0}=e,{quiet:u=!1}=e,{inputRef:c}=e;const f=jn(),h=E=>{t(0,r=E.detail),f("change",E.detail)};function m(E){c=E,t(1,c)}function _(E){Bn.call(this,n,E)}function y(E){Bn.call(this,n,E)}function w(E){Bn.call(this,n,E)}function A(E){Bn.call(this,n,E)}return n.$$set=E=>{"value"in E&&t(0,r=E.value),"label"in E&&t(2,i=E.label),"labelPosition"in E&&t(3,a=E.labelPosition),"placeholder"in E&&t(4,o=E.placeholder),"disabled"in E&&t(5,l=E.disabled),"updateOnChange"in E&&t(6,s=E.updateOnChange),"quiet"in E&&t(7,u=E.quiet),"inputRef"in E&&t(1,c=E.inputRef)},[r,c,i,a,o,l,s,u,h,m,_,y,w,A]}class v5 extends Re{constructor(e){super(),Ve(this,e,mue,hue,Oe,{value:0,label:2,labelPosition:3,placeholder:4,disabled:5,updateOnChange:6,quiet:7,inputRef:1})}}function gue(n){let e,t,r,i,a,o,l,s,u,c;return{c(){e=J("nav"),t=J("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=U(),i=J("span"),a=oe("Page "),o=oe(n[0]),l=U(),s=J("div"),s.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>',D(t,"href","#"),D(t,"class","spectrum-ActionButton spectrum-ActionButton--sizeM spectrum-ActionButton--quiet spectrum-Pagination-prevButton svelte-1w0vi9g"),De(t,"is-disabled",!n[3]),D(i,"class","spectrum-Body--secondary spectrum-Pagination-counter svelte-1w0vi9g"),D(s,"href","#"),D(s,"class","spectrum-ActionButton spectrum-ActionButton--sizeM spectrum-ActionButton--quiet spectrum-Pagination-nextButton svelte-1w0vi9g"),De(s,"is-disabled",!n[4]),D(e,"class","spectrum-Pagination spectrum-Pagination--explicit")},m(f,h){S(f,e,h),j(e,t),j(e,r),j(e,i),j(i,a),j(i,o),j(e,l),j(e,s),u||(c=[At(t,"click",function(){An(n[3]?n[1]:null)&&(n[3]?n[1]:null).apply(this,arguments)}),At(s,"click",function(){An(n[4]?n[2]:null)&&(n[4]?n[2]:null).apply(this,arguments)})],u=!0)},p(f,[h]){n=f,h&8&&De(t,"is-disabled",!n[3]),h&1&&_t(o,n[0]),h&16&&De(s,"is-disabled",!n[4])},i:vt,o:vt,d(f){f&&C(e),u=!1,Ni(c)}}}function vue(n,e,t){let{page:r}=e,{goToPrevPage:i}=e,{goToNextPage:a}=e,{hasPrevPage:o=!0}=e,{hasNextPage:l=!0}=e;return n.$$set=s=>{"page"in s&&t(0,r=s.page),"goToPrevPage"in s&&t(1,i=s.goToPrevPage),"goToNextPage"in s&&t(2,a=s.goToNextPage),"hasPrevPage"in s&&t(3,o=s.hasPrevPage),"hasNextPage"in s&&t(4,l=s.hasNextPage)},[r,i,a,o,l]}class p_ extends Re{constructor(e){super(),Ve(this,e,vue,gue,Oe,{page:0,goToPrevPage:1,goToNextPage:2,hasPrevPage:3,hasNextPage:4})}}function qL(n,e,t){const r=n.slice();return r[18]=e[t],r}function WL(n,e,t){const r=n.slice();return r[21]=e[t],r}function GL(n){let e,t,r,i,a,o,l,s,u,c,f,h,m,_,y=n[7],w=[];for(let E=0;E<y.length;E+=1)w[E]=XL(qL(n,y,E));const A=E=>$(w[E],1,1,()=>{w[E]=null});return l=new En({props:{updateOnChange:!1,quiet:!0,placeholder:"Hex, RGB, HSL...",value:n[6]}}),l.$on("change",n[12]),u=new dn({props:{size:"S",name:"Close",hoverable:!0}}),u.$on("click",n[13]),{c(){e=J("div");for(let E=0;E<w.length;E+=1)w[E].c();t=U(),r=J("div"),i=J("div"),i.textContent="Custom",a=U(),o=J("div"),O(l.$$.fragment),s=U(),O(u.$$.fragment),D(i,"class","heading svelte-bfns6y"),D(o,"class","custom svelte-bfns6y"),D(r,"class","category category--custom svelte-bfns6y"),D(e,"class","spectrum-Popover spectrum-Popover--bottom spectrum-Picker-popover is-open svelte-bfns6y"),De(e,"spectrum-Popover--align-right",n[3])},m(E,T){S(E,e,T);for(let I=0;I<w.length;I+=1)w[I].m(e,null);j(e,t),j(e,r),j(r,i),j(r,a),j(r,o),H(l,o,null),j(o,s),H(u,o,null),h=!0,m||(_=Ol(c=pp.call(null,e,n[14])),m=!0)},p(E,T){if(T&933){y=E[7];let P;for(P=0;P<y.length;P+=1){const x=qL(E,y,P);w[P]?(w[P].p(x,T),b(w[P],1)):(w[P]=XL(x),w[P].c(),b(w[P],1),w[P].m(e,t))}for(ze(),P=y.length;P<w.length;P+=1)A(P);Ae()}const I={};T&64&&(I.value=E[6]),l.$set(I),c&&An(c.update)&&T&16&&c.update.call(null,E[14]),T&8&&De(e,"spectrum-Popover--align-right",E[3])},i(E){if(!h){for(let T=0;T<y.length;T+=1)b(w[T]);b(l.$$.fragment,E),b(u.$$.fragment,E),E&&Po(()=>{f||(f=w0(e,k0,{y:-20,duration:200},!0)),f.run(1)}),h=!0}},o(E){w=w.filter(Boolean);for(let T=0;T<w.length;T+=1)$(w[T]);$(l.$$.fragment,E),$(u.$$.fragment,E),E&&(f||(f=w0(e,k0,{y:-20,duration:200},!1)),f.run(0)),h=!1},d(E){E&&C(e),Dn(w,E),B(l),B(u),E&&f&&f.end(),m=!1,_()}}}function YL(n){let e,t;return e=new dn({props:{name:"Checkmark",size:"S"}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function KL(n){let e,t,r,i,a,o,l=n[0]===`var(--spectrum-global-color-${n[21]})`&&YL();function s(){return n[11](n[21])}return{c(){e=J("div"),t=J("div"),l&&l.c(),D(t,"class",r="fill "+(n[2]||"")+" svelte-bfns6y"),yn(t,"background","var(--spectrum-global-color-"+n[21]+")"),yn(t,"color",n[5]),D(e,"class","color svelte-bfns6y"),D(e,"title",n[9](n[21]))},m(u,c){S(u,e,c),j(e,t),l&&l.m(t,null),i=!0,a||(o=At(e,"click",s),a=!0)},p(u,c){n=u,n[0]===`var(--spectrum-global-color-${n[21]})`?l?c&1&&b(l,1):(l=YL(),l.c(),b(l,1),l.m(t,null)):l&&(ze(),$(l,1,1,()=>{l=null}),Ae()),(!i||c&4&&r!==(r="fill "+(n[2]||"")+" svelte-bfns6y"))&&D(t,"class",r),(!i||c&32)&&yn(t,"color",n[5])},i(u){i||(b(l),i=!0)},o(u){$(l),i=!1},d(u){u&&C(e),l&&l.d(),a=!1,o()}}}function XL(n){let e,t,r=n[18].label+"",i,a,o,l,s=n[18].colors,u=[];for(let f=0;f<s.length;f+=1)u[f]=KL(WL(n,s,f));const c=f=>$(u[f],1,1,()=>{u[f]=null});return{c(){e=J("div"),t=J("div"),i=oe(r),a=U(),o=J("div");for(let f=0;f<u.length;f+=1)u[f].c();D(t,"class","heading svelte-bfns6y"),D(o,"class","colors svelte-bfns6y"),D(e,"class","category")},m(f,h){S(f,e,h),j(e,t),j(t,i),j(e,a),j(e,o);for(let m=0;m<u.length;m+=1)u[m].m(o,null);l=!0},p(f,h){if(h&933){s=f[18].colors;let m;for(m=0;m<s.length;m+=1){const _=WL(f,s,m);u[m]?(u[m].p(_,h),b(u[m],1)):(u[m]=KL(_),u[m].c(),b(u[m],1),u[m].m(o,null))}for(ze(),m=s.length;m<u.length;m+=1)c(m);Ae()}},i(f){if(!l){for(let h=0;h<s.length;h+=1)b(u[h]);l=!0}},o(f){u=u.filter(Boolean);for(let h=0;h<u.length;h+=1)$(u[h]);l=!1},d(f){f&&C(e),Dn(u,f)}}}function _ue(n){let e,t,r,i,a,o,l,s,u,c,f=n[4]&&GL(n);return{c(){e=J("div"),t=J("div"),r=J("div"),l=U(),f&&f.c(),D(r,"class",i="fill "+(n[2]||"")+" svelte-bfns6y"),D(r,"style",a=n[0]?`background: ${n[0]};`:""),De(r,"placeholder",!n[0]),D(t,"class",o="preview size--"+(n[1]||"M")+" svelte-bfns6y"),D(e,"class","container svelte-bfns6y")},m(h,m){S(h,e,m),j(e,t),j(t,r),j(e,l),f&&f.m(e,null),s=!0,u||(c=At(t,"click",n[10]),u=!0)},p(h,[m]){(!s||m&4&&i!==(i="fill "+(h[2]||"")+" svelte-bfns6y"))&&D(r,"class",i),(!s||m&1&&a!==(a=h[0]?`background: ${h[0]};`:""))&&D(r,"style",a),m&5&&De(r,"placeholder",!h[0]),(!s||m&2&&o!==(o="preview size--"+(h[1]||"M")+" svelte-bfns6y"))&&D(t,"class",o),h[4]?f?(f.p(h,m),m&16&&b(f,1)):(f=GL(h),f.c(),b(f,1),f.m(e,null)):f&&(ze(),$(f,1,1,()=>{f=null}),Ae())},i(h){s||(b(f),s=!0)},o(h){$(f),s=!1},d(h){h&&C(e),f&&f.d(),u=!1,c()}}}function bue(n,e,t){let r,i,{value:a}=e,{size:o="M"}=e,{spectrumTheme:l}=e,{alignRight:s=!1}=e,u=!1;const c=jn(),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"]}],h=P=>{c("change",P),t(4,u=!1)},m=P=>{if(!P)return P;let x=!1;const F=P.substring(28,P.length-1);for(let G of f)if(x=G.colors.includes(F),x)break;return x?null:P},_=P=>Wee(P.split("-").join(" ")),y=P=>P!=null&&P.includes("gray")?/^.*(gray-(50|75|100|200|300|400|500))\)$/.test(P)?"var(--spectrum-global-color-gray-900)":"var(--spectrum-global-color-gray-50)":P!=null&&P.includes("static-black")?"var(--spectrum-global-color-static-gray-50)":"var(--spectrum-global-color-static-gray-900)",w=()=>t(4,u=!0),A=P=>{h(`var(--spectrum-global-color-${P})`)};function E(P){Bn.call(this,n,P)}const T=()=>h(null),I=()=>t(4,u=!1);return n.$$set=P=>{"value"in P&&t(0,a=P.value),"size"in P&&t(1,o=P.size),"spectrumTheme"in P&&t(2,l=P.spectrumTheme),"alignRight"in P&&t(3,s=P.alignRight)},n.$$.update=()=>{n.$$.dirty&1&&t(6,r=m(a)),n.$$.dirty&1&&t(5,i=y(a))},[a,o,l,s,u,i,r,f,h,_,w,A,E,T,I]}class _5 extends Re{constructor(e){super(),Ve(this,e,bue,_ue,Oe,{value:0,size:1,spectrumTheme:2,alignRight:3})}}function JL(n,e,t){const r=n.slice();return r[10]=e[t],r}function ZL(n,e,t){const r=n.slice();return r[10]=e[t],r}function QL(n){let e,t,r,i,a,o,l=n[4],s=[];for(let c=0;c<l.length;c+=1)s[c]=tE(JL(n,l,c));const u=c=>$(s[c],1,1,()=>{s[c]=null});return{c(){e=J("div");for(let c=0;c<s.length;c+=1)s[c].c();D(e,"class","spectrum-Popover spectrum-Popover--bottom spectrum-Picker-popover is-open svelte-r1sbsa"),De(e,"spectrum-Popover--align-right",n[2])},m(c,f){S(c,e,f);for(let h=0;h<s.length;h+=1)s[h].m(e,null);i=!0,a||(o=Ol(t=pp.call(null,e,n[8])),a=!0)},p(c,f){if(f&48){l=c[4];let h;for(h=0;h<l.length;h+=1){const m=JL(c,l,h);s[h]?(s[h].p(m,f),b(s[h],1)):(s[h]=tE(m),s[h].c(),b(s[h],1),s[h].m(e,null))}for(ze(),h=l.length;h<s.length;h+=1)u(h);Ae()}t&&An(t.update)&&f&8&&t.update.call(null,c[8]),f&4&&De(e,"spectrum-Popover--align-right",c[2])},i(c){if(!i){for(let f=0;f<l.length;f+=1)b(s[f]);Po(()=>{r||(r=w0(e,k0,{y:-20,duration:200},!0)),r.run(1)}),i=!0}},o(c){s=s.filter(Boolean);for(let f=0;f<s.length;f+=1)$(s[f]);r||(r=w0(e,k0,{y:-20,duration:200},!1)),r.run(0),i=!1},d(c){c&&C(e),Dn(s,c),c&&r&&r.end(),a=!1,o()}}}function eE(n){let e,t,r,i,a,o;t=new dn({props:{name:n[10]}});function l(){return n[7](n[10])}return{c(){e=J("div"),O(t.$$.fragment),r=U()},m(s,u){S(s,e,u),H(t,e,null),j(e,r),i=!0,a||(o=At(e,"click",l),a=!0)},p(s,u){n=s},i(s){i||(b(t.$$.fragment,s),i=!0)},o(s){$(t.$$.fragment,s),i=!1},d(s){s&&C(e),B(t),a=!1,o()}}}function tE(n){let e,t,r=n[10].label+"",i,a,o,l,s,u=n[10].icons,c=[];for(let h=0;h<u.length;h+=1)c[h]=eE(ZL(n,u,h));const f=h=>$(c[h],1,1,()=>{c[h]=null});return{c(){e=J("div"),t=J("div"),i=oe(r),a=U(),o=J("div");for(let h=0;h<c.length;h+=1)c[h].c();l=U(),D(t,"class","heading svelte-r1sbsa"),D(o,"class","icons svelte-r1sbsa"),D(e,"class","category")},m(h,m){S(h,e,m),j(e,t),j(t,i),j(e,a),j(e,o);for(let _=0;_<c.length;_+=1)c[_].m(o,null);j(e,l),s=!0},p(h,m){if(m&48){u=h[10].icons;let _;for(_=0;_<u.length;_+=1){const y=ZL(h,u,_);c[_]?(c[_].p(y,m),b(c[_],1)):(c[_]=eE(y),c[_].c(),b(c[_],1),c[_].m(o,null))}for(ze(),_=u.length;_<c.length;_+=1)f(_);Ae()}},i(h){if(!s){for(let m=0;m<u.length;m+=1)b(c[m]);s=!0}},o(h){c=c.filter(Boolean);for(let m=0;m<c.length;m+=1)$(c[m]);s=!1},d(h){h&&C(e),Dn(c,h)}}}function yue(n){let e,t,r,i,a,o,l,s,u,c;i=new dn({props:{name:n[0]||"UserGroup"}});let f=n[3]&&QL(n);return{c(){e=J("div"),t=J("div"),r=J("div"),O(i.$$.fragment),l=U(),f&&f.c(),D(r,"class","fill svelte-r1sbsa"),D(r,"style",a=n[0]?`background: ${n[0]};`:""),De(r,"placeholder",!n[0]),D(t,"class",o="preview size--"+(n[1]||"M")+" svelte-r1sbsa"),D(e,"class","container svelte-r1sbsa")},m(h,m){S(h,e,m),j(e,t),j(t,r),H(i,r,null),j(e,l),f&&f.m(e,null),s=!0,u||(c=At(t,"click",n[6]),u=!0)},p(h,[m]){const _={};m&1&&(_.name=h[0]||"UserGroup"),i.$set(_),(!s||m&1&&a!==(a=h[0]?`background: ${h[0]};`:""))&&D(r,"style",a),m&1&&De(r,"placeholder",!h[0]),(!s||m&2&&o!==(o="preview size--"+(h[1]||"M")+" svelte-r1sbsa"))&&D(t,"class",o),h[3]?f?(f.p(h,m),m&8&&b(f,1)):(f=QL(h),f.c(),b(f,1),f.m(e,null)):f&&(ze(),$(f,1,1,()=>{f=null}),Ae())},i(h){s||(b(i.$$.fragment,h),b(f),s=!0)},o(h){$(i.$$.fragment,h),$(f),s=!1},d(h){h&&C(e),B(i),f&&f.d(),u=!1,c()}}}function $ue(n,e,t){let{value:r}=e,{size:i="M"}=e,{alignRight:a=!1}=e,o=!1;const l=jn(),s=[{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=m=>{l("change",m),t(3,o=!1)},c=()=>t(3,o=!0),f=m=>{u(m)},h=()=>t(3,o=!1);return n.$$set=m=>{"value"in m&&t(0,r=m.value),"size"in m&&t(1,i=m.size),"alignRight"in m&&t(2,a=m.alignRight)},[r,i,a,o,s,u,c,f,h]}class wue extends Re{constructor(e){super(),Ve(this,e,$ue,yue,Oe,{value:0,size:1,alignRight:2})}}function nE(n,e,t){const r=n.slice();return r[7]=e[t],r}function rE(n){let e,t=n[7]+"",r;return{c(){e=J("div"),r=oe(t),D(e,"class","spectrum-InLineAlert-content")},m(i,a){S(i,e,a),j(e,r)},p(i,a){a&16&&t!==(t=i[7]+"")&&_t(r,t)},d(i){i&&C(e)}}}function iE(n){let e,t,r;return t=new $n({props:{secondary:!0,$$slots:{default:[kue]},$$scope:{ctx:n}}}),t.$on("click",function(){An(n[2])&&n[2].apply(this,arguments)}),{c(){e=J("div"),O(t.$$.fragment),D(e,"class","spectrum-InLineAlert-footer button svelte-22oo0d")},m(i,a){S(i,e,a),H(t,e,null),r=!0},p(i,a){n=i;const o={};a&1032&&(o.$$scope={dirty:a,ctx:n}),t.$set(o)},i(i){r||(b(t.$$.fragment,i),r=!0)},o(i){$(t.$$.fragment,i),r=!1},d(i){i&&C(e),B(t)}}}function kue(n){let e=(n[3]||"OK")+"",t;return{c(){t=oe(e)},m(r,i){S(r,t,i)},p(r,i){i&8&&e!==(e=(r[3]||"OK")+"")&&_t(t,e)},d(r){r&&C(t)}}}function zue(n){let e,t,r,i,a,o,l,s,u,c,f,h=n[4],m=[];for(let y=0;y<h.length;y+=1)m[y]=rE(nE(n,h,y));let _=n[2]&&iE(n);return{c(){e=J("div"),t=lt("svg"),r=lt("use"),a=U(),o=J("div"),l=oe(n[1]),s=U();for(let y=0;y<m.length;y+=1)m[y].c();u=U(),_&&_.c(),Wr(r,"xlink:href",i="#spectrum-icon-18-"+n[5]),D(t,"class","spectrum-Icon spectrum-Icon--sizeM spectrum-InLineAlert-icon"),D(t,"focusable","false"),D(t,"aria-hidden","true"),D(o,"class","spectrum-InLineAlert-header"),D(e,"class",c="spectrum-InLineAlert spectrum-InLineAlert--"+n[0]+" svelte-22oo0d")},m(y,w){S(y,e,w),j(e,t),j(t,r),j(e,a),j(e,o),j(o,l),j(e,s);for(let A=0;A<m.length;A+=1)m[A].m(e,null);j(e,u),_&&_.m(e,null),f=!0},p(y,[w]){if((!f||w&32&&i!==(i="#spectrum-icon-18-"+y[5]))&&Wr(r,"xlink:href",i),(!f||w&2)&&_t(l,y[1]),w&16){h=y[4];let A;for(A=0;A<h.length;A+=1){const E=nE(y,h,A);m[A]?m[A].p(E,w):(m[A]=rE(E),m[A].c(),m[A].m(e,u))}for(;A<m.length;A+=1)m[A].d(1);m.length=h.length}y[2]?_?(_.p(y,w),w&4&&b(_,1)):(_=iE(y),_.c(),b(_,1),_.m(e,null)):_&&(ze(),$(_,1,1,()=>{_=null}),Ae()),(!f||w&1&&c!==(c="spectrum-InLineAlert spectrum-InLineAlert--"+y[0]+" svelte-22oo0d"))&&D(e,"class",c)},i(y){f||(b(_),f=!0)},o(y){$(_),f=!1},d(y){y&&C(e),Dn(m,y),_&&_.d()}}}function Aue(n){switch(n){case"error":case"negative":return"Alert";case"success":return"CheckmarkCircle";case"help":return"Help";default:return"Info"}}function Mue(n,e,t){let r,i,{type:a="info"}=e,{header:o=""}=e,{message:l=""}=e,{onConfirm:s=void 0}=e,{buttonText:u=""}=e;return n.$$set=c=>{"type"in c&&t(0,a=c.type),"header"in c&&t(1,o=c.header),"message"in c&&t(6,l=c.message),"onConfirm"in c&&t(2,s=c.onConfirm),"buttonText"in c&&t(3,u=c.buttonText)},n.$$.update=()=>{n.$$.dirty&1&&t(5,r=Aue(a)),n.$$.dirty&64&&t(4,i=l.split(`
|
|
247
247
|
`))},[a,o,s,u,i,r,l]}class d_ extends Re{constructor(e){super(),Ve(this,e,Mue,zue,Oe,{type:0,header:1,message:6,onConfirm:2,buttonText:3})}}function aE(n){let e,t,r,i,a,o,l,s,u,c,f,h;const m=n[9].default,_=Xn(m,n,n[8],null);let y=n[3]&&n[4]&&oE(n),w=n[5]&&lE(n);return{c(){e=J("div"),t=lt("svg"),r=lt("use"),o=U(),l=J("div"),s=J("div"),_&&_.c(),u=U(),y&&y.c(),c=U(),w&&w.c(),Wr(r,"xlink:href",i="#spectrum-icon-18-"+n[1]),D(t,"class",a="spectrum-Icon spectrum-Icon--size"+n[2]+" spectrum-Toast-typeIcon svelte-1a3gkqo"),D(t,"focusable","false"),D(t,"aria-hidden","true"),D(s,"class","spectrum-Toast-content"),D(l,"class","spectrum-Toast-body"),D(e,"class",f="spectrum-Toast spectrum-Toast--"+n[0]+" svelte-1a3gkqo")},m(A,E){S(A,e,E),j(e,t),j(t,r),j(e,o),j(e,l),j(l,s),_&&_.m(s,null),j(l,u),y&&y.m(l,null),j(e,c),w&&w.m(e,null),h=!0},p(A,E){(!h||E&2&&i!==(i="#spectrum-icon-18-"+A[1]))&&Wr(r,"xlink:href",i),(!h||E&4&&a!==(a="spectrum-Icon spectrum-Icon--size"+A[2]+" spectrum-Toast-typeIcon svelte-1a3gkqo"))&&D(t,"class",a),_&&_.p&&(!h||E&256)&&Zn(_,m,A,A[8],h?Jn(m,A[8],E,null):Qn(A[8]),null),A[3]&&A[4]?y?y.p(A,E):(y=oE(A),y.c(),y.m(l,null)):y&&(y.d(1),y=null),A[5]?w?w.p(A,E):(w=lE(A),w.c(),w.m(e,null)):w&&(w.d(1),w=null),(!h||E&1&&f!==(f="spectrum-Toast spectrum-Toast--"+A[0]+" svelte-1a3gkqo"))&&D(e,"class",f)},i(A){h||(b(_,A),h=!0)},o(A){$(_,A),h=!1},d(A){A&&C(e),_&&_.d(A),y&&y.d(),w&&w.d()}}}function oE(n){let e,t,r,i,a;return{c(){e=J("button"),t=J("span"),r=oe(n[3]),D(t,"class","spectrum-Button-label"),D(e,"class","spectrum-Button spectrum-Button--sizeM spectrum-Button--overBackground spectrum-Button--quiet svelte-1a3gkqo")},m(o,l){S(o,e,l),j(e,t),j(t,r),i||(a=At(e,"click",function(){An(n[4])&&n[4].apply(this,arguments)}),i=!0)},p(o,l){n=o,l&8&&_t(r,n[3])},d(o){o&&C(e),i=!1,a()}}}function lE(n){let e,t,r,i,a,o;return{c(){e=J("div"),t=J("button"),r=J("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>',D(r,"class","spectrum-ClearButton-fill"),D(t,"class",i="spectrum-ClearButton spectrum-ClearButton--overBackground spectrum-ClearButton--size"+n[2]+" svelte-1a3gkqo"),D(e,"class","spectrum-Toast-buttons")},m(l,s){S(l,e,s),j(e,t),j(t,r),a||(o=At(t,"click",n[7]),a=!0)},p(l,s){s&4&&i!==(i="spectrum-ClearButton spectrum-ClearButton--overBackground spectrum-ClearButton--size"+l[2]+" svelte-1a3gkqo")&&D(t,"class",i)},d(l){l&&C(e),a=!1,o()}}}function Cue(n){let e,t,r=n[6]&&aE(n);return{c(){r&&r.c(),e=$t()},m(i,a){r&&r.m(i,a),S(i,e,a),t=!0},p(i,[a]){i[6]?r?(r.p(i,a),a&64&&b(r,1)):(r=aE(i),r.c(),b(r,1),r.m(e.parentNode,e)):r&&(ze(),$(r,1,1,()=>{r=null}),Ae())},i(i){t||(b(r),t=!0)},o(i){$(r),t=!1},d(i){r&&r.d(i),i&&C(e)}}}function Sue(n,e,t){let{$$slots:r={},$$scope:i}=e,a=jn(),{type:o="info"}=e,{icon:l="Info"}=e,{size:s="S"}=e,{extraButtonText:u}=e,{extraButtonAction:c}=e,{showCloseButton:f=!0}=e,h=!0;function m(){t(6,h=!1),a("change")}return n.$$set=_=>{"type"in _&&t(0,o=_.type),"icon"in _&&t(1,l=_.icon),"size"in _&&t(2,s=_.size),"extraButtonText"in _&&t(3,u=_.extraButtonText),"extraButtonAction"in _&&t(4,c=_.extraButtonAction),"showCloseButton"in _&&t(5,f=_.showCloseButton),"$$scope"in _&&t(8,i=_.$$scope)},[o,l,s,u,c,f,h,m,i,r]}class z6 extends Re{constructor(e){super(),Ve(this,e,Sue,Cue,Oe,{type:0,icon:1,size:2,extraButtonText:3,extraButtonAction:4,showCloseButton:5})}}const Fh={INFO:"info",NEGATIVE:"negative"};function Lue(){const e=yi({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:Fh.NEGATIVE,extraButtonText:"View Status",extraButtonAction:()=>window.open("https://status.budibase.com/")};await i([a])},i=async a=>{const o={[Fh.NEGATIVE]:0,[Fh.INFO]:1};e.update(l=>{const s=[...l.messages,...a].sort((u,c)=>o[u.type]==o[c.type]?0:o[u.type]<o[c.type]?-1:1);return{...l,messages:s}})};return{subscribe:e.subscribe,showStatus:r,show:t,queue:i}}const wk=Lue();function sE(n,e,t){const r=n.slice();return r[2]=e[t],r}function Eue(n){let e=n[2].message+"",t;return{c(){t=oe(e)},m(r,i){S(r,t,i)},p(r,i){i&1&&e!==(e=r[2].message+"")&&_t(t,e)},d(r){r&&C(t)}}}function Tue(n){let e,t;return e=new d5({props:{tooltip:n[2].tooltip,disabled:!1,$$slots:{default:[Eue]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(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||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function uE(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:[Tue]},$$scope:{ctx:n}}}),t.$on("change",o),{c(){e=J("div"),O(t.$$.fragment),r=U()},m(l,s){S(l,e,s),H(t,e,null),j(e,r),a=!0},p(l,s){n=l;const u={};s&1&&(u.type=n[2].type),s&1&&(u.extraButtonText=n[2].extraButtonText),s&1&&(u.extraButtonAction=n[2].extraButtonAction),s&1&&(u.showCloseButton=typeof n[2].showCloseButton=="boolean"?n[2].showCloseButton:!0),s&33&&(u.$$scope={dirty:s,ctx:n}),t.$set(u)},i(l){a||(b(t.$$.fragment,l),Po(()=>{i||(i=w0(e,k0,{y:-30},!0)),i.run(1)}),a=!0)},o(l){$(t.$$.fragment,l),i||(i=w0(e,k0,{y:-30},!1)),i.run(0),a=!1},d(l){l&&C(e),B(t),l&&i&&i.end()}}}function Due(n){let e,t,r=n[0].messages,i=[];for(let o=0;o<r.length;o+=1)i[o]=uE(sE(n,r,o));const a=o=>$(i[o],1,1,()=>{i[o]=null});return{c(){e=J("div");for(let o=0;o<i.length;o+=1)i[o].c();D(e,"class","banner svelte-j1ssay")},m(o,l){S(o,e,l);for(let s=0;s<i.length;s+=1)i[s].m(e,null);t=!0},p(o,l){if(l&1){r=o[0].messages;let s;for(s=0;s<r.length;s+=1){const u=sE(o,r,s);i[s]?(i[s].p(u,l),b(i[s],1)):(i[s]=uE(u),i[s].c(),b(i[s],1),i[s].m(e,null))}for(ze(),s=r.length;s<i.length;s+=1)a(s);Ae()}},i(o){if(!t){for(let l=0;l<r.length;l+=1)b(i[l]);t=!0}},o(o){i=i.filter(Boolean);for(let l=0;l<i.length;l+=1)$(i[l]);t=!1},d(o){o&&C(e),Dn(i,o)}}}function Hue(n){let e,t;return e=new w6({props:{target:".banner-container",$$slots:{default:[Due]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,[i]){const a={};i&33&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function Bue(n,e,t){let r;return Ne(n,wk,a=>t(0,r=a)),[r,a=>{a.onChange&&a.onChange()}]}class Oue extends Re{constructor(e){super(),Ve(this,e,Bue,Hue,Oe,{})}}var X2={exports:{}};(function(n,e){(function(t,r){n.exports=r()})(b0,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),l=/Edge\/(\d+)/.exec(t),s=a||o||l,u=s&&(a?document.documentMode||6:+(l||o)[1]),c=!l&&/WebKit\//.test(t),f=c&&/Qt\/\d+\.\d+/.test(t),h=!l&&/Chrome\//.test(t),m=/Opera\//.test(t),_=/Apple Computer/.test(navigator.vendor),y=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t),w=/PhantomJS/.test(t),A=_&&(/Mobile\/\w+/.test(t)||navigator.maxTouchPoints>2),E=/Android/.test(t),T=A||E||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),I=A||/Mac/.test(r),P=/\bCrOS\b/.test(t),x=/win/i.test(r),F=m&&t.match(/Version\/(\d*\.\d*)/);F&&(F=Number(F[1])),F&&F>=15&&(m=!1,c=!0);var G=I&&(f||m&&(F==null||F<12.11)),W=i||s&&u>=9;function ee(p){return new RegExp("(^|\\s)"+p+"(?:$|\\s)\\s*")}var ne=function(p,g){var z=p.className,k=ee(g).exec(z);if(k){var L=z.slice(k.index+k[0].length);p.className=z.slice(0,k.index)+(L?k[1]+L:"")}};function le(p){for(var g=p.childNodes.length;g>0;--g)p.removeChild(p.firstChild);return p}function te(p,g){return le(p).appendChild(g)}function X(p,g,z,k){var L=document.createElement(p);if(z&&(L.className=z),k&&(L.style.cssText=k),typeof g=="string")L.appendChild(document.createTextNode(g));else if(g)for(var V=0;V<g.length;++V)L.appendChild(g[V]);return L}function q(p,g,z,k){var L=X(p,g,z,k);return L.setAttribute("role","presentation"),L}var re;document.createRange?re=function(p,g,z,k){var L=document.createRange();return L.setEnd(k||p,z),L.setStart(p,g),L}:re=function(p,g,z){var k=document.body.createTextRange();try{k.moveToElementText(p.parentNode)}catch{return k}return k.collapse(!0),k.moveEnd("character",z),k.moveStart("character",g),k};function ue(p,g){if(g.nodeType==3&&(g=g.parentNode),p.contains)return p.contains(g);do if(g.nodeType==11&&(g=g.host),g==p)return!0;while(g=g.parentNode)}function pe(){var p;try{p=document.activeElement}catch{p=document.body||null}for(;p&&p.shadowRoot&&p.shadowRoot.activeElement;)p=p.shadowRoot.activeElement;return p}function be(p,g){var z=p.className;ee(g).test(z)||(p.className+=(z?" ":"")+g)}function ve(p,g){for(var z=p.split(" "),k=0;k<z.length;k++)z[k]&&!ee(z[k]).test(g)&&(g+=" "+z[k]);return g}var Me=function(p){p.select()};A?Me=function(p){p.selectionStart=0,p.selectionEnd=p.value.length}:s&&(Me=function(p){try{p.select()}catch{}});function Ce(p){var g=Array.prototype.slice.call(arguments,1);return function(){return p.apply(null,g)}}function me(p,g,z){g||(g={});for(var k in p)p.hasOwnProperty(k)&&(z!==!1||!g.hasOwnProperty(k))&&(g[k]=p[k]);return g}function ut(p,g,z,k,L){g==null&&(g=p.search(/[^\s\u00a0]/),g==-1&&(g=p.length));for(var V=k||0,Y=L||0;;){var Q=p.indexOf(" ",V);if(Q<0||Q>=g)return Y+(g-V);Y+=Q-V,Y+=z-Y%z,V=Q+1}}var ke=function(){this.id=null,this.f=null,this.time=0,this.handler=Ce(this.onTimeout,this)};ke.prototype.onTimeout=function(p){p.id=0,p.time<=+new Date?p.f():setTimeout(p.handler,p.time-+new Date)},ke.prototype.set=function(p,g){this.f=g;var z=+new Date+p;(!this.id||z<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,p),this.time=z)};function ge(p,g){for(var z=0;z<p.length;++z)if(p[z]==g)return z;return-1}var xe=50,je={toString:function(){return"CodeMirror.Pass"}},_e={scroll:!1},st={origin:"*mouse"},dt={origin:"+move"};function mt(p,g,z){for(var k=0,L=0;;){var V=p.indexOf(" ",k);V==-1&&(V=p.length);var Y=V-k;if(V==p.length||L+Y>=g)return k+Math.min(Y,g-L);if(L+=V-k,L+=z-L%z,k=V+1,L>=g)return k}}var Ze=[""];function We(p){for(;Ze.length<=p;)Ze.push(tt(Ze)+" ");return Ze[p]}function tt(p){return p[p.length-1]}function Bt(p,g){for(var z=[],k=0;k<p.length;k++)z[k]=g(p[k],k);return z}function an(p,g,z){for(var k=0,L=z(g);k<p.length&&z(p[k])<=L;)k++;p.splice(k,0,g)}function Tt(){}function de(p,g){var z;return Object.create?z=Object.create(p):(Tt.prototype=p,z=new Tt),g&&me(g,z),z}var Xe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function it(p){return/\w/.test(p)||p>"\x80"&&(p.toUpperCase()!=p.toLowerCase()||Xe.test(p))}function Le(p,g){return g?g.source.indexOf("\\w")>-1&&it(p)?!0:g.test(p):it(p)}function Ie(p){for(var g in p)if(p.hasOwnProperty(g)&&p[g])return!1;return!0}var $e=/[\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 Ke(p){return p.charCodeAt(0)>=768&&$e.test(p)}function zt(p,g,z){for(;(z<0?g>0:g<p.length)&&Ke(p.charAt(g));)g+=z;return g}function Ct(p,g,z){for(var k=g>z?-1:1;;){if(g==z)return g;var L=(g+z)/2,V=k<0?Math.ceil(L):Math.floor(L);if(V==g)return p(V)?g:z;p(V)?z=V:g=V+k}}function on(p,g,z,k){if(!p)return k(g,z,"ltr",0);for(var L=!1,V=0;V<p.length;++V){var Y=p[V];(Y.from<z&&Y.to>g||g==z&&Y.to==g)&&(k(Math.max(Y.from,g),Math.min(Y.to,z),Y.level==1?"rtl":"ltr",V),L=!0)}L||k(g,z,"ltr")}var ln=null;function un(p,g,z){var k;ln=null;for(var L=0;L<p.length;++L){var V=p[L];if(V.from<g&&V.to>g)return L;V.to==g&&(V.from!=V.to&&z=="before"?k=L:ln=L),V.from==g&&(V.from!=V.to&&z!="before"?k=L:ln=L)}return k!=null?k:ln}var Vn=function(){var p="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",g="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function z(ce){return ce<=247?p.charAt(ce):1424<=ce&&ce<=1524?"R":1536<=ce&&ce<=1785?g.charAt(ce-1536):1774<=ce&&ce<=2220?"r":8192<=ce&&ce<=8203?"w":ce==8204?"b":"L"}var k=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,L=/[stwN]/,V=/[LRr]/,Y=/[Lb1n]/,Q=/[1n]/;function ae(ce,we,Te){this.level=ce,this.from=we,this.to=Te}return function(ce,we){var Te=we=="ltr"?"L":"R";if(ce.length==0||we=="ltr"&&!k.test(ce))return!1;for(var Ge=ce.length,Ye=[],pt=0;pt<Ge;++pt)Ye.push(z(ce.charCodeAt(pt)));for(var wt=0,Ht=Te;wt<Ge;++wt){var Pt=Ye[wt];Pt=="m"?Ye[wt]=Ht:Ht=Pt}for(var qt=0,Nt=Te;qt<Ge;++qt){var Jt=Ye[qt];Jt=="1"&&Nt=="r"?Ye[qt]="n":V.test(Jt)&&(Nt=Jt,Jt=="r"&&(Ye[qt]="R"))}for(var _n=1,hn=Ye[0];_n<Ge-1;++_n){var qn=Ye[_n];qn=="+"&&hn=="1"&&Ye[_n+1]=="1"?Ye[_n]="1":qn==","&&hn==Ye[_n+1]&&(hn=="1"||hn=="n")&&(Ye[_n]=hn),hn=qn}for(var Mr=0;Mr<Ge;++Mr){var ki=Ye[Mr];if(ki==",")Ye[Mr]="N";else if(ki=="%"){var Vr=void 0;for(Vr=Mr+1;Vr<Ge&&Ye[Vr]=="%";++Vr);for(var _1=Mr&&Ye[Mr-1]=="!"||Vr<Ge&&Ye[Vr]=="1"?"1":"N",Qi=Mr;Qi<Vr;++Qi)Ye[Qi]=_1;Mr=Vr-1}}for(var ii=0,Fi=Te;ii<Ge;++ii){var zi=Ye[ii];Fi=="L"&&zi=="1"?Ye[ii]="L":V.test(zi)&&(Fi=zi)}for(var xr=0;xr<Ge;++xr)if(L.test(Ye[xr])){var Yr=void 0;for(Yr=xr+1;Yr<Ge&&L.test(Ye[Yr]);++Yr);for(var Rr=(xr?Ye[xr-1]:Te)=="L",Oi=(Yr<Ge?Ye[Yr]:Te)=="L",ul=Rr==Oi?Rr?"L":"R":Te,To=xr;To<Yr;++To)Ye[To]=ul;xr=Yr-1}for(var ji=[],Ka,Ci=0;Ci<Ge;)if(Y.test(Ye[Ci])){var Gc=Ci;for(++Ci;Ci<Ge&&Y.test(Ye[Ci]);++Ci);ji.push(new ae(0,Gc,Ci))}else{var zo=Ci,V0=ji.length,R0=we=="rtl"?1:0;for(++Ci;Ci<Ge&&Ye[Ci]!="L";++Ci);for(var Ui=zo;Ui<Ci;)if(Q.test(Ye[Ui])){zo<Ui&&(ji.splice(V0,0,new ae(1,zo,Ui)),V0+=R0);var cl=Ui;for(++Ui;Ui<Ci&&Q.test(Ye[Ui]);++Ui);ji.splice(V0,0,new ae(2,cl,Ui)),V0+=R0,zo=Ui}else++Ui;zo<Ci&&ji.splice(V0,0,new ae(1,zo,Ci))}return we=="ltr"&&(ji[0].level==1&&(Ka=ce.match(/^\s+/))&&(ji[0].from=Ka[0].length,ji.unshift(new ae(0,0,Ka[0].length))),tt(ji).level==1&&(Ka=ce.match(/\s+$/))&&(tt(ji).to-=Ka[0].length,ji.push(new ae(0,Ge-Ka[0].length,Ge)))),we=="rtl"?ji.reverse():ji}}();function On(p,g){var z=p.order;return z==null&&(z=p.order=Vn(p.text,g)),z}var wn=[],St=function(p,g,z){if(p.addEventListener)p.addEventListener(g,z,!1);else if(p.attachEvent)p.attachEvent("on"+g,z);else{var k=p._handlers||(p._handlers={});k[g]=(k[g]||wn).concat(z)}};function zr(p,g){return p._handlers&&p._handlers[g]||wn}function Un(p,g,z){if(p.removeEventListener)p.removeEventListener(g,z,!1);else if(p.detachEvent)p.detachEvent("on"+g,z);else{var k=p._handlers,L=k&&k[g];if(L){var V=ge(L,z);V>-1&&(k[g]=L.slice(0,V).concat(L.slice(V+1)))}}}function kn(p,g){var z=zr(p,g);if(!!z.length)for(var k=Array.prototype.slice.call(arguments,2),L=0;L<z.length;++L)z[L].apply(null,k)}function Hn(p,g,z){return typeof g=="string"&&(g={type:g,preventDefault:function(){this.defaultPrevented=!0}}),kn(p,z||g.type,p,g),at(g)||g.codemirrorIgnore}function Ut(p){var g=p._handlers&&p._handlers.cursorActivity;if(!!g)for(var z=p.curOp.cursorActivityHandlers||(p.curOp.cursorActivityHandlers=[]),k=0;k<g.length;++k)ge(z,g[k])==-1&&z.push(g[k])}function Kn(p,g){return zr(p,g).length>0}function Hr(p){p.prototype.on=function(g,z){St(this,g,z)},p.prototype.off=function(g,z){Un(this,g,z)}}function Qe(p){p.preventDefault?p.preventDefault():p.returnValue=!1}function gt(p){p.stopPropagation?p.stopPropagation():p.cancelBubble=!0}function at(p){return p.defaultPrevented!=null?p.defaultPrevented:p.returnValue==!1}function It(p){Qe(p),gt(p)}function fn(p){return p.target||p.srcElement}function rn(p){var g=p.which;return g==null&&(p.button&1?g=1:p.button&2?g=3:p.button&4&&(g=2)),I&&p.ctrlKey&&g==1&&(g=3),g}var Fn=function(){if(s&&u<9)return!1;var p=X("div");return"draggable"in p||"dragDrop"in p}(),xn;function br(p){if(xn==null){var g=X("span","\u200B");te(p,X("span",[g,document.createTextNode("x")])),p.firstChild.offsetHeight!=0&&(xn=g.offsetWidth<=1&&g.offsetHeight>2&&!(s&&u<8))}var z=xn?X("span","\u200B"):X("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return z.setAttribute("cm-text",""),z}var fr;function mi(p){if(fr!=null)return fr;var g=te(p,document.createTextNode("A\u062EA")),z=re(g,0,1).getBoundingClientRect(),k=re(g,1,2).getBoundingClientRect();return le(p),!z||z.left==z.right?!1:fr=k.right-z.right<3}var Gi=`
|
|
248
248
|
|
|
249
249
|
b`.split(/\n/).length!=3?function(p){for(var g=0,z=[],k=p.length;g<=k;){var L=p.indexOf(`
|
|
@@ -932,7 +932,7 @@ Use Save As... to download, then click back to return to this page.`)&&(location
|
|
|
932
932
|
`),t=J("i"),i=oe(r),a=oe("?"),o=oe(`
|
|
933
933
|
This action cannot be undone.`)},m(l,s){S(l,e,s),S(l,t,s),j(t,i),j(t,a),S(l,o,s)},p(l,s){s&1&&r!==(r=l[0].name+"")&&_t(i,r)},d(l){l&&C(e),l&&C(t),l&&C(o)}}}function bnt(n){let e,t,r,i,a,o;e=new Sc({props:{$$slots:{control:[vnt],default:[gnt]},$$scope:{ctx:n}}});let l={okText:"Delete Automation",onOk:n[3],title:"Confirm Deletion",$$slots:{default:[_nt]},$$scope:{ctx:n}};r=new au({props:l}),n[5](r);let s={automation:n[0]};return a=new pnt({props:s}),n[6](a),{c(){O(e.$$.fragment),t=U(),O(r.$$.fragment),i=U(),O(a.$$.fragment)},m(u,c){H(e,u,c),S(u,t,c),H(r,u,c),S(u,i,c),H(a,u,c),o=!0},p(u,[c]){const f={};c&518&&(f.$$scope={dirty:c,ctx:u}),e.$set(f);const h={};c&513&&(h.$$scope={dirty:c,ctx:u}),r.$set(h);const m={};c&1&&(m.automation=u[0]),a.$set(m)},i(u){o||(b(e.$$.fragment,u),b(r.$$.fragment,u),b(a.$$.fragment,u),o=!0)},o(u){$(e.$$.fragment,u),$(r.$$.fragment,u),$(a.$$.fragment,u),o=!1},d(u){B(e,u),u&&C(t),n[5](null),B(r,u),u&&C(i),n[6](null),B(a,u)}}}function ynt(n,e,t){let r,i;Ne(n,Or,h=>t(7,r=h)),Ne(n,si,h=>t(8,i=h));let{automation:a}=e,o,l;async function s(){try{await Or.actions.delete(a),yt.success("Automation deleted successfully"),i("../automate")}catch{yt.error("Error deleting automation")}}async function u(){try{await Or.actions.duplicate(a),yt.success("Automation has been duplicated successfully"),i(`./${r.selectedAutomation.automation._id}`)}catch{yt.error("Error duplicating automation")}}function c(h){He[h?"unshift":"push"](()=>{o=h,t(1,o)})}function f(h){He[h?"unshift":"push"](()=>{l=h,t(2,l)})}return n.$$set=h=>{"automation"in h&&t(0,a=h.automation)},[a,o,l,s,u,c,f]}class $nt extends Re{constructor(e){super(),Ve(this,e,ynt,bnt,Oe,{automation:0})}}function YR(n,e,t){const r=n.slice();return r[5]=e[t],r[7]=t,r}function wnt(n){let e,t,r;return e=new $nt({props:{automation:n[5]}}),{c(){O(e.$$.fragment),t=U()},m(i,a){H(e,i,a),S(i,t,a),r=!0},p(i,a){const o={};a&1&&(o.automation=i[5]),e.$set(o)},i(i){r||(b(e.$$.fragment,i),r=!0)},o(i){$(e.$$.fragment,i),r=!1},d(i){B(e,i),i&&C(t)}}}function KR(n){let e,t;function r(){return n[3](n[5])}return e=new k5({props:{border:n[7]>0,icon:"ShareAndroid",text:n[5].name,selected:n[5]._id===n[1],$$slots:{default:[wnt]},$$scope:{ctx:n}}}),e.$on("click",r),{c(){O(e.$$.fragment)},m(i,a){H(e,i,a),t=!0},p(i,a){n=i;const o={};a&1&&(o.text=n[5].name),a&3&&(o.selected=n[5]._id===n[1]),a&257&&(o.$$scope={dirty:a,ctx:n}),e.$set(o)},i(i){t||(b(e.$$.fragment,i),t=!0)},o(i){$(e.$$.fragment,i),t=!1},d(i){B(e,i)}}}function knt(n){let e,t,r=n[0].automations.sort(XR),i=[];for(let o=0;o<r.length;o+=1)i[o]=KR(YR(n,r,o));const a=o=>$(i[o],1,1,()=>{i[o]=null});return{c(){e=J("div");for(let o=0;o<i.length;o+=1)i[o].c();D(e,"class","automations-list svelte-g64vb")},m(o,l){S(o,e,l);for(let s=0;s<i.length;s+=1)i[s].m(e,null);t=!0},p(o,[l]){if(l&7){r=o[0].automations.sort(XR);let s;for(s=0;s<r.length;s+=1){const u=YR(o,r,s);i[s]?(i[s].p(u,l),b(i[s],1)):(i[s]=KR(u),i[s].c(),b(i[s],1),i[s].m(e,null))}for(ze(),s=r.length;s<i.length;s+=1)a(s);Ae()}},i(o){if(!t){for(let l=0;l<r.length;l+=1)b(i[l]);t=!0}},o(o){i=i.filter(Boolean);for(let l=0;l<i.length;l+=1)$(i[l]);t=!1},d(o){o&&C(e),Dn(i,o)}}}const XR=n=>n.name;function znt(n,e,t){let r,i,a;Ne(n,si,s=>t(4,i=s)),Ne(n,Or,s=>t(0,a=s)),ar(async()=>{try{await Or.actions.fetch()}catch{yt.error("Error getting automations list")}});function o(s){Or.actions.select(s),i(`./${s._id}`)}const l=s=>o(s);return n.$$.update=()=>{var s,u;n.$$.dirty&1&&t(1,r=(u=(s=a.selectedAutomation)==null?void 0:s.automation)==null?void 0:u._id)},[a,r,o,l]}class Ant extends Re{constructor(e){super(),Ve(this,e,znt,knt,Oe,{})}}function JR(n,e,t){const r=n.slice();return r[17]=e[t][0],r[18]=e[t][1],r}function Mnt(n){let e;return{c(){e=oe(`Please name your automation, then select a trigger. Every automation must
|
|
934
934
|
start with a trigger.`)},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function Cnt(n){let e;return{c(){e=oe("Triggers")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function Snt(n){let e=n[18].name+"",t;return{c(){t=oe(e)},m(r,i){S(r,t,i)},p(r,i){i&8&&e!==(e=r[18].name+"")&&_t(t,e)},d(r){r&&C(t)}}}function ZR(n){let e,t,r,i,a,o,l,s,u,c;r=new dn({props:{name:n[18].icon}}),o=new xt({props:{size:"S",$$slots:{default:[Snt]},$$scope:{ctx:n}}});function f(){return n[13](n[18])}return{c(){e=J("div"),t=J("div"),O(r.$$.fragment),i=U(),a=J("span"),O(o.$$.fragment),l=U(),D(a,"class","icon-spacing svelte-d3iboa"),D(t,"class","item-body svelte-d3iboa"),D(e,"class","item svelte-d3iboa"),De(e,"selected",n[2]===n[18].name)},m(h,m){S(h,e,m),j(e,t),H(r,t,null),j(t,i),j(t,a),H(o,a,null),j(e,l),s=!0,u||(c=At(e,"click",f),u=!0)},p(h,m){n=h;const _={};m&8&&(_.name=n[18].icon),r.$set(_);const y={};m&2097160&&(y.$$scope={dirty:m,ctx:n}),o.$set(y),m&12&&De(e,"selected",n[2]===n[18].name)},i(h){s||(b(r.$$.fragment,h),b(o.$$.fragment,h),s=!0)},o(h){$(r.$$.fragment,h),$(o.$$.fragment,h),s=!1},d(h){h&&C(e),B(r),B(o),u=!1,c()}}}function Lnt(n){let e,t,r,i;e=new xt({props:{size:"S",$$slots:{default:[Cnt]},$$scope:{ctx:n}}});let a=n[3],o=[];for(let s=0;s<a.length;s+=1)o[s]=ZR(JR(n,a,s));const l=s=>$(o[s],1,1,()=>{o[s]=null});return{c(){O(e.$$.fragment),t=U(),r=J("div");for(let s=0;s<o.length;s+=1)o[s].c();D(r,"class","item-list svelte-d3iboa")},m(s,u){H(e,s,u),S(s,t,u),S(s,r,u);for(let c=0;c<o.length;c+=1)o[c].m(r,null);i=!0},p(s,u){const c={};if(u&2097152&&(c.$$scope={dirty:u,ctx:s}),e.$set(c),u&76){a=s[3];let f;for(f=0;f<a.length;f+=1){const h=JR(s,a,f);o[f]?(o[f].p(h,u),b(o[f],1)):(o[f]=ZR(h),o[f].c(),b(o[f],1),o[f].m(r,null))}for(ze(),f=a.length;f<o.length;f+=1)l(f);Ae()}},i(s){if(!i){b(e.$$.fragment,s);for(let u=0;u<a.length;u+=1)b(o[u]);i=!0}},o(s){$(e.$$.fragment,s),o=o.filter(Boolean);for(let u=0;u<o.length;u+=1)$(o[u]);i=!1},d(s){B(e,s),s&&C(t),s&&C(r),Dn(o,s)}}}function Ent(n){let e,t,r,i,a,o,l,s,u,c;e=new d_({props:{header:"You must publish your app to activate your automations.",message:"To test your automation before publishing, you can use the 'Run Test' functionality on the next screen."}}),r=new xt({props:{size:"XS",$$slots:{default:[Mnt]},$$scope:{ctx:n}}});function f(_){n[10](_)}function h(_){n[11](_)}let m={label:"Name"};return n[0]!==void 0&&(m.value=n[0]),n[4]!==void 0&&(m.error=n[4]),a=new En({props:m}),He.push(()=>nt(a,"value",f)),He.push(()=>nt(a,"error",h)),a.$on("change",n[12]),u=new Rt({props:{noPadding:!0,$$slots:{default:[Lnt]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment),t=U(),O(r.$$.fragment),i=U(),O(a.$$.fragment),s=U(),O(u.$$.fragment)},m(_,y){H(e,_,y),S(_,t,y),H(r,_,y),S(_,i,y),H(a,_,y),S(_,s,y),H(u,_,y),c=!0},p(_,y){const w={};y&2097152&&(w.$$scope={dirty:y,ctx:_}),r.$set(w);const A={};!o&&y&1&&(o=!0,A.value=_[0],rt(()=>o=!1)),!l&&y&16&&(l=!0,A.error=_[4],rt(()=>l=!1)),a.$set(A);const E={};y&2097164&&(E.$$scope={dirty:y,ctx:_}),u.$set(E)},i(_){c||(b(e.$$.fragment,_),b(r.$$.fragment,_),b(a.$$.fragment,_),b(u.$$.fragment,_),c=!0)},o(_){$(e.$$.fragment,_),$(r.$$.fragment,_),$(a.$$.fragment,_),$(u.$$.fragment,_),c=!1},d(_){B(e,_),_&&C(t),B(r,_),_&&C(i),B(a,_),_&&C(s),B(u,_)}}}function Tnt(n){let e,t;return e=new _r({props:{title:"Create Automation",confirmText:"Save",size:"M",onConfirm:n[5],disabled:!n[2]||!n[0],$$slots:{default:[Ent]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,[i]){const a={};i&5&&(a.disabled=!r[2]||!r[0]),i&2097183&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function Dnt(n,e,t){let r,i,a,o,l,s;Ne(n,Or,I=>t(8,o=I)),Ne(n,si,I=>t(16,l=I)),Ne(n,Fd,I=>t(9,s=I));let u,c,f=!1,h,{webhookModal:m}=e;async function _(){var I;try{await Or.actions.create({name:u,instanceId:r});const P=o.selectedAutomation.constructBlock("TRIGGER",h.stepId,h);Or.actions.addBlockToAutomation(P),h.stepId===c6.WEBHOOK&&m.show,await Or.actions.save((I=o.selectedAutomation)==null?void 0:I.automation),yt.success(`Automation ${u} created`),l(`./${o.selectedAutomation.automation._id}`)}catch{yt.error("Error creating automation")}}const y=I=>{h=I,t(2,c=I.name)};function w(I){u=I,t(0,u)}function A(I){i=I,t(4,i),t(1,f),t(0,u)}const E=()=>t(1,f=!0),T=I=>y(I);return n.$$set=I=>{"webhookModal"in I&&t(7,m=I.webhookModal)},n.$$.update=()=>{n.$$.dirty&512&&(r=s._id),n.$$.dirty&3&&t(4,i=f&&!u?"Please specify a name for the automation.":null),n.$$.dirty&256&&t(3,a=Object.entries(o.blockDefinitions.TRIGGER))},[u,f,c,a,i,_,y,m,o,s,w,A,E,T]}class OX extends Re{constructor(e){super(),Ve(this,e,Dnt,Tnt,Oe,{webhookModal:7})}}function Hnt(n){let e,t;return e=new OX({props:{webhookModal:n[1]}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&2&&(a.webhookModal=r[1]),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function Bnt(n){let e,t,r,i;e=new Ant({});let a={$$slots:{default:[Hnt]},$$scope:{ctx:n}};return r=new ir({props:a}),n[2](r),{c(){O(e.$$.fragment),t=U(),O(r.$$.fragment)},m(o,l){H(e,o,l),S(o,t,l),H(r,o,l),i=!0},p(o,l){const s={};l&10&&(s.$$scope={dirty:l,ctx:o}),r.$set(s)},i(o){i||(b(e.$$.fragment,o),b(r.$$.fragment,o),i=!0)},o(o){$(e.$$.fragment,o),$(r.$$.fragment,o),i=!1},d(o){B(e,o),o&&C(t),n[2](null),B(r,o)}}}function Ont(n){let e,t;return e=new x1({props:{title:"Automations",$$slots:{default:[Bnt]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&11&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function Int(n){let e,t,r,i,a,o;return t=new K2({props:{selected:"Automations",$$slots:{default:[Ont]},$$scope:{ctx:n}}}),a=new dn({props:{hoverable:!0,name:"AddCircle"}}),a.$on("click",function(){An(n[0].show)&&n[0].show.apply(this,arguments)}),{c(){e=J("div"),O(t.$$.fragment),r=U(),i=J("div"),O(a.$$.fragment),D(i,"class","add-button svelte-mcmub4"),D(e,"class","title svelte-mcmub4")},m(l,s){S(l,e,s),H(t,e,null),j(e,r),j(e,i),H(a,i,null),o=!0},p(l,[s]){n=l;const u={};s&11&&(u.$$scope={dirty:s,ctx:n}),t.$set(u)},i(l){o||(b(t.$$.fragment,l),b(a.$$.fragment,l),o=!0)},o(l){$(t.$$.fragment,l),$(a.$$.fragment,l),o=!1},d(l){l&&C(e),B(t),B(a)}}}function Pnt(n,e,t){let{modal:r}=e,{webhookModal:i}=e;function a(o){He[o?"unshift":"push"](()=>{r=o,t(0,r)})}return n.$$set=o=>{"modal"in o&&t(0,r=o.modal),"webhookModal"in o&&t(1,i=o.webhookModal)},[r,i,a]}class Vnt extends Re{constructor(e){super(),Ve(this,e,Pnt,Int,Oe,{modal:0,webhookModal:1})}}function QR(n,e,t){const r=n.slice();return r[8]=e[t],r[10]=t,r}function eN(n){var u;let e,t,r,i,a;function o(c){n[6](c)}let l={showTestStatus:!0,block:n[8],isTrigger:n[10]===0,testResult:(u=n[2])==null?void 0:u[n[10]]};n[3]!==void 0&&(l.showParameters=n[3]),e=new BX({props:l}),He.push(()=>nt(e,"showParameters",o));let s=n[3]&&n[3][n[8].id]&&tN(n);return{c(){O(e.$$.fragment),r=U(),s&&s.c(),i=$t()},m(c,f){H(e,c,f),S(c,r,f),s&&s.m(c,f),S(c,i,f),a=!0},p(c,f){var m;const h={};f&2&&(h.block=c[8]),f&4&&(h.testResult=(m=c[2])==null?void 0:m[c[10]]),!t&&f&8&&(t=!0,h.showParameters=c[3],rt(()=>t=!1)),e.$set(h),c[3]&&c[3][c[8].id]?s?(s.p(c,f),f&10&&b(s,1)):(s=tN(c),s.c(),b(s,1),s.m(i.parentNode,i)):s&&(ze(),$(s,1,1,()=>{s=null}),Ae())},i(c){a||(b(e.$$.fragment,c),b(s),a=!0)},o(c){$(e.$$.fragment,c),$(s),a=!1},d(c){B(e,c),c&&C(r),s&&s.d(c),c&&C(i)}}}function tN(n){var s,u;let e,t,r,i,a,o;e=new hi({props:{noMargin:!0}});let l=((u=(s=n[2])==null?void 0:s[n[10]])==null?void 0:u.outputs.iterations)&&nN(n);return a=new K2({props:{noHorizPadding:!0,selected:"Input",$$slots:{default:[xnt]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment),t=U(),l&&l.c(),r=U(),i=J("div"),O(a.$$.fragment),D(i,"class","tabs svelte-1iblsnb")},m(c,f){H(e,c,f),S(c,t,f),l&&l.m(c,f),S(c,r,f),S(c,i,f),H(a,i,null),o=!0},p(c,f){var m,_;(_=(m=c[2])==null?void 0:m[c[10]])!=null&&_.outputs.iterations?l?(l.p(c,f),f&4&&b(l,1)):(l=nN(c),l.c(),b(l,1),l.m(r.parentNode,r)):l&&(ze(),$(l,1,1,()=>{l=null}),Ae());const h={};f&2052&&(h.$$scope={dirty:f,ctx:c}),a.$set(h)},i(c){o||(b(e.$$.fragment,c),b(l),b(a.$$.fragment,c),o=!0)},o(c){$(e.$$.fragment,c),$(l),$(a.$$.fragment,c),o=!1},d(c){B(e,c),c&&C(t),l&&l.d(c),c&&C(r),c&&C(i),B(a)}}}function nN(n){let e,t,r,i,a,o;return t=new dn({props:{name:"Reuse"}}),a=new cn({props:{$$slots:{default:[Rnt]},$$scope:{ctx:n}}}),{c(){e=J("div"),O(t.$$.fragment),r=U(),i=J("div"),O(a.$$.fragment),yn(i,"margin-left","10px"),yn(e,"display","flex"),yn(e,"padding","10px 10px 0px 12px")},m(l,s){S(l,e,s),H(t,e,null),j(e,r),j(e,i),H(a,i,null),o=!0},p(l,s){const u={};s&2052&&(u.$$scope={dirty:s,ctx:l}),a.$set(u)},i(l){o||(b(t.$$.fragment,l),b(a.$$.fragment,l),o=!0)},o(l){$(t.$$.fragment,l),$(a.$$.fragment,l),o=!1},d(l){l&&C(e),B(t),B(a)}}}function Rnt(n){var a,o;let e,t=((o=(a=n[2])==null?void 0:a[n[10]])==null?void 0:o.outputs.iterations)+"",r,i;return{c(){e=oe("This loop ran "),r=oe(t),i=oe(" times.")},m(l,s){S(l,e,s),S(l,r,s),S(l,i,s)},p(l,s){var u,c;s&4&&t!==(t=((c=(u=l[2])==null?void 0:u[l[10]])==null?void 0:c.outputs.iterations)+"")&&_t(r,t)},d(l){l&&C(e),l&&C(r),l&&C(i)}}}function Nnt(n){var r,i;let e,t;return e=new F3({props:{minHeight:"80px",disabled:!0,value:Yv((i=(r=n[2])==null?void 0:r[n[10]])==null?void 0:i.inputs,"No input")}}),{c(){O(e.$$.fragment)},m(a,o){H(e,a,o),t=!0},p(a,o){var s,u;const l={};o&4&&(l.value=Yv((u=(s=a[2])==null?void 0:s[a[10]])==null?void 0:u.inputs,"No input")),e.$set(l)},i(a){t||(b(e.$$.fragment,a),t=!0)},o(a){$(e.$$.fragment,a),t=!1},d(a){B(e,a)}}}function Fnt(n){var r,i;let e,t;return e=new F3({props:{minHeight:"100px",disabled:!0,value:Yv((i=(r=n[2])==null?void 0:r[n[10]])==null?void 0:i.outputs,"No output")}}),{c(){O(e.$$.fragment)},m(a,o){H(e,a,o),t=!0},p(a,o){var s,u;const l={};o&4&&(l.value=Yv((u=(s=a[2])==null?void 0:s[a[10]])==null?void 0:u.outputs,"No output")),e.$set(l)},i(a){t||(b(e.$$.fragment,a),t=!0)},o(a){$(e.$$.fragment,a),t=!1},d(a){B(e,a)}}}function xnt(n){let e,t,r,i;return e=new x1({props:{title:"Input",$$slots:{default:[Nnt]},$$scope:{ctx:n}}}),r=new x1({props:{title:"Output",$$slots:{default:[Fnt]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment),t=U(),O(r.$$.fragment)},m(a,o){H(e,a,o),S(a,t,o),H(r,a,o),i=!0},p(a,o){const l={};o&2052&&(l.$$scope={dirty:o,ctx:a}),e.$set(l);const s={};o&2052&&(s.$$scope={dirty:o,ctx:a}),r.$set(s)},i(a){i||(b(e.$$.fragment,a),b(r.$$.fragment,a),i=!0)},o(a){$(e.$$.fragment,a),$(r.$$.fragment,a),i=!1},d(a){B(e,a),a&&C(t),B(r,a)}}}function rN(n){let e;return{c(){e=J("div"),D(e,"class","separator svelte-1iblsnb")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function iN(n){let e,t,r,i,a,o=n[8].stepId!==V3.LOOP&&eN(n),l=n[1].length-1!==n[10]&&rN();return{c(){e=J("div"),o&&o.c(),r=U(),l&&l.c(),i=$t(),D(e,"class","block svelte-1iblsnb"),D(e,"style",t=n[0]?`width: ${n[0]}`:"")},m(s,u){S(s,e,u),o&&o.m(e,null),S(s,r,u),l&&l.m(s,u),S(s,i,u),a=!0},p(s,u){s[8].stepId!==V3.LOOP?o?(o.p(s,u),u&2&&b(o,1)):(o=eN(s),o.c(),b(o,1),o.m(e,null)):o&&(ze(),$(o,1,1,()=>{o=null}),Ae()),(!a||u&1&&t!==(t=s[0]?`width: ${s[0]}`:""))&&D(e,"style",t),s[1].length-1!==s[10]?l||(l=rN(),l.c(),l.m(i.parentNode,i)):l&&(l.d(1),l=null)},i(s){a||(b(o),a=!0)},o(s){$(o),a=!1},d(s){s&&C(e),o&&o.d(),s&&C(r),l&&l.d(s),s&&C(i)}}}function jnt(n){let e,t,r=n[1],i=[];for(let o=0;o<r.length;o+=1)i[o]=iN(QR(n,r,o));const a=o=>$(i[o],1,1,()=>{i[o]=null});return{c(){e=J("div");for(let o=0;o<i.length;o+=1)i[o].c();D(e,"class","container svelte-1iblsnb")},m(o,l){S(o,e,l);for(let s=0;s<i.length;s+=1)i[s].m(e,null);t=!0},p(o,[l]){if(l&15){r=o[1];let s;for(s=0;s<r.length;s+=1){const u=QR(o,r,s);i[s]?(i[s].p(u,l),b(i[s],1)):(i[s]=iN(u),i[s].c(),b(i[s],1),i[s].m(e,null))}for(ze(),s=r.length;s<i.length;s+=1)a(s);Ae()}},i(o){if(!t){for(let l=0;l<r.length;l+=1)b(i[l]);t=!0}},o(o){i=i.filter(Boolean);for(let l=0;l<i.length;l+=1)$(i[l]);t=!1},d(o){o&&C(e),Dn(i,o)}}}function Yv(n,e){return n?JSON.stringify(n,null,2):e}function Unt(n,e,t){let r,{automation:i}=e,{testResults:a}=e,{width:o="400px"}=e,l,s;function u(f){return f==null?void 0:f.steps.filter(h=>h.stepId!==V3.LOOP||[])}function c(f){l=f,t(3,l)}return n.$$set=f=>{"automation"in f&&t(4,i=f.automation),"testResults"in f&&t(5,a=f.testResults),"width"in f&&t(0,o=f.width)},n.$$.update=()=>{if(n.$$.dirty&32&&t(2,r=u(a)),n.$$.dirty&22){if(t(1,s=[]),i)i.definition.trigger&&s.push(i.definition.trigger),t(1,s=s.concat(i.definition.steps||[]).filter(f=>f.stepId!==V3.LOOP));else if(r){t(1,s=r||[]);let f=0;for(let h of s)h.id=f++}}},[o,s,r,l,i,a,c]}class IX extends Re{constructor(e){super(),Ve(this,e,Unt,jnt,Oe,{automation:4,testResults:5,width:0})}}function qnt(n){let e,t,r,i,a,o,l,s,u,c,f,h,m;return r=new dn({props:{name:"MultipleCheck"}}),s=new dn({props:{hoverable:!0,name:"Close"}}),s.$on("click",n[4]),c=new hi({}),h=new IX({props:{automation:n[0],testResults:n[2]}}),{c(){e=J("div"),t=J("div"),O(r.$$.fragment),i=U(),a=J("div"),a.textContent="Test Details",o=U(),l=J("div"),O(s.$$.fragment),u=U(),O(c.$$.fragment),f=U(),O(h.$$.fragment),yn(a,"padding-left","var(--spacing-l)"),D(t,"class","title-text svelte-nwwj95"),yn(l,"padding-right","var(--spacing-xl)"),D(e,"class","title svelte-nwwj95")},m(_,y){S(_,e,y),j(e,t),H(r,t,null),j(t,i),j(t,a),j(e,o),j(e,l),H(s,l,null),S(_,u,y),H(c,_,y),S(_,f,y),H(h,_,y),m=!0},p(_,[y]){const w={};y&1&&(w.automation=_[0]),y&4&&(w.testResults=_[2]),h.$set(w)},i(_){m||(b(r.$$.fragment,_),b(s.$$.fragment,_),b(c.$$.fragment,_),b(h.$$.fragment,_),m=!0)},o(_){$(r.$$.fragment,_),$(s.$$.fragment,_),$(c.$$.fragment,_),$(h.$$.fragment,_),m=!1},d(_){_&&C(e),B(r),B(s),_&&C(u),B(c,_),_&&C(f),B(h,_)}}}function Wnt(n,e,t){let r;Ne(n,Or,s=>t(1,r=s));let{automation:i}=e,a,o;const l=async()=>{Y1(Or,r.showTestPanel=!1,r)};return n.$$set=s=>{"automation"in s&&t(0,i=s.automation)},n.$$.update=()=>{var s;n.$$.dirty&11&&(t(3,a=[]),i?(i.definition.trigger&&a.push(i.definition.trigger),t(3,a=a.concat(i.definition.steps||[]).filter(u=>u.stepId!==V3.LOOP))):r.selectedAutomation&&t(0,i=r.selectedAutomation)),n.$$.dirty&2&&t(2,o=(s=r.selectedAutomation)==null?void 0:s.testResults)},[i,r,o,a,l]}class Gnt extends Re{constructor(e){super(),Ve(this,e,Wnt,qnt,Oe,{automation:0})}}function Ynt(n){let e,t,r,i;return r=new Rt({props:{gap:"S",justifyItems:"center",$$slots:{default:[Qnt]},$$scope:{ctx:n}}}),{c(){e=J("div"),t=J("div"),O(r.$$.fragment),D(t,"class","main svelte-374m3f"),D(e,"class","centered svelte-374m3f")},m(a,o){S(a,e,o),j(e,t),H(r,t,null),i=!0},p(a,o){const l={};o&258&&(l.$$scope={dirty:o,ctx:a}),r.$set(l)},i(a){i||(b(r.$$.fragment,a),i=!0)},o(a){$(r.$$.fragment,a),i=!1},d(a){a&&C(e),B(r)}}}function Knt(n){let e;const t=n[4].default,r=Xn(t,n,n[8],null);return{c(){r&&r.c()},m(i,a){r&&r.m(i,a),e=!0},p(i,a){r&&r.p&&(!e||a&256)&&Zn(r,t,i,i[8],e?Jn(t,i[8],a,null):Qn(i[8]),null)},i(i){e||(b(r,i),e=!0)},o(i){$(r,i),e=!1},d(i){r&&r.d(i)}}}function Xnt(n){let e;return{c(){e=oe("You have no automations")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function Jnt(n){let e;return{c(){e=oe("Let's fix that. Call the bots!")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function Znt(n){let e;return{c(){e=oe("Create automation")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function Qnt(n){let e,t,r,i,a,o,l,s,u;return i=new Rn({props:{size:"M",$$slots:{default:[Xnt]},$$scope:{ctx:n}}}),o=new xt({props:{size:"M",$$slots:{default:[Jnt]},$$scope:{ctx:n}}}),s=new $n({props:{size:"M",cta:!0,$$slots:{default:[Znt]},$$scope:{ctx:n}}}),s.$on("click",n[5]),{c(){e=lt("svg"),t=lt("use"),r=U(),O(i.$$.fragment),a=U(),O(o.$$.fragment),l=U(),O(s.$$.fragment),Wr(t,"xlink:href","#spectrum-icon-18-WorkflowAdd"),D(e,"width","60px"),D(e,"height","60px"),D(e,"class","spectrum-Icon"),D(e,"focusable","false")},m(c,f){S(c,e,f),j(e,t),S(c,r,f),H(i,c,f),S(c,a,f),H(o,c,f),S(c,l,f),H(s,c,f),u=!0},p(c,f){const h={};f&256&&(h.$$scope={dirty:f,ctx:c}),i.$set(h);const m={};f&256&&(m.$$scope={dirty:f,ctx:c}),o.$set(m);const _={};f&256&&(_.$$scope={dirty:f,ctx:c}),s.$set(_)},i(c){u||(b(i.$$.fragment,c),b(o.$$.fragment,c),b(s.$$.fragment,c),u=!0)},o(c){$(i.$$.fragment,c),$(o.$$.fragment,c),$(s.$$.fragment,c),u=!1},d(c){c&&C(e),c&&C(r),B(i,c),c&&C(a),B(o,c),c&&C(l),B(s,c)}}}function aN(n){let e,t,r;return t=new Gnt({props:{automation:n[3]}}),{c(){e=J("div"),O(t.$$.fragment),D(e,"class","setup svelte-374m3f")},m(i,a){S(i,e,a),H(t,e,null),r=!0},p(i,a){const o={};a&8&&(o.automation=i[3]),t.$set(o)},i(i){r||(b(t.$$.fragment,i),r=!0)},o(i){$(t.$$.fragment,i),r=!1},d(i){i&&C(e),B(t)}}}function ert(n){let e,t;return e=new OX({props:{webhookModal:n[2]}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&4&&(a.webhookModal=r[2]),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function trt(n){let e,t;return e=new Xz({}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function nrt(n){let e,t,r,i,a,o,l,s,u,c,f,h,m;r=new Vnt({props:{modal:n[1],webhookModal:n[2]}});const _=[Knt,Ynt],y=[];function w(I,P){return I[3]?0:1}o=w(n),l=y[o]=_[o](n);let A=n[0].showTestPanel&&aN(n),E={$$slots:{default:[ert]},$$scope:{ctx:n}};c=new ir({props:E}),n[6](c);let T={width:"30%",$$slots:{default:[trt]},$$scope:{ctx:n}};return h=new ir({props:T}),n[7](h),{c(){e=J("div"),t=J("div"),O(r.$$.fragment),i=U(),a=J("div"),l.c(),s=U(),A&&A.c(),u=U(),O(c.$$.fragment),f=U(),O(h.$$.fragment),D(t,"class","nav svelte-374m3f"),D(a,"class","content svelte-374m3f"),D(e,"class","root svelte-374m3f")},m(I,P){S(I,e,P),j(e,t),H(r,t,null),j(e,i),j(e,a),y[o].m(a,null),j(e,s),A&&A.m(e,null),j(e,u),H(c,e,null),j(e,f),H(h,e,null),m=!0},p(I,[P]){const x={};P&2&&(x.modal=I[1]),P&4&&(x.webhookModal=I[2]),r.$set(x);let F=o;o=w(I),o===F?y[o].p(I,P):(ze(),$(y[F],1,1,()=>{y[F]=null}),Ae(),l=y[o],l?l.p(I,P):(l=y[o]=_[o](I),l.c()),b(l,1),l.m(a,null)),I[0].showTestPanel?A?(A.p(I,P),P&1&&b(A,1)):(A=aN(I),A.c(),b(A,1),A.m(e,u)):A&&(ze(),$(A,1,1,()=>{A=null}),Ae());const G={};P&260&&(G.$$scope={dirty:P,ctx:I}),c.$set(G);const W={};P&256&&(W.$$scope={dirty:P,ctx:I}),h.$set(W)},i(I){m||(b(r.$$.fragment,I),b(l),b(A),b(c.$$.fragment,I),b(h.$$.fragment,I),m=!0)},o(I){$(r.$$.fragment,I),$(l),$(A),$(c.$$.fragment,I),$(h.$$.fragment,I),m=!1},d(I){I&&C(e),B(r),y[o].d(),A&&A.d(),n[6](null),B(c),n[7](null),B(h)}}}function rrt(n,e,t){let r,i;Ne(n,Or,h=>t(0,i=h));let{$$slots:a={},$$scope:o}=e,l,s;ar(()=>{Y1(Or,i.showTestPanel=!1,i)});const u=()=>l.show();function c(h){He[h?"unshift":"push"](()=>{l=h,t(1,l)})}function f(h){He[h?"unshift":"push"](()=>{s=h,t(2,s)})}return n.$$set=h=>{"$$scope"in h&&t(8,o=h.$$scope)},n.$$.update=()=>{var h;n.$$.dirty&1&&t(3,r=((h=i.selectedAutomation)==null?void 0:h.automation)||i.automations[0])},[i,l,s,r,a,u,c,f,o]}class irt extends Re{constructor(e){super(),Ve(this,e,rrt,nrt,Oe,{})}}function art(n){let e,t,r,i,a,o,l;function s(c){n[4](c)}let u={};return n[2]!==void 0&&(u.value=n[2]),a=new En({props:u}),He.push(()=>nt(a,"value",s)),{c(){e=J("span"),e.textContent=`The changes you have made will be deleted and the application reverted
|
|
935
|
-
back to its production state.`,t=U(),r=J("span"),r.textContent="Please enter your app name to continue.",i=U(),O(a.$$.fragment)},m(c,f){S(c,e,f),S(c,t,f),S(c,r,f),S(c,i,f),H(a,c,f),l=!0},p(c,f){const h={};!o&&f&4&&(o=!0,h.value=c[2],rt(()=>o=!1)),a.$set(h)},i(c){l||(b(a.$$.fragment,c),l=!0)},o(c){$(a.$$.fragment,c),l=!1},d(c){c&&C(e),c&&C(t),c&&C(r),c&&C(i),B(a,c)}}}function ort(n){let e,t;return e=new _r({props:{title:"Revert Changes",confirmText:"Revert",onConfirm:n[3],disabled:n[2]!==n[0].name,$$slots:{default:[art]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&5&&(a.disabled=r[2]!==r[0].name),i&132&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function lrt(n){let e,t,r,i;e=new dn({props:{name:"Revert",hoverable:!0,tooltip:"Revert changes",dataCy:"revert-application-topnav"}}),e.$on("click",function(){An(n[1].show)&&n[1].show.apply(this,arguments)});let a={$$slots:{default:[ort]},$$scope:{ctx:n}};return r=new ir({props:a}),n[5](r),{c(){O(e.$$.fragment),t=U(),O(r.$$.fragment)},m(o,l){H(e,o,l),S(o,t,l),H(r,o,l),i=!0},p(o,[l]){n=o;const s={};l&133&&(s.$$scope={dirty:l,ctx:n}),r.$set(s)},i(o){i||(b(e.$$.fragment,o),b(r.$$.fragment,o),i=!0)},o(o){$(e.$$.fragment,o),$(r.$$.fragment,o),i=!1},d(o){B(e,o),o&&C(t),n[5](null),B(r,o)}}}function srt(n,e,t){let r,i;Ne(n,nn,c=>t(0,i=c));let a,o;const l=async()=>{try{await tn.revertAppChanges(r);const c=await tn.fetchAppPackage(r);await nn.actions.initialise(c),yt.info("Changes reverted successfully")}catch(c){yt.error(`Error reverting changes: ${c}`)}};function s(c){o=c,t(2,o)}function u(c){He[c?"unshift":"push"](()=>{a=c,t(1,a)})}return n.$$.update=()=>{n.$$.dirty&1&&(r=i.appId)},[i,a,o,l,s,u]}class urt extends Re{constructor(e){super(),Ve(this,e,srt,lrt,Oe,{})}}const crt="@budibase/client",frt="2.0.
|
|
935
|
+
back to its production state.`,t=U(),r=J("span"),r.textContent="Please enter your app name to continue.",i=U(),O(a.$$.fragment)},m(c,f){S(c,e,f),S(c,t,f),S(c,r,f),S(c,i,f),H(a,c,f),l=!0},p(c,f){const h={};!o&&f&4&&(o=!0,h.value=c[2],rt(()=>o=!1)),a.$set(h)},i(c){l||(b(a.$$.fragment,c),l=!0)},o(c){$(a.$$.fragment,c),l=!1},d(c){c&&C(e),c&&C(t),c&&C(r),c&&C(i),B(a,c)}}}function ort(n){let e,t;return e=new _r({props:{title:"Revert Changes",confirmText:"Revert",onConfirm:n[3],disabled:n[2]!==n[0].name,$$slots:{default:[art]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&5&&(a.disabled=r[2]!==r[0].name),i&132&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function lrt(n){let e,t,r,i;e=new dn({props:{name:"Revert",hoverable:!0,tooltip:"Revert changes",dataCy:"revert-application-topnav"}}),e.$on("click",function(){An(n[1].show)&&n[1].show.apply(this,arguments)});let a={$$slots:{default:[ort]},$$scope:{ctx:n}};return r=new ir({props:a}),n[5](r),{c(){O(e.$$.fragment),t=U(),O(r.$$.fragment)},m(o,l){H(e,o,l),S(o,t,l),H(r,o,l),i=!0},p(o,[l]){n=o;const s={};l&133&&(s.$$scope={dirty:l,ctx:n}),r.$set(s)},i(o){i||(b(e.$$.fragment,o),b(r.$$.fragment,o),i=!0)},o(o){$(e.$$.fragment,o),$(r.$$.fragment,o),i=!1},d(o){B(e,o),o&&C(t),n[5](null),B(r,o)}}}function srt(n,e,t){let r,i;Ne(n,nn,c=>t(0,i=c));let a,o;const l=async()=>{try{await tn.revertAppChanges(r);const c=await tn.fetchAppPackage(r);await nn.actions.initialise(c),yt.info("Changes reverted successfully")}catch(c){yt.error(`Error reverting changes: ${c}`)}};function s(c){o=c,t(2,o)}function u(c){He[c?"unshift":"push"](()=>{a=c,t(1,a)})}return n.$$.update=()=>{n.$$.dirty&1&&(r=i.appId)},[i,a,o,l,s,u]}class urt extends Re{constructor(e){super(),Ve(this,e,srt,lrt,Oe,{})}}const crt="@budibase/client",frt="2.0.34",prt="MPL-2.0",drt="dist/budibase-client.js",hrt="dist/budibase-client.js",mrt="module",grt="src/index.js",vrt={".":{import:"./dist/budibase-client.js",require:"./dist/budibase-client.js"},"./package.json":"./package.json","./manifest.json":"./manifest.json"},_rt={build:"rollup -c","dev:builder":"rollup -cw"},brt={"@budibase/bbui":"^2.0.34","@budibase/frontend-core":"^2.0.34","@budibase/string-templates":"^2.0.34","@spectrum-css/button":"^3.0.3","@spectrum-css/card":"^3.0.3","@spectrum-css/divider":"^1.0.3","@spectrum-css/link":"^3.1.3","@spectrum-css/page":"^3.0.1","@spectrum-css/tag":"^3.1.4","@spectrum-css/typography":"^3.0.2","@spectrum-css/vars":"^3.0.1",apexcharts:"^3.22.1",dayjs:"^1.10.5",downloadjs:"1.4.7",leaflet:"^1.7.1",regexparam:"^1.3.0","sanitize-html":"^2.7.0",screenfull:"^6.0.1",shortid:"^2.2.15","socket.io-client":"^4.5.1",svelte:"^3.49.0","svelte-apexcharts":"^1.0.2","svelte-flatpickr":"^3.1.0","svelte-spa-router":"^3.0.5"},yrt={"@rollup/plugin-alias":"^3.1.5","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-node-resolve":"^11.2.1",postcss:"^8.2.10",rollup:"^2.44.0","rollup-plugin-json":"^4.0.0","rollup-plugin-polyfill-node":"^0.8.0","rollup-plugin-postcss":"^4.0.0","rollup-plugin-svelte":"^7.1.0","rollup-plugin-svg":"^2.0.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-visualizer":"^5.5.4"},$rt="d1836a898cab3f8ab80ee6d8f42be1a9eed7dcdc",Ed={name:crt,version:frt,license:prt,module:drt,main:hrt,type:mrt,svelte:grt,exports:vrt,scripts:_rt,dependencies:brt,devDependencies:yrt,gitHead:$rt};function oN(n){let e,t;return e=new x3({props:{hoverable:!0,notice:!0,$$slots:{default:[wrt]},$$scope:{ctx:n}}}),e.$on("click",function(){An(n[2].show)&&n[2].show.apply(this,arguments)}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){n=r;const a={};i&4096&&(a.$$scope={dirty:i,ctx:n}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function wrt(n){let e;return{c(){e=oe("Update available")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function krt(n){let e,t;return e=new xt({props:{size:"S",$$slots:{default:[Art]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&4098&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function zrt(n){let e,t;return e=new xt({props:{size:"S",$$slots:{default:[Mrt]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&4098&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function Art(n){let e,t,r=n[1].version+"",i,a;return{c(){e=oe("This app is currently using version "),t=J("b"),i=oe(r),a=oe(` which is the
|
|
936
936
|
latest version available.`)},m(o,l){S(o,e,l),S(o,t,l),j(t,i),S(o,a,l)},p(o,l){l&2&&r!==(r=o[1].version+"")&&_t(i,r)},d(o){o&&C(e),o&&C(t),o&&C(a)}}}function Mrt(n){let e,t,r=n[1].version+"",i,a,o,l;return{c(){e=oe("This app is currently using version "),t=J("b"),i=oe(r),a=oe(`, but version
|
|
937
937
|
`),o=J("b"),o.textContent=`${Ed.version}`,l=oe(` is available. Updates can contain new features,
|
|
938
938
|
performance improvements and bug fixes.`)},m(s,u){S(s,e,u),S(s,t,u),j(t,i),S(s,a,u),S(s,o,u),S(s,l,u)},p(s,u){u&2&&r!==(r=s[1].version+"")&&_t(i,r)},d(s){s&&C(e),s&&C(t),s&&C(a),s&&C(o),s&&C(l)}}}function lN(n){let e,t;return e=new xt({props:{size:"S",$$slots:{default:[Crt]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&4098&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function Crt(n){let e,t,r=n[1].revertableVersion+"",i,a;return{c(){e=oe(`You can revert this app to version
|
package/builder/index.html
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap"
|
|
11
11
|
rel="stylesheet"
|
|
12
12
|
/>
|
|
13
|
-
<script type="module" crossorigin src="/builder/assets/index.
|
|
13
|
+
<script type="module" crossorigin src="/builder/assets/index.c499270c.js"></script>
|
|
14
14
|
<link rel="stylesheet" href="/builder/assets/index.dfa4073c.css">
|
|
15
15
|
</head>
|
|
16
16
|
<body id="app">
|
package/coverage/clover.xml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<coverage generated="
|
|
3
|
-
<project timestamp="
|
|
2
|
+
<coverage generated="1666605253620" clover="3.2.0">
|
|
3
|
+
<project timestamp="1666605253620" name="All files">
|
|
4
4
|
<metrics statements="4120" coveredstatements="2996" conditionals="1770" coveredconditionals="972" methods="614" coveredmethods="430" elements="6504" coveredelements="4398" complexity="0" loc="4120" ncloc="4120" packages="22" files="123" classes="123"/>
|
|
5
5
|
<package name="api">
|
|
6
6
|
<metrics statements="35" coveredstatements="34" conditionals="5" coveredconditionals="2" methods="4" coveredmethods="4"/>
|
|
@@ -232,7 +232,7 @@ exports.update = async function (ctx) {
|
|
|
232
232
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
233
233
|
Code coverage generated by
|
|
234
234
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
235
|
-
at
|
|
235
|
+
at Mon Oct 24 2022 09:54:13 GMT+0000 (Coordinated Universal Time)
|
|
236
236
|
</div>
|
|
237
237
|
<script src="../../prettify.js"></script>
|
|
238
238
|
<script>
|
|
@@ -925,7 +925,7 @@ exports.test = async function (ctx) {
|
|
|
925
925
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
926
926
|
Code coverage generated by
|
|
927
927
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
928
|
-
at
|
|
928
|
+
at Mon Oct 24 2022 09:54:13 GMT+0000 (Coordinated Universal Time)
|
|
929
929
|
</div>
|
|
930
930
|
<script src="../../prettify.js"></script>
|
|
931
931
|
<script>
|
|
@@ -127,7 +127,7 @@ exports.exportAppDump = async function (ctx) {
|
|
|
127
127
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
128
128
|
Code coverage generated by
|
|
129
129
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
130
|
-
at
|
|
130
|
+
at Mon Oct 24 2022 09:54:13 GMT+0000 (Coordinated Universal Time)
|
|
131
131
|
</div>
|
|
132
132
|
<script src="../../prettify.js"></script>
|
|
133
133
|
<script>
|
|
@@ -400,7 +400,7 @@ exports.importApps = <span class="fstat-no" title="function not covered" >as</sp
|
|
|
400
400
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
401
401
|
Code coverage generated by
|
|
402
402
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
403
|
-
at
|
|
403
|
+
at Mon Oct 24 2022 09:54:13 GMT+0000 (Coordinated Universal Time)
|
|
404
404
|
</div>
|
|
405
405
|
<script src="../../prettify.js"></script>
|
|
406
406
|
<script>
|
|
@@ -919,7 +919,7 @@ const buildSchemaHelper = <span class="fstat-no" title="function not covered" >a
|
|
|
919
919
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
920
920
|
Code coverage generated by
|
|
921
921
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
922
|
-
at
|
|
922
|
+
at Mon Oct 24 2022 09:54:13 GMT+0000 (Coordinated Universal Time)
|
|
923
923
|
</div>
|
|
924
924
|
<script src="../../prettify.js"></script>
|
|
925
925
|
<script>
|
|
@@ -475,7 +475,7 @@ exports.getBudibaseVersion = async ctx => {
|
|
|
475
475
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
476
476
|
Code coverage generated by
|
|
477
477
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
478
|
-
at
|
|
478
|
+
at Mon Oct 24 2022 09:54:13 GMT+0000 (Coordinated Universal Time)
|
|
479
479
|
</div>
|
|
480
480
|
<script src="../../prettify.js"></script>
|
|
481
481
|
<script>
|
|
@@ -341,7 +341,7 @@
|
|
|
341
341
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
342
342
|
Code coverage generated by
|
|
343
343
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
344
|
-
at
|
|
344
|
+
at Mon Oct 24 2022 09:54:13 GMT+0000 (Coordinated Universal Time)
|
|
345
345
|
</div>
|
|
346
346
|
<script src="../../prettify.js"></script>
|
|
347
347
|
<script>
|
|
@@ -112,7 +112,7 @@ exports.find = async function (ctx) {
|
|
|
112
112
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
113
113
|
Code coverage generated by
|
|
114
114
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
115
|
-
at
|
|
115
|
+
at Mon Oct 24 2022 09:54:13 GMT+0000 (Coordinated Universal Time)
|
|
116
116
|
</div>
|
|
117
117
|
<script src="../../prettify.js"></script>
|
|
118
118
|
<script>
|
|
@@ -211,7 +211,7 @@ exports.destroy = async function (ctx) {
|
|
|
211
211
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
212
212
|
Code coverage generated by
|
|
213
213
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
214
|
-
at
|
|
214
|
+
at Mon Oct 24 2022 09:54:13 GMT+0000 (Coordinated Universal Time)
|
|
215
215
|
</div>
|
|
216
216
|
<script src="../../prettify.js"></script>
|
|
217
217
|
<script>
|
|
@@ -193,7 +193,7 @@ exports.getMetadata = async ctx => {
|
|
|
193
193
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
194
194
|
Code coverage generated by
|
|
195
195
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
196
|
-
at
|
|
196
|
+
at Mon Oct 24 2022 09:54:13 GMT+0000 (Coordinated Universal Time)
|
|
197
197
|
</div>
|
|
198
198
|
<script src="../../prettify.js"></script>
|
|
199
199
|
<script>
|
|
@@ -109,7 +109,7 @@ exports.fetchDefinitions = <span class="fstat-no" title="function not covered" >
|
|
|
109
109
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
110
110
|
Code coverage generated by
|
|
111
111
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
112
|
-
at
|
|
112
|
+
at Mon Oct 24 2022 09:54:13 GMT+0000 (Coordinated Universal Time)
|
|
113
113
|
</div>
|
|
114
114
|
<script src="../../prettify.js"></script>
|
|
115
115
|
<script>
|
|
@@ -595,7 +595,7 @@ exports.removePermission = async function (ctx) {
|
|
|
595
595
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
596
596
|
Code coverage generated by
|
|
597
597
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
598
|
-
at
|
|
598
|
+
at Mon Oct 24 2022 09:54:13 GMT+0000 (Coordinated Universal Time)
|
|
599
599
|
</div>
|
|
600
600
|
<script src="../../prettify.js"></script>
|
|
601
601
|
<script>
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
102
102
|
Code coverage generated by
|
|
103
103
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
104
|
-
at
|
|
104
|
+
at Mon Oct 24 2022 09:54:13 GMT+0000 (Coordinated Universal Time)
|
|
105
105
|
</div>
|
|
106
106
|
<script src="../../../prettify.js"></script>
|
|
107
107
|
<script>
|
|
@@ -220,7 +220,7 @@ exports.generateQueryPreviewValidation = () => {
|
|
|
220
220
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
221
221
|
Code coverage generated by
|
|
222
222
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
223
|
-
at
|
|
223
|
+
at Mon Oct 24 2022 09:54:13 GMT+0000 (Coordinated Universal Time)
|
|
224
224
|
</div>
|
|
225
225
|
<script src="../../../prettify.js"></script>
|
|
226
226
|
<script>
|