{"version":3,"file":"index-Du3Ogdyg.js","sources":["../../node_modules/react/cjs/react.production.min.js","../../node_modules/react/index.js","../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../node_modules/react/jsx-runtime.js","../../node_modules/scheduler/cjs/scheduler.production.min.js","../../node_modules/scheduler/index.js","../../node_modules/react-dom/cjs/react-dom.production.min.js","../../node_modules/react-dom/index.js","../../node_modules/react-dom/client.js","../../node_modules/@priolo/jon/dist/index.es.js","../../node_modules/@priolo/jack/dist/index.es.js","../../src/stores/docs/links.ts","../../node_modules/dayjs/dayjs.min.js","../../src/utils/time.ts","../../src/stores/docs/drawer.ts","../../src/stores/docs/cards.ts","../../src/stores/log/utils.ts","../../src/stores/log/index.ts","../../src/stores/docs/types.ts","../../src/stores/stacks/utils.ts","../../src/utils/object.ts","../../src/plugins/AjaxService.ts","../../src/api/connection.ts","../../src/plugins/SocketService/reconnect.ts","../../src/plugins/SocketService/types.ts","../../src/plugins/SocketService/utils.ts","../../src/types/Connection.ts","../../src/plugins/SocketService/index.ts","../../src/plugins/SocketService/pool.ts","../../src/stores/connections/index.ts","../../src/api/about.ts","../../src/stores/stacks/viewBase.ts","../../src/stores/stacks/about/index.ts","../../src/api/buckets.ts","../../src/types/Stream.ts","../../src/stores/stacks/buckets/utils/factory.ts","../../src/stores/stacks/buckets/index.ts","../../src/stores/stacks/kventry/utils/factory.ts","../../src/stores/stacks/buckets/detail.ts","../../src/stores/stacks/cnnImport/index.ts","../../src/stores/stacks/streams/utils/factory.ts","../../src/stores/stacks/connection/utils/factory.ts","../../src/stores/stacks/connection/index.ts","../../src/stores/stacks/connection/detail.ts","../../src/api/messages.ts","../../src/utils/editor.ts","../../src/stores/stacks/editorBase.ts","../../src/utils/string.ts","../../src/stores/stacks/connection/messageSend/index.ts","../../src/types/Message.ts","../../src/stores/stacks/connection/messages/index.ts","../../src/api/consumers.ts","../../src/types/Consumer.ts","../../src/stores/stacks/consumer/utils/factory.ts","../../src/stores/stacks/consumer/index.ts","../../src/stores/stacks/consumer/detail.ts","../../src/stores/stacks/help/index.ts","../../src/api/kventries.ts","../../src/stores/stacks/kventry/index.ts","../../src/stores/stacks/kventry/detail.ts","../../src/stores/stacks/log/index.ts","../../src/stores/stacks/message/index.ts","../../src/api/streams.ts","../../src/stores/stacks/streams/index.ts","../../src/stores/stacks/streams/detail.ts","../../src/stores/stacks/streams/messages.ts","../../src/stores/stacks/sync/index.ts","../../src/stores/stacks/jsonconfig/index.ts","../../src/stores/stacks/shortcut/index.ts","../../src/stores/docs/utils/factory.ts","../../src/utils/session/storage.ts","../../src/utils/session/shortcut.ts","../../src/utils/session/startup.ts","../../src/icons/ArrowUpIcon.tsx","../../src/icons/LogIcon.tsx","../../src/icons/SyncIcon.tsx","../../src/icons/cards/BucketIcon.tsx","../../src/icons/cards/BucketsIcon.tsx","../../src/icons/cards/ConnectionIcon.tsx","../../src/icons/cards/ConnectionsIcon.tsx","../../src/icons/cards/ConsumerIcon.tsx","../../src/icons/cards/ConsumersIcon.tsx","../../src/icons/cards/KvEntriesIcon.tsx","../../src/icons/cards/KvEntryIcon.tsx","../../src/icons/cards/MessageIcon.tsx","../../src/icons/cards/MessagesIcon.tsx","../../src/icons/cards/StreamIcon.tsx","../../src/icons/cards/StreamsIcon.tsx","../../src/icons/cards/ConfigIcon.tsx","../../src/components/cards/CardIcon.tsx","../../src/icons/CloseIcon.tsx","../../src/app/mainMenu/MenuButton.tsx","../../src/app/mainMenu/StoreButton.tsx","../../src/app/mainMenu/AboutButton.tsx","../../src/app/mainMenu/MainMenu.tsx","../../src/components/buttons/LinkButton.tsx","../../src/icons/IconizeIcon.tsx","../../src/components/cards/FrameworkCard.tsx","../../src/components/rows/RowButton.tsx","../../src/icons/SendIcon.tsx","../../src/components/stacks/connections/detail/Actions.tsx","../../src/icons/CheckRadioOnIcon.tsx","../../src/components/stacks/connections/detail/AuthForm.tsx","../../src/components/stacks/connections/detail/Form.tsx","../../src/components/stacks/connections/detail/View.tsx","../../src/icons/PauseIcon.tsx","../../src/icons/PlayIcon.tsx","../../src/components/editor/FormatDialog.tsx","../../src/icons/ArrowDownIcon.tsx","../../src/icons/ClearIcon.tsx","../../node_modules/react-virtuoso/dist/index.mjs","../../src/components/formatters/base64/Base64Cmp.tsx","../../src/components/formatters/divider/DividerRow.tsx","../../src/components/formatters/hex/HexAsciiBlock.tsx","../../src/components/formatters/hex/HexBlock.tsx","../../src/components/formatters/hex/HexRow.tsx","../../src/components/formatters/hex/HexTable.tsx","../../src/components/formatters/text/TextRow.tsx","../../src/components/formatters/json/JsonRow.tsx","../../src/components/stacks/messages/MessageRow.tsx","../../src/components/stacks/messages/MessagesList.tsx","../../src/icons/HeartIcon.tsx","../../src/icons/HeartOutlineIcon.tsx","../../src/components/rows/EditSubscriptionRow.tsx","../../src/components/stacks/connections/messages/SubjectsDialog.tsx","../../src/components/stacks/connections/messages/View.tsx","../../src/icons/GitHubIcon.tsx","../../src/icons/HelpIcon.tsx","../../src/icons/KeyboardIcon.tsx","../../src/components/stacks/about/View.tsx","../../src/assets/Shortcut.svg","../../src/components/stacks/shortcut/View.tsx","../../src/components/stacks/buckets/detail/Actions.tsx","../../src/icons/ArrowRightIcon.tsx","../../src/components/input/MaxBytesCmp.tsx","../../src/components/input/MaxTimeCmp.tsx","../../src/components/rows/EditSubjectTransformRow.tsx","../../src/components/stacks/streams/detail/cmp/EditSourceCmp.tsx","../../src/components/stacks/streams/detail/cmp/SourcesCmp.tsx","../../src/components/stacks/buckets/detail/Form.tsx","../../src/components/stacks/buckets/detail/View.tsx","../../src/components/stacks/buckets/list/ListView.tsx","../../src/icons/AlertIcon.tsx","../../src/icons/DoneIcon.tsx","../../src/components/rows/ElementRow.tsx","../../src/components/stacks/connections/ListView.tsx","../../src/components/stacks/consumers/ListView.tsx","../../src/components/stacks/consumers/detail/Actions.tsx","../../src/components/rows/EditMetadataRow.tsx","../../src/components/input/KeyValueMap.tsx","../../src/components/input/MaxNumberCmp.tsx","../../src/components/stacks/consumers/detail/Form.tsx","../../src/components/stacks/consumers/detail/View.tsx","../../src/icons/YouTubeIcon.tsx","../../src/components/stacks/help/View.tsx","../../src/types/KVEntry.ts","../../src/icons/FormatIcon.tsx","../../src/components/editor/FormatAction.tsx","../../src/icons/ArrowLeftIcon.tsx","../../src/components/stacks/kventries/detail/Actions.tsx","../../src/stores/stacks/message/utils.ts","../../node_modules/@monaco-editor/loader/lib/es/_virtual/_rollupPluginBabelHelpers.js","../../node_modules/state-local/lib/es/state-local.js","../../node_modules/@monaco-editor/loader/lib/es/config/index.js","../../node_modules/@monaco-editor/loader/lib/es/utils/curry.js","../../node_modules/@monaco-editor/loader/lib/es/utils/isObject.js","../../node_modules/@monaco-editor/loader/lib/es/validators/index.js","../../node_modules/@monaco-editor/loader/lib/es/utils/compose.js","../../node_modules/@monaco-editor/loader/lib/es/utils/deepMerge.js","../../node_modules/@monaco-editor/loader/lib/es/utils/makeCancelable.js","../../node_modules/@monaco-editor/loader/lib/es/loader/index.js","../../node_modules/@monaco-editor/react/dist/index.mjs","../../src/components/editor/utils.ts","../../src/components/editor/index.tsx","../../src/components/stacks/kventries/detail/DetailForm.tsx","../../src/components/stacks/kventries/detail/View.tsx","../../src/components/stacks/kventries/list/ListView.tsx","../../src/components/stacks/mainLogs/ItemRow.tsx","../../src/components/stacks/mainLogs/View.tsx","../../src/components/stacks/message/HeadersCmp.tsx","../../src/icons/LinkDownIcon.tsx","../../src/components/stacks/message/View.tsx","../../src/components/stacks/messageSend/SubjectsDialog.tsx","../../src/components/stacks/messageSend/View.tsx","../../src/components/stacks/streams/detail/Actions.tsx","../../src/components/stacks/streams/detail/Form.tsx","../../src/components/stacks/streams/detail/View.tsx","../../src/components/stacks/streams/list/PurgeDialog.tsx","../../src/components/stacks/streams/list/ListView.tsx","../../src/components/stacks/streams/messages/FilterDialog.tsx","../../src/components/stacks/streams/messages/View.tsx","../../src/components/stacks/sync/OptionsDialog.tsx","../../src/components/stacks/sync/View.tsx","../../src/components/stacks/jsonconfig/Actions.tsx","../../src/components/stacks/jsonconfig/View.tsx","../../src/icons/BigEyeIcon.tsx","../../src/icons/SkullIcon.tsx","../../src/icons/SuccessIcon.tsx","../../src/components/stacks/cnnImport/Actions.tsx","../../src/components/stacks/cnnImport/View.tsx","../../src/components/cards/PolymorphicCard.tsx","../../src/app/DeckGroup.tsx","../../src/icons/CompressAllIcon.tsx","../../src/icons/DirectionDownIcon.tsx","../../src/icons/DirectionLeftIcon.tsx","../../src/icons/DirectionRightIcon.tsx","../../src/icons/DirectionUpIcon.tsx","../../src/icons/MenuBottomIcon.tsx","../../src/icons/MenuRightIcon.tsx","../../src/app/DrawerGroup.tsx","../../src/app/App.tsx","../../src/main.tsx"],"sourcesContent":["/**\n * @license React\n * react.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var l=Symbol.for(\"react.element\"),n=Symbol.for(\"react.portal\"),p=Symbol.for(\"react.fragment\"),q=Symbol.for(\"react.strict_mode\"),r=Symbol.for(\"react.profiler\"),t=Symbol.for(\"react.provider\"),u=Symbol.for(\"react.context\"),v=Symbol.for(\"react.forward_ref\"),w=Symbol.for(\"react.suspense\"),x=Symbol.for(\"react.memo\"),y=Symbol.for(\"react.lazy\"),z=Symbol.iterator;function A(a){if(null===a||\"object\"!==typeof a)return null;a=z&&a[z]||a[\"@@iterator\"];return\"function\"===typeof a?a:null}\nvar B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,D={};function E(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B}E.prototype.isReactComponent={};\nE.prototype.setState=function(a,b){if(\"object\"!==typeof a&&\"function\"!==typeof a&&null!=a)throw Error(\"setState(...): takes an object of state variables to update or a function which returns an object of state variables.\");this.updater.enqueueSetState(this,a,b,\"setState\")};E.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,\"forceUpdate\")};function F(){}F.prototype=E.prototype;function G(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B}var H=G.prototype=new F;\nH.constructor=G;C(H,E.prototype);H.isPureReactComponent=!0;var I=Array.isArray,J=Object.prototype.hasOwnProperty,K={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};\nfunction M(a,b,e){var d,c={},k=null,h=null;if(null!=b)for(d in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(k=\"\"+b.key),b)J.call(b,d)&&!L.hasOwnProperty(d)&&(c[d]=b[d]);var g=arguments.length-2;if(1===g)c.children=e;else if(1>>1,e=a[d];if(0>>1;dg(C,c))ng(x,C)?(a[d]=x,a[n]=c,d=n):(a[d]=C,a[m]=c,d=m);else if(ng(x,c))a[d]=x,a[n]=c,d=n;else break a}}return b}\nfunction g(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}if(\"object\"===typeof performance&&\"function\"===typeof performance.now){var l=performance;exports.unstable_now=function(){return l.now()}}else{var p=Date,q=p.now();exports.unstable_now=function(){return p.now()-q}}var r=[],t=[],u=1,v=null,y=3,z=!1,A=!1,B=!1,D=\"function\"===typeof setTimeout?setTimeout:null,E=\"function\"===typeof clearTimeout?clearTimeout:null,F=\"undefined\"!==typeof setImmediate?setImmediate:null;\n\"undefined\"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function G(a){for(var b=h(t);null!==b;){if(null===b.callback)k(t);else if(b.startTime<=a)k(t),b.sortIndex=b.expirationTime,f(r,b);else break;b=h(t)}}function H(a){B=!1;G(a);if(!A)if(null!==h(r))A=!0,I(J);else{var b=h(t);null!==b&&K(H,b.startTime-a)}}\nfunction J(a,b){A=!1;B&&(B=!1,E(L),L=-1);z=!0;var c=y;try{G(b);for(v=h(r);null!==v&&(!(v.expirationTime>b)||a&&!M());){var d=v.callback;if(\"function\"===typeof d){v.callback=null;y=v.priorityLevel;var e=d(v.expirationTime<=b);b=exports.unstable_now();\"function\"===typeof e?v.callback=e:v===h(r)&&k(r);G(b)}else k(r);v=h(r)}if(null!==v)var w=!0;else{var m=h(t);null!==m&&K(H,m.startTime-b);w=!1}return w}finally{v=null,y=c,z=!1}}var N=!1,O=null,L=-1,P=5,Q=-1;\nfunction M(){return exports.unstable_now()-Qa||125d?(a.sortIndex=c,f(t,a),null===h(r)&&a===h(t)&&(B?(E(L),L=-1):B=!0,K(H,c-d))):(a.sortIndex=e,f(r,a),A||z||(A=!0,I(J)));return a};\nexports.unstable_shouldYield=M;exports.unstable_wrapCallback=function(a){var b=y;return function(){var c=y;y=b;try{return a.apply(this,arguments)}finally{y=c}}};\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/scheduler.production.min.js');\n} else {\n module.exports = require('./cjs/scheduler.development.js');\n}\n","/**\n * @license React\n * react-dom.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n/*\n Modernizr 3.0.0pre (Custom Build) | MIT\n*/\n'use strict';var aa=require(\"react\"),ca=require(\"scheduler\");function p(a){for(var b=\"https://reactjs.org/docs/error-decoder.html?invariant=\"+a,c=1;cb}return!1}function v(a,b,c,d,e,f,g){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=d;this.attributeNamespace=e;this.mustUseProperty=c;this.propertyName=a;this.type=b;this.sanitizeURL=f;this.removeEmptyString=g}var z={};\n\"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style\".split(\" \").forEach(function(a){z[a]=new v(a,0,!1,a,null,!1,!1)});[[\"acceptCharset\",\"accept-charset\"],[\"className\",\"class\"],[\"htmlFor\",\"for\"],[\"httpEquiv\",\"http-equiv\"]].forEach(function(a){var b=a[0];z[b]=new v(b,1,!1,a[1],null,!1,!1)});[\"contentEditable\",\"draggable\",\"spellCheck\",\"value\"].forEach(function(a){z[a]=new v(a,2,!1,a.toLowerCase(),null,!1,!1)});\n[\"autoReverse\",\"externalResourcesRequired\",\"focusable\",\"preserveAlpha\"].forEach(function(a){z[a]=new v(a,2,!1,a,null,!1,!1)});\"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope\".split(\" \").forEach(function(a){z[a]=new v(a,3,!1,a.toLowerCase(),null,!1,!1)});\n[\"checked\",\"multiple\",\"muted\",\"selected\"].forEach(function(a){z[a]=new v(a,3,!0,a,null,!1,!1)});[\"capture\",\"download\"].forEach(function(a){z[a]=new v(a,4,!1,a,null,!1,!1)});[\"cols\",\"rows\",\"size\",\"span\"].forEach(function(a){z[a]=new v(a,6,!1,a,null,!1,!1)});[\"rowSpan\",\"start\"].forEach(function(a){z[a]=new v(a,5,!1,a.toLowerCase(),null,!1,!1)});var ra=/[\\-:]([a-z])/g;function sa(a){return a[1].toUpperCase()}\n\"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height\".split(\" \").forEach(function(a){var b=a.replace(ra,\nsa);z[b]=new v(b,1,!1,a,null,!1,!1)});\"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type\".split(\" \").forEach(function(a){var b=a.replace(ra,sa);z[b]=new v(b,1,!1,a,\"http://www.w3.org/1999/xlink\",!1,!1)});[\"xml:base\",\"xml:lang\",\"xml:space\"].forEach(function(a){var b=a.replace(ra,sa);z[b]=new v(b,1,!1,a,\"http://www.w3.org/XML/1998/namespace\",!1,!1)});[\"tabIndex\",\"crossOrigin\"].forEach(function(a){z[a]=new v(a,1,!1,a.toLowerCase(),null,!1,!1)});\nz.xlinkHref=new v(\"xlinkHref\",1,!1,\"xlink:href\",\"http://www.w3.org/1999/xlink\",!0,!1);[\"src\",\"href\",\"action\",\"formAction\"].forEach(function(a){z[a]=new v(a,1,!1,a.toLowerCase(),null,!0,!0)});\nfunction ta(a,b,c,d){var e=z.hasOwnProperty(b)?z[b]:null;if(null!==e?0!==e.type:d||!(2h||e[g]!==f[h]){var k=\"\\n\"+e[g].replace(\" at new \",\" at \");a.displayName&&k.includes(\"\")&&(k=k.replace(\"\",a.displayName));return k}while(1<=g&&0<=h)}break}}}finally{Na=!1,Error.prepareStackTrace=c}return(a=a?a.displayName||a.name:\"\")?Ma(a):\"\"}\nfunction Pa(a){switch(a.tag){case 5:return Ma(a.type);case 16:return Ma(\"Lazy\");case 13:return Ma(\"Suspense\");case 19:return Ma(\"SuspenseList\");case 0:case 2:case 15:return a=Oa(a.type,!1),a;case 11:return a=Oa(a.type.render,!1),a;case 1:return a=Oa(a.type,!0),a;default:return\"\"}}\nfunction Qa(a){if(null==a)return null;if(\"function\"===typeof a)return a.displayName||a.name||null;if(\"string\"===typeof a)return a;switch(a){case ya:return\"Fragment\";case wa:return\"Portal\";case Aa:return\"Profiler\";case za:return\"StrictMode\";case Ea:return\"Suspense\";case Fa:return\"SuspenseList\"}if(\"object\"===typeof a)switch(a.$$typeof){case Ca:return(a.displayName||\"Context\")+\".Consumer\";case Ba:return(a._context.displayName||\"Context\")+\".Provider\";case Da:var b=a.render;a=a.displayName;a||(a=b.displayName||\nb.name||\"\",a=\"\"!==a?\"ForwardRef(\"+a+\")\":\"ForwardRef\");return a;case Ga:return b=a.displayName||null,null!==b?b:Qa(a.type)||\"Memo\";case Ha:b=a._payload;a=a._init;try{return Qa(a(b))}catch(c){}}return null}\nfunction Ra(a){var b=a.type;switch(a.tag){case 24:return\"Cache\";case 9:return(b.displayName||\"Context\")+\".Consumer\";case 10:return(b._context.displayName||\"Context\")+\".Provider\";case 18:return\"DehydratedFragment\";case 11:return a=b.render,a=a.displayName||a.name||\"\",b.displayName||(\"\"!==a?\"ForwardRef(\"+a+\")\":\"ForwardRef\");case 7:return\"Fragment\";case 5:return b;case 4:return\"Portal\";case 3:return\"Root\";case 6:return\"Text\";case 16:return Qa(b);case 8:return b===za?\"StrictMode\":\"Mode\";case 22:return\"Offscreen\";\ncase 12:return\"Profiler\";case 21:return\"Scope\";case 13:return\"Suspense\";case 19:return\"SuspenseList\";case 25:return\"TracingMarker\";case 1:case 0:case 17:case 2:case 14:case 15:if(\"function\"===typeof b)return b.displayName||b.name||null;if(\"string\"===typeof b)return b}return null}function Sa(a){switch(typeof a){case \"boolean\":case \"number\":case \"string\":case \"undefined\":return a;case \"object\":return a;default:return\"\"}}\nfunction Ta(a){var b=a.type;return(a=a.nodeName)&&\"input\"===a.toLowerCase()&&(\"checkbox\"===b||\"radio\"===b)}\nfunction Ua(a){var b=Ta(a)?\"checked\":\"value\",c=Object.getOwnPropertyDescriptor(a.constructor.prototype,b),d=\"\"+a[b];if(!a.hasOwnProperty(b)&&\"undefined\"!==typeof c&&\"function\"===typeof c.get&&\"function\"===typeof c.set){var e=c.get,f=c.set;Object.defineProperty(a,b,{configurable:!0,get:function(){return e.call(this)},set:function(a){d=\"\"+a;f.call(this,a)}});Object.defineProperty(a,b,{enumerable:c.enumerable});return{getValue:function(){return d},setValue:function(a){d=\"\"+a},stopTracking:function(){a._valueTracker=\nnull;delete a[b]}}}}function Va(a){a._valueTracker||(a._valueTracker=Ua(a))}function Wa(a){if(!a)return!1;var b=a._valueTracker;if(!b)return!0;var c=b.getValue();var d=\"\";a&&(d=Ta(a)?a.checked?\"true\":\"false\":a.value);a=d;return a!==c?(b.setValue(a),!0):!1}function Xa(a){a=a||(\"undefined\"!==typeof document?document:void 0);if(\"undefined\"===typeof a)return null;try{return a.activeElement||a.body}catch(b){return a.body}}\nfunction Ya(a,b){var c=b.checked;return A({},b,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=c?c:a._wrapperState.initialChecked})}function Za(a,b){var c=null==b.defaultValue?\"\":b.defaultValue,d=null!=b.checked?b.checked:b.defaultChecked;c=Sa(null!=b.value?b.value:c);a._wrapperState={initialChecked:d,initialValue:c,controlled:\"checkbox\"===b.type||\"radio\"===b.type?null!=b.checked:null!=b.value}}function ab(a,b){b=b.checked;null!=b&&ta(a,\"checked\",b,!1)}\nfunction bb(a,b){ab(a,b);var c=Sa(b.value),d=b.type;if(null!=c)if(\"number\"===d){if(0===c&&\"\"===a.value||a.value!=c)a.value=\"\"+c}else a.value!==\"\"+c&&(a.value=\"\"+c);else if(\"submit\"===d||\"reset\"===d){a.removeAttribute(\"value\");return}b.hasOwnProperty(\"value\")?cb(a,b.type,c):b.hasOwnProperty(\"defaultValue\")&&cb(a,b.type,Sa(b.defaultValue));null==b.checked&&null!=b.defaultChecked&&(a.defaultChecked=!!b.defaultChecked)}\nfunction db(a,b,c){if(b.hasOwnProperty(\"value\")||b.hasOwnProperty(\"defaultValue\")){var d=b.type;if(!(\"submit\"!==d&&\"reset\"!==d||void 0!==b.value&&null!==b.value))return;b=\"\"+a._wrapperState.initialValue;c||b===a.value||(a.value=b);a.defaultValue=b}c=a.name;\"\"!==c&&(a.name=\"\");a.defaultChecked=!!a._wrapperState.initialChecked;\"\"!==c&&(a.name=c)}\nfunction cb(a,b,c){if(\"number\"!==b||Xa(a.ownerDocument)!==a)null==c?a.defaultValue=\"\"+a._wrapperState.initialValue:a.defaultValue!==\"\"+c&&(a.defaultValue=\"\"+c)}var eb=Array.isArray;\nfunction fb(a,b,c,d){a=a.options;if(b){b={};for(var e=0;e\"+b.valueOf().toString()+\"\";for(b=mb.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;b.firstChild;)a.appendChild(b.firstChild)}});\nfunction ob(a,b){if(b){var c=a.firstChild;if(c&&c===a.lastChild&&3===c.nodeType){c.nodeValue=b;return}}a.textContent=b}\nvar pb={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,\nzoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qb=[\"Webkit\",\"ms\",\"Moz\",\"O\"];Object.keys(pb).forEach(function(a){qb.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);pb[b]=pb[a]})});function rb(a,b,c){return null==b||\"boolean\"===typeof b||\"\"===b?\"\":c||\"number\"!==typeof b||0===b||pb.hasOwnProperty(a)&&pb[a]?(\"\"+b).trim():b+\"px\"}\nfunction sb(a,b){a=a.style;for(var c in b)if(b.hasOwnProperty(c)){var d=0===c.indexOf(\"--\"),e=rb(c,b[c],d);\"float\"===c&&(c=\"cssFloat\");d?a.setProperty(c,e):a[c]=e}}var tb=A({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});\nfunction ub(a,b){if(b){if(tb[a]&&(null!=b.children||null!=b.dangerouslySetInnerHTML))throw Error(p(137,a));if(null!=b.dangerouslySetInnerHTML){if(null!=b.children)throw Error(p(60));if(\"object\"!==typeof b.dangerouslySetInnerHTML||!(\"__html\"in b.dangerouslySetInnerHTML))throw Error(p(61));}if(null!=b.style&&\"object\"!==typeof b.style)throw Error(p(62));}}\nfunction vb(a,b){if(-1===a.indexOf(\"-\"))return\"string\"===typeof b.is;switch(a){case \"annotation-xml\":case \"color-profile\":case \"font-face\":case \"font-face-src\":case \"font-face-uri\":case \"font-face-format\":case \"font-face-name\":case \"missing-glyph\":return!1;default:return!0}}var wb=null;function xb(a){a=a.target||a.srcElement||window;a.correspondingUseElement&&(a=a.correspondingUseElement);return 3===a.nodeType?a.parentNode:a}var yb=null,zb=null,Ab=null;\nfunction Bb(a){if(a=Cb(a)){if(\"function\"!==typeof yb)throw Error(p(280));var b=a.stateNode;b&&(b=Db(b),yb(a.stateNode,a.type,b))}}function Eb(a){zb?Ab?Ab.push(a):Ab=[a]:zb=a}function Fb(){if(zb){var a=zb,b=Ab;Ab=zb=null;Bb(a);if(b)for(a=0;a>>=0;return 0===a?32:31-(pc(a)/qc|0)|0}var rc=64,sc=4194304;\nfunction tc(a){switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return a&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;\ndefault:return a}}function uc(a,b){var c=a.pendingLanes;if(0===c)return 0;var d=0,e=a.suspendedLanes,f=a.pingedLanes,g=c&268435455;if(0!==g){var h=g&~e;0!==h?d=tc(h):(f&=g,0!==f&&(d=tc(f)))}else g=c&~e,0!==g?d=tc(g):0!==f&&(d=tc(f));if(0===d)return 0;if(0!==b&&b!==d&&0===(b&e)&&(e=d&-d,f=b&-b,e>=f||16===e&&0!==(f&4194240)))return b;0!==(d&4)&&(d|=c&16);b=a.entangledLanes;if(0!==b)for(a=a.entanglements,b&=d;0c;c++)b.push(a);return b}\nfunction Ac(a,b,c){a.pendingLanes|=b;536870912!==b&&(a.suspendedLanes=0,a.pingedLanes=0);a=a.eventTimes;b=31-oc(b);a[b]=c}function Bc(a,b){var c=a.pendingLanes&~b;a.pendingLanes=b;a.suspendedLanes=0;a.pingedLanes=0;a.expiredLanes&=b;a.mutableReadLanes&=b;a.entangledLanes&=b;b=a.entanglements;var d=a.eventTimes;for(a=a.expirationTimes;0=be),ee=String.fromCharCode(32),fe=!1;\nfunction ge(a,b){switch(a){case \"keyup\":return-1!==$d.indexOf(b.keyCode);case \"keydown\":return 229!==b.keyCode;case \"keypress\":case \"mousedown\":case \"focusout\":return!0;default:return!1}}function he(a){a=a.detail;return\"object\"===typeof a&&\"data\"in a?a.data:null}var ie=!1;function je(a,b){switch(a){case \"compositionend\":return he(b);case \"keypress\":if(32!==b.which)return null;fe=!0;return ee;case \"textInput\":return a=b.data,a===ee&&fe?null:a;default:return null}}\nfunction ke(a,b){if(ie)return\"compositionend\"===a||!ae&&ge(a,b)?(a=nd(),md=ld=kd=null,ie=!1,a):null;switch(a){case \"paste\":return null;case \"keypress\":if(!(b.ctrlKey||b.altKey||b.metaKey)||b.ctrlKey&&b.altKey){if(b.char&&1=b)return{node:c,offset:b-a};a=d}a:{for(;c;){if(c.nextSibling){c=c.nextSibling;break a}c=c.parentNode}c=void 0}c=Je(c)}}function Le(a,b){return a&&b?a===b?!0:a&&3===a.nodeType?!1:b&&3===b.nodeType?Le(a,b.parentNode):\"contains\"in a?a.contains(b):a.compareDocumentPosition?!!(a.compareDocumentPosition(b)&16):!1:!1}\nfunction Me(){for(var a=window,b=Xa();b instanceof a.HTMLIFrameElement;){try{var c=\"string\"===typeof b.contentWindow.location.href}catch(d){c=!1}if(c)a=b.contentWindow;else break;b=Xa(a.document)}return b}function Ne(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return b&&(\"input\"===b&&(\"text\"===a.type||\"search\"===a.type||\"tel\"===a.type||\"url\"===a.type||\"password\"===a.type)||\"textarea\"===b||\"true\"===a.contentEditable)}\nfunction Oe(a){var b=Me(),c=a.focusedElem,d=a.selectionRange;if(b!==c&&c&&c.ownerDocument&&Le(c.ownerDocument.documentElement,c)){if(null!==d&&Ne(c))if(b=d.start,a=d.end,void 0===a&&(a=b),\"selectionStart\"in c)c.selectionStart=b,c.selectionEnd=Math.min(a,c.value.length);else if(a=(b=c.ownerDocument||document)&&b.defaultView||window,a.getSelection){a=a.getSelection();var e=c.textContent.length,f=Math.min(d.start,e);d=void 0===d.end?f:Math.min(d.end,e);!a.extend&&f>d&&(e=d,d=f,f=e);e=Ke(c,f);var g=Ke(c,\nd);e&&g&&(1!==a.rangeCount||a.anchorNode!==e.node||a.anchorOffset!==e.offset||a.focusNode!==g.node||a.focusOffset!==g.offset)&&(b=b.createRange(),b.setStart(e.node,e.offset),a.removeAllRanges(),f>d?(a.addRange(b),a.extend(g.node,g.offset)):(b.setEnd(g.node,g.offset),a.addRange(b)))}b=[];for(a=c;a=a.parentNode;)1===a.nodeType&&b.push({element:a,left:a.scrollLeft,top:a.scrollTop});\"function\"===typeof c.focus&&c.focus();for(c=0;c=document.documentMode,Qe=null,Re=null,Se=null,Te=!1;\nfunction Ue(a,b,c){var d=c.window===c?c.document:9===c.nodeType?c:c.ownerDocument;Te||null==Qe||Qe!==Xa(d)||(d=Qe,\"selectionStart\"in d&&Ne(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),Se&&Ie(Se,d)||(Se=d,d=oe(Re,\"onSelect\"),0Tf||(a.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G(a,b){Tf++;Sf[Tf]=a.current;a.current=b}var Vf={},H=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(a,b){var c=a.type.contextTypes;if(!c)return Vf;var d=a.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===b)return d.__reactInternalMemoizedMaskedChildContext;var e={},f;for(f in c)e[f]=b[f];d&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=b,a.__reactInternalMemoizedMaskedChildContext=e);return e}\nfunction Zf(a){a=a.childContextTypes;return null!==a&&void 0!==a}function $f(){E(Wf);E(H)}function ag(a,b,c){if(H.current!==Vf)throw Error(p(168));G(H,b);G(Wf,c)}function bg(a,b,c){var d=a.stateNode;b=b.childContextTypes;if(\"function\"!==typeof d.getChildContext)return c;d=d.getChildContext();for(var e in d)if(!(e in b))throw Error(p(108,Ra(a)||\"Unknown\",e));return A({},c,d)}\nfunction cg(a){a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||Vf;Xf=H.current;G(H,a);G(Wf,Wf.current);return!0}function dg(a,b,c){var d=a.stateNode;if(!d)throw Error(p(169));c?(a=bg(a,b,Xf),d.__reactInternalMemoizedMergedChildContext=a,E(Wf),E(H),G(H,a)):E(Wf);G(Wf,c)}var eg=null,fg=!1,gg=!1;function hg(a){null===eg?eg=[a]:eg.push(a)}function ig(a){fg=!0;hg(a)}\nfunction jg(){if(!gg&&null!==eg){gg=!0;var a=0,b=C;try{var c=eg;for(C=1;a>=g;e-=g;rg=1<<32-oc(b)+e|c<w?(x=u,u=null):x=u.sibling;var n=r(e,u,h[w],k);if(null===n){null===u&&(u=x);break}a&&u&&null===n.alternate&&b(e,u);g=f(n,g,w);null===m?l=n:m.sibling=n;m=n;u=x}if(w===h.length)return c(e,u),I&&tg(e,w),l;if(null===u){for(;ww?(x=m,m=null):x=m.sibling;var t=r(e,m,n.value,k);if(null===t){null===m&&(m=x);break}a&&m&&null===t.alternate&&b(e,m);g=f(t,g,w);null===u?l=t:u.sibling=t;u=t;m=x}if(n.done)return c(e,\nm),I&&tg(e,w),l;if(null===m){for(;!n.done;w++,n=h.next())n=q(e,n.value,k),null!==n&&(g=f(n,g,w),null===u?l=n:u.sibling=n,u=n);I&&tg(e,w);return l}for(m=d(e,m);!n.done;w++,n=h.next())n=y(m,e,w,n.value,k),null!==n&&(a&&null!==n.alternate&&m.delete(null===n.key?w:n.key),g=f(n,g,w),null===u?l=n:u.sibling=n,u=n);a&&m.forEach(function(a){return b(e,a)});I&&tg(e,w);return l}function J(a,d,f,h){\"object\"===typeof f&&null!==f&&f.type===ya&&null===f.key&&(f=f.props.children);if(\"object\"===typeof f&&null!==f){switch(f.$$typeof){case va:a:{for(var k=\nf.key,l=d;null!==l;){if(l.key===k){k=f.type;if(k===ya){if(7===l.tag){c(a,l.sibling);d=e(l,f.props.children);d.return=a;a=d;break a}}else if(l.elementType===k||\"object\"===typeof k&&null!==k&&k.$$typeof===Ha&&Ng(k)===l.type){c(a,l.sibling);d=e(l,f.props);d.ref=Lg(a,l,f);d.return=a;a=d;break a}c(a,l);break}else b(a,l);l=l.sibling}f.type===ya?(d=Tg(f.props.children,a.mode,h,f.key),d.return=a,a=d):(h=Rg(f.type,f.key,f.props,null,a.mode,h),h.ref=Lg(a,d,f),h.return=a,a=h)}return g(a);case wa:a:{for(l=f.key;null!==\nd;){if(d.key===l)if(4===d.tag&&d.stateNode.containerInfo===f.containerInfo&&d.stateNode.implementation===f.implementation){c(a,d.sibling);d=e(d,f.children||[]);d.return=a;a=d;break a}else{c(a,d);break}else b(a,d);d=d.sibling}d=Sg(f,a.mode,h);d.return=a;a=d}return g(a);case Ha:return l=f._init,J(a,d,l(f._payload),h)}if(eb(f))return n(a,d,f,h);if(Ka(f))return t(a,d,f,h);Mg(a,f)}return\"string\"===typeof f&&\"\"!==f||\"number\"===typeof f?(f=\"\"+f,null!==d&&6===d.tag?(c(a,d.sibling),d=e(d,f),d.return=a,a=d):\n(c(a,d),d=Qg(f,a.mode,h),d.return=a,a=d),g(a)):c(a,d)}return J}var Ug=Og(!0),Vg=Og(!1),Wg=Uf(null),Xg=null,Yg=null,Zg=null;function $g(){Zg=Yg=Xg=null}function ah(a){var b=Wg.current;E(Wg);a._currentValue=b}function bh(a,b,c){for(;null!==a;){var d=a.alternate;(a.childLanes&b)!==b?(a.childLanes|=b,null!==d&&(d.childLanes|=b)):null!==d&&(d.childLanes&b)!==b&&(d.childLanes|=b);if(a===c)break;a=a.return}}\nfunction ch(a,b){Xg=a;Zg=Yg=null;a=a.dependencies;null!==a&&null!==a.firstContext&&(0!==(a.lanes&b)&&(dh=!0),a.firstContext=null)}function eh(a){var b=a._currentValue;if(Zg!==a)if(a={context:a,memoizedValue:b,next:null},null===Yg){if(null===Xg)throw Error(p(308));Yg=a;Xg.dependencies={lanes:0,firstContext:a}}else Yg=Yg.next=a;return b}var fh=null;function gh(a){null===fh?fh=[a]:fh.push(a)}\nfunction hh(a,b,c,d){var e=b.interleaved;null===e?(c.next=c,gh(b)):(c.next=e.next,e.next=c);b.interleaved=c;return ih(a,d)}function ih(a,b){a.lanes|=b;var c=a.alternate;null!==c&&(c.lanes|=b);c=a;for(a=a.return;null!==a;)a.childLanes|=b,c=a.alternate,null!==c&&(c.childLanes|=b),c=a,a=a.return;return 3===c.tag?c.stateNode:null}var jh=!1;function kh(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}\nfunction lh(a,b){a=a.updateQueue;b.updateQueue===a&&(b.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,effects:a.effects})}function mh(a,b){return{eventTime:a,lane:b,tag:0,payload:null,callback:null,next:null}}\nfunction nh(a,b,c){var d=a.updateQueue;if(null===d)return null;d=d.shared;if(0!==(K&2)){var e=d.pending;null===e?b.next=b:(b.next=e.next,e.next=b);d.pending=b;return ih(a,c)}e=d.interleaved;null===e?(b.next=b,gh(d)):(b.next=e.next,e.next=b);d.interleaved=b;return ih(a,c)}function oh(a,b,c){b=b.updateQueue;if(null!==b&&(b=b.shared,0!==(c&4194240))){var d=b.lanes;d&=a.pendingLanes;c|=d;b.lanes=c;Cc(a,c)}}\nfunction ph(a,b){var c=a.updateQueue,d=a.alternate;if(null!==d&&(d=d.updateQueue,c===d)){var e=null,f=null;c=c.firstBaseUpdate;if(null!==c){do{var g={eventTime:c.eventTime,lane:c.lane,tag:c.tag,payload:c.payload,callback:c.callback,next:null};null===f?e=f=g:f=f.next=g;c=c.next}while(null!==c);null===f?e=f=b:f=f.next=b}else e=f=b;c={baseState:d.baseState,firstBaseUpdate:e,lastBaseUpdate:f,shared:d.shared,effects:d.effects};a.updateQueue=c;return}a=c.lastBaseUpdate;null===a?c.firstBaseUpdate=b:a.next=\nb;c.lastBaseUpdate=b}\nfunction qh(a,b,c,d){var e=a.updateQueue;jh=!1;var f=e.firstBaseUpdate,g=e.lastBaseUpdate,h=e.shared.pending;if(null!==h){e.shared.pending=null;var k=h,l=k.next;k.next=null;null===g?f=l:g.next=l;g=k;var m=a.alternate;null!==m&&(m=m.updateQueue,h=m.lastBaseUpdate,h!==g&&(null===h?m.firstBaseUpdate=l:h.next=l,m.lastBaseUpdate=k))}if(null!==f){var q=e.baseState;g=0;m=l=k=null;h=f;do{var r=h.lane,y=h.eventTime;if((d&r)===r){null!==m&&(m=m.next={eventTime:y,lane:0,tag:h.tag,payload:h.payload,callback:h.callback,\nnext:null});a:{var n=a,t=h;r=b;y=c;switch(t.tag){case 1:n=t.payload;if(\"function\"===typeof n){q=n.call(y,q,r);break a}q=n;break a;case 3:n.flags=n.flags&-65537|128;case 0:n=t.payload;r=\"function\"===typeof n?n.call(y,q,r):n;if(null===r||void 0===r)break a;q=A({},q,r);break a;case 2:jh=!0}}null!==h.callback&&0!==h.lane&&(a.flags|=64,r=e.effects,null===r?e.effects=[h]:r.push(h))}else y={eventTime:y,lane:r,tag:h.tag,payload:h.payload,callback:h.callback,next:null},null===m?(l=m=y,k=q):m=m.next=y,g|=r;\nh=h.next;if(null===h)if(h=e.shared.pending,null===h)break;else r=h,h=r.next,r.next=null,e.lastBaseUpdate=r,e.shared.pending=null}while(1);null===m&&(k=q);e.baseState=k;e.firstBaseUpdate=l;e.lastBaseUpdate=m;b=e.shared.interleaved;if(null!==b){e=b;do g|=e.lane,e=e.next;while(e!==b)}else null===f&&(e.shared.lanes=0);rh|=g;a.lanes=g;a.memoizedState=q}}\nfunction sh(a,b,c){a=b.effects;b.effects=null;if(null!==a)for(b=0;bc?c:4;a(!0);var d=Gh.transition;Gh.transition={};try{a(!1),b()}finally{C=c,Gh.transition=d}}function wi(){return Uh().memoizedState}\nfunction xi(a,b,c){var d=yi(a);c={lane:d,action:c,hasEagerState:!1,eagerState:null,next:null};if(zi(a))Ai(b,c);else if(c=hh(a,b,c,d),null!==c){var e=R();gi(c,a,d,e);Bi(c,b,d)}}\nfunction ii(a,b,c){var d=yi(a),e={lane:d,action:c,hasEagerState:!1,eagerState:null,next:null};if(zi(a))Ai(b,e);else{var f=a.alternate;if(0===a.lanes&&(null===f||0===f.lanes)&&(f=b.lastRenderedReducer,null!==f))try{var g=b.lastRenderedState,h=f(g,c);e.hasEagerState=!0;e.eagerState=h;if(He(h,g)){var k=b.interleaved;null===k?(e.next=e,gh(b)):(e.next=k.next,k.next=e);b.interleaved=e;return}}catch(l){}finally{}c=hh(a,b,e,d);null!==c&&(e=R(),gi(c,a,d,e),Bi(c,b,d))}}\nfunction zi(a){var b=a.alternate;return a===M||null!==b&&b===M}function Ai(a,b){Jh=Ih=!0;var c=a.pending;null===c?b.next=b:(b.next=c.next,c.next=b);a.pending=b}function Bi(a,b,c){if(0!==(c&4194240)){var d=b.lanes;d&=a.pendingLanes;c|=d;b.lanes=c;Cc(a,c)}}\nvar Rh={readContext:eh,useCallback:P,useContext:P,useEffect:P,useImperativeHandle:P,useInsertionEffect:P,useLayoutEffect:P,useMemo:P,useReducer:P,useRef:P,useState:P,useDebugValue:P,useDeferredValue:P,useTransition:P,useMutableSource:P,useSyncExternalStore:P,useId:P,unstable_isNewReconciler:!1},Oh={readContext:eh,useCallback:function(a,b){Th().memoizedState=[a,void 0===b?null:b];return a},useContext:eh,useEffect:mi,useImperativeHandle:function(a,b,c){c=null!==c&&void 0!==c?c.concat([a]):null;return ki(4194308,\n4,pi.bind(null,b,a),c)},useLayoutEffect:function(a,b){return ki(4194308,4,a,b)},useInsertionEffect:function(a,b){return ki(4,2,a,b)},useMemo:function(a,b){var c=Th();b=void 0===b?null:b;a=a();c.memoizedState=[a,b];return a},useReducer:function(a,b,c){var d=Th();b=void 0!==c?c(b):b;d.memoizedState=d.baseState=b;a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:b};d.queue=a;a=a.dispatch=xi.bind(null,M,a);return[d.memoizedState,a]},useRef:function(a){var b=\nTh();a={current:a};return b.memoizedState=a},useState:hi,useDebugValue:ri,useDeferredValue:function(a){return Th().memoizedState=a},useTransition:function(){var a=hi(!1),b=a[0];a=vi.bind(null,a[1]);Th().memoizedState=a;return[b,a]},useMutableSource:function(){},useSyncExternalStore:function(a,b,c){var d=M,e=Th();if(I){if(void 0===c)throw Error(p(407));c=c()}else{c=b();if(null===Q)throw Error(p(349));0!==(Hh&30)||di(d,b,c)}e.memoizedState=c;var f={value:c,getSnapshot:b};e.queue=f;mi(ai.bind(null,d,\nf,a),[a]);d.flags|=2048;bi(9,ci.bind(null,d,f,c,b),void 0,null);return c},useId:function(){var a=Th(),b=Q.identifierPrefix;if(I){var c=sg;var d=rg;c=(d&~(1<<32-oc(d)-1)).toString(32)+c;b=\":\"+b+\"R\"+c;c=Kh++;0\\x3c/script>\",a=a.removeChild(a.firstChild)):\n\"string\"===typeof d.is?a=g.createElement(c,{is:d.is}):(a=g.createElement(c),\"select\"===c&&(g=a,d.multiple?g.multiple=!0:d.size&&(g.size=d.size))):a=g.createElementNS(a,c);a[Of]=b;a[Pf]=d;zj(a,b,!1,!1);b.stateNode=a;a:{g=vb(c,d);switch(c){case \"dialog\":D(\"cancel\",a);D(\"close\",a);e=d;break;case \"iframe\":case \"object\":case \"embed\":D(\"load\",a);e=d;break;case \"video\":case \"audio\":for(e=0;eGj&&(b.flags|=128,d=!0,Dj(f,!1),b.lanes=4194304)}else{if(!d)if(a=Ch(g),null!==a){if(b.flags|=128,d=!0,c=a.updateQueue,null!==c&&(b.updateQueue=c,b.flags|=4),Dj(f,!0),null===f.tail&&\"hidden\"===f.tailMode&&!g.alternate&&!I)return S(b),null}else 2*B()-f.renderingStartTime>Gj&&1073741824!==c&&(b.flags|=128,d=!0,Dj(f,!1),b.lanes=4194304);f.isBackwards?(g.sibling=b.child,b.child=g):(c=f.last,null!==c?c.sibling=g:b.child=g,f.last=g)}if(null!==f.tail)return b=f.tail,f.rendering=\nb,f.tail=b.sibling,f.renderingStartTime=B(),b.sibling=null,c=L.current,G(L,d?c&1|2:c&1),b;S(b);return null;case 22:case 23:return Hj(),d=null!==b.memoizedState,null!==a&&null!==a.memoizedState!==d&&(b.flags|=8192),d&&0!==(b.mode&1)?0!==(fj&1073741824)&&(S(b),b.subtreeFlags&6&&(b.flags|=8192)):S(b),null;case 24:return null;case 25:return null}throw Error(p(156,b.tag));}\nfunction Ij(a,b){wg(b);switch(b.tag){case 1:return Zf(b.type)&&$f(),a=b.flags,a&65536?(b.flags=a&-65537|128,b):null;case 3:return zh(),E(Wf),E(H),Eh(),a=b.flags,0!==(a&65536)&&0===(a&128)?(b.flags=a&-65537|128,b):null;case 5:return Bh(b),null;case 13:E(L);a=b.memoizedState;if(null!==a&&null!==a.dehydrated){if(null===b.alternate)throw Error(p(340));Ig()}a=b.flags;return a&65536?(b.flags=a&-65537|128,b):null;case 19:return E(L),null;case 4:return zh(),null;case 10:return ah(b.type._context),null;case 22:case 23:return Hj(),\nnull;case 24:return null;default:return null}}var Jj=!1,U=!1,Kj=\"function\"===typeof WeakSet?WeakSet:Set,V=null;function Lj(a,b){var c=a.ref;if(null!==c)if(\"function\"===typeof c)try{c(null)}catch(d){W(a,b,d)}else c.current=null}function Mj(a,b,c){try{c()}catch(d){W(a,b,d)}}var Nj=!1;\nfunction Oj(a,b){Cf=dd;a=Me();if(Ne(a)){if(\"selectionStart\"in a)var c={start:a.selectionStart,end:a.selectionEnd};else a:{c=(c=a.ownerDocument)&&c.defaultView||window;var d=c.getSelection&&c.getSelection();if(d&&0!==d.rangeCount){c=d.anchorNode;var e=d.anchorOffset,f=d.focusNode;d=d.focusOffset;try{c.nodeType,f.nodeType}catch(F){c=null;break a}var g=0,h=-1,k=-1,l=0,m=0,q=a,r=null;b:for(;;){for(var y;;){q!==c||0!==e&&3!==q.nodeType||(h=g+e);q!==f||0!==d&&3!==q.nodeType||(k=g+d);3===q.nodeType&&(g+=\nq.nodeValue.length);if(null===(y=q.firstChild))break;r=q;q=y}for(;;){if(q===a)break b;r===c&&++l===e&&(h=g);r===f&&++m===d&&(k=g);if(null!==(y=q.nextSibling))break;q=r;r=q.parentNode}q=y}c=-1===h||-1===k?null:{start:h,end:k}}else c=null}c=c||{start:0,end:0}}else c=null;Df={focusedElem:a,selectionRange:c};dd=!1;for(V=b;null!==V;)if(b=V,a=b.child,0!==(b.subtreeFlags&1028)&&null!==a)a.return=b,V=a;else for(;null!==V;){b=V;try{var n=b.alternate;if(0!==(b.flags&1024))switch(b.tag){case 0:case 11:case 15:break;\ncase 1:if(null!==n){var t=n.memoizedProps,J=n.memoizedState,x=b.stateNode,w=x.getSnapshotBeforeUpdate(b.elementType===b.type?t:Ci(b.type,t),J);x.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var u=b.stateNode.containerInfo;1===u.nodeType?u.textContent=\"\":9===u.nodeType&&u.documentElement&&u.removeChild(u.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p(163));}}catch(F){W(b,b.return,F)}a=b.sibling;if(null!==a){a.return=b.return;V=a;break}V=b.return}n=Nj;Nj=!1;return n}\nfunction Pj(a,b,c){var d=b.updateQueue;d=null!==d?d.lastEffect:null;if(null!==d){var e=d=d.next;do{if((e.tag&a)===a){var f=e.destroy;e.destroy=void 0;void 0!==f&&Mj(b,c,f)}e=e.next}while(e!==d)}}function Qj(a,b){b=b.updateQueue;b=null!==b?b.lastEffect:null;if(null!==b){var c=b=b.next;do{if((c.tag&a)===a){var d=c.create;c.destroy=d()}c=c.next}while(c!==b)}}function Rj(a){var b=a.ref;if(null!==b){var c=a.stateNode;switch(a.tag){case 5:a=c;break;default:a=c}\"function\"===typeof b?b(a):b.current=a}}\nfunction Sj(a){var b=a.alternate;null!==b&&(a.alternate=null,Sj(b));a.child=null;a.deletions=null;a.sibling=null;5===a.tag&&(b=a.stateNode,null!==b&&(delete b[Of],delete b[Pf],delete b[of],delete b[Qf],delete b[Rf]));a.stateNode=null;a.return=null;a.dependencies=null;a.memoizedProps=null;a.memoizedState=null;a.pendingProps=null;a.stateNode=null;a.updateQueue=null}function Tj(a){return 5===a.tag||3===a.tag||4===a.tag}\nfunction Uj(a){a:for(;;){for(;null===a.sibling;){if(null===a.return||Tj(a.return))return null;a=a.return}a.sibling.return=a.return;for(a=a.sibling;5!==a.tag&&6!==a.tag&&18!==a.tag;){if(a.flags&2)continue a;if(null===a.child||4===a.tag)continue a;else a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}\nfunction Vj(a,b,c){var d=a.tag;if(5===d||6===d)a=a.stateNode,b?8===c.nodeType?c.parentNode.insertBefore(a,b):c.insertBefore(a,b):(8===c.nodeType?(b=c.parentNode,b.insertBefore(a,c)):(b=c,b.appendChild(a)),c=c._reactRootContainer,null!==c&&void 0!==c||null!==b.onclick||(b.onclick=Bf));else if(4!==d&&(a=a.child,null!==a))for(Vj(a,b,c),a=a.sibling;null!==a;)Vj(a,b,c),a=a.sibling}\nfunction Wj(a,b,c){var d=a.tag;if(5===d||6===d)a=a.stateNode,b?c.insertBefore(a,b):c.appendChild(a);else if(4!==d&&(a=a.child,null!==a))for(Wj(a,b,c),a=a.sibling;null!==a;)Wj(a,b,c),a=a.sibling}var X=null,Xj=!1;function Yj(a,b,c){for(c=c.child;null!==c;)Zj(a,b,c),c=c.sibling}\nfunction Zj(a,b,c){if(lc&&\"function\"===typeof lc.onCommitFiberUnmount)try{lc.onCommitFiberUnmount(kc,c)}catch(h){}switch(c.tag){case 5:U||Lj(c,b);case 6:var d=X,e=Xj;X=null;Yj(a,b,c);X=d;Xj=e;null!==X&&(Xj?(a=X,c=c.stateNode,8===a.nodeType?a.parentNode.removeChild(c):a.removeChild(c)):X.removeChild(c.stateNode));break;case 18:null!==X&&(Xj?(a=X,c=c.stateNode,8===a.nodeType?Kf(a.parentNode,c):1===a.nodeType&&Kf(a,c),bd(a)):Kf(X,c.stateNode));break;case 4:d=X;e=Xj;X=c.stateNode.containerInfo;Xj=!0;\nYj(a,b,c);X=d;Xj=e;break;case 0:case 11:case 14:case 15:if(!U&&(d=c.updateQueue,null!==d&&(d=d.lastEffect,null!==d))){e=d=d.next;do{var f=e,g=f.destroy;f=f.tag;void 0!==g&&(0!==(f&2)?Mj(c,b,g):0!==(f&4)&&Mj(c,b,g));e=e.next}while(e!==d)}Yj(a,b,c);break;case 1:if(!U&&(Lj(c,b),d=c.stateNode,\"function\"===typeof d.componentWillUnmount))try{d.props=c.memoizedProps,d.state=c.memoizedState,d.componentWillUnmount()}catch(h){W(c,b,h)}Yj(a,b,c);break;case 21:Yj(a,b,c);break;case 22:c.mode&1?(U=(d=U)||null!==\nc.memoizedState,Yj(a,b,c),U=d):Yj(a,b,c);break;default:Yj(a,b,c)}}function ak(a){var b=a.updateQueue;if(null!==b){a.updateQueue=null;var c=a.stateNode;null===c&&(c=a.stateNode=new Kj);b.forEach(function(b){var d=bk.bind(null,a,b);c.has(b)||(c.add(b),b.then(d,d))})}}\nfunction ck(a,b){var c=b.deletions;if(null!==c)for(var d=0;de&&(e=g);d&=~f}d=e;d=B()-d;d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3E3>d?3E3:4320>d?4320:1960*lk(d/1960))-d;if(10a?16:a;if(null===wk)var d=!1;else{a=wk;wk=null;xk=0;if(0!==(K&6))throw Error(p(331));var e=K;K|=4;for(V=a.current;null!==V;){var f=V,g=f.child;if(0!==(V.flags&16)){var h=f.deletions;if(null!==h){for(var k=0;kB()-fk?Kk(a,0):rk|=c);Dk(a,b)}function Yk(a,b){0===b&&(0===(a.mode&1)?b=1:(b=sc,sc<<=1,0===(sc&130023424)&&(sc=4194304)));var c=R();a=ih(a,b);null!==a&&(Ac(a,b,c),Dk(a,c))}function uj(a){var b=a.memoizedState,c=0;null!==b&&(c=b.retryLane);Yk(a,c)}\nfunction bk(a,b){var c=0;switch(a.tag){case 13:var d=a.stateNode;var e=a.memoizedState;null!==e&&(c=e.retryLane);break;case 19:d=a.stateNode;break;default:throw Error(p(314));}null!==d&&d.delete(b);Yk(a,c)}var Vk;\nVk=function(a,b,c){if(null!==a)if(a.memoizedProps!==b.pendingProps||Wf.current)dh=!0;else{if(0===(a.lanes&c)&&0===(b.flags&128))return dh=!1,yj(a,b,c);dh=0!==(a.flags&131072)?!0:!1}else dh=!1,I&&0!==(b.flags&1048576)&&ug(b,ng,b.index);b.lanes=0;switch(b.tag){case 2:var d=b.type;ij(a,b);a=b.pendingProps;var e=Yf(b,H.current);ch(b,c);e=Nh(null,b,d,a,e,c);var f=Sh();b.flags|=1;\"object\"===typeof e&&null!==e&&\"function\"===typeof e.render&&void 0===e.$$typeof?(b.tag=1,b.memoizedState=null,b.updateQueue=\nnull,Zf(d)?(f=!0,cg(b)):f=!1,b.memoizedState=null!==e.state&&void 0!==e.state?e.state:null,kh(b),e.updater=Ei,b.stateNode=e,e._reactInternals=b,Ii(b,d,a,c),b=jj(null,b,d,!0,f,c)):(b.tag=0,I&&f&&vg(b),Xi(null,b,e,c),b=b.child);return b;case 16:d=b.elementType;a:{ij(a,b);a=b.pendingProps;e=d._init;d=e(d._payload);b.type=d;e=b.tag=Zk(d);a=Ci(d,a);switch(e){case 0:b=cj(null,b,d,a,c);break a;case 1:b=hj(null,b,d,a,c);break a;case 11:b=Yi(null,b,d,a,c);break a;case 14:b=$i(null,b,d,Ci(d.type,a),c);break a}throw Error(p(306,\nd,\"\"));}return b;case 0:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Ci(d,e),cj(a,b,d,e,c);case 1:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Ci(d,e),hj(a,b,d,e,c);case 3:a:{kj(b);if(null===a)throw Error(p(387));d=b.pendingProps;f=b.memoizedState;e=f.element;lh(a,b);qh(b,d,null,c);var g=b.memoizedState;d=g.element;if(f.isDehydrated)if(f={element:d,isDehydrated:!1,cache:g.cache,pendingSuspenseBoundaries:g.pendingSuspenseBoundaries,transitions:g.transitions},b.updateQueue.baseState=\nf,b.memoizedState=f,b.flags&256){e=Ji(Error(p(423)),b);b=lj(a,b,d,c,e);break a}else if(d!==e){e=Ji(Error(p(424)),b);b=lj(a,b,d,c,e);break a}else for(yg=Lf(b.stateNode.containerInfo.firstChild),xg=b,I=!0,zg=null,c=Vg(b,null,d,c),b.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling;else{Ig();if(d===e){b=Zi(a,b,c);break a}Xi(a,b,d,c)}b=b.child}return b;case 5:return Ah(b),null===a&&Eg(b),d=b.type,e=b.pendingProps,f=null!==a?a.memoizedProps:null,g=e.children,Ef(d,e)?g=null:null!==f&&Ef(d,f)&&(b.flags|=32),\ngj(a,b),Xi(a,b,g,c),b.child;case 6:return null===a&&Eg(b),null;case 13:return oj(a,b,c);case 4:return yh(b,b.stateNode.containerInfo),d=b.pendingProps,null===a?b.child=Ug(b,null,d,c):Xi(a,b,d,c),b.child;case 11:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Ci(d,e),Yi(a,b,d,e,c);case 7:return Xi(a,b,b.pendingProps,c),b.child;case 8:return Xi(a,b,b.pendingProps.children,c),b.child;case 12:return Xi(a,b,b.pendingProps.children,c),b.child;case 10:a:{d=b.type._context;e=b.pendingProps;f=b.memoizedProps;\ng=e.value;G(Wg,d._currentValue);d._currentValue=g;if(null!==f)if(He(f.value,g)){if(f.children===e.children&&!Wf.current){b=Zi(a,b,c);break a}}else for(f=b.child,null!==f&&(f.return=b);null!==f;){var h=f.dependencies;if(null!==h){g=f.child;for(var k=h.firstContext;null!==k;){if(k.context===d){if(1===f.tag){k=mh(-1,c&-c);k.tag=2;var l=f.updateQueue;if(null!==l){l=l.shared;var m=l.pending;null===m?k.next=k:(k.next=m.next,m.next=k);l.pending=k}}f.lanes|=c;k=f.alternate;null!==k&&(k.lanes|=c);bh(f.return,\nc,b);h.lanes|=c;break}k=k.next}}else if(10===f.tag)g=f.type===b.type?null:f.child;else if(18===f.tag){g=f.return;if(null===g)throw Error(p(341));g.lanes|=c;h=g.alternate;null!==h&&(h.lanes|=c);bh(g,c,b);g=f.sibling}else g=f.child;if(null!==g)g.return=f;else for(g=f;null!==g;){if(g===b){g=null;break}f=g.sibling;if(null!==f){f.return=g.return;g=f;break}g=g.return}f=g}Xi(a,b,e.children,c);b=b.child}return b;case 9:return e=b.type,d=b.pendingProps.children,ch(b,c),e=eh(e),d=d(e),b.flags|=1,Xi(a,b,d,c),\nb.child;case 14:return d=b.type,e=Ci(d,b.pendingProps),e=Ci(d.type,e),$i(a,b,d,e,c);case 15:return bj(a,b,b.type,b.pendingProps,c);case 17:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Ci(d,e),ij(a,b),b.tag=1,Zf(d)?(a=!0,cg(b)):a=!1,ch(b,c),Gi(b,d,e),Ii(b,d,e,c),jj(null,b,d,!0,a,c);case 19:return xj(a,b,c);case 22:return dj(a,b,c)}throw Error(p(156,b.tag));};function Fk(a,b){return ac(a,b)}\nfunction $k(a,b,c,d){this.tag=a;this.key=c;this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null;this.index=0;this.ref=null;this.pendingProps=b;this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null;this.mode=d;this.subtreeFlags=this.flags=0;this.deletions=null;this.childLanes=this.lanes=0;this.alternate=null}function Bg(a,b,c,d){return new $k(a,b,c,d)}function aj(a){a=a.prototype;return!(!a||!a.isReactComponent)}\nfunction Zk(a){if(\"function\"===typeof a)return aj(a)?1:0;if(void 0!==a&&null!==a){a=a.$$typeof;if(a===Da)return 11;if(a===Ga)return 14}return 2}\nfunction Pg(a,b){var c=a.alternate;null===c?(c=Bg(a.tag,b,a.key,a.mode),c.elementType=a.elementType,c.type=a.type,c.stateNode=a.stateNode,c.alternate=a,a.alternate=c):(c.pendingProps=b,c.type=a.type,c.flags=0,c.subtreeFlags=0,c.deletions=null);c.flags=a.flags&14680064;c.childLanes=a.childLanes;c.lanes=a.lanes;c.child=a.child;c.memoizedProps=a.memoizedProps;c.memoizedState=a.memoizedState;c.updateQueue=a.updateQueue;b=a.dependencies;c.dependencies=null===b?null:{lanes:b.lanes,firstContext:b.firstContext};\nc.sibling=a.sibling;c.index=a.index;c.ref=a.ref;return c}\nfunction Rg(a,b,c,d,e,f){var g=2;d=a;if(\"function\"===typeof a)aj(a)&&(g=1);else if(\"string\"===typeof a)g=5;else a:switch(a){case ya:return Tg(c.children,e,f,b);case za:g=8;e|=8;break;case Aa:return a=Bg(12,c,b,e|2),a.elementType=Aa,a.lanes=f,a;case Ea:return a=Bg(13,c,b,e),a.elementType=Ea,a.lanes=f,a;case Fa:return a=Bg(19,c,b,e),a.elementType=Fa,a.lanes=f,a;case Ia:return pj(c,e,f,b);default:if(\"object\"===typeof a&&null!==a)switch(a.$$typeof){case Ba:g=10;break a;case Ca:g=9;break a;case Da:g=11;\nbreak a;case Ga:g=14;break a;case Ha:g=16;d=null;break a}throw Error(p(130,null==a?a:typeof a,\"\"));}b=Bg(g,c,b,e);b.elementType=a;b.type=d;b.lanes=f;return b}function Tg(a,b,c,d){a=Bg(7,a,d,b);a.lanes=c;return a}function pj(a,b,c,d){a=Bg(22,a,d,b);a.elementType=Ia;a.lanes=c;a.stateNode={isHidden:!1};return a}function Qg(a,b,c){a=Bg(6,a,null,b);a.lanes=c;return a}\nfunction Sg(a,b,c){b=Bg(4,null!==a.children?a.children:[],a.key,b);b.lanes=c;b.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation};return b}\nfunction al(a,b,c,d,e){this.tag=b;this.containerInfo=a;this.finishedWork=this.pingCache=this.current=this.pendingChildren=null;this.timeoutHandle=-1;this.callbackNode=this.pendingContext=this.context=null;this.callbackPriority=0;this.eventTimes=zc(0);this.expirationTimes=zc(-1);this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0;this.entanglements=zc(0);this.identifierPrefix=d;this.onRecoverableError=e;this.mutableSourceEagerHydrationData=\nnull}function bl(a,b,c,d,e,f,g,h,k){a=new al(a,b,c,h,k);1===b?(b=1,!0===f&&(b|=8)):b=0;f=Bg(3,null,null,b);a.current=f;f.stateNode=a;f.memoizedState={element:d,isDehydrated:c,cache:null,transitions:null,pendingSuspenseBoundaries:null};kh(f);return a}function cl(a,b,c){var d=3= e.length) {\n const u = { type: \"add\", val: r[i] };\n t.push(u), j(u, e), i++;\n continue;\n }\n const s = e[i], o = x(r, s, i);\n if (o == i) {\n i++;\n continue;\n } else if (o == -1) {\n const u = r[i], c = x(e, u, i);\n c == -1 ? l = { type: \"sub\", from: i, val: u } : l = { type: \"mov\", from: c, to: i }, i++, t.push(l), j(l, e);\n } else\n o != -1 && (l = { type: \"mov\", from: i, to: o }, t.push(l), j(l, e));\n }\n return r.length < e.length && t.push({ type: \"len\", val: r.length }), t;\n}\nfunction j(n, r) {\n switch (n.to == null && (n.to = 0), n.from == null && (n.from = 0), n.type) {\n case \"del\":\n r.splice(n.from, 1);\n break;\n case \"mov\":\n const t = r[n.to];\n r[n.to] = r[n.from], r[n.from] = t;\n break;\n case \"sub\":\n r[n.from] = n.val;\n break;\n case \"ins\":\n r.splice(n.from, 0, n.val);\n break;\n case \"add\":\n r.push(n.val);\n break;\n case \"len\":\n r.length = n.val;\n break;\n }\n}\nd.NO_DIFFERENCE_KEY = \"__no-difference__\";\nfunction d(n, r) {\n if (!g(n) || !g(r))\n return P(n, r) ? d.NO_DIFFERENCE_KEY : r;\n if (Array.isArray(n) && Array.isArray(r))\n return X(n, r);\n if (Array.isArray(n) || Array.isArray(r))\n return r;\n const t = {};\n for (let e in n)\n if (r.hasOwnProperty(e)) {\n let i = d(n[e], r[e]);\n i != d.NO_DIFFERENCE_KEY && (t[e] = i);\n } else\n t._deleted == null && (t._deleted = []), t._deleted.push(e);\n for (let e in r)\n n.hasOwnProperty(e) || (t[e] = r[e]);\n return Object.keys(t).length == 0 ? d.NO_DIFFERENCE_KEY : t;\n}\nfunction Z(n, r, t) {\n try {\n let { parent: e, value: i } = D(n, r);\n return typeof i == \"function\" ? i.bind(e) : i;\n } catch {\n return t;\n }\n}\nfunction G(n, r, t) {\n let { parent: e, key: i } = D(n, r, !0);\n return typeof i == \"number\" ? e.splice(i, 1, t) : e[i] = t;\n}\nfunction D(n, r, t = !1) {\n let e = n.split(\".\"), i = r || window, l = \"\", s;\n for (let o = 0; o < e.length; o++) {\n let u = e[o], c = u.indexOf(\"[\");\n if (c != -1) {\n let f = Number(u.substring(c + 1, u.length - 1)), a = u.substring(0, c);\n s = i[a], i = s, u = f.toString(), l = u;\n } else\n s = i, l = u;\n if (i[u] == null)\n if (t)\n i[u] = {};\n else\n throw new Error(`Il parametro: ${n}; non esiste`);\n i = i[u];\n }\n return {\n parent: s,\n key: l,\n value: i\n };\n}\nfunction T(n, r, t = !1) {\n if (t && r == null || Object.is(n, r) || H(n, r) || nn(n, r))\n return !0;\n if (typeof n == \"object\" && typeof r == \"object\") {\n for (var e in n)\n if (!r.hasOwnProperty(e) || !T(n[e], r[e], t))\n return !1;\n return !0;\n }\n return !1;\n}\nfunction H(n, r) {\n if (typeof n != \"function\" || typeof r != \"function\")\n return !1;\n let t = n.toString();\n t = t.substring(t.indexOf(\"{\"));\n let e = r.toString();\n return e = e.substring(e.indexOf(\"{\")), t == e;\n}\nfunction nn(n, r) {\n return !(n instanceof Date) || !(r instanceof Date) ? !1 : n.getTime() == r.getTime();\n}\nfunction U(n, r) {\n let t = { ...n }, e = r.indexOf(\".\");\n if (e == -1)\n return t;\n let i = r.slice(0, e);\n if (t[i] == null)\n throw \"Path non trovata\";\n return t[i] = U(t[i], r.slice(e + 1)), t;\n}\nfunction rn(n) {\n return n.reduce((r, t) => {\n const e = new Set(Object.keys(r));\n for (const i in t)\n i in r ? r[i] !== t[i] && (r[i] = null) : r[i] = t[i], e.delete(i);\n return e.forEach((i) => r[i] = null), r;\n }, {});\n}\nfunction en(n) {\n if (n != null)\n return JSON.parse(JSON.stringify(n));\n}\nfunction tn(n) {\n return { ...n };\n}\nfunction z(n, r, t = !0) {\n if (t) {\n if (n == null && r != null)\n return r;\n if (n != null && r == null)\n return n;\n }\n return !g(n) || !g(r) ? n : Array.isArray(n) && Array.isArray(r) ? K(n, r) : Array.isArray(n) || Array.isArray(r) ? n : Object.keys(n).reduce((e, i) => (r.hasOwnProperty(i) ? e[i] = z(n[i], r[i]) : e[i] = n[i], e), { ...r });\n}\nfunction K(n, r) {\n const t = [];\n for (let e = 0; e < n.length && e < r.length; e++)\n t[e] = z(n[e], r[e]);\n return t.concat(n.length > r.length ? n.slice(r.length) : r.slice(n.length));\n}\nfunction L(n, r, t, e = [], i) {\n for (const l in n) {\n r[l] = ln(n[l]);\n const s = [...e, l], o = t ? t(n, r, i, s) : !0;\n g(r[l]) && o && L(n[l], r[l], t, s, n);\n }\n return r;\n}\nfunction ln(n) {\n return R(n) ? {} : Array.isArray(n) ? [] : n;\n}\nfunction on(n, r) {\n const t = n.split(\".\"), e = r.split(\".\");\n return O(t, e);\n}\nfunction O(n, r, t = 0) {\n if (r.length == 0)\n return t;\n if (n.length < r.length)\n return -1;\n const e = n[0], i = r[0];\n if (t++, i == e || i === \"*\")\n return O(n.slice(1), r.slice(1), t);\n if (i === \"?\")\n for (let l = 0; l < n.length - r.length + 1; l++) {\n let s = O(n.slice(1 + l), r.slice(1), t);\n if (s != -1)\n return l + s;\n }\n return -1;\n}\nconst un = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({\n __proto__: null,\n getValueWithPath: Z,\n setValueWithPath: G,\n getParentAndKey: D,\n objectIsIn: T,\n clonePath: U,\n minCommonProps: rn,\n cloneDeep: en,\n clone: tn,\n merge: z,\n mergeArray: K,\n reduceObject: L,\n matchPath: on,\n matchPathArray: O\n}, Symbol.toStringTag, { value: \"Module\" }));\nfunction V(n) {\n return !!/^[^\\s@]+@[^\\s@]+$/.test(n);\n}\nfunction sn(n) {\n return n != null && n.trim().length > 0;\n}\nfunction cn(n) {\n return !!(Array.isArray(n) && n.length > 0);\n}\nfunction $(n) {\n var r = new RegExp(\"^(https?:\\\\/\\\\/)?((([a-z\\\\d]([a-z\\\\d-]*[a-z\\\\d])*)\\\\.)+[a-z]{2,}|((\\\\d{1,3}\\\\.){3}\\\\d{1,3}))(\\\\:\\\\d+)?(\\\\/[-a-z\\\\d%_.~+]*)*(\\\\?[;&a-z\\\\d%_.~+=-]*)?(\\\\#[-a-z\\\\d_]*)?$\", \"i\");\n return !!r.test(n);\n}\nfunction S(n, r) {\n if (!r)\n return !0;\n if (typeof r == \"string\") {\n const t = r.charAt(0) == \"?\";\n if (t && (r = r.slice(1)), t && n == null)\n return !0;\n const [e, i] = r.split(\":\");\n switch (e) {\n case \"email\":\n return V(n);\n case \"url\":\n return $(n);\n case \"tel\":\n return /^[+]?[\\s./0-9]*[(]?[0-9]{1,4}[)]?[-\\s./0-9]*$/g.test(n);\n case \"string\":\n return typeof n != \"string\" ? !1 : m(n.trim().length, i);\n case \"array\":\n return Array.isArray(n) ? m(n.length, i) : !1;\n case \"int\":\n return Number.isInteger(n) ? m(n, i) : !1;\n case \"number\":\n return Number.isFinite(n) ? m(n, i) : !1;\n }\n return !0;\n }\n if (Array.isArray(r))\n return r.every((t) => S(n, t));\n if (typeof r == \"object\") {\n const t = Object.keys(r);\n for (const e of t) {\n const i = n[e], l = r[e];\n if (S(i, l) == !1)\n return !1;\n }\n }\n return !0;\n}\nfunction m(n, r) {\n if (r == null || r.length == 0)\n return !0;\n let t = r.charAt(0), e;\n switch (isNaN(t) ? e = +r.slice(1) : (t = \"=\", e = +r), t) {\n case \"=\":\n return n == e;\n case \">\":\n return n > e;\n case \"<\":\n return n < e;\n case \"!\":\n return n != e;\n default:\n return !0;\n }\n}\nconst p = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({\n __proto__: null,\n email: V,\n obligatory: sn,\n obligatoryArray: cn,\n url: $,\n verify: S\n}, Symbol.toStringTag, { value: \"Module\" }));\n({ ...Q, ...B });\nvar w = /* @__PURE__ */ ((n) => (n[n.ADD = 0] = \"ADD\", n[n.REMOVE = 1] = \"REMOVE\", n))(w || {}), k = /* @__PURE__ */ ((n) => (n.ACTION = \"action\", n.ACTION_SYNC = \"action-sync\", n.MUTATION = \"mutation\", n))(k || {});\nconst y = /* @__PURE__ */ new Map();\nfunction I(n, r, t, e, i, l) {\n const s = { type: n, store: r, key: t, payload: e, result: i, subcall: l };\n if (!y.has(r))\n return;\n const o = y.get(r);\n if (!o)\n return;\n const u = o[\"*\"];\n if (u)\n for (const f of u)\n f(s);\n const c = o[t];\n if (c)\n for (const f of c)\n f(s);\n}\nfunction hn({ store: n, actionName: r, callback: t }) {\n let e;\n y.has(n) ? e = y.get(n) : (e = {}, y.set(n, e));\n let i = e[r];\n i || (i = /* @__PURE__ */ new Set(), e[r] = i), i.add(t);\n}\nfunction bn({ store: n, actionName: r, callback: t }) {\n if (!y.has(n))\n return;\n const e = y.get(n);\n if (!e)\n return;\n const i = e[r];\n i && t && i.delete(t), (!i || i.size === 0 || !t) && delete e[r], (Object.keys(e).length === 0 || !r) && y.delete(n);\n}\nlet _ = !1;\nfunction an(n) {\n return n ? M(n._subscribe, () => n.state) : null;\n}\nfunction fn(n) {\n const [r, t] = N(n.state);\n return v(() => {\n const e = (l) => {\n t(l);\n };\n return n._subscribe(e);\n }, [n]), r;\n}\nconst dn = J.slice(0, 2) == \"17\" ? fn : an;\nfunction mn(n, r) {\n return n ? M((t) => n._subscribe(t, r), () => n.state) : null;\n}\nfunction pn(n) {\n let r = {\n // the current state of the store\n state: E(n.state),\n // the listeners that are watching the store\n _listeners: /* @__PURE__ */ new Set(),\n // add listener to the store. Called by \"useSyncExternalStore\"\n _subscribe: (t, e) => {\n var i;\n return t.fn = e, r._listeners.add(t), (i = r._listenerChange) == null || i.call(r, r, w.ADD), () => {\n var l;\n r._listeners.delete(t), (l = r._listenerChange) == null || l.call(r, r, w.REMOVE);\n };\n },\n /** smista l'aggiornamento a tutti i listener dello STORE */\n _update: (t) => {\n r.state = { ...r.state };\n for (const e of r._listeners)\n (!e.fn || e.fn(r.state, t)) && e(r.state);\n },\n _listenerChange: null\n };\n return r._listenerChange = n.onListenerChange, n.getters && (r = Object.keys(n.getters).reduce((t, e) => (t[e] = (i) => n.getters[e](i, r), t), r)), n.actions && (r = Object.keys(n.actions).reduce((t, e) => (t[e] = async (i) => {\n const l = _;\n l == !1 && (_ = !0);\n const s = await n.actions[e](i, r);\n return I(k.ACTION, r, e, i, s, l), l == !1 && (_ = !1), s;\n }, t), r)), n.mutators && (r = Object.keys(n.mutators).reduce((t, e) => (t[e] = (i) => {\n const l = n.mutators[e](i, r);\n if (l === void 0 || Object.keys(l).every((o) => l[o] === r.state[o]))\n return;\n const s = r.state;\n r.state = { ...r.state, ...l }, I(\n k.MUTATION,\n r,\n e,\n i,\n null,\n _\n );\n for (const o of r._listeners)\n (!o.fn || o.fn(r.state, s)) && o(r.state);\n }, t), r)), r;\n}\nfunction E(n) {\n return n ? typeof n == \"function\" ? n() : un.cloneDeep(n) : {};\n}\nfunction _n(...n) {\n return n.reduce((r, t) => r == null ? t : yn(r, t), null);\n}\nfunction yn(n, r) {\n return !n && !r ? null : n ? r ? {\n state: typeof n.state == \"function\" || typeof r.state == \"function\" ? () => {\n const e = E(n.state), i = E(r.state);\n return { ...e, ...i };\n } : { ...n.state, ...r.state },\n mutators: {\n ...n.mutators,\n ...r.mutators\n },\n getters: {\n ...n.getters,\n ...r.getters\n },\n actions: {\n ...n.actions,\n ...r.actions\n },\n actionsSync: {\n ...n.actionsSync,\n ...r.actionsSync\n },\n onListenerChange: r.onListenerChange ?? n.onListenerChange\n } : n : r;\n}\nlet h = [];\nfunction On() {\n return h.reduce((n, r) => {\n const { error: t, ref: e } = r.validate();\n return t != null && (n.push({ error: t, ref: e }), n.length == 1 && e && e.current != null && e.current.focus()), n;\n }, []);\n}\nfunction An() {\n h.forEach((n) => n.reset());\n}\nfunction jn(n, r, t = \"inputRef\") {\n const [e, i] = N(null), l = A(null), s = A(n), o = A(!1);\n v(() => {\n const a = h.filter((b) => b != u);\n return a.push({ validate: u, reset: c }), h = a, () => {\n h = h.filter((b) => b.validate != u);\n };\n }, []), v(() => {\n s.current = n, !(o.current == !1 && f() != null) && u();\n }, [n]);\n function u() {\n o.current = !0;\n const a = f();\n return i(a), { error: a, ref: l };\n }\n function c() {\n o.current = !1, i(null);\n }\n function f() {\n let a = null;\n return Object.keys(r).some((b) => a = r[b](s.current)), a;\n }\n return { helperText: e, error: e != null, [t]: l };\n}\nconst vn = {\n obligatory: (n) => {\n if (!p.obligatory(n))\n return \"string.obligatory\";\n },\n // https://www.w3resource.com/javascript/form/email-validation.php\n email: (n) => {\n if (!p.email(n))\n return \"email.syntax\";\n },\n // https://stackoverflow.com/a/5717133/5224029\n url: (n) => {\n if (!p.url(n))\n return \"url.syntax\";\n },\n obligatoryArray: (n) => {\n if (!p.obligatoryArray(n))\n return \"array.obligatory\";\n }\n};\nexport {\n k as EVENTS_TYPES,\n w as LISTENER_CHANGE,\n hn as addWatch,\n pn as createStore,\n _n as mixStores,\n bn as removeWatch,\n An as resetAll,\n vn as rules,\n dn as useStore,\n mn as useStoreNext,\n jn as useValidator,\n On as validateAll\n};\n//# sourceMappingURL=index.es.js.map\n","var js = Object.defineProperty;\nvar Is = (t, e, n) => e in t ? js(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;\nvar Oo = (t, e, n) => Is(t, typeof e != \"symbol\" ? e + \"\" : e, n);\nimport B, { useEffect as Bt, useMemo as Ut, useState as lt, useRef as Te, useId as ks, Component as Ts, useLayoutEffect as Lo, forwardRef as mr, useImperativeHandle as $s, createElement as Sn } from \"react\";\nimport { createStore as On, useStore as Nt } from \"@priolo/jon\";\nimport Rs, { createPortal as gr } from \"react-dom\";\nfunction Es(t) {\n return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, \"default\") ? t.default : t;\n}\nvar pn = { exports: {} }, Ue = {};\n/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nvar No;\nfunction Os() {\n if (No) return Ue;\n No = 1;\n var t = B, e = Symbol.for(\"react.element\"), n = Symbol.for(\"react.fragment\"), o = Object.prototype.hasOwnProperty, r = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };\n function c(l, a, u) {\n var d, p = {}, h = null, g = null;\n u !== void 0 && (h = \"\" + u), a.key !== void 0 && (h = \"\" + a.key), a.ref !== void 0 && (g = a.ref);\n for (d in a) o.call(a, d) && !s.hasOwnProperty(d) && (p[d] = a[d]);\n if (l && l.defaultProps) for (d in a = l.defaultProps, a) p[d] === void 0 && (p[d] = a[d]);\n return { $$typeof: e, type: l, key: h, ref: g, props: p, _owner: r.current };\n }\n return Ue.Fragment = n, Ue.jsx = c, Ue.jsxs = c, Ue;\n}\nvar qe = {};\n/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nvar Mo;\nfunction Ls() {\n return Mo || (Mo = 1, process.env.NODE_ENV !== \"production\" && function() {\n var t = B, e = Symbol.for(\"react.element\"), n = Symbol.for(\"react.portal\"), o = Symbol.for(\"react.fragment\"), r = Symbol.for(\"react.strict_mode\"), s = Symbol.for(\"react.profiler\"), c = Symbol.for(\"react.provider\"), l = Symbol.for(\"react.context\"), a = Symbol.for(\"react.forward_ref\"), u = Symbol.for(\"react.suspense\"), d = Symbol.for(\"react.suspense_list\"), p = Symbol.for(\"react.memo\"), h = Symbol.for(\"react.lazy\"), g = Symbol.for(\"react.offscreen\"), S = Symbol.iterator, C = \"@@iterator\";\n function I(f) {\n if (f === null || typeof f != \"object\")\n return null;\n var R = S && f[S] || f[C];\n return typeof R == \"function\" ? R : null;\n }\n var x = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n function m(f) {\n {\n for (var R = arguments.length, P = new Array(R > 1 ? R - 1 : 0), K = 1; K < R; K++)\n P[K - 1] = arguments[K];\n y(\"error\", f, P);\n }\n }\n function y(f, R, P) {\n {\n var K = x.ReactDebugCurrentFrame, at = K.getStackAddendum();\n at !== \"\" && (R += \"%s\", P = P.concat([at]));\n var mt = P.map(function(st) {\n return String(st);\n });\n mt.unshift(\"Warning: \" + R), Function.prototype.apply.call(console[f], console, mt);\n }\n }\n var k = !1, _ = !1, v = !1, w = !1, b = !1, T;\n T = Symbol.for(\"react.module.reference\");\n function M(f) {\n return !!(typeof f == \"string\" || typeof f == \"function\" || f === o || f === s || b || f === r || f === u || f === d || w || f === g || k || _ || v || typeof f == \"object\" && f !== null && (f.$$typeof === h || f.$$typeof === p || f.$$typeof === c || f.$$typeof === l || f.$$typeof === a || // This needs to include all possible module reference object\n // types supported by any Flight configuration anywhere since\n // we don't know which Flight build this will end up being used\n // with.\n f.$$typeof === T || f.getModuleId !== void 0));\n }\n function D(f, R, P) {\n var K = f.displayName;\n if (K)\n return K;\n var at = R.displayName || R.name || \"\";\n return at !== \"\" ? P + \"(\" + at + \")\" : P;\n }\n function G(f) {\n return f.displayName || \"Context\";\n }\n function U(f) {\n if (f == null)\n return null;\n if (typeof f.tag == \"number\" && m(\"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"), typeof f == \"function\")\n return f.displayName || f.name || null;\n if (typeof f == \"string\")\n return f;\n switch (f) {\n case o:\n return \"Fragment\";\n case n:\n return \"Portal\";\n case s:\n return \"Profiler\";\n case r:\n return \"StrictMode\";\n case u:\n return \"Suspense\";\n case d:\n return \"SuspenseList\";\n }\n if (typeof f == \"object\")\n switch (f.$$typeof) {\n case l:\n var R = f;\n return G(R) + \".Consumer\";\n case c:\n var P = f;\n return G(P._context) + \".Provider\";\n case a:\n return D(f, f.render, \"ForwardRef\");\n case p:\n var K = f.displayName || null;\n return K !== null ? K : U(f.type) || \"Memo\";\n case h: {\n var at = f, mt = at._payload, st = at._init;\n try {\n return U(st(mt));\n } catch {\n return null;\n }\n }\n }\n return null;\n }\n var N = Object.assign, j = 0, $, A, L, W, F, X, rt;\n function ct() {\n }\n ct.__reactDisabledLog = !0;\n function pt() {\n {\n if (j === 0) {\n $ = console.log, A = console.info, L = console.warn, W = console.error, F = console.group, X = console.groupCollapsed, rt = console.groupEnd;\n var f = {\n configurable: !0,\n enumerable: !0,\n value: ct,\n writable: !0\n };\n Object.defineProperties(console, {\n info: f,\n log: f,\n warn: f,\n error: f,\n group: f,\n groupCollapsed: f,\n groupEnd: f\n });\n }\n j++;\n }\n }\n function wt() {\n {\n if (j--, j === 0) {\n var f = {\n configurable: !0,\n enumerable: !0,\n writable: !0\n };\n Object.defineProperties(console, {\n log: N({}, f, {\n value: $\n }),\n info: N({}, f, {\n value: A\n }),\n warn: N({}, f, {\n value: L\n }),\n error: N({}, f, {\n value: W\n }),\n group: N({}, f, {\n value: F\n }),\n groupCollapsed: N({}, f, {\n value: X\n }),\n groupEnd: N({}, f, {\n value: rt\n })\n });\n }\n j < 0 && m(\"disabledDepth fell below zero. This is a bug in React. Please file an issue.\");\n }\n }\n var bt = x.ReactCurrentDispatcher, O;\n function q(f, R, P) {\n {\n if (O === void 0)\n try {\n throw Error();\n } catch (at) {\n var K = at.stack.trim().match(/\\n( *(at )?)/);\n O = K && K[1] || \"\";\n }\n return `\n` + O + f;\n }\n }\n var et = !1, tt;\n {\n var _t = typeof WeakMap == \"function\" ? WeakMap : Map;\n tt = new _t();\n }\n function dt(f, R) {\n if (!f || et)\n return \"\";\n {\n var P = tt.get(f);\n if (P !== void 0)\n return P;\n }\n var K;\n et = !0;\n var at = Error.prepareStackTrace;\n Error.prepareStackTrace = void 0;\n var mt;\n mt = bt.current, bt.current = null, pt();\n try {\n if (R) {\n var st = function() {\n throw Error();\n };\n if (Object.defineProperty(st.prototype, \"props\", {\n set: function() {\n throw Error();\n }\n }), typeof Reflect == \"object\" && Reflect.construct) {\n try {\n Reflect.construct(st, []);\n } catch (Vt) {\n K = Vt;\n }\n Reflect.construct(f, [], st);\n } else {\n try {\n st.call();\n } catch (Vt) {\n K = Vt;\n }\n f.call(st.prototype);\n }\n } else {\n try {\n throw Error();\n } catch (Vt) {\n K = Vt;\n }\n f();\n }\n } catch (Vt) {\n if (Vt && K && typeof Vt.stack == \"string\") {\n for (var ot = Vt.stack.split(`\n`), Dt = K.stack.split(`\n`), St = ot.length - 1, jt = Dt.length - 1; St >= 1 && jt >= 0 && ot[St] !== Dt[jt]; )\n jt--;\n for (; St >= 1 && jt >= 0; St--, jt--)\n if (ot[St] !== Dt[jt]) {\n if (St !== 1 || jt !== 1)\n do\n if (St--, jt--, jt < 0 || ot[St] !== Dt[jt]) {\n var Zt = `\n` + ot[St].replace(\" at new \", \" at \");\n return f.displayName && Zt.includes(\"\") && (Zt = Zt.replace(\"\", f.displayName)), typeof f == \"function\" && tt.set(f, Zt), Zt;\n }\n while (St >= 1 && jt >= 0);\n break;\n }\n }\n } finally {\n et = !1, bt.current = mt, wt(), Error.prepareStackTrace = at;\n }\n var Oe = f ? f.displayName || f.name : \"\", Ce = Oe ? q(Oe) : \"\";\n return typeof f == \"function\" && tt.set(f, Ce), Ce;\n }\n function Yt(f, R, P) {\n return dt(f, !1);\n }\n function fe(f) {\n var R = f.prototype;\n return !!(R && R.isReactComponent);\n }\n function ae(f, R, P) {\n if (f == null)\n return \"\";\n if (typeof f == \"function\")\n return dt(f, fe(f));\n if (typeof f == \"string\")\n return q(f);\n switch (f) {\n case u:\n return q(\"Suspense\");\n case d:\n return q(\"SuspenseList\");\n }\n if (typeof f == \"object\")\n switch (f.$$typeof) {\n case a:\n return Yt(f.render);\n case p:\n return ae(f.type, R, P);\n case h: {\n var K = f, at = K._payload, mt = K._init;\n try {\n return ae(mt(at), R, P);\n } catch {\n }\n }\n }\n return \"\";\n }\n var Wt = Object.prototype.hasOwnProperty, Mt = {}, fn = x.ReactDebugCurrentFrame;\n function ue(f) {\n if (f) {\n var R = f._owner, P = ae(f.type, f._source, R ? R.type : null);\n fn.setExtraStackFrame(P);\n } else\n fn.setExtraStackFrame(null);\n }\n function Be(f, R, P, K, at) {\n {\n var mt = Function.call.bind(Wt);\n for (var st in f)\n if (mt(f, st)) {\n var ot = void 0;\n try {\n if (typeof f[st] != \"function\") {\n var Dt = Error((K || \"React class\") + \": \" + P + \" type `\" + st + \"` is invalid; it must be a function, usually from the `prop-types` package, but received `\" + typeof f[st] + \"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.\");\n throw Dt.name = \"Invariant Violation\", Dt;\n }\n ot = f[st](R, st, K, P, null, \"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED\");\n } catch (St) {\n ot = St;\n }\n ot && !(ot instanceof Error) && (ue(at), m(\"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).\", K || \"React class\", P, st, typeof ot), ue(null)), ot instanceof Error && !(ot.message in Mt) && (Mt[ot.message] = !0, ue(at), m(\"Failed %s type: %s\", P, ot.message), ue(null));\n }\n }\n }\n var hn = Array.isArray;\n function he(f) {\n return hn(f);\n }\n function me(f) {\n {\n var R = typeof Symbol == \"function\" && Symbol.toStringTag, P = R && f[Symbol.toStringTag] || f.constructor.name || \"Object\";\n return P;\n }\n }\n function de(f) {\n try {\n return Fe(f), !1;\n } catch {\n return !0;\n }\n }\n function Fe(f) {\n return \"\" + f;\n }\n function We(f) {\n if (de(f))\n return m(\"The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.\", me(f)), Fe(f);\n }\n var Ve = x.ReactCurrentOwner, mn = {\n key: !0,\n ref: !0,\n __self: !0,\n __source: !0\n }, Pn, gn;\n function Ge(f) {\n if (Wt.call(f, \"ref\")) {\n var R = Object.getOwnPropertyDescriptor(f, \"ref\").get;\n if (R && R.isReactWarning)\n return !1;\n }\n return f.ref !== void 0;\n }\n function zn(f) {\n if (Wt.call(f, \"key\")) {\n var R = Object.getOwnPropertyDescriptor(f, \"key\").get;\n if (R && R.isReactWarning)\n return !1;\n }\n return f.key !== void 0;\n }\n function us(f, R) {\n typeof f.ref == \"string\" && Ve.current;\n }\n function ds(f, R) {\n {\n var P = function() {\n Pn || (Pn = !0, m(\"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)\", R));\n };\n P.isReactWarning = !0, Object.defineProperty(f, \"key\", {\n get: P,\n configurable: !0\n });\n }\n }\n function fs(f, R) {\n {\n var P = function() {\n gn || (gn = !0, m(\"%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)\", R));\n };\n P.isReactWarning = !0, Object.defineProperty(f, \"ref\", {\n get: P,\n configurable: !0\n });\n }\n }\n var hs = function(f, R, P, K, at, mt, st) {\n var ot = {\n // This tag allows us to uniquely identify this as a React Element\n $$typeof: e,\n // Built-in properties that belong on the element\n type: f,\n key: R,\n ref: P,\n props: st,\n // Record the component responsible for creating this element.\n _owner: mt\n };\n return ot._store = {}, Object.defineProperty(ot._store, \"validated\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: !1\n }), Object.defineProperty(ot, \"_self\", {\n configurable: !1,\n enumerable: !1,\n writable: !1,\n value: K\n }), Object.defineProperty(ot, \"_source\", {\n configurable: !1,\n enumerable: !1,\n writable: !1,\n value: at\n }), Object.freeze && (Object.freeze(ot.props), Object.freeze(ot)), ot;\n };\n function ms(f, R, P, K, at) {\n {\n var mt, st = {}, ot = null, Dt = null;\n P !== void 0 && (We(P), ot = \"\" + P), zn(R) && (We(R.key), ot = \"\" + R.key), Ge(R) && (Dt = R.ref, us(R, at));\n for (mt in R)\n Wt.call(R, mt) && !mn.hasOwnProperty(mt) && (st[mt] = R[mt]);\n if (f && f.defaultProps) {\n var St = f.defaultProps;\n for (mt in St)\n st[mt] === void 0 && (st[mt] = St[mt]);\n }\n if (ot || Dt) {\n var jt = typeof f == \"function\" ? f.displayName || f.name || \"Unknown\" : f;\n ot && ds(st, jt), Dt && fs(st, jt);\n }\n return hs(f, ot, Dt, at, K, Ve.current, st);\n }\n }\n var Bn = x.ReactCurrentOwner, jo = x.ReactDebugCurrentFrame;\n function Ee(f) {\n if (f) {\n var R = f._owner, P = ae(f.type, f._source, R ? R.type : null);\n jo.setExtraStackFrame(P);\n } else\n jo.setExtraStackFrame(null);\n }\n var Fn;\n Fn = !1;\n function Wn(f) {\n return typeof f == \"object\" && f !== null && f.$$typeof === e;\n }\n function Io() {\n {\n if (Bn.current) {\n var f = U(Bn.current.type);\n if (f)\n return `\n\nCheck the render method of \\`` + f + \"`.\";\n }\n return \"\";\n }\n }\n function gs(f) {\n return \"\";\n }\n var ko = {};\n function ps(f) {\n {\n var R = Io();\n if (!R) {\n var P = typeof f == \"string\" ? f : f.displayName || f.name;\n P && (R = `\n\nCheck the top-level render call using <` + P + \">.\");\n }\n return R;\n }\n }\n function To(f, R) {\n {\n if (!f._store || f._store.validated || f.key != null)\n return;\n f._store.validated = !0;\n var P = ps(R);\n if (ko[P])\n return;\n ko[P] = !0;\n var K = \"\";\n f && f._owner && f._owner !== Bn.current && (K = \" It was passed a child from \" + U(f._owner.type) + \".\"), Ee(f), m('Each child in a list should have a unique \"key\" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', P, K), Ee(null);\n }\n }\n function $o(f, R) {\n {\n if (typeof f != \"object\")\n return;\n if (he(f))\n for (var P = 0; P < f.length; P++) {\n var K = f[P];\n Wn(K) && To(K, R);\n }\n else if (Wn(f))\n f._store && (f._store.validated = !0);\n else if (f) {\n var at = I(f);\n if (typeof at == \"function\" && at !== f.entries)\n for (var mt = at.call(f), st; !(st = mt.next()).done; )\n Wn(st.value) && To(st.value, R);\n }\n }\n }\n function xs(f) {\n {\n var R = f.type;\n if (R == null || typeof R == \"string\")\n return;\n var P;\n if (typeof R == \"function\")\n P = R.propTypes;\n else if (typeof R == \"object\" && (R.$$typeof === a || // Note: Memo only checks outer props here.\n // Inner props are checked in the reconciler.\n R.$$typeof === p))\n P = R.propTypes;\n else\n return;\n if (P) {\n var K = U(R);\n Be(P, f.props, \"prop\", K, f);\n } else if (R.PropTypes !== void 0 && !Fn) {\n Fn = !0;\n var at = U(R);\n m(\"Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?\", at || \"Unknown\");\n }\n typeof R.getDefaultProps == \"function\" && !R.getDefaultProps.isReactClassApproved && m(\"getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.\");\n }\n }\n function vs(f) {\n {\n for (var R = Object.keys(f.props), P = 0; P < R.length; P++) {\n var K = R[P];\n if (K !== \"children\" && K !== \"key\") {\n Ee(f), m(\"Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.\", K), Ee(null);\n break;\n }\n }\n f.ref !== null && (Ee(f), m(\"Invalid attribute `ref` supplied to `React.Fragment`.\"), Ee(null));\n }\n }\n var Ro = {};\n function Eo(f, R, P, K, at, mt) {\n {\n var st = M(f);\n if (!st) {\n var ot = \"\";\n (f === void 0 || typeof f == \"object\" && f !== null && Object.keys(f).length === 0) && (ot += \" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.\");\n var Dt = gs();\n Dt ? ot += Dt : ot += Io();\n var St;\n f === null ? St = \"null\" : he(f) ? St = \"array\" : f !== void 0 && f.$$typeof === e ? (St = \"<\" + (U(f.type) || \"Unknown\") + \" />\", ot = \" Did you accidentally export a JSX literal instead of a component?\") : St = typeof f, m(\"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s\", St, ot);\n }\n var jt = ms(f, R, P, at, mt);\n if (jt == null)\n return jt;\n if (st) {\n var Zt = R.children;\n if (Zt !== void 0)\n if (K)\n if (he(Zt)) {\n for (var Oe = 0; Oe < Zt.length; Oe++)\n $o(Zt[Oe], f);\n Object.freeze && Object.freeze(Zt);\n } else\n m(\"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.\");\n else\n $o(Zt, f);\n }\n if (Wt.call(R, \"key\")) {\n var Ce = U(f), Vt = Object.keys(R).filter(function(bs) {\n return bs !== \"key\";\n }), Vn = Vt.length > 0 ? \"{key: someKey, \" + Vt.join(\": ..., \") + \": ...}\" : \"{key: someKey}\";\n if (!Ro[Ce + Vn]) {\n var Cs = Vt.length > 0 ? \"{\" + Vt.join(\": ..., \") + \": ...}\" : \"{}\";\n m(`A props object containing a \"key\" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />`, Vn, Ce, Cs, Ce), Ro[Ce + Vn] = !0;\n }\n }\n return f === o ? vs(jt) : xs(jt), jt;\n }\n }\n function ws(f, R, P) {\n return Eo(f, R, P, !0);\n }\n function _s(f, R, P) {\n return Eo(f, R, P, !1);\n }\n var ys = _s, Ss = ws;\n qe.Fragment = o, qe.jsx = ys, qe.jsxs = Ss;\n }()), qe;\n}\nvar Do;\nfunction Ns() {\n return Do || (Do = 1, process.env.NODE_ENV === \"production\" ? pn.exports = Os() : pn.exports = Ls()), pn.exports;\n}\nvar i = Ns(), ut = /* @__PURE__ */ ((t) => (t.SHOW = \"show\", t.EXIT = \"exit\", t.DRAGGING = \"dragging\", t.EXITING = \"exiting\", t.SHOWING = \"showing\", t.SIZING = \"sizing\", t))(ut || {});\nconst je = 250, Ms = {\n state: {\n drag: null,\n position: null,\n color: null\n },\n getters: {},\n actions: {\n startDrag(t, e) {\n function n(r) {\n e.setPosition({ x: r.pageX, y: r.pageY });\n }\n function o(r) {\n document.removeEventListener(\"mousemove\", n), document.removeEventListener(\"mouseup\", o), e.stopDrag();\n }\n document.addEventListener(\"mousemove\", n), document.addEventListener(\"mouseup\", o), e.setDrag(t), t.source.view && !t.source.index && t.source.view.docAnim(ut.DRAGGING);\n },\n stopDrag(t, e) {\n var r;\n const { source: n, destination: o } = e.state.drag;\n if (!n) return null;\n (r = n.view) == null || r.docAnim(ut.SHOW), o != null && o.view && (n.view != o.view || n.index != o.index) ? o.view.onDrop(e.state.drag) : (o == null ? void 0 : o.index) != null && (o != null && o.group) && n.view.state.group.move({\n view: n.view,\n index: o.index,\n groupDest: o.group,\n anim: !0\n }), e.setDrag(null);\n }\n },\n mutators: {\n setDrag: (t) => ({ drag: t }),\n setPosition: (t) => ({ position: t }),\n setColor: (t) => ({ color: t })\n }\n}, Ht = On(Ms), Ds = \"_root_tx2ni_1\", As = \"_in_exit_tx2ni_15\", Hs = \"_in_dragover_tx2ni_23\", Ps = \"_is_last_tx2ni_31\", zs = \"_line_tx2ni_43\", Ke = {\n root: Ds,\n in_exit: As,\n in_dragover: Hs,\n is_last: Ps,\n line: zs\n}, Ao = ({\n groupDest: t,\n index: e,\n isLast: n,\n viewSo: o,\n style: r\n}) => {\n var S, C, I, x, m;\n const s = Nt(Ht), c = o ? Nt(o) : null, l = (y) => {\n var k, _;\n (_ = (k = s.drag) == null ? void 0 : k.source) != null && _.view && Ht.setDrag({ ...s.drag, destination: { group: t, index: e } });\n }, a = () => {\n var y, k;\n (k = (y = s.drag) == null ? void 0 : y.source) != null && k.view && Ht.setDrag({ ...Ht.state.drag, destination: null });\n }, u = ((C = (S = s.drag) == null ? void 0 : S.destination) == null ? void 0 : C.index) == e && ((x = (I = s.drag) == null ? void 0 : I.destination) == null ? void 0 : x.group) == t, d = (c == null ? void 0 : c.docAnim) == ut.EXIT || (c == null ? void 0 : c.docAnim) == ut.EXITING, p = `${Ke.root} ${u ? Ke.in_dragover : \"\"} ${d ? Ke.in_exit : \"\"} ${n ? Ke.is_last : \"\"}`, h = Ke.line, g = { backgroundColor: u ? (m = s.color) == null ? void 0 : m.bg : null };\n return /* @__PURE__ */ i.jsx(\n \"div\",\n {\n draggable: !1,\n className: p,\n style: r,\n onMouseOver: l,\n onMouseLeave: a,\n children: /* @__PURE__ */ i.jsx(\n \"div\",\n {\n style: g,\n className: h\n }\n )\n }\n );\n};\nvar Cn = { exports: {} }, Bs = Cn.exports, Ho;\nfunction Fs() {\n return Ho || (Ho = 1, function(t, e) {\n (function(n, o) {\n t.exports = o();\n })(Bs, function() {\n var n = 1e3, o = 6e4, r = 36e5, s = \"millisecond\", c = \"second\", l = \"minute\", a = \"hour\", u = \"day\", d = \"week\", p = \"month\", h = \"quarter\", g = \"year\", S = \"date\", C = \"Invalid Date\", I = /^(\\d{4})[-/]?(\\d{1,2})?[-/]?(\\d{0,2})[Tt\\s]*(\\d{1,2})?:?(\\d{1,2})?:?(\\d{1,2})?[.:]?(\\d+)?$/, x = /\\[([^\\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, m = { name: \"en\", weekdays: \"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"), months: \"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\"), ordinal: function(N) {\n var j = [\"th\", \"st\", \"nd\", \"rd\"], $ = N % 100;\n return \"[\" + N + (j[($ - 20) % 10] || j[$] || j[0]) + \"]\";\n } }, y = function(N, j, $) {\n var A = String(N);\n return !A || A.length >= j ? N : \"\" + Array(j + 1 - A.length).join($) + N;\n }, k = { s: y, z: function(N) {\n var j = -N.utcOffset(), $ = Math.abs(j), A = Math.floor($ / 60), L = $ % 60;\n return (j <= 0 ? \"+\" : \"-\") + y(A, 2, \"0\") + \":\" + y(L, 2, \"0\");\n }, m: function N(j, $) {\n if (j.date() < $.date()) return -N($, j);\n var A = 12 * ($.year() - j.year()) + ($.month() - j.month()), L = j.clone().add(A, p), W = $ - L < 0, F = j.clone().add(A + (W ? -1 : 1), p);\n return +(-(A + ($ - L) / (W ? L - F : F - L)) || 0);\n }, a: function(N) {\n return N < 0 ? Math.ceil(N) || 0 : Math.floor(N);\n }, p: function(N) {\n return { M: p, y: g, w: d, d: u, D: S, h: a, m: l, s: c, ms: s, Q: h }[N] || String(N || \"\").toLowerCase().replace(/s$/, \"\");\n }, u: function(N) {\n return N === void 0;\n } }, _ = \"en\", v = {};\n v[_] = m;\n var w = \"$isDayjsObject\", b = function(N) {\n return N instanceof G || !(!N || !N[w]);\n }, T = function N(j, $, A) {\n var L;\n if (!j) return _;\n if (typeof j == \"string\") {\n var W = j.toLowerCase();\n v[W] && (L = W), $ && (v[W] = $, L = W);\n var F = j.split(\"-\");\n if (!L && F.length > 1) return N(F[0]);\n } else {\n var X = j.name;\n v[X] = j, L = X;\n }\n return !A && L && (_ = L), L || !A && _;\n }, M = function(N, j) {\n if (b(N)) return N.clone();\n var $ = typeof j == \"object\" ? j : {};\n return $.date = N, $.args = arguments, new G($);\n }, D = k;\n D.l = T, D.i = b, D.w = function(N, j) {\n return M(N, { locale: j.$L, utc: j.$u, x: j.$x, $offset: j.$offset });\n };\n var G = function() {\n function N($) {\n this.$L = T($.locale, null, !0), this.parse($), this.$x = this.$x || $.x || {}, this[w] = !0;\n }\n var j = N.prototype;\n return j.parse = function($) {\n this.$d = function(A) {\n var L = A.date, W = A.utc;\n if (L === null) return /* @__PURE__ */ new Date(NaN);\n if (D.u(L)) return /* @__PURE__ */ new Date();\n if (L instanceof Date) return new Date(L);\n if (typeof L == \"string\" && !/Z$/i.test(L)) {\n var F = L.match(I);\n if (F) {\n var X = F[2] - 1 || 0, rt = (F[7] || \"0\").substring(0, 3);\n return W ? new Date(Date.UTC(F[1], X, F[3] || 1, F[4] || 0, F[5] || 0, F[6] || 0, rt)) : new Date(F[1], X, F[3] || 1, F[4] || 0, F[5] || 0, F[6] || 0, rt);\n }\n }\n return new Date(L);\n }($), this.init();\n }, j.init = function() {\n var $ = this.$d;\n this.$y = $.getFullYear(), this.$M = $.getMonth(), this.$D = $.getDate(), this.$W = $.getDay(), this.$H = $.getHours(), this.$m = $.getMinutes(), this.$s = $.getSeconds(), this.$ms = $.getMilliseconds();\n }, j.$utils = function() {\n return D;\n }, j.isValid = function() {\n return this.$d.toString() !== C;\n }, j.isSame = function($, A) {\n var L = M($);\n return this.startOf(A) <= L && L <= this.endOf(A);\n }, j.isAfter = function($, A) {\n return M($) < this.startOf(A);\n }, j.isBefore = function($, A) {\n return this.endOf(A) < M($);\n }, j.$g = function($, A, L) {\n return D.u($) ? this[A] : this.set(L, $);\n }, j.unix = function() {\n return Math.floor(this.valueOf() / 1e3);\n }, j.valueOf = function() {\n return this.$d.getTime();\n }, j.startOf = function($, A) {\n var L = this, W = !!D.u(A) || A, F = D.p($), X = function(et, tt) {\n var _t = D.w(L.$u ? Date.UTC(L.$y, tt, et) : new Date(L.$y, tt, et), L);\n return W ? _t : _t.endOf(u);\n }, rt = function(et, tt) {\n return D.w(L.toDate()[et].apply(L.toDate(\"s\"), (W ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(tt)), L);\n }, ct = this.$W, pt = this.$M, wt = this.$D, bt = \"set\" + (this.$u ? \"UTC\" : \"\");\n switch (F) {\n case g:\n return W ? X(1, 0) : X(31, 11);\n case p:\n return W ? X(1, pt) : X(0, pt + 1);\n case d:\n var O = this.$locale().weekStart || 0, q = (ct < O ? ct + 7 : ct) - O;\n return X(W ? wt - q : wt + (6 - q), pt);\n case u:\n case S:\n return rt(bt + \"Hours\", 0);\n case a:\n return rt(bt + \"Minutes\", 1);\n case l:\n return rt(bt + \"Seconds\", 2);\n case c:\n return rt(bt + \"Milliseconds\", 3);\n default:\n return this.clone();\n }\n }, j.endOf = function($) {\n return this.startOf($, !1);\n }, j.$set = function($, A) {\n var L, W = D.p($), F = \"set\" + (this.$u ? \"UTC\" : \"\"), X = (L = {}, L[u] = F + \"Date\", L[S] = F + \"Date\", L[p] = F + \"Month\", L[g] = F + \"FullYear\", L[a] = F + \"Hours\", L[l] = F + \"Minutes\", L[c] = F + \"Seconds\", L[s] = F + \"Milliseconds\", L)[W], rt = W === u ? this.$D + (A - this.$W) : A;\n if (W === p || W === g) {\n var ct = this.clone().set(S, 1);\n ct.$d[X](rt), ct.init(), this.$d = ct.set(S, Math.min(this.$D, ct.daysInMonth())).$d;\n } else X && this.$d[X](rt);\n return this.init(), this;\n }, j.set = function($, A) {\n return this.clone().$set($, A);\n }, j.get = function($) {\n return this[D.p($)]();\n }, j.add = function($, A) {\n var L, W = this;\n $ = Number($);\n var F = D.p(A), X = function(pt) {\n var wt = M(W);\n return D.w(wt.date(wt.date() + Math.round(pt * $)), W);\n };\n if (F === p) return this.set(p, this.$M + $);\n if (F === g) return this.set(g, this.$y + $);\n if (F === u) return X(1);\n if (F === d) return X(7);\n var rt = (L = {}, L[l] = o, L[a] = r, L[c] = n, L)[F] || 1, ct = this.$d.getTime() + $ * rt;\n return D.w(ct, this);\n }, j.subtract = function($, A) {\n return this.add(-1 * $, A);\n }, j.format = function($) {\n var A = this, L = this.$locale();\n if (!this.isValid()) return L.invalidDate || C;\n var W = $ || \"YYYY-MM-DDTHH:mm:ssZ\", F = D.z(this), X = this.$H, rt = this.$m, ct = this.$M, pt = L.weekdays, wt = L.months, bt = L.meridiem, O = function(tt, _t, dt, Yt) {\n return tt && (tt[_t] || tt(A, W)) || dt[_t].slice(0, Yt);\n }, q = function(tt) {\n return D.s(X % 12 || 12, tt, \"0\");\n }, et = bt || function(tt, _t, dt) {\n var Yt = tt < 12 ? \"AM\" : \"PM\";\n return dt ? Yt.toLowerCase() : Yt;\n };\n return W.replace(x, function(tt, _t) {\n return _t || function(dt) {\n switch (dt) {\n case \"YY\":\n return String(A.$y).slice(-2);\n case \"YYYY\":\n return D.s(A.$y, 4, \"0\");\n case \"M\":\n return ct + 1;\n case \"MM\":\n return D.s(ct + 1, 2, \"0\");\n case \"MMM\":\n return O(L.monthsShort, ct, wt, 3);\n case \"MMMM\":\n return O(wt, ct);\n case \"D\":\n return A.$D;\n case \"DD\":\n return D.s(A.$D, 2, \"0\");\n case \"d\":\n return String(A.$W);\n case \"dd\":\n return O(L.weekdaysMin, A.$W, pt, 2);\n case \"ddd\":\n return O(L.weekdaysShort, A.$W, pt, 3);\n case \"dddd\":\n return pt[A.$W];\n case \"H\":\n return String(X);\n case \"HH\":\n return D.s(X, 2, \"0\");\n case \"h\":\n return q(1);\n case \"hh\":\n return q(2);\n case \"a\":\n return et(X, rt, !0);\n case \"A\":\n return et(X, rt, !1);\n case \"m\":\n return String(rt);\n case \"mm\":\n return D.s(rt, 2, \"0\");\n case \"s\":\n return String(A.$s);\n case \"ss\":\n return D.s(A.$s, 2, \"0\");\n case \"SSS\":\n return D.s(A.$ms, 3, \"0\");\n case \"Z\":\n return F;\n }\n return null;\n }(tt) || F.replace(\":\", \"\");\n });\n }, j.utcOffset = function() {\n return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);\n }, j.diff = function($, A, L) {\n var W, F = this, X = D.p(A), rt = M($), ct = (rt.utcOffset() - this.utcOffset()) * o, pt = this - rt, wt = function() {\n return D.m(F, rt);\n };\n switch (X) {\n case g:\n W = wt() / 12;\n break;\n case p:\n W = wt();\n break;\n case h:\n W = wt() / 3;\n break;\n case d:\n W = (pt - ct) / 6048e5;\n break;\n case u:\n W = (pt - ct) / 864e5;\n break;\n case a:\n W = pt / r;\n break;\n case l:\n W = pt / o;\n break;\n case c:\n W = pt / n;\n break;\n default:\n W = pt;\n }\n return L ? W : D.a(W);\n }, j.daysInMonth = function() {\n return this.endOf(p).$D;\n }, j.$locale = function() {\n return v[this.$L];\n }, j.locale = function($, A) {\n if (!$) return this.$L;\n var L = this.clone(), W = T($, A, !0);\n return W && (L.$L = W), L;\n }, j.clone = function() {\n return D.w(this.$d, this);\n }, j.toDate = function() {\n return new Date(this.valueOf());\n }, j.toJSON = function() {\n return this.isValid() ? this.toISOString() : null;\n }, j.toISOString = function() {\n return this.$d.toISOString();\n }, j.toString = function() {\n return this.$d.toUTCString();\n }, N;\n }(), U = G.prototype;\n return M.prototype = U, [[\"$ms\", s], [\"$s\", c], [\"$m\", l], [\"$H\", a], [\"$W\", u], [\"$M\", p], [\"$y\", g], [\"$D\", S]].forEach(function(N) {\n U[N[1]] = function(j) {\n return this.$g(j, N[0], N[1]);\n };\n }), M.extend = function(N, j) {\n return N.$i || (N(j, G, M), N.$i = !0), M;\n }, M.locale = T, M.isDayjs = b, M.unix = function(N) {\n return M(1e3 * N);\n }, M.en = v[_], M.Ls = v, M.p = {}, M;\n });\n }(Cn)), Cn.exports;\n}\nvar Ws = Fs();\nconst Vs = /* @__PURE__ */ Es(Ws);\nlet xn = {};\nfunction Gs(t, e, n) {\n if (n == 0)\n e == null || e.apply(this, null);\n else {\n let o = xn[t];\n if (o != null && clearTimeout(o), !e) {\n delete xn[t];\n return;\n }\n xn[t] = setTimeout(() => {\n delete xn[t], e.apply(this, null);\n }, n);\n }\n}\nfunction Ln(t) {\n return new Promise((e) => setTimeout(e, t));\n}\nfunction pr() {\n return new Promise((t) => window.requestAnimationFrame(() => t()));\n}\nvar Us = /* @__PURE__ */ ((t) => (t.RIGHT = \"right\", t.BOTTOM = \"bottom\", t))(Us || {}), qs = /* @__PURE__ */ ((t) => (t[t.CONNECTIONS = 0] = \"CONNECTIONS\", t[t.LOGS = 1] = \"LOGS\", t[t.ABOUT = 2] = \"ABOUT\", t))(qs || {});\nconst Ks = {\n state: {\n fixedViews: null,\n allDeck: [],\n /** la CARD attualmente in ZEN */\n zenCard: null,\n zenOpen: !1,\n /** indica quale tipo di CARD era aperta precedentemente */\n cardOptions: {},\n drawerPosition: \"right\"\n /* RIGHT */\n },\n getters: {\n getSerialization: (t, e) => ({\n drawerPosition: e.state.drawerPosition\n }),\n getAllCards: (t, e) => e.state.allDeck.reduce((n, o) => [...n, ...o.state.all], [])\n },\n actions: {\n setSerialization: (t, e) => {\n e.state.drawerPosition = t.drawerPosition;\n },\n zenOpen: async (t, e) => {\n t && (e.setZenCard(t), await pr(), e.setZenOpen(!0));\n },\n zenClose: async (t, e) => {\n e.setZenOpen(!1), await Ln(300), e.state.zenCard._update(), e.setZenCard(null);\n }\n },\n mutators: {\n setZenCard: (t) => ({ zenCard: t }),\n setZenOpen: (t) => ({ zenOpen: t }),\n setDrawerPosition: (t) => ({ drawerPosition: t }),\n setFixedViews: (t) => ({ fixedViews: t }),\n setAllDeck: (t) => ({ allDeck: t })\n }\n}, Ct = On(Ks);\nvar Tt = /* @__PURE__ */ ((t) => (t[t.NORMAL = 0] = \"NORMAL\", t[t.COMPACT = 1] = \"COMPACT\", t[t.ICONIZED = 2] = \"ICONIZED\", t))(Tt || {}), Ot = /* @__PURE__ */ ((t) => (t[t.MANUAL = 0] = \"MANUAL\", t[t.PARENT = 1] = \"PARENT\", t[t.POLLING = 2] = \"POLLING\", t))(Ot || {}), re = /* @__PURE__ */ ((t) => (t[t.IDLE = 0] = \"IDLE\", t[t.LOADING = 1] = \"LOADING\", t[t.ERROR = 2] = \"ERROR\", t))(re || {}), Xe = /* @__PURE__ */ ((t) => (t.INFO = \"info\", t.SUCCESS = \"success\", t.WARNING = \"warn\", t.ERROR = \"error\", t))(Xe || {}), Ys = /* @__PURE__ */ ((t) => (t.HORIZONTAL = \"horizontal\", t.VERTICAL = \"vertical\", t))(Ys || {});\nconst Zs = ({\n children: t,\n className: e,\n style: n,\n direction: o = \"horizontal\",\n resizeDisabled: r,\n onStart: s,\n onMove: c,\n onStop: l,\n onDClick: a\n}) => {\n const u = (d) => {\n const p = o == \"horizontal\" ? d.clientX : d.clientY, h = s == null ? void 0 : s(p), g = (C) => {\n const I = o == \"horizontal\" ? C.clientX : C.clientY, x = p - I;\n c == null || c(h, x);\n }, S = (C) => {\n document.removeEventListener(\"mousemove\", g), document.removeEventListener(\"mouseup\", S), l == null || l();\n };\n document.addEventListener(\"mousemove\", g), document.addEventListener(\"mouseup\", S);\n };\n return /* @__PURE__ */ i.jsx(\n \"div\",\n {\n className: e,\n style: n,\n children: t,\n draggable: !1,\n onMouseDown: r ? void 0 : u,\n onDoubleClick: a\n }\n );\n}, Xs = \"_root_zcv9p_1\", Js = \"_showing_zcv9p_13\", Qs = \"_exiting_zcv9p_13\", ti = \"_doc_zcv9p_23\", ei = \"_sizing_zcv9p_23\", ni = \"_resizer_zcv9p_37\", oi = \"_dialog_zcv9p_55\", ri = \"_desk_zcv9p_65\", Le = {\n root: Xs,\n showing: Js,\n exiting: Qs,\n doc: ti,\n sizing: ei,\n resizer: ni,\n dialog: oi,\n desk: ri\n}, xr = ({\n view: t,\n Render: e,\n deep: n = 100,\n className: o = \"\",\n style: r = {}\n}) => {\n const s = Nt(t), c = Nt(Ct);\n Bt(() => {\n window.requestAnimationFrame(() => t.docAnim(ut.SHOWING));\n }, [t]);\n const l = Ut(() => document.getElementById(\"zen-card\"), []), a = (_, v) => t.setWidth(_ - v), u = () => t.state.group.detach(t.state.linked), d = (_) => {\n var v, w, b, T;\n _.stopPropagation(), !(((w = (v = Ht.state.drag) == null ? void 0 : v.source) == null ? void 0 : w.view) == null || ((T = (b = Ht.state.drag) == null ? void 0 : b.source) == null ? void 0 : T.view) == t) && Ht.setDrag({ ...Ht.state.drag, destination: { view: t } });\n }, p = () => {\n var _, v;\n ((v = (_ = Ht.state.drag) == null ? void 0 : _.source) == null ? void 0 : v.view) != null && Ht.setDrag({ ...Ht.state.drag, destination: null });\n };\n if (!t) return null;\n const h = t.state.docAnim, g = c.zenCard == t, S = !g && s.size == Tt.COMPACT, C = !S && !g, I = !g && !!t.state.linked, x = `${Le.root} ${Le[h] ?? \"\"} ${o} jack-card`, m = t.getWidth(), y = {\n zIndex: n,\n width: m,\n maxWidth: t.state.widthMax,\n minWidth: S ? t.state.widthCompact : t.state.widthMin\n };\n (h == ut.EXITING || h == ut.EXIT) && (y.width = 0, y.minWidth = 0, y.transform = \"translate(-100%, 0px)\", y.overflowX = \"hidden\"), h == ut.SHOWING && (y.minWidth = 0);\n const k = /* @__PURE__ */ i.jsxs(\n \"div\",\n {\n draggable: !1,\n id: t.state.uuid,\n className: x,\n style: { zIndex: n, ...r },\n onMouseOver: s.droppable ? d : void 0,\n onMouseLeave: s.droppable ? p : void 0,\n children: [\n /* @__PURE__ */ i.jsx(\"div\", { style: y, className: Le.doc, children: /* @__PURE__ */ i.jsx(e, { view: t }) }),\n C ? /* @__PURE__ */ i.jsx(\n Zs,\n {\n className: Le.resizer,\n onStart: (_) => t.state.width,\n onMove: a,\n onDClick: u\n }\n ) : I && /* @__PURE__ */ i.jsx(\n \"div\",\n {\n className: Le.resizer,\n style: { cursor: \"col-resize\" },\n onDoubleClick: u\n }\n ),\n !g && I && /* @__PURE__ */ i.jsx(\n xr,\n {\n className: Le.desk,\n deep: n - 2,\n view: t.state.linked,\n Render: e\n }\n )\n ]\n }\n );\n return g ? /* @__PURE__ */ i.jsxs(i.Fragment, { children: [\n /* @__PURE__ */ i.jsx(\"div\", { style: { width: t.state.width } }),\n gr(\n k,\n l\n )\n ] }) : k;\n}, Eu = ({\n cardsStore: t,\n Render: e\n}) => {\n const o = Nt(t).all;\n return /* @__PURE__ */ i.jsxs(i.Fragment, { children: [\n o.map((r, s) => /* @__PURE__ */ i.jsxs(\n \"div\",\n {\n style: si(o.length - s),\n children: [\n /* @__PURE__ */ i.jsx(\n Ao,\n {\n groupDest: t,\n index: s,\n viewSo: r\n }\n ),\n /* @__PURE__ */ i.jsx(xr, { view: r, Render: e })\n ]\n },\n r.state.uuid\n )),\n /* @__PURE__ */ i.jsx(\n Ao,\n {\n isLast: !0,\n groupDest: t,\n index: o.length\n }\n )\n ] });\n}, si = (t) => ({\n display: \"flex\",\n zIndex: t\n}), ii = \"_root_p1f19_1\", ci = \"_show_p1f19_33\", li = \"_hide_p1f19_41\", Gn = {\n root: ii,\n show: ci,\n hide: li\n}, Ou = () => {\n var l, a, u;\n const t = Nt(Ht), [e, n] = lt(!0), o = t.drag != null;\n Bt(() => {\n o == !1 ? setTimeout(() => n(!0), je) : n(!1);\n }, [o]);\n const r = t.position, s = t.color, c = `${Gn.root} ${o ? Gn.show : \"\"} ${e ? Gn.hide : \"\"}`;\n return /* @__PURE__ */ i.jsx(\n \"div\",\n {\n className: c,\n style: ai(r, s),\n children: ((u = (a = (l = t.drag) == null ? void 0 : l.source) == null ? void 0 : a.view) == null ? void 0 : u.getTitle()) ?? \"...\"\n }\n );\n}, ai = (t, e) => ({\n left: t == null ? void 0 : t.x,\n top: t == null ? void 0 : t.y,\n color: e == null ? void 0 : e.fg,\n backgroundColor: e == null ? void 0 : e.bg\n}), ui = {\n state: {\n show: !1,\n content: null\n },\n getters: {},\n actions: {\n open(t, e) {\n e.setContent(t), e.setShow(!0);\n },\n async close(t, e) {\n e.setShow(!1);\n }\n },\n mutators: {\n setShow: (t) => ({ show: t }),\n setContent: (t) => ({ content: t })\n }\n}, Me = On(ui), di = \"_root_13d2p_1\", fi = \"_show_13d2p_33\", hi = \"_content_13d2p_43\", mi = \"_arrow_13d2p_61\", Ye = {\n root: di,\n show: fi,\n content: hi,\n arrow: mi\n}, Lu = () => {\n var a, u;\n const t = Nt(Me), e = Te(null), [n, o] = lt(null);\n Bt(() => {\n var C;\n const d = (C = Me.state.content) == null ? void 0 : C.targetRect;\n if (!t.show || !d || !e.current) return;\n const p = e.current.getBoundingClientRect(), h = {\n position: { x: d.x + d.width / 2, y: d.y },\n hook: 0,\n offset: 0\n }, g = p.height + 20;\n d.y - g < 0 && (h.position.y = d.bottom + g, h.hook = 1);\n const S = (p.width - d.width) / 2;\n d.left - S < 0 && (h.offset = S), d.right + S > window.innerWidth && (h.offset = -S), o(h);\n }, [t.show, Me.state.content]);\n const r = (a = t.content) == null ? void 0 : a.content, s = t.show, c = (u = t.content) == null ? void 0 : u.color, l = `${Ye.root} ${s ? Ye.show : \"\"}`;\n return /* @__PURE__ */ i.jsx(\n \"div\",\n {\n ref: e,\n style: gi(n),\n className: l,\n children: !!r && /* @__PURE__ */ i.jsxs(\n \"div\",\n {\n style: pi(c),\n className: Ye.content,\n children: [\n r,\n /* @__PURE__ */ i.jsx(\n \"div\",\n {\n style: xi(n, c),\n className: `${Ye.arrow} ${Ye[n == null ? void 0 : n.hook]}`\n }\n )\n ]\n }\n )\n }\n );\n}, gi = (t, e = !1) => ({\n left: t ? t.position.x + t.offset : null,\n top: t ? t.position.y : null\n}), pi = (t) => ({\n color: t == null ? void 0 : t.fg,\n backgroundColor: t == null ? void 0 : t.bg\n}), xi = (t, e) => ({\n ...(t == null ? void 0 : t.hook) == 0 ? {\n bottom: -10,\n borderColor: `${e == null ? void 0 : e.bg} transparent transparent transparent`\n } : {\n top: -10,\n borderColor: `transparent transparent ${e == null ? void 0 : e.bg} transparent`\n },\n right: `calc( 50% - ${5 - ((t == null ? void 0 : t.offset) ?? 0)}px )`\n}), lo = ({\n content: t,\n disabled: e,\n tabIndex: n = -1,\n style: o,\n className: r,\n onMouseOver: s,\n onClick: c,\n onKeyDown: l,\n children: a\n}) => {\n const u = ks();\n Bt(() => (e && p(), () => {\n var h;\n ((h = Me.state.content) == null ? void 0 : h.id) == u && p();\n }), [e]);\n const d = (h) => {\n if (e) return;\n const g = h.target, S = window.getComputedStyle(g);\n Me.open({\n content: t,\n targetRect: g.getBoundingClientRect(),\n color: {\n bg: S.getPropertyValue(\"--dialog-bg\"),\n fg: S.getPropertyValue(\"--dialog-fg\")\n },\n id: u\n }), s == null || s(!0);\n }, p = (h) => {\n Me.close(), s == null || s(!1);\n };\n return t ? /* @__PURE__ */ i.jsx(\n \"div\",\n {\n style: o,\n className: r ?? \"\",\n tabIndex: n,\n onMouseEnter: d,\n onMouseLeave: p,\n onClick: c,\n onKeyDown: l,\n children: a\n }\n ) : a;\n}, vi = \"_root_dupwt_1\", wi = \"_hide_dupwt_33\", _i = \"_open_dupwt_41\", yi = \"_container_dupwt_49\", vn = {\n root: vi,\n hide: wi,\n open: _i,\n container: yi\n}, Nu = ({}) => {\n const t = Nt(Ct), e = Te(null), n = (s) => {\n s.stopPropagation(), s.target == e.current && Ct.zenClose();\n }, o = t.zenOpen ? vn.open : \"\", r = t.zenCard ? \"\" : vn.hide;\n return /* @__PURE__ */ i.jsx(\n \"div\",\n {\n ref: e,\n className: `${vn.root} ${o} ${r}`,\n onClick: n,\n children: /* @__PURE__ */ i.jsx(\"div\", { className: vn.container, id: \"zen-card\" })\n }\n );\n}, ne = (t) => /* @__PURE__ */ i.jsx(\n \"svg\",\n {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: \"14\",\n height: \"14\",\n viewBox: \"0 0 14 14\",\n fill: \"none\",\n stroke: \"currentColor\",\n ...t,\n children: /* @__PURE__ */ i.jsx(\"path\", { d: \"M3 3L11 11M3 11L11 3\", strokeWidth: \"2\" })\n }\n);\nfunction to(t) {\n var n;\n return (n = document.getElementById(t.state.uuid)) == null ? void 0 : n.querySelector(\".jack-framework\");\n}\nfunction vr(t) {\n const e = to(t);\n if (!e) return { bodyIndex: -1, elements: [] };\n const n = [...e.querySelectorAll(\".jack-framework-actions [tabindex]\")].filter((r) => r.tabIndex >= 0), o = [...e.querySelectorAll(\".jack-framework-body [tabindex]\")].filter((r) => r.tabIndex >= 0);\n return {\n bodyIndex: n.length,\n elements: [...n, ...o]\n };\n}\nfunction Si(t, e) {\n const n = vr(t);\n if (n.elements.length <= e || e < 0) return !1;\n const o = n.elements[e];\n return o == null || o.focus(), o == null || o.scrollIntoView({ behavior: \"smooth\" }), !0;\n}\nfunction Po(t) {\n const e = vr(t);\n if (!e.elements || e.elements.length == 0) return -1;\n let n = e.elements.indexOf(document.activeElement);\n n == -1 && e.elements.findIndex((r) => r.autofocus), n == -1 && (n = e.bodyIndex), n == -1 && (n = 0);\n const o = e.elements[n];\n return o == null || o.focus(), o == null || o.scrollIntoView({ behavior: \"smooth\" }), n;\n}\nfunction tn(t, e) {\n const n = typeof t, o = typeof e;\n if (n == \"object\" && n == o) {\n for (let r in t)\n if (!tn(t[r], e[r])) return !1;\n return !0;\n }\n return t == e;\n}\nfunction te(t, e) {\n if (!t) return null;\n for (const n of t) {\n const o = ao(n, e);\n if (o != null) return o;\n }\n return null;\n}\nfunction ao(t, e) {\n if (!t) return null;\n const n = e(t);\n return n != null && n !== !1 ? n : t.state.linked ? ao(t.state.linked, e) : null;\n}\nfunction In(t, e) {\n return t == null || e == null ? null : te(t, (n) => {\n if (n.state.uuid === e)\n return n;\n });\n}\nfunction Ci(t, e) {\n const n = [];\n return te(\n t,\n (o) => {\n tn(e, o.state) && n.push(o);\n }\n ), n;\n}\nfunction bi(t, e) {\n return te(\n t,\n (n) => tn(e, n.state) ? n : null\n );\n}\nfunction uo(t, e = (n) => {\n var o;\n return ((o = n.state) == null ? void 0 : o.parent) == null ? n : null;\n}) {\n let n = t;\n for (; n != null; ) {\n const o = e(n);\n if (o != null && o !== !1) return o;\n n = n.state.parent;\n }\n return null;\n}\nfunction en(t, e) {\n let n = t == null ? void 0 : t.state.parent;\n for (; n != null; )\n e(n), n = n.state.parent;\n}\nfunction ji(t) {\n let e = 0;\n return en(t, () => e++), e;\n}\nfunction wr(t) {\n let e = null;\n return en(t, (n) => e = n), e;\n}\nfunction _r() {\n var t = (/* @__PURE__ */ new Date()).getTime(), e = \"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\".replace(\n /[xy]/g,\n (n) => {\n let o = (t + Math.random() * 16) % 16 | 0;\n return t = Math.floor(t / 16), (n == \"x\" ? o : o & 3 | 8).toString(16);\n }\n );\n return e;\n}\nfunction kn(t, e = !1) {\n var s, c;\n if (!t) return (c = (s = Ct.state.allDeck) == null ? void 0 : s[0]) == null ? void 0 : c.state.all[0];\n if (e && t.state.parent) return t.state.parent;\n if (!e && t.state.linked) return t.state.linked;\n const n = t == null ? void 0 : t.state.group;\n if (!n) return null;\n if (e) {\n let l = n.getIndexByView(t) - 1;\n return l < 0 && (l = n.state.all.length - 1), ao(n.state.all[l], (a) => {\n var u;\n return ((u = a.state) == null ? void 0 : u.linked) == null ? a : null;\n });\n }\n const o = uo(t);\n let r = n.getIndexByView(o) + 1;\n return r >= n.state.all.length && (r = 0), n.state.all[r];\n}\nconst Mu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({\n __proto__: null,\n createUUID: _r,\n findAll: Ci,\n findInRoot: bi,\n findParent: uo,\n forEachParent: en,\n forEachViews: te,\n getById: In,\n getNear: kn,\n getRoot: wr,\n numLinkedParent: ji\n}, Symbol.toStringTag, { value: \"Module\" }));\nfunction Ii() {\n document.addEventListener(\"keydown\", (t) => {\n var o, r;\n It.state.shiftKey = t.shiftKey, It.state.altKey = t.altKey, It.state.ctrlKey = t.ctrlKey;\n let e = It.state.view;\n const n = !!e && Ct.state.zenCard == e;\n if (n && t.code == \"Escape\") {\n Ct.zenClose();\n return;\n }\n if (t.altKey) {\n if (It.setShow(!0), t.code == \"AltLeft\" || t.code == \"AltRight\") {\n t.preventDefault();\n return;\n }\n if (!e && (t.code == \"ArrowLeft\" || t.code == \"ArrowRight\") && (e = (r = (o = Ct.state.allDeck) == null ? void 0 : o[0]) == null ? void 0 : r.state.all[0]), !!e) {\n if (t.ctrlKey) {\n if (t.code == \"ArrowLeft\") {\n const s = e.state.group, c = s.getIndexByView(e);\n s.move({ view: e, index: c - 1 });\n } else if (t.code == \"ArrowRight\") {\n const s = e.state.group, c = s.getIndexByView(e);\n s.move({ view: e, index: c + 2 });\n } else t.code == \"ArrowUp\" ? e.state.size == Tt.COMPACT ? e.setSize(Tt.NORMAL) : Ct.zenOpen(e) : t.code == \"ArrowDown\" && (n ? Ct.zenClose() : It.state.view.setSize(Tt.COMPACT));\n return;\n }\n switch (t.code) {\n case \"ArrowUp\": {\n if (!It.moveVert(!0)) return;\n break;\n }\n case \"ArrowDown\": {\n if (!It.moveVert(!1)) return;\n break;\n }\n case \"ArrowLeft\": {\n It.moveHoriz(!0);\n break;\n }\n case \"ArrowRight\": {\n It.moveHoriz(!1);\n break;\n }\n // CLOSE\n case \"Backspace\": {\n if (n) {\n Ct.zenClose();\n break;\n }\n const s = kn(e) ?? kn(e, !0);\n It.focus(s == e ? null : s), e == null || e.onRemoveFromDeck();\n break;\n }\n // DETACH\n case \"KeyD\": {\n if (n) {\n Ct.zenClose();\n break;\n }\n !e.state.parent && e.state.linked ? e.state.group.detach(e.state.linked) : e.state.group.detach(e);\n break;\n }\n // FINDER\n case \"KeyF\": {\n const s = to(e).querySelector(\".jack-cmp-txt-finder input\");\n if (!s) return;\n s == null || s.focus();\n break;\n }\n // NUMBER SHORTCUTS\n default: {\n const s = parseInt(t.code.replace(t.code.startsWith(\"Digit\") ? \"Digit\" : \"Numpad\", \"\"));\n if (isNaN(s)) return;\n const c = to(e).querySelector(`.jack-focus-${s}`);\n if (!c) return;\n c.focus(), c.click();\n break;\n }\n }\n t.preventDefault();\n }\n }\n }), document.addEventListener(\"keyup\", (t) => {\n t.altKey || It.setShow(!1), It.state.shiftKey = t.shiftKey, It.state.altKey = t.altKey, It.state.ctrlKey = t.ctrlKey;\n });\n}\nconst ki = {\n state: {\n /** la CARD che attualmente ha il fuoco */\n view: null,\n /** il focus è visibile */\n show: !1,\n /** posizione del componente con fuoco */\n position: -1,\n /** NON USATO */\n shortcuts: [],\n shiftKey: !1,\n altKey: !1,\n ctrlKey: !1\n },\n getters: {},\n actions: {\n focus: (t, e) => {\n e.setView(t), t && e.setPosition(Po(t));\n },\n exeShortcut: (t, e) => {\n var o;\n const n = ((o = e.state.shortcuts) == null ? void 0 : o.filter((r) => r.code == t.code)) ?? [];\n n.length != 0 && n.forEach((r) => r.action());\n },\n moveVert(t, e) {\n if (e.state.position == -1)\n return e.setPosition(Po(e.state.view)), !0;\n let n = e.state.position + (t ? -1 : 1);\n return Si(e.state.view, n) ? (e.setPosition(n), !0) : !1;\n },\n moveHoriz(t, e) {\n const n = e.state.view;\n if (n && Ct.state.zenCard == n) return;\n const o = kn(n, t);\n e.focus(o);\n }\n },\n mutators: {\n setView: (t) => ({ view: t }),\n setShow: (t) => ({ show: t }),\n setPosition: (t) => ({ position: t }),\n setShortcuts: (t) => ({ shortcuts: t })\n }\n}, It = On(ki);\nIi();\nconst Ti = \"_root_l3zwm_1\", $i = \"_select_l3zwm_33\", Un = {\n root: Ti,\n select: $i\n}, $t = ({\n tabIndex: t = 0,\n onClick: e,\n select: n,\n disabled: o,\n children: r,\n effect: s,\n className: c = \"\",\n style: l\n}) => {\n const [a, u] = lt(!1), d = (S) => {\n !o && (S.code === \"Space\" || S.code == \"Enter\") && (e == null || e(S));\n }, p = a || n ? `${Un.select} jack-cmp-select` : \"\", h = o ? `${Un.disabled} jack-cmp-disabled` : \"\", g = `jack-cmp jack-cmp-button ${Un.root} ${p} ${h} ${c}`;\n return /* @__PURE__ */ i.jsx(\n \"div\",\n {\n style: l,\n className: g,\n tabIndex: t,\n onClick: e,\n onMouseEnter: s ? () => u(!0) : null,\n onMouseLeave: s ? () => u(!1) : null,\n onKeyDown: d,\n children: r\n }\n );\n}, Ri = \"_root_15jdp_1\", Ei = \"_disabled_15jdp_35\", Oi = \"_selected_15jdp_45\", qn = {\n root: Ri,\n disabled: Ei,\n selected: Oi\n}, eo = ({\n select: t,\n children: e,\n tabIndex: n = 0,\n className: o = \"\",\n style: r,\n disabled: s,\n onClick: c\n}) => {\n const [l, a] = lt(!1), u = () => a(!0), d = () => a(!1), p = (I) => {\n s || c == null || c(I, t);\n }, h = (I) => {\n !s && (I.code === \"Space\" || I.code == \"Enter\") && (c == null || c(I, t));\n }, g = l || t ? `${qn.selected} jack-cmp-select` : \"\", S = s ? `${qn.disabled} jack-cmp-disabled` : \"\", C = `jack-cmp jack-cmp-button ${qn.root} ${g} ${S} ${o}`;\n return /* @__PURE__ */ i.jsx(\n \"div\",\n {\n style: r,\n className: C,\n tabIndex: n,\n onClick: p,\n onMouseEnter: u,\n onMouseLeave: d,\n onKeyDown: h,\n children: e\n }\n );\n}, Li = \"_root_g2jy8_1\", Ni = \"_text_g2jy8_13\", zo = {\n root: Li,\n text: Ni\n};\nclass Mi extends Ts {\n constructor() {\n super(...arguments);\n Oo(this, \"state\", {\n hasError: !1,\n error: null\n });\n }\n handleClickReload(n) {\n this.setState({ hasError: !1 });\n }\n static getDerivedStateFromError(n) {\n return { hasError: !0 };\n }\n componentDidCatch(n, o) {\n this.setState({ error: n });\n }\n render() {\n return this.state.hasError ? /* @__PURE__ */ i.jsxs(\"div\", { className: zo.root, children: [\n this.state.error ? /* @__PURE__ */ i.jsxs(i.Fragment, { children: [\n /* @__PURE__ */ i.jsx(\"div\", { className: \"jack-title\", children: this.state.error.message }),\n /* @__PURE__ */ i.jsx(\"div\", { className: zo.text, children: this.state.error.stack })\n ] }) : /* @__PURE__ */ i.jsx(\"div\", { children: \" ERRORE SCONOSCIUTO! \" }),\n /* @__PURE__ */ i.jsx(\n eo,\n {\n onClick: this.handleClickReload,\n children: \"RESET\"\n }\n )\n ] }) : this.props.children;\n }\n}\nconst Di = \"_root_1vuq1_1\", Ai = \"_iconized_1vuq1_33\", Hi = \"_linked_1vuq1_41\", Pi = \"_drag_1vuq1_51\", zi = \"_focus_1vuq1_63\", Bi = \"_ctrl_1vuq1_81\", Fi = \"_actions_1vuq1_95\", Wi = \"_children_1vuq1_139\", Vi = \"_disabled_1vuq1_157\", Gi = \"_btt_detach_1vuq1_169\", Ui = \"_dialog_1vuq1_217\", Xt = {\n root: Di,\n iconized: Ai,\n linked: Hi,\n drag: Pi,\n focus: zi,\n ctrl: Bi,\n actions: Fi,\n children: Wi,\n disabled: Vi,\n btt_detach: Gi,\n dialog: Ui\n}, qi = (t) => /* @__PURE__ */ i.jsx(\n \"svg\",\n {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: \"24\",\n height: \"24\",\n viewBox: \"0 0 24 24\",\n fill: \"currentColor\",\n ...t,\n children: /* @__PURE__ */ i.jsx(\"path\", { d: \"M18 13V11H22V13H18ZM19.2 20L16 17.6L17.2 16L20.4 18.4L19.2 20ZM17.2 8L16 6.4L19.2 4L20.4 5.6L17.2 8ZM5 19V15H4C3.45 15 2.97917 14.8042 2.5875 14.4125C2.19583 14.0208 2 13.55 2 13V11C2 10.45 2.19583 9.97917 2.5875 9.5875C2.97917 9.19583 3.45 9 4 9H8L13 6V18L8 15H7V19H5ZM11 14.45V9.55L8.55 11H4V13H8.55L11 14.45ZM14 15.35V8.65C14.45 9.05 14.8125 9.5375 15.0875 10.1125C15.3625 10.6875 15.5 11.3167 15.5 12C15.5 12.6833 15.3625 13.3125 15.0875 13.8875C14.8125 14.4625 14.45 14.95 14 15.35Z\" })\n }\n), yr = (t) => /* @__PURE__ */ i.jsx(\n \"svg\",\n {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: \"24\",\n height: \"24\",\n viewBox: \"0 0 24 24\",\n fill: \"currentColor\",\n ...t,\n children: /* @__PURE__ */ i.jsx(\"path\", { d: \"M6 22V17.75C5.35 17.4667 4.77917 17.0875 4.2875 16.6125C3.79583 16.1375 3.37917 15.6 3.0375 15C2.69583 14.4 2.4375 13.7583 2.2625 13.075C2.0875 12.3917 2 11.7 2 11C2 8.36667 2.93333 6.20833 4.8 4.525C6.66667 2.84167 9.06667 2 12 2C14.9333 2 17.3333 2.84167 19.2 4.525C21.0667 6.20833 22 8.36667 22 11C22 11.7 21.9125 12.3917 21.7375 13.075C21.5625 13.7583 21.3042 14.4 20.9625 15C20.6208 15.6 20.2042 16.1375 19.7125 16.6125C19.2208 17.0875 18.65 17.4667 18 17.75V22H6ZM8 20H9V22H11V20H13V22H15V20H16V16.45C16.6333 16.3 17.1958 16.05 17.6875 15.7C18.1792 15.35 18.5958 14.9333 18.9375 14.45C19.2792 13.9667 19.5417 13.4333 19.725 12.85C19.9083 12.2667 20 11.65 20 11C20 8.91667 19.2625 7.22917 17.7875 5.9375C16.3125 4.64583 14.3833 4 12 4C9.61667 4 7.6875 4.64583 6.2125 5.9375C4.7375 7.22917 4 8.91667 4 11C4 11.65 4.09167 12.2667 4.275 12.85C4.45833 13.4333 4.72083 13.9667 5.0625 14.45C5.40417 14.9333 5.825 15.35 6.325 15.7C6.825 16.05 7.38333 16.3 8 16.45V20ZM10.5 15.75H13.5L12 12.75L10.5 15.75ZM8.5 13C9.05 13 9.52083 12.8042 9.9125 12.4125C10.3042 12.0208 10.5 11.55 10.5 11C10.5 10.45 10.3042 9.97917 9.9125 9.5875C9.52083 9.19583 9.05 9 8.5 9C7.95 9 7.47917 9.19583 7.0875 9.5875C6.69583 9.97917 6.5 10.45 6.5 11C6.5 11.55 6.69583 12.0208 7.0875 12.4125C7.47917 12.8042 7.95 13 8.5 13ZM15.5 13C16.05 13 16.5208 12.8042 16.9125 12.4125C17.3042 12.0208 17.5 11.55 17.5 11C17.5 10.45 17.3042 9.97917 16.9125 9.5875C16.5208 9.19583 16.05 9 15.5 9C14.95 9 14.4792 9.19583 14.0875 9.5875C13.6958 9.97917 13.5 10.45 13.5 11C13.5 11.55 13.6958 12.0208 14.0875 12.4125C14.4792 12.8042 14.95 13 15.5 13ZM8 20V16.45C7.38333 16.3 6.825 16.05 6.325 15.7C5.825 15.35 5.40417 14.9333 5.0625 14.45C4.72083 13.9667 4.45833 13.4333 4.275 12.85C4.09167 12.2667 4 11.65 4 11C4 8.91667 4.7375 7.22917 6.2125 5.9375C7.6875 4.64583 9.61667 4 12 4C14.3833 4 16.3125 4.64583 17.7875 5.9375C19.2625 7.22917 20 8.91667 20 11C20 11.65 19.9083 12.2667 19.725 12.85C19.5417 13.4333 19.2792 13.9667 18.9375 14.45C18.5958 14.9333 18.1792 15.35 17.6875 15.7C17.1958 16.05 16.6333 16.3 16 16.45V20H8Z\" })\n }\n), Ki = (t) => /* @__PURE__ */ i.jsx(\n \"svg\",\n {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: \"24\",\n height: \"24\",\n viewBox: \"0 0 24 24\",\n fill: \"currentColor\",\n ...t,\n children: /* @__PURE__ */ i.jsx(\"path\", { d: \"M18 21H7V8L14 1L15.25 2.25C15.3667 2.36667 15.4625 2.525 15.5375 2.725C15.6125 2.925 15.65 3.11667 15.65 3.3V3.65L14.55 8H21C21.5333 8 22 8.2 22.4 8.6C22.8 9 23 9.46667 23 10V12C23 12.1167 22.9833 12.2417 22.95 12.375C22.9167 12.5083 22.8833 12.6333 22.85 12.75L19.85 19.8C19.7 20.1333 19.45 20.4167 19.1 20.65C18.75 20.8833 18.3833 21 18 21ZM9 19H18L21 12V10H12L13.35 4.5L9 8.85V19ZM7 8V10H4V19H7V21H2V8H7Z\" })\n }\n), Yi = (t) => /* @__PURE__ */ i.jsx(\n \"svg\",\n {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: \"24\",\n height: \"24\",\n viewBox: \"0 0 24 24\",\n fill: \"currentColor\",\n ...t,\n children: /* @__PURE__ */ i.jsx(\"path\", { d: \"M1 21L12 2L23 21H1ZM12 18C12.2833 18 12.5208 17.9042 12.7125 17.7125C12.9042 17.5208 13 17.2833 13 17C13 16.7167 12.9042 16.4792 12.7125 16.2875C12.5208 16.0958 12.2833 16 12 16C11.7167 16 11.4792 16.0958 11.2875 16.2875C11.0958 16.4792 11 16.7167 11 17C11 17.2833 11.0958 17.5208 11.2875 17.7125C11.4792 17.9042 11.7167 18 12 18ZM11 15H13V10H11V15Z\" })\n }\n), Zi = \"_root_1cieq_5\", Xi = \"_box_1cieq_23\", Ji = \"_header_1cieq_53\", Qi = \"_title_1cieq_69\", tc = \"_icon_1cieq_77\", ec = \"_body_1cieq_89\", nc = \"_info_1cieq_105\", oc = \"_success_1cieq_109\", rc = \"_warn_1cieq_113\", sc = \"_error_1cieq_117\", ic = \"_root_icon_1cieq_131\", cc = \"_box_icon_1cieq_145\", lc = \"_hide_1cieq_183\", ac = \"_open_1cieq_193\", uc = \"_close_1cieq_207\", dc = \"_linked_1cieq_223\", At = {\n root: Zi,\n box: Xi,\n header: Ji,\n title: Qi,\n icon: tc,\n body: ec,\n info: nc,\n success: oc,\n warn: rc,\n error: sc,\n root_icon: ic,\n box_icon: cc,\n hide: lc,\n open: ac,\n close: uc,\n linked: dc\n}, fc = ({\n view: t\n}) => {\n const e = Nt(t), { open: n, title: o, body: r, type: s, timeout: c } = e.snackbar, [l, a] = lt(!0);\n Bt(() => {\n let g = null;\n return n && (a(!1), c && (g = setTimeout(u, c))), () => clearTimeout(g);\n }, [n]);\n const u = () => {\n t.setSnackbar({ ...t.state.snackbar, open: !1 }), setTimeout(() => a(!0), 300);\n }, d = Ut(() => ({\n [Xe.INFO]: /* @__PURE__ */ i.jsx(qi, { className: At.icon }),\n [Xe.SUCCESS]: /* @__PURE__ */ i.jsx(Ki, { className: At.icon }),\n [Xe.WARNING]: /* @__PURE__ */ i.jsx(Yi, { className: At.icon }),\n [Xe.ERROR]: /* @__PURE__ */ i.jsx(yr, { className: At.icon })\n })[s], [s]), p = !t.state.parent, h = `${e.size == Tt.COMPACT ? At.box_icon : At.box} ${p ? \"\" : At.linked} ${n ? At.open : At.close} ${At[s]}`;\n return e.size == Tt.COMPACT ? /* @__PURE__ */ i.jsx(lo, { content: o, className: At.root_icon, children: /* @__PURE__ */ i.jsx(\n \"div\",\n {\n className: h,\n onClick: u,\n children: d\n }\n ) }) : /* @__PURE__ */ i.jsx(\"div\", { className: At.root, children: /* @__PURE__ */ i.jsx(\"div\", { className: h, children: !l && /* @__PURE__ */ i.jsxs(i.Fragment, { children: [\n /* @__PURE__ */ i.jsxs(\"div\", { className: At.header, children: [\n d,\n /* @__PURE__ */ i.jsx(\"div\", { className: At.title, children: o }),\n /* @__PURE__ */ i.jsx(\"div\", { style: { flex: 1 } }),\n /* @__PURE__ */ i.jsx($t, { onClick: u, children: /* @__PURE__ */ i.jsx(ne, {}) })\n ] }),\n /* @__PURE__ */ i.jsx(\"div\", { className: At.body, children: r })\n ] }) }) });\n}, Du = ({\n store: t,\n className: e,\n style: n,\n styleBody: o,\n headerRender: r,\n actionsRender: s,\n iconizedRender: c,\n children: l\n}) => {\n Nt(t), Nt(It);\n const a = () => t.onRemoveFromDeck(), u = () => It.setView(t), d = Ct.state.zenCard == t, p = d || !t.state.parent, h = !d && It.state.view == t, g = It.state.show, S = t.state.size == Tt.COMPACT, C = t.state.docAnim == ut.DRAGGING, I = `dialog_${t.state.uuid}`, x = `${h ? `${Xt.focus} jack-framework-focus` : \"\"} ${g ? `${Xt.ctrl} jack-framework-focus-ctrl` : \"\"}`, m = `${Xt.root} ${p ? \"\" : Xt.linked} ${C ? Xt.drag : \"\"} ${S ? Xt.iconized : \"\"} ${x} ${e} jack-framework`, y = `${Xt.children} ${t.state.disabled ? Xt.disabled : \"\"}`;\n return /* @__PURE__ */ i.jsxs(\n \"div\",\n {\n className: m,\n style: n,\n tabIndex: 0,\n onClick: u,\n children: [\n r,\n /* @__PURE__ */ i.jsx(Mi, { children: S ? /* @__PURE__ */ i.jsxs(i.Fragment, { children: [\n /* @__PURE__ */ i.jsx(\n \"div\",\n {\n className: `${Xt.actions} ${Xt.hovercontainer} jack-framework-actions`,\n children: /* @__PURE__ */ i.jsx(\n $t,\n {\n onClick: a,\n children: /* @__PURE__ */ i.jsx(ne, {})\n }\n )\n }\n ),\n c\n ] }) : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [\n !!s && /* @__PURE__ */ i.jsx(\n \"div\",\n {\n className: `${Xt.actions} jack-framework-actions`,\n children: s\n }\n ),\n /* @__PURE__ */ i.jsx(\n \"div\",\n {\n className: `${y} jack-framework-body`,\n style: o,\n children: l\n }\n )\n ] }) }),\n /* @__PURE__ */ i.jsx(\n \"div\",\n {\n className: Xt.dialog,\n id: I\n }\n ),\n /* @__PURE__ */ i.jsx(fc, { view: t })\n ]\n }\n );\n}, hc = (t) => /* @__PURE__ */ i.jsx(\n \"svg\",\n {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: \"14\",\n height: \"14\",\n viewBox: \"0 0 14 14\",\n fill: \"none\",\n stroke: \"currentColor\",\n ...t,\n children: /* @__PURE__ */ i.jsx(\"path\", { d: \"M3 3V11M5 7H11M11 7L7 3M11 7L7 11\", strokeWidth: \"2\" })\n }\n), mc = (t) => /* @__PURE__ */ i.jsx(\n \"svg\",\n {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: \"14\",\n height: \"14\",\n viewBox: \"0 0 14 14\",\n fill: \"none\",\n stroke: \"currentColor\",\n ...t,\n children: /* @__PURE__ */ i.jsx(\"path\", { d: \"M11 7H5M5 7L9 3M5 7L9 11\", strokeWidth: \"2\" })\n }\n), gc = (t) => /* @__PURE__ */ i.jsx(\n \"svg\",\n {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: \"14\",\n height: \"14\",\n viewBox: \"0 0 14 14\",\n fill: \"none\",\n stroke: \"currentColor\",\n ...t,\n children: /* @__PURE__ */ i.jsx(\"path\", { d: \"M3 7H9M9 7L5 3M9 7L5 11\", strokeWidth: \"2\" })\n }\n), pc = \"_root_1dejk_1\", xc = \"_icon_1dejk_13\", vc = \"_compact_1dejk_25\", wc = \"_titleBox_1dejk_33\", _c = \"_title_1dejk_33\", yc = \"_draggable_1dejk_59\", Sc = \"_subtitle_1dejk_67\", Cc = \"_buttons_1dejk_97\", oe = {\n root: pc,\n icon: xc,\n compact: vc,\n titleBox: wc,\n title: _c,\n draggable: yc,\n subtitle: Sc,\n buttons: Cc\n}, Au = ({\n icon: t,\n store: e,\n extraRender: n\n}) => {\n var G;\n const o = e.state.group;\n Nt(o);\n const [r, s] = lt(!1), c = () => {\n S ? Ct.zenClose() : e.onRemoveFromDeck();\n }, l = (U) => {\n U.preventDefault();\n const N = window.getComputedStyle(U.target);\n Ht.setPosition({ x: U.clientX, y: U.clientY }), Ht.setColor({\n bg: N.getPropertyValue(\"--dialog-bg\"),\n fg: N.getPropertyValue(\"--dialog-fg\")\n }), Ht.startDrag({ source: { view: e } });\n }, a = () => o.detach(e), u = () => {\n e.setSize(\n e.state.size == Tt.NORMAL ? Tt.COMPACT : Tt.NORMAL\n );\n }, d = () => {\n }, p = () => {\n en(e, (U) => U.setSize(Tt.COMPACT));\n }, h = () => {\n en(e, (U) => U.setSize(Tt.NORMAL));\n }, g = () => {\n S || Ct.zenOpen(e);\n }, S = Ct.state.zenCard == e, [C, I] = Ut(() => [\n e.getTitle(),\n e.getSubTitle()\n ], [e.state]), x = !S && e.state.draggable;\n (G = e.state.linked) == null || G.state.draggable;\n const m = S || !e.state.parent, y = !S && e.state.size == Tt.COMPACT, k = !S && !uo(e, (U) => U.state.size != Tt.COMPACT), _ = !S && !m && r, v = !e.state.unclosable, w = !S && k && !m && r, b = !S && !k && !m && r, T = e.state.size == Tt.COMPACT ? oe.compact : \"\", M = `${oe.root} ${T}`, D = `${oe.titleBox} ${T}`;\n return /* @__PURE__ */ i.jsxs(\n \"div\",\n {\n className: M,\n draggable: x,\n onDragStart: S ? void 0 : l,\n onMouseEnter: () => s(!0),\n onMouseLeave: () => s(!1),\n children: [\n /* @__PURE__ */ i.jsx(\n \"div\",\n {\n onClick: S ? void 0 : u,\n className: oe.icon,\n children: /* @__PURE__ */ i.jsx(\n lo,\n {\n disabled: !y,\n content: /* @__PURE__ */ i.jsxs(\"div\", { children: [\n /* @__PURE__ */ i.jsx(\"div\", { className: oe.title, children: C }),\n /* @__PURE__ */ i.jsx(\"div\", { className: oe.subtitle, children: I })\n ] }),\n children: t\n }\n )\n }\n ),\n !y && /* @__PURE__ */ i.jsxs(i.Fragment, { children: [\n /* @__PURE__ */ i.jsxs(\n \"div\",\n {\n className: D,\n onDoubleClick: g,\n children: [\n /* @__PURE__ */ i.jsx(\n \"div\",\n {\n className: `${oe.title} ${oe.draggable} jack-title`,\n onClick: S ? void 0 : d,\n children: C\n }\n ),\n I && /* @__PURE__ */ i.jsx(\"div\", { className: oe.subtitle, children: I })\n ]\n }\n ),\n /* @__PURE__ */ i.jsx(\"div\", { className: oe.buttons, children: /* @__PURE__ */ i.jsxs(\"div\", { style: { display: \"flex\" }, children: [\n w && /* @__PURE__ */ i.jsx(\n $t,\n {\n onClick: h,\n children: /* @__PURE__ */ i.jsx(gc, {})\n }\n ),\n b && /* @__PURE__ */ i.jsx(\n $t,\n {\n onClick: p,\n children: /* @__PURE__ */ i.jsx(mc, {})\n }\n ),\n _ && /* @__PURE__ */ i.jsx(\n $t,\n {\n onClick: a,\n children: /* @__PURE__ */ i.jsx(hc, {})\n }\n ),\n r && n,\n v && /* @__PURE__ */ i.jsx(\n $t,\n {\n onClick: c,\n children: /* @__PURE__ */ i.jsx(ne, {})\n }\n )\n ] }) })\n ] })\n ]\n }\n );\n}, bc = \"_root_14bu3_1\", jc = \"_enter_14bu3_17\", Bo = {\n root: bc,\n enter: jc\n}, fo = ({\n className: t,\n style: e,\n preRender: n,\n enterRender: o,\n readOnly: r,\n children: s\n}) => /* @__PURE__ */ i.jsxs(\n \"div\",\n {\n className: `jack-hover-container ${Bo.root} ${t}`,\n style: e,\n children: [\n n,\n s,\n !r && /* @__PURE__ */ i.jsx(\"div\", { className: `jack-hover-hide ${Bo.enter}`, children: o })\n ]\n }\n), Ic = \"_root_1dy43_1\", kc = \"_cliccable_1dy43_31\", Tc = \"_selected_1dy43_39\", $c = \"_readonly_1dy43_47\", wn = {\n root: Ic,\n cliccable: kc,\n selected: Tc,\n readonly: $c\n}, ho = ({\n style: t,\n selected: e,\n readOnly: n,\n autoFocus: o,\n preRender: r,\n enterRender: s,\n children: c,\n onClick: l\n}) => {\n const a = l ? wn.cliccable : \"\", u = e ? wn.selected : \"\", d = n ? wn.readonly : \"\", p = `jack-hover-container ${wn.root} ${a} ${u} ${d}`;\n return /* @__PURE__ */ i.jsxs(\n \"div\",\n {\n className: p,\n autoFocus: o,\n style: t,\n onClick: l,\n children: [\n r,\n c,\n /* @__PURE__ */ i.jsx(\"div\", { className: \"jack-hover-hide\", style: { position: \"absolute\", top: 4, right: 4 }, children: s })\n ]\n }\n );\n}, Sr = (t) => /* @__PURE__ */ i.jsx(\n \"svg\",\n {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: \"14\",\n height: \"14\",\n viewBox: \"0 0 14 14\",\n fill: \"none\",\n stroke: \"currentColor\",\n ...t,\n children: /* @__PURE__ */ i.jsx(\"path\", { d: \"M11 5L7 9L3 5\", strokeWidth: \"2\" })\n }\n), Rc = \"_root_sq73n_1\", Ec = \"_scroll_sq73n_15\", Oc = \"_root_title_sq73n_27\", Lc = \"_title_sq73n_37\", Nc = \"_disabled_sq73n_49\", Mc = \"_title_text_sq73n_59\", Dc = \"_title_icon_sq73n_69\", Ac = \"_title_accordion_sq73n_79\", pe = {\n root: Rc,\n scroll: Ec,\n root_title: Oc,\n title: Lc,\n disabled: Nc,\n title_text: Mc,\n title_icon: Dc,\n title_accordion: Ac\n}, Cr = ({\n open: t,\n children: e,\n height: n,\n style: o,\n className: r = \"\"\n}) => {\n const s = Te(null);\n Lo(() => {\n s.current.style.height = t ? \"\" : \"0px\";\n }, []), Lo(() => {\n var l, a;\n if (t) {\n if (s.current.style.height == \"\") return;\n s.current.style.height = `${(l = s.current) == null ? void 0 : l.scrollHeight}px`, setTimeout(() => s.current.style.height = \"\", 300);\n } else {\n if (s.current.style.height == \"0px\") return;\n s.current.style.height == \"\" && (s.current.style.height = `${(a = s.current) == null ? void 0 : a.scrollHeight}px`, requestAnimationFrame(() => {\n s.current.style.height = \"0px\";\n }));\n }\n }, [t]);\n const c = `${pe.root} ${n == null ? \"\" : pe.scroll} ${r}`;\n return /* @__PURE__ */ i.jsx(\n \"div\",\n {\n ref: s,\n style: o,\n className: c,\n children: e\n }\n );\n}, Hc = \"_root_13t12_1\", Pc = \"_label_13t12_11\", zc = \"_divider_13t12_21\", Kn = {\n root: Hc,\n label: Pc,\n divider: zc\n}, Bc = \"_root_183u3_1\", Fc = {\n root: Bc\n}, Wc = ({\n value: t,\n placeholder: e,\n autoFocus: n,\n tabIndex: o = 0,\n readOnly: r,\n className: s,\n style: c,\n focus: l,\n multiline: a,\n rows: u = 1,\n type: d,\n onChange: p,\n onFocus: h,\n onBlur: g,\n onKeyDown: S,\n onKeyEnter: C\n}, I) => {\n const x = Te(null), m = () => {\n if (!a || !x.current) return;\n x.current.style.height = \"auto\";\n const b = x.current.scrollHeight;\n x.current.style.height = `${b - 7}px`;\n };\n Bt(() => {\n var b;\n l && ((b = x.current) == null || b.select());\n }, [l]), Bt(() => {\n var b;\n if (!(!a || !x.current))\n return setTimeout(m, 400), (b = x.current) == null || b.addEventListener(\"input\", m), () => {\n var T;\n return (T = x.current) == null ? void 0 : T.removeEventListener(\"input\", m);\n };\n }, [a]), Bt(() => {\n m();\n }, [r]), $s(I, () => x.current, [x.current]);\n const y = (b) => p == null ? void 0 : p(b.target.value), k = (b) => {\n b.target.select(), h == null || h(b);\n }, _ = (b) => {\n b.key == \"Enter\" && (C == null || C(b)), S == null || S(b);\n };\n if (r)\n return d == \"password\" && (t = \"***\"), /* @__PURE__ */ i.jsx(\n \"div\",\n {\n className: `jack-lbl-readonly ${s ?? \"\"}`,\n style: c,\n children: t ?? \"\"\n }\n );\n const v = a ? \"textarea\" : \"input\", w = `jack-cmp jack-cmp-text-input ${Fc.root} ${s ?? \"\"}`;\n return /* @__PURE__ */ i.jsx(\n v,\n {\n ref: x,\n className: w,\n style: c,\n placeholder: e,\n autoFocus: n,\n tabIndex: o,\n spellCheck: \"false\",\n autoComplete: \"_off\",\n value: t ?? \"\",\n onChange: y,\n onFocus: k,\n onBlur: g,\n onKeyDown: _,\n rows: u,\n type: d\n }\n );\n}, He = mr(Wc), Vc = \"_root_1ciyd_1\", Gc = \"_cliccable_1ciyd_19\", Uc = \"_select_1ciyd_27\", Yn = {\n root: Vc,\n cliccable: Gc,\n select: Uc\n};\nfunction no({\n children: t,\n style: e,\n isSelect: n,\n readOnly: o = !1,\n onClick: r\n}) {\n const s = o ? \"\" : Yn.cliccable, c = n ? Yn.select : \"\", l = `${Yn.root} ${s} ${c}`;\n return /* @__PURE__ */ i.jsx(\n \"div\",\n {\n className: l,\n style: e,\n onClick: o ? null : r,\n children: t\n }\n );\n}\nfunction ln({\n items: t,\n RenderRow: e = ({ item: u }) => /* @__PURE__ */ i.jsx(\"div\", { className: \"jack-list-row\", children: (u == null ? void 0 : u.toString()) ?? \"\" }),\n RenderRow2: n,\n readOnly: o,\n height: r,\n select: s,\n onSelect: c,\n style: l = {},\n className: a\n}) {\n const u = (p, h) => {\n c == null || c(p, h);\n };\n if (!t || t.length == 0) return /* @__PURE__ */ i.jsx(\"div\", { className: \"jack-lbl-empty\", children: \"EMPTY LIST\" });\n const d = (p) => typeof s == \"number\" && s == p;\n return /* @__PURE__ */ i.jsx(\n \"div\",\n {\n className: a,\n style: { ...qc(r), ...l },\n children: t.map(\n (p, h) => {\n if (n) {\n const g = n(p, h);\n return g ? /* @__PURE__ */ i.jsx(\n no,\n {\n onClick: (S) => u(h, S),\n readOnly: o,\n isSelect: d(h),\n children: g\n },\n h\n ) : null;\n }\n return /* @__PURE__ */ i.jsx(\n no,\n {\n onClick: (g) => u(h, g),\n readOnly: o,\n isSelect: d(h),\n children: /* @__PURE__ */ i.jsx(e, { item: p, isSelect: d(h) })\n },\n h\n );\n }\n )\n }\n );\n}\nconst qc = (t) => ({\n ...t && {\n height: t,\n overflowY: \"auto\"\n }\n}), Hu = B.memo(\n ln,\n (t, e) => t.items == e.items && t.readOnly == e.readOnly && t.select == e.select && t.RenderRow2 == e.RenderRow2\n);\nfunction Pu({\n value: t,\n items: e,\n RenderRow: n,\n readOnly: o = !1,\n height: r,\n style: s,\n className: c,\n onSelect: l\n}) {\n const [a, u] = lt(!1), [d, p] = lt(null);\n Bt(() => {\n p(null);\n }, [a]);\n const h = () => {\n u(!a);\n }, g = (y) => {\n l == null || l(I[y]), u(!1);\n }, S = (y) => {\n p(y);\n }, C = (y) => {\n switch (y.key) {\n case \"Escape\":\n u(!1);\n break;\n case \"Enter\":\n I.length == 1 && (l == null || l(I[0])), u(!1);\n break;\n }\n }, I = Ut(() => d ? e.filter((y) => y.includes(d)) : e, [e, d]), x = (e == null ? void 0 : e.findIndex((y) => y == t)) ?? -1, m = (t == null ? void 0 : t.toString()) ?? \"--\";\n return o ? /* @__PURE__ */ i.jsx(\n \"div\",\n {\n className: `${Kn.label} ${c}`,\n style: s,\n children: m\n }\n ) : /* @__PURE__ */ i.jsxs(\"div\", { className: `${Kn.root} ${c}`, style: s, children: [\n a ? /* @__PURE__ */ i.jsx(\n He,\n {\n autoFocus: !0,\n readOnly: o,\n value: d,\n onChange: S,\n onKeyDown: C\n }\n ) : /* @__PURE__ */ i.jsx(\n ho,\n {\n readOnly: o,\n onClick: h,\n enterRender: /* @__PURE__ */ i.jsx(Sr, { style: { opacity: 0.5 } }),\n children: m\n }\n ),\n /* @__PURE__ */ i.jsx(\n Cr,\n {\n height: r,\n open: a,\n children: /* @__PURE__ */ i.jsx(\n ln,\n {\n style: { flex: 1, marginTop: 5 },\n select: x,\n items: I,\n RenderRow: n,\n readOnly: o,\n onSelect: g\n }\n )\n }\n ),\n a && /* @__PURE__ */ i.jsx(\"div\", { className: Kn.divider })\n ] });\n}\nconst Kc = (t) => /* @__PURE__ */ i.jsxs(\n \"svg\",\n {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: \"14\",\n height: \"14\",\n viewBox: \"0 0 14 14\",\n fill: \"none\",\n stroke: \"currentColor\",\n ...t,\n children: [\n /* @__PURE__ */ i.jsx(\"rect\", { x: \"5\", y: \"5\", width: \"6\", height: \"6\", strokeWidth: \"2\" }),\n /* @__PURE__ */ i.jsx(\"path\", { d: \"M2.5 9V2.5H9\" })\n ]\n }\n), Yc = \"_absolute_1ky3m_1\", Zc = {\n absolute: Yc\n}, br = ({\n value: t,\n absolute: e,\n label: n = \"COPY\",\n className: o = \"\",\n style: r\n}) => {\n const s = (c) => {\n c.preventDefault(), c.stopPropagation();\n let l = typeof t == \"function\" ? t() : t;\n Xc(l);\n };\n return /* @__PURE__ */ i.jsx(\n lo,\n {\n className: `${e ? `${Zc.absolute} jack-hover-hide` : \"\"} ${o}`,\n style: r,\n content: n,\n children: /* @__PURE__ */ i.jsx(\n $t,\n {\n onClick: s,\n children: /* @__PURE__ */ i.jsx(Kc, {})\n }\n )\n }\n );\n};\nfunction Xc(t) {\n const e = document.createElement(\"textarea\");\n e.value = t, document.body.appendChild(e), e.select(), document.execCommand(\"copy\"), document.body.removeChild(e);\n}\nconst jr = (t) => /* @__PURE__ */ i.jsx(\n \"svg\",\n {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: \"14\",\n height: \"14\",\n viewBox: \"0 0 14 14\",\n fill: \"none\",\n stroke: \"currentColor\",\n ...t,\n children: /* @__PURE__ */ i.jsx(\"path\", { d: \"M3 10H11M3 7H8M3 4H5\", strokeWidth: \"2\" })\n }\n), Ir = (t) => /* @__PURE__ */ i.jsx(\n \"svg\",\n {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: \"14\",\n height: \"14\",\n viewBox: \"0 0 14 14\",\n fill: \"none\",\n stroke: \"currentColor\",\n ...t,\n children: /* @__PURE__ */ i.jsx(\"path\", { d: \"M3 4H11M3 7H8M3 10H5\", strokeWidth: \"2\" })\n }\n), Jc = \"_row_16btd_1\", Qc = \"_virtuoso_16btd_23\", tl = \"_cell_16btd_31\", el = \"_cellContainer_16btd_45\", nl = \"_main_16btd_57\", xe = {\n row: Jc,\n virtuoso: Qc,\n cell: tl,\n cellContainer: el,\n main: nl\n};\nvar Et = /* @__PURE__ */ ((t) => (t[t.NOTHING = 0] = \"NOTHING\", t[t.ASC = 1] = \"ASC\", t[t.DESC = 2] = \"DESC\", t))(Et || {});\nconst ol = ({\n props: t,\n order: e,\n orderType: n,\n onOrderChange: o\n}) => {\n const [r, s] = lt(null), c = (l) => {\n let a = 1, u = l;\n l == e && (a = n == 1 ? 2 : n == 2 ? 0 : 1, a == 0 && (u = null)), o(u, a);\n };\n return /* @__PURE__ */ i.jsx(\"thead\", { children: /* @__PURE__ */ i.jsx(\"tr\", { className: xe.row, children: t.map((l, a) => /* @__PURE__ */ i.jsx(\n \"th\",\n {\n className: `${xe.cell} ${l.isMain ? xe.main : \"\"}`,\n onMouseLeave: () => s(null),\n children: /* @__PURE__ */ i.jsxs(\n \"div\",\n {\n className: xe.cellContainer,\n onMouseEnter: () => s(l),\n children: [\n l == r || l == e ? /* @__PURE__ */ i.jsx(\n $t,\n {\n style: { opacity: l == e ? 1 : 0.5 },\n tabIndex: -1,\n onClick: () => c(l),\n children: l != e || n == 1 ? /* @__PURE__ */ i.jsx(jr, {}) : n == 2 ? /* @__PURE__ */ i.jsx(Ir, {}) : /* @__PURE__ */ i.jsx(\"div\", { style: { width: 14, height: 14 } })\n }\n ) : /* @__PURE__ */ i.jsx(\"div\", { style: { width: 18, height: 18 } }),\n /* @__PURE__ */ i.jsx(\"div\", { children: l.label })\n ]\n }\n )\n },\n a\n )) }) });\n}, rl = \"_root_13e0w_1\", sl = \"_row_13e0w_19\", il = \"_focus_13e0w_31\", cl = \"_selected_13e0w_39\", ll = \"_cell_13e0w_49\", al = \"_main_13e0w_61\", be = {\n root: rl,\n row: sl,\n focus: il,\n selected: cl,\n cell: ll,\n main: al\n}, zu = ({\n props: t,\n items: e = [],\n selectId: n,\n singleRow: o,\n onSelectChange: r,\n getId: s = (a) => a.toString(),\n style: c,\n tabIndex: l = 0\n}) => {\n const [a, u] = lt(null), [d, p] = lt(Et.ASC), [h, g] = lt(-1), S = Ut(() => t.find((w) => w.isMain), [t]), C = Ut(() => o ? t : t.filter((w) => !w.isMain), [t, o]), I = Ut(() => !a || d == Et.NOTHING ? e.sort((w, b) => {\n var D, G;\n const T = v(w, S), M = v(b, S);\n return ((G = (D = T == null ? void 0 : T.toString()) == null ? void 0 : D.localeCompare) == null ? void 0 : G.call(D, M == null ? void 0 : M.toString())) ?? 0;\n }) : e.sort((w, b) => {\n const T = a.getValue(w), M = a.getValue(b);\n return d == Et.ASC ? T - M : M - T;\n }), [e, a, d]), x = (w) => {\n r(w), g(I.findIndex((b) => b == w));\n }, m = (w, b) => {\n u(w), p(b);\n }, y = (w) => {\n if (!(w.ctrlKey || w.shiftKey || w.altKey))\n if (w.code === \"ArrowUp\" || w.code === \"ArrowDown\") {\n w.preventDefault();\n let T = (h >= 0 ? h : I.findIndex((G) => s(G) === n)) + (w.code === \"ArrowUp\" ? -1 : 1);\n if (T < 0 || T > I.length - 1) return;\n g(T);\n const M = I[T], D = w.target.querySelector(`#${CSS.escape(s(M))}`);\n D == null || D.scrollIntoView({ behavior: \"smooth\", block: \"center\", inline: \"center\" });\n } else h >= 0 && (w.code === \"Space\" || w.code === \"Enter\") && (w.preventDefault(), r(I[h]));\n }, k = (w) => s(w) == n, _ = t.length;\n function v(w, b) {\n var T, M;\n if (b)\n return ((T = b.getShow) == null ? void 0 : T.call(b, w)) ?? ((M = b.getValue) == null ? void 0 : M.call(b, w));\n }\n return /* @__PURE__ */ i.jsxs(\"table\", { className: be.root, style: c, tabIndex: l, onKeyDown: y, children: [\n /* @__PURE__ */ i.jsx(\n ol,\n {\n props: C,\n order: a,\n orderType: d,\n onOrderChange: m\n }\n ),\n /* @__PURE__ */ i.jsx(\"tbody\", { children: I.map((w, b) => {\n const T = s(w), M = k(w), D = h == b, G = v(w, S), U = M ? `${be.selected} jack-cmp-select` : \"\", N = D ? be.focus : \"\", j = `jack-cmp-tbl-row ${be.row} ${U} ${N} jack-hover-container`, $ = `${be.cell} ${be.main}`;\n return /* @__PURE__ */ i.jsxs(B.Fragment, { children: [\n !!S && !o && /* @__PURE__ */ i.jsxs(\n \"tr\",\n {\n className: j,\n onClick: () => x(w),\n children: [\n /* @__PURE__ */ i.jsx(\n \"td\",\n {\n colSpan: _,\n className: $,\n children: G\n }\n ),\n /* @__PURE__ */ i.jsx(br, { absolute: !0, value: G })\n ]\n }\n ),\n /* @__PURE__ */ i.jsx(\n \"tr\",\n {\n id: T,\n className: j,\n onClick: () => x(w),\n children: C.map((A, L) => !(!o && A.isMain) && /* @__PURE__ */ i.jsx(\n \"td\",\n {\n className: A.isMain ? $ : be.cell,\n children: v(w, A)\n },\n L\n ))\n }\n )\n ] }, T);\n }) })\n ] });\n}, Nn = 0, _e = 1, Pe = 2, kr = 4;\nfunction Tr(t, e) {\n return (n) => t(e(n));\n}\nfunction ul(t, e) {\n return e(t);\n}\nfunction $r(t, e) {\n return (n) => t(e, n);\n}\nfunction Fo(t, e) {\n return () => t(e);\n}\nfunction Mn(t, e) {\n return e(t), t;\n}\nfunction vt(...t) {\n return t;\n}\nfunction dl(t) {\n t();\n}\nfunction Wo(t) {\n return () => t;\n}\nfunction fl(...t) {\n return () => {\n t.map(dl);\n };\n}\nfunction mo(t) {\n return t !== void 0;\n}\nfunction ze() {\n}\nfunction ft(t, e) {\n return t(_e, e);\n}\nfunction Q(t, e) {\n t(Nn, e);\n}\nfunction go(t) {\n t(Pe);\n}\nfunction Lt(t) {\n return t(kr);\n}\nfunction V(t, e) {\n return ft(t, $r(e, Nn));\n}\nfunction ce(t, e) {\n const n = t(_e, (o) => {\n n(), e(o);\n });\n return n;\n}\nfunction it() {\n const t = [];\n return (e, n) => {\n switch (e) {\n case Pe:\n t.splice(0, t.length);\n return;\n case _e:\n return t.push(n), () => {\n const o = t.indexOf(n);\n o > -1 && t.splice(o, 1);\n };\n case Nn:\n t.slice().forEach((o) => {\n o(n);\n });\n return;\n default:\n throw new Error(`unrecognized action ${e}`);\n }\n };\n}\nfunction H(t) {\n let e = t;\n const n = it();\n return (o, r) => {\n switch (o) {\n case _e:\n r(e);\n break;\n case Nn:\n e = r;\n break;\n case kr:\n return e;\n }\n return n(o, r);\n };\n}\nfunction hl(t) {\n let e, n;\n const o = () => e && e();\n return function(r, s) {\n switch (r) {\n case _e:\n return s ? n === s ? void 0 : (o(), n = s, e = ft(t, s), e) : (o(), ze);\n case Pe:\n o(), n = null;\n return;\n default:\n throw new Error(`unrecognized action ${r}`);\n }\n };\n}\nfunction qt(t) {\n return Mn(it(), (e) => V(t, e));\n}\nfunction zt(t, e) {\n return Mn(H(e), (n) => V(t, n));\n}\nfunction ml(...t) {\n return (e) => t.reduceRight(ul, e);\n}\nfunction E(t, ...e) {\n const n = ml(...e);\n return (o, r) => {\n switch (o) {\n case _e:\n return ft(t, n(r));\n case Pe:\n go(t);\n return;\n }\n };\n}\nfunction Rr(t, e) {\n return t === e;\n}\nfunction xt(t = Rr) {\n let e;\n return (n) => (o) => {\n t(e, o) || (e = o, n(o));\n };\n}\nfunction Z(t) {\n return (e) => (n) => {\n t(n) && e(n);\n };\n}\nfunction z(t) {\n return (e) => Tr(e, t);\n}\nfunction se(t) {\n return (e) => () => e(t);\n}\nfunction ie(t, e) {\n return (n) => (o) => n(e = t(e, o));\n}\nfunction Ae(t) {\n return (e) => (n) => {\n t > 0 ? t-- : e(n);\n };\n}\nfunction ve(t) {\n let e = null, n;\n return (o) => (r) => {\n e = r, !n && (n = setTimeout(() => {\n n = void 0, o(e);\n }, t));\n };\n}\nfunction Vo(t) {\n let e, n;\n return (o) => (r) => {\n e = r, n && clearTimeout(n), n = setTimeout(() => {\n o(e);\n }, t);\n };\n}\nfunction nt(...t) {\n const e = new Array(t.length);\n let n = 0, o = null;\n const r = Math.pow(2, t.length) - 1;\n return t.forEach((s, c) => {\n const l = Math.pow(2, c);\n ft(s, (a) => {\n const u = n;\n n = n | l, e[c] = a, u !== r && n === r && o && (o(), o = null);\n });\n }), (s) => (c) => {\n const l = () => s([c].concat(e));\n n === r ? l() : o = l;\n };\n}\nfunction Go(...t) {\n return function(e, n) {\n switch (e) {\n case _e:\n return fl(...t.map((o) => ft(o, n)));\n case Pe:\n return;\n default:\n throw new Error(`unrecognized action ${e}`);\n }\n };\n}\nfunction Y(t, e = Rr) {\n return E(t, xt(e));\n}\nfunction Rt(...t) {\n const e = it(), n = new Array(t.length);\n let o = 0;\n const r = Math.pow(2, t.length) - 1;\n return t.forEach((s, c) => {\n const l = Math.pow(2, c);\n ft(s, (a) => {\n n[c] = a, o = o | l, o === r && Q(e, n);\n });\n }), function(s, c) {\n switch (s) {\n case _e:\n return o === r && c(n), ft(e, c);\n case Pe:\n return go(e);\n default:\n throw new Error(`unrecognized action ${s}`);\n }\n };\n}\nfunction ht(t, e = [], { singleton: n } = { singleton: !0 }) {\n return {\n id: gl(),\n constructor: t,\n dependencies: e,\n singleton: n\n };\n}\nconst gl = () => Symbol();\nfunction pl(t) {\n const e = /* @__PURE__ */ new Map(), n = ({ id: o, constructor: r, dependencies: s, singleton: c }) => {\n if (c && e.has(o))\n return e.get(o);\n const l = r(s.map((a) => n(a)));\n return c && e.set(o, l), l;\n };\n return n(t);\n}\nfunction xl(t, e) {\n const n = {}, o = {};\n let r = 0;\n const s = t.length;\n for (; r < s; )\n o[t[r]] = 1, r += 1;\n for (const c in e)\n o.hasOwnProperty(c) || (n[c] = e[c]);\n return n;\n}\nconst _n = typeof document < \"u\" ? B.useLayoutEffect : B.useEffect;\nfunction Er(t, e, n) {\n const o = Object.keys(e.required || {}), r = Object.keys(e.optional || {}), s = Object.keys(e.methods || {}), c = Object.keys(e.events || {}), l = B.createContext({});\n function a(x, m) {\n x.propsReady && Q(x.propsReady, !1);\n for (const y of o) {\n const k = x[e.required[y]];\n Q(k, m[y]);\n }\n for (const y of r)\n if (y in m) {\n const k = x[e.optional[y]];\n Q(k, m[y]);\n }\n x.propsReady && Q(x.propsReady, !0);\n }\n function u(x) {\n return s.reduce((m, y) => (m[y] = (k) => {\n const _ = x[e.methods[y]];\n Q(_, k);\n }, m), {});\n }\n function d(x) {\n return c.reduce((m, y) => (m[y] = hl(x[e.events[y]]), m), {});\n }\n const p = B.forwardRef((x, m) => {\n const { children: y, ...k } = x, [_] = B.useState(() => Mn(pl(t), (b) => a(b, k))), [v] = B.useState(Fo(d, _));\n _n(() => {\n for (const b of c)\n b in k && ft(v[b], k[b]);\n return () => {\n Object.values(v).map(go);\n };\n }, [k, v, _]), _n(() => {\n a(_, k);\n }), B.useImperativeHandle(m, Wo(u(_)));\n const w = n;\n return /* @__PURE__ */ i.jsx(l.Provider, { value: _, children: n ? /* @__PURE__ */ i.jsx(w, { ...xl([...o, ...r, ...c], k), children: y }) : y });\n }), h = (x) => B.useCallback($r(Q, B.useContext(l)[x]), [x]), g = (x) => {\n const y = B.useContext(l)[x], k = B.useCallback(\n (_) => ft(y, _),\n [y]\n );\n return B.useSyncExternalStore(\n k,\n () => Lt(y),\n () => Lt(y)\n );\n }, S = (x) => {\n const y = B.useContext(l)[x], [k, _] = B.useState(Fo(Lt, y));\n return _n(\n () => ft(y, (v) => {\n v !== k && _(Wo(v));\n }),\n [y, k]\n ), k;\n }, C = B.version.startsWith(\"18\") ? g : S;\n return {\n Component: p,\n usePublisher: h,\n useEmitterValue: C,\n useEmitter: (x, m) => {\n const k = B.useContext(l)[x];\n _n(() => ft(k, m), [m, k]);\n }\n };\n}\nconst Or = typeof document < \"u\" ? B.useLayoutEffect : B.useEffect;\nvar Kt = /* @__PURE__ */ ((t) => (t[t.DEBUG = 0] = \"DEBUG\", t[t.INFO = 1] = \"INFO\", t[t.WARN = 2] = \"WARN\", t[t.ERROR = 3] = \"ERROR\", t))(Kt || {});\nconst vl = {\n 0: \"debug\",\n 1: \"log\",\n 2: \"warn\",\n 3: \"error\"\n}, wl = () => typeof globalThis > \"u\" ? window : globalThis, ye = ht(\n () => {\n const t = H(\n 3\n /* ERROR */\n );\n return {\n log: H((n, o, r = 1) => {\n var s;\n const c = (s = wl().VIRTUOSO_LOG_LEVEL) != null ? s : Lt(t);\n r >= c && console[vl[r]](\n \"%creact-virtuoso: %c%s %o\",\n \"color: #0253b3; font-weight: bold\",\n \"color: initial\",\n n,\n o\n );\n }),\n logLevel: t\n };\n },\n [],\n { singleton: !0 }\n);\nfunction po(t, e, n) {\n const o = B.useRef(null);\n let r = (s) => {\n };\n if (typeof ResizeObserver < \"u\") {\n const s = B.useMemo(() => new ResizeObserver((c) => {\n const l = () => {\n const a = c[0].target;\n a.offsetParent !== null && t(a);\n };\n n ? l() : requestAnimationFrame(l);\n }), [t]);\n r = (c) => {\n c && e ? (s.observe(c), o.current = c) : (o.current && s.unobserve(o.current), o.current = null);\n };\n }\n return { ref: o, callbackRef: r };\n}\nfunction $e(t, e, n) {\n return po(t, e, n).callbackRef;\n}\nfunction _l(t, e, n, o, r, s, c, l, a) {\n const u = B.useCallback(\n (d) => {\n const p = yl(d.children, e, l ? \"offsetWidth\" : \"offsetHeight\", r);\n let h = d.parentElement;\n for (; !h.dataset.virtuosoScroller; )\n h = h.parentElement;\n const g = h.lastElementChild.dataset.viewportType === \"window\", S = c ? l ? c.scrollLeft : c.scrollTop : g ? l ? window.pageXOffset || document.documentElement.scrollLeft : window.pageYOffset || document.documentElement.scrollTop : l ? h.scrollLeft : h.scrollTop, C = c ? l ? c.scrollWidth : c.scrollHeight : g ? l ? document.documentElement.scrollWidth : document.documentElement.scrollHeight : l ? h.scrollWidth : h.scrollHeight, I = c ? l ? c.offsetWidth : c.offsetHeight : g ? l ? window.innerWidth : window.innerHeight : l ? h.offsetWidth : h.offsetHeight;\n o({\n scrollTop: Math.max(S, 0),\n scrollHeight: C,\n viewportHeight: I\n }), s == null || s(\n l ? Uo(\"column-gap\", getComputedStyle(d).columnGap, r) : Uo(\"row-gap\", getComputedStyle(d).rowGap, r)\n ), p !== null && t(p);\n },\n [t, e, r, s, c, o]\n );\n return po(u, n, a);\n}\nfunction yl(t, e, n, o) {\n const r = t.length;\n if (r === 0)\n return null;\n const s = [];\n for (let c = 0; c < r; c++) {\n const l = t.item(c);\n if (!l || l.dataset.index === void 0)\n continue;\n const a = parseInt(l.dataset.index), u = parseFloat(l.dataset.knownSize), d = e(l, n);\n if (d === 0 && o(\"Zero-sized element, this should not happen\", { child: l }, Kt.ERROR), d === u)\n continue;\n const p = s[s.length - 1];\n s.length === 0 || p.size !== d || p.endIndex !== a - 1 ? s.push({ startIndex: a, endIndex: a, size: d }) : s[s.length - 1].endIndex++;\n }\n return s;\n}\nfunction Uo(t, e, n) {\n return e !== \"normal\" && !(e != null && e.endsWith(\"px\")) && n(`${t} was not resolved to pixel value correctly`, e, Kt.WARN), e === \"normal\" ? 0 : parseInt(e ?? \"0\", 10);\n}\nfunction we(t, e) {\n return Math.round(t.getBoundingClientRect()[e]);\n}\nfunction Lr(t, e) {\n return Math.abs(t - e) < 1.01;\n}\nfunction Nr(t, e, n, o = ze, r, s) {\n const c = B.useRef(null), l = B.useRef(null), a = B.useRef(null), u = B.useCallback(\n (h) => {\n const g = h.target, S = g === window || g === document, C = s ? S ? window.pageXOffset || document.documentElement.scrollLeft : g.scrollLeft : S ? window.pageYOffset || document.documentElement.scrollTop : g.scrollTop, I = s ? S ? document.documentElement.scrollWidth : g.scrollWidth : S ? document.documentElement.scrollHeight : g.scrollHeight, x = s ? S ? window.innerWidth : g.offsetWidth : S ? window.innerHeight : g.offsetHeight, m = () => {\n t({\n scrollTop: Math.max(C, 0),\n scrollHeight: I,\n viewportHeight: x\n });\n };\n h.suppressFlushSync ? m() : Rs.flushSync(m), l.current !== null && (C === l.current || C <= 0 || C === I - x) && (l.current = null, e(!0), a.current && (clearTimeout(a.current), a.current = null));\n },\n [t, e]\n );\n B.useEffect(() => {\n const h = r || c.current;\n return o(r || c.current), u({ target: h, suppressFlushSync: !0 }), h.addEventListener(\"scroll\", u, { passive: !0 }), () => {\n o(null), h.removeEventListener(\"scroll\", u);\n };\n }, [c, u, n, o, r]);\n function d(h) {\n const g = c.current;\n if (!g || (s ? \"offsetWidth\" in g && g.offsetWidth === 0 : \"offsetHeight\" in g && g.offsetHeight === 0))\n return;\n const S = h.behavior === \"smooth\";\n let C, I, x;\n g === window ? (I = Math.max(\n we(document.documentElement, s ? \"width\" : \"height\"),\n s ? document.documentElement.scrollWidth : document.documentElement.scrollHeight\n ), C = s ? window.innerWidth : window.innerHeight, x = s ? document.documentElement.scrollLeft : document.documentElement.scrollTop) : (I = g[s ? \"scrollWidth\" : \"scrollHeight\"], C = we(g, s ? \"width\" : \"height\"), x = g[s ? \"scrollLeft\" : \"scrollTop\"]);\n const m = I - C;\n if (h.top = Math.ceil(Math.max(Math.min(m, h.top), 0)), Lr(C, I) || h.top === x) {\n t({ scrollTop: x, scrollHeight: I, viewportHeight: C }), S && e(!0);\n return;\n }\n S ? (l.current = h.top, a.current && clearTimeout(a.current), a.current = setTimeout(() => {\n a.current = null, l.current = null, e(!0);\n }, 1e3)) : l.current = null, s && (h = { left: h.top, behavior: h.behavior }), g.scrollTo(h);\n }\n function p(h) {\n s && (h = { left: h.top, behavior: h.behavior }), c.current.scrollBy(h);\n }\n return { scrollerRef: c, scrollByCallback: p, scrollToCallback: d };\n}\nconst Ft = ht(\n () => {\n const t = it(), e = it(), n = H(0), o = it(), r = H(0), s = it(), c = it(), l = H(0), a = H(0), u = H(0), d = H(0), p = it(), h = it(), g = H(!1), S = H(!1), C = H(!1);\n return V(\n E(\n t,\n z(({ scrollTop: I }) => I)\n ),\n e\n ), V(\n E(\n t,\n z(({ scrollHeight: I }) => I)\n ),\n c\n ), V(e, r), {\n // input\n scrollContainerState: t,\n scrollTop: e,\n viewportHeight: s,\n headerHeight: l,\n fixedHeaderHeight: a,\n fixedFooterHeight: u,\n footerHeight: d,\n scrollHeight: c,\n smoothScrollTargetReached: o,\n horizontalDirection: S,\n skipAnimationFrameInResizeObserver: C,\n // signals\n scrollTo: p,\n scrollBy: h,\n // state\n statefulScrollTop: r,\n deviation: n,\n scrollingInProgress: g\n };\n },\n [],\n { singleton: !0 }\n), nn = { lvl: 0 };\nfunction Mr(t, e, n, o = nn, r = nn) {\n return { k: t, v: e, lvl: n, l: o, r };\n}\nfunction gt(t) {\n return t === nn;\n}\nfunction De() {\n return nn;\n}\nfunction oo(t, e) {\n if (gt(t)) return nn;\n const { k: n, l: o, r } = t;\n if (e === n) {\n if (gt(o))\n return r;\n if (gt(r))\n return o;\n {\n const [s, c] = Dr(o);\n return bn(kt(t, { k: s, v: c, l: Ar(o) }));\n }\n } else return e < n ? bn(kt(t, { l: oo(o, e) })) : bn(kt(t, { r: oo(r, e) }));\n}\nfunction on(t, e) {\n if (!gt(t))\n return e === t.k ? t.v : e < t.k ? on(t.l, e) : on(t.r, e);\n}\nfunction ee(t, e, n = \"k\") {\n if (gt(t))\n return [-1 / 0, void 0];\n if (Number(t[n]) === e)\n return [t.k, t.v];\n if (Number(t[n]) < e) {\n const o = ee(t.r, e, n);\n return o[0] === -1 / 0 ? [t.k, t.v] : o;\n }\n return ee(t.l, e, n);\n}\nfunction Gt(t, e, n) {\n return gt(t) ? Mr(e, n, 1) : e === t.k ? kt(t, { k: e, v: n }) : e < t.k ? qo(kt(t, { l: Gt(t.l, e, n) })) : qo(kt(t, { r: Gt(t.r, e, n) }));\n}\nfunction ro(t, e, n) {\n if (gt(t))\n return [];\n const { k: o, v: r, l: s, r: c } = t;\n let l = [];\n return o > e && (l = l.concat(ro(s, e, n))), o >= e && o <= n && l.push({ k: o, v: r }), o <= n && (l = l.concat(ro(c, e, n))), l;\n}\nfunction ke(t) {\n return gt(t) ? [] : [...ke(t.l), { k: t.k, v: t.v }, ...ke(t.r)];\n}\nfunction Dr(t) {\n return gt(t.r) ? [t.k, t.v] : Dr(t.r);\n}\nfunction Ar(t) {\n return gt(t.r) ? t.l : bn(kt(t, { r: Ar(t.r) }));\n}\nfunction kt(t, e) {\n return Mr(\n e.k !== void 0 ? e.k : t.k,\n e.v !== void 0 ? e.v : t.v,\n e.lvl !== void 0 ? e.lvl : t.lvl,\n e.l !== void 0 ? e.l : t.l,\n e.r !== void 0 ? e.r : t.r\n );\n}\nfunction Zn(t) {\n return gt(t) || t.lvl > t.r.lvl;\n}\nfunction qo(t) {\n return so(Pr(t));\n}\nfunction bn(t) {\n const { l: e, r: n, lvl: o } = t;\n if (n.lvl >= o - 1 && e.lvl >= o - 1)\n return t;\n if (o > n.lvl + 1) {\n if (Zn(e))\n return Pr(kt(t, { lvl: o - 1 }));\n if (!gt(e) && !gt(e.r))\n return kt(e.r, {\n l: kt(e, { r: e.r.l }),\n r: kt(t, {\n l: e.r.r,\n lvl: o - 1\n }),\n lvl: o\n });\n throw new Error(\"Unexpected empty nodes\");\n } else {\n if (Zn(t))\n return so(kt(t, { lvl: o - 1 }));\n if (!gt(n) && !gt(n.l)) {\n const r = n.l, s = Zn(r) ? n.lvl - 1 : n.lvl;\n return kt(r, {\n l: kt(t, {\n r: r.l,\n lvl: o - 1\n }),\n r: so(kt(n, { l: r.r, lvl: s })),\n lvl: r.lvl + 1\n });\n } else\n throw new Error(\"Unexpected empty nodes\");\n }\n}\nfunction Dn(t, e, n) {\n if (gt(t))\n return [];\n const o = ee(t, e)[0];\n return Sl(ro(t, o, n));\n}\nfunction Hr(t, e) {\n const n = t.length;\n if (n === 0)\n return [];\n let { index: o, value: r } = e(t[0]);\n const s = [];\n for (let c = 1; c < n; c++) {\n const { index: l, value: a } = e(t[c]);\n s.push({ start: o, end: l - 1, value: r }), o = l, r = a;\n }\n return s.push({ start: o, end: 1 / 0, value: r }), s;\n}\nfunction Sl(t) {\n return Hr(t, ({ k: e, v: n }) => ({ index: e, value: n }));\n}\nfunction so(t) {\n const { r: e, lvl: n } = t;\n return !gt(e) && !gt(e.r) && e.lvl === n && e.r.lvl === n ? kt(e, { l: kt(t, { r: e.l }), lvl: n + 1 }) : t;\n}\nfunction Pr(t) {\n const { l: e } = t;\n return !gt(e) && e.lvl === t.lvl ? kt(e, { r: kt(t, { l: e.r }) }) : t;\n}\nfunction Tn(t, e, n, o = 0) {\n let r = t.length - 1;\n for (; o <= r; ) {\n const s = Math.floor((o + r) / 2), c = t[s], l = n(c, e);\n if (l === 0)\n return s;\n if (l === -1) {\n if (r - o < 2)\n return s - 1;\n r = s - 1;\n } else {\n if (r === o)\n return s;\n o = s + 1;\n }\n }\n throw new Error(`Failed binary finding record in array - ${t.join(\",\")}, searched for ${e}`);\n}\nfunction zr(t, e, n) {\n return t[Tn(t, e, n)];\n}\nfunction Cl(t, e, n, o) {\n const r = Tn(t, e, o), s = Tn(t, n, o, r);\n return t.slice(r, s + 1);\n}\nconst xo = ht(\n () => ({ recalcInProgress: H(!1) }),\n [],\n { singleton: !0 }\n);\nfunction bl(t) {\n const { size: e, startIndex: n, endIndex: o } = t;\n return (r) => r.start === n && (r.end === o || r.end === 1 / 0) && r.value === e;\n}\nfunction Ko(t, e) {\n let n = 0, o = 0;\n for (; n < t; )\n n += e[o + 1] - e[o] - 1, o++;\n return o - (n === t ? 0 : 1);\n}\nfunction jl(t, e) {\n let n = gt(t) ? 0 : 1 / 0;\n for (const o of e) {\n const { size: r, startIndex: s, endIndex: c } = o;\n if (n = Math.min(n, s), gt(t)) {\n t = Gt(t, 0, r);\n continue;\n }\n const l = Dn(t, s - 1, c + 1);\n if (l.some(bl(o)))\n continue;\n let a = !1, u = !1;\n for (const { start: d, end: p, value: h } of l)\n a ? (c >= d || r === h) && (t = oo(t, d)) : (u = h !== r, a = !0), p > c && c >= d && h !== r && (t = Gt(t, c + 1, h));\n u && (t = Gt(t, s, r));\n }\n return [t, n];\n}\nfunction Il() {\n return {\n offsetTree: [],\n sizeTree: De(),\n groupOffsetTree: De(),\n lastIndex: 0,\n lastOffset: 0,\n lastSize: 0,\n groupIndices: []\n };\n}\nfunction vo({ index: t }, e) {\n return e === t ? 0 : e < t ? -1 : 1;\n}\nfunction kl({ offset: t }, e) {\n return e === t ? 0 : e < t ? -1 : 1;\n}\nfunction Tl(t) {\n return { index: t.index, value: t };\n}\nfunction $l(t, e, n, o = 0) {\n return o > 0 && (e = Math.max(e, zr(t, o, vo).offset)), Hr(Cl(t, e, n, kl), Tl);\n}\nfunction io(t, e, n, o) {\n let r = t, s = 0, c = 0, l = 0, a = 0;\n if (e !== 0) {\n a = Tn(r, e - 1, vo), l = r[a].offset;\n const d = ee(n, e - 1);\n s = d[0], c = d[1], r.length && r[a].size === ee(n, e)[1] && (a -= 1), r = r.slice(0, a + 1);\n } else\n r = [];\n for (const { start: u, value: d } of Dn(n, e, 1 / 0)) {\n const p = u - s, h = p * c + l + p * o;\n r.push({\n offset: h,\n size: d,\n index: u\n }), s = u, l = h, c = d;\n }\n return {\n offsetTree: r,\n lastIndex: s,\n lastOffset: l,\n lastSize: c\n };\n}\nfunction Rl(t, [e, n, o, r]) {\n e.length > 0 && o(\"received item sizes\", e, Kt.DEBUG);\n const s = t.sizeTree;\n let c = s, l = 0;\n if (n.length > 0 && gt(s) && e.length === 2) {\n const h = e[0].size, g = e[1].size;\n c = n.reduce((S, C) => Gt(Gt(S, C, h), C + 1, g), c);\n } else\n [c, l] = jl(c, e);\n if (c === s)\n return t;\n const { offsetTree: a, lastIndex: u, lastSize: d, lastOffset: p } = io(t.offsetTree, l, c, r);\n return {\n sizeTree: c,\n offsetTree: a,\n lastIndex: u,\n lastOffset: p,\n lastSize: d,\n groupOffsetTree: n.reduce((h, g) => Gt(h, g, rn(g, a, r)), De()),\n groupIndices: n\n };\n}\nfunction rn(t, e, n) {\n if (e.length === 0)\n return 0;\n const { offset: o, index: r, size: s } = zr(e, t, vo), c = t - r, l = s * c + (c - 1) * n + o;\n return l > 0 ? l + n : l;\n}\nfunction El(t) {\n return typeof t.groupIndex < \"u\";\n}\nfunction Br(t, e, n) {\n if (El(t))\n return e.groupIndices[t.groupIndex] + 1;\n {\n const o = t.index === \"LAST\" ? n : t.index;\n let r = Fr(o, e);\n return r = Math.max(0, r, Math.min(n, r)), r;\n }\n}\nfunction Fr(t, e) {\n if (!An(e))\n return t;\n let n = 0;\n for (; e.groupIndices[n] <= t + n; )\n n++;\n return t + n;\n}\nfunction An(t) {\n return !gt(t.groupOffsetTree);\n}\nfunction Ol(t) {\n return ke(t).map(({ k: e, v: n }, o, r) => {\n const s = r[o + 1], c = s ? s.k - 1 : 1 / 0;\n return { startIndex: e, endIndex: c, size: n };\n });\n}\nconst Ll = {\n offsetHeight: \"height\",\n offsetWidth: \"width\"\n}, le = ht(\n ([{ log: t }, { recalcInProgress: e }]) => {\n const n = it(), o = it(), r = zt(o, 0), s = it(), c = it(), l = H(0), a = H([]), u = H(void 0), d = H(void 0), p = H((_, v) => we(_, Ll[v])), h = H(void 0), g = H(0), S = Il(), C = zt(\n E(n, nt(a, t, g), ie(Rl, S), xt()),\n S\n ), I = zt(\n E(\n a,\n xt(),\n ie((_, v) => ({ prev: _.current, current: v }), {\n prev: [],\n current: []\n }),\n z(({ prev: _ }) => _)\n ),\n []\n );\n V(\n E(\n a,\n Z((_) => _.length > 0),\n nt(C, g),\n z(([_, v, w]) => {\n const b = _.reduce((T, M, D) => Gt(T, M, rn(M, v.offsetTree, w) || D), De());\n return {\n ...v,\n groupIndices: _,\n groupOffsetTree: b\n };\n })\n ),\n C\n ), V(\n E(\n o,\n nt(C),\n Z(([_, { lastIndex: v }]) => _ < v),\n z(([_, { lastIndex: v, lastSize: w }]) => [\n {\n startIndex: _,\n endIndex: v,\n size: w\n }\n ])\n ),\n n\n ), V(u, d);\n const x = zt(\n E(\n u,\n z((_) => _ === void 0)\n ),\n !0\n );\n V(\n E(\n d,\n Z((_) => _ !== void 0 && gt(Lt(C).sizeTree)),\n z((_) => [{ startIndex: 0, endIndex: 0, size: _ }])\n ),\n n\n );\n const m = qt(\n E(\n n,\n nt(C),\n ie(\n ({ sizes: _ }, [v, w]) => ({\n changed: w !== _,\n sizes: w\n }),\n { changed: !1, sizes: S }\n ),\n z((_) => _.changed)\n )\n );\n ft(\n E(\n l,\n ie(\n (_, v) => ({ diff: _.prev - v, prev: v }),\n { diff: 0, prev: 0 }\n ),\n z((_) => _.diff)\n ),\n (_) => {\n const { groupIndices: v } = Lt(C);\n if (_ > 0)\n Q(e, !0), Q(s, _ + Ko(_, v));\n else if (_ < 0) {\n const w = Lt(I);\n w.length > 0 && (_ -= Ko(-_, w)), Q(c, _);\n }\n }\n ), ft(E(l, nt(t)), ([_, v]) => {\n _ < 0 && v(\n \"`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value\",\n { firstItemIndex: l },\n Kt.ERROR\n );\n });\n const y = qt(s);\n V(\n E(\n s,\n nt(C),\n z(([_, v]) => {\n const w = v.groupIndices.length > 0, b = [], T = v.lastSize;\n if (w) {\n const M = on(v.sizeTree, 0);\n let D = 0, G = 0;\n for (; D < _; ) {\n const j = v.groupIndices[G], $ = v.groupIndices.length === G + 1 ? 1 / 0 : v.groupIndices[G + 1] - j - 1;\n b.push({\n startIndex: j,\n endIndex: j,\n size: M\n }), b.push({\n startIndex: j + 1,\n endIndex: j + 1 + $ - 1,\n size: T\n }), G++, D += $ + 1;\n }\n const U = ke(v.sizeTree);\n return D !== _ && U.shift(), U.reduce(\n (j, { k: $, v: A }) => {\n let L = j.ranges;\n return j.prevSize !== 0 && (L = [\n ...j.ranges,\n {\n startIndex: j.prevIndex,\n endIndex: $ + _ - 1,\n size: j.prevSize\n }\n ]), {\n ranges: L,\n prevIndex: $ + _,\n prevSize: A\n };\n },\n {\n ranges: b,\n prevIndex: _,\n prevSize: 0\n }\n ).ranges;\n }\n return ke(v.sizeTree).reduce(\n (M, { k: D, v: G }) => ({\n ranges: [...M.ranges, { startIndex: M.prevIndex, endIndex: D + _ - 1, size: M.prevSize }],\n prevIndex: D + _,\n prevSize: G\n }),\n {\n ranges: [],\n prevIndex: 0,\n prevSize: T\n }\n ).ranges;\n })\n ),\n n\n );\n const k = qt(\n E(\n c,\n nt(C, g),\n z(([_, { offsetTree: v }, w]) => {\n const b = -_;\n return rn(b, v, w);\n })\n )\n );\n return V(\n E(\n c,\n nt(C, g),\n z(([_, v, w]) => {\n if (v.groupIndices.length > 0) {\n if (gt(v.sizeTree))\n return v;\n let T = De();\n const M = Lt(I);\n let D = 0, G = 0, U = 0;\n for (; D < -_; ) {\n U = M[G];\n const j = M[G + 1] - U - 1;\n G++, D += j + 1;\n }\n if (T = ke(v.sizeTree).reduce((j, { k: $, v: A }) => Gt(j, Math.max(0, $ + _), A), T), D !== -_) {\n const j = on(v.sizeTree, U);\n T = Gt(T, 0, j);\n const $ = ee(v.sizeTree, -_ + 1)[1];\n T = Gt(T, 1, $);\n }\n return {\n ...v,\n sizeTree: T,\n ...io(v.offsetTree, 0, T, w)\n };\n } else {\n const T = ke(v.sizeTree).reduce((M, { k: D, v: G }) => Gt(M, Math.max(0, D + _), G), De());\n return {\n ...v,\n sizeTree: T,\n ...io(v.offsetTree, 0, T, w)\n };\n }\n })\n ),\n C\n ), {\n // input\n data: h,\n totalCount: o,\n sizeRanges: n,\n groupIndices: a,\n defaultItemSize: d,\n fixedItemSize: u,\n unshiftWith: s,\n shiftWith: c,\n shiftWithOffset: k,\n beforeUnshiftWith: y,\n firstItemIndex: l,\n gap: g,\n // output\n sizes: C,\n listRefresh: m,\n statefulTotalCount: r,\n trackItemSizes: x,\n itemSize: p\n };\n },\n vt(ye, xo),\n { singleton: !0 }\n), Nl = typeof document < \"u\" && \"scrollBehavior\" in document.documentElement.style;\nfunction Wr(t) {\n const e = typeof t == \"number\" ? { index: t } : t;\n return e.align || (e.align = \"start\"), (!e.behavior || !Nl) && (e.behavior = \"auto\"), e.offset || (e.offset = 0), e;\n}\nconst an = ht(\n ([\n { sizes: t, totalCount: e, listRefresh: n, gap: o },\n {\n scrollingInProgress: r,\n viewportHeight: s,\n scrollTo: c,\n smoothScrollTargetReached: l,\n headerHeight: a,\n footerHeight: u,\n fixedHeaderHeight: d,\n fixedFooterHeight: p\n },\n { log: h }\n ]) => {\n const g = it(), S = it(), C = H(0);\n let I = null, x = null, m = null;\n function y() {\n I && (I(), I = null), m && (m(), m = null), x && (clearTimeout(x), x = null), Q(r, !1);\n }\n return V(\n E(\n g,\n nt(t, s, e, C, a, u, h),\n nt(o, d, p),\n z(\n ([\n [k, _, v, w, b, T, M, D],\n G,\n U,\n N\n ]) => {\n const j = Wr(k), { align: $, behavior: A, offset: L } = j, W = w - 1, F = Br(j, _, W);\n let X = rn(F, _.offsetTree, G) + T;\n $ === \"end\" ? (X += U + ee(_.sizeTree, F)[1] - v + N, F === W && (X += M)) : $ === \"center\" ? X += (U + ee(_.sizeTree, F)[1] - v + N) / 2 : X -= b, L && (X += L);\n const rt = (ct) => {\n y(), ct ? (D(\"retrying to scroll to\", { location: k }, Kt.DEBUG), Q(g, k)) : (Q(S, !0), D(\"list did not change, scroll successful\", {}, Kt.DEBUG));\n };\n if (y(), A === \"smooth\") {\n let ct = !1;\n m = ft(n, (pt) => {\n ct = ct || pt;\n }), I = ce(l, () => {\n rt(ct);\n });\n } else\n I = ce(E(n, Ml(150)), rt);\n return x = setTimeout(() => {\n y();\n }, 1200), Q(r, !0), D(\"scrolling from index to\", { index: F, top: X, behavior: A }, Kt.DEBUG), { top: X, behavior: A };\n }\n )\n ),\n c\n ), {\n scrollToIndex: g,\n scrollTargetReached: S,\n topListHeight: C\n };\n },\n vt(le, Ft, ye),\n { singleton: !0 }\n);\nfunction Ml(t) {\n return (e) => {\n const n = setTimeout(() => {\n e(!1);\n }, t);\n return (o) => {\n o && (e(!0), clearTimeout(n));\n };\n };\n}\nconst sn = \"up\", Je = \"down\", Dl = \"none\", Al = {\n atBottom: !1,\n notAtBottomBecause: \"NOT_SHOWING_LAST_ITEM\",\n state: {\n offsetBottom: 0,\n scrollTop: 0,\n viewportHeight: 0,\n scrollHeight: 0\n }\n}, Hl = 0, un = ht(([{ scrollContainerState: t, scrollTop: e, viewportHeight: n, headerHeight: o, footerHeight: r, scrollBy: s }]) => {\n const c = H(!1), l = H(!0), a = it(), u = it(), d = H(4), p = H(Hl), h = zt(\n E(\n Go(E(Y(e), Ae(1), se(!0)), E(Y(e), Ae(1), se(!1), Vo(100))),\n xt()\n ),\n !1\n ), g = zt(\n E(Go(E(s, se(!0)), E(s, se(!1), Vo(200))), xt()),\n !1\n );\n V(\n E(\n Rt(Y(e), Y(p)),\n z(([m, y]) => m <= y),\n xt()\n ),\n l\n ), V(E(l, ve(50)), u);\n const S = qt(\n E(\n Rt(t, Y(n), Y(o), Y(r), Y(d)),\n ie((m, [{ scrollTop: y, scrollHeight: k }, _, v, w, b]) => {\n const T = y + _ - k > -b, M = {\n viewportHeight: _,\n scrollTop: y,\n scrollHeight: k\n };\n if (T) {\n let G, U;\n return y > m.state.scrollTop ? (G = \"SCROLLED_DOWN\", U = m.state.scrollTop - y) : (G = \"SIZE_DECREASED\", U = m.state.scrollTop - y || m.scrollTopDelta), {\n atBottom: !0,\n state: M,\n atBottomBecause: G,\n scrollTopDelta: U\n };\n }\n let D;\n return M.scrollHeight > m.state.scrollHeight ? D = \"SIZE_INCREASED\" : _ < m.state.viewportHeight ? D = \"VIEWPORT_HEIGHT_DECREASING\" : y < m.state.scrollTop ? D = \"SCROLLING_UPWARDS\" : D = \"NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM\", {\n atBottom: !1,\n notAtBottomBecause: D,\n state: M\n };\n }, Al),\n xt((m, y) => m && m.atBottom === y.atBottom)\n )\n ), C = zt(\n E(\n t,\n ie(\n (m, { scrollTop: y, scrollHeight: k, viewportHeight: _ }) => {\n if (Lr(m.scrollHeight, k))\n return {\n scrollTop: y,\n scrollHeight: k,\n jump: 0,\n changed: !1\n };\n {\n const v = k - (y + _) < 1;\n return m.scrollTop !== y && v ? {\n scrollHeight: k,\n scrollTop: y,\n jump: m.scrollTop - y,\n changed: !0\n } : {\n scrollHeight: k,\n scrollTop: y,\n jump: 0,\n changed: !0\n };\n }\n },\n { scrollHeight: 0, jump: 0, scrollTop: 0, changed: !1 }\n ),\n Z((m) => m.changed),\n z((m) => m.jump)\n ),\n 0\n );\n V(\n E(\n S,\n z((m) => m.atBottom)\n ),\n c\n ), V(E(c, ve(50)), a);\n const I = H(Je);\n V(\n E(\n t,\n z(({ scrollTop: m }) => m),\n xt(),\n ie(\n (m, y) => Lt(g) ? { direction: m.direction, prevScrollTop: y } : { direction: y < m.prevScrollTop ? sn : Je, prevScrollTop: y },\n { direction: Je, prevScrollTop: 0 }\n ),\n z((m) => m.direction)\n ),\n I\n ), V(E(t, ve(50), se(Dl)), I);\n const x = H(0);\n return V(\n E(\n h,\n Z((m) => !m),\n // eslint-disable-next-line @typescript-eslint/no-unsafe-argument\n se(0)\n ),\n x\n ), V(\n E(\n e,\n ve(100),\n nt(h),\n Z(([m, y]) => !!y),\n ie(([m, y], [k]) => [y, k], [0, 0]),\n z(([m, y]) => y - m)\n ),\n x\n ), {\n isScrolling: h,\n isAtTop: l,\n isAtBottom: c,\n atBottomState: S,\n atTopStateChange: u,\n atBottomStateChange: a,\n scrollDirection: I,\n atBottomThreshold: d,\n atTopThreshold: p,\n scrollVelocity: x,\n lastJumpDueToItemResize: C\n };\n}, vt(Ft)), Se = ht(\n ([{ log: t }]) => {\n const e = H(!1), n = qt(\n E(\n e,\n Z((o) => o),\n xt()\n )\n );\n return ft(e, (o) => {\n o && Lt(t)(\"props updated\", {}, Kt.DEBUG);\n }), { propsReady: e, didMount: n };\n },\n vt(ye),\n { singleton: !0 }\n);\nfunction wo(t, e) {\n t == 0 ? e() : requestAnimationFrame(() => wo(t - 1, e));\n}\nfunction _o(t, e) {\n const n = e - 1;\n return typeof t == \"number\" ? t : t.index === \"LAST\" ? n : t.index;\n}\nconst dn = ht(\n ([{ sizes: t, listRefresh: e, defaultItemSize: n }, { scrollTop: o }, { scrollToIndex: r, scrollTargetReached: s }, { didMount: c }]) => {\n const l = H(!0), a = H(0), u = H(!0);\n return V(\n E(\n c,\n nt(a),\n Z(([d, p]) => !!p),\n se(!1)\n ),\n l\n ), V(\n E(\n c,\n nt(a),\n Z(([d, p]) => !!p),\n se(!1)\n ),\n u\n ), ft(\n E(\n Rt(e, c),\n nt(l, t, n, u),\n Z(([[, d], p, { sizeTree: h }, g, S]) => d && (!gt(h) || mo(g)) && !p && !S),\n nt(a)\n ),\n ([, d]) => {\n ce(s, () => {\n Q(u, !0);\n }), wo(4, () => {\n ce(o, () => {\n Q(l, !0);\n }), Q(r, d);\n });\n }\n ), {\n scrolledToInitialItem: l,\n initialTopMostItemIndex: a,\n initialItemFinalLocationReached: u\n };\n },\n vt(le, Ft, an, Se),\n { singleton: !0 }\n);\nfunction Yo(t) {\n return t ? t === \"smooth\" ? \"smooth\" : \"auto\" : !1;\n}\nconst Pl = (t, e) => typeof t == \"function\" ? Yo(t(e)) : e && Yo(t), zl = ht(\n ([\n { totalCount: t, listRefresh: e },\n { isAtBottom: n, atBottomState: o },\n { scrollToIndex: r },\n { scrolledToInitialItem: s },\n { propsReady: c, didMount: l },\n { log: a },\n { scrollingInProgress: u }\n ]) => {\n const d = H(!1), p = it();\n let h = null;\n function g(C) {\n Q(r, {\n index: \"LAST\",\n align: \"end\",\n behavior: C\n });\n }\n ft(\n E(\n Rt(E(Y(t), Ae(1)), l),\n nt(Y(d), n, s, u),\n z(([[C, I], x, m, y, k]) => {\n let _ = I && y, v = \"auto\";\n return _ && (v = Pl(x, m || k), _ = _ && !!v), { totalCount: C, shouldFollow: _, followOutputBehavior: v };\n }),\n Z(({ shouldFollow: C }) => C)\n ),\n ({ totalCount: C, followOutputBehavior: I }) => {\n h && (h(), h = null), h = ce(e, () => {\n Lt(a)(\"following output to \", { totalCount: C }, Kt.DEBUG), g(I), h = null;\n });\n }\n );\n function S(C) {\n const I = ce(o, (x) => {\n C && !x.atBottom && x.notAtBottomBecause === \"SIZE_INCREASED\" && !h && (Lt(a)(\"scrolling to bottom due to increased size\", {}, Kt.DEBUG), g(\"auto\"));\n });\n setTimeout(I, 100);\n }\n return ft(\n E(\n Rt(Y(d), t, c),\n Z(([C, , I]) => C && I),\n ie(\n ({ value: C }, [, I]) => ({ refreshed: C === I, value: I }),\n { refreshed: !1, value: 0 }\n ),\n Z(({ refreshed: C }) => C),\n nt(d, t)\n ),\n ([, C]) => {\n Lt(s) && S(C !== !1);\n }\n ), ft(p, () => {\n S(Lt(d) !== !1);\n }), ft(Rt(Y(d), o), ([C, I]) => {\n C && !I.atBottom && I.notAtBottomBecause === \"VIEWPORT_HEIGHT_DECREASING\" && g(\"auto\");\n }), { followOutput: d, autoscrollToBottom: p };\n },\n vt(le, un, an, dn, Se, ye, Ft)\n);\nfunction Bl(t) {\n return t.reduce(\n (e, n) => (e.groupIndices.push(e.totalCount), e.totalCount += n + 1, e),\n {\n totalCount: 0,\n groupIndices: []\n }\n );\n}\nconst Vr = ht(([{ totalCount: t, groupIndices: e, sizes: n }, { scrollTop: o, headerHeight: r }]) => {\n const s = it(), c = it(), l = qt(E(s, z(Bl)));\n return V(\n E(\n l,\n z((a) => a.totalCount)\n ),\n t\n ), V(\n E(\n l,\n z((a) => a.groupIndices)\n ),\n e\n ), V(\n E(\n Rt(o, n, r),\n Z(([a, u]) => An(u)),\n z(([a, u, d]) => ee(u.groupOffsetTree, Math.max(a - d, 0), \"v\")[0]),\n xt(),\n z((a) => [a])\n ),\n c\n ), { groupCounts: s, topItemsIndexes: c };\n}, vt(le, Ft));\nfunction cn(t, e) {\n return !!(t && t[0] === e[0] && t[1] === e[1]);\n}\nfunction Gr(t, e) {\n return !!(t && t.startIndex === e.startIndex && t.endIndex === e.endIndex);\n}\nconst $n = \"top\", Rn = \"bottom\", Zo = \"none\";\nfunction Xo(t, e, n) {\n return typeof t == \"number\" ? n === sn && e === $n || n === Je && e === Rn ? t : 0 : n === sn ? e === $n ? t.main : t.reverse : e === Rn ? t.main : t.reverse;\n}\nfunction Jo(t, e) {\n return typeof t == \"number\" ? t : t[e] || 0;\n}\nconst yo = ht(\n ([{ scrollTop: t, viewportHeight: e, deviation: n, headerHeight: o, fixedHeaderHeight: r }]) => {\n const s = it(), c = H(0), l = H(0), a = H(0), u = zt(\n E(\n Rt(\n Y(t),\n Y(e),\n Y(o),\n Y(s, cn),\n Y(a),\n Y(c),\n Y(r),\n Y(n),\n Y(l)\n ),\n z(\n ([\n d,\n p,\n h,\n [g, S],\n C,\n I,\n x,\n m,\n y\n ]) => {\n const k = d - m, _ = I + x, v = Math.max(h - k, 0);\n let w = Zo;\n const b = Jo(y, $n), T = Jo(y, Rn);\n return g -= m, g += h + x, S += h + x, S -= m, g > d + _ - b && (w = sn), S < d - v + p + T && (w = Je), w !== Zo ? [\n Math.max(k - h - Xo(C, $n, w) - b, 0),\n k - v - x + p + Xo(C, Rn, w) + T\n ] : null;\n }\n ),\n Z((d) => d != null),\n xt(cn)\n ),\n [0, 0]\n );\n return {\n // input\n listBoundary: s,\n overscan: a,\n topListHeight: c,\n increaseViewportBy: l,\n // output\n visibleRange: u\n };\n },\n vt(Ft),\n { singleton: !0 }\n);\nfunction Fl(t, e, n) {\n if (An(e)) {\n const o = Fr(t, e);\n return [\n { index: ee(e.groupOffsetTree, o)[0], size: 0, offset: 0 },\n { index: o, size: 0, offset: 0, data: n && n[0] }\n ];\n }\n return [{ index: t, size: 0, offset: 0, data: n && n[0] }];\n}\nconst Xn = {\n items: [],\n topItems: [],\n offsetTop: 0,\n offsetBottom: 0,\n top: 0,\n bottom: 0,\n topListHeight: 0,\n totalCount: 0,\n firstItemIndex: 0\n};\nfunction Qo(t, e, n) {\n if (t.length === 0)\n return [];\n if (!An(e))\n return t.map((u) => ({ ...u, index: u.index + n, originalIndex: u.index }));\n const o = t[0].index, r = t[t.length - 1].index, s = [], c = Dn(e.groupOffsetTree, o, r);\n let l, a = 0;\n for (const u of t) {\n (!l || l.end < u.index) && (l = c.shift(), a = e.groupIndices.indexOf(l.start));\n let d;\n u.index === l.start ? d = {\n type: \"group\",\n index: a\n } : d = {\n index: u.index - (a + 1) + n,\n groupIndex: a\n }, s.push({\n ...d,\n size: u.size,\n offset: u.offset,\n originalIndex: u.index,\n data: u.data\n });\n }\n return s;\n}\nfunction jn(t, e, n, o, r, s) {\n const { lastSize: c, lastOffset: l, lastIndex: a } = r;\n let u = 0, d = 0;\n if (t.length > 0) {\n u = t[0].offset;\n const C = t[t.length - 1];\n d = C.offset + C.size;\n }\n const p = n - a, h = l + p * c + (p - 1) * o, g = u, S = h - d;\n return {\n items: Qo(t, r, s),\n topItems: Qo(e, r, s),\n topListHeight: e.reduce((C, I) => I.size + C, 0),\n offsetTop: u,\n offsetBottom: S,\n top: g,\n bottom: d,\n totalCount: n,\n firstItemIndex: s\n };\n}\nfunction Ur(t, e, n, o, r, s) {\n let c = 0;\n if (n.groupIndices.length > 0)\n for (const d of n.groupIndices) {\n if (d - c >= t)\n break;\n c++;\n }\n const l = t + c, a = _o(e, l), u = Array.from({ length: l }).map((d, p) => ({\n index: p + a,\n size: 0,\n offset: 0,\n data: s[p + a]\n }));\n return jn(u, [], l, r, n, o);\n}\nconst Re = ht(\n ([\n { sizes: t, totalCount: e, data: n, firstItemIndex: o, gap: r },\n s,\n { visibleRange: c, listBoundary: l, topListHeight: a },\n { scrolledToInitialItem: u, initialTopMostItemIndex: d },\n { topListHeight: p },\n h,\n { didMount: g },\n { recalcInProgress: S }\n ]) => {\n const C = H([]), I = H(0), x = it();\n V(s.topItemsIndexes, C);\n const m = zt(\n E(\n Rt(\n g,\n S,\n Y(c, cn),\n Y(e),\n Y(t),\n Y(d),\n u,\n Y(C),\n Y(o),\n Y(r),\n n\n ),\n Z(([v, w, , b, , , , , , , T]) => {\n const M = T && T.length !== b;\n return v && !w && !M;\n }),\n z(\n ([\n ,\n ,\n [v, w],\n b,\n T,\n M,\n D,\n G,\n U,\n N,\n j\n ]) => {\n const $ = T, { sizeTree: A, offsetTree: L } = $, W = Lt(I);\n if (b === 0)\n return { ...Xn, totalCount: b };\n if (v === 0 && w === 0)\n return W === 0 ? { ...Xn, totalCount: b } : Ur(W, M, T, U, N, j || []);\n if (gt(A))\n return W > 0 ? null : jn(\n Fl(_o(M, b), $, j),\n [],\n b,\n N,\n $,\n U\n );\n const F = [];\n if (G.length > 0) {\n const wt = G[0], bt = G[G.length - 1];\n let O = 0;\n for (const q of Dn(A, wt, bt)) {\n const et = q.value, tt = Math.max(q.start, wt), _t = Math.min(q.end, bt);\n for (let dt = tt; dt <= _t; dt++)\n F.push({ index: dt, size: et, offset: O, data: j && j[dt] }), O += et;\n }\n }\n if (!D)\n return jn([], F, b, N, $, U);\n const X = G.length > 0 ? G[G.length - 1] + 1 : 0, rt = $l(L, v, w, X);\n if (rt.length === 0)\n return null;\n const ct = b - 1, pt = Mn([], (wt) => {\n for (const bt of rt) {\n const O = bt.value;\n let q = O.offset, et = bt.start;\n const tt = O.size;\n if (O.offset < v) {\n et += Math.floor((v - O.offset + N) / (tt + N));\n const dt = et - bt.start;\n q += dt * tt + dt * N;\n }\n et < X && (q += (X - et) * tt, et = X);\n const _t = Math.min(bt.end, ct);\n for (let dt = et; dt <= _t && !(q >= w); dt++)\n wt.push({ index: dt, size: tt, offset: q, data: j && j[dt] }), q += tt + N;\n }\n });\n return jn(pt, F, b, N, $, U);\n }\n ),\n //@ts-expect-error filter needs to be fixed\n Z((v) => v !== null),\n xt()\n ),\n Xn\n );\n V(\n E(\n n,\n Z(mo),\n z((v) => v == null ? void 0 : v.length)\n ),\n e\n ), V(\n E(\n m,\n z((v) => v.topListHeight)\n ),\n p\n ), V(p, a), V(\n E(\n m,\n z((v) => [v.top, v.bottom])\n ),\n l\n ), V(\n E(\n m,\n z((v) => v.items)\n ),\n x\n );\n const y = qt(\n E(\n m,\n Z(({ items: v }) => v.length > 0),\n nt(e, n),\n Z(([{ items: v }, w]) => v[v.length - 1].originalIndex === w - 1),\n z(([, v, w]) => [v - 1, w]),\n xt(cn),\n z(([v]) => v)\n )\n ), k = qt(\n E(\n m,\n ve(200),\n Z(({ items: v, topItems: w }) => v.length > 0 && v[0].originalIndex === w.length),\n z(({ items: v }) => v[0].index),\n xt()\n )\n ), _ = qt(\n E(\n m,\n Z(({ items: v }) => v.length > 0),\n z(({ items: v }) => {\n let w = 0, b = v.length - 1;\n for (; v[w].type === \"group\" && w < b; )\n w++;\n for (; v[b].type === \"group\" && b > w; )\n b--;\n return {\n startIndex: v[w].index,\n endIndex: v[b].index\n };\n }),\n xt(Gr)\n )\n );\n return { listState: m, topItemsIndexes: C, endReached: y, startReached: k, rangeChanged: _, itemsRendered: x, initialItemCount: I, ...h };\n },\n vt(\n le,\n Vr,\n yo,\n dn,\n an,\n un,\n Se,\n xo\n ),\n { singleton: !0 }\n), Wl = ht(\n ([{ sizes: t, firstItemIndex: e, data: n, gap: o }, { initialTopMostItemIndex: r }, { initialItemCount: s, listState: c }, { didMount: l }]) => (V(\n E(\n l,\n nt(s),\n Z(([, a]) => a !== 0),\n nt(r, t, e, o, n),\n z(([[, a], u, d, p, h, g = []]) => Ur(a, u, d, p, h, g))\n ),\n c\n ), {}),\n vt(le, dn, Re, Se),\n { singleton: !0 }\n), qr = ht(\n ([{ scrollVelocity: t }]) => {\n const e = H(!1), n = it(), o = H(!1);\n return V(\n E(\n t,\n nt(o, e, n),\n Z(([r, s]) => !!s),\n z(([r, s, c, l]) => {\n const { exit: a, enter: u } = s;\n if (c) {\n if (a(r, l))\n return !1;\n } else if (u(r, l))\n return !0;\n return c;\n }),\n xt()\n ),\n e\n ), ft(\n E(Rt(e, t, n), nt(o)),\n ([[r, s, c], l]) => r && l && l.change && l.change(s, c)\n ), { isSeeking: e, scrollSeekConfiguration: o, scrollVelocity: t, scrollSeekRangeChanged: n };\n },\n vt(un),\n { singleton: !0 }\n), Vl = ht(([{ topItemsIndexes: t }]) => {\n const e = H(0);\n return V(\n E(\n e,\n Z((n) => n > 0),\n z((n) => Array.from({ length: n }).map((o, r) => r))\n ),\n t\n ), { topItemCount: e };\n}, vt(Re)), Kr = ht(\n ([{ footerHeight: t, headerHeight: e, fixedHeaderHeight: n, fixedFooterHeight: o }, { listState: r }]) => {\n const s = it(), c = zt(\n E(\n Rt(t, o, e, n, r),\n z(([l, a, u, d, p]) => l + a + u + d + p.offsetBottom + p.bottom)\n ),\n 0\n );\n return V(Y(c), s), { totalListHeight: c, totalListHeightChanged: s };\n },\n vt(Ft, Re),\n { singleton: !0 }\n);\nfunction Yr(t) {\n let e = !1, n;\n return () => (e || (e = !0, n = t()), n);\n}\nconst Gl = Yr(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.test(navigator.userAgent)), Ul = ht(\n ([\n { scrollBy: t, scrollTop: e, deviation: n, scrollingInProgress: o },\n { isScrolling: r, isAtBottom: s, scrollDirection: c, lastJumpDueToItemResize: l },\n { listState: a },\n { beforeUnshiftWith: u, shiftWithOffset: d, sizes: p, gap: h },\n { log: g },\n { recalcInProgress: S }\n ]) => {\n const C = qt(\n E(\n a,\n nt(l),\n ie(\n ([, x, m, y], [{ items: k, totalCount: _, bottom: v, offsetBottom: w }, b]) => {\n const T = v + w;\n let M = 0;\n return m === _ && x.length > 0 && k.length > 0 && (k[0].originalIndex === 0 && x[0].originalIndex === 0 || (M = T - y, M !== 0 && (M += b))), [M, k, _, T];\n },\n [0, [], 0, 0]\n ),\n Z(([x]) => x !== 0),\n nt(e, c, o, s, g, S),\n Z(([, x, m, y, , , k]) => !k && !y && x !== 0 && m === sn),\n z(([[x], , , , , m]) => (m(\"Upward scrolling compensation\", { amount: x }, Kt.DEBUG), x))\n )\n );\n function I(x) {\n x > 0 ? (Q(t, { top: -x, behavior: \"auto\" }), Q(n, 0)) : (Q(n, 0), Q(t, { top: -x, behavior: \"auto\" }));\n }\n return ft(E(C, nt(n, r)), ([x, m, y]) => {\n y && Gl() ? Q(n, m - x) : I(-x);\n }), ft(\n E(\n Rt(zt(r, !1), n, S),\n Z(([x, m, y]) => !x && !y && m !== 0),\n z(([x, m]) => m),\n ve(1)\n ),\n I\n ), V(\n E(\n d,\n z((x) => ({ top: -x }))\n ),\n t\n ), ft(\n E(\n u,\n nt(p, h),\n z(([x, { lastSize: m, groupIndices: y, sizeTree: k }, _]) => {\n function v(w) {\n return w * (m + _);\n }\n if (y.length === 0)\n return v(x);\n {\n let w = 0;\n const b = on(k, 0);\n let T = 0, M = 0;\n for (; T < x; ) {\n T++, w += b;\n let D = y.length === M + 1 ? 1 / 0 : y[M + 1] - y[M] - 1;\n T + D > x && (w -= b, D = x - T + 1), T += D, w += v(D), M++;\n }\n return w;\n }\n })\n ),\n (x) => {\n Q(n, x), requestAnimationFrame(() => {\n Q(t, { top: x }), requestAnimationFrame(() => {\n Q(n, 0), Q(S, !1);\n });\n });\n }\n ), { deviation: n };\n },\n vt(Ft, un, Re, le, ye, xo)\n), ql = ht(\n ([{ didMount: t }, { scrollTo: e }, { listState: n }]) => {\n const o = H(0);\n return ft(\n E(\n t,\n nt(o),\n Z(([, r]) => r !== 0),\n z(([, r]) => ({ top: r }))\n ),\n (r) => {\n ce(\n E(\n n,\n Ae(1),\n Z((s) => s.items.length > 1)\n ),\n () => {\n requestAnimationFrame(() => {\n Q(e, r);\n });\n }\n );\n }\n ), {\n initialScrollTop: o\n };\n },\n vt(Se, Ft, Re),\n { singleton: !0 }\n), Kl = ht(\n ([{ viewportHeight: t }, { totalListHeight: e }]) => {\n const n = H(!1), o = zt(\n E(\n Rt(n, t, e),\n Z(([r]) => r),\n z(([, r, s]) => Math.max(0, r - s)),\n ve(0),\n xt()\n ),\n 0\n );\n return { alignToBottom: n, paddingTopAddition: o };\n },\n vt(Ft, Kr),\n { singleton: !0 }\n), So = ht(([{ scrollTo: t, scrollContainerState: e }]) => {\n const n = it(), o = it(), r = it(), s = H(!1), c = H(void 0);\n return V(\n E(\n Rt(n, o),\n z(([{ viewportHeight: l, scrollTop: a, scrollHeight: u }, { offsetTop: d }]) => ({\n scrollTop: Math.max(0, a - d),\n scrollHeight: u,\n viewportHeight: l\n }))\n ),\n e\n ), V(\n E(\n t,\n nt(o),\n z(([l, { offsetTop: a }]) => ({\n ...l,\n top: l.top + a\n }))\n ),\n r\n ), {\n // config\n useWindowScroll: s,\n customScrollParent: c,\n // input\n windowScrollContainerState: n,\n windowViewportRect: o,\n // signals\n windowScrollTo: r\n };\n}, vt(Ft)), Yl = ({\n itemTop: t,\n itemBottom: e,\n viewportTop: n,\n viewportBottom: o,\n locationParams: { behavior: r, align: s, ...c }\n}) => t < n ? { ...c, behavior: r, align: s ?? \"start\" } : e > o ? { ...c, behavior: r, align: s ?? \"end\" } : null, Zl = ht(\n ([\n { sizes: t, totalCount: e, gap: n },\n { scrollTop: o, viewportHeight: r, headerHeight: s, fixedHeaderHeight: c, fixedFooterHeight: l, scrollingInProgress: a },\n { scrollToIndex: u }\n ]) => {\n const d = it();\n return V(\n E(\n d,\n nt(t, r, e, s, c, l, o),\n nt(n),\n z(([[p, h, g, S, C, I, x, m], y]) => {\n const { done: k, behavior: _, align: v, calculateViewLocation: w = Yl, ...b } = p, T = Br(p, h, S - 1), M = rn(T, h.offsetTree, y) + C + I, D = M + ee(h.sizeTree, T)[1], G = m + I, U = m + g - x, N = w({\n itemTop: M,\n itemBottom: D,\n viewportTop: G,\n viewportBottom: U,\n locationParams: { behavior: _, align: v, ...b }\n });\n return N ? k && ce(\n E(\n a,\n Z((j) => j === !1),\n // skips the initial publish of false, and the cleanup call.\n // but if scrollingInProgress is true, we skip the initial publish.\n Ae(Lt(a) ? 1 : 2)\n ),\n k\n ) : k && k(), N;\n }),\n Z((p) => p !== null)\n ),\n u\n ), {\n scrollIntoView: d\n };\n },\n vt(le, Ft, an, Re, ye),\n { singleton: !0 }\n), Xl = ht(\n ([\n { sizes: t, sizeRanges: e },\n { scrollTop: n, headerHeight: o },\n { initialTopMostItemIndex: r },\n { didMount: s },\n { useWindowScroll: c, windowScrollContainerState: l, windowViewportRect: a }\n ]) => {\n const u = it(), d = H(void 0), p = H(null), h = H(null);\n return V(l, p), V(a, h), ft(\n E(\n u,\n nt(t, n, c, p, h, o)\n ),\n ([g, S, C, I, x, m, y]) => {\n const k = Ol(S.sizeTree);\n I && x !== null && m !== null && (C = x.scrollTop - m.offsetTop), C -= y, g({ ranges: k, scrollTop: C });\n }\n ), V(E(d, Z(mo), z(Jl)), r), V(\n E(\n s,\n nt(d),\n Z(([, g]) => g !== void 0),\n xt(),\n z(([, g]) => g.ranges)\n ),\n e\n ), {\n getState: u,\n restoreStateFrom: d\n };\n },\n vt(le, Ft, dn, Se, So)\n);\nfunction Jl(t) {\n return { offset: t.scrollTop, index: 0, align: \"start\" };\n}\nconst Ql = ht(\n ([\n t,\n e,\n n,\n o,\n r,\n s,\n c,\n l,\n a,\n u\n ]) => ({\n ...t,\n ...e,\n ...n,\n ...o,\n ...r,\n ...s,\n ...c,\n ...l,\n ...a,\n ...u\n }),\n vt(\n yo,\n Wl,\n Se,\n qr,\n Kr,\n ql,\n Kl,\n So,\n Zl,\n ye\n )\n), ta = ht(\n ([\n {\n totalCount: t,\n sizeRanges: e,\n fixedItemSize: n,\n defaultItemSize: o,\n trackItemSizes: r,\n itemSize: s,\n data: c,\n firstItemIndex: l,\n groupIndices: a,\n statefulTotalCount: u,\n gap: d,\n sizes: p\n },\n { initialTopMostItemIndex: h, scrolledToInitialItem: g, initialItemFinalLocationReached: S },\n C,\n I,\n x,\n { listState: m, topItemsIndexes: y, ...k },\n { scrollToIndex: _ },\n v,\n { topItemCount: w },\n { groupCounts: b },\n T\n ]) => (V(k.rangeChanged, T.scrollSeekRangeChanged), V(\n E(\n T.windowViewportRect,\n z((M) => M.visibleHeight)\n ),\n C.viewportHeight\n ), {\n // input\n totalCount: t,\n data: c,\n firstItemIndex: l,\n sizeRanges: e,\n initialTopMostItemIndex: h,\n scrolledToInitialItem: g,\n initialItemFinalLocationReached: S,\n topItemsIndexes: y,\n topItemCount: w,\n groupCounts: b,\n fixedItemHeight: n,\n defaultItemHeight: o,\n gap: d,\n ...x,\n // output\n statefulTotalCount: u,\n listState: m,\n scrollToIndex: _,\n trackItemSizes: r,\n itemSize: s,\n groupIndices: a,\n // exported from stateFlagsSystem\n ...k,\n // the bag of IO from featureGroup1System\n ...T,\n ...C,\n sizes: p,\n ...I\n }),\n vt(\n le,\n dn,\n Ft,\n Xl,\n zl,\n Re,\n an,\n Ul,\n Vl,\n Vr,\n Ql\n )\n), Jn = \"-webkit-sticky\", tr = \"sticky\", Zr = Yr(() => {\n if (typeof document > \"u\")\n return tr;\n const t = document.createElement(\"div\");\n return t.style.position = Jn, t.style.position === Jn ? Jn : tr;\n});\nfunction Xr(t, e, n) {\n const o = B.useRef(null), r = B.useCallback(\n (a) => {\n if (a === null || !a.offsetParent)\n return;\n const u = a.getBoundingClientRect(), d = u.width;\n let p, h;\n if (e) {\n const g = e.getBoundingClientRect(), S = u.top - g.top;\n p = g.height - Math.max(0, S), h = S + e.scrollTop;\n } else\n p = window.innerHeight - Math.max(0, u.top), h = u.top + window.pageYOffset;\n o.current = {\n offsetTop: h,\n visibleHeight: p,\n visibleWidth: d\n }, t(o.current);\n },\n [t, e]\n ), { callbackRef: s, ref: c } = po(r, !0, n), l = B.useCallback(() => {\n r(c.current);\n }, [r, c]);\n return B.useEffect(() => {\n if (e) {\n e.addEventListener(\"scroll\", l);\n const a = new ResizeObserver(() => {\n requestAnimationFrame(l);\n });\n return a.observe(e), () => {\n e.removeEventListener(\"scroll\", l), a.unobserve(e);\n };\n } else\n return window.addEventListener(\"scroll\", l), window.addEventListener(\"resize\", l), () => {\n window.removeEventListener(\"scroll\", l), window.removeEventListener(\"resize\", l);\n };\n }, [l, e]), s;\n}\nconst Jr = B.createContext(void 0), Qr = B.createContext(void 0);\nfunction ts(t) {\n return t;\n}\nconst ea = /* @__PURE__ */ ht(() => {\n const t = H((a) => `Item ${a}`), e = H(null), n = H((a) => `Group ${a}`), o = H({}), r = H(ts), s = H(\"div\"), c = H(ze), l = (a, u = null) => zt(\n E(\n o,\n z((d) => d[a]),\n xt()\n ),\n u\n );\n return {\n context: e,\n itemContent: t,\n groupContent: n,\n components: o,\n computeItemKey: r,\n HeaderFooterTag: s,\n scrollerRef: c,\n FooterComponent: l(\"Footer\"),\n HeaderComponent: l(\"Header\"),\n TopItemListComponent: l(\"TopItemList\"),\n ListComponent: l(\"List\", \"div\"),\n ItemComponent: l(\"Item\", \"div\"),\n GroupComponent: l(\"Group\", \"div\"),\n ScrollerComponent: l(\"Scroller\", \"div\"),\n EmptyPlaceholder: l(\"EmptyPlaceholder\"),\n ScrollSeekPlaceholder: l(\"ScrollSeekPlaceholder\")\n };\n}), na = /* @__PURE__ */ ht(([t, e]) => ({ ...t, ...e }), vt(ta, ea)), oa = ({ height: t }) => /* @__PURE__ */ i.jsx(\"div\", { style: { height: t } }), ra = { position: Zr(), zIndex: 1, overflowAnchor: \"none\" }, es = { overflowAnchor: \"none\" }, sa = { ...es, display: \"inline-block\", height: \"100%\" }, er = /* @__PURE__ */ B.memo(function({ showTopList: e = !1 }) {\n const n = J(\"listState\"), o = Jt(\"sizeRanges\"), r = J(\"useWindowScroll\"), s = J(\"customScrollParent\"), c = Jt(\"windowScrollContainerState\"), l = Jt(\"scrollContainerState\"), a = s || r ? c : l, u = J(\"itemContent\"), d = J(\"context\"), p = J(\"groupContent\"), h = J(\"trackItemSizes\"), g = J(\"itemSize\"), S = J(\"log\"), C = Jt(\"gap\"), I = J(\"horizontalDirection\"), { callbackRef: x } = _l(\n o,\n g,\n h,\n e ? ze : a,\n S,\n C,\n s,\n I,\n J(\"skipAnimationFrameInResizeObserver\")\n ), [m, y] = B.useState(0);\n Co(\"deviation\", (j) => {\n m !== j && y(j);\n });\n const k = J(\"EmptyPlaceholder\"), _ = J(\"ScrollSeekPlaceholder\") || oa, v = J(\"ListComponent\"), w = J(\"ItemComponent\"), b = J(\"GroupComponent\"), T = J(\"computeItemKey\"), M = J(\"isSeeking\"), D = J(\"groupIndices\").length > 0, G = J(\"alignToBottom\"), U = J(\"initialItemFinalLocationReached\"), N = e ? {} : {\n boxSizing: \"border-box\",\n ...I ? {\n whiteSpace: \"nowrap\",\n display: \"inline-block\",\n height: \"100%\",\n paddingLeft: n.offsetTop,\n paddingRight: n.offsetBottom,\n marginLeft: m !== 0 ? m : G ? \"auto\" : 0\n } : {\n marginTop: m !== 0 ? m : G ? \"auto\" : 0,\n paddingTop: n.offsetTop,\n paddingBottom: n.offsetBottom\n },\n ...U ? {} : { visibility: \"hidden\" }\n };\n return !e && n.totalCount === 0 && k ? /* @__PURE__ */ i.jsx(k, { ...Pt(k, d) }) : /* @__PURE__ */ i.jsx(\n v,\n {\n ...Pt(v, d),\n ref: x,\n style: N,\n \"data-testid\": e ? \"virtuoso-top-item-list\" : \"virtuoso-item-list\",\n children: (e ? n.topItems : n.items).map((j) => {\n const $ = j.originalIndex, A = T($ + n.firstItemIndex, j.data, d);\n return M ? /* @__PURE__ */ Sn(\n _,\n {\n ...Pt(_, d),\n key: A,\n index: j.index,\n height: j.size,\n type: j.type || \"item\",\n ...j.type === \"group\" ? {} : { groupIndex: j.groupIndex }\n }\n ) : j.type === \"group\" ? /* @__PURE__ */ Sn(\n b,\n {\n ...Pt(b, d),\n key: A,\n \"data-index\": $,\n \"data-known-size\": j.size,\n \"data-item-index\": j.index,\n style: ra\n },\n p(j.index, d)\n ) : /* @__PURE__ */ Sn(\n w,\n {\n ...Pt(w, d),\n ...aa(w, j.data),\n key: A,\n \"data-index\": $,\n \"data-known-size\": j.size,\n \"data-item-index\": j.index,\n \"data-item-group-index\": j.groupIndex,\n style: I ? sa : es\n },\n D ? u(j.index, j.groupIndex, j.data, d) : u(j.index, j.data, d)\n );\n })\n }\n );\n}), ia = {\n height: \"100%\",\n outline: \"none\",\n overflowY: \"auto\",\n position: \"relative\",\n WebkitOverflowScrolling: \"touch\"\n}, ca = {\n outline: \"none\",\n overflowX: \"auto\",\n position: \"relative\"\n}, Hn = (t) => ({\n width: \"100%\",\n height: \"100%\",\n position: \"absolute\",\n top: 0,\n ...t ? { display: \"flex\", flexDirection: \"column\" } : {}\n}), la = {\n width: \"100%\",\n position: Zr(),\n top: 0,\n zIndex: 1\n};\nfunction Pt(t, e) {\n if (typeof t != \"string\")\n return { context: e };\n}\nfunction aa(t, e) {\n return { item: typeof t == \"string\" ? void 0 : e };\n}\nconst ua = /* @__PURE__ */ B.memo(function() {\n const e = J(\"HeaderComponent\"), n = Jt(\"headerHeight\"), o = J(\"HeaderFooterTag\"), r = $e(\n B.useMemo(() => (c) => n(we(c, \"height\")), [n]),\n !0,\n J(\"skipAnimationFrameInResizeObserver\")\n ), s = J(\"context\");\n return e ? /* @__PURE__ */ i.jsx(o, { ref: r, children: /* @__PURE__ */ i.jsx(e, { ...Pt(e, s) }) }) : null;\n}), da = /* @__PURE__ */ B.memo(function() {\n const e = J(\"FooterComponent\"), n = Jt(\"footerHeight\"), o = J(\"HeaderFooterTag\"), r = $e(\n B.useMemo(() => (c) => n(we(c, \"height\")), [n]),\n !0,\n J(\"skipAnimationFrameInResizeObserver\")\n ), s = J(\"context\");\n return e ? /* @__PURE__ */ i.jsx(o, { ref: r, children: /* @__PURE__ */ i.jsx(e, { ...Pt(e, s) }) }) : null;\n});\nfunction ns({ usePublisher: t, useEmitter: e, useEmitterValue: n }) {\n return B.memo(function({ style: s, children: c, ...l }) {\n const a = t(\"scrollContainerState\"), u = n(\"ScrollerComponent\"), d = t(\"smoothScrollTargetReached\"), p = n(\"scrollerRef\"), h = n(\"context\"), g = n(\"horizontalDirection\") || !1, { scrollerRef: S, scrollByCallback: C, scrollToCallback: I } = Nr(\n a,\n d,\n u,\n p,\n void 0,\n g\n );\n e(\"scrollTo\", I), e(\"scrollBy\", C);\n const x = g ? ca : ia;\n return /* @__PURE__ */ i.jsx(\n u,\n {\n ref: S,\n style: { ...x, ...s },\n \"data-testid\": \"virtuoso-scroller\",\n \"data-virtuoso-scroller\": !0,\n tabIndex: 0,\n ...l,\n ...Pt(u, h),\n children: c\n }\n );\n });\n}\nfunction os({ usePublisher: t, useEmitter: e, useEmitterValue: n }) {\n return B.memo(function({ style: s, children: c, ...l }) {\n const a = t(\"windowScrollContainerState\"), u = n(\"ScrollerComponent\"), d = t(\"smoothScrollTargetReached\"), p = n(\"totalListHeight\"), h = n(\"deviation\"), g = n(\"customScrollParent\"), S = n(\"context\"), { scrollerRef: C, scrollByCallback: I, scrollToCallback: x } = Nr(\n a,\n d,\n u,\n ze,\n g\n );\n return Or(() => (C.current = g || window, () => {\n C.current = null;\n }), [C, g]), e(\"windowScrollTo\", x), e(\"scrollBy\", I), /* @__PURE__ */ i.jsx(\n u,\n {\n style: { position: \"relative\", ...s, ...p !== 0 ? { height: p + h } : {} },\n \"data-virtuoso-scroller\": !0,\n ...l,\n ...Pt(u, S),\n children: c\n }\n );\n });\n}\nconst fa = ({ children: t }) => {\n const e = B.useContext(Jr), n = Jt(\"viewportHeight\"), o = Jt(\"fixedItemHeight\"), r = J(\"alignToBottom\"), s = J(\"horizontalDirection\"), c = B.useMemo(\n () => Tr(n, (a) => we(a, s ? \"width\" : \"height\")),\n [n, s]\n ), l = $e(c, !0, J(\"skipAnimationFrameInResizeObserver\"));\n return B.useEffect(() => {\n e && (n(e.viewportHeight), o(e.itemHeight));\n }, [e, n, o]), /* @__PURE__ */ i.jsx(\"div\", { style: Hn(r), ref: l, \"data-viewport-type\": \"element\", children: t });\n}, ha = ({ children: t }) => {\n const e = B.useContext(Jr), n = Jt(\"windowViewportRect\"), o = Jt(\"fixedItemHeight\"), r = J(\"customScrollParent\"), s = Xr(\n n,\n r,\n J(\"skipAnimationFrameInResizeObserver\")\n ), c = J(\"alignToBottom\");\n return B.useEffect(() => {\n e && (o(e.itemHeight), n({ offsetTop: 0, visibleHeight: e.viewportHeight, visibleWidth: 100 }));\n }, [e, n, o]), /* @__PURE__ */ i.jsx(\"div\", { ref: s, style: Hn(c), \"data-viewport-type\": \"window\", children: t });\n}, ma = ({ children: t }) => {\n const e = J(\"TopItemListComponent\") || \"div\", n = J(\"headerHeight\"), o = { ...la, marginTop: `${n}px` }, r = J(\"context\");\n return /* @__PURE__ */ i.jsx(e, { style: o, ...Pt(e, r), children: t });\n}, ga = /* @__PURE__ */ B.memo(function(e) {\n const n = J(\"useWindowScroll\"), o = J(\"topItemsIndexes\").length > 0, r = J(\"customScrollParent\"), s = r || n ? va : xa, c = r || n ? ha : fa;\n return /* @__PURE__ */ i.jsxs(s, { ...e, children: [\n o && /* @__PURE__ */ i.jsx(ma, { children: /* @__PURE__ */ i.jsx(er, { showTopList: !0 }) }),\n /* @__PURE__ */ i.jsxs(c, { children: [\n /* @__PURE__ */ i.jsx(ua, {}),\n /* @__PURE__ */ i.jsx(er, {}),\n /* @__PURE__ */ i.jsx(da, {})\n ] })\n ] });\n}), {\n Component: pa,\n usePublisher: Jt,\n useEmitterValue: J,\n useEmitter: Co\n} = /* @__PURE__ */ Er(\n na,\n {\n required: {},\n optional: {\n restoreStateFrom: \"restoreStateFrom\",\n context: \"context\",\n followOutput: \"followOutput\",\n itemContent: \"itemContent\",\n groupContent: \"groupContent\",\n overscan: \"overscan\",\n increaseViewportBy: \"increaseViewportBy\",\n totalCount: \"totalCount\",\n groupCounts: \"groupCounts\",\n topItemCount: \"topItemCount\",\n firstItemIndex: \"firstItemIndex\",\n initialTopMostItemIndex: \"initialTopMostItemIndex\",\n components: \"components\",\n atBottomThreshold: \"atBottomThreshold\",\n atTopThreshold: \"atTopThreshold\",\n computeItemKey: \"computeItemKey\",\n defaultItemHeight: \"defaultItemHeight\",\n fixedItemHeight: \"fixedItemHeight\",\n itemSize: \"itemSize\",\n scrollSeekConfiguration: \"scrollSeekConfiguration\",\n headerFooterTag: \"HeaderFooterTag\",\n data: \"data\",\n initialItemCount: \"initialItemCount\",\n initialScrollTop: \"initialScrollTop\",\n alignToBottom: \"alignToBottom\",\n useWindowScroll: \"useWindowScroll\",\n customScrollParent: \"customScrollParent\",\n scrollerRef: \"scrollerRef\",\n logLevel: \"logLevel\",\n horizontalDirection: \"horizontalDirection\",\n skipAnimationFrameInResizeObserver: \"skipAnimationFrameInResizeObserver\"\n },\n methods: {\n scrollToIndex: \"scrollToIndex\",\n scrollIntoView: \"scrollIntoView\",\n scrollTo: \"scrollTo\",\n scrollBy: \"scrollBy\",\n autoscrollToBottom: \"autoscrollToBottom\",\n getState: \"getState\"\n },\n events: {\n isScrolling: \"isScrolling\",\n endReached: \"endReached\",\n startReached: \"startReached\",\n rangeChanged: \"rangeChanged\",\n atBottomStateChange: \"atBottomStateChange\",\n atTopStateChange: \"atTopStateChange\",\n totalListHeightChanged: \"totalListHeightChanged\",\n itemsRendered: \"itemsRendered\",\n groupIndices: \"groupIndices\"\n }\n },\n ga\n), xa = /* @__PURE__ */ ns({ usePublisher: Jt, useEmitterValue: J, useEmitter: Co }), va = /* @__PURE__ */ os({ usePublisher: Jt, useEmitterValue: J, useEmitter: Co }), wa = pa, nr = {\n items: [],\n offsetBottom: 0,\n offsetTop: 0,\n top: 0,\n bottom: 0,\n itemHeight: 0,\n itemWidth: 0\n}, _a = {\n items: [{ index: 0 }],\n offsetBottom: 0,\n offsetTop: 0,\n top: 0,\n bottom: 0,\n itemHeight: 0,\n itemWidth: 0\n}, { round: or, ceil: rr, floor: En, min: Qn, max: Qe } = Math;\nfunction ya(t) {\n return {\n ..._a,\n items: t\n };\n}\nfunction sr(t, e, n) {\n return Array.from({ length: e - t + 1 }).map((o, r) => {\n const s = n === null ? null : n[r + t];\n return { index: r + t, data: s };\n });\n}\nfunction Sa(t, e) {\n return t && t.column === e.column && t.row === e.row;\n}\nfunction yn(t, e) {\n return t && t.width === e.width && t.height === e.height;\n}\nconst Ca = /* @__PURE__ */ ht(\n ([\n { overscan: t, visibleRange: e, listBoundary: n },\n { scrollTop: o, viewportHeight: r, scrollBy: s, scrollTo: c, smoothScrollTargetReached: l, scrollContainerState: a, footerHeight: u, headerHeight: d },\n p,\n h,\n { propsReady: g, didMount: S },\n { windowViewportRect: C, useWindowScroll: I, customScrollParent: x, windowScrollContainerState: m, windowScrollTo: y },\n k\n ]) => {\n const _ = H(0), v = H(0), w = H(nr), b = H({ height: 0, width: 0 }), T = H({ height: 0, width: 0 }), M = it(), D = it(), G = H(0), U = H(null), N = H({ row: 0, column: 0 }), j = it(), $ = it(), A = H(!1), L = H(0), W = H(!0), F = H(!1), X = H(!1);\n ft(\n E(\n S,\n nt(L),\n Z(([O, q]) => !!q)\n ),\n () => {\n Q(W, !1), Q(v, 0);\n }\n ), ft(\n E(\n Rt(S, W, T, b, L, F),\n Z(([O, q, et, tt, , _t]) => O && !q && et.height !== 0 && tt.height !== 0 && !_t)\n ),\n ([, , , , O]) => {\n Q(F, !0), wo(1, () => {\n Q(M, O);\n }), ce(E(o), () => {\n Q(n, [0, 0]), Q(W, !0);\n });\n }\n ), V(\n E(\n $,\n Z((O) => O != null && O.scrollTop > 0),\n se(0)\n ),\n v\n ), ft(\n E(\n S,\n nt($),\n Z(([, O]) => O != null)\n ),\n ([, O]) => {\n O && (Q(b, O.viewport), Q(T, O == null ? void 0 : O.item), Q(N, O.gap), O.scrollTop > 0 && (Q(A, !0), ce(E(o, Ae(1)), (q) => {\n Q(A, !1);\n }), Q(c, { top: O.scrollTop })));\n }\n ), V(\n E(\n b,\n z(({ height: O }) => O)\n ),\n r\n ), V(\n E(\n Rt(\n Y(b, yn),\n Y(T, yn),\n Y(N, (O, q) => O && O.column === q.column && O.row === q.row),\n Y(o)\n ),\n z(([O, q, et, tt]) => ({\n viewport: O,\n item: q,\n gap: et,\n scrollTop: tt\n }))\n ),\n j\n ), V(\n E(\n Rt(\n Y(_),\n e,\n Y(N, Sa),\n Y(T, yn),\n Y(b, yn),\n Y(U),\n Y(v),\n Y(A),\n Y(W),\n Y(L)\n ),\n Z(([, , , , , , , O]) => !O),\n z(\n ([\n O,\n [q, et],\n tt,\n _t,\n dt,\n Yt,\n fe,\n ,\n ae,\n Wt\n ]) => {\n const { row: Mt, column: fn } = tt, { height: ue, width: Be } = _t, { width: hn } = dt;\n if (fe === 0 && (O === 0 || hn === 0))\n return nr;\n if (Be === 0) {\n const Ge = _o(Wt, O), zn = Ge === 0 ? Math.max(fe - 1, 0) : Ge;\n return ya(sr(Ge, zn, Yt));\n }\n const he = rs(hn, Be, fn);\n let me, de;\n ae ? q === 0 && et === 0 && fe > 0 ? (me = 0, de = fe - 1) : (me = he * En((q + Mt) / (ue + Mt)), de = he * rr((et + Mt) / (ue + Mt)) - 1, de = Qn(O - 1, Qe(de, he - 1)), me = Qn(de, Qe(0, me))) : (me = 0, de = -1);\n const Fe = sr(me, de, Yt), { top: We, bottom: Ve } = ir(dt, tt, _t, Fe), mn = rr(O / he), gn = mn * ue + (mn - 1) * Mt - Ve;\n return { items: Fe, offsetTop: We, offsetBottom: gn, top: We, bottom: Ve, itemHeight: ue, itemWidth: Be };\n }\n )\n ),\n w\n ), V(\n E(\n U,\n Z((O) => O !== null),\n z((O) => O.length)\n ),\n _\n ), V(\n E(\n Rt(b, T, w, N),\n Z(([O, q, { items: et }]) => et.length > 0 && q.height !== 0 && O.height !== 0),\n z(([O, q, { items: et }, tt]) => {\n const { top: _t, bottom: dt } = ir(O, tt, q, et);\n return [_t, dt];\n }),\n xt(cn)\n ),\n n\n );\n const rt = H(!1);\n V(\n E(\n o,\n nt(rt),\n z(([O, q]) => q || O !== 0)\n ),\n rt\n );\n const ct = qt(\n E(\n Y(w),\n Z(({ items: O }) => O.length > 0),\n nt(_, rt),\n Z(([{ items: O }, q, et]) => et && O[O.length - 1].index === q - 1),\n z(([, O]) => O - 1),\n xt()\n )\n ), pt = qt(\n E(\n Y(w),\n Z(({ items: O }) => O.length > 0 && O[0].index === 0),\n // eslint-disable-next-line @typescript-eslint/no-unsafe-argument\n se(0),\n xt()\n )\n ), wt = qt(\n E(\n Y(w),\n nt(A),\n Z(([{ items: O }, q]) => O.length > 0 && !q),\n z(([{ items: O }]) => ({\n startIndex: O[0].index,\n endIndex: O[O.length - 1].index\n })),\n xt(Gr),\n ve(0)\n )\n );\n V(wt, h.scrollSeekRangeChanged), V(\n E(\n M,\n nt(b, T, _, N),\n z(([O, q, et, tt, _t]) => {\n const dt = Wr(O), { align: Yt, behavior: fe, offset: ae } = dt;\n let Wt = dt.index;\n Wt === \"LAST\" && (Wt = tt - 1), Wt = Qe(0, Wt, Qn(tt - 1, Wt));\n let Mt = co(q, _t, et, Wt);\n return Yt === \"end\" ? Mt = or(Mt - q.height + et.height) : Yt === \"center\" && (Mt = or(Mt - q.height / 2 + et.height / 2)), ae && (Mt += ae), { top: Mt, behavior: fe };\n })\n ),\n c\n );\n const bt = zt(\n E(\n w,\n z((O) => O.offsetBottom + O.bottom)\n ),\n 0\n );\n return V(\n E(\n C,\n z((O) => ({ width: O.visibleWidth, height: O.visibleHeight }))\n ),\n b\n ), {\n // input\n data: U,\n totalCount: _,\n viewportDimensions: b,\n itemDimensions: T,\n scrollTop: o,\n scrollHeight: D,\n overscan: t,\n scrollBy: s,\n scrollTo: c,\n scrollToIndex: M,\n smoothScrollTargetReached: l,\n windowViewportRect: C,\n windowScrollTo: y,\n useWindowScroll: I,\n customScrollParent: x,\n windowScrollContainerState: m,\n deviation: G,\n scrollContainerState: a,\n footerHeight: u,\n headerHeight: d,\n initialItemCount: v,\n gap: N,\n restoreStateFrom: $,\n ...h,\n initialTopMostItemIndex: L,\n horizontalDirection: X,\n // output\n gridState: w,\n totalListHeight: bt,\n ...p,\n startReached: pt,\n endReached: ct,\n rangeChanged: wt,\n stateChanged: j,\n propsReady: g,\n stateRestoreInProgress: A,\n ...k\n };\n },\n vt(yo, Ft, un, qr, Se, So, ye)\n);\nfunction ir(t, e, n, o) {\n const { height: r } = n;\n if (r === void 0 || o.length === 0)\n return { top: 0, bottom: 0 };\n const s = co(t, e, n, o[0].index), c = co(t, e, n, o[o.length - 1].index) + r;\n return { top: s, bottom: c };\n}\nfunction co(t, e, n, o) {\n const r = rs(t.width, n.width, e.column), s = En(o / r), c = s * n.height + Qe(0, s - 1) * e.row;\n return c > 0 ? c + e.row : c;\n}\nfunction rs(t, e, n) {\n return Qe(1, En((t + n) / (En(e) + n)));\n}\nconst ba = /* @__PURE__ */ ht(() => {\n const t = H((p) => `Item ${p}`), e = H({}), n = H(null), o = H(\"virtuoso-grid-item\"), r = H(\"virtuoso-grid-list\"), s = H(ts), c = H(\"div\"), l = H(ze), a = (p, h = null) => zt(\n E(\n e,\n z((g) => g[p]),\n xt()\n ),\n h\n ), u = H(!1), d = H(!1);\n return V(Y(d), u), {\n readyStateChanged: u,\n reportReadyState: d,\n context: n,\n itemContent: t,\n components: e,\n computeItemKey: s,\n itemClassName: o,\n listClassName: r,\n headerFooterTag: c,\n scrollerRef: l,\n FooterComponent: a(\"Footer\"),\n HeaderComponent: a(\"Header\"),\n ListComponent: a(\"List\", \"div\"),\n ItemComponent: a(\"Item\", \"div\"),\n ScrollerComponent: a(\"Scroller\", \"div\"),\n ScrollSeekPlaceholder: a(\"ScrollSeekPlaceholder\", \"div\")\n };\n}), ja = /* @__PURE__ */ ht(([t, e]) => ({ ...t, ...e }), vt(Ca, ba)), Ia = /* @__PURE__ */ B.memo(function() {\n const e = yt(\"gridState\"), n = yt(\"listClassName\"), o = yt(\"itemClassName\"), r = yt(\"itemContent\"), s = yt(\"computeItemKey\"), c = yt(\"isSeeking\"), l = Qt(\"scrollHeight\"), a = yt(\"ItemComponent\"), u = yt(\"ListComponent\"), d = yt(\"ScrollSeekPlaceholder\"), p = yt(\"context\"), h = Qt(\"itemDimensions\"), g = Qt(\"gap\"), S = yt(\"log\"), C = yt(\"stateRestoreInProgress\"), I = Qt(\"reportReadyState\"), x = $e(\n B.useMemo(\n () => (m) => {\n const y = m.parentElement.parentElement.scrollHeight;\n l(y);\n const k = m.firstChild;\n if (k) {\n const { width: _, height: v } = k.getBoundingClientRect();\n h({ width: _, height: v });\n }\n g({\n row: cr(\"row-gap\", getComputedStyle(m).rowGap, S),\n column: cr(\"column-gap\", getComputedStyle(m).columnGap, S)\n });\n },\n [l, h, g, S]\n ),\n !0,\n !1\n );\n return Or(() => {\n e.itemHeight > 0 && e.itemWidth > 0 && I(!0);\n }, [e]), C ? null : /* @__PURE__ */ i.jsx(\n u,\n {\n ref: x,\n className: n,\n ...Pt(u, p),\n style: { paddingTop: e.offsetTop, paddingBottom: e.offsetBottom },\n \"data-testid\": \"virtuoso-item-list\",\n children: e.items.map((m) => {\n const y = s(m.index, m.data, p);\n return c ? /* @__PURE__ */ i.jsx(\n d,\n {\n ...Pt(d, p),\n index: m.index,\n height: e.itemHeight,\n width: e.itemWidth\n },\n y\n ) : /* @__PURE__ */ Sn(\n a,\n {\n ...Pt(a, p),\n className: o,\n \"data-index\": m.index,\n key: y\n },\n r(m.index, m.data, p)\n );\n })\n }\n );\n}), ka = B.memo(function() {\n const e = yt(\"HeaderComponent\"), n = Qt(\"headerHeight\"), o = yt(\"headerFooterTag\"), r = $e(\n B.useMemo(() => (c) => n(we(c, \"height\")), [n]),\n !0,\n !1\n ), s = yt(\"context\");\n return e ? /* @__PURE__ */ i.jsx(o, { ref: r, children: /* @__PURE__ */ i.jsx(e, { ...Pt(e, s) }) }) : null;\n}), Ta = B.memo(function() {\n const e = yt(\"FooterComponent\"), n = Qt(\"footerHeight\"), o = yt(\"headerFooterTag\"), r = $e(\n B.useMemo(() => (c) => n(we(c, \"height\")), [n]),\n !0,\n !1\n ), s = yt(\"context\");\n return e ? /* @__PURE__ */ i.jsx(o, { ref: r, children: /* @__PURE__ */ i.jsx(e, { ...Pt(e, s) }) }) : null;\n}), $a = ({ children: t }) => {\n const e = B.useContext(Qr), n = Qt(\"itemDimensions\"), o = Qt(\"viewportDimensions\"), r = $e(\n B.useMemo(\n () => (s) => {\n o(s.getBoundingClientRect());\n },\n [o]\n ),\n !0,\n !1\n );\n return B.useEffect(() => {\n e && (o({ height: e.viewportHeight, width: e.viewportWidth }), n({ height: e.itemHeight, width: e.itemWidth }));\n }, [e, o, n]), /* @__PURE__ */ i.jsx(\"div\", { style: Hn(!1), ref: r, children: t });\n}, Ra = ({ children: t }) => {\n const e = B.useContext(Qr), n = Qt(\"windowViewportRect\"), o = Qt(\"itemDimensions\"), r = yt(\"customScrollParent\"), s = Xr(n, r, !1);\n return B.useEffect(() => {\n e && (o({ height: e.itemHeight, width: e.itemWidth }), n({ offsetTop: 0, visibleHeight: e.viewportHeight, visibleWidth: e.viewportWidth }));\n }, [e, n, o]), /* @__PURE__ */ i.jsx(\"div\", { ref: s, style: Hn(!1), children: t });\n}, Ea = /* @__PURE__ */ B.memo(function({ ...e }) {\n const n = yt(\"useWindowScroll\"), o = yt(\"customScrollParent\"), r = o || n ? La : Oa, s = o || n ? Ra : $a;\n return /* @__PURE__ */ i.jsx(r, { ...e, children: /* @__PURE__ */ i.jsxs(s, { children: [\n /* @__PURE__ */ i.jsx(ka, {}),\n /* @__PURE__ */ i.jsx(Ia, {}),\n /* @__PURE__ */ i.jsx(Ta, {})\n ] }) });\n}), {\n Component: Bu,\n usePublisher: Qt,\n useEmitterValue: yt,\n useEmitter: ss\n} = /* @__PURE__ */ Er(\n ja,\n {\n optional: {\n context: \"context\",\n totalCount: \"totalCount\",\n overscan: \"overscan\",\n itemContent: \"itemContent\",\n components: \"components\",\n computeItemKey: \"computeItemKey\",\n data: \"data\",\n initialItemCount: \"initialItemCount\",\n scrollSeekConfiguration: \"scrollSeekConfiguration\",\n headerFooterTag: \"headerFooterTag\",\n listClassName: \"listClassName\",\n itemClassName: \"itemClassName\",\n useWindowScroll: \"useWindowScroll\",\n customScrollParent: \"customScrollParent\",\n scrollerRef: \"scrollerRef\",\n logLevel: \"logLevel\",\n restoreStateFrom: \"restoreStateFrom\",\n initialTopMostItemIndex: \"initialTopMostItemIndex\"\n },\n methods: {\n scrollTo: \"scrollTo\",\n scrollBy: \"scrollBy\",\n scrollToIndex: \"scrollToIndex\"\n },\n events: {\n isScrolling: \"isScrolling\",\n endReached: \"endReached\",\n startReached: \"startReached\",\n rangeChanged: \"rangeChanged\",\n atBottomStateChange: \"atBottomStateChange\",\n atTopStateChange: \"atTopStateChange\",\n stateChanged: \"stateChanged\",\n readyStateChanged: \"readyStateChanged\"\n }\n },\n Ea\n), Oa = /* @__PURE__ */ ns({ usePublisher: Qt, useEmitterValue: yt, useEmitter: ss }), La = /* @__PURE__ */ os({ usePublisher: Qt, useEmitterValue: yt, useEmitter: ss });\nfunction cr(t, e, n) {\n return e !== \"normal\" && !(e != null && e.endsWith(\"px\")) && n(`${t} was not resolved to pixel value correctly`, e, Kt.WARN), e === \"normal\" ? 0 : parseInt(e ?? \"0\", 10);\n}\nconst Na = ({\n props: t,\n order: e,\n orderType: n,\n onOrderChange: o\n}) => {\n const [r, s] = lt(null), c = (l) => {\n let a = Et.ASC, u = l;\n l == e && (a = n == Et.ASC ? Et.DESC : n == Et.DESC ? Et.NOTHING : Et.ASC, a == Et.NOTHING && (u = null)), o(u, a);\n };\n return /* @__PURE__ */ i.jsx(\"div\", { className: `${xe.virtuoso} ${xe.row}`, children: t.map((l, a) => /* @__PURE__ */ i.jsxs(\n \"div\",\n {\n className: `${xe.cell} ${xe.cellContainer}`,\n style: { flex: l.flex ?? 1 },\n onMouseLeave: () => s(null),\n onMouseEnter: () => s(l),\n children: [\n l == r || l == e ? /* @__PURE__ */ i.jsx(\n $t,\n {\n style: { opacity: l == e ? 1 : 0.5 },\n onClick: () => c(l),\n children: l != e || n == Et.ASC ? /* @__PURE__ */ i.jsx(jr, {}) : n == Et.DESC ? /* @__PURE__ */ i.jsx(Ir, {}) : /* @__PURE__ */ i.jsx(\"div\", { style: { width: 14, height: 14 } })\n }\n ) : /* @__PURE__ */ i.jsx(\"div\", { style: { width: 18, height: 18 } }),\n /* @__PURE__ */ i.jsx(\"div\", { children: l.label })\n ]\n },\n a\n )) });\n}, Ma = \"_root_180cm_3\", Da = \"_virtuoso_180cm_21\", Aa = \"_row_180cm_33\", Ha = \"_selected_180cm_45\", Pa = \"_row2_180cm_55\", za = \"_cell_180cm_75\", Ba = \"_main_180cm_85\", ge = {\n root: Ma,\n virtuoso: Da,\n row: Aa,\n selected: Ha,\n row2: Pa,\n cell: za,\n main: Ba\n}, Fu = ({\n props: t,\n propMain: e,\n items: n = [],\n selectId: o,\n singleRow: r,\n onSelectChange: s,\n getId: c = (a) => a.toString(),\n style: l\n}) => {\n const [a, u] = lt(null), [d, p] = lt(Et.ASC), h = Ut(() => !a || d == Et.NOTHING ? n.sort((x, m) => {\n const y = I(x, e), k = I(m, e);\n return (y == null ? void 0 : y.localeCompare(k)) ?? 0;\n }) : n.sort((x, m) => {\n const y = a.getValue(x), k = a.getValue(m);\n return d == Et.ASC ? y - k : k - y;\n }), [n, a, d]), g = (x) => s(x), S = (x, m) => {\n u(x), p(m);\n }, C = (x) => c(x) == o;\n function I(x, m) {\n var y, k;\n if (m)\n return ((y = m.getShow) == null ? void 0 : y.call(m, x)) ?? ((k = m.getValue) == null ? void 0 : k.call(m, x));\n }\n return /* @__PURE__ */ i.jsxs(\"div\", { className: ge.root, children: [\n /* @__PURE__ */ i.jsx(\n Na,\n {\n props: t,\n order: a,\n orderType: d,\n onOrderChange: S\n }\n ),\n /* @__PURE__ */ i.jsx(\n wa,\n {\n className: ge.virtuoso,\n style: l,\n data: h,\n totalCount: h.length,\n itemContent: (x, m) => {\n const y = C(m), k = I(m, e), _ = y ? `${ge.selected} jack-cmp-select` : \"\", v = `jack-cmp-tbl-row ${ge.row} ${_} jack-hover-container`, w = `${ge.cell} ${ge.main}`;\n return /* @__PURE__ */ i.jsxs(\n \"div\",\n {\n className: v,\n onClick: () => g(m),\n children: [\n !!e && /* @__PURE__ */ i.jsxs(\"div\", { className: w, children: [\n k,\n /* @__PURE__ */ i.jsx(br, { absolute: !0, value: k })\n ] }),\n /* @__PURE__ */ i.jsx(\"div\", { className: ge.row2, children: t.map((b, T) => /* @__PURE__ */ i.jsx(\n \"div\",\n {\n style: { flex: b.flex ?? 1 },\n className: ge.cell,\n children: I(m, b)\n },\n T\n )) })\n ]\n }\n );\n }\n }\n )\n ] });\n}, is = (t) => /* @__PURE__ */ i.jsxs(\n \"svg\",\n {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: \"14\",\n height: \"14\",\n viewBox: \"0 0 14 14\",\n fill: \"none\",\n stroke: \"currentColor\",\n ...t,\n children: [\n /* @__PURE__ */ i.jsx(\"path\", { d: \"M7 3V11\", strokeWidth: \"2\" }),\n /* @__PURE__ */ i.jsx(\"path\", { d: \"M3 7H11\", strokeWidth: \"2\" })\n ]\n }\n), Fa = \"_root_g83ti_1\", Wa = \"_btt_new_g83ti_9\", lr = {\n root: Fa,\n btt_new: Wa\n};\nvar Va = /* @__PURE__ */ ((t) => (t[t.DELETE = 0] = \"DELETE\", t[t.UPDATE = 1] = \"UPDATE\", t[t.NEW = 2] = \"NEW\", t))(Va || {});\nfunction Ga({\n items: t,\n select: e,\n RenderRow: n,\n placeholder: o,\n readOnly: r = !1,\n keepSelectOnBlur: s,\n toggleSelect: c,\n style: l,\n onNewItem: a,\n onItemsChange: u,\n onSelectChange: d,\n fnIsVoid: p\n}, h) {\n const g = () => {\n if (!p || !t || t.length == 0) return;\n const w = t.filter((b) => !p(b));\n u(w);\n }, [S, C] = lt(-1), I = e ?? S, x = (w, b) => {\n e == null && C(w), w == -1 && s && g(), d == null || d(w, b);\n };\n Bt(() => {\n I == -1 && s && g();\n }, [I]);\n const m = (w, b) => {\n if (r) return;\n const T = [...t];\n w == null ? (T.splice(b, 1), u == null || u(T, 0)) : (T[b] = w, u == null || u(T, 1));\n }, y = (w, b) => {\n if (r) return;\n w == null && (w = t.length);\n const T = a(w);\n T != null && (t.splice(w, 0, T), u == null || u([...t], 2), k(w, b));\n }, k = (w, b) => {\n if (w == I) {\n if (!c) return;\n w = -1;\n }\n x(w, b);\n }, _ = (w) => {\n if (I == -1) return;\n let b = I;\n switch (w.key) {\n case \"ArrowUp\":\n w.preventDefault(), b--;\n break;\n case \"ArrowDown\":\n w.preventDefault(), b++;\n break;\n case \"Enter\":\n w.preventDefault(), y(I + 1);\n return;\n }\n b < 0 && (b = 0), b >= t.length && (b = t.length - 1), x(b);\n }, v = (w) => {\n w.currentTarget.contains(w.relatedTarget) || s || (x(-1), g());\n };\n return t || (t = []), /* @__PURE__ */ i.jsxs(\n \"div\",\n {\n className: lr.root,\n tabIndex: r ? -1 : 0,\n ref: h,\n style: l,\n onKeyDown: _,\n onBlur: v,\n children: [\n t.length > 0 ? t.map(\n (w, b) => /* @__PURE__ */ i.jsx(\n n,\n {\n item: w,\n placeholder: o,\n isSelect: I == b,\n readOnly: r,\n onChange: (T) => m(T, b),\n onSelect: (T) => k(b, T)\n },\n b\n )\n ) : r ? /* @__PURE__ */ i.jsx(\"div\", { className: \"jack-lbl-empty\", children: \"EMPTY LIST\" }) : null,\n !r && a && /* @__PURE__ */ i.jsx(\n $t,\n {\n className: lr.btt_new,\n onClick: (w) => y(null, w),\n children: /* @__PURE__ */ i.jsx(is, {})\n }\n )\n ]\n }\n );\n}\nconst Wu = mr(Ga), Ua = (t) => /* @__PURE__ */ i.jsx(\n \"svg\",\n {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: \"14\",\n height: \"14\",\n viewBox: \"0 0 14 14\",\n fill: \"none\",\n stroke: \"currentColor\",\n ...t,\n children: /* @__PURE__ */ i.jsx(\"rect\", { x: \"1\", y: \"1\", width: \"12\", height: \"12\", strokeWidth: \"2\" })\n }\n), qa = (t) => /* @__PURE__ */ i.jsxs(\n \"svg\",\n {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: \"14\",\n height: \"14\",\n viewBox: \"0 0 14 14\",\n fill: \"none\",\n stroke: \"currentColor\",\n ...t,\n children: [\n /* @__PURE__ */ i.jsx(\"rect\", { x: \"1\", y: \"1\", width: \"12\", height: \"12\", strokeWidth: \"2\" }),\n /* @__PURE__ */ i.jsx(\"path\", { d: \"M3 6L6 9L11 4\", strokeWidth: \"2\" })\n ]\n }\n), ar = ({\n check: t,\n trueIcon: e = /* @__PURE__ */ i.jsx(qa, {}),\n falseIcon: n = /* @__PURE__ */ i.jsx(Ua, {}),\n tabIndex: o = -1,\n style: r,\n readOnly: s,\n onChange: c\n}) => {\n const [l, a] = lt(!1), u = (d) => {\n s || c == null || c(!t, d);\n };\n return /* @__PURE__ */ i.jsx(\n \"div\",\n {\n style: { ...Ka(t, s, l), ...r },\n tabIndex: o,\n onClick: u,\n onMouseEnter: () => a(!0),\n onMouseLeave: () => a(!1),\n children: t ? e : n\n }\n );\n}, Ka = (t, e, n) => ({\n display: \"flex\",\n ...e ? null : { cursor: \"pointer\" },\n opacity: t || n && !e ? 1 : 0.5\n //padding: 5,\n}), cs = (t) => /* @__PURE__ */ i.jsxs(\n \"svg\",\n {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: \"14\",\n height: \"14\",\n viewBox: \"0 0 14 14\",\n fill: \"none\",\n stroke: \"currentColor\",\n ...t,\n children: [\n /* @__PURE__ */ i.jsx(\"circle\", { cx: \"5.5\", cy: \"5.5\", r: \"3.5\", strokeWidth: \"2\" }),\n /* @__PURE__ */ i.jsx(\"path\", { d: \"M9 9L11.5 11.5\", strokeWidth: \"2\" })\n ]\n }\n), Ya = \"_root_xpwin_1\", Za = \"_input_xpwin_29\", ur = {\n root: Ya,\n input: Za\n}, Xa = ({\n value: t,\n onChange: e,\n style: n,\n className: o = \"\"\n}) => {\n const r = (u) => e == null ? void 0 : e(u), s = () => e == null ? void 0 : e(\"\"), c = (u) => {\n u.code === \"Escape\" && s();\n }, l = (t == null ? void 0 : t.length) > 0, a = `jack-cmp-txt-finder ${ur.root} ${o}`;\n return /* @__PURE__ */ i.jsxs(\n \"div\",\n {\n className: a,\n style: n,\n children: [\n /* @__PURE__ */ i.jsx(\n He,\n {\n placeholder: \"search...\",\n className: ur.input,\n value: t,\n onChange: r,\n onKeyDown: c\n }\n ),\n l ? /* @__PURE__ */ i.jsx(\n $t,\n {\n tabIndex: -1,\n onClick: s,\n children: /* @__PURE__ */ i.jsx(ne, {})\n }\n ) : /* @__PURE__ */ i.jsx(cs, {})\n ]\n }\n );\n}, Vu = ({\n items: t,\n selects: e,\n onChangeSelects: n,\n renderRow: o = (r) => r\n}) => {\n const [r, s] = lt(null), [c, l] = lt(null), a = Ut(() => !c || c.length == 0 ? t : t.filter((g) => g.toLowerCase().includes(c)), [c, t]), u = (g) => {\n const S = e.indexOf(g), C = [...e];\n S != -1 ? C.splice(S, 1) : C.push(g), n(C);\n }, d = (g) => {\n s(g), Gs(\"text-find-list-multi}\", () => l(g.trim().toLowerCase()), t.length > 1e3 ? 2e3 : 200);\n }, p = (g) => {\n n(g ? [...t] : []);\n };\n (c == null ? void 0 : c.length) > 0;\n const h = e.length == t.length;\n return !t || t.length == 0 ? /* @__PURE__ */ i.jsx(\"div\", { className: \"jack-lbl-empty\", children: \"EMPTY LIST\" }) : /* @__PURE__ */ i.jsxs(\"div\", { style: { display: \"flex\", flexDirection: \"column\" }, children: [\n /* @__PURE__ */ i.jsxs(\"div\", { style: { display: \"flex\", position: \"relative\", alignItems: \"center\", margin: 3 }, children: [\n /* @__PURE__ */ i.jsx(\n ar,\n {\n style: { marginLeft: 3, marginRight: 5 },\n check: h,\n onChange: p\n }\n ),\n /* @__PURE__ */ i.jsx(\n Xa,\n {\n value: r,\n onChange: d\n }\n )\n ] }),\n /* @__PURE__ */ i.jsx(\n ln,\n {\n style: { maxHeight: 400, overflowY: \"auto\" },\n items: a,\n select: e,\n RenderRow2: (g, S) => /* @__PURE__ */ i.jsxs(\"div\", { style: { padding: \"4px 6px\", display: \"flex\", alignItems: \"center\", gap: \"4px\", flex: 1 }, children: [\n /* @__PURE__ */ i.jsx(\n ar,\n {\n check: e.indexOf(g) != -1,\n onChange: (C) => u(g)\n }\n ),\n o(g, S)\n ] })\n }\n )\n ] });\n}, Ja = \"_root_1vx6c_9\", Qa = \"_full_height_1vx6c_45\", tu = \"_title_1vx6c_53\", eu = \"_text_1vx6c_63\", nu = \"_body_1vx6c_77\", Ze = {\n root: Ja,\n full_height: Qa,\n title: tu,\n text: eu,\n body: nu\n}, bo = ({\n store: t,\n open: e,\n title: n,\n width: o = \"fit-content\",\n fullHeight: r,\n top: s = null,\n style: c,\n className: l,\n children: a,\n /** se minore di 0 non chiude automaticamente */\n timeoutClose: u = 200,\n noCloseOnClickParent: d,\n onClose: p\n}) => {\n const h = Nt(t), [g, S] = lt(null), C = Ut(() => e ? document.getElementById(`dialog_${h.uuid}`) : null, [e]), [I, x] = lt(null);\n Bt(() => {\n if (!g) return;\n const k = new ResizeObserver((_) => {\n let v = null;\n _.forEach((w) => v = w.contentRect), x(v);\n });\n return k.observe(g), () => k.unobserve(g);\n }, [g]), Bt(() => {\n const k = (_) => {\n if (!(!e || !g || !_.target) && !g.contains(_.target)) {\n if (d) {\n const v = document.getElementById(h.uuid);\n if (_.target.id != `dialog_${h.uuid}` && v.contains(_.target)) return;\n }\n u > 0 ? setTimeout(() => p == null ? void 0 : p(_), u) : p == null || p(_);\n }\n };\n if (e && g) {\n if (u < 0) return;\n document.addEventListener(\"mousedown\", k);\n }\n return () => {\n u < 0 || document.removeEventListener(\"mousedown\", k);\n };\n }, [e, g]);\n const m = Ut(() => {\n if (s == null) return 0;\n if (!g || e == !1) return;\n const _ = g.getBoundingClientRect().height, v = document.documentElement.scrollHeight;\n let w = s - _ / 2;\n return w + _ > v && (w = v - _ - 20), w < 0 && (w = 0), w;\n }, [g, e, s, I]), y = `${Ze.root} ${r ? Ze.full_height : \"\"} jack-card-dialog`;\n return C && gr(\n /* @__PURE__ */ i.jsxs(\n \"div\",\n {\n className: y,\n ref: (k) => S(k),\n style: ou(o, m),\n children: [\n n != null ? /* @__PURE__ */ i.jsxs(\"div\", { className: `${Ze.title} jack-title`, children: [\n /* @__PURE__ */ i.jsx(\"div\", { className: Ze.text, children: n }),\n /* @__PURE__ */ i.jsx($t, { onClick: (k) => p(k), children: /* @__PURE__ */ i.jsx(ne, {}) })\n ] }) : /* @__PURE__ */ i.jsx(\"div\", { style: { height: 12 } }),\n /* @__PURE__ */ i.jsx(\"div\", { className: `${Ze.body} ${l}`, style: c, children: a })\n ]\n }\n ),\n C\n );\n}, ou = (t, e) => ({\n width: t,\n marginTop: e\n //transform: `translateX(calc(100% - 3px))`,\n}), ls = ({\n element: t,\n ...e\n}) => {\n const n = Ut(() => t ? t.getBoundingClientRect().y : null, [t]);\n return /* @__PURE__ */ i.jsx(\n bo,\n {\n ...e,\n open: n != null,\n top: n,\n children: e.children\n }\n );\n};\nfunction Gu({\n store: t,\n items: e,\n readOnly: n,\n width: o = 150,\n RenderLabel: r,\n RenderForm: s,\n onDelete: c,\n style: l\n}) {\n const a = Te(null), [u, d] = lt(null), [p, h] = lt(null), g = (x, m) => {\n h(x), d(m.target);\n }, S = (x) => {\n h(-1), d(x.target);\n }, C = () => {\n h(-1), d(null);\n };\n e || (e = []);\n const I = e[p];\n return /* @__PURE__ */ i.jsxs(i.Fragment, { children: [\n /* @__PURE__ */ i.jsxs(\"div\", { style: l, ref: a, children: [\n e.length > 0 ? e.map(\n (x, m) => /* @__PURE__ */ i.jsx(\n ho,\n {\n selected: m == p,\n onClick: (y) => g(m, y),\n enterRender: !n && /* @__PURE__ */ i.jsx(ne, { onClick: () => c(m) }),\n readOnly: n,\n children: /* @__PURE__ */ i.jsx(r, { item: x, index: m })\n },\n m\n )\n ) : n ? /* @__PURE__ */ i.jsx(\"div\", { className: \"jack-lbl-empty\", children: \"EMPTY LIST\" }) : null,\n !n && /* @__PURE__ */ i.jsx(\n $t,\n {\n style: { backgroundColor: \"#00000010\" },\n onClick: S,\n children: /* @__PURE__ */ i.jsx(is, {})\n }\n )\n ] }),\n /* @__PURE__ */ i.jsx(\n ls,\n {\n element: u,\n store: t,\n width: o,\n title: \"AUTH\",\n onClose: (x) => {\n a && a.current.contains(x.target) || (h(-1), d(null));\n },\n children: /* @__PURE__ */ i.jsx(\n s,\n {\n item: I,\n index: p,\n onClose: C\n }\n )\n }\n )\n ] });\n}\nconst Uu = ({\n item: t,\n isSelect: e,\n readOnly: n = !1,\n onChange: o,\n onSelect: r\n}) => {\n const s = () => o == null ? void 0 : o(null);\n return /* @__PURE__ */ i.jsx(\n fo,\n {\n style: ru,\n enterRender: !n && /* @__PURE__ */ i.jsx($t, { onClick: s, children: /* @__PURE__ */ i.jsx(ne, {}) }),\n children: /* @__PURE__ */ i.jsx(no, { style: { flex: 1, padding: \"3px 5px\" }, onClick: r, isSelect: e, children: t ?? \"\" })\n }\n );\n}, ru = {\n //minHeight: 22,\n display: \"flex\",\n alignItems: \"stretch\"\n}, su = ({\n decimals: t,\n min: e,\n max: n,\n value: o,\n ...r\n}) => {\n const [s, c] = lt(() => (o == null ? void 0 : o.toString()) ?? \"\");\n Bt(() => {\n o == null ? c(\"\") : Number.isNaN(o) || c(o.toString());\n }, [o]);\n const l = (u) => {\n var p;\n u = u == null || u.length == 0 ? \"\" : u.replace(t > 0 ? /[^0-9.,+-]/g : /[^0-9+-]/g, \"\");\n const d = Number.parseFloat(u);\n !Number.isNaN(d) && ((p = r.onChange) == null || p.call(r, d), d != d) || c(u);\n }, a = () => {\n var d;\n let u = Number.parseFloat(s);\n if ((u == null || isNaN(u)) && (u = 0), e != null && u < e && (u = e), n != null && u > n && (u = n), t != null) {\n const p = 10 ** t;\n u = Math.floor(u * p) / p;\n }\n (d = r.onChange) == null || d.call(r, u), c(u.toString());\n };\n return /* @__PURE__ */ i.jsx(\n He,\n {\n ...r,\n value: s,\n onChange: l,\n onBlur: a\n }\n );\n}, qu = ({\n item: t,\n isSelect: e,\n readOnly: n = !1,\n placeholder: o,\n onChange: r,\n onSelect: s\n}) => {\n const c = (u) => {\n (u.key == \"Delete\" || u.key == \"Backspace\") && iu(t) && (u.preventDefault(), r == null || r(null));\n }, l = (u) => r == null ? void 0 : r(u), a = () => r == null ? void 0 : r(null);\n return /* @__PURE__ */ i.jsx(\n fo,\n {\n style: cu,\n enterRender: !n && /* @__PURE__ */ i.jsx($t, { onClick: a, children: /* @__PURE__ */ i.jsx(ne, {}) }),\n children: /* @__PURE__ */ i.jsx(\n su,\n {\n style: { flex: 1 },\n value: t,\n placeholder: o,\n readOnly: n,\n focus: e,\n onChange: l,\n onKeyDown: c,\n onFocus: s\n }\n )\n }\n );\n}, iu = (t) => t == null, cu = {\n //minHeight: 24,\n display: \"flex\",\n alignItems: \"center\"\n}, Ku = ({\n item: t,\n isSelect: e,\n readOnly: n = !1,\n placeholder: o,\n onChange: r,\n onSelect: s\n}) => {\n const c = (u) => {\n (u.key == \"Delete\" || u.key == \"Backspace\") && lu(t) && (u.preventDefault(), r == null || r(null));\n }, l = (u) => r == null ? void 0 : r(u), a = () => r == null ? void 0 : r(null);\n return /* @__PURE__ */ i.jsx(\n fo,\n {\n style: au,\n enterRender: !n && /* @__PURE__ */ i.jsx($t, { onClick: a, children: /* @__PURE__ */ i.jsx(ne, {}) }),\n children: /* @__PURE__ */ i.jsx(\n He,\n {\n multiline: !0,\n style: { flex: 1 },\n value: t,\n placeholder: o,\n readOnly: n,\n focus: e,\n onChange: l,\n onKeyDown: c,\n onFocus: s\n }\n )\n }\n );\n}, lu = (t) => !t || t.trim().length == 0, au = {\n //minHeight: 24,\n display: \"flex\",\n alignItems: \"center\"\n}, Yu = ({\n item: t,\n isSelect: e\n}) => /* @__PURE__ */ i.jsx(\"div\", { className: \"jack-list-row\", children: (t == null ? void 0 : t.toUpperCase()) ?? \"\" }), Zu = ({\n store: t\n}) => {\n const e = Nt(t), n = (r) => {\n e.alert.open = !1, t.setAlert({ ...e.alert }), e.alert.resolve(r);\n }, o = e.alert;\n return /* @__PURE__ */ i.jsxs(\n bo,\n {\n title: o.title,\n width: 200,\n open: o.open,\n store: t,\n onClose: () => n(!1),\n children: [\n /* @__PURE__ */ i.jsx(\"div\", { className: \"jack-lbl-prop-title\", children: \"DANGER\" }),\n /* @__PURE__ */ i.jsx(\"div\", { style: { fontSize: 13, fontWeight: 500 }, children: o.body }),\n /* @__PURE__ */ i.jsx(\"div\", { className: \"jack-bars-alert-bg\", style: { height: 20, margin: \"10px 0px\" } }),\n /* @__PURE__ */ i.jsxs(\"div\", { style: { display: \"flex\", gap: 15 }, children: [\n /* @__PURE__ */ i.jsx(\n eo,\n {\n children: o.labelOk,\n onClick: () => n(!0)\n }\n ),\n /* @__PURE__ */ i.jsx(\n eo,\n {\n children: o.labelCancel,\n onClick: () => n(!1)\n }\n )\n ] })\n ]\n }\n );\n}, as = (t) => /* @__PURE__ */ i.jsx(\n \"svg\",\n {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: \"14\",\n height: \"14\",\n viewBox: \"0 0 14 14\",\n fill: \"none\",\n stroke: \"currentColor\",\n ...t,\n children: /* @__PURE__ */ i.jsx(\"path\", { d: \"M5 3L9 7L5 11\", strokeWidth: \"2\" })\n }\n), Xu = ({\n items: t,\n RenderRow: e = ({ item: l }) => /* @__PURE__ */ i.jsx(\"div\", { className: \"jack-list-row\", children: (l == null ? void 0 : l.toString()) ?? \"\" }),\n select: n,\n style: o,\n readOnly: r,\n onSelect: s,\n ...c\n}) => {\n const [l, a] = lt(null), u = (h) => a(l ? null : h.target), d = (h) => {\n a(null), s(h);\n };\n if (!t) return null;\n const p = e({ item: t[n] });\n return /* @__PURE__ */ i.jsxs(i.Fragment, { children: [\n /* @__PURE__ */ i.jsx(\n ho,\n {\n style: { padding: 0 },\n onClick: u,\n enterRender: /* @__PURE__ */ i.jsx(as, { style: { opacity: 0.5 } }),\n children: p\n }\n ),\n /* @__PURE__ */ i.jsx(\n ls,\n {\n ...c,\n title: null,\n element: l,\n onClose: () => a(null),\n children: /* @__PURE__ */ i.jsx(\n ln,\n {\n select: n,\n items: t,\n RenderRow: e,\n onSelect: d,\n readOnly: r\n }\n )\n }\n )\n ] });\n}, uu = \"_root_1mte4_5\", du = \"_disabled_1mte4_51\", dr = {\n root: uu,\n disabled: du\n}, Ju = ({\n className: t = \"\",\n onClick: e,\n children: n,\n disabled: o,\n style: r\n}) => {\n const s = (u) => {\n o || e == null || e(u);\n }, c = (u) => {\n !o && (u.code === \"Space\" || u.code == \"Enter\") && (e == null || e(u));\n }, l = o ? `${dr.disabled} jack-cmp-disabled` : \"\", a = `jack-cmp jack-cmp-float ${dr.root} ${l} ${t}`;\n return /* @__PURE__ */ i.jsx(\n \"div\",\n {\n style: r,\n tabIndex: -1,\n className: a,\n onClick: s,\n onKeyDown: c,\n children: n\n }\n );\n}, Qu = ({\n ...t\n}) => {\n const e = () => {\n const n = Vs(t.value);\n t.onChange(n.isValid() ? n.format(\"YYYY-MM-DD HH:mm:ss\") : \"\");\n };\n return /* @__PURE__ */ i.jsx(\n He,\n {\n ...t,\n placeholder: \"YYYY-MM-DD hh:mm:ss\",\n onBlur: e\n }\n );\n}, fu = \"_root_1vyfb_1\", hu = \"_input_1vyfb_45\", fr = {\n root: fu,\n input: hu\n}, td = ({\n value: t,\n onChange: e,\n style: n\n}) => {\n const o = (a) => e == null ? void 0 : e(a), r = () => e == null ? void 0 : e(\"\"), s = (a) => {\n a.code === \"Escape\" && r();\n }, c = (t == null ? void 0 : t.length) > 0, l = `jack-cmp-txt-finder ${fr.root}`;\n return /* @__PURE__ */ i.jsxs(\n \"div\",\n {\n className: l,\n style: n,\n children: [\n /* @__PURE__ */ i.jsx(\n He,\n {\n placeholder: \"search...\",\n className: fr.input,\n value: t,\n onChange: o,\n onKeyDown: s\n }\n ),\n c ? /* @__PURE__ */ i.jsx(\n $t,\n {\n tabIndex: -1,\n onClick: r,\n children: /* @__PURE__ */ i.jsx(ne, {})\n }\n ) : /* @__PURE__ */ i.jsx(cs, {})\n ]\n }\n );\n}, mu = (t) => /* @__PURE__ */ i.jsx(\n \"svg\",\n {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: \"14\",\n height: \"14\",\n viewBox: \"0 0 14 14\",\n fill: \"none\",\n stroke: \"currentColor\",\n ...t,\n children: /* @__PURE__ */ i.jsx(\"path\", { d: \"M3 9L7 5L11 9\", strokeWidth: \"2\" })\n }\n), ed = ({\n title: t,\n children: e,\n open: n,\n disabled: o,\n style: r\n}) => {\n const [s, c] = lt(n ?? !0);\n Bt(() => {\n n != null && c(n);\n }, [n]);\n const l = () => {\n o || c(!s);\n };\n return /* @__PURE__ */ i.jsxs(\"div\", { className: pe.root_title, style: r, children: [\n /* @__PURE__ */ i.jsxs(\n \"div\",\n {\n className: `jack-lbl-prop-title ${pe.title} ${o ? pe.disabled : \"\"}`,\n style: { alignItems: \"center\", display: \"flex\", justifyContent: \"center\", cursor: \"pointer\" },\n onClick: l,\n children: [\n /* @__PURE__ */ i.jsx(\"div\", { className: pe.title_text, children: t }),\n !o && /* @__PURE__ */ i.jsx(\"div\", { className: pe.title_icon, children: s ? /* @__PURE__ */ i.jsx(Sr, {}) : /* @__PURE__ */ i.jsx(mu, {}) })\n ]\n }\n ),\n /* @__PURE__ */ i.jsx(\n Cr,\n {\n open: s,\n className: pe.title_accordion,\n children: e\n }\n )\n ] });\n}, nd = ({\n style: t\n}) => /* @__PURE__ */ i.jsx(\"svg\", { width: \"120\", height: \"120\", viewBox: \"0 0 120 120\", style: t, children: /* @__PURE__ */ i.jsx(\n \"circle\",\n {\n cx: \"60\",\n cy: \"60\",\n r: 50,\n fill: \"none\",\n stroke: \"currentColor\",\n strokeWidth: \"15\"\n }\n) }), gu = ({\n perc: t,\n animTime: e = 300,\n style: n\n}) => {\n t = t < 0 ? 0 : t > 1 ? 1 : t;\n const o = 50, r = 2 * Math.PI * o, s = (1 - t) * r;\n return /* @__PURE__ */ i.jsxs(\"svg\", { width: \"120\", height: \"120\", viewBox: \"0 0 120 120\", style: n, children: [\n /* @__PURE__ */ i.jsx(\n \"circle\",\n {\n className: \"jack-ani-color\",\n cx: \"60\",\n cy: \"60\",\n r: o,\n fill: \"none\",\n stroke: \"currentColor\",\n strokeWidth: \"15\"\n }\n ),\n /* @__PURE__ */ i.jsx(\n \"circle\",\n {\n cx: \"60\",\n cy: \"60\",\n r: o,\n fill: \"none\",\n stroke: \"currentColor\",\n strokeWidth: \"15\",\n strokeDasharray: r,\n strokeDashoffset: s,\n style: { transition: `stroke-dashoffset ${e}ms`, color: \"var(--cmp-select-bg)\" },\n transform: \"rotate(-90 60 60)\"\n }\n )\n ] });\n}, pu = ({\n style: t\n}) => {\n const n = 2 * Math.PI * 50, o = (1 - 0.15) * n;\n return /* @__PURE__ */ i.jsxs(\"svg\", { width: \"120\", height: \"120\", viewBox: \"0 0 120 120\", style: t, children: [\n /* @__PURE__ */ i.jsx(\n \"circle\",\n {\n className: \"jack-ani-color\",\n cx: \"60\",\n cy: \"60\",\n r: 50,\n fill: \"none\",\n stroke: \"currentColor\",\n strokeWidth: \"15\"\n }\n ),\n /* @__PURE__ */ i.jsx(\n \"circle\",\n {\n style: { color: \"var(--cmp-select-bg)\" },\n className: \"jack-ani-rot-loop color-fg\",\n cx: \"60\",\n cy: \"60\",\n r: 50,\n fill: \"none\",\n stroke: \"currentColor\",\n strokeWidth: \"15\",\n strokeDasharray: n,\n strokeDashoffset: o\n }\n )\n ] });\n}, xu = ({\n state: t,\n timeout: e,\n interval: n = 1e3,\n style: o,\n onTimeout: r,\n onInterval: s\n}) => {\n const [c, l] = lt(0), [a, u] = lt(0), d = Te(0), p = Te(null);\n Bt(() => (g(), t == 1 && e > 0 ? (d.current = Date.now(), u(n), l(0), S()) : (t == 0 || t == 2) && (u(10), l(0)), () => g()), [t, e]);\n const h = async () => {\n let x = (Date.now() - d.current) / e, m = x + n / e;\n x >= 1 ? (r == null || r(), u(100), l(0), await Ln(100), d.current = Date.now(), m = n / e) : s == null || s(), u(n), l(m), S();\n }, g = () => {\n p.current && (clearTimeout(p.current), p.current = null);\n }, S = () => {\n p.current && g(), p.current = setTimeout(h, n);\n };\n return t == 2 ? /* @__PURE__ */ i.jsx(\n pu,\n {\n style: o\n }\n ) : /* @__PURE__ */ i.jsx(\n gu,\n {\n style: o,\n perc: c,\n animTime: a\n }\n );\n};\nvar Ie = /* @__PURE__ */ ((t) => (t[t.STOP = 0] = \"STOP\", t[t.PLAY = 1] = \"PLAY\", t[t.LOADING = 2] = \"LOADING\", t))(Ie || {});\nconst vu = (t) => /* @__PURE__ */ i.jsx(\n \"svg\",\n {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: \"14\",\n height: \"14\",\n viewBox: \"0 0 14 14\",\n fill: \"none\",\n stroke: \"currentColor\",\n ...t,\n children: /* @__PURE__ */ i.jsx(\"path\", { d: \"M9 3L5 7L9 11\", strokeWidth: \"2\" })\n }\n), wu = (t) => /* @__PURE__ */ i.jsxs(\n \"svg\",\n {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: \"14\",\n height: \"14\",\n viewBox: \"0 0 14 14\",\n fill: \"none\",\n stroke: \"currentColor\",\n ...t,\n children: [\n /* @__PURE__ */ i.jsx(\"path\", { d: \"M5.81718 11.9327C5.13825 11.7977 4.51461 11.4643 4.02513 10.9749C3.53564 10.4854 3.2023 9.86173 3.06725 9.18279C2.9322 8.50386 3.00152 7.80013 3.26642 7.16059C4.37465 4.48509 7.5 6 10 5.99996\", strokeWidth: \"2\" }),\n /* @__PURE__ */ i.jsx(\"path\", { d: \"M7.5 2.5L11 6L7.5 9.5\", strokeWidth: \"2\" })\n ]\n }\n), _u = \"_root_1vd8v_1\", yu = \"_circle_1vd8v_19\", Su = \"_enter_1vd8v_35\", Cu = \"_divider_1vd8v_43\", bu = \"_btt_1vd8v_53\", ju = \"_btt_hover_1vd8v_65\", Ne = {\n root: _u,\n circle: yu,\n enter: Su,\n divider: Cu,\n btt: bu,\n btt_hover: ju\n}, hr = [\n { label: \"MANUAL\", polling: 0, mode: Ot.MANUAL },\n { label: \"PARENT\", polling: 0, mode: Ot.PARENT },\n { label: \"1 SECOND\", polling: 1e3, mode: Ot.POLLING },\n { label: \"5 SECONDS\", polling: 5e3, mode: Ot.POLLING },\n { label: \"10 SECONDS\", polling: 1e4, mode: Ot.POLLING },\n { label: \"1 MINUTE\", polling: 1e3 * 60, mode: Ot.POLLING },\n { label: \"10 MINUTES\", polling: 1e3 * 600, mode: Ot.POLLING }\n], od = ({\n store: t,\n storeView: e,\n tabIndex: n = -1,\n style: o\n}) => {\n e = e ?? t;\n const r = Nt(t);\n e != t && Nt(e);\n const [s, c] = lt(!1), [l, a] = lt(0), [u, d] = lt(!1), p = async () => {\n t.fetch();\n }, h = (_) => {\n a(_);\n const v = hr[_];\n v && (t.setLoadingMode(v.mode), t.setPollingTime(v.polling), c(!1));\n }, g = () => {\n r.loadingState == re.LOADING ? t.fetchAbort() : r.loadingState == re.IDLE ? t.fetch() : r.loadingState == re.ERROR && t.setLoadingState(re.IDLE);\n }, S = Ut(() => r.loadingState == re.ERROR ? Ie.STOP : r.loadingState == re.LOADING ? Ie.LOADING : {\n [Ot.MANUAL]: Ie.STOP,\n [Ot.PARENT]: Ie.STOP,\n [Ot.POLLING]: Ie.PLAY\n }[r.loadingMode] ?? Ie.STOP, [r.loadingMode, r.loadingState]), C = r.pollingTime, I = !!r.parent, x = r.loadingState == re.ERROR, m = r.loadingState == re.LOADING, y = r.loadingMode == Ot.PARENT, k = x ? \"red\" : o.backgroundColor ?? \"rgba(0,0,0,.4)\";\n return /* @__PURE__ */ i.jsxs(i.Fragment, { children: [\n /* @__PURE__ */ i.jsxs(\n \"div\",\n {\n style: { ...o, backgroundColor: null, color: k },\n className: `${Ne.root}`,\n onMouseEnter: () => d(!0),\n onMouseLeave: () => d(!1),\n children: [\n /* @__PURE__ */ i.jsx(\n xu,\n {\n style: { width: 24, height: 24, color: k },\n state: S,\n timeout: C,\n interval: 1e3,\n onTimeout: p\n }\n ),\n /* @__PURE__ */ i.jsx(\"div\", { className: `${Ne.btt} ${Ne.btt_hover}`, children: /* @__PURE__ */ i.jsx(\n $t,\n {\n style: { color: \"var(--cmp-select-bg)\" },\n tabIndex: n,\n onClick: () => c(!0),\n children: /* @__PURE__ */ i.jsx(as, {})\n }\n ) }),\n /* @__PURE__ */ i.jsx(\n \"div\",\n {\n className: `${Ne.circle} jack-ani-color ${u ? Ne.enter : \"\"}`,\n onClick: g,\n children: m ? /* @__PURE__ */ i.jsx(ne, {}) : x ? /* @__PURE__ */ i.jsx(yr, { style: { width: 14, height: 14 } }) : /* @__PURE__ */ i.jsx(i.Fragment, { children: y ? /* @__PURE__ */ i.jsx(vu, {}) : /* @__PURE__ */ i.jsx(wu, {}) })\n }\n )\n ]\n }\n ),\n /* @__PURE__ */ i.jsx(\n bo,\n {\n open: s,\n title: \"AUTORELOAD\",\n store: e,\n onClose: () => c(!1),\n children: /* @__PURE__ */ i.jsx(\n ln,\n {\n items: hr,\n select: l,\n onSelect: h,\n RenderRow2: (_) => _.mode == Ot.PARENT && !I ? null : /* @__PURE__ */ i.jsx(\"div\", { className: `jack-list-row ${_.mode == Ot.PARENT ? Ne.divider : \"\"}`, children: _.label })\n }\n )\n }\n )\n ] });\n}, rd = {\n state: () => ({\n /** identificativo della VIEW */\n uuid: _r(),\n /** tipo di VIEW */\n type: null,\n /** indica se la VIEW è draggabile o no */\n draggable: !0,\n /** indica se la VIEW si puo' rimuovere dal DOCK */\n unclosable: !1,\n /** indica se è possibile pinnare questa CARD */\n pinnable: !0,\n /** si puo' draggare dentro qualcosa */\n droppable: !1,\n /** indica lo STATO di visualizzaizone */\n size: Tt.NORMAL,\n sizeForce: !1,\n /** indica che la card è temporaneamente disabilitata */\n disabled: !1,\n /** il width \"normale\" */\n width: 300,\n widthMin: 80,\n widthMax: 600,\n widthCompact: 40,\n /** colore caratteristico della VIEW */\n //colorVar: COLOR_VAR.DEFAULT,\n /** il corrente stato di animazione */\n docAnim: ut.EXIT,\n /** disabilita qualsiasi animazione */\n docAniDisabled: !1,\n /** il PARENT LINKED di questa CARD */\n parent: null,\n /** la CARD LINKED a questa */\n linked: null,\n /** il GROUP dove è visualizzata questa CARD */\n group: null,\n snackbar: {\n open: !1\n },\n alert: {\n open: !1\n }\n }),\n getters: {\n //#region OVERRIDABLE\n /** restituisce il width effettivo */\n getWidth: (t, e) => Ct.state.zenCard == e ? e.state.widthMax : e.state.size == Tt.COMPACT ? e.state.widthCompact : e.state.width,\n getTitle: (t, e) => null,\n getSubTitle: (t, e) => null,\n getSerialization: (t, e) => {\n var n;\n return {\n uuid: e.state.uuid,\n type: e.state.type,\n size: e.state.size,\n linked: (n = e.state.linked) == null ? void 0 : n.getSerialization()\n };\n }\n //#endregion\n },\n actions: {\n //#region OVERRIDABLE\n /** \n * quando questa CARD è linked ad un parent \n * se il parent == null allora la CARD è stata unlinkata\n */\n onLinked: (t, e) => {\n },\n /** è inserito in un DECK */\n onInsertion: (t, e) => {\n },\n /** è rimosso dal corrente DECK */\n onRemoval: (t, e) => {\n },\n /** quando viene rimosso dalla deck cioe' si preme il bottone di chiusura */\n onRemoveFromDeck: (t, e) => {\n var n;\n e.state.group.remove({ view: e, anim: !0 }), (n = e.fetchAbort) == null || n.call(e);\n },\n /** quando viene droppato un elemento su questa card */\n onDrop: (t, e) => {\n },\n /** creazione della card dalla serializzazione */\n setSerialization: (t, e) => {\n e.state.uuid = t.uuid, e.state.size = t.size;\n },\n //#endregion\n // LINKED una CARD a questa. Se c'era gia' una CARD la elimina.\n setLinked: (t, e) => (t ? (t.state.parent = e, te([t], (n) => {\n n.state.group = e.state.group;\n }), e.state.linked = t) : (e.state.linked && (e.state.linked.state.parent = null, te([e.state.linked], (n) => {\n n.state.group = null;\n })), e.state.linked = null), e),\n docAnim: async (t, e) => {\n let n = 0, o = !1;\n const r = e.state.docAnim;\n let s = null;\n if (!(t == ut.SHOWING && r == ut.SHOW)) {\n {\n if (t == ut.EXITING && r == ut.EXIT)\n return;\n t == ut.SHOWING && r == ut.EXITING || t == ut.EXITING && r == ut.SHOWING ? (n = je, o = !0) : t == ut.EXITING ? (n = je, s = ut.EXIT) : (t == ut.SHOWING || t == ut.SIZING) && (n = je, s = ut.SHOW);\n }\n n > 0 ? (s == null && (s = t), o || e.setDocAnim(t), await Ln(je), e.setDocAnim(s)) : e.setDocAnim(t);\n }\n },\n async alertOpen(t, e) {\n return new Promise((n, o) => {\n t.resolve = n, e.setAlert({\n labelCancel: \"CANCEL\",\n labelOk: \"OK\",\n title: \"ALERT\",\n open: !0,\n ...t\n });\n });\n }\n },\n mutators: {\n setSize: (t, e) => (e.docAnim(ut.SIZING), { size: t }),\n setWidth: (t) => ({ width: t }),\n setDisabled: (t) => ({ disabled: t }),\n setDocAnim: (t) => ({ docAnim: t }),\n setSnackbar: (t) => ({ snackbar: t }),\n setAlert: (t) => ({ alert: t })\n }\n //onListenerChange: (store: ViewStore, type: LISTENER_CHANGE) => { },\n // // [II] da sistemare trovare un modo per avere puntualmente la connection SE la CARD è collegata con una connection\n // onListenerChange: (store: ViewStore, type: LISTENER_CHANGE) => {\n // \tif (store._listeners.size == 1 && type == LISTENER_CHANGE.ADD) {\n // \t\tconst cnnId = store.state.type == DOC_TYPE.CONNECTION ? store.state[\"connection\"]?.id : store.state[\"connectionId\"]\n // \t\tif (cnnId) socketPool.create(`global::${cnnId}`, cnnId)\n // \t} else if (store._listeners.size == 0) {\n // \t\tconst cnnId = store.state.type == DOC_TYPE.CONNECTION ? store.state[\"connection\"]?.id : store.state[\"connectionId\"]\n // \t\tif (cnnId) socketPool.destroy(`global::${cnnId}`)\n // \t\tstore[\"fetchAbort\"]?.()\n // \t}\n // }\n}, sd = {\n state: {\n /** tutte le CARD nel DECK */\n all: []\n },\n getters: {\n getById(t, e) {\n return t ? In(e.state.all, t) : null;\n },\n getIndexByView(t, e) {\n return e.state.all.findIndex((n) => n == t);\n }\n },\n actions: {\n /** aggiunge una CARD direttamente nel DECK */\n async add({ view: t, index: e, anim: n = !1 }, o) {\n const r = In(Ct.getAllCards(), t.state.uuid);\n if (r) {\n It.setView(r);\n return;\n }\n t.state.parent = null, te([t], (c) => {\n c.state.group = o;\n });\n const s = [...o.state.all];\n e == null ? s.push(t) : s.splice(e, 0, t), o.setAll(s), n && !t.state.docAniDisabled && (await pr(), await t.docAnim(ut.SHOWING)), t.onInsertion();\n },\n /** inserisco una CARD come link di un altra CARD */\n async addLink({ view: t, parent: e, anim: n = !1 }, o) {\n if (e) {\n if (e.state.linked && (t && !t.state.sizeForce && (t.state.size = e.state.linked.state.size), await o.remove({ view: e.state.linked, anim: n })), t)\n Ct.state.cardOptions[e.state.type] = t.state.type;\n else {\n delete Ct.state.cardOptions[e.state.type];\n return;\n }\n e.setLinked(t), o.setAll([...o.state.all]), n && !e.state.docAniDisabled ? (await Ln(100), await t.docAnim(ut.SHOWING)) : t.setDocAnim(ut.SHOW), t.onLinked();\n }\n },\n /** rimuovo una CARD */\n async remove({ view: t, anim: e = !1 }, n) {\n if (!t) return;\n e && !t.state.docAniDisabled && await t.docAnim(ut.EXITING);\n const o = [...n.state.all];\n let r;\n t.state.parent ? (delete Ct.state.cardOptions[t.state.parent.state.type], t.state.parent.setLinked(null), t.onLinked()) : (r = o.findIndex((s) => s == t), r != -1 && o.splice(r, 1), t.state.parent = null, te([t], (s) => {\n s.state.group = null;\n })), n.setAll(o), t.onRemoval();\n },\n /** sposta una view in un indice preciso dello STACK */\n async move({ view: t, index: e, groupDest: n, anim: o = !1 }, r) {\n if (t == null) return;\n e == null && (e = 0), n || (n = r);\n const s = n == r;\n if (t.state.parent == null) {\n const c = r.state.all.indexOf(t);\n if (s && (c == e || c + 1 == e)) return;\n await r.remove({ view: t, anim: o }), !s || c > e ? await n.add({ view: t, index: e, anim: o }) : await n.add({ view: t, index: e - 1, anim: o });\n } else\n await r.remove({ view: t, anim: o }), await n.add({ view: t, index: e, anim: o });\n },\n /** stacca la CARD dal suo PARENT e la mette nella ROOT */\n detach(t, e) {\n if (!t.state.parent) return;\n const n = wr(t) ?? t, o = e.getIndexByView(n);\n e.move({ view: t, index: o + 1, anim: !1 });\n }\n },\n mutators: {\n setAll: (t, e) => ({ all: t })\n }\n}, id = {\n state: {\n loadingMode: Ot.MANUAL,\n loadingState: re.IDLE,\n pollingTime: 0,\n fetchAbort: null\n },\n getters: {},\n actions: {\n /** esegue un aggiornamento della CARD */\n fetch: async (t, e) => {\n const n = e.state.linked;\n (n == null ? void 0 : n.state.loadingMode) == Ot.PARENT && n.fetch();\n },\n fetchAbort: (t, e) => {\n var n;\n (n = e.state.fetchAbort) == null || n.abort();\n }\n },\n mutators: {\n setLoadingState: (t) => ({ loadingState: t }),\n setLoadingMode: (t) => ({ loadingMode: t }),\n setPollingTime: (t) => ({ pollingTime: t })\n }\n}, cd = {\n state: {\n /** tutte le CARD LIKED */\n all: []\n },\n getters: {\n getById(t, e) {\n return t ? In(e.state.all, t) : null;\n },\n getIndexByView(t, e) {\n return e.state.all.findIndex((n) => n == t);\n },\n /** cerca nel DECK solo le CARD senza parent */\n find(t, e) {\n return te(\n e.state.all,\n (n) => tn(t, n.state) ? n : null\n );\n },\n /** cerca nel DECK su tutte le CARD (anche i children) */\n findAll(t, e) {\n const n = [];\n return te(\n e.state.all,\n (o) => {\n tn(t, o.state) && n.push(o);\n }\n ), n;\n }\n },\n actions: {\n /** aggiungo un LINK */\n async add({ view: t, index: e }, n) {\n if (te(n.state.all, (r) => r.state.uuid == t.state.uuid)) return;\n const o = [...n.state.all];\n e == null ? o.push(t) : o.splice(e, 0, t), n.setAll(o);\n },\n /** elimino un LINK */\n async remove(t, e) {\n if (!t) return;\n const n = [...e.state.all], o = n.findIndex((r) => r == t);\n o != -1 && n.splice(o, 1), e.setAll(n);\n }\n },\n mutators: {\n setAll: (t) => ({ all: t })\n }\n}, Iu = (t) => /* @__PURE__ */ i.jsxs(\n \"svg\",\n {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: \"24\",\n height: \"24\",\n viewBox: \"0 0 24 24\",\n stroke: \"currentColor\",\n fill: \"none\",\n strokeWidth: \"2\",\n ...t,\n children: [\n /* @__PURE__ */ i.jsx(\"path\", { d: \"M5 12L20 12\", strokeWidth: \"2\", strokeLinecap: \"round\" }),\n /* @__PURE__ */ i.jsx(\"path\", { d: \"M12 5L12 19\", strokeWidth: \"2\", strokeLinecap: \"round\" }),\n /* @__PURE__ */ i.jsx(\"path\", { d: \"M7 7L17 17\", strokeWidth: \"2\", strokeLinecap: \"round\" }),\n /* @__PURE__ */ i.jsx(\"path\", { d: \"M17 7L7 17\", strokeWidth: \"2\", strokeLinecap: \"round\" })\n ]\n }\n), ld = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({\n __proto__: null,\n EditorIcon: Iu\n}, Symbol.toStringTag, { value: \"Module\" }));\nexport {\n Cr as Accordion,\n Zu as AlertDialog,\n fo as Box,\n eo as Button,\n Eu as CardsGroup,\n nd as CircularIcon,\n gu as CircularIndicatorCmp,\n pu as CircularLoadingCmp,\n ho as Component,\n br as CopyButton,\n ut as DOC_ANIM,\n Us as DRAWER_POSITION,\n Qu as DateTimeInput,\n bo as Dialog,\n Ou as DragCmp,\n Uu as EditItemRow,\n Wu as EditList,\n qu as EditNumberRow,\n Ku as EditStringRow,\n ls as ElementDialog,\n qs as FIXED_CARD,\n Xa as FindInput,\n td as FindInputHeader,\n Ju as FloatButton,\n Du as FrameworkCard,\n Au as Header,\n $t as IconButton,\n ar as IconToggle,\n Va as LIST_ACTIONS,\n re as LOAD_STATE,\n ln as List,\n Xu as ListDialog,\n Hu as ListMemo,\n Vu as ListMultiWithFilter,\n Gu as ListObjects,\n no as ListRow,\n Xe as MESSAGE_TYPE,\n su as NumberInput,\n Pu as Options,\n od as OptionsCmp,\n He as PasswordInput,\n Ys as RESIZER_DIRECTION,\n Zs as ResizerCmp,\n Yu as StringUpRow,\n zu as Table,\n He as TextInput,\n xu as TimerCmp,\n ed as TitleAccordion,\n Lu as TooltipCmp,\n lo as TooltipWrapCmp,\n Tt as VIEW_SIZE,\n Fu as VTable,\n Nu as ZenCard,\n sd as cardsSetup,\n Ct as docsSo,\n It as focusSo,\n ld as icons,\n cd as linksSetup,\n id as loadBaseSetup,\n Ht as mouseSo,\n Mu as utils,\n rd as viewSetup\n};\n//# sourceMappingURL=index.es.js.map\n","import { createStore } from \"@priolo/jon\"\nimport { linksSetup, LinksStore } from \"@priolo/jack\"\n\n/**\n * gestisce un array di LINKs di VIEWs\n */\n// const setup = {\n\n// \tstate: {\n// \t\t/** tutte le CARD LIKED */\n// \t\tall: [],\n// \t},\n\n// \tgetters: {\n// \t\tgetById(id: string, store?: LinksStore): ViewStore {\n// \t\t\tif (!id) return null\n// \t\t\treturn utils.getById(store.state.all, id)\n// \t\t},\n// \t\tgetIndexByView(view: ViewStore, store?: LinksStore) {\n// \t\t\treturn store.state.all.findIndex(v => v == view)\n// \t\t},\n\n// \t\t/** cerca nel DECK solo le CARD senza parent */\n// \t\tfind(state: any, store?: LinksStore) {\n// \t\t\treturn utils.forEachViews(\n// \t\t\t\tstore.state.all,\n// \t\t\t\t(view) => deepEqual(state, view.state) ? view : null\n// \t\t\t)\n// \t\t},\n// \t\t/** cerca nel DECK su tutte le CARD (anche i children) */\n// \t\tfindAll(state: any, store?: LinksStore) {\n// \t\t\tconst ret: ViewStore[] = []\n// \t\t\tutils.forEachViews(\n// \t\t\t\tstore.state.all,\n// \t\t\t\t(view) => {\n// \t\t\t\t\tif (deepEqual(state, view.state)) ret.push(view)\n// \t\t\t\t}\n// \t\t\t)\n// \t\t\treturn ret\n// \t\t},\n\n// \t},\n\n// \tactions: {\n\n// \t\t/** aggiungo un LINK */\n// \t\tasync add(\n// \t\t\t{ view, index }: { view: ViewStore, index?: number },\n// \t\t\tstore?: LinksStore\n// \t\t) {\n// \t\t\t// se c'e' gia' non faccio nulla\n// \t\t\tif (utils.forEachViews(store.state.all, (v) => v.state.uuid == view.state.uuid)) return\n// \t\t\tconst newViews = [...store.state.all]\n// \t\t\tif (index == null) newViews.push(view); else newViews.splice(index, 0, view);\n// \t\t\tstore.setAll(newViews)\n// \t\t},\n\t\t\n// \t\t/** elimino un LINK */\n// \t\tasync remove( view: ViewStore, store?: LinksStore) {\n// \t\t\tif (!view) return\n// \t\t\tconst views = [...store.state.all]\n// \t\t\tconst index = views.findIndex(v => v == view)\n// \t\t\tif (index != -1) views.splice(index, 1)\n// \t\t\tstore.setAll(views)\n// \t\t},\n// \t},\n\n// \tmutators: {\n// \t\tsetAll: (all: ViewStore[]) => ({ all }),\n// \t},\n// }\n\n// export type LinksState = typeof setup.state\n// export type LinksGetters = typeof setup.getters\n// export type LinksActions = typeof setup.actions\n// export type LinksMutators = typeof setup.mutators\n// export interface LinksStore extends StoreCore, LinksGetters, LinksActions, LinksMutators {\n// \tstate: LinksState\n// }\n\nexport const menuSo = createStore(linksSetup) as LinksStore","!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).dayjs=e()}(this,(function(){\"use strict\";var t=1e3,e=6e4,n=36e5,r=\"millisecond\",i=\"second\",s=\"minute\",u=\"hour\",a=\"day\",o=\"week\",c=\"month\",f=\"quarter\",h=\"year\",d=\"date\",l=\"Invalid Date\",$=/^(\\d{4})[-/]?(\\d{1,2})?[-/]?(\\d{0,2})[Tt\\s]*(\\d{1,2})?:?(\\d{1,2})?:?(\\d{1,2})?[.:]?(\\d+)?$/,y=/\\[([^\\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:\"en\",weekdays:\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"),months:\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\"),ordinal:function(t){var e=[\"th\",\"st\",\"nd\",\"rd\"],n=t%100;return\"[\"+t+(e[(n-20)%10]||e[n]||e[0])+\"]\"}},m=function(t,e,n){var r=String(t);return!r||r.length>=e?t:\"\"+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?\"+\":\"-\")+m(r,2,\"0\")+\":\"+m(i,2,\"0\")},m:function t(e,n){if(e.date()1)return t(u[0])}else{var a=e.name;D[a]=e,i=a}return!r&&i&&(g=i),i||!r&&g},O=function(t,e){if(S(t))return t.clone();var n=\"object\"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},b=v;b.l=w,b.i=S,b.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[p]=!0}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if(\"string\"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||\"0\").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return b},m.isValid=function(){return!(this.$d.toString()===l)},m.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return O(t) void, delay?: number): void {\n\tif (delay == 0) {\n\t\tcallback?.apply(this, null);\n\t} else {\n\t\tlet toId = timeoutIDs[name];\n\t\tif (toId != null) clearTimeout(toId)\n\t\tif ( !callback ) {\n\t\t\tdelete timeoutIDs[name]\n\t\t\treturn\n\t\t}\n\t\ttimeoutIDs[name] = setTimeout(() => {\n\t\t\tdelete timeoutIDs[name];\n\t\t\tcallback.apply(this, null);\n\t\t}, delay);\n\t}\n}\nexport function debounceExist(name: string): boolean {\n\treturn !!timeoutIDs[name]\n}\n/**\n * crea una pausa async\n */\nexport function delay(millisec: number): Promise {\n\treturn new Promise(res => setTimeout(res, millisec))\n}\n\nexport function delayAnim(): Promise {\n\treturn new Promise(res => window.requestAnimationFrame(()=>res()))\n}\n\nexport function dateShow( date?: any ): string {\n\treturn dayjs(date).isValid() ? dayjs(date).format(\"YYYY-MM-DD HH:mm:ss\") : \"--\"\n}","import { cardsSetup, CardsState, CardsStore } from \"@priolo/jack\"\nimport { mixStores } from \"@priolo/jon\"\nimport { delay } from \"../../utils/time\"\n\n\n\n// creo il DRAWER\nconst setup = {\n\tstate: {\n\t\twidth: 0,\n\t\t/** indica che deve attivare l'animazione */\n\t\tanimation: false,\n\t\t/** l'ultimo gap prima di chiuderlo */\n\t\tlastWidth: 500,\n\t},\n\tgetters: {\n\t\tisOpen: (_: void, store?: DrawerStore) => store.state.width > 0,\n\t},\n\tactions: {\n\t\ttoggle: async (_: void, store?: DrawerStore) => {\n\t\t\tconst w = store.state.lastWidth < 20 ? 500 : store.state.lastWidth\n\t\t\tstore.state.animation = true\n\t\t\tstore.setWidth(store.isOpen() ? 0 : w)\n\t\t\tawait delay(400)\n\t\t\tstore.state.animation = false\n\t\t}\n\t},\n\tmutators: {\n\t\tsetWidth: (width: number) => ({ width }),\n\t},\n}\nexport type DrawerState = typeof setup.state & CardsState\ntype DrawerMutators = typeof setup.mutators\ntype DrawerGetters = typeof setup.getters\ntype DrawerActions = typeof setup.actions\nexport interface DrawerStore extends CardsStore, DrawerGetters, DrawerMutators, DrawerActions { state: DrawerState }\n\nexport const setupDrawer = mixStores(cardsSetup, setup)\n\n\n","import { cardsSetup, CardsStore, docsSo } from \"@priolo/jack\"\nimport { createStore, mixStores } from \"@priolo/jon\"\nimport { DrawerStore, setupDrawer } from \"./drawer\"\n\n\n\nexport const DECK_INDEX = {\n\tMAIN: 0,\n\tDRAWER: 1,\n}\n\n// creo il DECK\nexport const deckCardsSo = createStore(cardsSetup) as CardsStore\n// creo il DRAWER\nexport const drawerCardsSo = createStore(mixStores(cardsSetup, setupDrawer)) as DrawerStore\n// creo la lista dei DECK a disposizione\ndocsSo.setAllDeck([deckCardsSo, drawerCardsSo])","import { Uuid } from \"@/types/global\"\n\n\n\nexport enum MESSAGE_TYPE {\n\tINFO = \"info\",\n\tSUCCESS = \"success\",\n\tWARNING = \"warn\",\n\tERROR = \"error\",\n}\n\nexport interface Log {\n\ttype?: MESSAGE_TYPE\n\ttitle?: string\n\tbody: string\n\tdata?: any\n\ttargetId?: Uuid\n\treceivedAt?: number\n}","import { StoreCore, createStore } from \"@priolo/jon\"\nimport { deckCardsSo, drawerCardsSo } from \"../docs/cards\"\nimport { Log, MESSAGE_TYPE } from \"./utils\"\n\n\n\nconst setup = {\n\n\tstate: {\n\t\tall: [],\n\t},\n\n\tgetters: {\n\t},\n\n\tactions: {\n\t\tadd(log: Log, store?: LogStore) {\n\t\t\tif (!log.type) log.type = MESSAGE_TYPE.INFO\n\t\t\tlog.receivedAt = Date.now()\n\t\t\tif (log.targetId) {\n\t\t\t\t// [II] TODO\n\t\t\t\tconst view = deckCardsSo.getById(log.targetId) || drawerCardsSo.getById(log.targetId)\n\t\t\t\tview?.setSnackbar({\n\t\t\t\t\topen: true,\n\t\t\t\t\ttype: log.type,\n\t\t\t\t\ttitle: log.title,\n\t\t\t\t\tbody: log.body,\n\t\t\t\t})\n\t\t\t}\n\t\t\tstore.setAll([...store.state.all, log])\n\t\t},\n\t\taddError(error: Error, store?: LogStore) {\n\t\t\tif (!error) return\n\t\t\tstore.add({\n\t\t\t\ttype: MESSAGE_TYPE.ERROR,\n\t\t\t\ttitle: error.message,\n\t\t\t\tbody: error.stack,\n\t\t\t})\n\t\t\tconsole.error(error)\n\t\t},\n\t\tclear(_: void, store?: LogStore) {\n\t\t\tstore.setAll([])\n\t\t}\n\t},\n\n\tmutators: {\n\t\tsetAll: (all: Log[]) => ({ all }),\n\t},\n}\n\nexport type LogState = typeof setup.state\nexport type LogGetters = typeof setup.getters\nexport type LogActions = typeof setup.actions\nexport type LogMutators = typeof setup.mutators\nexport interface LogStore extends StoreCore, LogGetters, LogActions, LogMutators {\n\tstate: LogState\n}\nconst logStore = createStore(setup) as LogStore\nexport default logStore\n","\nexport enum DOC_TYPE {\n\tEMPTY = \"empty\",\n\tCONNECTIONS = \"connectons\",\n\tCONNECTION = \"connecton\",\n\tCNN_LOADER = \"cnn_loader\",\n\n\tMESSAGES = \"messages\",\n\tMESSAGE = \"message\",\n\tMESSAGE_SEND = \"message_send\",\n\n\tSTREAMS = \"streams\",\n\tSTREAM = \"stream\",\n\tSTREAM_MESSAGES = \"stream_messages\",\n\n\tCONSUMERS = \"consumers\",\n\tCONSUMER = \"consumer\",\n\n\tBUCKETS = \"buckets\",\n\tBUCKET = \"bucket\",\n\tKVENTRIES = \"kventries\",\n\tKVENTRY = \"kventry\",\n\n\tLOGS = \"logs\",\n\tABOUT = \"about\",\n\n\tHELP = \"help\",\n\tSYNC = \"sync\",\n\tJSON_CONFIG = \"json_config\",\n\tSHORTCUT = \"shortcut\",\n}\n\nexport enum EDIT_STATE {\n\tNEW,\n\tREAD,\n\tEDIT,\n}\n\nexport const ANIM_TIME_CSS = 200\n","export { LOAD_STATE, VIEW_SIZE } from \"@priolo/jack\"\nimport { ColorVar } from \"@priolo/jack\"\nimport { DOC_TYPE } from \"../docs/types\"\n\n\n\nexport function getColorFromViewType(type: DOC_TYPE): ColorVar {\n\tswitch (type) {\n\t\tcase DOC_TYPE.MESSAGES:\n\t\tcase DOC_TYPE.MESSAGE:\n\t\tcase DOC_TYPE.MESSAGE_SEND:\n\t\tcase DOC_TYPE.SYNC:\n\t\t\treturn { fg: \"#393939\", bg: \"#10F3F3\" }\n\t\tcase DOC_TYPE.CONSUMERS:\n\t\tcase DOC_TYPE.CONSUMER:\n\t\t\treturn { fg: \"#393939\", bg: \"#f374e6\" }\n\t\tcase DOC_TYPE.CNN_LOADER:\n\t\tcase DOC_TYPE.CONNECTIONS:\n\t\tcase DOC_TYPE.CONNECTION:\n\t\t\treturn { fg: \"#393939\", bg: \"#BBFB35\" }\n\t\tcase DOC_TYPE.BUCKET:\n\t\tcase DOC_TYPE.BUCKETS:\n\t\tcase DOC_TYPE.KVENTRIES:\n\t\tcase DOC_TYPE.KVENTRY:\n\t\t\treturn { fg: \"#393939\", bg: \"#6affab\" }\n\t\tcase DOC_TYPE.ABOUT:\n\t\tcase DOC_TYPE.SHORTCUT:\n\t\tcase DOC_TYPE.HELP:\n\t\tcase DOC_TYPE.JSON_CONFIG:\n\t\tcase DOC_TYPE.LOGS:\n\t\t\treturn { fg: \"#393939\", bg: \"#dedede\" }\n\t\tcase DOC_TYPE.STREAM:\n\t\tcase DOC_TYPE.STREAMS:\n\t\tcase DOC_TYPE.STREAM_MESSAGES:\n\t\t\treturn { fg: \"#393939\", bg: \"#EBFB35\" }\n\t}\n}\n","\n\n// [CHAT.GPT]\nexport function snakeToCamel(obj: any): any {\n\tif (Array.isArray(obj)) {\n\t\treturn obj.map(snakeToCamel);\n\t} else if (obj !== null && typeof obj === 'object') {\n\t\tconst newObj: any = {};\n\t\tfor (let key in obj) {\n\t\t\tif (Object.prototype.hasOwnProperty.call(obj, key)) {\n\t\t\t\tconst camelKey = key.replace(/_([a-z])/g, (match, letter) => letter.toUpperCase());\n\t\t\t\tnewObj[camelKey] = snakeToCamel(obj[key]);\n\t\t\t}\n\t\t}\n\t\treturn newObj;\n\t} else {\n\t\treturn obj;\n\t}\n}\n// [CHAT.GPT]\nexport function camelToSnake(obj: any): any {\n\tif (Array.isArray(obj)) {\n\t\treturn obj.map(camelToSnake);\n\t} else if (obj !== null && typeof obj === 'object') {\n\t\tconst newObj: any = {};\n\t\tfor (let key in obj) {\n\t\t\tif (Object.prototype.hasOwnProperty.call(obj, key)) {\n\t\t\t\tconst snakeKey = key.replace(/[A-Z]/g, (match) => `_${match.toLowerCase()}`);\n\t\t\t\tnewObj[snakeKey] = camelToSnake(obj[key]);\n\t\t\t}\n\t\t}\n\t\treturn newObj;\n\t} else {\n\t\treturn obj;\n\t}\n}\n\n// Confronto due oggetti solo al primo livello\nexport function compare(objFind: any, obj: any): boolean {\n\tfor (let key of Object.keys(objFind)) {\n\t\tif (objFind[key] !== obj[key]) {\n\t\t\treturn false\n\t\t}\n\t}\n\treturn true;\n}\n\nexport function deepEqual(obj1: any, obj2: any): boolean {\n\tconst typeObj1 = typeof obj1\n\tconst typeObj2 = typeof obj2\n\tif (typeObj1 == \"object\" && typeObj1 == typeObj2) {\n\t\tfor (let key in obj1) {\n\t\t\tif (!deepEqual(obj1[key], obj2[key])) return false\n\t\t}\n\t\treturn true\n\t}\n\treturn obj1 == obj2\n}\n","import logSo from \"@/stores/log\"\nimport { MESSAGE_TYPE } from \"@/stores/log/utils\"\nimport { ViewStore } from \"@/stores/stacks/viewBase\"\nimport { LOAD_STATE } from \"@/stores/stacks/utils\"\nimport { camelToSnake, snakeToCamel } from \"@/utils/object\"\nimport { LoadBaseStore } from \"@/stores/stacks/loadBase\"\n\n\n\nenum METHOD {\n\tPOST = \"post\",\n\tGET = \"get\",\n\tPATCH = \"patch\",\n\tPUT = \"put\",\n\tDELETE = \"delete\"\n}\ninterface Options {\n\tbaseUrl: string\n}\nexport interface CallOptions {\n\tisLogin?: boolean\n\tloading?: boolean\n\tnoError?: boolean\n\tstore?: ViewStore\n\t/** manage the abort with the signal */\n\tsignal?: AbortSignal\n\t/** if true, the abrt object is set in the store */\n\tmanageAbort?: boolean\n\t/** disable the parsing of the response from snake case to camel case */\n\tnoCamel?: boolean\n\t/** disable the parsing of the request from camel case to snake case */\n\tnoSnake?: boolean\n}\n\nconst httpUrlBuilder = () => {\n\tif (import.meta.env.VITE_TARGET == \"desktop\") return \"http://localhost:31311/api/\"\n\treturn import.meta.env.DEV || !import.meta.env.VITE_API_URL ? \"/api/\" : import.meta.env.VITE_API_URL\n}\n\nconst optionsParamDefault: CallOptions = {\n\tisLogin: false,\n\tloading: true,\n\tnoError: false,\n\tstore: null,\n}\nconst optionsDefault: Options = {\n\tbaseUrl: httpUrlBuilder(),\n}\n\n\nexport class AjaxService {\n\n\toptions: Options\n\n\tconstructor(options: Options = optionsDefault) {\n\t\tthis.options = { ...optionsDefault, ...options }\n\t}\n\n\tasync post(url: string, data?: any, options?: CallOptions) {\n\t\treturn await this.send(url, METHOD.POST, data, options)\n\t}\n\tasync get(url: string, data?: any, options?: CallOptions) {\n\t\treturn await this.send(url, METHOD.GET, data, options)\n\t}\n\tasync patch(url: string, data?: any, options?: CallOptions) {\n\t\treturn await this.send(url, METHOD.PATCH, data, options)\n\t}\n\tasync put(url: string, data?: any, options?: CallOptions) {\n\t\treturn await this.send(url, METHOD.PUT, data, options)\n\t}\n\tasync delete(url: string, data?: any, options?: CallOptions) {\n\t\treturn await this.send(url, METHOD.DELETE, data, options)\n\t}\n\n\t/**\n\t * Send a ajax to server\n\t */\n\tasync send(url: string, method: METHOD, data?: any, options: CallOptions = {}) {\n\t\toptions = { ...optionsParamDefault, ...options }\n\n\t\t// PREPARE DATA\n\t\tif (!options.noSnake){\n\t\t\tdata = camelToSnake(data)\n\t\t}\n\t\tconst headers = {\n\t\t\t\"Content-Type\": \"application/json\",\n\t\t\t\"Accept\": \"application/json\",\n\t\t}\n\n\t\t// SEND REQUEST\n\t\tlet response = null\n\t\ttry {\n\t\t\tconst loadStore = options.store\n\t\t\tif (options.loading) loadStore?.setLoadingState?.(LOAD_STATE.LOADING)\n\t\t\tif (options.manageAbort && !!loadStore && !options.signal) {\n\t\t\t\tif ( !!loadStore.state.fetchAbort ) loadStore.fetchAbort?.()\n\t\t\t\tloadStore.state.fetchAbort = new AbortController()\n\t\t\t\toptions.signal = loadStore.state.fetchAbort.signal\n\t\t\t}\n\t\t\tresponse = await fetch(\n\t\t\t\t`${this.options.baseUrl}${url}`,\n\t\t\t\t{\n\t\t\t\t\tmethod: method,\n\t\t\t\t\theaders,\n\t\t\t\t\tbody: data ? JSON.stringify(data) : undefined,\n\t\t\t\t\tsignal: options.signal,\n\t\t\t\t}\n\t\t\t)\n\t\t} catch (e) {\n\t\t\tif (options.noError) return\n\t\t\tif (e.code != 20) {\n\t\t\t\tlogSo.add({\n\t\t\t\t\ttype: MESSAGE_TYPE.ERROR,\n\t\t\t\t\ttitle: \"http:error:fetch\",\n\t\t\t\t\tbody: e.toString(),\n\t\t\t\t\ttargetId: options.store?.state?.uuid,\n\t\t\t\t})\n\t\t\t}\n\t\t\tthrow e\n\t\t} finally {\n\t\t\tif (options.loading) (options.store)?.setLoadingState?.(LOAD_STATE.IDLE)\n\t\t}\n\n\t\t// GET DATA\n\t\tlet ret = null\n\t\tlet jsonError: string = null\n\t\ttry {\n\t\t\tconst raw = await response.json()\n\t\t\tret = options.noCamel ? raw : snakeToCamel(raw)\n\t\t} catch (e) {\n\t\t\tjsonError = e.toString()\n\t\t}\n\n\t\t// MANAGE HTTP ERRORS\n\t\tconst status = response.status\n\t\tif (status >= 400 && !options.noError) {\n\t\t\tconst error = ret?.error as string ?? jsonError ?? `${status} generic`\n\t\t\tlogSo.add({\n\t\t\t\ttype: MESSAGE_TYPE.ERROR,\n\t\t\t\ttitle: `http:error:${status}`,\n\t\t\t\tbody: error,\n\t\t\t\ttargetId: options.store?.state?.uuid,\n\t\t\t})\n\t\t\tif (options.loading) (options.store)?.setLoadingState?.(LOAD_STATE.ERROR)\n\t\t\tthrow error\n\t\t}\n\t\treturn ret\n\t}\n}\n\nexport default new AjaxService()\n","import ajax, { CallOptions } from \"@/plugins/AjaxService\"\nimport { CliImport, Connection } from \"@/types/Connection\"\n\n\n/** INDEX\n * Get all the CONNECTIONs\n */\nfunction index(opt?: CallOptions): Promise {\n\treturn ajax.get(`connection`, null, opt)\n}\n\n/** UPDATE\n * Update a CONNECTION\n */\nfunction save(cnn: Connection, opt?: CallOptions): Promise {\n\tconst blockId = cnn.id ? `/${cnn.id}` : \"\"\n\treturn ajax.post(`connection${blockId}`, cnn, opt)\n}\n\n/** DELETE\n * delete a CONNECTION\n */\nfunction remove(id: string, opt?: CallOptions): Promise {\n\tif (!id) return\n\treturn ajax.delete(`connection/${id}`, null, opt)\n}\n\nfunction importFromNatsCli(path: string, opt?: CallOptions): Promise<{ connections: Connection[], imports: CliImport[]}> {\n\treturn ajax.post(`connection/import/nats-cli`, {path: path}, opt)\n}\n\nconst connectionApi = {\n\tindex,\n\tremove,\n\tsave,\n\timportFromNatsCli,\n}\nexport default connectionApi","import { SocketService } from \".\"\n\n\nexport interface ReconnectOptions {\n\tdelay?: number,\n\ttryMax?: number,\n}\n\nconst optionsDefault = {\n\tdelay: 3000,\n\ttryMax: 3,\n}\n\n/**\n * se non è connesso allora prova a riconnettersi\n */\nexport class Reconnect {\n\n\toptions: ReconnectOptions = null\n\tserver: SocketService = null\n\ttry = 0 //numero di tentativi\n\tidTimer = null\n\tenabled = true\n\n\tconstructor(server: SocketService, options: ReconnectOptions = optionsDefault) {\n\t\tthis.options = { ...optionsDefault, ...options }\n\t\tthis.server = server\n\t}\n\n\tstart() {\n\t\tif ( !this.enabled ) return\n\t\tthis.stop()\n\t\tthis.tryUp()\n\t\tthis.idTimer = setTimeout(() => this.server.connect(), this.options.delay)\n\t}\n\n\tstop() {\n\t\tif (!this.idTimer) return\n\t\tclearTimeout(this.idTimer)\n\t\tthis.idTimer = null\n\t}\n\n\t/** aumenta il numero di tentativi senza successo */\n\ttryUp() {\n\t\tthis.try++\n\t\tconsole.debug(`socket:reconnect:try:${this.try}`)\n\t\tif (this.try == 1) return // primo tentativo non è un problema\n\t\tif (this.try == this.options.tryMax) {\n\t\t\tconsole.debug(\"socket:reconnect:max_try\")\n\t\t}\n\t}\n\n\t/** azzera il numero di tentativi fatti */\n\ttryZero() {\n\t\tthis.try = 0\n\t}\n\n}","import { CNN_STATUS } from \"@/types\"\n\n\nexport interface SocketOptions {\n protocol?: string\n host?: string\n port?: string\n base?: string\n}\n\nexport enum MSG_TYPE {\n /** SUBSCRIPTIONS REQUEST - client */\n SUB_REQUEST = \"subscriptions_req\",\n /** NATS MESSAGE - server */\n NATS_MESSAGE = \"nats_msg\",\n /** CONNECTION STATUS - server */\n CNN_STATUS = \"connection_status\",\n /** ERROR MESSAGE - client server */\n ERROR = \"error\",\n}\n\nexport interface SocketMessage {\n type: MSG_TYPE\n payload: Payload\n}\n\n/** SUBSCRIPTIONS REQUEST - client */\nexport type PayloadSub = {\n subjects: string[]\n}\n/** NATS MESSAGE - server */\nexport type PayloadMessage = {\n headers: { [key: string]: string[] }\n subject: string\n payload: string\n}\n/** CONNECTION STATUS - server */\nexport type PayloadStatus = {\n status: CNN_STATUS\n error: string\n}\n/** ERROR MESSAGE - client server */\nexport type PayloadError = {\n error: string\n}\n\nexport type Payload = PayloadSub | PayloadMessage | PayloadStatus | PayloadError\n","import { SocketOptions } from \"./types\";\r\n\r\n\r\nconst wsOptionBuilder = () => {\r\n\treturn (import.meta.env.VITE_TARGET == \"desktop\") ? {\r\n\t\tprotocol: \"ws:\",\r\n\t\thost: \"localhost\",\r\n\t\tport: 31311,\r\n\t\tbase: \"\",\r\n\t} : {\r\n\t\tprotocol: window.location.protocol == \"http:\" ? \"ws:\" : \"wss:\",\r\n\t\thost: window.location.hostname,\r\n\t\tport: import.meta.env.VITE_API_WS_PORT ?? window.location.port,\r\n\t\tbase: \"\",\r\n\t};\r\n};\r\n\r\nexport const optionsDefault: SocketOptions = wsOptionBuilder();\r\n","export interface Connection {\n id?: string\n name: string\n hosts: string[]\n inboxPrefix: string\n subscriptions: Subscription[]\n auth: Auth[]\n tlsAuth: TLSAuth\n status?: CNN_STATUS\n}\n\nexport interface Auth {\n mode: AUTH_MODE\n username?: string\n password?: string\n token?: string\n jwt?: string\n nKeySeed?: string\n creds?: string\n active?: boolean\n}\n\nexport interface TLSAuth {\n enabled: boolean\n certPath: string\n keyPath: string\n caPath: string\n}\n\nexport interface Subscription {\n subject: string\n disabled?: boolean\n favorite?: boolean\n}\n\nexport interface CliImport {\n name: string\n path: string\n error: string\n importedContext: { [key: string]: any }\n}\n\n\nexport enum AUTH_MODE {\n // use token field\n TOKEN = \"auth_token\",\n // use username and password fields\n USER_PASSWORD = \"auth_user_password\",\n //use nkey public key and seed\n NKEY = \"auth_nkey\",\n // use jwt and nkey fields\n JWT = \"auth_jwt\",\n BEARER_JWT = \"auth_jwt_bearer\",\n // use creds field (local path to a file)\n CREDS_FILE = \"auth_creds_file\",\n}\n\n\nexport enum CNN_STATUS {\n UNDEFINED = \"undefined\",\n CONNECTED = \"connected\",\n RECONNECTING = \"reconnecting\",\n DISCONNECTED = \"disconnected\",\n}\n","import logSo from \"@/stores/log/index.js\";\nimport { Reconnect } from \"./reconnect.js\";\nimport { MSG_TYPE, Payload, PayloadError, PayloadMessage, PayloadStatus, SocketMessage, SocketOptions } from \"./types.js\";\nimport { MESSAGE_TYPE } from \"@/stores/log/utils.js\";\nimport { optionsDefault } from \"./utils.js\";\nimport cnnSo from \"@/stores/connections\"\nimport { CNN_STATUS } from \"@/types/Connection.js\";\n\n\n\n/**\n * Crea una connessione WS\n * gestisce le riconnessioni\n * gestisce la tabella dei COMMANDS\n */\nexport class SocketService {\n\n\toptions: SocketOptions;\n\twebsocket: WebSocket;\n\t/** l'ultimo id connection utilizzato per la connessione WS */\n\tcnnId: string = null\n\t/** modulo per la riconnessione */\n\treconnect: Reconnect;\n\n\t// callback su apertura connessione\n\tonOpen: () => void = null\n\t// callback su arrivo messaggio\n\tonMessage?: (message: PayloadMessage) => void\n\tonStatus?: (payload: PayloadStatus) => void\n\tonError?: (error: PayloadError) => void\n\n\tconstructor(options: SocketOptions = {}) {\n\t\tthis.options = { ...optionsDefault, ...options }\n\t\tthis.websocket = null\n\t\tthis.reconnect = new Reconnect(this)\n\t}\n\n\t/** \n\t * tenta di aprire il socket\n\t */\n\tconnect(connId: string = this.cnnId) {\n\t\tif (this.websocket) return\n\t\tthis.cnnId = connId\n\t\tconst { protocol, host, port, base } = this.options\n\t\tthis.reconnect.enabled = true\n\t\ttry {\n\t\t\tlet url = `${protocol}//${host}:${port}/ws/sub`\n\t\t\tif (base) url = `${url}/${base}`\n\t\t\tif (connId) url = `${url}?id=${connId}`\n\t\t\tlogSo.add({\n\t\t\t\ttype: MESSAGE_TYPE.INFO,\n\t\t\t\ttitle: \"WS-CONNECTIONS\",\n\t\t\t\tbody: `try_connecting`,\n\t\t\t\tdata: url,\n\t\t\t})\n\t\t\tthis.websocket = new WebSocket(url);\n\t\t} catch (error) {\n\t\t\tthis.reconnect.start()\n\t\t\tconsole.error(error)\n\t\t\treturn\n\t\t}\n\n\t\tthis.websocket.onopen = this.handleOpen.bind(this);\n\t\tthis.websocket.onclose = this.handleClose.bind(this);\n\t\tthis.websocket.onmessage = this.handleMessage.bind(this);\n\t\tthis.websocket.onerror = this.handleError.bind(this);\n\t}\n\n\t/** \n\t * libera tutte le risorse\n\t */\n\tclear(newCnnId: string = null) {\n\t\tif (!this.websocket) return\n\t\tthis.websocket.close()\n\t\tthis.websocket = null\n\t\tif (newCnnId) this.cnnId = newCnnId\n\t}\n\n\t/** \n\t * chiude il socket e mantiene chiuso (usato nel logout)\n\t */\n\tdisconnect() {\n\t\tlogSo.add({\n\t\t\ttype: MESSAGE_TYPE.INFO,\n\t\t\ttitle: \"WS-CONNECTIONS\",\n\t\t\tbody: `disconnect`\n\t\t})\n\t\tchangeConnectionStatus(this.cnnId, CNN_STATUS.UNDEFINED)\n\t\tthis.cnnId = null\n\t\tthis.reconnect.enabled = false\n\t\tthis.reconnect.stop()\n\t\tthis.clear()\n\t}\n\n\t/** \n\t * invia un messaggio al server\n\t */\n\tsend(msg: string) {\n\t\tlogSo.add({\n\t\t\ttype: MESSAGE_TYPE.INFO,\n\t\t\ttitle: \"WS-CONNECTIONS\",\n\t\t\tbody: `send:FE>BE`,\n\t\t\tdata: msg,\n\t\t})\n\t\tthis.websocket.send(msg)\n\t}\n\n\tsendSubjects(subjects: string[]) {\n\t\tlogSo.add({\n\t\t\ttype: MESSAGE_TYPE.INFO,\n\t\t\ttitle: \"WS-CONNECTIONS\",\n\t\t\tbody: `send:FE>BE`,\n\t\t\tdata: subjects\n\t\t})\n\t\tconst msg: SocketMessage = {\n\t\t\ttype: MSG_TYPE.SUB_REQUEST,\n\t\t\tpayload: { subjects },\n\t\t}\n\t\ttry {\n\t\t\tconst msgStr = JSON.stringify(msg)\n\t\t\tthis.send(msgStr)\n\t\t} catch (err) {\n\t\t\tlogSo.addError(err)\n\t\t}\n\t}\n\n\t//#region SOCKET EVENT\n\n\thandleOpen(_: Event) {\n\t\t//console.log(\"socket:open\")\n\t\tthis.reconnect.stop()\n\t\tthis.reconnect.tryZero()\n\t\tthis.onOpen?.()\n\t\tchangeConnectionStatus(this.cnnId, CNN_STATUS.RECONNECTING)\n\t}\n\n\thandleClose(_: CloseEvent) {\n\t\t//console.log(\"socket:close\")\n\t\tthis.clear()\n\t\tthis.reconnect.start()\n\t\tchangeConnectionStatus(this.cnnId, CNN_STATUS.RECONNECTING)\n\t}\n\n\t/** ricevo un messaggio dal BE */\n\thandleMessage(e: MessageEvent) {\n\t\tconst message: SocketMessage = JSON.parse(e.data) as SocketMessage\n\t\tconst type = message.type\n\t\t\n\t\tswitch (type) {\n\t\t\tcase MSG_TYPE.CNN_STATUS: {\n\t\t\t\tconst payload = message.payload as PayloadStatus\n\t\t\t\tthis.onStatus?.(payload)\n\t\t\t\tchangeConnectionStatus(this.cnnId, payload.status)\n\t\t\t\tlet body = `${payload.status}`\n\t\t\t\tif (payload.error) {body += ` - ${payload.error}`}\n\t\t\t\tlogSo.add({\n\t\t\t\t\ttype: MESSAGE_TYPE.INFO,\n\t\t\t\t\ttitle: \"CONNECTION STATUS\",\n\t\t\t\t\tbody: body\n\t\t\t\t})\n\t\t\t\tbreak\n\t\t\t}\n\t\t\tcase MSG_TYPE.NATS_MESSAGE: {\n\t\t\t\tif (!this.onMessage) return\n\t\t\t\tconst payload = message.payload as PayloadMessage\n\t\t\t\tthis.onMessage({\n\t\t\t\t\theaders: payload.headers,\n\t\t\t\t\tsubject: payload.subject,\n\t\t\t\t\tpayload: atob(payload.payload),\n\t\t\t\t})\n\t\t\t\tbreak\n\t\t\t}\n\t\t\tcase MSG_TYPE.ERROR:\n\t\t\t\tconst error: string = (message.payload as PayloadError)?.error\n\t\t\t\t//this.onError?.(message.payload as PayloadError)\n\t\t\t\tlogSo.add({\n\t\t\t\t\ttype: MESSAGE_TYPE.ERROR,\n\t\t\t\t\ttitle: \"WS-CONNECTIONS-ERROR\",\n\t\t\t\t\tbody: error,\n\t\t\t\t})\n\t\t\t\tbreak\n\t\t}\n\t}\n\n\thandleError(e: Event) {\n\t\tlogSo.add({\n\t\t\ttype: MESSAGE_TYPE.ERROR,\n\t\t\ttitle: \"WS-CONNECTIONS\",\n\t\t\tbody: `error`\n\t\t})\n\t}\n\n\t//#endregion\n}\n\n\nfunction changeConnectionStatus(cnnId: string, status: CNN_STATUS) {\n\tconst cnn = cnnSo.getById(cnnId)\n\tif (!cnn || cnn.status == status) return\n\tcnnSo.update({ id: cnnId, status })\n}","import { debounce } from \"@/utils/time\";\nimport { docsSo, utils } from \"@priolo/jack\";\nimport { SocketService } from \".\";\n\n\n\nclass SocketPool {\n\n\tsockets: { [key: string]: SocketService } = {}\n\n\tgetById(key: string) {\n\t\treturn this.sockets[key]\n\t}\n\n\t/** cerca oppure crea una connessione e gli affibbbia questo ID */\n\tcreate(key: string, cnnId: string) {\n\t\tif (!key || !cnnId) return\n\t\tdebounce(`ss::destroy::${key}`)\n\t\tlet ss = this.getById(key)\n\t\tif (!ss) {\n\t\t\tss = new SocketService()\n\t\t\tss.connect(cnnId)\n\t\t\tthis.sockets[key] = ss\n\t\t}\n\t\treturn ss\n\t}\n\n\t/** chiude la connessione ma non subito. Aspetta 2 secondi prima di farlo: non si sa mai! \n\t * inoltre controlla che non sia gia' utilizzata da qualcun'altro\n\t*/\n\tdestroy(key: string) {\n\t\tconst ss = this.getById(key)\n\t\tif (!ss) return\n\t\tdebounce(`ss::destroy::${key}`, () => {\n\t\t\t// se lo usa qualcun'altro alllora non lo eliminare\n\t\t\tif (utils.findAll(docsSo.getAllCards(), { connectionId: ss.cnnId }).length > 0) return\n\t\t\tthis.destroyForce(key)\n\t\t}, 2000)\n\t}\n\t/** forza la chiusura, utile per quando c'e' una modifica */\n\tdestroyForce(key: string) {\n\t\tif (!key) return\n\t\tconst ss = this.getById(key)\n\t\tif (!ss) return\n\t\tdebounce(`ss::destroy::${key}`)\n\t\tss.disconnect()\n\t\tdelete this.sockets[key]\n\t}\n\n\t/** chiude tutte le connessioni */\n\tcloseAll() {\n\t\tObject.keys(this.sockets).forEach(key => {\n\t\t\tconst ss = this.getById(key)\n\t\t\tss.disconnect()\n\t\t})\n\t}\n\t/** prova a riconnettersi sulle connessioni chiuse */\n\tconnectAll() {\n\t\tObject.keys(this.sockets).forEach(key => {\n\t\t\tconst ss = this.getById(key)\n\t\t\tss.connect()\n\t\t})\n\t}\n\n}\n\nexport const socketPool = new SocketPool()\n","import cnnApi from \"@/api/connection\"\nimport { socketPool } from \"@/plugins/SocketService/pool\"\nimport { Connection } from \"@/types/Connection\"\nimport { docsSo, utils } from \"@priolo/jack\"\nimport { createStore, mixStores } from \"@priolo/jon\"\nimport { DOC_TYPE } from \"../docs/types\"\nimport loadBaseSetup, { LoadBaseState, LoadBaseStore } from \"../stacks/loadBase\"\n\n\n\nconst setup = {\n\n\tstate: {\n\t\tall: null,\n\t},\n\n\tgetters: {\n\t\tgetById(id: string, store?: ConnectionStore) {\n\t\t\tif (!id) return null\n\t\t\treturn store.state.all?.find(cnn => cnn.id == id)\n\t\t},\n\t\tgetIndexById(id: string, store?: ConnectionStore) {\n\t\t\tif (!id) return null\n\t\t\treturn store.state.all?.findIndex(cnn => cnn.id == id)\n\t\t},\n\t},\n\n\tactions: {\n\n\t\t//#region OVERWRITE\n\t\tasync fetch(_: void, store?: LoadBaseStore) {\n\t\t\tconst s = store\n\t\t\tconst cnnStore = utils.findAll(docsSo.getAllCards(), { type: DOC_TYPE.CONNECTIONS })?.[0]\n\t\t\tsocketPool.closeAll()\n\t\t\tconst cnn = await cnnApi.index({ store: cnnStore })\n\t\t\ts.setAll(cnn)\n\t\t\tawait loadBaseSetup.actions.fetch(_, store)\n\t\t\tsocketPool.connectAll()\n\t\t},\n\t\t//#endregion\n\n\t\tasync fetchIfVoid(_: void, store?: ConnectionStore) {\n\t\t\tif (!!store.state.all) return\n\t\t\tawait store.fetch()\n\t\t},\n\n\t\tasync delete(id: string, store?: ConnectionStore) {\n\t\t\tawait cnnApi.remove(id)\n\t\t\tstore.setAll(store.state.all.filter(c => c.id != id))\n\t\t},\n\t\tasync save(cnn: Connection, store?: ConnectionStore) {\n\t\t\tconst cnnSaved = await cnnApi.save(cnn)\n\t\t\tstore.update(cnnSaved)\n\n\t\t\tconst key = `global::${cnnSaved.id}`\n\t\t\tsocketPool.destroyForce(key)\n\t\t\tsocketPool.create(key, cnnSaved.id)\n\n\t\t\treturn cnnSaved\n\t\t},\n\t\t/** inserisce o aggiorna la CONNECTION passata come paramnetro */\n\t\tupdate(cnn: Partial, store?: ConnectionStore) {\n\t\t\tif (!cnn?.id) return\n\t\t\tconst cnns = [...store.state.all]\n\t\t\tconst index = store.getIndexById(cnn.id)\n\t\t\tif (index == -1) {\n\t\t\t\tcnns.push(cnn as Connection)\n\t\t\t} else {\n\t\t\t\tcnns[index] = { ...cnns[index], ...cnn }\n\t\t\t}\n\t\t\tstore.setAll(cnns)\n\t\t},\n\t},\n\n\tmutators: {\n\t\tsetAll: (all: Connection[]) => ({ all }),\n\t},\n}\n\nexport type ConnectionState = typeof setup.state & LoadBaseState\nexport type ConnectionGetters = typeof setup.getters\nexport type ConnectionActions = typeof setup.actions\nexport type ConnectionMutators = typeof setup.mutators\n\n/**\n * Gestisce le connessioni disponibili dal BE\n */\nexport interface ConnectionStore extends LoadBaseStore, ConnectionGetters, ConnectionActions, ConnectionMutators {\n\tstate: ConnectionState\n}\n\nconst cnnSetup = mixStores(loadBaseSetup, setup)\nconst cnnSo = createStore(cnnSetup) as ConnectionStore\n\nexport default cnnSo\n","import ajax, { CallOptions } from \"@/plugins/AjaxService\"\r\nimport { About } from \"@/types/About\"\r\n\r\n\r\n\r\n/** INDEX */\r\nfunction get(opt?: CallOptions): Promise {\r\n\treturn ajax.get(`about`, null, opt)\r\n}\r\n\r\nconst aboutApi = {\r\n\tget,\r\n}\r\nexport default aboutApi","//import { MESSAGE_TYPE } from \"../log/utils\"\nimport { viewSetup, ViewStore } from \"@priolo/jack\"\nimport { buildStore } from \"../docs/utils/factory\"\nimport { LISTENER_CHANGE } from \"@priolo/jon\"\nimport { DOC_TYPE } from \"../docs/types\"\nimport { socketPool } from \"../../plugins/SocketService/pool\"\nexport type { ViewState, ViewStore, ViewMutators } from \"@priolo/jack\"\n\n\n\nconst setSerializationBase = viewSetup.actions.setSerialization\n\nviewSetup.actions.setSerialization = (state: any, store?: ViewStore) => {\n\tsetSerializationBase(state, store)\n\n\t// recursion\n\tconst linkedState = state.linked\n\tif (!!state.linked) delete state.linked\n\tif (linkedState) {\n\t\tconst linkedStore = buildStore({ type: linkedState.type, group: store.state.group })\n\t\tlinkedStore.setSerialization(linkedState)\n\t\tstore.setLinked(linkedStore)\n\t\tlinkedStore.onLinked()\n\t}\n}\n\nviewSetup.onListenerChange = (store: ViewStore, type: LISTENER_CHANGE) => {\n\tif (store._listeners.size == 1 && type == LISTENER_CHANGE.ADD) {\n\t\tconst cnnId = store.state.type == DOC_TYPE.CONNECTION ? store.state[\"connection\"]?.id : store.state[\"connectionId\"]\n\t\tif (cnnId) socketPool.create(`global::${cnnId}`, cnnId)\n\t} else if (store._listeners.size == 0) {\n\t\tconst cnnId = store.state.type == DOC_TYPE.CONNECTION ? store.state[\"connection\"]?.id : store.state[\"connectionId\"]\n\t\tif (cnnId) socketPool.destroy(`global::${cnnId}`)\n\t\tstore[\"fetchAbort\"]?.()\n\t}\n}\n\nexport default viewSetup\n\n\n\n// export interface SnackbarState {\n// \topen: boolean\n// \ttitle?: string\n// \tbody?: string\n// \ttype?: MESSAGE_TYPE\n// \ttimeout?: number\n// }\n// export interface AlertState {\n// \topen?: boolean\n// \ttitle: string\n// \tbody: string\n// \tlabelOk?: string\n// \tlabelCancel?: string\n// \tresolve?: (value: boolean) => void\n// }\n\n\n\n// const viewSetup = {\n\n// \tstate: {\n// \t\t/** identificativo della VIEW */\n// \t\tuuid: null,\n// \t\t/** tipo di VIEW */\n// \t\ttype: DOC_TYPE.EMPTY,\n\n// \t\t/** indica se la VIEW è draggabile o no */\n// \t\tdraggable: true,\n// \t\t/** indica se la VIEW si puo' rimuovere dal DOCK */\n// \t\tunclosable: false,\n// \t\t/** indica se è possibile pinnare questa CARD */\n// \t\tpinnable: true,\n// \t\t/** si puo' draggare dentro qualcosa */\n// \t\tdroppable: false,\n// \t\t/** indica lo STATO di visualizzaizone */\n// \t\tsize: VIEW_SIZE.NORMAL,\n// \t\tsizeForce: false,\n// \t\t/** indica che la card è temporaneamente disabilitata */\n// \t\tdisabled: false,\n\n// \t\t/** il width \"normale\" */\n// \t\twidth: 300,\n// \t\twidthMin: 40,\n// \t\twidthMax: 600,\n// \t\t/** colore caratteristico della VIEW */\n// \t\tcolorVar: COLOR_VAR.DEFAULT,\n// \t\t/** il corrente stato di animazione */\n// \t\tdocAnim: DOC_ANIM.EXIT,\n// \t\t/** disabilita qualsiasi animazione */\n// \t\tdocAniDisabled: false,\n\n// \t\t/** la sua VIEW PARENT */\n// \t\tparent: null,\n// \t\t/** la sua VIEW LINKED */\n// \t\tlinked: null,\n// \t\t/** il GROUP dove è visualizzata questa CARD */\n// \t\tgroup: null,\n\n// \t\tsnackbar: {\n// \t\t\topen: false,\n// \t\t},\n// \t\talert: {\n// \t\t\topen: false,\n// \t\t},\n// \t},\n\n// \tgetters: {\n// \t\tgetStyAni: (_: void, store?: ViewStore) => {\n// \t\t\tlet style: React.CSSProperties = {\n// \t\t\t\twidth: store.getWidth()\n// \t\t\t}\n// \t\t\tswitch (store.state.docAnim) {\n// \t\t\t\tcase DOC_ANIM.EXIT:\n// \t\t\t\tcase DOC_ANIM.EXITING:\n// \t\t\t\t\tstyle = {\n// \t\t\t\t\t\t...style,\n// \t\t\t\t\t\twidth: 0,\n// \t\t\t\t\t\ttransform: `translate(${-style.width}px, 0px)`,\n// \t\t\t\t\t}\n// \t\t\t\t\tbreak\n// \t\t\t\tcase DOC_ANIM.SHOWING:\n// \t\t\t\t\tbreak\n// \t\t\t\tcase DOC_ANIM.DRAGGING:\n// \t\t\t\t\tconst color = layoutSo.state.theme.palette.var[store.state.colorVar]\n// \t\t\t\t\tstyle = {\n// \t\t\t\t\t\t...style,\n// \t\t\t\t\t\tborder: `2px dashed ${color.bg}`,\n// \t\t\t\t\t}\n// \t\t\t\t\tbreak\n// \t\t\t\tdefault:\n// \t\t\t\t\tbreak\n// \t\t\t}\n// \t\t\treturn style\n// \t\t},\n\n// \t\t//#region OVERRIDABLE\n// \t\t/** restituisce il width effettivo */\n// \t\tgetWidth: (_: void, store?: ViewStore) => {\n// \t\t\tif (docsSo.state.zenCard == store) return store.state.widthMax\n// \t\t\tif (store.state.size == VIEW_SIZE.COMPACT) return store.state.widthMin\n// \t\t\treturn store.state.width\n// \t\t},\n// \t\tgetTitle: (_: void, store?: ViewStore): string => null,\n// \t\tgetSubTitle: (_: void, store?: ViewStore): string => null,\n// \t\tgetSerialization: (_: void, store?: ViewStore) => {\n// \t\t\treturn {\n// \t\t\t\tuuid: store.state.uuid,\n// \t\t\t\ttype: store.state.type,\n// \t\t\t\t//position: store.state.position,\n// \t\t\t\tsize: store.state.size,\n// \t\t\t\tlinked: store.state.linked?.getSerialization(),\n// \t\t\t}\n// \t\t},\n// \t\t//#endregion\n// \t},\n\n// \tactions: {\n// \t\t//#region OVERRIDABLE\n// \t\t/** quando questa CARD è linked ad un parent */\n// \t\tonLinked: (_: void, store?: ViewStore) => { },\n// \t\t/** quando è stato eseguita la build di questo store */\n// \t\tonCreated: (_: void, store?: ViewStore) => { },\n\n// \t\tonRemoveFromDeck: (_: void, store?: ViewStore) => {\n// \t\t\tstore.state.group.remove({ view: store, anim: true });\n// \t\t\t(store as LoadBaseStore).fetchAbort?.()\n// \t\t},\n// \t\t/** quando viene droppato un elemento su questa card */\n// \t\tonDrop: (data: DragDoc, store?: ViewStore) => { },\n// \t\t/** creazione della card dalla serializzazione */\n// \t\tsetSerialization: (state: any, store?: ViewStore) => {\n// \t\t\tstore.state.uuid = state.uuid\n// \t\t\tstore.state.size = state.size\n// \t\t\t// recursion\n// \t\t\tconst linkedState = state.linked\n// \t\t\tif (!!state.linked) delete state.linked\n// \t\t\tif (linkedState) {\n// \t\t\t\tconst linkedStore = buildStore({ type: linkedState.type, group: store.state.group })\n// \t\t\t\tlinkedStore.setSerialization(linkedState)\n// \t\t\t\tstore.setLinked(linkedStore)\n// \t\t\t\tlinkedStore.onLinked()\n// \t\t\t}\n// \t\t},\n// \t\t//#endregion\n\n// \t\t// LINKED una CARD a questa. Se c'era gia' una CARD la elimina.\n// \t\tsetLinked: (view: ViewStore, store?: ViewStore) => {\n// \t\t\t// lo setto a NULL\n// \t\t\tif (!view) {\n// \t\t\t\t// c'era un precedente\n// \t\t\t\tif (!!store.state.linked) {\n// \t\t\t\t\tstore.state.linked.state.parent = null\n// \t\t\t\t\t//[II] da cambiare con\n// \t\t\t\t\tforEachViews([store.state.linked], (v) => { v.state.group = null })\n// \t\t\t\t\t//store.state.linked.state.group = null\n// \t\t\t\t}\n// \t\t\t\tstore.state.linked = null\n// \t\t\t\t// setto effettivamente un LINKED\n// \t\t\t} else {\n// \t\t\t\tview.state.parent = store\n// \t\t\t\t// [II] view.state.group = store.state.group\n// \t\t\t\tforEachViews([view], (v) => { v.state.group = store.state.group })\n// \t\t\t\tstore.state.linked = view\n// \t\t\t}\n// \t\t\treturn store\n// \t\t},\n// \t\tdocAnim: async (docAnim: DOC_ANIM, store?: ViewStore) => {\n// \t\t\tlet animTime = 0\n// \t\t\tlet noSet = false\n// \t\t\tconst currAnim = store.state.docAnim\n// \t\t\tlet nextAnim = null\n\n// \t\t\tif (docAnim == DOC_ANIM.SHOWING && currAnim == DOC_ANIM.SHOW) {\n// \t\t\t\treturn\n// \t\t\t} else if (docAnim == DOC_ANIM.EXITING && currAnim == DOC_ANIM.EXIT) {\n// \t\t\t\treturn\n// \t\t\t} else if (docAnim == DOC_ANIM.SHOWING && currAnim == DOC_ANIM.EXITING) {\n// \t\t\t\tanimTime = ANIM_TIME\n// \t\t\t\tnoSet = true\n// \t\t\t} else if (docAnim == DOC_ANIM.EXITING && currAnim == DOC_ANIM.SHOWING) {\n// \t\t\t\tanimTime = ANIM_TIME\n// \t\t\t\tnoSet = true\n// \t\t\t} else if (docAnim == DOC_ANIM.EXITING) {\n// \t\t\t\tanimTime = ANIM_TIME\n// \t\t\t\tnextAnim = DOC_ANIM.EXIT\n// \t\t\t} else if (docAnim == DOC_ANIM.SHOWING) {\n// \t\t\t\tanimTime = ANIM_TIME\n// \t\t\t\tnextAnim = DOC_ANIM.SHOW\n// \t\t\t} else if (docAnim == DOC_ANIM.SIZING) {\n// \t\t\t\tanimTime = ANIM_TIME\n// \t\t\t\tnextAnim = DOC_ANIM.SHOW\n// \t\t\t}\n\n// \t\t\tif (animTime > 0) {\n// \t\t\t\tif (nextAnim == null) nextAnim = docAnim\n// \t\t\t\tif (!noSet) store.setDocAnim(docAnim)\n// \t\t\t\tawait delay(ANIM_TIME)\n// \t\t\t\tstore.setDocAnim(nextAnim)\n// \t\t\t} else {\n// \t\t\t\tstore.setDocAnim(docAnim)\n// \t\t\t}\n// \t\t},\n\n// \t\tasync alertOpen(alert: AlertState, store?: ViewStore): Promise {\n// \t\t\treturn new Promise((res, rej) => {\n// \t\t\t\talert.resolve = res\n// \t\t\t\tstore.setAlert({\n// \t\t\t\t\t...{ labelCancel: \"CANCEL\", labelOk: \"OK\", title: \"ALERT\", open: true },\n// \t\t\t\t\t...alert\n// \t\t\t\t})\n// \t\t\t})\n// \t\t},\n\n// \t},\n\n// \tmutators: {\n// \t\tsetSize: (size: VIEW_SIZE, store?: ViewStore) => {\n// \t\t\tstore.docAnim(DOC_ANIM.SIZING)\n// \t\t\treturn { size }\n// \t\t},\n// \t\tsetWidth: (width: number) => ({ width }),\n// \t\tsetDisabled: (disabled: boolean) => ({ disabled }),\n// \t\tsetDocAnim: (docAnim: DOC_ANIM) => ({ docAnim }),\n\n// \t\tsetSnackbar: (snackbar: SnackbarState) => ({ snackbar }),\n// \t\tsetAlert: (alert: AlertState) => ({ alert }),\n// \t},\n\n// \t// [II] da sistemare trovare un modo per avere puntualmente la connection SE la CARD è collegata con una connection\n// \tonListenerChange: (store: ViewStore, type: LISTENER_CHANGE) => {\n// \t\tif (store._listeners.size == 1 && type == LISTENER_CHANGE.ADD) {\n// \t\t\tconst cnnId = store.state.type == DOC_TYPE.CONNECTION ? store.state[\"connection\"]?.id : store.state[\"connectionId\"]\n// \t\t\tif (cnnId) socketPool.create(`global::${cnnId}`, cnnId)\n// \t\t} else if (store._listeners.size == 0) {\n// \t\t\tconst cnnId = store.state.type == DOC_TYPE.CONNECTION ? store.state[\"connection\"]?.id : store.state[\"connectionId\"]\n// \t\t\tif (cnnId) socketPool.destroy(`global::${cnnId}`)\n// \t\t\tstore[\"fetchAbort\"]?.()\n// \t\t}\n// \t}\n// }\n\n// export type ViewState = Partial\n// export type ViewGetters = typeof viewSetup.getters\n// export type ViewActions = typeof viewSetup.actions\n// export type ViewMutators = typeof viewSetup.mutators\n\n/**\n * E' lo STORE \"abstract\" ereditato da tutti gli altri STORE che vogliono essere visualizzati come VIEW\n */\n// export interface ViewStore extends StoreCore, ViewGetters, ViewActions, ViewMutators {\n// \tstate: ViewState\n// }\n\n// export default viewSetup\n\n","import aboutApi from \"@/api/about\"\nimport viewSetup, { ViewStore } from \"@/stores/stacks/viewBase\"\nimport { About } from \"@/types/About\"\nimport { mixStores, StoreCore } from \"@priolo/jon\"\nimport { ViewState } from \"../viewBase\"\nimport { focusSo } from \"@priolo/jack\"\nimport { DOC_TYPE } from \"../../docs/types\"\nimport { buildStore } from \"../../docs/utils/factory\"\n\n\n\nconst setup = {\n\n\tstate: {\n\n\t\tabout: null,\n\n\t\t//#region VIEWBASE\n\t\twidth: 150,\n\t\tpinnable: false,\n\t\t//#endregion\n\t},\n\n\tgetters: {\n\t\t//#region VIEWBASE\n\t\tgetTitle: (_: void, store?: ViewStore) => \"HELP\",\n\t\tgetSubTitle: (_: void, store?: ViewStore) => \"App NUI\",\n\t\tgetSerialization: (_: void, store?: ViewStore) => {\n\t\t\tconst state = store.state as AboutState\n\t\t\treturn {\n\t\t\t\t...viewSetup.getters.getSerialization(null, store),\n\t\t\t}\n\t\t},\n\t\t//#endregion\n\t},\n\n\tactions: {\n\n\t\t//#region VIEWBASE\n\t\tsetSerialization: (data: any, store?: ViewStore) => {\n\t\t\tviewSetup.actions.setSerialization(data, store)\n\t\t},\n\t\t//#endregion\n\n\t\tasync fetch(_: void, store?: AboutStore) {\n\t\t\tconst about = await aboutApi.get({ store })\n\t\t\tstore.setAbout(about)\n\t\t},\n\n\t\tasync fetchIfVoid(_: void, store?: AboutStore) {\n\t\t\tif (!!store.state.about) return\n\t\t\tawait store.fetch()\n\t\t},\n\n\t\topenShortcut(_: void, store?: AboutStore) {\n\t\t\tconst detached = focusSo.state.shiftKey\n\t\t\tconst isOpen = !!store.state.linked\n\t\t\tconst view = !isOpen || detached ? buildStore({ type: DOC_TYPE.SHORTCUT }) : null\n\t\t\tstore.state.group[detached ? \"add\" : \"addLink\"]({ view, parent: store, anim: true })\n\t\t},\n\t},\n\n\tmutators: {\n\t\tsetAbout: (about: About) => ({ about }),\n\t},\n}\n\nexport type AboutState = typeof setup.state & ViewState\nexport type AboutGetters = typeof setup.getters\nexport type AboutActions = typeof setup.actions\nexport type AboutMutators = typeof setup.mutators\nexport interface AboutStore extends ViewStore, StoreCore, AboutGetters, AboutActions, AboutMutators {\n\tstate: AboutState\n}\nconst aboutSetup = mixStores(viewSetup, setup)\nexport default aboutSetup\n\n\n","import ajax, { CallOptions } from \"@/plugins/AjaxService\"\nimport { BucketConfig, BucketState } from \"@/types/Bucket\"\n\n\n\n/** INDEX */\nfunction index(connectionId: string, opt?: CallOptions): Promise {\n\treturn ajax.get(`connection/${connectionId}/kv`, null, opt)\n}\n\n/** GET */\nfunction get(connectionId: string, bucketName: string, opt?: CallOptions): Promise {\n\treturn ajax.get(`connection/${connectionId}/kv/${bucketName}`, null, opt)\n}\n\n/** DELETE */\nfunction remove(connectionId: string, bucketName: string, opt?: CallOptions): Promise {\n\tif (!connectionId || !bucketName) return\n\treturn ajax.delete(`connection/${connectionId}/kv/${bucketName}`, null, opt)\n}\n\n/** CREATE */\nfunction create(connectionId: string, bucket: BucketConfig, opt?: CallOptions): Promise {\n\tif (!connectionId || !bucket) return\n\treturn ajax.post(`connection/${connectionId}/kv`, bucket, opt)\n}\n\n/** UPDATE */\nfunction update(connectionId: string, bucket: BucketConfig, opt?: CallOptions): Promise {\n\tif (!connectionId || !bucket) return\n\treturn ajax.post(`connection/${connectionId}/kv/${bucket.bucket}`, bucket, opt)\n}\n\n/** PURGE DELETED keys from bucket */\nfunction purgeDeleted(connectionId: string, bucketName: string, opt?: CallOptions): Promise {\n\treturn ajax.post(`connection/${connectionId}/kv/${bucketName}/purge_deleted`, null, opt)\n}\n\n\nconst api = {\n\tindex,\n\tget,\n\tremove,\n\tcreate,\n\tupdate,\n\tpurgeDeleted,\n}\nexport default api","\n\nexport interface StreamInfo {\n\tconfig: StreamConfig\n\tstate?: StreamState\n}\n\nexport interface StreamConfig {\n\tname: string \t\t\t\t// string, not editable\n\tdescription: string\t\t\t// string, omitted if empty\n\tsubjects: string[]\t\t\t// array of strings, omitted if empty\n\tretention: RETENTION \t\t// string: \"limits\", \"interest\", or \"workqueue\", not editable\n\tmaxConsumers: number \t\t// integer, omitted if zero, not editable\n\tmaxMsgs: number \t\t\t// integer, omitted if zero\n\tmaxBytes: number\t\t\t// integer, omitted if zero\n\tdiscard: DISCARD \t\t\t// string: \"old\" or \"new\"\n\tmaxAge?: number\t\t\t\t// integer, omitted if zero\n\tmaxMsgsPerSubject: number, \t// integer, omitted if zero\n\tmaxMsgSize: number, \t\t// integer, omitted if zero\n\tstorage?: STORAGE\t\t\t// string: \"file\" or \"memory\", not editable\n\tnumReplicas: number, \t\t// integer, omitted if zero\n\tnoAck: boolean, \t\t\t// boolean, omitted if false\n\ttemplateOwner: string, \t\t// string, omitted if empty\n\tduplicateWindow: number, \t// integer, omitted if zero\n\tplacement: Placement\t\t// object, omitted if null\n\tmirror: Mirror \t\t\t\t// object, omitted if null, not editable, \"name\" is taken from stream names\n\tsources: Source[]\t\t\t// array of objects, omitted if empty, \"name\" is taken from stream names\n\tsealed: boolean, \t\t\t// boolean, omitted if false, read only\n\tdenyDelete: boolean, \t\t// boolean, omitted if false, not editable\n\tdenyPurge: boolean, \t\t// boolean, omitted if false, not editable\n\tallowRollupHdrs: boolean \t// boolean, omitted if false\n\trepublish: Republish \t\t// object, omitted if null\n\tallowDirect: boolean \t\t\t// boolean, omitted if false\n\tmirrorDirect: boolean \t\t// boolean, omitted if false\n\tmetadata?: { [key: string]: string } // hash of string -> string to add custom metadata to consumer\n\tcompression: string \t\t\t// string, omitted if null\n\tfirstSeq: number \t\t\t// integer, omitted if zero\n\tsubjectTransform?: SubjectTransform // object, omitted if null\n\tconsumerLimits: ConsumerLimit // object, omitted if null\n}\n\nexport interface StreamState {\n\t// numero messaggi arrivati\n\tmessages: number;\n\t// quantità in byte occupata ai messaggi\n\tbytes: number;\n\t// la prima seqNumber disponibile\n\tfirstSeq: number;\n\t// Go type: time\n\tfirstTs: any;\n\t// l'ultima seqNumber disponibile\n\tlastSeq: number;\n\t// Go type: time\n\tlastTs: any;\n\t// numro di CONSUMER\n\tconsumerCount: number;\n\t// ???\n\tdeleted?: number[];\n\t// ???\n\tnumDeleted?: number;\n\t// ???\n\tnumSubjects?: number;\n\t// numero di messaggi per ogni SUBJECT\n\tsubjects?: { [key: string]: number };\n}\n\nexport interface Republish {\n\tsrc: string, \t\t\t\t// string, omitted if empty\n\tdest: string, \t\t\t\t// string, omitted if empty\n\theadersOnly: false \t\t\t// boolean, omitted if false\n}\n\nexport interface Mirror {\n\tname: string\t\t\t\t// string, omitted if empty\n\toptStartSeq: number\n\toptStartTime: string\t // time string, omitted if zero\n\tfilterSubject: string\t\t// string, omitted if empty\n\tsubjectTransforms?: SubjectTransform[] // object, omitted if null\n\texternal?: {\t\t\t\t\t// object, omitted if null\n\t\tapi: string\n\t\tdeliver: string\n\t}\n\tdomain?: string \t\t\t\t// string, omitted if empty\n}\n\nexport interface Placement {\n\tcluster: string\t\t\t\t// string, omitted if empty\n\ttags: string[]\t\t\t\t// array of strings, omitted if empty\n}\n\nexport interface Source {\n\tname: string\t\t\t\t// string, omitted if empty\n\toptStartSeq: number\n\toptStartTime: string\t // time string, omitted if zero\n\tfilterSubject: string\t\t// string, omitted if empty\n\tsubjectTransforms?: SubjectTransform[] // object, omitted if null\n\texternal?: {\t\t\t\t\t// object, omitted if null\n\t\tapi: string\n\t\tdeliver: string\n\t}\n\tdomain?: string \t\t\t\t// string, omitted if empty\n}\n\nexport interface SubjectTransform {\n\tsrc: string\n\tdest: string\n}\n\nexport interface ConsumerLimit {\n\tinactiveThreshold: number // time string, omitted if zero\n\tmaxAckPending: number \t\t// integer, omitted if zero\n}\n\nexport enum STORAGE {\n\tFILE = \"file\",\n\tMEMORY = \"memory\",\n}\n\nexport enum RETENTION {\n\tLIMIT = \"limits\",\n\tINTEREST = \"interest\",\n\tWORKQUEUE = \"workqueue\",\n}\n\nexport enum DISCARD {\n\tOLD = \"old\",\n\tNEW = \"new\",\n}\n\nexport enum UM_BIT {\n\tBYTE = \"byte\",\n\tKBIT = \"KiB\",\n\tMBIT = \"MiB\",\n\tGBIT = \"GiB\",\n\tTBIT = \"TiB\",\n}\n\nexport enum COMPRESSION {\n\tNONE = \"none\",\n\tS2 = \"s2\",\n}","import cnnSo from \"@/stores/connections\";\nimport { buildStore } from \"@/stores/docs/utils/factory\";\nimport { BucketsState, BucketsStore } from \"@/stores/stacks/buckets\";\nimport { DOC_TYPE, EDIT_STATE } from \"@/types\";\nimport { BucketConfig, BucketState } from \"@/types/Bucket\";\nimport { STORAGE } from \"@/types/Stream\";\nimport { VIEW_SIZE } from \"../../utils\";\nimport { BucketStatus, BucketStore } from \"../detail\";\n\n\n\n/** store card lista dei buckets di una connection */\nexport function buildBuckets(connectionId: string) {\n\tconst cnn = cnnSo.getById(connectionId);\n\tif (!cnn) { console.error(\"no param\"); return null; }\n\tconst bucketsStore = buildStore({\n\t\ttype: DOC_TYPE.BUCKETS,\n\t\tconnectionId: cnn.id,\n\t} as BucketsState) as BucketsStore;\n\treturn bucketsStore;\n}\n\n/** store card dettaglio del parametro \"bucket\" */\nexport function buildBucket(connectionId: string, bucket: Partial) {\n\tif (!connectionId) { console.error(\"no param\"); return null; }\n\tconst bucketStore = buildStore({\n\t\ttype: DOC_TYPE.BUCKET,\n\t\teditState: EDIT_STATE.READ,\n\t\tconnectionId,\n\t\tbucket,\n\t} as BucketStatus) as BucketStore;\n\treturn bucketStore;\n}\n\n/** store card dettaglio di un nuovo bucket */\nexport function buildBucketNew(connectionId: string) {\n\tif (!connectionId) { console.error(\"no param\"); return null; }\n\tconst bucketStore = buildStore({\n\t\ttype: DOC_TYPE.BUCKET,\n\t\teditState: EDIT_STATE.NEW,\n\t\tsize: VIEW_SIZE.NORMAL,\n\t\tsizeForce: true,\n\t\tconnectionId,\n\t\tbucket: buildNewBucketState(),\n\t} as BucketStatus) as BucketStore;\n\treturn bucketStore;\n}\n\n\n\nfunction buildNewBucketState(): BucketState {\n\treturn {\n\t\tbucket: \"\",\n\t\tvalues: 0,\n\t\thistory: 0,\n\t\tttl: 0,\n\t\tbackingStore: STORAGE.FILE,\n\t\tbytes: 0,\n\t\tcompressed: false,\n\t\tconfig: buildNewBucketConfig(),\n\t}\n}\n\nfunction buildNewBucketConfig(): BucketConfig {\n\treturn {\n\t\tbucket: \"\",\n\t\tdescription: \"\",\n\t\tmaxValueSize: -1,\n\t\thistory: 0,\n\t\tttl: 0,\n\t\tmaxBytes: -1,\n\t\tstorage: STORAGE.FILE,\n\t\treplicas: 0,\n\t\tplacement: null,\n\t\trePublish: null,\n\t\tmirror: null,\n\t\tsources: [],\n\t\tcompression: false,\n\t}\n}","import bucketApi from \"@/api/buckets\"\nimport cnnSo from \"@/stores/connections\"\nimport { MESSAGE_TYPE } from \"@/stores/log/utils\"\nimport { KVEntriesStore } from \"@/stores/stacks/kventry\"\nimport { default as docSetup, default as viewSetup, ViewState, ViewStore } from \"@/stores/stacks/viewBase\"\nimport { DOC_TYPE } from \"@/types\"\nimport { BucketState } from \"@/types/Bucket\"\nimport { docsSo, utils } from \"@priolo/jack\"\nimport { mixStores } from \"@priolo/jon\"\nimport loadBaseSetup, { LoadBaseState, LoadBaseStore } from \"../loadBase\"\nimport { buildBucket, buildBucketNew } from \"./utils/factory\"\n\n\n\n/** BUCKETS COLLECTION */\nconst setup = {\n\n state: {\n /** connessione di riferimento */\n connectionId: null,\n /** elemento selezionato */\n select: null,\n /** all elements */\n all: null,\n textSearch: null,\n\n //#region VIEWBASE\n width: 310,\n //#endregion\n },\n\n getters: {\n\n //#region VIEWBASE\n getTitle: (_: void, store?: ViewStore) => \"BUCKETS\",\n getSubTitle: (_: void, store?: ViewStore) => cnnSo.getById((store).state.connectionId)?.name,\n getSerialization: (_: void, store?: ViewStore) => {\n const state = store.state as BucketsState\n return {\n ...viewSetup.getters.getSerialization(null, store),\n connectionId: state.connectionId,\n select: state.select,\n }\n },\n //#endregion\n\n getByName(name: string, store?: BucketsStore) {\n if (!name) return null\n return store.state.all?.find(s => s.bucket == name)\n },\n getIndexByName(name: string, store?: BucketsStore) {\n if (!name) return -1\n return store.state.all?.findIndex(s => s.bucket == name)\n },\n /** filtrati e da visualizzare in lista */\n getFiltered(_: void, store?: BucketsStore) {\n const text = store.state.textSearch?.toLocaleLowerCase()?.trim()\n if (!text || text.trim().length == 0 || !store.state.all) return store.state.all\n return store.state.all.filter(bucket =>\n bucket.bucket.toLowerCase().includes(text)\n )\n }\n },\n\n actions: {\n\n //#region OVERWRITE\n setSerialization: (data: any, store?: ViewStore) => {\n viewSetup.actions.setSerialization(data, store)\n const state = store.state as BucketsState\n state.connectionId = data.connectionId\n state.select = data.select\n },\n async fetch(_: void, store?: LoadBaseStore) {\n const s = store\n const buckets = await bucketApi.index(s.state.connectionId, {store, manageAbort: true})\n s.setAll(buckets)\n await loadBaseSetup.actions.fetch(_, store)\n },\n //#endregion\n\n async fetchIfVoid(_: void, store?: BucketsStore) {\n if (!!store.state.all) return\n await store.fetch()\n },\n /** open related card to create new element */\n create(_: void, store?: BucketsStore) {\n const view = buildBucketNew(store.state.connectionId)\n store.state.group.addLink({view, parent: store, anim: true})\n store.setSelect(null)\n },\n async delete(_: void, store?: BucketsStore) {\n if (!await store.alertOpen({\n title: \"BUCKET DELETION\",\n body: \"This action is irreversible.\\nAre you sure you want to delete the BUCKET?\",\n })) return\n\n const name = store.state.select\n await bucketApi.remove(store.state.connectionId, name, {store})\n store.setAll(store.state.all.filter(b => b.bucket != name))\n store.setSelect(null)\n\n // find other cards related to the bucket to close it\n const cardbuckets = utils.findAll(docsSo.getAllCards(), {type: DOC_TYPE.BUCKET, connectionId: store.state.connectionId})\n cardbuckets.forEach(view => view.state.group.remove({view, anim: true}))\n\n store.setSnackbar({\n open: true, type: MESSAGE_TYPE.SUCCESS, timeout: 5000,\n title: \"DELETED\",\n body: \"it is gone forever\",\n })\n },\n async purgeDeleted(_: void, store?: BucketsStore) {\n if (!await store.alertOpen({\n title: \"PURGE DELETED KEYS\",\n body: \"This action is irreversible and will remove all the keys flagged as deleted.\\nAre you sure?\",\n })) return\n\n const name = store.state.select\n await bucketApi.purgeDeleted(store.state.connectionId, name, {store})\n\n //find other cards related to the same bucket keys and refresh them to remove the deleted ones\n utils.forEachViews(docsSo.getAllCards(),(view) => {\n if (view.state.type === DOC_TYPE.KVENTRIES) {\n const v = view as KVEntriesStore\n if (v.state.connectionId == store.state.connectionId && v.state.bucket.bucket == name) {\n v.fetch()\n }\n }\n })\n\n },\n\n update(bucket: BucketState, store?: BucketsStore) {\n const all = [...store.state.all]\n const index = store.getIndexByName(bucket.bucket)\n index == -1 ? all.push(bucket) : (all[index] = {...all[index], ...bucket})\n store.setAll(all)\n },\n /** apro la CARD del dettaglio */\n select(name: string, store?: BucketsStore) {\n const nameOld = store.state.select\n const nameNew = (name && nameOld !== name) ? name : null\n const view = nameNew ? buildBucket(store.state.connectionId, store.getByName(nameNew)) : null\n store.setSelect(nameNew)\n store.state.group.addLink({view, parent: store, anim: !nameOld || !nameNew})\n },\n },\n\n mutators: {\n setAll: (all: BucketState[]) => ({all}),\n setSelect: (select: string) => ({select}),\n setTextSearch: (textSearch: string) => ({textSearch}),\n },\n}\n\nexport type BucketsState = typeof setup.state & ViewState & LoadBaseState\nexport type BucketsGetters = typeof setup.getters\nexport type BucketsActions = typeof setup.actions\nexport type BucketsMutators = typeof setup.mutators\n\nexport interface BucketsStore extends ViewStore, LoadBaseStore, BucketsGetters, BucketsActions, BucketsMutators {\n state: BucketsState\n}\n\nconst bucketsSetup = mixStores(docSetup, loadBaseSetup, setup)\nexport default bucketsSetup\n","import { buildStore } from \"@/stores/docs/utils/factory\";\nimport { DOC_TYPE, EDIT_STATE } from \"@/types\";\nimport { BucketConfig, BucketState } from \"@/types/Bucket\";\nimport { KVEntry } from \"@/types/KVEntry\";\nimport { STORAGE } from \"@/types/Stream\";\nimport { KVEntriesState, KVEntriesStore } from \"..\";\nimport { KVEntryState, KVEntryStore } from \"../detail\";\n\n\n\nexport function buildNewBucketState(): BucketState {\n\treturn {\n\t\tbucket: \"\",\n\t\tvalues: 0,\n\t\thistory: 0,\n\t\tttl: 0,\n\t\tbackingStore: STORAGE.FILE,\n\t\tbytes: 0,\n\t\tcompressed: false,\n\t}\n}\n\nexport function buildNewBucketConfig(): BucketConfig {\n\treturn {\n\t\tbucket: \"\",\n\t\tdescription: \"\",\n\t\tmaxValueSize: 0,\n\t\thistory: 0,\n\t\tttl: 0,\n\t\tmaxBytes: 0,\n\t\tstorage: STORAGE.FILE,\n\t\treplicas: 0,\n\t\tplacement: null,\n\t\trePublish: null,\n\t\tmirror: null,\n\t\tsources: [],\n\t\tcompression: false,\n\t}\n}\nexport function buildKVEntries(connectionId: string, bucket: BucketState) {\n\tif (!bucket || !connectionId) { console.error(\"no param\"); return null; }\n\tconst bucketsStore = buildStore({\n\t\ttype: DOC_TYPE.KVENTRIES,\n\t\tconnectionId: connectionId,\n\t\tbucket,\n\t} as KVEntriesState) as KVEntriesStore;\n\treturn bucketsStore;\n}\n\nexport function buildKVEntry(connectionId: string, bucket: Partial, kventry: KVEntry, autoFormat: boolean = true) {\n\tif (!bucket || !connectionId) { console.error(\"no param\"); return null; }\n\tconst store = buildStore({\n\t\ttype: DOC_TYPE.KVENTRY,\n\t\teditState: EDIT_STATE.READ,\n\t\tconnectionId,\n\t\tbucket,\n\t\tkventry,\n\t\tautoFormat\n\t} as KVEntryState) as KVEntryStore;\n\treturn store;\n}\n\nexport function buildKVEntryNew(connectionId: string, bucket: Partial) {\n\tif (!bucket || !connectionId) { console.error(\"no param\"); return null; }\n\tconst store = buildStore({\n\t\ttype: DOC_TYPE.KVENTRY,\n\t\teditState: EDIT_STATE.NEW,\n\t\tconnectionId,\n\t\tbucket,\n\t\tkventry: { key: \"\", payload: \"\" },\n\t} as KVEntryState) as KVEntryStore;\n\treturn store;\n}\n","import bucketApi from \"@/api/buckets\"\nimport docSo from \"@/stores/docs\"\nimport { focusSo, utils } from \"@priolo/jack\"\nimport { MESSAGE_TYPE } from \"@/stores/log/utils\"\nimport viewSetup, { ViewState, ViewStore } from \"@/stores/stacks/viewBase\"\nimport { DOC_TYPE, EDIT_STATE } from \"@/types\"\nimport { BucketConfig, BucketState } from \"@/types/Bucket\"\nimport { StoreCore, mixStores } from \"@priolo/jon\"\nimport { BucketsState, BucketsStore } from \".\"\nimport { buildKVEntries } from \"../kventry/utils/factory\"\nimport loadBaseSetup, { LoadBaseState, LoadBaseStore } from \"../loadBase\"\nimport { VIEW_SIZE } from \"../utils\"\nimport { buildStore } from \"../../docs/utils/factory\"\nimport { JsonConfigState, JsonConfigStore } from \"../jsonconfig\"\n\n\n\n/** BUCKET DETAIL */\nconst setup = {\n\n\tstate: {\n\t\tconnectionId: null,\n\t\tbucket: null,\n\t\tbucketConfig: null,\n\n\t\teditState: EDIT_STATE.READ,\n\n\t\t//#region VIEWBASE\n\t\twidth: 230,\n\t\tsize: VIEW_SIZE.COMPACT,\n\t\t//#endregion\n\t},\n\n\tgetters: {\n\n\t\t//#region VIEWBASE\n\t\tgetTitle: (_: void, store?: ViewStore) => \"BUCKET DETAIL\",\n\t\tgetSubTitle: (_: void, store?: ViewStore) => (store).state.bucket?.bucket ?? \"--\",\n\t\tgetSerialization: (_: void, store?: ViewStore) => {\n\t\t\tconst state = store.state as BucketStatus\n\t\t\treturn {\n\t\t\t\t...viewSetup.getters.getSerialization(null, store),\n\t\t\t\tconnectionId: state.connectionId,\n\t\t\t\tbucket: state.bucket,\n\t\t\t\teditState: state.editState,\n\t\t\t}\n\t\t},\n\t\t//#endregion\n\n\t\tgetParentList: (_: void, store?: BucketStore): BucketsStore => utils.findInRoot(store.state.group.state.all, {\n\t\t\ttype: DOC_TYPE.BUCKETS,\n\t\t\tconnectionId: store.state.connectionId,\n\t\t} as Partial) as BucketsStore,\n\n\t\tgetKVEntriesOpen: (_: void, store?: BucketStore) => store.state.linked?.state.type == DOC_TYPE.KVENTRIES,\n\t},\n\n\tactions: {\n\n\t\t//#region OVERWRITE\n\t\tsetSerialization: (data: any, store?: ViewStore) => {\n\t\t\tviewSetup.actions.setSerialization(data, store)\n\t\t\tconst state = store.state as BucketStatus\n\t\t\tstate.connectionId = data.connectionId\n\t\t\tstate.bucket = data.bucket\n\t\t\tstate.editState = data.editState\n\t\t},\n\t\tonLinked: (_: void, store?: ViewStore) => {\n\t\t\tconst cnnStore = store as BucketStore\n\t\t\tconst options = docSo.state.cardOptions[store.state.type]\n\t\t\tstore.state.docAniDisabled = true\n\t\t\tif (options == DOC_TYPE.KVENTRIES) {\n\t\t\t\tcnnStore.openKVEntries()\n\t\t\t}\n\t\t\tstore.state.docAniDisabled = false\n\t\t},\n\t\tasync fetch(_: void, store?: LoadBaseStore) {\n\t\t\tconst s = store\n\t\t\t// se NEW è valorizzato solo \"bucketConfig\"\n\t\t\tif (!s.state.bucket) return\n\t\t\tconst bucket = await bucketApi.get(s.state.connectionId, s.state.bucket.bucket, { store })\n\t\t\ts.setBucket(bucket)\n\t\t},\n\t\t//#endregion\n\n\t\tasync fetchIfVoid(_: void, store?: BucketStore) {\n\t\t\t// eventualmente aggiorno i dati\n\t\t\tif (store.state.editState != EDIT_STATE.NEW /*&& !store.state.bucket?.config*/) {\n\t\t\t\tawait store.fetch()\n\t\t\t}\n\t\t},\n\n\t\t/** crea un nuovo BUCKET tramite BUCKET-CONFIG */\n\t\tasync save(_: void, store?: BucketStore) {\n\t\t\tlet bucketSaved: BucketState = null\n\t\t\tif (store.state.editState == EDIT_STATE.NEW) {\n\t\t\t\tbucketSaved = await bucketApi.create(store.state.connectionId, store.state.bucket.config, { store })\n\t\t\t} else {\n\t\t\t\tbucketSaved = await bucketApi.update(store.state.connectionId, store.state.bucket.config, { store })\n\t\t\t}\n\t\t\tstore.setBucket(bucketSaved)\n\t\t\tstore.getParentList()?.update(bucketSaved)\n\t\t\tstore.getParentList()?.setSelect(bucketSaved.bucket)\n\t\t\tstore.setEditState(EDIT_STATE.READ)\n\t\t\tstore.setSnackbar({\n\t\t\t\topen: true, type: MESSAGE_TYPE.SUCCESS, timeout: 5000,\n\t\t\t\ttitle: \"SAVED\",\n\t\t\t\tbody: \"you have it on the DUCKETS list\",\n\t\t\t})\n\t\t},\n\t\t/** reset ENTITY */\n\t\trestore: (_: void, store?: BucketStore) => {\n\t\t\tstore.fetch()\n\t\t\tstore.setEditState(EDIT_STATE.READ)\n\t\t},\n\n\n\t\t/** apertura della CARD JSON CONFIG */\n\t\topenJsonConfig(_: void, store?: BucketStore) {\n\t\t\t// se è già aperta la chiudo\n\t\t\tconst configOpen = store.state.linked?.state.type == DOC_TYPE.JSON_CONFIG\n\t\t\tif (configOpen) {\n\t\t\t\tstore.state.group.addLink({ view: null, parent: store, anim: true })\n\t\t\t\treturn\n\t\t\t}\n\t\t\tconst configStore = buildStore({\n\t\t\t\ttype: DOC_TYPE.JSON_CONFIG,\n\t\t\t\tvalue: JSON.stringify(store.state.bucket.config),\n\t\t\t\ttitle: `BUCKET: ${store.state.bucket.bucket}`,\n\t\t\t\tonClose: (value: string) => {\n\t\t\t\t\tif (!value) return\n\t\t\t\t\tconst config = JSON.parse(value) as BucketConfig\n\t\t\t\t\tstore?.setBucketConfig(config)\n\t\t\t\t},\n\t\t\t} as JsonConfigState) as JsonConfigStore;\n\t\t\tstore.state.group.addLink({ view: configStore, parent: store, anim: true })\n\t\t},\n\n\t\t/** apertura della CARD KVENTRY */\n\t\topenKVEntries(_: void, store?: BucketStore) {\n\t\t\tconst detached = focusSo.state.shiftKey\n\t\t\tconst isOpen = store.getKVEntriesOpen()\n\t\t\tconst view = !isOpen ? buildKVEntries(store.state.connectionId, store.state.bucket) : null\n\t\t\tstore.state.group[detached ? \"add\" : \"addLink\"]({ view, parent: store, anim: true })\n\t\t},\n\n\t},\n\n\tmutators: {\n\t\tsetBucket: (bucket: BucketState) => ({ bucket }),\n\t\tsetBucketConfig: (config: Partial, store?: BucketStore) => {\n\t\t\treturn { bucket: { ...store.state.bucket, config } }\n\t\t},\n\t\tsetEditState: (editState: EDIT_STATE) => ({ editState }),\n\t},\n}\n\nexport type BucketStatus = typeof setup.state & ViewState & LoadBaseState\nexport type BucketGetters = typeof setup.getters\nexport type BucketActions = typeof setup.actions\nexport type BucketMutators = typeof setup.mutators\nexport interface BucketStore extends ViewStore, LoadBaseStore, BucketGetters, BucketActions, BucketMutators {\n\tstate: BucketStatus\n}\nconst bucketSetup = mixStores(viewSetup, loadBaseSetup, setup)\nexport default bucketSetup\n","import connectionApi from \"@/api/connection\"\nimport viewSetup, { ViewState, ViewStore } from \"@/stores/stacks/viewBase\"\nimport { CliImport } from \"@/types\"\nimport { mixStores } from \"@priolo/jon\"\nimport cnnSo from \"../../connections\"\nimport { MESSAGE_TYPE } from \"@priolo/jack\"\n\n\n\nexport enum IMPORT_STATUS {\n\tINIT = \"INIT\",\n\tLOADING = \"LOADING\",\n\tDONE = \"DONE\",\n\tERROR = \"ERROR\",\n}\n\n/**\n * \n */\nconst setup = {\n\n\tstate: {\n\t\ttitle: \"IMPORT\",\n\t\tsubtitle: \"all files found in a directory\",\n\t\tpath: null,\n\t\timports: null,\n\t\tstatus: null,\n\t\tdialog: { open: false, imp: null },\n\n\t\t//#region VIEWBASE\n\t\twidth: 230,\n\t\twidthMax: 1000,\n\t\t//#endregion\n\t},\n\n\tgetters: {\n\n\t\t//#region VIEWBASE\n\n\t\tgetTitle: (_: void, store?: ViewStore) => (store?.state).title,\n\t\tgetSubTitle: (_: void, store?: ViewStore): string => (store?.state).subtitle,\n\n\t\t//#endregion\n\n\t},\n\n\tactions: {\n\n\t\timport: async (_: void, store?: CnnImportStore) => {\n\t\t\tstore.setStatus(IMPORT_STATUS.LOADING)\n\t\t\ttry {\n\t\t\t\tconst { connections, imports } = await connectionApi.importFromNatsCli(store.state.path, { store })\n\t\t\t\tstore.setStatus(IMPORT_STATUS.DONE)\n\t\t\t\tstore.setImports(imports)\n\t\t\t\tcnnSo.fetch()\n\t\t\t\tstore.setSnackbar({\n\t\t\t\t\topen: true, type: MESSAGE_TYPE.SUCCESS, timeout: 5000,\n\t\t\t\t\ttitle: \"IMPORTED\",\n\t\t\t\t\tbody: \"the action has been performed\",\n\t\t\t\t})\n\t\t\t} catch (e) {\n\t\t\t\tstore.setStatus(IMPORT_STATUS.ERROR)\n\t\t\t}\n\t\t},\n\n\t},\n\n\tmutators: {\n\t\tsetValue: (value: string) => ({ value }),\n\t\tsetPath: (path: string) => ({ path }),\n\t\tsetImports: (imports: CliImport[]) => ({ imports }),\n\t\tsetStatus: (status: IMPORT_STATUS) => ({ status }),\n\t\tsetDilaog: (dialog: Dialog) => ({ dialog }),\n\t},\n}\n\nexport type CnnImportState = typeof setup.state & ViewState\nexport type CnnImportGetters = typeof setup.getters\nexport type CnnImportActions = typeof setup.actions\nexport type CnnImportMutators = typeof setup.mutators\nexport interface CnnImportStore extends ViewStore, CnnImportGetters, CnnImportActions, CnnImportMutators {\n\tstate: CnnImportState\n}\nconst cnnImportSetup = mixStores(viewSetup, setup)\nexport default cnnImportSetup\n\nexport type Dialog = {\n\topen: boolean\n\timp: CliImport\n}","import cnnSo from \"@/stores/connections\";\nimport { buildStore } from \"@/stores/docs/utils/factory\";\nimport {\n\tDISCARD,\n\tRETENTION,\n\tSTORAGE,\n\tSource,\n\tStreamConfig,\n\tStreamInfo,\n\tStreamState as StreamEntityState,\n\tSubjectTransform, ConsumerLimit\n} from \"@/types/Stream\";\nimport { StreamsState, StreamsStore } from \"..\";\nimport { DOC_TYPE, EDIT_STATE } from \"@/types\";\nimport { StreamState, StreamStore } from \"../detail\";\nimport { StreamMessagesState, StreamMessagesStore } from \"../messages\";\nimport { VIEW_SIZE } from \"../../utils\";\n\n\n\n\nexport function buildStreams(connectionId: string) {\n\tconst cnn = cnnSo.getById(connectionId);\n\tif (!cnn) { console.error(\"no param\"); return null; }\n\tconst streamsStore = buildStore({\n\t\ttype: DOC_TYPE.STREAMS,\n\t\tconnectionId: cnn.id,\n\t} as StreamsState) as StreamsStore;\n\treturn streamsStore;\n}\n\nexport function buildStream(connectionId: string, stream: StreamInfo, allStreams: string[]) {\n\tif (!connectionId || !stream) { console.error(\"no param\"); return null; }\n\tconst store = buildStore({\n\t\ttype: DOC_TYPE.STREAM,\n\t\teditState: EDIT_STATE.READ,\n\t\tconnectionId: connectionId,\n\t\t//stream: { config: { name: stream.config.name } },\n\t\tstream,\n\t\tallStreams,\n\t} as StreamState) as StreamStore;\n\treturn store;\n}\n\nexport function buildStreamNew(connectionId: string, allStreams: string[]) {\n\tif (!connectionId) { console.error(\"no param\"); return null; }\n\tconst store = buildStore({\n\t\ttype: DOC_TYPE.STREAM,\n\t\teditState: EDIT_STATE.NEW,\n\t\tsize: VIEW_SIZE.NORMAL,\n\t\tsizeForce: true,\n\t\tconnectionId: connectionId,\n\t\tstream: buildNewStreamInfo(),\n\t\tallStreams,\n\t} as StreamState) as StreamStore;\n\treturn store;\n}\n\nexport function buildStreamMessages(connectionId: string, stream: Partial) {\n\tif (!stream?.config?.name || !connectionId) { console.error(\"no param\"); return null; }\n\tconst streamMessagesStore = buildStore({\n\t\ttype: DOC_TYPE.STREAM_MESSAGES,\n\t\tconnectionId,\n\t\tstream,\n\t} as StreamMessagesState) as StreamMessagesStore;\n\treturn streamMessagesStore;\n}\n\nfunction buildNewStreamInfo(): StreamInfo {\n\treturn {\n\t\tconfig: buildNewStreamConfig(),\n\t\tstate: newStreamState(),\n\t}\n}\n\nfunction buildNewStreamConfig(): StreamConfig {\n\treturn {\n\t\tname: \"\",\n\t\tdescription: \"\",\n\t\tsubjects: [],\n\t\tretention: RETENTION.LIMIT,\n\n\t\t// LIMIT\n\t\tmaxAge: 0,\n\t\tmaxBytes: -1,\n\t\tmaxConsumers: -1,\n\t\tmaxMsgSize: -1,\n\t\tmaxMsgs: -1,\n\t\tmaxMsgsPerSubject: -1,\n\n\t\tdiscard: DISCARD.OLD,\n\t\tstorage: STORAGE.FILE,\n\t\tnumReplicas: 0,\n\t\tnoAck: false,\n\t\ttemplateOwner: \"\",\n\t\tduplicateWindow: 0,\n\t\tplacement: null,\n\t\tmirror: null,\n\t\tsources: [],\n\t\tsealed: false,\n\t\tdenyDelete: false,\n\t\tdenyPurge: false,\n\t\tallowRollupHdrs: false,\n\t\trepublish: null,\n\t\tallowDirect: false,\n\t\tmirrorDirect: false,\n\t\tcompression: \"none\",\n\t\tfirstSeq: 0,\n\t\tsubjectTransform: null,\n\t\tconsumerLimits: null\n\t}\n}\n\nexport function newStreamState(): StreamEntityState {\n\treturn {\n\t\tmessages: 0,\n\t\tbytes: 0,\n\t\tfirstSeq: 1,\n\t\tlastSeq: 1,\n\t\tlastTs: Date.now(),\n\t\tfirstTs: Date.now(),\n\t\tconsumerCount: 0,\n\t}\n}\n\nexport function newSource(): Source {\n\treturn {\n\t\tname: \"\",\n\t\tdomain: \"\",\n\t\texternal: null,\n\t\tfilterSubject: \"\",\n\t\toptStartSeq: 0,\n\t\toptStartTime: null\n\t}\n}\n","import cnnSo, { ConnectionState } from \"@/stores/connections\";\nimport { buildStore } from \"@/stores/docs/utils/factory\";\nimport { CnnDetailState, CnnDetailStore } from \"@/stores/stacks/connection/detail\";\nimport { MessagesState, MessagesStore } from \"@/stores/stacks/connection/messages\";\nimport { Connection, DOC_TYPE, EDIT_STATE } from \"@/types\";\nimport { VIEW_SIZE } from \"../../utils\";\nimport { MessageSendState, MessageSendStore } from \"../messageSend\";\nimport { SyncState, SyncStore } from \"../../sync\";\n\n\n\nexport function buildConnectionMessages(connectionId: string) {\n\tconst cnn = cnnSo.getById(connectionId);\n\tif (!cnn) { console.error(\"no param\"); return null; }\n\tconst cnnMessageStore = buildStore({\n\t\ttype: DOC_TYPE.MESSAGES,\n\t\tconnectionId: cnn.id,\n\t} as MessagesState) as MessagesStore\n\treturn cnnMessageStore;\n}\n\nexport function buildConnectionSync(connectionId: string) {\n\tconst cnn = cnnSo.getById(connectionId);\n\tif (!cnn) { console.error(\"no param\"); return null; }\n\tconst cnnSyncStore = buildStore({\n\t\ttype: DOC_TYPE.SYNC,\n\t\tconnectionId: cnn.id,\n\t} as SyncState) as SyncStore\n\treturn cnnSyncStore\n}\n\n\nexport function buildConnectionNew() {\n\tconst cnnStore = buildStore({\n\t\ttype: DOC_TYPE.CONNECTION,\n\t\teditState: EDIT_STATE.NEW,\n\t\tsize: VIEW_SIZE.NORMAL,\n\t\tsizeForce: true,\n\t\tconnection: {\n\t\t\tname: \"\",\n\t\t\thosts: [],\n\t\t\tsubscriptions: [],\n\t\t\tauth: []\n\t\t}\n\t} as CnnDetailState) as CnnDetailStore;\n\treturn cnnStore;\n}\n\nexport function buildConnection(state:Partial) {\n\tconst cnnStore = buildStore({\n\t\ttype: DOC_TYPE.CONNECTION,\n\t\teditState: EDIT_STATE.READ,\n\t\t...state,\n\t} as CnnDetailState) as CnnDetailStore;\n\treturn cnnStore;\n}\n\nexport function buildConnectionMessageSend(connectionId: string, subjects: string[] = []) {\n\tconst sendStore = buildStore({\n\t\ttype: DOC_TYPE.MESSAGE_SEND,\n\t\tconnectionId: connectionId,\n\t\tsubjects,\n\t} as MessageSendState) as MessageSendStore\n\treturn sendStore;\n}\n","import cnnSo from \"@/stores/connections\"\nimport viewSetup from \"@/stores/stacks/viewBase\"\nimport { focusSo, VIEW_SIZE, ViewState, ViewStore } from \"@priolo/jack\"\nimport { mixStores } from \"@priolo/jon\"\nimport { DOC_TYPE } from \"../../docs/types\"\nimport { buildStore } from \"../../docs/utils/factory\"\nimport { CnnImportState, CnnImportStore, IMPORT_STATUS } from \"../cnnImport\"\nimport { buildStreams } from \"../streams/utils/factory\"\nimport { CnnDetailStore } from \"./detail\"\nimport { buildConnection, buildConnectionMessages, buildConnectionNew } from \"./utils/factory\"\n\n\n\n/**\n * Gestione della VIEW che visualizza la lista di CONNECTIONs\n */\nconst setup = {\n\n\tstate: {\n\t\t//#region VIEWBASE\n\t\twidth: 220,\n\t\tpinnable: false,\n\t\t//#endregion\n\t},\n\n\tgetters: {\n\n\t\t//#region OVERRIDE\n\t\tgetTitle: (_: void, store?: ViewStore) => \"CONNECTIONS\",\n\t\tgetSubTitle: (_: void, store?: ViewStore): string => \"All connections available\",\n\t\t// getSerialization: (_: void, store?: ViewStore) => {\n\t\t// \tconst state = store.state as CnnListState\n\t\t// \treturn {\n\t\t// \t\t...viewSetup.getters.getSerialization(null, store),\n\t\t// \t}\n\t\t// },\n\t\t//#endregion\n\n\t},\n\n\tactions: {\n\n\t\t//#region OVERRIDE\n\t\t// setSerialization: (data: any, store?: ViewStore) => {\n\t\t// \tviewSetup.actions.setSerialization(data, store)\n\t\t// \tconst state = store.state as CnnListState\n\t\t// },\n\t\t//#endregion\n\n\t\t/** apro/chiudo la CARD del dettaglio */\n\t\tselect(cnnId: string, store?: CnnListStore) {\n\t\t\tconst detached = focusSo.state.shiftKey\n\t\t\tconst connection = cnnSo.getById(cnnId)\n\t\t\tconst oldId = (store.state.linked as CnnDetailStore)?.state.connection?.id\n\t\t\tconst newId = (cnnId && oldId !== cnnId) ? cnnId : null\n\n\t\t\tif (detached) {\n\t\t\t\tconst view = buildConnection({ connection, size: VIEW_SIZE.NORMAL })\n\t\t\t\tstore.state.group.add({ view, index: store.state.group.getIndexByView(store) + 1 })\n\t\t\t} else {\n\t\t\t\tconst view = newId ? buildConnection({ connection }) : null\n\t\t\t\tstore.setSelect(newId)\n\t\t\t\tstore.state.group.addLink({ view, parent: store, anim: !oldId || !newId })\n\t\t\t}\n\t\t},\n\n\t\t/** apro la CARD per creare un nuovo elemento */\n\t\tcreate(_: void, store?: CnnListStore) {\n\t\t\tconst view = buildConnectionNew()\n\t\t\tstore.state.group.addLink({ view, parent: store, anim: true })\n\t\t\tstore.setSelect(null)\n\t\t},\n\n\t\topenStreams(connectionId: string, store?: CnnListStore) {\n\t\t\tstore.state.group.addLink({\n\t\t\t\tview: buildStreams(connectionId),\n\t\t\t\tparent: store,\n\t\t\t\tanim: true\n\t\t\t})\n\t\t},\n\n\t\topenMessages(connectionId: string, store?: CnnListStore) {\n\t\t\tstore.state.group.addLink({\n\t\t\t\tview: buildConnectionMessages(connectionId),\n\t\t\t\tparent: store,\n\t\t\t\tanim: true\n\t\t\t})\n\t\t},\n\n\n\n\t\t/** apertura della CARD JSON CONFIG */\n\t\topenLoader(_: void, store?: CnnDetailStore) {\n\t\t\t// se è già aperta la chiudo\n\t\t\tconst configOpen = store.state.linked?.state.type == DOC_TYPE.CNN_LOADER\n\t\t\tif (configOpen) {\n\t\t\t\tstore.state.group.addLink({ view: null, parent: store, anim: true })\n\t\t\t\treturn\n\t\t\t}\n\t\t\tconst configStore = buildStore({\n\t\t\t\ttype: DOC_TYPE.CNN_LOADER,\n\t\t\t\tpath: \"\",\n\t\t\t\timports: [],\n\t\t\t\tstatus: IMPORT_STATUS.INIT,\n\t\t\t} as CnnImportState) as CnnImportStore;\n\t\t\tstore.state.group.addLink({ view: configStore, parent: store, anim: true })\n\t\t},\n\t},\n\n\tmutators: {\n\t\tsetSelect: (select: string) => ({ select }),\n\t},\n}\n\nexport type CnnListState = typeof setup.state & ViewState\nexport type CnnListGetters = typeof setup.getters\nexport type CnnListActions = typeof setup.actions\nexport type CnnListMutators = typeof setup.mutators\nexport interface CnnListStore extends ViewStore, CnnListGetters, CnnListActions, CnnListMutators {\n\tstate: CnnListState\n}\nconst cnnSetup = mixStores(viewSetup, setup)\nexport default cnnSetup","import cnnSo from \"@/stores/connections\"\nimport docSo from \"@/stores/docs\"\nimport viewSetup, { ViewMutators, ViewState, ViewStore } from \"@/stores/stacks/viewBase\"\nimport { Connection, DOC_TYPE, EDIT_STATE } from \"@/types\"\nimport { mixStores } from \"@priolo/jon\"\nimport { buildBuckets } from \"../buckets/utils/factory\"\nimport { buildStreams } from \"../streams/utils/factory\"\nimport { VIEW_SIZE } from \"../utils\"\nimport { buildConnectionMessageSend, buildConnectionMessages, buildConnectionSync } from \"./utils/factory\"\nimport { focusSo } from \"@priolo/jack\"\n\n\n\nconst setup = {\n\n\tstate: {\n\t\t/** dialog SUBSCRIPTION aperta/chiusa */\n\t\tsubOpen: false,\n\t\t/** connection cache per l'edit */\n\t\tconnection: null,\n\n\t\teditState: EDIT_STATE.READ,\n\n\t\t//#region VIEWBASE\n\t\twidth: 200,\n\t\t//colorVar: COLOR_VAR.GREEN,\n\t\tsize: VIEW_SIZE.COMPACT,\n\t\t//#endregion\n\t},\n\n\tgetters: {\n\n\t\t//#region VIEWBASE\n\t\tgetTitle: (_: void, store?: ViewStore) => \"CONNECTION\",\n\t\tgetSubTitle: (_: void, store?: ViewStore) => (store as CnnDetailStore).getConnection()?.name ?? \"--\",\n\t\tgetSerialization: (_: void, store?: ViewStore) => {\n\t\t\tconst state = store.state as CnnDetailState\n\t\t\treturn {\n\t\t\t\t...viewSetup.getters.getSerialization(null, store),\n\t\t\t\tconnection: { id: state.connection?.id },\n\t\t\t}\n\t\t},\n\t\t//#endregion\n\n\t\tgetConnection: (_: void, store?: CnnDetailStore) => {\n\t\t\tif (store.state.editState == EDIT_STATE.READ) {\n\t\t\t\treturn cnnSo.getById(store.state.connection.id)\n\t\t\t}\n\t\t\treturn store.state.connection\n\t\t},\n\n\t\tgetMessagesOpen: (_: void, store?: CnnDetailStore) => store.state.linked?.state.type == DOC_TYPE.MESSAGES,\n\t\tgetSyncOpen: (_: void, store?: CnnDetailStore) => store.state.linked?.state.type == DOC_TYPE.SYNC,\n\t\tgetStreamsOpen: (_: void, store?: CnnDetailStore) => store.state.linked?.state.type == DOC_TYPE.STREAMS,\n\t\tgetBucketsOpen: (_: void, store?: CnnDetailStore) => store.state.linked?.state.type == DOC_TYPE.BUCKETS,\n\n\t},\n\n\tactions: {\n\n\t\t//#region VIEWBASE\n\t\tsetSerialization: (data: any, store?: ViewStore) => {\n\t\t\tviewSetup.actions.setSerialization(data, store)\n\t\t\tconst state = store.state as CnnDetailState\n\t\t\tstate.connection = data.connection\n\t\t},\n\t\tonLinked: (_: void, store?: ViewStore) => {\n\t\t\tconst cnnStore = store as CnnDetailStore\n\t\t\tconst options = docSo.state.cardOptions[store.state.type]\n\t\t\tstore.state.docAniDisabled = true\n\t\t\tif (options == DOC_TYPE.MESSAGES) {\n\t\t\t\tcnnStore.openMessages()\n\t\t\t} else if (options == DOC_TYPE.STREAMS) {\n\t\t\t\tcnnStore.openStreams()\n\t\t\t} else if (options == DOC_TYPE.BUCKETS) {\n\t\t\t\tcnnStore.openBuckets()\n\t\t\t}\n\t\t\tstore.state.docAniDisabled = false\n\t\t},\n\t\t//#endregion\n\n\t\t/** ripristino la CONNECTION visualizzata da quella contenuta nelle CONNECTIONS */\n\t\trestore(_: void, store?: CnnDetailStore) {\n\t\t\tconst cnn = cnnSo.getById(store.state.connection.id)\n\t\t\tstore.setConnection({ ...cnn })\n\t\t},\n\n\t\t/** apertura della CARD MESSAGES */\n\t\topenMessages(_: void, store?: CnnDetailStore) {\n\t\t\tconst detached = focusSo.state.shiftKey\n\t\t\tconst isOpen = store.getMessagesOpen()\n\t\t\tconst view = !isOpen || detached ? buildConnectionMessages(store.state.connection?.id) : null\n\t\t\tstore.state.group[detached ? \"add\" : \"addLink\"]({ view, parent: store, anim: true })\n\t\t},\n\t\topenSync(_: void, store?: CnnDetailStore) {\n\t\t\tconst detached = focusSo.state.shiftKey\n\t\t\tconst isOpen = store.getSyncOpen()\n\t\t\tconst view = !isOpen || detached ? buildConnectionSync(store.state.connection?.id) : null\n\t\t\tstore.state.group[detached ? \"add\" : \"addLink\"]({ view, parent: store, anim: true })\n\t\t},\n\t\t/** apertura della CARD STREAMS */\n\t\topenStreams(_: void, store?: CnnDetailStore) {\n\t\t\tconst detached = focusSo.state.shiftKey\n\t\t\tconst isOpen = store.getStreamsOpen()\n\t\t\tconst view = !isOpen || detached ? buildStreams(store.state.connection?.id) : null\n\t\t\tstore.state.group[detached ? \"add\" : \"addLink\"]({ view, parent: store, anim: true })\n\t\t},\n\t\t/** apertura della CARD BUCKETS */\n\t\topenBuckets(_: void, store?: CnnDetailStore) {\n\t\t\tconst detached = focusSo.state.shiftKey\n\t\t\tconst isOpen = store.getBucketsOpen()\n\t\t\tconst view = !isOpen || detached ? buildBuckets(store.state.connection?.id) : null\n\t\t\tstore.state.group[detached ? \"add\" : \"addLink\"]({ view, parent: store, anim: true })\n\t\t},\n\t\t/** apertura CARD MESSAGE-SEND */\n\t\topenMessageSend(_: void, store?: CnnDetailStore) {\n\t\t\tconst detached = focusSo.state.shiftKey\n\t\t\tconst cnn = store.getConnection()\n\t\t\tif (!cnn) return\n\t\t\tconst subscriptions = store.state.connection?.subscriptions?.map(s => s.subject)\n\t\t\tstore.state.group[detached ? \"add\" : \"addLink\"]({\n\t\t\t\tview: buildConnectionMessageSend(\n\t\t\t\t\tcnn.id,\n\t\t\t\t\tsubscriptions,\n\t\t\t\t),\n\t\t\t\tparent: store,\n\t\t\t\tanim: true,\n\t\t\t})\n\t\t},\n\t},\n\n\tmutators: {\n\t\tsetConnection: (connection: Connection) => ({ connection }),\n\t\tsetSubOpen: (subOpen: boolean) => ({ subOpen }),\n\t\tsetEditState: (editState: EDIT_STATE) => ({ editState }),\n\t},\n}\n\nexport type CnnDetailState = typeof setup.state & ViewState\nexport type CnnDetailGetters = typeof setup.getters\nexport type CnnDetailActions = typeof setup.actions\nexport type CnnDetailMutators = typeof setup.mutators & ViewMutators\nexport interface CnnDetailStore extends ViewStore, CnnDetailGetters, CnnDetailActions, CnnDetailMutators {\n\tstate: CnnDetailState\n}\nconst connectonSetup = mixStores(viewSetup, setup) as typeof setup\nexport default connectonSetup\n","import ajax, { CallOptions } from \"@/plugins/AjaxService\"\r\nimport { Subscription } from \"@/types\"\r\nimport { camelToSnake } from \"@/utils/object.ts\";\r\n\r\n/** PUBLISH\r\n * permette di pubblicare un messaggio\r\n */\r\nfunction publish(cnnId: string, subject: string, payload: string, headersArray: [string, string][], opt: CallOptions = {}) {\r\n\tconst data = camelToSnake({\r\n\t\tsubject,\r\n\t\tpayload: btoa(payload)\r\n\t})\r\n\t// when publishing a message, the headers must not converted to snake case\r\n\t// so we add them after the conversion and disable the auto snake case conversion\r\n\tdata.headers = toDic(headersArray)\r\n\topt.noSnake = true\r\n\treturn ajax.post(`connection/${cnnId}/messages/publish`, data, opt)\r\n}\r\n\r\n/** GET\r\n * https://github.com/nats-nui/nui/blob/main/frontend/docs/entities/messages/subscription%20index.md\r\n */\r\nfunction subscriptionIndex(cnnId: string, opt?: CallOptions): Promise {\r\n\treturn ajax.get(`connection/${cnnId}/messages/subscription`, null, opt)\r\n}\r\n\r\n/** UPDATE\r\n * https://github.com/nats-nui/nui/blob/main/frontend/docs/entities/messages/subscription%20update.md\r\n */\r\nfunction subscriptionUpdate(cnnId: string, subscriptions: Subscription[], opt?: CallOptions): Promise {\r\n\treturn ajax.post(`connection/${cnnId}/messages/subscription`, subscriptions, opt)\r\n}\r\n\r\n/** SYNC\r\n * https://github.com/nats-nui/nui/blob/main/frontend/docs/entities/request_response/request_response.md\r\n */\r\nasync function sync(cnnId: string, subject: string, payload: string, headersArray: [string, string][], timeoutMs: number = 2000, opt: CallOptions = {}): Promise {\r\n\tconst data = camelToSnake({\r\n\t\tsubject,\r\n\t\tpayload: btoa(payload),\r\n\t\ttimeout_ms: timeoutMs\r\n\t})\r\n\t// like publish, also here the auto conversion to snake case is disabled\r\n\tdata.headers = toDic(headersArray)\r\n\topt.noSnake = true\r\n\r\n\tconst resp = await ajax.post(`connection/${cnnId}/request`, data, opt) as SyncResp\r\n\tresp.payload = atob(resp.payload)\r\n\treturn resp\r\n}\r\n\r\ntype SyncResp = {\r\n\tsubject: string,\t// response subject\r\n\tpayload: string, \t// base64 encoded response payload\r\n\theaders: { [key: string]: string[] } // response headers\r\n}\r\n\r\nconst messagesApi = {\r\n\tpublish,\r\n\tsubscriptionIndex,\r\n\tsubscriptionUpdate,\r\n\tsync,\r\n}\r\nexport default messagesApi\r\n\r\n\r\nfunction toDic(arr: [string, string][]): { [key: string]: string[] } {\r\n\tconst headers: { [key: string]: string[] } = arr.reduce<{ [key: string]: string[] }>((acc, [key, value]) => {\r\n\t\tif (!acc[key]) {\r\n\t\t\tacc[key] = [value]\r\n\t\t} else {\r\n\t\t\tacc[key].push(value)\r\n\t\t}\r\n\t\treturn acc;\r\n\t}, {})\r\n\treturn headers\r\n}","\nexport enum MSG_FORMAT {\n\tJSON = \"json\",\n\tTEXT = \"text\",\n\tHEX = \"hex\",\n\tBASE64 = \"base64\",\n\tXML = \"xml\",\n\tHTML = \"html\",\n}\nexport enum MSG_FORMAT_EDIT {\n\tJSON = \"json\",\n\tTEXT = \"text\",\n\tXML = \"xml\",\n\tHTML = \"html\",\n}\n\n/** trasforma una stringa in un JSON gestendo gl errori */\nexport function toJson(text: string): { json: JSON, success: boolean } {\n\tlet json = null\n\tlet success = false\n\ttry {\n\t\tjson = JSON.parse(text)\n\t\tsuccess = true\n\t} catch {\n\t\tsuccess = false\n\t}\n\treturn { json, success }\n}\n\nexport function toHex(text: string): string[] {\n\tlet hex: string[] = []\n\tfor (let i = 0; i < text.length; i++) {\n\t\tconst charCode = text.charCodeAt(i)?.toString(16)?.toUpperCase()\n\t\thex.push(charCode.length === 1 ? '0' + charCode : charCode)\n\t}\n\treturn hex\n}\n\nexport function toBin(text: string): number[] {\n\tlet bin: number[] = []\n\tfor (let i = 0; i < text.length; i++) {\n\t\tbin.push(text.charCodeAt(i))\n\t}\n\treturn bin\n}\n\nexport function toFormat(text: string, format: MSG_FORMAT): string {\n\tif ( text == null ) return \"\"\n\tswitch (format) {\n\t\tcase MSG_FORMAT.JSON:\n\t\t\treturn JSON.stringify(JSON.parse(text), null, 2)\n\t\tcase MSG_FORMAT.TEXT:\n\t\t\treturn text\n\t\tcase MSG_FORMAT.HEX:\n\t\t\treturn toHex(text).join(' ')\n\t\tcase MSG_FORMAT.BASE64:\n\t\t\treturn btoa(text)\n\t\tcase MSG_FORMAT.XML:\n\t\t\treturn text\n\t\tcase MSG_FORMAT.HTML:\n\t\t\treturn text\n\t}\n}","import { EditorRefProps } from \"@/components/editor\"\nimport { MSG_FORMAT } from \"@/utils/editor\"\nimport { ViewState, ViewStore } from \"./viewBase\"\n\n\n\n// let autoFormat: boolean = false\n// let format: MSG_FORMAT = MSG_FORMAT.JSON\n\nconst editorSetup = {\n\n\t// state: () => {\n\t// \treturn {\n\t// \t\tformat,\n\t// \t\tformatsOpen: false,\n\t// \t\teditorRef: null,\n\t// \t\tautoFormat,\n\t// \t}\n\t// },\n\tstate: {\n\t\tformat: MSG_FORMAT.JSON,\n\t\tformatsOpen: false,\n\t\teditorRef: null,\n\t\tautoFormat: false,\n\t},\n\n\tgetters: {\n\t\tgetEditorText: (_: void, store?: ViewStore) => \"\",\n\t\t// getAutoFormat: (_: void, store?: EditorStore) => {\n\t\t// \t//if (store.state.autoFormat == null) store.state.autoFormat = autoFormat\n\t\t// \treturn store.state.autoFormat\n\t\t// }\n\t},\n\n\tactions: {\n\t\t// setAutoFormat: (value: boolean, store?:EditorStore ) => {\n\t\t// \tautoformat = value\n\t\t// \tstore._update()\n\t\t// },\n\t},\n\n\tmutators: {\n\t\tsetFormat: (value: MSG_FORMAT) => {\n\t\t\t//format = value\n\t\t\treturn { format: value }\n\t\t},\n\t\tsetFormatsOpen: (formatsOpen: boolean) => ({ formatsOpen }),\n\t\tsetAutoFormat: (value: boolean, store?: EditorStore) => {\n\t\t\t//autoFormat = value\n\t\t\treturn { autoFormat: value }\n\t\t},\n\n\t},\n}\n\n//export type EditorState = ReturnType & ViewState\nexport type EditorState = Partial & ViewState\nexport type EditorGetters = typeof editorSetup.getters\nexport type EditorActions = typeof editorSetup.actions\nexport type EditorMutators = typeof editorSetup.mutators\nexport interface EditorStore extends ViewStore, EditorGetters, EditorActions, EditorMutators {\n\tstate: EditorState\n}\n\nexport default editorSetup\n","/**\n * Converts a \"binary-string\" to a \"string\"\n */\nexport function binaryStringToString(binaryString: string) {\n\t//const binaryString = atob(str);\n\t// create a Uint8Array from binary string\n\tconst bytes = new Uint8Array(binaryString.length)\n\tfor (let i = 0; i < binaryString.length; i++) {\n\t\tbytes[i] = binaryString.charCodeAt(i)\n\t}\n\t// decodes UTF-8 byte array into string\n\treturn new TextDecoder().decode(bytes)\n}\n\n/**\n * Converts a \"string\" to a \"binary-string\"\n */\nexport function stringToBinaryString(str: string): string {\n\t// encode the string in UTF-8\n\tconst utf8Bytes = new TextEncoder().encode(str);\n\t// convert byte array to binary string\n\tconst binaryString = String.fromCharCode(...utf8Bytes);\n\treturn binaryString\n\t// return btoa(binaryString);\n}\n\n/**\n * Esporta un numero intero in formato con divisione in migliaia\n */\nexport function formatNumber(value: number | string, separator: string = \"'\") {\n\tif (value == null ) return '--';\n\tconst num = typeof value === 'string' ? Number(value) : value;\n\tif (isNaN(num)) return '--';\n\tconst intStr = num.toFixed(0)\n\treturn intStr.replace(/\\B(?=(\\d{3})+(?!\\d))/g, separator);\n}","import messagesApi from \"@/api/messages\"\nimport cnnSo from \"@/stores/connections\"\nimport { MESSAGE_TYPE } from \"@/stores/log/utils\"\nimport viewSetup, { ViewState, ViewStore } from \"@/stores/stacks/viewBase\"\nimport { StoreCore, mixStores } from \"@priolo/jon\"\nimport editorSetup, { EditorState, EditorStore } from \"../../editorBase\"\nimport { LOAD_STATE } from \"../../utils\"\nimport { stringToBinaryString } from \"../../../../utils/string\"\n\n\n\nconst setup = {\n\n\tstate: {\n\t\tconnectionId: null,\n\t\ttext: null,\n\t\tsubject: null,\n\t\tsubjects: [],\n\t\theaders: <[string, string][]>[],\n\t\tsubsOpen: false,\n\n\t\tloadingState: LOAD_STATE.IDLE,\n\n\t\t//#region VIEWBASE\n\t\twidth: 420,\n\t\t//#endregion\n\t},\n\n\tgetters: {\n\n\t\t//#region VIEWBASE\n\t\tgetTitle: (_: void, store?: ViewStore) => \"SEND MESSAGE\",\n\t\tgetSubTitle: (_: void, store?: ViewStore) => {\n\t\t\tconst cnnId = (store.state as MessageSendState).connectionId\n\t\t\tconst cnn = cnnSo.getById(cnnId)\n\t\t\treturn cnn?.name ?? \"--\"\n\t\t},\n\t\tgetSerialization: (_: void, store?: ViewStore) => {\n\t\t\tconst state = store.state as MessageSendState\n\t\t\treturn {\n\t\t\t\t...viewSetup.getters.getSerialization(null, store),\n\t\t\t\tconnectionId: state.connectionId,\n\t\t\t\ttext: state.text,\n\t\t\t\tsubject: state.subject,\n\t\t\t\tsubjects: state.subjects,\n\t\t\t\theaders: state.headers,\n\t\t\t}\n\t\t},\n\t\t//#endregion\n\n\t\tgetEditorText: (_: void, store?: ViewStore) => (store).state.text ?? \"\",\n\n\t\tgetCanEdit: (_: void, store?: MessageSendStore) => store.state.subject?.length > 0 && store.state.text?.length > 0 && store.state.loadingState != LOAD_STATE.LOADING,\n\t},\n\n\tactions: {\n\n\t\t//#region VIEWBASE\n\t\tsetSerialization: (data: any, store?: ViewStore) => {\n\t\t\tviewSetup.actions.setSerialization(data, store)\n\t\t\tconst state = store.state as MessageSendState\n\t\t\tstate.connectionId = data.connectionId\n\t\t\tstate.text = data.text\n\t\t\tstate.subject = data.subject\n\t\t\tstate.subjects = data.subjects\n\t\t\tstate.headers = data.headers\n\t\t},\n\t\t//#endregion\n\n\t\tpublish: async (_: void, store?: MessageSendStore) => {\n\t\t\ttry {\n\t\t\t\tawait messagesApi.publish(\n\t\t\t\t\tstore.state.connectionId,\n\t\t\t\t\tstore.state.subject,\n\t\t\t\t\tstringToBinaryString(store.state.text),\n\t\t\t\t\tstore.state.headers,\n\t\t\t\t\t{ store }\n\t\t\t\t)\n\t\t\t\tstore.setSnackbar({\n\t\t\t\t\topen: true,\n\t\t\t\t\ttype: MESSAGE_TYPE.INFO,\n\t\t\t\t\ttitle: \"MESSAGE SENT\",\n\t\t\t\t\tbody: \"Your message has been sent correctly\",\n\t\t\t\t\ttimeout: 2000,\n\t\t\t\t})\n\t\t\t} catch (e) { }\n\t\t},\n\n\t},\n\n\tmutators: {\n\t\tsetText: (text: string, store?: MessageSendStore) => ({ text }),\n\t\tsetSubject: (subject: string) => ({ subject }),\n\t\tsetHeaders: (headers: [string, string][]) => ({ headers }),\n\t\tsetSubsOpen: (subsOpen: boolean) => ({ subsOpen }),\n\n\t\tsetLoadingState: (loadingState: LOAD_STATE) => ({ loadingState }),\n\t},\n}\n\nexport type MessageSendState = typeof setup.state & ViewState & EditorState\nexport type MessageSendGetters = typeof setup.getters\nexport type MessageSendActions = typeof setup.actions\nexport type MessageSendMutators = typeof setup.mutators\nexport interface MessageSendStore extends ViewStore, EditorStore, MessageSendGetters, MessageSendActions, MessageSendMutators {\n\tstate: MessageSendState\n}\nconst msgSetup = mixStores(viewSetup, editorSetup, setup)\nexport default msgSetup\n","\nexport enum MESSAGE_TYPE {\n\tNORMAL = 0,\n\tINFO = 1,\n\tWARN = 2,\n}\n\nexport interface Message {\n\theaders?: { [key: string]: string[] }\n\tseqNum?: number\n\tsubject: string\n\t/** base64 encoded */\n\tpayload: string\n\treceivedAt?: number\n\t// INTERNAL\n\ttype?: MESSAGE_TYPE\n}\n","import messagesApi from \"@/api/messages\"\nimport { socketPool } from \"@/plugins/SocketService/pool\"\nimport { PayloadMessage } from \"@/plugins/SocketService/types\"\nimport cnnSo from \"@/stores/connections\"\nimport { buildMessageDetail } from \"@/stores/docs/utils/factory\"\nimport viewSetup, { ViewStore } from \"@/stores/stacks/viewBase\"\nimport { DOC_TYPE, Subscription } from \"@/types\"\nimport { MESSAGE_TYPE, Message } from \"@/types/Message\"\nimport { MSG_FORMAT } from \"@/utils/editor\"\nimport { LISTENER_CHANGE, mixStores } from \"@priolo/jon\"\nimport dayjs from \"dayjs\"\nimport { debounce } from \"../../../../utils/time\"\nimport { MessageStore } from \"../../message\"\nimport { ViewState } from \"../../viewBase\"\nimport { buildConnectionMessageSend } from \"../utils/factory\"\n\n\n\nconst MaxMessagesLength = 20000\n\nexport type MessageStat = {\n\tsubject: string,\n\tcounter: number,\n\tlast: number,\n}\n\nconst setup = {\n\n\tstate: {\n\t\t/** CONNECTION d riferimento */\n\t\tconnectionId: null,\n\n\t\t/** SUBSCRIPTION sui quali rimanere in ascolto */\n\t\tsubscriptions: null,\n\t\t/** DIALOG SUBSCRIPTION aperta */\n\t\tsubscriptionsOpen: false,\n\n\t\t/** tutti i messaggi ricevuti */\n\t\tmessages: [],\n\t\t//messages: historyTest,\n\t\tnoSysMessages: true,\n\n\t\t/** contatore SUBJECTS ricevuti */\n\t\tstats: <{ [subjects: string]: MessageStat }>{},\n\n\t\t/** testo per la ricerca */\n\t\ttextSearch: null,\n\n\t\t/* per la dialog di FORMAT */\n\t\tformat: MSG_FORMAT.JSON,\n\t\tformatsOpen: false,\n\n\t\tpause: false,\n\n\t\t//#region VIEWBASE\n\t\t//#endregion\n\t},\n\n\tgetters: {\n\t\tgetConnection: (_: void, store?: MessagesStore) => {\n\t\t\treturn cnnSo.getById(store.state.connectionId)\n\t\t},\n\t\tgetSocketServiceId: (_: void, store?: MessagesStore) => `msg::${store.state.uuid}`,\n\t\tgetFiltered: (_: void, store?: MessagesStore) => {\n\t\t\tconst text = store.state.textSearch?.toLocaleLowerCase()?.trim()\n\t\t\tif (!text || text.length == 0 || !store.state.messages) return store.state.messages\n\t\t\treturn store.state.messages.filter(message =>\n\t\t\t\t!!message.type\n\t\t\t\t|| message.payload.toLowerCase().includes(text)\n\t\t\t\t|| message.subject.toLowerCase().includes(text)\n\t\t\t)\n\t\t},\n\n\t\t//#region VIEWBASE\n\t\tgetTitle: (_: void, store?: ViewStore) => \"MESSAGES\",\n\t\tgetSubTitle: (_: void, store?: ViewStore) => (store).getConnection()?.name ?? \"--\",\n\t\tgetSerialization: (_: void, store?: ViewStore) => {\n\t\t\tconst state = store.state as MessagesState\n\t\t\treturn {\n\t\t\t\t...viewSetup.getters.getSerialization(null, store),\n\t\t\t\tconnectionId: state.connectionId,\n\t\t\t\tsubscriptions: state.subscriptions,\n\t\t\t\ttextSearch: state.textSearch,\n\t\t\t\tformat: state.format,\n\t\t\t}\n\t\t},\n\t\t//#endregion\n\n\t},\n\n\tactions: {\n\n\t\tasync fetch(_: void, store?: MessagesStore) {\n\t\t\tconst subscriptions = await messagesApi.subscriptionIndex(\n\t\t\t\tstore.state.connectionId,\n\t\t\t\t{ store, manageAbort: true }\n\t\t\t)\n\t\t\tsubscriptions.forEach(s => s.favorite = s.disabled = true)\n\t\t\tstore.setSubscriptions(subscriptions)\n\t\t},\n\t\tasync fetchIfVoid(_: void, store?: MessagesStore) {\n\t\t\tif (store.state.subscriptions == null) await store.fetch()\n\t\t},\n\n\t\t//#region VIEWBASE\n\t\tsetSerialization: (data: any, store?: ViewStore) => {\n\t\t\tviewSetup.actions.setSerialization(data, store)\n\t\t\tconst state = store.state as MessagesState\n\t\t\tstate.connectionId = data.connectionId\n\t\t\tstate.subscriptions = data.subscriptions\n\t\t\tstate.textSearch = data.textSearch\n\t\t\tstate.format = data.format\n\t\t},\n\t\t//#endregion\n\n\n\t\tconnect(_: void, store?: MessagesStore) {\n\t\t\tconsole.log(\"CONNECT\")\n\t\t\tconst ss = socketPool.create(store.getSocketServiceId(), store.state.connectionId)\n\t\t\tss.onOpen = () => store.sendSubscriptions()\n\t\t\tss.onMessage = message => store.addMessage(message)\n\t\t\t// ss.onStatus = (payload: PayloadStatus) => {\n\t\t\t// \tcnnSo.update({ id: store.state.connectionId, status: payload.status })\n\t\t\t// }\n\t\t},\n\t\tdisconnect(_: void, store?: MessagesStore) {\n\t\t\tconsole.log(\"DISCONNECT\")\n\t\t\tsocketPool.destroy(store.getSocketServiceId())\n\t\t},\n\n\t\t/** aggiungo un messaggio di questa CARD */\n\t\taddMessage(msg: PayloadMessage, store?: MessagesStore) {\n\n\t\t\t// eventualmente scarta i messaggi di sistema\n\t\t\tif (store.state.noSysMessages && (msg.subject.startsWith(\"_INBOX\") || msg.subject.startsWith(\"$\"))) return\n\n\t\t\tconst message: Message = {\n\t\t\t\theaders: msg.headers,\n\t\t\t\tsubject: msg.subject,\n\t\t\t\tpayload: msg.payload as string,\n\t\t\t\treceivedAt: Date.now(),\n\t\t\t}\n\t\t\tconst i = store.state.messages.length > MaxMessagesLength ? 5000 : 0\n\t\t\tconst msgs = store.state.messages.slice(i)\n\t\t\tmsgs.push(message)\n\t\t\tstore.setMessages(msgs)\n\n\t\t\tlet sbjCounter = store.state.stats[msg.subject]\n\t\t\tif (!sbjCounter) {\n\t\t\t\tsbjCounter = { subject: msg.subject, counter: 0, last: 0 }\n\t\t\t\tstore.state.stats[msg.subject] = sbjCounter\n\t\t\t}\n\t\t\tsbjCounter.counter++;\n\t\t\tsbjCounter.last = dayjs().valueOf()\n\n\t\t\t// se ho un link del dettaglio MESSAGE e questo vuole sempre l'ultimo allora lo cambio\n\t\t\tconst linked = store.state.linked as MessageStore\n\t\t\tif ( !!linked && linked?.state.type == DOC_TYPE.MESSAGE && linked.state.linkToLast ) {\n\t\t\t\tdebounce(`msg-last-${store.state.uuid}`, () => linked.setMessage(message), 300)\n\t\t\t}\n\t\t},\n\t\t/** aggiorno i subjects di questo stack messages */\n\t\tsendSubscriptions: (_: void, store?: MessagesStore) => {\n\t\t\t// invio il cambio di subs al web-socket\n\t\t\tconst subjWS = store.state.pause\n\t\t\t\t? []\n\t\t\t\t: store.state.subscriptions\n\t\t\t\t\t?.filter(s => !!s?.subject && !s.disabled)\n\t\t\t\t\t.map(s => s.subject) ?? []\n\t\t\tsocketPool.getById(store.getSocketServiceId())?.sendSubjects(subjWS)\n\n\t\t\t// messaggio in lista di cambio subs\n\t\t\tconst msgChangeSubj: Message = {\n\t\t\t\ttype: subjWS.length > 0 ? MESSAGE_TYPE.INFO : MESSAGE_TYPE.WARN,\n\t\t\t\tsubject: store.state.pause ? \"IN PAUSE\" : subjWS.length > 0 ? \"LISTENING ON SUBJECTS\" : \"NO SUBJECTS\",\n\t\t\t\tpayload: subjWS.join(\", \"),\n\t\t\t\treceivedAt: Date.now(),\n\t\t\t}\n\t\t\tstore.setMessages([...store.state.messages, msgChangeSubj])\n\t\t},\n\t\t/** invio al REST nel caso ci siano nuovi preferiti */\n\t\tupdateSubscriptions: (_: void, store?: MessagesStore) => {\n\t\t\tconst subjRest = store.state.subscriptions\n\t\t\t\t?.filter(s => !!s?.subject && s.favorite)\n\t\t\t\t.map(s => ({ subject: s.subject })) ?? []\n\t\t\tmessagesApi.subscriptionUpdate(store.state.connectionId, subjRest)\n\t\t},\n\n\t\t/** apertura CARD MESSAGE-DETAIL */\n\t\topenMessageDetail(message: Message, store?: MessagesStore) {\n\t\t\tconst storeMsg = (store.state.linked as MessageStore)\n\n\t\t\t// se è gia' aperto il dettaglio del messaggio \n\t\t\tif (storeMsg?.state.type == DOC_TYPE.MESSAGE) {\n\t\t\t\t// se è uguale a quello precedente allora lo chiudo\n\t\t\t\tif (storeMsg.state.message == message) {\n\t\t\t\t\tstore.state.group.addLink({ view: null, parent: store, anim: true })\n\t\t\t\t} else {\n\t\t\t\t\tconst msgSo: MessageStore = store.state.linked as MessageStore\n\t\t\t\t\tmsgSo.setMessage(message)\n\t\t\t\t}\n\t\t\t// se invece è chiuso...\n\t\t\t} else {\n\t\t\t\tconst view = buildMessageDetail(message, store.state.format, storeMsg?.state.autoFormat)\n\t\t\t\tstore.state.group.addLink({ view, parent: store, anim: true })\n\t\t\t}\n\t\t\tstore._update()\n\n\t\t\t// tolgo l'aggancio all'ultimo messaggio\n\t\t\tif ( store.state.linked?.state.type == DOC_TYPE.MESSAGE ) {\n\t\t\t\t(store.state.linked).state.linkToLast = false\n\t\t\t}\n\t\t},\n\t\t/** apertura CARD MESSAGE-SEND */\n\t\topenMessageSend(_: void, store?: MessagesStore) {\n\t\t\tconst cnn = store.getConnection()\n\t\t\tif (!cnn) return\n\t\t\tstore.state.group.addLink({\n\t\t\t\tview: buildConnectionMessageSend(\n\t\t\t\t\tcnn.id,\n\t\t\t\t\tstore.state.subscriptions.map(s => s.subject)\n\t\t\t\t),\n\t\t\t\tparent: store,\n\t\t\t\tanim: true,\n\t\t\t})\n\t\t},\n\t},\n\n\tmutators: {\n\t\tsetSubscriptions: (subscriptions: Subscription[]) => ({ subscriptions }),\n\t\tsetMessages: (messages: Message[]) => ({ messages }),\n\t\tsetNoSysMessages: (noSysMessages: boolean) => ({ noSysMessages }),\n\t\tsetSubscriptionsOpen: (subscriptionsOpen: boolean) => ({ subscriptionsOpen }),\n\t\tsetTextSearch: (textSearch: string) => ({ textSearch }),\n\t\tsetFormat: (format: MSG_FORMAT) => ({ format }),\n\t\tsetFormatsOpen: (formatsOpen: boolean) => ({ formatsOpen }),\n\t\tsetStats: (stats: { [subjects: string]: MessageStat }) => ({ stats }),\n\t\tsetPause: (pause: boolean) => ({ pause }),\n\t},\n\n\tonListenerChange: (store: MessagesStore, type: LISTENER_CHANGE) => {\n\t\tif (store._listeners.size == 1 && type == LISTENER_CHANGE.ADD) {\n\t\t\tstore.connect()\n\t\t} else if (store._listeners.size == 0) {\n\t\t\tstore.disconnect()\n\t\t}\n\t}\n}\n\nexport type MessagesState = typeof setup.state & ViewState\nexport type MessagesGetters = typeof setup.getters\nexport type MessagesActions = typeof setup.actions\nexport type MessagesMutators = typeof setup.mutators\nexport interface MessagesStore extends ViewStore, MessagesGetters, MessagesActions, MessagesMutators {\n\tstate: MessagesState\n}\nconst msgSetup = mixStores(viewSetup, setup)\nexport default msgSetup\n\n\n","import ajax, { CallOptions } from \"@/plugins/AjaxService\"\nimport {ConsumerConfig, StreamConsumer} from \"@/types/Consumer\"\nimport dayjs from \"dayjs\";\n\n/** INDEX */\nfunction index(connectionId: string, streamName:string, opt?: CallOptions): Promise {\n\treturn ajax.get(`connection/${connectionId}/stream/${streamName}/consumer`, null, opt)\n}\n\n/** GET */\nfunction get(connectionId: string, streamName:string, consumerName:string, opt?: CallOptions): Promise {\n\treturn ajax.get(`connection/${connectionId}/stream/${streamName}/consumer/${consumerName}`, null, opt)\n}\n\n/** CREATE */\nfunction create(connectionId: string, streamName:string, consumerConfig: ConsumerConfig, opt?: CallOptions): Promise {\n\tupdateConsumerConfig(consumerConfig)\n\treturn ajax.post(`connection/${connectionId}/stream/${streamName}/consumer`, consumerConfig, opt)\n}\n\n/** UPDATE */\nfunction update(connectionId: string, streamName:string, consumerName:string, consumerConfig: ConsumerConfig, opt?: CallOptions): Promise {\n\tupdateConsumerConfig(consumerConfig)\n\treturn ajax.post(`connection/${connectionId}/stream/${streamName}/consumer/${consumerName}`, consumerConfig, opt)\n}\n\n/** DELETE */\nfunction remove(connectionId: string, streamName:string, consumerName:string, opt?: CallOptions): Promise {\n\treturn ajax.delete(`connection/${connectionId}/stream/${streamName}/consumer/${consumerName}`, null, opt)\n}\n\nfunction updateConsumerConfig(consumerConfig: ConsumerConfig) {\n\t// update datetime field to match the required API format\n\tif (consumerConfig.optStartTime) {\n\t\tconst dateTime = dayjs(consumerConfig.optStartTime)\n\t\tif ( !dateTime.isValid()) return\n\t\tconsumerConfig.optStartTime = dateTime.toISOString()\n\t}\n}\n\nconst api = {\n\tindex,\n\tget,\n\tcreate,\n\tupdate,\n\tremove\n}\nexport default api","import { TimestampString } from \"./global\"\n\n\n\nexport interface StreamConsumer {\n\t/** The name of the stream the consumer is attached to */\n\tstreamName: string\n\t/** The name of the consumer */\n\tname: string\n\t/** The time the consumer was created */\n\tcreated: TimestampString\n\t/** The configuration of the consumer */\n\tconfig: ConsumerConfig\n\t/** Information about the sequence of the last delivered message */\n\tdelivered: SequenceInfo\n\t/** Information about the sequence of the last acknowledged message */\n\tackFloor: SequenceInfo\n\t/** The number of messages that have been delivered but not yet acknowledged */\n\tnumAckPending: number\n\t/** The number of messages that have been redelivered */\n\tnumRedelivered: number\n\t/** The number of messages that are waiting to be delivered */\n\tnumWaiting: number\n\t/** The number of messages that are pending delivery */\n\tnumPending: number\n\t/** Information about the cluster the consumer is part of */\n\tcluster?: ClusterInfo\n\t/** Whether the consumer is bound to a push subscription */\n\tpushBound?: boolean\n}\n\nexport interface ConsumerConfig {\n\n\t////// BASIC INFO\n\n\tname?: string; // The name of the consumer - Not editable\n\tdurableName?: string; // The name of the durable subscription - Not editable\n\tdescription?: string; // A description for the consumer - Editable\n\t// default Instant\n\treplayPolicy: ReplayPolicy; // The policy for message replay - Not editable\n\n\n\t////// DELIVERY POLICY\n\n\t// default: All\n\tdeliverPolicy: DeliverPolicy; // The policy for message delivery - Not editable\n\t// only show in \"DeliverByStartSequencePolicy\", default 0\n\toptStartSeq?: number; // The sequence number to start delivering messages from - Not editable\n\t// only show in \"DeliverByStartTimePolicy\" - same format and behaviour as the stream time filter\n\toptStartTime?: any; // The time to start delivering messages from - Not editable\n\tfilterSubjects?: string[]; // Array of subject to filter on for message delivery - Not editable\n\tfilterSubject?: string; // The subject to filter on for message delivery - Not editable\n\t// default: checkbox - default 0 \n\trateLimitBps?: number; // The rate limit in bytes per second for message delivery - Editable\n\n\n\t////// ACK POLICY\n\n\tackPolicy: AckPolicy; // The policy for message acknowledgement - Not editable\n\t// checkbox with time interval (like streams time intervals) - default 0\n\tackWait?: number; // The time to wait for message acknowledgement - Editable\n\t// what is the default value?\n\tmaxDeliver?: number; // The maximum number of times a message will be delivered - Editable\n\t// default: checkbox - default 0 \n\tmaxWaiting?: number; // The maximum number of waiting messages - Editable\n\t// default: checkbox - default 0 \n\tmaxAckPending?: number; // The maximum number of unacknowledged messages - Editable\n\t// default checkbox - 0 (from 0 to 100)\n\tsampleFreq?: string; // The sampling frequency for metrics - Editable\n\tbackoff?: number[]; // The backoff strategy for redelivery - Editable\n\n\n\t//// PULL OPTIONS\n\n\t// checkbox - default 0\n\tmaxBatch?: number; // The maximum batch size for message delivery - Editable\n\t// checkbox - default 0\n\tmaxExpires?: number; // The maximum time duration (nanoseconds) a message can exist - Editable\n\t// checkbox - default 0\n\tmaxBytes?: number; // The maximum size of a message in bytes - Editable\n\n\n\t/// PUSH OPTIONS (legacy)\n\n\t//default \"\"\n\tdeliverSubject?: string; // The subject to deliver the messages to - Not editable\n\t//default \"\"\n\tdeliverGroup?: string; // The group to deliver the messages to - Not editable\n\t// what is the default value?\n\tflowControl?: boolean; // Whether flow control is enabled - Editable\n\t// default 0 - checkbox\n\tidleHeartbeat?: number; // The idle heartbeat interval - Editable\n\t// what is the default value?\n\theadersOnly?: boolean; // Whether to deliver only the headers of the message - Editable\n\n\n\t/// ADVANCED\n\n\tinactiveThreshold?: number; // The threshold for marking a consumer as inactive - Editable\n\t// checkbox - default 0\n\tnumReplicas: number; // The number of replicas for the consumer - Not editable\n\t// checkbox - default off\n\tmemStorage?: boolean; // Whether to use memory storage - Not editable\n\tmetadata?: { [key: string]: string } // hash of string -> string to add custom metadata to consumer\n}\n\n\nexport enum DeliverPolicy {\n\tDeliverAllPolicy = \"all\",\n\tDeliverLastPolicy = \"last\",\n\tDeliverNewPolicy = \"new\",\n\tDeliverByStartSequencePolicy = \"by_start_sequence\",\n\tDeliverByStartTimePolicy = \"by_start_time\",\n\tDeliverLastPerSubjectPolicy = \"last_per_subject\"\n}\n\nexport enum AckPolicy {\n\tAckAllPolicy = \"all\",\n\tAckExplicitPolicy = \"explicit\",\n\tAckNonePolicy = \"none\"\n}\n\nexport enum ReplayPolicy {\n\tReplayInstantPolicy = \"instant\",\n\tReplayOriginalPolicy = \"original\"\n}\n\nexport interface SequenceInfo {\n\tconsumerSeq: number\n\tstreamSeq: number\n\t// Go type: time\n\tlastActive?: any\n}\nexport interface ClusterInfo {\n\tname?: string\n\tleader?: string\n}","import { buildStore } from \"@/stores/docs/utils/factory\";\nimport { DOC_TYPE, EDIT_STATE } from \"@/types\";\nimport { AckPolicy, ConsumerConfig, DeliverPolicy, ReplayPolicy, StreamConsumer } from \"@/types/Consumer\";\nimport { StreamInfo } from \"@/types/Stream\";\nimport { ConsumersState, ConsumersStore } from \"..\";\nimport { VIEW_SIZE } from \"../../utils\";\nimport { ConsumerState, ConsumerStore } from \"../detail\";\n\n\n\nexport function buildConsumer(connectionId: string, streamName: string, consumer: StreamConsumer) {\n\tif (!connectionId || !streamName || !consumer) { console.error(\"no param\"); return null; }\n\tconst consumerStore = buildStore({\n\t\ttype: DOC_TYPE.CONSUMER,\n\t\tconnectionId: connectionId,\n\t\tstreamName: streamName,\n\t\tconsumer,\n\t} as ConsumerState) as ConsumerStore;\n\treturn consumerStore;\n}\n\nexport function buildConsumers(connectionId: string, stream: Partial) {\n\tif (!stream?.config?.name || !connectionId) { console.error(\"no param\"); return null; }\n\tconst consumerStore = buildStore({\n\t\ttype: DOC_TYPE.CONSUMERS,\n\t\tconnectionId: connectionId,\n\t\tstreamName: stream.config.name,\n\t} as ConsumersState) as ConsumersStore;\n\treturn consumerStore;\n}\n\nexport function buildConsumerNew(connectionId: string, streamName: string) {\n\tif (!connectionId) { console.error(\"no param\"); return null; }\n\tconst store = buildStore({\n\t\ttype: DOC_TYPE.CONSUMER,\n\t\teditState: EDIT_STATE.NEW,\n\t\tsize: VIEW_SIZE.NORMAL,\n\t\tsizeForce: true,\n\t\tconnectionId: connectionId,\n\t\tstreamName: streamName,\n\t\tconsumer: newConsumer(),\n\t} as ConsumerState) as ConsumerStore;\n\treturn store;\n}\n\nexport function newConsumer(): StreamConsumer {\n\treturn {\n\t\tname: \"\",\n\t\tstreamName: \"\",\n\t\tcreated: null,\n\t\tconfig: newConsumerConfig(),\n\t\tdelivered: null,\n\t\tackFloor: null,\n\t\tnumAckPending: 0,\n\t\tnumRedelivered: 0,\n\t\tnumWaiting: 0,\n\t\tnumPending: 0,\n\t\tcluster: null,\n\t\tpushBound: null,\n\t}\n}\n\nexport function newConsumerConfig(): ConsumerConfig {\n\treturn {\n\n\t\t////// BASIC INFO\n\t\tname: \"\",\n\t\tdurableName: \"\",\n\t\tdescription: \"\",\n\t\treplayPolicy: ReplayPolicy.ReplayInstantPolicy,\n\n\t\t////// DELIVERY POLICY\n\t\tdeliverPolicy: DeliverPolicy.DeliverAllPolicy,\n\t\toptStartSeq: 0,\n\t\toptStartTime: null,\n\t\tfilterSubject: \"\",\n\t\tfilterSubjects: [],\n\t\trateLimitBps: 0,\n\n\t\t////// ACK POLICY\n\t\tackPolicy: AckPolicy.AckAllPolicy,\n\t\tackWait: 0,\n\t\tmaxDeliver: -1,\n\t\tmaxWaiting: 0,\n\t\tmaxAckPending: 0,\n\t\tsampleFreq: \"\",\n\t\tbackoff: [],\n\n\t\t//// PULL OPTIONS\n\t\tmaxBatch: 0,\n\t\tmaxExpires: 0,\n\t\tmaxBytes: 0,\n\n\t\t/// PUSH OPTIONS (legacy)\n\t\tdeliverSubject: \"\",\n\t\tdeliverGroup: \"\",\n\t\tflowControl: false,\n\t\tidleHeartbeat: 0,\n\t\theadersOnly: false,\n\n\t\t/// ADVANCED\n\t\tinactiveThreshold: 0,\n\t\tnumReplicas: 0,\n\t\tmemStorage: false,\n\t\tmetadata: {}\n\t}\n}","import conApi from \"@/api/consumers\"\nimport cnnSo from \"@/stores/connections\"\nimport viewSetup, { ViewState, ViewStore } from \"@/stores/stacks/viewBase\"\nimport { StreamConsumer } from \"@/types/Consumer\"\nimport { docsSo, utils } from \"@priolo/jack\"\nimport { mixStores } from \"@priolo/jon\"\nimport { DOC_TYPE } from \"../../docs/types\"\nimport { MESSAGE_TYPE } from \"../../log/utils\"\nimport loadBaseSetup, { LoadBaseState, LoadBaseStore } from \"../loadBase\"\nimport { buildConsumer, buildConsumerNew } from \"./utils/factory\"\n\n\n\n/** CONSUMERS COLLECTION */\nconst setup = {\n\n\tstate: {\n\t\t/** connection */\n\t\tconnectionId: null,\n\t\t/** nome dello stream di riferimento */\n\t\tstreamName: null,\n\t\t/** nome del CONSUMER selezionato */\n\t\tselect: null,\n\t\tall: null,\n\t\ttextSearch: null,\n\n\t\t//#region VIEWBASE\n\t\twidth: 310,\n\t\twidthMax: 800,\n\t\t//#endregion\n\t},\n\n\tgetters: {\n\t\t//#region VIEWBASE\n\t\tgetTitle: (_: void, store?: ViewStore) => \"CONSUMERS\",\n\t\tgetSubTitle: (_: void, store?: ViewStore) => cnnSo.getById((store).state.connectionId)?.name ?? \"--\",\n\t\tgetSerialization: (_: void, store?: ViewStore) => {\n\t\t\tconst state = store.state as ConsumersState\n\t\t\treturn {\n\t\t\t\t...viewSetup.getters.getSerialization(null, store),\n\t\t\t\tconnectionId: state.connectionId,\n\t\t\t\tstreamName: state.streamName,\n\t\t\t\tselect: state.select,\n\t\t\t}\n\t\t},\n\t\t//#endregion\n\n\t\tgetByName(name: string, store?: ConsumersStore) {\n\t\t\tif (!name) return null\n\t\t\treturn store.state.all?.find(c => c.name == name)\n\t\t},\n\t\tgetIndexByName(name: string, store?: ConsumersStore) {\n\t\t\tif (!name) return -1\n\t\t\treturn store.state.all?.findIndex(c => c.name == name)\n\t\t},\n\t\t/** filtrati e da visualizzare in lista */\n\t\tgetFiltered(_: void, store?: ConsumersStore) {\n\t\t\tconst text = store.state.textSearch?.toLocaleLowerCase()?.trim()\n\t\t\tif (!text || text.trim().length == 0 || !store.state.all) return store.state.all\n\t\t\treturn store.state.all.filter(consumer =>\n\t\t\t\tconsumer.name.toLowerCase().includes(text)\n\t\t\t)\n\t\t}\n\t},\n\n\tactions: {\n\n\t\t//#region OVERWRITE\n\t\tsetSerialization: (data: any, store?: ViewStore) => {\n\t\t\tviewSetup.actions.setSerialization(data, store)\n\t\t\tconst state = store.state as ConsumersState\n\t\t\tstate.connectionId = data.connectionId\n\t\t\tstate.streamName = data.streamName\n\t\t},\n\t\tasync fetch(_: void, store?: LoadBaseStore) {\n\t\t\tconst s = store\n\t\t\tconst consumers = await conApi.index(s.state.connectionId, s.state.streamName, { store, manageAbort: true })\n\t\t\ts.setAll(consumers)\n\t\t\tawait loadBaseSetup.actions.fetch(_, store)\n\t\t},\n\t\t//#endregion\n\n\t\tasync fetchIfVoid(_: void, store?: ConsumersStore) {\n\t\t\tif (!!store.state.all) return\n\t\t\tawait store.fetch()\n\t\t},\n\n\t\t/** open CREATION CARD */\n\t\tcreate(_: void, store?: ConsumersStore) {\n\t\t\tconst view = buildConsumerNew(store.state.connectionId, store.state.streamName)\n\t\t\tstore.state.group.addLink({ view, parent: store, anim: true })\n\t\t\tstore.setSelect(null)\n\t\t},\n\t\t/** elimina lo sTREAM selezionato \"state.select\" */\n\t\tasync delete(_: void, store?: ConsumersStore) {\n\t\t\tif (!await store.alertOpen({\n\t\t\t\ttitle: \"CONSUMER DELETION\",\n\t\t\t\tbody: \"This action is irreversible.\\nAre you sure you want to delete the CONSUMER?\",\n\t\t\t})) return\n\n\t\t\tconst consumerName = store.state.select\n\t\t\tawait conApi.remove(store.state.connectionId, store.state.streamName, consumerName, { store })\n\t\t\tstore.setAll(store.state.all.filter(s => s.config.name != consumerName))\n\t\t\tstore.setSelect(null)\n\n\t\t\t// cerco eventuali CARD di questo stream e lo chiudo\n\t\t\tconst cardStreams = utils.findAll(docsSo.getAllCards(), {\n\t\t\t\ttype: DOC_TYPE.CONSUMER,\n\t\t\t\tconnectionId: store.state.connectionId,\n\t\t\t\tstreamName: store.state.streamName\n\t\t\t})\n\t\t\tcardStreams.forEach(view => view.state.group.remove({ view, anim: true }))\n\n\t\t\tstore.setSnackbar({\n\t\t\t\topen: true, type: MESSAGE_TYPE.SUCCESS, timeout: 5000,\n\t\t\t\ttitle: \"DELETED\",\n\t\t\t\tbody: \"it is gone forever\",\n\t\t\t})\n\t\t},\n\n\t\tupdate(streamConsumer: StreamConsumer, store?: ConsumersStore) {\n\t\t\tconst all = [...store.state.all]\n\t\t\tconst index = store.getIndexByName(streamConsumer?.name)\n\t\t\tindex == -1 ? all.push(streamConsumer) : (all[index] = { ...all[index], ...streamConsumer })\n\t\t\tstore.setAll(all)\n\t\t},\n\n\t\t/** apro la CARD del dettaglio */\n\t\tselect(name: string, store?: ConsumersStore) {\n\t\t\tconst nameOld = store.state.select\n\t\t\tconst nameNew = (name && nameOld !== name) ? name : null\n\t\t\tconst view = nameNew ? buildConsumer(\n\t\t\t\tstore.state.connectionId,\n\t\t\t\tstore.state.streamName,\n\t\t\t\tstore.getByName(nameNew)\n\t\t\t) : null\n\t\t\tstore.setSelect(nameNew)\n\t\t\tstore.state.group.addLink({ view, parent: store, anim: !nameOld || !nameNew })\n\t\t},\n\t},\n\n\tmutators: {\n\t\tsetAll: (all: StreamConsumer[]) => ({ all }),\n\t\tsetSelect: (select: string) => ({ select }),\n\t\tsetTextSearch: (textSearch: string) => ({ textSearch }),\n\t},\n}\n\nexport type ConsumersState = typeof setup.state & ViewState & LoadBaseState\nexport type ConsumersGetters = typeof setup.getters\nexport type ConsumersActions = typeof setup.actions\nexport type ConsumersMutators = typeof setup.mutators\nexport interface ConsumersStore extends ViewStore, LoadBaseStore, ConsumersGetters, ConsumersActions, ConsumersMutators {\n\tstate: ConsumersState\n}\nconst consumersSetup = mixStores(viewSetup, loadBaseSetup, setup)\nexport default consumersSetup\n","import cnsApi from \"@/api/consumers\"\nimport { utils } from \"@priolo/jack\"\nimport viewSetup, { ViewState, ViewStore } from \"@/stores/stacks/viewBase\"\nimport { DOC_TYPE, EDIT_STATE } from \"@/types\"\nimport { ConsumerConfig, StreamConsumer } from \"@/types/Consumer\"\nimport { mixStores } from \"@priolo/jon\"\nimport { ConsumersState, ConsumersStore } from \".\"\nimport { buildStore } from \"../../docs/utils/factory\"\nimport { MESSAGE_TYPE } from \"../../log/utils\"\nimport { JsonConfigState, JsonConfigStore } from \"../jsonconfig\"\nimport loadBaseSetup, { LoadBaseState, LoadBaseStore } from \"../loadBase\"\n\n\n\n/** STREAM DETAIL */\nconst setup = {\n\n\tstate: {\n\t\t/** la CONNECTION che contiene lo STREAM */\n\t\tconnectionId: null,\n\t\t/** il nome dello STREAM che contiene questo CONSUMER */\n\t\tstreamName: null,\n\t\t/** il consumer appunto */\n\t\tconsumer: null,\n\n\t\teditState: EDIT_STATE.READ,\n\n\t\t//#region VIEWBASE\n\t\twidth: 230,\n\t\t//#endregion\n\t},\n\n\tgetters: {\n\t\t//#region VIEWBASE\n\t\tgetTitle: (_: void, store?: ViewStore) => \"CONSUMER DETAIL\",\n\t\tgetSubTitle: (_: void, store?: ViewStore) => (store).state.consumer?.config?.name ?? \"--\",\n\t\tgetSerialization: (_: void, store?: ViewStore) => {\n\t\t\tconst state = store.state as ConsumerState\n\t\t\treturn {\n\t\t\t\t...viewSetup.getters.getSerialization(null, store),\n\t\t\t\tconnectionId: state.connectionId,\n\t\t\t\tstreamName: state.streamName,\n\t\t\t\tconsumer: state.consumer,\n\t\t\t}\n\t\t},\n\t\t//#endregion\n\n\t\tgetParentList: (_: void, store?: ConsumerStore): ConsumersStore => utils.findInRoot(store.state.group.state.all, {\n\t\t\ttype: DOC_TYPE.CONSUMERS,\n\t\t\tconnectionId: store.state.connectionId,\n\t\t\tstreamName: store.state.streamName,\n\t\t} as Partial) as ConsumersStore,\n\t},\n\n\tactions: {\n\n\t\t//#region OVERWRITE\n\n\t\tsetSerialization: (data: any, store?: ViewStore) => {\n\t\t\tviewSetup.actions.setSerialization(data, store)\n\t\t\tconst state = store.state as ConsumerState\n\t\t\tstate.connectionId = data.connectionId\n\t\t\tstate.streamName = data.streamName\n\t\t\tstate.consumer = data.consumer\n\t\t},\n\n\t\tfetch: async (_: void, store?: LoadBaseStore) => {\n\t\t\tconst s = store\n\t\t\tconst consumer = await cnsApi.get(s.state.connectionId, s.state.streamName, s.state.consumer.name, { store, manageAbort: true })\n\t\t\ts.setConsumer(consumer)\n\t\t\tawait loadBaseSetup.actions.fetch(_, store)\n\t\t},\n\n\t\t//#endregion\n\n\n\n\t\tasync fetchIfVoid(_: void, store?: ConsumerStore) {\n\t\t\tif (!!store.state.consumer) return\n\t\t\tawait store.fetch()\n\t\t},\n\n\t\t/** crea un nuovo CONSUMER-INFO tramite CONSUMER-CONFIG */\n\t\tasync save(_: void, store?: ConsumerStore) {\n\t\t\tlet consumerSaved: StreamConsumer = null\n\t\t\tif (store.state.editState == EDIT_STATE.NEW) {\n\t\t\t\tconsumerSaved = await cnsApi.create(store.state.connectionId, store.state.streamName, store.state.consumer.config, { store })\n\t\t\t} else {\n\t\t\t\tconsumerSaved = await cnsApi.update(store.state.connectionId, store.state.streamName, store.state.consumer.config.name, store.state.consumer.config, { store })\n\t\t\t}\n\t\t\tstore.setConsumer(consumerSaved)\n\t\t\tstore.getParentList()?.update(consumerSaved)\n\t\t\tstore.getParentList()?.setSelect(consumerSaved.config.name)\n\t\t\tstore.setEditState(EDIT_STATE.READ)\n\t\t\tstore.setSnackbar({\n\t\t\t\topen: true, type: MESSAGE_TYPE.SUCCESS, timeout: 5000,\n\t\t\t\ttitle: \"SAVED\",\n\t\t\t\tbody: \"you can find it in the CONSUMERS list\",\n\t\t\t})\n\t\t},\n\t\t/** reset ENTITY */\n\t\trestore: (_: void, store?: ConsumerStore) => {\n\t\t\tstore.fetch()\n\t\t\tstore.setEditState(EDIT_STATE.READ)\n\t\t},\n\n\n\t\t/** apertura della CARD JSON CONFIG */\n\t\topenJsonConfig(_: void, store?: ConsumerStore) {\n\t\t\t// se è già aperta la chiudo\n\t\t\tconst configOpen = store.state.linked?.state.type == DOC_TYPE.JSON_CONFIG\n\t\t\tif (configOpen) {\n\t\t\t\tstore.state.group.addLink({ view: null, parent: store, anim: true })\n\t\t\t\treturn\n\t\t\t}\n\t\t\tconst configStore = buildStore({\n\t\t\t\ttype: DOC_TYPE.JSON_CONFIG,\n\t\t\t\tvalue: JSON.stringify(store.state.consumer.config),\n\t\t\t\ttitle: `CONSUMER: ${store.state.consumer.config.name}`,\n\t\t\t\tonClose: (value: string) => {\n\t\t\t\t\tif (!value) return\n\t\t\t\t\tconst config = JSON.parse(value) as ConsumerConfig\n\t\t\t\t\tstore?.setConsumerConfig(config)\n\t\t\t\t},\n\t\t\t} as JsonConfigState) as JsonConfigStore;\n\t\t\tstore.state.group.addLink({ view: configStore, parent: store, anim: true })\n\t\t},\n\n\t},\n\n\tmutators: {\n\t\tsetConsumer: (consumer: StreamConsumer) => ({ consumer }),\n\t\tsetEditState: (editState: EDIT_STATE) => ({ editState }),\n\t\tsetConsumerConfig: (config: ConsumerConfig, store?: ConsumerStore) => ({ consumer: { ...store.state.consumer, config } }),\n\t},\n}\n\nexport type ConsumerState = typeof setup.state & ViewState & LoadBaseState\nexport type ConsumerGetters = typeof setup.getters\nexport type ConsumerActions = typeof setup.actions\nexport type ConsumerMutators = typeof setup.mutators\nexport interface ConsumerStore extends ViewStore, LoadBaseStore, ConsumerGetters, ConsumerActions, ConsumerMutators {\n\tstate: ConsumerState\n}\nconst consumerSetup = mixStores(viewSetup, loadBaseSetup, setup)\nexport default consumerSetup\n","import viewSetup, { ViewStore } from \"@/stores/stacks/viewBase\"\nimport { About } from \"@/types/About\"\nimport { mixStores } from \"@priolo/jon\"\nimport { ViewState } from \"../viewBase\"\n\n\n\nconst setup = {\n\n\tstate: {\n\n\t\t//#region VIEWBASE\n\t\twidth: 300,\n\t\tpinnable: false,\n\t\t//#endregion\n\t},\n\n\tgetters: {\n\t\t//#region VIEWBASE\n\t\tgetTitle: (_: void, store?: ViewStore) => \"HELP\",\n\t\tgetSubTitle: (_: void, store?: ViewStore) => \"Tutorial\",\n\t\t//#endregion\n\t},\n\n\tactions: {\n\n\t\t//#region VIEWBASE\n\t\t//#endregion\n\n\t},\n\n\tmutators: {\n\t\tsetAbout: (about: About) => ({ about }),\n\t},\n}\n\nexport type HelpState = typeof setup.state & ViewState\nexport type HelpGetters = typeof setup.getters\nexport type HelpActions = typeof setup.actions\nexport type HelpMutators = typeof setup.mutators\nexport interface HelpStore extends ViewStore, HelpGetters, HelpActions, HelpMutators {\n\tstate: HelpState\n}\nconst helpSetup = mixStores(viewSetup, setup)\nexport default helpSetup\n\n\n","import ajax, { CallOptions } from \"@/plugins/AjaxService\"\nimport { KVEntry } from \"@/types/KVEntry\"\n\n\n/** INDEX */\nfunction index(connectionId: string, bucketName: string, opt?: CallOptions): Promise {\n\treturn ajax.get(`connection/${connectionId}/kv/${bucketName}/key`, null, opt)\n}\n\n/** GET */\nasync function get(connectionId: string, bucketName: string, key: string, opt?: CallOptions): Promise {\n\tconst kventry: KVEntry = await ajax.get(`connection/${connectionId}/kv/${bucketName}/key/${key}`, null, opt)\n\tkventry.payload = atob(kventry.payload)\n\tkventry.history?.forEach(kve => kve.payload = atob(kve.payload))\n\treturn kventry\n}\n\n/** PUT */\nasync function put(connectionId: string, bucketName: string, key: string, payload: string, opt?: CallOptions): Promise {\n\tconst data = { payload: btoa(payload) }\n\tconst kventry: KVEntry = await ajax.post(`connection/${connectionId}/kv/${bucketName}/key/${key}`, data, opt)\n\tkventry.payload = atob(kventry.payload)\n\treturn kventry\n}\n\n/** DELETE */\nfunction remove(connectionId: string, bucketName: string, key: string, opt?: CallOptions): Promise {\n\treturn ajax.delete(`connection/${connectionId}/kv/${bucketName}/key/${key}`, null, opt)\n}\n\n/** PURGE */\nfunction purge(connectionId: string, bucketName: string, key: string, opt?: CallOptions): Promise {\n\treturn ajax.post(`connection/${connectionId}/kv/${bucketName}/key/${key}/purge`, {}, opt)\n}\n\nconst api = {\n\tindex,\n\tget,\n\tput,\n\tremove,\n\tpurge\n}\nexport default api","import kventryApi from \"@/api/kventries\"\nimport cnnSo from \"@/stores/connections\"\nimport { MESSAGE_TYPE } from \"@/stores/log/utils\"\nimport { ViewState, ViewStore, default as viewSetup } from \"@/stores/stacks/viewBase\"\nimport { DOC_TYPE } from \"@/types\"\nimport { BucketState } from \"@/types/Bucket\"\nimport { KVEntry } from \"@/types/KVEntry\"\nimport { docsSo, utils } from \"@priolo/jack\"\nimport { mixStores } from \"@priolo/jon\"\nimport loadBaseSetup, { LoadBaseState, LoadBaseStore } from \"../loadBase\"\nimport { buildKVEntry, buildKVEntryNew } from \"./utils/factory\"\n\n\n\n/** BUCKETS COLLECTION */\nconst setup = {\n\n\tstate: {\n\t\t/** connessione di riferimento */\n\t\tconnectionId: null,\n\t\tbucket: null,\n\t\t/** nome del BUCKET selezionato */\n\t\tselect: null,\n\t\tall: null,\n\t\ttextSearch: null,\n\n\t\t//#region VIEWBASE\n\t\twidth: 340,\n\t\t//#endregion\n\t},\n\n\tgetters: {\n\n\t\t//#region VIEWBASE\n\t\tgetTitle: (_: void, store?: ViewStore) => \"KVENTRIES\",\n\t\tgetSubTitle: (_: void, store?: ViewStore) => cnnSo.getById((store).state.connectionId)?.name ?? \"--\",\n\t\tgetSerialization: (_: void, store?: ViewStore) => {\n\t\t\tconst state = store.state as KVEntriesState\n\t\t\treturn {\n\t\t\t\t...viewSetup.getters.getSerialization(null, store),\n\t\t\t\tconnectionId: state.connectionId,\n\t\t\t\tbucket: state.bucket,\n\t\t\t\tselect: state.select,\n\t\t\t}\n\t\t},\n\t\t//#endregion\n\n\t\tgetByName(key: string, store?: KVEntriesStore) {\n\t\t\tif (!key) return null\n\t\t\treturn store.state.all?.find(s => s.key == key)\n\t\t},\n\t\tgetIndexByName(name: string, store?: KVEntriesStore) {\n\t\t\tif (!name) return -1\n\t\t\treturn store.state.all?.findIndex(s => s.key == name)\n\t\t},\n\n\t\t/** gli STREAM filtrati e da visualizzare in lista */\n\t\tgetFiltered(_: void, store?: KVEntriesStore) {\n\t\t\tconst text = store.state.textSearch?.toLocaleLowerCase()?.trim()\n\t\t\tif (!text || text.trim().length == 0 || !store.state.all) return store.state.all\n\t\t\treturn store.state.all.filter(kventry =>\n\t\t\t\tkventry.key.toLowerCase().includes(text)\n\t\t\t)\n\t\t}\n\t},\n\n\tactions: {\n\n\t\t//#region OVERWRITE\n\t\tsetSerialization: (data: any, store?: ViewStore) => {\n\t\t\tviewSetup.actions.setSerialization(data, store)\n\t\t\tconst state = store.state as KVEntriesState\n\t\t\tstate.connectionId = data.connectionId\n\t\t\tstate.bucket = data.bucket\n\t\t\tstate.select = data.select\n\t\t},\n\t\tasync fetch(_: void, store?: LoadBaseStore) {\n\t\t\tconst s = store\n\t\t\tconst kventries = await kventryApi.index(s.state.connectionId, s.state.bucket.bucket, { store, manageAbort: true })\n\t\t\ts.setAll(kventries)\n\t\t\tawait loadBaseSetup.actions.fetch(_, store)\n\t\t},\n\t\t//#endregion\n\n\t\tasync fetchIfVoid(_: void, store?: KVEntriesStore) {\n\t\t\tif (!!store.state.all) return\n\t\t\tawait store.fetch()\n\t\t},\n\n\t\tasync create(_: void, store?: KVEntriesStore) {\n\t\t\tconst view = buildKVEntryNew(store.state.connectionId, store.state.bucket)\n\t\t\tstore.state.group.addLink({ view, parent: store, anim: true })\n\t\t\tstore.setSelect(null)\n\t\t},\n\t\tasync delete(_: void, store?: KVEntriesStore) {\n\t\t\tif (!await store.alertOpen({\n\t\t\t\ttitle: \"KVENTRY DELETION\",\n\t\t\t\tbody: \"This action is irreversible.\\nAre you sure you want to delete the KVENTRY?\",\n\t\t\t})) return\n\n\t\t\tconst key = store.state.select\n\t\t\tawait kventryApi.remove(store.state.connectionId, store.state.bucket.bucket, key, { store })\n\t\t\tstore.setAll(store.state.all.filter(entry => entry.key != key))\n\t\t\tstore.setSelect(null)\n\n\t\t\t// cerco eventuali CARD di questo stream e lo chiudo\n\t\t\tconst cardStreams = utils.findAll(docsSo.getAllCards(), { type: DOC_TYPE.KVENTRY, bucket: { bucket: store.state.bucket.bucket } })\n\t\t\tcardStreams.forEach(view => view.state.group.remove({ view, anim: true }))\n\n\t\t\tstore.setSnackbar({\n\t\t\t\topen: true, type: MESSAGE_TYPE.SUCCESS, timeout: 5000,\n\t\t\t\ttitle: \"DELETED\",\n\t\t\t\tbody: \"it is gone forever\",\n\t\t\t})\n\t\t},\n\n\t\tasync purge(_: void, store?: KVEntriesStore) {\n\t\t\tif (!await store.alertOpen({\n\t\t\t\ttitle: \"KVENTRY PURGE\",\n\t\t\t\tbody: \"This action is irreversible.\\nAre you sure you want to purge the KVENTRY?\",\n\t\t\t})) return\n\n\t\t\tconst key = store.state.select\n\t\t\tawait kventryApi.purge(store.state.connectionId, store.state.bucket.bucket, key, { store })\n\t\t\tstore.setAll(store.state.all.filter(entry => entry.key != key))\n\t\t\tstore.setSelect(null)\n\n\t\t\tstore.setSnackbar({\n\t\t\t\topen: true, type: MESSAGE_TYPE.SUCCESS, timeout: 5000,\n\t\t\t\ttitle: \"PURGED\",\n\t\t\t\tbody: \"you will never see those ENTRY again\",\n\t\t\t})\n\t\t},\n\n\t\t/** apro la CARD del dettaglio */\n\t\tselect(key: string, store?: KVEntriesStore) {\n\t\t\tconst oldkey = store.state.select\n\t\t\tconst newKey = (key && oldkey !== key) ? key : null\n\t\t\tconst view = newKey \n\t\t\t\t? buildKVEntry(\n\t\t\t\t\tstore.state.connectionId, \n\t\t\t\t\tstore.state.bucket, \n\t\t\t\t\tstore.getByName(key), \n\t\t\t\t\t(store.state.linked as any)?.state.autoFormat\n\t\t\t\t) \n\t\t\t\t: null\n\t\t\tstore.setSelect(newKey)\n\t\t\tstore.state.group.addLink({ view, parent: store, anim: !oldkey || !newKey })\n\t\t},\n\t},\n\n\tmutators: {\n\t\tsetAll: (all: KVEntry[]) => ({ all }),\n\t\tsetSelect: (select: string) => ({ select }),\n\t\tsetTextSearch: (textSearch: string) => ({ textSearch }),\n\t},\n}\n\nexport type KVEntriesState = typeof setup.state & ViewState & LoadBaseState\nexport type KVEntriesGetters = typeof setup.getters\nexport type KVEntriesActions = typeof setup.actions\nexport type KVEntriesMutators = typeof setup.mutators\nexport interface KVEntriesStore extends ViewStore, LoadBaseStore, KVEntriesGetters, KVEntriesActions, KVEntriesMutators {\n\tstate: KVEntriesState\n}\nconst kventriesSetup = mixStores(viewSetup, loadBaseSetup, setup)\nexport default kventriesSetup\n","import kventryApi from \"@/api/kventries\"\nimport { utils } from \"@priolo/jack\"\nimport { MESSAGE_TYPE } from \"@/stores/log/utils\"\nimport viewSetup, { ViewState, ViewStore } from \"@/stores/stacks/viewBase\"\nimport { DOC_TYPE, EDIT_STATE } from \"@/types\"\nimport { BucketState } from \"@/types/Bucket\"\nimport { KVEntry } from \"@/types/KVEntry\"\nimport { mixStores } from \"@priolo/jon\"\nimport { KVEntriesState, KVEntriesStore } from \".\"\nimport { binaryStringToString, stringToBinaryString } from \"../../../utils/string\"\nimport editorSetup, { EditorState, EditorStore } from \"../editorBase\"\nimport loadBaseSetup, { LoadBaseState, LoadBaseStore } from \"../loadBase\"\n\n\n\n/** KVENTRY DETAIL */\nconst setup = {\n\n\tstate: {\n\t\tconnectionId: null,\n\t\tbucket: null,\n\t\tkventry: null,\n\n\t\teditState: EDIT_STATE.READ,\n\n\t\thistoryOpen: false,\n\t\trevisionSelected: null,\n\n\t\tautoFormat: true,\n\n\t\t//#region VIEWBASE\n\t\twidth: 420,\n\t\t//#endregion\n\t},\n\n\tgetters: {\n\n\t\t//#region VIEWBASE\n\t\tgetTitle: (_: void, store?: ViewStore) => \"KVENTRY DETAIL\",\n\t\tgetSubTitle: (_: void, store?: ViewStore) => (store).state.bucket?.bucket ?? \"--\",\n\t\tgetSerialization: (_: void, store?: ViewStore) => {\n\t\t\tconst state = store.state as KVEntryState\n\t\t\treturn {\n\t\t\t\t...viewSetup.getters.getSerialization(null, store),\n\t\t\t\tconnectionId: state.connectionId,\n\t\t\t\tbucket: state.bucket,\n\t\t\t\tkventry: state.kventry,\n\t\t\t\teditState: state.editState,\n\t\t\t}\n\t\t},\n\t\t//#endregion\n\n\t\tgetEditorText: (_: void, store?: ViewStore) => \n\t\t\tbinaryStringToString((store).getKVSelect()?.payload ?? \"\"),\n\n\n\t\t// [II] TODO\n\t\tgetParentList: (_: void, store?: KVEntryStore): KVEntriesStore => utils.findInRoot(store.state.group.state.all,{\n\t\t\ttype: DOC_TYPE.KVENTRIES,\n\t\t\tconnectionId: store.state.connectionId,\n\t\t\tbucket: { bucket: store.state.bucket.bucket }\n\t\t} as Partial) as KVEntriesStore,\n\n\t\tgetKVSelect(_: void, store?: KVEntryStore): KVEntry {\n\t\t\tconst history = store.state.kventry?.history\n\t\t\tconst revision = store.state.revisionSelected\n\t\t\tconst kv = history?.find(kv => kv.revision == revision) ?? store.state.kventry\n\t\t\treturn kv\n\t\t},\n\t\tgetKVSelectIndex(_: void, store?: KVEntryStore): number {\n\t\t\tconst current = store.state.revisionSelected ?? store.state.kventry?.revision\n\t\t\treturn store.state.kventry?.history?.findIndex(kve => kve.revision == current) ?? -1\n\t\t}\n\t},\n\n\tactions: {\n\n\t\t//#region OVERWRITE\n\t\tsetSerialization: (data: any, store?: ViewStore) => {\n\t\t\tviewSetup.actions.setSerialization(data, store)\n\t\t\tconst state = store.state as KVEntryState\n\t\t\tstate.connectionId = data.connectionId\n\t\t\tstate.bucket = data.bucket\n\t\t\tstate.kventry = data.kventry\n\t\t\tstate.editState = data.editState\n\t\t},\n\t\tfetch: async (_: void, store?: LoadBaseStore) => {\n\t\t\tconst s = store\n\t\t\tconst kventry = await kventryApi.get(s.state.connectionId, s.state.bucket.bucket, s.state.kventry.key, { store, manageAbort: true })\n\t\t\ts.setKVEntry(kventry)\n\t\t\tawait loadBaseSetup.actions.fetch(_, store)\n\t\t},\n\t\t//#endregion\n\n\n\n\t\tasync fetchIfVoid(_: void, store?: KVEntryStore) {\n\t\t\tif (!!store.state.kventry?.payload || store.state.editState == EDIT_STATE.NEW) return\n\t\t\tawait store.fetch()\n\t\t},\n\n\t\t/** crea un nuovo KVENTRY */\n\t\tasync save(_: void, store?: KVEntryStore) {\n\t\t\tconst kventry = await kventryApi.put(store.state.connectionId, store.state.bucket.bucket, store.state.kventry.key, store.state.kventry.payload, { store })\n\n\t\t\tconst current = store.state.kventry\n\t\t\tif ( !current.history ) current.history = []\n\t\t\tcurrent.history.push({ ...kventry })\n\t\t\tdelete kventry.history\n\t\t\tstore.setKVEntry({ ...current, ...kventry })\n\t\t\tstore.setRevisionSelected(kventry.revision)\n\n\t\t\tstore.getParentList()?.fetch()\n\t\t\tstore.getParentList()?.setSelect(kventry.key)\n\t\t\tstore.setEditState(EDIT_STATE.READ)\n\n\t\t\tstore.setSnackbar({\n\t\t\t\topen: true, type: MESSAGE_TYPE.SUCCESS, timeout: 5000,\n\t\t\t\ttitle: \"SAVED\",\n\t\t\t\tbody: \"you have it on the KVENTRY list\",\n\t\t\t})\n\t\t},\n\t\t/** reset ENTITY */\n\t\trestore: (_: void, store?: KVEntryStore) => {\n\t\t\tstore.fetch()\n\t\t\tstore.setEditState(EDIT_STATE.READ)\n\t\t},\n\n\n\n\t\trevisionSelect(revision: number, store?: KVEntryStore) {\n\t\t\tstore.setRevisionSelected(revision)\n\t\t\tstore.setHistoryOpen(false)\n\t\t},\n\t\trevisionOffset(offset: number, store?: KVEntryStore) {\n\t\t\tconst index = store.getKVSelectIndex()\n\t\t\tif (index == -1) return\n\t\t\tconst next = store.state.kventry.history[index + offset]\n\t\t\tif (!next) return\n\t\t\tstore.revisionSelect(next.revision)\n\t\t},\n\t\tsetEditorText(text: string, store?: KVEntryStore) {\n\t\t\tstore.setKVEntry({ \n\t\t\t\t...store.state.kventry, \n\t\t\t\tpayload: stringToBinaryString(text) }\n\t\t\t)\n\t\t}\n\t},\n\n\tmutators: {\n\t\tsetKVEntry: (kventry: KVEntry) => ({ kventry }),\n\t\tsetEditState: (editState: EDIT_STATE) => ({ editState }),\n\t\tsetHistoryOpen: (historyOpen: boolean) => ({ historyOpen }),\n\t\tsetRevisionSelected: (revisionSelected: number) => ({ revisionSelected }),\n\t},\n}\n\nexport type KVEntryState = typeof setup.state & ViewState & LoadBaseState & EditorState\nexport type KVEntryGetters = typeof setup.getters\nexport type KVEntryActions = typeof setup.actions\nexport type KVEntryMutators = typeof setup.mutators\nexport interface KVEntryStore extends ViewStore, LoadBaseStore, EditorStore, KVEntryGetters, KVEntryActions, KVEntryMutators {\n\tstate: KVEntryState\n}\nconst kventrySetup = mixStores(viewSetup, loadBaseSetup, editorSetup, setup)\nexport default kventrySetup\n","import { Log } from \"@/stores/log/utils\"\nimport viewSetup, { ViewStore } from \"@/stores/stacks/viewBase\"\nimport { StoreCore, mixStores } from \"@priolo/jon\"\nimport { ViewState } from \"../viewBase\"\n\n\n\nconst setup = {\n\n\tstate: {\n\t\t//#region VIEWBASE\n\t\tpinnable: false,\n\t\t//#endregion\n\t},\n\n\tgetters: {\n\t\t//#region VIEWBASE\n\t\tgetTitle: (_: void, store?: ViewStore) => \"LOGS\",\n\t\tgetSubTitle: (_: void, store?: ViewStore) => \"System messages\",\n\t\tgetSerialization: (_: void, store?: ViewStore) => {\n\t\t\tconst state = store.state as ViewLogState\n\t\t\treturn {\n\t\t\t\t...viewSetup.getters.getSerialization(null, store),\n\t\t\t}\n\t\t},\n\t\t//#endregion\n\t},\n\n\tactions: {\n\t\t//#region VIEWBASE\n\t\tsetSerialization: (data: any, store?: ViewStore) => {\n\t\t\tviewSetup.actions.setSerialization(data, store)\n\t\t},\n\t\t//#endregion\n\n\t\tselect (log:Log, store?:ViewLogStore ) {\n\t\t\tstore.state.group.focus(store.state.group.getById(log.targetId))\n\t\t},\n\t},\n\n\tmutators: {\n\t},\n}\n\nexport type ViewLogState = typeof setup.state & ViewState\nexport type ViewLogGetters = typeof setup.getters\nexport type ViewLogActions = typeof setup.actions\nexport type ViewLogMutators = typeof setup.mutators\nexport interface ViewLogStore extends ViewStore, ViewLogGetters, ViewLogActions, ViewLogMutators {\n\tstate: ViewLogState\n}\nconst msgSetup = mixStores(viewSetup, setup)\nexport default msgSetup\n\n\n","import viewSetup, { ViewState, ViewStore } from \"@/stores/stacks/viewBase\"\nimport { Message } from \"@/types/Message\"\nimport { mixStores } from \"@priolo/jon\"\nimport { MSG_FORMAT } from \"../../../utils/editor\"\nimport { binaryStringToString } from \"../../../utils/string\"\nimport editorSetup, { EditorState, EditorStore } from \"../editorBase\"\n\n\n\nconst setup = {\n\n\tstate: {\n\t\tmessage: null,\n\n\t\t//#region VIEWBASE\n\t\twidth: 420,\n\t\twidthMax: 1000,\n\t\t//#endregion\n\n\t\t/* voglio vedere sepre l'ultimo messaggio arrivato*/\n\t\tlinkToLast: false,\n\t},\n\n\tgetters: {\n\n\t\t//#region VIEWBASE\n\t\tgetTitle: (_: void, store?: ViewStore) => \"MESSAGE DETAIL\",\n\t\tgetSubTitle: (_: void, store?: ViewStore): string => (store as MessageStore).state.message?.subject ?? \"--\",\n\t\t\n\t\t// getSubTitle: (_: void, store?: ViewStore): string => {\n\t\t// \tconst msgStore = store as MessageStore\n\t\t// \treturn `[${msgStore.state.message?.seqNum ?? \"--\"}] ${msgStore?.state.message?.subject ?? \"--\"}`\n\t\t// },\n\n\t\t// \tconst timestamp = (store as MessageStore).state.message?.receivedAt\n\t\t// \treturn !!timestamp ? dayjs(timestamp).format(\"YYYY-MM-DD HH:mm:ss\") : \"\"\n\t\t// },\n\t\tgetSerialization: (_: void, store?: ViewStore) => {\n\t\t\tconst state = store.state as MessageState\n\t\t\treturn {\n\t\t\t\t...viewSetup.getters.getSerialization(null, store),\n\t\t\t\tmessage: state.message,\n\t\t\t\tformat: state.format,\n\t\t\t}\n\t\t},\n\t\t//#endregion\n\n\t\tgetEditorText: (_: void, store?: ViewStore) => {\n\t\t\tconst msgSo = store\n\t\t\tconst payload = msgSo.state.message?.payload ?? \"\"\n\t\t\tconst format = msgSo.state.format\n\t\t\tif (format != MSG_FORMAT.BASE64 && format != MSG_FORMAT.HEX) {\n\t\t\t\treturn binaryStringToString(payload)\n\t\t\t}\n\t\t\treturn payload\n\t\t}\n\t},\n\n\tactions: {\n\n\t\t//#region VIEWBASE\n\t\tsetSerialization: (data: any, store?: ViewStore) => {\n\t\t\tviewSetup.actions.setSerialization(data, store)\n\t\t\tconst state = store.state as MessageState\n\t\t\tstate.message = data.message\n\t\t\tstate.format = data.format\n\t\t},\n\t\t//#endregion\n\n\t},\n\n\tmutators: {\n\t\tsetLinkToLast: (linkToLast: boolean) => ({ linkToLast }),\n\t\tsetMessage: (message: Message) => ({ message }),\n\t},\n}\n\nexport type MessageState = typeof setup.state & ViewState & EditorState\nexport type MessageGetters = typeof setup.getters\nexport type MessageActions = typeof setup.actions\nexport type MessageMutators = typeof setup.mutators\nexport interface MessageStore extends ViewStore, EditorStore, MessageGetters, MessageActions, MessageMutators {\n\tstate: MessageState\n}\nconst msgSetup = mixStores(viewSetup, editorSetup, setup)\nexport default msgSetup\n\n\n","import ajax, { CallOptions } from \"@/plugins/AjaxService\";\nimport { StreamMessagesFilter } from \"@/stores/stacks/streams/utils/filter\";\nimport { Message } from \"@/types/Message\";\nimport { StreamConfig, StreamInfo } from \"@/types/Stream\";\nimport { snakeToCamel } from \"@/utils/object\";\nimport dayjs from \"dayjs\";\n\n\n\n/** INDEX */\nfunction index(connectionId: string, opt?: CallOptions): Promise {\n\treturn ajax.get(`connection/${connectionId}/stream`, null, opt)\n}\n\n/** GET */\nasync function get(connectionId: string, streamName: string, opt?: CallOptions): Promise {\n\topt.noCamel = true\n\tconst resSnake = await ajax.get(`connection/${connectionId}/stream/${streamName}`, null, opt)\n\tconst resCamel: StreamInfo = snakeToCamel(resSnake)\n\tif ( !!resCamel ) resCamel.state.subjects = resSnake.state.subjects\n\treturn resCamel\n}\n\n/** DELETE */\nfunction remove(connectionId: string, streamName: string, opt?: CallOptions): Promise {\n\tif (!connectionId || !streamName) return\n\treturn ajax.delete(`connection/${connectionId}/stream/${streamName}`, null, opt)\n}\n\nfunction purge(connectionId: string, streamName: string, seq: number, keep: number, subject: string, opt?: CallOptions): Promise {\n\tif (!connectionId || !streamName) return\n\treturn ajax.post(`connection/${connectionId}/stream/${streamName}/purge`, { seq, keep, subject }, opt)\n}\n\n/** CREATE */\nfunction create(connectionId: string, stream: StreamConfig, opt?: CallOptions): Promise {\n\tif (!connectionId || !stream) return\n\treturn ajax.post(`connection/${connectionId}/stream`, stream, opt)\n}\n/** UPDATE */\nfunction update(connectionId: string, stream: StreamConfig, opt?: CallOptions): Promise {\n\tif (!connectionId || !stream) return\n\treturn ajax.post(`connection/${connectionId}/stream/${stream.name}`, stream, opt)\n}\n\n/** MESSAGES \n * https://github.com/nats-nui/nui/blob/main/frontend/docs/entities/stream_messages/index.md\n*/\nasync function messages(connectionId: string, streamName: string, filter: StreamMessagesFilter, opt?: CallOptions): Promise {\n\tif (!connectionId || !streamName || !filter\n\t\t|| (filter.byTime && filter.startTime == null)\n\t\t|| (!filter.byTime && filter.startSeq == null)\n\t) return\n\n\tlet query = \"\"\n\tif ( filter.byTime ) {\n\t\tconst dateTime = dayjs(filter.startTime)\n\t\tif ( !dateTime.isValid()) return\n\t\tquery = `start_time=${dateTime.toISOString()}&`\n\t} else {\n\t\tquery = `seq_start=${filter.startSeq.toString()}&`\n\t}\n\tquery += filter.interval != null ? `interval=${filter.interval.toString()}&` : \"\"\n\tquery += (!!filter.subjects && filter.subjects.length > 0) \n\t\t? `subjects=${filter.subjects.join(\",\")}` \n\t\t: \"\"\n\n\tconst messages: Message[] = await ajax.get(`connection/${connectionId}/stream/${streamName}/messages?${query}`, null, opt)\n\treturn messages.map(m => {\n\t\tm.payload = atob(m.payload)\n\t\treturn m\n\t})\n}\n/** DELETE MESSAGE */\nfunction messageRemove(connectionId: string, streamName: string, sequence: number, opt?: CallOptions): Promise {\n\tif (!connectionId || !streamName || !sequence) return\n\treturn ajax.delete(`connection/${connectionId}/stream/${streamName}/messages/${sequence}`, null, opt)\n}\n\n\nfunction _error(connectionId: string, opt?: CallOptions): Promise {\n\treturn ajax.get(`connection/${connectionId}/stream_error`, null, opt)\n}\n\n\nconst api = {\n\t_error,\n\tindex,\n\tget,\n\tremove,\n\tcreate,\n\tupdate,\n\tpurge,\n\tmessages,\n\tmessageRemove,\n}\nexport default api","import strApi from \"@/api/streams\"\nimport cnnSo from \"@/stores/connections\"\nimport { MESSAGE_TYPE } from \"@/stores/log/utils\"\nimport { ViewState, ViewStore, default as docSetup, default as viewSetup } from \"@/stores/stacks/viewBase\"\nimport { DOC_TYPE } from \"@/types\"\nimport { StreamInfo } from \"@/types/Stream\"\nimport { docsSo, utils } from \"@priolo/jack\"\nimport { mixStores } from \"@priolo/jon\"\nimport loadBaseSetup, { LoadBaseState, LoadBaseStore } from \"../loadBase\"\nimport { buildStream, buildStreamNew } from \"./utils/factory\"\n\n\n\n/** STREAMS COLLECTION */\nconst setup = {\n\n\tstate: {\n\t\tconnectionId: null,\n\t\t/** nome dello STREAM selezionato */\n\t\tselect: null,\n\t\tall: null,\n\t\ttextSearch: null,\n\n\t\tpurgeOpen: false,\n\n\t\t//#region VIEWBASE\n\t\twidth: 310,\n\t\twidthMax: 800,\n\t\t//#endregion\n\t},\n\n\tgetters: {\n\n\t\t//#region VIEWBASE\n\t\tgetTitle: (_: void, store?: ViewStore) => \"STREAMS\",\n\t\tgetSubTitle: (_: void, store?: ViewStore) => cnnSo.getById((store).state.connectionId)?.name ?? \"--\",\n\t\tgetSerialization: (_: void, store?: ViewStore) => {\n\t\t\tconst state = store.state as StreamsState\n\t\t\treturn {\n\t\t\t\t...viewSetup.getters.getSerialization(null, store),\n\t\t\t\tconnectionId: state.connectionId,\n\t\t\t\tselect: state.select,\n\t\t\t}\n\t\t},\n\t\t//#endregion\n\n\t\tgetByName(name: string, store?: StreamsStore) {\n\t\t\tif (!name) return null\n\t\t\treturn store.state.all?.find(s => s.config.name == name)\n\t\t},\n\t\tgetIndexByName(name: string, store?: StreamsStore) {\n\t\t\tif (!name) return -1\n\t\t\treturn store.state.all?.findIndex(s => s.config.name == name)\n\t\t},\n\t\tgetAllStreamName(_: void, store?: StreamsStore) {\n\t\t\treturn store.state.all?.map(si => si.config.name) ?? []\n\t\t},\n\n\t\t/** gli STREAM filtrati e da visualizzare in lista */\n\t\tgetFiltered(_: void, store?: StreamsStore) {\n\t\t\tconst text = store.state.textSearch?.toLocaleLowerCase()?.trim()\n\t\t\tif (!text || text.trim().length == 0 || !store.state.all) return store.state.all\n\t\t\treturn store.state.all.filter(stream =>\n\t\t\t\tstream.config.name.toLowerCase().includes(text)\n\t\t\t)\n\t\t}\n\t},\n\n\tactions: {\n\n\t\t//#region OVERWRITE\n\t\tsetSerialization: (data: any, store?: ViewStore) => {\n\t\t\tviewSetup.actions.setSerialization(data, store)\n\t\t\tconst state = store.state as StreamsState\n\t\t\tstate.connectionId = data.connectionId\n\t\t\tstate.select = data.select\n\t\t},\n\t\tasync fetch(_: void, store?: LoadBaseStore) {\n\t\t\tconst s = store\n\t\t\tconst streams = await strApi.index(s.state.connectionId, { store, manageAbort: true })\n\t\t\ts.setAll(streams)\n\t\t\tawait loadBaseSetup.actions.fetch(_, store)\n\t\t},\n\t\t//#endregion\n\n\t\tasync fetchIfVoid(_: void, store?: StreamsStore) {\n\t\t\tif (!!store.state.all) return\n\t\t\tawait store.fetch()\n\t\t},\n\t\t/** open CREATION CARD */\n\t\tcreate(_: void, store?: StreamsStore) {\n\t\t\tconst view = buildStreamNew(store.state.connectionId, store.getAllStreamName())\n\t\t\tstore.state.group.addLink({ view, parent: store, anim: true })\n\t\t\tstore.setSelect(null)\n\t\t},\n\t\t/** elimina lo sTREAM selezionato \"state.select\" */\n\t\tasync delete(_: void, store?: StreamsStore) {\n\t\t\tif (!await store.alertOpen({\n\t\t\t\ttitle: \"STREAM DELETION\",\n\t\t\t\tbody: \"This action is irreversible.\\nAre you sure you want to delete the STREAM?\",\n\t\t\t})) return\n\n\t\t\tconst name = store.state.select\n\t\t\tawait strApi.remove(store.state.connectionId, name, { store })\n\t\t\tstore.setAll(store.state.all.filter(s => s.config.name != name))\n\t\t\tstore.setSelect(null)\n\n\t\t\t// cerco eventuali CARD di questo stream e lo chiudo\n\t\t\tconst cardStreams = utils.findAll(docsSo.getAllCards(), { type: DOC_TYPE.STREAM, connectionId: store.state.connectionId })\n\t\t\tcardStreams.forEach(view => view.state.group.remove({ view, anim: true }))\n\n\t\t\tstore.setSnackbar({\n\t\t\t\topen: true, type: MESSAGE_TYPE.SUCCESS, timeout: 5000,\n\t\t\t\ttitle: \"DELETED\",\n\t\t\t\tbody: \"it is gone forever\",\n\t\t\t})\n\t\t},\n\n\t\tupdate(stream: StreamInfo, store?: StreamsStore) {\n\t\t\tconst all = [...store.state.all]\n\t\t\tconst index = store.getIndexByName(stream.config?.name)\n\t\t\tindex == -1 ? all.push(stream) : (all[index] = { ...all[index], ...stream })\n\t\t\tstore.setAll(all)\n\t\t},\n\n\t\tasync purge({ seq, keep, subject }: { seq: number, keep: number, subject: string }, store?: StreamsStore) {\n\t\t\tconst name = store.state.select\n\t\t\tif (!name) return\n\t\t\tawait strApi.purge(store.state.connectionId, name, seq, keep, subject, { store })\n\t\t\tstore.setSnackbar({\n\t\t\t\topen: true, type: MESSAGE_TYPE.SUCCESS, timeout: 5000,\n\t\t\t\ttitle: \"PURGED\",\n\t\t\t\tbody: \"you will never see those STREAM again\",\n\t\t\t})\n\t\t},\n\n\t\t/** visualizzo dettaglio di uno STREAM */\n\t\tselect(name: string, store?: StreamsStore) {\n\t\t\tconst nameOld = store.state.select\n\t\t\tconst nameNew = (name && nameOld !== name) ? name : null\n\t\t\tconst view = nameNew\n\t\t\t\t? buildStream(store.state.connectionId, store.getByName(nameNew), store.getAllStreamName())\n\t\t\t\t: null\n\t\t\tstore.setSelect(nameNew)\n\t\t\tstore.state.group.addLink({ view, parent: store, anim: !nameOld || !nameNew })\n\t\t},\n\t},\n\n\tmutators: {\n\t\tsetAll: (all: StreamInfo[]) => ({ all }),\n\t\tsetSelect: (select: string) => ({ select }),\n\t\tsetTextSearch: (textSearch: string) => ({ textSearch }),\n\t\tsetPurgeOpen: (purgeOpen: boolean) => ({ purgeOpen }),\n\t},\n}\n\nexport type StreamsState = typeof setup.state & ViewState & LoadBaseState\nexport type StreamsGetters = typeof setup.getters\nexport type StreamsActions = typeof setup.actions\nexport type StreamsMutators = typeof setup.mutators\nexport interface StreamsStore extends ViewStore, LoadBaseStore, StreamsGetters, StreamsActions, StreamsMutators {\n\tstate: StreamsState\n}\nconst streamsSetup = mixStores(docSetup, loadBaseSetup, setup)\nexport default streamsSetup\n","import strApi from \"@/api/streams\"\nimport docSo from \"@/stores/docs\"\nimport { focusSo, utils } from \"@priolo/jack\"\nimport { MESSAGE_TYPE } from \"@/stores/log/utils\"\nimport viewSetup, { ViewState, ViewStore } from \"@/stores/stacks/viewBase\"\nimport { DOC_TYPE, EDIT_STATE } from \"@/types\"\nimport { StreamConfig, StreamInfo } from \"@/types/Stream\"\nimport { StoreCore, mixStores } from \"@priolo/jon\"\nimport { StreamsState, StreamsStore } from \".\"\nimport { buildConsumers } from \"../consumer/utils/factory\"\nimport loadBaseSetup, { LoadBaseState, LoadBaseStore } from \"../loadBase\"\nimport { VIEW_SIZE } from \"../utils\"\nimport { buildStreamMessages } from \"./utils/factory\"\nimport { buildStore } from \"../../docs/utils/factory\"\nimport { JsonConfigState, JsonConfigStore } from \"../jsonconfig\"\n\n\n\n/** STREAM DETAIL */\nconst setup = {\n\n\tstate: {\n\t\t/** la CONNECTION che contiene sto STREAM */\n\t\tconnectionId: null,\n\t\t/** sono gli stream presenti nella stessa connection di questo */\n\t\tallStreams: null,\n\t\t/** STREAM caricata nella CARD */\n\t\tstream: null,\n\n\t\teditState: EDIT_STATE.READ,\n\n\t\t//#region VIEWBASE\n\t\twidth: 230,\n\t\tsize: VIEW_SIZE.COMPACT,\n\t\t//#endregion\n\t},\n\n\tgetters: {\n\n\t\t//#region VIEWBASE\n\t\tgetTitle: (_: void, store?: ViewStore) => \"STREAM DETAIL\",\n\t\tgetSubTitle: (_: void, store?: ViewStore) => (store).state.stream?.config?.name ?? \"--\",\n\t\tgetSerialization: (_: void, store?: ViewStore) => {\n\t\t\tconst state = store.state as StreamState\n\t\t\treturn {\n\t\t\t\t...viewSetup.getters.getSerialization(null, store),\n\t\t\t\tconnectionId: state.connectionId,\n\t\t\t\tstream: state.stream,\n\t\t\t\tallStream: state.allStreams,\n\t\t\t\teditState: state.editState,\n\t\t\t}\n\t\t},\n\t\t//#endregion\n\n\t\t// [II] TODO\n\t\tgetParentList: (_: void, store?: StreamStore): StreamsStore => utils.findInRoot(store.state.group.state.all, {\n\t\t\ttype: DOC_TYPE.STREAMS,\n\t\t\tconnectionId: store.state.connectionId,\n\t\t} as Partial) as StreamsStore,\n\n\t\tgetConsumerOpen: (_: void, store?: StreamStore) => store.state.linked?.state.type == DOC_TYPE.CONSUMERS,\n\t\tgetMessagesOpen: (_: void, store?: StreamStore) => store.state.linked?.state.type == DOC_TYPE.STREAM_MESSAGES,\n\t},\n\n\tactions: {\n\n\t\t//#region OVERWRITE\n\t\tsetSerialization: (data: any, store?: ViewStore) => {\n\t\t\tviewSetup.actions.setSerialization(data, store)\n\t\t\tconst state = store.state as StreamState\n\t\t\tstate.connectionId = data.connectionId\n\t\t\tstate.stream = data.stream\n\t\t\tstate.allStreams = data.allStreams\n\t\t\tstate.editState = data.editState\n\t\t},\n\n\t\tasync fetch(_: void, store?: LoadBaseStore) {\n\t\t\tconst s = store\n\t\t\tconst name = s.state.stream.config.name\n\t\t\tconst stream = await strApi.get(s.state.connectionId, name, { store, manageAbort: true })\n\t\t\ts.setStream(stream)\n\t\t\tawait loadBaseSetup.actions.fetch(_, store)\n\t\t},\n\t\t//#endregion\n\n\t\t/** load all ENTITY */\n\t\tasync fetchIfVoid(_: void, store?: StreamStore) {\n\n\t\t\t// eventualmente aggiorno i dati\n\t\t\tif (store.state.editState != EDIT_STATE.NEW && (!store.state.stream?.state || !store.state.stream.state.subjects)) {\n\t\t\t\tawait store.fetch()\n\t\t\t}\n\t\t\tif (!store.state.allStreams) {\n\t\t\t\tawait store.fetchAllStreams()\n\t\t\t}\n\n\t\t\t// riprstino link precedente\n\t\t\t// qua e non su \"onLinked\" per essere sicuro di avere i dati\n\t\t\tif (!store.state.linked) {\n\t\t\t\tconst options = docSo.state.cardOptions[store.state.type]\n\t\t\t\tstore.state.docAniDisabled = true\n\t\t\t\tif (options == DOC_TYPE.CONSUMERS) {\n\t\t\t\t\tstore.openConsumers()\n\t\t\t\t} else if (options == DOC_TYPE.STREAM_MESSAGES) {\n\t\t\t\t\tstore.openMessages()\n\t\t\t\t}\n\t\t\t\tstore.state.docAniDisabled = false\n\t\t\t}\n\t\t},\n\t\tasync fetchAllStreams(_: void, store?: StreamStore) {\n\t\t\tconst parent = store.getParentList()\n\t\t\tconst streams = parent?.state.all ?? await strApi.index(store.state.connectionId, { store })\n\t\t\tconst allStreams = streams?.map(si => si.config.name) ?? []\n\t\t\tstore.setAllStreams(allStreams)\n\t\t},\n\t\t/** crea un nuovo STREAM-INFO tramite STREAM-CONFIG */\n\t\tasync save(_: void, store?: StreamStore) {\n\t\t\tlet streamSaved: StreamInfo = null\n\t\t\tif (store.state.editState == EDIT_STATE.NEW) {\n\t\t\t\tstreamSaved = await strApi.create(store.state.connectionId, store.state.stream.config, { store })\n\t\t\t} else {\n\t\t\t\tstreamSaved = await strApi.update(store.state.connectionId, store.state.stream.config, { store })\n\t\t\t}\n\t\t\tstore.setStream(streamSaved)\n\t\t\tstore.getParentList()?.update(streamSaved)\n\t\t\tstore.getParentList()?.setSelect(streamSaved.config.name)\n\t\t\tstore.setEditState(EDIT_STATE.READ)\n\t\t\tstore.setSnackbar({\n\t\t\t\topen: true, type: MESSAGE_TYPE.SUCCESS, timeout: 5000,\n\t\t\t\ttitle: \"SAVED\",\n\t\t\t\tbody: \"you can find it in the STREAMS list\",\n\t\t\t})\n\t\t},\n\t\t/** reset ENTITY */\n\t\trestore: (_: void, store?: StreamStore) => {\n\t\t\tstore.fetch()\n\t\t\tstore.setEditState(EDIT_STATE.READ)\n\t\t},\n\n\n\n\t\t/** apertura della CARD JSON CONFIG */\n\t\topenJsonConfig(_: void, store?: StreamStore) {\n\t\t\t// se è già aperta la chiudo\n\t\t\tconst configOpen = store.state.linked?.state.type == DOC_TYPE.JSON_CONFIG\n\t\t\tif (configOpen) {\n\t\t\t\tstore.state.group.addLink({ view: null, parent: store, anim: true })\n\t\t\t\treturn\n\t\t\t}\n\t\t\tconst configStore = buildStore({\n\t\t\t\ttype: DOC_TYPE.JSON_CONFIG,\n\t\t\t\tvalue: JSON.stringify(store.state.stream.config),\n\t\t\t\ttitle: `STREAM: ${store.state.stream.config.name}`,\n\t\t\t\tonClose: (value: string) => {\n\t\t\t\t\tif (!value) return\n\t\t\t\t\tconst config = JSON.parse(value) as StreamConfig\n\t\t\t\t\tstore?.setStreamConfig(config)\n\t\t\t\t},\n\t\t\t} as JsonConfigState) as JsonConfigStore;\n\t\t\tstore.state.group.addLink({ view: configStore, parent: store, anim: true })\n\t\t},\n\n\t\t/** apertura della CARD CONSUMERS */\n\t\topenConsumers(_: void, store?: StreamStore) {\n\t\t\tconst view = buildConsumers(store.state.connectionId, store.state.stream)\n\t\t\tstore.state.group[focusSo.state.shiftKey ? \"add\" : \"addLink\"]({ view, parent: store, anim: true })\n\t\t},\n\n\t\t/** apertura della CARD MESSAGES */\n\t\topenMessages(_: void, store?: StreamStore) {\n\t\t\tconst view = buildStreamMessages(store.state.connectionId, store.state.stream)\n\t\t\tstore.state.group[focusSo.state.shiftKey ? \"add\" : \"addLink\"]({ view, parent: store, anim: true })\n\t\t},\n\t\ttoggleConsumer(_: void, store?: StreamStore) {\n\t\t\tif (!focusSo.state.shiftKey && store.getConsumerOpen()) {\n\t\t\t\tstore.state.group.addLink({ view: null, parent: store, anim: true })\n\t\t\t} else {\n\t\t\t\tstore.openConsumers()\n\t\t\t}\n\t\t},\n\t\ttoggleMessages(_: void, store?: StreamStore) {\n\t\t\tif (!focusSo.state.shiftKey && store.getMessagesOpen()) {\n\t\t\t\tstore.state.group.addLink({ view: null, parent: store, anim: true })\n\t\t\t} else {\n\t\t\t\tstore.openMessages()\n\t\t\t}\n\t\t},\n\n\t},\n\n\tmutators: {\n\t\tsetStream: (stream: StreamInfo) => ({ stream }),\n\t\tsetAllStreams: (allStreams: string[]) => ({ allStreams }),\n\t\tsetStreamConfig: (config: StreamConfig, store?: StreamStore) => ({ stream: { ...store.state.stream, config } }),\n\t\tsetEditState: (editState: EDIT_STATE) => ({ editState }),\n\t},\n}\n\nexport type StreamState = typeof setup.state & ViewState & LoadBaseState\nexport type StreamGetters = typeof setup.getters\nexport type StreamActions = typeof setup.actions\nexport type StreamMutators = typeof setup.mutators\nexport interface StreamStore extends ViewStore, LoadBaseStore, StreamGetters, StreamActions, StreamMutators {\n\tstate: StreamState\n}\nconst streamSetup = mixStores(viewSetup, loadBaseSetup, setup)\nexport default streamSetup\n","import strApi from \"@/api/streams\"\nimport { buildMessageDetail } from \"@/stores/docs/utils/factory\"\nimport { MESSAGE_TYPE } from \"@/stores/log/utils\"\nimport viewSetup, { ViewStore } from \"@/stores/stacks/viewBase\"\nimport { Message } from \"@/types/Message\"\nimport { StreamInfo } from \"@/types/Stream\"\nimport { StoreCore, mixStores } from \"@priolo/jon\"\nimport editorSetup, { EditorState, EditorStore } from \"../editorBase\"\nimport loadBaseSetup, { LoadBaseState, LoadBaseStore } from \"../loadBase\"\nimport { MessageStore } from \"../message\"\nimport { ViewState } from \"../viewBase\"\nimport { StreamMessagesFilter } from \"./utils/filter\"\nimport { DOC_TYPE } from \"../../docs/types\"\n\n\n\nlet globalInterval = 50\n\nconst setup = {\n\n\tstate: {\n\n\t\t/** messaggi da visualizzare */\n\t\tmessages: null,\n\t\t/** testo per la ricerca */\n\t\ttextSearch: null,\n\t\t/** filtro da applicare */\n\t\tfilter: {\n\t\t\tsubjects: [],\n\t\t\tinterval: globalInterval,\n\t\t\tstartSeq: null,\n\t\t\tstartTime: null,\n\t\t},\n\t\tsubjectsCustom: [],\n\t\t/** DIALOG FILTER aperta */\n\t\tfiltersOpen: false,\n\n\t\t// NOT REACTIVE\n\t\tconnectionId: null,\n\t\tstream: >null,\n\t\t/** sequenza primo messaggio della lista */\n\t\trangeTop: null,\n\n\t\t//#region VIEWBASE\n\t\t//#endregion\n\n\t},\n\n\tgetters: {\n\n\t\t//#region VIEWBASE\n\t\tgetTitle: (_: void, store?: ViewStore) => \"STREAM MESSAGES\",\n\t\tgetSubTitle: (_: void, store?: ViewStore) => (store).state.stream?.config?.name ?? \"--\",\n\t\tgetSerialization: (_: void, store?: ViewStore) => {\n\t\t\tconst state = store.state as StreamMessagesState\n\t\t\treturn {\n\t\t\t\t...viewSetup.getters.getSerialization(null, store),\n\t\t\t\tconnectionId: state.connectionId,\n\t\t\t\tstream: state.stream, // bisogna memorizzare solo il config.name\n\t\t\t\tformat: state.format,\n\t\t\t\ttextSearch: state.textSearch,\n\t\t\t\tfilter: { ...state.filter }\n\t\t\t}\n\t\t},\n\t\t//#endregion\n\n\t\tgetIndexBySeq: (seq: number, store?: StreamMessagesStore) => store.state.messages.findIndex(m => m.seqNum == seq),\n\t\tgetFiltered: (_: void, store?: StreamMessagesStore) => {\n\t\t\tconst text = store.state.textSearch?.toLocaleLowerCase()?.trim()\n\t\t\tif (!text || text.length == 0 || !store.state.messages) return store.state.messages\n\t\t\treturn store.state.messages.filter(message =>\n\t\t\t\tmessage.payload.toLowerCase().includes(text)\n\t\t\t\t|| message.subject.toLowerCase().includes(text)\n\t\t\t)\n\t\t},\n\n\t},\n\n\tactions: {\n\n\t\t//#region OVERWRITE\n\n\t\tsetSerialization: (data: any, store?: ViewStore) => {\n\t\t\tviewSetup.actions.setSerialization(data, store)\n\t\t\tconst state = store.state as StreamMessagesState\n\t\t\tstate.connectionId = data.connectionId\n\t\t\tstate.stream = data.stream\n\t\t\tstate.format = data.format\n\t\t\tstate.textSearch = data.textSearch\n\t\t\tstate.filter = data.filter\n\t\t},\n\t\t/** chiamato dallo store parent \"LoaderBase\" */\n\t\tfetch: async (_: void, loadStore?: LoadBaseStore) => {\n\t\t\tconst store = loadStore\n\t\t\tstore.fetchNext()\n\t\t},\n\t\t/** il primo caricamento dei dati da visualizzare */\n\t\tfetchInit: async (_: void, loadStore?: LoadBaseStore) => {\n\t\t\tconst store = loadStore\n\t\t\tif (!store.state.stream?.config?.name || !store.state.connectionId || !store.state.stream?.state) {\n\t\t\t\tconsole.error(\"no params\")\n\t\t\t\treturn\n\t\t\t}\n\t\t\tstore.state.rangeTop = null\n\t\t\tstore.state.filter.interval = globalInterval\n\t\t\tstore.state.filter.startSeq = store.state.stream.state.lastSeq\n\t\t\tawait store.fetchWithFilter({\n\t\t\t\tinterval: -globalInterval,\n\t\t\t\tstartSeq: store.state.stream.state.lastSeq,\n\t\t\t})\n\t\t\tawait loadBaseSetup.actions.fetch(_, store)\n\t\t},\n\n\t\t//#endregion\n\n\t\tasync fetchIfVoid(_: void, store?: StreamMessagesStore) {\n\t\t\tif (!!store.state.messages) return\n\t\t\tawait store.fetchInit()\n\t\t},\n\n\t\t/** effettua una richiesta indicando un filtro */\n\t\tfetchWithFilter: async (\n\t\t\tfilter: StreamMessagesFilter,\n\t\t\tstore?: StreamMessagesStore\n\t\t) => {\n\t\t\tconst name = store.state.stream?.config?.name\n\t\t\tlet pre = filter.interval < 0\n\n\t\t\tif (filter.startSeq < store.state.stream.state.firstSeq) return 0\n\t\t\tif (filter.startSeq + filter.interval < store.state.stream.state.firstSeq) {\n\t\t\t\tfilter.interval = filter.startSeq - store.state.stream.state.firstSeq + 1\n\t\t\t\tfilter.startSeq = store.state.stream.state.firstSeq\n\t\t\t\tpre = true\n\t\t\t}\n\t\t\tif (filter.interval == 0) return 0\n\n\t\t\t// FETCH\n\t\t\tconst msgs = await strApi.messages(store.state.connectionId, name, filter, { store, manageAbort: true }) ?? []\n\n\t\t\t// ADD\n\t\t\tlet all = store.state.messages ?? []\n\t\t\tif (pre) {\n\t\t\t\tstore.setMessages(msgs.concat(all))\n\t\t\t} else {\n\t\t\t\tstore.setMessages(all.concat(msgs))\n\t\t\t}\n\t\t\treturn msgs.length\n\t\t},\n\n\t\tfetchPrev: async (_?: void, store?: StreamMessagesStore) => {\n\t\t\tconst startSeq = store.state.messages[0].seqNum - 1\n\t\t\tconst interval = -store.state.filter.interval\n\t\t\tif (interval == 0 || startSeq <= store.state.stream.state.firstSeq) return 0\n\t\t\tconst subjects = [...store.state.filter.subjects, ...store.state.subjectsCustom]\n\t\t\treturn store.fetchWithFilter({ startSeq, interval, subjects })\n\t\t},\n\n\t\tfetchNext: async (_?: void, store?: StreamMessagesStore) => {\n\t\t\tconst startSeq = store.state.messages[store.state.messages.length - 1].seqNum + 1\n\t\t\tconst interval = store.state.filter.interval\n\t\t\tif (interval == 0 /*|| startSeq >= store.state.stream.state.lastSeq*/) return 0\n\t\t\tconst subjects = [...store.state.filter.subjects, ...store.state.subjectsCustom]\n\t\t\treturn store.fetchWithFilter({ startSeq, interval, subjects })\n\t\t},\n\n\t\t/** applico il filtro ricaricando completamente tutti i messages */\n\t\tfilterApply: async (filter: StreamMessagesFilter, store?: StreamMessagesStore) => {\n\n\t\t\t// normalizzo e setto il filtro\n\t\t\tif (!filter.interval) filter.interval = 200\n\t\t\tif (filter.startSeq == null && !filter.byTime) {\n\t\t\t\tfilter.startSeq = store.state.stream.state.lastSeq - filter.interval\n\t\t\t}\n\t\t\tstore.setFilter(filter)\n\n\t\t\tconst filterToSend = { ...filter }\n\t\t\tfilterToSend.subjects = [...filter.subjects, ...store.state.subjectsCustom]\n\n\t\t\t// chiedo al BE \n\t\t\tconst msgs = await strApi.messages(store.state.connectionId, store.state.stream.config.name, filterToSend, { store })\n\t\t\tstore.state.rangeTop = filter.startSeq ?? msgs?.[0]?.seqNum\n\t\t\tstore.setMessages(msgs)\n\t\t},\n\n\t\t/** apertura CARD MESSAGE-DETAIL */\n\t\topenMessageDetail(message: Message, store?: StreamMessagesStore) {\n\t\t\tconst storeMsg = (store.state.linked as MessageStore)\n\n\t\t\t// se è gia' aperto il dettaglio del messaggio \n\t\t\tif (storeMsg?.state.type == DOC_TYPE.MESSAGE) {\n\t\t\t\t// se è uguale a quello precedente allora lo chiudo\n\t\t\t\tif (storeMsg.state.message.seqNum == message.seqNum) {\n\t\t\t\t\tstore.state.group.addLink({ view: null, parent: store, anim: true })\n\t\t\t\t} else {\n\t\t\t\t\tconst msgSo: MessageStore = store.state.linked as MessageStore\n\t\t\t\t\tmsgSo.setMessage(message)\n\t\t\t\t}\n\t\t\t// se invece è chiuso...\n\t\t\t} else {\n\t\t\t\tconst view = buildMessageDetail(message, store.state.format, storeMsg?.state.autoFormat)\n\t\t\t\tstore.state.group.addLink({ view, parent: store, anim: true })\n\t\t\t}\n\t\t\tstore._update()\n\t\t},\n\n\t\t/** elimina un messaggio */\n\t\tasync deleteMessage(message: Message, store?: StreamMessagesStore) {\n\t\t\tif (!await store.alertOpen({\n\t\t\t\ttitle: \"MESSAGE DELETE\",\n\t\t\t\tbody: \"This action is irreversible.\\nAre you sure you want to delete the MESSAGE?\",\n\t\t\t})) return\n\t\t\tawait strApi.messageRemove(store.state.connectionId, store.state.stream.config.name, message.seqNum, { store })\n\t\t\tstore.setMessages(store.state.messages.filter(m => m.seqNum != message.seqNum))\n\t\t\tstore.setSnackbar({\n\t\t\t\topen: true, type: MESSAGE_TYPE.SUCCESS, timeout: 5000,\n\t\t\t\ttitle: \"DELETED\",\n\t\t\t\tbody: \"it is gone forever\",\n\t\t\t})\n\t\t},\n\t},\n\n\tmutators: {\n\t\tsetMessages: (messages: Message[]) => ({ messages }),\n\t\tsetTextSearch: (textSearch: string) => ({ textSearch }),\n\t\tsetFilter: (filter: StreamMessagesFilter) => {\n\t\t\tglobalInterval = filter.interval\n\t\t\treturn { filter }\n\t\t},\n\t\tsetSubjectsCustom: (subjectsCustom: string[]) => ({ subjectsCustom }),\n\t\tsetFiltersOpen: (filtersOpen: boolean) => ({ filtersOpen }),\n\t},\n}\n\nexport type StreamMessagesState = typeof setup.state & ViewState & LoadBaseState & EditorState\nexport type StreamMessagesGetters = typeof setup.getters\nexport type StreamMessagesActions = typeof setup.actions\nexport type StreamMessagesMutators = typeof setup.mutators\nexport interface StreamMessagesStore extends ViewStore, LoadBaseStore, EditorStore, StoreCore, StreamMessagesGetters, StreamMessagesActions, StreamMessagesMutators {\n\tstate: StreamMessagesState\n}\nconst streamMessagesSetup = mixStores(viewSetup, loadBaseSetup, editorSetup, setup)\nexport default streamMessagesSetup\n\n","import messagesApi from \"@/api/messages\"\nimport { buildMessageDetail } from \"@/stores/docs/utils/factory\"\nimport { MESSAGE_TYPE } from \"@/stores/log/utils\"\nimport viewSetup, { ViewStore } from \"@/stores/stacks/viewBase\"\nimport { About } from \"@/types/About\"\nimport { Message } from \"@/types/Message\"\nimport { StoreCore, mixStores } from \"@priolo/jon\"\nimport editorSetup, { EditorState, EditorStore } from \"../editorBase\"\nimport { MessageStore } from \"../message\"\nimport { LOAD_STATE } from \"../utils\"\nimport { ViewState } from \"../viewBase\"\nimport { binaryStringToString, stringToBinaryString } from \"../../../utils/string\"\n\n\n\nconst setup = {\n\n\tstate: {\n\t\tconnectionId: null,\n\t\tsubject: \"\",\n\t\tmessageSend: \"\",\n\t\ttimeoutMs: 2000,\n\t\theaders: <[string, string][]>[],\n\n\t\tmessageReceived: \"\",\n\t\theadersReceived: {},\n\n\t\toptionsOpen: false,\n\n\t\tloadingState: LOAD_STATE.IDLE,\n\n\t\t//#region VIEWBASE\n\t\twidth: 420,\n\t\t//#endregion\n\t},\n\n\tgetters: {\n\t\t//#region VIEWBASE\n\t\tgetTitle: (_: void, store?: ViewStore) => \"REQUEST / REPLY\",\n\t\tgetSubTitle: (_: void, store?: ViewStore) => \"Send a message synchronously\",\n\t\tgetSerialization: (_: void, store?: ViewStore) => {\n\t\t\tconst state = store.state as SyncState\n\t\t\treturn {\n\t\t\t\t...viewSetup.getters.getSerialization(null, store),\n\t\t\t\tconnectionId: state.connectionId,\n\t\t\t\tmessageReceived: state.messageReceived,\n\t\t\t\tmessageSend: state.messageSend,\n\t\t\t\tsubject: state.subject,\n\t\t\t\theaders: state.headers,\n\n\t\t\t}\n\t\t},\n\t\t//#endregion\n\n\t\tgetCanSend: (_: void, store?: SyncStore) => store.state.subject?.length > 0 && store.state.messageSend?.length > 0 && store.state.loadingState != LOAD_STATE.LOADING,\n\t},\n\n\tactions: {\n\n\t\t//#region VIEWBASE\n\t\tsetSerialization: (data: any, store?: ViewStore) => {\n\t\t\tviewSetup.actions.setSerialization(data, store)\n\t\t\tconst state = store.state as SyncState\n\t\t\tstate.connectionId = data.connectionId\n\t\t\tstate.messageReceived = data.messageReceived\n\t\t\tstate.messageSend = data.messageSend\n\t\t\tstate.subject = data.subject\n\t\t\tstate.headers = data.headers\n\t\t},\n\t\t//#endregion\n\n\t\tsend: async (_: void, store?: SyncStore) => {\n\t\t\ttry {\n\t\t\t\tconst resp = await messagesApi.sync(\n\t\t\t\t\tstore.state.connectionId,\n\t\t\t\t\tstore.state.subject,\n\t\t\t\t\tstringToBinaryString(store.state.messageSend),\n\t\t\t\t\tstore.state.headers,\n\t\t\t\t\tstore.state.timeoutMs,\n\t\t\t\t\t{ store }\n\t\t\t\t)\n\t\t\t\tstore.setMessageReceived(binaryStringToString(resp.payload))\n\t\t\t\tstore.setHeadersReceived(resp.headers)\n\t\t\t\tstore.setSnackbar({\n\t\t\t\t\topen: true,\n\t\t\t\t\ttype: MESSAGE_TYPE.INFO,\n\t\t\t\t\ttitle: \"MESSAGE SENT\",\n\t\t\t\t\tbody: \"Your message has been sent correctly\",\n\t\t\t\t\ttimeout: 2000,\n\t\t\t\t})\n\t\t\t} catch (e) { }\n\t\t},\n\n\t\t/** apertura CARD MESSAGE-DETAIL */\n\t\topenMessageDetail(message: Message, store?: SyncStore) {\n\t\t\tconst storeMsg = (store.state.linked as MessageStore)\n\t\t\tconst msgOld = storeMsg?.state.message\n\t\t\tconst view = msgOld?.payload==message?.payload ? null : buildMessageDetail(message, store.state.format, storeMsg?.state.autoFormat)\n\t\t\tstore.state.group.addLink({ view, parent: store, anim: true })\n\t\t},\n\t},\n\n\tmutators: {\n\t\tsetAbout: (about: About) => ({ about }),\n\t\tsetMessageReceived: (messageReceived: string) => ({ messageReceived }),\n\t\tsetHeadersReceived: (headersReceived: { [key: string]: string[] }) => ({ headersReceived }),\n\t\tsetMessageSend: (messageSend: string) => ({ messageSend }),\n\t\tsetSubject: (subject: string) => ({ subject }),\n\t\tsetHeaders: (headers: [string,string][]) => ({ headers }),\n\t\tsetTimeoutMs: (timeoutMs) => ({ timeoutMs }),\n\t\tsetOptionsOpen: (optionsOpen: boolean) => ({ optionsOpen }),\n\n\t},\n}\n\nexport type SyncState = typeof setup.state & ViewState & EditorState\nexport type SyncGetters = typeof setup.getters\nexport type SyncActions = typeof setup.actions\nexport type SyncMutators = typeof setup.mutators\nexport interface SyncStore extends ViewStore, EditorStore, StoreCore, SyncGetters, SyncActions, SyncMutators {\n\tstate: SyncState\n}\nconst syncSetup = mixStores(viewSetup, editorSetup, setup)\nexport default syncSetup\n","import viewSetup, { ViewState, ViewStore } from \"@/stores/stacks/viewBase\"\nimport { mixStores } from \"@priolo/jon\"\n\n\n\nconst setup = {\n\n\tstate: {\n\t\ttitle: \"JSON CONFIG\",\n\t\tsubtitle: \"...and then write it directly in JSON!\",\n\t\tvalue: null,\n\t\tonClose: <(json?: string) => void>null,\n\n\t\t//#region VIEWBASE\n\t\twidth: 420,\n\t\twidthMax: 1000,\n\t\t//#endregion\n\t},\n\n\tgetters: {\n\n\t\t//#region VIEWBASE\n\n\t\tgetTitle: (_: void, store?: ViewStore) => (store?.state).title,\n\t\tgetSubTitle: (_: void, store?: ViewStore): string => (store?.state).subtitle,\n\t\tgetSerialization: (_: void, store?: ViewStore) => {\n\t\t\tconst state = store.state as JsonConfigState\n\t\t\treturn {\n\t\t\t\t...viewSetup.getters.getSerialization(null, store),\n\t\t\t\tjson: state.value,\n\t\t\t}\n\t\t},\n\n\t\t//#endregion\n\n\t},\n\n\tactions: {\n\n\t\t//#region VIEWBASE\n\t\tsetSerialization: (data: any, store?: ViewStore) => {\n\t\t\tviewSetup.actions.setSerialization(data, store)\n\t\t\tconst state = store.state as JsonConfigState\n\t\t\tstate.value = data.json\n\t\t},\n\t\t//#endregion\n\n\t\tonRemoveFromDeck: (_: void, store?: ViewStore) => {\n\t\t\tviewSetup.actions.onRemoveFromDeck(null, store)\n\t\t\tconst configStore = store as JsonConfigStore\n\t\t\tconfigStore.state.onClose?.()\n\t\t},\n\n\t\tsave: (_: void, store?: JsonConfigStore) => {\n\t\t\tviewSetup.actions.onRemoveFromDeck(null, store)\n\t\t\tstore.state.onClose?.(store.state.value)\n\t\t},\n\n\t},\n\n\tmutators: {\n\t\tsetValue: (value: string) => ({ value }),\n\t},\n}\n\nexport type JsonConfigState = typeof setup.state & ViewState\nexport type JsonConfigGetters = typeof setup.getters\nexport type JsonConfigActions = typeof setup.actions\nexport type JsonConfigMutators = typeof setup.mutators\nexport interface JsonConfigStore extends ViewStore, JsonConfigGetters, JsonConfigActions, JsonConfigMutators {\n\tstate: JsonConfigState\n}\nconst jsonConfigSetup = mixStores(viewSetup, setup)\nexport default jsonConfigSetup\n\n\n","import viewSetup, { ViewStore } from \"@/stores/stacks/viewBase\"\nimport { mixStores, StoreCore } from \"@priolo/jon\"\nimport { ViewState } from \"../viewBase\"\n\n\n\nconst setup = {\n\n\tstate: {\n\t\t//#region VIEWBASE\n\t\twidth: 215,\n\t\tpinnable: false,\n\t\t//#endregion\n\t},\n\n\tgetters: {\n\t\t//#region VIEWBASE\n\t\tgetTitle: (_: void, store?: ViewStore) => \"SHORTCUT\",\n\t\tgetSubTitle: (_: void, store?: ViewStore) => \"Quick Access\",\n\t\tgetSerialization: (_: void, store?: ViewStore) => {\n\t\t\tconst state = store.state as ShortcutState\n\t\t\treturn {\n\t\t\t\t...viewSetup.getters.getSerialization(null, store),\n\t\t\t}\n\t\t},\n\t\t//#endregion\n\t},\n\n\tactions: {\n\t},\n\n\tmutators: {\n\t},\n}\n\nexport type ShortcutState = typeof setup.state & ViewState\ntype ShortcutGetters = typeof setup.getters\ntype ShortcutActions = typeof setup.actions\ntype ShortcutMutators = typeof setup.mutators\nexport interface ShortcutStore extends ViewStore, StoreCore, ShortcutGetters, ShortcutActions, ShortcutMutators {\n\tstate: ShortcutState\n}\nconst shortcutSetup = mixStores(viewSetup, setup)\nexport default shortcutSetup\n\n\n","import aboutSetup from \"@/stores/stacks/about\";\nimport bucketsSetup from \"@/stores/stacks/buckets\";\nimport bucketSetup from \"@/stores/stacks/buckets/detail\";\nimport cnnSetup from \"@/stores/stacks/connection\";\nimport servicesSetup from \"@/stores/stacks/connection/detail\";\nimport messageSendSetup from \"@/stores/stacks/connection/messageSend\";\nimport messagesSetup from \"@/stores/stacks/connection/messages\";\nimport consumersSetup from \"@/stores/stacks/consumer\";\nimport consumerSetup from \"@/stores/stacks/consumer/detail\";\nimport helpSetup from \"@/stores/stacks/help\";\nimport kventriesSetup from \"@/stores/stacks/kventry\";\nimport kventrySetup from \"@/stores/stacks/kventry/detail\";\nimport logsSetup from \"@/stores/stacks/log\";\nimport messageSetup, { MessageState } from \"@/stores/stacks/message\";\nimport streamsSetup from \"@/stores/stacks/streams\";\nimport streamSetup from \"@/stores/stacks/streams/detail\";\nimport streamMessagesSetup from \"@/stores/stacks/streams/messages\";\nimport syncSetup from \"@/stores/stacks/sync\";\nimport { DOC_TYPE } from \"@/types\";\nimport { Message } from \"@/types/Message\";\nimport { MSG_FORMAT } from \"@/utils/editor\";\nimport { createStore } from \"@priolo/jon\";\nimport { ViewState, ViewStore } from \"../../stacks/viewBase\";\nimport jsonConfigSetup from \"../../stacks/jsonconfig\";\nimport cnnImportSetup from \"../../stacks/cnnImport\";\nimport shortcutSetup from \"../../stacks/shortcut\";\n\n\n\n/** crea lo STORE adeguato */\nexport function buildStore(state: Partial): ViewStore {\n\tconst setup = {\n\t\t[DOC_TYPE.CONNECTIONS]: cnnSetup,\n\t\t[DOC_TYPE.CONNECTION]: servicesSetup,\n\t\t[DOC_TYPE.CNN_LOADER]: cnnImportSetup,\t\t\n\n\t\t[DOC_TYPE.MESSAGES]: messagesSetup,\n\t\t[DOC_TYPE.MESSAGE]: messageSetup,\n\t\t[DOC_TYPE.MESSAGE_SEND]: messageSendSetup,\n\n\t\t[DOC_TYPE.STREAMS]: streamsSetup,\n\t\t[DOC_TYPE.STREAM]: streamSetup,\n\t\t[DOC_TYPE.STREAM_MESSAGES]: streamMessagesSetup,\n\n\t\t[DOC_TYPE.BUCKETS]: bucketsSetup,\n\t\t[DOC_TYPE.BUCKET]: bucketSetup,\n\t\t[DOC_TYPE.KVENTRIES]: kventriesSetup,\n\t\t[DOC_TYPE.KVENTRY]: kventrySetup,\n\n\t\t[DOC_TYPE.CONSUMERS]: consumersSetup,\n\t\t[DOC_TYPE.CONSUMER]: consumerSetup,\n\n\t\t[DOC_TYPE.LOGS]: logsSetup,\n\t\t[DOC_TYPE.ABOUT]: aboutSetup,\n\n\t\t[DOC_TYPE.HELP]: helpSetup,\n\t\t[DOC_TYPE.SYNC]: syncSetup,\n\t\t[DOC_TYPE.JSON_CONFIG]: jsonConfigSetup,\n\t\t[DOC_TYPE.SHORTCUT]: shortcutSetup,\n\t}[state?.type]\n\tif (!setup) return\n\tconst store: ViewStore = createStore(setup)\n\tstore.state = { ...store.state, ...state };\n\t// se non c'e' l'uuid lo creo IO!\n\t//if (store.state.uuid == null) store.state.uuid = createUUID()\n\t(store).onCreated?.()\n\treturn store\n}\n\n//#region MESSAGES\n\nexport function buildMessageDetail(message: Message, format: MSG_FORMAT, autoFormat: boolean = true) {\n\tif (!message) { console.error(\"no param\"); return null }\n\tconst msgStore = buildStore({\n\t\ttype: DOC_TYPE.MESSAGE,\n\t\tmessage,\n\t\tformat,\n\t\tautoFormat,\n\t} as MessageState)\n\treturn msgStore\n}\n\n//#endregion\n","import { Log } from \"@/stores/log/utils\"\r\nimport { ViewState } from \"@/stores/stacks/viewBase\"\r\nimport { Session } from \"./types\"\r\nimport { DocState } from \"@priolo/jack\"\r\n\r\n\r\n\r\nexport function loadLocalStorage(): Session {\r\n\tlet logs: Log[] = []\r\n\tlet allStates: Partial[] = []\r\n\tlet docsState: Partial = {}\r\n\tlet deckUuids: string[] = []\r\n\tlet drawerUuids: string[] = []\r\n\tlet menuUuids: string[] = []\r\n\ttry {\r\n\t\tdocsState = JSON.parse(localStorage.getItem(\"docs-state\"))\r\n\t\tallStates = JSON.parse(localStorage.getItem(\"cards-all\"))\r\n\t\tdeckUuids = JSON.parse(localStorage.getItem(\"cards-deck-uuid\"))\r\n\t\tdrawerUuids = JSON.parse(localStorage.getItem(\"cards-drawer-uuid\"))\r\n\t\tmenuUuids = JSON.parse(localStorage.getItem(\"links-menu-uuid\"))\r\n\t\tlogs = JSON.parse(localStorage.getItem(\"logs\"))\r\n\t} catch (e) { }\r\n\treturn { allStates, deckUuids, docsState, drawerUuids, menuUuids, logs }\r\n}\r\n\r\nexport function saveLocalStorage(session: Session) {\r\n\tlocalStorage.setItem(\"docs-state\", JSON.stringify(session.docsState))\r\n\tlocalStorage.setItem(\"cards-all\", JSON.stringify(session.allStates))\r\n\tlocalStorage.setItem(\"cards-deck-uuid\", JSON.stringify(session.deckUuids))\r\n\tlocalStorage.setItem(\"cards-drawer-uuid\", JSON.stringify(session.drawerUuids))\r\n\tlocalStorage.setItem(\"links-menu-uuid\", JSON.stringify(session.menuUuids))\r\n\ttry {\r\n\t\tlocalStorage.setItem(\"logs\", JSON.stringify(session.logs))\r\n\t} catch (e) {\r\n\t\tconsole.error(e)\r\n\t}\r\n}","import { docsSo, FIXED_CARD, focusSo, utils } from \"@priolo/jack\"\nimport { deckCardsSo, drawerCardsSo } from \"../../stores/docs/cards\"\n\n\n\nexport function shortcutStart() {\n\tdocument.addEventListener('keydown', (event) => {\n\t\tif (!event.altKey) return\n\t\tif (event.code == \"AltLeft\" || event.code == \"AltRight\") return\n\n\t\tif (event.ctrlKey) {\n\t\t\treturn\n\t\t}\n\n\t\tswitch (event.code) {\n\n\t\t\t// OPEN CARD CONNECTIONS\n\t\t\tcase 'KeyC': {\n\t\t\t\tconst view = docsSo.state.fixedViews[FIXED_CARD.CONNECTIONS]\n\t\t\t\tdeckCardsSo.add({ view, anim: true }).then(() => focusSo.focus(view))\n\t\t\t\tbreak\n\t\t\t}\n\n\t\t\t// MOVE CARD IN DECK: MAIN / DRAWER\n\t\t\tcase \"KeyX\": {\n\t\t\t\tconst [mainDeck, drawerDeck] = docsSo.state.allDeck\n\t\t\t\tconst view = focusSo.state.view\n\t\t\t\tif ( !view ) return\n\t\t\t\tconst nextFocus = utils.getNear(view) ?? utils.getNear(view, true)\n\t\t\t\tconst group = view.state.group\n\n\t\t\t\tif (group == mainDeck) {\n\t\t\t\t\tgroup.move({ view, groupDest: drawerDeck, index: group.state.all.length })\n\t\t\t\t\tif (!drawerCardsSo.isOpen()) drawerCardsSo.toggle()\n\t\t\t\t} else {\n\t\t\t\t\tview.state.group.move({ view, groupDest: mainDeck })\n\t\t\t\t}\n\t\t\t\tif (!!nextFocus) focusSo.focus(nextFocus);\n\t\t\t\tbreak\n\t\t\t}\n\n\t\t\t// TOGGLE DECK: MAIN / DRAWER\n\t\t\tcase \"KeyZ\": {\n\t\t\t\tconst currentDeck = focusSo.state.view?.state.group\n\t\t\t\tconst [mainDeck, drawerDeck] = docsSo.state.allDeck\n\t\t\t\tconst nextDeck = currentDeck == mainDeck ? drawerDeck : mainDeck\n\t\t\t\tconst nextView = nextDeck.state.all[0]\n\t\t\t\tif (!!nextView) focusSo.focus(nextView)\n\t\t\t\tif (nextDeck == drawerDeck && !drawerCardsSo.isOpen()) drawerCardsSo.toggle()\n\t\t\t\tbreak\n\t\t\t}\n\t\t}\n\t})\n}\n","import cnnSo from \"@/stores/connections\"\r\nimport docsSo from \"@/stores/docs\"\r\nimport { deckCardsSo, drawerCardsSo } from \"@/stores/docs/cards\"\r\nimport { menuSo } from \"@/stores/docs/links\"\r\nimport { buildStore } from \"@/stores/docs/utils/factory\"\r\nimport logSo from \"@/stores/log\"\r\nimport { AboutStore } from \"@/stores/stacks/about\"\r\nimport { CnnListStore } from \"@/stores/stacks/connection\"\r\nimport { HelpStore } from \"@/stores/stacks/help\"\r\nimport { ViewLogStore } from \"@/stores/stacks/log\"\r\nimport { ViewStore } from \"@/stores/stacks/viewBase\"\r\nimport { DOC_TYPE } from \"@/types\"\r\nimport { utils } from \"@priolo/jack\"\r\nimport { delay } from \"../time\"\r\nimport { loadLocalStorage, saveLocalStorage } from \"./storage\"\r\nimport { Session } from \"./types\"\r\nimport { shortcutStart } from \"./shortcut\"\r\n\r\n\r\n\r\nwindow.addEventListener(\"load\", async (event) => LoadSession())\r\nwindow.addEventListener(\"beforeunload\", async (event) => SaveSession())\r\nwindow.onerror = (message, url, line, col, error) => {\r\n\tlogSo.addError(error)\r\n}\r\n\r\nexport async function SaveSession() {\r\n\tconst deckStates = deckCardsSo.state.all.map(store => store.getSerialization())\r\n\tconst drawerStates = drawerCardsSo.state.all.map(store => store.getSerialization())\r\n\tconst menuStates = menuSo.state.all.reduce((acc, store) => {\r\n\t\tif (utils.forEachViews(docsSo.getAllCards(), (v) => v.state.uuid == store.state.uuid)) return acc\r\n\t\treturn [...acc, store.getSerialization()]\r\n\t}, [])\r\n\tconst docsState = docsSo.getSerialization()\r\n\tconst session: Session = {\r\n\t\tallStates: [...deckStates, ...drawerStates, ...menuStates],\r\n\t\tdocsState,\r\n\t\tdeckUuids: deckStates.map(s => s.uuid),\r\n\t\tdrawerUuids: drawerStates.map(s => s.uuid),\r\n\t\tmenuUuids: menuSo.state.all.map(store => store.state.uuid),\r\n\t\tlogs: logSo.state.all,\r\n\t}\r\n\tsaveLocalStorage(session)\r\n}\r\n \r\nexport async function LoadSession() {\r\n\r\n\t// altrimenti MSW non funziona\r\n\tif (import.meta.env.DEV) await delay(1000)\r\n\r\n\tconst session = loadLocalStorage()\r\n\tdocsSo.setSerialization(session.docsState)\r\n\tconst { deckStores, drawerStores, menuStores } = buildCards(session)\r\n\tconst allStores = [...deckStores, ...drawerStores, ...menuStores]\r\n\r\n\t// BUILD SINGLETONE CARDS\r\n\tbuildFixedCards(allStores)\r\n\r\n\t// LOAD ALL CONNECTIONS\r\n\tawait cnnSo.fetch()\r\n\r\n\tdeckCardsSo.setAll(deckStores)\r\n\tdrawerCardsSo.setAll(drawerStores)\r\n\tmenuSo.setAll(menuStores)\r\n\r\n\tlogSo.add({ body: \"STARTUP NUI - load session\" })\r\n\r\n\tshortcutStart()\r\n}\r\n\r\nexport function ClearSession() {\r\n\tlocalStorage.removeItem(\"logs\")\r\n\tlocalStorage.removeItem(\"cards-all\")\r\n\tlocalStorage.removeItem(\"cards-deck-uuid\")\r\n\tlocalStorage.removeItem(\"cards-drawer-uuid\")\r\n\tlocalStorage.removeItem(\"links-menu-uuid\")\r\n}\r\n\r\nfunction buildCards(session: Session) {\r\n\r\n\t// LOGS\r\n\tlogSo.setAll(session.logs ?? [])\r\n\r\n\t// DECK\r\n\tconst deckStates = session.deckUuids?.map(uuid => session.allStates.find(s => s.uuid == uuid))\r\n\tconst deckStores = deckStates?.map(state => {\r\n\t\tconst store: ViewStore = buildStore({ type: state.type, group: deckCardsSo })\r\n\t\tstore?.setSerialization(state)\r\n\t\treturn store\r\n\t}).filter(s => !!s) ?? []\r\n\r\n\t// DRAWER\r\n\tconst drawerStates = session.drawerUuids?.map(uuid => session.allStates.find(s => s.uuid == uuid))\r\n\tconst drawerStores = drawerStates?.map(state => {\r\n\t\tconst store: ViewStore = buildStore({ type: state.type, group: drawerCardsSo })\r\n\t\tstore?.setSerialization(state)\r\n\t\treturn store\r\n\t}).filter(s => !!s) ?? []\r\n\r\n\t// MENU\r\n\tconst menuStores = session.menuUuids?.map(uuid => {\r\n\t\tlet store: ViewStore = utils.forEachViews([...deckStores, ...drawerStores], (v) => v.state.uuid == uuid ? v : null)\r\n\t\tif (!store) {\r\n\t\t\tconst state = session.allStates.find(s => s.uuid == uuid)\r\n\t\t\tstore = state ? buildStore({ type: state.type }) : null\r\n\t\t\tstore?.setSerialization(state)\r\n\t\t}\r\n\t\treturn store\r\n\t}).filter(s => !!s) ?? []\r\n\r\n\treturn { deckStores, drawerStores, menuStores }\r\n}\r\n\r\nfunction buildFixedCards(allStores: ViewStore[]) {\r\n\tconst fixedCnn = (allStores.find(s => s.state.type == DOC_TYPE.CONNECTIONS) ?? buildStore({ type: DOC_TYPE.CONNECTIONS })) as CnnListStore\r\n\tconst fixedLogs = (allStores.find(s => s.state.type == DOC_TYPE.LOGS) ?? buildStore({ type: DOC_TYPE.LOGS })) as ViewLogStore\r\n\tconst fixedAbout = (allStores.find(s => s.state.type == DOC_TYPE.ABOUT) ?? buildStore({ type: DOC_TYPE.ABOUT })) as AboutStore\r\n\tconst fixedHelp = buildStore({ type: DOC_TYPE.HELP }) as HelpStore\r\n\tdocsSo.setFixedViews([fixedCnn, fixedLogs, fixedAbout, fixedHelp])\r\n}","const ArrowUpIcon = (props) => (\n\t\n\t\t\n\t\n)\n\nexport default ArrowUpIcon","const LogIcon = (props) => (\n\t\n\t\t\n\t\t\n\t\n)\n\nexport default LogIcon","const SyncIcon = (props) => (\n\t\n\t\t\n\t\t\n\t\n)\n\nexport default SyncIcon","const BucketIcon = (props) => (\n\t\n\t\t\n\t\n)\n\nexport default BucketIcon","const BucketsIcon = (props) => (\n\t\n\t\t\n\t\n)\n\nexport default BucketsIcon","const ConnectionIcon = (props) => (\n\t\n\t\t\n\t\n)\n\nexport default ConnectionIcon","const ConnectionsIcon = (props) => (\n\t\n\t\t\n\t\t\n\n\t\n)\n\nexport default ConnectionsIcon","const ConsumerIcon = (props) => (\n\t\n\t\t\n\t\t\n\t\n)\n\nexport default ConsumerIcon","const ConsumersIcon = (props) => (\n\t\n\t\t\n\t\n)\n\nexport default ConsumersIcon","const KvEntriesIcon = (props) => (\n\t\n\t\t\n\t\n)\n\nexport default KvEntriesIcon","const KvEntryIcon = (props) => (\n\t\n\t\t\n\t\n)\n\nexport default KvEntryIcon","const MessageIcon = (props) => (\n\t\n\t\t\n\t\n)\n\nexport default MessageIcon","const MessagesIcon = (props) => (\n\t\n\t\t\n\t\t\n\t\n)\n\nexport default MessagesIcon","const StreamIcon = (props) => (\n\t\n\t\t\n\t\n)\n\nexport default StreamIcon","const StreamsIcon = (props) => (\n\t\n\t\t\n\t\n)\n\nexport default StreamsIcon","const ConfigIcon = (props) => (\n\t\n\t\t\n\t\n)\n\nexport default ConfigIcon","import LogIcon from \"@/icons/LogIcon\"\r\nimport SyncIcon from \"@/icons/SyncIcon\"\r\nimport BucketIcon from \"@/icons/cards/BucketIcon\"\r\nimport BucketsIcon from \"@/icons/cards/BucketsIcon\"\r\nimport ConnectionIcon from \"@/icons/cards/ConnectionIcon\"\r\nimport ConnectionsIcon from \"@/icons/cards/ConnectionsIcon\"\r\nimport ConsumerIcon from \"@/icons/cards/ConsumerIcon\"\r\nimport ConsumersIcon from \"@/icons/cards/ConsumersIcon\"\r\nimport KvEntriesIcon from \"@/icons/cards/KvEntriesIcon\"\r\nimport KvEntryIcon from \"@/icons/cards/KvEntryIcon\"\r\nimport MessageIcon from \"@/icons/cards/MessageIcon\"\r\nimport MessagesIcon from \"@/icons/cards/MessagesIcon\"\r\nimport StreamIcon from \"@/icons/cards/StreamIcon\"\r\nimport StreamsIcon from \"@/icons/cards/StreamsIcon\"\r\nimport { DOC_TYPE } from \"@/types\"\r\nimport { FunctionComponent } from \"react\"\r\nimport ConfigIcon from \"../../icons/cards/ConfigIcon\"\r\n\r\n\r\n\r\ninterface Props {\r\n\ttype: DOC_TYPE,\r\n\tclassName?: string,\r\n\tstyle?: React.CSSProperties,\r\n}\r\n\r\n/** restituisce l'icona per un certo TYPE di CARD */\r\nconst CardIcon: FunctionComponent = ({\r\n\ttype,\r\n\tclassName,\r\n\tstyle,\r\n}) => {\r\n\tswitch (type) {\r\n\r\n\t\tcase DOC_TYPE.CONNECTIONS:\r\n\t\t\treturn \r\n\t\tcase DOC_TYPE.CONNECTION:\r\n\t\t\treturn \r\n\t\tcase DOC_TYPE.CNN_LOADER:\r\n\t\t\treturn \r\n\r\n\t\tcase DOC_TYPE.MESSAGES:\r\n\t\t\treturn \r\n\t\tcase DOC_TYPE.MESSAGE:\r\n\t\t\treturn \r\n\t\tcase DOC_TYPE.MESSAGE_SEND:\r\n\r\n\t\tcase DOC_TYPE.STREAMS:\r\n\t\t\treturn \r\n\t\tcase DOC_TYPE.STREAM:\r\n\t\t\treturn \r\n\t\tcase DOC_TYPE.STREAM_MESSAGES:\r\n\t\t\treturn \r\n\r\n\t\tcase DOC_TYPE.CONSUMERS:\r\n\t\t\treturn \r\n\t\tcase DOC_TYPE.CONSUMER:\r\n\t\t\treturn \r\n\r\n\t\tcase DOC_TYPE.BUCKETS:\r\n\t\t\treturn \r\n\t\tcase DOC_TYPE.BUCKET:\r\n\t\t\treturn \r\n\t\tcase DOC_TYPE.KVENTRIES:\r\n\t\t\treturn \r\n\t\tcase DOC_TYPE.KVENTRY:\r\n\t\t\treturn \r\n\r\n\t\tcase DOC_TYPE.LOGS:\r\n\t\t\treturn \r\n\t\tcase DOC_TYPE.ABOUT:\r\n\t\t\treturn
?
\r\n\t\tcase DOC_TYPE.MESSAGE:\r\n\t\t\treturn \r\n\r\n\t\tcase DOC_TYPE.SYNC:\r\n\t\t\treturn \r\n\t\tcase DOC_TYPE.JSON_CONFIG:\r\n\t\t\treturn \r\n\t\tcase DOC_TYPE.SHORTCUT:\r\n\t\t\treturn
?
\r\n\r\n\t\tdefault:\r\n\t\t\treturn null\r\n\t}\r\n}\r\n\r\n\r\nexport default CardIcon","const CloseIcon = (props) => (\n\t\n\t\t\n\t\n)\n\nexport default CloseIcon","import CloseIcon from \"@/icons/CloseIcon\"\nimport React, { FunctionComponent, useState } from \"react\"\nimport cls from \"./MenuButton.module.css\"\nimport { TooltipWrapCmp } from \"@priolo/jack\"\n\n\n\ninterface Props {\n\ttitle: string\n\tsubtitle?: string\n\tchildren?: React.ReactNode\n\tbadge?: React.ReactNode\n\tstyle?: React.CSSProperties\n\tclassName?: string\n\tonClick?: (e: React.MouseEvent) => void\n\tonClose?: (e: React.MouseEvent) => void\n}\n\n/**\n * Lo STACK di una collezione di CONNECTIONs\n */\nconst MenuButton: FunctionComponent = ({\n\ttitle,\n\tsubtitle,\n\tchildren,\n\tbadge,\n\tstyle,\n\tclassName,\n\tonClick,\n\tonClose,\n}) => {\n\n\t// STORE\n\tconst [enter, setEnter] = useState(false)\n\n\t// HOOKs\n\n\t// HANDLER\n\n\t// RENDER\n\tconst showCloseBtt = enter && !!onClose\n\tconst clsRoot = `${className ?? \"\"} ${cls.root}`\n\treturn (\n\t\t\n\t\t\t\n\t\t\t\t\t\t
{title}
\n\t\t\t\t\t\t
{subtitle}
\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tonMouseOver={enter => setEnter(enter)}\n\t\t\t>\n\t\t\t\t{/* BADGE BUTTON CANCEL */}\n\t\t\t\t{showCloseBtt &&
}\n\n\t\t\t\t{/* BADGE */}\n\t\t\t\t{badge &&
{badge}
}\n\n\t\t\t\t
\n\t\t\t\t\t{children}\n\t\t\t\t
\n\t\t\t
\n\n\t\t\t
\n\t\t\t\t{subtitle}\n\t\t\t
\n\t\t\n\t)\n}\n\nexport default MenuButton\n","import { deckCardsSo } from \"@/stores/docs/cards\"\nimport { ViewStore } from \"@/stores/stacks/viewBase\"\nimport { useStore } from \"@priolo/jon\"\nimport { FunctionComponent } from \"react\"\nimport CardIcon from \"../../components/cards/CardIcon\"\nimport { getColorFromViewType } from \"../../stores/stacks/utils\"\nimport { DOC_TYPE } from \"../../types\"\nimport MenuButton from \"./MenuButton\"\nimport { menuSo } from \"../../stores/docs/links\"\nimport { focusSo } from \"@priolo/jack\"\n\n\n\ninterface Props {\n\tlabel?: string\n\tbadge?: React.ReactNode\n\tstore?: ViewStore\n}\n\nconst StoreButton: FunctionComponent = ({\n\tlabel,\n\tbadge,\n\tstore,\n}) => {\n\n\t// STORE\n\tconst state = useStore(store)\n\n\t// HOOKs\n\n\t// HANDLER\n\tconst handleOpenStoreClick = async (view: ViewStore) => {\n\t\tawait deckCardsSo.add({ view, anim: true })\n\t\tfocusSo.focus(view)\n\t}\n\tconst handleDeleteButtonClick = (view: ViewStore) => menuSo.remove(view)\n\n\t// RENDER\n\tif (!store) return null\n\tconst type = store.state.type as DOC_TYPE\n\tconst colorVar = getColorFromViewType(type)\n\tconst style = {\n\t\t'--dialog-bg': colorVar.bg,\n\t\t'--dialog-fg': colorVar.fg,\n\t} as React.CSSProperties;\n\tconst canDelete = store.state.pinnable\n\tif (!label) label = store.getSubTitle()\n\n\treturn (\n\t\t handleOpenStoreClick(store)}\n\t\t\tonClose={canDelete ? () => handleDeleteButtonClick(store) : null}\n\t\t>\n\t\t\t\n\t\t\n\t)\n}\n\nexport default StoreButton\n","import ArrowUpIcon from \"@/icons/ArrowUpIcon\"\nimport docSo, { FIXED_CARD } from \"@/stores/docs\"\nimport { useStore } from \"@priolo/jon\"\nimport { FunctionComponent } from \"react\"\nimport StoreButton from \"./StoreButton\"\nimport { AboutState, AboutStore } from \"../../stores/stacks/about\"\n\n\n\ninterface Props {\n}\n\nconst AboutButton: FunctionComponent = ({\n}) => {\n\n\t// STORE\n\tconst store = docSo.state.fixedViews[FIXED_CARD.ABOUT] as AboutStore\n\tuseStore(store)\n\n\t// HOOKs\n\n\t// HANDLER\n\n\t// RENDER\n\tif (!store) return null\n\tconst icon = store.state.about?.shouldUpdate \n\t\t? \n\t\t: null\n\n\treturn (\n\t\t\n\t)\n}\n\nexport default AboutButton\n","import docsSo, { FIXED_CARD } from \"@/stores/docs\"\nimport { menuSo } from \"@/stores/docs/links\"\nimport { ClearSession, LoadSession, SaveSession } from \"@/utils/session/startup\"\nimport { useStore } from \"@priolo/jon\"\nimport React, { FunctionComponent } from \"react\"\nimport AboutButton from \"./AboutButton\"\nimport cls from \"./MainMenu.module.css\"\nimport StoreButton from \"./StoreButton\"\nimport { Button } from \"@priolo/jack\"\n\n\n\ninterface Props {\n\tstyle?: React.CSSProperties\n}\n\nconst MainMenu: FunctionComponent = ({\n\tstyle,\n}) => {\n\n\t// STORE\n\tconst menuSa = useStore(menuSo)\n\tuseStore(docsSo)\n\n\t// HOOKS\n\n\t// HANDLERS\n\n\t// RENDER\n\tif (!docsSo.state?.fixedViews) return null\n\tconst views = menuSa.all\n\n\treturn
\n\n\t\t\n\n\t\t{views.map((view) => (\n\t\t\t\n\t\t))}\n\n\t\t
\n\n\t\t{/* *** DEBUG *** */}\n\t\t{process.env.NODE_ENV === 'development' && <>\n\t\t\t
\n}\n\nexport default MainMenu\n","import React, { FunctionComponent } from \"react\"\nimport cls from \"./LinkButton.module.css\"\nimport { TooltipWrapCmp } from \"@priolo/jack\"\n\n\n\ninterface Props {\n\ticon: React.ReactNode\n\ttooltip?: string\n\tselected?: boolean\n\ttabIndex?: number\n\trenderExtra?: React.ReactNode\n\tclassName?: string\n\tonClick?: (e: React.MouseEvent) => void\n}\n\n/**\n * Lo STACK di una collezione di CONNECTIONs\n */\nconst LinkButton: FunctionComponent = ({\n\ticon,\n\ttooltip,\n\tselected,\n\ttabIndex = 0,\n\trenderExtra,\n\tclassName,\n\tonClick,\n}) => {\n\n\t// STORE\n\n\t// HOOKs\n\n\t// HANDLER\n\t\tconst handleKeyDown = (e: React.KeyboardEvent) => {\n\t\t\tif (e.code == \"Space\" || e.code == \"Enter\") onClick?.(e as any);\n\t\t}\n\t\n\n\t// RENDER\n\tconst clsSelect = selected ? cls.selected : \"\"\n\tconst clsRoot = `${cls.root} ${clsSelect} ${className ?? \"\"}`\n\tconst clsExtra = `${cls.extra} ${clsSelect}`\n\n\treturn (\n\t\t\n\t\t\t{icon}\n\t\t\t{renderExtra &&
{renderExtra}
}\n\t\t
\n\t)\n}\n\nexport default LinkButton\n","const IconizedIcon = (props) => (\n\t\n\t\t\n\t\n)\n\nexport default IconizedIcon","import { ViewStore } from \"@/stores/stacks/viewBase\"\nimport { FrameworkCard, Header, IconButton } from \"@priolo/jack\"\nimport { FunctionComponent } from \"react\"\nimport IconizedIcon from \"../../icons/IconizeIcon\"\nimport docsSo from \"../../stores/docs\"\nimport { menuSo } from \"../../stores/docs/links\"\n\n\n\ninterface Props {\n\tstore: ViewStore\n\tclassName?: string\n\tstyle?: React.CSSProperties\n\tstyleBody?: React.CSSProperties\n\n\ticon?: React.ReactNode\n\tactionsRender?: React.ReactNode\n\ticonizedRender?: React.ReactNode\n\tchildren: React.ReactNode\n}\n\n/** struttura standard di una CARD */\nconst MyFrameworkCard: FunctionComponent = ({\n\tstore,\n\tclassName,\n\tstyle,\n\tstyleBody,\n\ticon,\n\tactionsRender,\n\ticonizedRender,\n\tchildren,\n}) => {\n\n\t// HANDLER\n\tconst handleToggleIconize = () => {\n\t\tif (!inMenu) {\n\t\t\t//store.state.group.remove({ view: store })\n\t\t\tmenuSo.add({ view: store })\n\t\t}\n\t\t// else {\n\t\t// \tmenuCardsSo.remove({ view: store })\n\t\t// }\n\t}\n\n\t// RENDER\n\tconst inZen = docsSo.state.zenCard == store\n\tconst inMenu = !inZen && menuSo.find(store)\n\tconst inRoot = inZen || !store.state.parent\n\t//const inDrawer = !inZen && store.state.group == drawerCardsSo\n\tconst showBttPin = !inZen && inRoot && store.state.pinnable\n\t//const showBttAnchor = !inZen && inRoot && (enter || inDrawer)\n\n\treturn \n\t\t\t\t\t\n\t\t\t\t\n\t\t\t)}\n\t\t/>}\n\n\t\tactionsRender={actionsRender}\n\t\ticonizedRender={iconizedRender}\n\t\tchildren={children}\n\t/>\n\n}\n\nexport default MyFrameworkCard\n","import React, { FunctionComponent, useState } from \"react\"\nimport cls from \"./RowButton.module.css\"\n\n\n\ninterface Props {\n\ticon?: React.ReactNode\n\tlabel?: string\n\tselected?: boolean\n\ttabIndex?: number\n\trenderEnd?: React.ReactElement\n\tclassName?: string\n\tonClick?: (e: React.MouseEvent) => void\n\tstyle?: React.CSSProperties\n}\n\nconst RowButton: FunctionComponent = ({\n\ticon,\n\tlabel,\n\tselected,\n\ttabIndex = 0,\n\trenderEnd,\n\tclassName,\n\tonClick,\n\tstyle,\n}) => {\n\n\t// STORE\n\n\t// HOOK\n\n\t// HANDLER\n\tconst handleKeyDown = (e: React.KeyboardEvent) => {\n\t\tif (e.code == \"Space\" || e.code == \"Enter\") onClick?.(e as any);\n\t}\n\n\t// RENDER\n\tconst clsRoot = `${cls.root} ${selected ? cls.select : \"\"} ${className ?? \"\"}`\n\treturn (\n\t\t
\n\t\t\t{icon}\n\t\t\t
\n\t\t\t\t{label}\n\t\t\t
\n\t\t\t{renderEnd}\n\t\t
\n\t)\n}\n\nexport default RowButton\n\n","const SendIcon = (props) => (\n\t\n\t\t\n\t\n)\n\nexport default SendIcon","import cnnSo from \"@/stores/connections\"\nimport { MESSAGE_TYPE } from \"@/stores/log/utils\"\nimport { CnnListStore } from \"@/stores/stacks/connection\"\nimport { CnnDetailStore } from \"@/stores/stacks/connection/detail\"\nimport { EDIT_STATE } from \"@/types\"\nimport { Button, CircularLoadingCmp } from \"@priolo/jack\"\nimport { useStore } from \"@priolo/jon\"\nimport { FunctionComponent } from \"react\"\n\n\n\ninterface Props {\n\tstore: CnnDetailStore\n}\n\nconst ConnectionDetailActions: FunctionComponent = ({\n\tstore: cnnDetailSo,\n}) => {\n\n\t// STORE\n\tuseStore(cnnDetailSo.state.group)\n\tconst cnnDetailSa = useStore(cnnDetailSo)\n\tconst cnnSa = useStore(cnnSo)\n\n\t// HOOKs\n\n\t// HANDLER\n\tconst handleEditClick = async () => {\n\t\tcnnDetailSo.restore()\n\t\tcnnDetailSo.setEditState(EDIT_STATE.EDIT)\n\t}\n\tconst handleCancelClick = () => {\n\t\tcnnDetailSo.restore()\n\t\tcnnDetailSo.setEditState(EDIT_STATE.READ)\n\t}\n\tconst handleSaveClick = async () => {\n\t\tcnnDetailSo.setDisabled(true)\n\t\tconst cnnNew = await cnnSo.save(cnnDetailSa.connection);\n\t\t(cnnDetailSa.parent as CnnListStore)?.setSelect(cnnNew.id)\t\t\n\t\tcnnDetailSo.setDisabled(false)\n\t\tcnnDetailSo.setConnection(cnnNew)\n\t\tcnnDetailSo.setEditState(EDIT_STATE.READ)\n\t\tcnnDetailSo.setSnackbar({ open: true,\n\t\t\ttype: MESSAGE_TYPE.SUCCESS,\n\t\t\ttitle: \"SAVED\",\n\t\t\tbody: \"If the dot is green you are online\",\n\t\t\ttimeout: 5000,\n\t\t})\n\t}\n\n\n\t// LOADING\n\tif (cnnDetailSa.disabled) {\n\t\treturn \n\t}\n\n\n\t// RENDER\n\tif (cnnDetailSa.editState == EDIT_STATE.NEW) {\n\t\treturn \n\n\t} else if (cnnDetailSa.editState == EDIT_STATE.READ) {\n\t\treturn \n\t}\n\n\treturn <>\n\t\t\n\t\t\n\t\n}\n\nexport default ConnectionDetailActions\n","const CheckRadioOnIcon = (props) => (\n\t\n\t\t\n\t\t\n\t\n)\n\nexport default CheckRadioOnIcon","import { AUTH_MODE, Auth } from \"@/types\"\nimport { FunctionComponent, useEffect, useState } from \"react\"\nimport { Button, PasswordInput, StringUpRow, TextInput, TooltipWrapCmp, Options } from \"@priolo/jack\"\n\n\n\ninterface Props {\n\tauth: Auth\n\treadOnly?: boolean,\n\tonClose?: (auth: Auth) => void\n}\n\nconst AuthForm: FunctionComponent = ({\n\tauth,\n\treadOnly,\n\tonClose,\n}) => {\n\n\t// HOOKS\n\tconst [authEdit, setAuthEdit] = useState(auth)\n\tuseEffect(() => {\n\t\tsetAuthEdit(auth ?? {\n\t\t\tmode: AUTH_MODE.TOKEN, creds: \"\", jwt: \"\", nKeySeed: \"\", password: \"\", token: \"\", username: \"\"\n\t\t})\n\t}, [auth])\n\n\t// HANDLER\n\tconst handlePropChange = (prop: Partial) => setAuthEdit({ ...authEdit, ...prop })\n\tconst authItems = Object.values(AUTH_MODE)\n\n\t// RENDER\n\tif (!authEdit) return null\n\treturn
\n\n\t\t
\n\t\t\t style={{ marginBottom: 8 }}\n\t\t\t\tclassName={readOnly ? \"jack-lbl-prop-title\" : \"\"}\n\t\t\t\tvalue={authEdit?.mode?.toUpperCase()}\n\t\t\t\titems={authItems}\n\t\t\t\tRenderRow={StringUpRow}\n\t\t\t\treadOnly={readOnly}\n\t\t\t\tonSelect={(mode) => handlePropChange({ mode: mode as AUTH_MODE })}\n\t\t\t/>\n\t\t\t{/* */}\n\t\t
\n\n\t\t{{\n\t\t\t[AUTH_MODE.USER_PASSWORD]: <>\n\t\t\t\t
USERNAME
handlePropChange({ username })}\n\t\t\t\t\treadOnly={readOnly}\n\t\t\t\t/>
\n\t\t\t\t
PASSWORD
handlePropChange({ password })}\n\t\t\t\t\treadOnly={readOnly}\n\t\t\t\t/>
\n\t\t\t,\n\t\t\t[AUTH_MODE.TOKEN]: (\n\t\t\t\t
\n\t\t\t\t\t
TOKEN\n\t\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t\t handlePropChange({ token })}\n\t\t\t\t\t\treadOnly={readOnly}\n\t\t\t\t\t/>\n\t\t\t\t
\n\t\t\t),\n\t\t\t[AUTH_MODE.NKEY]: <>\n\t\t\t\t
\n\t\t\t\t\t
PUBLIC NKEY\n\t\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t\t handlePropChange({ username })}\n\t\t\t\t\t\treadOnly={readOnly}\n\t\t\t\t\t/>
\n\t\t\t\t
\n\t\t\t\t\t
NKEY SEED\n\t\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t\t handlePropChange({ nKeySeed })}\n\t\t\t\t\t\treadOnly={readOnly}\n\t\t\t\t\t/>
\n\t\t\t,\n\t\t\t[AUTH_MODE.JWT]: <>\n\t\t\t\t
\n\t\t\t\t\t
JWT\n\t\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t\t handlePropChange({ jwt })}\n\t\t\t\t\t\treadOnly={readOnly}\n\t\t\t\t\t/>\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
NKEY SEED\n\t\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t\t handlePropChange({ nKeySeed })}\n\t\t\t\t\t\treadOnly={readOnly}\n\t\t\t\t\t/>\n\t\t\t\t
\n\t\t\t,\n\t\t\t[AUTH_MODE.BEARER_JWT]: <>\n\t\t\t\t
\n\t\t\t\t\t
BEARER JWT\n\t\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t\t handlePropChange({ jwt })}\n\t\t\t\t\t\treadOnly={readOnly}\n\t\t\t\t\t/>\n\t\t\t\t
\n\t\t\t,\n\t\t\t[AUTH_MODE.CREDS_FILE]: <>\n\t\t\t\t
\n\t\t\t\t\t
CREDS PATH FILE\n\t\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t\t handlePropChange({ creds })}\n\t\t\t\t\t\treadOnly={readOnly}\n\t\t\t\t\t/>\n\t\t\t\t
\n\t\t\t,\n\t\t}[authEdit.mode]}\n\n\t\t
\n\t\t\t{!readOnly && (\n\t\t\t\t
\n\t
\n\n}\n\nexport default AuthForm\n","import CheckRadioOnIcon from \"@/icons/CheckRadioOnIcon\"\r\nimport { CnnDetailStore } from \"@/stores/stacks/connection/detail\"\r\nimport { Auth, EDIT_STATE } from \"@/types\"\r\nimport { useStore } from \"@priolo/jon\"\r\nimport { FunctionComponent } from \"react\"\r\nimport AuthForm from \"./AuthForm\"\r\nimport {EditList, EditStringRow, IconToggle, ListObjects, TextInput, TitleAccordion, TooltipWrapCmp} from \"@priolo/jack\"\r\n\r\n\r\n\r\ninterface Props {\r\n cnnDetailSo: CnnDetailStore\r\n}\r\n\r\n/**\r\n * dettaglio di una CONNECTION\r\n */\r\nconst ConnectionDetailForm: FunctionComponent = ({\r\n cnnDetailSo,\r\n}) => {\r\n\r\n // STORE\r\n const cnnDetailSa = useStore(cnnDetailSo)\r\n\r\n // HOOKs\r\n\r\n // HANDLER\r\n const handleChangeName = (name: string) => {\r\n cnnDetailSo.setConnection({ ...cnnDetailSa.connection, name })\r\n }\r\n const handleHostsChange = (hosts: string[]) => {\r\n cnnDetailSo.setConnection({ ...cnnDetailSa.connection, hosts })\r\n }\r\n const handleInboxPrefixChange = (inboxPrefix: string) => {\r\n cnnDetailSo.setConnection({ ...cnnDetailSa.connection, inboxPrefix })\r\n }\r\n const handleAuthChange = (auth: Auth, index: number) => {\r\n if (!auth) return\r\n const cnnAuth = cnnDetailSa.connection.auth\r\n if (index == -1) cnnAuth.push(auth); else cnnAuth[index] = auth\r\n cnnDetailSo.setConnection({ ...cnnDetailSa.connection })\r\n }\r\n const handleAuthDelete = (index: number) => {\r\n if (index < 0) return\r\n cnnDetailSa.connection.auth.splice(index, 1)\r\n cnnDetailSo.setConnection({ ...cnnDetailSa.connection })\r\n }\r\n const handleActivate = (check: boolean, indexSel: number, e: React.MouseEvent) => {\r\n e.stopPropagation()\r\n cnnDetailSa.connection.auth.forEach((auth, index) => auth.active = check && index == indexSel)\r\n cnnDetailSo.setConnection({ ...cnnDetailSa.connection })\r\n }\r\n\r\n const handleChangeTlsEnable = (enabled: boolean) => {\r\n cnnDetailSo.setConnection({ ...cnnDetailSa.connection, tlsAuth: { ...cnnDetailSa.connection.tlsAuth, enabled } })\r\n }\r\n const handleChangeTlsCertPath = (certPath: string) => {\r\n cnnDetailSo.setConnection({ ...cnnDetailSa.connection, tlsAuth: { ...cnnDetailSa.connection.tlsAuth, certPath } })\r\n }\r\n const handleChangeTlsKeyPath = (keyPath: string) => {\r\n cnnDetailSo.setConnection({ ...cnnDetailSa.connection, tlsAuth: { ...cnnDetailSa.connection.tlsAuth, keyPath } })\r\n }\r\n const handleChangeTlsCaPath = (caPath: string) => {\r\n cnnDetailSo.setConnection({ ...cnnDetailSa.connection, tlsAuth: { ...cnnDetailSa.connection.tlsAuth, caPath } })\r\n }\r\n\r\n // RENDER\r\n const connection = cnnDetailSo.getConnection()\r\n if (connection == null) return null\r\n const name = connection.name ?? \"\"\r\n const hosts = connection.hosts ?? []\r\n const auths = connection.auth ?? []\r\n const tlsAuth = connection.tlsAuth ?? { enabled: false, certPath: \"\", keyPath: \"\", caPath: \"\" }\r\n const inRead = cnnDetailSa.editState == EDIT_STATE.READ\r\n\r\n return
\r\n\r\n \r\n
\r\n
NAME
\r\n \r\n
\r\n
\r\n
HOST
\r\n \r\n items={hosts}\r\n onItemsChange={handleHostsChange}\r\n readOnly={inRead}\r\n placeholder=\"ex. demo.nats.io\"\r\n\r\n onNewItem={() => \"\"}\r\n fnIsVoid={h => !h || h.trim().length == 0}\r\n RenderRow={EditStringRow}\r\n />\r\n
\r\n
\r\n\r\n\r\n \r\n
\r\n
AUTH
\r\n \r\n store={cnnDetailSo}\r\n items={auths}\r\n readOnly={inRead}\r\n width={170}\r\n RenderLabel={({ item: auth, index }) => (\r\n
\r\n handleActivate(check, index, e)}\r\n readOnly={inRead}\r\n trueIcon={}\r\n />\r\n {auth?.mode?.toUpperCase()}\r\n
\r\n )}\r\n onDelete={handleAuthDelete}\r\n RenderForm={({ item, index, onClose }) => (\r\n {\r\n onClose();\r\n handleAuthChange(auth, index)\r\n }}\r\n />\r\n )}\r\n />\r\n
\r\n
\r\n \r\n < div className=\"jack-cmp-h\">\r\n \r\n
ENABLE
\r\n
\r\n
\r\n
CLIENT CERT PATH
\r\n \r\n
\r\n
\r\n
CLIENT KEY PATH
\r\n \r\n
\r\n
\r\n
CA PATH
\r\n \r\n
\r\n \r\n \r\n
INBOX PREFIX\r\n \r\n
\r\n \"\r\n readOnly={inRead}\r\n />\r\n
\r\n
\r\n}\r\n\r\nexport default ConnectionDetailForm\r\n","import LinkButton from \"@/components/buttons/LinkButton\"\nimport FrameworkCard from \"@/components/cards/FrameworkCard\"\nimport RowButton from \"@/components/rows/RowButton\"\nimport SendIcon from \"@/icons/SendIcon\"\nimport BucketsIcon from \"@/icons/cards/BucketsIcon\"\nimport MessagesIcon from \"@/icons/cards/MessagesIcon\"\nimport StreamsIcon from \"@/icons/cards/StreamsIcon\"\nimport { CnnDetailStore } from \"@/stores/stacks/connection/detail\"\nimport { EDIT_STATE } from \"@/types\"\nimport { useStore } from \"@priolo/jon\"\nimport { FunctionComponent } from \"react\"\nimport ActionsCmp from \"./Actions\"\nimport ConnectionDetailForm from \"./Form\"\nimport SyncIcon from \"@/icons/SyncIcon\"\nimport clsGreen from \"../../CardGreen.module.css\"\nimport ConnectionIcon from \"../../../../icons/cards/ConnectionIcon\"\nimport { IconButton, TooltipWrapCmp } from \"@priolo/jack\"\n\n\ninterface Props {\n\tstore?: CnnDetailStore\n}\n\nconst CnnDetailView: FunctionComponent = ({\n\tstore: cnnDetailSo,\n}) => {\n\n\t// STORE\n\tuseStore(cnnDetailSo.state.group)\n\tconst cnnDetailSa = useStore(cnnDetailSo)\n\t//const cnnSa = useStore(cnnSo)\n\n\t// HOOKs\n\n\t// HANDLER\n\tconst handleMessagesClick = () => cnnDetailSo.openMessages()\n\tconst handleSyncClick = () => cnnDetailSo.openSync()\n\tconst handleStreamsClick = () => cnnDetailSo.openStreams()\n\tconst handleBucketsClick = () => cnnDetailSo.openBuckets()\n\tconst handleSendClick = (e: React.MouseEvent) => {\n\t\te.stopPropagation()\n\t\tcnnDetailSo.openMessageSend()\n\t}\n\n\t// RENDER\n\tconst isMessageOpen = cnnDetailSo.getMessagesOpen()\n\tconst isSyncOpen = cnnDetailSo.getSyncOpen()\n\tconst isStreamsOpen = cnnDetailSo.getStreamsOpen()\n\tconst isBucketsOpen = cnnDetailSo.getBucketsOpen()\n\tconst isNew = cnnDetailSa.editState == EDIT_STATE.NEW\n\tconst inRead = cnnDetailSa.editState == EDIT_STATE.READ\n\n\tconst ButtonSend = \n\t\t\n\t\n\n\treturn }\n\t\tstore={cnnDetailSo}\n\t\tactionsRender={}\n\t\ticonizedRender={\n\t\t\t
\n\t\t\t\t}\n\t\t\t\t\ttooltip=\"MESSAGES\"\n\t\t\t\t\tselected={isMessageOpen}\n\t\t\t\t\tonClick={handleMessagesClick}\n\t\t\t\t\trenderExtra={ButtonSend}\n\t\t\t\t/>\n\t\t\t\t}\n\t\t\t\t\ttooltip=\"REQUEST / REPLY\"\n\t\t\t\t\tselected={isSyncOpen}\n\t\t\t\t\tonClick={handleSyncClick}\n\t\t\t\t/>\n\t\t\t\t}\n\t\t\t\t\ttooltip=\"STREAMS\"\n\t\t\t\t\tselected={isStreamsOpen}\n\t\t\t\t\tonClick={handleStreamsClick}\n\t\t\t\t/>\n\t\t\t\t}\n\t\t\t\t\ttooltip=\"BUCKETS\"\n\t\t\t\t\tselected={isBucketsOpen}\n\t\t\t\t\tonClick={handleBucketsClick}\n\t\t\t\t/>\n\t\t\t
\n\t\t}\n\t>\n\t\t{inRead && <>\n\t\t\t}\n\t\t\t\tlabel=\"MESSAGES\"\n\t\t\t\tselected={isMessageOpen}\n\t\t\t\tonClick={handleMessagesClick}\n\t\t\t\trenderEnd={ButtonSend}\n\t\t\t/>\n\t\t\t}\n\t\t\t\tlabel=\"REQUEST / REPLY\"\n\t\t\t\tselected={isSyncOpen}\n\t\t\t\tonClick={handleSyncClick}\n\t\t\t/>\n\t\t\t}\n\t\t\t\tlabel=\"STREAMS\"\n\t\t\t\tselected={isStreamsOpen}\n\t\t\t\tonClick={handleStreamsClick}\n\t\t\t/>\n\t\t\t}\n\t\t\t\tlabel=\"BUCKETS\"\n\t\t\t\tselected={isBucketsOpen}\n\t\t\t\tonClick={handleBucketsClick}\n\t\t\t/>\n\t\t}\n\n\t\t\n\n\t\n}\n\nexport default CnnDetailView\n","const PauseIcon = (props) => (\n\t\n\t\t\n\t\t\n\t\n)\n\nexport default PauseIcon","const PlayIcon = (props) => (\n\t\n\t\t\n\t\n)\n\nexport default PlayIcon","import { EditorStore } from \"@/stores/stacks/editorBase\"\nimport { MSG_FORMAT, MSG_FORMAT_EDIT } from \"@/utils/editor\"\nimport { useStore } from \"@priolo/jon\"\nimport { FunctionComponent, useMemo } from \"react\"\nimport { Dialog, List } from \"@priolo/jack\"\n\n\n\ninterface Props {\n\tstore?: EditorStore\n\teditMode?: boolean\n}\n\nconst FormatDialog: FunctionComponent = ({\n\tstore,\n\teditMode,\n}) => {\n\n\t// STORE\n\tconst formatSa = useStore(store as any) as typeof store.state\n\n\t// HOOKs\n\n\t// HANDLER\n\tconst handleClose = () => {\n\t\tstore.setFormatsOpen(false)\n\t}\n\tconst handleSelect = (index: number) => {\n\t\tstore.setFormat(formats[index])\n\t\tstore.setFormatsOpen(false)\n\t}\n\n\t// RENDER\n\tconst formats = useMemo(() => Object.values(editMode ? MSG_FORMAT_EDIT : MSG_FORMAT), [editMode])\n\tconst indexSelect = useMemo(() => formats.indexOf(formatSa.format), [formatSa.format])\n\n\treturn (\n\t\t\n\t\t\t\n\t\t\t\titems={formats}\n\t\t\t\tselect={indexSelect}\n\t\t\t\tonSelect={handleSelect}\n\t\t\t/>\n\t\t
\n\t)\n}\n\nexport default FormatDialog\n","const ArrowDownIcon = (props) => (\n\t\n\t\t\n\t\n)\n\nexport default ArrowDownIcon","const ClearIcon = (props) => (\n\t\n\t\t\n\t\t\n\t\n)\n\nexport default ClearIcon","import { jsx, jsxs, Fragment } from \"react/jsx-runtime\";\nimport React, { createElement } from \"react\";\nimport ReactDOM from \"react-dom\";\nconst PUBLISH = 0;\nconst SUBSCRIBE = 1;\nconst RESET = 2;\nconst VALUE = 4;\nfunction compose(a, b) {\n return (arg) => a(b(arg));\n}\nfunction thrush(arg, proc) {\n return proc(arg);\n}\nfunction curry2to1(proc, arg1) {\n return (arg2) => proc(arg1, arg2);\n}\nfunction curry1to0(proc, arg) {\n return () => proc(arg);\n}\nfunction tap(arg, proc) {\n proc(arg);\n return arg;\n}\nfunction tup(...args) {\n return args;\n}\nfunction call(proc) {\n proc();\n}\nfunction always(value) {\n return () => value;\n}\nfunction joinProc(...procs) {\n return () => {\n procs.map(call);\n };\n}\nfunction isDefined(arg) {\n return arg !== void 0;\n}\nfunction noop() {\n}\nfunction subscribe(emitter, subscription) {\n return emitter(SUBSCRIBE, subscription);\n}\nfunction publish(publisher, value) {\n publisher(PUBLISH, value);\n}\nfunction reset(emitter) {\n emitter(RESET);\n}\nfunction getValue(depot) {\n return depot(VALUE);\n}\nfunction connect(emitter, publisher) {\n return subscribe(emitter, curry2to1(publisher, PUBLISH));\n}\nfunction handleNext(emitter, subscription) {\n const unsub = emitter(SUBSCRIBE, (value) => {\n unsub();\n subscription(value);\n });\n return unsub;\n}\nfunction stream() {\n const subscriptions = [];\n return (action, arg) => {\n switch (action) {\n case RESET:\n subscriptions.splice(0, subscriptions.length);\n return;\n case SUBSCRIBE:\n subscriptions.push(arg);\n return () => {\n const indexOf = subscriptions.indexOf(arg);\n if (indexOf > -1) {\n subscriptions.splice(indexOf, 1);\n }\n };\n case PUBLISH:\n subscriptions.slice().forEach((subscription) => {\n subscription(arg);\n });\n return;\n default:\n throw new Error(`unrecognized action ${action}`);\n }\n };\n}\nfunction statefulStream(initial) {\n let value = initial;\n const innerSubject = stream();\n return (action, arg) => {\n switch (action) {\n case SUBSCRIBE:\n const subscription = arg;\n subscription(value);\n break;\n case PUBLISH:\n value = arg;\n break;\n case VALUE:\n return value;\n }\n return innerSubject(action, arg);\n };\n}\nfunction eventHandler(emitter) {\n let unsub;\n let currentSubscription;\n const cleanup = () => unsub && unsub();\n return function(action, subscription) {\n switch (action) {\n case SUBSCRIBE:\n if (subscription) {\n if (currentSubscription === subscription) {\n return;\n }\n cleanup();\n currentSubscription = subscription;\n unsub = subscribe(emitter, subscription);\n return unsub;\n } else {\n cleanup();\n return noop;\n }\n case RESET:\n cleanup();\n currentSubscription = null;\n return;\n default:\n throw new Error(`unrecognized action ${action}`);\n }\n };\n}\nfunction streamFromEmitter(emitter) {\n return tap(stream(), (stream2) => connect(emitter, stream2));\n}\nfunction statefulStreamFromEmitter(emitter, initial) {\n return tap(statefulStream(initial), (stream2) => connect(emitter, stream2));\n}\nfunction combineOperators(...operators) {\n return (subscriber) => {\n return operators.reduceRight(thrush, subscriber);\n };\n}\nfunction pipe(source, ...operators) {\n const project = combineOperators(...operators);\n return (action, subscription) => {\n switch (action) {\n case SUBSCRIBE:\n return subscribe(source, project(subscription));\n case RESET:\n reset(source);\n return;\n }\n };\n}\nfunction defaultComparator(previous, next) {\n return previous === next;\n}\nfunction distinctUntilChanged(comparator = defaultComparator) {\n let current;\n return (done) => (next) => {\n if (!comparator(current, next)) {\n current = next;\n done(next);\n }\n };\n}\nfunction filter(predicate) {\n return (done) => (value) => {\n predicate(value) && done(value);\n };\n}\nfunction map(project) {\n return (done) => compose(done, project);\n}\nfunction mapTo(value) {\n return (done) => () => done(value);\n}\nfunction scan(scanner, initial) {\n return (done) => (value) => done(initial = scanner(initial, value));\n}\nfunction skip(times) {\n return (done) => (value) => {\n times > 0 ? times-- : done(value);\n };\n}\nfunction throttleTime(interval) {\n let currentValue = null;\n let timeout;\n return (done) => (value) => {\n currentValue = value;\n if (timeout) {\n return;\n }\n timeout = setTimeout(() => {\n timeout = void 0;\n done(currentValue);\n }, interval);\n };\n}\nfunction debounceTime(interval) {\n let currentValue;\n let timeout;\n return (done) => (value) => {\n currentValue = value;\n if (timeout) {\n clearTimeout(timeout);\n }\n timeout = setTimeout(() => {\n done(currentValue);\n }, interval);\n };\n}\nfunction withLatestFrom(...sources) {\n const values = new Array(sources.length);\n let called = 0;\n let pendingCall = null;\n const allCalled = Math.pow(2, sources.length) - 1;\n sources.forEach((source, index) => {\n const bit = Math.pow(2, index);\n subscribe(source, (value) => {\n const prevCalled = called;\n called = called | bit;\n values[index] = value;\n if (prevCalled !== allCalled && called === allCalled && pendingCall) {\n pendingCall();\n pendingCall = null;\n }\n });\n });\n return (done) => (value) => {\n const call2 = () => done([value].concat(values));\n if (called === allCalled) {\n call2();\n } else {\n pendingCall = call2;\n }\n };\n}\nfunction merge(...sources) {\n return function(action, subscription) {\n switch (action) {\n case SUBSCRIBE:\n return joinProc(...sources.map((source) => subscribe(source, subscription)));\n case RESET:\n return;\n default:\n throw new Error(`unrecognized action ${action}`);\n }\n };\n}\nfunction duc(source, comparator = defaultComparator) {\n return pipe(source, distinctUntilChanged(comparator));\n}\nfunction combineLatest(...emitters) {\n const innerSubject = stream();\n const values = new Array(emitters.length);\n let called = 0;\n const allCalled = Math.pow(2, emitters.length) - 1;\n emitters.forEach((source, index) => {\n const bit = Math.pow(2, index);\n subscribe(source, (value) => {\n values[index] = value;\n called = called | bit;\n if (called === allCalled) {\n publish(innerSubject, values);\n }\n });\n });\n return function(action, subscription) {\n switch (action) {\n case SUBSCRIBE:\n if (called === allCalled) {\n subscription(values);\n }\n return subscribe(innerSubject, subscription);\n case RESET:\n return reset(innerSubject);\n default:\n throw new Error(`unrecognized action ${action}`);\n }\n };\n}\nfunction system(constructor, dependencies = [], { singleton } = { singleton: true }) {\n return {\n id: id(),\n constructor,\n dependencies,\n singleton\n };\n}\nconst id = () => Symbol();\nfunction init(systemSpec) {\n const singletons = /* @__PURE__ */ new Map();\n const _init = ({ id: id2, constructor, dependencies, singleton }) => {\n if (singleton && singletons.has(id2)) {\n return singletons.get(id2);\n }\n const system2 = constructor(dependencies.map((e) => _init(e)));\n if (singleton) {\n singletons.set(id2, system2);\n }\n return system2;\n };\n return _init(systemSpec);\n}\nfunction omit(keys, obj) {\n const result = {};\n const index = {};\n let idx = 0;\n const len = keys.length;\n while (idx < len) {\n index[keys[idx]] = 1;\n idx += 1;\n }\n for (const prop in obj) {\n if (!index.hasOwnProperty(prop)) {\n result[prop] = obj[prop];\n }\n }\n return result;\n}\nconst useIsomorphicLayoutEffect$1 = typeof document !== \"undefined\" ? React.useLayoutEffect : React.useEffect;\nfunction systemToComponent(systemSpec, map2, Root) {\n const requiredPropNames = Object.keys(map2.required || {});\n const optionalPropNames = Object.keys(map2.optional || {});\n const methodNames = Object.keys(map2.methods || {});\n const eventNames = Object.keys(map2.events || {});\n const Context = React.createContext({});\n function applyPropsToSystem(system2, props) {\n if (system2[\"propsReady\"]) {\n publish(system2[\"propsReady\"], false);\n }\n for (const requiredPropName of requiredPropNames) {\n const stream2 = system2[map2.required[requiredPropName]];\n publish(stream2, props[requiredPropName]);\n }\n for (const optionalPropName of optionalPropNames) {\n if (optionalPropName in props) {\n const stream2 = system2[map2.optional[optionalPropName]];\n publish(stream2, props[optionalPropName]);\n }\n }\n if (system2[\"propsReady\"]) {\n publish(system2[\"propsReady\"], true);\n }\n }\n function buildMethods(system2) {\n return methodNames.reduce((acc, methodName) => {\n acc[methodName] = (value) => {\n const stream2 = system2[map2.methods[methodName]];\n publish(stream2, value);\n };\n return acc;\n }, {});\n }\n function buildEventHandlers(system2) {\n return eventNames.reduce((handlers, eventName) => {\n handlers[eventName] = eventHandler(system2[map2.events[eventName]]);\n return handlers;\n }, {});\n }\n const Component = React.forwardRef((propsWithChildren, ref) => {\n const { children, ...props } = propsWithChildren;\n const [system2] = React.useState(() => {\n return tap(init(systemSpec), (system22) => applyPropsToSystem(system22, props));\n });\n const [handlers] = React.useState(curry1to0(buildEventHandlers, system2));\n useIsomorphicLayoutEffect$1(() => {\n for (const eventName of eventNames) {\n if (eventName in props) {\n subscribe(handlers[eventName], props[eventName]);\n }\n }\n return () => {\n Object.values(handlers).map(reset);\n };\n }, [props, handlers, system2]);\n useIsomorphicLayoutEffect$1(() => {\n applyPropsToSystem(system2, props);\n });\n React.useImperativeHandle(ref, always(buildMethods(system2)));\n const RootComponent = Root;\n return /* @__PURE__ */ jsx(Context.Provider, { value: system2, children: Root ? /* @__PURE__ */ jsx(RootComponent, { ...omit([...requiredPropNames, ...optionalPropNames, ...eventNames], props), children }) : children });\n });\n const usePublisher2 = (key) => {\n return React.useCallback(curry2to1(publish, React.useContext(Context)[key]), [key]);\n };\n const useEmitterValue18 = (key) => {\n const system2 = React.useContext(Context);\n const source = system2[key];\n const cb = React.useCallback(\n (c) => {\n return subscribe(source, c);\n },\n [source]\n );\n return React.useSyncExternalStore(\n cb,\n () => getValue(source),\n () => getValue(source)\n );\n };\n const useEmitterValueLegacy = (key) => {\n const system2 = React.useContext(Context);\n const source = system2[key];\n const [value, setValue] = React.useState(curry1to0(getValue, source));\n useIsomorphicLayoutEffect$1(\n () => subscribe(source, (next) => {\n if (next !== value) {\n setValue(always(next));\n }\n }),\n [source, value]\n );\n return value;\n };\n const useEmitterValue2 = React.version.startsWith(\"18\") ? useEmitterValue18 : useEmitterValueLegacy;\n const useEmitter2 = (key, callback) => {\n const context = React.useContext(Context);\n const source = context[key];\n useIsomorphicLayoutEffect$1(() => subscribe(source, callback), [callback, source]);\n };\n return {\n Component,\n usePublisher: usePublisher2,\n useEmitterValue: useEmitterValue2,\n useEmitter: useEmitter2\n };\n}\nconst useIsomorphicLayoutEffect = typeof document !== \"undefined\" ? React.useLayoutEffect : React.useEffect;\nvar LogLevel = /* @__PURE__ */ ((LogLevel2) => {\n LogLevel2[LogLevel2[\"DEBUG\"] = 0] = \"DEBUG\";\n LogLevel2[LogLevel2[\"INFO\"] = 1] = \"INFO\";\n LogLevel2[LogLevel2[\"WARN\"] = 2] = \"WARN\";\n LogLevel2[LogLevel2[\"ERROR\"] = 3] = \"ERROR\";\n return LogLevel2;\n})(LogLevel || {});\nconst CONSOLE_METHOD_MAP = {\n [\n 0\n /* DEBUG */\n ]: \"debug\",\n [\n 1\n /* INFO */\n ]: \"log\",\n [\n 2\n /* WARN */\n ]: \"warn\",\n [\n 3\n /* ERROR */\n ]: \"error\"\n};\nconst getGlobalThis = () => typeof globalThis === \"undefined\" ? window : globalThis;\nconst loggerSystem = system(\n () => {\n const logLevel = statefulStream(\n 3\n /* ERROR */\n );\n const log = statefulStream((label, message, level = 1) => {\n var _a;\n const currentLevel = (_a = getGlobalThis()[\"VIRTUOSO_LOG_LEVEL\"]) != null ? _a : getValue(logLevel);\n if (level >= currentLevel) {\n console[CONSOLE_METHOD_MAP[level]](\n \"%creact-virtuoso: %c%s %o\",\n \"color: #0253b3; font-weight: bold\",\n \"color: initial\",\n label,\n message\n );\n }\n });\n return {\n log,\n logLevel\n };\n },\n [],\n { singleton: true }\n);\nfunction useSizeWithElRef(callback, enabled, skipAnimationFrame) {\n const ref = React.useRef(null);\n let callbackRef = (_el) => {\n };\n if (typeof ResizeObserver !== \"undefined\") {\n const observer = React.useMemo(() => {\n return new ResizeObserver((entries) => {\n const code = () => {\n const element = entries[0].target;\n if (element.offsetParent !== null) {\n callback(element);\n }\n };\n skipAnimationFrame ? code() : requestAnimationFrame(code);\n });\n }, [callback]);\n callbackRef = (elRef) => {\n if (elRef && enabled) {\n observer.observe(elRef);\n ref.current = elRef;\n } else {\n if (ref.current) {\n observer.unobserve(ref.current);\n }\n ref.current = null;\n }\n };\n }\n return { ref, callbackRef };\n}\nfunction useSize(callback, enabled, skipAnimationFrame) {\n return useSizeWithElRef(callback, enabled, skipAnimationFrame).callbackRef;\n}\nfunction useChangedListContentsSizes(callback, itemSize, enabled, scrollContainerStateCallback, log, gap, customScrollParent, horizontalDirection, skipAnimationFrame) {\n const memoedCallback = React.useCallback(\n (el) => {\n const ranges = getChangedChildSizes(el.children, itemSize, horizontalDirection ? \"offsetWidth\" : \"offsetHeight\", log);\n let scrollableElement = el.parentElement;\n while (!scrollableElement.dataset[\"virtuosoScroller\"]) {\n scrollableElement = scrollableElement.parentElement;\n }\n const windowScrolling = scrollableElement.lastElementChild.dataset[\"viewportType\"] === \"window\";\n const scrollTop = customScrollParent ? horizontalDirection ? customScrollParent.scrollLeft : customScrollParent.scrollTop : windowScrolling ? horizontalDirection ? window.pageXOffset || document.documentElement.scrollLeft : window.pageYOffset || document.documentElement.scrollTop : horizontalDirection ? scrollableElement.scrollLeft : scrollableElement.scrollTop;\n const scrollHeight = customScrollParent ? horizontalDirection ? customScrollParent.scrollWidth : customScrollParent.scrollHeight : windowScrolling ? horizontalDirection ? document.documentElement.scrollWidth : document.documentElement.scrollHeight : horizontalDirection ? scrollableElement.scrollWidth : scrollableElement.scrollHeight;\n const viewportHeight = customScrollParent ? horizontalDirection ? customScrollParent.offsetWidth : customScrollParent.offsetHeight : windowScrolling ? horizontalDirection ? window.innerWidth : window.innerHeight : horizontalDirection ? scrollableElement.offsetWidth : scrollableElement.offsetHeight;\n scrollContainerStateCallback({\n scrollTop: Math.max(scrollTop, 0),\n scrollHeight,\n viewportHeight\n });\n gap == null ? void 0 : gap(\n horizontalDirection ? resolveGapValue$1(\"column-gap\", getComputedStyle(el).columnGap, log) : resolveGapValue$1(\"row-gap\", getComputedStyle(el).rowGap, log)\n );\n if (ranges !== null) {\n callback(ranges);\n }\n },\n [callback, itemSize, log, gap, customScrollParent, scrollContainerStateCallback]\n );\n return useSizeWithElRef(memoedCallback, enabled, skipAnimationFrame);\n}\nfunction getChangedChildSizes(children, itemSize, field, log) {\n const length = children.length;\n if (length === 0) {\n return null;\n }\n const results = [];\n for (let i = 0; i < length; i++) {\n const child = children.item(i);\n if (!child || child.dataset.index === void 0) {\n continue;\n }\n const index = parseInt(child.dataset.index);\n const knownSize = parseFloat(child.dataset.knownSize);\n const size = itemSize(child, field);\n if (size === 0) {\n log(\"Zero-sized element, this should not happen\", { child }, LogLevel.ERROR);\n }\n if (size === knownSize) {\n continue;\n }\n const lastResult = results[results.length - 1];\n if (results.length === 0 || lastResult.size !== size || lastResult.endIndex !== index - 1) {\n results.push({ startIndex: index, endIndex: index, size });\n } else {\n results[results.length - 1].endIndex++;\n }\n }\n return results;\n}\nfunction resolveGapValue$1(property, value, log) {\n if (value !== \"normal\" && !(value == null ? void 0 : value.endsWith(\"px\"))) {\n log(`${property} was not resolved to pixel value correctly`, value, LogLevel.WARN);\n }\n if (value === \"normal\") {\n return 0;\n }\n return parseInt(value != null ? value : \"0\", 10);\n}\nfunction correctItemSize(el, dimension) {\n return Math.round(el.getBoundingClientRect()[dimension]);\n}\nfunction approximatelyEqual(num1, num2) {\n return Math.abs(num1 - num2) < 1.01;\n}\nfunction useScrollTop(scrollContainerStateCallback, smoothScrollTargetReached, scrollerElement, scrollerRefCallback = noop, customScrollParent, horizontalDirection) {\n const scrollerRef = React.useRef(null);\n const scrollTopTarget = React.useRef(null);\n const timeoutRef = React.useRef(null);\n const handler = React.useCallback(\n (ev) => {\n const el = ev.target;\n const windowScroll = el === window || el === document;\n const scrollTop = horizontalDirection ? windowScroll ? window.pageXOffset || document.documentElement.scrollLeft : el.scrollLeft : windowScroll ? window.pageYOffset || document.documentElement.scrollTop : el.scrollTop;\n const scrollHeight = horizontalDirection ? windowScroll ? document.documentElement.scrollWidth : el.scrollWidth : windowScroll ? document.documentElement.scrollHeight : el.scrollHeight;\n const viewportHeight = horizontalDirection ? windowScroll ? window.innerWidth : el.offsetWidth : windowScroll ? window.innerHeight : el.offsetHeight;\n const call2 = () => {\n scrollContainerStateCallback({\n scrollTop: Math.max(scrollTop, 0),\n scrollHeight,\n viewportHeight\n });\n };\n if (ev.suppressFlushSync) {\n call2();\n } else {\n ReactDOM.flushSync(call2);\n }\n if (scrollTopTarget.current !== null) {\n if (scrollTop === scrollTopTarget.current || scrollTop <= 0 || scrollTop === scrollHeight - viewportHeight) {\n scrollTopTarget.current = null;\n smoothScrollTargetReached(true);\n if (timeoutRef.current) {\n clearTimeout(timeoutRef.current);\n timeoutRef.current = null;\n }\n }\n }\n },\n [scrollContainerStateCallback, smoothScrollTargetReached]\n );\n React.useEffect(() => {\n const localRef = customScrollParent ? customScrollParent : scrollerRef.current;\n scrollerRefCallback(customScrollParent ? customScrollParent : scrollerRef.current);\n handler({ target: localRef, suppressFlushSync: true });\n localRef.addEventListener(\"scroll\", handler, { passive: true });\n return () => {\n scrollerRefCallback(null);\n localRef.removeEventListener(\"scroll\", handler);\n };\n }, [scrollerRef, handler, scrollerElement, scrollerRefCallback, customScrollParent]);\n function scrollToCallback(location) {\n const scrollerElement2 = scrollerRef.current;\n if (!scrollerElement2 || (horizontalDirection ? \"offsetWidth\" in scrollerElement2 && scrollerElement2.offsetWidth === 0 : \"offsetHeight\" in scrollerElement2 && scrollerElement2.offsetHeight === 0)) {\n return;\n }\n const isSmooth = location.behavior === \"smooth\";\n let offsetHeight;\n let scrollHeight;\n let scrollTop;\n if (scrollerElement2 === window) {\n scrollHeight = Math.max(\n correctItemSize(document.documentElement, horizontalDirection ? \"width\" : \"height\"),\n horizontalDirection ? document.documentElement.scrollWidth : document.documentElement.scrollHeight\n );\n offsetHeight = horizontalDirection ? window.innerWidth : window.innerHeight;\n scrollTop = horizontalDirection ? document.documentElement.scrollLeft : document.documentElement.scrollTop;\n } else {\n scrollHeight = scrollerElement2[horizontalDirection ? \"scrollWidth\" : \"scrollHeight\"];\n offsetHeight = correctItemSize(scrollerElement2, horizontalDirection ? \"width\" : \"height\");\n scrollTop = scrollerElement2[horizontalDirection ? \"scrollLeft\" : \"scrollTop\"];\n }\n const maxScrollTop = scrollHeight - offsetHeight;\n location.top = Math.ceil(Math.max(Math.min(maxScrollTop, location.top), 0));\n if (approximatelyEqual(offsetHeight, scrollHeight) || location.top === scrollTop) {\n scrollContainerStateCallback({ scrollTop, scrollHeight, viewportHeight: offsetHeight });\n if (isSmooth) {\n smoothScrollTargetReached(true);\n }\n return;\n }\n if (isSmooth) {\n scrollTopTarget.current = location.top;\n if (timeoutRef.current) {\n clearTimeout(timeoutRef.current);\n }\n timeoutRef.current = setTimeout(() => {\n timeoutRef.current = null;\n scrollTopTarget.current = null;\n smoothScrollTargetReached(true);\n }, 1e3);\n } else {\n scrollTopTarget.current = null;\n }\n if (horizontalDirection) {\n location = { left: location.top, behavior: location.behavior };\n }\n scrollerElement2.scrollTo(location);\n }\n function scrollByCallback(location) {\n if (horizontalDirection) {\n location = { left: location.top, behavior: location.behavior };\n }\n scrollerRef.current.scrollBy(location);\n }\n return { scrollerRef, scrollByCallback, scrollToCallback };\n}\nconst domIOSystem = system(\n () => {\n const scrollContainerState = stream();\n const scrollTop = stream();\n const deviation = statefulStream(0);\n const smoothScrollTargetReached = stream();\n const statefulScrollTop = statefulStream(0);\n const viewportHeight = stream();\n const scrollHeight = stream();\n const headerHeight = statefulStream(0);\n const fixedHeaderHeight = statefulStream(0);\n const fixedFooterHeight = statefulStream(0);\n const footerHeight = statefulStream(0);\n const scrollTo = stream();\n const scrollBy = stream();\n const scrollingInProgress = statefulStream(false);\n const horizontalDirection = statefulStream(false);\n const skipAnimationFrameInResizeObserver = statefulStream(false);\n connect(\n pipe(\n scrollContainerState,\n map(({ scrollTop: scrollTop2 }) => scrollTop2)\n ),\n scrollTop\n );\n connect(\n pipe(\n scrollContainerState,\n map(({ scrollHeight: scrollHeight2 }) => scrollHeight2)\n ),\n scrollHeight\n );\n connect(scrollTop, statefulScrollTop);\n return {\n // input\n scrollContainerState,\n scrollTop,\n viewportHeight,\n headerHeight,\n fixedHeaderHeight,\n fixedFooterHeight,\n footerHeight,\n scrollHeight,\n smoothScrollTargetReached,\n horizontalDirection,\n skipAnimationFrameInResizeObserver,\n // signals\n scrollTo,\n scrollBy,\n // state\n statefulScrollTop,\n deviation,\n scrollingInProgress\n };\n },\n [],\n { singleton: true }\n);\nconst NIL_NODE = { lvl: 0 };\nfunction newAANode(k, v, lvl, l = NIL_NODE, r = NIL_NODE) {\n return { k, v, lvl, l, r };\n}\nfunction empty(node) {\n return node === NIL_NODE;\n}\nfunction newTree() {\n return NIL_NODE;\n}\nfunction remove(node, key) {\n if (empty(node)) return NIL_NODE;\n const { k, l, r } = node;\n if (key === k) {\n if (empty(l)) {\n return r;\n } else if (empty(r)) {\n return l;\n } else {\n const [lastKey, lastValue] = last(l);\n return adjust(clone(node, { k: lastKey, v: lastValue, l: deleteLast(l) }));\n }\n } else if (key < k) {\n return adjust(clone(node, { l: remove(l, key) }));\n } else {\n return adjust(clone(node, { r: remove(r, key) }));\n }\n}\nfunction find(node, key) {\n if (empty(node)) {\n return;\n }\n if (key === node.k) {\n return node.v;\n } else if (key < node.k) {\n return find(node.l, key);\n } else {\n return find(node.r, key);\n }\n}\nfunction findMaxKeyValue(node, value, field = \"k\") {\n if (empty(node)) {\n return [-Infinity, void 0];\n }\n if (Number(node[field]) === value) {\n return [node.k, node.v];\n }\n if (Number(node[field]) < value) {\n const r = findMaxKeyValue(node.r, value, field);\n if (r[0] === -Infinity) {\n return [node.k, node.v];\n } else {\n return r;\n }\n }\n return findMaxKeyValue(node.l, value, field);\n}\nfunction insert(node, k, v) {\n if (empty(node)) {\n return newAANode(k, v, 1);\n }\n if (k === node.k) {\n return clone(node, { k, v });\n } else if (k < node.k) {\n return rebalance(clone(node, { l: insert(node.l, k, v) }));\n } else {\n return rebalance(clone(node, { r: insert(node.r, k, v) }));\n }\n}\nfunction walkWithin(node, start, end) {\n if (empty(node)) {\n return [];\n }\n const { k, v, l, r } = node;\n let result = [];\n if (k > start) {\n result = result.concat(walkWithin(l, start, end));\n }\n if (k >= start && k <= end) {\n result.push({ k, v });\n }\n if (k <= end) {\n result = result.concat(walkWithin(r, start, end));\n }\n return result;\n}\nfunction walk(node) {\n if (empty(node)) {\n return [];\n }\n return [...walk(node.l), { k: node.k, v: node.v }, ...walk(node.r)];\n}\nfunction last(node) {\n return empty(node.r) ? [node.k, node.v] : last(node.r);\n}\nfunction deleteLast(node) {\n return empty(node.r) ? node.l : adjust(clone(node, { r: deleteLast(node.r) }));\n}\nfunction clone(node, args) {\n return newAANode(\n args.k !== void 0 ? args.k : node.k,\n args.v !== void 0 ? args.v : node.v,\n args.lvl !== void 0 ? args.lvl : node.lvl,\n args.l !== void 0 ? args.l : node.l,\n args.r !== void 0 ? args.r : node.r\n );\n}\nfunction isSingle(node) {\n return empty(node) || node.lvl > node.r.lvl;\n}\nfunction rebalance(node) {\n return split(skew(node));\n}\nfunction adjust(node) {\n const { l, r, lvl } = node;\n if (r.lvl >= lvl - 1 && l.lvl >= lvl - 1) {\n return node;\n } else if (lvl > r.lvl + 1) {\n if (isSingle(l)) {\n return skew(clone(node, { lvl: lvl - 1 }));\n } else {\n if (!empty(l) && !empty(l.r)) {\n return clone(l.r, {\n l: clone(l, { r: l.r.l }),\n r: clone(node, {\n l: l.r.r,\n lvl: lvl - 1\n }),\n lvl\n });\n } else {\n throw new Error(\"Unexpected empty nodes\");\n }\n }\n } else {\n if (isSingle(node)) {\n return split(clone(node, { lvl: lvl - 1 }));\n } else {\n if (!empty(r) && !empty(r.l)) {\n const rl = r.l;\n const rlvl = isSingle(rl) ? r.lvl - 1 : r.lvl;\n return clone(rl, {\n l: clone(node, {\n r: rl.l,\n lvl: lvl - 1\n }),\n r: split(clone(r, { l: rl.r, lvl: rlvl })),\n lvl: rl.lvl + 1\n });\n } else {\n throw new Error(\"Unexpected empty nodes\");\n }\n }\n }\n}\nfunction rangesWithin(node, startIndex, endIndex) {\n if (empty(node)) {\n return [];\n }\n const adjustedStart = findMaxKeyValue(node, startIndex)[0];\n return toRanges(walkWithin(node, adjustedStart, endIndex));\n}\nfunction arrayToRanges(items, parser) {\n const length = items.length;\n if (length === 0) {\n return [];\n }\n let { index: start, value } = parser(items[0]);\n const result = [];\n for (let i = 1; i < length; i++) {\n const { index: nextIndex, value: nextValue } = parser(items[i]);\n result.push({ start, end: nextIndex - 1, value });\n start = nextIndex;\n value = nextValue;\n }\n result.push({ start, end: Infinity, value });\n return result;\n}\nfunction toRanges(nodes) {\n return arrayToRanges(nodes, ({ k: index, v: value }) => ({ index, value }));\n}\nfunction split(node) {\n const { r, lvl } = node;\n return !empty(r) && !empty(r.r) && r.lvl === lvl && r.r.lvl === lvl ? clone(r, { l: clone(node, { r: r.l }), lvl: lvl + 1 }) : node;\n}\nfunction skew(node) {\n const { l } = node;\n return !empty(l) && l.lvl === node.lvl ? clone(l, { r: clone(node, { l: l.r }) }) : node;\n}\nfunction findIndexOfClosestSmallerOrEqual(items, value, comparator, start = 0) {\n let end = items.length - 1;\n while (start <= end) {\n const index = Math.floor((start + end) / 2);\n const item = items[index];\n const match = comparator(item, value);\n if (match === 0) {\n return index;\n }\n if (match === -1) {\n if (end - start < 2) {\n return index - 1;\n }\n end = index - 1;\n } else {\n if (end === start) {\n return index;\n }\n start = index + 1;\n }\n }\n throw new Error(`Failed binary finding record in array - ${items.join(\",\")}, searched for ${value}`);\n}\nfunction findClosestSmallerOrEqual(items, value, comparator) {\n return items[findIndexOfClosestSmallerOrEqual(items, value, comparator)];\n}\nfunction findRange(items, startValue, endValue, comparator) {\n const startIndex = findIndexOfClosestSmallerOrEqual(items, startValue, comparator);\n const endIndex = findIndexOfClosestSmallerOrEqual(items, endValue, comparator, startIndex);\n return items.slice(startIndex, endIndex + 1);\n}\nconst recalcSystem = system(\n () => {\n const recalcInProgress = statefulStream(false);\n return { recalcInProgress };\n },\n [],\n { singleton: true }\n);\nfunction rangeIncludes(refRange) {\n const { size, startIndex, endIndex } = refRange;\n return (range) => {\n return range.start === startIndex && (range.end === endIndex || range.end === Infinity) && range.value === size;\n };\n}\nfunction affectedGroupCount(offset, groupIndices) {\n let recognizedOffsetItems = 0;\n let groupIndex = 0;\n while (recognizedOffsetItems < offset) {\n recognizedOffsetItems += groupIndices[groupIndex + 1] - groupIndices[groupIndex] - 1;\n groupIndex++;\n }\n const offsetIsExact = recognizedOffsetItems === offset;\n return groupIndex - (offsetIsExact ? 0 : 1);\n}\nfunction insertRanges(sizeTree, ranges) {\n let syncStart = empty(sizeTree) ? 0 : Infinity;\n for (const range of ranges) {\n const { size, startIndex, endIndex } = range;\n syncStart = Math.min(syncStart, startIndex);\n if (empty(sizeTree)) {\n sizeTree = insert(sizeTree, 0, size);\n continue;\n }\n const overlappingRanges = rangesWithin(sizeTree, startIndex - 1, endIndex + 1);\n if (overlappingRanges.some(rangeIncludes(range))) {\n continue;\n }\n let firstPassDone = false;\n let shouldInsert = false;\n for (const { start: rangeStart, end: rangeEnd, value: rangeValue } of overlappingRanges) {\n if (!firstPassDone) {\n shouldInsert = rangeValue !== size;\n firstPassDone = true;\n } else {\n if (endIndex >= rangeStart || size === rangeValue) {\n sizeTree = remove(sizeTree, rangeStart);\n }\n }\n if (rangeEnd > endIndex && endIndex >= rangeStart) {\n if (rangeValue !== size) {\n sizeTree = insert(sizeTree, endIndex + 1, rangeValue);\n }\n }\n }\n if (shouldInsert) {\n sizeTree = insert(sizeTree, startIndex, size);\n }\n }\n return [sizeTree, syncStart];\n}\nfunction initialSizeState() {\n return {\n offsetTree: [],\n sizeTree: newTree(),\n groupOffsetTree: newTree(),\n lastIndex: 0,\n lastOffset: 0,\n lastSize: 0,\n groupIndices: []\n };\n}\nfunction indexComparator({ index: itemIndex }, index) {\n return index === itemIndex ? 0 : index < itemIndex ? -1 : 1;\n}\nfunction offsetComparator({ offset: itemOffset }, offset) {\n return offset === itemOffset ? 0 : offset < itemOffset ? -1 : 1;\n}\nfunction offsetPointParser(point) {\n return { index: point.index, value: point };\n}\nfunction rangesWithinOffsets(tree, startOffset, endOffset, minStartIndex = 0) {\n if (minStartIndex > 0) {\n startOffset = Math.max(startOffset, findClosestSmallerOrEqual(tree, minStartIndex, indexComparator).offset);\n }\n return arrayToRanges(findRange(tree, startOffset, endOffset, offsetComparator), offsetPointParser);\n}\nfunction createOffsetTree(prevOffsetTree, syncStart, sizeTree, gap) {\n let offsetTree = prevOffsetTree;\n let prevIndex = 0;\n let prevSize = 0;\n let prevOffset = 0;\n let startIndex = 0;\n if (syncStart !== 0) {\n startIndex = findIndexOfClosestSmallerOrEqual(offsetTree, syncStart - 1, indexComparator);\n const offsetInfo = offsetTree[startIndex];\n prevOffset = offsetInfo.offset;\n const kv = findMaxKeyValue(sizeTree, syncStart - 1);\n prevIndex = kv[0];\n prevSize = kv[1];\n if (offsetTree.length && offsetTree[startIndex].size === findMaxKeyValue(sizeTree, syncStart)[1]) {\n startIndex -= 1;\n }\n offsetTree = offsetTree.slice(0, startIndex + 1);\n } else {\n offsetTree = [];\n }\n for (const { start: startIndex2, value } of rangesWithin(sizeTree, syncStart, Infinity)) {\n const indexOffset = startIndex2 - prevIndex;\n const aOffset = indexOffset * prevSize + prevOffset + indexOffset * gap;\n offsetTree.push({\n offset: aOffset,\n size: value,\n index: startIndex2\n });\n prevIndex = startIndex2;\n prevOffset = aOffset;\n prevSize = value;\n }\n return {\n offsetTree,\n lastIndex: prevIndex,\n lastOffset: prevOffset,\n lastSize: prevSize\n };\n}\nfunction sizeStateReducer(state, [ranges, groupIndices, log, gap]) {\n if (ranges.length > 0) {\n log(\"received item sizes\", ranges, LogLevel.DEBUG);\n }\n const sizeTree = state.sizeTree;\n let newSizeTree = sizeTree;\n let syncStart = 0;\n if (groupIndices.length > 0 && empty(sizeTree) && ranges.length === 2) {\n const groupSize = ranges[0].size;\n const itemSize = ranges[1].size;\n newSizeTree = groupIndices.reduce((tree, groupIndex) => {\n return insert(insert(tree, groupIndex, groupSize), groupIndex + 1, itemSize);\n }, newSizeTree);\n } else {\n [newSizeTree, syncStart] = insertRanges(newSizeTree, ranges);\n }\n if (newSizeTree === sizeTree) {\n return state;\n }\n const { offsetTree: newOffsetTree, lastIndex, lastSize, lastOffset } = createOffsetTree(state.offsetTree, syncStart, newSizeTree, gap);\n return {\n sizeTree: newSizeTree,\n offsetTree: newOffsetTree,\n lastIndex,\n lastOffset,\n lastSize,\n groupOffsetTree: groupIndices.reduce((tree, index) => {\n return insert(tree, index, offsetOf(index, newOffsetTree, gap));\n }, newTree()),\n groupIndices\n };\n}\nfunction offsetOf(index, tree, gap) {\n if (tree.length === 0) {\n return 0;\n }\n const { offset, index: startIndex, size } = findClosestSmallerOrEqual(tree, index, indexComparator);\n const itemCount = index - startIndex;\n const top = size * itemCount + (itemCount - 1) * gap + offset;\n return top > 0 ? top + gap : top;\n}\nfunction isGroupLocation(location) {\n return typeof location.groupIndex !== \"undefined\";\n}\nfunction originalIndexFromLocation(location, sizes, lastIndex) {\n if (isGroupLocation(location)) {\n return sizes.groupIndices[location.groupIndex] + 1;\n } else {\n const numericIndex = location.index === \"LAST\" ? lastIndex : location.index;\n let result = originalIndexFromItemIndex(numericIndex, sizes);\n result = Math.max(0, result, Math.min(lastIndex, result));\n return result;\n }\n}\nfunction originalIndexFromItemIndex(itemIndex, sizes) {\n if (!hasGroups(sizes)) {\n return itemIndex;\n }\n let groupOffset = 0;\n while (sizes.groupIndices[groupOffset] <= itemIndex + groupOffset) {\n groupOffset++;\n }\n return itemIndex + groupOffset;\n}\nfunction hasGroups(sizes) {\n return !empty(sizes.groupOffsetTree);\n}\nfunction sizeTreeToRanges(sizeTree) {\n return walk(sizeTree).map(({ k: startIndex, v: size }, index, sizeArray) => {\n const nextSize = sizeArray[index + 1];\n const endIndex = nextSize ? nextSize.k - 1 : Infinity;\n return { startIndex, endIndex, size };\n });\n}\nconst SIZE_MAP = {\n offsetHeight: \"height\",\n offsetWidth: \"width\"\n};\nconst sizeSystem = system(\n ([{ log }, { recalcInProgress }]) => {\n const sizeRanges = stream();\n const totalCount = stream();\n const statefulTotalCount = statefulStreamFromEmitter(totalCount, 0);\n const unshiftWith = stream();\n const shiftWith = stream();\n const firstItemIndex = statefulStream(0);\n const groupIndices = statefulStream([]);\n const fixedItemSize = statefulStream(void 0);\n const defaultItemSize = statefulStream(void 0);\n const itemSize = statefulStream((el, field) => correctItemSize(el, SIZE_MAP[field]));\n const data = statefulStream(void 0);\n const gap = statefulStream(0);\n const initial = initialSizeState();\n const sizes = statefulStreamFromEmitter(\n pipe(sizeRanges, withLatestFrom(groupIndices, log, gap), scan(sizeStateReducer, initial), distinctUntilChanged()),\n initial\n );\n const prevGroupIndices = statefulStreamFromEmitter(\n pipe(\n groupIndices,\n distinctUntilChanged(),\n scan((prev, curr) => ({ prev: prev.current, current: curr }), {\n prev: [],\n current: []\n }),\n map(({ prev }) => prev)\n ),\n []\n );\n connect(\n pipe(\n groupIndices,\n filter((indexes) => indexes.length > 0),\n withLatestFrom(sizes, gap),\n map(([groupIndices2, sizes2, gap2]) => {\n const groupOffsetTree = groupIndices2.reduce((tree, index, idx) => {\n return insert(tree, index, offsetOf(index, sizes2.offsetTree, gap2) || idx);\n }, newTree());\n return {\n ...sizes2,\n groupIndices: groupIndices2,\n groupOffsetTree\n };\n })\n ),\n sizes\n );\n connect(\n pipe(\n totalCount,\n withLatestFrom(sizes),\n filter(([totalCount2, { lastIndex }]) => {\n return totalCount2 < lastIndex;\n }),\n map(([totalCount2, { lastIndex, lastSize }]) => {\n return [\n {\n startIndex: totalCount2,\n endIndex: lastIndex,\n size: lastSize\n }\n ];\n })\n ),\n sizeRanges\n );\n connect(fixedItemSize, defaultItemSize);\n const trackItemSizes = statefulStreamFromEmitter(\n pipe(\n fixedItemSize,\n map((size) => size === void 0)\n ),\n true\n );\n connect(\n pipe(\n defaultItemSize,\n filter((value) => {\n return value !== void 0 && empty(getValue(sizes).sizeTree);\n }),\n map((size) => [{ startIndex: 0, endIndex: 0, size }])\n ),\n sizeRanges\n );\n const listRefresh = streamFromEmitter(\n pipe(\n sizeRanges,\n withLatestFrom(sizes),\n scan(\n ({ sizes: oldSizes }, [_, newSizes]) => {\n return {\n changed: newSizes !== oldSizes,\n sizes: newSizes\n };\n },\n { changed: false, sizes: initial }\n ),\n map((value) => value.changed)\n )\n );\n subscribe(\n pipe(\n firstItemIndex,\n scan(\n (prev, next) => {\n return { diff: prev.prev - next, prev: next };\n },\n { diff: 0, prev: 0 }\n ),\n map((val) => val.diff)\n ),\n (offset) => {\n const { groupIndices: groupIndices2 } = getValue(sizes);\n if (offset > 0) {\n publish(recalcInProgress, true);\n publish(unshiftWith, offset + affectedGroupCount(offset, groupIndices2));\n } else if (offset < 0) {\n const prevGroupIndicesValue = getValue(prevGroupIndices);\n if (prevGroupIndicesValue.length > 0) {\n offset -= affectedGroupCount(-offset, prevGroupIndicesValue);\n }\n publish(shiftWith, offset);\n }\n }\n );\n subscribe(pipe(firstItemIndex, withLatestFrom(log)), ([index, log2]) => {\n if (index < 0) {\n log2(\n \"`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value\",\n { firstItemIndex },\n LogLevel.ERROR\n );\n }\n });\n const beforeUnshiftWith = streamFromEmitter(unshiftWith);\n connect(\n pipe(\n unshiftWith,\n withLatestFrom(sizes),\n map(([unshiftWith2, sizes2]) => {\n const groupedMode = sizes2.groupIndices.length > 0;\n const initialRanges = [];\n const defaultSize = sizes2.lastSize;\n if (groupedMode) {\n const firstGroupSize = find(sizes2.sizeTree, 0);\n let prependedGroupItemsCount = 0;\n let groupIndex = 0;\n while (prependedGroupItemsCount < unshiftWith2) {\n const theGroupIndex = sizes2.groupIndices[groupIndex];\n const groupItemCount = sizes2.groupIndices.length === groupIndex + 1 ? Infinity : sizes2.groupIndices[groupIndex + 1] - theGroupIndex - 1;\n initialRanges.push({\n startIndex: theGroupIndex,\n endIndex: theGroupIndex,\n size: firstGroupSize\n });\n initialRanges.push({\n startIndex: theGroupIndex + 1,\n endIndex: theGroupIndex + 1 + groupItemCount - 1,\n size: defaultSize\n });\n groupIndex++;\n prependedGroupItemsCount += groupItemCount + 1;\n }\n const sizeTreeKV = walk(sizes2.sizeTree);\n const firstGroupIsExpanded = prependedGroupItemsCount !== unshiftWith2;\n if (firstGroupIsExpanded) {\n sizeTreeKV.shift();\n }\n return sizeTreeKV.reduce(\n (acc, { k: index, v: size }) => {\n let ranges = acc.ranges;\n if (acc.prevSize !== 0) {\n ranges = [\n ...acc.ranges,\n {\n startIndex: acc.prevIndex,\n endIndex: index + unshiftWith2 - 1,\n size: acc.prevSize\n }\n ];\n }\n return {\n ranges,\n prevIndex: index + unshiftWith2,\n prevSize: size\n };\n },\n {\n ranges: initialRanges,\n prevIndex: unshiftWith2,\n prevSize: 0\n }\n ).ranges;\n }\n return walk(sizes2.sizeTree).reduce(\n (acc, { k: index, v: size }) => {\n return {\n ranges: [...acc.ranges, { startIndex: acc.prevIndex, endIndex: index + unshiftWith2 - 1, size: acc.prevSize }],\n prevIndex: index + unshiftWith2,\n prevSize: size\n };\n },\n {\n ranges: [],\n prevIndex: 0,\n prevSize: defaultSize\n }\n ).ranges;\n })\n ),\n sizeRanges\n );\n const shiftWithOffset = streamFromEmitter(\n pipe(\n shiftWith,\n withLatestFrom(sizes, gap),\n map(([shiftWith2, { offsetTree }, gap2]) => {\n const newFirstItemIndex = -shiftWith2;\n return offsetOf(newFirstItemIndex, offsetTree, gap2);\n })\n )\n );\n connect(\n pipe(\n shiftWith,\n withLatestFrom(sizes, gap),\n map(([shiftWith2, sizes2, gap2]) => {\n const groupedMode = sizes2.groupIndices.length > 0;\n if (groupedMode) {\n if (empty(sizes2.sizeTree)) {\n return sizes2;\n }\n let newSizeTree = newTree();\n const prevGroupIndicesValue = getValue(prevGroupIndices);\n let removedItemsCount = 0;\n let groupIndex = 0;\n let groupOffset = 0;\n while (removedItemsCount < -shiftWith2) {\n groupOffset = prevGroupIndicesValue[groupIndex];\n const groupItemCount = prevGroupIndicesValue[groupIndex + 1] - groupOffset - 1;\n groupIndex++;\n removedItemsCount += groupItemCount + 1;\n }\n newSizeTree = walk(sizes2.sizeTree).reduce((acc, { k, v }) => {\n return insert(acc, Math.max(0, k + shiftWith2), v);\n }, newSizeTree);\n const aGroupIsShrunk = removedItemsCount !== -shiftWith2;\n if (aGroupIsShrunk) {\n const firstGroupSize = find(sizes2.sizeTree, groupOffset);\n newSizeTree = insert(newSizeTree, 0, firstGroupSize);\n const nextItemSize = findMaxKeyValue(sizes2.sizeTree, -shiftWith2 + 1)[1];\n newSizeTree = insert(newSizeTree, 1, nextItemSize);\n }\n return {\n ...sizes2,\n sizeTree: newSizeTree,\n ...createOffsetTree(sizes2.offsetTree, 0, newSizeTree, gap2)\n };\n } else {\n const newSizeTree = walk(sizes2.sizeTree).reduce((acc, { k, v }) => {\n return insert(acc, Math.max(0, k + shiftWith2), v);\n }, newTree());\n return {\n ...sizes2,\n sizeTree: newSizeTree,\n ...createOffsetTree(sizes2.offsetTree, 0, newSizeTree, gap2)\n };\n }\n })\n ),\n sizes\n );\n return {\n // input\n data,\n totalCount,\n sizeRanges,\n groupIndices,\n defaultItemSize,\n fixedItemSize,\n unshiftWith,\n shiftWith,\n shiftWithOffset,\n beforeUnshiftWith,\n firstItemIndex,\n gap,\n // output\n sizes,\n listRefresh,\n statefulTotalCount,\n trackItemSizes,\n itemSize\n };\n },\n tup(loggerSystem, recalcSystem),\n { singleton: true }\n);\nconst SUPPORTS_SCROLL_TO_OPTIONS = typeof document !== \"undefined\" && \"scrollBehavior\" in document.documentElement.style;\nfunction normalizeIndexLocation(location) {\n const result = typeof location === \"number\" ? { index: location } : location;\n if (!result.align) {\n result.align = \"start\";\n }\n if (!result.behavior || !SUPPORTS_SCROLL_TO_OPTIONS) {\n result.behavior = \"auto\";\n }\n if (!result.offset) {\n result.offset = 0;\n }\n return result;\n}\nconst scrollToIndexSystem = system(\n ([\n { sizes, totalCount, listRefresh, gap },\n {\n scrollingInProgress,\n viewportHeight,\n scrollTo,\n smoothScrollTargetReached,\n headerHeight,\n footerHeight,\n fixedHeaderHeight,\n fixedFooterHeight\n },\n { log }\n ]) => {\n const scrollToIndex = stream();\n const scrollTargetReached = stream();\n const topListHeight = statefulStream(0);\n let unsubscribeNextListRefresh = null;\n let cleartTimeoutRef = null;\n let unsubscribeListRefresh = null;\n function cleanup() {\n if (unsubscribeNextListRefresh) {\n unsubscribeNextListRefresh();\n unsubscribeNextListRefresh = null;\n }\n if (unsubscribeListRefresh) {\n unsubscribeListRefresh();\n unsubscribeListRefresh = null;\n }\n if (cleartTimeoutRef) {\n clearTimeout(cleartTimeoutRef);\n cleartTimeoutRef = null;\n }\n publish(scrollingInProgress, false);\n }\n connect(\n pipe(\n scrollToIndex,\n withLatestFrom(sizes, viewportHeight, totalCount, topListHeight, headerHeight, footerHeight, log),\n withLatestFrom(gap, fixedHeaderHeight, fixedFooterHeight),\n map(\n ([\n [location, sizes2, viewportHeight2, totalCount2, topListHeight2, headerHeight2, footerHeight2, log2],\n gap2,\n fixedHeaderHeight2,\n fixedFooterHeight2\n ]) => {\n const normalLocation = normalizeIndexLocation(location);\n const { align, behavior, offset } = normalLocation;\n const lastIndex = totalCount2 - 1;\n const index = originalIndexFromLocation(normalLocation, sizes2, lastIndex);\n let top = offsetOf(index, sizes2.offsetTree, gap2) + headerHeight2;\n if (align === \"end\") {\n top += fixedHeaderHeight2 + findMaxKeyValue(sizes2.sizeTree, index)[1] - viewportHeight2 + fixedFooterHeight2;\n if (index === lastIndex) {\n top += footerHeight2;\n }\n } else if (align === \"center\") {\n top += (fixedHeaderHeight2 + findMaxKeyValue(sizes2.sizeTree, index)[1] - viewportHeight2 + fixedFooterHeight2) / 2;\n } else {\n top -= topListHeight2;\n }\n if (offset) {\n top += offset;\n }\n const retry = (listChanged) => {\n cleanup();\n if (listChanged) {\n log2(\"retrying to scroll to\", { location }, LogLevel.DEBUG);\n publish(scrollToIndex, location);\n } else {\n publish(scrollTargetReached, true);\n log2(\"list did not change, scroll successful\", {}, LogLevel.DEBUG);\n }\n };\n cleanup();\n if (behavior === \"smooth\") {\n let listChanged = false;\n unsubscribeListRefresh = subscribe(listRefresh, (changed) => {\n listChanged = listChanged || changed;\n });\n unsubscribeNextListRefresh = handleNext(smoothScrollTargetReached, () => {\n retry(listChanged);\n });\n } else {\n unsubscribeNextListRefresh = handleNext(pipe(listRefresh, watchChangesFor(150)), retry);\n }\n cleartTimeoutRef = setTimeout(() => {\n cleanup();\n }, 1200);\n publish(scrollingInProgress, true);\n log2(\"scrolling from index to\", { index, top, behavior }, LogLevel.DEBUG);\n return { top, behavior };\n }\n )\n ),\n scrollTo\n );\n return {\n scrollToIndex,\n scrollTargetReached,\n topListHeight\n };\n },\n tup(sizeSystem, domIOSystem, loggerSystem),\n { singleton: true }\n);\nfunction watchChangesFor(limit) {\n return (done) => {\n const timeoutRef = setTimeout(() => {\n done(false);\n }, limit);\n return (value) => {\n if (value) {\n done(true);\n clearTimeout(timeoutRef);\n }\n };\n };\n}\nconst UP = \"up\";\nconst DOWN = \"down\";\nconst NONE$1 = \"none\";\nconst INITIAL_BOTTOM_STATE = {\n atBottom: false,\n notAtBottomBecause: \"NOT_SHOWING_LAST_ITEM\",\n state: {\n offsetBottom: 0,\n scrollTop: 0,\n viewportHeight: 0,\n scrollHeight: 0\n }\n};\nconst DEFAULT_AT_TOP_THRESHOLD = 0;\nconst stateFlagsSystem = system(([{ scrollContainerState, scrollTop, viewportHeight, headerHeight, footerHeight, scrollBy }]) => {\n const isAtBottom = statefulStream(false);\n const isAtTop = statefulStream(true);\n const atBottomStateChange = stream();\n const atTopStateChange = stream();\n const atBottomThreshold = statefulStream(4);\n const atTopThreshold = statefulStream(DEFAULT_AT_TOP_THRESHOLD);\n const isScrolling = statefulStreamFromEmitter(\n pipe(\n merge(pipe(duc(scrollTop), skip(1), mapTo(true)), pipe(duc(scrollTop), skip(1), mapTo(false), debounceTime(100))),\n distinctUntilChanged()\n ),\n false\n );\n const isScrollingBy = statefulStreamFromEmitter(\n pipe(merge(pipe(scrollBy, mapTo(true)), pipe(scrollBy, mapTo(false), debounceTime(200))), distinctUntilChanged()),\n false\n );\n connect(\n pipe(\n combineLatest(duc(scrollTop), duc(atTopThreshold)),\n map(([top, atTopThreshold2]) => top <= atTopThreshold2),\n distinctUntilChanged()\n ),\n isAtTop\n );\n connect(pipe(isAtTop, throttleTime(50)), atTopStateChange);\n const atBottomState = streamFromEmitter(\n pipe(\n combineLatest(scrollContainerState, duc(viewportHeight), duc(headerHeight), duc(footerHeight), duc(atBottomThreshold)),\n scan((current, [{ scrollTop: scrollTop2, scrollHeight }, viewportHeight2, _headerHeight, _footerHeight, atBottomThreshold2]) => {\n const isAtBottom2 = scrollTop2 + viewportHeight2 - scrollHeight > -atBottomThreshold2;\n const state = {\n viewportHeight: viewportHeight2,\n scrollTop: scrollTop2,\n scrollHeight\n };\n if (isAtBottom2) {\n let atBottomBecause;\n let scrollTopDelta;\n if (scrollTop2 > current.state.scrollTop) {\n atBottomBecause = \"SCROLLED_DOWN\";\n scrollTopDelta = current.state.scrollTop - scrollTop2;\n } else {\n atBottomBecause = \"SIZE_DECREASED\";\n scrollTopDelta = current.state.scrollTop - scrollTop2 || current.scrollTopDelta;\n }\n return {\n atBottom: true,\n state,\n atBottomBecause,\n scrollTopDelta\n };\n }\n let notAtBottomBecause;\n if (state.scrollHeight > current.state.scrollHeight) {\n notAtBottomBecause = \"SIZE_INCREASED\";\n } else if (viewportHeight2 < current.state.viewportHeight) {\n notAtBottomBecause = \"VIEWPORT_HEIGHT_DECREASING\";\n } else if (scrollTop2 < current.state.scrollTop) {\n notAtBottomBecause = \"SCROLLING_UPWARDS\";\n } else {\n notAtBottomBecause = \"NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM\";\n }\n return {\n atBottom: false,\n notAtBottomBecause,\n state\n };\n }, INITIAL_BOTTOM_STATE),\n distinctUntilChanged((prev, next) => {\n return prev && prev.atBottom === next.atBottom;\n })\n )\n );\n const lastJumpDueToItemResize = statefulStreamFromEmitter(\n pipe(\n scrollContainerState,\n scan(\n (current, { scrollTop: scrollTop2, scrollHeight, viewportHeight: viewportHeight2 }) => {\n if (!approximatelyEqual(current.scrollHeight, scrollHeight)) {\n const atBottom = scrollHeight - (scrollTop2 + viewportHeight2) < 1;\n if (current.scrollTop !== scrollTop2 && atBottom) {\n return {\n scrollHeight,\n scrollTop: scrollTop2,\n jump: current.scrollTop - scrollTop2,\n changed: true\n };\n } else {\n return {\n scrollHeight,\n scrollTop: scrollTop2,\n jump: 0,\n changed: true\n };\n }\n } else {\n return {\n scrollTop: scrollTop2,\n scrollHeight,\n jump: 0,\n changed: false\n };\n }\n },\n { scrollHeight: 0, jump: 0, scrollTop: 0, changed: false }\n ),\n filter((value) => value.changed),\n map((value) => value.jump)\n ),\n 0\n );\n connect(\n pipe(\n atBottomState,\n map((state) => state.atBottom)\n ),\n isAtBottom\n );\n connect(pipe(isAtBottom, throttleTime(50)), atBottomStateChange);\n const scrollDirection = statefulStream(DOWN);\n connect(\n pipe(\n scrollContainerState,\n map(({ scrollTop: scrollTop2 }) => scrollTop2),\n distinctUntilChanged(),\n scan(\n (acc, scrollTop2) => {\n if (getValue(isScrollingBy)) {\n return { direction: acc.direction, prevScrollTop: scrollTop2 };\n }\n return { direction: scrollTop2 < acc.prevScrollTop ? UP : DOWN, prevScrollTop: scrollTop2 };\n },\n { direction: DOWN, prevScrollTop: 0 }\n ),\n map((value) => value.direction)\n ),\n scrollDirection\n );\n connect(pipe(scrollContainerState, throttleTime(50), mapTo(NONE$1)), scrollDirection);\n const scrollVelocity = statefulStream(0);\n connect(\n pipe(\n isScrolling,\n filter((value) => !value),\n // eslint-disable-next-line @typescript-eslint/no-unsafe-argument\n mapTo(0)\n ),\n scrollVelocity\n );\n connect(\n pipe(\n scrollTop,\n throttleTime(100),\n withLatestFrom(isScrolling),\n filter(([_, isScrolling2]) => !!isScrolling2),\n scan(([_, prev], [next]) => [prev, next], [0, 0]),\n map(([prev, next]) => next - prev)\n ),\n scrollVelocity\n );\n return {\n isScrolling,\n isAtTop,\n isAtBottom,\n atBottomState,\n atTopStateChange,\n atBottomStateChange,\n scrollDirection,\n atBottomThreshold,\n atTopThreshold,\n scrollVelocity,\n lastJumpDueToItemResize\n };\n}, tup(domIOSystem));\nconst propsReadySystem = system(\n ([{ log }]) => {\n const propsReady = statefulStream(false);\n const didMount = streamFromEmitter(\n pipe(\n propsReady,\n filter((ready) => ready),\n distinctUntilChanged()\n )\n );\n subscribe(propsReady, (value) => {\n value && getValue(log)(\"props updated\", {}, LogLevel.DEBUG);\n });\n return { propsReady, didMount };\n },\n tup(loggerSystem),\n { singleton: true }\n);\nfunction skipFrames(frameCount, callback) {\n if (frameCount == 0) {\n callback();\n } else {\n requestAnimationFrame(() => skipFrames(frameCount - 1, callback));\n }\n}\nfunction getInitialTopMostItemIndexNumber(location, totalCount) {\n const lastIndex = totalCount - 1;\n const index = typeof location === \"number\" ? location : location.index === \"LAST\" ? lastIndex : location.index;\n return index;\n}\nconst initialTopMostItemIndexSystem = system(\n ([{ sizes, listRefresh, defaultItemSize }, { scrollTop }, { scrollToIndex, scrollTargetReached }, { didMount }]) => {\n const scrolledToInitialItem = statefulStream(true);\n const initialTopMostItemIndex = statefulStream(0);\n const initialItemFinalLocationReached = statefulStream(true);\n connect(\n pipe(\n didMount,\n withLatestFrom(initialTopMostItemIndex),\n filter(([_, location]) => !!location),\n mapTo(false)\n ),\n scrolledToInitialItem\n );\n connect(\n pipe(\n didMount,\n withLatestFrom(initialTopMostItemIndex),\n filter(([_, location]) => !!location),\n mapTo(false)\n ),\n initialItemFinalLocationReached\n );\n subscribe(\n pipe(\n combineLatest(listRefresh, didMount),\n withLatestFrom(scrolledToInitialItem, sizes, defaultItemSize, initialItemFinalLocationReached),\n filter(([[, didMount2], scrolledToInitialItem2, { sizeTree }, defaultItemSize2, scrollScheduled]) => {\n return didMount2 && (!empty(sizeTree) || isDefined(defaultItemSize2)) && !scrolledToInitialItem2 && !scrollScheduled;\n }),\n withLatestFrom(initialTopMostItemIndex)\n ),\n ([, initialTopMostItemIndex2]) => {\n handleNext(scrollTargetReached, () => {\n publish(initialItemFinalLocationReached, true);\n });\n skipFrames(4, () => {\n handleNext(scrollTop, () => {\n publish(scrolledToInitialItem, true);\n });\n publish(scrollToIndex, initialTopMostItemIndex2);\n });\n }\n );\n return {\n scrolledToInitialItem,\n initialTopMostItemIndex,\n initialItemFinalLocationReached\n };\n },\n tup(sizeSystem, domIOSystem, scrollToIndexSystem, propsReadySystem),\n { singleton: true }\n);\nfunction normalizeFollowOutput(follow) {\n if (!follow) {\n return false;\n }\n return follow === \"smooth\" ? \"smooth\" : \"auto\";\n}\nconst behaviorFromFollowOutput = (follow, isAtBottom) => {\n if (typeof follow === \"function\") {\n return normalizeFollowOutput(follow(isAtBottom));\n }\n return isAtBottom && normalizeFollowOutput(follow);\n};\nconst followOutputSystem = system(\n ([\n { totalCount, listRefresh },\n { isAtBottom, atBottomState },\n { scrollToIndex },\n { scrolledToInitialItem },\n { propsReady, didMount },\n { log },\n { scrollingInProgress }\n ]) => {\n const followOutput = statefulStream(false);\n const autoscrollToBottom = stream();\n let pendingScrollHandle = null;\n function scrollToBottom(followOutputBehavior) {\n publish(scrollToIndex, {\n index: \"LAST\",\n align: \"end\",\n behavior: followOutputBehavior\n });\n }\n subscribe(\n pipe(\n combineLatest(pipe(duc(totalCount), skip(1)), didMount),\n withLatestFrom(duc(followOutput), isAtBottom, scrolledToInitialItem, scrollingInProgress),\n map(([[totalCount2, didMount2], followOutput2, isAtBottom2, scrolledToInitialItem2, scrollingInProgress2]) => {\n let shouldFollow = didMount2 && scrolledToInitialItem2;\n let followOutputBehavior = \"auto\";\n if (shouldFollow) {\n followOutputBehavior = behaviorFromFollowOutput(followOutput2, isAtBottom2 || scrollingInProgress2);\n shouldFollow = shouldFollow && !!followOutputBehavior;\n }\n return { totalCount: totalCount2, shouldFollow, followOutputBehavior };\n }),\n filter(({ shouldFollow }) => shouldFollow)\n ),\n ({ totalCount: totalCount2, followOutputBehavior }) => {\n if (pendingScrollHandle) {\n pendingScrollHandle();\n pendingScrollHandle = null;\n }\n pendingScrollHandle = handleNext(listRefresh, () => {\n getValue(log)(\"following output to \", { totalCount: totalCount2 }, LogLevel.DEBUG);\n scrollToBottom(followOutputBehavior);\n pendingScrollHandle = null;\n });\n }\n );\n function trapNextSizeIncrease(followOutput2) {\n const cancel = handleNext(atBottomState, (state) => {\n if (followOutput2 && !state.atBottom && state.notAtBottomBecause === \"SIZE_INCREASED\" && !pendingScrollHandle) {\n getValue(log)(\"scrolling to bottom due to increased size\", {}, LogLevel.DEBUG);\n scrollToBottom(\"auto\");\n }\n });\n setTimeout(cancel, 100);\n }\n subscribe(\n pipe(\n combineLatest(duc(followOutput), totalCount, propsReady),\n filter(([follow, , ready]) => follow && ready),\n scan(\n ({ value }, [, next]) => {\n return { refreshed: value === next, value: next };\n },\n { refreshed: false, value: 0 }\n ),\n filter(({ refreshed }) => refreshed),\n withLatestFrom(followOutput, totalCount)\n ),\n ([, followOutput2]) => {\n if (getValue(scrolledToInitialItem)) {\n trapNextSizeIncrease(followOutput2 !== false);\n }\n }\n );\n subscribe(autoscrollToBottom, () => {\n trapNextSizeIncrease(getValue(followOutput) !== false);\n });\n subscribe(combineLatest(duc(followOutput), atBottomState), ([followOutput2, state]) => {\n if (followOutput2 && !state.atBottom && state.notAtBottomBecause === \"VIEWPORT_HEIGHT_DECREASING\") {\n scrollToBottom(\"auto\");\n }\n });\n return { followOutput, autoscrollToBottom };\n },\n tup(sizeSystem, stateFlagsSystem, scrollToIndexSystem, initialTopMostItemIndexSystem, propsReadySystem, loggerSystem, domIOSystem)\n);\nfunction groupCountsToIndicesAndCount(counts) {\n return counts.reduce(\n (acc, groupCount) => {\n acc.groupIndices.push(acc.totalCount);\n acc.totalCount += groupCount + 1;\n return acc;\n },\n {\n totalCount: 0,\n groupIndices: []\n }\n );\n}\nconst groupedListSystem = system(([{ totalCount, groupIndices, sizes }, { scrollTop, headerHeight }]) => {\n const groupCounts = stream();\n const topItemsIndexes = stream();\n const groupIndicesAndCount = streamFromEmitter(pipe(groupCounts, map(groupCountsToIndicesAndCount)));\n connect(\n pipe(\n groupIndicesAndCount,\n map((value) => value.totalCount)\n ),\n totalCount\n );\n connect(\n pipe(\n groupIndicesAndCount,\n map((value) => value.groupIndices)\n ),\n groupIndices\n );\n connect(\n pipe(\n combineLatest(scrollTop, sizes, headerHeight),\n filter(([_, sizes2]) => hasGroups(sizes2)),\n map(([scrollTop2, state, headerHeight2]) => findMaxKeyValue(state.groupOffsetTree, Math.max(scrollTop2 - headerHeight2, 0), \"v\")[0]),\n distinctUntilChanged(),\n map((index) => [index])\n ),\n topItemsIndexes\n );\n return { groupCounts, topItemsIndexes };\n}, tup(sizeSystem, domIOSystem));\nfunction tupleComparator(prev, current) {\n return !!(prev && prev[0] === current[0] && prev[1] === current[1]);\n}\nfunction rangeComparator(prev, next) {\n return !!(prev && prev.startIndex === next.startIndex && prev.endIndex === next.endIndex);\n}\nconst TOP = \"top\";\nconst BOTTOM = \"bottom\";\nconst NONE = \"none\";\nfunction getOverscan(overscan, end, direction) {\n if (typeof overscan === \"number\") {\n return direction === UP && end === TOP || direction === DOWN && end === BOTTOM ? overscan : 0;\n } else {\n if (direction === UP) {\n return end === TOP ? overscan.main : overscan.reverse;\n } else {\n return end === BOTTOM ? overscan.main : overscan.reverse;\n }\n }\n}\nfunction getViewportIncrease(value, end) {\n return typeof value === \"number\" ? value : value[end] || 0;\n}\nconst sizeRangeSystem = system(\n ([{ scrollTop, viewportHeight, deviation, headerHeight, fixedHeaderHeight }]) => {\n const listBoundary = stream();\n const topListHeight = statefulStream(0);\n const increaseViewportBy = statefulStream(0);\n const overscan = statefulStream(0);\n const visibleRange = statefulStreamFromEmitter(\n pipe(\n combineLatest(\n duc(scrollTop),\n duc(viewportHeight),\n duc(headerHeight),\n duc(listBoundary, tupleComparator),\n duc(overscan),\n duc(topListHeight),\n duc(fixedHeaderHeight),\n duc(deviation),\n duc(increaseViewportBy)\n ),\n map(\n ([\n scrollTop2,\n viewportHeight2,\n headerHeight2,\n [listTop, listBottom],\n overscan2,\n topListHeight2,\n fixedHeaderHeight2,\n deviation2,\n increaseViewportBy2\n ]) => {\n const top = scrollTop2 - deviation2;\n const stickyHeaderHeight = topListHeight2 + fixedHeaderHeight2;\n const headerVisible = Math.max(headerHeight2 - top, 0);\n let direction = NONE;\n const topViewportAddition = getViewportIncrease(increaseViewportBy2, TOP);\n const bottomViewportAddition = getViewportIncrease(increaseViewportBy2, BOTTOM);\n listTop -= deviation2;\n listTop += headerHeight2 + fixedHeaderHeight2;\n listBottom += headerHeight2 + fixedHeaderHeight2;\n listBottom -= deviation2;\n if (listTop > scrollTop2 + stickyHeaderHeight - topViewportAddition) {\n direction = UP;\n }\n if (listBottom < scrollTop2 - headerVisible + viewportHeight2 + bottomViewportAddition) {\n direction = DOWN;\n }\n if (direction !== NONE) {\n return [\n Math.max(top - headerHeight2 - getOverscan(overscan2, TOP, direction) - topViewportAddition, 0),\n top - headerVisible - fixedHeaderHeight2 + viewportHeight2 + getOverscan(overscan2, BOTTOM, direction) + bottomViewportAddition\n ];\n }\n return null;\n }\n ),\n filter((value) => value != null),\n distinctUntilChanged(tupleComparator)\n ),\n [0, 0]\n );\n return {\n // input\n listBoundary,\n overscan,\n topListHeight,\n increaseViewportBy,\n // output\n visibleRange\n };\n },\n tup(domIOSystem),\n { singleton: true }\n);\nfunction probeItemSet(index, sizes, data) {\n if (hasGroups(sizes)) {\n const itemIndex = originalIndexFromItemIndex(index, sizes);\n const groupIndex = findMaxKeyValue(sizes.groupOffsetTree, itemIndex)[0];\n return [\n { index: groupIndex, size: 0, offset: 0 },\n { index: itemIndex, size: 0, offset: 0, data: data && data[0] }\n ];\n }\n return [{ index, size: 0, offset: 0, data: data && data[0] }];\n}\nconst EMPTY_LIST_STATE = {\n items: [],\n topItems: [],\n offsetTop: 0,\n offsetBottom: 0,\n top: 0,\n bottom: 0,\n topListHeight: 0,\n totalCount: 0,\n firstItemIndex: 0\n};\nfunction transposeItems(items, sizes, firstItemIndex) {\n if (items.length === 0) {\n return [];\n }\n if (!hasGroups(sizes)) {\n return items.map((item) => ({ ...item, index: item.index + firstItemIndex, originalIndex: item.index }));\n }\n const startIndex = items[0].index;\n const endIndex = items[items.length - 1].index;\n const transposedItems = [];\n const groupRanges = rangesWithin(sizes.groupOffsetTree, startIndex, endIndex);\n let currentRange = void 0;\n let currentGroupIndex = 0;\n for (const item of items) {\n if (!currentRange || currentRange.end < item.index) {\n currentRange = groupRanges.shift();\n currentGroupIndex = sizes.groupIndices.indexOf(currentRange.start);\n }\n let transposedItem;\n if (item.index === currentRange.start) {\n transposedItem = {\n type: \"group\",\n index: currentGroupIndex\n };\n } else {\n transposedItem = {\n index: item.index - (currentGroupIndex + 1) + firstItemIndex,\n groupIndex: currentGroupIndex\n };\n }\n transposedItems.push({\n ...transposedItem,\n size: item.size,\n offset: item.offset,\n originalIndex: item.index,\n data: item.data\n });\n }\n return transposedItems;\n}\nfunction buildListState(items, topItems, totalCount, gap, sizes, firstItemIndex) {\n const { lastSize, lastOffset, lastIndex } = sizes;\n let offsetTop = 0;\n let bottom = 0;\n if (items.length > 0) {\n offsetTop = items[0].offset;\n const lastItem = items[items.length - 1];\n bottom = lastItem.offset + lastItem.size;\n }\n const itemCount = totalCount - lastIndex;\n const total = lastOffset + itemCount * lastSize + (itemCount - 1) * gap;\n const top = offsetTop;\n const offsetBottom = total - bottom;\n return {\n items: transposeItems(items, sizes, firstItemIndex),\n topItems: transposeItems(topItems, sizes, firstItemIndex),\n topListHeight: topItems.reduce((height, item) => item.size + height, 0),\n offsetTop,\n offsetBottom,\n top,\n bottom,\n totalCount,\n firstItemIndex\n };\n}\nfunction buildListStateFromItemCount(itemCount, initialTopMostItemIndex, sizes, firstItemIndex, gap, data) {\n let includedGroupsCount = 0;\n if (sizes.groupIndices.length > 0) {\n for (const index of sizes.groupIndices) {\n if (index - includedGroupsCount >= itemCount) {\n break;\n }\n includedGroupsCount++;\n }\n }\n const adjustedCount = itemCount + includedGroupsCount;\n const initialTopMostItemIndexNumber = getInitialTopMostItemIndexNumber(initialTopMostItemIndex, adjustedCount);\n const items = Array.from({ length: adjustedCount }).map((_, index) => ({\n index: index + initialTopMostItemIndexNumber,\n size: 0,\n offset: 0,\n data: data[index + initialTopMostItemIndexNumber]\n }));\n return buildListState(items, [], adjustedCount, gap, sizes, firstItemIndex);\n}\nconst listStateSystem = system(\n ([\n { sizes, totalCount, data, firstItemIndex, gap },\n groupedListSystem2,\n { visibleRange, listBoundary, topListHeight: rangeTopListHeight },\n { scrolledToInitialItem, initialTopMostItemIndex },\n { topListHeight },\n stateFlags,\n { didMount },\n { recalcInProgress }\n ]) => {\n const topItemsIndexes = statefulStream([]);\n const initialItemCount = statefulStream(0);\n const itemsRendered = stream();\n connect(groupedListSystem2.topItemsIndexes, topItemsIndexes);\n const listState = statefulStreamFromEmitter(\n pipe(\n combineLatest(\n didMount,\n recalcInProgress,\n duc(visibleRange, tupleComparator),\n duc(totalCount),\n duc(sizes),\n duc(initialTopMostItemIndex),\n scrolledToInitialItem,\n duc(topItemsIndexes),\n duc(firstItemIndex),\n duc(gap),\n data\n ),\n filter(([mount, recalcInProgress2, , totalCount2, , , , , , , data2]) => {\n const dataChangeInProgress = data2 && data2.length !== totalCount2;\n return mount && !recalcInProgress2 && !dataChangeInProgress;\n }),\n map(\n ([\n ,\n ,\n [startOffset, endOffset],\n totalCount2,\n sizes2,\n initialTopMostItemIndex2,\n scrolledToInitialItem2,\n topItemsIndexes2,\n firstItemIndex2,\n gap2,\n data2\n ]) => {\n const sizesValue = sizes2;\n const { sizeTree, offsetTree } = sizesValue;\n const initialItemCountValue = getValue(initialItemCount);\n if (totalCount2 === 0) {\n return { ...EMPTY_LIST_STATE, totalCount: totalCount2 };\n }\n if (startOffset === 0 && endOffset === 0) {\n if (initialItemCountValue === 0) {\n return { ...EMPTY_LIST_STATE, totalCount: totalCount2 };\n } else {\n return buildListStateFromItemCount(initialItemCountValue, initialTopMostItemIndex2, sizes2, firstItemIndex2, gap2, data2 || []);\n }\n }\n if (empty(sizeTree)) {\n if (initialItemCountValue > 0) {\n return null;\n }\n const state = buildListState(\n probeItemSet(getInitialTopMostItemIndexNumber(initialTopMostItemIndex2, totalCount2), sizesValue, data2),\n [],\n totalCount2,\n gap2,\n sizesValue,\n firstItemIndex2\n );\n return state;\n }\n const topItems = [];\n if (topItemsIndexes2.length > 0) {\n const startIndex = topItemsIndexes2[0];\n const endIndex = topItemsIndexes2[topItemsIndexes2.length - 1];\n let offset = 0;\n for (const range of rangesWithin(sizeTree, startIndex, endIndex)) {\n const size = range.value;\n const rangeStartIndex = Math.max(range.start, startIndex);\n const rangeEndIndex = Math.min(range.end, endIndex);\n for (let i = rangeStartIndex; i <= rangeEndIndex; i++) {\n topItems.push({ index: i, size, offset, data: data2 && data2[i] });\n offset += size;\n }\n }\n }\n if (!scrolledToInitialItem2) {\n return buildListState([], topItems, totalCount2, gap2, sizesValue, firstItemIndex2);\n }\n const minStartIndex = topItemsIndexes2.length > 0 ? topItemsIndexes2[topItemsIndexes2.length - 1] + 1 : 0;\n const offsetPointRanges = rangesWithinOffsets(offsetTree, startOffset, endOffset, minStartIndex);\n if (offsetPointRanges.length === 0) {\n return null;\n }\n const maxIndex = totalCount2 - 1;\n const items = tap([], (result) => {\n for (const range of offsetPointRanges) {\n const point = range.value;\n let offset = point.offset;\n let rangeStartIndex = range.start;\n const size = point.size;\n if (point.offset < startOffset) {\n rangeStartIndex += Math.floor((startOffset - point.offset + gap2) / (size + gap2));\n const itemCount = rangeStartIndex - range.start;\n offset += itemCount * size + itemCount * gap2;\n }\n if (rangeStartIndex < minStartIndex) {\n offset += (minStartIndex - rangeStartIndex) * size;\n rangeStartIndex = minStartIndex;\n }\n const endIndex = Math.min(range.end, maxIndex);\n for (let i = rangeStartIndex; i <= endIndex; i++) {\n if (offset >= endOffset) {\n break;\n }\n result.push({ index: i, size, offset, data: data2 && data2[i] });\n offset += size + gap2;\n }\n }\n });\n return buildListState(items, topItems, totalCount2, gap2, sizesValue, firstItemIndex2);\n }\n ),\n //@ts-expect-error filter needs to be fixed\n filter((value) => value !== null),\n distinctUntilChanged()\n ),\n EMPTY_LIST_STATE\n );\n connect(\n pipe(\n data,\n filter(isDefined),\n map((data2) => data2 == null ? void 0 : data2.length)\n ),\n totalCount\n );\n connect(\n pipe(\n listState,\n map((value) => value.topListHeight)\n ),\n topListHeight\n );\n connect(topListHeight, rangeTopListHeight);\n connect(\n pipe(\n listState,\n map((state) => [state.top, state.bottom])\n ),\n listBoundary\n );\n connect(\n pipe(\n listState,\n map((state) => state.items)\n ),\n itemsRendered\n );\n const endReached = streamFromEmitter(\n pipe(\n listState,\n filter(({ items }) => items.length > 0),\n withLatestFrom(totalCount, data),\n filter(([{ items }, totalCount2]) => items[items.length - 1].originalIndex === totalCount2 - 1),\n map(([, totalCount2, data2]) => [totalCount2 - 1, data2]),\n distinctUntilChanged(tupleComparator),\n map(([count]) => count)\n )\n );\n const startReached = streamFromEmitter(\n pipe(\n listState,\n throttleTime(200),\n filter(({ items, topItems }) => {\n return items.length > 0 && items[0].originalIndex === topItems.length;\n }),\n map(({ items }) => items[0].index),\n distinctUntilChanged()\n )\n );\n const rangeChanged = streamFromEmitter(\n pipe(\n listState,\n filter(({ items }) => items.length > 0),\n map(({ items }) => {\n let startIndex = 0;\n let endIndex = items.length - 1;\n while (items[startIndex].type === \"group\" && startIndex < endIndex) {\n startIndex++;\n }\n while (items[endIndex].type === \"group\" && endIndex > startIndex) {\n endIndex--;\n }\n return {\n startIndex: items[startIndex].index,\n endIndex: items[endIndex].index\n };\n }),\n distinctUntilChanged(rangeComparator)\n )\n );\n return { listState, topItemsIndexes, endReached, startReached, rangeChanged, itemsRendered, initialItemCount, ...stateFlags };\n },\n tup(\n sizeSystem,\n groupedListSystem,\n sizeRangeSystem,\n initialTopMostItemIndexSystem,\n scrollToIndexSystem,\n stateFlagsSystem,\n propsReadySystem,\n recalcSystem\n ),\n { singleton: true }\n);\nconst initialItemCountSystem = system(\n ([{ sizes, firstItemIndex, data, gap }, { initialTopMostItemIndex }, { initialItemCount, listState }, { didMount }]) => {\n connect(\n pipe(\n didMount,\n withLatestFrom(initialItemCount),\n filter(([, count]) => count !== 0),\n withLatestFrom(initialTopMostItemIndex, sizes, firstItemIndex, gap, data),\n map(([[, count], initialTopMostItemIndexValue, sizes2, firstItemIndex2, gap2, data2 = []]) => {\n return buildListStateFromItemCount(count, initialTopMostItemIndexValue, sizes2, firstItemIndex2, gap2, data2);\n })\n ),\n listState\n );\n return {};\n },\n tup(sizeSystem, initialTopMostItemIndexSystem, listStateSystem, propsReadySystem),\n { singleton: true }\n);\nconst scrollSeekSystem = system(\n ([{ scrollVelocity }]) => {\n const isSeeking = statefulStream(false);\n const rangeChanged = stream();\n const scrollSeekConfiguration = statefulStream(false);\n connect(\n pipe(\n scrollVelocity,\n withLatestFrom(scrollSeekConfiguration, isSeeking, rangeChanged),\n filter(([_, config]) => !!config),\n map(([speed, config, isSeeking2, range]) => {\n const { exit, enter } = config;\n if (isSeeking2) {\n if (exit(speed, range)) {\n return false;\n }\n } else {\n if (enter(speed, range)) {\n return true;\n }\n }\n return isSeeking2;\n }),\n distinctUntilChanged()\n ),\n isSeeking\n );\n subscribe(\n pipe(combineLatest(isSeeking, scrollVelocity, rangeChanged), withLatestFrom(scrollSeekConfiguration)),\n ([[isSeeking2, velocity, range], config]) => isSeeking2 && config && config.change && config.change(velocity, range)\n );\n return { isSeeking, scrollSeekConfiguration, scrollVelocity, scrollSeekRangeChanged: rangeChanged };\n },\n tup(stateFlagsSystem),\n { singleton: true }\n);\nconst topItemCountSystem = system(([{ topItemsIndexes }]) => {\n const topItemCount = statefulStream(0);\n connect(\n pipe(\n topItemCount,\n filter((length) => length >= 0),\n map((length) => Array.from({ length }).map((_, index) => index))\n ),\n topItemsIndexes\n );\n return { topItemCount };\n}, tup(listStateSystem));\nconst totalListHeightSystem = system(\n ([{ footerHeight, headerHeight, fixedHeaderHeight, fixedFooterHeight }, { listState }]) => {\n const totalListHeightChanged = stream();\n const totalListHeight = statefulStreamFromEmitter(\n pipe(\n combineLatest(footerHeight, fixedFooterHeight, headerHeight, fixedHeaderHeight, listState),\n map(([footerHeight2, fixedFooterHeight2, headerHeight2, fixedHeaderHeight2, listState2]) => {\n return footerHeight2 + fixedFooterHeight2 + headerHeight2 + fixedHeaderHeight2 + listState2.offsetBottom + listState2.bottom;\n })\n ),\n 0\n );\n connect(duc(totalListHeight), totalListHeightChanged);\n return { totalListHeight, totalListHeightChanged };\n },\n tup(domIOSystem, listStateSystem),\n { singleton: true }\n);\nfunction simpleMemoize(func) {\n let called = false;\n let result;\n return () => {\n if (!called) {\n called = true;\n result = func();\n }\n return result;\n };\n}\nconst isMobileSafari = simpleMemoize(() => {\n return /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.test(navigator.userAgent);\n});\nconst upwardScrollFixSystem = system(\n ([\n { scrollBy, scrollTop, deviation, scrollingInProgress },\n { isScrolling, isAtBottom, scrollDirection, lastJumpDueToItemResize },\n { listState },\n { beforeUnshiftWith, shiftWithOffset, sizes, gap },\n { log },\n { recalcInProgress }\n ]) => {\n const deviationOffset = streamFromEmitter(\n pipe(\n listState,\n withLatestFrom(lastJumpDueToItemResize),\n scan(\n ([, prevItems, prevTotalCount, prevTotalHeight], [{ items, totalCount, bottom, offsetBottom }, lastJumpDueToItemResize2]) => {\n const totalHeight = bottom + offsetBottom;\n let newDev = 0;\n if (prevTotalCount === totalCount) {\n if (prevItems.length > 0 && items.length > 0) {\n const atStart = items[0].originalIndex === 0 && prevItems[0].originalIndex === 0;\n if (!atStart) {\n newDev = totalHeight - prevTotalHeight;\n if (newDev !== 0) {\n newDev += lastJumpDueToItemResize2;\n }\n }\n }\n }\n return [newDev, items, totalCount, totalHeight];\n },\n [0, [], 0, 0]\n ),\n filter(([amount]) => amount !== 0),\n withLatestFrom(scrollTop, scrollDirection, scrollingInProgress, isAtBottom, log, recalcInProgress),\n filter(([, scrollTop2, scrollDirection2, scrollingInProgress2, , , recalcInProgress2]) => {\n return !recalcInProgress2 && !scrollingInProgress2 && scrollTop2 !== 0 && scrollDirection2 === UP;\n }),\n map(([[amount], , , , , log2]) => {\n log2(\"Upward scrolling compensation\", { amount }, LogLevel.DEBUG);\n return amount;\n })\n )\n );\n function scrollByWith(offset) {\n if (offset > 0) {\n publish(scrollBy, { top: -offset, behavior: \"auto\" });\n publish(deviation, 0);\n } else {\n publish(deviation, 0);\n publish(scrollBy, { top: -offset, behavior: \"auto\" });\n }\n }\n subscribe(pipe(deviationOffset, withLatestFrom(deviation, isScrolling)), ([offset, deviationAmount, isScrolling2]) => {\n if (isScrolling2 && isMobileSafari()) {\n publish(deviation, deviationAmount - offset);\n } else {\n scrollByWith(-offset);\n }\n });\n subscribe(\n pipe(\n combineLatest(statefulStreamFromEmitter(isScrolling, false), deviation, recalcInProgress),\n filter(([is, deviation2, recalc]) => !is && !recalc && deviation2 !== 0),\n map(([_, deviation2]) => deviation2),\n throttleTime(1)\n ),\n scrollByWith\n );\n connect(\n pipe(\n shiftWithOffset,\n map((offset) => {\n return { top: -offset };\n })\n ),\n scrollBy\n );\n subscribe(\n pipe(\n beforeUnshiftWith,\n withLatestFrom(sizes, gap),\n map(([offset, { lastSize: defaultItemSize, groupIndices, sizeTree }, gap2]) => {\n function getItemOffset(itemCount) {\n return itemCount * (defaultItemSize + gap2);\n }\n if (groupIndices.length === 0) {\n return getItemOffset(offset);\n } else {\n let amount = 0;\n const defaultGroupSize = find(sizeTree, 0);\n let recognizedOffsetItems = 0;\n let groupIndex = 0;\n while (recognizedOffsetItems < offset) {\n recognizedOffsetItems++;\n amount += defaultGroupSize;\n let groupItemCount = groupIndices.length === groupIndex + 1 ? Infinity : groupIndices[groupIndex + 1] - groupIndices[groupIndex] - 1;\n if (recognizedOffsetItems + groupItemCount > offset) {\n amount -= defaultGroupSize;\n groupItemCount = offset - recognizedOffsetItems + 1;\n }\n recognizedOffsetItems += groupItemCount;\n amount += getItemOffset(groupItemCount);\n groupIndex++;\n }\n return amount;\n }\n })\n ),\n (offset) => {\n publish(deviation, offset);\n requestAnimationFrame(() => {\n publish(scrollBy, { top: offset });\n requestAnimationFrame(() => {\n publish(deviation, 0);\n publish(recalcInProgress, false);\n });\n });\n }\n );\n return { deviation };\n },\n tup(domIOSystem, stateFlagsSystem, listStateSystem, sizeSystem, loggerSystem, recalcSystem)\n);\nconst initialScrollTopSystem = system(\n ([{ didMount }, { scrollTo }, { listState }]) => {\n const initialScrollTop = statefulStream(0);\n subscribe(\n pipe(\n didMount,\n withLatestFrom(initialScrollTop),\n filter(([, offset]) => offset !== 0),\n map(([, offset]) => ({ top: offset }))\n ),\n (location) => {\n handleNext(\n pipe(\n listState,\n skip(1),\n filter((state) => state.items.length > 1)\n ),\n () => {\n requestAnimationFrame(() => {\n publish(scrollTo, location);\n });\n }\n );\n }\n );\n return {\n initialScrollTop\n };\n },\n tup(propsReadySystem, domIOSystem, listStateSystem),\n { singleton: true }\n);\nconst alignToBottomSystem = system(\n ([{ viewportHeight }, { totalListHeight }]) => {\n const alignToBottom = statefulStream(false);\n const paddingTopAddition = statefulStreamFromEmitter(\n pipe(\n combineLatest(alignToBottom, viewportHeight, totalListHeight),\n filter(([enabled]) => enabled),\n map(([, viewportHeight2, totalListHeight2]) => {\n return Math.max(0, viewportHeight2 - totalListHeight2);\n }),\n throttleTime(0),\n distinctUntilChanged()\n ),\n 0\n );\n return { alignToBottom, paddingTopAddition };\n },\n tup(domIOSystem, totalListHeightSystem),\n { singleton: true }\n);\nconst windowScrollerSystem = system(([{ scrollTo, scrollContainerState }]) => {\n const windowScrollContainerState = stream();\n const windowViewportRect = stream();\n const windowScrollTo = stream();\n const useWindowScroll = statefulStream(false);\n const customScrollParent = statefulStream(void 0);\n connect(\n pipe(\n combineLatest(windowScrollContainerState, windowViewportRect),\n map(([{ viewportHeight, scrollTop: windowScrollTop, scrollHeight }, { offsetTop }]) => {\n return {\n scrollTop: Math.max(0, windowScrollTop - offsetTop),\n scrollHeight,\n viewportHeight\n };\n })\n ),\n scrollContainerState\n );\n connect(\n pipe(\n scrollTo,\n withLatestFrom(windowViewportRect),\n map(([scrollTo2, { offsetTop }]) => {\n return {\n ...scrollTo2,\n top: scrollTo2.top + offsetTop\n };\n })\n ),\n windowScrollTo\n );\n return {\n // config\n useWindowScroll,\n customScrollParent,\n // input\n windowScrollContainerState,\n windowViewportRect,\n // signals\n windowScrollTo\n };\n}, tup(domIOSystem));\nconst defaultCalculateViewLocation = ({\n itemTop: itemTop2,\n itemBottom,\n viewportTop,\n viewportBottom,\n locationParams: { behavior, align, ...rest }\n}) => {\n if (itemTop2 < viewportTop) {\n return { ...rest, behavior, align: align != null ? align : \"start\" };\n }\n if (itemBottom > viewportBottom) {\n return { ...rest, behavior, align: align != null ? align : \"end\" };\n }\n return null;\n};\nconst scrollIntoViewSystem = system(\n ([\n { sizes, totalCount, gap },\n { scrollTop, viewportHeight, headerHeight, fixedHeaderHeight, fixedFooterHeight, scrollingInProgress },\n { scrollToIndex }\n ]) => {\n const scrollIntoView = stream();\n connect(\n pipe(\n scrollIntoView,\n withLatestFrom(sizes, viewportHeight, totalCount, headerHeight, fixedHeaderHeight, fixedFooterHeight, scrollTop),\n withLatestFrom(gap),\n map(([[viewLocation, sizes2, viewportHeight2, totalCount2, headerHeight2, fixedHeaderHeight2, fixedFooterHeight2, scrollTop2], gap2]) => {\n const { done, behavior, align, calculateViewLocation = defaultCalculateViewLocation, ...rest } = viewLocation;\n const actualIndex = originalIndexFromLocation(viewLocation, sizes2, totalCount2 - 1);\n const itemTop2 = offsetOf(actualIndex, sizes2.offsetTree, gap2) + headerHeight2 + fixedHeaderHeight2;\n const itemBottom = itemTop2 + findMaxKeyValue(sizes2.sizeTree, actualIndex)[1];\n const viewportTop = scrollTop2 + fixedHeaderHeight2;\n const viewportBottom = scrollTop2 + viewportHeight2 - fixedFooterHeight2;\n const location = calculateViewLocation({\n itemTop: itemTop2,\n itemBottom,\n viewportTop,\n viewportBottom,\n locationParams: { behavior, align, ...rest }\n });\n if (location) {\n done && handleNext(\n pipe(\n scrollingInProgress,\n filter((value) => value === false),\n // skips the initial publish of false, and the cleanup call.\n // but if scrollingInProgress is true, we skip the initial publish.\n skip(getValue(scrollingInProgress) ? 1 : 2)\n ),\n done\n );\n } else {\n done && done();\n }\n return location;\n }),\n filter((value) => value !== null)\n ),\n scrollToIndex\n );\n return {\n scrollIntoView\n };\n },\n tup(sizeSystem, domIOSystem, scrollToIndexSystem, listStateSystem, loggerSystem),\n { singleton: true }\n);\nconst stateLoadSystem = system(\n ([\n { sizes, sizeRanges },\n { scrollTop, headerHeight },\n { initialTopMostItemIndex },\n { didMount },\n { useWindowScroll, windowScrollContainerState, windowViewportRect }\n ]) => {\n const getState = stream();\n const restoreStateFrom = statefulStream(void 0);\n const statefulWindowScrollContainerState = statefulStream(null);\n const statefulWindowViewportRect = statefulStream(null);\n connect(windowScrollContainerState, statefulWindowScrollContainerState);\n connect(windowViewportRect, statefulWindowViewportRect);\n subscribe(\n pipe(\n getState,\n withLatestFrom(sizes, scrollTop, useWindowScroll, statefulWindowScrollContainerState, statefulWindowViewportRect, headerHeight)\n ),\n ([callback, sizes2, scrollTop2, useWindowScroll2, windowScrollContainerState2, windowViewportRect2, headerHeight2]) => {\n const ranges = sizeTreeToRanges(sizes2.sizeTree);\n if (useWindowScroll2 && windowScrollContainerState2 !== null && windowViewportRect2 !== null) {\n scrollTop2 = windowScrollContainerState2.scrollTop - windowViewportRect2.offsetTop;\n }\n scrollTop2 -= headerHeight2;\n callback({ ranges, scrollTop: scrollTop2 });\n }\n );\n connect(pipe(restoreStateFrom, filter(isDefined), map(locationFromSnapshot)), initialTopMostItemIndex);\n connect(\n pipe(\n didMount,\n withLatestFrom(restoreStateFrom),\n filter(([, state]) => state !== void 0),\n distinctUntilChanged(),\n map(([, snapshot]) => {\n return snapshot.ranges;\n })\n ),\n sizeRanges\n );\n return {\n getState,\n restoreStateFrom\n };\n },\n tup(sizeSystem, domIOSystem, initialTopMostItemIndexSystem, propsReadySystem, windowScrollerSystem)\n);\nfunction locationFromSnapshot(snapshot) {\n return { offset: snapshot.scrollTop, index: 0, align: \"start\" };\n}\nconst featureGroup1System = system(\n ([\n sizeRange,\n initialItemCount,\n propsReady,\n scrollSeek,\n totalListHeight,\n initialScrollTopSystem2,\n alignToBottom,\n windowScroller,\n scrollIntoView,\n logger\n ]) => {\n return {\n ...sizeRange,\n ...initialItemCount,\n ...propsReady,\n ...scrollSeek,\n ...totalListHeight,\n ...initialScrollTopSystem2,\n ...alignToBottom,\n ...windowScroller,\n ...scrollIntoView,\n ...logger\n };\n },\n tup(\n sizeRangeSystem,\n initialItemCountSystem,\n propsReadySystem,\n scrollSeekSystem,\n totalListHeightSystem,\n initialScrollTopSystem,\n alignToBottomSystem,\n windowScrollerSystem,\n scrollIntoViewSystem,\n loggerSystem\n )\n);\nconst listSystem = system(\n ([\n {\n totalCount,\n sizeRanges,\n fixedItemSize,\n defaultItemSize,\n trackItemSizes,\n itemSize,\n data,\n firstItemIndex,\n groupIndices,\n statefulTotalCount,\n gap,\n sizes\n },\n { initialTopMostItemIndex, scrolledToInitialItem, initialItemFinalLocationReached },\n domIO,\n stateLoad,\n followOutput,\n { listState, topItemsIndexes, ...flags },\n { scrollToIndex },\n _,\n { topItemCount },\n { groupCounts },\n featureGroup1\n ]) => {\n connect(flags.rangeChanged, featureGroup1.scrollSeekRangeChanged);\n connect(\n pipe(\n featureGroup1.windowViewportRect,\n map((value) => value.visibleHeight)\n ),\n domIO.viewportHeight\n );\n return {\n // input\n totalCount,\n data,\n firstItemIndex,\n sizeRanges,\n initialTopMostItemIndex,\n scrolledToInitialItem,\n initialItemFinalLocationReached,\n topItemsIndexes,\n topItemCount,\n groupCounts,\n fixedItemHeight: fixedItemSize,\n defaultItemHeight: defaultItemSize,\n gap,\n ...followOutput,\n // output\n statefulTotalCount,\n listState,\n scrollToIndex,\n trackItemSizes,\n itemSize,\n groupIndices,\n // exported from stateFlagsSystem\n ...flags,\n // the bag of IO from featureGroup1System\n ...featureGroup1,\n ...domIO,\n sizes,\n ...stateLoad\n };\n },\n tup(\n sizeSystem,\n initialTopMostItemIndexSystem,\n domIOSystem,\n stateLoadSystem,\n followOutputSystem,\n listStateSystem,\n scrollToIndexSystem,\n upwardScrollFixSystem,\n topItemCountSystem,\n groupedListSystem,\n featureGroup1System\n )\n);\nconst WEBKIT_STICKY = \"-webkit-sticky\";\nconst STICKY = \"sticky\";\nconst positionStickyCssValue = simpleMemoize(() => {\n if (typeof document === \"undefined\") {\n return STICKY;\n }\n const node = document.createElement(\"div\");\n node.style.position = WEBKIT_STICKY;\n return node.style.position === WEBKIT_STICKY ? WEBKIT_STICKY : STICKY;\n});\nfunction useWindowViewportRectRef(callback, customScrollParent, skipAnimationFrame) {\n const viewportInfo = React.useRef(null);\n const calculateInfo = React.useCallback(\n (element) => {\n if (element === null || !element.offsetParent) {\n return;\n }\n const rect = element.getBoundingClientRect();\n const visibleWidth = rect.width;\n let visibleHeight, offsetTop;\n if (customScrollParent) {\n const customScrollParentRect = customScrollParent.getBoundingClientRect();\n const deltaTop = rect.top - customScrollParentRect.top;\n visibleHeight = customScrollParentRect.height - Math.max(0, deltaTop);\n offsetTop = deltaTop + customScrollParent.scrollTop;\n } else {\n visibleHeight = window.innerHeight - Math.max(0, rect.top);\n offsetTop = rect.top + window.pageYOffset;\n }\n viewportInfo.current = {\n offsetTop,\n visibleHeight,\n visibleWidth\n };\n callback(viewportInfo.current);\n },\n [callback, customScrollParent]\n );\n const { callbackRef, ref } = useSizeWithElRef(calculateInfo, true, skipAnimationFrame);\n const scrollAndResizeEventHandler = React.useCallback(() => {\n calculateInfo(ref.current);\n }, [calculateInfo, ref]);\n React.useEffect(() => {\n if (customScrollParent) {\n customScrollParent.addEventListener(\"scroll\", scrollAndResizeEventHandler);\n const observer = new ResizeObserver(() => {\n requestAnimationFrame(scrollAndResizeEventHandler);\n });\n observer.observe(customScrollParent);\n return () => {\n customScrollParent.removeEventListener(\"scroll\", scrollAndResizeEventHandler);\n observer.unobserve(customScrollParent);\n };\n } else {\n window.addEventListener(\"scroll\", scrollAndResizeEventHandler);\n window.addEventListener(\"resize\", scrollAndResizeEventHandler);\n return () => {\n window.removeEventListener(\"scroll\", scrollAndResizeEventHandler);\n window.removeEventListener(\"resize\", scrollAndResizeEventHandler);\n };\n }\n }, [scrollAndResizeEventHandler, customScrollParent]);\n return callbackRef;\n}\nconst VirtuosoMockContext = React.createContext(void 0);\nconst VirtuosoGridMockContext = React.createContext(void 0);\nfunction identity(value) {\n return value;\n}\nconst listComponentPropsSystem = /* @__PURE__ */ system(() => {\n const itemContent = statefulStream((index) => `Item ${index}`);\n const context = statefulStream(null);\n const groupContent = statefulStream((index) => `Group ${index}`);\n const components = statefulStream({});\n const computeItemKey = statefulStream(identity);\n const HeaderFooterTag = statefulStream(\"div\");\n const scrollerRef = statefulStream(noop);\n const distinctProp = (propName, defaultValue = null) => {\n return statefulStreamFromEmitter(\n pipe(\n components,\n map((components2) => components2[propName]),\n distinctUntilChanged()\n ),\n defaultValue\n );\n };\n return {\n context,\n itemContent,\n groupContent,\n components,\n computeItemKey,\n HeaderFooterTag,\n scrollerRef,\n FooterComponent: distinctProp(\"Footer\"),\n HeaderComponent: distinctProp(\"Header\"),\n TopItemListComponent: distinctProp(\"TopItemList\"),\n ListComponent: distinctProp(\"List\", \"div\"),\n ItemComponent: distinctProp(\"Item\", \"div\"),\n GroupComponent: distinctProp(\"Group\", \"div\"),\n ScrollerComponent: distinctProp(\"Scroller\", \"div\"),\n EmptyPlaceholder: distinctProp(\"EmptyPlaceholder\"),\n ScrollSeekPlaceholder: distinctProp(\"ScrollSeekPlaceholder\")\n };\n});\nconst combinedSystem$2 = /* @__PURE__ */ system(([listSystem2, propsSystem]) => {\n return { ...listSystem2, ...propsSystem };\n}, tup(listSystem, listComponentPropsSystem));\nconst DefaultScrollSeekPlaceholder$1 = ({ height }) => /* @__PURE__ */ jsx(\"div\", { style: { height } });\nconst GROUP_STYLE = { position: positionStickyCssValue(), zIndex: 1, overflowAnchor: \"none\" };\nconst ITEM_STYLE$1 = { overflowAnchor: \"none\" };\nconst HORIZONTAL_ITEM_STYLE = { ...ITEM_STYLE$1, display: \"inline-block\", height: \"100%\" };\nconst Items$1 = /* @__PURE__ */ React.memo(function VirtuosoItems({ showTopList = false }) {\n const listState = useEmitterValue$2(\"listState\");\n const sizeRanges = usePublisher$2(\"sizeRanges\");\n const useWindowScroll = useEmitterValue$2(\"useWindowScroll\");\n const customScrollParent = useEmitterValue$2(\"customScrollParent\");\n const windowScrollContainerStateCallback = usePublisher$2(\"windowScrollContainerState\");\n const _scrollContainerStateCallback = usePublisher$2(\"scrollContainerState\");\n const scrollContainerStateCallback = customScrollParent || useWindowScroll ? windowScrollContainerStateCallback : _scrollContainerStateCallback;\n const itemContent = useEmitterValue$2(\"itemContent\");\n const context = useEmitterValue$2(\"context\");\n const groupContent = useEmitterValue$2(\"groupContent\");\n const trackItemSizes = useEmitterValue$2(\"trackItemSizes\");\n const itemSize = useEmitterValue$2(\"itemSize\");\n const log = useEmitterValue$2(\"log\");\n const listGap = usePublisher$2(\"gap\");\n const horizontalDirection = useEmitterValue$2(\"horizontalDirection\");\n const { callbackRef } = useChangedListContentsSizes(\n sizeRanges,\n itemSize,\n trackItemSizes,\n showTopList ? noop : scrollContainerStateCallback,\n log,\n listGap,\n customScrollParent,\n horizontalDirection,\n useEmitterValue$2(\"skipAnimationFrameInResizeObserver\")\n );\n const [deviation, setDeviation] = React.useState(0);\n useEmitter$2(\"deviation\", (value) => {\n if (deviation !== value) {\n setDeviation(value);\n }\n });\n const EmptyPlaceholder = useEmitterValue$2(\"EmptyPlaceholder\");\n const ScrollSeekPlaceholder = useEmitterValue$2(\"ScrollSeekPlaceholder\") || DefaultScrollSeekPlaceholder$1;\n const ListComponent = useEmitterValue$2(\"ListComponent\");\n const ItemComponent = useEmitterValue$2(\"ItemComponent\");\n const GroupComponent = useEmitterValue$2(\"GroupComponent\");\n const computeItemKey = useEmitterValue$2(\"computeItemKey\");\n const isSeeking = useEmitterValue$2(\"isSeeking\");\n const hasGroups2 = useEmitterValue$2(\"groupIndices\").length > 0;\n const alignToBottom = useEmitterValue$2(\"alignToBottom\");\n const initialItemFinalLocationReached = useEmitterValue$2(\"initialItemFinalLocationReached\");\n const containerStyle = showTopList ? {} : {\n boxSizing: \"border-box\",\n ...horizontalDirection ? {\n whiteSpace: \"nowrap\",\n display: \"inline-block\",\n height: \"100%\",\n paddingLeft: listState.offsetTop,\n paddingRight: listState.offsetBottom,\n marginLeft: deviation !== 0 ? deviation : alignToBottom ? \"auto\" : 0\n } : {\n marginTop: deviation !== 0 ? deviation : alignToBottom ? \"auto\" : 0,\n paddingTop: listState.offsetTop,\n paddingBottom: listState.offsetBottom\n },\n ...initialItemFinalLocationReached ? {} : { visibility: \"hidden\" }\n };\n if (!showTopList && listState.totalCount === 0 && EmptyPlaceholder) {\n return /* @__PURE__ */ jsx(EmptyPlaceholder, { ...contextPropIfNotDomElement(EmptyPlaceholder, context) });\n }\n return /* @__PURE__ */ jsx(\n ListComponent,\n {\n ...contextPropIfNotDomElement(ListComponent, context),\n ref: callbackRef,\n style: containerStyle,\n \"data-testid\": showTopList ? \"virtuoso-top-item-list\" : \"virtuoso-item-list\",\n children: (showTopList ? listState.topItems : listState.items).map((item) => {\n const index = item.originalIndex;\n const key = computeItemKey(index + listState.firstItemIndex, item.data, context);\n if (isSeeking) {\n return /* @__PURE__ */ createElement(\n ScrollSeekPlaceholder,\n {\n ...contextPropIfNotDomElement(ScrollSeekPlaceholder, context),\n key,\n index: item.index,\n height: item.size,\n type: item.type || \"item\",\n ...item.type === \"group\" ? {} : { groupIndex: item.groupIndex }\n }\n );\n }\n if (item.type === \"group\") {\n return /* @__PURE__ */ createElement(\n GroupComponent,\n {\n ...contextPropIfNotDomElement(GroupComponent, context),\n key,\n \"data-index\": index,\n \"data-known-size\": item.size,\n \"data-item-index\": item.index,\n style: GROUP_STYLE\n },\n groupContent(item.index, context)\n );\n } else {\n return /* @__PURE__ */ createElement(\n ItemComponent,\n {\n ...contextPropIfNotDomElement(ItemComponent, context),\n ...itemPropIfNotDomElement(ItemComponent, item.data),\n key,\n \"data-index\": index,\n \"data-known-size\": item.size,\n \"data-item-index\": item.index,\n \"data-item-group-index\": item.groupIndex,\n style: horizontalDirection ? HORIZONTAL_ITEM_STYLE : ITEM_STYLE$1\n },\n hasGroups2 ? itemContent(item.index, item.groupIndex, item.data, context) : itemContent(item.index, item.data, context)\n );\n }\n })\n }\n );\n});\nconst scrollerStyle = {\n height: \"100%\",\n outline: \"none\",\n overflowY: \"auto\",\n position: \"relative\",\n WebkitOverflowScrolling: \"touch\"\n};\nconst horizontalScrollerStyle = {\n outline: \"none\",\n overflowX: \"auto\",\n position: \"relative\"\n};\nconst viewportStyle = (alignToBottom) => ({\n width: \"100%\",\n height: \"100%\",\n position: \"absolute\",\n top: 0,\n ...alignToBottom ? { display: \"flex\", flexDirection: \"column\" } : {}\n});\nconst topItemListStyle = {\n width: \"100%\",\n position: positionStickyCssValue(),\n top: 0,\n zIndex: 1\n};\nfunction contextPropIfNotDomElement(element, context) {\n if (typeof element === \"string\") {\n return void 0;\n }\n return { context };\n}\nfunction itemPropIfNotDomElement(element, item) {\n return { item: typeof element === \"string\" ? void 0 : item };\n}\nconst Header$1 = /* @__PURE__ */ React.memo(function VirtuosoHeader() {\n const Header2 = useEmitterValue$2(\"HeaderComponent\");\n const headerHeight = usePublisher$2(\"headerHeight\");\n const HeaderFooterTag = useEmitterValue$2(\"HeaderFooterTag\");\n const ref = useSize(\n React.useMemo(() => (el) => headerHeight(correctItemSize(el, \"height\")), [headerHeight]),\n true,\n useEmitterValue$2(\"skipAnimationFrameInResizeObserver\")\n );\n const context = useEmitterValue$2(\"context\");\n return Header2 ? /* @__PURE__ */ jsx(HeaderFooterTag, { ref, children: /* @__PURE__ */ jsx(Header2, { ...contextPropIfNotDomElement(Header2, context) }) }) : null;\n});\nconst Footer$1 = /* @__PURE__ */ React.memo(function VirtuosoFooter() {\n const Footer2 = useEmitterValue$2(\"FooterComponent\");\n const footerHeight = usePublisher$2(\"footerHeight\");\n const HeaderFooterTag = useEmitterValue$2(\"HeaderFooterTag\");\n const ref = useSize(\n React.useMemo(() => (el) => footerHeight(correctItemSize(el, \"height\")), [footerHeight]),\n true,\n useEmitterValue$2(\"skipAnimationFrameInResizeObserver\")\n );\n const context = useEmitterValue$2(\"context\");\n return Footer2 ? /* @__PURE__ */ jsx(HeaderFooterTag, { ref, children: /* @__PURE__ */ jsx(Footer2, { ...contextPropIfNotDomElement(Footer2, context) }) }) : null;\n});\nfunction buildScroller({ usePublisher: usePublisher2, useEmitter: useEmitter2, useEmitterValue: useEmitterValue2 }) {\n const Scroller2 = React.memo(function VirtuosoScroller({ style, children, ...props }) {\n const scrollContainerStateCallback = usePublisher2(\"scrollContainerState\");\n const ScrollerComponent = useEmitterValue2(\"ScrollerComponent\");\n const smoothScrollTargetReached = usePublisher2(\"smoothScrollTargetReached\");\n const scrollerRefCallback = useEmitterValue2(\"scrollerRef\");\n const context = useEmitterValue2(\"context\");\n const horizontalDirection = useEmitterValue2(\"horizontalDirection\") || false;\n const { scrollerRef, scrollByCallback, scrollToCallback } = useScrollTop(\n scrollContainerStateCallback,\n smoothScrollTargetReached,\n ScrollerComponent,\n scrollerRefCallback,\n void 0,\n horizontalDirection\n );\n useEmitter2(\"scrollTo\", scrollToCallback);\n useEmitter2(\"scrollBy\", scrollByCallback);\n const defaultStyle = horizontalDirection ? horizontalScrollerStyle : scrollerStyle;\n return /* @__PURE__ */ jsx(\n ScrollerComponent,\n {\n ref: scrollerRef,\n style: { ...defaultStyle, ...style },\n \"data-testid\": \"virtuoso-scroller\",\n \"data-virtuoso-scroller\": true,\n tabIndex: 0,\n ...props,\n ...contextPropIfNotDomElement(ScrollerComponent, context),\n children\n }\n );\n });\n return Scroller2;\n}\nfunction buildWindowScroller({ usePublisher: usePublisher2, useEmitter: useEmitter2, useEmitterValue: useEmitterValue2 }) {\n const Scroller2 = React.memo(function VirtuosoWindowScroller({ style, children, ...props }) {\n const scrollContainerStateCallback = usePublisher2(\"windowScrollContainerState\");\n const ScrollerComponent = useEmitterValue2(\"ScrollerComponent\");\n const smoothScrollTargetReached = usePublisher2(\"smoothScrollTargetReached\");\n const totalListHeight = useEmitterValue2(\"totalListHeight\");\n const deviation = useEmitterValue2(\"deviation\");\n const customScrollParent = useEmitterValue2(\"customScrollParent\");\n const context = useEmitterValue2(\"context\");\n const { scrollerRef, scrollByCallback, scrollToCallback } = useScrollTop(\n scrollContainerStateCallback,\n smoothScrollTargetReached,\n ScrollerComponent,\n noop,\n customScrollParent\n );\n useIsomorphicLayoutEffect(() => {\n scrollerRef.current = customScrollParent ? customScrollParent : window;\n return () => {\n scrollerRef.current = null;\n };\n }, [scrollerRef, customScrollParent]);\n useEmitter2(\"windowScrollTo\", scrollToCallback);\n useEmitter2(\"scrollBy\", scrollByCallback);\n return /* @__PURE__ */ jsx(\n ScrollerComponent,\n {\n style: { position: \"relative\", ...style, ...totalListHeight !== 0 ? { height: totalListHeight + deviation } : {} },\n \"data-virtuoso-scroller\": true,\n ...props,\n ...contextPropIfNotDomElement(ScrollerComponent, context),\n children\n }\n );\n });\n return Scroller2;\n}\nconst Viewport$2 = ({ children }) => {\n const ctx = React.useContext(VirtuosoMockContext);\n const viewportHeight = usePublisher$2(\"viewportHeight\");\n const fixedItemHeight = usePublisher$2(\"fixedItemHeight\");\n const alignToBottom = useEmitterValue$2(\"alignToBottom\");\n const horizontalDirection = useEmitterValue$2(\"horizontalDirection\");\n const viewportSizeCallbackMemo = React.useMemo(\n () => compose(viewportHeight, (el) => correctItemSize(el, horizontalDirection ? \"width\" : \"height\")),\n [viewportHeight, horizontalDirection]\n );\n const viewportRef = useSize(viewportSizeCallbackMemo, true, useEmitterValue$2(\"skipAnimationFrameInResizeObserver\"));\n React.useEffect(() => {\n if (ctx) {\n viewportHeight(ctx.viewportHeight);\n fixedItemHeight(ctx.itemHeight);\n }\n }, [ctx, viewportHeight, fixedItemHeight]);\n return /* @__PURE__ */ jsx(\"div\", { style: viewportStyle(alignToBottom), ref: viewportRef, \"data-viewport-type\": \"element\", children });\n};\nconst WindowViewport$2 = ({ children }) => {\n const ctx = React.useContext(VirtuosoMockContext);\n const windowViewportRect = usePublisher$2(\"windowViewportRect\");\n const fixedItemHeight = usePublisher$2(\"fixedItemHeight\");\n const customScrollParent = useEmitterValue$2(\"customScrollParent\");\n const viewportRef = useWindowViewportRectRef(\n windowViewportRect,\n customScrollParent,\n useEmitterValue$2(\"skipAnimationFrameInResizeObserver\")\n );\n const alignToBottom = useEmitterValue$2(\"alignToBottom\");\n React.useEffect(() => {\n if (ctx) {\n fixedItemHeight(ctx.itemHeight);\n windowViewportRect({ offsetTop: 0, visibleHeight: ctx.viewportHeight, visibleWidth: 100 });\n }\n }, [ctx, windowViewportRect, fixedItemHeight]);\n return /* @__PURE__ */ jsx(\"div\", { ref: viewportRef, style: viewportStyle(alignToBottom), \"data-viewport-type\": \"window\", children });\n};\nconst TopItemListContainer = ({ children }) => {\n const TopItemList = useEmitterValue$2(\"TopItemListComponent\") || \"div\";\n const headerHeight = useEmitterValue$2(\"headerHeight\");\n const style = { ...topItemListStyle, marginTop: `${headerHeight}px` };\n const context = useEmitterValue$2(\"context\");\n return /* @__PURE__ */ jsx(TopItemList, { style, ...contextPropIfNotDomElement(TopItemList, context), children });\n};\nconst ListRoot = /* @__PURE__ */ React.memo(function VirtuosoRoot(props) {\n const useWindowScroll = useEmitterValue$2(\"useWindowScroll\");\n const showTopList = useEmitterValue$2(\"topItemsIndexes\").length > 0;\n const customScrollParent = useEmitterValue$2(\"customScrollParent\");\n const TheScroller = customScrollParent || useWindowScroll ? WindowScroller$2 : Scroller$2;\n const TheViewport = customScrollParent || useWindowScroll ? WindowViewport$2 : Viewport$2;\n return /* @__PURE__ */ jsxs(TheScroller, { ...props, children: [\n showTopList && /* @__PURE__ */ jsx(TopItemListContainer, { children: /* @__PURE__ */ jsx(Items$1, { showTopList: true }) }),\n /* @__PURE__ */ jsxs(TheViewport, { children: [\n /* @__PURE__ */ jsx(Header$1, {}),\n /* @__PURE__ */ jsx(Items$1, {}),\n /* @__PURE__ */ jsx(Footer$1, {})\n ] })\n ] });\n});\nconst {\n Component: List,\n usePublisher: usePublisher$2,\n useEmitterValue: useEmitterValue$2,\n useEmitter: useEmitter$2\n} = /* @__PURE__ */ systemToComponent(\n combinedSystem$2,\n {\n required: {},\n optional: {\n restoreStateFrom: \"restoreStateFrom\",\n context: \"context\",\n followOutput: \"followOutput\",\n itemContent: \"itemContent\",\n groupContent: \"groupContent\",\n overscan: \"overscan\",\n increaseViewportBy: \"increaseViewportBy\",\n totalCount: \"totalCount\",\n groupCounts: \"groupCounts\",\n topItemCount: \"topItemCount\",\n firstItemIndex: \"firstItemIndex\",\n initialTopMostItemIndex: \"initialTopMostItemIndex\",\n components: \"components\",\n atBottomThreshold: \"atBottomThreshold\",\n atTopThreshold: \"atTopThreshold\",\n computeItemKey: \"computeItemKey\",\n defaultItemHeight: \"defaultItemHeight\",\n fixedItemHeight: \"fixedItemHeight\",\n itemSize: \"itemSize\",\n scrollSeekConfiguration: \"scrollSeekConfiguration\",\n headerFooterTag: \"HeaderFooterTag\",\n data: \"data\",\n initialItemCount: \"initialItemCount\",\n initialScrollTop: \"initialScrollTop\",\n alignToBottom: \"alignToBottom\",\n useWindowScroll: \"useWindowScroll\",\n customScrollParent: \"customScrollParent\",\n scrollerRef: \"scrollerRef\",\n logLevel: \"logLevel\",\n horizontalDirection: \"horizontalDirection\",\n skipAnimationFrameInResizeObserver: \"skipAnimationFrameInResizeObserver\"\n },\n methods: {\n scrollToIndex: \"scrollToIndex\",\n scrollIntoView: \"scrollIntoView\",\n scrollTo: \"scrollTo\",\n scrollBy: \"scrollBy\",\n autoscrollToBottom: \"autoscrollToBottom\",\n getState: \"getState\"\n },\n events: {\n isScrolling: \"isScrolling\",\n endReached: \"endReached\",\n startReached: \"startReached\",\n rangeChanged: \"rangeChanged\",\n atBottomStateChange: \"atBottomStateChange\",\n atTopStateChange: \"atTopStateChange\",\n totalListHeightChanged: \"totalListHeightChanged\",\n itemsRendered: \"itemsRendered\",\n groupIndices: \"groupIndices\"\n }\n },\n ListRoot\n);\nconst Scroller$2 = /* @__PURE__ */ buildScroller({ usePublisher: usePublisher$2, useEmitterValue: useEmitterValue$2, useEmitter: useEmitter$2 });\nconst WindowScroller$2 = /* @__PURE__ */ buildWindowScroller({ usePublisher: usePublisher$2, useEmitterValue: useEmitterValue$2, useEmitter: useEmitter$2 });\nconst Virtuoso = List;\nconst GroupedVirtuoso = List;\nconst INITIAL_GRID_STATE = {\n items: [],\n offsetBottom: 0,\n offsetTop: 0,\n top: 0,\n bottom: 0,\n itemHeight: 0,\n itemWidth: 0\n};\nconst PROBE_GRID_STATE = {\n items: [{ index: 0 }],\n offsetBottom: 0,\n offsetTop: 0,\n top: 0,\n bottom: 0,\n itemHeight: 0,\n itemWidth: 0\n};\nconst { round, ceil, floor, min, max } = Math;\nfunction buildProbeGridState(items) {\n return {\n ...PROBE_GRID_STATE,\n items\n };\n}\nfunction buildItems(startIndex, endIndex, data) {\n return Array.from({ length: endIndex - startIndex + 1 }).map((_, i) => {\n const dataItem = data === null ? null : data[i + startIndex];\n return { index: i + startIndex, data: dataItem };\n });\n}\nfunction gapComparator(prev, next) {\n return prev && prev.column === next.column && prev.row === next.row;\n}\nfunction dimensionComparator(prev, next) {\n return prev && prev.width === next.width && prev.height === next.height;\n}\nconst gridSystem = /* @__PURE__ */ system(\n ([\n { overscan, visibleRange, listBoundary, increaseViewportBy },\n { scrollTop, viewportHeight, scrollBy, scrollTo, smoothScrollTargetReached, scrollContainerState, footerHeight, headerHeight },\n stateFlags,\n scrollSeek,\n { propsReady, didMount },\n { windowViewportRect, useWindowScroll, customScrollParent, windowScrollContainerState, windowScrollTo },\n log\n ]) => {\n const totalCount = statefulStream(0);\n const initialItemCount = statefulStream(0);\n const gridState = statefulStream(INITIAL_GRID_STATE);\n const viewportDimensions = statefulStream({ height: 0, width: 0 });\n const itemDimensions = statefulStream({ height: 0, width: 0 });\n const scrollToIndex = stream();\n const scrollHeight = stream();\n const deviation = statefulStream(0);\n const data = statefulStream(null);\n const gap = statefulStream({ row: 0, column: 0 });\n const stateChanged = stream();\n const restoreStateFrom = stream();\n const stateRestoreInProgress = statefulStream(false);\n const initialTopMostItemIndex = statefulStream(0);\n const scrolledToInitialItem = statefulStream(true);\n const scrollScheduled = statefulStream(false);\n const horizontalDirection = statefulStream(false);\n subscribe(\n pipe(\n didMount,\n withLatestFrom(initialTopMostItemIndex),\n filter(([_, location]) => !!location)\n ),\n () => {\n publish(scrolledToInitialItem, false);\n }\n );\n subscribe(\n pipe(\n combineLatest(didMount, scrolledToInitialItem, itemDimensions, viewportDimensions, initialTopMostItemIndex, scrollScheduled),\n filter(([didMount2, scrolledToInitialItem2, itemDimensions2, viewportDimensions2, , scrollScheduled2]) => {\n return didMount2 && !scrolledToInitialItem2 && itemDimensions2.height !== 0 && viewportDimensions2.height !== 0 && !scrollScheduled2;\n })\n ),\n ([, , , , initialTopMostItemIndex2]) => {\n publish(scrollScheduled, true);\n skipFrames(1, () => {\n publish(scrollToIndex, initialTopMostItemIndex2);\n });\n handleNext(pipe(scrollTop), () => {\n publish(listBoundary, [0, 0]);\n publish(scrolledToInitialItem, true);\n });\n }\n );\n connect(\n pipe(\n restoreStateFrom,\n filter((value) => value !== void 0 && value !== null && value.scrollTop > 0),\n mapTo(0)\n ),\n initialItemCount\n );\n subscribe(\n pipe(\n didMount,\n withLatestFrom(restoreStateFrom),\n filter(([, snapshot]) => snapshot !== void 0 && snapshot !== null)\n ),\n ([, snapshot]) => {\n if (!snapshot) {\n return;\n }\n publish(viewportDimensions, snapshot.viewport), publish(itemDimensions, snapshot == null ? void 0 : snapshot.item);\n publish(gap, snapshot.gap);\n if (snapshot.scrollTop > 0) {\n publish(stateRestoreInProgress, true);\n handleNext(pipe(scrollTop, skip(1)), (_value) => {\n publish(stateRestoreInProgress, false);\n });\n publish(scrollTo, { top: snapshot.scrollTop });\n }\n }\n );\n connect(\n pipe(\n viewportDimensions,\n map(({ height }) => height)\n ),\n viewportHeight\n );\n connect(\n pipe(\n combineLatest(\n duc(viewportDimensions, dimensionComparator),\n duc(itemDimensions, dimensionComparator),\n duc(gap, (prev, next) => prev && prev.column === next.column && prev.row === next.row),\n duc(scrollTop)\n ),\n map(([viewport, item, gap2, scrollTop2]) => ({\n viewport,\n item,\n gap: gap2,\n scrollTop: scrollTop2\n }))\n ),\n stateChanged\n );\n connect(\n pipe(\n combineLatest(\n duc(totalCount),\n visibleRange,\n duc(gap, gapComparator),\n duc(itemDimensions, dimensionComparator),\n duc(viewportDimensions, dimensionComparator),\n duc(data),\n duc(initialItemCount),\n duc(stateRestoreInProgress),\n duc(scrolledToInitialItem),\n duc(initialTopMostItemIndex)\n ),\n filter(([, , , , , , , stateRestoreInProgress2]) => {\n return !stateRestoreInProgress2;\n }),\n map(\n ([\n totalCount2,\n [startOffset, endOffset],\n gap2,\n item,\n viewport,\n data2,\n initialItemCount2,\n ,\n scrolledToInitialItem2,\n initialTopMostItemIndex2\n ]) => {\n const { row: rowGap, column: columnGap } = gap2;\n const { height: itemHeight, width: itemWidth } = item;\n const { width: viewportWidth } = viewport;\n if (initialItemCount2 === 0 && (totalCount2 === 0 || viewportWidth === 0)) {\n return INITIAL_GRID_STATE;\n }\n if (itemWidth === 0) {\n const startIndex2 = getInitialTopMostItemIndexNumber(initialTopMostItemIndex2, totalCount2);\n const endIndex2 = startIndex2 + Math.max(initialItemCount2 - 1, 0);\n return buildProbeGridState(buildItems(startIndex2, endIndex2, data2));\n }\n const perRow = itemsPerRow(viewportWidth, itemWidth, columnGap);\n let startIndex;\n let endIndex;\n if (!scrolledToInitialItem2) {\n startIndex = 0;\n endIndex = -1;\n } else if (startOffset === 0 && endOffset === 0 && initialItemCount2 > 0) {\n startIndex = 0;\n endIndex = initialItemCount2 - 1;\n } else {\n startIndex = perRow * floor((startOffset + rowGap) / (itemHeight + rowGap));\n endIndex = perRow * ceil((endOffset + rowGap) / (itemHeight + rowGap)) - 1;\n endIndex = min(totalCount2 - 1, max(endIndex, perRow - 1));\n startIndex = min(endIndex, max(0, startIndex));\n }\n const items = buildItems(startIndex, endIndex, data2);\n const { top, bottom } = gridLayout(viewport, gap2, item, items);\n const rowCount = ceil(totalCount2 / perRow);\n const totalHeight = rowCount * itemHeight + (rowCount - 1) * rowGap;\n const offsetBottom = totalHeight - bottom;\n return { items, offsetTop: top, offsetBottom, top, bottom, itemHeight, itemWidth };\n }\n )\n ),\n gridState\n );\n connect(\n pipe(\n data,\n filter((data2) => data2 !== null),\n map((data2) => data2.length)\n ),\n totalCount\n );\n connect(\n pipe(\n combineLatest(viewportDimensions, itemDimensions, gridState, gap),\n filter(([viewportDimensions2, itemDimensions2, { items }]) => {\n return items.length > 0 && itemDimensions2.height !== 0 && viewportDimensions2.height !== 0;\n }),\n map(([viewportDimensions2, itemDimensions2, { items }, gap2]) => {\n const { top, bottom } = gridLayout(viewportDimensions2, gap2, itemDimensions2, items);\n return [top, bottom];\n }),\n distinctUntilChanged(tupleComparator)\n ),\n listBoundary\n );\n const hasScrolled = statefulStream(false);\n connect(\n pipe(\n scrollTop,\n withLatestFrom(hasScrolled),\n map(([scrollTop2, hasScrolled2]) => {\n return hasScrolled2 || scrollTop2 !== 0;\n })\n ),\n hasScrolled\n );\n const endReached = streamFromEmitter(\n pipe(\n combineLatest(gridState, totalCount),\n filter(([{ items }]) => items.length > 0),\n withLatestFrom(hasScrolled),\n filter(([[gridState2, totalCount2], hasScrolled2]) => {\n const lastIndex = gridState2.items[gridState2.items.length - 1].index;\n const isLastItemRendered = lastIndex === totalCount2 - 1;\n if (hasScrolled2) return isLastItemRendered;\n const isFullyRendered = gridState2.bottom > 0 && gridState2.itemHeight > 0 && gridState2.offsetBottom === 0 && gridState2.items.length === totalCount2;\n return isFullyRendered && isLastItemRendered;\n }),\n map(([[, totalCount2]]) => {\n return totalCount2 - 1;\n }),\n distinctUntilChanged()\n )\n );\n const startReached = streamFromEmitter(\n pipe(\n duc(gridState),\n filter(({ items }) => {\n return items.length > 0 && items[0].index === 0;\n }),\n // eslint-disable-next-line @typescript-eslint/no-unsafe-argument\n mapTo(0),\n distinctUntilChanged()\n )\n );\n const rangeChanged = streamFromEmitter(\n pipe(\n duc(gridState),\n withLatestFrom(stateRestoreInProgress),\n filter(([{ items }, stateRestoreInProgress2]) => items.length > 0 && !stateRestoreInProgress2),\n map(([{ items }]) => {\n return {\n startIndex: items[0].index,\n endIndex: items[items.length - 1].index\n };\n }),\n distinctUntilChanged(rangeComparator),\n throttleTime(0)\n )\n );\n connect(rangeChanged, scrollSeek.scrollSeekRangeChanged);\n connect(\n pipe(\n scrollToIndex,\n withLatestFrom(viewportDimensions, itemDimensions, totalCount, gap),\n map(([location, viewportDimensions2, itemDimensions2, totalCount2, gap2]) => {\n const normalLocation = normalizeIndexLocation(location);\n const { align, behavior, offset } = normalLocation;\n let index = normalLocation.index;\n if (index === \"LAST\") {\n index = totalCount2 - 1;\n }\n index = max(0, index, min(totalCount2 - 1, index));\n let top = itemTop(viewportDimensions2, gap2, itemDimensions2, index);\n if (align === \"end\") {\n top = round(top - viewportDimensions2.height + itemDimensions2.height);\n } else if (align === \"center\") {\n top = round(top - viewportDimensions2.height / 2 + itemDimensions2.height / 2);\n }\n if (offset) {\n top += offset;\n }\n return { top, behavior };\n })\n ),\n scrollTo\n );\n const totalListHeight = statefulStreamFromEmitter(\n pipe(\n gridState,\n map((gridState2) => {\n return gridState2.offsetBottom + gridState2.bottom;\n })\n ),\n 0\n );\n connect(\n pipe(\n windowViewportRect,\n map((viewportInfo) => ({ width: viewportInfo.visibleWidth, height: viewportInfo.visibleHeight }))\n ),\n viewportDimensions\n );\n return {\n // input\n data,\n totalCount,\n viewportDimensions,\n itemDimensions,\n scrollTop,\n scrollHeight,\n overscan,\n increaseViewportBy,\n scrollBy,\n scrollTo,\n scrollToIndex,\n smoothScrollTargetReached,\n windowViewportRect,\n windowScrollTo,\n useWindowScroll,\n customScrollParent,\n windowScrollContainerState,\n deviation,\n scrollContainerState,\n footerHeight,\n headerHeight,\n initialItemCount,\n gap,\n restoreStateFrom,\n ...scrollSeek,\n initialTopMostItemIndex,\n horizontalDirection,\n // output\n gridState,\n totalListHeight,\n ...stateFlags,\n startReached,\n endReached,\n rangeChanged,\n stateChanged,\n propsReady,\n stateRestoreInProgress,\n ...log\n };\n },\n tup(sizeRangeSystem, domIOSystem, stateFlagsSystem, scrollSeekSystem, propsReadySystem, windowScrollerSystem, loggerSystem)\n);\nfunction gridLayout(viewport, gap, item, items) {\n const { height: itemHeight } = item;\n if (itemHeight === void 0 || items.length === 0) {\n return { top: 0, bottom: 0 };\n }\n const top = itemTop(viewport, gap, item, items[0].index);\n const bottom = itemTop(viewport, gap, item, items[items.length - 1].index) + itemHeight;\n return { top, bottom };\n}\nfunction itemTop(viewport, gap, item, index) {\n const perRow = itemsPerRow(viewport.width, item.width, gap.column);\n const rowCount = floor(index / perRow);\n const top = rowCount * item.height + max(0, rowCount - 1) * gap.row;\n return top > 0 ? top + gap.row : top;\n}\nfunction itemsPerRow(viewportWidth, itemWidth, gap) {\n return max(1, floor((viewportWidth + gap) / (floor(itemWidth) + gap)));\n}\nconst gridComponentPropsSystem = /* @__PURE__ */ system(() => {\n const itemContent = statefulStream((index) => `Item ${index}`);\n const components = statefulStream({});\n const context = statefulStream(null);\n const itemClassName = statefulStream(\"virtuoso-grid-item\");\n const listClassName = statefulStream(\"virtuoso-grid-list\");\n const computeItemKey = statefulStream(identity);\n const headerFooterTag = statefulStream(\"div\");\n const scrollerRef = statefulStream(noop);\n const distinctProp = (propName, defaultValue = null) => {\n return statefulStreamFromEmitter(\n pipe(\n components,\n map((components2) => components2[propName]),\n distinctUntilChanged()\n ),\n defaultValue\n );\n };\n const readyStateChanged = statefulStream(false);\n const reportReadyState = statefulStream(false);\n connect(duc(reportReadyState), readyStateChanged);\n return {\n readyStateChanged,\n reportReadyState,\n context,\n itemContent,\n components,\n computeItemKey,\n itemClassName,\n listClassName,\n headerFooterTag,\n scrollerRef,\n FooterComponent: distinctProp(\"Footer\"),\n HeaderComponent: distinctProp(\"Header\"),\n ListComponent: distinctProp(\"List\", \"div\"),\n ItemComponent: distinctProp(\"Item\", \"div\"),\n ScrollerComponent: distinctProp(\"Scroller\", \"div\"),\n ScrollSeekPlaceholder: distinctProp(\"ScrollSeekPlaceholder\", \"div\")\n };\n});\nconst combinedSystem$1 = /* @__PURE__ */ system(([gridSystem2, gridComponentPropsSystem2]) => {\n return { ...gridSystem2, ...gridComponentPropsSystem2 };\n}, tup(gridSystem, gridComponentPropsSystem));\nconst GridItems = /* @__PURE__ */ React.memo(function GridItems2() {\n const gridState = useEmitterValue$1(\"gridState\");\n const listClassName = useEmitterValue$1(\"listClassName\");\n const itemClassName = useEmitterValue$1(\"itemClassName\");\n const itemContent = useEmitterValue$1(\"itemContent\");\n const computeItemKey = useEmitterValue$1(\"computeItemKey\");\n const isSeeking = useEmitterValue$1(\"isSeeking\");\n const scrollHeightCallback = usePublisher$1(\"scrollHeight\");\n const ItemComponent = useEmitterValue$1(\"ItemComponent\");\n const ListComponent = useEmitterValue$1(\"ListComponent\");\n const ScrollSeekPlaceholder = useEmitterValue$1(\"ScrollSeekPlaceholder\");\n const context = useEmitterValue$1(\"context\");\n const itemDimensions = usePublisher$1(\"itemDimensions\");\n const gridGap = usePublisher$1(\"gap\");\n const log = useEmitterValue$1(\"log\");\n const stateRestoreInProgress = useEmitterValue$1(\"stateRestoreInProgress\");\n const reportReadyState = usePublisher$1(\"reportReadyState\");\n const listRef = useSize(\n React.useMemo(\n () => (el) => {\n const scrollHeight = el.parentElement.parentElement.scrollHeight;\n scrollHeightCallback(scrollHeight);\n const firstItem = el.firstChild;\n if (firstItem) {\n const { width, height } = firstItem.getBoundingClientRect();\n itemDimensions({ width, height });\n }\n gridGap({\n row: resolveGapValue(\"row-gap\", getComputedStyle(el).rowGap, log),\n column: resolveGapValue(\"column-gap\", getComputedStyle(el).columnGap, log)\n });\n },\n [scrollHeightCallback, itemDimensions, gridGap, log]\n ),\n true,\n false\n );\n useIsomorphicLayoutEffect(() => {\n if (gridState.itemHeight > 0 && gridState.itemWidth > 0) {\n reportReadyState(true);\n }\n }, [gridState]);\n if (stateRestoreInProgress) {\n return null;\n }\n return /* @__PURE__ */ jsx(\n ListComponent,\n {\n ref: listRef,\n className: listClassName,\n ...contextPropIfNotDomElement(ListComponent, context),\n style: { paddingTop: gridState.offsetTop, paddingBottom: gridState.offsetBottom },\n \"data-testid\": \"virtuoso-item-list\",\n children: gridState.items.map((item) => {\n const key = computeItemKey(item.index, item.data, context);\n return isSeeking ? /* @__PURE__ */ jsx(\n ScrollSeekPlaceholder,\n {\n ...contextPropIfNotDomElement(ScrollSeekPlaceholder, context),\n index: item.index,\n height: gridState.itemHeight,\n width: gridState.itemWidth\n },\n key\n ) : /* @__PURE__ */ createElement(\n ItemComponent,\n {\n ...contextPropIfNotDomElement(ItemComponent, context),\n className: itemClassName,\n \"data-index\": item.index,\n key\n },\n itemContent(item.index, item.data, context)\n );\n })\n }\n );\n});\nconst Header = React.memo(function VirtuosoHeader2() {\n const Header2 = useEmitterValue$1(\"HeaderComponent\");\n const headerHeight = usePublisher$1(\"headerHeight\");\n const HeaderFooterTag = useEmitterValue$1(\"headerFooterTag\");\n const ref = useSize(\n React.useMemo(() => (el) => headerHeight(correctItemSize(el, \"height\")), [headerHeight]),\n true,\n false\n );\n const context = useEmitterValue$1(\"context\");\n return Header2 ? /* @__PURE__ */ jsx(HeaderFooterTag, { ref, children: /* @__PURE__ */ jsx(Header2, { ...contextPropIfNotDomElement(Header2, context) }) }) : null;\n});\nconst Footer = React.memo(function VirtuosoGridFooter() {\n const Footer2 = useEmitterValue$1(\"FooterComponent\");\n const footerHeight = usePublisher$1(\"footerHeight\");\n const HeaderFooterTag = useEmitterValue$1(\"headerFooterTag\");\n const ref = useSize(\n React.useMemo(() => (el) => footerHeight(correctItemSize(el, \"height\")), [footerHeight]),\n true,\n false\n );\n const context = useEmitterValue$1(\"context\");\n return Footer2 ? /* @__PURE__ */ jsx(HeaderFooterTag, { ref, children: /* @__PURE__ */ jsx(Footer2, { ...contextPropIfNotDomElement(Footer2, context) }) }) : null;\n});\nconst Viewport$1 = ({ children }) => {\n const ctx = React.useContext(VirtuosoGridMockContext);\n const itemDimensions = usePublisher$1(\"itemDimensions\");\n const viewportDimensions = usePublisher$1(\"viewportDimensions\");\n const viewportRef = useSize(\n React.useMemo(\n () => (el) => {\n viewportDimensions(el.getBoundingClientRect());\n },\n [viewportDimensions]\n ),\n true,\n false\n );\n React.useEffect(() => {\n if (ctx) {\n viewportDimensions({ height: ctx.viewportHeight, width: ctx.viewportWidth });\n itemDimensions({ height: ctx.itemHeight, width: ctx.itemWidth });\n }\n }, [ctx, viewportDimensions, itemDimensions]);\n return /* @__PURE__ */ jsx(\"div\", { style: viewportStyle(false), ref: viewportRef, children });\n};\nconst WindowViewport$1 = ({ children }) => {\n const ctx = React.useContext(VirtuosoGridMockContext);\n const windowViewportRect = usePublisher$1(\"windowViewportRect\");\n const itemDimensions = usePublisher$1(\"itemDimensions\");\n const customScrollParent = useEmitterValue$1(\"customScrollParent\");\n const viewportRef = useWindowViewportRectRef(windowViewportRect, customScrollParent, false);\n React.useEffect(() => {\n if (ctx) {\n itemDimensions({ height: ctx.itemHeight, width: ctx.itemWidth });\n windowViewportRect({ offsetTop: 0, visibleHeight: ctx.viewportHeight, visibleWidth: ctx.viewportWidth });\n }\n }, [ctx, windowViewportRect, itemDimensions]);\n return /* @__PURE__ */ jsx(\"div\", { ref: viewportRef, style: viewportStyle(false), children });\n};\nconst GridRoot = /* @__PURE__ */ React.memo(function GridRoot2({ ...props }) {\n const useWindowScroll = useEmitterValue$1(\"useWindowScroll\");\n const customScrollParent = useEmitterValue$1(\"customScrollParent\");\n const TheScroller = customScrollParent || useWindowScroll ? WindowScroller$1 : Scroller$1;\n const TheViewport = customScrollParent || useWindowScroll ? WindowViewport$1 : Viewport$1;\n return /* @__PURE__ */ jsx(TheScroller, { ...props, children: /* @__PURE__ */ jsxs(TheViewport, { children: [\n /* @__PURE__ */ jsx(Header, {}),\n /* @__PURE__ */ jsx(GridItems, {}),\n /* @__PURE__ */ jsx(Footer, {})\n ] }) });\n});\nconst {\n Component: Grid,\n usePublisher: usePublisher$1,\n useEmitterValue: useEmitterValue$1,\n useEmitter: useEmitter$1\n} = /* @__PURE__ */ systemToComponent(\n combinedSystem$1,\n {\n optional: {\n context: \"context\",\n totalCount: \"totalCount\",\n overscan: \"overscan\",\n itemContent: \"itemContent\",\n components: \"components\",\n computeItemKey: \"computeItemKey\",\n data: \"data\",\n initialItemCount: \"initialItemCount\",\n scrollSeekConfiguration: \"scrollSeekConfiguration\",\n headerFooterTag: \"headerFooterTag\",\n listClassName: \"listClassName\",\n itemClassName: \"itemClassName\",\n useWindowScroll: \"useWindowScroll\",\n customScrollParent: \"customScrollParent\",\n scrollerRef: \"scrollerRef\",\n logLevel: \"logLevel\",\n restoreStateFrom: \"restoreStateFrom\",\n initialTopMostItemIndex: \"initialTopMostItemIndex\",\n increaseViewportBy: \"increaseViewportBy\"\n },\n methods: {\n scrollTo: \"scrollTo\",\n scrollBy: \"scrollBy\",\n scrollToIndex: \"scrollToIndex\"\n },\n events: {\n isScrolling: \"isScrolling\",\n endReached: \"endReached\",\n startReached: \"startReached\",\n rangeChanged: \"rangeChanged\",\n atBottomStateChange: \"atBottomStateChange\",\n atTopStateChange: \"atTopStateChange\",\n stateChanged: \"stateChanged\",\n readyStateChanged: \"readyStateChanged\"\n }\n },\n GridRoot\n);\nconst Scroller$1 = /* @__PURE__ */ buildScroller({ usePublisher: usePublisher$1, useEmitterValue: useEmitterValue$1, useEmitter: useEmitter$1 });\nconst WindowScroller$1 = /* @__PURE__ */ buildWindowScroller({ usePublisher: usePublisher$1, useEmitterValue: useEmitterValue$1, useEmitter: useEmitter$1 });\nfunction resolveGapValue(property, value, log) {\n if (value !== \"normal\" && !(value == null ? void 0 : value.endsWith(\"px\"))) {\n log(`${property} was not resolved to pixel value correctly`, value, LogLevel.WARN);\n }\n if (value === \"normal\") {\n return 0;\n }\n return parseInt(value != null ? value : \"0\", 10);\n}\nconst VirtuosoGrid = Grid;\nconst tableComponentPropsSystem = /* @__PURE__ */ system(() => {\n const itemContent = statefulStream((index) => /* @__PURE__ */ jsxs(\"td\", { children: [\n \"Item $\",\n index\n ] }));\n const context = statefulStream(null);\n const fixedHeaderContent = statefulStream(null);\n const fixedFooterContent = statefulStream(null);\n const components = statefulStream({});\n const computeItemKey = statefulStream(identity);\n const scrollerRef = statefulStream(noop);\n const distinctProp = (propName, defaultValue = null) => {\n return statefulStreamFromEmitter(\n pipe(\n components,\n map((components2) => components2[propName]),\n distinctUntilChanged()\n ),\n defaultValue\n );\n };\n return {\n context,\n itemContent,\n fixedHeaderContent,\n fixedFooterContent,\n components,\n computeItemKey,\n scrollerRef,\n TableComponent: distinctProp(\"Table\", \"table\"),\n TableHeadComponent: distinctProp(\"TableHead\", \"thead\"),\n TableFooterComponent: distinctProp(\"TableFoot\", \"tfoot\"),\n TableBodyComponent: distinctProp(\"TableBody\", \"tbody\"),\n TableRowComponent: distinctProp(\"TableRow\", \"tr\"),\n ScrollerComponent: distinctProp(\"Scroller\", \"div\"),\n EmptyPlaceholder: distinctProp(\"EmptyPlaceholder\"),\n ScrollSeekPlaceholder: distinctProp(\"ScrollSeekPlaceholder\"),\n FillerRow: distinctProp(\"FillerRow\")\n };\n});\nconst combinedSystem = /* @__PURE__ */ system(([listSystem2, propsSystem]) => {\n return { ...listSystem2, ...propsSystem };\n}, tup(listSystem, tableComponentPropsSystem));\nconst DefaultScrollSeekPlaceholder = ({ height }) => /* @__PURE__ */ jsx(\"tr\", { children: /* @__PURE__ */ jsx(\"td\", { style: { height } }) });\nconst DefaultFillerRow = ({ height }) => /* @__PURE__ */ jsx(\"tr\", { children: /* @__PURE__ */ jsx(\"td\", { style: { height, padding: 0, border: 0 } }) });\nconst ITEM_STYLE = { overflowAnchor: \"none\" };\nconst Items = /* @__PURE__ */ React.memo(function VirtuosoItems2({ showTopList = false }) {\n const listState = useEmitterValue(\"listState\");\n const computeItemKey = useEmitterValue(\"computeItemKey\");\n const firstItemIndex = useEmitterValue(\"firstItemIndex\");\n const isSeeking = useEmitterValue(\"isSeeking\");\n const ScrollSeekPlaceholder = useEmitterValue(\"ScrollSeekPlaceholder\") || DefaultScrollSeekPlaceholder;\n const context = useEmitterValue(\"context\");\n const TableRowComponent = useEmitterValue(\"TableRowComponent\");\n const fixedHeaderHeight = useEmitterValue(\"fixedHeaderHeight\");\n const itemContent = useEmitterValue(\"itemContent\");\n const topItemOffsets = (showTopList ? listState.topItems : []).reduce((acc, item, index) => {\n if (index === 0) {\n acc.push(item.size);\n } else {\n acc.push(acc[index - 1] + item.size);\n }\n return acc;\n }, []);\n const items = (showTopList ? listState.topItems : listState.items).map((item) => {\n const index = item.originalIndex;\n const key = computeItemKey(index + firstItemIndex, item.data, context);\n const offsetTop = showTopList ? index === 0 ? 0 : topItemOffsets[index - 1] : 0;\n if (isSeeking) {\n return /* @__PURE__ */ createElement(\n ScrollSeekPlaceholder,\n {\n ...contextPropIfNotDomElement(ScrollSeekPlaceholder, context),\n key,\n index: item.index,\n height: item.size,\n type: item.type || \"item\"\n }\n );\n }\n return /* @__PURE__ */ createElement(\n TableRowComponent,\n {\n ...contextPropIfNotDomElement(TableRowComponent, context),\n ...itemPropIfNotDomElement(TableRowComponent, item.data),\n key,\n \"data-index\": index,\n \"data-known-size\": item.size,\n \"data-item-index\": item.index,\n style: showTopList ? { overflowAnchor: \"none\", position: \"sticky\", zIndex: 2, top: fixedHeaderHeight + offsetTop } : ITEM_STYLE\n },\n itemContent(item.index, item.data, context)\n );\n });\n return /* @__PURE__ */ jsx(Fragment, { children: items });\n});\nconst TableBody = /* @__PURE__ */ React.memo(function TableVirtuosoBody() {\n const listState = useEmitterValue(\"listState\");\n const showTopList = useEmitterValue(\"topItemsIndexes\").length > 0;\n const sizeRanges = usePublisher(\"sizeRanges\");\n const useWindowScroll = useEmitterValue(\"useWindowScroll\");\n const customScrollParent = useEmitterValue(\"customScrollParent\");\n const windowScrollContainerStateCallback = usePublisher(\"windowScrollContainerState\");\n const _scrollContainerStateCallback = usePublisher(\"scrollContainerState\");\n const scrollContainerStateCallback = customScrollParent || useWindowScroll ? windowScrollContainerStateCallback : _scrollContainerStateCallback;\n const trackItemSizes = useEmitterValue(\"trackItemSizes\");\n const itemSize = useEmitterValue(\"itemSize\");\n const log = useEmitterValue(\"log\");\n const { callbackRef, ref } = useChangedListContentsSizes(\n sizeRanges,\n itemSize,\n trackItemSizes,\n scrollContainerStateCallback,\n log,\n void 0,\n customScrollParent,\n false,\n useEmitterValue(\"skipAnimationFrameInResizeObserver\")\n );\n const [deviation, setDeviation] = React.useState(0);\n useEmitter(\"deviation\", (value) => {\n if (deviation !== value) {\n ref.current.style.marginTop = `${value}px`;\n setDeviation(value);\n }\n });\n const EmptyPlaceholder = useEmitterValue(\"EmptyPlaceholder\");\n const FillerRow = useEmitterValue(\"FillerRow\") || DefaultFillerRow;\n const TableBodyComponent = useEmitterValue(\"TableBodyComponent\");\n const paddingTopAddition = useEmitterValue(\"paddingTopAddition\");\n const statefulTotalCount = useEmitterValue(\"statefulTotalCount\");\n const context = useEmitterValue(\"context\");\n if (statefulTotalCount === 0 && EmptyPlaceholder) {\n return /* @__PURE__ */ jsx(EmptyPlaceholder, { ...contextPropIfNotDomElement(EmptyPlaceholder, context) });\n }\n const topItemsSize = (showTopList ? listState.topItems : []).reduce((acc, item) => acc + item.size, 0);\n const paddingTop = listState.offsetTop + paddingTopAddition + deviation - topItemsSize;\n const paddingBottom = listState.offsetBottom;\n const paddingTopEl = paddingTop > 0 ? /* @__PURE__ */ jsx(FillerRow, { height: paddingTop, context }, \"padding-top\") : null;\n const paddingBottomEl = paddingBottom > 0 ? /* @__PURE__ */ jsx(FillerRow, { height: paddingBottom, context }, \"padding-bottom\") : null;\n return /* @__PURE__ */ jsxs(TableBodyComponent, { ref: callbackRef, \"data-testid\": \"virtuoso-item-list\", ...contextPropIfNotDomElement(TableBodyComponent, context), children: [\n paddingTopEl,\n showTopList && /* @__PURE__ */ jsx(Items, { showTopList: true }),\n /* @__PURE__ */ jsx(Items, {}),\n paddingBottomEl\n ] });\n});\nconst Viewport = ({ children }) => {\n const ctx = React.useContext(VirtuosoMockContext);\n const viewportHeight = usePublisher(\"viewportHeight\");\n const fixedItemHeight = usePublisher(\"fixedItemHeight\");\n const viewportRef = useSize(\n React.useMemo(() => compose(viewportHeight, (el) => correctItemSize(el, \"height\")), [viewportHeight]),\n true,\n useEmitterValue(\"skipAnimationFrameInResizeObserver\")\n );\n React.useEffect(() => {\n if (ctx) {\n viewportHeight(ctx.viewportHeight);\n fixedItemHeight(ctx.itemHeight);\n }\n }, [ctx, viewportHeight, fixedItemHeight]);\n return /* @__PURE__ */ jsx(\"div\", { style: viewportStyle(false), ref: viewportRef, \"data-viewport-type\": \"element\", children });\n};\nconst WindowViewport = ({ children }) => {\n const ctx = React.useContext(VirtuosoMockContext);\n const windowViewportRect = usePublisher(\"windowViewportRect\");\n const fixedItemHeight = usePublisher(\"fixedItemHeight\");\n const customScrollParent = useEmitterValue(\"customScrollParent\");\n const viewportRef = useWindowViewportRectRef(\n windowViewportRect,\n customScrollParent,\n useEmitterValue(\"skipAnimationFrameInResizeObserver\")\n );\n React.useEffect(() => {\n if (ctx) {\n fixedItemHeight(ctx.itemHeight);\n windowViewportRect({ offsetTop: 0, visibleHeight: ctx.viewportHeight, visibleWidth: 100 });\n }\n }, [ctx, windowViewportRect, fixedItemHeight]);\n return /* @__PURE__ */ jsx(\"div\", { ref: viewportRef, style: viewportStyle(false), \"data-viewport-type\": \"window\", children });\n};\nconst TableRoot = /* @__PURE__ */ React.memo(function TableVirtuosoRoot(props) {\n const useWindowScroll = useEmitterValue(\"useWindowScroll\");\n const customScrollParent = useEmitterValue(\"customScrollParent\");\n const fixedHeaderHeight = usePublisher(\"fixedHeaderHeight\");\n const fixedFooterHeight = usePublisher(\"fixedFooterHeight\");\n const fixedHeaderContent = useEmitterValue(\"fixedHeaderContent\");\n const fixedFooterContent = useEmitterValue(\"fixedFooterContent\");\n const context = useEmitterValue(\"context\");\n const theadRef = useSize(\n React.useMemo(() => compose(fixedHeaderHeight, (el) => correctItemSize(el, \"height\")), [fixedHeaderHeight]),\n true,\n useEmitterValue(\"skipAnimationFrameInResizeObserver\")\n );\n const tfootRef = useSize(\n React.useMemo(() => compose(fixedFooterHeight, (el) => correctItemSize(el, \"height\")), [fixedFooterHeight]),\n true,\n useEmitterValue(\"skipAnimationFrameInResizeObserver\")\n );\n const TheScroller = customScrollParent || useWindowScroll ? WindowScroller : Scroller;\n const TheViewport = customScrollParent || useWindowScroll ? WindowViewport : Viewport;\n const TheTable = useEmitterValue(\"TableComponent\");\n const TheTHead = useEmitterValue(\"TableHeadComponent\");\n const TheTFoot = useEmitterValue(\"TableFooterComponent\");\n const theHead = fixedHeaderContent ? /* @__PURE__ */ jsx(\n TheTHead,\n {\n style: { zIndex: 2, position: \"sticky\", top: 0 },\n ref: theadRef,\n ...contextPropIfNotDomElement(TheTHead, context),\n children: fixedHeaderContent()\n },\n \"TableHead\"\n ) : null;\n const theFoot = fixedFooterContent ? /* @__PURE__ */ jsx(\n TheTFoot,\n {\n style: { zIndex: 1, position: \"sticky\", bottom: 0 },\n ref: tfootRef,\n ...contextPropIfNotDomElement(TheTFoot, context),\n children: fixedFooterContent()\n },\n \"TableFoot\"\n ) : null;\n return /* @__PURE__ */ jsx(TheScroller, { ...props, children: /* @__PURE__ */ jsx(TheViewport, { children: /* @__PURE__ */ jsxs(TheTable, { style: { borderSpacing: 0, overflowAnchor: \"none\" }, ...contextPropIfNotDomElement(TheTable, context), children: [\n theHead,\n /* @__PURE__ */ jsx(TableBody, {}, \"TableBody\"),\n theFoot\n ] }) }) });\n});\nconst {\n Component: Table,\n usePublisher,\n useEmitterValue,\n useEmitter\n} = /* @__PURE__ */ systemToComponent(\n combinedSystem,\n {\n required: {},\n optional: {\n restoreStateFrom: \"restoreStateFrom\",\n context: \"context\",\n followOutput: \"followOutput\",\n firstItemIndex: \"firstItemIndex\",\n itemContent: \"itemContent\",\n fixedHeaderContent: \"fixedHeaderContent\",\n fixedFooterContent: \"fixedFooterContent\",\n overscan: \"overscan\",\n increaseViewportBy: \"increaseViewportBy\",\n totalCount: \"totalCount\",\n topItemCount: \"topItemCount\",\n initialTopMostItemIndex: \"initialTopMostItemIndex\",\n components: \"components\",\n groupCounts: \"groupCounts\",\n atBottomThreshold: \"atBottomThreshold\",\n atTopThreshold: \"atTopThreshold\",\n computeItemKey: \"computeItemKey\",\n defaultItemHeight: \"defaultItemHeight\",\n fixedItemHeight: \"fixedItemHeight\",\n itemSize: \"itemSize\",\n scrollSeekConfiguration: \"scrollSeekConfiguration\",\n data: \"data\",\n initialItemCount: \"initialItemCount\",\n initialScrollTop: \"initialScrollTop\",\n alignToBottom: \"alignToBottom\",\n useWindowScroll: \"useWindowScroll\",\n customScrollParent: \"customScrollParent\",\n scrollerRef: \"scrollerRef\",\n logLevel: \"logLevel\"\n },\n methods: {\n scrollToIndex: \"scrollToIndex\",\n scrollIntoView: \"scrollIntoView\",\n scrollTo: \"scrollTo\",\n scrollBy: \"scrollBy\",\n getState: \"getState\"\n },\n events: {\n isScrolling: \"isScrolling\",\n endReached: \"endReached\",\n startReached: \"startReached\",\n rangeChanged: \"rangeChanged\",\n atBottomStateChange: \"atBottomStateChange\",\n atTopStateChange: \"atTopStateChange\",\n totalListHeightChanged: \"totalListHeightChanged\",\n itemsRendered: \"itemsRendered\",\n groupIndices: \"groupIndices\"\n }\n },\n TableRoot\n);\nconst Scroller = /* @__PURE__ */ buildScroller({ usePublisher, useEmitterValue, useEmitter });\nconst WindowScroller = /* @__PURE__ */ buildWindowScroller({ usePublisher, useEmitterValue, useEmitter });\nconst TableVirtuoso = Table;\nexport {\n GroupedVirtuoso,\n LogLevel,\n TableVirtuoso,\n Virtuoso,\n VirtuosoGrid,\n VirtuosoGridMockContext,\n VirtuosoMockContext\n};\n","import React, { FunctionComponent, useMemo } from \"react\"\nimport cls from \"./Base64Cmp.module.css\"\n\n\n\ninterface Props {\n\ttext?: string\n\tmaxChar?: number\n\tstyle?: React.CSSProperties\n}\n\nconst Base64Cmp: FunctionComponent = ({\n\ttext,\n\tmaxChar,\n\tstyle,\n}) => {\n\n\t// STORE\n\n\t// HOOKs\n\n\t// HANDLER\n\n\t// RENDER\n\tconst isTruncate = maxChar && text.length > maxChar\n\tconst base64 = useMemo(() => {\n\t\tif (!text) return null\n\t\treturn btoa(isTruncate ? text.slice(0, maxChar) : text)\n\t}, [text, maxChar])\n\tif (!base64) return null\n\n\treturn (\n\t\t
\n\t\t\t{base64}\n\t\t\t{isTruncate && <>\n\t\t\t\t\n\t\t\t\t\t{'\\u2026'}\n\t\t\t\t\t{text.length}\n\t\t\t\t\n\t\t\t}\n\t\t
\n\t)\n}\n\nexport default Base64Cmp\n\nconst cssSelect: React.CSSProperties = {\n\tcolor: \"var(--cmp-select-bg)\"\n}","import { FunctionComponent } from \"react\"\nimport cls from \"./DividerRow.module.css\"\n\n\nexport enum DIVIDER_VARIANT {\n\tBORDER_UP,\n\tBORDER_DOWN,\n\tBORDER_BOTH,\n}\n\n\ninterface Props {\n\ticon?: React.ReactNode\n\ttitle?: React.ReactNode\n\tchildren?: React.ReactNode\n\ttime?: string\n\tonClick?: () => void\n\tvariant?: DIVIDER_VARIANT\n\n\tstyle?: React.CSSProperties,\n\tclassName?: string\n}\n\nconst DividerRow: FunctionComponent = ({\n\ttitle,\n\tchildren,\n\ttime,\n\tonClick,\n\tvariant = DIVIDER_VARIANT.BORDER_UP,\n\n\tstyle,\n\tclassName,\n}) => {\n\n\t// STORE\n\n\t// HOOKs\n\n\t// HANDLER\n\n\t// RENDER\n\tconst clsSelected = !!onClick ? cls.selected : \"\"\n\tconst clsRoot = `${cls.root} ${clsSelected} ${className}`\n\n\treturn \n\t\t{(variant == DIVIDER_VARIANT.BORDER_UP || variant == DIVIDER_VARIANT.BORDER_BOTH) && (\n\t\t\t
\n\t\t)}\n\t\t
{title}
\n\t\t
{children}
\n\t\t
{time}
\n\t\t{(variant == DIVIDER_VARIANT.BORDER_DOWN || variant == DIVIDER_VARIANT.BORDER_BOTH) && (\n\t\t\t
\n\t\t)}\n\t
\n}\n\nexport default DividerRow\n","import { FunctionComponent, useMemo } from \"react\"\n\n\n\nconst regex = /\\s/g\n\ninterface Props {\n\tblock: Uint8Array\n\tcolumns?: number\n}\n\nconst HexAsciiBlock: FunctionComponent = ({\n\tblock,\n\tcolumns = 8,\n}) => {\n\n\tconst render = useMemo(() => {\n\t\tconst render = Array.from(block, (value: number) => String.fromCharCode(value))\n\t\treturn render.join(\"\").replace(regex, \" \").padEnd(8, \" \");\n\t}, [block, columns])\n\n\treturn (\n\t\t\n\t\t\t{render}\n\t\t\n\t)\n}\n\nexport default HexAsciiBlock\n\nconst cssRoot: React.CSSProperties = {\n\tcolor: \"var(--cmp-select-bg)\",\n\twhiteSpace: \"pre\",\n}","import { FunctionComponent, useMemo } from \"react\"\n\n\n\ninterface Props {\n\tblock: Uint8Array\n\tcolumns?: number\n}\n\nconst HexBlock: FunctionComponent = ({\n\tblock,\n\tcolumns = 8,\n}) => {\n\n\tconst render = useMemo(()=>{\n\t\tconst render = Array.from(block,\n\t\t\t(value: number, index: number) => \n\t\t)\n\t\tif (render.length < columns) render.push(...Array.from({length:columns - render.length}, _ => ))\n\t\treturn render\n\t},[block, columns])\n\n\treturn render\n}\n\nexport default HexBlock\n\n\n\ninterface HexCellProps {\n\tvalue?: number\n\tbgType?: number\n}\nconst HexCell: FunctionComponent = ({\n\tvalue,\n\tbgType,\n}) => {\n\treturn \n\t\t{toHex(value)}\n\t\n}\n\nconst cssHex1:React.CSSProperties = {\n\tpadding: \"0px 3px\",\n}\nconst cssHex2:React.CSSProperties = {\n\tpadding: \"0px 3px\",\n\topacity: .7,\n}\nconst toHex = (value: number): string => {\n\tif ( value == null ) return \"..\"\n\treturn value.toString(16).toUpperCase().padStart(2, '0')\n}\n","import React, { FunctionComponent } from \"react\"\nimport HexAsciiBlock from \"./HexAsciiBlock\"\nimport HexBlock from \"./HexBlock\"\n\n\n\ninterface Props {\n\tblock: Uint8Array,\n\tindex: number,\n}\n\nconst HexRow: FunctionComponent = ({\n\tblock,\n\tindex,\n}) => {\n\t// STORE\n\n\t// HOOKs\n\n\t// HANDLER\n\n\t// RENDER\n\treturn (\n\t\t
\n\t\t\t
{index}
\n\t\t\t\n\t\t\t\n\t\t
\n\t)\n}\n\nexport default HexRow\n\n\nconst cssRow: React.CSSProperties = {\n\tdisplay: \"flex\",\n\tjustifyContent: 'space-between',\n}\nconst cssIndex: React.CSSProperties = {\n\tminWidth: 30,\n\topacity: .7,\n}\n","import React, { FunctionComponent, useMemo } from \"react\"\nimport HexRow from \"./HexRow\"\nimport cls from \"./HexTable.module.css\"\n\n\n\ninterface Props {\n\ttext?: string\n\tmaxRows?: number\n\tcolumns?: number\n\tstyle?: React.CSSProperties\n}\n\nconst HexTable: FunctionComponent = ({\n\ttext,\n\tmaxRows,\n\tcolumns = 8,\n\tstyle,\n}) => {\n\t// STORE\n\n\t// HOOKs\n\n\t// HANDLER\n\n\t// RENDER\n\tif (!text) return null\n\n\tconst render = useMemo(() => {\n\t\tconst encoder = new TextEncoder()\n\t\tconst ascii = encoder.encode(text)\n\t\tconst render = []\n\t\tconst maxBlocks = maxRows ? columns * maxRows : Infinity\n\t\tfor (let i = 0; i < ascii.length && i < maxBlocks; i += columns) {\n\t\t\tconst block = ascii.slice(i, i + columns)\n\t\t\trender.push()\n\t\t}\n\t\treturn render\n\t}, [text])\n\n\treturn (\n\t\t
\n\t\t\t{render}\n\t\t
\n\t)\n}\n\nexport default HexTable\n\n","import { FunctionComponent, useMemo } from \"react\"\nimport cls from \"./TextRow.module.css\"\nimport { binaryStringToString } from \"../../../utils/string\"\n\n\n\ninterface Props {\n\ttext?: string\n\tmaxChar?: number\n\terror?: boolean\n\tstyle?: React.CSSProperties\n}\n\nconst TextRow: FunctionComponent = ({\n\ttext,\n\tmaxChar = 200,\n\terror,\n\tstyle,\n}) => {\n\n\t// STORE\n\n\t// HOOKs\n\n\t// HANDLER\n\n\t// RENDER\n\tif (!text) return null\n\t// accorcio la stringa se è troppo lunga\n\tconst render = useMemo(() => text.length > maxChar\n\t\t? <>{binaryStringToString(text.substring(0, maxChar))}{'\\u2026'}{text.length}\n\t\t: binaryStringToString(text)\n\t\t, [text]\n\t)\n\n\treturn (\n\t\t
\n\t\t\t{render}\n\t\t
\n\t)\n}\n\nexport default TextRow\n\nconst cssSelect:React.CSSProperties = {\n\tcolor: \"var(--cmp-select-bg)\"\n}","import { toJson } from \"@/utils/editor\"\nimport { FunctionComponent, useMemo } from \"react\"\nimport TextRow from \"../text/TextRow\"\nimport { binaryStringToString } from \"../../../utils/string\"\n\n\n\nconst limLength = [8, 3, 2]\nconst limitDeept = 2\nconst limitArray = 2\n\ninterface Props {\n\ttext?: string\n}\n\nconst JsonRow: FunctionComponent = ({\n\ttext,\n}) => {\n\n\t// STORE\n\n\t// HOOKs\n\n\t// HANDLER\n\n\t// RENDER\n\tconst {json, success} = useMemo(()=> toJson(text), [text])\n\tif ( !success ) return \n\n\treturn (\n\t\t
\n\t\t\t\n\t\t
\n\t)\n}\n\nexport default JsonRow\n\nconst cssBody: React.CSSProperties = {\n\tfontSize: 12,\n\toverflowWrap: \"break-word\",\n\tfontFamily: \"monospace\",\n}\n\ninterface ObjPros {\n\tjson: any,\n\tdeep?: number,\n}\nconst FormatObj: FunctionComponent = ({ json, deep = 0 }) => {\n\n\tif (deep > limitDeept) return \"\\u2026\"\n\tif (!json) return null\n\n\tconst ret = []\n\tlet index = 0\n\tconst isArray = Array.isArray(json)\n\tlet keys = Object.keys(json);\n\n\tlet lastIndex = keys.length - 1;\n\tconst limit = limLength[deep]\n\n\tif (isArray && keys.length > limitArray) {\n\t\tret.push({`\\u2026${keys.length}`})\n\n\t} else if (deep > 2) {\n\t\tret.push(\"\\u2026\")\n\n\t} else {\n\t\tfor (let key in json) {\n\n\t\t\tif (index >= limit) {\n\t\t\t\tret.push({\"\\u2026\"})\n\t\t\t\tbreak\n\t\t\t}\n\t\t\tlet value = json[key]\n\t\t\tconst type = typeof value\n\n\n\t\t\t// KEY\n\t\t\tif (!isArray) ret.push({key}:)\n\n\n\t\t\t// VALUE\n\t\t\tif (value == null) {\n\t\t\t\tret.push(null, )\n\t\t\t} else if (type === \"object\") {\n\t\t\t\tret.push(FormatObj({ json: value, deep: deep + 1 }))\n\n\t\t\t} else if (type === \"string\") {\n\t\t\t\tvalue = value.length > 8 ? `${binaryStringToString(value.substring(0, 8))}\\u2026` : binaryStringToString(value)\n\t\t\t\tret.push(\"{value}\")\n\n\t\t\t} else if (type === \"number\") {\n\t\t\t\tvalue = value.toString()\n\t\t\t\tret.push({value})\n\n\t\t\t} else if (type === \"boolean\") {\n\t\t\t\tvalue = value ? \"\\u2714\" : \"\\u2716\"\n\t\t\t\tret.push(json[key] \n\t\t\t\t\t? ✔, \n\t\t\t\t\t: \n\t\t\t\t)\n\t\t\t}\n\n\t\t\tif (index < lastIndex) ret.push(, )\n\t\t\tindex++\n\t\t}\n\t}\n\n\n\treturn (\n\t\t\n\t\t\t{isArray ? \"[\" : \"{\"}\n\t\t\t{ret}\n\t\t\t{isArray ? \"]\" : \"}\"}\n\t\t\n\t)\n}\n\n\nconst cssNull: React.CSSProperties = {\n\tcolor: \"var(--color-fuchsia)\",\n}\nconst cssString: React.CSSProperties = {\n\tcolor: \"var(--color-green)\",\n}\nconst cssNumber: React.CSSProperties = {\n\tcolor: \"var(--color-cyan)\",\n}\nconst cssTrue: React.CSSProperties = {\n\tcolor: \"var(--color-green)\",\n}\nconst cssFalse: React.CSSProperties = {\n\tcolor: \"var(--color-fuchsia)\",\n}\nconst cssArrayInfo: React.CSSProperties = {\n\topacity: .5\n}\nconst cssBrackets = (deep: number): React.CSSProperties => {\n\treturn {\n\t\tcolor: [\n\t\t\tnull,\n\t\t\t\"var(--color-cyan)\",\n\t\t\t\"var(--color-fuchsia)\",\n\t\t\t\"var(--color-yellow)\",\n\t\t][deep % 4]\n\t}\n}","import Base64Cmp from \"@/components/formatters/base64/Base64Cmp\"\nimport DividerRow from \"@/components/formatters/divider/DividerRow\"\nimport HexTable from \"@/components/formatters/hex/HexTable\"\nimport JsonRow from \"@/components/formatters/json/JsonRow\"\nimport TextRow from \"@/components/formatters/text/TextRow\"\nimport CloseIcon from \"@/icons/CloseIcon\"\nimport { MESSAGE_TYPE, Message } from \"@/types/Message\"\nimport { MSG_FORMAT, toFormat } from \"@/utils/editor\"\nimport { dateShow } from \"@/utils/time\"\nimport { FunctionComponent, useMemo } from \"react\"\nimport cls from \"./MessageRow.module.css\"\nimport { CopyButton, IconButton, TooltipWrapCmp } from \"@priolo/jack\"\n\n\n\ninterface Props {\n\tmessage?: Message\n\tselected?: boolean,\n\tformat?: MSG_FORMAT\n\tindex?: number\n\tonClick?: (message: Message) => void\n\tonDelete?: (message: Message) => void\n}\n\nconst MessageRow: FunctionComponent = ({\n\tmessage,\n\tselected,\n\tformat,\n\tindex,\n\tonClick,\n\tonDelete,\n}) => {\n\n\t// STORE\n\n\t// HOOKs\n\tconst time = useMemo(\n\t\t() => message.receivedAt ? dateShow(message.receivedAt) : null,\n\t\t[message.receivedAt]\n\t)\n\n\t// HANDLER\n\tconst handleClick = () => onClick?.(message)\n\tconst handleDeleteClick = (e: React.MouseEvent) => {\n\t\te.preventDefault()\n\t\te.stopPropagation()\n\t\tonDelete?.(message)\n\t}\n\tconst handleCopyPayload = () => toFormat(message.payload, format)\n\n\t// RENDER\n\tif (!message) return null\n\tconst clsBg = index % 2 == 0 ? cls.bg1 : cls.bg2\n\tconst clsSelected = selected ? cls.selected : \"\"\n\tconst clsRoot = `${cls.root} ${clsBg} ${clsSelected}`\n\n\tif (!!message.type) return \n\n\treturn (\n\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\t{message.seqNum} \n\t\t\t\t\t\n\t\t\t\t\t\t{message.subject}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t{!!onDelete && (\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t)}\n\t\t\t\t
\n\t\t\t
\n\n\t\t\t{{\n\t\t\t\t[MSG_FORMAT.JSON]: ,\n\t\t\t\t[MSG_FORMAT.TEXT]: ,\n\t\t\t\t[MSG_FORMAT.BASE64]: ,\n\t\t\t\t[MSG_FORMAT.HEX]: ,\n\t\t\t}[format]}\n\n\t\t\t{time && (\n\t\t\t\t
{time}
\n\t\t\t)}\n\t\t
\n\t)\n}\n\nexport default MessageRow\n","import ArrowDownIcon from \"@/icons/ArrowDownIcon\"\nimport ClearIcon from \"@/icons/ClearIcon\"\nimport { Message } from \"@/types/Message\"\nimport { MSG_FORMAT } from \"@/utils/editor\"\nimport { debounce } from \"@/utils/time\"\nimport { FunctionComponent, useEffect, useRef, useState } from \"react\"\nimport { Virtuoso, VirtuosoHandle } from \"react-virtuoso\"\nimport MessageRow from \"./MessageRow\"\nimport { FloatButton } from \"@priolo/jack\"\n\n\n\ninterface Props {\n\tmessages: Message[]\n\tselectedIndex?: number\n\tformat: MSG_FORMAT\n\tonMessageClick?: (message: Message) => void\n\tonMessageDelete?: (message: Message) => void\n\tonClear?: () => void\n\tonLoading?: (bottom: boolean) => Promise\n\textraActions?: React.ReactNode\n\tstyle?: React.CSSProperties\n\theader?: React.ReactNode\n\tfooter?: React.ReactNode\n}\n\nconst MessagesList: FunctionComponent = ({\n\tmessages,\n\tselectedIndex,\n\tformat,\n\tonMessageClick,\n\tonMessageDelete,\n\tonClear,\n\tonLoading,\n\textraActions,\n\tstyle,\n\theader,\n\tfooter,\n}) => {\n\n\t// STORE\n\n\t// HOOKs\n\tconst virtuoso = useRef(null)\n\t// devo evitare che carichi alla CDC allo startup\n\tconst loadingDisabled = useRef(false)\n\tuseEffect(() => {\n\t\tloadingDisabled.current = true\n\t\tdebounce(`messages-list`, () => loadingDisabled.current = false, 1000)\n\t}, [messages])\n\t// indica che dee automaticamente scrollare in basso se arriva un nuovo messaggio\n\tconst [showKeepDown, setShowKeepDown] = useState(true)\n\n\t// HANDLER\n\tconst handleKeepDownClick = () => {\n\t\tvirtuoso.current.scrollToIndex({ index: messages.length - 1/*, behavior: 'smooth'*/ })\n\t}\n\n\t//const handleStartReached = async (index: number) => {\n\t// console.log(\"handleStartReached\", index)\n\t// const newItems = await onLoading?.(false)\n\t// if (newItems > 0) virtuoso.current.scrollToIndex({ index: newItems })\n\t//}\n\tconst handleBottomChange = (bottom: boolean) => setShowKeepDown(!bottom)\n\tconst handleTopChange = async (top: boolean) => {\n\t\tif (loadingDisabled.current) return\n\t\tif (top) {\n\t\t\tconst newItems = await onLoading?.(false)\n\t\t\tif (newItems > 0) virtuoso.current.scrollToIndex({ index: newItems })\n\t\t}\n\t}\n\n\t// RENDER\n\tconst noMessage = !messages || messages.length == 0\n\tconst canClear = !noMessage && !!onClear\n\n\t//if (!messages) return
no messages
\n\n\treturn (<>\n\t\t item.seqNum}\n\t\t\ttotalCount={messages?.length ?? 0}\n\t\t\t//permette di ottimizzare con rendering preventivo su 200 pixel\n\t\t\t//overscan={200}\n\t\t\tdefaultItemHeight={96}\n\t\t\titemContent={(index, message) => }\n\t\t\tcomponents={{\n\t\t\t\tHeader: !!header && (() => header),\n\t\t\t\tFooter: !!footer && (() => footer),\n\t\t\t\tEmptyPlaceholder: () =>
EMPTY LIST
,\n\t\t\t}}\n\t\t/>\n\n\t\t
\n\t\t\t{extraActions}\n\t\t\t{showKeepDown &&\n\t\t\t\t\n\t\t\t}\n\t\t\t{canClear &&\n\t\t\t\t\n\t\t\t}\n\t\t
\n\n\t)\n}\n\nexport default MessagesList\n","const HeartIcon = (props) => (\n\t\n\t\t\n\t\n)\n\nexport default HeartIcon","const HeartOutlineIcon = (props) => (\n\t\n\t\t\n\t\n)\n\nexport default HeartOutlineIcon","import CloseIcon from \"@/icons/CloseIcon\"\nimport HeartIcon from \"@/icons/HeartIcon\"\nimport HeartOutlineIcon from \"@/icons/HeartOutlineIcon\"\nimport { Subscription } from \"@/types\"\nimport { FunctionComponent } from \"react\"\nimport cls from \"./EditSubscriptionRow.module.css\"\nimport { Box, IconButton, IconToggle, TextInput } from \"@priolo/jack\"\nimport { RenderRowBaseProps } from \"@priolo/jack\"\n\n\n\ninterface Props extends RenderRowBaseProps {\n\tnoDisable?: boolean\n\tnoFavorite?: boolean\n}\n\nconst EditSubscriptionRow: FunctionComponent = ({\n\titem,\n\tisSelect,\n\treadOnly = false,\n\tnoDisable,\n\tnoFavorite,\n\tplaceholder,\n\tonChange,\n\tonSelect,\n}) => {\n\n\t// HOOKS\n\n\t// HANDLER\n\tconst handleDelete = () => onChange?.(null)\n\tconst handleKeyDown = (event: React.KeyboardEvent) => {\n\t\tif ((event.key == \"Delete\" || event.key == \"Backspace\") && isVoid(item)) {\n\t\t\tevent.preventDefault()\n\t\t\tonChange?.(null)\n\t\t}\n\t}\n\tconst handleChange = (subject: string) => onChange?.({ ...item, subject })\n\tconst handleChangeEnabled = (enabled: boolean) => {\n\t\tconst newSub: Subscription = { ...item, disabled: !enabled }\n\t\tonChange?.(newSub)\n\t}\n\tconst handleChangeFavorite = (enabled: boolean) => {\n\t\tconst newSub: Subscription = { ...item, favorite: enabled }\n\t\tonChange?.(newSub)\n\t}\n\n\t// RENDER\n\tconst value = item.subject\n\tconst clsInput = `${cls.input} ${!noDisable && item.disabled ? cls.disabled : \"\"}`\n\n\treturn }\n\t>\n\t\t{!noDisable && (\n\t\t\t\n\t\t)}\n\t\t{!noFavorite && (\n\t\t\t}\n\t\t\t\tfalseIcon={}\n\t\t\t/>\n\t\t)}\n\t\t\n\t\n}\n\nexport default EditSubscriptionRow\n\nconst isVoid = (item: Subscription) => !item?.subject || item.subject?.trim().length == 0\n\nexport const EditSubscriptionNoDisableRow: FunctionComponent = (props) => ","import EditSubscriptionRow from \"@/components/rows/EditSubscriptionRow\"\nimport { MessageStat, MessagesState, MessagesStore } from \"@/stores/stacks/connection/messages\"\nimport { Subscription } from \"@/types\"\nimport { useStore } from \"@priolo/jon\"\nimport dayjs from \"dayjs\"\nimport { FunctionComponent, useEffect, useMemo, useState } from \"react\"\nimport cls from \"./SubjectsDialog.module.css\"\nimport { Button, Dialog, EditList, FindInput, IconToggle, List, TitleAccordion } from \"@priolo/jack\"\nimport { RenderRowBaseProps } from \"@priolo/jack\"\n\n\n\ninterface Props {\n\tstore?: MessagesStore\n}\n\nconst SubjectsDialog: FunctionComponent = ({\n\tstore: msgSo,\n}) => {\n\n\t// STORE\n\tconst msgSa = useStore(msgSo) as MessagesState\n\n\t// HOOKs\n\tconst [subscriptions, setSubscriptions] = useState([])\n\tconst [filter, setFilter] = useState(\"\")\n\n\tuseEffect(() => {\n\t\tif (!msgSa.subscriptionsOpen) return\n\t\tconst subs = msgSa.subscriptions ?? []\n\t\tsetSubscriptions(subs.sort((s1, s2) => s1.subject.localeCompare(s2.subject)))\n\t\treturn () => { msgSo.setSubscriptionsOpen(false) }\n\t}, [msgSa.subscriptionsOpen, msgSa.connectionId])\n\n\t// HANDLER\n\tconst handleCancel = () => {\n\t\tmsgSo.setSubscriptionsOpen(false)\n\t}\n\tconst handleOk = () => {\n\t\tmsgSo.setSubscriptionsOpen(false)\n\t\tmsgSo.setSubscriptions(subscriptions)\n\t\tmsgSo.sendSubscriptions()\n\t\tmsgSo.updateSubscriptions()\n\t}\n\tconst handleChangeSubs = (newSubs: Subscription[]) => {\n\t\tsetSubscriptions(newSubs)\n\t}\n\tconst handleAllDisable = (check: boolean) => {\n\t\tfor (const sub of subscriptions) {\n\t\t\tsub.disabled = !check\n\t\t}\n\t\tsetSubscriptions([...subscriptions])\n\t}\n\tconst handleStatsSelect = (index: number) => {\n\t\tconst subject = stats[index].subject\n\t\tif (subscriptions.findIndex(s => s.subject == subject) != -1) return\n\t\tsubscriptions.push({\n\t\t\tsubject,\n\t\t\tdisabled: false,\n\t\t\tfavorite: false,\n\t\t})\n\t\tsetSubscriptions([...subscriptions])\n\t}\n\tconst handleClearStats = () => {\n\t\tmsgSo.setStats({})\n\t}\n\n\t// RENDER\n\tconst allCheck = useMemo(() => subscriptions.every(s => !s.disabled), [subscriptions])\n\tconst stats = useMemo(() => {\n\t\tconst txt = filter.toLowerCase().trim()\n\t\treturn Object.values(msgSa.stats)\n\t\t\t.filter(m => txt.length == 0 || m.subject?.toLowerCase().includes(txt))\n\t\t\t.sort((s1, s2) => s1.subject.localeCompare(s2.subject))\n\t}, [filter, msgSa.stats, msgSa.messages])\n\tconst noStats = !stats || stats.length == 0\n\n\treturn \n\t\t\t\n\t\t\tSUBJECTS\n\t\t
}\n\t\tstore={msgSo}\n\t\twidth={250}\n\t\topen={msgSa.subscriptionsOpen}\n\t\tonClose={handleCancel}\n\t>\n\t\t
\n\n\t\t\t\n\t\t\t\titems={subscriptions}\n\t\t\t\tonItemsChange={handleChangeSubs}\n\t\t\t\tonNewItem={() => ({ subject: \"\", disabled: false, favorite: true })}\n\t\t\t\tfnIsVoid={(item) => !(item?.subject) || item.subject.length == 0}\n\t\t\t\tRenderRow={EditSubscriptionRow}\n\t\t\t/>\n\n\t\t\t\n\t\t\t\t{!noStats &&\n\t\t\t\t\t setFilter(text)}\n\t\t\t\t\t/>\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\tclassName={cls.list}\n\t\t\t\t\titems={stats}\n\t\t\t\t\tonSelect={handleStatsSelect}\n\t\t\t\t\tRenderRow={MessageStatRow}\n\t\t\t\t/>\n\t\t\t\n\n\t\t\t
\n\t\t\t\t msgSo.setNoSysMessages(!msgSa.noSysMessages)}\n\t\t\t\t/>\n\t\t\t\t
DISCARDS SYSTEM MESSAGES
\n\t\t\t
\n\n\t\t\t
\n\t\t\t\t
\n\n\t\t
\n\t\n}\n\nexport default SubjectsDialog\n\nconst MessageStatRow: FunctionComponent> = ({\n\titem,\n}) => {\n\n\tconst time = useMemo(() => dayjs(item.last).format(\"YYYY-MM-DD HH:mm:ss\"), [item.last])\n\n\treturn
\n\t\t
{item.subject}
\n\t\t
\n\t\t\t
{item.counter}
\n\t\t\t
\n\t\t\t
{time}
\n\t\t
\n\t
\n}\n","import FrameworkCard from \"@/components/cards/FrameworkCard\"\nimport PauseIcon from \"@/icons/PauseIcon\"\nimport PlayIcon from \"@/icons/PlayIcon\"\nimport MessagesIcon from \"@/icons/cards/MessagesIcon\"\nimport { MessagesState, MessagesStore } from \"@/stores/stacks/connection/messages\"\nimport { DOC_TYPE } from \"@/types\"\nimport { Message } from \"@/types/Message\"\nimport { debounce } from \"@/utils/time\"\nimport { useStore } from \"@priolo/jon\"\nimport React, { FunctionComponent, useEffect, useMemo, useState } from \"react\"\nimport FormatDialog from \"../../../editor/FormatDialog\"\nimport clsCard from \"../../CardCyanDef.module.css\"\nimport MessagesList from \"../../messages/MessagesList\"\nimport SubjectsDialog from \"./SubjectsDialog\"\nimport { Button, FindInputHeader, FloatButton } from \"@priolo/jack\"\nimport { MessageStore } from \"../../../../stores/stacks/message\"\n\n\n\ninterface Props {\n\tstore?: MessagesStore\n}\n\nconst MessagesView: FunctionComponent = ({\n\tstore: msgSo,\n}) => {\n\n\t// STORE\n\tuseStore(msgSo.state.group)\n\tconst msgSa = useStore(msgSo) as MessagesState\n\n\t// HOOKs\n\tconst [textFind, setTextFind] = useState(msgSa.textSearch ?? \"\")\n\tuseEffect(() => {\n\t\tmsgSo.fetchIfVoid()\n\t}, [])\n\tuseEffect(() => {\n\t\tif (msgSa.linked == null && msgSa.subscriptions?.length > 0 && msgSa.subscriptions.every(s => s.disabled)) {\n\t\t\tmsgSo.setSubscriptionsOpen(true)\n\t\t}\n\t}, [msgSa.subscriptions])\n\n\t// HANDLER\n\tconst handleClickSubs = (e: React.MouseEvent, select: boolean) => msgSo.setSubscriptionsOpen(!select)\n\tconst handleFormatsClick = () => msgSo.setFormatsOpen(true)\n\tconst handleSendClick = () => {\n\t\tif (isSendSelect) {\n\t\t\tmsgSo.state.group.addLink({ view: null, parent: msgSo, anim: true })\n\t\t} else {\n\t\t\tmsgSo.setSubscriptionsOpen(false)\n\t\t\tmsgSo.openMessageSend()\n\t\t}\n\t}\n\tconst hendleMessageClick = (message: Message) => msgSo.openMessageDetail(message)\n\tconst handleClear = () => msgSo.setMessages([])\n\tconst handleSearchChange = (value: string) => {\n\t\tsetTextFind(value)\n\t\tdebounce(`text-find-${msgSa.uuid}`, () => msgSo.setTextSearch(value), 2000)\n\t}\n\tconst handlePause = () => {\n\t\tmsgSo.setPause(!msgSa.pause)\n\t\tmsgSo.sendSubscriptions()\n\t}\n\n\t// RENDER\n\tconst messages = useMemo(() => msgSo.getFiltered(), [msgSa.textSearch, msgSa.messages])\n\tconst formatSel = msgSa.format.toUpperCase()\n\tconst isSendSelect = msgSa.linked?.state.type == DOC_TYPE.MESSAGE_SEND\n\tconst storeMsg = (msgSo.state.linked as MessageStore)\n\t\tconst selectedIndex = useMemo(() => {\n\t\t\tif (!!messages && storeMsg?.state.type == DOC_TYPE.MESSAGE && !!storeMsg.state.message) {\n\t\t\t\treturn messages.findIndex(m => m.receivedAt == storeMsg.state.message.receivedAt)\n\t\t\t}\n\t\t\treturn null\n\t\t}, [storeMsg?.state?.message?.receivedAt])\n\n\treturn }\n\t\tstore={msgSo}\n\t\tactionsRender={<>\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t>\n\n\t\t\n\t\t\t\t{msgSa.pause ? : }\n\t\t\t}\n\t\t/>\n\n\t\t\n\n\t\t\n\n\t\n}\n\nexport default MessagesView\n\n","const GitHubIcon = (props) => (\n\t\n\t\t\n\t\n)\n\nexport default GitHubIcon\n","const HelpIcon = (props) => (\n\t\n\t\t\n\t\n)\n\nexport default HelpIcon","const KeyboardIcon = (props) => (\n\t\n\t\t\n\t\n)\n\nexport default KeyboardIcon","import FrameworkCard from \"@/components/cards/FrameworkCard\"\nimport GitHubIcon from \"@/icons/GitHubIcon\"\nimport HelpIcon from \"@/icons/HelpIcon\"\nimport { AboutStore } from \"@/stores/stacks/about\"\nimport { Button, TitleAccordion } from \"@priolo/jack\"\nimport { useStore } from \"@priolo/jon\"\nimport React, { FunctionComponent, useEffect } from \"react\"\nimport clsCard from \"../CardWhiteDef.module.css\"\nimport cls from \"./View.module.css\"\nimport { buildStore } from \"../../../stores/docs/utils/factory\"\nimport { DOC_TYPE } from \"../../../types\"\nimport { ShortcutStore } from \"../../../stores/stacks/shortcut\"\nimport KeyboardIcon from \"../../../icons/KeyboardIcon\"\n\n\n\ninterface Props {\n\tstore?: AboutStore\n\tstyle?: React.CSSProperties,\n}\n\nconst AboutView: FunctionComponent = ({\n\tstore: aboutSo,\n\tstyle,\n}) => {\n\n\t// STORE\n\tconst aboutSa = useStore(aboutSo)\n\n\t// HOOKs\n\tuseEffect(() => {\n\t\taboutSo.fetchIfVoid()\n\t}, [])\n\n\t// HANDLER\n\tconst handleUpdateClick = () => window.open(\"https://natsnui.app/downloads/\")\n\tconst handleGitHubClick = () => window.open(\"https://github.com/nats-nui/nui\")\n\tconst handleHelpClick = () => window.open(\"https://natsnui.app/help/\")\n\tconst handleShortcutClick = () => aboutSo.openShortcut()\n\n\t// RENDER\n\tconst current = aboutSa.about?.currentVersion ?? \"--\"\n\tconst latest = aboutSa.about?.latestVersion ?? \"--\"\n\treturn ?
}\n\t\tstore={aboutSo}\n\t>\n\t\t
\n\n\t\t
\n\n\t\t\t
\n\t\t\t\t
GitHub
\n\n\t\t\t\t
Shortcut
\n\n\t\t\t\t
Help
\n\n\t\t\t
\n\n\t\t\t
\n\n\t\t\t
\n\t\t\t\t
CURRENT
\n\t\t\t\t
{current}
\n\t\t\t
\n\n\t\t\t
\n\t\t\t\t
LAST
\n\t\t\t\t
{latest}
\n\t\t\t
\n\n\t\t\t{aboutSa.about?.shouldUpdate && <>\n\n\t\t\t\t\n\t\t\t}\n\n\t\t
\n\n\t\n}\n\nexport default AboutView\n\n","export default \"data:image/svg+xml,%3csvg%20width='70'%20height='70'%20viewBox='0%200%2070%2070'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='70'%20height='70'%20rx='15'%20fill='%23EBFB35'/%3e%3cpath%20d='M22.9219%2057.562V60.1653H45.1947V57.562C45.3352%2053.986%2046.0428%2052.1353%2047.5087%2048.8843C50.4012%2045.124%2052.7153%2037.8926%2052.7153%2037.8926C53.2939%2032.3967%2052.7153%2026.9008%2052.7153%2026.9008C52.8665%2024.9059%2053.2938%2024.2976%2054.1616%2022.2728C55.0293%2020.248%2054.7401%2019.3802%2052.426%2019.0909C50.1119%2018.8017%2047.937%2021.9835%2047.5087%2023.719C47.0803%2025.4545%2046.5389%2027.9767%2047.2195%2029.5041C46.828%2031.598%2046.9279%2032.5819%2044.6162%2033.2645L44.6162%2013.8843C44.6162%2012.438%2043.4591%2010.9918%2041.7236%2010.9918C39.9881%2010.9918%2039.1203%2012.7273%2039.1203%2014.1736V27.4794C39.1203%2028.6364%2038.5418%2028.9256%2037.674%2028.9256C36.8062%2028.9256%2036.2277%2028.0579%2036.2277%2026.9009V11.8595C36.2277%2010.9918%2035.36%209.25623%2033.6244%209.25623C31.8889%209.25623%2031.0211%2010.7025%2031.0211%2012.1488V28.0579C31.0114%2029.0203%2030.7319%2029.5042%2029.8641%2029.5042C28.9963%2029.5042%2028.4014%2029.0952%2028.4178%2027.4794V14.1736C28.4178%2012.7273%2027.8393%2010.9918%2026.1038%2010.9918C24.3682%2010.9918%2023.5005%2012.1488%2023.5005%2014.1736V28.9256C23.3687%2030.403%2023.2336%2031.1227%2022.3434%2031.2397C21.4541%2031.0623%2021.3076%2030.3777%2021.1864%2028.9256L20.8972%2025.7438L15.9798%2027.1901C15.9798%2027.1901%2015.17%2035.5785%2015.9798%2039.6281C16.7896%2043.6777%2018.5831%2045.9918%2020.8972%2049.4628L20.9253%2049.5336C22.1867%2052.7038%2022.9026%2054.503%2022.9219%2057.562Z'%20fill='%23F374E6'/%3e%3cpath%20d='M35.9385%2049.1359C34.4922%2047.7273%2032.1781%2043.967%2034.4922%2039.6281C36.8063%2035.2893%2040.5666%2035%2044.6162%2033.2645M44.6162%2033.2645L44.6162%2013.8843C44.6162%2012.438%2043.4591%2010.9918%2041.7236%2010.9918C39.9881%2010.9918%2039.1203%2012.7273%2039.1203%2014.1736V27.4794C39.1203%2028.6364%2038.5418%2028.9256%2037.674%2028.9256C36.8062%2028.9256%2036.2277%2028.0579%2036.2277%2026.9009V11.8595C36.2277%2010.9918%2035.36%209.25623%2033.6244%209.25623C31.8889%209.25623%2031.0211%2010.7025%2031.0211%2012.1488V28.0579C31.0114%2029.0203%2030.7319%2029.5042%2029.8641%2029.5042C28.9963%2029.5042%2028.4014%2029.0952%2028.4178%2027.4794V14.1736C28.4178%2012.7273%2027.8393%2010.9918%2026.1038%2010.9918C24.3682%2010.9918%2023.5005%2012.1488%2023.5005%2014.1736V28.9256C23.3687%2030.403%2023.2336%2031.1227%2022.3434%2031.2397C21.4541%2031.0622%2021.3076%2030.3777%2021.1864%2028.9256L20.8972%2025.7438L15.9798%2027.1901C15.9798%2027.1901%2015.17%2035.5785%2015.9798%2039.6281C16.7896%2043.6777%2018.5831%2045.9918%2020.8972%2049.4628C22.176%2052.6772%2022.9024%2054.4803%2022.9219%2057.562V60.1653H45.1947V57.562C45.3352%2053.986%2046.0428%2052.1353%2047.5087%2048.8843C50.4012%2045.124%2052.7153%2037.8926%2052.7153%2037.8926C53.2939%2032.3967%2052.7153%2026.9008%2052.7153%2026.9008C52.8665%2024.9059%2053.2938%2024.2976%2054.1616%2022.2728C55.0293%2020.248%2054.7401%2019.3802%2052.426%2019.0909C50.1119%2018.8017%2047.937%2021.9835%2047.5087%2023.719C47.0803%2025.4545%2046.5389%2027.9767%2047.2195%2029.5041C46.828%2031.598%2046.9279%2032.5819%2044.6162%2033.2645Z'%20stroke='black'/%3e%3c/svg%3e\"","import FrameworkCard from \"@/components/cards/FrameworkCard\"\nimport { TitleAccordion } from \"@priolo/jack\"\nimport { useStore } from \"@priolo/jon\"\nimport React, { FunctionComponent } from \"react\"\nimport { ShortcutStore } from \"../../../stores/stacks/shortcut\"\nimport clsCard from \"../CardWhiteDef.module.css\"\nimport cls from \"./View.module.css\"\nimport ShortcutIcon from \"@/assets/Shortcut.svg\"\n\ninterface Props {\n\tstore?: ShortcutStore\n\tstyle?: React.CSSProperties,\n}\n\nconst ShortcutView: FunctionComponent = ({\n\tstore: store,\n\tstyle,\n}) => {\n\n\t// STORE\n\tuseStore(store)\n\n\t// HOOKs\n\n\t// HANDLER\n\n\t// RENDER\n\treturn ?
}\n\t\tstore={store}\n\t>\n\t\t
\n\t\t\t\"Shortcut\"\n\t\t
\n\n\t\t
\n\n\n\t\t\t
\n\t\t\t\t
ALT
\n\t\t\t\t+\n\t\t\t\t
\n\t\t\t
\n\t\t\t
Move focus to the right
\n\n\t\t\t
\n\t\t\t\t
ALT
\n\t\t\t\t+\n\t\t\t\t
\n\t\t\t
\n\t\t\t
Move focus to the left
\n\n\t\t\t
\n\t\t\t\t
ALT
\n\t\t\t\t+\n\t\t\t\t
\n\t\t\t
\n\t\t\t
Focus to component below
\n\n\t\t\t
\n\t\t\t\t
ALT
\n\t\t\t\t+\n\t\t\t\t
\n\t\t\t
\n\t\t\t
Focus to component above
\n\n\t\t\t
\n\t\t\t\t
ALT
\n\t\t\t\t+\n\t\t\t\t
F
\n\t\t\t
\n\t\t\t
Focus on \"text find\" if available
\n\n\n\n\t\t\t
\n\n\n\n\t\t\t
\n\t\t\t\t
ALT
\n\t\t\t\t+\n\t\t\t\t
Z
\n\t\t\t
\n\t\t\t
Focus from MAIN to DRAWER and vice versa
\n\n\t\t\t
\n\t\t\t\t
ALT
\n\t\t\t\t+\n\t\t\t\t
X
\n\t\t\t
\n\t\t\t
Move card from MAIN to DRAWER and vice versa
\n\n\n\n\t\t\t
\n\n\n\n\t\t\t
\n\t\t\t\t
ALT
\n\t\t\t\t+\n\t\t\t\t
CTRL
\n\t\t\t\t+\n\t\t\t\t
\n\t\t\t
\n\t\t\t
Move CARD to the right
\n\n\t\t\t
\n\t\t\t\t
ALT
\n\t\t\t\t+\n\t\t\t\t
CTRL
\n\t\t\t\t+\n\t\t\t\t
\n\t\t\t
\n\t\t\t
Move CARD to the left
\n\n\t\t\t
\n\t\t\t\t
ALT
\n\t\t\t\t+\n\t\t\t\t
CTRL
\n\t\t\t\t+\n\t\t\t\t
\n\t\t\t
\n\t\t\t
Maximize CARD / ZEN MODE
\n\n\t\t\t
\n\t\t\t\t
ALT
\n\t\t\t\t+\n\t\t\t\t
CTRL
\n\t\t\t\t+\n\t\t\t\t
\n\t\t\t
\n\t\t\t
Minimize CARD
\n\n\t\t\t
\n\t\t\t\t
ALT
\n\t\t\t\t+\n\t\t\t\t
BACKSPACE
\n\t\t\t
\n\t\t\t
Close CARD
\n\n\t\t\t
\n\t\t\t\t
ALT
\n\t\t\t\t+\n\t\t\t\t
D
\n\t\t\t
\n\t\t\t
Detach CARD
\n\n\n\n\t\t\t
\n\n\n\n\t\t\t
\n\t\t\t\t
ALT
\n\t\t\t\t+\n\t\t\t\t
C
\n\t\t\t
\n\t\t\t
Open CONNECTIONS card
\n\n\t\t\t
\n\t\t\t\t
ALT
\n\t\t\t\t+\n\t\t\t\t
1-9
\n\t\t\t
\n\t\t\t
Execute a CARD button
\n\n\n\t\t
\n\n\n\n\t\n}\n\nexport default ShortcutView\n\n","import { BucketStore } from \"@/stores/stacks/buckets/detail\"\nimport { DOC_TYPE, EDIT_STATE } from \"@/types\"\nimport { Button, IconButton, OptionsCmp } from \"@priolo/jack\"\nimport { useStore } from \"@priolo/jon\"\nimport { FunctionComponent } from \"react\"\nimport ConfigIcon from \"../../../../icons/cards/ConfigIcon\"\n\n\n\ninterface Props {\n\tstore?: BucketStore\n}\n\nconst ActionsCmp: FunctionComponent = ({\n\tstore: bucketSo,\n}) => {\n\n\t// STORE\n\tconst bucketSa = useStore(bucketSo)\n\n\t// HOOKs\n\n\t// HANDLER\n\tconst handleEditClick = async () => bucketSo.setEditState(EDIT_STATE.EDIT)\n\tconst handleCancelClick = () => bucketSo.restore()\n\tconst handleSaveClick = async () => bucketSo.save()\n\tconst handleConfigClick = () => bucketSo.openJsonConfig()\n\n\t// RENDER\n\tconst configOpen = bucketSa.linked?.state.type == DOC_TYPE.JSON_CONFIG\n\t\n\tif (bucketSa.editState == EDIT_STATE.NEW) {\n\t\treturn <>\n\t\t\t\n\t\t\t\n\t\t\n\n\t} else if (bucketSa.editState == EDIT_STATE.READ) {\n\t\treturn <>\n\t\t\t\n\t\t\t
\n\t\t\t\n\t\t\n\t}\n\n\t// EDIT\n\treturn <>\n\t\t\n\t\t\n\t\t\n\t\n}\n\nexport default ActionsCmp\n","const ArrowRightIcon = (props) => (\n\t\n\t\t\n\t\n)\n\nexport default ArrowRightIcon","import { ViewStore } from \"@/stores/stacks/viewBase\"\nimport { FunctionComponent, useState } from \"react\"\nimport { Accordion, IconToggle, ListDialog, NumberInput, StringUpRow } from \"@priolo/jack\"\n\n\n\nenum BYTE {\n\tBYTES = \"bytes\",\n\tKIB = \"kib\",\n\tMIB = \"mib\",\n\tGIB = \"gib\",\n\tTIB = \"tib\",\n}\n\ninterface Props {\n\tstore?: ViewStore\n\tvalue: number\n\tlabel?: string\n\treadOnly?: boolean\n\tdesiredDefault?: number\n\tinitDefault?: number\n\tonChange?: (valueNew: number) => void\n}\n\nconst MaxBytesCmp: FunctionComponent = ({\n\tstore,\n\tvalue,\n\tlabel,\n\treadOnly,\n\tonChange,\n \tdesiredDefault = -1,\n \tinitDefault = 0,\n}) => {\n\n\t// STORE\n\n\t// HOOKs\n\tconst [unit, setUnit] = useState(BYTE.BYTES)\n\n\t// HANDLER\n\tconst handlePropChange = (valueNew: number) => {\n\t\tconst maxBytes = valueToBytes(valueNew, unit)\n\t\tonChange?.(maxBytes)\n\t}\n\tconst handleEnabledCheck = (check: boolean) => onChange?.(check ? initDefault : desiredDefault)\n\tconst handleUnitChange = (index: number) => setUnit(Object.values(BYTE)[index])\n\n\t// RENDER\n\tconst isEnabled = value != null && value != desiredDefault\n\tconst valueShow = bytesToValue(value, unit)\n\n\treturn
\n\t\t
\n\t\t\t\n\t\t\t
{label}
\n\t\t
\n\t\t\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\n\t\t\t
\n\t\t
\n\t
\n}\n\nexport default MaxBytesCmp\n\nfunction bytesToValue(value: number, to: BYTE) {\n\tswitch (to) {\n\t\tcase BYTE.TIB:\n\t\t\treturn Math.round(value / 1099511627776)\n\t\tcase BYTE.GIB:\n\t\t\treturn Math.round(value / 1073741824)\n\t\tcase BYTE.MIB:\n\t\t\treturn Math.round(value / 1048576)\n\t\tcase BYTE.KIB:\n\t\t\treturn Math.round(value / 1024)\n\t\tdefault:\n\t\t\treturn value\n\t}\n}\n\nfunction valueToBytes(value: number, from: BYTE) {\n\tswitch (from) {\n\t\tcase BYTE.TIB:\n\t\t\treturn value * 1099511627776\n\t\tcase BYTE.GIB:\n\t\t\treturn value * 1073741824\n\t\tcase BYTE.MIB:\n\t\t\treturn value * 1048576\n\t\tcase BYTE.KIB:\n\t\t\treturn value * 1024\n\t\tdefault:\n\t\t\treturn value\n\t}\n}","import { ViewStore } from \"@/stores/stacks/viewBase\"\nimport { FunctionComponent, useEffect, useState } from \"react\"\nimport { Accordion, IconToggle, ListDialog, NumberInput, StringUpRow } from \"@priolo/jack\"\n\n\n\nexport enum TIME {\n\tNS = \"nano s.\",\n\tMS = \"milli s.\",\n\tSECONDS = \"seconds\",\n\tMINUTES = \"minutes\",\n\tHOURS = \"hours\",\n\tDAYS = \"days\",\n}\n\nconst unitsInNs = {\n\t[TIME.NS]: 1,\n\t[TIME.MS]: 1e6,\n\t[TIME.SECONDS]: 1e9,\n\t[TIME.MINUTES]: 60 * 1e9,\n\t[TIME.HOURS]: 60 * 60 * 1e9,\n\t[TIME.DAYS]: 60 * 60 * 24 * 1e9\n};\n\ninterface Props {\n\tstore?: ViewStore\n\tlabel?: string\n\tvalue: number\n\treadOnly?: boolean\n\tdesiredDefault?: number\n\tinitDefault?: number\n\tinputUnit?: TIME\n\toutputUnit?: TIME\n\tonChange?: (valueNew: number) => void\n}\n\nconst MaxTimeCmp: FunctionComponent = ({\n\tstore,\n\tvalue,\n\tlabel,\n\treadOnly,\n\tdesiredDefault = -1,\n\tinitDefault = 0,\n\tinputUnit = TIME.NS,\n\toutputUnit = TIME.NS,\n\tonChange,\n}) => {\n\n\t// STORE\n\n\t// HOOKs\n\tconst [valueShow, setValueShow] = useState(nsToValue(valueToNs(value, outputUnit), inputUnit))\n\n\tconst [unit, setUnit] = useState(inputUnit)\n\tconst [valueShowNeedUpdate, setValueShowNeedUpdate] = useState(false)\n\n\tuseEffect(() => {\n\t\tconst valueInNs = valueToNs(value, outputUnit)\n\t\tconst largestUnit = getLargestUnit(valueInNs, inputUnit)\n\t\tsetUnit(largestUnit)\n\t\tsetValueShow(nsToValue(valueInNs, largestUnit))\n\t}, []);\n\n\tuseEffect(() => {\n\t\tif (valueShowNeedUpdate) {\n\t\t\thandlePropChange(valueShow)\n\t\t\tsetValueShowNeedUpdate(false)\n\t\t}\n\t}, [unit, valueShowNeedUpdate])\n\n\t// HANDLER\n\tconst handlePropChange = (value: number) => {\n\t\tconst duration = nsToValue(valueToNs(value, unit), outputUnit)\n\t\tsetValueShow(nsToValue(valueToNs(duration, outputUnit), unit))\n\t\tonChange?.(duration)\n\t}\n\tconst handleUnitChange = (index: number) => {\n\t\tsetValueShowNeedUpdate(true)\n\t\tsetUnit(Object.values(TIME)[index])\n\t}\n\n\tconst handleEnabledCheck = (check: boolean) => onChange?.(check ? initDefault : desiredDefault)\n\n\t// RENDER\n\tconst isEnabled = (value != null || initDefault == null) && value !== desiredDefault\n\n\treturn
\n\t\t
\n\t\t\t\n\t\t\t
{label}
\n\t\t
\n\t\t\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\n\t\t\t
\n\t\t
\n\t
\n}\n\nexport default MaxTimeCmp\n\nfunction nsToValue(value: number, from: TIME) {\n\treturn value / unitsInNs[from];\n}\n\nfunction valueToNs(value: number, from: TIME) {\n\treturn value * unitsInNs[from];\n}\n\nfunction getLargestUnit(valueInNs: number, defaultUnit: TIME): TIME {\n\tlet largestUnit = TIME.NS;\n\tif (valueInNs == 0) {\n\t\treturn defaultUnit;\n\t}\n\tfor (const [unit, ns] of Object.entries(unitsInNs)) {\n\t\tif (valueInNs % ns == 0) {\n\t\t\tlargestUnit = unit as TIME;\n\t\t} else {\n\t\t\tbreak;\n\t\t}\n\t}\n\n\treturn largestUnit;\n}\n\n","import CloseIcon from \"@/icons/CloseIcon\"\nimport { FunctionComponent } from \"react\"\nimport { Box, IconButton, TextInput } from \"@priolo/jack\"\nimport { RenderRowBaseProps } from \"@priolo/jack\"\nimport { SubjectTransform } from \"@/types/Stream.ts\";\n\n\n\nconst EditSubjectTransformRow: FunctionComponent> = ({\n\titem,\n\tisSelect,\n\treadOnly = false,\n\tplaceholder,\n\tonChange,\n\tonSelect,\n}) => {\n\n\n\tconst handleSourceChange = (value: string) => {\n\t\tonChange({ src: value, dest: item?.dest ?? \"\" })\n\t}\n\tconst handleDestChange = (value: string) => {\n\t\tonChange({ src: item?.src ?? \"\", dest: value })\n\t}\n\tconst handleDelete = () => onChange?.(null)\n\n\treturn (\n\t\t}\n\t\t>\n\t\t\t
\n\t\t\t\t\n\t\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t
\n\t\t
\n\t)\n}\n\nexport default EditSubjectTransformRow","import { Source, SubjectTransform } from \"@/types/Stream\"\nimport { NumberInput, TextInput, Options, IconToggle, TooltipWrapCmp, DateTimeInput, EditList } from \"@priolo/jack\"\nimport { FunctionComponent, useEffect, useState } from \"react\"\nimport dayjs from \"dayjs\";\nimport EditSubjectTransformRow from \"../../../../rows/EditSubjectTransformRow\";\n\n\ninterface Props {\n\tsource: Source\n\treadOnly?: boolean\n\tallStream?: string[]\n\tonChange: (source: Source) => void\n}\n\nconst EditSourceCmp: FunctionComponent = ({\n\tsource,\n\treadOnly,\n\tallStream,\n\tonChange,\n}) => {\n\n\t// HOOKS\n\n\t//chose if render sources select dialog or external source dialog\n\tconst [isExternal, setIsExternal] = useState(false)\n\tconst [optStartTime, setOptStartTime] = useState(\"\")\n\tuseEffect(() => {\n\t\tsetIsExternal(source?.external != null)\n\t\tsetOptStartTime(source?.optStartTime ? dayjs(source.optStartTime).format(\"YYYY-MM-DD HH:mm:ss\") : \"\")\n\t}, [source.name]);\n\t// HANDLER\n\tconst handleNameChange = (name: string) => onChange?.({ ...source, name })\n\tconst handleSequenceChange = (optStartSeq: number) => onChange?.({ ...source, optStartSeq })\n\tconst handleStartTimeChange = (startTime: any) => {\n\t\tsetOptStartTime(startTime)\n\t\tconst time = dayjs(startTime)\n\t\tconst isoTime = time.isValid() ? time.toISOString() : null\n\t\tonChange?.({ ...source, optStartTime: isoTime })\n\t}\n\tconst handleFilterSubjectChange = (filterSubject: string) => onChange?.({ ...source, filterSubject })\n\n\tconst handleIsExternalChange = (check: boolean) => {\n\t\tsource.external = null\n\t\tif (check) {\n\t\t\tsource.external = { api: \"\", deliver: \"\" }\n\t\t}\n\t\thandleNameChange(\"\")\n\t\tsetIsExternal(source?.external != null)\n\t}\n\n\tconst handleExternalApiChange = (api: string) => onChange?.({ ...source, external: { ...source.external, api } })\n\tconst handleExternalDeliverChange = (deliver: string) => onChange?.({ ...source, external: { ...source.external, deliver } })\n\n\tconst handleSubjectTransformsChange = (subjectTransforms: SubjectTransform[]) => {\n\t\tonChange?.({ ...source, subjectTransforms })\n\t}\n\n\t// RENDER\n\tif (!source) return null\n\tconst timeRender = source.optStartTime ? dayjs(source.optStartTime).format(\"YYYY-MM-DD HH:mm:ss\") : \"\"\n\tconst haveListStream = allStream && allStream.length > 0\n\n\treturn
\n\n\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t
EXTERNAL
\n\t\t\t\t\n\t\t\t
\n\t\t
\n\n\t\t
\n\t\t\t
NAME
\n\t\t\t{!isExternal && haveListStream\n\t\t\t\t? height={500}\n\t\t\t\t\tvalue={source.name}\n\t\t\t\t\titems={allStream}\n\t\t\t\t\treadOnly={readOnly}\n\t\t\t\t\tonSelect={handleNameChange}\n\t\t\t\t/>\n\t\t\t\t: \n\t\t\t}\n\t\t
\n\n\t\t{isExternal &&
\n\t\t\t
JS API
\n\t\t\t\n\t\t
}\n\n\t\t{isExternal &&
\n\t\t\t
DELIVER SUBJECT
\n\t\t\t\n\t\t
}\n\n\t\t
\n\t\t\t
START SEQUENCE
\n\t\t\t\n\t\t
\n\n\t\t
\n\t\t\t
START TIME
\n\t\t\t\n\t\t
\n\n\t\t
\n\t\t\t
FILTER SUBJECTS
\n\t\t\t\n\t\t
\n\n\t\t
\n\t\t\t
SUBJECT TRANSFORMS
\n\t\t\t\n\t\t\t\tstyle={{ marginTop: 5 }}\n\t\t\t\titems={source.subjectTransforms}\n\t\t\t\tonItemsChange={handleSubjectTransformsChange}\n\t\t\t\tplaceholder=\"eg. orders.* or telemetry.>\"\n\t\t\t\treadOnly={readOnly}\n\t\t\t\tonNewItem={() => ({ src: \"\", dest: \"\" })}\n\t\t\t\tfnIsVoid={i => !(i?.src.trim().length > 0) || !(i?.dest.trim().length > 0)}\n\t\t\t\tRenderRow={EditSubjectTransformRow}\n\t\t\t/>\n\t\t
\n\n\t
\n}\n\nexport default EditSourceCmp\n","import { newSource } from \"@/stores/stacks/streams/utils/factory\"\nimport { Source } from \"@/types/Stream\"\nimport { EditItemRow, EditList, ElementDialog, LIST_ACTIONS, ViewStore } from \"@priolo/jack\"\nimport { useStore } from \"@priolo/jon\"\nimport { FunctionComponent, useRef, useState } from \"react\"\nimport EditSourceCmp from \"./EditSourceCmp\"\n\n\n\ninterface Props {\n\tstore?: ViewStore //StreamStore\n\tsources: Source[]\n\tallStreams?: string[]\n\tonChangeSources?: (source: Source[]) => void\n\treadOnly?: boolean\n}\n\nconst SourcesCmp: FunctionComponent = ({\n\tstore: streamSo,\n\tsources = [],\n\tallStreams,\n\tonChangeSources,\n\treadOnly = false,\n}) => {\n\n\tconst haveNew = () => sources?.some(s => !(s.name?.length > 0))\n\n\t// STORE\n\tuseStore(streamSo)\n\n\t// HOOKs\n\t// indica praticamente se la dialog è aperta o no\n\tconst [elementSource, setElementSource] = useState(null)\n\t// indice selezionato probabilmente da sostituire con id\n\tconst [souceIndex, setSourceIndex] = useState(null)\n\t// riferimento alla lista cosi' se clicco su di essa la dialog non si chiude\n\tconst listRef = useRef(null)\n\n\t// HANDLER\n\n\tconst handleSelectChange = (index: number, e?: React.BaseSyntheticEvent) => {\n\t\tsetElementSource(index == -1 ? null : e.target)\n\t\tsetSourceIndex(index)\n\t}\n\n\tconst handleSourcesChange = (sources: Source[], action: LIST_ACTIONS) => {\n\t\tonChangeSources?.(sources)\n\t\tif (action == LIST_ACTIONS.DELETE) handleSelectChange(-1)\n\t}\n\n\tconst handleSourceChange = (source: Source) => {\n\t\tsources[souceIndex] = source\n\t\tonChangeSources?.(sources)\n\t}\n\n\tconst handleDialogClose = (e) => {\n\t\t// se clicco sulla lista stessa allora non chiudere nulla\n\t\t//if (listRef && listRef.current.contains(e.target)) return\n\t\tconst rect = listRef.current.getBoundingClientRect();\n\t\tconst x = e.clientX;\n\t\tconst y = e.clientY;\n\t\tif (x >= rect.left && x <= rect.right && y >= rect.top && y <= rect.bottom) return\n\t\thandleSelectChange(-1)\n\t}\n\n\tconst handleNewSource = (index: number) => {\n\t\tif (haveNew()) return null\n\t\treturn newSource();\n\t}\n\n\t// RENDER\n\tif ( sources == null) return null\n\n\treturn <>\n\t\t ref={listRef} keepSelectOnBlur toggleSelect\n\t\t\titems={sources}\n\t\t\tselect={souceIndex}\n\t\t\treadOnly={readOnly}\n\t\t\tonItemsChange={handleSourcesChange}\n\t\t\tonSelectChange={handleSelectChange}\n\t\t\tonNewItem={handleNewSource}\n\t\t\tRenderRow={(props) => }\n\t\t\tfnIsVoid={item => !item.name || item.name.trim().length == 0}\n\t\t/>\n\t\t\n\t\t\t\n\t\t\n\t\n}\n\nexport default SourcesCmp\n","import ArrowRightIcon from \"@/icons/ArrowRightIcon\"\nimport { BucketStore } from \"@/stores/stacks/buckets/detail\"\nimport { EDIT_STATE } from \"@/types\"\nimport { BucketConfig } from \"@/types/Bucket\"\nimport { Source, STORAGE } from \"@/types/Stream\"\nimport { Accordion, Component, EditList, EditStringRow, ElementDialog, IconToggle, ListDialog, NumberInput, StringUpRow, TextInput, TitleAccordion } from \"@priolo/jack\"\nimport { useStore } from \"@priolo/jon\"\nimport { FunctionComponent, useState } from \"react\"\nimport MaxBytesCmp from \"../../../input/MaxBytesCmp\"\nimport MaxTimeCmp from \"../../../input/MaxTimeCmp\"\nimport EditSourceCmp from \"../../streams/detail/cmp/EditSourceCmp\"\nimport SourcesCmp from \"../../streams/detail/cmp/SourcesCmp\"\nimport { formatNumber } from \"../../../../utils/string\"\n\n\n\ninterface Props {\n\tstore?: BucketStore\n}\n\nconst Form: FunctionComponent = ({\n\tstore: bucketSo,\n}) => {\n\n\t// STORE\n\tconst bucketSa = useStore(bucketSo)\n\n\t// HOOKs\n\n\t// HANDLER\n\tconst handlePropChange = (prop: { [name: string]: any }) => {\n\t\tbucketSo.setBucketConfig({ ...bucketSa.bucket.config, ...prop })\n\t}\n\tconst handlePlacementPropChange = (prop: { [name: string]: any }) => {\n\t\tconst config = bucketSa.bucket.config\n\t\tconfig.placement = { ...config.placement, ...prop }\n\t\tbucketSo.setBucketConfig(config)\n\t}\n\tconst handleMetadataPropChange = (metadata: { [name: string]: any }) => {\n\t\tconst config = bucketSa.bucket.config\n\t\tconfig.metadata = metadata\n\t\tbucketSo.setBucketConfig(config)\n\t}\n\tconst handleRepublishPropChange = (prop: { [name: string]: any }) => {\n\t\tconst config = { ...bucketSa.bucket.config }\n\t\tconfig.republish = { ...config.republish, ...prop }\n\t\tbucketSo.setBucketConfig(config)\n\t}\n\tconst handleRepublishToggle = (check: boolean) => {\n\t\tconst config = { ...bucketSa.bucket.config }\n\t\tconfig.republish = check ? { src: \"\", dest: \"\", headersOnly: false } : null\n\t\tbucketSo.setBucketConfig(config)\n\t}\n\n\tconst [mirrorElm, setMirrorElm] = useState(null)\n\tconst handleMirrorCheck = (check: boolean) => {\n\t\tif (check && !bucketSa.bucket.config.mirror) {\n\t\t\tbucketSo.setBucketConfig({ mirror: { name: \"\", optStartSeq: 0, optStartTime: null, filterSubject: \"\" } })\n\t\t\treturn\n\t\t}\n\t\tif (!check && bucketSa.bucket.config.mirror) {\n\t\t\tbucketSo.setBucketConfig({ mirror: null })\n\t\t}\n\t}\n\tconst handleMirrorPropChange = (mirror: Source) => {\n\t\tconst config = { ...bucketSa.bucket.config }\n\t\tconfig.mirror = mirror\n\t\tbucketSo.setBucketConfig(config)\n\t}\n\n\n\t// RENDER\n\tconst bucket: BucketConfig = bucketSa.bucket?.config\n\tif (bucket == null) return null\n\tconst inRead = bucketSa.editState == EDIT_STATE.READ\n\tconst inNew = bucketSa.editState == EDIT_STATE.NEW\n\n\treturn
\n\n\t\t{inRead && (\n\t\t\t\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t
VALUES
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t{formatNumber(bucketSa.bucket.values)}\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t
BYTES
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t{formatNumber(bucketSa.bucket.bytes)}\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\n\t\t)}\n\n\t\t\n\n\t\t\t
\n\t\t\t\t
NAME
\n\t\t\t\t handlePropChange({ bucket })}\n\t\t\t\t\treadOnly={inRead || !inNew}\n\t\t\t\t/>\n\t\t\t
\n\n\t\t\t
\n\t\t\t\t
DESCRIPTION
\n\t\t\t\t handlePropChange({ description })}\n\t\t\t\t\treadOnly={inRead}\n\t\t\t\t/>\n\t\t\t
\n\n\t\t\t
\n\t\t\t\t
STORAGE
\n\t\t\t\t handlePropChange({ storage: Object.values(STORAGE)[index] })}\n\t\t\t\t/>\n\t\t\t
\n\n\t\t
\n\n\t\t\n\n\t\t\t
\n\t\t\t\t
SOURCES
\n\t\t\t\t handlePropChange({ sources })}\n\t\t\t\t/>\n\t\t\t
\n\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t
MIRROR
\n\t\t\t\t
\n\t\t\t\t{!!bucket.mirror && <>\n\t\t\t\t\t setMirrorElm(!!mirrorElm ? null : e.target as HTMLElement)}\n\t\t\t\t\t\tenterRender={}\n\t\t\t\t\t>{bucket.mirror.name}\n\t\t\t\t\t setMirrorElm(null)}\n\t\t\t\t\t>\n\t\t\t\t\t\t\n\t\t\t\t\t\n\n\t\t\t\t}\n\t\t\t
\n\n\t\t
\n\n\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t
REPUBLISH
\n\t\t\t
\n\t\t\t\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t
SOURCE
\n\t\t\t\t\t\t handleRepublishPropChange({ src })}\n\t\t\t\t\t\t\treadOnly={inRead}\n\t\t\t\t\t\t/>\n\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t
DESTINATION
\n\t\t\t\t\t\t handleRepublishPropChange({ dest })}\n\t\t\t\t\t\t\treadOnly={inRead}\n\t\t\t\t\t\t/>\n\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t handleRepublishPropChange({ headersOnly })}\n\t\t\t\t\t\t\treadOnly={inRead}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t
HEADERS ONLY
\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t
\n\n\t\t\n\n\t\t\t
\n\t\t\t\t
HISTORY
\n\t\t\t\t handlePropChange({ history })}\n\t\t\t\t\treadOnly={inRead}\n\t\t\t\t/>\n\t\t\t
\n\n\t\t\t handlePropChange({ ttl })}\n\t\t\t\treadOnly={inRead}\n\t\t\t/>\n\t\t\t handlePropChange({ maxValueSize })}\n\t\t\t\treadOnly={inRead}\n\t\t\t/>\n\t\t\t handlePropChange({ maxBytes })}\n\t\t\t\treadOnly={inRead}\n\t\t\t/>\n\n\t\t\t
\n\t\t\t\t handlePropChange({ compression })}\n\t\t\t\t\treadOnly={inRead}\n\t\t\t\t/>\n\t\t\t\t
COMPRESSION
\n\t\t\t
\n\n\t\t
\n\n\n\t\t\n\t\t\t
\n\t\t\t\t
NUM REPLICAS
\n\t\t\t\t handlePropChange({ replicas })}\n\t\t\t\t\treadOnly={inRead}\n\t\t\t\t/>\n\t\t\t
\n\t\t\t
\n\t\t\t\t
CLUSTER
\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t
NAME
\n\t\t\t\t\t\t handlePlacementPropChange({ cluster })}\n\t\t\t\t\t\t\treadOnly={inRead}\n\t\t\t\t\t\t/>\n\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t
TAGS
\n\t\t\t\t\t\t\n\t\t\t\t\t\t\titems={bucket.placement?.tags}\n\t\t\t\t\t\t\tonItemsChange={tags => handlePlacementPropChange({ tags })}\n\t\t\t\t\t\t\tplaceholder=\"ex. client or java\"\n\n\t\t\t\t\t\t\tonNewItem={() => \"\"}\n\t\t\t\t\t\t\tfnIsVoid={i => !i || i.trim().length == 0}\n\t\t\t\t\t\t\tRenderRow={EditStringRow}\n\t\t\t\t\t\t\treadOnly={inRead}\n\t\t\t\t\t\t/>\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t
\n\n\t\t{/* \n\t\t\t
\n\t\t\t\t
METADATA
\n\t\t\t\t\n\t\t\t
\n\t\t
*/}\n\n\t
\n}\n\nexport default Form\n","import LinkButton from \"@/components/buttons/LinkButton\"\nimport FrameworkCard from \"@/components/cards/FrameworkCard\"\nimport RowButton from \"@/components/rows/RowButton\"\nimport BucketIcon from \"@/icons/cards/BucketIcon\"\nimport KvEntriesIcon from \"@/icons/cards/KvEntriesIcon\"\nimport { BucketStore } from \"@/stores/stacks/buckets/detail\"\nimport { EDIT_STATE } from \"@/types\"\nimport { useStore } from \"@priolo/jon\"\nimport { FunctionComponent, useEffect } from \"react\"\nimport clsCard from \"../../CardMint.module.css\"\nimport ActionsCmp from \"./Actions\"\nimport Form from \"./Form\"\n\n\n\ninterface Props {\n\tstore?: BucketStore\n}\n\nconst BucketDetailView: FunctionComponent = ({\n\tstore: bucketSo,\n}) => {\n\n\t// STORE\n\tconst bucketSa = useStore(bucketSo)\n\tuseStore(bucketSo.state.group)\n\n\t// HOOKs\n\tuseEffect(() => {\n\t\tbucketSo.fetchIfVoid()\n\t}, [])\n\n\t// HANDLER\n\tconst handleKVEntriesClick = () => bucketSo.openKVEntries()\n\n\t// RENDER\n\tconst inRead = bucketSa.editState == EDIT_STATE.READ\n\tconst isKVEntriesSelect = bucketSo.getKVEntriesOpen()\n\n\treturn }\n\t\tstore={bucketSo}\n\t\tactionsRender={}\n\t\ticonizedRender={\n\t\t\t
\n\t\t\t\t}\n\t\t\t\t\ttooltip=\"KVENTRIES\"\n\t\t\t\t\tclassName=\"jack-focus-1\"\n\t\t\t\t\tselected={isKVEntriesSelect}\n\t\t\t\t\tonClick={handleKVEntriesClick}\n\t\t\t\t/>\n\t\t\t
\n\t\t}\n\t>\n\t\t{inRead && <>\n\t\t\t}\n\t\t\t\tlabel=\"KVENTRIES\"\n\t\t\t\tclassName=\"jack-focus-1\"\n\t\t\t\tselected={isKVEntriesSelect}\n\t\t\t\tonClick={handleKVEntriesClick}\n\t\t\t/>\n\t\t}\n\n\t\t
\n\n\t\n}\n\nexport default BucketDetailView\n","import FrameworkCard from \"@/components/cards/FrameworkCard\"\nimport { BucketsStore } from \"@/stores/stacks/buckets\"\nimport { BucketStore } from \"@/stores/stacks/buckets/detail\"\nimport { DOC_TYPE, EDIT_STATE } from \"@/types\"\nimport { BucketState } from \"@/types/Bucket\"\nimport { useStore } from \"@priolo/jon\"\nimport { FunctionComponent, useEffect } from \"react\"\nimport BucketsIcon from \"../../../../icons/cards/BucketsIcon\"\nimport clsCard from \"../../CardMintDef.module.css\"\nimport { AlertDialog, Button, FindInputHeader, OptionsCmp, VTable } from \"@priolo/jack\"\nimport { formatNumber } from \"../../../../utils/string\"\n\n\n\ninterface Props {\n\tstore?: BucketsStore\n}\n\nconst BucketsListView: FunctionComponent = ({\n\tstore: bucketsSo,\n}) => {\n\n\t// STORE\n\tconst bucketsSa = useStore(bucketsSo)\n\tuseStore(bucketsSo.state.group)\n\n\t// HOOKs\n\tuseEffect(() => {\n\t\tbucketsSo.fetchIfVoid()\n\t}, [])\n\n\t// HANDLER\n\tconst handleSelect = (bucket: BucketState) => bucketsSo.select(bucket.bucket)\n\tconst handleNew = () => bucketsSo.create()\n\tconst handleDelete = () => bucketsSo.delete()\n\tconst handlePurge = () => bucketsSo.purgeDeleted()\n\n\t// RENDER\n\tconst buckets = bucketsSo.getFiltered() ?? []\n\tif (!buckets) return null\n\tconst selected = bucketsSa.select\n\tconst isNewSelect = bucketsSa.linked?.state.type == DOC_TYPE.BUCKET\n\t\t&& (bucketsSa.linked as BucketStore).state.editState == EDIT_STATE.NEW\n\n\treturn }\n\t\tstore={bucketsSo}\n\t\tactionsRender={<>\n\t\t\t\n\t\t\t bucketsSo.setTextSearch(text)}\n\t\t\t/>\n\t\t\t{!!selected && }\n\t\t\t{!!selected && }\n\t\t\t\n\t\t}\n\t>\n\t\t b.values, getShow: b => formatNumber(b.values) },\n\t\t\t\t{ label: \"HISTORY\", getValue: b => b.history },\n\t\t\t\t{ label: \"TTL\", getValue: b => b.ttl },\n\t\t\t\t{ label: \"BYTES\", getValue: b => b.bytes, getShow: b => formatNumber(b.bytes) },\n\t\t\t]}\n\t\t\tpropMain={{ getValue: b => b.bucket }}\n\t\t\tselectId={selected}\n\t\t\tonSelectChange={handleSelect}\n\t\t\tgetId={(bucket: BucketState) => bucket.bucket}\n\t\t/>\n\n\t\t\n\n\t\n}\n\nexport default BucketsListView\n","const AlertIcon = (props) => (\n\t\n\t\t\n\t\t\n\t\n)\n\nexport default AlertIcon","const DoneIcon = (props) => (\n\t\n\t\t\n\t\n)\n\nexport default DoneIcon","import React, { FunctionComponent } from \"react\"\nimport cls from \"./ElementRow.module.css\"\n\n\n\ninterface Props {\n\tselected?: boolean\n\ttitle: string\n\ticon?: React.ReactNode\n\tsubtitle?: string\n\ttabIndex?: number\n\tclassName?: string\n\tonClick?: (e: React.MouseEvent) => void\n}\n\n/**\n * riga generica di lista figa\n */\nconst ElementRow: FunctionComponent = ({\n\ttitle,\n\tsubtitle,\n\ticon,\n\tselected,\n\ttabIndex = 0,\n\tclassName,\n\tonClick,\n}) => {\n\n\t// STORE\n\n\t// HOOKs\n\n\t// HANDLER\n\tconst handleKeyDown = (e: React.KeyboardEvent) => {\n\t\tif (e.code === \"Space\" || e.code === \"Enter\") {\n\t\t\tonClick?.(e as any);\n\t\t}\n\t}\n\n\t// RENDER\n\tif (!title) return null\n\tconst clsRoot = `${cls.root} ${selected ? cls.select : \"\"} ${className ?? \"\"}`\n\n\treturn
\n\t\t{icon}\n\t\t
\n\t\t\t
\n\t\t\t\t{title}\n\t\t\t
\n\t\t\t
\n\t\t\t\t
{subtitle}
\n\t\t\t
\n\t\t
\n\t
\n}\n\nexport default ElementRow\n","import FrameworkCard from \"@/components/cards/FrameworkCard\"\nimport AlertIcon from \"@/icons/AlertIcon\"\nimport ConnectionsIcon from \"@/icons/cards/ConnectionsIcon\"\nimport CloseIcon from \"@/icons/CloseIcon\"\nimport DoneIcon from \"@/icons/DoneIcon\"\nimport cnnSo from \"@/stores/connections\"\nimport { MESSAGE_TYPE } from \"@/stores/log/utils\"\nimport { CnnListStore } from \"@/stores/stacks/connection\"\nimport { CnnDetailStore } from \"@/stores/stacks/connection/detail\"\nimport { CNN_STATUS, Connection, DOC_TYPE, EDIT_STATE } from \"@/types\"\nimport { AlertDialog, Button, IconButton, OptionsCmp } from \"@priolo/jack\"\nimport { useStore } from \"@priolo/jon\"\nimport React, { FunctionComponent, useEffect, useMemo } from \"react\"\nimport ConfigIcon from \"../../../icons/cards/ConfigIcon\"\nimport ElementRow from \"../../rows/ElementRow\"\nimport clsCard from \"../CardGreenDef.module.css\"\nimport cls from \"./ListView.module.css\"\n\n\n\ninterface Props {\n\tstore?: CnnListStore\n\tstyle?: React.CSSProperties,\n}\n\n/**\n * Lo STACK di una collezione di CONNECTIONs\n */\nconst CnnListView: FunctionComponent = ({\n\tstore: cnnListSo,\n}) => {\n\n\t// STORE\n\tconst cnnListSa = useStore(cnnListSo)\n\tconst cnnSa = useStore(cnnSo)\n\tuseStore(cnnListSo.state.group)\n\n\t// HOOKs\n\tuseEffect(() => {\n\t\tcnnSo.fetchIfVoid()\n\t}, [])\n\n\t// HANDLER\n\tconst handleSelect = (cnn: Connection, detached: boolean) => cnnListSo.select(cnn.id)\n\tconst handleNew = () => cnnListSo.create()\n\tconst handleDelete = async () => {\n\t\tif (!await cnnListSo.alertOpen({\n\t\t\ttitle: \"MESSAGE DELETE\",\n\t\t\tbody: \"This action is irreversible.\\nAre you sure you want to delete the CONNECTION?\",\n\t\t})) return\n\t\tcnnListSo.select(null)\n\t\tawait cnnSo.delete(selectId)\n\t\tcnnListSo.setSnackbar({\n\t\t\topen: true,\n\t\t\ttype: MESSAGE_TYPE.SUCCESS,\n\t\t\ttitle: \"DELETED\",\n\t\t\tbody: \"it is gone forever\",\n\t\t\ttimeout: 5000,\n\t\t})\n\t}\n\tconst handleLoaderClick = () => cnnListSo.openLoader()\n\n\t// RENDER\n\tconst connections = useMemo(() => {\n\t\treturn cnnSo.state.all?.sort((c1, c2) => c1.name?.localeCompare(c2.name))\n\t}, [cnnSa.all])\n\n\tconst getTitle = (cnn: Connection) => cnn.name\n\tconst getSubtitle = (cnn: Connection) => cnn.hosts?.[0]\n\tconst isNewSelect = cnnListSa.linked?.state.type == DOC_TYPE.CONNECTION && (cnnListSa.linked as CnnDetailStore).state.editState == EDIT_STATE.NEW\n\tconst selectId = (cnnListSa.linked as CnnDetailStore)?.state?.connection?.id\n\tconst isSelected = (cnn: Connection) => cnn.id == selectId\n\tconst isVoid = !(connections?.length > 0)\n\tconst loaderOpen = cnnListSa.linked?.state.type == DOC_TYPE.CNN_LOADER\n\n\treturn }\n\t\tstore={cnnListSo}\n\t\tactionsRender={<>\n\t\t\t\n\t\t\t
\n\t\t\t{!!selectId && }\n\t\t\t\n\t\t\t\n\t\t}\n\t>\n\t\t{!isVoid ? connections.map((cnn, index) => (\n\t\t\t}\n\t\t\t\tselected={isSelected(cnn)}\n\t\t\t\tonClick={(e) => handleSelect(cnn, e.shiftKey)}\n\t\t\t/>\n\t\t)) : (\n\t\t\t
Create a new connection by clicking on the NEW button, don't be shy!
\n\t\t)}\n\n\t\t\n\n\t\n}\n\nexport default CnnListView\n\n\nconst ConnectionIcon = ({ cnn }) =>
\n\t{{\n\t\t[CNN_STATUS.UNDEFINED]:
,\n\t\t[CNN_STATUS.CONNECTED]: ,\n\t\t[CNN_STATUS.RECONNECTING]: ,\n\t\t[CNN_STATUS.DISCONNECTED]: ,\n\t}[cnn.status]}\n
\n","import FrameworkCard from \"@/components/cards/FrameworkCard\"\nimport { ConsumersStore } from \"@/stores/stacks/consumer\"\nimport { StreamConsumer } from \"@/types/Consumer\"\nimport { useStore } from \"@priolo/jon\"\nimport { FunctionComponent, useEffect } from \"react\"\nimport ConsumersIcon from \"../../../icons/cards/ConsumersIcon\"\nimport { ConsumerStore } from \"../../../stores/stacks/consumer/detail\"\nimport { DOC_TYPE, EDIT_STATE } from \"../../../types\"\nimport clsCard from \"../CardFuchsiaDef.module.css\"\nimport { AlertDialog, Button, FindInputHeader, OptionsCmp, Table } from \"@priolo/jack\"\n\n\n\ninterface Props {\n\tstore?: ConsumersStore\n}\n\nconst ConsumersListView: FunctionComponent = ({\n\tstore: consumersSo,\n}) => {\n\n\t// STORE\n\tconst consumersSa = useStore(consumersSo)\n\tuseStore(consumersSo.state.group)\n\n\t// HOOKs\n\tuseEffect(() => {\n\t\tconsumersSo.fetchIfVoid()\n\t}, [])\n\n\t// HANDLER\n\tconst handleSelect = (consumer: StreamConsumer) => consumersSo.select(consumer.name)\n\tconst handleNew = () => consumersSo.create()\n\tconst handleDelete = () => consumersSo.delete()\n\n\t// RENDER\n\tconst consumers = consumersSo.getFiltered() ?? []\n\tconst selected = consumersSa.select\n\tconst isNewSelect = consumersSa.linked?.state.type == DOC_TYPE.CONSUMER && (consumersSa.linked as ConsumerStore).state.editState == EDIT_STATE.NEW\n\n\treturn }\n\t\tstyleBody={{ padding: 0 }}\n\t\tstore={consumersSo}\n\t\tactionsRender={<>\n\t\t\t\n\t\t\t consumersSo.setTextSearch(text)}\n\t\t\t/>\n\t\t\t{!!selected && }\n\t\t\t{!!selected &&
|
}\n\t\t\t\n\t\t}\n\t>\n\t\t item.name, isMain: true },\n\t\t\t\t{ label: \"ACK\", getValue: item => item.numAckPending },\n\t\t\t\t{ label: \"REDELIVERED\", getValue: item => item.numRedelivered },\n\t\t\t\t{ label: \"WAITING\", getValue: item => item.numWaiting },\n\t\t\t\t{ label: \"PENDING\", getValue: item => item.numPending },\n\t\t\t]}\n\t\t\tselectId={selected}\n\t\t\tonSelectChange={handleSelect}\n\t\t\tgetId={(consumer: StreamConsumer) => consumer.name}\n\t\t\tsingleRow={consumersSo.getWidth() > 430}\n\t\t/>\n\n\t\t\n\n\t\n}\n\nexport default ConsumersListView\n","import { DOC_TYPE, EDIT_STATE } from \"@/types\"\nimport { Button, IconButton, OptionsCmp } from \"@priolo/jack\"\nimport { useStore } from \"@priolo/jon\"\nimport { FunctionComponent } from \"react\"\nimport ConfigIcon from \"../../../../icons/cards/ConfigIcon\"\nimport { ConsumerStore } from \"../../../../stores/stacks/consumer/detail\"\n\n\n\ninterface Props {\n\tstore?: ConsumerStore\n}\n\nconst ActionsCmp: FunctionComponent = ({\n\tstore,\n}) => {\n\n\t// STORE\n\tconst state = useStore(store)\n\n\t// HOOKs\n\n\t// HANDLER\n\tconst handleEditClick = async () => store.setEditState(EDIT_STATE.EDIT)\n\tconst handleCancelClick = () => store.restore()\n\tconst handleSaveClick = async () => store.save()\n\tconst handleConfigClick = () => store.openJsonConfig()\n\n\t// RENDER\n\tif (state.consumer == null) return null\n\tconst configOpen = state.linked?.state.type == DOC_TYPE.JSON_CONFIG\n\tif (state.editState == EDIT_STATE.NEW) {\n\t\treturn <>\n\t\t\t\n\t\t\t\n\t\t\n\n\t} else if (state.editState == EDIT_STATE.READ) {\n\t\treturn <>\n\t\t\t\n\t\t\t
\n\t\t\t\n\t\t\n\t}\n\n\t// EDIT\n\treturn <>\n\t\t\n\t\t\n\t\t\n\t\n}\n\nexport default ActionsCmp\n","import CloseIcon from \"@/icons/CloseIcon\"\nimport { FunctionComponent } from \"react\"\nimport { Box, IconButton, TextInput } from \"@priolo/jack\"\nimport { RenderRowBaseProps } from \"@priolo/jack\"\n\n\n\nconst EditMetadataRow: FunctionComponent> = ({\n\titem,\n\tisSelect,\n\treadOnly = false,\n\tplaceholder,\n\tonChange,\n\tonSelect,\n}) => {\n\n\n\tconst handleKeyChange = (key: string) => {\n\t\tonChange([key, item?.[1] ?? \"\"])\n\t}\n\tconst handleValueChange = (value: string) => {\n\t\tonChange([item?.[0] ?? \"\", value])\n\t}\n\tconst handleDelete = () => onChange?.(null)\n\n\treturn \n\t\t\t\t\n\t\t\t}\n\t>\n\t\t\n\t\t
:
\n\t\t\n\t
\n}\n\nexport default EditMetadataRow","import { FunctionComponent, useEffect, useState } from \"react\"\nimport { EditList } from \"@priolo/jack\"\nimport EditMetadataRow from \"@/components/rows/EditMetadataRow.tsx\";\n\n\n\nenum TIME {\n\tNS = \"nano s.\",\n\tMS = \"milli s.\",\n\tSECONDS = \"seconds\",\n\tMINUTES = \"minutes\",\n\tHOURS = \"hours\",\n\tDAYS = \"days\",\n}\n\ninterface Props {\n\titems: { [key: string]: string };\n\treadOnly?: boolean\n\tplaceholder?: string\n\tonChange?: (itemsNew: { [key: string]: string }) => void\n}\n\nconst KeyValueMap: FunctionComponent = ({\n\titems,\n\treadOnly,\n\tplaceholder,\n\tonChange,\n}) => {\n\n\t// STORE\n\n\t// HOOKs\n\tconst [entres, setEntries] = useState<[string, string][]>(!!items ? Object.entries(items) : [])\n\tuseEffect(() => {\n\t\tsetEntries(!!items ? Object.entries(items) : [])\n\t}, [items])\n\n\t// HANDLER\n\tconst handleItemsChange = (tuples: [string, string][]) => setEntries(tuples)\n\n\tconst handleBlur = () => {\n\t\tconst keyValues = entres.reduce((acc, [key, value]) => {\n\t\t\tif (!!acc[key]) return acc\n\t\t\tacc[key] = value;\n\t\t\treturn acc;\n\t\t}, {} as { [key: string]: string });\n\t\tonChange?.(keyValues)\n\t}\n\n\t// RENDER\n\n\treturn
\n\t\t\n\t\t\titems={entres}\n\t\t\tonItemsChange={handleItemsChange}\n\t\t\treadOnly={readOnly}\n\t\t\tplaceholder={placeholder}\n\t\t\tonNewItem={() => [\"\", \"\"]}\n\t\t\tfnIsVoid={m => !m || (m[0] == \"\" && m[1] == \"\")}\n\t\t\tRenderRow={EditMetadataRow}\n\t\t/>\n\t
\n}\n\nexport default KeyValueMap","import { Accordion, IconToggle, NumberInput } from \"@priolo/jack\"\nimport { FunctionComponent } from \"react\"\n\n\n\ninterface Props {\n\tvalue: number\n\tlabel?: string\n\treadOnly?: boolean\n\tdesiredDefault?: number\n\t/** value on open */\n\tinitDefault?: number\n\tmin?: number\n\tmax?: number\n\tonChange?: (valueNew: number) => void\n}\n\nconst MaxNumberCmp: FunctionComponent = ({\n\tvalue,\n\tlabel,\n\treadOnly,\n\tmin,\n\tmax,\n\tonChange,\n\tdesiredDefault = -1,\n\tinitDefault = 0,\n}) => {\n\n\t// STORE\n\n\t// HOOKs\n\n\t// HANDLER\n\tconst handlePropChange = (maxConsumers: number) => onChange?.(maxConsumers)\n\tconst handleEnabledCheck = (check: boolean) => onChange?.(check ? initDefault : desiredDefault)\n\n\t// RENDER\n\tconst isEnabled = (value != null || initDefault == null) && value !== desiredDefault\n\tconst valueShow = value\n\n\treturn
\n\t\t
\n\t\t\t\n\t\t\t
{label}
\n\t\t
\n\t\t\n\t\t\t
\n\t\t\t\t\n\t\t\t
\n\t\t
\n\t
\n}\n\nexport default MaxNumberCmp\n","import KeyValueMap from \"@/components/input/KeyValueMap.tsx\"\nimport MaxBytesCmp from \"@/components/input/MaxBytesCmp.tsx\"\nimport MaxNumberCmp from \"@/components/input/MaxNumberCmp.tsx\"\nimport MaxTimeCmp from \"@/components/input/MaxTimeCmp.tsx\"\nimport { ConsumerStore } from \"@/stores/stacks/consumer/detail\"\nimport { EDIT_STATE } from \"@/types\"\nimport { AckPolicy, DeliverPolicy, ReplayPolicy } from \"@/types/Consumer\"\nimport { dateShow } from \"@/utils/time\"\nimport { DateTimeInput, EditList, EditNumberRow, EditStringRow, IconToggle, ListDialog, NumberInput, StringUpRow, TextInput, TitleAccordion } from \"@priolo/jack\"\nimport { useStore } from \"@priolo/jon\"\nimport { FunctionComponent } from \"react\"\n\n\n\ninterface Props {\n\tstore?: ConsumerStore\n}\n\nconst Form: FunctionComponent = ({\n\tstore,\n}) => {\n\n\t// STORE\n\tconst state = useStore(store)\n\n\t// HOOKs\n\n\t// HANDLER\n\tconst handlePropChange = (prop: { [name: string]: any }) => store.setConsumerConfig({ ...state.consumer.config, ...prop })\n\tconst handleBackoffChange = (backoff: number[]) => store.setConsumerConfig({ ...state.consumer.config, backoff })\n\tconst handleDeliverPolicyChange = (index: number) => {\n\t\tconst deliverPolicy = Object.values(DeliverPolicy)[index]\n\t\tif (deliverPolicy == DeliverPolicy.DeliverByStartSequencePolicy) {\n\t\t\thandlePropChange({ deliverPolicy, optStartTime: null })\n\t\t\treturn\n\t\t}\n\t\tif (deliverPolicy == DeliverPolicy.DeliverByStartTimePolicy) {\n\t\t\thandlePropChange({ deliverPolicy, optStartSeq: 0 })\n\t\t\treturn\n\t\t}\n\t\thandlePropChange({ deliverPolicy, optStartSeq: 0, optStartTime: null})\n\t}\n\tconst handleMetadataPropChange = (metadata: { [name: string]: any }) => {\n\t\tstore.setConsumerConfig({ ...state.consumer.config, metadata })\n\t}\n\n\t// RENDER\n\tconst consumer = state.consumer\n\tif (!consumer?.config) return null\n\tconst inRead = state.editState == EDIT_STATE.READ\n\tconst inNew = state.editState == EDIT_STATE.NEW\n\n\treturn
\n\n\t\t\n\n\t\t\t
\n\t\t\t\t
NAME
\n\t\t\t\t{/*
{consumer.name ?? \"-\"}
*/}\n\t\t\t\t handlePropChange({ name })}\n\t\t\t\t\treadOnly={inRead || !inNew}\n\t\t\t\t/>\n\t\t\t
\n\n\t\t\t
\n\t\t\t\t
DURABLE NAME
\n\t\t\t\t handlePropChange({ durableName })}\n\t\t\t\t\treadOnly={inRead || !inNew}\n\t\t\t\t/>\n\t\t\t
\n\n\t\t\t
\n\t\t\t\t
DESCRIPTION
\n\t\t\t\t handlePropChange({ description })}\n\t\t\t\t\treadOnly={inRead}\n\t\t\t\t/>\n\t\t\t
\n\n\t\t\t
\n\t\t\t\t
REPLAY POLICY
\n\t\t\t\t handlePropChange({ replayPolicy: Object.values(ReplayPolicy)[index] })}\n\t\t\t\t/>\n\t\t\t
\n\n\t\t\t{inRead && (\n\t\t\t\t
\n\t\t\t\t\t
CREATION DATETIME
\n\t\t\t\t\t
{dateShow(consumer.created)}
\n\t\t\t\t
\n\t\t\t)}\n\n\t\t
\n\n\t\t{inRead && <>\n\t\t\t\n\n\t\t\t\t
\n\t\t\t\t\t
WAITING
\n\t\t\t\t\t
{consumer.numWaiting ?? \"-\"}
\n\t\t\t\t
\n\n\t\t\t\t
\n\t\t\t\t\t
PENDING
\n\t\t\t\t\t
{consumer.numPending ?? \"-\"}
\n\t\t\t\t
\n\n\t\t\t\t
\n\t\t\t\t\t
ACKS PENDING
\n\t\t\t\t\t
{consumer.numAckPending ?? \"-\"}
\n\t\t\t\t
\n\n\t\t\t\t
\n\t\t\t\t\t
REDELIVERED
\n\t\t\t\t\t
{consumer.numRedelivered ?? \"-\"}
\n\t\t\t\t
\n\n\t\t\t
\n\n\t\t\t\n\n\t\t\t\t
\n\t\t\t\t\t
DATETIME
\n\t\t\t\t\t
{consumer.delivered?.lastActive ?? \"-\"}
\n\t\t\t\t
\n\n\t\t\t\t
\n\t\t\t\t\t
STREAM SEQ
\n\t\t\t\t\t
{consumer.delivered?.streamSeq ?? \"-\"}
\n\t\t\t\t
\n\n\t\t\t\t
\n\t\t\t\t\t
CONSUMER SEQ
\n\t\t\t\t\t
{consumer.delivered?.consumerSeq ?? \"-\"}
\n\t\t\t\t
\n\n\t\t\t
\n\n\t\t\t\n\n\t\t\t\t
\n\t\t\t\t\t
DATETIME
\n\t\t\t\t\t
{consumer.ackFloor?.lastActive ?? \"-\"}
\n\t\t\t\t
\n\n\t\t\t\t
\n\t\t\t\t\t
STREAM SEQ
\n\t\t\t\t\t
{consumer.ackFloor?.streamSeq ?? \"-\"}
\n\t\t\t\t
\n\n\t\t\t\t
\n\t\t\t\t\t
CONSUMER SEQ
\n\t\t\t\t\t
{consumer.ackFloor?.consumerSeq ?? \"-\"}
\n\t\t\t\t
\n\n\t\t\t
\n\t\t}\n\n\n\n\t\t\n\n\t\t\t
\n\t\t\t\t
DELIVER POLICY
\n\t\t\t\t\n\t\t\t
\n\n\t\t\t{consumer.config.deliverPolicy == DeliverPolicy.DeliverByStartSequencePolicy && (\n\t\t\t\t
\n\t\t\t\t\t
OPT START SEQ
\n\t\t\t\t\t handlePropChange({ optStartSeq })}\n\t\t\t\t\t\treadOnly={inRead || !inNew}\n\t\t\t\t\t/>\n\t\t\t\t
\n\t\t\t)}\n\n\t\t\t{consumer.config.deliverPolicy == DeliverPolicy.DeliverByStartTimePolicy && (\n\t\t\t\t
\n\t\t\t\t\t
OPT START TIME
\n\t\t\t\t\t handlePropChange({ optStartTime })}\n\t\t\t\t\t/>\n\t\t\t\t
\n\t\t\t)}\n\n\t\t\t
\n\t\t\t\t
FILTER SUBJECTS
\n\t\t\t\t\n\t\t\t\t\titems={consumer.config.filterSubjects}\n\t\t\t\t\tonItemsChange={filterSubjects => handlePropChange({ filterSubjects })}\n\t\t\t\t\tplaceholder=\"ex. orders.* or telemetry.>\"\n\t\t\t\t\treadOnly={inRead}\n\t\t\t\t\tonNewItem={() => \"\"}\n\t\t\t\t\tfnIsVoid={i => !i || i.trim().length == 0}\n\t\t\t\t\tRenderRow={EditStringRow}\n\t\t\t\t/>\n\t\t\t
\n\n\t\t\t
\n\t\t\t\t
FILTER SUBJECT
\n\t\t\t\t handlePropChange({ filterSubject })}\n\t\t\t\t\treadOnly={inRead}\n\t\t\t\t/>\n\t\t\t
\n\n\t\t
\n\n\n\t\t\n\n\t\t\t
\n\t\t\t\t
ACK POLICY
\n\t\t\t\t handlePropChange({ ackPolicy: Object.values(AckPolicy)[index] })}\n\t\t\t\t/>\n\t\t\t
\n\n\t\t\t handlePropChange({ ackWait })}\n\t\t\t/>\n\n\t\t\t handlePropChange({ maxDeliver })}\n\t\t\t/>\n\n\t\t\t handlePropChange({ maxWaiting })}\n\t\t\t/>\n\n\t\t\t handlePropChange({ maxAckPending })}\n\t\t\t/>\n\n\t\t\t 0 ? consumer.config.sampleFreq : \"0\")}\n\t\t\t\tdesiredDefault={0}\n\t\t\t\tinitDefault={1}\n\t\t\t\tmin={1} max={100}\n\t\t\t\tonChange={sampleFreq => handlePropChange({ sampleFreq: sampleFreq == 0 ? \"\" : sampleFreq.toString() })}\n\t\t\t/>\n\n\t\t\t
\n\t\t\t\t
BACKOFF
\n\t\t\t\t\n\t\t\t\t\titems={consumer.config.backoff}\n\t\t\t\t\tonItemsChange={handleBackoffChange}\n\t\t\t\t\treadOnly={inRead}\n\t\t\t\t\tplaceholder=\"ex. 10\"\n\t\t\t\t\tonNewItem={() => 0}\n\t\t\t\t\tfnIsVoid={h => h == null}\n\t\t\t\t\tRenderRow={EditNumberRow}\n\t\t\t\t/>\n\t\t\t
\n\n\t\t
\n\n\n\t\t\n\n\t\t\t handlePropChange({ maxBatch })}\n\t\t\t/>\n\n\t\t\t handlePropChange({ maxExpires })}\n\t\t\t/>\n\n\t\t\t handlePropChange({ maxBytes })}\n\t\t\t/>\n\n\t\t\n\n\n\n\t\t{/*\n\t\t\t
Read only section
\n\t\t\t
\n\t\t\t\t
DELIVER SUBJECT
\n\t\t\t\t handlePropChange({ deliverSubject })}\n\t\t\t\t\treadOnly={true}\n\t\t\t\t/>\n\t\t\t
\n\n\t\t\t
\n\t\t\t\t
DELIVER GROUP
\n\t\t\t\t handlePropChange({ deliverGroup })}\n\t\t\t\t\treadOnly={true}\n\t\t\t\t/>\n\t\t\t
\n\n\t\t\t
\n\t\t\t\t handlePropChange({ flowControl })}\n\t\t\t\t\treadOnly={true}\n\t\t\t\t/>\n\t\t\t\t
FLOW CONTROL
\n\t\t\t
\n\n\t\t\t
\n\t\t\t\t
IDLE HEARTBEAT
\n\t\t\t\t handlePropChange({ idleHeartbeat })}\n\t\t\t\t\treadOnly={true}\n\t\t\t\t/>\n\t\t\t
\n\n\t\t\t
\n\t\t\t\t handlePropChange({ headersOnly })}\n\t\t\t\t\treadOnly={true}\n\t\t\t\t/>\n\t\t\t\t
HEADERS ONLY
\n\t\t\t
\n\n\t\t\t handlePropChange({ rateLimitBps })}\n\t\t\t/>\n\n\t\t
*/}\n\n\n\t\t\n\n\t\t\t handlePropChange({ numReplicas })}\n\t\t\t/>\n\n\t\t\t handlePropChange({ inactiveThreshold })}\n\t\t\t/>\n\n\t\t\t
\n\t\t\t\t handlePropChange({ memStorage })}\n\t\t\t\t\treadOnly={inRead || !inNew}\n\t\t\t\t/>\n\t\t\t\t
MEM STORAGE
\n\t\t\t
\n\n\t\t\t
\n\t\t\t\t
METADATA
\n\t\t\t\t\n\t\t\t
\n\n\t\t
\n\n\t
\n}\n\nexport default Form\n","import FrameworkCard from \"@/components/cards/FrameworkCard\"\nimport { ConsumerStore } from \"@/stores/stacks/consumer/detail\"\nimport { useStore } from \"@priolo/jon\"\nimport { FunctionComponent, useEffect } from \"react\"\nimport { EDIT_STATE } from \"../../../../types\"\nimport ActionsCmp from \"./Actions\"\nimport Form from \"./Form\"\nimport ConsumerIcon from \"@/icons/cards/ConsumerIcon\"\nimport clsCard from \"../../CardFuchsia.module.css\"\n\n\ninterface Props {\n\tstore?: ConsumerStore\n}\n\nconst ConsumerDetailView: FunctionComponent = ({\n\tstore,\n}) => {\n\n\t// STORE\n\tconst state = useStore(store)\n\tuseStore(store.state.group)\n\n\t// HOOKs\n\tuseEffect(() => {\n\t\tstore.fetchIfVoid()\n\t}, [])\n\n\t// HANDLER\n\n\t// RENDER\n\tconst inRead = state.editState == EDIT_STATE.READ\n\n\treturn }\n\t\tstore={store}\n\t\tactionsRender={}\n\t>\n\t\t\n\t\n}\n\nexport default ConsumerDetailView\n","const YouTubeIcon = (props) => (\n\t\n\t\t\n\t\n)\n\nexport default YouTubeIcon\n","import FrameworkCard from \"@/components/cards/FrameworkCard\"\nimport YouTubeIcon from \"@/icons/YouTubeIcon\"\nimport { HelpStore } from \"@/stores/stacks/help\"\nimport { useStore } from \"@priolo/jon\"\nimport React, { FunctionComponent } from \"react\"\nimport cls from \"./View.module.css\"\nimport clsCard from \"../CardWhiteDef.module.css\"\nimport HelpIcon from \"../../../icons/HelpIcon\"\n\n\n\ninterface Props {\n\tstore?: HelpStore\n\tstyle?: React.CSSProperties,\n}\n\nconst HelpView: FunctionComponent = ({\n\tstore: helpSo,\n\tstyle,\n}) => {\n\n\t// STORE\n\tconst helpSa = useStore(helpSo)\n\n\t// HOOKs\n\n\t// HANDLER\n\n\t// RENDER\n\treturn }\n\t\tclassName={clsCard.root}\n\t\tstore={helpSo}\n\t>\n\t\t
\n\n\t\t\t\n\n\t\t\t\n\n\t\t\t\n\n\t\t
\n\t\n}\n\nexport default HelpView\n\ninterface YTRowProps {\n\ttitle: string\n\turl: string\n}\n\nconst YTRow: FunctionComponent = ({\n\ttitle,\n\turl,\n}) => {\n\n\tconst handleUpdateClick = () => window.open(url)\n\n\tconst src = `${url}?controls=0`\n\n\treturn
\n\t\t
\n\t\t\t\n\t\t\t
{title}
\n\t\t
\n\t\t{/* */}\n\t
\n}","export interface KVEntry {\n key: string;\n payload: string;\n lastUpdate: string;\n operation: OPERATION;\n revision: number;\n isDeleted: boolean;\n history: KVEntry[];\n}\n\nexport enum OPERATION {\n PUT = \"KeyValuePutOp\",\n DELETE = \"KeyValueDeleteOp\",\n PURGE = \"KeyValuePurgeOp\"\n}","const FormatIcon = (props) => (\n\t\n\t\t\n\t\t\n\t\n)\n\nexport default FormatIcon","import FormatIcon from \"@/icons/FormatIcon\"\nimport { EditorStore } from \"@/stores/stacks/editorBase\"\nimport { useStore } from \"@priolo/jon\"\nimport { FunctionComponent } from \"react\"\nimport { Button, CopyButton, IconButton, TooltipWrapCmp } from \"@priolo/jack\"\nimport { toFormat } from \"../../utils/editor\"\n\n\n\ninterface Props {\n\tstore?: EditorStore\n}\n\n/**\n * Set di bottoni per le CARD che hanno MONACO EDITOR\n */\nconst FormatAction: FunctionComponent = ({\n\tstore,\n}) => {\n\n\t// STORE\n\tconst state = useStore(store)\n\n\t// HOOKs\n\n\t// HANDLER\n\tconst handleOpenDialogFormats = () => store.setFormatsOpen(true)\n\tconst handleFormat = () => {\n\t\tstore.setAutoFormat(!autoFormat)\n\t\t// bisogna fare questo perche' l'update mi cambia editorRef che quindi punta ad un ref sbagliato\n\t\tif (!autoFormat) setTimeout(state.editorRef.format, 300)\n\t}\n\n\t// RENDER\n\tconst formatLabel = state.format?.toUpperCase() ?? \"\"\n\tconst autoFormat = store.state.autoFormat\n\n\treturn <>\n\t\t toFormat(store.getEditorText(), state.format)} />\n\t\t\n\t\t\t\n\t\t\n\t\t\n\t\n}\n\nexport default FormatAction\n","const ArrowLeftIcon = (props) => (\n\t\n\t\t\n\t\n)\n\nexport default ArrowLeftIcon","import FormatAction from \"@/components/editor/FormatAction\"\nimport ArrowLeftIcon from \"@/icons/ArrowLeftIcon\"\nimport ArrowRightIcon from \"@/icons/ArrowRightIcon\"\nimport { KVEntryStore } from \"@/stores/stacks/kventry/detail\"\nimport { EDIT_STATE } from \"@/types\"\nimport { useStore } from \"@priolo/jon\"\nimport { FunctionComponent } from \"react\"\nimport { Button, IconButton, OptionsCmp } from \"@priolo/jack\"\n\n\n\ninterface Props {\n\tstore?: KVEntryStore\n}\n\nconst ActionsCmp: FunctionComponent = ({\n\tstore: kventrySo,\n}) => {\n\n\t// STORE\n\tconst kventrySa = useStore(kventrySo)\n\n\t// HOOKs\n\n\t// HANDLER\n\tconst handleEdit = () => kventrySo.setEditState(EDIT_STATE.EDIT)\n\tconst handleSave = () => kventrySo.save()\n\tconst handleCancel = () => kventrySo.restore()\n\tconst handleHistoryOpen = () => {\n\t\t//kventrySo.fetch()\n\t\tkventrySo.setHistoryOpen(true)\n\t}\n\tconst handleRevisionNextChange = () => kventrySo.revisionOffset(+1)\n\tconst handleRevisionPrevChange = () => kventrySo.revisionOffset(-1)\n\n\t// RENDER\n\tconst kventry = kventrySo.getKVSelect()\n\tif (!kventry) return null\n\n\tif (kventrySa.editState == EDIT_STATE.READ) return <>\n\n\t\t\n\n\t\t
\n\n\t\t\n\n\t\t
\n\n\t\t\n\n\t\t
\n\n\t\t\t\n\n\t\t\tREV: {kventry.revision ?? \"--\"}\n\n\t\t\t\n\n\t\t
\n\n\t\n\n\n\n\tconst inNew = kventrySa.editState == EDIT_STATE.NEW\n\tconst label = inNew ? \"CREATE\" : \"SAVE\"\n\n\treturn (<>\n\t\t\n\t\t
\n\t\t{!inNew && (\n\t\t\t\n\t\t)}\n\t\t\n\t)\n}\n\nexport default ActionsCmp\n","import { MSG_FORMAT } from \"../../../utils/editor\";\r\n\r\n\r\n\r\nexport function getEditorLanguage(format: MSG_FORMAT) {\r\n\treturn {\r\n\t\t[MSG_FORMAT.JSON]: \"json\",\r\n\t\t[MSG_FORMAT.TEXT]: \"text\",\r\n\t\t[MSG_FORMAT.HEX]: \"hex\",\r\n\t\t[MSG_FORMAT.BASE64]: \"base64\",\r\n\t\t[MSG_FORMAT.XML]: \"xml\",\r\n\t\t[MSG_FORMAT.HTML]: \"html\",\r\n\t}[format]\r\n}","function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n\n var target = _objectWithoutPropertiesLoose(source, excluded);\n\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nfunction _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();\n}\n\nfunction _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\nfunction _iterableToArrayLimit(arr, i) {\n if (typeof Symbol === \"undefined\" || !(Symbol.iterator in Object(arr))) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}\n\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\n\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n\n return arr2;\n}\n\nfunction _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nexport { _arrayLikeToArray as arrayLikeToArray, _arrayWithHoles as arrayWithHoles, _defineProperty as defineProperty, _iterableToArrayLimit as iterableToArrayLimit, _nonIterableRest as nonIterableRest, _objectSpread2 as objectSpread2, _objectWithoutProperties as objectWithoutProperties, _objectWithoutPropertiesLoose as objectWithoutPropertiesLoose, _slicedToArray as slicedToArray, _unsupportedIterableToArray as unsupportedIterableToArray };\n","function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nfunction compose() {\n for (var _len = arguments.length, fns = new Array(_len), _key = 0; _key < _len; _key++) {\n fns[_key] = arguments[_key];\n }\n\n return function (x) {\n return fns.reduceRight(function (y, f) {\n return f(y);\n }, x);\n };\n}\n\nfunction curry(fn) {\n return function curried() {\n var _this = this;\n\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n return args.length >= fn.length ? fn.apply(this, args) : function () {\n for (var _len3 = arguments.length, nextArgs = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n nextArgs[_key3] = arguments[_key3];\n }\n\n return curried.apply(_this, [].concat(args, nextArgs));\n };\n };\n}\n\nfunction isObject(value) {\n return {}.toString.call(value).includes('Object');\n}\n\nfunction isEmpty(obj) {\n return !Object.keys(obj).length;\n}\n\nfunction isFunction(value) {\n return typeof value === 'function';\n}\n\nfunction hasOwnProperty(object, property) {\n return Object.prototype.hasOwnProperty.call(object, property);\n}\n\nfunction validateChanges(initial, changes) {\n if (!isObject(changes)) errorHandler('changeType');\n if (Object.keys(changes).some(function (field) {\n return !hasOwnProperty(initial, field);\n })) errorHandler('changeField');\n return changes;\n}\n\nfunction validateSelector(selector) {\n if (!isFunction(selector)) errorHandler('selectorType');\n}\n\nfunction validateHandler(handler) {\n if (!(isFunction(handler) || isObject(handler))) errorHandler('handlerType');\n if (isObject(handler) && Object.values(handler).some(function (_handler) {\n return !isFunction(_handler);\n })) errorHandler('handlersType');\n}\n\nfunction validateInitial(initial) {\n if (!initial) errorHandler('initialIsRequired');\n if (!isObject(initial)) errorHandler('initialType');\n if (isEmpty(initial)) errorHandler('initialContent');\n}\n\nfunction throwError(errorMessages, type) {\n throw new Error(errorMessages[type] || errorMessages[\"default\"]);\n}\n\nvar errorMessages = {\n initialIsRequired: 'initial state is required',\n initialType: 'initial state should be an object',\n initialContent: 'initial state shouldn\\'t be an empty object',\n handlerType: 'handler should be an object or a function',\n handlersType: 'all handlers should be a functions',\n selectorType: 'selector should be a function',\n changeType: 'provided value of changes should be an object',\n changeField: 'it seams you want to change a field in the state which is not specified in the \"initial\" state',\n \"default\": 'an unknown error accured in `state-local` package'\n};\nvar errorHandler = curry(throwError)(errorMessages);\nvar validators = {\n changes: validateChanges,\n selector: validateSelector,\n handler: validateHandler,\n initial: validateInitial\n};\n\nfunction create(initial) {\n var handler = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n validators.initial(initial);\n validators.handler(handler);\n var state = {\n current: initial\n };\n var didUpdate = curry(didStateUpdate)(state, handler);\n var update = curry(updateState)(state);\n var validate = curry(validators.changes)(initial);\n var getChanges = curry(extractChanges)(state);\n\n function getState() {\n var selector = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : function (state) {\n return state;\n };\n validators.selector(selector);\n return selector(state.current);\n }\n\n function setState(causedChanges) {\n compose(didUpdate, update, validate, getChanges)(causedChanges);\n }\n\n return [getState, setState];\n}\n\nfunction extractChanges(state, causedChanges) {\n return isFunction(causedChanges) ? causedChanges(state.current) : causedChanges;\n}\n\nfunction updateState(state, changes) {\n state.current = _objectSpread2(_objectSpread2({}, state.current), changes);\n return changes;\n}\n\nfunction didStateUpdate(state, handler, changes) {\n isFunction(handler) ? handler(state.current) : Object.keys(changes).forEach(function (field) {\n var _handler$field;\n\n return (_handler$field = handler[field]) === null || _handler$field === void 0 ? void 0 : _handler$field.call(handler, state.current[field]);\n });\n return changes;\n}\n\nvar index = {\n create: create\n};\n\nexport default index;\n","var config = {\n paths: {\n vs: 'https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs'\n }\n};\n\nexport default config;\n","function curry(fn) {\n return function curried() {\n var _this = this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return args.length >= fn.length ? fn.apply(this, args) : function () {\n for (var _len2 = arguments.length, nextArgs = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n nextArgs[_key2] = arguments[_key2];\n }\n\n return curried.apply(_this, [].concat(args, nextArgs));\n };\n };\n}\n\nexport default curry;\n","function isObject(value) {\n return {}.toString.call(value).includes('Object');\n}\n\nexport default isObject;\n","import curry from '../utils/curry.js';\nimport isObject from '../utils/isObject.js';\n\n/**\n * validates the configuration object and informs about deprecation\n * @param {Object} config - the configuration object \n * @return {Object} config - the validated configuration object\n */\n\nfunction validateConfig(config) {\n if (!config) errorHandler('configIsRequired');\n if (!isObject(config)) errorHandler('configType');\n\n if (config.urls) {\n informAboutDeprecation();\n return {\n paths: {\n vs: config.urls.monacoBase\n }\n };\n }\n\n return config;\n}\n/**\n * logs deprecation message\n */\n\n\nfunction informAboutDeprecation() {\n console.warn(errorMessages.deprecation);\n}\n\nfunction throwError(errorMessages, type) {\n throw new Error(errorMessages[type] || errorMessages[\"default\"]);\n}\n\nvar errorMessages = {\n configIsRequired: 'the configuration object is required',\n configType: 'the configuration object should be an object',\n \"default\": 'an unknown error accured in `@monaco-editor/loader` package',\n deprecation: \"Deprecation warning!\\n You are using deprecated way of configuration.\\n\\n Instead of using\\n monaco.config({ urls: { monacoBase: '...' } })\\n use\\n monaco.config({ paths: { vs: '...' } })\\n\\n For more please check the link https://github.com/suren-atoyan/monaco-loader#config\\n \"\n};\nvar errorHandler = curry(throwError)(errorMessages);\nvar validators = {\n config: validateConfig\n};\n\nexport default validators;\nexport { errorHandler, errorMessages };\n","var compose = function compose() {\n for (var _len = arguments.length, fns = new Array(_len), _key = 0; _key < _len; _key++) {\n fns[_key] = arguments[_key];\n }\n\n return function (x) {\n return fns.reduceRight(function (y, f) {\n return f(y);\n }, x);\n };\n};\n\nexport default compose;\n","import { objectSpread2 as _objectSpread2 } from '../_virtual/_rollupPluginBabelHelpers.js';\n\nfunction merge(target, source) {\n Object.keys(source).forEach(function (key) {\n if (source[key] instanceof Object) {\n if (target[key]) {\n Object.assign(source[key], merge(target[key], source[key]));\n }\n }\n });\n return _objectSpread2(_objectSpread2({}, target), source);\n}\n\nexport default merge;\n","// The source (has been changed) is https://github.com/facebook/react/issues/5465#issuecomment-157888325\nvar CANCELATION_MESSAGE = {\n type: 'cancelation',\n msg: 'operation is manually canceled'\n};\n\nfunction makeCancelable(promise) {\n var hasCanceled_ = false;\n var wrappedPromise = new Promise(function (resolve, reject) {\n promise.then(function (val) {\n return hasCanceled_ ? reject(CANCELATION_MESSAGE) : resolve(val);\n });\n promise[\"catch\"](reject);\n });\n return wrappedPromise.cancel = function () {\n return hasCanceled_ = true;\n }, wrappedPromise;\n}\n\nexport default makeCancelable;\nexport { CANCELATION_MESSAGE };\n","import { slicedToArray as _slicedToArray, objectWithoutProperties as _objectWithoutProperties } from '../_virtual/_rollupPluginBabelHelpers.js';\nimport state from 'state-local';\nimport config$1 from '../config/index.js';\nimport validators from '../validators/index.js';\nimport compose from '../utils/compose.js';\nimport merge from '../utils/deepMerge.js';\nimport makeCancelable from '../utils/makeCancelable.js';\n\n/** the local state of the module */\n\nvar _state$create = state.create({\n config: config$1,\n isInitialized: false,\n resolve: null,\n reject: null,\n monaco: null\n}),\n _state$create2 = _slicedToArray(_state$create, 2),\n getState = _state$create2[0],\n setState = _state$create2[1];\n/**\n * set the loader configuration\n * @param {Object} config - the configuration object\n */\n\n\nfunction config(globalConfig) {\n var _validators$config = validators.config(globalConfig),\n monaco = _validators$config.monaco,\n config = _objectWithoutProperties(_validators$config, [\"monaco\"]);\n\n setState(function (state) {\n return {\n config: merge(state.config, config),\n monaco: monaco\n };\n });\n}\n/**\n * handles the initialization of the monaco-editor\n * @return {Promise} - returns an instance of monaco (with a cancelable promise)\n */\n\n\nfunction init() {\n var state = getState(function (_ref) {\n var monaco = _ref.monaco,\n isInitialized = _ref.isInitialized,\n resolve = _ref.resolve;\n return {\n monaco: monaco,\n isInitialized: isInitialized,\n resolve: resolve\n };\n });\n\n if (!state.isInitialized) {\n setState({\n isInitialized: true\n });\n\n if (state.monaco) {\n state.resolve(state.monaco);\n return makeCancelable(wrapperPromise);\n }\n\n if (window.monaco && window.monaco.editor) {\n storeMonacoInstance(window.monaco);\n state.resolve(window.monaco);\n return makeCancelable(wrapperPromise);\n }\n\n compose(injectScripts, getMonacoLoaderScript)(configureLoader);\n }\n\n return makeCancelable(wrapperPromise);\n}\n/**\n * injects provided scripts into the document.body\n * @param {Object} script - an HTML script element\n * @return {Object} - the injected HTML script element\n */\n\n\nfunction injectScripts(script) {\n return document.body.appendChild(script);\n}\n/**\n * creates an HTML script element with/without provided src\n * @param {string} [src] - the source path of the script\n * @return {Object} - the created HTML script element\n */\n\n\nfunction createScript(src) {\n var script = document.createElement('script');\n return src && (script.src = src), script;\n}\n/**\n * creates an HTML script element with the monaco loader src\n * @return {Object} - the created HTML script element\n */\n\n\nfunction getMonacoLoaderScript(configureLoader) {\n var state = getState(function (_ref2) {\n var config = _ref2.config,\n reject = _ref2.reject;\n return {\n config: config,\n reject: reject\n };\n });\n var loaderScript = createScript(\"\".concat(state.config.paths.vs, \"/loader.js\"));\n\n loaderScript.onload = function () {\n return configureLoader();\n };\n\n loaderScript.onerror = state.reject;\n return loaderScript;\n}\n/**\n * configures the monaco loader\n */\n\n\nfunction configureLoader() {\n var state = getState(function (_ref3) {\n var config = _ref3.config,\n resolve = _ref3.resolve,\n reject = _ref3.reject;\n return {\n config: config,\n resolve: resolve,\n reject: reject\n };\n });\n var require = window.require;\n\n require.config(state.config);\n\n require(['vs/editor/editor.main'], function (monaco) {\n storeMonacoInstance(monaco);\n state.resolve(monaco);\n }, function (error) {\n state.reject(error);\n });\n}\n/**\n * store monaco instance in local state\n */\n\n\nfunction storeMonacoInstance(monaco) {\n if (!getState().monaco) {\n setState({\n monaco: monaco\n });\n }\n}\n/**\n * internal helper function\n * extracts stored monaco instance\n * @return {Object|null} - the monaco instance\n */\n\n\nfunction __getMonacoInstance() {\n return getState(function (_ref4) {\n var monaco = _ref4.monaco;\n return monaco;\n });\n}\n\nvar wrapperPromise = new Promise(function (resolve, reject) {\n return setState({\n resolve: resolve,\n reject: reject\n });\n});\nvar loader = {\n config: config,\n init: init,\n __getMonacoInstance: __getMonacoInstance\n};\n\nexport default loader;\n","import _t from\"@monaco-editor/loader\";import{memo as Te}from\"react\";import ke,{useState as re,useRef as S,useCallback as oe,useEffect as ne}from\"react\";import Se from\"@monaco-editor/loader\";import{memo as ye}from\"react\";import K from\"react\";var le={wrapper:{display:\"flex\",position:\"relative\",textAlign:\"initial\"},fullWidth:{width:\"100%\"},hide:{display:\"none\"}},v=le;import me from\"react\";var ae={container:{display:\"flex\",height:\"100%\",width:\"100%\",justifyContent:\"center\",alignItems:\"center\"}},Y=ae;function Me({children:e}){return me.createElement(\"div\",{style:Y.container},e)}var Z=Me;var $=Z;function Ee({width:e,height:r,isEditorReady:n,loading:t,_ref:a,className:m,wrapperProps:E}){return K.createElement(\"section\",{style:{...v.wrapper,width:e,height:r},...E},!n&&K.createElement($,null,t),K.createElement(\"div\",{ref:a,style:{...v.fullWidth,...!n&&v.hide},className:m}))}var ee=Ee;var H=ye(ee);import{useEffect as xe}from\"react\";function Ce(e){xe(e,[])}var k=Ce;import{useEffect as ge,useRef as Re}from\"react\";function he(e,r,n=!0){let t=Re(!0);ge(t.current||!n?()=>{t.current=!1}:e,r)}var l=he;function D(){}function h(e,r,n,t){return De(e,t)||be(e,r,n,t)}function De(e,r){return e.editor.getModel(te(e,r))}function be(e,r,n,t){return e.editor.createModel(r,n,t?te(e,t):void 0)}function te(e,r){return e.Uri.parse(r)}function Oe({original:e,modified:r,language:n,originalLanguage:t,modifiedLanguage:a,originalModelPath:m,modifiedModelPath:E,keepCurrentOriginalModel:g=!1,keepCurrentModifiedModel:N=!1,theme:x=\"light\",loading:P=\"Loading...\",options:y={},height:V=\"100%\",width:z=\"100%\",className:F,wrapperProps:j={},beforeMount:A=D,onMount:q=D}){let[M,O]=re(!1),[T,s]=re(!0),u=S(null),c=S(null),w=S(null),d=S(q),o=S(A),b=S(!1);k(()=>{let i=Se.init();return i.then(f=>(c.current=f)&&s(!1)).catch(f=>f?.type!==\"cancelation\"&&console.error(\"Monaco initialization: error:\",f)),()=>u.current?I():i.cancel()}),l(()=>{if(u.current&&c.current){let i=u.current.getOriginalEditor(),f=h(c.current,e||\"\",t||n||\"text\",m||\"\");f!==i.getModel()&&i.setModel(f)}},[m],M),l(()=>{if(u.current&&c.current){let i=u.current.getModifiedEditor(),f=h(c.current,r||\"\",a||n||\"text\",E||\"\");f!==i.getModel()&&i.setModel(f)}},[E],M),l(()=>{let i=u.current.getModifiedEditor();i.getOption(c.current.editor.EditorOption.readOnly)?i.setValue(r||\"\"):r!==i.getValue()&&(i.executeEdits(\"\",[{range:i.getModel().getFullModelRange(),text:r||\"\",forceMoveMarkers:!0}]),i.pushUndoStop())},[r],M),l(()=>{u.current?.getModel()?.original.setValue(e||\"\")},[e],M),l(()=>{let{original:i,modified:f}=u.current.getModel();c.current.editor.setModelLanguage(i,t||n||\"text\"),c.current.editor.setModelLanguage(f,a||n||\"text\")},[n,t,a],M),l(()=>{c.current?.editor.setTheme(x)},[x],M),l(()=>{u.current?.updateOptions(y)},[y],M);let L=oe(()=>{if(!c.current)return;o.current(c.current);let i=h(c.current,e||\"\",t||n||\"text\",m||\"\"),f=h(c.current,r||\"\",a||n||\"text\",E||\"\");u.current?.setModel({original:i,modified:f})},[n,r,a,e,t,m,E]),U=oe(()=>{!b.current&&w.current&&(u.current=c.current.editor.createDiffEditor(w.current,{automaticLayout:!0,...y}),L(),c.current?.editor.setTheme(x),O(!0),b.current=!0)},[y,x,L]);ne(()=>{M&&d.current(u.current,c.current)},[M]),ne(()=>{!T&&!M&&U()},[T,M,U]);function I(){let i=u.current?.getModel();g||i?.original?.dispose(),N||i?.modified?.dispose(),u.current?.dispose()}return ke.createElement(H,{width:z,height:V,isEditorReady:M,loading:P,_ref:w,className:F,wrapperProps:j})}var ie=Oe;var we=Te(ie);import{useState as Ie}from\"react\";import ce from\"@monaco-editor/loader\";function Pe(){let[e,r]=Ie(ce.__getMonacoInstance());return k(()=>{let n;return e||(n=ce.init(),n.then(t=>{r(t)})),()=>n?.cancel()}),e}var Le=Pe;import{memo as ze}from\"react\";import We,{useState as ue,useEffect as W,useRef as C,useCallback as _e}from\"react\";import Ne from\"@monaco-editor/loader\";import{useEffect as Ue,useRef as ve}from\"react\";function He(e){let r=ve();return Ue(()=>{r.current=e},[e]),r.current}var se=He;var _=new Map;function Ve({defaultValue:e,defaultLanguage:r,defaultPath:n,value:t,language:a,path:m,theme:E=\"light\",line:g,loading:N=\"Loading...\",options:x={},overrideServices:P={},saveViewState:y=!0,keepCurrentModel:V=!1,width:z=\"100%\",height:F=\"100%\",className:j,wrapperProps:A={},beforeMount:q=D,onMount:M=D,onChange:O,onValidate:T=D}){let[s,u]=ue(!1),[c,w]=ue(!0),d=C(null),o=C(null),b=C(null),L=C(M),U=C(q),I=C(),i=C(t),f=se(m),Q=C(!1),B=C(!1);k(()=>{let p=Ne.init();return p.then(R=>(d.current=R)&&w(!1)).catch(R=>R?.type!==\"cancelation\"&&console.error(\"Monaco initialization: error:\",R)),()=>o.current?pe():p.cancel()}),l(()=>{let p=h(d.current,e||t||\"\",r||a||\"\",m||n||\"\");p!==o.current?.getModel()&&(y&&_.set(f,o.current?.saveViewState()),o.current?.setModel(p),y&&o.current?.restoreViewState(_.get(m)))},[m],s),l(()=>{o.current?.updateOptions(x)},[x],s),l(()=>{!o.current||t===void 0||(o.current.getOption(d.current.editor.EditorOption.readOnly)?o.current.setValue(t):t!==o.current.getValue()&&(B.current=!0,o.current.executeEdits(\"\",[{range:o.current.getModel().getFullModelRange(),text:t,forceMoveMarkers:!0}]),o.current.pushUndoStop(),B.current=!1))},[t],s),l(()=>{let p=o.current?.getModel();p&&a&&d.current?.editor.setModelLanguage(p,a)},[a],s),l(()=>{g!==void 0&&o.current?.revealLine(g)},[g],s),l(()=>{d.current?.editor.setTheme(E)},[E],s);let X=_e(()=>{if(!(!b.current||!d.current)&&!Q.current){U.current(d.current);let p=m||n,R=h(d.current,t||e||\"\",r||a||\"\",p||\"\");o.current=d.current?.editor.create(b.current,{model:R,automaticLayout:!0,...x},P),y&&o.current.restoreViewState(_.get(p)),d.current.editor.setTheme(E),g!==void 0&&o.current.revealLine(g),u(!0),Q.current=!0}},[e,r,n,t,a,m,x,P,y,E,g]);W(()=>{s&&L.current(o.current,d.current)},[s]),W(()=>{!c&&!s&&X()},[c,s,X]),i.current=t,W(()=>{s&&O&&(I.current?.dispose(),I.current=o.current?.onDidChangeModelContent(p=>{B.current||O(o.current.getValue(),p)}))},[s,O]),W(()=>{if(s){let p=d.current.editor.onDidChangeMarkers(R=>{let G=o.current.getModel()?.uri;if(G&&R.find(J=>J.path===G.path)){let J=d.current.editor.getModelMarkers({resource:G});T?.(J)}});return()=>{p?.dispose()}}return()=>{}},[s,T]);function pe(){I.current?.dispose(),V?y&&_.set(m,o.current.saveViewState()):o.current.getModel()?.dispose(),o.current.dispose()}return We.createElement(H,{width:z,height:F,isEditorReady:s,loading:N,_ref:b,className:j,wrapperProps:A})}var fe=Ve;var de=ze(fe);var Ft=de;export{we as DiffEditor,de as Editor,Ft as default,_t as loader,Le as useMonaco};\n//# sourceMappingURL=index.mjs.map","import { editor } from \"monaco-editor\";\r\n\r\n\r\nexport const editorOptionsDefault: editor.IStandaloneEditorConstructionOptions = {\r\n\t//readOnly: true,\r\n\t//readOnlyMessage: \"\",\r\n\t//automaticLayout: true,\r\n\twordWrap: \"on\",\r\n\tlineNumbers: 'off',\r\n\tglyphMargin: false,\r\n\tlineDecorationsWidth: 0,\r\n\tlineNumbersMinChars: 0,\r\n\tfolding: true,\r\n\tshowFoldingControls: \"mouseover\",\r\n\tminimap: {\r\n\t\tenabled: false,\r\n\t},\r\n\ttabSize: 2,\r\n}\r\n","import Base64Cmp from \"@/components/formatters/base64/Base64Cmp\"\nimport HexTable from \"@/components/formatters/hex/HexTable\"\nimport { getEditorLanguage } from \"@/stores/stacks/message/utils\"\nimport { MSG_FORMAT } from \"@/utils/editor\"\nimport { Editor, Monaco } from \"@monaco-editor/react\"\nimport { editor } from \"monaco-editor\"\nimport { ForwardRefRenderFunction, forwardRef, useEffect, useImperativeHandle, useRef } from \"react\"\nimport { editorOptionsDefault } from \"./utils\"\n\n\n\ninterface Props {\n\tformat?: MSG_FORMAT\n\tvalue?: string\n\treadOnly?: boolean\n\t/** formats automatically at startup and on FORMAT change */\n\tautoFormat?: boolean\n\tclassName?: string\n\n\tonChange?: (value: string) => void\n}\n\nexport interface EditorRefProps {\n\tformat?: () => void\n}\n\nconst EditorCodeBase: ForwardRefRenderFunction = ({\n\tformat,\n\tvalue,\n\treadOnly,\n\tautoFormat,\n\tclassName,\n\tonChange,\n}, ref) => {\n\n\tconst formatRun = async () => {\n\t\tif ( !editorRef.current ) return\n\t\tif (readOnly) editorRef.current.updateOptions({ readOnly: false })\n\t\tawait editorRef.current.getAction('editor.action.formatDocument').run()\n\t\tif (readOnly) editorRef.current.updateOptions({ readOnly: true })\n\t}\n\n\t// STORE\n\n\t// HOOKs\n\tconst editorRef = useRef(null)\n\tuseEffect(() => {\n\t\tif (!editorRef.current) return\n\t\teditorRef.current.updateOptions({\n\t\t\treadOnly\n\t\t})\n\t}, [readOnly])\n\n\tuseEffect(() => {\n\t\tif (autoFormat && readOnly) setTimeout(formatRun, 20)\n\t}, [value,readOnly]);\n\n\t// HANDLER\n\tconst handleEditorDidMount = (editor: editor.IStandaloneCodeEditor, monaco: Monaco) => {\n\t\teditorRef.current = editor\n\t\teditor.updateOptions(editorOptionsDefault)\n\t\tif (autoFormat) setTimeout(formatRun, 50)\n\t}\n\tuseImperativeHandle(ref, () => ({ format: formatRun, }), [])\n\n\t// RENDER\n\tif (format == MSG_FORMAT.BASE64) {\n\t\treturn \n\t}\n\tif (format == MSG_FORMAT.HEX) {\n\t\treturn \n\t}\n\treturn \n}\n\nconst EditorCode = forwardRef(EditorCodeBase)\n\nexport default EditorCode\n\n","import EditorCode, { EditorRefProps } from \"@/components/editor\"\nimport { KVEntryStore } from \"@/stores/stacks/kventry/detail\"\nimport { EDIT_STATE } from \"@/types\"\nimport { TextInput } from \"@priolo/jack\"\nimport { useStore } from \"@priolo/jon\"\nimport { FunctionComponent } from \"react\"\n\n\n\ninterface Props {\n\tstore?: KVEntryStore\n}\n\nconst DetailForm: FunctionComponent = ({\n\tstore: kventrySo,\n}) => {\n\n\t// STORE\n\tconst kventrySa = useStore(kventrySo)\n\n\t// HOOKs\n\n\t// HANDLER\n\tconst handleKeyChange = (key: string) => kventrySo.setKVEntry({ ...kventrySo.state.kventry, key })\n\tconst handlePayloadChange = (payload: string) => kventrySo.setEditorText(payload)\n\n\t// RENDER\n\tconst kventry = kventrySo.getKVSelect()\n\tif (!kventry) return null\n\tconst inRead = kventrySa.editState == EDIT_STATE.READ\n\tconst inEdit = kventrySa.editState == EDIT_STATE.EDIT\n\tconst autoFormat = kventrySa.autoFormat\n\tconst refEditor = (ref: EditorRefProps) => kventrySa.editorRef = ref\n\tconst payload = kventrySo.getEditorText()\n\n\treturn
\n\n\t\t
\n\t\t\t
KEY
\n\t\t\t\n\t\t
\n\n\t\t\n\n\t
\n}\n\nexport default DetailForm\n","import FrameworkCard from \"@/components/cards/FrameworkCard\"\nimport { KVEntryStore } from \"@/stores/stacks/kventry/detail\"\nimport { KVEntry, OPERATION } from \"@/types/KVEntry\"\nimport { dateShow } from \"@/utils/time\"\nimport { useStore } from \"@priolo/jon\"\nimport { FunctionComponent, useEffect } from \"react\"\nimport KvEntryIcon from \"../../../../icons/cards/KvEntryIcon\"\nimport FormatDialog from \"../../../editor/FormatDialog\"\nimport clsCard from \"../../CardMintDef.module.css\"\nimport ActionsCmp from \"./Actions\"\nimport DetailForm from \"./DetailForm\"\nimport { Dialog, List } from \"@priolo/jack\"\nimport { RenderRowBaseProps } from \"@priolo/jack\"\n\n\n\ninterface Props {\n\tstore?: KVEntryStore\n}\n\nconst KVEntryDetailView: FunctionComponent = ({\n\tstore: kventrySo,\n}) => {\n\n\t// STORE\n\tconst kventrySa = useStore(kventrySo)\n\n\t// HOOKs\n\tuseEffect(() => {\n\t\tkventrySo.fetchIfVoid()\n\t}, [])\n\n\t// HANDLER\n\tconst handleHistoryClose = () => kventrySo.setHistoryOpen(false)\n\tconst handleHistorySelect = (index: number) => kventrySo.revisionSelect(kventrySa.kventry.history[index]?.revision)\n\n\t// RENDER\n\tconst history = kventrySa.kventry.history?.sort((h1, h2) => h2.revision - h1.revision)\n\tconst historySelected = kventrySo.getKVSelectIndex()\n\n\treturn }\n\t\tstore={kventrySo}\n\t\tactionsRender={}\n\t>\n\t\t\n\t\t\n\t\t\t\n\t\t\t\titems={history}\n\t\t\t\tselect={historySelected}\n\t\t\t\tonSelect={handleHistorySelect}\n\t\t\t\tRenderRow={HystoryRow}\n\t\t\t/>\n\t\t\n\t\t\n\t\n}\n\nexport default KVEntryDetailView\n\n\n\nconst HystoryRow: FunctionComponent> = ({\n\titem,\n}) => {\n\n\tconst operation = {\n\t\t[OPERATION.DELETE]: \"DELETE\",\n\t\t[OPERATION.PURGE]: \"PURGE\",\n\t\t[OPERATION.PUT]: \"PUT\",\n\t}[item.operation] ?? \"--\"\n\tconst time = dateShow(item.lastUpdate)\n\n\treturn
\n\t\t{item.revision} \n\t\t{operation}\n\t\t {time}\n\t
\n\n}\n","import FrameworkCard from \"@/components/cards/FrameworkCard\"\nimport { KVEntriesStore } from \"@/stores/stacks/kventry\"\nimport { KVEntryStore } from \"@/stores/stacks/kventry/detail\"\nimport { DOC_TYPE, EDIT_STATE } from \"@/types\"\nimport { KVEntry } from \"@/types/KVEntry\"\nimport { dateShow } from \"@/utils/time\"\nimport { AlertDialog, Button, FindInputHeader, OptionsCmp, VTable } from \"@priolo/jack\"\nimport { useStore } from \"@priolo/jon\"\nimport dayjs from \"dayjs\"\nimport { FunctionComponent, useEffect } from \"react\"\nimport KvEntriesIcon from \"../../../../icons/cards/KvEntriesIcon\"\nimport { formatNumber } from \"../../../../utils/string\"\nimport clsCard from \"../../CardMintDef.module.css\"\n\n\n\ninterface Props {\n\tstore?: KVEntriesStore\n}\n\nconst KVEntryListView: FunctionComponent = ({\n\tstore: kventriesSo,\n}) => {\n\n\t// STORE\n\tconst kventriesSa = useStore(kventriesSo)\n\tuseStore(kventriesSo.state.group)\n\n\t// HOOKs\n\tuseEffect(() => {\n\t\tkventriesSo.fetchIfVoid()\n\t}, [])\n\n\t// HANDLER\n\tconst handleSelect = (item: KVEntry) => kventriesSo.select(item.key)\n\tconst handleNew = () => kventriesSo.create()\n\tconst handleDelete = () => kventriesSo.delete()\n\tconst handlePurge = () => kventriesSo.purge()\n\n\n\t// RENDER\n\tconst kventries = kventriesSo.getFiltered() ?? []\n\tconst selected = kventriesSa.select\n\tconst isNewSelect = kventriesSa.linked?.state.type == DOC_TYPE.KVENTRY && (kventriesSa.linked as KVEntryStore).state.editState == EDIT_STATE.NEW\n\n\treturn }\n\t\tstyleBody={{ padding: 0 }}\n\t\tstore={kventriesSo}\n\t\tactionsRender={<>\n\t\t\t\n\t\t\t kventriesSo.setTextSearch(text)}\n\t\t\t/>\n\t\t\t{!!selected && }\n\t\t\t{!!selected && }\n\t\t\t\n\t\t}\n\t>\n\t\t formatNumber(i.revision),\n\t\t\t\t\tgetValue: i => i.revision,\n\t\t\t\t\tflex: .5\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tlabel: \"LAST\",\n\t\t\t\t\tgetShow: i => dateShow(i.lastUpdate),\n\t\t\t\t\tgetValue: i => dayjs(i.lastUpdate).valueOf(),\n\t\t\t\t},\n\t\t\t\t//{ label: \"OPERATION\", getValue: b => b.operation },\n\t\t\t\t{\n\t\t\t\t\tlabel: \"DELETED\",\n\t\t\t\t\tgetShow: i => i.isDeleted ? \"YES\" : \"NO\",\n\t\t\t\t\tgetValue: i => i.isDeleted ? 1 : 0,\n\t\t\t\t\tflex: .5,\n\t\t\t\t},\n\t\t\t]}\n\t\t\tpropMain={{ getValue: b => b.key }}\n\t\t\tselectId={selected}\n\t\t\tonSelectChange={handleSelect}\n\t\t\tgetId={(item: KVEntry) => item.key}\n\t\t/>\n\n\t\t\n\n\t\n}\n\nexport default KVEntryListView","import { Log } from \"@/stores/log/utils\"\nimport { dateShow } from \"@/utils/time\"\nimport { CopyButton } from \"@priolo/jack\"\nimport { FunctionComponent, useMemo } from \"react\"\nimport cls from \"./ItemRow.module.css\"\n\n\n\ninterface Props {\n\tlog?: Log\n\tindex?: number\n\tonClick?: (log: Log) => void\n}\n\nconst ItemRow: FunctionComponent = ({\n\tlog,\n\tindex,\n\tonClick,\n}) => {\n\n\t// STORE\n\n\t// HOOKs\n\n\t// HANDLER\n\tconst handleClick = () => onClick?.(log)\n\n\t// RENDER\n\tif (!log) return null\n\tconst time = useMemo(\n\t\t() => log.receivedAt ? dateShow(log.receivedAt) : null,\n\t\t[log.receivedAt]\n\t)\n\tconst clsBg = index % 2 == 0 ? cls.bg1 : cls.bg2\n\tconst clsRoot = `${cls.root} ${clsBg} ${cls[log.type]}`\n\n\treturn (\n\t\t
\n\t\t\t
\n\t\t\t\t{log.title ?? \"--\"}\n\t\t\t\t\n\t\t\t
\n\n\t\t\t
\n\t\t\t\t{log.body ?? \"--\"}\n\t\t\t
\n\n\t\t\t{time &&
{time}
}\n\t\t
\n\t)\n}\n\nexport default ItemRow\n","import FrameworkCard from \"@/components/cards/FrameworkCard\"\nimport logSo from \"@/stores/log\"\nimport { Log } from \"@/stores/log/utils\"\nimport { ViewLogStore } from \"@/stores/stacks/log\"\nimport { Button } from \"@priolo/jack\"\nimport { useStore } from \"@priolo/jon\"\nimport React, { FunctionComponent, useRef } from \"react\"\nimport { Virtuoso } from \"react-virtuoso\"\nimport LogIcon from \"../../../icons/LogIcon\"\nimport clsCard from \"../CardWhiteDef.module.css\"\nimport ItemRow from \"./ItemRow\"\n\n\n\ninterface Props {\n\tstore?: ViewLogStore\n\tstyle?: React.CSSProperties,\n}\n\nconst LogsView: FunctionComponent = ({\n\tstore: viewLogSo,\n\tstyle,\n}) => {\n\n\t// STORE\n\tconst viewLogSa = useStore(viewLogSo)\n\tconst logSa = useStore(logSo)\n\n\t// HOOKs\n\tconst virtuoso = useRef(null);\n\n\t// HANDLER\n\tconst handleMessageClick = (log: Log) => viewLogSo.select(log)\n\tconst handleClear = () => logSo.clear()\n\n\t// RENDER\n\tconst allLogs = logSa.all\n\tif (!allLogs) return
no messages
\n\n\treturn }\n\t\tclassName={clsCard.root}\n\t\tstore={viewLogSo}\n\t\tactionsRender={<>\n\t\t\t\n\t\t}\n\t>\n\t\t item.seqNum}\n\t\t\ttotalCount={allLogs?.length ?? 0}\n\t\t\t//overscan={200}\n\t\t\tdefaultItemHeight={96}\n\t\t\titemContent={(index, log) => (\n\t\t\t\t\n\t\t\t)}\n\t\t/>\n\t\n}\n\nexport default LogsView\n\n","import { FunctionComponent } from \"react\"\nimport cls from \"./HeadersCmp.module.css\"\nimport { CopyButton } from \"@priolo/jack\"\n\n\n\ninterface Props {\n\theaders?: { [key: string]: string[] }\n}\n\n/** dettaglio di un messaggio */\nconst HeadersCmp: FunctionComponent = ({\n\theaders,\n}) => {\n\n\t// STORE\n\n\t// HOOKs\n\n\t// HANDLER\n\n\t// RENDER\n\t// const headers: [string, string][] = useMemo(() => {\n\t// \tif (!msgSa.message.headers) return []\n\t// \treturn Object\n\t// \t\t.entries(msgSa.message.headers)\n\t// \t\t.reduce<[string, string][]>((acc, [key, values]) => {\n\t// \t\t\treturn acc.concat(values.map(v => [key, v]))\n\t// \t\t}, [])\n\t// }, [msgSa.message.headers])\n\tif ( !headers ) return null\n\n\treturn
\n\t\t{Object.entries(headers).map(([key, values]) =>
\n\t\t\t
{key}
\n\t\t\t
:
\n\t\t\t
\n\t\t\t\t{values.map(value =>
\n\t\t\t\t\t
{value}
\n\t\t\t\t\t\n\t\t\t\t
)}\n\t\t\t
\n\t\t
)}\n\t
\n}\n\nexport default HeadersCmp\n\n\n","const LinkDownIcon = (props) => (\n\t\n\t\t\n\t\t\n\t\t\n\t\n)\n\nexport default LinkDownIcon","import FrameworkCard from \"@/components/cards/FrameworkCard\"\nimport EditorCode, { EditorRefProps } from \"@/components/editor\"\nimport FormatAction from \"@/components/editor/FormatAction\"\nimport { MessageStore } from \"@/stores/stacks/message\"\nimport { dateShow } from \"@/utils/time\"\nimport { useStore } from \"@priolo/jon\"\nimport { FunctionComponent } from \"react\"\nimport MessageIcon from \"../../../icons/cards/MessageIcon\"\nimport FormatDialog from \"../../editor/FormatDialog\"\nimport clsCard from \"../CardCyanDef.module.css\"\nimport HeadersCmp from \"./HeadersCmp\"\nimport cls from \"./View.module.css\"\nimport { CopyButton, IconButton, TitleAccordion } from \"@priolo/jack\"\nimport LinkDownIcon from \"../../../icons/LinkDownIcon\"\nimport { DOC_TYPE } from \"../../../types\"\n\n\n\ninterface Props {\n\tstore?: MessageStore\n}\n\n/** dettaglio di un messaggio */\nconst MessageView: FunctionComponent = ({\n\tstore: msgSo,\n}) => {\n\n\t// STORE\n\tconst msgSa = useStore(msgSo)\n\n\t// HOOKs\n\n\t// HANDLER\n\tconst refEditor = (ref: EditorRefProps) => msgSa.editorRef = ref\n\tconst handleLinkLastClick = () => msgSo.setLinkToLast(!msgSo.state.linkToLast)\n\n\t// RENDER\n\tconst timestamp = dateShow(msgSa.message.receivedAt)\n\tconst autoFormat = msgSa.autoFormat\n\tconst noHeaders = !msgSa.message.headers || Object.keys(msgSa.message.headers).length == 0\n\tconst headersTitle = noHeaders ? \"WITHOUT HEADERS\" : \"HEADERS\"\n\tconst haveParent = !!msgSo.state.parent && msgSo.state.parent.state.type == DOC_TYPE.MESSAGES\n\tconst linkToLast = haveParent && msgSo.state.linkToLast\n\n\treturn }\n\t\tstore={msgSo}\n\t\tactionsRender={<>\n\t\t\t{haveParent && }\n\t\t\t
\n\t\t\t\n\t\t}\n\t>\n\t\t
\n\n\t\t\t\n\t\t\t\t\n\t\t\t\n\n\t\t\t
\n\t\t\t\t\n\t\t\t\tSUBJECT: \n\t\t\t\t\n\t\t\t\t\t{msgSa.message.subject}\n\t\t\t\t\n\t\t\t
\n\n\t\t\t
\n\t\t\t\t\n\t\t\t
\n\n\t\t\t
\n\t\t\t\t
[{msgSa.message?.seqNum}]
\n\t\t\t\t
{timestamp}
\n\t\t\t
\n\n\t\t
\n\n\t\t\n\n\t\n}\n\nexport default MessageView\n\n\n","import { MessageSendState, MessageSendStore } from \"@/stores/stacks/connection/messageSend\"\nimport { Dialog, List } from \"@priolo/jack\"\nimport { useStore } from \"@priolo/jon\"\nimport { FunctionComponent, useMemo } from \"react\"\n\n\n\ninterface Props {\n\tstore?: MessageSendStore\n}\n\nconst SubjectsDialog: FunctionComponent = ({\n\tstore: sendSo,\n}) => {\n\n\t// STORE\n\tconst sendSa = useStore(sendSo) as MessageSendState\n\n\t// HOOKs\n\n\t// HANDLER\n\tconst handleSubSelectChange = (index: number) => {\n\t\tsendSo.setSubject(sendSa.subjects[index])\n\t\tsendSo.setSubsOpen(false)\n\t}\n\tconst handleSubsClose = () => {\n\t\tsendSo.setSubsOpen(false)\n\t}\n\n\t// RENDER\n\tconst select = useMemo(\n\t\t() => sendSa.subjects.findIndex(s => s == sendSa.subject),\n\t\t[sendSa.subjects, sendSa.subject]\n\t)\n\n\treturn \n\t\t style={{ flex: 1 }}\n\t\t\titems={sendSa.subjects}\n\t\t\tselect={select}\n\t\t\tonSelect={handleSubSelectChange}\n\t\t/>\n\t\n}\n\nexport default SubjectsDialog\n","import FrameworkCard from \"@/components/cards/FrameworkCard\"\nimport EditorCode, { EditorRefProps } from \"@/components/editor\"\nimport FormatAction from \"@/components/editor/FormatAction\"\nimport SendIcon from \"@/icons/SendIcon\"\nimport { MessageSendState, MessageSendStore } from \"@/stores/stacks/connection/messageSend\"\nimport { LOAD_STATE } from \"@/stores/stacks/utils\"\nimport { useStore } from \"@priolo/jon\"\nimport React, { FunctionComponent } from \"react\"\nimport StreamsIcon from \"../../../icons/cards/StreamsIcon\"\nimport FormatDialog from \"../../editor/FormatDialog\"\nimport EditMetadataRow from \"../../rows/EditMetadataRow\"\nimport clsCard from \"../CardCyanDef.module.css\"\nimport SubjectsDialog from \"./SubjectsDialog\"\nimport { Button, CircularLoadingCmp, EditList, FloatButton, TextInput, TitleAccordion } from \"@priolo/jack\"\n\n\n\ninterface Props {\n\tstore?: MessageSendStore\n}\n\nconst MessageSendView: FunctionComponent = ({\n\tstore: sendSo,\n}) => {\n\n\t// STORE\n\tconst sendSa = useStore(sendSo) as MessageSendState\n\n\t// HOOKs\n\n\t// HANDLER\n\tconst handleSend = () => sendSo.publish()\n\tconst handleValueChange = (value: string) => sendSo.setText(value)\n\tconst handleSubsClick = (e: React.MouseEvent, select?: boolean) => {\n\t\tif (select) return\n\t\tsendSo.setSubsOpen(!select)\n\t}\n\tconst handleSubjectChange = (value: string) => sendSo.setSubject(value)\n\tconst handleHeaderChange = (headers: [string, string][]) => sendSo.setHeaders(headers)\n\n\t// RENDER\n\tconst canSend = sendSo.getCanEdit()\n\tconst inLoading = sendSa.loadingState == LOAD_STATE.LOADING\n\tconst autoFormat = sendSa.autoFormat\n\tconst refEditor = (ref: EditorRefProps) => sendSa.editorRef = ref\n\n\treturn }\n\t\tstore={sendSo}\n\t\tactionsRender={<>\n\n\t\t\t\n\t\t\t
\n\n\t\t\t\n\t\t\t\n\t\t}\n\t>\n\t\t
\n\n\t\t\t\n\t\t\t\t\n\t\t\t\t\titems={sendSa.headers}\n\t\t\t\t\tonItemsChange={handleHeaderChange}\n\t\t\t\t\t//readOnly={inRead}\n\t\t\t\t\tplaceholder=\"ex. 10\"\n\t\t\t\t\tonNewItem={() => [\"\", \"\"]}\n\t\t\t\t\tfnIsVoid={m => !m || (m[0] == \"\" && m[1] == \"\")}\n\t\t\t\t\tRenderRow={EditMetadataRow}\n\t\t\t\t/>\n\t\t\t\n\n\t\t\t
\n\t\t\t\t
SUBJECT
\n\t\t\t\t\"\n\t\t\t\t\tvalue={sendSa.subject}\n\t\t\t\t\tonChange={handleSubjectChange}\n\t\t\t\t/>\n\t\t\t
\n\n\t\t\t
\n\t\t\t\t sendSa.editorRef = ref}\n\t\t\t\t\tformat={sendSa.format}\n\t\t\t\t\tvalue={sendSo.getEditorText()}\n\t\t\t\t\tonChange={handleValueChange}\n\t\t\t\t/>\n\t\t\t
\n\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\t{inLoading\n\t\t\t\t\t\t? \n\t\t\t\t\t\t: \n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t
\n\t\t
\n\n\t\t\n\t\t\n\n\t\n\n}\n\nexport default MessageSendView\n","import ConfigIcon from \"@/icons/cards/ConfigIcon\"\nimport { StreamStore } from \"@/stores/stacks/streams/detail\"\nimport { DOC_TYPE, EDIT_STATE } from \"@/types\"\nimport { Button, IconButton, OptionsCmp } from \"@priolo/jack\"\nimport { useStore } from \"@priolo/jon\"\nimport { FunctionComponent } from \"react\"\n\n\n\ninterface Props {\n\tstore?: StreamStore\n}\n\nconst ActionsCmp: FunctionComponent = ({\n\tstore: streamSo,\n}) => {\n\n\t// STORE\n\tconst streamSa = useStore(streamSo)\n\n\t// HOOKs\n\n\t// HANDLER\n\tconst handleEditClick = async () => streamSo.setEditState(EDIT_STATE.EDIT)\n\tconst handleCancelClick = () => streamSo.restore()\n\tconst handleSaveClick = async () => streamSo.save()\n\tconst handleConfigClick = () => streamSo.openJsonConfig()\n\n\t// RENDER\n\tif (streamSa.stream == null) return null\n\n\tconst configOpen = streamSa.linked?.state.type == DOC_TYPE.JSON_CONFIG\n\n\tif (streamSa.editState == EDIT_STATE.NEW) {\n\t\treturn <>\n\t\t\t\n\t\t\t\n\t\t\n\n\t} else if (streamSa.editState == EDIT_STATE.READ) {\n\t\treturn <>\n\t\t\t\n\t\t\t
\n\t\t\t\n\t\t\n\t}\n\n\t// EDIT\n\treturn <>\n\t\t\n\t\t\n\t\t\n\t\n}\n\nexport default ActionsCmp\n","import MaxBytesCmp from \"@/components/input/MaxBytesCmp\"\nimport MaxNumberCmp from \"@/components/input/MaxNumberCmp\"\nimport MaxTimeCmp from \"@/components/input/MaxTimeCmp\"\nimport { StreamStore } from \"@/stores/stacks/streams/detail\"\nimport { EDIT_STATE } from \"@/types\"\nimport { COMPRESSION, DISCARD, RETENTION, Source, STORAGE } from \"@/types/Stream\"\nimport { dateShow } from \"@/utils/time\"\nimport { useStore } from \"@priolo/jon\"\nimport { FunctionComponent, useState } from \"react\"\nimport SourcesCmp from \"./cmp/SourcesCmp\"\nimport { Accordion, Component, EditList, EditStringRow, ElementDialog, IconToggle, ListDialog, NumberInput, StringUpRow, TextInput, TitleAccordion } from \"@priolo/jack\"\nimport EditSourceCmp from \"@/components/stacks/streams/detail/cmp/EditSourceCmp.tsx\";\nimport KeyValueMap from \"@/components/input/KeyValueMap.tsx\";\nimport ArrowRightIcon from \"@/icons/ArrowRightIcon\"\nimport { formatNumber } from \"@/utils/string\"\n\n\ninterface Props {\n store?: StreamStore\n}\n\nconst Form: FunctionComponent = ({\n store: streamSo,\n}) => {\n\n // STORE\n const streamSa = useStore(streamSo)\n\n // HOOKs\n const [mirrorElm, setMirrorElm] = useState(null)\n\n // HANDLER\n const handlePropChange = (prop: {\n [name: string]: any\n }) => streamSo.setStreamConfig({ ...streamSa.stream.config, ...prop })\n\n const handleMirrorPropChange = (mirror: Source) => {\n config.mirror = mirror\n streamSo.setStreamConfig(config)\n }\n\n const handleRepublishPropChange = (prop: { [name: string]: any }) => {\n const config = { ...streamSa.stream.config }\n config.republish = { ...config.republish, ...prop }\n streamSo.setStreamConfig(config)\n }\n const handleRepublishToggle = (check: boolean) => {\n const config = { ...streamSa.stream.config }\n config.republish = check ? { src: \"\", dest: \"\", headersOnly: false } : null\n streamSo.setStreamConfig(config)\n }\n\n const handlePlacementPropChange = (prop: { [name: string]: any }) => {\n const config = { ...streamSa.stream.config }\n config.placement = { ...config.placement, ...prop }\n streamSo.setStreamConfig(config)\n }\n\n const handleMetadataPropChange = (metadata: { [name: string]: any }) => {\n const config = { ...streamSa.stream.config }\n config.metadata = metadata\n streamSo.setStreamConfig(config)\n }\n\n const handleSubjectTransformPropChange = (prop: { [name: string]: any }) => {\n const config = { ...streamSa.stream.config }\n config.subjectTransform = { ...config.subjectTransform, ...prop }\n streamSo.setStreamConfig(config)\n }\n\n const handleConsumerLimitsPropChange = (prop: { [name: string]: any }) => {\n const config = { ...streamSa.stream.config }\n config.consumerLimits = { ...config.consumerLimits, ...prop }\n streamSo.setStreamConfig(config)\n }\n\n const handleMirrorCheck = (check: boolean) => {\n if (check && !config.mirror) {\n handlePropChange({ mirror: { name: \"\", optStartSeq: 0, optStartTime: null, filterSubject: \"\" } })\n return\n }\n if (!check && config.mirror) {\n handlePropChange({ mirror: null })\n }\n }\n\n const handleCompressionChange = (check: boolean) => {\n if (check && !compressionIsSet) {\n handlePropChange({ compression: COMPRESSION.S2 })\n return\n }\n if (!check && compressionIsSet) {\n handlePropChange({ compression: COMPRESSION.NONE })\n }\n }\n\n const handleSubjectTransform = (check: boolean) => {\n if (check && !config.subjectTransform) {\n handlePropChange({ subjectTransform: { src: \"\", dest: \"\", } })\n return\n }\n if (!check && config.subjectTransform) {\n handlePropChange({ subjectTransform: null })\n }\n }\n\n const handleConsumerLimits = (check: boolean) => {\n if (check && !consumerLimitsIsSet) {\n handlePropChange({ consumerLimits: { inactiveThreshold: 0, maxAckPending: 0, } })\n return\n }\n if (!check && consumerLimitsIsSet) {\n handlePropChange({ consumerLimits: null })\n }\n }\n\n\n // RENDER\n if (streamSa.stream?.config == null) return null\n const config = streamSa.stream.config\n const state = streamSa.stream.state\n const firstTs = dateShow(state.firstTs)\n const lastTs = dateShow(state.lastTs)\n const inRead = streamSa.editState == EDIT_STATE.READ\n const inNew = streamSa.editState == EDIT_STATE.NEW\n const allStreams = streamSa.allStreams\n // this is needed because NATS return an empty object instead of null when consumer limits are not set\n const consumerLimitsIsSet = config.consumerLimits != null && Object.keys(config.consumerLimits).length > 0\n const compressionIsSet = !!config.compression && config.compression != COMPRESSION.NONE\n\n return
\n\n {inRead && (\n \n\n
\n
\n
COUNT
\n
{formatNumber(state.messages)}
\n
\n
\n
\n
BYTES
\n
{formatNumber(state.bytes)}
\n
\n
\n
\n
DELETED
\n
{formatNumber(state.numDeleted)}
\n
\n
\n\n
\n
FIRST SEQUENCE
\n
\n
{formatNumber(state.firstSeq)}
\n
{firstTs}
\n
\n
\n\n
\n
LAST SEQUENCE
\n
\n
{formatNumber(state.lastSeq)}
\n
{lastTs}
\n
\n
\n\n
\n
CONSUMER COUNT
\n
{formatNumber(state.consumerCount)}
\n
\n\n \n )}\n\n \n\n
\n
NAME
\n handlePropChange({ name })}\n readOnly={inRead || !inNew}\n />\n
\n\n
\n
DESCRIPTION
\n handlePropChange({ description })}\n readOnly={inRead}\n />\n
\n\n
\n
STORAGE
\n handlePropChange({ storage: Object.values(STORAGE)[index] })}\n />\n
\n\n
\n
SUBJECTS
\n \n items={config.subjects}\n onItemsChange={subjects => handlePropChange({ subjects })}\n placeholder=\"ex. orders.* or telemetry.>\"\n readOnly={inRead}\n\n onNewItem={() => \"\"}\n fnIsVoid={i => !i || i.trim().length == 0}\n RenderRow={EditStringRow}\n />\n
\n
\n\n \n\n
\n
SOURCES
\n handlePropChange({ sources })}\n />\n
\n\n
\n
\n \n
MIRROR
\n
\n {!!config.mirror && <>\n setMirrorElm(!!mirrorElm ? null : e.target as HTMLElement)}\n enterRender={}\n >{config.mirror.name}\n setMirrorElm(null)}\n >\n \n \n\n }\n
\n\n
\n\n \n
\n
POLICY
\n handlePropChange({ retention: Object.values(RETENTION)[index] })}\n />\n
\n
\n
DISCARD
\n {\n handlePropChange({ discard: Object.values(DISCARD)[index] })\n }}\n />\n
\n
\n handlePropChange({ allowRollupHdrs })}\n readOnly={inRead}\n />\n
ALLOW ROLL UP HDRS
\n
\n
\n handlePropChange({ denyDelete })}\n readOnly={inRead || !inNew}\n />\n
DENY DELETE
\n
\n
\n handlePropChange({ denyPurge })}\n readOnly={inRead || !inNew}\n />\n
DENY PURGE
\n
\n
\n\n\n \n streamSo.setStreamConfig({ ...streamSa.stream.config, maxAge })}\n />\n streamSo.setStreamConfig({ ...streamSa.stream.config, maxBytes })}\n />\n streamSo.setStreamConfig({ ...streamSa.stream.config, maxConsumers })}\n />\n streamSo.setStreamConfig({ ...streamSa.stream.config, maxMsgSize })}\n />\n streamSo.setStreamConfig({ ...streamSa.stream.config, maxMsgs })}\n />\n streamSo.setStreamConfig({ ...streamSa.stream.config, maxMsgsPerSubject })}\n />\n \n\n\n \n
\n
NUM REPLICAS
\n handlePropChange({ numReplicas })}\n readOnly={inRead}\n />\n
\n
\n
CLUSTER
\n
\n
\n
NAME
\n handlePlacementPropChange({ cluster })}\n readOnly={inRead}\n />\n
\n
\n
TAGS
\n \n items={config.placement?.tags}\n onItemsChange={tags => handlePlacementPropChange({ tags })}\n placeholder=\"ex. client or java\"\n readOnly={inRead}\n onNewItem={() => \"\"}\n fnIsVoid={i => !i || i.trim().length == 0}\n RenderRow={EditStringRow}\n />\n
\n
\n
\n
\n\n\n \n
\n handlePropChange({ noAck })}\n readOnly={inRead}\n />\n
ALLOW NO ACK ON PUBLISH
\n
\n
\n
DUPLICATE WINDOW
\n handlePropChange({ duplicateWindow })}\n readOnly={inRead}\n />\n
\n
\n
\n \n
REPUBLISH
\n
\n \n
\n
\n
SOURCE
\n handleRepublishPropChange({ src })}\n readOnly={inRead}\n />\n
\n
\n
DESTINATION
\n handleRepublishPropChange({ dest })}\n readOnly={inRead}\n />\n
\n
\n handleRepublishPropChange({ headersOnly })}\n readOnly={inRead}\n />\n
HEADERS ONLY
\n
\n
\n
\n
\n
\n\n\n \n
\n handlePropChange({ sealed })}\n readOnly={inRead}\n />\n
SEALED
\n
\n\n {/*
\n\t\t\t
TEMPLATE OWNER
\n\t\t\t handlePropChange({templateOwner})}\n\t\t\t\treadOnly={inRead}\n\t\t\t/>\n\t\t
*/}\n
\n\n \n
\n
METADATA
\n \n
\n\n
\n
\n \n
COMPRESSION
\n
\n
\n\n
\n
FIRST SEQ
\n
\n handlePropChange({ firstSeq })}\n readOnly={inRead && !inNew}\n />\n
\n
\n\n
\n
\n \n
SUBJECT TRANSFORM
\n
\n \n
\n
\n
SOURCE
\n handleSubjectTransformPropChange({ src })}\n readOnly={inRead}\n />\n
\n
\n
DESTINATION
\n handleSubjectTransformPropChange({ dest })}\n readOnly={inRead}\n />\n
\n
\n
\n
\n\n
\n
\n \n
CONSUMER LIMITS
\n
\n \n
\n
\n handleConsumerLimitsPropChange({ inactiveThreshold })}\n />\n
\n
\n
MAX CONSUMERS
\n handleConsumerLimitsPropChange({ maxAckPending })}\n readOnly={inRead}\n />\n
\n
\n
\n
\n
\n\n\n
\n}\n\nexport default Form\n\n","import LinkButton from \"@/components/buttons/LinkButton\"\nimport FrameworkCard from \"@/components/cards/FrameworkCard\"\nimport RowButton from \"@/components/rows/RowButton\"\nimport ConsumersIcon from \"@/icons/cards/ConsumersIcon\"\nimport MessagesIcon from \"@/icons/cards/MessagesIcon\"\nimport StreamIcon from \"@/icons/cards/StreamIcon\"\nimport { StreamStore } from \"@/stores/stacks/streams/detail\"\nimport { EDIT_STATE } from \"@/types\"\nimport { useStore } from \"@priolo/jon\"\nimport { FunctionComponent, useEffect } from \"react\"\nimport clsCard from \"../../CardYellow.module.css\"\nimport ActionsCmp from \"./Actions\"\nimport Form from \"./Form\"\n\n\n\ninterface Props {\n\tstore?: StreamStore\n}\n\nconst StreamDetailView: FunctionComponent = ({\n\tstore: streamSo,\n}) => {\n\n\t// STORE\n\tconst streamSa = useStore(streamSo)\n\tuseStore(streamSo.state.group)\n\n\t// HOOKs\n\tuseEffect(() => {\n\t\tstreamSo.fetchIfVoid()\n\t}, [])\n\n\t// HANDLER\n\tconst handleConsumersClick = () => streamSo.toggleConsumer()\n\tconst handleMessagesClick = () => streamSo.toggleMessages()\n\n\t// RENDER\n\tconst inRead = streamSa.editState == EDIT_STATE.READ\n\tconst isConsumersSelect = streamSo.getConsumerOpen()\n\tconst isMessagesSelect = streamSo.getMessagesOpen()\n\n\treturn }\n\t\tstore={streamSo}\n\t\tactionsRender={}\n\t\ticonizedRender={\n\t\t\t
\n\t\t\t\t}\n\t\t\t\t\ttooltip=\"MESSAGES\"\n\t\t\t\t\tclassName=\"jack-focus-1\"\n\t\t\t\t\tselected={isMessagesSelect}\n\t\t\t\t\tonClick={handleMessagesClick}\n\t\t\t\t/>\n\t\t\t\t}\n\t\t\t\t\ttooltip=\"CONSUMERS\"\n\t\t\t\t\tclassName=\"jack-focus-2\"\n\t\t\t\t\tselected={isConsumersSelect}\n\t\t\t\t\tonClick={handleConsumersClick}\n\t\t\t\t/>\n\t\t\t
\n\t\t}\n\t>\n\t\t{inRead && <>\n\t\t\t}\n\t\t\t\tlabel=\"MESSAGES\"\n\t\t\t\tclassName=\"jack-focus-1\"\n\t\t\t\tselected={isMessagesSelect}\n\t\t\t\tonClick={handleMessagesClick}\n\t\t\t/>\n\t\t\t}\n\t\t\t\tlabel=\"CONSUMERS\"\n\t\t\t\tclassName=\"jack-focus-2\"\n\t\t\t\tselected={isConsumersSelect}\n\t\t\t\tonClick={handleConsumersClick}\n\t\t\t/>\n\n\t\t}\n\n\t\t\n\n\t\n}\n\nexport default StreamDetailView\n","import CheckRadioOnIcon from \"@/icons/CheckRadioOnIcon\"\nimport { StreamsStore } from \"@/stores/stacks/streams/index.ts\"\nimport { Button, Dialog, IconToggle, NumberInput, TextInput } from \"@priolo/jack\"\nimport { useStore } from \"@priolo/jon\"\nimport { FunctionComponent, useEffect, useState } from \"react\"\n\n\n\ninterface PurgeParams {\n bySeq?: boolean\n byKeep?: boolean\n number?: number\n subject?: string\n}\n\ninterface Props {\n store: StreamsStore\n}\n\nconst PurgeDialog: FunctionComponent = ({\n store: streamsSo,\n}) => {\n\n // STORE\n const streamSa = useStore(streamsSo)\n\n // HOOKs\n const [purgeParams, setPurgeParams] = useState(null)\n useEffect(() => {\n if (!streamsSo.state.purgeOpen) return\n if (!purgeParams) setPurgeParams({\n bySeq: true,\n byKeep: false,\n number: 0,\n subject: null,\n })\n }, [streamsSo.state.purgeOpen])\n\n // HANDLER\n const handlePurgePropChange = (prop: Partial) => setPurgeParams({ ...purgeParams, ...prop })\n const handleClose = () => streamsSo.setPurgeOpen(false)\n const handleApply = () => {\n streamsSo.setPurgeOpen(false)\n streamsSo.purge({\n seq: purgeParams.bySeq ? purgeParams.number : null,\n keep: purgeParams.byKeep ? purgeParams.number : null,\n subject: purgeParams.subject,\n })\n }\n\n // RENDER\n if (!purgeParams) return null\n\n return (\n \n
\n\n
\n
\n handlePurgePropChange({ bySeq: select, byKeep: false })}\n trueIcon={}\n />\n
SEQUENCE
\n handlePurgePropChange({ byKeep: select, bySeq: false })}\n trueIcon={}\n />\n
KEEP
\n
\n handlePurgePropChange({ number })}\n />\n
\n\n
\n
SUBJECT
\n handlePurgePropChange({ subject })}\n />\n
\n\n
\n\n
\n DANGER\n
\n\n
\n This action is irreversible.\n Are you sure you want to purge the STREAM?\n
\n\n
\n\n \n handleApply()}\n />\n handleClose()}\n />\n
\n\n \n )\n}\n\nexport default PurgeDialog\n\n","import FrameworkCard from \"@/components/cards/FrameworkCard\"\nimport PurgeDialog from \"@/components/stacks/streams/list/PurgeDialog.tsx\"\nimport StreamsIcon from \"@/icons/cards/StreamsIcon\"\nimport { StreamsStore } from \"@/stores/stacks/streams\"\nimport { StreamStore } from \"@/stores/stacks/streams/detail\"\nimport { DOC_TYPE, EDIT_STATE } from \"@/types\"\nimport { StreamInfo } from \"@/types/Stream\"\nimport { useStore } from \"@priolo/jon\"\nimport { FunctionComponent, useEffect } from \"react\"\nimport clsCard from \"../../CardYellowDef.module.css\"\nimport { AlertDialog, Button, FindInputHeader, OptionsCmp, Table } from \"@priolo/jack\"\nimport { formatNumber } from \"../../../../utils/string\"\n\n\n\ninterface Props {\n\tstore?: StreamsStore\n}\n\nconst StreamsListView: FunctionComponent = ({\n\tstore: streamsSo,\n}) => {\n\n\t// STORE\n\tconst streamsSa = useStore(streamsSo)\n\tuseStore(streamsSo.state.group)\n\n\t// HOOKs\n\tuseEffect(() => {\n\t\tstreamsSo.fetchIfVoid()\n\t}, [])\n\n\t// HANDLER\n\tconst handleSelect = (stream: StreamInfo) => streamsSo.select(stream?.config?.name)\n\tconst handlePurgeClick = () => streamsSo.setPurgeOpen(true)\n\tconst handleNew = () => streamsSo.create()\n\tconst handleDelete = () => streamsSo.delete()\n\n\t// RENDER\n\tconst streams = streamsSo.getFiltered() ?? []\n\tconst nameSelected = streamsSa.select\n\tconst isNewSelect = streamsSa.linked?.state.type == DOC_TYPE.STREAM \n\t\t&& (streamsSa.linked as StreamStore).state.editState == EDIT_STATE.NEW\n\n\treturn }\n\t\tstyleBody={{ padding: 0, }}\n\t\tstore={streamsSo}\n\t\tactionsRender={<>\n\t\t\t\n\t\t\t streamsSo.setTextSearch(text)}\n\t\t\t/>\n\t\t\t{!!nameSelected && }\n\t\t\t{!!nameSelected && }\n\t\t\t{!!nameSelected &&
|
}\n\t\t\t\n\t\t}\n\t>\n\t\t s.config.name, isMain: true },\n\t\t\t\t{ label: \"SIZE\", getValue: s => s.state.messages, getShow: s => formatNumber(s.state.messages) },\n\t\t\t\t{ label: \"FIRST\", getValue: s => s.state.firstSeq, getShow: s => formatNumber(s.state.firstSeq) },\n\t\t\t\t{ label: \"LAST\", getValue: s => s.state.lastSeq, getShow: s => formatNumber(s.state.lastSeq) },\n\t\t\t\t{ label: \"BYTES\", getValue: s => s.state.lastSeq, getShow: s => formatNumber(s.state.bytes) },\n\t\t\t]}\n\t\t\tselectId={nameSelected}\n\t\t\tonSelectChange={handleSelect}\n\t\t\tgetId={item => item.config.name}\n\t\t\tsingleRow={streamsSo.getWidth() > 430}\n\t\t/>\n\n\t\t\n\n\t\t\n\n\t\n}\n\nexport default StreamsListView\n","import CheckRadioOnIcon from \"@/icons/CheckRadioOnIcon\"\nimport { StreamMessagesStore } from \"@/stores/stacks/streams/messages\"\nimport { StreamMessagesFilter } from \"@/stores/stacks/streams/utils/filter\"\nimport { useStore } from \"@priolo/jon\"\nimport { FunctionComponent, useEffect, useMemo, useState } from \"react\"\nimport cls from \"./FllterDialog.module.css\"\nimport { Button, DateTimeInput, Dialog, EditList, EditStringRow, IconToggle, ListMultiWithFilter, NumberInput, TitleAccordion } from \"@priolo/jack\"\n\n\n\ninterface Props {\n\tstore: StreamMessagesStore\n}\n\nconst FilterDialog: FunctionComponent = ({\n\tstore: strMsgSo,\n}) => {\n\n\t// STORE\n\tconst strMsgSa = useStore(strMsgSo)\n\n\t// HOOKs\n\tconst [filter, setFilter] = useState(null)\n\tuseEffect(() => {\n\t\tif (!strMsgSo.state.filtersOpen) return\n\t\tsetFilter({ ...strMsgSo.state.filter, subjects: [...strMsgSo.state.filter.subjects] })\n\t}, [strMsgSo.state.filtersOpen])\n\n\t// HANDLER\n\tconst handleFilterPropChange = (prop: Partial) => {\n\t\tsetFilter({ ...filter, ...prop })\n\t}\n\tconst handleClose = () => {\n\t\tstrMsgSo.setFiltersOpen(false)\n\t}\n\tconst handleApply = () => {\n\t\tstrMsgSo.setFiltersOpen(false)\n\t\tstrMsgSo.filterApply({ ...filter })\n\t}\n\tconst handleCancel = () => {\n\t\tstrMsgSo.setFiltersOpen(false)\n\t}\n\tconst handleChangeSubjectsCustom = (newSubjectsCustom: string[]) => {\n\t\tstrMsgSo.setSubjectsCustom(newSubjectsCustom)\n\t}\n\tconst hadleFirstSeqClick = () => {\n\t\tconst first = strMsgSa.stream.state?.firstSeq\n\t\tif (first == null) return\n\t\tsetFilter({ ...filter, startSeq: first })\n\t}\n\tconst hadleLastSeqClick = () => {\n\t\tconst last = strMsgSa.stream.state?.lastSeq\n\t\tif (last == null) return\n\t\tsetFilter({ ...filter, startSeq: last })\n\t}\n\n\t// RENDER\n\tconst [subjects, counters] = useMemo(() => [\n\t\tObject.keys(strMsgSa.stream?.state?.subjects ?? {}),\n\t\tObject.values(strMsgSa.stream?.state?.subjects ?? {})\n\t], [strMsgSa.stream?.state?.subjects])\n\n\tif (!filter) return null\n\n\tconst width = subjects.length > 15 && subjects[13].length > 49 ? 400 : 250\n\tconst firstSeq = strMsgSa.stream.state?.firstSeq ?? 0\n\tconst lastSeq = strMsgSa.stream.state?.lastSeq ?? 0\n\n\treturn (\n\t\t\n\t\t\t
\n\n\t\t\t\t
\n\t\t\t\t\t handleFilterPropChange({ byTime: false })}\n\t\t\t\t\t\ttrueIcon={}\n\t\t\t\t\t/>\n\t\t\t\t\t
START
\n\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t[\n\t\t\t\t\t\t:\n\t\t\t\t\t\t\n\t\t\t\t\t\t]\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t handleFilterPropChange({ startSeq })}\n\t\t\t\t/>\n\n\t\t\t\t
\n\t\t\t\t\t handleFilterPropChange({ byTime: true })}\n\t\t\t\t\t\ttrueIcon={}\n\t\t\t\t\t/>\n\t\t\t\t\t
TIME START
\n\t\t\t\t
\n\t\t\t\t handleFilterPropChange({ startTime })}\n\t\t\t\t/>\n\n\t\t\t\t
\n\t\t\t\t\t
INTERVAL
\n\t\t\t\t\t handleFilterPropChange({ interval })}\n\t\t\t\t\t/>\n\t\t\t\t
\n\n\t\t\t\t\n\t\t\t\t\t handleFilterPropChange({ subjects })}\n\t\t\t\t\t\trenderRow={(item, index) =>
\n\t\t\t\t\t\t\t
{item}
\n\t\t\t\t\t\t\t
{counters[index]}
\n\t\t\t\t\t\t
}\n\t\t\t\t\t/>\n\t\t\t\t
\n\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\titems={strMsgSa.subjectsCustom}\n\t\t\t\t\t\tonItemsChange={handleChangeSubjectsCustom}\n\n\t\t\t\t\t\tplaceholder=\"ex. place01.* or sensors.>\"\n\t\t\t\t\t\tonNewItem={() => \"\"}\n\t\t\t\t\t\tfnIsVoid={i => !i || i.trim().length == 0}\n\t\t\t\t\t\tRenderRow={EditStringRow}\n\t\t\t\t\t/>\n\t\t\t\t\n\n\t\t\t\t
\n\t\t\t\t\t
\n\n\t\t\t
\n\t\t
\n\t)\n}\n\nexport default FilterDialog\n\n","import FrameworkCard from \"@/components/cards/FrameworkCard\"\nimport DividerRow, { DIVIDER_VARIANT } from \"@/components/formatters/divider/DividerRow\"\nimport ArrowDownIcon from \"@/icons/ArrowDownIcon\"\nimport ArrowUpIcon from \"@/icons/ArrowUpIcon\"\nimport { StreamMessagesStore } from \"@/stores/stacks/streams/messages\"\nimport { LOAD_STATE } from \"@/stores/stacks/utils\"\nimport { Message } from \"@/types/Message\"\nimport { debounce } from \"@/utils/time\"\nimport { useStore } from \"@priolo/jon\"\nimport { FunctionComponent, useEffect, useMemo, useState } from \"react\"\nimport MessageIcon from \"../../../../icons/cards/MessageIcon\"\nimport FormatDialog from \"../../../editor/FormatDialog\"\nimport clsCard from \"../../CardCyanDef.module.css\"\nimport MessagesList from \"../../messages/MessagesList\"\nimport FilterDialog from \"./FilterDialog\"\nimport { AlertDialog, Button, CircularLoadingCmp, FindInputHeader, OptionsCmp } from \"@priolo/jack\"\nimport { MessageStore } from \"../../../../stores/stacks/message\"\nimport { DOC_TYPE } from \"../../../../types\"\n\n\n\ninterface Props {\n\tstore?: StreamMessagesStore\n}\n\nconst StreamMessagesView: FunctionComponent = ({\n\tstore: strMsgSo,\n}) => {\n\n\t// STORE\n\tconst strMsgSa = useStore(strMsgSo)\n\n\t// HOOKs\n\tconst [textFind, setTextFind] = useState(strMsgSa.textSearch ?? \"\")\n\n\tuseEffect(() => {\n\t\tstrMsgSo.fetchIfVoid()\n\t}, [])\n\n\t// HANDLER\n\tconst handleFilterClick = (e: React.MouseEvent, select: boolean) => strMsgSo.setFiltersOpen(!select)\n\tconst handleFormatsClick = () => strMsgSo.setFormatsOpen(true)\n\tconst handleSearchChange = (value: string) => {\n\t\tsetTextFind(value)\n\t\tdebounce(`text-find-${strMsgSa.uuid}`, () => strMsgSo.setTextSearch(value), 2000)\n\t}\n\tconst handleLoad = async (bottom: boolean) => {\n\t\tif (bottom) {\n\t\t\treturn await strMsgSo.fetchNext()\n\t\t} else {\n\t\t\treturn await strMsgSo.fetchPrev()\n\t\t}\n\t}\n\tconst hendleMessageClick = (message: Message) => strMsgSo.openMessageDetail(message)\n\tconst hendleMessageDelete = (message: Message) => strMsgSo.deleteMessage(message)\n\n\t// RENDER\n\tconst messages = useMemo(() => strMsgSo.getFiltered(), [strMsgSa.textSearch, strMsgSa.messages])\n\tconst formatSel = strMsgSa.format?.toUpperCase() ?? \"\"\n\tconst inLoading = strMsgSa.loadingState == LOAD_STATE.LOADING\n\n\tconst storeMsg = (strMsgSo.state.linked as MessageStore)\n\tconst selectedIndex = useMemo(() => {\n\t\tif (!!messages && storeMsg?.state.type == DOC_TYPE.MESSAGE && !!storeMsg.state.message) {\n\t\t\treturn messages.findIndex(m => m.seqNum == storeMsg.state.message.seqNum)\n\t\t}\n\t\treturn null\n\t}, [storeMsg?.state?.message?.seqNum])\n\n\n\treturn }\n\t\tstore={strMsgSo}\n\t\tactionsRender={<>\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t>\n\t\t handleLoad(false)} />}\n\t\t\tfooter={ handleLoad(true)} />}\n\t\t/>\n\n\t\t\n\n\t\t\n\n\t\t\n\n\t\n}\n\nexport default StreamMessagesView\n\n\nconst TitleLoading = ({ divider = undefined, inLoading, label, onClick }) => \n\t\t\t{inLoading\n\t\t\t\t? \n\t\t\t\t: (divider == DIVIDER_VARIANT.BORDER_DOWN ? : )\n\t\t\t}\n\t\t\t{label}\n\t\t
\n\t}\n\tonClick={onClick}\n/>","import {Dialog} from \"@priolo/jack\"\nimport {useStore} from \"@priolo/jon\"\nimport {FunctionComponent} from \"react\"\nimport {SyncState, SyncStore} from \"@/stores/stacks/sync\";\nimport MaxTimeCmp, {TIME} from \"@/components/input/MaxTimeCmp.tsx\";\n\n\ninterface Props {\n store?: SyncStore\n}\n\nconst OptionsDialog: FunctionComponent = ({\n store: syncSo,\n }) => {\n\n // STORE\n const syncSa = useStore(syncSo) as SyncState\n\n // HOOKs\n\n // HANDLER\n const handleTimeoutChange = (timeoutMs) => {\n syncSo.setTimeoutMs(timeoutMs)\n }\n const handleOptionsClose = () => {\n syncSo.setOptionsOpen(false)\n }\n\n // RENDER\n\n return \n
\n
TIMEOUT
\n \n
\n\n\n \n}\n\nexport default OptionsDialog\n","import FrameworkCard from \"@/components/cards/FrameworkCard\"\nimport EditorCode from \"@/components/editor\"\nimport FormatDialog from \"@/components/editor/FormatDialog\"\nimport HeadersCmp from \"@/components/stacks/message/HeadersCmp.tsx\"\nimport ArrowRightIcon from \"@/icons/ArrowRightIcon\"\nimport FormatIcon from \"@/icons/FormatIcon\"\nimport SendIcon from \"@/icons/SendIcon\"\nimport sync, { SyncStore } from \"@/stores/stacks/sync\"\nimport { LOAD_STATE } from \"@/stores/stacks/utils\"\nimport { useStore } from \"@priolo/jon\"\nimport React, { FunctionComponent, useRef } from \"react\"\nimport SyncIcon from \"../../../icons/SyncIcon\"\nimport EditMetadataRow from \"../../rows/EditMetadataRow\"\nimport clsCard from \"../CardCyanDef.module.css\"\nimport cls from \"./View.module.css\"\nimport { Button, CircularLoadingCmp, EditList, FloatButton, IconButton, TextInput, TitleAccordion, TooltipWrapCmp } from \"@priolo/jack\"\nimport OptionsDialog from \"@/components/stacks/sync/OptionsDialog.tsx\";\n\n\n\ninterface Props {\n\tstore?: SyncStore\n}\n\nconst SyncView: FunctionComponent = ({\n\tstore: syncSo,\n}) => {\n\n\t// STORE\n\tconst syncSa = useStore(syncSo)\n\tconst refSender = useRef(null)\n\tconst refReceiver = useRef(null)\n\n\t// HOOKs\n\n\t// HANDLER\n\tconst handleSendChange = (value: string) => syncSo.setMessageSend(value)\n\tconst handleSubjectChange = (value: string) => syncSo.setSubject(value)\n\tconst handleSend = () => syncSo.send()\n\tconst handleFormat = () => {\n\t\trefSender.current?.format()\n\t\t// timeout altrimenti non lo formatta se formatta il precedente!!!\n\t\tsetTimeout(refReceiver.current?.format, 300)\n\t}\n\tconst handleOptionsClick = (e: React.MouseEvent, select?: boolean) => {\n\t\tif (select) return\n\t\tsyncSo.setOptionsOpen(!select)\n\t}\n\tconst handleMessageClick = (txt: string) => syncSo.openMessageDetail({\n\t\tpayload: txt,\n\t\tsubject: syncSo.state.subject,\n\t\treceivedAt: Date.now(),\n\t})\n\tconst handleRequestClick = () => handleMessageClick(syncSo.state.messageSend)\n\tconst handleResponseClick = () => handleMessageClick(syncSo.state.messageReceived)\n\tconst handleHeaderChange = (headers: [string, string][]) => syncSo.setHeaders(headers)\n\n\t// RENDER\n\tconst canSend = syncSo.getCanSend()\n\tconst inLoading = syncSa.loadingState == LOAD_STATE.LOADING\n\tconst noHeaders = !syncSa.headersReceived || Object.keys(syncSa.headersReceived).length == 0\n\tconst headersTitle = noHeaders ? \"WITHOUT HEADERS\" : \"HEADERS\"\n\n\treturn }\n\t\tstore={syncSo}\n\t\tactionsRender={<>\n\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t syncSo.setFormatsOpen(true)}\n\t\t\t/>\n\t\t\t
\n\t\t\t syncSo.setOptionsOpen(true)}\n\t\t\t/>\n\t\t\t
\n\t\t\t\n\t\t}\n\t>\n\t\t
\n\n\t\t\t
\n\n\t\t\t\t
\n\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\titems={syncSa.headers}\n\t\t\t\t\t\t\tonItemsChange={handleHeaderChange}\n\t\t\t\t\t\t\t//readOnly={inRead}\n\t\t\t\t\t\t\tplaceholder=\"ex. 10\"\n\t\t\t\t\t\t\tonNewItem={() => [\"\", \"\"]}\n\t\t\t\t\t\t\tfnIsVoid={m => !m || (m[0] == \"\" && m[1] == \"\")}\n\t\t\t\t\t\t\tRenderRow={EditMetadataRow}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\n\n\t\t\t\t\t
\n\t\t\t\t\t\t
SUBJECT
\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t
\n\n\t\t\t\t\t\n\t\t\t\t
\n\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t
\n\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\t{inLoading\n\t\t\t\t\t\t\t? \n\t\t\t\t\t\t\t: \n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t
\n\n\t\t\t
\n\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
RESPONSE
\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t
\n\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t
\n\n\t\t\t
\n\t\t
\n\n\t\t\n\t\t\n\t\n}\n\nexport default SyncView\n","import { JsonConfigStore } from \"@/stores/stacks/jsonconfig\"\nimport { Button, CopyButton } from \"@priolo/jack\"\nimport { useStore } from \"@priolo/jon\"\nimport { FunctionComponent } from \"react\"\n\n\n\ninterface Props {\n\tstore?: JsonConfigStore\n}\n\nconst ActionsCmp: FunctionComponent = ({\n\tstore,\n}) => {\n\n\t// STORE\n\tuseStore(store)\n\n\t// HOOKs\n\n\t// HANDLER\n\tconst handleSaveClick = async () => store.save()\n\n\t// RENDER\n\treturn <>\n\t\t store.state.value} />\n\t\t\n\t\n}\n\nexport default ActionsCmp\n","import FrameworkCard from \"@/components/cards/FrameworkCard\"\nimport EditorCode from \"@/components/editor\"\nimport { useStore } from \"@priolo/jon\"\nimport { FunctionComponent } from \"react\"\nimport { JsonConfigStore } from \"../../../stores/stacks/jsonconfig\"\nimport { MSG_FORMAT } from \"../../../utils/editor\"\nimport clsCard from \"../CardCyanDef.module.css\"\nimport ActionsCmp from \"./Actions\"\nimport cls from \"./View.module.css\"\nimport ConfigIcon from \"../../../icons/cards/ConfigIcon\"\n\n\n\ninterface Props {\n\tstore?: JsonConfigStore\n}\n\n/** editazione json di configurazione per un entità */\nconst JsonConfigView: FunctionComponent = ({\n\tstore: jsonSo,\n}) => {\n\n\t// STORE\n\tconst jsonSa = useStore(jsonSo)\n\n\t// HOOKs\n\n\t// HANDLER\n\t//const refEditor = (ref: EditorRefProps) => jsonSa.editorRef = ref\n\n\t// RENDER\n\n\treturn }\n\t\tstore={jsonSo}\n\t\tactionsRender={}\n\t>\n\t\t
\n\n\t\t\t
\n\t\t\t\t jsonSo.setValue(value)}\n\t\t\t\t/>\n\t\t\t
\n\n\t\t
\n\n\t\n}\n\nexport default JsonConfigView\n\n\n","import { SVGProps } from \"react\"\n\nconst BigEyeIcon: React.FC> = (props) => (\n\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\n)\n\nexport default BigEyeIcon","const SkullIcon = (props) => (\n\t\n\t\t\n\t\n)\n\nexport default SkullIcon","const SuccessIcon = (props) => (\n\t\n\t\t\n\t\n)\n\nexport default SuccessIcon","import { Button } from \"@priolo/jack\"\nimport { useStore } from \"@priolo/jon\"\nimport { FunctionComponent } from \"react\"\nimport { CnnImportStore, IMPORT_STATUS } from \"../../../stores/stacks/cnnImport\"\n\n\n\ninterface Props {\n\tstore?: CnnImportStore\n}\n\nconst ActionsCmp: FunctionComponent = ({\n\tstore,\n}) => {\n\n\t// STORE\n\tuseStore(store)\n\n\t// HOOKs\n\n\t// HANDLER\n\tconst handleImportClick = async () => {\n\t\tif (store.state.status == IMPORT_STATUS.LOADING ) return\n\t\tstore.import()\n\t}\n\n\t// RENDER\n\tif (store.state.status == IMPORT_STATUS.DONE) return null\n\tconst clsRoot = store.state.status == IMPORT_STATUS.LOADING ? \"jack-ani-loading\" : \"\"\n\tconst styRoot = store.state.status == IMPORT_STATUS.LOADING ? { color: \"var(--cmp-select-fg)\"} : null\n\t\n\treturn <>\n\t\t\n\t\n}\n\nexport default ActionsCmp\n","import FrameworkCard from \"@/components/cards/FrameworkCard\"\nimport ConfigIcon from \"@/icons/cards/ConfigIcon\"\nimport { CnnImportStore } from \"@/stores/stacks/cnnImport\"\nimport { Dialog, TextInput, TooltipWrapCmp } from \"@priolo/jack\"\nimport { useStore } from \"@priolo/jon\"\nimport { FunctionComponent } from \"react\"\nimport BigEyeIcon from \"../../../icons/BigEyeIcon\"\nimport CloseIcon from \"../../../icons/CloseIcon\"\nimport DoneIcon from \"../../../icons/DoneIcon\"\nimport SkullIcon from \"../../../icons/SkullIcon\"\nimport SuccessIcon from \"../../../icons/SuccessIcon\"\nimport { CliImport } from \"../../../types\"\nimport clsCard from \"../CardGreenDef.module.css\"\nimport ActionsCmp from \"./Actions\"\nimport cls from \"./View.module.css\"\n\n\n\ninterface Props {\n\tstore?: CnnImportStore\n}\n\n/** editazione json di configurazione per un entità */\nconst CnnLoaderView: FunctionComponent = ({\n\tstore,\n}) => {\n\n\t// STORE\n\tuseStore(store)\n\n\t// HOOKs\n\n\t// HANDLER\n\tconst handleDialogClose = () => store.setDilaog({ ...store.state.dialog, imp: null, open: false })\n\tconst handleSelect = (imp: CliImport) => {\n\t\tif (store.state.dialog.imp == imp) return handleDialogClose()\n\t\tstore.setDilaog({ ...store.state.dialog, imp, open: true })\n\t}\n\n\t// RENDER\n\tconst haveList = store.state.status == \"DONE\"\n\tconst isSelect = (imp: CliImport) => store.state.dialog.imp == imp\n\n\tconst ResultCmp = ({ imp }: { imp: CliImport }) =>
\n\t\t{imp?.error ? <>\n\t\t\t\n\t\t\t
{imp?.error}
\n\t\t : <>\n\t\t\t\n\t\t\t
SUCCESS
\n\t\t}\n\t
\n\n\treturn }\n\t\tstore={store}\n\t\tactionsRender={}\n\t>\n\t\t{!haveList ? <>\n\t\t\t
\n\t\t\t\tIMPORT NATS CLI CONTEXT FILES INTO NUI\n\t\t\t
\n\t\t\t\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
DIRECTORY TO SEARCH:
\n\t\t\t\t\t store.setPath(path)}\n\t\t\t\t\t\tonKeyEnter={() => store.import()}\n\t\t\t\t\t/>\n\t\t\t\t
\n\t\t\t
\n\t\t : <>\n\n\t\t\t{/* LIST */}\n\t\t\t
\n\t\t\t\t{store.state.imports.map((imp, i) => (\n\t\t\t\t\t handleSelect(imp)}\n\t\t\t\t\t\tcontent={}\n\t\t\t\t\t>\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t{!!imp.error ?\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t:\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t
{imp.name}
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t
{trunc(imp.path, 35)}
\n\t\t\t\t\t
\n\t\t\t\t))}\n\t\t\t
\n\n\t\t\t\n\t\t\t\t
{store.state.dialog.imp?.path}
\n\t\t\t\t
\n\t\t\t\t\n\t\t\t
\n\t\t}\n\t\n}\n\nexport default CnnLoaderView\n\n\nfunction trunc(path: string, maxLength: number) {\n\tif (path.length <= maxLength) return path;\n\treturn `\\u2026${path.slice(-maxLength)}`\n}","import CnnDetailView from \"@/components/stacks/connections/detail/View\"\nimport MessagesView from \"@/components/stacks/connections/messages/View\"\nimport { AboutStore } from \"@/stores/stacks/about\"\nimport { BucketsStore } from \"@/stores/stacks/buckets\"\nimport { BucketStore } from \"@/stores/stacks/buckets/detail\"\nimport { CnnListStore } from \"@/stores/stacks/connection\"\nimport { CnnDetailStore } from \"@/stores/stacks/connection/detail\"\nimport { MessageSendStore } from \"@/stores/stacks/connection/messageSend\"\nimport { MessagesStore } from \"@/stores/stacks/connection/messages\"\nimport { ConsumersStore } from \"@/stores/stacks/consumer\"\nimport { ConsumerStore } from \"@/stores/stacks/consumer/detail\"\nimport { HelpStore } from \"@/stores/stacks/help\"\nimport { KVEntriesStore } from \"@/stores/stacks/kventry\"\nimport { KVEntryStore } from \"@/stores/stacks/kventry/detail\"\nimport { ViewLogStore } from \"@/stores/stacks/log\"\nimport { MessageStore } from \"@/stores/stacks/message\"\nimport { StreamsStore } from \"@/stores/stacks/streams\"\nimport { StreamStore } from \"@/stores/stacks/streams/detail\"\nimport { StreamMessagesStore } from \"@/stores/stacks/streams/messages\"\nimport { SyncStore } from \"@/stores/stacks/sync\"\nimport { ViewStore } from \"@/stores/stacks/viewBase\"\nimport { DOC_TYPE } from \"@/types\"\nimport { FunctionComponent, useMemo } from \"react\"\nimport AboutView from \"../stacks/about/View\"\nimport ShortcutView from \"../stacks/shortcut/View\"\nimport BucketDetailView from \"../stacks/buckets/detail/View\"\nimport BucketsListView from \"../stacks/buckets/list/ListView\"\nimport CnnListView from \"../stacks/connections/ListView\"\nimport ConsumersListView from \"../stacks/consumers/ListView\"\nimport ConsumerDetailView from \"../stacks/consumers/detail/View\"\nimport HelpView from \"../stacks/help/View\"\nimport KvEntryDetailView from \"../stacks/kventries/detail/View\"\nimport KVEntryListView from \"../stacks/kventries/list/ListView\"\nimport LogsView from \"../stacks/mainLogs/View\"\nimport MessageView from \"../stacks/message/View\"\nimport MessageSendView from \"../stacks/messageSend/View\"\nimport StreamDetailView from \"../stacks/streams/detail/View\"\nimport StreamsListView from \"../stacks/streams/list/ListView\"\nimport StreamMessagesView from \"../stacks/streams/messages/View\"\nimport SyncView from \"../stacks/sync/View\"\nimport JsonConfigView from \"../stacks/jsonconfig/View\"\nimport { JsonConfigStore } from \"../../stores/stacks/jsonconfig\"\nimport { CnnImportStore } from \"../../stores/stacks/cnnImport\"\nimport CnnLoaderView from \"../stacks/cnnImport/View\"\nimport { ShortcutStore } from \"../../stores/stacks/shortcut\"\n\n\n\ninterface DocCmpProps {\n\tview: ViewStore,\n}\n\n/** Seleziona il contenuto da visualizzare in base al tipo di VIEW */\nconst PolymorphicCard: FunctionComponent = ({\n\tview,\n}) => {\n\tconst content = useMemo(() => {\n\t\tswitch (view.state.type) {\n\n\t\t\tcase DOC_TYPE.CONNECTIONS:\n\t\t\t\treturn \n\t\t\tcase DOC_TYPE.CONNECTION:\n\t\t\t\treturn \n\t\t\tcase DOC_TYPE.CNN_LOADER:\n\t\t\t\treturn \n\n\t\t\tcase DOC_TYPE.MESSAGES:\n\t\t\t\treturn \n\t\t\tcase DOC_TYPE.MESSAGE:\n\t\t\t\treturn \n\t\t\tcase DOC_TYPE.MESSAGE_SEND:\n\t\t\t\treturn \n\n\t\t\tcase DOC_TYPE.STREAMS:\n\t\t\t\treturn \n\t\t\tcase DOC_TYPE.STREAM:\n\t\t\t\treturn \n\t\t\tcase DOC_TYPE.STREAM_MESSAGES:\n\t\t\t\treturn \n\n\t\t\tcase DOC_TYPE.CONSUMERS:\n\t\t\t\treturn \n\t\t\tcase DOC_TYPE.CONSUMER:\n\t\t\t\treturn \n\n\t\t\tcase DOC_TYPE.BUCKETS:\n\t\t\t\treturn \n\t\t\tcase DOC_TYPE.BUCKET:\n\t\t\t\treturn \n\t\t\tcase DOC_TYPE.KVENTRIES:\n\t\t\t\treturn \n\t\t\tcase DOC_TYPE.KVENTRY:\n\t\t\t\treturn \n\n\t\t\tcase DOC_TYPE.LOGS:\n\t\t\t\treturn \n\t\t\tcase DOC_TYPE.ABOUT:\n\t\t\t\treturn \n\t\t\tcase DOC_TYPE.HELP:\n\t\t\t\treturn \n\t\t\tcase DOC_TYPE.SYNC:\n\t\t\t\treturn \n\t\t\tcase DOC_TYPE.JSON_CONFIG:\n\t\t\t\treturn \n\t\t\tcase DOC_TYPE.SHORTCUT:\n\t\t\t\treturn \n\n\t\t\tdefault:\n\t\t\t\treturn null\n\t\t}\n\t}, [view])\n\treturn content\n}\n\nexport default PolymorphicCard","import { FunctionComponent } from \"react\"\nimport { deckCardsSo } from \"../stores/docs/cards\"\nimport cls from \"./DeckGroup.module.css\"\nimport PolymorphicCard from \"../components/cards/PolymorphicCard\"\nimport { CardsGroup } from \"@priolo/jack\"\n\n\n\nconst DeckGroup: FunctionComponent = () => {\n\n\t// STORES\n\n\t// HOOKS\n\n\t// HANDLERS\n\n\t// RENDER\n\treturn (\n\t\t
\n\t\t\t\n\t\t
\n\t)\n}\n\nexport default DeckGroup\n\n","const CompressAllIcon = (props) => (\n\t\n\t\t\n\t\t\n\t\t\n\t\n)\n\nexport default CompressAllIcon","const DirectionDownIcon = (props) => (\n\t\n\t\t\n\t\n)\n\nexport default DirectionDownIcon","const DirectionLeftIcon = (props) => (\n\t\n\t\t\n\t\n)\n\nexport default DirectionLeftIcon","const DirectionRightIcon = (props) => (\n\t\n\t\t\n\t\n)\n\nexport default DirectionRightIcon","const DirectionUpIcon = (props) => (\n\t\n\t\t\n\t\n)\n\nexport default DirectionUpIcon","const MenuBottomIcon = (props) => (\n\t\n\t\t\n\t\t\n\t\n)\n\nexport default MenuBottomIcon","const MenuRightIcon = (props) => (\n\t\n\t\t\n\t\t\n\t\n)\n\nexport default MenuRightIcon","import CompressAllIcon from \"@/icons/CompressAllIcon\"\nimport DirectionDownIcon from \"@/icons/DirectionDownIcon\"\nimport DirectionLeftIcon from \"@/icons/DirectionLeftIcon\"\nimport DirectionRightIcon from \"@/icons/DirectionRightIcon\"\nimport DirectionUpIcon from \"@/icons/DirectionUpIcon\"\nimport MenuBottomIcon from \"@/icons/MenuBottomIcon\"\nimport MenuRightIcon from \"@/icons/MenuRightIcon\"\nimport docsSo, { DRAWER_POSITION } from \"@/stores/docs\"\nimport { drawerCardsSo, drawerCardsSo as drawerSo } from \"@/stores/docs/cards\"\nimport { delay } from \"@/utils/time\"\nimport { CardsGroup, IconButton, RESIZER_DIRECTION, ResizerCmp, VIEW_SIZE, utils } from \"@priolo/jack\"\nimport { useStore } from \"@priolo/jon\"\nimport { FunctionComponent } from \"react\"\nimport PolymorphicCard from \"../components/cards/PolymorphicCard\"\nimport cls from \"./DrawerGroup.module.css\"\n\n\ninterface Props {\n}\n\nconst DrawerGroup: FunctionComponent = ({\n\n}) => {\n\n\t// STORES\n\tconst drawerSa = useStore(drawerSo)\n\tconst docsSa = useStore(docsSo)\n\tconst inRight = docsSa.drawerPosition == DRAWER_POSITION.RIGHT\n\n\t// HOOKS\n\n\t// HANDLERS\n\tconst handleToggle = async (e: React.MouseEvent) => {\n\t\te.stopPropagation()\n\t\tdrawerCardsSo.toggle()\n\t\t// const w = drawerSo.state.lastWidth < 20 ? 500 : drawerSo.state.lastWidth\n\t\t// drawerSo.state.animation = true\n\t\t// drawerSo.setWidth(drawerSo.state.width > 0 ? 0 : w)\n\t\t// await delay(400)\n\t\t// drawerSo.state.animation = false\n\t}\n\tconst handleCompressAll = (e: React.MouseEvent) => {\n\t\te.stopPropagation()\n\t\tutils.forEachViews(drawerSo.state.all, view => view.setSize(VIEW_SIZE.COMPACT))\n\t}\n\tconst handleMenuPosition = (e: React.MouseEvent) => {\n\t\te.stopPropagation()\n\t\tdocsSo.setDrawerPosition(inRight ? DRAWER_POSITION.BOTTOM : DRAWER_POSITION.RIGHT)\n\t}\n\tconst handleDragMove = (pos: number, diff: number) => {\n\t\tdrawerSo.setWidth(pos + diff); drawerSo.state.lastWidth = pos + diff;\n\t}\n\n\t// RENDER\n\tconst size = drawerSa.all?.length ?? 0\n\tconst clsRoot = `${cls.root} ${cls[docsSa.drawerPosition]}`\n\tconst styleContainer = inRight ? { width: drawerSa.width } : { height: drawerSa.width }\n\n\treturn (\n\t\t
\n\n\t\t\t drawerSo.state.width}\n\t\t\t\tonMove={handleDragMove}\n\t\t\t>\n\t\t\t\t\n\t\t\t\t\t{drawerSa.width > 0\n\t\t\t\t\t\t? (inRight ? : )\n\t\t\t\t\t\t: (inRight ? : )\n\t\t\t\t\t}\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\t\t{inRight ? : }\n\t\t\t\t\n\n\t\t\t\t
\n\t\t\t\t
DRAWER
\n\t\t\t\t
\n\n\t\t\t\t
\n\t\t\t\t\t{size}\n\t\t\t\t
\n\n\t\t\t\n\n\t\t\t\n\t\t\t\t\n\t\t\t
\n\n\t\t
\n\t)\n}\n\nexport default DrawerGroup\n","//import srcBg from \"@/assets/bg4.jpg\"\nimport MainMenu from \"@/app/mainMenu/MainMenu\"\nimport docsSo from \"@/stores/docs\"\nimport { useStore } from \"@priolo/jon\"\nimport { FunctionComponent } from \"react\"\nimport cls from \"./App.module.css\"\nimport DeckGroup from \"./DeckGroup\"\nimport DrawerGroup from \"./DrawerGroup\"\nimport ZenCard from \"./ZenCard\"\nimport { TooltipCmp, DragCmp } from \"@priolo/jack\"\n\n\n\nconst App: FunctionComponent = () => {\n\n\t// STORES\n\tconst docsSa = useStore(docsSo)\n\n\t// HOOKS\n\n\t// HANDLERS\n\n\t// RENDER\n\tconst clsContent = `${cls.content} ${cls[docsSa.drawerPosition]}`\n\n\treturn (\n\t\t
\n\n\t\t\t\n\n\t\t\t\n\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\n\t\t\t
\n\n\t\t\t\n\t\t\t\n\t\t
\n\t)\n}\n\nexport default App\n","import '@/plugins/msw';\n\nimport ReactDOM from 'react-dom/client';\nimport App from './app/App.tsx';\n\nimport '@fontsource/darker-grotesque/800.css';\nimport '@fontsource-variable/inter';\n\nimport './css/index.css';\n//import './css/colors.css';\n//import './css/colors-var.css';\n//import './css/interaction.css';\n\nimport './css/layout.css';\nimport './css/scrollbar.css';\nimport './css/monaco.css';\nimport \"@priolo/jack/dist/jack.css\";\nimport './css/label.css';\n\n\nimport \"./utils/session/startup.ts\";\n\n\n\n\nReactDOM.createRoot(document.getElementById('root')!).render(\n // \n \n // ,\n)\n\n"],"names":["l","n","p","q","r","t","u","v","w","x","y","z","A","a","B","C","D","E","b","e","F","G","H","I","J","K","M","d","c","k","h","g","f","m","N","O","escape","P","Q","R","S","T","U","V","W","X","react_production_min","reactModule","require$$0","reactJsxRuntime_production_min","jsxRuntimeModule","exports","L","schedulerModule","aa","ca","require$$1","da","ea","fa","ha","ia","ja","ka","la","ma","oa","pa","qa","ra","sa","ta","ua","va","wa","ya","za","Aa","Ba","Ca","Da","Ea","Fa","Ga","Ha","Ia","Ja","Ka","La","Ma","Na","Oa","Pa","Qa","Ra","Sa","Ta","Ua","Va","Wa","Xa","Ya","Za","ab","bb","cb","db","eb","fb","gb","hb","ib","jb","kb","lb","mb","nb","ob","pb","qb","rb","sb","tb","ub","vb","wb","xb","yb","zb","Ab","Bb","Cb","Db","Eb","Fb","Gb","Hb","Ib","Jb","Kb","Lb","Mb","Nb","Ob","Pb","Qb","Rb","Sb","Tb","Ub","Vb","Wb","Xb","Yb","Zb","$b","ac","bc","cc","dc","ec","fc","gc","hc","ic","jc","kc","lc","mc","oc","nc","pc","qc","rc","sc","tc","uc","vc","wc","xc","yc","zc","Ac","Bc","Cc","Dc","Ec","Fc","Gc","Hc","Ic","Jc","Kc","Lc","Mc","Nc","Oc","Pc","Qc","Rc","Sc","Tc","Uc","Vc","Wc","Xc","Yc","Zc","$c","ad","bd","cd","dd","ed","fd","gd","hd","id","jd","kd","ld","md","nd","od","pd","qd","rd","sd","td","ud","vd","wd","xd","yd","Ad","zd","Bd","Cd","Dd","Ed","Fd","Gd","Hd","Id","Jd","Kd","Ld","Md","Nd","Od","Pd","Qd","Rd","Sd","Td","Ud","Vd","Wd","Xd","Yd","Zd","$d","ae","be","ce","de","ee","fe","ge","he","ie","je","ke","le","me","ne","oe","pe","qe","re","se","te","ue","ve","we","xe","ye","ze","Ae","Be","Ce","De","Ee","Fe","Ge","He","Ie","Je","Ke","Le","Me","Ne","Oe","Pe","Qe","Re","Se","Te","Ue","Ve","We","Xe","Ye","Ze","$e","af","bf","cf","df","ef","ff","gf","hf","jf","kf","lf","mf","nf","of","pf","qf","rf","sf","tf","uf","vf","wf","na","xa","$a","ba","xf","yf","zf","Af","Bf","Cf","Df","Ef","Ff","Gf","Hf","Jf","If","Kf","Lf","Mf","Nf","Of","Pf","Qf","Rf","Sf","Tf","Uf","Vf","Wf","Xf","Yf","Zf","$f","ag","bg","cg","dg","eg","fg","gg","hg","ig","jg","kg","lg","mg","ng","og","pg","qg","rg","sg","tg","ug","vg","wg","xg","yg","zg","Ag","Bg","Cg","Dg","Eg","Fg","Gg","Hg","Ig","Jg","Kg","Lg","Mg","Ng","Og","Pg","Qg","Rg","Sg","Tg","Ug","Vg","Wg","Xg","Yg","Zg","$g","ah","bh","ch","dh","eh","fh","gh","hh","ih","jh","kh","lh","mh","nh","oh","ph","qh","rh","sh","th","uh","vh","wh","xh","yh","zh","Ah","Bh","Ch","Dh","Eh","Fh","Gh","Hh","Ih","Jh","Kh","Lh","Mh","Nh","Oh","Ph","Qh","Rh","Sh","Th","Uh","Vh","Wh","Xh","Yh","Zh","$h","ai","bi","ci","di","ei","fi","gi","hi","ii","ji","ki","li","mi","ni","oi","pi","qi","ri","si","ti","ui","vi","wi","xi","yi","zi","Ai","Bi","Ci","Di","Ei","Fi","Gi","Hi","Ii","Ji","Ki","Li","Mi","Ni","Oi","Pi","Qi","Ri","Si","Ti","Ui","Vi","Wi","Xi","Yi","Zi","$i","aj","bj","cj","dj","ej","fj","gj","hj","ij","jj","kj","lj","mj","nj","oj","pj","qj","rj","sj","tj","uj","vj","wj","xj","yj","zj","Aj","Bj","Cj","Dj","Ej","Fj","Gj","Hj","Ij","Jj","Kj","Lj","Mj","Nj","Oj","Pj","Qj","Rj","Sj","Tj","Uj","Vj","Wj","Xj","Yj","Zj","ak","bk","ck","dk","ek","fk","gk","hk","ik","jk","kk","lk","mk","nk","ok","Y","Z","pk","qk","rk","sk","tk","uk","vk","wk","xk","yk","zk","Ak","Bk","Ck","Dk","Ek","Fk","Gk","Hk","Ik","Jk","Kk","Lk","Mk","Nk","Ok","Pk","Qk","Rk","Sk","Tk","Uk","Vk","Wk","Xk","Yk","Zk","$k","al","bl","cl","dl","el","fl","gl","hl","il","kl","ll","ml","nl","ol","pl","ql","rl","sl","tl","ul","vl","reactDom_production_min","checkDCE","err","reactDomModule","client","i","s","o","nn","rn","en","tn","ln","on","un","_","an","fn","dn","pn","_n","yn","js","Is","Oo","Es","No","Os","Do","Ns","ut","Ms","Ht","On","Ds","As","Hs","Ps","zs","Ao","Nt","Cn","Bs","Ho","Fs","j","$","rt","et","tt","_t","ct","pt","wt","bt","dt","Yt","Ws","Vs","xn","Gs","Ln","pr","Us","qs","Ks","Ct","Tt","Ot","Ys","Zs","Xs","Js","Qs","xr","Bt","Ut","gr","Eu","Gn","Ou","lt","Lu","lo","ks","_i","vn","Nu","to","vr","Po","ao","In","uo","wr","_r","kn","Mu","It","Un","$t","qn","eo","zo","Ts","Xt","yr","At","Du","_c","Au","Bo","fo","wn","ho","Sr","Cr","Lo","Kn","$s","mr","Yn","no","Pu","br","jr","Ir","Et","zu","Nn","_e","kr","Tr","$r","Fo","Mn","vt","Wo","mo","ft","go","Lt","it","qt","zt","Rr","xt","Vo","nt","Go","Rt","ht","xl","Er","Or","Kt","wl","po","_l","yl","Uo","Lr","Nr","Rs","Ft","Mr","oo","Dr","bn","kt","Ar","Gt","qo","ro","Zn","so","Pr","Dn","Sl","Hr","Tn","zr","Cl","xo","Ko","jl","Il","vo","Tl","$l","io","Rl","El","Br","Fr","An","Ol","Ll","Nl","Wr","Ml","sn","Dl","Al","Hl","wo","_o","Yo","Pl","zl","Bl","Vr","cn","Gr","$n","Rn","Zo","Xo","Jo","yo","Fl","Xn","Qo","jn","Ur","Wl","qr","Vl","Kr","Yr","Gl","Ul","Kl","So","Yl","Zl","Xl","Jl","Ql","Jn","tr","Zr","Xr","Jr","Qr","ts","es","er","Jt","Co","Pt","Sn","Hn","ns","os","ga","nr","_a","or","rr","En","Qn","sr","Wt","Mt","hn","zn","rs","ir","mn","gn","co","yt","Qt","cr","Bu","ss","Fu","is","lr","Wu","ar","cs","ur","Vu","tu","eu","nu","bo","ou","ls","Gu","Uu","ru","su","qu","iu","cu","Ku","lu","au","Yu","Zu","as","Xu","uu","du","dr","Ju","Qu","fu","hu","fr","mu","gu","pu","xu","vu","wu","_u","yu","Su","Cu","bu","ju","hr","menuSo","createStore","linksSetup","module","this","timeoutIDs","debounce","name","callback","delay","toId","millisec","res","dateShow","date","dayjs","setup","store","width","setupDrawer","mixStores","cardsSetup","deckCardsSo","drawerCardsSo","docsSo","MESSAGE_TYPE","log","view","error","all","logStore","DOC_TYPE","EDIT_STATE","EDIT_STATE2","getColorFromViewType","type","snakeToCamel","obj","newObj","key","camelKey","match","letter","camelToSnake","snakeKey","httpUrlBuilder","optionsParamDefault","optionsDefault","AjaxService","options","__publicField","url","data","method","headers","response","loadStore","LOAD_STATE","logSo","_d","_f","ret","jsonError","raw","status","_h","_g","_j","ajax","index","opt","save","cnn","blockId","remove","importFromNatsCli","path","connectionApi","Reconnect","server","MSG_TYPE","wsOptionBuilder","AUTH_MODE","CNN_STATUS","SocketService","connId","protocol","host","port","base","newCnnId","changeConnectionStatus","msg","subjects","msgStr","message","payload","body","_b","cnnId","cnnSo","SocketPool","utils","socketPool","cnnStore","cnnApi","loadBaseSetup","cnnSaved","cnns","cnnSetup","get","aboutApi","setSerializationBase","viewSetup","state","linkedState","linkedStore","buildStore","LISTENER_CHANGE","about","detached","focusSo","aboutSetup","connectionId","bucketName","create","bucket","update","purgeDeleted","api","STORAGE","RETENTION","DISCARD","COMPRESSION","buildBuckets","buildBucket","buildBucketNew","VIEW_SIZE","buildNewBucketState","buildNewBucketConfig","text","buckets","bucketApi","nameOld","nameNew","select","textSearch","bucketsSetup","docSetup","buildKVEntries","buildKVEntry","kventry","autoFormat","buildKVEntryNew","docSo","bucketSaved","configStore","value","config","editState","bucketSetup","IMPORT_STATUS","connections","imports","dialog","cnnImportSetup","buildStreams","buildStream","stream","allStreams","buildStreamNew","buildNewStreamInfo","buildStreamMessages","buildNewStreamConfig","newStreamState","newSource","buildConnectionMessages","buildConnectionSync","buildConnectionNew","buildConnection","buildConnectionMessageSend","connection","oldId","newId","subscriptions","subOpen","connectonSetup","publish","subject","headersArray","toDic","subscriptionIndex","subscriptionUpdate","sync","timeoutMs","resp","messagesApi","arr","acc","MSG_FORMAT","MSG_FORMAT_EDIT","toJson","json","success","toHex","hex","charCode","toFormat","format","editorSetup","formatsOpen","binaryStringToString","binaryString","bytes","stringToBinaryString","str","utf8Bytes","formatNumber","separator","num","subsOpen","loadingState","msgSetup","MaxMessagesLength","msgs","sbjCounter","linked","subjWS","msgChangeSubj","subjRest","storeMsg","buildMessageDetail","messages","noSysMessages","subscriptionsOpen","stats","pause","streamName","consumerName","consumerConfig","updateConsumerConfig","dateTime","DeliverPolicy","AckPolicy","ReplayPolicy","buildConsumer","consumer","buildConsumers","buildConsumerNew","newConsumer","newConsumerConfig","consumers","conApi","streamConsumer","consumersSetup","cnsApi","consumerSaved","consumerSetup","helpSetup","kve","put","purge","kventries","kventryApi","entry","oldkey","newKey","kventriesSetup","history","revision","kv","current","offset","next","historyOpen","revisionSelected","kventrySetup","msgSo","linkToLast","resSnake","resCamel","seq","keep","filter","query","messageRemove","sequence","_error","streams","strApi","purgeOpen","streamsSetup","parent","streamSaved","streamSetup","globalInterval","pre","startSeq","interval","filterToSend","subjectsCustom","filtersOpen","streamMessagesSetup","msgOld","messageReceived","headersReceived","messageSend","optionsOpen","syncSetup","jsonConfigSetup","shortcutSetup","servicesSetup","messagesSetup","messageSetup","messageSendSetup","logsSetup","loadLocalStorage","logs","allStates","docsState","deckUuids","drawerUuids","menuUuids","saveLocalStorage","session","shortcutStart","event","FIXED_CARD","mainDeck","drawerDeck","nextFocus","group","currentDeck","nextDeck","nextView","LoadSession","SaveSession","line","col","deckStates","drawerStates","menuStates","deckStores","drawerStores","menuStores","buildCards","allStores","buildFixedCards","uuid","fixedCnn","fixedLogs","fixedAbout","fixedHelp","ArrowUpIcon","props","jsx","LogIcon","jsxs","SyncIcon","BucketIcon","BucketsIcon","ConnectionIcon","ConnectionsIcon","ConsumerIcon","ConsumersIcon","KvEntriesIcon","KvEntryIcon","MessageIcon","MessagesIcon","StreamIcon","StreamsIcon","ConfigIcon","CardIcon","className","style","CloseIcon","MenuButton","title","subtitle","children","badge","onClick","onClose","enter","setEnter","useState","showCloseBtt","clsRoot","cls","TooltipWrapCmp","StoreButton","label","useStore","handleOpenStoreClick","handleDeleteButtonClick","colorVar","canDelete","AboutButton","icon","MainMenu","menuSa","views","LinkButton","tooltip","selected","tabIndex","renderExtra","handleKeyDown","clsSelect","clsExtra","IconizedIcon","MyFrameworkCard","styleBody","actionsRender","iconizedRender","handleToggleIconize","inMenu","inZen","inRoot","showBttPin","FrameworkCard","Header","IconButton","RowButton","renderEnd","SendIcon","ConnectionDetailActions","cnnDetailSo","cnnDetailSa","handleEditClick","handleCancelClick","handleSaveClick","cnnNew","CircularLoadingCmp","Button","Fragment","CheckRadioOnIcon","AuthForm","auth","readOnly","authEdit","setAuthEdit","useEffect","handlePropChange","prop","authItems","Options","StringUpRow","mode","TextInput","username","PasswordInput","password","token","nKeySeed","jwt","creds","ConnectionDetailForm","handleChangeName","handleHostsChange","hosts","handleInboxPrefixChange","inboxPrefix","handleAuthChange","cnnAuth","handleAuthDelete","handleActivate","check","indexSel","handleChangeTlsEnable","enabled","handleChangeTlsCertPath","certPath","handleChangeTlsKeyPath","keyPath","handleChangeTlsCaPath","caPath","auths","tlsAuth","inRead","TitleAccordion","EditList","EditStringRow","ListObjects","IconToggle","item","CnnDetailView","handleMessagesClick","handleSyncClick","handleStreamsClick","handleBucketsClick","handleSendClick","isMessageOpen","isSyncOpen","isStreamsOpen","isBucketsOpen","ButtonSend","clsGreen","ActionsCmp","PauseIcon","PlayIcon","FormatDialog","editMode","formatSa","handleClose","handleSelect","formats","useMemo","indexSelect","Dialog","List","ArrowDownIcon","ClearIcon","PUBLISH","SUBSCRIBE","RESET","VALUE","compose","arg","thrush","proc","curry2to1","arg1","arg2","curry1to0","tap","tup","args","call","always","joinProc","procs","isDefined","noop","subscribe","emitter","subscription","publisher","reset","getValue","depot","connect","handleNext","unsub","action","indexOf","statefulStream","initial","innerSubject","eventHandler","currentSubscription","cleanup","streamFromEmitter","stream2","statefulStreamFromEmitter","combineOperators","operators","subscriber","pipe","source","project","defaultComparator","previous","distinctUntilChanged","comparator","done","predicate","map","mapTo","scan","scanner","skip","times","throttleTime","currentValue","timeout","debounceTime","withLatestFrom","sources","values","called","pendingCall","allCalled","bit","prevCalled","call2","merge","duc","combineLatest","emitters","system","constructor","dependencies","singleton","init","systemSpec","singletons","_init","id2","system2","omit","keys","result","idx","len","useIsomorphicLayoutEffect$1","React","systemToComponent","map2","Root","requiredPropNames","optionalPropNames","methodNames","eventNames","Context","applyPropsToSystem","requiredPropName","optionalPropName","buildMethods","methodName","buildEventHandlers","handlers","eventName","Component","propsWithChildren","ref","system22","RootComponent","usePublisher2","useEmitterValue18","useEmitterValueLegacy","setValue","useEmitterValue2","useIsomorphicLayoutEffect","LogLevel","LogLevel2","CONSOLE_METHOD_MAP","getGlobalThis","loggerSystem","logLevel","level","currentLevel","useSizeWithElRef","skipAnimationFrame","callbackRef","_el","observer","entries","code","element","elRef","useSize","useChangedListContentsSizes","itemSize","scrollContainerStateCallback","gap","customScrollParent","horizontalDirection","memoedCallback","ranges","getChangedChildSizes","scrollableElement","windowScrolling","scrollTop","scrollHeight","viewportHeight","resolveGapValue$1","field","length","results","child","knownSize","size","lastResult","property","correctItemSize","dimension","approximatelyEqual","num1","num2","useScrollTop","smoothScrollTargetReached","scrollerElement","scrollerRefCallback","scrollerRef","scrollTopTarget","timeoutRef","handler","ev","windowScroll","ReactDOM","localRef","scrollToCallback","location","scrollerElement2","isSmooth","offsetHeight","maxScrollTop","scrollByCallback","domIOSystem","scrollContainerState","deviation","statefulScrollTop","headerHeight","fixedHeaderHeight","fixedFooterHeight","footerHeight","scrollTo","scrollBy","scrollingInProgress","skipAnimationFrameInResizeObserver","scrollTop2","scrollHeight2","NIL_NODE","newAANode","lvl","empty","node","newTree","lastKey","lastValue","last","adjust","clone","deleteLast","find","findMaxKeyValue","insert","rebalance","walkWithin","start","end","walk","isSingle","split","skew","rlvl","rangesWithin","startIndex","endIndex","adjustedStart","toRanges","arrayToRanges","items","parser","nextIndex","nextValue","nodes","findIndexOfClosestSmallerOrEqual","findClosestSmallerOrEqual","findRange","startValue","endValue","recalcSystem","rangeIncludes","refRange","range","affectedGroupCount","groupIndices","recognizedOffsetItems","groupIndex","insertRanges","sizeTree","syncStart","overlappingRanges","firstPassDone","shouldInsert","rangeStart","rangeEnd","rangeValue","initialSizeState","indexComparator","itemIndex","offsetComparator","itemOffset","offsetPointParser","point","rangesWithinOffsets","tree","startOffset","endOffset","minStartIndex","createOffsetTree","prevOffsetTree","offsetTree","prevIndex","prevSize","prevOffset","startIndex2","indexOffset","aOffset","sizeStateReducer","newSizeTree","groupSize","newOffsetTree","lastIndex","lastSize","lastOffset","offsetOf","itemCount","top","isGroupLocation","originalIndexFromLocation","sizes","numericIndex","originalIndexFromItemIndex","hasGroups","groupOffset","sizeTreeToRanges","sizeArray","nextSize","SIZE_MAP","sizeSystem","recalcInProgress","sizeRanges","totalCount","statefulTotalCount","unshiftWith","shiftWith","firstItemIndex","fixedItemSize","defaultItemSize","prevGroupIndices","prev","curr","indexes","groupIndices2","sizes2","gap2","groupOffsetTree","totalCount2","trackItemSizes","listRefresh","oldSizes","newSizes","val","prevGroupIndicesValue","log2","beforeUnshiftWith","unshiftWith2","groupedMode","initialRanges","defaultSize","firstGroupSize","prependedGroupItemsCount","theGroupIndex","groupItemCount","sizeTreeKV","shiftWithOffset","shiftWith2","newFirstItemIndex","removedItemsCount","nextItemSize","SUPPORTS_SCROLL_TO_OPTIONS","normalizeIndexLocation","scrollToIndexSystem","scrollToIndex","scrollTargetReached","topListHeight","unsubscribeNextListRefresh","cleartTimeoutRef","unsubscribeListRefresh","viewportHeight2","topListHeight2","headerHeight2","footerHeight2","fixedHeaderHeight2","fixedFooterHeight2","normalLocation","align","behavior","retry","listChanged","changed","watchChangesFor","limit","UP","DOWN","NONE$1","INITIAL_BOTTOM_STATE","DEFAULT_AT_TOP_THRESHOLD","stateFlagsSystem","isAtBottom","isAtTop","atBottomStateChange","atTopStateChange","atBottomThreshold","atTopThreshold","isScrolling","isScrollingBy","atTopThreshold2","atBottomState","_headerHeight","_footerHeight","atBottomThreshold2","isAtBottom2","atBottomBecause","scrollTopDelta","notAtBottomBecause","lastJumpDueToItemResize","atBottom","scrollDirection","scrollVelocity","isScrolling2","propsReadySystem","propsReady","didMount","ready","skipFrames","frameCount","getInitialTopMostItemIndexNumber","initialTopMostItemIndexSystem","scrolledToInitialItem","initialTopMostItemIndex","initialItemFinalLocationReached","didMount2","scrolledToInitialItem2","defaultItemSize2","scrollScheduled","initialTopMostItemIndex2","normalizeFollowOutput","follow","behaviorFromFollowOutput","followOutputSystem","followOutput","autoscrollToBottom","pendingScrollHandle","scrollToBottom","followOutputBehavior","followOutput2","scrollingInProgress2","shouldFollow","trapNextSizeIncrease","cancel","refreshed","groupCountsToIndicesAndCount","counts","groupCount","groupedListSystem","groupCounts","topItemsIndexes","groupIndicesAndCount","tupleComparator","rangeComparator","TOP","BOTTOM","NONE","getOverscan","overscan","direction","getViewportIncrease","sizeRangeSystem","listBoundary","increaseViewportBy","visibleRange","listTop","listBottom","overscan2","deviation2","increaseViewportBy2","stickyHeaderHeight","headerVisible","topViewportAddition","bottomViewportAddition","probeItemSet","EMPTY_LIST_STATE","transposeItems","transposedItems","groupRanges","currentRange","currentGroupIndex","transposedItem","buildListState","topItems","offsetTop","bottom","lastItem","total","offsetBottom","height","buildListStateFromItemCount","includedGroupsCount","adjustedCount","initialTopMostItemIndexNumber","listStateSystem","groupedListSystem2","rangeTopListHeight","stateFlags","initialItemCount","itemsRendered","listState","mount","recalcInProgress2","data2","dataChangeInProgress","topItemsIndexes2","firstItemIndex2","sizesValue","initialItemCountValue","rangeStartIndex","rangeEndIndex","offsetPointRanges","maxIndex","endReached","count","startReached","rangeChanged","initialItemCountSystem","initialTopMostItemIndexValue","scrollSeekSystem","isSeeking","scrollSeekConfiguration","speed","isSeeking2","exit","velocity","topItemCountSystem","topItemCount","totalListHeightSystem","totalListHeightChanged","totalListHeight","listState2","simpleMemoize","func","isMobileSafari","upwardScrollFixSystem","deviationOffset","prevItems","prevTotalCount","prevTotalHeight","lastJumpDueToItemResize2","totalHeight","newDev","amount","scrollDirection2","scrollByWith","deviationAmount","recalc","getItemOffset","defaultGroupSize","initialScrollTopSystem","initialScrollTop","alignToBottomSystem","alignToBottom","paddingTopAddition","totalListHeight2","windowScrollerSystem","windowScrollContainerState","windowViewportRect","windowScrollTo","useWindowScroll","windowScrollTop","scrollTo2","defaultCalculateViewLocation","itemTop2","itemBottom","viewportTop","viewportBottom","rest","scrollIntoViewSystem","scrollIntoView","viewLocation","calculateViewLocation","actualIndex","stateLoadSystem","getState","restoreStateFrom","statefulWindowScrollContainerState","statefulWindowViewportRect","useWindowScroll2","windowScrollContainerState2","windowViewportRect2","locationFromSnapshot","snapshot","featureGroup1System","sizeRange","scrollSeek","initialScrollTopSystem2","windowScroller","logger","listSystem","domIO","stateLoad","flags","featureGroup1","WEBKIT_STICKY","STICKY","positionStickyCssValue","useWindowViewportRectRef","viewportInfo","calculateInfo","rect","visibleWidth","visibleHeight","customScrollParentRect","deltaTop","scrollAndResizeEventHandler","VirtuosoMockContext","VirtuosoGridMockContext","identity","listComponentPropsSystem","itemContent","context","groupContent","components","computeItemKey","HeaderFooterTag","distinctProp","propName","defaultValue","components2","combinedSystem$2","listSystem2","propsSystem","DefaultScrollSeekPlaceholder$1","GROUP_STYLE","ITEM_STYLE$1","HORIZONTAL_ITEM_STYLE","Items$1","showTopList","useEmitterValue$2","usePublisher$2","windowScrollContainerStateCallback","_scrollContainerStateCallback","listGap","setDeviation","useEmitter$2","EmptyPlaceholder","ScrollSeekPlaceholder","ListComponent","ItemComponent","GroupComponent","hasGroups2","containerStyle","contextPropIfNotDomElement","createElement","itemPropIfNotDomElement","scrollerStyle","horizontalScrollerStyle","viewportStyle","topItemListStyle","Header$1","Header2","Footer$1","Footer2","buildScroller","useEmitter2","ScrollerComponent","defaultStyle","buildWindowScroller","Viewport$2","ctx","fixedItemHeight","viewportSizeCallbackMemo","viewportRef","WindowViewport$2","TopItemListContainer","TopItemList","ListRoot","TheScroller","WindowScroller$2","Scroller$2","TheViewport","Virtuoso","INITIAL_GRID_STATE","PROBE_GRID_STATE","round","ceil","floor","min","max","buildProbeGridState","buildItems","dataItem","gapComparator","dimensionComparator","gridSystem","gridState","viewportDimensions","itemDimensions","stateChanged","stateRestoreInProgress","itemDimensions2","viewportDimensions2","scrollScheduled2","_value","viewport","stateRestoreInProgress2","initialItemCount2","rowGap","columnGap","itemHeight","itemWidth","viewportWidth","endIndex2","perRow","itemsPerRow","gridLayout","rowCount","hasScrolled","hasScrolled2","gridState2","isLastItemRendered","itemTop","gridComponentPropsSystem","itemClassName","listClassName","headerFooterTag","readyStateChanged","reportReadyState","combinedSystem$1","gridSystem2","gridComponentPropsSystem2","GridItems","useEmitterValue$1","scrollHeightCallback","usePublisher$1","gridGap","listRef","firstItem","resolveGapValue","Footer","Viewport$1","WindowViewport$1","GridRoot","WindowScroller$1","Scroller$1","Grid","useEmitter$1","Base64Cmp","maxChar","isTruncate","base64","cssSelect","DIVIDER_VARIANT","DIVIDER_VARIANT2","DividerRow","time","variant","clsSelected","regex","HexAsciiBlock","block","columns","render","cssRoot","HexBlock","HexCell","bgType","cssHex1","cssHex2","HexRow","cssRow","cssIndex","HexTable","maxRows","ascii","maxBlocks","TextRow","limLength","limitDeept","limitArray","JsonRow","cssBody","FormatObj","deep","isArray","cssArrayInfo","cssNull","cssString","cssNumber","cssTrue","cssFalse","cssBrackets","MessageRow","onDelete","handleClick","handleDeleteClick","handleCopyPayload","clsBg","CopyButton","MessagesList","selectedIndex","onMessageClick","onMessageDelete","onClear","onLoading","extraActions","header","footer","virtuoso","useRef","loadingDisabled","showKeepDown","setShowKeepDown","handleKeepDownClick","handleBottomChange","handleTopChange","newItems","canClear","FloatButton","HeartIcon","HeartOutlineIcon","EditSubscriptionRow","isSelect","noDisable","noFavorite","placeholder","onChange","onSelect","handleDelete","isVoid","handleChange","handleChangeEnabled","newSub","handleChangeFavorite","clsInput","Box","SubjectsDialog","msgSa","setSubscriptions","setFilter","subs","s1","s2","handleCancel","handleOk","handleChangeSubs","newSubs","handleAllDisable","sub","handleStatsSelect","handleClearStats","allCheck","txt","noStats","FindInput","MessageStatRow","MessagesView","textFind","setTextFind","handleClickSubs","handleFormatsClick","isSendSelect","hendleMessageClick","handleClear","handleSearchChange","handlePause","formatSel","clsCard","FindInputHeader","GitHubIcon","HelpIcon","KeyboardIcon","AboutView","aboutSo","aboutSa","handleUpdateClick","handleGitHubClick","handleHelpClick","handleShortcutClick","latest","ShortcutIcon","ShortcutView","bucketSo","bucketSa","handleConfigClick","configOpen","OptionsCmp","ArrowRightIcon","BYTE","MaxBytesCmp","desiredDefault","initDefault","unit","setUnit","valueNew","maxBytes","valueToBytes","handleEnabledCheck","handleUnitChange","isEnabled","valueShow","bytesToValue","Accordion","NumberInput","ListDialog","from","TIME","unitsInNs","MaxTimeCmp","inputUnit","outputUnit","setValueShow","nsToValue","valueToNs","valueShowNeedUpdate","setValueShowNeedUpdate","valueInNs","largestUnit","getLargestUnit","duration","defaultUnit","EditSubjectTransformRow","handleSourceChange","handleDestChange","EditSourceCmp","allStream","isExternal","setIsExternal","optStartTime","setOptStartTime","handleNameChange","handleSequenceChange","optStartSeq","handleStartTimeChange","startTime","isoTime","handleFilterSubjectChange","filterSubject","handleIsExternalChange","handleExternalApiChange","handleExternalDeliverChange","deliver","handleSubjectTransformsChange","subjectTransforms","haveListStream","DateTimeInput","SourcesCmp","streamSo","onChangeSources","haveNew","elementSource","setElementSource","souceIndex","setSourceIndex","handleSelectChange","handleSourcesChange","LIST_ACTIONS","handleDialogClose","handleNewSource","EditItemRow","ElementDialog","Form","handlePlacementPropChange","handleRepublishPropChange","handleRepublishToggle","mirrorElm","setMirrorElm","handleMirrorCheck","handleMirrorPropChange","mirror","inNew","description","src","dest","headersOnly","ttl","maxValueSize","compression","replicas","cluster","tags","BucketDetailView","handleKVEntriesClick","isKVEntriesSelect","BucketsListView","bucketsSo","bucketsSa","handleNew","handlePurge","isNewSelect","VTable","AlertDialog","AlertIcon","DoneIcon","ElementRow","CnnListView","cnnListSo","cnnListSa","cnnSa","selectId","handleLoaderClick","c1","c2","getTitle","getSubtitle","isSelected","loaderOpen","ConsumersListView","consumersSo","consumersSa","Table","EditMetadataRow","handleKeyChange","handleValueChange","KeyValueMap","entres","setEntries","handleItemsChange","tuples","handleBlur","keyValues","MaxNumberCmp","maxConsumers","handleBackoffChange","backoff","handleDeliverPolicyChange","deliverPolicy","handleMetadataPropChange","metadata","durableName","filterSubjects","ackWait","maxDeliver","maxWaiting","maxAckPending","sampleFreq","EditNumberRow","maxBatch","maxExpires","numReplicas","inactiveThreshold","memStorage","ConsumerDetailView","YouTubeIcon","HelpView","helpSo","YTRow","OPERATION","FormatIcon","FormatAction","handleOpenDialogFormats","handleFormat","formatLabel","ArrowLeftIcon","kventrySo","kventrySa","handleEdit","handleSave","handleHistoryOpen","handleRevisionNextChange","handleRevisionPrevChange","getEditorLanguage","_defineProperty","ownKeys","object","enumerableOnly","symbols","sym","_objectSpread2","target","_objectWithoutPropertiesLoose","excluded","sourceKeys","_objectWithoutProperties","sourceSymbolKeys","_slicedToArray","_arrayWithHoles","_iterableToArrayLimit","_unsupportedIterableToArray","_nonIterableRest","_arr","_s","minLen","_arrayLikeToArray","arr2","_len","fns","_key","curry","curried","_this","_len2","_key2","_len3","nextArgs","_key3","isObject","isEmpty","isFunction","hasOwnProperty","validateChanges","changes","errorHandler","validateSelector","selector","validateHandler","_handler","validateInitial","throwError","errorMessages","validators","didUpdate","didStateUpdate","updateState","validate","getChanges","extractChanges","setState","causedChanges","_handler$field","validateConfig","informAboutDeprecation","CANCELATION_MESSAGE","makeCancelable","promise","hasCanceled_","wrappedPromise","resolve","reject","_state$create","config$1","_state$create2","globalConfig","_validators$config","monaco","_ref","isInitialized","wrapperPromise","storeMonacoInstance","injectScripts","getMonacoLoaderScript","configureLoader","script","createScript","_ref2","loaderScript","_ref3","require","__getMonacoInstance","_ref4","loader","editorOptionsDefault","EditorCodeBase","formatRun","editorRef","handleEditorDidMount","editor","useImperativeHandle","Editor","EditorCode","forwardRef","DetailForm","handlePayloadChange","inEdit","refEditor","KVEntryDetailView","handleHistoryClose","handleHistorySelect","h1","h2","historySelected","HystoryRow","operation","KVEntryListView","kventriesSo","kventriesSa","ItemRow","LogsView","viewLogSo","logSa","handleMessageClick","allLogs","HeadersCmp","LinkDownIcon","MessageView","handleLinkLastClick","timestamp","noHeaders","headersTitle","haveParent","sendSo","sendSa","handleSubSelectChange","handleSubsClose","MessageSendView","handleSend","handleSubsClick","handleSubjectChange","handleHeaderChange","canSend","inLoading","streamSa","handleSubjectTransformPropChange","handleConsumerLimitsPropChange","handleCompressionChange","compressionIsSet","handleSubjectTransform","handleConsumerLimits","consumerLimitsIsSet","firstTs","lastTs","allowRollupHdrs","denyDelete","denyPurge","maxAge","maxMsgSize","maxMsgs","maxMsgsPerSubject","noAck","duplicateWindow","sealed","firstSeq","StreamDetailView","handleConsumersClick","isConsumersSelect","isMessagesSelect","PurgeDialog","streamsSo","purgeParams","setPurgeParams","handlePurgePropChange","handleApply","number","StreamsListView","streamsSa","handlePurgeClick","nameSelected","FilterDialog","strMsgSo","strMsgSa","handleFilterPropChange","handleChangeSubjectsCustom","newSubjectsCustom","hadleFirstSeqClick","first","hadleLastSeqClick","counters","lastSeq","ListMultiWithFilter","StreamMessagesView","handleFilterClick","handleLoad","hendleMessageDelete","TitleLoading","divider","OptionsDialog","syncSo","syncSa","handleTimeoutChange","handleOptionsClose","SyncView","refSender","refReceiver","handleSendChange","handleRequestClick","handleResponseClick","JsonConfigView","jsonSo","jsonSa","BigEyeIcon","SkullIcon","SuccessIcon","handleImportClick","styRoot","CnnLoaderView","imp","haveList","ResultCmp","trunc","maxLength","PolymorphicCard","KvEntryDetailView","DeckGroup","CardsGroup","CompressAllIcon","DirectionDownIcon","DirectionLeftIcon","DirectionRightIcon","DirectionUpIcon","MenuBottomIcon","MenuRightIcon","DrawerGroup","drawerSa","drawerSo","docsSa","inRight","DRAWER_POSITION","handleToggle","handleCompressAll","handleMenuPosition","handleDragMove","pos","diff","styleContainer","ResizerCmp","RESIZER_DIRECTION","App","clsContent","ZenCard","DragCmp","TooltipCmp"],"mappings":";;;;;;;;6CASa,IAAIA,EAAE,OAAO,IAAI,eAAe,EAAEC,EAAE,OAAO,IAAI,cAAc,EAAEC,EAAE,OAAO,IAAI,gBAAgB,EAAEC,EAAE,OAAO,IAAI,mBAAmB,EAAEC,EAAE,OAAO,IAAI,gBAAgB,EAAEC,EAAE,OAAO,IAAI,gBAAgB,EAAEC,EAAE,OAAO,IAAI,eAAe,EAAEC,EAAE,OAAO,IAAI,mBAAmB,EAAEC,EAAE,OAAO,IAAI,gBAAgB,EAAEC,EAAE,OAAO,IAAI,YAAY,EAAEC,EAAE,OAAO,IAAI,YAAY,EAAEC,EAAE,OAAO,SAAS,SAASC,EAAEC,EAAE,CAAC,OAAUA,IAAP,MAAqB,OAAOA,GAAlB,SAA2B,MAAKA,EAAEF,GAAGE,EAAEF,CAAC,GAAGE,EAAE,YAAY,EAAqB,OAAOA,GAApB,WAAsBA,EAAE,KAAI,CAC1e,IAAIC,EAAE,CAAC,UAAU,UAAU,CAAC,MAAM,EAAE,EAAE,mBAAmB,UAAU,CAAA,EAAG,oBAAoB,UAAU,CAAA,EAAG,gBAAgB,UAAU,CAAA,CAAE,EAAEC,EAAE,OAAO,OAAOC,EAAE,CAAA,EAAG,SAASC,EAAEJ,EAAEK,EAAEC,GAAE,CAAC,KAAK,MAAMN,EAAE,KAAK,QAAQK,EAAE,KAAK,KAAKF,EAAE,KAAK,QAAQG,IAAGL,CAAC,CAACG,EAAE,UAAU,iBAAiB,CAAE,EACrQA,EAAE,UAAU,SAAS,SAASJ,EAAEK,EAAE,CAAC,GAAc,OAAOL,GAAlB,UAAkC,OAAOA,GAApB,YAA6BA,GAAN,KAAQ,MAAM,MAAM,uHAAuH,EAAE,KAAK,QAAQ,gBAAgB,KAAKA,EAAEK,EAAE,UAAU,CAAC,EAAED,EAAE,UAA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