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