"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[1],{311:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createEntrypoint=function(t,e,n){var u;function l(u){var l,f,s;try{console.log("hydrating",t,u);const c=document.getElementById(`${t}-${u}-hydration-data`),a=null!==(l=window.__outsmartly_state_hook_v1)&&void 0!==l?l:{};window.__orly__&&window.__orly__({event:"HYDRATE",payload:{time:window.performance.now(),featureId:t,sectionId:u}});const p=Object.assign(Object.assign(Object.assign({},null!==(f=window.__outsmartly_previews__&&window.__outsmartly_previews__[t])&&void 0!==f?f:JSON.parse(null!==(s=null==c?void 0:c.textContent)&&void 0!==s?s:"{}")),a),{apps:(null==n?void 0:n.length)?(0,_.buildAppState)(n,void 0):{}}),{useSharedState:d}=p;(0,r.hydrate)((0,o.jsx)(i.PreactContext.Provider,{value:{useSharedState:d},children:(0,o.jsx)(e,Object.assign({},p))}),document.getElementById(`${t}-${u}`))}catch(t){console.error("hydration error",t)}}window.__outsmartly_previews__&&(window.__outsmartly_previews_hydrate__=null!==(u=window.__outsmartly_previews_hydrate__)&&void 0!==u?u:{},window.__outsmartly_previews_hydrate__[t]=l);try{window.__hydration_handler__[t].push=l,function(){for(;window.__hydration_handler__[t].length;){var e=window.__hydration_handler__[t].shift();e&&l(e)}}()}catch(t){console.error(t)}};const o=n(0),r=n(4),i=n(136),_=n(228)},310:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createFeature=function(t,e){return"undefined"==typeof window?(0,o.jsx)("div",{id:e,children:t}):t};const o=n(0)},312:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createStateEntrypoint=function(t){var e,n;const o=document.getElementById("global-state"),r=t(null!==(e=window.__outsmartly_previews_global_state_)&&void 0!==e?e:JSON.parse(null!==(n=null==o?void 0:o.textContent)&&void 0!==n?n:"{}"));window.__outsmartly_state_hook_v1=r}},2:function(t,e,n){var o=this&&this.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(e,n);r&&!("get"in r?!e.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,o,r)}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),r=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||o(e,t,n)},i=this&&this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function _(t){try{l(o.next(t))}catch(t){i(t)}}function u(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(_,u)}l((o=o.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.buildAppState=e.useBento=e.createStateEntrypoint=e.createEntrypoint=e.createFeature=e.BentoUI=void 0,e.getAssignment=function(t){return"undefined"!=typeof location&&location.hostname.includes("bento")?new URL(location.href).searchParams.get(`__orly_${t}`):"undefined"!=typeof window&&window.__APP_CONFIG__&&"function"==typeof window.__APP_CONFIG__.getAssignedVariation?window.__APP_CONFIG__.getAssignedVariation(t):null},e.logOutcome=function(t){"undefined"!=typeof window&&window.__APP_CONFIG__&&"function"==typeof window.__APP_CONFIG__.outcome&&window.__APP_CONFIG__.outcome(t)},e.getLazyState=function(t,e){return i(this,void 0,void 0,(function*(){try{const n=yield fetch("/bento-lazy-state",{method:"POST",body:JSON.stringify({key:t,params:e})});return yield n.json()}catch(t){return void console.error(t)}}))};var _=n(309);Object.defineProperty(e,"BentoUI",{enumerable:!0,get:function(){return _.BentoUI}});var u=n(310);Object.defineProperty(e,"createFeature",{enumerable:!0,get:function(){return u.createFeature}});var l=n(311);Object.defineProperty(e,"createEntrypoint",{enumerable:!0,get:function(){return l.createEntrypoint}});var f=n(312);Object.defineProperty(e,"createStateEntrypoint",{enumerable:!0,get:function(){return f.createStateEntrypoint}});var s=n(136);Object.defineProperty(e,"useBento",{enumerable:!0,get:function(){return s.useBento}});var c=n(228);Object.defineProperty(e,"buildAppState",{enumerable:!0,get:function(){return c.buildAppState}}),r(n(313),e)},313:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},309:(t,e)=>{var n;Object.defineProperty(e,"__esModule",{value:!0}),e.BentoUI=void 0,function(t){t.globalState=function(t){return t},t.sharedState=function(t){return e=>{const n=t(e);return{useSharedState:()=>n}}},t.variation=function(t){return t},t.feature=function(t){return t},t.route=function(t){return t},t.lazyState=function(t){return t},t.lazyResolver=function(t){return t}}(n||(e.BentoUI=n={}))},136:function(t,e,n){var o=this&&this.__rest||function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(t);r");const{useSharedState:n}=t,r=o(t,["useSharedState"]),_=n();return Object.assign({useSharedStateStore:_},r)};const r=n(4),i=n(1);e.PreactContext=(0,r.createContext)(null)},4:(t,e,n)=>{n.r(e),n.d(e,{Component:()=>O,Fragment:()=>x,cloneElement:()=>Y,createContext:()=>K,createElement:()=>S,createRef:()=>P,h:()=>S,hydrate:()=>Z,isValidElement:()=>_,options:()=>r,render:()=>J,toChildArray:()=>T});var o,r,i,_,u,l,f,s,c,a,p,d,v,h={},y=[],m=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,b=Array.isArray;function w(t,e){for(var n in e)t[n]=e[n];return t}function g(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function S(t,e,n){var r,i,_,u={};for(_ in e)"key"==_?r=e[_]:"ref"==_?i=e[_]:u[_]=e[_];if(arguments.length>2&&(u.children=arguments.length>3?o.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(_ in t.defaultProps)void 0===u[_]&&(u[_]=t.defaultProps[_]);return k(t,u,r,i,null)}function k(t,e,n,o,_){var u={type:t,props:e,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==_?++i:_,__i:-1,__u:0};return null==_&&null!=r.vnode&&r.vnode(u),u}function P(){return{current:null}}function x(t){return t.children}function O(t,e){this.props=t,this.context=e}function C(t,e){if(null==e)return t.__?C(t.__,t.__i+1):null;for(var n;ee&&u.sort(s),t=u.shift(),e=u.length,j(t)}finally{u.length=A.__r=0}}function U(t,e,n,o,r,i,_,u,l,f,s){var c,a,p,d,v,m,b,w=o&&o.__k||y,g=e.length;for(l=F(n,e,w,l,g),c=0;c0?_=t.__k[i]=k(_.type,_.props,_.key,_.ref?_.ref:null,_.__v):t.__k[i]=_,l=i+a,_.__=t,_.__b=t.__b+1,u=null,-1!=(f=_.__i=H(_,n,l,c))&&(c--,(u=n[f])&&(u.__u|=2)),null==u||null==u.__v?(-1==f&&(r>s?a--:rl?a--:a++,_.__u|=4))):t.__k[i]=null;if(c)for(i=0;i(s?1:0))for(r=n-1,i=n+1;r>=0||i=0?r--:i++])&&!(2&f.__u)&&u==f.key&&l==f.type)return _;return-1}function $(t,e,n){"-"==e[0]?t.setProperty(e,null==n?"":n):t[e]=null==n?"":"number"!=typeof n||m.test(e)?n:n+"px"}function M(t,e,n,o,r){var i,_;t:if("style"==e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof o&&(t.style.cssText=o=""),o)for(e in o)n&&e in n||$(t.style,e,"");if(n)for(e in n)o&&n[e]==o[e]||$(t.style,e,n[e])}else if("o"==e[0]&&"n"==e[1])i=e!=(e=e.replace(c,"$1")),_=e.toLowerCase(),e=_ in t||"onFocusOut"==e||"onFocusIn"==e?_.slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=n,n?o?n.u=o.u:(n.u=a,t.addEventListener(e,i?d:p,i)):t.removeEventListener(e,i?d:p,i);else{if("http://www.w3.org/2000/svg"==r)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=e&&"height"!=e&&"href"!=e&&"list"!=e&&"form"!=e&&"tabIndex"!=e&&"download"!=e&&"rowSpan"!=e&&"colSpan"!=e&&"role"!=e&&"popover"!=e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null==n||!1===n&&"-"!=e[4]?t.removeAttribute(e):t.setAttribute(e,"popover"==e&&1==n?"":n))}}function B(t){return function(e){if(this.l){var n=this.l[e.type+t];if(null==e.t)e.t=a++;else if(e.t0?t:b(t)?t.map(L):w({},t)}function V(t,e,n,i,_,u,l,f,s){var c,a,p,d,v,y,m,w=n.props||h,S=e.props,k=e.type;if("svg"==k?_="http://www.w3.org/2000/svg":"math"==k?_="http://www.w3.org/1998/Math/MathML":_||(_="http://www.w3.org/1999/xhtml"),null!=u)for(c=0;c2&&(l.children=arguments.length>3?o.call(arguments,2):n),k(t.type,l,r||t.key,i||t.ref,null)}function K(t){function e(t){var n,o;return this.getChildContext||(n=new Set,(o={})[e.__c]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(t){this.props.value!=t.value&&n.forEach((function(t){t.__e=!0,N(t)}))},this.sub=function(t){n.add(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){n&&n.delete(t),e&&e.call(t)}}),t.children}return e.__c="__cC"+v++,e.__=t,e.Provider=e.__l=(e.Consumer=function(t,e){return t.children(e)}).contextType=e,e}o=y.slice,r={__e:function(t,e,n,o){for(var r,i,_;e=e.__;)if((r=e.__c)&&!r.__)try{if((i=r.constructor)&&null!=i.getDerivedStateFromError&&(r.setState(i.getDerivedStateFromError(t)),_=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(t,o||{}),_=r.__d),_)return r.__E=r}catch(e){t=e}throw t}},i=0,_=function(t){return null!=t&&void 0===t.constructor},O.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=w({},this.state),"function"==typeof t&&(t=t(w({},n),this.props)),t&&w(n,t),null!=t&&this.__v&&(e&&this._sb.push(e),N(this))},O.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),N(this))},O.prototype.render=x,u=[],f="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,s=function(t,e){return t.__v.__b-e.__v.__b},A.__r=0,c=/(PointerCapture)$|Capture$/i,a=0,p=B(!1),d=B(!0),v=0},1:(t,e,n)=>{n.r(e),n.d(e,{useCallback:()=>x,useContext:()=>O,useDebugValue:()=>C,useEffect:()=>w,useErrorBoundary:()=>j,useId:()=>E,useImperativeHandle:()=>k,useLayoutEffect:()=>g,useMemo:()=>P,useReducer:()=>b,useRef:()=>S,useState:()=>m});var o,r,i,_,u=n(4),l=0,f=[],s=u.options,c=s.__b,a=s.__r,p=s.diffed,d=s.__c,v=s.unmount,h=s.__;function y(t,e){s.__h&&s.__h(r,t,l||e),l=0;var n=r.__H||(r.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function m(t){return l=1,b(H,t)}function b(t,e,n){var i=y(o++,2);if(i.t=t,!i.__c&&(i.__=[n?n(e):H(void 0,e),function(t){var e=i.__N?i.__N[0]:i.__[0],n=i.t(e,t);e!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],i.__c=r,!r.__f)){var _=function(t,e,n){if(!i.__c.__H)return!0;var o=i.__c.__H.__.filter((function(t){return t.__c}));if(o.every((function(t){return!t.__N})))return!u||u.call(this,t,e,n);var r=i.__c.props!==t;return o.some((function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(r=!0)}})),u&&u.call(this,t,e,n)||r};r.__f=!0;var u=r.shouldComponentUpdate,l=r.componentWillUpdate;r.componentWillUpdate=function(t,e,n){if(this.__e){var o=u;u=void 0,_(t,e,n),u=o}l&&l.call(this,t,e,n)},r.shouldComponentUpdate=_}return i.__N||i.__}function w(t,e){var n=y(o++,3);!s.__s&&T(n.__H,e)&&(n.__=t,n.u=e,r.__H.__h.push(n))}function g(t,e){var n=y(o++,4);!s.__s&&T(n.__H,e)&&(n.__=t,n.u=e,r.__h.push(n))}function S(t){return l=5,P((function(){return{current:t}}),[])}function k(t,e,n){l=6,g((function(){if("function"==typeof t){var n=t(e());return function(){t(null),n&&"function"==typeof n&&n()}}if(t)return t.current=e(),function(){return t.current=null}}),null==n?n:n.concat(t))}function P(t,e){var n=y(o++,7);return T(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}function x(t,e){return l=8,P((function(){return t}),e)}function O(t){var e=r.context[t.__c],n=y(o++,9);return n.c=t,e?(null==n.__&&(n.__=!0,e.sub(r)),e.props.value):t.__}function C(t,e){s.useDebugValue&&s.useDebugValue(e?e(t):t)}function j(t){var e=y(o++,10),n=m();return e.__=t,r.componentDidCatch||(r.componentDidCatch=function(t,o){e.__&&e.__(t,o),n[1](t)}),[n[0],function(){n[1](void 0)}]}function E(){var t=y(o++,11);if(!t.__){for(var e=r.__v;null!==e&&!e.__m&&null!==e.__;)e=e.__;var n=e.__m||(e.__m=[0,0]);t.__="P"+n[0]+"-"+n[1]++}return t.__}function N(){for(var t;t=f.shift();){var e=t.__H;if(t.__P&&e)try{e.__h.some(F),e.__h.some(I),e.__h=[]}catch(n){e.__h=[],s.__e(n,t.__v)}}}s.__b=function(t){r=null,c&&c(t)},s.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),h&&h(t,e)},s.__r=function(t){a&&a(t),o=0;var e=(r=t.__c).__H;e&&(i===r?(e.__h=[],r.__h=[],e.__.some((function(t){t.__N&&(t.__=t.__N),t.u=t.__N=void 0}))):(e.__h.some(F),e.__h.some(I),e.__h=[],o=0)),i=r},s.diffed=function(t){p&&p(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==f.push(e)&&_===s.requestAnimationFrame||((_=s.requestAnimationFrame)||U)(N)),e.__H.__.some((function(t){t.u&&(t.__H=t.u),t.u=void 0}))),i=r=null},s.__c=function(t,e){e.some((function(t){try{t.__h.some(F),t.__h=t.__h.filter((function(t){return!t.__||I(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],s.__e(n,t.__v)}})),d&&d(t,e)},s.unmount=function(t){v&&v(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.some((function(t){try{F(t)}catch(t){e=t}})),n.__H=void 0,e&&s.__e(e,n.__v))};var A="function"==typeof requestAnimationFrame;function U(t){var e,n=function(){clearTimeout(o),A&&cancelAnimationFrame(e),setTimeout(t)},o=setTimeout(n,35);A&&(e=requestAnimationFrame(n))}function F(t){var e=r,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),r=e}function I(t){var e=r;t.__c=t.__(),r=e}function T(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function H(t,e){return"function"==typeof e?e(t):e}},0:(t,e,n)=>{n.r(e),n.d(e,{Fragment:()=>o.Fragment,jsx:()=>f,jsxAttr:()=>p,jsxDEV:()=>f,jsxEscape:()=>d,jsxTemplate:()=>s,jsxs:()=>f});var o=n(4),r=/["&<]/;function i(t){if(0===t.length||!1===r.test(t))return t;for(var e=0,n=0,o="",i="";n{n.r(e),n.d(e,{appHook:()=>R,buildAppState:()=>W});var o=n(4),r=n(1),i=Symbol.for("preact-signals");function _(){if(c>1)c--;else{var t,e=!1;for(function(){var t=v;for(v=void 0;void 0!==t;)t.S.v===t.v&&(t.S.i=t.i),t=t.o}();void 0!==s;){var n=s;for(s=void 0,a++;void 0!==n;){var o=n.u;if(n.u=void 0,n.f&=-3,!(8&n.f)&&w(n))try{n.c()}catch(n){e||(t=n,e=!0)}n=o}}if(a=0,c--,e)throw t}}var u=void 0;function l(t){var e=u;u=void 0;try{return t()}finally{u=e}}var f,s=void 0,c=0,a=0,p=0,d=0,v=void 0,h=0;function y(t){if(void 0!==u){var e=t.n;if(void 0===e||e.t!==u)return e={i:0,S:t,p:u.s,n:void 0,t:u,e:void 0,x:void 0,r:e},void 0!==u.s&&(u.s.n=e),u.s=e,t.n=e,32&u.f&&t.S(e),e;if(-1===e.i)return e.i=0,void 0!==e.n&&(e.n.p=e.p,void 0!==e.p&&(e.p.n=e.n),e.p=u.s,e.n=void 0,u.s.n=e,u.s=e),e}}function m(t,e){this.v=t,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=null==e?void 0:e.watched,this.Z=null==e?void 0:e.unwatched,this.name=null==e?void 0:e.name}function b(t,e){return new m(t,e)}function w(t){for(var e=t.s;void 0!==e;e=e.n)if(e.S.i!==e.i||!e.S.h()||e.S.i!==e.i)return!0;return!1}function g(t){for(var e=t.s;void 0!==e;e=e.n){var n=e.S.n;if(void 0!==n&&(e.r=n),e.S.n=e,e.i=-1,void 0===e.n){t.s=e;break}}}function S(t){for(var e=t.s,n=void 0;void 0!==e;){var o=e.p;-1===e.i?(e.S.U(e),void 0!==o&&(o.n=e.n),void 0!==e.n&&(e.n.p=o)):n=e,e.S.n=e.r,void 0!==e.r&&(e.r=void 0),e=o}t.s=n}function k(t,e){m.call(this,void 0),this.x=t,this.s=void 0,this.g=h-1,this.f=4,this.W=null==e?void 0:e.watched,this.Z=null==e?void 0:e.unwatched,this.name=null==e?void 0:e.name}function P(t,e){return new k(t,e)}function x(t){var e=t.m;if(t.m=void 0,"function"==typeof e){c++;var n=u;u=void 0;try{e()}catch(e){throw t.f&=-2,t.f|=8,O(t),e}finally{u=n,_()}}}function O(t){for(var e=t.s;void 0!==e;e=e.n)e.S.U(e);t.x=void 0,t.s=void 0,x(t)}function C(t){if(u!==this)throw new Error("Out-of-order effect");S(this),u=t,this.f&=-2,8&this.f&&O(this),_()}function j(t,e){this.x=t,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=null==e?void 0:e.name,f&&f.push(this)}function E(t,e){var n=new j(t,e);try{n.c()}catch(t){throw n.d(),t}var o=n.d.bind(n);return o[Symbol.dispose]=o,o}m.prototype.brand=i,m.prototype.h=function(){return!0},m.prototype.S=function(t){var e=this,n=this.t;n!==t&&void 0===t.e&&(t.x=n,this.t=t,void 0!==n?n.e=t:l((function(){var t;null==(t=e.W)||t.call(e)})))},m.prototype.U=function(t){var e=this;if(void 0!==this.t){var n=t.e,o=t.x;void 0!==n&&(n.x=o,t.e=void 0),void 0!==o&&(o.e=n,t.x=void 0),t===this.t&&(this.t=o,void 0===o&&l((function(){var t;null==(t=e.Z)||t.call(e)})))}},m.prototype.subscribe=function(t){var e=this;return E((function(){var n=e.value,o=u;u=void 0;try{t(n)}finally{u=o}}),{name:"sub"})},m.prototype.valueOf=function(){return this.value},m.prototype.toString=function(){return this.value+""},m.prototype.toJSON=function(){return this.value},m.prototype.peek=function(){var t=u;u=void 0;try{return this.value}finally{u=t}},Object.defineProperty(m.prototype,"value",{get:function(){var t=y(this);return void 0!==t&&(t.i=this.i),this.v},set:function(t){if(t!==this.v){if(a>100)throw new Error("Cycle detected");!function(t){0!==c&&0===a&&t.l!==d&&(t.l=d,v={S:t,v:t.v,i:t.i,o:v})}(this),this.v=t,this.i++,h++,c++;try{for(var e=this.t;void 0!==e;e=e.x)e.t.N()}finally{_()}}}}),k.prototype=new m,k.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===h)return!0;if(this.g=h,this.f|=1,this.i>0&&!w(this))return this.f&=-2,!0;var t=u;try{g(this),u=this;var e=this.x();(16&this.f||this.v!==e||0===this.i)&&(this.v=e,this.f&=-17,this.i++)}catch(t){this.v=t,this.f|=16,this.i++}return u=t,S(this),this.f&=-2,!0},k.prototype.S=function(t){if(void 0===this.t){this.f|=36;for(var e=this.s;void 0!==e;e=e.n)e.S.S(e)}m.prototype.S.call(this,t)},k.prototype.U=function(t){if(void 0!==this.t&&(m.prototype.U.call(this,t),void 0===this.t)){this.f&=-33;for(var e=this.s;void 0!==e;e=e.n)e.S.U(e)}},k.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var t=this.t;void 0!==t;t=t.x)t.t.N()}},Object.defineProperty(k.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var t=y(this);if(this.h(),void 0!==t&&(t.i=this.i),16&this.f)throw this.v;return this.v}}),j.prototype.c=function(){var t=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var e=this.x();"function"==typeof e&&(this.m=e)}finally{t()}},j.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,x(this),g(this),c++;var t=u;return u=this,C.bind(this,t)},j.prototype.N=function(){2&this.f||(this.f|=2,this.u=s,s=this)},j.prototype.d=function(){this.f|=8,1&this.f||O(this)},j.prototype.dispose=function(){this.d()};var N,A,U="undefined"!=typeof window&&!!window.__PREACT_SIGNALS_DEVTOOLS__,F=[];function I(t,e){o.options[t]=e.bind(null,o.options[t]||function(){})}function T(t){if(A){var e=A;A=void 0,e()}A=t&&t.S()}function H(t){var e=this,n=t.data,i=function(t){return(0,r.useMemo)((function(){return b(t,undefined)}),[])}(n);i.value=n;var _=(0,r.useMemo)((function(){for(var t=e,n=e.__v;n=n.__;)if(n.__c){n.__c.__$f|=4;break}var r=P((function(){var t=i.value.value;return 0===t?0:!0===t?"":t||""})),_=P((function(){return!Array.isArray(r.value)&&!(0,o.isValidElement)(r.value)})),u=E((function(){if(this.N=D,_.value){var e=r.value;t.__v&&t.__v.__e&&3===t.__v.__e.nodeType&&(t.__v.__e.data=e)}})),l=e.__$u.d;return e.__$u.d=function(){u(),l.call(this)},[_,r]}),[]),u=_[0],l=_[1];return u.value?l.peek():l.value}function $(t,e,n,o){var r=e in t&&void 0===t.ownerSVGElement,i=b(n),_=n.peek();return{o:function(t,e){i.value=t,_=t.peek()},d:E((function(){this.N=D;var n=i.value.value;_!==n?(_=void 0,r?t[e]=n:null==n||!1===n&&"-"!==e[4]?t.removeAttribute(e):t.setAttribute(e,n)):_=void 0}))}}E((function(){N=this.N}))(),H.displayName="ReactiveTextNode",Object.defineProperties(m.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:H},props:{configurable:!0,get:function(){var t=this;return{data:{get value(){return t.value}}}}},__b:{configurable:!0,value:1}}),I("__b",(function(t,e){if("string"==typeof e.type){var n,o=e.props;for(var r in o)if("children"!==r){var i=o[r];i instanceof m&&(n||(e.__np=n={}),n[r]=i,o[r]=i.peek())}}t(e)})),I("__r",(function(t,e){if(t(e),e.type!==o.Fragment){T();var n,r=e.__c;r&&(r.__$f&=-2,void 0===(n=r.__$u)&&(r.__$u=n=function(t,e){var n;return E((function(){n=this}),{name:e}),n.c=t,n}((function(){var t;U&&(null==(t=n.y)||t.call(n)),r.__$f|=1,r.setState({})}),"function"==typeof e.type?e.type.displayName||e.type.name:""))),T(n)}})),I("__e",(function(t,e,n,o){T(),t(e,n,o)})),I("diffed",(function(t,e){var n;if(T(),"string"==typeof e.type&&(n=e.__e)){var o=e.__np,r=e.props;if(o){var i=n.U;if(i)for(var _ in i){var u=i[_];void 0===u||_ in o||(u.d(),i[_]=void 0)}else i={},n.U=i;for(var l in o){var f=i[l],s=o[l];void 0===f?(f=$(n,l,s),i[l]=f):f.o(s,r)}for(var c in o)r[c]=o[c]}}t(e)})),I("unmount",(function(t,e){if("string"==typeof e.type){var n=e.__e;if(n){var o=n.U;if(o)for(var r in n.U=void 0,o){var i=o[r];i&&i.d()}}e.__np=void 0}else{var _=e.__c;if(_){var u=_.__$u;u&&(_.__$u=void 0,u.d())}}t(e)})),I("__h",(function(t,e,n,o){(o<3||9===o)&&(e.__$f|=2),t(e,n,o)})),o.Component.prototype.shouldComponentUpdate=function(t,e){if(this.__R)return!0;var n=this.__$u,o=n&&void 0!==n.s;for(var r in e)return!0;if(this.__f||"boolean"==typeof this.u&&!0===this.u){var i=2&this.__$f;if(!(o||i||4&this.__$f))return!0;if(1&this.__$f)return!0}else{if(!(o||4&this.__$f))return!0;if(3&this.__$f)return!0}for(var _ in t)if("__source"!==_&&t[_]!==this.props[_])return!0;for(var u in this.props)if(!(u in t))return!0;return!1},"undefined"==typeof requestAnimationFrame&&setTimeout;var M=function(t){queueMicrotask((function(){queueMicrotask(t)}))};function B(){!function(t){if(c>0)return t();d=++p,c++;try{return t()}finally{_()}}((function(){for(var t;t=F.shift();)N.call(t)}))}function D(){1===F.push(this)&&(o.options.requestAnimationFrame||M)(B)}function R(t){const e=window.__BENTO_BRIDGE__;if(!e)throw new Error("appHook: __BENTO_BRIDGE__ not found");const{namespace:n,selectors:o,actions:r}=t,i={},_=(window.__BENTO_INITIAL_STATE__??{})[n],u=[];for(const[t,r]of Object.entries(o)){const o=b(r(_));u.push({sig:o,selectorFn:r}),e.subscribeSlice(n,(t=>{o.value=r(t)})),i[t]=o}queueMicrotask((()=>{const t=e.getSlice(n);for(const{sig:e,selectorFn:n}of u){const o=n(t);e.peek()!==o&&(e.value=o)}}));for(const[t,n]of Object.entries(r))i[t]=(...t)=>{const o=n(...t);return e.apply(o)};return i}function W(t,e){if("undefined"==typeof window){const n={};for(const o of t){const t=e?.[o.namespace],r=o.selectors??{},i=o.actions??{},_={};for(const[e,n]of Object.entries(r))_[e]=b(n(t));for(const[t]of Object.entries(i))_[t]=async()=>{};n[o.namespace]=_}return n}const n={};for(const e of t)n[e.namespace]=R(e);return n}}}]);