@seamly/web-ui 25.4.1-beta → 25.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,7 +21,7 @@ __webpack_require__.r(__webpack_exports__);
21
21
  /* harmony export */ StrictMode: () => (/* reexport safe */ preact__WEBPACK_IMPORTED_MODULE_0__.Fragment),
22
22
  /* harmony export */ Suspense: () => (/* binding */ P),
23
23
  /* harmony export */ SuspenseList: () => (/* binding */ B),
24
- /* harmony export */ __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: () => (/* binding */ fn),
24
+ /* harmony export */ __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: () => (/* binding */ an),
25
25
  /* harmony export */ cloneElement: () => (/* binding */ mn),
26
26
  /* harmony export */ createContext: () => (/* reexport safe */ preact__WEBPACK_IMPORTED_MODULE_0__.createContext),
27
27
  /* harmony export */ createElement: () => (/* reexport safe */ preact__WEBPACK_IMPORTED_MODULE_0__.createElement),
@@ -34,9 +34,9 @@ __webpack_require__.r(__webpack_exports__);
34
34
  /* harmony export */ forwardRef: () => (/* binding */ D),
35
35
  /* harmony export */ hydrate: () => (/* binding */ tn),
36
36
  /* harmony export */ isElement: () => (/* binding */ Sn),
37
- /* harmony export */ isFragment: () => (/* binding */ vn),
37
+ /* harmony export */ isFragment: () => (/* binding */ hn),
38
38
  /* harmony export */ isMemo: () => (/* binding */ dn),
39
- /* harmony export */ isValidElement: () => (/* binding */ hn),
39
+ /* harmony export */ isValidElement: () => (/* binding */ vn),
40
40
  /* harmony export */ lazy: () => (/* binding */ z),
41
41
  /* harmony export */ memo: () => (/* binding */ N),
42
42
  /* harmony export */ render: () => (/* binding */ nn),
@@ -47,7 +47,7 @@ __webpack_require__.r(__webpack_exports__);
47
47
  /* harmony export */ useInsertionEffect: () => (/* binding */ I),
48
48
  /* harmony export */ useSyncExternalStore: () => (/* binding */ C),
49
49
  /* harmony export */ useTransition: () => (/* binding */ k),
50
- /* harmony export */ version: () => (/* binding */ an)
50
+ /* harmony export */ version: () => (/* binding */ cn)
51
51
  /* harmony export */ });
52
52
  /* harmony import */ var preact__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8785);
53
53
  /* harmony import */ var preact__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(preact__WEBPACK_IMPORTED_MODULE_0__);
@@ -57,7 +57,7 @@ __webpack_require__.r(__webpack_exports__);
57
57
  /* harmony reexport (unknown) */ for(const __WEBPACK_IMPORT_KEY__ in preact_hooks__WEBPACK_IMPORTED_MODULE_1__) if(["default","Component","Fragment","StrictMode","createContext","createElement","createRef","Children","PureComponent","Suspense","SuspenseList","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","cloneElement","createFactory","createPortal","findDOMNode","flushSync","forwardRef","hydrate","isElement","isFragment","isMemo","isValidElement","lazy","memo","render","startTransition","unmountComponentAtNode","unstable_batchedUpdates","useDeferredValue","useInsertionEffect","useSyncExternalStore","useTransition","version"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = () => preact_hooks__WEBPACK_IMPORTED_MODULE_1__[__WEBPACK_IMPORT_KEY__]
58
58
  /* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
59
59
  function g(n,t){for(var e in t)n[e]=t[e];return n}function E(n,t){for(var e in n)if("__source"!==e&&!(e in t))return!0;for(var r in t)if("__source"!==r&&n[r]!==t[r])return!0;return!1}function C(n,t){var e=t(),r=(0,preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useState)({t:{__:e,u:t}}),u=r[0].t,o=r[1];return (0,preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect)(function(){u.__=e,u.u=t,R(u)&&o({t:u})},[n,e,t]),(0,preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function(){return R(u)&&o({t:u}),n(function(){R(u)&&o({t:u})})},[n]),e}function R(n){try{return!((t=n.__)===(e=n.u())&&(0!==t||1/t==1/e)||t!=t&&e!=e)}catch(n){return!0}// removed by dead control flow
60
- var t, e; }function x(n){n()}function w(n){return n}function k(){return[!1,x]}var I=preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect;function M(n,t){this.props=n,this.context=t}function N(n,e){function r(n){var t=this.props.ref;return t!=n.ref&&t&&("function"==typeof t?t(null):t.current=null),e?!e(this.props,n)||t!=n.ref:E(this.props,n)}function u(e){return this.shouldComponentUpdate=r,(0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(n,e)}return u.displayName="Memo("+(n.displayName||n.name)+")",u.__f=u.prototype.isReactComponent=!0,u.type=n,u}(M.prototype=new preact__WEBPACK_IMPORTED_MODULE_0__.Component).isPureReactComponent=!0,M.prototype.shouldComponentUpdate=function(n,t){return E(this.props,n)||E(this.state,t)};var T=preact__WEBPACK_IMPORTED_MODULE_0__.options.__b;preact__WEBPACK_IMPORTED_MODULE_0__.options.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),T&&T(n)};var A="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function D(n){function t(t){var e=g({},t);return delete e.ref,n(e,t.ref||null)}return t.$$typeof=A,t.render=n,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(n.displayName||n.name)+")",t}var F=function(n,t){return null==n?null:(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)((0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(n).map(t))},L={map:F,forEach:F,count:function(n){return n?(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(n).length:0},only:function(n){var t=(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(n);if(1!==t.length)throw"Children.only";return t[0]},toArray:preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray},O=preact__WEBPACK_IMPORTED_MODULE_0__.options.__e;preact__WEBPACK_IMPORTED_MODULE_0__.options.__e=function(n,t,e,r){if(n.then)for(var u,o=t;o=o.__;)if((u=o.__c)&&u.__c)return null==t.__e&&(t.__e=e.__e,t.__k=e.__k),u.__c(n,t);O(n,t,e,r)};var U=preact__WEBPACK_IMPORTED_MODULE_0__.options.unmount;function V(n,t,e){return n&&(n.__c&&n.__c.__H&&(n.__c.__H.__.forEach(function(n){"function"==typeof n.__c&&n.__c()}),n.__c.__H=null),null!=(n=g({},n)).__c&&(n.__c.__P===e&&(n.__c.__P=t),n.__c.__e=!0,n.__c=null),n.__k=n.__k&&n.__k.map(function(n){return V(n,t,e)})),n}function W(n,t,e){return n&&e&&(n.__v=null,n.__k=n.__k&&n.__k.map(function(n){return W(n,t,e)}),n.__c&&n.__c.__P===t&&(n.__e&&e.appendChild(n.__e),n.__c.__e=!0,n.__c.__P=e)),n}function P(){this.__u=0,this.o=null,this.__b=null}function j(n){var t=n.__&&n.__.__c;return t&&t.__a&&t.__a(n)}function z(n){var e,r,u,o=null;function i(i){if(e||(e=n()).then(function(n){n&&(o=n.default||n),u=!0},function(n){r=n,u=!0}),r)throw r;if(!u)throw e;return o?(0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(o,i):null}return i.displayName="Lazy",i.__f=!0,i}function B(){this.i=null,this.l=null}preact__WEBPACK_IMPORTED_MODULE_0__.options.unmount=function(n){var t=n.__c;t&&(t.__z=!0),t&&t.__R&&t.__R(),t&&32&n.__u&&(n.type=null),U&&U(n)},(P.prototype=new preact__WEBPACK_IMPORTED_MODULE_0__.Component).__c=function(n,t){var e=t.__c,r=this;null==r.o&&(r.o=[]),r.o.push(e);var u=j(r.__v),o=!1,i=function(){o||r.__z||(o=!0,e.__R=null,u?u(c):c())};e.__R=i;var l=e.__P;e.__P=null;var c=function(){if(!--r.__u){if(r.state.__a){var n=r.state.__a;r.__v.__k[0]=W(n,n.__c.__P,n.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.o.pop();)t.__P=l,t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),n.then(i,i)},P.prototype.componentWillUnmount=function(){this.o=[]},P.prototype.render=function(n,e){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=V(this.__b,r,o.__O=o.__P)}this.__b=null}var i=e.__a&&(0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(preact__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,n.fallback);return i&&(i.__u&=-33),[(0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(preact__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,e.__a?null:n.children),i]};var H=function(n,t,e){if(++e[1]===e[0]&&n.l.delete(t),n.props.revealOrder&&("t"!==n.props.revealOrder[0]||!n.l.size))for(e=n.i;e;){for(;e.length>3;)e.pop()();if(e[1]<e[0])break;n.i=e=e[2]}};function Z(n){return this.getChildContext=function(){return n.context},n.children}function Y(n){var e=this,r=n.h;if(e.componentWillUnmount=function(){(0,preact__WEBPACK_IMPORTED_MODULE_0__.render)(null,e.v),e.v=null,e.h=null},e.h&&e.h!==r&&e.componentWillUnmount(),!e.v){for(var u=e.__v;null!==u&&!u.__m&&null!==u.__;)u=u.__;e.h=r,e.v={nodeType:1,parentNode:r,childNodes:[],__k:{__m:u.__m},contains:function(){return!0},namespaceURI:r.namespaceURI,insertBefore:function(n,t){this.childNodes.push(n),e.h.insertBefore(n,t)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),e.h.removeChild(n)}}}(0,preact__WEBPACK_IMPORTED_MODULE_0__.render)((0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(Z,{context:e.context},n.__v),e.v)}function $(n,e){var r=(0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(Y,{__v:n,h:e});return r.containerInfo=e,r}(B.prototype=new preact__WEBPACK_IMPORTED_MODULE_0__.Component).__a=function(n){var t=this,e=j(t.__v),r=t.l.get(n);return r[0]++,function(u){var o=function(){t.props.revealOrder?(r.push(u),H(t,n,r)):u()};e?e(o):o()}},B.prototype.render=function(n){this.i=null,this.l=new Map;var t=(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(n.children);n.revealOrder&&"b"===n.revealOrder[0]&&t.reverse();for(var e=t.length;e--;)this.l.set(t[e],this.i=[1,0,this.i]);return n.children},B.prototype.componentDidUpdate=B.prototype.componentDidMount=function(){var n=this;this.l.forEach(function(t,e){H(n,e,t)})};var q="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,G=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,J=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,K=/[A-Z0-9]/g,Q="undefined"!=typeof document,X=function(n){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(n)};function nn(n,t,e){return null==t.__k&&(t.textContent=""),(0,preact__WEBPACK_IMPORTED_MODULE_0__.render)(n,t),"function"==typeof e&&e(),n?n.__c:null}function tn(n,t,e){return (0,preact__WEBPACK_IMPORTED_MODULE_0__.hydrate)(n,t),"function"==typeof e&&e(),n?n.__c:null}preact__WEBPACK_IMPORTED_MODULE_0__.Component.prototype.isReactComponent=!0,["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(preact__WEBPACK_IMPORTED_MODULE_0__.Component.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(n){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:n})}})});var en=preact__WEBPACK_IMPORTED_MODULE_0__.options.event;preact__WEBPACK_IMPORTED_MODULE_0__.options.event=function(n){return en&&(n=en(n)),n.persist=function(){},n.isPropagationStopped=function(){return this.cancelBubble},n.isDefaultPrevented=function(){return this.defaultPrevented},n.nativeEvent=n};var rn,un={configurable:!0,get:function(){return this.class}},on=preact__WEBPACK_IMPORTED_MODULE_0__.options.vnode;preact__WEBPACK_IMPORTED_MODULE_0__.options.vnode=function(n){"string"==typeof n.type&&function(n){var t=n.props,e=n.type,u={},o=-1==e.indexOf("-");for(var i in t){var l=t[i];if(!("value"===i&&"defaultValue"in t&&null==l||Q&&"children"===i&&"noscript"===e||"class"===i||"className"===i)){var c=i.toLowerCase();"defaultValue"===i&&"value"in t&&null==t.value?i="value":"download"===i&&!0===l?l="":"translate"===c&&"no"===l?l=!1:"o"===c[0]&&"n"===c[1]?"ondoubleclick"===c?i="ondblclick":"onchange"!==c||"input"!==e&&"textarea"!==e||X(t.type)?"onfocus"===c?i="onfocusin":"onblur"===c?i="onfocusout":J.test(i)&&(i=c):c=i="oninput":o&&G.test(i)?i=i.replace(K,"-$&").toLowerCase():null===l&&(l=void 0),"oninput"===c&&u[i=c]&&(i="oninputCapture"),u[i]=l}}"select"==e&&(u.multiple&&Array.isArray(u.value)&&(u.value=(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(t.children).forEach(function(n){n.props.selected=-1!=u.value.indexOf(n.props.value)})),null!=u.defaultValue&&(u.value=(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(t.children).forEach(function(n){n.props.selected=u.multiple?-1!=u.defaultValue.indexOf(n.props.value):u.defaultValue==n.props.value}))),t.class&&!t.className?(u.class=t.class,Object.defineProperty(u,"className",un)):t.className&&(u.class=u.className=t.className),n.props=u}(n),n.$$typeof=q,on&&on(n)};var ln=preact__WEBPACK_IMPORTED_MODULE_0__.options.__r;preact__WEBPACK_IMPORTED_MODULE_0__.options.__r=function(n){ln&&ln(n),rn=n.__c};var cn=preact__WEBPACK_IMPORTED_MODULE_0__.options.diffed;preact__WEBPACK_IMPORTED_MODULE_0__.options.diffed=function(n){cn&&cn(n);var t=n.props,e=n.__e;null!=e&&"textarea"===n.type&&"value"in t&&t.value!==e.value&&(e.value=null==t.value?"":t.value),rn=null};var fn={ReactCurrentDispatcher:{current:{readContext:function(n){return rn.__n[n.__c].props.value},useCallback:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useCallback,useContext:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useContext,useDebugValue:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useDebugValue,useDeferredValue:w,useEffect:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useEffect,useId:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useId,useImperativeHandle:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useImperativeHandle,useInsertionEffect:I,useLayoutEffect:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect,useMemo:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useMemo,useReducer:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useReducer,useRef:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useRef,useState:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useState,useSyncExternalStore:C,useTransition:k}}},an="18.3.1";function sn(n){return preact__WEBPACK_IMPORTED_MODULE_0__.createElement.bind(null,n)}function hn(n){return!!n&&n.$$typeof===q}function vn(n){return hn(n)&&n.type===preact__WEBPACK_IMPORTED_MODULE_0__.Fragment}function dn(n){return!!n&&"string"==typeof n.displayName&&0==n.displayName.indexOf("Memo(")}function mn(n){return hn(n)?preact__WEBPACK_IMPORTED_MODULE_0__.cloneElement.apply(null,arguments):n}function pn(n){return!!n.__k&&((0,preact__WEBPACK_IMPORTED_MODULE_0__.render)(null,n),!0)}function yn(n){return n&&(n.base||1===n.nodeType&&n)||null}var _n=function(n,t){return n(t)},bn=function(n,t){var r=preact__WEBPACK_IMPORTED_MODULE_0__.options.debounceRendering;preact__WEBPACK_IMPORTED_MODULE_0__.options.debounceRendering=function(n){return n()};var u=n(t);return preact__WEBPACK_IMPORTED_MODULE_0__.options.debounceRendering=r,u},Sn=hn,gn={useState:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useState,useId:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useId,useReducer:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useReducer,useEffect:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useEffect,useLayoutEffect:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect,useInsertionEffect:I,useTransition:k,useDeferredValue:w,useSyncExternalStore:C,startTransition:x,useRef:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useRef,useImperativeHandle:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useImperativeHandle,useMemo:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useMemo,useCallback:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useCallback,useContext:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useContext,useDebugValue:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useDebugValue,version:"18.3.1",Children:L,render:nn,hydrate:tn,unmountComponentAtNode:pn,createPortal:$,createElement:preact__WEBPACK_IMPORTED_MODULE_0__.createElement,createContext:preact__WEBPACK_IMPORTED_MODULE_0__.createContext,createFactory:sn,cloneElement:mn,createRef:preact__WEBPACK_IMPORTED_MODULE_0__.createRef,Fragment:preact__WEBPACK_IMPORTED_MODULE_0__.Fragment,isValidElement:hn,isElement:Sn,isFragment:vn,isMemo:dn,findDOMNode:yn,Component:preact__WEBPACK_IMPORTED_MODULE_0__.Component,PureComponent:M,memo:N,forwardRef:D,flushSync:bn,unstable_batchedUpdates:_n,StrictMode:preact__WEBPACK_IMPORTED_MODULE_0__.Fragment,Suspense:P,SuspenseList:B,lazy:z,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:fn};
60
+ var t, e; }function x(n){n()}function w(n){return n}function k(){return[!1,x]}var I=preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect;function M(n,t){this.props=n,this.context=t}function N(n,e){function r(n){var t=this.props.ref;return t!=n.ref&&t&&("function"==typeof t?t(null):t.current=null),e?!e(this.props,n)||t!=n.ref:E(this.props,n)}function u(e){return this.shouldComponentUpdate=r,(0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(n,e)}return u.displayName="Memo("+(n.displayName||n.name)+")",u.__f=u.prototype.isReactComponent=!0,u.type=n,u}(M.prototype=new preact__WEBPACK_IMPORTED_MODULE_0__.Component).isPureReactComponent=!0,M.prototype.shouldComponentUpdate=function(n,t){return E(this.props,n)||E(this.state,t)};var T=preact__WEBPACK_IMPORTED_MODULE_0__.options.__b;preact__WEBPACK_IMPORTED_MODULE_0__.options.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),T&&T(n)};var A="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function D(n){function t(t){var e=g({},t);return delete e.ref,n(e,t.ref||null)}return t.$$typeof=A,t.render=n,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(n.displayName||n.name)+")",t}var F=function(n,t){return null==n?null:(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)((0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(n).map(t))},L={map:F,forEach:F,count:function(n){return n?(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(n).length:0},only:function(n){var t=(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(n);if(1!==t.length)throw"Children.only";return t[0]},toArray:preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray},O=preact__WEBPACK_IMPORTED_MODULE_0__.options.__e;preact__WEBPACK_IMPORTED_MODULE_0__.options.__e=function(n,t,e,r){if(n.then)for(var u,o=t;o=o.__;)if((u=o.__c)&&u.__c)return null==t.__e&&(t.__e=e.__e,t.__k=e.__k),u.__c(n,t);O(n,t,e,r)};var U=preact__WEBPACK_IMPORTED_MODULE_0__.options.unmount;function V(n,t,e){return n&&(n.__c&&n.__c.__H&&(n.__c.__H.__.forEach(function(n){"function"==typeof n.__c&&n.__c()}),n.__c.__H=null),null!=(n=g({},n)).__c&&(n.__c.__P===e&&(n.__c.__P=t),n.__c.__e=!0,n.__c=null),n.__k=n.__k&&n.__k.map(function(n){return V(n,t,e)})),n}function W(n,t,e){return n&&e&&(n.__v=null,n.__k=n.__k&&n.__k.map(function(n){return W(n,t,e)}),n.__c&&n.__c.__P===t&&(n.__e&&e.appendChild(n.__e),n.__c.__e=!0,n.__c.__P=e)),n}function P(){this.__u=0,this.o=null,this.__b=null}function j(n){var t=n.__&&n.__.__c;return t&&t.__a&&t.__a(n)}function z(n){var e,r,u,o=null;function i(i){if(e||(e=n()).then(function(n){n&&(o=n.default||n),u=!0},function(n){r=n,u=!0}),r)throw r;if(!u)throw e;return o?(0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(o,i):null}return i.displayName="Lazy",i.__f=!0,i}function B(){this.i=null,this.l=null}preact__WEBPACK_IMPORTED_MODULE_0__.options.unmount=function(n){var t=n.__c;t&&(t.__z=!0),t&&t.__R&&t.__R(),t&&32&n.__u&&(n.type=null),U&&U(n)},(P.prototype=new preact__WEBPACK_IMPORTED_MODULE_0__.Component).__c=function(n,t){var e=t.__c,r=this;null==r.o&&(r.o=[]),r.o.push(e);var u=j(r.__v),o=!1,i=function(){o||r.__z||(o=!0,e.__R=null,u?u(f):f())};e.__R=i;var l=e.__P;e.__P=null;var f=function(){if(!--r.__u){if(r.state.__a){var n=r.state.__a;r.__v.__k[0]=W(n,n.__c.__P,n.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.o.pop();)t.__P=l,t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),n.then(i,i)},P.prototype.componentWillUnmount=function(){this.o=[]},P.prototype.render=function(n,e){var r=this.__v;if(!r.__m){for(var o=r;o.__;)o=o.__;o=o.__m||(o.__m=[0,0]),r.__m=[o[1]++,0]}if(this.__b){if(r.__k){var i=document.createElement("div"),l=r.__k[0].__c;r.__k[0]=V(this.__b,i,l.__O=l.__P)}this.__b=null}var f=e.__a&&(0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(preact__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,n.fallback);return f&&(f.__u&=-33),[(0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(preact__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,e.__a?null:n.children),f]};var H=function(n,t,e){if(++e[1]===e[0]&&n.l.delete(t),n.props.revealOrder&&("t"!==n.props.revealOrder[0]||!n.l.size))for(e=n.i;e;){for(;e.length>3;)e.pop()();if(e[1]<e[0])break;n.i=e=e[2]}};function Z(n){return this.getChildContext=function(){return n.context},n.children}function Y(n){var e=this,r=n.v;if(e.componentWillUnmount=function(){(0,preact__WEBPACK_IMPORTED_MODULE_0__.render)(null,e.h),e.h=null,e.v=null},e.v&&e.v!==r&&e.componentWillUnmount(),!e.h){for(var u=e.__v;null!==u&&!u.__m&&null!==u.__;)u=u.__;e.v=r,e.h={nodeType:1,parentNode:r,childNodes:[],__k:{__m:u.__m},contains:function(){return!0},namespaceURI:r.namespaceURI,insertBefore:function(n,t){this.childNodes.push(n),e.v.insertBefore(n,t)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),e.v.removeChild(n)}}}(0,preact__WEBPACK_IMPORTED_MODULE_0__.render)((0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(Z,{context:e.context},n.__v),e.h)}function $(n,e){var r=(0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(Y,{__v:n,v:e});return r.containerInfo=e,r}(B.prototype=new preact__WEBPACK_IMPORTED_MODULE_0__.Component).__a=function(n){var t=this,e=j(t.__v),r=t.l.get(n);return r[0]++,function(u){var o=function(){t.props.revealOrder?(r.push(u),H(t,n,r)):u()};e?e(o):o()}},B.prototype.render=function(n){this.i=null,this.l=new Map;var t=(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(n.children);n.revealOrder&&"b"===n.revealOrder[0]&&t.reverse();for(var e=t.length;e--;)this.l.set(t[e],this.i=[1,0,this.i]);return n.children},B.prototype.componentDidUpdate=B.prototype.componentDidMount=function(){var n=this;this.l.forEach(function(t,e){H(n,e,t)})};var q="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,G=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,J=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,K=/[A-Z0-9]/g,Q="undefined"!=typeof document,X=function(n){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(n)};function nn(n,t,e){return null==t.__k&&(t.textContent=""),(0,preact__WEBPACK_IMPORTED_MODULE_0__.render)(n,t),"function"==typeof e&&e(),n?n.__c:null}function tn(n,t,e){return (0,preact__WEBPACK_IMPORTED_MODULE_0__.hydrate)(n,t),"function"==typeof e&&e(),n?n.__c:null}preact__WEBPACK_IMPORTED_MODULE_0__.Component.prototype.isReactComponent=!0,["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(preact__WEBPACK_IMPORTED_MODULE_0__.Component.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(n){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:n})}})});var en=preact__WEBPACK_IMPORTED_MODULE_0__.options.event;preact__WEBPACK_IMPORTED_MODULE_0__.options.event=function(n){return en&&(n=en(n)),n.persist=function(){},n.isPropagationStopped=function(){return this.cancelBubble},n.isDefaultPrevented=function(){return this.defaultPrevented},n.nativeEvent=n};var rn,un={configurable:!0,get:function(){return this.class}},on=preact__WEBPACK_IMPORTED_MODULE_0__.options.vnode;preact__WEBPACK_IMPORTED_MODULE_0__.options.vnode=function(n){"string"==typeof n.type&&function(n){var t=n.props,e=n.type,u={},o=-1==e.indexOf("-");for(var i in t){var l=t[i];if(!("value"===i&&"defaultValue"in t&&null==l||Q&&"children"===i&&"noscript"===e||"class"===i||"className"===i)){var f=i.toLowerCase();"defaultValue"===i&&"value"in t&&null==t.value?i="value":"download"===i&&!0===l?l="":"translate"===f&&"no"===l?l=!1:"o"===f[0]&&"n"===f[1]?"ondoubleclick"===f?i="ondblclick":"onchange"!==f||"input"!==e&&"textarea"!==e||X(t.type)?"onfocus"===f?i="onfocusin":"onblur"===f?i="onfocusout":J.test(i)&&(i=f):f=i="oninput":o&&G.test(i)?i=i.replace(K,"-$&").toLowerCase():null===l&&(l=void 0),"oninput"===f&&u[i=f]&&(i="oninputCapture"),u[i]=l}}"select"==e&&(u.multiple&&Array.isArray(u.value)&&(u.value=(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(t.children).forEach(function(n){n.props.selected=-1!=u.value.indexOf(n.props.value)})),null!=u.defaultValue&&(u.value=(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(t.children).forEach(function(n){n.props.selected=u.multiple?-1!=u.defaultValue.indexOf(n.props.value):u.defaultValue==n.props.value}))),t.class&&!t.className?(u.class=t.class,Object.defineProperty(u,"className",un)):t.className&&(u.class=u.className=t.className),n.props=u}(n),n.$$typeof=q,on&&on(n)};var ln=preact__WEBPACK_IMPORTED_MODULE_0__.options.__r;preact__WEBPACK_IMPORTED_MODULE_0__.options.__r=function(n){ln&&ln(n),rn=n.__c};var fn=preact__WEBPACK_IMPORTED_MODULE_0__.options.diffed;preact__WEBPACK_IMPORTED_MODULE_0__.options.diffed=function(n){fn&&fn(n);var t=n.props,e=n.__e;null!=e&&"textarea"===n.type&&"value"in t&&t.value!==e.value&&(e.value=null==t.value?"":t.value),rn=null};var an={ReactCurrentDispatcher:{current:{readContext:function(n){return rn.__n[n.__c].props.value},useCallback:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useCallback,useContext:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useContext,useDebugValue:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useDebugValue,useDeferredValue:w,useEffect:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useEffect,useId:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useId,useImperativeHandle:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useImperativeHandle,useInsertionEffect:I,useLayoutEffect:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect,useMemo:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useMemo,useReducer:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useReducer,useRef:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useRef,useState:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useState,useSyncExternalStore:C,useTransition:k}}},cn="18.3.1";function sn(n){return preact__WEBPACK_IMPORTED_MODULE_0__.createElement.bind(null,n)}function vn(n){return!!n&&n.$$typeof===q}function hn(n){return vn(n)&&n.type===preact__WEBPACK_IMPORTED_MODULE_0__.Fragment}function dn(n){return!!n&&"string"==typeof n.displayName&&0==n.displayName.indexOf("Memo(")}function mn(n){return vn(n)?preact__WEBPACK_IMPORTED_MODULE_0__.cloneElement.apply(null,arguments):n}function pn(n){return!!n.__k&&((0,preact__WEBPACK_IMPORTED_MODULE_0__.render)(null,n),!0)}function yn(n){return n&&(n.base||1===n.nodeType&&n)||null}var _n=function(n,t){return n(t)},bn=function(n,t){var r=preact__WEBPACK_IMPORTED_MODULE_0__.options.debounceRendering;preact__WEBPACK_IMPORTED_MODULE_0__.options.debounceRendering=function(n){return n()};var u=n(t);return preact__WEBPACK_IMPORTED_MODULE_0__.options.debounceRendering=r,u},Sn=vn,gn={useState:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useState,useId:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useId,useReducer:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useReducer,useEffect:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useEffect,useLayoutEffect:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect,useInsertionEffect:I,useTransition:k,useDeferredValue:w,useSyncExternalStore:C,startTransition:x,useRef:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useRef,useImperativeHandle:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useImperativeHandle,useMemo:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useMemo,useCallback:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useCallback,useContext:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useContext,useDebugValue:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useDebugValue,version:"18.3.1",Children:L,render:nn,hydrate:tn,unmountComponentAtNode:pn,createPortal:$,createElement:preact__WEBPACK_IMPORTED_MODULE_0__.createElement,createContext:preact__WEBPACK_IMPORTED_MODULE_0__.createContext,createFactory:sn,cloneElement:mn,createRef:preact__WEBPACK_IMPORTED_MODULE_0__.createRef,Fragment:preact__WEBPACK_IMPORTED_MODULE_0__.Fragment,isValidElement:vn,isElement:Sn,isFragment:hn,isMemo:dn,findDOMNode:yn,Component:preact__WEBPACK_IMPORTED_MODULE_0__.Component,PureComponent:M,memo:N,forwardRef:D,flushSync:bn,unstable_batchedUpdates:_n,StrictMode:preact__WEBPACK_IMPORTED_MODULE_0__.Fragment,Suspense:P,SuspenseList:B,lazy:z,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:an};
61
61
  //# sourceMappingURL=compat.module.js.map
62
62
 
63
63
 
@@ -4027,17 +4027,17 @@ __webpack_require__(1698);
4027
4027
  /******/ });
4028
4028
  /************************************************************************/
4029
4029
  /******/ // The module cache
4030
- /******/ var __webpack_module_cache__ = {};
4030
+ /******/ const __webpack_module_cache__ = {};
4031
4031
  /******/
4032
4032
  /******/ // The require function
4033
4033
  /******/ function __webpack_require__(moduleId) {
4034
4034
  /******/ // Check if module is in cache
4035
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
4035
+ /******/ const cachedModule = __webpack_module_cache__[moduleId];
4036
4036
  /******/ if (cachedModule !== undefined) {
4037
4037
  /******/ return cachedModule.exports;
4038
4038
  /******/ }
4039
4039
  /******/ // Create a new module (and put it into the cache)
4040
- /******/ var module = __webpack_module_cache__[moduleId] = {
4040
+ /******/ const module = __webpack_module_cache__[moduleId] = {
4041
4041
  /******/ // no module.id needed
4042
4042
  /******/ // no module.loaded needed
4043
4043
  /******/ exports: {}
@@ -4055,7 +4055,7 @@ __webpack_require__(1698);
4055
4055
  /******/ (() => {
4056
4056
  /******/ // getDefaultExport function for compatibility with non-harmony modules
4057
4057
  /******/ __webpack_require__.n = (module) => {
4058
- /******/ var getter = module && module.__esModule ?
4058
+ /******/ const getter = module && module.__esModule ?
4059
4059
  /******/ () => (module['default']) :
4060
4060
  /******/ () => (module);
4061
4061
  /******/ __webpack_require__.d(getter, { a: getter });
@@ -4065,11 +4065,26 @@ __webpack_require__(1698);
4065
4065
  /******/
4066
4066
  /******/ /* webpack/runtime/define property getters */
4067
4067
  /******/ (() => {
4068
- /******/ // define getter functions for harmony exports
4068
+ /******/ // define getter/value functions for harmony exports
4069
4069
  /******/ __webpack_require__.d = (exports, definition) => {
4070
- /******/ for(var key in definition) {
4071
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
4072
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
4070
+ /******/ if(Array.isArray(definition)) {
4071
+ /******/ var i = 0;
4072
+ /******/ while(i < definition.length) {
4073
+ /******/ var key = definition[i++];
4074
+ /******/ var binding = definition[i++];
4075
+ /******/ if(!__webpack_require__.o(exports, key)) {
4076
+ /******/ if(binding === 0) {
4077
+ /******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
4078
+ /******/ } else {
4079
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
4080
+ /******/ }
4081
+ /******/ } else if(binding === 0) { i++; }
4082
+ /******/ }
4083
+ /******/ } else {
4084
+ /******/ for(var key in definition) {
4085
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
4086
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
4087
+ /******/ }
4073
4088
  /******/ }
4074
4089
  /******/ }
4075
4090
  /******/ };
@@ -4096,7 +4111,7 @@ __webpack_require__(1698);
4096
4111
  /******/ (() => {
4097
4112
  /******/ // define __esModule on exports
4098
4113
  /******/ __webpack_require__.r = (exports) => {
4099
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
4114
+ /******/ if(Symbol.toStringTag) {
4100
4115
  /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4101
4116
  /******/ }
4102
4117
  /******/ Object.defineProperty(exports, '__esModule', { value: true });
@@ -4105,16 +4120,16 @@ __webpack_require__(1698);
4105
4120
  /******/
4106
4121
  /******/ /* webpack/runtime/publicPath */
4107
4122
  /******/ (() => {
4108
- /******/ var scriptUrl;
4123
+ /******/ let scriptUrl;
4109
4124
  /******/ if (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + "";
4110
- /******/ var document = __webpack_require__.g.document;
4125
+ /******/ const document = __webpack_require__.g.document;
4111
4126
  /******/ if (!scriptUrl && document) {
4112
- /******/ if (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT')
4127
+ /******/ if (document.currentScript?.tagName.toUpperCase() === 'SCRIPT')
4113
4128
  /******/ scriptUrl = document.currentScript.src;
4114
4129
  /******/ if (!scriptUrl) {
4115
- /******/ var scripts = document.getElementsByTagName("script");
4130
+ /******/ const scripts = document.getElementsByTagName("script");
4116
4131
  /******/ if(scripts.length) {
4117
- /******/ var i = scripts.length - 1;
4132
+ /******/ let i = scripts.length - 1;
4118
4133
  /******/ while (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;
4119
4134
  /******/ }
4120
4135
  /******/ }
@@ -4127,7 +4142,7 @@ __webpack_require__(1698);
4127
4142
  /******/ })();
4128
4143
  /******/
4129
4144
  /************************************************************************/
4130
- var __webpack_exports__ = {};
4145
+ let __webpack_exports__ = {};
4131
4146
  // This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
4132
4147
  (() => {
4133
4148
  "use strict";
@@ -5715,7 +5730,7 @@ class API {
5715
5730
  return {
5716
5731
  clientName: "@seamly/web-ui",
5717
5732
  clientVariant: this.#layoutMode,
5718
- clientVersion: "25.4.1-beta",
5733
+ clientVersion: "25.5.1",
5719
5734
  currentUrl: window.location.toString(),
5720
5735
  screenResolution: `${window.screen.width}x${window.screen.height}`,
5721
5736
  timezone: getTimeZone(),
@@ -5731,7 +5746,7 @@ var DRAFTABLE = Symbol.for("immer-draftable");
5731
5746
  var DRAFT_STATE = Symbol.for("immer-state");
5732
5747
 
5733
5748
  // src/utils/errors.ts
5734
- var errors = false ? 0 : [];
5749
+ var errors = (/* unused pure expression or super */ null && ( false ? 0 : []));
5735
5750
  function die(error, ...args) {
5736
5751
  if (false) // removed by dead control flow
5737
5752
  {}
@@ -7825,7 +7840,7 @@ function isValidKey(key) {
7825
7840
  function getMessage(type) {
7826
7841
  const splitType = type ? `${type}`.split("/") : [];
7827
7842
  const actionName = splitType[splitType.length - 1] || "actionCreator";
7828
- return `Detected an action creator with type "${type || "unknown"}" being dispatched.
7843
+ return `Detected an action creator with type "${type || "unknown"}" being dispatched.
7829
7844
  Make sure you're calling the action creator before dispatching, i.e. \`dispatch(${actionName}())\` instead of \`dispatch(${actionName})\`. This is necessary even if the action has no payload.`;
7830
7845
  }
7831
7846
  function createActionCreatorInvariantMiddleware(options = {}) {
@@ -8076,6 +8091,20 @@ var createQueueWithTimer = (timeout) => {
8076
8091
  setTimeout(notify, timeout);
8077
8092
  };
8078
8093
  };
8094
+ var createRafWithFallbackTimer = (raf, timeout) => {
8095
+ return (notify) => {
8096
+ let called = false;
8097
+ const callback = () => {
8098
+ if (called) return;
8099
+ called = true;
8100
+ cancelAnimationFrame(rafId);
8101
+ clearTimeout(timerId);
8102
+ notify();
8103
+ };
8104
+ const rafId = raf(callback);
8105
+ const timerId = setTimeout(callback, timeout);
8106
+ };
8107
+ };
8079
8108
  var autoBatchEnhancer = (options = {
8080
8109
  type: "raf"
8081
8110
  }) => (next) => (...args) => {
@@ -8086,7 +8115,7 @@ var autoBatchEnhancer = (options = {
8086
8115
  const listeners = /* @__PURE__ */ new Set();
8087
8116
  const queueCallback = options.type === "tick" ? queueMicrotask : options.type === "raf" ? (
8088
8117
  // requestAnimationFrame won't exist in SSR environments. Fall back to a vague approximation just to keep from erroring.
8089
- typeof window !== "undefined" && window.requestAnimationFrame ? window.requestAnimationFrame : createQueueWithTimer(10)
8118
+ typeof window !== "undefined" && window.requestAnimationFrame ? createRafWithFallbackTimer(window.requestAnimationFrame, 100) : createQueueWithTimer(10)
8090
8119
  ) : options.type === "callback" ? options.queueNotification : createQueueWithTimer(options.timeout);
8091
8120
  const notifyListeners = () => {
8092
8121
  notificationQueued = false;
@@ -8395,6 +8424,8 @@ var RejectWithValue = class {
8395
8424
  this.payload = payload;
8396
8425
  this.meta = meta;
8397
8426
  }
8427
+ payload;
8428
+ meta;
8398
8429
  /*
8399
8430
  type-only property to distinguish between RejectWithValue and FulfillWithMeta
8400
8431
  does not exist at runtime
@@ -8406,6 +8437,8 @@ var FulfillWithMeta = class {
8406
8437
  this.payload = payload;
8407
8438
  this.meta = meta;
8408
8439
  }
8440
+ payload;
8441
+ meta;
8409
8442
  /*
8410
8443
  type-only property to distinguish between RejectWithValue and FulfillWithMeta
8411
8444
  does not exist at runtime
@@ -8481,7 +8514,7 @@ var createAsyncThunk = /* @__PURE__ */ (() => {
8481
8514
  });
8482
8515
  }
8483
8516
  }
8484
- const promise = async function() {
8517
+ const promise = (async function() {
8485
8518
  let finalAction;
8486
8519
  try {
8487
8520
  let conditionResult = options?.condition?.(arg, {
@@ -8522,12 +8555,12 @@ var createAsyncThunk = /* @__PURE__ */ (() => {
8522
8555
  requestId,
8523
8556
  signal: abortController.signal,
8524
8557
  abort,
8525
- rejectWithValue: (value, meta) => {
8558
+ rejectWithValue: ((value, meta) => {
8526
8559
  return new RejectWithValue(value, meta);
8527
- },
8528
- fulfillWithValue: (value, meta) => {
8560
+ }),
8561
+ fulfillWithValue: ((value, meta) => {
8529
8562
  return new FulfillWithMeta(value, meta);
8530
- }
8563
+ })
8531
8564
  })).then((result) => {
8532
8565
  if (result instanceof RejectWithValue) {
8533
8566
  throw result;
@@ -8549,7 +8582,7 @@ var createAsyncThunk = /* @__PURE__ */ (() => {
8549
8582
  dispatch(finalAction);
8550
8583
  }
8551
8584
  return finalAction;
8552
- }();
8585
+ })();
8553
8586
  return Object.assign(promise, {
8554
8587
  abort,
8555
8588
  requestId,
@@ -8586,15 +8619,15 @@ function isThenable(value) {
8586
8619
 
8587
8620
  // src/createSlice.ts
8588
8621
  var asyncThunkSymbol = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
8589
- var asyncThunkCreator = {
8622
+ var asyncThunkCreator = (/* unused pure expression or super */ null && ({
8590
8623
  [asyncThunkSymbol]: createAsyncThunk
8591
- };
8592
- var ReducerType = /* @__PURE__ */ ((ReducerType2) => {
8624
+ }));
8625
+ var ReducerType = /* @__PURE__ */ (/* unused pure expression or super */ null && (((ReducerType2) => {
8593
8626
  ReducerType2["reducer"] = "reducer";
8594
8627
  ReducerType2["reducerWithPrepare"] = "reducerWithPrepare";
8595
8628
  ReducerType2["asyncThunk"] = "asyncThunk";
8596
8629
  return ReducerType2;
8597
- })(ReducerType || {});
8630
+ })(ReducerType || {})));
8598
8631
  function getType(slice, actionKey) {
8599
8632
  return `${slice}/${actionKey}`;
8600
8633
  }
@@ -9303,6 +9336,7 @@ var TaskAbortError = class {
9303
9336
  this.code = code;
9304
9337
  this.message = `${task} ${cancelled} (reason: ${code})`;
9305
9338
  }
9339
+ code;
9306
9340
  name = "TaskAbortError";
9307
9341
  message;
9308
9342
  };
@@ -9382,7 +9416,7 @@ var createDelay = (signal) => {
9382
9416
  var {
9383
9417
  assign: redux_toolkit_modern_assign
9384
9418
  } = Object;
9385
- var INTERNAL_NIL_TOKEN = {};
9419
+ var INTERNAL_NIL_TOKEN = (/* unused pure expression or super */ null && ({}));
9386
9420
  var alm = "listenerMiddleware";
9387
9421
  var createFork = (parentAbortSignal, parentBlockingPromises) => {
9388
9422
  const linkControllers = (controller) => addAbortSignalListener(parentAbortSignal, () => controller.abort(parentAbortSignal.reason));
@@ -9442,7 +9476,7 @@ var createTakePattern = (startListening, signal) => {
9442
9476
  unsubscribe();
9443
9477
  }
9444
9478
  };
9445
- return (predicate, timeout) => catchRejection(take(predicate, timeout));
9479
+ return ((predicate, timeout) => catchRejection(take(predicate, timeout)));
9446
9480
  };
9447
9481
  var getListenerEntryPropsFrom = (options) => {
9448
9482
  let {
@@ -9470,7 +9504,7 @@ var getListenerEntryPropsFrom = (options) => {
9470
9504
  effect
9471
9505
  };
9472
9506
  };
9473
- var createListenerEntry = /* @__PURE__ */ redux_toolkit_modern_assign((options) => {
9507
+ var createListenerEntry = /* @__PURE__ */ (/* unused pure expression or super */ null && (redux_toolkit_modern_assign((options) => {
9474
9508
  const {
9475
9509
  type,
9476
9510
  predicate,
@@ -9489,7 +9523,7 @@ var createListenerEntry = /* @__PURE__ */ redux_toolkit_modern_assign((options)
9489
9523
  return entry;
9490
9524
  }, {
9491
9525
  withTypes: () => createListenerEntry
9492
- });
9526
+ })));
9493
9527
  var findListenerEntry = (listenerMap, options) => {
9494
9528
  const {
9495
9529
  type,
@@ -9523,13 +9557,13 @@ var safelyNotifyError = (errorHandler, errorToNotify, errorInfo) => {
9523
9557
  }, 0);
9524
9558
  }
9525
9559
  };
9526
- var addListener = /* @__PURE__ */ redux_toolkit_modern_assign(/* @__PURE__ */ createAction(`${alm}/add`), {
9560
+ var addListener = /* @__PURE__ */ (/* unused pure expression or super */ null && (redux_toolkit_modern_assign(/* @__PURE__ */ createAction(`${alm}/add`), {
9527
9561
  withTypes: () => addListener
9528
- });
9562
+ })));
9529
9563
  var clearAllListeners = /* @__PURE__ */ (/* unused pure expression or super */ null && (createAction(`${alm}/removeAll`)));
9530
- var removeListener = /* @__PURE__ */ redux_toolkit_modern_assign(/* @__PURE__ */ createAction(`${alm}/remove`), {
9564
+ var removeListener = /* @__PURE__ */ (/* unused pure expression or super */ null && (redux_toolkit_modern_assign(/* @__PURE__ */ createAction(`${alm}/remove`), {
9531
9565
  withTypes: () => removeListener
9532
- });
9566
+ })));
9533
9567
  var defaultErrorHandler = (...args) => {
9534
9568
  console.error(`${alm}/error`, ...args);
9535
9569
  };
@@ -9563,10 +9597,10 @@ var createListenerMiddleware = (middlewareOptions = {}) => {
9563
9597
  }
9564
9598
  };
9565
9599
  };
9566
- const startListening = (options) => {
9600
+ const startListening = ((options) => {
9567
9601
  const entry = findListenerEntry(listenerMap, options) ?? createListenerEntry(options);
9568
9602
  return insertEntry(entry);
9569
- };
9603
+ });
9570
9604
  redux_toolkit_modern_assign(startListening, {
9571
9605
  withTypes: () => startListening
9572
9606
  });
@@ -9741,9 +9775,9 @@ var createDynamicMiddleware = () => {
9741
9775
 
9742
9776
  var isSliceLike = (maybeSliceLike) => "reducerPath" in maybeSliceLike && typeof maybeSliceLike.reducerPath === "string";
9743
9777
  var getReducers = (slices) => slices.flatMap((sliceOrMap) => isSliceLike(sliceOrMap) ? [[sliceOrMap.reducerPath, sliceOrMap.reducer]] : Object.entries(sliceOrMap));
9744
- var ORIGINAL_STATE = Symbol.for("rtk-state-proxy-original");
9778
+ var ORIGINAL_STATE = /* @__PURE__ */ (/* unused pure expression or super */ null && (Symbol.for("rtk-state-proxy-original")));
9745
9779
  var isStateProxy = (value) => !!value && !!value[ORIGINAL_STATE];
9746
- var stateProxyMap = /* @__PURE__ */ new WeakMap();
9780
+ var stateProxyMap = /* @__PURE__ */ (/* unused pure expression or super */ null && (new WeakMap()));
9747
9781
  var createStateProxy = (state, reducerMap, initialStateCache) => getOrInsertComputed(stateProxyMap, state, () => new Proxy(state, {
9748
9782
  get: (target, prop, receiver) => {
9749
9783
  if (prop === ORIGINAL_STATE) return target;
@@ -9772,7 +9806,7 @@ var redux_toolkit_modern_original = (state) => {
9772
9806
  }
9773
9807
  return state[ORIGINAL_STATE];
9774
9808
  };
9775
- var emptyObject = {};
9809
+ var emptyObject = (/* unused pure expression or super */ null && ({}));
9776
9810
  var noopReducer = (state = emptyObject) => state;
9777
9811
  function combineSlices(...slices) {
9778
9812
  const reducerMap = Object.fromEntries(getReducers(slices));
@@ -9990,10 +10024,10 @@ var runInputStabilityCheck = (inputSelectorResultsObject, options, inputSelector
9990
10024
  };
9991
10025
 
9992
10026
  // src/devModeChecks/setGlobalDevModeChecks.ts
9993
- var globalDevModeChecks = {
10027
+ var globalDevModeChecks = (/* unused pure expression or super */ null && ({
9994
10028
  inputStabilityCheck: "once",
9995
10029
  identityFunctionCheck: "once"
9996
- };
10030
+ }));
9997
10031
  var setGlobalDevModeChecks = (devModeChecks) => {
9998
10032
  Object.assign(globalDevModeChecks, devModeChecks);
9999
10033
  };
@@ -10185,7 +10219,7 @@ var ObjectTreeNode = class {
10185
10219
  collectionTag = null;
10186
10220
  id = nextId++;
10187
10221
  };
10188
- var objectProxyHandler = {
10222
+ var objectProxyHandler = (/* unused pure expression or super */ null && ({
10189
10223
  get(node, key) {
10190
10224
  function calculateResult() {
10191
10225
  const { value } = node;
@@ -10228,7 +10262,7 @@ var objectProxyHandler = {
10228
10262
  has(node, prop) {
10229
10263
  return Reflect.has(node.value, prop);
10230
10264
  }
10231
- };
10265
+ }));
10232
10266
  var ArrayTreeNode = class {
10233
10267
  constructor(value) {
10234
10268
  this.value = value;
@@ -10242,7 +10276,7 @@ var ArrayTreeNode = class {
10242
10276
  collectionTag = null;
10243
10277
  id = nextId++;
10244
10278
  };
10245
- var arrayProxyHandler = {
10279
+ var arrayProxyHandler = (/* unused pure expression or super */ null && ({
10246
10280
  get([node], key) {
10247
10281
  if (key === "length") {
10248
10282
  consumeCollection(node);
@@ -10258,7 +10292,7 @@ var arrayProxyHandler = {
10258
10292
  has([node], prop) {
10259
10293
  return objectProxyHandler.has(node, prop);
10260
10294
  }
10261
- };
10295
+ }));
10262
10296
  function createNode(value) {
10263
10297
  if (Array.isArray(value)) {
10264
10298
  return new ArrayTreeNode(value);
@@ -10739,19 +10773,19 @@ var REACT_STRICT_MODE_TYPE = /* @__PURE__ */ (/* unused pure expression or super
10739
10773
  var REACT_PROFILER_TYPE = /* @__PURE__ */ (/* unused pure expression or super */ null && (Symbol.for("react.profiler")));
10740
10774
  var REACT_CONSUMER_TYPE = /* @__PURE__ */ (/* unused pure expression or super */ null && (Symbol.for("react.consumer")));
10741
10775
  var REACT_CONTEXT_TYPE = /* @__PURE__ */ (/* unused pure expression or super */ null && (Symbol.for("react.context")));
10742
- var REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref");
10776
+ var REACT_FORWARD_REF_TYPE = /* @__PURE__ */ (/* unused pure expression or super */ null && (Symbol.for("react.forward_ref")));
10743
10777
  var REACT_SUSPENSE_TYPE = /* @__PURE__ */ (/* unused pure expression or super */ null && (Symbol.for("react.suspense")));
10744
10778
  var REACT_SUSPENSE_LIST_TYPE = /* @__PURE__ */ (/* unused pure expression or super */ null && (Symbol.for(
10745
10779
  "react.suspense_list"
10746
10780
  )));
10747
- var REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo");
10781
+ var REACT_MEMO_TYPE = /* @__PURE__ */ (/* unused pure expression or super */ null && (Symbol.for("react.memo")));
10748
10782
  var REACT_LAZY_TYPE = /* @__PURE__ */ (/* unused pure expression or super */ null && (Symbol.for("react.lazy")));
10749
10783
  var REACT_OFFSCREEN_TYPE = /* @__PURE__ */ (/* unused pure expression or super */ null && (Symbol.for("react.offscreen")));
10750
10784
  var REACT_CLIENT_REFERENCE = /* @__PURE__ */ (/* unused pure expression or super */ null && (Symbol.for(
10751
10785
  "react.client.reference"
10752
10786
  )));
10753
- var ForwardRef = REACT_FORWARD_REF_TYPE;
10754
- var Memo = REACT_MEMO_TYPE;
10787
+ var ForwardRef = (/* unused pure expression or super */ null && (REACT_FORWARD_REF_TYPE));
10788
+ var Memo = (/* unused pure expression or super */ null && (REACT_MEMO_TYPE));
10755
10789
  function isValidElementType(type) {
10756
10790
  return typeof type === "string" || typeof type === "function" || type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_OFFSCREEN_TYPE || typeof type === "object" && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_CLIENT_REFERENCE || type.getModuleId !== void 0) ? true : false;
10757
10791
  }
@@ -11196,7 +11230,7 @@ function shallowEqual(objA, objB) {
11196
11230
  }
11197
11231
 
11198
11232
  // src/utils/hoistStatics.ts
11199
- var REACT_STATICS = {
11233
+ var REACT_STATICS = (/* unused pure expression or super */ null && ({
11200
11234
  childContextTypes: true,
11201
11235
  contextType: true,
11202
11236
  contextTypes: true,
@@ -11208,8 +11242,8 @@ var REACT_STATICS = {
11208
11242
  mixins: true,
11209
11243
  propTypes: true,
11210
11244
  type: true
11211
- };
11212
- var KNOWN_STATICS = {
11245
+ }));
11246
+ var KNOWN_STATICS = (/* unused pure expression or super */ null && ({
11213
11247
  name: true,
11214
11248
  length: true,
11215
11249
  prototype: true,
@@ -11217,26 +11251,26 @@ var KNOWN_STATICS = {
11217
11251
  callee: true,
11218
11252
  arguments: true,
11219
11253
  arity: true
11220
- };
11221
- var FORWARD_REF_STATICS = {
11254
+ }));
11255
+ var FORWARD_REF_STATICS = (/* unused pure expression or super */ null && ({
11222
11256
  $$typeof: true,
11223
11257
  render: true,
11224
11258
  defaultProps: true,
11225
11259
  displayName: true,
11226
11260
  propTypes: true
11227
- };
11228
- var MEMO_STATICS = {
11261
+ }));
11262
+ var MEMO_STATICS = (/* unused pure expression or super */ null && ({
11229
11263
  $$typeof: true,
11230
11264
  compare: true,
11231
11265
  defaultProps: true,
11232
11266
  displayName: true,
11233
11267
  propTypes: true,
11234
11268
  type: true
11235
- };
11236
- var TYPE_STATICS = {
11269
+ }));
11270
+ var TYPE_STATICS = (/* unused pure expression or super */ null && ({
11237
11271
  [ForwardRef]: FORWARD_REF_STATICS,
11238
11272
  [Memo]: MEMO_STATICS
11239
- };
11273
+ }));
11240
11274
  function getStatics(component) {
11241
11275
  if (isMemo(component)) {
11242
11276
  return MEMO_STATICS;
@@ -11370,7 +11404,7 @@ function strictEqual(a, b) {
11370
11404
  return a === b;
11371
11405
  }
11372
11406
  var hasWarnedAboutDeprecatedPureOption = false;
11373
- function connect(mapStateToProps, mapDispatchToProps, mergeProps, {
11407
+ function _connect(mapStateToProps, mapDispatchToProps, mergeProps, {
11374
11408
  // The `pure` option has been removed, so TS doesn't like us destructuring this to check its existence.
11375
11409
  // @ts-ignore
11376
11410
  pure,
@@ -11569,7 +11603,8 @@ ${latestSubscriptionCallbackError.current.stack}
11569
11603
  };
11570
11604
  return wrapWithConnect;
11571
11605
  }
11572
- var connect_default = (/* unused pure expression or super */ null && (connect));
11606
+ var connect = (/* unused pure expression or super */ null && (_connect));
11607
+ var legacy_connect = (/* unused pure expression or super */ null && (_connect));
11573
11608
 
11574
11609
  // src/components/Provider.tsx
11575
11610
  function Provider(providerProps) {
@@ -12037,7 +12072,18 @@ const setVisibility = createAsyncThunk('setVisibility', (args, {
12037
12072
  showContinueChat
12038
12073
  };
12039
12074
  }
12075
+ const visibility = api.store.get(StoreKey) || {};
12040
12076
  if (previousVisibility === calculatedVisibility) {
12077
+ api.store.set(StoreKey, {
12078
+ ...visibility,
12079
+ [layoutMode]: requestedVisibility,
12080
+ ...(typeof showPreChat !== 'undefined' ? {
12081
+ showPreChat
12082
+ } : {}),
12083
+ ...(typeof showContinueChat !== 'undefined' ? {
12084
+ showContinueChat
12085
+ } : {})
12086
+ });
12041
12087
  return {
12042
12088
  visibility: null,
12043
12089
  setInputFocus: args.setInputFocus,
@@ -12045,12 +12091,17 @@ const setVisibility = createAsyncThunk('setVisibility', (args, {
12045
12091
  showContinueChat
12046
12092
  };
12047
12093
  }
12048
- const visibility = api.store.get(StoreKey);
12049
12094
 
12050
12095
  // Store the user-requested visibility in order to reinitialize after refresh
12051
12096
  api.store.set(StoreKey, {
12052
- ...(visibility || {}),
12053
- [layoutMode]: requestedVisibility
12097
+ ...visibility,
12098
+ [layoutMode]: requestedVisibility,
12099
+ ...(typeof showPreChat !== 'undefined' ? {
12100
+ showPreChat
12101
+ } : {}),
12102
+ ...(typeof showContinueChat !== 'undefined' ? {
12103
+ showContinueChat
12104
+ } : {})
12054
12105
  });
12055
12106
  if (requestedVisibility) {
12056
12107
  eventBus.emit('ui.visible', requestedVisibility, {
@@ -12078,12 +12129,19 @@ const initializeVisibility = createAsyncThunk('initialize', async (_, {
12078
12129
  const {
12079
12130
  layoutMode
12080
12131
  } = selectConfig(getState());
12081
- const storedVisibility = api.store.get(StoreKey)?.[layoutMode] || visibilityStates.initialize;
12132
+ const storedVisibilitySettings = api.store.get(StoreKey) || {};
12133
+ const storedVisibilityValue = storedVisibilitySettings[layoutMode];
12134
+ const storedVisibility = isPersistedVisibilityState(storedVisibilityValue) ? storedVisibilityValue : visibilityStates.initialize;
12135
+ const storedShowPreChat = storedVisibilitySettings.showPreChat;
12136
+ const storedShowContinueChat = storedVisibilitySettings.showContinueChat;
12082
12137
  dispatch(setVisibility({
12083
- visibility: storedVisibility
12138
+ visibility: storedVisibility,
12139
+ showPreChat: typeof storedShowPreChat === 'boolean' ? storedShowPreChat : undefined,
12140
+ showContinueChat: typeof storedShowContinueChat === 'boolean' ? storedShowContinueChat : undefined
12084
12141
  }));
12085
12142
  return storedVisibility;
12086
12143
  });
12144
+ const isPersistedVisibilityState = value => value === visibilityStates.open || value === visibilityStates.minimized || value === visibilityStates.hidden;
12087
12145
  ;// ./src/javascripts/core/domains/app/actions.ts
12088
12146
 
12089
12147
 
@@ -15156,10 +15214,10 @@ const css_className = (...classes) => classes.flat().map(c => {
15156
15214
  return c;
15157
15215
  }).filter(c => typeof c === 'string').map(c => c?.split(' ')).flat().filter(c => c && c.length).map(c => {
15158
15216
  // This rule makes sure the CSS_NAME is not added yet
15159
- if (c && c.indexOf(CSS_NAME) > -1) {
15217
+ if (c && c.indexOf((/* inlined export .CSS_NAME */"cvco")) > -1) {
15160
15218
  return c;
15161
15219
  }
15162
- return [CSS_NAME, c].join('-');
15220
+ return [(/* inlined export .CSS_NAME */"cvco"), c].join('-');
15163
15221
  }).join(' ');
15164
15222
  ;// ./src/javascripts/core/ui/hooks/component-helper-hooks.ts
15165
15223
 
@@ -15485,7 +15543,7 @@ const useSeamlyIdleDetachCountdown = () => {
15485
15543
  return;
15486
15544
  }
15487
15545
  const newRemaining = remaining - 1;
15488
- if (newRemaining % screenReaderDebounceDelaySeconds === 0) {
15546
+ if (newRemaining % (/* inlined export .screenReaderDebounceDelaySeconds */10) === 0) {
15489
15547
  sendAssertiveIfOpen(`${t('idleDetachWarning.countdownText')} ${t('idleDetachWarning.countdownTimer', getTimeFromSeconds(newRemaining))}`);
15490
15548
  }
15491
15549
  dispatch(decrementIdleDetachCountdownCounter());
@@ -16830,12 +16888,12 @@ const TimeIndicator = ({
16830
16888
  /* harmony default export */ const time_indicator = (TimeIndicator);
16831
16889
  ;// ./node_modules/tabbable/dist/index.esm.js
16832
16890
  /*!
16833
- * tabbable 6.4.0
16891
+ * tabbable 6.5.0
16834
16892
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
16835
16893
  */
16836
16894
  // NOTE: separate `:not()` selectors has broader browser support than the newer
16837
16895
  // `:not([inert], [inert] *)` (Feb 2023)
16838
- var candidateSelectors = ['input:not([inert]):not([inert] *)', 'select:not([inert]):not([inert] *)', 'textarea:not([inert]):not([inert] *)', 'a[href]:not([inert]):not([inert] *)', 'button:not([inert]):not([inert] *)', '[tabindex]:not(slot):not([inert]):not([inert] *)', 'audio[controls]:not([inert]):not([inert] *)', 'video[controls]:not([inert]):not([inert] *)', '[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)', 'details>summary:first-of-type:not([inert]):not([inert] *)', 'details:not([inert]):not([inert] *)'];
16896
+ var candidateSelectors = ['input:not([inert]):not([inert] *)', 'select:not([inert]):not([inert] *)', 'textarea:not([inert]):not([inert] *)', 'a[href]:not([inert]):not([inert] *)', 'area[href]:not([inert]):not([inert] *)', 'button:not([inert]):not([inert] *)', '[tabindex]:not(slot):not([inert]):not([inert] *)', 'audio[controls]:not([inert]):not([inert] *)', 'video[controls]:not([inert]):not([inert] *)', '[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)', 'details>summary:first-of-type:not([inert]):not([inert] *)', 'details:not([inert]):not([inert] *)'];
16839
16897
  var candidateSelector = /* #__PURE__ */candidateSelectors.join(',');
16840
16898
  var NoElement = typeof Element === 'undefined';
16841
16899
  var index_esm_matches = NoElement ? function () {} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
@@ -17193,7 +17251,9 @@ var isHidden = function isHidden(node, _ref) {
17193
17251
  // (this is legacy behavior from a very long way back)
17194
17252
  // NOTE: we check this regardless of `displayCheck="none"` because this is a
17195
17253
  // _visibility_ check, not a _display_ check
17196
- if (getComputedStyle(node).visibility === 'hidden') {
17254
+ var _getComputedStyle = getComputedStyle(node),
17255
+ visibility = _getComputedStyle.visibility;
17256
+ if (visibility === 'hidden' || visibility === 'collapse') {
17197
17257
  return true;
17198
17258
  }
17199
17259
  var isDirectSummary = index_esm_matches.call(node, 'details>summary:first-of-type');
@@ -17421,7 +17481,7 @@ var isFocusable = function isFocusable(node, options) {
17421
17481
 
17422
17482
  ;// ./node_modules/focus-trap/dist/focus-trap.esm.js
17423
17483
  /*!
17424
- * focus-trap 7.8.0
17484
+ * focus-trap 8.2.2
17425
17485
  * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
17426
17486
  */
17427
17487
 
@@ -17645,6 +17705,7 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
17645
17705
  returnFocusOnDeactivate: true,
17646
17706
  escapeDeactivates: true,
17647
17707
  delayInitialFocus: true,
17708
+ delayReturnFocus: true,
17648
17709
  isolateSubtrees: false,
17649
17710
  isKeyForward: isKeyForward,
17650
17711
  isKeyBackward: isKeyBackward
@@ -17794,6 +17855,25 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
17794
17855
  }
17795
17856
  return node;
17796
17857
  };
17858
+
17859
+ /**
17860
+ * Gets the current activeElement. If it's a web-component and has open shadow-root
17861
+ * it will recursively search inside shadow roots for the "true" activeElement.
17862
+ *
17863
+ * @param {Document | ShadowRoot} el
17864
+ *
17865
+ * @returns {HTMLElement|null} The element that currently has the focus. `null` if a focused element isn't found.
17866
+ **/
17867
+ var _getActiveElement = function getActiveElement(el) {
17868
+ var activeElement = el.activeElement;
17869
+ if (!activeElement) {
17870
+ return null;
17871
+ }
17872
+ if (activeElement.shadowRoot && activeElement.shadowRoot.activeElement !== null) {
17873
+ return _getActiveElement(activeElement.shadowRoot);
17874
+ }
17875
+ return activeElement;
17876
+ };
17797
17877
  var getInitialFocusNode = function getInitialFocusNode() {
17798
17878
  var node = getNodeForOption('initialFocus', {
17799
17879
  hasFallback: true
@@ -17804,9 +17884,11 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
17804
17884
  return false;
17805
17885
  }
17806
17886
  if (node === undefined || node && !isFocusable(node, config.tabbableOptions)) {
17887
+ var activeElement = _getActiveElement(doc);
17888
+
17807
17889
  // option not specified nor focusable: use fallback options
17808
- if (findContainerIndex(doc.activeElement) >= 0) {
17809
- node = doc.activeElement;
17890
+ if (findContainerIndex(activeElement) >= 0) {
17891
+ node = activeElement;
17810
17892
  } else {
17811
17893
  var firstTabbableGroup = state.tabbableGroups[0];
17812
17894
  var firstTabbableNode = firstTabbableGroup && firstTabbableGroup.firstTabbableNode;
@@ -17918,25 +18000,6 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
17918
18000
  throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.");
17919
18001
  }
17920
18002
  };
17921
-
17922
- /**
17923
- * Gets the current activeElement. If it's a web-component and has open shadow-root
17924
- * it will recursively search inside shadow roots for the "true" activeElement.
17925
- *
17926
- * @param {Document | ShadowRoot} el
17927
- *
17928
- * @returns {HTMLElement} The element that currently has the focus
17929
- **/
17930
- var _getActiveElement = function getActiveElement(el) {
17931
- var activeElement = el.activeElement;
17932
- if (!activeElement) {
17933
- return;
17934
- }
17935
- if (activeElement.shadowRoot && activeElement.shadowRoot.activeElement !== null) {
17936
- return _getActiveElement(activeElement.shadowRoot);
17937
- }
17938
- return activeElement;
17939
- };
17940
18003
  var _tryFocus = function tryFocus(node) {
17941
18004
  if (node === false) {
17942
18005
  return;
@@ -18071,7 +18134,7 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
18071
18134
  var checkPointerDown = function checkPointerDown(e) {
18072
18135
  var target = getActualTarget(e);
18073
18136
  if (findContainerIndex(target, e) >= 0) {
18074
- // allow the click since it ocurred inside the trap
18137
+ // allow the click since it occurred inside the trap
18075
18138
  return;
18076
18139
  }
18077
18140
  if (valueOrHandler(config.clickOutsideDeactivates, e)) {
@@ -18254,6 +18317,13 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
18254
18317
  // EVENT LISTENERS
18255
18318
  //
18256
18319
 
18320
+ /**
18321
+ * Adds listeners to the document necessary for trapping focus and attempts to set focus
18322
+ * to the configured initial focus node. Does nothing if the trap isn't active.
18323
+ * @returns {Promise<void> | undefined} A promise resolved once the initial focus node has
18324
+ * been focused when `delayInitialFocus=true`; `undefined` when focus is set synchronously
18325
+ * or the trap isn't active.
18326
+ */
18257
18327
  var addListeners = function addListeners() {
18258
18328
  if (!state.active) {
18259
18329
  return;
@@ -18264,9 +18334,20 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
18264
18334
 
18265
18335
  // Delay ensures that the focused element doesn't capture the event
18266
18336
  // that caused the focus trap activation.
18267
- state.delayInitialFocusTimer = config.delayInitialFocus ? delay(function () {
18337
+ /** @type {Promise<void> | undefined} */
18338
+ var promise;
18339
+ if (config.delayInitialFocus) {
18340
+ // NOTE: Promise constructor callback is called synchronously, which is what we want
18341
+ // since we need to capture the timer ID immediately
18342
+ promise = new Promise(function (resolve) {
18343
+ state.delayInitialFocusTimer = delay(function () {
18344
+ _tryFocus(getInitialFocusNode());
18345
+ resolve();
18346
+ });
18347
+ });
18348
+ } else {
18268
18349
  _tryFocus(getInitialFocusNode());
18269
- }) : _tryFocus(getInitialFocusNode());
18350
+ }
18270
18351
  doc.addEventListener('focusin', checkFocusIn, true);
18271
18352
  doc.addEventListener('mousedown', checkPointerDown, {
18272
18353
  capture: true,
@@ -18285,7 +18366,7 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
18285
18366
  passive: false
18286
18367
  });
18287
18368
  doc.addEventListener('keydown', checkEscapeKey);
18288
- return trap;
18369
+ return promise;
18289
18370
  };
18290
18371
 
18291
18372
  /**
@@ -18373,17 +18454,27 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
18373
18454
  //
18374
18455
 
18375
18456
  var checkDomRemoval = function checkDomRemoval(mutations) {
18457
+ var focusedNode = state.mostRecentlyFocusedNode;
18458
+ if (!focusedNode) {
18459
+ return;
18460
+ }
18376
18461
  var isFocusedNodeRemoved = mutations.some(function (mutation) {
18377
18462
  var removedNodes = Array.from(mutation.removedNodes);
18378
18463
  return removedNodes.some(function (node) {
18379
- return node === state.mostRecentlyFocusedNode;
18464
+ return node === focusedNode || typeof node.contains === 'function' && node.contains(focusedNode);
18380
18465
  });
18381
18466
  });
18382
18467
 
18383
- // If the currently focused is removed then browsers will move focus to the
18468
+ // If the currently focused node is removed then browsers will move focus to the
18384
18469
  // <body> element. If this happens, try to move focus back into the trap.
18385
- if (isFocusedNodeRemoved) {
18386
- _tryFocus(getInitialFocusNode());
18470
+ if (isFocusedNodeRemoved && state.containers.some(function (container) {
18471
+ return container === null || container === void 0 ? void 0 : container.isConnected;
18472
+ })) {
18473
+ // Refresh tabbable state before resolving initial focus because
18474
+ // getInitialFocusNode() may fall back to the first tabbable node in the trap.
18475
+ updateTabbableNodes();
18476
+ var initialFocusNode = getInitialFocusNode();
18477
+ _tryFocus(initialFocusNode);
18387
18478
  }
18388
18479
  };
18389
18480
 
@@ -18443,17 +18534,32 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
18443
18534
  state.active = true;
18444
18535
  state.paused = false;
18445
18536
  state.nodeFocusedBeforeActivation = _getActiveElement(doc);
18446
- onActivate === null || onActivate === void 0 || onActivate();
18537
+ onActivate === null || onActivate === void 0 || onActivate({
18538
+ trap: trap
18539
+ });
18447
18540
  var finishActivation = function finishActivation() {
18448
18541
  if (checkCanFocusTrap) {
18449
18542
  updateTabbableNodes();
18450
18543
  }
18451
- addListeners();
18452
- updateObservedNodes();
18453
- if (config.isolateSubtrees) {
18544
+ var afterListeners = function afterListeners() {
18454
18545
  trap._setSubtreeIsolation(true);
18546
+ updateObservedNodes();
18547
+ onPostActivate === null || onPostActivate === void 0 || onPostActivate({
18548
+ trap: trap
18549
+ });
18550
+ };
18551
+
18552
+ // NOTE: wait for initial focus node to get focused (whether activation is fully,
18553
+ // partially, or not asynchronous) before we potentially isolate the subtrees
18554
+ // with aria-hidden while focus is still in some other subtree and not yet in
18555
+ // the trap, resulting in some browsers (e.g. Chrome) logging to the console that
18556
+ // they, "Blocked aria-hidden on an element because its descendant retained focus..."
18557
+ var listenersPromise = addListeners();
18558
+ if (listenersPromise) {
18559
+ listenersPromise.then(afterListeners);
18560
+ } else {
18561
+ afterListeners();
18455
18562
  }
18456
- onPostActivate === null || onPostActivate === void 0 || onPostActivate();
18457
18563
  };
18458
18564
  if (checkCanFocusTrap) {
18459
18565
  checkCanFocusTrap(state.containers.concat()).then(finishActivation, finishActivation);
@@ -18502,16 +18608,26 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
18502
18608
  var onDeactivate = getOption(options, 'onDeactivate');
18503
18609
  var onPostDeactivate = getOption(options, 'onPostDeactivate');
18504
18610
  var checkCanReturnFocus = getOption(options, 'checkCanReturnFocus');
18611
+ var delayReturnFocus = getOption(options, 'delayReturnFocus');
18505
18612
  var returnFocus = getOption(options, 'returnFocus', 'returnFocusOnDeactivate');
18506
- onDeactivate === null || onDeactivate === void 0 || onDeactivate();
18507
- var finishDeactivation = function finishDeactivation() {
18508
- delay(function () {
18509
- if (returnFocus) {
18510
- _tryFocus(getReturnFocusNode(state.nodeFocusedBeforeActivation));
18511
- }
18512
- onPostDeactivate === null || onPostDeactivate === void 0 || onPostDeactivate();
18613
+ onDeactivate === null || onDeactivate === void 0 || onDeactivate({
18614
+ trap: trap
18615
+ });
18616
+ var completeDeactivation = function completeDeactivation() {
18617
+ if (returnFocus) {
18618
+ _tryFocus(getReturnFocusNode(state.nodeFocusedBeforeActivation));
18619
+ }
18620
+ onPostDeactivate === null || onPostDeactivate === void 0 || onPostDeactivate({
18621
+ trap: trap
18513
18622
  });
18514
18623
  };
18624
+ var finishDeactivation = function finishDeactivation() {
18625
+ if (delayReturnFocus && returnFocus) {
18626
+ delay(completeDeactivation);
18627
+ } else {
18628
+ completeDeactivation();
18629
+ }
18630
+ };
18515
18631
  if (returnFocus && checkCanReturnFocus) {
18516
18632
  checkCanReturnFocus(getReturnFocusNode(state.nodeFocusedBeforeActivation)).then(finishDeactivation, finishDeactivation);
18517
18633
  return this;
@@ -18546,7 +18662,7 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
18546
18662
  }
18547
18663
  if (state.active) {
18548
18664
  updateTabbableNodes();
18549
- if (config.isolateSubtrees && !state.paused) {
18665
+ if (!state.paused) {
18550
18666
  trap._setSubtreeIsolation(true);
18551
18667
  }
18552
18668
  }
@@ -18569,20 +18685,44 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
18569
18685
  if (paused) {
18570
18686
  var onPause = getOption(options, 'onPause');
18571
18687
  var onPostPause = getOption(options, 'onPostPause');
18572
- onPause === null || onPause === void 0 || onPause();
18688
+ onPause === null || onPause === void 0 || onPause({
18689
+ trap: trap
18690
+ });
18573
18691
  removeListeners();
18574
- updateObservedNodes();
18575
18692
  trap._setSubtreeIsolation(false);
18576
- onPostPause === null || onPostPause === void 0 || onPostPause();
18693
+ updateObservedNodes();
18694
+ onPostPause === null || onPostPause === void 0 || onPostPause({
18695
+ trap: trap
18696
+ });
18577
18697
  } else {
18578
18698
  var onUnpause = getOption(options, 'onUnpause');
18579
18699
  var onPostUnpause = getOption(options, 'onPostUnpause');
18580
- onUnpause === null || onUnpause === void 0 || onUnpause();
18581
- trap._setSubtreeIsolation(true);
18582
- updateTabbableNodes();
18583
- addListeners();
18584
- updateObservedNodes();
18585
- onPostUnpause === null || onPostUnpause === void 0 || onPostUnpause();
18700
+ onUnpause === null || onUnpause === void 0 || onUnpause({
18701
+ trap: trap
18702
+ });
18703
+ var finishUnpause = function finishUnpause() {
18704
+ updateTabbableNodes();
18705
+ var afterListeners = function afterListeners() {
18706
+ trap._setSubtreeIsolation(true);
18707
+ updateObservedNodes();
18708
+ onPostUnpause === null || onPostUnpause === void 0 || onPostUnpause({
18709
+ trap: trap
18710
+ });
18711
+ };
18712
+
18713
+ // NOTE: wait for initial focus node to get focused (whether activation is fully,
18714
+ // partially, or not asynchronous) before we potentially isolate the subtrees
18715
+ // with aria-hidden while focus is still in some other subtree and not yet in
18716
+ // the trap, resulting in some browsers (e.g. Chrome) logging to the console that
18717
+ // they, "Blocked aria-hidden on an element because its descendant retained focus..."
18718
+ var listenersPromise = addListeners();
18719
+ if (listenersPromise) {
18720
+ listenersPromise.then(afterListeners);
18721
+ } else {
18722
+ afterListeners();
18723
+ }
18724
+ };
18725
+ finishUnpause();
18586
18726
  }
18587
18727
  return this;
18588
18728
  }
@@ -19336,7 +19476,7 @@ const SeamlyActivityMonitor = ({
19336
19476
  sendActive();
19337
19477
  stopCountdown();
19338
19478
  }
19339
- if (timeStamp - prevSendTimestamp.current > activitySendDelay) {
19479
+ if (timeStamp - prevSendTimestamp.current > (/* inlined export .activitySendDelay */15000)) {
19340
19480
  sendActive();
19341
19481
  }
19342
19482
  }, [sendAction, hasCountdown, isActive, stopCountdown, isMinimized]);
@@ -20101,7 +20241,7 @@ const SeamlyReadState = () => {
20101
20241
  const {
20102
20242
  sendPolite
20103
20243
  } = useLiveRegion();
20104
- const sendLive = (0,hooks_.useMemo)(() => debounce(sendPolite, unreadScreenReaderWait), [sendPolite]);
20244
+ const sendLive = (0,hooks_.useMemo)(() => debounce(sendPolite, (/* inlined export .unreadScreenReaderWait */2000)), [sendPolite]);
20105
20245
  const prevIsVisible = (0,hooks_.useRef)(null);
20106
20246
  const cancelSend = (0,hooks_.useRef)(null);
20107
20247
  (0,hooks_.useEffect)(() => {
@@ -20402,7 +20542,7 @@ function useCharacterLimit(controlName) {
20402
20542
  hasLimit,
20403
20543
  limit
20404
20544
  } = useEntryTextLimit();
20405
- const debouncedSendAssertive = (0,hooks_.useMemo)(() => debounce(sendAssertive, maxCharacterSrDebounceDelay), [sendAssertive]);
20545
+ const debouncedSendAssertive = (0,hooks_.useMemo)(() => debounce(sendAssertive, (/* inlined export .maxCharacterSrDebounceDelay */300)), [sendAssertive]);
20406
20546
  const validateLimit = (0,hooks_.useMemo)(() => {
20407
20547
  return debounce((_reachedCharacterWarning, _remainingChars) => {
20408
20548
  if (_reachedCharacterWarning) {
@@ -20410,13 +20550,13 @@ function useCharacterLimit(controlName) {
20410
20550
  limit: _remainingChars
20411
20551
  }));
20412
20552
  }
20413
- }, maxCharacterSrDebounceDelay);
20553
+ }, (/* inlined export .maxCharacterSrDebounceDelay */300));
20414
20554
  }, [debouncedSendAssertive, t]);
20415
20555
  const [{
20416
20556
  value
20417
20557
  }] = useFormControl(controlName);
20418
20558
  const remainingChars = typeof limit === 'number' && hasLimit && value ? limit - value.length : limit;
20419
- const reachedCharacterWarning = hasLimit && typeof remainingChars == 'number' ? remainingChars <= maxCharacterWarningLimit : false;
20559
+ const reachedCharacterWarning = hasLimit && typeof remainingChars == 'number' ? remainingChars <= (/* inlined export .maxCharacterWarningLimit */50) : false;
20420
20560
  const reachedCharacterLimit = hasLimit && typeof remainingChars === 'number' ? remainingChars < 0 : false;
20421
20561
  (0,hooks_.useEffect)(() => {
20422
20562
  validateLimit(reachedCharacterWarning, remainingChars);
@@ -20824,7 +20964,7 @@ const transitionStartStates = {
20824
20964
  const InOutTransition = ({
20825
20965
  children,
20826
20966
  isActive,
20827
- timeout = defaultTransitionTimeMs,
20967
+ timeout = (/* inlined export .defaultTransitionTimeMs */300),
20828
20968
  transitionStartState = transitionStartStates.notRendered,
20829
20969
  onInTransitionComplete = () => {},
20830
20970
  onOutTransitionComplete = () => {},
@@ -21424,9 +21564,12 @@ const TranslationOptions = ({
21424
21564
  /* harmony default export */ const translation_options = (TranslationOptions);
21425
21565
  ;// ./src/javascripts/core/ui/hooks/use-click-outside.ts
21426
21566
 
21427
- const useClickOutside = callback => {
21567
+ const useClickOutside = (callback, enabled = true) => {
21428
21568
  const ref = (0,hooks_.useRef)(null);
21429
21569
  (0,hooks_.useEffect)(() => {
21570
+ if (!enabled) {
21571
+ return undefined;
21572
+ }
21430
21573
  const handler = el => {
21431
21574
  if (ref.current && el.target instanceof HTMLElement && !ref.current.contains(el.target)) {
21432
21575
  el.preventDefault();
@@ -21440,7 +21583,7 @@ const useClickOutside = callback => {
21440
21583
  document.removeEventListener('click', handler, true);
21441
21584
  document.removeEventListener('touchstart', handler, true);
21442
21585
  };
21443
- }, [callback, ref]);
21586
+ }, [callback, enabled, ref]);
21444
21587
  return ref;
21445
21588
  };
21446
21589
  /* harmony default export */ const use_click_outside = (useClickOutside);
@@ -21461,6 +21604,7 @@ const OptionsFrame = ({
21461
21604
  descriptionId,
21462
21605
  cancelButtonText,
21463
21606
  cancelButtonRef,
21607
+ clickOutsideEnabled = true,
21464
21608
  disableButtonFocusing,
21465
21609
  position = {
21466
21610
  horizontal: 'left',
@@ -21488,7 +21632,7 @@ const OptionsFrame = ({
21488
21632
  }
21489
21633
  closePanel();
21490
21634
  }, [closePanel, onCancel]);
21491
- const container = use_click_outside(onCancelHandler);
21635
+ const container = use_click_outside(onCancelHandler, clickOutsideEnabled);
21492
21636
  (0,hooks_.useEffect)(() => {
21493
21637
  focusElement(container.current);
21494
21638
  }, [container]);
@@ -21544,6 +21688,7 @@ const OptionsFrame = ({
21544
21688
 
21545
21689
 
21546
21690
  function TranslationsOptionsDialog({
21691
+ clickOutsideEnabled,
21547
21692
  onClose,
21548
21693
  position
21549
21694
  }) {
@@ -21558,6 +21703,7 @@ function TranslationsOptionsDialog({
21558
21703
  description: t('translations.menu.description'),
21559
21704
  descriptionId: descriptionId,
21560
21705
  position: position,
21706
+ clickOutsideEnabled: clickOutsideEnabled,
21561
21707
  disableButtonFocusing: true,
21562
21708
  children: /*#__PURE__*/(0,jsx_runtime_namespaceObject.jsx)(translation_options, {
21563
21709
  describedById: descriptionId,
@@ -21598,7 +21744,7 @@ function TranslationsOptionsButton({
21598
21744
  setMenuIsOpen(false);
21599
21745
  };
21600
21746
  const handleToggleClick = () => {
21601
- setMenuIsOpen(!menuIsOpen);
21747
+ setMenuIsOpen(isOpen => !isOpen);
21602
21748
  };
21603
21749
  const handleToggleKeyDown = e => {
21604
21750
  if (getKey(e) === keyNames.ArrowDown) {
@@ -21616,6 +21762,7 @@ function TranslationsOptionsButton({
21616
21762
  className: css_className('options__dialog'),
21617
21763
  role: "dialog",
21618
21764
  children: /*#__PURE__*/(0,jsx_runtime_namespaceObject.jsx)(options_dialog, {
21765
+ clickOutsideEnabled: menuIsOpen,
21619
21766
  onClose: handleDialogClose,
21620
21767
  position: position
21621
21768
  })
@@ -22688,7 +22835,7 @@ const useSeamlyTyping = () => {
22688
22835
  } else if (typingPeekahead && typingPeekahead.enabled) {
22689
22836
  sendTypingState(true, e.target.value);
22690
22837
  }
22691
- }, typingTimeout);
22838
+ }, (/* inlined export .typingTimeout */2000));
22692
22839
  }
22693
22840
  if (typingTimerId.current) clearTimeout(typingTimerId.current);
22694
22841
  if (sendEndTypingTimerId.current) clearTimeout(sendEndTypingTimerId.current);
@@ -22697,7 +22844,7 @@ const useSeamlyTyping = () => {
22697
22844
  }, 300);
22698
22845
  sendEndTypingTimerId.current = setTimeout(() => {
22699
22846
  sendTypingState(false, e.target.value);
22700
- }, typingTimeout);
22847
+ }, (/* inlined export .typingTimeout */2000));
22701
22848
  };
22702
22849
  };
22703
22850
  const useSeamlyEntry = () => {
@@ -24632,20 +24779,18 @@ function appStore() {
24632
24779
  };
24633
24780
  }
24634
24781
  ;// ./node_modules/js-cookie/dist/js.cookie.mjs
24635
- /*! js-cookie v3.0.5 | MIT */
24636
- /* eslint-disable no-var */
24782
+ /*! js-cookie v3.0.8 | MIT */
24637
24783
  function js_cookie_assign (target) {
24638
24784
  for (var i = 1; i < arguments.length; i++) {
24639
24785
  var source = arguments[i];
24640
24786
  for (var key in source) {
24787
+ if (key === '__proto__') continue
24641
24788
  target[key] = source[key];
24642
24789
  }
24643
24790
  }
24644
24791
  return target
24645
24792
  }
24646
- /* eslint-enable no-var */
24647
24793
 
24648
- /* eslint-disable no-var */
24649
24794
  var defaultConverter = {
24650
24795
  read: function (value) {
24651
24796
  if (value[0] === '"') {
@@ -24660,12 +24805,9 @@ var defaultConverter = {
24660
24805
  )
24661
24806
  }
24662
24807
  };
24663
- /* eslint-enable no-var */
24664
24808
 
24665
- /* eslint-disable no-var */
24666
-
24667
- function init (converter, defaultAttributes) {
24668
- function set (name, value, attributes) {
24809
+ function init(converter, defaultAttributes) {
24810
+ function set(name, value, attributes) {
24669
24811
  if (typeof document === 'undefined') {
24670
24812
  return
24671
24813
  }
@@ -24709,7 +24851,7 @@ function init (converter, defaultAttributes) {
24709
24851
  name + '=' + converter.write(value, name) + stringifiedAttributes)
24710
24852
  }
24711
24853
 
24712
- function get (name) {
24854
+ function get(name) {
24713
24855
  if (typeof document === 'undefined' || (arguments.length && !name)) {
24714
24856
  return
24715
24857
  }
@@ -24724,12 +24866,13 @@ function init (converter, defaultAttributes) {
24724
24866
 
24725
24867
  try {
24726
24868
  var found = decodeURIComponent(parts[0]);
24727
- jar[found] = converter.read(value, found);
24728
-
24869
+ if (!(found in jar)) jar[found] = converter.read(value, found);
24729
24870
  if (name === found) {
24730
24871
  break
24731
24872
  }
24732
- } catch (e) {}
24873
+ } catch (_e) {
24874
+ // Do nothing...
24875
+ }
24733
24876
  }
24734
24877
 
24735
24878
  return name ? jar[name] : jar
@@ -24737,8 +24880,8 @@ function init (converter, defaultAttributes) {
24737
24880
 
24738
24881
  return Object.create(
24739
24882
  {
24740
- set,
24741
- get,
24883
+ set: set,
24884
+ get: get,
24742
24885
  remove: function (name, attributes) {
24743
24886
  set(
24744
24887
  name,
@@ -24763,7 +24906,6 @@ function init (converter, defaultAttributes) {
24763
24906
  }
24764
24907
 
24765
24908
  var api = init(defaultConverter, { path: '/' });
24766
- /* eslint-enable no-var */
24767
24909
 
24768
24910
 
24769
24911