UNPKG

doc-red

Version:

A plugin for Node-RED which helps to documentate and enhance your workspace.

1 lines 98.2 kB
<script type=text/javascript>"use strict";let component_Doc_red;{const e=function(e,t){try{if("object"!=typeof e)return;let n="400px";t&&t.minWidth&&(n=t.minWidth),e.__clone||(e.__clone=window.$.extend(!0,{},e)),component_Doc_red=new Yn({target:document.getElementById("doc-red-svelte-container"),props:{node:e.__clone}}),document.getElementById("doc-red-svelte-container").style.width=n;if(!!!e.onchange){const t=e._def.oneditresize;e._def.oneditresize=function(n){document.getElementById("doc-red-svelte-container").style.width="auto",t&&t(n),e._def.oneditresize=t}}}catch(e){console.log(e)}};function t(){}const n=e=>e;function o(e,t){for(const n in t)e[n]=t[n];return e}function i(e){return e()}function l(){return Object.create(null)}function r(e){e.forEach(i)}function s(e){return"function"==typeof e}function c(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let a;function d(e,t){return e===t||(a||(a=document.createElement("a")),a.href=t,e===a.href)}function u(e,t,n,o){if(e){const i=p(e,t,n,o);return e[0](i)}}function p(e,t,n,i){return e[1]&&i?o(n.ctx.slice(),e[1](i(t))):n.ctx}function f(e,t,n,o){return e[2],t.dirty}function h(e,t,n,o,i,l){if(i){const r=p(t,n,o,l);e.p(r,i)}}function m(e){if(e.ctx.length>32){const t=[],n=e.ctx.length/32;for(let e=0;e<n;e++)t[e]=-1;return t}return-1}function v(e){return null==e?"":e}const b="undefined"!=typeof window;let g=b?()=>window.performance.now():()=>Date.now(),$=b?e=>requestAnimationFrame(e):t;const w=new Set;function y(e){w.forEach((t=>{t.c(e)||(w.delete(t),t.f())})),0!==w.size&&$(y)}function x(e){let t;return 0===w.size&&$(y),{promise:new Promise((n=>{w.add(t={c:e,f:n})})),abort(){w.delete(t)}}}function k(e,t){e.appendChild(t)}function z(e,t,n){const o=D(e);if(!o.getElementById(t)){const e=I("style");e.id=t,e.textContent=n,R(o,e)}}function D(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function E(e){const t=I("style");return t.textContent="/* empty */",R(D(e),t),t.sheet}function R(e,t){return k(e.head||e,t),t.sheet}function _(e,t,n){e.insertBefore(t,n||null)}function T(e){e.parentNode&&e.parentNode.removeChild(e)}function O(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function I(e){return document.createElement(e)}function L(e){return document.createTextNode(e)}function C(){return L(" ")}function H(){return L("")}function N(e,t,n,o){return e.addEventListener(t,n,o),()=>e.removeEventListener(t,n,o)}function P(e){return function(t){return t.preventDefault(),e.call(this,t)}}function W(e){return function(t){return t.stopPropagation(),e.call(this,t)}}function B(e){return function(t){t.target===this&&e.call(this,t)}}function M(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function S(e){return""===e?null:+e}function A(e){return Array.from(e.childNodes)}function Z(e,t){t=""+t,e.data!==t&&(e.data=t)}function q(e,t){e.value=null==t?"":t}function j(e,t,n,o){null==n?e.style.removeProperty(t):e.style.setProperty(t,n,"")}function F(e,t,n){for(let n=0;n<e.options.length;n+=1){const o=e.options[n];if(o.__value===t)return void(o.selected=!0)}n&&void 0===t||(e.selectedIndex=-1)}function G(e){const t=e.querySelector(":checked");return t&&t.__value}function U(e,t,n){e.classList.toggle(t,!!n)}function V(e,t,{bubbles:n=!1,cancelable:o=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:o})}class X{is_svg=!1;e=void 0;n=void 0;t=void 0;a=void 0;constructor(e=!1){this.is_svg=e,this.e=this.n=null}c(e){this.h(e)}m(e,t,n=null){var o;this.e||(this.is_svg?this.e=(o=t.nodeName,document.createElementNS("http://www.w3.org/2000/svg",o)):this.e=I(11===t.nodeType?"TEMPLATE":t.nodeName),this.t="TEMPLATE"!==t.tagName?t:t.content,this.c(e)),this.i(n)}h(e){this.e.innerHTML=e,this.n=Array.from("TEMPLATE"===this.e.nodeName?this.e.content.childNodes:this.e.childNodes)}i(e){for(let t=0;t<this.n.length;t+=1)_(this.t,this.n[t],e)}p(e){this.d(),this.h(e),this.i(this.a)}d(){this.n.forEach(T)}}const J=new Map;let K,Q=0;function Y(e){let t=5381,n=e.length;for(;n--;)t=(t<<5)-t^e.charCodeAt(n);return t>>>0}function ee(e,t){const n={stylesheet:E(t),rules:{}};return J.set(e,n),n}function te(e,t,n,o,i,l,r,s=0){const c=16.666/o;let a="{\n";for(let e=0;e<=1;e+=c){const o=t+(n-t)*l(e);a+=100*e+`%{${r(o,1-o)}}\n`}const d=a+`100% {${r(n,1-n)}}\n}`,u=`__svelte_${Y(d)}_${s}`,p=D(e),{stylesheet:f,rules:h}=J.get(p)||ee(p,e);h[u]||(h[u]=!0,f.insertRule(`@keyframes ${u} ${d}`,f.cssRules.length));const m=e.style.animation||"";return e.style.animation=`${m?`${m}, `:""}${u} ${o}ms linear ${i}ms 1 both`,Q+=1,u}function ne(e,t){const n=(e.style.animation||"").split(", "),o=n.filter(t?e=>e.indexOf(t)<0:e=>-1===e.indexOf("__svelte")),i=n.length-o.length;i&&(e.style.animation=o.join(", "),Q-=i,Q||$((()=>{Q||(J.forEach((e=>{const{ownerNode:t}=e.stylesheet;t&&T(t)})),J.clear())})))}function oe(e){K=e}function ie(){if(!K)throw new Error("Function called outside component initialization");return K}function le(e){ie().$$.on_mount.push(e)}function re(){const e=ie();return(t,n,{cancelable:o=!1}={})=>{const i=e.$$.callbacks[t];if(i){const l=V(t,n,{cancelable:o});return i.slice().forEach((t=>{t.call(e,l)})),!l.defaultPrevented}return!0}}function se(e,t){const n=e.$$.callbacks[t.type];n&&n.slice().forEach((e=>e.call(this,t)))}const ce=[],ae=[];let de=[];const ue=[],pe=Promise.resolve();let fe=!1;function he(){fe||(fe=!0,pe.then(ye))}function me(){return he(),pe}function ve(e){de.push(e)}function be(e){ue.push(e)}const ge=new Set;let $e,we=0;function ye(){if(0!==we)return;const e=K;do{try{for(;we<ce.length;){const e=ce[we];we++,oe(e),xe(e.$$)}}catch(e){throw ce.length=0,we=0,e}for(oe(null),ce.length=0,we=0;ae.length;)ae.pop()();for(let e=0;e<de.length;e+=1){const t=de[e];ge.has(t)||(ge.add(t),t())}de.length=0}while(ce.length);for(;ue.length;)ue.pop()();fe=!1,ge.clear(),oe(e)}function xe(e){if(null!==e.fragment){e.update(),r(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(ve)}}function ke(e){const t=[],n=[];de.forEach((o=>-1===e.indexOf(o)?t.push(o):n.push(o))),n.forEach((e=>e())),de=t}function ze(){return $e||($e=Promise.resolve(),$e.then((()=>{$e=null}))),$e}function De(e,t,n){e.dispatchEvent(V(`${t?"intro":"outro"}${n}`))}const Ee=new Set;let Re;function _e(){Re={r:0,c:[],p:Re}}function Te(){Re.r||r(Re.c),Re=Re.p}function Oe(e,t){e&&e.i&&(Ee.delete(e),e.i(t))}function Ie(e,t,n,o){if(e&&e.o){if(Ee.has(e))return;Ee.add(e),Re.c.push((()=>{Ee.delete(e),o&&(n&&e.d(1),o())})),e.o(t)}else o&&o()}const Le={duration:0};function Ce(e,o,i){const l={direction:"in"};let r,c,a=o(e,i,l),d=!1,u=0;function p(){r&&ne(e,r)}function f(){const{delay:o=0,duration:i=300,easing:l=n,tick:s=t,css:f}=a||Le;f&&(r=te(e,0,1,i,o,l,f,u++)),s(0,1);const h=g()+o,m=h+i;c&&c.abort(),d=!0,ve((()=>De(e,!0,"start"))),c=x((t=>{if(d){if(t>=m)return s(1,0),De(e,!0,"end"),p(),d=!1;if(t>=h){const e=l((t-h)/i);s(e,1-e)}}return d}))}let h=!1;return{start(){h||(h=!0,ne(e),s(a)?(a=a(l),ze().then(f)):f())},invalidate(){h=!1},end(){d&&(p(),d=!1)}}}function He(e,o,i){const l={direction:"out"};let c,a=o(e,i,l),d=!0;const u=Re;let p;function f(){const{delay:o=0,duration:i=300,easing:l=n,tick:s=t,css:f}=a||Le;f&&(c=te(e,1,0,i,o,l,f));const h=g()+o,m=h+i;ve((()=>De(e,!1,"start"))),"inert"in e&&(p=e.inert,e.inert=!0),x((t=>{if(d){if(t>=m)return s(0,1),De(e,!1,"end"),--u.r||r(u.c),!1;if(t>=h){const e=l((t-h)/i);s(1-e,e)}}return d}))}return u.r+=1,s(a)?ze().then((()=>{a=a(l),f()})):f(),{end(t){t&&"inert"in e&&(e.inert=p),t&&a.tick&&a.tick(1,0),d&&(c&&ne(e,c),d=!1)}}}function Ne(e){return void 0!==e?.length?e:Array.from(e)}function Pe(e,t){e.d(1),t.delete(e.key)}function We(e,t){Ie(e,1,1,(()=>{t.delete(e.key)}))}function Be(e,t,n,o,i,l,s,c,a,d,u,p){let f=e.length,h=l.length,m=f;const v={};for(;m--;)v[e[m].key]=m;const b=[],g=new Map,$=new Map,w=[];for(m=h;m--;){const e=p(i,l,m),o=n(e);let r=s.get(o);r?w.push((()=>r.p(e,t))):(r=d(o,e),r.c()),g.set(o,b[m]=r),o in v&&$.set(o,Math.abs(m-v[o]))}const y=new Set,x=new Set;function k(e){Oe(e,1),e.m(c,u),s.set(e.key,e),u=e.first,h--}for(;f&&h;){const t=b[h-1],n=e[f-1],o=t.key,i=n.key;t===n?(u=t.first,f--,h--):g.has(i)?!s.has(o)||y.has(o)?k(t):x.has(i)?f--:$.get(o)>$.get(i)?(x.add(o),k(t)):(y.add(i),f--):(a(n,s),f--)}for(;f--;){const t=e[f];g.has(t.key)||a(t,s)}for(;h;)k(b[h-1]);return r(w),b}function Me(e,t,n){const o=e.$$.props[t];void 0!==o&&(e.$$.bound[o]=n,n(e.$$.ctx[o]))}function Se(e){e&&e.c()}function Ae(e,t,n){const{fragment:o,after_update:l}=e.$$;o&&o.m(t,n),ve((()=>{const t=e.$$.on_mount.map(i).filter(s);e.$$.on_destroy?e.$$.on_destroy.push(...t):r(t),e.$$.on_mount=[]})),l.forEach(ve)}function Ze(e,t){const n=e.$$;null!==n.fragment&&(ke(n.after_update),r(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function qe(e,t){-1===e.$$.dirty[0]&&(ce.push(e),he(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function je(e,n,o,i,s,c,a=null,d=[-1]){const u=K;oe(e);const p=e.$$={fragment:null,ctx:[],props:c,update:t,not_equal:s,bound:l(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(u?u.$$.context:[])),callbacks:l(),dirty:d,skip_bound:!1,root:n.target||u.$$.root};a&&a(p.root);let f=!1;if(p.ctx=o?o(e,n.props||{},((t,n,...o)=>{const i=o.length?o[0]:n;return p.ctx&&s(p.ctx[t],p.ctx[t]=i)&&(!p.skip_bound&&p.bound[t]&&p.bound[t](i),f&&qe(e,t)),n})):[],p.update(),f=!0,r(p.before_update),p.fragment=!!i&&i(p.ctx),n.target){if(n.hydrate){const e=A(n.target);p.fragment&&p.fragment.l(e),e.forEach(T)}else p.fragment&&p.fragment.c();n.intro&&Oe(e.$$.fragment),Ae(e,n.target,n.anchor),ye()}oe(u)}class Fe{$$=void 0;$$set=void 0;$destroy(){Ze(this,1),this.$destroy=t}$on(e,n){if(!s(n))return t;const o=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return o.push(n),()=>{const e=o.indexOf(n);-1!==e&&o.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Ge="4";var contentCreator,hasRequiredContentCreator,nodeHelper,hasRequiredNodeHelper;function Ue(){if(hasRequiredContentCreator)return contentCreator;hasRequiredContentCreator=1;return contentCreator={createIconHtml:(e,t,n={},o)=>{let i="docRedIcon icon"+o;"todo"===e&&n.isDone?i+=" isDone":"documentation"===e&&(!n.input&&!n.output||n.documentation.trim()||n.additionalDocumentation?n.documentation.trim()||n.additionalDocumentation||(i+=" onlyOnHover"):i+=" noDoc");let l='<g id="'+t+"-docRedIcon-"+e+'" class="'+i+'">';return l+='<svg xmlns="http://www.w3.org/2000/svg" fill="white" viewBox="0 0 24 24" stroke-width="1.5" stroke="#555" class="w-6 h-6" width="18" height="18">',"todo"===e?l+='<path stroke-linecap="round" stroke-linejoin="round" d="M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L10.582 16.07a4.5 4.5 0 01-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 011.13-1.897l8.932-8.931zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0115.75 21H5.25A2.25 2.25 0 013 18.75V8.25A2.25 2.25 0 015.25 6H10" />':"documentation"===e&&(l+='<path stroke-linecap="round" stroke-linejoin="round" d="M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z" />'),l+="</svg></g>",l},createPopoverContent:(e,t,n,o)=>{const i=!("documentation"!==n&&"all"!==n);let l="";!("todo"!==n&&"all"!==n||!o.showTodoWs||!t.todo||t.isDone&&(!t.isDone||o.hideDone))?l=t.todo:i&&(t.input&&(l&&(l+="\r\n---\r\n"),l+=t.input),t.output&&(l&&(l+="\r\n---\r\n"),l+=t.output),l&&(l+="\r\n---\r\n"),l+=t.documentation),l=RED.utils.renderMarkdown(l);let r="";switch(e.type){case"tab":r="RED.editor.editFlow(RED.nodes.workspace('"+e.id+"'));";break;case"group":r="RED.editor.editGroup(RED.nodes.group('"+e.id+"'), 'editor-tab-description');";break;case"subflow":r="RED.editor.editSubflow(RED.nodes.subflow('"+e.id+"'), 'editor-tab-description');";break;default:r="RED.editor.edit(RED.nodes.node('"+e.id+"'),'editor-tab-description');"}return l||(l='<p style="margin-left: 0px;"><em>No documentation found.</em></p>'),l='<h2 class="doc-red-popover-header">'+RED.utils.getNodeLabel(e)+"</h2><hr>"+l,l+=`<hr><span class="doc-red-popover-footer"><a title="Print node data to console" class="doc-red-popover-id" href="#" onclick="(function() { console.log({ ...RED.nodes.node('${e.id}') }) })();">id:</a>${e.id}</span>`,l+='<button type="button" onclick="'+r+'; this.disabled=true; return false; " class="red-ui-button red-ui-button-small" style="float: right; margin-bottom: 5px; margin-left: 5px;"><i class="fa fa-pencil-square-o"></i></button>',l},createInputOutputText:(e,t,n)=>{let o="# "+n.substring(0,1).toUpperCase()+n.substring(1)+"\r\n\r\n",i=(t=t.trim().replace(/#\s*Inputs?\s*|#\s*Outputs?\s*/i,"")).matchAll(/([^#]#{2})\s.*/gi);const l=[];for(const e of i)l.push(e.index);const r=t.substring(0,l[0]);o+=r;const s=[];if(l.length)for(;l.length;){const e=l.shift(),n=l.shift();s.push(t.substring(e,n).trim()),!l.length&&n&&s.push(t.substring(n).trim())}let c=[],a=0;if("outputs"===n){let t=e.out?.length?e.out.length:e.outputs?e.outputs:0;c=Array(t).fill(""),a=0}else if("input"===n){let t=e.in?.length?e.in.length:e.inputs?e.inputs:0;c=Array(t).fill(""),a=1}return c.length&&c.forEach(((t,n)=>{t=function(e,t,n){var o,i=1===t?e.inputLabels:e.outputLabels;if(i&&i[n])return i[n];var l=1===t?e._def.inputLabels:e._def.outputLabels;if("string"==typeof l)o=l;else if("function"==typeof l)try{o=l.call(e,n)}catch(n){console.log("Definition error: "+e.type+"."+(1===t?"inputLabels":"outputLabels"),n),o=null}else Array.isArray(l)&&(o=l[n]);return o}(e,a,n);const i=s.findIndex((e=>e.startsWith("## "+t)||e.startsWith("##"+t))),l=n+1;let r="";i>-1&&(r=s[i].substring(3+t.length).trim()),t||(t="Not named"),o+="\r\n## "+l+". "+t+"\r\n\r\n"+r+"\r\n"})),{text:o,hasDocumentation:!!r}}},contentCreator}function Ve(){if(hasRequiredNodeHelper)return nodeHelper;hasRequiredNodeHelper=1;const{createIconHtml:e,createPopoverContent:t,createInputOutputText:n}=Ue(),o=(e="",t)=>(t[e]=l(e,t.info)||"",t[e]&&(t.info=t.info.replace(t[e],"").trim()),t),i=(e,t=!0)=>{let i=e.type.startsWith("subflow:");const r=e.info?e.info.replace(/\[\]/g,"[ ]"):"";let s=l("todo",r),c=l("output",r),a=l("input",r),d=r.replace(s,"").replace(c,"").replace(a,"").trim(),u={};if(i&&t){u.info=RED.nodes.subflow(e.type.split("subflow:")[1])?.info?.replace(/\[\]/g,"[ ]")||"";const t="\n\n**_Please mind: The below text part originates from the subflow template not the subflow instance._**\n\n";u.info&&(s||(u=o("todo",u),s=u.todo.replace(/#\s?TODO/gi,"# TODO"+t)),c||(u=o("output",u),c=u.output.replace(/#\s?OUTPUTs?/gi,"# Outputs"+t)),a||(u=o("input",u),a=u.input.replace(/#\s?INPUTs?/gi,"# Input"+t)),!d&&u.info&&(u.documentation=t+u.info))}const p=s.match(/(\d\.|\t\d\.?|\t\*?|\*|\-|\+)\s?(\[\s?\])(.*)/g)?.length||0,f=s.match(/(\d\.|\t\d\.?|\t\*?|\*|\-|\+)\s?(\[x\])(.*)/g)?.length||0;let h="",m=!1;if(c){const t=n(e,c,"outputs");h=t.text,t.hasDocumentation&&(m=!0)}let v="";if(a){const t=n(e,a,"input");v=t.text,t.hasDocumentation&&(m=!0)}return{todo:s,documentation:d,additionalDocumentation:m,output:h,input:v,isDone:f>0&&0===p}},l=(e="",t="")=>{let n="",o=-1,i=t.length,l=t.matchAll(/^#(\s*\w+)|[^#]#(\s*\w+)/gi);for(const t of l){const n=t[0].trim().substring(1).trim().toLowerCase();if(n===e.toLowerCase()||n===e.toLowerCase()+"s")o=t.index;else if(o>-1){i=t.index-1;break}}return o>-1&&(n=t.substring(o,i)),n},r=(e,n,o)=>{const l=window.$("#"+n+"-docRedIcon-todo"),r=window.$("#"+n+"-docRedIcon-documentation"),s={direction:"bottom",trigger:"hover",width:"auto",delay:{show:750,hide:50},autoClose:200,tooltip:!0,class:"doc-red-popover",interactive:!0};l.length&&(s.target=l,s.content=function(){return window.$.parseHTML(t(e,i(e,o.showSubflowMainOnChildren),"todo",o))},RED.popover.create(s)),r.length&&(s.target=r,s.content=function(){return window.$.parseHTML(t(e,i(e,o.showSubflowMainOnChildren),"documentation",o))},RED.popover.create(s))},s=(e,t)=>{let n=t.indexOf(e.z||e.id)+1;if(-1===n&&(n="subflow"===e.type||RED.nodes.subflow(e.z)?0:"Z"),"tab"===e.type||"subflow"===e.type)return n+"-"+e.id+"-0000000000000000-"+e.id;if("group"===e.type)return n+"-"+e.z+"-"+e.id+"-"+e.id;return n+"-"+(e.z?e.z:"ZZZZZZZZZZZZZZZZ")+"-"+(e.g?e.g:"ZZZZZZZZZZZZZZZZ")+"-"+e.id};return nodeHelper={getNodeData:i,getSection:l,changeInWorkspace:(t,n)=>{const o=i(t,n.showSubflowMainOnChildren);let l=t.id;"tab"===t.type||"subflow"===t.type?l="red-ui-tab-"+l:"group"===t.type&&(l="group_select_"+l),((t,{nodeDomId:n,nodeData:o,options:i})=>{document.getElementById(n+"docRedIconGroup")?.remove();const l=!(!i.showTodoWs||!o.todo||o.isDone&&(!o.isDone||i.hideDone)),s=!(!i.showDocumentationWs||!(o.documentation||o.additionalDocumentation||o.input||o.output||i.showEmptyDocumentationDummy));if(l||s){let c,a="",d=[];l&&d.push("todo"),s&&d.push("documentation"),"tab"!==t.type&&"subflow"!==t.type||d.reverse(),d.forEach(((t,i)=>a+=e(t,n,o,i+1))),a='<g class="docIconGroup" id="'+n+'docRedIconGroup">'+a+"</g>";let u=0;const p=setInterval((function(){u++,c=document.getElementById(n),"tab"!==t.type&&"subflow"!==t.type||(c=c?.querySelector(".red-ui-tab-label")),c?(c.insertAdjacentHTML("beforeend",a),clearInterval(p),i.showPopover&&r(t,n,i)):20===u&&clearInterval(p)}),100)}})(t,{nodeData:o,nodeDomId:l,options:n})},createListEntry:e=>{const t=i(e,!1);if(t.todo||t.documentation){const n={id:e.id,type:e.type,label:RED.utils.getNodeLabel(e),isDone:t.isDone,todo:t.todo.toLowerCase(),documentation:t.documentation.toLowerCase(),z:e.z,g:e.g},o=RED.utils.renderMarkdown(t.todo).split("</h1>");n.todoAdditionalHeader=o.shift(0).replace(/<(\/*?)\w+?.+?>/,"").substring(4)||"",n.isDone=t.isDone,n.todoHtml=o.join("</h1>"),t.documentation?n.documentationHtml=RED.utils.renderMarkdown(t.documentation):n.documentationHtml="";const i=RED.utils.createNodeIcon(e)[0];return"tab"===e.type?(i.children[0].classList.remove("red-ui-palette-icon-flow"),i.children[0].children[0].classList.remove("red-ui-palette-icon"),i.children[0].children[0].classList.add("todo-palette-icon")):"group"===e.type&&(i.children[0].classList.remove("red-ui-palette-icon-group"),i.children[0].children[0].classList.remove("red-ui-palette-icon-fa","fa-lg")),n.icon=i.innerHTML,n}},sortFunction:(e,t)=>{const n=RED.nodes.getWorkspaceOrder(),o=s(e,n),i=s(t,n);return new Intl.Collator("en").compare(o,i)}}}"undefined"!=typeof window&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Ge);var nodeHelperExports=Ve();const Xe=e=>"boolean"==typeof e?e:"true"===e?.toString()?.toLowerCase()||!!e,Je=(e=null)=>{let t=e;return t||(t=(Date.now()+Math.floor(Math.random()*Number.MAX_SAFE_INTEGER)).toString()),t},Ke=e=>{let t=800;return"number"==typeof e||"string"==typeof e&&"true"!==e&&"false"!==e?t=Number(e):(e=Xe(e))||(t=0),t},Qe=(e,t,n)=>e.updateNode&&void 0!==t?t:void 0!==n?n:"",Ye=(e,t)=>{const n={init:!0,isError:!1,updateNode:void 0!==e,valueHasChanged:!1};return n.value=Qe(n,e?.value,t),n.oldValue=n.value,n},et=(e,t,n,o,i,l)=>{if(n.valueHasChanged=n.updateNode?e!==n.value:n.value!==t,n.valueHasChanged&&(n.value===n.oldValue&&(n.value=Qe(n,e,t)),n.oldValue=n.value),o){const e=o.call(l,n.value);n.error="string"==typeof e?e:!e}else n.error=i;return n};function tt(e,{delay:t=0,duration:o=400,easing:i=n}={}){const l=+getComputedStyle(e).opacity;return{delay:t,duration:o,easing:i,css:e=>"opacity: "+e*l}}function nt(e){z(e,"svelte-1ewcz8y",".sir-Tooltip.svelte-1ewcz8y{display:block;height:auto;position:fixed;z-index:1000;cursor:default}.sir-Tooltip.red-ui-popover-bottom.svelte-1ewcz8y{margin-top:12px}.red-ui-editableList-container .sir-Tooltip .red-ui-popover-content li{background:var(--red-ui-popover-background);border-bottom:0;margin-bottom:6px}.sir-Tooltip p:last-child{margin-bottom:0px}.sir-Tooltip-icon.svelte-1ewcz8y{margin-left:3px;cursor:help}.sir-Tooltip-icon.sir-Tooltip-clickable.svelte-1ewcz8y{cursor:pointer\n }.sir-Tooltip-clickable.svelte-1ewcz8y:hover{color:var(--red-ui-secondary-text-color)}.sir-Tooltip a{color:var(--red-ui-text-color-link) !important}.sir-Tooltip p{width:fit-content}.sir-Tooltip a:hover{text-decoration:underline}.sir-Tooltip .red-ui-popover-content{max-height:60vh;max-width:60vw;overflow:auto}.sir-Tooltip.red-ui-popover .red-ui-popover-content :is(pre, pre code){color:var(--red-ui-tertiary-text-color)}")}function ot(e){let t,n,o,i,l,s,c,a;return{c(){t=I("div"),n=I("div"),M(n,"class","red-ui-popover-content"),M(t,"id",o=e[1]+"_sir-Tooltip"),M(t,"role","tooltip"),M(t,"class",v(e[10])+" svelte-1ewcz8y")},m(o,i){_(o,t,i),k(t,n),n.innerHTML=e[0],e[17](t),s=!0,c||(a=[N(t,"click",W(e[7])),N(t,"click",W(e[14])),N(t,"keypress",e[15]),N(t,"mouseenter",B(e[8])),N(t,"mouseleave",B(e[9]))],c=!0)},p(i,l){e=i,(!s||1&l)&&(n.innerHTML=e[0]),(!s||2&l&&o!==(o=e[1]+"_sir-Tooltip"))&&M(t,"id",o)},i(n){s||(n&&ve((()=>{s&&(l&&l.end(1),i=Ce(t,tt,{delay:e[5].delay.show,duration:500}),i.start())})),s=!0)},o(n){i&&i.invalidate(),n&&(l=He(t,tt,{delay:e[5].delay.hide,duration:500})),s=!1},d(n){n&&T(t),e[17](null),n&&l&&l.end(),c=!1,r(a)}}}function it(e){let t,n,o,i,l,s=e[4]&&lt(e);return{c(){t=I("i"),s&&s.c(),M(t,"id",n=e[1]+"_sir-Tooltip-icon"),M(t,"class",o="fa fa-"+e[3].icon+" sir-Tooltip-icon svelte-1ewcz8y"),M(t,"role","button"),M(t,"tabindex","-1"),U(t,"sir-Tooltip-clickable","click"===e[5].trigger)},m(n,o){_(n,t,o),s&&s.m(t,null),i||(l=[N(t,"click",B(W(P(e[6])))),N(t,"keypress",B(W(P(e[6])))),N(t,"mouseenter",B(e[8])),N(t,"mouseleave",B(e[9]))],i=!0)},p(e,i){e[4]?s?(s.p(e,i),16&i&&Oe(s,1)):(s=lt(e),s.c(),Oe(s,1),s.m(t,null)):s&&(_e(),Ie(s,1,1,(()=>{s=null})),Te()),2&i&&n!==(n=e[1]+"_sir-Tooltip-icon")&&M(t,"id",n),8&i&&o!==(o="fa fa-"+e[3].icon+" sir-Tooltip-icon svelte-1ewcz8y")&&M(t,"class",o),40&i&&U(t,"sir-Tooltip-clickable","click"===e[5].trigger)},i(e){Oe(s)},o(e){Ie(s)},d(e){e&&T(t),s&&s.d(),i=!1,r(l)}}}function lt(e){let t,n,o,i,l,s,c,a;return{c(){t=I("div"),n=I("div"),M(n,"class","red-ui-popover-content"),M(t,"id",o=e[1]+"_sir-Tooltip"),M(t,"role","tooltip"),M(t,"class",v(e[10])+" svelte-1ewcz8y")},m(o,i){_(o,t,i),k(t,n),n.innerHTML=e[0],e[16](t),s=!0,c||(a=[N(t,"click",W(e[7])),N(t,"click",W(e[12])),N(t,"keypress",e[13]),N(t,"mouseenter",B(e[8])),N(t,"mouseleave",B(e[9]))],c=!0)},p(i,l){e=i,(!s||1&l)&&(n.innerHTML=e[0]),(!s||2&l&&o!==(o=e[1]+"_sir-Tooltip"))&&M(t,"id",o)},i(n){s||(n&&ve((()=>{s&&(l&&l.end(1),i=Ce(t,tt,{delay:e[5].delay.show,duration:500}),i.start())})),s=!0)},o(n){i&&i.invalidate(),n&&(l=He(t,tt,{delay:e[5].delay.hide,duration:500})),s=!1},d(n){n&&T(t),e[16](null),n&&l&&l.end(),c=!1,r(a)}}}function rt(e){let t,n,o;const i=[it,ot],l=[];function r(e,t){return e[3].icon?0:e[4]?1:-1}return~(t=r(e))&&(n=l[t]=i[t](e)),{c(){n&&n.c(),o=H()},m(e,n){~t&&l[t].m(e,n),_(e,o,n)},p(e,[s]){let c=t;t=r(e),t===c?~t&&l[t].p(e,s):(n&&(_e(),Ie(l[c],1,1,(()=>{l[c]=null})),Te()),~t?(n=l[t],n?n.p(e,s):(n=l[t]=i[t](e),n.c()),Oe(n,1),n.m(o.parentNode,o)):n=null)},i(e){Oe(n)},o(e){Ie(n)},d(e){e&&T(o),~t&&l[t].d(e)}}}function st(e,t,n){let{id:o,ref:i,tooltip:l="",tooltipOptions:r={}}=t;o=o||Je();const s=async()=>{const e=document.getElementById(h.target)?.getBoundingClientRect();if(!e)return;h.width,h.maxWidth,await me();const t=document.getElementById(o+"_sir-Tooltip");if(!t)return;const n=t.getBoundingClientRect();let i,l;switch(h.direction){case"right":i=e.right+11+h.offset,l=e.top+e.height/2-n.height/2;break;case"left":i=e.left-n.width-11-h.offset,l=e.top+e.height/2-n.height/2;break;case"top":i=e.left+e.width/2-n.width/2-h.offset,l=e.top-n.height-11;break;case"bottom":i=e.left+e.width/2-n.width/2,l=e.bottom+h.offset}const r=l>0?l:0;t.style.left=i+"px",t.style.top=(l<0?l:r)+"px"},c=()=>{"click"===h.trigger&&(g?p():(document.removeEventListener("click",a),document.addEventListener("click",a),n(4,g=!0)))},a=e=>{e.target?.closest(".sir-Tooltip")||p()},d=()=>{b&&(clearTimeout(b),b=null),"hover"!==h.trigger||g||v||(v=setTimeout((()=>{n(4,g=!0),h.autoClose&&(m=setTimeout((()=>p()),h.autoClose))}),h.delay.show))},u=()=>{"hover"===h.trigger&&(b=setTimeout((()=>{clearTimeout(v),v=null,p(),m&&(clearTimeout(m),m=null)}),h.delay.hide))},p=()=>{n(4,g=!1),document.removeEventListener("click",a)},f=()=>{!1!==r.openLinkInNewTab&&n(0,l=l.replaceAll('<a href="','<a target="_blank" "rel"="noopener noreferrer" href="'))},h={target:r.target||o+"_sir-Tooltip-icon",direction:r.direction||"right",trigger:r.trigger||"hover",delay:r.delay||"click"===r.trigger?{show:150,hide:150}:{show:500,hide:150},autoClose:Number(r.autoClose)||0,width:r.width||"auto",maxWidth:r.maxWidth||"700px",size:r.size||"default",offset:Number(r.offset)||0,closeOnClick:!1!==r?.closeOnClick,class:r.class||"",interactive:!1!==r.interactive};let m,v,b,g=!!r.show,$=`red-ui-popover sir-Tooltip red-ui-popover-${h.direction} red-ui-popover-size-${h.size} ${h.class} `,w="";return l=RED.utils.renderMarkdown(RED.utils.sanitize(l)),f(),w=l,h.target.startsWith("#")&&(h.target=h.target.substring(1)),le((()=>{let e;if(!r.icon){let t=0;e=setInterval((function(){const n=document.getElementById(h.target);n?(clearInterval(e),"click"===h.trigger?(n.addEventListener("click",c),n.addEventListener("keypress",c)):"hover"===h.trigger&&(n.addEventListener("mouseenter",d),n.addEventListener("mouseleave",u),n.matches(":hover")&&d())):t>20?(clearInterval(e),console.log("[Sir] No target for tooltip found ("+h.target+").")):t++}),100)}return document.querySelector("body").addEventListener("wheel",p),()=>{try{clearInterval(e)}catch(e){}}})),e.$$set=e=>{"id"in e&&n(1,o=e.id),"ref"in e&&n(2,i=e.ref),"tooltip"in e&&n(0,l=e.tooltip),"tooltipOptions"in e&&n(3,r=e.tooltipOptions)},e.$$.update=()=>{if(2065&e.$$.dirty)if(g&&l){if(w!==l&&(n(0,l=RED.utils.renderMarkdown(RED.utils.sanitize(l))),f(),n(11,w=l)),s(),!document.getElementById("_temp_sir_Tooltip_Style_")){const e=document.createElement("style");e.id="_temp_sir_Tooltip_Style_",e.innerText="body > .red-ui-popover { display: none !important; }",document.head.appendChild(e)}}else document.getElementById("_temp_sir_Tooltip_Style_")?.remove()},[l,o,i,r,g,h,c,e=>{h.closeOnClick&&p()},d,u,$,w,function(t){se.call(this,e,t)},function(t){se.call(this,e,t)},function(t){se.call(this,e,t)},function(t){se.call(this,e,t)},function(e){ae[e?"unshift":"push"]((()=>{i=e,n(2,i)}))},function(e){ae[e?"unshift":"push"]((()=>{i=e,n(2,i)}))}]}class ct extends Fe{constructor(e){super(),je(this,e,st,rt,c,{id:1,ref:2,tooltip:0,tooltipOptions:3},nt)}}function at(e){z(e,"svelte-1cnbg1t","label.svelte-1cnbg1t.svelte-1cnbg1t.svelte-1cnbg1t{width:auto;min-width:130px;max-width:130px;margin-bottom:0px;margin-right:7px;display:flex;align-items:center;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}label.notClickable.svelte-1cnbg1t.svelte-1cnbg1t.svelte-1cnbg1t{cursor:initial}div:not(.sir-Input-checkbox)>label.svelte-1cnbg1t i.svelte-1cnbg1t.svelte-1cnbg1t{text-align:left;width:22px}label.svelte-1cnbg1t .sir-Label-icon-stack.svelte-1cnbg1t>i.sir-Label-stackedIcons.svelte-1cnbg1t{text-align:center}label.svelte-1cnbg1t .hasTooltip.svelte-1cnbg1t.svelte-1cnbg1t{color:var(--red-ui-secondary-text-color-disabled);margin-left:5px}label.svelte-1cnbg1t .hasTooltip.svelte-1cnbg1t.svelte-1cnbg1t:hover{color:var(--red-ui-secondary-text-color-hover)}.sir-Label-outer.hasStackIcons.svelte-1cnbg1t.svelte-1cnbg1t.svelte-1cnbg1t{padding-left:10px}.sir-Label-icon-stack.svelte-1cnbg1t.svelte-1cnbg1t.svelte-1cnbg1t{width:19px;height:19px;line-height:19px;padding-left:0px}.sir-Label-icon-stack .fa-stack-2x{font-size:19px}.sir-Label-icon-stack .fa-stack-1x{font-size:10px}.sir-Label-svg-icon.svelte-1cnbg1t.svelte-1cnbg1t.svelte-1cnbg1t{width:26px;height:19px;background-color:var(--red-ui-primary-text-color);mask-size:contain;-webkit-mask-size:contain;mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat;mask-position:center;-webkit-mask-position:center}label.sir-Label-maximize.svelte-1cnbg1t.svelte-1cnbg1t.svelte-1cnbg1t{width:-webkit-fill-available;width:-moz-available;width:stretch;max-width:100% !important}.sir-Input-checkbox label.sir-Label{padding-left:5px}.sir-Input-container .sir-Input-checkbox input{margin-top:0px}")}function dt(e,t,n){const o=e.slice();return o[12]=t[n],o}function ut(e){let t,n;return{c(){t=I("i"),M(t,"class",n="fa "+e[1]+" fa-fw svelte-1cnbg1t")},m(e,n){_(e,t,n)},p(e,o){2&o&&n!==(n="fa "+e[1]+" fa-fw svelte-1cnbg1t")&&M(t,"class",n)},d(e){e&&T(t)}}}function pt(e){let t,n,o;return{c(){t=I("div"),d(t.src,n=e[1])||M(t,"src",n),M(t,"class","sir-Label-svg-icon svelte-1cnbg1t"),M(t,"style",o=`mask-image: url(${e[1]}); -webkit-mask-image: url(${e[1]})`)},m(e,n){_(e,t,n)},p(e,i){2&i&&!d(t.src,n=e[1])&&M(t,"src",n),2&i&&o!==(o=`mask-image: url(${e[1]}); -webkit-mask-image: url(${e[1]})`)&&M(t,"style",o)},d(e){e&&T(t)}}}function ft(e){let t,n=Ne(e[9]),o=[];for(let t=0;t<n.length;t+=1)o[t]=ht(dt(e,n,t));return{c(){t=I("span");for(let e=0;e<o.length;e+=1)o[e].c();M(t,"class","fa-stack fa fa-fw sir-Label-icon-stack svelte-1cnbg1t")},m(e,n){_(e,t,n);for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,null)},p(e,i){if(512&i){let l;for(n=Ne(e[9]),l=0;l<n.length;l+=1){const r=dt(e,n,l);o[l]?o[l].p(r,i):(o[l]=ht(r),o[l].c(),o[l].m(t,null))}for(;l<o.length;l+=1)o[l].d(1);o.length=n.length}},d(e){e&&T(t),O(o,e)}}}function ht(e){let n;return{c(){n=I("i"),M(n,"class","fa "+e[12]+" sir-Label-stackedIcons svelte-1cnbg1t")},m(e,t){_(e,n,t)},p:t,d(e){e&&T(n)}}}function mt(e){let t,n;return t=new ct({props:{id:e[0],tooltip:e[8],tooltipOptions:e[2]}}),{c(){Se(t.$$.fragment)},m(e,o){Ae(t,e,o),n=!0},p(e,n){const o={};1&n&&(o.id=e[0]),256&n&&(o.tooltip=e[8]),4&n&&(o.tooltipOptions=e[2]),t.$set(o)},i(e){n||(Oe(t.$$.fragment,e),n=!0)},o(e){Ie(t.$$.fragment,e),n=!1},d(e){Ze(t,e)}}}function vt(e){let t,n,o,i,l,s,c,a,d,u,p;function f(e,t){return 2&t&&(n=null),e[9].length?ft:(null==n&&(n=!!e[1]?.endsWith(".svg")),n?pt:e[1]?ut:void 0)}let h=f(e,-1),m=h&&h(e),b=e[8]&&mt(e);return{c(){t=I("label"),m&&m.c(),o=C(),i=I("span"),l=I("span"),s=L(e[4]),c=C(),b&&b.c(),M(l,"class","sir-Label-text"),M(i,"class","sir-Label-outer svelte-1cnbg1t"),U(i,"hasStackIcons",e[9].length),M(t,"id",e[0]),M(t,"for",e[5]),M(t,"class",a=v("sir-Label "+e[3])+" svelte-1cnbg1t"),U(t,"notClickable",e[7]),U(t,"sir-Label-maximize",e[6])},m(n,r){_(n,t,r),m&&m.m(t,null),k(t,o),k(t,i),k(i,l),k(l,s),k(i,c),b&&b.m(i,null),d=!0,u||(p=[N(t,"mouseenter",e[10]),N(t,"mouseleave",e[11])],u=!0)},p(e,[n]){h===(h=f(e,n))&&m?m.p(e,n):(m&&m.d(1),m=h&&h(e),m&&(m.c(),m.m(t,o))),(!d||16&n)&&Z(s,e[4]),e[8]?b?(b.p(e,n),256&n&&Oe(b,1)):(b=mt(e),b.c(),Oe(b,1),b.m(i,null)):b&&(_e(),Ie(b,1,1,(()=>{b=null})),Te()),(!d||1&n)&&M(t,"id",e[0]),(!d||32&n)&&M(t,"for",e[5]),(!d||8&n&&a!==(a=v("sir-Label "+e[3])+" svelte-1cnbg1t"))&&M(t,"class",a),(!d||136&n)&&U(t,"notClickable",e[7]),(!d||72&n)&&U(t,"sir-Label-maximize",e[6])},i(e){d||(Oe(b),d=!0)},o(e){Ie(b),d=!1},d(e){e&&T(t),m&&m.d(),b&&b.d(),u=!1,r(p)}}}function bt(e,t,n){let{clazz:o="",id:i,icon:l,label:r="",labelFor:s,maximize:c=!1,notClickable:a=!1,tooltip:d,tooltipOptions:u={}}=t;i&&!i.toString().endsWith("-Label")&&(i+="-Label"),u.icon||!1===u.icon||(u.icon="info-circle");const p=[];if(Array.isArray(l)){let e=l.length;l.forEach((t=>{t.startsWith("fa-")||p.push("fa-"+t.trim()+" fa-stack-"+e--+"x")}))}else!l||l.endsWith(".svg")||l.startsWith("fa-")?l?.endsWith(".svg")&&!l.includes("/")&&(l="icons/node-red/"+l):l="fa-"+l.trim();return e.$$set=e=>{"clazz"in e&&n(3,o=e.clazz),"id"in e&&n(0,i=e.id),"icon"in e&&n(1,l=e.icon),"label"in e&&n(4,r=e.label),"labelFor"in e&&n(5,s=e.labelFor),"maximize"in e&&n(6,c=e.maximize),"notClickable"in e&&n(7,a=e.notClickable),"tooltip"in e&&n(8,d=e.tooltip),"tooltipOptions"in e&&n(2,u=e.tooltipOptions)},[i,l,u,o,r,s,c,a,d,p,function(t){se.call(this,e,t)},function(t){se.call(this,e,t)}]}class gt extends Fe{constructor(e){super(),je(this,e,bt,vt,c,{clazz:3,id:0,icon:1,label:4,labelFor:5,maximize:6,notClickable:7,tooltip:8,tooltipOptions:2},at)}}function $t(e){z(e,"svelte-1lgevmh",".sir-Row.svelte-1lgevmh{clear:both;margin-bottom:12px;display:flex;align-items:center;justify-content:flex-start}.sir-Row-maximize.svelte-1lgevmh{width:-webkit-fill-available;width:-moz-available;width:stretch}.sir-Row > *:not(:last-child){margin-right:7px}.sir-Row.inline button:not(:last-child){margin-right:3px}label.sir-Label.sir-Row-label{display:inline-block;min-width:105px;width:105px;margin-right:7px;align-items:center;margin-bottom:0px;overflow-wrap:break-word}i, .sir-Row{user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}")}function wt(e){let t,n,o,i,l,s,c=e[3]&&xt();const a=e[10].default,d=u(a,e,e[9],null);return{c(){t=I("div"),c&&c.c(),n=C(),d&&d.c(),M(t,"id",e[0]),M(t,"class",o=v(e[5])+" svelte-1lgevmh"),M(t,"style",e[6]),M(t,"role","row"),M(t,"tabindex","-1"),U(t,"sir-Row",!e[1]),U(t,"sir-Row-maximize",e[2])},m(o,r){_(o,t,r),c&&c.m(t,null),k(t,n),d&&d.m(t,null),e[24](t),i=!0,l||(s=[N(t,"click",e[17]),N(t,"keypress",e[18]),N(t,"keydown",e[19]),N(t,"dblclick",e[20]),N(t,"mouseenter",e[21]),N(t,"mouseleave",e[22])],l=!0)},p(e,l){e[3]?c?8&l&&Oe(c,1):(c=xt(),c.c(),Oe(c,1),c.m(t,n)):c&&(_e(),Ie(c,1,1,(()=>{c=null})),Te()),d&&d.p&&(!i||512&l)&&h(d,a,e,e[9],i?f(a,e[9]):m(e[9]),null),(!i||1&l)&&M(t,"id",e[0]),(!i||32&l&&o!==(o=v(e[5])+" svelte-1lgevmh"))&&M(t,"class",o),(!i||64&l)&&M(t,"style",e[6]),(!i||34&l)&&U(t,"sir-Row",!e[1]),(!i||36&l)&&U(t,"sir-Row-maximize",e[2])},i(e){i||(Oe(c),Oe(d,e),i=!0)},o(e){Ie(c),Ie(d,e),i=!1},d(n){n&&T(t),c&&c.d(),d&&d.d(n),e[24](null),l=!1,r(s)}}}function yt(e){let t,n,o,i,l,s,c,a=e[3]&&kt();const d=e[10].default,p=u(d,e,e[9],null);return{c(){t=I("div"),a&&a.c(),n=C(),p&&p.c(),M(t,"id",e[0]),M(t,"class",o=v(e[5])+" svelte-1lgevmh"),M(t,"style",e[6]),M(t,"role","row"),M(t,"tabindex","-1"),U(t,"sir-Row",!e[1]),U(t,"sir-Row-maximize",e[2])},m(o,i){_(o,t,i),a&&a.m(t,null),k(t,n),p&&p.m(t,null),e[23](t),l=!0,s||(c=[N(t,"click",e[11]),N(t,"keypress",e[12]),N(t,"keydown",e[13]),N(t,"dblclick",e[14]),N(t,"mouseenter",e[15]),N(t,"mouseleave",e[16])],s=!0)},p(i,r){(e=i)[3]?a?8&r&&Oe(a,1):(a=kt(),a.c(),Oe(a,1),a.m(t,n)):a&&(_e(),Ie(a,1,1,(()=>{a=null})),Te()),p&&p.p&&(!l||512&r)&&h(p,d,e,e[9],l?f(d,e[9]):m(e[9]),null),(!l||1&r)&&M(t,"id",e[0]),(!l||32&r&&o!==(o=v(e[5])+" svelte-1lgevmh"))&&M(t,"class",o),(!l||64&r)&&M(t,"style",e[6]),(!l||34&r)&&U(t,"sir-Row",!e[1]),(!l||36&r)&&U(t,"sir-Row-maximize",e[2])},i(n){l||(Oe(a),Oe(p,n),n&&(i||ve((()=>{i=Ce(t,tt,{duration:e[7]}),i.start()}))),l=!0)},o(e){Ie(a),Ie(p,e),l=!1},d(n){n&&T(t),a&&a.d(),p&&p.d(n),e[23](null),s=!1,r(c)}}}function xt(e){let t,n;return t=new gt({props:{clazz:"sir-Row-label"}}),{c(){Se(t.$$.fragment)},m(e,o){Ae(t,e,o),n=!0},i(e){n||(Oe(t.$$.fragment,e),n=!0)},o(e){Ie(t.$$.fragment,e),n=!1},d(e){Ze(t,e)}}}function kt(e){let t,n;return t=new gt({props:{clazz:"sir-Row-label"}}),{c(){Se(t.$$.fragment)},m(e,o){Ae(t,e,o),n=!0},i(e){n||(Oe(t.$$.fragment,e),n=!0)},o(e){Ie(t.$$.fragment,e),n=!1},d(e){Ze(t,e)}}}function zt(e){let t,n,o,i;const l=[yt,wt],r=[];return t=function(e){return e[7]?0:1}(e),n=r[t]=l[t](e),{c(){n.c(),o=H()},m(e,n){r[t].m(e,n),_(e,o,n),i=!0},p(e,[t]){n.p(e,t)},i(e){i||(Oe(n),i=!0)},o(e){Ie(n),i=!1},d(e){e&&T(o),r[t].d(e)}}}function Dt(e,t,n){let{$$slots:o={},$$scope:i}=t,{id:l,clazz:r="",style:s="",inline:c=!1,maximize:a=!1,indented:d=!1,fading:u=!0,ref:p}=t;l=l||Je(),l.toString().startsWith("sir-")||(l="sir-Row-"+l),c=Xe(c),a=Xe(a),d=Xe(d);const f=Ke(u);return e.$$set=e=>{"id"in e&&n(0,l=e.id),"clazz"in e&&n(5,r=e.clazz),"style"in e&&n(6,s=e.style),"inline"in e&&n(1,c=e.inline),"maximize"in e&&n(2,a=e.maximize),"indented"in e&&n(3,d=e.indented),"fading"in e&&n(8,u=e.fading),"ref"in e&&n(4,p=e.ref),"$$scope"in e&&n(9,i=e.$$scope)},[l,c,a,d,p,r,s,f,u,i,o,function(t){se.call(this,e,t)},function(t){se.call(this,e,t)},function(t){se.call(this,e,t)},function(t){se.call(this,e,t)},function(t){se.call(this,e,t)},function(t){se.call(this,e,t)},function(t){se.call(this,e,t)},function(t){se.call(this,e,t)},function(t){se.call(this,e,t)},function(t){se.call(this,e,t)},function(t){se.call(this,e,t)},function(t){se.call(this,e,t)},function(e){ae[e?"unshift":"push"]((()=>{p=e,n(4,p)}))},function(e){ae[e?"unshift":"push"]((()=>{p=e,n(4,p)}))}]}class Et extends Fe{constructor(e){super(),je(this,e,Dt,zt,c,{id:0,clazz:5,style:6,inline:1,maximize:2,indented:3,fading:8,ref:4},$t)}}localStorage.getItem("editor-language")||navigator.language;const Rt=(e,t={},n=!0,o)=>{let i=o;if(!1===n||"false"===n.toString().trim())return i;let l="";if("string"==typeof n)l=n;else if(t){l=t.type;let e=t?._def?.i18nOptions?.folder;e&&(e.endsWith("/")||(e+="/"),l=e+l)}if(l){l.endsWith(":")||(l+=":"),i=e._(l+o);const t=o.replaceAll(":",".");i!==l+o&&i!==l+t&&i!==t||(i=o)}return i};function _t(e){z(e,"svelte-zzbj7f",".sir-Button.svelte-zzbj7f{width:fit-content}.minWidth.svelte-zzbj7f{min-width:33px}.red-ui-button-small.svelte-zzbj7f{min-width:21px}button.red-ui-button.sir-Button:not(.primary):not(.disabled):not(:disabled):hover{background:var(--red-ui-secondary-background-hover)}.maximize.svelte-zzbj7f{width:-webkit-fill-available;width:-moz-available;width:stretch}.sir-Button-container:has(button.sir-Button:disabled){cursor:not-allowed}button.svelte-zzbj7f:disabled{pointer-events:none;color:var(--red-ui-workspace-button-color-disabled)}")}function Tt(e){let t,n;return t=new ct({props:{tooltip:e[17],tooltipOptions:e[9]}}),{c(){Se(t.$$.fragment)},m(e,o){Ae(t,e,o),n=!0},p(e,n){const o={};131072&n&&(o.tooltip=e[17]),512&n&&(o.tooltipOptions=e[9]),t.$set(o)},i(e){n||(Oe(t.$$.fragment,e),n=!0)},o(e){Ie(t.$$.fragment,e),n=!1},d(e){Ze(t,e)}}}function Ot(e){let t,n;return t=new gt({props:{label:e[13],notClickable:!0,maximize:e[6]}}),{c(){Se(t.$$.fragment)},m(e,o){Ae(t,e,o),n=!0},p(e,n){const o={};8192&n&&(o.label=e[13]),64&n&&(o.maximize=e[6]),t.$set(o)},i(e){n||(Oe(t.$$.fragment,e),n=!0)},o(e){Ie(t.$$.fragment,e),n=!1},d(e){Ze(t,e)}}}function It(e){let t,n;return{c(){t=I("i"),M(t,"class",n="fa fa-"+e[12]+" svelte-zzbj7f")},m(e,n){_(e,t,n)},p(e,o){4096&o&&n!==(n="fa fa-"+e[12]+" svelte-zzbj7f")&&M(t,"class",n)},d(e){e&&T(t)}}}function Lt(e){let t,n,o,i,l,s,c,a=(e[0]||"")+"",d=e[3]&&Ot(e),u=e[12]&&It(e);return{c(){d&&d.c(),t=C(),n=I("button"),u&&u.c(),o=C(),i=L(a),M(n,"id",e[2]),M(n,"style",e[16]),n.disabled=e[1],M(n,"type","button"),M(n,"class","red-ui-button sir-Button svelte-zzbj7f"),U(n,"maximize",e[5]),U(n,"selected",e[15]),U(n,"red-ui-button-small",e[8]),U(n,"primary",e[14]&&!e[1])},m(r,a){d&&d.m(r,a),_(r,t,a),_(r,n,a),u&&u.m(n,null),k(n,o),k(n,i),l=!0,s||(c=[N(n,"click",W(e[20])),N(n,"mousedown",W(e[21])),N(n,"mouseup",W(e[22])),N(n,"mouseenter",W(e[23])),N(n,"mouseleave",W(e[24]))],s=!0)},p(e,r){e[3]?d?(d.p(e,r),8&r&&Oe(d,1)):(d=Ot(e),d.c(),Oe(d,1),d.m(t.parentNode,t)):d&&(_e(),Ie(d,1,1,(()=>{d=null})),Te()),e[12]?u?u.p(e,r):(u=It(e),u.c(),u.m(n,o)):u&&(u.d(1),u=null),(!l||1&r)&&a!==(a=(e[0]||"")+"")&&Z(i,a),(!l||4&r)&&M(n,"id",e[2]),(!l||65536&r)&&M(n,"style",e[16]),(!l||2&r)&&(n.disabled=e[1]),(!l||32&r)&&U(n,"maximize",e[5]),(!l||32768&r)&&U(n,"selected",e[15]),(!l||256&r)&&U(n,"red-ui-button-small",e[8]),(!l||16386&r)&&U(n,"primary",e[14]&&!e[1])},i(e){l||(Oe(d),l=!0)},o(e){Ie(d),l=!1},d(e){e&&(T(t),T(n)),d&&d.d(e),u&&u.d(),s=!1,r(c)}}}function Ct(e){let t,n,o,i,l=e[17]&&Tt(e);function r(t){e[25](t)}let s={id:"sir-Button-container-"+e[2],clazz:e[10]+" sir-Button-container",inline:e[4],fading:e[11],$$slots:{default:[Lt]},$$scope:{ctx:e}};return void 0!==e[7]&&(s.ref=e[7]),n=new Et({props:s}),ae.push((()=>Me(n,"ref",r))),{c(){l&&l.c(),t=C(),Se(n.$$.fragment)},m(e,o){l&&l.m(e,o),_(e,t,o),Ae(n,e,o),i=!0},p(e,[i]){e[17]?l?(l.p(e,i),131072&i&&Oe(l,1)):(l=Tt(e),l.c(),Oe(l,1),l.m(t.parentNode,t)):l&&(_e(),Ie(l,1,1,(()=>{l=null})),Te());const r={};4&i&&(r.id="sir-Button-container-"+e[2]),1024&i&&(r.clazz=e[10]+" sir-Button-container"),16&i&&(r.inline=e[4]),2048&i&&(r.fading=e[11]),67236207&i&&(r.$$scope={dirty:i,ctx:e}),!o&&128&i&&(o=!0,r.ref=e[7],be((()=>o=!1))),n.$set(r)},i(e){i||(Oe(l),Oe(n.$$.fragment,e),i=!0)},o(e){Ie(l),Ie(n.$$.fragment,e),i=!1},d(e){e&&T(t),l&&l.d(e),Ze(n,e)}}}function Ht(e,t,n){let{clazz:o="",disabled:i=!1,fading:l=!0,i18n:r,icon:s,id:c,indented:a=!1,indentedLabel:d="",inline:u=!1,label:p,maximize:f=!1,maximizeLabel:h=!1,node:m,primary:v=!1,ref:b,selected:g=!1,small:$=!1,style:w="",tooltip:y="",tooltipOptions:x={}}=t;return $=Xe($),i=Xe(i),f=Xe(f),h=Xe(h),u=Xe(u),a=Xe(a),c=c||Je(),p&&(p=Rt(RED,m,r,p)),x.icon=!1,x.target="sir-Button-container-"+c,e.$$set=e=>{"clazz"in e&&n(10,o=e.clazz),"disabled"in e&&n(1,i=e.disabled),"fading"in e&&n(11,l=e.fading),"i18n"in e&&n(18,r=e.i18n),"icon"in e&&n(12,s=e.icon),"id"in e&&n(2,c=e.id),"indented"in e&&n(3,a=e.indented),"indentedLabel"in e&&n(13,d=e.indentedLabel),"inline"in e&&n(4,u=e.inline),"label"in e&&n(0,p=e.label),"maximize"in e&&n(5,f=e.maximize),"maximizeLabel"in e&&n(6,h=e.maximizeLabel),"node"in e&&n(19,m=e.node),"primary"in e&&n(14,v=e.primary),"ref"in e&&n(7,b=e.ref),"selected"in e&&n(15,g=e.selected),"small"in e&&n(8,$=e.small),"style"in e&&n(16,w=e.style),"tooltip"in e&&n(17,y=e.tooltip),"tooltipOptions"in e&&n(9,x=e.tooltipOptions)},e.$$.update=()=>{786433&e.$$.dirty&&p&&n(0,p=Rt(RED,m,r,p))},[p,i,c,a,u,f,h,b,$,x,o,l,s,d,v,g,w,y,r,m,function(t){se.call(this,e,t)},function(t){se.call(this,e,t)},function(t){se.call(this,e,t)},function(t){se.call(this,e,t)},function(t){se.call(this,e,t)},function(e){b=e,n(7,b)}]}class Nt extends Fe{constructor(e){super(),je(this,e,Ht,Ct,c,{clazz:10,disabled:1,fading:11,i18n:18,icon:12,id:2,indented:3,indentedLabel:13,inline:4,label:0,maximize:5,maximizeLabel:6,node:19,primary:14,ref:7,selected:15,small:8,style:16,tooltip:17,tooltipOptions:9},_t)}}function Pt(e){z(e,"svelte-p59wu1",".sir-Input.svelte-p59wu1.svelte-p59wu1{width:-webkit-fill-available;width:-moz-available;width:stretch}.sir-Input-clickable.svelte-p59wu1.svelte-p59wu1{cursor:pointer}.sir-Input-checkbox.svelte-p59wu1.svelte-p59wu1{display:inline-flex}.sir-Input-checkbox.svelte-p59wu1 input.svelte-p59wu1{margin:0px}")}function Wt(e){let n;return{c(){n=I("span"),n.textContent="Error: No property name given.",M(n,"class","sir-Input-maximize")},m(e,t){_(e,n,t)},p:t,i:t,o:t,d(e){e&&T(n)}}}function Bt(e){let t,n,o,i,l,r,s;const c=[St,Mt],a=[];function d(e,t){return"checkbox"!==e[9]&&e[1]||"checkbox"===e[9]&&e[1]&&e[6]?0:e[5]?1:-1}~(t=d(e))&&(n=a[t]=c[t](e));const u=[Xt,Vt,Ut,Gt,Ft,jt,qt,Zt,At],p=[];function f(e,t){return"text"===e[9]?0:"number"===e[9]?1:"password"===e[9]?2:"email"===e[9]?3:"url"===e[9]?4:"color"===e[9]?5:"checkbox"===e[9]?6:"search"===e[9]?7:8}return i=f(e),l=p[i]=u[i](e),{c(){n&&n.c(),o=C(),l.c(),r=H()},m(e,n){~t&&a[t].m(e,n),_(e,o,n),p[i].m(e,n),_(e,r,n),s=!0},p(e,s){let h=t;t=d(e),t===h?~t&&a[t].p(e,s):(n&&(_e(),Ie(a[h],1,1,(()=>{a[h]=null})),Te()),~t?(n=a[t],n?n.p(e,s):(n=a[t]=c[t](e),n.c()),Oe(n,1),n.m(o.parentNode,o)):n=null);let m=i;i=f(e),i===m?p[i].p(e,s):(_e(),Ie(p[m],1,1,(()=>{p[m]=null})),Te(),l=p[i],l?l.p(e,s):(l=p[i]=u[i](e),l.c()),Oe(l,1),l.m(r.parentNode,r))},i(e){s||(Oe(n),Oe(l),s=!0)},o(e){Ie(n),Ie(l),s=!1},d(e){e&&(T(o),T(r)),~t&&a[t].d(e),p[i].d(e)}}}function Mt(e){let n,o;return n=new gt({props:{notClickable:!0}}),{c(){Se(n.$$.fragment)},m(e,t){Ae(n,e,t),o=!0},p:t,i(e){o||(Oe(n.$$.fragment,e),o=!0)},o(e){Ie(n.$$.fragment,e),o=!1},d(e){Ze(n,e)}}}function St(e){let t,n;return t=new gt({props:{id:"sir-Input-label-"+e[0],label:e[1],labelFor:e[16],icon:e[4],tooltip:e[14],tooltipOptions:e[8],maximize:e[12]}}),t.$on("mouseenter",e[89]),t.$on("mouseleave",e[90]),{c(){Se(t.$$.fragment)},m(e,o){Ae(t,e,o),n=!0},p(e,n){const o={};1&n[0]&&(o.id="sir-Input-label-"+e[0]),2&n[0]&&(o.label=e[1]),16&n[0]&&(o.icon=e[4]),16384&n[0]&&(o.tooltip=e[14]),256&n[0]&&(o.tooltipOptions=e[8]),4096&n[0]&&(o.maximize=e[12]),t.$set(o)},i(e){n||(Oe(t.$$.fragment,e),n=!0)},o(e){Ie(t.$$.fragment,e),n=!1},d(e){Ze(t,e)}}}function At(e){let n,o,i,l;return{c(){n=I("span"),o=L("Error: Unsupported property type '"),i=L(e[9]),l=L("'.")},m(e,t){_(e,n,t),k(n,o),k(n,i),k(n,l)},p(e,t){512&t[0]&&Z(i,e[9])},i:t,o:t,d(e){e&&T(n)}}}function Zt(e){let n,o,i,l,s,c,a,d,u=e[15].value&&Jt(e);return{c(){n=I("div"),o=I("i"),i=C(),l=I("input"),c=C(),u&&u.c(),M(o,"class","fa fa-search"),M(l,"id",e[16]),M(l,"placeholder",s=e[2]||"search"),l.disabled=e[3],l.readOnly=e[7],M(l,"class","red-ui-searchBox-input svelte-p59wu1"),M(l,"type","text"),U(l,"sir-Input",!0),U(l,"input-error",e[15].error),M(n,"class","red-ui-searchBox-container red-ui-searchBox-compact svelte-p59wu1"),U(n,"sir-Input",!0)},m(t,r){_(t,n,r),k(n,o),k(n,i),k(n,l),q(l,e[15].value),k(n,c),u&&u.m(n,null),a||(d=[N(l,"input",e[101]),N(l,"mouseenter",e[81]),N(l,"mouseleave",e[82]),N(l,"keypress",e[83]),N(l,"keydown",e[84]),N(l,"click",e[85]),N(l,"input",e[86]),N(l,"focus",e[87]),N(l,"blur",e[88])],a=!0)},p(e,t){4&t[0]&&s!==(s=e[2]||"search")&&M(l,"placeholder",s),8&t[0]&&(l.disabled=e[3]),128&t[0]&&(l.readOnly=e[7]),32768&t[0]&&l.value!==e[15].value&&q(l,e[15].value),32768&t[0]&&U(l,"input-error",e[15].error),e[15].value?u?u.p(e,t):(u=Jt(e),u.c(),u.m(n,null)):u&&(u.d(1),u=null)},i:t,o:t,d(e){e&&T(n),u&&u.d(),a=!1,r(d)}}}function qt(e){let t,n,o,i,l,s,c=e[1]&&!e[6]&&Kt(e);return{c(){t=I("div"),n=I("input"),o=C(),c&&c.c(),M(n,"id",e[16]),n.disabled=e[3],n.readOnly=e[7],M(n,"type","checkbox"),n.indeterminate=e[10],M(n,"class","svelte-p59wu1"),U(n,"input-error",e[15].error),M(t,"class","sir-Input-checkbox svelte-p59wu1"),U(t,"sir-Input",!0)},m(r,a){_(r,t,a),k(t,n),n.checked=e[15].value,k(t,o),c&&c.m(t,null),i=!0,l||(s=[N(n,"change",e[98]),N(n,"mouseenter",e[73]),N(n,"mouseleave",e[74]),N(n,"keypress",e[75]),N(n,"keydown",e[76]),N(n,"click",e[77]),N(n,"input",e[78]),N(n,"focus",e[79]),N(n,"blur",e[80])],l=!0)},p(e,o){(!i||8&o[0])&&(n.disabled=e[3]),(!i||128&o[0])&&(n.readOnly=e[7]),(!i||1024&o[0])&&(n.indeterminate=e[10]),32768&o[0]&&(n.checked=e[15].value),(!i||32768&o[0])&&U(n,"input-error",e[15].error),e[1]&&!e[6]?c?(c.p(e,o),66&o[0]&&Oe(c,1)):(c=Kt(e),c.c(),Oe(c,1),c.m(t,null)):c&&(_e(),Ie(c,1,1,(()=>{c=null})),Te())},i(e){i||(Oe(c),i=!0)},o(e){Ie(c),i=!1},d(e){e&&T(t),c&&c.d(),l=!1,r(s)}}}function jt(e){let n,o,i,l,s;return{c(){n=I("input"),o=C(),i=I("input"),n.disabled=e[3],n.readOnly=e[7],j(n,"max-width","30px"),j(n,"cursor","pointer"),M(n,"type","color"),U(n,"input-error",e[15].error),M(i,"id",e[16]),M(i,"placeholder",e[2]),i.disabled=e[3],i.readOnly=e[7],M(i,"type","text"),M(i,"class","svelte-p59wu1"),U(i,"sir-Input",!0),U(i,"input-error",e[15].error)},m(t,r){_(t,n,r),q(n,e[15].value),_(t,o,r),_(t,i,r),q(i,e[15].value),l||(s=[N(n,"input",e[96]),N(n,"input",e[71]),N(n,"click",e[72]),N(i,"input",e[97]),N(i,"mouseenter",e[64]),N(i,"mouseleave",e[65]),N(i,"keypress",e[66]),N(i,"keydown",e[67]),N(i,"input",e[68]),N(i,"focus",e[69]),N(i,"blur",e[70])],l=!0)},p(e,t){8&t[0]&&(n.disabled=e[3]),128&t[0]&&(n.readOnly=e[7]),32768&t[0]&&q(n,e[15].value),32768&t[0]&&U(n,"input-error",e[15].error),4&t[0]&&M(i,"placeholder",e[2]),8&t[0]&&(i.disabled=e[3]),128&t[0]&&(i.readOnly=e[7]),32768&t[0]&&i.value!==e[15].value&&q(i,e[15].value),32768&t[0]&&U(i,"input-error",e[15].error)},i:t,o:t,d(e){e&&(T(n),T(o),T(i)),l=!1,r(s)}}}function Ft(e){let n,o,i;return{c(){n=I("input"),M(n,"id",e[16]),M(n,"placeholder",e[2]),n.disabled=e[3],n.readOnly=e[7],M(n,"type","url"),M(n,"class","svelte-p59wu1"),U(n,"sir-Input",!0),U(n,"input-error",e[15].error)},m(t,l){_(t,n,l),q(n,e[15].value),o||(i=[N(n,"input",e[95]),N(n,"mouseenter",e[56]),N(n,"mouseleave",e[57]),N(n,"keypress",e[58]),N(n,"keydown",e[59]),N(n,"click",e[60]),N(n,"input",e[61]),N(n,"focus",e[62]),N(n,"blur",e[63])],o=!0)},p(e,t){4&t[0]&&M(n,"placeholder",e[2]),8&t[0]&&(n.disabled=e[3]),128&t[0]&&(n.readOnly=e[7]),32768&t[0]&&n.value!==e[15].value&&q(n,e[15].value),32768&t[0]&&U(n,"input-error",e[15].error)},i:t,o:t,d(e){e&&T(n),o=!1,r(i)}}}function Gt(e){let n,o,i;return{c(){n=I("input"),M(n,"id",e[16]),M(n,"placeholder",e[2]),n.disabled=e[3],n.readOnly=e[7],M(n,"type","email"),M(n,"class","svelte-p59wu1"),U(n,"sir-Input",!0),U(n,"input-error",e[15].error)},m(t,l){_(t,n,l),q(n,e[15].value),o||(i=[N(n,"input",e[94]),N(n,"mouseenter",e[48]),N(n,"mouseleave",e[49]),N(n,"keypress",e[50]),N(n,"keydown",e[51]),N(n,"click",e[52]),N(n,"input",e[53]),N(n,"focus",e[54]),N(n,"blur",e[55])],o=!0)},p(e,t){4&t[0]&&M(n,"placeholder",e[2]),8&t[0]&&(n.disabled=e[3]),128&t[0]&&(n.readOnly=e[7]),32768&t[0]&&n.value!==e[15].value&&q(n,e[15].value),32768&t[0]&&U(n,"input-error",e[15].error)},i:t,o:t,d(e){e&&T(n),o=!1,r(i)}}}function Ut(e){let n,o,i;return{c(){n=I("input"),M(n,"id",e[16]),M(n,"placeholder",e[2]),n.disabled=e[3],n.readOnly=e[7],M(n,"type","password"),M(n,"class","svelte-p59wu1"),U(n,"sir-Input",!0),U(n,"input-error",e[15].error)},m(t,l){_(t,n,l),q(n,e[15].value),o||(i=[N(n,"input",e[93]),N(n,"mouseenter",e[40]),N(n,"mouseleave",e[41]),N(n,"keypress",e[42]),N(n,"keydown",e[43]),N(n,"click",e[44]),N(n,"input",e[45]),N(n,"focus",e[46]),N(n,"blur",e[47])],o=!0)},p(e,t){4&t[0]&&M(n,"placeholder",e[2]),8&t[0]&&(n.disabled=e[3]),128&t[0]&&(n.readOnly=e[7]),32768&t[0]&&n.value!==e[15].value&&q(n,e[15].value),32768&t[0]&&U(n,"input-error",e[15].error)},i:t,o:t,d(e){e&&T(n),o=!1,r(i)}}}function Vt(e){let n,o,i;return{c(){n=I("input"),M(n,"id",e[16]),M(n,"placeholder",e[2]),n.disabled=e[3],n.readOnly=e[7],M(n,"type","number"),M(n,"class","svelte-p59wu1"),U(n,"sir-Input",!0),U(n,"input-error",e[15].error)},m(t,l){_(t,n,l),q(n,e[15].value),o||(i=[N(n,"input",e[92]),N(n,"mouseenter",e[32]),N(n,"mouseleave",e[33]),N(n,"keypress",e[34]),N(n,"keydown",e[35]),N(n,"click",e[36]),N(n,"input",e[37]),N(n,"focus",e[38]),N(n,"blur",e[39])],o=!0)},p(e,t){4&t[0]&&M(n,"placeholder",e[2]),8&t[0]&&(n.disabled=e[3]),128&t[0]&&(n.readOnly=e[7]),32768&t[0]&&S(n.value)!==e[15].value&&q(n,e[15].value),32768&t[0]&&U(n,"input-error",e[15].error)},i:t,