vendor: 6,850 bytes, lines 1-9
1var YI=Object.defineProperty;var xN=e=>{throw TypeError(e)};var VI=(e,t,n)=>t in e?YI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ba=(e,t,n)=>VI(e,typeof t!="symbol"?t+"":t,n),Dx=(e,t,n)=>t.has(e)||xN("Cannot "+n);var Z=(e,t,n)=>(Dx(e,t,"read from private field"),n?n.call(e):t.get(e)),We=(e,t,n)=>t.has(e)?xN("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Se=(e,t,n,s)=>(Dx(e,t,"write to private field"),s?s.call(e,n):t.set(e,n),n),Je=(e,t,n)=>(Dx(e,t,"access private method"),n);var sm=(e,t,n,s)=>({set _(a){Se(e,t,a,n)},get _(){return Z(e,t,s)}});function KI(e,t){for(var n=0;n<t.length;n++){const s=t[n];if(typeof s!="string"&&!Array.isArray(s)){for(const a in s)if(a!=="default"&&!(a in e)){const i=Object.getOwnPropertyDescriptor(s,a);i&&Object.defineProperty(e,a,i.get?i:{enumerable:!0,get:()=>s[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))s(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&s(o)}).observe(document,{childList:!0,subtree:!0});function n(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function s(a){if(a.ep)return;a.ep=!0;const i=n(a);fetch(a.href,i)}})();var It=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function oo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function QI(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function s(){return this instanceof s?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(s){var a=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(n,s,a.get?a:{enumerable:!0,get:function(){return e[s]}})}),n}var y4={exports:{}},qp={},v4={exports:{}},st={};/** 2 * @license React 3 * react.production.min.js 4 * 5 * Copyright (c) Facebook, Inc. and its affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var kh=Symbol.for("react.element"),ZI=Symbol.for("react.portal"),XI=Symbol.for("react.fragment"),JI=Symbol.for("react.strict_mode"),e9=Symbol.for("react.profiler"),t9=Symbol.for("react.provider"),r9=Symbol.for("react.context"),n9=Symbol.for("react.forward_ref"),s9=Symbol.for("react.suspense"),a9=Symbol.for("react.memo"),i9=Symbol.for("react.lazy"),yN=Symbol.iterator;function o9(e){return e===null||typeof e!="object"?null:(e=yN&&e[yN]||e["@@iterator"],typeof e=="function"?e:null)}var b4={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w4=Object.assign,j4={};function td(e,t,n){this.props=e,this.context=t,this.refs=j4,this.updater=n||b4}td.prototype.isReactComponent={};td.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};td.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function N4(){}N4.prototype=td.prototype;function g1(e,t,n){this.props=e,this.context=t,this.refs=j4,this.updater=n||b4}var x1=g1.prototype=new N4;x1.constructor=g1;w4(x1,td.prototype);x1.isPureReactComponent=!0;var vN=Array.isArray,k4=Object.prototype.hasOwnProperty,y1={current:null},_4={key:!0,ref:!0,__self:!0,__source:!0};function S4(e,t,n){var s,a={},i=null,o=null;if(t!=null)for(s in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)k4.call(t,s)&&!_4.hasOwnProperty(s)&&(a[s]=t[s]);var l=arguments.length-2;if(l===1)a.children=n;else if(1<l){for(var c=Array(l),d=0;d<l;d++)c[d]=arguments[d+2];a.children=c}if(e&&e.defaultProps)for(s in l=e.defaultProps,l)a[s]===void 0&&(a[s]=l[s]);return{$$typeof:kh,type:e,key:i,ref:o,props:a,_owner:y1.current}}function l9(e,t){return{$$typeof:kh,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function v1(e){return typeof e=="object"&&e!==null&&e.$$typeof===kh}function c9(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var bN=/\/+/g;function Fx(e,t){return typeof e=="object"&&e!==null&&e.key!=null?c9(""+e.key):t.toString(36)}function Km(e,t,n,s,a){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case kh:case ZI:o=!0}}if(o)return o=e,a=a(o),e=s===""?"."+Fx(o,0):s,vN(a)?(n="",e!=null&&(n=e.replace(bN,"$&/")+"/"),Km(a,t,n,"",function(d){return d})):a!=null&&(v1(a)&&(a=l9(a,n+(!a.key||o&&o.key===a.key?"":(""+a.key).replace(bN,"$&/")+"/")+e)),t.push(a)),1;if(o=0,s=s===""?".":s+":",vN(e))for(var l=0;l<e.length;l++){i=e[l];var c=s+Fx(i,l);o+=Km(i,t,n,c,a)}else if(c=o9(e),typeof c=="function")for(e=c.call(e),l=0;!(i=e.next()).done;)i=i.value,c=s+Fx(i,l++),o+=Km(i,t,n,c,a);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function am(e,t,n){if(e==null)return e;var s=[],a=0;return Km(e,s,"","",function(i){return t.call(n,i,a++)}),s}function d9(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var rn={current:null},Qm={transition:null},u9={ReactCurrentDispatcher:rn,ReactCurrentBatchConfig:Qm,ReactCurrentOwner:y1};function C4(){throw Error("act(...) is not supported in production builds of React.")}st.Children={map:am,forEach:function(e,t,n){am(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return am(e,function(){t++}),t},toArray:function(e){return am(e,function(t){return t})||[]},only:function(e){if(!v1(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};st.Component=td;st.Fragment=XI;st.Profiler=e9;st.PureComponent=g1;st.StrictMode=JI;st.Suspense=s9;
vendor: 6,009 bytes, lines 9-25
9st.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=u9;st.act=C4;st.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var s=w4({},e.props),a=e.key,i=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,o=y1.current),t.key!==void 0&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)k4.call(t,c)&&!_4.hasOwnProperty(c)&&(s[c]=t[c]===void 0&&l!==void 0?l[c]:t[c])}var c=arguments.length-2;if(c===1)s.children=n;else if(1<c){l=Array(c);for(var d=0;d<c;d++)l[d]=arguments[d+2];s.children=l}return{$$typeof:kh,type:e.type,key:a,ref:i,props:s,_owner:o}};st.createContext=function(e){return e={$$typeof:r9,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:t9,_context:e},e.Consumer=e};st.createElement=S4;st.createFactory=function(e){var t=S4.bind(null,e);return t.type=e,t};st.createRef=function(){return{current:null}};st.forwardRef=function(e){return{$$typeof:n9,render:e}};st.isValidElement=v1;st.lazy=function(e){return{$$typeof:i9,_payload:{_status:-1,_result:e},_init:d9}};st.memo=function(e,t){return{$$typeof:a9,type:e,compare:t===void 0?null:t}};st.startTransition=function(e){var t=Qm.transition;Qm.transition={};try{e()}finally{Qm.transition=t}};st.unstable_act=C4;st.useCallback=function(e,t){return rn.current.useCallback(e,t)};st.useContext=function(e){return rn.current.useContext(e)};st.useDebugValue=function(){};st.useDeferredValue=function(e){return rn.current.useDeferredValue(e)};st.useEffect=function(e,t){return rn.current.useEffect(e,t)};st.useId=function(){return rn.current.useId()};st.useImperativeHandle=function(e,t,n){return rn.current.useImperativeHandle(e,t,n)};st.useInsertionEffect=function(e,t){return rn.current.useInsertionEffect(e,t)};st.useLayoutEffect=function(e,t){return rn.current.useLayoutEffect(e,t)};st.useMemo=function(e,t){return rn.current.useMemo(e,t)};st.useReducer=function(e,t,n){return rn.current.useReducer(e,t,n)};st.useRef=function(e){return rn.current.useRef(e)};st.useState=function(e){return rn.current.useState(e)};st.useSyncExternalStore=function(e,t,n){return rn.current.useSyncExternalStore(e,t,n)};st.useTransition=function(){return rn.current.useTransition()};st.version="18.3.1";v4.exports=st;var j=v4.exports;const ee=oo(j),b1=KI({__proto__:null,default:ee},[j]);/** 10 * @license React 11 * react-jsx-runtime.production.min.js 12 * 13 * Copyright (c) Facebook, Inc. and its affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var h9=j,m9=Symbol.for("react.element"),f9=Symbol.for("react.fragment"),p9=Object.prototype.hasOwnProperty,g9=h9.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,x9={key:!0,ref:!0,__self:!0,__source:!0};function E4(e,t,n){var s,a={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(s in t)p9.call(t,s)&&!x9.hasOwnProperty(s)&&(a[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps,t)a[s]===void 0&&(a[s]=t[s]);return{$$typeof:m9,type:e,key:i,ref:o,props:a,_owner:g9.current}}qp.Fragment=f9;qp.jsx=E4;qp.jsxs=E4;y4.exports=qp;var r=y4.exports,T4={exports:{}},Hn={},$4={exports:{}},O4={};/** 18 * @license React 19 * scheduler.production.min.js 20 * 21 * Copyright (c) Facebook, Inc. and its affiliates. 22 * 23 * This source code is licensed under the MIT license found in the 24 * LICENSE file in the root directory of this source tree. 25 */(function(e){function t(B,R){var D=B.length;B.push(R);e:for(;0<D;){var P=D-1>>>1,I=B[P];if(0<a(I,R))B[P]=R,B[D]=I,D=P;else break e}}function n(B){return B.length===0?null:B[0]}function s(B){if(B.length===0)return null;var R=B[0],D=B.pop();if(D!==R){B[0]=D;e:for(var P=0,I=B.length,F=I>>>1;P<F;){var Y=2*(P+1)-1,H=B[Y],L=Y+1,M=B[L];if(0>a(H,D))L<I&&0>a(M,H)?(B[P]=M,B[L]=D,P=L):(B[P]=H,B[Y]=D,P=Y);else if(L<I&&0>a(M,D))B[P]=M,B[L]=D,P=L;else break e}}return R}function a(B,R){var D=B.sortIndex-R.sortIndex;return D!==0?D:B.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var c=[],d=[],u=1,h=null,f=3,m=!1,y=!1,p=!1,v=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(B){for(var R=n(d);R!==null;){if(R.callback===null)s(d);else if(R.startTime<=B)s(d),R.sortIndex=R.expirationTime,t(c,R);else break;R=n(d)}}function w(B){if(p=!1,b(B),!y)if(n(c)!==null)y=!0,z(N);else{var R=n(d);R!==null&&W(w,R.startTime-B)}}function N(B,R){y=!1,p&&(p=!1,g(C),C=-1),m=!0;var D=f;try{for(b(R),h=n(c);h!==null&&(!(h.expirationTime>R)||B&&!E());){var P=h.callback;if(typeof P=="function"){h.callback=null,f=h.priorityLevel;var I=P(h.expirationTime<=R);R=e.unstable_now(),typeof I=="function"?h.callback=I:h===n(c)&&s(c),b(R)}else s(c);h=n(c)}if(h!==null)var F=!0;else{var Y=n(d);Y!==null&&W(w,Y.startTime-R),F=!1}return F}finally{h=null,f=D,m=!1}}var S=!1,_=null,C=-1,$=5,k=-1;function E(){return!(e.unstable_now()-k<$)}function T(){if(_!==null){var B=e.unstable_now();k=B;var R=!0;try{R=_(!0,B)}finally{R?O():(S=!1,_=null)}}else S=!1}var O;if(typeof x=="function")O=function(){x(T)};else if(typeof MessageChannel<"u"){var A=new MessageChannel,U=A.port2;A.port1.onmessage=T,O=function(){U.postMessage(null)}}else O=function(){v(T,0)};function z(B){_=B,S||(S=!0,O())}function W(B,R){C=v(function(){B(e.unstable_now())},R)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(B){B.
vendor: 4,155 bytes, lines 25-33
25callback=null},e.unstable_continueExecution=function(){y||m||(y=!0,z(N))},e.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<B?Math.floor(1e3/B):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(B){switch(f){case 1:case 2:case 3:var R=3;break;default:R=f}var D=f;f=R;try{return B()}finally{f=D}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(B,R){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var D=f;f=B;try{return R()}finally{f=D}},e.unstable_scheduleCallback=function(B,R,D){var P=e.unstable_now();switch(typeof D=="object"&&D!==null?(D=D.delay,D=typeof D=="number"&&0<D?P+D:P):D=P,B){case 1:var I=-1;break;case 2:I=250;break;case 5:I=1073741823;break;case 4:I=1e4;break;default:I=5e3}return I=D+I,B={id:u++,callback:R,priorityLevel:B,startTime:D,expirationTime:I,sortIndex:-1},D>P?(B.sortIndex=D,t(d,B),n(c)===null&&B===n(d)&&(p?(g(C),C=-1):p=!0,W(w,D-P))):(B.sortIndex=I,t(c,B),y||m||(y=!0,z(N))),B},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(B){var R=f;return function(){var D=f;f=R;try{return B.apply(this,arguments)}finally{f=D}}}})(O4);$4.exports=O4;var y9=$4.exports;/** 26 * @license React 27 * react-dom.production.min.js 28 * 29 * Copyright (c) Facebook, Inc. and its affiliates. 30 * 31 * This source code is licensed under the MIT license found in the 32 * LICENSE file in the root directory of this source tree. 33 */var v9=j,Ln=y9;function fe(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var P4=new Set,_u={};function ml(e,t){Pc(e,t),Pc(e+"Capture",t)}function Pc(e,t){for(_u[e]=t,e=0;e<t.length;e++)P4.add(t[e])}var La=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_v=Object.prototype.hasOwnProperty,b9=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,wN={},jN={};function w9(e){return _v.call(jN,e)?!0:_v.call(wN,e)?!1:b9.test(e)?jN[e]=!0:(wN[e]=!0,!1)}function j9(e,t,n,s){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return s?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function N9(e,t,n,s){if(t===null||typeof t>"u"||j9(e,t,n,s))return!0;if(s)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function nn(e,t,n,s,a,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=s,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var Er={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Er[e]=new nn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Er[t]=new nn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Er[e]=new nn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Er[e]=new nn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInl
33ine readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Er[e]=new nn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Er[e]=new nn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Er[e]=new nn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Er[e]=new nn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Er[e]=new nn(e,5,!1,e.toLowerCase(),null,!1,!1)});var w1=/[\-:]([a-z])/g;function j1(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(w1,j1);Er[t]=new nn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(w1,j1);Er[t]=new nn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(w1,j1);Er[t]=new nn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Er[e]=new nn(e,1,!1,e.toLowerCase(),null,!1,!1)});Er.xlinkHref=new nn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Er[e]=new nn(e,1,!1,e.toLowerCase(),null,!0,!0)});function N1(e,t,n,s){var a=Er.hasOwnProperty(t)?Er[t]:null;(a!==null?a.type!==0:s||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(N9(t,n,a,s)&&(n=null),s||a===null?w9(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=n===null?a.type===3?!1:"":n:(t=a.attributeName,s=a.attributeNamespace,n===null?e.removeAttribute(t):(a=a.type,n=a===3||a===4&&n===!0?"":""+n,s?e.setAttributeNS(s,t,n):e.setAttribute(t,n))))}var Va=v9.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,im=Symbol.for("react.element"),Gl=Symbol.for("react.portal"),Yl=Symbol.for("react.fragment"),k1=Symbol.for("react.strict_mode"),Sv=Symbol.for("react.profiler"),A4=Symbol.for("react.provider"),I4=Symbol.for("react.context"),_1=Symbol.for("react.forward_ref"),Cv=Symbol.for("react.suspense"),Ev=Symbol.for("react.suspense_list"),S1=Symbol.for("react.memo"),fi=Symbol.for("react.lazy"),R4=Symbol.for("react.offscreen"),NN=Symbol.iterator;function _d(e){return e===null||typeof e!="object"?null:(e=NN&&e[NN]||e["@@iterator"],typeof e=="function"?e:null)}var Ht=Object.assign,Lx;function Jd(e){if(Lx===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Lx=t&&t[1]||""}return` 34`+Lx+e}var Bx=!1;function Wx(e,t){if(!e||Bx)return"";Bx=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(d){var s=d}Reflect.construct(e,[],t)}else{try{t.call()}catch(d){s=d}e.call(t.prototype)}else{try{throw Error()}catch(d){s=d}e()}}catch(d){if(d&&s&&typeof d.stack=="string"){for(var a=d.stack.split(` 35`),i=s.stack.split(` 36`),o=a.length-1,l=i.length-1;1<=o&&0<=l&&a[o]!==i[l];)l--;for(;1<=o&&0<=l;o--,l--)if(a[o]!==i[l]){if(o!==1||l!==1)do if(o--,l--,0>l||a[o]!==i[l]){var c=` 37`+a[o].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=o&&0<=l);break}}}finally{Bx=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Jd(e):""}function k9(e){switch(e.tag){case 5:return Jd(e.type);case 16:return Jd("Lazy");case 13:return Jd("Suspense");case 19:return Jd("SuspenseList");case 0:case 2:case 15:return e=Wx(e.type,!1),e;case 11:return e=Wx(e.type.render,!1),e;case 1:return e=Wx(e.type,!0),e;default:return""}}function Tv(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Yl:return"Fragment";case Gl:return"Portal";case Sv:return"Profiler";case k1:return"StrictMode";case Cv:return"Suspense";case Ev:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case I4:return(e.displayName||"Context")+".Consumer";case A4:return(e._context.displayName||"Context")+".Provider";case _1:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case S1:return t=e.displayName||null,t!==null?t:Tv(e.type)||"Memo";case fi:t=e._payload,e=e._init;try{return Tv(e(t))}catch{}}return null}function _9(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Tv(t);case 8:return t===k1?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Qi(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function M4(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function S9(e){var t=M4(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),s=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(o){s=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return s},setValue:function(o){s=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function om(e){e._valueTracker||(e._valueTracker=S9(e))}function D4(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),s="";return e&&(s=M4(e)?e.checked?"true":"false":e.value),e=s,e!==n?(t.setValue(e),!0):!1}function Nf(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function $v(e,t){var n=t.checked;return Ht({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function kN(e,t){var n=t.defaultValue==null?"":t.defaultValue,s=t.checked!=null?t.checked:t.defaultChecked;n=Qi(t.value!=null?t.value:n),e._wrapperState={initialChecked:s,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}
vendor: 4,658 bytes, line 37
37function F4(e,t){t=t.checked,t!=null&&N1(e,"checked",t,!1)}function Ov(e,t){F4(e,t);var n=Qi(t.value),s=t.type;if(n!=null)s==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(s==="submit"||s==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Pv(e,t.type,n):t.hasOwnProperty("defaultValue")&&Pv(e,t.type,Qi(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function _N(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var s=t.type;if(!(s!=="submit"&&s!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Pv(e,t,n){(t!=="number"||Nf(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var eu=Array.isArray;function ac(e,t,n,s){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&s&&(e[n].defaultSelected=!0)}else{for(n=""+Qi(n),t=null,a=0;a<e.length;a++){if(e[a].value===n){e[a].selected=!0,s&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function Av(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(fe(91));return Ht({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function SN(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(fe(92));if(eu(n)){if(1<n.length)throw Error(fe(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Qi(n)}}function L4(e,t){var n=Qi(t.value),s=Qi(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),s!=null&&(e.defaultValue=""+s)}function CN(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function B4(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Iv(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?B4(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var lm,W4=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,s,a){MSApp.execUnsafeLocalFunction(function(){return e(t,n,s,a)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(lm=lm||document.createElement("div"),lm.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=lm.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Su(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var cu={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},C9=["Webkit","ms","Moz","O"];Object.keys(cu).forEach(function(e){C9.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),cu[t]=cu[e]})});function U4(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||cu.hasOwnProperty(e)&&cu[e]?(""+t).trim():t+"px"}function q4(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var s=n.indexOf("--")===0,a=U4(n,t[n],s);n==="float"&&(n="cssFloat"),s?e.setProperty(n,a):e[n]=a}}var E9=Ht({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Rv(e,t){if(t){if(E9[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(fe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(fe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(fe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(fe(62))}}function Mv(e,t){if(e.indexOf("-")===-1)return typeof t.is=="str
37ing";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Dv=null;function C1(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Fv=null,ic=null,oc=null;function EN(e){if(e=Ch(e)){if(typeof Fv!="function")throw Error(fe(280));var t=e.stateNode;t&&(t=Vp(t),Fv(e.stateNode,e.type,t))}}function H4(e){ic?oc?oc.push(e):oc=[e]:ic=e}function z4(){if(ic){var e=ic,t=oc;if(oc=ic=null,EN(e),t)for(e=0;e<t.length;e++)EN(t[e])}}function G4(e,t){return e(t)}function Y4(){}var Ux=!1;function V4(e,t,n){if(Ux)return e(t,n);Ux=!0;try{return G4(e,t,n)}finally{Ux=!1,(ic!==null||oc!==null)&&(Y4(),z4())}}function Cu(e,t){var n=e.stateNode;if(n===null)return null;var s=Vp(n);if(s===null)return null;n=s[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(fe(231,t,typeof n));return n}var Lv=!1;if(La)try{var Sd={};Object.defineProperty(Sd,"passive",{get:function(){Lv=!0}}),window.addEventListener("test",Sd,Sd),window.removeEventListener("test",Sd,Sd)}catch{Lv=!1}function T9(e,t,n,s,a,i,o,l,c){var d=Array.prototype.slice.call(arguments,3);try{t.apply(n,d)}catch(u){this.onError(u)}}var du=!1,kf=null,_f=!1,Bv=null,$9={onError:function(e){du=!0,kf=e}};function O9(e,t,n,s,a,i,o,l,c){du=!1,kf=null,T9.apply($9,arguments)}function P9(e,t,n,s,a,i,o,l,c){if(O9.apply(this,arguments),du){if(du){var d=kf;du=!1,kf=null}else throw Error(fe(198));_f||(_f=!0,Bv=d)}}function fl(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function K4(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function TN(e){if(fl(e)!==e)throw Error(fe(188))}function A9(e){var t=e.alternate;if(!t){if(t=fl(e),t===null)throw Error(fe(188));return t!==e?null:e}for(var n=e,s=t;;){var a=n.return;if(a===null)break;var i=a.alternate;if(i===null){if(s=a.return,s!==null){n=s;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===n)return TN(a),e;if(i===s)return TN(a),t;i=i.sibling}throw Error(fe(188))}if(n.return!==s.return)n=a,s=i;else{for(var o=!1,l=a.child;l;){if(l===n){o=!0,n=a,s=i;break}if(l===s){o=!0,s=a,n=i;break}l=l.sibling}if(!o){for(l=i.child;l;){if(l===n){o=!0,n=i,s=a;break}if(l===s){o=!0,s=i,n=a;break}l=l.sibling}if(!o)throw Error(fe(189))}}if(n.alternate!==s)throw Error(fe(190))}if(n.tag!==3)throw Error(fe(188));return n.stateNode.current===n?e:t}function Q4(e){return e=A9(e),e!==null?Z4(e):null}function Z4(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Z4(e);if(t!==null)return t;e=e.sibling}return null}var X4=Ln.unstable_scheduleCallback,$N=Ln.unstable_cancelCallback,I9=Ln.unstable_shouldYield,R9=Ln.unstable_requestPaint,Xt=Ln.unstable_now,M9=Ln.unstable_getCurrentPriorityLevel,E1=Ln.unstable_ImmediatePriority,J4=Ln.unstable_UserBlockingPriority,Sf=Ln.unstable_NormalPriority,D9=Ln.unstable_LowPriority,eC=Ln.unstable_IdlePriority,Hp=null,la=null;function F9(e){if(la&&typeof la.onCommitFiberRoot=="function")try{la.onCommitFiberRoot(Hp,e,void 0,(e.current.flags&128)===128)}catch{}}var Es=Math.clz32?Math.clz32:W9,L9=Math.log,B9=Math.LN2;function W9(e){return e>>>=0,e===0?32:31-(L9(e)/B9|0)|0}var cm=64,dm=4194304;function tu(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Cf(e,t){var n=e.pendingLanes;if(n===0)return 0;var s=0,a=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var l=o&~a;l!==0?s=tu(l):(i&=o,i!==0&&(s=tu(i)))}else o=n&~a,o!==0?s=tu(o):i!==0&&(s=tu(i));if(s===0)return 0;if(t!==0&&t!==s&&!(t&a)&&(a=s&-s,i=t&-t,a>=i||a===16&&(i&4194240)!==0))return t;if(s&4&&(s|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=s;0<t;)n=31-Es(t),a=1<<n,s|=e[n],t&=~a;return s}function U9(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function q9(e,t){for(var n=e.suspendedLanes,s=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-Es(i),l=1<<o,c=a[o];c===-1?(!(l&n)||l&s)&&(a[o]=U9(l,t)):c<=t&&(e.expiredLanes|=l),i&=~l}}function Wv(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function tC(){var e=cm;return cm<<=1,!(cm&4194240)&&(cm=64),e}function qx(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function _h(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Es(t),e[t]=n}function H9(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var s=e.eventTimes;for(e=e.expirationTimes;0<n;){var a=31-Es(n),i=1<<a;t[a]=0,s[a]=-1,e[a]=-1,n&=~i}}function T1(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var s=31-Es(n),a=1<<s;a&t|e[s]&t&&(e[s]|=t),n&=~a}}var jt=0;function rC(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var nC,$1,sC,aC,iC,Uv=!1,um=[],Fi=null,Li=null,Bi=null,Eu=new Map,Tu=new Map,yi=[],z9="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ON(e,t){switch(e){case"focusin":case"focusout":Fi=null;break;case"dragenter":case"dragleave":Li=null;break;case"mouseover":case"mouseout":Bi=null;break;case"pointerover":case"pointerout":Eu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Tu.delete(t.pointerId)}}function Cd(e,t,n,s,a,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:s,nativeEvent:i,targetContainers:[a]},t!==null&&(t=Ch(t),t!==null&&$1(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function G9(e,t,n,s,a){switch(t){case"focusin":return Fi=Cd(Fi,e,t,n,s,a),!0;case"dragenter":return Li=Cd(Li,e,t,n,s,a),!0;case"mouseover":return Bi=Cd(Bi,e,t,n,s,a),!0;case"pointerover":var i=a.pointerId;return Eu.set(i,Cd(Eu.get(i)||null,e,t,n,s,a)),!0;case"gotpointercapture":return i=a.pointerId,Tu.set(i,Cd(Tu.get(i)||null,e,t,n,s,a)),!0}return!1}function oC(e){var t=Ao(e.target);if(t!==null){var n=fl(t);if(n!==null){if(t=n.tag,t===13){if(t=K4(n),t!==null){e.blockedOn=t,iC(e.priority,function(){sC(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Zm(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=qv(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var s=new n.constructor(n.type,n);Dv=s,n.target.dispatchEvent(s),Dv=null}else return t=Ch(n),t!==null&&$1(t),e.blockedOn=n,!1;t.shift()}return!0}function PN(e,t,n){Zm(e)&&n.delete(t)}function Y9(){Uv=!1,Fi!==null&&Zm(Fi)&&(Fi=null),Li!==null&&Zm(Li)&&(Li=null),Bi!==null&&Zm(
vendor: 11,865 bytes, line 37
37Bi)&&(Bi=null),Eu.forEach(PN),Tu.forEach(PN)}function Ed(e,t){e.blockedOn===t&&(e.blockedOn=null,Uv||(Uv=!0,Ln.unstable_scheduleCallback(Ln.unstable_NormalPriority,Y9)))}function $u(e){function t(a){return Ed(a,e)}if(0<um.length){Ed(um[0],e);for(var n=1;n<um.length;n++){var s=um[n];s.blockedOn===e&&(s.blockedOn=null)}}for(Fi!==null&&Ed(Fi,e),Li!==null&&Ed(Li,e),Bi!==null&&Ed(Bi,e),Eu.forEach(t),Tu.forEach(t),n=0;n<yi.length;n++)s=yi[n],s.blockedOn===e&&(s.blockedOn=null);for(;0<yi.length&&(n=yi[0],n.blockedOn===null);)oC(n),n.blockedOn===null&&yi.shift()}var lc=Va.ReactCurrentBatchConfig,Ef=!0;function V9(e,t,n,s){var a=jt,i=lc.transition;lc.transition=null;try{jt=1,O1(e,t,n,s)}finally{jt=a,lc.transition=i}}function K9(e,t,n,s){var a=jt,i=lc.transition;lc.transition=null;try{jt=4,O1(e,t,n,s)}finally{jt=a,lc.transition=i}}function O1(e,t,n,s){if(Ef){var a=qv(e,t,n,s);if(a===null)Jx(e,t,s,Tf,n),ON(e,s);else if(G9(a,e,t,n,s))s.stopPropagation();else if(ON(e,s),t&4&&-1<z9.indexOf(e)){for(;a!==null;){var i=Ch(a);if(i!==null&&nC(i),i=qv(e,t,n,s),i===null&&Jx(e,t,s,Tf,n),i===a)break;a=i}a!==null&&s.stopPropagation()}else Jx(e,t,s,null,n)}}var Tf=null;function qv(e,t,n,s){if(Tf=null,e=C1(s),e=Ao(e),e!==null)if(t=fl(e),t===null)e=null;else if(n=t.tag,n===13){if(e=K4(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Tf=e,null}function lC(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(M9()){case E1:return 1;case J4:return 4;case Sf:case D9:return 16;case eC:return 536870912;default:return 16}default:return 16}}var Pi=null,P1=null,Xm=null;function cC(){if(Xm)return Xm;var e,t=P1,n=t.length,s,a="value"in Pi?Pi.value:Pi.textContent,i=a.length;for(e=0;e<n&&t[e]===a[e];e++);var o=n-e;for(s=1;s<=o&&t[n-s]===a[i-s];s++);return Xm=a.slice(e,1<s?1-s:void 0)}function Jm(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function hm(){return!0}function AN(){return!1}function zn(e){function t(n,s,a,i,o){this._reactName=n,this._targetInst=a,this.type=s,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(i):i[l]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?hm:AN,this.isPropagationStopped=AN,this}return Ht(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=hm)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=hm)},persist:function(){},isPersistent:hm}),t}var rd={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},A1=zn(rd),Sh=Ht({},rd,{view:0,detail:0}),Q9=zn(Sh),Hx,zx,Td,zp=Ht({},Sh,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:I1,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Td&&(Td&&e.type==="mousemove"?(Hx=e.screenX-Td.screenX,zx=e.screenY-Td.screenY):zx=Hx=0,Td=e),Hx)},movementY:function(e){return"movementY"in e?e.movementY:zx}}),IN=zn(zp),Z9=Ht({},zp,{dataTransfer:0}),X9=zn(Z9),J9=Ht({},Sh,{relatedTarget:0}),Gx=zn(J9),eR=Ht({},rd,{animationName:0,elapsedTime:0,pseudoElement:0}),tR=zn(eR),rR=Ht({},rd,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),nR=zn(rR),sR=Ht({},rd,{data:0}),RN=zn(sR),aR={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},iR={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},oR={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function lR(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=oR[e])?!!t[e]:!1}function I1(){return lR}var cR=Ht({},Sh,{key:function(e){if(e.key){var t=aR[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Jm(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?iR[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:I1,charCode:function(e){return e.type==="keypress"?Jm(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Jm(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),dR=zn(cR),uR=Ht({},zp,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),MN=zn(uR),hR=Ht({},Sh,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:I1}),mR=zn(hR),fR=Ht({},rd,{propertyName:0,elapsedTime:0,pseudoElement:0}),pR=zn(fR),gR=Ht({},zp,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),xR=zn(gR),yR=[9,13,27,32],R1=La&&"CompositionEvent"in window,uu=null;La&&"documentMode"in document&&(uu=document.documentMode);var vR=La&&"TextEvent"in window&&!uu,dC=La&&(!R1||uu&&8<uu&&11>=uu),DN=" ",FN=!1;function uC(e,t){switch(e){case"keyup":return yR.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hC(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Vl=!1;function bR(e,t){switch(e){case"compositionend":return hC(t);case"keypress":return t.which!==32?null:(FN=!0,DN);case"textInput":return e=t.data,e===DN&&FN?null:e;default:return null}}function wR(e,t){if(Vl)return e==="compositionend"||!R1&&uC(e,t)?(e=cC(),Xm=P1=Pi=null,Vl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return dC&&t.locale!=="ko"?null:t.data;default:return null}}var jR={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function LN(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!jR[e.type]:t==="textarea"}function mC(e,t,n,s){H4(s),t=$f(t,"onChange"),0<t.length&&(n=new A1("onChange","change",null,n,s),e.push({event:n,listeners:t}))}var hu=null,Ou=null;function NR(e){kC(e,0)}function Gp(e){var t=Zl(e);if(D4(t))return e}function kR(e,t){if(e==="change")return t}var fC=!1;if(La){var Yx;if(La){var Vx="oninput"in document;if(!Vx){var BN=document.createElement("div");BN.setAttribute("oninput","return;"),Vx=typeof BN.oninput=="function"}Yx=Vx}else Yx=!1;fC=Yx&&(!document.documentMode||9<document.documentMode)}function WN(){hu&&(hu.detachEvent("onpropertychange",pC),Ou=hu=null)}function pC(e){if(e.propertyName==="value"&&Gp(Ou)){var t=[];mC(t,Ou,e,C1(e)),V4(NR,t)}}function _R(e,t,n){e==="focusin"?(WN(),hu=t,Ou=n,hu.attachEvent("onpropertychange",pC)):e==="focusout"&&WN()}function SR(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Gp(Ou)}function CR(e,t){if(e==="click")return Gp(t)}function ER(e,t){if(e==="input"||e==="change")return Gp(t)}function TR(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var As=typeof Object.is=="function"?Object.is:TR;function Pu(e,t){if(As(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;for(s=0;s<n.length;s++){var a=n[s];if(!_v.call(t,a)||!As(e[a],t[a]))return!1}return!0}function UN(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function qN(e,t){var n=UN(e);e=0;for(var s;n;){if(n.nodeType===3){if(s=e+n.textContent.length,e<=t&&s>=t)return{node:n,offset:t-e};e=s}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=UN(n)}}function gC(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?gC(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function xC(){for(var e=window,t=Nf();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Nf(e.document)}return t}function M1(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function $R(e){var t=xC(),n=e.focusedElem,s=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&gC(n.ownerDocument.documentElement,n)){if(s!==null&&M1(n)){if(t=s.start,e=s.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=n.textContent.length,i=Math.min(s.start,a);s=s.end===void 0?i:Math.min(s.end,a),!e.extend&&i>s&&(a=s,s=i,i=a),a=qN(n,i);var o=qN(n,s);a&&o&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),i>s?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var OR=La&&"documentMode"in document&&11>=document.documentMode,Kl=null,Hv=null,mu=null,zv=!1;function HN(e,t,n){var s=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;zv||Kl==null||Kl!==Nf(s)||(s=Kl,"selectionStart"in s&&M1(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focu
vendor: 4,383 bytes, line 37
37sNode:s.focusNode,focusOffset:s.focusOffset}),mu&&Pu(mu,s)||(mu=s,s=$f(Hv,"onSelect"),0<s.length&&(t=new A1("onSelect","select",null,t,n),e.push({event:t,listeners:s}),t.target=Kl)))}function mm(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ql={animationend:mm("Animation","AnimationEnd"),animationiteration:mm("Animation","AnimationIteration"),animationstart:mm("Animation","AnimationStart"),transitionend:mm("Transition","TransitionEnd")},Kx={},yC={};La&&(yC=document.createElement("div").style,"AnimationEvent"in window||(delete Ql.animationend.animation,delete Ql.animationiteration.animation,delete Ql.animationstart.animation),"TransitionEvent"in window||delete Ql.transitionend.transition);function Yp(e){if(Kx[e])return Kx[e];if(!Ql[e])return e;var t=Ql[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in yC)return Kx[e]=t[n];return e}var vC=Yp("animationend"),bC=Yp("animationiteration"),wC=Yp("animationstart"),jC=Yp("transitionend"),NC=new Map,zN="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function lo(e,t){NC.set(e,t),ml(t,[e])}for(var Qx=0;Qx<zN.length;Qx++){var Zx=zN[Qx],PR=Zx.toLowerCase(),AR=Zx[0].toUpperCase()+Zx.slice(1);lo(PR,"on"+AR)}lo(vC,"onAnimationEnd");lo(bC,"onAnimationIteration");lo(wC,"onAnimationStart");lo("dblclick","onDoubleClick");lo("focusin","onFocus");lo("focusout","onBlur");lo(jC,"onTransitionEnd");Pc("onMouseEnter",["mouseout","mouseover"]);Pc("onMouseLeave",["mouseout","mouseover"]);Pc("onPointerEnter",["pointerout","pointerover"]);Pc("onPointerLeave",["pointerout","pointerover"]);ml("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ml("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ml("onBeforeInput",["compositionend","keypress","textInput","paste"]);ml("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ml("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ml("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ru="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),IR=new Set("cancel close invalid load scroll toggle".split(" ").concat(ru));function GN(e,t,n){var s=e.type||"unknown-event";e.currentTarget=n,P9(s,t,void 0,e),e.currentTarget=null}function kC(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var s=e[n],a=s.event;s=s.listeners;e:{var i=void 0;if(t)for(var o=s.length-1;0<=o;o--){var l=s[o],c=l.instance,d=l.currentTarget;if(l=l.listener,c!==i&&a.isPropagationStopped())break e;GN(a,l,d),i=c}else for(o=0;o<s.length;o++){if(l=s[o],c=l.instance,d=l.currentTarget,l=l.listener,c!==i&&a.isPropagationStopped())break e;GN(a,l,d),i=c}}}if(_f)throw e=Bv,_f=!1,Bv=null,e}function Ot(e,t){var n=t[Qv];n===void 0&&(n=t[Qv]=new Set);var s=e+"__bubble";n.has(s)||(_C(t,e,2,!1),n.add(s))}function Xx(e,t,n){var s=0;t&&(s|=4),_C(n,e,s,t)}var fm="_reactListening"+Math.random().toString(36).slice(2);function Au(e){if(!e[fm]){e[fm]=!0,P4.forEach(function(n){n!=="selectionchange"&&(IR.has(n)||Xx(n,!1,e),Xx(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[fm]||(t[fm]=!0,Xx("selectionchange",!1,t))}}function _C(e,t,n,s){switch(lC(t)){case 1:var a=V9;break;case 4:a=K9;break;default:a=O1}n=a.bind(null,t,n,e),a=void 0,!Lv||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),s?a!==void 0?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):a!==void 0?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function Jx(e,t,n,s,a){var i=s;
vendor: 3,927 bytes, line 37
37if(!(t&1)&&!(t&2)&&s!==null)e:for(;;){if(s===null)return;var o=s.tag;if(o===3||o===4){var l=s.stateNode.containerInfo;if(l===a||l.nodeType===8&&l.parentNode===a)break;if(o===4)for(o=s.return;o!==null;){var c=o.tag;if((c===3||c===4)&&(c=o.stateNode.containerInfo,c===a||c.nodeType===8&&c.parentNode===a))return;o=o.return}for(;l!==null;){if(o=Ao(l),o===null)return;if(c=o.tag,c===5||c===6){s=i=o;continue e}l=l.parentNode}}s=s.return}V4(function(){var d=i,u=C1(n),h=[];e:{var f=NC.get(e);if(f!==void 0){var m=A1,y=e;switch(e){case"keypress":if(Jm(n)===0)break e;case"keydown":case"keyup":m=dR;break;case"focusin":y="focus",m=Gx;break;case"focusout":y="blur",m=Gx;break;case"beforeblur":case"afterblur":m=Gx;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=IN;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=X9;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=mR;break;case vC:case bC:case wC:m=tR;break;case jC:m=pR;break;case"scroll":m=Q9;break;case"wheel":m=xR;break;case"copy":case"cut":case"paste":m=nR;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=MN}var p=(t&4)!==0,v=!p&&e==="scroll",g=p?f!==null?f+"Capture":null:f;p=[];for(var x=d,b;x!==null;){b=x;var w=b.stateNode;if(b.tag===5&&w!==null&&(b=w,g!==null&&(w=Cu(x,g),w!=null&&p.push(Iu(x,w,b)))),v)break;x=x.return}0<p.length&&(f=new m(f,y,null,n,u),h.push({event:f,listeners:p}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",f&&n!==Dv&&(y=n.relatedTarget||n.fromElement)&&(Ao(y)||y[Ba]))break e;if((m||f)&&(f=u.window===u?u:(f=u.ownerDocument)?f.defaultView||f.parentWindow:window,m?(y=n.relatedTarget||n.toElement,m=d,y=y?Ao(y):null,y!==null&&(v=fl(y),y!==v||y.tag!==5&&y.tag!==6)&&(y=null)):(m=null,y=d),m!==y)){if(p=IN,w="onMouseLeave",g="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(p=MN,w="onPointerLeave",g="onPointerEnter",x="pointer"),v=m==null?f:Zl(m),b=y==null?f:Zl(y),f=new p(w,x+"leave",m,n,u),f.target=v,f.relatedTarget=b,w=null,Ao(u)===d&&(p=new p(g,x+"enter",y,n,u),p.target=b,p.relatedTarget=v,w=p),v=w,m&&y)t:{for(p=m,g=y,x=0,b=p;b;b=Sl(b))x++;for(b=0,w=g;w;w=Sl(w))b++;for(;0<x-b;)p=Sl(p),x--;for(;0<b-x;)g=Sl(g),b--;for(;x--;){if(p===g||g!==null&&p===g.alternate)break t;p=Sl(p),g=Sl(g)}p=null}else p=null;m!==null&&YN(h,f,m,p,!1),y!==null&&v!==null&&YN(h,v,y,p,!0)}}e:{if(f=d?Zl(d):window,m=f.nodeName&&f.nodeName.toLowerCase(),m==="select"||m==="input"&&f.type==="file")var N=kR;else if(LN(f))if(fC)N=ER;else{N=SR;var S=_R}else(m=f.nodeName)&&m.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(N=CR);if(N&&(N=N(e,d))){mC(h,N,n,u);break e}S&&S(e,f,d),e==="focusout"&&(S=f._wrapperState)&&S.controlled&&f.type==="number"&&Pv(f,"number",f.value)}switch(S=d?Zl(d):window,e){case"focusin":(LN(S)||S.contentEditable==="true")&&(Kl=S,Hv=d,mu=null);break;case"focusout":mu=Hv=Kl=null;break;case"mousedown":zv=!0;break;case"contextmenu":case"mouseup":case"dragend":zv=!1,HN(h,n,u);break;case"selectionchange":if(OR)break;case"keydown":case"keyup":HN(h,n,u)}var _;if(R1)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else Vl?uC(e,n)&&(C="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(C="onCompositionStart");C&&(dC&&n.locale!=="ko"&&(Vl||C!=="onCompositionStart"?C==="onCompositionEnd"&&Vl&&(_=cC()):(Pi=u,P1="value"in Pi?Pi.value:Pi.textContent,Vl=!0)),S=$f(d,C),0<S.length&&(C=new RN(C,e,null,n,u),h.push({event:C,listeners:S}),_?C.data=_:(_=hC(n),_!==null&&(C.data=_)))),(_=vR?bR(e,n):wR(e,n
vendor: 5,095 bytes, lines 37-38
37))&&(d=$f(d,"onBeforeInput"),0<d.length&&(u=new RN("onBeforeInput","beforeinput",null,n,u),h.push({event:u,listeners:d}),u.data=_))}kC(h,t)})}function Iu(e,t,n){return{instance:e,listener:t,currentTarget:n}}function $f(e,t){for(var n=t+"Capture",s=[];e!==null;){var a=e,i=a.stateNode;a.tag===5&&i!==null&&(a=i,i=Cu(e,n),i!=null&&s.unshift(Iu(e,i,a)),i=Cu(e,t),i!=null&&s.push(Iu(e,i,a))),e=e.return}return s}function Sl(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function YN(e,t,n,s,a){for(var i=t._reactName,o=[];n!==null&&n!==s;){var l=n,c=l.alternate,d=l.stateNode;if(c!==null&&c===s)break;l.tag===5&&d!==null&&(l=d,a?(c=Cu(n,i),c!=null&&o.unshift(Iu(n,c,l))):a||(c=Cu(n,i),c!=null&&o.push(Iu(n,c,l)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var RR=/\r\n?/g,MR=/\u0000|\uFFFD/g;function VN(e){return(typeof e=="string"?e:""+e).replace(RR,` 38`).replace(MR,"")}function pm(e,t,n){if(t=VN(t),VN(e)!==t&&n)throw Error(fe(425))}function Of(){}var Gv=null,Yv=null;function Vv(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Kv=typeof setTimeout=="function"?setTimeout:void 0,DR=typeof clearTimeout=="function"?clearTimeout:void 0,KN=typeof Promise=="function"?Promise:void 0,FR=typeof queueMicrotask=="function"?queueMicrotask:typeof KN<"u"?function(e){return KN.resolve(null).then(e).catch(LR)}:Kv;function LR(e){setTimeout(function(){throw e})}function ey(e,t){var n=t,s=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(s===0){e.removeChild(a),$u(t);return}s--}else n!=="$"&&n!=="$?"&&n!=="$!"||s++;n=a}while(n);$u(t)}function Wi(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function QN(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var nd=Math.random().toString(36).slice(2),ta="__reactFiber$"+nd,Ru="__reactProps$"+nd,Ba="__reactContainer$"+nd,Qv="__reactEvents$"+nd,BR="__reactListeners$"+nd,WR="__reactHandles$"+nd;function Ao(e){var t=e[ta];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ba]||n[ta]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=QN(e);e!==null;){if(n=e[ta])return n;e=QN(e)}return t}e=n,n=e.parentNode}return null}function Ch(e){return e=e[ta]||e[Ba],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Zl(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(fe(33))}function Vp(e){return e[Ru]||null}var Zv=[],Xl=-1;function co(e){return{current:e}}function Rt(e){0>Xl||(e.current=Zv[Xl],Zv[Xl]=null,Xl--)}function Et(e,t){Xl++,Zv[Xl]=e.current,e.current=t}var Zi={},Br=co(Zi),kn=co(!1),Jo=Zi;function Ac(e,t){var n=e.type.contextTypes;if(!n)return Zi;var s=e.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===t)return s.__reactInternalMemoizedMaskedChildContext;var a={},i;for(i in n)a[i]=t[i];return s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function _n(e){return e=e.childContextTypes,e!=null}function Pf(){Rt(kn),Rt(Br)}function ZN(e,t,n){if(Br.current!==Zi)throw Error(fe(168));Et(Br,t),Et(kn,n)}function SC(e,t,n){var s=e.stateNode;if(t=t.childContextTypes,typeof s.getChildContext!="function")return n;s=s.getChildContext();for(var a in s)if(!(a in t))throw Error(fe(108,_9(e)||"Unknown",a));return Ht({},n,s)}function Af(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Zi,Jo=Br.current,Et(Br,e),Et(kn,kn.current),!0}function XN(e,t,n){var s=e.stateNode;if(!s)throw Error(fe(169));n?(e=SC(e,t,Jo),s.__reactInternalMemoizedMergedChildContext=e,Rt(kn),Rt(Br),Et(Br,e)):Rt(kn),Et(kn,n)}var Ea=null,Kp=!1,ty=!1;function CC(e){Ea===null?Ea=[e]:Ea.push(e)}function UR(e){Kp=!0,CC(e)}function uo(){if(!ty&&Ea!==null){ty=!0;var e=0,t=jt;try{var n=Ea;for(jt=1;e<n.length;e++){var s=n[e];do s=s(!0);while(s!==null)}Ea=null,Kp=!1}catch(a){throw Ea!==null&&(Ea=Ea.slice(e+1)),X4(E1,uo),a}finally{jt=t,ty=!1}}return null}var Jl=[],ec=0,If=null,Rf=0,Zn=[],Xn=0,el=null,Aa=1,Ia="";function Co(e,t){Jl[ec++]=Rf,Jl[ec++]=If,If=e,Rf=t}function EC(e,t,n){Zn[Xn++]=Aa,Zn[Xn++]=Ia,Zn[Xn++]=el,el=e;var s=Aa;e=Ia;var a=32-Es(s)-1;s&=~(1<<a),n+=1;var i=32-Es(t)+a;if(30<i){var o=a-a%5;i=(s&(1<<o)-1).toString(32),s>>=o,a-=o,Aa=1<<32-Es(t)+a|n<<a|s,Ia=i+e}else Aa=1<<i|n<<a|s,Ia=e}function D1(e){e.return!==null&&(Co(e,1),EC(e,1,0))}function F1(e){for(;e===If;)If=Jl[--ec],Jl[ec]=null,Rf=Jl[--ec],Jl[ec]=null;for(;e===el;)el=Zn[--Xn],Zn[Xn]=null,Ia=Zn[--Xn],Zn[Xn]=null,Aa=Zn[--Xn],Zn[Xn]=null}var Dn=null,Rn=null,Dt=!1,ks=null;function TC(e,t){var n=Jn(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function JN(e,t){switch(e.tag){case 5:var n=e.type;
vendor: 24,195 bytes, lines 38-40
38return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Dn=e,Rn=Wi(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Dn=e,Rn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=el!==null?{id:Aa,overflow:Ia}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Jn(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Dn=e,Rn=null,!0):!1;default:return!1}}function Xv(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Jv(e){if(Dt){var t=Rn;if(t){var n=t;if(!JN(e,t)){if(Xv(e))throw Error(fe(418));t=Wi(n.nextSibling);var s=Dn;t&&JN(e,t)?TC(s,n):(e.flags=e.flags&-4097|2,Dt=!1,Dn=e)}}else{if(Xv(e))throw Error(fe(418));e.flags=e.flags&-4097|2,Dt=!1,Dn=e}}}function e2(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Dn=e}function gm(e){if(e!==Dn)return!1;if(!Dt)return e2(e),Dt=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Vv(e.type,e.memoizedProps)),t&&(t=Rn)){if(Xv(e))throw $C(),Error(fe(418));for(;t;)TC(e,t),t=Wi(t.nextSibling)}if(e2(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(fe(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Rn=Wi(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Rn=null}}else Rn=Dn?Wi(e.stateNode.nextSibling):null;return!0}function $C(){for(var e=Rn;e;)e=Wi(e.nextSibling)}function Ic(){Rn=Dn=null,Dt=!1}function L1(e){ks===null?ks=[e]:ks.push(e)}var qR=Va.ReactCurrentBatchConfig;function $d(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(fe(309));var s=n.stateNode}if(!s)throw Error(fe(147,e));var a=s,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var l=a.refs;o===null?delete l[i]:l[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(fe(284));if(!n._owner)throw Error(fe(290,e))}return e}function xm(e,t){throw e=Object.prototype.toString.call(t),Error(fe(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function t2(e){var t=e._init;return t(e._payload)}function OC(e){function t(g,x){if(e){var b=g.deletions;b===null?(g.deletions=[x],g.flags|=16):b.push(x)}}function n(g,x){if(!e)return null;for(;x!==null;)t(g,x),x=x.sibling;return null}function s(g,x){for(g=new Map;x!==null;)x.key!==null?g.set(x.key,x):g.set(x.index,x),x=x.sibling;return g}function a(g,x){return g=zi(g,x),g.index=0,g.sibling=null,g}function i(g,x,b){return g.index=b,e?(b=g.alternate,b!==null?(b=b.index,b<x?(g.flags|=2,x):b):(g.flags|=2,x)):(g.flags|=1048576,x)}function o(g){return e&&g.alternate===null&&(g.flags|=2),g}function l(g,x,b,w){return x===null||x.tag!==6?(x=ly(b,g.mode,w),x.return=g,x):(x=a(x,b),x.return=g,x)}function c(g,x,b,w){var N=b.type;return N===Yl?u(g,x,b.props.children,w,b.key):x!==null&&(x.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===fi&&t2(N)===x.type)?(w=a(x,b.props),w.ref=$d(g,x,b),w.return=g,w):(w=of(b.type,b.key,b.props,null,g.mode,w),w.ref=$d(g,x,b),w.return=g,w)}function d(g,x,b,w){return x===null||x.tag!==4||x.stateNode.containerInfo!==b.containerInfo||x.stateNode.implementation!==b.implementation?(x=cy(b,g.mode,w),x.return=g,x):(x=a(x,b.children||[]),x.return=g,x)}function u(g,x,b,w,N){return x===null||x.tag!==7?(x=Vo(b,g.mode,w,N),x.return=g,x):(x=a(x,b),x.return=g,x)}function h(g,x,b){if(typeof x=="string"&&x!==""||typeof x=="number")return x=ly(""+x,g.mode,b),x.return=g,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case im:return b=of(x.type,x.key,x.props,null,g.mode,b),b.ref=$d(g,null,x),b.return=g,b;case Gl:return x=cy(x,g.mode,b),x.return=g,x;case fi:var w=x._init;return h(g,w(x._payload),b)}if(eu(x)||_d(x))return x=Vo(x,g.mode,b,null),x.return=g,x;xm(g,x)}return null}function f(g,x,b,w){var N=x!==null?x.key:null;if(typeof b=="string"&&b!==""||typeof b=="number")return N!==null?null:l(g,x,""+b,w);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case im:return b.key===N?c(g,x,b,w):null;case Gl:return b.key===N?d(g,x,b,w):null;case fi:return N=b._init,f(g,x,N(b._payload),w)}if(eu(b)||_d(b))return N!==null?null:u(g,x,b,w,null);xm(g,b)}return null}function m(g,x,b,w,N){if(typeof w=="string"&&w!==""||typeof w=="number")return g=g.get(b)||null,l(x,g,""+w,N);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case im:return g=g.get(w.key===null?b:w.key)||null,c(x,g,w,N);case Gl:return g=g.get(w.key===null?b:w.key)||null,d(x,g,w,N);case fi:var S=w._init;return m(g,x,b,S(w._payload),N)}if(eu(w)||_d(w))return g=g.get(b)||null,u(x,g,w,N,null);xm(x,w)}return null}function y(g,x,b,w){for(var N=null,S=null,_=x,C=x=0,$=null;_!==null&&C<b.length;C++){_.index>C?($=_,_=null):$=_.sibling;var k=f(g,_,b[C],w);if(k===null){_===null&&(_=$);break}e&&_&&k.alternate===null&&t(g,_),x=i(k,x,C),S===null?N=k:S.sibling=k,S=k,_=$}if(C===b.length)return n(g,_),Dt&&Co(g,C),N;if(_===null){for(;C<b.length;C++)_=h(g,b[C],w),_!==null&&(x=i(_,x,C),S===null?N=_:S.sibling=_,S=_);return Dt&&Co(g,C),N}for(_=s(g,_);C<b.length;C++)$=m(_,g,C,b[C],w),$!==null&&(e&&$.alternate!==null&&_.delete($.key===null?C:$.key),x=i($,x,C),S===null?N=$:S.sibling=$,S=$);return e&&_.forEach(function(E){return t(g,E)}),Dt&&Co(g,C),N}function p(g,x,b,w){var N=_d(b);if(typeof N!="function")throw Error(fe(150));if(b=N.call(b),b==null)throw Error(fe(151));for(var S=N=null,_=x,C=x=0,$=null,k=b.next();_!==null&&!k.done;C++,k=b.next()){_.index>C?($=_,_=null):$=_.sibling;var E=f(g,_,k.value,w);if(E===null){_===null&&(_=$);break}e&&_&&E.alternate===null&&t(g,_),x=i(E,x,C),S===null?N=E:S.sibling=E,S=E,_=$}if(k.done)return n(g,_),Dt&&Co(g,C),N;if(_===null){for(;!k.done;C++,k=b.next())k=h(g,k.value,w),k!==null&&(x=i(k,x,C),S===null?N=k:S.sibling=k,S=k);return Dt&&Co(g,C),N}for(_=s(g,_);!k.done;C++,k=b.next())k=m(_,g,C,k.value,w),k!==null&&(e&&k.alternate!==null&&_.delete(k.key===null?C:k.key),x=i(k,x,C),S===null?N=k:S.sibling=k,S=k);return e&&_.forEach(function(T){return t(g,T)}),Dt&&Co(g,C),N}function v(g,x,b,w){if(typeof b=="object"&&b!==null&&b.type===Yl&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case im:e:{for(var N=b.key,S=x;S!==null;){if(S.key===N){if(N=b.type,N===Yl){if(S.tag===7){n(g,S.sibling),x=a(S,b.props.children),x.return=g,g=x;break e}}else if(S.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===fi&&t2(N)===S.type){n(g,S.sibling),x=a(S,b.props),x.ref=$d(g,S,b),x.return=g,g=x;break e}n(g,S);break}else t(g,S);S=S.sibling}b.type===Yl?(x=Vo(b.props.children,g.mode,w,b.key),x.return=g,g=x):(w=of(b.type,b.key,b.props,null,g.mode,w),w.ref=$d(g,x,b),w.return=g,g=w)}return o(g);case Gl:e:{for(S=b.key;x!==null;){if(x.key===S)if(x.tag===4&&x.stateNode.containerInfo===b.containerInfo&&x.stateNode.implementation===b.implementation){n(g,x.sibling),x=a(x,b.children||[]),x.return=g,g=x;break e}else{n(g,x);break}else t(g,x);x=x.sibling}x=cy(b,g.mode,w),x.return=g,g=x}return o(g);case fi:return S=b._init,v(g,x,S(b._payload),w)}if(eu(b))return y(g,x,b,w);if(_d(b))return p(g,x,b,w);xm(g,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,x!==null&&x.tag===6?(n(g,x.sibling),x=a(x,b),x.return=g,g=x):(n(g,x),x=ly(b,g.mode,w),x.return=g,g=x),o(g)):n(g,x)}return v}var Rc=OC(!0),PC=OC(!1),Mf=co(null),Df=null,tc=null,B1=null;function W1(){B1=tc=Df=null}function U1(e){var t=Mf.current;Rt(Mf),e._currentValue=t}function eb(e,t,n){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===n)break;e=e.return}}function cc(e,t){Df=e,B1=tc=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(vn=!0),e.firstContext=null)}function rs(e){var t=e._currentValue;if(B1!==e)if(e={context:e,memoizedValue:t,next:null},tc===null){if(Df===null)throw Error(fe(308));tc=e,Df.dependencies={lanes:0,firstContext:e}}else tc=tc.next=e;return t}var Io=null;function q1(e){Io===null?Io=[e]:Io.push(e)}function AC(e,t,n,s){var a=t.interleaved;return a===null?(n.next=n,q1(t)):(n.next=a.next,a.next=n),t.interleaved=n,Wa(e,s)}function Wa(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var pi=!1;function H1(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function IC(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ma(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ui(e,t,n){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,ct&2){var a=s.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),s.pending=t,Wa(e,n)}return a=s.interleaved,a===null?(t.next=t,q1(s)):(t.next=a.next,a.next=t),s.interleaved=t,Wa(e,n)}function ef(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,T1(e,n)}}function r2(e,t){var n=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,n===s)){var a=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?a=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?a=i=t:i=i.next=t}else a=i=t;n={baseState:s.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:s.shared,effects:s.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ff(e,t,n,s){var a=e.updateQueue;pi=!1;var i=a.firstBaseUpdate,o=a.lastBaseUpdate,l=a.shared.pending;if(l!==null){a.shared.pending=null;var c=l,d=c.next;c.next=null,o===null?i=d:o.next=d,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,l=u.lastBaseUpdate,l!==o&&(l===null?u.firstBaseUpdate=d:l.next=d,u.lastBaseUpdate=c))}if(i!==null){var h=a.baseState;o=0,u=d=c=null,l=i;do{var f=l.lane,m=l.eventTime;if((s&f)===f){u!==null&&(u=u.next={eventTime:m,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var y=e,p=l;switch(f=t,m=n,p.tag){case 1:if(y=p.payload,typeof y=="function"){h=y.call(m,h,f);break e}h=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=p.payload,f=typeof y=="function"?y.call(m,h,f):y,f==null)break e;h=Ht({},h,f);break e;case 2:pi=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,f=a.effects,f===null?a.effects=[l]:f.push(l))}else m={eventTime:m,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},u===null?(d=u=m,c=h):u=u.next=m,o|=f;if(l=l.next,l===null){if(l=a.shared.pending,l===null)break;f=l,l=f.next,f.next=null,a.lastBaseUpdate=f,a.shared.pending=null}}while(!0);if(u===null&&(c=h),a.baseState=c,a.firstBaseUpdate=d,a.lastBaseUpdate=u,t=a.shared.interleaved,t!==null){a=t;do o|=a.lane,a=a.next;while(a!==t)}else i===null&&(a.shared.lanes=0);rl|=o,e.lanes=o,e.memoizedState=h}}function n2(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var s=e[t],a=s.callback;if(a!==null){if(s.callback=null,s=n,typeof a!="function")throw Error(fe(191,a));a.call(s)}}}var Eh={},ca=co(Eh),Mu=co(Eh),Du=co(Eh);function Ro(e){if(e===Eh)throw Error(fe(174));return e}function z1(e,t){switch(Et(Du,t),Et(Mu,e),Et(ca,Eh),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Iv(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Iv(t,e)}Rt(ca),Et(ca,t)}function Mc(){Rt(ca),Rt(Mu),Rt(Du)}function RC(e){Ro(Du.current);var t=Ro(ca.current),n=Iv(t,e.type);t!==n&&(Et(Mu,e),Et(ca,n))}function G1(e){Mu.current===e&&(Rt(ca),Rt(Mu))}var Wt=co(0);function Lf(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ry=[];function Y1(){for(var e=0;e<ry.length;e++)ry[e]._workInProgressVersionPrimary=null;ry.length=0}var tf=Va.ReactCurrentDispatcher,ny=Va.ReactCurrentBatchConfig,tl=0,Ut=null,hr=null,br=null,Bf=!1,fu=!1,Fu=0,HR=0;function Pr(){throw Error(fe(321))}function V1(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!As(e[n],t[n]))return!1;return!0}function K1(e,t,n,s,a,i){if(tl=i,Ut=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,tf.current=e===null||e.memoizedState===null?VR:KR,e=n(s,a),fu){i=0;do{if(fu=!1,Fu=0,25<=i)throw Error(fe(301));i+=1,br=hr=null,t.updateQueue=null,tf.current=QR,e=n(s,a)}while(fu)}if(tf.current=Wf,t=hr!==null&&hr.next!==null,tl=0,br=hr=Ut=null,Bf=!1,t)throw Error(fe(300));return e}function Q1(){var e=Fu!==0;return Fu=0,e}function Qs(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return br===null?Ut.memoizedState=br=e:br=br.next=e,br}function ns(){if(hr===null){var e=Ut.alternate;e=e!==null?e.memoizedState:null}else e=hr.next;var t=br===null?Ut.memoizedState:br.next;if(t!==null)br=t,hr=e;else{if(e===null)throw Error(fe(310));hr=e,e={memoizedState:hr.memoizedState,baseState:hr.baseState,baseQueue:hr.baseQueue,queue:hr.queue,next:null},br===null?Ut.memoizedState=br=e:br=br.next=e}return br}function Lu(e,t){return typeof t=="function"?t(e):t}function sy(e){var t=ns(),n=t.queue;if(n===null)throw Error(fe(311));n.lastRenderedReducer=e;var s=hr,a=s.baseQueue,i=n.pending;if(i!==null){if(a!==null){var o=a.next;a.next=i.next,i.next=o}s.baseQueue=a=i,n.pending=null}if(a!==null){i=a.next,s=s.baseState;var l=o=null,c=null,d=i;do{var u=d.lane;if((tl&u)===u)c!==null&&(c=c.next={lane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),s=d.hasEagerState?d.eagerState:e(s,d.action);else{var h={lane:u,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};c===null?(l=c=h,o=s):c=c.next=h,Ut.lanes|=u,rl|=u}d=d.next}while(d!==null&&d!==i);c===null?o=s:c.next=l,As(s,t.memoizedState)||(vn=!0),t.memoizedState=s,t.baseState=o,t.baseQueue=c,n.lastRenderedState=s}if(e=n.interleaved,e!==null){a=e;do i=a.lane,Ut.lanes|=i,rl|=i,a=a.next;while(a!==e)}else a===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ay(e){var t=ns(),n=t.queue;if(n===null)throw Error(fe(311));n.lastRenderedReducer=e;var s=n.dispatch,a=n.pending,i=t.memoizedState;if(a!==null){n.pending=null;var o=a=a.next;do i=e(i,o.action),o=o.next;while(o!==a);As(i,t.memoizedState)||(vn=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,s]}function MC(){}function DC(e,t){var n=Ut,s=ns(),a=t(),i=!As(s.memoizedState,a);if(i&&(s.memoizedState=a,vn=!0),s=s.queue,Z1(BC.bind(null,n,s,e),[e]),s.getSnapshot!==t||i||br!==null&&br.memoizedState.tag&1){if(n.flags|=2048,Bu(9,LC.bind(null,n,s,a,t),void 0,null),wr===null)throw Error(fe(349));tl&30||FC(n,t,a)}return a}function FC(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ut.updateQueue,t===null?(t={lastEffect:null,stores:null},Ut.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function LC(e,t,n,s){t.value=n,t.getSnapshot=s,WC(t)&&UC(e)}function BC(e,t,n){return n(function(){WC(t)&&UC(e)})}function WC(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!As(e,n)}catch{return!0}}function UC(e){var t=Wa(e,1);t!==null&&Ts(t,e,1,-1)}function s2(e){var t=Qs();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Lu,lastRenderedState:e},t.queue=e,e=e.dispatch=YR.bind(null,Ut,e),[t.memoizedState,e]}function Bu(e,t,n,s){return e={tag:e,create:t,destroy:n,deps:s,next:null},t=Ut.updateQueue,t===null?(t={lastEffect:null,stores:null},Ut.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(s=n.next,n.next=e,e.next=s,t.lastEffect=e)),e}function qC(){return ns().memoizedState}function rf(e,t,n,s){var a=Qs();Ut.flags|=e,a.memoizedState=Bu(1|t,n,void 0,s===void 0?null:s)}function Qp(e,t,n,s){var a=ns();s=s===void 0?null:s;var i=void 0;if(hr!==null){var o=hr.memoizedState;if(i=o.destroy,s!==null&&V1(s,o.deps)){a.memoizedState=Bu(t,n,i,s);return}}Ut.flags|=e,a.memoizedState=Bu(1|t,n,i,s)}function a2(e,t){return rf(8390656,8,e,t)}function Z1(e,t){return Qp(2048,8,e,t)}function HC(e,t){return Qp(4,2,e,t)}function zC(e,t){return Qp(4,4,e,t)}function GC(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function YC(e,t,n){return n=n!=null?n.concat([e]):null,Qp(4,4,GC.bind(null,t,e),n)}function X1(){}function VC(e,t){var n=ns();t=t===void 0?null:t;var s=n.memoizedState;return s!==null&&t!==null&&V1(t,s[1])?s[0]:(n.memoizedState=[e,t],e)}function KC(e,t){var n=ns();t=t===void 0?null:t;var s=n.memoizedState;return s!==null&&t!==null&&V1(t,s[1])?s[0]:(e=e(),n.memoizedState=[e,t],e)}function QC(e,t,n){return tl&21?(As(n,t)||(n=tC(),Ut.lanes|=n,rl|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,vn=!0),e.memoizedState=n)}function zR(e,t){var n=jt;jt=n!==0&&4>n?n:4,e(!0);var s=ny.transition;ny.transition={};try{e(!1),t()}finally{jt=n,ny.transition=s}}function ZC(){return ns().memoizedState}function GR(e,t,n){var s=Hi(e);if(n={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null},XC(e))JC(t,n);else if(n=AC(e,t,n,s),n!==null){var a=Zr();Ts(n,e,s,a),e5(n,t,s)}}function YR(e,t,n){var s=Hi(e),a={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null};if(XC(e))JC(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,l=i(o,n);if(a.hasEagerState=!0,a.eagerState=l,As(l,o)){var c=t.interleaved;c===null?(a.next=a,q1(t)):(a.next=c.next,c.next=a),t.interleaved=a;return}}catch{}finally{}n=AC(e,t,a,s),n!==null&&(a=Zr(),Ts(n,e,s,a),e5(n,t,s))}}function XC(e){var t=e.alternate;return e===Ut||t!==null&&t===Ut}function JC(e,t){fu=Bf=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function e5(e,t,n){if(n&4194240){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,T1(e,n)}}var Wf={readContext:rs,useCallback:Pr,useContext:Pr,useEffect:Pr,useImperativeHandle:Pr,useInsertionEffect:Pr,useLayoutEffect:Pr,useMemo:Pr,useReducer:Pr,useRef:Pr,useState:Pr,useDebugValue:Pr,useDeferredValue:Pr,useTransition:Pr,useMutableSource:Pr,useSyncExternalStore:Pr,useId:Pr,unstable_isNewReconciler:!1},VR={readContext:rs,useCallback:function(e,t){return Qs().memoizedState=[e,t===void 0?null:t],e},useContext:rs,useEffect:a2,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,rf(4194308,4,GC.bind(null,t,e),n)},useLayoutEffect:function(e,t){return rf(4194308,4,e,t)},useInsertionEffect:function(e,t){return rf(4,2,e,t)},useMemo:function(e,t){var n=Qs();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var s=Qs();return t=n!==void 0?n(t):t,s.memoizedState=s.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},s.queue=e,e=e.dispatch=GR.bind(null,Ut,e),[s.memoizedState,e]},useRef:function(e){var t=Qs();return e={current:e},t.memoizedState=e},useState:s2,useDebugValue:X1,useDeferredValue:function(e){return Qs().memoizedState=e},useTransition:function(){var e=s2(!1),t=e[0];return e=zR.bind(null,e[1]),Qs().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var s=Ut,a=Qs();if(Dt){if(n===void 0)throw Error(fe(407));n=n()}else{if(n=t(),wr===null)throw Error(fe(349));tl&30||FC(s,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,a2(BC.bind(null,s,i,e),[e]),s.flags|=2048,Bu(9,LC.bind(null,s,i,n,t),void 0,null),n},useId:function(){var e=Qs(),t=wr.identifierPrefix;if(Dt){var n=Ia,s=Aa;n=(s&~(1<<32-Es(s)-1)).toString(32)+n,t=":"+t+"R"+n,n=Fu++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=HR++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},KR={readContext:rs,useCallback:VC,useContext:rs,useEffect:Z1,useImperativeHandle:YC,useInsertionEffect:HC,useLayoutEffect:zC,useMemo:KC,useReducer:sy,useRef:qC,useState:function(){return sy(Lu)},useDebugValue:X1,useDeferredValue:function(e){var t=ns();return QC(t,hr.memoizedState,e)},useTransition:function(){var e=sy(Lu)[0],t=ns().memoizedState;return[e,t]},useMutableSource:MC,useSyncExternalStore:DC,useId:ZC,unstable_isNewReconciler:!1},QR={readContext:rs,useCallback:VC,useContext:rs,useEffect:Z1,useImperativeHandle:YC,useInsertionEffect:HC,useLayoutEffect:zC,useMemo:KC,useReducer:ay,useRef:qC,useState:function(){return ay(Lu)},useDebugValue:X1,useDeferredValue:function(e){var t=ns();return hr===null?t.memoizedState=e:QC(t,hr.memoizedState,e)},useTransition:function(){var e=ay(Lu)[0],t=ns().memoizedState;return[e,t]},useMutableSource:MC,useSyncExternalStore:DC,useId:ZC,unstable_isNewReconciler:!1};function vs(e,t){if(e&&e.defaultProps){t=Ht({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function tb(e,t,n,s){t=e.memoizedState,n=n(s,t),n=n==null?t:Ht({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Zp={isMounted:function(e){return(e=e._reactInternals)?fl(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var s=Zr(),a=Hi(e),i=Ma(s,a);i.payload=t,n!=null&&(i.callback=n),t=Ui(e,i,a),t!==null&&(Ts(t,e,a,s),ef(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var s=Zr(),a=Hi(e),i=Ma(s,a);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ui(e,i,a),t!==null&&(Ts(t,e,a,s),ef(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Zr(),s=Hi(e),a=Ma(n,s);a.tag=2,t!=null&&(a.callback=t),t=Ui(e,a,s),t!==null&&(Ts(t,e,s,n),ef(t,e,s))}};function i2(e,t,n,s,a,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,i,o):t.prototype&&t.prototype.isPureReactComponent?!Pu(n,s)||!Pu(a,i):!0}function t5(e,t,n){var s=!1,a=Zi,i=t.contextType;return typeof i=="object"&&i!==null?i=rs(i):(a=_n(t)?Jo:Br.current,s=t.contextTypes,i=(s=s!=null)?Ac(e,a):Zi),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Zp,e.stateNode=t,t._reactInternals=e,s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=i),t}function o2(e,t,n,s){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,s),t.state!==e&&Zp.enqueueReplaceState(t,t.state,null)}function rb(e,t,n,s){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs={},H1(e);var i=t.contextType;typeof i=="object"&&i!==null?a.context=rs(i):(i=_n(t)?Jo:Br.current,a.context=Ac(e,i)),a.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(tb(e,t,i,n),a.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(t=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),t!==a.state&&Zp.enqueueReplaceState(a,a.state,null),Ff(e,n,a,s),a.state=e.memoizedState),typeof a.componentDidMount=="function"&&(e.flags|=4194308)}function Dc(e,t){try{var n="",s=t;do n+=k9(s),s=s.return;while(s);var a=n}catch(i){a=` 39Error generating stack: `+i.message+` 40`+i.stack}return{value:e,source:t,stack:a,digest:null}}function iy(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function nb(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var ZR=typeof WeakMap=="function"?WeakMap:Map;function r5(e,t,n){n=Ma(-1,n),n.tag=3,n.payload={element:null};var s=t.value;return n.callback=function(){qf||(qf=!0,mb=s),nb(e,t)},n}
vendor: 9,630 bytes, line 40
40function n5(e,t,n){n=Ma(-1,n),n.tag=3;var s=e.type.getDerivedStateFromError;if(typeof s=="function"){var a=t.value;n.payload=function(){return s(a)},n.callback=function(){nb(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){nb(e,t),typeof s!="function"&&(qi===null?qi=new Set([this]):qi.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function l2(e,t,n){var s=e.pingCache;if(s===null){s=e.pingCache=new ZR;var a=new Set;s.set(t,a)}else a=s.get(t),a===void 0&&(a=new Set,s.set(t,a));a.has(n)||(a.add(n),e=uM.bind(null,e,t,n),t.then(e,e))}function c2(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function d2(e,t,n,s,a){return e.mode&1?(e.flags|=65536,e.lanes=a,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Ma(-1,1),t.tag=2,Ui(n,t,1))),n.lanes|=1),e)}var XR=Va.ReactCurrentOwner,vn=!1;function Yr(e,t,n,s){t.child=e===null?PC(t,null,n,s):Rc(t,e.child,n,s)}function u2(e,t,n,s,a){n=n.render;var i=t.ref;return cc(t,a),s=K1(e,t,n,s,i,a),n=Q1(),e!==null&&!vn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Ua(e,t,a)):(Dt&&n&&D1(t),t.flags|=1,Yr(e,t,s,a),t.child)}function h2(e,t,n,s,a){if(e===null){var i=n.type;return typeof i=="function"&&!iw(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,s5(e,t,i,s,a)):(e=of(n.type,null,s,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&a)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:Pu,n(o,s)&&e.ref===t.ref)return Ua(e,t,a)}return t.flags|=1,e=zi(i,s),e.ref=t.ref,e.return=t,t.child=e}function s5(e,t,n,s,a){if(e!==null){var i=e.memoizedProps;if(Pu(i,s)&&e.ref===t.ref)if(vn=!1,t.pendingProps=s=i,(e.lanes&a)!==0)e.flags&131072&&(vn=!0);else return t.lanes=e.lanes,Ua(e,t,a)}return sb(e,t,n,s,a)}function a5(e,t,n){var s=t.pendingProps,a=s.children,i=e!==null?e.memoizedState:null;if(s.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Et(nc,On),On|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Et(nc,On),On|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},s=i!==null?i.baseLanes:n,Et(nc,On),On|=s}else i!==null?(s=i.baseLanes|n,t.memoizedState=null):s=n,Et(nc,On),On|=s;return Yr(e,t,a,n),t.child}function i5(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function sb(e,t,n,s,a){var i=_n(n)?Jo:Br.current;return i=Ac(t,i),cc(t,a),n=K1(e,t,n,s,i,a),s=Q1(),e!==null&&!vn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Ua(e,t,a)):(Dt&&s&&D1(t),t.flags|=1,Yr(e,t,n,a),t.child)}function m2(e,t,n,s,a){if(_n(n)){var i=!0;Af(t)}else i=!1;if(cc(t,a),t.stateNode===null)nf(e,t),t5(t,n,s),rb(t,n,s,a),s=!0;else if(e===null){var o=t.stateNode,l=t.memoizedProps;o.props=l;var c=o.context,d=n.contextType;typeof d=="object"&&d!==null?d=rs(d):(d=_n(n)?Jo:Br.current,d=Ac(t,d));var u=n.getDerivedStateFromProps,h=typeof u=="function"||typeof o.getSnapshotBeforeUpdate=="function";h||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==s||c!==d)&&o2(t,o,s,d),pi=!1;var f=t.memoizedState;o.state=f,Ff(t,s,o,a),c=t.memoizedState,l!==s||f!==c||kn.current||pi?(typeof u=="function"&&(tb(t,n,u,s),c=t.memoizedState),(l=pi||i2(t,n,l,s,f,c,d))?(h||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=c),o.props=s,o.state=c,o.context=d,s=l):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{o=t.stateNode,IC(e,t),l=t.memoizedProps,d=t.type===t.elementType?l:vs(t.type,l),o.props=d,h=t.pendingProps,f=o.context,c=n.contextType,typeof c=="object"&&c!==null?c=rs(c):(c=_n(n)?Jo:Br.current,c=Ac(t,c));var m=n.getDerivedStateFromProps;(u=typeof m=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==h||f!==c)&&o2(t,o,s,c),pi=!1,f=t.memoizedState,o.state=f,Ff(t,s,o,a);var y=t.memoizedState;l!==h||f!==y||kn.current||pi?(typeof m=="function"&&(tb(t,n,m,s),y=t.memoizedState),(d=pi||i2(t,n,d,s,f,y,c)||!1)?(u||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(s,y,c),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(s,y,c)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=y),o.props=s,o.state=y,o.context=c,s=d):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),s=!1)}return ab(e,t,n,s,i,a)}function ab(e,t,n,s,a,i){i5(e,t);var o=(t.flags&128)!==0;if(!s&&!o)return a&&XN(t,n,!1),Ua(e,t,i);s=t.stateNode,XR.current=t;var l=o&&typeof n.getDerivedStateFromError!="function"?null:s.render();return t.flags|=1,e!==null&&o?(t.child=Rc(t,e.child,null,i),t.child=Rc(t,null,l,i)):Yr(e,t,l,i),t.memoizedState=s.state,a&&XN(t,n,!0),t.child}function o5(e){var t=e.stateNode;t.pendingContext?ZN(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ZN(e,t.context,!1),z1(e,t.containerInfo)}function f2(e,t,n,s,a){return Ic(),L1(a),t.flags|=256,Yr(e,t,n,s),t.child}var ib={dehydrated:null,treeContext:null,retryLane:0};function ob(e){return{baseLanes:e,cachePool:null,transitions:null}}function l5(e,t,n){var s=t.pendingProps,a=Wt.current,i=!1,o=(t.flags&128)!==0,l;if((l=o)||(l=e!==null&&e.memoizedState===null?!1:(a&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),Et(Wt,a&1),e===null)return Jv(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=s.children,e=s.fallback,i?(s=t.mode,i=t.child,o={mode:"hidden",children:o},!(s&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=eg(o,s,0,null),e=Vo(e,s,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=ob(n),t.memoizedState=ib,e):J1(t,o));if(a=e.memoizedState,a!==null&&(l=a.dehydrated,l!==null))return JR(e,t,o,s,l,a,n);if(i){i=s.fallback,o=t.mode,a=e.child,l=a.sibling;var c={mode:"hidden",children:s.children};return!(o&1)&&t.child!==a?(s=t.child,s.childLanes=0,s.pendingProps=c,t.deletions=null):(s=zi(a,c),s.subtreeFlags=a.subtreeFlags&14680064),l!==null?i=zi(l,i):(i=Vo(i,o,n,null),i.flags|=2),i.return=t,s.return=t,s.sibling=i,t.child=s,s=i,i=t.child,o=e.child.memoizedState,o=o===null?ob(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=ib,s}return i=e.child,e=i.sibling,s=zi(i,{mode:"visible",children:s.children}),!(t.mode&1)&&(s.lanes=n),s.return=t,s.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=s,t.memoizedState=null,s}function J1(e,t){return t=eg({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ym(e,t,n,s){return s!==null&&L1(s),Rc(t,e.child,null,n),e=J1(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function JR(e,t,n,s,a,i,o){if(n)return t.flags&256?(t.flags&=-257,s=iy(Error(fe(422))),ym(e,t,o,s)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=s.fallback,a=t.mode,s=eg({mode:"visible",children:s.children},a,0,null),i=Vo(i,a,o,null),i.flags|=2,s.return=t,i.return=t,s.sibling=i,t.child=s,t.mode&1&&Rc(t,e.child,null,o),t.child.memoizedState=ob(o),t.memoizedState=ib,i);if(!(t.mode&1))return ym(e,t,o,null);if(a.data==="$!"){if(s=a.nextSibling&&a.nextSibling.dataset,s)var l=s.dgst;return s=l,i=Error(fe(419)),s=iy(i,s,void 0),ym(e,t,o,s)}if(l=(o&e.childLanes)!==0,vn||l){if(s=wr,s!==null){switch(o&-o){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=a&(s.suspendedLanes|o)?0:a,a!==0&&a!==i.retryLane&&(i.retryLane=a,Wa(e,a),Ts(s,e,a,-1))}return aw(),s=iy(Error(fe(421))),ym(e,t,o,s)}return a.data==="$?"?(t.flags|=128,t.child=e.child,t=hM.bind(null,e),a._reactRetry=t,null):(e=i.treeContext,Rn=Wi(a.nextSibling),Dn=t,Dt=!0,ks=null,e!==null&&(Zn[Xn++]=Aa,Zn[Xn++]=Ia,Zn[Xn++]=el,Aa=e.id,Ia=e.overflow,el=t),t=J1(t,s.children),t.flags|=4096,t)}function p2(e,t,n){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),eb(e.return,t,n)}function oy(e,t,n,s,a){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:n,tailMode:a}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=s,i.tail=n,i.tailMode=a)}
vendor: 4,825 bytes, line 40
40function c5(e,t,n){var s=t.pendingProps,a=s.revealOrder,i=s.tail;if(Yr(e,t,s.children,n),s=Wt.current,s&2)s=s&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&p2(e,n,t);else if(e.tag===19)p2(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}s&=1}if(Et(Wt,s),!(t.mode&1))t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;n!==null;)e=n.alternate,e!==null&&Lf(e)===null&&(a=n),n=n.sibling;n=a,n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),oy(t,!1,a,n,i);break;case"backwards":for(n=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&Lf(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}oy(t,!0,n,null,i);break;case"together":oy(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function nf(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ua(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),rl|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(fe(153));if(t.child!==null){for(e=t.child,n=zi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=zi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function eM(e,t,n){switch(t.tag){case 3:o5(t),Ic();break;case 5:RC(t);break;case 1:_n(t.type)&&Af(t);break;case 4:z1(t,t.stateNode.containerInfo);break;case 10:var s=t.type._context,a=t.memoizedProps.value;Et(Mf,s._currentValue),s._currentValue=a;break;case 13:if(s=t.memoizedState,s!==null)return s.dehydrated!==null?(Et(Wt,Wt.current&1),t.flags|=128,null):n&t.child.childLanes?l5(e,t,n):(Et(Wt,Wt.current&1),e=Ua(e,t,n),e!==null?e.sibling:null);Et(Wt,Wt.current&1);break;case 19:if(s=(n&t.childLanes)!==0,e.flags&128){if(s)return c5(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Et(Wt,Wt.current),s)break;return null;case 22:case 23:return t.lanes=0,a5(e,t,n)}return Ua(e,t,n)}var d5,lb,u5,h5;d5=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};lb=function(){};u5=function(e,t,n,s){var a=e.memoizedProps;if(a!==s){e=t.stateNode,Ro(ca.current);var i=null;switch(n){case"input":a=$v(e,a),s=$v(e,s),i=[];break;case"select":a=Ht({},a,{value:void 0}),s=Ht({},s,{value:void 0}),i=[];break;case"textarea":a=Av(e,a),s=Av(e,s),i=[];break;default:typeof a.onClick!="function"&&typeof s.onClick=="function"&&(e.onclick=Of)}Rv(n,s);var o;n=null;for(d in a)if(!s.hasOwnProperty(d)&&a.hasOwnProperty(d)&&a[d]!=null)if(d==="style"){var l=a[d];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(_u.hasOwnProperty(d)?i||(i=[]):(i=i||[]).push(d,null));for(d in s){var c=s[d];if(l=a!=null?a[d]:void 0,s.hasOwnProperty(d)&&c!==l&&(c!=null||l!=null))if(d==="style")if(l){for(o in l)!l.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&l[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(i||(i=[]),i.push(d,n)),n=c;else d==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,l=l?l.__html:void 0,c!=null&&l!==c&&(i=i||[]).push(d,c)):d==="children"?typeof c!="string"&&typeof c!="number"||(i=i||[]).push(d,""+c):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(_u.hasOwnProperty(d)?(c!=null&&d==="onScroll"&&Ot("scroll",e),i||l===c||(i=[])):(i=i||[]).push(d,c))}n&&(i=i||[]).push("style",n);var d=i;(t.updateQueue=d)&&(t.flags|=4)}};h5=function(e,t,n,s){n!==s&&(t.flags|=4)};function Od(e,t){if(!Dt)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var s=null;n!==null;)n.alternate!==null&&(s=n),n=n.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function Ar(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,s=0;if(t)for(var a=e.child;a!==null;)n|=a.lanes|a.childLanes,s|=a.subtreeFlags&14680064,s|=a.flags&14680064,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)n|=a.lanes|a.childLanes,s|=a.subtreeFlags,s|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=s,e.childLanes=n,t}function tM(e,t,n){var s=t.pendingProps;switch(F1(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ar(t),null;case 1:return _n(t.type)&&Pf(),Ar(t),null;
vendor: 30,680 bytes, line 40
40case 3:return s=t.stateNode,Mc(),Rt(kn),Rt(Br),Y1(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(gm(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ks!==null&&(gb(ks),ks=null))),lb(e,t),Ar(t),null;case 5:G1(t);var a=Ro(Du.current);if(n=t.type,e!==null&&t.stateNode!=null)u5(e,t,n,s,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!s){if(t.stateNode===null)throw Error(fe(166));return Ar(t),null}if(e=Ro(ca.current),gm(t)){s=t.stateNode,n=t.type;var i=t.memoizedProps;switch(s[ta]=t,s[Ru]=i,e=(t.mode&1)!==0,n){case"dialog":Ot("cancel",s),Ot("close",s);break;case"iframe":case"object":case"embed":Ot("load",s);break;case"video":case"audio":for(a=0;a<ru.length;a++)Ot(ru[a],s);break;case"source":Ot("error",s);break;case"img":case"image":case"link":Ot("error",s),Ot("load",s);break;case"details":Ot("toggle",s);break;case"input":kN(s,i),Ot("invalid",s);break;case"select":s._wrapperState={wasMultiple:!!i.multiple},Ot("invalid",s);break;case"textarea":SN(s,i),Ot("invalid",s)}Rv(n,i),a=null;for(var o in i)if(i.hasOwnProperty(o)){var l=i[o];o==="children"?typeof l=="string"?s.textContent!==l&&(i.suppressHydrationWarning!==!0&&pm(s.textContent,l,e),a=["children",l]):typeof l=="number"&&s.textContent!==""+l&&(i.suppressHydrationWarning!==!0&&pm(s.textContent,l,e),a=["children",""+l]):_u.hasOwnProperty(o)&&l!=null&&o==="onScroll"&&Ot("scroll",s)}switch(n){case"input":om(s),_N(s,i,!0);break;case"textarea":om(s),CN(s);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(s.onclick=Of)}s=a,t.updateQueue=s,s!==null&&(t.flags|=4)}else{o=a.nodeType===9?a:a.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=B4(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof s.is=="string"?e=o.createElement(n,{is:s.is}):(e=o.createElement(n),n==="select"&&(o=e,s.multiple?o.multiple=!0:s.size&&(o.size=s.size))):e=o.createElementNS(e,n),e[ta]=t,e[Ru]=s,d5(e,t,!1,!1),t.stateNode=e;e:{switch(o=Mv(n,s),n){case"dialog":Ot("cancel",e),Ot("close",e),a=s;break;case"iframe":case"object":case"embed":Ot("load",e),a=s;break;case"video":case"audio":for(a=0;a<ru.length;a++)Ot(ru[a],e);a=s;break;case"source":Ot("error",e),a=s;break;case"img":case"image":case"link":Ot("error",e),Ot("load",e),a=s;break;case"details":Ot("toggle",e),a=s;break;case"input":kN(e,s),a=$v(e,s),Ot("invalid",e);break;case"option":a=s;break;case"select":e._wrapperState={wasMultiple:!!s.multiple},a=Ht({},s,{value:void 0}),Ot("invalid",e);break;case"textarea":SN(e,s),a=Av(e,s),Ot("invalid",e);break;default:a=s}Rv(n,a),l=a;for(i in l)if(l.hasOwnProperty(i)){var c=l[i];i==="style"?q4(e,c):i==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&W4(e,c)):i==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&Su(e,c):typeof c=="number"&&Su(e,""+c):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(_u.hasOwnProperty(i)?c!=null&&i==="onScroll"&&Ot("scroll",e):c!=null&&N1(e,i,c,o))}switch(n){case"input":om(e),_N(e,s,!1);break;case"textarea":om(e),CN(e);break;case"option":s.value!=null&&e.setAttribute("value",""+Qi(s.value));break;case"select":e.multiple=!!s.multiple,i=s.value,i!=null?ac(e,!!s.multiple,i,!1):s.defaultValue!=null&&ac(e,!!s.multiple,s.defaultValue,!0);break;default:typeof a.onClick=="function"&&(e.onclick=Of)}switch(n){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}}s&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ar(t),null;case 6:if(e&&t.stateNode!=null)h5(e,t,e.memoizedProps,s);else{if(typeof s!="string"&&t.stateNode===null)throw Error(fe(166));if(n=Ro(Du.current),Ro(ca.current),gm(t)){if(s=t.stateNode,n=t.memoizedProps,s[ta]=t,(i=s.nodeValue!==n)&&(e=Dn,e!==null))switch(e.tag){case 3:pm(s.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&pm(s.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else s=(n.nodeType===9?n:n.ownerDocument).createTextNode(s),s[ta]=t,t.stateNode=s}return Ar(t),null;case 13:if(Rt(Wt),s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Dt&&Rn!==null&&t.mode&1&&!(t.flags&128))$C(),Ic(),t.flags|=98560,i=!1;else if(i=gm(t),s!==null&&s.dehydrated!==null){if(e===null){if(!i)throw Error(fe(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(fe(317));i[ta]=t}else Ic(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ar(t),i=!1}else ks!==null&&(gb(ks),ks=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(s=s!==null,s!==(e!==null&&e.memoizedState!==null)&&s&&(t.child.flags|=8192,t.mode&1&&(e===null||Wt.current&1?pr===0&&(pr=3):aw())),t.updateQueue!==null&&(t.flags|=4),Ar(t),null);case 4:return Mc(),lb(e,t),e===null&&Au(t.stateNode.containerInfo),Ar(t),null;case 10:return U1(t.type._context),Ar(t),null;case 17:return _n(t.type)&&Pf(),Ar(t),null;case 19:if(Rt(Wt),i=t.memoizedState,i===null)return Ar(t),null;if(s=(t.flags&128)!==0,o=i.rendering,o===null)if(s)Od(i,!1);else{if(pr!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Lf(e),o!==null){for(t.flags|=128,Od(i,!1),s=o.updateQueue,s!==null&&(t.updateQueue=s,t.flags|=4),t.subtreeFlags=0,s=n,n=t.child;n!==null;)i=n,e=s,i.flags&=14680066,o=i.alternate,o===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,e=o.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Et(Wt,Wt.current&1|2),t.child}e=e.sibling}i.tail!==null&&Xt()>Fc&&(t.flags|=128,s=!0,Od(i,!1),t.lanes=4194304)}else{if(!s)if(e=Lf(o),e!==null){if(t.flags|=128,s=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Od(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!Dt)return Ar(t),null}else 2*Xt()-i.renderingStartTime>Fc&&n!==1073741824&&(t.flags|=128,s=!0,Od(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Xt(),t.sibling=null,n=Wt.current,Et(Wt,s?n&1|2:n&1),t):(Ar(t),null);case 22:case 23:return sw(),s=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==s&&(t.flags|=8192),s&&t.mode&1?On&1073741824&&(Ar(t),t.subtreeFlags&6&&(t.flags|=8192)):Ar(t),null;case 24:return null;case 25:return null}throw Error(fe(156,t.tag))}function rM(e,t){switch(F1(t),t.tag){case 1:return _n(t.type)&&Pf(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Mc(),Rt(kn),Rt(Br),Y1(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return G1(t),null;case 13:if(Rt(Wt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(fe(340));Ic()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Rt(Wt),null;case 4:return Mc(),null;case 10:return U1(t.type._context),null;case 22:case 23:return sw(),null;case 24:return null;default:return null}}var vm=!1,Dr=!1,nM=typeof WeakSet=="function"?WeakSet:Set,Te=null;function rc(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(s){Vt(e,t,s)}else n.current=null}function cb(e,t,n){try{n()}catch(s){Vt(e,t,s)}}var g2=!1;function sM(e,t){if(Gv=Ef,e=xC(),M1(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var s=n.getSelection&&n.getSelection();if(s&&s.rangeCount!==0){n=s.anchorNode;var a=s.anchorOffset,i=s.focusNode;s=s.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,l=-1,c=-1,d=0,u=0,h=e,f=null;t:for(;;){for(var m;h!==n||a!==0&&h.nodeType!==3||(l=o+a),h!==i||s!==0&&h.nodeType!==3||(c=o+s),h.nodeType===3&&(o+=h.nodeValue.length),(m=h.firstChild)!==null;)f=h,h=m;for(;;){if(h===e)break t;if(f===n&&++d===a&&(l=o),f===i&&++u===s&&(c=o),(m=h.nextSibling)!==null)break;h=f,f=h.parentNode}h=m}n=l===-1||c===-1?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Yv={focusedElem:e,selectionRange:n},Ef=!1,Te=t;Te!==null;)if(t=Te,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Te=e;else for(;Te!==null;){t=Te;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var p=y.memoizedProps,v=y.memoizedState,g=t.stateNode,x=g.getSnapshotBeforeUpdate(t.elementType===t.type?p:vs(t.type,p),v);g.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(fe(163))}}catch(w){Vt(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,Te=e;break}Te=t.return}return y=g2,g2=!1,y}function pu(e,t,n){var s=t.updateQueue;if(s=s!==null?s.lastEffect:null,s!==null){var a=s=s.next;do{if((a.tag&e)===e){var i=a.destroy;a.destroy=void 0,i!==void 0&&cb(t,n,i)}a=a.next}while(a!==s)}}function Xp(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var s=n.create;n.destroy=s()}n=n.next}while(n!==t)}}function db(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function m5(e){var t=e.alternate;t!==null&&(e.alternate=null,m5(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ta],delete t[Ru],delete t[Qv],delete t[BR],delete t[WR])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function f5(e){return e.tag===5||e.tag===3||e.tag===4}function x2(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||f5(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ub(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Of));else if(s!==4&&(e=e.child,e!==null))for(ub(e,t,n),e=e.sibling;e!==null;)ub(e,t,n),e=e.sibling}function hb(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(s!==4&&(e=e.child,e!==null))for(hb(e,t,n),e=e.sibling;e!==null;)hb(e,t,n),e=e.sibling}var kr=null,js=!1;function ni(e,t,n){for(n=n.child;n!==null;)p5(e,t,n),n=n.sibling}function p5(e,t,n){if(la&&typeof la.onCommitFiberUnmount=="function")try{la.onCommitFiberUnmount(Hp,n)}catch{}switch(n.tag){case 5:Dr||rc(n,t);case 6:var s=kr,a=js;kr=null,ni(e,t,n),kr=s,js=a,kr!==null&&(js?(e=kr,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):kr.removeChild(n.stateNode));break;case 18:kr!==null&&(js?(e=kr,n=n.stateNode,e.nodeType===8?ey(e.parentNode,n):e.nodeType===1&&ey(e,n),$u(e)):ey(kr,n.stateNode));break;case 4:s=kr,a=js,kr=n.stateNode.containerInfo,js=!0,ni(e,t,n),kr=s,js=a;break;case 0:case 11:case 14:case 15:if(!Dr&&(s=n.updateQueue,s!==null&&(s=s.lastEffect,s!==null))){a=s=s.next;do{var i=a,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&cb(n,t,o),a=a.next}while(a!==s)}ni(e,t,n);break;case 1:if(!Dr&&(rc(n,t),s=n.stateNode,typeof s.componentWillUnmount=="function"))try{s.props=n.memoizedProps,s.state=n.memoizedState,s.componentWillUnmount()}catch(l){Vt(n,t,l)}ni(e,t,n);break;case 21:ni(e,t,n);break;case 22:n.mode&1?(Dr=(s=Dr)||n.memoizedState!==null,ni(e,t,n),Dr=s):ni(e,t,n);break;default:ni(e,t,n)}}function y2(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new nM),t.forEach(function(s){var a=mM.bind(null,e,s);n.has(s)||(n.add(s),s.then(a,a))})}}function ls(e,t){var n=t.deletions;if(n!==null)for(var s=0;s<n.length;s++){var a=n[s];try{var i=e,o=t,l=o;e:for(;l!==null;){switch(l.tag){case 5:kr=l.stateNode,js=!1;break e;case 3:kr=l.stateNode.containerInfo,js=!0;break e;case 4:kr=l.stateNode.containerInfo,js=!0;break e}l=l.return}if(kr===null)throw Error(fe(160));p5(i,o,a),kr=null,js=!1;var c=a.alternate;c!==null&&(c.return=null),a.return=null}catch(d){Vt(a,t,d)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)g5(t,e),t=t.sibling}function g5(e,t){var n=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ls(t,e),zs(e),s&4){try{pu(3,e,e.return),Xp(3,e)}catch(p){Vt(e,e.return,p)}try{pu(5,e,e.return)}catch(p){Vt(e,e.return,p)}}break;case 1:ls(t,e),zs(e),s&512&&n!==null&&rc(n,n.return);break;case 5:if(ls(t,e),zs(e),s&512&&n!==null&&rc(n,n.return),e.flags&32){var a=e.stateNode;try{Su(a,"")}catch(p){Vt(e,e.return,p)}}if(s&4&&(a=e.stateNode,a!=null)){var i=e.memoizedProps,o=n!==null?n.memoizedProps:i,l=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{l==="input"&&i.type==="radio"&&i.name!=null&&F4(a,i),Mv(l,o);var d=Mv(l,i);for(o=0;o<c.length;o+=2){var u=c[o],h=c[o+1];u==="style"?q4(a,h):u==="dangerouslySetInnerHTML"?W4(a,h):u==="children"?Su(a,h):N1(a,u,h,d)}switch(l){case"input":Ov(a,i);break;case"textarea":L4(a,i);break;case"select":var f=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!i.multiple;var m=i.value;m!=null?ac(a,!!i.multiple,m,!1):f!==!!i.multiple&&(i.defaultValue!=null?ac(a,!!i.multiple,i.defaultValue,!0):ac(a,!!i.multiple,i.multiple?[]:"",!1))}a[Ru]=i}catch(p){Vt(e,e.return,p)}}break;case 6:if(ls(t,e),zs(e),s&4){if(e.stateNode===null)throw Error(fe(162));a=e.stateNode,i=e.memoizedProps;try{a.nodeValue=i}catch(p){Vt(e,e.return,p)}}break;case 3:if(ls(t,e),zs(e),s&4&&n!==null&&n.memoizedState.isDehydrated)try{$u(t.containerInfo)}catch(p){Vt(e,e.return,p)}break;case 4:ls(t,e),zs(e);break;case 13:ls(t,e),zs(e),a=e.child,a.flags&8192&&(i=a.memoizedState!==null,a.stateNode.isHidden=i,!i||a.alternate!==null&&a.alternate.memoizedState!==null||(rw=Xt())),s&4&&y2(e);break;case 22:if(u=n!==null&&n.memoizedState!==null,e.mode&1?(Dr=(d=Dr)||u,ls(t,e),Dr=d):ls(t,e),zs(e),s&8192){if(d=e.memoizedState!==null,(e.stateNode.isHidden=d)&&!u&&e.mode&1)for(Te=e,u=e.child;u!==null;){for(h=Te=u;Te!==null;){switch(f=Te,m=f.child,f.tag){case 0:case 11:case 14:case 15:pu(4,f,f.return);break;case 1:rc(f,f.return);var y=f.stateNode;if(typeof y.componentWillUnmount=="function"){s=f,n=f.return;try{t=s,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(p){Vt(s,n,p)}}break;case 5:rc(f,f.return);break;case 22:if(f.memoizedState!==null){b2(h);continue}}m!==null?(m.return=f,Te=m):b2(h)}u=u.sibling}e:for(u=null,h=e;;){if(h.tag===5){if(u===null){u=h;try{a=h.stateNode,d?(i=a.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(l=h.stateNode,c=h.memoizedProps.style,o=c!=null&&c.hasOwnProperty("display")?c.display:null,l.style.display=U4("display",o))}catch(p){Vt(e,e.return,p)}}}else if(h.tag===6){if(u===null)try{h.stateNode.nodeValue=d?"":h.memoizedProps}catch(p){Vt(e,e.return,p)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;u===h&&(u=null),h=h.return}u===h&&(u=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:ls(t,e),zs(e),s&4&&y2(e);break;case 21:break;default:ls(t,e),zs(e)}}function zs(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(f5(n)){var s=n;break e}n=n.return}throw Error(fe(160))}switch(s.tag){case 5:var a=s.stateNode;s.flags&32&&(Su(a,""),s.flags&=-33);var i=x2(e);hb(e,i,a);break;case 3:case 4:var o=s.stateNode.containerInfo,l=x2(e);ub(e,l,o);break;default:throw Error(fe(161))}}catch(c){Vt(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function aM(e,t,n){Te=e,x5(e)}function x5(e,t,n){for(var s=(e.mode&1)!==0;Te!==null;){var a=Te,i=a.child;if(a.tag===22&&s){var o=a.memoizedState!==null||vm;if(!o){var l=a.alternate,c=l!==null&&l.memoizedState!==null||Dr;l=vm;var d=Dr;if(vm=o,(Dr=c)&&!d)for(Te=a;Te!==null;)o=Te,c=o.child,o.tag===22&&o.memoizedState!==null?w2(a):c!==null?(c.return=o,Te=c):w2(a);for(;i!==null;)Te=i,x5(i),i=i.sibling;Te=a,vm=l,Dr=d}v2(e)}else a.subtreeFlags&8772&&i!==null?(i.return=a,Te=i):v2(e)}}function v2(e){for(;Te!==null;){var t=Te;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Dr||Xp(5,t);break;case 1:var s=t.stateNode;if(t.flags&4&&!Dr)if(n===null)s.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:vs(t.type,n.memoizedProps);s.componentDidUpdate(a,n.memoizedState,s.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&n2(t,i,s);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}n2(t,o,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var d=t.alternate;if(d!==null){var u=d.memoizedState;if(u!==null){var h=u.dehydrated;h!==null&&$u(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(fe(163))}Dr||t.flags&512&&db(t)}catch(f){Vt(t,t.return,f)}}if(t===e){Te=null;break}if(n=t.sibling,n!==null){n.return=t.return,Te=n;break}Te=t.return}}function b2(e){for(;Te!==null;){var t=Te;if(t===e){Te=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Te=n;break}Te=t.return}}function w2(e){for(;Te!==null;){var t=Te;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Xp(4,t)}catch(c){Vt(t,n,c)}break;case 1:var s=t.stateNode;if(typeof s.componentDidMount=="function"){var a=t.return;try{s.componentDidMount()}catch(c){Vt(t,a,c)}}var i=t.return;try{db(t)}catch(c){Vt(t,i,c)}break;case 5:var o=t.return;try{db(t)}catch(c){Vt(t,o,c)}}}catch(c){Vt(t,t.return,c)}if(t===e){Te=null;break}var l=t.sibling;if(l!==null){l.return=t.return,Te=l;break}Te=t.return}}var iM=Math.ceil,Uf=Va.ReactCurrentDispatcher,ew=Va.ReactCurrentOwner,es=Va.ReactCurrentBatchConfig,ct=0,wr=null,sr=null,Sr=0,On=0,nc=co(0),pr=0,Wu=null,rl=0,Jp=0,tw=0,gu=null,xn=null,rw=0,Fc=1/0,Sa=null,qf=!1,mb=null,qi=null,bm=!1,Ai=null,Hf=0,xu=0,fb=null,sf=-1,af=0;function Zr(){return ct&6?Xt():sf!==-1?sf:sf=Xt()}function Hi(e){return e.mode&1?ct&2&&Sr!==0?Sr&-Sr:qR.transition!==null?(af===0&&(af=tC()),af):(e=jt,e!==0||(e=window.event,e=e===void 0?16:lC(e.type)),e):1}function Ts(e,t,n,s){if(50<xu)throw xu=0,fb=null,Error(fe(185));_h(e,n,s),(!(ct&2)||e!==wr)&&(e===wr&&(!(ct&2)&&(Jp|=n),pr===4&&vi(e,Sr)),Sn(e,s),n===1&&ct===0&&!(t.mode&1)&&(Fc=Xt()+500,Kp&&uo()))}function Sn(e,t){var n=e.callbackNode;q9(e,t);var s=Cf(e,e===wr?Sr:0);if(s===0)n!==null&&$N(n),e.callbackNode=null,e.callbackPriority=0;else if(t=s&-s,e.callbackPriority!==t){if(n!=null&&$N(n),t===1)e.tag===0?UR(j2.bind(null,e)):CC(j2.bind(null,e)),FR(function(){!(ct&6)&&uo()}),n=null;else{switch(rC(s)){case 1:n=E1;break;case 4:n=J4;break;case 16:n=Sf;break;case 536870912:n=eC;break;default:n=Sf}n=_5(n,y5.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function y5(e,t){if(sf=-1,af=0,ct&6)throw Error(fe(327));var n=e.callbackNode;if(dc()&&e.callbackNode!==n)return null;var s=Cf(e,e===wr?Sr:0);if(s===0)return null;if(s&30||s&e.expiredLanes||t)t=zf(e,s);else{t=s;var a=ct;ct|=2;var i=b5();(wr!==e||Sr!==t)&&(Sa=null,Fc=Xt()+500,Yo(e,t));do try{cM();break}catch(l){v5(e,l)}while(!0);W1(),Uf.current=i,ct=a,sr!==null?t=0:(wr=null,Sr=0,t=pr)}if(t!==0){if(t===2&&(a=Wv(e),a!==0&&(s=a,t=pb(e,a))),t===1)throw n=Wu,Yo(e,0),vi(e,s),Sn(e,Xt()),n;if(t===6)vi(e,s);else{if(a=e.current.alternate,!(s&30)&&!oM(a)&&(t=zf(e,s),t===2&&(i=Wv(e),i!==0&&(s=i,t=pb(e,i))),t===1))throw n=Wu,Yo(e,0),vi(e,s),Sn(e,Xt()),n;switch(e.finishedWork=a,e.finishedLanes=s,t){case 0:case 1:throw Error(fe(345));case 2:Eo(e,xn,Sa);break;case 3:if(vi(e,s),(s&130023424)===s&&(t=rw+500-Xt(),10<t)){if(Cf(e,0)!==0)break;if(a=e.suspendedLanes,(a&s)!==s){Zr(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=Kv(Eo.bind(null,e,xn,Sa),t);break}Eo(e,xn,Sa);break;case 4:if(vi(e,s),(s&4194240)===s)break;for(t=e.eventTimes,a=-1;0<s;){var o=31-Es(s);i=1<<o,o=t[o],o>a&&(a=o),s&=~i}if(s=a,s=Xt()-s,s=(120>s?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*iM(s/1960))-s,10<s){e.timeoutHandle=Kv(Eo.bind(null,e,xn,Sa),s);break}Eo(e,xn,Sa);break;case 5:Eo(e,xn,Sa);break;default:throw Error(fe(329))}}}return Sn(e,Xt()),e.callbackNode===n?y5.bind(null,e):null}function pb(e,t){var n=gu;return e.current.memoizedState.isDehydrated&&(Yo(e,t).flags|=256),e=zf(e,t),e!==2&&(t=xn,xn=n,t!==null&&gb(t)),e}function gb(e){xn===null?xn=e:xn.push.apply(xn,e)}function oM(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var s=0;s<n.length;s++){var a=n[s],i=a.getSnapshot;a=a.value;try{if(!As(i(),a))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function vi(e,t){for(t&=~tw,t&=~Jp,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Es(t),s=1<<n;e[n]=-1,t&=~s}}function j2(e){if(ct&6)throw Error(fe(327));dc();var t=Cf(e,0);if(!(t&1))return Sn(e,Xt()),null;var n=zf(e,t);if(e.tag!==0&&n===2){var s=Wv(e);s!==0&&(t=s,n=pb(e,s))}if(n===1)throw n=Wu,Yo(e,0),vi(e,t),Sn(e,Xt()),n;if(n===6)throw Error(fe(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Eo(e,xn,Sa),Sn(e,Xt()),null}function nw(e,t){var n=ct;ct|=1;try{return e(t)}finally{ct=n,ct===0&&(Fc=Xt()+500,Kp&&uo())}}function nl(e){Ai!==null&&Ai.tag===0&&!(ct&6)&&dc();var t=ct;ct|=1;var n=es.transition,s=jt;try{if(es.transition=null,jt=1,e)return e()}finally{jt=s,es.transition=n,ct=t,!(ct&6)&&uo()}}function sw(){On=nc.current,Rt(nc)}function Yo(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,DR(n)),sr!==null)for(n=sr.return;n!==null;){var s=n;switch(F1(s),s.tag){case 1:s=s.type.childContextTypes,s!=null&&Pf();break;case 3:Mc(),Rt(kn),Rt(Br),Y1();break;case 5:G1(s);break;case 4:Mc();break;case 13:Rt(Wt);break;case 19:Rt(Wt);break;case 10:U1(s.type._context);break;case 22:case 23:sw()}n=n.return}if(wr=e,sr=e=zi(e.current,null),Sr=On=t,pr=0,Wu=null,tw=Jp=rl=0,xn=gu=null,Io!==null){for(t=0;t<Io.length;t++)if(n=Io[t],s=n.interleaved,s!==null){n.interleaved=null;var a=s.next,i=n.pending;if(i!==null){var o=i.next;i.next=a,s.next=o}n.pending=s}Io=null}return e}function v5(e,t){do{var n=sr;try{if(W1(),tf.current=Wf,Bf){for(var s=Ut.memoizedState;s!==null;){var a=s.queue;a!==null&&(a.pending=null),s=s.next}Bf=!1}if(tl=0,br=hr=Ut=null,fu=!1,Fu=0,ew.current=null,n===null||n.return===null){pr=1,Wu=t,sr=null;break}e:{var i=e,o=n.return,l=n,c=t;if(t=Sr,l.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var d=c,u=l,h=u.tag;if(!(u.mode&1)&&(h===0||h===11||h===15)){var f=u.alternate;f?(u.updateQueue=f.updateQueue,u.memoizedState=f.memoizedState,u.lanes=f.lanes):(u.updateQueue=null,u.memoizedState=null)}var m=c2(o);if(m!==null){m.flags&=-257,d2(m,o,l,i,t),m.mode&1&&l2(i,d,t),t=m,c=d;var y=t.updateQueue;if(y===null){var p=new Set;p.add(c),t.updateQueue=p}else y.add(c);break e}else{if(!(t&1)){l2(i,d,t),aw();break e}c=Error(fe(426))}}else if(Dt&&l.mode&1){var v=c2(o);if(v!==null){!(v.flags&65536)&&(v.flags|=256),d2(v,o,l,i,t),L1(Dc(c,l));break e}}i=c=Dc(c,l),pr!==4&&(pr=2),gu===null?gu=[i]:gu.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var g=r5(i,c,t);r2(i,g);break e;case 1:l=c;var x=i.type,b=i.stateNode;if(!(i.flags&128)&&(typeof x.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(qi===null||!qi.has(b)))){i.flags|=65536,t&=-t,i.lanes|=t;var w=n5(i,l,t);r2(i,w);break e}}i=i.return}while(i!==null)}j5(n)}catch(N){t=N,sr===n&&n!==null&&(sr=n=n.return);continue}break}while(!0)}function b5(){var e=Uf.current;return Uf.current=Wf,e===null?Wf:e}function aw(){(pr===0||pr===3||pr===2)&&(pr=4),wr===null||!(rl&268435455)&&!(Jp&268435455)||vi(wr,Sr)}function zf(e,t){var n=ct;ct|=2;var s=b5();(wr!==e||Sr!==t)&&(Sa=null,Yo(e,t));do try{lM();break}catch(a){v5(e,a)}while(!0);if(W1(),ct=n,Uf.current=s,sr!==null)throw Error(fe(261));return wr=null,Sr=0,pr}function lM(){for(;sr!==null;)w5(sr)}function cM(){for(;sr!==null&&!I9();)w5(sr)}function w5(e){var t=k5(e.alternate,e,On);e.memoizedProps=e.pendingProps,t===null?j5(e):sr=t,ew.current=null}function j5(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=rM(n,t),n!==null){n.flags&=32767,sr=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{pr=6,sr=null;return}}else if(n=tM(n,t,On),n!==null){sr=n;return}if(t=t.sibling,t!==null){sr=t;return}sr=t=e}while(t!==null);pr===0&&(pr=5)}function Eo(e,t,n){var s=jt,a=es.transition;try{es.transition=null,jt=1,dM(e,t,n,s)}finally{es.transition=a,jt=s}return null}function dM(e,t,n,s){do dc();while(Ai!==null);if(ct&6)throw Error(fe(327));n=e.finishedWork;var a=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(fe(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(H9(e,i),e===wr&&(sr=wr=null,Sr=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||bm||(bm=!0,_5(Sf,function(){return dc(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=es.transition,es.transition=null;var o=jt;jt=1;var l=ct;ct|=4,ew.current=null,sM(e,n),g5(n,e),$R(Yv),Ef=!!Gv,Yv=Gv=null,e.current=n,aM(n),R9(),ct=l,jt=o,es.transition=i}else e.current=n;if(bm&&(bm=!1,Ai=e,Hf=a),i=e.pendingLanes,i===0&&(qi=null),F9(n.stateNode),Sn(e,Xt()),t!==null)for(s=e.onRecoverableError,n=0;n<t.length;n++)a=t[n],s(a.value,{componentStack:a.stack,digest:a.digest});if(qf)throw qf=!1,e=mb,mb=null,e;return Hf&1&&e.tag!==0&&dc(),i=e.pendingLanes,i&1?e===fb?xu++:(xu=0,fb=e):xu=0,uo(),null}function dc(){if(Ai!==null){var e=rC(Hf),t=es.transition,n=jt;try{if(es.transition=null,jt=16>e?16:e,Ai===null)var s=!1;else{if(e=Ai,Ai=null,Hf=0,ct&6)throw Error(fe(331));var a=ct;for(ct|=4,Te=e.current;Te!==null;){var i=Te,o=i.child;if(Te.flags&16){var l=i.deletions;if(l!==null){for(var c=0;c<l.length;c++){var d=l[c];for(Te=d;Te!==null;){var u=Te;switch(u.tag){case 0:case 11:case 15:pu(8,u,i)}var h=u.child;if(h!==null)h.return=u,Te=h;else for(;Te!==null;){u=Te;var f=u.sibling,m=u.return;if(m5(u),u===d){Te=null;break}if(f!==null){f.return=m,Te=f;break}Te=m}}}var y=i.alternate;if(y!==null){var p=y.child;if(p!==null){y.child=null;do{var v=p.sibling;p.sibling=null,p=v}while(p!==null)}}Te=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,Te=o;else e:for(;Te!==null;){if(i=Te,i.flags&2048)switch(i.tag){case 0:case 11:case 15:pu(9,i,i.return)}var g=i.sibling;if(g!==null){g.return=i.return,Te=g;break e}Te=i.return}}var x=e.current;for(Te=x;Te!==null;){o=Te;var b=o.child;if(o.subtreeFlags&2064&&b!==null)b.return=o,Te=b;else e:for(o=x;Te!==null;){if(l=Te,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Xp(9,l)}}catch(N){Vt(l,l.return,N)}if(l===o){Te=null;break e}var w=l.sibling;if(w!==null){w.return=l.return,Te=w;break e}Te=l.return}}if(ct=a,uo(),la&&typeof la.onPostCommitFiberRoot=="function")try{la.onPostCommitFiberRoot(Hp,e)}catch{}s=!0}return s}finally{jt=n,es.transition=t}}return!1}function N2(e,t,n){t=Dc(n,t),t=r5(e,t,1),e=Ui(e,t,1),t=Zr(),e!==null&&(_h(e,1,t),Sn(e,t))}function Vt(e,t,n){if(e.tag===3)N2(e,e,n);else for(;t!==null;){if(t.tag===3){N2(t,e,n);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(qi===null||!qi.has(s))){e=Dc(n,e),e=n5(t,e,1),t=Ui(t,e,1),e=Zr(),t!==null&&(_h(t,1,e),Sn(t,e));break}}t=t.return}}function uM(e,t,n){var s=e.pingCache;s!==null&&s.delete(t),t=Zr(),e.pingedLanes|=e.suspendedLanes&n,wr===e&&(Sr&n)===n&&(pr===4||pr===3&&(Sr&130023424)===Sr&&500>Xt()-rw?Yo(e,0):tw|=n),Sn(e,t)}function N5(e,t){t===0&&(e.mode&1?(t=dm,dm<<=1,!(dm&130023424)&&(dm=4194304)):t=1);var n=Zr();e=Wa(e,t),e!==null&&(_h(e,t,n),Sn(e,n))}function hM(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),N5(e,n)}function mM(e,t){var n=0;switch(e.tag){case 13:var s=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:s=e.stateNode;break;default:throw Error(fe(314))}s!==null&&s.delete(t),N5(e,n)}var k5;k5=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||kn.current)vn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return vn=!1,eM(e,t,n);vn=!!(e.flags&131072)}else vn=!1,Dt&&t.flags&1048576&&EC(t,Rf,t.index);switch(t.lanes=0,t.tag){case 2:var s=t.type;nf(e,t),e=t.pendingProps;var a=Ac(t,Br.current);cc(t,n),a=K1(null,t,s,e,a,n);var i=Q1();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,_n(s)?(i=!0,Af(t)):i=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,H1(t),a.updater=Zp,t.stateNode=a,a._reactInternals=t,rb(t,s,e,n),t=ab(null,t,s,!0,i,n)):(t.tag=0,Dt&&i&&D1(t),Yr(null,t,a,n),t=t.child),t;case 16:s=t.elementType;e:{switch(nf(e,t),e=t.pendingProps,a=s._init,s=a(s._payload),t.type=s,a=t.tag=pM(s),e=vs(s,e),a){case 0:t=sb(null,t,s,e,n);break e;case 1:t=m2(null,t,s,e,n);break e;case 11:t=u2(null,t,s,e,n);break e;case 14:t=h2(null,t,s,vs(s.type,e),n);break e}throw Error(fe(306,s,""))}return t;case 0:return s=t.type,a=t.pendingProps,a=t.elementType===s?a:vs(s,a),sb(e,t,s,a,n);case 1:return s=t.type,a=t.pendingProps,a=t.elementType===s?a:vs(s,a),m2(e,t,s,a,n);case 3:e:{if(o5(t),e===null)throw Error(fe(387));s=t.pendingProps,i=t.memoizedState,a=i.element,IC(e,t),Ff(t,s,null,n);var o=t.memoizedState;if(s=o.element,i.isDehydrated)if(i={element:s,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){a=Dc(Error(fe(423)),t),t=f2(e,t,s,n,a);break e}else if(s!==a){a=Dc(Error(fe(424)),t),t=f2(e,t,s,n,a);break e}else for(Rn=Wi(t.stateNode.containerInfo.firstChild),Dn=t,Dt=!0,ks=null,n=PC(t,null,s,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;
vendor: 4,126 bytes, line 40
40else{if(Ic(),s===a){t=Ua(e,t,n);break e}Yr(e,t,s,n)}t=t.child}return t;case 5:return RC(t),e===null&&Jv(t),s=t.type,a=t.pendingProps,i=e!==null?e.memoizedProps:null,o=a.children,Vv(s,a)?o=null:i!==null&&Vv(s,i)&&(t.flags|=32),i5(e,t),Yr(e,t,o,n),t.child;case 6:return e===null&&Jv(t),null;case 13:return l5(e,t,n);case 4:return z1(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=Rc(t,null,s,n):Yr(e,t,s,n),t.child;case 11:return s=t.type,a=t.pendingProps,a=t.elementType===s?a:vs(s,a),u2(e,t,s,a,n);case 7:return Yr(e,t,t.pendingProps,n),t.child;case 8:return Yr(e,t,t.pendingProps.children,n),t.child;case 12:return Yr(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(s=t.type._context,a=t.pendingProps,i=t.memoizedProps,o=a.value,Et(Mf,s._currentValue),s._currentValue=o,i!==null)if(As(i.value,o)){if(i.children===a.children&&!kn.current){t=Ua(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){o=i.child;for(var c=l.firstContext;c!==null;){if(c.context===s){if(i.tag===1){c=Ma(-1,n&-n),c.tag=2;var d=i.updateQueue;if(d!==null){d=d.shared;var u=d.pending;u===null?c.next=c:(c.next=u.next,u.next=c),d.pending=c}}i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),eb(i.return,n,t),l.lanes|=n;break}c=c.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(fe(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),eb(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Yr(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,s=t.pendingProps.children,cc(t,n),a=rs(a),s=s(a),t.flags|=1,Yr(e,t,s,n),t.child;case 14:return s=t.type,a=vs(s,t.pendingProps),a=vs(s.type,a),h2(e,t,s,a,n);case 15:return s5(e,t,t.type,t.pendingProps,n);case 17:return s=t.type,a=t.pendingProps,a=t.elementType===s?a:vs(s,a),nf(e,t),t.tag=1,_n(s)?(e=!0,Af(t)):e=!1,cc(t,n),t5(t,s,a),rb(t,s,a,n),ab(null,t,s,!0,e,n);case 19:return c5(e,t,n);case 22:return a5(e,t,n)}throw Error(fe(156,t.tag))};function _5(e,t){return X4(e,t)}function fM(e,t,n,s){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Jn(e,t,n,s){return new fM(e,t,n,s)}function iw(e){return e=e.prototype,!(!e||!e.isReactComponent)}function pM(e){if(typeof e=="function")return iw(e)?1:0;if(e!=null){if(e=e.$$typeof,e===_1)return 11;if(e===S1)return 14}return 2}function zi(e,t){var n=e.alternate;return n===null?(n=Jn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function of(e,t,n,s,a,i){var o=2;if(s=e,typeof e=="function")iw(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Yl:return Vo(n.children,a,i,t);case k1:o=8,a|=8;break;case Sv:return e=Jn(12,n,t,a|2),e.elementType=Sv,e.lanes=i,e;case Cv:return e=Jn(13,n,t,a),e.elementType=Cv,e.lanes=i,e;case Ev:return e=Jn(19,n,t,a),e.elementType=Ev,e.lanes=i,e;case R4:return eg(n,a,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case A4:o=10;break e;case I4:o=9;break e;case _1:o=11;break e;case S1:o=14;break e;case fi:o=16,s=null;break e}throw Error(fe(130,e==null?e:typeof e,""))}return t=Jn(o,n,t,a),t.elementType=e,t.type=s,t.lanes=i,t}function Vo(e,t,n,s){return e=Jn(7,e,s,t),e.lanes=n,e}function eg(e,t,n,s){return e=Jn(22,e,s,t),e.elementType=R4,e.lanes=n,e.stateNode={isHidden:!1},e}
vendor: 5,695 bytes, line 40
40function ly(e,t,n){return e=Jn(6,e,null,t),e.lanes=n,e}function cy(e,t,n){return t=Jn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function gM(e,t,n,s,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=qx(0),this.expirationTimes=qx(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qx(0),this.identifierPrefix=s,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function ow(e,t,n,s,a,i,o,l,c){return e=new gM(e,t,n,l,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Jn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:s,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},H1(i),e}function xM(e,t,n){var s=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Gl,key:s==null?null:""+s,children:e,containerInfo:t,implementation:n}}function S5(e){if(!e)return Zi;e=e._reactInternals;e:{if(fl(e)!==e||e.tag!==1)throw Error(fe(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(_n(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(fe(171))}if(e.tag===1){var n=e.type;if(_n(n))return SC(e,n,t)}return t}function C5(e,t,n,s,a,i,o,l,c){return e=ow(n,s,!0,e,a,i,o,l,c),e.context=S5(null),n=e.current,s=Zr(),a=Hi(n),i=Ma(s,a),i.callback=t??null,Ui(n,i,a),e.current.lanes=a,_h(e,a,s),Sn(e,s),e}function tg(e,t,n,s){var a=t.current,i=Zr(),o=Hi(a);return n=S5(n),t.context===null?t.context=n:t.pendingContext=n,t=Ma(i,o),t.payload={element:e},s=s===void 0?null:s,s!==null&&(t.callback=s),e=Ui(a,t,o),e!==null&&(Ts(e,a,o,i),ef(e,a,o)),o}function Gf(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function k2(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function lw(e,t){k2(e,t),(e=e.alternate)&&k2(e,t)}function yM(){return null}var E5=typeof reportError=="function"?reportError:function(e){console.error(e)};function cw(e){this._internalRoot=e}rg.prototype.render=cw.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(fe(409));tg(e,t,null,null)};rg.prototype.unmount=cw.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;nl(function(){tg(null,e,null,null)}),t[Ba]=null}};function rg(e){this._internalRoot=e}rg.prototype.unstable_scheduleHydration=function(e){if(e){var t=aC();e={blockedOn:null,target:e,priority:t};for(var n=0;n<yi.length&&t!==0&&t<yi[n].priority;n++);yi.splice(n,0,e),n===0&&oC(e)}};function dw(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ng(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function _2(){}function vM(e,t,n,s,a){if(a){if(typeof s=="function"){var i=s;s=function(){var d=Gf(o);i.call(d)}}var o=C5(t,s,e,0,null,!1,!1,"",_2);return e._reactRootContainer=o,e[Ba]=o.current,Au(e.nodeType===8?e.parentNode:e),nl(),o}for(;a=e.lastChild;)e.removeChild(a);if(typeof s=="function"){var l=s;s=function(){var d=Gf(c);l.call(d)}}var c=ow(e,0,!1,null,null,!1,!1,"",_2);return e._reactRootContainer=c,e[Ba]=c.current,Au(e.nodeType===8?e.parentNode:e),nl(function(){tg(t,c,n,s)}),c}function sg(e,t,n,s,a){var i=n._reactRootContainer;if(i){var o=i;if(typeof a=="function"){var l=a;a=function(){var c=Gf(o);l.call(c)}}tg(t,o,e,a)}else o=vM(n,t,e,a,s);return Gf(o)}nC=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=tu(t.pendingLanes);n!==0&&(T1(t,n|1),Sn(t,Xt()),!(ct&6)&&(Fc=Xt()+500,uo()))}break;case 13:nl(function(){var s=Wa(e,1);if(s!==null){var a=Zr();Ts(s,e,1,a)}}),lw(e,1)}};$1=function(e){if(e.tag===13){var t=Wa(e,134217728);if(t!==null){var n=Zr();Ts(t,e,134217728,n)}lw(e,134217728)}};sC=function(e){if(e.tag===13){var t=Hi(e),n=Wa(e,t);if(n!==null){var s=Zr();Ts(n,e,t,s)}lw(e,t)}};aC=function(){return jt};iC=function(e,t){var n=jt;try{return jt=e,t()}finally{jt=n}};Fv=function(e,t,n){switch(t){case"input":if(Ov(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var s=n[t];if(s!==e&&s.form===e.form){var a=Vp(s);if(!a)throw Error(fe(90));D4(s),Ov(s,a)}}}break;case"textarea":L4(e,n);break;case"select":t=n.value,t!=null&&ac(e,!!n.multiple,t,!1)}};G4=nw;Y4=nl;var bM={usingClientEntryPoint:!1,Events:[Ch,Zl,Vp,H4,z4,nw]},Pd={findFiberByHostInstance:Ao,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},wM={bundleType:Pd.bundleType,version:Pd.version,rendererPackageName:Pd.rendererPackageName,rendererConfig:Pd.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Va.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Q4(e),e===null?null:e.stateNode},findFiberByHostInstance:Pd.findFiberByHostInstance||yM,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};
40if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var wm=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!wm.isDisabled&&wm.supportsFiber)try{Hp=wm.inject(wM),la=wm}catch{}}Hn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=bM;Hn.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!dw(t))throw Error(fe(200));return xM(e,t,null,n)};Hn.createRoot=function(e,t){if(!dw(e))throw Error(fe(299));var n=!1,s="",a=E5;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=ow(e,1,!1,null,null,n,!1,s,a),e[Ba]=t.current,Au(e.nodeType===8?e.parentNode:e),new cw(t)};Hn.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(fe(188)):(e=Object.keys(e).join(","),Error(fe(268,e)));return e=Q4(t),e=e===null?null:e.stateNode,e};Hn.flushSync=function(e){return nl(e)};Hn.hydrate=function(e,t,n){if(!ng(t))throw Error(fe(200));return sg(null,e,t,!0,n)};Hn.hydrateRoot=function(e,t,n){if(!dw(e))throw Error(fe(405));var s=n!=null&&n.hydratedSources||null,a=!1,i="",o=E5;if(n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=C5(t,null,e,1,n??null,a,!1,i,o),e[Ba]=t.current,Au(e),s)for(e=0;e<s.length;e++)n=s[e],a=n._getVersion,a=a(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new rg(t)};Hn.render=function(e,t,n){if(!ng(t))throw Error(fe(200));return sg(null,e,t,!1,n)};Hn.unmountComponentAtNode=function(e){if(!ng(e))throw Error(fe(40));return e._reactRootContainer?(nl(function(){sg(null,null,e,!1,function(){e._reactRootContainer=null,e[Ba]=null})}),!0):!1};Hn.unstable_batchedUpdates=nw;Hn.unstable_renderSubtreeIntoContainer=function(e,t,n,s){if(!ng(n))throw Error(fe(200));if(e==null||e._reactInternals===void 0)throw Error(fe(38));return sg(e,t,n,!1,s)};Hn.version="18.3.1-next-f1338f8080-20240426";function T5(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(T5)}catch(e){console.error(e)}}T5(),T4.exports=Hn;var ho=T4.exports;const $5=oo(ho);var O5,S2=ho;O5=S2.createRoot,S2.hydrateRoot;const jM=1,NM=1e6;let dy=0;function kM(){return dy=(dy+1)%Number.MAX_SAFE_INTEGER,dy.toString()}const uy=new Map,C2=e=>{if(uy.has(e))return;const t=setTimeout(()=>{uy.delete(e),yu({type:"REMOVE_TOAST",toastId:e})},NM);uy.set(e,t)},_M=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,jM)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?C2(n):e.toasts.forEach(s=>{C2(s.id)}),{...e,toasts:e.toasts.map(s=>s.id===n||n===void 0?{...s,open:!1}:s)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},lf=[];let cf={toasts:[]};function yu(e){cf=_M(cf,e),lf.forEach(t=>{t(cf)})}function Pn({...e}){const t=kM(),n=a=>yu({type:"UPDATE_TOAST",toast:{...a,id:t}}),s=()=>yu({type:"DISMISS_TOAST",toastId:t});return yu({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:a=>{a||s()}}}),{id:t,dismiss:s,update:n}}function Lt(){const[e,t]=j.useState(cf);return j.useEffect(()=>(lf.push(t),()=>{const n=lf.indexOf(t);n>-1&&lf.splice(n,1)}),[e]),{...e,toast:Pn,dismiss:n=>yu({type:"DISMISS_TOAST",toastId:n})}}function me(e,t,{checkForDefaultPrevented:n=!0}={}){return function(a){if(e==null||e(a),n===!1||!a.defaultPrevented)return t==null?void 0:t(a)}}function E2(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function qa(...e){return t=>{let n=!1;const s=e.map(a=>{const i=E2(a,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let a=0;a<s.length;a++){const i=s[a];typeof i=="function"?i():E2(e[a],null)}}}}function Ge(...e){return j.useCallback(qa(...e),e)}function SM(e,t){const n=j.createContext(t),s=i=>{const{children:o,...l}=i,c=j.useMemo(()=>l,Object.values(l));return r.jsx(n.Provider,{value:c,children:o})};s.displayName=e+"Provider";function a(i){const o=j.useContext(n);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[s,a]}function ir(e,t=[]){let n=[];function s(i,o){const l=j.createContext(o),c=n.length;n=[...n,o];const d=h=>{var g;const{scope:f,children:m,...y}=h,p=((g=f==null?void 0:f[e])==null?void 0:g[c])||l,v=j.useMemo(()=>y,Object.values(y));return r.jsx(p.Provider,{value:v,children:m})};d.displayName=i+"Provider";function u(h,f){var p;const m=((p=f==null?void 0:f[e])==null?void 0:p[c])||l,y=j.useContext(m);if(y)return y;if(o!==void 0)return o;throw new Error(`\`${h}\` must be used within \`${i}\``)}return[d,u]}const a=()=>{const i=n.map(o=>j.createContext(o));return function(l){const c=(l==null?void 0:l[e])||i;return j.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return a.scopeName=e,[s,CM(a,...t)]}function CM(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const s=e.map(a=>({useScope:a(),scopeName:a.scopeName}));
vendor: 10,222 bytes, line 40
40return function(i){const o=s.reduce((l,{useScope:c,scopeName:d})=>{const h=c(i)[`__scope${d}`];return{...l,...h}},{});return j.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function Xi(e){const t=EM(e),n=j.forwardRef((s,a)=>{const{children:i,...o}=s,l=j.Children.toArray(i),c=l.find($M);if(c){const d=c.props.children,u=l.map(h=>h===c?j.Children.count(d)>1?j.Children.only(null):j.isValidElement(d)?d.props.children:null:h);return r.jsx(t,{...o,ref:a,children:j.isValidElement(d)?j.cloneElement(d,void 0,u):null})}return r.jsx(t,{...o,ref:a,children:i})});return n.displayName=`${e}.Slot`,n}var pl=Xi("Slot");function EM(e){const t=j.forwardRef((n,s)=>{const{children:a,...i}=n;if(j.isValidElement(a)){const o=PM(a),l=OM(i,a.props);return a.type!==j.Fragment&&(l.ref=s?qa(s,o):o),j.cloneElement(a,l)}return j.Children.count(a)>1?j.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var P5=Symbol("radix.slottable");function TM(e){const t=({children:n})=>r.jsx(r.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=P5,t}function $M(e){return j.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===P5}function OM(e,t){const n={...t};for(const s in t){const a=e[s],i=t[s];/^on[A-Z]/.test(s)?a&&i?n[s]=(...l)=>{const c=i(...l);return a(...l),c}:a&&(n[s]=a):s==="style"?n[s]={...a,...i}:s==="className"&&(n[s]=[a,i].filter(Boolean).join(" "))}return{...e,...n}}function PM(e){var s,a;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Th(e){const t=e+"CollectionProvider",[n,s]=ir(t),[a,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=p=>{const{scope:v,children:g}=p,x=ee.useRef(null),b=ee.useRef(new Map).current;return r.jsx(a,{scope:v,itemMap:b,collectionRef:x,children:g})};o.displayName=t;const l=e+"CollectionSlot",c=Xi(l),d=ee.forwardRef((p,v)=>{const{scope:g,children:x}=p,b=i(l,g),w=Ge(v,b.collectionRef);return r.jsx(c,{ref:w,children:x})});d.displayName=l;const u=e+"CollectionItemSlot",h="data-radix-collection-item",f=Xi(u),m=ee.forwardRef((p,v)=>{const{scope:g,children:x,...b}=p,w=ee.useRef(null),N=Ge(v,w),S=i(u,g);return ee.useEffect(()=>(S.itemMap.set(w,{ref:w,...b}),()=>void S.itemMap.delete(w))),r.jsx(f,{[h]:"",ref:N,children:x})});m.displayName=u;function y(p){const v=i(e+"CollectionConsumer",p);return ee.useCallback(()=>{const x=v.collectionRef.current;if(!x)return[];const b=Array.from(x.querySelectorAll(`[${h}]`));return Array.from(v.itemMap.values()).sort((S,_)=>b.indexOf(S.ref.current)-b.indexOf(_.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:o,Slot:d,ItemSlot:m},y,s]}var AM=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],we=AM.reduce((e,t)=>{const n=Xi(`Primitive.${t}`),s=j.forwardRef((a,i)=>{const{asChild:o,...l}=a,c=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),r.jsx(c,{...l,ref:i})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{});function uw(e,t){e&&ho.flushSync(()=>e.dispatchEvent(t))}function Kt(e){const t=j.useRef(e);return j.useEffect(()=>{t.current=e}),j.useMemo(()=>(...n)=>{var s;return(s=t.current)==null?void 0:s.call(t,...n)},[])}function IM(e,t=globalThis==null?void 0:globalThis.document){const n=Kt(e);j.useEffect(()=>{const s=a=>{a.key==="Escape"&&n(a)};return t.addEventListener("keydown",s,{capture:!0}),()=>t.removeEventListener("keydown",s,{capture:!0})},[n,t])}var RM="DismissableLayer",xb="dismissableLayer.update",MM="dismissableLayer.pointerDownOutside",DM="dismissableLayer.focusOutside",T2,A5=j.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),gl=j.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:o,onDismiss:l,...c}=e,d=j.useContext(A5),[u,h]=j.useState(null),f=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=j.useState({}),y=Ge(t,_=>h(_)),p=Array.from(d.layers),[v]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),g=p.indexOf(v),x=u?p.indexOf(u):-1,b=d.layersWithOutsidePointerEventsDisabled.size>0,w=x>=g,N=LM(_=>{const C=_.target,$=[...d.branches].some(k=>k.contains(C));!w||$||(a==null||a(_),o==null||o(_),_.defaultPrevented||l==null||l())},f),S=BM(_=>{const C=_.target;[...d.branches].some(k=>k.contains(C))||(i==null||i(_),o==null||o(_),_.defaultPrevented||l==null||l())},f);return IM(_=>{x===d.layers.size-1&&(s==null||s(_),!_.defaultPrevented&&l&&(_.preventDefault(),l()))},f),j.useEffect(()=>{if(u)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(T2=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(u)),d.layers.add(u),$2(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=T2)}},[u,f,n,d]),j.useEffect(()=>()=>{u&&(d.layers.delete(u),d.layersWithOutsidePointerEventsDisabled.delete(u),$2())},[u,d]),j.useEffect(()=>{const _=()=>m({});return document.addEventListener(xb,_),()=>document.removeEventListener(xb,_)},[]),r.jsx(we.div,{...c,ref:y,style:{pointerEvents:b?w?"auto":"none":void 0,...e.style},onFocusCapture:me(e.onFocusCapture,S.onFocusCapture),onBlurCapture:me(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:me(e.onPointerDownCapture,N.onPointerDownCapture)})});gl.displayName=RM;var FM="DismissableLayerBranch",I5=j.forwardRef((e,t)=>{const n=j.useContext(A5),s=j.useRef(null),a=Ge(t,s);return j.useEffect(()=>{const i=s.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),r.jsx(we.div,{...e,ref:a})});I5.displayName=FM;function LM(e,t=globalThis==null?void 0:globalThis.document){const n=Kt(e),s=j.useRef(!1),a=j.useRef(()=>{});return j.useEffect(()=>{const i=l=>{if(l.target&&!s.current){let c=function(){R5(MM,n,d,{discrete:!0})};const d={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=c,t.addEventListener("click",a.current,{once:!0})):c()}else t.removeEventListener("click",a.current);s.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:()=>s.current=!0}}function BM(e,t=globalThis==null?void 0:globalThis.document){const n=Kt(e),s=j.useRef(!1);return j.useEffect(()=>{const a=i=>{i.target&&!s.current&&R5(DM,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,n]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function $2(){const e=new CustomEvent(xb);document.dispatchEvent(e)}function R5(e,t,n,{discrete:s}){const a=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),s?uw(a,i):a.dispatchEvent(i)}var WM=gl,UM=I5,Qt=globalThis!=null&&globalThis.document?j.useLayoutEffect:()=>{},qM="Portal",sd=j.forwardRef((e,t)=>{var l;const{container:n,...s}=e,[a,i]=j.useState(!1);Qt(()=>i(!0),[]);const o=n||a&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return o?$5.createPortal(r.jsx(we.div,{...s,ref:t}),o):null});sd.displayName=qM;function HM(e,t){return j.useReducer((n,s)=>t[n][s]??n,e)}var or=e=>{const{present:t,children:n}=e,s=zM(t),a=typeof n=="function"?n({present:s.isPresent}):j.Children.only(n),i=Ge(s.ref,GM(a));return typeof n=="function"||s.isPresent?j.cloneElement(a,{ref:i}):null};or.displayName="Presence";function zM(e){const[t,n]=j.useState(),s=j.useRef(null),a=j.useRef(e),i=j.useRef("none"),o=e?"mounted":"unmounted",[l,c]=HM(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return j.useEffect(()=>{const d=jm(s.current);i.current=l==="mounted"?d:"none"},[l]),Qt(()=>{const d=s.current,u=a.current;if(u!==e){const f=i.current,m=jm(d);e?c("MOUNT"):m==="none"||(d==null?void 0:d.display)==="none"?c("UNMOUNT"):c(u&&f!==m?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,c]),Qt(()=>{if(t){let d;const u=t.ownerDocument.defaultView??window,h=m=>{const p=jm(s.current).includes(m.animationName);if(m.target===t&&p&&(c("ANIMATION_END"),!a.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",d=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},f=m=>{m.target===t&&(i.current=jm(s.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{u.clearTimeout(d),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:j.useCallback(d=>{s.current=d?getComputedStyle(d):null,n(d)},[])}}function jm(e){return(e==null?void 0:e.animationName)||"none"}function GM(e){var s,a;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var YM=b1[" useInsertionEffect ".trim().toString()]||Qt;function Xr({prop:e,defaultProp:t,onChange:n=()=>{},caller:s}){const[a,i,o]=VM({defaultProp:t,onChange:n}),l=e!==void 0,c=l?e:a;{const u=j.useRef(e!==void 0);j.useEffect(()=>{const h=u.current;h!==l&&console.warn(`${s} is changing from ${h?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=l},[l,s])}const d=j.useCallback(u=>{var h;if(l){const f=KM(u)?u(e):u;f!==e&&((h=o.current)==null||h.call(o,f))}else i(u)},[l,e,i,o]);return[c,d]}
40function VM({defaultProp:e,onChange:t}){const[n,s]=j.useState(e),a=j.useRef(n),i=j.useRef(t);return YM(()=>{i.current=t},[t]),j.useEffect(()=>{var o;a.current!==n&&((o=i.current)==null||o.call(i,n),a.current=n)},[n,a]),[n,s,i]}function KM(e){return typeof e=="function"}var M5=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),QM="VisuallyHidden",ag=j.forwardRef((e,t)=>r.jsx(we.span,{...e,ref:t,style:{...M5,...e.style}}));ag.displayName=QM;var ZM=ag,hw="ToastProvider",[mw,XM,JM]=Th("Toast"),[D5,Age]=ir("Toast",[JM]),[e7,ig]=D5(hw),F5=e=>{const{__scopeToast:t,label:n="Notification",duration:s=5e3,swipeDirection:a="right",swipeThreshold:i=50,children:o}=e,[l,c]=j.useState(null),[d,u]=j.useState(0),h=j.useRef(!1),f=j.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${hw}\`. Expected non-empty \`string\`.`),r.jsx(mw.Provider,{scope:t,children:r.jsx(e7,{scope:t,label:n,duration:s,swipeDirection:a,swipeThreshold:i,toastCount:d,viewport:l,onViewportChange:c,onToastAdd:j.useCallback(()=>u(m=>m+1),[]),onToastRemove:j.useCallback(()=>u(m=>m-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:f,children:o})})};F5.displayName=hw;var L5="ToastViewport",t7=["F8"],yb="toast.viewportPause",vb="toast.viewportResume",B5=j.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:s=t7,label:a="Notifications ({hotkey})",...i}=e,o=ig(L5,n),l=XM(n),c=j.useRef(null),d=j.useRef(null),u=j.useRef(null),h=j.useRef(null),f=Ge(t,h,o.onViewportChange),m=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),y=o.toastCount>0;j.useEffect(()=>{const v=g=>{var b;s.length!==0&&s.every(w=>g[w]||g.code===w)&&((b=h.current)==null||b.focus())};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[s]),j.useEffect(()=>{const v=c.current,g=h.current;if(y&&v&&g){const x=()=>{if(!o.isClosePausedRef.current){const S=new CustomEvent(yb);g.dispatchEvent(S),o.isClosePausedRef.current=!0}},b=()=>{if(o.isClosePausedRef.current){const S=new CustomEvent(vb);g.dispatchEvent(S),o.isClosePausedRef.current=!1}},w=S=>{!v.contains(S.relatedTarget)&&b()},N=()=>{v.contains(document.activeElement)||b()};return v.addEventListener("focusin",x),v.addEventListener("focusout",w),v.addEventListener("pointermove",x),v.addEventListener("pointerleave",N),window.addEventListener("blur",x),window.addEventListener("focus",b),()=>{v.removeEventListener("focusin",x),v.removeEventListener("focusout",w),v.removeEventListener("pointermove",x),v.removeEventListener("pointerleave",N),window.removeEventListener("blur",x),window.removeEventListener("focus",b)}}},[y,o.isClosePausedRef]);const p=j.useCallback(({tabbingDirection:v})=>{const x=l().map(b=>{const w=b.ref.current,N=[w,...f7(w)];return v==="forwards"?N:N.reverse()});return(v==="forwards"?x.reverse():x).flat()},[l]);return j.useEffect(()=>{const v=h.current;if(v){const g=x=>{var N,S,_;const b=x.altKey||x.ctrlKey||x.metaKey;if(x.key==="Tab"&&!b){const C=document.activeElement,$=x.shiftKey;if(x.target===v&&$){(N=d.current)==null||N.focus();return}const T=p({tabbingDirection:$?"backwards":"forwards"}),O=T.findIndex(A=>A===C);hy(T.slice(O+1))?x.preventDefault():$?(S=d.current)==null||S.focus():(_=u.current)==null||_.focus()}};return v.addEventListener("keydown",g),()=>v.removeEventListener("keydown",g)}},[l,p]),r.jsxs(UM,{ref:c,role:"region","aria-label":a.replace("{hotkey}",m),tabIndex:-1,style:{pointerEvents:y?void 0:"none"},children:[y&&r.jsx(bb,{ref:d,onFocusFromOutsideViewport:()=>{const v=p({tabbingDirection:"forwards"});hy(v)}}),r.jsx(mw.Slot,{scope:n,children:r.jsx(we.ol,{tabIndex:-1,...i,ref:f})}),y&&r.jsx(bb,{ref:u,onFocusFromOutsideViewport:()=>{const v=p({tabbingDirection:"backwards"});hy(v)}})]})});B5.displayName=L5;var W5="ToastFocusProxy",bb=j.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:s,...a}=e,i=ig(W5,n);return r.jsx(ag,{"aria-hidden":!0,tabIndex:0,...a,ref:t,style:{position:"fixed"},onFocus:o=>{var d;const l=o.relatedTarget;!((d=i.viewport)!=null&&d.contains(l))&&s()}})});bb.displayName=W5;var $h="Toast",r7="toast.swipeStart",n7="toast.swipeMove",s7="toast.swipeCancel",a7="toast.swipeEnd",U5=j.forwardRef((e,t)=>
40{const{forceMount:n,open:s,defaultOpen:a,onOpenChange:i,...o}=e,[l,c]=Xr({prop:s,defaultProp:a??!0,onChange:i,caller:$h});return r.jsx(or,{present:n||l,children:r.jsx(l7,{open:l,...o,ref:t,onClose:()=>c(!1),onPause:Kt(e.onPause),onResume:Kt(e.onResume),onSwipeStart:me(e.onSwipeStart,d=>{d.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:me(e.onSwipeMove,d=>{const{x:u,y:h}=d.detail.delta;d.currentTarget.setAttribute("data-swipe","move"),d.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${u}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${h}px`)}),onSwipeCancel:me(e.onSwipeCancel,d=>{d.currentTarget.setAttribute("data-swipe","cancel"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),d.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:me(e.onSwipeEnd,d=>{const{x:u,y:h}=d.detail.delta;d.currentTarget.setAttribute("data-swipe","end"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),d.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${u}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${h}px`),c(!1)})})})});U5.displayName=$h;var[i7,o7]=D5($h,{onClose(){}}),l7=j.forwardRef((e,t)=>{const{__scopeToast:n,type:s="foreground",duration:a,open:i,onClose:o,onEscapeKeyDown:l,onPause:c,onResume:d,onSwipeStart:u,onSwipeMove:h,onSwipeCancel:f,onSwipeEnd:m,...y}=e,p=ig($h,n),[v,g]=j.useState(null),x=Ge(t,A=>g(A)),b=j.useRef(null),w=j.useRef(null),N=a||p.duration,S=j.useRef(0),_=j.useRef(N),C=j.useRef(0),{onToastAdd:$,onToastRemove:k}=p,E=Kt(()=>{var U;(v==null?void 0:v.contains(document.activeElement))&&((U=p.viewport)==null||U.focus()),o()}),T=j.useCallback(A=>{!A||A===1/0||(window.clearTimeout(C.current),S.current=new Date().getTime(),C.current=window.setTimeout(E,A))},[E]);j.useEffect(()=>{const A=p.viewport;if(A){const U=()=>{T(_.current),d==null||d()},z=()=>{const W=new Date().getTime()-S.current;_.current=_.current-W,window.clearTimeout(C.current),c==null||c()};return A.addEventListener(yb,z),A.addEventListener(vb,U),()=>{A.removeEventListener(yb,z),A.removeEventListener(vb,U)}}},[p.viewport,N,c,d,T]),j.useEffect(()=>{i&&!p.isClosePausedRef.current&&T(N)},[i,N,p.isClosePausedRef,T]),j.useEffect(()=>($(),()=>k()),[$,k]);const O=j.useMemo(()=>v?K5(v):null,[v]);return p.viewport?r.jsxs(r.Fragment,{children:[O&&r.jsx(c7,{__scopeToast:n,role:"status","aria-live":s==="foreground"?"assertive":"polite","aria-atomic":!0,children:O}),r.jsx(i7,{scope:n,onClose:E,children:ho.createPortal(r.jsx(mw.ItemSlot,{scope:n,children:r.jsx(WM,{asChild:!0,onEscapeKeyDown:me(l,()=>{p.isFocusedToastEscapeKeyDownRef.current||E(),p.isFocusedToastEscapeKeyDownRef.current=!1}),children:r.jsx(we.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":p.swipeDirection,...y,ref:x,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:me(e.onKeyDown,A=>{A.key==="Escape"&&(l==null||l(A.nativeEvent),A.nativeEvent.defaultPrevented||(p.isFocusedToastEscapeKeyDownRef.current=!0,E()))}),onPointerDown:me(e.onPointerDown,A=>{A.button===0&&(b.current={x:A.clientX,y:A.clientY})}),onPointerMove:me(e.onPointerMove,A=>{if(!b.current)return;const U=A.clientX-b.current.x,z=A.clientY-b.current.y,W=!!w.current,B=["left","right"].includes(p.swipeDirection),R=["left","up"].includes(p.swipeDirection)?Math.min:Math.max,D=B?R(0,U):0,P=B?0:R(0,z),I=A.pointerType==="touch"?10:2,F={x:D,y:P},Y={originalEvent:A,delta:F};W?(w.current=F,Nm(n7,h,Y,{discrete:!1})):O2(F,p.swipeDirection,I)?(w.current=F,Nm(r7,u,Y,{discrete:!1}),A.target.setPointerCapture(A.pointerId)):(Math.abs(U)>I||Math.abs(z)>I)&&(b.current=null)}),onPointerUp:me(e.onPointerUp,A=>{const U=w.current,z=A.target;if(z.hasPointerCapture(A.pointerId)&&z.releasePointerCapture(A.pointerId),w.current=null,b.current=null,U){const W=A.currentTarget,B={originalEvent:A,delta:U};O2(U,p.swipeDirection,p.swipeThreshold)?Nm(a7,m,B,{discrete:!0}):Nm(s7,f,B,{discrete:!0}),W.addEventListener("click",R=>R.preventDefault(),{once:!0})}})})})}),p.viewport)})]}):null}),c7=e=>{const{__scopeToast:t,children:n,...s}=e,a=ig($h,t),[i,o]=j.useState(!1),[l,c]=j.useState(!1);return h7(()=>o(!0)),j.useEffect(()=>{const d=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(d)},[]),l?null:r.jsx(sd,{asChild:!0,children:r.jsx(ag,{...s,children:i&&r.jsxs(r.Fragment,{children:[a.label," ",n]})})})},d7="ToastTitle",q5=j.forwardRef((e,t)=>
vendor: 4,864 bytes, lines 40-60
40{const{__scopeToast:n,...s}=e;return r.jsx(we.div,{...s,ref:t})});q5.displayName=d7;var u7="ToastDescription",H5=j.forwardRef((e,t)=>{const{__scopeToast:n,...s}=e;return r.jsx(we.div,{...s,ref:t})});H5.displayName=u7;var z5="ToastAction",G5=j.forwardRef((e,t)=>{const{altText:n,...s}=e;return n.trim()?r.jsx(V5,{altText:n,asChild:!0,children:r.jsx(fw,{...s,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${z5}\`. Expected non-empty \`string\`.`),null)});G5.displayName=z5;var Y5="ToastClose",fw=j.forwardRef((e,t)=>{const{__scopeToast:n,...s}=e,a=o7(Y5,n);return r.jsx(V5,{asChild:!0,children:r.jsx(we.button,{type:"button",...s,ref:t,onClick:me(e.onClick,a.onClose)})})});fw.displayName=Y5;var V5=j.forwardRef((e,t)=>{const{__scopeToast:n,altText:s,...a}=e;return r.jsx(we.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":s||void 0,...a,ref:t})});function K5(e){const t=[];return Array.from(e.childNodes).forEach(s=>{if(s.nodeType===s.TEXT_NODE&&s.textContent&&t.push(s.textContent),m7(s)){const a=s.ariaHidden||s.hidden||s.style.display==="none",i=s.dataset.radixToastAnnounceExclude==="";if(!a)if(i){const o=s.dataset.radixToastAnnounceAlt;o&&t.push(o)}else t.push(...K5(s))}}),t}function Nm(e,t,n,{discrete:s}){const a=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),s?uw(a,i):a.dispatchEvent(i)}var O2=(e,t,n=0)=>{const s=Math.abs(e.x),a=Math.abs(e.y),i=s>a;return t==="left"||t==="right"?i&&s>n:!i&&a>n};function h7(e=()=>{}){const t=Kt(e);Qt(()=>{let n=0,s=0;return n=window.requestAnimationFrame(()=>s=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(s)}},[t])}function m7(e){return e.nodeType===e.ELEMENT_NODE}function f7(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const a=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||a?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function hy(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var p7=F5,Q5=B5,Z5=U5,X5=q5,J5=H5,eE=G5,tE=fw;function rE(e){var t,n,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=rE(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function nE(){for(var e,t,n=0,s="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=rE(e))&&(s&&(s+=" "),s+=t);return s}const P2=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,A2=nE,xl=(e,t)=>n=>{var s;if((t==null?void 0:t.variants)==null)return A2(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:a,defaultVariants:i}=t,o=Object.keys(a).map(d=>{const u=n==null?void 0:n[d],h=i==null?void 0:i[d];if(u===null)return null;const f=P2(u)||P2(h);return a[d][f]}),l=n&&Object.entries(n).reduce((d,u)=>{let[h,f]=u;return f===void 0||(d[h]=f),d},{}),c=t==null||(s=t.compoundVariants)===null||s===void 0?void 0:s.reduce((d,u)=>{let{class:h,className:f,...m}=u;return Object.entries(m).every(y=>{let[p,v]=y;return Array.isArray(v)?v.includes({...i,...l}[p]):{...i,...l}[p]===v})?[...d,h,f]:d},[]);return A2(e,o,c,n==null?void 0:n.class,n==null?void 0:n.className)};/** 41 * @license lucide-react v0.462.0 - ISC 42 * 43 * This source code is licensed under the ISC license. 44 * See the LICENSE file in the root directory of this source tree. 45 */const g7=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),sE=(...e)=>e.filter((t,n,s)=>!!t&&t.trim()!==""&&s.indexOf(t)===n).join(" ").trim();/** 46 * @license lucide-react v0.462.0 - ISC 47 * 48 * This source code is licensed under the ISC license. 49 * See the LICENSE file in the root directory of this source tree. 50 */var x7={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** 51 * @license lucide-react v0.462.0 - ISC 52 * 53 * This source code is licensed under the ISC license. 54 * See the LICENSE file in the root directory of this source tree. 55 */const y7=j.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:s,className:a="",children:i,iconNode:o,...l},c)=>j.createElement("svg",{ref:c,...x7,width:t,height:t,stroke:e,strokeWidth:s?Number(n)*24/Number(t):n,className:sE("lucide",a),...l},[...o.map(([d,u])=>j.createElement(d,u)),...Array.isArray(i)?i:[i]]));/** 56 * @license lucide-react v0.462.0 - ISC 57 * 58 * This source code is licensed under the ISC license. 59 * See the LICENSE file in the root directory of this source tree. 60 */const he=(e,t)=>{const n=j.forwardRef(({className:s,...a},i)=>j.createElement(y7,{ref:i,iconNode:t,className:sE(`lucide-${g7(e)}`,s),...a}
60));return n.displayName=`${e}`,n};/** 61 * @license lucide-react v0.462.0 - ISC 62 * 63 * This source code is licensed under the ISC license. 64 * See the LICENSE file in the root directory of this source tree. 65 */const df=he("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);/** 66 * @license lucide-react v0.462.0 - ISC 67 * 68 * This source code is licensed under the ISC license. 69 * See the LICENSE file in the root directory of this source tree. 70 */const v7=he("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** 71 * @license lucide-react v0.462.0 - ISC 72 * 73 * This source code is licensed under the ISC license. 74 * See the LICENSE file in the root directory of this source tree. 75 */const Ue=he("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** 76 * @license lucide-react v0.462.0 - ISC 77 * 78 * This source code is licensed under the ISC license. 79 * See the LICENSE file in the root directory of this source tree. 80 */const b7=he("Award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]);/** 81 * @license lucide-react v0.462.0 - ISC 82 * 83 * This source code is licensed under the ISC license. 84 * See the LICENSE file in the root directory of this source tree. 85 */const ma=he("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/** 86 * @license lucide-react v0.462.0 - ISC 87 * 88 * This source code is licensed under the ISC license. 89 * See the LICENSE file in the root directory of this source tree. 90 */const aE=he("Briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/** 91 * @license lucide-react v0.462.0 - ISC 92 * 93 * This source code is licensed under the ISC license. 94 * See the LICENSE file in the root directory of this source tree. 95 */const pw=he("CalendarDays",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]]);/** 96 * @license lucide-react v0.462.0 - ISC 97 * 98 * This source code is licensed under the ISC license. 99 * See the LICENSE file in the root directory of this source tree. 100 */const gr=he("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/** 101 * @license lucide-react v0.462.0 - ISC 102 * 103 * This source code is licensed under the ISC license. 104 * See the LICENSE file in the root directory of this source tree. 105 */const og=he("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/** 106 * @license lucide-react v0.462.0 - ISC 107 * 108 * This source code is licensed under the ISC license. 109 * See the LICENSE file in the root directory of this source tree. 110 */const _e=he("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** 111 * @license lucide-react v0.462.0 - ISC 112 * 113 * This source code is licensed under the ISC license. 114 * See the LICENSE file in the root directory of this source tree. 115 */const Ka=he("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** 116 * @license lucide-react v0.462.0 - ISC 117 * 118 * This source code is licensed under the ISC license. 119 * See the LICENSE file in the root directory of this source tree. 120 */const w7=he("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** 121 * @license lucide-react v0.462.0 - ISC 122 * 123 * This source code is licensed under the ISC license. 124 * See the LICENSE file in the root directory of this source tree. 125 */const lg=he("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** 126 * @license lucide-react v0.462.0 - ISC 127 * 128 * This source code is licensed under the ISC license. 129 * See the LICENSE file in the root directory of this source tree. 130 */const iE=he("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** 131 * @license lucide-react v0.462.0 - ISC 132 * 133 * This source code is licensed under the ISC license. 134 * See the LICENSE file in the root directory of this source tree. 135 */const gw=he("ChevronsUpDown",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]);/** 136 * @license lucide-react v0.462.0 - ISC 137 * 138 * This source code is licensed under the ISC license. 139 * See the LICENSE file in the root directory of this source tree. 140 */const $e=he("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/** 141 * @license lucide-react v0.462.0 - ISC 142 * 143 * This source code is licensed under the ISC license. 144 * See the LICENSE file in the root directory of this source tree. 145 */const bt=he("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 146 * @license lucide-react v0.462.0 - ISC 147 * 148 * This source code is licensed under the ISC license. 149 * See the LICENSE file in the root directory of this source tree. 150 */const j7=he("CirclePlay",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polygon",{points:"10 8 16 12 10 16 10 8",key:"1cimsy"}]]);/** 151 * @license lucide-react v0.462.0 - ISC 152 * 153 * This source code is licensed under the ISC license. 154 * See the LICENSE file in the root directory of this source tree. 155 */const _r=he("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/** 156 * @license lucide-react v0.462.0 - ISC 157 * 158 * This source code is licensed under the ISC license. 159 * See the LICENSE file in the root directory of this source tree. 160 */const oE=he("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** 161 * @license lucide-react v0.462.0 - ISC 162 * 163 * This source code is licensed under the ISC license. 164 * See the LICENSE file in the root directory of this source tree.
165 */const N7=he("ClipboardCheck",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"m9 14 2 2 4-4",key:"df797q"}]]);/** 166 * @license lucide-react v0.462.0 - ISC 167 * 168 * This source code is licensed under the ISC license. 169 * See the LICENSE file in the root directory of this source tree. 170 */const k7=he("ClipboardList",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]);/** 171 * @license lucide-react v0.462.0 - ISC 172 * 173 * This source code is licensed under the ISC license. 174 * See the LICENSE file in the root directory of this source tree. 175 */const zt=he("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** 176 * @license lucide-react v0.462.0 - ISC 177 * 178 * This source code is licensed under the ISC license. 179 * See the LICENSE file in the root directory of this source tree. 180 */const lE=he("CodeXml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]);/** 181 * @license lucide-react v0.462.0 - ISC 182 * 183 * This source code is licensed under the ISC license. 184 * See the LICENSE file in the root directory of this source tree. 185 */const _7=he("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);/** 186 * @license lucide-react v0.462.0 - ISC 187 * 188 * This source code is licensed under the ISC license. 189 * See the LICENSE file in the root directory of this source tree. 190 */const yl=he("Compass",[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** 191 * @license lucide-react v0.462.0 - ISC 192 * 193 * This source code is licensed under the ISC license. 194 * See the LICENSE file in the root directory of this source tree. 195 */const S7=he("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);/** 196 * @license lucide-react v0.462.0 - ISC 197 * 198 * This source code is licensed under the ISC license. 199 * See the LICENSE file in the root directory of this source tree. 200 */const cE=he("DollarSign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);/** 201 * @license lucide-react v0.462.0 - ISC 202 * 203 * This source code is licensed under the ISC license. 204 * See the LICENSE file in the root directory of this source tree. 205 */const nu=he("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/** 206 * @license lucide-react v0.462.0 - ISC 207 * 208 * This source code is licensed under the ISC license. 209 * See the LICENSE file in the root directory of this source tree. 210 */const Cr=he("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/** 211 * @license lucide-react v0.462.0 - ISC 212 * 213 * This source code is licensed under the ISC license. 214 * See the LICENSE file in the root directory of this source tree. 215 */const Uu=he("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** 216 * @license lucide-react v0.462.0 - ISC 217 * 218 * This source code is licensed under the ISC license. 219 * See the LICENSE file in the root directory of this source tree. 220 */const uf=he("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]);/** 221 * @license lucide-react v0.462.0 - ISC 222 * 223 * This source code is licensed under the ISC license. 224 * See the LICENSE file in the root directory of this source tree. 225 */const C7=he("FileSpreadsheet",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M8 13h2",key:"yr2amv"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 17h2",key:"10kma7"}]]);/** 226 * @license lucide-react v0.462.0 - ISC 227 * 228 * This source code is licensed under the ISC license. 229 * See the LICENSE file in the root directory of this source tree. 230 */const Ko=he("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** 231 * @license lucide-react v0.462.0 - ISC 232 * 233 * This source code is licensed under the ISC license. 234 * See the LICENSE file in the root directory of this source tree. 235 */const my=he("FileUp",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M12 12v6",key:"3ahymv"}],["path",{d:"m15 15-3-3-3 3",key:"15xj92"}]]);/** 236 * @license lucide-react v0.462.0 - ISC 237 * 238 * This source code is licensed under the ISC license. 239 * See the LICENSE file in the root directory of this source tree. 240 */const xw=he("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/** 241 * @license lucide-react v0.462.0 - ISC 242 * 243 * This source code is licensed under the ISC license. 244 * See the LICENSE file in the root directory of this source tree. 245 */const E7=he("Gavel",[["path",{d:"m14.5 12.5-8 8a2.119 2.119 0 1 1-3-3l8-8",key:"15492f"}],["path",{d:"m16 16 6-6",key:"vzrcl6"}],["path",{d:"m8 8 6-6",key:"18bi4p"}],["path",{d:"m9 7 8 8",key:"5jnvq1"}],["path",{d:"m21 11-8-8",key:"z4y7zo"}]]);/** 246 * @license lucide-react v0.462.0 - ISC 247 * 248 * This source code is licensed under the ISC license. 249 * See the LICENSE file in the root directory of this source tree. 250 */const wb=he("Gift",[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]]);/** 251 * @license lucide-react v0.462.0 - ISC 252 * 253 * This source code is licensed under the ISC license. 254 * See the LICENSE file in the root directory of this source tree. 255 */const Yf=he("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);/** 256 * @license lucide-react v0.462.0 - ISC 257 * 258 * This source code is licensed under the ISC license. 259 * See the LICENSE file in the root directory of this source tree. 260 */const Vf=he("GitCompare",[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["path",{d:"M11 18H8a2 2 0 0 1-2-2V9",key:"19pyzm"}]]);/** 261 * @license lucide-react v0.462.0 - ISC 262 * 263 * This source code is licensed under the ISC license. 264 * See the LICENSE file in the root directory of this source tree. 265 */const T7=he("Headphones",[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]]);/** 266 * @license lucide-react v0.462.0 - ISC 267 * 268 * This source code is licensed under the ISC license. 269 * See the LICENSE file in the root directory of this source tree. 270 */const $7=he("HeartHandshake",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}],["path",{d:"M12 5 9.04 7.96a2.17 2.17 0 0 0 0 3.08c.82.82 2.13.85 3 .07l2.07-1.9a2.82 2.82 0 0 1 3.79 0l2.96 2.66",key:"4oyue0"}],["path",{d:"m18 15-2-2",key:"60u0ii"}],["path",{d:"m15 18-2-2",key:"6p76be"}]]);/** 271 * @license lucide-react v0.462.0 - ISC 272 * 273 * This source code is licensed under the ISC license. 274 * See the LICENSE file in the root directory of this source tree. 275 */const I2=he("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/** 276 * @license lucide-react v0.462.0 - ISC 277 * 278 * This source code is licensed under the ISC license. 279 * See the LICENSE file in the root directory of this source tree. 280 */const O7=he("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/** 281 * @license lucide-react v0.462.0 - ISC 282 * 283 * This source code is licensed under the ISC license. 284 * See the LICENSE file in the root directory of this source tree. 285 */const R2=he("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/** 286 * @license lucide-react v0.462.0 - ISC 287 * 288 * This source code is licensed under the ISC license. 289 * See the LICENSE file in the root directory of this source tree. 290 */const P7=he("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);/** 291 * @license lucide-react v0.462.0 - ISC 292 * 293 * This source code is licensed under the ISC license. 294 * See the LICENSE file in the root directory of this source tree. 295 */const cg=he("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/** 296 * @license lucide-react v0.462.0 - ISC 297 * 298 * This source code is licensed under the ISC license. 299 * See the LICENSE file in the root directory of this source tree. 300 */const A7=he("LayoutGrid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]);/** 301 * @license lucide-react v0.462.0 - ISC 302 * 303 * This source code is licensed under the ISC license. 304 * See the LICENSE file in the root directory of this source tree. 305 */const yw=he("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);/** 306 * @license lucide-react v0.462.0 - ISC 307 * 308 * This source code is licensed under the ISC license. 309 * See the LICENSE file in the root directory of this source tree. 310 */const hf=he("Linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]);/** 311 * @license lucide-react v0.462.0 - ISC 312 * 313 * This source code is licensed under the ISC license. 314 * See the LICENSE file in the root directory of this source tree. 315 */const I7=he("ListChecks",[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);/** 316 * @license lucide-react v0.462.0 - ISC 317 * 318 * This source code is licensed under the ISC license. 319 * See the LICENSE file in the root directory of this source tree. 320 */const wt=he("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** 321 * @license lucide-react v0.462.0 - ISC 322 * 323 * This source code is licensed under the ISC license. 324 * See the LICENSE file in the root directory of this source tree.
325 */const dg=he("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/** 326 * @license lucide-react v0.462.0 - ISC 327 * 328 * This source code is licensed under the ISC license. 329 * See the LICENSE file in the root directory of this source tree. 330 */const R7=he("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/** 331 * @license lucide-react v0.462.0 - ISC 332 * 333 * This source code is licensed under the ISC license. 334 * See the LICENSE file in the root directory of this source tree. 335 */const xr=he("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/** 336 * @license lucide-react v0.462.0 - ISC 337 * 338 * This source code is licensed under the ISC license. 339 * See the LICENSE file in the root directory of this source tree. 340 */const M7=he("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/** 341 * @license lucide-react v0.462.0 - ISC 342 * 343 * This source code is licensed under the ISC license. 344 * See the LICENSE file in the root directory of this source tree. 345 */const D7=he("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/** 346 * @license lucide-react v0.462.0 - ISC 347 * 348 * This source code is licensed under the ISC license. 349 * See the LICENSE file in the root directory of this source tree. 350 */const dE=he("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/** 351 * @license lucide-react v0.462.0 - ISC 352 * 353 * This source code is licensed under the ISC license. 354 * See the LICENSE file in the root directory of this source tree. 355 */const F7=he("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/** 356 * @license lucide-react v0.462.0 - ISC 357 * 358 * This source code is licensed under the ISC license. 359 * See the LICENSE file in the root directory of this source tree. 360 */const L7=he("Pen",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]]);/** 361 * @license lucide-react v0.462.0 - ISC 362 * 363 * This source code is licensed under the ISC license. 364 * See the LICENSE file in the root directory of this source tree. 365 */const qu=he("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/** 366 * @license lucide-react v0.462.0 - ISC 367 * 368 * This source code is licensed under the ISC license. 369 * See the LICENSE file in the root directory of this source tree. 370 */const vw=he("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/** 371 * @license lucide-react v0.462.0 - ISC 372 * 373 * This source code is licensed under the ISC license. 374 * See the LICENSE file in the root directory of this source tree. 375 */const jr=he("Quote",[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]]);/** 376 * @license lucide-react v0.462.0 - ISC 377 * 378 * This source code is licensed under the ISC license. 379 * See the LICENSE file in the root directory of this source tree. 380 */const Mn=he("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/** 381 * @license lucide-react v0.462.0 - ISC 382 * 383 * This source code is licensed under the ISC license. 384 * See the LICENSE file in the root directory of this source tree. 385 */const B7=he("Rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3
385kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]]);/** 386 * @license lucide-react v0.462.0 - ISC 387 * 388 * This source code is licensed under the ISC license. 389 * See the LICENSE file in the root directory of this source tree. 390 */const W7=he("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/** 391 * @license lucide-react v0.462.0 - ISC 392 * 393 * This source code is licensed under the ISC license. 394 * See the LICENSE file in the root directory of this source tree. 395 */const Lr=he("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/** 396 * @license lucide-react v0.462.0 - ISC 397 * 398 * This source code is licensed under the ISC license. 399 * See the LICENSE file in the root directory of this source tree. 400 */const ug=he("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** 401 * @license lucide-react v0.462.0 - ISC 402 * 403 * This source code is licensed under the ISC license. 404 * See the LICENSE file in the root directory of this source tree. 405 */const U7=he("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/** 406 * @license lucide-react v0.462.0 - ISC 407 * 408 * This source code is licensed under the ISC license. 409 * See the LICENSE file in the root directory of this source tree. 410 */const q7=he("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/** 411 * @license lucide-react v0.462.0 - ISC 412 * 413 * This source code is licensed under the ISC license. 414 * See the LICENSE file in the root directory of this source tree. 415 */const Hu=he("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** 416 * @license lucide-react v0.462.0 - ISC 417 * 418 * This source code is licensed under the ISC license. 419 * See the LICENSE file in the root directory of this source tree. 420 */const uE=he("Share2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);/** 421 * @license lucide-react v0.462.0 - ISC 422 * 423 * This source code is licensed under the ISC license. 424 * See the LICENSE file in the root directory of this source tree. 425 */const Bn=he("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 426 * @license lucide-react v0.462.0 - ISC 427 * 428 * This source code is licensed under the ISC license. 429 * See the LICENSE file in the root directory of this source tree. 430 */const Wn=he("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
430y:"oel41y"}]]);/** 431 * @license lucide-react v0.462.0 - ISC 432 * 433 * This source code is licensed under the ISC license. 434 * See the LICENSE file in the root directory of this source tree. 435 */const M2=he("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);/** 436 * @license lucide-react v0.462.0 - ISC 437 * 438 * This source code is licensed under the ISC license. 439 * See the LICENSE file in the root directory of this source tree. 440 */const Is=he("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/** 441 * @license lucide-react v0.462.0 - ISC 442 * 443 * This source code is licensed under the ISC license. 444 * See the LICENSE file in the root directory of this source tree. 445 */const Fr=he("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);/** 446 * @license lucide-react v0.462.0 - ISC 447 * 448 * This source code is licensed under the ISC license. 449 * See the LICENSE file in the root directory of this source tree. 450 */const H7=he("Tablet",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["line",{x1:"12",x2:"12.01",y1:"18",y2:"18",key:"1dp563"}]]);/** 451 * @license lucide-react v0.462.0 - ISC 452 * 453 * This source code is licensed under the ISC license. 454 * See the LICENSE file in the root directory of this source tree. 455 */const hE=he("Tags",[["path",{d:"m15 5 6.3 6.3a2.4 2.4 0 0 1 0 3.4L17 19",key:"1cbfv1"}],["path",{d:"M9.586 5.586A2 2 0 0 0 8.172 5H3a1 1 0 0 0-1 1v5.172a2 2 0 0 0 .586 1.414L8.29 18.29a2.426 2.426 0 0 0 3.42 0l3.58-3.58a2.426 2.426 0 0 0 0-3.42z",key:"135mg7"}],["circle",{cx:"6.5",cy:"9.5",r:".5",fill:"currentColor",key:"5pm5xn"}]]);/** 456 * @license lucide-react v0.462.0 - ISC 457 * 458 * This source code is licensed under the ISC license. 459 * See the LICENSE file in the root directory of this source tree. 460 */const Rs=he("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/** 461 * @license lucide-react v0.462.0 - ISC 462 * 463 * This source code is licensed under the ISC license. 464 * See the LICENSE file in the root directory of this source tree. 465 */const z7=he("TestTube",[["path",{d:"M14.5 2v17.5c0 1.4-1.1 2.5-2.5 2.5c-1.4 0-2.5-1.1-2.5-2.5V2",key:"125lnx"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M14.5 16h-5",key:"1ox875"}]]);/** 466 * @license lucide-react v0.462.0 - ISC 467 * 468 * This source code is licensed under the ISC license. 469 * See the LICENSE file in the root directory of this source tree. 470 */const Oh=he("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/** 471 * @license lucide-react v0.462.0 - ISC 472 * 473 * This source code is licensed under the ISC license. 474 * See the LICENSE file in the root directory of this source tree. 475 */const ss=he("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/** 476 * @license lucide-react v0.462.0 - ISC 477 * 478 * This source code is licensed under the ISC license. 479 * See the LICENSE file in the root directory of this source tree. 480 */const Ji=he("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** 481 * @license lucide-react v0.462.0 - ISC 482 * 483 * This source code is licensed under the ISC license. 484 * See the LICENSE file in the root directory of this source tree. 485 */const G7=he("Trophy",[["path",{d:"M6 9H4.5a2.5 2.5 0 0 1 0-5H6",key:"17hqa7"}],["path",{d:"M18 9h1.5a2.5 2.5 0 0 0 0-5H18",key:"lmptdp"}],["path",{d:"M4 22h16",key:"57wxv0"}
485],["path",{d:"M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22",key:"1nw9bq"}],["path",{d:"M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22",key:"1np0yb"}],["path",{d:"M18 2H6v7a6 6 0 0 0 12 0V2Z",key:"u46fv3"}]]);/** 486 * @license lucide-react v0.462.0 - ISC 487 * 488 * This source code is licensed under the ISC license. 489 * See the LICENSE file in the root directory of this source tree. 490 */const bw=he("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/** 491 * @license lucide-react v0.462.0 - ISC 492 * 493 * This source code is licensed under the ISC license. 494 * See the LICENSE file in the root directory of this source tree. 495 */const Y7=he("UserCheck",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["polyline",{points:"16 11 18 13 22 9",key:"1pwet4"}]]);/** 496 * @license lucide-react v0.462.0 - ISC 497 * 498 * This source code is licensed under the ISC license. 499 * See the LICENSE file in the root directory of this source tree. 500 */const mE=he("UserPlus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]);/** 501 * @license lucide-react v0.462.0 - ISC 502 * 503 * This source code is licensed under the ISC license. 504 * See the LICENSE file in the root directory of this source tree. 505 */const V7=he("UserX",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"17",x2:"22",y1:"8",y2:"13",key:"3nzzx3"}],["line",{x1:"22",x2:"17",y1:"8",y2:"13",key:"1swrse"}]]);/** 506 * @license lucide-react v0.462.0 - ISC 507 * 508 * This source code is licensed under the ISC license. 509 * See the LICENSE file in the root directory of this source tree. 510 */const D2=he("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/** 511 * @license lucide-react v0.462.0 - ISC 512 * 513 * This source code is licensed under the ISC license. 514 * See the LICENSE file in the root directory of this source tree. 515 */const Wr=he("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/** 516 * @license lucide-react v0.462.0 - ISC 517 * 518 * This source code is licensed under the ISC license. 519 * See the LICENSE file in the root directory of this source tree. 520 */const fE=he("Video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]);/** 521 * @license lucide-react v0.462.0 - ISC 522 * 523 * This source code is licensed under the ISC license. 524 * See the LICENSE file in the root directory of this source tree. 525 */const pE=he("WandSparkles",[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]]);/** 526 * @license lucide-react v0.462.0 - ISC 527 * 528 * This source code is licensed under the ISC license. 529 * See the LICENSE file in the root directory of this source tree. 530 */const ww=he("Workflow",[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]]);/** 531 * @license lucide-react v0.462.0 - ISC 532 * 533 * This source code is licensed under the ISC license. 534 * See the LICENSE file in the root directory of this source tree. 535 */const K7=he("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);/** 536 * @license lucide-react v0.462.0 - ISC 537 * 538 * This source code is licensed under the ISC license. 539 * See the LICENSE file in the root directory of this source tree. 540 */const Ft=he("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 6,290 bytes, lines 540-545
540],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** 541 * @license lucide-react v0.462.0 - ISC 542 * 543 * This source code is licensed under the ISC license. 544 * See the LICENSE file in the root directory of this source tree. 545 */const Ii=he("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),jw="-",Q7=e=>{const t=X7(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:o=>{const l=o.split(jw);return l[0]===""&&l.length!==1&&l.shift(),gE(l,t)||Z7(o)},getConflictingClassGroupIds:(o,l)=>{const c=n[o]||[];return l&&s[o]?[...c,...s[o]]:c}}},gE=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],s=t.nextPart.get(n),a=s?gE(e.slice(1),s):void 0;if(a)return a;if(t.validators.length===0)return;const i=e.join(jw);return(o=t.validators.find(({validator:l})=>l(i)))==null?void 0:o.classGroupId},F2=/^\[(.+)\]$/,Z7=e=>{if(F2.test(e)){const t=F2.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},X7=e=>{const{theme:t,prefix:n}=e,s={nextPart:new Map,validators:[]};return eD(Object.entries(e.classGroups),n).forEach(([i,o])=>{jb(o,s,i,t)}),s},jb=(e,t,n,s)=>{e.forEach(a=>{if(typeof a=="string"){const i=a===""?t:L2(t,a);i.classGroupId=n;return}if(typeof a=="function"){if(J7(a)){jb(a(s),t,n,s);return}t.validators.push({validator:a,classGroupId:n});return}Object.entries(a).forEach(([i,o])=>{jb(o,L2(t,i),n,s)})})},L2=(e,t)=>{let n=e;return t.split(jw).forEach(s=>{n.nextPart.has(s)||n.nextPart.set(s,{nextPart:new Map,validators:[]}),n=n.nextPart.get(s)}),n},J7=e=>e.isThemeGetter,eD=(e,t)=>t?e.map(([n,s])=>{const a=s.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,l])=>[t+o,l])):i);return[n,a]}):e,tD=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,s=new Map;const a=(i,o)=>{n.set(i,o),t++,t>e&&(t=0,s=n,n=new Map)};return{get(i){let o=n.get(i);if(o!==void 0)return o;if((o=s.get(i))!==void 0)return a(i,o),o},set(i,o){n.has(i)?n.set(i,o):a(i,o)}}},xE="!",rD=e=>{const{separator:t,experimentalParseClassName:n}=e,s=t.length===1,a=t[0],i=t.length,o=l=>{const c=[];let d=0,u=0,h;for(let v=0;v<l.length;v++){let g=l[v];if(d===0){if(g===a&&(s||l.slice(v,v+i)===t)){c.push(l.slice(u,v)),u=v+i;continue}if(g==="/"){h=v;continue}}g==="["?d++:g==="]"&&d--}const f=c.length===0?l:l.substring(u),m=f.startsWith(xE),y=m?f.substring(1):f,p=h&&h>u?h-u:void 0;return{modifiers:c,hasImportantModifier:m,baseClassName:y,maybePostfixModifierPosition:p}};return n?l=>n({className:l,parseClassName:o}):o},nD=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(s=>{s[0]==="["?(t.push(...n.sort(),s),n=[]):n.push(s)}),t.push(...n.sort()),t},sD=e=>({cache:tD(e.cacheSize),parseClassName:rD(e),...Q7(e)}),aD=/\s+/,iD=(e,t)=>{const{parseClassName:n,getClassGroupId:s,getConflictingClassGroupIds:a}=t,i=[],o=e.trim().split(aD);let l="";for(let c=o.length-1;c>=0;c-=1){const d=o[c],{modifiers:u,hasImportantModifier:h,baseClassName:f,maybePostfixModifierPosition:m}=n(d);let y=!!m,p=s(y?f.substring(0,m):f);if(!p){if(!y){l=d+(l.length>0?" "+l:l);continue}if(p=s(f),!p){l=d+(l.length>0?" "+l:l);continue}y=!1}const v=nD(u).join(":"),g=h?v+xE:v,x=g+p;if(i.includes(x))continue;i.push(x);const b=a(p,y);for(let w=0;w<b.length;++w){const N=b[w];i.push(g+N)}l=d+(l.length>0?" "+l:l)}return l};function oD(){let e=0,t,n,s="";for(;e<arguments.length;)(t=arguments[e++])&&(n=yE(t))&&(s&&(s+=" "),s+=n);return s}const yE=e=>{if(typeof e=="string")return e;let t,n="";for(let s=0;s<e.length;s++)e[s]&&(t=yE(e[s]))&&(n&&(n+=" "),n+=t);return n};function lD(e,...t){let n,s,a,i=o;function o(c){const d=t.reduce((u,h)=>h(u),e());return n=sD(d),s=n.cache.get,a=n.cache.set,i=l,l(c)}function l(c){const d=s(c);if(d)return d;const u=iD(c,n);return a(c,u),u}return function(){return i(oD.apply(null,arguments))}}const $t=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},vE=/^\[(?:([a-z-]+):)?(.+)\]$/i,cD=/^\d+\/\d+$/,dD=new Set(["px","full","screen"]),uD=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,hD=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,mD=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,fD=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,pD=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,wa=e=>uc(e)||dD.has(e)||cD.test(e),si=e=>ad(e,"length",ND),uc=e=>!!e&&!Number.isNaN(Number(e)),fy=e=>ad(e,"number",uc),Ad=e=>!!e&&Number.isInteger(Number(e)),gD=e=>e.endsWith("%")&&uc(e.slice(0,-1)),Xe=e=>vE.test(e),ai=e=>uD.test(e),xD=new Set(["length","size","percentage"]),yD=e=>ad(e,xD,bE),vD=e=>ad(e,"position",bE),bD=new Set(["image","url"]),wD=e=>ad(e,bD,_D),jD=e=>ad(e,"",kD),Id=()=>!0,ad=(e,t,n)=>{const s=vE.exec(e);return s?s[1]?typeof t=="string"?s[1]===t:t.has(s[1]):n(s[2]):!1},ND=e=>hD.test(e)&&!mD.test(e),bE=()=>!1,kD=e=>fD.test(e),_D=e=>pD.test(e),SD=()=>{const e=$t("colors"),t=$t("spacing"),n=$t("blur"),s=$t("brightness"),a=$t("borderColor"),i=$t("borderRadius"),o=$t("borderSpacing"),l=$t("borderWidth"),c=$t("contrast"),d=$t("grayscale"),u=$t("hueRotate"),h=$t("invert"),f=$t("gap"),m=$t("gradientColorStops"),y=$t("gradientColorStopPositions"),p=$t("inset"),v=$t("margin"),g=$t("opacity"),x=$t("padding"),b=$t("saturate"),w=$t("scale"),N=$t("sepia"),S=$t("skew"),_=$t("space"),C=$t("translate"),$=()=>["auto","contain","none"],k=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto",Xe,t],T=()=>[Xe,t],O=()=>["",wa,si],A=()=>["auto",uc,Xe],U=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],z=()=>["solid","dashed","dotted","double","none"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],B=()=>["start","end","center","between","around","evenly","stretch"],R=()=>["","0",Xe],D=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>[uc,Xe];return{cacheSize:500,separator:":",theme:{colors:[Id],spacing:[wa,si],blur:["none","",ai,Xe],brightness:P(),borderColor:[e],borderRadius:["n
vendor: 3,184 bytes, line 545
545one","","full",ai,Xe],borderSpacing:T(),borderWidth:O(),contrast:P(),grayscale:R(),hueRotate:P(),invert:R(),gap:T(),gradientColorStops:[e],gradientColorStopPositions:[gD,si],inset:E(),margin:E(),opacity:P(),padding:T(),saturate:P(),scale:P(),sepia:R(),skew:P(),space:T(),translate:T()},classGroups:{aspect:[{aspect:["auto","square","video",Xe]}],container:["container"],columns:[{columns:[ai]}],"break-after":[{"break-after":D()}],"break-before":[{"break-before":D()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...U(),Xe]}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:$()}],"overscroll-x":[{"overscroll-x":$()}],"overscroll-y":[{"overscroll-y":$()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ad,Xe]}],basis:[{basis:E()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Xe]}],grow:[{grow:R()}],shrink:[{shrink:R()}],order:[{order:["first","last","none",Ad,Xe]}],"grid-cols":[{"grid-cols":[Id]}],"col-start-end":[{col:["auto",{span:["full",Ad,Xe]},Xe]}],"col-start":[{"col-start":A()}],"col-end":[{"col-end":A()}],"grid-rows":[{"grid-rows":[Id]}],"row-start-end":[{row:["auto",{span:[Ad,Xe]},Xe]}],"row-start":[{"row-start":A()}],"row-end":[{"row-end":A()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Xe]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Xe]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...B()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...B(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...B(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}
vendor: 8,339 bytes, line 545
545],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[_]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[_]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Xe,t]}],"min-w":[{"min-w":[Xe,t,"min","max","fit"]}],"max-w":[{"max-w":[Xe,t,"none","full","min","max","fit","prose",{screen:[ai]},ai]}],h:[{h:[Xe,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Xe,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Xe,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Xe,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ai,si]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",fy]}],"font-family":[{font:[Id]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Xe]}],"line-clamp":[{"line-clamp":["none",uc,fy]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",wa,Xe]}],"list-image":[{"list-image":["none",Xe]}],"list-style-type":[{list:["none","disc","decimal",Xe]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...z(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",wa,si]}],"underline-offset":[{"underline-offset":["auto",wa,Xe]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Xe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Xe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...U(),vD]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",yD]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},wD]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...z(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:z()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...z()]}],"outline-offset":[{"outline-offset":[wa,Xe]}],"outline-w":[{outline:[wa,si]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:O()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[wa,si]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ai,jD]}],"shadow-color":[{shadow:[Id]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...W(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":W()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[s]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",ai,Xe]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[h]}],saturate:[{saturate:[b]}],sepia:[{sepia:[N]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[N]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Xe]}],duration:[{duration:P()}],ease:[{ease:["linear","in","out","in-out",Xe]}],delay:[{delay:P()}],animate:[{animate:["none","spin","ping","pulse","bounce",Xe]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[Ad,Xe]}],"translate-x":[{"translate-x":[C]}],"translate-y":[{"translate-y":[C]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Xe]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Xe]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}
vendor: 4,647 bytes, line 545
545],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Xe]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[wa,si,fy]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},CD=lD(SD);function le(...e){return CD(nE(e))}const ED=p7,wE=j.forwardRef(({className:e,...t},n)=>r.jsx(Q5,{ref:n,className:le("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));wE.displayName=Q5.displayName;const TD=xl("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),jE=j.forwardRef(({className:e,variant:t,...n},s)=>r.jsx(Z5,{ref:s,className:le(TD({variant:t}),e),...n}));jE.displayName=Z5.displayName;const $D=j.forwardRef(({className:e,...t},n)=>r.jsx(eE,{ref:n,className:le("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));$D.displayName=eE.displayName;const NE=j.forwardRef(({className:e,...t},n)=>r.jsx(tE,{ref:n,className:le("absolute right-2 top-2 rounded-md p-1 text-foreground
545/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:r.jsx(Ft,{className:"h-4 w-4"})}));NE.displayName=tE.displayName;const kE=j.forwardRef(({className:e,...t},n)=>r.jsx(X5,{ref:n,className:le("text-sm font-semibold",e),...t}));kE.displayName=X5.displayName;const _E=j.forwardRef(({className:e,...t},n)=>r.jsx(J5,{ref:n,className:le("text-sm opacity-90",e),...t}));_E.displayName=J5.displayName;function OD(){const{toasts:e}=Lt();return r.jsxs(ED,{children:[e.map(function({id:t,title:n,description:s,action:a,...i}){return r.jsxs(jE,{...i,children:[r.jsxs("div",{className:"grid gap-1",children:[n&&r.jsx(kE,{children:n}),s&&r.jsx(_E,{children:s})]}),a,r.jsx(NE,{})]},t)}),r.jsx(wE,{})]})}var B2=["light","dark"],PD="(prefers-color-scheme: dark)",AD=j.createContext(void 0),ID={setTheme:e=>{},themes:[]},RD=()=>{var e;return(e=j.useContext(AD))!=null?e:ID};j.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:s,enableColorScheme:a,defaultTheme:i,value:o,attrs:l,nonce:c})=>{let d=i==="system",u=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${l.map(y=>`'${y}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,h=a?B2.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",f=(y,p=!1,v=!0)=>{let g=o?o[y]:y,x=p?y+"|| ''":`'${g}'`,b="";return a&&v&&!p&&B2.includes(y)&&(b+=`d.style.colorScheme = '${y}';`),n==="class"?p||g?b+=`c.add(${x})`:b+="null":g&&(b+=`d[s](n,${x})`),b},m=e?`!function(){${u}${f(e)}}()`:s?`!function(){try{${u}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${d})){var t='${PD}',m=window.matchMedia(t);if(m.media!==t||m.matches){${f("dark")}}else{${f("light")}}}else if(e){${o?`var x=${JSON.stringify(o)};`:""}${f(o?"x[e]":"e",!0)}}${d?"":"else{"+f(i,!1,!1)+"}"}${h}}catch(e){}}()`:`!function(){try{${u}var e=localStorage.getItem('${t}');if(e){${o?`var x=${JSON.stringify(o)};`:""}${f(o?"x[e]":"e",!0)}}else{${f(i,!1,!1)};}${h}}catch(t){}}();`;return j.createElement("script",{nonce:c,dangerouslySetInnerHTML:{__html:m}})});var MD=e=>{switch(e){case"success":return LD;case"info":return WD;case"warning":return BD;case"error":return UD;default:return null}},DD=Array(12).fill(0),FD=({visible:e,className:t})=>ee.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},ee.createElement("div",{className:"sonner-spinner"},DD.map((n,s)=>ee.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${s}`})))),LD=ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ee.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),BD=ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},ee.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),WD=ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ee.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),UD=ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ee.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),qD=ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},ee.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),ee.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),HD=()=>{let[e,t]=ee.useState(document.hidden);return ee.useEffect(()=>{let n=()=>{t(document.hidden)};
545return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Nb=1,zD=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...s}=e,a=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Nb++,i=this.toasts.find(l=>l.id===a),o=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),i?this.toasts=this.toasts.map(l=>l.id===a?(this.publish({...l,...e,id:a,title:n}),{...l,...e,id:a,dismissible:o,title:n}):l):this.addToast({title:n,...s,dismissible:o,id:a}),a},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
545this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let s=e instanceof Promise?e:e(),a=n!==void 0,i,o=s.then(async c=>{if(i=["resolve",c],ee.isValidElement(c))a=!1,this.create({id:n,type:"default",message:c});else if(YD(c)&&!c.ok){a=!1;let d=typeof t.error=="function"?await t.error(`HTTP error! status: ${c.status}`):t.error,u=typeof t.description=="function"?await t.description(`HTTP error! status: ${c.status}`):t.description;this.create({id:n,type:"error",message:d,description:u})}else if(t.success!==void 0){a=!1;let d=typeof t.success=="function"?await t.success(c):t.success,u=typeof t.description=="function"?await t.description(c):t.description;this.create({id:n,type:"success",message:d,description:u})}}).catch(async c=>{if(i=["reject",c],t.error!==void 0){a=!1;let d=typeof t.error=="function"?await t.error(c):t.error,u=typeof t.description=="function"?await t.description(c):t.description;this.create({id:n,type:"error",message:d,description:u})}}).finally(()=>{var c;a&&(this.dismiss(n),n=void 0),(c=t.finally)==null||c.call(t)}),l=()=>new Promise((c,d)=>o.then(()=>i[0]==="reject"?d(i[1]):c(i[1])).catch(d));return typeof n!="string"&&typeof n!="number"?{unwrap:l}:Object.assign(n,{unwrap:l})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||Nb++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},pn=new zD,GD=(e,t)=>{let n=(t==null?void 0:t.id)||Nb++;return pn.addToast({title:e,...t,id:n}),n},YD=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",VD=GD,KD=()=>pn.toasts,QD=()=>pn.getActiveToasts(),mr=Object.assign(VD,{success:pn.success,info:pn.info,warning:pn.warning,error:pn.error,custom:pn.custom,message:pn.message,promise:pn.promise,dismiss:pn.dismiss,loading:pn.loading},{getHistory:KD,getToasts:QD});function ZD(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css",t==="top"&&n.firstChild?n.insertBefore(s,n.firstChild):n.appendChild(s),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e))}ZD(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
545left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
545:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);
545--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} 546`);function km(e){return e.label!==void 0}var XD=3,JD="32px",eF="16px",W2=4e3,tF=356,rF=14,nF=20,sF=200;function cs(...e){return e.filter(Boolean).join(" ")}function aF(e){let[t,n]=e.split("-"),s=[];return t&&s.push(t),n&&s.push(n),s}var iF=e=>{var t,n,s,a,i,o,l,c,d,u,h;let{invert:f,toast:m,unstyled:y,interacting:p,setHeights:v,visibleToasts:g,heights:x,index:b,toasts:w,expanded:N,removeToast:S,defaultRichColors:_,closeButton:C,style:$,cancelButtonStyle:k,actionButtonStyle:E,className:T="",descriptionClassName:O="",duration:A,position:U,gap:z,loadingIcon:W,expandByDefault:B,classNames:R,icons:D,closeButtonAriaLabel:P="Close toast",pauseWhenPageIsHidden:I}=e,[F,Y]=ee.useState(null),[H,L]=ee.useState(null),[M,Q]=ee.useState(!1),[X,re]=ee.useState(!1),[de,be]=ee.useState(!1),[Ee,Fe]=ee.useState(!1),[qe,xt]=ee.useState(!1),[ot,ne]=ee.useState(0),[se,q]=ee.useState(0),V=ee.useRef(m.duration||A||W2),K=ee.useRef(null),ce=ee.useRef(null),ie=b===0,ae=b+1<=g,ye=m.type,De=m.dismissible!==!1,Le=m.className||"",lr=m.descriptionClassName||"",lt=ee.useMemo(()=>x.findIndex(Ye=>Ye.toastId===m.id)||0,[x,m.id]),Bt=ee.useMemo(()=>{var Ye;return(Ye=m.closeButton)!=null?Ye:C},[m.closeButton,C]),wo=ee.useMemo(()=>m.duration||A||W2,[m.duration,A]),Gn=ee.useRef(0),Ur=ee.useRef(0),on=ee.useRef(0),$r=ee.useRef(null),[jo,ri]=U.split("-"),nm=ee.useMemo(()=>x.reduce((Ye,He,pt)=>pt>=lt?Ye:Ye+He.height,0),[x,lt]),No=HD(),kl=m.invert||f,kd=ye==="loading";Ur.current=ee.useMemo(()=>lt*z+nm,[lt,nm]),ee.useEffect(()=>{V.current=wo}
546,[wo]),ee.useEffect(()=>{Q(!0)},[]),ee.useEffect(()=>{let Ye=ce.current;if(Ye){let He=Ye.getBoundingClientRect().height;return q(He),v(pt=>[{toastId:m.id,height:He,position:m.position},...pt]),()=>v(pt=>pt.filter($n=>$n.toastId!==m.id))}},[v,m.id]),ee.useLayoutEffect(()=>{if(!M)return;let Ye=ce.current,He=Ye.style.height;Ye.style.height="auto";let pt=Ye.getBoundingClientRect().height;Ye.style.height=He,q(pt),v($n=>$n.find(cn=>cn.toastId===m.id)?$n.map(cn=>cn.toastId===m.id?{...cn,height:pt}:cn):[{toastId:m.id,height:pt,position:m.position},...$n])},[M,m.title,m.description,v,m.id]);let ln=ee.useCallback(()=>{re(!0),ne(Ur.current),v(Ye=>Ye.filter(He=>He.toastId!==m.id)),setTimeout(()=>{S(m)},sF)},[m,S,v,Ur]);ee.useEffect(()=>{if(m.promise&&ye==="loading"||m.duration===1/0||m.type==="loading")return;let Ye;return N||p||I&&No?(()=>{if(on.current<Gn.current){let He=new Date().getTime()-Gn.current;V.current=V.current-He}on.current=new Date().getTime()})():V.current!==1/0&&(Gn.current=new Date().getTime(),Ye=setTimeout(()=>{var He;(He=m.onAutoClose)==null||He.call(m,m),ln()},V.current)),()=>clearTimeout(Ye)},[N,p,m,ye,I,No,ln]),ee.useEffect(()=>{m.delete&&ln()},[ln,m.delete]);function Ix(){var Ye,He,pt;return D!=null&&D.loading?ee.createElement("div",{className:cs(R==null?void 0:R.loader,(Ye=m==null?void 0:m.classNames)==null?void 0:Ye.loader,"sonner-loader"),"data-visible":ye==="loading"},D.loading):W?ee.createElement("div",{className:cs(R==null?void 0:R.loader,(He=m==null?void 0:m.classNames)==null?void 0:He.loader,"sonner-loader"),"data-visible":ye==="loading"},W):ee.createElement(FD,{className:cs(R==null?void 0:R.loader,(pt=m==null?void 0:m.classNames)==null?void 0:pt.loader),visible:ye==="loading"})}return ee.createElement("li",{tabIndex:0,ref:ce,className:cs(T,Le,R==null?void 0:R.toast,(t=m==null?void 0:m.classNames)==null?void 0:t.toast,R==null?void 0:R.default,R==null?void 0:R[ye],(n=m==null?void 0:m.classNames)==null?void 0:n[ye]),"data-sonner-toast":"","data-rich-colors":(s=m.richColors)!=null?s:_,"data-styled":!(m.jsx||m.unstyled||y),"data-mounted":M,"data-promise":!!m.promise,"data-swiped":qe,"data-removed":X,"data-visible":ae,"data-y-position":jo,"data-x-position":ri,"data-index":b,"data-front":ie,"data-swiping":de,"data-dismissible":De,"data-type":ye,"data-invert":kl,"data-swipe-out":Ee,"data-swipe-direction":H,"data-expanded":!!(N||B&&M),style:{"--index":b,"--toasts-before":b,"--z-index":w.length-b,"--offset":`${X?ot:Ur.current}px`,"--initial-height":B?"auto":`${se}px`,...$,...m.style},onDragEnd:()=>{be(!1),Y(null),$r.current=null},onPointerDown:Ye=>{kd||!De||(K.current=new Date,ne(Ur.current),Ye.target.setPointerCapture(Ye.pointerId),Ye.target.tagName!=="BUTTON"&&(be(!0),$r.current={x:Ye.clientX,y:Ye.clientY}))},onPointerUp:()=>{var Ye,He,pt,$n;if(Ee||!De)return;$r.current=null;let cn=Number(((Ye=ce.current)==null?void 0:Ye.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Yn=Number(((He=ce.current)==null?void 0:He.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Us=new Date().getTime()-((pt=K.current)==null?void 0:pt.getTime()),dn=F==="x"?cn:Yn,qs=Math.abs(dn)/Us;if(Math.abs(dn)>=nF||qs>.11){ne(Ur.current),($n=m.onDismiss)==null||$n.call(m,m),L(F==="x"?cn>0?"right":"left":Yn>0?"down":"up"),ln(),Fe(!0),xt(!1);return}be(!1),Y(null)},onPointerMove:Ye=>{var He,pt,$n,cn;if(!$r.current||!De||((He=window.getSelection())==null?void 0:He.toString().length)>0)return;let Yn=Ye.clientY-$r.current.y,Us=Ye.clientX-$r.current.x,dn=(pt=e.swipeDirections)!=null?pt:aF(U);!F&&(Math.abs(Us)>1||Math.abs(Yn)>1)&&Y(Math.abs(Us)>Math.abs(Yn)?"x":"y");let qs={x:0,y:0};F==="y"?(dn.includes("top")||dn.includes("bottom"))&&(dn.includes("top")&&Yn<0||dn.includes("bottom")&&Yn>0)&&(qs.y=Yn):F==="x"&&(dn.includes("left")||dn.includes("right"))&&(dn.includes("left")&&Us<0||dn.includes("right")&&Us>0)&&(qs.x=Us),(Math.abs(qs.x)>0||Math.abs(qs.y)>0)&&xt(!0),($n=ce.current)==null||$n.style.setProperty("--swipe-amount-x",`${qs.x}px`),(cn=ce.current)==null||cn.style.setProperty("--swipe-amount-y",`${qs.y}px`)}},Bt&&!m.jsx?ee.createElement("button",{"aria-label":P,"data-disabled":kd,"data-close-button":!0,onClick:kd||!De?()=>{}:()=>{var Ye;ln(),(Ye=m.onDismiss)==null||Ye.call(m,m)},className:cs(R==null?void 0:R.closeButton,(a=m==null?void 0:m.classNames)==null?void 0:a.closeButton)},(i=D==null?void 0:D.close)!=null?i:qD):null,m.jsx||j.isValidElement(m.title)?m.jsx?m.jsx:typeof m.title=="function"?m.title():m.title:ee.createElement(ee.Fragment,null,ye||m.icon||m.promise?ee.createElement("div",{"data-icon":"",className:cs(R==null?void 0:R.icon,(o=m==null?void 0:m.classNames)==null?void 0:o.icon)},m.promise||m.type==="loading"&&!m.icon?m.icon||Ix():null,m.type!=="loading"?m.
546icon||(D==null?void 0:D[ye])||MD(ye):null):null,ee.createElement("div",{"data-content":"",className:cs(R==null?void 0:R.content,(l=m==null?void 0:m.classNames)==null?void 0:l.content)},ee.createElement("div",{"data-title":"",className:cs(R==null?void 0:R.title,(c=m==null?void 0:m.classNames)==null?void 0:c.title)},typeof m.title=="function"?m.title():m.title),m.description?ee.createElement("div",{"data-description":"",className:cs(O,lr,R==null?void 0:R.description,(d=m==null?void 0:m.classNames)==null?void 0:d.description)},typeof m.description=="function"?m.description():m.description):null),j.isValidElement(m.cancel)?m.cancel:m.cancel&&km(m.cancel)?ee.createElement("button",{"data-button":!0,"data-cancel":!0,style:m.cancelButtonStyle||k,onClick:Ye=>{var He,pt;km(m.cancel)&&De&&((pt=(He=m.cancel).onClick)==null||pt.call(He,Ye),ln())},className:cs(R==null?void 0:R.cancelButton,(u=m==null?void 0:m.classNames)==null?void 0:u.cancelButton)},m.cancel.label):null,j.isValidElement(m.action)?m.action:m.action&&km(m.action)?ee.createElement("button",{"data-button":!0,"data-action":!0,style:m.actionButtonStyle||E,onClick:Ye=>{var He,pt;km(m.action)&&((pt=(He=m.action).onClick)==null||pt.call(He,Ye),!Ye.defaultPrevented&&ln())},className:cs(R==null?void 0:R.actionButton,(h=m==null?void 0:m.classNames)==null?void 0:h.actionButton)},m.action.label):null))};function U2(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function oF(e,t){let n={};return[e,t].forEach((s,a)=>{let i=a===1,o=i?"--mobile-offset":"--offset",l=i?eF:JD;function c(d){["top","right","bottom","left"].forEach(u=>{n[`${o}-${u}`]=typeof d=="number"?`${d}px`:d})}typeof s=="number"||typeof s=="string"?c(s):typeof s=="object"?["top","right","bottom","left"].forEach(d=>{s[d]===void 0?n[`${o}-${d}`]=l:n[`${o}-${d}`]=typeof s[d]=="number"?`${s[d]}px`:s[d]}):c(l)}),n}var lF=j.forwardRef(function(e,t){let{invert:n,position:s="bottom-right",hotkey:a=["altKey","KeyT"],expand:i,closeButton:o,className:l,offset:c,mobileOffset:d,theme:u="light",richColors:h,duration:f,style:m,visibleToasts:y=XD,toastOptions:p,dir:v=U2(),gap:g=rF,loadingIcon:x,icons:b,containerAriaLabel:w="Notifications",pauseWhenPageIsHidden:N}=e,[S,_]=ee.useState([]),C=ee.useMemo(()=>Array.from(new Set([s].concat(S.filter(I=>I.position).map(I=>I.position)))),[S,s]),[$,k]=ee.useState([]),[E,T]=ee.useState(!1),[O,A]=ee.useState(!1),[U,z]=ee.useState(u!=="system"?u:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),W=ee.useRef(null),B=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),R=ee.useRef(null),D=ee.useRef(!1),P=ee.useCallback(I=>{_(F=>{var Y;return(Y=F.find(H=>H.id===I.id))!=null&&Y.delete||pn.dismiss(I.id),F.filter(({id:H})=>H!==I.id)})},[]);return ee.useEffect(()=>pn.subscribe(I=>{if(I.dismiss){_(F=>F.map(Y=>Y.id===I.id?{...Y,delete:!0}:Y));return}setTimeout(()=>{$5.flushSync(()=>{_(F=>{let Y=F.findIndex(H=>H.id===I.id);return Y!==-1?[...F.slice(0,Y),{...F[Y],...I},...F.slice(Y+1)]:[I,...F]})})})}),[]),ee.useEffect(()=>{if(u!=="system"){z(u);return}if(u==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?z("dark"):z("light")),typeof window>"u")return;let I=window.matchMedia("(prefers-color-scheme: dark)");try{I.addEventListener("change",({matches:F})=>{z(F?"dark":"light")})}catch{I.addListener(({matches:Y})=>{try{z(Y?"dark":"light")}catch(H){console.error(H)}})}},[u]),ee.useEffect(()=>{S.length<=1&&T(!1)},[S]),ee.useEffect(()=>{let I=F=>{var Y,H;a.every(L=>F[L]||F.code===L)&&(T(!0),(Y=W.current)==null||Y.focus()),F.code==="Escape"&&(document.activeElement===W.current||(H=W.current)!=null&&H.contains(document.activeElement))&&T(!1)};return document.addEventListener("keydown",I),()=>document.removeEventListener("keydown",I)},[a]),ee.useEffect(()=>{if(W.current)return()=>{R.current&&(R.current.focus({preventScroll:!0}),R.current=null,D.current=!1)}},[W.current]),ee.createElement("section",{ref:t,"aria-label":`${w} ${B}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},C.map((I,F)=>{var Y;let[H,L]=I.split("-");return S.length?ee.createElement("ol",{key:I,dir:v==="auto"?U2():v,tabIndex:-1,ref:W,className:l,"data-sonner-toaster":!0,"data-theme":U,"data-y-position":H,"data-lifted":E&&S.length>1&&!i,"data-x-position":L,style:{"--front-toast-height":`${((Y=$[0])==null?void 0:Y.height)||0}px`,"--width":`${tF}px`,"--gap":`${g}px`,...m,...oF(c,d)},onBlur:M=>{D.current&&!M.currentTarget.contains(M.relatedTarget)&&(D.current=!1,R.current&&(R.current.focus({preventScroll:!0}),R.current=null))},onFocus:M=>{M.target instanceof HTMLElement&&M.target.dataset.dismissible==="false"||D.current||(D.current=!0,R.current=M.relatedTarget)},onMouseEnter:()=>T(!0),onMouseMove:()=>T(!0),onMouseLeave:()=>{O||T(!1)},onDragEnd:()=>T(!1),onPointerDown:M=>{M.target instanceof HTMLElement&&M.target.dataset.dismissible==="false"||A(!0)},onPointerUp:()=>A(!1)},S.filter(M=>!M.position&&F===0||M.position===I).map((M,Q)=>{var X,re;return ee.createElement(iF,{key:M.id,icons:b,index:Q,toast:M,defaultRichColors:h,duration:(X=p==null?void 0:p.duration)!=null?X:f,className:p==null?void 0:p.className,descriptionClassName:p==null?void 0:p.descriptionClassName,invert:n,visibleToasts:y,closeButton:(re=p==null?void 0:p.closeButton)!=null?re:o,interacting:O,position:I,style:p==null?void 0:p.style,unstyled:p==null?void 0:p.unstyled,classNames:p==null?void 0:p.classNames,cancelButtonStyle:p==null?void 0:p.cancelButtonStyle,actionButtonStyle:p==null?void 0:p.actionButtonStyle,removeToast:P,toasts:S.filter(de=>de.position==M.position),heights:$.filter(de=>de.position==M.position),setHeights:k,expandByDefault:i,gap:g,loadingIcon:x,expanded:E,pauseWhenPageIsHidden:N,swipeDirections:e.swipeDirections})})):null}))});const cF=({...e})=>{const{theme:t="system"}=RD();return r.jsx(lF,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};var dF=b1[" useId ".trim().toString()]||(()=>{}),uF=0;function ar(e){const[t,n]=j.useState(dF());return Qt(()=>{n(s=>s??String(uF++))},[e]),t?`radix-${t}`:""}const hF=["top","right","bottom","left"],eo=Math.min,In=Math.max,Kf=Math.round,_m=Math.floor,da=e=>({x:e,y:e}
vendor: 11,791 bytes, line 546
546),mF={left:"right",right:"left",bottom:"top",top:"bottom"},fF={start:"end",end:"start"};function kb(e,t,n){return In(e,eo(t,n))}function Ha(e,t){return typeof e=="function"?e(t):e}function za(e){return e.split("-")[0]}function id(e){return e.split("-")[1]}function Nw(e){return e==="x"?"y":"x"}function kw(e){return e==="y"?"height":"width"}const pF=new Set(["top","bottom"]);function sa(e){return pF.has(za(e))?"y":"x"}function _w(e){return Nw(sa(e))}function gF(e,t,n){n===void 0&&(n=!1);const s=id(e),a=_w(e),i=kw(a);let o=a==="x"?s===(n?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=Qf(o)),[o,Qf(o)]}function xF(e){const t=Qf(e);return[_b(e),t,_b(t)]}function _b(e){return e.replace(/start|end/g,t=>fF[t])}const q2=["left","right"],H2=["right","left"],yF=["top","bottom"],vF=["bottom","top"];function bF(e,t,n){switch(e){case"top":case"bottom":return n?t?H2:q2:t?q2:H2;case"left":case"right":return t?yF:vF;default:return[]}}function wF(e,t,n,s){const a=id(e);let i=bF(za(e),n==="start",s);return a&&(i=i.map(o=>o+"-"+a),t&&(i=i.concat(i.map(_b)))),i}function Qf(e){return e.replace(/left|right|bottom|top/g,t=>mF[t])}function jF(e){return{top:0,right:0,bottom:0,left:0,...e}}function SE(e){return typeof e!="number"?jF(e):{top:e,right:e,bottom:e,left:e}}function Zf(e){const{x:t,y:n,width:s,height:a}=e;return{width:s,height:a,top:n,left:t,right:t+s,bottom:n+a,x:t,y:n}}function z2(e,t,n){let{reference:s,floating:a}=e;const i=sa(t),o=_w(t),l=kw(o),c=za(t),d=i==="y",u=s.x+s.width/2-a.width/2,h=s.y+s.height/2-a.height/2,f=s[l]/2-a[l]/2;let m;switch(c){case"top":m={x:u,y:s.y-a.height};break;case"bottom":m={x:u,y:s.y+s.height};break;case"right":m={x:s.x+s.width,y:h};break;case"left":m={x:s.x-a.width,y:h};break;default:m={x:s.x,y:s.y}}switch(id(t)){case"start":m[o]-=f*(n&&d?-1:1);break;case"end":m[o]+=f*(n&&d?-1:1);break}return m}const NF=async(e,t,n)=>{const{placement:s="bottom",strategy:a="absolute",middleware:i=[],platform:o}=n,l=i.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t));let d=await o.getElementRects({reference:e,floating:t,strategy:a}),{x:u,y:h}=z2(d,s,c),f=s,m={},y=0;for(let p=0;p<l.length;p++){const{name:v,fn:g}=l[p],{x,y:b,data:w,reset:N}=await g({x:u,y:h,initialPlacement:s,placement:f,strategy:a,middlewareData:m,rects:d,platform:o,elements:{reference:e,floating:t}});u=x??u,h=b??h,m={...m,[v]:{...m[v],...w}},N&&y<=50&&(y++,typeof N=="object"&&(N.placement&&(f=N.placement),N.rects&&(d=N.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:a}):N.rects),{x:u,y:h}=z2(d,f,c)),p=-1)}return{x:u,y:h,placement:f,strategy:a,middlewareData:m}};async function zu(e,t){var n;t===void 0&&(t={});const{x:s,y:a,platform:i,rects:o,elements:l,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:f=!1,padding:m=0}=Ha(t,e),y=SE(m),v=l[f?h==="floating"?"reference":"floating":h],g=Zf(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(v)))==null||n?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:d,rootBoundary:u,strategy:c})),x=h==="floating"?{x:s,y:a,width:o.floating.width,height:o.floating.height}:o.reference,b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),w=await(i.isElement==null?void 0:i.isElement(b))?await(i.getScale==null?void 0:i.getScale(b))||{x:1,y:1}:{x:1,y:1},N=Zf(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:x,offsetParent:b,strategy:c}):x);return{top:(g.top-N.top+y.top)/w.y,bottom:(N.bottom-g.bottom+y.bottom)/w.y,left:(g.left-N.left+y.left)/w.x,right:(N.right-g.right+y.right)/w.x}}const kF=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:s,placement:a,rects:i,platform:o,elements:l,middlewareData:c}=t,{element:d,padding:u=0}=Ha(e,t)||{};if(d==null)return{};const h=SE(u),f={x:n,y:s},m=_w(a),y=kw(m),p=await o.getDimensions(d),v=m==="y",g=v?"top":"left",x=v?"bottom":"right",b=v?"clientHeight":"clientWidth",w=i.reference[y]+i.reference[m]-f[m]-i.floating[y],N=f[m]-i.reference[m],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(d));let _=S?S[b]:0;(!_||!await(o.isElement==null?void 0:o.isElement(S)))&&(_=l.floating[b]||i.floating[y]);const C=w/2-N/2,$=_/2-p[y]/2-1,k=eo(h[g],$),E=eo(h[x],$),T=k,O=_-p[y]-E,A=_/2-p[y]/2+C,U=kb(T,A,O),z=!c.arrow&&id(a)!=null&&A!==U&&i.reference[y]/2-(A<T?k:E)-p[y]/2<0,W=z?A<T?A-T:A-O:0;return{[m]:f[m]+W,data:{[m]:U,centerOffset:A-U-W,...z&&{alignmentOffset:W}},reset:z}}}),_F=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,s;const{placement:a,middlewareData:i,rects:o,initialPlacement:l,platform:c,elements:d}=t,{mainAxis:u=!0,crossAxis:h=!0,fallbackPlacements:f,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:p=!0,...v}=Ha(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const g=za(a),x=sa(l),b=za(l)===l,w=await(c.isRTL==null?void 0:c.isRTL(d.floating)),N=f||(b||!p?[Qf(l)]:xF(l)),S=y!=="none";!f&&S&&N.push(...wF(l,p,y,w));const _=[l,...N],C=await zu(t,v),$=[];let k=((s=i.flip)==null?void 0:s.overflows)||[];if(u&&$.push(C[g]),h){const A=gF(a,o,w);$.push(C[A[0]],C[A[1]])}if(k=[...k,{placement:a,overflows:$}],!$.every(A=>A<=0)){var E,T;const A=(((E=i.flip)==null?void 0:E.index)||0)+1,U=_[A];if(U&&(!(h==="alignment"?x!==sa(U):!1)||k.every(B=>B.overflows[0]>0&&sa(B.placement)===x)))return{data:{index:A,overflows:k},reset:{placement:U}};let z=(T=k.filter(W=>W.overflows[0]<=0).sort((W,B)=>W.overflows[1]-B.overflows[1])[0])==null?void 0:T.placement;if(!z)switch(m){case"bestFit":{var O;const W=(O=k.filter(B=>{if(S){const R=sa(B.placement);return R===x||R==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(R=>R>0).reduce((R,D)=>R+D,0)]).sort((B,R)=>B[1]-R[1])[0])==null?void 0:O[0];W&&(z=W);break}case"initialPlacement":z=l;break}if(a!==z)return{reset:{placement:z}}}return{}}}};function G2(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Y2(e){return hF.some(t=>e[t]>=0)}const SF=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:s="referenceHidden",...a}=Ha(e,t);switch(s){case"referenceHidden":{const i=await zu(t,{...a,elementContext:"reference"}),o=G2(i,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:Y2(o)}}}case"escaped":{const i=await zu(t,{...a,altBoundary:!0}),o=G2(i,n.floating);return{data:{escapedOffsets:o,escaped:Y2(o)}}}default:return{}}}}},CE=new Set(["left","top"]);async function CF(e,t){const{placement:n,platform:s,elements:a}=e,i=await(s.isRTL==null?void 0:s.isRTL(a.floating)),o=za(n),l=id(n),c=sa(n)==="y",d=CE.has(o)?-1:1,u=i&&c?-1:1,h=Ha(t,e);let{mainAxis:f,crossAxis:m,alignmentAxis:y}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof y=="number"&&(m=l==="end"?y*-1:y),c?{x:m*u,y:f*d}:{x:f*d,y:m*u}}const EF=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,s;const{x:a,y:i,placement:o,middlewareData:l}=t,c=await CF(t,e);return o===((n=l.offset)==null?void 0:n.placement)&&(s=l.arrow)!=null&&s.alignmentOffset?{}:{x:a+c.x,y:i+c.y,data:{...c,placement:o}}}}},TF=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:s,placement:a}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:l={fn:v=>{let{x:g,y:x}=v;return{x:g,y:x}}},...c}=Ha(e,t),d={x:n,y:s},u=await zu(t,c),h=sa(za(a)),f=Nw(h);let m=d[f],y=d[h];if(i){const v=f==="y"?"top":"left",g=f==="y"?"bottom":"right",x=m+u[v],b=m-u[g];m=kb(x,m,b)}if(o){const v=h==="y"?"top":"left",g=h==="y"?"bottom":"right",x=y+u[v],b=y-u[g];y=kb(x,y,b)}const p=l.fn({...t,[f]:m,[h]:y});return{...p,data:{x:p.x-n,y:p.y-s,enabled:{[f]:i,[h]:o}}}}}},$F=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:s,placement:a,rects:i,middlewareData:o}=t,{offset:l=0,mainAxis:c=!0,crossAxis:d=!0}=Ha(e,t),u={x:n,y:s},h=sa(a),f=Nw(h);let m=u[f],y=u[h];const p=Ha(l,t),v=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(c){const b=f==="y"?"height":"width",w=i.reference[f]-i.floating[b]+v.mainAxis,N=i.reference[f]+i.reference[b]-v.mainAxis;m<w?m=w:m>N&&(m=N)}if(d){var g,x;const b=f==="y"?"width":"height",w=CE.has(za(a)),N=i.reference[h]-i.floating[b]+(w&&((g=o.offset)==null?void 0:g[h])||0)+(w?0:v.crossAxis),S=i.reference[h]+i.reference[b]+(w?0:((x=o.offset)==null?void 0:x[h])||0)-(w?v.crossAxis:0);y<N?y=N:y>S&&(y=S)}return{[f]:m,[h]:y}}}},OF=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,s;const{placement:a,rects:i,platform:o,elements:l}=t,{apply:c=()=>{},...d}=Ha(e,t),u=await zu(t,d),h=za(a),f=id(a),m=sa(a)==="y",{width:y,height:p}=i.floating;let v,g;h==="top"||h==="bottom"?(v=h,g=f===(await(o.isRTL==null?void 0:o.isRTL(l.floating))?"start":"end")?"left":"right"):(g=h,v=f==="end"?"top":"bottom");const x=p-u.top-u.bottom,b=y-u.left-u.right,w=eo(p-u[v],x),N=eo(y-u[g],b),S=!t.middlewareData.shift;let _=w,C=N;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(C=b),(s=t.middlewareData.shift)!=null&&s.enabled.y&&(_=x),S&&!f){const k=In(u.left,0),E=In(u.right,0),T=In(u.top,0),O=In(u.bottom,0);m?C=y-2*(k!==0||E!==0?k+E:In(u.left,u.right)):_=p-2*(T!==0||O!==0?T+O:In(u.top,u.bottom))}await c({...t,availableWidth:C,availableHeight:_});const $=await o.getDimensions(l.floating);return y!==$.width||p!==$.height?{reset:{rects:!0}}:{}}}};function hg(){return typeof window<"u"}function od(e){return EE(e)?(e.nodeName||"").toLowerCase():"#document"}function Fn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ga(e){var t;return(t=(EE(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function EE(e){return hg()?e instanceof Node||e instanceof Fn(e).Node:!1}function Ms(e){return hg()?e instanceof Element||e instanceof Fn(e).Element:!1}function fa(e){return hg()?e instanceof HTMLElement||e instanceof Fn(e).HTMLElement:!1}function V2(e){return!hg()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Fn(e).ShadowRoot}const PF=new Set(["inline","contents"]);function Ph(e){const{overflow:t,overflowX:n,overflowY:s,display:a}=Ds(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+n)&&!PF.has(a)}const AF=new Set(["table","td","th"]);function IF(e){return AF.has(od(e))}const RF=[":popover-open",":modal"];function mg(e){return RF.some(t=>{try{return e.matches(t)}catch{return!1}})}const MF=["transform","translate","scale","rotate","perspective"],DF=["transform","translate","scale","rotate","perspective","filter"],FF=["paint","layout","strict","content"];function Sw(e){const t=Cw(),n=Ms(e)?Ds(e):e;return MF.some(s=>n[s]?n[s]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||DF.some(s=>(n.willChange||"").includes(s))||FF.some(s=>(n.contain||"").includes(s))}function LF(e){let t=to(e);for(;fa(t)&&!Lc(t);){if(Sw(t))return t;if(mg(t))return null;t=to(t)}return null}function Cw(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const BF=new Set(["html","body","#document"]);function Lc(e){return BF.has(od(e))}function Ds(e){return Fn(e).getComputedStyle(e)}function fg(e){return Ms(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function to(e){if(od(e)==="html")return e;const t=e.assignedSlot||e.parentNode||V2(e)&&e.host||ga(e);return V2(t)?t.host:t}function TE(e){const t=to(e);return Lc(t)?e.ownerDocument?e.ownerDocument.body:e.body:fa(t)&&Ph(t)?t:TE(t)}function Gu(e,t,n){var s;
vendor: 2,089 bytes, line 546
546t===void 0&&(t=[]),n===void 0&&(n=!0);const a=TE(e),i=a===((s=e.ownerDocument)==null?void 0:s.body),o=Fn(a);if(i){const l=Sb(o);return t.concat(o,o.visualViewport||[],Ph(a)?a:[],l&&n?Gu(l):[])}return t.concat(a,Gu(a,[],n))}function Sb(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function $E(e){const t=Ds(e);let n=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const a=fa(e),i=a?e.offsetWidth:n,o=a?e.offsetHeight:s,l=Kf(n)!==i||Kf(s)!==o;return l&&(n=i,s=o),{width:n,height:s,$:l}}function Ew(e){return Ms(e)?e:e.contextElement}function hc(e){const t=Ew(e);if(!fa(t))return da(1);const n=t.getBoundingClientRect(),{width:s,height:a,$:i}=$E(t);let o=(i?Kf(n.width):n.width)/s,l=(i?Kf(n.height):n.height)/a;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const WF=da(0);function OE(e){const t=Fn(e);return!Cw()||!t.visualViewport?WF:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function UF(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Fn(e)?!1:t}function sl(e,t,n,s){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),i=Ew(e);let o=da(1);t&&(s?Ms(s)&&(o=hc(s)):o=hc(e));const l=UF(i,n,s)?OE(i):da(0);let c=(a.left+l.x)/o.x,d=(a.top+l.y)/o.y,u=a.width/o.x,h=a.height/o.y;if(i){const f=Fn(i),m=s&&Ms(s)?Fn(s):s;let y=f,p=Sb(y);for(;p&&s&&m!==y;){const v=hc(p),g=p.getBoundingClientRect(),x=Ds(p),b=g.left+(p.clientLeft+parseFloat(x.paddingLeft))*v.x,w=g.top+(p.clientTop+parseFloat(x.paddingTop))*v.y;c*=v.x,d*=v.y,u*=v.x,h*=v.y,c+=b,d+=w,y=Fn(p),p=Sb(y)}}return Zf({width:u,height:h,x:c,y:d})}function Tw(e,t){const n=fg(e).scrollLeft;return t?t.left+n:sl(ga(e)).left+n}function PE(e,t,n){n===void 0&&(n=!1);const s=e.getBoundingClientRect(),a=s.left+t.scrollLeft-(n?0:Tw(e,s)),i=s.top+t.scrollTop;return{x:a,y:i}}function qF(e){let{elements:t,rect:n,offsetParent:s,strategy:a}=e;const i=a==="fixed",o=ga(s),l=t?mg(t.floating):!1;if(s===o||l&&i)return n;let c={scrollLeft:0,scrollTop:0},d=da(1);const u=da(0),h=fa(s);if((h||!h&&!i)&&((od(s)!=="body"||Ph(o))&&(c=fg(s)),fa(s))){const m=sl(s);
vendor: 5,435 bytes, line 546
546d=hc(s),u.x=m.x+s.clientLeft,u.y=m.y+s.clientTop}const f=o&&!h&&!i?PE(o,c,!0):da(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+u.x+f.x,y:n.y*d.y-c.scrollTop*d.y+u.y+f.y}}function HF(e){return Array.from(e.getClientRects())}function zF(e){const t=ga(e),n=fg(e),s=e.ownerDocument.body,a=In(t.scrollWidth,t.clientWidth,s.scrollWidth,s.clientWidth),i=In(t.scrollHeight,t.clientHeight,s.scrollHeight,s.clientHeight);let o=-n.scrollLeft+Tw(e);const l=-n.scrollTop;return Ds(s).direction==="rtl"&&(o+=In(t.clientWidth,s.clientWidth)-a),{width:a,height:i,x:o,y:l}}function GF(e,t){const n=Fn(e),s=ga(e),a=n.visualViewport;let i=s.clientWidth,o=s.clientHeight,l=0,c=0;if(a){i=a.width,o=a.height;const d=Cw();(!d||d&&t==="fixed")&&(l=a.offsetLeft,c=a.offsetTop)}return{width:i,height:o,x:l,y:c}}const YF=new Set(["absolute","fixed"]);function VF(e,t){const n=sl(e,!0,t==="fixed"),s=n.top+e.clientTop,a=n.left+e.clientLeft,i=fa(e)?hc(e):da(1),o=e.clientWidth*i.x,l=e.clientHeight*i.y,c=a*i.x,d=s*i.y;return{width:o,height:l,x:c,y:d}}function K2(e,t,n){let s;if(t==="viewport")s=GF(e,n);else if(t==="document")s=zF(ga(e));else if(Ms(t))s=VF(t,n);else{const a=OE(e);s={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return Zf(s)}function AE(e,t){const n=to(e);return n===t||!Ms(n)||Lc(n)?!1:Ds(n).position==="fixed"||AE(n,t)}function KF(e,t){const n=t.get(e);if(n)return n;let s=Gu(e,[],!1).filter(l=>Ms(l)&&od(l)!=="body"),a=null;const i=Ds(e).position==="fixed";let o=i?to(e):e;for(;Ms(o)&&!Lc(o);){const l=Ds(o),c=Sw(o);!c&&l.position==="fixed"&&(a=null),(i?!c&&!a:!c&&l.position==="static"&&!!a&&YF.has(a.position)||Ph(o)&&!c&&AE(e,o))?s=s.filter(u=>u!==o):a=l,o=to(o)}return t.set(e,s),s}function QF(e){let{element:t,boundary:n,rootBoundary:s,strategy:a}=e;const o=[...n==="clippingAncestors"?mg(t)?[]:KF(t,this._c):[].concat(n),s],l=o[0],c=o.reduce((d,u)=>{const h=K2(t,u,a);return d.top=In(h.top,d.top),d.right=eo(h.right,d.right),d.bottom=eo(h.bottom,d.bottom),d.left=In(h.left,d.left),d},K2(t,l,a));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function ZF(e){const{width:t,height:n}=$E(e);return{width:t,height:n}}function XF(e,t,n){const s=fa(t),a=ga(t),i=n==="fixed",o=sl(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const c=da(0);function d(){c.x=Tw(a)}if(s||!s&&!i)if((od(t)!=="body"||Ph(a))&&(l=fg(t)),s){const m=sl(t,!0,i,t);c.x=m.x+t.clientLeft,c.y=m.y+t.clientTop}else a&&d();i&&!s&&a&&d();const u=a&&!s&&!i?PE(a,l):da(0),h=o.left+l.scrollLeft-c.x-u.x,f=o.top+l.scrollTop-c.y-u.y;return{x:h,y:f,width:o.width,height:o.height}}function py(e){return Ds(e).position==="static"}function Q2(e,t){if(!fa(e)||Ds(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ga(e)===n&&(n=n.ownerDocument.body),n}function IE(e,t){const n=Fn(e);if(mg(e))return n;if(!fa(e)){let a=to(e);for(;a&&!Lc(a);){if(Ms(a)&&!py(a))return a;a=to(a)}return n}let s=Q2(e,t);for(;s&&IF(s)&&py(s);)s=Q2(s,t);return s&&Lc(s)&&py(s)&&!Sw(s)?n:s||LF(e)||n}const JF=async function(e){const t=this.getOffsetParent||IE,n=this.getDimensions,s=await n(e.floating);return{reference:XF(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function eL(e){return Ds(e).direction==="rtl"}const tL={convertOffsetParentRelativeRectToViewportRelativeRect:qF,getDocumentElement:ga,getClippingRect:QF,getOffsetParent:IE,getElementRects:JF,getClientRects:HF,getDimensions:ZF,getScale:hc,isElement:Ms,isRTL:eL};function RE(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function rL(e,t){let n=null,s;const a=ga(e);function i(){var l;clearTimeout(s),(l=n)==null||l.disconnect(),n=null}function o(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),i();const d=e.getBoundingClientRect(),{left:u,top:h,width:f,height:m}=d;if(l||t(),!f||!m)return;const y=_m(h),p=_m(a.clientWidth-(u+f)),v=_m(a.clientHeight-(h+m)),g=_m(u),b={rootMargin:-y+"px "+-p+"px "+-v+"px "+-g+"px",threshold:In(0,eo(1,c))||1};let w=!0;function N(S){const _=S[0].intersectionRatio;if(_!==c){if(!w)return o();_?o(!1,_):s=setTimeout(()=>{o(!1,1e-7)},1e3)}_===1&&!RE(d,e.getBoundingClientRect())&&o(),w=!1}try{n=new IntersectionObserver(N,{...b,root:a.ownerDocument})}catch{n=new IntersectionObserver(N,b)}n.observe(e)}return o(!0),i}function nL(e,t,n,s){s===void 0&&(s={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=s,d=Ew(e),u=a||i?[...d?Gu(d):[],...Gu(t)]:[];u.forEach(g=>{a&&g.addEventListener("scroll",n,{passive:!0}),i&&g.addEventListener("resize",n)});const h=d&&l?rL(d,n):null;let f=-1,m=null;o&&(m=new ResizeObserver(g=>{let[x]=g;x&&x.target===d&&m&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var b;(b=m)==null||b.observe(t)})),n()}),d&&!c&&m.observe(d),m.observe(t));let y,p=c?sl(e):null;c&&v();function v(){const g=sl(e);p&&!RE(p,g)&&n(),p=g,y=requestAnimationFrame(v)}return n(),()=>{var g;u.forEach(x=>{a&&x.removeEventListener("scroll",n),i&&x.removeEventListener("resize",n)}),h==null||h(),(g=m)==null||g.disconnect(),m=null,c&&cancelAnimationFrame(y)}}const sL=EF,aL=TF,iL=_F,oL=OF,lL=SF,Z2=kF,cL=$F,dL=(e,t,n)=>{const s=new Map,a={platform:tL,...n},i={...a.platform,_c:s};return NF(e,t,{...a,platform:i})};var uL=typeof document<"u",hL=function(){},mf=uL?j.useLayoutEffect:hL;function Xf(e,t){if(e===t)return!0;
vendor: 4,143 bytes, line 546
546if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,s,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(s=n;s--!==0;)if(!Xf(e[s],t[s]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(s=n;s--!==0;)if(!{}.hasOwnProperty.call(t,a[s]))return!1;for(s=n;s--!==0;){const i=a[s];if(!(i==="_owner"&&e.$$typeof)&&!Xf(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function ME(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function X2(e,t){const n=ME(e);return Math.round(t*n)/n}function gy(e){const t=j.useRef(e);return mf(()=>{t.current=e}),t}function mL(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:s=[],platform:a,elements:{reference:i,floating:o}={},transform:l=!0,whileElementsMounted:c,open:d}=e,[u,h]=j.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,m]=j.useState(s);Xf(f,s)||m(s);const[y,p]=j.useState(null),[v,g]=j.useState(null),x=j.useCallback(B=>{B!==S.current&&(S.current=B,p(B))},[]),b=j.useCallback(B=>{B!==_.current&&(_.current=B,g(B))},[]),w=i||y,N=o||v,S=j.useRef(null),_=j.useRef(null),C=j.useRef(u),$=c!=null,k=gy(c),E=gy(a),T=gy(d),O=j.useCallback(()=>{if(!S.current||!_.current)return;const B={placement:t,strategy:n,middleware:f};E.current&&(B.platform=E.current),dL(S.current,_.current,B).then(R=>{const D={...R,isPositioned:T.current!==!1};A.current&&!Xf(C.current,D)&&(C.current=D,ho.flushSync(()=>{h(D)}))})},[f,t,n,E,T]);mf(()=>{d===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,h(B=>({...B,isPositioned:!1})))},[d]);const A=j.useRef(!1);mf(()=>(A.current=!0,()=>{A.current=!1}),[]),mf(()=>{if(w&&(S.current=w),N&&(_.current=N),w&&N){if(k.current)return k.current(w,N,O);O()}},[w,N,O,k,$]);const U=j.useMemo(()=>({reference:S,floating:_,setReference:x,setFloating:b}),[x,b]),z=j.useMemo(()=>({reference:w,floating:N}),[w,N]),W=j.useMemo(()=>{const B={position:n,left:0,top:0};if(!z.floating)return B;const R=X2(z.floating,u.x),D=X2(z.floating,u.y);return l?{...B,transform:"translate("+R+"px, "+D+"px)",...ME(z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:R,top:D}},[n,l,z.floating,u.x,u.y]);return j.useMemo(()=>({...u,update:O,refs:U,elements:z,floatingStyles:W}),[u,O,U,z,W])}const fL=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:s,padding:a}=typeof e=="function"?e(n):e;return s&&t(s)?s.current!=null?Z2({element:s.current,padding:a}).fn(n):{}:s?Z2({element:s,padding:a}).fn(n):{}}}},pL=(e,t)=>({...sL(e),options:[e,t]}),gL=(e,t)=>({...aL(e),options:[e,t]}),xL=(e,t)=>({...cL(e),options:[e,t]}),yL=(e,t)=>({...iL(e),options:[e,t]}),vL=(e,t)=>({...oL(e),options:[e,t]}),bL=(e,t)=>({...lL(e),options:[e,t]}),wL=(e,t)=>({...fL(e),options:[e,t]});var jL="Arrow",DE=j.forwardRef((e,t)=>{const{children:n,width:s=10,height:a=5,...i}=e;return r.jsx(we.svg,{...i,ref:t,width:s,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:r.jsx("polygon",{points:"0,0 30,0 15,10"})})});DE.displayName=jL;var NL=DE;function pg(e){const[t,n]=j.useState(void 0);return Qt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const s=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const i=a[0];let o,l;if("borderBoxSize"in i){const c=i.borderBoxSize,d=Array.isArray(c)?c[0]:c;o=d.inlineSize,l=d.blockSize}else o=e.offsetWidth,l=e.offsetHeight;n({width:o,height:l})});return s.observe(e,{box:"border-box"}),()=>s.unobserve(e)}else n(void 0)},[e]),t}var $w="Popper",[FE,mo]=ir($w),[kL,LE]=FE($w),BE=e=>{const{__scopePopper:t,children:n}=e,[s,a]=j.useState(null);return r.jsx(kL,{scope:t,anchor:s,onAnchorChange:a,children:n})};BE.displayName=$w;var WE="PopperAnchor",UE=j.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:s,...a}=e,i=LE(WE,n),o=j.useRef(null),l=Ge(t,o);return j.useEffect(()=>{i.onAnchorChange((s==null?void 0:s.current)||o.current)}),s?null:r.jsx(we.div,{...a,ref:l})});UE.displayName=WE;var Ow="PopperContent",[_L,SL]=FE(Ow),qE=j.forwardRef((e,t)=>
vendor: 4,202 bytes, line 546
546{var M,Q,X,re,de,be;const{__scopePopper:n,side:s="bottom",sideOffset:a=0,align:i="center",alignOffset:o=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:u=0,sticky:h="partial",hideWhenDetached:f=!1,updatePositionStrategy:m="optimized",onPlaced:y,...p}=e,v=LE(Ow,n),[g,x]=j.useState(null),b=Ge(t,Ee=>x(Ee)),[w,N]=j.useState(null),S=pg(w),_=(S==null?void 0:S.width)??0,C=(S==null?void 0:S.height)??0,$=s+(i!=="center"?"-"+i:""),k=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},E=Array.isArray(d)?d:[d],T=E.length>0,O={padding:k,boundary:E.filter(EL),altBoundary:T},{refs:A,floatingStyles:U,placement:z,isPositioned:W,middlewareData:B}=mL({strategy:"fixed",placement:$,whileElementsMounted:(...Ee)=>nL(...Ee,{animationFrame:m==="always"}),elements:{reference:v.anchor},middleware:[pL({mainAxis:a+C,alignmentAxis:o}),c&&gL({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?xL():void 0,...O}),c&&yL({...O}),vL({...O,apply:({elements:Ee,rects:Fe,availableWidth:qe,availableHeight:xt})=>{const{width:ot,height:ne}=Fe.reference,se=Ee.floating.style;se.setProperty("--radix-popper-available-width",`${qe}px`),se.setProperty("--radix-popper-available-height",`${xt}px`),se.setProperty("--radix-popper-anchor-width",`${ot}px`),se.setProperty("--radix-popper-anchor-height",`${ne}px`)}}),w&&wL({element:w,padding:l}),TL({arrowWidth:_,arrowHeight:C}),f&&bL({strategy:"referenceHidden",...O})]}),[R,D]=GE(z),P=Kt(y);Qt(()=>{W&&(P==null||P())},[W,P]);const I=(M=B.arrow)==null?void 0:M.x,F=(Q=B.arrow)==null?void 0:Q.y,Y=((X=B.arrow)==null?void 0:X.centerOffset)!==0,[H,L]=j.useState();return Qt(()=>{g&&L(window.getComputedStyle(g).zIndex)},[g]),r.jsx("div",{ref:A.setFloating,"data-radix-popper-content-wrapper":"",style:{...U,transform:W?U.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:H,"--radix-popper-transform-origin":[(re=B.transformOrigin)==null?void 0:re.x,(de=B.transformOrigin)==null?void 0:de.y].join(" "),...((be=B.hide)==null?void 0:be.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:r.jsx(_L,{scope:n,placedSide:R,onArrowChange:N,arrowX:I,arrowY:F,shouldHideArrow:Y,children:r.jsx(we.div,{"data-side":R,"data-align":D,...p,ref:b,style:{...p.style,animation:W?void 0:"none"}})})})});qE.displayName=Ow;var HE="PopperArrow",CL={top:"bottom",right:"left",bottom:"top",left:"right"},zE=j.forwardRef(function(t,n){const{__scopePopper:s,...a}=t,i=SL(HE,s),o=CL[i.placedSide];return r.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:r.jsx(NL,{...a,ref:n,style:{...a.style,display:"block"}})})});zE.displayName=HE;function EL(e){return e!==null}var TL=e=>({name:"transformOrigin",options:e,fn(t){var v,g,x;const{placement:n,rects:s,middlewareData:a}=t,o=((v=a.arrow)==null?void 0:v.centerOffset)!==0,l=o?0:e.arrowWidth,c=o?0:e.arrowHeight,[d,u]=GE(n),h={start:"0%",center:"50%",end:"100%"}[u],f=(((g=a.arrow)==null?void 0:g.x)??0)+l/2,m=(((x=a.arrow)==null?void 0:x.y)??0)+c/2;let y="",p="";return d==="bottom"?(y=o?h:`${f}px`,p=`${-c}px`):d==="top"?(y=o?h:`${f}px`,p=`${s.floating.height+c}px`):d==="right"?(y=`${-c}px`,p=o?h:`${m}px`):d==="left"&&(y=`${s.floating.width+c}px`,p=o?h:`${m}px`),{data:{x:y,y:p}}}});function GE(e){const[t,n="center"]=e.split("-");return[t,n]}var gg=BE,Ah=UE,xg=qE,yg=zE,[vg,Ige]=ir("Tooltip",[mo]),bg=mo(),YE="TooltipProvider",$L=700,Cb="tooltip.open",[OL,Pw]=vg(YE),VE=e=>{const{__scopeTooltip:t,delayDuration:n=$L,skipDelayDuration:s=300,disableHoverableContent:a=!1,children:i}=e,o=j.useRef(!0),l=j.useRef(!1),c=j.useRef(0);return j.useEffect(()=>{const d=c.current;return()=>window.clearTimeout(d)},[]),r.jsx(OL,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:j.useCallback(()=>{window.clearTimeout(c.current),o.current=!1},[]),onClose:j.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>
vendor: 5,050 bytes, line 546
546o.current=!0,s)},[s]),isPointerInTransitRef:l,onPointerInTransitChange:j.useCallback(d=>{l.current=d},[]),disableHoverableContent:a,children:i})};VE.displayName=YE;var Yu="Tooltip",[PL,wg]=vg(Yu),KE=e=>{const{__scopeTooltip:t,children:n,open:s,defaultOpen:a,onOpenChange:i,disableHoverableContent:o,delayDuration:l}=e,c=Pw(Yu,e.__scopeTooltip),d=bg(t),[u,h]=j.useState(null),f=ar(),m=j.useRef(0),y=o??c.disableHoverableContent,p=l??c.delayDuration,v=j.useRef(!1),[g,x]=Xr({prop:s,defaultProp:a??!1,onChange:_=>{_?(c.onOpen(),document.dispatchEvent(new CustomEvent(Cb))):c.onClose(),i==null||i(_)},caller:Yu}),b=j.useMemo(()=>g?v.current?"delayed-open":"instant-open":"closed",[g]),w=j.useCallback(()=>{window.clearTimeout(m.current),m.current=0,v.current=!1,x(!0)},[x]),N=j.useCallback(()=>{window.clearTimeout(m.current),m.current=0,x(!1)},[x]),S=j.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{v.current=!0,x(!0),m.current=0},p)},[p,x]);return j.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),r.jsx(gg,{...d,children:r.jsx(PL,{scope:t,contentId:f,open:g,stateAttribute:b,trigger:u,onTriggerChange:h,onTriggerEnter:j.useCallback(()=>{c.isOpenDelayedRef.current?S():w()},[c.isOpenDelayedRef,S,w]),onTriggerLeave:j.useCallback(()=>{y?N():(window.clearTimeout(m.current),m.current=0)},[N,y]),onOpen:w,onClose:N,disableHoverableContent:y,children:n})})};KE.displayName=Yu;var Eb="TooltipTrigger",QE=j.forwardRef((e,t)=>{const{__scopeTooltip:n,...s}=e,a=wg(Eb,n),i=Pw(Eb,n),o=bg(n),l=j.useRef(null),c=Ge(t,l,a.onTriggerChange),d=j.useRef(!1),u=j.useRef(!1),h=j.useCallback(()=>d.current=!1,[]);return j.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),r.jsx(Ah,{asChild:!0,...o,children:r.jsx(we.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...s,ref:c,onPointerMove:me(e.onPointerMove,f=>{f.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(a.onTriggerEnter(),u.current=!0)}),onPointerLeave:me(e.onPointerLeave,()=>{a.onTriggerLeave(),u.current=!1}),onPointerDown:me(e.onPointerDown,()=>{a.open&&a.onClose(),d.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:me(e.onFocus,()=>{d.current||a.onOpen()}),onBlur:me(e.onBlur,a.onClose),onClick:me(e.onClick,a.onClose)})})});QE.displayName=Eb;var AL="TooltipPortal",[Rge,IL]=vg(AL,{forceMount:void 0}),Bc="TooltipContent",ZE=j.forwardRef((e,t)=>{const n=IL(Bc,e.__scopeTooltip),{forceMount:s=n.forceMount,side:a="top",...i}=e,o=wg(Bc,e.__scopeTooltip);return r.jsx(or,{present:s||o.open,children:o.disableHoverableContent?r.jsx(XE,{side:a,...i,ref:t}):r.jsx(RL,{side:a,...i,ref:t})})}),RL=j.forwardRef((e,t)=>{const n=wg(Bc,e.__scopeTooltip),s=Pw(Bc,e.__scopeTooltip),a=j.useRef(null),i=Ge(t,a),[o,l]=j.useState(null),{trigger:c,onClose:d}=n,u=a.current,{onPointerInTransitChange:h}=s,f=j.useCallback(()=>{l(null),h(!1)},[h]),m=j.useCallback((y,p)=>{const v=y.currentTarget,g={x:y.clientX,y:y.clientY},x=BL(g,v.getBoundingClientRect()),b=WL(g,x),w=UL(p.getBoundingClientRect()),N=HL([...b,...w]);l(N),h(!0)},[h]);return j.useEffect(()=>()=>f(),[f]),j.useEffect(()=>{if(c&&u){const y=v=>m(v,u),p=v=>m(v,c);return c.addEventListener("pointerleave",y),u.addEventListener("pointerleave",p),()=>{c.removeEventListener("pointerleave",y),u.removeEventListener("pointerleave",p)}}},[c,u,m,f]),j.useEffect(()=>{if(o){const y=p=>{const v=p.target,g={x:p.clientX,y:p.clientY},x=(c==null?void 0:c.contains(v))||(u==null?void 0:u.contains(v)),b=!qL(g,o);x?f():b&&(f(),d())};return document.addEventListener("pointermove",y),()=>document.removeEventListener("pointermove",y)}},[c,u,o,d,f]),r.jsx(XE,{...e,ref:i})}),[ML,DL]=vg(Yu,{isInside:!1}),FL=TM("TooltipContent"),XE=j.forwardRef((e,t)=>{const{__scopeTooltip:n,children:s,"aria-label":a,onEscapeKeyDown:i,onPointerDownOutside:o,...l}=e,c=wg(Bc,n),d=bg(n),{onClose:u}=c;return j.useEffect(()=>(document.addEventListener(Cb,u),()=>document.removeEventListener(Cb,u)),[u]),j.useEffect(()=>{if(c.trigger){const h=f=>{const m=f.target;m!=null&&m.contains(c.trigger)&&u()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[c.trigger,u]),r.jsx(gl,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:h=>h.preventDefault(),onDismiss:u,children:r.jsxs(xg,{"data-state":c.stateAttribute,...d,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[r.jsx(FL,{children:s}),r.jsx(ML,{scope:n,isInside:!0,children:r.jsx(ZM,{id:c.contentId,role:"tooltip",children:a||s})})]})})});ZE.displayName=Bc;var JE="TooltipArrow",LL=j.forwardRef((e,t)=>
546{const{__scopeTooltip:n,...s}=e,a=bg(n);return DL(JE,n).isInside?null:r.jsx(yg,{...a,...s,ref:t})});LL.displayName=JE;function BL(e,t){const n=Math.abs(t.top-e.y),s=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,s,a,i)){case i:return"left";case a:return"right";case n:return"top";case s:return"bottom";default:throw new Error("unreachable")}}function WL(e,t,n=5){const s=[];switch(t){case"top":s.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":s.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":s.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":s.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return s}function UL(e){const{top:t,right:n,bottom:s,left:a}=e;return[{x:a,y:t},{x:n,y:t},{x:n,y:s},{x:a,y:s}]}function qL(e,t){const{x:n,y:s}=e;let a=!1;for(let i=0,o=t.length-1;i<t.length;o=i++){const l=t[i],c=t[o],d=l.x,u=l.y,h=c.x,f=c.y;u>s!=f>s&&n<(h-d)*(s-u)/(f-u)+d&&(a=!a)}return a}function HL(e){const t=e.slice();return t.sort((n,s)=>n.x<s.x?-1:n.x>s.x?1:n.y<s.y?-1:n.y>s.y?1:0),zL(t)}function zL(e){if(e.length<=1)return e.slice();const t=[];for(let s=0;s<e.length;s++){const a=e[s];for(;t.length>=2;){const i=t[t.length-1],o=t[t.length-2];if((i.x-o.x)*(a.y-o.y)>=(i.y-o.y)*(a.x-o.x))t.pop();else break}t.push(a)}t.pop();const n=[];for(let s=e.length-1;s>=0;s--){const a=e[s];for(;n.length>=2;){const i=n[n.length-1],o=n[n.length-2];if((i.x-o.x)*(a.y-o.y)>=(i.y-o.y)*(a.x-o.x))n.pop();else break}n.push(a)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var GL=VE,YL=KE,VL=QE,eT=ZE;const tT=GL,KL=YL,QL=VL,rT=j.forwardRef(({className:e,sideOffset:t=4,...n},s)=>r.jsx(eT,{ref:s,sideOffset:t,className:le("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));rT.displayName=eT.displayName;var ld=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},al=typeof window>"u"||"Deno"in globalThis;function Vr(){}function ZL(e,t){return typeof e=="function"?e(t):e}function Tb(e){return typeof e=="number"&&e>=0&&e!==1/0}function nT(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Gi(e,t){return typeof e=="function"?e(t):e}function Qn(e,t){return typeof e=="function"?e(t):e}function J2(e,t){const{type:n="all",exact:s,fetchStatus:a,predicate:i,queryKey:o,stale:l}=e;if(o){if(s){if(t.queryHash!==Aw(o,t.options))return!1}else if(!Vu(t.queryKey,o))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||a&&a!==t.state.fetchStatus||i&&!i(t))}function ek(e,t){const{exact:n,status:s,predicate:a,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(il(t.options.mutationKey)!==il(i))return!1}else if(!Vu(t.options.mutationKey,i))return!1}return!(s&&t.state.status!==s||a&&!a(t))}function Aw(e,t){return((t==null?void 0:t.queryKeyHashFn)||il)(e)}function il(e){return JSON.stringify(e,(t,n)=>$b(n)?Object.keys(n).sort().reduce((s,a)=>(s[a]=n[a],s),{}):n)}function Vu(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Vu(e[n],t[n])):!1}function sT(e,t){if(e===t)return e;const n=tk(e)&&tk(t);if(n||$b(e)&&$b(t)){const s=n?e:Object.keys(e),a=s.length,i=n?t:Object.keys(t),o=i.length,l=n?[]:{},c=new Set(s);let d=0;for(let u=0;u<o;u++){const h=n?u:i[u];(!n&&c.has(h)||n)&&e[h]===void 0&&t[h]===void 0?(l[h]=void 0,d++):(l[h]=sT(e[h],t[h]),l[h]===e[h]&&e[h]!==void 0&&d++)}return a===o&&d===a?e:l}return t}function Jf(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function tk(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function $b(e){if(!rk(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!rk(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function rk(e){return Object.prototype.toString.call(e)==="[object Object]"}function XL(e){return new Promise(t=>{setTimeout(t,e)})}function Ob(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?sT(e,t):t}function JL(e,t,n=0){const s=[...e,t];return n&&s.length>n?s.slice(1):s}function eB(e,t,n=0){const s=[t,...e];return n&&s.length>n?s.slice(0,-1):s}var Iw=Symbol();function aT(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Iw?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function iT(e,t){return typeof e=="function"?e(...t):!!e}var Do,ji,bc,l4,tB=(l4=class extends ld{constructor(){super();We(this,Do);We(this,ji);We(this,bc);Se(this,bc,t=>{if(!al&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){Z(this,ji)||this.setEventListener(Z(this,bc))}onUnsubscribe(){var t;this.hasListeners()||((t=Z(this,ji))==null||t.call(this),Se(this,ji,void 0))}setEventListener(t){var n;Se(this,bc,t),(n=Z(this,ji))==null||n.call(this),Se(this,ji,t(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(t){Z(this,Do)!==t&&(Se(this,Do,t),this.onFocus())}onFocus(){const t=this.isFocused();
vendor: 4,596 bytes, line 546
546this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof Z(this,Do)=="boolean"?Z(this,Do):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Do=new WeakMap,ji=new WeakMap,bc=new WeakMap,l4),Rw=new tB,wc,Ni,jc,c4,rB=(c4=class extends ld{constructor(){super();We(this,wc,!0);We(this,Ni);We(this,jc);Se(this,jc,t=>{if(!al&&window.addEventListener){const n=()=>t(!0),s=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",s)}}})}onSubscribe(){Z(this,Ni)||this.setEventListener(Z(this,jc))}onUnsubscribe(){var t;this.hasListeners()||((t=Z(this,Ni))==null||t.call(this),Se(this,Ni,void 0))}setEventListener(t){var n;Se(this,jc,t),(n=Z(this,Ni))==null||n.call(this),Se(this,Ni,t(this.setOnline.bind(this)))}setOnline(t){Z(this,wc)!==t&&(Se(this,wc,t),this.listeners.forEach(s=>{s(t)}))}isOnline(){return Z(this,wc)}},wc=new WeakMap,Ni=new WeakMap,jc=new WeakMap,c4),ep=new rB;function Pb(){let e,t;const n=new Promise((a,i)=>{e=a,t=i});n.status="pending",n.catch(()=>{});function s(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{s({status:"fulfilled",value:a}),e(a)},n.reject=a=>{s({status:"rejected",reason:a}),t(a)},n}function nB(e){return Math.min(1e3*2**e,3e4)}function oT(e){return(e??"online")==="online"?ep.isOnline():!0}var lT=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function xy(e){return e instanceof lT}function cT(e){let t=!1,n=0,s=!1,a;const i=Pb(),o=p=>{var v;s||(f(new lT(p)),(v=e.abort)==null||v.call(e))},l=()=>{t=!0},c=()=>{t=!1},d=()=>Rw.isFocused()&&(e.networkMode==="always"||ep.isOnline())&&e.canRun(),u=()=>oT(e.networkMode)&&e.canRun(),h=p=>{var v;s||(s=!0,(v=e.onSuccess)==null||v.call(e,p),a==null||a(),i.resolve(p))},f=p=>{var v;s||(s=!0,(v=e.onError)==null||v.call(e,p),a==null||a(),i.reject(p))},m=()=>new Promise(p=>{var v;a=g=>{(s||d())&&p(g)},(v=e.onPause)==null||v.call(e)}).then(()=>{var p;a=void 0,s||(p=e.onContinue)==null||p.call(e)}),y=()=>{if(s)return;let p;const v=n===0?e.initialPromise:void 0;try{p=v??e.fn()}catch(g){p=Promise.reject(g)}Promise.resolve(p).then(h).catch(g=>{var S;if(s)return;const x=e.retry??(al?0:3),b=e.retryDelay??nB,w=typeof b=="function"?b(n,g):b,N=x===!0||typeof x=="number"&&n<x||typeof x=="function"&&x(n,g);if(t||!N){f(g);return}n++,(S=e.onFail)==null||S.call(e,n,g),XL(w).then(()=>d()?void 0:m()).then(()=>{t?f(g):y()})})};return{promise:i,cancel:o,continue:()=>(a==null||a(),i),cancelRetry:l,continueRetry:c,canStart:u,start:()=>(u()?y():m().then(y),i)}}var sB=e=>setTimeout(e,0);function aB(){let e=[],t=0,n=l=>{l()},s=l=>{l()},a=sB;const i=l=>{t?e.push(l):a(()=>{n(l)})},o=()=>{const l=e;e=[],l.length&&a(()=>{s(()=>{l.forEach(c=>{n(c)})})})};return{batch:l=>{let c;t++;try{c=l()}finally{t--,t||o()}return c},batchCalls:l=>(...c)=>{i(()=>{l(...c)})},schedule:i,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{s=l},setScheduler:l=>{a=l}}}var fr=aB(),Fo,d4,dT=(d4=class{constructor(){We(this,Fo)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Tb(this.gcTime)&&Se(this,Fo,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(al?1/0:5*60*1e3))}clearGcTimeout(){Z(this,Fo)&&(clearTimeout(Z(this,Fo)),Se(this,Fo,void 0))}},Fo=new WeakMap,d4),Nc,Lo,Kn,Bo,Rr,bh,Wo,bs,ka,u4,iB=(u4=class extends dT{constructor(t){super();We(this,bs);We(this,Nc);We(this,Lo);We(this,Kn);We(this,Bo);We(this,Rr);We(this,bh);We(this,Wo);Se(this,Wo,!1),Se(this,bh,t.defaultOptions),this.setOptions(t.options),this.observers=[],Se(this,Bo,t.client),Se(this,Kn,Z(this,Bo).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Se(this,Nc,oB(this.options)),this.state=t.state??Z(this,Nc),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=Z(this,Rr))==null?void 0:t.promise}setOptions(t){this.options={...Z(this,bh),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&Z(this,Kn).remove(this)}setData(t,n){const s=Ob(this.state.data,t,this.options);return Je(this,bs,ka).call(this,{data:s,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),s}setState(t,n){Je(this,bs,ka).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var s,a;const n=(s=Z(this,Rr))==null?void 0:s.promise;return(a=Z(this,Rr))==null||a.cancel(t),n?n.then(Vr).catch(Vr):Prom
vendor: 1,602 bytes, line 546
546ise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Z(this,Nc))}isActive(){return this.observers.some(t=>Qn(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Iw||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Gi(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!nT(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(s=>s.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=Z(this,Rr))==null||n.continue()}onOnline(){var n;const t=this.observers.find(s=>s.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=Z(this,Rr))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),Z(this,Kn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(Z(this,Rr)&&(Z(this,Wo)?Z(this,Rr).cancel({revert:!0}):Z(this,Rr).cancelRetry()),this.scheduleGc()),Z(this,Kn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Je(this,bs,ka).call(this,{type:"invalidate"})}
vendor: 8,835 bytes, line 546
546fetch(t,n){var d,u,h;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(Z(this,Rr))return Z(this,Rr).continueRetry(),Z(this,Rr).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(m=>m.options.queryFn);f&&this.setOptions(f.options)}const s=new AbortController,a=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(Se(this,Wo,!0),s.signal)})},i=()=>{const f=aT(this.options,n),y=(()=>{const p={client:Z(this,Bo),queryKey:this.queryKey,meta:this.meta};return a(p),p})();return Se(this,Wo,!1),this.options.persister?this.options.persister(f,y,this):f(y)},l=(()=>{const f={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:Z(this,Bo),state:this.state,fetchFn:i};return a(f),f})();(d=this.options.behavior)==null||d.onFetch(l,this),Se(this,Lo,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=l.fetchOptions)==null?void 0:u.meta))&&Je(this,bs,ka).call(this,{type:"fetch",meta:(h=l.fetchOptions)==null?void 0:h.meta});const c=f=>{var m,y,p,v;xy(f)&&f.silent||Je(this,bs,ka).call(this,{type:"error",error:f}),xy(f)||((y=(m=Z(this,Kn).config).onError)==null||y.call(m,f,this),(v=(p=Z(this,Kn).config).onSettled)==null||v.call(p,this.state.data,f,this)),this.scheduleGc()};return Se(this,Rr,cT({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,abort:s.abort.bind(s),onSuccess:f=>{var m,y,p,v;if(f===void 0){c(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(g){c(g);return}(y=(m=Z(this,Kn).config).onSuccess)==null||y.call(m,f,this),(v=(p=Z(this,Kn).config).onSettled)==null||v.call(p,f,this.state.error,this),this.scheduleGc()},onError:c,onFail:(f,m)=>{Je(this,bs,ka).call(this,{type:"failed",failureCount:f,error:m})},onPause:()=>{Je(this,bs,ka).call(this,{type:"pause"})},onContinue:()=>{Je(this,bs,ka).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0})),Z(this,Rr).start()}},Nc=new WeakMap,Lo=new WeakMap,Kn=new WeakMap,Bo=new WeakMap,Rr=new WeakMap,bh=new WeakMap,Wo=new WeakMap,bs=new WeakSet,ka=function(t){const n=s=>{switch(t.type){case"failed":return{...s,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...uT(s.data,this.options),fetchMeta:t.meta??null};case"success":return Se(this,Lo,void 0),{...s,data:t.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=t.error;return xy(a)&&a.revert&&Z(this,Lo)?{...Z(this,Lo),fetchStatus:"idle"}:{...s,error:a,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...t.state}}};this.state=n(this.state),fr.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),Z(this,Kn).notify({query:this,type:"updated",action:t})})},u4);function uT(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:oT(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function oB(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,s=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Xs,h4,lB=(h4=class extends ld{constructor(t={}){super();We(this,Xs);this.config=t,Se(this,Xs,new Map)}build(t,n,s){const a=n.queryKey,i=n.queryHash??Aw(a,n);let o=this.get(i);return o||(o=new iB({client:t,queryKey:a,queryHash:i,options:t.defaultQueryOptions(n),state:s,defaultOptions:t.getQueryDefaults(a)}),this.add(o)),o}add(t){Z(this,Xs).has(t.queryHash)||(Z(this,Xs).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=Z(this,Xs).get(t.queryHash);n&&(t.destroy(),n===t&&Z(this,Xs).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){fr.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return Z(this,Xs).get(t)}getAll(){return[...Z(this,Xs).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(s=>J2(n,s))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(s=>J2(t,s)):n}notify(t){fr.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){fr.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){fr.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Xs=new WeakMap,h4),Js,zr,Uo,ea,ci,m4,cB=(m4=class extends dT{constructor(t){super();We(this,ea);We(this,Js);We(this,zr);We(this,Uo);this.mutationId=t.mutationId,Se(this,zr,t.mutationCache),Se(this,Js,[]),this.state=t.state||hT(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){Z(this,Js).includes(t)||(Z(this,Js).push(t),this.clearGcTimeout(),Z(this,zr).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Se(this,Js,Z(this,Js).filter(n=>n!==t)),this.scheduleGc(),Z(this,zr).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){Z(this,Js).length||(this.state.status==="pending"?this.scheduleGc():Z(this,zr).remove(this))}continue(){var t;return((t=Z(this,Uo))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,l,c,d,u,h,f,m,y,p,v,g,x,b,w,N,S,_,C;const n=()=>{Je(this,ea,ci).call(this,{type:"continue"})};Se(this,Uo,cT({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:($,k)=>{Je(this,ea,ci).call(this,{type:"failed",failureCount:$,error:k})},onPause:()=>{Je(this,ea,ci).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>Z(this,zr).canRun(this)}));const s=this.state.status==="pending",a=!Z(this,Uo).canStart();try{if(s)n();else{Je(this,ea,ci).call(this,{type:"pending",variables:t,isPaused:a}),await((o=(i=Z(this,zr).config).onMutate)==null?void 0:o.call(i,t,this));const k=await((c=(l=this.options).onMutate)==null?void 0:c.call(l,t));k!==this.state.context&&Je(this,ea,ci).call(this,{type:"pending",context:k,variables:t,isPaused:a})}const $=await Z(this,Uo).start();return await((u=(d=Z(this,zr).config).onSuccess)==null?void 0:u.call(d,$,t,this.state.context,this)),await((f=(h=this.options).onSuccess)==null?void 0:f.call(h,$,t,this.state.context)),await((y=(m=Z(this,zr).config).onSettled)==null?void 0:y.call(m,$,null,this.state.variables,this.state.context,this)),await((v=(p=this.options).onSettled)==null?void 0:v.call(p,$,null,t,this.state.context)),Je(this,ea,ci).call(this,{type:"success",data:$}),$}catch($){try{throw await((x=(g=Z(this,zr).config).onError)==null?void 0:x.call(g,$,t,this.state.context,this)),await((w=(b=this.options).onError)==null?void 0:w.call(b,$,t,this.state.context)),await((S=(N=Z(this,zr).config).onSettled)==null?void 0:S.call(N,void 0,$,this.state.variables,this.state.context,this)),await((C=(_=this.options).onSettled)==null?void 0:C.call(_,void 0,$,t,this.state.context)),$}finally{Je(this,ea,ci).call(this,{type:"error",error:$})}}finally{Z(this,zr).runNext(this)}}},Js=new WeakMap,zr=new WeakMap,Uo=new WeakMap,ea=new WeakSet,ci=function(t){const n=s=>{switch(t.type){case"failed":return{...s,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...s,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:t.error,failureCount:s.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),fr.batch(()=>{Z(this,Js).forEach(s=>{s.onMutationUpdate(t)}),Z(this,zr).notify({mutation:this,type:"updated",action:t})})},m4);function hT(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var $a,ws,wh,f4,dB=(f4=class extends ld{constructor(t={}){super();We(this,$a);We(this,ws);We(this,wh);this.config=t,Se(this,$a,new Set),Se(this,ws,new Map),Se(this,wh,0
546)}build(t,n,s){const a=new cB({mutationCache:this,mutationId:++sm(this,wh)._,options:t.defaultMutationOptions(n),state:s});return this.add(a),a}add(t){Z(this,$a).add(t);const n=Sm(t);if(typeof n=="string"){const s=Z(this,ws).get(n);s?s.push(t):Z(this,ws).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(Z(this,$a).delete(t)){const n=Sm(t);if(typeof n=="string"){const s=Z(this,ws).get(n);if(s)if(s.length>1){const a=s.indexOf(t);a!==-1&&s.splice(a,1)}else s[0]===t&&Z(this,ws).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Sm(t);if(typeof n=="string"){const s=Z(this,ws).get(n),a=s==null?void 0:s.find(i=>i.state.status==="pending");return!a||a===t}else return!0}runNext(t){var s;const n=Sm(t);if(typeof n=="string"){const a=(s=Z(this,ws).get(n))==null?void 0:s.find(i=>i!==t&&i.state.isPaused);return(a==null?void 0:a.continue())??Promise.resolve()}else return Promise.resolve()}clear(){fr.batch(()=>{Z(this,$a).forEach(t=>{this.notify({type:"removed",mutation:t})}),Z(this,$a).clear(),Z(this,ws).clear()})}getAll(){return Array.from(Z(this,$a))}find(t){const n={exact:!0,...t};return this.getAll().find(s=>ek(n,s))}findAll(t={}){return this.getAll().filter(n=>ek(t,n))}notify(t){fr.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return fr.batch(()=>Promise.all(t.map(n=>n.continue().catch(Vr))))}},$a=new WeakMap,ws=new WeakMap,wh=new WeakMap,f4);function Sm(e){var t;return(t=e.options.scope)==null?void 0:t.id}function nk(e){return{onFetch:(t,n)=>{var u,h,f,m,y;const s=t.options,a=(f=(h=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:h.fetchMore)==null?void 0:f.direction,i=((m=t.state.data)==null?void 0:m.pages)||[],o=((y=t.state.data)==null?void 0:y.pageParams)||[];let l={pages:[],pageParams:[]},c=0;const d=async()=>{let p=!1;const v=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(t.signal.aborted?p=!0:t.signal.addEventListener("abort",()=>{p=!0}),t.signal)})},g=aT(t.options,t.fetchOptions),x=async(b,w,N)=>{if(p)return Promise.reject();if(w==null&&b.pages.length)return Promise.resolve(b);const _=(()=>{const E={client:t.client,queryKey:t.queryKey,pageParam:w,direction:N?"backward":"forward",meta:t.options.meta};return v(E),E})(),C=await g(_),{maxPages:$}=t.options,k=N?eB:JL;return{pages:k(b.pages,C,$),pageParams:k(b.pageParams,w,$)}};if(a&&i.length){const b=a==="backward",w=b?uB:sk,N={pages:i,pageParams:o},S=w(s,N);l=await x(N,S,b)}else{const b=e??i.length;do{const w=c===0?o[0]??s.initialPageParam:sk(s,l);if(c>0&&w==null)break;l=await x(l,w),c++}while(c<b)}return l};t.options.persister?t.fetchFn=()=>{var p,v;return(v=(p=t.options).persister)==null?void 0:v.call(p,d,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=d}}}function sk(e,{pages:t,pageParams:n}){const s=t.length-1;return t.length>0?e.getNextPageParam(t[s],t,n[s],n):void 0}function uB(e,{pages:t,pageParams:n}){var s;return t.length>0?(s=e.getPreviousPageParam)==null?void 0:s.call(e,t[0],t,n[0],n):void 0}var Gt,ki,_i,kc,_c,Si,Sc,Cc,p4,hB=(p4=class{constructor(e={}){We(this,Gt);We(this,ki);We(this,_i);We(this,kc);We(this,_c);We(this,Si);We(this,Sc);We(this,Cc);Se(this,Gt,e.queryCache||new lB),Se(this,ki,e.mutationCache||new dB),Se(this,_i,e.defaultOptions||{}),Se(this,kc,new Map),Se(this,_c,new Map),Se(this,Si,0)}mount(){sm(this,Si)._++,Z(this,Si)===1&&(Se(this,Sc,Rw.subscribe(async e=>{e&&(await this.resumePausedMutations(),Z(this,Gt).onFocus())})),Se(this,Cc,ep.subscribe(async e=>{e&&(await this.resumePausedMutations(),Z(this,Gt).onOnline())})))}unmount(){var e,t;sm(this,Si)._--,Z(this,Si)===0&&((e=Z(this,Sc))==null||e.call(this),Se(this,Sc,void 0),(t=Z(this,Cc))==null||t.call(this),Se(this,Cc,void 0))}isFetching(e){return Z(this,Gt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return Z(this,ki).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=Z(this,Gt).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=Z(this,Gt).build(this,t),s=n.state.data;return s===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Gi(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(s))}getQueriesData(e){return Z(this,Gt).findAll(e).map(({queryKey:t,state:n})=>{const s=n.data;return[t,s]})}setQueryData(e,t,n){const s=this.defaultQueryOptions({queryKey:e}),a=Z(this,Gt).get(s.queryHash),i=a==null?void 0:a.state.data,o=ZL(t,i);if(o!==void 0)return Z(this,Gt).build(this,s).setData(o,{...n,manual:!0})}
vendor: 13,104 bytes, line 546
546setQueriesData(e,t,n){return fr.batch(()=>Z(this,Gt).findAll(e).map(({queryKey:s})=>[s,this.setQueryData(s,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=Z(this,Gt).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=Z(this,Gt);fr.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=Z(this,Gt);return fr.batch(()=>(n.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},s=fr.batch(()=>Z(this,Gt).findAll(e).map(a=>a.cancel(n)));return Promise.all(s).then(Vr).catch(Vr)}invalidateQueries(e,t={}){return fr.batch(()=>(Z(this,Gt).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},s=fr.batch(()=>Z(this,Gt).findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let i=a.fetch(void 0,n);return n.throwOnError||(i=i.catch(Vr)),a.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(s).then(Vr)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=Z(this,Gt).build(this,t);return n.isStaleByTime(Gi(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Vr).catch(Vr)}fetchInfiniteQuery(e){return e.behavior=nk(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Vr).catch(Vr)}ensureInfiniteQueryData(e){return e.behavior=nk(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return ep.isOnline()?Z(this,ki).resumePausedMutations():Promise.resolve()}getQueryCache(){return Z(this,Gt)}getMutationCache(){return Z(this,ki)}getDefaultOptions(){return Z(this,_i)}setDefaultOptions(e){Se(this,_i,e)}setQueryDefaults(e,t){Z(this,kc).set(il(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...Z(this,kc).values()],n={};return t.forEach(s=>{Vu(e,s.queryKey)&&Object.assign(n,s.defaultOptions)}),n}setMutationDefaults(e,t){Z(this,_c).set(il(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...Z(this,_c).values()],n={};return t.forEach(s=>{Vu(e,s.mutationKey)&&Object.assign(n,s.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...Z(this,_i).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Aw(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Iw&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...Z(this,_i).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){Z(this,Gt).clear(),Z(this,ki).clear()}},Gt=new WeakMap,ki=new WeakMap,_i=new WeakMap,kc=new WeakMap,_c=new WeakMap,Si=new WeakMap,Sc=new WeakMap,Cc=new WeakMap,p4),hn,at,jh,Gr,qo,Ec,Ci,Ei,Nh,Tc,$c,Ho,zo,Ti,Oc,gt,su,Ab,Ib,Rb,Mb,Db,Fb,Lb,mT,g4,mB=(g4=class extends ld{constructor(t,n){super();We(this,gt);We(this,hn);We(this,at);We(this,jh);We(this,Gr);We(this,qo);We(this,Ec);We(this,Ci);We(this,Ei);We(this,Nh);We(this,Tc);We(this,$c);We(this,Ho);We(this,zo);We(this,Ti);We(this,Oc,new Set);this.options=n,Se(this,hn,t),Se(this,Ei,null),Se(this,Ci,Pb()),this.options.experimental_prefetchInRender||Z(this,Ci).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(Z(this,at).addObserver(this),ak(Z(this,at),this.options)?Je(this,gt,su).call(this):this.updateResult(),Je(this,gt,Mb).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Bb(Z(this,at),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Bb(Z(this,at),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Je(this,gt,Db).call(this),Je(this,gt,Fb).call(this),Z(this,at).removeObserver(this)}setOptions(t){const n=this.options,s=Z(this,at);if(this.options=Z(this,hn).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Qn(this.options.enabled,Z(this,at))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Je(this,gt,Lb).call(this),Z(this,at).setOptions(this.options),n._defaulted&&!Jf(this.options,n)&&Z(this,hn).getQueryCache().notify({type:"observerOptionsUpdated",query:Z(this,at),observer:this});const a=this.hasListeners();a&&ik(Z(this,at),s,this.options,n)&&Je(this,gt,su).call(this),this.updateResult(),a&&(Z(this,at)!==s||Qn(this.options.enabled,Z(this,at))!==Qn(n.enabled,Z(this,at))||Gi(this.options.staleTime,Z(this,at))!==Gi(n.staleTime,Z(this,at)))&&Je(this,gt,Ab).call(this);const i=Je(this,gt,Ib).call(this);a&&(Z(this,at)!==s||Qn(this.options.enabled,Z(this,at))!==Qn(n.enabled,Z(this,at))||i!==Z(this,Ti))&&Je(this,gt,Rb).call(this,i)}getOptimisticResult(t){const n=Z(this,hn).getQueryCache().build(Z(this,hn),t),s=this.createResult(n,t);return pB(this,s)&&(Se(this,Gr,s),Se(this,Ec,this.options),Se(this,qo,Z(this,at).state)),s}getCurrentResult(){return Z(this,Gr)}trackResult(t,n){return new Proxy(t,{get:(s,a)=>(this.trackProp(a),n==null||n(a),Reflect.get(s,a))})}trackProp(t){Z(this,Oc).add(t)}getCurrentQuery(){return Z(this,at)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=Z(this,hn).defaultQueryOptions(t),s=Z(this,hn).getQueryCache().build(Z(this,hn),n);return s.fetch().then(()=>this.createResult(s,n))}fetch(t){return Je(this,gt,su).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),Z(this,Gr)))}createResult(t,n){var $;const s=Z(this,at),a=this.options,i=Z(this,Gr),o=Z(this,qo),l=Z(this,Ec),d=t!==s?t.state:Z(this,jh),{state:u}=t;let h={...u},f=!1,m;if(n._optimisticResults){const k=this.hasListeners(),E=!k&&ak(t,n),T=k&&ik(t,s,n,a);(E||T)&&(h={...h,...uT(u.data,t.options)}),n._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:y,errorUpdatedAt:p,status:v}=h;m=h.data;let g=!1;if(n.placeholderData!==void 0&&m===void 0&&v==="pending"){let k;i!=null&&i.isPlaceholderData&&n.placeholderData===(l==null?void 0:l.placeholderData)?(k=i.data,g=!0):k=typeof n.placeholderData=="function"?n.placeholderData(($=Z(this,$c))==null?void 0:$.state.data,Z(this,$c)):n.placeholderData,k!==void 0&&(v="success",m=Ob(i==null?void 0:i.data,k,n),f=!0)}if(n.select&&m!==void 0&&!g)if(i&&m===(o==null?void 0:o.data)&&n.select===Z(this,Nh))m=Z(this,Tc);else try{Se(this,Nh,n.select),m=n.select(m),m=Ob(i==null?void 0:i.data,m,n),Se(this,Tc,m),Se(this,Ei,null)}catch(k){Se(this,Ei,k)}Z(this,Ei)&&(y=Z(this,Ei),m=Z(this,Tc),p=Date.now(),v="error");const x=h.fetchStatus==="fetching",b=v==="pending",w=v==="error",N=b&&x,S=m!==void 0,C={status:v,fetchStatus:h.fetchStatus,isPending:b,isSuccess:v==="success",isError:w,isInitialLoading:N,isLoading:N,data:m,dataUpdatedAt:h.dataUpdatedAt,error:y,errorUpdatedAt:p,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>d.dataUpdateCount||h.errorUpdateCount>d.errorUpdateCount,isFetching:x,isRefetching:x&&!b,isLoadingError:w&&!S,isPaused:h.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:w&&S,isStale:Mw(t,n),refetch:this.refetch,promise:Z(this,Ci),isEnabled:Qn(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const k=O=>{C.status==="error"?O.reject(C.error):C.data!==void 0&&O.resolve(C.data)},E=()=>{const O=Se(this,Ci,C.promise=Pb());k(O)},T=Z(this,Ci);switch(T.status){case"pending":t.queryHash===s.queryHash&&k(T);break;case"fulfilled":(C.status==="error"||C.data!==T.value)&&E();break;case"rejected":(C.status!=="error"||C.error!==T.reason)&&E();break}}return C}updateResult(){const t=Z(this,Gr),n=this.createResult(Z(this,at),this.options);if(Se(this,qo,Z(this,at).state),Se(this,Ec,this.options),Z(this,qo).data!==void 0&&Se(this,$c,Z(this,at)),Jf(n,t))return;Se(this,Gr,n);const s=()=>{if(!t)return!0;const{notifyOnChangeProps:a}=this.options,i=typeof a=="function"?a():a;if(i==="all"||!i&&!Z(this,Oc).size)return!0;const o=new Set(i??Z(this,Oc));return this.options.throwOnError&&o.add("error"),Object.keys(Z(this,Gr)).some(l=>{const c=l;return Z(this,Gr)[c]!==t[c]&&o.has(c)})};Je(this,gt,mT).call(this,{listeners:s()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Je(this,gt,Mb).call(this)}},hn=new WeakMap,at=new WeakMap,jh=new WeakMap,Gr=new WeakMap,qo=new WeakMap,Ec=new WeakMap,Ci=new WeakMap,Ei=new WeakMap,Nh=new WeakMap,Tc=new WeakMap,$c=new WeakMap,Ho=new WeakMap,zo=new WeakMap,Ti=new WeakMap,Oc=new WeakMap,gt=new WeakSet,su=function(t){Je(this,gt,Lb).call(this);let n=Z(this,at).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Vr)),n},Ab=function(){Je(this,gt,Db).call(this);const t=Gi(this.options.staleTime,Z(this,at));if(al||Z(this,Gr).isStale||!Tb(t))return;const s=nT(Z(this,Gr).dataUpdatedAt,t)+1;Se(this,Ho,setTimeout(()=>{Z(this,Gr).isStale||this.updateResult()},s))},Ib=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(Z(this,at)):this.options.refetchInterval)??!1},Rb=function(t){Je(this,gt,Fb).call(this),Se(this,Ti,t),!(al||Qn(this.options.enabled,Z(this,at))===!1||!Tb(Z(this,Ti))||Z(this,Ti)===0)&&Se(this,zo,setInterval(()=>{(this.options.refetchIntervalInBackground||Rw.isFocused())&&Je(this,gt,su).call(this)},Z(this,Ti)))},Mb=function(){Je(this,gt,Ab).call(this),Je(this,gt,Rb).call(this,Je(this,gt,Ib).call(this))},Db=function(){Z(this,Ho)&&(clearTimeout(Z(this,Ho)),Se(this,Ho,void 0))},Fb=function(){Z(this,zo)&&(clearInterval(Z(this,zo)),Se(this,zo,void 0))},Lb=function(){const t=Z(this,hn).getQueryCache().build(Z(this,hn),this.options);if(t===Z(this,at))return;const n=Z(this,at);Se(this,at,t),Se(this,jh,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},mT=function(t){fr.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(Z(this,Gr))}),Z(this,hn).getQueryCache().notify({query:Z(this,at),type:"observerResultsUpdated"})})},g4);function fB(e,t){return Qn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function ak(e,t){return fB(e,t)||e.state.data!==void 0&&Bb(e,t,t.refetchOnMount)}function Bb(e,t,n){if(Qn(t.enabled,e)!==!1&&Gi(t.staleTime,e)!=="static"){const s=typeof n=="function"?n(e):n;return s==="always"||s!==!1&&Mw(e,t)}return!1}function ik(e,t,n,s){return(e!==t||Qn(s.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Mw(e,n)}function Mw(e,t){return Qn(t.enabled,e)!==!1&&e.isStaleByTime(Gi(t.staleTime,e))}function pB(e,t){return!Jf(e.getCurrentResult(),t)}var $i,Oi,mn,Oa,Fa,ff,Wb,x4,gB=(x4=class extends ld{constructor(n,s){super();We(this,Fa);We(this,$i);We(this,Oi);We(this,mn);We(this,Oa);Se(this,$i,n),this.setOptions(s),this.bindMethods(),Je(this,Fa,ff).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var a;const s=this.options;this.options=Z(this,$i).defaultMutationOptions(n),Jf(this.options,s)||Z(this,$i).getMutationCache().notify({type:"observerOptionsUpdated",mutation:Z(this,mn),observer:this}),s!=null&&s.mutationKey&&this.options.mutationKey&&il(s.mutationKey)!==il(this.options.mutationKey)?this.reset():((a=Z(this,mn))==null?void 0:a.state.status)==="pending"&&Z(this,mn).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=Z(this,mn))==null||n.removeObserver(this)}onMutationUpdate(n){Je(this,Fa,ff).call(this),Je(this,Fa,Wb).call(this,n)}getCurrentResult(){return Z(this,Oi)}reset(){var n;(n=Z(this,mn))==null||n.removeObserver(this),Se(this,mn,void 0),Je(this,Fa,ff).call(this),Je(this,Fa,Wb).call(this)}mutate(n,s){var a;return Se(this,Oa,s),(a=Z(this,mn))==null||a.removeObserver(this),Se(this,mn,Z(this,$i).getMutationCache().build(Z(this,$i),this.options)),Z(this,mn).addObserver(this),Z(this,mn).execute(n)}},$i=new WeakMap,Oi=new WeakMap,mn=new WeakMap,Oa=new WeakMap,Fa=new WeakSet,ff=function(){var s;const n=((s=Z(this,mn))==null?void 0:s.state)??hT();Se(this,Oi,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Wb=function(n){fr.batch(()=>{var s,a,i,o,l,c,d,u;if(Z(this,Oa)&&this.hasListeners()){const h=Z(this,Oi).variables,f=Z(this,Oi).context;(n==null?void 0:n.type)==="success"?((a=(s=Z(this,Oa)).onSuccess)==null||a.call(s,n.data,h,f),(o=(i=Z(this,Oa)).onSettled)==null||o.call(i,n.data,null,h,f)):(n==null?void 0:n.type)==="error"&&((c=(l=Z(this,Oa)).onError)==null||c.call(l,n.error,h,f),(u=(d=Z(this,Oa)).onSettled)==null||u.call(d,void 0,n.error,h,f))}
546this.listeners.forEach(h=>{h(Z(this,Oi))})})},x4),fT=j.createContext(void 0),cd=e=>{const t=j.useContext(fT);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},xB=({client:e,children:t})=>(j.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),r.jsx(fT.Provider,{value:e,children:t})),pT=j.createContext(!1),yB=()=>j.useContext(pT);pT.Provider;function vB(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var bB=j.createContext(vB()),wB=()=>j.useContext(bB),jB=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},NB=e=>{j.useEffect(()=>{e.clearReset()},[e])},kB=({result:e,errorResetBoundary:t,throwOnError:n,query:s,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(a&&e.data===void 0||iT(n,[e.error,s])),_B=e=>{if(e.suspense){const t=s=>s==="static"?s:Math.max(s??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...s)=>t(n(...s)):t(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},SB=(e,t)=>e.isLoading&&e.isFetching&&!t,CB=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,ok=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function EB(e,t,n){var h,f,m,y,p;const s=yB(),a=wB(),i=cd(),o=i.defaultQueryOptions(e);(f=(h=i.getDefaultOptions().queries)==null?void 0:h._experimental_beforeQuery)==null||f.call(h,o),o._optimisticResults=s?"isRestoring":"optimistic",_B(o),jB(o,a),NB(a);const l=!i.getQueryCache().get(o.queryHash),[c]=j.useState(()=>new t(i,o)),d=c.getOptimisticResult(o),u=!s&&e.subscribed!==!1;if(j.useSyncExternalStore(j.useCallback(v=>{const g=u?c.subscribe(fr.batchCalls(v)):Vr;return c.updateResult(),g},[c,u]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),j.useEffect(()=>{c.setOptions(o)},[o,c]),CB(o,d))throw ok(o,c,a);if(kB({result:d,errorResetBoundary:a,throwOnError:o.throwOnError,query:i.getQueryCache().get(o.queryHash),suspense:o.suspense}))throw d.error;if((y=(m=i.getDefaultOptions().queries)==null?void 0:m._experimental_afterQuery)==null||y.call(m,o,d),o.experimental_prefetchInRender&&!al&&SB(d,s)){const v=l?ok(o,c,a):(p=i.getQueryCache().get(o.queryHash))==null?void 0:p.promise;v==null||v.catch(Vr).finally(()=>{c.updateResult()})}return o.notifyOnChangeProps?d:c.trackResult(d)}function $s(e,t){return EB(e,mB)}function aa(e,t){const n=cd(),[s]=j.useState(()=>new gB(n,e));j.useEffect(()=>{s.setOptions(e)},[s,e]);const a=j.useSyncExternalStore(j.useCallback(o=>s.subscribe(fr.batchCalls(o)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),i=j.useCallback((o,l)=>{s.mutate(o,l).catch(Vr)},[s]);if(a.error&&iT(s.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:i,mutateAsync:a.mutate}}/** 547 * @remix-run/router v1.23.0 548 * 549 * Copyright (c) Remix Software Inc. 550 * 551 * This source code is licensed under the MIT license found in the 552 * LICENSE.md file in the root directory of this source tree. 553 * 554 * @license MIT 555 */function Ku(){return Ku=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},Ku.apply(this,arguments)}var Ri;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Ri||(Ri={}));const lk="popstate";function TB(e){e===void 0&&(e={});function t(s,a){let{pathname:i,search:o,hash:l}=s.location;return Ub("",{pathname:i,search:o,hash:l},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function n(s,a){return typeof a=="string"?a:tp(a)}return OB(t,n,null,e)}function qt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function gT(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function $B(){return Math.random().toString(36).substr(2,8)}function ck(e,t){return{usr:e.state,key:e.key,idx:t}}function Ub(e,t,n,s){return n===void 0&&(n=null),Ku({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?dd(t):t,{state:n,key:t&&t.key||s||$B()})}function tp(e){let{pathname:t="/",search:n="",hash:s=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),s&&s!=="#"&&(t+=s.charAt(0)==="#"?s:"#"+s),t}function dd(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let s=e.indexOf("?");s>=0&&(t.search=e.substr(s),e=e.substr(0,s)),e&&(t.pathname=e)}return t}function OB(e,t,n,s){s===void 0&&(s={});let{window:a=document.defaultView,v5Compat:i=!1}=s,o=a.history,l=Ri.Pop,c=null,d=u();d==null&&(d=0,o.replaceState(Ku({},o.state,{idx:d}),""));function u(){return(o.state||{idx:null}).idx}function h(){l=Ri.Pop;
vendor: 3,517 bytes, line 555
555let v=u(),g=v==null?null:v-d;d=v,c&&c({action:l,location:p.location,delta:g})}function f(v,g){l=Ri.Push;let x=Ub(p.location,v,g);d=u()+1;let b=ck(x,d),w=p.createHref(x);try{o.pushState(b,"",w)}catch(N){if(N instanceof DOMException&&N.name==="DataCloneError")throw N;a.location.assign(w)}i&&c&&c({action:l,location:p.location,delta:1})}function m(v,g){l=Ri.Replace;let x=Ub(p.location,v,g);d=u();let b=ck(x,d),w=p.createHref(x);o.replaceState(b,"",w),i&&c&&c({action:l,location:p.location,delta:0})}function y(v){let g=a.location.origin!=="null"?a.location.origin:a.location.href,x=typeof v=="string"?v:tp(v);return x=x.replace(/ $/,"%20"),qt(g,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,g)}let p={get action(){return l},get location(){return e(a,o)},listen(v){if(c)throw new Error("A history only accepts one active listener");return a.addEventListener(lk,h),c=v,()=>{a.removeEventListener(lk,h),c=null}},createHref(v){return t(a,v)},createURL:y,encodeLocation(v){let g=y(v);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:f,replace:m,go(v){return o.go(v)}};return p}var dk;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(dk||(dk={}));function PB(e,t,n){return n===void 0&&(n="/"),AB(e,t,n,!1)}function AB(e,t,n,s){let a=typeof t=="string"?dd(t):t,i=Wc(a.pathname||"/",n);if(i==null)return null;let o=xT(e);IB(o);let l=null;for(let c=0;l==null&&c<o.length;++c){let d=zB(i);l=qB(o[c],d,s)}return l}function xT(e,t,n,s){t===void 0&&(t=[]),n===void 0&&(n=[]),s===void 0&&(s="");let a=(i,o,l)=>{let c={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};c.relativePath.startsWith("/")&&(qt(c.relativePath.startsWith(s),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+s+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(s.length));let d=Yi([s,c.relativePath]),u=n.concat(c);i.children&&i.children.length>0&&(qt(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),xT(i.children,t,u,d)),!(i.path==null&&!i.index)&&t.push({path:d,score:WB(d,i.index),routesMeta:u})};return e.forEach((i,o)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))a(i,o);else for(let c of yT(i.path))a(i,o,c)}),t}function yT(e){let t=e.split("/");if(t.length===0)return[];let[n,...s]=t,a=n.endsWith("?"),i=n.replace(/\?$/,"");if(s.length===0)return a?[i,""]:[i];let o=yT(s.join("/")),l=[];return l.push(...o.map(c=>c===""?i:[i,c].join("/"))),a&&l.push(...o),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function IB(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:UB(t.routesMeta.map(s=>s.childrenIndex),n.routesMeta.map(s=>s.childrenIndex)))}const RB=/^:[\w-]+$/,MB=3,DB=2,FB=1,LB=10,BB=-2,uk=e=>e==="*";function WB(e,t){let n=e.split("/"),s=n.length;return n.some(uk)&&(s+=BB),t&&(s+=DB),n.filter(a=>!uk(a)).reduce((a,i)=>a+(RB.test(i)?MB:i===""?FB:LB),s)}function UB(e,t){return e.length===t.length&&e.slice(0,-1).every((s,a)=>s===t[a])?e[e.length-1]-t[t.length-1]:0}function qB(e,t,n){let{routesMeta:s}=e,a={},i="/",o=[];for(let l=0;l<s.length;++l){let c=s[l],d=l===s.length-1,u=i==="/"?t:t.slice(i.length)||"/",h=rp({path:c.relativePath,caseSensitive:c.caseSensitive,end:d},u),f=c.route;if(!h&&d&&n&&!s[s.length-1].route.index&&(h=rp({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},u)),!h)return null;
vendor: 9,180 bytes, lines 555-564
555Object.assign(a,h.params),o.push({params:a,pathname:Yi([i,h.pathname]),pathnameBase:KB(Yi([i,h.pathnameBase])),route:f}),h.pathnameBase!=="/"&&(i=Yi([i,h.pathnameBase]))}return o}function rp(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,s]=HB(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let i=a[0],o=i.replace(/(.)\/+$/,"$1"),l=a.slice(1);return{params:s.reduce((d,u,h)=>{let{paramName:f,isOptional:m}=u;if(f==="*"){let p=l[h]||"";o=i.slice(0,i.length-p.length).replace(/(.)\/+$/,"$1")}const y=l[h];return m&&!y?d[f]=void 0:d[f]=(y||"").replace(/%2F/g,"/"),d},{}),pathname:i,pathnameBase:o,pattern:e}}function HB(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),gT(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let s=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,l,c)=>(s.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(s.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),s]}function zB(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return gT(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Wc(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,s=e.charAt(n);return s&&s!=="/"?null:e.slice(n)||"/"}function GB(e,t){t===void 0&&(t="/");let{pathname:n,search:s="",hash:a=""}=typeof e=="string"?dd(e):e;return{pathname:n?n.startsWith("/")?n:YB(n,t):t,search:QB(s),hash:ZB(a)}}function YB(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function yy(e,t,n,s){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(s)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function VB(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Dw(e,t){let n=VB(e);return t?n.map((s,a)=>a===n.length-1?s.pathname:s.pathnameBase):n.map(s=>s.pathnameBase)}function Fw(e,t,n,s){s===void 0&&(s=!1);let a;typeof e=="string"?a=dd(e):(a=Ku({},e),qt(!a.pathname||!a.pathname.includes("?"),yy("?","pathname","search",a)),qt(!a.pathname||!a.pathname.includes("#"),yy("#","pathname","hash",a)),qt(!a.search||!a.search.includes("#"),yy("#","search","hash",a)));let i=e===""||a.pathname==="",o=i?"/":a.pathname,l;if(o==null)l=n;else{let h=t.length-1;if(!s&&o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),h-=1;a.pathname=f.join("/")}l=h>=0?t[h]:"/"}let c=GB(a,l),d=o&&o!=="/"&&o.endsWith("/"),u=(i||o===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(d||u)&&(c.pathname+="/"),c}const Yi=e=>e.join("/").replace(/\/\/+/g,"/"),KB=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),QB=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,ZB=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function XB(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const vT=["post","put","patch","delete"];new Set(vT);const JB=["get",...vT];new Set(JB);/** 556 * React Router v6.30.1 557 * 558 * Copyright (c) Remix Software Inc. 559 * 560 * This source code is licensed under the MIT license found in the 561 * LICENSE.md file in the root directory of this source tree. 562 * 563 * @license MIT 564 */function Qu(){return Qu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},Qu.apply(this,arguments)}const jg=j.createContext(null),bT=j.createContext(null),Qa=j.createContext(null),Ng=j.createContext(null),fo=j.createContext({outlet:null,matches:[],isDataRoute:!1}),wT=j.createContext(null);function eW(e,t){let{relative:n}=t===void 0?{}:t;ud()||qt(!1);let{basename:s,navigator:a}=j.useContext(Qa),{hash:i,pathname:o,search:l}=kg(e,{relative:n}),c=o;return s!=="/"&&(c=o==="/"?s:Yi([s,o])),a.createHref({pathname:c,search:l,hash:i})}function ud(){return j.useContext(Ng)!=null}function En(){return ud()||qt(!1),j.useContext(Ng).location}function jT(e){j.useContext(Qa).static||j.useLayoutEffect(e)}function po(){let{isDataRoute:e}=j.useContext(fo);return e?mW():tW()}function tW(){ud()||qt(!1);let e=j.useContext(jg),{basename:t,future:n,navigator:s}=j.useContext(Qa),{matches:a}=j.useContext(fo),{pathname:i}=En(),o=JSON.stringify(Dw(a,n.v7_relativeSplatPath)),l=j.useRef(!1);return jT(()=>{l.current=!0}),j.useCallback(function(d,u){if(u===void 0&&(u={}),!l.current)return;if(typeof d=="number"){s.go(d);return}let h=Fw(d,JSON.parse(o),i,u.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:Yi([t,h.pathname])),(u.replace?s.replace:s.push)(h,u.state,u)},[t,s,o,i,e])}function kg(e,t){let{relative:n}=t===void 0?{}:t,{future:s}=j.useContext(Qa),{matches:a}=j.useContext(fo),{pathname:i}=En(),o=JSON.stringify(Dw(a,s.v7_relativeSplatPath));return j.useMemo(()=>Fw(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function rW(e,t){return nW(e,t)}function nW(e,t,n,s){ud()||qt(!1);let{navigator:a}=j.useContext(Qa),{matches:i}=j.useContext(fo),o=i[i.length-1],l=o?o.params:{};o&&o.pathname;let c=o?o.pathnameBase:"/";o&&o.route;let d=En(),u;if(t){var h;let v=typeof t=="string"?dd(t):t;c==="/"||(h=v.pathname)!=null&&h.startsWith(c)||qt(!1),u=v}else u=d;let f=u.pathname||"/",m=f;if(c!=="/"){let v=c.replace(/^\//,"").split("/");m="/"+f.replace(/^\//,"").split("/").slice(v.length).join("/")}let y=PB(e,{pathname:m}),p=lW(y&&y.map(v=>Object.assign({},v,{params:Object.assign({},l,v.params),pathname:Yi([c,a.encodeLocation?a.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?c:Yi([c,a.encodeLocation?a.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),i,n,s);return t&&p?j.createElement(Ng.Provider,{value:{location:Qu({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Ri.Pop}},p):p}function sW(){let e=hW(),t=XB(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return j.createElement(j.Fragment,null,j.createElement("h2",null,"Unexpected Application Error!"),j.createElement("h3",{style:{fontStyle:"italic"}},t),n?j.createElement("pre",{style:a},n):null,null)}const aW=j.createElement(sW,null);class iW extends j.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?j.createElement(fo.Provider,{value:this.props.routeContext},j.createElement(wT.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function oW(e){let{routeContext:t,match:n,children:s}=e,a=j.useContext(jg);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),j.createElement(fo.Provider,{value:t},s)}function lW(e,t,n,s){var a;if(t===void 0&&(t=[]),n===void 0&&(n=null),s===void 0&&(s=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=s)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,l=(a=n)==null?void 0:a.errors;if(l!=null){let u=o.findIndex(h=>h.route.id&&(l==null?void 0:l[h.route.id])!==void 0);u>=0||qt(!1),o=o.slice(0,Math.min(o.length,u+1))}let c=!1,d=-1;if(n&&s&&s.v7_partialHydration)for(let u=0;u<o.length;u++){let h=o[u];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(d=u),h.route.id){let{loaderData:f,errors:m}=n,y=h.route.loader&&f[h.route.id]===void 0&&(!m||m[h.route.id]===void 0);if(h.route.lazy||y){c=!0,d>=0?o=o.slice(0,d+1):o=[o[0]];break}}}return o.reduceRight((u,h,f)=>{let m,y=!1,p=null,v=null;n&&(m=l&&h.route.id?l[h.route.id]:void 0,p=h.route.errorElement||aW,c&&(d<0&&f===0?(y=!0,v=null):d===f&&(y=!0,v=h.route.hydrateFallbackElement||null)));let g=t.concat(o.slice(0,f+1)),x=()=>{let b;return m?b=p:y?b=v:h.route.Component?b=j.createElement(h.route.Component,null):h.route.element?b=h.route.element:b=u,j.createElement(oW,{match:h,routeC
564ontext:{outlet:u,matches:g,isDataRoute:n!=null},children:b})};return n&&(h.route.ErrorBoundary||h.route.errorElement||f===0)?j.createElement(iW,{location:n.location,revalidation:n.revalidation,component:p,error:m,children:x(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):x()},null)}var NT=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(NT||{}),np=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(np||{});function cW(e){let t=j.useContext(jg);return t||qt(!1),t}function dW(e){let t=j.useContext(bT);return t||qt(!1),t}function uW(e){let t=j.useContext(fo);return t||qt(!1),t}function kT(e){let t=uW(),n=t.matches[t.matches.length-1];return n.route.id||qt(!1),n.route.id}function hW(){var e;let t=j.useContext(wT),n=dW(np.UseRouteError),s=kT(np.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[s]}function mW(){let{router:e}=cW(NT.UseNavigateStable),t=kT(np.UseNavigateStable),n=j.useRef(!1);return jT(()=>{n.current=!0}),j.useCallback(function(a,i){i===void 0&&(i={}),n.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,Qu({fromRouteId:t},i)))},[e,t])}function fW(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Ys(e){let{to:t,replace:n,state:s,relative:a}=e;ud()||qt(!1);let{future:i,static:o}=j.useContext(Qa),{matches:l}=j.useContext(fo),{pathname:c}=En(),d=po(),u=Fw(t,Dw(l,i.v7_relativeSplatPath),c,a==="path"),h=JSON.stringify(u);return j.useEffect(()=>d(JSON.parse(h),{replace:n,state:s,relative:a}),[d,h,a,n,s]),null}function Ae(e){qt(!1)}function pW(e){let{basename:t="/",children:n=null,location:s,navigationType:a=Ri.Pop,navigator:i,static:o=!1,future:l}=e;ud()&&qt(!1);let c=t.replace(/^\/*/,"/"),d=j.useMemo(()=>({basename:c,navigator:i,static:o,future:Qu({v7_relativeSplatPath:!1},l)}),[c,l,i,o]);typeof s=="string"&&(s=dd(s));let{pathname:u="/",search:h="",hash:f="",state:m=null,key:y="default"}=s,p=j.useMemo(()=>{let v=Wc(u,c);return v==null?null:{location:{pathname:v,search:h,hash:f,state:m,key:y},navigationType:a}},[c,u,h,f,m,y,a]);return p==null?null:j.createElement(Qa.Provider,{value:d},j.createElement(Ng.Provider,{children:n,value:p}))}function gW(e){let{children:t,location:n}=e;return rW(qb(t),n)}new Promise(()=>{});function qb(e,t){t===void 0&&(t=[]);let n=[];return j.Children.forEach(e,(s,a)=>{if(!j.isValidElement(s))return;let i=[...t,a];if(s.type===j.Fragment){n.push.apply(n,qb(s.props.children,i));return}s.type!==Ae&&qt(!1),!s.props.index||!s.props.children||qt(!1);let o={id:s.props.id||i.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,loader:s.props.loader,action:s.props.action,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(o.children=qb(s.props.children,i)),n.push(o)}),n}/** 565 * React Router DOM v6.30.1 566 * 567 * Copyright (c) Remix Software Inc. 568 * 569 * This source code is licensed under the MIT license found in the 570 * LICENSE.md file in the root directory of this source tree. 571 * 572 * @license MIT 573 */function sp(){return sp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},sp.apply(this,arguments)}function _T(e,t){if(e==null)return{};var n={},s=Object.keys(e),a,i;for(i=0;i<s.length;i++)a=s[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function xW(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function yW(e,t){return e.button===0&&(!t||t==="_self")&&!xW(e)}const vW=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],bW=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],wW="6";try{window.__reactRouterVersion=wW}catch{}const jW=j.createContext({isTransitioning:!1}),NW="startTransition",hk=b1[NW];function kW(e){let{basename:t,children:n,future:s,window:a}=e,i=j.useRef();i.current==null&&(i.current=TB({window:a,v5Compat:!0}));let o=i.current,[l,c]=j.useState({action:o.action,location:o.location}),{v7_startTransition:d}=s||{},u=j.useCallback(h=>{d&&hk?hk(()=>c(h)):c(h)},[c,d]);return j.useLayoutEffect(()=>o.listen(u),[o,u]),j.useEffect(()=>fW(s),[s]),j.createElement(pW,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:o,future:s})}const _W=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",SW=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ue=j.forwardRef(function(t,n){let{onClick:s,relative:a,reloadDocument:i,replace:o,state:l,target:c,to:d,preventScrollReset:u,viewTransition:h}=t,f=_T(t,vW),{basename:m}=j.useContext(Qa),y,p=!1;
573if(typeof d=="string"&&SW.test(d)&&(y=d,_W))try{let b=new URL(window.location.href),w=d.startsWith("//")?new URL(b.protocol+d):new URL(d),N=Wc(w.pathname,m);w.origin===b.origin&&N!=null?d=N+w.search+w.hash:p=!0}catch{}let v=eW(d,{relative:a}),g=TW(d,{replace:o,state:l,target:c,preventScrollReset:u,relative:a,viewTransition:h});function x(b){s&&s(b),b.defaultPrevented||g(b)}return j.createElement("a",sp({},f,{href:y||v,onClick:p||i?s:x,ref:n,target:c}))}),CW=j.forwardRef(function(t,n){let{"aria-current":s="page",caseSensitive:a=!1,className:i="",end:o=!1,style:l,to:c,viewTransition:d,children:u}=t,h=_T(t,bW),f=kg(c,{relative:h.relative}),m=En(),y=j.useContext(bT),{navigator:p,basename:v}=j.useContext(Qa),g=y!=null&&$W(f)&&d===!0,x=p.encodeLocation?p.encodeLocation(f).pathname:f.pathname,b=m.pathname,w=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;a||(b=b.toLowerCase(),w=w?w.toLowerCase():null,x=x.toLowerCase()),w&&v&&(w=Wc(w,v)||w);const N=x!=="/"&&x.endsWith("/")?x.length-1:x.length;let S=b===x||!o&&b.startsWith(x)&&b.charAt(N)==="/",_=w!=null&&(w===x||!o&&w.startsWith(x)&&w.charAt(x.length)==="/"),C={isActive:S,isPending:_,isTransitioning:g},$=S?s:void 0,k;typeof i=="function"?k=i(C):k=[i,S?"active":null,_?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let E=typeof l=="function"?l(C):l;return j.createElement(ue,sp({},h,{"aria-current":$,className:k,ref:n,style:E,to:c,viewTransition:d}),typeof u=="function"?u(C):u)});var Hb;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Hb||(Hb={}));var mk;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(mk||(mk={}));function EW(e){let t=j.useContext(jg);return t||qt(!1),t}function TW(e,t){let{target:n,replace:s,state:a,preventScrollReset:i,relative:o,viewTransition:l}=t===void 0?{}:t,c=po(),d=En(),u=kg(e,{relative:o});return j.useCallback(h=>{if(yW(h,n)){h.preventDefault();let f=s!==void 0?s:tp(d)===tp(u);c(e,{replace:f,state:a,preventScrollReset:i,relative:o,viewTransition:l})}},[d,c,u,s,a,n,e,i,o,l])}function $W(e,t){t===void 0&&(t={});let n=j.useContext(jW);n==null&&qt(!1);let{basename:s}=EW(Hb.useViewTransitionState),a=kg(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=Wc(n.currentLocation.pathname,s)||n.currentLocation.pathname,o=Wc(n.nextLocation.pathname,s)||n.nextLocation.pathname;return rp(a.pathname,o)!=null||rp(a.pathname,i)!=null}var OW=typeof Element<"u",PW=typeof Map=="function",AW=typeof Set=="function",IW=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function pf(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,s,a;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(s=n;s--!==0;)if(!pf(e[s],t[s]))return!1;return!0}var i;if(PW&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(s=i.next()).done;)if(!t.has(s.value[0]))return!1;for(i=e.entries();!(s=i.next()).done;)if(!pf(s.value[1],t.get(s.value[0])))return!1;return!0}if(AW&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(s=i.next()).done;)if(!t.has(s.value[0]))return!1;return!0}if(IW&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(s=n;s--!==0;)if(e[s]!==t[s])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(s=n;s--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[s]))return!1;if(OW&&e instanceof Element)return!1;for(s=n;s--!==0;)if(!((a[s]==="_owner"||a[s]==="__v"||a[s]==="__o")&&e.$$typeof)&&!pf(e[a[s]],t[a[s]]))return!1;return!0}return e!==e&&t!==t}var RW=function(t,n){try{return pf(t,n)}catch(s){if((s.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw s}};const MW=oo(RW);var DW=function(e,t,n,s,a,i,o,l){if(!e){var c;if(t===void 0)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var d=[n,s,a,i,o,l],u=0;c=new Error(t.replace(/%s/g,function(){return d[u++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}},FW=DW;const fk=oo(FW);var LW=function(t,n,s,a){var i=s?s.call(a,t,n):void 0;if(i!==void 0)return!!i;if(t===n)return!0;
573if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var o=Object.keys(t),l=Object.keys(n);if(o.length!==l.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(n),d=0;d<o.length;d++){var u=o[d];if(!c(u))return!1;var h=t[u],f=n[u];if(i=s?s.call(a,h,f,u):void 0,i===!1||i===void 0&&h!==f)return!1}return!0};const BW=oo(LW);var ST=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(ST||{}),vy={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},pk=Object.values(ST),Lw={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},WW=Object.entries(Lw).reduce((e,[t,n])=>(e[n]=t,e),{}),Cs="data-rh",mc={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},fc=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const s=e[n];if(Object.prototype.hasOwnProperty.call(s,t))return s[t]}return null},UW=e=>{let t=fc(e,"title");const n=fc(e,mc.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const s=fc(e,mc.DEFAULT_TITLE);return t||s||void 0},qW=e=>fc(e,mc.ON_CHANGE_CLIENT_STATE)||(()=>{}),by=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,s)=>({...n,...s}),{}),HW=(e,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,s)=>{if(!n.length){const a=Object.keys(s);for(let i=0;i<a.length;i+=1){const l=a[i].toLowerCase();if(e.indexOf(l)!==-1&&s[l])return n.concat(s)}}return n},[]),zW=e=>console&&typeof console.warn=="function"&&console.warn(e),Rd=(e,t,n)=>{const s={};return n.filter(a=>Array.isArray(a[e])?!0:(typeof a[e]<"u"&&zW(`Helmet: ${e} should be of type "Array". Instead found type "${typeof a[e]}"`),!1)).map(a=>a[e]).reverse().reduce((a,i)=>{const o={};i.filter(c=>{let d;const u=Object.keys(c);for(let f=0;f<u.length;f+=1){const m=u[f],y=m.toLowerCase();t.indexOf(y)!==-1&&!(d==="rel"&&c[d].toLowerCase()==="canonical")&&!(y==="rel"&&c[y].toLowerCase()==="stylesheet")&&(d=y),t.indexOf(m)!==-1&&(m==="innerHTML"||m==="cssText"||m==="itemprop")&&(d=m)}if(!d||!c[d])return!1;const h=c[d].toLowerCase();return s[d]||(s[d]={}),o[d]||(o[d]={}),s[d][h]?!1:(o[d][h]=!0,!0)}).reverse().forEach(c=>a.push(c));const l=Object.keys(o);for(let c=0;c<l.length;c+=1){const d=l[c],u={...s[d],...o[d]};s[d]=u}return a},[]).reverse()},GW=(e,t)=>{if(Array.isArray(e)&&e.length){for(let n=0;n<e.length;n+=1)if(e[n][t])return!0}return!1},YW=e=>({baseTag:HW(["href"],e),bodyAttributes:by("bodyAttributes",e),defer:fc(e,mc.DEFER),encode:fc(e,mc.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:by("htmlAttributes",e),linkTags:Rd("link",["rel","href"],e),metaTags:Rd("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:Rd("noscript",["innerHTML"],e),onChangeClientState:qW(e),scriptTags:Rd("script",["src","innerHTML"],e),styleTags:Rd("style",["cssText"],e),title:UW(e),titleAttributes:by("titleAttributes",e),prioritizeSeoTags:GW(e,mc.PRIORITIZE_SEO_TAGS)}),CT=e=>Array.isArray(e)?e.join(""):e,VW=(e,t)=>{const n=Object.keys(e);for(let s=0;s<n.length;s+=1)if(t[n[s]]&&t[n[s]].includes(e[n[s]]))return!0;return!1},wy=(e,t)=>Array.isArray(e)?e.reduce((n,s)=>(VW(s,t)?n.priority.push(s):n.default.push(s),n),{priority:[],default:[]}):{default:e,priority:[]},gk=(e,t)=>({...e,[t]:void 0}),KW=["noscript","script","style"],zb=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),ET=e=>Object.keys(e).reduce((t,n)=>{const s=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${s}`:s},""),QW=(e,t,n,s)=>{const a=ET(n),i=CT(t);return a?`<${e} ${Cs}="true" ${a}>${zb(i,s)}</${e}>`:`<${e} ${Cs}="true">${zb(i,s)}</${e}>`},ZW=(e,t,n=!0)=>t.reduce((s,a)=>{const i=a,o=Object.keys(i).filter(d=>!(d==="innerHTML"||d==="cssText")).reduce((d,u)=>{const h=typeof i[u]>"u"?u:`${u}="${zb(i[u],n)}"`;return d?`${d} ${h}`:h},""),l=i.innerHTML||i.cssText||"",c=KW.indexOf(e)===-1;return`${s}<${e} ${Cs}="true" ${o}${c?"/>":`>${l}</${e}>`}`},""),TT=(e,t={})=>Object.keys(e).reduce((n,s)=>{const a=Lw[s];return n[a||s]=e[s],n}
573,t),XW=(e,t,n)=>{const s={key:t,[Cs]:!0},a=TT(n,s);return[ee.createElement("title",a,t)]},gf=(e,t)=>t.map((n,s)=>{const a={key:s,[Cs]:!0};return Object.keys(n).forEach(i=>{const l=Lw[i]||i;if(l==="innerHTML"||l==="cssText"){const c=n.innerHTML||n.cssText;a.dangerouslySetInnerHTML={__html:c}}else a[l]=n[i]}),ee.createElement(e,a)}),Vn=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>XW(e,t.title,t.titleAttributes),toString:()=>QW(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>TT(t),toString:()=>ET(t)};default:return{toComponent:()=>gf(e,t),toString:()=>ZW(e,t,n)}}},JW=({metaTags:e,linkTags:t,scriptTags:n,encode:s})=>{const a=wy(e,vy.meta),i=wy(t,vy.link),o=wy(n,vy.script);return{priorityMethods:{toComponent:()=>[...gf("meta",a.priority),...gf("link",i.priority),...gf("script",o.priority)],toString:()=>`${Vn("meta",a.priority,s)} ${Vn("link",i.priority,s)} ${Vn("script",o.priority,s)}`},metaTags:a.default,linkTags:i.default,scriptTags:o.default}},eU=e=>{const{baseTag:t,bodyAttributes:n,encode:s=!0,htmlAttributes:a,noscriptTags:i,styleTags:o,title:l="",titleAttributes:c,prioritizeSeoTags:d}=e;let{linkTags:u,metaTags:h,scriptTags:f}=e,m={toComponent:()=>{},toString:()=>""};return d&&({priorityMethods:m,linkTags:u,metaTags:h,scriptTags:f}=JW(e)),{priority:m,base:Vn("base",t,s),bodyAttributes:Vn("bodyAttributes",n,s),htmlAttributes:Vn("htmlAttributes",a,s),link:Vn("link",u,s),meta:Vn("meta",h,s),noscript:Vn("noscript",i,s),script:Vn("script",f,s),style:Vn("style",o,s),title:Vn("title",{title:l,titleAttributes:c},s)}},Gb=eU,Cm=[],$T=!!(typeof window<"u"&&window.document&&window.document.createElement),Yb=class{constructor(e,t){ba(this,"instances",[]);ba(this,"canUseDOM",$T);ba(this,"context");ba(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?Cm:this.instances,add:e=>{(this.canUseDOM?Cm:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?Cm:this.instances).indexOf(e);(this.canUseDOM?Cm:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=Gb({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},tU={},OT=ee.createContext(tU),Go,PT=(Go=class extends j.Component{constructor(n){super(n);ba(this,"helmetData");this.helmetData=new Yb(this.props.context||{},Go.canUseDOM)}render(){return ee.createElement(OT.Provider,{value:this.helmetData.value},this.props.children)}},ba(Go,"canUseDOM",$T),Go),Cl=(e,t)=>{const n=document.head||document.querySelector("head"),s=n.querySelectorAll(`${e}[${Cs}]`),a=[].slice.call(s),i=[];let o;return t&&t.length&&t.forEach(l=>{const c=document.createElement(e);for(const d in l)if(Object.prototype.hasOwnProperty.call(l,d))if(d==="innerHTML")c.innerHTML=l.innerHTML;else if(d==="cssText")c.styleSheet?c.styleSheet.cssText=l.cssText:c.appendChild(document.createTextNode(l.cssText));else{const u=d,h=typeof l[u]>"u"?"":l[u];c.setAttribute(d,h)}c.setAttribute(Cs,"true"),a.some((d,u)=>(o=u,c.isEqualNode(d)))?a.splice(o,1):i.push(c)}),a.forEach(l=>{var c;return(c=l.parentNode)==null?void 0:c.removeChild(l)}),i.forEach(l=>n.appendChild(l)),{oldTags:a,newTags:i}},Vb=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const s=n.getAttribute(Cs),a=s?s.split(","):[],i=[...a],o=Object.keys(t);for(const l of o){const c=t[l]||"";n.getAttribute(l)!==c&&n.setAttribute(l,c),a.indexOf(l)===-1&&a.push(l);const d=i.indexOf(l);d!==-1&&i.splice(d,1)}for(let l=i.length-1;l>=0;l-=1)n.removeAttribute(i[l]);a.length===i.length?n.removeAttribute(Cs):n.getAttribute(Cs)!==o.join(",")&&n.setAttribute(Cs,o.join(","))},rU=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=CT(e)),Vb("title",t)},xk=(e,t)=>{const{baseTag:n,bodyAttributes:s,htmlAttributes:a,linkTags:i,metaTags:o,noscriptTags:l,onChangeClientState:c,scriptTags:d,styleTags:u,title:h,titleAttributes:f}=e;Vb("body",s),Vb("html",a),rU(h,f);const m={baseTag:Cl("base",n),linkTags:Cl("link",i),metaTags:Cl("meta",o),noscriptTags:Cl("noscript",l),scriptTags:Cl("script",d),styleTags:Cl("style",u)},y={},p={};Object.keys(m).forEach(v=>{const{newTags:g,oldTags:x}=m[v];g.length&&(y[v]=g),x.length&&(p[v]=m[v].oldTags)}),t&&t(),c(e,y,p)},Md=null,nU=e=>{Md&&cancelAnimationFrame(Md),e.defer?Md=requestAnimationFrame(()=>{xk(e,()=>{Md=null})}):(xk(e),Md=null)},sU=nU,yk=class extends j.Component{constructor(){super(...arguments);ba(this,"rendered",!1)}shouldComponentUpdate(t){return!BW(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:n}=this.props.context;let s=null;const a=YW(t.get().map(i=>{const o={...i.props};return delete o.context,o}));PT.canUseDOM?sU(a):Gb&&(s=Gb(a)),n(s)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},kv,hd=(kv=class extends j.Component{shouldComponentUpdate(e){return!MW(gk(this.props,"helmetData"),gk(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,s){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,s)}]}}mapObjectTypeChildren(e,t,n,s){switch(e.type){case"title":return{...t,[e.type]:s,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(s=>
573{n={...n,[s]:e[s]}}),n}warnOnInvalidChildren(e,t){return fk(pk.some(n=>e.type===n),typeof e.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${pk.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),fk(!t||typeof t=="string"||Array.isArray(t)&&!t.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return ee.Children.forEach(e,s=>{if(!s||!s.props)return;const{children:a,...i}=s.props,o=Object.keys(i).reduce((c,d)=>(c[WW[d]||d]=i[d],c),{});let{type:l}=s;switch(typeof l=="symbol"?l=l.toString():this.warnOnInvalidChildren(s,a),l){case"Symbol(react.fragment)":t=this.mapChildrenToProps(a,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(s,n,o,a);break;default:t=this.mapObjectTypeChildren(s,t,o,a);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:s}=t;if(e&&(n=this.mapChildrenToProps(e,n)),s&&!(s instanceof Yb)){const a=s;s=new Yb(a.context,!0),delete n.helmetData}return s?ee.createElement(yk,{...n,context:s.value}):ee.createElement(OT.Consumer,null,a=>ee.createElement(yk,{...n,context:a}))}},ba(kv,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),kv);const aU="modulepreload",iU=function(e){return"/"+e},vk={},Ih=function(t,n,s){let a=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),l=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));a=Promise.allSettled(n.map(c=>{if(c=iU(c),c in vk)return;vk[c]=!0;const d=c.endsWith(".css"),u=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${u}`))return;const h=document.createElement("link");if(h.rel=d?"stylesheet":aU,d||(h.as="script"),h.crossOrigin="",h.href=c,l&&h.setAttribute("nonce",l),document.head.appendChild(h),d)return new Promise((f,m)=>{h.addEventListener("load",f),h.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(o){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=o,window.dispatchEvent(l),!l.defaultPrevented)throw o}return a.then(o=>{for(const l of o||[])l.status==="rejected"&&i(l.reason);return t().catch(i)})},oU=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>Ih(async()=>{const{default:s}=await Promise.resolve().then(()=>md);return{default:s}},void 0).then(({default:s})=>s(...n)):t=fetch,(...n)=>t(...n)};class Bw extends Error{constructor(t,n="FunctionsError",s){super(t),this.name=n,this.context=s}}class lU extends Bw{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class bk extends Bw{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class wk extends Bw{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var Kb;(function(e){e.Any="any",e.ApNortheast1="ap-northeast-1",e.ApNortheast2="ap-northeast-2",e.ApSouth1="ap-south-1",e.ApSoutheast1="ap-southeast-1",e.ApSoutheast2="ap-southeast-2",e.CaCentral1="ca-central-1",e.EuCentral1="eu-central-1",e.EuWest1="eu-west-1",e.EuWest2="eu-west-2",e.EuWest3="eu-west-3",e.SaEast1="sa-east-1",e.UsEast1="us-east-1",e.UsWest1="us-west-1",e.UsWest2="us-west-2"})(Kb||(Kb={}));var cU=function(e,t,n,s){function a(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function l(u){try{d(s.next(u))}catch(h){o(h)}}function c(u){try{d(s.throw(u))}catch(h){o(h)}}function d(u){u.done?i(u.value):a(u.value).then(l,c)}d((s=s.apply(e,t||[])).next())})};class dU{constructor(t,{headers:n={},customFetch:s,region:a=Kb.Any}={}){this.url=t,this.headers=n,this.region=a,this.fetch=oU(s)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t,n={}){var s;return cU(this,void 0,void 0,function*(){try{const{headers:a,method:i,body:o}=n;let l={},{region:c}=n;c||(c=this.region);const d=new URL(`${this.url}/${t}`);c&&c!=="any"&&(l["x-region"]=c,d.searchParams.set("forceFunctionRegion",c));let u;o&&(a&&!Object.prototype.hasOwnProperty.call(a,"Content-Type")||!a)&&(typeof Blob<"u"&&o instanceof Blob||o instanceof ArrayBuffer?(l["Content-Type"]="application/octet-stream",u=o):typeof o=="str
573ing"?(l["Content-Type"]="text/plain",u=o):typeof FormData<"u"&&o instanceof FormData?u=o:(l["Content-Type"]="application/json",u=JSON.stringify(o)));const h=yield this.fetch(d.toString(),{method:i||"POST",headers:Object.assign(Object.assign(Object.assign({},l),this.headers),a),body:u}).catch(p=>{throw new lU(p)}),f=h.headers.get("x-relay-error");if(f&&f==="true")throw new bk(h);if(!h.ok)throw new wk(h);let m=((s=h.headers.get("Content-Type"))!==null&&s!==void 0?s:"text/plain").split(";")[0].trim(),y;return m==="application/json"?y=yield h.json():m==="application/octet-stream"?y=yield h.blob():m==="text/event-stream"?y=h:m==="multipart/form-data"?y=yield h.formData():y=yield h.text(),{data:y,error:null,response:h}}catch(a){return{data:null,error:a,response:a instanceof wk||a instanceof bk?a.context:void 0}}})}}var yn={},Ww={},_g={},Rh={},Sg={},Cg={},uU=function(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")},Uc=uU();const hU=Uc.fetch,AT=Uc.fetch.bind(Uc),IT=Uc.Headers,mU=Uc.Request,fU=Uc.Response,md=Object.freeze(Object.defineProperty({__proto__:null,Headers:IT,Request:mU,Response:fU,default:AT,fetch:hU},Symbol.toStringTag,{value:"Module"})),pU=QI(md);var Eg={};Object.defineProperty(Eg,"__esModule",{value:!0});let gU=class extends Error{constructor(t){super(t.message),this.name="PostgrestError",this.details=t.details,this.hint=t.hint,this.co
573de=t.code}};Eg.default=gU;var RT=It&&It.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Cg,"__esModule",{value:!0});const xU=RT(pU),yU=RT(Eg);let vU=class{constructor(t){var n,s;this.shouldThrowOnError=!1,this.method=t.method,this.url=t.url,this.headers=new Headers(t.headers),this.schema=t.schema,this.body=t.body,this.shouldThrowOnError=(n=t.shouldThrowOnError)!==null&&n!==void 0?n:!1,this.signal=t.signal,this.isMaybeSingle=(s=t.isMaybeSingle)!==null&&s!==void 0?s:!1,t.fetch?this.fetch=t.fetch:typeof fetch>"u"?this.fetch=xU.default:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(t,n){return this.headers=new Headers(this.headers),this.headers.set(t,n),this}then(t,n){this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json");const s=this.fetch;let a=s(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async i=>{var o,l,c,d;let u=null,h=null,f=null,m=i.status,y=i.statusText;if(i.ok){if(this.method!=="HEAD"){const x=await i.text();x===""||(this.headers.get("Accept")==="text/csv"||this.headers.get("Accept")&&(!((o=this.headers.get("Accept"))===null||o===void 0)&&o.includes("application/vnd.pgrst.plan+text"))?h=x:h=JSON.parse(x))}const v=(l=this.headers.get("Prefer"))===null||l===void 0?void 0:l.match(/count=(exact|planned|estimated)/),g=(c=i.headers.get("content-range"))===null||c===void 0?void 0:c.split("/");v&&g&&g.length>1&&(f=parseInt(g[1])),this.isMaybeSingle&&this.method==="GET"&&Array.isArray(h)&&(h.length>1?(u={code:"PGRST116",details:`Results contain ${h.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},h=null,f=null,m=406,y="Not Acceptable"):h.length===1?h=h[0]:h=null)}else{const v=await i.text();try{u=JSON.parse(v),Array.isArray(u)&&i.status===404&&(h=[],u=null,m=200,y="OK")}catch{i.status===404&&v===""?(m=204,y="No Content"):u={message:v}}if(u&&this.isMaybeSingle&&(!((d=u==null?void 0:u.details)===null||d===void 0)&&d.includes("0 rows"))&&(u=null,m=200,y="OK"),u&&this.shouldThrowOnError)throw new yU.default(u)}return{error:u,data:h,count:f,status:m,statusText:y}});return this.shouldThrowOnError||(a=a.catch(i=>{var o,l,c;return{error:{message:`${(o=i==null?void 0:i.name)!==null&&o!==void 0?o:"FetchError"}: ${i==null?void 0:i.message}`,details:`${(l=i==null?void 0:i.stack)!==null&&l!==void 0?l:""}`,hint:"",code:`${(c=i==null?void 0:i.code)!==null&&c!==void 0?c:""}`},data:null,count:null,status:0,statusText:""}})),a.then(t,n)}returns(){return this}overrideTypes(){return this}};Cg.default=vU;var bU=It&&It.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Sg,"__esModule",{value:!0});const wU=bU(Cg);let jU=class extends wU.default{select(t){let n=!1;const s=(t??"*").split("").map(a=>/\s/.test(a)&&!n?"":(a==='"'&&(n=!n),a)).join("");return this.url.searchParams.set("select",s),this.headers.append("Prefer","return=representation"),this}order(t,{ascending:n=!0,nullsFirst:s,foreignTable:a,referencedTable:i=a}={}){const o=i?`${i}.order`:"order",l=this.url.searchParams.get(o);return this.url.searchParams.set(o,`${l?`${l},`:""}${t}.${n?"asc":"desc"}${s===void 0?"":s?".nullsfirst":".nullslast"}`),this}limit(t,{foreignTable:n,referencedTable:s=n}={}){const a=typeof s>"u"?"limit":`${s}.limit`;return this.url.searchParams.set(a,`${t}`),this}range(t,n,{foreignTable:s,referencedTable:a=s}={}){const i=typeof a>"u"?"offset":`${a}.offset`,o=typeof a>"u"?"limit":`${a}.limit`;return this.url.searchParams.set(i,`${t}`),this.url.searchParams.set(o,`${n-t+1}`),this}abortSignal(t){return this.signal=t,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.method==="GET"?this.headers.set("Accept","application/json"):this.headers.set("Accept","application/vnd.pgrst.object+json"),this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}
573explain({analyze:t=!1,verbose:n=!1,settings:s=!1,buffers:a=!1,wal:i=!1,format:o="text"}={}){var l;const c=[t?"analyze":null,n?"verbose":null,s?"settings":null,a?"buffers":null,i?"wal":null].filter(Boolean).join("|"),d=(l=this.headers.get("Accept"))!==null&&l!==void 0?l:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${o}; for="${d}"; options=${c};`),o==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(t){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${t}`),this}};Sg.default=jU;var NU=It&&It.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Rh,"__esModule",{value:!0});const kU=NU(Sg);let _U=class extends kU.default{eq(t,n){return this.url.searchParams.append(t,`eq.${n}`),this}neq(t,n){return this.url.searchParams.append(t,`neq.${n}`),this}gt(t,n){return this.url.searchParams.append(t,`gt.${n}`),this}gte(t,n){return this.url.searchParams.append(t,`gte.${n}`),this}lt(t,n){return this.url.searchParams.append(t,`lt.${n}`),this}lte(t,n){return this.url.searchParams.append(t,`lte.${n}`),this}like(t,n){return this.url.searchParams.append(t,`like.${n}`),this}likeAllOf(t,n){return this.url.searchParams.append(t,`like(all).{${n.join(",")}}`),this}likeAnyOf(t,n){return this.url.searchParams.append(t,`like(any).{${n.join(",")}}`),this}ilike(t,n){return this.url.searchParams.append(t,`ilike.${n}`),this}ilikeAllOf(t,n){return this.url.searchParams.append(t,`ilike(all).{${n.join(",")}}`),this}ilikeAnyOf(t,n){return this.url.searchParams.append(t,`ilike(any).{${n.join(",")}}`),this}is(t,n){return this.url.searchParams.append(t,`is.${n}`),this}in(t,n){const s=Array.from(new Set(n)).map(a=>typeof a=="string"&&new RegExp("[,()]").test(a)?`"${a}"`:`${a}`).join(",");return this.url.searchParams.append(t,`in.(${s})`),this}contains(t,n){return typeof n=="string"?this.url.searchParams.append(t,`cs.${n}`):Array.isArray(n)?this.url.searchParams.append(t,`cs.{${n.join(",")}}`):this.url.searchParams.append(t,`cs.${JSON.stringify(n)}`),this}containedBy(t,n){return typeof n=="string"?this.url.searchParams.append(t,`cd.${n}`):Array.isArray(n)?this.url.searchParams.append(t,`cd.{${n.join(",")}}`):this.url.searchParams.append(t,`cd.${JSON.stringify(n)}`),this}rangeGt(t,n){return this.url.searchParams.append(t,`sr.${n}`),this}rangeGte(t,n){return this.url.searchParams.append(t,`nxl.${n}`),this}rangeLt(t,n){return this.url.searchParams.append(t,`sl.${n}`),this}rangeLte(t,n){return this.url.searchParams.append(t,`nxr.${n}`),this}rangeAdjacent(t,n){return this.url.searchParams.append(t,`adj.${n}`),this}overlaps(t,n){return typeof n=="string"?this.url.searchParams.append(t,`ov.${n}`):this.url.searchParams.append(t,`ov.{${n.join(",")}}`),this}textSearch(t,n,{config:s,type:a}={}){let i="";a==="plain"?i="pl":a==="phrase"?i="ph":a==="websearch"&&(i="w");const o=s===void 0?"":`(${s})`;return this.url.searchParams.append(t,`${i}fts${o}.${n}`),this}match(t){return Object.entries(t).forEach(([n,s])=>{this.url.searchParams.append(n,`eq.${s}`)}),this}not(t,n,s){return this.url.searchParams.append(t,`not.${n}.${s}`),this}or(t,{foreignTable:n,referencedTable:s=n}={}){const a=s?`${s}.or`:"or";return this.url.searchParams.append(a,`(${t})`),this}filter(t,n,s){return this.url.searchParams.append(t,`${n}.${s}`),this}};Rh.default=_U;var SU=It&&It.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_g,"__esModule",{value:!0});const Dd=SU(Rh);let CU=class{constructor(t,{headers:n={},schema:s,fetch:a}){this.url=t,this.headers=new Headers(n),this.schema=s,this.fetch=a}select(t,{head:n=!1,count:s}={}){const a=n?"HEAD":"GET";let i=!1;const o=(t??"*").split("").map(l=>/\s/.test(l)&&!i?"":(l==='"'&&(i=!i),l)).join("");return this.url.searchParams.set("select",o),s&&this.headers.append("Prefer",`count=${s}`),new Dd.default({method:a,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch})}insert(t,{count:n,defaultToNull:s=!0}={}){var a;const i="POST";if(n&&this.headers.append("Prefer",`count=${n}`),s||this.headers.append("Prefer","missing=default"),Array.isArray(t)){const o=t.reduce((l,c)=>l.concat(Object.keys(c)),[]);if(o.length>0){const l=[...new Set(o)].map(c=>`"${c}"`);this.url.searchParams.set("columns",l.join(","))}}return new Dd.default({method:i,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:(a=this.fetch)!==null&&a!==void 0?a:fetch})}upsert(t,{onConflict:n,ignoreDuplicates:s=!1,count:a,defaultToNull:i=!0}={}){var o;const l="POST";if(this.headers.append("Prefer",`resolution=${s?"ignore":"merge"}-duplicates`),n!==void 0&&this.url.searchParams.set("on_conflict",n),a&&this.headers.append("Prefer",`count=${a}`),i||this.headers.append("Prefer","missing=default"),Array.isArray(t)){const c=t.reduce((d,u)=>d.concat(Object.keys(u)),[]);if(c.length>0){const d=[...new Set(c)].map(u=>`"${u}"`);this.url.searchParams.set("columns",d.join(","))}}return new Dd.default({method:l,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch})}update(t,{count:n}={}){var s;const a="PATCH";return n&&this.headers.append("Prefer",`count=${n}`),new Dd.default({method:a,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:(s=this.fetch)!==null&&s!==void 0?s:fetch})}delete({count:t}={}){var n;const s="DELETE";return t&&this.headers.append("Prefer",`count=${t}`),new Dd.default({method:s,url:this.url,headers:this.headers,schema:this.schema,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch})}};_g.default=CU;
573var MT=It&&It.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ww,"__esModule",{value:!0});const EU=MT(_g),TU=MT(Rh);let $U=class DT{constructor(t,{headers:n={},schema:s,fetch:a}={}){this.url=t,this.headers=new Headers(n),this.schemaName=s,this.fetch=a}from(t){const n=new URL(`${this.url}/${t}`);return new EU.default(n,{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch})}schema(t){return new DT(this.url,{headers:this.headers,schema:t,fetch:this.fetch})}rpc(t,n={},{head:s=!1,get:a=!1,count:i}={}){var o;let l;const c=new URL(`${this.url}/rpc/${t}`);let d;s||a?(l=s?"HEAD":"GET",Object.entries(n).filter(([h,f])=>f!==void 0).map(([h,f])=>[h,Array.isArray(f)?`{${f.join(",")}}`:`${f}`]).forEach(([h,f])=>{c.searchParams.append(h,f)})):(l="POST",d=n);const u=new Headers(this.headers);return i&&u.set("Prefer",`count=${i}`),new TU.default({method:l,url:c,headers:u,schema:this.schemaName,body:d,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch})}};Ww.default=$U;var fd=It&&It.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(yn,"__esModule",{value:!0});yn.PostgrestError=yn.PostgrestBuilder=yn.PostgrestTransformBuilder=yn.PostgrestFilterBuilder=yn.PostgrestQueryBuilder=yn.PostgrestClient=void 0;const FT=fd(Ww);yn.PostgrestClient=FT.default;const LT=fd(_g);yn.PostgrestQueryBuilder=LT.default;const BT=fd(Rh);yn.PostgrestFilterBuilder=BT.default;const WT=fd(Sg);yn.PostgrestTransformBuilder=WT.default;const UT=fd(Cg);yn.PostgrestBuilder=UT.default;const qT=fd(Eg);yn.PostgrestError=qT.default;var OU=yn.default={PostgrestClient:FT.default,PostgrestQueryBuilder:LT.default,PostgrestFilterBuilder:BT.default,PostgrestTransformBuilder:WT.default,PostgrestBuilder:UT.default,PostgrestError:qT.default};const{PostgrestClient:PU,PostgrestQueryBuilder:Uge,PostgrestFilterBuilder:qge,PostgrestTransformBuilder:Hge,PostgrestBuilder:zge,PostgrestError:Gge}=OU;class AU{static detectEnvironment(){var t;if(typeof WebSocket<"u")return{type:"native",constructor:WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocket<"u")return{type:"native",constructor:globalThis.WebSocket};if(typeof global<"u"&&typeof global.WebSocket<"u")return{type:"native",constructor:global.WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&globalThis.EdgeRuntime||typeof navigator<"u"&&(!((t=navigator.userAgent)===null||t===void 0)&&t.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};if(typeof process<"u"){const n=process.versions;if(n&&n.node){const s=n.node,a=parseInt(s.replace(/^v/,"").split(".")[0]);return a>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${a} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${a} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option: 574import ws from "ws" 575new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const t=this.detectEnvironment();if(t.constructor)return t.constructor;let n=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(n+=` 576 577Suggested solution: ${t.workaround}`),new Error(n)}static createWebSocket(t,n){const s=this.getWebSocketConstructor();return new s(t,n)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const IU="2.15.5",RU=`realtime-js/${IU}`,MU="1.0.0",Qb=1e4,DU=1e3,FU=100;var vu;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(vu||(vu={}));var cr;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(cr||(cr={}));var Ns;(function(e){e.close="phx_close",e.error="phx_error",e.join="phx_join",e.reply="phx_reply",e.leave="phx_leave",e.access_token="access_token"})(Ns||(Ns={}));var Zb;(function(e){e.websocket="websocket"})(Zb||(Zb={}));var Po;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(Po||(Po={}));class LU{constructor(){this.HEADER_LENGTH=1}decode(t,n){return t.constructor===ArrayBuffer?n(this._binaryDecode(t)):n(typeof t=="string"?JSON.parse(t):{})}_binaryDecode(t){const n=new DataView(t),s=new TextDecoder;return this._decodeBroadcast(t,n,s)}_decodeBroadcast(t,n,s){const a=n.getUint8(1),i=n.getUint8(2);let o=this.HEADER_LENGTH+2;const l=s.decode(t.slice(o,o+a));o=o+a;const c=s.decode(t.slice(o,o+i));o=o+i;const d=JSON.parse(s.decode(t.slice(o,t.byteLength)));return{ref:null,topic:l,event:c,payload:d}}}class HT{constructor(t,n){this.callback=t,this.timerCalc=n,this.timer=void 0,this.tries=0,this.callback=t,this.timerCalc=n}reset(){this.tries=0,clearTimeout(this.timer),this.timer=void 0}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var Ct;(function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"})(Ct||(Ct={}));const jk=(e,t,n={})=>{var s;const a=(s=n.skipTypes)!==null&&s!==void 0?s:[];return Object.keys(t).reduce((i,o)=>(i[o]=BU(o,e,t,a),i),{})},BU=(e,t,n,s)=>{const a=t.find(l=>
vendor: 8,571 bytes, line 577
577l.name===e),i=a==null?void 0:a.type,o=n[e];return i&&!s.includes(i)?zT(i,o):Xb(o)},zT=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return HU(t,n)}switch(e){case Ct.bool:return WU(t);case Ct.float4:case Ct.float8:case Ct.int2:case Ct.int4:case Ct.int8:case Ct.numeric:case Ct.oid:return UU(t);case Ct.json:case Ct.jsonb:return qU(t);case Ct.timestamp:return zU(t);case Ct.abstime:case Ct.date:case Ct.daterange:case Ct.int4range:case Ct.int8range:case Ct.money:case Ct.reltime:case Ct.text:case Ct.time:case Ct.timestamptz:case Ct.timetz:case Ct.tsrange:case Ct.tstzrange:return Xb(t);default:return Xb(t)}},Xb=e=>e,WU=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},UU=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},qU=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch(t){return console.log(`JSON parse error: ${t}`),e}return e},HU=(e,t)=>{if(typeof e!="string")return e;const n=e.length-1,s=e[n];if(e[0]==="{"&&s==="}"){let i;const o=e.slice(1,n);try{i=JSON.parse("["+o+"]")}catch{i=o?o.split(","):[]}return i.map(l=>zT(t,l))}return e},zU=e=>typeof e=="string"?e.replace(" ","T"):e,GT=e=>{let t=e;return t=t.replace(/^ws/i,"http"),t=t.replace(/(\/socket\/websocket|\/socket|\/websocket)\/?$/i,""),t.replace(/\/+$/,"")+"/api/broadcast"};class jy{constructor(t,n,s={},a=Qb){this.channel=t,this.event=n,this.payload=s,this.timeout=a,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(t){this.timeout=t,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(t){this.payload=Object.assign(Object.assign({},this.payload),t)}receive(t,n){var s;return this._hasReceived(t)&&n((s=this.receivedResp)===null||s===void 0?void 0:s.response),this.recHooks.push({status:t,callback:n}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const t=n=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=n,this._matchReceive(n)};this.channel._on(this.refEvent,{},t),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(t,n){this.refEvent&&this.channel._trigger(this.refEvent,{status:t,response:n})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:t,response:n}){this.recHooks.filter(s=>s.status===t).forEach(s=>s.callback(n))}_hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}}var Nk;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(Nk||(Nk={}));class bu{constructor(t,n){this.channel=t,this.state={},this.pendingDiffs=[],this.joinRef=null,this.enabled=!1,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const s=(n==null?void 0:n.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(s.state,{},a=>{const{onJoin:i,onLeave:o,onSync:l}=this.caller;this.joinRef=this.channel._joinRef(),this.state=bu.syncState(this.state,a,i,o),this.pendingDiffs.forEach(c=>{this.state=bu.syncDiff(this.state,c,i,o)}),this.pendingDiffs=[],l()}),this.channel._on(s.diff,{},a=>{const{onJoin:i,onLeave:o,onSync:l}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(a):(this.state=bu.syncDiff(this.state,a,i,o),l())}),this.onJoin((a,i,o)=>{this.channel._trigger("presence",{event:"join",key:a,currentPresences:i,newPresences:o})}),this.onLeave((a,i,o)=>{this.channel._trigger("presence",{event:"leave",key:a,currentPresences:i,leftPresences:o})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,n,s,a){const i=this.cloneDeep(t),o=this.transformState(n),l={},c={};return this.map(i,(d,u)=>{o[d]||(c[d]=u)}),this.map(o,(d,u)=>{const h=i[d];if(h){const f=u.map(v=>v.presence_ref),m=h.map(v=>v.presence_ref),y=u.filter(v=>m.indexOf(v.presence_ref)<0),p=h.filter(v=>f.indexOf(v.presence_ref)<0);y.length>0&&(l[d]=y),p.length>0&&(c[d]=p)}else l[d]=u}),this.syncDiff(i,{joins:l,leaves:c},s,a)}static syncDiff(t,n,s,a){const{joins:i,leaves:o}={joins:this.transformState(n.joins),leaves:this.transformState(n.leaves)};return s||(s=()=>{}),a||(a=()=>{}),this.map(i,(l,c)=>{var d;const u=(d=t[l])!==null&&d!==void 0?d:[];if(t[l]=this.cloneDeep(c),u.length>0){const h=t[l].map(m=>m.presence_ref),f=u.filter(m=>h.indexOf(m.presence_ref)<0);t[l].unshift(...f)}s(l,u,c)}),this.map(o,(l,c)=>{let d=t[l];if(!d)return;const u=c.map(h=>h.presence_ref);d=d.filter(h=>u.indexOf(h.presence_ref)<0),t[l]=d,a(l,d,c),d.length===0&&delete t[l]}),t}static map(t,n){return Object.getOwnPropertyNames(t).map(s=>n(s,t[s]))}static transformState(t){return t=this.cloneDeep(t),Object.getOwnPropertyNames(t).reduce((n,s)=>{const a=t[s];return"metas"in a?n[s]=a.metas.map(i=>(i.presence_ref=i.phx_ref,delete i.phx_ref,delete i.phx_ref_prev,i)):n[s]=a,n},{})}static cloneDeep(t){return JSON.parse(JSON.stringify(t))}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var kk;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(kk||(kk={}));var wu;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(wu||(wu={}));var Ca;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(Ca||(Ca={}));class Uw{constructor(t,n={config:{}},s){this.topic=t,this.params=n,this.socket=s,this.bindings={},this.state=cr.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},n.config),this.timeout=this.socket.timeout,this.joinPush=new jy(this,Ns.join,this.params,this.timeout),this.rejoinTimer=new HT(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=cr.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(a=>a.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=cr.closed,this.socket._remove(this)}),this._onError(a=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,a),this.state=cr.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=cr.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",a=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,a),this.state=cr.errored,this.rejoinTimer.scheduleTimeout())}),this._on(Ns.reply,{},(a,i)=>{this._trigger(this._replyEventName(i),a)}),this.presence=new bu(this),this.broadcastEndpointURL=GT(this.socket.endPoint),this.private=this.params.config.private||!1}subscribe(t,n=this.timeout){var s,a,i;if(this.socket.isConnected()||this.socket.connect(),this.state==cr.closed){const{config:{broadcast:o,presence:l,private:c}}=this.params,d=(a=(s=this.bindings.postgres_changes)===null||s===void 0?void 0:s.map(m=>m.filter))!==null&&a!==void 0?a:[],u=!!this.bindings[wu.PRESENCE]&&this.bindings[wu.PRESENCE].length>0||((i=this.params.config.presence)===null||i===void 0?void 0:i.enabled)===!0,h={},f={broadcast:o,presence:Object.assign(Object.assign({},l),{enabled:u}),postgres_changes:d,private:c};this.socket.accessTokenValue&&(h.access_token=this.socket.accessTokenValue),this._onError(m=>t==null?void 0:t(Ca.CHANNEL_ERROR,m)),this._onClose(()=>t==null?void 0:t(Ca.CLOSED)),this.updateJoinPayload(Object.assign({config:f},h)),this.joinedOnce=!0,this._rejoin(n),this.joinPush.receive("ok",async({postgres_changes:m})=>{var y;if(this.socket.setAuth(),m===void 0){t==null||t(Ca.SUBSCRIBED);return}else{const p=this.bindings.postgres_changes,v=(y=p==null?void 0:p.length)!==null&&y!==void 0?y:0,g=[];for(let x=0;x<v;x++){const b=p[x],{filter:{event:w,schema:N,table:S,filter:_}}=b,C=m&&m[x];if(C&&C.event===w&&C.schema===N&&C.table===S&&C.filter===_)g.push(Object.assign(Object.assign({},b),{id:C.id}));
577else{this.unsubscribe(),this.state=cr.errored,t==null||t(Ca.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=g,t&&t(Ca.SUBSCRIBED);return}}).receive("error",m=>{this.state=cr.errored,t==null||t(Ca.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(m).join(", ")||"error")))}).receive("timeout",()=>{t==null||t(Ca.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(t,n={}){return await this.send({type:"presence",event:"track",payload:t},n.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,n,s){return this.state===cr.joined&&t===wu.PRESENCE&&(this.socket.log("channel",`resubscribe to ${this.topic} due to change in presence callbacks on joined channel`),this.unsubscribe().then(()=>this.subscribe())),this._on(t,n,s)}async send(t,n={}){var s,a;if(!this._canPush()&&t.type==="broadcast"){const{event:i,payload:o}=t,c={method:"POST",headers:{Authorization:this.socket.accessTokenValue?`Bearer ${this.socket.accessTokenValue}`:"",apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:i,payload:o,private:this.private}]})};try{const d=await this._fetchWithTimeout(this.broadcastEndpointURL,c,(s=n.timeout)!==null&&s!==void 0?s:this.timeout);return await((a=d.body)===null||a===void 0?void 0:a.cancel()),d.ok?"ok":"error"}catch(d){return d.name==="AbortError"?"timed out":"error"}}else return new Promise(i=>{var o,l,c;const d=this._push(t.type,t,n.timeout||this.timeout);t.type==="broadcast"&&!(!((c=(l=(o=this.params)===null||o===void 0?void 0:o.config)===null||l===void 0?void 0:l.broadcast)===null||c===void 0)&&c.ack)&&i("ok"),d.receive("ok",()=>i("ok")),d.receive("error",()=>i("error")),d.receive("timeout",()=>i("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=cr.leaving;const n=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(Ns.close,"leave",this._joinRef())};this.joinPush.destroy();let s=null;return new Promise(a=>{s=new jy(this,Ns.leave,{},t),s.receive("ok",()=>{n(),a("ok")}).receive("timeout",()=>{n(),a("timed out")}).receive("error",()=>{a("error")}),s.send(),this._canPush()||s.trigger("ok",{})}).finally(()=>{s==null||s.destroy()})}teardown(){this.pushBuffer.forEach(t=>t.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=cr.closed,this.bindings={}}async _fetchWithTimeout(t,n,s){const a=new AbortController,i=setTimeout(()=>a.abort(),s),o=await this.socket.fetch(t,Object.assign(Object.assign({},n),{signal:a.signal}));return clearTimeout(i),o}_push(t,n,s=this.timeout){if(!this.joinedOnce)throw`tried to push '${t}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let a=new jy(this,t,n,s);return this._canPush()?a.send():this._addToPushBuffer(a),a}_addToPushBuffer(t){if(t.startTimeout(),this.pushBuffer.push(t),this.pushBuffer.length>FU){const n=this.pushBuffer.shift();n&&(n.destroy(),this.socket.log("channel",`discarded push due to buffer overflow: ${n.event}`,n.payload))}}_onMessage(t,n,s){return n}_isMember(t){return this.topic===t}_joinRef(){return this.joinPush.ref}_trigger(t,n,s){var a,i;const o=t.toLocaleLowerCase(),{close:l,error:c,leave:d,join:u}=Ns;if(s&&[l,c,d,u].indexOf(o)>=0&&s!==this._joinRef())return;let f=this._onMessage(o,n,s);if(n&&!f)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(o)?(a=this.bindings.postgres_changes)===null||a===void 0||a.filter(m=>{var y,p,v;return((y=m.filter)===null||y===void 0?void 0:y.event)==="*"||((v=(p=m.filter)===null||p===void 0?void 0:p.event)===null||v===void 0?void 0:v.toLocaleLowerCase())===o}).map(m=>m.callback(f,s)):(i=this.bindings[o])===null||i===void 0||i.filter(m=>{var y,p,v,g,x,b;if(["broadcast","presence","postgres_changes"].includes(o))if("id"in m){const w=m.id,N=(y=m.filter)===null||y===void 0?void 0:y.event;return w&&((p=n.ids)===null||p===void 0?void 0:p.includes(w))&&(N==="*"||(N==null?void 0:N.toLocaleLowerCase())===((v=n.data)===null||v===void 0?void 0:v.type.toLocaleLowerCase()))}else{const w=(x=(g=m==null?void 0:m.filter)===null||g===void 0?void 0:g.event)===null||x===void 0?void 0:x.toLocaleLowerCase();return w==="*"||w===((b=n==null?void 0:n.event)===null||b===void 0?void 0:b.toLocaleLowerCase())}else return m.type.toLocaleLowerCase()===o}).map(m=>{if(typeof f=="object"&&"ids"in f){const y=f.data,{schema:p,table:v,commit_timestamp:g,type:x,errors:b}=y;f=Object.assign(Object.assign({},{schema:p,table:v,commit_timestamp:g,eventType:x,new:{},old:{},errors:b}),this._getPayloadRecords(y))}
577m.callback(f,s)})}_isClosed(){return this.state===cr.closed}_isJoined(){return this.state===cr.joined}_isJoining(){return this.state===cr.joining}_isLeaving(){return this.state===cr.leaving}_replyEventName(t){return`chan_reply_${t}`}_on(t,n,s){const a=t.toLocaleLowerCase(),i={type:a,filter:n,callback:s};return this.bindings[a]?this.bindings[a].push(i):this.bindings[a]=[i],this}_off(t,n){const s=t.toLocaleLowerCase();return this.bindings[s]&&(this.bindings[s]=this.bindings[s].filter(a=>{var i;return!(((i=a.type)===null||i===void 0?void 0:i.toLocaleLowerCase())===s&&Uw.isEqual(a.filter,n))})),this}static isEqual(t,n){if(Object.keys(t).length!==Object.keys(n).length)return!1;for(const s in t)if(t[s]!==n[s])return!1;return!0}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(t){this._on(Ns.close,{},t)}_onError(t){this._on(Ns.error,{},n=>t(n))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=cr.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const n={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(n.new=jk(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=jk(t.columns,t.old_record)),n}}const Ny=()=>{},Em={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},GU=[1e3,2e3,5e3,1e4],YU=1e4,VU=` 578 addEventListener("message", (e) => { 579 if (e.data.event === "start") { 580 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 581 } 582 });`;class KU{constructor(t,n){var s;if(this.accessTokenValue=null,this.apiKey=null,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=Qb,this.transport=null,this.heartbeatIntervalMs=Em.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=Ny,this.ref=0,this.reconnectTimer=null,this.logger=Ny,this.conn=null,this.sendBuffer=[],this.serializer=new LU,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._resolveFetch=a=>{let i;return a?i=a:typeof fetch>"u"?i=(...o)=>Ih(async()=>{const{default:l}=await Promise.resolve().then(()=>md);return{default:l}},void 0).then(({default:l})=>l(...o)).catch(l=>{throw new Error(`Failed to load @supabase/node-fetch: ${l.message}. This is required for HTTP requests in Node.js environments without native fetch.`)}):i=fetch,(...o)=>i(...o)},!(!((s=n==null?void 0:n.params)===null||s===void 0)&&s.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=n.params.apikey,this.endPoint=`${t}/${Zb.websocket}`,this.httpEndpoint=GT(t),this._initializeOptions(n),this._setupReconnectionTimer(),this.fetch=this._resolveFetch(n==null?void 0:n.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.conn!==null&&this.isConnected())){if(this._setConnectionState("connecting"),this._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=AU.createWebSocket(this.endpointURL())}catch(t){this._setConnectionState("disconnected");const n=t.message;throw n.includes("Node.js")?new Error(`${n} 583 584To use Realtime in Node.js, you need to provide a WebSocket implementation: 585 586Option 1: Use Node.js 22+ which has native WebSocket support 587Option 2: Install and provide the "ws" package: 588 589 npm install ws 590 591 import ws from "ws" 592 const client = new RealtimeClient(url, { 593 ...options, 594 transport: ws 595 })`):new Error(`WebSocket not available: ${n}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:MU}))}disconnect(t,n){if(!this.isDisconnecting())if(this._setConnectionState("disconnecting",!0),this.conn){const s=setTimeout(()=>{this._setConnectionState("disconnected")},100);this.conn.onclose=()=>{clearTimeout(s),this._setConnectionState("disconnected")}
595,t?this.conn.close(t,n??""):this.conn.close(),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(t){const n=await t.unsubscribe();return this.channels.length===0&&this.disconnect(),n}async removeAllChannels(){const t=await Promise.all(this.channels.map(n=>n.unsubscribe()));return this.channels=[],this.disconnect(),t}log(t,n,s){this.logger(t,n,s)}connectionState(){switch(this.conn&&this.conn.readyState){case vu.connecting:return Po.Connecting;case vu.open:return Po.Open;case vu.closing:return Po.Closing;default:return Po.Closed}}isConnected(){return this.connectionState()===Po.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(t,n={config:{}}){const s=`realtime:${t}`,a=this.getChannels().find(i=>i.topic===s);if(a)return a;{const i=new Uw(`realtime:${t}`,n,this);return this.channels.push(i),i}}push(t){const{topic:n,event:s,payload:a,ref:i}=t,o=()=>{this.encode(t,l=>{var c;(c=this.conn)===null||c===void 0||c.send(l)})};this.log("push",`${n} ${s} (${i})`,a),this.isConnected()?o():this.sendBuffer.push(o)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}async sendHeartbeat(){var t;if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(n){this.log("error","error in heartbeat callback",n)}return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(n){this.log("error","error in heartbeat callback",n)}this._wasManualDisconnect=!1,(t=this.conn)===null||t===void 0||t.close(DU,"heartbeat timeout"),setTimeout(()=>{var n;this.isConnected()||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout()},Em.HEARTBEAT_TIMEOUT_FALLBACK);return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(n){this.log("error","error in heartbeat callback",n)}this._setAuthSafely("heartbeat")}onHeartbeat(t){this.heartbeatCallback=t}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}_makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}_leaveOpenTopic(t){let n=this.channels.find(s=>s.topic===t&&(s._isJoined()||s._isJoining()));n&&(this.log("transport",`leaving duplicate topic "${t}"`),n.unsubscribe())}_remove(t){this.channels=this.channels.filter(n=>n.topic!==t.topic)}_onConnMessage(t){this.decode(t.data,n=>{if(n.topic==="phoenix"&&n.event==="phx_reply")try{this.heartbeatCallback(n.payload.status==="ok"?"ok":"error")}catch(d){this.log("error","error in heartbeat callback",d)}n.ref&&n.ref===this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null);const{topic:s,event:a,payload:i,ref:o}=n,l=o?`(${o})`:"",c=i.status||"";this.log("receive",`${c} ${s} ${a} ${l}`.trim(),i),this.channels.filter(d=>d._isMember(s)).forEach(d=>d._trigger(a,i,o)),this._triggerStateCallbacks("message",n)})}_clearTimer(t){var n;t==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):t==="reconnect"&&((n=this.reconnectTimer)===null||n===void 0||n.reset())}_clearAllTimers(){this._clearTimer("heartbeat"),this._clearTimer("reconnect")}_setupConnectionHandlers(){this.conn&&("binaryType"in this.conn&&(this.conn.binaryType="arraybuffer"),this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=t=>this._onConnError(t),this.conn.onmessage=t=>this._onConnMessage(t),this.conn.onclose=t=>this._onConnClose(t))}_teardownConnection(){this.conn&&(this.conn.onopen=null,this.conn.onerror=null,this.conn.onmessage=null,this.conn.onclose=null,this.conn=null),this._clearAllTimers(),this.channels.forEach(t=>t.teardown())}_onConnOpen(){this._setConnectionState("connected"),this.log("transport",`connected to ${this.endpointURL()}`),this.flushSendBuffer(),this._clearTimer("reconnect"),this.worker?this.workerRef||this._startWorkerHeartbeat():this._startHeartbeat(),this._triggerStateCallbacks("open")}_startHeartbeat(){this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=n=>{this.log("worker","worker error",n.message),this.workerRef.terminate()},this.workerRef.onmessage=n=>{n.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_onConnClose(t){var n;this._setConnectionState("disconnected"),this.log("transport","close",t),this._triggerChanError(),this._clearTimer("heartbeat"),this._wasManualDisconnect||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout(),this._triggerStateCallbacks("close",t)}_onConnError(t){this._setConnectionState("disconnected"),this.log("transport",`${t}`),this._triggerChanError(),this._triggerStateCallbacks("error",t)}
595_triggerChanError(){this.channels.forEach(t=>t._trigger(Ns.error))}_appendParams(t,n){if(Object.keys(n).length===0)return t;const s=t.match(/\?/)?"&":"?",a=new URLSearchParams(n);return`${t}${s}${a}`}_workerObjectUrl(t){let n;if(t)n=t;else{const s=new Blob([VU],{type:"application/javascript"});n=URL.createObjectURL(s)}return n}_setConnectionState(t,n=!1){this._connectionState=t,t==="connecting"?this._wasManualDisconnect=!1:t==="disconnecting"&&(this._wasManualDisconnect=n)}async _performAuth(t=null){let n;t?n=t:this.accessToken?n=await this.accessToken():n=this.accessTokenValue,this.accessTokenValue!=n&&(this.accessTokenValue=n,this.channels.forEach(s=>{const a={access_token:n,version:RU};n&&s.updateJoinPayload(a),s.joinedOnce&&s._isJoined()&&s._push(Ns.access_token,{access_token:n})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){this.setAuth().catch(n=>{this.log("error",`error setting auth in ${t}`,n)})}_triggerStateCallbacks(t,n){try{this.stateChangeCallbacks[t].forEach(s=>{try{s(n)}catch(a){this.log("error",`error in ${t} callback`,a)}})}catch(s){this.log("error",`error triggering ${t} callbacks`,s)}}_setupReconnectionTimer(){this.reconnectTimer=new HT(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},Em.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(t){var n,s,a,i,o,l,c,d,u;if(this.transport=(n=t==null?void 0:t.transport)!==null&&n!==void 0?n:null,this.timeout=(s=t==null?void 0:t.timeout)!==null&&s!==void 0?s:Qb,this.heartbeatIntervalMs=(a=t==null?void 0:t.heartbeatIntervalMs)!==null&&a!==void 0?a:Em.HEARTBEAT_INTERVAL,this.worker=(i=t==null?void 0:t.worker)!==null&&i!==void 0?i:!1,this.accessToken=(o=t==null?void 0:t.accessToken)!==null&&o!==void 0?o:null,this.heartbeatCallback=(l=t==null?void 0:t.heartbeatCallback)!==null&&l!==void 0?l:Ny,t!=null&&t.params&&(this.params=t.params),t!=null&&t.logger&&(this.logger=t.logger),(t!=null&&t.logLevel||t!=null&&t.log_level)&&(this.logLevel=t.logLevel||t.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),this.reconnectAfterMs=(c=t==null?void 0:t.reconnectAfterMs)!==null&&c!==void 0?c:h=>GU[h-1]||YU,this.encode=(d=t==null?void 0:t.encode)!==null&&d!==void 0?d:(h,f)=>f(JSON.stringify(h)),this.decode=(u=t==null?void 0:t.decode)!==null&&u!==void 0?u:this.serializer.decode.bind(this.serializer),this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t==null?void 0:t.workerUrl}}}class qw extends Error{constructor(t){super(t),this.__isStorageError=!0,this.name="StorageError"}}function ur(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}class QU extends qw{constructor(t,n,s){super(t),this.name="StorageApiError",this.status=n,this.statusCode=s}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}}class Jb extends qw{constructor(t,n){super(t),this.name="StorageUnknownError",this.originalError=n}}var ZU=function(e,t,n,s){function a(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function l(u){try{d(s.next(u))}catch(h){o(h)}}function c(u){try{d(s.throw(u))}catch(h){o(h)}}function d(u){u.done?i(u.value):a(u.value).then(l,c)}d((s=s.apply(e,t||[])).next())})};const YT=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>Ih(async()=>{const{default:s}=await Promise.resolve().then(()=>md);return{default:s}},void 0).then(({default:s})=>s(...n)):t=fetch,(...n)=>t(...n)},XU=()=>ZU(void 0,void 0,void 0,function*(){return typeof Response>"u"?(yield Ih(()=>Promise.resolve().then(()=>md),void 0)).Response:Response}),e0=e=>{if(Array.isArray(e))return e.map(n=>e0(n));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([n,s])=>{const a=n.replace(/([-_][a-z])/gi,i=>i.toUpperCase().replace(/[-_]/g,""));t[a]=e0(s)}),t},JU=e=>{if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)};var vl=function(e,t,n,s){function a(i){return i instanceof n?i:new n(function(o){o(i)})}
595return new(n||(n=Promise))(function(i,o){function l(u){try{d(s.next(u))}catch(h){o(h)}}function c(u){try{d(s.throw(u))}catch(h){o(h)}}function d(u){u.done?i(u.value):a(u.value).then(l,c)}d((s=s.apply(e,t||[])).next())})};const ky=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),eq=(e,t,n)=>vl(void 0,void 0,void 0,function*(){const s=yield XU();e instanceof s&&!(n!=null&&n.noResolveJson)?e.json().then(a=>{const i=e.status||500,o=(a==null?void 0:a.statusCode)||i+"";t(new QU(ky(a),i,o))}).catch(a=>{t(new Jb(ky(a),a))}):t(new Jb(ky(e),e))}),tq=(e,t,n,s)=>{const a={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"||!s?a:(JU(s)?(a.headers=Object.assign({"Content-Type":"application/json"},t==null?void 0:t.headers),a.body=JSON.stringify(s)):a.body=s,t!=null&&t.duplex&&(a.duplex=t.duplex),Object.assign(Object.assign({},a),n))};function Mh(e,t,n,s,a,i){return vl(this,void 0,void 0,function*(){return new Promise((o,l)=>{e(n,tq(t,s,a,i)).then(c=>{if(!c.ok)throw c;return s!=null&&s.noResolveJson?c:c.json()}).then(c=>o(c)).catch(c=>eq(c,l,s))})})}function ap(e,t,n,s){return vl(this,void 0,void 0,function*(){return Mh(e,"GET",t,n,s)})}function Zs(e,t,n,s,a){return vl(this,void 0,void 0,function*(){return Mh(e,"POST",t,s,a,n)})}function t0(e,t,n,s,a){return vl(this,void 0,void 0,function*(){return Mh(e,"PUT",t,s,a,n)})}function rq(e,t,n,s){return vl(this,void 0,void 0,function*(){return Mh(e,"HEAD",t,Object.assign(Object.assign({},n),{noResolveJson:!0}),s)})}function VT(e,t,n,s,a){return vl(this,void 0,void 0,function*(){return Mh(e,"DELETE",t,s,a,n)})}var qr=function(e,t,n,s){function a(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function l(u){try{d(s.next(u))}catch(h){o(h)}}function c(u){try{d(s.throw(u))}catch(h){o(h)}}function d(u){u.done?i(u.value):a(u.value).then(l,c)}d((s=s.apply(e,t||[])).next())})};const nq={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},_k={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class sq{constructor(t,n={},s,a){this.shouldThrowOnError=!1,this.url=t,this.headers=n,this.bucketId=s,this.fetch=YT(a)}throwOnError(){return this.shouldThrowOnError=!0,this}uploadOrUpdate(t,n,s,a){return qr(this,void 0,void 0,function*(){try{let i;const o=Object.assign(Object.assign({},_k),a);let l=Object.assign(Object.assign({},this.headers),t==="POST"&&{"x-upsert":String(o.upsert)});const c=o.metadata;typeof Blob<"u"&&s instanceof Blob?(i=new FormData,i.append("cacheControl",o.cacheControl),c&&i.append("metadata",this.encodeMetadata(c)),i.append("",s)):typeof FormData<"u"&&s instanceof FormData?(i=s,i.append("cacheControl",o.cacheControl),c&&i.append("metadata",this.encodeMetadata(c))):(i=s,l["cache-control"]=`max-age=${o.cacheControl}`,l["content-type"]=o.contentType,c&&(l["x-metadata"]=this.toBase64(this.encodeMetadata(c)))),a!=null&&a.headers&&(l=Object.assign(Object.assign({},l),a.headers));const d=this._removeEmptyFolders(n),u=this._getFinalPath(d),h=yield(t=="PUT"?t0:Zs)(this.fetch,`${this.url}/object/${u}`,i,Object.assign({headers:l},o!=null&&o.duplex?{duplex:o.duplex}:{}));return{data:{path:d,id:h.Id,fullPath:h.Key},error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(ur(i))return{data:null,error:i};throw i}})}upload(t,n,s){return qr(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",t,n,s)})}uploadToSignedUrl(t,n,s,a){return qr(this,void 0,void 0,function*(){const i=this._removeEmptyFolders(t),o=this._getFinalPath(i),l=new URL(this.url+`/object/upload/sign/${o}`);l.searchParams.set("token",n);try{let c;const d=Object.assign({upsert:_k.upsert},a),u=Object.assign(Object.assign({},this.headers),{"x-upsert":String(d.upsert)});typeof Blob<"u"&&s instanceof Blob?(c=new FormData,c.append("cacheControl",d.cacheControl),c.append("",s)):typeof FormData<"u"&&s instanceof FormData?(c=s,c.append("cacheControl",d.cacheControl)):(c=s,u["cache-control"]=`max-age=${d.cacheControl}`,u["content-type"]=d.contentType);const h=yield t0(this.fetch,l.toString(),c,{headers:u});return{data:{path:i,fullPath:h.Key},error:null}}catch(c){if(this.shouldThrowOnError)throw c;if(ur(c))return{data:null,error:c};throw c}})}createSignedUploadUrl(t,n){return qr(this,void 0,void 0,function*(){try{let s=this._getFinalPath(t);const a=Object.assign({},this.headers);n!=null&&n.upsert&&(a["x-upsert"]="true");const i=yield Zs(this.fetch,`${this.url}/object/upload/sign/${s}`,{},{headers:a}),o=new URL(this.url+i.url),l=o.searchParams.get("token");if(!l)throw new qw("No token returned by API");return{data:{signedUrl:o.toString(),path:t,token:l},error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(ur(s))return{data:null,error:s};throw s}})}update(t,n,s){return qr(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",t,n,s)})}move(t,n,s){return qr(this,void 0,void 0,function*(){try{return{data:yield Zs(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:t,destinationKey:n,destinationBucket:s==null?void 0:s.destinationBucket},{headers:this.headers}),error:null}}catch(a){if(this.shouldThrowOnError)throw a;if(ur(a))return{data:null,error:a};throw a}})}copy(t,n,s){return qr(this,void 0,void 0,function*(){try{return{data:{path:(yield Zs(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:t,destinationKey:n,destinationBucket:s==null?void 0:s.destinationBucket},{headers:this.headers})).Key},error:null}}catch(a){if(this.shouldThrowOnError)throw a;if(ur(a))return{data:null,error:a};throw a}})}createSignedUrl(t,n,s){return qr(this,void 0,void 0,function*(){try{let a=this._getFinalPath(t),i=yield Zs(this.fetch,`${this.url}/object/sign/${a}
595`,Object.assign({expiresIn:n},s!=null&&s.transform?{transform:s.transform}:{}),{headers:this.headers});const o=s!=null&&s.download?`&download=${s.download===!0?"":s.download}`:"";return i={signedUrl:encodeURI(`${this.url}${i.signedURL}${o}`)},{data:i,error:null}}catch(a){if(this.shouldThrowOnError)throw a;if(ur(a))return{data:null,error:a};throw a}})}createSignedUrls(t,n,s){return qr(this,void 0,void 0,function*(){try{const a=yield Zs(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:n,paths:t},{headers:this.headers}),i=s!=null&&s.download?`&download=${s.download===!0?"":s.download}`:"";return{data:a.map(o=>Object.assign(Object.assign({},o),{signedUrl:o.signedURL?encodeURI(`${this.url}${o.signedURL}${i}`):null})),error:null}}catch(a){if(this.shouldThrowOnError)throw a;if(ur(a))return{data:null,error:a};throw a}})}download(t,n){return qr(this,void 0,void 0,function*(){const a=typeof(n==null?void 0:n.transform)<"u"?"render/image/authenticated":"object",i=this.transformOptsToQueryString((n==null?void 0:n.transform)||{}),o=i?`?${i}`:"";try{const l=this._getFinalPath(t);return{data:yield(yield ap(this.fetch,`${this.url}/${a}/${l}${o}`,{headers:this.headers,noResolveJson:!0})).blob(),error:null}}catch(l){if(this.shouldThrowOnError)throw l;if(ur(l))return{data:null,error:l};throw l}})}info(t){return qr(this,void 0,void 0,function*(){const n=this._getFinalPath(t);try{const s=yield ap(this.fetch,`${this.url}/object/info/${n}`,{headers:this.headers});return{data:e0(s),error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(ur(s))return{data:null,error:s};throw s}})}exists(t){return qr(this,void 0,void 0,function*(){const n=this._getFinalPath(t);try{return yield rq(this.fetch,`${this.url}/object/${n}`,{headers:this.headers}),{data:!0,error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(ur(s)&&s instanceof Jb){const a=s.originalError;if([400,404].includes(a==null?void 0:a.status))return{data:!1,error:s}}throw s}})}getPublicUrl(t,n){const s=this._getFinalPath(t),a=[],i=n!=null&&n.download?`download=${n.download===!0?"":n.download}`:"";i!==""&&a.push(i);const l=typeof(n==null?void 0:n.transform)<"u"?"render/image":"object",c=this.transformOptsToQueryString((n==null?void 0:n.transform)||{});c!==""&&a.push(c);let d=a.join("&");return d!==""&&(d=`?${d}`),{data:{publicUrl:encodeURI(`${this.url}/${l}/public/${s}${d}`)}}}remove(t){return qr(this,void 0,void 0,function*(){try{return{data:yield VT(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:t},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(ur(n))return{data:null,error:n};throw n}})}list(t,n,s){return qr(this,void 0,void 0,function*(){try{const a=Object.assign(Object.assign(Object.assign({},nq),n),{prefix:t||""});return{data:yield Zs(this.fetch,`${this.url}/object/list/${this.bucketId}`,a,{headers:this.headers},s),error:null}}catch(a){if(this.shouldThrowOnError)throw a;if(ur(a))return{data:null,error:a};throw a}})}listV2(t,n){return qr(this,void 0,void 0,function*(){try{const s=Object.assign({},t);return{data:yield Zs(this.fetch,`${this.url}/object/list-v2/${this.bucketId}`,s,{headers:this.headers},n),error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(ur(s))return{data:null,error:s};throw s}})}encodeMetadata(t){return JSON.stringify(t)}toBase64(t){return typeof Buffer<"u"?Buffer.from(t).toString("base64"):btoa(t)}_getFinalPath(t){return`${this.bucketId}/${t.replace(/^\/+/,"")}`}_removeEmptyFolders(t){return t.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(t){const n=[];return t.width&&n.push(`width=${t.width}`),t.height&&n.push(`height=${t.height}`),t.resize&&n.push(`resize=${t.resize}`),t.format&&n.push(`format=${t.format}`),t.quality&&n.push(`quality=${t.quality}`),n.join("&")}}const aq="2.12.1",iq={"X-Client-Info":`storage-js/${aq}`};var El=function(e,t,n,s){function a(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function l(u){try{d(s.next(u))}catch(h){o(h)}}function c(u){try{d(s.throw(u))}catch(h){o(h)}}function d(u){u.done?i(u.value):a(u.value).then(l,c)}d((s=s.apply(e,t||[])).next())})};class oq{constructor(t,n={},s,a){this.shouldThrowOnError=!1;const i=new URL(t);a!=null&&a.useNewHostname&&/supabase\.(co|in|red)$/.test(i.hostname)&&!i.hostname.includes("storage.supabase.")&&(i.hostname=i.hostname.replace("supabase.","storage.supabase.")),this.url=i.href,this.headers=Object.assign(Object.assign({},iq),n),this.fetch=YT(s)}throwOnError(){return this.shouldThrowOnError=!0,this}listBuckets(){return El(this,void 0,void 0,function*(){try{return{data:yield ap(this.fetch,`${this.url}/bucket`,{headers:this.headers}),error:null}}catch(t){if(this.shouldThrowOnError)throw t;if(ur(t))return{data:null,error:t};throw t}})}getBucket(t){return El(this,void 0,void 0,function*(){try{return{data:yield ap(this.fetch,`${this.url}/bucket/${t}`,{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(ur(n))return{data:null,error:n};throw n}})}createBucket(t,n={public:!1}){return El(this,void 0,void 0,function*(){try{return{data:yield Zs(this.fetch,`${this.url}/bucket`,{id:t,name:t,type:n.type,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(ur(s))return{data:null,error:s};throw s}})}updateBucket(t,n){return El(this,void 0,void 0,function*(){try{return{data:yield t0(this.fetch,`${this.url}/bucket/${t}`,{id:t,name:t,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(ur(s))return{data:null,error:s};throw s}})}emptyBucket(t){return El(this,void 0,void 0,function*(){try{return{data:yield Zs(this.fetch,`${this.url}/bucket/${t}/empty`,{},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(ur(n))return{data:null,error:n};throw n}})}deleteBucket(t){return El(this,void 0,void 0,function*(){try{return{data:yield VT(this.fetch,`${this.url}/bucket/${t}`,{},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(ur(n))return{data:null,error:n};throw n}})}}class lq extends oq{constructor(t,n={},s,a){super(t,n,s,a)}from(t){return new sq(this.url,this.headers,t,this.fetch)}}const cq="2.57.4";let au="";typeof Deno<"u"?au="deno":typeof document<"u"?au="web":typeof navigator<"u"&&navigator.product==="ReactNative"?au="react-native":au="node";const dq={"X-Client-Info":`supabase-js-${au}/${cq}`},uq={headers:dq},hq={schema:"public"},mq={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},fq={};var pq=function(e,t,n,s){function a(i){return i instanceof n?i:new n(function(o){o(i)})}
595return new(n||(n=Promise))(function(i,o){function l(u){try{d(s.next(u))}catch(h){o(h)}}function c(u){try{d(s.throw(u))}catch(h){o(h)}}function d(u){u.done?i(u.value):a(u.value).then(l,c)}d((s=s.apply(e,t||[])).next())})};const gq=e=>{let t;return e?t=e:typeof fetch>"u"?t=AT:t=fetch,(...n)=>t(...n)},xq=()=>typeof Headers>"u"?IT:Headers,yq=(e,t,n)=>{const s=gq(n),a=xq();return(i,o)=>pq(void 0,void 0,void 0,function*(){var l;const c=(l=yield t())!==null&&l!==void 0?l:e;let d=new a(o==null?void 0:o.headers);return d.has("apikey")||d.set("apikey",e),d.has("Authorization")||d.set("Authorization",`Bearer ${c}`),s(i,Object.assign(Object.assign({},o),{headers:d}))})};var vq=function(e,t,n,s){function a(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function l(u){try{d(s.next(u))}catch(h){o(h)}}function c(u){try{d(s.throw(u))}catch(h){o(h)}}function d(u){u.done?i(u.value):a(u.value).then(l,c)}d((s=s.apply(e,t||[])).next())})};function bq(e){return e.endsWith("/")?e:e+"/"}function wq(e,t){var n,s;const{db:a,auth:i,realtime:o,global:l}=e,{db:c,auth:d,realtime:u,global:h}=t,f={db:Object.assign(Object.assign({},c),a),auth:Object.assign(Object.assign({},d),i),realtime:Object.assign(Object.assign({},u),o),storage:{},global:Object.assign(Object.assign(Object.assign({},h),l),{headers:Object.assign(Object.assign({},(n=h==null?void 0:h.headers)!==null&&n!==void 0?n:{}),(s=l==null?void 0:l.headers)!==null&&s!==void 0?s:{})}),accessToken:()=>vq(this,void 0,void 0,function*(){return""})};return e.accessToken?f.accessToken=e.accessToken:delete f.accessToken,f}function jq(e){const t=e==null?void 0:e.trim();if(!t)throw new Error("supabaseUrl is required.");if(!t.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(bq(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}const KT="2.71.1",Wl=30*1e3,r0=3,_y=r0*Wl,Nq="http://localhost:9999",kq="supabase.auth.token",_q={"X-Client-Info":`gotrue-js/${KT}`},n0="X-Supabase-Api-Version",QT={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},Sq=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,Cq=10*60*1e3;class Hw extends Error{constructor(t,n,s){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=s}}function Ze(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class Eq extends Hw{constructor(t,n,s){super(t,n,s),this.name="AuthApiError",this.status=n,this.code=s}}function Tq(e){return Ze(e)&&e.name==="AuthApiError"}class ZT extends Hw{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class go extends Hw{constructor(t,n,s,a){super(t,s,a),this.name=n,this.status=s}}class di extends go{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function $q(e){return Ze(e)&&e.name==="AuthSessionMissingError"}class Tm extends go{constructor(){super("Auth session or user missing","AuthInvalidToken
595ResponseError",500,void 0)}}class $m extends go{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class Om extends go{constructor(t,n=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function Oq(e){return Ze(e)&&e.name==="AuthImplicitGrantRedirectError"}class Sk extends go{constructor(t,n=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class s0 extends go{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function Sy(e){return Ze(e)&&e.name==="AuthRetryableFetchError"}class Ck extends go{constructor(t,n,s){super(t,"AuthWeakPasswordError",n,"weak_password"),this.reasons=s}}class a0 extends go{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const ip="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),Ek=` 596\r=`.split(""),Pq=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<Ek.length;t+=1)e[Ek[t].charCodeAt(0)]=-2;for(let t=0;t<ip.length;t+=1)e[ip[t].charCodeAt(0)]=t;return e})();function Tk(e,t,n){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const s=t.queue>>t.queuedBits-6&63;n(ip[s]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const s=t.queue>>t.queuedBits-6&63;n(ip[s]),t.queuedBits-=6}}function XT(e,t,n){const s=Pq[e];if(s>-1)for(t.queue=t.queue<<6|s,t.queuedBits+=6;t.queuedBits>=8;)n(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(s===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function $k(e){const t=[],n=o=>{t.push(String.fromCodePoint(o))},s={utf8seq:0,codepoint:0},a={queue:0,queuedBits:0},i=o=>{Rq(o,s,n)};for(let o=0;o<e.length;o+=1)XT(e.charCodeAt(o),a,i);return t.join("")}function Aq(e,t){if(e<=127){t(e);return}else if(e<=2047){t(192|e>>6),t(128|e&63);return}else if(e<=65535){t(224|e>>12),t(128|e>>6&63),t(128|e&63);return}else if(e<=1114111){t(240|e>>18),t(128|e>>12&63),t(128|e>>6&63),t(128|e&63);return}throw new Error(`Unrecognized Unicode codepoint: ${e.toString(16)}`)}function Iq(e,t){for(let n=0;n<e.length;n+=1){let s=e.charCodeAt(n);if(s>55295&&s<=56319){const a=(s-55296)*1024&65535;s=(e.charCodeAt(n+1)-56320&65535|a)+65536,n+=1}Aq(s,t)}}function Rq(e,t,n){if(t.utf8seq===0){if(e<=127){n(e);return}for(let s=1;s<6;s+=1)if(!(e>>7-s&1)){t.utf8seq=s;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&n(t.codepoint)}}function Mq(e){const t=[],n={queue:0,queuedBits:0},s=a=>{t.push(a)};for(let a=0;a<e.length;a+=1)XT(e.charCodeAt(a),n,s);return new Uint8Array(t)}function Dq(e){const t=[];return Iq(e,n=>t.push(n)),new Uint8Array(t)}function Fq(e){const t=[],n={queue:0,queuedBits:0},s=a=>{t.push(a)};return e.forEach(a=>Tk(a,n,s)),Tk(null,n,s),t.join("")}function Lq(e){return Math.round(Date.now()/1e3)+e}function Bq(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e=="x"?t:t&3|8).toString(16)})}const ds=()=>typeof window<"u"&&typeof document<"u",_o={tested:!1,writable:!1},JT=()=>{if(!ds())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(_o.tested)return _o.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),_o.tested=!0,_o.writable=!0}catch{_o.tested=!0,_o.writable=!1}return _o.writable};function Wq(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEach((a,i)=>{t[i]=a})}catch{}return n.searchParams.forEach((s,a)=>{t[a]=s}),t}const e$=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>Ih(async()=>{const{default:s}=await Promise.resolve().then(()=>md);return{default:s}},void 0).then(({default:s})=>s(...n)):t=fetch,(...n)=>t(...n)},Uq=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",Ul=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},So=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return n}},ii=async(e,t)=>{await e.removeItem(t)};class Tg{constructor(){this.promise=new Tg.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}Tg.promiseConstructor=Promise;function Cy(e){const t=e.split(".");if(t.length!==3)throw new a0("Invalid JWT structure");for(let s=0;s<t.length;s++)if(!Sq.test(t[s]))throw new a0("JWT not in base64url format");return{header:JSON.parse($k(t[0])),payload:JSON.parse($k(t[1])),signature:Mq(t[2]),raw:{header:t[0],payload:t[1]}}}async function qq(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function Hq(e,t){return new Promise((s,a)=>{(async()=>{for(let i=0;i<1/0;i++)try{const o=await e(i);if(!t(i,null,o)){s(o);return}}catch(o){if(!t(i,o)){a(o);return}}})()})}function zq(e){return("0"+e.toString(16)).substr(-2)}function Gq(){const t=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",s=n.length;let a="";for(let i=0;i<56;i++)a+=n.charAt(Math.floor(Math.random()*s));return a}return crypto.getRandomValues(t),Array.from(t,zq).join("")}async function Yq(e){const n=new TextEncoder().encode(e),s=await crypto.subtle.digest("SHA-256",
596n),a=new Uint8Array(s);return Array.from(a).map(i=>String.fromCharCode(i)).join("")}async function Vq(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const n=await Yq(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function Tl(e,t,n=!1){const s=Gq();let a=s;n&&(a+="/PASSWORD_RECOVERY"),await Ul(e,`${t}-code-verifier`,a);const i=await Vq(s);return[i,s===i?"plain":"s256"]}const Kq=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function Qq(e){const t=e.headers.get(n0);if(!t||!t.match(Kq))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function Zq(e){if(!e)throw new Error("Missing exp claim");const t=Math.floor(Date.now()/1e3);if(e<=t)throw new Error("JWT has expired")}function Xq(e){switch(e){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}const Jq=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function $l(e){if(!Jq.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function Ey(){const e={};return new Proxy(e,{get:(t,n)=>{if(n==="__isUserNotAvailableProxy")return!0;if(typeof n=="symbol"){const s=n.toString();if(s==="Symbol(Symbol.toPrimitive)"||s==="Symbol(Symbol.toStringTag)"||s==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${n}" property of the session object is not supported. Please use getUser() instead.`)},set:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function Ok(e){return JSON.parse(JSON.stringify(e))}var eH=function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,s=Object.getOwnPropertySymbols(e);a<s.length;a++)t.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(e,s[a])&&(n[s[a]]=e[s[a]]);return n};const To=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),tH=[502,503,504];async function Pk(e){var t;if(!Uq(e))throw new s0(To(e),0);if(tH.includes(e.status))throw new s0(To(e),e.status);let n;try{n=await e.json()}catch(i){throw new ZT(To(i),i)}let s;const a=Qq(e);if(a&&a.getTime()>=QT["2024-01-01"].timestamp&&typeof n=="object"&&n&&typeof n.code=="string"?s=n.code:typeof n=="object"&&n&&typeof n.error_code=="string"&&(s=n.error_code),s){if(s==="weak_password")throw new Ck(To(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(s==="session_not_found")throw new di}else if(typeof n=="object"&&n&&typeof n.weak_password=="object"&&n.weak_password&&Array.isArray(n.weak_password.reasons)&&n.weak_password.reasons.length&&n.weak_password.reasons.reduce((i,o)=>i&&typeof o=="string",!0))throw new Ck(To(n),e.status,n.weak_password.reasons);throw new Eq(To(n),e.status||500,s)}const rH=(e,t,n,s)=>{const a={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?a:(a.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),a.body=JSON.stringify(s),Object.assign(Object.assign({},a),n))};async function nt(e,t,n,s){var a;const i=Object.assign({},s==null?void 0:s.headers);i[n0]||(i[n0]=QT["2024-01-01"].name),s!=null&&s.jwt&&(i.Authorization=`Bearer ${s.jwt}`);const o=(a=s==null?void 0:s.query)!==null&&a!==void 0?a:{};s!=null&&s.redirectTo&&(o.redirect_to=s.redirectTo);const l=Object.keys(o).length?"?"+new URLSearchParams(o).toString():"",c=await nH(e,t,n+l,{headers:i,noResolveJson:s==null?void 0:s.noResolveJson},{},s==null?void 0:s.body);return s!=null&&s.xform?s==null?void 0:s.xform(c):{data:Object.assign({},c),error:null}}async function nH(e,t,n,s,a,i){const o=rH(t,s,a,i);let l;try{l=await e(n,Object.assign({},o))}catch(c){throw console.error(c),new s0(To(c),0)}if(l.ok||await Pk(l),s!=null&&s.noResolveJson)return l;try{return await l.json()}catch(c){await Pk(c)}}function _a(e){var t;let n=null;oH(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=Lq(e.expires_in)));const s=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:n,user:s},error:null}}function Ak(e){const t=_a(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((n,s)=>n&&typeof s=="string",!0)&&(t.data.weak_password=e.weak_password),t}function bi(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function sH(e){return{data:e,error:null}}function aH(e){const{action_link:t,email_otp:n,hashed_token:s,redirect_to:a,verification_type:i}=e,o=eH(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),l={action_link:t,email_otp:n,hashed_token:s,redirect_to:a,verification_type:i},c=Object.assign({},o);return{data:{properties:l,user:c},error:null}}function iH(e){return e}function oH(e){return e.access_token&&e.refresh_token&&e.expires_in}const Ty=["global","local","others"];var lH=function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,s=Object.getOwnPropertySymbols(e);a<s.length;a++)t.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(e,s[a])&&(n[s[a]]=e[s[a]]);return n};class cH{constructor({url:t="",headers:n={},fetch:s}){this.url=t,this.headers=n,this.fetch=e$(s),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)}}
596async signOut(t,n=Ty[0]){if(Ty.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${Ty.join(", ")}`);try{return await nt(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(s){if(Ze(s))return{data:null,error:s};throw s}}async inviteUserByEmail(t,n={}){try{return await nt(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:bi})}catch(s){if(Ze(s))return{data:{user:null},error:s};throw s}}async generateLink(t){try{const{options:n}=t,s=lH(t,["options"]),a=Object.assign(Object.assign({},s),n);return"newEmail"in s&&(a.new_email=s==null?void 0:s.newEmail,delete a.newEmail),await nt(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:a,headers:this.headers,xform:aH,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if(Ze(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(t){try{return await nt(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:bi})}catch(n){if(Ze(n))return{data:{user:null},error:n};throw n}}async listUsers(t){var n,s,a,i,o,l,c;try{const d={nextPage:null,lastPage:0,total:0},u=await nt(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(s=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&s!==void 0?s:"",per_page:(i=(a=t==null?void 0:t.perPage)===null||a===void 0?void 0:a.toString())!==null&&i!==void 0?i:""},xform:iH});if(u.error)throw u.error;const h=await u.json(),f=(o=u.headers.get("x-total-count"))!==null&&o!==void 0?o:0,m=(c=(l=u.headers.get("link"))===null||l===void 0?void 0:l.split(","))!==null&&c!==void 0?c:[];return m.length>0&&(m.forEach(y=>{const p=parseInt(y.split(";")[0].split("=")[1].substring(0,1)),v=JSON.parse(y.split(";")[1].split("=")[1]);d[`${v}Page`]=p}),d.total=parseInt(f)),{data:Object.assign(Object.assign({},h),d),error:null}}catch(d){if(Ze(d))return{data:{users:[]},error:d};throw d}}async getUserById(t){$l(t);try{return await nt(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:bi})}catch(n){if(Ze(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){$l(t);try{return await nt(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:bi})}catch(s){if(Ze(s))return{data:{user:null},error:s};throw s}}async deleteUser(t,n=!1){$l(t);try{return await nt(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:bi})}catch(s){if(Ze(s))return{data:{user:null},error:s};throw s}}async _listFactors(t){$l(t.userId);try{const{data:n,error:s}=await nt(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:a=>({data:{factors:a},error:null})});return{data:n,error:s}}catch(n){if(Ze(n))return{data:null,error:n};throw n}}async _deleteFactor(t){$l(t.userId),$l(t.id);try{return{data:await nt(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(n){if(Ze(n))return{data:null,error:n};throw n}}}function Ik(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}function dH(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}const Ol={debug:!!(globalThis&&JT()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class t$ extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class uH extends t${}async function hH(e,t,n){Ol.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const s=new globalThis.AbortController;return t>0&&setTimeout(()=>{s.abort(),Ol.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:s.signal},async a=>{if(a){Ol.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,a.name);try{return await n()}finally{Ol.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,a.name)}}else{if(t===0)throw Ol.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new uH(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(Ol.debug)try{const i=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(i,null," "))}catch(i){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",i)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await n()}}))}dH();const mH={url:Nq,storageKey:kq,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:_q,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1};async function Rk(e,t,n){return await n()}const Pl={};class Zu{constructor(t){var n,s;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log,this.instanceID=Zu.nextInstanceID,Zu.nextInstanceID+=1,this.instanceID>0&&ds()&&console.warn("Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.");const a=Object.assign(Object.assign({},mH),t);
596if(this.logDebugMessages=!!a.debug,typeof a.debug=="function"&&(this.logger=a.debug),this.persistSession=a.persistSession,this.storageKey=a.storageKey,this.autoRefreshToken=a.autoRefreshToken,this.admin=new cH({url:a.url,headers:a.headers,fetch:a.fetch}),this.url=a.url,this.headers=a.headers,this.fetch=e$(a.fetch),this.lock=a.lock||Rk,this.detectSessionInUrl=a.detectSessionInUrl,this.flowType=a.flowType,this.hasCustomAuthorizationHeader=a.hasCustomAuthorizationHeader,a.lock?this.lock=a.lock:ds()&&(!((n=globalThis==null?void 0:globalThis.navigator)===null||n===void 0)&&n.locks)?this.lock=hH:this.lock=Rk,this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this)},this.persistSession?(a.storage?this.storage=a.storage:JT()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=Ik(this.memoryStorage)),a.userStorage&&(this.userStorage=a.userStorage)):(this.memoryStorage={},this.storage=Ik(this.memoryStorage)),ds()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(i){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",i)}(s=this.broadcastChannel)===null||s===void 0||s.addEventListener("message",async i=>{this._debug("received broadcast notification from other tab or client",i),await this._notifyAllSubscribers(i.data.event,i.data.session,!1)})}this.initialize()}get jwks(){var t,n;return(n=(t=Pl[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(t){Pl[this.storageKey]=Object.assign(Object.assign({},Pl[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,n;return(n=(t=Pl[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){Pl[this.storageKey]=Object.assign(Object.assign({},Pl[this.storageKey]),{cachedAt:t})}_debug(...t){return this.logDebugMessages&&this.logger(`GoTrueClient@${this.instanceID} (${KT}) ${new Date().toISOString()}`,...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{const n=Wq(window.location.href);let s="none";if(this._isImplicitGrantCallback(n)?s="implicit":await this._isPKCECallback(n)&&(s="pkce"),ds()&&this.detectSessionInUrl&&s!=="none"){const{data:a,error:i}=await this._getSessionFromURL(n,s);if(i){if(this._debug("#_initialize()","error detecting session from URL",i),Oq(i)){const c=(t=i.details)===null||t===void 0?void 0:t.code;if(c==="identity_already_exists"||c==="identity_not_found"||c==="single_identity_not_deletable")return{error:i}}return await this._removeSession(),{error:i}}const{session:o,redirectType:l}=a;return this._debug("#_initialize()","detected session in URL",o,"redirect type",l),await this._saveSession(o),setTimeout(async()=>{l==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",o):await this._notifyAllSubscribers("SIGNED_IN",o)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(n){return Ze(n)?{error:n}:{error:new ZT("Unexpected error during initialization",n)}}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var n,s,a;try{const i=await nt(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(s=(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.data)!==null&&s!==void 0?s:{},gotrue_meta_security:{captcha_token:(a=t==null?void 0:t.options)===null||a===void 0?void 0:a.captchaToken}},xform:_a}),{data:o,error:l}=i;if(l||!o)return{data:{user:null,session:null},error:l};const c=o.session,d=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",c)),{data:{user:d,session:c},error:null}}catch(i){if(Ze(i))return{data:{user:null,session:null},error:i};throw i}}async signUp(t){var n,s,a;try{let i;if("email"in t){const{email:u,password:h,options:f}=t;let m=null,y=null;this.flowType==="pkce"&&([m,y]=await Tl(this.storage,this.storageKey)),i=await nt(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:f==null?void 0:f.emailRedirectTo,body:{email:u,password:h,data:(n=f==null?void 0:f.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken},code_challenge:m,code_challenge_method:y},xform:_a})}else if("phone"in t){const{phone:u,password:h,options:f}=t;i=await nt(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:u,password:h,data:(s=f==null?void 0:f.data)!==null&&s!==void 0?s:{},channel:(a=f==null?void 0:f.channel)!==null&&a!==void 0?a:"sms",gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken}},xform:_a})}else throw new $m("You must provide either an email or phone number and a password");const{data:o,error:l}=i;if(l||!o)return{data:{user:null,session:null},error:l};const c=o.session,d=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",c)),{data:{user:d,session:c},error:null}}catch(i){if(Ze(i))return{data:{user:null,session:null},error:i};throw i}}async signInWithPassword(t){try{let n;if("email"in t){const{email:i,password:o,options:l}=t;n=await nt(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:i,password:o,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken}},xform:Ak})}else if("phone"in t){const{phone:i,password:o,options:l}=t;n=await nt(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:i,password:o,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken}},xform:Ak})}else throw new $m("You must provide either an email or phone number and a password");const{data:s,error:a}=n;return a?{data:{user:null,session:null},error:a}:!s||!s.session||!s.user?{data:{user:null,session:null},error:new Tm}:(s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",s.session)),{data:Object.assign({user:s.user,session:s.session},s.weak_password?{weakPassword:s.weak_password}:null),error:a})}catch(n){if(Ze(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithOAuth(t){var n,s,a,i;return await this._handleProviderSignIn(t.provider,{redirectTo:(n=t.options)===null||n===void 0?void 0:n.redirectTo,scopes:(s=t.options)===null||s===void 0?void 0:s.scopes,queryParams:(a=t.options)===null||a===void 0?void 0:a.queryParams,skipBrowserRedirect:(i=t.options)===null||i===void 0?void 0:i.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(t))}async signInWithWeb3(t){const{chain:n}=t;if(n==="solana")return await this.signInWithSolana(t);throw new Error(`@supabase/auth-js: Unsupported chain "${n}"`)}async signInWithSolana(t){var n,s,a,i,o,l,c,d,u,h,f,m;let y,p;if("message"in t)y=t.message,p=t.signature;else{const{chain:v,wallet:g,statement:x,options:b}=t;let w;if(ds())if(typeof g=="object")w=g;else{const S=window;if("solana"in S&&typeof S.solana=="object"&&("signIn"in S.solana&&typeof S.solana.signIn=="function"||"signMessage"in S.solana&&typeof S.solana.signMessage=="function"))w=S.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof g!="object"||!(b!=null&&b.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");w=g}const N=new URL((n=b==null?void 0:b.url)!==null&&n!==void 0?n:window.location.href);if("signIn"in w&&w.signIn){const S=await w.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},b==null?void 0:b.signInWithSolana),{version:"1",domain:N.host,uri:N.href}),x?{statement:x}:null));let _;if(Array.isArray(S)&&S[0]&&typeof S[0]=="object")_=S[0];else if(S&&typeof S=="object"&&"signedMessage"in S&&"signature"in S)_=S;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in _&&"signature"in _&&(typeof _.signedMessage=="string"||_.signedMessage instanceof Uint8Array)&&_.signature instanceof Uint8Array)y=typeof _.signedMessage=="string"?_.signedMessage:new TextDecoder().decode(_.signedMessage),p=_.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in w)||typeof w.signMessage!="function"||!("publicKey"in w)||typeof w!="object"||!w.publicKey||!("toBase58"in w.publicKey)||typeof w.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");y=[`${N.host} wants you to sign in with your Solana account:`,w.publicKey.toBase58(),...x?["",x,""]:[""],"Version: 1",`URI: ${N.href}`,`Issued At: ${(a=(s=b==null?void 0:b.signInWithSolana)===null||s===void 0?void 0:s.issuedAt)!==null&&a!==void 0?a:new Date().toISOString()}`,...!((i=b==null?void 0:b.signInWithSolana)===null||i===void 0)&&i.notBefore?[`Not Before: ${b.signInWithSolana.notBefore}`]:[],...!((o=b==null?void 0:b.signInWithSolana)===null||o===void 0)&&o.expirationTime?[`Expiration Time: ${b.signInWithSolana.expirationTime}`]:[],...!((l=b==null?void 0:b.signInWithSolana)===null||l===void 0)&&l.chainId?[`Chain ID: ${b.signInWithSolana.chainId}`]:[],...!((c=b==null?void 0:b.signInWithSolana)===null||c===void 0)&&c.nonce?[`Nonce: ${b.signInWithSolana.nonce}`]:[],...!((d=b==null?void 0:b.signInWithSolana)===null||d===void 0)&&d.requestId?[`Request ID: ${b.signInWithSolana.requestId}`]:[],...!((h=(u=b==null?void 0:b.signInWithSolana)===null||u===void 0?void 0:u.resources)===null||h===void 0)&&h.length?["Resources",...b.signInWithSolana.resources.map(_=>`- ${_}`)]:[]].join(` 597`);const S=await w.signMessage(new TextEncoder().encode(y),"utf8");if(!S||!(S instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");p=S}}try{const{data:v,error:g}=await nt(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:y,signature:Fq(p)},!((f=t.options)===null||f===void 0)&&f.captchaToken?{gotrue_meta_security:{captcha_token:(m=t.options)===null||m===void 0?void 0:m.captchaToken}}:null),xform:_a});if(g)throw g;return!v||!v.session||!v.user?{data:{user:null,session:null},error:new Tm}:(v.session&&(await this._saveSession(v.session),await this._notifyAllSubscribers("SIGNED_IN",v.session)),{data:Object.assign({},v),error:g})}catch(v){if(Ze(v))return{data:{user:null,session:null},error:v};throw v}}async _exchangeCodeForSession(t){const n=await So(this.storage,`${this.storageKey}-code-verifier`),[s,a]=(n??"").split("/");try{const{data:i,error:o}=await nt(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:s},xform:_a});if(await ii(this.storage,`${this.storageKey}-code-verifier`),o)throw o;return!i||!i.session||!i.user?{data:{user:null,session:null,redirectType:null},error:new Tm}:(i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",i.session)),{data:Object.assign(Object.assign({},i),{redirectType:a??null}),error:o})}catch(i){if(Ze(i))return{data:{user:null,session:null,redirectType:null},error:i};throw i}}async signInWithIdToken(t){try{const{options:n,provider:s,token:a,access_token:i,nonce:o}=t,l=await nt(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:s,id_token:a,access_token:i,nonce:o,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:_a}),{data:c,error:d}=l;return d?{data:{user:null,session:null},error:d}:!c||!c.session||!c.user?{data:{user:null,session:null},error:new Tm}:(c.session&&(await this._saveSession(c.session),await this._notifyAllSubscribers("SIGNED_IN",c.session)),{data:c,error:d})}catch(n){if(Ze(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithOtp(t){var n,s,a,i,o;try{if("email"in t){const{email:l,options:c}=t;let d=null,u=null;this.flowType==="pkce"&&([d,u]=await Tl(this.storage,this.storageKey));const{error:h}=await nt(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:l,data:(n=c==null?void 0:c.data)!==null&&n!==void 0?n:{},create_user:(s=c==null?void 0:c.shouldCreateUser)!==null&&s!==void 0?s:!0,gotrue_meta_security:{captcha_token:c==null?void 0:c.captchaToken},code_challenge:d,code_challenge_method:u},redirectTo:c==null?void 0:c.emailRedirectTo});return{data:{user:null,session:null},error:h}}if("phone"in t){const{phone:l,options:c}=t,{data:d,error:u}=await nt(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:l,data:(a=c==null?void 0:c.data)!==null&&a!==void 0?a:{},create_user:(i=c==null?void 0:c.shouldCreateUser)!==null&&i!==void 0?i:!0,gotrue_meta_security:{captcha_token:c==null?void 0:c.captchaToken},channel:(o=c==null?void 0:c.channel)!==null&&o!==void 0?o:"sms"}});return{data:{user:null,session:null,messageId:d==null?void 0:d.message_id},error:u}}throw new $m("You must provide either an email or phone number.")}catch(l){if(Ze(l))return{data:{user:null,session:null},error:l};throw l}}async verifyOtp(t){var n,s;try{let a,i;"options"in t&&(a=(n=t.options)===null||n===void 0?void 0:n.redirectTo,i=(s=t.options)===null||s===void 0?void 0:s.captchaToken);const{data:o,error:l}=await nt(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:i}}),redirectTo:a,xform:_a});if(l)throw l;if(!o)throw new Error("An error occurred on token verification.");const c=o.session,d=o.user;return c!=null&&c.access_token&&(await this._saveSession(c),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",c)),{data:{user:d,session:c},error:null}}catch(a){if(Ze(a))return{data:{user:null,session:null},error:a};throw a}}async signInWithSSO(t){var n,s,a;try{let i=null,o=null;return this.flowType==="pkce"&&([i,o]=await Tl(this.storage,this.storageKey)),await nt(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(s=(n=t.options)===null||n===void 0?void 0:n.redirectTo)!==null&&s!==void 0?s:void 0}),!((a=t==null?void 0:t.options)===null||a===void 0)&&a.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:i,code_challenge_method:o}),headers:this.headers,xform:sH})}catch(i){if(Ze(i))return{data:null,error:i};throw i}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:n},error:s}=t;if(s)throw s;if(!n)throw new di;const{error:a}=await nt(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return{data:{user:null,session:null},error:a}})}catch(t){if(Ze(t))return{data:{user:null,session:null},error:t};throw t}}async resend(t){try{const n=`${this.url}/resend`;if("email"in t){const{email:s,type:a,options:i}=t,{error:o}=await nt(this.fetch,"POST",n,{headers:this.headers,body:{email:s,type:a,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}},redirectTo:i==null?void 0:i.emailRedirectTo});return{data:{user:null,session:null},error:o}}else if("phone"in t){const{phone:s,type:a,options:i}=t,{data:o,error:l}=await nt(this.fetch,"POST",n,{headers:this.headers,body:{phone:s,type:a,gotrue_meta_security:{capt
597cha_token:i==null?void 0:i.captchaToken}}});return{data:{user:null,session:null,messageId:o==null?void 0:o.message_id},error:l}}throw new $m("You must provide either an email or phone number and a type")}catch(n){if(Ze(n))return{data:{user:null,session:null},error:n};throw n}}async getSession(){return await this.initializePromise,await this._acquireLock(-1,async()=>this._useSession(async n=>n))}async _acquireLock(t,n){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const s=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),a=(async()=>(await s,await n()))();return this.pendingInLock.push((async()=>{try{await a}catch{}})()),a}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const s=n();for(this.pendingInLock.push((async()=>{try{await s}catch{}})()),await s;this.pendingInLock.length;){const a=[...this.pendingInLock];await Promise.all(a),this.pendingInLock.splice(0,a.length)}return await s}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const n=await this.__loadSession();return await t(n)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const n=await So(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?t=n:(this._debug("#getSession()","session from storage is not valid"),await this._removeSession())),!t)return{data:{session:null},error:null};const s=t.expires_at?t.expires_at*1e3-Date.now()<_y:!1;if(this._debug("#__loadSession()",`session has${s?"":" not"} expired`,"expires_at",t.expires_at),!s){if(this.userStorage){const o=await So(this.userStorage,this.storageKey+"-user");o!=null&&o.user?t.user=o.user:t.user=Ey()}if(this.storage.isServer&&t.user){let o=this.suppressGetSessionWarning;t=new Proxy(t,{get:(c,d,u)=>(!o&&d==="user"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),o=!0,this.suppressGetSessionWarning=!0),Reflect.get(c,d,u))})}return{data:{session:t},error:null}}const{session:a,error:i}=await this._callRefreshToken(t.refresh_token);return i?{data:{session:null},error:i}:{data:{session:a},error:null}}finally{this._debug("#__loadSession()","end")}}async getUser(t){return t?await this._getUser(t):(await this.initializePromise,await this._acquireLock(-1,async()=>await this._getUser()))}async _getUser(t){try{return t?await nt(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:bi}):await this._useSession(async n=>{var s,a,i;const{data:o,error:l}=n;if(l)throw l;return!(!((s=o.session)===null||s===void 0)&&s.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new di}:await nt(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(i=(a=o.session)===null||a===void 0?void 0:a.access_token)!==null&&i!==void 0?i:void 0,xform:bi})})}catch(n){if(Ze(n))return $q(n)&&(await this._removeSession(),await ii(this.storage,`${this.storageKey}-code-verifier`)),{data:{user:null},error:n};throw n}}async updateUser(t,n={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(t,n))}async _updateUser(t,n={}){try{return await this._useSession(async s=>{const{data:a,error:i}=s;if(i)throw i;if(!a.session)throw new di;const o=a.session;let l=null,c=null;this.flowType==="pkce"&&t.email!=null&&([l,c]=await Tl(this.storage,this.storageKey));const{data:d,error:u}=await nt(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n==null?void 0:n.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:l,code_challenge_method:c}),jwt:o.access_token,xform:bi});if(u)throw u;return o.user=d.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),{data:{user:o.user},error:null}})}catch(s){if(Ze(s))return{data:{user:null},error:s};throw s}}async setSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new di;const n=Date.now()/1e3;let s=n,a=!0,i=null;const{payload:o}=Cy(t.access_token);if(o.exp&&(s=o.exp,a=s<=n),a){const{session:l,error:c}=await this._callRefreshToken(t.refresh_token);if(c)return{data:{user:null,session:null},error:c};if(!l)return{data:{user:null,session:null},error:null};i=l}else{const{data:l,error:c}=await this._getUser(t.access_token);if(c)throw c;i={access_token:t.access_token,refresh_token:t.refresh_token,user:l.user,token_type:"bearer",expires_in:s-n,expires_at:s},await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)}return{data:{user:i.user,session:i},error:null}}catch(n){if(Ze(n))return{data:{session:null,user:null},error:n};throw n}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async n=>{var s;if(!t){const{data:o,error:l}=n;if(l)throw l;t=(s=o.session)!==null&&s!==void 0?s:void 0}if(!(t!=null&&t.refresh_token))throw new di;const{session:a,error:i}=await this._callRefreshToken(t.refresh_token);return i?{data:{user:null,session:null},error:i}:a?{data:{user:a.user,session:a},error:null}:{data:{user:null,session:null},error:null}})}catch(n){if(Ze(n))return{data:{user:null,session:null},error:n};throw n}}async _getSessionFromURL(t,n){try{if(!ds())throw new Om("No browser detected.");
597if(t.error||t.error_description||t.error_code)throw new Om(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(n){case"implicit":if(this.flowType==="pkce")throw new Sk("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new Om("Not a valid implicit grant flow url.");break;default:}if(n==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new Sk("No code detected.");const{data:x,error:b}=await this._exchangeCodeForSession(t.code);if(b)throw b;const w=new URL(window.location.href);return w.searchParams.delete("code"),window.history.replaceState(window.history.state,"",w.toString()),{data:{session:x.session,redirectType:null},error:null}}const{provider_token:s,provider_refresh_token:a,access_token:i,refresh_token:o,expires_in:l,expires_at:c,token_type:d}=t;if(!i||!l||!o||!d)throw new Om("No session defined in URL");const u=Math.round(Date.now()/1e3),h=parseInt(l);let f=u+h;c&&(f=parseInt(c));const m=f-u;m*1e3<=Wl&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${m}s, should have been closer to ${h}s`);const y=f-h;u-y>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",y,f,u):u-y<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",y,f,u);const{data:p,error:v}=await this._getUser(i);if(v)throw v;const g={provider_token:s,provider_refresh_token:a,access_token:i,expires_in:h,expires_at:f,refresh_token:o,token_type:d,user:p.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),{data:{session:g,redirectType:t.type},error:null}}catch(s){if(Ze(s))return{data:{session:null,redirectType:null},error:s};throw s}}_isImplicitGrantCallback(t){return!!(t.access_token||t.error_description)}async _isPKCECallback(t){const n=await So(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&n)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async n=>{var s;const{data:a,error:i}=n;if(i)return{error:i};const o=(s=a.session)===null||s===void 0?void 0:s.access_token;if(o){const{error:l}=await this.admin.signOut(o,t);if(l&&!(Tq(l)&&(l.status===404||l.status===401||l.status===403)))return{error:l}}return t!=="others"&&(await this._removeSession(),await ii(this.storage,`${this.storageKey}-code-verifier`)),{error:null}})}onAuthStateChange(t){const n=Bq(),s={id:n,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",n),this.stateChangeEmitters.delete(n)}};return this._debug("#onAuthStateChange()","registered callback with id",n),this.stateChangeEmitters.set(n,s),(async()=>(await this.initializePromise,await this._acquireLock(-1,async()=>{this._emitInitialSession(n)})))(),{data:{subscription:s}}}async _emitInitialSession(t){return await this._useSession(async n=>{var s,a;try{const{data:{session:i},error:o}=n;if(o)throw o;await((s=this.stateChangeEmitters.get(t))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",i)),this._debug("INITIAL_SESSION","callback id",t,"session",i)}catch(i){await((a=this.stateChangeEmitters.get(t))===null||a===void 0?void 0:a.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",i),console.error(i)}})}async resetPasswordForEmail(t,n={}){let s=null,a=null;this.flowType==="pkce"&&([s,a]=await Tl(this.storage,this.storageKey,!0));try{return await nt(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:s,code_challenge_method:a,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(i){if(Ze(i))return{data:null,error:i};throw i}}async getUserIdentities(){var t;try{const{data:n,error:s}=await this.getUser();if(s)throw s;return{data:{identities:(t=n.user.identities)!==null&&t!==void 0?t:[]},error:null}}catch(n){if(Ze(n))return{data:null,error:n};throw n}}async linkIdentity(t){var n;try{const{data:s,error:a}=await this._useSession(async i=>{var o,l,c,d,u;const{data:h,error:f}=i;if(f)throw f;const m=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(o=t.options)===null||o===void 0?void 0:o.redirectTo,scopes:(l=t.options)===null||l===void 0?void 0:l.scopes,queryParams:(c=t.options)===null||c===void 0?void 0:c.queryParams,skipBrowserRedirect:!0});return await nt(this.fetch,"GET",m,{headers:this.headers,jwt:(u=(d=h.session)===null||d===void 0?void 0:d.access_token)!==null&&u!==void 0?u:void 0})});if(a)throw a;return ds()&&!(!((n=t.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(s==null?void 0:s.url),{data:{provider:t.provider,url:s==null?void 0:s.url},error:null}}catch(s){if(Ze(s))return{data:{provider:t.provider,url:null},error:s};throw s}}async unlinkIdentity(t){try{return await this._useSession(async n=>{var s,a;const{data:i,error:o}=n;
597if(o)throw o;return await nt(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(a=(s=i.session)===null||s===void 0?void 0:s.access_token)!==null&&a!==void 0?a:void 0})})}catch(n){if(Ze(n))return{data:null,error:n};throw n}}async _refreshAccessToken(t){const n=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(n,"begin");try{const s=Date.now();return await Hq(async a=>(a>0&&await qq(200*Math.pow(2,a-1)),this._debug(n,"refreshing attempt",a),await nt(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:_a})),(a,i)=>{const o=200*Math.pow(2,a);return i&&Sy(i)&&Date.now()+o-s<Wl})}catch(s){if(this._debug(n,"error",s),Ze(s))return{data:{session:null,user:null},error:s};throw s}finally{this._debug(n,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,n){const s=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:n.redirectTo,scopes:n.scopes,queryParams:n.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",n,"url",s),ds()&&!n.skipBrowserRedirect&&window.location.assign(s),{data:{provider:t,url:s},error:null}}async _recoverAndRefresh(){var t,n;const s="#_recoverAndRefresh()";this._debug(s,"begin");try{const a=await So(this.storage,this.storageKey);if(a&&this.userStorage){let o=await So(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!o&&(o={user:a.user},await Ul(this.userStorage,this.storageKey+"-user",o)),a.user=(t=o==null?void 0:o.user)!==null&&t!==void 0?t:Ey()}else if(a&&!a.user&&!a.user){const o=await So(this.storage,this.storageKey+"-user");o&&(o!=null&&o.user)?(a.user=o.user,await ii(this.storage,this.storageKey+"-user"),await Ul(this.storage,this.storageKey,a)):a.user=Ey()}if(this._debug(s,"session from storage",a),!this._isValidSession(a)){this._debug(s,"session is not valid"),a!==null&&await this._removeSession();return}const i=((n=a.expires_at)!==null&&n!==void 0?n:1/0)*1e3-Date.now()<_y;if(this._debug(s,`session has${i?"":" not"} expired with margin of ${_y}s`),i){if(this.autoRefreshToken&&a.refresh_token){const{error:o}=await this._callRefreshToken(a.refresh_token);o&&(console.error(o),Sy(o)||(this._debug(s,"refresh failed with a non-retryable error, removing the session",o),await this._removeSession()))}}else if(a.user&&a.user.__isUserNotAvailableProxy===!0)try{const{data:o,error:l}=await this._getUser(a.access_token);!l&&(o!=null&&o.user)?(a.user=o.user,await this._saveSession(a),await this._notifyAllSubscribers("SIGNED_IN",a)):this._debug(s,"could not get user data, skipping SIGNED_IN notification")}catch(o){console.error("Error getting user data:",o),this._debug(s,"error getting user data, skipping SIGNED_IN notification",o)}else await this._notifyAllSubscribers("SIGNED_IN",a)}catch(a){this._debug(s,"error",a),console.error(a);return}finally{this._debug(s,"end")}}async _callRefreshToken(t){var n,s;if(!t)throw new di;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const a=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(a,"begin");try{this.refreshingDeferred=new Tg;const{data:i,error:o}=await this._refreshAccessToken(t);if(o)throw o;if(!i.session)throw new di;await this._saveSession(i.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",i.session);const l={session:i.session,error:null};return this.refreshingDeferred.resolve(l),l}catch(i){if(this._debug(a,"error",i),Ze(i)){const o={session:null,error:i};return Sy(i)||await this._removeSession(),(n=this.refreshingDeferred)===null||n===void 0||n.resolve(o),o}throw(s=this.refreshingDeferred)===null||s===void 0||s.reject(i),i}finally{this.refreshingDeferred=null,this._debug(a,"end")}}async _notifyAllSubscribers(t,n,s=!0){const a=`#_notifyAllSubscribers(${t})`;this._debug(a,"begin",n,`broadcast = ${s}`);try{this.broadcastChannel&&s&&this.broadcastChannel.postMessage({event:t,session:n});const i=[],o=Array.from(this.stateChangeEmitters.values()).map(async l=>{try{await l.callback(t,n)}catch(c){i.push(c)}});if(await Promise.all(o),i.length>0){for(let l=0;l<i.length;l+=1)console.error(i[l]);throw i[0]}}finally{this._debug(a,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0;const n=Object.assign({},t),s=n.user&&n.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!s&&n.user&&await Ul(this.userStorage,this.storageKey+"-user",{user:n.user});const a=Object.assign({},n);delete a.user;const i=Ok(a);await Ul(this.storage,this.storageKey,i)}else{const a=Ok(n);await Ul(this.storage,this.storageKey,a)}}async _removeSession(){this._debug("#_removeSession()"),await ii(this.storage,this.storageKey),await ii(this.storage,this.storageKey+"-code-verifier"),await ii(this.storage,this.storageKey+"-user"),this.userStorage&&await ii(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&ds()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}
597catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),Wl);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async n=>{const{data:{session:s}}=n;if(!s||!s.refresh_token||!s.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const a=Math.floor((s.expires_at*1e3-t)/Wl);this._debug("#_autoRefreshTokenTick()",`access token expires in ${a} ticks, a tick lasts ${Wl}ms, refresh threshold is ${r0} ticks`),a<=r0&&await this._callRefreshToken(s.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t.isAcquireTimeout||t instanceof t$)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!ds()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const n=`#_onVisibilityChanged(${t})`;this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(-1,async()=>{if(document.visibilityState!=="visible"){this._debug(n,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,n,s){const a=[`provider=${encodeURIComponent(n)}`];if(s!=null&&s.redirectTo&&a.push(`redirect_to=${encodeURIComponent(s.redirectTo)}`),s!=null&&s.scopes&&a.push(`scopes=${encodeURIComponent(s.scopes)}`),this.flowType==="pkce"){const[i,o]=await Tl(this.storage,this.storageKey),l=new URLSearchParams({code_challenge:`${encodeURIComponent(i)}`,code_challenge_method:`${encodeURIComponent(o)}`});a.push(l.toString())}if(s!=null&&s.queryParams){const i=new URLSearchParams(s.queryParams);a.push(i.toString())}return s!=null&&s.skipBrowserRedirect&&a.push(`skip_http_redirect=${s.skipBrowserRedirect}`),`${t}?${a.join("&")}`}async _unenroll(t){try{return await this._useSession(async n=>{var s;const{data:a,error:i}=n;return i?{data:null,error:i}:await nt(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(s=a==null?void 0:a.session)===null||s===void 0?void 0:s.access_token})})}catch(n){if(Ze(n))return{data:null,error:n};throw n}}async _enroll(t){try{return await this._useSession(async n=>{var s,a;const{data:i,error:o}=n;if(o)return{data:null,error:o};const l=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:{issuer:t.issuer}),{data:c,error:d}=await nt(this.fetch,"POST",`${this.url}/factors`,{body:l,headers:this.headers,jwt:(s=i==null?void 0:i.session)===null||s===void 0?void 0:s.access_token});return d?{data:null,error:d}:(t.factorType==="totp"&&(!((a=c==null?void 0:c.totp)===null||a===void 0)&&a.qr_code)&&(c.totp.qr_code=`data:image/svg+xml;utf-8,${c.totp.qr_code}`),{data:c,error:null})})}catch(n){if(Ze(n))return{data:null,error:n};throw n}}async _verify(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var s;const{data:a,error:i}=n;if(i)return{data:null,error:i};const{data:o,error:l}=await nt(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:{code:t.code,challenge_id:t.challengeId},headers:this.headers,jwt:(s=a==null?void 0:a.session)===null||s===void 0?void 0:s.access_token});return l?{data:null,error:l}:(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+o.expires_in},o)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",o),{data:o,error:l})})}catch(n){if(Ze(n))return{data:null,error:n};throw n}})}async _challenge(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var s;const{data:a,error:i}=n;return i?{data:null,error:i}:await nt(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:{channel:t.channel},headers:this.headers,jwt:(s=a==null?void 0:a.session)===null||s===void 0?void 0:s.access_token})})}catch(n){if(Ze(n))return{data:null,error:n};throw n}})}async _challengeAndVerify(t){const{data:n,error:s}=await this._challenge({factorId:t.factorId});return s?{data:null,error:s}:await this._verify({factorId:t.factorId,challengeId:n.id,code:t.code})}async _listFactors(){const{data:{user:t},error:n}=await this.getUser();if(n)return{data:null,error:n};const s=(t==null?void 0:t.factors)||[],a=s.filter(o=>o.factor_type==="totp"&&o.status==="verified"),i=s.filter(o=>o.factor_type==="phone"&&o.status==="verified");return{data:{all:s,totp:a,phone:i},error:null}}async _getAuthenticatorAssuranceLevel(){return this._acquireLock(-1,async()=>await this._useSession(async t=>{var n,s;const{data:{session:a},error:i}=t;if(i)return{data:null,error:i};if(!a)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:o}=Cy(a.access_token);let l=null;o.aal&&(l=o.aal);let c=l;((s=(n=a.user.factors)===null||n===void 0?void 0:n.filter(h=>h.status==="verified"))!==null&&s!==void 0?s:[]).length>0&&(c="aal2");const u=o.amr||[];return{data:{currentLevel:l,nextLevel:c,currentAuthenticationMethods:u},error:null}}))}async fetchJwk(t,n={keys:[]}){let s=n.keys.find(l=>l.kid===t);if(s)return s;const a=Date.now();if(s=this.jwks.keys.find(l=>l.kid===t),s&&this.jwks_cached_at+Cq>a)return s;const{data:i,error:o}=await nt(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(o)throw o;return!i.keys||i.keys.length===0||(this.jwks=i,this.jwks_cached_at=a,s=i.keys.find(l=>l.kid===t),!s)?null:s}async getClaims(t,n={}){try{let s=t;if(!s){const{data:m,error:y}
597=await this.getSession();if(y||!m.session)return{data:null,error:y};s=m.session.access_token}const{header:a,payload:i,signature:o,raw:{header:l,payload:c}}=Cy(s);n!=null&&n.allowExpired||Zq(i.exp);const d=!a.alg||a.alg.startsWith("HS")||!a.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(a.kid,n!=null&&n.keys?{keys:n.keys}:n==null?void 0:n.jwks);if(!d){const{error:m}=await this.getUser(s);if(m)throw m;return{data:{claims:i,header:a,signature:o},error:null}}const u=Xq(a.alg),h=await crypto.subtle.importKey("jwk",d,u,!0,["verify"]);if(!await crypto.subtle.verify(u,h,o,Dq(`${l}.${c}`)))throw new a0("Invalid JWT signature");return{data:{claims:i,header:a,signature:o},error:null}}catch(s){if(Ze(s))return{data:null,error:s};throw s}}}Zu.nextInstanceID=0;const fH=Zu;class pH extends fH{constructor(t){super(t)}}var gH=function(e,t,n,s){function a(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function l(u){try{d(s.next(u))}catch(h){o(h)}}function c(u){try{d(s.throw(u))}catch(h){o(h)}}function d(u){u.done?i(u.value):a(u.value).then(l,c)}d((s=s.apply(e,t||[])).next())})};class xH{constructor(t,n,s){var a,i,o;this.supabaseUrl=t,this.supabaseKey=n;const l=jq(t);if(!n)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",l),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",l),this.storageUrl=new URL("storage/v1",l),this.functionsUrl=new URL("functions/v1",l);const c=`sb-${l.hostname.split(".")[0]}-auth-token`,d={db:hq,realtime:fq,auth:Object.assign(Object.assign({},mq),{storageKey:c}),global:uq},u=wq(s??{},d);this.storageKey=(a=u.auth.storageKey)!==null&&a!==void 0?a:"",this.headers=(i=u.global.headers)!==null&&i!==void 0?i:{},u.accessToken?(this.accessToken=u.accessToken,this.auth=new Proxy({},{get:(h,f)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(f)} is not possible`)}})):this.auth=this._initSupabaseAuthClient((o=u.auth)!==null&&o!==void 0?o:{},this.headers,u.global.fetch),this.fetch=yq(n,this._getAccessToken.bind(this),u.global.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers,accessToken:this._getAccessToken.bind(this)},u.realtime)),this.rest=new PU(new URL("rest/v1",l).href,{headers:this.headers,schema:u.db.schema,fetch:this.fetch}),this.storage=new lq(this.storageUrl.href,this.headers,this.fetch,s==null?void 0:s.storage),u.accessToken||this._listenForAuthEvents()}get functions(){return new dU(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(t){return this.rest.from(t)}schema(t){return this.rest.schema(t)}rpc(t,n={},s={}){return this.rest.rpc(t,n,s)}channel(t,n={config:{}}){return this.realtime.channel(t,n)}getChannels(){return this.realtime.getChannels()}removeChannel(t){return this.realtime.removeChannel(t)}removeAllChannels(){return this.realtime.removeAllChannels()}_getAccessToken(){var t,n;return gH(this,void 0,void 0,function*(){if(this.accessToken)return yield this.accessToken();const{data:s}=yield this.auth.getSession();return(n=(t=s.session)===null||t===void 0?void 0:t.access_token)!==null&&n!==void 0?n:this.supabaseKey})}_initSupabaseAuthClient({autoRefreshToken:t,persistSession:n,detectSessionInUrl:s,storage:a,userStorage:i,storageKey:o,flowType:l,lock:c,debug:d},u,h){const f={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new pH({url:this.authUrl.href,headers:Object.assign(Object.assign({},f),u),storageKey:o,autoRefreshToken:t,persistSession:n,detectSessionInUrl:s,storage:a,userStorage:i,flowType:l,lock:c,debug:d,fetch:h,hasCustomAuthorizationHeader:Object.keys(this.headers).some(m=>m.toLowerCase()==="authorization")})}_initRealtimeClient(t){return new KU(this.realtimeUrl.href,Object.assign(Object.assign({},t),{params:Object.assign({apikey:this.supabaseKey},t==null?void 0:t.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((n,s)=>{this._handleTokenChanged(n,"CLIENT",s==null?void 0:s.access_token)})}_handleTokenChanged(t,n,s){(t==="TOKEN_REFRESHED"||t==="SIGNED_IN")&&this.changedAccessToken!==s?this.changedAccessToken=s:t==="SIGNED_OUT"&&(this.realtime.setAuth(),n=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}}const yH=(e,t,n)=>new xH(e,t,n);function vH(){if(typeof window<"u"||typeof process>"u")return!1;const e=process.version;if(e==null)return!1;const t=e.match(/^v(\d+)\./);return t?parseInt(t[1],10)<=18:!1}vH()&&console.warn("â ï¸ Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to N
597ode.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");function bH(){var v,g;if(typeof window>"u")return;const e=location.hostname,n=["lovableproject.com","lovableproject-dev.com","lovable.app","gpt-eng.com","gptengineer.run"].some(x=>e===x||e.endsWith("."+x)),s="[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",a=n?((v=e.match(new RegExp("^(?:id-preview(?:-[a-z0-9]+)?|project)--("+s+")(?:-dev)?(?=\\.|$)","i")))==null?void 0:v[1])??((g=e.match(new RegExp("^("+s+")(?=[.-])","i")))==null?void 0:g[1]):void 0,i=window.parent&&window.parent!==window;if(!a||!i)return localStorage;const o=e.endsWith(".lovableproject-dev.com")||e.endsWith(".gpt-eng.com"),l=o?/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$|^http:\/\/localhost:3000$/:/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$/,c=location.ancestorOrigins&&location.ancestorOrigins[0]||(document.referrer?new URL(document.referrer).origin:""),d=c&&l.test(c)?[c]:o?["https://lovable.dev","http://localhost:3000"]:["https://lovable.dev"],u="lovable-preview-auth:result",h=2e3,f=()=>Math.random().toString(36).slice(2)+Date.now().toString(36),m=(x,b,w)=>new Promise(N=>{const S=f();let _=!1,C;const $=T=>{_||(_=!0,clearTimeout(C),window.removeEventListener("message",k),N(T))},k=T=>{if(d.indexOf(T.origin)<0)return;const O=T.data;O&&O.type===u&&O.requestId===S&&$(O)};window.addEventListener("message",k);const E={type:x,requestId:S,projectId:a,key:b};w!==void 0&&(E.value=w);for(const T of d)window.parent.postMessage(E,T);C=setTimeout(()=>$(null),h)});let y=!0;const p=250;return{getItem:async x=>{let b=await m("lovable-preview-auth:get",x);return!b&&y&&(await new Promise(w=>setTimeout(w,p)),b=await m("lovable-preview-auth:get",x)),y=!1,b&&b.ok&&typeof b.value=="string"?b.value===""?(localStorage.removeItem(x),null):b.value:localStorage.getItem(x)},setItem:(x,b)=>(localStorage.setItem(x,b),m("lovable-preview-auth:set",x,b).then(w=>{w&&w.ok&&typeof w.value=="string"&&localStorage.getItem(x)===b&&(w.value===""?localStorage.removeItem(x):localStorage.setItem(x,w.value))})),removeItem:x=>(localStorage.removeItem(x),m("lovable-preview-auth:remove",x).then(()=>{}))}}const wH="https://jyybrsqperqynjgezueb.supabase.co",jH="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Imp5eWJyc3FwZXJxeW5qZ2V6dWViIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NTc1NTY0ODMsImV4cCI6MjA3MzEzMjQ4M30.K17BCWOCn0Lv6yBBxCC6u3KFu6b_IH-1yv3uFiXL_RM",ve=yH(wH,jH,{auth:{storage:bH(),persistSession:!0,autoRefreshToken:!0}}),r$=j.createContext(void 0),NH=({children:e})=>{const[t,n]=j.useState(null),[s,a]=j.useState(null),[i,o]=j.useState(!0),l=!1;new Date().toISOString(),new Date().toISOString(),new Date().toISOString(),j.useEffect(()=>{const{data:{subscription:h}}=ve.auth.onAuthStateChange((f,m)=>{a(m),n((m==null?void 0:m.user)??null),o(!1)});return ve.auth.getSession().then(({data:{session:f}})=>{a(f),n((f==null?void 0:f.user)??null),o(!1)}),()=>h.unsubscribe()},[l]);const u={user:t,session:s,loading:i,signInWithMagicLink:async h=>{const{error:f}=await ve.auth.signInWithOtp({email:h,options:{emailRedirectTo:"https://simpleoperations.com/admin",shouldCreateUser:!1}});return{error:f}},signOut:async()=>{await ve.auth.signOut()}};return r.jsx(r$.Provider,{value:u,children:e})},sn=()=>{const e=j.useContext(r$);if(e===void 0)throw new Error("useAuth must be used within an AuthProvider");return e},n$=j.createContext(void 0),s$=()=>{const e=j.useContext(n$);if(e===void 0)throw new Error("useSEO must be used within a SEOProvider");return e},kH=({children:e})=>{const[t,n]=j.useState(null),[s,a]=j.useState(null),[i,o]=j.useState(!0),l=En(),c=y=>{let p=y;return p!=="/"&&p.endsWith("/")&&(p=p.slice(0,-1)),p.startsWith("/")||(p="/"+p),console.log("SEOContext: Normalized path from",y,"to",p),p},d=async()=>{try{const{data:y,error:p}=await ve.from("seo_settings").select("*").eq("page_slug","__default__").maybeSingle();return p?(console.error("SEOContext: Error fetching default SEO settings:",p),null):y}catch(y){return console.error("SEOContext: Error in fetchDefaultSEO:",y),null}},u=async y=>{try{if(o(!0),console.log("SEOContext: Fetching SEO settings for slug:",y),!s){const g=await d();a(g)}const{data:p,error:v}=await ve.from("seo_settings").select("*").eq("page_slug",y).maybeSingle();if(v&&console.error("SEOContext: Error fetching SEO settings:",v),p)console.log("SEOContext: Found SEO settings:",p),n(p);else{console.log("SEOContext: No SEO settings found, using defaults for:",y);const g=h(y),x=s||await d(),b={page_slug:y,page_title:g,meta_title:(x==null?void 0:x.meta_title)||g,meta_description:(x==null?void 0:x.meta_description)||`Learn more about ${g} at Simple Operations`,meta_keywords:(x==null?void 0:x.meta_keywords)||"",og_image_url:(x==null?void 0:x.og_image_url)||null,canonical_url:null,robots_meta:(x==null?void 0:x.robots_meta)||"index, follow"};n(b)}}catch(p){console.error("SEOContext: Error in fetchSEOSettings:",p);const v=h(y);n({page_slug:y,page_title:v,meta_title:v,meta_description:`Learn more about ${v} at Simple Operations`,robots_meta:"index, follow"})}finally{o(!1)}},h=y=>({"/":"Simple Operations","/the-system":"The System | Simple Operations","/scale":"Scale Method | Simple Operations","/clarity":"Clarity Method | Simple Operations","/essentials":"Essentials Course | Simple Operations","/compare":"Compare Programs | Simple Operations","/
597proof":"Proof | Simple Operations","/assessment":"Founder Bottleneck Assessment | Simple Operations","/assessment/results":"Your Assessment Results | Simple Operations","/book-call":"Book a Call | Simple Operations","/free-tools":"Free Tools | Simple Operations","/faq":"FAQ | Simple Operations","/guarantee":"Our Guarantee | Simple Operations","/team":"Team | Simple Operations","/contact":"Contact | Simple Operations","/book":"Book Resources | Simple Operations","/so-book":"Passenger Seat Leadership Book | Simple Operations","/guiding-principles":"Guiding Principles | Simple Operations","/passenger-seat-book":"Passenger Seat Leadership | Simple Operations","/passenger-seat-book/thank-you":"Thank You | Simple Operations","/apply":"Apply | Simple Operations","/application-success":"Application Success | Simple Operations","/application-not-qualified":"Application Update | Simple Operations","/course/payment-success":"Course Payment Successful | Simple Operations","/quantum-flow-planner":"Quantum Flow Planner | Simple Operations","/quantum-flow-planner/success":"Planner Success | Simple Operations","/workshop":"Workshop | Simple Operations","/workshop/success":"Workshop Success | Simple Operations","/invest":"Invest | Simple Operations","/invest/success":"Investment Success | Simple Operations","/privacy-policy":"Privacy Policy | Simple Operations","/terms-of-service":"Terms of Service | Simple Operations"})[y]||"Simple Operations",f=async y=>{if(t)try{const p={...t,...y};if(t.id){const{error:v}=await ve.from("seo_settings").update(p).eq("id",t.id);if(v)throw v}else{const{data:v,error:g}=await ve.from("seo_settings").insert([p]).select().single();if(g)throw g;p.id=v.id}n(p)}catch(p){throw console.error("Error updating SEO settings:",p),p}},m=()=>{const y=c(l.pathname);u(y)};return j.useEffect(()=>{const y=c(l.pathname);u(y)},[l.pathname]),r.jsx(n$.Provider,{value:{currentSEO:t,loading:i,updateSEO:f,refreshSEO:m},children:e})},Mk="custom_head_code",Dk="custom_body_start_code",a$="data-custom-code",Fk=(e,t,n)=>{if(!e.trim())return;const s=document.createElement("template");s.innerHTML=e;const a=[];s.content.childNodes.forEach(o=>{if(o.nodeName==="SCRIPT"){const l=o,c=document.createElement("script");Array.from(l.attributes).forEach(d=>c.setAttribute(d.name,d.value)),c.text=l.text,a.push(c)}else a.push(o.cloneNode(!0))});const i=n==="prepend"?t.firstChild:null;a.forEach(o=>{o instanceof HTMLElement&&o.setAttribute(a$,n),n==="prepend"?t.insertBefore(o,i):t.appendChild(o)})},_H=()=>(j.useEffect(()=>{let e=!1;return(async()=>{var n,s;try{const{data:a}=await ve.from("admin_settings").select("setting_key, setting_value").in("setting_key",[Mk,Dk]);if(e||!a)return;document.querySelectorAll(`[${a$}]`).forEach(l=>{var c;return(c=l.parentElement)==null?void 0:c.removeChild(l)});const i=((n=a.find(l=>l.setting_key===Mk))==null?void 0:n.setting_value)||"",o=((s=a.find(l=>l.setting_key===Dk))==null?void 0:s.setting_value)||"";Fk(i,document.head,"append"),Fk(o,document.body,"prepend")}catch(a){console.error("CustomCodeInjector: failed to load custom code",a)}})(),()=>{e=!0}},[]),null),SH=()=>{const{currentSEO:e,loading:t,refreshSEO:n}=s$(),[s,a]=j.useState(!1);j.useEffect(()=>{const c=new URLSearchParams(window.location.search).get("seoDebug")==="1",d=localStorage.getItem("seoDebug")==="1";a(c||d)},[]),j.useEffect(()=>{s&&localStorage.setItem("seoDebug","1")},[s]);const[i,o]=j.useState(null);return j.useEffect(()=>{if(!s||!e||t)return;const l=()=>{const d=document,u=f=>{var m;return((m=d.querySelector(f))==null?void 0:m.getAttribute("content"))||""},h=(f,m)=>{var y;return((y=d.querySelector(f))==null?void 0:y.getAttribute(m))||""};o({title:d.title,description:u('meta[name="description"]'),keywords:u('meta[name="keywords"]'),robots:u('meta[name="robots"]'),canonical:h('link[rel="canonical"]',"href"),ogTitle:u('meta[property="og:title"]'),ogDescription:u('meta[property="og:description"]'),ogImage:u('meta[property="og:image"]'),ogUrl:u('meta[property="og:url"]')})},c=requestAnimationFrame(()=>{l(),setTimeout(l,50)});return()=>cancelAnimationFrame(c)},[e,t,s,n]),s?r.jsxs("div",{style:{position:"fixed",bottom:16,right:16,zIndex:9999,maxWidth:360,background:"hsl(var(--background) / 0.95)",color:"hsl(var(--foreground))",border:"1px solid hsl(var(--border))",borderRadius:12,boxShadow:"var(--shadow-elegant, 0 10px 30px -10px rgba(0,0,0,0.3))",padding:12,fontSize:12,lineHeight:1.2},children:[r.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:8},children:[r.jsx("strong",{children:"SEO Debug"}),r.jsxs("div",{style:{display:"flex",gap:8},children:[r.jsx("button",{onClick:()=>n(),style:{padding:"4px 8px",border:"1px solid hsl(var(--border))",borderRadius:6},children:"Refresh"}),r.jsx("button",{onClick:()=>{localStorage.removeItem("seoDebug"),a(!1)},style:{padding:"4px 8px",border:"1px solid hsl(var(--border))",borderRadius:6},children:"Hide"})]})]}),t&&r.jsx("div",{children:"Loading SEOâ¦"}),!t&&e&&i&&r.jsxs("div",{style:{display:"grid",gap:6},children:[r.jsxs("div",{children:[r.jsx("strong",{children:"Slug:"})," ",e.page_slug]}),r.jsxs("div",{children:[r.jsx("strong",{children:"Meta Title:"})," ",e.meta_title||"(none)"," "]}),r.jsxs("div",{children:[r.jsx("strong",{children:"Applied Title:"})," ",i.title]}),r.jsxs("div",{children:[r.jsx("strong",{children:"Description:"})," ",e.meta_description||"(none)"," "]}),r.jsxs("div",{children:[r.jsx("strong",{children:"Applied Desc:"})," ",i.description]}),r.jsxs("div",{children:[r.jsx("strong",{children:"Keywords:"})," ",e.meta_keywords||"(none)"," "]}),r.jsxs("div",{children:[r.jsx("strong",{children:"Robots:"})," ",e.robots_meta||"(none)"," "]}),r.jsxs("div",{children:[r.jsx("strong",{children:"Canonical:"})," ",e.canonical_url||"(none)"," "]}),r.jsxs("div",{children:[r.jsx("strong",{children:"Applied Canonical:"})," ",i.canonical]}),r.jsxs("div",{children:[r.jsx("strong",{children:"OG Image:"})," ",e.og_image_url||"(none)"," "]}),r.jsxs("div",{children:[r.jsx("strong",{children:"Applied OG URL:"})," ",i.ogUrl]})]})]}):null},Ir=({children:e})=>{const{user:t,loading:n}=sn(),s=En();return n?r.jsx("div",{className:"min-h-screen flex items-center justify-center",children:r.jsx("div",{className:"animate-spin rounded-full h-32 w-32 border-b-2 border-primary"})}):t?r.jsx(r.Fragment,{children:e}
vendor: 4,946 bytes, line 597
597):r.jsx(Ys,{to:"/auth",state:{from:s},replace:!0})},CH=()=>{const{pathname:e}=En();return j.useEffect(()=>{window.scrollTo(0,0)},[e]),null},op=xl("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary-dark shadow-soft whitespace-normal text-center leading-snug",hero:"bg-gradient-cta text-white hover:shadow-glow transition-all duration-300 font-semibold whitespace-normal text-center leading-snug",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary-light shadow-soft whitespace-normal text-center leading-snug",outline:"border-2 border-primary bg-background hover:bg-primary hover:text-primary-foreground text-foreground shadow-soft whitespace-normal text-center leading-snug",ghost:"hover:bg-muted hover:text-foreground whitespace-normal text-center leading-snug",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 whitespace-normal text-center leading-snug",link:"text-primary underline-offset-4 hover:underline whitespace-normal"},size:{default:"h-auto min-h-10 px-4 py-2.5",sm:"h-auto min-h-9 rounded-md px-3 py-2",lg:"h-auto min-h-11 rounded-md px-6 py-3",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),te=j.forwardRef(({className:e,variant:t,size:n,asChild:s=!1,...a},i)=>{const o=s?pl:"button";return r.jsx(o,{className:le(op({variant:t,size:n,className:e})),ref:i,...a})});te.displayName="Button";const G=j.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,className:le("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));G.displayName="Card";const Ie=j.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,className:le("flex flex-col space-y-1.5 p-6",e),...t}));Ie.displayName="CardHeader";const Me=j.forwardRef(({className:e,...t},n)=>r.jsx("h3",{ref:n,className:le("text-2xl font-semibold leading-none tracking-tight",e),...t}));Me.displayName="CardTitle";const dt=j.forwardRef(({className:e,...t},n)=>r.jsx("p",{ref:n,className:le("text-sm text-muted-foreground",e),...t}));dt.displayName="CardDescription";const Ne=j.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,className:le("p-6 pt-0",e),...t}));Ne.displayName="CardContent";const EH=j.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,className:le("flex items-center p-6 pt-0",e),...t}));EH.displayName="CardFooter";var $g="Collapsible",[TH,i$]=ir($g),[$H,zw]=TH($g),o$=j.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:s,defaultOpen:a,disabled:i,onOpenChange:o,...l}=e,[c,d]=Xr({prop:s,defaultProp:a??!1,onChange:o,caller:$g});return r.jsx($H,{scope:n,disabled:i,contentId:ar(),open:c,onOpenToggle:j.useCallback(()=>d(u=>!u),[d]),children:r.jsx(we.div,{"data-state":Kw(c),"data-disabled":i?"":void 0,...l,ref:t})})});o$.displayName=$g;var l$="CollapsibleTrigger",Gw=j.forwardRef((e,t)=>{const{__scopeCollapsible:n,...s}=e,a=zw(l$,n);return r.jsx(we.button,{type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":Kw(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled,...s,ref:t,onClick:me(e.onClick,a.onOpenToggle)})});Gw.displayName=l$;var Yw="CollapsibleContent",Vw=j.forwardRef((e,t)=>{const{forceMount:n,...s}=e,a=zw(Yw,e.__scopeCollapsible);return r.jsx(or,{present:n||a.open,children:({present:i})=>r.jsx(OH,{...s,ref:t,present:i})})});Vw.displayName=Yw;var OH=j.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:s,children:a,...i}=e,o=zw(Yw,n),[l,c]=j.useState(s),d=j.useRef(null),u=Ge(t,d),h=j.useRef(0),f=h.current,m=j.useRef(0),y=m.current,p=o.open||l,v=j.useRef(p),g=j.useRef(void 0);return j.useEffect(()=>{const x=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(x)},[]),Qt(()=>{const x=d.current;if(x){g.current=g.current||{transitionDuration:x.style.transitionDuration,animationName:x.style.animationName},x.style.transitionDuration="0s",x.style.animationName="none";const b=x.getBoundingClientRect();h.current=b.height,m.current=b.width,v.current||(x.style.transitionDuration=g.current.transitionDuration,x.style.animationName=g.current.animationName),c(s)}},[o.open,s]),r.jsx(we.div,{"data-state":Kw(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!p,...i,ref:u,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":y?`${y}px`:void 0,...e.style},children:p&&a})});function Kw(e){return e?"open":"closed"}var c$=o$,PH=Gw,AH=Vw,IH=j.createContext(void 0);function bl(e){const t=j.useContext(IH);return e||t||"ltr"}var Bs="Accordion",RH=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Qw,MH,DH]=Th(Bs),[Og,Yge]=ir(Bs,[DH,i$]),Zw=i$(),d$=ee.forwardRef((e,t)=>
597{const{type:n,...s}=e,a=s,i=s;return r.jsx(Qw.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?r.jsx(WH,{...i,ref:t}):r.jsx(BH,{...a,ref:t})})});d$.displayName=Bs;var[u$,FH]=Og(Bs),[h$,LH]=Og(Bs,{collapsible:!1}),BH=ee.forwardRef((e,t)=>{const{value:n,defaultValue:s,onValueChange:a=()=>{},collapsible:i=!1,...o}=e,[l,c]=Xr({prop:n,defaultProp:s??"",onChange:a,caller:Bs});return r.jsx(u$,{scope:e.__scopeAccordion,value:ee.useMemo(()=>l?[l]:[],[l]),onItemOpen:c,onItemClose:ee.useCallback(()=>i&&c(""),[i,c]),children:r.jsx(h$,{scope:e.__scopeAccordion,collapsible:i,children:r.jsx(m$,{...o,ref:t})})})}),WH=ee.forwardRef((e,t)=>{const{value:n,defaultValue:s,onValueChange:a=()=>{},...i}=e,[o,l]=Xr({prop:n,defaultProp:s??[],onChange:a,caller:Bs}),c=ee.useCallback(u=>l((h=[])=>[...h,u]),[l]),d=ee.useCallback(u=>l((h=[])=>h.filter(f=>f!==u)),[l]);return r.jsx(u$,{scope:e.__scopeAccordion,value:o,onItemOpen:c,onItemClose:d,children:r.jsx(h$,{scope:e.__scopeAccordion,collapsible:!0,children:r.jsx(m$,{...i,ref:t})})})}),[UH,Pg]=Og(Bs),m$=ee.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:s,dir:a,orientation:i="vertical",...o}=e,l=ee.useRef(null),c=Ge(l,t),d=MH(n),h=bl(a)==="ltr",f=me(e.onKeyDown,m=>{var C;if(!RH.includes(m.key))return;const y=m.target,p=d().filter($=>{var k;return!((k=$.ref.current)!=null&&k.disabled)}),v=p.findIndex($=>$.ref.current===y),g=p.length;if(v===-1)return;m.preventDefault();let x=v;const b=0,w=g-1,N=()=>{x=v+1,x>w&&(x=b)},S=()=>{x=v-1,x<b&&(x=w)};switch(m.key){case"Home":x=b;break;case"End":x=w;break;case"ArrowRight":i==="horizontal"&&(h?N():S());break;case"ArrowDown":i==="vertical"&&N();break;case"ArrowLeft":i==="horizontal"&&(h?S():N());break;case"ArrowUp":i==="vertical"&&S();break}const _=x%g;(C=p[_].ref.current)==null||C.focus()});return r.jsx(UH,{scope:n,disabled:s,direction:a,orientation:i,children:r.jsx(Qw.Slot,{scope:n,children:r.jsx(we.div,{...o,"data-orientation":i,ref:c,onKeyDown:s?void 0:f})})})}),lp="AccordionItem",[qH,Xw]=Og(lp),f$=ee.forwardRef((e,t)=>{const{__scopeAccordion:n,value:s,...a}=e,i=Pg(lp,n),o=FH(lp,n),l=Zw(n),c=ar(),d=s&&o.value.includes(s)||!1,u=i.disabled||e.disabled;return r.jsx(qH,{scope:n,open:d,disabled:u,triggerId:c,children:r.jsx(c$,{"data-orientation":i.orientation,"data-state":b$(d),...l,...a,ref:t,disabled:u,open:d,onOpenChange:h=>{h?o.onItemOpen(s):o.onItemClose(s)}})})});f$.displayName=lp;var p$="AccordionHeader",g$=ee.forwardRef((e,t)=>{const{__scopeAccordion:n,...s}=e,a=Pg(Bs,n),i=Xw(p$,n);return r.jsx(we.h3,{"data-orientation":a.orientation,"data-state":b$(i.open),"data-disabled":i.disabled?"":void 0,...s,ref:t})});g$.displayName=p$;var i0="AccordionTrigger",x$=ee.forwardRef((e,t)=>{const{__scopeAccordion:n,...s}=e,a=Pg(Bs,n),i=Xw(i0,n),o=LH(i0,n),l=Zw(n);return r.jsx(Qw.ItemSlot,{scope:n,children:r.jsx(PH,{"aria-disabled":i.open&&!o.collapsible||void 0,"data-orientation":a.orientation,id:i.triggerId,...l,...s,ref:t})})});x$.displayName=i0;var y$="AccordionContent",v$=ee.forwardRef((e,t)=>{const{__scopeAccordion:n,...s}=e,a=Pg(Bs,n),i=Xw(y$,n),o=Zw(n);return r.jsx(AH,{role:"region","aria-labelledby":i.triggerId,"data-orientation":a.orientation,...o,...s,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});v$.displayName=y$;function b$(e){return e?"open":"closed"}var HH=d$,zH=f$,GH=g$,w$=x$,j$=v$;const xo=HH,Za=j.forwardRef(({className:e,...t},n)=>r.jsx(zH,{ref:n,className:le("border-b",e),...t}));Za.displayName="AccordionItem";const Xa=j.forwardRef(({className:e,children:t,...n},s)=>r.jsx(GH,{className:"flex",children:r.jsxs(w$,{ref:s,className:le("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...n,children:[t,r.jsx(Ka,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));Xa.displayName=w$.displayName;const Ja=j.forwardRef(({className:e,children:t,...n},s)=>r.jsx(j$,{ref:s,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:r.jsx("div",{className:le("pb-4 pt-0",e),children:t})}));Ja.displayName=j$.displayName;var $y=0;function Ag(){j.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Lk()),document.body.insertAdjacentElement("beforeend",e[1]??Lk()),$y++,()=>{$y===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),$y--}},[])}function Lk(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.
vendor: 4,485 bytes, line 597
597style.position="fixed",e.style.pointerEvents="none",e}var Oy="focusScope.autoFocusOnMount",Py="focusScope.autoFocusOnUnmount",Bk={bubbles:!1,cancelable:!0},YH="FocusScope",Dh=j.forwardRef((e,t)=>{const{loop:n=!1,trapped:s=!1,onMountAutoFocus:a,onUnmountAutoFocus:i,...o}=e,[l,c]=j.useState(null),d=Kt(a),u=Kt(i),h=j.useRef(null),f=Ge(t,p=>c(p)),m=j.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;j.useEffect(()=>{if(s){let p=function(b){if(m.paused||!l)return;const w=b.target;l.contains(w)?h.current=w:ui(h.current,{select:!0})},v=function(b){if(m.paused||!l)return;const w=b.relatedTarget;w!==null&&(l.contains(w)||ui(h.current,{select:!0}))},g=function(b){if(document.activeElement===document.body)for(const N of b)N.removedNodes.length>0&&ui(l)};document.addEventListener("focusin",p),document.addEventListener("focusout",v);const x=new MutationObserver(g);return l&&x.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",v),x.disconnect()}}},[s,l,m.paused]),j.useEffect(()=>{if(l){Uk.add(m);const p=document.activeElement;if(!l.contains(p)){const g=new CustomEvent(Oy,Bk);l.addEventListener(Oy,d),l.dispatchEvent(g),g.defaultPrevented||(VH(JH(N$(l)),{select:!0}),document.activeElement===p&&ui(l))}return()=>{l.removeEventListener(Oy,d),setTimeout(()=>{const g=new CustomEvent(Py,Bk);l.addEventListener(Py,u),l.dispatchEvent(g),g.defaultPrevented||ui(p??document.body,{select:!0}),l.removeEventListener(Py,u),Uk.remove(m)},0)}}},[l,d,u,m]);const y=j.useCallback(p=>{if(!n&&!s||m.paused)return;const v=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,g=document.activeElement;if(v&&g){const x=p.currentTarget,[b,w]=KH(x);b&&w?!p.shiftKey&&g===w?(p.preventDefault(),n&&ui(b,{select:!0})):p.shiftKey&&g===b&&(p.preventDefault(),n&&ui(w,{select:!0})):g===x&&p.preventDefault()}},[n,s,m.paused]);return r.jsx(we.div,{tabIndex:-1,...o,ref:f,onKeyDown:y})});Dh.displayName=YH;function VH(e,{select:t=!1}={}){const n=document.activeElement;for(const s of e)if(ui(s,{select:t}),document.activeElement!==n)return}function KH(e){const t=N$(e),n=Wk(t,e),s=Wk(t.reverse(),e);return[n,s]}function N$(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const a=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||a?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Wk(e,t){for(const n of e)if(!QH(n,{upTo:t}))return n}function QH(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function ZH(e){return e instanceof HTMLInputElement&&"select"in e}function ui(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&ZH(e)&&t&&e.select()}}var Uk=XH();function XH(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=qk(e,t),e.unshift(t)},remove(t){var n;e=qk(e,t),(n=e[0])==null||n.resume()}}}function qk(e,t){const n=[...e],s=n.indexOf(t);return s!==-1&&n.splice(s,1),n}function JH(e){return e.filter(t=>t.tagName!=="A")}var Ay="rovingFocusGroup.onEntryFocus",ez={bubbles:!1,cancelable:!0},Fh="RovingFocusGroup",[o0,k$,tz]=Th(Fh),[rz,pd]=ir(Fh,[tz]),[nz,sz]=rz(Fh),_$=j.forwardRef((e,t)=>r.jsx(o0.Provider,{scope:e.__scopeRovingFocusGroup,children:r.jsx(o0.Slot,{scope:e.__scopeRovingFocusGroup,children:r.jsx(az,{...e,ref:t})})}));_$.displayName=Fh;var az=j.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:s,loop:a=!1,dir:i,currentTabStopId:o,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:d,preventScrollOnEntryFocus:u=!1,...h}=e,f=j.useRef(null),m=Ge(t,f),y=bl(i),[p,v]=Xr({prop:o,defaultProp:l??null,onChange:c,caller:Fh}),[g,x]=j.useState(!1),b=Kt(d),w=k$(n),N=j.useRef(!1),[S,_]=j.useState(0);return j.useEffect(()=>{const C=f.current;if(C)return C.addEventListener(Ay,b),()=>C.removeEventListener(Ay,b)},[b]),r.jsx(nz,{scope:n,orientation:s,dir:y,loop:a,currentTabStopId:p,onItemFocus:j.useCallback(C=>v(C),[v]),onItemShiftTab:j.useCallback(()=>x(!0),[]),onFocusableItemAdd:j.useCallback(()=>_(C=>C+1),[]),onFocusableItemRemove:j.useCallback(()=>_(C=>C-1),[]),children:r.jsx(we.div,{tabIndex:g||S===0?-1:0,"data-orientation":s,...h,ref:m,style:{outline:"none",...e.style},onMouseDown:me(e.onMouseDown,()=>{N.current=!0}
vendor: 9,189 bytes, lines 597-612
597),onFocus:me(e.onFocus,C=>{const $=!N.current;if(C.target===C.currentTarget&&$&&!g){const k=new CustomEvent(Ay,ez);if(C.currentTarget.dispatchEvent(k),!k.defaultPrevented){const E=w().filter(z=>z.focusable),T=E.find(z=>z.active),O=E.find(z=>z.id===p),U=[T,O,...E].filter(Boolean).map(z=>z.ref.current);E$(U,u)}}N.current=!1}),onBlur:me(e.onBlur,()=>x(!1))})})}),S$="RovingFocusGroupItem",C$=j.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:s=!0,active:a=!1,tabStopId:i,children:o,...l}=e,c=ar(),d=i||c,u=sz(S$,n),h=u.currentTabStopId===d,f=k$(n),{onFocusableItemAdd:m,onFocusableItemRemove:y,currentTabStopId:p}=u;return j.useEffect(()=>{if(s)return m(),()=>y()},[s,m,y]),r.jsx(o0.ItemSlot,{scope:n,id:d,focusable:s,active:a,children:r.jsx(we.span,{tabIndex:h?0:-1,"data-orientation":u.orientation,...l,ref:t,onMouseDown:me(e.onMouseDown,v=>{s?u.onItemFocus(d):v.preventDefault()}),onFocus:me(e.onFocus,()=>u.onItemFocus(d)),onKeyDown:me(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){u.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const g=lz(v,u.orientation,u.dir);if(g!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let b=f().filter(w=>w.focusable).map(w=>w.ref.current);if(g==="last")b.reverse();else if(g==="prev"||g==="next"){g==="prev"&&b.reverse();const w=b.indexOf(v.currentTarget);b=u.loop?cz(b,w+1):b.slice(w+1)}setTimeout(()=>E$(b))}}),children:typeof o=="function"?o({isCurrentTabStop:h,hasTabStop:p!=null}):o})})});C$.displayName=S$;var iz={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function oz(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function lz(e,t,n){const s=oz(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(s))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(s)))return iz[s]}function E$(e,t=!1){const n=document.activeElement;for(const s of e)if(s===n||(s.focus({preventScroll:t}),document.activeElement!==n))return}function cz(e,t){return e.map((n,s)=>e[(t+s)%e.length])}var Jw=_$,ej=C$,dz=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Al=new WeakMap,Pm=new WeakMap,Am={},Iy=0,T$=function(e){return e&&(e.host||T$(e.parentNode))},uz=function(e,t){return t.map(function(n){if(e.contains(n))return n;var s=T$(n);return s&&e.contains(s)?s:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},hz=function(e,t,n,s){var a=uz(t,Array.isArray(e)?e:[e]);Am[n]||(Am[n]=new WeakMap);var i=Am[n],o=[],l=new Set,c=new Set(a),d=function(h){!h||l.has(h)||(l.add(h),d(h.parentNode))};a.forEach(d);var u=function(h){!h||c.has(h)||Array.prototype.forEach.call(h.children,function(f){if(l.has(f))u(f);else try{var m=f.getAttribute(s),y=m!==null&&m!=="false",p=(Al.get(f)||0)+1,v=(i.get(f)||0)+1;Al.set(f,p),i.set(f,v),o.push(f),p===1&&y&&Pm.set(f,!0),v===1&&f.setAttribute(n,"true"),y||f.setAttribute(s,"true")}catch(g){console.error("aria-hidden: cannot operate on ",f,g)}})};return u(t),l.clear(),Iy++,function(){o.forEach(function(h){var f=Al.get(h)-1,m=i.get(h)-1;Al.set(h,f),i.set(h,m),f||(Pm.has(h)||h.removeAttribute(s),Pm.delete(h)),m||h.removeAttribute(n)}),Iy--,Iy||(Al=new WeakMap,Al=new WeakMap,Pm=new WeakMap,Am={})}},Ig=function(e,t,n){n===void 0&&(n="data-aria-hidden");var s=Array.from(Array.isArray(e)?e:[e]),a=dz(e);return a?(s.push.apply(s,Array.from(a.querySelectorAll("[aria-live]"))),hz(s,a,n,"aria-hidden")):function(){return null}},ra=function(){return ra=Object.assign||function(t){for(var n,s=1,a=arguments.length;s<a;s++){n=arguments[s];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},ra.apply(this,arguments)};function $$(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,s=Object.getOwnPropertySymbols(e);a<s.length;a++)t.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(e,s[a])&&(n[s[a]]=e[s[a]]);return n}function mz(e,t,n){if(n||arguments.length===2)for(var s=0,a=t.length,i;s<a;s++)(i||!(s in t))&&(i||(i=Array.prototype.slice.call(t,0,s)),i[s]=t[s]);return e.concat(i||Array.prototype.slice.call(t))}var xf="right-scroll-bar-position",yf="width-before-scroll-bar",fz="with-scroll-bars-hidden",pz="--removed-body-scroll-bar-size";function Ry(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function gz(e,t){var n=j.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(s){var a=n.value;a!==s&&(n.value=s,n.callback(s,a))}}}})[0];return n.callback=t,n.facade}var xz=typeof window<"u"?j.useLayoutEffect:j.useEffect,Hk=new WeakMap;function yz(e,t){var n=gz(null,function(s){return e.forEach(function(a){return Ry(a,s)})});return xz(function(){var s=Hk.get(n);if(s){var a=new Set(s),i=new Set(e),o=n.current;a.forEach(function(l){i.has(l)||Ry(l,null)}),i.forEach(function(l){a.has(l)||Ry(l,o)})}Hk.set(n,e)},[e]),n}function vz(e){return e}function bz(e,t){t===void 0&&(t=vz);var n=[],s=!1,a={read:function(){if(s)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var o=t(i,s);return n.push(o),function(){n=n.filter(function(l){return l!==o})}},assignSyncMedium:function(i){for(s=!0;n.length;){var o=n;n=[],o.forEach(i)}n={push:function(l){return i(l)},filter:function(){return n}}},assignMedium:function(i){s=!0;var o=[];if(n.length){var l=n;n=[],l.forEach(i),o=n}var c=function(){var u=o;o=[],u.forEach(i)},d=function(){return Promise.resolve().then(c)};d(),n={push:function(u){o.push(u),d()},filter:function(u){return o=o.filter(u),n}}}};return a}function wz(e){e===void 0&&(e={});var t=bz(null);return t.options=ra({async:!0,ssr:!1},e),t}var O$=function(e){var t=e.sideCar,n=$$(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=t.read();if(!s)throw new Error("Sidecar medium not found");return j.createElement(s,ra({},n))};O$.isSideCarExport=!0;function jz(e,t){return e.useMedium(t),O$}var P$=wz(),My=function(){},Rg=j.forwardRef(function(e,t){var n=j.useRef(null),s=j.useState({onScrollCapture:My,onWheelCapture:My,onTouchMoveCapture:My}),a=s[0],i=s[1],o=e.forwardProps,l=e.children,c=e.className,d=e.removeScrollBar,u=e.enabled,h=e.shards,f=e.sideCar,m=e.noRelative,y=e.noIsolation,p=e.inert,v=e.allowPinchZoom,g=e.as,x=g===void 0?"div":g,b=e.gapMode,w=$$(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),N=f,S=yz([n,t]),_=ra(ra({},w),a);return j.createElement(j.Fragment,null,u&&j.createElement(N,{sideCar:P$,removeScrollBar:d,shards:h,noRelative:m,noIsolation:y,inert:p,setCallbacks:i,allowPinchZoom:!!v,lockRef:n,gapMode:b}),o?j.cloneElement(j.Children.only(l),ra(ra({},_),{ref:S})):j.createElement(x,ra({},_,{className:c,ref:S}),l))});Rg.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Rg.classNames={fullWidth:yf,zeroRight:xf};var Nz=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function kz(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Nz();return t&&e.setAttribute("nonce",t),e}function _z(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Sz(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Cz=function(){var e=0,t=null;return{add:function(n){e==0&&(t=kz())&&(_z(t,n),Sz(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ez=function(){var e=Cz();return function(t,n){j.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},A$=function(){var e=Ez(),t=function(n){var s=n.styles,a=n.dynamic;return e(s,a),null};return t},Tz={left:0,top:0,right:0,gap:0},Dy=function(e){return parseInt(e||"",10)||0},$z=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],s=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[Dy(n),Dy(s),Dy(a)]},Oz=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Tz;var t=$z(e),n=document.documentElement.clientWidth,s=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,s-n+t[2]-t[0])}},Pz=A$(),pc="data-scroll-locked",Az=function(e,t,n,s){var a=e.left,i=e.top,o=e.right,l=e.gap;return n===void 0&&(n="margin"),` 598 .`.concat(fz,` { 599 overflow: hidden `).concat(s,`; 600 padding-right: `).concat(l,"px ").concat(s,`; 601 } 602 body[`).concat(pc,`] { 603 overflow: hidden `).concat(s,`; 604 overscroll-behavior: contain; 605 `).concat([t&&"position: relative ".concat(s,";"),n==="margin"&&` 606 padding-left: `.concat(a,`px; 607 padding-top: `).concat(i,`px; 608 padding-right: `).concat(o,`px; 609 margin-left:0; 610 margin-top:0; 611 margin-right: `).concat(l,"px ").concat(s,`; 612 `),n==="padding"&&"padding-right: ".concat(l,"px ").concat(s,";
612")].filter(Boolean).join(""),` 613 } 614 615 .`).concat(xf,` { 616 right: `).concat(l,"px ").concat(s,`; 617 } 618 619 .`).concat(yf,` { 620 margin-right: `).concat(l,"px ").concat(s,`; 621 } 622 623 .`).concat(xf," .").concat(xf,` { 624 right: 0 `).concat(s,`; 625 } 626 627 .`).concat(yf," .").concat(yf,` { 628 margin-right: 0 `).concat(s,`; 629 } 630 631 body[`).concat(pc,`] { 632 `).concat(pz,": ").concat(l,`px; 633 } 634`)},zk=function(){var e=parseInt(document.body.getAttribute(pc)||"0",10);return isFinite(e)?e:0},Iz=function(){j.useEffect(function(){return document.body.setAttribute(pc,(zk()+1).toString()),function(){var e=zk()-1;e<=0?document.body.removeAttribute(pc):document.body.setAttribute(pc,e.toString())}},[])},Rz=function(e){var t=e.noRelative,n=e.noImportant,s=e.gapMode,a=s===void 0?"margin":s;Iz();var i=j.useMemo(function(){return Oz(a)},[a]);return j.createElement(Pz,{styles:Az(i,!t,a,n?"":"!important")})},l0=!1;if(typeof window<"u")try{var Im=Object.defineProperty({},"passive",{get:function(){return l0=!0,!0}});window.addEventListener("test",Im,Im),window.removeEventListener("test",Im,Im)}catch{l0=!1}var Il=l0?{passive:!1}:!1,Mz=function(e){return e.tagName==="TEXTAREA"},I$=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Mz(e)&&n[t]==="visible")},Dz=function(e){return I$(e,"overflowY")},Fz=function(e){return I$(e,"overflowX")},Gk=function(e,t){var n=t.ownerDocument,s=t;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var a=R$(e,s);if(a){var i=M$(e,s),o=i[1],l=i[2];if(o>l)return!0}s=s.parentNode}while(s&&s!==n.body);return!1},Lz=function(e){var t=e.scrollTop,n=e.scrollHeight,s=e.clientHeight;return[t,n,s]},Bz=function(e){var t=e.scrollLeft,n=e.scrollWidth,s=e.clientWidth;return[t,n,s]},R$=function(e,t){return e==="v"?Dz(t):Fz(t)},M$=function(e,t){return e==="v"?Lz(t):Bz(t)},Wz=function(e,t){return e==="h"&&t==="rtl"?-1:1},Uz=function(e,t,n,s,a){var i=Wz(e,window.getComputedStyle(t).direction),o=i*s,l=n.target,c=t.contains(l),d=!1,u=o>0,h=0,f=0;do{if(!l)break;var m=M$(e,l),y=m[0],p=m[1],v=m[2],g=p-v-i*y;(y||g)&&R$(e,l)&&(h+=g,f+=y);var x=l.parentNode;l=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return(u&&(Math.abs(h)<1||!a)||!u&&(Math.abs(f)<1||!a))&&(d=!0),d},Rm=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Yk=function(e){return[e.deltaX,e.deltaY]},Vk=function(e){return e&&"current"in e?e.current:e},qz=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Hz=function(e){return` 635 .block-interactivity-`.concat(e,` {pointer-events: none;} 636 .allow-interactivity-`).concat(e,` {pointer-events: all;} 637`)},zz=0,Rl=[];function Gz(e){var t=j.useRef([]),n=j.useRef([0,0]),s=j.useRef(),a=j.useState(zz++)[0],i=j.useState(A$)[0],o=j.useRef(e);j.useEffect(function(){o.current=e},[e]),j.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var p=mz([e.lockRef.current],(e.shards||[]).map(Vk),!0).filter(Boolean);return p.forEach(function(v){return v.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),p.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var l=j.useCallback(function(p,v){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!o.current.allowPinchZoom;var g=Rm(p),x=n.current,b="deltaX"in p?p.deltaX:x[0]-g[0],w="deltaY"in p?p.deltaY:x[1]-g[1],N,S=p.target,_=Math.abs(b)>Math.abs(w)?"h":"v";if("touches"in p&&_==="h"&&S.type==="range")return!1;var C=Gk(_,S);if(!C)return!0;if(C?N=_:(N=_==="v"?"h":"v",C=Gk(_,S)),!C)return!1;if(!s.current&&"changedTouches"in p&&(b||w)&&(s.current=N),!N)return!0;var $=s.current||N;return Uz($,v,p,$==="h"?b:w,!0)},[]),c=j.useCallback(function(p){var v=p;if(!(!Rl.length||Rl[Rl.length-1]!==i)){var g="deltaY"in v?Yk(v):Rm(v),x=t.current.filter(function(N){return N.name===v.type&&(N.target===v.target||v.target===N.shadowParent)&&qz(N.delta,g)})[0];if(x&&x.should){v.cancelable&&v.preventDefault();return}
vendor: 18,003 bytes, line 637
637if(!x){var b=(o.current.shards||[]).map(Vk).filter(Boolean).filter(function(N){return N.contains(v.target)}),w=b.length>0?l(v,b[0]):!o.current.noIsolation;w&&v.cancelable&&v.preventDefault()}}},[]),d=j.useCallback(function(p,v,g,x){var b={name:p,delta:v,target:g,should:x,shadowParent:Yz(g)};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(w){return w!==b})},1)},[]),u=j.useCallback(function(p){n.current=Rm(p),s.current=void 0},[]),h=j.useCallback(function(p){d(p.type,Yk(p),p.target,l(p,e.lockRef.current))},[]),f=j.useCallback(function(p){d(p.type,Rm(p),p.target,l(p,e.lockRef.current))},[]);j.useEffect(function(){return Rl.push(i),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:f}),document.addEventListener("wheel",c,Il),document.addEventListener("touchmove",c,Il),document.addEventListener("touchstart",u,Il),function(){Rl=Rl.filter(function(p){return p!==i}),document.removeEventListener("wheel",c,Il),document.removeEventListener("touchmove",c,Il),document.removeEventListener("touchstart",u,Il)}},[]);var m=e.removeScrollBar,y=e.inert;return j.createElement(j.Fragment,null,y?j.createElement(i,{styles:Hz(a)}):null,m?j.createElement(Rz,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Yz(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Vz=jz(P$,Gz);var Lh=j.forwardRef(function(e,t){return j.createElement(Rg,ra({},e,{ref:t,sideCar:Vz}))});Lh.classNames=Rg.classNames;var c0=["Enter"," "],Kz=["ArrowDown","PageUp","Home"],D$=["ArrowUp","PageDown","End"],Qz=[...Kz,...D$],Zz={ltr:[...c0,"ArrowRight"],rtl:[...c0,"ArrowLeft"]},Xz={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Bh="Menu",[Xu,Jz,eG]=Th(Bh),[wl,F$]=ir(Bh,[eG,mo,pd]),Mg=mo(),L$=pd(),[tG,jl]=wl(Bh),[rG,Wh]=wl(Bh),B$=e=>{const{__scopeMenu:t,open:n=!1,children:s,dir:a,onOpenChange:i,modal:o=!0}=e,l=Mg(t),[c,d]=j.useState(null),u=j.useRef(!1),h=Kt(i),f=bl(a);return j.useEffect(()=>{const m=()=>{u.current=!0,document.addEventListener("pointerdown",y,{capture:!0,once:!0}),document.addEventListener("pointermove",y,{capture:!0,once:!0})},y=()=>u.current=!1;return document.addEventListener("keydown",m,{capture:!0}),()=>{document.removeEventListener("keydown",m,{capture:!0}),document.removeEventListener("pointerdown",y,{capture:!0}),document.removeEventListener("pointermove",y,{capture:!0})}},[]),r.jsx(gg,{...l,children:r.jsx(tG,{scope:t,open:n,onOpenChange:h,content:c,onContentChange:d,children:r.jsx(rG,{scope:t,onClose:j.useCallback(()=>h(!1),[h]),isUsingKeyboardRef:u,dir:f,modal:o,children:s})})})};B$.displayName=Bh;var nG="MenuAnchor",tj=j.forwardRef((e,t)=>{const{__scopeMenu:n,...s}=e,a=Mg(n);return r.jsx(Ah,{...a,...s,ref:t})});tj.displayName=nG;var rj="MenuPortal",[sG,W$]=wl(rj,{forceMount:void 0}),U$=e=>{const{__scopeMenu:t,forceMount:n,children:s,container:a}=e,i=jl(rj,t);return r.jsx(sG,{scope:t,forceMount:n,children:r.jsx(or,{present:n||i.open,children:r.jsx(sd,{asChild:!0,container:a,children:s})})})};U$.displayName=rj;var ts="MenuContent",[aG,nj]=wl(ts),q$=j.forwardRef((e,t)=>{const n=W$(ts,e.__scopeMenu),{forceMount:s=n.forceMount,...a}=e,i=jl(ts,e.__scopeMenu),o=Wh(ts,e.__scopeMenu);return r.jsx(Xu.Provider,{scope:e.__scopeMenu,children:r.jsx(or,{present:s||i.open,children:r.jsx(Xu.Slot,{scope:e.__scopeMenu,children:o.modal?r.jsx(iG,{...a,ref:t}):r.jsx(oG,{...a,ref:t})})})})}),iG=j.forwardRef((e,t)=>{const n=jl(ts,e.__scopeMenu),s=j.useRef(null),a=Ge(t,s);return j.useEffect(()=>{const i=s.current;if(i)return Ig(i)},[]),r.jsx(sj,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:me(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),oG=j.forwardRef((e,t)=>{const n=jl(ts,e.__scopeMenu);return r.jsx(sj,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),lG=Xi("MenuContent.ScrollLock"),sj=j.forwardRef((e,t)=>{const{__scopeMenu:n,loop:s=!1,trapFocus:a,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:l,onEntryFocus:c,onEscapeKeyDown:d,onPointerDownOutside:u,onFocusOutside:h,onInteractOutside:f,onDismiss:m,disableOutsideScroll:y,...p}=e,v=jl(ts,n),g=Wh(ts,n),x=Mg(n),b=L$(n),w=Jz(n),[N,S]=j.useState(null),_=j.useRef(null),C=Ge(t,_,v.onContentChange),$=j.useRef(0),k=j.useRef(""),E=j.useRef(0),T=j.useRef(null),O=j.useRef("right"),A=j.useRef(0),U=y?Lh:j.Fragment,z=y?{as:lG,allowPinchZoom:!0}:void 0,W=R=>{var M,Q;const D=k.current+R,P=w().filter(X=>!X.disabled),I=document.activeElement,F=(M=P.find(X=>X.ref.current===I))==null?void 0:M.textValue,Y=P.map(X=>X.textValue),H=bG(Y,D,F),L=(Q=P.find(X=>X.textValue===H))==null?void 0:Q.ref.current;(function X(re){k.current=re,window.clearTimeout($.current),re!==""&&($.current=window.setTimeout(()=>X(""),1e3))})(D),L&&setTimeout(()=>L.focus())};j.useEffect(()=>()=>window.clearTimeout($.current),[]),Ag();const B=j.useCallback(R=>{var P,I;return O.current===((P=T.current)==null?void 0:P.side)&&jG(R,(I=T.current)==null?void 0:I.area)},[]);return r.jsx(aG,{scope:n,searchRef:k,onItemEnter:j.useCallback(R=>{B(R)&&R.preventDefault()},[B]),onItemLeave:j.useCallback(R=>{var D;B(R)||((D=_.current)==null||D.focus(),S(null))},[B]),onTriggerLeave:j.useCallback(R=>{B(R)&&R.preventDefault()},[B]),pointerGraceTimerRef:E,onPointerGraceIntentChange:j.useCallback(R=>{T.current=R},[]),children:r.jsx(U,{...z,children:r.jsx(Dh,{asChild:!0,trapped:a,onMountAutoFocus:me(i,R=>{var D;R.preventDefault(),(D=_.current)==null||D.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:r.jsx(gl,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:d,onPointerDownOutside:u,onFocusOutside:h,onInteractOutside:f,onDismiss:m,children:r.jsx(Jw,{asChild:!0,...b,dir:g.dir,orientation:"vertical",loop:s,currentTabStopId:N,onCurrentTabStopIdChange:S,onEntryFocus:me(c,R=>{g.isUsingKeyboardRef.current||R.preventDefault()}),preventScrollOnEntryFocus:!0,children:r.jsx(xg,{role:"menu","aria-orientation":"vertical","data-state":a6(v.open),"data-radix-menu-content":"",dir:g.dir,...x,...p,ref:C,style:{outline:"none",...p.style},onKeyDown:me(p.onKeyDown,R=>{const P=R.target.closest("[data-radix-menu-content]")===R.currentTarget,I=R.ctrlKey||R.altKey||R.metaKey,F=R.key.length===1;P&&(R.key==="Tab"&&R.preventDefault(),!I&&F&&W(R.key));const Y=_.current;if(R.target!==Y||!Qz.includes(R.key))return;R.preventDefault();const L=w().filter(M=>!M.disabled).map(M=>M.ref.current);D$.includes(R.key)&&L.reverse(),yG(L)}),onBlur:me(e.onBlur,R=>{R.currentTarget.contains(R.target)||(window.clearTimeout($.current),k.current="")}),onPointerMove:me(e.onPointerMove,Ju(R=>{const D=R.target,P=A.current!==R.clientX;if(R.currentTarget.contains(D)&&P){const I=R.clientX>A.current?"right":"left";O.current=I,A.current=R.clientX}}))})})})})})})});q$.displayName=ts;var cG="MenuGroup",aj=j.forwardRef((e,t)=>{const{__scopeMenu:n,...s}=e;return r.jsx(we.div,{role:"group",...s,ref:t})});aj.displayName=cG;var dG="MenuLabel",H$=j.forwardRef((e,t)=>{const{__scopeMenu:n,...s}=e;return r.jsx(we.div,{...s,ref:t})});H$.displayName=dG;var cp="MenuItem",Kk="menu.itemSelect",Dg=j.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:s,...a}=e,i=j.useRef(null),o=Wh(cp,e.__scopeMenu),l=nj(cp,e.__scopeMenu),c=Ge(t,i),d=j.useRef(!1),u=()=>{const h=i.current;if(!n&&h){const f=new CustomEvent(Kk,{bubbles:!0,cancelable:!0});h.addEventListener(Kk,m=>s==null?void 0:s(m),{once:!0}),uw(h,f),f.defaultPrevented?d.current=!1:o.onClose()}};return r.jsx(z$,{...a,ref:c,disabled:n,onClick:me(e.onClick,u),onPointerDown:h=>{var f;(f=e.onPointerDown)==null||f.call(e,h),d.current=!0},onPointerUp:me(e.onPointerUp,h=>{var f;d.current||(f=h.currentTarget)==null||f.click()}),onKeyDown:me(e.onKeyDown,h=>{const f=l.searchRef.current!=="";n||f&&h.key===" "||c0.includes(h.key)&&(h.currentTarget.click(),h.preventDefault())})})});Dg.displayName=cp;var z$=j.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:s=!1,textValue:a,...i}=e,o=nj(cp,n),l=L$(n),c=j.useRef(null),d=Ge(t,c),[u,h]=j.useState(!1),[f,m]=j.useState("");return j.useEffect(()=>{const y=c.current;y&&m((y.textContent??"").trim())},[i.children]),r.jsx(Xu.ItemSlot,{scope:n,disabled:s,textValue:a??f,children:r.jsx(ej,{asChild:!0,...l,focusable:!s,children:r.jsx(we.div,{role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":s||void 0,"data-disabled":s?"":void 0,...i,ref:d,onPointerMove:me(e.onPointerMove,Ju(y=>{s?o.onItemLeave(y):(o.onItemEnter(y),y.defaultPrevented||y.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:me(e.onPointerLeave,Ju(y=>o.onItemLeave(y))),onFocus:me(e.onFocus,()=>h(!0)),onBlur:me(e.onBlur,()=>h(!1))})})})}),uG="MenuCheckboxItem",G$=j.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:s,...a}=e;return r.jsx(Z$,{scope:e.__scopeMenu,checked:n,children:r.jsx(Dg,{role:"menuitemcheckbox","aria-checked":dp(n)?"mixed":n,...a,ref:t,"data-state":oj(n),onSelect:me(a.onSelect,()=>s==null?void 0:s(dp(n)?!0:!n),{checkForDefaultPrevented:!1})})})});G$.displayName=uG;var Y$="MenuRadioGroup",[hG,mG]=wl(Y$,{value:void 0,onValueChange:()=>{}}),V$=j.forwardRef((e,t)=>{const{value:n,onValueChange:s,...a}=e,i=Kt(s);return r.jsx(hG,{scope:e.__scopeMenu,value:n,onValueChange:i,children:r.jsx(aj,{...a,ref:t})})});V$.displayName=Y$;var K$="MenuRadioItem",Q$=j.forwardRef((e,t)=>{const{value:n,...s}=e,a=mG(K$,e.__scopeMenu),i=n===a.value;return r.jsx(Z$,{scope:e.__scopeMenu,checked:i,children:r.jsx(Dg,{role:"menuitemradio","aria-checked":i,...s,ref:t,"data-state":oj(i),onSelect:me(s.onSelect,()=>{var o;return(o=a.onValueChange)==null?void 0:o.call(a,n)},{checkForDefaultPrevented:!1})})})});Q$.displayName=K$;var ij="MenuItemIndicator",[Z$,fG]=wl(ij,{checked:!1}),X$=j.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:s,...a}=e,i=fG(ij,n);return r.jsx(or,{present:s||dp(i.checked)||i.checked===!0,children:r.jsx(we.span,{...a,ref:t,"data-state":oj(i.checked)})})});X$.displayName=ij;var pG="MenuSeparator",J$=j.forwardRef((e,t)=>{const{__scopeMenu:n,...s}=e;return r.jsx(we.div,{role:"separator","aria-orientation":"horizontal",...s,ref:t})});J$.displayName=pG;var gG="MenuArrow",e6=j.forwardRef((e,t)=>{const{__scopeMenu:n,...s}=e,a=Mg(n);return r.jsx(yg,{...a,...s,ref:t})});e6.displayName=gG;var xG="MenuSub",[Vge,t6]=wl(xG),iu="MenuSubTrigger",r6=j.forwardRef((e,t)=>{const n=jl(iu,e.__scopeMenu),s=Wh(iu,e.__scopeMenu),a=t6(iu,e.__scopeMenu),i=nj(iu,e.__scopeMenu),o=j.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:c}=i,d={__scopeMenu:e.__scopeMenu},u=j.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);return j.useEffect(()=>u,[u]),j.useEffect(()=>{const h=l.current;return()=>{window.clearTimeout(h),c(null)}},[l,c]),r.jsx(tj,{asChild:!0,...d,children:r.jsx(z$,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":a.contentId,"data-state":a6(n.open),...e,ref:qa(t,a.onTriggerChange),onClick:h=>{var f;(f=e.onClick)==null||f.call(e,h),!(e.disabled||h.defaultPrevented)&&(h.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:me(e.onPointerMove,Ju(h=>{i.onItemEnter(h),!h.defaultPrevented&&!e.disabled&&!n.open&&!o.current&&(i.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:me(e.onPointerLeave,Ju(h=>{var m,y;u();const f=(m=n.content)==null?void 0:m.getBoundingClientRect();if(f){const p=(y=n.content)==null?void 0:y.dataset.side,v=p==="right",g=v?-5:5,x=f[v?"left":"right"],b=f[v?"right":"left"];i.onPointerGraceIntentChange({area:[{x:h.clientX+g,y:h.clientY},{x,y:f.top},{x:b,y:f.top},{x:b,y:f.bottom},{x,y:f.bottom}],side:p}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(h),h.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:me(e.onKeyDown,h=>{var m;const f=i.searchRef.current!=="";e.disabled||f&&h.key===" "||Zz[s.dir].includes(h.key)&&(n.onOpenChange(!0),(m=n.content)==null||m.focus(),h.preventDefault())})})})});r6.displayName=iu;var n6="MenuSubContent",s6=j.forwardRef((e,t)=>{const n=W$(ts,e.__scopeMenu),{forceMount:s=n.forceMount,...a}=e,i=jl(ts,e.__scopeMenu),o=Wh(ts,e.__scopeMenu),l=t6(n6,e.__scopeMenu),c=j.useRef(null),d=Ge(t,c);return r.jsx(Xu.Provider,{scope:e.__scopeMenu,children:r.jsx(or,{present:s||i.open,children:r.jsx(Xu.Slot,{scope:e.__scopeMenu,children:r.jsx(sj,{id:l.contentId,"aria-labelledby":l.triggerId,...a,ref:d,align:"start",side:o.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:u=>{var h;o.isUsingKeyboardRef.current&&((h=c.current)==null||h.focus()),u.preventDefault()},onCloseAutoFocus:u=>u.preventDefault(),onFocusOutside:me(e.onFocusOutside,u=>{u.target!==l.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:me(e.onEscapeKeyDown,u=>{o.onClose(),u.preventDefault()}),onKeyDown:me(e.onKeyDown,u=>{var m;const h=u.currentTarget.contains(u.target),f=Xz[o.dir].includes(u.key);h&&f&&(i.onOpenChange(!1),(m=l.trigger)==null||m.focus(),u.preventDefault())})})})})})});s6.displayName=n6;function a6(e){return e?"open":"closed"}function dp(e){return e==="indeterminate"}function oj(e){return dp(e)?"indeterminate":e?"checked":"unchecked"}function yG(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function vG(e,t){return e.map((n,s)=>e[(t+s)%e.length])}function bG(e,t,n){const a=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let o=vG(e,Math.max(i,0));a.length===1&&(o=o.filter(d=>d!==n));const c=o.find(d=>d.toLowerCase().startsWith(a.toLowerCase()));return c!==n?c:void 0}function wG(e,t){const{x:n,y:s}=e;let a=!1;for(let i=0,o=t.length-1;i<t.length;o=i++){const l=t[i],c=t[o],d=l.x,u=l.y,h=c.x,f=c.y;u>s!=f>s&&n<(h-d)*(s-u)/(f-u)+d&&(a=!a)}return a}function jG(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return wG(n,t)}function Ju(e){return t=>t.pointerType==="mouse"?e(t):void 0}var NG=B$,kG=tj,_G=U$,SG=q$,CG=aj,EG=H$,TG=Dg,$G=G$,OG=V$,PG=Q$,AG=X$,IG=J$,RG=e6,MG=r6,DG=s6,Fg="DropdownMenu",[FG,Kge]=ir(Fg,[F$]),an=F$(),[LG,i6]=FG(Fg),o6=e=>{const{__scopeDropdownMenu:t,children:n,dir:s,open:a,defaultOpen:i,onOpenChange:o,modal:l=!0}=e,c=an(t),d=j.useRef(null),[u,h]=Xr({prop:a,defaultProp:i??!1,onChange:o,caller:Fg});return r.jsx(LG,{scope:t,triggerId:ar(),triggerRef:d,contentId:ar(),open:u,onOpenChange:h,onOpenToggle:j.useCallback(()=>h(f=>!f),[h]),modal:l,children:r.jsx(NG,{...c,open:u,onOpenChange:h,dir:s,modal:l,children:n})})};o6.displayName=Fg;var l6="DropdownMenuTrigger",c6=j.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:s=!1,...a}=e,i=i6(l6,n),o=an(n);return r.jsx(kG,{asChild:!0,...o,children:r.jsx(we.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":s?"":void 0,disabled:s,...a,ref:qa(t,i.triggerRef),onPointerDown:me(e.onPointerDown,l=>{!s&&l.button===0&&l.ctrlKey===!1&&(i.onOpenToggle(),i.open||l.preventDefault())}),onKeyDown:me(e.onKeyDown,l=>{s||(["Enter"," "].includes(l.key)&&i.onOpenToggle(),l.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(l.key)&&l.preventDefault())})})})});c6.displayName=l6;var BG="DropdownMenuPortal",d6=e=>{const{__scopeDropdownMenu:t,...n}=e,s=an(t);return r.jsx(_G,{...s,...n})};d6.displayName=BG;var u6="DropdownMenuContent",h6=j.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...s}=e,a=i6(u6,n),i=an(n),o=j.useRef(!1);return r.jsx(SG,{id:a.contentId,"aria-labelledby":a.triggerId,...i,...s,ref:t,onCloseAutoFocus:me(e.onCloseAutoFocus,l=>{var c;o.current||(c=a.triggerRef.current)==null||c.focus(),o.current=!1,l.preventDefault()}),onInteractOutside:me(e.onInteractOutside,l=>{const c=l.detail.originalEvent,d=c.button===0&&c.ctrlKey===!0,u=c.button===2||d;(!a.modal||u)&&(o.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});h6.displayName=u6;var WG="DropdownMenuGroup",UG=j.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...s}=e,a=an(n);return r.jsx(CG,{...a,...s,ref:t})});UG.displayName=WG;var qG="DropdownMenuLabel",m6=j.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...s}=e,a=an(n);return r.jsx(EG,{...a,...s,ref:t})});m6.displayName=qG;var HG="DropdownMenuItem",f6=j.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...s}=e,a=an(n);return r.jsx(TG,{...a,...s,ref:t})});f6.displayName=HG;var zG="DropdownMenuCheckboxItem",p6=j.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...s}=e,a=an(n);return r.jsx($G,{...a,...s,ref:t})});p6.displayName=zG;var GG="DropdownMenuRadioGroup",YG=j.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...s}=e,a=an(n);return r.jsx(OG,{...a,...s,ref:t})});YG.displayName=GG;var VG="DropdownMenuRadioItem",g6=j.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...s}=e,a=an(n);return r.jsx(PG,{...a,...s,ref:t})});g6.displayName=VG;var KG="DropdownMenuItemIndicator",x6=j.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...s}=e,a=an(n);return r.jsx(AG,{...a,...s,ref:t})});x6.displayName=KG;var QG="DropdownMenuSeparator",y6=j.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...s}=e,a=an(n);return r.jsx(IG,{...a,...s,ref:t})});y6.displayName=QG;var ZG="DropdownMenuArrow",XG=j.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...s}=e,a=an(n);return r.jsx(RG,{...a,...s,ref:t})});XG.displayName=ZG;var JG="DropdownMenuSubTrigger",v6=j.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...s}=e,a=an(n);return r.jsx(MG,{...a,...s,ref:t})});v6.displayName=JG;var eY="DropdownMenuSubContent",b6=j.forwardRef((e,t)=>
637{const{__scopeDropdownMenu:n,...s}=e,a=an(n);return r.jsx(DG,{...a,...s,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});b6.displayName=eY;var tY=o6,rY=c6,nY=d6,w6=h6,j6=m6,N6=f6,k6=p6,_6=g6,S6=x6,C6=y6,E6=v6,T6=b6;const sY=tY,aY=rY,iY=j.forwardRef(({className:e,inset:t,children:n,...s},a)=>r.jsxs(E6,{ref:a,className:le("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[state=open]:bg-accent focus:bg-accent",t&&"pl-8",e),...s,children:[n,r.jsx(lg,{className:"ml-auto h-4 w-4"})]}));iY.displayName=E6.displayName;const oY=j.forwardRef(({className:e,...t},n)=>r.jsx(T6,{ref:n,className:le("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));oY.displayName=T6.displayName;const $6=j.forwardRef(({className:e,sideOffset:t=4,...n},s)=>r.jsx(nY,{children:r.jsx(w6,{ref:s,sideOffset:t,className:le("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));$6.displayName=w6.displayName;const d0=j.forwardRef(({className:e,inset:t,...n},s)=>r.jsx(N6,{ref:s,className:le("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",t&&"pl-8",e),...n}));d0.displayName=N6.displayName;const lY=j.forwardRef(({className:e,children:t,checked:n,...s},a)=>r.jsxs(k6,{ref:a,className:le("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),checked:n,...s,children:[r.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:r.jsx(S6,{children:r.jsx(_e,{className:"h-4 w-4"})})}),t]}));lY.displayName=k6.displayName;const cY=j.forwardRef(({className:e,children:t,...n},s)=>r.jsxs(_6,{ref:s,className:le("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),...n,children:[r.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:r.jsx(S6,{children:r.jsx(oE,{className:"h-2 w-2 fill-current"})})}),t]}));cY.displayName=_6.displayName;const dY=j.forwardRef(({className:e,inset:t,...n},s)=>r.jsx(j6,{ref:s,className:le("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));dY.displayName=j6.displayName;const uY=j.forwardRef(({className:e,...t},n)=>r.jsx(C6,{ref:n,className:le("-mx-1 my-1 h-px bg-muted",e),...t}));uY.displayName=C6.displayName;const hY=[{label:"The System",to:"/the-system"},{label:"Proof",to:"/proof"},{label:"Free Tools",to:"/free-tools"},{label:"Book a Call",to:"/book-call"}],Qk=[{label:"Scale Method",sub:"$500Kâ$3M Revenue",to:"/scale"},{label:"Clarity Method",sub:"$300Kâ$500K Revenue",to:"/clarity"},{label:"Essentials Course",sub:"Self-Paced Learning",to:"/essentials"}],_t=()=>{const[e,t]=j.useState(!1),n=()=>t(!1);return r.jsx("header",{className:"fixed top-0 w-full bg-background/95 backdrop-blur-sm border-b border-border z-50",children:r.jsxs("div",{className:"container mx-auto px-6 py-4",children:[r.jsxs("div",{className:"flex items-center justify-between gap-4",children:[r.jsx(ue,{to:"/",onClick:n,className:"flex items-center shrink-0",children:r.jsx("img",{src:"/lovable-uploads/130b8151-697a-4bf1-b5f6-23b99ffc2333.png",alt:"Simple Operations",className:"w-44 h-auto cursor-pointer"})}),r.jsxs("nav",{className:"hidden lg:flex items-center space-x-7",children:[r.jsx(ue,{to:"/the-system",className:"text-muted-foreground hover:text-foreground transition-colors text-sm font-medium",children:"The System"}),r.jsxs(sY,{children:[r.jsxs(aY,{className:"flex items-center gap-1 text-muted-foreground hover:text-foreground transition-colors text-sm font-medium",children:["Work With Us",r.jsx(Ka,{className:"h-4 w-4"})]}),r.jsxs($6,{className:"bg-background border border-border shadow-lg z-50 w-72",children:[Qk.map(s=>r.jsx(d0,{asChild:!0,children:r.jsxs(ue,{to:s.to,className:"w-full flex flex-col items-start py-2",children:[r.jsx("span",{className:"font-semibold text-foreground",children:s.label}),r.jsx("span",{className:"text-xs text-muted-foreground",children:s.sub})]})},s.to)),r.jsx(d0,{asChild:!0,children:r.jsx(ue,{to:"/compare",className:"w-full text-sm text-primary",children:"Compare programs â"})})]})]}),r.jsx(ue,{to:"/proof",className:"text-muted-foreground hover:text-foreground transition-colors text-sm font-medium",children:"Proof"}),r.jsx(ue,{to:"/free-tools",className:"text-muted-foreground hover:text-foreground transition-colors text-sm font-medium",children:"Free Tools"}),r.jsx(ue,{to:"/book-call",className:"text-muted-foreground hover:text-foreground transition-colors text-sm font-medium",children:"Book a Call"})]}),r.jsxs("div",{className:"hidden lg:flex items-center space-x-3",children:[r.jsx(te,{variant:"outline",size:"sm",className:"border-2 border-primary text-primary hover:bg-primary hover:text-primary-foreground font-semibold min-h-[40px] whitespace-nowrap text-xs xl:text-sm",asChild:!0,children:r.jsx(ue,{to:"/assessment",children:"Find Your Bottleneck"})}),r.jsx(te,{variant:"hero",size:"sm",className:"min-h-[40px]",asChild:!0,children:r.jsx(ue,{to:"/apply",children:"Apply Now"})})]}),r.jsx("button",{onClick:()=>t(s=>!s),className:"lg:hidden p-2 text-foreground hover:text-primary transition-colors","aria-label":"Toggle menu",children:e?r.jsx(Ft,{className:"h-6 w-6"}):r.jsx(D7,{className:"h-6 w-6"})})]}),e&&r.jsx("div",{className:"lg:hidden mt-4 pb-4 border-t border-border",children:r.jsxs("nav",{className:"flex flex-col space-y-1 pt-4",children:[r.jsx(ue,{to:"/the-system",onClick:n,className:"text-foreground hover:text-primary transition-colors py-3 font-medium",children:"The System"}),r.jsxs("div",{className:"pt-2",children:[r.jsx("p",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider mb-2",children:"Work With Us"}),Qk.map(s=>r.jsxs(ue,{to:s.to,onClick:n,className:"block py-2 pl-4 text-muted-foreground hover:text-foreground",children:[r.jsx("span",{className:"font-medium text-foreground",children:s.label}),r.jsx("span",{className:"block text-xs text-muted-foreground",children:s.sub})]},s.to)),r.jsx(ue,{to:"/compare",onClick:n,className:"block py-2 pl-4 text-sm text-primary",children:"Compare programs â"})]}),hY.slice(1).map(s=>r.jsx(ue,{to:s.to,onClick:n,className:"text-foreground hover:text-primary transition-colors py-3 font-medium border-t border-border/40",children:s.label},s.to)),r.jsxs("div",{className:"flex flex-col space-y-3 pt-4 border-t border-border",children:[r.jsx(te,{variant:"outline",size:"sm",className:"border-2 border-primary text-primary hover:bg-primary hover:text-primary-foreground font-semibold min-h-[44px]",asChild:!0,children:r.jsx(ue,{to:"/assessment",onClick:n,children:"Find Your Bottleneck"})}),r.jsx(te,{variant:"hero",size:"sm",className:"min-h-[44px]",asChild:!0,children:r.jsx(ue,{to:"/apply",onClick:n,children:"Apply Now"})})]})]})})]})})},ht=()=>r.jsx("footer",{className:"bg-section-light border-t border-border py-12",children:r.jsxs("div",{className:"container mx-auto px-6",children:[r.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-5 ga
637p-6 sm:gap-8",children:[r.jsxs("div",{className:"space-y-4 lg:col-span-1",children:[r.jsx(ue,{to:"/",className:"block",children:r.jsx("img",{src:"/lovable-uploads/130b8151-697a-4bf1-b5f6-23b99ffc2333.png",alt:"Simple Operations",className:"block -mt-5 w-56 h-auto cursor-pointer"})}),r.jsx("p",{className:"text-muted-foreground text-sm",children:"Transforming expert-led businesses from chaos to calm through the proven Scale Method & Clarity Method programs."})]}),r.jsxs("div",{className:"space-y-4",children:[r.jsx("h4",{className:"font-semibold text-foreground",children:"Programs"}),r.jsxs("ul",{className:"space-y-2 text-sm",children:[r.jsx("li",{children:r.jsx(ue,{to:"/scale",className:"text-muted-foreground hover:text-primary transition-colors",children:"Scale Method ($500Kâ$3M+)"})}),r.jsx("li",{children:r.jsx(ue,{to:"/clarity",className:"text-muted-foreground hover:text-primary transition-colors",children:"Clarity Method ($300Kâ$500K)"})}),r.jsx("li",{children:r.jsx(ue,{to:"/essentials",className:"text-muted-foreground hover:text-primary transition-colors",children:"Essentials Course"})}),r.jsx("li",{children:r.jsx(ue,{to:"/compare",className:"text-muted-foreground hover:text-primary transition-colors",children:"Compare Programs"})})]})]}),r.jsxs("div",{className:"space-y-4",children:[r.jsx("h4",{className:"font-semibold text-foreground",children:"Company"}),r.jsxs("ul",{className:"space-y-2 text-sm",children:[r.jsx("li",{children:r.jsx(ue,{to:"/the-system",className:"text-muted-foreground hover:text-primary transition-colors",children:"The System"})}),r.jsx("li",{children:r.jsx(ue,{to:"/team",className:"text-muted-foreground hover:text-primary transition-colors",children:"The Team"})}),r.jsx("li",{children:r.jsx(ue,{to:"/guarantee",className:"text-muted-foreground hover:text-primary transition-colors",children:"Our Guarantee"})}),r.jsx("li",{children:r.jsx(ue,{to:"/contact",className:"text-muted-foreground hover:text-primary transition-colors",children:"Contact"})})]})]}),r.jsxs("div",{className:"space-y-4",children:[r.jsx("h4",{className:"font-semibold text-foreground",children:"Resources"}),r.jsxs("ul",{className:"space-y-2 text-sm",children:[r.jsx("li",{children:r.jsx(ue,{to:"/free-tools",className:"text-muted-foreground hover:text-primary transition-colors",children:"Free Tools & Templates"})}),r.jsx("li",{children:r.jsx(ue,{to:"/so-book",className:"text-muted-foreground hover:text-primary transition-colors",children:"The Book"})}),r.jsx("li",{children:r.jsx("a",{href:"https://blog.simpleoperations.com",className:"text-muted-foreground hover:text-primary transition-colors",target:"_blank",rel:"noopener noreferrer",children:"Blog"})}),r.jsx("li",{children:r.jsx(ue,{to:"/faq",className:"text-muted-foreground hover:text-primary transition-colors",children:"FAQs"})})]})]}),r.jsxs("div",{className:"space-y-4",children:[r.jsx("h4",{className:"font-semibold text-foreground",children:"Get Started"}),r.jsxs("ul",{className:"space-y-2 text-sm",children:[r.jsx("li",{children:r.jsxs(ue,{to:"/assessment",className:"inline-flex items-center gap-2 font-semibold text-primary hover:text-primary/80 transition-colors",children:[r.jsx(Rs,{className:"w-4 h-4"}),"Take the Assessment"]})}),r.jsx("li",{children:r.jsx(ue,{to:"/book-call",className:"text-muted-foreground hover:text-primary transition-colors",children:"Book a Strategy Call"})}),r.jsx("li",{children:r.jsx(ue,{to:"/apply",className:"text-muted-foreground hover:text-primary transition-colors",children:"Apply Now"})}),r.jsx("li",{children:r.jsx("a",{href:"tel:888-303-5057",className:"text-muted-foreground hover:text-primary transition-colors",children:"Call: 888-303-5057"})}),r.jsx("li",{children:r.jsx("a",{href:"https://momentum.simpleoperations.com/c/the-momentum-network/",className:"text-muted-foreground hover:text-primary transition-colors",target:"_blank",rel:"noopener noreferrer",children:"Member Login"})})]})]})]}),r.jsx("div",{className:"border-t border-border mt-8 pt-8",children:r.jsxs("div",{className:"flex flex-col sm:flex-row justify-between items-center space-y-4 sm:sp
637ace-y-0",children:[r.jsx("p",{className:"text-muted-foreground text-sm",children:"© 2026 Simple Operations. All rights reserved."}),r.jsxs("div",{className:"flex flex-col sm:flex-row items-center space-y-2 sm:space-y-0 sm:space-x-6 text-sm",children:[r.jsx(ue,{to:"/guiding-principles",className:"text-muted-foreground hover:text-primary transition-colors",children:"Guiding Principles"}),r.jsx(ue,{to:"/guarantee",className:"text-muted-foreground hover:text-primary transition-colors",children:"Our Guarantee"}),r.jsx(ue,{to:"/privacy-policy",className:"text-muted-foreground hover:text-primary transition-colors",children:"Privacy Policy"}),r.jsx(ue,{to:"/terms-of-service",className:"text-muted-foreground hover:text-primary transition-colors",children:"Terms of Service"})]})]})})]})}),mY=()=>{const[e,t]=j.useState(""),[n,s]=j.useState(!0);if(j.useEffect(()=>{(async()=>{try{const{data:l}=await ve.from("admin_settings").select("setting_value").eq("setting_key","google_analytics_tracking_code").maybeSingle();t((l==null?void 0:l.setting_value)||"")}catch(l){console.error("Error fetching GA settings:",l)}finally{s(!1)}})()},[]),n||!e)return null;const a=e.startsWith("GTM-"),i=e.startsWith("G-");return r.jsx(hd,{children:a?r.jsxs(r.Fragment,{children:[r.jsx("script",{children:` 638 (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': 639 new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], 640 j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
641 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); 642 })(window,document,'script','dataLayer','${e}'); 643 `}),r.jsx("noscript",{children:`<iframe src="https://www.googletagmanager.com/ns.html?id=${e}" 644 height="0" width="0" style="display:none;visibility:hidden"></iframe>`})]}):i?r.jsxs(r.Fragment,{children:[r.jsx("script",{async:!0,src:`https://www.googletagmanager.com/gtag/js?id=${e}`}),r.jsx("script",{children:` 645 window.dataLayer = window.dataLayer || []; 646 function gtag(){dataLayer.push(arguments);} 647 gtag('js', new Date()); 648 gtag('config', '${e}'); 649 `})]}):r.jsxs(r.Fragment,{children:[r.jsx("script",{async:!0,src:"https://www.google-analytics.com/analytics.js"}),r.jsx("script",{children:` 650 (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ 651 (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), 652 m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) 653 })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); 654 ga('create', '${e}', 'auto'); 655 ga('send', 'pageview'); 656 `})]})})},vr=({title:e,description:t,keywords:n,ogImage:s,canonical:a,robots:i,preferProps:o=!1})=>{const{currentSEO:l,loading:c}=s$(),d={title:o?e||(l==null?void 0:l.meta_title)||(l==null?void 0:l.page_title)||"Simple Operations":(l==null?void 0:l.meta_title)||(l==null?void 0:l.page_title)||e||"Simple Operations",description:o?t||(l==null?void 0:l.meta_description)||"":(l==null?void 0:l.meta_description)||t||"",keywords:o?n||(l==null?void 0:l.meta_keywords)||"":(l==null?void 0:l.meta_keywords)||n||"",ogImage:o?s||(l==null?void 0:l.og_image_url)||"":(l==null?void 0:l.og_image_url)||s||"",robots:o?i||(l==null?void 0:l.robots_meta)||"index, follow":(l==null?void 0:l.robots_meta)||i||"index, follow"},u=p=>{if(!p)return"";try{return new URL(p),p}catch{return`${window.location.origin}${p.startsWith("/")?p:`/${p}`}`}},h=u(o?a||(l==null?void 0:l.canonical_url)||window.location.href:(l==null?void 0:l.canonical_url)||a||window.location.href),f=u(d.ogImage),m=d.robots.includes("noindex")||d.robots.includes("none"),y=`${d.title}|${d.description}|${h}|${f}|${d.robots}`;return j.useEffect(()=>{!o&&c||d.title&&(document.title=d.title)},[y,c,o]),!o&&c?null:r.jsxs(r.Fragment,{children:[r.jsx(mY,{}),r.jsxs(hd,{prioritizeSeoTags:!0,children:[r.jsx("title",{children:d.title}),d.description&&r.jsx("meta",{name:"description",content:d.description}),d.keywords&&r.jsx("meta",{name:"keywords",content:d.keywords}),d.robots&&r.jsx("meta",{name:"robots",content:d.robots}),m&&r.jsxs(r.Fragment,{children:[r.jsx("meta",{name:"googlebot",content:"noindex, nofollow, noarchive, nosnippet"}),r.jsx("meta",{name:"bingbot",content:"noindex, nofollow, noarchive, nosnippet"}),r.jsx("meta",{name:"referrer",content:"no-referrer"})]}),h&&r.jsx("link",{rel:"canonical",href:h}),r.jsx("meta",{property:"og:title",content:d.title}),d.description&&r.jsx("meta",{property:"og:description",content:d.description}),r.jsx("meta",{property:"og:type",content:"website"}),h&&r.jsx("meta",{property:"og:url",content:h}),f&&r.jsxs(r.Fragment,{children:[r.jsx("meta",{property:"og:image",content:f}),r.jsx("meta",{property:"og:image:width",content:"1200"}),r.jsx("meta",{property:"og:image:height",content:"630"})]}),r.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),r.jsx("meta",{name:"twitter:title",content:d.title}),d.description&&r.jsx("meta",{name:"twitter:description",content:d.description}),f&&r.jsx("meta",{name:"twitter:image",content:f})]},y)]})},Zk=[{icon:aE,label:"Sales",routedThrough:{icon:gr,label:"Weekly Sync"}},{icon:mE,label:"Hiring",routedThrough:{icon:yl,label:"Role Clarity"}},{icon:$7,label:"Client Issues",routedThrough:{icon:cg,label:"Decision Rights"}},{icon:q7,label:"Operations",routedThrough:{icon:xw,label:"Operating Scorecard"}},{icon:cE,label:"Finance",routedThrough:{icon:Yf,label:"Waterfall Planning"}}],Fy=({icon:e,label:t,tone:n="neutral"})=>r.jsxs("div",{className:["flex items-center gap-2 rounded-full border px-3 py-1.5 text-xs md:text-sm font-medium whitespace-nowrap shadow-sm",n==="primary"?"bg-primary/10 border-primary/30 text-primary":"bg-background border-border text-foreground
656/80"].join(" "),children:[r.jsx(e,{className:"h-3.5 w-3.5 shrink-0","aria-hidden":!0}),r.jsx("span",{children:t})]}),Xk=({tone:e="neutral"})=>{const t=e==="danger"?"text-destructive/70":e==="primary"?"text-primary":"text-foreground/40";return r.jsx(Ue,{className:`h-4 w-4 shrink-0 ${t}`,"aria-hidden":!0})},Jk=({item:e,side:t})=>t==="before"?r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(Fy,{icon:e.icon,label:e.label}),r.jsx(Xk,{tone:"danger"})]}):r.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[r.jsx(Fy,{icon:e.icon,label:e.label}),r.jsx(Xk,{tone:"primary"}),e.routedThrough&&r.jsx(Fy,{icon:e.routedThrough.icon,label:e.routedThrough.label,tone:"primary"})]}),fY=()=>r.jsxs("figure",{className:"max-w-6xl mx-auto pt-4",children:[r.jsx("figcaption",{className:"sr-only",children:"Before: every business function â sales, hiring, client issues, operations, finance â funnels straight to the founder, creating a bottleneck and 60â70 hour weeks. After: the Simple Operations System routes each function through a named component (Weekly Sync, Role Clarity, Decision Rights, Operating Scorecard, Waterfall Planning) so the team runs the business and the founder focuses on strategy."}),r.jsxs("div",{className:"grid md:grid-cols-[1fr_auto_1.15fr] gap-6 md:gap-4 items-stretch",children:[r.jsxs("div",{className:"relative rounded-2xl border border-destructive/20 bg-muted/40 p-6 md:p-8 text-left shadow-sm",children:[r.jsx("div",{className:"flex items-center gap-2 mb-1",children:r.jsx("span",{className:"text-[10px] uppercase tracking-[0.18em] font-bold text-destructive/80",children:"Today"})}),r.jsxs("h3",{className:"text-lg md:text-xl font-bold text-foreground mb-5",children:["You ",r.jsx("span",{className:"text-destructive",children:"are"})," the system"]}),r.jsxs("div",{className:"flex flex-col md:flex-row items-center md:items-stretch gap-5 md:gap-4",children:[r.jsx("div",{className:"order-2 md:order-1 w-full md:flex-1 flex flex-col gap-2 justify-center",children:Zk.map(e=>r.jsx(Jk,{item:e,side:"before"},e.label))}),r.jsx("div",{className:"order-1 md:order-2 flex flex-col items-center justify-center shrink-0",children:r.jsxs("div",{className:"relative",children:[r.jsx("div",{className:"absolute inset-0 rounded-full bg-destructive/20 blur-xl","aria-hidden":!0}),r.jsxs("div",{className:"relative h-24 w-24 md:h-28 md:w-28 rounded-full bg-background border-2 border-destructive flex flex-col items-center justify-center shadow-md",children:[r.jsx(D2,{className:"h-7 w-7 text-destructive","aria-hidden":!0}),r.jsx("span",{className:"text-[11px] md:text-xs font-bold text-foreground mt-0.5",children:"FOUNDER"}),r.jsxs("span",{className:"text-[9px] md:text-[10px] text-destructive font-semibold flex items-center gap-0.5 mt-0.5",children:[r.jsx(Ji,{className:"h-2.5 w-2.5","aria-hidden":!0})," bottleneck"]})]})]})})]}),r.jsxs("div",{className:"mt-6 pt-5 border-t border-border/60 space-y-2",children:[r.jsxs("p",{className:"flex items-center gap-2 text-sm text-foreground/80",children:[r.jsx(_r,{className:"h-4 w-4 text-destructive shrink-0","aria-hidden":!0}),"60â70 hour weeks"]}),r.jsxs("p",{className:"flex items-center gap-2 text-sm text-foreground/80",children:[r.jsx(_r,{className:"h-4 w-4 text-destructive shrink-0","aria-hidden":!0}),"Every decision waits on you"]})]})]}),r.jsxs("div",{className:"flex md:flex-col items-center justify-center gap-2 py-2 md:py-0",children:[r.jsx("div",{className:"hidden md:block h-px w-6 bg-border"}),r.jsxs("div",{className:"rounded-full bg-primary text-primary-foreground px-4 py-2 text-xs md:text-sm font-bold shadow-md whitespace-nowrap flex items-center gap-2",children:[r.jsx(Ue,{className:"h-4 w-4 md:rotate-0 rotate-90","aria-hidden":!0}),"Install the System"]}),r.jsx("div",{className:"hidden md:block h-px w-6 bg-border"})]}),r.jsxs("div",{className:"relative rounded-2xl border-2 border-primary/30 bg-gradient-to-br from-primary/5 via-background to-primary/5 p-6 md:p-8 text-left shadow-md",children:[r.jsx("div",{className:"flex items-center gap-2 mb-1",children:r.jsx("span",{className:"text-[10px] uppercase tracking-[0.18em] font-bold text-primary",children:"With Simple Operations"})}),r.jsxs("h3",{className:"text-lg md:text-xl font-bold text-foreground mb-5",children:["The ",r.jsx("span",{className:"text-primary",children:"system"})," runs the business"]}),r.jsxs("div",{className:"flex flex-col md:flex-row items-center md:items-stretch gap-5 md:gap-4",children:[r.jsx("div",{className:"order-2 md:order-1 w-full md:flex-1 flex flex-col gap-2 justify-center min-w-0",children:Zk.map(e=>r.jsx(Jk,{item:e,side:"after"},e.label))}),r.jsxs("div",{className:"order-1 md:order-2 flex flex-row md:flex-col items-center justify-center gap-3 shrink-0",children:[r.jsxs("div",{className:"relative",children:[r.jsx("div",{className:"absolute inset-0 rounded-full bg-primary/25 blur-xl","aria-hidden":!0}),r.jsxs("div",{className:"relative h-24 w-24 md:h-28 md:w-28 rounded-full bg-background border-2 border-primary flex flex-col items-center justify-center shadow-md",children:[r.jsx(Wr,{className:"h-7 w-7 text-primary","aria-hidden":!0}),r.jsx("span",{className:"text-[11px] md:text-xs font-bold text-foreground mt-0.5",children:"TEAM"}),r.jsx("span",{className:"text-[9px] md:text-[10px] text-primary font-semibold mt-0.5",children:"runs it"})]})]}),r.jsxs("div",{className:"flex flex-col items-center",children:[r.jsxs("div",{className:"h-12 w-12 md:h-14 md:w-14 roun
656ded-full bg-background border border-primary/40 flex flex-col items-center justify-center shadow-sm",children:[r.jsx(D2,{className:"h-4 w-4 text-primary","aria-hidden":!0}),r.jsx("span",{className:"text-[8px] md:text-[9px] font-semibold text-foreground/70 leading-none mt-0.5",children:"YOU"})]}),r.jsx("span",{className:"text-[10px] md:text-[11px] text-foreground/60 mt-1",children:"on strategy"})]})]})]}),r.jsxs("div",{className:"mt-6 pt-5 border-t border-primary/15 space-y-2",children:[r.jsxs("p",{className:"flex items-center gap-2 text-sm text-foreground/80",children:[r.jsx(bt,{className:"h-4 w-4 text-primary shrink-0","aria-hidden":!0}),"40-hour weeks"]}),r.jsxs("p",{className:"flex items-center gap-2 text-sm text-foreground/80",children:[r.jsx(bt,{className:"h-4 w-4 text-primary shrink-0","aria-hidden":!0}),"First autonomous week by day 90"]})]})]})]})]}),pY=1,gY="1c007e6a-ca34-4acc-aa72-1eadc429ff3e",xY="533b955b-25d6-4c89-83c8-a25dc26f8baf",yY="/__l5e/assets-v1/1c007e6a-ca34-4acc-aa72-1eadc429ff3e/passenger-seat-leadership-cover.jpg",vY="a/v1/533b955b-25d6-4c89-83c8-a25dc26f8baf/1c007e6a-ca34-4acc-aa72-1eadc429ff3e/passenger-seat-leadership-cover.jpg",bY="passenger-seat-leadership-cover.jpg",wY=173565,jY="image/jpeg",NY="2026-06-19T20:35:33Z",lj={version:pY,asset_id:gY,project_id:xY,url:yY,r2_key:vY,original_filename:bY,size:wY,content_type:jY,created_at:NY},u0="Take the 5-Minute Bottleneck Assessment",Mm=({className:e=""})=>r.jsx(te,{asChild:!0,size:"lg",className:`h-14 md:h-[52px] px-8 text-base md:text-lg font-semibold shadow-md hover:shadow-lg hover:-translate-y-0.5 transition-all ${e}`,children:r.jsxs(ue,{to:"/assessment",children:[u0," ",r.jsx(Ue,{className:"ml-2 h-5 w-5"})]})}),kY=()=>{const e=[{icon:yl,title:"Passenger Seat Leadership",desc:"You stop operating, start designing systems."},{icon:gr,title:"Weekly Sync",desc:"Batched communication replaces constant interruptions."},{icon:Yf,title:"Waterfall Planning",desc:"Team knows what matters without asking you."},{icon:cg,title:"Four Levels of Delegation",desc:"Transfer decision rights, not just tasks."},{icon:xw,title:"Operating Scorecard",desc:"See problems before they become crises."}],t=[{label:"Diagnose",desc:"Find your exact bottleneck â not guesswork.",icon:ug},{label:"Design",desc:"Install pre-built operating rhythms â not build from scratch.",icon:A7},{label:"Delegate",desc:"Transfer ownership to your team â not just task lists.",icon:uE}],n=[{name:"Colin T.",industry:"Inspection Services",headline:"$18K/mo â $55K/mo Revenue",before:"Working constantly. Admin side consuming all his time. Couldn't step away.",installed:"OTAs + Waterfall Planning + Daily Huddles",after:"The whole admin side runs by itself now. I didn't touch anything all last week. Revenue went from $18K in January to $55K this month.",timeline:"First chaos-free morning: 90 days"},{name:"Brian B.",industry:"Property Management",headline:"Scaling to $30M Target",before:"Growing fast but processes getting complex. Team waiting on leadership decisions.",installed:"Single Source of Truth dashboard + streamlined processes",after:"We're optimizing what we have⦠making our processes more simple. This should create more time for me.",timeline:"Reengaged leadership team within 60 days"},{name:"Dustin F.",industry:"Marketing Agency",headline:"From Chaos to Confidence",before:"Agency chaos. Insecure about growth. Constant firefighting.",installed:"Clarity Method â foundational security systems",after:"I feel more confident as we implement these things. I'm stressed about things, but I'm very hopeful⦠we'll be in a really good position by end of year.",timeline:"Stability achieved: 30 days"}],s=["$300Kâ$3M revenue, 5â25 team members","You're the daily decision bottleneck","Delegation always comes back to you","You want a proven system (not to build one from scratch)","You can commit 90 days to implementation"],a=["Under $300K revenue (you need sales systems first)","Fewer than 3 team members","Want a quick fix vs. systematic change","Not willing to change how you operate","Already have self-running operations"],i=[{q:"I don't have time to build systems right now.",a:"That's exactly why we built this. The Simple Operations System is pre-built. You're not creating it â you're installing it. Week 1, you're operational. Most founders see their first 'business runs without me' week within 90 days."},{q:"I've tried systems before and they didn't stick.",a:"Most systems fail because they're built on documentation. Nobody reads 50-page SOPs. Ours is built on rhythms â weekly patterns your team actually uses because they make their jobs easier, not harder."},{q:"My business is different / unique.",a:"That's what every founder thinks â until they realize the bottleneck isn't in what you do, it's in how decisions get made. That's universal. We've installed this system in consulting firms, agencies, SaaS companies, professional services, and product businesses. The operating principles are the same."},{q:"What if my team doesn't follow through?",a:"You're not doing this alone. You get a Simple Operations Guide who installs the system side-by-side with you and helps you hire your in-house operator. Your job is to show up to the calls. Plus, adoption is part of the work â we don't hand you a binder and disappear."},{q:"How is this different from EOS / Traction or hiring a COO?",a:"EOS is unproven for sub-$10M founder-led businesses, expensive (minimum $150,000 to install), and requires 2+ years of rollout. Hiring a COO without operating systems just gives you an expensive employee who still depends on you. We install the system first in 90 days, so anyone operating it (including you) has clear structure to work within â without the six-figure price tag or multi-year wait."},{q:"What if this doesn't work for me?",a:"We back every program with a 30-day money-back guarantee. Try the Simple Operations System for 30 days â if you're not completely satisfied with your progress, just send us an email and we'll refund 100% of your investment. No questions asked. No hoops to jump through."}];return r.jsxs("div",{className:"min-h-screen",children:[r.jsx(vr,{title:"Simple Operations System: Scale Past $3M Without the Bottleneck",description:"The 90-day operating system 500+ founders have installed to scale past $3M without becoming the bottleneck. Take the 5-minute Assessment.",keywords:"founder bottleneck, operating system for founders, scale past 3M, simple operations, passenger seat leadership"}),r.jsx(_t,{}),r.jsxs("main",{className:"pt-20",children:[r.jsx("section",{className:"relative py-16 md:py-28 bg-gradient-to-br from-background via-muted/30 to-background",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsxs("div",{className:"max-w-4xl mx-auto text-center space-y-8 animate-fade-in",children:[r.jsxs("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-bold leading-[1.1] tracking-tight",children:["The Simple Operations System: How Founders Scale Past ",r.jsx("span",{className:"text-primary",children:"$3M"})," Without Becoming the Bottleneck"]}
656),r.jsx("p",{className:"text-xl md:text-2xl text-foreground/80 leading-relaxed max-w-3xl mx-auto",children:"You're the bottleneck in your own business. Here's the system that fixes it â in 90 days."}),r.jsx(fY,{}),r.jsx("div",{className:"pt-4",children:r.jsx(Mm,{})}),r.jsxs("ul",{className:"flex flex-col sm:flex-row gap-3 sm:gap-8 justify-center items-center text-sm md:text-base text-foreground/70 pt-2",children:[r.jsxs("li",{className:"flex items-center gap-2",children:[r.jsx(bt,{className:"h-5 w-5 text-primary"})," Installed by 500+ founders"]}),r.jsxs("li",{className:"flex items-center gap-2",children:[r.jsx(bt,{className:"h-5 w-5 text-primary"})," Personalized report sent to your inbox"]}),r.jsxs("li",{className:"flex items-center gap-2",children:[r.jsx(bt,{className:"h-5 w-5 text-primary"})," Discover your #1 constraint in 3 minutes"]})]})]})})}),r.jsx("section",{className:"py-20 md:py-28 bg-background",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsxs("div",{className:"max-w-5xl mx-auto grid md:grid-cols-2 gap-12 items-center",children:[r.jsxs("div",{className:"space-y-6",children:[r.jsxs("p",{className:"text-xl md:text-2xl font-semibold leading-snug",children:["You're doing ",r.jsx("span",{className:"text-primary",children:"$500Kâ$2M"})," in revenue with 10â20 people on your team. And you're still the answer person for everything."]}),r.jsx("p",{className:"text-lg text-foreground/80 leading-relaxed",children:"Every decision waits for you. Every problem lands on your desk. You've hired good people, but it always comes back to you â because you haven't installed an operating system."}),r.jsxs("p",{className:"text-lg font-semibold",children:["This is the ",r.jsx("span",{className:"text-primary",children:"Founder Bottleneck"}),". It's the #1 reason businesses stall between $500K and $3M."]})]}),r.jsxs("div",{className:"bg-muted/40 rounded-2xl p-8 border border-border space-y-4",children:[r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(_r,{className:"h-6 w-6 text-destructive shrink-0 mt-1"}),r.jsx("p",{children:"Every Slack ping requires your input"})]}),r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(_r,{className:"h-6 w-6 text-destructive shrink-0 mt-1"}),r.jsx("p",{children:"Your team waits on you to make calls"})]}),r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(_r,{className:"h-6 w-6 text-destructive shrink-0 mt-1"}),r.jsx("p",{children:"Hiring keeps creating more management work"})]}),r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(_r,{className:"h-6 w-6 text-destructive shrink-0 mt-1"}),r.jsx("p",{children:"You can't take a week off without things breaking"})]})]})]})})}),r.jsx("section",{className:"py-20 md:py-28 bg-muted/40",children:r.jsxs("div",{className:"container mx-auto px-6",children:[r.jsxs("div",{className:"max-w-5xl mx-auto text-center space-y-4 mb-14",children:[r.jsx("h2",{className:"text-3xl md:text-5xl font-bold leading-tight",children:"The Solution Isn't Working Harder or Hiring More People"}),r.jsxs("p",{className:"text-lg md:text-xl text-foreground/80 max-w-3xl mx-auto",children:["It's installing ",r.jsx("strong",{children:"The Simple Operations System"})," â a framework that transforms founder-dependent operations into self-running teams."]})]}),r.jsxs("div",{className:"max-w-6xl mx-auto",children:[r.jsx("h3",{className:"text-2xl md:text-3xl font-bold text-center mb-10",children:"5 Components That Break the Bottleneck"}),r.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-5 gap-5",children:e.map(({icon:o,title:l,desc:c},d)=>r.jsxs(G,{className:"p-6 text-center hover:shadow-lg transition-shadow border-border",children:[r.jsx("div",{className:"inline-flex items-center justify-center w-12 h-12 rounded-full bg-primary/10 text-primary mb-4",children:r.jsx(o,{className:"h-6 w-6"})}),r.jsxs("div",{className:"text-xs font-semibold text-primary mb-1",children:["0",d+1]}),r.jsx("h4",{className:"font-bold text-base mb-2 leading-tight",children:l}),r.jsx("p",{className:"text-sm text-foreground/70 leading-relaxed",children:c})]},l))})]}),r.jsxs("div",{className:"max-w-5xl mx-auto mt-16",children:[r.jsx("h3",{className:"text-2xl md:text-3xl font-bold text-center mb-2",children:"Installation: 90 Days. Three Phases."}),r.jsx("div",{className:"grid md:grid-cols-3 gap-6 mt-8",children:t.map(({label:o,desc:l,icon:c},d)=>r.jsxs("div",{className:"bg-background rounded-xl p-6 border border-border text-center",children:[r.jsx("div",{className:"inline-flex items-center justify-center w-14 h-14 roun
656ded-full bg-primary text-primary-foreground mb-4",children:r.jsx(c,{className:"h-7 w-7"})}),r.jsxs("div",{className:"text-sm font-semibold text-primary mb-1",children:["Phase ",d+1]}),r.jsx("h4",{className:"text-xl font-bold mb-2",children:o}),r.jsx("p",{className:"text-foreground/70",children:l})]},o))}),r.jsx("div",{className:"text-center mt-12",children:r.jsx(Mm,{})})]})]})}),r.jsx("section",{className:"py-20 md:py-28 bg-background",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsxs("div",{className:"max-w-2xl mx-auto text-center space-y-6",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold",children:"Why This System Exists"}),r.jsx("p",{className:"text-xl text-foreground/85 leading-relaxed",children:"I built multi-seven figure businesses while working 70-hour weeks. I was the bottleneck."}),r.jsx("p",{className:"text-lg text-foreground/80 leading-relaxed",children:"Hiring didn't fix it. SOPs didn't fix it. Installing an actual operating system did."}),r.jsxs("p",{className:"text-lg text-foreground/80 leading-relaxed",children:["Now ",r.jsx("strong",{children:"500+ founders"})," have installed the Simple Operations System to scale past $3M while working 40-hour weeks."]}),r.jsx("p",{className:"text-base font-semibold pt-2",children:"â Gabe, CEO"})]})})}),r.jsx("section",{className:"py-16 md:py-20 bg-primary text-primary-foreground",children:r.jsxs("div",{className:"container mx-auto px-6",children:[r.jsx("h2",{className:"text-center text-2xl md:text-3xl font-bold mb-10",children:"Installed By 500+ Founders Between $300Kâ$10M"}),r.jsx("div",{className:"grid sm:grid-cols-3 gap-8 max-w-4xl mx-auto text-center",children:[{icon:Wr,stat:"500+",label:"Founders have installed Simple Operations"},{icon:cE,stat:"$480M+",label:"In new revenue & profits created"},{icon:zt,stat:"15,000+",label:"Hours returned to founders' lives"}].map(({icon:o,stat:l,label:c})=>r.jsxs("div",{className:"space-y-2",children:[r.jsx(o,{className:"h-10 w-10 mx-auto opacity-90"}),r.jsx("div",{className:"text-4xl md:text-5xl font-bold",children:l}),r.jsx("p",{className:"text-primary-foreground/85 text-sm md:text-base",children:c})]},l))})]})}),r.jsx("section",{className:"py-20 md:py-28 bg-muted/40",children:r.jsxs("div",{className:"container mx-auto px-6",children:[r.jsx("div",{className:"max-w-3xl mx-auto text-center mb-14",children:r.jsx("h2",{className:"text-3xl md:text-5xl font-bold",children:"Real Founders. Real Results. Real Freedom."})}),r.jsx("div",{className:"grid md:grid-cols-3 gap-6 max-w-6xl mx-auto",children:n.map(o=>r.jsxs(G,{className:"p-6 flex flex-col bg-background",children:[r.jsx("div",{className:"text-xs font-semibold text-primary uppercase tracking-wide",children:o.industry}),r.jsx("h3",{className:"text-xl font-bold mt-1",children:o.name}),r.jsx("div",{className:"text-lg font-semibold text-primary mt-3",children:o.headline}),r.jsxs("div",{className:"mt-5 space-y-3 text-sm",children:[r.jsxs("div",{children:[r.jsx("div",{className:"font-semibold text-destructive uppercase text-xs tracking-wide mb-1",children:"Before"}),r.jsx("p",{className:"text-foreground/80",children:o.before})]}),r.jsxs("div",{children:[r.jsx("div",{className:"font-semibold uppercase text-xs tracking-wide mb-1",children:"Installed"}),r.jsx("p",{className:"text-foreground/80",children:o.installed})]}),r.jsxs("div",{children:[r.jsx("div",{className:"font-semibold text-[#388E3C] uppercase text-xs tracking-wide mb-1",children:"After"}),r.jsxs("p",{className:"italic text-foreground/85",children:['"',o.after,'"']})]})]}),r.jsx("div",{className:"mt-auto pt-5",children:r.jsxs("div",{className:"bg-[#FFF9C4] text-foreground rounded-md px-3 py-2 text-xs font-semibold flex items-center gap-2",children:[r.jsx(zt,{className:"h-4 w-4 shrink-0"})," ",o.timeline]})})]},o.name))}),r.jsx("div",{className:"text-center mt-12",children:r.jsx(Mm,{})})]})}),r.jsx("section",{className:"py-20 md:py-28 bg-background",children:r.jsxs("div",{className:"container mx-auto px-6",children:[r.jsx("h2",{className:"text-3xl md:text-5xl font-bold text-center mb-14",children:"Is This Right for You?"}),r.jsxs("div",{className:"grid md:grid-cols-2 gap-6 max-w-5xl mx-auto",children:[r.jsxs(G,{className:"p-8 border-2 border-[#388E3C]/30 bg-[#388E3C]/5",children:[r.jsx("h3",{className:"text-xl font-bold mb-6 text-[#388E3C]",children:"â
This Is For You If:"}),r.jsx("ul",{className:"space-y-4",children:s.map(o=>r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(bt,{className:"h-5 w-5 text-[#388E3C] shrink-0 mt-0.5"}),r.jsx("span",{children:o})]},o))})]}),r.jsxs(G,{className:"p-8 border-2 border-destructive/30 bg-destructive/5",children:[r.jsx("h3",{className:"text-xl font-bold mb-6 text-destructive",children:"â Not For You If:"}),r.jsx("ul",{className:"space-y-4",children:a.map(o=>r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(_r,{className:"h-5 w-5 text-destructive shrink-0 mt-0.5"}),r.jsx("span",{children:o})]},o))})]})]})]})}),r.jsx("section",{className:"py-20 md:py-28 bg-muted/40",children:r.jsxs("div",{className:"container mx-auto px-6",children:[r.jsxs("div",{className:"max-w-3xl mx-auto text-center mb-12",children:[r.jsx("h2",{className:"text-3xl md:text-5xl font-bold",children:"Choose Your Path Based on Where You Are"}
656),r.jsxs("p",{className:"mt-4 text-lg text-foreground/75",children:["Not sure which fits?"," ",r.jsx(ue,{to:"/assessment",className:"text-primary font-semibold hover:underline",children:"Take the 5-Minute Bottleneck Assessment â"})]})]}),r.jsxs("div",{className:"grid md:grid-cols-3 gap-6 max-w-6xl mx-auto items-stretch",children:[r.jsxs(G,{className:"p-7 bg-background flex flex-col",children:[r.jsx("div",{className:"text-xs font-bold text-primary uppercase tracking-wide",children:"For: $300Kâ$500K Revenue"}),r.jsx("h3",{className:"text-2xl font-bold mt-2",children:"Clarity Method"}),r.jsx("div",{className:"text-base font-semibold text-foreground/70 mt-1",children:"The 12-Month Foundation Program"}),r.jsx("p",{className:"text-sm text-foreground/80 mt-4",children:"Install core operating rhythms before you scale. Build the foundation now so you don't hit the bottleneck at $1M."}),r.jsx("ul",{className:"text-sm space-y-2 mt-5 flex-1",children:["90-day implementation partnership","Core system installation (Sync, Planning, Delegation)","Weekly accountability calls","Full template library"].map(o=>r.jsxs("li",{className:"flex gap-2",children:[r.jsx(bt,{className:"h-4 w-4 text-primary shrink-0 mt-1"}),r.jsx("span",{children:o})]},o))}),r.jsxs("p",{className:"text-xs text-foreground/70 mt-5",children:[r.jsx("strong",{children:"Best for:"})," Founders who see the bottleneck coming and want to prevent it."]}),r.jsx(te,{asChild:!0,variant:"outline",className:"mt-5 w-full",children:r.jsx(ue,{to:"/clarity",children:"Learn More About Clarity â"})})]}),r.jsxs(G,{className:"p-7 bg-background flex flex-col border-2 border-primary shadow-xl md:scale-[1.03] relative",children:[r.jsxs("div",{className:"absolute -top-3 left-1/2 -translate-x-1/2 bg-primary text-primary-foreground px-3 py-1 rounded-full text-xs font-bold uppercase tracking-wide flex items-center gap-1",children:[r.jsx(Fr,{className:"h-3 w-3 fill-current"})," Most Popular"]}),r.jsx("div",{className:"text-xs font-bold text-primary uppercase tracking-wide",children:"For: $500Kâ$3M Revenue"}),r.jsx("h3",{className:"text-2xl font-bold mt-2",children:"Scale Method"}),r.jsx("div",{className:"text-base font-semibold text-foreground/70 mt-1",children:"The 12-Month Scale Framework"}),r.jsx("p",{className:"text-sm text-foreground/80 mt-4",children:"Build the operating system that lets you scale past $3M without becoming more dependent on you."}),r.jsx("ul",{className:"text-sm space-y-2 mt-5 flex-1",children:["12-month implementation partnership","Simple Operations Guides who install side-by-side with you","Help hiring your in-house operator","Full Simple Operations System (all 5 components)","Weekly Sync, Waterfall Planning, Four Levels of Delegation, Scorecard","Virtual virtual quarterly strategic reviews"].map(o=>r.jsxs("li",{className:"flex gap-2",children:[r.jsx(bt,{className:"h-4 w-4 text-primary shrink-0 mt-1"}),r.jsx("span",{children:o})]},o))}),r.jsxs("p",{className:"text-xs text-foreground/70 mt-5",children:[r.jsx("strong",{children:"Best for:"})," Founders currently stuck as the bottleneck who want complete operational freedom."]}),r.jsx(te,{asChild:!0,className:"mt-5 w-full",children:r.jsx(ue,{to:"/scale",children:"Learn More About Scale â"})})]}),r.jsxs(G,{className:"p-7 bg-background flex flex-col",children:[r.jsx("div",{className:"text-xs font-bold text-primary uppercase tracking-wide",children:"For: Any Revenue Stage"}),r.jsx("h3",{className:"text-2xl font-bold mt-2",children:"Essentials Course"}),r.jsx("div",{className:"text-base font-semibold text-foreground/70 mt-1",children:"Self-Paced Learning"}),r.jsx("p",{className:"text-sm text-foreground/80 mt-4",children:"Learn and implement on your own timeline. Get the frameworks, templates, and training without 1:1 coaching."}),r.jsx("ul",{className:"text-sm space-y-2 mt-5 flex-1",children:["Complete video training library","All templates and frameworks","Self-assessment tools","Email support"].map(o=>r.jsxs("li",{className:"flex gap-2",children:[r.jsx(bt,{className:"h-4 w-4 text-primary shrink-0 mt-1"}),r.jsx("span",{children:o})]},o))}
656),r.jsxs("p",{className:"text-xs text-foreground/70 mt-5",children:[r.jsx("strong",{children:"Best for:"})," Budget-conscious founders who prefer DIY implementation."]}),r.jsx(te,{asChild:!0,variant:"outline",className:"mt-5 w-full",children:r.jsx(ue,{to:"/essentials",children:"Learn More About Essentials â"})})]})]}),r.jsx("div",{className:"text-center mt-12",children:r.jsx(Mm,{})})]})}),r.jsx("section",{className:"py-20 md:py-28 bg-background",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsxs("div",{className:"max-w-3xl mx-auto",children:[r.jsx("h2",{className:"text-3xl md:text-5xl font-bold text-center mb-12",children:"Questions Founders Ask Before Starting"}),r.jsx(xo,{type:"single",collapsible:!0,className:"w-full",children:i.map((o,l)=>r.jsxs(Za,{value:`item-${l}`,children:[r.jsx(Xa,{className:"text-left font-semibold text-base md:text-lg",children:o.q}),r.jsx(Ja,{className:"text-base text-foreground/80 leading-relaxed",children:o.a})]},l))})]})})}),r.jsx("section",{className:"py-20 md:py-28 bg-muted/40",children:r.jsxs("div",{className:"container mx-auto px-6",children:[r.jsx("h2",{className:"text-3xl md:text-5xl font-bold text-center mb-14",children:"What Founders Say After Breaking Their Bottleneck"}),r.jsx("div",{className:"grid md:grid-cols-3 gap-6 max-w-6xl mx-auto",children:[{quote:"I went from working 65-hour weeks to taking my first real vacation in 6 years. My team didn't just survive â they thrived. That's when I kne
656w the system actually worked.",author:"Jennifer M.",role:"$1.2M Marketing Agency"},{quote:"The Weekly Sync alone was worth the investment. We went from constant Slack chaos to everyone knowing exactly what matters this week. I got 15+ hours back immediately.",author:"Marcus T.",role:"$2.8M SaaS Company"},{quote:"I was skeptical. I've tried 'systems' before. But this was different â practical, simple, and my team actually uses it. We scaled from $800K to $1.9M in 18 months, and I'm working fewer hours than ever.",author:"David K.",role:"$1.9M Consulting Firm"}].map(o=>r.jsxs(G,{className:"p-6 bg-background flex flex-col",children:[r.jsx("div",{className:"flex gap-1 mb-3",children:Array.from({length:5}).map((l,c)=>r.jsx(Fr,{className:"h-4 w-4 fill-primary text-primary"},c))}),r.jsxs("p",{className:"text-foreground/85 italic leading-relaxed flex-1",children:['"',o.quote,'"']}),r.jsxs("div",{className:"mt-5 pt-4 border-t border-border",children:[r.jsx("div",{className:"font-bold",children:o.author}),r.jsx("div",{className:"text-sm text-foreground/70",children:o.role})]})]},o.author))})]})}),r.jsx("section",{className:"py-16 md:py-20 bg-primary/95 text-primary-foreground",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsxs("div",{className:"max-w-3xl mx-auto text-center space-y-5",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold",children:"Stop Being the Bottleneck. Start Today."}),r.jsx("p",{className:"text-lg text-primary-foreground/90",children:'Every week you wait is another week of decisions stacking up, team members waiting on you, and growth capped by your own capacity. The Simple Operations System is built to install fast â your first "business runs without me" week can start in as little as 30 days.'}),r.jsx("p",{className:"text-base text-primary-foreground/85",children:"Take the 5-minute assessment, see your #1 constraint, and get the exact next step to break it."}),r.jsx("div",{className:"pt-4",children:r.jsx(te,{asChild:!0,size:"lg",variant:"secondary",className:"h-14 px-8 text-base font-semibold",children:r.jsxs(ue,{to:"/assessment",children:[u0," ",r.jsx(Ue,{className:"ml-2 h-5 w-5"})]})})}),r.jsx("p",{className:"text-sm text-primary-foreground/80",children:"Backed by our 30-day money-back guarantee."})]})})}),r.jsx("section",{className:"py-20 md:py-28 bg-background",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsxs("div",{className:"max-w-5xl mx-auto grid md:grid-cols-2 gap-12 items-center",children:[r.jsxs("div",{className:"order-2 md:order-1 space-y-5",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold",children:"Start With The Book: Learn the Framework First"}),r.jsx("p",{className:"text-lg text-foreground/80",children:"Not ready for implementation? Start by reading the system."}),r.jsxs("p",{className:"text-base text-foreground/80",children:[r.jsx("em",{children:'"The Passenger Seat Leader"'})," walks you through the exact framework we use with clients â the mindset shifts, the operating components, and real founder stories."]}),r.jsxs("div",{className:"bg-muted/60 border border-border rounded-xl p-5",children:[r.jsx("p",{className:"text-sm font-semibold mb-1",children:"ð Bonus"}),r.jsx("p",{className:"text-sm text-foreground/80",children:"Every copy includes a resource link inside the book that unlocks our complete Implementation Template Library â free."})]}),r.jsx(te,{asChild:!0,size:"lg",className:"h-12 px-6",children:r.jsx(ue,{to:"/so-book",children:"Get the Book â"})})]}),r.jsx("div",{className:"order-1 md:order-2 flex justify-center",children:r.jsx("div",{className:"w-full max-w-xs rounded-xl overflow-hidden shadow-strong border border-border",children:r.jsx("img",{src:lj.url,alt:'"Passenger Seat Leadership" by Gabe Arnold â book cover',className:"w-full h-auto block",loading:"lazy"})})})]})})}),r.jsx("section",{className:"py-20 md:py-28 bg-gradient-to-br from-foreground to-foreground/90 text-background",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsxs("div",{className:"max-w-3xl mx-auto text-center space-y-7",children:[r.jsx("h2",{className:"text-4xl md:text-5xl font-bold leading-tight",children:"Ready to Break Your Bottleneck?"}),r.jsx("p",{className:"text-xl text-background/85 leading-relaxed",children:"The business you built should give you freedom, not trap you in 60-hour weeks."}),r.jsx("p",{className:"text-lg text-background/80",children:"You've already proven the model works. Now it's time to build the operating system that lets it scale without exhausting you."}),r.jsxs("div",{className:"bg-background/10 border border-background/20 rounded-xl p-6 text-left max-w-xl mx-auto
656space-y-2 text-background/90",children:[r.jsxs("p",{children:[r.jsx("span",{className:"font-bold text-background",children:"Step 1:"})," Take the 5-minute Founder Bottleneck Assessment"]}),r.jsxs("p",{children:[r.jsx("span",{className:"font-bold text-background",children:"Step 2:"})," See your personalized breakdown of where you're stuck"]}),r.jsxs("p",{children:[r.jsx("span",{className:"font-bold text-background",children:"Step 3:"})," Book a call to see your custom roadmap (if it's a fit)"]})]}),r.jsxs("div",{className:"pt-2 flex flex-col items-center gap-4",children:[r.jsx(te,{asChild:!0,size:"lg",className:"h-14 px-8 text-lg font-semibold bg-primary text-primary-foreground hover:bg-primary/90",children:r.jsxs(ue,{to:"/assessment",children:[u0," ",r.jsx(Ue,{className:"ml-2 h-5 w-5"})]})}),r.jsx("p",{className:"text-sm text-background/70",children:"No sales pitch. Just clarity on your #1 constraint â your full report delivered to your inbox."}),r.jsx(ue,{to:"/book-call",className:"text-sm text-background/80 underline hover:text-background",children:"Prefer to talk first? Book a Strategy Call â"})]})]})})})]}),r.jsx(ht,{})]})},gi=()=>window.location.hostname==="localhost"||window.location.hostname.includes("lovable.app")||window.location.hostname.includes("lovableproject.com")||window.location.hostname.includes("lovable.dev")||window.location.port==="5173"||window.location.protocol==="file:",et={async select(e,t){if(gi()){const{data:n,error:s}=await ve.functions.invoke("dev-admin-proxy",{body:{action:"select",table:e,payload:t}});if(s)throw s;return{data:(n==null?void 0:n.data)||[],error:null}}else{let n=ve.from(e).select("*");if(t!=null&&t.filters&&Object.entries(t.filters).forEach(([s,a])=>{Array.isArray(a)?n=n.in(s,a):n=n.eq(s,a)}),t!=null&&t.order){const{column:s,ascending:a=!0}=t.order;n=n.order(s,{ascending:a})}return t!=null&&t.limit&&(n=n.limit(t.limit)),t!=null&&t.range&&(n=n.range(t.range.from,t.range.to)),t!=null&&t.offset&&(n=n.range(t.offset,t.offset+(t.limit||999))),await n}},async insert(e,t){if(gi()){const{data:n,error:s}=await ve.functions.invoke("dev-admin-proxy",{body:{action:"insert",table:e,payload:{data:t}}});if(s)throw s;return{data:n==null?void 0:n.data,error:null}}else return await ve.from(e).insert(t).select().single()},async update(e,t,n){if(gi()){const{data:s,error:a}=await ve.functions.invoke("dev-admin-proxy",{body:{action:"update",table:e,payload:{id:t,updates:n}}});if(a)throw a;return{data:s==null?void 0:s.data,error:null}}else return await ve.from(e).update(n).eq("id",t).select().single()},async updateByFilter(e,t,n){if(gi()){const{data:s,error:a}=await ve.functions.invoke("dev-admin-proxy",{body:{action:"update_by_filter",table:e,payload:{filter:t,updates:n}}});if(a)throw a;return{data:s==null?void 0:s.data,error:null}}else{let s=ve.from(e).update(n);return Object.entries(t).forEach(([a,i])=>{s=s.eq(a,i)}),await s.select()}},async upsert(e,t,n){const s={admin_settings:"setting_key",seo_settings:"page_slug"},a=(n==null?void 0:n.onConflict)??s[e];if(gi()){const{data:i,error:o}=await ve.functions.invoke("dev-admin-proxy",{body:{action:"upsert",table:e,payload:{data:t,onConflict:a}}});if(o)throw o;return{data:i==null?void 0:i.data,error:null}}else return await ve.from(e).upsert(t,a?{onConflict:a}:void 0).select()},async delete(e,t){if(gi()){const{error:n}=await ve.functions.invoke("dev-admin-proxy",{body:{action:"delete",table:e,payload:{id:t}}});if(n)throw n;return{error:null}}else return await ve.from(e).delete().eq("id",t)}},up={async upload(e,t,n){var s;if(gi())try{const a=await n.arrayBuffer(),o=new Uint8Array(a).reduce((u,h)=>u+String.fromCharCode(h),""),l=btoa(o),{data:c,error:d}=await ve.functions.invoke("dev-admin-proxy",{body:{action:"storage_upload",table:void 0,payload:{bucket:e,path:t,file:l,contentType:n.type}}});if(d)throw d;return((s=c==null?void 0:c.data)==null?void 0:s.publicUrl)||null}catch(a){return console.error("Storage upload error:",a),null}else{const{error:a}=await ve.storage.from(e).upload(t,n,{cacheControl:"3600",upsert:!1});if(a)return console.error("Upload error:",a),null;const{data:{publicUrl:i}}=ve.storage.from(e).getPublicUrl(t);return i}},async remove(e,t){if(gi())try{const{error:n}=await ve.functions.invoke("dev-admin-proxy",{body:{action:"storage_remove",table:void 0,payload:{bucket:e,paths:t}}});if(n)throw n;return!0}catch(n){return console.error("Storage remove error:",n),!1}else{const{error:n}=await ve.storage.from(e).remove(t);return n?(console.error("Remove error:",n),!1):!0}}},_Y={homepage_curiosity_member:"curiosity-member-clarity","homepage-curiosity-member":"curiosity-member-clarity",homepage_proof_jonathan:"proof-testimonial-jonathan","homepage-proof-jonathan":"proof-testimonial-jonathan",homepage_proof_wallace:"proof-testimonial-wallace","homepage-proof-wallace":"proof-testimonial-wallace",homepage_proof_molly:"proof-testimonial-molly","homepage-proof-molly":"proof-testimonial-molly",homepage_proof_nikki:"proof-testimonial-nikki","homepage-proof-nikki":"proof-testimonial-nikki",homepage_success_story_1:"proof-success-story-1","homepage-success-story-1":"proof-success-story-1",homepage_success_story_2:"proof-success-story-2","homepage-success-story-2":"proof-success-story-2",homepage_success_story_3:"proof-success-story-3","homepage-success-story-3":"proof-success-story-3",homepage_community_collaboration:"constraints-community-collaboration","homepage-community-collaboration":"constraints-community-collaboration",homepage_testimonial_sarah:"conditions-testimonial-sarah","homepage-testimonial-sarah":"conditions-testimonial-sarah",homepage_trust_confidence_1:"cta_trust_image_1","homepage-trust-confidence-1":"cta_trust_image_1",homepage_trust_team_success:"cta_trust_image_2","homepage-trust-team-success":"cta_trust_image_2",homepage_transformation_chaos:"method-transformation-chaos","homepage-transformation-chaos":"method-transformation-chaos",homepage_transformation_clarity:"method-transformation-clarity","homepage-transformation-clarity":"method-transformation-clarity",homepage_transformation_momentum:"method-transformation-momentum","homepage-transformation-momentum":"method-transformation-momentum",homepage_transformation_freedom:"method-transformation-freedom","homepage-transformation-freedom":"method-transformation-freedom",homepage_transformation_growth:"method-transformation-growth","homepage-transformation-growth":"method-transformation-growth",about_hero_gabe:"about-hero","about-hero-gabe":"about-hero",contact_welcome:"contact-welcome",apply_success_journey:"apply-success-journey",book_hero_action:"book-action","book-hero-action":"book-action",book_reader_testimonial_1:"book-testimonial-1","book-reader-testimonial-1":"book-testimonial-1",book_reader_testimonial_2:"book-testimonial-2","book-reader-testimonial-2":"book-testimonial-2",book_reader_testimonial_3:"book-testimonial-3","book-reader-testimonial-3":"book-testimonial-3",book_testimonial_david:"book-testimonial-david","book-testimonial-david":"book-testimonial-david",book_behind_scenes:"book-behind-scenes","book-behind-scenes":"book-behind-scenes",c2c_clarity_hero:"c2c-clarity-hero",c2c_clarity_transformation:"c2c-clarity-transformation",c2c_clarity_testimonial_1:"c2c-clarity-testimonial-1",c2c_clarity_coach:"c2c-clarity-coach",c2c_scale_hero:"c2c-scale-hero",c2c_scale_pain:"c2c-scale-pain",c2c_scale_method:"c2c-scale-method",c2c_scale_transformation:"c2c-scale-transformation",c2c_scale_coaching:"c2c-scale-coaching",c2c_scale_success_1:"c2c-scale-success-1",c2c_scale_success_2:"c2c-scale-success-2",c2c_scale_cta:"c2c-scale-cta",guiding_principles_hero:"guiding-principles-hero",principles_action_1:"principles-action-1",principles_action_2:"principles-action-2",principles_action_3:"principles-action-3",free_tools_hero:"free-tools-hero",tools_action_1:"tools-action-1",tools_action_2:"tools-action-2",tools_action_3:"tools-action-3",free_tools_success_story_1:"free-tools-success-story-1",free_tools_success_story_2:"free-tools-success-story-2",free_tools_coach_support:"free-tools-coach-support",method_day_before_stressed:"method-day-before","method-day-before-stressed":"method-day-before",method_day_after_peaceful:"method-day-after","method-day-after-peaceful":"method-day-after",method_alex:"method-alex",method_amanda:"method-amanda",method_ikey:"method-ikey",method_jereshia:"method-jereshia",method_jodi:"method-jodi",method_jonathan:"method-jonathan",method_joy:"method-joy",method_kyle:"method-kyle",method_laura:"method-laura",method_leila:"method-leila",method_lindsay:"method-lindsay",method_matt:"method-matt",method_molly:"method-molly",method_rachel:"method-rachel",method_wallace:"method-wallace",quantum_flow_hero_chaos:"quantum-flow-hero-chaos",quantum_flow_decision_fatigue:"quantum-flow-decision-fatigue",quantum_flow_strategic_planning:"quantum-flow-strategic-planning",quantum_flow_system_overview:"quantum-flow-system-overview",quantum_flow_assessments_action:"quantum-flow-assessments-action",quantum_flow_path_chaos:"quantum-flow-path-chaos",quantum_flow_path_clarity:"quantum-flow-path-clarity",quantum_flow_decision_moment:"quantum-flow-decision-moment",essentials_hero_chaos:"essentials-hero-chaos",essentials_implementation_gap:"essentials-implementation-gap",essentials_week1_foundation:"essentials-week1-foundation",essentials_week2_systems:"essentials-week2-systems",essentials_week3_integration:"essentials-week3-integration",essentials_strategic_support:"essentials-strategic-support",essentials_transformation_before_after:"essentials-transformation-before-after",essentials_success_story_1:"essentials-success-story-1",essentials_success_story_2:"essentials-success-story-2",essentials_success_story_3:"essentials-success-story-3",essentials_cost_chaos:"essentials-cost-chaos",essentials_decision_moment:"essentials-decision-moment",book_resources_author_action:"book-action","book-resources-author-action":"book-action",book_resources_testimonial_1:"book-testimonial-1","book-resources-testimonial-1":"book-testimonial-1",book_resources_testimonial_2:"book-testimonial-2","book-resources-testimonial-2":"book-testimonial-2",book_resources_behind_scenes:"book-behind-scenes","book-resources-behind-scenes":"book-behind-scenes"},SY=e=>_Y[e]||e,cj=e=>e.replace(/_/g,"-"),O6=e=>e.replace(/-/g,"_"),Fd=e=>SY(e),Ld=(e,t)=>{const n=[t,cj(t),O6(t)];return e.find(s=>
656n.includes(s.image_key))},CY="/assets/hero-stressed-entrepreneur-BeV9ovjw.jpg",EY="/assets/entrepreneurs-discussion-CCZixyRJ.jpg",TY="/assets/transformation-before-after-C5uEw55f.jpg",$Y="/assets/peaceful-entrepreneur-qfbzz6mv.jpg",OY="/assets/team-collaboration-Dr_TNznD.jpg",PY="/assets/chaos-entrepreneur-BIr4Gs7y.jpg",AY="/assets/breakthrough-moment-DY5MBkUB.jpg",P6="/assets/gabe-arnold-photo-D-K8GAjU.jpg",e_="/assets/journey-milestone-1-DEaM-wbS.jpg",IY="/assets/journey-milestone-2-zJhHj6dB.jpg",RY="/assets/journey-milestone-3-CGcNnbJz.jpg",MY="/assets/hero-overwhelmed-founder-DrkxOJn7.jpg",DY="/assets/empathy-understanding-3Vie88K7.jpg",FY="/assets/founder-community-CfyhtdNp.jpg",LY="/assets/breakthrough-moment-yFkjI9B4.jpg",BY="/assets/frameworks-planning-D8k0ZnY9.jpg",WY="/assets/implementation-toolkit-BnZ4JDG3.jpg",UY="/assets/transformation-results-BBRfWlp7.jpg",qY="/assets/author-gabe-arnold-P3Agm7xx.jpg",HY="/assets/decision-paths-40D8H2ar.jpg",zY="/assets/progressive-freedom-CwJZC3Sa.jpg",GY="/assets/decision-urgency-Ddcue052.jpg",YY="/assets/freedom-achieved-CLGsq27J.jpg",VY="/assets/c2c-clarity-hero-Cxa4F3Mj.jpg",KY="/assets/c2c-clarity-transformation-D49BTi-Z.jpg",QY="/assets/community-collaboration-DXTZ0VdV.jpg",ZY="/assets/c2c-clarity-coach-CL8-qXFQ.jpg",XY="/assets/apply-success-journey-BU_YCPV0.jpg",JY="/assets/c2c-clarity-testimonial-1-CuvOdbzo.jpg",eV="/assets/transformation-clarity-k4E6dVsC.jpg",Ly="/assets/working-late-stressed-BoOLtF4l.jpg",By="/assets/clarity-and-freedom-BTxOUS4U.jpg",Wy="/assets/casual-collaboration-DArPDGGb.jpg",Uy="/assets/breakthrough-moment-Dlk7GH0J.jpg",qy="/assets/community-support-ClieaRfb.jpg",Hy="/assets/success-celebration-DutCT3-P.jpg",t_="/assets/c2c-scale-hero-Bw-PN0--.jpg",r_="/assets/c2c-scale-pain-BPFb8tco.jpg",n_="/assets/c2c-scale-method-BhOU5EOX.jpg",s_="/assets/c2c-scale-transformation-CM9ikcKp.jpg",a_="/assets/c2c-scale-coaching-B4t9Xwou.jpg",i_="/assets/c2c-scale-success-1-D4iS3FnC.jpg",o_="/assets/c2c-scale-success-2-B-DWDmkG.jpg",l_="/assets/c2c-scale-cta-DwHtfHci.jpg",h0="/assets/hero-chaos-B3IhljJ-.jpg",m0="/assets/decision-fatigue-CRaGpwc_.jpg",f0="/assets/strategic-planning-4Yqic9sp.jpg",p0="/assets/system-overview-l4eZpPDs.jpg",g0="/assets/assessments-action-EXXbFe8A.jpg",x0="/assets/path-chaos-C47K5K38.jpg",y0="/assets/path-clarity-B4EbIj8F.jpg",c_="/assets/decision-moment-mcD3LWmZ.jpg",d_="/assets/guiding-principles-hero-DL_xIfWB.jpg",u_="/assets/principles-action-1-C7vH_mXI.jpg",h_="/assets/principles-action-2-gTTGtau-.jpg",m_="/assets/principles-action-3-CgZr55A6.jpg",f_="/assets/free-tools-hero-Uy_pKl1h.jpg",p_="/assets/free-tools-success-story-1-SYsiGD9q.jpg",g_="/assets/free-tools-success-story-2-C3Bc49WP.jpg",x_="/assets/free-tools-coach-support-CH8UNToB.jpg",v0="/assets/hero-chaos-DvDI4mcP.jpg",y_="/assets/implementation-gap-m0M_6oQs.jpg",b0="/assets/week1-foundation-B_JdP5BK.jpg",w0="/assets/week2-systems-DWKRGZhl.jpg",j0="/assets/week3-integration-BTnkkC1j.jpg",v_="/assets/strategic-support-n-8E1uuK.jpg",b_="/assets/transformation-before-after-BeQrFCzO.jpg",w_="/assets/success-story-1-WgPUUvG0.jpg",j_="/assets/success-story-2-M-K23kfh.jpg",N_="/assets/success-story-3-DJyge6TW.jpg",k_="/assets/cost-chaos-Cv94z7lb.jpg",__="/assets/decision-moment-BUfqioXt.jpg",Ml={"hero-stressed-entrepreneur":CY,"entrepreneurs-discussion":EY,"transformation-before-after":TY,"peaceful-entrepreneur":$Y,"team-collaboration":OY,"chaos-entrepreneur":PY,"breakthrough-moment":AY,"about-hero":P6,"about-milestone-beginning":e_,"about-milestone-growth":IY,"about-milestone-leading":RY,"book-hero-overwhelmed":MY,"book-empathy-understanding":DY,"book-founder-community":FY,"book-breakthrough-moment":LY,"book-frameworks-planning":BY,"book-implementation-toolkit":WY,"book-transformation-results":UY,"book-author-gabe":qY,"book-decision-paths":HY,"book-progressive-freedom":zY,"book-decision-urgency":GY,"book-freedom-achieved":YY,"c2c-clarity-hero":VY,"c2c-clarity-transformation":KY,"c2c-clarity-community":QY,"c2c-clarity-coach":ZY,"c2c-clarity-journey":e_,"c2c-clarity-success-journey":XY,"c2c-clarity-testimonial-1":JY,"c2c-clarity-final-cta":eV,"c2c-scale-hero":t_,"c2c-scale-pain":r_,"c2c-scale-method":n_,"c2c-scale-transformation":s_,"c2c-scale-coaching":a_,"c2c-scale-success-1":i_,"c2c-scale-success-2":o_,"c2c-scale-cta":l_,"constraints-community-collaboration":"/assets/placeholders/community-collaboration.jpg","curiosity-member-clarity-1":"/assets/placeholders/member-clarity-1.jpg","curiosity-member-clarity-2":"/assets/placeholders/member-clarity-2.jpg","curiosity-member-clarity-3":"/assets/placeholders/member-clarity-3.jpg","curiosity-member-scale-1":"/assets/placeholders/member-scale-1.jpg","curiosity-member-scale-2":"/assets/placeholders/member-scale-2.jpg","curiosity-member-scale-3":"/assets/placeholders/member-scale-3.jpg","cta-trust-image-1":"/assets/placeholders/trust-confidence-1.jpg","cta-trust-image-2":"/assets/placeholders/trust-team-success.jpg","conditions-testimonial-sarah":"/assets/placeholders/testimonial-sarah.jpg","proof-testimonial-jonathan":"/assets/placeholders/testimonial-jonathan.jpg","proof-testimonial-wallace":"/assets/placeholders/testimonial-wallace.jpg","proof-testimonial-molly":"/assets/placeholders/testimonial-molly.jpg","proof-testimonial-nikki":"/assets/placeholders/testimonial-nikki.jpg","method-transformation-chaos":"/assets/placeholders/transformation-chaos.jpg","method-transformation-clarity":"/assets/placeholders/transformation-clarity.jpg","method-transformation-momentum":"/assets/placeholders/transformation-momentum.jpg","method-transformation-freedom":"/assets/placeholders/transformation-freedom.jpg","method-transformation-growth":"/assets/placeholders/transformation-growth.jpg","method-day-before":"/assets/placeholders/
656day-before-stressed.jpg","method-day-after":"/assets/placeholders/day-after-peaceful.jpg",homepage_hero_background:"/placeholder.svg",homepage_pain_empathy:"/assets/placeholders/empathy-coaching.jpg",homepage_member_clarity_1:"/assets/placeholders/member-clarity-1.jpg",homepage_member_clarity_2:"/assets/placeholders/member-clarity-2.jpg",homepage_member_clarity_3:"/assets/placeholders/member-clarity-3.jpg",homepage_testimonial_jonathan:"/assets/placeholders/testimonial-jonathan.jpg",homepage_testimonial_wallace:"/assets/placeholders/testimonial-wallace.jpg",homepage_testimonial_molly:"/assets/placeholders/testimonial-molly.jpg",homepage_testimonial_nikki:"/assets/placeholders/testimonial-nikki.jpg",homepage_success_story_1:"/assets/placeholders/success-story-1.jpg",homepage_success_story_2:"/assets/placeholders/success-story-2.jpg",homepage_success_story_3:"/assets/placeholders/success-story-3.jpg",homepage_community_collaboration:"/assets/placeholders/community-collaboration.jpg",homepage_testimonial_sarah:"/assets/placeholders/testimonial-sarah.jpg",homepage_trust_confidence_1:"/assets/placeholders/trust-confidence-1.jpg",homepage_trust_team_success:"/assets/placeholders/trust-team-success.jpg",homepage_transformation_chaos:"/assets/placeholders/transformation-chaos.jpg",homepage_transformation_clarity:"/assets/placeholders/transformation-clarity.jpg",homepage_transformation_momentum:"/assets/placeholders/transformation-momentum.jpg",homepage_transformation_freedom:"/assets/placeholders/transformation-freedom.jpg",homepage_transformation_growth:"/assets/placeholders/transformation-growth.jpg",about_hero_gabe:"/assets/gabe-arnold-photo.jpg","contact-welcome":"/assets/placeholders/contact-welcome.jpg",contact_welcome:"/assets/placeholders/contact-welcome.jpg","apply-success-journey":"/assets/placeholders/apply-success-journey.jpg",apply_success_journey:"/assets/placeholders/apply-success-journey.jpg","journey-milestone-1":"/assets/placeholders/journey-milestone-1.jpg","journey-milestone-2":"/assets/placeholders/journey-milestone-2.jpg","journey-milestone-3":"/assets/placeholders/journey-milestone-3.jpg","method-alex":"/assets/placeholders/method-alex.jpg","method-amanda":"/assets/placeholders/method-amanda.jpg","method-ikey":"/assets/placeholders/method-ikey.jpg","method-jereshia":"/assets/placeholders/method-jereshia.jpg","method-jodi":"/assets/placeholders/method-jodi.jpg","method-jonathan":"/assets/placeholders/method-jonathan.jpg","method-joy":"/assets/placeholders/method-joy.jpg","method-kyle":"/assets/placeholders/method-kyle.jpg","method-laura":"/assets/placeholders/method-laura.jpg","method-leila":"/assets/placeholders/method-leila.jpg","method-lindsay":"/assets/placeholders/method-lindsay.jpg","method-matt":"/assets/placeholders/method-matt.jpg","method-molly":"/assets/placeholders/method-molly.jpg","method-rachel":"/assets/placeholders/method-rachel.jpg","method-wallace":"/assets/placeholders/method-wallace.jpg",method_day_before_stressed:"/assets/placeholders/
656day-before-stressed.jpg",method_day_after_peaceful:"/assets/placeholders/day-after-peaceful.jpg",method_alex:"/assets/placeholders/method-alex.jpg",method_amanda:"/assets/placeholders/method-amanda.jpg",method_ikey:"/assets/placeholders/method-ikey.jpg",method_jereshia:"/assets/placeholders/method-jereshia.jpg",method_jodi:"/assets/placeholders/method-jodi.jpg",method_jonathan:"/assets/placeholders/method-jonathan.jpg",method_joy:"/assets/placeholders/method-joy.jpg",method_kyle:"/assets/placeholders/method-kyle.jpg",method_laura:"/assets/placeholders/method-laura.jpg",method_leila:"/assets/placeholders/method-leila.jpg",method_lindsay:"/assets/placeholders/method-lindsay.jpg",method_matt:"/assets/placeholders/method-matt.jpg",method_molly:"/assets/placeholders/method-molly.jpg",method_rachel:"/assets/placeholders/method-rachel.jpg",method_wallace:"/assets/placeholders/method-wallace.jpg",c2c_scale_hero:t_,c2c_scale_pain:r_,c2c_scale_method:n_,c2c_scale_transformation:s_,c2c_scale_coaching:a_,c2c_scale_success_1:i_,c2c_scale_success_2:o_,c2c_scale_cta:l_,c2c_clarity_hero:"/assets/placeholders/c2c-clarity-hero.jpg",c2c_clarity_transformation:"/assets/placeholders/c2c-clarity-transformation.jpg",c2c_clarity_testimonial_1:"/assets/placeholders/c2c-clarity-testimonial-1.jpg",c2c_clarity_coach:"/assets/placeholders/c2c-clarity-coach.jpg","free-tools-hero":f_,"free-tools-coach-support":x_,"free-tools-success-story-1":p_,"free-tools-success-story-2":g_,free_tools_hero:f_,free_tools_success_story_1:p_,free_tools_success_story_2:g_,free_tools_coach_support:x_,"guiding-principles-hero":d_,"guiding-principles-action-1":u_,"guiding-principles-action-2":h_,"guiding-principles-action-3":m_,guiding_principles_hero:d_,principles_action_1:u_,principles_action_2:h_,principles_action_3:m_,"book-action":"/assets/placeholders/book-author-action.jpg","book-author-action":"/assets/placeholders/book-author-action.jpg","book-behind-scenes":"/assets/placeholders/book-behind-scenes.jpg","book-reader-testimonial-1":"/assets/placeholders/book-reader-testimonial-1.jpg","book-reader-testimonial-2":"/assets/placeholders/book-reader-testimonial-2.jpg","book-testimonial-1":"/assets/placeholders/book-reader-testimonial-1.jpg","book-testimonial-2":"/assets/placeholders/book-reader-testimonial-2.jpg","book-testimonial-3":"/assets/placeholders/book-reader-testimonial-1.jpg","book-testimonial-david":"/assets/placeholders/book-reader-testimonial-2.jpg",book_hero_action:"/assets/placeholders/book-author-action.jpg",book_reader_testimonial_1:"/assets/placeholders/book-reader-testimonial-1.jpg",book_reader_testimonial_2:"/assets/placeholders/book-reader-testimonial-2.jpg",book_reader_testimonial_3:"/placeholder.svg",book_behind_scenes:"/assets/placeholders/book-behind-scenes.jpg",freedom_working_late_stressed:Ly,"freedom-working-late-stressed":Ly,"freedom-challenge-working-late":Ly,freedom_clarity_and_freedom:By,"freedom-clarity-and-freedom":By,"freedom-challenge-clarity":By,freedom_casual_collaboration:Wy,"freedom-casual-collaboration":Wy,"freedom-challenge-collaboration":Wy,freedom_breakthrough_moment:Uy,"freedom-breakthrough-moment":Uy,"freedom-challenge-breakthrough":Uy,freedom_community_support:qy,"freedom-community-support":qy,"freedom-challenge-community":qy,freedom_success_celebration:Hy,"freedom-success-celebration":Hy,"freedom-challenge-success":Hy,quantum_flow_hero_chaos:h0,"quantum-flow-hero-chaos":h0,quantum_flow_decision_fatigue:m0,"quantum-flow-decision-fatigue":m0,quantum_flow_strategic_planning:f0,"quantum-flow-strategic-planning":f0,quantum_flow_system_overview:p0,"quantum-flow-system-overview":p0,quantum_flow_assessments_action:g0,"quantum-flow-assessments-action":g0,quantum_flow_path_chaos:x0,"quantum-flow-path-chaos":x0,quantum_flow_path_clarity:y0,"quantum-flow-path-clarity":y0,quantum_flow_decision_moment:c_,"quantum-flow-decision-moment":c_,essentials_hero_chaos:v0,"essentials-hero-chaos":v0,essentials_implementation_gap:y_,"essentials-implementation-gap":y_,essentials_week1_foundation:b0,"essentials-week1-foundation":b0,essentials_week2_systems:w0,"essentials-week2-systems":w0,essentials_week3_integration:j0,"essentials-week3-integration":j0,essentials_strategic_support:v_,"essentials-strategic-support":v_,essentials_transformation_before_after:b_,"essentials-transformation-before-after":b_,essentials_success_story_1:w_,"essentials-success-story-1":w_,essentials_success_story_2:j_,"essentials-success-story-2":j_,essentials_success_story_3:N_,"essentials-success-story-3":N_,essentials_cost_chaos:k_,"essentials-cost-chaos":k_,essentials_decision_moment:__,"essentials-decision-moment":__},tV=e=>{if(Ml[e])return Ml[e];const t=cj(e);if(Ml[t])return Ml[t];const n=O6(e);return Ml[n]?Ml[n]:"/placeholder.svg"},Nl=()=>{const[e,t]=j.useState([]),[n,s]=j.useState(!0);j.useEffect(()=>{a()},[]);const a=async()=>{try{s(!0);const{data:p,error:v}=await et.select("website_images",{order:{column:"page_location",ascending:!0}});if(v){console.error("Error fetching website images:",v);return}t(p||[])}catch(p){console.error("Error:",p)}finally{s(!1)}};return{images:e,loading:n,uploadImage:async(p,v)=>{try{const g=v.name.split(".").pop(),b=`website/${`${p}-${Date.now()}.${g}`}`;return await up.upload("seo-images",b,v)}catch(g){return console.error("Error uploading image:",g),null}},updateImageUrl:async(p,v,g)=>{try{const x={current_url:v};g&&(x.crop_data=g);const{error:b}=await et.update("website_images",p,x);return b?(console.error("Error updating image URL:",b),!1):(await a(),!0)}catch(x){return console.error("Error:",x),!1}},removeImage:async p=>{try{const{error:v}=await et.update("website_images",p,{current_url:null,crop_data:null});return v?(console.error("Error removing image:",v),!1):(await a(),!0)}catch(v){return console.error("Error:",v),!1}},getImageByKey:p=>{const v=Fd(p),g=Ld(e,v);return g!=null&&g.current_url?(g.crop_data,g.current_url):null},getImageWithCropData:p=>{const v=Fd(p),g=Ld(e,v);return g!=null&&g.current_url?{url:g.current_url,cropData:g.crop_data}:null},getTestimonialsByKey:p=>e.filter(v=>p.includes(v.image_key)).sort((v,g)=>v.display_order-g.display_order),getTestimonialData:p=>{const v=Fd(p),g=Ld(e,v);return g?{name:g.testimonial_name||"",title:g.testimonial_title||"",quote:g.testimonial_quote||"",result:g.testimonial_result||"",detail:g.testimonial_detail||"",badge:g.testimonial_badge||"",startingPoint:g.testimonial_starting_point||"",program:g.testimonial_program||"",imageUrl:g.current_url||null,imageKey:g.image_key}:null},createImageRecord:async(p,v)=>{var g;try{const x=cj(p.imageKey),{data:b,error:w}=await et.insert("website_images",{image_key:x,image_name:p.label,page_location:v,description:p.description,recommended_width:p.recommendedWidth||800,recommended_height:p.recommendedHeight||600,category:"general",is_active:!0});return w?(console.error("Error creating image record:",w),null):(await a(),((g=b==null?void 0:b[0])==null?void 0:g.id)||null)}catch(x){return console.error("Error:",x),null}},findImageRecord:p=>{const v=Fd(p);return Ld(e,v)},getPreviewUrl:p=>{const v=Fd(p),g=Ld(e,v);return(g==null?void 0:g.current_url)||tV(v)},refetch:a}};var rV="AspectRatio",A6=j.forwardRef((e,t)=>
656{const{ratio:n=1/1,style:s,...a}=e;return r.jsx("div",{style:{position:"relative",width:"100%",paddingBottom:`${100/n}%`},"data-radix-aspect-ratio-wrapper":"",children:r.jsx(we.div,{...a,ref:t,style:{...s,position:"absolute",top:0,right:0,bottom:0,left:0}})})});A6.displayName=rV;var nV=A6;const sV=nV,Mi=({imageKey:e,fallbackSrc:t,alt:n,aspectRatio:s,className:a=""})=>{const{getImageWithCropData:i,loading:o}=Nl(),l=i(e);console.log(`CroppedImage [${e}]:`,{loading:o,hasImageData:!!l,imageUrl:l==null?void 0:l.url,fallbackSrc:t});const c=(l==null?void 0:l.url)||t;if(!c)return console.warn(`CroppedImage [${e}]: No image source available`),null;const d=l==null?void 0:l.cropData,u=d?{objectFit:"contain",transform:`scale(${d.scale||1}) rotate(${d.rotation||0}deg)`,transformOrigin:"center"}:{objectFit:"cover"},h=r.jsx("img",{src:c,alt:n,className:`w-full h-full ${a}`,style:u},c);return s?r.jsx(sV,{ratio:s,children:h}):h},I6=()=>{const[e,t]=j.useState({linkedinUrl:"",facebookUrl:""}),[n,s]=j.useState(!0);return j.useEffect(()=>{(async()=>{try{const{data:i,error:o}=await ve.from("admin_settings").select("setting_key, setting_value").in("setting_key",["linkedin_url","facebook_url"]);if(o){console.error("Error fetching social links:",o);return}const l={linkedinUrl:"",facebookUrl:""};i==null||i.forEach(c=>{c.setting_key==="linkedin_url"?l.linkedinUrl=c.setting_value:c.setting_key==="facebook_url"&&(l.facebookUrl=c.setting_value)}),t(l)}catch(i){console.error("Error:",i)}finally{s(!1)}})()},[]),{socialLinks:e,loading:n}},aV="/apply",iV="/assessment",oV="/book-call",lV=[{icon:yl,title:"Design Systems, Don't Do Tasks",body:"Your job isn't to make every decision. It's to design the system that makes decisions.",bad:"Driver Seat: You approve every client proposal",good:"Passenger Seat: You design the proposal approval framework â team executes it"},{icon:Rs,title:"Transfer Ownership, Not Just Tasks",body:"Delegation fails when you hand off tasks but keep decision authority.",bad:"Driver Seat: Team does the work, waits for your approval to proceed",good:"Passenger Seat: Team has decision rights within clear boundaries â they inform you after"},{icon:Uu,title:"Visibility Without Micromanagement",body:"You need to see problems before they become crises â without being in every email thread.",bad:"Driver Seat: You're CC'd on every email to 'stay informed'",good:"Passenger Seat: Operating Scorecard shows you health metrics in a 10-min weekly review"}],cV=[{value:"$40M+",label:"In products & services sold across multiple businesses"},{value:"1,000+",label:"Entrepreneurs helped break through scaling bottlenecks"},{value:"500+",label:"Founders who have installed the Simple Operations System"},{value:"30+ Years",label:"Of entrepreneurship â including the failures that taught most"}],dV=["Started first construction company at 18, scaled to $1M annually","Built Business Marketing Engine from startup to $1M+","Managed multiple enterprise clients including multi-million dollar businesses","Self-taught in web development, programming, enterprise networking, marketing tech","Featured on podcasts including Alex Charfen's Momentum Podcast","25+ years in professional writing, technology, and marketing management","Doubled business revenue while reducing work hours using Simple Operations"],uV=["Serial problem-solver focused on results-based organizational models","Believer that kindness + entrepreneurship = a powerful force for good","Values personal relationships and living life fully","Creates environments of trust and open communication","Dedicated to helping founders build businesses that support their lives"],hV=[{icon:ss,title:"The Scaling Founder",revenue:"$500Kâ$3M Revenue",body:"You've proven the model works. Now you're stuck as the bottleneck â every decision waits on you.",need:"Complete operating system installation",program:"Scale Method",href:"/scale"},{icon:yl,title:"The Preventive Founder",revenue:"$300Kâ$500K Revenue",body:"You see the bottleneck coming. You want to build foundations before chaos catches up.",need:"Core operating rhythms",program:"Clarity Method",href:"/clarity"},{icon:aE,title:"The DIY Founder",revenue:"Any Stage",body:"You prefer to learn and implement on your own timeline without 1:1 coaching.",need:"Self-paced frameworks & templates",program:"Essentials Course",href:"/essentials"}],mV=[{title:"I'm Not a Business Coach",body:"I don't give you advice and walk away. My team and I install systems WITH you.",others:`"Here's what you should do"`,us:`"Here's what we're installing this week â let's build it together"`},{title:"I'm Not a Consultant",body:"I don't hand you a 50-page report and disappear.",others:`"Here's your custom strategy document"`,us:`"Here's your operating system â we're implementing it alongside your team"`},{title:"This Isn't Theory â It's What I Actually Use",body:"Every framework I teach is running in my own businesses right now.",others:"Built by academics who've never run a real business",us:"Built by a foun
656der who's scaled multiple businesses with these exact systems"},{title:"We're Not EOS/Traction Implementers",body:"EOS is unproven for sub-$10M founder-led businesses. It's expensive â a minimum of $150,000 to install â and requires 2+ years of bureaucratic rollout before you see meaningful results.",others:"Multi-year installs, six-figure consulting commitments",us:"Purpose-built for $300Kâ$3M founders â installs fast, works immediately"}],fV=[{value:"500+",label:"Founders between $300Kâ$10M using Simple Operations"},{value:"$480M+",label:"In new revenue & profits created using the Simple Operations system"},{value:"15,000+",label:"Hours returned to founders' lives"},{value:"90 Days",label:'Average time to first "business runs without me" week'}],pV=[{quote:"Meeting with Gabe was so helpful for breaking through my focus on too many details and getting laser clear on what is most important. Business is flowing and I am having more fun in it!",name:"Alexandra G.",role:"MA"},{quote:"I enjoyed my Clarity Calls with Gabe. He's really easy to talk to and very approachable, so it's easy to be open about the tougher aspects of running a business. He brings experience and a unique level of empathy when it comes to viewing the entire lifestyle of the person he is helping.",name:"Francesca S.",role:"Ethos By Design"},{quote:"That clarity call brought me almost $6,500 in less than a month â starting from ground zero. That half hour could change the very world you're living in.",name:"Joe G.",role:"The Joseph Graham Show"},{quote:"Gabe spent more time listening to my dilemma than dispensing advice. But because he spent that time listening and asking questions, the advice was deadly accurate. The clarity call provided exactly what I needed to move forward.",name:"Ron W.",role:"Insurance For Texans"}],gV=[{step:"01",title:"Diagnose",body:"Take the 5-minute Founder Bottleneck Assessment.",cta:"Take the Assessment",href:iV},{step:"02",title:"Discover",body:"Book a free 30-minute Clarity Call to see your custom roadmap.",cta:"Book Your Clarity Call",href:oV},{step:"03",title:"Install",body:"See results in as little as 90 days and achieve full momentum in 12 months.",cta:"See Programs",href:"/scale"}],xV=()=>{const{socialLinks:e}=I6();return r.jsxs("div",{className:"min-h-screen bg-background",children:[r.jsx(vr,{title:"About Simple Operations | Built by a Founder Who Lived the Bottleneck",description:"Meet Gabe Arnold â 30+ years of building, scaling, and breaking the founder bottleneck. The story behind Simple Operations and Passenger Seat Leadership."}),r.jsx(_t,{}),r.jsxs("main",{children:[r.jsx("section",{className:"pt-24 pb-16 bg-gradient-subtle border-b border-border",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsxs("div",{className:"max-w-5xl mx-auto text-center",children:[r.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-primary/10 text-primary text-sm font-medium mb-6",children:[r.jsx(Is,{className:"w-4 h-4"})," Our Story"]}),r.jsx("h1",{className:"text-4xl md:text-6xl font-bold text-foreground mb-6 leading-tight",children:"Built by a Founder Who Lived the Bottleneck"}),r.jsx("p",{className:"text-xl md:text-2xl text-muted-foreground max-w-3xl mx-auto leading-relaxed mb-10",children:"Simple Operations exists because I spent 30+ years building businesses the hard way â so you don't have to."}),r.jsx("div",{className:"rounded-2xl overflow-hidden shadow-elegant max-w-4xl mx-auto mb-8",children:r.jsx(Mi,{imageKey:"about-hero",fallbackSrc:"",alt:"Gabe Arnold â CEO of Simple Operations",aspectRatio:2/1})}),r.jsxs("div",{className:"flex items-center justify-center gap-3",children:[e.linkedinUrl&&r.jsx("a",{href:e.linkedinUrl,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center w-11 h-11 bg-primary/10 hover:bg-primary hover:text-primary-foreground rounded-full transition-colors","aria-label":"Connect with Gabe Arnold on LinkedIn",children:r.jsx(hf,{className:"w-5 h-5"})}),e.facebookUrl&&r.jsx("a",{href:e.facebookUrl,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center w-11 h-11 bg-primary/10 hover:bg-primary hover:text-primary-foreground rounded-full transition-colors","aria-label":"Follow Gabe Arnold on Facebook",children:r.jsx(uf,{className:"w-5 h-5"})})]})]})})}),r.jsx("section",{className:"py-20",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsxs("div",{className:"max-w-[700px] mx-auto",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-8",children:"I Know What It's Like to Be Trapped in Your Own Success"}),r.jsxs("div",{className:"space-y-5 text-lg text-muted-foreground leading-relaxed",children:[r.jsx("p",{children:"I've been building businesses since I was a teenager."}),r.jsx("p",{children:"At 16, I was building experimental websites. By 18, I started a construction company and scaled it to $1M annually using lead generation technology I taught myself."}),r.jsx("p",{className:"text-foreground font-semibold",children:"The
656n the housing market crashed and I lost it all."}),r.jsx("p",{children:"I moved into management roles at Firestone Complete Auto Care and a repossession company in Northeast Ohio, where I used my IT skills and operational mind to drive significant sales increases. But I knew I wanted to build something of my own again."}),r.jsx("p",{children:"So in 2007, I started Business Marketing Engine â a technology and consulting company. I taught myself web design, advanced PHP programming, enterprise networking, and telephony. I spent two years in a Chicago tech partnership learning Help Desk and network support, managing 100+ clients including several multi-million dollar businesses."}),r.jsx("p",{className:"text-foreground font-semibold",children:"By the time I'd sold $40M+ in products and services over 20+ years, I'd learned something critical:"})]}),r.jsx("div",{className:"mt-10 p-8 rounded-2xl bg-primary/5 border-l-4 border-primary",children:r.jsx("p",{className:"text-2xl md:text-3xl font-bold text-foreground italic",children:"Revenue growth doesn't equal freedom. Systems do."})})]})})}),r.jsx("section",{className:"py-20 bg-section-light border-y border-border",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsxs("div",{className:"max-w-6xl mx-auto",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-12 text-center",children:"The Moment Everything Changed"}),r.jsxs("div",{className:"grid lg:grid-cols-5 gap-10 items-start",children:[r.jsxs("div",{className:"lg:col-span-3 space-y-5 text-lg text-muted-foreground leading-relaxed",children:[r.jsx("p",{children:"I was running Business Marketing Engine, scaling fast, bringing in revenue â and drowning."}),r.jsx("p",{children:"Every decision ran through me. Every client escalation landed on my desk. I had a team, but they were waiting on ME for everything."}),r.jsx("p",{className:"text-foreground font-bold text-xl",children:"I was the bottleneck."}),r.jsx("p",{children:"Then I attended an Alex Charfen seminar. Alex was teaching a framework called Simple Operations â a system for building businesses that run without the founder being in every decision."}),r.jsx("p",{className:"text-foreground font-semibold",children:"That framework changed my life."}),r.jsx("p",{children:"I implemented it in Business Marketing Engine. Within 90 days:"}),r.jsx("ul",{className:"space-y-2 pl-1",children:["My team was making 80% of decisions without me","Revenue doubled while my hours dropped","I got 15+ hours back per week","I took my first real vacation in years â and the business thrived without me"].map(t=>r.jsxs("li",{className:"flex gap-3",children:[r.jsx(_e,{className:"w-5 h-5 text-primary flex-shrink-0 mt-1"}),r.jsx("span",{children:t})]},t))}),r.jsx("p",{className:"text-foreground font-semibold pt-2",children:"I went from working 70-hour weeks to 30-hour weeks while the business scaled."})]}),r.jsx("div",{className:"lg:col-span-2 lg:sticky lg:top-24",children:r.jsxs(G,{className:"p-8 bg-primary text-primary-foreground border-0 shadow-elegant",children:[r.jsx(jr,{className:"w-10 h-10 mb-4 opacity-80"}),r.jsx("p",{className:"text-xl font-semibold leading-relaxed mb-4",children:`"I realized I didn't have a people problem. I had a system problem. My team wasn't incompetent â they were operating in chaos because I'd never installed an actual operating system."`}),r.jsx("p",{className:"text-primary-foreground/80 text-sm",children:"This realization changed everything."})]})})]})]})})}),r.jsx("section",{className:"py-20",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsxs("div",{className:"max-w-4xl mx-auto",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-4 text-center",children:"From Student to Teacher"}),r.jsx("p",{className:"text-lg text-muted-foreground text-center mb-14 max-w-2xl mx-auto",children:"The journey from being a trapped founder of multi-seven figure businesses to teaching 1,000+ founders the same escape route."}),r.jsxs("div",{className:"relative space-y-10",children:[r.jsx("div",{className:"absolute left-6 top-2 bottom-2 w-0.5 bg-primary/20 hidden md:block"}),[{year:"2019â2021",title:"Implementing the System",body:["After learning Alex Charfen's Simple Operations framework, I became obsessed with making it work in my own businesses.","I tested it. Refined it. Proved it worked across multiple business models."],highlight:"Result: Business Marketing Engine scaled while I worked fewer hours than ever."},{year:"2025",title:"Teaching Other Founders",body:['Other founders started asking: "How did you do it? How are you scaling without burning out?"',"I had the fortunate opportunity to acquire Simple Operations when Alex and his wife Cadey were moving forward into new entrepreneurial ventures. Teaching the Simple Operations System to foun
656ders stuck in the same bottleneck I'd been in."],highlight:"The results were identical across industries:",list:['90 days to first "business runs without me" week',"15â20 hours back per week","Teams making decisions independently","Revenue growing without founder exhaustion"]},{year:"2026 Forward",title:"Leading Simple Operations",body:["When the opportunity came to take over Simple Operations and carry forward the mission Alex Charfen started, I knew this was my calling.","Why? Because I'd lived both sides:"],check:["I'd been the founder trapped inside multi-seven figure businesses working 70-hour weeks","I'd installed the system and experienced the freedom it creates","I have coached over 1,000 entrepreneurs over the years and I'm grateful to be able to share this system with you"],highlight:"Today: I run Simple Operations with one mission â help founders scale past $10M without becoming prisoners of their own success."}].map(t=>r.jsxs("div",{className:"md:pl-20 relative",children:[r.jsx("div",{className:"absolute left-0 top-0 hidden md:flex w-12 h-12 rounded-full bg-primary text-primary-foreground items-center justify-center font-bold shadow-elegant",children:r.jsx(zt,{className:"w-5 h-5"})}),r.jsxs(G,{className:"p-7",children:[r.jsx("div",{className:"text-sm font-bold text-primary uppercase tracking-wider mb-2",children:t.year}),r.jsx("h3",{className:"text-2xl font-bold text-foreground mb-4",children:t.title}),r.jsxs("div",{className:"space-y-3 text-muted-foreground leading-relaxed",children:[t.body.map((n,s)=>r.jsx("p",{children:n},s)),t.check&&r.jsx("ul",{className:"space-y-2 pt-2",children:t.check.map(n=>r.jsxs("li",{className:"flex gap-3 text-foreground",children:[r.jsx(_e,{className:"w-5 h-5 text-primary flex-shrink-0 mt-0.5"}),r.jsx("span",{children:n})]},n))}),t.list&&r.jsx("ul",{className:"space-y-2 pt-2 pl-1",children:t.list.map(n=>r.jsxs("li",{className:"flex gap-3",children:[r.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-primary mt-2.5 flex-shrink-0"}),r.jsx("span",{children:n})]},n))}),t.highlight&&r.jsx("p",{className:"text-foreground font-semibold pt-2",children:t.highlight})]})]})]},t.year))]})]})})}),r.jsx("section",{className:"py-20 bg-section-light border-y border-border",children:r.jsxs("div",{className:"container mx-auto px-6",children:[r.jsxs("div",{className:"max-w-4xl mx-auto text-center mb-14",children:[r.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-primary/10 text-primary text-sm font-medium mb-6",children:[r.jsx(yl,{className:"w-4 h-4"})," The Philosophy"]}),r.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-6",children:"The Core Belief: Passenger Seat Leadership"}),r.jsxs("div",{className:"space-y-4 text-lg text-muted-foreground leading-relaxed",children:[r.jsx("p",{children:"After 30+ years of entrepreneurship â including multiple bankruptcies, seven-figure wins, and everything in between â I've learned this:"}),r.jsx("p",{className:"text-foreground font-semibold",children:"Most business advice is wrong."}),r.jsx("p",{children:`They tell you to "let go" or "step back." That's terrible advice. You can't just disappear from your business. But you also can't be in every decision.`}),r.jsx("p",{className:"text-foreground font-semibold",children:"The answer: Shift from the driver's seat to the passenger seat."})]})]}),r.jsx("div",{className:"max-w-5xl mx-auto mb-14",children:r.jsxs(G,{className:"p-8 bg-background",children:[r.jsx("h3",{className:"text-xl font-bold text-foreground mb-5",children:"Passenger Seat Leadership means:"}),r.jsx("div",{className:"grid sm:grid-cols-2 gap-4",children:["You're still IN the business (not absent)","You see where it's going (clear visibility)","You can course-correct when needed (strategic input)","But you're NOT operating the controls (team executes)"].map(t=>r.jsxs("div",{className:"flex gap-3",children:[r.jsx(_e,{className:"w-5 h-5 text-primary flex-shrink-0 mt-1"}),r.jsx("span",{className:"text-foreground",children:t})]},t))})]})}),r.jsx("h3",{className:"text-2xl md:text-3xl font-bold text-foreground text-center mb-10",children:"The 3 Principles of Passenger Seat Leadership"}),r.jsx("div",{className:"grid md:grid-cols-3 gap-6 max-w-6xl mx-auto",children:lV.map((t,n)=>r.jsxs(G,{className:"p-7 flex flex-col",children:[r.jsx("div",{className:"w-12 h-12 rounded-xl bg-primary/10 text-primary flex items-center justify-center mb-5",children:r.jsx(t.icon,{className:"w-6 h-6"})}),r.jsxs("div",{className:"text-sm font-bold text-primary uppercase tracking-wider mb-2",children:["Principle ",n+1]}),r.jsx("h4",{className:"text-xl font-bold text-foreground mb-3",children:t.title}),r.jsx("p",{className:"text-muted-foreground leading-relaxed mb-5",children:t.body}),r.jsxs("div",{className:"mt-auto space-y-3 pt-4 border-t border-border",children:[r.jsxs("div",{className:"flex gap-3 text-sm",children:[r.jsx(Ft,{className:"w-4 h-4 text-destructive flex-shrink-0 mt-0.5"}),r.jsx("span",{className:"text-muted-foreground",children:t.bad})]}),r.jsxs("div",{className:"flex gap-3 text-sm",children:[r.jsx(_e,{className:"w-4 h-4 text-primary flex-shrink-0 mt-0.5"}),r.jsx("span",{className:"text-foreground",children:t.good})]})]})]},t.title))})]})}),r.jsx("section",{className:"py-20",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsxs("div",{className:"max-w-[600px] mx-auto text-center",children:[r.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-primary/10 text-primary text-sm font-medium mb-6",children:[r.jsx(I2,{className:"w-4 h-4"})," The Personal Why"]}),r.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-10",children:"Why This Matters to Me"}),r.jsxs("div",{className:"space-y-5 text-lg text-muted-foreground leading-relaxed text-left",children:[r.jsx("p",{children:"When my son was young, I made Fridays non-negotiable."}),r.jsx("p",{children:'No meetings. No client calls. No "urgent" emails.'}),r.jsx("p",{children:"Just father-son time."}),r.jsx("p",{className:"text-foreground font-semibold",children:'That "constraint" forced me to build systems that worked without me.'}
vendor: 7,012 bytes, line 656
656),r.jsx("p",{children:"I've seen too many founders sacrifice their families, their health, and their sanity chasing revenue growth â only to realize they built a prison, not a business."}),r.jsx("p",{className:"text-foreground font-semibold",children:"I did that. Multiple times. Including bankruptcies that taught me more than any success ever could."}),r.jsx("p",{children:"Now I help founders avoid that trap."}),r.jsx("p",{children:"Because entrepreneurship â when combined with kindness, systems, and respect for yourself and self care â is one of the most powerful forces for good in the world."}),r.jsx("p",{className:"text-foreground font-bold text-xl pt-2",children:"You shouldn't have to choose between building a successful business and having a life."}),r.jsx("p",{className:"text-primary font-semibold",children:"That's why Simple Operations exists."})]})]})})}),r.jsx("section",{className:"py-20 bg-section-light border-y border-border",children:r.jsxs("div",{className:"container mx-auto px-6",children:[r.jsx("div",{className:"max-w-4xl mx-auto text-center mb-12",children:r.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-4",children:"By the Numbers: 30+ Years of Building and Scaling"})}),r.jsx("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-6 max-w-6xl mx-auto",children:cV.map(t=>r.jsxs(G,{className:"p-7 text-center bg-background",children:[r.jsx("div",{className:"text-4xl md:text-5xl font-bold text-primary mb-3",children:t.value}),r.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:t.label})]},t.label))})]})}),r.jsx("section",{className:"py-20",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsxs("div",{className:"max-w-6xl mx-auto",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-12 text-center",children:"What Qualifies Me to Teach This"}),r.jsxs("div",{className:"grid md:grid-cols-2 gap-8",children:[r.jsxs(G,{className:"p-8",children:[r.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[r.jsx("div",{className:"w-12 h-12 rounded-xl bg-primary/10 text-primary flex items-center justify-center",children:r.jsx(b7,{className:"w-6 h-6"})}),r.jsx("h3",{className:"text-2xl font-bold text-foreground",children:"Experience"})]}),r.jsx("ul",{className:"space-y-3",children:dV.map(t=>r.jsxs("li",{className:"flex gap-3 text-muted-foreground",children:[r.jsx(_e,{className:"w-5 h-5 text-primary flex-shrink-0 mt-0.5"}),r.jsx("span",{children:t})]},t))})]}),r.jsxs(G,{className:"p-8",children:[r.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[r.jsx("div",{className:"w-12 h-12 rounded-xl bg-primary/10 text-primary flex items-center justify-center",children:r.jsx(I2,{className:"w-6 h-6"})}),r.jsx("h3",{className:"text-2xl font-bold text-foreground",children:"Philosophy"})]}),r.jsx("ul",{className:"space-y-3",children:uV.map(t=>r.jsxs("li",{className:"flex gap-3 text-muted-foreground",children:[r.jsx(_e,{className:"w-5 h-5 text-primary flex-shrink-0 mt-0.5"}),r.jsx("span",{children:t})]},t))})]})]})]})})}),r.jsx("section",{className:"py-20 bg-section-light border-y border-border",children:r.jsxs("div",{className:"container mx-auto px-6",children:[r.jsxs("div",{className:"max-w-4xl mx-auto text-center mb-12",children:[r.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-primary/10 text-primary text-sm font-medium mb-6",children:[r.jsx(Wr,{className:"w-4 h-4"})," Who I Serve"]}),r.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-5",children:"The Founders I Serve"}),r.jsxs("p",{className:"text-lg text-muted-foreground leading-relaxed",children:["I work with founders between"," ",r.jsx("span",{className:"text-foreground font-semibold",children:"$300Kâ$3M (and beyond)"})," ","who are stuck in the Founder Bottleneck."]}),r.jsxs("p",{className:"text-muted-foreground mt-3",children:[r.jsx("span",{className:"text-foreground font-semibold",children:"Why this stage?"})," Because I've been there. Multiple times. I know exactly what it feels like to be trapped in your own success."]})]}),r.jsx("div",{className:"grid md:grid-cols-3 gap-6 max-w-6xl mx-auto",children:hV.map(t=>r.jsxs(G,{className:"p-7 flex flex-col bg-background",children:[r.jsx("div",{className:"w-12 h-12 rounded-xl bg-primary/10 text-primary flex items-center justify-center mb-5",children:r.jsx(t.icon,{className:"w-6 h-6"})}),r.jsx("h3",{className:"text-xl font-bold text-foreground mb-1",children:t.title}),r.jsx("div",{className:"text-sm font-bold text-primary mb-4",children:t.revenue}),r.jsx("p",{className:"text-muted-foreground leading-relaxed mb-5",children:t.body}),r.jsxs("div",{className:"mt-auto pt-5 border-t border-border",children:[r.jsx("div",{className:"text-xs uppercase tracking-wider text-muted-foreground mb-2",children:"You need"}),r.jsx("div",{className:"text-foreground font-semibold mb-4",children:t.need}),r.jsx(te,{asChild:!0,variant:"outline",size:"sm",className:"w-full",children:r.jsxs(ue,{to:t.href,children:["Explore ",t.program," ",r.jsx(Ue,{className:"w-4 h-4 ml-1"})]})})]})]},t.title))})]})}),r.jsx("section",{className:"py-20",children:r.jsxs("div",{className:"container mx-auto px-6",children:[r.jsx("div",{className:"max-w-4xl mx-auto text-center mb-12",children:r.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-4",children:"Why Simple Operations vs. Everything Else You've Tried"})}),r.jsx("div",{className:"grid md:grid-cols-2 gap-6 max-w-6xl mx-auto",children:mV.map(t=>r.jsxs(G,{className:"p-7",children:[r.jsx("h3",{className:"text-xl font-bold text-foreground mb-3",children:t.title}),r.jsx("p",{className:"text-muted-foreground leading-relaxed mb-5",children:t.body}),r.jsxs("div",{className:"space-y-3 pt-4 border-t border-border",children:[r.jsxs("div",{className:"flex gap-3 text-sm",children:[r.jsx(Ft,{className:"w-4 h-4 text-destructive flex-shrink-0 mt-0.5"}),r.jsxs("div",{children:[r.jsx("span",{className:"font-semibold text-foreground",children:"Most others:"})," ",r.jsx("span",{className:"text-muted-foreground",children:t.others})]})]}),r.jsxs("div",{className:"flex gap-3 text-sm",children:[r.jsx(_e,{className:"w-4 h-4 text-primary flex-shrink-0 mt-0.5"}),r.jsxs("div",{children:[r.jsx("span",{className:"font-semibold text-foreground",children:"Simple Operations:"})," ",r.jsx("span",{className:"text-muted-foreground",children:t.us})]})]})]})]},t.title))})]})}),r.jsx("section",{className:"py-20 bg-primary text-primary-foreground",children:r.jsxs("div",{className:"container mx-auto px-6",children:[r.jsx("div",{className:"max-w-4xl mx-auto text-center mb-12",children:r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"What Happens When Founders Install the System"})}),r.jsx("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-6 max-w-6xl mx-auto",children:fV.map(t=>r.jsxs("div",{className:"text-center",children:[r.jsx("div",{className:"text-4xl md:text-5xl font-bold mb-3",children:t.value}
656),r.jsx("p",{className:"text-sm text-primary-foreground/90 leading-relaxed",children:t.label})]},t.label))})]})}),r.jsx("section",{className:"py-20",children:r.jsxs("div",{className:"container mx-auto px-6",children:[r.jsx("div",{className:"max-w-4xl mx-auto text-center mb-12",children:r.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-4",children:"What Founders Say After Installing the System"})}),r.jsx("div",{className:"grid md:grid-cols-2 gap-6 max-w-6xl mx-auto",children:pV.map(t=>r.jsxs(G,{className:"p-7",children:[r.jsx(jr,{className:"w-8 h-8 text-primary mb-4 opacity-70"}),r.jsxs("p",{className:"text-lg text-foreground leading-relaxed mb-5 italic",children:['"',t.quote,'"']}),r.jsxs("div",{className:"pt-4 border-t border-border",children:[r.jsx("div",{className:"font-bold text-foreground",children:t.name}),r.jsx("div",{className:"text-sm text-muted-foreground",children:t.role})]})]},t.name))})]})}),r.jsx("section",{className:"py-20 bg-section-light border-y border-border",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsxs("div",{className:"max-w-[600px] mx-auto text-center",children:[r.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-primary/10 text-primary text-sm font-medium mb-6",children:[r.jsx(Bn,{className:"w-4 h-4"})," The Mission"]}),r.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-10",children:"Why I Do This"}),r.jsxs("div",{className:"space-y-5 text-lg text-muted-foreground leading-relaxed text-left",children:[r.jsx("p",{className:"text-foreground font-bold text-xl",children:"You didn't build a business to become its prisoner."}),r.jsx("p",{children:"You started this because you saw a better way. You wanted freedom, impact, and the ability to build something bigger than yourself."}),r.jsx("p",{className:"text-foreground font-semibold",children:"Somewhere along the way, the business started running you."}),r.jsx("p",{children:"I know that feeling. I've lived it across multiple businesses over 30+ years â including the painful lessons that came with failures and bankruptcies."}),r.jsx("p",{className:"text-foreground font-semibold",children:"My mission is simple: Help you take back control."}),r.jsx("p",{children:"Not by working harder. Not by hiring more people. Not by grinding until you burn out."}),r.jsx("p",{className:"text-foreground font-semibold",children:"By installing the operating system that lets your business scale without exhausting you."}),r.jsx("p",{children:"I've proven this works in my own businesses. I've taught 1,000+ entrepreneurs. And now I'm dedicating Simple Operations to making sure no founder has to suffer through the bottleneck I experienced."}),r.jsx("p",{className:"text-primary font-bold text-xl pt-2",children:"That's what Simple Operations does. That's why I show up every day."})]})]})})}),r.jsx("section",{className:"py-20",children:r.jsxs("div",{className:"container mx-auto px-6",children:[r.jsxs("div",{className:"max-w-4xl mx-auto text-center mb-14",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-4",children:"Ready to Break Your Bottleneck?"}),r.jsx("p",{className:"text-lg text-muted-foreground",children:"Three clear steps from diagnosis to installation."})]}),r.jsx("div",{className:"grid md:grid-cols-3 gap-6 max-w-6xl mx-auto",children:gV.map(t=>r.jsxs(G,{className:"p-7 flex flex-col",children:[r.jsx("div",{className:"text-5xl font-bold text-primary/30 mb-3",children:t.step}),r.jsx("h3",{className:"text-2xl font-bold text-foreground mb-3",children:t.title}),r.jsx("p",{className:"text-muted-foreground leading-relaxed mb-6 flex-1",children:t.body}),r.jsx(te,{asChild:!0,className:"w-full",children:r.jsxs(ue,{to:t.href,children:[t.cta," ",r.jsx(Ue,{className:"w-4 h-4 ml-1"})]})})]},t.step))}),r.jsx("div",{className:"max-w-3xl mx-auto mt-16 text-center",children:r.jsxs(G,{className:"p-8 bg-primary text-primary-foreground border-0",children:[r.jsx("div",{className:"w-20 h-20 rounded-full mx-auto mb-4 overflow-hidden border-4 border-primary-foreground
656/20",children:r.jsx("img",{src:"/lovable-uploads/2d07d38a-1ba0-4bd1-b216-56d38102885f.png",alt:"Gabe Arnold",className:"w-full h-full object-cover"})}),r.jsx("p",{className:"text-lg mb-1",children:"I believe in you,"}),r.jsx("p",{className:"text-2xl font-bold mb-1",children:"Gabe Arnold"}),r.jsx("p",{className:"text-primary-foreground/80 mb-6",children:"CEO, Simple Operations"}),r.jsx(te,{asChild:!0,size:"lg",variant:"secondary",children:r.jsxs(ue,{to:aV,children:["Apply to Work With Us ",r.jsx(Ue,{className:"w-5 h-5 ml-2"})]})})]})})]})})]}),r.jsx(ht,{})]})};var Uh=e=>e.type==="checkbox",Mo=e=>e instanceof Date,Kr=e=>e==null;const R6=e=>typeof e=="object";var Jt=e=>!Kr(e)&&!Array.isArray(e)&&R6(e)&&!Mo(e),M6=e=>Jt(e)&&e.target?Uh(e.target)?e.target.checked:e.target.value:e,yV=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,D6=(e,t)=>e.has(yV(t)),vV=e=>{const t=e.constructor&&e.constructor.prototype;return Jt(t)&&t.hasOwnProperty("isPrototypeOf")},dj=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function dr(e){let t;const n=Array.isArray(e),s=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(dj&&(e instanceof Blob||s))&&(n||Jt(e)))if(t=n?[]:{},!n&&!vV(e))t=e;else for(const a in e)e.hasOwnProperty(a)&&(t[a]=dr(e[a]));else return e;return t}var Lg=e=>/^\w*$/.test(e),Zt=e=>e===void 0,uj=e=>Array.isArray(e)?e.filter(Boolean):[],hj=e=>uj(e.replace(/["|']|\]/g,"").split(/\.|\[/)),ke=(e,t,n)=>{if(!t||!Jt(e))return n;const s=(Lg(t)?[t]:hj(t)).reduce((a,i)=>Kr(a)?a:a[i],e);return Zt(s)||s===e?Zt(e[t])?n:e[t]:s},An=e=>typeof e=="boolean",yt=(e,t,n)=>{let s=-1;const a=Lg(t)?[t]:hj(t),i=a.length,o=i-1;for(;++s<i;){const l=a[s];let c=n;if(s!==o){const d=e[l];c=Jt(d)||Array.isArray(d)?d:isNaN(+a[s+1])?{}:[]}if(l==="__proto__"||l==="constructor"||l==="prototype")return;e[l]=c,e=e[l]}};const hp={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},_s={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},ja={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},mj=ee.createContext(null);mj.displayName="HookFormContext";const Bg=()=>ee.useContext(mj),bV=e=>{const{children:t,...n}=e;return ee.createElement(mj.Provider,{value:n},t)};var F6=(e,t,n,s=!0)=>{const a={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(a,i,{get:()=>{const o=i;return t._proxyFormState[o]!==_s.all&&(t._proxyFormState[o]=!s||_s.all),n&&(n[o]=!0),e[o]}});return a};const fj=typeof window<"u"?ee.useLayoutEffect:ee.useEffect;function wV(e){const t=Bg(),{control:n=t.control,disabled:s,name:a,exact:i}=e||{},[o,l]=ee.useState(n._formState),c=ee.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return fj(()=>n._subscribe({name:a,formState:c.current,exact:i,callback:d=>{!s&&l({...n._formState,...d})}}),[a,s,i]),ee.useEffect(()=>{c.current.isValid&&n._setValid(!0)},[n]),ee.useMemo(()=>F6(o,n,c.current,!1),[o,n])}var ia=e=>typeof e=="string",L6=(e,t,n,s,a)=>ia(e)?(s&&t.watch.add(e),ke(n,e,a)):Array.isArray(e)?e.map(i=>(s&&t.watch.add(i),ke(n,i))):(s&&(t.watchAll=!0),n),N0=e=>Kr(e)||!R6(e);function Pa(e,t,n=new WeakSet){if(N0(e)||N0(t))return e===t;if(Mo(e)&&Mo(t))return e.getTime()===t.getTime();const s=Object.keys(e),a=Object.keys(t);if(s.length!==a.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const i of s){const o=e[i];if(!a.includes(i))return!1;if(i!=="ref"){const l=t[i];if(Mo(o)&&Mo(l)||Jt(o)&&Jt(l)||Array.isArray(o)&&Array.isArray(l)?!Pa(o,l,n):o!==l)return!1}}return!0}function jV(e){const t=Bg(),{control:n=t.control,name:s,defaultValue:a,disabled:i,exact:o,compute:l}=e||{},c=ee.useRef(a),d=ee.useRef(l),u=ee.useRef(void 0);d.current=l;const h=ee.useMemo(()=>n._getWatch(s,c.current),[n,s]),[f,m]=ee.useState(d.current?d.current(h):h);return fj(()=>n._subscribe({name:s,formState:{values:!0},exact:o,callback:y=>{if(!i){const p=L6(s,n._names,y.values||n._formValues,!1,c.current);if(d.current){const v=d.current(p);Pa(v,u.current)||(m(v),u.current=v)}else m(p)}}}),[n,i,s,o]),ee.useEffect(()=>n._removeUnmounted()),f}function NV(e){const t=Bg(),{name:n,disabled:s,control:a=t.control,shouldUnregister:i,defaultValue:o}
vendor: 9,135 bytes, line 656
656=e,l=D6(a._names.array,n),c=ee.useMemo(()=>ke(a._formValues,n,ke(a._defaultValues,n,o)),[a,n,o]),d=jV({control:a,name:n,defaultValue:c,exact:!0}),u=wV({control:a,name:n,exact:!0}),h=ee.useRef(e),f=ee.useRef(a.register(n,{...e.rules,value:d,...An(e.disabled)?{disabled:e.disabled}:{}}));h.current=e;const m=ee.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!ke(u.errors,n)},isDirty:{enumerable:!0,get:()=>!!ke(u.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!ke(u.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!ke(u.validatingFields,n)},error:{enumerable:!0,get:()=>ke(u.errors,n)}}),[u,n]),y=ee.useCallback(x=>f.current.onChange({target:{value:M6(x),name:n},type:hp.CHANGE}),[n]),p=ee.useCallback(()=>f.current.onBlur({target:{value:ke(a._formValues,n),name:n},type:hp.BLUR}),[n,a._formValues]),v=ee.useCallback(x=>{const b=ke(a._fields,n);b&&x&&(b._f.ref={focus:()=>x.focus&&x.focus(),select:()=>x.select&&x.select(),setCustomValidity:w=>x.setCustomValidity(w),reportValidity:()=>x.reportValidity()})},[a._fields,n]),g=ee.useMemo(()=>({name:n,value:d,...An(s)||u.disabled?{disabled:u.disabled||s}:{},onChange:y,onBlur:p,ref:v}),[n,s,u.disabled,y,p,v,d]);return ee.useEffect(()=>{const x=a._options.shouldUnregister||i;a.register(n,{...h.current.rules,...An(h.current.disabled)?{disabled:h.current.disabled}:{}});const b=(w,N)=>{const S=ke(a._fields,w);S&&S._f&&(S._f.mount=N)};if(b(n,!0),x){const w=dr(ke(a._options.defaultValues,n));yt(a._defaultValues,n,w),Zt(ke(a._formValues,n))&&yt(a._formValues,n,w)}return!l&&a.register(n),()=>{(l?x&&!a._state.action:x)?a.unregister(n):b(n,!1)}},[n,a,l,i]),ee.useEffect(()=>{a._setDisabledField({disabled:s,name:n})},[s,n,a]),ee.useMemo(()=>({field:g,formState:u,fieldState:m}),[g,u,m])}const kV=e=>e.render(NV(e));var B6=(e,t,n,s,a)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[s]:a||!0}}:{},ju=e=>Array.isArray(e)?e:[e],S_=()=>{let e=[];return{get observers(){return e},next:a=>{for(const i of e)i.next&&i.next(a)},subscribe:a=>(e.push(a),{unsubscribe:()=>{e=e.filter(i=>i!==a)}}),unsubscribe:()=>{e=[]}}},fn=e=>Jt(e)&&!Object.keys(e).length,pj=e=>e.type==="file",Ss=e=>typeof e=="function",mp=e=>{if(!dj)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},W6=e=>e.type==="select-multiple",gj=e=>e.type==="radio",_V=e=>gj(e)||Uh(e),zy=e=>mp(e)&&e.isConnected;function SV(e,t){const n=t.slice(0,-1).length;let s=0;for(;s<n;)e=Zt(e)?s++:e[t[s++]];return e}function CV(e){for(const t in e)if(e.hasOwnProperty(t)&&!Zt(e[t]))return!1;return!0}function nr(e,t){const n=Array.isArray(t)?t:Lg(t)?[t]:hj(t),s=n.length===1?e:SV(e,n),a=n.length-1,i=n[a];return s&&delete s[i],a!==0&&(Jt(s)&&fn(s)||Array.isArray(s)&&CV(s))&&nr(e,n.slice(0,-1)),e}var U6=e=>{for(const t in e)if(Ss(e[t]))return!0;return!1};function fp(e,t={}){const n=Array.isArray(e);if(Jt(e)||n)for(const s in e)Array.isArray(e[s])||Jt(e[s])&&!U6(e[s])?(t[s]=Array.isArray(e[s])?[]:{},fp(e[s],t[s])):Kr(e[s])||(t[s]=!0);return t}function q6(e,t,n){const s=Array.isArray(e);if(Jt(e)||s)for(const a in e)Array.isArray(e[a])||Jt(e[a])&&!U6(e[a])?Zt(t)||N0(n[a])?n[a]=Array.isArray(e[a])?fp(e[a],[]):{...fp(e[a])}:q6(e[a],Kr(t)?{}:t[a],n[a]):n[a]=!Pa(e[a],t[a]);return n}var Bd=(e,t)=>q6(e,t,fp(t));const C_={value:!1,isValid:!1},E_={value:!0,isValid:!0};var H6=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Zt(e[0].attributes.value)?Zt(e[0].value)||e[0].value===""?E_:{value:e[0].value,isValid:!0}:E_:C_}return C_},z6=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:s})=>Zt(e)?e:t?e===""?NaN:e&&+e:n&&ia(e)?new Date(e):s?s(e):e;const T_={isValid:!1,value:null};var G6=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,T_):T_;function $_(e){const t=e.ref;return pj(t)?t.files:gj(t)?G6(e.refs).value:W6(t)?[...t.selectedOptions].map(({value:n})=>n):Uh(t)?H6(e.refs).value:z6(Zt(t.value)?e.ref.value:t.value,e)}var EV=(e,t,n,s)=>{const a={};for(const i of e){const o=ke(t,i);o&&yt(a,i,o._f)}return{criteriaMode:n,names:[...e],fields:a,shouldUseNativeValidation:s}},pp=e=>e instanceof RegExp,Wd=e=>Zt(e)?e:pp(e)?e.source:Jt(e)?pp(e.value)?e.value.source:e.value:e,O_=e=>({isOnSubmit:!e||e===_s.onSubmit,isOnBlur:e===_s.onBlur,isOnChange:e===_s.onChange,isOnAll:e===_s.all,isOnTouch:e===_s.onTouched});const P_="AsyncFunction";var TV=e=>!!e&&!!e.validate&&!!(Ss(e.validate)&&e.validate.constructor.name===P_||Jt(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===P_)),$V=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),A_=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(s=>e.startsWith(s)&&/^\.\w+/.test(e.slice(s.length))));const Nu=(e,t,n,s)=>{for(const a of n||Object.keys(e)){const i=ke(e,a);if(i){const{_f:o,...l}=i;if(o){if(o.refs&&o.refs[0]&&t(o.refs[0],a)&&!s)return!0;if(o.ref&&t(o.ref,o.name)&&!s)return!0;if(Nu(l,t))break}else if(Jt(l)&&Nu(l,t))break}}};function I_(e,t,n){const s=ke(e,n);if(s||Lg(n))return{error:s,name:n};const a=n.split(".");for(;a.length;){const i=a.join("."),o=ke(t,i),l=ke(e,i);if(o&&!Array.isArray(o)&&n!==i)return{name:n};if(l&&l.type)return{name:i,error:l};if(l&&l.root&&l.root.type)return{name:`${i}.root`,error:l.root};a.pop()}return{name:n}}var OV=(e,t,n,s)=>{n(e);const{name:a,...i}=e;return fn(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(o=>t[o]===(!s||_s.all))},PV=(e,t,n)=>!e||!t||e===t||ju(e).some(s=>s&&(n?s===t:s.startsWith(t)||t.startsWith(s))),AV=(e,t,n,s,a)=>a.isOnAll?!1:!n&&a.isOnTouch?!(t||e):(n?s.isOnBlur:a.isOnBlur)?!e:(n?s.isOnChange:a.isOnChange)?e:!0,IV=(e,t)=>!uj(ke(e,t)).length&&nr(e,t),RV=(e,t,n)=>{const s=ju(ke(e,n));return yt(s,"root",t[n]),yt(e,n,s),e},vf=e=>ia(e);function R_(e,t,n="validate"){if(vf(e)||Array.isArray(e)&&e.every(vf)||An(e)&&!e)return{type:n,message:vf(e)?e:"",ref:t}}var Dl=e=>Jt(e)&&!pp(e)?e:{value:e,message:""},M_=async(e,t,n,s,a,i)=>{const{ref:o,refs:l,required:c,maxLength:d,minLength:u,min:h,max:f,pattern:m,validate:y,name:p,valueAsNumber:v,mount:g}=e._f,x=ke(n,p);if(!g||t.has(p))return{};const b=l?l[0]:o,w=T=>{a&&b.reportValidity&&(b.setCustomValidity(An(T)?"":T||""),b.reportValidity())},N={},S=gj(o),_=Uh(o),C=S||_,$=(v||pj(o))&&Zt(o.value)&&Zt(x)||mp(o)&&o.value===""||x===""||Array.isArray(x)&&!x.length,k=B6.bind(null,p,s,N),E=(T,O,A,U=ja.maxLength,z=ja.minLength)=>{const W=T?O:A;N[p]={type:T?U:z,message:W,ref:o,...k(T?U:z,W)}};if(i?!Array.isArray(x)||!x.length:c&&(!C&&($||Kr(x))||An(x)&&!x||_&&!H6(l).isValid||S&&!G6(l).isValid)){const{value:T,message:O}=vf(c)?{value:!!c,message:c}:Dl(c);if(T&&(N[p]={type:ja.required,message:O,ref:b,...k(ja.required,O)},!s))return w(O),N}if(!$&&(!Kr(h)||!Kr(f))){let T,O;const A=Dl(f),U=Dl(h);if(!Kr(x)&&!isNaN(x)){const z=o.valueAsNumber||x&&+x;Kr(A.value)||(T=z>A.value),Kr(U.value)||(O=z<U.value)}else{const z=o.valueAsDate||new Date(x),W=D=>new Date(new Date().toDateString()+" "+D),B=o.type=="time",R=o.type=="week";ia(A.value)&&x&&(T=B?W(x)>W(A.value):R?x>A.value:z>new Date(A.value)),ia(U.value)&&x&&(O=B?W(x)<W(U.value):R?x<U.value:z<new Date(U.value))}if((T||O)&&(E(!!T,A.message,U.message,ja.max,ja.min),!s))return w(N[p].message),N}if((d||u)&&!$&&(ia(x)||i&&Array.isArray(x))){const T=Dl(d),O=Dl(u),A=!Kr(T.value)&&x.length>+T.value,U=!Kr(O.value)&&x.length<+O.value;if((A||U)&&(E(A,T.message,O.message),!s))return w(N[p].message),N}if(m&&!$&&ia(x)){const{value:T,message:O}=Dl(m);if(pp(T)&&!x.match(T)&&(N[p]={type:ja.pattern,message:O,ref:o,...k(ja.pattern,O)},!s))return w(O),N}if(y){if(Ss(y)){const T=await y(x,n),O=R_(T,b);if(O&&(N[p]={...O,...k(ja.validate,O.message)},!s))return w(O.message),N}else if(Jt(y)){let T={};for(const O in y){if(!fn(T)&&!s)break;const A=R_(await y[O](x,n),b,O);A&&(T={...A,...k(O,A.message)},w(A.message),s&&(N[p]=T))}if(!fn(T)&&(N[p]={ref:b,...T},!s))return N}}return w(!0),N};const MV={mode:_s.onSubmit,reValidateMode:_s.onChange,shouldFocusError:!0};function DV(e={}){let t={...MV,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:Ss(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},s={},a=Jt(t.defaultValues)||Jt(t.values)?dr(t.defaultValues||t.values)||{}:{},i=t.shouldUnregister?{}:dr(a),o={action:!1,mount:!1,watch:!1},l={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c,d=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let h={...u};const f={array:S_(),state:S_()},m=t.criteriaMode===_s.all,y=q=>V=>{clearTimeout(d),d=setTimeout(q,V)},p=async q=>{if(!t.disabled&&(u.isValid||h.isValid||q)){const V=t.resolver?fn((await _()).errors):await $(s,!0);V!==n.isValid&&f.state.next({isValid:V})}},v=(q,V)=>{!t.disabled&&(u.isValidating||u.validatingFields||h.isValidating||h.validatingFields)&&((q||Array.from(l.mount)).forEac
vendor: 5,731 bytes, line 656
656h(K=>{K&&(V?yt(n.validatingFields,K,V):nr(n.validatingFields,K))}),f.state.next({validatingFields:n.validatingFields,isValidating:!fn(n.validatingFields)}))},g=(q,V=[],K,ce,ie=!0,ae=!0)=>{if(ce&&K&&!t.disabled){if(o.action=!0,ae&&Array.isArray(ke(s,q))){const ye=K(ke(s,q),ce.argA,ce.argB);ie&&yt(s,q,ye)}if(ae&&Array.isArray(ke(n.errors,q))){const ye=K(ke(n.errors,q),ce.argA,ce.argB);ie&&yt(n.errors,q,ye),IV(n.errors,q)}if((u.touchedFields||h.touchedFields)&&ae&&Array.isArray(ke(n.touchedFields,q))){const ye=K(ke(n.touchedFields,q),ce.argA,ce.argB);ie&&yt(n.touchedFields,q,ye)}(u.dirtyFields||h.dirtyFields)&&(n.dirtyFields=Bd(a,i)),f.state.next({name:q,isDirty:E(q,V),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else yt(i,q,V)},x=(q,V)=>{yt(n.errors,q,V),f.state.next({errors:n.errors})},b=q=>{n.errors=q,f.state.next({errors:n.errors,isValid:!1})},w=(q,V,K,ce)=>{const ie=ke(s,q);if(ie){const ae=ke(i,q,Zt(K)?ke(a,q):K);Zt(ae)||ce&&ce.defaultChecked||V?yt(i,q,V?ae:$_(ie._f)):A(q,ae),o.mount&&p()}},N=(q,V,K,ce,ie)=>{let ae=!1,ye=!1;const De={name:q};if(!t.disabled){if(!K||ce){(u.isDirty||h.isDirty)&&(ye=n.isDirty,n.isDirty=De.isDirty=E(),ae=ye!==De.isDirty);const Le=Pa(ke(a,q),V);ye=!!ke(n.dirtyFields,q),Le?nr(n.dirtyFields,q):yt(n.dirtyFields,q,!0),De.dirtyFields=n.dirtyFields,ae=ae||(u.dirtyFields||h.dirtyFields)&&ye!==!Le}if(K){const Le=ke(n.touchedFields,q);Le||(yt(n.touchedFields,q,K),De.touchedFields=n.touchedFields,ae=ae||(u.touchedFields||h.touchedFields)&&Le!==K)}ae&&ie&&f.state.next(De)}return ae?De:{}},S=(q,V,K,ce)=>{const ie=ke(n.errors,q),ae=(u.isValid||h.isValid)&&An(V)&&n.isValid!==V;if(t.delayError&&K?(c=y(()=>x(q,K)),c(t.delayError)):(clearTimeout(d),c=null,K?yt(n.errors,q,K):nr(n.errors,q)),(K?!Pa(ie,K):ie)||!fn(ce)||ae){const ye={...ce,...ae&&An(V)?{isValid:V}:{},errors:n.errors,name:q};n={...n,...ye},f.state.next(ye)}},_=async q=>{v(q,!0);const V=await t.resolver(i,t.context,EV(q||l.mount,s,t.criteriaMode,t.shouldUseNativeValidation));return v(q),V},C=async q=>{const{errors:V}=await _(q);if(q)for(const K of q){const ce=ke(V,K);ce?yt(n.errors,K,ce):nr(n.errors,K)}else n.errors=V;return V},$=async(q,V,K={valid:!0})=>{for(const ce in q){const ie=q[ce];if(ie){const{_f:ae,...ye}=ie;if(ae){const De=l.array.has(ae.name),Le=ie._f&&TV(ie._f);Le&&u.validatingFields&&v([ce],!0);const lr=await M_(ie,l.disabled,i,m,t.shouldUseNativeValidation&&!V,De);if(Le&&u.validatingFields&&v([ce]),lr[ae.name]&&(K.valid=!1,V))break;!V&&(ke(lr,ae.name)?De?RV(n.errors,lr,ae.name):yt(n.errors,ae.name,lr[ae.name]):nr(n.errors,ae.name))}!fn(ye)&&await $(ye,V,K)}}return K.valid},k=()=>{for(const q of l.unMount){const V=ke(s,q);V&&(V._f.refs?V._f.refs.every(K=>!zy(K)):!zy(V._f.ref))&&M(q)}l.unMount=new Set},E=(q,V)=>!t.disabled&&(q&&V&&yt(i,q,V),!Pa(D(),a)),T=(q,V,K)=>L6(q,l,{...o.mount?i:Zt(V)?a:ia(q)?{[q]:V}:V},K,V),O=q=>uj(ke(o.mount?i:a,q,t.shouldUnregister?ke(a,q,[]):[])),A=(q,V,K={})=>{const ce=ke(s,q);let ie=V;if(ce){const ae=ce._f;ae&&(!ae.disabled&&yt(i,q,z6(V,ae)),ie=mp(ae.ref)&&Kr(V)?"":V,W6(ae.ref)?[...ae.ref.options].forEach(ye=>ye.selected=ie.includes(ye.value)):ae.refs?Uh(ae.ref)?ae.refs.forEach(ye=>{(!ye.defaultChecked||!ye.disabled)&&(Array.isArray(ie)?ye.checked=!!ie.find(De=>De===ye.value):ye.checked=ie===ye.value||!!ie)}):ae.refs.forEach(ye=>ye.checked=ye.value===ie):pj(ae.ref)?ae.ref.value="":(ae.ref.value=ie,ae.ref.type||f.state.next({name:q,values:dr(i)})))}(K.shouldDirty||K.shouldTouch)&&N(q,ie,K.shouldTouch,K.shouldDirty,!0),K.shouldValidate&&R(q)},U=(q,V,K)=>{for(const ce in V){if(!V.hasOwnProperty(ce))return;const ie=V[ce],ae=q+"."+ce,ye=ke(s,ae);(l.array.has(q)||Jt(ie)||ye&&!ye._f)&&!Mo(ie)?U(ae,ie,K):A(ae,ie,K)}},z=(q,V,K={})=>{const ce=ke(s,q),ie=l.array.has(q),ae=dr(V);yt(i,q,ae),ie?(f.array.next({name:q,values:dr(i)}),(u.isDirty||u.dirtyFields||h.isDirty||h.dirtyFields)&&K.shouldDirty&&f.state.next({name:q,dirtyFields:Bd(a,i),isDirty:E(q,ae)})):ce&&!ce._f&&!Kr(ae)?U(q,ae,K):A(q,ae,K),A_(q,l)&&f.state.next({...n,name:q}),f.state.next({name:o.mount?q:void 0,values:dr(i)})},W=async q=>{o.mount=!0;const V=q.target;let K=V.name,ce=!0;const ie=ke(s,K),ae=Le=>{ce=Number.isNaN(Le)||Mo(Le)&&isNaN(Le.getTime())||Pa(Le,ke(i,K,Le))},ye=O_(t.mode),De=O_(t.reValidateMode);if(ie){let Le,lr;const lt=V.type?$_(ie._f):M6(q),Bt=q.type===hp.BLUR||q.type===hp.FOCUS_OUT,wo=!$V(ie._f)&&!t.resolver&&!ke(n.errors,K)&&!ie._f.deps||AV(Bt,ke(n.touchedFields,K),n.isSubmitted,De,ye),Gn=A_(K,l,Bt);yt(i,K,lt),Bt?(ie._f.onBlur&&ie._f.onBlur(q),c&&c(0)):ie._f.onChange&&ie._f.onChange(q);const Ur=N(K,lt,Bt),on=!fn(Ur)||Gn;if(!Bt&&f.state.next({name:K,type:q.type,values:dr(i)}),wo)return(u.isValid||h.isValid)&&(t.mode==="onBlur"?Bt&&p():Bt||p()),on&&f.state.next({name:K,...Gn?{}:Ur});if(!Bt&&Gn&&f.state.next({...n}),t.resolver){const{errors:$r}=await _([K]);if(ae(lt),ce){const jo=I_(n.errors,s,K),ri=I_($r,s,jo.name||K);Le=ri.error,K=ri.name,lr=fn($r)}}else v([K],!0),Le=(await M_(ie,l.disabled,i,m,t.shouldUseNativeValidation))[K],v([K]),ae(lt),ce&&(Le?lr=!1:(u.isValid||h.isValid)&&(lr=await $(s,!0)));ce&&(ie._f.deps&&R(ie._f.deps),S(K,lr,Le,Ur))}},B=(q,V)=>{if(ke(n.errors,V)&&q.focus)return q.focus(),1},R=async(q,V={})=>{let K,ce;const ie=ju(q);if(t.resolver){const ae=await C(Zt(q)?q:ie);K=fn(ae),ce=q?!ie.some(ye=>ke(ae,ye)):K}else q?(ce=(await Promise.all(ie.map(async ae=>{const ye=ke(s,ae);return await $(ye&&ye._f?{[ae]:ye}:ye)}))).every(Boolean),!(!ce&&!n.isValid)&&p()):ce=K=await $(s);return f.state.next({...!ia(q)||(u.isValid||h.isValid)&&K!==n.isValid?{}:{name:q},...t.resolver||!q?{isValid:K}:{},errors:n.errors}),V.shouldFocus&&!ce&&Nu(s,B,q?ie:l.mount),ce},D=q=>{const V={...o.mount?i:a};return Zt(q)?V:ia(q)?ke(V,q):q.map(K=>
vendor: 4,868 bytes, line 656
656ke(V,K))},P=(q,V)=>({invalid:!!ke((V||n).errors,q),isDirty:!!ke((V||n).dirtyFields,q),error:ke((V||n).errors,q),isValidating:!!ke(n.validatingFields,q),isTouched:!!ke((V||n).touchedFields,q)}),I=q=>{q&&ju(q).forEach(V=>nr(n.errors,V)),f.state.next({errors:q?n.errors:{}})},F=(q,V,K)=>{const ce=(ke(s,q,{_f:{}})._f||{}).ref,ie=ke(n.errors,q)||{},{ref:ae,message:ye,type:De,...Le}=ie;yt(n.errors,q,{...Le,...V,ref:ce}),f.state.next({name:q,errors:n.errors,isValid:!1}),K&&K.shouldFocus&&ce&&ce.focus&&ce.focus()},Y=(q,V)=>Ss(q)?f.state.subscribe({next:K=>"values"in K&&q(T(void 0,V),K)}):T(q,V,!0),H=q=>f.state.subscribe({next:V=>{PV(q.name,V.name,q.exact)&&OV(V,q.formState||u,ot,q.reRenderRoot)&&q.callback({values:{...i},...n,...V,defaultValues:a})}}).unsubscribe,L=q=>(o.mount=!0,h={...h,...q.formState},H({...q,formState:h})),M=(q,V={})=>{for(const K of q?ju(q):l.mount)l.mount.delete(K),l.array.delete(K),V.keepValue||(nr(s,K),nr(i,K)),!V.keepError&&nr(n.errors,K),!V.keepDirty&&nr(n.dirtyFields,K),!V.keepTouched&&nr(n.touchedFields,K),!V.keepIsValidating&&nr(n.validatingFields,K),!t.shouldUnregister&&!V.keepDefaultValue&&nr(a,K);f.state.next({values:dr(i)}),f.state.next({...n,...V.keepDirty?{isDirty:E()}:{}}),!V.keepIsValid&&p()},Q=({disabled:q,name:V})=>{(An(q)&&o.mount||q||l.disabled.has(V))&&(q?l.disabled.add(V):l.disabled.delete(V))},X=(q,V={})=>{let K=ke(s,q);const ce=An(V.disabled)||An(t.disabled);return yt(s,q,{...K||{},_f:{...K&&K._f?K._f:{ref:{name:q}},name:q,mount:!0,...V}}),l.mount.add(q),K?Q({disabled:An(V.disabled)?V.disabled:t.disabled,name:q}):w(q,!0,V.value),{...ce?{disabled:V.disabled||t.disabled}:{},...t.progressive?{required:!!V.required,min:Wd(V.min),max:Wd(V.max),minLength:Wd(V.minLength),maxLength:Wd(V.maxLength),pattern:Wd(V.pattern)}:{},name:q,onChange:W,onBlur:W,ref:ie=>{if(ie){X(q,V),K=ke(s,q);const ae=Zt(ie.value)&&ie.querySelectorAll&&ie.querySelectorAll("input,select,textarea")[0]||ie,ye=_V(ae),De=K._f.refs||[];if(ye?De.find(Le=>Le===ae):ae===K._f.ref)return;yt(s,q,{_f:{...K._f,...ye?{refs:[...De.filter(zy),ae,...Array.isArray(ke(a,q))?[{}]:[]],ref:{type:ae.type,name:q}}:{ref:ae}}}),w(q,!1,void 0,ae)}else K=ke(s,q,{}),K._f&&(K._f.mount=!1),(t.shouldUnregister||V.shouldUnregister)&&!(D6(l.array,q)&&o.action)&&l.unMount.add(q)}}},re=()=>t.shouldFocusError&&Nu(s,B,l.mount),de=q=>{An(q)&&(f.state.next({disabled:q}),Nu(s,(V,K)=>{const ce=ke(s,K);ce&&(V.disabled=ce._f.disabled||q,Array.isArray(ce._f.refs)&&ce._f.refs.forEach(ie=>{ie.disabled=ce._f.disabled||q}))},0,!1))},be=(q,V)=>async K=>{let ce;K&&(K.preventDefault&&K.preventDefault(),K.persist&&K.persist());let ie=dr(i);if(f.state.next({isSubmitting:!0}),t.resolver){const{errors:ae,values:ye}=await _();n.errors=ae,ie=dr(ye)}else await $(s);if(l.disabled.size)for(const ae of l.disabled)nr(ie,ae);if(nr(n.errors,"root"),fn(n.errors)){f.state.next({errors:{}});try{await q(ie,K)}catch(ae){ce=ae}}else V&&await V({...n.errors},K),re(),setTimeout(re);if(f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:fn(n.errors)&&!ce,submitCount:n.submitCount+1,errors:n.errors}),ce)throw ce},Ee=(q,V={})=>{ke(s,q)&&(Zt(V.defaultValue)?z(q,dr(ke(a,q))):(z(q,V.defaultValue),yt(a,q,dr(V.defaultValue))),V.keepTouched||nr(n.touchedFields,q),V.keepDirty||(nr(n.dirtyFields,q),n.isDirty=V.defaultValue?E(q,dr(ke(a,q))):E()),V.keepError||(nr(n.errors,q),u.isValid&&p()),f.state.next({...n}))},Fe=(q,V={})=>{const K=q?dr(q):a,ce=dr(K),ie=fn(q),ae=ie?a:ce;if(V.keepDefaultValues||(a=K),!V.keepValues){if(V.keepDirtyValues){const ye=new Set([...l.mount,...Object.keys(Bd(a,i))]);for(const De of Array.from(ye))ke(n.dirtyFields,De)?yt(ae,De,ke(i,De)):z(De,ke(ae,De))}else{if(dj&&Zt(q))for(const ye of l.mount){const De=ke(s,ye);if(De&&De._f){const Le=Array.isArray(De._f.refs)?De._f.refs[0]:De._f.ref;if(mp(Le)){const lr=Le.closest("form");if(lr){lr.reset();break}}}}if(V.keepFieldsRef)for(const ye of l.mount)z(ye,ke(ae,ye));else s={}}i=t.shouldUnregister?V.keepDefaultValues?dr(a):{}:dr(ae),f.array.next({values:{...ae}}),f.state.next({values:{...ae}})}l={mount:V.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!u.isValid||!!V.keepIsValid||!!V.keepDirtyValues,o.watch=!!t.shouldUnregister,f.state.next({submitCount:V.keepSubmitCount?n.submitCount:0,isDirty:ie?!1:V.keepDirty?n.isDirty:!!(V.keepDefaultValues&&!Pa(q,a)),isSubmitted:V.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:ie?{}:V.keepDirtyValues?V.keepDefaultValues&&i?Bd(a,i):n.dirtyFields:V.keepDefaultValues&&q?Bd(a,q):V.keepDirty?n.dirtyFields:{},touchedFields:V.keepTouched?n.touchedFields:{},errors:V.keepErrors?n.errors:{},isSubmitSuccessful:V.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},qe=(q,V)=>Fe(Ss(q)?q(i):q,V),xt=(q,V={})=>{const K=ke(s,q),ce=K&&K._f;if(ce){const ie=ce.refs?ce.refs[0]:ce.ref;
656ie.focus&&(ie.focus(),V.shouldSelect&&Ss(ie.select)&&ie.select())}},ot=q=>{n={...n,...q}},se={control:{register:X,unregister:M,getFieldState:P,handleSubmit:be,setError:F,_subscribe:H,_runSchema:_,_focusError:re,_getWatch:T,_getDirty:E,_setValid:p,_setFieldArray:g,_setDisabledField:Q,_setErrors:b,_getFieldArray:O,_reset:Fe,_resetDefaultValues:()=>Ss(t.defaultValues)&&t.defaultValues().then(q=>{qe(q,t.resetOptions),f.state.next({isLoading:!1})}),_removeUnmounted:k,_disableForm:de,_subjects:f,_proxyFormState:u,get _fields(){return s},get _formValues(){return i},get _state(){return o},set _state(q){o=q},get _defaultValues(){return a},get _names(){return l},set _names(q){l=q},get _formState(){return n},get _options(){return t},set _options(q){t={...t,...q}}},subscribe:L,trigger:R,register:X,handleSubmit:be,watch:Y,setValue:z,getValues:D,reset:qe,resetField:Ee,clearErrors:I,unregister:M,setError:F,setFocus:xt,getFieldState:P};return{...se,formControl:se}}function Y6(e={}){const t=ee.useRef(void 0),n=ee.useRef(void 0),[s,a]=ee.useState({isDirty:!1,isValidating:!1,isLoading:Ss(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:Ss(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:s},e.defaultValues&&!Ss(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:o,...l}=DV(e);t.current={...l,formState:s}}const i=t.current.control;return i._options=e,fj(()=>{const o=i._subscribe({formState:i._proxyFormState,callback:()=>a({...i._formState}),reRenderRoot:!0});return a(l=>({...l,isReady:!0})),i._formState.isReady=!0,o},[i]),ee.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),ee.useEffect(()=>{e.mode&&(i._options.mode=e.mode),e.reValidateMode&&(i._options.reValidateMode=e.reValidateMode)},[i,e.mode,e.reValidateMode]),ee.useEffect(()=>{e.errors&&(i._setErrors(e.errors),i._focusError())},[i,e.errors]),ee.useEffect(()=>{e.shouldUnregister&&i._subjects.state.next({values:i._getWatch()})},[i,e.shouldUnregister]),ee.useEffect(()=>{if(i._proxyFormState.isDirty){const o=i._getDirty();o!==s.isDirty&&i._subjects.state.next({isDirty:o})}},[i,s.isDirty]),ee.useEffect(()=>{e.values&&!Pa(e.values,n.current)?(i._reset(e.values,{keepFieldsRef:!0,...i._options.resetOptions}),n.current=e.values,a(o=>({...o}))):i._resetDefaultValues()},[i,e.values]),ee.useEffect(()=>{i._state.mount||(i._setValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),t.current.formState=F6(s,i),t.current}const D_=(e,t,n)=>{if(e&&"reportValidity"in e){const s=ke(n,t);e.setCustomValidity(s&&s.message||""),e.reportValidity()}},V6=(e,t)=>{for(const n in t.fields){const s=t.fields[n];s&&s.ref&&"reportValidity"in s.ref?D_(s.ref,n,e):s.refs&&s.refs.forEach(a=>D_(a,n,e))}},FV=(e,t)=>{t.shouldUseNativeValidation&&V6(e,t);const n={};for(const s in e){const a=ke(t.fields,s),i=Object.assign(e[s]||{},{ref:a&&a.ref});if(LV(t.names||Object.keys(e),s)){const o=Object.assign({},ke(n,s));yt(o,"root",i),yt(n,s,o)}else yt(n,s,i)}return n},LV=(e,t)=>e.some(n=>n.startsWith(t+"."));var BV=function(e,t){for(var n={};e.length;){var s=e[0],a=s.code,i=s.message,o=s.path.join(".");if(!n[o])if("unionErrors"in s){var l=s.unionErrors[0].errors[0];n[o]={message:l.message,type:l.code}}else n[o]={message:i,type:a};if("unionErrors"in s&&s.unionErrors.forEach(function(u){return u.errors.forEach(function(h){return e.push(h)})}),t){var c=n[o].types,d=c&&c[s.code];n[o]=B6(o,t,n,a,d?[].concat(d,s.message):s.message)}e.shift()}return n},K6=function(e,t,n){return n===void 0&&(n={}),function(s,a,i){try{return Promise.resolve(function(o,l){try{var c=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](s,t)).then(function(d){return i.shouldUseNativeValidation&&V6({},i),{errors:{},values:n.raw?s:d}})}catch(d){return l(d)}return c&&c.then?c.then(void 0,l):c}(0,function(o){if(function(l){return Array.isArray(l==null?void 0:l.errors)}(o))return{values:{},errors:FV(BV(o.errors,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw o}))}catch(o){return Promise.reject(o)}}},ft;(function(e){e.assertEqual=a=>{};function t(a){}e.assertIs=t;function n(a){throw new Error}e.assertNever=n,e.arrayToEnum=a=>{const i={};for(const o of a)i[o]=o;return i},e.getValidEnumValues=a=>{const i=e.objectKeys(a).filter(l=>typeof a[a[l]]!="number"),o={};for(const l of i)o[l]=a[l];return e.objectValues(o)},e.objectValues=a=>e.objectKeys(a).map(function(i){return a[i]}),e.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const i=[];for(const o in a)Object.prototype.hasOwnProperty.call(a,o)&&i.push(o);return i},e.find=(a,i)=>{for(const o of a)if(i(o))return o}
vendor: 7,139 bytes, line 656
656,e.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&Number.isFinite(a)&&Math.floor(a)===a;function s(a,i=" | "){return a.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}e.joinValues=s,e.jsonStringifyReplacer=(a,i)=>typeof i=="bigint"?i.toString():i})(ft||(ft={}));var F_;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(F_||(F_={}));const Oe=ft.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),xi=e=>{switch(typeof e){case"undefined":return Oe.undefined;case"string":return Oe.string;case"number":return Number.isNaN(e)?Oe.nan:Oe.number;case"boolean":return Oe.boolean;case"function":return Oe.function;case"bigint":return Oe.bigint;case"symbol":return Oe.symbol;case"object":return Array.isArray(e)?Oe.array:e===null?Oe.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Oe.promise:typeof Map<"u"&&e instanceof Map?Oe.map:typeof Set<"u"&&e instanceof Set?Oe.set:typeof Date<"u"&&e instanceof Date?Oe.date:Oe.object;default:return Oe.unknown}},xe=ft.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Ga extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(i){return i.message},s={_errors:[]},a=i=>{for(const o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(a);else if(o.code==="invalid_return_type")a(o.returnTypeError);else if(o.code==="invalid_arguments")a(o.argumentsError);else if(o.path.length===0)s._errors.push(n(o));else{let l=s,c=0;for(;c<o.path.length;){const d=o.path[c];c===o.path.length-1?(l[d]=l[d]||{_errors:[]},l[d]._errors.push(n(o))):l[d]=l[d]||{_errors:[]},l=l[d],c++}}};return a(this),s}static assert(t){if(!(t instanceof Ga))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ft.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},s=[];for(const a of this.issues)if(a.path.length>0){const i=a.path[0];n[i]=n[i]||[],n[i].push(t(a))}else s.push(t(a));return{formErrors:s,fieldErrors:n}}get formErrors(){return this.flatten()}}Ga.create=e=>new Ga(e);const k0=(e,t)=>{let n;switch(e.code){case xe.invalid_type:e.received===Oe.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case xe.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,ft.jsonStringifyReplacer)}`;break;case xe.unrecognized_keys:n=`Unrecognized key(s) in object: ${ft.joinValues(e.keys,", ")}`;break;case xe.invalid_union:n="Invalid input";break;case xe.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${ft.joinValues(e.options)}`;break;case xe.invalid_enum_value:n=`Invalid enum value. Expected ${ft.joinValues(e.options)}, received '${e.received}'`;break;case xe.invalid_arguments:n="Invalid function arguments";break;case xe.invalid_return_type:n="Invalid function return type";break;case xe.invalid_date:n="Invalid date";break;case xe.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:ft.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case xe.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case xe.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case xe.custom:n="Invalid input";break;case xe.invalid_intersection_types:n="Intersection results could not be merged";break;case xe.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case xe.not_finite:n="Number must be finite";break;default:n=t.defaultError,ft.assertNever(e)}return{message:n}};let WV=k0;function UV(){return WV}const qV=e=>{const{data:t,path:n,errorMaps:s,issueData:a}=e,i=[...n,...a.path||[]],o={...a,path:i};if(a.message!==void 0)return{...a,path:i,message:a.message};let l="";const c=s.filter(d=>!!d).slice().reverse();for(const d of c)l=d(o,{data:t,defaultError:l}).message;return{...a,path:i,message:l}};function Ce(e,t){const n=UV(),s=qV({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===k0?void 0:k0].filter(a=>!!a)});e.common.issues.push(s)}class Un{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const s=[];for(const a of n){if(a.status==="aborted")return Ve;a.status==="dirty"&&t.dirty(),s.push(a.value)}return{status:t.value,value:s}}static async mergeObjectAsync(t,n){const s=[];for(const a of n){const i=await a.key,o=await a.value;s.push({key:i,value:o})}return Un.mergeObjectSync(t,s)}static mergeObjectSync(t,n){const s={};for(const a of n){const{key:i,value:o}=a;if(i.status==="aborted"||o.status==="aborted")return Ve;i.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof o.value<"u"||a.alwaysSet)&&(s[i.value]=o.value)}return{status:t.value,value:s}}}const Ve=Object.freeze({status:"aborted"}
vendor: 16,567 bytes, line 656
656),ou=e=>({status:"dirty",value:e}),is=e=>({status:"valid",value:e}),L_=e=>e.status==="aborted",B_=e=>e.status==="dirty",qc=e=>e.status==="valid",gp=e=>typeof Promise<"u"&&e instanceof Promise;var Re;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(Re||(Re={}));class ro{constructor(t,n,s,a){this._cachedPath=[],this.parent=t,this.data=n,this._path=s,this._key=a}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const W_=(e,t)=>{if(qc(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new Ga(e.common.issues);return this._error=n,this._error}}};function rt(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:s,description:a}=e;if(t&&(n||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:a}:{errorMap:(o,l)=>{const{message:c}=e;return o.code==="invalid_enum_value"?{message:c??l.defaultError}:typeof l.data>"u"?{message:c??s??l.defaultError}:o.code!=="invalid_type"?{message:l.defaultError}:{message:c??n??l.defaultError}},description:a}}class mt{get description(){return this._def.description}_getType(t){return xi(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:xi(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Un,ctx:{common:t.parent.common,data:t.data,parsedType:xi(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(gp(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const s=this.safeParse(t,n);if(s.success)return s.data;throw s.error}safeParse(t,n){const s={common:{issues:[],async:(n==null?void 0:n.async)??!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:xi(t)},a=this._parseSync({data:t,path:s.path,parent:s});return W_(s,a)}"~validate"(t){var s,a;const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:xi(t)};if(!this["~standard"].async)try{const i=this._parseSync({data:t,path:[],parent:n});return qc(i)?{value:i.value}:{issues:n.common.issues}}catch(i){(a=(s=i==null?void 0:i.message)==null?void 0:s.toLowerCase())!=null&&a.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(i=>qc(i)?{value:i.value}:{issues:n.common.issues})}async parseAsync(t,n){const s=await this.safeParseAsync(t,n);if(s.success)return s.data;throw s.error}async safeParseAsync(t,n){const s={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:xi(t)},a=this._parse({data:t,path:s.path,parent:s}),i=await(gp(a)?a:Promise.resolve(a));return W_(s,i)}refine(t,n){const s=a=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(a):n;return this._refinement((a,i)=>{const o=t(a),l=()=>i.addIssue({code:xe.custom,...s(a)});return typeof Promise<"u"&&o instanceof Promise?o.then(c=>c?!0:(l(),!1)):o?!0:(l(),!1)})}refinement(t,n){return this._refinement((s,a)=>t(s)?!0:(a.addIssue(typeof n=="function"?n(s,a):n),!1))}_refinement(t){return new zc({schema:this,typeName:Ke.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return Vi.create(this,this._def)}nullable(){return Gc.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ua.create(this)}promise(){return bp.create(this,this._def)}or(t){return yp.create([this,t],this._def)}and(t){return vp.create(this,t,this._def)}transform(t){return new zc({...rt(this._def),schema:this,typeName:Ke.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new C0({...rt(this._def),innerType:this,defaultValue:n,typeName:Ke.ZodDefault})}brand(){return new hK({typeName:Ke.ZodBranded,type:this,...rt(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new E0({...rt(this._def),innerType:this,catchValue:n,typeName:Ke.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return xj.create(this,t)}readonly(){return T0.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const HV=/^c[^\s-]{8,}$/i,zV=/^[0-9a-z]+$/,GV=/^[0-9A-HJKMNP-TV-Z]{26}$/i,YV=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,VV=/^[a-z0-9_-]{21}$/i,KV=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,QV=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,ZV=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,XV="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Gy;const JV=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,eK=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,tK=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,rK=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,nK=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,sK=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Q6="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",aK=new RegExp(`^${Q6}$`);function Z6(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function iK(e){return new RegExp(`^${Z6(e)}$`)}function oK(e){let t=`${Q6}T${Z6(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function lK(e,t){return!!((t==="v4"||!t)&&JV.test(e)||(t==="v6"||!t)&&tK.test(e))}function cK(e,t){if(!KV.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const s=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),a=JSON.parse(atob(s));return!(typeof a!="object"||a===null||"typ"in a&&(a==null?void 0:a.typ)!=="JWT"||!a.alg||t&&a.alg!==t)}catch{return!1}}function dK(e,t){return!!((t==="v4"||!t)&&eK.test(e)||(t==="v6"||!t)&&rK.test(e))}class Di extends mt{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Oe.string){const i=this._getOrReturnCtx(t);return Ce(i,{code:xe.invalid_type,expected:Oe.string,received:i.parsedType}),Ve}const s=new Un;let a;for(const i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(a=this._getOrReturnCtx(t,a),Ce(a,{code:xe.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),s.dirty());else if(i.kind==="max")t.data.length>i.value&&(a=this._getOrReturnCtx(t,a),Ce(a,{code:xe.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),s.dirty());else if(i.kind==="length"){const o=t.data.length>i.value,l=t.data.length<i.value;(o||l)&&(a=this._getOrReturnCtx(t,a),o?Ce(a,{code:xe.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):l&&Ce(a,{code:xe.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),s.dirty())}else if(i.kind==="email")ZV.test(t.data)||(a=this._getOrReturnCtx(t,a),Ce(a,{validation:"email",code:xe.invalid_string,message:i.message}),s.dirty());else if(i.kind==="emoji")Gy||(Gy=new RegExp(XV,"u")),Gy.test(t.data)||(a=this._getOrReturnCtx(t,a),Ce(a,{validation:"emoji",code:xe.invalid_string,message:i.message}),s.dirty());else if(i.kind==="uuid")YV.test(t.data)||(a=this._getOrReturnCtx(t,a),Ce(a,{validation:"uuid",code:xe.invalid_string,message:i.message}),s.dirty());else if(i.kind==="nanoid")VV.test(t.data)||(a=this._getOrReturnCtx(t,a),Ce(a,{validation:"nanoid",code:xe.invalid_string,message:i.message}),s.dirty());else if(i.kind==="cuid")HV.test(t.data)||(a=this._getOrReturnCtx(t,a),Ce(a,{validation:"cuid",code:xe.invalid_string,message:i.message}),s.dirty());else if(i.kind==="cuid2")zV.test(t.data)||(a=this._getOrReturnCtx(t,a),Ce(a,{validation:"cuid2",code:xe.invalid_string,message:i.message}),s.dirty());else if(i.kind==="ulid")GV.test(t.data)||(a=this._getOrReturnCtx(t,a),Ce(a,{validation:"ulid",code:xe.invalid_string,message:i.message}),s.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{a=this._getOrReturnCtx(t,a),Ce(a,{validation:"url",code:xe.invalid_string,message:i.message}),s.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(a=this._getOrReturnCtx(t,a),Ce(a,{validation:"regex",code:xe.invalid_string,message:i.message}),s.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(a=this._getOrReturnCtx(t,a),Ce(a,{code:xe.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),s.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(a=this._getOrReturnCtx(t,a),Ce(a,{code:xe.invalid_string,validation:{startsWith:i.value},message:i.message}),s.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(a=this._getOrReturnCtx(t,a),Ce(a,{code:xe.invalid_string,validation:{endsWith:i.value},message:i.message}),s.dirty()):i.kind==="datetime"?oK(i).test(t.data)||(a=this._getOrReturnCtx(t,a),Ce(a,{code:xe.invalid_string,validation:"datetime",message:i.message}),s.dirty()):i.kind==="date"?aK.test(t.data)||(a=this._getOrReturnCtx(t,a),Ce(a,{code:xe.invalid_string,validation:"date",message:i.message}),s.dirty()):i.kind==="time"?iK(i).test(t.data)||(a=this._getOrReturnCtx(t,a),Ce(a,{code:xe.invalid_string,validation:"time",message:i.message}),s.dirty()):i.kind==="duration"?QV.test(t.data)||(a=this._getOrReturnCtx(t,a),Ce(a,{validation:"duration",code:xe.invalid_string,message:i.message}),s.dirty()):i.kind==="ip"?lK(t.data,i.version)||(a=this._getOrReturnCtx(t,a),Ce(a,{validation:"ip",code:xe.invalid_string,message:i.message}),s.dirty()):i.kind==="jwt"?cK(t.data,i.alg)||(a=this._getOrReturnCtx(t,a),Ce(a,{validation:"jwt",code:xe.invalid_string,message:i.message}),s.dirty()):i.kind==="cidr"?dK(t.data,i.version)||(a=this._getOrReturnCtx(t,a),Ce(a,{validation:"cidr",code:xe.invalid_string,message:i.message}),s.dirty()):i.kind==="base64"?nK.test(t.data)||(a=this._getOrReturnCtx(t,a),Ce(a,{validation:"base64",code:xe.invalid_string,message:i.message}),s.dirty()):i.kind==="base64url"?sK.test(t.data)||(a=this._getOrReturnCtx(t,a),Ce(a,{validation:"base64url",code:xe.invalid_string,message:i.message}),s.dirty()):ft.assertNever(i);return{status:s.value,value:t.data}}_regex(t,n,s){return this.refinement(a=>t.test(a),{validation:n,code:xe.invalid_string,...Re.errToObj(s)})}_addCheck(t){return new Di({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Re.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Re.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Re.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Re.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Re.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Re.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Re.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Re.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Re.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...Re.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...Re.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Re.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...Re.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...Re.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...Re.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...Re.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...Re.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...Re.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...Re.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...Re.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...Re.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...Re.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...Re.errToObj(n)})}nonempty(t){return this.min(1,Re.errToObj(t))}trim(){return new Di({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Di({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Di({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}
vendor: 4,670 bytes, line 656
656get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Di.create=e=>new Di({checks:[],typeName:Ke.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...rt(e)});function uK(e,t){const n=(e.toString().split(".")[1]||"").length,s=(t.toString().split(".")[1]||"").length,a=n>s?n:s,i=Number.parseInt(e.toFixed(a).replace(".","")),o=Number.parseInt(t.toFixed(a).replace(".",""));return i%o/10**a}class eh extends mt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Oe.number){const i=this._getOrReturnCtx(t);return Ce(i,{code:xe.invalid_type,expected:Oe.number,received:i.parsedType}),Ve}let s;const a=new Un;for(const i of this._def.checks)i.kind==="int"?ft.isInteger(t.data)||(s=this._getOrReturnCtx(t,s),Ce(s,{code:xe.invalid_type,expected:"integer",received:"float",message:i.message}),a.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(s=this._getOrReturnCtx(t,s),Ce(s,{code:xe.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),a.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(s=this._getOrReturnCtx(t,s),Ce(s,{code:xe.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),a.dirty()):i.kind==="multipleOf"?uK(t.data,i.value)!==0&&(s=this._getOrReturnCtx(t,s),Ce(s,{code:xe.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(s=this._getOrReturnCtx(t,s),Ce(s,{code:xe.not_finite,message:i.message}),a.dirty()):ft.assertNever(i);return{status:a.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Re.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Re.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Re.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Re.toString(n))}setLimit(t,n,s,a){return new eh({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:s,message:Re.toString(a)}]})}_addCheck(t){return new eh({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Re.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Re.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Re.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Re.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Re.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Re.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:Re.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Re.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Re.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&ft.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(n===null||s.value>n)&&(n=s.value):s.kind==="max"&&(t===null||s.value<t)&&(t=s.value)}return Number.isFinite(n)&&Number.isFinite(t)}
vendor: 8,035 bytes, line 656
656}eh.create=e=>new eh({checks:[],typeName:Ke.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...rt(e)});class th extends mt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==Oe.bigint)return this._getInvalidInput(t);let s;const a=new Un;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(s=this._getOrReturnCtx(t,s),Ce(s,{code:xe.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),a.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(s=this._getOrReturnCtx(t,s),Ce(s,{code:xe.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),a.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(s=this._getOrReturnCtx(t,s),Ce(s,{code:xe.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):ft.assertNever(i);return{status:a.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return Ce(n,{code:xe.invalid_type,expected:Oe.bigint,received:n.parsedType}),Ve}gte(t,n){return this.setLimit("min",t,!0,Re.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Re.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Re.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Re.toString(n))}setLimit(t,n,s,a){return new th({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:s,message:Re.toString(a)}]})}_addCheck(t){return new th({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Re.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Re.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Re.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Re.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Re.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}th.create=e=>new th({checks:[],typeName:Ke.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...rt(e)});class U_ extends mt{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Oe.boolean){const s=this._getOrReturnCtx(t);return Ce(s,{code:xe.invalid_type,expected:Oe.boolean,received:s.parsedType}),Ve}return is(t.data)}}U_.create=e=>new U_({typeName:Ke.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...rt(e)});class xp extends mt{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Oe.date){const i=this._getOrReturnCtx(t);return Ce(i,{code:xe.invalid_type,expected:Oe.date,received:i.parsedType}),Ve}if(Number.isNaN(t.data.getTime())){const i=this._getOrReturnCtx(t);return Ce(i,{code:xe.invalid_date}),Ve}const s=new Un;let a;for(const i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(a=this._getOrReturnCtx(t,a),Ce(a,{code:xe.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),s.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(a=this._getOrReturnCtx(t,a),Ce(a,{code:xe.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),s.dirty()):ft.assertNever(i);return{status:s.value,value:new Date(t.data.getTime())}}_addCheck(t){return new xp({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:Re.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:Re.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}xp.create=e=>new xp({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Ke.ZodDate,...rt(e)});class q_ extends mt{_parse(t){if(this._getType(t)!==Oe.symbol){const s=this._getOrReturnCtx(t);return Ce(s,{code:xe.invalid_type,expected:Oe.symbol,received:s.parsedType}),Ve}return is(t.data)}}q_.create=e=>new q_({typeName:Ke.ZodSymbol,...rt(e)});class H_ extends mt{_parse(t){if(this._getType(t)!==Oe.undefined){const s=this._getOrReturnCtx(t);return Ce(s,{code:xe.invalid_type,expected:Oe.undefined,received:s.parsedType}),Ve}return is(t.data)}}H_.create=e=>new H_({typeName:Ke.ZodUndefined,...rt(e)});class z_ extends mt{_parse(t){if(this._getType(t)!==Oe.null){const s=this._getOrReturnCtx(t);return Ce(s,{code:xe.invalid_type,expected:Oe.null,received:s.parsedType}),Ve}return is(t.data)}}z_.create=e=>new z_({typeName:Ke.ZodNull,...rt(e)});class G_ extends mt{constructor(){super(...arguments),this._any=!0}_parse(t){return is(t.data)}}G_.create=e=>new G_({typeName:Ke.ZodAny,...rt(e)});class Y_ extends mt{constructor(){super(...arguments),this._unknown=!0}_parse(t){return is(t.data)}}Y_.create=e=>new Y_({typeName:Ke.ZodUnknown,...rt(e)});class no extends mt{_parse(t){const n=this._getOrReturnCtx(t);return Ce(n,{code:xe.invalid_type,expected:Oe.never,received:n.parsedType}),Ve}}no.create=e=>new no({typeName:Ke.ZodNever,...rt(e)});class V_ extends mt{_parse(t){if(this._getType(t)!==Oe.undefined){const s=this._getOrReturnCtx(t);return Ce(s,{code:xe.invalid_type,expected:Oe.void,received:s.parsedType}),Ve}return is(t.data)}}V_.create=e=>new V_({typeName:Ke.ZodVoid,...rt(e)});class ua extends mt{_parse(t){const{ctx:n,status:s}=this._processInputParams(t),a=this._def;if(n.parsedType!==Oe.array)return Ce(n,{code:xe.invalid_type,expected:Oe.array,received:n.parsedType}),Ve;if(a.exactLength!==null){const o=n.data.length>a.exactLength.value,l=n.data.length<a.exactLength.value;(o||l)&&(Ce(n,{code:o?xe.too_big:xe.too_small,minimum:l?a.exactLength.value:void 0,maximum:o?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),s.dirty())}if(a.minLength!==null&&n.data.length<a.minLength.value&&(Ce(n,{code:xe.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),s.dirty()),a.maxLength!==null&&n.data.length>a.maxLength.value&&(Ce(n,{code:xe.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),s.dirty()),n.common.async)return Promise.all([...n.data].map((o,l)=>a.type._parseAsync(new ro(n,o,n.path,l)))).then(o=>Un.mergeArray(s,o));const i=[...n.data].map((o,l)=>a.type._parseSync(new ro(n,o,n.path,l)));return Un.mergeArray(s,i)}get element(){return this._def.type}min(t,n){return new ua({...this._def,minLength:{value:t,message:Re.toString(n)}})}max(t,n){return new ua({...this._def,maxLength:{value:t,message:Re.toString(n)}})}length(t,n){return new ua({...this._def,exactLength:{value:t,message:Re.toString(n)}})}nonempty(t){return this.min(1,t)}}ua.create=(e,t)=>new ua({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Ke.ZodArray,...rt(t)});function ql(e){if(e instanceof Yt){const t={};for(const n in e.shape){const s=e.shape[n];t[n]=Vi.create(ql(s))}return new Yt({...e._def,shape:()=>t})}else return e instanceof ua?new ua({...e._def,type:ql(e.element)}):e instanceof Vi?Vi.create(ql(e.unwrap())):e instanceof Gc?Gc.create(ql(e.unwrap())):e instanceof ol?ol.create(e.items.map(t=>ql(t))):e}class Yt extends mt{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=ft.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==Oe.object){const d=this._getOrReturnCtx(t);return Ce(d,{code:xe.invalid_type,expected:Oe.object,received:d.parsedType}),Ve}const{status:s,ctx:a}=this._processInputParams(t),{shape:i,keys:o}=this._getCached(),l=[];
vendor: 4,642 bytes, line 656
656if(!(this._def.catchall instanceof no&&this._def.unknownKeys==="strip"))for(const d in a.data)o.includes(d)||l.push(d);const c=[];for(const d of o){const u=i[d],h=a.data[d];c.push({key:{status:"valid",value:d},value:u._parse(new ro(a,h,a.path,d)),alwaysSet:d in a.data})}if(this._def.catchall instanceof no){const d=this._def.unknownKeys;if(d==="passthrough")for(const u of l)c.push({key:{status:"valid",value:u},value:{status:"valid",value:a.data[u]}});else if(d==="strict")l.length>0&&(Ce(a,{code:xe.unrecognized_keys,keys:l}),s.dirty());else if(d!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const d=this._def.catchall;for(const u of l){const h=a.data[u];c.push({key:{status:"valid",value:u},value:d._parse(new ro(a,h,a.path,u)),alwaysSet:u in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const d=[];for(const u of c){const h=await u.key,f=await u.value;d.push({key:h,value:f,alwaysSet:u.alwaysSet})}return d}).then(d=>Un.mergeObjectSync(s,d)):Un.mergeObjectSync(s,c)}get shape(){return this._def.shape()}strict(t){return Re.errToObj,new Yt({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,s)=>{var i,o;const a=((o=(i=this._def).errorMap)==null?void 0:o.call(i,n,s).message)??s.defaultError;return n.code==="unrecognized_keys"?{message:Re.errToObj(t).message??a}:{message:a}}}:{}})}strip(){return new Yt({...this._def,unknownKeys:"strip"})}passthrough(){return new Yt({...this._def,unknownKeys:"passthrough"})}extend(t){return new Yt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Yt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Ke.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Yt({...this._def,catchall:t})}pick(t){const n={};for(const s of ft.objectKeys(t))t[s]&&this.shape[s]&&(n[s]=this.shape[s]);return new Yt({...this._def,shape:()=>n})}omit(t){const n={};for(const s of ft.objectKeys(this.shape))t[s]||(n[s]=this.shape[s]);return new Yt({...this._def,shape:()=>n})}deepPartial(){return ql(this)}partial(t){const n={};for(const s of ft.objectKeys(this.shape)){const a=this.shape[s];t&&!t[s]?n[s]=a:n[s]=a.optional()}return new Yt({...this._def,shape:()=>n})}required(t){const n={};for(const s of ft.objectKeys(this.shape))if(t&&!t[s])n[s]=this.shape[s];else{let i=this.shape[s];for(;i instanceof Vi;)i=i._def.innerType;n[s]=i}return new Yt({...this._def,shape:()=>n})}keyof(){return X6(ft.objectKeys(this.shape))}}Yt.create=(e,t)=>new Yt({shape:()=>e,unknownKeys:"strip",catchall:no.create(),typeName:Ke.ZodObject,...rt(t)});Yt.strictCreate=(e,t)=>new Yt({shape:()=>e,unknownKeys:"strict",catchall:no.create(),typeName:Ke.ZodObject,...rt(t)});Yt.lazycreate=(e,t)=>new Yt({shape:e,unknownKeys:"strip",catchall:no.create(),typeName:Ke.ZodObject,...rt(t)});class yp extends mt{_parse(t){const{ctx:n}=this._processInputParams(t),s=this._def.options;function a(i){for(const l of i)if(l.result.status==="valid")return l.result;for(const l of i)if(l.result.status==="dirty")return n.common.issues.push(...l.ctx.common.issues),l.result;const o=i.map(l=>new Ga(l.ctx.common.issues));return Ce(n,{code:xe.invalid_union,unionErrors:o}),Ve}if(n.common.async)return Promise.all(s.map(async i=>{const o={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:o}),ctx:o}})).then(a);{let i;const o=[];for(const c of s){const d={...n,common:{...n.common,issues:[]},parent:null},u=c._parseSync({data:n.data,path:n.path,parent:d});if(u.status==="valid")return u;u.status==="dirty"&&!i&&(i={result:u,ctx:d}),d.common.issues.length&&o.push(d.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;const l=o.map(c=>new Ga(c));return Ce(n,{code:xe.invalid_union,unionErrors:l}),Ve}}get options(){return this._def.options}}yp.create=(e,t)=>new yp({options:e,typeName:Ke.ZodUnion,...rt(t)});function _0(e,t){const n=xi(e),s=xi(t);if(e===t)return{valid:!0,data:e};if(n===Oe.object&&s===Oe.object){const a=ft.objectKeys(t),i=ft.objectKeys(e).filter(l=>a.indexOf(l)!==-1),o={...e,...t};for(const l of i){const c=_0(e[l],t[l]);if(!c.valid)return{valid:!1};o[l]=c.data}return{valid:!0,data:o}}else if(n===Oe.array&&s===Oe.array){if(e.length!==t.length)return{valid:!1};const a=[];for(let i=0;i<e.length;i++){const o=e[i],l=t[i],c=_0(o,l);if(!c.valid)return{valid:!1};a.push(c.data)}return{valid:!0,data:a}}else return n===Oe.date&&s===Oe.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class vp extends mt{_parse(t){const{status:n,ctx:s}=this._processInputParams(t),a=(i,o)=>
vendor: 4,181 bytes, line 656
656{if(L_(i)||L_(o))return Ve;const l=_0(i.value,o.value);return l.valid?((B_(i)||B_(o))&&n.dirty(),{status:n.value,value:l.data}):(Ce(s,{code:xe.invalid_intersection_types}),Ve)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then(([i,o])=>a(i,o)):a(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}}vp.create=(e,t,n)=>new vp({left:e,right:t,typeName:Ke.ZodIntersection,...rt(n)});class ol extends mt{_parse(t){const{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==Oe.array)return Ce(s,{code:xe.invalid_type,expected:Oe.array,received:s.parsedType}),Ve;if(s.data.length<this._def.items.length)return Ce(s,{code:xe.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Ve;!this._def.rest&&s.data.length>this._def.items.length&&(Ce(s,{code:xe.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const i=[...s.data].map((o,l)=>{const c=this._def.items[l]||this._def.rest;return c?c._parse(new ro(s,o,s.path,l)):null}).filter(o=>!!o);return s.common.async?Promise.all(i).then(o=>Un.mergeArray(n,o)):Un.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new ol({...this._def,rest:t})}}ol.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ol({items:e,typeName:Ke.ZodTuple,rest:null,...rt(t)})};class K_ extends mt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==Oe.map)return Ce(s,{code:xe.invalid_type,expected:Oe.map,received:s.parsedType}),Ve;const a=this._def.keyType,i=this._def.valueType,o=[...s.data.entries()].map(([l,c],d)=>({key:a._parse(new ro(s,l,s.path,[d,"key"])),value:i._parse(new ro(s,c,s.path,[d,"value"]))}));if(s.common.async){const l=new Map;return Promise.resolve().then(async()=>{for(const c of o){const d=await c.key,u=await c.value;if(d.status==="aborted"||u.status==="aborted")return Ve;(d.status==="dirty"||u.status==="dirty")&&n.dirty(),l.set(d.value,u.value)}return{status:n.value,value:l}})}else{const l=new Map;for(const c of o){const d=c.key,u=c.value;if(d.status==="aborted"||u.status==="aborted")return Ve;(d.status==="dirty"||u.status==="dirty")&&n.dirty(),l.set(d.value,u.value)}return{status:n.value,value:l}}}}K_.create=(e,t,n)=>new K_({valueType:t,keyType:e,typeName:Ke.ZodMap,...rt(n)});class rh extends mt{_parse(t){const{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==Oe.set)return Ce(s,{code:xe.invalid_type,expected:Oe.set,received:s.parsedType}),Ve;const a=this._def;a.minSize!==null&&s.data.size<a.minSize.value&&(Ce(s,{code:xe.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),n.dirty()),a.maxSize!==null&&s.data.size>a.maxSize.value&&(Ce(s,{code:xe.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),n.dirty());const i=this._def.valueType;function o(c){const d=new Set;for(const u of c){if(u.status==="aborted")return Ve;u.status==="dirty"&&n.dirty(),d.add(u.value)}return{status:n.value,value:d}}const l=[...s.data.values()].map((c,d)=>i._parse(new ro(s,c,s.path,d)));return s.common.async?Promise.all(l).then(c=>o(c)):o(l)}min(t,n){return new rh({...this._def,minSize:{value:t,message:Re.toString(n)}})}max(t,n){return new rh({...this._def,maxSize:{value:t,message:Re.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}rh.create=(e,t)=>new rh({valueType:e,minSize:null,maxSize:null,typeName:Ke.ZodSet,...rt(t)});class Q_ extends mt{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}Q_.create=(e,t)=>new Q_({getter:e,typeName:Ke.ZodLazy,...rt(t)});class S0 extends mt{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return Ce(n,{received:n.data,code:xe.invalid_literal,expected:this._def.value}),Ve}
vendor: 4,160 bytes, line 656
656return{status:"valid",value:t.data}}get value(){return this._def.value}}S0.create=(e,t)=>new S0({value:e,typeName:Ke.ZodLiteral,...rt(t)});function X6(e,t){return new Hc({values:e,typeName:Ke.ZodEnum,...rt(t)})}class Hc extends mt{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),s=this._def.values;return Ce(n,{expected:ft.joinValues(s),received:n.parsedType,code:xe.invalid_type}),Ve}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),s=this._def.values;return Ce(n,{received:n.data,code:xe.invalid_enum_value,options:s}),Ve}return is(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Hc.create(t,{...this._def,...n})}exclude(t,n=this._def){return Hc.create(this.options.filter(s=>!t.includes(s)),{...this._def,...n})}}Hc.create=X6;class Z_ extends mt{_parse(t){const n=ft.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(t);if(s.parsedType!==Oe.string&&s.parsedType!==Oe.number){const a=ft.objectValues(n);return Ce(s,{expected:ft.joinValues(a),received:s.parsedType,code:xe.invalid_type}),Ve}if(this._cache||(this._cache=new Set(ft.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const a=ft.objectValues(n);return Ce(s,{received:s.data,code:xe.invalid_enum_value,options:a}),Ve}return is(t.data)}get enum(){return this._def.values}}Z_.create=(e,t)=>new Z_({values:e,typeName:Ke.ZodNativeEnum,...rt(t)});class bp extends mt{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Oe.promise&&n.common.async===!1)return Ce(n,{code:xe.invalid_type,expected:Oe.promise,received:n.parsedType}),Ve;const s=n.parsedType===Oe.promise?n.data:Promise.resolve(n.data);return is(s.then(a=>this._def.type.parseAsync(a,{path:n.path,errorMap:n.common.contextualErrorMap})))}}bp.create=(e,t)=>new bp({type:e,typeName:Ke.ZodPromise,...rt(t)});class zc extends mt{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Ke.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:s}=this._processInputParams(t),a=this._def.effect||null,i={addIssue:o=>{Ce(s,o),o.fatal?n.abort():n.dirty()},get path(){return s.path}};if(i.addIssue=i.addIssue.bind(i),a.type==="preprocess"){const o=a.transform(s.data,i);if(s.common.async)return Promise.resolve(o).then(async l=>{if(n.value==="aborted")return Ve;const c=await this._def.schema._parseAsync({data:l,path:s.path,parent:s});return c.status==="aborted"?Ve:c.status==="dirty"||n.value==="dirty"?ou(c.value):c});{if(n.value==="aborted")return Ve;const l=this._def.schema._parseSync({data:o,path:s.path,parent:s});return l.status==="aborted"?Ve:l.status==="dirty"||n.value==="dirty"?ou(l.value):l}}if(a.type==="refinement"){const o=l=>{const c=a.refinement(l,i);if(s.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return l};if(s.common.async===!1){const l=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return l.status==="aborted"?Ve:(l.status==="dirty"&&n.dirty(),o(l.value),{status:n.value,value:l.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(l=>l.status==="aborted"?Ve:(l.status==="dirty"&&n.dirty(),o(l.value).then(()=>({status:n.value,value:l.value}))))}if(a.type==="transform")if(s.common.async===!1){const o=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!qc(o))return Ve;const l=a.transform(o.value,i);if(l instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:l}}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(o=>qc(o)?Promise.resolve(a.transform(o.value,i)).then(l=>({status:n.value,value:l})):Ve);ft.assertNever(a)}}
vendor: 4,688 bytes, line 656
656zc.create=(e,t,n)=>new zc({schema:e,typeName:Ke.ZodEffects,effect:t,...rt(n)});zc.createWithPreprocess=(e,t,n)=>new zc({schema:t,effect:{type:"preprocess",transform:e},typeName:Ke.ZodEffects,...rt(n)});class Vi extends mt{_parse(t){return this._getType(t)===Oe.undefined?is(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Vi.create=(e,t)=>new Vi({innerType:e,typeName:Ke.ZodOptional,...rt(t)});class Gc extends mt{_parse(t){return this._getType(t)===Oe.null?is(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Gc.create=(e,t)=>new Gc({innerType:e,typeName:Ke.ZodNullable,...rt(t)});class C0 extends mt{_parse(t){const{ctx:n}=this._processInputParams(t);let s=n.data;return n.parsedType===Oe.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}C0.create=(e,t)=>new C0({innerType:e,typeName:Ke.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...rt(t)});class E0 extends mt{_parse(t){const{ctx:n}=this._processInputParams(t),s={...n,common:{...n.common,issues:[]}},a=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return gp(a)?a.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Ga(s.common.issues)},input:s.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new Ga(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}}E0.create=(e,t)=>new E0({innerType:e,typeName:Ke.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...rt(t)});class X_ extends mt{_parse(t){if(this._getType(t)!==Oe.nan){const s=this._getOrReturnCtx(t);return Ce(s,{code:xe.invalid_type,expected:Oe.nan,received:s.parsedType}),Ve}return{status:"valid",value:t.data}}}X_.create=e=>new X_({typeName:Ke.ZodNaN,...rt(e)});class hK extends mt{_parse(t){const{ctx:n}=this._processInputParams(t),s=n.data;return this._def.type._parse({data:s,path:n.path,parent:n})}unwrap(){return this._def.type}}class xj extends mt{_parse(t){const{status:n,ctx:s}=this._processInputParams(t);if(s.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return i.status==="aborted"?Ve:i.status==="dirty"?(n.dirty(),ou(i.value)):this._def.out._parseAsync({data:i.value,path:s.path,parent:s})})();{const a=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return a.status==="aborted"?Ve:a.status==="dirty"?(n.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:s.path,parent:s})}}static create(t,n){return new xj({in:t,out:n,typeName:Ke.ZodPipeline})}}class T0 extends mt{_parse(t){const n=this._def.innerType._parse(t),s=a=>(qc(a)&&(a.value=Object.freeze(a.value)),a);return gp(n)?n.then(a=>s(a)):s(n)}unwrap(){return this._def.innerType}}T0.create=(e,t)=>new T0({innerType:e,typeName:Ke.ZodReadonly,...rt(t)});Yt.lazycreate;var Ke;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Ke||(Ke={}));const gn=Di.create;no.create;ua.create;const yj=Yt.create;Yt.strictCreate;yp.create;vp.create;ol.create;const mK=S0.create;Hc.create;bp.create;Vi.create;Gc.create;const je=j.forwardRef(({className:e,type:t,...n},s)=>r.jsx("input",{type:t,className:le("flex min-h-[44px] w-full rounded-md border-2 border-muted bg-card px-3 py-2 text-base shadow-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus:border-primary focus:bg-background hover:border-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm transition-colors duration-200",e),ref:s,...n}));
vendor: 6,913 bytes, line 656
656je.displayName="Input";const J6={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-4
6566-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]","(?:31|4)6|51|6(?:485|5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:2(?:(?:[0-26-9]\\d|3[0-8]|5[0135-9])\\d|4(?:[02-9]\\d|10))|3(?:(?:[0-3589]\\d|6[1-9]|7[0-35-9])\\d|4(?:[0-578]\\d|90))|7(?:[013-57-9]\\d|2[0-8])\\d)\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|[34]\\d\\d)|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79])))))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-478])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|2[23]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","(?:[025-7]\\d|44)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[024-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","(?:01\\d|[24-689])\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]]],BL:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","8001\\d{5}|(?:[2-467]\\d|50)\\d{6}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[235]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","[1-467]\\d{9,10}
656|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37|86)","300|4(?:0(?:0|20)|370|864)"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[178]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-6]|7[246]|8[2-4]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|[78]"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","[2-9]\\d{9}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|5[07]|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|33|44|66|77|88)|6(?:22|33))[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-478])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["5"],"0$1"]],"0"],CF:["236","00","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["60|809"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9(?:10|[2-9])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]","(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4}
656)","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["46"]],["(\\d{3})(\\d{7})","$1 $2",["6|90"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|9[14]"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-478])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9,10,11,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|3[13])"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8}
656)","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,"528[89]"],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,"0|180020",0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-35])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|50
vendor: 10,689 bytes, line 656
656))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:[56]94\\d|7093)\\d{5}|(?:80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0|180020","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}",[7,8,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","[2-589]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13,14,15,16,17],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0|180020","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|8
6563)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,11}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11,12],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[03]"]]],0,0,0,0,0,0,[["0(?:669[0-79]\\d{1,6}|831\\d{2,8})|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[2356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],["3[2-8]\\d{9,10}",[11,12]],0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0|180020","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[25-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2
656-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["3|4(?:2[09]|7[01])|6[1-9]","3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[25-9]"],"0$1"]],"0",0,"(000[2569]\\d{4,6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[36]0|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33622|7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["3"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-6]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[2457]\\d|33|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|78|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2679]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:2[2-46-9]|3[3-9]|9)|8(?:0[89]|92)"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0",0,0,0,0,0,[["5(?:2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-7])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[0167]\\d|2[0-8]|5[0-5]|8[0-7]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],MC:["377","00","(?:[3489]|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["6
vendor: 18,815 bytes, line 656
656"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|452|678|86","[12]|452|6788|86"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","(?:596\\d|7091)\\d{5}|(?:69|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|8(?:0[6-9]|[36])"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","[2-9]\\d{9}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"]]],0,0,0,0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[0467]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","(?:20|9\\d)\\d{8}|[78]\\d{9,13}",[10,11,12,13,14],[["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["20[129]"],"0$1"],["(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[24-9]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[45]\\d{5}|(?:708|8\\d\\d)\\d{6}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[136]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","709\\d{6}|(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"],"0$1"]],"0",0,0,0,0,0,[["26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"],["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,0,[["336(?:[013-9]\\d|2[013-9])\\d{5}|(?:3(?:0[12]|4[1-35-79]|5[1-3]|65|8[1-58]|9[0145])|4(?:01|1[1356]|2[13467]|7[1-5]|8[1-7]|9[1-689])|8(?:1[1-8]|2[01]|3[13-6]|4[0-8]|5[15-7]|6[0-35-79]|7[1-37-9]))\\d{7}",[10]],["9\\d{9}",[10]],["8(?:0[04]|108\\d{3})\\d{7}"],["80[39]\\d{7}",[10]],["808\\d{7}",[10]]],"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","(?:[15]\\d|800|92)\\d{7}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","[6-9]\\d{6}|[1-6]\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","(?:[2489]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10,12],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["(?:2|90)4|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[348]|64|79|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6[0-35-9]|7[67]|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|[6-8]\\d|90)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-9]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","
656[267]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[267]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-359]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-4]|5[1-3]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[59]"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|30|[689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[236-9]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","[0-57-9]\\d{8}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3(?:[1245]|3[12])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[0-57-9]"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","(?:[1-6]\\d|71)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["[67]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|61[06])","5(?:[0-59]|61[06]1)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:3052(?:0[0-8]|[1-9]\\d)|5056(?:[0-35-9]\\d|4[0-68]))\\d{4}|(?:2742|305[3-9]|(?:472|983)[2-47-9]|505[2-57-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-47-9]|1[02-9]|2[0135-79]|3[0-24679]|4[167]|5[0-2]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-247]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}"],0,0,0,["305209\\d{4}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}",[4,5,6,7,8,9,10,11,12,13],[["(\\d{4,5})","$1",["21"]],["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","00","(?:20|33|[5-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]]],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11,12],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[47-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","7093\\d{5}|(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,0,[["269(?:0[0-467]|15|5[0-4]|6\\d|[78]0)\\d{4}"],["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|[579]\\d|63)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[579]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[235-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"],0,0,0,0,0,0,["2\\d{8}",[9]]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4}
656)","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|51"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}",[7,8,9,10,12]],0,0,0,["348[57]\\d{7}",[11]],0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};var eO={exports:{}},fK="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",pK=fK,gK=pK;function tO(){}function rO(){}rO.resetWarningCache=tO;var xK=function(){function e(s,a,i,o,l,c){if(c!==gK){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:rO,resetWarningCache:tO};return n.PropTypes=n,n};eO.exports=xK();var yK=eO.exports;const pe=oo(yK);var nO={exports:{}};/*! 657 Copyright (c) 2018 Jed Watson. 658 Licensed under the MIT License (MIT), see 659 http://jedwatson.github.io/classnames 660*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",o=0;o<arguments.length;o++){var l=arguments[o];l&&(i=a(i,s(l)))}return i}function s(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return n.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var o="";for(var l in i)t.call(i,l)&&i[l]&&(o=a(o,l));return o}function a(i,o){return o?i?i+" "+o:i+o:i}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(nO);var vK=nO.exports;const wp=oo(vK);function bK(e,t,n){switch(n){case"Backspace":t>0&&(e=e.slice(0,t-1)+e.slice(t),t--);break;case"Delete":e=e.slice(0,t)+e.slice(t+1);break}return{value:e,caret:t}}function wK(e,t,n){for(var s={},a="",i=0,o=0;o<e.length;){var l=n(e[o],a,s);l!==void 0&&(a+=l,t!==void 0&&(t===o?i=a.length-1:t>o&&(i=a.length))),o++}t===void 0&&(i=a.length);var c={value:a,caret:i};return c}function jK(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=NK(e))||t){n&&(e=n);var s=0;return function(){return s>=e.length?{done:!0}:{done:!1,value:e[s++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 661In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NK(e,t){if(e){if(typeof e=="string")return J_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return J_(e,t)}}function J_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,s=new Array(t);n<t;n++)s[n]=e[n];return s}function $0(e,t){for(var n=0,s=jK(t.split("")),a;!(a=s()).done;){var i=a.value;i===e&&n++}return n}function kK(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"x",s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:" ",a=e.length,i=$0("(",e),o=$0(")",e),l=i-o;l>0&&a<t.length;)e+=t[a].replace(n,s),t[a]===")"&&l--,a++;return e}function _K(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=SK(e))||t){n&&(e=n);var s=0;return function(){return s>=e.length?{done:!0}:{done:!1,value:e[s++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 662In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function SK(e,t){if(e){if(typeof e=="string")return eS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eS(e,t)}}function eS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,s=new Array(t);n<t;n++)s[n]=e[n];return s}function CK(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"x",n=arguments.length>2?arguments[2]:void 0;if(!e)return function(a){return{text:a}};var s=$0(t,e);
662return function(a){if(!a)return{text:"",template:e};for(var i=0,o="",l=_K(e.split("")),c;!(c=l()).done;){var d=c.value;if(d!==t){o+=d;continue}if(o+=a[i],i++,i===a.length&&a.length<s)break}return n&&(o=kK(o,e)),{text:o,template:e}}}function EK(e,t,n){typeof n=="string"&&(n=CK(n));var s=n(e)||{},a=s.text,i=s.template;if(a===void 0&&(a=e),i)if(t===void 0)t=a.length;else{for(var o=0,l=!1,c=-1;o<a.length&&o<i.length;){if(a[o]!==i[o]){if(t===0){l=!0,t=o;break}c=o,t--}o++}l||(t=c+1)}return{text:a,caret:t}}function TK(e){return e.hasAttribute("readonly")}function $K(e){if(e.selectionStart!==e.selectionEnd)return{start:e.selectionStart,end:e.selectionEnd}}var tS={Backspace:8,Delete:46};function OK(e){switch(e.keyCode){case tS.Backspace:return"Backspace";case tS.Delete:return"Delete"}}function PK(e){return e.selectionStart}function sO(e,t){t!==void 0&&(AK()?setTimeout(function(){return e.setSelectionRange(t,t)},0):e.setSelectionRange(t,t))}function AK(){if(typeof navigator<"u")return IK.test(navigator.userAgent)}var IK=/Android/i;function RK(e,t,n,s,a){O0(t,n,s,void 0,a)}function MK(e,t,n,s,a){if(!TK(t)){var i=OK(e);switch(i){case"Delete":case"Backspace":e.preventDefault();var o=$K(t);return o?(DK(t,o),O0(t,n,s,void 0,a)):O0(t,n,s,i,a)}}}function DK(e,t){var n=e.value;n=n.slice(0,t.start)+n.slice(t.end),e.value=n,sO(e,t.start)}function O0(e,t,n,s,a){var i=wK(e.value,PK(e),t),o=i.value,l=i.caret;if(s){var c=bK(o,l,s);o=c.value,l=c.caret}var d=EK(o,l,n),u=d.text;l=d.caret,e.value=u,sO(e,l),a&&a(o)}var FK=["ref","parse","format","value","defaultValue","controlled","onChange","onKeyDown"];function rS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,s)}return n}function Fl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rS(Object(n),!0).forEach(function(s){LK(e,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rS(Object(n)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(n,s))})}return e}function LK(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BK(e,t){if(e==null)return{};var n=WK(e,t),s,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)s=i[a],!(t.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(e,s)&&(n[s]=e[s])}return n}function WK(e,t){if(e==null)return{};var n={},s=Object.keys(e),a,i;for(i=0;i<s.length;i++)a=s[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function UK(e){var t=e.ref,n=e.parse,s=e.format,a=e.value,i=e.defaultValue,o=e.controlled,l=o===void 0?!0:o,c=e.onChange,d=e.onKeyDown,u=BK(e,FK),h=j.useRef(),f=j.useCallback(function(v){h.current=v,t&&(typeof t=="function"?t(v):t.current=v)},[t]),m=j.useCallback(function(v){return RK(v,h.current,n,s,c)},[h,n,s,c]),y=j.useCallback(function(v){if(d&&d(v),!v.defaultPrevented)return MK(v,h.current,n,s,c)},[h,n,s,c,d]),p=Fl(Fl({},u),{},{ref:f,onChange:m,onKeyDown:y});return l?Fl(Fl({},p),{},{value:s(nS(a)?"":a).text}):Fl(Fl({},p),{},{defaultValue:s(nS(i)?"":i).text})}function nS(e){return e==null}var qK=["inputComponent","parse","format","value","defaultValue","onChange","controlled","onKeyDown","type"];function sS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,s)}return n}function HK(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sS(Object(n),!0).forEach(function(s){zK(e,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sS(Object(n)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(n,s))})}return e}function zK(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GK(e,t){if(e==null)return{};var n=YK(e,t),s,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)s=i[a],!(t.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(e,s)&&(n[s]=e[s])}return n}function YK(e,t){if(e==null)return{};var n={},s=Object.keys(e),a,i;for(i=0;i<s.length;i++)a=s[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function jp(e,t){var n=e.inputComponent,s=n===void 0?"input":n,a=e.parse,i=e.format,o=e.value,l=e.defaultValue,c=e.onCh
vendor: 1,097 bytes, line 662
662ange,d=e.controlled,u=e.onKeyDown,h=e.type,f=h===void 0?"text":h,m=GK(e,qK),y=UK(HK({ref:t,parse:a,format:i,value:o,defaultValue:l,onChange:c,controlled:d,onKeyDown:u,type:f},m));return ee.createElement(s,y)}jp=ee.forwardRef(jp);jp.propTypes={parse:pe.func.isRequired,format:pe.func.isRequired,inputComponent:pe.elementType,type:pe.string,value:pe.string,defaultValue:pe.string,onChange:pe.func,controlled:pe.bool,onKeyDown:pe.func,onCut:pe.func,onPaste:pe.func};function aS(e,t){e=e.split("-"),t=t.split("-");for(var n=e[0].split("."),s=t[0].split("."),a=0;a<3;a++){var i=Number(n[a]),o=Number(s[a]);if(i>o)return 1;if(o>i)return-1;if(!isNaN(i)&&isNaN(o))return 1;if(isNaN(i)&&!isNaN(o))return-1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0}var VK={}.constructor;function Qo(e){return e!=null&&e.constructor===VK}function Yc(e){"@babel/helpers - typeof";return Yc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}
vendor: 4,111 bytes, line 662
662,Yc(e)}function Wg(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function KK(e,t){for(var n=0;n<t.length;n++){var s=t[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,QK(s.key),s)}}function Ug(e,t,n){return t&&KK(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function QK(e){var t=ZK(e,"string");return Yc(t)=="symbol"?t:t+""}function ZK(e,t){if(Yc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var s=n.call(e,t);if(Yc(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var XK="1.2.0",JK="1.7.35",iS=" ext. ",eQ=/^\d+$/,yr=function(){function e(t){Wg(this,e),aO(t),this.metadata=t,oO.call(this,t)}return Ug(e,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function(n){return n!=="001"})}},{key:"getCountryMetadata",value:function(n){return this.metadata.countries[n]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(n){return this.getCountryMetadata(n)!==void 0}},{key:"hasCallingCode",value:function(n){if(this.getCountryCodesForCallingCode(n))return!0;if(this.nonGeographic()){if(this.nonGeographic()[n])return!0}else{var s=this.countryCallingCodes()[n];if(s&&s.length===1&&s[0]==="001")return!0}}},{key:"isNonGeographicCallingCode",value:function(n){return this.nonGeographic()?!!this.nonGeographic()[n]:!this.getCountryCodesForCallingCode(n)}},{key:"country",value:function(n){return this.selectNumberingPlan(n)}},{key:"selectNumberingPlan",value:function(n,s){if(n&&eQ.test(n)&&(s=n,n=null),n&&n!=="001"){if(!this.hasCountry(n))throw new Error("Unknown country: ".concat(n));this.numberingPlan=new oS(this.getCountryMetadata(n),this)}else if(s){if(!this.hasCallingCode(s))throw new Error("Unknown calling code: ".concat(s));this.numberingPlan=new oS(this.getNumberingPlanMetadata(s),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(n){var s=this.countryCallingCodes()[n];if(s)return s.length===1&&s[0].length===3?void 0:s}},{key:"getCountryCodeForCallingCode",value:function(n){var s=this.getCountryCodesForCallingCode(n);if(s)return s[0]}},{key:"getNumberingPlanMetadata",value:function(n){var s=this.getCountryCodeForCallingCode(n);if(s)return this.getCountryMetadata(s);if(this.nonGeographic()){var a=this.nonGeographic()[n];if(a)return a}else{var i=this.countryCallingCodes()[n];if(i&&i.length===1&&i[0]==="001")return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(n){return this.numberingPlan.type(n)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(n){return this.selectNumberingPlan(n)}},{key:"hasSelectedNumberingPlan",value:function(){return this.numberingPlan!==void 0}}])}(),oS=function(){function e(t,n){Wg(this,e),this.globalMetadataObject=n,this.metadata=t,oO.call(this,n.metadata)}
vendor: 30,114 bytes, lines 662-667
662return Ug(e,[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"IDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(n){return n[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var n=this,s=this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[];return s.map(function(a){return new tQ(a,n)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(n){return n[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return this.types()&&this.types().length===0?!1:!!this.types()}},{key:"type",value:function(n){if(this.hasTypes()&&lS(this.types(),n))return new nQ(lS(this.types(),n),this)}},{key:"ext",value:function(){return this.v1||this.v2?iS:this.metadata[13]||iS}}])}(),tQ=function(){function e(t,n){Wg(this,e),this._format=t,this.metadata=n}return Ug(e,[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!!(this.nationalPrefixFormattingRule()&&!rQ.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}])}(),rQ=/^\(?\$1\)?$/,nQ=function(){function e(t,n){Wg(this,e),this.type=t,this.metadata=n}return Ug(e,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}])}();function lS(e,t){switch(t){case"FIXED_LINE":return e[0];case"MOBILE":return e[1];case"TOLL_FREE":return e[2];case"PREMIUM_RATE":return e[3];case"PERSONAL_NUMBER":return e[4];case"VOICEMAIL":return e[5];case"UAN":return e[6];case"PAGER":return e[7];case"VOIP":return e[8];case"SHARED_COST":return e[9]}}function aO(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!Qo(e)||!Qo(e.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(Qo(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+sQ(e)+": "+e,"."))}var sQ=function(t){return Yc(t)};function ei(e,t){if(t=new yr(t),t.hasCountry(e))return t.country(e).countryCallingCode();throw new Error("Unknown country: ".concat(e))}function iO(e,t){return t.countries.hasOwnProperty(e)}function oO(e){var t=e.version;typeof t=="number"?(this.v1=t===1,this.v2=t===2,this.v3=t===3,this.v4=t===4):t?aS(t,XK)===-1?this.v2=!0:aS(t,JK)===-1?this.v3=!0:this.v4=!0:this.v1=!0}function qg(e,t){return aQ(e,void 0,t)}function aQ(e,t,n){var s=n.type(t),a=s&&s.possibleLengths()||n.possibleLengths();if(!a)return"IS_POSSIBLE";var i=e.length,o=a[0];return o===i?"IS_POSSIBLE":o>i?"TOO_SHORT":a[a.length-1]<i?"TOO_LONG":a.indexOf(i,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function iQ(e,t,n){if(t===void 0&&(t={}),n=new yr(n),t.v2){if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!n.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));n.country(e.country)}else{if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}}if(n.possibleLengths())return lO(e.phone||e.nationalNumber,n);if(e.countryCallingCode&&n.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function lO(e,t){switch(qg(e,t)){case"IS_POSSIBLE":return!0;default:return!1}}function Ya(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}function oQ(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=lQ(e))||t){n&&(e=n);var s=0;return function(){return s>=e.length?{done:!0}:{done:!1,value:e[s++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 663In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lQ(e,t){if(e){if(typeof e=="string")return cS(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?cS(e,t):void 0}}function cS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,s=Array(t);n<t;n++)s[n]=e[n];return s}var cQ=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function vj(e,t,n){if(t=t||{},!(!e.country&&!e.countryCallingCode)){n=new yr(n),n.selectNumberingPlan(e.country,e.countryCallingCode);var s=t.v2?e.nationalNumber:e.phone;if(Ya(s,n.nationalNumberPattern())){if(Yy(s,"FIXED_LINE",n))return n.type("MOBILE")&&n.type("MOBILE").pattern()===""||!n.type("MOBILE")||Yy(s,"MOBILE",n)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE";for(var a=oQ(cQ),i;!(i=a()).done;){var o=i.value;if(Yy(s,o,n))return o}}}}function Yy(e,t,n){return t=n.type(t),!t||!t.pattern()||t.possibleLengths()&&t.possibleLengths().indexOf(e.length)<0?!1:Ya(e,t.pattern())}function dQ(e,t,n){if(t=t||{},n=new yr(n),n.selectNumberingPlan(e.country,e.countryCallingCode),n.hasTypes())return vj(e,t,n.metadata)!==void 0;var s=t.v2?e.nationalNumber:e.phone;return Ya(s,n.nationalNumberPattern())}function uQ(e,t,n){var s=new yr(n),a=s.getCountryCodesForCallingCode(e);return a?a.filter(function(i){return hQ(t,i,n)}):[]}function hQ(e,t,n){var s=new yr(n);return s.selectNumberingPlan(t),s.numberingPlan.possibleLengths().indexOf(e.length)>=0}var bj=2,mQ=17,fQ=3,Jr="0-9ï¼-ï¼Ù -Ù©Û°-Û¹",pQ="-â-ââã¼ï¼",gQ="ï¼/",xQ="ï¼.",yQ="  Âââ ã",vQ="()ï¼ï¼ï¼»ï¼½\\[\\]",bQ="~ââ¼ï½",Os="".concat(pQ).concat(gQ).concat(xQ).concat(yQ).concat(vQ).concat(bQ),Hg="+ï¼",wQ=new RegExp("(["+Jr+"])");function cO(e,t,n,s){if(t){var a=new yr(s);a.selectNumberingPlan(t,n);var i=new RegExp(a.IDDPrefix());if(e.search(i)===0){e=e.slice(e.match(i)[0].length);var o=e.match(wQ);if(!(o&&o[1]!=null&&o[1].length>0&&o[1]==="0"))return e}}}function P0(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var n=new RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),s=n.exec(e);if(s){var a,i,o=s.length-1,l=o>0&&s[o];if(t.nationalPrefixTransformRule()&&l)a=e.replace(n,t.nationalPrefixTransformRule()),o>1&&(i=s[1]);else{var c=s[0];a=e.slice(c.length),l&&(i=s[1])}var d;if(l){var u=e.indexOf(s[1]),h=e.slice(0,u);h===t.numberingPlan.nationalPrefix()&&(d=t.numberingPlan.nationalPrefix())}else d=s[0];return{nationalNumber:a,nationalPrefix:d,carrierCode:i}}}return{nationalNumber:e}}function A0(e,t){var n=P0(e,t),s=n.carrierCode,a=n.nationalNumber;if(a!==e){if(!jQ(e,a,t))return{nationalNumber:e};if(t.possibleLengths()&&!NQ(a,t))return{nationalNumber:e}}return{nationalNumber:a,carrierCode:s}}function jQ(e,t,n){return!(Ya(e,n.nationalNumberPattern())&&!Ya(t,n.nationalNumberPattern()))}function NQ(e,t){switch(qg(e,t)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function dO(e,t,n,s){var a=t?ei(t,s):n;if(e.indexOf(a)===0){s=new yr(s),s.selectNumberingPlan(t,n);var i=e.slice(a.length),o=A0(i,s),l=o.nationalNumber,c=A0(e,s),d=c.nationalNumber;if(!Ya(d,s.nationalNumberPattern())&&Ya(l,s.nationalNumberPattern())||qg(d,s)==="TOO_LONG")return{countryCallingCode:a,number:i}}return{number:e}}function wj(e,t,n,s){if(!e)return{};var a;if(e[0]!=="+"){var i=cO(e,t,n,s);if(i&&i!==e)a=!0,e="+"+i;else{if(t||n){var o=dO(e,t,n,s),l=o.countryCallingCode,c=o.number;if(l)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:l,number:c}}return{number:e}}}if(e[1]==="0")return{};s=new yr(s);for(var d=2;d-1<=fQ&&d<=e.length;){var u=e.slice(1,d);if(s.hasCallingCode(u))return s.selectNumberingPlan(u),{countryCallingCodeSource:a?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:u,number:e.slice(d)};d++}return{}}function uO(e){return e.replace(new RegExp("[".concat(Os,"]+"),"g")," ").trim()}var hO=/(\$\d)/;function mO(e,t,n){var s=n.useInternationalFormat,a=n.withNationalPrefix;n.carrierCode,n.metadata;var i=e.replace(new RegExp(t.pattern()),s?t.internationalFormat():a&&t.nationalPrefixFormattingRule()?t.format().replace(hO,t.nationalPrefixFormattingRule()):t.format());return s?uO(i):i}var kQ=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function _Q(e,t,n){var s=new yr(n);if(s.selectNumberingPlan(e,t),s.defaultIDDPrefix())return s.defaultIDDPrefix();if(kQ.test(s.IDDPrefix()))return s.IDDPrefix()}var SQ=";ext=",Ll=function(t){return"([".concat(Jr,"]{1,").concat(t,"})")};function fO(e){var t="20",n="15",s="9",a="6",i="[  \\t,]*",o="[:\\.ï¼]?[  \\t,-]*",l="#?",c="(?:e?xt(?:ensi(?:oÌ?|ó))?n?|ï½ ?ï½ï½ï½?|доб|anexo)",d="(?:[xï½#ï¼~ï½]|int|ï½ï½ï½)",u="[- ]+",h="[  \\t]*",f="(?:,{2}|;)",m=SQ+Ll(t),y=i+c+o+Ll(t)+l,p=i+d+o+Ll(s)+l,v=u+Ll(a)+"#",g=h+f+o+Ll(n)+l,x=h+"(?:,)+"+o+Ll(s)+l;return m+"|"+y+"|"+p+"|"+v+"|"+g+"|"+x}var CQ="["+Jr+"]{"+bj+"}",EQ="["+Hg+"]{0,1}(?:["+Os+"]*["+Jr+"]){3,}["+Os+Jr+"]*",TQ=new RegExp("^["+Hg+"]{0,1}(?:["+Os+"]*["+Jr+"]){1,2}$","i"),$Q=EQ+"(?:"+fO()+")?",OQ=new RegExp("^"+CQ+"$|^"+$Q+"$","i");function PQ(e){return e.length>=bj&&OQ.test(e)}function AQ(e){return TQ.test(e)}function IQ(e){var t=e.number,n=e.ext;if(!t)return"";if(t[0]!=="+")throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(t).concat(n?";ext="+n:"")}function nh(e){"@babel/helpers - typeof";return nh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nh(e)}function RQ(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=MQ(e))||t){n&&(e=n);var s=0;return function(){return s>=e.length?{done:!0}:{done:!1,value:e[s++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 664In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function MQ(e,t){if(e){if(typeof e=="string")return dS(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dS(e,t):void 0}}function dS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,s=Array(t);n<t;n++)s[n]=e[n];return s}function uS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,s)}return n}function hS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uS(Object(n),!0).forEach(function(s){DQ(e,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uS(Object(n)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(n,s))})}return e}function DQ(e,t,n){return(t=FQ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FQ(e){var t=LQ(e,"string");return nh(t)=="symbol"?t:t+""}function LQ(e,t){if(nh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var s=n.call(e,t||"default");if(nh(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var mS={formatExtension:function(t,n,s){return"".concat(t).concat(s.ext()).concat(n)}};function BQ(e,t,n,s){if(n?n=hS(hS({},mS),n):n=mS,s=new yr(s),e.country&&e.country!=="001"){if(!s.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));s.country(e.country)}else if(e.countryCallingCode)s.selectNumberingPlan(e.countryCallingCode);else return e.phone||"";var a=s.countryCallingCode(),i=n.v2?e.nationalNumber:e.phone,o;switch(t){case"NATIONAL":return i?(o=Np(i,e.carrierCode,"NATIONAL",s,n),Vy(o,e.ext,s,n.formatExtension)):"";case"INTERNATIONAL":return i?(o=Np(i,null,"INTERNATIONAL",s,n),o="+".concat(a," ").concat(o),Vy(o,e.ext,s,n.formatExtension)):"+".concat(a);case"E.164":return"+".concat(a).concat(i);case"RFC3966":return IQ({number:"+".concat(a).concat(i),ext:e.ext});case"IDD":if(!n.fromCountry)return;var l=UQ(i,e.carrierCode,a,n.fromCountry,s);return Vy(l,e.ext,s,n.formatExtension);default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}function Np(e,t,n,s,a){var i=WQ(s.formats(),e);return i?mO(e,i,{useInternationalFormat:n==="INTERNATIONAL",withNationalPrefix:!(i.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&a&&a.nationalPrefix===!1),carrierCode:t,metadata:s}):e}function WQ(e,t){for(var n=RQ(e),s;!(s=n()).done;){var a=s.value;if(a.leadingDigitsPatterns().length>0){var i=a.leadingDigitsPatterns()[a.leadingDigitsPatterns().length-1];if(t.search(i)!==0)continue}if(Ya(t,a.pattern()))return a}}function Vy(e,t,n,s){return t?s(e,t,n):e}function UQ(e,t,n,s,a){var i=ei(s,a.metadata);if(i===n){var o=Np(e,t,"NATIONAL",a);return n==="1"?n+" "+o:o}var l=_Q(s,void 0,a.metadata);if(l)return"".concat(l," ").concat(n," ").concat(Np(e,null,"INTERNATIONAL",a))}function sh(e){"@babel/helpers - typeof";return sh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sh(e)}function fS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,s)}return n}function pS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fS(Object(n),!0).forEach(function(s){qQ(e,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fS(Object(n)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(n,s))})}return e}function qQ(e,t,n){return(t=pO(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zQ(e,t){for(var n=0;n<t.length;n++){var s=t[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,pO(s.key),s)}}function GQ(e,t,n){return t&&zQ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function pO(e){var t=YQ(e,"string");return sh(t)=="symbol"?t:t+""}function YQ(e,t){if(sh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var s=n.call(e,t||"default");if(sh(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gO=function(){function e(t,n,s){if(HQ(this,e),!t)throw new TypeError("First argument is required");if(typeof t!="string")throw new TypeError("First argument must be a string");if(t[0]==="+"&&!n)throw new TypeError("`metadata` argument not passed");if(Qo(n)&&Qo(n.countries)){s=n;var a=t;if(!QQ.test(a))throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var i=wj(a,void 0,void 0,s),o=i.countryCallingCode,l=i.number;if(n=l,t=o,!n)throw new Error("Invalid `number` argument passed: too short")}if(!n)throw new TypeError("`nationalNumber` argument is required");if(typeof n!="string")throw new TypeError("`nationalNumber` argument must be a string");aO(s);var c=KQ(t,s),d=c.country,u=c.countryCallingCode;this.country=d,this.countryCallingCode=u,this.nationalNumber=n,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return s}}return GQ(e,[{key:"setExt",value:function(n){this.ext=n}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:uQ(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return iQ(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return dQ(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){var n=new yr(this.getMetadata());return n.isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(n){return this.number===n.number&&this.ext===n.ext}},{key:"getType",value:function(){return vj(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(n,s){return BQ(this,n,s?pS(pS({},s),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(n){return this.format("NATIONAL",n)}},{key:"formatInternational",value:function(n){return this.format("INTERNATIONAL",n)}},{key:"getURI",value:function(n){return this.format("RFC3966",n)}}])}(),VQ=function(t){return/^[A-Z]{2}$/.test(t)};function KQ(e,t){var n,s,a=new yr(t);return VQ(e)?(n=e,a.selectNumberingPlan(n),s=a.countryCallingCode()):s=e,{country:n,countryCallingCode:s}}var QQ=/^\+\d+$/;function I0(e){"@babel/helpers - typeof";return I0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},I0(e)}function ZQ(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}function XQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JQ(e,t,n){return t=ih(t),eZ(e,jj()?Reflect.construct(t,n||[],ih(e).constructor):t.apply(e,n))}function eZ(e,t){if(t&&(I0(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tZ(e)}function tZ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rZ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ah(e,t)}function R0(e){var t=typeof Map=="function"?new Map:void 0;return R0=function(s){if(s===null||!sZ(s))return s;if(typeof s!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(s))return t.get(s);t.set(s,a)}function a(){return nZ(s,arguments,ih(this).constructor)}return a.prototype=Object.create(s.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),ah(a,s)},R0(e)}function nZ(e,t,n){if(jj())return Reflect.construct.apply(null,arguments);var s=[null];s.push.apply(s,t);var a=new(e.bind.apply(e,s));return n&&ah(a,n.prototype),a}function jj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(jj=function(){return!!e})()}function sZ(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function ah(e,t){return ah=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,s){return n.__proto__=s,n},ah(e,t)}function ih(e){return ih=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ih(e)}var Ta=function(e){function t(n){var s;return XQ(this,t),s=JQ(this,t,[n]),Object.setPrototypeOf(s,t.prototype),s.name=s.constructor.name,s}return rZ(t,e),ZQ(t)}(R0(Error)),gS=new RegExp("(?:"+fO()+")$","i");function aZ(e){var t=e.search(gS);if(t<0)return{};for(var n=e.slice(0,t),s=e.match(gS),a=1;a<s.length;){if(s[a])return{number:n,ext:s[a]};a++}}function iZ(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=oZ(e))||t){n&&(e=n);var s=0;return function(){return s>=e.length?{done:!0}:{done:!1,value:e[s++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 665In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oZ(e,t){if(e){if(typeof e=="string")return xS(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xS(e,t):void 0}}function xS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,s=Array(t);n<t;n++)s[n]=e[n];return s}var lZ={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","ï¼":"0","ï¼":"1","ï¼":"2","ï¼":"3","ï¼":"4","ï¼":"5","ï¼":"6","ï¼":"7","ï¼":"8","ï¼":"9","Ù ":"0","Ù¡":"1","Ù¢":"2","Ù£":"3","Ù¤":"4","Ù¥":"5","Ù¦":"6","Ù§":"7","Ù¨":"8","Ù©":"9","Û°":"0","Û±":"1","Û²":"2","Û³":"3","Û´":"4","Ûµ":"5","Û¶":"6","Û·":"7","Û¸":"8","Û¹":"9"};function xO(e){return lZ[e]}function kp(e){for(var t="",n=iZ(e.split("")),s;!(s=n()).done;){var a=s.value,i=xO(a);i&&(t+=i)}return t}function cZ(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=dZ(e))||t){n&&(e=n);var s=0;return function(){return s>=e.length?{done:!0}:{done:!1,value:e[s++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 666In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dZ(e,t){if(e){if(typeof e=="string")return yS(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yS(e,t):void 0}}function yS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,s=Array(t);n<t;n++)s[n]=e[n];return s}function M0(e){for(var t="",n=cZ(e.split("")),s;!(s=n()).done;){var a=s.value;t+=yO(a,t)||""}return t}function yO(e,t,n){if(e==="+"){if(t){typeof n=="function"&&n("end");return}return"+"}return xO(e)}function uZ(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=hZ(e))||t){n&&(e=n);var s=0;return function(){return s>=e.length?{done:!0}:{done:!1,value:e[s++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 667In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hZ(e,t){if(e){if(typeof e=="string")return vS(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vS(e,t):void 0}}function vS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,s=Array(t);n<t;n++)s[n]=e[n];return s}function vO(e,t){var n=t.countries;t.defaultCountry;var s=t.metadata;s=new yr(s);for(var a=uZ(n),i;!(i=a()).done;){var o=i.value;if(s.country(o),s.leadingDigits()){if(e&&e.search(s.leadingDigits())===0)return o}else if(vj({phone:e,country:o},void 0,s.metadata))return o}}function bO(e,t){var n=t.nationalNumber,s=t.defaultCountry,a=t.metadata,i=a.getCountryCodesForCallingCode(e);if(i)return i.length===1?i[0]:vO(n,{countries:i,defaultCountry:s,metadata:a.metadata})}var wO="+",mZ="[\\-\\.\\(\\)]?",bS="(["+Jr+"]|"+mZ+")",fZ="^\\"+wO+bS+"*["+Jr+"]"+bS+"*$",pZ=new RegExp(fZ,"g"),D0=Jr,gZ="["+D0+"]+((\\-)*["+D0+"])*",xZ="a-zA-Z",yZ="["+xZ+"]+((\\-)*["+D0+"])*",vZ="^("+gZ+"\\.)*"+yZ+"\\.?$",bZ=new RegExp(vZ,"g"),wS="tel:",F0=";phone-context=",wZ=";isub=";function jZ(e){var t=e.indexOf(F0);if(t<0)return null;var n=t+F0.length;if(n>=e.length)return"";var s=e.indexOf(";",n);return s>=0?e.substring(n,s):e.substring(n)}function NZ(e){return e===null?!0:e.length===0?!1:pZ.test(e)||bZ.test(e)}function kZ(e,t){var n=t.extractFormattedPhoneNumber,s=jZ(e);if(!NZ(s))throw new Ta("NOT_A_NUMBER");var a;if(s===null)a=n(e)||"";else{a="",s.charAt(0)===wO&&(a+=s);var i=e.indexOf(wS),o;i>=0?o=i+wS.length:o=0;var l=e.indexOf(F0);a+=e.substring(o,l)}var c=a.indexOf(wZ);if(c>0&&(a=a.substring(0,c)),a!=="")return a}var _Z=250,SZ=new RegExp("["+Hg+Jr+"]"),CZ=new RegExp("[^"+Jr+"#]+$");function EZ(e,t,n){if(t=t||{},n=new yr(n),t.defaultCountry&&!n.hasCountry(t.defaultCountry))throw t.v2?new Ta("INVALID_COUNTRY"):new Error("Unknown country: ".concat(t.defaultCountry));var s=$Z(e,t.v2,t.extract),a=s.number,i=s.ext,o=s.error;if(!a){if(t.v2)throw o==="TOO_SHORT"?new Ta("TOO_SHORT"):new Ta("NOT_A_NUMBER");return{}}var l=PZ(a,t.defaultCountry,t.defaultCallingCode,n),c=l.country,d=l.nationalNumber,u=l.countryCallingCode,h=l.countryCallingCodeSource,f=l.carrierCode;if(!n.hasSelectedNumberingPlan()){if(t.v2)throw new Ta("INVALID_COUNTRY");return{}}if(!d||d.length<bj){if(t.v2)throw new Ta("TOO_SHORT");return{}}if(d.length>mQ){if(t.v2)throw new Ta("TOO_LONG");return{}}if(t.v2){var m=new gO(u,d,n.metadata);return c&&(m.country=c),f&&(m.carrierCode=f),i&&(m.ext=i),m.__countryCallingCodeSource=h,m}var y=(t.extended?n.hasSelectedNumberingPlan():c)?Ya(d,n.nationalNumberPattern()):!1;return t.extended?{country:c,countryCallingCode:u,carrierCode:f,valid:y,possible:y?!0:!!(t.extended===!0&&n.possibleLengths()&&lO(d,n)),phone:d,ext:i}:y?OZ(c,d,i):{}}function TZ(e,t,n){if(e){if(e.length>_Z){if(n)throw new Ta("TOO_LONG");return}if(t===!1)return e;var s=e.search(SZ);if(!(s<0))return e.slice(s).replace(CZ,"")}}function $Z(e,t,n){var s=kZ(e,{extractFormattedPhoneNumber:function(o){return TZ(o,n,t)}});if(!s)return{};if(!PQ(s))return AQ(s)?{error:"TOO_SHORT"}:{};var a=aZ(s);return a.ext?a:{number:s}}function OZ(e,t,n){var s={country:e,phone:t};return n&&(s.ext=n),s}function PZ(e,t,n,s){var a=wj(M0(e),t,n,s.metadata),i=a.countryCallingCodeSource,o=a.countryCallingCode,l=a.number,c;if(o)s.selectNumberingPlan(o);else if(l&&(t||n))s.selectNumberingPlan(t,n),t&&(c=t),o=n||ei(t,s.metadata);else return{};if(!l)return{countryCallingCodeSource:i,countryCallingCode:o};var d=A0(M0(l),s),u=d.nationalNumber,h=d.carrierCode,f=bO(o,{nationalNumber:u,defaultCountry:t,metadata:s});return f&&(c=f,f==="001"||s.country(c)),{country:c,countryCallingCode:o,countryCallingCodeSource:i,nationalNumber:u,carrierCode:h}}function oh(e){"@babel/helpers - typeof";return oh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oh(e)}function jS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,s)}return n}function NS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jS(Object(n),!0).forEach(function(s){AZ(e,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jS(Object(n)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(n,s))})}return e}function AZ(e,t,n){return(t=IZ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IZ(e){var t=RZ(e,"string");return oh(t)=="symbol"?t:t+""}function RZ(e,t){if(oh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var s=n.call(e,t||"default");if(oh(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function MZ(e,t,n){return EZ(e,NS(NS({},t),{},{v2:!0}),n)}function lh(e){"@babel/helpers - typeof";return lh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lh(e)}function kS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,s)}return n}function DZ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
vendor: 4,218 bytes, lines 667-668
667t%2?kS(Object(n),!0).forEach(function(s){FZ(e,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kS(Object(n)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(n,s))})}return e}function FZ(e,t,n){return(t=LZ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LZ(e){var t=BZ(e,"string");return lh(t)=="symbol"?t:t+""}function BZ(e,t){if(lh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var s=n.call(e,t||"default");if(lh(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function WZ(e,t){return zZ(e)||HZ(e,t)||qZ(e,t)||UZ()}function UZ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 668In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qZ(e,t){if(e){if(typeof e=="string")return _S(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_S(e,t):void 0}}function _S(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,s=Array(t);n<t;n++)s[n]=e[n];return s}function HZ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var s,a,i,o,l=[],c=!0,d=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(s=i.call(n)).done)&&(l.push(s.value),l.length!==t);c=!0);}catch(u){d=!0,a=u}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(d)throw a}}return l}}function zZ(e){if(Array.isArray(e))return e}function jO(e){var t=Array.prototype.slice.call(e),n=WZ(t,4),s=n[0],a=n[1],i=n[2],o=n[3],l,c,d;if(typeof s=="string")l=s;else throw new TypeError("A text for parsing must be a string.");if(!a||typeof a=="string")o?(c=i,d=o):(c=void 0,d=i),a&&(c=DZ({defaultCountry:a},c));else if(Qo(a))i?(c=a,d=i):d=a;else throw new Error("Invalid second argument: ".concat(a));return{text:l,options:c,metadata:d}}function ch(e){"@babel/helpers - typeof";return ch=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ch(e)}function SS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,s)}return n}function CS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?SS(Object(n),!0).forEach(function(s){GZ(e,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SS(Object(n)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(n,s))})}return e}function GZ(e,t,n){return(t=YZ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YZ(e){var t=VZ(e,"string");return ch(t)=="symbol"?t:t+""}function VZ(e,t){if(ch(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var s=n.call(e,t||"default");if(ch(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function NO(e,t,n){t&&t.defaultCountry&&!iO(t.defaultCountry,n)&&(t=CS(CS({},t),{},{defaultCountry:void 0}));try{return MZ(e,t,n)}catch(s){if(!(s instanceof Ta))throw s}}function KZ(){var e=jO(arguments),t=e.text,n=e.options,s=e.metadata;return NO(t,n,s)}function dh(e){"@babel/helpers - typeof";return dh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dh(e)}function ES(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,s)}return n}function TS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
vendor: 6,467 bytes, lines 668-669
668t%2?ES(Object(n),!0).forEach(function(s){QZ(e,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ES(Object(n)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(n,s))})}return e}function QZ(e,t,n){return(t=ZZ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZZ(e){var t=XZ(e,"string");return dh(t)=="symbol"?t:t+""}function XZ(e,t){if(dh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var s=n.call(e,t||"default");if(dh(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function JZ(){var e=jO(arguments),t=e.text,n=e.options,s=e.metadata;n=TS(TS({},n),{},{extract:!1});var a=NO(t,n,s);return a&&a.isValid()||!1}function uh(e){"@babel/helpers - typeof";return uh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uh(e)}function eX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tX(e,t){for(var n=0;n<t.length;n++){var s=t[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,nX(s.key),s)}}function rX(e,t,n){return t&&tX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function nX(e){var t=sX(e,"string");return uh(t)=="symbol"?t:t+""}function sX(e,t){if(uh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var s=n.call(e,t);if(uh(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var aX=function(){function e(t){var n=t.onCountryChange,s=t.onCallingCodeChange;eX(this,e),this.onCountryChange=n,this.onCallingCodeChange=s}return rX(e,[{key:"reset",value:function(n){var s=n.country,a=n.callingCode;this.international=!1,this.missingPlus=!1,this.IDDPrefix=void 0,this.callingCode=void 0,this.digits="",this.resetNationalSignificantNumber(),this.initCountryAndCallingCode(s,a)}},{key:"resetNationalSignificantNumber",value:function(){this.nationalSignificantNumber=this.getNationalDigits(),this.nationalSignificantNumberMatchesInput=!0,this.nationalPrefix=void 0,this.carrierCode=void 0,this.complexPrefixBeforeNationalSignificantNumber=void 0}},{key:"update",value:function(n){for(var s=0,a=Object.keys(n);s<a.length;s++){var i=a[s];this[i]=n[i]}}},{key:"initCountryAndCallingCode",value:function(n,s){this.setCountry(n),this.setCallingCode(s)}},{key:"setCountry",value:function(n){this.country=n,this.onCountryChange(n)}},{key:"setCallingCode",value:function(n){this.callingCode=n,this.onCallingCodeChange(n,this.country)}},{key:"startInternationalNumber",value:function(n,s){this.international=!0,this.initCountryAndCallingCode(n,s)}},{key:"appendDigits",value:function(n){this.digits+=n}},{key:"appendNationalSignificantNumberDigits",value:function(n){this.nationalSignificantNumber+=n}},{key:"getNationalDigits",value:function(){return this.international?this.digits.slice((this.IDDPrefix?this.IDDPrefix.length:0)+(this.callingCode?this.callingCode.length:0)):this.digits}},{key:"getDigitsWithoutInternationalPrefix",value:function(){return this.international&&this.IDDPrefix?this.digits.slice(this.IDDPrefix.length):this.digits}}])}();function iX(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=oX(e))||t){n&&(e=n);var s=0;return function(){return s>=e.length?{done:!0}:{done:!1,value:e[s++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 669In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oX(e,t){if(e){if(typeof e=="string")return $S(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$S(e,t):void 0}}function $S(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,s=Array(t);n<t;n++)s[n]=e[n];return s}var hs="x",Ky=new RegExp(hs);function bf(e,t){if(t<1)return"";for(var n="";t>1;)t&1&&(n+=e),t>>=1,e+=e;return n+e}function OS(e,t){return e[t]===")"&&t++,lX(e.slice(0,t))}function lX(e){for(var t=[],n=0;n<e.length;)e[n]==="("?t.push(n):e[n]===")"&&t.pop(),n++;var s=0,a="";t.push(e.length);for(var i=0,o=t;i<o.length;i++){var l=o[i];a+=e.slice(s,l),s=l+1}return a}function cX(e,t,n){for(var s=iX(n.split("")),a;!(a=s()).done;){var i=a.value;if(e.slice(t+1).search(Ky)<0)return;t=e.search(Ky),e=e.replace(Ky,i)}return[e,t]}function dX(e,t,n){var s=n.metadata,a=n.shouldTryNationalPrefixFormattingRule,i=n.getSeparatorAfterNationalPrefix,o=new RegExp("^(?:".concat(t.pattern(),")$"));if(o.test(e.nationalSignificantNumber))return hX(e,t,{metadata:s,shouldTryNationalPrefixFormattingRule:a,getSeparatorAfterNationalPrefix:i})}function uX(e,t){return qg(e,t)==="IS_POSSIBLE"}function hX(e,t,n){var s=n.metadata,a=n.shouldTryNationalPrefixFormattingRule,i=n.getSeparatorAfterNationalPrefix;if(e.nationalSignificantNumber,e.international,e.nationalPrefix,e.carrierCode,a(t)){var o=PS(e,t,{useNationalPrefixFormattingRule:!0,getSeparatorAfterNationalPrefix:i,metadata:s});if(o)return o}return PS(e,t,{useNationalPrefixFormattingRule:!1,getSeparatorAfterNationalPrefix:i,metadata:s})}function PS(e,t,n){var s=n.metadata,a=n.useNationalPrefixFormattingRule,i=n.getSeparatorAfterNationalPrefix,o=mO(e.nationalSignificantNumber,t,{carrierCode:e.carrierCode,useInternationalFormat:e.international,withNationalPrefix:a,metadata:s});if(a||(e.nationalPrefix?o=e.nationalPrefix+i(t)+o:e.complexPrefixBeforeNationalSignificantNumber&&(o=e.complexPrefixBeforeNationalSignificantNumber+" "+o)),mX(o,e))return o}function mX(e,t){return kp(e)===t.getNationalDigits()}function hh(e){"@babel/helpers - typeof";return hh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hh(e)}function fX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pX(e,t){for(var n=0;n<t.length;n++){var s=t[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,xX(s.key),s)}}
vendor: 4,882 bytes, lines 669-670
669function gX(e,t,n){return t&&pX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function xX(e){var t=yX(e,"string");return hh(t)=="symbol"?t:t+""}function yX(e,t){if(hh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var s=n.call(e,t);if(hh(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var vX=function(){function e(){fX(this,e)}return gX(e,[{key:"parse",value:function(n){if(this.context=[{or:!0,instructions:[]}],this.parsePattern(n),this.context.length!==1)throw new Error("Non-finalized contexts left when pattern parse ended");var s=this.context[0],a=s.branches,i=s.instructions;if(a)return{op:"|",args:a.concat([Qy(i)])};if(i.length===0)throw new Error("Pattern is required");return i.length===1?i[0]:i}},{key:"startContext",value:function(n){this.context.push(n)}},{key:"endContext",value:function(){this.context.pop()}},{key:"getContext",value:function(){return this.context[this.context.length-1]}},{key:"parsePattern",value:function(n){if(!n)throw new Error("Pattern is required");var s=n.match(jX);if(!s){if(wX.test(n))throw new Error("Illegal characters found in a pattern: ".concat(n));this.getContext().instructions=this.getContext().instructions.concat(n.split(""));return}var a=s[1],i=n.slice(0,s.index),o=n.slice(s.index+a.length);switch(a){case"(?:":i&&this.parsePattern(i),this.startContext({or:!0,instructions:[],branches:[]});break;case")":if(!this.getContext().or)throw new Error('")" operator must be preceded by "(?:" operator');if(i&&this.parsePattern(i),this.getContext().instructions.length===0)throw new Error('No instructions found after "|" operator in an "or" group');var l=this.getContext(),c=l.branches;c.push(Qy(this.getContext().instructions)),this.endContext(),this.getContext().instructions.push({op:"|",args:c});break;case"|":if(!this.getContext().or)throw new Error('"|" operator can only be used inside "or" groups');if(i&&this.parsePattern(i),!this.getContext().branches)if(this.context.length===1)this.getContext().branches=[];else throw new Error('"branches" not found in an "or" group context');this.getContext().branches.push(Qy(this.getContext().instructions)),this.getContext().instructions=[];break;case"[":i&&this.parsePattern(i),this.startContext({oneOfSet:!0});break;case"]":if(!this.getContext().oneOfSet)throw new Error('"]" operator must be preceded by "[" operator');this.endContext(),this.getContext().instructions.push({op:"[]",args:bX(i)});break;default:throw new Error("Unknown operator: ".concat(a))}o&&this.parsePattern(o)}}])}();function bX(e){for(var t=[],n=0;n<e.length;){if(e[n]==="-"){if(n===0||n===e.length-1)throw new Error("Couldn't parse a one-of set pattern: ".concat(e));for(var s=e[n-1].charCodeAt(0)+1,a=e[n+1].charCodeAt(0)-1,i=s;i<=a;)t.push(String.fromCharCode(i)),i++}else t.push(e[n]);n++}return t}var wX=/[\(\)\[\]\?\:\|]/,jX=new RegExp("(\\||\\(\\?\\:|\\)|\\[|\\])");function Qy(e){return e.length===1?e[0]:e}function AS(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=NX(e))||t){n&&(e=n);var s=0;return function(){return s>=e.length?{done:!0}:{done:!1,value:e[s++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 670In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NX(e,t){if(e){if(typeof e=="string")return IS(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?IS(e,t):void 0}}function IS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,s=Array(t);n<t;n++)s[n]=e[n];return s}function mh(e){"@babel/helpers - typeof";return mh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mh(e)}function kX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _X(e,t){for(var n=0;n<t.length;n++){var s=t[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,CX(s.key),s)}}function SX(e,t,n){return t&&_X(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function CX(e){var t=EX(e,"string");return mh(t)=="symbol"?t:t+""}function EX(e,t){if(mh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var s=n.call(e,t);if(mh(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var TX=function(){function e(t){kX(this,e),this.matchTree=new vX().parse(t)}return SX(e,[{key:"match",value:function(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=s.allowOverflow;
vendor: 22,334 bytes, lines 670-675
670if(!n)throw new Error("String is required");var i=L0(n.split(""),this.matchTree,!0);if(i&&i.match&&delete i.matchedChars,!(i&&i.overflow&&!a))return i}}])}();function L0(e,t,n){if(typeof t=="string"){var s=e.join("");return t.indexOf(s)===0?e.length===t.length?{match:!0,matchedChars:e}:{partialMatch:!0}:s.indexOf(t)===0?n&&e.length>t.length?{overflow:!0}:{match:!0,matchedChars:e.slice(0,t.length)}:void 0}if(Array.isArray(t)){for(var a=e.slice(),i=0;i<t.length;){var o=t[i],l=L0(a,o,n&&i===t.length-1);if(l){if(l.overflow)return l;if(l.match){if(a=a.slice(l.matchedChars.length),a.length===0)return i===t.length-1?{match:!0,matchedChars:e}:{partialMatch:!0}}else{if(l.partialMatch)return{partialMatch:!0};throw new Error(`Unsupported match result: 671`.concat(JSON.stringify(l,null,2)))}}else return;i++}return n?{overflow:!0}:{match:!0,matchedChars:e.slice(0,e.length-a.length)}}switch(t.op){case"|":for(var c,d=AS(t.args),u;!(u=d()).done;){var h=u.value,f=L0(e,h,n);if(f){if(f.overflow)return f;if(f.match)return{match:!0,matchedChars:f.matchedChars};if(f.partialMatch)c=!0;else throw new Error(`Unsupported match result: 672`.concat(JSON.stringify(f,null,2)))}}return c?{partialMatch:!0}:void 0;case"[]":for(var m=AS(t.args),y;!(y=m()).done;){var p=y.value;if(e[0]===p)return e.length===1?{match:!0,matchedChars:e}:n?{overflow:!0}:{match:!0,matchedChars:[p]}}return;default:throw new Error("Unsupported instruction tree: ".concat(t))}}function fh(e){"@babel/helpers - typeof";return fh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fh(e)}function RS(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=$X(e))||t){n&&(e=n);var s=0;return function(){return s>=e.length?{done:!0}:{done:!1,value:e[s++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 673In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $X(e,t){if(e){if(typeof e=="string")return MS(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?MS(e,t):void 0}}function MS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,s=Array(t);n<t;n++)s[n]=e[n];return s}function OX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PX(e,t){for(var n=0;n<t.length;n++){var s=t[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,IX(s.key),s)}}function AX(e,t,n){return t&&PX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function IX(e){var t=RX(e,"string");return fh(t)=="symbol"?t:t+""}function RX(e,t){if(fh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var s=n.call(e,t);if(fh(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var B0="9",MX=15,DX=bf(B0,MX),FX=/[- ]/,LX=function(){return/\[([^\[\]])*\]/g},BX=function(){return/\d(?=[^,}][^,}])/g},WX=new RegExp("["+Os+"]*\\$1["+Os+"]*(\\$\\d["+Os+"]*)*$"),DS=3,UX=function(){function e(t){t.state;var n=t.metadata;OX(this,e),this.metadata=n,this.resetFormat()}return AX(e,[{key:"resetFormat",value:function(){this.chosenFormat=void 0,this.template=void 0,this.nationalNumberTemplate=void 0,this.populatedNationalNumberTemplate=void 0,this.populatedNationalNumberTemplatePosition=-1}},{key:"reset",value:function(n,s){this.resetFormat(),n?(this.isNANP=n.callingCode()==="1",this.matchingFormats=n.formats(),s.nationalSignificantNumber&&this.narrowDownMatchingFormats(s)):(this.isNANP=void 0,this.matchingFormats=[])}},{key:"format",value:function(n,s){var a=this;if(uX(s.nationalSignificantNumber,this.metadata))for(var i=RS(this.matchingFormats),o;!(o=i()).done;){var l=o.value,c=dX(s,l,{metadata:this.metadata,shouldTryNationalPrefixFormattingRule:function(u){return a.shouldTryNationalPrefixFormattingRule(u,{international:s.international,nationalPrefix:s.nationalPrefix})},getSeparatorAfterNationalPrefix:function(u){return a.getSeparatorAfterNationalPrefix(u)}});if(c)return this.resetFormat(),this.chosenFormat=l,this.setNationalNumberTemplate(c.replace(/\d/g,hs),s),this.populatedNationalNumberTemplate=c,this.populatedNationalNumberTemplatePosition=this.template.lastIndexOf(hs),c}return this.formatNationalNumberWithNextDigits(n,s)}},{key:"formatNationalNumberWithNextDigits",value:function(n,s){var a=this.chosenFormat,i=this.chooseFormat(s);if(i)return i===a?this.formatNextNationalNumberDigits(n):this.formatNextNationalNumberDigits(s.getNationalDigits())}},{key:"narrowDownMatchingFormats",value:function(n){var s=this,a=n.nationalSignificantNumber,i=n.nationalPrefix,o=n.international,l=a,c=l.length-DS;c<0&&(c=0),this.matchingFormats=this.matchingFormats.filter(function(d){return s.formatSuits(d,o,i)&&s.formatMatches(d,l,c)}),this.chosenFormat&&this.matchingFormats.indexOf(this.chosenFormat)===-1&&this.resetFormat()}},{key:"formatSuits",value:function(n,s,a){return!(a&&!n.usesNationalPrefix()&&!n.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!s&&!a&&n.nationalPrefixIsMandatoryWhenFormattingInNationalFormat())}},{key:"formatMatches",value:function(n,s,a){var i=n.leadingDigitsPatterns().length;if(i===0)return!0;a=Math.min(a,i-1);var o=n.leadingDigitsPatterns()[a];if(s.length<DS)try{return new TX(o).match(s,{allowOverflow:!0})!==void 0}catch(l){return console.error(l),!0}return new RegExp("^(".concat(o,")")).test(s)}},{key:"getFormatFormat",value:function(n,s){return s?n.internationalFormat():n.format()}},{key:"chooseFormat",value:function(n){for(var s=this,a=function(){var d=l.value;return s.chosenFormat===d?0:WX.test(s.getFormatFormat(d,n.international))?s.createTemplateForFormat(d,n)?(s.chosenFormat=d,0):(s.matchingFormats=s.matchingFormats.filter(function(u){return u!==d}),1):1},i,o=RS(this.matchingFormats.slice()),l;!(l=o()).done&&(i=a(),i!==0););return this.chosenFormat||this.resetFormat(),this.chosenFormat}},{key:"createTemplateForFormat",value:function(n,s){if(!(n.pattern().indexOf("|")>=0)){var a=this.getTemplateForFormat(n,s);if(a)return this.setNationalNumberTemplate(a,s),!0}}},{key:"getSeparatorAfterNationalPrefix",value:function(n){return this.isNANP||n&&n.nationalPrefixFormattingRule()&&FX.test(n.nationalPrefixFormattingRule())?" ":""}},{key:"getInternationalPrefixBeforeCountryCallingCode",value:function(n,s){var a=n.IDDPrefix,i=n.missingPlus;return a?s&&s.spacing===!1?a:a+" ":i?"":"+"}},{key:"getTemplate",value:function(n){if(this.template){for(var s=-1,a=0,i=n.international?this.getInternationalPrefixBeforeCountryCallingCode(n,{spacing:!1}):"";a<i.length+n.getDigitsWithoutInternationalPrefix().length;)s=this.template.indexOf(hs,s+1),a++;return OS(this.template,s+1)}}},{key:"setNationalNumberTemplate",value:function(n,s){this.nationalNumberTemplate=n,this.populatedNationalNumberTemplate=n,this.populatedNationalNumberTemplatePosition=-1,s.international?this.template=this.getInternationalPrefixBeforeCountryCallingCode(s).replace(/[\d\+]/g,hs)+bf(hs,s.callingCode.length)+" "+n:this.template=n}},{key:"getTemplateForFormat",value:function(n,s){var a=s.nationalSignificantNumber,i=s.international,o=s.nationalPrefix,l=s.complexPrefixBeforeNationalSignificantNumber,c=n.pattern();c=c.replace(LX(),"\\d").replace(BX(),"\\d");var d=DX.match(c)[0];if(!(a.length>d.length)){var u=new RegExp("^"+c+"$"),h=a.replace(/\d/g,B0);u.test(h)&&(d=h);var f=this.getFormatFormat(n,i),m;if(this.shouldTryNationalPrefixFormattingRule(n,{international:i,nationalPrefix:o})){var y=f.replace(hO,n.nationalPrefixFormattingRule());if(kp(n.nationalPrefixFormattingRule())===(o||"")+kp("$1")&&(f=y,m=!0,o))for(var p=o.length;p>0;)f=f.replace(/\d/,hs),p--}var v=d.replace(new RegExp(c),f).replace(new RegExp(B0,"g"),hs);return m||(l?v=bf(hs,l.length)+" "+v:o&&(v=bf(hs,o.length)+this.getSeparatorAfterNationalPrefix(n)+v)),i&&(v=uO(v)),v}}},{key:"formatNextNationalNumberDigits",value:function(n){var s=cX(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,n);if(!s){this.resetFormat();return}return this.populatedNationalNumberTemplate=s[0],this.populatedNationalNumberTemplatePosition=s[1],OS(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1)}},{key:"shouldTryNationalPrefixFormattingRule",value:function(n,s){var a=s.international,i=s.nationalPrefix;if(n.nationalPrefixFormattingRule()){var o=n.usesNationalPrefix();if(o&&i||!o&&!a)return!0}}}])}();function ph(e){"@babel/helpers - typeof";return ph=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ph(e)}function kO(e,t){return GX(e)||zX(e,t)||HX(e,t)||qX()}function qX(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 674In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HX(e,t){if(e){if(typeof e=="string")return FS(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?FS(e,t):void 0}}function FS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,s=Array(t);n<t;n++)s[n]=e[n];return s}function zX(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var s,a,i,o,l=[],c=!0,d=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(s=i.call(n)).done)&&(l.push(s.value),l.length!==t);c=!0);}catch(u){d=!0,a=u}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(d)throw a}}return l}}function GX(e){if(Array.isArray(e))return e}function YX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function VX(e,t){for(var n=0;n<t.length;n++){var s=t[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,QX(s.key),s)}}function KX(e,t,n){return t&&VX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function QX(e){var t=ZX(e,"string");return ph(t)=="symbol"?t:t+""}function ZX(e,t){if(ph(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var s=n.call(e,t);if(ph(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var XX="["+Os+Jr+"]+",JX=new RegExp("^"+XX+"$","i"),eJ="(?:["+Hg+"]["+Os+Jr+"]*|["+Os+Jr+"]+)",tJ=new RegExp("[^"+Os+Jr+"]+.*$"),rJ=/[^\d\[\]]/,nJ=function(){function e(t){var n=t.defaultCountry,s=t.defaultCallingCode,a=t.metadata,i=t.onNationalSignificantNumberChange;YX(this,e),this.defaultCountry=n,this.defaultCallingCode=s,this.metadata=a,this.onNationalSignificantNumberChange=i}return KX(e,[{key:"input",value:function(n,s){var a=iJ(n),i=kO(a,2),o=i[0],l=i[1],c=kp(o),d;return l&&(s.digits||(s.startInternationalNumber(),c||(d=!0))),c&&this.inputDigits(c,s),{digits:c,justLeadingPlus:d}}},{key:"inputDigits",value:function(n,s){var a=s.digits,i=a.length<3&&a.length+n.length>=3;if(s.appendDigits(n),i&&this.extractIddPrefix(s),this.isWaitingForCountryCallingCode(s)){if(!this.extractCountryCallingCode(s))return}else s.appendNationalSignificantNumberDigits(n);s.international||this.hasExtractedNationalSignificantNumber||this.extractNationalSignificantNumber(s.getNationalDigits(),function(o){return s.update(o)})}},{key:"isWaitingForCountryCallingCode",value:function(n){var s=n.international,a=n.callingCode;return s&&!a}},{key:"extractCountryCallingCode",value:function(n){var s=wj("+"+n.getDigitsWithoutInternationalPrefix(),this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),a=s.countryCallingCode,i=s.number;if(a)return n.setCallingCode(a),n.update({nationalSignificantNumber:i}),!0}},{key:"reset",value:function(n){if(n){this.hasSelectedNumberingPlan=!0;var s=n._nationalPrefixForParsing();this.couldPossiblyExtractAnotherNationalSignificantNumber=s&&rJ.test(s)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:"extractNationalSignificantNumber",value:function(n,s){if(this.hasSelectedNumberingPlan){var a=P0(n,this.metadata),i=a.nationalPrefix,o=a.nationalNumber,l=a.carrierCode;if(o!==n)return this.onExtractedNationalNumber(i,l,o,n,s),!0}}},{key:"extractAnotherNationalSignificantNumber",value:function(n,s,a){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(n,a);if(this.couldPossiblyExtractAnotherNationalSignificantNumber){var i=P0(n,this.metadata),o=i.nationalPrefix,l=i.nationalNumber,c=i.carrierCode;if(l!==s)return this.onExtractedNationalNumber(o,c,l,n,a),!0}}},{key:"onExtractedNationalNumber",value:function(n,s,a,i,o){var l,c,d=i.lastIndexOf(a);if(d>=0&&d===i.length-a.length){c=!0;var u=i.slice(0,d);u!==n&&(l=u)}o({nationalPrefix:n,carrierCode:s,nationalSignificantNumber:a,nationalSignificantNumberMatchesInput:c,complexPrefixBeforeNationalSignificantNumber:l}),this.hasExtractedNationalSignificantNumber=!0,this.onNationalSignificantNumberChange()}},{key:"reExtractNationalSignificantNumber",value:function(n){if(this.extractAnotherNationalSignificantNumber(n.getNationalDigits(),n.nationalSignificantNumber,function(s){return n.update(s)}))return!0;if(this.extractIddPrefix(n))return this.extractCallingCodeAndNationalSignificantNumber(n),!0;if(this.fixMissingPlus(n))return this.extractCallingCodeAndNationalSignificantNumber(n),!0}},{key:"extractIddPrefix",value:function(n){var s=n.international,a=n.IDDPrefix,i=n.digits;if(n.nationalSignificantNumber,!(s||a)){var o=cO(i,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);if(o!==void 0&&o!==i)return n.update({IDDPrefix:i.slice(0,i.length-o.length)}),this.startInternationalNumber(n,{country:void 0,callingCode:void 0}),!0}}},{key:"fixMissingPlus",value:function(n){if(!n.international){var s=dO(n.digits,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),a=s.countryCallingCode;if(s.number,a)return n.update({missingPlus:!0}),this.startInternationalNumber(n,{country:n.country,callingCode:a}),!0}}},{key:"startInternationalNumber",value:function(n,s){var a=s.country,i=s.callingCode;n.startInternationalNumber(a,i),n.nationalSignificantNumber&&(n.resetNationalSignificantNumber(),this.onNationalSignificantNumberChange(),this.hasExtractedNationalSignificantNumber=void 0)}},{key:"extractCallingCodeAndNationalSignificantNumber",value:function(n){this.extractCountryCallingCode(n)&&this.extractNationalSignificantNumber(n.getNationalDigits(),function(s){return n.update(s)})}}])}();function sJ(e){var t=e.search(eJ);if(!(t<0)){e=e.slice(t);var n;return e[0]==="+"&&(n=!0,e=e.slice(1)),e=e.replace(tJ,""),n&&(e="+"+e),e}}function aJ(e){var t=sJ(e)||"";return t[0]==="+"?[t.slice(1),!0]:[t]}function iJ(e){var t=aJ(e),n=kO(t,2),s=n[0],a=n[1];return JX.test(s)||(s=""),[s,a]}function gh(e){"@babel/helpers - typeof";return gh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gh(e)}function oJ(e,t){return uJ(e)||dJ(e,t)||cJ(e,t)||lJ()}function lJ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 675In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cJ(e,t){if(e){if(typeof e=="string")return LS(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?LS(e,t):void 0}}function LS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,s=Array(t);n<t;n++)s[n]=e[n];return s}function dJ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var s,a,i,o,l=[],c=!0,d=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(s=i.call(n)).done)&&(l.push(s.value),l.length!==t);c=!0);}catch(u){d=!0,a=u}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(d)throw a}}return l}}function uJ(e){if(Array.isArray(e))return e}function hJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mJ(e,t){for(var n=0;n<t.length;n++){var s=t[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,pJ(s.key),s)}}function fJ(e,t,n){return t&&mJ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function pJ(e){var t=gJ(e,"string");return gh(t)=="symbol"?t:t+""}function gJ(e,t){if(gh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var s=n.call(e,t);if(gh(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var gd=function(){function e(t,n){hJ(this,e),this.metadata=new yr(n);var s=this.getCountryAndCallingCode(t),a=oJ(s,2),i=a[0],o=a[1];this.defaultCountry=i,this.defaultCallingCode=o,this.reset()}return fJ(e,[{key:"getCountryAndCallingCode",value:function(n){var s,a;return n&&(Qo(n)?(s=n.defaultCountry,a=n.defaultCallingCode):s=n),s&&!this.metadata.hasCountry(s)&&(s=void 0),[s,a]}},{key:"input",value:function(n){var s=this.parser.input(n,this.state),a=s.digits,i=s.justLeadingPlus;if(i)this.formattedOutput="+";else if(a){this.determineTheCountryIfNeeded(),this.state.nationalSignificantNumber&&this.formatter.narrowDownMatchingFormats(this.state);var o;if(this.metadata.hasSelectedNumberingPlan()&&(o=this.formatter.format(a,this.state)),o===void 0&&this.parser.reExtractNationalSignificantNumber(this.state)){this.determineTheCountryIfNeeded();var l=this.state.getNationalDigits();l&&(o=this.formatter.format(l,this.state))}this.formattedOutput=o?this.getFullNumber(o):this.getNonFormattedNumber()}return this.formattedOutput}},{key:"reset",value:function(){var n=this;return this.state=new aX({onCountryChange:function(a){n.country=a},onCallingCodeChange:function(a,i){n.metadata.selectNumberingPlan(i,a),n.formatter.reset(n.metadata.numberingPlan,n.state),n.parser.reset(n.metadata.numberingPlan)}}),this.formatter=new UX({state:this.state,metadata:this.metadata}),this.parser=new nJ({defaultCountry:this.defaultCountry,defaultCallingCode:this.defaultCallingCode,metadata:this.metadata,state:this.state,onNationalSignificantNumberChange:function(){n.determineTheCountryIfNeeded(),n.formatter.reset(n.metadata.numberingPlan,n.state)}}),this.state.reset({country:this.defaultCountry,callingCode:this.defaultCallingCode}),this.formattedOutput="",this}},{key:"isInternational",value:function(){return this.state.international}},{key:"getCallingCode",value:function(){if(this.isInternational())return this.state.callingCode}},{key:"getCountryCallingCode",value:function(){return this.getCallingCode()}},{key:"getCountry",value:function(){var n=this.state.digits;if(n)return this._getCountry()}},{key:"_getCountry",value:function(){var n=this.state.country;return n}},{key:"determineTheCountryIfNeeded",value:function(){(!this.state.country||this.isCountryCallingCodeAmbiguous())&&this.determineTheCountry()}},{key:"getFullNumber",value:function(n){var s=this;if(this.isInternational()){var a=function(l){return s.formatter.getInternationalPrefixBeforeCountryCallingCode(s.state,{spacing:!!l})+l},i=this.state.callingCode;return a(i?n?"".concat(i," ").concat(n):i:"".concat(this.state.getDigitsWithoutInternationalPrefix()))}return n}},{key:"getNonFormattedNationalNumberWithPrefix",value:function(){var n=this.state,s=n.nationalSignificantNumber,a=n.complexPrefixBeforeNationalSignificantNumber,i=n.nationalPrefix,o=s,l=a||i;return l&&(o=l+o),o}},{key:"getNonFormattedNumber",value:function(){var n=this.state.nationalSignificantNumberMatchesInput;return this.getFullNumber(n?this.getNonFormattedNationalNumberWithPrefix():this.state.getNationalDigits())}},{key:"getNonFormattedTemplate",value:function(){var n=this.getNonFormattedNumber();if(n)return n.replace(/[\+\d]/g,hs)}},{key:"isCountryCallingCodeAmbiguous",value:function(){var n=this.state.callingCode,s=this.metadata.getCountryCodesForCallingCode(n);return s&&s.length>1}},{key:"determineTheCountry",value:function(){this.state.setCountry(bO(this.isInternational()?this.state.callingCode:this.defaultCallingCode,{nationalNumber:this.state.nationalSignificantNumber,defaultCountry:this.defaultCountry,metadata:this.metadata}))}},{key:"getNumberValue",value:function(){var n=this.state,s=n.digits,a=n.callingCode,i=n.country,o=n.nationalSignificantNumber;if(s){if(this.isInternational())return a?"+"+a+o:"+"+s;if(i||a){var l=i?this.metadata.countryCallingCode():a;return"+"+l+o}}}},{key:"getNumber",value:function(){var n=this.state,s=n.nationalSignificantNumber,a=n.carrierCode,i=n.callingCode,o=this._getCountry();if(s&&!(!o&&!i)){if(o&&o===this.defaultCountry){var l=new yr(this.metadata.metadata);l.selectNumberingPlan(o);var c=l.numberingPlan.callingCode(),d=this.metadata.getCountryCodesForCallingCode(c);if(d.length>1){var u=vO(s,{countries:d,defaultCountry:this.defaultCountry,metadata:this.metadata.metadata});u&&(o=u)}}var h=new gO(o||i,s,this.metadata.metadata);return a&&(h.carrierCode=a),h}}},{key:"isPossible",value:function(){var n=this.getNumber();return n?n.isPossible():!1}},{key:"isValid",value:function(){var n=this.getNumber();return n?n.isValid():!1}},{key:"getNationalNumber",value:function(){return this.state.nationalSignificantNumber}},{key:"getChars",value:function(){return(this.state.international?"+":"")+this.state.digits}},{key:"getTemplate",value:function(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||""}}])}();function BS(e){return new yr(e).getCountries()}function xJ(e,t,n){return n||(n=t,t=void 0),new gd(t,n).input(e)}function _O(e){var t=e.inputFormat,n=e.country,s=e.metadata;return t==="NATIONAL_PART_OF_INTERNATIONAL"?"+".concat(ei(n,s)):""}function W0(e,t){return t&&(e=e.slice(t.length),e[0]===" "&&(e=e.slice(1))),e}function yJ(e,t,n){if(!(n&&n.ignoreRest)){var s=function(i){if(n)switch(i){case"end":n.ignoreRest=!0;break}};
675return yO(e,t,s)}}function SO(e){var t=e.onKeyDown,n=e.inputFormat;return j.useCallback(function(s){if(s.keyCode===bJ&&n==="INTERNATIONAL"&&s.target instanceof HTMLInputElement&&vJ(s.target)===wJ.length){s.preventDefault();return}t&&t(s)},[t,n])}function vJ(e){return e.selectionStart}var bJ=8,wJ="+",jJ=["onKeyDown","country","inputFormat","metadata","international","withCountryCallingCode"];function U0(){return U0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},U0.apply(this,arguments)}function NJ(e,t){if(e==null)return{};var n=kJ(e,t),s,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)s=i[a],!(t.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(e,s)&&(n[s]=e[s])}return n}function kJ(e,t){if(e==null)return{};var n={},s=Object.keys(e),a,i;for(i=0;i<s.length;i++)a=s[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function _J(e){function t(n,s){var a=n.onKeyDown,i=n.country,o=n.inputFormat,l=n.metadata,c=l===void 0?e:l;n.international,n.withCountryCallingCode;var d=NJ(n,jJ),u=j.useCallback(function(f){var m=new gd(i,c),y=_O({inputFormat:o,country:i,metadata:c}),p=m.input(y+f),v=m.getTemplate();return y&&(p=W0(p,y),v&&(v=W0(v,y))),{text:p,template:v}},[i,c]),h=SO({onKeyDown:a,inputFormat:o});return ee.createElement(jp,U0({},d,{ref:s,parse:yJ,format:u,onKeyDown:h}))}return t=ee.forwardRef(t),t.propTypes={value:pe.string.isRequired,onChange:pe.func.isRequired,onKeyDown:pe.func,country:pe.string,inputFormat:pe.oneOf(["INTERNATIONAL","NATIONAL_PART_OF_INTERNATIONAL","NATIONAL","INTERNATIONAL_OR_NATIONAL"]).isRequired,metadata:pe.object},t}const SJ=_J();var CJ=["value","onChange","onKeyDown","country","inputFormat","metadata","inputComponent","international","withCountryCallingCode"];function q0(){return q0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},q0.apply(this,arguments)}function EJ(e,t){if(e==null)return{};var n=TJ(e,t),s,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)s=i[a],!(t.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(e,s)&&(n[s]=e[s])}return n}function TJ(e,t){if(e==null)return{};var n={},s=Object.keys(e),a,i;for(i=0;i<s.length;i++)a=s[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function $J(e){function t(n,s){var a=n.value,i=n.onChange,o=n.onKeyDown,l=n.country,c=n.inputFormat,d=n.metadata,u=d===void 0?e:d,h=n.inputComponent,f=h===void 0?"input":h;n.international,n.withCountryCallingCode;var m=EJ(n,CJ),y=_O({inputFormat:c,country:l,metadata:u}),p=j.useCallback(function(g){var x=M0(g.target.value);if(x===a){var b=WS(y,x,l,u);b.indexOf(g.target.value)===0&&(x=x.slice(0,-1))}i(x)},[y,a,i,l,u]),v=SO({onKeyDown:o,inputFormat:c});return ee.createElement(f,q0({},m,{ref:s,value:WS(y,a,l,u),onChange:p,onKeyDown:v}))}return t=ee.forwardRef(t),t.propTypes={value:pe.string.isRequired,onChange:pe.func.isRequired,onKeyDown:pe.func,country:pe.string,inputFormat:pe.oneOf(["INTERNATIONAL","NATIONAL_PART_OF_INTERNATIONAL","NATIONAL","INTERNATIONAL_OR_NATIONAL"]).isRequired,metadata:pe.object,inputComponent:pe.elementType},t}const OJ=$J();function WS(e,t,n,s){return W0(xJ(e+t,n,s),e)}function PJ(e){return US(e[0])+US(e[1])}function US(e){return String.fromCodePoint(127397+e.toUpperCase().charCodeAt(0))}var AJ=["value","onChange","options","disabled","readOnly"],IJ=["value","o
675ptions","className","iconComponent","getIconAspectRatio","arrowComponent","unicodeFlags"];function RJ(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=MJ(e))||t){n&&(e=n);var s=0;return function(){return s>=e.length?{done:!0}:{done:!1,value:e[s++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 676In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function MJ(e,t){if(e){if(typeof e=="string")return qS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qS(e,t)}}function qS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,s=new Array(t);n<t;n++)s[n]=e[n];return s}function _p(){return _p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},_p.apply(this,arguments)}function CO(e,t){if(e==null)return{};var n=DJ(e,t),s,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)s=i[a],!(t.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(e,s)&&(n[s]=e[s])}return n}function DJ(e,t){if(e==null)return{};var n={},s=Object.keys(e),a,i;for(i=0;i<s.length;i++)a=s[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function EO(e){var t=e.value,n=e.onChange,s=e.options,a=e.disabled,i=e.readOnly,o=CO(e,AJ),l=j.useCallback(function(c){var d=c.target.value;n(d==="ZZ"?void 0:d)},[n]);return j.useMemo(function(){return $O(s,t)},[s,t]),ee.createElement("select",_p({},o,{disabled:a||i,readOnly:i,value:t||"ZZ",onChange:l}),s.map(function(c){var d=c.value,u=c.label,h=c.divider;return ee.createElement("option",{key:h?"|":d||"ZZ",value:h?"|":d||"ZZ",disabled:!!h,style:h?FJ:void 0},u)}))}EO.propTypes={value:pe.string,onChange:pe.func.isRequired,options:pe.arrayOf(pe.shape({value:pe.string,label:pe.string,divider:pe.bool})).isRequired,disabled:pe.bool,readOnly:pe.bool};var FJ={fontSize:"1px",backgroundColor:"currentColor",color:"inherit"};function TO(e){var t=e.value,n=e.options,s=e.className,a=e.iconComponent;e.getIconAspectRatio;var i=e.arrowComponent,o=i===void 0?LJ:i,l=e.unicodeFlags,c=CO(e,IJ),d=j.useMemo(function(){return $O(n,t)},[n,t]);return ee.createElement("div",{className:"PhoneInputCountry"},ee.createElement(EO,_p({},c,{value:t,options:n,className:wp("PhoneInputCountrySelect",s)})),d&&(l&&t?ee.createElement("div",{className:"PhoneInputCountryIconUnicode"},PJ(t)):ee.createElement(a,{"aria-hidden":!0,country:t,label:d.label,aspectRatio:l?1:void 0})),ee.createElement(o,null))}TO.propTypes={iconComponent:pe.elementType,arrowComponent:pe.elementType,unicodeFlags:pe.bool};function LJ(){return ee.createElement("div",{className:"PhoneInputCountrySelectArrow"})}function $O(e,t){for(var n=RJ(e),s;!(s=n()).done;){var a=s.value;if(!a.divider&&BJ(a.value,t))return a}}function BJ(e,t){return e==null?t==null:e===t}var WJ=["country","countryName","flags","flagUrl"];function H0(){return H0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},H0.apply(this,arguments)}function UJ(e,t){if(e==null)return{};var n=qJ(e,t),s,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)s=i[a],!(t.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(e,s)&&(n[s]=e[s])}return n}function qJ(e,t){if(e==null)return{};var n={},s=Object.keys(e),a,i;for(i=0;i<s.length;i++)a=s[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function Nj(e){var t=e.country,n=e.countryName,s=e.flags,a=e.flagUrl,i=UJ(e,WJ);return s&&s[t]?s[t]({title:n}):ee.createElement("img",H0({},i,{alt:n,role:n?void 0:"presentation",src:a.replace("{XX}",t).replace("{xx}",t.toLowerCase())}))}Nj.propTypes={country:pe.string.isRequired,countryName:pe.string.isRequired,flags:pe.objectOf(pe.elementType),flagUrl:pe.string.isRequired};var HJ=["aspectRatio"],zJ=["title"],GJ=["title"];function Sp(){return Sp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},Sp.apply(this,arguments)}function kj(e,t){if(e==null)return{};var n=YJ(e,t),s,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)s=i[a],!(t.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(e,s)&&(n[s]=e[s])}return n}function YJ(e,t){if(e==null)return{};var n={},s=Object.keys(e),a,i;for(i=0;i<s.length;i++)a=s[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function zg(e){var t=e.aspectRatio,n=kj(e,HJ);return t===1?ee.createElement(PO,n):ee.createElement(OO,n)}
676zg.propTypes={title:pe.string.isRequired,aspectRatio:pe.number};function OO(e){var t=e.title,n=kj(e,zJ);return ee.createElement("svg",Sp({},n,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 75 50"}),ee.createElement("title",null,t),ee.createElement("g",{className:"PhoneInputInternationalIconGlobe",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeMiterlimit:"10"},ee.createElement("path",{strokeLinecap:"round",d:"M47.2,36.1C48.1,36,49,36,50,36c7.4,0,14,1.7,18.5,4.3"}),ee.createElement("path",{d:"M68.6,9.6C64.2,12.3,57.5,14,50,14c-7.4,0-14-1.7-18.5-4.3"}),ee.createElement("line",{x1:"26",y1:"25",x2:"74",y2:"25"}),ee.createElement("line",{x1:"50",y1:"1",x2:"50",y2:"49"}),ee.createElement("path",{strokeLinecap:"round",d:"M46.3,48.7c1.2,0.2,2.5,0.3,3.7,0.3c13.3,0,24-10.7,24-24S63.3,1,50,1S26,11.7,26,25c0,2,0.3,3.9,0.7,5.8"}),ee.createElement("path",{strokeLinecap:"round",d:"M46.8,48.2c1,0.6,2.1,0.8,3.2,0.8c6.6,0,12-10.7,12-24S56.6,1,50,1S38,11.7,38,25c0,1.4,0.1,2.7,0.2,4c0,0.1,0,0.2,0,0.2"})),ee.createElement("path",{className:"PhoneInputInternationalIconPhone",stroke:"none",fill:"currentColor",d:"M12.4,17.9c2.9-2.9,5.4-4.8,0.3-11.2S4.1,5.2,1.3,8.1C-2,11.4,1.1,23.5,13.1,35.6s24.3,15.2,27.5,11.9c2.8-2.8,7.8-6.3,1.4-11.5s-8.3-2.6-11.2,0.3c-2,2-7.2-2.2-11.7-6.7S10.4,19.9,12.4,17.9z"}))}OO.propTypes={title:pe.string.isRequired};function PO(e){var t=e.title,n=kj(e,GJ);return ee.createElement("svg",Sp({},n,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"}),ee.createElement("title",null,t),ee.createElement("g",{className:"PhoneInputInternationalIconGlobe",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round"},ee.createElement("path",{d:"M8.45,13A21.44,21.44,0,1,1,37.08,41.56"}),ee.createElement("path",{d:"M19.36,35.47a36.9,36.9,0,0,1-2.28-13.24C17.08,10.39,21.88.85,27.8.85s10.72,9.54,10.72,21.38c0,6.48-1.44,12.28-3.71,16.21"}),ee.createElement("path",{d:"M17.41,33.4A39,39,0,0,1,27.8,32.06c6.62,0,12.55,1.5,16.48,3.86"}),ee.createElement("path",{d:"M44.29,8.53c-3.93,2.37-9.86,3.88-16.49,3.88S15.25,10.9,11.31,8.54"}),ee.createElement("line",{x1:"27.8",y1:"0.85",x2:"27.8",y2:"34.61"}),ee.createElement("line",{x1:"15.2",y1:"22.23",x2:"49.15",y2:"22.23"})),ee.createElement("path",{className:"PhoneInputInternationalIconPhone",stroke:"transparent",fill:"currentColor",d:"M9.42,26.64c2.22-2.22,4.15-3.59.22-8.49S3.08,17,.93,19.17c-2.49,2.48-.13,11.74,9,20.89s18.41,11.5,20.89,9c2.15-2.15,5.91-4.77,1-8.71s-6.27-2-8.49.22c-1.55,1.55-5.48-1.69-8.86-5.08S7.87,28.19,9.42,26.64Z"}))}PO.propTypes={title:pe.string.isRequired};function VJ(e){if(e.length<2||e[0]!=="+")return!1;for(var t=1;t<e.length;){var n=e.charCodeAt(t);if(!(n>=48&&n<=57))return!1;t++}return!0}function AO(e){VJ(e)||console.error("[react-phone-number-input] Expected the initial `value` to be a E.164 phone number. Got",e)}function KJ(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=QJ(e))||t){n&&(e=n);var s=0;return function(){return s>=e.length?{done:!0}:{done:!1,value:e[s++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 677In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function QJ(e,t){if(e){if(typeof e=="string")return HS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return HS(e,t)}}function HS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,s=new Array(t);n<t;n++)s[n]=e[n];return s}function ZJ(e,t){if(!t)return e;for(var n=[],s=[],a=n,i=function(){var d=l.value;if(d==="|")a.push({divider:!0});else if(d==="..."||d==="â¦")a=s;else{var u;d==="ð"?u=void 0:u=d;var h=e.indexOf(e.filter(function(m){return m.value===u})[0]),f=e[h];e.splice(h,1),a.push(f)}},o=KJ(t),l;!(l=o()).done;)i();return n.concat(e).concat(s)}function XJ(e,t){if(e&&(e=e.filter(function(n){switch(n){case"ð":case"|":case"...":case"â¦":return!0;default:return Gg(n,t)}}),e.length>0))return e}function Gg(e,t){return iO(e,t)?!0:(console.error("Country not found: ".concat(e)),!1)}function IO(e,t){return e&&(e=e.filter(function(n){return Gg(n,t)}),e.length===0&&(e=void 0)),e}
677var JJ=["country","label","aspectRatio"];function z0(){return z0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},z0.apply(this,arguments)}function eee(e,t){if(e==null)return{};var n=tee(e,t),s,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)s=i[a],!(t.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(e,s)&&(n[s]=e[s])}return n}function tee(e,t){if(e==null)return{};var n={},s=Object.keys(e),a,i;for(i=0;i<s.length;i++)a=s[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function RO(e){var t=e.flags,n=e.flagUrl,s=e.flagComponent,a=e.internationalIcon;function i(o){var l=o.country,c=o.label,d=o.aspectRatio,u=eee(o,JJ),h=a===zg?d:void 0;return ee.createElement("div",z0({},u,{className:wp("PhoneInputCountryIcon",{"PhoneInputCountryIcon--square":h===1,"PhoneInputCountryIcon--border":l})}),l?ee.createElement(s,{country:l,countryName:c,flags:t,flagUrl:n,className:"PhoneInputCountryIconImg"}):ee.createElement(a,{title:c,aspectRatio:h,className:"PhoneInputCountryIconImg"}))}return i.propTypes={country:pe.string,label:pe.string.isRequired,aspectRatio:pe.number},i}RO({flagUrl:"https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",flagComponent:Nj,internationalIcon:zg});function ree(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=nee(e))||t){n&&(e=n);var s=0;return function(){return s>=e.length?{done:!0}:{done:!1,value:e[s++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 678In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nee(e,t){if(e){if(typeof e=="string")return zS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zS(e,t)}}function zS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,s=new Array(t);n<t;n++)s[n]=e[n];return s}function see(e,t){for(var n=ree(e),s;!(s=n()).done;){var a=s.value;a&&aee(a,t)}}function aee(e,t){typeof e=="function"?e(t):e.current=t}var MO=pe.shape({country_calling_codes:pe.object.isRequired,countries:pe.object.isRequired}),DO=pe.objectOf(pe.string);function Da(e,t){var n="+"+ei(e,t);return n}function iee(e){var t=e.value,n=e.phoneNumber,s=e.defaultCountry,a=e.getAnyCountry,i=e.countries,o=e.required,l=e.metadata,c;return n&&n.country?c=n.country:s&&(!t||gc(t,s,l))&&(c=s),i&&i.indexOf(c)<0&&(c=void 0),!c&&o&&i&&i.length>0&&(c=a()),c}function oee(e){var t=e.countries,n=e.countryNames,s=e.addInternationalOption,a=e.compareStringsLocales,i=e.compareStrings;i||(i=fee);var o=t.map(function(l){return{value:l,label:n[l]||l}});return o.sort(function(l,c){return i(l.label,c.label,a)}),s&&o.unshift({label:n.ZZ}),o}function FO(e,t){return KZ(e||"",t)}function lee(e){return e.formatNational().replace(/\D/g,"")}function cee(e,t){var n=t.prevCountry,s=t.newCountry,a=t.metadata,i=t.useNationalFormat;if(n===s)return e;if(!e)return i?"":s?Da(s,a):"";if(s){if(e[0]==="+"){if(i)return e.indexOf("+"+ei(s,a))===0?pee(e,s,a):"";if(n){var o=Da(s,a);return e.indexOf(o)===0?e:o}else{var l=Da(s,a);return e.indexOf(l)===0?e:l}}}else if(e[0]!=="+")return sc(e,n,a)||"";return e}function sc(e,t,n){if(e){if(e[0]==="+"){if(e==="+")return;var s=new gd(t,n);return s.input(e),s.getNumberValue()}if(t){var a=BO(e,t,n);return"+".concat(ei(t,n)).concat(a||"")}}}function dee(e,t,n){var s=BO(e,t,n);if(s){var a=s.length-uee(t,n);if(a>0)return e.slice(0,e.length-a)}return e}function uee(e,t){return t=new yr(t),t.selectNumberingPlan(e),t.numberingPlan.possibleLengths()[t.numberingPlan.possibleLengths().length-1]}function LO(e,t){var n=t.country,s=t.countries,a=t.defaultCountry,i=t.latestCountrySelectedByUser,o=t.required,l=t.metadata;if(e==="+")return n;var c=mee(e,l);if(c)return!s||s.indexOf(c)>=0?c:void 0;if(n){if(gc(e,n,l)){if(i&&gc(e,i,l))return i;if(a&&gc(e,a,l))return a;
678if(!o)return}else if(!o)return}return n}function hee(e,t){var n=t.prevPhoneDigits,s=t.country,a=t.defaultCountry,i=t.latestCountrySelectedByUser,o=t.countryRequired,l=t.getAnyCountry,c=t.countries,d=t.international,u=t.limitMaxLength,h=t.countryCallingCodeEditable,f=t.metadata;if(d&&h===!1&&s){var m=Da(s,f);if(e.indexOf(m)!==0){var y,p=e&&e[0]!=="+";return p?(e=m+e,y=sc(e,s,f)):e=m,{phoneDigits:e,value:y,country:s}}}d===!1&&s&&e&&e[0]==="+"&&(e=GS(e,s,f)),e&&s&&u&&(e=dee(e,s,f)),e&&e[0]!=="+"&&(!s||d)&&(e="+"+e),!e&&n&&n[0]==="+"&&(d?s=void 0:s=a),e==="+"&&n&&n[0]==="+"&&n.length>1&&(s=void 0);var v;return e&&(e[0]==="+"&&(e==="+"||s&&Da(s,f).indexOf(e)===0)?v=void 0:v=sc(e,s,f)),v&&(s=LO(v,{country:s,countries:c,defaultCountry:a,latestCountrySelectedByUser:i,required:!1,metadata:f}),d===!1&&s&&e&&e[0]==="+"&&(e=GS(e,s,f),v=sc(e,s,f))),!s&&o&&(s=a||l()),{phoneDigits:e,country:s,value:v}}function GS(e,t,n){if(e.indexOf(Da(t,n))===0){var s=new gd(t,n);s.input(e);var a=s.getNumber();return a?a.formatNational().replace(/\D/g,""):""}else return e.replace(/\D/g,"")}function mee(e,t){var n=new gd(null,t);return n.input(e),n.getCountry()}function fee(e,t,n){return String.prototype.localeCompare?e.localeCompare(t,n):e<t?-1:e>t?1:0}function pee(e,t,n){if(t){var s="+"+ei(t,n);if(e.length<s.length){if(s.indexOf(e)===0)return""}else if(e.indexOf(s)===0)return e.slice(s.length)}for(var a=0,i=Object.keys(n.country_calling_codes);a<i.length;a++){var o=i[a];if(e.indexOf(o)===1)return e.slice(1+o.length)}return""}function BO(e,t,n){var s=new gd(t,n);s.input(e);var a=s.getNumber();return a&&a.nationalNumber}function gc(e,t,n){for(var s=Da(t,n),a=0;a<e.length&&a<s.length;){if(e[a]!==s[a])return!1;a++}return!0}function WO(e){var t=e.value,n=e.phoneNumber,s=e.defaultCountry,a=e.international,i=e.useNationalFormat,o=e.metadata;return(a===!1||i)&&n&&n.country?lee(n):!t&&a&&s?Da(s,o):t}function xh(e){"@babel/helpers - typeof";return xh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xh(e)}function YS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,s)}return n}function Dm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?YS(Object(n),!0).forEach(function(s){gee(e,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YS(Object(n)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(n,s))})}return e}function gee(e,t,n){return t=xee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xee(e){var t=yee(e,"string");return xh(t)=="symbol"?t:t+""}function yee(e,t){if(xh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var s=n.call(e,t||"default");if(xh(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vee(e,t,n){var s=e.metadata,a=e.countries,i=e.defaultCountry,o=e.value,l=e.reset,c=e.international,d=e.displayInitialValueAsLocalNumber,u=e.initialValueFormat,h=t.defaultCountry,f=t.value,m=t.reset;n.country;var y=n.value,p=n.hasUserSelectedACountry,v=n.latestCountrySelectedByUser,g=function(E){return WO(Dm(Dm({},E),{},{international:c,useNationalFormat:d||u==="national",metadata:s}))};if(l!==m)return{phoneDigits:g({value:void 0,defaultCountry:i}),value:void 0,country:i,latestCountrySelectedByUser:void 0,hasUserSelectedACountry:void 0};if(i!==h){var x=!i||Gg(i,s),b=!y||c&&y===g({value:void 0,defaultCountry:h}),w=!o&&b;if(!p&&x&&w)return{country:i,phoneDigits:g({value:void 0,defaultCountry:i}),value:void 0}}if(!VS(o,f)&&!VS(o,y)){var N,S;if(o){o&&AO(o),N=FO(o,s);var _=IO(a,s);N&&N.country?(!_||_.indexOf(N.country)>=0)&&(S=N.country):(S=LO(o,{country:void 0,countries:_,metadata:s}),S||i&&o.indexOf(Da(i,s))===0&&(S=i))}var C;if(o){if(v){var $=S?v===S:gc(o,v,s);$?S||(S=v):C={latestCountrySelectedByUser:void 0}}}else C={latestCountrySelectedByUser:void 0,hasUserSelectedACountry:void 0};return Dm(Dm({},C),{},{phoneDigits:g({phoneNumber:N,value:o,defaultCountry:i}
678),value:o,country:o?S:i})}}function VS(e,t){return e===null&&(e=void 0),t===null&&(t=void 0),e===t}var bee=["name","disabled","readOnly","autoComplete","style","className","inputRef","inputComponent","numberInputProps","smartCaret","countrySelectComponent","countrySelectProps","containerComponent","containerComponentProps","defaultCountry","countries","countryOptionsOrder","labels","flags","flagComponent","flagUrl","addInternationalOption","internationalIcon","displayInitialValueAsLocalNumber","initialValueFormat","onCountryChange","limitMaxLength","countryCallingCodeEditable","focusInputOnCountrySelection","reset","metadata","international","locales"];function Vc(e){"@babel/helpers - typeof";return Vc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vc(e)}function KS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,s)}return n}function UO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?KS(Object(n),!0).forEach(function(s){us(e,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KS(Object(n)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(n,s))})}return e}function xc(){return xc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},xc.apply(this,arguments)}function wee(e,t){if(e==null)return{};var n=jee(e,t),s,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)s=i[a],!(t.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(e,s)&&(n[s]=e[s])}return n}function jee(e,t){if(e==null)return{};var n={},s=Object.keys(e),a,i;for(i=0;i<s.length;i++)a=s[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function Nee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function QS(e,t){for(var n=0;n<t.length;n++){var s=t[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,HO(s.key),s)}}function kee(e,t,n){return t&&QS(e.prototype,t),n&&QS(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _ee(e,t,n){return t=Cp(t),See(e,qO()?Reflect.construct(t,n||[],Cp(e).constructor):t.apply(e,n))}function See(e,t){if(t&&(Vc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Cee(e)}function Cee(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qO=function(){return!!e})()}function Cp(e){return Cp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Cp(e)}function Eee(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&G0(e,t)}function G0(e,t){return G0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,a){return s.__proto__=a,s},G0(e,t)}function us(e,t,n){return t=HO(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HO(e){var t=Tee(e,"string");return Vc(t)=="symbol"?t:t+""}function Tee(e,t){if(Vc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var s=n.call(e,t||"default");if(Vc(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $ee=function(e){function t(n){var s;Nee(this,t),s=_ee(this,t,[n]),us(s,"setInputRef",function(v){see([s.props.inputRef,s.inputRef],v)}),us(s,"isCountrySupportedWithError",function(v){var g=s.props.metadata;return Gg(v,g)}),us(s,"onCountryChange",function(v){var g=s.props,x=g.international,b=g.metadata,w=g.onChange,N=g.focusInputOnCountrySelection,S=s.state,_=S.phoneDigits,C=S.country,$=cee(_,{prevCountry:C,newCountry:v,metadata:b,useNationalFormat:!x}),k=sc($,v,b);N&&s.inputRef.current.focus(),s.setState({country:v,latestCountrySelectedByUser:v,hasUserSelectedACountry:!0,phoneDigits:$,value:k},function(){w(k)})}),us(s,"onChange",function(v){var g=s.props,x=g.defaultCountry,b=g.onChange,w=g.addInternationalOption,N=g.international,S=g.limitMaxLength,_=g.countryCallingCodeEditable,C=g.metadata,$=s.state,k=$.countries,E=$.phoneDigits,T=$.country,O=$.latestCountrySelectedByUser,A=hee(v,{prevPhoneDigits:E,country:T,countryRequired:!w,defaultCountry:x,latestCountrySelectedByUser:O,getAnyCountry:function(){return s.getFirstSupportedCountry({countries:k})},countries:k,international:N,limitMaxLength:S,countryCallingCodeEditable:_,metadata:C}
678),U=A.phoneDigits,z=A.country,W=A.value,B={phoneDigits:U,value:W,country:z};O&&W&&!gc(W,O,C)&&(B.latestCountrySelectedByUser=void 0),_===!1&&!W&&U===s.state.phoneDigits&&(B.forceRerender={}),s.setState(B,function(){return b(W)})}),us(s,"_onFocus",function(){return s.setState({isFocused:!0})}),us(s,"_onBlur",function(){return s.setState({isFocused:!1})}),us(s,"onFocus",function(v){s._onFocus();var g=s.props.onFocus;g&&g(v)}),us(s,"onBlur",function(v){var g=s.props.onBlur;s._onBlur(),g&&g(v)}),us(s,"onCountryFocus",function(v){s._onFocus();var g=s.props.countrySelectProps;if(g){var x=g.onFocus;x&&x(v)}}),us(s,"onCountryBlur",function(v){s._onBlur();var g=s.props.countrySelectProps;if(g){var x=g.onBlur;x&&x(v)}}),s.inputRef=ee.createRef();var a=s.props,i=a.value;a.labels;var o=a.international,l=a.addInternationalOption,c=a.displayInitialValueAsLocalNumber,d=a.initialValueFormat,u=a.metadata,h=s.props,f=h.defaultCountry,m=h.countries;f&&(s.isCountrySupportedWithError(f)||(f=void 0)),i&&AO(i),m=IO(m,u);var y=FO(i,u);s.CountryIcon=RO(s.props);var p=iee({value:i,phoneNumber:y,defaultCountry:f,required:!l,countries:m||BS(u),getAnyCountry:function(){return s.getFirstSupportedCountry({countries:m})},metadata:u});return s.state={props:s.props,country:p,countries:m,phoneDigits:WO({value:i,phoneNumber:y,defaultCountry:f,international:o,useNationalFormat:c||d==="national",metadata:u}),value:i},s}return Eee(t,e),kee(t,[{key:"componentDidMount",value:function(){var s=this.props.onCountryChange,a=this.props.defaultCountry,i=this.state.country;s&&(a&&(this.isCountrySupportedWithError(a)||(a=void 0)),i!==a&&s(i))}},{key:"componentDidUpdate",value:function(s,a){var i=this.props.onCountryChange,o=this.state.country;i&&o!==a.country&&i(o)}},{key:"getCountrySelectOptions",value:function(s){var a=s.countries,i=this.props,o=i.international,l=i.countryCallingCodeEditable,c=i.countryOptionsOrder,d=i.addInternationalOption,u=i.labels,h=i.locales,f=i.metadata;return this.useMemoCountrySelectOptions(function(){return ZJ(oee({countries:a||BS(f),countryNames:u,addInternationalOption:o&&l===!1?!1:d,compareStringsLocales:h}),XJ(c,f))},[a,c,d,u,f])}},{key:"useMemoCountrySelectOptions",value:function(s,a){return(!this.countrySelectOptionsMemoDependencies||!Pee(a,this.countrySelectOptionsMemoDependencies))&&(this.countrySelectOptionsMemo=s(),this.countrySelectOptionsMemoDependencies=a),this.countrySelectOptionsMemo}},{key:"getFirstSupportedCountry",value:function(s){var a=s.countries,i=this.getCountrySelectOptions({countries:a});return i[0].value}},{key:"render",value:function(){var s=this.props,a=s.name,i=s.disabled,o=s.readOnly,l=s.autoComplete,c=s.style,d=s.className;s.inputRef;var u=s.inputComponent,h=s.numberInputProps,f=s.smartCaret,m=s.countrySelectComponent,y=s.countrySelectProps,p=s.containerComponent,v=s.containerComponentProps;s.defaultCountry,s.countries,s.countryOptionsOrder;var g=s.labels;s.flags,s.flagComponent,s.flagUrl,s.addInternationalOption,s.internationalIcon,s.displayInitialValueAsLocalNumber,s.initialValueFormat,s.onCountryChange,s.limitMaxLength,s.countryCallingCodeEditable,s.focusInputOnCountrySelection,s.reset;var x=s.metadata,b=s.international;s.locales;var w=wee(s,bee),N=this.state,S=N.country,_=N.countries,C=N.phoneDigits,$=N.isFocused,k=f?SJ:OJ,E=this.getCountrySelectOptions({countries:_});return ee.createElement(p,xc({style:c,className:wp(d,"PhoneInput",{"PhoneInput--focus":$,"PhoneInput--disabled":i,"PhoneInput--readOnly":o})},v),ee.createElement(m,xc({name:a?"".concat(a,"Country"):void 0,"aria-label":g.country},y,{value:S,options:E,onChange:this.onCountryChange,onFocus:this.onCountryFocus,onBlur:this.onCountryBlur,disabled:i||y&&y.disabled,readOnly:o||y&&y.readOnly,iconComponent:this.CountryIcon})),ee.createElement(k,xc({ref:this.setInputRef,type:"tel",autoComplete:l},h,w,{inputFormat:b===!0?"INTERNATIONAL":b===!1?"NATIONAL":"INTERNATIONAL_OR_NATIONAL",international:b?!0:void 0,withCountryCallingCode:b?!0:void 0,name:a,metadata:x,country:S,value:C||"",onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,disabled:i,readOnly:o,inputComponent:u,className:wp("PhoneInputInput",h&&h.className,w.className)})))}}],[{key:"getDerivedStateFromProps",value:function(s,a){return UO({props:s},vee(s,a.props,a))}}])}(ee.PureComponent),zO=ee.forwardRef(function(e,t){return ee.createElement($ee,xc({},Oee(e),{inputRef:t}))});
678zO.propTypes={value:pe.string,onChange:pe.func.isRequired,onFocus:pe.func,onBlur:pe.func,disabled:pe.bool,readOnly:pe.bool,autoComplete:pe.string,initialValueFormat:pe.oneOf(["national"]),displayInitialValueAsLocalNumber:pe.bool,defaultCountry:pe.string,countries:pe.arrayOf(pe.string),labels:DO,locales:pe.oneOfType([pe.string,pe.arrayOf(pe.string)]),flagUrl:pe.string,flags:pe.objectOf(pe.elementType),flagComponent:pe.elementType,addInternationalOption:pe.bool,internationalIcon:pe.elementType,countryOptionsOrder:pe.arrayOf(pe.string),style:pe.object,className:pe.string,countrySelectComponent:pe.elementType,countrySelectProps:pe.object,inputComponent:pe.elementType,numberInputProps:pe.object,containerComponent:pe.elementType,containerComponentProps:pe.object,smartCaret:pe.bool,international:pe.bool,limitMaxLength:pe.bool,countryCallingCodeEditable:pe.bool,metadata:MO,onCountryChange:pe.func,focusInputOnCountrySelection:pe.bool};var ZS={autoComplete:"tel",countrySelectComponent:TO,flagComponent:Nj,flagUrl:"https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",internationalIcon:zg,inputComponent:"input",containerComponent:"div",reset:pe.any,smartCaret:!0,addInternationalOption:!0,countryCallingCodeEditable:!0,focusInputOnCountrySelection:!0};function Oee(e){e=UO({},e);for(var t in ZS)e[t]===void 0&&(e[t]=ZS[t]);return e}function Pee(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;){if(e[n]!==t[n])return!1;n++}return!0}const Aee={ext:"ext.",country:"Phone number country",phone:"Phone",AB:"Abkhazia",AC:"Ascension Island",AD:"Andorra",AE:"United Arab Emirates",AF:"Afghanistan",AG:"Antigua and Barbuda",AI:"Anguilla",AL:"Albania",AM:"Armenia",AO:"Angola",AQ:"Antarctica",AR:"Argentina",AS:"American Samoa",AT:"Austria",AU:"Australia",AW:"Aruba",AX:"Ã
land Islands",AZ:"Azerbaijan",BA:"Bosnia and Herzegovina",BB:"Barbados",BD:"Bangladesh",BE:"Belgium",BF:"Burkina Faso",BG:"Bulgaria",BH:"Bahrain",BI:"Burundi",BJ:"Benin",BL:"Saint Barthélemy",BM:"Bermuda",BN:"Brunei Darussalam",BO:"Bolivia",BQ:"Bonaire, Sint Eustatius and Saba",BR:"Brazil",BS:"Bahamas",BT:"Bhutan",BV:"Bouvet Island",BW:"Botswana",BY:"Belarus",BZ:"Belize",CA:"Canada",CC:"Cocos (Keeling) Islands",CD:"Congo, Democratic Republic of the",CF:"Central African Republic",CG:"Congo",CH:"Switzerland",CI:"Cote d'Ivoire",CK:"Cook Islands",CL:"Chile",CM:"Cameroon",CN:"China",CO:"Colombia",CR:"Costa Rica",CU:"Cuba",CV:"Cape Verde",CW:"Curaçao",CX:"Christmas Island",CY:"Cyprus",CZ:"Czech Republic",DE:"Germany",DJ:"Djibouti",DK:"Denmark",DM:"Dominica",DO:"Dominican Republic",DZ:"Algeria",EC:"Ecuador",EE:"Estonia",EG:"Egypt",EH:"Western Sahara",ER:"Eritrea",ES:"Spain",ET:"Ethiopia",FI:"Finland",FJ:"Fiji",FK:"Falkland Islands",FM:"Federated States of Micronesia",FO:"Faroe Islands",FR:"France",GA:"Gabon",GB:"United Kingdom",GD:"Grenada",GE:"Georgia",GF:"French Guiana",GG:"Guernsey",GH:"Ghana",GI:"Gibraltar",GL:"Greenland",GM:"Gambia",GN:"Guinea",GP:"Guadeloupe",GQ:"Equatorial Guinea",GR:"Greece",GS:"South Georgia and the South Sandwich Islands",GT:"Guatemala",GU:"Guam",GW:"Guinea-Bissau",GY:"Guyana",HK:"Hong Kong",HM:"Heard Island and McDonald Islands",HN:"Honduras",HR:"Croatia",HT:"Haiti",HU:"Hungary",ID:"Indonesia",IE:"Ireland",IL:"Israel",IM:"Isle of Man",IN:"India",IO:"British Indian Ocean Territory",IQ:"Iraq",IR:"Iran",IS:"Iceland",IT:"Italy",JE:"Jersey",JM:"Jamaica",JO:"Jordan",JP:"Japan",KE:"Kenya",KG:"Kyrgyzstan",KH:"Cambodia",KI:"Kiribati",KM:"Comoros",KN:"Saint Kitts and Nevis",KP:"North Korea",KR:"South Korea",KW:"Kuwait",KY:"Cayman Islands",KZ:"Kazakhstan",LA:"Laos",LB:"Lebanon",LC:"Saint Lucia",LI:"Liechtenstein",LK:"Sri Lanka",LR:"Liberia",LS:"Lesotho",LT:"Lithuania",LU:"Luxembourg",LV:"Latvia",LY:"Libya",MA:"Morocco",MC:"Monaco",MD:"Moldova",ME:"Montenegro",MF:"Saint Martin (French Part)",MG:"Madagascar",MH:"Marshall Islands",MK:"North Macedonia",ML:"Mali",MM:"Myanmar",MN:"Mongolia",MO:"Macao",MP:"Northern Mariana Islands",MQ:"Martinique",MR:"Mauritania",MS:"Montserrat",MT:"Malta",MU:"Mauritius",MV:"Maldives",MW:"Malawi",MX:"Mexico",MY:"Malaysia",MZ:"Mozambique",NA:"Namibia",NC:"New Caledonia",NE:"Niger",NF:"Norfolk Island",NG:"Nigeria",NI:"Nicaragua",NL:"Netherlands",NO:"Norway",NP:"Nepal",NR:"Nauru",NU:"Niue",NZ:"New Zealand",OM:"Oman",OS:"South Ossetia",PA:"Panama",PE:"Peru",PF:"French Polynesia",PG:"Papua New Guinea",PH:"Philippines",PK:"Pakistan",PL:"Poland",PM:"Saint Pierre and Miquelon",PN:"Pitcairn",PR:"Puerto Rico",PS:"Palestine",PT:"Portugal",PW:"Palau",PY:"Paraguay",QA:"Qatar",RE:"Reunion",RO:"Romania",RS:"Serb
678ia",RU:"Russia",RW:"Rwanda",SA:"Saudi Arabia",SB:"Solomon Islands",SC:"Seychelles",SD:"Sudan",SE:"Sweden",SG:"Singapore",SH:"Saint Helena",SI:"Slovenia",SJ:"Svalbard and Jan Mayen",SK:"Slovakia",SL:"Sierra Leone",SM:"San Marino",SN:"Senegal",SO:"Somalia",SR:"Suriname",SS:"South Sudan",ST:"Sao Tome and Principe",SV:"El Salvador",SX:"Sint Maarten",SY:"Syria",SZ:"Swaziland",TA:"Tristan da Cunha",TC:"Turks and Caicos Islands",TD:"Chad",TF:"French Southern Territories",TG:"Togo",TH:"Thailand",TJ:"Tajikistan",TK:"Tokelau",TL:"Timor-Leste",TM:"Turkmenistan",TN:"Tunisia",TO:"Tonga",TR:"Turkey",TT:"Trinidad and Tobago",TV:"Tuvalu",TW:"Taiwan",TZ:"Tanzania",UA:"Ukraine",UG:"Uganda",UM:"United States Minor Outlying Islands",US:"United States",UY:"Uruguay",UZ:"Uzbekistan",VA:"Holy See (Vatican City State)",VC:"Saint Vincent and the Grenadines",VE:"Venezuela",VG:"Virgin Islands, British",VI:"Virgin Islands, U.S.",VN:"Vietnam",VU:"Vanuatu",WF:"Wallis and Futuna",WS:"Samoa",XK:"Kosovo",YE:"Yemen",YT:"Mayotte",ZA:"South Africa",ZM:"Zambia",ZW:"Zimbabwe",ZZ:"International"};var Iee=["metadata","labels"];function Y0(){return Y0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},Y0.apply(this,arguments)}function Ree(e,t){if(e==null)return{};var n=Mee(e,t),s,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)s=i[a],!(t.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(e,s)&&(n[s]=e[s])}return n}function Mee(e,t){if(e==null)return{};var n={},s=Object.keys(e),a,i;for(i=0;i<s.length;i++)a=s[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function GO(e){var t=ee.forwardRef(function(n,s){var a=n.metadata,i=a===void 0?e:a,o=n.labels,l=o===void 0?Aee:o,c=Ree(n,Iee);return ee.createElement(zO,Y0({},c,{ref:s,metadata:i,labels:l}))});return t.propTypes={metadata:MO,labels:DO},t}GO();function YO(e,t){var n=Array.prototype.slice.call(t);return n.push(J6),e.apply(this,n)}const Dee=GO(J6);function VO(){return YO(JZ,arguments)}function Fee(){return YO(ei,arguments)}function V0(e,[t,n]){return Math.min(n,Math.max(t,e))}function Yg(e){const t=j.useRef({value:e,previous:e});return j.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Lee=[" ","Enter","ArrowUp","ArrowDown"],Bee=[" ","Enter"],ll="Select",[Vg,Kg,Wee]=Th(ll),[xd,Qge]=ir(ll,[Wee,mo]),Qg=mo(),[Uee,yo]=xd(ll),[qee,Hee]=xd(ll),KO=e=>{const{__scopeSelect:t,children:n,open:s,defaultOpen:a,onOpenChange:i,value:o,defaultValue:l,onValueChange:c,dir:d,name:u,autoComplete:h,disabled:f,required:m,form:y}=e,p=Qg(t),[v,g]=j.useState(null),[x,b]=j.useState(null),[w,N]=j.useState(!1),S=bl(d),[_,C]=Xr({prop:s,defaultProp:a??!1,onChange:i,caller:ll}),[$,k]=Xr({prop:o,defaultProp:l,onChange:c,caller:ll}),E=j.useRef(null),T=v?y||!!v.closest("form"):!0,[O,A]=j.useState(new Set),U=Array.from(O).map(z=>z.props.value).join(";");return r.jsx(gg,{...p,children:r.jsxs(Uee,{required:m,scope:t,trigger:v,onTriggerChange:g,valueNode:x,onValueNodeChange:b,valueNodeHasChildren:w,onValueNodeHasChildrenChange:N,contentId:ar(),value:$,onValueChange:k,open:_,onOpenChange:C,dir:S,triggerPointerDownPosRef:E,disabled:f,children:[r.jsx(Vg.Provider,{scope:t,children:r.jsx(qee,{scope:e.__scopeSelect,onNativeOptionAdd:j.useCallback(z=>{A(W=>new Set(W).add(z))},[]),onNativeOptionRemove:j.useCallback(z=>{A(W=>{const B=new Set(W);return B.delete(z),B})},[]),children:n})}),T?r.jsxs(vP,{"aria-hidden":!0,required:m,tabIndex:-1,name:u,autoComplete:h,value:$,onChange:z=>k(z.target.value),disabled:f,form:y,children:[$===void 0?r.jsx("option",{value:""}):null,Array.from(O)]},U):null]})})};KO.displayName=ll;var QO="SelectTrigger",ZO=j.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:s=!1,...a}=e,i=Qg(n),o=yo(QO,n),l=o.disabled||s,c=Ge(t,o.onTriggerChange),d=Kg(n),u=j.useRef("touch"),[h,f,m]=wP(p=>{const v=d().filter(b=>!b.disabled),g=v.find(b=>b.value===o.value),x=jP(v,p,g);x!==void 0&&o.onValueChange(x.value)}),y=p=>{l||(o.onOpenChange(!0),m()),p&&(o.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return r.jsx(Ah,{asChild:!0,...i,children:r.jsx(we.button,{type:"button",role:"combobox","aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":"none",dir:o.dir,"data-state":o.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":bP(o.value)?"":void 0,...a,ref:c,onClick:me(a.onClick,p=>
vendor: 16,065 bytes, line 678
678{p.currentTarget.focus(),u.current!=="mouse"&&y(p)}),onPointerDown:me(a.onPointerDown,p=>{u.current=p.pointerType;const v=p.target;v.hasPointerCapture(p.pointerId)&&v.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(y(p),p.preventDefault())}),onKeyDown:me(a.onKeyDown,p=>{const v=h.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&f(p.key),!(v&&p.key===" ")&&Lee.includes(p.key)&&(y(),p.preventDefault())})})})});ZO.displayName=QO;var XO="SelectValue",JO=j.forwardRef((e,t)=>{const{__scopeSelect:n,className:s,style:a,children:i,placeholder:o="",...l}=e,c=yo(XO,n),{onValueNodeHasChildrenChange:d}=c,u=i!==void 0,h=Ge(t,c.onValueNodeChange);return Qt(()=>{d(u)},[d,u]),r.jsx(we.span,{...l,ref:h,style:{pointerEvents:"none"},children:bP(c.value)?r.jsx(r.Fragment,{children:o}):i})});JO.displayName=XO;var zee="SelectIcon",eP=j.forwardRef((e,t)=>{const{__scopeSelect:n,children:s,...a}=e;return r.jsx(we.span,{"aria-hidden":!0,...a,ref:t,children:s||"â¼"})});eP.displayName=zee;var Gee="SelectPortal",tP=e=>r.jsx(sd,{asChild:!0,...e});tP.displayName=Gee;var cl="SelectContent",rP=j.forwardRef((e,t)=>{const n=yo(cl,e.__scopeSelect),[s,a]=j.useState();if(Qt(()=>{a(new DocumentFragment)},[]),!n.open){const i=s;return i?ho.createPortal(r.jsx(nP,{scope:e.__scopeSelect,children:r.jsx(Vg.Slot,{scope:e.__scopeSelect,children:r.jsx("div",{children:e.children})})}),i):null}return r.jsx(sP,{...e,ref:t})});rP.displayName=cl;var ms=10,[nP,vo]=xd(cl),Yee="SelectContentImpl",Vee=Xi("SelectContent.RemoveScroll"),sP=j.forwardRef((e,t)=>{const{__scopeSelect:n,position:s="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:i,onPointerDownOutside:o,side:l,sideOffset:c,align:d,alignOffset:u,arrowPadding:h,collisionBoundary:f,collisionPadding:m,sticky:y,hideWhenDetached:p,avoidCollisions:v,...g}=e,x=yo(cl,n),[b,w]=j.useState(null),[N,S]=j.useState(null),_=Ge(t,M=>w(M)),[C,$]=j.useState(null),[k,E]=j.useState(null),T=Kg(n),[O,A]=j.useState(!1),U=j.useRef(!1);j.useEffect(()=>{if(b)return Ig(b)},[b]),Ag();const z=j.useCallback(M=>{const[Q,...X]=T().map(be=>be.ref.current),[re]=X.slice(-1),de=document.activeElement;for(const be of M)if(be===de||(be==null||be.scrollIntoView({block:"nearest"}),be===Q&&N&&(N.scrollTop=0),be===re&&N&&(N.scrollTop=N.scrollHeight),be==null||be.focus(),document.activeElement!==de))return},[T,N]),W=j.useCallback(()=>z([C,b]),[z,C,b]);j.useEffect(()=>{O&&W()},[O,W]);const{onOpenChange:B,triggerPointerDownPosRef:R}=x;j.useEffect(()=>{if(b){let M={x:0,y:0};const Q=re=>{var de,be;M={x:Math.abs(Math.round(re.pageX)-(((de=R.current)==null?void 0:de.x)??0)),y:Math.abs(Math.round(re.pageY)-(((be=R.current)==null?void 0:be.y)??0))}},X=re=>{M.x<=10&&M.y<=10?re.preventDefault():b.contains(re.target)||B(!1),document.removeEventListener("pointermove",Q),R.current=null};return R.current!==null&&(document.addEventListener("pointermove",Q),document.addEventListener("pointerup",X,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Q),document.removeEventListener("pointerup",X,{capture:!0})}}},[b,B,R]),j.useEffect(()=>{const M=()=>B(!1);return window.addEventListener("blur",M),window.addEventListener("resize",M),()=>{window.removeEventListener("blur",M),window.removeEventListener("resize",M)}},[B]);const[D,P]=wP(M=>{const Q=T().filter(de=>!de.disabled),X=Q.find(de=>de.ref.current===document.activeElement),re=jP(Q,M,X);re&&setTimeout(()=>re.ref.current.focus())}),I=j.useCallback((M,Q,X)=>{const re=!U.current&&!X;(x.value!==void 0&&x.value===Q||re)&&($(M),re&&(U.current=!0))},[x.value]),F=j.useCallback(()=>b==null?void 0:b.focus(),[b]),Y=j.useCallback((M,Q,X)=>{const re=!U.current&&!X;(x.value!==void 0&&x.value===Q||re)&&E(M)},[x.value]),H=s==="popper"?K0:aP,L=H===K0?{side:l,sideOffset:c,align:d,alignOffset:u,arrowPadding:h,collisionBoundary:f,collisionPadding:m,sticky:y,hideWhenDetached:p,avoidCollisions:v}:{};return r.jsx(nP,{scope:n,content:b,viewport:N,onViewportChange:S,itemRefCallback:I,selectedItem:C,onItemLeave:F,itemTextRefCallback:Y,focusSelectedItem:W,selectedItemText:k,position:s,isPositioned:O,searchRef:D,children:r.jsx(Lh,{as:Vee,allowPinchZoom:!0,children:r.jsx(Dh,{asChild:!0,trapped:x.open,onMountAutoFocus:M=>{M.preventDefault()},onUnmountAutoFocus:me(a,M=>{var Q;(Q=x.trigger)==null||Q.focus({preventScroll:!0}),M.preventDefault()}),children:r.jsx(gl,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:M=>M.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:r.jsx(H,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:M=>M.preventDefault(),...g,...L,onPlaced:()=>A(!0),ref:_,style:{display:"flex",flexDirection:"column",outline:"none",...g.style},onKeyDown:me(g.onKeyDown,M=>{const Q=M.ctrlKey||M.altKey||M.metaKey;if(M.key==="Tab"&&M.preventDefault(),!Q&&M.key.length===1&&P(M.key),["ArrowUp","ArrowDown","Home","End"].includes(M.key)){let re=T().filter(de=>!de.disabled).map(de=>de.ref.current);if(["ArrowUp","End"].includes(M.key)&&(re=re.slice().reverse()),["ArrowUp","ArrowDown"].includes(M.key)){const de=M.target,be=re.indexOf(de);re=re.slice(be+1)}setTimeout(()=>z(re)),M.preventDefault()}})})})})})})});sP.displayName=Yee;var Kee="SelectItemAlignedPosition",aP=j.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:s,...a}=e,i=yo(cl,n),o=vo(cl,n),[l,c]=j.useState(null),[d,u]=j.useState(null),h=Ge(t,_=>u(_)),f=Kg(n),m=j.useRef(!1),y=j.useRef(!0),{viewport:p,selectedItem:v,selectedItemText:g,focusSelectedItem:x}=o,b=j.useCallback(()=>{if(i.trigger&&i.valueNode&&l&&d&&p&&v&&g){const _=i.trigger.getBoundingClientRect(),C=d.getBoundingClientRect(),$=i.valueNode.getBoundingClientRect(),k=g.getBoundingClientRect();if(i.dir!=="rtl"){const de=k.left-C.left,be=$.left-de,Ee=_.left-be,Fe=_.width+Ee,qe=Math.max(Fe,C.width),xt=window.innerWidth-ms,ot=V0(be,[ms,Math.max(ms,xt-qe)]);l.style.minWidth=Fe+"px",l.style.left=ot+"px"}else{const de=C.right-k.right,be=window.innerWidth-$.right-de,Ee=window.innerWidth-_.right-be,Fe=_.width+Ee,qe=Math.max(Fe,C.width),xt=window.innerWidth-ms,ot=V0(be,[ms,Math.max(ms,xt-qe)]);l.style.minWidth=Fe+"px",l.style.right=ot+"px"}const E=f(),T=window.innerHeight-ms*2,O=p.scrollHeight,A=window.getComputedStyle(d),U=parseInt(A.borderTopWidth,10),z=parseInt(A.paddingTop,10),W=parseInt(A.borderBottomWidth,10),B=parseInt(A.paddingBottom,10),R=U+z+O+B+W,D=Math.min(v.offsetHeight*5,R),P=window.getComputedStyle(p),I=parseInt(P.paddingTop,10),F=parseInt(P.paddingBottom,10),Y=_.top+_.height/2-ms,H=T-Y,L=v.offsetHeight/2,M=v.offsetTop+L,Q=U+z+M,X=R-Q;if(Q<=Y){const de=E.length>0&&v===E[E.length-1].ref.current;l.style.bottom="0px";const be=d.clientHeight-p.offsetTop-p.offsetHeight,Ee=Math.max(H,L+(de?F:0)+be+W),Fe=Q+Ee;l.style.height=Fe+"px"}else{const de=E.length>0&&v===E[0].ref.current;l.style.top="0px";const Ee=Math.max(Y,U+p.offsetTop+(de?I:0)+L)+X;l.style.height=Ee+"px",p.scrollTop=Q-Y+p.offsetTop}l.style.margin=`${ms}px 0`,l.style.minHeight=D+"px",l.style.maxHeight=T+"px",s==null||s(),requestAnimationFrame(()=>m.current=!0)}},[f,i.trigger,i.valueNode,l,d,p,v,g,i.dir,s]);Qt(()=>b(),[b]);const[w,N]=j.useState();Qt(()=>{d&&N(window.getComputedStyle(d).zIndex)},[d]);const S=j.useCallback(_=>{_&&y.current===!0&&(b(),x==null||x(),y.current=!1)},[b,x]);return r.jsx(Zee,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:m,onScrollButtonChange:S,children:r.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:w},children:r.jsx(we.div,{...a,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});aP.displayName=Kee;var Qee="SelectPopperPosition",K0=j.forwardRef((e,t)=>{const{__scopeSelect:n,align:s="start",collisionPadding:a=ms,...i}=e,o=Qg(n);return r.jsx(xg,{...o,...i,ref:t,align:s,collisionPadding:a,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});K0.displayName=Qee;var[Zee,_j]=xd(cl,{}),Q0="SelectViewport",iP=j.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:s,...a}=e,i=vo(Q0,n),o=_j(Q0,n),l=Ge(t,i.onViewportChange),c=j.useRef(0);return r.jsxs(r.Fragment,{children:[r.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),r.jsx(Vg.Slot,{scope:n,children:r.jsx(we.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:me(a.onScroll,d=>{const u=d.currentTarget,{contentWrapper:h,shouldExpandOnScrollRef:f}=o;if(f!=null&&f.current&&h){const m=Math.abs(c.current-u.scrollTop);if(m>0){const y=window.innerHeight-ms*2,p=parseFloat(h.style.minHeight),v=parseFloat(h.style.height),g=Math.max(p,v);if(g<y){const x=g+m,b=Math.min(y,x),w=x-b;h.style.height=b+"px",h.style.bottom==="0px"&&(u.scrollTop=w>0?w:0,h.style.justifyContent="flex-end")}}}c.current=u.scrollTop})})})]})});iP.displayName=Q0;var oP="SelectGroup",[Xee,Jee]=xd(oP),ete=j.forwardRef((e,t)=>{const{__scopeSelect:n,...s}=e,a=ar();return r.jsx(Xee,{scope:n,id:a,children:r.jsx(we.div,{role:"group","aria-labelledby":a,...s,ref:t})})});ete.displayName=oP;var lP="SelectLabel",cP=j.forwardRef((e,t)=>{const{__scopeSelect:n,...s}=e,a=Jee(lP,n);return r.jsx(we.div,{id:a.id,...s,ref:t})});cP.displayName=lP;var Ep="SelectItem",[tte,dP]=xd(Ep),uP=j.forwardRef((e,t)=>{const{__scopeSelect:n,value:s,disabled:a=!1,textValue:i,...o}=e,l=yo(Ep,n),c=vo(Ep,n),d=l.value===s,[u,h]=j.useState(i??""),[f,m]=j.useState(!1),y=Ge(t,x=>{var b;return(b=c.itemRefCallback)==null?void 0:b.call(c,x,s,a)}),p=ar(),v=j.useRef("touch"),g=()=>{a||(l.onValueChange(s),l.onOpenChange(!1))};if(s==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return r.jsx(tte,{scope:n,value:s,disabled:a,textId:p,isSelected:d,onItemTextChange:j.useCallback(x=>{h(b=>b||((x==null?void 0:x.textContent)??"").trim())},[]),children:r.jsx(Vg.ItemSlot,{scope:n,value:s,disabled:a,textValue:u,children:r.jsx(we.div,{role:"option","aria-labelledby":p,"data-highlighted":f?"":void 0,"aria-selected":d&&f,"data-state":d?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...o,ref:y,onFocus:me(o.onFocus,()=>m(!0)),onBlur:me(o.onBlur,()=>m(!1)),onClick:me(o.onClick,()=>{v.current!=="mouse"&&g()}),onPointerUp:me(o.onPointerUp,()=>{v.current==="mouse"&&g()}),onPointerDown:me(o.onPointerDown,x=>{v.current=x.pointerType}),onPointerMove:me(o.onPointerMove,x=>{var b;v.current=x.pointerType,a?(b=c.onItemLeave)==null||b.call(c):v.current==="mouse"&&x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:me(o.onPointerLeave,x=>{var b;x.currentTarget===document.activeElement&&((b=c.onItemLeave)==null||b.call(c))}),onKeyDown:me(o.onKeyDown,x=>{var w;((w=c.searchRef)==null?void 0:w.current)!==""&&x.key===" "||(Bee.includes(x.key)&&g(),x.key===" "&&x.preventDefault())})})})})});uP.displayName=Ep;var lu="SelectItemText",hP=j.forwardRef((e,t)=>{const{__scopeSelect:n,className:s,style:a,...i}=e,o=yo(lu,n),l=vo(lu,n),c=dP(lu,n),d=Hee(lu,n),[u,h]=j.useState(null),f=Ge(t,g=>h(g),c.onItemTextChange,g=>{var x;return(x=l.itemTextRefCallback)==null?void 0:x.call(l,g,c.value,c.disabled)}),m=u==null?void 0:u.textContent,y=j.useMemo(()=>r.jsx("option",{value:c.value,disabled:c.disabled,children:m},c.value),[c.disabled,c.value,m]),{onNativeOptionAdd:p,onNativeOptionRemove:v}=d;return Qt(()=>(p(y),()=>v(y)),[p,v,y]),r.jsxs(r.Fragment,{children:[r.jsx(we.span,{id:c.textId,...i,ref:f}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren?ho.createPortal(i.children,o.valueNode):null]})});hP.displayName=lu;var mP="SelectItemIndicator",fP=j.forwardRef((e,t)=>{const{__scopeSelect:n,...s}=e;return dP(mP,n).isSelected?r.jsx(we.span,{"aria-hidden":!0,...s,ref:t}):null});fP.displayName=mP;var Z0="SelectScrollUpButton",pP=j.forwardRef((e,t)=>{const n=vo(Z0,e.__scopeSelect),s=_j(Z0,e.__scopeSelect),[a,i]=j.useState(!1),o=Ge(t,s.onScrollButtonChange);return Qt(()=>{if(n.viewport&&n.isPositioned){let l=function(){const d=c.scrollTop>0;i(d)};const c=n.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),a?r.jsx(xP,{...e,ref:o,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=n;l&&c&&(l.scrollTop=l.scrollTop-c.offsetHeight)}}):null});pP.displayName=Z0;var X0="SelectScrollDownButton",gP=j.forwardRef((e,t)=>{const n=vo(X0,e.__scopeSelect),s=_j(X0,e.__scopeSelect),[a,i]=j.useState(!1),o=Ge(t,s.onScrollButtonChange);return Qt(()=>{if(n.viewport&&n.isPositioned){let l=function(){const d=c.scrollHeight-c.clientHeight,u=Math.ceil(c.scrollTop)<d;i(u)};const c=n.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),a?r.jsx(xP,{...e,ref:o,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=n;l&&c&&(l.scrollTop=l.scrollTop+c.offsetHeight)}}):null});gP.displayName=X0;var xP=j.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:s,...a}=e,i=vo("SelectScrollButton",n),o=j.useRef(null),l=Kg(n),c=j.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return j.useEffect(()=>()=>c(),[c]),Qt(()=>{var u;const d=l().find(h=>h.ref.current===document.activeElement);(u=d==null?void 0:d.ref.current)==null||u.scrollIntoView({block:"nearest"})},[l]),r.jsx(we.div,{"aria-hidden":!0,...a,ref:t,style:{flexShrink:0,...a.style},onPointerDown:me(a.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(s,50))}),onPointerMove:me(a.onPointerMove,()=>{var d;(d=i.onItemLeave)==null||d.call(i),o.current===null&&(o.current=window.setInterval(s,50))}),onPointerLeave:me(a.onPointerLeave,()=>{c()})})}),rte="SelectSeparator",yP=j.forwardRef((e,t)=>{const{__scopeSelect:n,...s}=e;return r.jsx(we.div,{"aria-hidden":!0,...s,ref:t})});yP.displayName=rte;var J0="SelectArrow",nte=j.forwardRef((e,t)=>{const{__scopeSelect:n,...s}=e,a=Qg(n),i=yo(J0,n),o=vo(J0,n);return i.open&&o.position==="popper"?r.jsx(yg,{...a,...s,ref:t}):null});nte.displayName=J0;var ste="SelectBubbleInput",vP=j.forwardRef(({__scopeSelect:e,value:t,...n},s)=>{const a=j.useRef(null),i=Ge(s,a),o=Yg(t);return j.useEffect(()=>{const l=a.current;if(!l)return;const c=window.HTMLSelectElement.prototype,u=Object.getOwnPropertyDescriptor(c,"value").set;if(o!==t&&u){const h=new Event("change",{bubbles:!0});u.call(l,t),l.dispatchEvent(h)}},[o,t]),r.jsx(we.select,{...n,style:{...M5,...n.style},ref:i,defaultValue:t})});vP.displayName=ste;function bP(e){return e===""||e===void 0}function wP(e){const t=Kt(e),n=j.useRef(""),s=j.useRef(0),a=j.useCallback(o=>{const l=n.current+o;t(l),function c(d){n.current=d,window.clearTimeout(s.current),d!==""&&(s.current=window.setTimeout(()=>c(""),1e3))}(l)},[t]),i=j.useCallback(()=>{n.current="",window.clearTimeout(s.current)},[]);return j.useEffect(()=>()=>window.clearTimeout(s.current),[]),[n,a,i]}function jP(e,t,n){const a=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let o=ate(e,Math.max(i,0));a.length===1&&(o=o.filter(d=>d!==n));const c=o.find(d=>d.textValue.toLowerCase().startsWith(a.toLowerCase()));return c!==n?c:void 0}function ate(e,t){return e.map((n,s)=>e[(t+s)%e.length])}var ite=KO,NP=ZO,ote=JO,lte=eP,cte=tP,kP=rP,dte=iP,_P=cP,SP=uP,ute=hP,hte=fP,CP=pP,EP=gP,TP=yP;const yc=ite,vc=ote,Zo=j.forwardRef(({className:e,children:t,...n},s)=>r.jsxs(NP,{ref:s,className:le("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm r
678ing-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,r.jsx(lte,{asChild:!0,children:r.jsx(Ka,{className:"h-4 w-4 opacity-50"})})]}));Zo.displayName=NP.displayName;const $P=j.forwardRef(({className:e,...t},n)=>r.jsx(CP,{ref:n,className:le("flex cursor-default items-center justify-center py-1",e),...t,children:r.jsx(iE,{className:"h-4 w-4"})}));$P.displayName=CP.displayName;const OP=j.forwardRef(({className:e,...t},n)=>r.jsx(EP,{ref:n,className:le("flex cursor-default items-center justify-center py-1",e),...t,children:r.jsx(Ka,{className:"h-4 w-4"})}));OP.displayName=EP.displayName;const Xo=j.forwardRef(({className:e,children:t,position:n="popper",...s},a)=>r.jsx(cte,{children:r.jsxs(kP,{ref:a,className:le("relative z-[100] max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...s,children:[r.jsx($P,{}),r.jsx(dte,{className:le("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),r.jsx(OP,{})]})}));Xo.displayName=kP.displayName;const mte=j.forwardRef(({className:e,...t},n)=>r.jsx(_P,{ref:n,className:le("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));mte.displayName=_P.displayName;const Mr=j.forwardRef(({className:e,children:t,...n},s)=>r.jsxs(SP,{ref:s,className:le("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 hover:bg-muted focus:bg-muted focus:text-foreground",e),...n,children:[r.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:r.jsx(hte,{children:r.jsx(_e,{className:"h-4 w-4"})})}),r.jsx(ute,{children:t})]}));Mr.displayName=SP.displayName;const fte=j.forwardRef(({className:e,...t},n)=>r.jsx(TP,{ref:n,className:le("-mx-1 my-1 h-px bg-muted",e),...t}));fte.displayName=TP.displayName;const pte={US:"ðºð¸",CA:"ð¨ð¦",GB:"ð¬ð§",AU:"ð¦ðº",DE:"ð©ðª",FR:"ð«ð·",IT:"ð®ð¹",ES:"ðªð¸",JP:"ð¯ðµ",KR:"ð°ð·",CN:"ð¨ð³",IN:"ð®ð³",BR:"ð§ð·",MX:"ð²ð½",AR:"ð¦ð·",RU:"ð·ðº",TR:"ð¹ð·",SA:"ð¸ð¦",AE:"ð¦ðª",ZA:"ð¿ð¦",NG:"ð³ð¬",EG:"ðªð¬",IL:"ð®ð±",SG:"ð¸ð¬",HK:"ðð°",TH:"ð¹ð",MY:"ð²ð¾",PH:"ðµð",ID:"ð®ð©",VN:"ð»ð³",PK:"ðµð°",BD:"ð§ð©",LK:"ð±ð°",NP:"ð³ðµ",MM:"ð²ð²",KH:"ð°ð"},XS=e=>pte[e]||"ð",JS=e=>{try{return Fee(e)||"1"}catch{return"1"}},PP=j.forwardRef(({value:e,onChange:t,options:n,disabled:s},a)=>r.jsxs(yc,{value:e||"US",onValueChange:t,disabled:s,children:[r.jsx(Zo,{ref:a,className:"w-[100px] border-2 border-r-0 border-muted rounded-r-none bg-card hover:border-muted-foreground focus:border-primary focus:ring-0 focus:ring-offset-0 transition-colors duration-200",children:r.jsx(vc,{children:e?r.jsxs("div",{className:"flex items-center gap-1",children:[r.jsx("span",{className:"text-sm",children:XS(e)}),r.jsxs("span",{className:"text-xs text-foreground",children:["+",JS(e)]})]}):r.jsxs("div",{className:"flex items-center gap-1",children:[r.jsx("span",{className:"text-sm",children:"ðºð¸"}),r.jsx("span",{className:"text-xs text-foreground",children:"+1"})]})})}),r.jsx(Xo,{className:"max-h-60 bg-background border-2 border-muted shadow-lg z-[9999]",children:n.map(({value:i,label:o})=>r.jsx(Mr,{value:i,className:"hover:bg-muted focus:bg-muted",children:r.jsxs("div",{className:"flex items-center gap-2 w-full",children:[r.jsx("span",{className:"text-sm",children:XS(i)}),r.jsx("span",{className:"text-foreground text-sm",children:o}),r.jsxs("span",{className:"text-xs text-muted-foreground ml-auto",children:["+",JS(i)]})]})},i))})]}));PP.displayName="CountrySelect";
678const Sj=j.forwardRef(({value:e,onChange:t,placeholder:n="Enter phone number",disabled:s,className:a})=>r.jsx(Dee,{international:!0,countryCallingCodeEditable:!1,defaultCountry:"US",value:e,onChange:t,disabled:s,className:le("phone-input-container",a),numberInputProps:{className:"flex h-10 w-full rounded-md rounded-l-none border-2 border-l-0 border-muted bg-card px-3 py-2 text-base shadow-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus:border-primary focus:bg-background hover:border-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm transition-colors duration-200",placeholder:n},countrySelectComponent:PP}));Sj.displayName="CustomPhoneInput";const bn=j.forwardRef(({className:e,...t},n)=>r.jsx("textarea",{className:le("flex min-h-[80px] w-full rounded-md border-2 border-muted bg-card px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:border-primary focus:bg-background hover:border-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 transition-colors duration-200",e),ref:n,...t}));bn.displayName="Textarea";var gte="Label",AP=j.forwardRef((e,t)=>r.jsx(we.label,{...e,ref:t,onMouseDown:n=>{var a;n.target.closest("button, input, select, textarea")||((a=e.onMouseDown)==null||a.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));AP.displayName=gte;var IP=AP;const xte=xl("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),oe=j.forwardRef(({className:e,...t},n)=>r.jsx(IP,{ref:n,className:le(xte(),e),...t}));oe.displayName=IP.displayName;const RP=bV,MP=j.createContext({}),Vs=({...e})=>r.jsx(MP.Provider,{value:{name:e.name},children:r.jsx(kV,{...e})}),Zg=()=>{const e=j.useContext(MP),t=j.useContext(DP),{getFieldState:n,formState:s}=Bg(),a=n(e.name,s);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:i}=t;return{id:i,name:e.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...a}},DP=j.createContext({}),fs=j.forwardRef(({className:e,...t},n)=>{const s=j.useId();return r.jsx(DP.Provider,{value:{id:s},children:r.jsx("div",{ref:n,className:le("space-y-2",e),...t})})});fs.displayName="FormItem";const ps=j.forwardRef(({className:e,...t},n)=>{const{error:s,formItemId:a}=Zg();return r.jsx(oe,{ref:n,className:le(s&&"text-destructive",e),htmlFor:a,...t})});ps.displayName="FormLabel";const gs=j.forwardRef(({...e},t)=>{const{error:n,formItemId:s,formDescriptionId:a,formMessageId:i}=Zg();return r.jsx(pl,{ref:t,id:s,"aria-describedby":n?`${a} ${i}`:`${a}`,"aria-invalid":!!n,...e})});gs.displayName="FormControl";const yte=j.forwardRef(({className:e,...t},n)=>{const{formDescriptionId:s}=Zg();return r.jsx("p",{ref:n,id:s,className:le("text-sm text-muted-foreground",e),...t})});yte.displayName="FormDescription";const xs=j.forwardRef(({className:e,children:t,...n},s)=>{const{error:a,formMessageId:i}=Zg(),o=a?String(a==null?void 0:a.message):t;return o?r.jsx("p",{ref:s,id:i,"data-error":"true",className:le("text-sm font-medium text-destructive mt-1.5",e),...n,children:o}):null});xs.displayName="FormMessage";const vte="/assets/contact-welcome-CxD3wynh.jpg",FP=[{value:"under_40k_seeker",label:"Under $40K - Seeker"},{value:"40k_100k_starter",label:"$40K - $100K - Starter"},{value:"100k_300k_promoter",label:"$100K - $300K - Promoter"},{value:"300k_1m_builder",label:"$300K - $1M - Builder"},{value:"1m_3m_operator",label:"$1M - $3M - Operator"},{value:"3m_10m_leader",label:"$3M - $10M - Leader"},{value:"10m_30m_owner",label:"$10M - $30M - Owner"},{value:"30m_100m_investor",label:"$30M - $100M - Investor"},{value:"over_100m_entrepreneur",label:"Over $100M - Entrepreneur"}],bte=yj({firstName:gn().min(2,"First name must be at least 2 characters"),lastName:gn().min(2,"Last name must be at least 2 characters"),email:gn().email("Please enter a valid email address"),phone:gn().min(1,"Phone number is required").refine(e=>VO(e),"Please enter a valid phone number"),company:gn().min(2,"Company name must be at least 2 characters"),website:gn().url("Please enter a valid website URL").optional().or(mK("")),revenue:gn().min(1,"Please select your revenue range"),subject:gn().min(5,"Subject must be at least 5 characters"),message:gn().min(20,"Message must be at least 20 characters")}),wte=()=>{const[e,t]=j.useState(!1),{getImageByKey:n}=Nl(),s=n("contact-welcome")||vte,{toast:a}=Lt(),i=Y6({resolver:K6(bte),defaultValues:{firstName:"",lastName:"",email:"",ph
678one:"",company:"",website:"",revenue:"",subject:"",message:""}}),o=async l=>{try{console.log("Form submitted:",l);const{data:c,error:d}=await ve.functions.invoke("send-contact-email-v2",{body:l});if(d)throw d;a({title:"Message sent successfully!",description:"We've sent you a confirmation email and will get back to you within 24 hours."}),t(!0),i.reset()}catch(c){console.error("Error sending email:",c),a({title:"Error",description:"Failed to send message. Please try again.",variant:"destructive"})}};return r.jsxs("div",{className:"min-h-screen",children:[r.jsx(_t,{}),r.jsxs("main",{className:"pt-24",children:[r.jsx("section",{className:"py-20 bg-gradient-subtle",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsxs("div",{className:"max-w-4xl mx-auto space-y-8",children:[r.jsxs("div",{className:"text-center space-y-6",children:[r.jsx("h1",{className:"text-4xl md:text-5xl font-bold text-foreground",children:"Get in Touch"}),r.jsx("p",{className:"text-xl text-muted-foreground max-w-2xl mx-auto",children:"Ready to escape operational chaos and scale your expert-led business? Let's start the conversation."})]}),r.jsx("div",{className:"rounded-2xl overflow-hidden shadow-elegant max-w-2xl mx-auto",children:r.jsx("img",{src:s,alt:"Welcome to Simple Operations - friendly team ready to help",className:"w-full h-64 md:h-80 object-cover",loading:"lazy"})})]})})}),r.jsx("section",{className:"py-16 bg-background",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsx("div",{className:"max-w-6xl mx-auto",children:r.jsxs("div",{className:"grid lg:grid-cols-2 gap-6 lg:gap-12 lg:items-stretch",children:[r.jsxs("div",{className:"space-y-8 h-full flex flex-col justify-between",children:[r.jsxs("div",{className:"space-y-8",children:[r.jsx("h2",{className:"text-3xl font-bold text-foreground",children:"Ready to Transform Your Business?"}),r.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"Whether you're drowning in operational chaos or ready to scale beyond $10M, we're here to help. Share your challenges with us and let's explore how Simple Operations can give you back your freedom."}),r.jsxs("div",{className:"space-y-6",children:[r.jsx("h3",{className:"text-xl font-semibold text-foreground",children:"What to Expect:"}),r.jsxs("ul",{className:"space-y-4",children:[r.jsxs("li",{className:"flex items-start space-x-3",children:[r.jsx($e,{className:"w-5 h-5 text-primary mt-0.5 flex-shrink-0"}),r.jsx("span",{className:"text-muted-foreground",children:"Response within 24 business hours"})]}),r.jsxs("li",{className:"flex items-start space-x-3",children:[r.jsx($e,{className:"w-5 h-5 text-primary mt-0.5 flex-shrink-0"}),r.jsx("span",{className:"text-muted-foreground",children:"No pressure, relationship-first approach"})]}),r.jsxs("li",{className:"flex items-start space-x-3",children:[r.jsx($e,{className:"w-5 h-5 text-primary mt-0.5 flex-shrink-0"}),r.jsx("span",{className:"text-muted-foreground",children:"Personalized resources based on your stage of business"})]})]})]})]}),r.jsx("div",{className:"space-y-8",children:r.jsxs("div",{className:"space-y-6",children:[r.jsx(G,{className:"p-4 sm:p-6",children:r.jsxs("div",{className:"flex items-center space-x-4 min-h-[60px]",children:[r.jsx("div",{className:"w-12 h-12 bg-primary/10 rounded-full flex items-center justify-center flex-shrink-0",children:r.jsx(xr,{className:"w-6 h-6 text-primary"})}),r.jsxs("div",{className:"flex-1",children:[r.jsx("h4",{className:"font-semibold text-foreground mb-2",children:"Email Us"}),r.jsx("p",{className:"text-muted-foreground",children:"[email protected]"})]})]})}),r.jsx(G,{className:"p-4 sm:p-6",children:r.jsxs("div",{className:"flex items-center space-x-4 min-h-[60px]",children:[r.jsx("div",{className:"w-12 h-12 bg-primary/10 rounded-full flex items-center justify-center flex-shrink-0",children:r.jsx(qu,{className:"w-6 h-6 text-primary"})}),r.jsxs("div",{className:"flex-1",children:[r.jsx("h4",{className:"font-semibold text-foreground mb-2",children:"Call Us"}),r.jsx("a",{href:"tel:+18883035057",className:"text-muted-foreground hover:text-primary transition-colors",children:"888-303-5057"})]})]})}),r.jsx(G,{className:"p-4 sm:p-6",children:r.jsxs("div",{className:"flex items-center space-x-4 min-h-[60
678px]",children:[r.jsx("div",{className:"w-12 h-12 bg-primary/10 rounded-full flex items-center justify-center flex-shrink-0",children:r.jsx(M7,{className:"w-6 h-6 text-primary"})}),r.jsxs("div",{className:"flex-1",children:[r.jsx("h4",{className:"font-semibold text-foreground mb-2",children:"Our Address"}),r.jsxs("div",{className:"text-muted-foreground",children:[r.jsx("div",{children:"Simple Operations"}),r.jsx("div",{children:"P.O. Box 115"}),r.jsx("div",{children:"Chardon, Ohio 44024"})]})]})]})})]})})]}),r.jsxs(G,{children:[r.jsx(Ie,{children:r.jsx(Me,{className:"text-2xl",children:"Send Us a Message"})}),r.jsx(Ne,{children:e?r.jsxs("div",{className:"text-center py-8",children:[r.jsx($e,{className:"w-16 h-16 text-primary mx-auto mb-4"}),r.jsx("p",{className:"text-muted-foreground",children:"We've received your message and will get back to you within 24 hours."}),r.jsx(te,{variant:"outline",className:"mt-4",onClick:()=>t(!1),children:"Send Another Message"})]}):r.jsx(RP,{...i,children:r.jsxs("form",{onSubmit:i.handleSubmit(o),className:"space-y-6",children:[r.jsxs("div",{className:"grid sm:grid-cols-2 gap-3 sm:gap-4",children:[r.jsx(Vs,{control:i.control,name:"firstName",render:({field:l})=>r.jsxs(fs,{children:[r.jsx(ps,{children:"First Name"}),r.jsx(gs,{children:r.jsx(je,{placeholder:"Your first name",className:"border-2 border-muted bg-card focus:border-primary focus:bg-background hover:border-muted-foreground transition-colors shadow-sm",...l})}),r.jsx(xs,{})]})}),r.jsx(Vs,{control:i.control,name:"lastName",render:({field:l})=>r.jsxs(fs,{children:[r.jsx(ps,{children:"Last Name"}),r.jsx(gs,{children:r.jsx(je,{placeholder:"Your last name",className:"border-2 border-muted bg-card focus:border-primary focus:bg-background hover:border-muted-foreground transition-colors shadow-sm",...l})}),r.jsx(xs,{})]})})]}),r.jsxs("div",{className:"grid sm:grid-cols-2 gap-3 sm:gap-4",children:[r.jsx(Vs,{control:i.control,name:"email",render:({field:l})=>r.jsxs(fs,{children:[r.jsx(ps,{children:"Email"}),r.jsx(gs,{children:r.jsx(je,{type:"email",placeholder:"[email protected]",className:"border-2 border-muted bg-card focus:border-primary focus:bg-background hover:border-muted-foreground transition-colors shadow-sm",...l})}),r.jsx(xs,{})]})}),r.jsx(Vs,{control:i.control,name:"phone",render:({field:l})=>r.jsxs(fs,{children:[r.jsx(ps,{children:"Phone"}),r.jsx(gs,{children:r.jsx(Sj,{value:l.value,onChange:l.onChange,placeholder:"Enter your phone number",className:"phone-input-enhanced"})}),r.jsx(xs,{})]})})]}),r.jsxs("div",{className:"grid sm:grid-cols-2 gap-3 sm:gap-4",children:[r.jsx(Vs,{control:i.control,name:"company",render:({field:l})=>r.jsxs(fs,{children:[r.jsx(ps,{children:"Company"}),r.jsx(gs,{children:r.jsx(je,{placeholder:"Your company name",className:"border-2 border-muted bg-card focus:border-primary focus:bg-background hover:border-muted-foreground transition-colors shadow-sm",...l})}),r.jsx(xs,{})]})}),r.jsx(Vs,{control:i.control,name:"website",render:({field:l})=>r.jsxs(fs,{children:[r.jsx(ps,{children:"Website (Optional)"}),r.jsx(gs,{children:r.jsx(je,{placeholder:"https://yourwebsite.com",className:"border-2 border-muted bg-card focus:border-primary focus:bg-background hover:border-muted-foreground transition-colors shadow-sm",...l})}),r.jsx(xs,{})]})})]}),r.jsx("div",{className:"grid md:grid-cols-1 gap-4",children:r.jsx(Vs,{control:i.control,name:"revenue",render:({field:l})=>r.jsxs(fs,{children:[r.jsx(ps,{children:"Annual Revenue"}),r.jsxs(yc,{onValueChange:l.onChange,defaultValue:l.value,children:[r.jsx(gs,{children:r.jsx(Zo,{className:"border-2 border-muted bg-card focus:border-primary focus:bg-background hover:border-muted-foreground transition-colors shadow-sm",children:r.jsx(vc,{placeholder:"Select revenue range"})})}),r.jsx(Xo,{children:FP.map(c=>r.jsx(Mr,{value:c.value,children:c.label},c.value))})]}),r.jsx(xs,{})]})})}),r.jsx(Vs,{control:i.control,name:"subject",render:({field:l})=>r.jsxs(fs,{children:[r.jsx(ps,{children:"Subject"}),r.jsx(gs,{children:r.jsx(je,{placeholder:"How can we help you?",className:"border-2 border-muted bg-card focus:border-primary focus:bg-background hover:border-muted-foreground transition-colors shadow-sm",...l})}),r.jsx(xs,{})]})}),r.jsx(Vs,{control:i.control,name:"message",render:({field:l})=>r.jsxs(fs,{children:[r.jsx(ps,{children:"Message"}),r.jsx(gs,{children:r.jsx(bn,{placeholder:"Tell us about your current challenges and what you're hoping to achieve...",className:"min-h-32 border-2 border-muted bg-card focus:border-primary focus:bg-background hover:border-muted-foreground transition-colors shadow-sm",...l})}),r.jsx(xs,{})]})}),r.jsx(te,{type:"submit",variant:"hero",size:"lg",className:"w-full min-h-[44px]",disabled:i.formState.isSubmitting,children:i.formState.isSubmitting?"Sending...":r.jsxs(r.Fragment,{children:[r.jsx(U7,{className:"w-4 h-4 mr-2"}),"Send Message"]})})]})})})]})]})})})})]}),r.jsx(ht,{})]})},jte="https://vault.bmeweb.com",Nte="simple-operations-website-ahdfdw",kte="https://simpleoperations.com/auth/vault-callback",na={state:"vault-sso-state",verifier:"vault-sso-verifier",next:"vault-sso-next",tried:"vault-sso-tried"},LP=e=>btoa(String.fromCharCode(...e)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,""),e3=()=>{const e=new Uint8Array(32);return crypto.getRandomValues(e),LP(e)};async function t3(e,t){if(e&&sessionStorage.getItem(na.tried))return;sessionStorage.setItem(na.tried,"1");const n=e3(),s=e3(),a=LP(new Uint8Array(await crypto.subtle.digest("SHA-256",
678new TextEncoder().encode(s))));sessionStorage.setItem(na.state,n),sessionStorage.setItem(na.verifier,s),sessionStorage.setItem(na.next,t||(window.location.pathname==="/auth"?"/admin":window.location.pathname+window.location.search));const i=new URL("/sso/authorize",jte);i.searchParams.set("client_id",Nte),i.searchParams.set("redirect_uri",kte),i.searchParams.set("state",n),i.searchParams.set("code_challenge",a),i.searchParams.set("code_challenge_method","S256"),e&&i.searchParams.set("prompt","none"),window.location.assign(i.toString())}async function _te(){const e=new URLSearchParams(window.location.search),t=sessionStorage.getItem(na.state),n=sessionStorage.getItem(na.verifier),s=sessionStorage.getItem(na.next)||"/admin";if(sessionStorage.removeItem(na.state),sessionStorage.removeItem(na.verifier),!t||e.get("state")!==t)return{ok:!1,error:"state_mismatch",message:"Sign-in expired. Please try again."};if(e.get("error"))return{ok:!1,error:e.get("error"),message:e.get("error")==="access_denied"?"Your BME Vault access to this app is switched off.":void 0};const a=e.get("code");if(!a||!n)return{ok:!1,error:"missing_code"};const{data:i,error:o}=await ve.functions.invoke("vault-sso",{body:{code:a,code_verifier:n}});if(o||!(i!=null&&i.email_otp)){const c=(i==null?void 0:i.error)==="no_account"||/403/.test(String(o==null?void 0:o.message));return{ok:!1,error:c?"no_account":"failed",message:c?"You don't have an account in this app yet. Ask an admin to invite you.":"BME Vault sign-in failed."}}const{error:l}=await ve.auth.verifyOtp({type:"email",email:i.email,token:i.email_otp});return l?{ok:!1,error:"verify_failed",message:l.message}:{ok:!0,next:s}}const Ste=yj({email:gn().email("Please enter a valid email address")}),Cte=()=>{var m,y,p;const[e,t]=j.useState(!1),{signInWithMagicLink:n,user:s,loading:a}=sn(),{toast:i}=Lt(),o=po(),l=En(),c=(m=l.state)==null?void 0:m.vaultMessage,d=j.useRef(!1),u=((p=(y=l.state)==null?void 0:y.from)==null?void 0:p.pathname)||"/admin";j.useEffect(()=>{s&&o(u,{replace:!0})},[s,o,u]),j.useEffect(()=>{const v=!!l.state&&"vaultMessage"in l.state;a||s||d.current||v||(d.current=!0,t3(!0,u))},[a,s,u,l.state]);const h=Y6({resolver:K6(Ste),defaultValues:{email:""}}),f=async v=>{var g,x;try{const w=(await n(v.email)).error;if(!w)t(!0),i({title:"Magic link sent!",description:"Check your email for the login link."});else{const N=(g=w.message)!=null&&g.includes("User not found")||(x=w.message)!=null&&x.includes("Signups not allowed")?"This email is not authorized. Only pre-approved administrators can sign in.":w.message||"Something went wrong. Please try again.";i({title:"Access Denied",description:N,variant:"destructive"})}}catch{i({title:"Error",description:"An unexpected error occurred. Please try again.",variant:"destructive"})}};return r.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-subtle px-6",children:r.jsxs(G,{className:"w-full max-w-md",children:[r.jsxs(Ie,{children:[r.jsx(Me,{className:"text-2xl text-center",children:e?"Check Your Email":"Authorized Admin Access Only"}),r.jsx(dt,{className:"text-center",children:e?"We've sent you a magic link to sign in":"Only pre-authorized administrators can access this system. Enter your registered admin email to receive a sign-in link."})]}),r.jsxs(Ne,{children:[e?r.jsxs("div",{className:"text-center py-8 space-y-4",children:[r.jsx(xr,{className:"w-16 h-16 text-primary mx-auto"}),r.jsx("p",{className:"text-muted-foreground",children:"We've sent a magic link to your email. Click the link to sign in."}),r.jsx(te,{variant:"outline",onClick:()=>{t(!1),h.reset()},children:"Send Another Link"})]}):r.jsx(RP,{...h,children:r.jsxs("form",{onSubmit:h.handleSubmit(f),className:"space-y-4",children:[r.jsx(Vs,{control:h.control,name:"email",render:({field:v})=>r.jsxs(fs,{children:[r.jsx(ps,{children:"Email"}),r.jsx(gs,{children:r.jsx(je,{type:"email",placeholder:"Enter your email",...v})}),r.jsx(xs,{})]})}),r.jsx(te,{type:"submit",className:"w-full",disabled:h.formState.isSubmitting,children:h.formState.isSubmitting?"Sending...":r.jsxs(r.Fragment,{children:[r.jsx(xr,{className:"w-4 h-4 mr-2"}),"Send Magic Link"]})})]})}),!e&&r.jsxs("div",{className:"mt-6 space-y-3",children:[r.jsxs("div",{className:"flex items-center gap-3 text-xs text-muted-foreground",children:[r.jsx("div",{className:"h-px flex-1 bg-border"}),"or",r.jsx("div",{className:"h-px flex-1 bg-border"})]}),r.jsxs(te,{type:"button",variant:"outline",className:"w-full",onClick:()=>t3(!1,u),children:[r.jsx(P7,{className:"w-4 h-4 mr-2"}),"Sign in with BME Vault"]}),c&&r.jsx("p",{className:"text-sm text-muted-foreground text-center",children:c})]})]})]})})},Ete=()=>{const e=po(),t=En(),n=j.useRef(null);return j.useEffect(()=>{if(t.pathname!=="/auth/vault-callback")return;const s=t.search;n.current!==s&&(n.current=s,_te().then(a=>{a.ok===!0?e(a.next,{replace:!0}):e("/auth",{replace:!0,state:{vaultMessage:a.message}})}))},[t.pathname,t.search,e]),r.jsxs("div",{className:"min-h-screen flex flex-col items-center justify-center gap-4",children:[r.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-primary"}),r.jsx("p",{className:"text-muted-foreground",children:"Signing you inâ¦"})]})},Zy=768;function Tte(){const[e,t]=j.useState(void 0);return j.useEffect(()=>{const n=window.matchMedia(`(max-width: ${Zy-1}px)`),s=()=>{t(window.innerWidth<Zy)};return n.addEventListener("change",s),t(window.innerWidth<Zy),()=>n.removeEventListener("change",s)},[]),!!e}var $te="Separator",r3="horizontal",Ote=["horizontal","vertical"],BP=j.forwardRef((e,t)=>
vendor: 4,218 bytes, line 678
678{const{decorative:n,orientation:s=r3,...a}=e,i=Pte(s)?s:r3,l=n?{role:"none"}:{"aria-orientation":i==="vertical"?i:void 0,role:"separator"};return r.jsx(we.div,{"data-orientation":i,...l,...a,ref:t})});BP.displayName=$te;function Pte(e){return Ote.includes(e)}var WP=BP;const Cj=j.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...s},a)=>r.jsx(WP,{ref:a,decorative:n,orientation:t,className:le("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...s}));Cj.displayName=WP.displayName;var Xg="Dialog",[UP,Zge]=ir(Xg),[Ate,Ws]=UP(Xg),qP=e=>{const{__scopeDialog:t,children:n,open:s,defaultOpen:a,onOpenChange:i,modal:o=!0}=e,l=j.useRef(null),c=j.useRef(null),[d,u]=Xr({prop:s,defaultProp:a??!1,onChange:i,caller:Xg});return r.jsx(Ate,{scope:t,triggerRef:l,contentRef:c,contentId:ar(),titleId:ar(),descriptionId:ar(),open:d,onOpenChange:u,onOpenToggle:j.useCallback(()=>u(h=>!h),[u]),modal:o,children:n})};qP.displayName=Xg;var HP="DialogTrigger",zP=j.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,a=Ws(HP,n),i=Ge(t,a.triggerRef);return r.jsx(we.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":$j(a.open),...s,ref:i,onClick:me(e.onClick,a.onOpenToggle)})});zP.displayName=HP;var Ej="DialogPortal",[Ite,GP]=UP(Ej,{forceMount:void 0}),YP=e=>{const{__scopeDialog:t,forceMount:n,children:s,container:a}=e,i=Ws(Ej,t);return r.jsx(Ite,{scope:t,forceMount:n,children:j.Children.map(s,o=>r.jsx(or,{present:n||i.open,children:r.jsx(sd,{asChild:!0,container:a,children:o})}))})};YP.displayName=Ej;var Tp="DialogOverlay",VP=j.forwardRef((e,t)=>{const n=GP(Tp,e.__scopeDialog),{forceMount:s=n.forceMount,...a}=e,i=Ws(Tp,e.__scopeDialog);return i.modal?r.jsx(or,{present:s||i.open,children:r.jsx(Mte,{...a,ref:t})}):null});VP.displayName=Tp;var Rte=Xi("DialogOverlay.RemoveScroll"),Mte=j.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,a=Ws(Tp,n);return r.jsx(Lh,{as:Rte,allowPinchZoom:!0,shards:[a.contentRef],children:r.jsx(we.div,{"data-state":$j(a.open),...s,ref:t,style:{pointerEvents:"auto",...s.style}})})}),dl="DialogContent",KP=j.forwardRef((e,t)=>{const n=GP(dl,e.__scopeDialog),{forceMount:s=n.forceMount,...a}=e,i=Ws(dl,e.__scopeDialog);return r.jsx(or,{present:s||i.open,children:i.modal?r.jsx(Dte,{...a,ref:t}):r.jsx(Fte,{...a,ref:t})})});KP.displayName=dl;var Dte=j.forwardRef((e,t)=>{const n=Ws(dl,e.__scopeDialog),s=j.useRef(null),a=Ge(t,n.contentRef,s);return j.useEffect(()=>{const i=s.current;if(i)return Ig(i)},[]),r.jsx(QP,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:me(e.onCloseAutoFocus,i=>{var o;i.preventDefault(),(o=n.triggerRef.current)==null||o.focus()}),onPointerDownOutside:me(e.onPointerDownOutside,i=>{const o=i.detail.originalEvent,l=o.button===0&&o.ctrlKey===!0;(o.button===2||l)&&i.preventDefault()}),onFocusOutside:me(e.onFocusOutside,i=>i.preventDefault())})}),Fte=j.forwardRef((e,t)=>{const n=Ws(dl,e.__scopeDialog),s=j.useRef(!1),a=j.useRef(!1);return r.jsx(QP,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,l;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(s.current||(l=n.triggerRef.current)==null||l.focus(),i.preventDefault()),s.current=!1,a.current=!1},onInteractOutside:i=>{var c,d;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(s.current=!0,i.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const o=i.target;((d=n.triggerRef.current)==null?void 0:d.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&a.current&&i.preventDefault()}})}),QP=j.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:s,onOpenAutoFocus:a,onCloseAutoFocus:i,...o}=e,l=Ws(dl,n),c=j.useRef(null),d=Ge(t,c);return Ag(),r.jsxs(r.Fragment,{children:[r.jsx(Dh,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:a,onUnmountAutoFocus:i,children:r.jsx(gl,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":$j(l.open),...o,ref:d,onDismiss:()=>l.onOpenChange(!1)})}),r.jsxs(r.Fragment,{children:[r.jsx(Lte,{titleId:l.titleId}),r.jsx(Wte,{contentRef:c,descriptionId:l.descriptionId})]})]})}),Tj="DialogTitle",ZP=j.forwardRef((e,t)=>
678{const{__scopeDialog:n,...s}=e,a=Ws(Tj,n);return r.jsx(we.h2,{id:a.titleId,...s,ref:t})});ZP.displayName=Tj;var XP="DialogDescription",JP=j.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,a=Ws(XP,n);return r.jsx(we.p,{id:a.descriptionId,...s,ref:t})});JP.displayName=XP;var eA="DialogClose",tA=j.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,a=Ws(eA,n);return r.jsx(we.button,{type:"button",...s,ref:t,onClick:me(e.onClick,()=>a.onOpenChange(!1))})});tA.displayName=eA;function $j(e){return e?"open":"closed"}var rA="DialogTitleWarning",[Xge,nA]=SM(rA,{contentName:dl,titleName:Tj,docsSlug:"dialog"}),Lte=({titleId:e})=>{const t=nA(rA),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 679 680If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 681 682For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return j.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Bte="DialogDescriptionWarning",Wte=({contentRef:e,descriptionId:t})=>{const s=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${nA(Bte).contentName}}.`;return j.useEffect(()=>{var i;const a=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&a&&(document.getElementById(t)||console.warn(s))},[s,e,t]),null},Oj=qP,Ute=zP,Pj=YP,qh=VP,Hh=KP,Jg=ZP,ex=JP,sA=tA;const qte=Oj,Hte=Pj,aA=j.forwardRef(({className:e,...t},n)=>r.jsx(qh,{className:le("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));aA.displayName=qh.displayName;const zte=xl("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),iA=j.forwardRef(({side:e="right",className:t,children:n,...s},a)=>r.jsxs(Hte,{children:[r.jsx(aA,{}),r.jsxs(Hh,{ref:a,className:le(zte({side:e}),t),...s,children:[n,r.jsxs(sA,{className:"absolute right-4 top-4 roun
682ded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-secondary hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[r.jsx(Ft,{className:"h-4 w-4"}),r.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));iA.displayName=Hh.displayName;const Gte=j.forwardRef(({className:e,...t},n)=>r.jsx(Jg,{ref:n,className:le("text-lg font-semibold text-foreground",e),...t}));Gte.displayName=Jg.displayName;const Yte=j.forwardRef(({className:e,...t},n)=>r.jsx(ex,{ref:n,className:le("text-sm text-muted-foreground",e),...t}));Yte.displayName=ex.displayName;function n3({className:e,...t}){return r.jsx("div",{className:le("animate-pulse rounded-md bg-muted",e),...t})}const Vte="sidebar:state",Kte=60*60*24*7,Qte="16rem",Zte="18rem",Xte="3rem",Jte="b",oA=j.createContext(null);function zh(){const e=j.useContext(oA);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const Nt=j.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:n,className:s,style:a,children:i,...o},l)=>{const c=Tte(),[d,u]=j.useState(!1),[h,f]=j.useState(e),m=t??h,y=j.useCallback(x=>{const b=typeof x=="function"?x(m):x;n?n(b):f(b),document.cookie=`${Vte}=${b}; path=/; max-age=${Kte}`},[n,m]),p=j.useCallback(()=>c?u(x=>!x):y(x=>!x),[c,y,u]);j.useEffect(()=>{const x=b=>{b.key===Jte&&(b.metaKey||b.ctrlKey)&&(b.preventDefault(),p())};return window.addEventListener("keydown",x),()=>window.removeEventListener("keydown",x)},[p]);const v=m?"expanded":"collapsed",g=j.useMemo(()=>({state:v,open:m,setOpen:y,isMobile:c,openMobile:d,setOpenMobile:u,toggleSidebar:p}),[v,m,y,c,d,u,p]);return r.jsx(oA.Provider,{value:g,children:r.jsx(tT,{delayDuration:0,children:r.jsx("div",{style:{"--sidebar-width":Qte,"--sidebar-width-icon":Xte,...a},className:le("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",s),ref:l,...o,children:i})})})});Nt.displayName="SidebarProvider";const lA=j.forwardRef(({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:s,children:a,...i},o)=>{const{isMobile:l,state:c,openMobile:d,setOpenMobile:u}=zh();return n==="none"?r.jsx("div",{className:le("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",s),ref:o,...i,children:a}):l?r.jsx(qte,{open:d,onOpenChange:u,...i,children:r.jsx(iA,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":Zte},side:e,children:r.jsx("div",{className:"flex h-full w-full flex-col",children:a})})}):r.jsxs("div",{ref:o,className:"group peer hidden text-sidebar-foreground md:block","data-state":c,"data-collapsible":c==="collapsed"?n:"","data-variant":t,"data-side":e,children:[r.jsx("div",{className:le("relative h-svh w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),r.jsx("div",{className:le("fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",s),...i,children:r.jsx("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:a})})]})});lA.displayName="Sidebar";const Tr=j.forwardRef(({className:e,onClick:t,...n},s)=>{const{toggleSidebar:a}=zh();return r.jsxs(te,{ref:s,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:le("h-7 w-7",e),onClick:i=>{t==null||t(i),a()},...n,children:[r.jsx(F7,{}),r.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});Tr.displayName="SidebarTrigger";const ere=j.forwardRef(({className:e,...t},n)=>{const{toggleSidebar:s}=zh();return r.jsx("button",{ref:n,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:s,title:"Toggle Sidebar",className:le("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] group-data-[side=left]:-right-4 group-data-[side=right]:left-0 hover:after:bg-sidebar-border sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})});ere.displayName="SidebarRail";const tre=j.forwardRef(({className:e,...t},n)=>r.jsx("main",{ref:n,className:le("relative flex min-h-svh flex-1 flex-col bg-background","peer-data-[variant=inset]:min-
682h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...t}));tre.displayName="SidebarInset";const rre=j.forwardRef(({className:e,...t},n)=>r.jsx(je,{ref:n,"data-sidebar":"input",className:le("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));rre.displayName="SidebarInput";const nre=j.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,"data-sidebar":"header",className:le("flex flex-col gap-2 p-2",e),...t}));nre.displayName="SidebarHeader";const sre=j.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,"data-sidebar":"footer",className:le("flex flex-col gap-2 p-2",e),...t}));sre.displayName="SidebarFooter";const are=j.forwardRef(({className:e,...t},n)=>r.jsx(Cj,{ref:n,"data-sidebar":"separator",className:le("mx-2 w-auto bg-sidebar-border",e),...t}));are.displayName="SidebarSeparator";const cA=j.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,"data-sidebar":"content",className:le("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));cA.displayName="SidebarContent";const dA=j.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,"data-sidebar":"group",className:le("relative flex w-full min-w-0 flex-col p-2",e),...t}));dA.displayName="SidebarGroup";const uA=j.forwardRef(({className:e,asChild:t=!1,...n},s)=>{const a=t?pl:"div";return r.jsx(a,{ref:s,"data-sidebar":"group-label",className:le("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...n})});uA.displayName="SidebarGroupLabel";const ire=j.forwardRef(({className:e,asChild:t=!1,...n},s)=>{const a=t?pl:"button";return r.jsx(a,{ref:s,"data-sidebar":"group-action",className:le("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...n})});ire.displayName="SidebarGroupAction";const hA=j.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,"data-sidebar":"group-content",className:le("w-full text-sm",e),...t}));hA.displayName="SidebarGroupContent";const mA=j.forwardRef(({className:e,...t},n)=>r.jsx("ul",{ref:n,"data-sidebar":"menu",className:le("flex w-full min-w-0 flex-col gap-1",e),...t}));mA.displayName="SidebarMenu";const fA=j.forwardRef(({className:e,...t},n)=>r.jsx("li",{ref:n,"data-sidebar":"menu-item",className:le("group/menu-item relative",e),...t}));fA.displayName="SidebarMenuItem";const ore=xl("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),pA=j.forwardRef(({asChild:e=!1,isActive:t=!1,variant:n="default",size:s="default",tooltip:a,className:i,...o},l)=>{const c=e?pl:"button",{isMobile:d,state:u}=zh(),h=r.jsx(c,{ref:l,"data-sidebar":"menu-button","data-size":s,"data-active":t,className:le(ore({variant:n,size:s}),i),...o});
682return a?(typeof a=="string"&&(a={children:a}),r.jsxs(KL,{children:[r.jsx(QL,{asChild:!0,children:h}),r.jsx(rT,{side:"right",align:"center",hidden:u!=="collapsed"||d,...a})]})):h});pA.displayName="SidebarMenuButton";const lre=j.forwardRef(({className:e,asChild:t=!1,showOnHover:n=!1,...s},a)=>{const i=t?pl:"button";return r.jsx(i,{ref:a,"data-sidebar":"menu-action",className:le("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform peer-hover/menu-button:text-sidebar-accent-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",n&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...s})});lre.displayName="SidebarMenuAction";const cre=j.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,"data-sidebar":"menu-badge",className:le("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));cre.displayName="SidebarMenuBadge";const dre=j.forwardRef(({className:e,showIcon:t=!1,...n},s)=>{const a=j.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return r.jsxs("div",{ref:s,"data-sidebar":"menu-skeleton",className:le("flex h-8 items-center gap-2 rounded-md px-2",e),...n,children:[t&&r.jsx(n3,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),r.jsx(n3,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":a}})]})});dre.displayName="SidebarMenuSkeleton";const ure=j.forwardRef(({className:e,...t},n)=>r.jsx("ul",{ref:n,"data-sidebar":"menu-sub",className:le("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));ure.displayName="SidebarMenuSub";const hre=j.forwardRef(({...e},t)=>r.jsx("li",{ref:t,...e}));hre.displayName="SidebarMenuSubItem";const mre=j.forwardRef(({asChild:e=!1,size:t="md",isActive:n,className:s,...a},i)=>{const o=e?pl:"a";return r.jsx(o,{ref:i,"data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:le("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring aria-disabled:pointer-events-none aria-disabled:opacity-50 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",s),...a})});mre.displayName="SidebarMenuSubButton";const fre=[{title:"Admin Users",url:"/admin",icon:Wr},{title:"Team",url:"/admin/team",icon:Wr},{title:"Prospect Applications",url:"/admin/prospect-applications",icon:Ko},{title:"Assessments",url:"/admin/assessments",icon:k7},{title:"Contact Form",url:"/admin/settings",icon:Hu},{title:"Email Templates",url:"/admin/email-templates",icon:xr},{title:"Legal Content",url:"/admin/legal-content",icon:Wn},{title:"Application Settings",url:"/admin/application",icon:Ko},{title:"Book Management",url:"/admin/book",icon:ma},{title:"Document Downloads",url:"/admin/document-downloads",icon:Ko},{title:"Social Links",url:"/admin/social-links",icon:uE},{title:"Vimeo Settings",url:"/admin/vimeo",icon:fE}
682,{title:"Checkout Settings",url:"/admin/checkout-settings",icon:S7},{title:"Clarity Call",url:"/admin/clarity-call",icon:qu},{title:"SEO Settings",url:"/admin/seo",icon:ug},{title:"CRM Connections",url:"/admin/crm-settings",icon:ww}];function kt(){const{state:e}=zh(),{signOut:t}=sn();En().pathname;const s=e==="collapsed",a=({isActive:o})=>o?"bg-muted text-primary font-medium":"hover:bg-muted/50",i=async()=>{await t()};return r.jsxs(lA,{collapsible:"icon",children:[r.jsx(Tr,{className:"m-2 self-end"}),r.jsxs(cA,{children:[r.jsxs(dA,{children:[r.jsxs(uA,{className:"flex items-center gap-2",children:[r.jsx(Wn,{className:"h-4 w-4"}),!s&&"Admin Panel"]}),r.jsx(hA,{children:r.jsx(mA,{children:fre.map(o=>r.jsx(fA,{children:r.jsx(pA,{asChild:!0,children:r.jsxs(CW,{to:o.url,end:o.url==="/admin",className:a,children:[r.jsx(o.icon,{className:"mr-2 h-4 w-4"}),!s&&r.jsx("span",{children:o.title})]})})},o.title))})})]}),r.jsx("div",{className:"mt-auto p-2",children:r.jsxs(te,{variant:"ghost",size:"sm",onClick:i,className:"w-full justify-start",children:[r.jsx(R7,{className:"mr-2 h-4 w-4"}),!s&&"Sign Out"]})})]})]})}const pre=xl("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function it({className:e,variant:t,...n}){return r.jsx("div",{className:le(pre({variant:t}),e),...n})}const tx=j.forwardRef(({className:e,...t},n)=>r.jsx("div",{className:"relative w-full overflow-auto",children:r.jsx("table",{ref:n,className:le("w-full caption-bottom text-sm",e),...t})}));tx.displayName="Table";const rx=j.forwardRef(({className:e,...t},n)=>r.jsx("thead",{ref:n,className:le("[&_tr]:border-b",e),...t}));rx.displayName="TableHeader";const nx=j.forwardRef(({className:e,...t},n)=>r.jsx("tbody",{ref:n,className:le("[&_tr:last-child]:border-0",e),...t}));nx.displayName="TableBody";const gre=j.forwardRef(({className:e,...t},n)=>r.jsx("tfoot",{ref:n,className:le("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));gre.displayName="TableFooter";const Ra=j.forwardRef(({className:e,...t},n)=>r.jsx("tr",{ref:n,className:le("border-b transition-colors data-[state=selected]:bg-muted hover:bg-muted/50",e),...t}));Ra.displayName="TableRow";const At=j.forwardRef(({className:e,...t},n)=>r.jsx("th",{ref:n,className:le("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));At.displayName="TableHead";const St=j.forwardRef(({className:e,...t},n)=>r.jsx("td",{ref:n,className:le("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));St.displayName="TableCell";const xre=j.forwardRef(({className:e,...t},n)=>r.jsx("caption",{ref:n,className:le("mt-4 text-sm text-muted-foreground",e),...t}));xre.displayName="TableCaption";const sx=Oj,gA=Ute,yre=Pj,xA=j.forwardRef(({className:e,...t},n)=>r.jsx(qh,{ref:n,className:le("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));xA.displayName=qh.displayName;const Gh=j.forwardRef(({className:e,children:t,...n},s)=>r.jsxs(yre,{children:[r.jsx(xA,{}),r.jsxs(Hh,{ref:s,className:le("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,r.jsxs(sA,{className:"absolute right-4 top-4 roun
682ded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[r.jsx(Ft,{className:"h-4 w-4"}),r.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Gh.displayName=Hh.displayName;const Yh=({className:e,...t})=>r.jsx("div",{className:le("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Yh.displayName="DialogHeader";const yA=({className:e,...t})=>r.jsx("div",{className:le("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});yA.displayName="DialogFooter";const Vh=j.forwardRef(({className:e,...t},n)=>r.jsx(Jg,{ref:n,className:le("text-lg font-semibold leading-none tracking-tight",e),...t}));Vh.displayName=Jg.displayName;const Aj=j.forwardRef(({className:e,...t},n)=>r.jsx(ex,{ref:n,className:le("text-sm text-muted-foreground",e),...t}));Aj.displayName=ex.displayName;const vre=()=>{console.log("AdminUsers component rendering");const{user:e}=sn(),{toast:t}=Lt(),[n,s]=j.useState([]),[a,i]=j.useState(!0),[o,l]=j.useState(""),[c,d]=j.useState(""),[u,h]=j.useState(!1),[f,m]=j.useState(!1),y=!1;j.useEffect(()=>{p()},[]);const p=async()=>{console.log("Fetching profiles...");try{if(!y){const{data:_,error:C}=await ve.from("profiles").select("*").order("created_at",{ascending:!1});if(C)throw C;s(_||[])}}catch(_){console.error("Error fetching profiles:",_),t({title:"Error",description:"Failed to load user profiles",variant:"destructive"})}finally{i(!1)}},v=n.filter(_=>_.role==="admin"&&_.enabled).length,g=_=>_.role==="admin"&&_.enabled&&v===1,x=async(_,C)=>{const $=n.find(k=>k.id===_);if($){if(C&&g($)){t({title:"Cannot disable last admin",description:"There must be at least one active admin in the system.",variant:"destructive"});return}try{if(!y){const{error:k}=await ve.from("profiles").update({enabled:!C}).eq("id",_);if(k)throw k}s(n.map(k=>k.id===_?{...k,enabled:!C}:k)),t({title:"Success",description:`User ${C?"disabled":"enabled"}`})}catch(k){console.error("Error updating user status:",k),t({title:"Error",description:"Failed to update user status",variant:"destructive"})}}},b=async(_,C)=>{const $=n.find(k=>k.id===_);if($){if(g($)){t({title:"Cannot delete last admin",description:"There must be at least one admin in the system. Promote another user to admin first.",variant:"destructive"});return}if(confirm(`Are you sure you want to delete user ${C}? This action cannot be undone.`))try{if(!y){const{error:k}=await ve.from("profiles").delete().eq("id",_);if(k)throw k}s(n.filter(k=>k.id!==_)),t({title:"Success",description:`User ${C} has been deleted`})}catch(k){console.error("Error deleting user:",k),t({title:"Error",description:"Failed to delete user",variant:"destructive"})}}},w=async(_,C)=>{const $=n.find(E=>E.id===_);if(!$)return;if(C==="admin"&&g($)){t({title:"Cannot remove last admin",description:"There must be at least one admin in the system. Promote another user to admin first.",variant:"destructive"});return}const k=C==="admin"?"user":"admin";try{if(!y){const{error:E}=await ve.from("profiles").update({role:k}).eq("id",_);if(E)throw E}s(n.map(E=>E.id===_?{...E,role:k}:E)),t({title:"Success",description:`User role updated to ${k}`})}catch(E){console.error("Error updating role:",E),t({title:"Error",description:"Failed to update user role",variant:"destructive"})}},N=async _=>{try{const{error:C}=await ve.auth.signInWithOtp({email:_,options:{emailRedirectTo:"https://simpleoperations.com/admin"}});if(C)throw C;t({title:"Magic link sent",description:`Login link sent to ${_}`})}catch(C){console.error("Error sending magic link:",C),t({title:"Error",description:"Failed to send magic link",variant:"destructive"})}},S=async()=>{if(!o||!c){t({title:"Error",description:"Please fill in all fields",variant:"destructive"});return}h(!0);try{const{error:_}=await ve.auth.signInWithOtp({email:o,options:{emailRedirectTo:"https://simpleoperations.com/admin",data:{full_name:c}}});if(_)throw _;t({title:"User invited",description:`Magic link sent to ${o}. They can use it to create their account.`}),l(""),d(""),m(!1)}catch(_){console.error("Error adding user:",_),t({title:"Error",description:"Failed to invite user",variant:"destructive"})}finally{h(!1)}};return a?r.jsx(Nt,{children:r.jsxs("div",{className:"min-h-screen flex w-full",children:[r.jsx(kt,{}),r.jsx("div",{className:"flex-1 flex items-center justify-center",children:r.jsx("div",{className:"animate-spin rounded-full h-32 w-32 border-b-2 border-primary"})})]})}):r.jsx(Nt,{children:r.jsxs("div",{className:"min-h-screen flex w-full",children:[r.jsx(kt,{}),r.jsxs("div",{className:"flex-1 flex flex-col",children:[r.jsxs("header",{className:"h-16 border-b flex items-center px-6 bg-background",children:[r.jsx(Tr,{className:"mr-4"}),r.jsx("h1",{className:"text-2xl font-semibold",children:"Admin Users"}),r.jsxs("div",{className:"ml-auto flex items-center gap-4",children:[r.jsxs(te,{variant:"outline",size:"sm",onClick:()=>window.open("/","_blank"),className:"flex items-center gap-2",children:[r.jsx(Cr,{className:"h-4 w-4"}),"View Website"]}),r.jsxs(sx,{open:f,onOpenChange:m,children:[r.jsx(gA,{asChild:!0,children:r.jsxs(te,{children:[r.jsx(mE,{className:"w-4 h-4 mr-2"}),"Invite User"]})}
682),r.jsxs(Gh,{children:[r.jsx(Yh,{children:r.jsx(Vh,{children:"Invite New User"})}),r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{children:[r.jsx("label",{className:"text-sm font-medium",children:"Full Name"}),r.jsx(je,{value:c,onChange:_=>d(_.target.value),placeholder:"Enter full name",className:"border-2 border-muted bg-card focus:border-primary focus:bg-background hover:border-muted-foreground transition-colors shadow-sm"})]}),r.jsxs("div",{children:[r.jsx("label",{className:"text-sm font-medium",children:"Email"}),r.jsx(je,{type:"email",value:o,onChange:_=>l(_.target.value),placeholder:"Enter email address",className:"border-2 border-muted bg-card focus:border-primary focus:bg-background hover:border-muted-foreground transition-colors shadow-sm"})]}),r.jsx(te,{onClick:S,disabled:u,className:"w-full",children:u?"Sending Invite...":"Send Magic Link Invite"})]})]})]}),r.jsxs("span",{className:"text-sm text-muted-foreground",children:["Welcome, ",e==null?void 0:e.email]})]})]}),r.jsx("main",{className:"flex-1 p-6",children:r.jsxs(G,{children:[r.jsx(Ie,{children:r.jsxs(Me,{className:"flex items-center gap-2",children:[r.jsx(Wn,{className:"w-5 h-5"}),"Admin Users (",n.length,")"]})}),r.jsxs(Ne,{children:[r.jsxs(tx,{children:[r.jsx(rx,{children:r.jsxs(Ra,{children:[r.jsx(At,{children:"Name"}),r.jsx(At,{children:"Email"}),r.jsx(At,{children:"Role"}),r.jsx(At,{children:"Status"}),r.jsx(At,{children:"Joined"}),r.jsx(At,{children:"Actions"})]})}),r.jsx(nx,{children:n.map(_=>r.jsxs(Ra,{className:_.enabled?"":"opacity-50",children:[r.jsx(St,{className:"font-medium",children:_.full_name||"No name"}),r.jsx(St,{children:_.email}),r.jsx(St,{children:r.jsxs("div",{className:"flex items-center gap-1",children:[r.jsx(it,{variant:_.role==="admin"?"default":"secondary",children:_.role}),g(_)&&r.jsx(it,{variant:"outline",className:"text-xs",children:"Protected"})]})}),r.jsx(St,{children:r.jsx(it,{variant:_.enabled?"default":"destructive",children:_.enabled?"Active":"Disabled"})}),r.jsx(St,{children:new Date(_.created_at).toLocaleDateString()}),r.jsx(St,{children:r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsxs(te,{variant:"outline",size:"sm",onClick:()=>w(_.id,_.role),disabled:!_.enabled||g(_),title:g(_)?"Cannot modify the last admin":"",children:[r.jsx(Wn,{className:"w-4 h-4 mr-1"}),_.role==="admin"?"Remove Admin":"Make Admin"]}),r.jsx(te,{variant:"outline",size:"sm",onClick:()=>x(_.id,_.enabled),disabled:g(_),title:g(_)?"Cannot disable the last admin":"",children:_.enabled?r.jsxs(r.Fragment,{children:[r.jsx(V7,{className:"w-4 h-4 mr-1"}),"Disable"]}):r.jsxs(r.Fragment,{children:[r.jsx(Y7,{className:"w-4 h-4 mr-1"}),"Enable"]})}),r.jsxs(te,{variant:"outline",size:"sm",onClick:()=>N(_.email),disabled:!_.enabled,children:[r.jsx(xr,{className:"w-4 h-4 mr-1"}),"Send Login Link"]}),r.jsxs(te,{variant:"destructive",size:"sm",onClick:()=>b(_.id,_.email),disabled:g(_),title:g(_)?"Cannot delete the last admin":"",children:[r.jsx(Oh,{className:"w-4 h-4 mr-1"}),"Delete"]})]})})]},_.id))})]}),n.length===0&&r.jsx("div",{className:"text-center py-8 text-muted-foreground",children:"No users found. Invite your first user!"})]})]})})]})]})})},bre=()=>{const{user:e}=sn(),{toast:t}=Lt(),[n,s]=j.useState([]),[a,i]=j.useState(!0),[o,l]=j.useState(!1),[c,d]=j.useState({});j.useEffect(()=>{const m=[{id:"1",setting_key:"contact_notification_email",setting_value:"[email protected]",description:"Email address to receive contact form notifications"},{id:"2",setting_key:"contact_sender_name",setting_value:"Simple Ops Site Admin",description:"Name shown as sender in contact form emails"},{id:"3",setting_key:"contact_sender_email",setting_value:"[email protected]",description:"Email address used as sender in contact form emails"}];s(m);const y={};m.forEach(p=>{y[p.setting_key]=p.setting_value}),d(y),i(!1),u()},[]);const u=async()=>{try{const m=["contact_notification_email","contact_sender_name","contact_sender_email"],{data:y,error:p}=await ve.from("admin_settings").select("*").in("setting_key",m).order("setting_key");if(!p&&y&&y.length>0){s(y);const v={};
682y.forEach(g=>{v[g.setting_key]=g.setting_value}),d(v)}}catch(m){console.log("Settings fetch failed, using defaults:",m)}},h=(m,y)=>{d(p=>({...p,[m]:y}))},f=async()=>{l(!0);try{const m=Object.entries(c).map(([p,v])=>({setting_key:p,setting_value:v}));let y=!1;for(const p of m){const{error:v}=await ve.from("admin_settings").update({setting_value:p.setting_value}).eq("setting_key",p.setting_key);v&&(console.log("Database update failed:",v),y=!0)}t(y?{title:"Settings saved locally",description:"Settings updated in preview mode. Changes will apply on production."}:{title:"Settings saved",description:"All settings have been updated successfully."}),await u()}catch(m){console.error("Error saving settings:",m),t({title:"Settings saved locally",description:"Settings updated in preview mode. Changes will apply on production."})}finally{l(!1)}};return a?r.jsx(Nt,{children:r.jsxs("div",{className:"min-h-screen flex w-full",children:[r.jsx(kt,{}),r.jsx("div",{className:"flex-1 flex items-center justify-center",children:r.jsx("div",{className:"animate-spin rounded-full h-32 w-32 border-b-2 border-primary"})})]})}):r.jsx(Nt,{children:r.jsxs("div",{className:"min-h-screen flex w-full",children:[r.jsx(kt,{}),r.jsxs("div",{className:"flex-1 flex flex-col",children:[r.jsxs("header",{className:"h-16 border-b flex items-center px-6 bg-background",children:[r.jsx(Tr,{className:"mr-4"}),r.jsx("h1",{className:"text-2xl font-semibold",children:"Contact Form"}),r.jsxs("div",{className:"ml-auto flex items-center gap-4",children:[r.jsxs("span",{className:"text-sm text-muted-foreground",children:["Welcome, ",(e==null?void 0:e.email)||"Admin"]}),r.jsxs(te,{variant:"outline",size:"sm",onClick:()=>window.open("/","_blank"),className:"flex items-center gap-2",children:[r.jsx(Cr,{className:"h-4 w-4"}),"View Website"]})]})]}),r.jsx("main",{className:"flex-1 p-6",children:r.jsxs("div",{className:"max-w-2xl space-y-6",children:[r.jsxs(G,{children:[r.jsx(Ie,{children:r.jsxs(Me,{className:"flex items-center gap-2",children:[r.jsx(Hu,{className:"w-5 h-5"}),"Contact Form Settings"]})}),r.jsxs(Ne,{className:"space-y-4",children:[n.map(m=>r.jsxs("div",{className:"space-y-2",children:[r.jsx(oe,{htmlFor:m.setting_key,children:m.setting_key==="contact_notification_email"?"Notification Email":m.setting_key==="contact_sender_name"?"Sender Name":m.setting_key.replace(/_/g," ").replace(/\b\w/g,y=>y.toUpperCase())}),r.jsx(je,{id:m.setting_key,type:m.setting_key.includes("email")?"email":"text",value:c[m.setting_key]||"",onChange:y=>h(m.setting_key,y.target.value),placeholder:m.description,className:"border-2 border-muted bg-card focus:border-primary focus:bg-background hover:border-muted-foreground transition-colors shadow-sm"}),r.jsx("p",{className:"text-xs text-muted-foreground",children:m.description})]},m.id)),r.jsx("div",{className:"pt-4",children:r.jsx(te,{onClick:f,disabled:o,className:"w-full",children:o?r.jsxs(r.Fragment,{children:[r.jsx(Mn,{className:"w-4 h-4 mr-2 animate-spin"}),"Saving..."]}):r.jsxs(r.Fragment,{children:[r.jsx(Lr,{className:"w-4 h-4 mr-2"}),"Save Settings"]})})})]})]}),r.jsxs(G,{children:[r.jsx(Ie,{children:r.jsx(Me,{children:"How This Works"})}),r.jsxs(Ne,{className:"space-y-2 text-sm text-muted-foreground",children:[r.jsxs("p",{children:[r.jsx("strong",{children:"Notification Email:"})," This is where contact form submissions will be sent."]}),r.jsxs("p",{children:[r.jsx("strong",{children:"Sender Name:"}),' This appears as the "From" name in both notification emails and user confirmation emails.']}),r.jsxs("p",{children:[r.jsx("strong",{children:"Sender Email:"})," This is the email address used as the sender for all contact form emails."]}),r.jsx("p",{className:"pt-2 text-xs",children:"Changes take effect immediately after saving. Test the contact form to verify your settings."})]})]})]})})]})]})})};function wre(){const{user:e}=sn(),[t,n]=j.useState(!1),[s,a]=j.useState(""),[i,o]=j.useState(!0),[l,c]=j.useState(""),[d,u]=j.useState(""),[h,f]=j.useState(!1);j.useEffect(()=>{m(),y()},[]);const m=async()=>{try{const{data:x,error:b}=await ve.from("admin_settings").select("setting_value").eq("setting_key","book_image_url").maybeSingle();if(b){console.error("Error fetching current image:",b);return}x!=null&&x.setting_value&&a(x.setting_value)}catch(x){console.error("Error:",x)}finally{o(!1)}},y=async()=>{try{const{data:x,error:b}=await et.select("admin_settings",{filters:{setting_key:["book_order_url","book_order_cta_text"]}});if(b){console.error("Error fetching order settings:",b);return}x==null||x.forEach(w=>{w.setting_key==="book_order_url"?c(w.setting_value||""):w.setting_key==="book_order_cta_text"&&u(w.setting_value||"Order Now - Just $9.95 Shipping")})}catch(x){console.error("Error:",x)}},p=async()=>{f(!0);try{const x=[{setting_key:"book_order_url",setting_value:l,description:"URL for the book order button on the Free Book page"},{setting_key:"book_order_cta_text",setting_value:d||"Order Now - Just $9.95 Shipping",description:"CTA text for the book order button on the Free Book page"}];for(const b of x){const{error:w}=await et.upsert("admin_settings",b);if(w)throw w}mr.success("Order button settings saved successfully!")}catch(x){console.error("Save error:",x),mr.error(`Failed to save settings: ${x.message}`)}finally{f(!1)}},v=async x=>{var w;const b=(w=x.target.files)==null?void 0:w[0];if(b){if(!b.type.startsWith("image/")){mr.error("Please select an image file");return}if(b.size>5*1024*1024){mr.error("File size must be less than 5MB");return}n(!0);try{const N=b.name.split(".").pop(),S=`book-cover-${Date.now()}.${N}`,{data:_,error:C}=await ve.storage.from("book-images").upload(S,b,{cacheControl:"3600",upsert:!1});if(C)throw C;const{data:{publicUrl:$}}=ve.storage.from("book-images").getPublicUrl(_.path),{error:k}=await et.upsert("admin_settings",{setting_key:"book_image_url",setting_value:$,description:"URL of the uploaded book cover image displayed on the Free Book page"});if(k)throw k;a($),mr.success("Book image uploaded successfully!")}catch(N){console.error("Upload error:",N),mr.error(`Failed to upload image: ${N.message}`)}finally{n(!1),x.target.value=""}}},g=async()=>{try{const{error:x}=await et.upsert("admin_settings",{setting_key:"book_image_url",setting_value:"",description:"URL of the uploaded book cover image displayed on the Free Book page"});if(x)throw x;a(""),mr.success("Book image removed successfully!")}catch(x){console.error("Remove error:",x),mr.error(`Failed to remove image: ${x.message}`)}};return i?r.jsx(Nt,{children:r.jsxs("div",{className:"min-h-screen flex w-full",children:[r.jsx(kt,{}),r.jsx("div",{className:"flex-1 flex items-center justify-center",children:r.jsxs("div",{className:"text-center",children:[r.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary mx-auto mb-4"}),r.jsx("p",{className:"text-muted-foreground",children:"Loading..."})]})})]})}):r.jsx(Nt,{children:r.jsxs("div",{className:"min-h-screen flex w-full",children:[r.jsx(kt,{}),r.jsxs("div",{className:"flex-1 flex flex-col",children:[r.jsxs("header",{className:"h-16 border-b flex items-center px-6 bg-background",children:[r.jsx(Tr,{className:"mr-4"}),r.jsx("h1",{className:"text-2xl font-semibold",children:"Book Management"}),r.jsxs("div",{className:"ml-auto flex items-center gap-4",children:[r.jsxs("span",{className:"text-sm text-muted-foreground",children:["Welcome, ",(e==null?void 0:e.email)||"Admin"]}),r.jsxs(te,{variant:"outline",size:"sm",onClick:()=>window.open("/","_blank"),className:"flex items-center gap-2",children:[r.jsx(Cr,{className:"h-4 w-4"}),"View Website"]})]})]}),r.jsx("main",{className:"flex-1 p-6 space-y-6",children:r.jsxs("div",{className:"max-w-4xl mx-auto
682space-y-6",children:[r.jsxs(G,{children:[r.jsxs(Ie,{children:[r.jsx(Me,{children:"Order Button Settings"}),r.jsx(dt,{children:"Customize the order button URL and CTA text displayed on the Free Book page"})]}),r.jsxs(Ne,{className:"space-y-4",children:[r.jsxs("div",{className:"space-y-2",children:[r.jsx(oe,{htmlFor:"order-url",children:"Order Button URL"}),r.jsx(je,{id:"order-url",type:"url",placeholder:"https://example.com/order or /apply",value:l,onChange:x=>c(x.target.value)}),r.jsx("p",{className:"text-xs text-muted-foreground",children:"Enter a full URL (https://...) or a relative path (/apply). Leave empty to use default navigation."})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(oe,{htmlFor:"cta-text",children:"Button Text"}),r.jsx(je,{id:"cta-text",type:"text",placeholder:"Order Now - Just $9.95 Shipping",value:d,onChange:x=>u(x.target.value),maxLength:100}),r.jsx("p",{className:"text-xs text-muted-foreground",children:"The text that appears on the order button (max 100 characters)"})]}),r.jsx(te,{onClick:p,disabled:h,className:"w-full sm:w-auto",children:h?"Saving...":"Save Button Settings"})]})]}),r.jsxs(G,{children:[r.jsxs(Ie,{children:[r.jsxs(Me,{className:"flex items-center gap-2",children:[r.jsx(O7,{className:"h-5 w-5"}),"Book Cover Image"]}),r.jsx(dt,{children:"Upload and manage the book cover image displayed on the Free Book page"})]}),r.jsxs(Ne,{className:"space-y-6",children:[s&&r.jsxs("div",{className:"space-y-4",children:[r.jsx(oe,{children:"Current Book Cover"}),r.jsxs("div",{className:"relative",children:[r.jsx("img",{src:s,alt:"Book Cover",className:"max-w-sm mx-auto rounded-lg shadow-md"}),r.jsx(te,{variant:"destructive",size:"sm",onClick:g,className:"absolute top-2 right-2",children:r.jsx(Oh,{className:"h-4 w-4"})})]})]}),r.jsxs("div",{className:"space-y-4",children:[r.jsx(oe,{children:s?"Replace Book Cover":"Upload Book Cover"}),r.jsxs("div",{className:"relative",children:[r.jsx("input",{id:"book-image-upload",type:"file",accept:"image/*",onChange:v,disabled:t,className:"absolute inset-0 w-full h-full opacity-0 cursor-pointer disabled:cursor-not-allowed"}),r.jsx("div",{className:"border-2 border-dashed border-muted-foreground/25 rounded-lg p-8 text-center hover:border-primary/50 transition-colors bg-muted/20",children:r.jsxs("div",{className:"flex flex-col items-center gap-3",children:[r.jsx(bw,{className:"h-8 w-8 text-muted-foreground"}),r.jsxs("div",{children:[r.jsx("p",{className:"text-sm font-medium",children:t?"Uploading...":"Click to upload or drag and drop"}),r.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"JPG, PNG, GIF up to 5MB"})]}),t&&r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("div",{className:"animate-spin rounded-full h-4 w-4 border-b-2 border-primary"}),r.jsx("span",{className:"text-sm text-muted-foreground",children:"Processing..."})]})]})})]})]}),r.jsxs("div",{className:"bg-muted/50 p-4 rounded-lg",children:[r.jsx("h4",{className:"font-medium mb-2",children:"Guidelines:"}),r.jsxs("ul",{className:"text-sm text-muted-foreground space-y-1",children:[r.jsx("li",{children:"⢠Recommended size: 400x600px or similar aspect ratio"}),r.jsx("li",{children:"⢠Use high-quality images for best display"}),r.jsx("li",{children:"⢠The image will be displayed prominently on the Free Book page"}),r.jsx("li",{children:"⢠Changes take effect immediately on the website"})]})]})]})]})]})})]})]})})}var ax="Tabs",[jre,Jge]=ir(ax,[pd]),vA=pd(),[Nre,Ij]=jre(ax),bA=j.forwardRef((e,t)=>{const{__scopeTabs:n,value:s,onValueChange:a,defaultValue:i,orientation:o="horizontal",dir:l,activationMode:c="automatic",...d}=e,u=bl(l),[h,f]=Xr({prop:s,onChange:a,defaultProp:i??"",caller:ax});return r.jsx(Nre,{scope:n,baseId:ar(),value:h,onValueChange:f,orientation:o,dir:u,activationMode:c,children:r.jsx(we.div,{dir:u,"data-orientation":o,...d,ref:t})})});bA.displayName=ax;var wA="TabsList",jA=j.forwardRef((e,t)=>{const{__scopeTabs:n,loop:s=!0,...a}=e,i=Ij(wA,n),o=vA(n);return r.jsx(Jw,{asChild:!0,...o,orientation:i.orientation,dir:i.dir,loop:s,children:r.jsx(we.div,{role:"tablist","aria-orientation":i.orientation,...a,ref:t})})});jA.displayName=wA;var NA="TabsTrigger",kA=j.forwardRef((e,t)=>
682{const{__scopeTabs:n,value:s,disabled:a=!1,...i}=e,o=Ij(NA,n),l=vA(n),c=CA(o.baseId,s),d=EA(o.baseId,s),u=s===o.value;return r.jsx(ej,{asChild:!0,...l,focusable:!a,active:u,children:r.jsx(we.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":d,"data-state":u?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:c,...i,ref:t,onMouseDown:me(e.onMouseDown,h=>{!a&&h.button===0&&h.ctrlKey===!1?o.onValueChange(s):h.preventDefault()}),onKeyDown:me(e.onKeyDown,h=>{[" ","Enter"].includes(h.key)&&o.onValueChange(s)}),onFocus:me(e.onFocus,()=>{const h=o.activationMode!=="manual";!u&&!a&&h&&o.onValueChange(s)})})})});kA.displayName=NA;var _A="TabsContent",SA=j.forwardRef((e,t)=>{const{__scopeTabs:n,value:s,forceMount:a,children:i,...o}=e,l=Ij(_A,n),c=CA(l.baseId,s),d=EA(l.baseId,s),u=s===l.value,h=j.useRef(u);return j.useEffect(()=>{const f=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(f)},[]),r.jsx(or,{present:a||u,children:({present:f})=>r.jsx(we.div,{"data-state":u?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":c,hidden:!f,id:d,tabIndex:0,...o,ref:t,style:{...e.style,animationDuration:h.current?"0s":void 0},children:f&&i})})});SA.displayName=_A;function CA(e,t){return`${e}-trigger-${t}`}function EA(e,t){return`${e}-content-${t}`}var kre=bA,TA=jA,$A=kA,OA=SA;const yh=kre,Kc=j.forwardRef(({className:e,...t},n)=>r.jsx(TA,{ref:n,className:le("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));Kc.displayName=TA.displayName;const wn=j.forwardRef(({className:e,...t},n)=>r.jsx($A,{ref:n,className:le("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",e),...t}));wn.displayName=$A.displayName;const jn=j.forwardRef(({className:e,...t},n)=>r.jsx(OA,{ref:n,className:le("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));jn.displayName=OA.displayName;function _re(){this.__data__=[],this.size=0}var Sre=_re;function Cre(e,t){return e===t||e!==e&&t!==t}var PA=Cre,Ere=PA;function Tre(e,t){for(var n=e.length;n--;)if(Ere(e[n][0],t))return n;return-1}var ix=Tre,$re=ix,Ore=Array.prototype,Pre=Ore.splice;function Are(e){var t=this.__data__,n=$re(t,e);if(n<0)return!1;var s=t.length-1;return n==s?t.pop():Pre.call(t,n,1),--this.size,!0}var Ire=Are,Rre=ix;function Mre(e){var t=this.__data__,n=Rre(t,e);return n<0?void 0:t[n][1]}var Dre=Mre,Fre=ix;function Lre(e){return Fre(this.__data__,e)>-1}var Bre=Lre,Wre=ix;function Ure(e,t){var n=this.__data__,s=Wre(n,e);return s<0?(++this.size,n.push([e,t])):n[s][1]=t,this}var qre=Ure,Hre=Sre,zre=Ire,Gre=Dre,Yre=Bre,Vre=qre;function yd(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var s=e[t];this.set(s[0],s[1])}}yd.prototype.clear=Hre;yd.prototype.delete=zre;yd.prototype.get=Gre;yd.prototype.has=Yre;yd.prototype.set=Vre;var ox=yd,Kre=ox;function Qre(){this.__data__=new Kre,this.size=0}var Zre=Qre;function Xre(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var Jre=Xre;function ene(e){return this.__data__.get(e)}var tne=ene;function rne(e){return this.__data__.has(e)}var nne=rne,sne=typeof It=="object"&&It&&It.Object===Object&&It,AA=sne,ane=AA,ine=typeof self=="object"&&self&&self.Object===Object&&self,one=ane||ine||Function("return this")(),ti=one,lne=ti,cne=lne.Symbol,Rj=cne,s3=Rj,IA=Object.prototype,dne=IA.hasOwnProperty,une=IA.toString,Ud=s3?s3.toStringTag:void 0;function hne(e){var t=dne.call(e,Ud),n=e[Ud];try{e[Ud]=void 0;var s=!0}catch{}var a=une.call(e);return s&&(t?e[Ud]=n:delete e[Ud]),a}var mne=hne,fne=Object.prototype,pne=fne.toString;function gne(e){return pne.call(e)}var xne=gne,a3=Rj,yne=mne,vne=xne,bne="[object Null]",wne="[object Undef
682ined]",i3=a3?a3.toStringTag:void 0;function jne(e){return e==null?e===void 0?wne:bne:i3&&i3 in Object(e)?yne(e):vne(e)}var lx=jne;function Nne(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var RA=Nne,kne=lx,_ne=RA,Sne="[object AsyncFunction]",Cne="[object Function]",Ene="[object GeneratorFunction]",Tne="[object Proxy]";function $ne(e){if(!_ne(e))return!1;var t=kne(e);return t==Cne||t==Ene||t==Sne||t==Tne}var MA=$ne,One=ti,Pne=One["__core-js_shared__"],Ane=Pne,Xy=Ane,o3=function(){var e=/[^.]+$/.exec(Xy&&Xy.keys&&Xy.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Ine(e){return!!o3&&o3 in e}var Rne=Ine,Mne=Function.prototype,Dne=Mne.toString;function Fne(e){if(e!=null){try{return Dne.call(e)}catch{}try{return e+""}catch{}}return""}var DA=Fne,Lne=MA,Bne=Rne,Wne=RA,Une=DA,qne=/[\\^$.*+?()[\]{}|]/g,Hne=/^\[object .+?Constructor\]$/,zne=Function.prototype,Gne=Object.prototype,Yne=zne.toString,Vne=Gne.hasOwnProperty,Kne=RegExp("^"+Yne.call(Vne).replace(qne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Qne(e){if(!Wne(e)||Bne(e))return!1;var t=Lne(e)?Kne:Hne;return t.test(Une(e))}var Zne=Qne;function Xne(e,t){return e==null?void 0:e[t]}var Jne=Xne,ese=Zne,tse=Jne;function rse(e,t){var n=tse(e,t);return ese(n)?n:void 0}var vd=rse,nse=vd,sse=ti,ase=nse(sse,"Map"),Mj=ase,ise=vd,ose=ise(Object,"create"),cx=ose,l3=cx;function lse(){this.__data__=l3?l3(null):{},this.size=0}var cse=lse;function dse(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var use=dse,hse=cx,mse="__lodash_hash_undefined__",fse=Object.prototype,pse=fse.hasOwnProperty;function gse(e){var t=this.__data__;if(hse){var n=t[e];return n===mse?void 0:n}return pse.call(t,e)?t[e]:void 0}var xse=gse,yse=cx,vse=Object.prototype,bse=vse.hasOwnProperty;function wse(e){var t=this.__data__;return yse?t[e]!==void 0:bse.call(t,e)}var jse=wse,Nse=cx,kse="__lodash_hash_undefined__";function _se(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Nse&&t===void 0?kse:t,this}var Sse=_se,Cse=cse,Ese=use,Tse=xse,$se=jse,Ose=Sse;function bd(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var s=e[t];this.set(s[0],s[1])}}bd.prototype.clear=Cse;bd.prototype.delete=Ese;bd.prototype.get=Tse;bd.prototype.has=$se;bd.prototype.set=Ose;var Pse=bd,c3=Pse,Ase=ox,Ise=Mj;function Rse(){this.size=0,this.__data__={hash:new c3,map:new(Ise||Ase),string:new c3}}var Mse=Rse;function Dse(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Fse=Dse,Lse=Fse;function Bse(e,t){var n=e.__data__;return Lse(t)?n[typeof t=="string"?"string":"hash"]:n.map}var dx=Bse,Wse=dx;function Use(e){var t=Wse(this,e).delete(e);return this.size-=t?1:0,t}var qse=Use,Hse=dx;function zse(e){return Hse(this,e).get(e)}var Gse=zse,Yse=dx;function Vse(e){return Yse(this,e).has(e)}var Kse=Vse,Qse=dx;function Zse(e,t){var n=Qse(this,e),s=n.size;return n.set(e,t),this.size+=n.size==s?0:1,this}var Xse=Zse,Jse=Mse,eae=qse,tae=Gse,rae=Kse,nae=Xse;function wd(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var s=e[t];this.set(s[0],s[1])}}wd.prototype.clear=Jse;wd.prototype.delete=eae;wd.prototype.get=tae;wd.prototype.has=rae;wd.prototype.set=nae;var FA=wd,sae=ox,aae=Mj,iae=FA,oae=200;function lae(e,t){var n=this.__data__;if(n instanceof sae){var s=n.__data__;if(!aae||s.length<oae-1)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new iae(s)}return n.set(e,t),this.size=n.size,this}var cae=lae,dae=ox,uae=Zre,hae=Jre,mae=tne,fae=nne,pae=cae;function jd(e){var t=this.__data__=new dae(e);this.size=t.size}jd.prototype.clear=uae;jd.prototype.delete=hae;jd.prototype.get=mae;jd.prototype.has=fae;jd.prototype.set=pae;var gae=jd,xae="__lodash_hash_undefined__";function yae(e){return this.__data__.set(e,xae),this}var vae=yae;function bae(e){return this.__data__.has(e)}var wae=bae,jae=FA,Nae=vae,kae=wae;function $p(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new jae;++t<n;)this.add(e[t])}$p.prototype.add=$p.prototype.push=Nae;$p.prototype.has=kae;var _ae=$p;function Sae(e,t){for(var n=-1,s=e==null?0:e.length;++n<s;)if(t(e[n],n,e))return!0;return!1}var Cae=Sae;function Eae(e,t){return e.has(t)}var Tae=Eae,$ae=_ae,Oae=Cae,Pae=Tae,Aae=1,Iae=2;function Rae(e,t,n,s,a,i){var o=n&Aae,l=e.length,c=t.length;if(l!=c&&!(o&&c>l))return!1;var d=i.get(e),u=i.get(t);if(d&&u)return d==t&&u==e;var h=-1,f=!0,m=n&Iae?new $ae:void 0;for(i.set(e,t),i.set(t,e);++h<l;){var y=e[h],p=t[h];if(s)var v=o?s(p,y,h,t,e,i):s(y,p,h,e,t,i);if(v!==void 0){if(v)continue;f=!1;break}if(m){if(!Oae(t,function(g,x){if(!Pae(m,x)&&(y===g||a(y,g,n,s,i)))return m.push(x)})){f=!1;break}}else if(!(y===p||a(y,p,n,s,i))){f=!1;break}}return i.delete(e),i.delete(t),f}var LA=Rae,Mae=ti,Dae=Mae.Uint8Array,Fae=Dae;function Lae(e){var t=-1,n=Array(e.size);return e.forEach(function(s,a){n[++t]=[a,s]}),n}var Bae=Lae;function Wae(e){var t=-1,n=Array(e.size);return e.forEach(function(s){n[++t]=s}),n}var Uae=Wae,d3=Rj,u3=Fae,qae=PA,Hae=LA,zae=Bae,Gae=Uae,Yae=1,Vae=2,Kae="[object Boolean]",Qae="[object Date]",Zae="[object Error]",Xae="[object Map]",Jae="[object Number]",eie="[object RegExp]",tie="[object Set]",rie="[object String]",nie="[object Symbol]",sie="[object ArrayBuffer]",aie="[object DataView]",h3=d3?d3.prototype:void 0,Jy=h3?h3.valueOf:void 0;function iie(e,t,n,s,a,i,o){switch(n){case aie:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case sie:return!(e.byteLength!=t.byteLength||!i(new u3(e),new u3(t)));case Kae:case Qae:case Jae:return qae(+e,+t);case Zae:return e.name==t.name&&e.message==t.message;case eie:case rie:return e==t+"";case Xae:var l=zae;case tie:var c=s&Yae;if(l||(l=Gae),e.size!=t.size&&!c)return!1;var d=o.get(e);if(d)return d==t;s|=Vae,o.set(e,t);var u=Hae(l(e),l(t),s,a,i,o);return o.delete(e),u;case nie:if(Jy)return Jy.call(e)==Jy.call(t)}return!1}var oie=iie;function lie(e,t){for(var n=-1,s=t.length,a=e.length;++n<s;)e[a+n]=t[n];return e}var cie=lie,die=Array.isArray,Dj=die,uie=cie,hie=Dj;function mie(e,t,n){var s=t(e);return hie(e)?s:uie(s,n(e))}var fie=mie;function pie(e,t){for(var n=-1,s=e==null?0:e.length,a=0,i=[];++n<s;){var o=e[n];t(o,n,e)&&(i[a++]=o)}return i}var gie=pie;function xie(){return[]}var yie=xie,vie=gie,bie=yie,wie=Object.prototype,jie=wie.propertyIsEnumerable,m3=Object.getOwnPropertySymbols,Nie=m3?function(e){return e==null?[]:(e=Object(e),vie(m3(e),function(t){return jie.call(e,t)}))}:bie,kie=Nie;function _ie(e,t){for(var n=-1,s=Array(e);++n<e;)s[n]=t(n);return s}var Sie=_ie;function Cie(e){return e!=null&&typeof e=="object"}var ux=Cie,Eie=lx,Tie=ux,$ie="[object Arguments]";function Oie(e){return Tie(e)&&Eie(e)==$ie}var Pie=Oie,f3=Pie,Aie=ux,BA=Object.prototype,Iie=BA.hasOwnProperty,Rie=BA.propertyIsEnumerable,Mie=f3(function(){return arguments}())?f3:function(e){return Aie(e)&&Iie.call(e,"callee")&&!Rie.call(e,"callee")},Die=Mie,Op={exports:{}};function Fie(){return!1}var Lie=Fie;Op.exports;(function(e,t){var n=ti,s=Lie,a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===a,l=o?n.Buffer:void 0,c=l?l.isBuffer:void 0,d=c||s;e.exports=d}
vendor: 202,582 bytes, lines 682-722
682)(Op,Op.exports);var WA=Op.exports,Bie=9007199254740991,Wie=/^(?:0|[1-9]\d*)$/;function Uie(e,t){var n=typeof e;return t=t??Bie,!!t&&(n=="number"||n!="symbol"&&Wie.test(e))&&e>-1&&e%1==0&&e<t}var qie=Uie,Hie=9007199254740991;function zie(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Hie}var UA=zie,Gie=lx,Yie=UA,Vie=ux,Kie="[object Arguments]",Qie="[object Array]",Zie="[object Boolean]",Xie="[object Date]",Jie="[object Error]",eoe="[object Function]",toe="[object Map]",roe="[object Number]",noe="[object Object]",soe="[object RegExp]",aoe="[object Set]",ioe="[object String]",ooe="[object WeakMap]",loe="[object ArrayBuffer]",coe="[object DataView]",doe="[object Float32Array]",uoe="[object Float64Array]",hoe="[object Int8Array]",moe="[object Int16Array]",foe="[object Int32Array]",poe="[object Uint8Array]",goe="[object Uint8ClampedArray]",xoe="[object Uint16Array]",yoe="[object Uint32Array]",Pt={};Pt[doe]=Pt[uoe]=Pt[hoe]=Pt[moe]=Pt[foe]=Pt[poe]=Pt[goe]=Pt[xoe]=Pt[yoe]=!0;Pt[Kie]=Pt[Qie]=Pt[loe]=Pt[Zie]=Pt[coe]=Pt[Xie]=Pt[Jie]=Pt[eoe]=Pt[toe]=Pt[roe]=Pt[noe]=Pt[soe]=Pt[aoe]=Pt[ioe]=Pt[ooe]=!1;function voe(e){return Vie(e)&&Yie(e.length)&&!!Pt[Gie(e)]}var boe=voe;function woe(e){return function(t){return e(t)}}var joe=woe,Pp={exports:{}};Pp.exports;(function(e,t){var n=AA,s=t&&!t.nodeType&&t,a=s&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===s,o=i&&n.process,l=function(){try{var c=a&&a.require&&a.require("util").types;return c||o&&o.binding&&o.binding("util")}catch{}}();e.exports=l})(Pp,Pp.exports);var Noe=Pp.exports,koe=boe,_oe=joe,p3=Noe,g3=p3&&p3.isTypedArray,Soe=g3?_oe(g3):koe,qA=Soe,Coe=Sie,Eoe=Die,Toe=Dj,$oe=WA,Ooe=qie,Poe=qA,Aoe=Object.prototype,Ioe=Aoe.hasOwnProperty;function Roe(e,t){var n=Toe(e),s=!n&&Eoe(e),a=!n&&!s&&$oe(e),i=!n&&!s&&!a&&Poe(e),o=n||s||a||i,l=o?Coe(e.length,String):[],c=l.length;for(var d in e)(t||Ioe.call(e,d))&&!(o&&(d=="length"||a&&(d=="offset"||d=="parent")||i&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||Ooe(d,c)))&&l.push(d);return l}var Moe=Roe,Doe=Object.prototype;function Foe(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Doe;return e===n}var Loe=Foe;function Boe(e,t){return function(n){return e(t(n))}}var Woe=Boe,Uoe=Woe,qoe=Uoe(Object.keys,Object),Hoe=qoe,zoe=Loe,Goe=Hoe,Yoe=Object.prototype,Voe=Yoe.hasOwnProperty;function Koe(e){if(!zoe(e))return Goe(e);var t=[];for(var n in Object(e))Voe.call(e,n)&&n!="constructor"&&t.push(n);return t}var Qoe=Koe,Zoe=MA,Xoe=UA;function Joe(e){return e!=null&&Xoe(e.length)&&!Zoe(e)}var ele=Joe,tle=Moe,rle=Qoe,nle=ele;function sle(e){return nle(e)?tle(e):rle(e)}var ale=sle,ile=fie,ole=kie,lle=ale;function cle(e){return ile(e,lle,ole)}var dle=cle,x3=dle,ule=1,hle=Object.prototype,mle=hle.hasOwnProperty;function fle(e,t,n,s,a,i){var o=n&ule,l=x3(e),c=l.length,d=x3(t),u=d.length;if(c!=u&&!o)return!1;for(var h=c;h--;){var f=l[h];if(!(o?f in t:mle.call(t,f)))return!1}var m=i.get(e),y=i.get(t);if(m&&y)return m==t&&y==e;var p=!0;i.set(e,t),i.set(t,e);for(var v=o;++h<c;){f=l[h];var g=e[f],x=t[f];if(s)var b=o?s(x,g,f,t,e,i):s(g,x,f,e,t,i);if(!(b===void 0?g===x||a(g,x,n,s,i):b)){p=!1;break}v||(v=f=="constructor")}if(p&&!v){var w=e.constructor,N=t.constructor;w!=N&&"constructor"in e&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof N=="function"&&N instanceof N)&&(p=!1)}return i.delete(e),i.delete(t),p}var ple=fle,gle=vd,xle=ti,yle=gle(xle,"DataView"),vle=yle,ble=vd,wle=ti,jle=ble(wle,"Promise"),Nle=jle,kle=vd,_le=ti,Sle=kle(_le,"Set"),Cle=Sle,Ele=vd,Tle=ti,$le=Ele(Tle,"WeakMap"),Ole=$le,e1=vle,t1=Mj,r1=Nle,n1=Cle,s1=Ole,HA=lx,Nd=DA,y3="[object Map]",Ple="[object Object]",v3="[object Promise]",b3="[object Set]",w3="[object WeakMap]",j3="[object DataView]",Ale=Nd(e1),Ile=Nd(t1),Rle=Nd(r1),Mle=Nd(n1),Dle=Nd(s1),$o=HA;(e1&&$o(new e1(new ArrayBuffer(1)))!=j3||t1&&$o(new t1)!=y3||r1&&$o(r1.resolve())!=v3||n1&&$o(new n1)!=b3||s1&&$o(new s1)!=w3)&&($o=function(e){var t=HA(e),n=t==Ple?e.constructor:void 0,s=n?Nd(n):"";if(s)switch(s){case Ale:return j3;case Ile:return y3;case Rle:return v3;case Mle:return b3;case Dle:return w3}return t});var Fle=$o,ev=gae,Lle=LA,Ble=oie,Wle=ple,N3=Fle,k3=Dj,_3=WA,Ule=qA,qle=1,S3="[object Arguments]",C3="[object Array]",Fm="[object Object]",Hle=Object.prototype,E3=Hle.hasOwnProperty;function zle(e,t,n,s,a,i){var o=k3(e),l=k3(t),c=o?C3:N3(e),d=l?C3:N3(t);c=c==S3?Fm:c,d=d==S3?Fm:d;var u=c==Fm,h=d==Fm,f=c==d;if(f&&_3(e)){if(!_3(t))return!1;o=!0,u=!1}if(f&&!u)return i||(i=new ev),o||Ule(e)?Lle(e,t,n,s,a,i):Ble(e,t,c,n,s,a,i);if(!(n&qle)){var m=u&&E3.call(e,"__wrapped__"),y=h&&E3.call(t,"__wrapped__");if(m||y){var p=m?e.value():e,v=y?t.value():t;return i||(i=new ev),a(p,v,n,s,i)}}return f?(i||(i=new ev),Wle(e,t,n,s,a,i)):!1}var Gle=zle,Yle=Gle,T3=ux;function zA(e,t,n,s,a){return e===t?!0:e==null||t==null||!T3(e)&&!T3(t)?e!==e&&t!==t:Yle(e,t,n,s,zA,a)}var Vle=zA,Kle=Vle;function Qle(e,t){return Kle(e,t)}var Zle=Qle,GA={exports:{}};/*! 683 * Quill Editor v1.3.7 684 * https://quilljs.com/ 685 * Copyright (c) 2014, Jason Chen 686 * Copyright (c) 2013, salesforce.com 687 */(function(e,t){(function(s,a){e.exports=a()})(typeof self<"u"?self:It,function(){return function(n){var s={};function a(i){if(s[i])return s[i].exports;var o=s[i]={i,l:!1,exports:{}};return n[i].call(o.exports,o,o.exports,a),o.l=!0,o.exports}return a.m=n,a.c=s,a.d=function(i,o,l){a.o(i,o)||Object.defineProperty(i,o,{configurable:!1,enumerable:!0,get:l})},a.n=function(i){var o=i&&i.__esModule?function(){return i.default}:function(){return i};return a.d(o,"a",o),o},a.o=function(i,o){return Object.prototype.hasOwnProperty.call(i,o)},a.p="",a(a.s=109)}([function(n,s,a){Object.defineProperty(s,"__esModule",{value:!0});var i=a(17),o=a(18),l=a(19),c=a(45),d=a(46),u=a(47),h=a(48),f=a(49),m=a(12),y=a(32),p=a(33),v=a(31),g=a(1),x={Scope:g.Scope,create:g.create,find:g.find,query:g.query,register:g.register,Container:i.default,Format:o.default,Leaf:l.default,Embed:h.default,Scroll:c.default,Block:u.default,Inline:d.default,Text:f.default,Attributor:{Attribute:m.default,Class:y.default,Style:p.default,Store:v.default}};s.default=x},function(n,s,a){var i=this&&this.__extends||function(){var v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,x){g.__proto__=x}||function(g,x){for(var b in x)x.hasOwnProperty(b)&&(g[b]=x[b])};return function(g,x){v(g,x);function b(){this.constructor=g}g.prototype=x===null?Object.create(x):(b.prototype=x.prototype,new b)}}();Object.defineProperty(s,"__esModule",{value:!0});var o=function(v){i(g,v);function g(x){var b=this;return x="[Parchment] "+x,b=v.call(this,x)||this,b.message=x,b.name=b.constructor.name,b}return g}(Error);s.ParchmentError=o;var l={},c={},d={},u={};s.DATA_KEY="__blot";var h;(function(v){v[v.TYPE=3]="TYPE",v[v.LEVEL=12]="LEVEL",v[v.ATTRIBUTE=13]="ATTRIBUTE",v[v.BLOT=14]="BLOT",v[v.INLINE=7]="INLINE",v[v.BLOCK=11]="BLOCK",v[v.BLOCK_BLOT=10]="BLOCK_BLOT",v[v.INLINE_BLOT=6]="INLINE_BLOT",v[v.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",v[v.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",v[v.ANY=15]="ANY"})(h=s.Scope||(s.Scope={}));function f(v,g){var x=y(v);if(x==null)throw new o("Unable to create "+v+" blot");var b=x,w=v instanceof Node||v.nodeType===Node.TEXT_NODE?v:b.create(g);return new b(w,g)}s.create=f;function m(v,g){return g===void 0&&(g=!1),v==null?null:v[s.DATA_KEY]!=null?v[s.DATA_KEY].blot:g?m(v.parentNode,g):null}s.find=m;function y(v,g){g===void 0&&(g=h.ANY);var x;if(typeof v=="string")x=u[v]||l[v];else if(v instanceof Text||v.nodeType===Node.TEXT_NODE)x=u.text;else if(typeof v=="number")v&h.LEVEL&h.BLOCK?x=u.block:v&h.LEVEL&h.INLINE&&(x=u.inline);else if(v instanceof HTMLElement){var b=(v.getAttribute("class")||"").split(/\s+/);for(var w in b)if(x=c[b[w]],x)break;x=x||d[v.tagName]}return x==null?null:g&h.LEVEL&x.scope&&g&h.TYPE&x.scope?x:null}s.query=y;function p(){for(var v=[],g=0;g<arguments.length;g++)v[g]=arguments[g];if(v.length>1)return v.map(function(w){return p(w)});var x=v[0];if(typeof x.blotName!="string"&&typeof x.attrName!="string")throw new o("Invalid definition");if(x.blotName==="abstract")throw new o("Cannot register abstract class");if(u[x.blotName||x.attrName]=x,typeof x.keyName=="string")l[x.keyName]=x;else if(x.className!=null&&(c[x.className]=x),x.tagName!=null){Array.isArray(x.tagName)?x.tagName=x.tagName.map(function(w){return w.toUpperCase()}):x.tagName=x.tagName.toUpperCase();var b=Array.isArray(x.tagName)?x.tagName:[x.tagName];b.forEach(function(w){(d[w]==null||x.className==null)&&(d[w]=x)})}return x}s.register=p},function(n,s,a){var i=a(51),o=a(11),l=a(3),c=a(20),d="\0",u=function(h){Array.isArray(h)?this.ops=h:h!=null&&Array.isArray(h.ops)?this.ops=h.ops:this.ops=[]};u.prototype.insert=function(h,f){var m={};return h.length===0?this:(m.insert=h,f!=null&&typeof f=="object"&&Object.keys(f).length>0&&(m.attributes=f),this.push(m))},u.prototype.delete=function(h){return h<=0?this:this.push({delete:h})},u.prototype.retain=function(h,f){if(h<=0)return this;var m={retain:h};return f!=null&&typeof f=="object"&&Object.keys(f).length>0&&(m.attributes=f),this.push(m)},u.prototype.push=function(h){var f=this.ops.length,m=this.ops[f-1];if(h=l(!0,{},h),typeof m=="object"){if(typeof h.delete=="number"&&typeof m.delete=="number")return this.ops[f-1]={delete:m.delete+h.delete},this;if(typeof m.delete=="number"&&h.insert!=null&&(f-=1,m=this.ops[f-1],typeof m!="object"))return this.ops.unshift(h),this;if(o(h.attributes,m.attributes)){if(typeof h.insert=="string"&&typeof m.insert=="string")return this.ops[f-1]={insert:m.insert+h.insert},typeof h.attributes=="object"&&(this.ops[f-1].attributes=h.attributes),this;if(typeof h.retain=="number"&&typeof m.retain=="number")return this.ops[f-1]={retain:m.retain+h.retain},typeof h.attributes=="object"&&(this.ops[f-1].attributes=h.attributes),this}}return f===this.ops.length?this.ops.push(h):this.ops.splice(f,0,h),this},u.prototype.chop=function(){var h=this.ops[this.ops.length-1];return h&&h.retain&&!h.attributes&&this.ops.pop(),this},u.prototype.filter=function(h){return this.ops.filter(h)},u.prototype.forEach=function(h){this.ops.forEach(h)},u.prototype.map=function(h){return this.ops.map(h)},u.prototype.partition=function(h){var f=[],m=[];return this.forEach(function(y){var p=h(y)?f:m;p.push(y)}),[f,m]},u.prototype.reduce=function(h,f){return this.ops.reduce(h,f)},u.prototype.changeLength=function(){return this.reduce(function(h,f){return f.insert?h+c.length(f):f.delete?h-f.delete:h},0)},u.prototype.length=function(){return this.reduce(function(h,f){return h+c.length(f)},0)},u.prototype.slice=function(h,f){h=h||0,typeof f!="number"&&(f=1/0);for(var m=[],y=c.iterator(this.ops),p=0;p<f&&y.hasNext();){var v;p<h?v=y.next(h-p):(v=y.next(f-p),m.push(v)),p+=c.length(v)}return new u(m)},u.prototype.compose=function(h){var f=c.iterator(this.ops),m=c.iterator(h.ops),y=[],p=m.peek();if(p!=null&&typeof p.retain=="number"&&p.attributes==null){for(var v=p.retain;f.peekType()==="insert"&&f.peekLength()<=v;)v-=f.peekLength(),y.push(f.next());p.retain-v>0&&m.next(p.retain-v)}for(var g=new u(y);f.hasNext()||m.hasNext();)if(m.peekType()==="insert")g.push(m.next());else if(f.peekType()==="delete")g.push(f.next());else{var x=Math.min(f.peekLength(),m.peekLength()),b=f.next(x),w=m.next(x);if(typeof w.retain=="number"){var N={};typeof b.retain=="number"?N.retain=x:N.insert=b.insert;var S=c.attributes.compose(b.attributes,w.attributes,typeof b.retain=="number");if(S&&(N.attributes=S),g.push(N),!m.hasNext()&&o(g.ops[g.ops.length-1],N)){var _=new u(f.rest());return g.concat(_).chop()}}else typeof w.delete=="number"&&typeof b.retain=="number"&&g.push(w)}return g.chop()},u.prototype.concat=function(h){var f=new u(this.ops.slice());return h.ops.length>0&&(f.push(h.ops[0]),f.ops=f.ops.concat(h.ops.slice(1))),f},u.prototype.diff=function(h,f){if(this.ops===h.ops)return new u;var m=[this,h].map(function(x){return x.map(function(b){if(b.insert!=null)return typeof b.insert=="string"?b.insert:d;var w=x===h?"on":"with";throw new Error("diff() called "+w+" non-document")}).join("")}),y=new u,p=i(m[0],m[1],f),v=c.iterator(this.ops),g=c.iterator(h.ops);return p.forEach(function(x){for(var b=x[1].length;b>0;){var w=0;switch(x[0]){case i.INSERT:w=Math.min(g.peekLength(),b),y.push(g.next(w));break;case i.DELETE:w=Math.min(b,v.peekLength()),v.next(w),y.delete(w);break;case i.EQUAL:w=Math.min(v.peekLength(),g.peekLength(),b);var N=v.next(w),S=g.next(w);o(N.insert,S.insert)?y.retain(w,c.attributes.diff(N.attributes,S.attributes)):y.push(S).delete(w);break}b-=w}}),y.chop()},u.prototype.eachLine=function(h,f){f=f||` 688`;for(var m=c.iterator(this.ops),y=new u,p=0;m.hasNext();){if(m.peekType()!=="insert")return;var v=m.peek(),g=c.length(v)-m.peekLength(),x=typeof v.insert=="string"?v.insert.indexOf(f,g)-g:-1;if(x<0)y.push(m.next());else if(x>0)y.push(m.next(x));else{if(h(y,m.next(1).attributes||{},p)===!1)return;p+=1,y=new u}}y.length()>0&&h(y,{},p)},u.prototype.transform=function(h,f){if(f=!!f,typeof h=="number")return this.transformPosition(h,f);for(var m=c.iterator(this.ops),y=c.iterator(h.ops),p=new u;m.hasNext()||y.hasNext();)if(m.peekType()==="insert"&&(f||y.peekType()!=="insert"))p.retain(c.length(m.next()));else if(y.peekType()==="insert")p.push(y.next());else{var v=Math.min(m.peekLength(),y.peekLength()),g=m.next(v),x=y.next(v);if(g.delete)continue;x.delete?p.push(x):p.retain(v,c.attributes.transform(g.attributes,x.attributes,f))}return p.chop()},u.prototype.transformPosition=function(h,f){f=!!f;for(var m=c.iterator(this.ops),y=0;m.hasNext()&&y<=h;){var p=m.peekLength(),v=m.peekType();if(m.next(),v==="delete"){h-=Math.min(p,h-y);continue}else v==="insert"&&(y<h||!f)&&(h+=p);y+=p}return h},n.exports=u},function(n,s){var a=Object.prototype.hasOwnProperty,i=Object.prototype.toString,o=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c=function(m){return typeof Array.isArray=="function"?Array.isArray(m):i.call(m)==="[object Array]"},d=function(m){if(!m||i.call(m)!=="[object Object]")return!1;var y=a.call(m,"constructor"),p=m.constructor&&m.constructor.prototype&&a.call(m.constructor.prototype,"isPrototypeOf");if(m.constructor&&!y&&!p)return!1;var v;for(v in m);return typeof v>"u"||a.call(m,v)},u=function(m,y){o&&y.name==="__proto__"?o(m,y.name,{enumerable:!0,configurable:!0,value:y.newValue,writable:!0}):m[y.name]=y.newValue},h=function(m,y){if(y==="__proto__")if(a.call(m,y)){if(l)return l(m,y).value}else return;return m[y]};n.exports=function f(){var m,y,p,v,g,x,b=arguments[0],w=1,N=arguments.length,S=!1;for(typeof b=="boolean"&&(S=b,b=arguments[1]||{},w=2),(b==null||typeof b!="object"&&typeof b!="function")&&(b={});w<N;++w)if(m=arguments[w],m!=null)for(y in m)p=h(b,y),v=h(m,y),b!==v&&(S&&v&&(d(v)||(g=c(v)))?(g?(g=!1,x=p&&c(p)?p:[]):x=p&&d(p)?p:{},u(b,{name:y,newValue:f(S,x,v)})):typeof v<"u"&&u(b,{name:y,newValue:v}));return b}},function(n,s,a){Object.defineProperty(s,"__esModule",{value:!0}),s.default=s.BlockEmbed=s.bubbleFormats=void 0;var i=function(){function E(T,O){for(var A=0;A<O.length;A++){var U=O[A];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(T,U.key,U)}}return function(T,O,A){return O&&E(T.prototype,O),A&&E(T,A),T}}(),o=function E(T,O,A){T===null&&(T=Function.prototype);var U=Object.getOwnPropertyDescriptor(T,O);if(U===void 0){var z=Object.getPrototypeOf(T);return z===null?void 0:E(z,O,A)}else{if("value"in U)return U.value;var W=U.get;return W===void 0?void 0:W.call(A)}},l=a(3),c=b(l),d=a(2),u=b(d),h=a(0),f=b(h),m=a(16),y=b(m),p=a(6),v=b(p),g=a(7),x=b(g);function b(E){return E&&E.__esModule?E:{default:E}}function w(E,T){if(!(E instanceof T))throw new TypeError("Cannot call a class as a function")}function N(E,T){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T&&(typeof T=="object"||typeof T=="function")?T:E}function S(E,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);E.prototype=Object.create(T&&T.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(E,T):E.__proto__=T)}var _=1,C=function(E){S(T,E);function T(){return w(this,T),N(this,(T.__proto__||Object.getPrototypeOf(T)).apply(this,arguments))}return i(T,[{key:"attach",value:function(){o(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"attach",this).call(this),this.attributes=new f.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new u.default().insert(this.value(),(0,c.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(A,U){var z=f.default.query(A,f.default.Scope.BLOCK_ATTRIBUTE);z!=null&&this.attributes.attribute(z,U)}},{key:"formatAt",value:function(A,U,z,W){this.format(z,W)}},{key:"insertAt",value:function(A,U,z){if(typeof U=="string"&&U.endsWith(` 689`)){var W=f.default.create($.blotName);this.parent.insertBefore(W,A===0?this:this.next),W.insertAt(0,U.slice(0,-1))}else o(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"insertAt",this).call(this,A,U,z)}}]),T}(f.default.Embed);C.scope=f.default.Scope.BLOCK_BLOT;var $=function(E){S(T,E);function T(O){w(this,T);var A=N(this,(T.__proto__||Object.getPrototypeOf(T)).call(this,O));return A.cache={},A}return i(T,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(f.default.Leaf).reduce(function(A,U){return U.length()===0?A:A.insert(U.value(),k(U))},new u.default).insert(` 690`,k(this))),this.cache.delta}},{key:"deleteAt",value:function(A,U){o(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"deleteAt",this).call(this,A,U),this.cache={}}},{key:"formatAt",value:function(A,U,z,W){U<=0||(f.default.query(z,f.default.Scope.BLOCK)?A+U===this.length()&&this.format(z,W):o(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"formatAt",this).call(this,A,Math.min(U,this.length()-A-1),z,W),this.cache={})}},{key:"insertAt",value:function(A,U,z){if(z!=null)return o(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"insertAt",this).call(this,A,U,z);if(U.length!==0){var W=U.split(` 691`),B=W.shift();B.length>0&&(A<this.length()-1||this.children.tail==null?o(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"insertAt",this).call(this,Math.min(A,this.length()-1),B):this.children.tail.insertAt(this.children.tail.length(),B),this.cache={});var R=this;W.reduce(function(D,P){return R=R.split(D,!0),R.insertAt(0,P),P.length},A+B.length)}}},{key:"insertBefore",value:function(A,U){var z=this.children.head;o(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"insertBefore",this).call(this,A,U),z instanceof y.default&&z.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=o(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"length",this).call(this)+_),this.cache.length}},{key:"moveChildren",value:function(A,U){o(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"moveChildren",this).call(this,A,U),this.cache={}}},{key:"optimize",value:function(A){o(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"optimize",this).call(this,A),this.cache={}}},{key:"path",value:function(A){return o(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"path",this).call(this,A,!0)}},{key:"removeChild",value:function(A){o(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"removeChild",this).call(this,A),this.cache={}}},{key:"split",value:function(A){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(U&&(A===0||A>=this.length()-_)){var z=this.clone();return A===0?(this.parent.insertBefore(z,this),this):(this.parent.insertBefore(z,this.next),z)}else{var W=o(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"split",this).call(this,A,U);return this.cache={},W}}}]),T}(f.default.Block);$.blotName="block",$.tagName="P",$.defaultChild="break",$.allowedChildren=[v.default,f.default.Embed,x.default];function k(E){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return E==null||(typeof E.formats=="function"&&(T=(0,c.default)(T,E.formats())),E.parent==null||E.parent.blotName=="scroll"||E.parent.statics.scope!==E.statics.scope)?T:k(E.parent,T)}s.bubbleFormats=k,s.BlockEmbed=C,s.default=$},function(n,s,a){Object.defineProperty(s,"__esModule",{value:!0}),s.default=s.overload=s.expandConfig=void 0;var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},o=function(){function R(D,P){var I=[],F=!0,Y=!1,H=void 0;try{for(var L=D[Symbol.iterator](),M;!(F=(M=L.next()).done)&&(I.push(M.value),!(P&&I.length===P));F=!0);}catch(Q){Y=!0,H=Q}finally{try{!F&&L.return&&L.return()}finally{if(Y)throw H}}return I}return function(D,P){if(Array.isArray(D))return D;if(Symbol.iterator in Object(D))return R(D,P);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function R(D,P){for(var I=0;I<P.length;I++){var F=P[I];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(D,F.key,F)}}return function(D,P,I){return P&&R(D.prototype,P),I&&R(D,I),D}}();a(50);var c=a(2),d=k(c),u=a(14),h=k(u),f=a(8),m=k(f),y=a(9),p=k(y),v=a(0),g=k(v),x=a(15),b=k(x),w=a(3),N=k(w),S=a(10),_=k(S),C=a(34),$=k(C);function k(R){return R&&R.__esModule?R:{default:R}}function E(R,D,P){return D in R?Object.defineProperty(R,D,{value:P,enumerable:!0,configurable:!0,writable:!0}):R[D]=P,R}function T(R,D){if(!(R instanceof D))throw new TypeError("Cannot call a class as a function")}var O=(0,_.default)("quill"),A=function(){l(R,null,[{key:"debug",value:function(P){P===!0&&(P="log"),_.default.level(P)}},{key:"find",value:function(P){return P.__quill||g.default.find(P)}},{key:"import",value:function(P){return this.imports[P]==null&&O.error("Cannot import "+P+". Are you sure it was registered?"),this.imports[P]}},{key:"register",value:function(P,I){var F=this,Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof P!="string"){var H=P.attrName||P.blotName;typeof H=="string"?this.register("formats/"+H,P,I):Object.keys(P).forEach(function(L){F.register(L,P[L],I)})}else this.imports[P]!=null&&!Y&&O.warn("Overwriting "+P+" with",I),this.imports[P]=I,(P.startsWith("blots/")||P.startsWith("formats/"))&&I.blotName!=="abstract"?g.default.register(I):P.startsWith("modules")&&typeof I.register=="function"&&I.register()}}]);function R(D){var P=this,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(T(this,R),this.options=U(D,I),this.container=this.options.container,this.container==null)return O.error("Invalid Quill container",D);this.options.debug&&R.debug(this.options.debug);var F=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new m.default,this.scroll=g.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new h.default(this.scroll),this.selection=new b.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(m.default.events.EDITOR_CHANGE,function(H){H===m.default.events.TEXT_CHANGE&&P.root.classList.toggle("ql-blank",P.editor.isBlank())}),this.emitter.on(m.default.events.SCROLL_UPDATE,function(H,L){var M=P.selection.lastRange,Q=M&&M.length===0?M.index:void 0;z.call(P,function(){return P.editor.update(null,L,Q)},H)});var Y=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+F+"<p><br></p></div>");this.setContents(Y),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return l(R,[{key:"addContainer",value:function(P){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof P=="string"){var F=P;P=document.createElement("div"),P.classList.add(F)}return this.container.insertBefore(P,I),P}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(P,I,F){var Y=this,H=W(P,I,F),L=o(H,4);return P=L[0],I=L[1],F=L[3],z.call(this,function(){return Y.editor.deleteText(P,I)},F,P,-1*I)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(P),this.container.classList.toggle("ql-disabled",!P)}},{key:"focus",value:function(){var P=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=P,this.scrollIntoView()}},{key:"format",value:function(P,I){var F=this,Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:m.default.sources.API;return z.call(this,function(){var H=F.getSelection(!0),L=new d.default;if(H==null)return L;if(g.default.query(P,g.default.Scope.BLOCK))L=F.editor.formatLine(H.index,H.length,E({},P,I));else{if(H.length===0)return F.selection.format(P,I),L;L=F.editor.formatText(H.index,H.length,E({},P,I))}return F.setSelection(H,m.default.sources.SILENT),L},Y)}},{key:"formatLine",value:function(P,I,F,Y,H){var L=this,M=void 0,Q=W(P,I,F,Y,H),X=o(Q,4);return P=X[0],I=X[1],M=X[2],H=X[3],z.call(this,function(){return L.editor.formatLine(P,I,M)},H,P,0)}},{key:"formatText",value:function(P,I,F,Y,H){var L=this,M=void 0,Q=W(P,I,F,Y,H),X=o(Q,4);return P=X[0],I=X[1],M=X[2],H=X[3],z.call(this,function(){return L.editor.formatText(P,I,M)},H,P,0)}},{key:"getBounds",value:function(P){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,F=void 0;typeof P=="number"?F=this.selection.getBounds(P,I):F=this.selection.getBounds(P.index,P.length);var Y=this.container.getBoundingClientRect();return{bottom:F.bottom-Y.top,height:F.height,left:F.left-Y.left,right:F.right-Y.left,top:F.top-Y.top,width:F.width}}},{key:"getContents",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-P,F=W(P,I),Y=o(F,2);return P=Y[0],I=Y[1],this.editor.getContents(P,I)}},{key:"getFormat",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof P=="number"?this.editor.getFormat(P,I):this.editor.getFormat(P.index,P.length)}},{key:"getIndex",value:function(P){return P.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(P){return this.scroll.leaf(P)}},{key:"getLine",value:function(P){return this.scroll.line(P)}},{key:"getLines",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof P!="number"?this.scroll.lines(P.index,P.length):this.scroll.lines(P,I)}},{key:"getModule",value:function(P){return this.theme.modules[P]}},{key:"getSelection",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return P&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-P,F=W(P,I),Y=o(F,2);return P=Y[0],I=Y[1],this.editor.getText(P,I)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(P,I,F){var Y=this,H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:R.sources.API;return z.call(this,function(){return Y.editor.insertEmbed(P,I,F)},H,P)}},{key:"insertText",value:function(P,I,F,Y,H){var L=this,M=void 0,Q=W(P,0,F,Y,H),X=o(Q,4);return P=X[0],M=X[2],H=X[3],z.call(this,function(){return L.editor.insertText(P,I,M)},H,P,I.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(P,I,F){this.clipboard.dangerouslyPasteHTML(P,I,F)}},{key:"removeFormat",value:function(P,I,F){var Y=this,H=W(P,I,F),L=o(H,4);return P=L[0],I=L[1],F=L[3],z.call(this,function(){return Y.editor.removeFormat(P,I)},F,P)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(P){var I=this,F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:m.default.sources.API;return z.call(this,function(){P=new d.default(P);var Y=I.getLength(),H=I.editor.deleteText(0,Y),L=I.editor.applyDelta(P),M=L.ops[L.ops.length-1];M!=null&&typeof M.insert=="string"&&M.insert[M.insert.length-1]===` 692`&&(I.editor.deleteText(I.getLength()-1,1),L.delete(1));var Q=H.compose(L);return Q},F)}},{key:"setSelection",value:function(P,I,F){if(P==null)this.selection.setRange(null,I||R.sources.API);else{var Y=W(P,I,F),H=o(Y,4);P=H[0],I=H[1],F=H[3],this.selection.setRange(new x.Range(P,I),F),F!==m.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(P){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:m.default.sources.API,F=new d.default().insert(P);return this.setContents(F,I)}},{key:"update",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:m.default.sources.USER,I=this.scroll.update(P);return this.selection.update(P),I}},{key:"updateContents",value:function(P){var I=this,F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:m.default.sources.API;return z.call(this,function(){return P=new d.default(P),I.editor.applyDelta(P,F)},F,!0)}}]),R}();A.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},A.events=m.default.events,A.sources=m.default.sources,A.version="1.3.7",A.imports={delta:d.default,parchment:g.default,"core/module":p.default,"core/theme":$.default};function U(R,D){if(D=(0,N.default)(!0,{container:R,modules:{clipboard:!0,keyboard:!0,history:!0}},D),!D.theme||D.theme===A.DEFAULTS.theme)D.theme=$.default;else if(D.theme=A.import("themes/"+D.theme),D.theme==null)throw new Error("Invalid theme "+D.theme+". Did you register it?");var P=(0,N.default)(!0,{},D.theme.DEFAULTS);[P,D].forEach(function(Y){Y.modules=Y.modules||{},Object.keys(Y.modules).forEach(function(H){Y.modules[H]===!0&&(Y.modules[H]={})})});var I=Object.keys(P.modules).concat(Object.keys(D.modules)),F=I.reduce(function(Y,H){var L=A.import("modules/"+H);return L==null?O.error("Cannot load "+H+" module. Are you sure you registered it?"):Y[H]=L.DEFAULTS||{},Y},{});return D.modules!=null&&D.modules.toolbar&&D.modules.toolbar.constructor!==Object&&(D.modules.toolbar={container:D.modules.toolbar}),D=(0,N.default)(!0,{},A.DEFAULTS,{modules:F},P,D),["bounds","container","scrollingContainer"].forEach(function(Y){typeof D[Y]=="string"&&(D[Y]=document.querySelector(D[Y]))}),D.modules=Object.keys(D.modules).reduce(function(Y,H){return D.modules[H]&&(Y[H]=D.modules[H]),Y},{}),D}function z(R,D,P,I){if(this.options.strict&&!this.isEnabled()&&D===m.default.sources.USER)return new d.default;var F=P==null?null:this.getSelection(),Y=this.editor.delta,H=R();if(F!=null&&(P===!0&&(P=F.index),I==null?F=B(F,H,D):I!==0&&(F=B(F,P,I,D)),this.setSelection(F,m.default.sources.SILENT)),H.length()>0){var L,M=[m.default.events.TEXT_CHANGE,H,Y,D];if((L=this.emitter).emit.apply(L,[m.default.events.EDITOR_CHANGE].concat(M)),D!==m.default.sources.SILENT){var Q;(Q=this.emitter).emit.apply(Q,M)}}return H}function W(R,D,P,I,F){var Y={};return typeof R.index=="number"&&typeof R.length=="number"?typeof D!="number"?(F=I,I=P,P=D,D=R.length,R=R.index):(D=R.length,R=R.index):typeof D!="number"&&(F=I,I=P,P=D,D=0),(typeof P>"u"?"undefined":i(P))==="object"?(Y=P,F=I):typeof P=="string"&&(I!=null?Y[P]=I:F=P),F=F||m.default.sources.API,[R,D,Y,F]}function B(R,D,P,I){if(R==null)return null;var F=void 0,Y=void 0;if(D instanceof d.default){var H=[R.index,R.index+R.length].map(function(X){return D.transformPosition(X,I!==m.default.sources.USER)}),L=o(H,2);F=L[0],Y=L[1]}else{var M=[R.index,R.index+R.length].map(function(X){return X<D||X===D&&I===m.default.sources.USER?X:P>=0?X+P:Math.max(D,X+P)}),Q=o(M,2);F=Q[0],Y=Q[1]}return new x.Range(F,Y-F)}s.expandConfig=U,s.overload=W,s.default=A},function(n,s,a){Object.defineProperty(s,"__esModule",{value:!0});var i=function(){function v(g,x){for(var b=0;b<x.length;b++){var w=x[b];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(g,w.key,w)}}return function(g,x,b){return x&&v(g.prototype,x),b&&v(g,b),g}}(),o=function v(g,x,b){g===null&&(g=Function.prototype);var w=Object.getOwnPropertyDescriptor(g,x);if(w===void 0){var N=Object.getPrototypeOf(g);return N===null?void 0:v(N,x,b)}else{if("value"in w)return w.value;var S=w.get;return S===void 0?void 0:S.call(b)}},l=a(7),c=h(l),d=a(0),u=h(d);function h(v){return v&&v.__esModule?v:{default:v}}function f(v,g){if(!(v instanceof g))throw new TypeError("Cannot call a class as a function")}function m(v,g){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:v}function y(v,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);v.prototype=Object.create(g&&g.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(v,g):v.__proto__=g)}var p=function(v){y(g,v);function g(){return f(this,g),m(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return i(g,[{key:"formatAt",value:function(b,w,N,S){if(g.compare(this.statics.blotName,N)<0&&u.default.query(N,u.default.Scope.BLOT)){var _=this.isolate(b,w);S&&_.wrap(N,S)}else o(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"formatAt",this).call(this,b,w,N,S)}},{key:"optimize",value:function(b){if(o(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"optimize",this).call(this,b),this.parent instanceof g&&g.compare(this.statics.blotName,this.parent.statics.blotName)>0){var w=this.parent.isolate(this.offset(),this.length());this.moveChildren(w),w.wrap(this)}}}],[{key:"compare",value:function(b,w){var N=g.order.indexOf(b),S=g.order.indexOf(w);return N>=0||S>=0?N-S:b===w?0:b<w?-1:1}}]),g}(u.default.Inline);p.allowedChildren=[p,u.default.Embed,c.default],p.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],s.default=p},function(n,s,a){Object.defineProperty(s,"__esModule",{value:!0});var i=a(0),o=l(i);function l(f){return f&&f.__esModule?f:{default:f}}function c(f,m){if(!(f instanceof m))throw new TypeError("Cannot call a class as a function")}function d(f,m){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:f}function u(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);f.prototype=Object.create(m&&m.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(f,m):f.__proto__=m)}var h=function(f){u(m,f);function m(){return c(this,m),d(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return m}(o.default.Text);s.default=h},function(n,s,a){Object.defineProperty(s,"__esModule",{value:!0});var i=function(){function x(b,w){for(var N=0;N<w.length;N++){var S=w[N];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(b,S.key,S)}}return function(b,w,N){return w&&x(b.prototype,w),N&&x(b,N),b}}(),o=function x(b,w,N){b===null&&(b=Function.prototype);var S=Object.getOwnPropertyDescriptor(b,w);if(S===void 0){var _=Object.getPrototypeOf(b);return _===null?void 0:x(_,w,N)}else{if("value"in S)return S.value;var C=S.get;return C===void 0?void 0:C.call(N)}},l=a(54),c=h(l),d=a(10),u=h(d);function h(x){return x&&x.__esModule?x:{default:x}}function f(x,b){if(!(x instanceof b))throw new TypeError("Cannot call a class as a function")}function m(x,b){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:x}function y(x,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);x.prototype=Object.create(b&&b.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(x,b):x.__proto__=b)}var p=(0,u.default)("quill:events"),v=["selectionchange","mousedown","mouseup","click"];v.forEach(function(x){document.addEventListener(x,function(){for(var b=arguments.length,w=Array(b),N=0;N<b;N++)w[N]=arguments[N];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(S){if(S.__quill&&S.__quill.emitter){var _;(_=S.__quill.emitter).handleDOM.apply(_,w)}})})});var g=function(x){y(b,x);function b(){f(this,b);var w=m(this,(b.__proto__||Object.getPrototypeOf(b)).call(this));return w.listeners={},w.on("error",p.error),w}return i(b,[{key:"emit",value:function(){p.log.apply(p,arguments),o(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(N){for(var S=arguments.length,_=Array(S>1?S-1:0),C=1;C<S;C++)_[C-1]=arguments[C];(this.listeners[N.type]||[]).forEach(function($){var k=$.node,E=$.handler;(N.target===k||k.contains(N.target))&&E.apply(void 0,[N].concat(_))})}},{key:"listenDOM",value:function(N,S,_){this.listeners[N]||(this.listeners[N]=[]),this.listeners[N].push({node:S,handler:_})}}]),b}(c.default);g.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},g.sources={API:"api",SILENT:"silent",USER:"user"},s.default=g},function(n,s,a){Object.defineProperty(s,"__esModule",{value:!0});function i(l,c){if(!(l instanceof c))throw new TypeError("Cannot call a class as a function")}var o=function l(c){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};i(this,l),this.quill=c,this.options=d};o.DEFAULTS={},s.default=o},function(n,s,a){Object.defineProperty(s,"__esModule",{value:!0});var i=["error","warn","log","info"],o="warn";function l(d){if(i.indexOf(d)<=i.indexOf(o)){for(var u,h=arguments.length,f=Array(h>1?h-1:0),m=1;m<h;m++)f[m-1]=arguments[m];(u=console)[d].apply(u,f)}}function c(d){return i.reduce(function(u,h){return u[h]=l.bind(console,h,d),u},{})}l.level=c.level=function(d){o=d},s.default=c},function(n,s,a){var i=Array.prototype.slice,o=a(52),l=a(53),c=n.exports=function(f,m,y){return y||(y={}),f===m?!0:f instanceof Date&&m instanceof Date?f.getTime()===m.getTime():!f||!m||typeof f!="object"&&typeof m!="object"?y.strict?f===m:f==m:h(f,m,y)};function d(f){return f==null}function u(f){return!(!f||typeof f!="object"||typeof f.length!="number"||typeof f.copy!="function"||typeof f.slice!="function"||f.length>0&&typeof f[0]!="number")}function h(f,m,y){var p,v;if(d(f)||d(m)||f.prototype!==m.prototype)return!1;if(l(f))return l(m)?(f=i.call(f),m=i.call(m),c(f,m,y)):!1;if(u(f)){if(!u(m)||f.length!==m.length)return!1;for(p=0;p<f.length;p++)if(f[p]!==m[p])return!1;return!0}try{var g=o(f),x=o(m)}catch{return!1}if(g.length!=x.length)return!1;for(g.sort(),x.sort(),p=g.length-1;p>=0;p--)if(g[p]!=x[p])return!1;for(p=g.length-1;p>=0;p--)if(v=g[p],!c(f[v],m[v],y))return!1;return typeof f==typeof m}},function(n,s,a){Object.defineProperty(s,"__esModule",{value:!0});var i=a(1),o=function(){function l(c,d,u){u===void 0&&(u={}),this.attrName=c,this.keyName=d;var h=i.Scope.TYPE&i.Scope.ATTRIBUTE;u.scope!=null?this.scope=u.scope&i.Scope.LEVEL|h:this.scope=i.Scope.ATTRIBUTE,u.whitelist!=null&&(this.whitelist=u.whitelist)}return l.keys=function(c){return[].map.call(c.attributes,function(d){return d.name})},l.prototype.add=function(c,d){return this.canAdd(c,d)?(c.setAttribute(this.keyName,d),!0):!1},l.prototype.canAdd=function(c,d){var u=i.query(c,i.Scope.BLOT&(this.scope|i.Scope.TYPE));return u==null?!1:this.whitelist==null?!0:typeof d=="string"?this.whitelist.indexOf(d.replace(/["']/g,""))>-1:this.whitelist.indexOf(d)>-1},l.prototype.remove=function(c){c.removeAttribute(this.keyName)},l.prototype.value=function(c){var d=c.getAttribute(this.keyName);return this.canAdd(c,d)&&d?d:""},l}();s.default=o},function(n,s,a){Object.defineProperty(s,"__esModule",{value:!0}),s.default=s.Code=void 0;var i=function(){function C($,k){var E=[],T=!0,O=!1,A=void 0;try{for(var U=$[Symbol.iterator](),z;!(T=(z=U.next()).done)&&(E.push(z.value),!(k&&E.length===k));T=!0);}catch(W){O=!0,A=W}finally{try{!T&&U.return&&U.return()}finally{if(O)throw A}}return E}return function($,k){if(Array.isArray($))return $;if(Symbol.iterator in Object($))return C($,k);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function C($,k){for(var E=0;E<k.length;E++){var T=k[E];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty($,T.key,T)}}return function($,k,E){return k&&C($.prototype,k),E&&C($,E),$}}(),l=function C($,k,E){$===null&&($=Function.prototype);var T=Object.getOwnPropertyDescriptor($,k);if(T===void 0){var O=Object.getPrototypeOf($);return O===null?void 0:C(O,k,E)}else{if("value"in T)return T.value;var A=T.get;return A===void 0?void 0:A.call(E)}},c=a(2),d=x(c),u=a(0),h=x(u),f=a(4),m=x(f),y=a(6),p=x(y),v=a(7),g=x(v);function x(C){return C&&C.__esModule?C:{default:C}}function b(C,$){if(!(C instanceof $))throw new TypeError("Cannot call a class as a function")}function w(C,$){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return $&&(typeof $=="object"||typeof $=="function")?$:C}function N(C,$){if(typeof $!="function"&&$!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof $);C.prototype=Object.create($&&$.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),$&&(Object.setPrototypeOf?Object.setPrototypeOf(C,$):C.__proto__=$)}var S=function(C){N($,C);function $(){return b(this,$),w(this,($.__proto__||Object.getPrototypeOf($)).apply(this,arguments))}return $}(p.default);S.blotName="code",S.tagName="CODE";var _=function(C){N($,C);function $(){return b(this,$),w(this,($.__proto__||Object.getPrototypeOf($)).apply(this,arguments))}return o($,[{key:"delta",value:function(){var E=this,T=this.domNode.textContent;return T.endsWith(` 693`)&&(T=T.slice(0,-1)),T.split(` 694`).reduce(function(O,A){return O.insert(A).insert(` 695`,E.formats())},new d.default)}},{key:"format",value:function(E,T){if(!(E===this.statics.blotName&&T)){var O=this.descendant(g.default,this.length()-1),A=i(O,1),U=A[0];U!=null&&U.deleteAt(U.length()-1,1),l($.prototype.__proto__||Object.getPrototypeOf($.prototype),"format",this).call(this,E,T)}}},{key:"formatAt",value:function(E,T,O,A){if(T!==0&&!(h.default.query(O,h.default.Scope.BLOCK)==null||O===this.statics.blotName&&A===this.statics.formats(this.domNode))){var U=this.newlineIndex(E);if(!(U<0||U>=E+T)){var z=this.newlineIndex(E,!0)+1,W=U-z+1,B=this.isolate(z,W),R=B.next;B.format(O,A),R instanceof $&&R.formatAt(0,E-z+T-W,O,A)}}}},{key:"insertAt",value:function(E,T,O){if(O==null){var A=this.descendant(g.default,E),U=i(A,2),z=U[0],W=U[1];z.insertAt(W,T)}}},{key:"length",value:function(){var E=this.domNode.textContent.length;return this.domNode.textContent.endsWith(` 696`)?E:E+1}},{key:"newlineIndex",value:function(E){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(T)return this.domNode.textContent.slice(0,E).lastIndexOf(` 697`);var O=this.domNode.textContent.slice(E).indexOf(` 698`);return O>-1?E+O:-1}},{key:"optimize",value:function(E){this.domNode.textContent.endsWith(` 699`)||this.appendChild(h.default.create("text",` 700`)),l($.prototype.__proto__||Object.getPrototypeOf($.prototype),"optimize",this).call(this,E);var T=this.next;T!=null&&T.prev===this&&T.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===T.statics.formats(T.domNode)&&(T.optimize(E),T.moveChildren(this),T.remove())}},{key:"replace",value:function(E){l($.prototype.__proto__||Object.getPrototypeOf($.prototype),"replace",this).call(this,E),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(T){var O=h.default.find(T);O==null?T.parentNode.removeChild(T):O instanceof h.default.Embed?O.remove():O.unwrap()})}}],[{key:"create",value:function(E){var T=l($.__proto__||Object.getPrototypeOf($),"create",this).call(this,E);return T.setAttribute("spellcheck",!1),T}},{key:"formats",value:function(){return!0}}]),$}(m.default);_.blotName="code-block",_.tagName="PRE",_.TAB=" ",s.Code=S,s.default=_},function(n,s,a){Object.defineProperty(s,"__esModule",{value:!0});var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},o=function(){function R(D,P){var I=[],F=!0,Y=!1,H=void 0;try{for(var L=D[Symbol.iterator](),M;!(F=(M=L.next()).done)&&(I.push(M.value),!(P&&I.length===P));F=!0);}catch(Q){Y=!0,H=Q}finally{try{!F&&L.return&&L.return()}finally{if(Y)throw H}}return I}return function(D,P){if(Array.isArray(D))return D;if(Symbol.iterator in Object(D))return R(D,P);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function R(D,P){for(var I=0;I<P.length;I++){var F=P[I];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(D,F.key,F)}}return function(D,P,I){return P&&R(D.prototype,P),I&&R(D,I),D}}(),c=a(2),d=T(c),u=a(20),h=T(u),f=a(0),m=T(f),y=a(13),p=T(y),v=a(24),g=T(v),x=a(4),b=T(x),w=a(16),N=T(w),S=a(21),_=T(S),C=a(11),$=T(C),k=a(3),E=T(k);function T(R){return R&&R.__esModule?R:{default:R}}function O(R,D,P){return D in R?Object.defineProperty(R,D,{value:P,enumerable:!0,configurable:!0,writable:!0}):R[D]=P,R}function A(R,D){if(!(R instanceof D))throw new TypeError("Cannot call a class as a function")}var U=/^[ -~]*$/,z=function(){function R(D){A(this,R),this.scroll=D,this.delta=this.getDelta()}return l(R,[{key:"applyDelta",value:function(P){var I=this,F=!1;this.scroll.update();var Y=this.scroll.length();return this.scroll.batchStart(),P=B(P),P.reduce(function(H,L){var M=L.retain||L.delete||L.insert.length||1,Q=L.attributes||{};if(L.insert!=null){if(typeof L.insert=="string"){var X=L.insert;X.endsWith(` 701`)&&F&&(F=!1,X=X.slice(0,-1)),H>=Y&&!X.endsWith(` 702`)&&(F=!0),I.scroll.insertAt(H,X);var re=I.scroll.line(H),de=o(re,2),be=de[0],Ee=de[1],Fe=(0,E.default)({},(0,x.bubbleFormats)(be));if(be instanceof b.default){var qe=be.descendant(m.default.Leaf,Ee),xt=o(qe,1),ot=xt[0];Fe=(0,E.default)(Fe,(0,x.bubbleFormats)(ot))}Q=h.default.attributes.diff(Fe,Q)||{}}else if(i(L.insert)==="object"){var ne=Object.keys(L.insert)[0];if(ne==null)return H;I.scroll.insertAt(H,ne,L.insert[ne])}Y+=M}return Object.keys(Q).forEach(function(se){I.scroll.formatAt(H,M,se,Q[se])}),H+M},0),P.reduce(function(H,L){return typeof L.delete=="number"?(I.scroll.deleteAt(H,L.delete),H):H+(L.retain||L.insert.length||1)},0),this.scroll.batchEnd(),this.update(P)}},{key:"deleteText",value:function(P,I){return this.scroll.deleteAt(P,I),this.update(new d.default().retain(P).delete(I))}},{key:"formatLine",value:function(P,I){var F=this,Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(Y).forEach(function(H){if(!(F.scroll.whitelist!=null&&!F.scroll.whitelist[H])){var L=F.scroll.lines(P,Math.max(I,1)),M=I;L.forEach(function(Q){var X=Q.length();if(!(Q instanceof p.default))Q.format(H,Y[H]);else{var re=P-Q.offset(F.scroll),de=Q.newlineIndex(re+M)-re+1;Q.formatAt(re,de,H,Y[H])}M-=X})}}),this.scroll.optimize(),this.update(new d.default().retain(P).retain(I,(0,_.default)(Y)))}},{key:"formatText",value:function(P,I){var F=this,Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(Y).forEach(function(H){F.scroll.formatAt(P,I,H,Y[H])}),this.update(new d.default().retain(P).retain(I,(0,_.default)(Y)))}},{key:"getContents",value:function(P,I){return this.delta.slice(P,P+I)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(P,I){return P.concat(I.delta())},new d.default)}},{key:"getFormat",value:function(P){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,F=[],Y=[];I===0?this.scroll.path(P).forEach(function(L){var M=o(L,1),Q=M[0];Q instanceof b.default?F.push(Q):Q instanceof m.default.Leaf&&Y.push(Q)}):(F=this.scroll.lines(P,I),Y=this.scroll.descendants(m.default.Leaf,P,I));var H=[F,Y].map(function(L){if(L.length===0)return{};for(var M=(0,x.bubbleFormats)(L.shift());Object.keys(M).length>0;){var Q=L.shift();if(Q==null)return M;M=W((0,x.bubbleFormats)(Q),M)}return M});return E.default.apply(E.default,H)}},{key:"getText",value:function(P,I){return this.getContents(P,I).filter(function(F){return typeof F.insert=="string"}).map(function(F){return F.insert}).join("")}},{key:"insertEmbed",value:function(P,I,F){return this.scroll.insertAt(P,I,F),this.update(new d.default().retain(P).insert(O({},I,F)))}},{key:"insertText",value:function(P,I){var F=this,Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return I=I.replace(/\r\n/g,` 703`).replace(/\r/g,` 704`),this.scroll.insertAt(P,I),Object.keys(Y).forEach(function(H){F.scroll.formatAt(P,I.length,H,Y[H])}),this.update(new d.default().retain(P).insert(I,(0,_.default)(Y)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var P=this.scroll.children.head;return P.statics.blotName!==b.default.blotName||P.children.length>1?!1:P.children.head instanceof N.default}},{key:"removeFormat",value:function(P,I){var F=this.getText(P,I),Y=this.scroll.line(P+I),H=o(Y,2),L=H[0],M=H[1],Q=0,X=new d.default;L!=null&&(L instanceof p.default?Q=L.newlineIndex(M)-M+1:Q=L.length()-M,X=L.delta().slice(M,M+Q-1).insert(` 705`));var re=this.getContents(P,I+Q),de=re.diff(new d.default().insert(F).concat(X)),be=new d.default().retain(P).concat(de);return this.applyDelta(be)}},{key:"update",value:function(P){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,Y=this.delta;if(I.length===1&&I[0].type==="characterData"&&I[0].target.data.match(U)&&m.default.find(I[0].target)){var H=m.default.find(I[0].target),L=(0,x.bubbleFormats)(H),M=H.offset(this.scroll),Q=I[0].oldValue.replace(g.default.CONTENTS,""),X=new d.default().insert(Q),re=new d.default().insert(H.value()),de=new d.default().retain(M).concat(X.diff(re,F));P=de.reduce(function(be,Ee){return Ee.insert?be.insert(Ee.insert,L):be.push(Ee)},new d.default),this.delta=Y.compose(P)}else this.delta=this.getDelta(),(!P||!(0,$.default)(Y.compose(P),this.delta))&&(P=Y.diff(this.delta,F));return P}}]),R}();function W(R,D){return Object.keys(D).reduce(function(P,I){return R[I]==null||(D[I]===R[I]?P[I]=D[I]:Array.isArray(D[I])?D[I].indexOf(R[I])<0&&(P[I]=D[I].concat([R[I]])):P[I]=[D[I],R[I]]),P},{})}function B(R){return R.reduce(function(D,P){if(P.insert===1){var I=(0,_.default)(P.attributes);return delete I.image,D.insert({image:P.attributes.image},I)}if(P.attributes!=null&&(P.attributes.list===!0||P.attributes.bullet===!0)&&(P=(0,_.default)(P),P.attributes.list?P.attributes.list="ordered":(P.attributes.list="bullet",delete P.attributes.bullet)),typeof P.insert=="string"){var F=P.insert.replace(/\r\n/g,` 706`).replace(/\r/g,` 707`);return D.insert(F,P.attributes)}return D.push(P)},new d.default)}s.default=z},function(n,s,a){Object.defineProperty(s,"__esModule",{value:!0}),s.default=s.Range=void 0;var i=function(){function C($,k){var E=[],T=!0,O=!1,A=void 0;try{for(var U=$[Symbol.iterator](),z;!(T=(z=U.next()).done)&&(E.push(z.value),!(k&&E.length===k));T=!0);}catch(W){O=!0,A=W}finally{try{!T&&U.return&&U.return()}finally{if(O)throw A}}return E}return function($,k){if(Array.isArray($))return $;if(Symbol.iterator in Object($))return C($,k);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function C($,k){for(var E=0;E<k.length;E++){var T=k[E];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty($,T.key,T)}}return function($,k,E){return k&&C($.prototype,k),E&&C($,E),$}}(),l=a(0),c=g(l),d=a(21),u=g(d),h=a(11),f=g(h),m=a(8),y=g(m),p=a(10),v=g(p);function g(C){return C&&C.__esModule?C:{default:C}}function x(C){if(Array.isArray(C)){for(var $=0,k=Array(C.length);$<C.length;$++)k[$]=C[$];return k}else return Array.from(C)}function b(C,$){if(!(C instanceof $))throw new TypeError("Cannot call a class as a function")}var w=(0,v.default)("quill:selection"),N=function C($){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;b(this,C),this.index=$,this.length=k},S=function(){function C($,k){var E=this;b(this,C),this.emitter=k,this.scroll=$,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=c.default.create("cursor",this),this.lastRange=this.savedRange=new N(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){E.mouseDown||setTimeout(E.update.bind(E,y.default.sources.USER),1)}),this.emitter.on(y.default.events.EDITOR_CHANGE,function(T,O){T===y.default.events.TEXT_CHANGE&&O.length()>0&&E.update(y.default.sources.SILENT)}),this.emitter.on(y.default.events.SCROLL_BEFORE_UPDATE,function(){if(E.hasFocus()){var T=E.getNativeRange();T!=null&&T.start.node!==E.cursor.textNode&&E.emitter.once(y.default.events.SCROLL_UPDATE,function(){try{E.setNativeRange(T.start.node,T.start.offset,T.end.node,T.end.offset)}catch{}})}}),this.emitter.on(y.default.events.SCROLL_OPTIMIZE,function(T,O){if(O.range){var A=O.range,U=A.startNode,z=A.startOffset,W=A.endNode,B=A.endOffset;E.setNativeRange(U,z,W,B)}}),this.update(y.default.sources.SILENT)}return o(C,[{key:"handleComposition",value:function(){var k=this;this.root.addEventListener("compositionstart",function(){k.composing=!0}),this.root.addEventListener("compositionend",function(){if(k.composing=!1,k.cursor.parent){var E=k.cursor.restore();if(!E)return;setTimeout(function(){k.setNativeRange(E.startNode,E.startOffset,E.endNode,E.endOffset)},1)}})}},{key:"handleDragging",value:function(){var k=this;this.emitter.listenDOM("mousedown",document.body,function(){k.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){k.mouseDown=!1,k.update(y.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(k,E){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[k])){this.scroll.update();var T=this.getNativeRange();if(!(T==null||!T.native.collapsed||c.default.query(k,c.default.Scope.BLOCK))){if(T.start.node!==this.cursor.textNode){var O=c.default.find(T.start.node,!1);if(O==null)return;if(O instanceof c.default.Leaf){var A=O.split(T.start.offset);O.parent.insertBefore(this.cursor,A)}else O.insertBefore(this.cursor,T.start.node);this.cursor.attach()}this.cursor.format(k,E),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(k){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,T=this.scroll.length();k=Math.min(k,T-1),E=Math.min(k+E,T-1)-k;var O=void 0,A=this.scroll.leaf(k),U=i(A,2),z=U[0],W=U[1];if(z==null)return null;var B=z.position(W,!0),R=i(B,2);O=R[0],W=R[1];var D=document.createRange();if(E>0){D.setStart(O,W);var P=this.scroll.leaf(k+E),I=i(P,2);if(z=I[0],W=I[1],z==null)return null;var F=z.position(W,!0),Y=i(F,2);return O=Y[0],W=Y[1],D.setEnd(O,W),D.getBoundingClientRect()}else{var H="left",L=void 0;return O instanceof Text?(W<O.data.length?(D.setStart(O,W),D.setEnd(O,W+1)):(D.setStart(O,W-1),D.setEnd(O,W),H="right"),L=D.getBoundingClientRect()):(L=z.domNode.getBoundingClientRect(),W>0&&(H="right")),{bottom:L.top+L.height,height:L.height,left:L[H],right:L[H],top:L.top,width:0}}}},{key:"getNativeRange",value:function(){var k=document.getSelection();if(k==null||k.rangeCount<=0)return null;var E=k.getRangeAt(0);if(E==null)return null;var T=this.normalizeNative(E);return w.info("getNativeRange",T),T}},{key:"getRange",value:function(){var k=this.getNativeRange();if(k==null)return[null,null];var E=this.normalizedToRange(k);return[E,k]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(k){var E=this,T=[[k.start.node,k.start.offset]];k.native.collapsed||T.push([k.end.node,k.end.offset]);var O=T.map(function(z){var W=i(z,2),B=W[0],R=W[1],D=c.default.find(B,!0),P=D.offset(E.scroll);return R===0?P:D instanceof c.default.Container?P+D.length():P+D.index(B,R)}),A=Math.min(Math.max.apply(Math,x(O)),this.scroll.length()-1),U=Math.min.apply(Math,[A].concat(x(O)));return new N(U,A-U)}},{key:"normalizeNative",value:function(k){if(!_(this.root,k.startContainer)||!k.collapsed&&!_(this.root,k.endContainer))return null;var E={start:{node:k.startContainer,offset:k.startOffset},end:{node:k.endContainer,offset:k.endOffset},native:k};return[E.start,E.end].forEach(function(T){for(var O=T.node,A=T.offset;!(O instanceof Text)&&O.childNodes.length>0;)if(O.childNodes.length>A)O=O.childNodes[A],A=0;else if(O.childNodes.length===A)O=O.lastChild,A=O instanceof Text?O.data.length:O.childNodes.length+1;else break;T.node=O,T.offset=A}),E}},{key:"rangeToNative",value:function(k){var E=this,T=k.collapsed?[k.index]:[k.index,k.index+k.length],O=[],A=this.scroll.length();return T.forEach(function(U,z){U=Math.min(A-1,U);var W=void 0,B=E.scroll.leaf(U),R=i(B,2),D=R[0],P=R[1],I=D.position(P,z!==0),F=i(I,2);W=F[0],P=F[1],O.push(W,P)}),O.length<2&&(O=O.concat(O)),O}},{key:"scrollIntoView",value:function(k){var E=this.lastRange;if(E!=null){var T=this.getBounds(E.index,E.length);if(T!=null){var O=this.scroll.length()-1,A=this.scroll.line(Math.min(E.index,O)),U=i(A,1),z=U[0],W=z;if(E.length>0){var B=this.scroll.line(Math.min(E.index+E.length,O)),R=i(B,1);W=R[0]}if(!(z==null||W==null)){var D=k.getBoundingClientRect();T.top<D.top?k.scrollTop-=D.top-T.top:T.bottom>D.bottom&&(k.scrollTop+=T.bottom-D.bottom)}}}}},{key:"setNativeRange",value:function(k,E){var T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:k,O=arguments.length>3&&arguments[3]!==void 0?arguments[3]:E,A=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(w.info("setNativeRange",k,E,T,O),!(k!=null&&(this.root.parentNode==null||k.parentNode==null||T.parentNode==null))){var U=document.getSelection();if(U!=null)if(k!=null){this.hasFocus()||this.root.focus();var z=(this.getNativeRange()||{}).native;if(z==null||A||k!==z.startContainer||E!==z.startOffset||T!==z.endContainer||O!==z.endOffset){k.tagName=="BR"&&(E=[].indexOf.call(k.parentNode.childNodes,k),k=k.parentNode),T.tagName=="BR"&&(O=[].indexOf.call(T.parentNode.childNodes,T),T=T.parentNode);var W=document.createRange();W.setStart(k,E),W.setEnd(T,O),U.removeAllRanges(),U.addRange(W)}}else U.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(k){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:y.default.sources.API;if(typeof E=="string"&&(T=E,E=!1),w.info("setRange",k),k!=null){var O=this.rangeToNative(k);this.setNativeRange.apply(this,x(O).concat([E]))}else this.setNativeRange(null);this.update(T)}},{key:"update",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:y.default.sources.USER,E=this.lastRange,T=this.getRange(),O=i(T,2),A=O[0],U=O[1];if(this.lastRange=A,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,f.default)(E,this.lastRange)){var z;!this.composing&&U!=null&&U.native.collapsed&&U.start.node!==this.cursor.textNode&&this.cursor.restore();var W=[y.default.events.SELECTION_CHANGE,(0,u.default)(this.lastRange),(0,u.default)(E),k];if((z=this.emitter).emit.apply(z,[y.default.events.EDITOR_CHANGE].concat(W)),k!==y.default.sources.SILENT){var B;(B=this.emitter).emit.apply(B,W)}}}}]),C}();function _(C,$){try{$.parentNode}catch{return!1}return $ instanceof Text&&($=$.parentNode),C.contains($)}s.Range=N,s.default=S},function(n,s,a){Object.defineProperty(s,"__esModule",{value:!0});var i=function(){function y(p,v){for(var g=0;g<v.length;g++){var x=v[g];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(p,x.key,x)}}return function(p,v,g){return v&&y(p.prototype,v),g&&y(p,g),p}}(),o=function y(p,v,g){p===null&&(p=Function.prototype);var x=Object.getOwnPropertyDescriptor(p,v);if(x===void 0){var b=Object.getPrototypeOf(p);return b===null?void 0:y(b,v,g)}else{if("value"in x)return x.value;var w=x.get;return w===void 0?void 0:w.call(g)}},l=a(0),c=d(l);function d(y){return y&&y.__esModule?y:{default:y}}function u(y,p){if(!(y instanceof p))throw new TypeError("Cannot call a class as a function")}function h(y,p){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:y}function f(y,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);y.prototype=Object.create(p&&p.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(y,p):y.__proto__=p)}var m=function(y){f(p,y);function p(){return u(this,p),h(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return i(p,[{key:"insertInto",value:function(g,x){g.children.length===0?o(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"insertInto",this).call(this,g,x):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),p}(c.default.Embed);m.blotName="break",m.tagName="BR",s.default=m},function(n,s,a){var i=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var y in m)m.hasOwnProperty(y)&&(f[y]=m[y])};return function(f,m){h(f,m);function y(){this.constructor=f}f.prototype=m===null?Object.create(m):(y.prototype=m.prototype,new y)}}();Object.defineProperty(s,"__esModule",{value:!0});var o=a(44),l=a(30),c=a(1),d=function(h){i(f,h);function f(m){var y=h.call(this,m)||this;return y.build(),y}return f.prototype.appendChild=function(m){this.insertBefore(m)},f.prototype.attach=function(){h.prototype.attach.call(this),this.children.forEach(function(m){m.attach()})},f.prototype.build=function(){var m=this;this.children=new o.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(y){try{var p=u(y);m.insertBefore(p,m.children.head||void 0)}catch(v){if(v instanceof c.ParchmentError)return;throw v}})},f.prototype.deleteAt=function(m,y){if(m===0&&y===this.length())return this.remove();this.children.forEachAt(m,y,function(p,v,g){p.deleteAt(v,g)})},f.prototype.descendant=function(m,y){var p=this.children.find(y),v=p[0],g=p[1];return m.blotName==null&&m(v)||m.blotName!=null&&v instanceof m?[v,g]:v instanceof f?v.descendant(m,g):[null,-1]},f.prototype.descendants=function(m,y,p){y===void 0&&(y=0),p===void 0&&(p=Number.MAX_VALUE);var v=[],g=p;return this.children.forEachAt(y,p,function(x,b,w){(m.blotName==null&&m(x)||m.blotName!=null&&x instanceof m)&&v.push(x),x instanceof f&&(v=v.concat(x.descendants(m,b,g))),g-=w}),v},f.prototype.detach=function(){this.children.forEach(function(m){m.detach()}),h.prototype.detach.call(this)},f.prototype.formatAt=function(m,y,p,v){this.children.forEachAt(m,y,function(g,x,b){g.formatAt(x,b,p,v)})},f.prototype.insertAt=function(m,y,p){var v=this.children.find(m),g=v[0],x=v[1];if(g)g.insertAt(x,y,p);else{var b=p==null?c.create("text",y):c.create(y,p);this.appendChild(b)}},f.prototype.insertBefore=function(m,y){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(p){return m instanceof p}))throw new c.ParchmentError("Cannot insert "+m.statics.blotName+" into "+this.statics.blotName);m.insertInto(this,y)},f.prototype.length=function(){return this.children.reduce(function(m,y){return m+y.length()},0)},f.prototype.moveChildren=function(m,y){this.children.forEach(function(p){m.insertBefore(p,y)})},f.prototype.optimize=function(m){if(h.prototype.optimize.call(this,m),this.children.length===0)if(this.statics.defaultChild!=null){var y=c.create(this.statics.defaultChild);this.appendChild(y),y.optimize(m)}else this.remove()},f.prototype.path=function(m,y){y===void 0&&(y=!1);var p=this.children.find(m,y),v=p[0],g=p[1],x=[[this,m]];return v instanceof f?x.concat(v.path(g,y)):(v!=null&&x.push([v,g]),x)},f.prototype.removeChild=function(m){this.children.remove(m)},f.prototype.replace=function(m){m instanceof f&&m.moveChildren(this),h.prototype.replace.call(this,m)},f.prototype.split=function(m,y){if(y===void 0&&(y=!1),!y){if(m===0)return this;if(m===this.length())return this.next}var p=this.clone();return this.parent.insertBefore(p,this.next),this.children.forEachAt(m,this.length(),function(v,g,x){v=v.split(g,y),p.appendChild(v)}),p},f.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},f.prototype.update=function(m,y){var p=this,v=[],g=[];m.forEach(function(x){x.target===p.domNode&&x.type==="childList"&&(v.push.apply(v,x.addedNodes),g.push.apply(g,x.removedNodes))}),g.forEach(function(x){if(!(x.parentNode!=null&&x.tagName!=="IFRAME"&&document.body.compareDocumentPosition(x)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var b=c.find(x);b!=null&&(b.domNode.parentNode==null||b.domNode.parentNode===p.domNode)&&b.detach()}}),v.filter(function(x){return x.parentNode==p.domNode}).sort(function(x,b){return x===b?0:x.compareDocumentPosition(b)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(x){var b=null;x.nextSibling!=null&&(b=c.find(x.nextSibling));var w=u(x);(w.next!=b||w.next==null)&&(w.parent!=null&&w.parent.removeChild(p),p.insertBefore(w,b||void 0))})},f}(l.default);function u(h){var f=c.find(h);if(f==null)try{f=c.create(h)}catch{f=c.create(c.Scope.INLINE),[].slice.call(h.childNodes).forEach(function(y){f.domNode.appendChild(y)}),h.parentNode&&h.parentNode.replaceChild(f.domNode,h),f.attach()}return f}s.default=d},function(n,s,a){var i=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var y in m)m.hasOwnProperty(y)&&(f[y]=m[y])};return function(f,m){h(f,m);function y(){this.constructor=f}f.prototype=m===null?Object.create(m):(y.prototype=m.prototype,new y)}}();Object.defineProperty(s,"__esModule",{value:!0});var o=a(12),l=a(31),c=a(17),d=a(1),u=function(h){i(f,h);function f(m){var y=h.call(this,m)||this;return y.attributes=new l.default(y.domNode),y}return f.formats=function(m){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return m.tagName.toLowerCase()},f.prototype.format=function(m,y){var p=d.query(m);p instanceof o.default?this.attributes.attribute(p,y):y&&p!=null&&(m!==this.statics.blotName||this.formats()[m]!==y)&&this.replaceWith(m,y)},f.prototype.formats=function(){var m=this.attributes.values(),y=this.statics.formats(this.domNode);return y!=null&&(m[this.statics.blotName]=y),m},f.prototype.replaceWith=function(m,y){var p=h.prototype.replaceWith.call(this,m,y);return this.attributes.copy(p),p},f.prototype.update=function(m,y){var p=this;h.prototype.update.call(this,m,y),m.some(function(v){return v.target===p.domNode&&v.type==="attributes"})&&this.attributes.build()},f.prototype.wrap=function(m,y){var p=h.prototype.wrap.call(this,m,y);return p instanceof f&&p.statics.scope===this.statics.scope&&this.attributes.move(p),p},f}(c.default);s.default=u},function(n,s,a){var i=this&&this.__extends||function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,h){u.__proto__=h}||function(u,h){for(var f in h)h.hasOwnProperty(f)&&(u[f]=h[f])};return function(u,h){d(u,h);function f(){this.constructor=u}u.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}}();Object.defineProperty(s,"__esModule",{value:!0});var o=a(30),l=a(1),c=function(d){i(u,d);function u(){return d!==null&&d.apply(this,arguments)||this}return u.value=function(h){return!0},u.prototype.index=function(h,f){return this.domNode===h||this.domNode.compareDocumentPosition(h)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(f,1):-1},u.prototype.position=function(h,f){var m=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return h>0&&(m+=1),[this.parent.domNode,m]},u.prototype.value=function(){var h;return h={},h[this.statics.blotName]=this.statics.value(this.domNode)||!0,h},u.scope=l.Scope.INLINE_BLOT,u}(o.default);s.default=c},function(n,s,a){var i=a(11),o=a(3),l={attributes:{compose:function(d,u,h){typeof d!="object"&&(d={}),typeof u!="object"&&(u={});var f=o(!0,{},u);h||(f=Object.keys(f).reduce(function(y,p){return f[p]!=null&&(y[p]=f[p]),y},{}));for(var m in d)d[m]!==void 0&&u[m]===void 0&&(f[m]=d[m]);return Object.keys(f).length>0?f:void 0},diff:function(d,u){typeof d!="object"&&(d={}),typeof u!="object"&&(u={});var h=Object.keys(d).concat(Object.keys(u)).reduce(function(f,m){return i(d[m],u[m])||(f[m]=u[m]===void 0?null:u[m]),f},{});return Object.keys(h).length>0?h:void 0},transform:function(d,u,h){if(typeof d!="object")return u;if(typeof u=="object"){if(!h)return u;var f=Object.keys(u).reduce(function(m,y){return d[y]===void 0&&(m[y]=u[y]),m},{});return Object.keys(f).length>0?f:void 0}}},iterator:function(d){return new c(d)},length:function(d){return typeof d.delete=="number"?d.delete:typeof d.retain=="number"?d.retain:typeof d.insert=="string"?d.insert.length:1}};function c(d){this.ops=d,this.index=0,this.offset=0}c.prototype.hasNext=function(){return this.peekLength()<1/0},c.prototype.next=function(d){d||(d=1/0);var u=this.ops[this.index];if(u){var h=this.offset,f=l.length(u);if(d>=f-h?(d=f-h,this.index+=1,this.offset=0):this.offset+=d,typeof u.delete=="number")return{delete:d};var m={};return u.attributes&&(m.attributes=u.attributes),typeof u.retain=="number"?m.retain=d:typeof u.insert=="string"?m.insert=u.insert.substr(h,d):m.insert=u.insert,m}else return{retain:1/0}},c.prototype.peek=function(){return this.ops[this.index]},c.prototype.peekLength=function(){return this.ops[this.index]?l.length(this.ops[this.index])-this.offset:1/0},c.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},c.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var d=this.offset,u=this.index,h=this.next(),f=this.ops.slice(this.index);return this.offset=d,this.index=u,[h].concat(f)}else return[]},n.exports=l},function(n,s){var a=function(){function i(p,v){return v!=null&&p instanceof v}var o;try{o=Map}catch{o=function(){}}var l;try{l=Set}catch{l=function(){}}var c;try{c=Promise}catch{c=function(){}}function d(p,v,g,x,b){typeof v=="object"&&(g=v.depth,x=v.prototype,b=v.includeNonEnumerable,v=v.circular);var w=[],N=[],S=typeof Buffer<"u";typeof v>"u"&&(v=!0),typeof g>"u"&&(g=1/0);function _(C,$){if(C===null)return null;if($===0)return C;var k,E;if(typeof C!="object")return C;if(i(C,o))k=new o;else if(i(C,l))k=new l;else if(i(C,c))k=new c(function(D,P){C.then(function(I){D(_(I,$-1))},function(I){P(_(I,$-1))})});else if(d.__isArray(C))k=[];else if(d.__isRegExp(C))k=new RegExp(C.source,y(C)),C.lastIndex&&(k.lastIndex=C.lastIndex);else if(d.__isDate(C))k=new Date(C.getTime());else{if(S&&Buffer.isBuffer(C))return Buffer.allocUnsafe?k=Buffer.allocUnsafe(C.length):k=new Buffer(C.length),C.copy(k),k;i(C,Error)?k=Object.create(C):typeof x>"u"?(E=Object.getPrototypeOf(C),k=Object.create(E)):(k=Object.create(x),E=x)}if(v){var T=w.indexOf(C);if(T!=-1)return N[T];w.push(C),N.push(k)}i(C,o)&&C.forEach(function(D,P){var I=_(P,$-1),F=_(D,$-1);k.set(I,F)}),i(C,l)&&C.forEach(function(D){var P=_(D,$-1);k.add(P)});for(var O in C){var A;E&&(A=Object.getOwnPropertyDescriptor(E,O)),!(A&&A.set==null)&&(k[O]=_(C[O],$-1))}if(Object.getOwnPropertySymbols)for(var U=Object.getOwnPropertySymbols(C),O=0;O<U.length;O++){var z=U[O],W=Object.getOwnPropertyDescriptor(C,z);W&&!W.enumerable&&!b||(k[z]=_(C[z],$-1),W.enumerable||Object.defineProperty(k,z,{enumerable:!1}))}if(b)for(var B=Object.getOwnPropertyNames(C),O=0;O<B.length;O++){var R=B[O],W=Object.getOwnPropertyDescriptor(C,R);W&&W.enumerable||(k[R]=_(C[R],$-1),Object.defineProperty(k,R,{enumerable:!1}))}return k}return _(p,g)}d.clonePrototype=function(v){if(v===null)return null;var g=function(){};return g.prototype=v,new g};function u(p){return Object.prototype.toString.call(p)}d.__objToStr=u;function h(p){return typeof p=="object"&&u(p)==="[object Date]"}d.__isDate=h;function f(p){return typeof p=="object"&&u(p)==="[object Array]"}d.__isArray=f;function m(p){return typeof p=="object"&&u(p)==="[object RegExp]"}d.__isRegExp=m;function y(p){var v="";return p.global&&(v+="g"),p.ignoreCase&&(v+="i"),p.multiline&&(v+="m"),v}return d.__getRegExpFlags=y,d}();typeof n=="object"&&n.exports&&(n.exports=a)},function(n,s,a){Object.defineProperty(s,"__esModule",{value:!0});var i=function(){function k(E,T){var O=[],A=!0,U=!1,z=void 0;try{for(var W=E[Symbol.iterator](),B;!(A=(B=W.next()).done)&&(O.push(B.value),!(T&&O.length===T));A=!0);}catch(R){U=!0,z=R}finally{try{!A&&W.return&&W.return()}finally{if(U)throw z}}return O}return function(E,T){if(Array.isArray(E))return E;if(Symbol.iterator in Object(E))return k(E,T);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function k(E,T){for(var O=0;O<T.length;O++){var A=T[O];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(E,A.key,A)}}return function(E,T,O){return T&&k(E.prototype,T),O&&k(E,O),E}}(),l=function k(E,T,O){E===null&&(E=Function.prototype);var A=Object.getOwnPropertyDescriptor(E,T);if(A===void 0){var U=Object.getPrototypeOf(E);return U===null?void 0:k(U,T,O)}else{if("value"in A)return A.value;var z=A.get;return z===void 0?void 0:z.call(O)}},c=a(0),d=w(c),u=a(8),h=w(u),f=a(4),m=w(f),y=a(16),p=w(y),v=a(13),g=w(v),x=a(25),b=w(x);function w(k){return k&&k.__esModule?k:{default:k}}function N(k,E){if(!(k instanceof E))throw new TypeError("Cannot call a class as a function")}function S(k,E){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:k}function _(k,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);k.prototype=Object.create(E&&E.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(k,E):k.__proto__=E)}function C(k){return k instanceof m.default||k instanceof f.BlockEmbed}var $=function(k){_(E,k);function E(T,O){N(this,E);var A=S(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,T));return A.emitter=O.emitter,Array.isArray(O.whitelist)&&(A.whitelist=O.whitelist.reduce(function(U,z){return U[z]=!0,U},{})),A.domNode.addEventListener("DOMNodeInserted",function(){}),A.optimize(),A.enable(),A}return o(E,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(O,A){var U=this.line(O),z=i(U,2),W=z[0],B=z[1],R=this.line(O+A),D=i(R,1),P=D[0];if(l(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"deleteAt",this).call(this,O,A),P!=null&&W!==P&&B>0){if(W instanceof f.BlockEmbed||P instanceof f.BlockEmbed){this.optimize();return}if(W instanceof g.default){var I=W.newlineIndex(W.length(),!0);if(I>-1&&(W=W.split(I+1),W===P)){this.optimize();return}}else if(P instanceof g.default){var F=P.newlineIndex(0);F>-1&&P.split(F+1)}var Y=P.children.head instanceof p.default?null:P.children.head;W.moveChildren(P,Y),W.remove()}this.optimize()}},{key:"enable",value:function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",O)}},{key:"formatAt",value:function(O,A,U,z){this.whitelist!=null&&!this.whitelist[U]||(l(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"formatAt",this).call(this,O,A,U,z),this.optimize())}},{key:"insertAt",value:function(O,A,U){if(!(U!=null&&this.whitelist!=null&&!this.whitelist[A])){if(O>=this.length())if(U==null||d.default.query(A,d.default.Scope.BLOCK)==null){var z=d.default.create(this.statics.defaultChild);this.appendChild(z),U==null&&A.endsWith(` 708`)&&(A=A.slice(0,-1)),z.insertAt(0,A,U)}else{var W=d.default.create(A,U);this.appendChild(W)}else l(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"insertAt",this).call(this,O,A,U);this.optimize()}}},{key:"insertBefore",value:function(O,A){if(O.statics.scope===d.default.Scope.INLINE_BLOT){var U=d.default.create(this.statics.defaultChild);U.appendChild(O),O=U}l(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"insertBefore",this).call(this,O,A)}},{key:"leaf",value:function(O){return this.path(O).pop()||[null,-1]}},{key:"line",value:function(O){return O===this.length()?this.line(O-1):this.descendant(C,O)}},{key:"lines",value:function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,U=function z(W,B,R){var D=[],P=R;return W.children.forEachAt(B,R,function(I,F,Y){C(I)?D.push(I):I instanceof d.default.Container&&(D=D.concat(z(I,F,P))),P-=Y}),D};return U(this,O,A)}},{key:"optimize",value:function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(l(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"optimize",this).call(this,O,A),O.length>0&&this.emitter.emit(h.default.events.SCROLL_OPTIMIZE,O,A))}},{key:"path",value:function(O){return l(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"path",this).call(this,O).slice(1)}},{key:"update",value:function(O){if(this.batch!==!0){var A=h.default.sources.USER;typeof O=="string"&&(A=O),Array.isArray(O)||(O=this.observer.takeRecords()),O.length>0&&this.emitter.emit(h.default.events.SCROLL_BEFORE_UPDATE,A,O),l(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"update",this).call(this,O.concat([])),O.length>0&&this.emitter.emit(h.default.events.SCROLL_UPDATE,A,O)}}}]),E}(d.default.Scroll);$.blotName="scroll",$.className="ql-editor",$.tagName="DIV",$.defaultChild="block",$.allowedChildren=[m.default,f.BlockEmbed,b.default],s.default=$},function(n,s,a){Object.defineProperty(s,"__esModule",{value:!0}),s.SHORTKEY=s.default=void 0;var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(L){return typeof L}:function(L){return L&&typeof Symbol=="function"&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L},o=function(){function L(M,Q){var X=[],re=!0,de=!1,be=void 0;try{for(var Ee=M[Symbol.iterator](),Fe;!(re=(Fe=Ee.next()).done)&&(X.push(Fe.value),!(Q&&X.length===Q));re=!0);}catch(qe){de=!0,be=qe}finally{try{!re&&Ee.return&&Ee.return()}finally{if(de)throw be}}return X}return function(M,Q){if(Array.isArray(M))return M;if(Symbol.iterator in Object(M))return L(M,Q);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function L(M,Q){for(var X=0;X<Q.length;X++){var re=Q[X];re.enumerable=re.enumerable||!1,re.configurable=!0,"value"in re&&(re.writable=!0),Object.defineProperty(M,re.key,re)}}return function(M,Q,X){return Q&&L(M.prototype,Q),X&&L(M,X),M}}(),c=a(21),d=k(c),u=a(11),h=k(u),f=a(3),m=k(f),y=a(2),p=k(y),v=a(20),g=k(v),x=a(0),b=k(x),w=a(5),N=k(w),S=a(10),_=k(S),C=a(9),$=k(C);function k(L){return L&&L.__esModule?L:{default:L}}function E(L,M,Q){return M in L?Object.defineProperty(L,M,{value:Q,enumerable:!0,configurable:!0,writable:!0}):L[M]=Q,L}function T(L,M){if(!(L instanceof M))throw new TypeError("Cannot call a class as a function")}function O(L,M){if(!L)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M&&(typeof M=="object"||typeof M=="function")?M:L}function A(L,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof M);L.prototype=Object.create(M&&M.prototype,{constructor:{value:L,enumerable:!1,writable:!0,configurable:!0}}),M&&(Object.setPrototypeOf?Object.setPrototypeOf(L,M):L.__proto__=M)}var U=(0,_.default)("quill:keyboard"),z=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",W=function(L){A(M,L),l(M,null,[{key:"match",value:function(X,re){return re=H(re),["altKey","ctrlKey","metaKey","shiftKey"].some(function(de){return!!re[de]!==X[de]&&re[de]!==null})?!1:re.key===(X.which||X.keyCode)}}]);function M(Q,X){T(this,M);var re=O(this,(M.__proto__||Object.getPrototypeOf(M)).call(this,Q,X));return re.bindings={},Object.keys(re.options.bindings).forEach(function(de){de==="list autofill"&&Q.scroll.whitelist!=null&&!Q.scroll.whitelist.list||re.options.bindings[de]&&re.addBinding(re.options.bindings[de])}),re.addBinding({key:M.keys.ENTER,shiftKey:null},I),re.addBinding({key:M.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(re.addBinding({key:M.keys.BACKSPACE},{collapsed:!0},R),re.addBinding({key:M.keys.DELETE},{collapsed:!0},D)):(re.addBinding({key:M.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},R),re.addBinding({key:M.keys.DELETE},{collapsed:!0,suffix:/^.?$/},D)),re.addBinding({key:M.keys.BACKSPACE},{collapsed:!1},P),re.addBinding({key:M.keys.DELETE},{collapsed:!1},P),re.addBinding({key:M.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},R),re.listen(),re}return l(M,[{key:"addBinding",value:function(X){var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},de=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},be=H(X);if(be==null||be.key==null)return U.warn("Attempted to add invalid keyboard binding",be);typeof re=="function"&&(re={handler:re}),typeof de=="function"&&(de={handler:de}),be=(0,m.default)(be,re,de),this.bindings[be.key]=this.bindings[be.key]||[],this.bindings[be.key].push(be)}},{key:"listen",value:function(){var X=this;this.quill.root.addEventListener("keydown",function(re){if(!re.defaultPrevented){var de=re.which||re.keyCode,be=(X.bindings[de]||[]).filter(function(lt){return M.match(re,lt)});if(be.length!==0){var Ee=X.quill.getSelection();if(!(Ee==null||!X.quill.hasFocus())){var Fe=X.quill.getLine(Ee.index),qe=o(Fe,2),xt=qe[0],ot=qe[1],ne=X.quill.getLeaf(Ee.index),se=o(ne,2),q=se[0],V=se[1],K=Ee.length===0?[q,V]:X.quill.getLeaf(Ee.index+Ee.length),ce=o(K,2),ie=ce[0],ae=ce[1],ye=q instanceof b.default.Text?q.value().slice(0,V):"",De=ie instanceof b.default.Text?ie.value().slice(ae):"",Le={collapsed:Ee.length===0,empty:Ee.length===0&&xt.length()<=1,format:X.quill.getFormat(Ee),offset:ot,prefix:ye,suffix:De},lr=be.some(function(lt){if(lt.collapsed!=null&<.collapsed!==Le.collapsed||lt.empty!=null&<.empty!==Le.empty||lt.offset!=null&<.offset!==Le.offset)return!1;if(Array.isArray(lt.format)){if(lt.format.every(function(Bt){return Le.format[Bt]==null}))return!1}else if(i(lt.format)==="object"&&!Object.keys(lt.format).every(function(Bt){return lt.format[Bt]===!0?Le.format[Bt]!=null:lt.format[Bt]===!1?Le.format[Bt]==null:(0,h.default)(lt.format[Bt],Le.format[Bt])}))return!1;return lt.prefix!=null&&!lt.prefix.test(Le.prefix)||lt.suffix!=null&&!lt.suffix.test(Le.suffix)?!1:lt.handler.call(X,Ee,Le)!==!0});lr&&re.preventDefault()}}}})}}]),M}($.default);W.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},W.DEFAULTS={bindings:{bold:Y("bold"),italic:Y("italic"),underline:Y("underline"),indent:{key:W.keys.TAB,format:["blockquote","indent","list"],handler:function(M,Q){if(Q.collapsed&&Q.offset!==0)return!0;this.quill.format("indent","+1",N.default.sources.USER)}},outdent:{key:W.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(M,Q){if(Q.collapsed&&Q.offset!==0)return!0;this.quill.format("indent","-1",N.default.sources.USER)}},"outdent backspace":{key:W.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(M,Q){Q.format.indent!=null?this.quill.format("indent","-1",N.default.sources.USER):Q.format.list!=null&&this.quill.format("list",!1,N.default.sources.USER)}},"indent code-block":F(!0),"outdent code-block":F(!1),"remove tab":{key:W.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(M){this.quill.deleteText(M.index-1,1,N.default.sources.USER)}},tab:{key:W.keys.TAB,handler:function(M){this.quill.history.cutoff();var Q=new p.default().retain(M.index).delete(M.length).insert(" ");this.quill.updateContents(Q,N.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(M.index+1,N.default.sources.SILENT)}},"list empty enter":{key:W.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(M,Q){this.quill.format("list",!1,N.default.sources.USER),Q.format.indent&&this.quill.format("indent",!1,N.default.sources.USER)}},"checklist enter":{key:W.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(M){var Q=this.quill.getLine(M.index),X=o(Q,2),re=X[0],de=X[1],be=(0,m.default)({},re.formats(),{list:"checked"}),Ee=new p.default().retain(M.index).insert(` 709`,be).retain(re.length()-de-1).retain(1,{list:"unchecked"});this.quill.updateContents(Ee,N.default.sources.USER),this.quill.setSelection(M.index+1,N.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:W.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(M,Q){var X=this.quill.getLine(M.index),re=o(X,2),de=re[0],be=re[1],Ee=new p.default().retain(M.index).insert(` 710`,Q.format).retain(de.length()-be-1).retain(1,{header:null});this.quill.updateContents(Ee,N.default.sources.USER),this.quill.setSelection(M.index+1,N.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(M,Q){var X=Q.prefix.length,re=this.quill.getLine(M.index),de=o(re,2),be=de[0],Ee=de[1];if(Ee>X)return!0;var Fe=void 0;switch(Q.prefix.trim()){case"[]":case"[ ]":Fe="unchecked";break;case"[x]":Fe="checked";break;case"-":case"*":Fe="bullet";break;default:Fe="ordered"}this.quill.insertText(M.index," ",N.default.sources.USER),this.quill.history.cutoff();var qe=new p.default().retain(M.index-Ee).delete(X+1).retain(be.length()-2-Ee).retain(1,{list:Fe});this.quill.updateContents(qe,N.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(M.index-X,N.default.sources.SILENT)}},"code exit":{key:W.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(M){var Q=this.quill.getLine(M.index),X=o(Q,2),re=X[0],de=X[1],be=new p.default().retain(M.index+re.length()-de-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(be,N.default.sources.USER)}},"embed left":B(W.keys.LEFT,!1),"embed left shift":B(W.keys.LEFT,!0),"embed right":B(W.keys.RIGHT,!1),"embed right shift":B(W.keys.RIGHT,!0)}};function B(L,M){var Q,X=L===W.keys.LEFT?"prefix":"suffix";return Q={key:L,shiftKey:M,altKey:null},E(Q,X,/^$/),E(Q,"handler",function(de){var be=de.index;L===W.keys.RIGHT&&(be+=de.length+1);var Ee=this.quill.getLeaf(be),Fe=o(Ee,1),qe=Fe[0];return qe instanceof b.default.Embed?(L===W.keys.LEFT?M?this.quill.setSelection(de.index-1,de.length+1,N.default.sources.USER):this.quill.setSelection(de.index-1,N.default.sources.USER):M?this.quill.setSelection(de.index,de.length+1,N.default.sources.USER):this.quill.setSelection(de.index+de.length+1,N.default.sources.USER),!1):!0}),Q}function R(L,M){if(!(L.index===0||this.quill.getLength()<=1)){var Q=this.quill.getLine(L.index),X=o(Q,1),re=X[0],de={};if(M.offset===0){var be=this.quill.getLine(L.index-1),Ee=o(be,1),Fe=Ee[0];if(Fe!=null&&Fe.length()>1){var qe=re.formats(),xt=this.quill.getFormat(L.index-1,1);de=g.default.attributes.diff(qe,xt)||{}}}var ot=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(M.prefix)?2:1;this.quill.deleteText(L.index-ot,ot,N.default.sources.USER),Object.keys(de).length>0&&this.quill.formatLine(L.index-ot,ot,de,N.default.sources.USER),this.quill.focus()}}function D(L,M){var Q=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(M.suffix)?2:1;if(!(L.index>=this.quill.getLength()-Q)){var X={},re=0,de=this.quill.getLine(L.index),be=o(de,1),Ee=be[0];if(M.offset>=Ee.length()-1){var Fe=this.quill.getLine(L.index+1),qe=o(Fe,1),xt=qe[0];if(xt){var ot=Ee.formats(),ne=this.quill.getFormat(L.index,1);X=g.default.attributes.diff(ot,ne)||{},re=xt.length()}}this.quill.deleteText(L.index,Q,N.default.sources.USER),Object.keys(X).length>0&&this.quill.formatLine(L.index+re-1,Q,X,N.default.sources.USER)}}function P(L){var M=this.quill.getLines(L),Q={};if(M.length>1){var X=M[0].formats(),re=M[M.length-1].formats();Q=g.default.attributes.diff(re,X)||{}}this.quill.deleteText(L,N.default.sources.USER),Object.keys(Q).length>0&&this.quill.formatLine(L.index,1,Q,N.default.sources.USER),this.quill.setSelection(L.index,N.default.sources.SILENT),this.quill.focus()}function I(L,M){var Q=this;L.length>0&&this.quill.scroll.deleteAt(L.index,L.length);var X=Object.keys(M.format).reduce(function(re,de){return b.default.query(de,b.default.Scope.BLOCK)&&!Array.isArray(M.format[de])&&(re[de]=M.format[de]),re},{});this.quill.insertText(L.index,` 711`,X,N.default.sources.USER),this.quill.setSelection(L.index+1,N.default.sources.SILENT),this.quill.focus(),Object.keys(M.format).forEach(function(re){X[re]==null&&(Array.isArray(M.format[re])||re!=="link"&&Q.quill.format(re,M.format[re],N.default.sources.USER))})}function F(L){return{key:W.keys.TAB,shiftKey:!L,format:{"code-block":!0},handler:function(Q){var X=b.default.query("code-block"),re=Q.index,de=Q.length,be=this.quill.scroll.descendant(X,re),Ee=o(be,2),Fe=Ee[0],qe=Ee[1];if(Fe!=null){var xt=this.quill.getIndex(Fe),ot=Fe.newlineIndex(qe,!0)+1,ne=Fe.newlineIndex(xt+qe+de),se=Fe.domNode.textContent.slice(ot,ne).split(` 712`);qe=0,se.forEach(function(q,V){L?(Fe.insertAt(ot+qe,X.TAB),qe+=X.TAB.length,V===0?re+=X.TAB.length:de+=X.TAB.length):q.startsWith(X.TAB)&&(Fe.deleteAt(ot+qe,X.TAB.length),qe-=X.TAB.length,V===0?re-=X.TAB.length:de-=X.TAB.length),qe+=q.length+1}),this.quill.update(N.default.sources.USER),this.quill.setSelection(re,de,N.default.sources.SILENT)}}}}function Y(L){return{key:L[0].toUpperCase(),shortKey:!0,handler:function(Q,X){this.quill.format(L,!X.format[L],N.default.sources.USER)}}}function H(L){if(typeof L=="string"||typeof L=="number")return H({key:L});if((typeof L>"u"?"undefined":i(L))==="object"&&(L=(0,d.default)(L,!1)),typeof L.key=="string")if(W.keys[L.key.toUpperCase()]!=null)L.key=W.keys[L.key.toUpperCase()];else if(L.key.length===1)L.key=L.key.toUpperCase().charCodeAt(0);else return null;return L.shortKey&&(L[z]=L.shortKey,delete L.shortKey),L}s.default=W,s.SHORTKEY=z},function(n,s,a){Object.defineProperty(s,"__esModule",{value:!0});var i=function(){function g(x,b){var w=[],N=!0,S=!1,_=void 0;try{for(var C=x[Symbol.iterator](),$;!(N=($=C.next()).done)&&(w.push($.value),!(b&&w.length===b));N=!0);}catch(k){S=!0,_=k}finally{try{!N&&C.return&&C.return()}finally{if(S)throw _}}return w}return function(x,b){if(Array.isArray(x))return x;if(Symbol.iterator in Object(x))return g(x,b);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function g(x,b,w){x===null&&(x=Function.prototype);var N=Object.getOwnPropertyDescriptor(x,b);if(N===void 0){var S=Object.getPrototypeOf(x);return S===null?void 0:g(S,b,w)}else{if("value"in N)return N.value;var _=N.get;return _===void 0?void 0:_.call(w)}},l=function(){function g(x,b){for(var w=0;w<b.length;w++){var N=b[w];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(x,N.key,N)}}return function(x,b,w){return b&&g(x.prototype,b),w&&g(x,w),x}}(),c=a(0),d=f(c),u=a(7),h=f(u);function f(g){return g&&g.__esModule?g:{default:g}}function m(g,x){if(!(g instanceof x))throw new TypeError("Cannot call a class as a function")}function y(g,x){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:g}function p(g,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);g.prototype=Object.create(x&&x.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(g,x):g.__proto__=x)}var v=function(g){p(x,g),l(x,null,[{key:"value",value:function(){}}]);function x(b,w){m(this,x);var N=y(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,b));return N.selection=w,N.textNode=document.createTextNode(x.CONTENTS),N.domNode.appendChild(N.textNode),N._length=0,N}return l(x,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(w,N){if(this._length!==0)return o(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"format",this).call(this,w,N);for(var S=this,_=0;S!=null&&S.statics.scope!==d.default.Scope.BLOCK_BLOT;)_+=S.offset(S.parent),S=S.parent;S!=null&&(this._length=x.CONTENTS.length,S.optimize(),S.formatAt(_,x.CONTENTS.length,w,N),this._length=0)}},{key:"index",value:function(w,N){return w===this.textNode?0:o(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"index",this).call(this,w,N)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){o(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var w=this.textNode,N=this.selection.getNativeRange(),S=void 0,_=void 0,C=void 0;if(N!=null&&N.start.node===w&&N.end.node===w){var $=[w,N.start.offset,N.end.offset];S=$[0],_=$[1],C=$[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==x.CONTENTS){var k=this.textNode.data.split(x.CONTENTS).join("");this.next instanceof h.default?(S=this.next.domNode,this.next.insertAt(0,k),this.textNode.data=x.CONTENTS):(this.textNode.data=k,this.parent.insertBefore(d.default.create(this.textNode),this),this.textNode=document.createTextNode(x.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),_!=null){var E=[_,C].map(function(O){return Math.max(0,Math.min(S.data.length,O-1))}),T=i(E,2);return _=T[0],C=T[1],{startNode:S,startOffset:_,endNode:S,endOffset:C}}}}},{key:"update",value:function(w,N){var S=this;if(w.some(function(C){return C.type==="characterData"&&C.target===S.textNode})){var _=this.restore();_&&(N.range=_)}}},{key:"value",value:function(){return""}}]),x}(d.default.Embed);v.blotName="cursor",v.className="ql-cursor",v.tagName="span",v.CONTENTS="\uFEFF",s.default=v},function(n,s,a){Object.defineProperty(s,"__esModule",{value:!0});var i=a(0),o=d(i),l=a(4),c=d(l);function d(y){return y&&y.__esModule?y:{default:y}}function u(y,p){if(!(y instanceof p))throw new TypeError("Cannot call a class as a function")}function h(y,p){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:y}function f(y,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);y.prototype=Object.create(p&&p.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(y,p):y.__proto__=p)}var m=function(y){f(p,y);function p(){return u(this,p),h(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return p}(o.default.Container);m.allowedChildren=[c.default,l.BlockEmbed,m],s.default=m},function(n,s,a){Object.defineProperty(s,"__esModule",{value:!0}),s.ColorStyle=s.ColorClass=s.ColorAttributor=void 0;var i=function(){function v(g,x){for(var b=0;b<x.length;b++){var w=x[b];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(g,w.key,w)}}return function(g,x,b){return x&&v(g.prototype,x),b&&v(g,b),g}}(),o=function v(g,x,b){g===null&&(g=Function.prototype);var w=Object.getOwnPropertyDescriptor(g,x);if(w===void 0){var N=Object.getPrototypeOf(g);return N===null?void 0:v(N,x,b)}else{if("value"in w)return w.value;var S=w.get;return S===void 0?void 0:S.call(b)}},l=a(0),c=d(l);function d(v){return v&&v.__esModule?v:{default:v}}function u(v,g){if(!(v instanceof g))throw new TypeError("Cannot call a class as a function")}function h(v,g){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:v}function f(v,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);v.prototype=Object.create(g&&g.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(v,g):v.__proto__=g)}var m=function(v){f(g,v);function g(){return u(this,g),h(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return i(g,[{key:"value",value:function(b){var w=o(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"value",this).call(this,b);return w.startsWith("rgb(")?(w=w.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+w.split(",").map(function(N){return("00"+parseInt(N).toString(16)).slice(-2)}).join("")):w}}]),g}(c.default.Attributor.Style),y=new c.default.Attributor.Class("color","ql-color",{scope:c.default.Scope.INLINE}),p=new m("color","color",{scope:c.default.Scope.INLINE});s.ColorAttributor=m,s.ColorClass=y,s.ColorStyle=p},function(n,s,a){Object.defineProperty(s,"__esModule",{value:!0}),s.sanitize=s.default=void 0;var i=function(){function p(v,g){for(var x=0;x<g.length;x++){var b=g[x];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(v,b.key,b)}}return function(v,g,x){return g&&p(v.prototype,g),x&&p(v,x),v}}(),o=function p(v,g,x){v===null&&(v=Function.prototype);var b=Object.getOwnPropertyDescriptor(v,g);if(b===void 0){var w=Object.getPrototypeOf(v);return w===null?void 0:p(w,g,x)}else{if("value"in b)return b.value;var N=b.get;return N===void 0?void 0:N.call(x)}},l=a(6),c=d(l);function d(p){return p&&p.__esModule?p:{default:p}}function u(p,v){if(!(p instanceof v))throw new TypeError("Cannot call a class as a function")}function h(p,v){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:p}function f(p,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);p.prototype=Object.create(v&&v.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(p,v):p.__proto__=v)}var m=function(p){f(v,p);function v(){return u(this,v),h(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return i(v,[{key:"format",value:function(x,b){if(x!==this.statics.blotName||!b)return o(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"format",this).call(this,x,b);b=this.constructor.sanitize(b),this.domNode.setAttribute("href",b)}}],[{key:"create",value:function(x){var b=o(v.__proto__||Object.getPrototypeOf(v),"create",this).call(this,x);return x=this.sanitize(x),b.setAttribute("href",x),b.setAttribute("rel","noopener noreferrer"),b.setAttribute("target","_blank"),b}},{key:"formats",value:function(x){return x.getAttribute("href")}},{key:"sanitize",value:function(x){return y(x,this.PROTOCOL_WHITELIST)?x:this.SANITIZED_URL}}]),v}(c.default);m.blotName="link",m.tagName="A",m.SANITIZED_URL="about:blank",m.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function y(p,v){var g=document.createElement("a");g.href=p;var x=g.href.slice(0,g.href.indexOf(":"));return v.indexOf(x)>-1}s.default=m,s.sanitize=y},function(n,s,a){Object.defineProperty(s,"__esModule",{value:!0});var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(v){return typeof v}:function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},o=function(){function v(g,x){for(var b=0;b<x.length;b++){var w=x[b];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(g,w.key,w)}}return function(g,x,b){return x&&v(g.prototype,x),b&&v(g,b),g}}(),l=a(23),c=h(l),d=a(107),u=h(d);function h(v){return v&&v.__esModule?v:{default:v}}function f(v,g){if(!(v instanceof g))throw new TypeError("Cannot call a class as a function")}var m=0;function y(v,g){v.setAttribute(g,v.getAttribute(g)!=="true")}var p=function(){function v(g){var x=this;f(this,v),this.select=g,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){x.togglePicker()}),this.label.addEventListener("keydown",function(b){switch(b.keyCode){case c.default.keys.ENTER:x.togglePicker();break;case c.default.keys.ESCAPE:x.escape(),b.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return o(v,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),y(this.label,"aria-expanded"),y(this.options,"aria-hidden")}},{key:"buildItem",value:function(x){var b=this,w=document.createElement("span");return w.tabIndex="0",w.setAttribute("role","button"),w.classList.add("ql-picker-item"),x.hasAttribute("value")&&w.setAttribute("data-value",x.getAttribute("value")),x.textContent&&w.setAttribute("data-label",x.textContent),w.addEventListener("click",function(){b.selectItem(w,!0)}),w.addEventListener("keydown",function(N){switch(N.keyCode){case c.default.keys.ENTER:b.selectItem(w,!0),N.preventDefault();break;case c.default.keys.ESCAPE:b.escape(),N.preventDefault();break}}),w}},{key:"buildLabel",value:function(){var x=document.createElement("span");return x.classList.add("ql-picker-label"),x.innerHTML=u.default,x.tabIndex="0",x.setAttribute("role","button"),x.setAttribute("aria-expanded","false"),this.container.appendChild(x),x}},{key:"buildOptions",value:function(){var x=this,b=document.createElement("span");b.classList.add("ql-picker-options"),b.setAttribute("aria-hidden","true"),b.tabIndex="-1",b.id="ql-picker-options-"+m,m+=1,this.label.setAttribute("aria-controls",b.id),this.options=b,[].slice.call(this.select.options).forEach(function(w){var N=x.buildItem(w);b.appendChild(N),w.selected===!0&&x.selectItem(N)}),this.container.appendChild(b)}},{key:"buildPicker",value:function(){var x=this;[].slice.call(this.select.attributes).forEach(function(b){x.container.setAttribute(b.name,b.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var x=this;this.close(),setTimeout(function(){return x.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(x){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,w=this.container.querySelector(".ql-selected");if(x!==w&&(w!=null&&w.classList.remove("ql-selected"),x!=null&&(x.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(x.parentNode.children,x),x.hasAttribute("data-value")?this.label.setAttribute("data-value",x.getAttribute("data-value")):this.label.removeAttribute("data-value"),x.hasAttribute("data-label")?this.label.setAttribute("data-label",x.getAttribute("data-label")):this.label.removeAttribute("data-label"),b))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":i(Event))==="object"){var N=document.createEvent("Event");N.initEvent("change",!0,!0),this.select.dispatchEvent(N)}this.close()}}},{key:"update",value:function(){var x=void 0;if(this.select.selectedIndex>-1){var b=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];x=this.select.options[this.select.selectedIndex],this.selectItem(b)}else this.selectItem(null);var w=x!=null&&x!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",w)}}]),v}();s.default=p},function(n,s,a){Object.defineProperty(s,"__esModule",{value:!0});var i=a(0),o=U(i),l=a(5),c=U(l),d=a(4),u=U(d),h=a(16),f=U(h),m=a(25),y=U(m),p=a(24),v=U(p),g=a(35),x=U(g),b=a(6),w=U(b),N=a(22),S=U(N),_=a(7),C=U(_),$=a(55),k=U($),E=a(42),T=U(E),O=a(23),A=U(O);function U(z){return z&&z.__esModule?z:{default:z}}c.default.register({"blots/block":u.default,"blots/block/embed":d.BlockEmbed,"blots/break":f.default,"blots/container":y.default,"blots/cursor":v.default,"blots/embed":x.default,"blots/inline":w.default,"blots/scroll":S.default,"blots/text":C.default,"modules/clipboard":k.default,"modules/history":T.default,"modules/keyboard":A.default}),o.default.register(u.default,f.default,v.default,w.default,S.default,C.default),s.default=c.default},function(n,s,a){Object.defineProperty(s,"__esModule",{value:!0});var i=a(1),o=function(){function l(c){this.domNode=c,this.domNode[i.DATA_KEY]={blot:this}}return Object.defineProperty(l.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),l.create=function(c){if(this.tagName==null)throw new i.ParchmentError("Blot definition missing tagName");var d;return Array.isArray(this.tagName)?(typeof c=="string"&&(c=c.toUpperCase(),parseInt(c).toString()===c&&(c=parseInt(c))),typeof c=="number"?d=document.createElement(this.tagName[c-1]):this.tagName.indexOf(c)>-1?d=document.createElement(c):d=document.createElement(this.tagName[0])):d=document.createElement(this.tagName),this.className&&d.classList.add(this.className),d},l.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},l.prototype.clone=function(){var c=this.domNode.cloneNode(!1);return i.create(c)},l.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[i.DATA_KEY]},l.prototype.deleteAt=function(c,d){var u=this.isolate(c,d);u.remove()},l.prototype.formatAt=function(c,d,u,h){var f=this.isolate(c,d);if(i.query(u,i.Scope.BLOT)!=null&&h)f.wrap(u,h);else if(i.query(u,i.Scope.ATTRIBUTE)!=null){var m=i.create(this.statics.scope);f.wrap(m),m.format(u,h)}},l.prototype.insertAt=function(c,d,u){var h=u==null?i.create("text",d):i.create(d,u),f=this.split(c);this.parent.insertBefore(h,f)},l.prototype.insertInto=function(c,d){d===void 0&&(d=null),this.parent!=null&&this.parent.children.remove(this);var u=null;c.children.insertBefore(this,d),d!=null&&(u=d.domNode),(this.domNode.parentNode!=c.domNode||this.domNode.nextSibling!=u)&&c.domNode.insertBefore(this.domNode,u),this.parent=c,this.attach()},l.prototype.isolate=function(c,d){var u=this.split(c);return u.split(d),u},l.prototype.length=function(){return 1},l.prototype.offset=function(c){return c===void 0&&(c=this.parent),this.parent==null||this==c?0:this.parent.children.offset(this)+this.parent.offset(c)},l.prototype.optimize=function(c){this.domNode[i.DATA_KEY]!=null&&delete this.domNode[i.DATA_KEY].mutations},l.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},l.prototype.replace=function(c){c.parent!=null&&(c.parent.insertBefore(this,c.next),c.remove())},l.prototype.replaceWith=function(c,d){var u=typeof c=="string"?i.create(c,d):c;return u.replace(this),u},l.prototype.split=function(c,d){return c===0?this:this.next},l.prototype.update=function(c,d){},l.prototype.wrap=function(c,d){var u=typeof c=="string"?i.create(c,d):c;return this.parent!=null&&this.parent.insertBefore(u,this.next),u.appendChild(this),u},l.blotName="abstract",l}();s.default=o},function(n,s,a){Object.defineProperty(s,"__esModule",{value:!0});var i=a(12),o=a(32),l=a(33),c=a(1),d=function(){function u(h){this.attributes={},this.domNode=h,this.build()}return u.prototype.attribute=function(h,f){f?h.add(this.domNode,f)&&(h.value(this.domNode)!=null?this.attributes[h.attrName]=h:delete this.attributes[h.attrName]):(h.remove(this.domNode),delete this.attributes[h.attrName])},u.prototype.build=function(){var h=this;this.attributes={};var f=i.default.keys(this.domNode),m=o.default.keys(this.domNode),y=l.default.keys(this.domNode);f.concat(m).concat(y).forEach(function(p){var v=c.query(p,c.Scope.ATTRIBUTE);v instanceof i.default&&(h.attributes[v.attrName]=v)})},u.prototype.copy=function(h){var f=this;Object.keys(this.attributes).forEach(function(m){var y=f.attributes[m].value(f.domNode);h.format(m,y)})},u.prototype.move=function(h){var f=this;this.copy(h),Object.keys(this.attributes).forEach(function(m){f.attributes[m].remove(f.domNode)}),this.attributes={}},u.prototype.values=function(){var h=this;return Object.keys(this.attributes).reduce(function(f,m){return f[m]=h.attributes[m].value(h.domNode),f},{})},u}();s.default=d},function(n,s,a){var i=this&&this.__extends||function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,h){u.__proto__=h}||function(u,h){for(var f in h)h.hasOwnProperty(f)&&(u[f]=h[f])};return function(u,h){d(u,h);function f(){this.constructor=u}u.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}}();Object.defineProperty(s,"__esModule",{value:!0});var o=a(12);function l(d,u){var h=d.getAttribute("class")||"";return h.split(/\s+/).filter(function(f){return f.indexOf(u+"-")===0})}var c=function(d){i(u,d);function u(){return d!==null&&d.apply(this,arguments)||this}return u.keys=function(h){return(h.getAttribute("class")||"").split(/\s+/).map(function(f){return f.split("-").slice(0,-1).join("-")})},u.prototype.add=function(h,f){return this.canAdd(h,f)?(this.remove(h),h.classList.add(this.keyName+"-"+f),!0):!1},u.prototype.remove=function(h){var f=l(h,this.keyName);f.forEach(function(m){h.classList.remove(m)}),h.classList.length===0&&h.removeAttribute("class")},u.prototype.value=function(h){var f=l(h,this.keyName)[0]||"",m=f.slice(this.keyName.length+1);return this.canAdd(h,m)?m:""},u}(o.default);s.default=c},function(n,s,a){var i=this&&this.__extends||function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,h){u.__proto__=h}||function(u,h){for(var f in h)h.hasOwnProperty(f)&&(u[f]=h[f])};return function(u,h){d(u,h);function f(){this.constructor=u}u.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}}();Object.defineProperty(s,"__esModule",{value:!0});var o=a(12);function l(d){var u=d.split("-"),h=u.slice(1).map(function(f){return f[0].toUpperCase()+f.slice(1)}).join("");return u[0]+h}var c=function(d){i(u,d);function u(){return d!==null&&d.apply(this,arguments)||this}return u.keys=function(h){return(h.getAttribute("style")||"").split(";").map(function(f){var m=f.split(":");return m[0].trim()})},u.prototype.add=function(h,f){return this.canAdd(h,f)?(h.style[l(this.keyName)]=f,!0):!1},u.prototype.remove=function(h){h.style[l(this.keyName)]="",h.getAttribute("style")||h.removeAttribute("style")},u.prototype.value=function(h){var f=h.style[l(this.keyName)];return this.canAdd(h,f)?f:""},u}(o.default);s.default=c},function(n,s,a){Object.defineProperty(s,"__esModule",{value:!0});var i=function(){function c(d,u){for(var h=0;h<u.length;h++){var f=u[h];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(d,f.key,f)}}return function(d,u,h){return u&&c(d.prototype,u),h&&c(d,h),d}}();function o(c,d){if(!(c instanceof d))throw new TypeError("Cannot call a class as a function")}var l=function(){function c(d,u){o(this,c),this.quill=d,this.options=u,this.modules={}}return i(c,[{key:"init",value:function(){var u=this;Object.keys(this.options.modules).forEach(function(h){u.modules[h]==null&&u.addModule(h)})}},{key:"addModule",value:function(u){var h=this.quill.constructor.import("modules/"+u);return this.modules[u]=new h(this.quill,this.options.modules[u]||{}),this.modules[u]}}]),c}();l.DEFAULTS={modules:{}},l.themes={default:l},s.default=l},function(n,s,a){Object.defineProperty(s,"__esModule",{value:!0});var i=function(){function g(x,b){for(var w=0;w<b.length;w++){var N=b[w];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(x,N.key,N)}}return function(x,b,w){return b&&g(x.prototype,b),w&&g(x,w),x}}(),o=function g(x,b,w){x===null&&(x=Function.prototype);var N=Object.getOwnPropertyDescriptor(x,b);if(N===void 0){var S=Object.getPrototypeOf(x);return S===null?void 0:g(S,b,w)}else{if("value"in N)return N.value;var _=N.get;return _===void 0?void 0:_.call(w)}},l=a(0),c=h(l),d=a(7),u=h(d);function h(g){return g&&g.__esModule?g:{default:g}}function f(g,x){if(!(g instanceof x))throw new TypeError("Cannot call a class as a function")}function m(g,x){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:g}function y(g,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);g.prototype=Object.create(x&&x.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(g,x):g.__proto__=x)}var p="\uFEFF",v=function(g){y(x,g);function x(b){f(this,x);var w=m(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,b));return w.contentNode=document.createElement("span"),w.contentNode.setAttribute("contenteditable",!1),[].slice.call(w.domNode.childNodes).forEach(function(N){w.contentNode.appendChild(N)}),w.leftGuard=document.createTextNode(p),w.rightGuard=document.createTextNode(p),w.domNode.appendChild(w.leftGuard),w.domNode.appendChild(w.contentNode),w.domNode.appendChild(w.rightGuard),w}return i(x,[{key:"index",value:function(w,N){return w===this.leftGuard?0:w===this.rightGuard?1:o(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"index",this).call(this,w,N)}},{key:"restore",value:function(w){var N=void 0,S=void 0,_=w.data.split(p).join("");if(w===this.leftGuard)if(this.prev instanceof u.default){var C=this.prev.length();this.prev.insertAt(C,_),N={startNode:this.prev.domNode,startOffset:C+_.length}}else S=document.createTextNode(_),this.parent.insertBefore(c.default.create(S),this),N={startNode:S,startOffset:_.length};else w===this.rightGuard&&(this.next instanceof u.default?(this.next.insertAt(0,_),N={startNode:this.next.domNode,startOffset:_.length}):(S=document.createTextNode(_),this.parent.insertBefore(c.default.create(S),this.next),N={startNode:S,startOffset:_.length}));return w.data=p,N}},{key:"update",value:function(w,N){var S=this;w.forEach(function(_){if(_.type==="characterData"&&(_.target===S.leftGuard||_.target===S.rightGuard)){var C=S.restore(_.target);C&&(N.range=C)}})}}]),x}(c.default.Embed);s.default=v},function(n,s,a){Object.defineProperty(s,"__esModule",{value:!0}),s.AlignStyle=s.AlignClass=s.AlignAttribute=void 0;var i=a(0),o=l(i);function l(f){return f&&f.__esModule?f:{default:f}}var c={scope:o.default.Scope.BLOCK,whitelist:["right","center","justify"]},d=new o.default.Attributor.Attribute("align","align",c),u=new o.default.Attributor.Class("align","ql-align",c),h=new o.default.Attributor.Style("align","text-align",c);s.AlignAttribute=d,s.AlignClass=u,s.AlignStyle=h},function(n,s,a){Object.defineProperty(s,"__esModule",{value:!0}),s.BackgroundStyle=s.BackgroundClass=void 0;var i=a(0),o=c(i),l=a(26);function c(h){return h&&h.__esModule?h:{default:h}}var d=new o.default.Attributor.Class("background","ql-bg",{scope:o.default.Scope.INLINE}),u=new l.ColorAttributor("background","background-color",{scope:o.default.Scope.INLINE});s.BackgroundClass=d,s.BackgroundStyle=u},function(n,s,a){Object.defineProperty(s,"__esModule",{value:!0}),s.DirectionStyle=s.DirectionClass=s.DirectionAttribute=void 0;var i=a(0),o=l(i);function l(f){return f&&f.__esModule?f:{default:f}}var c={scope:o.default.Scope.BLOCK,whitelist:["rtl"]},d=new o.default.Attributor.Attribute("direction","dir",c),u=new o.default.Attributor.Class("direction","ql-direction",c),h=new o.default.Attributor.Style("direction","direction",c);s.DirectionAttribute=d,s.DirectionClass=u,s.DirectionStyle=h},function(n,s,a){Object.defineProperty(s,"__esModule",{value:!0}),s.FontClass=s.FontStyle=void 0;var i=function(){function g(x,b){for(var w=0;w<b.length;w++){var N=b[w];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(x,N.key,N)}}return function(x,b,w){return b&&g(x.prototype,b),w&&g(x,w),x}}(),o=function g(x,b,w){x===null&&(x=Function.prototype);var N=Object.getOwnPropertyDescriptor(x,b);if(N===void 0){var S=Object.getPrototypeOf(x);return S===null?void 0:g(S,b,w)}else{if("value"in N)return N.value;var _=N.get;return _===void 0?void 0:_.call(w)}},l=a(0),c=d(l);function d(g){return g&&g.__esModule?g:{default:g}}function u(g,x){if(!(g instanceof x))throw new TypeError("Cannot call a class as a function")}function h(g,x){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:g}function f(g,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);g.prototype=Object.create(x&&x.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(g,x):g.__proto__=x)}var m={scope:c.default.Scope.INLINE,whitelist:["serif","monospace"]},y=new c.default.Attributor.Class("font","ql-font",m),p=function(g){f(x,g);function x(){return u(this,x),h(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return i(x,[{key:"value",value:function(w){return o(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"value",this).call(this,w).replace(/["']/g,"")}}]),x}(c.default.Attributor.Style),v=new p("font","font-family",m);s.FontStyle=v,s.FontClass=y},function(n,s,a){Object.defineProperty(s,"__esModule",{value:!0}),s.SizeStyle=s.SizeClass=void 0;var i=a(0),o=l(i);function l(u){return u&&u.__esModule?u:{default:u}}var c=new o.default.Attributor.Class("size","ql-size",{scope:o.default.Scope.INLINE,whitelist:["small","large","huge"]}),d=new o.default.Attributor.Style("size","font-size",{scope:o.default.Scope.INLINE,whitelist:["10px","18px","32px"]});s.SizeClass=c,s.SizeStyle=d},function(n,s,a){n.exports={align:{"":a(76),center:a(77),right:a(78),justify:a(79)},background:a(80),blockquote:a(81),bold:a(82),clean:a(83),code:a(58),"code-block":a(58),color:a(84),direction:{"":a(85),rtl:a(86)},float:{center:a(87),full:a(88),left:a(89),right:a(90)},formula:a(91),header:{1:a(92),2:a(93)},italic:a(94),image:a(95),indent:{"+1":a(96),"-1":a(97)},link:a(98),list:{ordered:a(99),bullet:a(100),check:a(101)},script:{sub:a(102),super:a(103)},strike:a(104),underline:a(105),video:a(106)}},function(n,s,a){Object.defineProperty(s,"__esModule",{value:!0}),s.getLastChangeIndex=s.default=void 0;var i=function(){function b(w,N){for(var S=0;S<N.length;S++){var _=N[S];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(w,_.key,_)}}return function(w,N,S){return N&&b(w.prototype,N),S&&b(w,S),w}}(),o=a(0),l=f(o),c=a(5),d=f(c),u=a(9),h=f(u);function f(b){return b&&b.__esModule?b:{default:b}}function m(b,w){if(!(b instanceof w))throw new TypeError("Cannot call a class as a function")}function y(b,w){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:b}function p(b,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);b.prototype=Object.create(w&&w.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(b,w):b.__proto__=w)}var v=function(b){p(w,b);function w(N,S){m(this,w);var _=y(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,N,S));return _.lastRecorded=0,_.ignoreChange=!1,_.clear(),_.quill.on(d.default.events.EDITOR_CHANGE,function(C,$,k,E){C!==d.default.events.TEXT_CHANGE||_.ignoreChange||(!_.options.userOnly||E===d.default.sources.USER?_.record($,k):_.transform($))}),_.quill.keyboard.addBinding({key:"Z",shortKey:!0},_.undo.bind(_)),_.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},_.redo.bind(_)),/Win/i.test(navigator.platform)&&_.quill.keyboard.addBinding({key:"Y",shortKey:!0},_.redo.bind(_)),_}return i(w,[{key:"change",value:function(S,_){if(this.stack[S].length!==0){var C=this.stack[S].pop();this.stack[_].push(C),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(C[S],d.default.sources.USER),this.ignoreChange=!1;var $=x(C[S]);this.quill.setSelection($)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(S,_){if(S.ops.length!==0){this.stack.redo=[];var C=this.quill.getContents().diff(_),$=Date.now();if(this.lastRecorded+this.options.delay>$&&this.stack.undo.length>0){var k=this.stack.undo.pop();C=C.compose(k.undo),S=k.redo.compose(S)}else this.lastRecorded=$;this.stack.undo.push({redo:S,undo:C}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(S){this.stack.undo.forEach(function(_){_.undo=S.transform(_.undo,!0),_.redo=S.transform(_.redo,!0)}),this.stack.redo.forEach(function(_){_.undo=S.transform(_.undo,!0),_.redo=S.transform(_.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),w}(h.default);v.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function g(b){var w=b.ops[b.ops.length-1];return w==null?!1:w.insert!=null?typeof w.insert=="string"&&w.insert.endsWith(` 713`):w.attributes!=null?Object.keys(w.attributes).some(function(N){return l.default.query(N,l.default.Scope.BLOCK)!=null}):!1}function x(b){var w=b.reduce(function(S,_){return S+=_.delete||0,S},0),N=b.length()-w;return g(b)&&(N-=1),N}s.default=v,s.getLastChangeIndex=x},function(n,s,a){Object.defineProperty(s,"__esModule",{value:!0}),s.default=s.BaseTooltip=void 0;var i=function(){function I(F,Y){for(var H=0;H<Y.length;H++){var L=Y[H];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(F,L.key,L)}}return function(F,Y,H){return Y&&I(F.prototype,Y),H&&I(F,H),F}}(),o=function I(F,Y,H){F===null&&(F=Function.prototype);var L=Object.getOwnPropertyDescriptor(F,Y);if(L===void 0){var M=Object.getPrototypeOf(F);return M===null?void 0:I(M,Y,H)}else{if("value"in L)return L.value;var Q=L.get;return Q===void 0?void 0:Q.call(H)}},l=a(3),c=$(l),d=a(2),u=$(d),h=a(8),f=$(h),m=a(23),y=$(m),p=a(34),v=$(p),g=a(59),x=$(g),b=a(60),w=$(b),N=a(28),S=$(N),_=a(61),C=$(_);function $(I){return I&&I.__esModule?I:{default:I}}function k(I,F){if(!(I instanceof F))throw new TypeError("Cannot call a class as a function")}function E(I,F){if(!I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F&&(typeof F=="object"||typeof F=="function")?F:I}function T(I,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof F);I.prototype=Object.create(F&&F.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),F&&(Object.setPrototypeOf?Object.setPrototypeOf(I,F):I.__proto__=F)}var O=[!1,"center","right","justify"],A=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],U=[!1,"serif","monospace"],z=["1","2","3",!1],W=["small",!1,"large","huge"],B=function(I){T(F,I);function F(Y,H){k(this,F);var L=E(this,(F.__proto__||Object.getPrototypeOf(F)).call(this,Y,H)),M=function Q(X){if(!document.body.contains(Y.root))return document.body.removeEventListener("click",Q);L.tooltip!=null&&!L.tooltip.root.contains(X.target)&&document.activeElement!==L.tooltip.textbox&&!L.quill.hasFocus()&&L.tooltip.hide(),L.pickers!=null&&L.pickers.forEach(function(re){re.container.contains(X.target)||re.close()})};return Y.emitter.listenDOM("click",document.body,M),L}return i(F,[{key:"addModule",value:function(H){var L=o(F.prototype.__proto__||Object.getPrototypeOf(F.prototype),"addModule",this).call(this,H);return H==="toolbar"&&this.extendToolbar(L),L}},{key:"buildButtons",value:function(H,L){H.forEach(function(M){var Q=M.getAttribute("class")||"";Q.split(/\s+/).forEach(function(X){if(X.startsWith("ql-")&&(X=X.slice(3),L[X]!=null))if(X==="direction")M.innerHTML=L[X][""]+L[X].rtl;else if(typeof L[X]=="string")M.innerHTML=L[X];else{var re=M.value||"";re!=null&&L[X][re]&&(M.innerHTML=L[X][re])}})})}},{key:"buildPickers",value:function(H,L){var M=this;this.pickers=H.map(function(X){if(X.classList.contains("ql-align"))return X.querySelector("option")==null&&P(X,O),new w.default(X,L.align);if(X.classList.contains("ql-background")||X.classList.contains("ql-color")){var re=X.classList.contains("ql-background")?"background":"color";return X.querySelector("option")==null&&P(X,A,re==="background"?"#ffffff":"#000000"),new x.default(X,L[re])}else return X.querySelector("option")==null&&(X.classList.contains("ql-font")?P(X,U):X.classList.contains("ql-header")?P(X,z):X.classList.contains("ql-size")&&P(X,W)),new S.default(X)});var Q=function(){M.pickers.forEach(function(re){re.update()})};this.quill.on(f.default.events.EDITOR_CHANGE,Q)}}]),F}(v.default);B.DEFAULTS=(0,c.default)(!0,{},v.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var F=this,Y=this.container.querySelector("input.ql-image[type=file]");Y==null&&(Y=document.createElement("input"),Y.setAttribute("type","file"),Y.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),Y.classList.add("ql-image"),Y.addEventListener("change",function(){if(Y.files!=null&&Y.files[0]!=null){var H=new FileReader;H.onload=function(L){var M=F.quill.getSelection(!0);F.quill.updateContents(new u.default().retain(M.index).delete(M.length).insert({image:L.target.result}),f.default.sources.USER),F.quill.setSelection(M.index+1,f.default.sources.SILENT),Y.value=""},H.readAsDataURL(Y.files[0])}}),this.container.appendChild(Y)),Y.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var R=function(I){T(F,I);function F(Y,H){k(this,F);var L=E(this,(F.__proto__||Object.getPrototypeOf(F)).call(this,Y,H));return L.textbox=L.root.querySelector('input[type="text"]'),L.listen(),L}return i(F,[{key:"listen",value:function(){var H=this;this.textbox.addEventListener("keydown",function(L){y.default.match(L,"enter")?(H.save(),L.preventDefault()):y.default.match(L,"escape")&&(H.cancel(),L.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),L!=null?this.textbox.value=L:H!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+H)||""),this.root.setAttribute("data-mode",H)}},{key:"restoreFocus",value:function(){var H=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=H}},{key:"save",value:function(){var H=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var L=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",H,f.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",H,f.default.sources.USER)),this.quill.root.scrollTop=L;break}case"video":H=D(H);case"formula":{if(!H)break;var M=this.quill.getSelection(!0);if(M!=null){var Q=M.index+M.length;this.quill.insertEmbed(Q,this.root.getAttribute("data-mode"),H,f.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(Q+1," ",f.default.sources.USER),this.quill.setSelection(Q+2,f.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),F}(C.default);function D(I){var F=I.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||I.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return F?(F[1]||"https")+"://www.youtube.com/embed/"+F[2]+"?showinfo=0":(F=I.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(F[1]||"https")+"://player.vimeo.com/video/"+F[2]+"/":I}function P(I,F){var Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;F.forEach(function(H){var L=document.createElement("option");H===Y?L.setAttribute("selected","selected"):L.setAttribute("value",H),I.appendChild(L)})}s.BaseTooltip=R,s.default=B},function(n,s,a){Object.defineProperty(s,"__esModule",{value:!0});var i=function(){function o(){this.head=this.tail=null,this.length=0}return o.prototype.append=function(){for(var l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];this.insertBefore(l[0],null),l.length>1&&this.append.apply(this,l.slice(1))},o.prototype.contains=function(l){for(var c,d=this.iterator();c=d();)if(c===l)return!0;return!1},o.prototype.insertBefore=function(l,c){l&&(l.next=c,c!=null?(l.prev=c.prev,c.prev!=null&&(c.prev.next=l),c.prev=l,c===this.head&&(this.head=l)):this.tail!=null?(this.tail.next=l,l.prev=this.tail,this.tail=l):(l.prev=null,this.head=this.tail=l),this.length+=1)},o.prototype.offset=function(l){for(var c=0,d=this.head;d!=null;){if(d===l)return c;c+=d.length(),d=d.next}return-1},o.prototype.remove=function(l){this.contains(l)&&(l.prev!=null&&(l.prev.next=l.next),l.next!=null&&(l.next.prev=l.prev),l===this.head&&(this.head=l.next),l===this.tail&&(this.tail=l.prev),this.length-=1)},o.prototype.iterator=function(l){return l===void 0&&(l=this.head),function(){var c=l;return l!=null&&(l=l.next),c}},o.prototype.find=function(l,c){c===void 0&&(c=!1);for(var d,u=this.iterator();d=u();){var h=d.length();if(l<h||c&&l===h&&(d.next==null||d.next.length()!==0))return[d,l];l-=h}return[null,0]},o.prototype.forEach=function(l){for(var c,d=this.iterator();c=d();)l(c)},o.prototype.forEachAt=function(l,c,d){if(!(c<=0))for(var u=this.find(l),h=u[0],f=u[1],m,y=l-f,p=this.iterator(h);(m=p())&&y<l+c;){var v=m.length();l>y?d(m,l-y,Math.min(c,y+v-l)):d(m,0,Math.min(v,l+c-y)),y+=v}},o.prototype.map=function(l){return this.reduce(function(c,d){return c.push(l(d)),c},[])},o.prototype.reduce=function(l,c){for(var d,u=this.iterator();d=u();)c=l(c,d);return c},o}();s.default=i},function(n,s,a){var i=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var y in m)m.hasOwnProperty(y)&&(f[y]=m[y])};return function(f,m){h(f,m);function y(){this.constructor=f}f.prototype=m===null?Object.create(m):(y.prototype=m.prototype,new y)}}();Object.defineProperty(s,"__esModule",{value:!0});var o=a(17),l=a(1),c={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},d=100,u=function(h){i(f,h);function f(m){var y=h.call(this,m)||this;return y.scroll=y,y.observer=new MutationObserver(function(p){y.update(p)}),y.observer.observe(y.domNode,c),y.attach(),y}return f.prototype.detach=function(){h.prototype.detach.call(this),this.observer.disconnect()},f.prototype.deleteAt=function(m,y){this.update(),m===0&&y===this.length()?this.children.forEach(function(p){p.remove()}):h.prototype.deleteAt.call(this,m,y)},f.prototype.formatAt=function(m,y,p,v){this.update(),h.prototype.formatAt.call(this,m,y,p,v)},f.prototype.insertAt=function(m,y,p){this.update(),h.prototype.insertAt.call(this,m,y,p)},f.prototype.optimize=function(m,y){var p=this;m===void 0&&(m=[]),y===void 0&&(y={}),h.prototype.optimize.call(this,y);for(var v=[].slice.call(this.observer.takeRecords());v.length>0;)m.push(v.pop());for(var g=function(N,S){S===void 0&&(S=!0),!(N==null||N===p)&&N.domNode.parentNode!=null&&(N.domNode[l.DATA_KEY].mutations==null&&(N.domNode[l.DATA_KEY].mutations=[]),S&&g(N.parent))},x=function(N){N.domNode[l.DATA_KEY]==null||N.domNode[l.DATA_KEY].mutations==null||(N instanceof o.default&&N.children.forEach(x),N.optimize(y))},b=m,w=0;b.length>0;w+=1){if(w>=d)throw new Error("[Parchment] Maximum optimize iterations reached");for(b.forEach(function(N){var S=l.find(N.target,!0);S!=null&&(S.domNode===N.target&&(N.type==="childList"?(g(l.find(N.previousSibling,!1)),[].forEach.call(N.addedNodes,function(_){var C=l.find(_,!1);g(C,!1),C instanceof o.default&&C.children.forEach(function($){g($,!1)})})):N.type==="attributes"&&g(S.prev)),g(S))}),this.children.forEach(x),b=[].slice.call(this.observer.takeRecords()),v=b.slice();v.length>0;)m.push(v.pop())}},f.prototype.update=function(m,y){var p=this;y===void 0&&(y={}),m=m||this.observer.takeRecords(),m.map(function(v){var g=l.find(v.target,!0);return g==null?null:g.domNode[l.DATA_KEY].mutations==null?(g.domNode[l.DATA_KEY].mutations=[v],g):(g.domNode[l.DATA_KEY].mutations.push(v),null)}).forEach(function(v){v==null||v===p||v.domNode[l.DATA_KEY]==null||v.update(v.domNode[l.DATA_KEY].mutations||[],y)}),this.domNode[l.DATA_KEY].mutations!=null&&h.prototype.update.call(this,this.domNode[l.DATA_KEY].mutations,y),this.optimize(m,y)},f.blotName="scroll",f.defaultChild="block",f.scope=l.Scope.BLOCK_BLOT,f.tagName="DIV",f}(o.default);s.default=u},function(n,s,a){var i=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,f){h.__proto__=f}||function(h,f){for(var m in f)f.hasOwnProperty(m)&&(h[m]=f[m])};return function(h,f){u(h,f);function m(){this.constructor=h}h.prototype=f===null?Object.create(f):(m.prototype=f.prototype,new m)}}();Object.defineProperty(s,"__esModule",{value:!0});var o=a(18),l=a(1);function c(u,h){if(Object.keys(u).length!==Object.keys(h).length)return!1;for(var f in u)if(u[f]!==h[f])return!1;return!0}var d=function(u){i(h,u);function h(){return u!==null&&u.apply(this,arguments)||this}return h.formats=function(f){if(f.tagName!==h.tagName)return u.formats.call(this,f)},h.prototype.format=function(f,m){var y=this;f===this.statics.blotName&&!m?(this.children.forEach(function(p){p instanceof o.default||(p=p.wrap(h.blotName,!0)),y.attributes.copy(p)}),this.unwrap()):u.prototype.format.call(this,f,m)},h.prototype.formatAt=function(f,m,y,p){if(this.formats()[y]!=null||l.query(y,l.Scope.ATTRIBUTE)){var v=this.isolate(f,m);v.format(y,p)}else u.prototype.formatAt.call(this,f,m,y,p)},h.prototype.optimize=function(f){u.prototype.optimize.call(this,f);var m=this.formats();if(Object.keys(m).length===0)return this.unwrap();var y=this.next;y instanceof h&&y.prev===this&&c(m,y.formats())&&(y.moveChildren(this),y.remove())},h.blotName="inline",h.scope=l.Scope.INLINE_BLOT,h.tagName="SPAN",h}(o.default);s.default=d},function(n,s,a){var i=this&&this.__extends||function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,h){u.__proto__=h}||function(u,h){for(var f in h)h.hasOwnProperty(f)&&(u[f]=h[f])};return function(u,h){d(u,h);function f(){this.constructor=u}u.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}}();Object.defineProperty(s,"__esModule",{value:!0});var o=a(18),l=a(1),c=function(d){i(u,d);function u(){return d!==null&&d.apply(this,arguments)||this}return u.formats=function(h){var f=l.query(u.blotName).tagName;if(h.tagName!==f)return d.formats.call(this,h)},u.prototype.format=function(h,f){l.query(h,l.Scope.BLOCK)!=null&&(h===this.statics.blotName&&!f?this.replaceWith(u.blotName):d.prototype.format.call(this,h,f))},u.prototype.formatAt=function(h,f,m,y){l.query(m,l.Scope.BLOCK)!=null?this.format(m,y):d.prototype.formatAt.call(this,h,f,m,y)},u.prototype.insertAt=function(h,f,m){if(m==null||l.query(f,l.Scope.INLINE)!=null)d.prototype.insertAt.call(this,h,f,m);else{var y=this.split(h),p=l.create(f,m);y.parent.insertBefore(p,y)}},u.prototype.update=function(h,f){navigator.userAgent.match(/Trident/)?this.build():d.prototype.update.call(this,h,f)},u.blotName="block",u.scope=l.Scope.BLOCK_BLOT,u.tagName="P",u}(o.default);s.default=c},function(n,s,a){var i=this&&this.__extends||function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,u){d.__proto__=u}||function(d,u){for(var h in u)u.hasOwnProperty(h)&&(d[h]=u[h])};return function(d,u){c(d,u);function h(){this.constructor=d}d.prototype=u===null?Object.create(u):(h.prototype=u.prototype,new h)}}();Object.defineProperty(s,"__esModule",{value:!0});var o=a(19),l=function(c){i(d,c);function d(){return c!==null&&c.apply(this,arguments)||this}return d.formats=function(u){},d.prototype.format=function(u,h){c.prototype.formatAt.call(this,0,this.length(),u,h)},d.prototype.formatAt=function(u,h,f,m){u===0&&h===this.length()?this.format(f,m):c.prototype.formatAt.call(this,u,h,f,m)},d.prototype.formats=function(){return this.statics.formats(this.domNode)},d}(o.default);s.default=l},function(n,s,a){var i=this&&this.__extends||function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,h){u.__proto__=h}||function(u,h){for(var f in h)h.hasOwnProperty(f)&&(u[f]=h[f])};return function(u,h){d(u,h);function f(){this.constructor=u}u.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}}();Object.defineProperty(s,"__esModule",{value:!0});var o=a(19),l=a(1),c=function(d){i(u,d);function u(h){var f=d.call(this,h)||this;return f.text=f.statics.value(f.domNode),f}return u.create=function(h){return document.createTextNode(h)},u.value=function(h){var f=h.data;return f.normalize&&(f=f.normalize()),f},u.prototype.deleteAt=function(h,f){this.domNode.data=this.text=this.text.slice(0,h)+this.text.slice(h+f)},u.prototype.index=function(h,f){return this.domNode===h?f:-1},u.prototype.insertAt=function(h,f,m){m==null?(this.text=this.text.slice(0,h)+f+this.text.slice(h),this.domNode.data=this.text):d.prototype.insertAt.call(this,h,f,m)},u.prototype.length=function(){return this.text.length},u.prototype.optimize=function(h){d.prototype.optimize.call(this,h),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof u&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},u.prototype.position=function(h,f){return[this.domNode,h]},u.prototype.split=function(h,f){if(f===void 0&&(f=!1),!f){if(h===0)return this;if(h===this.length())return this.next}var m=l.create(this.domNode.splitText(h));return this.parent.insertBefore(m,this.next),this.text=this.statics.value(this.domNode),m},u.prototype.update=function(h,f){var m=this;h.some(function(y){return y.type==="characterData"&&y.target===m.domNode})&&(this.text=this.statics.value(this.domNode))},u.prototype.value=function(){return this.text},u.blotName="text",u.scope=l.Scope.INLINE_BLOT,u}(o.default);s.default=c},function(n,s,a){var i=document.createElement("div");if(i.classList.toggle("test-class",!1),i.classList.contains("test-class")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(l,c){return arguments.length>1&&!this.contains(l)==!c?c:o.call(this,l)}}String.prototype.startsWith||(String.prototype.startsWith=function(l,c){return c=c||0,this.substr(c,l.length)===l}),String.prototype.endsWith||(String.prototype.endsWith=function(l,c){var d=this.toString();(typeof c!="number"||!isFinite(c)||Math.floor(c)!==c||c>d.length)&&(c=d.length),c-=l.length;var u=d.indexOf(l,c);return u!==-1&&u===c}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(c){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof c!="function")throw new TypeError("predicate must be a function");for(var d=Object(this),u=d.length>>>0,h=arguments[1],f,m=0;m<u;m++)if(f=d[m],c.call(h,f,m,d))return f}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(n,s){var a=-1,i=1,o=0;function l(w,N,S){if(w==N)return w?[[o,w]]:[];(S<0||w.length<S)&&(S=null);var _=h(w,N),C=w.substring(0,_);w=w.substring(_),N=N.substring(_),_=f(w,N);var $=w.substring(w.length-_);w=w.substring(0,w.length-_),N=N.substring(0,N.length-_);var k=c(w,N);return C&&k.unshift([o,C]),$&&k.push([o,$]),y(k),S!=null&&(k=g(k,S)),k=x(k),k}function c(w,N){var S;if(!w)return[[i,N]];if(!N)return[[a,w]];var _=w.length>N.length?w:N,C=w.length>N.length?N:w,$=_.indexOf(C);if($!=-1)return S=[[i,_.substring(0,$)],[o,C],[i,_.substring($+C.length)]],w.length>N.length&&(S[0][0]=S[2][0]=a),S;if(C.length==1)return[[a,w],[i,N]];var k=m(w,N);if(k){var E=k[0],T=k[1],O=k[2],A=k[3],U=k[4],z=l(E,O),W=l(T,A);return z.concat([[o,U]],W)}return d(w,N)}function d(w,N){for(var S=w.length,_=N.length,C=Math.ceil((S+_)/2),$=C,k=2*C,E=new Array(k),T=new Array(k),O=0;O<k;O++)E[O]=-1,T[O]=-1;E[$+1]=0,T[$+1]=0;for(var A=S-_,U=A%2!=0,z=0,W=0,B=0,R=0,D=0;D<C;D++){for(var P=-D+z;P<=D-W;P+=2){var I=$+P,F;P==-D||P!=D&&E[I-1]<E[I+1]?F=E[I+1]:F=E[I-1]+1;for(var Y=F-P;F<S&&Y<_&&w.charAt(F)==N.charAt(Y);)F++,Y++;if(E[I]=F,F>S)W+=2;else if(Y>_)z+=2;else if(U){var H=$+A-P;if(H>=0&&H<k&&T[H]!=-1){var L=S-T[H];if(F>=L)return u(w,N,F,Y)}}}for(var M=-D+B;M<=D-R;M+=2){var H=$+M,L;M==-D||M!=D&&T[H-1]<T[H+1]?L=T[H+1]:L=T[H-1]+1;for(var Q=L-M;L<S&&Q<_&&w.charAt(S-L-1)==N.charAt(_-Q-1);)L++,Q++;if(T[H]=L,L>S)R+=2;else if(Q>_)B+=2;else if(!U){var I=$+A-M;if(I>=0&&I<k&&E[I]!=-1){var F=E[I],Y=$+F-I;if(L=S-L,F>=L)return u(w,N,F,Y)}}}}return[[a,w],[i,N]]}function u(w,N,S,_){var C=w.substring(0,S),$=N.substring(0,_),k=w.substring(S),E=N.substring(_),T=l(C,$),O=l(k,E);return T.concat(O)}function h(w,N){if(!w||!N||w.charAt(0)!=N.charAt(0))return 0;for(var S=0,_=Math.min(w.length,N.length),C=_,$=0;S<C;)w.substring($,C)==N.substring($,C)?(S=C,$=S):_=C,C=Math.floor((_-S)/2+S);return C}function f(w,N){if(!w||!N||w.charAt(w.length-1)!=N.charAt(N.length-1))return 0;for(var S=0,_=Math.min(w.length,N.length),C=_,$=0;S<C;)w.substring(w.length-C,w.length-$)==N.substring(N.length-C,N.length-$)?(S=C,$=S):_=C,C=Math.floor((_-S)/2+S);return C}function m(w,N){var S=w.length>N.length?w:N,_=w.length>N.length?N:w;if(S.length<4||_.length*2<S.length)return null;function C(W,B,R){for(var D=W.substring(R,R+Math.floor(W.length/4)),P=-1,I="",F,Y,H,L;(P=B.indexOf(D,P+1))!=-1;){var M=h(W.substring(R),B.substring(P)),Q=f(W.substring(0,R),B.substring(0,P));I.length<Q+M&&(I=B.substring(P-Q,P)+B.substring(P,P+M),F=W.substring(0,R-Q),Y=W.substring(R+M),H=B.substring(0,P-Q),L=B.substring(P+M))}return I.length*2>=W.length?[F,Y,H,L,I]:null}var $=C(S,_,Math.ceil(S.length/4)),k=C(S,_,Math.ceil(S.length/2)),E;if(!$&&!k)return null;k?$?E=$[4].length>k[4].length?$:k:E=k:E=$;var T,O,A,U;w.length>N.length?(T=E[0],O=E[1],A=E[2],U=E[3]):(A=E[0],U=E[1],T=E[2],O=E[3]);var z=E[4];return[T,O,A,U,z]}function y(w){w.push([o,""]);for(var N=0,S=0,_=0,C="",$="",k;N<w.length;)switch(w[N][0]){case i:_++,$+=w[N][1],N++;break;case a:S++,C+=w[N][1],N++;break;case o:S+_>1?(S!==0&&_!==0&&(k=h($,C),k!==0&&(N-S-_>0&&w[N-S-_-1][0]==o?w[N-S-_-1][1]+=$.substring(0,k):(w.splice(0,0,[o,$.substring(0,k)]),N++),$=$.substring(k),C=C.substring(k)),k=f($,C),k!==0&&(w[N][1]=$.substring($.length-k)+w[N][1],$=$.substring(0,$.length-k),C=C.substring(0,C.length-k))),S===0?w.splice(N-_,S+_,[i,$]):_===0?w.splice(N-S,S+_,[a,C]):w.splice(N-S-_,S+_,[a,C],[i,$]),N=N-S-_+(S?1:0)+(_?1:0)+1):N!==0&&w[N-1][0]==o?(w[N-1][1]+=w[N][1],w.splice(N,1)):N++,_=0,S=0,C="",$="";break}w[w.length-1][1]===""&&w.pop();var E=!1;for(N=1;N<w.length-1;)w[N-1][0]==o&&w[N+1][0]==o&&(w[N][1].substring(w[N][1].length-w[N-1][1].length)==w[N-1][1]?(w[N][1]=w[N-1][1]+w[N][1].substring(0,w[N][1].length-w[N-1][1].length),w[N+1][1]=w[N-1][1]+w[N+1][1],w.splice(N-1,1),E=!0):w[N][1].substring(0,w[N+1][1].length)==w[N+1][1]&&(w[N-1][1]+=w[N+1][1],w[N][1]=w[N][1].substring(w[N+1][1].length)+w[N+1][1],w.splice(N+1,1),E=!0)),N++;E&&y(w)}var p=l;p.INSERT=i,p.DELETE=a,p.EQUAL=o,n.exports=p;function v(w,N){if(N===0)return[o,w];for(var S=0,_=0;_<w.length;_++){var C=w[_];if(C[0]===a||C[0]===o){var $=S+C[1].length;if(N===$)return[_+1,w];if(N<$){w=w.slice();var k=N-S,E=[C[0],C[1].slice(0,k)],T=[C[0],C[1].slice(k)];return w.splice(_,1,E,T),[_+1,w]}else S=$}}throw new Error("cursor_pos is out of bounds!")}function g(w,N){var S=v(w,N),_=S[1],C=S[0],$=_[C],k=_[C+1];if($==null)return w;if($[0]!==o)return w;if(k!=null&&$[1]+k[1]===k[1]+$[1])return _.splice(C,2,k,$),b(_,C,2);if(k!=null&&k[1].indexOf($[1])===0){_.splice(C,2,[k[0],$[1]],[0,$[1]]);var E=k[1].slice($[1].length);return E.length>0&&_.splice(C+2,0,[k[0],E]),b(_,C,3)}else return w}function x(w){for(var N=!1,S=function(k){return k.charCodeAt(0)>=56320&&k.charCodeAt(0)<=57343},_=function(k){return k.charCodeAt(k.length-1)>=55296&&k.charCodeAt(k.length-1)<=56319},C=2;C<w.length;C+=1)w[C-2][0]===o&&_(w[C-2][1])&&w[C-1][0]===a&&S(w[C-1][1])&&w[C][0]===i&&S(w[C][1])&&(N=!0,w[C-1][1]=w[C-2][1].slice(-1)+w[C-1][1],w[C][1]=w[C-2][1].slice(-1)+w[C][1],w[C-2][1]=w[C-2][1].slice(0,-1));if(!N)return w;for(var $=[],C=0;C<w.length;C+=1)w[C][1].length>0&&$.push(w[C]);return $}function b(w,N,S){for(var _=N+S-1;_>=0&&_>=N-1;_--)if(_+1<w.length){var C=w[_],$=w[_+1];C[0]===$[1]&&w.splice(_,2,[C[0],C[1]+$[1]])}return w}},function(n,s){s=n.exports=typeof Object.keys=="function"?Object.keys:a,s.shim=a;function a(i){var o=[];for(var l in i)o.push(l);return o}},function(n,s){var a=function(){return Object.prototype.toString.call(arguments)}()=="[object Arguments]";s=n.exports=a?i:o,s.supported=i;function i(l){return Object.prototype.toString.call(l)=="[object Arguments]"}s.unsupported=o;function o(l){return l&&typeof l=="object"&&typeof l.length=="number"&&Object.prototype.hasOwnProperty.call(l,"callee")&&!Object.prototype.propertyIsEnumerable.call(l,"callee")||!1}},function(n,s){var a=Object.prototype.hasOwnProperty,i="~";function o(){}Object.create&&(o.prototype=Object.create(null),new o().__proto__||(i=!1));function l(d,u,h){this.fn=d,this.context=u,this.once=h||!1}function c(){this._events=new o,this._eventsCount=0}c.prototype.eventNames=function(){var u=[],h,f;if(this._eventsCount===0)return u;for(f in h=this._events)a.call(h,f)&&u.push(i?f.slice(1):f);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(h)):u},c.prototype.listeners=function(u,h){var f=i?i+u:u,m=this._events[f];if(h)return!!m;if(!m)return[];if(m.fn)return[m.fn];for(var y=0,p=m.length,v=new Array(p);y<p;y++)v[y]=m[y].fn;return v},c.prototype.emit=function(u,h,f,m,y,p){var v=i?i+u:u;if(!this._events[v])return!1;var g=this._events[v],x=arguments.length,b,w;if(g.fn){switch(g.once&&this.removeListener(u,g.fn,void 0,!0),x){case 1:return g.fn.call(g.context),!0;case 2:return g.fn.call(g.context,h),!0;case 3:return g.fn.call(g.context,h,f),!0;case 4:return g.fn.call(g.context,h,f,m),!0;case 5:return g.fn.call(g.context,h,f,m,y),!0;case 6:return g.fn.call(g.context,h,f,m,y,p),!0}for(w=1,b=new Array(x-1);w<x;w++)b[w-1]=arguments[w];g.fn.apply(g.context,b)}else{var N=g.length,S;for(w=0;w<N;w++)switch(g[w].once&&this.removeListener(u,g[w].fn,void 0,!0),x){case 1:g[w].fn.call(g[w].context);break;case 2:g[w].fn.call(g[w].context,h);break;case 3:g[w].fn.call(g[w].context,h,f);break;case 4:g[w].fn.call(g[w].context,h,f,m);break;default:if(!b)for(S=1,b=new Array(x-1);S<x;S++)b[S-1]=arguments[S];g[w].fn.apply(g[w].context,b)}}return!0},c.prototype.on=function(u,h,f){var m=new l(h,f||this),y=i?i+u:u;return this._events[y]?this._events[y].fn?this._events[y]=[this._events[y],m]:this._events[y].push(m):(this._events[y]=m,this._eventsCount++),this},c.prototype.once=function(u,h,f){var m=new l(h,f||this,!0),y=i?i+u:u;return this._events[y]?this._events[y].fn?this._events[y]=[this._events[y],m]:this._events[y].push(m):(this._events[y]=m,this._eventsCount++),this},c.prototype.removeListener=function(u,h,f,m){var y=i?i+u:u;if(!this._events[y])return this;if(!h)return--this._eventsCount===0?this._events=new o:delete this._events[y],this;var p=this._events[y];if(p.fn)p.fn===h&&(!m||p.once)&&(!f||p.context===f)&&(--this._eventsCount===0?this._events=new o:delete this._events[y]);else{for(var v=0,g=[],x=p.length;v<x;v++)(p[v].fn!==h||m&&!p[v].once||f&&p[v].context!==f)&&g.push(p[v]);g.length?this._events[y]=g.length===1?g[0]:g:--this._eventsCount===0?this._events=new o:delete this._events[y]}return this},c.prototype.removeAllListeners=function(u){var h;return u?(h=i?i+u:u,this._events[h]&&(--this._eventsCount===0?this._events=new o:delete this._events[h])):(this._events=new o,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prototype.setMaxListeners=function(){return this},c.prefixed=i,c.EventEmitter=c,typeof n<"u"&&(n.exports=c)},function(n,s,a){Object.defineProperty(s,"__esModule",{value:!0}),s.matchText=s.matchSpacing=s.matchNewline=s.matchBlot=s.matchAttributor=s.default=void 0;var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ne){return typeof ne}:function(ne){return ne&&typeof Symbol=="function"&&ne.constructor===Symbol&&ne!==Symbol.prototype?"symbol":typeof ne},o=function(){function ne(se,q){var V=[],K=!0,ce=!1,ie=void 0;try{for(var ae=se[Symbol.iterator](),ye;!(K=(ye=ae.next()).done)&&(V.push(ye.value),!(q&&V.length===q));K=!0);}catch(De){ce=!0,ie=De}finally{try{!K&&ae.return&&ae.return()}finally{if(ce)throw ie}}return V}return function(se,q){if(Array.isArray(se))return se;if(Symbol.iterator in Object(se))return ne(se,q);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function ne(se,q){for(var V=0;V<q.length;V++){var K=q[V];K.enumerable=K.enumerable||!1,K.configurable=!0,"value"in K&&(K.writable=!0),Object.defineProperty(se,K.key,K)}}return function(se,q,V){return q&&ne(se.prototype,q),V&&ne(se,V),se}}(),c=a(3),d=T(c),u=a(2),h=T(u),f=a(0),m=T(f),y=a(5),p=T(y),v=a(10),g=T(v),x=a(9),b=T(x),w=a(36),N=a(37),S=a(13),_=T(S),C=a(26),$=a(38),k=a(39),E=a(40);function T(ne){return ne&&ne.__esModule?ne:{default:ne}}function O(ne,se,q){return se in ne?Object.defineProperty(ne,se,{value:q,enumerable:!0,configurable:!0,writable:!0}):ne[se]=q,ne}function A(ne,se){if(!(ne instanceof se))throw new TypeError("Cannot call a class as a function")}function U(ne,se){if(!ne)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return se&&(typeof se=="object"||typeof se=="function")?se:ne}function z(ne,se){if(typeof se!="function"&&se!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof se);ne.prototype=Object.create(se&&se.prototype,{constructor:{value:ne,enumerable:!1,writable:!0,configurable:!0}}),se&&(Object.setPrototypeOf?Object.setPrototypeOf(ne,se):ne.__proto__=se)}var W=(0,g.default)("quill:clipboard"),B="__ql-matcher",R=[[Node.TEXT_NODE,ot],[Node.TEXT_NODE,Fe],["br",de],[Node.ELEMENT_NODE,Fe],[Node.ELEMENT_NODE,re],[Node.ELEMENT_NODE,qe],[Node.ELEMENT_NODE,X],[Node.ELEMENT_NODE,xt],["li",Ee],["b",Q.bind(Q,"bold")],["i",Q.bind(Q,"italic")],["style",be]],D=[w.AlignAttribute,$.DirectionAttribute].reduce(function(ne,se){return ne[se.keyName]=se,ne},{}),P=[w.AlignStyle,N.BackgroundStyle,C.ColorStyle,$.DirectionStyle,k.FontStyle,E.SizeStyle].reduce(function(ne,se){return ne[se.keyName]=se,ne},{}),I=function(ne){z(se,ne);function se(q,V){A(this,se);var K=U(this,(se.__proto__||Object.getPrototypeOf(se)).call(this,q,V));return K.quill.root.addEventListener("paste",K.onPaste.bind(K)),K.container=K.quill.addContainer("ql-clipboard"),K.container.setAttribute("contenteditable",!0),K.container.setAttribute("tabindex",-1),K.matchers=[],R.concat(K.options.matchers).forEach(function(ce){var ie=o(ce,2),ae=ie[0],ye=ie[1];!V.matchVisual&&ye===qe||K.addMatcher(ae,ye)}),K}return l(se,[{key:"addMatcher",value:function(V,K){this.matchers.push([V,K])}},{key:"convert",value:function(V){if(typeof V=="string")return this.container.innerHTML=V.replace(/\>\r?\n +\</g,"><"),this.convert();var K=this.quill.getFormat(this.quill.selection.savedRange.index);if(K[_.default.blotName]){var ce=this.container.innerText;return this.container.innerHTML="",new h.default().insert(ce,O({},_.default.blotName,K[_.default.blotName]))}var ie=this.prepareMatching(),ae=o(ie,2),ye=ae[0],De=ae[1],Le=M(this.container,ye,De);return H(Le,` 714`)&&Le.ops[Le.ops.length-1].attributes==null&&(Le=Le.compose(new h.default().retain(Le.length()-1).delete(1))),W.log("convert",this.container.innerHTML,Le),this.container.innerHTML="",Le}},{key:"dangerouslyPasteHTML",value:function(V,K){var ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:p.default.sources.API;if(typeof V=="string")this.quill.setContents(this.convert(V),K),this.quill.setSelection(0,p.default.sources.SILENT);else{var ie=this.convert(K);this.quill.updateContents(new h.default().retain(V).concat(ie),ce),this.quill.setSelection(V+ie.length(),p.default.sources.SILENT)}}},{key:"onPaste",value:function(V){var K=this;if(!(V.defaultPrevented||!this.quill.isEnabled())){var ce=this.quill.getSelection(),ie=new h.default().retain(ce.index),ae=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(p.default.sources.SILENT),setTimeout(function(){ie=ie.concat(K.convert()).delete(ce.length),K.quill.updateContents(ie,p.default.sources.USER),K.quill.setSelection(ie.length()-ce.length,p.default.sources.SILENT),K.quill.scrollingContainer.scrollTop=ae,K.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var V=this,K=[],ce=[];return this.matchers.forEach(function(ie){var ae=o(ie,2),ye=ae[0],De=ae[1];switch(ye){case Node.TEXT_NODE:ce.push(De);break;case Node.ELEMENT_NODE:K.push(De);break;default:[].forEach.call(V.container.querySelectorAll(ye),function(Le){Le[B]=Le[B]||[],Le[B].push(De)});break}}),[K,ce]}}]),se}(b.default);I.DEFAULTS={matchers:[],matchVisual:!0};function F(ne,se,q){return(typeof se>"u"?"undefined":i(se))==="object"?Object.keys(se).reduce(function(V,K){return F(V,K,se[K])},ne):ne.reduce(function(V,K){return K.attributes&&K.attributes[se]?V.push(K):V.insert(K.insert,(0,d.default)({},O({},se,q),K.attributes))},new h.default)}function Y(ne){if(ne.nodeType!==Node.ELEMENT_NODE)return{};var se="__ql-computed-style";return ne[se]||(ne[se]=window.getComputedStyle(ne))}function H(ne,se){for(var q="",V=ne.ops.length-1;V>=0&&q.length<se.length;--V){var K=ne.ops[V];if(typeof K.insert!="string")break;q=K.insert+q}return q.slice(-1*se.length)===se}function L(ne){if(ne.childNodes.length===0)return!1;var se=Y(ne);return["block","list-item"].indexOf(se.display)>-1}function M(ne,se,q){return ne.nodeType===ne.TEXT_NODE?q.reduce(function(V,K){return K(ne,V)},new h.default):ne.nodeType===ne.ELEMENT_NODE?[].reduce.call(ne.childNodes||[],function(V,K){var ce=M(K,se,q);return K.nodeType===ne.ELEMENT_NODE&&(ce=se.reduce(function(ie,ae){return ae(K,ie)},ce),ce=(K[B]||[]).reduce(function(ie,ae){return ae(K,ie)},ce)),V.concat(ce)},new h.default):new h.default}function Q(ne,se,q){return F(q,ne,!0)}function X(ne,se){var q=m.default.Attributor.Attribute.keys(ne),V=m.default.Attributor.Class.keys(ne),K=m.default.Attributor.Style.keys(ne),ce={};return q.concat(V).concat(K).forEach(function(ie){var ae=m.default.query(ie,m.default.Scope.ATTRIBUTE);ae!=null&&(ce[ae.attrName]=ae.value(ne),ce[ae.attrName])||(ae=D[ie],ae!=null&&(ae.attrName===ie||ae.keyName===ie)&&(ce[ae.attrName]=ae.value(ne)||void 0),ae=P[ie],ae!=null&&(ae.attrName===ie||ae.keyName===ie)&&(ae=P[ie],ce[ae.attrName]=ae.value(ne)||void 0))}),Object.keys(ce).length>0&&(se=F(se,ce)),se}function re(ne,se){var q=m.default.query(ne);if(q==null)return se;if(q.prototype instanceof m.default.Embed){var V={},K=q.value(ne);K!=null&&(V[q.blotName]=K,se=new h.default().insert(V,q.formats(ne)))}else typeof q.formats=="function"&&(se=F(se,q.blotName,q.formats(ne)));return se}function de(ne,se){return H(se,` 715`)||se.insert(` 716`),se}function be(){return new h.default}function Ee(ne,se){var q=m.default.query(ne);if(q==null||q.blotName!=="list-item"||!H(se,` 717`))return se;for(var V=-1,K=ne.parentNode;!K.classList.contains("ql-clipboard");)(m.default.query(K)||{}).blotName==="list"&&(V+=1),K=K.parentNode;return V<=0?se:se.compose(new h.default().retain(se.length()-1).retain(1,{indent:V}))}function Fe(ne,se){return H(se,` 718`)||(L(ne)||se.length()>0&&ne.nextSibling&&L(ne.nextSibling))&&se.insert(` 719`),se}function qe(ne,se){if(L(ne)&&ne.nextElementSibling!=null&&!H(se,` 720 721`)){var q=ne.offsetHeight+parseFloat(Y(ne).marginTop)+parseFloat(Y(ne).marginBottom);ne.nextElementSibling.offsetTop>ne.offsetTop+q*1.5&&se.insert(` 722`)}return se}function xt(ne,se){var q={},V=ne.style||{};return V.fontStyle&&Y(ne).fontStyle==="italic"&&(q.italic=!0),V.fontWeight&&(Y(ne).fontWeight.startsWith("bold")||parseInt(Y(ne).fontWeight)>=700)&&(q.bold=!0),Object.keys(q).length>0&&(se=F(se,q)),parseFloat(V.textIndent||0)>0&&(se=new h.default().insert(" ").concat(se)),se}function ot(ne,se){var q=ne.data;if(ne.parentNode.tagName==="O:P")return se.insert(q.trim());if(q.trim().length===0&&ne.parentNode.classList.contains("ql-clipboard"))return se;if(!Y(ne.parentNode).whiteSpace.startsWith("pre")){var V=function(ce,ie){return ie=ie.replace(/[^\u00a0]/g,""),ie.length<1&&ce?" ":ie};q=q.replace(/\r\n/g," ").replace(/\n/g," "),q=q.replace(/\s\s+/g,V.bind(V,!0)),(ne.previousSibling==null&&L(ne.parentNode)||ne.previousSibling!=null&&L(ne.previousSibling))&&(q=q.replace(/^\s+/,V.bind(V,!1))),(ne.nextSibling==null&&L(ne.parentNode)||ne.nextSibling!=null&&L(ne.nextSibling))&&(q=q.replace(/\s+$/,V.bind(V,!1)))}return se.insert(q)}s.default=I,s.matchAttributor=X,s.matchBlot=re,s.matchNewline=Fe,s.matchSpacing=qe,s.matchText=ot},function(n,s,a){Object.defineProperty(s,"__esModule",{value:!0});var i=function(){function y(p,v){for(var g=0;g<v.length;g++){var x=v[g];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(p,x.key,x)}}return function(p,v,g){return v&&y(p.prototype,v),g&&y(p,g),p}}(),o=function y(p,v,g){p===null&&(p=Function.prototype);var x=Object.getOwnPropertyDescriptor(p,v);if(x===void 0){var b=Object.getPrototypeOf(p);return b===null?void 0:y(b,v,g)}else{if("value"in x)return x.value;var w=x.get;return w===void 0?void 0:w.call(g)}},l=a(6),c=d(l);function d(y){return y&&y.__esModule?y:{default:y}}function u(y,p){if(!(y instanceof p))throw new TypeError("Cannot call a class as a function")}function h(y,p){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:y}function f(y,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);y.prototype=Object.create(p&&p.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(y,p):y.__proto__=p)}var m=function(y){f(p,y);function p(){return u(this,p),h(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return i(p,[{key:"optimize",value:function(g){o(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"optimize",this).call(this,g),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return o(p.__proto__||Object.getPrototypeOf(p),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),p}(c.default);m.blotName="bold",m.tagName=["STRONG","B"],s.default=m},function(n,s,a){Object.defineProperty(s,"__esModule",{value:!0}),s.addControls=s.default=void 0;var i=function(){function E(T,O){var A=[],U=!0,z=!1,W=void 0;try{for(var B=T[Symbol.iterator](),R;!(U=(R=B.next()).done)&&(A.push(R.value),!(O&&A.length===O));U=!0);}catch(D){z=!0,W=D}finally{try{!U&&B.return&&B.return()}finally{if(z)throw W}}return A}return function(T,O){if(Array.isArray(T))return T;if(Symbol.iterator in Object(T))return E(T,O);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function E(T,O){for(var A=0;A<O.length;A++){var U=O[A];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(T,U.key,U)}}return function(T,O,A){return O&&E(T.prototype,O),A&&E(T,A),T}}(),l=a(2),c=g(l),d=a(0),u=g(d),h=a(5),f=g(h),m=a(10),y=g(m),p=a(9),v=g(p);function g(E){return E&&E.__esModule?E:{default:E}}function x(E,T,O){return T in E?Object.defineProperty(E,T,{value:O,enumerable:!0,configurable:!0,writable:!0}):E[T]=O,E}function b(E,T){if(!(E instanceof T))throw new TypeError("Cannot call a class as a function")}function w(E,T){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T&&(typeof T=="object"||typeof T=="function")?T:E}function N(E,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);E.prototype=Object.create(T&&T.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(E,T):E.__proto__=T)}var S=(0,y.default)("quill:toolbar"),_=function(E){N(T,E);function T(O,A){b(this,T);var U=w(this,(T.__proto__||Object.getPrototypeOf(T)).call(this,O,A));if(Array.isArray(U.options.container)){var z=document.createElement("div");$(z,U.options.container),O.container.parentNode.insertBefore(z,O.container),U.container=z}else typeof U.options.container=="string"?U.container=document.querySelector(U.options.container):U.container=U.options.container;if(!(U.container instanceof HTMLElement)){var W;return W=S.error("Container required for toolbar",U.options),w(U,W)}return U.container.classList.add("ql-toolbar"),U.controls=[],U.handlers={},Object.keys(U.options.handlers).forEach(function(B){U.addHandler(B,U.options.handlers[B])}),[].forEach.call(U.container.querySelectorAll("button, select"),function(B){U.attach(B)}),U.quill.on(f.default.events.EDITOR_CHANGE,function(B,R){B===f.default.events.SELECTION_CHANGE&&U.update(R)}),U.quill.on(f.default.events.SCROLL_OPTIMIZE,function(){var B=U.quill.selection.getRange(),R=i(B,1),D=R[0];U.update(D)}),U}return o(T,[{key:"addHandler",value:function(A,U){this.handlers[A]=U}},{key:"attach",value:function(A){var U=this,z=[].find.call(A.classList,function(B){return B.indexOf("ql-")===0});if(z){if(z=z.slice(3),A.tagName==="BUTTON"&&A.setAttribute("type","button"),this.handlers[z]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[z]==null){S.warn("ignoring attaching to disabled format",z,A);return}if(u.default.query(z)==null){S.warn("ignoring attaching to nonexistent format",z,A);return}}var W=A.tagName==="SELECT"?"change":"click";A.addEventListener(W,function(B){var R=void 0;if(A.tagName==="SELECT"){if(A.selectedIndex<0)return;var D=A.options[A.selectedIndex];D.hasAttribute("selected")?R=!1:R=D.value||!1}else A.classList.contains("ql-active")?R=!1:R=A.value||!A.hasAttribute("value"),B.preventDefault();U.quill.focus();var P=U.quill.selection.getRange(),I=i(P,1),F=I[0];if(U.handlers[z]!=null)U.handlers[z].call(U,R);else if(u.default.query(z).prototype instanceof u.default.Embed){if(R=prompt("Enter "+z),!R)return;U.quill.updateContents(new c.default().retain(F.index).delete(F.length).insert(x({},z,R)),f.default.sources.USER)}else U.quill.format(z,R,f.default.sources.USER);U.update(F)}),this.controls.push([z,A])}}},{key:"update",value:function(A){var U=A==null?{}:this.quill.getFormat(A);this.controls.forEach(function(z){var W=i(z,2),B=W[0],R=W[1];if(R.tagName==="SELECT"){var D=void 0;if(A==null)D=null;else if(U[B]==null)D=R.querySelector("option[selected]");else if(!Array.isArray(U[B])){var P=U[B];typeof P=="string"&&(P=P.replace(/\"/g,'\\"')),D=R.querySelector('option[value="'+P+'"]')}D==null?(R.value="",R.selectedIndex=-1):D.selected=!0}else if(A==null)R.classList.remove("ql-active");else if(R.hasAttribute("value")){var I=U[B]===R.getAttribute("value")||U[B]!=null&&U[B].toString()===R.getAttribute("value")||U[B]==null&&!R.getAttribute("value");R.classList.toggle("ql-active",I)}else R.classList.toggle("ql-active",U[B]!=null)})}}]),T}(v.default);_.DEFAULTS={};function C(E,T,O){var A=document.createElement("button");A.setAttribute("type","button"),A.classList.add("ql-"+T),O!=null&&(A.value=O),E.appendChild(A)}function $(E,T){Array.isArray(T[0])||(T=[T]),T.forEach(function(O){var A=document.createElement("span");A.classList.add("ql-formats"),O.forEach(function(U){if(typeof U=="string")C(A,U);else{var z=Object.keys(U)[0],W=U[z];Array.isArray(W)?k(A,z,W):C(A,z,W)}}),E.appendChild(A)})}function k(E,T,O){var A=document.createElement("select");A.classList.add("ql-"+T),O.forEach(function(U){var z=document.createElement("option");U!==!1?z.setAttribute("value",U):z.setAttribute("selected","selected"),A.appendChild(z)}),E.appendChild(A)}_.DEFAULTS={container:null,handlers:{clean:function(){var T=this,O=this.quill.getSelection();if(O!=null)if(O.length==0){var A=this.quill.getFormat();Object.keys(A).forEach(function(U){u.default.query(U,u.default.Scope.INLINE)!=null&&T.quill.format(U,!1)})}else this.quill.removeFormat(O,f.default.sources.USER)},direction:function(T){var O=this.quill.getFormat().align;T==="rtl"&&O==null?this.quill.format("align","right",f.default.sources.USER):!T&&O==="right"&&this.quill.format("align",!1,f.default.sources.USER),this.quill.format("direction",T,f.default.sources.USER)},indent:function(T){var O=this.quill.getSelection(),A=this.quill.getFormat(O),U=parseInt(A.indent||0);if(T==="+1"||T==="-1"){var z=T==="+1"?1:-1;A.direction==="rtl"&&(z*=-1),this.quill.format("indent",U+z,f.default.sources.USER)}},link:function(T){T===!0&&(T=prompt("Enter link URL:")),this.quill.format("link",T,f.default.sources.USER)},list:function(T){var O=this.quill.getSelection(),A=this.quill.getFormat(O);T==="check"?A.list==="checked"||A.list==="unchecked"?this.quill.format("list",!1,f.default.sources.USER):this.quill.format("list","unchecked",f.default.sources.USER):this.quill.format("list",T,f.default.sources.USER)}}},s.default=_,s.addControls=$},function(n,s){n.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(n,s,a){Object.defineProperty(s,"__esModule",{value:!0});var i=function(){function y(p,v){for(var g=0;g<v.length;g++){var x=v[g];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(p,x.key,x)}}return function(p,v,g){return v&&y(p.prototype,v),g&&y(p,g),p}}(),o=function y(p,v,g){p===null&&(p=Function.prototype);var x=Object.getOwnPropertyDescriptor(p,v);if(x===void 0){var b=Object.getPrototypeOf(p);return b===null?void 0:y(b,v,g)}else{if("value"in x)return x.value;var w=x.get;return w===void 0?void 0:w.call(g)}},l=a(28),c=d(l);function d(y){return y&&y.__esModule?y:{default:y}}function u(y,p){if(!(y instanceof p))throw new TypeError("Cannot call a class as a function")}function h(y,p){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:y}function f(y,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);y.prototype=Object.create(p&&p.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(y,p):y.__proto__=p)}var m=function(y){f(p,y);function p(v,g){u(this,p);var x=h(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,v));return x.label.innerHTML=g,x.container.classList.add("ql-color-picker"),[].slice.call(x.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(b){b.classList.add("ql-primary")}),x}return i(p,[{key:"buildItem",value:function(g){var x=o(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"buildItem",this).call(this,g);return x.style.backgroundColor=g.getAttribute("value")||"",x}},{key:"selectItem",value:function(g,x){o(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"selectItem",this).call(this,g,x);var b=this.label.querySelector(".ql-color-label"),w=g&&g.getAttribute("data-value")||"";b&&(b.tagName==="line"?b.style.stroke=w:b.style.fill=w)}}]),p}(c.default);s.default=m},function(n,s,a){Object.defineProperty(s,"__esModule",{value:!0});var i=function(){function y(p,v){for(var g=0;g<v.length;g++){var x=v[g];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(p,x.key,x)}}return function(p,v,g){return v&&y(p.prototype,v),g&&y(p,g),p}}(),o=function y(p,v,g){p===null&&(p=Function.prototype);var x=Object.getOwnPropertyDescriptor(p,v);if(x===void 0){var b=Object.getPrototypeOf(p);return b===null?void 0:y(b,v,g)}else{if("value"in x)return x.value;var w=x.get;return w===void 0?void 0:w.call(g)}},l=a(28),c=d(l);function d(y){return y&&y.__esModule?y:{default:y}}function u(y,p){if(!(y instanceof p))throw new TypeError("Cannot call a class as a function")}function h(y,p){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:y}function f(y,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);y.prototype=Object.create(p&&p.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(y,p):y.__proto__=p)}var m=function(y){f(p,y);function p(v,g){u(this,p);var x=h(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,v));return x.container.classList.add("ql-icon-picker"),[].forEach.call(x.container.querySelectorAll(".ql-picker-item"),function(b){b.innerHTML=g[b.getAttribute("data-value")||""]}),x.defaultItem=x.container.querySelector(".ql-selected"),x.selectItem(x.defaultItem),x}return i(p,[{key:"selectItem",value:function(g,x){o(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"selectItem",this).call(this,g,x),g=g||this.defaultItem,this.label.innerHTML=g.innerHTML}}]),p}(c.default);s.default=m},function(n,s,a){Object.defineProperty(s,"__esModule",{value:!0});var i=function(){function c(d,u){for(var h=0;h<u.length;h++){var f=u[h];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(d,f.key,f)}}return function(d,u,h){return u&&c(d.prototype,u),h&&c(d,h),d}}();function o(c,d){if(!(c instanceof d))throw new TypeError("Cannot call a class as a function")}var l=function(){function c(d,u){var h=this;o(this,c),this.quill=d,this.boundsContainer=u||document.body,this.root=d.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){h.root.style.marginTop=-1*h.quill.root.scrollTop+"px"}),this.hide()}return i(c,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(u){var h=u.left+u.width/2-this.root.offsetWidth/2,f=u.bottom+this.quill.root.scrollTop;this.root.style.left=h+"px",this.root.style.top=f+"px",this.root.classList.remove("ql-flip");var m=this.boundsContainer.getBoundingClientRect(),y=this.root.getBoundingClientRect(),p=0;if(y.right>m.right&&(p=m.right-y.right,this.root.style.left=h+p+"px"),y.left<m.left&&(p=m.left-y.left,this.root.style.left=h+p+"px"),y.bottom>m.bottom){var v=y.bottom-y.top,g=u.bottom-u.top+v;this.root.style.top=f-g+"px",this.root.classList.add("ql-flip")}return p}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),c}();s.default=l},function(n,s,a){Object.defineProperty(s,"__esModule",{value:!0});var i=function(){function k(E,T){var O=[],A=!0,U=!1,z=void 0;try{for(var W=E[Symbol.iterator](),B;!(A=(B=W.next()).done)&&(O.push(B.value),!(T&&O.length===T));A=!0);}catch(R){U=!0,z=R}finally{try{!A&&W.return&&W.return()}finally{if(U)throw z}}return O}return function(E,T){if(Array.isArray(E))return E;if(Symbol.iterator in Object(E))return k(E,T);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function k(E,T,O){E===null&&(E=Function.prototype);var A=Object.getOwnPropertyDescriptor(E,T);if(A===void 0){var U=Object.getPrototypeOf(E);return U===null?void 0:k(U,T,O)}else{if("value"in A)return A.value;var z=A.get;return z===void 0?void 0:z.call(O)}},l=function(){function k(E,T){for(var O=0;O<T.length;O++){var A=T[O];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(E,A.key,A)}}return function(E,T,O){return T&&k(E.prototype,T),O&&k(E,O),E}}(),c=a(3),d=b(c),u=a(8),h=b(u),f=a(43),m=b(f),y=a(27),p=b(y),v=a(15),g=a(41),x=b(g);function b(k){return k&&k.__esModule?k:{default:k}}function w(k,E){if(!(k instanceof E))throw new TypeError("Cannot call a class as a function")}function N(k,E){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:k}function S(k,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);k.prototype=Object.create(E&&E.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(k,E):k.__proto__=E)}var _=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],C=function(k){S(E,k);function E(T,O){w(this,E),O.modules.toolbar!=null&&O.modules.toolbar.container==null&&(O.modules.toolbar.container=_);var A=N(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,T,O));return A.quill.container.classList.add("ql-snow"),A}return l(E,[{key:"extendToolbar",value:function(O){O.container.classList.add("ql-snow"),this.buildButtons([].slice.call(O.container.querySelectorAll("button")),x.default),this.buildPickers([].slice.call(O.container.querySelectorAll("select")),x.default),this.tooltip=new $(this.quill,this.options.bounds),O.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(A,U){O.handlers.link.call(O,!U.format.link)})}}]),E}(m.default);C.DEFAULTS=(0,d.default)(!0,{},m.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(E){if(E){var T=this.quill.getSelection();if(T==null||T.length==0)return;var O=this.quill.getText(T);/^\S+@\S+\.\S+$/.test(O)&&O.indexOf("mailto:")!==0&&(O="mailto:"+O);var A=this.quill.theme.tooltip;A.edit("link",O)}else this.quill.format("link",!1)}}}}});var $=function(k){S(E,k);function E(T,O){w(this,E);var A=N(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,T,O));return A.preview=A.root.querySelector("a.ql-preview"),A}return l(E,[{key:"listen",value:function(){var O=this;o(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(A){O.root.classList.contains("ql-editing")?O.save():O.edit("link",O.preview.textContent),A.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(A){if(O.linkRange!=null){var U=O.linkRange;O.restoreFocus(),O.quill.formatText(U,"link",!1,h.default.sources.USER),delete O.linkRange}A.preventDefault(),O.hide()}),this.quill.on(h.default.events.SELECTION_CHANGE,function(A,U,z){if(A!=null){if(A.length===0&&z===h.default.sources.USER){var W=O.quill.scroll.descendant(p.default,A.index),B=i(W,2),R=B[0],D=B[1];if(R!=null){O.linkRange=new v.Range(A.index-D,R.length());var P=p.default.formats(R.domNode);O.preview.textContent=P,O.preview.setAttribute("href",P),O.show(),O.position(O.quill.getBounds(O.linkRange));return}}else delete O.linkRange;O.hide()}})}},{key:"show",value:function(){o(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),E}(f.BaseTooltip);$.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),s.default=C},function(n,s,a){Object.defineProperty(s,"__esModule",{value:!0});var i=a(29),o=K(i),l=a(36),c=a(38),d=a(64),u=a(65),h=K(u),f=a(66),m=K(f),y=a(67),p=K(y),v=a(37),g=a(26),x=a(39),b=a(40),w=a(56),N=K(w),S=a(68),_=K(S),C=a(27),$=K(C),k=a(69),E=K(k),T=a(70),O=K(T),A=a(71),U=K(A),z=a(72),W=K(z),B=a(73),R=K(B),D=a(13),P=K(D),I=a(74),F=K(I),Y=a(75),H=K(Y),L=a(57),M=K(L),Q=a(41),X=K(Q),re=a(28),de=K(re),be=a(59),Ee=K(be),Fe=a(60),qe=K(Fe),xt=a(61),ot=K(xt),ne=a(108),se=K(ne),q=a(62),V=K(q);function K(ce){return ce&&ce.__esModule?ce:{default:ce}}o.default.register({"attributors/attribute/direction":c.DirectionAttribute,"attributors/class/align":l.AlignClass,"attributors/class/background":v.BackgroundClass,"attributors/class/color":g.ColorClass,"attributors/class/direction":c.DirectionClass,"attributors/class/font":x.FontClass,"attributors/class/size":b.SizeClass,"attributors/style/align":l.AlignStyle,"attributors/style/background":v.BackgroundStyle,"attributors/style/color":g.ColorStyle,"attributors/style/direction":c.DirectionStyle,"attributors/style/font":x.FontStyle,"attributors/style/size":b.SizeStyle},!0),o.default.register({"formats/align":l.AlignClass,"formats/direction":c.DirectionClass,"formats/indent":d.IndentClass,"formats/background":v.BackgroundStyle,"formats/color":g.ColorStyle,"formats/font":x.FontClass,"formats/size":b.SizeClass,"formats/blockquote":h.default,"formats/code-block":P.default,"formats/header":m.default,"formats/list":p.default,"formats/bold":N.default,"formats/code":D.Code,"formats/italic":_.default,"formats/link":$.default,"formats/script":E.default,"formats/strike":O.default,"formats/underline":U.default,"formats/image":W.default,"formats/video":R.default,"formats/list/item":y.ListItem,"modules/formula":F.default,"modules/syntax":H.default,"modules/toolbar":M.default,"themes/bubble":se.default,"themes/snow":V.default,"ui/icons":X.default,"ui/picker":de.default,"ui/icon-picker":qe.default,"ui/color-picker":Ee.default,"ui/tooltip":ot.default},!0),s.default=o.default},function(n,s,a){Object.defineProperty(s,"__esModule",{value:!0}),s.IndentClass=void 0;var i=function(){function p(v,g){for(var x=0;x<g.length;x++){var b=g[x];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(v,b.key,b)}}return function(v,g,x){return g&&p(v.prototype,g),x&&p(v,x),v}}(),o=function p(v,g,x){v===null&&(v=Function.prototype);var b=Object.getOwnPropertyDescriptor(v,g);if(b===void 0){var w=Object.getPrototypeOf(v);return w===null?void 0:p(w,g,x)}else{if("value"in b)return b.value;var N=b.get;return N===void 0?void 0:N.call(x)}},l=a(0),c=d(l);function d(p){return p&&p.__esModule?p:{default:p}}function u(p,v){if(!(p instanceof v))throw new TypeError("Cannot call a class as a function")}function h(p,v){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:p}function f(p,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);p.prototype=Object.create(v&&v.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(p,v):p.__proto__=v)}var m=function(p){f(v,p);function v(){return u(this,v),h(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return i(v,[{key:"add",value:function(x,b){if(b==="+1"||b==="-1"){var w=this.value(x)||0;b=b==="+1"?w+1:w-1}return b===0?(this.remove(x),!0):o(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"add",this).call(this,x,b)}},{key:"canAdd",value:function(x,b){return o(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"canAdd",this).call(this,x,b)||o(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"canAdd",this).call(this,x,parseInt(b))}},{key:"value",value:function(x){return parseInt(o(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"value",this).call(this,x))||void 0}}]),v}(c.default.Attributor.Class),y=new m("indent","ql-indent",{scope:c.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});s.IndentClass=y},function(n,s,a){Object.defineProperty(s,"__esModule",{value:!0});var i=a(4),o=l(i);function l(f){return f&&f.__esModule?f:{default:f}}function c(f,m){if(!(f instanceof m))throw new TypeError("Cannot call a class as a function")}function d(f,m){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:f}function u(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);f.prototype=Object.create(m&&m.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(f,m):f.__proto__=m)}var h=function(f){u(m,f);function m(){return c(this,m),d(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return m}(o.default);h.blotName="blockquote",h.tagName="blockquote",s.default=h},function(n,s,a){Object.defineProperty(s,"__esModule",{value:!0});var i=function(){function m(y,p){for(var v=0;v<p.length;v++){var g=p[v];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(y,g.key,g)}}return function(y,p,v){return p&&m(y.prototype,p),v&&m(y,v),y}}(),o=a(4),l=c(o);function c(m){return m&&m.__esModule?m:{default:m}}function d(m,y){if(!(m instanceof y))throw new TypeError("Cannot call a class as a function")}function u(m,y){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:m}function h(m,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);m.prototype=Object.create(y&&y.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(m,y):m.__proto__=y)}var f=function(m){h(y,m);function y(){return d(this,y),u(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return i(y,null,[{key:"formats",value:function(v){return this.tagName.indexOf(v.tagName)+1}}]),y}(l.default);f.blotName="header",f.tagName=["H1","H2","H3","H4","H5","H6"],s.default=f},function(n,s,a){Object.defineProperty(s,"__esModule",{value:!0}),s.default=s.ListItem=void 0;var i=function(){function w(N,S){for(var _=0;_<S.length;_++){var C=S[_];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(N,C.key,C)}}return function(N,S,_){return S&&w(N.prototype,S),_&&w(N,_),N}}(),o=function w(N,S,_){N===null&&(N=Function.prototype);var C=Object.getOwnPropertyDescriptor(N,S);if(C===void 0){var $=Object.getPrototypeOf(N);return $===null?void 0:w($,S,_)}else{if("value"in C)return C.value;var k=C.get;return k===void 0?void 0:k.call(_)}},l=a(0),c=m(l),d=a(4),u=m(d),h=a(25),f=m(h);function m(w){return w&&w.__esModule?w:{default:w}}function y(w,N,S){return N in w?Object.defineProperty(w,N,{value:S,enumerable:!0,configurable:!0,writable:!0}):w[N]=S,w}function p(w,N){if(!(w instanceof N))throw new TypeError("Cannot call a class as a function")}function v(w,N){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N&&(typeof N=="object"||typeof N=="function")?N:w}function g(w,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof N);w.prototype=Object.create(N&&N.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(w,N):w.__proto__=N)}var x=function(w){g(N,w);function N(){return p(this,N),v(this,(N.__proto__||Object.getPrototypeOf(N)).apply(this,arguments))}return i(N,[{key:"format",value:function(_,C){_===b.blotName&&!C?this.replaceWith(c.default.create(this.statics.scope)):o(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"format",this).call(this,_,C)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():o(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(_,C){return this.parent.isolate(this.offset(this.parent),this.length()),_===this.parent.statics.blotName?(this.parent.replaceWith(_,C),this):(this.parent.unwrap(),o(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"replaceWith",this).call(this,_,C))}}],[{key:"formats",value:function(_){return _.tagName===this.tagName?void 0:o(N.__proto__||Object.getPrototypeOf(N),"formats",this).call(this,_)}}]),N}(u.default);x.blotName="list-item",x.tagName="LI";var b=function(w){g(N,w),i(N,null,[{key:"create",value:function(_){var C=_==="ordered"?"OL":"UL",$=o(N.__proto__||Object.getPrototypeOf(N),"create",this).call(this,C);return(_==="checked"||_==="unchecked")&&$.setAttribute("data-checked",_==="checked"),$}},{key:"formats",value:function(_){if(_.tagName==="OL")return"ordered";if(_.tagName==="UL")return _.hasAttribute("data-checked")?_.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function N(S){p(this,N);var _=v(this,(N.__proto__||Object.getPrototypeOf(N)).call(this,S)),C=function(k){if(k.target.parentNode===S){var E=_.statics.formats(S),T=c.default.find(k.target);E==="checked"?T.format("list","unchecked"):E==="unchecked"&&T.format("list","checked")}};return S.addEventListener("touchstart",C),S.addEventListener("mousedown",C),_}return i(N,[{key:"format",value:function(_,C){this.children.length>0&&this.children.tail.format(_,C)}},{key:"formats",value:function(){return y({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(_,C){if(_ instanceof x)o(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"insertBefore",this).call(this,_,C);else{var $=C==null?this.length():C.offset(this),k=this.split($);k.parent.insertBefore(_,k)}}},{key:"optimize",value:function(_){o(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"optimize",this).call(this,_);var C=this.next;C!=null&&C.prev===this&&C.statics.blotName===this.statics.blotName&&C.domNode.tagName===this.domNode.tagName&&C.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(C.moveChildren(this),C.remove())}},{key:"replace",value:function(_){if(_.statics.blotName!==this.statics.blotName){var C=c.default.create(this.statics.defaultChild);_.moveChildren(C),this.appendChild(C)}o(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"replace",this).call(this,_)}}]),N}(f.default);b.blotName="list",b.scope=c.default.Scope.BLOCK_BLOT,b.tagName=["OL","UL"],b.defaultChild="list-item",b.allowedChildren=[x],s.ListItem=x,s.default=b},function(n,s,a){Object.defineProperty(s,"__esModule",{value:!0});var i=a(56),o=l(i);function l(f){return f&&f.__esModule?f:{default:f}}function c(f,m){if(!(f instanceof m))throw new TypeError("Cannot call a class as a function")}function d(f,m){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:f}function u(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);f.prototype=Object.create(m&&m.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(f,m):f.__proto__=m)}var h=function(f){u(m,f);function m(){return c(this,m),d(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return m}(o.default);h.blotName="italic",h.tagName=["EM","I"],s.default=h},function(n,s,a){Object.defineProperty(s,"__esModule",{value:!0});var i=function(){function y(p,v){for(var g=0;g<v.length;g++){var x=v[g];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(p,x.key,x)}}return function(p,v,g){return v&&y(p.prototype,v),g&&y(p,g),p}}(),o=function y(p,v,g){p===null&&(p=Function.prototype);var x=Object.getOwnPropertyDescriptor(p,v);if(x===void 0){var b=Object.getPrototypeOf(p);return b===null?void 0:y(b,v,g)}else{if("value"in x)return x.value;var w=x.get;return w===void 0?void 0:w.call(g)}},l=a(6),c=d(l);function d(y){return y&&y.__esModule?y:{default:y}}function u(y,p){if(!(y instanceof p))throw new TypeError("Cannot call a class as a function")}function h(y,p){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:y}function f(y,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);y.prototype=Object.create(p&&p.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(y,p):y.__proto__=p)}var m=function(y){f(p,y);function p(){return u(this,p),h(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return i(p,null,[{key:"create",value:function(g){return g==="super"?document.createElement("sup"):g==="sub"?document.createElement("sub"):o(p.__proto__||Object.getPrototypeOf(p),"create",this).call(this,g)}},{key:"formats",value:function(g){if(g.tagName==="SUB")return"sub";if(g.tagName==="SUP")return"super"}}]),p}(c.default);m.blotName="script",m.tagName=["SUB","SUP"],s.default=m},function(n,s,a){Object.defineProperty(s,"__esModule",{value:!0});var i=a(6),o=l(i);function l(f){return f&&f.__esModule?f:{default:f}}function c(f,m){if(!(f instanceof m))throw new TypeError("Cannot call a class as a function")}function d(f,m){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:f}function u(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);f.prototype=Object.create(m&&m.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(f,m):f.__proto__=m)}var h=function(f){u(m,f);function m(){return c(this,m),d(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return m}(o.default);h.blotName="strike",h.tagName="S",s.default=h},function(n,s,a){Object.defineProperty(s,"__esModule",{value:!0});var i=a(6),o=l(i);function l(f){return f&&f.__esModule?f:{default:f}}function c(f,m){if(!(f instanceof m))throw new TypeError("Cannot call a class as a function")}function d(f,m){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:f}function u(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);f.prototype=Object.create(m&&m.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(f,m):f.__proto__=m)}var h=function(f){u(m,f);function m(){return c(this,m),d(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return m}(o.default);h.blotName="underline",h.tagName="U",s.default=h},function(n,s,a){Object.defineProperty(s,"__esModule",{value:!0});var i=function(){function v(g,x){for(var b=0;b<x.length;b++){var w=x[b];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(g,w.key,w)}}return function(g,x,b){return x&&v(g.prototype,x),b&&v(g,b),g}}(),o=function v(g,x,b){g===null&&(g=Function.prototype);var w=Object.getOwnPropertyDescriptor(g,x);if(w===void 0){var N=Object.getPrototypeOf(g);return N===null?void 0:v(N,x,b)}else{if("value"in w)return w.value;var S=w.get;return S===void 0?void 0:S.call(b)}},l=a(0),c=u(l),d=a(27);function u(v){return v&&v.__esModule?v:{default:v}}function h(v,g){if(!(v instanceof g))throw new TypeError("Cannot call a class as a function")}function f(v,g){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:v}function m(v,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);v.prototype=Object.create(g&&g.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(v,g):v.__proto__=g)}var y=["alt","height","width"],p=function(v){m(g,v);function g(){return h(this,g),f(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return i(g,[{key:"format",value:function(b,w){y.indexOf(b)>-1?w?this.domNode.setAttribute(b,w):this.domNode.removeAttribute(b):o(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"format",this).call(this,b,w)}}],[{key:"create",value:function(b){var w=o(g.__proto__||Object.getPrototypeOf(g),"create",this).call(this,b);return typeof b=="string"&&w.setAttribute("src",this.sanitize(b)),w}},{key:"formats",value:function(b){return y.reduce(function(w,N){return b.hasAttribute(N)&&(w[N]=b.getAttribute(N)),w},{})}},{key:"match",value:function(b){return/\.(jpe?g|gif|png)$/.test(b)||/^data:image\/.+;base64/.test(b)}},{key:"sanitize",value:function(b){return(0,d.sanitize)(b,["http","https","data"])?b:"//:0"}},{key:"value",value:function(b){return b.getAttribute("src")}}]),g}(c.default.Embed);p.blotName="image",p.tagName="IMG",s.default=p},function(n,s,a){Object.defineProperty(s,"__esModule",{value:!0});var i=function(){function v(g,x){for(var b=0;b<x.length;b++){var w=x[b];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(g,w.key,w)}}return function(g,x,b){return x&&v(g.prototype,x),b&&v(g,b),g}}(),o=function v(g,x,b){g===null&&(g=Function.prototype);var w=Object.getOwnPropertyDescriptor(g,x);if(w===void 0){var N=Object.getPrototypeOf(g);return N===null?void 0:v(N,x,b)}else{if("value"in w)return w.value;var S=w.get;return S===void 0?void 0:S.call(b)}},l=a(4),c=a(27),d=u(c);function u(v){return v&&v.__esModule?v:{default:v}}function h(v,g){if(!(v instanceof g))throw new TypeError("Cannot call a class as a function")}function f(v,g){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:v}function m(v,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);v.prototype=Object.create(g&&g.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(v,g):v.__proto__=g)}var y=["height","width"],p=function(v){m(g,v);function g(){return h(this,g),f(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return i(g,[{key:"format",value:function(b,w){y.indexOf(b)>-1?w?this.domNode.setAttribute(b,w):this.domNode.removeAttribute(b):o(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"format",this).call(this,b,w)}}],[{key:"create",value:function(b){var w=o(g.__proto__||Object.getPrototypeOf(g),"create",this).call(this,b);return w.setAttribute("frameborder","0"),w.setAttribute("allowfullscreen",!0),w.setAttribute("src",this.sanitize(b)),w}},{key:"formats",value:function(b){return y.reduce(function(w,N){return b.hasAttribute(N)&&(w[N]=b.getAttribute(N)),w},{})}},{key:"sanitize",value:function(b){return d.default.sanitize(b)}},{key:"value",value:function(b){return b.getAttribute("src")}}]),g}(l.BlockEmbed);p.blotName="video",p.className="ql-video",p.tagName="IFRAME",s.default=p},function(n,s,a){Object.defineProperty(s,"__esModule",{value:!0}),s.default=s.FormulaBlot=void 0;var i=function(){function b(w,N){for(var S=0;S<N.length;S++){var _=N[S];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(w,_.key,_)}}return function(w,N,S){return N&&b(w.prototype,N),S&&b(w,S),w}}(),o=function b(w,N,S){w===null&&(w=Function.prototype);var _=Object.getOwnPropertyDescriptor(w,N);if(_===void 0){var C=Object.getPrototypeOf(w);return C===null?void 0:b(C,N,S)}else{if("value"in _)return _.value;var $=_.get;return $===void 0?void 0:$.call(S)}},l=a(35),c=m(l),d=a(5),u=m(d),h=a(9),f=m(h);function m(b){return b&&b.__esModule?b:{default:b}}function y(b,w){if(!(b instanceof w))throw new TypeError("Cannot call a class as a function")}function p(b,w){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:b}function v(b,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);b.prototype=Object.create(w&&w.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(b,w):b.__proto__=w)}var g=function(b){v(w,b);function w(){return y(this,w),p(this,(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments))}return i(w,null,[{key:"create",value:function(S){var _=o(w.__proto__||Object.getPrototypeOf(w),"create",this).call(this,S);return typeof S=="string"&&(window.katex.render(S,_,{throwOnError:!1,errorColor:"#f00"}),_.setAttribute("data-value",S)),_}},{key:"value",value:function(S){return S.getAttribute("data-value")}}]),w}(c.default);g.blotName="formula",g.className="ql-formula",g.tagName="SPAN";var x=function(b){v(w,b),i(w,null,[{key:"register",value:function(){u.default.register(g,!0)}}]);function w(){y(this,w);var N=p(this,(w.__proto__||Object.getPrototypeOf(w)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return N}return w}(f.default);s.FormulaBlot=g,s.default=x},function(n,s,a){Object.defineProperty(s,"__esModule",{value:!0}),s.default=s.CodeToken=s.CodeBlock=void 0;var i=function(){function S(_,C){for(var $=0;$<C.length;$++){var k=C[$];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(_,k.key,k)}}return function(_,C,$){return C&&S(_.prototype,C),$&&S(_,$),_}}(),o=function S(_,C,$){_===null&&(_=Function.prototype);var k=Object.getOwnPropertyDescriptor(_,C);if(k===void 0){var E=Object.getPrototypeOf(_);return E===null?void 0:S(E,C,$)}else{if("value"in k)return k.value;var T=k.get;return T===void 0?void 0:T.call($)}},l=a(0),c=p(l),d=a(5),u=p(d),h=a(9),f=p(h),m=a(13),y=p(m);function p(S){return S&&S.__esModule?S:{default:S}}function v(S,_){if(!(S instanceof _))throw new TypeError("Cannot call a class as a function")}function g(S,_){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:S}function x(S,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);S.prototype=Object.create(_&&_.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(S,_):S.__proto__=_)}var b=function(S){x(_,S);function _(){return v(this,_),g(this,(_.__proto__||Object.getPrototypeOf(_)).apply(this,arguments))}return i(_,[{key:"replaceWith",value:function($){this.domNode.textContent=this.domNode.textContent,this.attach(),o(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"replaceWith",this).call(this,$)}},{key:"highlight",value:function($){var k=this.domNode.textContent;this.cachedText!==k&&((k.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=$(k),this.domNode.normalize(),this.attach()),this.cachedText=k)}}]),_}(y.default);b.className="ql-syntax";var w=new c.default.Attributor.Class("token","hljs",{scope:c.default.Scope.INLINE}),N=function(S){x(_,S),i(_,null,[{key:"register",value:function(){u.default.register(w,!0),u.default.register(b,!0)}}]);function _(C,$){v(this,_);var k=g(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,C,$));if(typeof k.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var E=null;return k.quill.on(u.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(E),E=setTimeout(function(){k.highlight(),E=null},k.options.interval)}),k.highlight(),k}return i(_,[{key:"highlight",value:function(){var $=this;if(!this.quill.selection.composing){this.quill.update(u.default.sources.USER);var k=this.quill.getSelection();this.quill.scroll.descendants(b).forEach(function(E){E.highlight($.options.highlight)}),this.quill.update(u.default.sources.SILENT),k!=null&&this.quill.setSelection(k,u.default.sources.SILENT)}}}]),_}(f.default);N.DEFAULTS={highlight:function(){return window.hljs==null?null:function(S){var _=window.hljs.highlightAuto(S);return _.value}}(),interval:1e3}
722,s.CodeBlock=b,s.CodeToken=w,s.default=N},function(n,s){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(n,s){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(n,s){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(n,s){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(n,s){n.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(n,s){n.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(n,s){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(n,s){n.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line>
722 <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(n,s){n.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(n,s){n.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(n,s){n.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(n,s){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(n,s){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(n,s){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(n,s){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(n,s){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(n,s){n.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(n,s){n.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(n,s){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(n,s){n.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(n,s){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(n,s){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(n,s){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(n,s){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(n,s){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(n,s){n.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(n,s){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(n,s){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(n,s){n.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(n,s){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(n,s){n.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(n,s){n.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(n,s,a){Object.defineProperty(s,"__esModule",{value:!0}),s.default=s.BubbleTooltip=void 0;var i=function _(C,$,k){C===null&&(C=Function.prototype);var E=Object.getOwnPropertyDescriptor(C,$);if(E===void 0){var T=Object.getPrototypeOf(C);return T===null?void 0:_(T,$,k)}else{if("value"in E)return E.value;var O=E.get;return O===void 0?void 0:O.call(k)}},o=function(){function _(C,$){for(var k=0;k<$.length;k++){var E=$[k];
vendor: 8,645 bytes, line 722
722E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(C,E.key,E)}}return function(C,$,k){return $&&_(C.prototype,$),k&&_(C,k),C}}(),l=a(3),c=v(l),d=a(8),u=v(d),h=a(43),f=v(h),m=a(15),y=a(41),p=v(y);function v(_){return _&&_.__esModule?_:{default:_}}function g(_,C){if(!(_ instanceof C))throw new TypeError("Cannot call a class as a function")}function x(_,C){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:_}function b(_,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);_.prototype=Object.create(C&&C.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(_,C):_.__proto__=C)}var w=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],N=function(_){b(C,_);function C($,k){g(this,C),k.modules.toolbar!=null&&k.modules.toolbar.container==null&&(k.modules.toolbar.container=w);var E=x(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,$,k));return E.quill.container.classList.add("ql-bubble"),E}return o(C,[{key:"extendToolbar",value:function(k){this.tooltip=new S(this.quill,this.options.bounds),this.tooltip.root.appendChild(k.container),this.buildButtons([].slice.call(k.container.querySelectorAll("button")),p.default),this.buildPickers([].slice.call(k.container.querySelectorAll("select")),p.default)}}]),C}(f.default);N.DEFAULTS=(0,c.default)(!0,{},f.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(C){C?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var S=function(_){b(C,_);function C($,k){g(this,C);var E=x(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,$,k));return E.quill.on(u.default.events.EDITOR_CHANGE,function(T,O,A,U){if(T===u.default.events.SELECTION_CHANGE)if(O!=null&&O.length>0&&U===u.default.sources.USER){E.show(),E.root.style.left="0px",E.root.style.width="",E.root.style.width=E.root.offsetWidth+"px";var z=E.quill.getLines(O.index,O.length);if(z.length===1)E.position(E.quill.getBounds(O));else{var W=z[z.length-1],B=E.quill.getIndex(W),R=Math.min(W.length()-1,O.index+O.length-B),D=E.quill.getBounds(new m.Range(B,R));E.position(D)}}else document.activeElement!==E.textbox&&E.quill.hasFocus()&&E.hide()}),E}return o(C,[{key:"listen",value:function(){var k=this;i(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){k.root.classList.remove("ql-editing")}),this.quill.on(u.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!k.root.classList.contains("ql-hidden")){var E=k.quill.getSelection();E!=null&&k.position(k.quill.getBounds(E))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(k){var E=i(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"position",this).call(this,k),T=this.root.querySelector(".ql-tooltip-arrow");if(T.style.marginLeft="",E===0)return E;T.style.marginLeft=-1*E-T.offsetWidth/2+"px"}}]),C}(h.BaseTooltip);S.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),s.BubbleTooltip=S,s.default=N},function(n,s,a){n.exports=a(63)}]).default})})(GA);var Xle=GA.exports,Jle=It&&It.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,a){s.__proto__=a}||function(s,a){for(var i in a)a.hasOwnProperty(i)&&(s[i]=a[i])},e(t,n)};return function(t,n){e(t,n);function s(){this.constructor=t}t.prototype=n===null?Object.create(n):(s.prototype=n.prototype,new s)}}(),Ap=It&&It.__assign||function(){return Ap=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Ap.apply(this,arguments)},ece=It&&It.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var s=Array(e),a=0,t=0;t<n;t++)for(var i=arguments[t],o=0,l=i.length;o<l;o++,a++)s[a]=i[o];return s},hx=It&&It.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Gs=hx(j),tce=hx(ho),qd=hx(Zle),$3=hx(Xle),rce=function(e){Jle(t,e);function t(n){var s=e.call(this,n)||this;s.dirtyProps=["modules","formats","bounds","theme","children"],s.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],s.state={generation:0},s.selection=null,s.onEditorChange=function(i,o,l,c){var d,u,h,f;i==="text-change"?(u=(d=s).onEditorChangeText)===null||u===void 0||u.call(d,s.editor.root.innerHTML,o,c,s.unprivilegedEditor):i==="selection-change"&&((f=(h=s).onEditorChangeSelection)===null||f===void 0||f.call(h,o,c,s.unprivilegedEditor))};var a=s.isControlled()?n.value:n.defaultValue;return s.value=a??"",s}return t.prototype.validateProps=function(n){var s;if(Gs.default.Children.count(n.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(Gs.default.Children.count(n.children)){var a=Gs.default.Children.only(n.children);if(((s=a)===null||s===void 0?void 0:s.type)==="textarea")throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.")}if(this.lastDeltaChangeSet&&n.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")},t.prototype.shouldComponentUpdate=function(n,s){var a=this,i;if(this.validateProps(n),!this.editor||this.state.generation!==s.generation)return!0;if("value"in n){var o=this.getEditorContents(),l=(i=n.value,i??"");this.isEqualValue(l,o)||this.setEditorContents(this.editor,l)}return n.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,n.readOnly),ece(this.cleanProps,this.dirtyProps).some(function(c){return!qd.default(n[c],a.props[c])})},t.prototype.shouldComponentRegenerate=function(n){var s=this;return this.dirtyProps.some(function(a){return!qd.default(n[a],s.props[a])})},t.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},t.prototype.componentWillUnmount=function(){this.destroyEditor()},t.prototype.componentDidUpdate=function(n,s){var a=this;if(this.editor&&this.shouldComponentRegenerate(n)){var i=this.editor.getContents(),o=this.editor.getSelection();this.regenerationSnapshot={delta:i,selection:o},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==s.generation){var l=this.regenerationSnapshot,i=l.delta,c=l.selection;delete this.regenerationSnapshot,this.instantiateEditor();var d=this.editor;d.setContents(i),O3(function(){return a.setEditorSelection(d,c)})}},t.prototype.instantiateEditor=function(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())},t.prototype.destroyEditor=function(){this.editor&&this.unhookEditor(this.editor)},t.prototype.isControlled=function(){return"value"in this.props},t.prototype.getEditorConfig=function(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,scrollingContainer:this.props.scrollingContainer,tabIndex:this.props.tabIndex,theme:this.props.theme}},t.prototype.getEditor=function(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor},t.prototype.createEditor=function(n,s){var a=new $3.default(n,s);return s.tabIndex!=null&&this.setEditorTabIndex(a,s.tabIndex),this.hookEditor(a),a},t.prototype.hookEditor=function(n){this.unprivilegedEditor=this.makeUnprivilegedEditor(n),n.on("editor-change",this.onEditorChange)},t.prototype.unhookEditor=function(n){n.off("editor-change",this.onEditorChange)},t.prototype.getEditorContents=function(){return this.value},t.prototype.getEditorSelection=function(){return this.selection},t.prototype.isDelta=function(n){return n&&n.ops},t.prototype.isEqualValue=function(n,s){return this.isDelta(n)&&this.isDelta(s)?qd.default(n.ops,s.ops):qd.default(n,s)},t.prototype.setEditorContents=function(n,s){var a=this;this.value=s;var i=this.getEditorSelection();typeof s=="string"?n.setContents(n.clipboard.convert(s)):n.setContents(s),O3
722(function(){return a.setEditorSelection(n,i)})},t.prototype.setEditorSelection=function(n,s){if(this.selection=s,s){var a=n.getLength();s.index=Math.max(0,Math.min(s.index,a-1)),s.length=Math.max(0,Math.min(s.length,a-1-s.index)),n.setSelection(s)}},t.prototype.setEditorTabIndex=function(n,s){var a,i;!((i=(a=n)===null||a===void 0?void 0:a.scroll)===null||i===void 0)&&i.domNode&&(n.scroll.domNode.tabIndex=s)},t.prototype.setEditorReadOnly=function(n,s){s?n.disable():n.enable()},t.prototype.makeUnprivilegedEditor=function(n){var s=n;return{getHTML:function(){return s.root.innerHTML},getLength:s.getLength.bind(s),getText:s.getText.bind(s),getContents:s.getContents.bind(s),getSelection:s.getSelection.bind(s),getBounds:s.getBounds.bind(s)}},t.prototype.getEditingArea=function(){if(!this.editingArea)throw new Error("Instantiating on missing editing area");var n=tce.default.findDOMNode(this.editingArea);if(!n)throw new Error("Cannot find element for editing area");if(n.nodeType===3)throw new Error("Editing area cannot be a text node");return n},t.prototype.renderEditingArea=function(){var n=this,s=this.props,a=s.children,i=s.preserveWhitespace,o=this.state.generation,l={key:o,ref:function(c){n.editingArea=c}};return Gs.default.Children.count(a)?Gs.default.cloneElement(Gs.default.Children.only(a),l):i?Gs.default.createElement("pre",Ap({},l)):Gs.default.createElement("div",Ap({},l))},t.prototype.render=function(){var n;return Gs.default.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill "+(n=this.props.className,n??""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},t.prototype.onEditorChangeText=function(n,s,a,i){var o,l;if(this.editor){var c=this.isDelta(this.value)?i.getContents():i.getHTML();c!==this.getEditorContents()&&(this.lastDeltaChangeSet=s,this.value=c,(l=(o=this.props).onChange)===null||l===void 0||l.call(o,n,s,a,i))}},t.prototype.onEditorChangeSelection=function(n,s,a){var i,o,l,c,d,u;if(this.editor){var h=this.getEditorSelection(),f=!h&&n,m=h&&!n;qd.default(n,h)||(this.selection=n,(o=(i=this.props).onChangeSelection)===null||o===void 0||o.call(i,n,s,a),f?(c=(l=this.props).onFocus)===null||c===void 0||c.call(l,n,s,a):m&&((u=(d=this.props).onBlur)===null||u===void 0||u.call(d,h,s,a)))}},t.prototype.focus=function(){this.editor&&this.editor.focus()},t.prototype.blur=function(){this.editor&&(this.selection=null,this.editor.blur())},t.displayName="React Quill",t.Quill=$3.default,t.defaultProps={theme:"snow",modules:{},readOnly:!1},t}(Gs.default.Component);function O3(e){Promise.resolve().then(e)}var nce=rce;const Ip=oo(nce),sce={toolbar:[[{header:[1,2,3,!1]}],["bold","italic","underline","strike"],[{list:"ordered"},{list:"bullet"}],[{color:[]},{background:[]}],["link"],["clean"]]},oi=[{key:"unified_application_user_confirmation",label:"Approved Applicant Email",description:"Sent to qualified applicants after they submit the application form. Include booking link and next steps.",type:"user_confirmation",defaultSubject:"Your Simple Operations Application Has Been Received!",defaultHtml:`<h2>Welcome! Your application has been received.</h2> 723<p>Hi {{first_name}},</p> 724<p>Thank you for applying to Simple Operations. We've reviewed your application and you've been matched to our <strong>{{qualification_result}}</strong> program.</p> 725<p><strong>Next Step:</strong> Book your free strategy session to discuss your specific situation and how we can help.</p> 726<p><a href="{{booking_url}}">Click here to book your strategy session</a></p> 727<p>We look forward to speaking with you!</p> 728<p>â The Simple Operations Team</p>`,mergeTags:["first_name","last_name","email","business_name","qualification_result","booking_url"]},{key:"application_disqualification",label:"Rejection / Not Qualified Email",description:"Sent to applicants who don't meet the qualification criteria (under $40K revenue or low commitment). Direct them to free resources.",type:"user_confirmation",defaultSubject:"Your Simple Operations Application Update",defaultHtml:`<h2>Thank you for your interest in Simple Operations</h2> 729<p>Hi {{first_name}},</p> 730<p>We appreciate you taking the time to apply. After reviewing your application, we believe our programs may not be the best fit for your current stage.</p> 731<p>However, we still want to help you grow! We have a suite of <strong>free growth tools</strong> designed specifically for entrepreneurs at your stage.</p> 732<p><a href="{{tools_url}}">Access Your Free Growth Tools Here</a></p> 733<p>These tools will help you build the foundation you need, and when you're ready, we'd love to hear from you again.</p> 734<p>Wishing you the best on your journey!</p> 735<p>â The Simple Operations Team</p>`,mergeTags:["first_name","last_name","email","business_name","tools_url"]}];function ace(){const{user:e}=sn(),[t,n]=j.useState({application_recipient_email:"",application_sender_email:"",application_sender_name:"",approved_applicant_booking_url:"",application_disqualification_tools_url:""}),[s,a]=j.useState(!0),[i,o]=j.useState(!1),[l,c]=j.useState({}),[d,u]=j.useState(oi[0].key),[h,f]=j.useState(""),[m,y]=j.useState(""),[p,v]=j.useState(!1);j.useEffect(()=>{g()},[]);const g=async()=>{a(!0),await Promise.all([x(),b()]),a(!1)},x=async()=>{try{const{data:C,error:$}=await ve.from("admin_settings").select("setting_key, setting_value").in("setting_key",["application_recipient_email","application_sender_email","application_sender_name","approved_applicant_booking_url","application_disqualification_tools_url"]);if($){console.error("Error fetching settings:",$);return}const k=C.reduce((E,T)=>(E[T.setting_key]=T.setting_value,E),{});n(E=>({...E,...k}))}catch(C){console.error("Error:",C)}},b=async()=>{try{const C=oi.map(A=>A.key),{data:$,error:k}=await ve.from("email_templates").select("*").in("template_name",C).eq("is_active",!0);if(k){console.error("Error fetching templates:",k);return}const E={};
735($||[]).forEach(A=>{E[A.template_name]={...A,merge_tags:Array.isArray(A.merge_tags)?A.merge_tags.map(String):[]}}),c(E);const T=oi[0],O=E[T.key];f((O==null?void 0:O.subject_template)||T.defaultSubject),y((O==null?void 0:O.html_template)||T.defaultHtml)}catch(C){console.error("Error:",C)}},w=C=>{u(C);const $=oi.find(E=>E.key===C),k=l[C];f((k==null?void 0:k.subject_template)||$.defaultSubject),y((k==null?void 0:k.html_template)||$.defaultHtml)},N=async()=>{o(!0);try{const C=[{setting_key:"application_recipient_email",setting_value:t.application_recipient_email,description:"Email address where application form submissions are sent"},{setting_key:"application_sender_email",setting_value:t.application_sender_email,description:"Email address used as sender for application confirmations"},{setting_key:"application_sender_name",setting_value:t.application_sender_name,description:"Name used as sender for application emails"},{setting_key:"approved_applicant_booking_url",setting_value:t.approved_applicant_booking_url,description:"External booking URL shown to qualified applicants"},{setting_key:"application_disqualification_tools_url",setting_value:t.application_disqualification_tools_url,description:"URL to free growth tools shown to disqualified applicants"}];for(const $ of C){const{error:k}=await ve.from("admin_settings").upsert($,{onConflict:"setting_key"});if(k)throw k}mr.success("Settings saved successfully!")}catch(C){console.error("Save error:",C),mr.error(`Failed to save: ${C.message}`)}finally{o(!1)}},S=async()=>{v(!0);try{const C=oi.find(T=>T.key===d),$=l[d],k={template_name:d,template_type:C.type,subject_template:h,html_template:m,merge_tags:C.mergeTags,is_active:!0};let E;if($!=null&&$.id?E=await ve.from("email_templates").update(k).eq("id",$.id).select().single():E=await ve.from("email_templates").insert(k).select().single(),E.error)throw E.error;c(T=>({...T,[d]:{...E.data,merge_tags:C.mergeTags}})),mr.success("Email template saved!")}catch(C){console.error("Error saving template:",C),mr.error(`Failed to save template: ${C.message}`)}finally{v(!1)}},_=(C,$)=>{n(k=>({...k,[C]:$}))};return oi.find(C=>C.key===d),s?r.jsx(Nt,{children:r.jsxs("div",{className:"min-h-screen flex w-full",children:[r.jsx(kt,{}),r.jsx("div",{className:"flex-1 flex items-center justify-center",children:r.jsxs("div",{className:"text-center",children:[r.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary mx-auto mb-4"}),r.jsx("p",{className:"text-muted-foreground",children:"Loading..."})]})})]})}):r.jsx(Nt,{children:r.jsxs("div",{className:"min-h-screen flex w-full",children:[r.jsx(kt,{}),r.jsxs("div",{className:"flex-1 flex flex-col",children:[r.jsxs("header",{className:"h-16 border-b flex items-center px-6 bg-background",children:[r.jsx(Tr,{className:"mr-4"}),r.jsx("h1",{className:"text-2xl font-semibold",children:"Application Settings"}),r.jsxs("div",{className:"ml-auto flex items-center gap-4",children:[r.jsxs("span",{className:"text-sm text-muted-foreground",children:["Welcome, ",(e==null?void 0:e.email)||"Admin"]}),r.jsxs(te,{variant:"outline",size:"sm",onClick:()=>window.open("/apply","_blank"),className:"flex items-center gap-2",children:[r.jsx(Cr,{className:"h-4 w-4"}),"View Apply Page"]})]})]}),r.jsx("main",{className:"flex-1 p-6 overflow-y-auto",children:r.jsxs("div",{className:"max-w-5xl mx-auto space-y-6",children:[r.jsxs(yh,{defaultValue:"emails",className:"space-y-6",children:[r.jsxs(Kc,{className:"grid w-full grid-cols-3",children:[r.jsxs(wn,{value:"emails",children:[r.jsx(Ko,{className:"h-4 w-4 mr-2"}),"Email Templates"]}),r.jsxs(wn,{value:"settings",children:[r.jsx(Hu,{className:"h-4 w-4 mr-2"}),"Email Settings"]}),r.jsxs(wn,{value:"routing",children:[r.jsx(Cr,{className:"h-4 w-4 mr-2"}),"Booking & Routing"]})]}),r.jsx(jn,{value:"emails",className:"space-y-6",children:r.jsxs(G,{children:[r.jsxs(Ie,{children:[r.jsxs(Me,{className:"flex items-center gap-2",children:[r.jsx(xr,{className:"h-5 w-5"}),"Application Email Templates"]}),r.jsx(dt,{children:"Edit the emails sent to applicants. The approval email goes to qualified leads; the rejection email goes to disqualified leads."})]}),r.jsx(Ne,{children:r.jsxs(yh,{value:d,onValueChange:w,children:[r.jsx(Kc,{className:"grid w-full grid-cols-2 mb-6",children:oi.map(C=>r.jsx(wn,{value:C.key,className:"text-sm",children:C.label},C.key))}),oi.map(C=>r.jsxs(jn,{value:C.key,className:"space-y-6 mt-0",children:[r.jsx("div",{className:"rounded-lg border bg-muted/50 p-4",children:r.jsx("p",{className:"text-sm text-muted-foreground",children:C.description})}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(oe,{htmlFor:`subject-${C.key}`,children:"Email Subject Line"}),r.jsx(je,{id:`subject-${C.key}`,value:h,onChange:$=>f($.target.value),placeholder:"Enter email subject..."})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(oe,{children:"Email Body"}),r.jsx("div",{className:"min-h-[350px]",children:r.jsx(Ip,{theme:"snow",value:m,onChange:y,modules:sce,style:{height:"280px"}})})]}),r.jsxs("div",{className:"space-y-2 pt-4",children:[r.jsxs(oe,{className:"flex items-center gap-2",children:[r.jsx(hE,{className:"h-4 w-4"}),"Available Merge Tags"]}),r.jsx("div",{className:"flex flex-wrap gap-1.5",children:C.mergeTags.map($=>r.jsx(it,{variant:"secondary",className:"text-xs cursor-pointer hover:bg-primary hover:text-primary-foreground transition-colors",onClick:()=>{navigator.clipboard.writeText(`{{${$}}}`),mr.success(`{{${$}}} copied!`)},children:`{{${$}}}`},$))}),r.jsx("p",{className:"text-xs text-muted-foreground",children:"Click a tag to copy it, then paste into the subject or body."})]}),r.jsxs(te,{onClick:S,disabled:p||!h||!m,className:"flex items-center gap-2",children:[r.jsx(Lr,{className:"h-4 w-4"}),p?"Saving...":"Save Template"]})]},C.key))]})})]})}),r.jsx(jn,{value:"settings",className:"space-y-6",children:r.jsxs(G,{children:[r.jsxs(Ie,{children:[r.jsxs(Me,{className:"flex items-center gap-2",children:[r.jsx(Hu,{className:"h-5 w-5"}),"Email Sending Settings"]}),r.jsx(dt,{children:"Configure who receives admin notifications and who emails appear to come from."})]}),r.jsxs(Ne,{className:"space-y-6",children:[r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{className:"space-y-2",children:[r.jsx(oe,{htmlFor:"recipient-email",children:"Admin Notification
735Email"}),r.jsx(je,{id:"recipient-email",type:"email",placeholder:"[email protected]",value:t.application_recipient_email,onChange:C=>_("application_recipient_email",C.target.value)}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Where admin notifications go when someone applies"})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(oe,{htmlFor:"sender-name",children:"Sender Name"}),r.jsx(je,{id:"sender-name",type:"text",placeholder:"Simple Operations",value:t.application_sender_name,onChange:C=>_("application_sender_name",C.target.value)}),r.jsx("p",{className:"text-sm text-muted-foreground",children:'Name shown in the "From" field'})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(oe,{htmlFor:"sender-email",children:"Sender Email"}),r.jsx(je,{id:"sender-email",type:"email",placeholder:"[email protected]",value:t.application_sender_email,onChange:C=>_("application_sender_email",C.target.value)}),r.jsx("p",{className:"text-sm text-muted-foreground",children:'Email address shown in the "From" field'})]})]}),r.jsxs(te,{onClick:N,disabled:i,className:"flex items-center gap-2",children:[r.jsx(Lr,{className:"h-4 w-4"}),i?"Saving...":"Save Settings"]})]})]})}),r.jsx(jn,{value:"routing",className:"space-y-6",children:r.jsxs(G,{children:[r.jsxs(Ie,{children:[r.jsxs(Me,{className:"flex items-center gap-2",children:[r.jsx(Cr,{className:"h-5 w-5"}),"Booking & Routing URLs"]}),r.jsx(dt,{children:"Control the booking link for qualified applicants and the free tools link used in the disqualification email."})]}),r.jsxs(Ne,{className:"space-y-4",children:[r.jsxs("div",{className:"space-y-2",children:[r.jsx(oe,{htmlFor:"booking-url",children:"Qualified Applicant Booking URL"}),r.jsx(je,{id:"booking-url",type:"url",placeholder:"https://calendly.com/your-link",value:t.approved_applicant_booking_url,onChange:C=>_("approved_applicant_booking_url",C.target.value)}),r.jsx("p",{className:"text-sm text-muted-foreground",children:'Approved applicants see a "Book Your Strategy Session" button linking here'})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(oe,{htmlFor:"tools-url",children:"Disqualification Email â Free Tools Link"}),r.jsx(je,{id:"tools-url",type:"url",placeholder:"https://tools.simpleoperations.com/register",value:t.application_disqualification_tools_url,onChange:C=>_("application_disqualification_tools_url",C.target.value)}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"This URL is included in the automated disqualification email as a link to free growth tools. It does not control where users are redirected â the thank-you page uses internal routes."})]}),r.jsxs(te,{onClick:N,disabled:i,className:"flex items-center gap-2",children:[r.jsx(Lr,{className:"h-4 w-4"}),i?"Saving...":"Save Settings"]})]})]})})]}),r.jsxs(G,{children:[r.jsx(Ie,{children:r.jsxs(Me,{className:"flex items-center gap-2",children:[r.jsx(xr,{className:"h-5 w-5"}),"How It Works"]})}),r.jsx(Ne,{children:r.jsxs("div",{className:"space-y-3 text-sm text-muted-foreground",children:[r.jsxs("p",{children:["⢠",r.jsx("strong",{children:"Qualified applicants"}),' receive the "Approved" email with a link to book a strategy session.']}),r.jsxs("p",{children:["⢠",r.jsx("strong",{children:"Disqualified applicants"}),' receive the "Rejection" email with a link to your free growth tools.']}),r.jsxs("p",{children:["⢠Use ",r.jsx("strong",{children:"merge tags"})," like ",r.jsx("code",{className:"bg-muted px-1 rounded",children:"{{first_name}}"})," to personalize emails automatically."]}),r.jsxs("p",{children:["⢠The ",r.jsx("strong",{children:"Booking URL"})," and ",r.jsx("strong",{children:"Tools URL"})," are also injected as merge tags in the templates."]})]})})]})]})})]})]})})}const ice=()=>{const{user:e}=sn(),{toast:t}=Lt(),[n,s]=j.useState(""),[a,i]=j.useState(""),[o,l]=j.useState(!1),[c,d]=j.useState(!0);j.useEffect(()=>{(async()=>{try{const{data:f,error:m}=await ve.from("admin_settings").select("setting_key, setting_value").in("setting_key",["linkedin_url","facebook_url"]);if(m){console.error("Error fetching social links:",m);return}f==null||f.forEach(y=>{y.setting_key==="linkedin_url"?s(y.setting_value):y.setting_key==="facebook_url"&&i(y.setting_value)})}catch(f){console.error("Error:",f)}finally{d(!1)}})()},[]);const u=async()=>
735{l(!0);try{const{error:h}=await ve.from("admin_settings").upsert({setting_key:"linkedin_url",setting_value:n,description:"LinkedIn profile URL for social links"},{onConflict:"setting_key"});if(h)throw h;const{error:f}=await ve.from("admin_settings").upsert({setting_key:"facebook_url",setting_value:a,description:"Facebook page URL for social links"},{onConflict:"setting_key"});if(f)throw f;t({title:"Success",description:"Social links updated successfully!"})}catch(h){console.error("Error updating social links:",h),t({title:"Error",description:"Failed to update social links. Please try again.",variant:"destructive"})}finally{l(!1)}};return c?r.jsx(Nt,{children:r.jsxs("div",{className:"min-h-screen flex w-full",children:[r.jsx(kt,{}),r.jsxs("div",{className:"flex-1 flex flex-col",children:[r.jsxs("header",{className:"h-16 border-b flex items-center px-6 bg-background",children:[r.jsx(Tr,{className:"mr-4"}),r.jsx("h1",{className:"text-2xl font-semibold",children:"Social Links Management"})]}),r.jsx("main",{className:"flex-1 p-6 flex items-center justify-center",children:r.jsx(wt,{className:"h-8 w-8 animate-spin"})})]})]})}):r.jsx(Nt,{children:r.jsxs("div",{className:"min-h-screen flex w-full",children:[r.jsx(kt,{}),r.jsxs("div",{className:"flex-1 flex flex-col",children:[r.jsxs("header",{className:"h-16 border-b flex items-center px-6 bg-background",children:[r.jsx(Tr,{className:"mr-4"}),r.jsx("h1",{className:"text-2xl font-semibold",children:"Social Links Management"}),r.jsx("div",{className:"ml-auto",children:r.jsxs("span",{className:"text-sm text-muted-foreground",children:["Welcome back, ",e==null?void 0:e.email]})})]}),r.jsxs("main",{className:"flex-1 p-6 space-y-6",children:[r.jsxs(G,{children:[r.jsxs(Ie,{children:[r.jsxs(Me,{className:"flex items-center gap-2",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(hf,{className:"h-5 w-5"}),r.jsx(uf,{className:"h-5 w-5"})]}),"Social Media Links"]}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Manage the social media links that appear on your website."})]}),r.jsxs(Ne,{className:"space-y-4",children:[r.jsxs("div",{className:"space-y-2",children:[r.jsxs(oe,{htmlFor:"linkedin",className:"flex items-center gap-2",children:[r.jsx(hf,{className:"h-4 w-4"}),"LinkedIn URL"]}),r.jsx(je,{id:"linkedin",type:"url",placeholder:"https://linkedin.com/in/your-profile",value:n,onChange:h=>s(h.target.value)})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsxs(oe,{htmlFor:"facebook",className:"flex items-center gap-2",children:[r.jsx(uf,{className:"h-4 w-4"}),"Facebook URL"]}),r.jsx(je,{id:"facebook",type:"url",placeholder:"https://facebook.com/your-page",value:a,onChange:h=>i(h.target.value)})]}),r.jsx("div",{className:"pt-4",children:r.jsx(te,{onClick:u,disabled:o,className:"w-full sm:w-auto",children:o?r.jsxs(r.Fragment,{children:[r.jsx(wt,{className:"mr-2 h-4 w-4 animate-spin"}),"Saving..."]}):r.jsxs(r.Fragment,{children:[r.jsx(Lr,{className:"mr-2 h-4 w-4"}),"Save Social Links"]})})})]})]}),r.jsxs(G,{children:[r.jsxs(Ie,{children:[r.jsx(Me,{children:"Preview"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Preview how the social links will appear on your website."})]}),r.jsx(Ne,{children:r.jsxs("div",{className:"flex items-center space-x-4 p-4 bg-muted rounded-lg",children:[r.jsx("span",{className:"text-sm text-muted-foreground",children:"Social Icons:"}),r.jsxs("div",{className:"flex items-center space-x-3",children:[n&&r.jsx("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center w-10 h-10 bg-primary/10 hover:bg-primary hover:text-white rounded-full transition-all duration-200",children:r.jsx(hf,{className:"w-5 h-5"})}),a&&r.jsx("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center w-10 h-10 bg-primary/10 hover:bg-primary hover:text-white rounded-full transition-all duration-200",children:r.jsx(uf,{className:"w-5 h-5"})}),!n&&!a&&r.jsx("span",{className:"text-sm text-muted-foreground italic",children:"No social links configured"})]})]})})]})]})]})]})})};/*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */const{entries:YA,setPrototypeOf:P3,isFrozen:oce,getPrototypeOf:lce,getOwnPropertyDescriptor:cce}=Object;let{freeze:en,seal:as,create:a1}=Object,{apply:i1,construct:o1}=typeof Reflect<"u"&&Reflect;en||(en=function(t){return t});as||(as=function(t){return t});i1||(i1=function(t,n){for(var s=arguments.length,a=new Array(s>2?s-2:0),i=2;i<s;i++)a[i-2]=arguments[i];return t.apply(n,a)});o1||(o1=function(t){for(var n=arguments.length,s=new Array(n>1?n-1:0),a=1;a<n;a++)s[a-1]=arguments[a];return new t(...s)});const Lm=tn(Array.prototype.forEach),dce=tn(Array.prototype.lastIndexOf),A3=tn(Array.prototype.pop),Hd=tn(Array.prototype.push),uce=tn(Array.prototype.splice),wf=tn(String.prototype.toLowerCase),tv=tn(String.prototype.toString),rv=tn(String.prototype.match),zd=tn(String.prototype.replace),hce=tn(String.prototype.indexOf),mce=tn(String.prototype.trim),ys=tn(Object.prototype.hasOwnProperty),Hr=tn(RegExp.prototype.test),Gd=fce(TypeError);function tn(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,s=new Array(n>1?n-1:0),a=1;a<n;a++)s[a-1]=arguments[a];return i1(e,t,s)}}function fce(e){return function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];return o1(e,n)}}function tt(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:wf;P3&&P3(e,null);let s=t.length;for(;s--;){let a=t[s];
vendor: 6,871 bytes, line 735
735if(typeof a=="string"){const i=n(a);i!==a&&(oce(t)||(t[s]=i),a=i)}e[a]=!0}return e}function pce(e){for(let t=0;t<e.length;t++)ys(e,t)||(e[t]=null);return e}function Ks(e){const t=a1(null);for(const[n,s]of YA(e))ys(e,n)&&(Array.isArray(s)?t[n]=pce(s):s&&typeof s=="object"&&s.constructor===Object?t[n]=Ks(s):t[n]=s);return t}function Yd(e,t){for(;e!==null;){const s=cce(e,t);if(s){if(s.get)return tn(s.get);if(typeof s.value=="function")return tn(s.value)}e=lce(e)}function n(){return null}return n}const I3=en(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),nv=en(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),sv=en(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),gce=en(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),av=en(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),xce=en(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),R3=en(["#text"]),M3=en(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),iv=en(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),D3=en(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","
735subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Bm=en(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),yce=as(/\{\{[\w\W]*|[\w\W]*\}\}/gm),vce=as(/<%[\w\W]*|[\w\W]*%>/gm),bce=as(/\$\{[\w\W]*/gm),wce=as(/^data-[\-\w.\u00B7-\uFFFF]+$/),jce=as(/^aria-[\-\w]+$/),VA=as(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Nce=as(/^(?:\w+script|data):/i),kce=as(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),KA=as(/^html$/i),_ce=as(/^[a-z][.\w]*(-[.\w]+)+$/i);var F3=Object.freeze({__proto__:null,ARIA_ATTR:jce,ATTR_WHITESPACE:kce,CUSTOM_ELEMENT:_ce,DATA_ATTR:wce,DOCTYPE_NAME:KA,ERB_EXPR:vce,IS_ALLOWED_URI:VA,IS_SCRIPT_OR_DATA:Nce,MUSTACHE_EXPR:yce,TMPLIT_EXPR:bce});const Vd={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Sce=function(){return typeof window>"u"?null:window},Cce=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let s=null;const a="data-tt-policy-suffix";n&&n.hasAttribute(a)&&(s=n.getAttribute(a));const i="dompurify"+(s?"#"+s:"");try{return t.createPolicy(i,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},L3=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function QA(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Sce();const t=Be=>QA(Be);if(t.version="3.3.1",t.removed=[],!e||!e.document||e.document.nodeType!==Vd.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e;const s=n,a=s.currentScript,{DocumentFragment:i,HTMLTemplateElement:o,Node:l,Element:c,NodeFilter:d,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:h,DOMParser:f,trustedTypes:m}=e,y=c.prototype,p=Yd(y,"cloneNode"),v=Yd(y,"remove"),g=Yd(y,"nextSibling"),x=Yd(y,"childNodes"),b=Yd(y,"parentNode");if(typeof o=="function"){const Be=n.createElement("template");Be.content&&Be.content.ownerDocument&&(n=Be.content.ownerDocument)}let w,N="";const{implementation:S,createNodeIterator:_,createDocumentFragment:C,getElementsByTagName:$}=n,{importNode:k}=s;let E=L3();t.isSupported=typeof YA=="function"&&typeof b=="function"&&S&&S.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:T,ERB_EXPR:O,TMPLIT_EXPR:A,DATA_ATTR:U,ARIA_ATTR:z,IS_SCRIPT_OR_DATA:W,ATTR_WHITESPACE:B,CUSTOM_ELEMENT:R}=F3;let{IS_ALLOWED_URI:D}=F3,P=null;const I=tt({},[...I3,...nv,...sv,...av,...R3]);let F=null;const Y=tt({},[...M3,...iv,...D3,...Bm]);let H=Object.seal(a1(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),L=null,M=null;const Q=Object.seal(a1(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let X=!0,re=!0,de=!1,be=!0,Ee=!1,Fe=!0,qe=!1,xt=!1,ot=!1,ne=!1,se=!1,q=!1,V=!0,K=!1;const ce="user-content-";let ie=!0,ae=!1,ye={},De=null;const Le=tt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let lr=null;const lt=tt({},["audio","video","img","source","image","track"]);let Bt=null;const wo=tt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Gn="http://www.w3.org/1998/Math/MathML",Ur="http://www.w3.org/2000/svg",on="http://www.w3.org/1999/xhtml";let $r=on,jo=!1,ri=null;const nm=tt({},[Gn,Ur,on],tv);let No=tt({},["mi","mo","mn","ms","mtext"]),kl=tt({},["annotation-xml"]);const kd=tt({},["title","style","font","a","script"]);let ln=null;const Ix=["application/xhtml+xml","text/html"],Ye="text/html";let He=null,pt=null;const $n=n.createElement("form"),cn=function(J){return J instanceof RegExp||J instanceof Function},Yn=function(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(pt&&pt===J)){if((!J||typeof J!="object")&&(J={}
vendor: 5,860 bytes, line 735
735),J=Ks(J),ln=Ix.indexOf(J.PARSER_MEDIA_TYPE)===-1?Ye:J.PARSER_MEDIA_TYPE,He=ln==="application/xhtml+xml"?tv:wf,P=ys(J,"ALLOWED_TAGS")?tt({},J.ALLOWED_TAGS,He):I,F=ys(J,"ALLOWED_ATTR")?tt({},J.ALLOWED_ATTR,He):Y,ri=ys(J,"ALLOWED_NAMESPACES")?tt({},J.ALLOWED_NAMESPACES,tv):nm,Bt=ys(J,"ADD_URI_SAFE_ATTR")?tt(Ks(wo),J.ADD_URI_SAFE_ATTR,He):wo,lr=ys(J,"ADD_DATA_URI_TAGS")?tt(Ks(lt),J.ADD_DATA_URI_TAGS,He):lt,De=ys(J,"FORBID_CONTENTS")?tt({},J.FORBID_CONTENTS,He):Le,L=ys(J,"FORBID_TAGS")?tt({},J.FORBID_TAGS,He):Ks({}),M=ys(J,"FORBID_ATTR")?tt({},J.FORBID_ATTR,He):Ks({}),ye=ys(J,"USE_PROFILES")?J.USE_PROFILES:!1,X=J.ALLOW_ARIA_ATTR!==!1,re=J.ALLOW_DATA_ATTR!==!1,de=J.ALLOW_UNKNOWN_PROTOCOLS||!1,be=J.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ee=J.SAFE_FOR_TEMPLATES||!1,Fe=J.SAFE_FOR_XML!==!1,qe=J.WHOLE_DOCUMENT||!1,ne=J.RETURN_DOM||!1,se=J.RETURN_DOM_FRAGMENT||!1,q=J.RETURN_TRUSTED_TYPE||!1,ot=J.FORCE_BODY||!1,V=J.SANITIZE_DOM!==!1,K=J.SANITIZE_NAMED_PROPS||!1,ie=J.KEEP_CONTENT!==!1,ae=J.IN_PLACE||!1,D=J.ALLOWED_URI_REGEXP||VA,$r=J.NAMESPACE||on,No=J.MATHML_TEXT_INTEGRATION_POINTS||No,kl=J.HTML_INTEGRATION_POINTS||kl,H=J.CUSTOM_ELEMENT_HANDLING||{},J.CUSTOM_ELEMENT_HANDLING&&cn(J.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=J.CUSTOM_ELEMENT_HANDLING.tagNameCheck),J.CUSTOM_ELEMENT_HANDLING&&cn(J.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(H.attributeNameCheck=J.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),J.CUSTOM_ELEMENT_HANDLING&&typeof J.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(H.allowCustomizedBuiltInElements=J.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ee&&(re=!1),se&&(ne=!0),ye&&(P=tt({},R3),F=[],ye.html===!0&&(tt(P,I3),tt(F,M3)),ye.svg===!0&&(tt(P,nv),tt(F,iv),tt(F,Bm)),ye.svgFilters===!0&&(tt(P,sv),tt(F,iv),tt(F,Bm)),ye.mathMl===!0&&(tt(P,av),tt(F,D3),tt(F,Bm))),J.ADD_TAGS&&(typeof J.ADD_TAGS=="function"?Q.tagCheck=J.ADD_TAGS:(P===I&&(P=Ks(P)),tt(P,J.ADD_TAGS,He))),J.ADD_ATTR&&(typeof J.ADD_ATTR=="function"?Q.attributeCheck=J.ADD_ATTR:(F===Y&&(F=Ks(F)),tt(F,J.ADD_ATTR,He))),J.ADD_URI_SAFE_ATTR&&tt(Bt,J.ADD_URI_SAFE_ATTR,He),J.FORBID_CONTENTS&&(De===Le&&(De=Ks(De)),tt(De,J.FORBID_CONTENTS,He)),J.ADD_FORBID_CONTENTS&&(De===Le&&(De=Ks(De)),tt(De,J.ADD_FORBID_CONTENTS,He)),ie&&(P["#text"]=!0),qe&&tt(P,["html","head","body"]),P.table&&(tt(P,["tbody"]),delete L.tbody),J.TRUSTED_TYPES_POLICY){if(typeof J.TRUSTED_TYPES_POLICY.createHTML!="function")throw Gd('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof J.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Gd('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=J.TRUSTED_TYPES_POLICY,N=w.createHTML("")}else w===void 0&&(w=Cce(m,a)),w!==null&&typeof N=="string"&&(N=w.createHTML(""));en&&en(J),pt=J}},Us=tt({},[...nv,...sv,...gce]),dn=tt({},[...av,...xce]),qs=function(J){let ge=b(J);(!ge||!ge.tagName)&&(ge={namespaceURI:$r,tagName:"template"});const Pe=wf(J.tagName),Mt=wf(ge.tagName);return ri[J.namespaceURI]?J.namespaceURI===Ur?ge.namespaceURI===on?Pe==="svg":ge.namespaceURI===Gn?Pe==="svg"&&(Mt==="annotation-xml"||No[Mt]):!!Us[Pe]:J.namespaceURI===Gn?ge.namespaceURI===on?Pe==="math":ge.namespaceURI===Ur?Pe==="math"&&kl[Mt]:!!dn[Pe]:J.namespaceURI===on?ge.namespaceURI===Ur&&!kl[Mt]||ge.namespaceURI===Gn&&!No[Mt]?!1:!dn[Pe]&&(kd[Pe]||!Us[Pe]):!!(ln==="application/xhtml+xml"&&ri[J.namespaceURI]):!1},Hs=function(J){Hd(t.removed,{element:J});try{b(J).removeChild(J)}catch{v(J)}},ko=function(J,ge){try{Hd(t.removed,{attribute:ge.getAttributeNode(J),from:ge})}catch{Hd(t.removed,{attribute:null,from:ge})}if(ge.removeAttribute(J),J==="is")if(ne||se)try{Hs(ge)}catch{}else try{ge.setAttribute(J,"")}catch{}},lN=function(J){let ge=null,Pe=null;if(ot)J="<remove></remove>"+J;else{const er=rv(J,/^[\r\n\t ]+/);Pe=er&&er[0]}ln==="application/xhtml+xml"&&$r===on&&(J='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+J+"</body></html>");const Mt=w?w.createHTML(J):J;if($r===on)try{ge=new f().parseFromString(Mt,ln)}catch{}if(!ge||!ge.documentElement){ge=S.createDocument($r,"template",null);try{ge.documentElement.innerHTML=jo?N:Mt}catch{}}const Or=ge.body||ge.documentElement;return J&&Pe&&Or.insertBefore(n.createTextNode(Pe),Or.childNodes[0]||null),$r===on?$.call(ge,qe?"html":"body")[0]:qe?ge.documentElement:Or},cN=function(J){return _.call(J.ownerDocument||J,J,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},Rx=function(J){return J instanceof h&&(typeof J.nodeName!="string"||typeof J.textContent!="string"||typeof J.removeChild!="function"||!(J.attributes instanceof u)||typeof J.removeAttribute!="function"||typeof J.setAttribute!="function"||typeof J.namespaceURI!="string"||typeof J.insertBefore!="function"||typeof J.hasChildNodes!="function")},dN=function(J){return typeof l=="function"&&J instanceof l};function ya(Be,J,ge){Lm(Be,Pe=>{Pe.call(t,J,ge,pt)})}const uN=function(J){let ge=null;if(ya(E.beforeSanitizeElements,J,null),Rx(J))return Hs(J),!0;const Pe=He(J.nodeName);if(ya(E.uponSanitizeElement,J,{tagName:Pe,allowedTags:P}),Fe&&J.hasChildNodes()&&!dN(J.firstElementChild)&&Hr(/<[/\w!]/g,J.innerHTML)&&Hr(/<[/\w!]/g,J.textContent)||J.nodeType===Vd.progressingInstruction||Fe&&J.nodeType===Vd.comment&&Hr(/<[/\w]/g,J.data))return Hs(J),!0;if(!(Q.tagCheck instanceof Function&&Q.tagCheck(Pe))&&(!P[Pe]||L[Pe])){if(!L[Pe]&&mN(Pe)&&(H.tagNameCheck instanceof RegExp&&Hr(H.tagNameCheck,Pe)||H.tagNameCheck instanceof Function&&H.tagNameCheck(Pe)))return!1;if(ie&&!De[Pe]){const Mt=b(J)||J.parentNode,Or=x(J)||J.childNodes;if(Or&&Mt){const er=Or.length;for(let un=er-1;un>=0;--un){const va=p(Or[un],!0);va.__removalCount=(J.__removalCount||0)+1,Mt.insertBefore(va,g(J))}}}return Hs(J),!0}return J instanceof c&&!qs(J)||(Pe==="noscript"||Pe==="noembed"||Pe==="noframes")&&Hr
vendor: 1,150 bytes, line 735
735(/<\/no(script|embed|frames)/i,J.innerHTML)?(Hs(J),!0):(Ee&&J.nodeType===Vd.text&&(ge=J.textContent,Lm([T,O,A],Mt=>{ge=zd(ge,Mt," ")}),J.textContent!==ge&&(Hd(t.removed,{element:J.cloneNode()}),J.textContent=ge)),ya(E.afterSanitizeElements,J,null),!1)},hN=function(J,ge,Pe){if(V&&(ge==="id"||ge==="name")&&(Pe in n||Pe in $n))return!1;if(!(re&&!M[ge]&&Hr(U,ge))){if(!(X&&Hr(z,ge))){if(!(Q.attributeCheck instanceof Function&&Q.attributeCheck(ge,J))){if(!F[ge]||M[ge]){if(!(mN(J)&&(H.tagNameCheck instanceof RegExp&&Hr(H.tagNameCheck,J)||H.tagNameCheck instanceof Function&&H.tagNameCheck(J))&&(H.attributeNameCheck instanceof RegExp&&Hr(H.attributeNameCheck,ge)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(ge,J))||ge==="is"&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&Hr(H.tagNameCheck,Pe)||H.tagNameCheck instanceof Function&&H.tagNameCheck(Pe))))return!1}else if(!Bt[ge]){if(!Hr(D,zd(Pe,B,""))){if(!((ge==="src"||ge==="xlink:href"||ge==="href")&&J!=="script"&&hce(Pe,"data:")===0&&lr[J])){if(!(de&&!Hr(W,zd(Pe,B,"")))){if(Pe)return!1}}}}}}}return!0},mN=function(J){return J!=="annotation-xml"&&rv(J,R)}
735,fN=function(J){ya(E.beforeSanitizeAttributes,J,null);const{attributes:ge}=J;if(!ge||Rx(J))return;const Pe={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:F,forceKeepAttr:void 0};let Mt=ge.length;for(;Mt--;){const Or=ge[Mt],{name:er,namespaceURI:un,value:va}=Or,_l=He(er),Mx=va;let Nr=er==="value"?Mx:mce(Mx);if(Pe.attrName=_l,Pe.attrValue=Nr,Pe.keepAttr=!0,Pe.forceKeepAttr=void 0,ya(E.uponSanitizeAttribute,J,Pe),Nr=Pe.attrValue,K&&(_l==="id"||_l==="name")&&(ko(er,J),Nr=ce+Nr),Fe&&Hr(/((--!?|])>)|<\/(style|title|textarea)/i,Nr)){ko(er,J);continue}if(_l==="attributename"&&rv(Nr,"href")){ko(er,J);continue}if(Pe.forceKeepAttr)continue;if(!Pe.keepAttr){ko(er,J);continue}if(!be&&Hr(/\/>/i,Nr)){ko(er,J);continue}Ee&&Lm([T,O,A],gN=>{Nr=zd(Nr,gN," ")});const pN=He(J.nodeName);if(!hN(pN,_l,Nr)){ko(er,J);continue}if(w&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!un)switch(m.getAttributeType(pN,_l)){case"TrustedHTML":{Nr=w.createHTML(Nr);break}case"TrustedScriptURL":{Nr=w.createScriptURL(Nr);break}}if(Nr!==Mx)try{un?J.setAttributeNS(un,er,Nr):J.setAttribute(er,Nr),Rx(J)?Hs(J):A3(t.removed)}catch{ko(er,J)}}ya(E.afterSanitizeAttributes,J,null)},GI=function Be(J){let ge=null;const Pe=cN(J);for(ya(E.beforeSanitizeShadowDOM,J,null);ge=Pe.nextNode();)ya(E.uponSanitizeShadowNode,ge,null),uN(ge),fN(ge),ge.content instanceof i&&Be(ge.content);ya(E.afterSanitizeShadowDOM,J,null)};return t.sanitize=function(Be){let J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ge=null,Pe=null,Mt=null,Or=null;if(jo=!Be,jo&&(Be="<!-->"),typeof Be!="string"&&!dN(Be))if(typeof Be.toString=="function"){if(Be=Be.toString(),typeof Be!="string")throw Gd("dirty is not a string, aborting")}else throw Gd("toString is not a function");if(!t.isSupported)return Be;if(xt||Yn(J),t.removed=[],typeof Be=="string"&&(ae=!1),ae){if(Be.nodeName){const va=He(Be.nodeName);if(!P[va]||L[va])throw Gd("root node is forbidden and cannot be sanitized in-place")}}else if(Be instanceof l)ge=lN("<!---->"),Pe=ge.ownerDocument.importNode(Be,!0),Pe.nodeType===Vd.element&&Pe.nodeName==="BODY"||Pe.nodeName==="HTML"?ge=Pe:ge.appendChild(Pe);else{if(!ne&&!Ee&&!qe&&Be.indexOf("<")===-1)return w&&q?w.createHTML(Be):Be;if(ge=lN(Be),!ge)return ne?null:q?N:""}ge&&ot&&Hs(ge.firstChild);const er=cN(ae?Be:ge);for(;Mt=er.nextNode();)uN(Mt),fN(Mt),Mt.content instanceof i&&GI(Mt.content);if(ae)return Be;if(ne){if(se)for(Or=C.call(ge.ownerDocument);ge.firstChild;)Or.appendChild(ge.firstChild);else Or=ge;return(F.shadowroot||F.shadowrootmode)&&(Or=k.call(s,Or,!0)),Or}let un=qe?ge.outerHTML:ge.innerHTML;return qe&&P["!doctype"]&&ge.ownerDocument&&ge.ownerDocument.doctype&&ge.ownerDocument.doctype.name&&Hr(KA,ge.ownerDocument.doctype.name)&&(un="<!DOCTYPE "+ge.ownerDocument.doctype.name+`> 736`+un),Ee&&Lm([T,O,A],va=>{un=zd(un,va," ")}),w&&q?w.createHTML(un):un},t.setConfig=function(){let Be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Yn(Be),xt=!0},t.clearConfig=function(){pt=null,xt=!1},t.isValidAttribute=function(Be,J,ge){pt||Yn({});const Pe=He(Be),Mt=He(J);return hN(Pe,Mt,ge)},t.addHook=function(Be,J){typeof J=="function"&&Hd(E[Be],J)},t.removeHook=function(Be,J){if(J!==void 0){const ge=dce(E[Be],J);return ge===-1?void 0:uce(E[Be],ge,1)[0]}return A3(E[Be])},t.removeHooks=function(Be){E[Be]=[]},t.removeAllHooks=function(){E=L3()},t}var mx=QA();const Ece=()=>{const{user:e}=sn(),{toast:t}=Lt(),[n,s]=j.useState({homepage_hero_embed_code:""}),[a,i]=j.useState(!0),[o,l]=j.useState(!1),[c,d]=j.useState(!1);j.useEffect(()=>{u()},[]);const u=async()=>{try{const{data:m,error:y}=await et.select("admin_settings",{filters:{setting_key:"homepage_hero_embed_code"}});!y&&m&&m.length>0&&s({homepage_hero_embed_code:m[0].setting_value||""})}catch(m){console.log("Settings fetch failed:",m)}finally{i(!1)}},h=m=>{s({homepage_hero_embed_code:m}),d(!1)},f=async()=>{if(!n.homepage_hero_embed_code.trim()){t({title:"Embed code required",description:"Please enter the video embed code.",variant:"destructive"});return}l(!0);try{const{error:m}=await et.upsert("admin_settings",{setting_key:"homepage_hero_embed_code",setting_value:n.homepage_hero_embed_code,description:"HTML embed code for the homepage hero video"});if(m)throw m;t({title:"Settings saved",description:"Video embed code has been saved successfully."}),await u()}catch(m){console.error("Error saving settings:",m),t({title:"Error saving settings",description:"Failed to save the video settings. Please try again.",variant:"destructive"})}finally{l(!1)}};return a?r.jsx(Nt,{children:r.jsxs("div",{className:"min-h-screen flex w-full",children:[r.jsx(kt,{}),r.jsx("div",{className:"flex-1 flex items-center justify-center",children:r.jsx("div",{className:"animate-spin rounded-full h-32 w-32 border-b-2 border-primary"})})]})}):r.jsx(Nt,{children:r.jsxs("div",{className:"min-h-screen flex w-full",children:[r.jsx(kt,{}),r.jsxs("div",{className:"flex-1 flex flex-col",children:[r.jsxs("header",{className:"h-16 border-b flex items-center px-6 bg-background",children:[r.jsx(Tr,{className:"mr-4"}),r.jsx("h1",{className:"text-2xl font-semibold",children:"Video Settings"}),r.jsx("div",{className:"ml-auto flex items-center gap-4",children:r.jsxs("span",{className:"text-sm text-muted-foreground",children:["Welcome, ",(e==null?void 0:e.email)||"Admin"]})})]}),r.jsx("main",{className:"flex-1 p-6",children:r.jsxs("div",{className:"max-w-4xl space-y-6",children:[r.jsxs(G,{children:[r.jsx(Ie,{children:r.jsxs(Me,{className:"flex items-center gap-2",children:[r.jsx(fE,{className:"w-5 h-5"}),"Homepage Hero Video"]})}),r.jsxs(Ne,{className:"space-y-4",children:[r.jsxs("div",{className:"space-y-2",children:[r.jsx(oe,{htmlFor:"homepage_hero_embed_code",children:"Video Embed Code"}),r.jsx(bn,{id:"homepage_hero_embed_code",value:n.homepage_hero_embed_code,onChange:m=>h(m.target.value),placeholder:'<iframe src="https://player.vimeo.com/video/123456789" width="640" height="360" frameborder="0" allow="autoplay; fullscreen; picture-in-picture" allowfullscreen></iframe>',className:"border-2 bg-card focus:bg-background hover:border-muted-foreground transition-colors shadow-sm min-h-[120px] font-mono text-sm",rows:6}),r.jsx("p",{className:"text-xs text-muted-foreground",children:"Paste the complete embed code from Vimeo, YouTube, or any video platform. This gives you full control over the video settings."})]}),n.homepage_hero_embed_code&&r.jsxs("div",{className:"space-y-3",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx(oe,{children:"Video Preview"}),r.jsxs(te,{type:"button",variant:"outline",size:"sm",onClick:()=>d(!c),children:[r.jsx(Uu,{className:"w-4 h-4 mr-2"}),c?"Hide Preview":"Show Preview"]})]}),c&&r.jsxs("div",{className:"relative bg-section-gray rounded-xl p-4 shadow-medium",children:[r.jsx("div",{className:"relative w-full",style:{aspectRatio:"16/9"},dangerouslySetInnerHTML:{__html:mx.sanitize(n.homepage_hero_embed_code,{ADD_TAGS:["iframe"],ADD_ATTR:["allow","allowfullscreen","frameborder","scrolling","src","title","width","height","style"]})}}),r.jsx("p",{className:"text-xs text-muted-foreground mt-2 text-center",children:"This is how the video will appear on your homepage"})]})]}),r.jsx("div",{className:"pt-4",children:r.jsx(te,{onClick:f,disabled:o||!n.homepage_hero_embed_code.trim(),className:"w-full",children:o?r.jsxs(r.Fragment,{children:[r.jsx(Mn,{className:"w-4 h-4 mr-2 animate-spin"}),"Saving..."]}):r.jsxs(r.Fragment,{children:[r.jsx(Lr,{className:"w-4 h-4 mr-2"}),"Save Embed Code"]})})})]})]}),r.jsxs(G,{children:[r.jsx(Ie,{children:r.jsxs(Me,{className:"flex items-center gap-2",children:[r.jsx(lE,{className:"w-5 h-5"}),"How to Get Embed Code"]})}),r.jsxs(Ne,{className:"space-y-4 text-sm text-muted-foreground",children:[r.jsxs("div",{className:"space-y-3",children:[r.jsxs("div",{children:[r.jsx("p",{className:"font-semibold text-foreground mb-2",children:"For Vimeo:"}),r.jsxs("ol",{className:"list-decimal list-inside space-y-1 ml-4 text-xs",children:[r.jsx("li",{children:"Go to your video on Vimeo"}),r.jsx("li",{children:'Click the "Share" button'}),r.jsx("li",{children:'Click "Embed" tab'}),r.jsx("li",{children:"Copy the iframe code"}),r.jsx("li",{children:"Paste it above"})]})]}),r.jsxs("div",{children:[r.jsx("p",{className:"font-semibold text-foreground mb-2",children:"For YouTube:"}),r.jsxs("ol",{className:"list-decimal list-inside space-y-1 ml-4 text-xs",children:[r.jsx("li",{children:"Go to your video on YouTube"}),r.jsx("li",{children:'Click "Share" below the video'}),r.jsx("li",{children:'Click "Embed"'}),r.jsx("li",{children:"Copy the iframe code"}),r.jsx("li",{children:"Paste it above"})]})]}),r.jsxs("div",{children:[r.jsx("p",{className:"font-semibold text-foreground mb-2",children:"For other platforms:"}),r.jsx("p",{className:"text-xs ml-4",children:'Look for "Share" â "Embed" or "Embed Code" options. Copy the iframe HTML code.'})]})]}),r.jsx("div",{className:"bg-accent/10 p-3 rounded-lg border border-accent/20",children:r.jsxs("p",{className:"text-xs",children:[r.jsx("strong",{children:"Benefits of using embed code:"})," You get full control over video settings like autoplay, controls, quality, and privacy settings directly from the platform."]})}),r.jsx("p",{className:"pt-2 text-xs",children:"Changes take effect immediately after saving and will be visible on the homepage."})]})]})]})})]})]})})};var fx="Popover",[ZA,exe]=ir(fx,[mo]),Kh=mo(),[Tce,bo]=ZA(fx),XA=e=>{const{__scopePopover:t,children:n,open:s,defaultOpen:a,onOpenChange:i,modal:o=!1}=e,l=Kh(t),c=j.useRef(null),[d,u]=j.useState(!1),[h,f]=Xr({prop:s,defaultProp:a??!1,onChange:i,caller:fx});return r.jsx(gg,{...l,children:r.jsx(Tce,{scope:t,contentId:ar(),triggerRef:c,open:h,onOpenChange:f,onOpenToggle:j.useCallback(()=>f(m=>!m),[f]),hasCustomAnchor:d,onCustomAnchorAdd:j.useCallback(()=>u(!0),[]),onCustomAnchorRemove:j.useCallback(()=>u(!1),[]),modal:o,children:n})})};
vendor: 4,537 bytes, line 736
736XA.displayName=fx;var JA="PopoverAnchor",$ce=j.forwardRef((e,t)=>{const{__scopePopover:n,...s}=e,a=bo(JA,n),i=Kh(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:l}=a;return j.useEffect(()=>(o(),()=>l()),[o,l]),r.jsx(Ah,{...i,...s,ref:t})});$ce.displayName=JA;var e8="PopoverTrigger",t8=j.forwardRef((e,t)=>{const{__scopePopover:n,...s}=e,a=bo(e8,n),i=Kh(n),o=Ge(t,a.triggerRef),l=r.jsx(we.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":i8(a.open),...s,ref:o,onClick:me(e.onClick,a.onOpenToggle)});return a.hasCustomAnchor?l:r.jsx(Ah,{asChild:!0,...i,children:l})});t8.displayName=e8;var Fj="PopoverPortal",[Oce,Pce]=ZA(Fj,{forceMount:void 0}),r8=e=>{const{__scopePopover:t,forceMount:n,children:s,container:a}=e,i=bo(Fj,t);return r.jsx(Oce,{scope:t,forceMount:n,children:r.jsx(or,{present:n||i.open,children:r.jsx(sd,{asChild:!0,container:a,children:s})})})};r8.displayName=Fj;var Qc="PopoverContent",n8=j.forwardRef((e,t)=>{const n=Pce(Qc,e.__scopePopover),{forceMount:s=n.forceMount,...a}=e,i=bo(Qc,e.__scopePopover);return r.jsx(or,{present:s||i.open,children:i.modal?r.jsx(Ice,{...a,ref:t}):r.jsx(Rce,{...a,ref:t})})});n8.displayName=Qc;var Ace=Xi("PopoverContent.RemoveScroll"),Ice=j.forwardRef((e,t)=>{const n=bo(Qc,e.__scopePopover),s=j.useRef(null),a=Ge(t,s),i=j.useRef(!1);return j.useEffect(()=>{const o=s.current;if(o)return Ig(o)},[]),r.jsx(Lh,{as:Ace,allowPinchZoom:!0,children:r.jsx(s8,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:me(e.onCloseAutoFocus,o=>{var l;o.preventDefault(),i.current||(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:me(e.onPointerDownOutside,o=>{const l=o.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,d=l.button===2||c;i.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:me(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1})})})}),Rce=j.forwardRef((e,t)=>{const n=bo(Qc,e.__scopePopover),s=j.useRef(!1),a=j.useRef(!1);return r.jsx(s8,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,l;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(s.current||(l=n.triggerRef.current)==null||l.focus(),i.preventDefault()),s.current=!1,a.current=!1},onInteractOutside:i=>{var c,d;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(s.current=!0,i.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const o=i.target;((d=n.triggerRef.current)==null?void 0:d.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&a.current&&i.preventDefault()}})}),s8=j.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:s,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:o,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:u,...h}=e,f=bo(Qc,n),m=Kh(n);return Ag(),r.jsx(Dh,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:a,onUnmountAutoFocus:i,children:r.jsx(gl,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:d,onDismiss:()=>f.onOpenChange(!1),children:r.jsx(xg,{"data-state":i8(f.open),role:"dialog",id:f.contentId,...m,...h,ref:t,style:{...h.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),a8="PopoverClose",Mce=j.forwardRef((e,t)=>{const{__scopePopover:n,...s}=e,a=bo(a8,n);return r.jsx(we.button,{type:"button",...s,ref:t,onClick:me(e.onClick,()=>a.onOpenChange(!1))})});Mce.displayName=a8;var Dce="PopoverArrow",Fce=j.forwardRef((e,t)=>{const{__scopePopover:n,...s}=e,a=Kh(n);return r.jsx(yg,{...a,...s,ref:t})});Fce.displayName=Dce;function i8(e){return e?"open":"closed"}var Lce=XA,Bce=t8,Wce=r8,o8=n8;const px=Lce,gx=Bce,Qh=j.forwardRef(({className:e,align:t="center",sideOffset:n=4,...s},a)=>r.jsx(Wce,{children:r.jsx(o8,{ref:a,align:t,sideOffset:n,className:le("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
736de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...s})}));Qh.displayName=o8.displayName;function ut(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function qn(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function Qr(e,t){const n=ut(e);return isNaN(t)?qn(e,NaN):(t&&n.setDate(n.getDate()+t),n)}function Fs(e,t){const n=ut(e);if(isNaN(t))return qn(e,NaN);if(!t)return n;const s=n.getDate(),a=qn(e,n.getTime());a.setMonth(n.getMonth()+t+1,0);const i=a.getDate();return s>=i?a:(n.setFullYear(a.getFullYear(),a.getMonth(),s),n)}const Lj=6048e5,Uce=864e5;let qce={};function Zh(){return qce}function pa(e,t){var l,c,d,u;const n=Zh(),s=(t==null?void 0:t.weekStartsOn)??((c=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((u=(d=n.locale)==null?void 0:d.options)==null?void 0:u.weekStartsOn)??0,a=ut(e),i=a.getDay(),o=(i<s?7:0)+i-s;return a.setDate(a.getDate()-o),a.setHours(0,0,0,0),a}function ul(e){return pa(e,{weekStartsOn:1})}function l8(e){const t=ut(e),n=t.getFullYear(),s=qn(e,0);s.setFullYear(n+1,0,4),s.setHours(0,0,0,0);const a=ul(s),i=qn(e,0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);const o=ul(i);return t.getTime()>=a.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function Zc(e){const t=ut(e);return t.setHours(0,0,0,0),t}function Rp(e){const t=ut(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function oa(e,t){const n=Zc(e),s=Zc(t),a=+n-Rp(n),i=+s-Rp(s);return Math.round((a-i)/Uce)}function Hce(e){const t=l8(e),n=qn(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),ul(n)}function l1(e,t){const n=t*7;return Qr(e,n)}function zce(e,t){return Fs(e,t*12)}function Gce(e){let t;return e.forEach(function(n){const s=ut(n);(t===void 0||t<s||isNaN(Number(s)))&&(t=s)}),t||new Date(NaN)}function Yce(e){let t;return e.forEach(n=>{const s=ut(n);(!t||t>s||isNaN(+s))&&(t=s)}),t||new Date(NaN)}function Nn(e,t){const n=Zc(e),s=Zc(t);return+n==+s}function Bj(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Vce(e){if(!Bj(e)&&typeof e!="number")return!1;const t=ut(e);return!isNaN(Number(t))}function vh(e,t){const n=ut(e),s=ut(t),a=n.getFullYear()-s.getFullYear(),i=n.getMonth()-s.getMonth();return a*12+i}function Kce(e,t,n){const s=pa(e,n),a=pa(t,n),i=+s-Rp(s),o=+a-Rp(a);return Math.round((i-o)/Lj)}function Wj(e){const t=ut(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function Cn(e){const t=ut(e);return t.setDate(1),t.setHours(0,0,0,0),t}function c8(e){const t=ut(e),n=qn(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Uj(e,t){var l,c,d,u;const n=Zh(),s=(t==null?void 0:t.weekStartsOn)??((c=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((u=(d=n.locale)==null?void 0:d.options)==null?void 0:u.weekStartsOn)??0,a=ut(e),i=a.getDay(),o=(i<s?-7:0)+6-(i-s);return a.setDate(a.getDate()+o),a.setHours(23,59,59,999),a}function d8(e){return Uj(e,{weekStartsOn:1})}const Qce={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Zce=(e,t,n)=>{let s;const a=Qce[e];
vendor: 12,839 bytes, line 736
736return typeof a=="string"?s=a:t===1?s=a.one:s=a.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+s:s+" ago":s};function ov(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Xce={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Jce={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},ede={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},tde={date:ov({formats:Xce,defaultWidth:"full"}),time:ov({formats:Jce,defaultWidth:"full"}),dateTime:ov({formats:ede,defaultWidth:"full"})},rde={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},nde=(e,t,n,s)=>rde[e];function Kd(e){return(t,n)=>{const s=n!=null&&n.context?String(n.context):"standalone";let a;if(s==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,l=n!=null&&n.width?String(n.width):o;a=e.formattingValues[l]||e.formattingValues[o]}else{const o=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;a=e.values[l]||e.values[o]}const i=e.argumentCallback?e.argumentCallback(t):t;return a[i]}}const sde={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},ade={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ide={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},ode={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},lde={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},cde={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},dde=(e,t)=>{const n=Number(e),s=n%100;if(s>20||s<10)switch(s%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},ude={ordinalNumber:dde,era:Kd({values:sde,defaultWidth:"wide"}),quarter:Kd({values:ade,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Kd({values:ide,defaultWidth:"wide"}),day:Kd({values:ode,defaultWidth:"wide"}),dayPeriod:Kd({values:lde,defaultWidth:"wide",formattingValues:cde,defaultFormattingWidth:"wide"})};function Qd(e){return(t,n={})=>{const s=n.width,a=s&&e.matchPatterns[s]||e.matchPatterns[e.defaultMatchWidth],i=t.match(a);if(!i)return null;const o=i[0],l=s&&e.parsePatterns[s]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?mde(l,h=>h.test(o)):hde(l,h=>h.test(o));let d;d=e.valueCallback?e.valueCallback(c):c,d=n.valueCallback?n.valueCallback(d):d;const u=t.slice(o.length);return{value:d,rest:u}}}function hde(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function mde(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function fde(e){return(t,n={})=>{const s=t.match(e.matchPattern);if(!s)return null;const a=s[0],i=t.match(e.parsePattern);if(!i)return null;let o=e.valueCallback?e.valueCallback(i[0]):i[0];o=n.valueCallback?n.valueCallback(o):o;const l=t.slice(a.length);return{value:o,rest:l}}}const pde=/^(\d+)(th|st|nd|rd)?/i,gde=/\d+/i,xde={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},yde={any:[/^b/i,/^(a|c)/i]},vde={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},bde={any:[/1/i,/2/i,/3/i,/4/i]},wde={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},jde={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Nde={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},kde={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},_de={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Sde={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Cde={ordinalNumber:fde({matchPattern:pde,parsePattern:gde,valueCallback:e=>parseInt(e,10)}),era:Qd({matchPatterns:xde,defaultMatchWidth:"wide",parsePatterns:yde,defaultParseWidth:"any"}),quarter:Qd({matchPatterns:vde,defaultMatchWidth:"wide",parsePatterns:bde,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Qd({matchPatterns:wde,defaultMatchWidth:"wide",parsePatterns:jde,defaultParseWidth:"any"}),day:Qd({matchPatterns:Nde,defaultMatchWidth:"wide",parsePatterns:kde,defaultParseWidth:"any"}),dayPeriod:Qd({matchPatterns:_de,defaultMatchWidth:"any",parsePatterns:Sde,defaultParseWidth:"any"})},u8={code:"en-US",formatDistance:Zce,formatLong:tde,formatRelative:nde,localize:ude,match:Cde,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Ede(e){const t=ut(e);return oa(t,c8(t))+1}function h8(e){const t=ut(e),n=+ul(t)-+Hce(t);return Math.round(n/Lj)+1}function m8(e,t){var u,h,f,m;const n=ut(e),s=n.getFullYear(),a=Zh(),i=(t==null?void 0:t.firstWeekContainsDate)??((h=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:h.firstWeekContainsDate)??a.firstWeekContainsDate??((m=(f=a.locale)==null?void 0:f.options)==null?void 0:m.firstWeekContainsDate)??1,o=qn(e,0);o.setFullYear(s+1,0,i),o.setHours(0,0,0,0);const l=pa(o,t),c=qn(e,0);c.setFullYear(s,0,i),c.setHours(0,0,0,0);const d=pa(c,t);return n.getTime()>=l.getTime()?s+1:n.getTime()>=d.getTime()?s:s-1}function Tde(e,t){var l,c,d,u;const n=Zh(),s=(t==null?void 0:t.firstWeekContainsDate)??((c=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:c.firstWeekContainsDate)??n.firstWeekContainsDate??((u=(d=n.locale)==null?void 0:d.options)==null?void 0:u.firstWeekContainsDate)??1,a=m8(e,t),i=qn(e,0);return i.setFullYear(a,0,s),i.setHours(0,0,0,0),pa(i,t)}function f8(e,t){const n=ut(e),s=+pa(n,t)-+Tde(n,t);return Math.round(s/Lj)+1}function vt(e,t){const n=e<0?"-":"",s=Math.abs(e).toString().padStart(t,"0");return n+s}const li={y(e,t){const n=e.getFullYear(),s=n>0?n:1-n;return vt(t==="yy"?s%100:s,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):vt(n+1,2)},d(e,t){return vt(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return vt(e.getHours()%12||12,t.length)},H(e,t){return vt(e.getHours(),t.length)},m(e,t){return vt(e.getMinutes(),t.length)},s(e,t){return vt(e.getSeconds(),t.length)},S(e,t){const n=t.length,s=e.getMilliseconds(),a=Math.trunc(s*Math.pow(10,n-3));return vt(a,t.length)}},Bl={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},B3={G:function(e,t,n){const s=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(s,{width:"abbreviated"});case"GGGGG":return n.era(s,{width:"narrow"});case"GGGG":default:return n.era(s,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const s=e.getFullYear(),a=s>0?s:1-s;return n.ordinalNumber(a,{unit:"year"})}return li.y(e,t)},Y:function(e,t,n,s){const a=m8(e,s),i=a>0?a:1-a;if(t==="YY"){const o=i%100;return vt(o,2)}return t==="Yo"?n.ordinalNumber(i,{unit:"year"}):vt(i,t.length)},R:function(e,t){const n=l8(e);return vt(n,t.length)},u:function(e,t){const n=e.getFullYear();return vt(n,t.length)},Q:function(e,t,n){const s=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(s);case"QQ":return vt(s,2);case"Qo":return n.ordinalNumber(s,{unit:"quarter"});case"QQQ":return n.quarter(s,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(s,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(s,{width:"wide",context:"formatting"})}},q:function(e,t,n){const s=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(s);case"qq":return vt(s,2);case"qo":return n.ordinalNumber(s,{unit:"quarter"});case"qqq":return n.quarter(s,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(s,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(s,{width:"wide",context:"standalone"})}},M:function(e,t,n){const s=e.getMonth();switch(t){case"M":case"MM":return li.M(e,t);case"Mo":return n.ordinalNumber(s+1,{unit:"month"});case"MMM":return n.month(s,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(s,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(s,{width:"wide",context:"formatting"})}},L:function(e,t,n){const s=e.getMonth();switch(t){case"L":return String(s+1);case"LL":return vt(s+1,2);case"Lo":return n.ordinalNumber(s+1,{unit:"month"});case"LLL":return n.month(s,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(s,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(s,{width:"wide",context:"standalone"})}},w:function(e,t,n,s){const a=f8(e,s);return t==="wo"?n.ordinalNumber(a,{unit:"week"}):vt(a,t.length)},I:function(e,t,n){const s=h8(e);return t==="Io"?n.ordinalNumber(s,{unit:"week"}):vt(s,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):li.d(e,t)},D:function(e,t,n){const s=Ede(e);return t==="Do"?n.ordinalNumber(s,{unit:"dayOfYear"}):vt(s,t.length)},E:function(e,t,n){const s=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(s,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(s,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(s,{width:"short",context:"formatting"});case"EEEE":default:return n.day(s,{width:"wide",context:"formatting"})}},e:function(e,t,n,s){const a=e.getDay(),i=(a-s.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return vt(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});case"eeee":default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,n,s){const a=e.getDay(),i=(a-s.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return vt(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});case"cccc":default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,n){const s=e.getDay(),a=s===0?7:s;switch(t){case"i":return String(a);case"ii":return vt(a,t.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(s,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(s,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(s,{width:"short",context:"formatting"});case"iiii":default:return n.day(s,{width:"wide",context:"formatting"})}},a:function(e,t,n){const a=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,n){const s=e.getHours();let a;switch(s===12?a=Bl.noon:s===0?a=Bl.midnight:a=s/12>
vendor: 4,583 bytes, line 736
736=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,n){const s=e.getHours();let a;switch(s>=17?a=Bl.evening:s>=12?a=Bl.afternoon:s>=4?a=Bl.morning:a=Bl.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let s=e.getHours()%12;return s===0&&(s=12),n.ordinalNumber(s,{unit:"hour"})}return li.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):li.H(e,t)},K:function(e,t,n){const s=e.getHours()%12;return t==="Ko"?n.ordinalNumber(s,{unit:"hour"}):vt(s,t.length)},k:function(e,t,n){let s=e.getHours();return s===0&&(s=24),t==="ko"?n.ordinalNumber(s,{unit:"hour"}):vt(s,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):li.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):li.s(e,t)},S:function(e,t){return li.S(e,t)},X:function(e,t,n){const s=e.getTimezoneOffset();if(s===0)return"Z";switch(t){case"X":return U3(s);case"XXXX":case"XX":return Oo(s);case"XXXXX":case"XXX":default:return Oo(s,":")}},x:function(e,t,n){const s=e.getTimezoneOffset();switch(t){case"x":return U3(s);case"xxxx":case"xx":return Oo(s);case"xxxxx":case"xxx":default:return Oo(s,":")}},O:function(e,t,n){const s=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+W3(s,":");case"OOOO":default:return"GMT"+Oo(s,":")}},z:function(e,t,n){const s=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+W3(s,":");case"zzzz":default:return"GMT"+Oo(s,":")}},t:function(e,t,n){const s=Math.trunc(e.getTime()/1e3);return vt(s,t.length)},T:function(e,t,n){const s=e.getTime();return vt(s,t.length)}};function W3(e,t=""){const n=e>0?"-":"+",s=Math.abs(e),a=Math.trunc(s/60),i=s%60;return i===0?n+String(a):n+String(a)+t+vt(i,2)}function U3(e,t){return e%60===0?(e>0?"-":"+")+vt(Math.abs(e)/60,2):Oo(e,t)}function Oo(e,t=""){const n=e>0?"-":"+",s=Math.abs(e),a=vt(Math.trunc(s/60),2),i=vt(s%60,2);return n+a+t+i}const q3=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},p8=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},$de=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],s=n[1],a=n[2];if(!a)return q3(e,t);let i;switch(s){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",q3(s,t)).replace("{{time}}",p8(a,t))},Ode={p:p8,P:$de},Pde=/^D+$/,Ade=/^Y+$/,Ide=["D","DD","YY","YYYY"];function Rde(e){return Pde.test(e)}function Mde(e){return Ade.test(e)}function Dde(e,t,n){const s=Fde(e,t,n);if(console.warn(s),Ide.includes(e))throw new RangeError(s)}function Fde(e,t,n){const s=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${s} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Lde=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Bde=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Wde=/^'([^]*?)'?$/,Ude=/''/g,qde=/[a-zA-Z]/;function Ps(e,t,n){var u,h,f,m,y,p,v,g;const s=Zh(),a=(n==null?void 0:n.locale)??s.locale??u8,i=(n==null?void 0:n.firstWeekContainsDate)??((h=(u=n==null?void 0:n.locale)==null?void 0:u.options)==null?void 0:h.firstWeekContainsDate)??s.firstWeekContainsDate??((m=(f=s.locale)==null?void 0:f.options)==null?void 0:m.firstWeekContainsDate)??1,o=(n==null?void 0:n.weekStartsOn)??((p=(y=n==null?void 0:n.locale)==null?void 0:y.options)==null?void 0:p.weekStartsOn)??s.weekStartsOn??((g=(v=s.locale)==null?void 0:v.options)==null?void 0:g.weekStartsOn)??0,l=ut(e);if(!Vce(l))throw new RangeError("Invalid time value");let c=t.match(Bde).map(x=>{const b=x[0];if(b==="p"||b==="P"){const w=Ode[b];return w(x,a.formatLong)}return x}).join("").match(Lde).map(x=>
736{if(x==="''")return{isToken:!1,value:"'"};const b=x[0];if(b==="'")return{isToken:!1,value:Hde(x)};if(B3[b])return{isToken:!0,value:x};if(b.match(qde))throw new RangeError("Format string contains an unescaped latin alphabet character `"+b+"`");return{isToken:!1,value:x}});a.localize.preprocessor&&(c=a.localize.preprocessor(l,c));const d={firstWeekContainsDate:i,weekStartsOn:o,locale:a};return c.map(x=>{if(!x.isToken)return x.value;const b=x.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&Mde(b)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&Rde(b))&&Dde(b,t,String(e));const w=B3[b[0]];return w(l,b,a.localize,d)}).join("")}function Hde(e){const t=e.match(Wde);return t?t[1].replace(Ude,"'"):e}function zde(e){const t=ut(e),n=t.getFullYear(),s=t.getMonth(),a=qn(e,0);return a.setFullYear(n,s+1,0),a.setHours(0,0,0,0),a.getDate()}function Gde(e){return Math.trunc(+ut(e)/1e3)}function Yde(e){const t=ut(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}function Vde(e,t){return Kce(Yde(e),Cn(e),t)+1}function c1(e,t){const n=ut(e),s=ut(t);return n.getTime()>s.getTime()}function g8(e,t){const n=ut(e),s=ut(t);return+n<+s}function qj(e,t){const n=ut(e),s=ut(t);return n.getFullYear()===s.getFullYear()&&n.getMonth()===s.getMonth()}function Kde(e,t){const n=ut(e),s=ut(t);return n.getFullYear()===s.getFullYear()}function lv(e,t){return Qr(e,-t)}function cv(e,t){const n=ut(e),s=n.getFullYear(),a=n.getDate(),i=qn(e,0);i.setFullYear(s,t,15),i.setHours(0,0,0,0);const o=zde(i);return n.setMonth(t,Math.min(a,o)),n}function H3(e,t){const n=ut(e);return isNaN(+n)?qn(e,NaN):(n.setFullYear(t),n)}var ze=function(){return ze=Object.assign||function(t){for(var n,s=1,a=arguments.length;s<a;s++){n=arguments[s];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},ze.apply(this,arguments)};function Qde(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,s=Object.getOwnPropertySymbols(e);a<s.length;a++)t.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(e,s[a])&&(n[s[a]]=e[s[a]]);return n}function x8(e,t,n){for(var s=0,a=t.length,i;s<a;s++)(i||!(s in t))&&(i||(i=Array.prototype.slice.call(t,0,s)),i[s]=t[s]);return e.concat(i||Array.prototype.slice.call(t))}function Xh(e){return e.mode==="multiple"}function Jh(e){return e.mode==="range"}function xx(e){return e.mode==="single"}var Zde={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rdp-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"};function Xde(e,t){return Ps(e,"LLLL y",t)}function Jde(e,t){return Ps(e,"d",t)}function eue(e,t){return Ps(e,"LLLL",t)}function tue(e){return"".concat(e)}function rue(e,t){return Ps(e,"cccccc",t)}function nue(e,t){return Ps(e,"yyyy",t)}var sue=Object.freeze({__proto__:null,formatCaption:Xde,formatDay:Jde,formatMonthCaption:eue,formatWeekNumber:tue,formatWeekdayName:rue,formatYearCaption:nue}),aue=function(e,t,n){return Ps(e,"do MMMM (EEEE)",n)},iue=function(){return"Month: "},oue=function(){return"Go to next month"},lue=function(){return"Go to previous month"},cue=function(e,t){return Ps(e,"cccc",t)},due=function(e){return"Week n. ".concat(e)},uue=function(){return"Year: "},hue=Object.freeze({__proto__:null,labelDay:aue,labelMonthDropdown:iue,labelNext:oue,labelPrevious:lue,labelWeekNumber:due,labelWeekday:cue,labelYearDropdown:uue});function mue(){var e="buttons",t=Zde,n=u8,s={},a={},i=1,o={},l=new Date;return{captionLayout:e,classNames:t,formatters:sue,labels:hue,locale:n,modifiersClassNames:s,modifiers:a,numberOfMonths:i,styles:o,today:l,mode:"default"}}function fue(e){var t=e.fromYear,n=e.toYear,s=e.fromMonth,a=e.toMonth,i=e.fromDate,o=e.toDate;return s?i=Cn(s):t&&(i=new Date(t,0,1)),a?o=Wj(a):n&&(o=new Date(n,11,31)),{fromDate:i?Zc(i):void 0,toDate:o?Zc(o):void 0}}var y8=j.createContext(void 0);function pue(e){var t,n=e.initialProps,s=mue(),a=fue(n),i=a.fromDate,o=a.toDate,l=(t=n.captionLayout)!==null&&t!==void 0?t:s.captionLayout;l!=="buttons"&&(!i||!o)&&(l="buttons");var c;(xx(n)||Xh(n)||Jh(n))&&(c=n.onSelect);var d=ze(ze(ze({},s),n),{captionLayout:l,classNames:ze(ze({},s.classNames),n.classNames),components:ze({},n.components),formatters:ze(ze({},s.formatters),n.formatters),fromDate:i,labels:ze(ze({},s.labels),n.labels),mode:n.mode||s.mode,modifiers:ze(ze({},s.modifiers),n.modifiers),modifiersClassNames:ze(ze({},s.modifiersClassNames),n.modifiersClassNames),onSelect:c,styles:ze(ze({},s.styles),n.styles),toDate:o});return r.jsx(y8.Provider,{value:d,children:e.children})}function Tt(){var e=j.useContext(y8);if(!e)throw new Error("useDayPicker must be used within a DayPickerProvider.");return e}function v8(e){var t=Tt(),n=t.locale,s=t.classNames,a=t.styles,i=t.formatters.formatCaption;return r.jsx("div",{className:s.caption_label,style:a.caption_label,"aria-live":"polite",role:"presentation",id:e.id,children:i(e.displayMonth,{locale:n})})}function gue(e){return r.jsx("svg",ze({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},e,{children:r.jsx("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.7
73678175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"})}))}function b8(e){var t,n,s=e.onChange,a=e.value,i=e.children,o=e.caption,l=e.className,c=e.style,d=Tt(),u=(n=(t=d.components)===null||t===void 0?void 0:t.IconDropdown)!==null&&n!==void 0?n:gue;return r.jsxs("div",{className:l,style:c,children:[r.jsx("span",{className:d.classNames.vhidden,children:e["aria-label"]}),r.jsx("select",{name:e.name,"aria-label":e["aria-label"],className:d.classNames.dropdown,style:d.styles.dropdown,value:a,onChange:s,children:i}),r.jsxs("div",{className:d.classNames.caption_label,style:d.styles.caption_label,"aria-hidden":"true",children:[o,r.jsx(u,{className:d.classNames.dropdown_icon,style:d.styles.dropdown_icon})]})]})}function xue(e){var t,n=Tt(),s=n.fromDate,a=n.toDate,i=n.styles,o=n.locale,l=n.formatters.formatMonthCaption,c=n.classNames,d=n.components,u=n.labels.labelMonthDropdown;if(!s)return r.jsx(r.Fragment,{});if(!a)return r.jsx(r.Fragment,{});var h=[];if(Kde(s,a))for(var f=Cn(s),m=s.getMonth();m<=a.getMonth();m++)h.push(cv(f,m));else for(var f=Cn(new Date),m=0;m<=11;m++)h.push(cv(f,m));var y=function(v){var g=Number(v.target.value),x=cv(Cn(e.displayMonth),g);e.onChange(x)},p=(t=d==null?void 0:d.Dropdown)!==null&&t!==void 0?t:b8;return r.jsx(p,{name:"months","aria-label":u(),className:c.dropdown_month,style:i.dropdown_month,onChange:y,value:e.displayMonth.getMonth(),caption:l(e.displayMonth,{locale:o}),children:h.map(function(v){return r.jsx("option",{value:v.getMonth(),children:l(v,{locale:o})},v.getMonth())})})}function yue(e){var t,n=e.displayMonth,s=Tt(),a=s.fromDate,i=s.toDate,o=s.locale,l=s.styles,c=s.classNames,d=s.components,u=s.formatters.formatYearCaption,h=s.labels.labelYearDropdown,f=[];if(!a)return r.jsx(r.Fragment,{});if(!i)return r.jsx(r.Fragment,{});for(var m=a.getFullYear(),y=i.getFullYear(),p=m;p<=y;p++)f.push(H3(c8(new Date),p));var v=function(x){var b=H3(Cn(n),Number(x.target.value));e.onChange(b)},g=(t=d==null?void 0:d.Dropdown)!==null&&t!==void 0?t:b8;return r.jsx(g,{name:"years","aria-label":h(),className:c.dropdown_year,style:l.dropdown_year,onChange:v,value:n.getFullYear(),caption:u(n,{locale:o}),children:f.map(function(x){return r.jsx("option",{value:x.getFullYear(),children:u(x,{locale:o})},x.getFullYear())})})}function vue(e,t){var n=j.useState(e),s=n[0],a=n[1],i=t===void 0?s:t;return[i,a]}function bue(e){var t=e.month,n=e.defaultMonth,s=e.today,a=t||n||s||new Date,i=e.toDate,o=e.fromDate,l=e.numberOfMonths,c=l===void 0?1:l;if(i&&vh(i,a)<0){var d=-1*(c-1);a=Fs(i,d)}return o&&vh(a,o)<0&&(a=o),Cn(a)}function wue(){var e=Tt(),t=bue(e),n=vue(t,e.month),s=n[0],a=n[1],i=function(o){var l;if(!e.disableNavigation){var c=Cn(o);a(c),(l=e.onMonthChange)===null||l===void 0||l.call(e,c)}};return[s,i]}function jue(e,t){for(var n=t.reverseMonths,s=t.numberOfMonths,a=Cn(e),i=Cn(Fs(a,s)),o=vh(i,a),l=[],c=0;c<o;c++){var d=Fs(a,c);l.push(d)}return n&&(l=l.reverse()),l}function Nue(e,t){if(!t.disableNavigation){var n=t.toDate,s=t.pagedNavigation,a=t.numberOfMonths,i=a===void 0?1:a,o=s?i:1,l=Cn(e);if(!n)return Fs(l,o);var c=vh(n,e);if(!(c<i))return Fs(l,o)}}function kue(e,t){if(!t.disableNavigation){var n=t.fromDate,s=t.pagedNavigation,a=t.numberOfMonths,i=a===void 0?1:a,o=s?i:1,l=Cn(e);if(!n)return Fs(l,-o);var c=vh(l,n);if(!(c<=0))return Fs(l,-o)}}var w8=j.createContext(void 0);function _ue(e){var t=Tt(),n=wue(),s=n[0],a=n[1],i=jue(s,t),o=Nue(s,t),l=kue(s,t),c=function(h){return i.some(function(f){return qj(h,f)})},d=function(h,f){c(h)||(f&&g8(h,f)?a(Fs(h,1+t.numberOfMonths*-1)):a(h))},u={currentMonth:s,displayMonths:i,goToMonth:a,goToDate:d,previousMonth:l,nextMonth:o,isDateDisplayed:c};return r.jsx(w8.Provider,{value:u,children:e.children})}function em(){var e=j.useContext(w8);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}function z3(e){var t,n=Tt(),s=n.classNames,a=n.styles,i=n.components,o=em().goToMonth,l=function(u){o(Fs(u,e.displayIndex?-e.dis
736playIndex:0))},c=(t=i==null?void 0:i.CaptionLabel)!==null&&t!==void 0?t:v8,d=r.jsx(c,{id:e.id,displayMonth:e.displayMonth});return r.jsxs("div",{className:s.caption_dropdowns,style:a.caption_dropdowns,children:[r.jsx("div",{className:s.vhidden,children:d}),r.jsx(xue,{onChange:l,displayMonth:e.displayMonth}),r.jsx(yue,{onChange:l,displayMonth:e.displayMonth})]})}function Sue(e){return r.jsx("svg",ze({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:r.jsx("path",{d:"M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z",fill:"currentColor",fillRule:"nonzero"})}))}function Cue(e){return r.jsx("svg",ze({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:r.jsx("path",{d:"M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z",fill:"currentColor"})}))}var Mp=j.forwardRef(function(e,t){var n=Tt(),s=n.classNames,a=n.styles,i=[s.button_reset,s.button];e.className&&i.push(e.className);var o=i.join(" "),l=ze(ze({},a.button_reset),a.button);return e.style&&Object.assign(l,e.style),r.jsx("button",ze({},e,{ref:t,type:"button",className:o,style:l}))});function Eue(e){var t,n,s=Tt(),a=s.dir,i=s.locale,o=s.classNames,l=s.styles,c=s.labels,d=c.labelPrevious,u=c.labelNext,h=s.components;if(!e.nextMonth&&!e.previousMonth)return r.jsx(r.Fragment,{});var f=d(e.previousMonth,{locale:i}),m=[o.nav_button,o.nav_button_previous].join(" "),y=u(e.nextMonth,{locale:i}),p=[o.nav_button,o.nav_button_next].join(" "),v=(t=h==null?void 0:h.IconRight)!==null&&t!==void 0?t:Cue,g=(n=h==null?void 0:h.IconLeft)!==null&&n!==void 0?n:Sue;return r.jsxs("div",{className:o.nav,style:l.nav,children:[!e.hidePrevious&&r.jsx(Mp,{name:"previous-month","aria-label":f,className:m,style:l.nav_button_previous,disabled:!e.previousMonth,onClick:e.onPreviousClick,children:a==="rtl"?r.jsx(v,{className:o.nav_icon,style:l.nav_icon}):r.jsx(g,{className:o.nav_icon,style:l.nav_icon})}),!e.hideNext&&r.jsx(Mp,{name:"next-month","aria-label":y,className:p,style:l.nav_button_next,disabled:!e.nextMonth,onClick:e.onNextClick,children:a==="rtl"?r.jsx(g,{className:o.nav_icon,style:l.nav_icon}):r.jsx(v,{className:o.nav_icon,style:l.nav_icon})})]})}function G3(e){var t=Tt().numberOfMonths,n=em(),s=n.previousMonth,a=n.nextMonth,i=n.goToMonth,o=n.displayMonths,l=o.findIndex(function(y){return qj(e.displayMonth,y)}),c=l===0,d=l===o.length-1,u=t>1&&(c||!d),h=t>1&&(d||!c),f=function(){s&&i(s)},m=function(){a&&i(a)};return r.jsx(Eue,{displayMonth:e.displayMonth,hideNext:u,hidePrevious:h,nextMonth:a,previousMonth:s,onPreviousClick:f,onNextClick:m})}function Tue(e){var t,n=Tt(),s=n.classNames,a=n.disableNavigation,i=n.styles,o=n.captionLayout,l=n.components,c=(t=l==null?void 0:l.CaptionLabel)!==null&&t!==void 0?t:v8,d;return a?d=r.jsx(c,{id:e.id,displayMonth:e.displayMonth}):o==="dropdown"?d=r.jsx(z3,{displayMonth:e.displayMonth,id:e.id}):o==="dropdown-buttons"?d=r.jsxs(r.Fragment,{children:[r.jsx(z3,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),r.jsx(G3,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})]}):d=r.jsxs(r.Fragment,{children:[r.jsx(c,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),r.jsx(G3,{displayMonth:e.displayMonth,id:e.id})]}),r.jsx("div",{className:s.caption,style:i.caption,children:d})}function $ue(e){var t=Tt(),n=t.footer,s=t.styles,a=t.classNames.tfoot;return n?r.jsx("tfoot",{className:a,style:s.tfoot,children:r.jsx("tr",{children:r.jsx("td",{colSpan:8,children:n})})}):r.jsx(r.Fragment,{})}function Oue(e,t,n){for(var s=n?ul(new Date):pa(new Date,{locale:e,weekStartsOn:t}),a=[],i=0;i<7;i++){var o=Qr(s,i);a.push(o)}return a}function Pue(){var e=Tt(),t=e.classNames,n=e.styles,s=e.showWeekNumber,a=e.locale,i=e.weekStartsOn,o=e.ISOWeek,l=e.formatters.formatWeekdayName,c=e.labels.labelWeekday,d=Oue(a,i,o);return r.jsxs("tr",{style:n.head_row,className:t.head_row,children:[s&&r.jsx("td",{style:n.head_cell,className:t.head_cell}),d.map(function(u,h){return r.jsx("th",{scope:"col",className:t.head_cell,style:n.head_cell,"aria-label":c(u,{locale:a}),children:l(u,{locale:a})},h)})]})}function Aue(){var e,t=Tt(),n=t.classNames,s=t.styles,a=t.components,i=(e=a==null?void 0:a.HeadRow)!==null&&e!==void 0?e:Pue;return r.jsx("thead",{style:s.head,className:n.head,children:r.jsx(i,{})})}function Iue(e){var t=Tt(),n=t.locale,s=t.formatters.formatDay;return r.jsx(r.Fragment,{children:s(e.date,{locale:n})})}var Hj=j.createContext(void 0);function Rue(e){if(!Xh(e.initialProps)){var t={selected:void 0,modifiers:{disabled:[]}};return r.jsx(Hj.Provider,{value:t,children:e.children})}return r.jsx(Mue,{initialProps:e.initialProps,children:e.children})}function Mue(e){var t=e.initialProps,n=e.children,s=t.selected,a=t.min,i=t.max,o=function(d,u,h){var f,m;(f=t.onDayClick)===null||f===void 0||f.call(t,d,u,h);var y=!!(u.selected&&a&&(s==null?void 0:s.length)===a);if(!y){var p=!!(!u.selected&&i&&(s==null?void 0:s.length)===i);if(!p){var v=s?x8([],s):[];if(u.selected){var g=v.findIndex(function(x){return Nn(d,x)});v.splice(g,1)}else v.push(d);(m=t.onSelect)===null||m===void 0||m.call(t,v,d,u,h)}}},l={disabled:[]};s&&l.disabled.push(function(d){var u=i&&s.length>i-1,h=s.some(function(f){return Nn(f,d)});return!!(u&&!h)});
736var c={selected:s,onDayClick:o,modifiers:l};return r.jsx(Hj.Provider,{value:c,children:n})}function zj(){var e=j.useContext(Hj);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}function Due(e,t){var n=t||{},s=n.from,a=n.to;return s&&a?Nn(a,e)&&Nn(s,e)?void 0:Nn(a,e)?{from:a,to:void 0}:Nn(s,e)?void 0:c1(s,e)?{from:e,to:a}:{from:s,to:e}:a?c1(e,a)?{from:a,to:e}:{from:e,to:a}:s?g8(e,s)?{from:e,to:s}:{from:s,to:e}:{from:e,to:void 0}}var Gj=j.createContext(void 0);function Fue(e){if(!Jh(e.initialProps)){var t={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return r.jsx(Gj.Provider,{value:t,children:e.children})}return r.jsx(Lue,{initialProps:e.initialProps,children:e.children})}function Lue(e){var t=e.initialProps,n=e.children,s=t.selected,a=s||{},i=a.from,o=a.to,l=t.min,c=t.max,d=function(m,y,p){var v,g;(v=t.onDayClick)===null||v===void 0||v.call(t,m,y,p);var x=Due(m,s);(g=t.onSelect)===null||g===void 0||g.call(t,x,m,y,p)},u={range_start:[],range_end:[],range_middle:[],disabled:[]};if(i?(u.range_start=[i],o?(u.range_end=[o],Nn(i,o)||(u.range_middle=[{after:i,before:o}])):u.range_end=[i]):o&&(u.range_start=[o],u.range_end=[o]),l&&(i&&!o&&u.disabled.push({after:lv(i,l-1),before:Qr(i,l-1)}),i&&o&&u.disabled.push({after:i,before:Qr(i,l-1)}),!i&&o&&u.disabled.push({after:lv(o,l-1),before:Qr(o,l-1)})),c){if(i&&!o&&(u.disabled.push({before:Qr(i,-c+1)}),u.disabled.push({after:Qr(i,c-1)})),i&&o){var h=oa(o,i)+1,f=c-h;u.disabled.push({before:lv(i,f)}),u.disabled.push({after:Qr(o,f)})}!i&&o&&(u.disabled.push({before:Qr(o,-c+1)}),u.disabled.push({after:Qr(o,c-1)}))}return r.jsx(Gj.Provider,{value:{selected:s,onDayClick:d,modifiers:u},children:n})}function Yj(){var e=j.useContext(Gj);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function jf(e){return Array.isArray(e)?x8([],e):e!==void 0?[e]:[]}function Bue(e){var t={};return Object.entries(e).forEach(function(n){var s=n[0],a=n[1];t[s]=jf(a)}),t}var Ls;(function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"})(Ls||(Ls={}));var Wue=Ls.Selected,Na=Ls.Disabled,Uue=Ls.Hidden,que=Ls.Today,dv=Ls.RangeEnd,uv=Ls.RangeMiddle,hv=Ls.RangeStart,Hue=Ls.Outside;function zue(e,t,n){var s,a=(s={},s[Wue]=jf(e.selected),s[Na]=jf(e.disabled),s[Uue]=jf(e.hidden),s[que]=[e.today],s[dv]=[],s[uv]=[],s[hv]=[],s[Hue]=[],s);return e.fromDate&&a[Na].push({before:e.fromDate}),e.toDate&&a[Na].push({after:e.toDate}),Xh(e)?a[Na]=a[Na].concat(t.modifiers[Na]):Jh(e)&&(a[Na]=a[Na].concat(n.modifiers[Na]),a[hv]=n.modifiers[hv],a[uv]=n.modifiers[uv],a[dv]=n.modifiers[dv]),a}var j8=j.createContext(void 0);function Gue(e){var t=Tt(),n=zj(),s=Yj(),a=zue(t,n,s),i=Bue(t.modifiers),o=ze(ze({},a),i);return r.jsx(j8.Provider,{value:o,children:e.children})}function N8(){var e=j.useContext(j8);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function Yue(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function Vue(e){return!!(e&&typeof e=="object"&&"from"in e)}function Kue(e){return!!(e&&typeof e=="object"&&"after"in e)}function Que(e){return!!(e&&typeof e=="object"&&"before"in e)}function Zue(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function Xue(e,t){var n,s=t.from,a=t.to;if(s&&a){var i=oa(a,s)<0;i&&(n=[a,s],s=n[0],a=n[1]);var o=oa(e,s)>=0&&oa(a,e)>=0;return o}return a?Nn(a,e):s?Nn(s,e):!1}function Jue(e){return Bj(e)}function ehe(e){return Array.isArray(e)&&e.every(Bj)}function the(e,t){return t.some(function(n){if(typeof n=="boolean")return n;if(Jue(n))return Nn(e,n);if(ehe(n))return n.includes(e);if(Vue(n))return Xue(e,n);if(Zue(n))return n.dayOfWeek.includes(e.getDay());if(Yue(n)){var s=oa(n.before,e),a=oa(n.after,e),i=s>0,o=a<0,l=c1(n.before,n.after);return l?o&&i:i||o}return Kue(n)?oa(e,n.after)>0:Que(n)?oa(n.before,e)>0:typeof n=="function"?n(e):!1})}function Vj(e,t,n){var s=Object.keys(t).reduce(function(i,o){var l=t[o];return the(e,l)&&i.push(o),i},[]),a={};
736return s.forEach(function(i){return a[i]=!0}),n&&!qj(e,n)&&(a.outside=!0),a}function rhe(e,t){for(var n=Cn(e[0]),s=Wj(e[e.length-1]),a,i,o=n;o<=s;){var l=Vj(o,t),c=!l.disabled&&!l.hidden;if(!c){o=Qr(o,1);continue}if(l.selected)return o;l.today&&!i&&(i=o),a||(a=o),o=Qr(o,1)}return i||a}var nhe=365;function k8(e,t){var n=t.moveBy,s=t.direction,a=t.context,i=t.modifiers,o=t.retry,l=o===void 0?{count:0,lastFocused:e}:o,c=a.weekStartsOn,d=a.fromDate,u=a.toDate,h=a.locale,f={day:Qr,week:l1,month:Fs,year:zce,startOfWeek:function(v){return a.ISOWeek?ul(v):pa(v,{locale:h,weekStartsOn:c})},endOfWeek:function(v){return a.ISOWeek?d8(v):Uj(v,{locale:h,weekStartsOn:c})}},m=f[n](e,s==="after"?1:-1);s==="before"&&d?m=Gce([d,m]):s==="after"&&u&&(m=Yce([u,m]));var y=!0;if(i){var p=Vj(m,i);y=!p.disabled&&!p.hidden}return y?m:l.count>nhe?l.lastFocused:k8(m,{moveBy:n,direction:s,context:a,modifiers:i,retry:ze(ze({},l),{count:l.count+1})})}var _8=j.createContext(void 0);function she(e){var t=em(),n=N8(),s=j.useState(),a=s[0],i=s[1],o=j.useState(),l=o[0],c=o[1],d=rhe(t.displayMonths,n),u=a??(l&&t.isDateDisplayed(l))?l:d,h=function(){c(a),i(void 0)},f=function(v){i(v)},m=Tt(),y=function(v,g){if(a){var x=k8(a,{moveBy:v,direction:g,context:m,modifiers:n});Nn(a,x)||(t.goToDate(x,a),f(x))}},p={focusedDay:a,focusTarget:u,blur:h,focus:f,focusDayAfter:function(){return y("day","after")},focusDayBefore:function(){return y("day","before")},focusWeekAfter:function(){return y("week","after")},focusWeekBefore:function(){return y("week","before")},focusMonthBefore:function(){return y("month","before")},focusMonthAfter:function(){return y("month","after")},focusYearBefore:function(){return y("year","before")},focusYearAfter:function(){return y("year","after")},focusStartOfWeek:function(){return y("startOfWeek","before")},focusEndOfWeek:function(){return y("endOfWeek","after")}};return r.jsx(_8.Provider,{value:p,children:e.children})}function Kj(){var e=j.useContext(_8);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}function ahe(e,t){var n=N8(),s=Vj(e,n,t);return s}var Qj=j.createContext(void 0);function ihe(e){if(!xx(e.initialProps)){var t={selected:void 0};return r.jsx(Qj.Provider,{value:t,children:e.children})}return r.jsx(ohe,{initialProps:e.initialProps,children:e.children})}function ohe(e){var t=e.initialProps,n=e.children,s=function(i,o,l){var c,d,u;if((c=t.onDayClick)===null||c===void 0||c.call(t,i,o,l),o.selected&&!t.required){(d=t.onSelect)===null||d===void 0||d.call(t,void 0,i,o,l);return}(u=t.onSelect)===null||u===void 0||u.call(t,i,i,o,l)},a={selected:t.selected,onDayClick:s};return r.jsx(Qj.Provider,{value:a,children:n})}function S8(){var e=j.useContext(Qj);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function lhe(e,t){var n=Tt(),s=S8(),a=zj(),i=Yj(),o=Kj(),l=o.focusDayAfter,c=o.focusDayBefore,d=o.focusWeekAfter,u=o.focusWeekBefore,h=o.blur,f=o.focus,m=o.focusMonthBefore,y=o.focusMonthAfter,p=o.focusYearBefore,v=o.focusYearAfter,g=o.focusStartOfWeek,x=o.focusEndOfWeek,b=function(W){var B,R,D,P;xx(n)?(B=s.onDayClick)===null||B===void 0||B.call(s,e,t,W):Xh(n)?(R=a.onDayCl
736ick)===null||R===void 0||R.call(a,e,t,W):Jh(n)?(D=i.onDayClick)===null||D===void 0||D.call(i,e,t,W):(P=n.onDayClick)===null||P===void 0||P.call(n,e,t,W)},w=function(W){var B;f(e),(B=n.onDayFocus)===null||B===void 0||B.call(n,e,t,W)},N=function(W){var B;h(),(B=n.onDayBlur)===null||B===void 0||B.call(n,e,t,W)},S=function(W){var B;(B=n.onDayMouseEnter)===null||B===void 0||B.call(n,e,t,W)},_=function(W){var B;(B=n.onDayMouseLeave)===null||B===void 0||B.call(n,e,t,W)},C=function(W){var B;(B=n.onDayPointerEnter)===null||B===void 0||B.call(n,e,t,W)},$=function(W){var B;(B=n.onDayPointerLeave)===null||B===void 0||B.call(n,e,t,W)},k=function(W){var B;(B=n.onDayTouchCancel)===null||B===void 0||B.call(n,e,t,W)},E=function(W){var B;(B=n.onDayTouchEnd)===null||B===void 0||B.call(n,e,t,W)},T=function(W){var B;(B=n.onDayTouchMove)===null||B===void 0||B.call(n,e,t,W)},O=function(W){var B;(B=n.onDayTouchStart)===null||B===void 0||B.call(n,e,t,W)},A=function(W){var B;(B=n.onDayKeyUp)===null||B===void 0||B.call(n,e,t,W)},U=function(W){var B;switch(W.key){case"ArrowLeft":W.preventDefault(),W.stopPropagation(),n.dir==="rtl"?l():c();break;case"ArrowRight":W.preventDefault(),W.stopPropagation(),n.dir==="rtl"?c():l();break;case"ArrowDown":W.preventDefault(),W.stopPropagation(),d();break;case"ArrowUp":W.preventDefault(),W.stopPropagation(),u();break;case"PageUp":W.preventDefault(),W.stopPropagation(),W.shiftKey?p():m();break;case"PageDown":W.preventDefault(),W.stopPropagation(),W.shiftKey?v():y();break;case"Home":W.preventDefault(),W.stopPropagation(),g();break;case"End":W.preventDefault(),W.stopPropagation(),x();break}(B=n.onDayKeyDown)===null||B===void 0||B.call(n,e,t,W)},z={onClick:b,onFocus:w,onBlur:N,onKeyDown:U,onKeyUp:A,onMouseEnter:S,onMouseLeave:_,onPointerEnter:C,onPointerLeave:$,onTouchCancel:k,onTouchEnd:E,onTouchMove:T,onTouchStart:O};return z}function che(){var e=Tt(),t=S8(),n=zj(),s=Yj(),a=xx(e)?t.selected:Xh(e)?n.selected:Jh(e)?s.selected:void 0;return a}function dhe(e){return Object.values(Ls).includes(e)}function uhe(e,t){var n=[e.classNames.day];return Object.keys(t).forEach(function(s){var a=e.modifiersClassNames[s];if(a)n.push(a);else if(dhe(s)){var i=e.classNames["day_".concat(s)];i&&n.push(i)}}),n}function hhe(e,t){var n=ze({},e.styles.day);return Object.keys(t).forEach(function(s){var a;n=ze(ze({},n),(a=e.modifiersStyles)===null||a===void 0?void 0:a[s])}),n}function mhe(e,t,n){var s,a,i,o=Tt(),l=Kj(),c=ahe(e,t),d=lhe(e,c),u=che(),h=!!(o.onDayCl
736ick||o.mode!=="default");j.useEffect(function(){var S;c.outside||l.focusedDay&&h&&Nn(l.focusedDay,e)&&((S=n.current)===null||S===void 0||S.focus())},[l.focusedDay,e,n,h,c.outside]);var f=uhe(o,c).join(" "),m=hhe(o,c),y=!!(c.outside&&!o.showOutsideDays||c.hidden),p=(i=(a=o.components)===null||a===void 0?void 0:a.DayContent)!==null&&i!==void 0?i:Iue,v=r.jsx(p,{date:e,displayMonth:t,activeModifiers:c}),g={style:m,className:f,children:v,role:"gridcell"},x=l.focusTarget&&Nn(l.focusTarget,e)&&!c.outside,b=l.focusedDay&&Nn(l.focusedDay,e),w=ze(ze(ze({},g),(s={disabled:c.disabled,role:"gridcell"},s["aria-selected"]=c.selected,s.tabIndex=b||x?0:-1,s)),d),N={isButton:h,isHidden:y,activeModifiers:c,selectedDays:u,buttonProps:w,divProps:g};return N}function fhe(e){var t=j.useRef(null),n=mhe(e.date,e.displayMonth,t);return n.isHidden?r.jsx("div",{role:"gridcell"}):n.isButton?r.jsx(Mp,ze({name:"day",ref:t},n.buttonProps)):r.jsx("div",ze({},n.divProps))}function phe(e){var t=e.number,n=e.dates,s=Tt(),a=s.onWeekNumberClick,i=s.styles,o=s.classNames,l=s.locale,c=s.labels.labelWeekNumber,d=s.formatters.formatWeekNumber,u=d(Number(t),{locale:l});if(!a)return r.jsx("span",{className:o.weeknumber,style:i.weeknumber,children:u});var h=c(Number(t),{locale:l}),f=function(m){a(t,n,m)};return r.jsx(Mp,{name:"week-number","aria-label":h,className:o.weeknumber,style:i.weeknumber,onClick:f,children:u})}function ghe(e){var t,n,s=Tt(),a=s.styles,i=s.classNames,o=s.showWeekNumber,l=s.components,c=(t=l==null?void 0:l.Day)!==null&&t!==void 0?t:fhe,d=(n=l==null?void 0:l.WeekNumber)!==null&&n!==void 0?n:phe,u;return o&&(u=r.jsx("td",{className:i.cell,style:a.cell,children:r.jsx(d,{number:e.weekNumber,dates:e.dates})})),r.jsxs("tr",{className:i.row,style:a.row,children:[u,e.dates.map(function(h){return r.jsx("td",{className:i.cell,style:a.cell,role:"presentation",children:r.jsx(c,{displayMonth:e.displayMonth,date:h})},Gde(h))})]})}function Y3(e,t,n){for(var s=n!=null&&n.ISOWeek?d8(t):Uj(t,n),a=n!=null&&n.ISOWeek?ul(e):pa(e,n),i=oa(s,a),o=[],l=0;l<=i;l++)o.push(Qr(a,l));var c=o.reduce(function(d,u){var h=n!=null&&n.ISOWeek?h8(u):f8(u,n),f=d.find(function(m){return m.weekNumber===h});return f?(f.dates.push(u),d):(d.push({weekNumber:h,dates:[u]}),d)},[]);return c}function xhe(e,t){var n=Y3(Cn(e),Wj(e),t);if(t!=null&&t.useFixedWeeks){var s=Vde(e,t);if(s<6){var a=n[n.length-1],i=a.dates[a.dates.length-1],o=l1(i,6-s),l=Y3(l1(i,1),o,t);n.push.apply(n,l)}}return n}function yhe(e){var t,n,s,a=Tt(),i=a.locale,o=a.classNames,l=a.styles,c=a.hideHead,d=a.fixedWeeks,u=a.components,h=a.weekStartsOn,f=a.firstWeekContainsDate,m=a.ISOWeek,y=xhe(e.displayMonth,{useFixedWeeks:!!d,ISOWeek:m,locale:i,weekStartsOn:h,firstWeekContainsDate:f}),p=(t=u==null?void 0:u.Head)!==null&&t!==void 0?t:Aue,v=(n=u==null?void 0:u.Row)!==null&&n!==void 0?n:ghe,g=(s=u==null?void 0:u.Footer)!==null&&s!==void 0?s:$ue;return r.jsxs("table",{id:e.id,className:o.table,style:l.table,role:"grid","aria-labelledby":e["aria-labelledby"],children:[!c&&r.jsx(p,{}),r.jsx("tbody",{className:o.tbody,style:l.tbody,children:y.map(function(x){return r.jsx(v,{displayMonth:e.displayMonth,dates:x.dates,weekNumber:x.weekNumber},x.weekNumber)})}),r.jsx(g,{displayMonth:e.displayMonth})]})}function vhe(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var bhe=vhe()?j.useLayoutEffect:j.useEffect,mv=!1,whe=0;function V3(){return"react-day-picker-".concat(++whe)}function jhe(e){var t,n=e??(mv?V3():null),s=j.useState(n),a=s[0],i=s[1];return bhe(function(){a===null&&i(V3())},[]),j.useEffect(function(){mv===!1&&(mv=!0)},[]),(t=e??a)!==null&&t!==void 0?t:void 0}function Nhe(e){var t,n,s=Tt(),a=s.dir,i=s.classNames,o=s.styles,l=s.components,c=em().displayMonths,d=jhe(s.id?"".concat(s.id,"-").concat(e.displayIndex):void 0),u=s.id?"".concat(s.id,"-grid-").concat(e.displayIndex):void 0,h=[i.month],f=o.month,m=e.displayIndex===0,y=e.displayIndex===c.length-1,p=!m&&!y;a==="rtl"&&(t=[m,y],y=t[0],m=t[1]),m&&(h.push(i.caption_start),f=ze(ze({},f),o.caption_start)),y&&(h.push(i.caption_end),f=ze(ze({},f),o.caption_end)),p&&(h.push(i.caption_between),f=ze(ze({},f),o.caption_between));var v=(n=l==null?void 0:l.Caption)!==null&&n!==void 0?n:Tue;return r.jsxs("div",{className:h.join(" "),style:f,children:[r.jsx(v,{id:d,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),r.jsx(yhe,{id:u,"aria-labelledby":d,displayMonth:e.displayMonth})]},e.displayIndex)}function khe(e){var t=Tt(),n=t.classNames,s=t.styles;return r.jsx("div",{className:n.months,style:s.months,children:e.children})}function _he(e){var t,n,s=e.initialProps,a=Tt(),i=Kj(),o=em(),l=j.useState(!1),c=l[0],d=l[1];j.useEffect(function(){a.initialFocus&&i.focusTarget&&(c||(i.focus(i.focusTarget),d(!0)))},[a.initialFocus,c,i.focus,i.focusTarget,i]);var u=[a.classNames.root,a.className];a.numberOfMonths>1&&u.push(a.classNames.multiple_months),a.showWeekNumber&&u.push(a.classNames.with_weeknumber);var h=ze(ze({},a.styles.root),a.style),f=Object.keys(s).filter(function(y){return y.startsWith("data-")}).reduce(function(y,p){var v;return ze(ze({},y),(v={},v[p]=s[p],v))},{}),m=(n=(t=s.components)===null||t===void 0?void 0:t.Months)!==null&&n!==void 0?n:khe;return r.jsx("div",ze({className:u.join(" "),style:h,dir:a.dir,id:a.id,nonce:s.nonce,title:s.title,lang:s.lang},f,{children:r.jsx(m,{children:o.displayMonths.map(function(y,p){return r.jsx(Nhe,{displayIndex:p,displayMonth:y},p)})})}))}
736function She(e){var t=e.children,n=Qde(e,["children"]);return r.jsx(pue,{initialProps:n,children:r.jsx(_ue,{children:r.jsx(ihe,{initialProps:n,children:r.jsx(Rue,{initialProps:n,children:r.jsx(Fue,{initialProps:n,children:r.jsx(Gue,{children:r.jsx(she,{children:t})})})})})})})}function Che(e){return r.jsx(She,ze({},e,{children:r.jsx(_he,{initialProps:e})}))}function C8({className:e,classNames:t,showOutsideDays:n=!0,...s}){return r.jsx(Che,{showOutsideDays:n,className:le("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:le(op({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:"h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",day:le(op({variant:"ghost"}),"h-9 w-9 p-0 font-normal aria-selected:opacity-100"),day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},components:{IconLeft:({...a})=>r.jsx(w7,{className:"h-4 w-4"}),IconRight:({...a})=>r.jsx(lg,{className:"h-4 w-4"})},...s})}C8.displayName="Calendar";const Ehe=e=>{switch(e){case"qualified_scale":return r.jsx(it,{className:"bg-primary text-primary-foreground",children:"Scale"});case"qualified_clarity":return r.jsx(it,{variant:"secondary",children:"Clarity"});case"disqualified":return r.jsx(it,{variant:"destructive",children:"Disqualified"});default:return r.jsx(it,{variant:"outline",children:e})}},tr=({label:e,value:t})=>{const n=typeof t=="boolean"?t?"Yes":"No":t||"Not provided";return r.jsxs("div",{className:"py-1.5",children:[r.jsx("span",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide",children:e}),r.jsx("p",{className:"text-sm mt-0.5",children:String(n)})]})},The=({app:e})=>{const[t,n]=j.useState(!1),s=Array.isArray(e.operational_challenges)?e.operational_challenges.join(", "):"";return r.jsxs("div",{className:"border-b last:border-b-0",children:[r.jsxs("button",{onClick:()=>n(!t),className:"w-full flex items-center gap-4 px-4 py-3 hover:bg-muted/50 transition-colors text-left",children:[t?r.jsx(Ka,{className:"h-4 w-4 shrink-0 text-muted-foreground"}):r.jsx(lg,{className:"h-4 w-4 shrink-0 text-muted-foreground"}),r.jsx("span",{className:"w-24 text-sm shrink-0",children:new Date(e.created_at).toLocaleDateString()}),r.jsxs("span",{className:"w-40 text-sm font-medium truncate",children:[e.first_name," ",e.last_name]}),r.jsx("span",{className:"w-48 text-sm text-muted-foreground truncate hidden md:block",children:e.email}),r.jsx("span",{className:"w-32 text-sm hidden lg:block",children:e.revenue_range}),r.jsx("span",{className:"w-24",children:Ehe(e.qualification_result)}),r.jsx("span",{className:"w-24",children:r.jsx(it,{variant:"outline",children:e.status})})]}),t&&r.jsx("div",{className:"px-4 pb-4 pt-1 ml-8 bg-muted/30 rounded-b-md",children:r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-x-8 gap-y-1",children:[r.jsxs("div",{children:[r.jsx("h4",{className:"text-xs font-semibold text-primary mb-2 mt-2 uppercase tracking-wider",children:"Contact Info"}),r.jsx(tr,{label:"Email",value:e.email}),r.jsx(tr,{label:"Phone",value:e.phone}),r.jsx(tr,{label:"Website",value:e.website_url})]}),r.jsxs("div",{children:[r.jsx("h4",{className:"text-xs font-semibold text-primary mb-2 mt-2 uppercase tracking-wider",children:"Business Details"}
736),r.jsx(tr,{label:"Business Name",value:e.business_name}),r.jsx(tr,{label:"Revenue Range",value:e.revenue_range}),r.jsx(tr,{label:"Current Stage",value:e.current_stage}),r.jsx(tr,{label:"Team Size",value:e.team_size}),r.jsx(tr,{label:"Work Hours",value:e.work_hours})]}),r.jsxs("div",{children:[r.jsx("h4",{className:"text-xs font-semibold text-primary mb-2 mt-2 uppercase tracking-wider",children:"Operational Assessment"}),r.jsx(tr,{label:"Challenges",value:s||"None selected"}),r.jsx(tr,{label:"Operator Available",value:e.operator_available}),r.jsx(tr,{label:"Previous Systems",value:e.previous_systems}),r.jsx(tr,{label:"Previous Systems Details",value:e.previous_systems_details}),r.jsx(tr,{label:"Prevention Factor",value:e.prevention_factor})]}),r.jsxs("div",{children:[r.jsx("h4",{className:"text-xs font-semibold text-primary mb-2 mt-2 uppercase tracking-wider",children:"Commitment & Pricing"}),r.jsx(tr,{label:"Commitment Level",value:e.commitment_level}),r.jsx(tr,{label:"Pricing Acknowledged",value:e.pricing_acknowledged})]}),r.jsxs("div",{children:[r.jsx("h4",{className:"text-xs font-semibold text-primary mb-2 mt-2 uppercase tracking-wider",children:"Additional Context"}),r.jsx(tr,{label:"Referral Source",value:e.referral_source}),r.jsx(tr,{label:"Additional Info",value:e.additional_info})]}),r.jsxs("div",{children:[r.jsx("h4",{className:"text-xs font-semibold text-primary mb-2 mt-2 uppercase tracking-wider",children:"Meta"}),r.jsx(tr,{label:"Qualification",value:e.qualification_result}),r.jsx(tr,{label:"Notification Sent",value:e.notification_sent}),r.jsx(tr,{label:"Submitted",value:new Date(e.created_at).toLocaleString()})]})]})})]})},$he=()=>{const{user:e,loading:t}=sn(),{toast:n}=Lt(),[s,a]=j.useState([]),[i,o]=j.useState(!0),[l,c]=j.useState(),[d,u]=j.useState(),[h,f]=j.useState(0),[m,y]=j.useState(1),p=10,v=typeof window<"u"&&(window.location.hostname==="localhost"||window.location.hostname.includes("lovable.app")||window.location.hostname.includes("lovableproject.com")||window.location.hostname.includes("lovable.dev")||window.location.port==="5173"||window.location.protocol==="file:"),g=async(b=1)=>{try{let w=ve.from("unified_applications").select("*",{count:"exact"}).order("created_at",{ascending:!1}).range((b-1)*p,b*p-1);if(l&&(w=w.gte("created_at",l.toISOString())),d){const C=new Date(d);C.setHours(23,59,59,999),w=w.lte("created_at",C.toISOString())}const{data:N,count:S,error:_}=await w;if(_)throw _;a(N||[]),f(S||0)}catch(w){console.error("Error fetching applications:",w),n({title:"Error",description:"Failed to fetch applications",variant:"destructive"})}};j.useEffect(()=>{(async()=>{t&&!v||!e&&!v||(o(!0),await g(m),o(!1))})()},[e,t,l,d,m]);const x=()=>{c(void 0),u(void 0)};return t&&!v?r.jsx("div",{className:"flex min-h-screen w-full items-center justify-center",children:r.jsx(wt,{className:"h-8 w-8 animate-spin"})}):!e&&!v?r.jsx("div",{className:"flex min-h-screen w-full items-center justify-center",children:r.jsx("p",{children:"Please log in."})}):r.jsx(Nt,{children:r.jsxs("div",{className:"flex min-h-screen w-full",children:[r.jsx(kt,{}),r.jsxs("div",{className:"flex-1 space-y-6 p-6",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("h1",{className:"text-3xl font-bold",children:"Prospect Applications"}),r.jsxs("div",{className:"flex items-center gap-4",children:[r.jsxs(px,{children:[r.jsx(gx,{asChild:!0,children:r.jsxs(te,{variant:"outline",className:"w-[280px] justify-start text-left font-normal",children:[r.jsx(gr,{className:"mr-2 h-4 w-4"}),l?d?r.jsxs(r.Fragment,{children:[Ps(l,"LLL dd, y")," - ",Ps(d,"LLL dd, y")]}):Ps(l,"LLL dd, y"):r.jsx("span",{children:"Pick a date range"})]})}),r.jsx(Qh,{className:"w-auto p-0",align:"start",children:r.jsx(C8,{initialFocus:!0,mode:"range",defaultMonth:l,selected:{from:l,to:d},onSelect:b=>{c(b==null?void 0:b.from),u(b==null?void 0:b.to)},numberOfMonths:2})})]}),(l||d)&&r.jsxs(te,{variant:"outline",onClick:x,children:[r.jsx(Ft,{className:"h-4 w-4 mr-2"}),"Clear"]})]})]}),r.jsxs(G,{children:[r.jsx(Ie,{children:r.jsxs(Me,{children:["Applications (",h,")"]})}),r.jsx(Ne,{children:i?r.jsx("div",{className:"text-center py-8",children:r.jsx(wt,{className:"h-8 w-8 animate-spin mx-auto"})}):s.length===0?r.jsx("p",{className:"text-center py-8 text-muted-foreground",children:"No applications foun
736d."}):r.jsxs("div",{children:[r.jsxs("div",{className:"flex items-center gap-4 px-4 py-2 border-b bg-muted/50 text-xs font-medium text-muted-foreground uppercase tracking-wider",children:[r.jsx("span",{className:"w-4 shrink-0"}),r.jsx("span",{className:"w-24",children:"Date"}),r.jsx("span",{className:"w-40",children:"Name"}),r.jsx("span",{className:"w-48 hidden md:block",children:"Email"}),r.jsx("span",{className:"w-32 hidden lg:block",children:"Revenue"}),r.jsx("span",{className:"w-24",children:"Qualification"}),r.jsx("span",{className:"w-24",children:"Status"})]}),s.map(b=>r.jsx(The,{app:b},b.id))]})})]})]})]})})},Ohe=()=>{const{user:e}=sn(),{toast:t}=Lt(),[n,s]=j.useState(!1),[a,i]=j.useState(!0),[o,l]=j.useState(""),[c,d]=j.useState(""),[u,h]=j.useState(""),[f,m]=j.useState(""),[y,p]=j.useState(""),[v,g]=j.useState("");j.useEffect(()=>{(async()=>{try{const{data:w,error:N}=await ve.from("admin_settings").select("setting_key, setting_value").in("setting_key",["4r_role_clarity_url","ota_framework_url","quantum_flow_planner_url","waterfall_templates_url","time_study_template_url","ceo_metrics_dashboard_url"]);if(N){console.error("Error fetching document URLs:",N);return}w==null||w.forEach(S=>{switch(S.setting_key){case"4r_role_clarity_url":l(S.setting_value);break;case"ota_framework_url":d(S.setting_value);break;case"quantum_flow_planner_url":h(S.setting_value);break;case"waterfall_templates_url":m(S.setting_value);break;case"time_study_template_url":p(S.setting_value);break;case"ceo_metrics_dashboard_url":g(S.setting_value);break}})}catch(w){console.error("Error:",w)}finally{i(!1)}})()},[]);const x=async()=>{s(!0);try{const b=[{key:"4r_role_clarity_url",value:o,description:"4R Role Clarity Documents download URL"},{key:"ota_framework_url",value:c,description:"OTA Framework Templates download URL"},{key:"quantum_flow_planner_url",value:u,description:"Quantum Flow Daily Planner download URL"},{key:"waterfall_templates_url",value:f,description:"Waterfall Project Management Templates download URL"},{key:"time_study_template_url",value:y,description:"Time Study Template download URL"},{key:"ceo_metrics_dashboard_url",value:v,description:"Simple CEO Metrics Dashboard download URL"}];for(const w of b){const{error:N}=await ve.from("admin_settings").upsert({setting_key:w.key,setting_value:w.value,description:w.description},{onConflict:"setting_key"});if(N)throw N}t({title:"Success",description:"Document download URLs updated successfully!"})}catch(b){console.error("Error updating document URLs:",b),t({title:"Error",description:"Failed to update document URLs. Please try again.",variant:"destructive"})}finally{s(!1)}};return a?r.jsx(Nt,{children:r.jsxs("div",{className:"min-h-screen flex w-full",children:[r.jsx(kt,{}),r.jsxs("div",{className:"flex-1 flex flex-col",children:[r.jsxs("header",{className:"h-16 border-b flex items-center px-6 bg-background",children:[r.jsx(Tr,{className:"mr-4"}),r.jsx("h1",{className:"text-2xl font-semibold",children:"Document Downloads"})]}),r.jsx("main",{className:"flex-1 p-6 flex items-center justify-center",children:r.jsx(wt,{className:"h-8 w-8 animate-spin"})})]})]})}):r.jsx(Nt,{children:r.jsxs("div",{className:"min-h-screen flex w-full",children:[r.jsx(kt,{}),r.jsxs("div",{className:"flex-1 flex flex-col",children:[r.jsxs("header",{className:"h-16 border-b flex items-center px-6 bg-background",children:[r.jsx(Tr,{className:"mr-4"}),r.jsx("h1",{className:"text-2xl font-semibold",children:"Document Downloads"}),r.jsx("div",{className:"ml-auto",children:r.jsxs("span",{className:"text-sm text-muted-foreground",children:["Welcome back, ",e==null?void 0:e.email]})})]}),r.jsxs("main",{className:"flex-1 p-6 space-y-6",children:[r.jsxs(G,{children:[r.jsxs(Ie,{children:[r.jsxs(Me,{className:"flex items-center gap-2",children:[r.jsx(Rs,{className:"h-5 w-5"}),"Core Tools & Templates"]}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Manage download URLs for the core operational tools and templates."})]}),r.jsxs(Ne,{className:"space-y-4",children:[r.jsxs("div",{className:"space-y-2",children:[r.jsxs(oe,{htmlFor:"4r-role-clarity",className:"flex items-center gap-2",children:[r.jsx(Rs,{className:"h-4 w-4"}
736),"4R Role Clarity Documents"]}),r.jsx(je,{id:"4r-role-clarity",type:"url",placeholder:"https://drive.google.com/file/d/...",value:o,onChange:b=>l(b.target.value)})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsxs(oe,{htmlFor:"ota-framework",className:"flex items-center gap-2",children:[r.jsx($e,{className:"h-4 w-4"}),"OTA Framework Templates"]}),r.jsx(je,{id:"ota-framework",type:"url",placeholder:"https://drive.google.com/file/d/...",value:c,onChange:b=>d(b.target.value)})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsxs(oe,{htmlFor:"quantum-flow",className:"flex items-center gap-2",children:[r.jsx(gr,{className:"h-4 w-4"}),"Quantum Flow Daily Planner"]}),r.jsx(je,{id:"quantum-flow",type:"url",placeholder:"https://drive.google.com/file/d/...",value:u,onChange:b=>h(b.target.value)})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsxs(oe,{htmlFor:"waterfall-templates",className:"flex items-center gap-2",children:[r.jsx(og,{className:"h-4 w-4"}),"Waterfall Project Management Templates"]}),r.jsx(je,{id:"waterfall-templates",type:"url",placeholder:"https://drive.google.com/file/d/...",value:f,onChange:b=>m(b.target.value)})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsxs(oe,{htmlFor:"time-study",className:"flex items-center gap-2",children:[r.jsx(zt,{className:"h-4 w-4"}),"Time Study Template"]}),r.jsx(je,{id:"time-study",type:"url",placeholder:"https://drive.google.com/file/d/...",value:y,onChange:b=>p(b.target.value)})]})]})]}),r.jsxs(G,{children:[r.jsxs(Ie,{children:[r.jsxs(Me,{className:"flex items-center gap-2",children:[r.jsx(ss,{className:"h-5 w-5"}),"Assessment & Planning Tools"]}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Manage download URLs for spreadsheets and assessment tools."})]}),r.jsx(Ne,{className:"space-y-4",children:r.jsxs("div",{className:"space-y-2",children:[r.jsxs(oe,{htmlFor:"ceo-metrics",className:"flex items-center gap-2",children:[r.jsx(ss,{className:"h-4 w-4"}),"Simple CEO Metrics Dashboard (Spreadsheet)"]}),r.jsx(je,{id:"ceo-metrics",type:"url",placeholder:"https://drive.google.com/file/d/...",value:v,onChange:b=>g(b.target.value)})]})})]}),r.jsx(G,{children:r.jsx(Ne,{className:"pt-6",children:r.jsx(te,{onClick:x,disabled:n,className:"w-full sm:w-auto",children:n?r.jsxs(r.Fragment,{children:[r.jsx(wt,{className:"mr-2 h-4 w-4 animate-spin"}),"Saving..."]}):r.jsxs(r.Fragment,{children:[r.jsx(Lr,{className:"mr-2 h-4 w-4"}),"Save All Document URLs"]})})})}),r.jsxs(G,{children:[r.jsxs(Ie,{children:[r.jsx(Me,{children:"URL Status Preview"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Overview of which documents have download URLs configured."})]}),r.jsx(Ne,{children:r.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[r.jsxs("div",{className:"space-y-2",children:[r.jsx("h4",{className:"font-semibold text-sm",children:"Core Tools & Templates:"}),r.jsxs("div",{className:"space-y-1 text-sm",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("span",{children:"4R Role Clarity"}),r.jsx("span",{className:o?"text-green-600":"text-red-600",children:o?"â Configured":"â Missing"})]}),r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("span",{children:"OTA Framework"}),r.jsx("span",{className:c?"text-green-600":"text-red-600",children:c?"â Configured":"â Missing"})]}),r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("span",{children:"Quantum Flow Planner"}),r.jsx("span",{className:u?"text-green-600":"text-red-600",children:u?"â Configured":"â Missing"})]}),r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("span",{children:"Waterfall Templates"}),r.jsx("span",{className:f?"text-green-600":"text-red-600",children:f?"â Configured":"â Missing"})]}),r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("span",{children:"Time Study Template"}),r.jsx("span",{className:y?"text-green-600":"text-red-600",children:y?"â Configured":"â Missing"})]})]})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx("h4",{className:"font-semibold text-sm",children:"Assessment Tools:"}),r.jsx("div",{className:"space-y-1 text-sm",children:r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("span",{children:"CEO Metrics Dashboard"}),r.jsx("span",{className:v?"text-green-600":"text-red-600",children:v?"â Configured":"â Missing"})]})})]})]})})]})]})]})]})})};var yx="Switch",[Phe,txe]=ir(yx),[Ahe,Ihe]=Phe(yx),E8=j.forwardRef((e,t)=>
vendor: 4,140 bytes, lines 736-744
736{const{__scopeSwitch:n,name:s,checked:a,defaultChecked:i,required:o,disabled:l,value:c="on",onCheckedChange:d,form:u,...h}=e,[f,m]=j.useState(null),y=Ge(t,b=>m(b)),p=j.useRef(!1),v=f?u||!!f.closest("form"):!0,[g,x]=Xr({prop:a,defaultProp:i??!1,onChange:d,caller:yx});return r.jsxs(Ahe,{scope:n,checked:g,disabled:l,children:[r.jsx(we.button,{type:"button",role:"switch","aria-checked":g,"aria-required":o,"data-state":P8(g),"data-disabled":l?"":void 0,disabled:l,value:c,...h,ref:y,onClick:me(e.onClick,b=>{x(w=>!w),v&&(p.current=b.isPropagationStopped(),p.current||b.stopPropagation())})}),v&&r.jsx(O8,{control:f,bubbles:!p.current,name:s,value:c,checked:g,required:o,disabled:l,form:u,style:{transform:"translateX(-100%)"}})]})});E8.displayName=yx;var T8="SwitchThumb",$8=j.forwardRef((e,t)=>{const{__scopeSwitch:n,...s}=e,a=Ihe(T8,n);return r.jsx(we.span,{"data-state":P8(a.checked),"data-disabled":a.disabled?"":void 0,...s,ref:t})});$8.displayName=T8;var Rhe="SwitchBubbleInput",O8=j.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:s=!0,...a},i)=>{const o=j.useRef(null),l=Ge(o,i),c=Yg(n),d=pg(t);return j.useEffect(()=>{const u=o.current;if(!u)return;const h=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(h,"checked").set;if(c!==n&&m){const y=new Event("click",{bubbles:s});m.call(u,n),u.dispatchEvent(y)}},[c,n,s]),r.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...a,tabIndex:-1,ref:l,style:{...a.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});O8.displayName=Rhe;function P8(e){return e?"checked":"unchecked"}var A8=E8,Mhe=$8;const ha=j.forwardRef(({className:e,...t},n)=>r.jsx(A8,{className:le("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 transition-colors data-[state=checked]:bg-primary data-[state=checked]:border-primary data-[state=unchecked]:bg-muted data-[state=unchecked]:border-border focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",e),...t,ref:n,children:r.jsx(Mhe,{className:le("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));ha.displayName=A8.displayName;var I8={exports:{}},R8={};/** 737 * @license React 738 * use-sync-external-store-shim.production.js 739 * 740 * Copyright (c) Meta Platforms, Inc. and affiliates. 741 * 742 * This source code is licensed under the MIT license found in the 743 * LICENSE file in the root directory of this source tree. 744 */var Xc=j;function Dhe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Fhe=typeof Object.is=="function"?Object.is:Dhe,Lhe=Xc.useState,Bhe=Xc.useEffect,Whe=Xc.useLayoutEffect,Uhe=Xc.useDebugValue;function qhe(e,t){var n=t(),s=Lhe({inst:{value:n,getSnapshot:t}}),a=s[0].inst,i=s[1];return Whe(function(){a.value=n,a.getSnapshot=t,fv(a)&&i({inst:a})},[e,n,t]),Bhe(function(){return fv(a)&&i({inst:a}),e(function(){fv(a)&&i({inst:a})})},[e]),Uhe(n),n}function fv(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Fhe(e,n)}catch{return!0}}function Hhe(e,t){return t()}var zhe=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Hhe:qhe;R8.useSyncExternalStore=Xc.useSyncExternalStore!==void 0?Xc.useSyncExternalStore:zhe;I8.exports=R8;var Ghe=I8.exports;function Yhe(){return Ghe.useSyncExternalStore(Vhe,()=>!0,()=>!1)}function Vhe(){return()=>{}}var Zj="Avatar",[Khe,rxe]=ir(Zj),[Qhe,M8]=Khe(Zj),D8=j.forwardRef((e,t)=>{const{__scopeAvatar:n,...s}=e,[a,i]=j.useState("idle");return r.jsx(Qhe,{scope:n,imageLoadingStatus:a,onImageLoadingStatusChange:i,children:r.jsx(we.span,{...s,ref:t})})});D8.displayName=Zj;var F8="AvatarImage",L8=j.forwardRef((e,t)=>{const{__scopeAvatar:n,src:s,onLoadingStatusChange:a=()=>{},...i}=e,o=M8(F8,n),l=Zhe(s,i),c=Kt(d=>{a(d),o.onImageLoadingStatusChange(d)});return Qt(()=>{l!=="idle"&&c(l)},[l,c]),l==="loaded"?r.jsx(we.img,{...i,ref:t,src:s}):null});L8.displayName=F8;var B8="AvatarFallback",W8=j.forwardRef((e,t)=>
744{const{__scopeAvatar:n,delayMs:s,...a}=e,i=M8(B8,n),[o,l]=j.useState(s===void 0);return j.useEffect(()=>{if(s!==void 0){const c=window.setTimeout(()=>l(!0),s);return()=>window.clearTimeout(c)}},[s]),o&&i.imageLoadingStatus!=="loaded"?r.jsx(we.span,{...a,ref:t}):null});W8.displayName=B8;function K3(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function Zhe(e,{referrerPolicy:t,crossOrigin:n}){const s=Yhe(),a=j.useRef(null),i=s?(a.current||(a.current=new window.Image),a.current):null,[o,l]=j.useState(()=>K3(i,e));return Qt(()=>{l(K3(i,e))},[i,e]),Qt(()=>{const c=h=>()=>{l(h)};if(!i)return;const d=c("loaded"),u=c("error");return i.addEventListener("load",d),i.addEventListener("error",u),t&&(i.referrerPolicy=t),typeof n=="string"&&(i.crossOrigin=n),()=>{i.removeEventListener("load",d),i.removeEventListener("error",u)}},[i,n,t]),o}var U8=D8,q8=L8,H8=W8;const Dp=j.forwardRef(({className:e,...t},n)=>r.jsx(U8,{ref:n,className:le("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));Dp.displayName=U8.displayName;const Fp=j.forwardRef(({className:e,...t},n)=>r.jsx(q8,{ref:n,className:le("aspect-square h-full w-full object-cover object-center",e),...t}));Fp.displayName=q8.displayName;const Lp=j.forwardRef(({className:e,...t},n)=>r.jsx(H8,{ref:n,className:le("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Lp.displayName=H8.displayName;const Xhe=()=>{const{user:e}=sn(),[t,n]=j.useState([]),[s,a]=j.useState(!0),[i,o]=j.useState(!1),[l,c]=j.useState(!1),[d,u]=j.useState(null),[h,f]=j.useState(""),[m,y]=j.useState(!1),[p,v]=j.useState(null),[g,x]=j.useState({name:"",title:"",biography:"",profile_photo_url:"",linkedin_url:"",is_active:!0,sort_order:0});j.useEffect(()=>{b()},[]);const b=async()=>{try{const{data:E,error:T}=await et.select("team_members",{order:{column:"sort_order",ascending:!0}});if(T)throw T;n(E||[])}catch(E){console.error("Error fetching team members:",E),Pn({title:"Error",description:"Failed to fetch team members",variant:"destructive"})}finally{a(!1)}},w=()=>{x({name:"",title:"",biography:"",profile_photo_url:"",linkedin_url:"",is_active:!0,sort_order:t.length}),v(null),u(null),f("")},N=async E=>{if(E){if(!E.type.startsWith("image/")){mr.error("Please upload an image file");return}if(E.size>5*1024*1024){mr.error("File size must be less than 5MB");return}c(!0);try{const T=E.name.split(".").pop(),O=`${Date.now()}-${Math.random().toString(36).substring(2)}.${T}`,A=await up.upload("team-photos",O,E);if(!A)throw new Error("Failed to upload");f(A),x({...g,profile_photo_url:A}),mr.success("Photo uploaded successfully")}catch(T){console.error("Upload error:",T),mr.error("Failed to upload photo")}finally{c(!1)}}},S=()=>{w(),y(!0)},_=E=>{x({name:E.name,title:E.title,biography:E.biography||"",profile_photo_url:E.profile_photo_url||"",linkedin_url:E.linkedin_url||"",is_active:E.is_active,sort_order:E.sort_order}),v(E),f(E.profile_photo_url||""),u(null),y(!0)},C=async E=>{if(E.preventDefault(),!g.name.trim()||!g.title.trim()){Pn({title:"Error",description:"Name and title are required",variant:"destructive"});return}o(!0);try{if(p){const{error:T}=await et.update("team_members",p.id,{name:g.name.trim(),title:g.title.trim(),biography:g.biography.trim()||null,profile_photo_url:g.profile_photo_url.trim()||null,linkedin_url:g.linkedin_url.trim()||null,is_active:g.is_active,sort_order:g.sort_order});if(T)throw T;Pn({title:"Success",description:"Team member updated successfully"})}else{const{error:T}=await et.insert("team_members",{name:g.name.trim(),title:g.title.trim(),biography:g.biography.trim()||null,profile_photo_url:g.profile_photo_url.trim()||null,linkedin_url:g.linkedin_url.trim()||null,is_active:g.is_active,sort_order:g.sort_order});if(T)throw T;Pn({title:"Success",description:"Team member added successfully"})}y(!1),w(),b()}catch(T){console.error("Error saving team member:",T),Pn({title:"Error",description:"Failed to save team member",variant:"destructive"})}finally{o(!1)}},$=async E=>{if(confirm("Are you sure you want to delete this team member?"))try{const{error:T}=await et.delete("team_members",E);if(T)throw T;Pn({title:"Success",description:"Team member deleted successfully"}),b()}catch(T){console.error("Error deleting team member:",T),Pn({title:"Error",description:"Failed to delete team member",variant:"destructive"})}},k=E=>E.split(" ").map(T=>T.charAt(0)).join("").toUpperCase().slice(0,2);return s?r.jsx(Nt,{children:r.jsxs("div",{className:"flex min-h-screen w-full",children:[r.jsx(kt,{}),r.jsx("main",{className:"flex-1 p-6",children:r.jsxs("div",{className:"animate-pulse space-y-4",children:[r.jsx("div",{className:"h-8 bg-muted rounded w-48"}),r.jsx("div",{className:"h-32 bg-muted rounded"})]})})]})}):r.jsx(Nt,{children:r.jsxs("div",{className:"flex min-h-screen w-full",children:[r.jsx(kt,{}),r.jsx("main",{className:"flex-1 p-6",children:r.jsxs("div",{className:"max-w-6xl mx-auto
744space-y-6",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-3xl font-bold",children:"Team Management"}),r.jsx("p",{className:"text-muted-foreground",children:"Manage team members displayed on the public Team page"})]}),r.jsxs("div",{className:"flex items-center gap-4",children:[r.jsxs("span",{className:"text-sm text-muted-foreground",children:["Welcome, ",e==null?void 0:e.email]}),r.jsxs(sx,{open:m,onOpenChange:y,children:[r.jsx(gA,{asChild:!0,children:r.jsxs(te,{onClick:S,children:[r.jsx(vw,{className:"w-4 h-4 mr-2"}),"Add Team Member"]})}),r.jsxs(Gh,{className:"max-w-2xl",children:[r.jsx(Yh,{children:r.jsx(Vh,{children:p?"Edit Team Member":"Add Team Member"})}),r.jsxs("form",{onSubmit:C,className:"space-y-4",children:[r.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[r.jsxs("div",{children:[r.jsx(oe,{htmlFor:"name",children:"Name *"}),r.jsx(je,{id:"name",value:g.name,onChange:E=>x({...g,name:E.target.value}),placeholder:"Full name",required:!0})]}),r.jsxs("div",{children:[r.jsx(oe,{htmlFor:"title",children:"Title *"}),r.jsx(je,{id:"title",value:g.title,onChange:E=>x({...g,title:E.target.value}),placeholder:"Job title",required:!0})]})]}),r.jsxs("div",{children:[r.jsx(oe,{htmlFor:"biography",children:"Biography"}),r.jsx(bn,{id:"biography",value:g.biography,onChange:E=>x({...g,biography:E.target.value}),placeholder:"Short bio about the team member",rows:3})]}),r.jsxs("div",{children:[r.jsx(oe,{children:"Profile Photo"}),r.jsxs("div",{className:"space-y-3",children:[h||g.profile_photo_url?r.jsxs("div",{className:"flex items-center space-x-4",children:[r.jsxs(Dp,{className:"w-16 h-16",children:[r.jsx(Fp,{src:h||g.profile_photo_url,alt:"Profile preview"}),r.jsx(Lp,{children:k(g.name||"Unknown")})]}),r.jsxs(te,{type:"button",variant:"outline",size:"sm",onClick:()=>{f(""),x({...g,profile_photo_url:""}),u(null)},children:[r.jsx(Ft,{className:"w-4 h-4 mr-2"}),"Remove Photo"]})]}):r.jsxs("div",{className:"border-2 border-dashed border-muted-foreground/25 rounded-lg p-6 text-center",children:[r.jsx("input",{type:"file",accept:"image/*",onChange:E=>{var O;const T=(O=E.target.files)==null?void 0:O[0];T&&(u(T),N(T))},className:"hidden",id:"photo-upload",disabled:l}),r.jsxs("label",{htmlFor:"photo-upload",className:"cursor-pointer flex flex-col items-center space-y-2 text-muted-foreground hover:text-foreground transition-colors",children:[r.jsx(bw,{className:"h-8 w-8"}),r.jsxs("div",{className:"text-sm",children:[r.jsx("span",{className:"font-medium text-primary",children:"Click to upload"})," or drag and drop"]}),r.jsx("div",{className:"text-xs",children:"PNG, JPG up to 5MB"})]}),l&&r.jsx("div",{className:"mt-2",children:r.jsx("div",{className:"text-sm text-muted-foreground",children:"Uploading..."})})]}),r.jsx("p",{className:"text-xs text-muted-foreground",children:"Square images work best. Photo will be displayed as a circle."})]})]}),r.jsxs("div",{children:[r.jsx(oe,{htmlFor:"linkedin_url",children:"LinkedIn URL"}),r.jsx(je,{id:"linkedin_url",type:"url",value:g.linkedin_url,onChange:E=>x({...g,linkedin_url:E.target.value}),placeholder:"https://linkedin.com/in/username"})]}),r.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[r.jsxs("div",{className:"flex items-center space-x-2",children:[r.jsx(ha,{id:"is_active",checked:g.is_active,onCheckedChange:E=>x({...g,is_active:E})}),r.jsx(oe,{htmlFor:"is_active",children:"Active (visible on Team page)"})]}),r.jsxs("div",{children:[r.jsx(oe,{htmlFor:"sort_order",children:"Sort Order"}),r.jsx(je,{id:"sort_order",type:"number",value:g.sort_order,onChange:E=>x({...g,sort_order:parseInt(E.target.value)||0}),min:"0"})]})]}),r.jsxs("div",{className:"flex justify-end space-x-2 pt-4",children:[r.jsx(te,{type:"button",variant:"outline",onClick:()=>y(!1),children:"Cancel"}),r.jsxs(te,{type:"submit",disabled:i,children:[i?"Saving...":p?"Update":"Add"," Team Member"]})]})]})]})]})]})]}),r.jsxs(G,{children:[r.jsx(Ie,{children:r.jsxs(Me,{children:["Team Members (",t.length,")"]})}),r.jsx(Ne,{children:t.length===0?r.jsx("div",{className:"text-center py-8",children:r.jsx("p",{className:"text-muted-foreground",children:"No team members yet. Add your first team member above."})}):r.jsxs(tx,{children:[r.jsx(rx,{children:r.jsxs(Ra,{children:[r.jsx(At,{children:"Photo"}),r.jsx(At,{children:"Name"}),r.jsx(At,{children:"Title"}),r.jsx(At,{children:"Status"}),r.jsx(At,{children:"Order"}),r.jsx(At,{children:"LinkedIn"}),r.jsx(At,{children:"Actions"})]})}),r.jsx(nx,{children:t.map(E=>r.jsxs(Ra,{children:[r.jsx(St,{children:r.jsxs(Dp,{className:"w-10 h-10",children:[r.jsx(Fp,{src:E.profile_photo_url,alt:E.name}),r.jsx(Lp,{className:"text-xs",children:k(E.name)})]})}),r.jsx(St,{className:"font-medium",children:E.name}),r.jsx(St,{children:E.title}),r.jsx(St,{children:r.jsx("span",{className:`inline-flex items-center px-2 py-1 rounded-full text-xs font-medium ${E.is_active?"bg-green-100 text-green-800":"bg-gray-100 text-gray-800"}`,children:E.is_active?"Active":"Inactive"})}),r.jsx(St,{children:E.sort_order}),r.jsx(St,{children:E.linkedin_url&&r.jsx("a",{href:E.linkedin_url,target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:text-primary-dark",children:r.jsx(Cr,{className:"w-4 h-4"})})}),r.jsx(St,{children:r.jsxs("div",{className:"flex items-center space-x-2",children:[r.jsx(te,{variant:"ghost",size:"sm",onClick:()=>_(E),children:r.jsx(L7,{className:"w-4 h-4"})}),r.jsx(te,{variant:"ghost",size:"sm",onClick:()=>$(E.id),className:"text-destructive hover:text-destructive",children:r.jsx(Oh,{className:"w-4 h-4"})})]})})]},E.id))})]})})]})]})})]})})},pv=[{value:"contact_admin_notification",label:"Contact Form â Admin Notification",type:"admin_notification"},{value:"contact_user_confirmation",label:"Contact Form â User Thank You Email",type:"user_confirmation"},{value:"assessment_user_notification",label:"Billionaire Code Assessment â User Results Email",type:"user_confirmation"},{value:"assessment_admin_notification",label:"Billionaire Code Assessment â Admin Notification",type:"admin_notification"},{value:"core_functions_admin_notification",label:"5 Core Functions Download â Admin Notification",type:"admin_notification"},{value:"unified_application_admin_notification",label:"Unified Application â Admin Notification",type:"admin_notification"},{value:"unified_application_user_confirmation",label:"Unified Application â User Confirmation",type:"user_confirmation"},{value:"application_disqualification",label:"Application â Disqualification
744Email",type:"user_confirmation"},{value:"c2c_clarity_admin_notification",label:"[Legacy] Clarity Method â Admin Notification",type:"admin_notification"},{value:"c2c_clarity_user_confirmation",label:"[Legacy] Clarity Method â User Confirmation",type:"user_confirmation"},{value:"c2c_scale_admin_notification",label:"[Legacy] Scale Method â Admin Notification",type:"admin_notification"},{value:"c2c_scale_user_confirmation",label:"[Legacy] Scale Method â User Confirmation",type:"user_confirmation"}];function Jhe(){var w;const[e,t]=j.useState([]),[n,s]=j.useState(null),[a,i]=j.useState(""),[o,l]=j.useState(""),[c,d]=j.useState(""),[u,h]=j.useState(!0),[f,m]=j.useState(!1),{toast:y}=Lt();j.useEffect(()=>{p()},[]),j.useEffect(()=>{n&&(l(n.subject_template),d(n.html_template))},[n]);const p=async()=>{try{h(!0);const{data:N,error:S}=await ve.from("email_templates").select("*").eq("is_active",!0).order("template_name");if(S)throw S;t((N||[]).map(_=>({..._,template_type:_.template_type,merge_tags:Array.isArray(_.merge_tags)?_.merge_tags.map(C=>String(C)):[]})))}catch(N){console.error("Error fetching templates:",N),y({title:"Error",description:"Failed to load email templates",variant:"destructive"})}finally{h(!1)}},v=N=>{i(N);const S=e.find(_=>_.template_name===N);if(S)s(S);else{const _=pv.find(C=>C.value===N);_&&(s({id:"",template_name:N,template_type:_.type,subject_template:"",html_template:"",merge_tags:[],is_active:!0,created_at:"",updated_at:""}),l(""),d(""))}},g=async()=>{if(n)try{m(!0);const N={template_name:n.template_name,template_type:n.template_type,subject_template:o,html_template:c,merge_tags:n.merge_tags||[],is_active:!0};let S;if(n.id?S=await ve.from("email_templates").update(N).eq("id",n.id).select().single():S=await ve.from("email_templates").insert(N).select().single(),S.error)throw S.error;y({title:"Success",description:"Email template saved successfully"}),await p(),s(S.data)}catch(N){console.error("Error saving template:",N),y({title:"Error",description:"Failed to save email template",variant:"destructive"})}finally{m(!1)}},x=N=>pv.find(S=>S.value===N),b=N=>!N||N.length===0?null:r.jsxs("div",{className:"space-y-2",children:[r.jsx(oe,{className:"text-sm font-medium",children:"Available Merge Tags:"}),r.jsx("div",{className:"flex flex-wrap gap-1 max-h-32 overflow-y-auto",children:N.map(S=>r.jsx(it,{variant:"secondary",className:"text-xs cursor-pointer hover:bg-primary hover:text-primary-foreground",onClick:()=>{navigator.clipboard.writeText(`{{${S}}}`),y({title:"Copied!",description:`{{${S}}} copied to clipboard`})},children:S},S))}),r.jsxs("p",{className:"text-xs text-muted-foreground",children:["Click on any tag to copy it to clipboard. Use ","{{tagName}}"," format in your templates."]})]});return u?r.jsx(Nt,{children:r.jsxs("div",{className:"flex min-h-screen w-full",children:[r.jsx(kt,{}),r.jsx("div",{className:"flex-1 flex items-center justify-center",children:r.jsxs("div",{className:"text-center",children:[r.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-primary mx-auto mb-4"}),r.jsx("p",{children:"Loading email templates..."})]})})]})}):r.jsx(Nt,{children:r.jsxs("div",{className:"flex min-h-screen w-full",children:[r.jsx(kt,{}),r.jsxs("div",{className:"flex-1 p-6 space-y-6",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(Tr,{}),r.jsx(xr,{className:"h-6 w-6"}),r.jsx("h1",{className:"text-2xl font-bold",children:"Email Templates"})]}),r.jsxs(G,{children:[r.jsxs(Ie,{children:[r.jsx(Me,{children:"Template Selection"}),r.jsx(dt,{children:"Choose an email template to edit. These templates are used for all automated emails sent by the application."})]}),r.jsx(Ne,{children:r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{children:[r.jsx(oe,{htmlFor:"template-select",children:"Select Template"}),r.jsxs(yc,{value:a,onValueChange:v,children:[r.jsx(Zo,{className:"w-full bg-background border-2 border-border hover:border-primary/50 focus:border-primary",children:r.jsx(vc,{placeholder:"Choose an email template to edit..."})}),r.jsx(Xo,{className:"bg-background border-2 border-border shadow-lg z-50",children:pv.map(N=>r.jsx(Mr,{value:N.value,className:"hover:bg-accent hover:text-accent-foreground cursor-pointer",children:r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("span",{children:N.label}),r.jsx(it,{variant:N.type==="admin_notification"?"default":"secondary",className:"text-xs",children:N.type==="admin_notification"?"Admin":"User"})]})},N.value))})]})]}),n&&r.jsxs("div",{className:"text-sm text-muted-foreground",children:[r.jsxs("p",{children:[r.jsx("strong",{children:"Type:"})," ",n.template_type==="admin_notification"?"Admin Notification":"User Confirmation"]}),n.id&&r.jsxs("p",{children:[r.jsx("strong",{children:"Last Updated:"})," ",new Date(n.updated_at).toLocaleDateString()]})]})]})})]}),n&&r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[r.jsxs("div",{className:"lg:col-span-2 space-y-6",children:[r.jsxs(G,{children:[r.jsxs(Ie,{children:[r.jsx(Me,{children:"Subject Template"}),r.jsxs(dt,{children:["The email subject line. Use merge tags like ","{{name}}"," to personalize."]})]}),r.jsx(Ne,{children:r.jsx(je,{value:o,onChange:N=>l(N.target.value),placeholder:"Enter email subject template..."})})]}),r.jsxs(G,{children:[r.jsxs(Ie,{children:[r.jsx(Me,{children:"Email Content"}),r.jsx(dt,{children:"The HTML content of the email. Use the rich text editor to format your message."})]}),r.jsx(Ne,{children:r.jsx("div",{className:"min-h-[400px]",children:r.jsx(Ip,{theme:"snow",value:c,onChange:d,modules:{toolbar:[[{header:[1,2,3,!1]}],["bold","italic","underline","strike"],[{list:"ordered"},{list:"bullet"}],[{color:[]},{background:[]}],["link"],["clean"]]},style:{height:"300px"}})})})]}),r.jsx("div",{className:"flex gap-2",children:r.jsxs(te,{onClick:g,disabled:f||!o||!c,className:"flex items-center gap-2",children:[r.jsx(Lr,{className:"h-4 w-4"}),f?"Saving...":"Save Template"]})})]}),r.jsxs("div",{className:"space-y-6",children:[r.jsxs(G,{children:[r.jsxs(Ie,{children:[r.jsxs(Me,{className:"flex items-center gap-2",children:[r.jsx(hE,{className:"h-4 w-4"}),"Merge Tags"]}),r.jsx(dt,{children:"Available variables for this template"})]}),r.jsx(Ne,{children:b(n.merge_tags)})]}),r.jsxs(G,{children:[r.jsx(Ie,{children:r.jsx(Me,{children:"Template Info"})}),r.jsxs(Ne,{className:"space-y-2",children:[r.jsxs("div",{children:[r.jsx("span",{className:"font-medium",children:"Template:"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:(w=x(n.template_name))==null?void 0:w.label})]}),r.jsxs("div",{children:[r.jsx("span",{className:"font-medium",children:"Type:"}),r.jsx(it,{variant:n.template_type==="admin_notification"?"default":"secondary",className:"ml-2",children:n.template_type==="admin_notification"?"Admin Notification":"User Confirmation"})]})]})]})]})]}),!n&&r.jsx(G,{children:r.jsxs(Ne,{className:"p-12 text-center",children:[r.jsx(xr,{className:"h-12 w-12 mx-auto text-muted-foreground mb-4"}),r.jsx("h3",{className:"text-lg font-medium mb-2",children:"Select a Template"}),r.jsx("p",{className:"text-muted-foreground",children:"Choose an email template from the dropdown above to start editing."})]})})]})]})})}const eme=e=>{let t=e;return t=t.replace(/^######\s+(.+)$/gm,"<h6>$1</h6>"),t=t.replace(/^#####\s+(.+)$/gm,"<h5>$1</h5>"),t=t.replace(/^####\s+(.+)$/gm,"<h4>$1</h4>"),t=t.replace(/^###\s+(.+)$/gm,"<h3>$1</h3>"),t=t.replace(/^##\s+(.+)$/gm,"<h2>$1</h2>"),t=t.replace(/^#\s+(.+)$/gm,"<h1>$1</h1>"),t=t.replace(/^---+$/gm,"<hr>"),t=t.replace(/^\*\*\*+$/gm,"<hr>"),t=t.replace(/\*\*\*(.+?)\*\*\*/g,"<strong><em>$1</em></strong>"),t=t.replace(/\*\*(.+?)\*\*/g,"<strong>$1</strong>"),t=t.replace(/\*(.+?)\*/g,"<em>$1</em>"),t=t.replace(/\[([^\]]+)\]\(([^)]+)\)/g,'<a href="$2">$1</a>'),t=t.replace(/^>\s+(.+)$/gm,"<blockquote>$1</blockquote>"),t=t.replace(/(^[\-\*]\s+.+$\n?)+/gm,n=>`<ul>${n.trim().split(` 745`).map(a=>`<li>${a.replace(/^[\-\*]\s+/,"")}</li>`).join("")}</ul>`),t=t.replace(/(^\d+\.\s+.+$\n?)+/gm,n=>`<ol>${n.trim().split(` 746`).map(a=>`<li>${a.replace(/^\d+\.\s+/,"")}</li>`).join("")}</ol>`),t=t.split(` 747`).map(n=>{const s=n.trim();return s?/^<[a-z]/.test(s)?s:`<p>${s}</p>`:""}).join(` 748`),t=t.replace(/\n{2,}/g,` 749`),t.trim()},tme=()=>{const{user:e}=sn(),{toast:t}=Lt(),[n,s]=j.useState(""),[a,i]=j.useState(""),[o,l]=j.useState(!0),[c,d]=j.useState(!1),[u,h]=j.useState(!1),[f,m]=j.useState("privacy"),[y,p]=j.useState("");j.useEffect(()=>
749{v()},[]);const v=async()=>{try{const{data:S,error:_}=await ve.from("admin_settings").select("setting_key, setting_value").in("setting_key",["privacy_policy","terms_of_service"]);if(_&&_.code!=="PGRST116")throw _;if(S){const C=S.find(k=>k.setting_key==="privacy_policy"),$=S.find(k=>k.setting_key==="terms_of_service");s((C==null?void 0:C.setting_value)||""),i(($==null?void 0:$.setting_value)||"")}}catch(S){console.error("Error fetching legal content:",S),t({title:"Error",description:"Failed to load legal content",variant:"destructive"})}finally{l(!1)}},g=async(S,_)=>{d(!0);try{const{error:C}=await ve.from("admin_settings").upsert({setting_key:S,setting_value:_,description:S==="privacy_policy"?"Privacy Policy Content":"Terms of Service Content"},{onConflict:"setting_key"});if(C)throw C;t({title:"Success",description:`${S==="privacy_policy"?"Privacy Policy":"Terms of Service"} saved successfully`})}catch(C){console.error("Error saving legal content:",C),t({title:"Error",description:"Failed to save content",variant:"destructive"})}finally{d(!1)}},x=S=>{m(S),p(""),h(!0)},b=()=>{if(!y.trim()){t({title:"Empty input",description:"Please paste some markdown content first.",variant:"destructive"});return}const S=eme(y);f==="privacy"?s(S):i(S),h(!1),p(""),t({title:"Markdown imported",description:`Content converted and loaded into the ${f==="privacy"?"Privacy Policy":"Terms of Service"} editor. Remember to save.`})},w={toolbar:[[{header:[1,2,3,4,5,6,!1]}],["bold","italic","underline","strike"],[{list:"ordered"},{list:"bullet"}],[{indent:"-1"},{indent:"+1"}],["link"],["clean"]]},N=["header","bold","italic","underline","strike","list","bullet","indent","link"];return o?r.jsx(Nt,{children:r.jsxs("div",{className:"min-h-screen flex w-full",children:[r.jsx(kt,{}),r.jsx("div",{className:"flex-1 flex items-center justify-center",children:r.jsx("div",{children:"Loading..."})})]})}):r.jsxs(Nt,{children:[r.jsxs("div",{className:"min-h-screen flex w-full",children:[r.jsx(kt,{}),r.jsxs("div",{className:"flex-1 flex flex-col",children:[r.jsxs("header",{className:"h-16 border-b flex items-center px-6 bg-background",children:[r.jsx(Tr,{className:"mr-4"}),r.jsx("h1",{className:"text-2xl font-semibold",children:"Legal Content Management"}),r.jsx("div",{className:"ml-auto",children:r.jsxs("span",{className:"text-sm text-muted-foreground",children:["Welcome back, ",e==null?void 0:e.email]})})]}),r.jsx("main",{className:"flex-1 p-6",children:r.jsxs("div",{className:"max-w-6xl mx-auto",children:[r.jsxs("div",{className:"mb-6",children:[r.jsx("h2",{className:"text-3xl font-bold text-foreground mb-2",children:"Legal Content"}),r.jsx("p",{className:"text-muted-foreground",children:"Manage your Privacy Policy and Terms of Service content. You can type directly or import from markdown."})]}),r.jsxs(yh,{defaultValue:"privacy",className:"space-y-6",children:[r.jsxs(Kc,{className:"grid w-full grid-cols-2",children:[r.jsxs(wn,{value:"privacy",className:"flex items-center gap-2",children:[r.jsx(Wn,{className:"w-4 h-4"}),"Privacy Policy"]}),r.jsxs(wn,{value:"terms",className:"flex items-center gap-2",children:[r.jsx(Ko,{className:"w-4 h-4"}),"Terms of Service"]})]}),r.jsx(jn,{value:"privacy",className:"space-y-6",children:r.jsxs(G,{children:[r.jsx(Ie,{children:r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs(Me,{className:"flex items-center gap-2",children:[r.jsx(Wn,{className:"w-5 h-5"}),"Privacy Policy"]}),r.jsxs(te,{variant:"outline",size:"sm",onClick:()=>x("privacy"),className:"flex items-center gap-2",children:[r.jsx(my,{className:"w-4 h-4"}),"Import Markdown"]})]})}),r.jsxs(Ne,{className:"space-y-4",children:[r.jsxs("div",{className:"space-y-2",children:[r.jsx(oe,{htmlFor:"privacy-content",children:"Content"}),r.jsx("div",{className:"border rounded-md",children:r.jsx(Ip,{value:n,onChange:s,placeholder:"Enter your privacy policy content here...",style:{minHeight:"400px"},modules:w,formats:N})}),r.jsx("p",{className:"text-xs text-muted-foreground",children:'Use the editor toolbar for formatting, or click "Import Markdown" to paste markdown content.'})]}),r.jsxs(te,{onClick:()=>
749g("privacy_policy",n),disabled:c,className:"flex items-center gap-2",children:[r.jsx(Lr,{className:"w-4 h-4"}),c?"Saving...":"Save Privacy Policy"]})]})]})}),r.jsx(jn,{value:"terms",className:"space-y-6",children:r.jsxs(G,{children:[r.jsx(Ie,{children:r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs(Me,{className:"flex items-center gap-2",children:[r.jsx(Ko,{className:"w-5 h-5"}),"Terms of Service"]}),r.jsxs(te,{variant:"outline",size:"sm",onClick:()=>x("terms"),className:"flex items-center gap-2",children:[r.jsx(my,{className:"w-4 h-4"}),"Import Markdown"]})]})}),r.jsxs(Ne,{className:"space-y-4",children:[r.jsxs("div",{className:"space-y-2",children:[r.jsx(oe,{htmlFor:"terms-content",children:"Content"}),r.jsx("div",{className:"border rounded-md",children:r.jsx(Ip,{value:a,onChange:i,placeholder:"Enter your terms of service content here...",style:{minHeight:"400px"},modules:w,formats:N})}),r.jsx("p",{className:"text-xs text-muted-foreground",children:'Use the editor toolbar for formatting, or click "Import Markdown" to paste markdown content.'})]}),r.jsxs(te,{onClick:()=>g("terms_of_service",a),disabled:c,className:"flex items-center gap-2",children:[r.jsx(Lr,{className:"w-4 h-4"}),c?"Saving...":"Save Terms of Service"]})]})]})})]})]})})]})]}),r.jsx(sx,{open:u,onOpenChange:h,children:r.jsxs(Gh,{className:"max-w-2xl max-h-[80vh]",children:[r.jsxs(Yh,{children:[r.jsxs(Vh,{children:["Import Markdown â ",f==="privacy"?"Privacy Policy":"Terms of Service"]}),r.jsxs(Aj,{children:["Paste your markdown content below. It will be converted to formatted HTML and loaded into the editor. This will ",r.jsx("strong",{children:"replace"})," the current content."]})]}),r.jsx(bn,{value:y,onChange:S=>p(S.target.value),placeholder:`# Privacy Policy 750 751## Information We Collect 752 753We collect information you provide directly to us... 754 755- Name and email 756- Payment information 757 758**Important:** We never sell your data.`,className:"min-h-[300px] font-mono text-sm"}),r.jsxs(yA,{className:"flex gap-2",children:[r.jsx(te,{variant:"outline",onClick:()=>h(!1),children:"Cancel"}),r.jsxs(te,{onClick:b,children:[r.jsx(my,{className:"w-4 h-4 mr-2"}),"Import & Replace"]})]})]})})]})},vx=c$,bx=Gw,wx=Vw;function rme(){var v,g,x;const{toast:e}=Lt(),t=cd(),[n,s]=j.useState(!1),[a,i]=j.useState(null),{data:o,isLoading:l}=$s({queryKey:["stripe-settings"],queryFn:async()=>(await et.select("stripe_settings")).data||[]}),{data:c,isLoading:d}=$s({queryKey:["stripe-products"],queryFn:async()=>(await et.select("stripe_products",{order:{column:"created_at",ascending:!1}})).data||[]}),u=aa({mutationFn:async b=>{const w=o==null?void 0:o.find(N=>N.environment===b.environment);return w?await et.update("stripe_settings",w.id,b):await et.insert("stripe_settings",b)},onSuccess:()=>{t.invalidateQueries({queryKey:["stripe-settings"]}),e({title:"Settings saved successfully"})},onError:()=>{e({title:"Failed to save settings",variant:"destructive"})}}),h=aa({mutationFn:async b=>b.id?await et.update("stripe_products",b.id,b):await et.insert("stripe_products",b),onSuccess:()=>{t.invalidateQueries({queryKey:["stripe-products"]}),e({title:"Product saved successfully"})},onError:()=>{e({title:"Failed to save product",variant:"destructive"})}}),f=aa({mutationFn:async b=>await et.delete("stripe_products",b),onSuccess:()=>{t.invalidateQueries({queryKey:["stripe-products"]}),e({title:"Product deleted successfully"})},onError:()=>{e({title:"Failed to delete product",variant:"destructive"})}}),m=o==null?void 0:o.find(b=>b.environment==="test"),y=o==null?void 0:o.find(b=>b.environment==="live"),p=async()=>{s(!0),i(null);const b=o==null?void 0:o.find(w=>w.is_active);if(!b||!b.secret_key){i({success:!1,message:"No active Stripe configuration found. Please save and activate your keys first."}),s(!1);return}try{const w=b.secret_key.startsWith("sk_");i(w?{success:!0,message:`Successfully validated ${b.environment} mode configuration. Key format is correct.`}:{success:!1,message:"Invalid Stripe key format. Keys should start with 'sk_test_' or 'sk_live_'"})}catch{i({success:!1,message:"Failed to validate Stripe configuration."})}s(!1)};return l||d?r.jsx(Nt,{children:r.jsxs("div",{className:"flex min-h-screen w-full",children:[r.jsx(kt,{}),r.jsx("div",{className:"flex-1 flex items-center justify-center",children:r.jsx(wt,{className:"h-8 w-8 animate-spin"})})]})}):r.jsx(Nt,{children:r.jsxs("div",{className:"flex min-h-screen w-full",children:[r.jsx(kt,{}),r.jsx("main",{className:"flex-1 p-8",children:r.jsxs("div",{className:"max-w-6xl mx-auto
758space-y-8",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-3xl font-bold mb-2",children:"Checkout Settings"}),r.jsx("p",{className:"text-muted-foreground",children:"Configure Stripe payment settings and manage products"})]}),r.jsxs(yh,{defaultValue:"api-keys",className:"w-full",children:[r.jsxs(Kc,{className:"grid w-full grid-cols-3",children:[r.jsx(wn,{value:"api-keys",children:"API Keys"}),r.jsx(wn,{value:"products",children:"Products"}),r.jsx(wn,{value:"testing",children:"Testing"})]}),r.jsxs(jn,{value:"api-keys",className:"space-y-6",children:[r.jsxs(G,{children:[r.jsxs(Ie,{children:[r.jsx(Me,{children:"Test Mode API Keys"}),r.jsx(dt,{children:"Use these keys for testing your integration"})]}),r.jsxs(Ne,{className:"space-y-4",children:[r.jsxs("div",{className:"space-y-2",children:[r.jsx(oe,{htmlFor:"test-publishable",children:"Publishable Key"}),r.jsx(je,{id:"test-publishable",placeholder:"pk_test_...",defaultValue:(m==null?void 0:m.publishable_key)||"",onBlur:b=>{u.mutate({environment:"test",publishable_key:b.target.value,secret_key:(m==null?void 0:m.secret_key)||"",webhook_secret:m==null?void 0:m.webhook_secret,is_active:(m==null?void 0:m.is_active)||!1})}})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(oe,{htmlFor:"test-secret",children:"Secret Key"}),r.jsx(je,{id:"test-secret",type:"password",placeholder:"sk_test_...",defaultValue:(m==null?void 0:m.secret_key)||"",onBlur:b=>{u.mutate({environment:"test",publishable_key:(m==null?void 0:m.publishable_key)||"",secret_key:b.target.value,webhook_secret:m==null?void 0:m.webhook_secret,is_active:(m==null?void 0:m.is_active)||!1})}})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(oe,{htmlFor:"test-webhook",children:"Webhook Secret"}),r.jsx(je,{id:"test-webhook",type:"password",placeholder:"whsec_...",defaultValue:(m==null?void 0:m.webhook_secret)||"",onBlur:b=>{u.mutate({environment:"test",publishable_key:(m==null?void 0:m.publishable_key)||"",secret_key:(m==null?void 0:m.secret_key)||"",webhook_secret:b.target.value,is_active:(m==null?void 0:m.is_active)||!1})}}),r.jsx("p",{className:"text-xs text-muted-foreground",children:"Get this from Stripe Dashboard â Developers â Webhooks"})]}),r.jsxs("div",{className:"flex items-center space-x-2",children:[r.jsx(ha,{id:"test-active",checked:(m==null?void 0:m.is_active)||!1,onCheckedChange:b=>{b&&(y!=null&&y.is_active)&&u.mutate({environment:"live",publishable_key:(y==null?void 0:y.publishable_key)||"",secret_key:(y==null?void 0:y.secret_key)||"",webhook_secret:y==null?void 0:y.webhook_secret,is_active:!1}),u.mutate({environment:"test",publishable_key:(m==null?void 0:m.publishable_key)||"",secret_key:(m==null?void 0:m.secret_key)||"",webhook_secret:m==null?void 0:m.webhook_secret,is_active:b})}}),r.jsx(oe,{htmlFor:"test-active",children:"Use Test Mode"})]})]})]}),r.jsxs(G,{children:[r.jsxs(Ie,{children:[r.jsx(Me,{children:"Live Mode API Keys"}),r.jsx(dt,{children:"Use these keys for production transactions"})]}),r.jsxs(Ne,{className:"space-y-4",children:[r.jsxs("div",{className:"space-y-2",children:[r.jsx(oe,{htmlFor:"live-publishable",children:"Publishable Key"}),r.jsx(je,{id:"live-publishable",placeholder:"pk_live_...",defaultValue:(y==null?void 0:y.publishable_key)||"",onBlur:b=>{u.mutate({environment:"live",publishable_key:b.target.value,secret_key:(y==null?void 0:y.secret_key)||"",webhook_secret:y==null?void 0:y.webhook_secret,is_active:(y==null?void 0:y.is_active)||!1})}})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(oe,{htmlFor:"live-secret",children:"Secret Key"}),r.jsx(je,{id:"live-secret",type:"password",placeholder:"sk_live_...",defaultValue:(y==null?void 0:y.secret_key)||"",onBlur:b=>{u.mutate({environment:"live",publishable_key:(y==null?void 0:y.publishable_key)||"",secret_key:b.target.value,webhook_secret:y==null?void 0:y.webhook_secret,is_active:(y==null?void 0:y.is_active)||!1})}})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(oe,{htmlFor:"live-webhook",children:"Webhook Secret"}),r.jsx(je,{id:"live-webhook",type:"password",placeholder:"whsec_...",defaultValue:(y==null?void 0:y.webhook_secret)||"",onBlur:b=>{u.mutate({environment:"live",publishable_key:(y==null?void 0:y.publishable_key)||"",secret_key:(y==null?void 0:y.secret_key)||"",webhook_secret:b.target.value,is_active:(y==null?void 0:y.is_active)||!1})}}),r.jsx("p",{className:"text-xs text-muted-foreground",children:"Get this from Stripe Dashboard â Developers â Webhooks"})]}),r.jsxs("div",{className:"flex items-center space-x-2",children:[r.jsx(ha,{id:"live-active",checked:(y==null?void 0:y.is_active)||!1,onCheckedChange:b=>{b&&(m!=null&&m.is_active)&&u.mutate({environment:"test",publishable_key:(m==null?void 0:m.publishable_key)||"",secret_key:(m==null?void 0:m.secret_key)||"",webhook_secret:m==null?void 0:m.webhook_secret,is_active:!1}),u.mutate({environment:"live",publishable_key:(y==null?void 0:y.publishable_key)||"",secret_key:(y==null?void 0:y.secret_key)||"",webhook_secret:y==null?void 0:y.webhook_secret,is_active:b})}}),r.jsx(oe,{htmlFor:"live-active",children:"Use Live Mode"})]})]})]})]}),r.jsx(jn,{value:"products",className:"space-y-6",children:r.jsxs(G,{children:[r.jsx(Ie,{children:r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{children:[r.jsx(Me,{children:"Products"}),r.jsx(dt,{children:"Manage products with flexible payment options"})]}),r.jsxs(te,{onClick:()=>{h.mutate({name:"New Product",description:"",one_pay_price:0,is_active:!0})},children:[r.jsx(vw,{className:"h-4 w-4 mr-2"}),"Add Product"]})]})}),r.jsx(Ne,{className:"space-y-4",children:c&&c.length>0?c.map(b=>r.jsx(vx,{children:r.jsx(G,{children:r.jsxs(Ne,{className:"pt-6",children:[r.jsxs("div",{className:"flex items-center justify-between mb-4",children:[r.jsxs(bx,{className:"flex items-center gap-2 hover:text-primary transition-colors flex-1",children:[r.jsx(Ka,{className:"h-4 w-4 transition-transform [data-state=open]:rotate-180"}),r.jsx("span",{className:"font-semibold",children:b.name}),r.jsx("span",{className:`text-xs px-2 py-1 rounded ${b.is_active?"bg-primary/10 text-primary":"bg-muted text-muted-foreground"}`,children:b.is_active?"Active":"Inactive"})]}),r.jsx(te,{variant:"ghost",size:"icon",onClick:()=>f.mutate(b.id),children:r.jsx(Oh,{className:"h-4 w-4 text-destructive"})})]}),r.jsxs(wx,{className:"space-y-4",children:[r.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[r.jsxs("div",{className:"space-y-2",children:[r.jsx(oe,{children:"Product Name"}),r.jsx(je,{defaultValue:b.name,onBlur:w=>{h.mutate({...b,name:w.target.value})}})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(oe,{children:"Product Identifier"}),r.jsx(je,{placeholder:"e.g., freedom-challenge",defaultValue:b.product_identifier||"",onBlur:w=>{h.mutate({...b,product_identifier:w.target.value||void 0})}}),r.jsx("p",{className:"text-xs text-muted-foreground",children:"Unique identifier used in code to reference this product"})]})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(oe,{children:"Description"}),r.jsx(bn,{defaultValue:b.description,onBlur:w=>{h.mutate({...b,description:w.target.value})}})]}),r.jsxs("div",{className:"space-y-4 pt-4 border-t",children:[r.jsx("h4",{className:"font-semibold",children:"Subscription Pricing (Recurring)"}),r.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[r.jsxs("div",{className:"space-y-2",children:[r.jsx(oe,{children:"Monthly Price ($)"}),r.jsx(je,{type:"number",step:"0.01",placeholder:"600.00",defaultValue:b.monthly_price||"",onBlur:w=>{h.mutate({...b,monthly_price:w.target.value?parseFloat(w.target.value):void 0})}}),r.jsx("p",{className:"text-xs text-muted-foreground",children:"Recurring monthly subscription price"})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(oe,{children:"Annual Price ($)"}),r.jsx(je,{type:"number",step:"0.01",placeholder:"6600.00",defaultValue:b.annual_price||"",onBlur:w=>{h.mutate({...b,annual_price:w.target.value?parseFloat(w.target.value):void 0})}}),r.jsx("p",{className:"text-xs text-muted-foreground",children:"Recurring annual subscription price"})]})]})]}),r.jsxs("div",{className:"space-y-4 pt-4 border-t",children:[r.jsx("h4",{className:"font-semibold",children:"One-Time Payment Options"}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(oe,{children:"One-Pay Price"}),r.jsx(je,{type:"number",step:"0.01",defaultValue:b.one_pay_price,onBlur:w=>{h.mutate({...b,one_pay_price:parseFloat(w.target.value)})}})]}),r.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[r.jsxs("div",{className:"space-y-2",children:[r.jsx(oe,{children:"Two-Pay Price (optional)"}),r.jsx(je,{type:"number",step:"0.01",placeholder:"Leave empty to disable",defaultValue:b.two_pay_price||"",onBlur:w=>{h.mutate({...b,two_pay_price:w.target.value?parseFloat(w.target.value):void 0})}})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(oe,{children:"Three-Pay Price (optional)"}),r.jsx(je,{type:"number",step:"0.01",placeholder:"Leave empty to disable",defaultValue:b.three_pay_price||"",onBlur:w=>{h.mutate({...b,three_pay_price:w.target.value?parseFloat(w.target.value):void 0})}})]})]})]}),r.jsxs("div",{className:"flex items-center space-x-2",children:[r.jsx(ha,{checked:b.is_active,onCheckedChange:w=>{h.mutate({...b,is_active:w})}}),r.jsx(oe,{children:"Active"})]})]})]})})},b.id)):r.jsx("p",{className:"text-center text-muted-foreground py-8",children:'No products yet. Click "Add Product" to create one.'})})]})}),r.jsx(jn,{value:"testing",className:"space-y-6",children:r.jsxs(G,{children:[r.jsxs(Ie,{children:[r.jsx(Me,{children:"Test Stripe Connection"}
vendor: 14,823 bytes, line 758
758),r.jsx(dt,{children:"Verify your Stripe API keys are configured correctly"})]}),r.jsxs(Ne,{className:"space-y-4",children:[r.jsxs("div",{className:"flex items-center gap-4",children:[r.jsx(te,{onClick:p,disabled:n,children:n?r.jsxs(r.Fragment,{children:[r.jsx(wt,{className:"h-4 w-4 mr-2 animate-spin"}),"Testing..."]}):"Test Connection"}),a&&r.jsxs("div",{className:`flex items-center gap-2 ${a.success?"text-green-600":"text-destructive"}`,children:[a.success?r.jsx(_e,{className:"h-5 w-5"}):r.jsx(Ft,{className:"h-5 w-5"}),r.jsx("span",{children:a.message})]})]}),r.jsxs("div",{className:"rounded-lg bg-muted p-4 space-y-2",children:[r.jsx("h4",{className:"font-medium",children:"Active Configuration:"}),r.jsxs("div",{className:"text-sm space-y-1",children:[r.jsxs("p",{children:[r.jsx("span",{className:"font-medium",children:"Mode:"})," ",((v=o==null?void 0:o.find(b=>b.is_active))==null?void 0:v.environment)||"None"]}),r.jsxs("p",{children:[r.jsx("span",{className:"font-medium",children:"Publishable Key:"})," ",(g=o==null?void 0:o.find(b=>b.is_active))!=null&&g.publishable_key?"â Set":"â Not set"]}),r.jsxs("p",{children:[r.jsx("span",{className:"font-medium",children:"Secret Key:"})," ",(x=o==null?void 0:o.find(b=>b.is_active))!=null&&x.secret_key?"â Set":"â Not set"]})]})]})]})]})})]})]})})]})})}const nme=xl("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),so=j.forwardRef(({className:e,variant:t,...n},s)=>r.jsx("div",{ref:s,role:"alert",className:le(nme({variant:t}),e),...n}));so.displayName="Alert";const sme=j.forwardRef(({className:e,...t},n)=>r.jsx("h5",{ref:n,className:le("mb-1 font-medium leading-none tracking-tight",e),...t}));sme.displayName="AlertTitle";const ao=j.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,className:le("text-sm [&_p]:leading-relaxed",e),...t}));ao.displayName="AlertDescription";var Q3=1,ame=.9,ime=.8,ome=.17,gv=.1,xv=.999,lme=.9999,cme=.99,dme=/[\\\/_+.#"@\[\(\{&]/,ume=/[\\\/_+.#"@\[\(\{&]/g,hme=/[\s-]/,z8=/[\s-]/g;function d1(e,t,n,s,a,i,o){if(i===t.length)return a===e.length?Q3:cme;var l=`${a},${i}`;if(o[l]!==void 0)return o[l];for(var c=s.charAt(i),d=n.indexOf(c,a),u=0,h,f,m,y;d>=0;)h=d1(e,t,n,s,d+1,i+1,o),h>u&&(d===a?h*=Q3:dme.test(e.charAt(d-1))?(h*=ime,m=e.slice(a,d-1).match(ume),m&&a>0&&(h*=Math.pow(xv,m.length))):hme.test(e.charAt(d-1))?(h*=ame,y=e.slice(a,d-1).match(z8),y&&a>0&&(h*=Math.pow(xv,y.length))):(h*=ome,a>0&&(h*=Math.pow(xv,d-a))),e.charAt(d)!==t.charAt(i)&&(h*=lme)),(h<gv&&n.charAt(d-1)===s.charAt(i+1)||s.charAt(i+1)===s.charAt(i)&&n.charAt(d-1)!==s.charAt(i))&&(f=d1(e,t,n,s,d+1,i+2,o),f*gv>h&&(h=f*gv)),h>u&&(u=h),d=n.indexOf(c,d+1);return o[l]=u,u}function Z3(e){return e.toLowerCase().replace(z8," ")}function mme(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,d1(e,t,Z3(e),Z3(t),0,0,{})}var Zd='[cmdk-group=""]',yv='[cmdk-group-items=""]',fme='[cmdk-group-heading=""]',G8='[cmdk-item=""]',X3=`${G8}:not([aria-disabled="true"])`,u1="cmdk-item-select",Hl="data-value",pme=(e,t,n)=>mme(e,t,n),Y8=j.createContext(void 0),tm=()=>j.useContext(Y8),V8=j.createContext(void 0),Xj=()=>j.useContext(V8),K8=j.createContext(void 0),Q8=j.forwardRef((e,t)=>{let n=zl(()=>{var I,F;return{search:"",value:(F=(I=e.value)!=null?I:e.defaultValue)!=null?F:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),s=zl(()=>new Set),a=zl(()=>new Map),i=zl(()=>new Map),o=zl(()=>new Set),l=Z8(e),{label:c,children:d,value:u,onValueChange:h,filter:f,shouldFilter:m,loop:y,disablePointerSelection:p=!1,vimBindings:v=!0,...g}=e,x=ar(),b=ar(),w=ar(),N=j.useRef(null),S=Sme();hl(()=>{if(u!==void 0){let I=u.trim();n.current.value=I,_.emit()}},[u]),hl(()=>{S(6,O)},[]);let _=j.useMemo(()=>({subscribe:I=>(o.current.add(I),()=>o.current.delete(I)),snapshot:()=>n.current,setState:(I,F,Y)=>{var H,L,M,Q;if(!Object.is(n.current[I],F)){if(n.current[I]=F,I==="search")T(),k(),S(1,E);else if(I==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let X=document.getElementById(w);X?X.focus():(H=document.getElementById(x))==null||H.focus()}if(S(7,()=>{var X;n.current.selectedItemId=(X=A())==null?void 0:X.id,_.emit()}),Y||S(5,O),((L=l.current)==null?void 0:L.value)!==void 0){let X=F??"";(Q=(M=l.current).onValueChange)==null||Q.call(M,X);return}}_.emit()}},emit:()=>{o.current.forEach(I=>I())}}),[]),C=j.useMemo(()=>({value:(I,F,Y)=>{var H;F!==((H=i.current.get(I))==null?void 0:H.value)&&(i.current.set(I,{value:F,keywords:Y}),n.current.filtered.items.set(I,$(F,Y)),S(2,()=>{k(),_.emit()}))},item:(I,F)=>(s.current.add(I),F&&(a.current.has(F)?a.current.get(F).add(I):a.current.set(F,new Set([I]))),S(3,()=>{T(),k(),n.current.value||E(),_.emit()}),()=>{i.current.delete(I),s.current.delete(I),n.current.filtered.items.delete(I);let Y=A();S(4,()=>{T(),(Y==null?void 0:Y.getAttribute("id"))===I&&E(),_.emit()})}),group:I=>(a.current.has(I)||a.current.set(I,new Set),()=>{i.current.delete(I),a.current.delete(I)}),filter:()=>l.current.shouldFilter,label:c||e["aria-label"],getDisablePointerSelection:()=>l.current.disablePointerSelection,listId:x,inputId:w,labelId:b,listInnerRef:N}),[]);function $(I,F){var Y,H;let L=(H=(Y=l.current)==null?void 0:Y.filter)!=null?H:pme;return I?L(I,n.current.search,F):0}function k(){if(!n.current.search||l.current.shouldFilter===!1)return;let I=n.current.filtered.items,F=[];n.current.filtered.groups.forEach(H=>{let L=a.current.get(H),M=0;L.forEach(Q=>{let X=I.get(Q);M=Math.max(X,M)}),F.push([H,M])});let Y=N.current;U().sort((H,L)=>{var M,Q;let X=H.getAttribute("id"),re=L.getAttribute("id");return((M=I.get(re))!=null?M:0)-((Q=I.get(X))!=null?Q:0)}).forEach(H=>{let L=H.closest(yv);L?L.appendChild(H.parentElement===L?H:H.closest(`${yv} > *`)):Y.appendChild(H.parentElement===Y?H:H.closest(`${yv} > *`))}),F.sort((H,L)=>L[1]-H[1]).forEach(H=>{var L;let M=(L=N.current)==null?void 0:L.querySelector(`${Zd}[${Hl}="${encodeURIComponent(H[0])}"]`);M==null||M.parentElement.appendChild(M)})}function E(){let I=U().find(Y=>Y.getAttribute("aria-disabled")!=="true"),F=I==null?void 0:I.getAttribute(Hl);_.setState("value",F||void 0)}function T(){var I,F,Y,H;if(!n.current.search||l.current.shouldFilter===!1){n.current.filtered.count=s.current.size;return}n.current.filtered.groups=new Set;let L=0;for(let M of s.current){let Q=(F=(I=i.current.get(M))==null?void 0:I.value)!=null?F:"",X=(H=(Y=i.current.get(M))==null?void 0:Y.keywords)!=null?H:[],re=$(Q,X);n.current.filtered.items.set(M,re),re>0&&L++}for(let[M,Q]of a.current)for(let X of Q)if(n.current.filtered.items.get(X)>0){n.current.filtered.groups.add(M);break}n.current.filtered.count=L}function O(){var I,F,Y;let H=A();H&&(((I=H.parentElement)==null?void 0:I.firstChild)===H&&((Y=(F=H.closest(Zd))==null?void 0:F.querySelector(fme))==null||Y.scrollIntoView({block:"nearest"})),H.scrollIntoView({block:"nearest"}))}function A(){var I;return(I=N.current)==null?void 0:I.querySelector(`${G8}[aria-selected="true"]`)}function U(){var I;return Array.from(((I=N.current)==null?void 0:I.querySelectorAll(X3))||[])}function z(I){let F=U()[I];F&&_.setState("value",F.getAttribute(Hl))}function W(I){var F;let Y=A(),H=U(),L=H.findIndex(Q=>Q===Y),M=H[L+I];(F=l.current)!=null&&F.loop&&(M=L+I<0?H[H.length-1]:L+I===H.length?H[0]:H[L+I]),M&&_.setState("value",M.getAttribute(Hl))}function B(I){let F=A(),Y=F==null?void 0:F.closest(Zd),H;for(;Y&&!H;)Y=I>0?kme(Y,Zd):_me(Y,Zd),H=Y==null?void 0:Y.querySelector(X3);H?_.setState("value",H.getAttribute(Hl)):W(I)}let R=()=>z(U().length-1),D=I=>{I.preventDefault(),I.metaKey?R():I.altKey?B(1):W(1)},P=I=>{I.preventDefault(),I.metaKey?z(0):I.altKey?B(-1):W(-1)};return j.createElement(we.div,{ref:t,tabIndex:-1,...g,"cmdk-root":"",onKeyDown:I=>{var F;(F=g.onKeyDown)==null||F.call(g,I);let Y=I.nativeEvent.isComposing||I.keyCode===229;if(!(I.defaultPrevented||Y))switch(I.key){case"n":case"j":{v&&I.ctrlKey&&D(I);break}case"ArrowDown":{D(I);break}case"p":case"k":{v&&I.ctrlKey&&P(I);break}case"ArrowUp":{P(I);break}case"Home":{I.preventDefault(),z(0);break}case"End":{I.preventDefault(),R();break}case"Enter":{I.preventDefault();let H=A();if(H){let L=new Event(u1);H.dispatchEvent(L)}}}}},j.createElement("label",{"cmdk-label":"",htmlFor:C.inputId,id:C.labelId,style:Eme},c),jx(e,I=>j.createElement(V8.Provider,{value:_},j.createElement(Y8.Provider,{value:C},I))))}),gme=j.forwardRef((e,t)=>{var n,s;let a=ar(),i=j.useRef(null),o=j.useContext(K8),l=tm(),c=Z8(e),d=(s=(n=c.current)==null?void 0:n.forceMount)!=null?s:o==null?void 0:o.forceMount;hl(()=>{if(!d)return l.item(a,o==null?void 0:o.id)},[d]);let u=X8(a,i,[e.value,e.children,i],e.keywords),h=Xj(),f=io(S=>S.value&&S.value===u.current),m=io(S=>d||l.filter()===!1?!0:S.search?S.filtered.items.get(a)>0:!0);j.useEffect(()=>{let S=i.current;if(!(!S||e.disabled))return S.addEventListener(u1,y),()=>S.removeEventListener(u1,y)},[m,e.onSelect,e.disabled]);function y(){var S,_;p(),(_=(S=c.current).onSelect)==null||_.call(S,u.current)}function p(){h.setState("value",u.current,!0)}if(!m)return null;let{disabled:v,value:g,onSelect:x,forceMount:b,keywords:w,...N}=e;return j.createElement(we.div,{ref:qa(i,t),...N,id:a,"cmdk-item":"",role:"option","aria-disabled":!!v,"aria-selected":!!f,"data-disabled":!!v,"data-selected":!!f,onPointerMove:v||l.getDisablePointerSelection()?void 0:p,onClick:v?void 0:y},e.children)}),xme=j.forwardRef((e,t)=>{let{heading:n,children:s,forceMount:a,...i}=e,o=ar(),l=j.useRef(null),c=j.useRef(null),d=ar(),u=tm(),h=io(m=>a||u.filter()===!1?!0:m.search?m.filtered.groups.has(o):!0);hl(()=>u.group(o),[]),X8(o,l,[e.value,e.heading,c]);let f=j.useMemo(()=>({id:o,forceMount:a}),[a]);return j.createElement(we.div,{ref:qa(l,t),...i,"cmdk-group":"",role:"presentation",hidden:h?void 0:!0},n&&j.createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:d},n),jx(e,m=>j.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?d:void 0},j.createElement(K8.Provider,{value:f},m))))}),yme=j.forwardRef((e,t)=>{let{alwaysRender:n,...s}=e,a=j.useRef(null),i=io(o=>!o.search);return!n&&!i?null:j.createElement(we.div,{ref:qa(a,t),...s,"cmdk-separator":"",role:"separator"})}),vme=j.forwardRef((e,t)=>{let{onValueChange:n,...s}=e,a=e.value!=null,i=Xj(),o=io(d=>d.search),l=io(d=>d.selectedItemId),c=tm();return j.useEffect(()=>{e.value!=null&&i.setState("search",e.value)},[e.value]),j.createElement(we.input,{ref:t,...s,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":l,id:c.inputId,type:"text",value:a?e.value:o,onChange:d=>{a||i.setState("search",d.target.value),n==null||n(d.target.value)}})}),bme=j.forwardRef((e,t)=>{let{children:n,label:s="Suggestions",...a}=e,i=j.useRef(null),o=j.useRef(null),l=io(d=>d.selectedItemId),c=tm();return j.useEffect(()=>{if(o.current&&i.current){let d=o.current,u=i.current,h,f=new ResizeObserver(()=>{h=requestAnimationFrame(()=>{let m=d.offsetHeight;u.style.setProperty("--cmdk-list-height",m.toFixed(1)+"px")})});return f.observe(d),()=>{cancelAnimationFrame(h),f.unobserve(d)}}},[]),j.createElement(we.div,{ref:qa(i,t),...a,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":l,"aria-label":s,id:c.listId},jx(e,d=>j.createElement("div",{ref:qa(o,c.listInnerRef),"cmdk-list-sizer":""},d)))}),wme=j.forwardRef((e,t)=>{let{open:n,onOpenChange:s,overlayClassName:a,contentClassName:i,container:o,...l}=e;return j.createElement(Oj,{open:n,onOpenChange:s},j.createElement(Pj,{container:o},j.createElement(qh,{"cmdk-overlay":"",className:a}),j.createElement(Hh,{"aria-label":e.label,"cmdk-dialog":"",className:i},j.createElement(Q8,{ref:t,...l}))))}),jme=j.forwardRef((e,t)=>io(n=>n.filtered.count===0)?j.createElement(we.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Nme=j.forwardRef((e,t)=>{let{progress:n,children:s,label:a="Loading...",...i}=e;return j.createElement(we.div,{ref:t,...i,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a},jx(e,o=>j.createElement("div",{"aria-hidden":!0},o)))}),Tn=Object.assign(Q8,{List:bme,Item:gme,Input:vme,Group:xme,Separator:yme,Dialog:wme,Empty:jme,Loading:Nme});function kme(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function _me(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function Z8(e){let t=j.useRef(e);return hl(()=>{t.current=e}),t}var hl=typeof window>"u"?j.useEffect:j.useLayoutEffect;function zl(e){let t=j.useRef();return t.current===void 0&&(t.current=e()),t}function io(e){let t=Xj(),n=()=>e(t.snapshot());return j.useSyncExternalStore(t.subscribe,n,n)}function X8(e,t,n,s=[]){let a=j.useRef(),i=tm();return hl(()=>{var o;let l=(()=>{var d;for(let u of n){if(typeof u=="string")return u.trim();if(typeof u=="object"&&"current"in u)return u.current?(d=u.current.textContent)==null?void 0:d.trim():a.current}})(),c=s.map(d=>d.trim());i.value(e,l,c),(o=t.current)==null||o.setAttribute(Hl,l),a.current=l}),a}var Sme=()=>{let[e,t]=j.useState(),n=zl(()=>new Map);return hl(()=>{n.current.forEach(s=>s()),n.current=new Map},[e]),(s,a)=>{n.current.set(s,a),t({})}};function Cme(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function jx({asChild:e,children:t},n){return e&&j.isValidElement(t)?j.cloneElement(Cme(t),{ref:t.ref},n(t.props.children)):n(t)}var Eme={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const Nx=j.forwardRef(({className:e,...t},n)=>r.jsx(Tn,{ref:n,className:le("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));Nx.displayName=Tn.displayName;const kx=j.forwardRef(({className:e,...t},n)=>r.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[r.jsx(ug,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),r.jsx(Tn.Input,{ref:n,className:le("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));kx.displayName=Tn.Input.displayName;const _x=j.forwardRef(({className:e,...t},n)=>r.jsx(Tn.List,{ref:n,className:le("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));_x.displayName=Tn.List.displayName;const Sx=j.forwardRef((e,t)=>
758r.jsx(Tn.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));Sx.displayName=Tn.Empty.displayName;const Cx=j.forwardRef(({className:e,...t},n)=>r.jsx(Tn.Group,{ref:n,className:le("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));Cx.displayName=Tn.Group.displayName;const Tme=j.forwardRef(({className:e,...t},n)=>r.jsx(Tn.Separator,{ref:n,className:le("-mx-1 h-px bg-border",e),...t}));Tme.displayName=Tn.Separator.displayName;const Jc=j.forwardRef(({className:e,...t},n)=>r.jsx(Tn.Item,{ref:n,className:le("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50",e),...t}));Jc.displayName=Tn.Item.displayName;const vv=e=>(e||"").toLowerCase().replace(/[^a-z0-9]+/g,""),$me=({form:e})=>{var A,U,z;const[t,n]=j.useState(!1),[s,a]=j.useState(!1),[i,o]=j.useState(null),[l,c]=j.useState(!1),[d,u]=j.useState(!1),[h,f]=j.useState(e.use_custom_fields),[m,y]=j.useState(e.field_mappings||{}),[p,v]=j.useState(e.gohighlevel_tag||""),[g,x]=j.useState([]),[b,w]=j.useState(!1),[N,S]=j.useState(null),{toast:_}=Lt(),C=cd(),$=["email","first_name","firstName","last_name","lastName","full_name","name","phone","company","business_name","businessName","website","address","city","state","postal_code","country"],k=j.useMemo(()=>(e.form_fields||[]).filter(W=>!$.includes(W.name)),[e.form_fields]);j.useEffect(()=>{if(!t||!e.gohighlevel_enabled||g.length>0)return;let W=!1;return(async()=>{w(!0);try{const{data:B,error:R}=await ve.functions.invoke("gohighlevel-fetch-fields");if(R)throw R;!W&&(B!=null&&B.customFields)&&x(B.customFields)}catch(B){console.error("Failed to fetch GHL custom fields:",B)}finally{W||w(!1)}})(),()=>{W=!0}},[t,e.gohighlevel_enabled]);const E=(W=!1)=>{if(g.length===0){W||_({variant:"destructive",title:"No GHL fields loaded",description:"Wait for custom fields to load and try again."});return}const B={...m};let R=0;k.forEach(D=>{if(B[D.name])return;const P=[D.name,D.label].map(vv).filter(Boolean),I=g.find(F=>{var H;const Y=[F.name,F.fieldKey,(H=F.fieldKey)==null?void 0:H.split(".").pop()].map(L=>vv(L||""));return P.some(L=>Y.includes(L))})||g.find(F=>{const Y=[F.name,F.fieldKey].map(H=>vv(H||""));return P.some(H=>H&&Y.some(L=>L&&(L.includes(H)||H.includes(L))))});I&&(B[D.name]=I.id,R++)}),y(B),W||_({title:R>0?"Auto-matched fields":"No new matches",description:R>0?`Matched ${R} field${R===1?"":"s"}. Review and save.`:"Couldn't find logical matches for remaining fields."})};j.useEffect(()=>{g.length>0&&Object.keys(m).length===0&&k.length>0&&E(!0)},[g]);const T=async()=>{u(!0);try{const{error:W}=await et.update("form_configurations",e.id,{use_custom_fields:h,field_mappings:m,gohighlevel_tag:p,updated_at:new Date().toISOString()});if(W)throw W;await C.invalidateQueries({queryKey:["form-configurations"]}),_({title:"Configuration Saved",description:"Form settings have been updated successfully."})}catch(W){_({variant:"destructive",title:"Save Failed",description:W.message})}finally{u(!1)}},O=async()=>{c(!0);try{const W={};e.form_fields.forEach(D=>{D.type==="email"?W[D.name]="[email protected]":D.type==="tel"?W[D.name]="+1234567890":D.type==="array"?W[D.name]=["Option 1","Option 2"]:W[D.name]=`Test ${D.label}`});const{data:B,error:R}=await ve.functions.invoke("test-crm-sync",{body:{form_identifier:e.form_identifier,test_data:W}});if(R)throw R;o(B.results),a(!0)}catch(W){_({variant:"destructive",title:"Test Failed",description:W.message})}finally{c(!1)}};return r.jsxs(r.Fragment,{children:[r.jsx(G,{children:r.jsxs(vx,{open:t,onOpenChange:n,children:[r.jsx(Ie,{children:r.jsxs("div",{className:"flex items-start justify-between",children:[r.jsxs("div",{className:"flex-1",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx(Me,{children:e.form_name}),r.jsxs("div",{className:"flex gap-2",children:[e.google_sheets_enabled&&r.jsxs(it,{variant:"outline",className:"bg-green-50 text-green-700 border-green-200",children:[r.jsx(bt,{className:"h-3 w-3 mr-1"}),"Google Sheets"]}),e.gohighlevel_enabled&&r.jsxs(it,{variant:"outline",className:"bg-blue-50 text-blue-700 border-blue-200",children:[r.jsx(bt,{className:"h-3 w-3 mr-1"}),"GoHighLevel"]}),!e.google_sheets_enabled&&!e.gohighlevel_enabled&&r.jsxs(it,{variant:"outline",className:"bg-gray-50 text-gray-600",children:[r.jsx(_r,{className:"h-3 w-3 mr-1"}),"Not Connected"]})]})]}),r.jsxs(dt,{className:"mt-1",children:[e.form_description," ⢠",e.form_route]})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsxs(te,{variant:"outline",size:"sm",onClick:O,disabled:l||!e.google_sheets_enabled&&!e.gohighlevel_enabled,children:[r.jsx(z7,{className:"h-4 w-4 mr-1"}),"Test Sync"]}),r.jsx(bx,{asChild:!0,children:r.jsx(te,{variant:"ghost",size:"sm",children:t?r.jsx(iE,{className:"h-4 w-4"}):r.jsx(Ka,{className:"h-4 w-4"})})})]})]})}),r.jsx(wx,{children:r.jsx(Ne,{className:"pt-0",children:r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{children:[r.jsxs("h4",{className:"text-sm font-semibold mb-2",children:["Form Fields (",e.form_fields.length,")"]}),r.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-2",children:e.form_fields.map((W,B)=>r.jsxs("div",{className:"text-xs bg-muted p-2 rounded",children:[r.jsx("span",{className:"font-medium",children:W.label}),r.jsxs("span",{className:"text-muted-foreground ml-1",children:["(",W.type,")"]})]},B))})]}),e.google_sheets_enabled&&r.jsxs("div",{className:"bg-green-50 p-3 rounded-lg border border-green-200",children:[r.jsx("h4",{className:"text-sm font-semibold text-green-900 mb-1",children:"Google Sheets Configuration"}),r.jsxs("p",{className:"text-xs text-green-700",children:["Sheet: ",e.google_sheet_name||e.google_sheet_id||"Not configured"]})]}),e.gohighlevel_enabled&&r.jsx("div",{className:"space-y-4",children:r.jsxs("div",{className:"bg-blue-50 p-4 rounded-lg border border-blue-200",children:[r.jsx("h4",{className:"text-sm font-semibold text-blue-900 mb-3",children:"GoHighLevel Configuration"}),r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{children:[r.jsx(oe,{htmlFor:"ghl-tag",className:"text-xs",children:"Tags to Apply (optional)"}),r.jsx(je,{id:"ghl-tag",value:p,onChange:W=>v(W.target.value),placeholder:"e.g., form-submission, revenue-level, hot-lead",className:"mt-1 text-xs"}),r.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"Separate multiple tags with commas"})]}),r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{className:"space-y-0.5",children:[r.jsx(oe,{htmlFor:"use-custom-fields",className:"text-xs font-semibold",children:"Use Custom Fields"}),r.jsx("p",{className:"text-xs text-muted-foreground",children:"When off, unmapped fields go to contact notes"})]}),r.jsx(ha,{id:"use-custom-fields",checked:h,onCheckedChange:f})]}),r.jsxs(so,{children:[r.jsx(R2,{className:"h-4 w-4"}),r.jsxs(ao,{className:"text-xs",children:[r.jsx("strong",{children:"Auto-mapped fields:"})," email, first_name, last_name, full_name, phone, business_name, company, website, address, city, state, postal_code, country"]})]}),h&&r.jsx("div",{className:"space-y-3",children:r.jsxs("div",{className:"border-t pt-3",children:[r.jsxs("div",{className:"flex items-center justify-between mb-2",children:[r.jsx(oe,{className:"text-xs font-semibold",children:"Custom Field Mappings"}),r.jsxs(te,{type:"button",variant:"outline",size:"sm",onClick:()=>E(!1),disabled:b||g.length===0,className:"h-7 text-xs",children:[b?r.jsx(wt,{className:"h-3 w-3 mr-1 animate-spin"}):r.jsx(pE,{className:"h-3 w-3 mr-1"}),"Auto-match"]})]}),r.jsx("p",{className:"text-xs text-muted-foreground mb-3",children:b?"Loading GoHighLevel custom fieldsâ¦":`Map non-standard form fields to GoHighLevel custom fields (${g.length} available).`}),k.map(W=>{const B=m[W.name]||"",R=g.find(P=>P.id===B),D=W.name;return r.jsxs("div",{className:"grid grid-cols-2 gap-2 mb-2 items-center",children:[r.jsxs("div",{className:"text-xs font-medium",children:[W.label,r.jsxs("span",{className:"text-muted-foreground ml-1",children:["(",W.name,")"]})]}),r.jsxs(px,{open:N===D,onOpenChange:P=>S(P?D:null),children:[r.jsx(gx,{asChild:!0,children:r.jsxs(te,{variant:"outline",role:"combobox",size:"sm",className:"w-full justify-between text-xs font-normal h-8",disabled:b&&g.length===0,children:[r.jsx("span",{className:"truncate",children:R?R.name:B||(g.length===0?b?"Loadingâ¦":"Enter ID manually":"Select GHL fieldâ¦")}),r.jsx(gw,{className:"ml-2 h-3 w-3 shrink-0 opacity-50"})]})}),r.jsx(Qh,{className:"w-[320px] p-0",align:"start",children:r.jsxs(Nx,{children:[r.jsx(kx,{placeholder:"Search GHL fieldsâ¦",className:"text-xs"}),r.jsxs(_x,{children:[r.jsx(Sx,{children:"No matching field."}),r.jsxs(Cx,{children:[r.jsxs(Jc,{value:"__clear__",onSelect:()=>{const P={...m};delete P[W.name],y(P),S(null)},className:"text-xs text-muted-foreground",children:[r.jsx(_e,{className:le("mr-2 h-3 w-3",B?"opacity-0":"opacity-100")}),"â Not mapped â"]}),g.map(P=>r.jsxs(Jc,{value:`${P.name} ${P.fieldKey||""} ${P.id}`,onSelect:()=>{y({...m,[W.name]:P.id}),S(null)},className:"text-xs",children:[r.jsx(_e,{className:le("mr-2 h-3 w-3",B===P.id?"opacity-100":"opacity-0")}),r.jsxs("div",{className:"flex flex-col",children:[r.jsx("span",{children:P.name}),P.fieldKey&&r.jsx("span",{className:"text-[10px] text-muted-foreground",children:P.fieldKey})]})]},P.id))]})]})]})})]})]},W.name)}
758),k.length===0&&r.jsx("p",{className:"text-xs text-muted-foreground italic",children:"No non-standard fields on this form â nothing to map."})]})}),!h&&r.jsxs(so,{children:[r.jsx(R2,{className:"h-4 w-4"}),r.jsx(ao,{className:"text-xs",children:"All non-standard fields will be added as notes on the contact"})]}),r.jsxs(te,{onClick:T,disabled:d,size:"sm",className:"w-full",children:[r.jsx(Lr,{className:"h-3 w-3 mr-1"}),d?"Saving...":"Save Configuration"]})]})]})})]})})})]})}),r.jsx(sx,{open:s,onOpenChange:a,children:r.jsxs(Gh,{className:"max-w-2xl",children:[r.jsxs(Yh,{children:[r.jsx(Vh,{children:"Test Sync Results"}),r.jsxs(Aj,{children:["Review the test sync results for ",e.form_name]})]}),r.jsxs("div",{className:"space-y-4",children:[((A=i==null?void 0:i.google_sheets)==null?void 0:A.attempted)&&r.jsxs("div",{className:`p-4 rounded-lg border ${i.google_sheets.success?"bg-green-50 border-green-200":"bg-red-50 border-red-200"}`,children:[r.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[i.google_sheets.success?r.jsx(bt,{className:"h-5 w-5 text-green-600"}):r.jsx(_r,{className:"h-5 w-5 text-red-600"}),r.jsx("h4",{className:"font-semibold",children:"Google Sheets"})]}),i.google_sheets.success?r.jsx("p",{className:"text-sm text-green-700",children:"Successfully synced to sheet. Row added."}):r.jsxs("p",{className:"text-sm text-red-700",children:["Error: ",i.google_sheets.error]})]}),((U=i==null?void 0:i.gohighlevel)==null?void 0:U.attempted)&&r.jsxs("div",{className:`p-4 rounded-lg border ${i.gohighlevel.success?"bg-green-50 border-green-200":"bg-red-50 border-red-200"}`,children:[r.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[i.gohighlevel.success?r.jsx(bt,{className:"h-5 w-5 text-green-600"}):r.jsx(_r,{className:"h-5 w-5 text-red-600"}),r.jsx("h4",{className:"font-semibold",children:"GoHighLevel"})]}),i.gohighlevel.success?r.jsxs("p",{className:"text-sm text-green-700",children:["Successfully created/updated contact. ID: ",(z=i.gohighlevel.data)==null?void 0:z.contact_id]}):r.jsxs("p",{className:"text-sm text-red-700",children:["Error: ",i.gohighlevel.error]})]})]})]})})]})},Ome=()=>{const{data:e,isLoading:t,error:n}=$s({queryKey:["form-configurations"],queryFn:async()=>{const{data:s,error:a}=await et.select("form_configurations",{order:{column:"form_name",ascending:!0}});if(a)throw a;return s}});return t?r.jsx("div",{className:"flex items-center justify-center p-12",children:r.jsx(wt,{className:"h-8 w-8 animate-spin text-primary"})}):n?r.jsx(so,{variant:"destructive",children:r.jsxs(ao,{children:["Failed to load form configurations: ",n.message]})}):r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h2",{className:"text-2xl font-semibold",children:"All Forms"}),r.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Configure CRM integrations for each form on your website"})]}),r.jsx("div",{className:"grid gap-4",children:e==null?void 0:e.map(s=>r.jsx($me,{form:s},s.id))})]})},J8=({integrationType:e})=>{const{data:t,isLoading:n}=$s({queryKey:["crm-sync-logs",e],queryFn:async()=>{const{data:i,error:o}=await et.select("crm_sync_logs",{filters:{integration_type:e},order:{column:"created_at",ascending:!1},limit:10});if(o)throw o;return i}}),s=i=>{switch(i){case"success":return r.jsx(bt,{className:"h-4 w-4 text-green-600"});case"failed":return r.jsx(_r,{className:"h-4 w-4 text-red-600"});default:return r.jsx(zt,{className:"h-4 w-4 text-yellow-600"})}},a=i=>{switch(i){case"success":return"default";case"failed":return"destructive";default:return"secondary"}};return n?r.jsxs(G,{children:[r.jsx(Ie,{children:r.jsx(Me,{children:"Recent Sync Activity"})}),r.jsx(Ne,{children:r.jsx("div",{className:"flex items-center justify-center p-8",children:r.jsx(wt,{className:"h-6 w-6 animate-spin text-primary"})})})]}):!t||t.length===0?r.jsx(G,{children:r.jsxs(Ie,{children:[r.jsx(Me,{children:"Recent Sync Activity"}),r.jsx(dt,{children:"No sync activity yet"})]})}):r.jsxs(G,{children:[r.jsxs(Ie,{children:[r.jsx(Me,{children:"Recent Sync Activity"}),r.jsx(dt,{children:"Last 10 sync attempts"})]}),r.jsx(Ne,{children:r.jsx("div",{className:"space-y-3",children:t.map(i=>r.jsx("div",{className:"flex items-start justify-between p-3 border rounded-lg hover:bg-muted/50 transition-colors",children:r.jsxs("div",{className:"flex items-start gap-3 flex-1",children:[s(i.sync_status),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[r.jsx("p",{className:"text-sm font-medium",children:i.form_identifier}),r.jsx(it,{variant:a(i.sync_status),className:"text-xs",children:i.sync_status})]}),i.error_message&&r.jsx("p",{className:"text-xs text-red-600",children:i.error_message}),r.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:Ps(new Date(i.created_at),"MMM dd, yyyy HH:mm:ss")})]})]})},i.id))})})]})},Pme=()=>{const{toast:e}=Lt(),t=cd(),[n,s]=j.useState(!1),[a,i]=j.useState({}),{data:o,isLoading:l}=$s({queryKey:["crm-integration-google-sheets"],queryFn:async()=>{const{data:g,error:x}=await et.select("crm_integrations",{filters:{integration_type:"google_sheets"}});if(x)throw x;return(g==null?void 0:g[0])||null}}),{data:c}=$s({queryKey:["form-configurations"],queryFn:async()=>{const{data:g,error:x}=await et.select("form_configurations");
758if(x)throw x;return g}}),{data:d,refetch:u,isRefetching:h}=$s({queryKey:["google-sheets-list"],enabled:o==null?void 0:o.is_active,queryFn:async()=>{const{data:g,error:x}=await ve.functions.invoke("google-sheets-setup",{body:{action:"list_sheets"}});if(x)throw x;return g.sheets||[]}}),f=aa({mutationFn:async()=>{s(!0);const{data:g,error:x}=await ve.functions.invoke("google-sheets-oauth",{body:{action:"get_auth_url"}});if(x)throw x;const b=500,w=600,N=window.screenX+(window.outerWidth-b)/2,S=window.screenY+(window.outerHeight-w)/2,_=window.open(g.authUrl,"Google Sheets Authorization",`width=${b},height=${w},left=${N},top=${S}`);return new Promise((C,$)=>{const k=setInterval(()=>{_!=null&&_.closed&&(clearInterval(k),s(!1),t.invalidateQueries({queryKey:["crm-integration-google-sheets"]}),C(!0))},500)})}}),m=aa({mutationFn:async()=>{const{error:g}=await ve.functions.invoke("google-sheets-oauth",{body:{action:"disconnect"}});if(g)throw g},onSuccess:()=>{e({title:"Disconnected from Google Sheets"}),t.invalidateQueries({queryKey:["crm-integration-google-sheets"]})}}),y=aa({mutationFn:async({formId:g,updates:x})=>{const{error:b}=await et.update("form_configurations",g,x);if(b)throw b},onSuccess:()=>{t.invalidateQueries({queryKey:["form-configurations"]}),e({title:"Form configuration updated"})}}),p=aa({mutationFn:async({formIdentifier:g,sheetId:x})=>{const{data:b,error:w}=await ve.functions.invoke("google-sheets-setup",{body:{action:"create_headers",form_identifier:g,sheet_id:x}});if(w)throw w;return b},onSuccess:()=>{e({title:"Column headers created successfully"})}});if(l)return r.jsx("div",{className:"flex items-center justify-center p-12",children:r.jsx(wt,{className:"h-8 w-8 animate-spin text-primary"})});const v=o==null?void 0:o.is_active;return r.jsxs("div",{className:"space-y-6",children:[r.jsxs(G,{children:[r.jsxs(Ie,{children:[r.jsx(Me,{children:"Google Sheets Connection"}),r.jsx(dt,{children:"Connect your Google account to automatically sync form submissions to Google Sheets"})]}),r.jsxs(Ne,{className:"space-y-4",children:[v?r.jsxs("div",{className:"flex items-center justify-between p-4 bg-green-50 border border-green-200 rounded-lg",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx(bt,{className:"h-5 w-5 text-green-600"}),r.jsxs("div",{children:[r.jsx("p",{className:"font-medium text-green-900",children:"Connected"}),r.jsx("p",{className:"text-sm text-green-700",children:o.config.user_email})]})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsxs(te,{variant:"outline",size:"sm",onClick:()=>f.mutate(),disabled:n,title:"Re-authenticate with Google to refresh access",children:[n?r.jsx(wt,{className:"h-4 w-4 mr-2 animate-spin"}):r.jsx(Mn,{className:"h-4 w-4 mr-2"}),"Refresh Connection"]}),r.jsxs(te,{variant:"outline",size:"sm",onClick:()=>u(),disabled:h,children:[h?r.jsx(wt,{className:"h-4 w-4 mr-2 animate-spin"}):r.jsx(Mn,{className:"h-4 w-4 mr-2"}),h?"Syncing...":"Sync Sheets"]}),r.jsx(te,{variant:"outline",size:"sm",onClick:()=>m.mutate(),disabled:m.isPending,children:"Disconnect"})]})]}):r.jsxs("div",{className:"flex items-center justify-between p-4 bg-gray-50 border border-gray-200 rounded-lg",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx(_r,{className:"h-5 w-5 text-gray-600"}),r.jsxs("div",{children:[r.jsx("p",{className:"font-medium text-gray-900",children:"Not Connected"}),r.jsx("p",{className:"text-sm text-gray-600",children:"Authorize with Google to begin syncing"})]})]}),r.jsx(te,{onClick:()=>f.mutate(),disabled:n,children:n?r.jsxs(r.Fragment,{children:[r.jsx(wt,{className:"h-4 w-4 mr-2 animate-spin"}),"Connecting..."]}):"Connect Google"})]}),!v&&r.jsx(so,{children:r.jsx(ao,{children:"After connecting, you'll need to select a Google Sheet for each form and set up column headers."})})]})]}),v&&c&&r.jsxs("div",{className:"space-y-4",children:[r.jsx("h3",{className:"text-lg font-semibold",children:"Form Configurations"}),c.map(g=>r.jsxs(G,{children:[r.jsx(Ie,{children:r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{children:[r.jsx(Me,{className:"text-base",children:g.form_name}),r.jsx(dt,{children:g.form_route})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(oe,{htmlFor:`enable-${g.id}`,children:"Enable"}),r.jsx(ha,{id:`enable-${g.id}`,checked:g.google_sheets_enabled,onCheckedChange:x=>{y.mutate({formId:g.id,updates:{google_sheets_enabled:x}})}})]})]})}),g.google_sheets_enabled&&r.jsxs(Ne,{className:"space-y-3",children:[r.jsxs("div",{className:"space-y-2",children:[r.jsx(oe,{children:"Select Google Sheet"}),r.jsxs(px,{open:a[g.id]||!1,onOpenChange:x=>i(b=>({...b,[g.id]:x})),children:[r.jsx(gx,{asChild:!0,children:r.jsxs(te,{variant:"outline",role:"combobox","aria-expanded":a[g.id]||!1,className:"w-full justify-between",children:[g.google_sheet_name||"Select a sheet...",r.jsx(gw,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),r.jsx(Qh,{className:"w-full p-0",align:"start",children:r.jsxs(Nx,{children:[r.jsx(kx,{placeholder:"Search sheets..."}
758),r.jsxs(_x,{children:[r.jsx(Sx,{children:!d||d.length===0?"No Google Sheets found. Create a sheet in Google Drive first.":"No sheets found."}),r.jsx(Cx,{children:d&&d.map(x=>r.jsxs(Jc,{value:x.name,onSelect:()=>{y.mutate({formId:g.id,updates:{google_sheet_id:x.id,google_sheet_name:x.name}}),i(b=>({...b,[g.id]:!1}))},children:[r.jsx(_e,{className:le("mr-2 h-4 w-4",g.google_sheet_id===x.id?"opacity-100":"opacity-0")}),x.name]},x.id))})]})]})})]})]}),g.google_sheet_id&&r.jsxs(te,{size:"sm",variant:"outline",onClick:()=>p.mutate({formIdentifier:g.form_identifier,sheetId:g.google_sheet_id}),disabled:p.isPending,children:[r.jsx(vw,{className:"h-4 w-4 mr-2"}),"Create Column Headers"]})]})]},g.id))]}),r.jsx(J8,{integrationType:"google_sheets"})]})},bv=e=>(e||"").toLowerCase().replace(/[^a-z0-9]+/g,""),Ame=({form:e,customFields:t,onSave:n})=>{const{toast:s}=Lt(),[a,i]=j.useState(e.field_mappings||{}),[o,l]=j.useState(null);j.useEffect(()=>{i(e.field_mappings||{})},[e.id]);const c=(d=!1)=>{if(!t||t.length===0){d||s({variant:"destructive",title:"No GHL fields loaded",description:"Refresh fields and try again."});return}const u={...a};let h=0;(e.form_fields||[]).forEach(f=>{if(u[f.name])return;const m=[f.name,f.label].map(bv).filter(Boolean),y=t.find(p=>{var g;const v=[p.name,p.fieldKey,(g=p.fieldKey)==null?void 0:g.split(".").pop()].map(x=>bv(x||""));return m.some(x=>v.includes(x))})||t.find(p=>{const v=[p.name,p.fieldKey].map(g=>bv(g||""));return m.some(g=>g&&v.some(x=>x&&(x.includes(g)||g.includes(x))))});y&&(u[f.name]=y.id,h++)}),i(u),n(u),d||s({title:h>0?"Auto-matched fields":"No new matches",description:h>0?`Matched ${h} field${h===1?"":"s"}.`:"Couldn't find logical matches."})};return j.useEffect(()=>{t.length>0&&Object.keys(a).length===0&&(e.form_fields||[]).length>0&&c(!0)},[t.length]),r.jsxs("div",{className:"space-y-2",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx(oe,{className:"text-sm",children:"Field Mappings"}),r.jsxs(te,{type:"button",variant:"outline",size:"sm",onClick:()=>c(!1),disabled:t.length===0,className:"h-7 text-xs",children:[r.jsx(pE,{className:"h-3 w-3 mr-1"}),"Auto-match"]})]}),r.jsx("div",{className:"space-y-2 max-h-72 overflow-y-auto pr-1",children:(e.form_fields||[]).map(d=>{const u=a[d.name]||"",h=t.find(m=>m.id===u),f=d.name;return r.jsxs("div",{className:"grid grid-cols-2 gap-2 items-center text-sm",children:[r.jsxs("span",{className:"truncate font-medium",children:[d.label,":"]}),r.jsxs(px,{open:o===f,onOpenChange:m=>l(m?f:null),children:[r.jsx(gx,{asChild:!0,children:r.jsxs(te,{variant:"outline",role:"combobox",size:"sm",className:"w-full justify-between text-xs font-normal h-8",children:[r.jsx("span",{className:"truncate",children:h?h.name:u||(t.length===0?"No fields available":"Not mapped")}),r.jsx(gw,{className:"ml-2 h-3 w-3 shrink-0 opacity-50"})]})}),r.jsx(Qh,{className:"w-[320px] p-0",align:"start",children:r.jsxs(Nx,{children:[r.jsx(kx,{placeholder:"Search GHL fieldsâ¦",className:"text-xs"}),r.jsxs(_x,{children:[r.jsx(Sx,{children:"No matching field."}),r.jsxs(Cx,{children:[r.jsxs(Jc,{value:"__clear__",onSelect:()=>{const m={...a};delete m[d.name],i(m),n(m),l(null)},className:"text-xs text-muted-foreground",children:[r.jsx(_e,{className:le("mr-2 h-3 w-3",u?"opacity-0":"opacity-100")}),"â Not mapped â"]}),t.map(m=>r.jsxs(Jc,{value:`${m.name} ${m.fieldKey||""} ${m.id}`,onSelect:()=>{const y={...a,[d.name]:m.id};i(y),n(y),l(null)},className:"text-xs",children:[r.jsx(_e,{className:le("mr-2 h-3 w-3",u===m.id?"opacity-100":"opacity-0")}),r.jsxs("div",{className:"flex flex-col",children:[r.jsx("span",{children:m.name}),m.fieldKey&&r.jsx("span",{className:"text-[10px] text-muted-foreground",children:m.fieldKey})]})]},m.id))]})]})]})})]})]},d.name)})})]})},Ime=()=>{const{toast:e}=Lt(),t=cd(),[n,s]=j.useState(""),[a,i]=j.useState(""),{data:o,isLoading:l}=$s({queryKey:["crm-integration-gohighlevel"],queryFn:async()=>{const{data:p,error:v}=await et.select("crm_integrations",{filters:{integration_type:"gohighlevel"}});if(v)throw v;return(p==null?void 0:p[0])||null}}),{data:c}=$s({queryKey:["form-configurations"],queryFn:async()=>{const{data:p,error:v}=await et.select("form_configurations");
758if(v)throw v;return p}}),{data:d,refetch:u}=$s({queryKey:["gohighlevel-custom-fields"],enabled:o==null?void 0:o.is_active,queryFn:async()=>{const{data:p,error:v}=await ve.functions.invoke("gohighlevel-fetch-fields");if(v)throw v;return p.customFields||[]}}),h=aa({mutationFn:async()=>{var g;const{data:p,error:v}=await ve.functions.invoke("gohighlevel-connect",{body:{action:"test_connection",api_key:n,location_id:a}});if(v){const x=((g=v.context)==null?void 0:g.error)||v.message||"Failed to connect";throw new Error(x)}if(p!=null&&p.error)throw new Error(p.error);return p},onSuccess:p=>{e({title:"Connected to GoHighLevel",description:`Location: ${p.location_name}`}),t.invalidateQueries({queryKey:["crm-integration-gohighlevel"]}),s(""),i("")},onError:p=>{console.error("GoHighLevel connection error:",p),e({variant:"destructive",title:"Connection Failed",description:p.message||"Unable to connect to GoHighLevel. Please check your credentials."})}}),f=aa({mutationFn:async()=>{const{error:p}=await ve.functions.invoke("gohighlevel-connect",{body:{action:"disconnect"}});if(p)throw p},onSuccess:()=>
758{e({title:"Disconnected from GoHighLevel"}),t.invalidateQueries({queryKey:["crm-integration-gohighlevel"]})}}),m=aa({mutationFn:async({formId:p,updates:v})=>{const{error:g}=await et.update("form_configurations",p,v);if(g)throw g},onSuccess:()=>{t.invalidateQueries({queryKey:["form-configurations"]}),e({title:"Form configuration updated"})}});if(l)return r.jsx("div",{className:"flex items-center justify-center p-12",children:r.jsx(wt,{className:"h-8 w-8 animate-spin text-primary"})});const y=o==null?void 0:o.is_active;return r.jsxs("div",{className:"space-y-6",children:[r.jsxs(G,{children:[r.jsxs(Ie,{children:[r.jsx(Me,{children:"GoHighLevel Connection"}),r.jsx(dt,{children:"Connect your GoHighLevel account to sync contacts and apply tags automatically"})]}),r.jsxs(Ne,{className:"space-y-4",children:[y?r.jsxs("div",{className:"flex items-center justify-between p-4 bg-green-50 border border-green-200 rounded-lg",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx(bt,{className:"h-5 w-5 text-green-600"}),r.jsxs("div",{children:[r.jsx("p",{className:"font-medium text-green-900",children:"Connected"}),r.jsxs("p",{className:"text-sm text-green-700",children:[o.config.location_name," (",o.config.location_id,")"]})]})]}),r.jsxs("div",{className:"flex gap-2",children:[r.jsxs(te,{variant:"outline",size:"sm",onClick:()=>u(),children:[r.jsx(Mn,{className:"h-4 w-4 mr-1"}),"Refresh Fields"]}),r.jsx(te,{variant:"outline",size:"sm",onClick:()=>f.mutate(),disabled:f.isPending,children:"Disconnect"})]})]}):r.jsxs("div",{className:"space-y-3",children:[r.jsxs("div",{className:"flex items-center gap-3 p-4 bg-gray-50 border border-gray-200 rounded-lg",children:[r.jsx(_r,{className:"h-5 w-5 text-gray-600"}),r.jsxs("div",{className:"flex-1",children:[r.jsx("p",{className:"font-medium text-gray-900",children:"Not Connected"}),r.jsx("p",{className:"text-sm text-gray-600",children:"Paste your GoHighLevel Private Integration Token and Location ID below to connect."})]})]}),r.jsxs("div",{className:"space-y-3 pt-1",children:[r.jsxs("div",{className:"space-y-2",children:[r.jsx(oe,{htmlFor:"api-key",children:"Private Integration Token"}),r.jsx(je,{id:"api-key",type:"password",placeholder:"pit-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",value:n,onChange:p=>s(p.target.value),autoComplete:"off"})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(oe,{htmlFor:"location-id",children:"Location ID"}),r.jsx(je,{id:"location-id",placeholder:"Enter your sub-account / location ID",value:a,onChange:p=>i(p.target.value),autoComplete:"off"})]}),r.jsx(te,{onClick:()=>h.mutate(),disabled:!n||!a||h.isPending,className:"w-full",children:h.isPending?r.jsxs(r.Fragment,{children:[r.jsx(wt,{className:"h-4 w-4 mr-2 animate-spin"}),"Connecting..."]}):"Connect GoHighLevel"})]})]}),!y&&r.jsx(so,{children:r.jsxs(ao,{className:"space-y-2",children:[r.jsx("p",{className:"font-medium",children:"How to generate your Private Integration Token:"}),r.jsxs("ol",{className:"list-decimal list-inside space-y-1 text-sm",children:[r.jsx("li",{children:"In GoHighLevel, open your sub-account."}),r.jsxs("li",{children:["Go to ",r.jsx("strong",{children:"Settings â Private Integrations"}),"."]}),r.jsxs("li",{children:["Click ",r.jsx("strong",{children:"Create New Integration"}),' and give it a name (e.g. "Simple Operations Website").']}),r.jsxs("li",{children:["Select these scopes:",r.jsx("code",{className:"block text-xs bg-muted px-2 py-1 mt-1 rounded",children:"contacts.readonly, contacts.write, locations/customFields.readonly, locations/tags.readonly, locations/tags.write, opportunities.write"})]}),r.jsxs("li",{children:["Copy the generated ",r.jsx("strong",{children:"pit-..."})," token and paste it above with your Location ID."]})]}),r.jsx("p",{className:"text-xs text-muted-foreground mt-2",children:"Private Integration Tokens are long-lived and do not require OAuth refresh."})]})})]})]}),y&&c&&r.jsxs("div",{className:"space-y-4",children:[r.jsx("h3",{className:"text-lg font-semibold",children:"Form Configurations"}),c.map(p=>r.jsxs(G,{children:[r.jsx(Ie,{children:r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{children:[r.jsx(Me,{className:"text-base",children:p.form_name}),r.jsx(dt,{children:p.form_route})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(oe,{htmlFor:`enable-ghl-${p.id}`,children:"Enable"}),r.jsx(ha,{id:`enable-ghl-${p.id}`,checked:p.gohighlevel_enabled,onCheckedChange:v=>{m.mutate({formId:p.id,updates:{gohighlevel_enabled:v}})}})]})]})}),p.gohighlevel_enabled&&r.jsxs(Ne,{className:"space-y-4",children:[r.jsxs("div",{className:"space-y-2",children:[r.jsx(oe,{children:"Tag (optional)"}),r.jsx(je,{placeholder:"e.g., contact-form-lead",value:p.gohighlevel_tag||"",onChange:v=>{m.mutate({formId:p.id,updates:{gohighlevel_tag:v.target.value}})}}),r.jsx("p",{className:"text-xs text-muted-foreground",children:"Tag will be created if it doesn't exist"})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx(oe,{children:"Use Custom Fields"}),r.jsx(ha,{checked:p.use_custom_fields,onCheckedChange:v=>{m.mutate({formId:p.id,updates:{use_custom_fields:v}})}})]}),r.jsx("p",{className:"text-xs text-muted-foreground",children:p.use_custom_fields?"Map form fields to GoHighLevel custom fields":"Extra data will be added to contact notes"})]}),p.use_custom_fields&&r.jsx(Ame,{form:p,customFields:d||[],onSave:v=>{m.mutate({formId:p.id,updates:{field_mappings:v}})}})]})]}
758,p.id))]}),r.jsx(J8,{integrationType:"gohighlevel"})]})},Rme=()=>{const e=[{name:"GOOGLE_OAUTH_CLIENT_ID",description:"OAuth 2.0 Client ID from Google Cloud Console",required:!0,setupUrl:"https://console.cloud.google.com/apis/credentials"},{name:"GOOGLE_OAUTH_CLIENT_SECRET",description:"OAuth 2.0 Client Secret from Google Cloud Console",required:!0,setupUrl:"https://console.cloud.google.com/apis/credentials"},{name:"GOOGLE_OAUTH_REDIRECT_URI",description:"OAuth callback URL (your edge function URL)",required:!0,example:"https://jyybrsqperqynjgezueb.supabase.co/functions/v1/google-sheets-oauth"}];return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h2",{className:"text-2xl font-semibold",children:"Configuration & Setup"}),r.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Manage API credentials and secrets required for CRM integrations"})]}),r.jsx(so,{children:r.jsx(ao,{children:"All secrets must be configured in your Supabase project before connecting integrations. These are stored securely and never exposed to the client."})}),r.jsxs(G,{children:[r.jsxs(Ie,{children:[r.jsx(Me,{children:"Google Sheets API Secrets"}),r.jsx(dt,{children:"Required for Google Sheets OAuth authentication"})]}),r.jsx(Ne,{className:"space-y-4",children:e.map(t=>r.jsxs("div",{className:"flex items-start justify-between p-4 border rounded-lg",children:[r.jsxs("div",{className:"flex-1",children:[r.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[r.jsx("code",{className:"text-sm font-mono bg-muted px-2 py-1 rounded",children:t.name}),t.required&&r.jsx(it,{variant:"outline",className:"text-xs",children:"Required"})]}),r.jsx("p",{className:"text-sm text-muted-foreground",children:t.description}),t.example&&r.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:["Example: ",r.jsx("code",{className:"bg-muted px-1 rounded",children:t.example})]})]}),t.setupUrl&&r.jsxs(te,{variant:"outline",size:"sm",onClick:()=>window.open(t.setupUrl,"_blank"),children:[r.jsx(Cr,{className:"h-4 w-4 mr-1"}),"Get"]})]},t.name))})]}),r.jsxs(G,{children:[r.jsxs(Ie,{children:[r.jsx(Me,{children:"GoHighLevel API Configuration"}),r.jsx(dt,{children:"API credentials are stored per-connection (not as secrets)"})]}),r.jsxs(Ne,{className:"space-y-4",children:[r.jsx(so,{children:r.jsx(ao,{children:"GoHighLevel credentials (API Key and Location ID) are configured directly in the GoHighLevel tab. No additional secrets needed."})}),r.jsxs("div",{className:"space-y-2",children:[r.jsx("h4",{className:"text-sm font-semibold",children:"How to get your credentials:"}),r.jsxs("ol",{className:"text-sm text-muted-foreground space-y-1 list-decimal list-inside",children:[r.jsx("li",{children:"Log into your GoHighLevel account"}),r.jsx("li",{children:"Navigate to Settings â Integrations"}),r.jsx("li",{children:"Generate an API Key with appropriate permissions"}),r.jsx("li",{children:"Copy your Location/Sub-account ID from Settings â Company"})]})]}),r.jsxs(te,{variant:"outline",onClick:()=>window.open("https://marketplace.gohighlevel.com/docs/","_blank"),children:[r.jsx(Cr,{className:"h-4 w-4 mr-2"}),"View GoHighLevel API Docs"]})]})]}),r.jsxs(G,{children:[r.jsx(Ie,{children:r.jsx(Me,{children:"Setup Checklist"})}),r.jsx(Ne,{children:r.jsxs("div",{className:"space-y-3",children:[r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx("div",{className:"h-5 w-5 rounded-full border-2 border-muted-foreground flex items-center justify-center text-xs",children:"1"}),r.jsxs("div",{className:"flex-1",children:[r.jsx("p",{className:"font-medium",children:"Add Google OAuth secrets in Supabase"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Click the button below to open Supabase Edge Function secrets management"}),r.jsxs(te,{variant:"link",className:"px-0 h-auto",onClick:()=>window.open("https://supabase.com/dashboard/project/jyybrsqperqynjgezueb/settings/functions","_blank"),children:[r.jsx(Cr,{className:"h-3 w-3 mr-1"}),"Open Supabase Secrets"]})]})]}),r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx("div",{className:"h-5 w-5 rounded-full border-2 border-muted-foreground flex items-center justify-center text-xs",children:"2"}),r.jsxs("div",{className:"flex-1",children:[r.jsx("p",{className:"font-medium",children:"Connect Google Sheets"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Go to the Google Sheets tab and authorize your Google account"})]})]}),r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx("div",{className:"h-5 w-5 rounded-full border-2 border-muted-foreground flex items-center justify-center text-xs",children:"3"}),r.jsxs("div",{className:"flex-1",children:[r.jsx("p",{className:"font-medium",children:"Connect GoHighLevel"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Go to the GoHighLevel tab and enter your API credentials"})]})]}),r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx("div",{className:"h-5 w-5 rounded-full border-2 border-muted-foreground flex items-center justify-center text-xs",children:"4"}),r.jsxs("div",{className:"flex-1",children:[r.jsx("p",{className:"font-medium",children:"Configure forms"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Enable integrations per form, set up sheet mappings, and configure tags"})]})]}),r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx("div",{className:"h-5 w-5 rounded-full border-2 border-muted-foreground flex items-center justify-center text-xs",children:"5"}),r.jsxs("div",{className:"flex-1",children:[r.jsx("p",{className:"font-medium",children:"Test sync functionality"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Use the Test Sync button on each form to verify connections"})]})]})]})})]}),r.jsxs(G,{children:[r.jsx(Ie,{children:r.jsx(Me,{children:"Google OAuth Setup Instru
758ctions"})}),r.jsxs(Ne,{className:"space-y-4",children:[r.jsxs("div",{className:"space-y-2",children:[r.jsx("h4",{className:"text-sm font-semibold",children:"1. Create OAuth 2.0 Credentials"}),r.jsxs("ol",{className:"text-sm text-muted-foreground space-y-1 list-decimal list-inside ml-2",children:[r.jsx("li",{children:"Go to Google Cloud Console â APIs & Services â Credentials"}),r.jsx("li",{children:'Click "Create Credentials" â "OAuth client ID"'}),r.jsx("li",{children:'Select "Web application" as application type'}),r.jsxs("li",{children:["Add authorized redirect URI: ",r.jsx("code",{className:"bg-muted px-1 rounded text-xs",children:"https://jyybrsqperqynjgezueb.supabase.co/functions/v1/google-sheets-oauth"})]}),r.jsx("li",{children:"Copy the Client ID and Client Secret"})]})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx("h4",{className:"text-sm font-semibold",children:"2. Enable Google Sheets API"}),r.jsxs("ol",{className:"text-sm text-muted-foreground space-y-1 list-decimal list-inside ml-2",children:[r.jsx("li",{children:"Go to Google Cloud Console â APIs & Services â Library"}),r.jsx("li",{children:'Search for "Google Sheets API"'}),r.jsx("li",{children:'Click "Enable"'})]})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx("h4",{className:"text-sm font-semibold",children:"3. Add Secrets to Supabase"}),r.jsxs("ol",{className:"text-sm text-muted-foreground space-y-1 list-decimal list-inside ml-2",children:[r.jsx("li",{children:"Open Supabase Edge Function secrets (link above)"}),r.jsxs("li",{children:["Add ",r.jsx("code",{className:"bg-muted px-1 rounded text-xs",children:"GOOGLE_OAUTH_CLIENT_ID"})," with your Client ID"]}),r.jsxs("li",{children:["Add ",r.jsx("code",{className:"bg-muted px-1 rounded text-xs",children:"GOOGLE_OAUTH_CLIENT_SECRET"})," with your Client Secret"]}),r.jsxs("li",{children:["Add ",r.jsx("code",{className:"bg-muted px-1 rounded text-xs",children:"GOOGLE_OAUTH_REDIRECT_URI"})," with the redirect URI above"]})]})]})]})]})]})},Mme=()=>r.jsx(Nt,{children:r.jsxs("div",{className:"min-h-screen flex w-full",children:[r.jsx(kt,{}),r.jsxs("div",{className:"flex-1 flex flex-col",children:[r.jsxs("header",{className:"h-16 border-b flex items-center px-6 bg-background",children:[r.jsx(Tr,{className:"mr-4"}),r.jsx("h1",{className:"text-2xl font-semibold",children:"CRM Connection Settings"}),r.jsx("div",{className:"ml-auto",children:r.jsxs(te,{variant:"outline",size:"sm",onClick:()=>window.open("/","_blank"),className:"flex items-center gap-2",children:[r.jsx(Cr,{className:"h-4 w-4"}),"View Website"]})})]}),r.jsxs("main",{className:"flex-1 p-6 space-y-6",children:[r.jsx("div",{children:r.jsx("p",{className:"text-muted-foreground",children:"Manage form integrations with Google Sheets and GoHighLevel"})}),r.jsxs(yh,{defaultValue:"configuration",className:"w-full",children:[r.jsxs(Kc,{className:"grid w-full grid-cols-4 mb-6",children:[r.jsxs(wn,{value:"configuration",className:"flex items-center justify-center gap-2",children:[r.jsx(Hu,{className:"h-4 w-4"}),r.jsx("span",{children:"Configuration"})]}),r.jsxs(wn,{value:"forms",className:"flex items-center justify-center gap-2",children:[r.jsx(I7,{className:"h-4 w-4"}),r.jsx("span",{children:"Forms"})]}),r.jsxs(wn,{value:"google-sheets",className:"flex items-center justify-center gap-2",children:[r.jsx(C7,{className:"h-4 w-4"}),r.jsx("span",{children:"Google Sheets"})]}),r.jsxs(wn,{value:"gohighlevel",className:"flex items-center justify-center gap-2",children:[r.jsx(ww,{className:"h-4 w-4"}),r.jsx("span",{children:"GoHighLevel"})]})]}),r.jsx(jn,{value:"configuration",className:"mt-6",children:r.jsx(Rme,{})}),r.jsx(jn,{value:"forms",className:"mt-6",children:r.jsx(Ome,{})}),r.jsx(jn,{value:"google-sheets",className:"mt-6",children:r.jsx(Pme,{})}),r.jsx(jn,{value:"gohighlevel",className:"mt-6",children:r.jsx(Ime,{})})]})]})]})]})}),Dme=e=>{switch(e){case"critical":return"bg-red-100 text-red-800 border-red-300";case"high":return"bg-orange-100 text-orange-800 border-orange-300";case"moderate":return"bg-yellow-100 text-yellow-800 border-yellow-300";
758case"low":return"bg-green-100 text-green-800 border-green-300";default:return"bg-gray-100 text-gray-700 border-gray-300"}},Fme=()=>{const[e,t]=j.useState([]),[n,s]=j.useState(!0),[a,i]=j.useState(null),[o,l]=j.useState(""),[c,d]=j.useState("all"),[u,h]=j.useState("all"),[f,m]=j.useState("all"),[y,p]=j.useState({}),v=async()=>{s(!0);const{data:w,error:N}=await et.select("bottleneck_assessments",{order:{column:"created_at",ascending:!1},limit:500});N?Pn({title:"Failed to load assessments",description:String(N),variant:"destructive"}):t(w||[]),s(!1)};j.useEffect(()=>{v()},[]);const g=async w=>{i(w);try{const{data:N,error:S}=await ve.functions.invoke("retry-assessment-sync",{body:{id:w}});if(S)throw S;N!=null&&N.success?Pn({title:"Synced to GoHighLevel"}):Pn({title:"Sync failed",description:JSON.stringify((N==null?void 0:N.result)||N).slice(0,200),variant:"destructive"}),await v()}catch(N){Pn({title:"Retry error",description:N.message||String(N),variant:"destructive"})}finally{i(null)}},x=e.filter(w=>{var N,S,_,C,$;if(o){const k=o.toLowerCase();if(!((N=w.email)!=null&&N.toLowerCase().includes(k))&&!((S=w.first_name)!=null&&S.toLowerCase().includes(k))&&!((_=w.last_name)!=null&&_.toLowerCase().includes(k))&&!((C=w.company)!=null&&C.toLowerCase().includes(k))&&!(($=w.phone)!=null&&$.toLowerCase().includes(k)))return!1}return!(c!=="all"&&w.bottleneck_level!==c||u==="completed"&&!w.completed_at||u==="email_only"&&w.completed_at||f==="synced"&&!w.ghl_synced||f==="failed"&&(w.ghl_synced||!w.ghl_sync_error)||f==="pending"&&(w.ghl_synced||w.ghl_sync_error))}),b={total:e.length,completed:e.filter(w=>w.completed_at).length,synced:e.filter(w=>w.ghl_synced).length,failed:e.filter(w=>!w.ghl_synced&&w.ghl_sync_error).length};return r.jsx(Nt,{children:r.jsxs("div",{className:"min-h-screen flex w-full",children:[r.jsx(kt,{}),r.jsxs("div",{className:"flex-1 flex flex-col",children:[r.jsxs("header",{className:"h-16 border-b flex items-center px-6 bg-background",children:[r.jsx(Tr,{className:"mr-4"}),r.jsx("h1",{className:"text-2xl font-semibold",children:"Founder Bottleneck Assessments"}),r.jsxs("div",{className:"ml-auto flex gap-2",children:[r.jsxs(te,{variant:"outline",size:"sm",onClick:v,disabled:n,children:[r.jsx(Mn,{className:`h-4 w-4 mr-2 ${n?"animate-spin":""}`}),"Refresh"]}),r.jsxs(te,{variant:"outline",size:"sm",onClick:()=>window.open("/admin/crm-settings","_blank"),children:[r.jsx(Cr,{className:"h-4 w-4 mr-2"}),"CRM Settings"]})]})]}),r.jsxs("main",{className:"flex-1 p-6 space-y-6",children:[r.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[r.jsxs("div",{className:"border rounded-lg p-4",children:[r.jsx("div",{className:"text-sm text-muted-foreground",children:"Total"}),r.jsx("div",{className:"text-2xl font-semibold",children:b.total})]}),r.jsxs("div",{className:"border rounded-lg p-4",children:[r.jsx("div",{className:"text-sm text-muted-foreground",children:"Completed"}),r.jsx("div",{className:"text-2xl font-semibold",children:b.completed})]}),r.jsxs("div",{className:"border rounded-lg p-4",children:[r.jsx("div",{className:"text-sm text-muted-foreground",children:"Synced to GHL"}),r.jsx("div",{className:"text-2xl font-semibold text-green-600",children:b.synced})]}),r.jsxs("div",{className:"border rounded-lg p-4",children:[r.jsx("div",{className:"text-sm text-muted-foreground",children:"Sync Failed"}),r.jsx("div",{className:"text-2xl font-semibold text-red-600",children:b.failed})]})]}),r.jsxs("div",{className:"flex flex-wrap gap-2",children:[r.jsx(je,{placeholder:"Search name or email...",value:o,onChange:w=>l(w.target.value),className:"max-w-xs"}),r.jsxs(yc,{value:c,onValueChange:d,children:[r.jsx(Zo,{className:"w-[180px]",children:r.jsx(vc,{placeholder:"Level"})}),r.jsxs(Xo,{children:[r.jsx(Mr,{value:"all",children:"All Levels"}),r.jsx(Mr,{value:"critical",children:"Critical"}),r.jsx(Mr,{value:"high",children:"High"}),r.jsx(Mr,{value:"moderate",children:"Moderate"}),r.jsx(Mr,{value:"low",children:"Low"})]})]}),r.jsxs(yc,{value:u,onValueChange:h,children:[r.jsx(Zo,{className:"w-[180px]",children:r.jsx(vc,{placeholder:"Stage"})}),r.jsxs(Xo,{children:[r.jsx(Mr,{value:"all",children:"All Stages"}),r.jsx(Mr,{value:"completed",children:"Completed"}),r.jsx(Mr,{value:"email_only",children:"Email Only"})]})]}),r.jsxs(yc,{value:f,onValueChange:m,children:[r.jsx(Zo,{className:"w-[180px]",children:r.jsx(vc,{placeholder:"GHL Sync"})}),r.jsxs(Xo,{children:[r.jsx(Mr,{value:"all",children:"All Sync States"}),r.jsx(Mr,{value:"synced",children:"Synced"}),r.jsx(Mr,{value:"failed",children:"Failed"}),r.jsx(Mr,{value:"pending",children:"Pending"})]})]})]}),r.jsx("div",{className:"border rounded-lg overflow-hidden",children:r.jsxs(tx,{children:[r.jsx(rx,{children:r.jsxs(Ra,{children:[r.jsx(At,{className:"w-8"}),r.jsx(At,{children:"Name"}),r.jsx(At,{children:"Email"}),r.jsx(At,{children:"Phone"}),r.jsx(At,{children:"Company"}),r.jsx(At,{children:"Level"}),r.jsx(At,{children:"Score"}),r.jsx(At,{children:"Stage"}),r.jsx(At,{children:"GHL Sync"}),r.jsx(At,{children:"Date"}),r.jsx(At,{children:"Actions"})]})}),r.jsxs(nx,{children:[x.length===0&&r.jsx(Ra,{children:r.jsx(St,{colSpan:11,className:"text-center text-muted-foreground py-8",children:n?"Loading...":"No assessments found"})}),x.map(w=>r.jsx(vx,{open:!!y[w.id],onOpenChange:N=>p(S=>({...S,[w.id]:N})),asChild:!0,children:r.jsxs(r.Fragment,{children:[r.jsxs(Ra,{children:[r.jsx(St,{children:r.jsx(bx,{asChild:!0,children:r.jsx(te,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",children:y[w.id]?r.jsx(Ka,{className:"h-4 w-4"}):r.jsx(lg,{className:"h-4 w-4"})})})}),r.jsx(St,{className:"font-medium",children:[w.first_name,w.last_name].filter(
758Boolean).join(" ")||"â"}),r.jsx(St,{children:w.email?r.jsx("a",{href:`mailto:${w.email}`,className:"text-primary hover:underline",children:w.email}):"â"}),r.jsx(St,{children:w.phone?r.jsx("a",{href:`tel:${w.phone}`,className:"text-primary hover:underline",children:w.phone}):"â"}),r.jsx(St,{className:"text-sm",children:w.company||"â"}),r.jsx(St,{children:r.jsx(it,{variant:"outline",className:Dme(w.bottleneck_level),children:w.bottleneck_level||"â"})}),r.jsx(St,{children:w.bottleneck_score??"â"}),r.jsx(St,{children:w.completed_at?r.jsx(it,{variant:"outline",className:"bg-blue-50 text-blue-700",children:"Completed"}):r.jsx(it,{variant:"outline",className:"bg-gray-50 text-gray-600",children:"Email Only"})}),r.jsx(St,{children:w.ghl_synced?r.jsxs("span",{className:"inline-flex items-center gap-1 text-green-700 text-sm",children:[r.jsx(bt,{className:"h-4 w-4"})," Synced"]}):w.ghl_sync_error?r.jsxs("span",{className:"inline-flex items-center gap-1 text-red-700 text-sm",children:[r.jsx(_r,{className:"h-4 w-4"})," Failed"]}):r.jsxs("span",{className:"inline-flex items-center gap-1 text-gray-600 text-sm",children:[r.jsx(zt,{className:"h-4 w-4"})," Pending"]})}),r.jsx(St,{className:"text-sm text-muted-foreground",children:new Date(w.created_at).toLocaleDateString()}),r.jsx(St,{children:!w.ghl_synced&&r.jsxs(te,{variant:"outline",size:"sm",onClick:()=>g(w.id),disabled:a===w.id,children:[r.jsx(Mn,{className:`h-3 w-3 mr-1 ${a===w.id?"animate-spin":""}`}),"Retry"]})})]}),r.jsx(wx,{asChild:!0,children:r.jsx(Ra,{children:r.jsx(St,{colSpan:11,className:"bg-muted/30",children:r.jsxs("div",{className:"grid md:grid-cols-2 gap-4 p-2 text-sm",children:[r.jsxs("div",{children:[r.jsx("div",{className:"font-semibold mb-2",children:"Answers"}),r.jsxs("dl",{className:"grid grid-cols-[180px_1fr] gap-y-1",children:[r.jsx("dt",{className:"text-muted-foreground",children:"Revenue"}),r.jsx("dd",{children:w.revenue_range||"â"}),r.jsx("dt",{className:"text-muted-foreground",children:"Weekly Hours"}),r.jsx("dd",{children:w.weekly_hours||"â"}),r.jsx("dt",{className:"text-muted-foreground",children:"Team Challenge"}),r.jsx("dd",{children:w.team_challenge||"â"}),r.jsx("dt",{className:"text-muted-foreground",children:"Decision Pattern"}),r.jsx("dd",{children:w.decision_pattern||"â"}),r.jsx("dt",{className:"text-muted-foreground",children:"Process Docs"}),r.jsx("dd",{children:w.process_documentation||"â"}),r.jsx("dt",{className:"text-muted-foreground",children:"Scalability"}),r.jsx("dd",{children:w.scalability||"â"}),r.jsx("dt",{className:"text-muted-foreground",children:"Pain Level"}),r.jsx("dd",{children:w.pain_level||"â"}),r.jsx("dt",{className:"text-muted-foreground",children:"Primary Constraint"}),r.jsx("dd",{children:w.primary_constraint||"â"})]})]}),r.jsxs("div",{children:[r.jsx("div",{className:"font-semibold mb-2",children:"Sync & Meta"}),r.jsxs("dl",{className:"grid grid-cols-[180px_1fr] gap-y-1",children:[r.jsx("dt",{className:"text-muted-foreground",children:"GHL Contact ID"}),r.jsx("dd",{className:"font-mono text-xs",children:w.ghl_contact_id||"â"}),r.jsx("dt",{className:"text-muted-foreground",children:"Last Sync Error"}),r.jsx("dd",{className:"text-red-700 text-xs break-all",children:w.ghl_sync_error||"â"}),r.jsx("dt",{className:"text-muted-foreground",children:"Created"}),r.jsx("dd",{children:new Date(w.created_at).toLocaleString()}),r.jsx("dt",{className:"text-muted-foreground",children:"Completed"}),r.jsx("dd",{children:w.completed_at?new Date(w.completed_at).toLocaleString():"â"})]})]})]})})})})]})},w.id))]})]})})]})]})]})})},Lme=()=>{const[e,t]=j.useState([]),[n,s]=j.useState(!0),[a,i]=j.useState(!1),[o,l]=j.useState(""),[c,d]=j.useState(""),[u,h]=j.useState(""),{toast:f}=Lt(),m=[{slug:"__default__",title:"Site Default (fallback)",path:"/"},{slug:"/",title:"Home",path:"/"},{slug:"/the-system",title:"The System",path:"/the-system"},{slug:"/scale",title:"Scale Method",path:"/scale"},{slug:"/clarity",title:"Clarity Method",path:"/clarity"},{slug:"/essentials",title:"Essentials Course",path:"/essentials"},{slug:"/compare",title:"Compare Programs",path:"/compare"},{slug:"/proof",title:"Proof",path:"/proof"},{slug:"/assessment",title:"Founder Bottleneck Assessment",path:"/assessment"},{slug:"/assessment/results",title:"Assessment Results",path:"/assessment/results"},{slug:"/book-call",title:"Book a Call",path:"/book-call"}
758,{slug:"/free-tools",title:"Free Tools",path:"/free-tools"},{slug:"/faq",title:"FAQ",path:"/faq"},{slug:"/guarantee",title:"Our Guarantee",path:"/guarantee"},{slug:"/guiding-principles",title:"Guiding Principles",path:"/guiding-principles"},{slug:"/team",title:"Team",path:"/team"},{slug:"/contact",title:"Contact",path:"/contact"},{slug:"/book",title:"Book Resources",path:"/book"},{slug:"/so-book",title:"Passenger Seat Leadership Book",path:"/so-book"},{slug:"/apply",title:"Apply",path:"/apply"},{slug:"/application-success",title:"Application Success",path:"/application-success"},{slug:"/application-not-qualified",title:"Application Not Qualified",path:"/application-not-qualified"},{slug:"/course/payment-success",title:"Course Payment Success",path:"/course/payment-success"},{slug:"/quantum-flow-planner",title:"Quantum Flow Planner",path:"/quantum-flow-planner"},{slug:"/quantum-flow-planner/success",title:"Quantum Flow Planner Success",path:"/quantum-flow-planner/success"},{slug:"/workshop",title:"Workshop",path:"/workshop"},{slug:"/workshop/success",title:"Workshop Success",path:"/workshop/success"},{slug:"/invest",title:"Invest",path:"/invest"},{slug:"/invest/success",title:"Investment Success",path:"/invest/success"},{slug:"/passenger-seat-book",title:"Passenger Seat Book Funnel",path:"/passenger-seat-book"},{slug:"/passenger-seat-book/thank-you",title:"Passenger Seat Book Thank You",path:"/passenger-seat-book/thank-you"},{slug:"/privacy-policy",title:"Privacy Policy",path:"/privacy-policy"},{slug:"/terms-of-service",title:"Terms of Service",path:"/terms-of-service"}],y=async()=>{try{s(!0);const{data:S,error:_}=await et.select("seo_settings",{order:{column:"page_slug",ascending:!0}});if(_)throw _;const{data:C}=await et.select("admin_settings",{filters:{setting_key:"google_analytics_tracking_code"}});l(C&&C.length>0&&C[0].setting_value||"");const{data:$}=await et.select("admin_settings",{filters:{setting_key:"custom_head_code"}});d($&&$.length>0&&$[0].setting_value||"");const{data:k}=await et.select("admin_settings",{filters:{setting_key:"custom_body_start_code"}});h(k&&k.length>0&&k[0].setting_value||"");const E=new Map((S||[]).map(O=>[O.page_slug,O])),T=m.map(O=>{const A=E.get(O.slug);return A||{page_slug:O.slug,page_title:O.title,meta_title:p(O.title),meta_description:v(O.title),robots_meta:"index, follow"}});t(T)}catch(S){console.error("Error fetching SEO settings:",S),f({title:"Error",description:"Failed to fetch SEO settings",variant:"destructive"})}finally{s(!1)}},p=S=>S==="Home Page"?"Simple Operations - Escape the Founder Trap: Transform Chaos to Calm in 4 Months":`${S} | Simple Operations`,v=S=>({"Home Page":"Transform your expert-led business from chaos to calm with the proven C2C Scale Method. Reclaim 30-50% of your time, empower your team, and scale with confidence.","About Page":"Learn about Simple Operations and how we help expert-led businesses escape the founder trap and build scalable systems.","Team Page":"Meet the Simple Operations team helping expert-led businesses achieve operational freedom and scalable growth.","Contact Page":"Get in touch with Simple Operations. Contact us to learn how we
758can help transform your business from chaos to calm.","Apply Page":"Apply for the C2C Scale Method program and start your journey from chaos to calm in your expert-led business.","Free Book Page":"Get your free copy of our comprehensive guide to escaping the founder trap and building scalable business systems.","C2C Clarity":"Book your C2C Clarity call to explore how the proven method can transform your business operations.","C2C Clarity Apply":"Apply for the C2C Clarity program to get personalized guidance on transforming your business operations.","C2C Clarity Success":"Your C2C Clarity application has been submitted successfully. We will contact you within 48 hours.","Our Guarantee":"Learn about our guarantee and commitment to helping you achieve operational freedom in your business.","Book Page":"Discover the Simple Operations methodology through our comprehensive book on building scalable business systems.","Guiding Principles":"Discover the core principles that guide Simple Operations approach to transforming expert-led businesses.","Free Growth Tools":"Access free tools and resources to help grow and scale your expert-led business.","Method Results":"See how the C2C Scale Method transforms expert-led businesses from chaos to calm in 4 months with real results.","Application Success":"Your application has been submitted successfully. We will review and contact you within 48 hours."})[S]||`Learn more about ${S} at Simple Operations.`,g=async(S,_)=>{try{const C={..._,page_slug:S,updated_at:new Date().toISOString()},{error:$}=await et.upsert("seo_settings",C);if($)throw $;await y(),S!=="__default__"&&f({title:"Success",description:"SEO settings saved successfully"})}catch(C){throw console.error("Error saving SEO settings:",C),f({title:"Error",description:"Failed to save SEO settings",variant:"destructive"}),C}},x=async(S,_)=>{try{i(!0);const C=S.name.split(".").pop(),k=`${`${_}-${Date.now()}.${C}`}`,E=await up.upload("seo-images",k,S);if(!E)throw new Error("Failed to get public URL");return E}catch(C){throw console.error("Error uploading SEO image:",C),f({title:"Error",description:"Failed to upload image",variant:"destructive"}),C}finally{i(!1)}},b=async S=>{try{const _=S.split("/").pop();if(!_)return;await up.remove("seo-images",[_])}catch(_){console.error("Error deleting SEO image:",_),f({title:"Error",description:"Failed to delete image",variant:"destructive"})}},w=async(S,_)=>{try{const C=(S||"").trim(),{error:$}=await et.upsert("admin_settings",{setting_key:"google_analytics_tracking_code",setting_value:C,description:"Global tracking code (GTM, GA4, or Universal Analytics)"});if($)throw $;const{error:k}=await et.upsert("admin_settings",{setting_key:"google_analytics_enabled",setting_value:_?"true":"false",description:"Enable or disable Google Analytics tracking"});if(k)throw k;l(C),f({title:"Success",description:"Analytics settings saved"})}catch(C){throw console.error("Error saving tracking code:",C),f({title:"Error",description:"Failed to save tracking code",variant:"destructive"}),C}},N=async(S,_)=>{try{const C=(S||"").trim(),$=(_||"").trim(),{error:k}=await et.upsert("admin_settings",{setting_key:"custom_head_code",setting_value:C,description:"Custom code injected into the <head> of every public page"});if(k)throw k;const{error:E}=await et.upsert("admin_settings",{setting_key:"custom_body_start_code",setting_value:$,description:"Custom code injected right after the opening <body> tag on every public page"});if(E)throw E;d(C),h($),f({title:"Success",description:"Custom code saved. Reload the public site to see it applied."})}catch(C){throw console.error("Error saving custom code:",C),f({title:"Error",description:"Failed to save custom code",variant:"destructive"}),C}};return j.useEffect(()=>{y()},[]),{seoSettings:e,publicPages:m,loading:n,uploading:a,gaTrackingCode:o,headCode:c,bodyStartCode:u,fetchSEOSettings:y,saveSEOSettings:g,uploadSEOImage:x,deleteSEOImage:b,saveGATrackingCode:w,saveCustomCode:N}};function Bme(e,t){return j.useReducer((n,s)=>t[n][s]??n,e)}var Jj="ScrollArea",[eI,nxe]=ir(Jj),[Wme,os]=eI(Jj),tI=j.forwardRef((e,t)=>
vendor: 9,474 bytes, line 758
758{const{__scopeScrollArea:n,type:s="hover",dir:a,scrollHideDelay:i=600,...o}=e,[l,c]=j.useState(null),[d,u]=j.useState(null),[h,f]=j.useState(null),[m,y]=j.useState(null),[p,v]=j.useState(null),[g,x]=j.useState(0),[b,w]=j.useState(0),[N,S]=j.useState(!1),[_,C]=j.useState(!1),$=Ge(t,E=>c(E)),k=bl(a);return r.jsx(Wme,{scope:n,type:s,dir:k,scrollHideDelay:i,scrollArea:l,viewport:d,onViewportChange:u,content:h,onContentChange:f,scrollbarX:m,onScrollbarXChange:y,scrollbarXEnabled:N,onScrollbarXEnabledChange:S,scrollbarY:p,onScrollbarYChange:v,scrollbarYEnabled:_,onScrollbarYEnabledChange:C,onCornerWidthChange:x,onCornerHeightChange:w,children:r.jsx(we.div,{dir:k,...o,ref:$,style:{position:"relative","--radix-scroll-area-corner-width":g+"px","--radix-scroll-area-corner-height":b+"px",...e.style}})})});tI.displayName=Jj;var rI="ScrollAreaViewport",nI=j.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:s,nonce:a,...i}=e,o=os(rI,n),l=j.useRef(null),c=Ge(t,l,o.onViewportChange);return r.jsxs(r.Fragment,{children:[r.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),r.jsx(we.div,{"data-radix-scroll-area-viewport":"",...i,ref:c,style:{overflowX:o.scrollbarXEnabled?"scroll":"hidden",overflowY:o.scrollbarYEnabled?"scroll":"hidden",...e.style},children:r.jsx("div",{ref:o.onContentChange,style:{minWidth:"100%",display:"table"},children:s})})]})});nI.displayName=rI;var xa="ScrollAreaScrollbar",eN=j.forwardRef((e,t)=>{const{forceMount:n,...s}=e,a=os(xa,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:o}=a,l=e.orientation==="horizontal";return j.useEffect(()=>(l?i(!0):o(!0),()=>{l?i(!1):o(!1)}),[l,i,o]),a.type==="hover"?r.jsx(Ume,{...s,ref:t,forceMount:n}):a.type==="scroll"?r.jsx(qme,{...s,ref:t,forceMount:n}):a.type==="auto"?r.jsx(sI,{...s,ref:t,forceMount:n}):a.type==="always"?r.jsx(tN,{...s,ref:t}):null});eN.displayName=xa;var Ume=j.forwardRef((e,t)=>{const{forceMount:n,...s}=e,a=os(xa,e.__scopeScrollArea),[i,o]=j.useState(!1);return j.useEffect(()=>{const l=a.scrollArea;let c=0;if(l){const d=()=>{window.clearTimeout(c),o(!0)},u=()=>{c=window.setTimeout(()=>o(!1),a.scrollHideDelay)};return l.addEventListener("pointerenter",d),l.addEventListener("pointerleave",u),()=>{window.clearTimeout(c),l.removeEventListener("pointerenter",d),l.removeEventListener("pointerleave",u)}}},[a.scrollArea,a.scrollHideDelay]),r.jsx(or,{present:n||i,children:r.jsx(sI,{"data-state":i?"visible":"hidden",...s,ref:t})})}),qme=j.forwardRef((e,t)=>{const{forceMount:n,...s}=e,a=os(xa,e.__scopeScrollArea),i=e.orientation==="horizontal",o=Tx(()=>c("SCROLL_END"),100),[l,c]=Bme("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return j.useEffect(()=>{if(l==="idle"){const d=window.setTimeout(()=>c("HIDE"),a.scrollHideDelay);return()=>window.clearTimeout(d)}},[l,a.scrollHideDelay,c]),j.useEffect(()=>{const d=a.viewport,u=i?"scrollLeft":"scrollTop";if(d){let h=d[u];const f=()=>{const m=d[u];h!==m&&(c("SCROLL"),o()),h=m};return d.addEventListener("scroll",f),()=>d.removeEventListener("scroll",f)}},[a.viewport,i,c,o]),r.jsx(or,{present:n||l!=="hidden",children:r.jsx(tN,{"data-state":l==="hidden"?"hidden":"visible",...s,ref:t,onPointerEnter:me(e.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:me(e.onPointerLeave,()=>c("POINTER_LEAVE"))})})}),sI=j.forwardRef((e,t)=>{const n=os(xa,e.__scopeScrollArea),{forceMount:s,...a}=e,[i,o]=j.useState(!1),l=e.orientation==="horizontal",c=Tx(()=>{if(n.viewport){const d=n.viewport.offsetWidth<n.viewport.scrollWidth,u=n.viewport.offsetHeight<n.viewport.scrollHeight;o(l?d:u)}},10);return ed(n.viewport,c),ed(n.content,c),r.jsx(or,{present:s||i,children:r.jsx(tN,{"data-state":i?"visible":"hidden",...a,ref:t})})}),tN=j.forwardRef((e,t)=>{const{orientation:n="vertical",...s}=e,a=os(xa,e.__scopeScrollArea),i=j.useRef(null),o=j.useRef(0),[l,c]=j.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),d=cI(l.viewport,l.content),u={...s,sizes:l,onSizesChange:c,hasThumb:d>0&&d<1,onThumbChange:f=>i.current=f,onThumbPointerUp:()=>o.current=0,onThumbPointerDown:f=>o.current=f};function h(f,m){return Kme(f,o.current,l,m)}return n==="horizontal"?r.jsx(Hme,{...u,ref:t,onThumbPositionChange:()=>{if(a.viewport&&i.current){const f=a.viewport.scrollLeft,m=J3(f,l,a.dir);i.current.style.transform=`translate3d(${m}px, 0, 0)`}},onWheelScroll:f=>{a.viewport&&(a.viewport.scrollLeft=f)},onDragScroll:f=>{a.viewport&&(a.viewport.scrollLeft=h(f,a.dir))}}):n==="vertical"?r.jsx(zme,{...u,ref:t,onThumbPositionChange:()=>{if(a.viewport&&i.current){const f=a.viewport.scrollTop,m=J3(f,l);i.current.style.transform=`translate3d(0, ${m}px, 0)`}},onWheelScroll:f=>{a.viewport&&(a.viewport.scrollTop=f)},onDragScroll:f=>{a.viewport&&(a.viewport.scrollTop=h(f))}}):null}),Hme=j.forwardRef((e,t)=>{const{sizes:n,onSizesChange:s,...a}=e,i=os(xa,e.__scopeScrollArea),[o,l]=j.useState(),c=j.useRef(null),d=Ge(t,c,i.onScrollbarXChange);return j.useEffect(()=>{c.current&&l(getComputedStyle(c.current))},[c]),r.jsx(iI,{"data-orientation":"horizontal",...a,ref:d,sizes:n,style:{bottom:0,left:i.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:i.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Ex(n)+"px",...e.style},onThumbPointerDown:u=>e.onThumbPointerDown(u.x),onDragScroll:u=>e.onDragScroll(u.x),onWheelScroll:(u,h)=>{if(i.viewport){const f=i.viewport.scrollLeft+u.deltaX;e.onWheelScroll(f),uI(f,h)&&u.preventDefault()}},onResize:()=>{c.current&&i.viewport&&o&&s({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:Wp(o.paddingLeft),paddingEnd:Wp(o.paddingRight)}})}})}),zme=j.forwardRef((e,t)=>{const{sizes:n,onSizesChange:s,...a}=e,i=os(xa,e.__scopeScrollArea),[o,l]=j.useState(),c=j.useRef(null),d=Ge(t,c,i.onScrollbarYChange);return j.useEffect(()=>{c.current&&l(getComputedStyle(c.current))},[c]),r.jsx(iI,{"data-orientation":"vertical",...a,ref:d,sizes:n,style:{top:0,right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Ex(n)+"px",...e.style},onThumbPointerDown:u=>e.onThumbPointerDown(u.y),onDragScroll:u=>e.onDragScroll(u.y),onWheelScroll:(u,h)=>{if(i.viewport){const f=i.viewport.scrollTop+u.deltaY;e.onWheelScroll(f),uI(f,h)&&u.preventDefault()}},onResize:()=>{c.current&&i.viewport&&o&&s({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:Wp(o.paddingTop),paddingEnd:Wp(o.paddingBottom)}})}})}),[Gme,aI]=eI(xa),iI=j.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:s,hasThumb:a,onThumbChange:i,onThumbPointerUp:o,onThumbPointerDown:l,onThumbPositionChange:c,onDragScroll:d,onWheelScroll:u,onResize:h,...f}=e,m=os(xa,n),[y,p]=j.useState(null),v=Ge(t,$=>p($)),g=j.useRef(null),x=j.useRef(""),b=m.viewport,w=s.content-s.viewport,N=Kt(u),S=Kt(c),_=Tx(h,10);function C($){if(g.current){const k=$.clientX-g.current.left,E=$.clientY-g.current.top;d({x:k,y:E})}}return j.useEffect(()=>{const $=k=>{const E=k.target;(y==null?void 0:y.contains(E))&&N(k,w)};return document.addEventListener("wheel",$,{passive:!1}),()=>document.removeEventListener("wheel",$,{passive:!1})},[b,y,w,N]),j.useEffect(S,[s,S]),ed(y,_),ed(m.content,_),r.jsx(Gme,{scope:n,scrollbar:y,hasThumb:a,onThumbChange:Kt(i),onThumbPointerUp:Kt(o),onThumbPositionChange:S,onThumbPointerDown:Kt(l),children:r.jsx(we.div,{...f,ref:v,style:{position:"absolute",...f.style},onPointerDown:me(e.onPointerDown,$=>{$.button===0&&($.target.setPointerCapture($.pointerId),g.current=y.getBoundingClientRect(),x.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",m.viewport&&(m.viewport.style.scrollBehavior="auto"),C($))}),onPointerMove:me(e.onPointerMove,C),onPointerUp:me(e.onPointerUp,$=>{const k=$.target;k.hasPointerCapture($.pointerId)&&k.releasePointerCapture($.pointerId),document.body.style.webkitUserSelect=x.current,m.viewport&&(m.viewport.style.scrollBehavior=""),g.current=null})})})}),Bp="ScrollAreaThumb",oI=j.forwardRef((e,t)=>{const{forceMount:n,...s}=e,a=aI(Bp,e.__scopeScrollArea);return r.jsx(or,{present:n||a.hasThumb,children:r.jsx(Yme,{ref:t,...s})})}),Yme=j.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:s,...a}=e,i=os(Bp,n),o=aI(Bp,n),{onThumbPositionChange:l}=o,c=Ge(t,h=>o.onThumbChange(h)),d=j.useRef(void 0),u=Tx(()=>{d.current&&(d.current(),d.current=void 0)},100);return j.useEffect(()=>{const h=i.viewport;if(h){const f=()=>{if(u(),!d.current){const m=Qme(h,l);d.current=m,l()}};return l(),h.addEventListener("scroll",f),()=>h.removeEventListener("scroll",f)}},[i.viewport,u,l]),r.jsx(we.div,{"data-state":o.hasThumb?"visible":"hidden",...a,ref:c,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...s},onPointerDownCapture:me(e.onPointerDownCapture,h=>{const m=h.target.getBoundingClientRect(),y=h.clientX-m.left,p=h.clientY-m.top;o.onThumbPointerDown({x:y,y:p})}),onPointerUp:me(e.onPointerUp,o.onThumbPointerUp)})});oI.displayName=Bp;var rN="ScrollAreaCorner",lI=j.forwardRef((e,t)=>
758{const n=os(rN,e.__scopeScrollArea),s=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&s?r.jsx(Vme,{...e,ref:t}):null});lI.displayName=rN;var Vme=j.forwardRef((e,t)=>{const{__scopeScrollArea:n,...s}=e,a=os(rN,n),[i,o]=j.useState(0),[l,c]=j.useState(0),d=!!(i&&l);return ed(a.scrollbarX,()=>{var h;const u=((h=a.scrollbarX)==null?void 0:h.offsetHeight)||0;a.onCornerHeightChange(u),c(u)}),ed(a.scrollbarY,()=>{var h;const u=((h=a.scrollbarY)==null?void 0:h.offsetWidth)||0;a.onCornerWidthChange(u),o(u)}),d?r.jsx(we.div,{...s,ref:t,style:{width:i,height:l,position:"absolute",right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function Wp(e){return e?parseInt(e,10):0}function cI(e,t){const n=e/t;return isNaN(n)?0:n}function Ex(e){const t=cI(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,s=(e.scrollbar.size-n)*t;return Math.max(s,18)}function Kme(e,t,n,s="ltr"){const a=Ex(n),i=a/2,o=t||i,l=a-o,c=n.scrollbar.paddingStart+o,d=n.scrollbar.size-n.scrollbar.paddingEnd-l,u=n.content-n.viewport,h=s==="ltr"?[0,u]:[u*-1,0];return dI([c,d],h)(e)}function J3(e,t,n="ltr"){const s=Ex(t),a=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-a,o=t.content-t.viewport,l=i-s,c=n==="ltr"?[0,o]:[o*-1,0],d=V0(e,c);return dI([0,o],[0,l])(d)}function dI(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const s=(t[1]-t[0])/(e[1]-e[0]);return t[0]+s*(n-e[0])}}function uI(e,t){return e>0&&e<t}var Qme=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},s=0;return function a(){const i={left:e.scrollLeft,top:e.scrollTop},o=n.left!==i.left,l=n.top!==i.top;(o||l)&&t(),n=i,s=window.requestAnimationFrame(a)}(),()=>window.cancelAnimationFrame(s)};function Tx(e,t){const n=Kt(e),s=j.useRef(0);return j.useEffect(()=>()=>window.clearTimeout(s.current),[]),j.useCallback(()=>{window.clearTimeout(s.current),s.current=window.setTimeout(n,t)},[n,t])}function ed(e,t){const n=Kt(t);Qt(()=>{let s=0;if(e){const a=new ResizeObserver(()=>{cancelAnimationFrame(s),s=window.requestAnimationFrame(n)});return a.observe(e),()=>{window.cancelAnimationFrame(s),a.unobserve(e)}}},[e,n])}var hI=tI,Zme=nI,Xme=lI;const mI=j.forwardRef(({className:e,children:t,...n},s)=>r.jsxs(hI,{ref:s,className:le("relative overflow-hidden",e),...n,children:[r.jsx(Zme,{className:"h-full w-full rounded-[inherit]",children:t}),r.jsx(fI,{}),r.jsx(Xme,{})]}));mI.displayName=hI.displayName;const fI=j.forwardRef(({className:e,orientation:t="vertical",...n},s)=>r.jsx(eN,{ref:s,orientation:t,className:le("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...n,children:r.jsx(oI,{className:"relative flex-1 rounded-full bg-border"})}));fI.displayName=eN.displayName;const Jme=e=>({page_slug:e,page_title:"",meta_title:"",meta_description:"",meta_keywords:"",canonical_url:"",og_image_url:"",robots_meta:"index, follow"}),efe=()=>{const{user:e}=sn(),{toast:t}=Lt(),{seoSettings:n,publicPages:s,loading:a,uploading:i,gaTrackingCode:o,headCode:l,bodyStartCode:c,fetchSEOSettings:d,saveSEOSettings:u,uploadSEOImage:h,deleteSEOImage:f,saveGATrackingCode:m,saveCustomCode:y}=Lme(),[p,v]=j.useState("/"),[g,x]=j.useState(Jme("/")),[b,w]=j.useState(!1),[N,S]=j.useState(""),[_,C]=j.useState(!0),[$,k]=j.useState(!1),[E,T]=j.useState(""),[O,A]=j.useState(""),[U,z]=j.useState(!1);j.useEffect(()=>{S(o||"")},[o]),j.useEffect(()=>{T(l||"")},[l]),j.useEffect(()=>{A(c||"")},[c]);const W=j.useMemo(()=>{const M=new Map;return n.forEach(Q=>M.set(Q.page_slug,Q)),M},[n]);j.useEffect(()=>{const M=W.get(p),Q=s.find(X=>X.slug===p);x({page_slug:p,page_title:(M==null?void 0:M.page_title)||(Q==null?void 0:Q.title)||"",meta_title:(M==null?void 0:M.meta_title)||"",meta_description:(M==null?void 0:M.meta_description)||"",meta_keywords:(M==null?void 0:M.meta_keywords)||"",canonical_url:(M==null?void 0:M.canonical_url)||"",og_image_url:(M==null?void 0:M.og_image_url)||"",robots_meta:(M==null?void 0:M.robots_meta)||"index, follow"})},[p,W]);const B=(M,Q)=>x(X=>({...X,[M]:Q})),R=async()=>{w(!0);try{await u(g.page_slug,{page_title:g.page_title||null,meta_title:g.meta_title||null,meta_description:g.meta_description||null,meta_keywords:g.meta_keywords||null,canonical_url:g.canonical_url||null,og_image_url:g.og_image_url||null,robots_meta:g.robots_meta||"index, follow"}),g.page_slug==="__default__"&&t({title:"Saved",description:"Site default SEO updated."})}catch{}finally{w(!1)}},D=async M=>{try{const Q=await h(M,g.page_slug.replace(/\//g,"_")||"root");B("og_image_url",Q),t({title:"Image uploaded",description:"Remember to save the page settings."})}catch{}},P=async()=>{g.og_image_url&&await f(g.og_image_url),B("og_image_url","")},I=async()=>{k(!0);try{await m(N,_)}catch{}finally{k(!1)}},F=async()=>{z(!0);try{await y(E,O)}catch{}finally{z(!1)}},Y=g.meta_title.length,H=g.meta_description.length,L=(M,Q,X)=>M===0?"text-muted-foreground":M<Q||M>X?"text-destructive":"text-primary";return r.jsx(Nt,{children:r.jsxs("div",{className:"min-h-screen flex w-full",children:[r.jsx(kt,{}),r.jsxs("div",{className:"flex-1 flex flex-col",children:[r.jsxs("header",{className:"h-16 border-b flex items-center px-6 bg-background",children:[r.jsx(Tr,{className:"mr-4"}),r.jsx("h1",{className:"text-2xl font-semibold",children:"SEO Settings"}),r.jsxs("div",{className:"ml-auto flex items-center gap-4",children:[r.jsx("span",{className:"text-sm text-muted-foreground hidden md:inline",children:(e==null?void 0:e.email)||"Admin"}),r.jsxs(te,{variant:"outline",size:"sm",onClick:()=>d(),children:[r.jsx(Mn,{className:"h-4 w-4 mr-2"}),"Refresh"]})]})]}),r.jsx("main",{className:"flex-1 p-6",children:a?r.jsx("div",{className:"flex items-center justify-center py-24",children:r.jsx("div",{className:"animate-spin rounded-full h-16 w-16 border-b-2 border-primary"})}):r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[280px_1fr] gap-6",children:[r.jsxs(G,{className:"h-fit",children:[r.jsxs(Ie,{children:[r.jsxs(Me,{className:"flex items-center gap-2 text-base",children:[r.jsx(ug,{className:"w-4 h-4"}),"Pages"]}),r.jsx(dt,{children:"Select a page to edit its metadata"})]}),r.jsx(Ne,{className:"p-0",children:r.jsx(mI,{className:"h-[520px]",children:r.jsx("div",{className:"px-3 pb-3 space-y-1",children:s.map(M=>{var re;const Q=(re=W.get(M.slug))==null?void 0:re.id,X=p===M.slug;return r.jsxs("button",{onClick:()=>v(M.slug),className:`w-full text-left px-3 py-2 rounded-md text-sm transition-colors flex items-center justify-between gap-2 ${X?"bg-primary text-primary-foreground":"hover:bg-muted text-foreground"}`,children:[r.jsx("span",{className:"truncate",children:M.title}),Q&&r.jsx(it,{variant:X?"secondary":"outline",className:"text-[10px] shrink-0",children:"set"})]},M.slug)})})})})]}),r.jsxs("div",{className:"space-y-6",children:[r.jsxs(G,{children:[r.jsx(Ie,{children:r.jsxs("div",{className:"flex items-start justify-between gap-4",children:[r.jsxs("div",{children:[r.jsx(Me,{children:g.page_title||p}),r.jsx(dt,{className:"font-mono text-xs mt-1",children:p})]}),p!=="__default__"&&r.jsxs(te,{variant:"outline",size:"sm",onClick:()=>window.open(p,"_blank"),children:[r.jsx(Cr,{className:"h-4 w-4 mr-2"}),"View"]}
758)]})}),r.jsxs(Ne,{className:"space-y-5",children:[r.jsxs("div",{className:"space-y-2",children:[r.jsx(oe,{htmlFor:"page_title",children:"Internal page name"}),r.jsx(je,{id:"page_title",value:g.page_title,onChange:M=>B("page_title",M.target.value),placeholder:"Home"})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx(oe,{htmlFor:"meta_title",children:"Meta title"}),r.jsxs("span",{className:`text-xs ${L(Y,50,60)}`,children:[Y,"/60"]})]}),r.jsx(je,{id:"meta_title",value:g.meta_title,onChange:M=>B("meta_title",M.target.value),placeholder:"Page Title | Simple Operations"}),r.jsx("p",{className:"text-xs text-muted-foreground",children:"Aim for 50â60 characters."})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx(oe,{htmlFor:"meta_description",children:"Meta description"}),r.jsxs("span",{className:`text-xs ${L(H,150,160)}`,children:[H,"/160"]})]}),r.jsx(bn,{id:"meta_description",rows:3,value:g.meta_description,onChange:M=>B("meta_description",M.target.value),placeholder:"A concise summary of this page."}),r.jsx("p",{className:"text-xs text-muted-foreground",children:"Aim for 150â160 characters."})]}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[r.jsxs("div",{className:"space-y-2",children:[r.jsx(oe,{htmlFor:"meta_keywords",children:"Keywords"}),r.jsx(je,{id:"meta_keywords",value:g.meta_keywords,onChange:M=>B("meta_keywords",M.target.value),placeholder:"operations, systems, scaling"})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(oe,{htmlFor:"robots_meta",children:"Robots"}),r.jsx(je,{id:"robots_meta",value:g.robots_meta,onChange:M=>B("robots_meta",M.target.value),placeholder:"index, follow"}),r.jsx("p",{className:"text-xs text-muted-foreground",children:'Use "noindex, nofollow" to hide a page from search.'})]})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(oe,{htmlFor:"canonical_url",children:"Canonical URL"}),r.jsx(je,{id:"canonical_url",value:g.canonical_url,onChange:M=>B("canonical_url",M.target.value),placeholder:"https://simpleoperations.com/scale"}),r.jsx("p",{className:"text-xs text-muted-foreground",children:"Leave blank to use the page's own URL."})]}),r.jsx(Cj,{}),r.jsxs("div",{className:"space-y-3",children:[r.jsx(oe,{children:"Social share image (1200Ã630)"}),g.og_image_url?r.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 sm:items-center",children:[r.jsx("img",{src:g.og_image_url,alt:`Social share preview for ${g.page_title||p}`,className:"w-56 aspect-[1200/630] object-cover rounded-md border",loading:"lazy"}),r.jsxs(te,{variant:"outline",size:"sm",onClick:P,children:[r.jsx(Oh,{className:"h-4 w-4 mr-2"}),"Remove image"]})]}):r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx(je,{type:"file",accept:"image/*",disabled:i,onChange:M=>{var X;const Q=(X=M.target.files)==null?void 0:X[0];Q&&D(Q)},className:"max-w-sm"}),i&&r.jsxs("span",{className:"text-sm text-muted-foreground flex items-center gap-2",children:[r.jsx(bw,{className:"h-4 w-4 animate-pulse"})," Uploadingâ¦"]})]})]}),r.jsx("div",{className:"pt-2",children:r.jsx(te,{onClick:R,disabled:b,children:b?r.jsxs(r.Fragment,{children:[r.jsx(Mn,{className:"w-4 h-4 mr-2 animate-spin"}),"Savingâ¦"]}):r.jsxs(r.Fragment,{children:[r.jsx(Lr,{className:"w-4 h-4 mr-2"}),"Save page SEO"]})})})]})]}),r.jsxs(G,{children:[r.jsxs(Ie,{children:[r.jsxs(Me,{className:"flex items-center gap-2",children:[r.jsx(og,{className:"w-5 h-5"}),"Analytics tracking code"]}),r.jsx(dt,{children:"Paste your GA4 or Google Tag Manager snippet. It loads on every public page."})]}),r.jsxs(Ne,{className:"space-y-4",children:[r.jsx(bn,{rows:6,value:N,onChange:M=>S(M.target.value),placeholder:"<!-- Google tag (gtag.js) -->",className:"font-mono text-xs"}),r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx(ha,{id:"ga_enabled",checked:_,onCheckedChange:C}),r.jsx(oe,{htmlFor:"ga_enabled",children:"Tracking enabled"})]}),r.jsx(te,{onClick:I,disabled:$,variant:"outline",children:$?r.jsxs(r.Fragment,{children:[r.jsx(Mn,{className:"w-4 h-4 mr-2 animate-spin"}),"Savingâ¦"]}):r.jsxs(r.Fragment,{children:[r.jsx(Lr,{className:"w-4 h-4 mr-2"}),"Save analytics settings"]})})]})]}),r.jsxs(G,{children:[r.jsxs(Ie,{children:[r.jsxs(Me,{className:"flex items-center gap-2",children:[r.jsx(lE,{className:"w-5 h-5"}),"Custom header & body code"]}),r.jsx(dt,{children:"Paste verification tags, pixels, chat widgets or scripts. Header co
758de is added to <head>; body code is inserted right after the opening <body> tag on every public page."})]}),r.jsxs(Ne,{className:"space-y-5",children:[r.jsxs("div",{className:"space-y-2",children:[r.jsx(oe,{htmlFor:"head_code",children:"Header code (<head>)"}),r.jsx(bn,{id:"head_code",rows:8,value:E,onChange:M=>T(M.target.value),placeholder:`<meta name="facebook-domain-verification" content="..." /> 759<script>/* pixel */<\/script>`,className:"font-mono text-xs"})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(oe,{htmlFor:"body_code",children:"Body start code (after <body>)"}),r.jsx(bn,{id:"body_code",rows:8,value:O,onChange:M=>A(M.target.value),placeholder:'
vendor: 67 bytes, line 759
759<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=
759GTM-XXXX
vendor: 82 bytes, line 759
759" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
759',className:"font-mono text-xs"})]}),r.jsx("p",{className:"text-xs text-muted-foreground",children:"Only paste code from sources you trust â it runs on every public page."}),r.jsx(te,{onClick:F,disabled:U,variant:"outline",children:U?r.jsxs(r.Fragment,{children:[r.jsx(Mn,{className:"w-4 h-4 mr-2 animate-spin"}),"Savingâ¦"]}):r.jsxs(r.Fragment,{children:[r.jsx(Lr,{className:"w-4 h-4 mr-2"}),"Save custom code"]})})]})]})]})]})})]})]})})},tfe=()=>{const[e,t]=j.useState(""),[n,s]=j.useState(!0);j.useEffect(()=>{a()},[]);const a=async()=>{try{const{data:i,error:o}=await ve.from("admin_settings").select("setting_value").eq("setting_key","privacy_policy").single();if(o&&o.code!=="PGRST116")throw o;i!=null&&i.setting_value?t(i.setting_value):t(` 760 <h2>Privacy Policy</h2> 761 <p><strong>Last updated:</strong> ${new Date().toLocaleDateString()}</p> 762 763 <h3>Information We Collect</h3> 764 <p>We collect information you provide directly to us, such as when you create an account, make a purchase, or contact us for support.</p> 765 766 <h3>How We Use Your Information</h3> 767 <p>We use the information we collect to provide, maintain, and improve our services.</p> 768 769 <h3>Information Sharing</h3> 770 <p>We do not sell, trade, or otherwise transfer your personal information to third parties without your consent.</p> 771 772 <h3>Contact Us</h3> 773 <p>If you have any questions about this Privacy Policy, please contact us at [email protected]</p> 774 `)}catch(i){console.error("Error fetching privacy policy:",i),t(` 775 <h2>Privacy Policy</h2> 776 <p>We are committed to protecting your privacy. Please contact us at [email protected] for more information about our privacy practices.</p> 777 `)}finally{s(!1)}};return r.jsxs("div",{className:"min-h-screen",children:[r.jsx(_t,{}),r.jsx("main",{className:"pt-24 pb-16",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsxs("div",{className:"max-w-4xl mx-auto",children:[r.jsxs("div",{className:"text-center mb-12",children:[r.jsx("div",{className:"flex items-center justify-center mb-4",children:r.jsx(Wn,{className:"w-12 h-12 text-primary"})}),r.jsx("h1",{className:"text-4xl md:text-5xl font-bold text-foreground mb-4",children:"Privacy Policy"}),r.jsx("p",{className:"text-xl text-muted-foreground",children:"We're committed to protecting your privacy and personal information."})]}),r.jsx(G,{children:r.jsx(Ne,{className:"p-8",children:n?r.jsxs("div",{className:"text-center py-12",children:[r.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary mx-auto"}),r.jsx("p",{className:"mt-4 text-muted-foreground",children:"Loading privacy policy..."})]}):r.jsx("div",{className:"prose prose-lg max-w-none dark:prose-invert",dangerouslySetInnerHTML:{__html:mx.sanitize(e)}})})})]})})}),r.jsx(ht,{})]})},rfe=()=>{const[e,t]=j.useState(""),[n,s]=j.useState(!0);j.useEffect(()=>{a()},[]);const a=async()=>{try{const{data:i,error:o}=await ve.from("admin_settings").select("setting_value").eq("setting_key","terms_of_service").single();if(o&&o.code!=="PGRST116")throw o;i!=null&&i.setting_value?t(i.setting_value):t(` 778 <h2>Terms of Service</h2> 779 <p><strong>Last updated:</strong> ${new Date().toLocaleDateString()}</p> 780 781 <h3>Acceptance of Terms</h3> 782 <p>By accessing and using this website, you accept and agree to be bound by the terms and provision of this agreement.</p> 783 784 <h3>Use License</h3> 785 <p>Permission is granted to temporarily download one copy of the materials on Simple Operations' website for personal, non-commercial transitory viewing only.</p> 786 787 <h3>Disclaimer</h3> 788 <p>The materials on Simple Operations' website are provided on an 'as is' basis. Simple Operations makes no warranties, expressed or implied.</p> 789 790 <h3>Limitations</h3> 791 <p>In no event shall Simple Operations or its suppliers be liable for any damages arising out of the use or inability to use the materials on this website.</p> 792 793 <h3>Contact Information</h3> 794 <p>If you have any questions about these Terms of Service, please contact us at [email protected]</p> 795 `)}catch(i){console.error("Error fetching terms of service:",i),t(` 796 <h2>Terms of Service</h2> 797 <p>Please contact us at [email protected] for our current terms of service.</p> 798 `)}finally{s(!1)}};return r.jsxs("div",{className:"min-h-screen",children:[r.jsx(_t,{}),r.jsx("main",{className:"pt-24 pb-16",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsxs("div",{className:"max-w-4xl mx-auto",children:[r.jsxs("div",{className:"text-center mb-12",children:[r.jsx("div",{className:"flex items-center justify-center mb-4",children:r.jsx(Ko,{className:"w-12 h-12 text-primary"})}),r.jsx("h1",{className:"text-4xl md:text-5xl font-bold text-foreground mb-4",children:"Terms of Service"}),r.jsx("p",{className:"text-xl text-muted-foreground",children:"The terms and conditions for using our website and services."})]}),r.jsx(G,{children:r.jsx(Ne,{className:"p-8",children:n?r.jsxs("div",{className:"text-center py-12",children:[r.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary mx-auto"}),r.jsx("p",{className:"mt-4 text-muted-foreground",children:"Loading terms of service..."})]}):r.jsx("div",{className:"prose prose-lg max-w-none dark:prose-invert",dangerouslySetInnerHTML:{__html:mx.sanitize(e)}})})})]})})}),r.jsx(ht,{})]})},pI=({customerEmail:e,customerName:t,productIdentifier:n,disabled:s=!1})=>{const[a,i]=j.useState(null),{toast:o}=Lt(),{data:l,isLoading:c}=$s({queryKey:["stripe-product",n],queryFn:async()=>{const{data:b,error:w}=await ve.from("stripe_products").select("*").eq("is_active",!0).eq("product_identifier",n).single();if(w)throw w;return b}}),d=async b=>{i(b);try{const{data:w,error:N}=await ve.functions.invoke("create-stripe-checkout",{body:{paymentType:b,customerEmail:e,customerName:t,productIdentifier:n}});if(N)throw N;if(w!=null&&w.url)window.location.href=w.url;else throw new Error("No checkout URL returned")}catch(w){console.error("Checkout error:",w),o({title:"Error",description:w.message||"Failed to create checkout session",variant:"destructive"}),i(null)}};if(c)return r.jsx("div",{className:"flex items-center justify-center p-12",children:r.jsx(wt,{className:"h-8 w-8 animate-spin text-primary"})});if(!l)return r.jsx(G,{className:"p-8 text-center",children:r.jsxs("p",{className:"text-muted-foreground",children:["Checkout is temporarily unavailable. Please contact us at"," ",r.jsx("a",{href:"mailto:[email protected]",className:"text-primary hover:underline",children:"[email protected]"})]})});const u=l.one_pay_price,h=l.two_pay_price,f=l.three_pay_price,m=h||f,y=h||f,p=h?2:3,v=h?"two_pay":"three_pay",g=y?y*p:0,x=g-u;return r.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[r.jsxs(G,{className:"p-8 relative border-2 border-primary",children:[r.jsx("div",{className:"absolute -top-3 left-1/2 -translate-x-1/2 bg-primary text-primary-foreground px-4 py-1 rounded-full text-sm font-semibold",children:"Best Value"}),r.jsxs("div",{className:"text-center mb-6",children:[r.jsx("h3",{className:"text-2xl font-bold mb-2",children:"Pay in Full"}),r.jsx("div",{className:"mb-4",children:r.jsxs("span",{className:"text-5xl font-bold",children:["$",u]})}),r.jsxs("p",{className:"text-sm text-muted-foreground",children:["Save $",x," with one payment"]})]}),r.jsxs("ul",{className:"space-y-3 mb-8",children:[r.jsxs("li",{className:"flex items-start gap-2",children:[r.jsx(_e,{className:"h-5 w-5 text-primary flex-shrink-0 mt-0.5"}),r.jsx("span",{children:"Immediate full access"})]}),r.jsxs("li",{className:"flex items-start gap-2",children:[r.jsx(_e,{className:"h-5 w-5 text-primary flex-shrink-0 mt-0.5"}),r.jsx("span",{children:"All course materials"})]}),r.jsxs("li",{className:"flex items-start gap-2",children:[r.jsx(_e,{className:"h-5 w-5 text-primary flex-shrink-0 mt-0.5"}),r.jsx("span",{children:"Live coaching sessions"})]}),r.jsxs("li",{className:"flex items-start gap-2",children:[r.jsx(_e,{className:"h-5 w-5 text-primary flex-shrink-0 mt-0.5"}),r.jsx("span",{children:"Private community access"})]})]}),r.jsx(te,{size:"lg",className:"w-full",onClick:()=>d("one_pay"),disabled:s||a!==null,children:a==="one_pay"?r.jsxs(r.Fragment,{children:[r.jsx(wt,{className:"mr-2 h-5 w-5 animate-spin"}),"Processing..."]}):`Pay $${u}`})]}),m&&r.jsxs(G,{className:"p-8",children:[r.jsxs("div",{className:"text-center mb-6",children:[r.jsxs("h3",{className:"text-2xl font-bold mb-2",children:[p," Monthly Payments"]}),r.jsxs("div",{className:"mb-4",children:[r.jsxs("span",{className:"text-5xl font-bold",children:["$",y]}),r.jsx("span",{className:"text-xl text-muted-foreground",children:"/mo"})]}),r.jsxs("p",{className:"text-sm text-muted-foreground",children:["Total: $",g," ($",Math.abs(x)," more than one-pay)"]})]}),r.jsxs("ul",{className:"space-y-3 mb-8",children:[r.jsxs("li",{className:"flex items-start gap-2",children:[r.jsx(_e,{className:"h-5 w-5 text-primary flex-shrink-0 mt-0.5"}),r.jsxs("span",{children:["Spread payments over ",p," months"]})]}),r.jsxs("li",{className:"flex items-start gap-2",children:[r.jsx(_e,{className:"h-5 w-5 text-primary flex-shrink-0 mt-0.5"}),r.jsx("span",{children:"All course materials"})]}),r.jsxs("li",{className:"flex items-start gap-2",children:[r.jsx(_e,{className:"h-5 w-5 text-primary flex-shrink-0 mt-0.5"}),r.jsx("span",{children:"Live coaching sessions"})]}),r.jsxs("li",{className:"flex items-start gap-2",children:[r.jsx(_e,{className:"h-5 w-5 text-primary flex-shrink-0 mt-0.5"}),r.jsx("span",{children:"Private community access"})]})]}),r.jsx(te,{size:"lg",variant:"outline",className:"w-full",onClick:()=>d(v),disabled:s||a!==null,children:a===v?r.jsxs(r.Fragment,{children:[r.jsx(wt,{className:"mr-2 h-5 w-5 animate-spin"}),"Processing..."]}):`Start with $${y}/mo`}),r.jsxs("p",{className:"text-xs text-center text-muted-foreground mt-2",children:["Automatically stops after ",p," payments"]})]})]})};function nfe(){const[e,t]=j.useState(!1),{getTestimonialsByKey:n,getTestimonialData:s}=Nl(),a=n(["quantum-flow-method-testimonial-1","quantum-flow-method-testimonial-2","quantum-flow-method-testimonial-3","quantum-flow-method-testimonial-4"]),i=[s("quantum-flow-testimonial-brian")||{name:"Brian",title:"Management Consulting",result:"$2.3M â $3.1M",quote:"Day 12 was the turning point. Zero decision fatigue by noon for the first time in years. Six months later, revenue grew 35% while working 8 fewer hours weekly."},s("quantum-flow-testimonial-amanda")||{name:"Amanda",title:"Digital Marketing Agency",result:"$750K â $1.2M",quote:"The EPT assessment was life-changing. Within three weeks, I had 4
798-5 hours daily of pure strategic thinking time. My team started taking ownership because I had clarity to give them direction."},s("quantum-flow-testimonial-sarah")||{name:"Sarah",title:"Professional Services",result:"$1.2M â $1.7M",quote:"The assessments showed me exactly where I was bleeding strategic energy. The result? 42% revenue growth in eight months and my first real vacation in four years."}];return j.useEffect(()=>{window.scrollTo(0,0)},[]),r.jsxs(r.Fragment,{children:[r.jsxs(hd,{children:[r.jsx("title",{children:"Quantum Flow Planning Course - Master Daily Planning & Eliminate Decision Fatigue"}),r.jsx("meta",{name:"description",content:"Install the 30-day personal operating system that eliminates decision fatigue forever. Built specifically for Entrepreneurial Personality Types. $27/month."}),r.jsx("meta",{name:"keywords",content:"daily planning, decision fatigue, quantum flow, entrepreneur planning system, strategic thinking"})]}),r.jsxs("div",{className:"min-h-screen bg-background",children:[r.jsx(_t,{}),r.jsx("section",{className:"relative py-12 md:py-20 px-4 bg-gradient-to-b from-primary/5 to-background pt-24 md:pt-32",children:r.jsxs("div",{className:"max-w-4xl mx-auto",children:[r.jsx("div",{className:"mb-8 md:mb-12 rounded-2xl overflow-hidden shadow-2xl",children:r.jsx("img",{src:h0,alt:"Overwhelmed entrepreneur surrounded by chaos - multiple monitors, sticky notes, and decision fatigue",className:"w-full h-[300px] md:h-[500px] object-cover"})}),r.jsxs("div",{className:"text-center",children:[r.jsx("p",{className:"text-xs sm:text-sm uppercase tracking-wider text-primary font-semibold mb-4 leading-relaxed",children:"Master the Daily Planning System That Eliminates Decision Fatigue Forever"}),r.jsx("h1",{className:"text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-bold mb-6 leading-tight",children:"The Quantum Flow Planning System: Your 30-Day Personal Operating System Installation"}),r.jsxs("div",{className:"prose prose-lg mx-auto text-muted-foreground mb-8 max-w-2xl",children:[r.jsx("p",{className:"text-lg sm:text-xl font-semibold text-foreground mb-4 leading-relaxed",children:"You're Drowning in Decision Chaos Every Single Morning"}),r.jsx("p",{className:"leading-relaxed",children:"You wake up with good intentions. Today will be different."}),r.jsx("p",{className:"leading-relaxed",children:"Then you check your phone."}),r.jsx("p",{className:"leading-relaxed",children:'17 notifications. 3 "urgent" emails. 2 missed calls.'}),r.jsx("p",{className:"leading-relaxed",children:"Before you've had coffee, your brain is scattered across 12 different priorities. The strategic work you planned? Already buried under reactive chaos."}),r.jsx("p",{className:"leading-relaxed",children:"By 10 AM, you've made 47 micro-decisions. By evening, you've been busy for 12 hours but can't point to a single meaningful outcome."}),r.jsx("p",{className:"font-semibold text-foreground leading-relaxed",children:"Sound familiar?"})]}),r.jsx(te,{size:"lg",disabled:!0,className:"text-base sm:text-lg px-6 sm:px-8 py-3 sm:py-4 w-full sm:w-auto max-w-full",children:"Coming Soon"})]})]})}),r.jsx("section",{className:"py-12 md:py-16 px-4 bg-muted/30",children:r.jsxs("div",{className:"max-w-4xl mx-auto",children:[r.jsx("h2",{className:"text-2xl sm:text-3xl md:text-4xl lg:text-5xl font-bold mb-8 text-center leading-tight",children:"The Hidden $150,000 Decision Fatigue Tax DESTROYING Your Business"}),r.jsx("div",{className:"mb-8 rounded-2xl overflow-hidden shadow-xl",children:r.jsx("img",{src:m0,alt:"Entrepreneur experiencing decision fatigue and mental exhaustion",className:"w-full h-[300px] md:h-[400px] object-cover"})}),r.jsxs(G,{className:"p-6 md:p-8 mb-8 border-l-4 border-l-primary",children:[r.jsx("p",{className:"text-base md:text-lg italic mb-4 leading-relaxed",children:`"I'd wake up at 5:30 AM with a clear strategic priority. By 6:15 AM, I'd checked email 'just quickly' and suddenly I was putting out three fires. The strategic work got pushed to 'later' every single day for six months."`}),r.jsx("p",{className:"text-sm md:text-base text-muted-foreground",children:"â Brian, $2.3M consulting firm owner"})]}),r.jsxs("div",{className:"prose prose-lg mx-auto",children:[r.jsx("p",{className:"leading-relaxed",children:"Brian isn't lazy. He was suffering from Decision Fatigue Syndromeâthe hidden epidemic de
798stroying successful entrepreneurs."}),r.jsx("p",{className:"text-lg sm:text-xl font-bold text-primary leading-relaxed",children:"Every micro-decision BLEEDS your Strategic Power Account dry."}),r.jsx("p",{className:"leading-relaxed",children:"Your strategic thinking is worth $200/hour minimum. Without systematic planning, you lose 3+ hours daily to decision fatigue."}),r.jsxs("div",{className:"bg-primary/10 p-4 md:p-6 rounded-lg text-center my-8",children:[r.jsx("p",{className:"text-lg sm:text-xl md:text-2xl font-bold text-primary mb-2 leading-relaxed",children:"3 hours à $200/hour à 250 working days = $150,000 annually"}),r.jsx("p",{className:"text-base md:text-lg leading-relaxed",children:"in LOST strategic capacity"})]})]})]})}),r.jsx("section",{className:"py-12 md:py-16 px-4",children:r.jsxs("div",{className:"max-w-4xl mx-auto",children:[r.jsx("h2",{className:"text-2xl sm:text-3xl md:text-4xl lg:text-5xl font-bold mb-10 leading-tight",children:"What Elite Entrepreneurs Know That You Don't"}),r.jsx("div",{className:"mb-8 rounded-2xl overflow-hidden shadow-xl",children:r.jsx("img",{src:f0,alt:"Calm entrepreneur with strategic planning system and organized workspace",className:"w-full h-[300px] md:h-[400px] object-cover"})}),r.jsxs("div",{className:"space-y-6",children:[r.jsx("p",{className:"text-lg sm:text-xl font-semibold leading-loose",children:"But here's the DEVASTATING truth:"}),r.jsx("p",{className:"text-base md:text-lg leading-loose",children:"Every hour spent in reactive decision chaos is an hour NOT spent on strategic planning that DOUBLES revenue, team development that creates autonomous operations, or innovation that SEPARATES you from competition."}),r.jsx("p",{className:"text-base md:text-lg leading-loose",children:"Warren Buffett plans his day the night before with zero deviations. Tim Cook starts at 4:30 AM with structured planningâsame routine for 15+ years. Jeff Bezos blocks strategic thinking time religiously."}),r.jsx("p",{className:"text-base sm:text-lg font-semibold text-primary leading-loose",children:"Instead of making 400+ decisions daily, they've pre-made the 380 that don't require strategic thinking."}),r.jsx("p",{className:"text-base md:text-lg leading-loose",children:"The result? All their mental energy flows into the 20 decisions that actually build wealth."}),r.jsx("p",{className:"text-base md:text-lg leading-loose",children:"We studied 247 entrepreneurs earning $1M-$30M annually. The common thread wasn't intelligence or connections."}),r.jsx("p",{className:"text-lg sm:text-xl font-bold leading-loose",children:"It was systematic daily planning that PROTECTED strategic thinking capacity."})]})]})}),r.jsx("section",{className:"py-12 md:py-16 px-4 bg-muted/30",children:r.jsxs("div",{className:"max-w-4xl mx-auto",children:[r.jsx("h2",{className:"text-2xl sm:text-3xl md:text-4xl lg:text-5xl font-bold mb-8 leading-tight",children:"Why Every Planning System You've Tried Has FAILED You"}),r.jsxs("div",{className:"prose prose-lg",children:[r.jsx("p",{className:"leading-relaxed",children:"You're an Entrepreneurial Personality Type (EPT)âphysiologically sensitive, momentum-based, and highly reactive to constraint."}),r.jsx("p",{className:"font-semibold leading-relaxed",children:"Traditional planning systems FIGHT your nature:"}),r.jsxs("ul",{className:"space-y-3",children:[r.jsx("li",{className:"leading-relaxed",children:"Rigid time-blocking FAILS because your brain craves possibility"}),r.jsx("li",{className:"leading-relaxed",children:"To-do lists OVERWHELM because they ignore momentum-based energy cycles"}),r.jsx("li",{className:"leading-relaxed",children:"Corporate systems were designed for followers, not leaders"})]}),r.jsx("p",{className:"leading-relaxed",children:"Recent neuroscience reveals: Your brain makes 35,000 decisions daily. As an entrepreneur, 273 directly impact business outcomes."}),r.jsxs("div",{className:"bg-destructive/10 p-4 md:p-6 rounded-lg my-6",children:[r.jsx("p",{className:"font-bold text-destructive mb-2 leading-relaxed",children:"By 11 AM, your decision-making capacity drops 47%."}),r.jsx("p",{className:"font-bold text-destructive leading-relaxed",children:"By 3 PM, you're at 23% strategic capacity."})]}),r.jsx("p",{className:"text-lg sm:text-xl font-bold text-primary leading-relaxed",children:"The solution isn't willpower. It's systematic decision REDUCTION through EPT-based planning."})]})]})}),r.jsx("section",{className:"py-12 md:py-16 px-4",children:r.jsxs("div",{className:"max-w-4xl mx-auto",children:[r.jsx("h2",{className:"text-2xl sm:text-3xl md:text-4xl lg:text-5xl font-bold mb-4 text-center leading-tight",children:"Introducing Quantum Flow Planning: The ONLY System Built for EPT Minds"}),r.jsx("p",{className:"text-lg sm:text-xl text-center mb-8 md:mb-12 text-muted-foreground leading-relaxed",children:"30 days to ELIMINATE decision fatigue and RECOVER your strategic power."}),r.jsx("p",{className:"text-base sm:text-lg text-center mb-8 md:mb-12 leading-relaxed",children:"Based on 8+ years of research with 2,000+ entrepreneurs, we've identified the exact methodology that works WITH your EPT nature."}),r.jsx("div",{className:"mb-8 rounded-2xl overflow-hidden shadow-xl",children:r.jsx("img",{src:p0,alt:"Organized Quantum Flow Planning system with planner and workspace",className:"w-full max-w-3xl mx-auto"})}),r.jsxs(G,{className:"p-6 md:p-8 mb-8 border-2 border-primary",children:[r.jsx("h3",{className:"text-xl md:text-2xl font-bold mb-6 leading-tight",children:"Your Complete Transformation Package:"}),r.jsx("div",{className:"grid gap-4",children:["30-Day Strategic Setup Course - EPT-based system installation","Quantum Flow Daily Planner - Interactive system (ongoing access)","EPT Assessment - Understand your unique wiring","5 Core Functions Assessment - Identify biggest constraint with precision","Billionaire Code Assessment - Align priorities with business stage","Strategic Energy Protocols - Protect highest-value thinking","Momentum Network Community - Connect with systematic foun
798ders"].map((o,l)=>r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(_e,{className:"w-5 h-5 md:w-6 md:h-6 text-primary flex-shrink-0 mt-1"}),r.jsx("span",{className:"text-sm sm:text-base md:text-lg leading-relaxed",children:o})]},l))}),r.jsx("div",{className:"mt-8 text-center",children:r.jsx("p",{className:"text-2xl md:text-3xl font-bold text-primary mb-2 leading-tight",children:"Investment: $27/month"})})]}),r.jsx("div",{className:"text-center",children:r.jsx(te,{size:"lg",disabled:!0,className:"text-base sm:text-lg px-6 sm:px-8 py-3 sm:py-4 w-full sm:w-auto max-w-full",children:"Coming Soon"})})]})}),r.jsx("section",{className:"py-12 md:py-16 px-4 bg-muted/30",children:r.jsxs("div",{className:"max-w-4xl mx-auto",children:[r.jsx("h2",{className:"text-2xl sm:text-3xl md:text-4xl lg:text-5xl font-bold mb-8 text-center leading-tight",children:"The Assessments That Reveal EVERYTHING"}),r.jsx("div",{className:"mb-8 rounded-2xl overflow-hidden shadow-xl",children:r.jsx("img",{src:g0,alt:"Entrepreneur discovering insights through strategic assessments",className:"w-full h-[300px] md:h-[400px] object-cover"})}),r.jsxs(G,{className:"p-6 md:p-8 mb-6 md:mb-8",children:[r.jsx("h3",{className:"text-xl md:text-2xl font-bold mb-4 leading-tight",children:"Billionaire Code Assessment: Your Business Evolution Path"}),r.jsx("p",{className:"mb-6 leading-relaxed",children:"Align priorities with your exact business stage:"}),r.jsx("div",{className:"grid md:grid-cols-2 gap-4",children:[{stage:"Seeker ($0-$40K)",focus:"Market clarity and avatar definition"},{stage:"Starter ($40K-$100K)",focus:"Consistent sales and delivery systems"},{stage:"Promoter ($100K-$300K)",focus:"Automated lead generation and first hire"},{stage:"Builder ($300K-$1M)",focus:"Scalable delivery and team building"},{stage:"Operator ($1M-$3M)",focus:"Leadership and communication cadence"},{stage:"Leader ($3M-$10M)",focus:"True leadership team and capacity building"},{stage:"Owner ($10M-$30M)",focus:"Multi-level leadership and autonomous departments"},{stage:"Investor ($30M-$100M)",focus:"Capital allocation and portfolio management"},{stage:"Entrepreneur ($100M+)",focus:"Legacy building and societal impact"}].map((o,l)=>r.jsxs("div",{className:"p-3 md:p-4 bg-background rounded-lg",children:[r.jsx("p",{className:"font-bold text-primary text-sm md:text-base leading-tight",children:o.stage}),r.jsx("p",{className:"text-xs md:text-sm text-muted-foreground leading-relaxed",children:o.focus})]},l))})]}),r.jsxs(G,{className:"p-6 md:p-8",children:[r.jsx("h3",{className:"text-xl md:text-2xl font-bold mb-4 leading-tight",children:"5 Core Functions Assessment"}),r.jsx("p",{className:"mb-6 leading-relaxed",children:"Identify your single biggest bottleneck:"}),r.jsx("div",{className:"space-y-3",children:[{name:"Lead Generation",desc:"Attract potential customers"},{name:"Lead Nurture",desc:"Build trust with prospects"},{name:"Conversion",desc:"Turn prospects into customers"},{name:"Delivery",desc:"Fulfill promises and create raving fans"},{name:"Retention/Upsell",desc:"Maximize customer lifetime value"}].map((o,l)=>r.jsxs("div",{className:"flex items-start gap-3 p-3 md:p-4 bg-muted/50 rounded-lg",children:[r.jsx("div",{className:"w-7 h-7 md:w-8 md:h-8 rounded-full bg-primary text-primary-foreground flex items-center justify-center flex-shrink-0 font-bold text-sm md:text-base",children:l+1}),r.jsxs("div",{children:[r.jsx("p",{className:"font-bold text-sm md:text-base leading-tight",children:o.name}),r.jsx("p",{className:"text-xs md:text-sm text-muted-foreground leading-relaxed",children:o.desc})]})]},l))}),r.jsx("p",{className:"mt-6 text-base md:text-lg font-semibold text-primary leading-relaxed",children:"Result: Surgical precision on where to focus for maximum impact."})]})]})}),r.jsx("section",{className:"py-12 md:py-16 px-4",children:r.jsxs("div",{className:"max-w-6xl mx-auto",children:[r.jsx("h2",{className:"text-2xl sm:text-3xl md:text-4xl lg:text-5xl font-bold mb-8 md:mb-12 text-center leading-tight",children:"Real Results From Quantum Flow Members"}),r.jsx("div",{className:"grid md:grid-cols-3 gap-6 md:gap-8 mb-8 md:mb-12",children:i.map((o,l)=>r.jsxs(G,{className:"p-6",children:[r.jsxs("h3",{className:"text-lg md:text-xl font-bold mb-2 leading-tight",children:[o.name," - ",o.title]}),r.jsx("p",{className:"text-primary font-semibold mb-3 leading-relaxed",children:o.result}),r.jsxs("p",{className:"text-sm md:text-base text-muted-foreground italic leading-relaxed",children:['"',o.quote,'"']})]},l))}),a.length>0&&r.jsx("div",{className:"grid md:grid-cols-2 gap-6 md:gap-8",children:a.map((o,l)=>r.jsxs(G,{className:"p-6 flex flex-col",children:[r.jsxs("div",{className:"flex items-start gap-4 mb-4",children:[o.current_url&&r.jsx("div",{className:"w-16 h-16 md:w-20 md:h-20 rounded-full overflow-hidden flex-shrink-0",children:r.jsx(Mi,{imageKey:o.image_key,fallbackSrc:o.current_url,alt:o.testimonial_name||"Testimonial",className:"w-full h-full object-cover"})}),r.jsxs("div",{children:[r.jsx("h4",{className:"font-bold text-base md:text-lg leading-tight",children:o.testimonial_name}),r.jsx("p",{className:"text-xs md:text-sm text-muted-foreground leading-relaxed",children:o.testimonial_title}),o.testimonial_badge&&r.jsx("span",{className:"inline-block mt-2 px-2 md:px-3 py-1 bg-primary/10 text-primary text-xs font-semibold rounded-full",children:o.testimonial_badge})]})]}),o.testimonial_quote&&r.jsxs("p",{className:"text-sm md:text-base text-muted-foreground italic mb-4 leading-relaxed",children:['"',o.testimonial_quote,'"']}),o.testimonial_result&&r.jsx("p",{className:"text-sm md:text-base font-semibold text-primary mt-auto leading-relaxed",children:o.testimonial_result})]},l))})]})}),r.jsx("section",{className:"py-12 md:py-16 px-4 bg-destructive/5",children:r.jsxs("div",{className:"max-w-4xl mx-auto",children:[r.jsx("h2",{className:"text-2xl sm:text-3xl md:text-4xl lg:text-5xl font-bold mb-8 text-center leading-tight",children:"What Happens If You DON'T Fix This Now?"}),r.jsxs("div",{className:"prose prose-lg mx-auto",children:[r.jsx("p",{className:"text-base sm:text-lg md:text-xl font-semibold leading-relaxed",children:"77% of expert-led businesses plateau between $500K-$2M because founders cannot transition from doer to strategic leader."}),r.jsx("p",{className:"leading-relaxed",children:"While you are drowning in micro-decisions:"}),r.jsxs("ul",{className:"space-y-2",children:[r.jsx("li",{className:"leading-relaxed",children:"Competitors install systematic operations"}),r.jsx("li",{className:"leading-relaxed",children:"Market opportunities pass by unrecognized"}),r.jsx("li",{className:"leading-relaxed",children:"Your team waits for strategic direction"}),r.jsx("li",{className:"leading-relaxed",children:"Innovation stagnates while markets evolve"})]}),r.jsxs(G,{className:"p-4 md:p-6 bg-background border-l-4 border-l-destructive my-8",children:[r.jsx("h3",{className:"text-lg md:text-xl font-bold mb-3 leading-tight",children:"The 12-Month Reality:"}),r.jsx("p",{className:"leading-relaxed",children:"Competitors gain systematic advantages. Key team members leave due to chaos. Client satisfaction drops. Personal relationships suffer from chronic overwhelm."})]}),r.jsxs(G,{className:"p-4 md:p-6 bg-destructive/10 border-l-4 border-l-destructive",children:[r.jsx("h3",{className:"text-lg md:text-xl font-bold mb-3 text-destructive leading-tight",children:"The 24-Month NIGHTMARE:"}),r.jsx("p",{className:"leading-relaxed",children:"Business becomes unsellable due to foun
798der dependence. Industry disruption threatens survival. Business becomes a prison instead of freedom vehicle."})]})]})]})}),r.jsx("section",{className:"py-12 md:py-16 px-4",children:r.jsxs("div",{className:"max-w-4xl mx-auto",children:[r.jsx("h2",{className:"text-2xl sm:text-3xl md:text-4xl lg:text-5xl font-bold mb-8 text-center leading-tight",children:"Your Iron-Clad 30-Day Guarantee"}),r.jsxs(G,{className:"p-6 md:p-8 border-2 border-primary",children:[r.jsx("p",{className:"text-base sm:text-lg md:text-xl mb-4 leading-relaxed",children:"Try the Simple Operations System for 30 days. If you're not completely satisfied with your progress, we'll refund 100% of your investment."}),r.jsx("p",{className:"text-xl sm:text-2xl font-bold text-center text-primary leading-tight",children:"No questions asked. No hoops to jump through."})]})]})}),r.jsx("section",{className:"py-12 md:py-16 px-4 bg-muted/30",children:r.jsxs("div",{className:"max-w-5xl mx-auto",children:[r.jsx("h2",{className:"text-2xl sm:text-3xl md:text-4xl lg:text-5xl font-bold mb-8 md:mb-12 text-center leading-tight",children:"Who This Is PERFECT For"}),r.jsxs("div",{className:"grid md:grid-cols-2 gap-6 md:gap-8",children:[r.jsxs(G,{className:"p-6 md:p-8 border-2 border-primary",children:[r.jsxs("h3",{className:"text-xl md:text-2xl font-bold mb-6 flex items-center gap-2 leading-tight",children:[r.jsx(_e,{className:"w-6 h-6 md:w-8 md:h-8 text-primary flex-shrink-0"}),"You're the Right Fit:"]}),r.jsx("ul",{className:"space-y-3",children:["$50K-$30M+ revenue with growth potential","Expert-led business (consulting, services, agencies)","Morning chaos syndrome - starting reactive vs. strategic","Decision overload - making 200+ business decisions daily","Ready to invest 15-20 minutes daily in strategic planning"].map((o,l)=>r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx("span",{className:"text-primary font-bold flex-shrink-0",children:"â"}),r.jsx("span",{className:"text-sm sm:text-base leading-relaxed",children:o})]},l))})]}),r.jsxs(G,{className:"p-6 md:p-8 border-2 border-muted",children:[r.jsxs("h3",{className:"text-xl md:text-2xl font-bold mb-6 flex items-center gap-2 leading-tight",children:[r.jsx(Ft,{className:"w-6 h-6 md:w-8 md:h-8 text-muted-foreground flex-shrink-0"}),"This Isn't Right If:"]}),r.jsx("ul",{className:"space-y-3 text-muted-foreground",children:["You want someone else to do your strategic thinking","You expect transformation without daily investment","You prefer chaos to systematic approaches","You're looking for magic bullets vs. proven methodology"].map((o,l)=>r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx("span",{className:"font-bold flex-shrink-0",children:"â"}),r.jsx("span",{className:"text-sm sm:text-base leading-relaxed",children:o})]},l))})]})]})]})}),r.jsx("section",{className:"py-12 md:py-16 px-4",children:r.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[r.jsx("h2",{className:"text-2xl sm:text-3xl md:text-4xl lg:text-5xl font-bold mb-8 leading-tight",children:"The Strategic Investment That Changes EVERYTHING"}),r.jsxs("div",{className:"bg-gradient-to-br from-primary/10 to-primary/5 p-6 md:p-12 rounded-2xl mb-8",children:[r.jsxs("p",{className:"text-lg sm:text-xl md:text-2xl mb-4 leading-relaxed",children:["Decision fatigue costs ",r.jsx("span",{className:"font-bold text-primary",children:"$150,000+"})," annually."]}),r.jsxs("p",{className:"text-lg sm:text-xl md:text-2xl mb-6 leading-relaxed",children:["Quantum Flow costs ",r.jsx("span",{className:"font-bold text-primary",children:"$27/month"}),"."]}),r.jsx("p",{className:"text-2xl sm:text-3xl md:text-4xl font-bold text-primary leading-tight",children:"ROI in your first week: 4,500%"})]}),r.jsx("div",{className:"prose prose-lg mx-auto",children:r.jsxs("p",{className:"text-base sm:text-lg md:text-xl leading-relaxed",children:["This is about ",r.jsx("strong",{children:"RECLAIMING"})," your role as strategic leader. Building the foundation that ",r.jsx("strong",{children:"ENABLES"})," everything else. ",r.jsx("strong",{children:"HONORING"})," your entrepreneurial nature."]})})]})}),r.jsx("section",{className:"py-12 md:py-16 px-4 bg-muted/30",children:r.jsxs("div",{className:"max-w-5xl mx-auto",children:[r.jsx("h2",{className:"text-2xl sm:text-3xl md:text-4xl lg:text-5xl font-bold mb-8 md:mb-12 text-center leading-tight",children:"Two Clear Paths Forward"}),r.jsxs("div",{className:"grid md:grid-cols-2 gap-6 md:gap-8",children:[r.jsxs(G,{className:"p-6 md:p-8 bg-destructive/5 border-destructive/20",children:[r.jsx("img",{src:x0,alt:"Stressed entrepreneur overwhelmed by chaos",className:"rounded-lg w-full h-40 md:h-48 object-cover mb-4"}),r.jsx("h3",{className:"text-xl md:text-2xl font-bold mb-4 leading-tight",children:"Path One:"}),r.jsx("p",{className:"mb-4 text-sm sm:text-base leading-relaxed",children:"Continue the decision fatigue death spiral. Hope willpower creates focus. Watch competitors gain advantages. Let fatigue drain potential."}),r.jsx("p",{className:"font-bold text-destructive text-sm sm:text-base leading-relaxed",children:"Result: Plateau, burnout, missed opportunities"})]}),r.jsxs(G,{className:"p-6 md:p-8 bg-primary/5 border-primary/20",children:[r.jsx("img",{src:y0,alt:"Calm entrepreneur with clarity and focus",className:"rounded-lg w-full h-40 md:h-48 object-cover mb-4"}),r.jsx("h3",{className:"text-xl md:text-2xl font-bold mb-4 leading-tight",children:"Path Two:"}),r.jsx("p",{className:"mb-4 text-sm sm:text-base leading-relaxed",children:"Install systematic strategic planning. ELIMINATE decision fatigue. RECOVER 2-4 hours daily strategic capacity. Join elite entrepreneurs with systematic planning."}),r.jsx("p",{className:"font-bold text-primary text-sm sm:text-base leading-relaxed",children:"Result: Accelerated growth, sustainable energy, entrepreneurial FULFILLMENT"})]})]})]})}),r.jsx("section",{className:"py-12 md:py-16 px-4",children:r.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[r.jsx("h2",{className:"text-2xl sm:text-3xl md:text-4xl lg:text-5xl font-bold mb-8 leading-tight",children:"One Final Truth"}),r.jsxs("div",{className:"prose prose-lg mx-auto mb-8 md:mb-12",children:[r.jsxs("p",{className:"text-base sm:text-lg md:text-xl leading-relaxed",children:["You already ",r.jsx("strong",{children:"KNOW"})," you need this."]}),r.jsx("p",{className:"leading-relaxed",children:"You felt it reading about the $150,000 decision fatigue tax."}),r.jsx("p",{className:"leading-relaxed",children:"You recognized yourself in the morning chaos scenario."}),r.jsx("p",{className:"text-base sm:text-lg md:text-xl font-semibold leading-relaxed",children:"The question isn't WHETHER
798you need systematic planning."}),r.jsx("p",{className:"text-lg sm:text-xl md:text-2xl font-bold text-primary leading-tight",children:"The question is: Will you TRUST your intuition and act NOW, or delay while decision fatigue continues DRAINING your potential?"}),r.jsx("p",{className:"text-base sm:text-lg md:text-xl leading-relaxed",children:"Elite entrepreneurs act when they recognize truth. Which type are YOU?"})]}),r.jsx(te,{size:"lg",disabled:!0,className:"text-base sm:text-lg md:text-xl px-6 sm:px-8 md:px-12 py-3 sm:py-4 md:py-6 mb-8 w-full sm:w-auto max-w-full",children:"Coming Soon"}),r.jsxs("blockquote",{className:"text-base sm:text-lg italic text-muted-foreground border-l-4 border-primary pl-4 md:pl-6 py-2 leading-relaxed",children:['"The most important appointment of your day is the one with yourself. But systematic transformation requires the right strategic partnership."',r.jsx("footer",{className:"mt-2 font-semibold text-foreground text-sm sm:text-base",children:"â Gabe Arnold, CEO"})]})]})}),e&&r.jsx("section",{id:"checkout-section",className:"py-12 md:py-16 px-4 bg-gradient-to-b from-primary/5 to-background",children:r.jsxs("div",{className:"max-w-4xl mx-auto",children:[r.jsx("h2",{className:"text-2xl sm:text-3xl md:text-4xl font-bold mb-8 text-center leading-tight",children:"Start Your Strategic Transformation"}),r.jsx(pI,{customerEmail:"",productIdentifier:"quantum-flow-planner"})]})}),r.jsx("section",{className:"py-12 px-4 bg-muted/50",children:r.jsx("div",{className:"max-w-4xl mx-auto",children:r.jsxs(G,{className:"p-8 border-l-4 border-l-primary",children:[r.jsxs("p",{className:"text-lg",children:[r.jsx("strong",{children:"P.S."})," Every day you delay is another day of decision fatigue draining capacity. Every week is another week of missed opportunities. Every month is another month competitors gain systematic advantages. The cost of delay ",r.jsx("strong",{children:"COMPOUNDS"}),". The benefit of action starts ",r.jsx("strong",{children:"IMMEDIATELY"}),"."]}),r.jsx("div",{className:"text-center mt-6",children:r.jsx(te,{size:"lg",disabled:!0,className:"text-base sm:text-lg px-6 sm:px-8 py-3 sm:py-4 w-full sm:w-auto max-w-full",children:"Coming Soon"})})]})})}),r.jsx(ht,{})]})]})}const rm=()=>r.jsx("div",{className:"bg-red-50 dark:bg-red-950/30 border border-red-200 dark:border-red-800 rounded-lg p-6 mb-8",children:r.jsxs("div",{className:"flex items-start gap-4",children:[r.jsx("div",{className:"flex-shrink-0",children:r.jsx(Ji,{className:"h-6 w-6 text-red-600 dark:text-red-400"})}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-lg font-semibold text-red-800 dark:text-red-300 mb-2",children:"â ï¸ Important Reminder"}),r.jsx("p",{className:"text-red-700 dark:text-red-400 mb-3",children:"The email you just used at checkout is the email your account will be activated under."}),r.jsxs("p",{className:"text-red-700 dark:text-red-400",children:["If this is ",r.jsx("strong",{children:"NOT"})," the email you want for your account, please email"," ",r.jsx("a",{href:"mailto:[email protected]",target:"_blank",rel:"noopener noreferrer",className:"font-semibold underline hover:no-underline",children:"[email protected]"})," ","immediately."]})]})]})}),sfe=()=>r.jsxs(r.Fragment,{children:[r.jsx(vr,{title:"Welcome to Quantum Flow Planning!",description:"Your Strategic Transformation Begins Now - Check Your Email"}),r.jsxs("div",{className:"min-h-screen flex flex-col",children:[r.jsx(_t,{}),r.jsx("main",{className:"flex-1 pt-32 pb-16",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsxs("div",{className:"max-w-4xl mx-auto",children:[r.jsxs("div",{className:"text-center mb-12",children:[r.jsx($e,{className:"h-24 w-24 text-primary mx-auto mb-6"}),r.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-4",children:"Welcome to Your Strategic Transformation!"}),r.jsx("p",{className:"text-xl text-muted-foreground mb-8",children:"Your Quantum Flow Planning Access is Ready - Check Your Email Now"})]}),r.jsx(rm,{}),r.jsxs(G,{className:"p-8 mb-8 bg-primary/5 border-2 border-primary",children:[r.jsx("h2",{className:"text-2xl md:text-3xl font-bold mb-4",children:"ð Congratulations! You Just Eliminated Decision Fatigue Forever"}),r.jsx("p",{className:"text-lg mb-4",children:"You're officially part of the elite 5% of entrepreneurs who choose systematic planning over reactive chaos."}),r.jsx("p",{className:"text-lg mb-4",children:"While your competitors burn through their strategic capacity on micro-decisions, you just secured your spot among the entrepreneurs who PROTECT their highe
798st-value thinking."}),r.jsx("p",{className:"text-lg font-semibold",children:"Your 2+ hours of daily strategic capacity recovery starts right now."})]}),r.jsxs(G,{className:"p-8 mb-8",children:[r.jsxs("h2",{className:"text-2xl font-bold mb-6 flex items-center gap-2",children:[r.jsx(Ii,{className:"h-8 w-8 text-primary"}),"IMMEDIATE ACTION REQUIRED (Next 30 Minutes)"]}),r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{className:"flex gap-4",children:[r.jsx("span",{className:"font-bold text-primary text-2xl flex-shrink-0",children:"1."}),r.jsxs("div",{children:[r.jsx("p",{className:"font-bold text-lg mb-2",children:"Step 1: Check Your Email (Next 5 Minutes)"}),r.jsxs("p",{className:"text-muted-foreground mb-2",children:["Look for your welcome email from ",r.jsx("span",{className:"font-semibold",children:"[email protected]"})," with subject line:",r.jsx("span",{className:"font-semibold",children:' "Your Quantum Flow Planning Access - Start Today!"'})]}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Don't see it? Check spam/promotions folder. Still missing? Email [email protected] immediately."})]})]}),r.jsxs("div",{className:"flex gap-4",children:[r.jsx("span",{className:"font-bold text-primary text-2xl flex-shrink-0",children:"2."}),r.jsxs("div",{children:[r.jsx("p",{className:"font-bold text-lg mb-2",children:"Step 2: Access Your Quantum Flow Planner"}),r.jsx("p",{className:"text-muted-foreground",children:"Click the login link in your welcome email to access your interactive daily planner. Bookmark this page - it's your command center for decision-free mornings."})]})]}),r.jsxs("div",{className:"flex gap-4",children:[r.jsx("span",{className:"font-bold text-primary text-2xl flex-shrink-0",children:"3."}),r.jsxs("div",{children:[r.jsx("p",{className:"font-bold text-lg mb-2",children:"Step 3: Complete Your EPT Assessment (15 Minutes)"}),r.jsx("p",{className:"text-muted-foreground",children:"This reveals your unique Entrepreneurial Personality Type and shows you exactly how to customize the Quantum Flow system to work WITH your nature, not against it."})]})]}),r.jsxs("div",{className:"flex gap-4",children:[r.jsx("span",{className:"font-bold text-primary text-2xl flex-shrink-0",children:"4."}),r.jsxs("div",{children:[r.jsx("p",{className:"font-bold text-lg mb-2",children:"Step 4: Take Your First Two Assessments (15 Minutes Each)"}),r.jsx("p",{className:"text-muted-foreground mb-2",children:"These assessments reveal everything:"}),r.jsxs("ul",{className:"list-disc list-inside space-y-1 ml-4 text-muted-foreground",children:[r.jsx("li",{children:"Billionaire Code Assessment - Your exact business stage priorities"}),r.jsx("li",{children:"5 Core Functions Assessment - Your single biggest bottleneck"})]}),r.jsx("p",{className:"text-muted-foreground mt-2",children:"These assessments provide surgical precision on where to focus for maximum impact."})]})]}),r.jsxs("div",{className:"flex gap-4",children:[r.jsx("span",{className:"font-bold text-primary text-2xl flex-shrink-0",children:"5."}),r.jsxs("div",{children:[r.jsx("p",{className:"font-bold text-lg mb-2",children:"Step 5: Start Day 1 of Your 30-Day Setup Course"}),r.jsx("p",{className:"text-muted-foreground",children:"Access the first module immediately. It takes 20 minutes and you'll design your personalized morning routine that protects your strategic thinking capacity."})]})]})]})]}),r.jsxs(G,{className:"p-8 mb-8",children:[r.jsx("h2",{className:"text-3xl font-bold mb-8 text-center",children:"Your 30-Day Strategic Setup Timeline"}),r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{className:"border-l-4 border-primary pl-6",children:[r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Days 1-10: Foundation & Assessment Phase"}),r.jsxs("ul",{className:"space-y-2 text-muted-foreground",children:[r.jsx("li",{children:"⢠EPT Assessment & Profile Analysis"}),r.jsx("li",{children:"⢠Billionaire Code Stage Alignment"}),r.jsx("li",{children:"⢠5 Core Functions Bottleneck Identification"}),r.jsx("li",{children:"⢠Morning Routine Design (EPT-optimized)"}),r.jsx("li",{children:"⢠Strategic Energy Protocol Setup"}),r.jsx("li",{children:"⢠Decision Fatigue Elimination Framework"})]})]}),r.jsxs("div",{className:"border-l-4 border-primary pl-6",children:[r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Days 11-20: Implementation & Integration"}),r.jsxs("ul",{className:"space-y-2 text-muted-foreground",children:[r.jsx("li",{children:"⢠Quantum Flow Daily Planning System Installation"}),r.jsx("li",{children:"⢠Momentum-Based Energy Cycle Mapping"}),r.jsx("li",{children:"⢠Strategic vs. Reactive Decision Framework"}),r.jsx("li",{children:"⢠Pre-Decision Protocol Creation"}),r.jsx("li",{children:"⢠Weekly Planning Ritual Design"}),r.jsx("li",{children:"⢠Constraint Elimination Process"})]})]}),r.jsxs("div",{className:"border-l-4 border-primary pl-6",children:[r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Days 21-30: Optimization & Mastery"}),r.jsxs("ul",{className:"space-y-2 text-muted-foreground",children:[r.jsx("li",{children:"⢠System Refinement Based on Results"}),r.jsx("li",{children:"⢠Advanced Planning Techniques"}),r.jsx("li",{children:"⢠Team Integration Strategies"}),r.jsx("li",{children:"⢠Quarterly Strategic Planning Setup"}),r.jsx("li",{children:"⢠Long-term Growth Alignment"}),r.jsx("li",{children:"⢠Community Connection & Accountability"})]})]}),r.jsxs("div",{className:"border-l-4 border-primary pl-6",children:[r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Day 31 and Beyond: Strategic Leadership"}),r.jsx("p",{className:"text-muted-foreground",children:"You'll have a complete personal operating system that protects your strategic thinking capacity, eliminates decision fatigue, and enables sustainable growth."})]})]})]}),r.jsxs(G,{className:"p-8 mb-8 bg-destructive/5 border-2 border-destructive",children:[r.jsxs("h2",{className:"text-2xl font-bold mb-4 flex items-center gap-2",children:[r.jsx(zt,{className:"h-8 w-8"}),"ð¥ The First 24 Hours Are Critical"]}),r.jsxs("p",{className:"text-lg mb-6",children:["Research shows: People who start within 24 hours of purchase are ",r.jsx("span",{className:"font-bold",children:"650% more likely"})," to complete the full system installation and eliminate decision fatigue permanently."]}),r.jsx("h3",{className:"text-xl font-bold mb-4",children:"Your 24-Hour Quick Start Checklist:"}),r.jsxs("ul",{className:"space-y-3 mb-6",children:[r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx($e,{className:"h-6 w-6 text-primary flex-shrink-0 mt-0.5"}),r.jsx("span",{children:"Access Quantum Flow Planner (bookmark it)"})]}),r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx($e,{className:"h-6 w-6 text-primary flex-shrink-0 mt-0.5"}),r.jsx("span",{children:"Complete EPT Assessment (15 minutes)"})]}),r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx($e,{className:"h-6 w-6 text-primary flex-shrink-0 mt-0.5"}),r.jsx("span",{children:"Take Billionaire Code Assessment (10 minutes)"})]}),r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx($e,{className:"h-6 w-6 text-primary flex-shrink-0 mt-0.5"}),r.jsx("span",{children:"Complete 5 Core Functions Assessment (10 minutes)"})]}),r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx($e,{className:"h-6 w-6 text-primary flex-shrink-0 mt-0.5"}),r.jsx("span",{children:"Start Day 1 Module: Morning Routine Design (20 minutes)"})]})]}),r.jsx("p",{className:"text-lg font-semibold",children:"Complete these 5 items in the next 24 hours and you're on the fast track to decision fatigue elimination."})]}),r.jsxs(G,{className:"p-8 mb-8",children:[r.jsxs("h2",{className:"text-2xl font-bold mb-6 flex items-center gap-2",children:[r.jsx(Rs,{className:"h-8 w-8 text-primary"}
vendor: 16,596 bytes, line 798
798),"What's Included in Your Quantum Flow Access"]}),r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx($e,{className:"h-6 w-6 text-primary flex-shrink-0 mt-1"}),r.jsxs("div",{children:[r.jsx("p",{className:"font-bold",children:"30-Day Strategic Setup Course"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Step-by-step EPT-based system installation for your unique wiring"})]})]}),r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx($e,{className:"h-6 w-6 text-primary flex-shrink-0 mt-1"}),r.jsxs("div",{children:[r.jsx("p",{className:"font-bold",children:"Interactive Quantum Flow Daily Planner"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Your digital command center for decision-free mornings (ongoing access)"})]})]}),r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx($e,{className:"h-6 w-6 text-primary flex-shrink-0 mt-1"}),r.jsxs("div",{children:[r.jsx("p",{className:"font-bold",children:"EPT Assessment & Profile"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Understand your unique entrepreneurial wiring and energy patterns"})]})]}),r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx($e,{className:"h-6 w-6 text-primary flex-shrink-0 mt-1"}),r.jsxs("div",{children:[r.jsx("p",{className:"font-bold",children:"Billionaire Code Assessment"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Align your priorities with your exact business stage ($0-$100M+)"})]})]}),r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx($e,{className:"h-6 w-6 text-primary flex-shrink-0 mt-1"}),r.jsxs("div",{children:[r.jsx("p",{className:"font-bold",children:"5 Core Functions Assessment"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Identify your single biggest bottleneck with surgical precision"})]})]}),r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx($e,{className:"h-6 w-6 text-primary flex-shrink-0 mt-1"}),r.jsxs("div",{children:[r.jsx("p",{className:"font-bold",children:"Strategic Energy Protocols"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Protect your highest-value thinking throughout the day"})]})]}),r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx($e,{className:"h-6 w-6 text-primary flex-shrink-0 mt-1"}),r.jsxs("div",{children:[r.jsx("p",{className:"font-bold",children:"Momentum Network Community"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Connect with systematic founders implementing the same framework"})]})]})]})]}),r.jsxs(G,{className:"p-8 mb-8",children:[r.jsxs("h2",{className:"text-2xl font-bold mb-4 flex items-center gap-2",children:[r.jsx(xr,{className:"h-8 w-8 text-primary"}),"Join the Momentum Network Community"]}),r.jsx("p",{className:"text-lg mb-6",children:"You're not just getting a planning system - you're joining a community of entrepreneurs who have eliminated decision fatigue and recovered 2+ hours of daily strategic capacity."}),r.jsx("p",{className:"text-lg font-semibold mb-6",children:"Your welcome email includes instructions for joining our private Momentum Network community."}),r.jsx("h3",{className:"font-bold text-lg mb-3",children:"Inside the community you'll find:"}),r.jsxs("ul",{className:"space-y-2 mb-6 text-muted-foreground",children:[r.jsx("li",{children:"⢠Daily implementation support from fellow systematic founders"}),r.jsx("li",{children:"⢠Success stories and breakthrough moments"}),r.jsx("li",{children:"⢠Troubleshooting help when you hit obstacles"}),r.jsx("li",{children:"⢠Accountability partners at your business stage"}),r.jsx("li",{children:"⢠Direct access to our team"})]}),r.jsxs("div",{className:"bg-muted p-4 rounded-lg",children:[r.jsx("p",{className:"text-sm font-semibold mb-2",children:"Post your introduction using this template:"}),r.jsx("p",{className:"text-sm italic",children:`"Just joined Quantum Flow Planning! I'm [Name], I run a [Business Type] at [Revenue Range], and my biggest decision fatigue trigger is [Challenge]. Looking forward to recovering my strategic capacity with this group!"`})]})]}),r.jsxs(G,{className:"p-8 mb-8",children:[r.jsx("h2",{className:"text-2xl font-bold mb-6",children:"Need Help? We've Got Your Back"}),r.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[r.jsxs("div",{children:[r.jsx("h3",{className:"font-bold text-lg mb-2",children:"Technical Issues?"}),r.jsxs("p",{className:"text-muted-foreground mb-2",children:["Email: ",r.jsx("a",{href:"mailto:[email protected]",className:"text-primary hover:underline font-semibold",children:"[email protected]"})]}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Response time: Within 2 hours during business days"})]}),r.jsxs("div",{children:[r.jsx("h3",{className:"font-bold text-lg mb-2",children:"Planning Questions?"}),r.jsxs("p",{className:"text-muted-foreground mb-2",children:["Email: ",r.jsx("a",{href:"mailto:[email protected]",className:"text-primary hover:underline font-semibold",children:"[email protected]"})]}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Our team reads and responds to every message personally"})]})]}),r.jsx("p",{className:"mt-6 text-muted-foreground",children:"Remember: You have a 30-day money-back guarantee. If you're not completely satisfied with your progress within 30 days, we'll refund 100% of your investment."})]}),r.jsxs(G,{className:"p-8 mb-8",children:[r.jsxs("h2",{className:"text-2xl font-bold mb-4 flex items-center gap-2",children:[r.jsx(gr,{className:"h-8 w-8 text-primary"}),"Keep an Eye Out for These Important Emails"]}),r.jsx("p",{className:"mb-4",children:"Over the next 30 days, you'll receive:"}),r.jsxs("ul",{className:"space-y-2 mb-6 text-muted-foreground",children:[r.jsx("li",{children:"⢠Daily Implementation Reminders (keep you on track with the system)"}),r.jsx("li",{children:"⢠Weekly Progress Check-ins (celebrate wins, troubleshoot challenges)"}),r.jsx("li",{children:"⢠Assessment Completion Reminders (ensure you have full strategic clarity)"}),r.jsx("li",{children:"⢠Bonus Planning Templates (advanced frameworks and shortcuts)"})]}),r.jsxs("p",{className:"text-sm",children:["Add ",r.jsx("span",{className:"font-semibold",children:"[email protected]"})," and ",r.jsx("span",{className:"font-semibold",children:"[email protected]"})," to your contacts to ensure delivery."]})]}),r.jsxs(G,{className:"p-8 mb-8 bg-primary/5",children:[r.jsx("h2",{className:"text-2xl font-bold mb-4",children:"Your Strategic Recovery Starts Today"}),r.jsx("p",{className:"text-lg mb-4",children:"Right now, you're probably feeling excited, maybe a little nervous, and definitely ready to reclaim your mornings from decision chaos."}),r.jsx("p",{className:"text-lg mb-4",children:"That's perfect. That energy is exactly what you need to transform from reactive responder to strategic leader."}),r.jsx("p",{className:"text-lg mb-4",children:"Your mornings are about to become decision-free. Your strategic capacity is about to be protected. Your business growth is about to accelerate."}),r.jsx("p",{className:"text-lg font-semibold mb-6",children:"But only if you take action starting today."}),r.jsx("p",{className:"text-xl font-bold",children:"Go check your email. Access your Quantum Flow Planner. Take those assessments."}),r.jsx("p",{className:"text-xl font-bold text-primary mt-2",children:"Your strategic transformation starts now."})]}),r.jsxs(G,{className:"p-8 mb-8",children:[r.jsx("h2",{className:"text-2xl font-bold mb-4",children:"Welcome to Quantum Flow Planning"}),r.jsx("p",{className:"text-lg mb-4",children:"I want to personally thank you for trusting me with your strategic transformation."}),r.jsx("p",{className:"mb-4",children:"I know you have countless options for productivity systems and planning tools. The fact that you chose Quantum Flow Planning means you understand the difference between busy work and strategic capacity."}),r.jsx("p",{className:"mb-4",children:"You're not looking for another to-do list. You're looking for a systematic way to eliminate decision fatigue and protect your highest-value thinking."}),r.jsx("p",{className:"mb-4",children:"That's exactly what you're going to get."}),r.jsx("p",{className:"mb-4",children:"I'm honored to be part of your journey from reactive chaos to strategic clarity."}),r.jsx("p",{className:"text-lg font-bold",children:"Welcome to the systematic entrepreneur community. Your best work is ahead of you."}),r.jsxs("p",{className:"mt-4",children:["â Gabe Arnold",r.jsx("br",{}),r.jsx("span",{className:"text-sm text-muted-foreground",children:"CEO, Simple Operations"})]})]})]})})}),r.jsx(ht,{})]})]}),afe="/assets/apply-hero-transformation-D0zFpdPO.jpg";var nN="Radio",[ife,gI]=ir(nN),[ofe,lfe]=ife(nN),xI=j.forwardRef((e,t)=>{const{__scopeRadio:n,name:s,checked:a=!1,required:i,disabled:o,value:l="on",onCheck:c,form:d,...u}=e,[h,f]=j.useState(null),m=Ge(t,v=>f(v)),y=j.useRef(!1),p=h?d||!!h.closest("form"):!0;return r.jsxs(ofe,{scope:n,checked:a,disabled:o,children:[r.jsx(we.button,{type:"button",role:"radio","aria-checked":a,"data-state":wI(a),"data-disabled":o?"":void 0,disabled:o,value:l,...u,ref:m,onClick:me(e.onClick,v=>{a||c==null||c(),p&&(y.current=v.isPropagationStopped(),y.current||v.stopPropagation())})}),p&&r.jsx(bI,{control:h,bubbles:!y.current,name:s,value:l,checked:a,required:i,disabled:o,form:d,style:{transform:"translateX(-100%)"}})]})});xI.displayName=nN;var yI="RadioIndicator",vI=j.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:s,...a}=e,i=lfe(yI,n);return r.jsx(or,{present:s||i.checked,children:r.jsx(we.span,{"data-state":wI(i.checked),"data-disabled":i.disabled?"":void 0,...a,ref:t})})});vI.displayName=yI;var cfe="RadioBubbleInput",bI=j.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:s=!0,...a},i)=>{const o=j.useRef(null),l=Ge(o,i),c=Yg(n),d=pg(t);return j.useEffect(()=>{const u=o.current;if(!u)return;const h=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(h,"checked").set;if(c!==n&&m){const y=new Event("click",{bubbles:s});m.call(u,n),u.dispatchEvent(y)}},[c,n,s]),r.jsx(we.input,{type:"radio","aria-hidden":!0,defaultChecked:n,...a,tabIndex:-1,ref:l,style:{...a.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});bI.displayName=cfe;function wI(e){return e?"checked":"unchecked"}var dfe=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],$x="RadioGroup",[ufe,sxe]=ir($x,[pd,gI]),jI=pd(),NI=gI(),[hfe,mfe]=ufe($x),kI=j.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:s,defaultValue:a,value:i,required:o=!1,disabled:l=!1,orientation:c,dir:d,loop:u=!0,onValueChange:h,...f}=e,m=jI(n),y=bl(d),[p,v]=Xr({prop:i,defaultProp:a??null,onChange:h,caller:$x});return r.jsx(hfe,{scope:n,name:s,required:o,disabled:l,value:p,onValueChange:v,children:r.jsx(Jw,{asChild:!0,...m,orientation:c,dir:y,loop:u,children:r.jsx(we.div,{role:"radiogroup","aria-required":o,"aria-orientation":c,"data-disabled":l?"":void 0,dir:y,...f,ref:t})})})});kI.displayName=$x;var _I="RadioGroupItem",SI=j.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:s,...a}=e,i=mfe(_I,n),o=i.disabled||s,l=jI(n),c=NI(n),d=j.useRef(null),u=Ge(t,d),h=i.value===a.value,f=j.useRef(!1);return j.useEffect(()=>{const m=p=>{dfe.includes(p.key)&&(f.current=!0)},y=()=>f.current=!1;return document.addEventListener("keydown",m),document.addEventListener("keyup",y),()=>{document.removeEventListener("keydown",m),document.removeEventListener("keyup",y)}},[]),r.jsx(ej,{asChild:!0,...l,focusable:!o,active:h,children:r.jsx(xI,{disabled:o,required:i.required,checked:h,...c,...a,name:i.name,ref:u,onCheck:()=>i.onValueChange(a.value),onKeyDown:me(m=>{m.key==="Enter"&&m.preventDefault()}),onFocus:me(a.onFocus,()=>{var m;f.current&&((m=d.current)==null||m.click())})})})});SI.displayName=_I;var ffe="RadioGroupIndicator",CI=j.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...s}=e,a=NI(n);return r.jsx(vI,{...a,...s,ref:t})});CI.displayName=ffe;var EI=kI,TI=SI,pfe=CI;const hi=j.forwardRef(({className:e,...t},n)=>r.jsx(EI,{className:le("grid gap-2",e),...t,ref:n}));hi.displayName=EI.displayName;const mi=j.forwardRef(({className:e,...t},n)=>r.jsx(TI,{ref:n,className:le("aspect-square h-5 w-5 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:r.jsx(pfe,{className:"flex items-center justify-center",children:r.jsx(oE,{className:"h-2.5 w-2.5 fill-current text-current"})})}));mi.displayName=TI.displayName;var Ox="Checkbox",[gfe,axe]=ir(Ox),[xfe,sN]=gfe(Ox);function yfe(e){const{__scopeCheckbox:t,checked:n,children:s,defaultChecked:a,disabled:i,form:o,name:l,onCheckedChange:c,required:d,value:u="on",internal_do_not_use_render:h}=e,[f,m]=Xr({prop:n,defaultProp:a??!1,onChange:c,caller:Ox}),[y,p]=j.useState(null),[v,g]=j.useState(null),x=j.useRef(!1),b=y?!!o||!!y.closest("form"):!0,w={checked:f,disabled:i,setChecked:m,control:y,setControl:p,name:l,form:o,value:u,hasConsumerStoppedPropagationRef:x,required:d,defaultChecked:Ki(a)?!1:a,isFormControl:b,bubbleInput:v,setBubbleInput:g};return r.jsx(xfe,{scope:t,...w,children:vfe(h)?h(w):s})}var $I="CheckboxTrigger",OI=j.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...s},a)=>{const{control:i,value:o,disabled:l,checked:c,required:d,setControl:u,setChecked:h,hasConsumerStoppedPropagationRef:f,isFormControl:m,bubbleInput:y}=sN($I,e),p=Ge(a,u),v=j.useRef(c);return j.useEffect(()=>{const g=i==null?void 0:i.form;if(g){const x=()=>h(v.current);return g.addEventListener("reset",x),()=>g.removeEventListener("reset",x)}},[i,h]),r.jsx(we.button,{type:"button",role:"checkbox","aria-checked":Ki(c)?"mixed":c,"aria-required":d,"data-state":MI(c),"data-disabled":l?"":void 0,disabled:l,value:o,...s,ref:p,onKeyDown:me(t,g=>{g.key==="Enter"&&g.preventDefault()}),onClick:me(n,g=>{h(x=>Ki(x)?!0:!x),y&&m&&(f.current=g.isPropagationStopped(),f.current||g.stopPropagation())})})});OI.displayName=$I;var aN=j.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:s,checked:a,defaultChecked:i,required:o,disabled:l,value:c,onCheckedChange:d,form:u,...h}=e;return r.jsx(yfe,{__scopeCheckbox:n,checked:a,defaultChecked:i,disabled:l,required:o,onCheckedChange:d,name:s,form:u,value:c,internal_do_not_use_render:({isFormControl:f})=>r.jsxs(r.Fragment,{children:[r.jsx(OI,{...h,ref:t,__scopeCheckbox:n}),f&&r.jsx(RI,{__scopeCheckbox:n})]})})});aN.displayName=Ox;var PI="CheckboxIndicator",AI=j.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:s,...a}=e,i=sN(PI,n);return r.jsx(or,{present:s||Ki(i.checked)||i.checked===!0,children:r.jsx(we.span,{"data-state":MI(i.checked),"data-disabled":i.disabled?"":void 0,...a,ref:t,style:{pointerEvents:"none",...e.style}})})});AI.displayName=PI;var II="CheckboxBubbleInput",RI=j.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:s,hasConsumerStoppedPropagationRef:a,checked:i,defaultChecked:o,required:l,disabled:c,name:d,value:u,form:h,bubbleInput:f,setBubbleInput:m}=sN(II,e),y=Ge(n,m),p=Yg(i),v=pg(s);j.useEffect(()=>{const x=f;if(!x)return;const b=window.HTMLInputElement.prototype,N=Object.getOwnPropertyDescriptor(b,"checked").set,S=!a.current;if(p!==i&&N){const _=new Event("click",{bubbles:S});x.indeterminate=Ki(i),N.call(x,Ki(i)?!1:i),x.dispatchEvent(_)}},[f,p,i,a]);const g=j.useRef(Ki(i)?!1:i);return r.jsx(we.input,{type:"checkbox","aria-hidden":!0,defaultChecked:o??g.current,required:l,disabled:c,name:d,value:u,form:h,...t,tabIndex:-1,ref:y,style:{...t.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});RI.displayName=II;function vfe(e){return typeof e=="function"}function Ki(e){return e==="indeterminate"}function MI(e){return Ki(e)?"indeterminate":e?"checked":"unchecked"}const h1=j.forwardRef(({className:e,...t},n)=>r.jsx(aN,{ref:n,className:le("peer h-5 w-5 shrink-0 rounded-sm border border-primary ring-offset-background data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:r.jsx(AI,{className:le("flex items-center justify-center text-current"),children:r.jsx(_e,{className:"h-4 w-4"})})}));h1.displayName=aN.displayName;var iN="Progress",oN=100,[bfe,ixe]=ir(iN),[wfe,jfe]=bfe(iN),DI=j.forwardRef((e,t)=>
798{const{__scopeProgress:n,value:s=null,max:a,getValueLabel:i=Nfe,...o}=e;(a||a===0)&&!e4(a)&&console.error(kfe(`${a}`,"Progress"));const l=e4(a)?a:oN;s!==null&&!t4(s,l)&&console.error(_fe(`${s}`,"Progress"));const c=t4(s,l)?s:null,d=Up(c)?i(c,l):void 0;return r.jsx(wfe,{scope:n,value:c,max:l,children:r.jsx(we.div,{"aria-valuemax":l,"aria-valuemin":0,"aria-valuenow":Up(c)?c:void 0,"aria-valuetext":d,role:"progressbar","data-state":BI(c,l),"data-value":c??void 0,"data-max":l,...o,ref:t})})});DI.displayName=iN;var FI="ProgressIndicator",LI=j.forwardRef((e,t)=>{const{__scopeProgress:n,...s}=e,a=jfe(FI,n);return r.jsx(we.div,{"data-state":BI(a.value,a.max),"data-value":a.value??void 0,"data-max":a.max,...s,ref:t})});LI.displayName=FI;function Nfe(e,t){return`${Math.round(e/t*100)}%`}function BI(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function Up(e){return typeof e=="number"}function e4(e){return Up(e)&&!isNaN(e)&&e>0}function t4(e,t){return Up(e)&&!isNaN(e)&&e<=t&&e>=0}function kfe(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${oN}\`.`}function _fe(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be: 799 - a positive number 800 - less than the value passed to \`max\` (or ${oN} if no \`max\` prop is set) 801 - \`null\` or \`undefined\` if the progress is indeterminate. 802 803Defaulting to \`null\`.`}var WI=DI,Sfe=LI;const Px=j.forwardRef(({className:e,value:t,...n},s)=>r.jsx(WI,{ref:s,className:le("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...n,children:r.jsx(Sfe,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));Px.displayName=WI.displayName;const Cfe=["300k_1m_builder","1m_3m_operator","3m_10m_leader","10m_30m_owner","30m_100m_investor","over_100m_entrepreneur"],Efe=()=>{const e=po(),[t,n]=j.useState(1),[s,a]=j.useState([]),[i,o]=j.useState(!1),[l,c]=j.useState({firstName:"",lastName:"",businessName:"",websiteUrl:"",email:"",phone:"",revenueRange:"",currentStage:"",teamSize:"",workHours:"",operationalChallenges:[],operatorAvailable:"",previousSystems:"",previousSystemsDetails:"",preventionFactor:"",commitmentLevel:"",pricingAcknowledged:!1,referralSource:"",additionalInfo:""}),[d,u]=j.useState({}),h=Cfe.includes(l.revenueRange),m=(()=>{const k=[1,2,3,4,5,6,7];return h&&k.push(8,9),k.push(10,11,12,13),k})(),y=m.length,p=m.indexOf(t),v=(p+1)/y*100;j.useEffect(()=>{localStorage.setItem("applicationForm",JSON.stringify(l))},[l]),j.useEffect(()=>{const k=localStorage.getItem("applicationForm");if(k)try{const E=JSON.parse(k);c(T=>({...T,...E})),E.operationalChallenges&&a(E.operationalChallenges)}catch{}},[]);const g=(k,E)=>{c(T=>({...T,[k]:E})),u(T=>({...T,[k]:""}))},x=(k,E)=>{const T=E?[...s,k]:s.filter(O=>O!==k);a(T),g("operationalChallenges",T)},b=()=>{const k={};switch(t){case 1:l.firstName.trim()||(k.firstName="Required"),l.lastName.trim()||(k.lastName="Required"),l.businessName.trim()||(k.businessName="Required");break;case 2:(!l.email.trim()||!/\S+@\S+\.\S+/.test(l.email))&&(k.email="Valid email required"),(!l.phone||!VO(l.phone))&&(k.phone="Valid phone required");break;case 3:l.revenueRange||(k.revenueRange="Required");break;case 4:l.currentStage||(k.currentStage="Required");break;case 5:l.teamSize||(k.teamSize="Required");break;case 6:l.workHours||(k.workHours="Required");break;case 7:s.length===0&&(k.operationalChallenges="Select at least one");break;case 8:l.operatorAvailable||(k.operatorAvailable="Required");break;case 9:l.previousSystems||(k.previousSystems="Required"),l.previousSystems&&l.previousSystems!=="no_first_time"&&!l.previousSystemsDetails.trim()&&(k.previousSystemsDetails="Please describe your experience");break;case 10:(!l.preventionFactor.trim()||l.preventionFactor.trim().length<20)&&(k.preventionFactor="Please provide at least 20 characters");break;case 11:l.commitmentLevel||(k.commitmentLevel="Required");break;case 12:l.pricingAcknowledged||(k.pricingAcknowledged="Please acknowledge pricing to continue");break}return u(k),Object.keys(k).length>0?(mr.error("Please complete all required fields"),!1):!0},w=()=>
803{if(!b())return;const k=p+1;k<m.length&&n(m[k])},N=()=>{const k=p-1;k>=0&&n(m[k])},S=async()=>{if(b()){o(!0);try{const{data:k,error:E}=await ve.functions.invoke("send-unified-application",{body:l});if(E)throw E;localStorage.removeItem("applicationForm"),(k==null?void 0:k.qualification_result)==="disqualified"?e("/application-not-qualified"):e("/application-success")}catch(k){console.error("Failed to submit:",k),mr.error(`Failed to submit application: ${k.message}`)}finally{o(!1)}}},_=()=>t<=2?"The Basics":t<=4?"The Filter":t<=7?"Operational Reality":t<=9?"The Scale Gap":t<=12?"Commitment & Investment":"Final Details",C=()=>{switch(t){case 1:return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[r.jsxs("div",{className:"space-y-2",children:[r.jsx(oe,{htmlFor:"firstName",children:"First Name *"}),r.jsx(je,{id:"firstName",value:l.firstName,onChange:k=>g("firstName",k.target.value),placeholder:"First name"}),d.firstName&&r.jsx("p",{className:"text-destructive text-sm",children:d.firstName})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(oe,{htmlFor:"lastName",children:"Last Name *"}),r.jsx(je,{id:"lastName",value:l.lastName,onChange:k=>g("lastName",k.target.value),placeholder:"Last name"}),d.lastName&&r.jsx("p",{className:"text-destructive text-sm",children:d.lastName})]})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(oe,{htmlFor:"businessName",children:"Business Name *"}),r.jsx(je,{id:"businessName",value:l.businessName,onChange:k=>g("businessName",k.target.value),placeholder:"Your business name"}),d.businessName&&r.jsx("p",{className:"text-destructive text-sm",children:d.businessName})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(oe,{htmlFor:"websiteUrl",children:"Website URL"}),r.jsx(je,{id:"websiteUrl",value:l.websiteUrl,onChange:k=>g("websiteUrl",k.target.value),placeholder:"https://yourbusiness.com"})]})]});case 2:return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{className:"space-y-2",children:[r.jsx(oe,{htmlFor:"email",children:"Email Address *"}),r.jsx(je,{id:"email",type:"email",value:l.email,onChange:k=>g("email",k.target.value),placeholder:"[email protected]"}),d.email&&r.jsx("p",{className:"text-destructive text-sm",children:d.email})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(oe,{children:"Phone Number *"}),r.jsx(Sj,{value:l.phone,onChange:k=>g("phone",k||"")}),d.phone&&r.jsx("p",{className:"text-destructive text-sm",children:d.phone})]})]});case 3:return r.jsxs("div",{className:"space-y-6",children:[r.jsx(oe,{className:"text-base font-medium",children:"What is your current annual revenue range? *"}),r.jsx(hi,{value:l.revenueRange,onValueChange:k=>g("revenueRange",k),className:"mt-3",children:FP.map(k=>r.jsxs("div",{className:"flex items-center space-x-3 min-h-[44px] py-2",children:[r.jsx(mi,{value:k.value,id:`rev-${k.value}`}),r.jsx(oe,{htmlFor:`rev-${k.value}`,className:"cursor-pointer",children:k.label})]},k.value))}),d.revenueRange&&r.jsx("p",{className:"text-destructive text-sm",children:d.revenueRange})]});case 4:return r.jsxs("div",{className:"space-y-6",children:[r.jsx(oe,{className:"text-base font-medium",children:"How would you describe your current business stage? *"}),r.jsx(hi,{value:l.currentStage,onValueChange:k=>g("currentStage",k),className:"mt-3",children:[{value:"growing_stuck",label:"Growing but stuck â I can't seem to break through to the next level"},{value:"scaling_chaos",label:"Scaling but chaotic â Growth is happening but it's messy"},{value:"plateaued",label:"Plateaued â Revenue has flatlined despite working harder"},{value:"rebuilding",label:"Rebuilding â I need to restructure how my business operates"}].map(k=>r.jsxs("div",{className:"flex items-start space-x-3 min-h-[44px] py-2",children:[r.jsx(mi,{value:k.value,id:`stage-${k.value}`,className:"mt-1"}),r.jsx(oe,{htmlFor:`stage-${k.value}`,className:"cursor-pointer leading-tight",children:k.label})]},k.value))}),d.currentStage&&r.jsx("p",{className:"text-destructive text-sm",children:d.currentStage})]});case 5:return r.jsxs("div",{className:"space-y-6",children:[r.jsx(oe,{className:"text-base font-medium",children:"How many team members do you currently have? *"}),r.jsx(hi,{value:l.teamSize,onValueChange:k=>
803g("teamSize",k),className:"mt-3",children:[{value:"solo",label:"Solo founder"},{value:"2_5",label:"2-5 team members"},{value:"6_15",label:"6-15 team members"},{value:"16_plus",label:"16+ team members"}].map(k=>r.jsxs("div",{className:"flex items-center space-x-3 min-h-[44px] py-2",children:[r.jsx(mi,{value:k.value,id:`team-${k.value}`}),r.jsx(oe,{htmlFor:`team-${k.value}`,className:"cursor-pointer",children:k.label})]},k.value))}),d.teamSize&&r.jsx("p",{className:"text-destructive text-sm",children:d.teamSize})]});case 6:return r.jsxs("div",{className:"space-y-6",children:[r.jsx(oe,{className:"text-base font-medium",children:"How many hours per week do you currently work in your business? *"}),r.jsx(hi,{value:l.workHours,onValueChange:k=>g("workHours",k),className:"mt-3",children:[{value:"30_40",label:"30-40 hours"},{value:"40_50",label:"40-50 hours"},{value:"50_60",label:"50-60 hours"},{value:"60_70",label:"60-70 hours"},{value:"70_plus",label:"70+ hours"}].map(k=>r.jsxs("div",{className:"flex items-center space-x-3 min-h-[44px] py-2",children:[r.jsx(mi,{value:k.value,id:`hours-${k.value}`}),r.jsx(oe,{htmlFor:`hours-${k.value}`,className:"cursor-pointer",children:k.label})]},k.value))}),d.workHours&&r.jsx("p",{className:"text-destructive text-sm",children:d.workHours})]});case 7:return r.jsxs("div",{className:"space-y-6",children:[r.jsx(oe,{className:"text-base font-medium",children:"What's your biggest operational challenge right now? * (Select all that apply)"}),r.jsx("div",{className:"mt-3 space-y-3",children:["Every decision flows back to me","Team waits for my approval on everything","Can't take time off without everything falling apart","Revenue plateaus despite working harder","Constant firefighting instead of strategic work"].map(k=>r.jsxs("div",{className:"flex items-start space-x-3 min-h-[44px] py-2",children:[r.jsx(h1,{id:`ch-${k}`,checked:s.includes(k),onCheckedChange:E=>x(k,!!E),className:"mt-1"}),r.jsx(oe,{htmlFor:`ch-${k}`,className:"cursor-pointer leading-tight flex-1",children:k})]},k))}),d.operationalChallenges&&r.jsx("p",{className:"text-destructive text-sm",children:d.operationalChallenges})]});case 8:return r.jsxs("div",{className:"space-y-6",children:[r.jsx(oe,{className:"text-base font-medium",children:"Do you have someone who could serve as an Operator/Integrator in your business? *"}),r.jsx(hi,{value:l.operatorAvailable,onValueChange:k=>g("operatorAvailable",k),className:"mt-3",children:[{value:"yes_have",label:"Yes, I already have one"},{value:"yes_candidate",label:"Yes, I have someone in mind"},{value:"no_need_help",label:"No, I need help identifying one"},{value:"not_sure",label:"I'm not sure what this role looks like"}].map(k=>r.jsxs("div",{className:"flex items-start space-x-3 min-h-[44px] py-2",children:[r.jsx(mi,{value:k.value,id:`op-${k.value}`,className:"mt-1"}),r.jsx(oe,{htmlFor:`op-${k.value}`,className:"cursor-pointer leading-tight",children:k.label})]},k.value))}),d.operatorAvailable&&r.jsx("p",{className:"text-destructive text-sm",children:d.operatorAvailable})]});case 9:return r.jsxs("div",{className:"space-y-6",children:[r.jsx(oe,{className:"text-base font-medium",children:"Have you tried other operational systems before? *"}),r.jsx(hi,{value:l.previousSystems,onValueChange:k=>g("previousSystems",k),className:"mt-3",children:[{value:"no_first_time",label:"No, this would be my first"},{value:"yes_eos",label:"Yes, EOS (Entrepreneurial Operating System)"},{value:"yes_scaling_up",label:"Yes, Scaling Up / Rockefeller Habits"},{value:"yes_okrs",label:"Yes, OKRs"},{value:"yes_coaching",label:"Yes, other business coaching programs"},{value:"yes_multiple",label:"Yes, multiple systems"}].map(k=>r.jsxs("div",{className:"flex items-center space-x-3 min-h-[44px] py-2",children:[r.jsx(mi,{value:k.value,id:`sys-${k.value}`}),r.jsx(oe,{htmlFor:`sys-${k.value}`,className:"cursor-pointer",children:k.label})]},k.value))}),d.previousSystems&&r.jsx("p",{className:"text-destructive text-sm",children:d.previousSystems}),l.previousSystems&&l.previousSystems!=="no_first_time"&&r.jsxs("div",{className:"space-y-2 mt-4",children:[r.jsx(oe,{htmlFor:"previousSystemsDetails",children:"What happened? Why didn't it work? *"}),r.jsx(bn,{id:"previousSystemsDetails",value:l.previousSystemsDetails,onChange:k=>
803g("previousSystemsDetails",k.target.value),placeholder:"Please explain your experience..."}),d.previousSystemsDetails&&r.jsx("p",{className:"text-destructive text-sm",children:d.previousSystemsDetails})]})]});case 10:return r.jsxs("div",{className:"space-y-6",children:[r.jsx(oe,{className:"text-base font-medium",children:"What is preventing you from being where you want to be? *"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Be specific â this helps us understand how to best support you. (Minimum 20 characters)"}),r.jsx(bn,{value:l.preventionFactor,onChange:k=>g("preventionFactor",k.target.value),placeholder:"Describe what's holding you back from your goals...",className:"min-h-[120px]"}),r.jsxs("p",{className:"text-xs text-muted-foreground",children:[l.preventionFactor.length," / 20 minimum characters"]}),d.preventionFactor&&r.jsx("p",{className:"text-destructive text-sm",children:d.preventionFactor})]});case 11:return r.jsxs("div",{className:"space-y-6",children:[r.jsx(oe,{className:"text-base font-medium",children:"How committed are you to transforming your operations? *"}),r.jsx(hi,{value:l.commitmentLevel,onValueChange:k=>g("commitmentLevel",k),className:"mt-3",children:[{value:"fully_committed",label:"I am 100% committed to making this transformation"},{value:"ready_need_accountability",label:"I feel ready but need accountability and guidance"},{value:"not_right_time",label:"I don't think now is the right time"}].map(k=>r.jsxs("div",{className:"flex items-start space-x-3 min-h-[44px] py-2",children:[r.jsx(mi,{value:k.value,id:`commit-${k.value}`,className:"mt-1"}),r.jsx(oe,{htmlFor:`commit-${k.value}`,className:"cursor-pointer leading-tight",children:k.label})]},k.value))}),d.commitmentLevel&&r.jsx("p",{className:"text-destructive text-sm",children:d.commitmentLevel})]});case 12:return r.jsxs("div",{className:"space-y-6",children:[r.jsx(oe,{className:"text-base font-medium",children:"Investment Acknowledgement *"}),r.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Our programs require a meaningful financial commitment. Please review the pricing below."}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[r.jsxs("div",{className:"p-6 bg-muted/50 rounded-lg border",children:[r.jsx("h4",{className:"font-semibold text-lg mb-2",children:"Clarity Method"}),r.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"For businesses at $40Kâ$300K"}),r.jsxs("div",{className:"space-y-1",children:[r.jsxs("p",{className:"text-xl font-bold text-primary",children:["$6,600 ",r.jsx("span",{className:"text-sm font-normal",children:"paid in full"})]}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"or $600/month à 12 months"})]})]}),r.jsxs("div",{className:"p-6 bg-muted/50 rounded-lg border",children:[r.jsx("h4",{className:"font-semibold text-lg mb-2",children:"Scale Method"}),r.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"For businesses at $300K+"}),r.jsxs("div",{className:"space-y-1",children:[r.jsxs("p",{className:"text-xl font-bold text-primary",children:["$33,000 ",r.jsx("span",{className:"text-sm font-normal",children:"paid in full"})]}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"or $3,000/month à 12 months"})]})]})]}),r.jsxs("div",{className:"flex items-start space-x-3 mt-6 p-4 bg-accent/10 rounded-lg border border-accent/20",children:[r.jsx(h1,{id:"pricing-ack",checked:l.pricingAcknowledged,onCheckedChange:k=>g("pricingAcknowledged",!!k),className:"mt-1"}),r.jsx(oe,{htmlFor:"pricing-ack",className:"cursor-pointer leading-tight",children:"I understand the investment levels and am prepared to discuss the right option for my business during the strategy session."})]}),d.pricingAcknowledged&&r.jsx("p",{className:"text-destructive text-sm",children:d.pricingAcknowledged})]});case 13:return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{className:"space-y-2",children:[r.jsx(oe,{htmlFor:"referralSource",children:"How did you hear about Simple Operations?"}
803),r.jsx(je,{id:"referralSource",value:l.referralSource,onChange:k=>g("referralSource",k.target.value),placeholder:"Google, referral, social media, etc."})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(oe,{htmlFor:"additionalInfo",children:"Anything else you'd like us to know?"}),r.jsx(bn,{id:"additionalInfo",value:l.additionalInfo,onChange:k=>g("additionalInfo",k.target.value),placeholder:"Questions, concerns, or additional context..."})]})]});default:return null}},$=p===m.length-1;return r.jsxs(G,{className:"shadow-medium",id:"application-form",children:[r.jsx(Ie,{children:r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("span",{className:"text-sm font-medium text-primary",children:_()}),r.jsxs("span",{className:"text-sm text-muted-foreground",children:["Step ",p+1," of ",y]})]}),r.jsx(Px,{value:v,className:"h-2"})]})}),r.jsxs(Ne,{className:"space-y-8",children:[C(),r.jsxs("div",{className:"flex justify-between pt-4",children:[r.jsxs(te,{type:"button",variant:"outline",onClick:N,disabled:p===0,className:"flex items-center gap-2",children:[r.jsx(v7,{className:"w-4 h-4"}),"Back"]}),$?r.jsx(te,{type:"button",onClick:S,disabled:i,className:"flex items-center gap-2",children:i?r.jsx(r.Fragment,{children:"Submitting..."}):r.jsxs(r.Fragment,{children:[r.jsx($e,{className:"w-4 h-4"}),"Submit Application"]})}):r.jsxs(te,{type:"button",onClick:w,className:"flex items-center gap-2",children:["Next",r.jsx(Ue,{className:"w-4 h-4"})]})]})]})]})},Tfe=()=>{const{getImageByKey:e}=Nl(),t=e("apply-success-journey")||afe;return r.jsxs("div",{className:"min-h-screen bg-background",children:[r.jsx(_t,{}),r.jsxs("div",{className:"pt-20",children:[r.jsx("section",{className:"py-20 px-4 bg-gradient-elegant",children:r.jsxs("div",{className:"max-w-4xl mx-auto",children:[r.jsxs("div",{className:"text-center mb-10",children:[r.jsx("h1",{className:"text-4xl md:text-6xl font-bold text-foreground mb-6",children:"Apply for Simple Operations Membership"}),r.jsx("p",{className:"text-xl md:text-2xl text-muted-foreground mb-8",children:"Escape the Founder Trap: Transform Chaos to Calm with the Right Program for Your Stage"}),r.jsxs("div",{className:"flex justify-center items-center gap-8 text-sm text-muted-foreground",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(zt,{className:"w-4 h-4"}),"Takes 10-15 minutes"]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(_e,{className:"w-4 h-4 text-green-500"}),"Free strategy session included"]})]})]}),r.jsx("div",{className:"rounded-2xl overflow-hidden shadow-elegant max-w-2xl mx-auto",children:r.jsx("img",{src:t,alt:"Successful business transformation journey",className:"w-full aspect-video object-cover",loading:"lazy"})})]})}),r.jsx("section",{className:"py-12 px-4 bg-section-light border-b",children:r.jsx("div",{className:"max-w-4xl mx-auto",children:r.jsxs(G,{className:"bg-gradient-to-r from-accent/10 to-primary/10 border-accent/20 shadow-medium",children:[r.jsx(Ie,{children:r.jsx(Me,{className:"text-center text-2xl",children:"One Application, Two Programs"})}),r.jsxs(Ne,{className:"space-y-6",children:[r.jsx("div",{className:"text-center",children:r.jsx("p",{className:"text-lg text-muted-foreground",children:"Based on your answers, we'll automatically match you to the right program for your business stage."})}),r.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[r.jsxs("div",{className:"bg-background/80 rounded-xl p-6 border border-primary/20",children:[r.jsx("h3",{className:"text-lg font-semibold text-center mb-2 text-foreground",children:"Clarity Method"}),r.jsx("p",{className:"text-center text-sm text-muted-foreground",children:"For businesses at $40Kâ$300K. Build your operational foundation over 12 months."})]}),r.jsxs("div",{className:"bg-background/80 rounded-xl p-6 border border-primary/20",children:[r.jsx("h3",{className:"text-lg font-semibold text-center mb-2 text-foreground",children:"Scale Method"}),r.jsx("p",{className:"text-center text-sm text-muted-foreground",children:"For businesses at $500Kâ$3M. Install the full operating system over 12 months with weekly 1:1 implementation."})]})]})]})]})})}),r.jsx("section",{className:"py-16 px-4",children:r.jsxs("div",{className:"max-w-4xl mx-auto",children:[r.jsxs(G,{className:"mb-12 shadow-medium",children:[r.jsxs(Ie,{children:[r.jsx(Me,{className:"text-2xl",children:"Is This Application Right for You?"}),r.jsx(dt,{children:"Before You Apply, Ask Yourself:"})]}),r.jsx(Ne,{className:"space-y-6",children:r.jsxs("div",{className:"grid md:grid-cols-2 gap-8",children:[r.jsxs("div",{children:[r.jsx("h3",{className:"font-semibold text-lg mb-4 text-primary",children:"This Is For Expert-Led Founders Who:"}),r.jsx("ul",{className:"space-y-2",children:["Generate $40K+ revenue and are ready to grow systematically","Have a team (or are building one) that needs better systems","Want to re
803claim their time and stop being the bottleneck","Are committed to implementation over just consuming information","Understand that transformation requires investment in both time and resources"].map((n,s)=>r.jsxs("li",{className:"flex items-start gap-2",children:[r.jsx(_e,{className:"w-5 h-5 text-green-500 mt-0.5 flex-shrink-0"}),r.jsx("span",{className:"text-sm",children:n})]},s))})]}),r.jsxs("div",{children:[r.jsx("h3",{className:"font-semibold text-lg mb-4 text-destructive",children:"This Is NOT For:"}),r.jsx("ul",{className:"space-y-2",children:["Startups looking for quick revenue fixes","Founders who want to stay involved in every decision","Businesses with fundamental product-market fit issues","Those seeking free or low-cost solutions","Companies not ready to invest in systematic growth"].map((n,s)=>r.jsxs("li",{className:"flex items-start gap-2",children:[r.jsx(Ft,{className:"w-5 h-5 text-destructive mt-0.5 flex-shrink-0"}),r.jsx("span",{className:"text-sm",children:n})]},s))})]})]})})]}),r.jsx(Efe,{})]})}),r.jsx("section",{className:"py-16 px-4 bg-section-light",children:r.jsx("div",{className:"max-w-4xl mx-auto",children:r.jsxs(G,{className:"shadow-medium",children:[r.jsxs(Ie,{children:[r.jsx(Me,{className:"text-2xl text-center",children:"What Happens Next?"}),r.jsx(dt,{className:"text-center",children:"Our Review Process"})]}),r.jsxs(Ne,{children:[r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 text-center",children:[r.jsxs("div",{className:"space-y-4",children:[r.jsx("div",{className:"w-12 h-12 bg-primary rounded-full flex items-center justify-center text-primary-foreground font-bold text-lg mx-auto",children:"1"}),r.jsx("h3",{className:"font-semibold",children:"Application Review"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Within 48 business hours, we'll review your application and send you a confirmation email."})]}),r.jsxs("div",{className:"space-y-4",children:[r.jsx("div",{className:"w-12 h-12 bg-primary rounded-full flex items-center justify-center text-primary-foreground font-bold text-lg mx-auto",children:"2"}),r.jsx("h3",{className:"font-semibold",children:"Strategy Session"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"If you're a potential fit, we'll schedule a 45-minute conversation to understand your specific challenges."})]}),r.jsxs("div",{className:"space-y-4",children:[r.jsx("div",{className:"w-12 h-12 bg-primary rounded-full flex items-center justify-center text-primary-foreground font-bold text-lg mx-auto",children:"3"}),r.jsx("h3",{className:"font-semibold",children:"Decision"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"We'll either extend a membership invitation or recommend alternative resources that might be a better fit."})]})]}),r.jsxs("div",{className:"mt-12 text-center space-y-4",children:[r.jsx("h4",{className:"font-semibold text-lg",children:"No Pressure, Just Clarity"}),r.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto",children:"This isn't a high-pressure sales call. Our goal is to ensure the Scale Method is the right solution for your specific situation. If we're not a fit, we'll tell you honestly and point you toward resources that might serve you better."})]})]})]})})})]}),r.jsx(ht,{})]})},$fe=()=>{const e="https://simpleoperations.com/book-call";return j.useEffect(()=>{localStorage.removeItem("applicationForm")},[]),r.jsxs("div",{className:"min-h-screen bg-background",children:[r.jsx(_t,{}),r.jsx("div",{className:"pt-20",children:r.jsx("section",{className:"py-20 px-4",children:r.jsx("div",{className:"max-w-4xl mx-auto",children:r.jsx(G,{className:"shadow-medium",children:r.jsx(Ne,{className:"py-16 text-center",children:r.jsxs("div",{className:"animate-scale-in",children:[r.jsx("div",{className:"w-20 h-20 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-6",children:r.jsx($e,{className:"w-12 h-12 text-green-600"})}),r.jsx("h1",{className:"text-4xl md:text-5xl font-bold text-foreground mb-4",children:"Application Submitted Successfully!"}),r.jsx("p",{className:"text-xl text-muted-foreground mb-12 max-w-2xl mx-auto",children:"Thank y
803ou for your interest in Simple Operations. We've received your application and are excited to learn more about your business."}),r.jsxs("div",{className:"bg-primary/5 border border-primary/20 p-8 rounded-lg max-w-2xl mx-auto mb-12",children:[r.jsx("h3",{className:"font-semibold text-xl mb-3",children:"Next Step: Book Your Strategy Session"}),r.jsx("p",{className:"text-muted-foreground mb-6",children:"Schedule your complimentary strategy call so we can dive deeper into your specific challenges."}),r.jsx(te,{asChild:!0,size:"lg",className:"flex items-center gap-2 mx-auto",children:r.jsxs("a",{href:e,target:"_blank",rel:"noopener noreferrer",children:["Book Your Strategy Session",r.jsx(Cr,{className:"w-4 h-4"})]})})]}),r.jsxs("div",{className:"grid md:grid-cols-3 gap-6 max-w-3xl mx-auto mb-12",children:[r.jsxs("div",{className:"flex flex-col items-center p-6 bg-section-light rounded-lg",children:[r.jsx(xr,{className:"w-8 h-8 text-primary mb-3"}),r.jsx("h3",{className:"font-semibold mb-2",children:"Check Your Email"}),r.jsx("p",{className:"text-sm text-muted-foreground text-center",children:"Confirmation sent to your inbox within minutes"})]}),r.jsxs("div",{className:"flex flex-col items-center p-6 bg-section-light rounded-lg",children:[r.jsx(qu,{className:"w-8 h-8 text-primary mb-3"}),r.jsx("h3",{className:"font-semibold mb-2",children:"Strategy Session"}),r.jsx("p",{className:"text-sm text-muted-foreground text-center",children:"We'll schedule a call to understand your challenges"})]}),r.jsxs("div",{className:"flex flex-col items-center p-6 bg-section-light rounded-lg",children:[r.jsx(gr,{className:"w-8 h-8 text-primary mb-3"}),r.jsx("h3",{className:"font-semibold mb-2",children:"48 Hour Response"}),r.jsx("p",{className:"text-sm text-muted-foreground text-center",children:"Expect to hear from us within 2 business days"})]})]}),r.jsxs("div",{className:"bg-muted p-8 rounded-lg max-w-2xl mx-auto mb-8",children:[r.jsx("h4",{className:"font-semibold text-lg mb-3",children:"What Happens Next?"}),r.jsx("p",{className:"text-muted-foreground mb-4",children:"Our team will review your application and determine the best program fit for your business stage and goals."}),r.jsx("p",{className:"text-muted-foreground",children:"We'll reach out to confirm your Strategy Session where we'll dive deeper into your specific challenges and how our system can help transform your operations."})]}),r.jsxs("div",{className:"space-y-4",children:[r.jsx("h4",{className:"font-semibold text-lg",children:"No Pressure, Just Clarity"}),r.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto mb-6",children:"This isn't a high-pressure sales call. Our goal is to ensure we're the right solution for your specific situation."}),r.jsxs("p",{className:"text-sm text-muted-foreground",children:["Questions about your application? Email us at"," ",r.jsx("a",{href:"mailto:[email protected]",className:"text-primary hover:underline",children:"[email protected]"})]})]})]})})})})})}),r.jsx(ht,{})]})},Ofe=()=>{const{socialLinks:e}=I6(),t=e.facebookUrl||"https://www.facebook.com/share/g/1ZmpWaX6w5/";return j.useEffect(()=>{localStorage.removeItem("applicationForm")},[]),r.jsxs("div",{className:"min-h-screen bg-background",children:[r.jsx(_t,{}),r.jsxs("div",{className:"pt-20",children:[r.jsx("section",{className:"py-16 md:py-24 px-4 bg-background",children:r.jsx("div",{className:"max-w-6xl mx-auto",children:r.jsxs("div",{className:"grid md:grid-cols-2 gap-10 items-center",children:[r.jsx("div",{className:"rounded-2xl overflow-hidden shadow-medium",children:r.jsx("img",{src:"/assets/placeholders/transformation-momentum.jpg",alt:"Entrepreneur building operational foundations",className:"w-full h-full object-cover aspect-[4/3]"})}),r.jsxs("div",{children:[r.jsx("h1",{className:"text-3xl md:text-4xl lg:text-5xl font-bold text-foreground mb-6 leading-tight",children:"Thank you for sharing where you are in your journey."}),r.jsxs("p",{className:"text-lg text-muted-foreground mb-4",children:["Based on your answers, you're in what we call the ",r.jsx("strong",{className:"text-foreground",children:"Seeker"})," phase â you're still building the foundation your business needs before our Clarity or Scale Method memberships would be the right fit."]}),r.jsxs("p",{className:"text-lg text-muted-foreground mb-4",children:["That's not a setback â it's a ",r.jsx("strong",{className:"text-foreground",children:"starting point"}),". And we've built something specifically for where you are right now."]}),r.jsxs("p",{className:"text-lg text-muted-foreground",children:["Your next step is to build your ",r.jsx("strong",{className:"text-foreground",children:"Business Operating System"})," â and we have the exact tools to help you do it."]})]})]})})}),r.jsx("section",{className:"py-16 md:py-20 px-4 bg-muted",children:r.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-4",children:"The Next Step: Stabilize Your Foundation"}),r.jsxs("p",{className:"text-lg text-muted-foreground mb-10 max-w-2xl mx-auto",children:["Our Essentials Course is a ",r.jsx("strong",{className:"text-foreground",children:"21-day sprint"})," designed to give you the exact operational systems, frameworks, and habits that transform a struggling business into a scalable one."]}),r.jsx("div",{className:"grid sm:grid-cols-2 gap-6 max-w-2xl mx-auto mb-10 text-left",children:[{icon:$e,title:"Personal Operations Mastery",desc:"Design your ideal week and take control of your time"},{icon:ma,title:"Process Documentation",desc:"Build SOPs that let your business run without you"},{icon:Rs,title:"Quantum Flow Planning",desc:"A strategic planning system for clarity and momentum"}
803,{icon:Wr,title:"Strategic Support",desc:"Two live coaching calls to guide your implementation"}].map(({icon:n,title:s,desc:a})=>r.jsxs("div",{className:"flex gap-4 items-start p-4 bg-background rounded-xl shadow-soft",children:[r.jsx("div",{className:"w-10 h-10 rounded-full bg-primary/15 flex items-center justify-center shrink-0 mt-0.5",children:r.jsx(n,{className:"w-5 h-5 text-primary"})}),r.jsxs("div",{children:[r.jsx("h3",{className:"font-semibold text-foreground mb-1",children:s}),r.jsx("p",{className:"text-sm text-muted-foreground",children:a})]})]},s))}),r.jsx(te,{asChild:!0,size:"lg",variant:"hero",className:"text-lg px-10 py-4",children:r.jsxs(ue,{to:"/essentials",children:["Start the Essentials Course â $277",r.jsx(Ue,{className:"w-5 h-5 ml-1"})]})})]})}),r.jsx("section",{className:"py-16 md:py-20 px-4 bg-background",children:r.jsxs("div",{className:"max-w-4xl mx-auto",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-4 text-center",children:"Free Resources to Get Started Today"}),r.jsx("p",{className:"text-lg text-muted-foreground mb-10 text-center max-w-2xl mx-auto",children:"Not ready for the Essentials Course yet? Start here â completely free."}),r.jsxs("div",{className:"grid md:grid-cols-2 gap-8",children:[r.jsxs("div",{className:"border border-border rounded-2xl p-8 bg-background shadow-soft hover:shadow-medium transition-shadow",children:[r.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/15 flex items-center justify-center mb-5",children:r.jsx(ma,{className:"w-6 h-6 text-primary"})}),r.jsx("h3",{className:"text-xl font-bold text-foreground mb-3",children:"1. Access Your Free Growth Tools"}),r.jsx("p",{className:"text-muted-foreground mb-6",children:"Assessments, templates, and frameworks to help you identify gaps in your operations and start building your foundation."}),r.jsx(te,{asChild:!0,variant:"outline",className:"w-full",children:r.jsxs(ue,{to:"/free-tools",children:["Explore Free Tools",r.jsx(Ue,{className:"w-4 h-4 ml-1"})]})})]}),r.jsxs("div",{className:"border border-border rounded-2xl p-8 bg-background shadow-soft hover:shadow-medium transition-shadow",children:[r.jsx("div",{className:"w-12 h-12 rounded-full bg-accent/15 flex items-center justify-center mb-5",children:r.jsx(Wr,{className:"w-6 h-6 text-accent"})}),r.jsx("h3",{className:"text-xl font-bold text-foreground mb-3",children:"2. Join Our Community"}),r.jsx("p",{className:"text-muted-foreground mb-6",children:"Connect with other entrepreneurs building their operational foundations. Share wins, ask questions, and stay motivated."}),r.jsx(te,{asChild:!0,variant:"outline",className:"w-full",children:r.jsxs("a",{href:t,target:"_blank",rel:"noopener noreferrer",children:["Join the Facebook Group",r.jsx(Ue,{className:"w-4 h-4 ml-1"})]})})]})]})]})}),r.jsx("section",{className:"py-16 md:py-20 px-4 bg-muted",children:r.jsxs("div",{className:"max-w-3xl mx-auto",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-10 text-center",children:"What Happens Next"}),r.jsx("div",{className:"space-y-8",children:[{icon:xr,step:"1",title:"Check Your Email",desc:"We've sent you a confirmation email with links to everything mentioned on this page, plus additional resources to get started."},{icon:Rs,step:"2",title:"Focus on Your Foundation",desc:"Whether you choose the Essentials Course or our free tools, commit to 21 days of building your Business Operating System."},{icon:W7,step:"3",title:"Reapply When You're Ready",desc:"Once you've built your operational foundation, we'd love to hear from you again. Our Clarity Method membership will be here when you're ready."}].map(({icon:n,step:s,title:a,desc:i})=>r.jsxs("div",{className:"flex gap-5 items-start",children:[r.jsx("div",{className:"w-12 h-12 rounded-full bg-secondary text-secondary-foreground flex items-center justify-center shrink-0 font-bold text-lg",children:s}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-xl font-semibold text-foreground mb-1",children:a}),r.jsx("p",{className:"text-muted-foreground",children:i})]})]},s))})]})}),r.jsx("section",{className:"py-16 px-4 bg-background",children:r.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[r.jsx("p",{className:"text-xl md:text-2xl font-semibold text-foreground mb-4 leading-relaxed",children:"Keep building. The transition from Seeker to Starter is where the most important habits are formed."}),r.jsxs("p",{className:"text-muted-foreground mb-8",children:["Questions? Email us at"," ",r.jsx("a",{href:"mailto:[email protected]",className:"text-primary hover:underline font-medium",children:"[email protected]"})]}),r.jsx("img",{src:"/assets/simple-operations-logo.png",alt:"Simple Operations",className:"h-10 mx-auto opacity-70"})]})})]}),r.jsx(ht,{})]})},Pfe="https://tools.simpleoperations.com/register",Afe=[{icon:Rs,accent:"border-primary",badge:"Tool #1",name:"Billionaire Code Assessment",what:'Strategic diagnostic that identifies your current revenue stage and uncovers the foundational gaps limiting growth using the "Look Left to Grow Fast" principle.',discover:["Your exact revenue level position (Seeker â Entrepreneur)","Which earlier-stage foundations you're missing","Primary constraint holding you back from the next level","30-60-90 day action plan to fill the gaps"],why:"Most founders try to
803scale without fixing foundations from earlier stages. This assessment shows you exactly which gaps to fill first.",time:"5â7 minutes",result:"Overall score + foundation analysis + action plan",get:["Overall score across 9 revenue levels","Foundation scores by category (Habits, Market Clarity, Lead Gen, etc.)","Primary constraint identification","Gap analysis with recommendations","Exportable PDF report"]},{icon:og,accent:"border-secondary",badge:"Tool #2",name:"5 Core Functions Assessment",what:"Business diagnostic that identifies your primary constraint across the five core functions: Lead Generation, Lead Nurture, Conversion, Delivery, and Retention/Resell/Upsell.",discover:["Which of the 5 functions is your biggest bottleneck","Overall business health score (out of 5.0)","Specific recommendations for each function",`Why your business feels "broken" (and why that's normal)`],why:"Your business can only grow as fast as your primary constraint allows. This assessment shows you where to focus firstânot everywhere at once.",time:"10â12 minutes",result:"Health score + primary constraint + radar chart",get:["Overall health score (average across 5 functions)","Primary constraint identification","Radar chart visual of all 5 functions","Self-assessment answers recorded","Function-by-function recommendations","Progress tracking over time"]},{icon:pw,accent:"border-accent",badge:"Tool #3",name:"Quantum Flow Planner",what:"Reflective planning tool for weekly and daily intention-setting, gratitude tracking, progress monitoring, and personal development through guided questions.",discover:["Weekly Planning: wins, support needs, commitments, self-care","Daily Planning: gratitude, 24-hour wins, daily intention, tasks","Archive: historical view of all past plans","Export: PDF generation for accountability partners"],why:"Founders who plan their weeks intentionally (not reactively) get 15+ hours back per week. This tool builds that discipline.",time:"10 min/week, 5 min/day",result:"Clear weekly priorities + daily focus + accountability tracking",get:["Weekly planning prompts (inspiration, wins, support, commitments)","Daily planning prompts (gratitude, proud moments, intention, tasks)","Auto-save functionality (never lose progress)","Historical archive of all plans","PDF export for sharing/reviewing","Image upload for visual journaling"]}],Ife=[{quote:"The Billionaire Code Assessment was eye-opening. I thought I needed to focus on scaling, but it showed me I had foundational gaps from earlier stages. That clarity alone was worth thous
803ands.",name:"Alexandra G.",title:"Business Owner"},{quote:"I use the Quantum Flow Planner every Monday morning. It's the only planning tool I've actually stuck with because it's not overwhelmingâjust the right prompts to get focused.",name:"Michele F.",title:"Wellness Business Owner"},{quote:"The 5 Core Functions Assessment told me my primary constraint was Lead Nurture, not Conversion like I thought. I shifted focus and revenue jumped 30% in 60 days.",name:"Joe G.",title:"Sales Coach"},{quote:"These aren't gimmicky lead magnets. These are actual working tools I use every week. Simple Operations earned my trust before I ever booked a call.",name:"Rikki K.",title:"Entrepreneur"}],Rfe=[{icon:Is,title:"Template Library",text:"15+ downloadable frameworks and worksheets"},{icon:xr,title:"Weekly Insights Email",text:"Tips on breaking the founder bottleneck (unsubscribe anytime)"},{icon:Bn,title:"Priority Booking",text:"First access when new assessment slots open"},{icon:Is,title:"Exclusive Tool Updates",text:"New features added regularly, all included free"},{icon:Wr,title:"Community Access",text:"Optional: join the founder community using the tools"}],Mfe=[{q:"Why are these tools free?",a:"We want you to experience the Simple Operations frameworks before deciding if coaching is right for you. These tools build trust and give you real value whether you work with us or not. Plus, if the free tools help you break your bottleneck on your ownâgreat. That's a win."},{q:"Will I get spammed with sales emails?",a:"No. You'll get one welcome email with tool instructions, then one weekly insight email (which you can unsubscribe from anytime). You'll only hear from us directly if you book a Clarity Call."}
803,{q:"Do I need a credit card to access the tools?",a:"Nope. 100% free, no credit card, no trial that converts to paid. Just register and access everything immediately."},{q:"Can I share my results with my team?",a:"Yes. All assessments have PDF export. You can share results with your team, advisors, or accountability partners."},{q:"What happens after I use the tools?",a:"Nothingâunless you take action. The tools are yours to use as often as you want. If you want help implementing what the assessments reveal, you can book a free Clarity Call. Zero pressure."}],Xd=({children:e,size:t="lg"})=>r.jsx(te,{asChild:!0,size:t,className:"bg-primary hover:bg-primary/90 text-primary-foreground shadow-lg",children:r.jsxs("a",{href:Pfe,target:"_blank",rel:"noopener noreferrer",children:[e,r.jsx(Ue,{className:"ml-2 h-5 w-5"})]})}),Dfe=()=>r.jsxs("div",{className:"min-h-screen bg-background",children:[r.jsx(vr,{title:"Free Tools to Break Your Founder Bottleneck | Simple Operations",description:"Access the same diagnostic and planning tools we use with $33K coaching clientsâfree. Billionaire Code, 5 Core Functions, Quantum Flow Planner."}),r.jsx(_t,{}),r.jsx("section",{className:"bg-primary text-primary-foreground pt-32 pb-20",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[r.jsx(it,{className:"mb-6 bg-white/15 text-white border-white/20 hover:bg-white/15",children:"Free Resources"}),r.jsx("h1",{className:"text-4xl md:text-6xl font-semibold leading-tight mb-6",children:"Free Tools to Break Your Founder Bottleneck"}),r.jsx("p",{className:"text-xl md:text-2xl font-light opacity-90 mb-10 leading-relaxed",children:"Access the same diagnostic and planning tools we use with $33K coaching clientsâcompletely free. No credit card required."}),r.jsx(Xd,{children:"Get Free Access to All 3 Tools"}),r.jsxs("div",{className:"mt-8 flex flex-wrap justify-center gap-x-8 gap-y-2 text-sm opacity-90",children:[r.jsxs("span",{className:"inline-flex items-center gap-2",children:[r.jsx(_e,{className:"h-4 w-4"})," Used by 2,500+ founders ($300Kâ$10M+)"]}),r.jsxs("span",{className:"inline-flex items-center gap-2",children:[r.jsx(_e,{className:"h-4 w-4"})," No credit card required"]}),r.jsxs("span",{className:"inline-flex items-center gap-2",children:[r.jsx(_e,{className:"h-4 w-4"})," Instant access after registration"]})]})]})})}),r.jsx("section",{className:"py-20 bg-muted/30",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsxs("div",{className:"max-w-5xl mx-auto grid md:grid-cols-2 gap-6",children:[r.jsxs(G,{className:"p-8 border-l-4 border-l-primary",children:[r.jsxs("h3",{className:"text-2xl font-semibold mb-6 flex items-center gap-2",children:[r.jsx(_e,{className:"h-6 w-6 text-primary"})," Perfect For You If"]}),r.jsx("ul",{className:"space-y-3 text-foreground",children:["$300Kâ$10M+ revenue, 5â25 team members","You're the daily decision bottleneck","You want to diagnose where you're stuck (not just guess)","You're exploring whether Simple Operations is right for you","You want free value before committing to coaching"].map(e=>r.jsxs("li",{className:"flex gap-3",children:[r.jsx(_e,{className:"h-5 w-5 text-primary flex-shrink-0 mt-0.5"}),r.jsx("span",{children:e})]},e))})]}),r.jsxs(G,{className:"p-8 border-l-4 border-l-muted-foreground/40",children:[r.jsxs("h3",{className:"text-2xl font-semibold mb-6 flex items-center gap-2",children:[r.jsx(Ft,{className:"h-6 w-6 text-muted-foreground"})," Not Right For You If"]}),r.jsx("ul",{className:"space-y-3 text-foreground",children:["Under $300K revenue (focus on sales first)","Solo entrepreneur with no team","Already have fully self-running operations","Not interested in data-driven diagnosis"].map(e=>r.jsxs("li",{className:"flex gap-3",children:[r.jsx(Ft,{className:"h-5 w-5 text-muted-foreground flex-shrink-0 mt-0.5"}),r.jsx("span",{children:e})]},e))})]})]})})}),r.jsx("section",{className:"py-20",children:r.jsxs("div",{className:"container mx-auto px-6",children:[r.jsxs("div",{className:"max-w-3xl mx-auto text-center mb-14",children:[r.jsx("h2",{className:"text-3xl md:text-5xl font-semibold mb-4",children:"The 3 Free Tools"}),r.jsx("p",{className:"text-lg text-muted-foreground",children:"Three working tools. Real diagnostics. Built for founders between $300K and $10M+."})]}
803),r.jsx("div",{className:"max-w-5xl mx-auto space-y-8",children:Afe.map(e=>{const t=e.icon;return r.jsx(G,{className:`p-8 md:p-10 border-2 ${e.accent} hover:shadow-xl transition-shadow`,children:r.jsxs("div",{className:"flex flex-col md:flex-row gap-6 md:gap-10",children:[r.jsx("div",{className:"flex-shrink-0",children:r.jsx("div",{className:"w-16 h-16 rounded-xl bg-primary/10 flex items-center justify-center",children:r.jsx(t,{className:"h-8 w-8 text-primary"})})}),r.jsxs("div",{className:"flex-1",children:[r.jsx(it,{variant:"secondary",className:"mb-3",children:e.badge}),r.jsx("h3",{className:"text-2xl md:text-3xl font-semibold mb-4",children:e.name}),r.jsx("p",{className:"text-foreground mb-6 leading-relaxed",children:e.what}),r.jsxs("div",{className:"grid md:grid-cols-2 gap-6 mb-6",children:[r.jsxs("div",{children:[r.jsx("h4",{className:"font-semibold mb-3 text-sm uppercase tracking-wide text-muted-foreground",children:"What You'll Discover"}),r.jsx("ul",{className:"space-y-2",children:e.discover.map(n=>r.jsxs("li",{className:"flex gap-2 text-sm",children:[r.jsx(_e,{className:"h-4 w-4 text-primary flex-shrink-0 mt-1"}),r.jsx("span",{children:n})]},n))})]}),r.jsxs("div",{children:[r.jsx("h4",{className:"font-semibold mb-3 text-sm uppercase tracking-wide text-muted-foreground",children:"What You Get"}),r.jsx("ul",{className:"space-y-2",children:e.get.map(n=>r.jsxs("li",{className:"flex gap-2 text-sm",children:[r.jsx(_e,{className:"h-4 w-4 text-primary flex-shrink-0 mt-1"}),r.jsx("span",{children:n})]},n))})]})]}),r.jsxs("div",{className:"bg-muted/50 rounded-lg p-4 mb-6",children:[r.jsxs("p",{className:"text-sm text-foreground mb-2",children:[r.jsx("span",{className:"font-semibold",children:"Why it matters: "}),e.why]}),r.jsxs("div",{className:"flex flex-wrap gap-x-6 gap-y-1 text-sm text-muted-foreground",children:[r.jsxs("span",{children:[r.jsx("span",{className:"font-semibold text-foreground",children:"Time:"})," ",e.time]}),r.jsxs("span",{children:[r.jsx("span",{className:"font-semibold text-foreground",children:"Result:"})," ",e.result]})]})]}),r.jsxs(Xd,{children:["Access ",e.name]})]})]})},e.name)})})]})}),r.jsx("section",{className:"py-20 bg-muted/30",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsxs("div",{className:"max-w-5xl mx-auto",children:[r.jsx("div",{className:"text-center mb-12",children:r.jsx("h2",{className:"text-3xl md:text-5xl font-semibold mb-4",children:"Get Free Access in 3 Steps"})}),r.jsx("div",{className:"grid md:grid-cols-3 gap-6 mb-12",children:[{n:"1",t:"Register (30 Seconds)",d:"Click below and create your free account. No credit card required."},{n:"2",t:"Access Tools Dashboard",d:"Immediately after registration, you'll see all 3 tools in your dashboard."},{n:"3",t:"Start with Any Tool",d:"Take assessments, use the planner, export your results. Fully unlocked."}].map(e=>r.jsxs(G,{className:"p-8 text-center",children:[r.jsx("div",{className:"w-12 h-12 rounded-full bg-primary text-primary-foreground font-bold text-xl flex items-center justify-center mx-auto mb-4",children:e.n}),r.jsx("h3",{className:"text-xl font-semibold mb-2",children:e.t}),r.jsx("p",{className:"text-muted-foreground",children:e.d})]},e.n))}),r.jsx("div",{className:"text-center",children:r.jsx(Xd,{children:"Register for Free Access Now"})})]})})}),r.jsx("section",{className:"py-20",children:r.jsxs("div",{className:"container mx-auto px-6",children:[r.jsx("div",{className:"max-w-3xl mx-auto text-center mb-12",children:r.jsx("h2",{className:"text-3xl md:text-5xl font-semibold mb-4",children:"What Founders Say After Using the Free Tools"})}),r.jsx("div",{className:"max-w-5xl mx-auto grid md:grid-cols-2 gap-6",children:Ife.map(e=>r.jsxs(G,{className:"p-8",children:[r.jsx(jr,{className:"h-8 w-8 text-primary/40 mb-4"}),r.jsxs("p",{className:"text-foreground italic mb-6 leading-relaxed",children:['"',e.quote,'"']}),r.jsxs("div",{className:"text-sm",children:[r.jsx("p",{className:"font-semibold",children:e.name}),r.jsx("p",{className:"text-muted-foreground",children:e.title})]})]},e.name))})]})}),r.jsx("section",{className:"py-20 bg-muted/30",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsxs("div",{className:"max-w-4xl mx-auto",children:[r.jsxs("div",{className:"text-center mb-12",children:[r.jsx("h2",{className:"text-3xl md:text-5xl font-semibold mb-4",children:"When You Register, You Also Get"}),r.jsx("p",{className:"text-lg text-muted-foreground",children:"Total Value: $497+ · Your Cost: $0"})]}),r.jsx("div",{className:"grid md:grid-cols-2 gap-4 mb-10",children:Rfe.map(e=>{const t=e.icon;return r.jsxs(G,{className:"p-6 flex gap-4 items-start",children:[r.jsx("div",{className:"w-10 h-10 rounded-lg bg-primary/10 flex items-center justify-center flex-shrink-0",children:r.jsx(t,{className:"h-5 w-5 text-primary"})}),r.jsxs("div",{children:[r.jsx("h3",{className:"font-semibold mb-1",children:e.title}),r.jsx("p",{className:"text-sm text-muted-foreground",children:e.text})]})]},e.title)})}),r.jsx("div",{className:"text-center",children:r.jsx(Xd,{children:"Claim Your Free Access"})})]})})}),r.jsx("section",{className:"py-20",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsxs("div",{className:"max-w-3xl mx-auto",children:[r.jsx("div",{className:"text-center mb-12",children:r.jsx("h2",{className:"text-3xl md:text-5xl font-semibold mb-4",children:"Questions About the Free Tools"})}),r.jsx(xo,{type:"single",collapsible:!0,className:"w-full",children:Mfe.map((e,t)=>r.jsxs(Za,{value:`item-${t}`,children:[r.jsx(Xa,{className:"text-left text-lg font-semibold",children:e.q}),r.jsx(Ja,{className:"text-base text-muted-foreground leading-relaxed",children:e.a})]},t))})]})})}),r.jsx("section",{className:"py-20 bg-muted/30",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsxs("div",{className:"max-w-2xl mx-auto",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-semibold mb-8 text-center",children:"Here's What to Expect"}),r.jsx("div",{className:"space-y-6",children:[{t:"Immediately After Registration",items:["Access to the tools dashboard","Welcome email with getting-started guide","Ability to take all 3 assessments right away"]},{t:"Within 24 Hours",items:["Weekly insights email (first one includes bonus templates)"]},{t:"Ongoing",items:["Use tools as often as you want (unlimited access)","Retake assessments quarterly to track progress","Export and share results anytime"]},{t:"Optional Next Steps",items:["Book a free Clarity Call if you want implementation help","Explore Clarity Method, Scale Method, or Essentials Course","Join the Simple Operations community (optional)"]}].map(e=>r.jsxs(G,{className:"p-6",children:[r.jsx("h3",{className:"font-semibold mb-3",children:e.t}),r.jsx("ul",{className:"space-y-2",children:e.items.map(t=>r.jsxs("li",{className:"flex gap-2 text-foreground",children:[r.jsx(_e,{className:"h-5 w-5 text-primary flex-shrink-0 mt-0.5"}),r.jsx("span",{children:t})]},t))})]},e.t))}),r.jsx("p",{className:"text-center mt-8 text-muted-foreground italic",children:"You control the pace. No pressure. Just tools that help."})]})})}),r.jsx("section",{className:"py-24 bg-primary text-primary-foreground",children:r.jsxs("div",{className:"container mx-auto px-6 text-center max-w-3xl",children:[r.jsx("h2",{className:"text-3xl md:text-5xl font-semibold mb-6 leading-tight",children:"Ready to Diagnose Your Bottleneck?"}),r.jsx("p",{className:"text-xl opacity-90 mb-10 leading-relaxed",children:"Stop guessing where you're stuck. Use the same tools our $33K coaching clients use to identify their exact constraints."}),r.jsx("div",{className:"grid md:grid-cols-3 gap-4 mb-10 text-left",children:[{n:"1",t:"Register for free access (30 seconds)"},{n:"2",t:"Take the assessments or start planning"},{n:"3",t:"See exactly where to focus first"}].map(e=>r.jsxs("div",{className:"bg-white/10 rounded-lg p-5 flex items-start gap-3",children:[r.jsx("div",{className:"w-8 h-8 rounded-full bg-white text-primary font-bold flex items-center justify-center flex-shrink-0",children:e.n}),r.jsx("p",{className:"text-sm leading-relaxed",children:e.t})]},e.n))}),r.jsx(Xd,{children:"Get Free Access to All 3 Tools Now"}),r.jsx("p",{className:"mt-6 text-sm opacity-80",children:"No credit card. No spam. No pressure. Just clarity."})]})}),r.jsx(ht,{})]}),Wm="/apply",Ffe=[{label:"Revenue",value:"$300Kâ$500K annually"},{label:"Team",value:"3â10 people starting to depend on you"},{label:"Reality",value:"You see the bottleneck coming and want to prevent it"}
803,{label:"Goal",value:"Build foundations now so you scale past $1M smoothly"},{label:"Commitment",value:"12 months, 60 min/week implementation calls"}],Lfe=["Under $250K revenue (focus on sales first)","Already past $1M (you need Scale Method instead)","Want quick fixes vs. building actual foundations","Not ready to implement weekly operating rhythms","Can't commit to a 90-day timeline"],Bfe=['Hiring your 4th or 5th person and hearing "What should I do?" all day',"Working more hours than when you had 2 employees","Wondering how you'll scale to $1M when it's already this chaotic","Watching other founders hit $1M+ and burn out â and not wanting to be next"],Wfe=[{label:"Revenue",value:"Grind to $800Kâ$1M on pure hustle"},{label:"Hours",value:"From 45/week to 60+/week as you grow"},{label:"Team",value:"12â15 people who all depend on you for answers"},{label:"Reality",value:"You become the bottleneck you tried to avoid"},{label:"Growth",value:"Revenue stalls because you're maxed out"},{label:"Outcome",value:"Built a job, not a business â and you're trapped in it"}],Ufe=[{label:"Revenue",value:"Scale to $800Kâ$1M without doubling your hours"},{label:"Hours",value:"30â40 hours/week while competitors work 60+"},{label:"Team",value:"Makes decisions inside clear frameworks â without you"},{label:"Reality",value:"Systems absorb growth instead of you absorbing it"},{label:"Freedom",value:"Take your first real vacation while the business runs"},{label:"Outcome",value:"Built a scalable asset that grows without exhausting you"}],qfe=[{icon:pw,name:"Weekly Sync System",what:'60-minute weekly operating rhythm that replaces scattered check-ins and constant "Got a minute?" interruptions.',get:["Weekly Sync meeting structure (agenda, roles, timing)","Communication batching framework","Team accountability tracking"],timeline:"Installed Weeks 1â2",result:"Team knows when they have your attention â stops interrupting 15+ times a day."},{icon:cg,name:"Decision Rights Framework (Four Levels of Delegation)",what:"Clear authority levels that show your team which decisions are theirs vs. which need your input.",get:["Decision rights mapping workshop","Authority level framework (L1âL4)","Team onboarding for decision ownership"],timeline:"Installed Weeks 3â6",result:"Team makes 70%+ of recurring decisions without asking you."},{icon:dE,name:"Waterfall Planning Method",what:"Simple planning cascade where company goals flow to team priorities to individual accountability.",get:["Quarterly planning framework (company targets)","Monthly priority setting (team execution)","Weekly task clarity (individual focus)"],timeline:"Installed Weeks 7â12",result:"Everyone knows what success looks like this week â without asking you."}],Hfe=[{label:"Phase 1",name:"Install Weekly Sync",months:"Weeks 1â2",focus:"Create a predictable communication rhythm",bullets:["Week 1: Kickoff + Role Clarity Session","Week 2: First Weekly Sync with your team"],milestone:'First "no interruption" workday by Week 2'},{label:"Phase 2",name:"Transfer Decision Rights",months:"Weeks 3â6",focus:"Clear authority boundaries",bullets:["Week 3: Decision mapping workshop","Weeks 4â5: Four Levels of Delegation with team","Week 6: First week where team makes majority of decisions"],milestone:"70%+ of recurring decisions made without you by Week 6"},{label:"Phase 3",name:"Build Planning Rhythm",months:"Weeks 7â12",focus:"Clarity on priorities without constant checking",bullets:["Weeks 7â8: Waterfall Planning framework setup","Week 9: First virtual quarterly planning session","Weeks 10â12: Monthly and weekly rhythm operational"],milestone:"First full week where business runs without you by Day 90"}],zfe=[{title:"Implementation Partnership",items:["90-day Simple Operations Guide partnership","Weekly 60-minute implementation calls","Unlimited email/Slack support between calls","Custom roadmap for your business model"]},{title:"Core Systems & Frameworks",items:["Weekly Sync meeting templates","Decision Rights Framework (Four Levels of Delegation)","Waterfall Planning method","Team accountability tools","Communication batching protocols"]},{title:"Team Training & Adoption",items:["Team onboarding for all frameworks","Decision rights workshops","Accountability system installation","Change management support"]},{title:"Templates & Resources",items:["Complete template library (15+ tools)","Meeting agendas and facilitation guides","Planning worksheets","Delegation matrices"]},{title:"Ongoing Support",items:["Weekly progress tracking","System refinement as you implement","Troubleshooting as issues emerge","Access to Clarity Method member community"]}],Gfe=[{name:"Colin T.",company:"Thompson Inspections",headline:"$18K/mo â $55K/mo in 4 Months",before:["Working constantly, every decision running through Colin","Admin side consuming all his time","January revenue: $18,000/month"],installed:["OTAs (One-Time Actions) for recurring decisions","Waterfall Planning for team clarity","Daily Huddles for batched communication"],quote:`"The whole admin side runs by itself now. I didn't touch anything all last week. Revenue went from $18K in January to $55K this month."`,results:["Revenue: $55K/month (3x growth)","Team fully autonomous on admin operations","First chaos-free mornings in years","Scaled smoothly past $500K with foundations in place"],timeline:"First autonomous week at 90 days"},{name:"Michele F.",company:"Jubilee of Wellness",headline:"From Scattered to Focused â Discipline Through Systems",before:["Wellness business with unclear boundaries","Time management struggles","Inconsistent follow-through on priorities"],installed:["Quantum Flow Planning (time study discipline)","Boundary-setting frameworks","Weekly accountability rhythms"],quote:`"I feel the difference⦠I'm in a good place for boundaries this year and that's not something that comes easily for me."`,results:["Clear client boundary systems","Personal discipline and focus improved","Consistent momentum on key targets"],timeline:"Boundary clarity within 30 days"},{name:"Dustin F.",company:"Marketing Dr.",headline:"From Chaos to Confidence in Agency Growth",before:["Agency chaos, constant firefighting","Founder insecure about scaling ability","No foundational operational security"],installed:["Foundational security systems","Team capacity dashboard","Weekly planning rhythms"],quote:`"I feel more confident as we implement these things. It's good to have some more stability. It's nice having some more foundational pieces."`,results:["Stability achieved within 30 days","Founder confidence restored","Growth trajectory secured with systems in place"],timeline:"Stability within 30 days, full confidence by 90 days"}],Yfe=[{label:"Revenue",clarity:"$300Kâ$500K",scale:"$500Kâ$3M"},{label:"Team Size",clarity:"3â10 people",scale:"8â25 people"},{label:"Current State",clarity:"Seeing cracks, want to prevent bottleneck",scale:"Already stuck as the bottleneck"},{label:"Timeline",clarity:"12 months",scale:"12 months"},{label:"What You Install",clarity:"Core 3 foundations",scale:"Full 5-component system"},{label:"Investment",clarity:"$600/mo ($6,600/yr prepaid)",scale:"$3,000/mo ($33,000/yr prepaid)"},{label:"Best For",clarity:"Prevention before $1M",scale:"Breaking bottleneck after $500K"}],Vfe=[{q:"Should I wait until I'm at $500K to do this?",a:`No. That's like saying "I'll install brakes once I'm going 80mph." The systems are easier to install now when you have 5 people than later when you have 15 and bad habits are cemented. Start at $300Kâ$500K and you'll scale smoothly. Wait until $1M and you'll spend 6 months undoing chaos.`},{q:"I'm bootstrapped and the investment feels like a lot right now.",a:"We get it â $600/mo over a full year is a real commitment. But the math: if Clarity saves you 10 hours/week (conservative), that's 40+ hours/month. At a $150/hour founder rate, that's $6,000/month in reclaimed time â the program pays for itself in the first month. Most founders 2â3x revenue within 12 months of installing these foundations, which is exactly why it's a year-long program."},{q:"Can I just implement this myself with the book?",a:"You could. But most founders don't â because implementation requires accountability, customization, and team adoption work. The book gives you the frameworks. The Clarity Method installs them WITH you. Big difference between knowing and doing."},{q:"What if my team doesn't follow through?",a:"You get a Simple Operations Guide who works side-by-side with your team. We don't hand you a binder and disappear â we implement alongside you. Adoption is part of the work. Every program is backed by our 30-day money-back guarantee: if you're not completely satisfied with your progress within 30 days, just send us an email and we'll refund 100% of your investment."},{q:"How is this different from hiring a part-time COO?",a:"A part-time COO costs $3Kâ$5K/month ($9Kâ$15K over 90 days) and you still have to tell them what systems to build. We bring pre-built frameworks that have worked 2,500+ times. You get the systems AND the implementation support for half the cost of a COO."}],Kfe=[{q:"Meeting with Gabe was so helpful for breaking through focus on too many details and getting laser clear on what is most important. Ever since that meeting, business is flowing and I am having more fun in it!",name:"Alexandra G.",role:"Clarity Method"}
803,{q:"I was able to receive a lot of great advice. Gabe is really easy to talk to, and very approachable, so it's easy to be open about some of the tougher aspects of running a business.",name:"Francesca S.",role:"Ethos By Design"},{q:"That little bit of clarity helped me close a $4,000 client within a week and a half, with another in the pipeline for $2,500. That 30 minutes brought me almost $6,500 in less than a month.",name:"Joe G.",role:"The Joseph Graham Show"},{q:"Gabe spent more time listening than dispensing advice. But because he listened and asked questions, the advice was deadly accurate. The clarity call provided exactly what I needed to move forward.",name:"Ron W.",role:"Insurance For Texans"}];function Qfe(){return r.jsxs("div",{className:"min-h-screen bg-background",children:[r.jsx(vr,{title:"Clarity Method â Install Your Operating System Before the $1M Wall",description:"12-month foundation program for founders $300Kâ$500K. Install Weekly Sync, decision rights, and Waterfall Planning before chaos catches up.",keywords:"Clarity Method, founder operations, weekly sync, decision rights, waterfall planning, simple operations"}),r.jsx(_t,{}),r.jsxs("main",{className:"pt-20",children:[r.jsx("section",{className:"relative overflow-hidden bg-gradient-to-br from-primary/10 via-background to-background border-b",children:r.jsx("div",{className:"container mx-auto px-4 py-16 md:py-24 max-w-5xl",children:r.jsxs("div",{className:"text-center space-y-6",children:[r.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-primary text-primary-foreground text-xs font-bold tracking-wider uppercase",children:[r.jsx(Is,{className:"w-3.5 h-3.5"}),"Clarity Method · 12-Month Foundation Program"]}),r.jsxs("h1",{className:"text-4xl md:text-6xl lg:text-7xl font-bold leading-tight",children:["Build Your Operating System",r.jsx("br",{}),r.jsx("span",{className:"text-primary",children:"Before You Hit the $1M Wall."})]}),r.jsx("p",{className:"text-lg md:text-xl text-muted-foreground max-w-3xl mx-auto leading-relaxed",children:"You're doing $300Kâ$500K. Install the foundations now â before the chaos catches up with you."}),r.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center items-center pt-4",children:[r.jsx(te,{asChild:!0,variant:"hero",size:"lg",className:"h-14 px-8 text-base",children:r.jsxs(ue,{to:Wm,children:["Apply for Clarity Method",r.jsx(Ue,{className:"w-5 h-5 ml-2"})]})}),r.jsx(te,{asChild:!0,variant:"ghost",size:"lg",className:"h-14",children:r.jsxs(ue,{to:"/scale",children:[r.jsx(Vf,{className:"w-4 h-4 mr-2"}),"Compare with Scale Method"]})})]}),r.jsxs("div",{className:"pt-6 flex flex-wrap items-center justify-center gap-x-8 gap-y-2 text-sm text-muted-foreground",children:[r.jsxs("span",{className:"flex items-center gap-2",children:[r.jsx("span",{className:"w-2 h-2 rounded-full bg-emerald-500"}),"Built for founders growing toward $1M"]}),r.jsxs("span",{className:"flex items-center gap-2",children:[r.jsx(ss,{className:"w-4 h-4 text-primary"}),"Avg. result: operational clarity in 30 days, first autonomous week by Day 90"]})]})]})})}),r.jsx("section",{className:"py-16 md:py-24",children:r.jsxs("div",{className:"container mx-auto px-4 max-w-5xl",children:[r.jsxs("div",{className:"text-center mb-12 space-y-3",children:[r.jsx("p",{className:"text-sm uppercase tracking-wider text-primary font-bold",children:"Is This For You?"}),r.jsx("h2",{className:"text-3xl md:text-4xl font-bold",children:"Built for one stage of founder."})]}),r.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[r.jsxs(G,{className:"p-6 md:p-8 border-2 border-primary/30 bg-primary/5",children:[r.jsxs("h3",{className:"text-xl md:text-2xl font-bold mb-6 flex items-center gap-2",children:[r.jsx(_e,{className:"w-6 h-6 text-emerald-600"}),"This Program Is For You If:"]}),r.jsx("ul",{className:"space-y-4",children:Ffe.map(e=>r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(_e,{className:"w-5 h-5 text-emerald-600 mt-0.5 flex-shrink-0"}),r.jsxs("div",{children:[r.jsxs("span",{className:"font-bold",children:[e.label,": "]}
803),r.jsx("span",{className:"text-foreground/85",children:e.value})]})]},e.label))})]}),r.jsxs(G,{className:"p-6 md:p-8 border-2 border-muted bg-muted/30",children:[r.jsxs("h3",{className:"text-xl md:text-2xl font-bold mb-6 flex items-center gap-2",children:[r.jsx(Ft,{className:"w-6 h-6 text-destructive"}),"This Program Is NOT For You If:"]}),r.jsx("ul",{className:"space-y-4",children:Lfe.map(e=>r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(Ft,{className:"w-5 h-5 text-destructive mt-0.5 flex-shrink-0"}),r.jsx("span",{className:"text-foreground/85",children:e})]},e))})]})]})]})}),r.jsx("section",{className:"py-16 md:py-24 bg-muted/40 border-y",children:r.jsxs("div",{className:"container mx-auto px-4 max-w-3xl space-y-6",children:[r.jsx("p",{className:"text-sm uppercase tracking-wider text-destructive font-bold",children:"The Problem"}),r.jsx("h2",{className:"text-3xl md:text-5xl font-bold leading-tight",children:"You're at the most dangerous revenue stage."}),r.jsx("p",{className:"text-lg leading-relaxed text-foreground/90",children:'Right now at $300Kâ$500K, everything still "works." You can still touch every client relationship. You can still be in most decisions. You can still keep it all in your head. But the cracks are showing:'}),r.jsx("ul",{className:"space-y-2",children:Bfe.map(e=>r.jsxs("li",{className:"flex items-start gap-3 text-foreground/85",children:[r.jsx("span",{className:"mt-2 w-1.5 h-1.5 rounded-full bg-foreground
803/40 flex-shrink-0"}),r.jsx("span",{children:e})]},e))}),r.jsxs("div",{className:"p-6 bg-background rounded-lg border-l-4 border-primary mt-6 space-y-3",children:[r.jsx("p",{className:"text-lg md:text-xl font-bold",children:"The bottleneck doesn't hit at $1M. It gets installed between $300Kâ$500K."}),r.jsxs("p",{className:"text-foreground/85 leading-relaxed",children:["Every time you answer a question your team should be answering themselves, you're teaching them to depend on you. By $1M, those habits are concrete â and breaking them is ",r.jsx("span",{className:"font-bold text-primary",children:"10x harder"})," than building the right systems now."]})]})]})}),r.jsx("section",{className:"py-16 md:py-24",children:r.jsxs("div",{className:"container mx-auto px-4 max-w-6xl",children:[r.jsxs("div",{className:"text-center mb-12 space-y-3 max-w-2xl mx-auto",children:[r.jsx("p",{className:"text-sm uppercase tracking-wider text-primary font-bold",children:"12 Months From Now"}),r.jsx("h2",{className:"text-3xl md:text-4xl font-bold",children:"Two paths from $300Kâ$500K."})]}),r.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[r.jsxs(G,{className:"p-6 md:p-8 border-2 border-destructive/40 bg-destructive/5 space-y-5",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx(Ji,{className:"w-6 h-6 text-destructive"}),r.jsx("h3",{className:"text-xl md:text-2xl font-bold",children:"Wing It and Hope"})]}),r.jsx("ul",{className:"space-y-3",children:Wfe.map(e=>r.jsxs("li",{children:[r.jsxs("span",{className:"font-bold",children:[e.label,": "]}),r.jsx("span",{className:"text-foreground/85",children:e.value})]},e.label))}),r.jsx("p",{className:"text-sm italic text-destructive font-semibold pt-2",children:"You built a job, not a business â and now you're trapped."})]}),r.jsxs(G,{className:"p-6 md:p-8 border-2 border-emerald-500/40 bg-emerald-50 dark:bg-emerald-950/30 space-y-5",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx(Bn,{className:"w-6 h-6 text-emerald-600"}),r.jsx("h3",{className:"text-xl md:text-2xl font-bold",children:"Install Foundations Now"})]}),r.jsx("ul",{className:"space-y-3",children:Ufe.map(e=>r.jsxs("li",{children:[r.jsxs("span",{className:"font-bold",children:[e.label,": "]}),r.jsx("span",{className:"text-foreground/85",children:e.value})]},e.label))}),r.jsx("p",{className:"text-sm italic text-emerald-700 dark:text-emerald-400 font-semibold pt-2",children:"Build the foundation BEFORE you need it."})]})]})]})}),r.jsx("section",{className:"py-16 md:py-24 bg-muted/40 border-y",children:r.jsxs("div",{className:"container mx-auto px-4 max-w-6xl",children:[r.jsxs("div",{className:"text-center mb-12 space-y-4 max-w-3xl mx-auto",children:[r.jsx("p",{className:"text-sm uppercase tracking-wider text-primary font-bold",children:"The Clarity Method"}),r.jsx("h2",{className:"text-3xl md:text-5xl font-bold leading-tight",children:"A 12-Month Foundation Program â Results as Early as 90 Days."}),r.jsxs("p",{className:"text-lg text-muted-foreground leading-relaxed",children:["This isn't theory. This is"," ",r.jsx("span",{className:"font-bold text-foreground",children:"implementation partnership."})," We install the core operating foundations WITH you â the systems that prevent the founder bottleneck before it traps you."]}),r.jsx("p",{className:"text-base text-primary font-semibold",children:"By Day 90: your team operates inside clear frameworks. You're not in every decision."})]}),r.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:qfe.map((e,t)=>{const n=e.icon;return r.jsxs(G,{className:"p-6 space-y-4 relative hover:shadow-lg transition-shadow",children:[r.jsxs("div",{className:"flex items-start justify-between",children:[r.jsx("div",{className:"p-3 rounded-lg bg-primary/10 text-primary",children:r.jsx(n,{className:"w-6 h-6"})}),r.jsxs("span",{className:"text-xs font-bold text-muted-foreground uppercase tracking-wider",children:["0",t+1]})]}),r.jsx("h3",{className:"text-xl font-bold leading-tight",children:e.name}
803),r.jsx("p",{className:"text-sm text-foreground/85 leading-relaxed",children:e.what}),r.jsx("ul",{className:"space-y-1.5",children:e.get.map(s=>r.jsxs("li",{className:"flex items-start gap-2 text-sm",children:[r.jsx(_e,{className:"w-4 h-4 text-primary mt-0.5 flex-shrink-0"}),r.jsx("span",{children:s})]},s))}),r.jsxs("div",{className:"pt-3 border-t space-y-1 text-xs",children:[r.jsxs("p",{children:[r.jsx("span",{className:"font-bold text-primary",children:"Timeline: "}),r.jsx("span",{className:"text-muted-foreground",children:e.timeline})]}),r.jsxs("p",{children:[r.jsx("span",{className:"font-bold text-emerald-600",children:"Result: "}),r.jsx("span",{className:"text-foreground/85",children:e.result})]})]})]},e.name)})})]})}),r.jsx("section",{className:"py-16 md:py-24",children:r.jsxs("div",{className:"container mx-auto px-4 max-w-6xl",children:[r.jsxs("div",{className:"text-center mb-12 space-y-3 max-w-2xl mx-auto",children:[r.jsx("p",{className:"text-sm uppercase tracking-wider text-primary font-bold",children:"Your 90-Day Roadmap"}),r.jsx("h2",{className:"text-3xl md:text-4xl font-bold",children:"Phase by phase."})]}),r.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:Hfe.map((e,t)=>r.jsxs(G,{className:"p-6 space-y-4 relative",children:[r.jsx("div",{className:"absolute -top-3 -left-3 w-12 h-12 rounded-full bg-primary text-primary-foreground flex items-center justify-center font-bold text-lg shadow-lg",children:t+1}),r.jsxs("div",{className:"pt-3",children:[r.jsx("p",{className:"text-xs uppercase tracking-wide text-primary font-bold",children:e.months}),r.jsx("h3",{className:"text-xl font-bold mt-1",children:e.name}),r.jsx("p",{className:"text-sm text-muted-foreground italic mt-1",children:e.focus})]}),r.jsx("ul",{className:"space-y-1.5 text-sm",children:e.bullets.map(n=>r.jsxs("li",{className:"flex items-start gap-2 text-foreground/85",children:[r.jsx("span",{className:"mt-2 w-1 h-1 rounded-full bg-primary flex-shrink-0"}),r.jsx("span",{children:n})]},n))}),r.jsxs("div",{className:"pt-3 border-t",children:[r.jsx("p",{className:"text-xs",children:r.jsx("span",{className:"font-bold text-emerald-600 uppercase tracking-wider",children:"Milestone"})}),r.jsx("p",{className:"text-sm font-semibold mt-1",children:e.milestone})]})]},e.label))})]})}),r.jsx("section",{className:"py-16 md:py-24 bg-muted/40 border-y",children:r.jsxs("div",{className:"container mx-auto px-4 max-w-6xl",children:[r.jsxs("div",{className:"text-center mb-12 space-y-3 max-w-2xl mx-auto",children:[r.jsx("p",{className:"text-sm uppercase tracking-wider text-primary font-bold",children:"What's Included"}),r.jsx("h2",{className:"text-3xl md:text-4xl font-bold",children:"Everything you get in the Clarity Method."})]}),r.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:zfe.map(e=>r.jsxs(G,{className:"p-6 space-y-4",children:[r.jsx("h3",{className:"text-lg font-bold",children:e.title}),r.jsx("ul",{className:"space-y-2",children:e.items.map(t=>r.jsxs("li",{className:"flex items-start gap-2 text-sm",children:[r.jsx(_e,{className:"w-4 h-4 text-emerald-600 mt-0.5 flex-shrink-0"}),r.jsx("span",{className:"text-foreground/85",children:t})]},t))})]},e.title))})]})}),r.jsx("section",{className:"py-16 md:py-24",children:r.jsxs("div",{className:"container mx-auto px-4 max-w-5xl",children:[r.jsxs("div",{className:"text-center mb-12 space-y-3 max-w-2xl mx-auto",children:[r.jsx("p",{className:"text-sm uppercase tracking-wider text-primary font-bold",children:"Proof"}),r.jsx("h2",{className:"text-3xl md:text-4xl font-bold",children:"Real founders. Real results. Real prevention."})]}),r.jsx("div",{className:"space-y-8",children:Gfe.map(e=>r.jsxs(G,{className:"p-6 md:p-10 space-y-6",children:[r.jsxs("div",{className:"flex flex-col md:flex-row md:items-start md:justify-between gap-3",children:[r.jsxs("div",{children:[r.jsxs("h3",{className:"text-2xl font-bold",children:[e.name," ",r.jsxs("span",{className:"text-muted-foreground font-normal",children:["â ",e.company]})]}),r.jsx("p",{className:"text-lg text-primary font-semibold mt-1",children:e.headline})]}),r.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[r.jsx(zt,{className:"w-4 h-4"}),e.timeline]})]}),r.jsxs("div",{className:"grid md:grid-cols-3 gap-6",children:[r.jsxs("div",{className:"space-y-2",children:[r.jsx("p",{className:"text-xs uppercase tracking-wider font-bold text-destructive",children:"Before"}
803),r.jsx("ul",{className:"space-y-1.5 text-sm text-foreground/85",children:e.before.map(t=>r.jsxs("li",{children:["⢠",t]},t))})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx("p",{className:"text-xs uppercase tracking-wider font-bold text-primary",children:"What We Installed"}),r.jsx("ul",{className:"space-y-1.5 text-sm text-foreground/85",children:e.installed.map(t=>r.jsxs("li",{children:["⢠",t]},t))})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx("p",{className:"text-xs uppercase tracking-wider font-bold text-emerald-600",children:"Results"}),r.jsx("ul",{className:"space-y-1.5 text-sm text-foreground/85",children:e.results.map(t=>r.jsxs("li",{children:["⢠",t]},t))})]})]}),r.jsxs("div",{className:"p-4 bg-muted/50 rounded-lg border-l-4 border-primary",children:[r.jsx(jr,{className:"w-5 h-5 text-primary/50 mb-2"}),r.jsx("p",{className:"italic text-foreground/90",children:e.quote})]})]},e.name))}),r.jsx("div",{className:"text-center mt-10",children:r.jsx(te,{asChild:!0,variant:"hero",size:"lg",className:"h-14 px-8",children:r.jsxs(ue,{to:Wm,children:["Apply for Clarity Method",r.jsx(Ue,{className:"w-5 h-5 ml-2"})]})})})]})}),r.jsx("section",{className:"py-16 md:py-24 bg-muted/40 border-y",children:r.jsxs("div",{className:"container mx-auto px-4 max-w-5xl",children:[r.jsxs("div",{className:"text-center mb-12 space-y-3 max-w-2xl mx-auto",children:[r.jsx("p",{className:"text-sm uppercase tracking-wider text-primary font-bold",children:"Help Me Choose"}),r.jsx("h2",{className:"text-3xl md:text-4xl font-bold",children:"Not sure if you need Clarity or Scale?"})]}),r.jsx(G,{className:"overflow-hidden",children:r.jsx("div",{className:"overflow-x-auto",children:r.jsxs("table",{className:"w-full text-left",children:[r.jsx("thead",{className:"bg-muted/60",children:r.jsxs("tr",{children:[r.jsx("th",{className:"p-4 text-xs uppercase tracking-wider font-bold text-muted-foreground"}),r.jsx("th",{className:"p-4 text-sm font-bold text-primary",children:"Clarity Method"}),r.jsx("th",{className:"p-4 text-sm font-bold",children:"Scale Method"})]})}),r.jsx("tbody",{children:Yfe.map((e,t)=>r.jsxs("tr",{className:t%2===0?"bg-background":"bg-muted/20",children:[r.jsx("td",{className:"p-4 font-bold text-sm",children:e.label}),r.jsx("td",{className:"p-4 text-sm text-foreground/85 bg-primary/5",children:e.clarity}),r.jsx("td",{className:"p-4 text-sm text-foreground/85",children:e.scale})]},e.label))})]})})}),r.jsx("div",{className:"text-center mt-8",children:r.jsx(te,{asChild:!0,variant:"outline",size:"lg",children:r.jsxs(ue,{to:"/assessment",children:["Still not sure? Take the 5-Min Path Quiz",r.jsx(Ue,{className:"w-4 h-4 ml-2"})]})})})]})}),r.jsx("section",{className:"py-16 md:py-24",children:r.jsxs("div",{className:"container mx-auto px-4 max-w-4xl space-y-8",children:[r.jsxs("div",{className:"text-center space-y-3",children:[r.jsx("p",{className:"text-sm uppercase tracking-wider text-primary font-bold",children:"Investment"}),r.jsx("h2",{className:"text-3xl md:text-4xl font-bold",children:"Clarity Method: 12-Month Implementation Partnership"})]}),r.jsxs(G,{className:"p-8 md:p-12 border-2 border-primary shadow-xl space-y-8 text-center",children:[r.jsxs("div",{children:[r.jsxs("p",{className:"text-5xl md:text-6xl font-bold text-primary",children:["$600",r.jsx("span",{className:"text-2xl md:text-3xl text-foreground/70",children:"/mo"})]}),r.jsxs("p",{className:"text-muted-foreground mt-2",children:["12-month commitment · ",r.jsx("span",{className:"font-bold",children:"Pay annually $6,600"})," and get one month free"]}),r.jsx("p",{className:"text-sm text-foreground/70 mt-3 max-w-xl mx-auto",children:"Clarity Method is a full 12-month program. We've found that founders who commit to the entire year are the ones who achieve extraordinary growth and finally break free from being the bottleneck."})]}),r.jsx("div",{className:"grid sm:grid-cols-2 gap-4 text-left max-w-2xl mx-auto",children:["12-month implementation partnership","Weekly coaching calls (60 min each)","Complete core framework installation","All templates and tools","Unlimited support between calls","Access to the member community"].map(e=>r.jsxs("div",{className:"flex items-start gap-2 text-sm",children:[r.jsx(_e,{className:"w-4 h-4 text-emerald-600 mt-0.5 flex-shrink-0"}),r.jsx("span",{children:e})]},e))}),r.jsxs("div",{className:"p-4 bg-muted/50 rounded-lg text-left max-w-2xl mx-auto",children:[r.jsx("p",{className:"font-bold mb-2",children:"Average ROI"}
803),r.jsxs("p",{className:"text-sm text-foreground/85 leading-relaxed",children:["Founders report saving 10â15 hours/week within 60 days. At a $150/hour founder rate, that's $1,500â$2,250/week in reclaimed time â"," ",r.jsx("span",{className:"font-bold",children:"breakeven in 3â5 weeks."})]})]}),r.jsx(te,{asChild:!0,variant:"hero",size:"lg",className:"h-14 px-10",children:r.jsxs(ue,{to:Wm,children:["Apply for Clarity Method",r.jsx(Ue,{className:"w-5 h-5 ml-2"})]})})]}),r.jsxs(G,{className:"p-6 md:p-10 flex flex-col md:flex-row gap-6 items-center bg-amber-50 dark:bg-amber-950/30 border-2 border-amber-200 dark:border-amber-900",children:[r.jsx("div",{className:"flex-shrink-0 w-24 h-24 rounded-full bg-amber-100 dark:bg-amber-900 flex items-center justify-center",children:r.jsx(Bn,{className:"w-12 h-12 text-amber-600 dark:text-amber-300"})}),r.jsxs("div",{className:"text-center md:text-left",children:[r.jsx("h3",{className:"text-2xl md:text-3xl font-bold",children:"Our 30-Day Money-Back Guarantee"}),r.jsxs("p",{className:"mt-3 text-foreground/90 leading-relaxed",children:["Try the Simple Operations System for 30 days. If you're not completely satisfied with your progress, we'll refund 100% of your investment."," ",r.jsx("span",{className:"font-bold",children:"No questions asked. No hoops to jump through."})]}),r.jsx("p",{className:"mt-2 text-sm text-foreground/80",children:"Just send us a simple email within 30 days and your refund will be processed within 5 business days."})]})]})]})}),r.jsx("section",{className:"py-16 md:py-24 bg-muted/40 border-y",children:r.jsxs("div",{className:"container mx-auto px-4 max-w-3xl space-y-5",children:[r.jsx("p",{className:"text-sm uppercase tracking-wider text-primary font-bold",children:"Real Talk"}),r.jsx("h2",{className:"text-3xl md:text-4xl font-bold leading-tight",children:"Is this right for you?"}),r.jsx("p",{className:"text-lg text-foreground/85 leading-relaxed",children:"You're doing $300Kâ$500K and growing. You've got 3â10 people on your team. You're starting to feel the chaos creeping in â more hours, more questions, more things only you can answer."}),r.jsxs("p",{className:"text-lg text-foreground/85 leading-relaxed",children:["You're smart enough to know that winging it to $1M is a recipe for burnout. You want to build the foundations ",r.jsx("span",{className:"font-bold",children:"now"})," while it's still manageable â and you'll commit 90 days and 60 minutes per week to install systems that save you 10â15 hours per week for years to come."]}),r.jsxs("div",{className:"p-6 bg-background rounded-lg border-l-4 border-primary",children:[r.jsx("p",{className:"text-xl font-bold",children:"You don't need more grit."}),r.jsx("p",{className:"text-xl font-bold text-primary",children:"You need foundations."}),r.jsx("p",{className:"mt-3 text-foreground/85",children:"That's what we build together."})]})]})}),r.jsx("section",{className:"py-16 md:py-24",children:r.jsxs("div",{className:"container mx-auto px-4 max-w-3xl",children:[r.jsxs("div",{className:"text-center mb-12 space-y-3",children:[r.jsx("p",{className:"text-sm uppercase tracking-wider text-primary font-bold",children:"FAQ"}),r.jsx("h2",{className:"text-3xl md:text-4xl font-bold",children:"Questions founders ask before starting."})]}),r.jsx(xo,{type:"single",collapsible:!0,className:"w-full",children:Vfe.map((e,t)=>r.jsxs(Za,{value:`item-${t}`,children:[r.jsx(Xa,{className:"text-left text-base md:text-lg font-semibold",children:e.q}),r.jsx(Ja,{className:"text-foreground/85 leading-relaxed text-base",children:e.a})]},e.q))})]})}),r.jsx("section",{className:"py-12 md:py-16 bg-amber-50 dark:bg-amber-950/30 border-y border-amber-200 dark:border-amber-900",children:r.jsxs("div",{className:"container mx-auto px-4 max-w-3xl text-center space-y-4",children:[r.jsxs("div",{className:"inline-flex items-center gap-2 text-amber-700 dark:text-amber-300 font-bold",children:[r.jsx(zt,{className:"w-5 h-5"}),r.jsx("span",{className:"uppercase tracking-wider text-sm",children:"Start Today"})]}),r.jsx("h2",{className:"text-2xl md:text-3xl font-bold",children:"Don't Stay Stuck as the Bottleneck"}
803),r.jsx("p",{className:"text-foreground/85 leading-relaxed",children:'Every week you wait is another week of decisions piling up and your team waiting on you. Clarity Method installs the Core 3 framework in 90 days â your first "business runs without me" week starts at day 90.'}),r.jsx("p",{className:"text-foreground/85 leading-relaxed",children:"Apply today, get on a Clarity Call this week, and start breaking your bottleneck."}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Backed by our 30-day money-back guarantee."})]})}),r.jsx("section",{className:"py-16 md:py-24",children:r.jsxs("div",{className:"container mx-auto px-4 max-w-6xl",children:[r.jsxs("div",{className:"text-center mb-12 space-y-3",children:[r.jsx("p",{className:"text-sm uppercase tracking-wider text-primary font-bold",children:"In Their Words"}),r.jsx("h2",{className:"text-3xl md:text-4xl font-bold",children:"What founders say after building their foundation."})]}),r.jsx("div",{className:"grid md:grid-cols-2 gap-6",children:Kfe.map(e=>r.jsxs(G,{className:"p-6 space-y-3",children:[r.jsx(jr,{className:"w-6 h-6 text-primary/40"}),r.jsxs("p",{className:"italic text-foreground/85 leading-relaxed",children:['"',e.q,'"']}),r.jsxs("div",{className:"pt-2 border-t",children:[r.jsx("p",{className:"font-bold text-sm",children:e.name}),r.jsx("p",{className:"text-xs text-muted-foreground",children:e.role})]})]},e.name+e.role))})]})}),r.jsx("section",{className:"py-20 md:py-28 bg-primary text-primary-foreground",children:r.jsxs("div",{className:"container mx-auto px-4 max-w-4xl text-center space-y-6",children:[r.jsx(gr,{className:"w-12 h-12 mx-auto opacity-90"}),r.jsx("h2",{className:"text-4xl md:text-6xl font-bold leading-tight",children:"Ready to build your foundation?"}),r.jsx("p",{className:"text-lg md:text-xl opacity-90 max-w-2xl mx-auto leading-relaxed",children:"You're at the most important stage: $300Kâ$500K. What you install NOW determines whether you scale smoothly or burn out at $1M."}),r.jsx("p",{className:"text-lg md:text-xl opacity-95 max-w-2xl mx-auto font-semibold pt-2",children:"You've already proven the business works."}),r.jsx("p",{className:"opacity-85 max-w-2xl mx-auto leading-relaxed",children:"Now build the operating foundation that lets you scale past $1M â without becoming the bottleneck."}),r.jsx("div",{className:"grid sm:grid-cols-3 gap-4 max-w-2xl mx-auto pt-6 text-left",children:["Apply for the Clarity Method (2-minute application)","Book your free strategy call","Start Week 1 and install your first foundation"].map((e,t)=>r.jsxs("div",{className:"p-4 rounded-lg bg-primary-foreground/10 border border-primary-foreground/20",children:[r.jsxs("p",{className:"text-xs font-bold opacity-75 mb-1",children:["STEP ",t+1]}),r.jsx("p",{className:"text-sm",children:e})]},e))}),r.jsxs("div",{className:"pt-6 flex flex-col sm:flex-row gap-4 justify-center",children:[r.jsx(te,{asChild:!0,size:"lg",variant:"secondary",className:"h-14 px-8 text-base",children:r.jsxs(ue,{to:Wm,children:["Apply for Clarity Method Now",r.jsx(Ue,{className:"w-5 h-5 ml-2"})]})}),r.jsx(te,{asChild:!0,size:"lg",variant:"ghost",className:"h-14 text-primary-foreground hover:bg-primary-foreground/10 hover:text-primary-foreground",children:r.jsxs(ue,{to:"/so-book",children:[r.jsx(ma,{className:"w-4 h-4 mr-2"}),"Read the book first"]})})]})]})}),r.jsx("section",{className:"py-12 md:py-16 bg-muted/40 border-t",children:r.jsx("div",{className:"container mx-auto px-4 max-w-4xl",children:r.jsxs("div",{className:"grid md:grid-cols-3 gap-6 text-center md:text-left",children:[r.jsxs(G,{className:"p-5 space-y-2",children:[r.jsx(xr,{className:"w-5 h-5 text-primary mx-auto md:mx-0"}),r.jsx("h3",{className:"font-bold",children:"Still have questions?"}),r.jsxs("p",{className:"text-sm text-muted-foreground",children:["Email"," ",r.jsx("a",{href:"mailto:[email protected]",className:"text-primary hover:underline font-semibold",children:"[email protected]"})," ","or"," ",r.jsx(ue,{to:"/book-call",className:"text-primary hover:underline font-semibold",children:"book a 15-min Q&A"}),"."]})]}),r.jsxs(G,{className:"p-5 space-y-2",children:[r.jsx(Vf,{className:"w-5 h-5 text-primary mx-auto md:mx-0"}),r.jsx("h3",{className:"font-bold",children:"Compare programs"}),r.jsxs("p",{className:"text-sm text-muted-foreground",children:["Past $500K already?"," ",r.jsx(ue,{to:"/scale",className:"text-primary hover:underline font-semibold",children:"See the Scale Method"}),"."]})]}),r.jsxs(G,{className:"p-5 space-y-2",children:[r.jsx(ma,{className:"w-5 h-5 text-primary mx-auto md:mx-0"}),r.jsx("h3",{className:"font-bold",children:"Read the book first"}),r.jsxs("p",{className:"text-sm text-muted-foreground",children:["Want to learn the framework before committing?"," ",r.jsx(ue,{to:"/so-book",className:"text-primary hover:underline font-semibold",children:'Get "The Passenger Seat Leader"'}),"."]})]})]})})})]}),r.jsx(ht,{})]})}const Um="/apply",Zfe=[{label:"Revenue",value:"$500Kâ$3M+ annually"}
803,{label:"Team",value:"5â25+ people who depend on you too much"},{label:"Reality",value:"You're the daily bottleneck â decisions wait for you"},{label:"Tried",value:"Delegation hasn't worked because there's no system"},{label:"Goal",value:"Business runs while you work 40-hour weeks (not 60+)"},{label:"Commitment",value:"12 months, 60 min/week implementation calls"}],Xfe=["Under $500K revenue (start with Clarity Method instead)","Fewer than 5 team members (not enough complexity yet)","Want a quick fix vs. building an actual operating system","Not willing to change how you currently operate","Looking for general coaching (this is operations-specific)","Can't commit to a 12-month implementation timeline"],Jfe=['Hiring a "COO" who still asks you to approve everything',"Building SOPs that nobody reads","Project management tools that became glorified to-do lists","Delegation that always boomerangs back to your desk"],epe=[{label:"Revenue",value:"Stuck at current level â can't scale because you're maxed out"},{label:"Team",value:"Best people leave (frustrated waiting on you for decisions)"},{label:"Hours",value:"60+ hours/week just to maintain current revenue"},{label:"Stress",value:"Constant firefighting, zero strategic time"},{label:"Family",value:"Missing games, dinners, life â resenting the business you built"},{label:"Exit Value",value:"Low (business doesn't run without you = lower multiple)"}],tpe=[{label:"Revenue",value:"$2Mâ$5M+ (team executes while you focus on strategy)"},{label:"Team",value:"Self-managing, making 80%+ of decisions independently"},{label:"Hours",value:"30â40 hours/week, first real vacations in years"},{label:"Stress",value:"Operating Scorecard surfaces problems before they're crises"},{label:"Family",value:"Present for what matters, enjoying the business again"},{label:"Exit Value",value:"High (systems-driven business = premium multiple)"}],rpe=[{icon:yl,name:"Passenger Seat Leadership Framework",what:'The mental model shift from "operator who manages" to "architect who designs systems."',get:["Role clarity workshop (what you keep vs. what you transfer)","CEO Time Blocking framework (strategic time protected)",'"Passenger Seat" decision-making model'],timeline:"Installed Month 1",result:"You stop being in every decision. You start designing how decisions get made."},{icon:pw,name:"Weekly Sync System",what:"60â90 minute weekly operating rhythm that replaces scattered check-ins and constant interruptions.",get:["Weekly Sync meeting structure (agenda, roles, cadence)","Communication batching protocols","Escalation rules (when team needs you vs. when they don't)"],timeline:"Installed Month 1â2",result:"15+ hours back per week from eliminated interruptions."},{icon:dE,name:"Waterfall Planning Method",what:"Cascading planning system where company goals flow down to team priorities to individual accountability.",get:["Quarterly planning framework (company-level targets)","Monthly priority cascade (team-level execution)","Weekly accountability tracking (individual-level clarity)"],timeline:"Installed Month 2â3",result:"Team knows what success looks like without asking you."},{icon:cg,name:"Four Levels of Delegation Framework",what:"Visual decision-rights transfer system using the Four Levels of Delegation framework.",get:["Decision rights mapping (what stays with you, what transfers)","Authority level framework (L1âL4 decision authority)","Team onboarding for decision ownership"],timeline:"Installed Month 3â4",result:"Team makes 80%+ of operational decisions independently."},{icon:xw,name:"Operating Scorecard",what:"5 key metrics that show business health, updated quarterly, reviewed consistently.",get:["Custom scorecard build (your specific leading indicators)","Dashboard setup (visual, real-time)","Review rhythm (weekly 10-min check)"],timeline:"Installed Month 4â5",result:"You see problems before they become crises â without micromanaging."}],npe=[{label:"Phase 1",name:"Foundation",months:"Months 1â3",focus:"Install core operating rhythms",bullets:["Week 1: Kickoff + Role Clarity Workshop","Week 2â4: Weekly Sync installed and running","Month 2: Waterfall Planning framework built","Month 3: First virtual quarterly planning session complete"],milestone:'First "business runs without me" week by Month 3'},{label:"Phase 2",name:"Delegation",months:"Months 4â6",focus:"Transfer decision-making authority",bullets:["Month 4: Four Levels of Delegation workshops with team","Month 5: Decision rights formally transferred","Month 6: Team making 60%+ of decisions independently"],milestone:"First full week off without business interruption"},{label:"Phase 3",name:"Visibility",months:"Months 7â9",focus:"Build data-driven oversight",bullets:["Month 7: Operating Scorecard designed","Month 8: Dashboard built and populated","Month 9: Weekly review rhythm operational"],milestone:"10-minute weekly reviews replace gut-feel management"},{label:"Phase 4",name:"Optimization",months:"Months 10â12",focus:"Refine and scale",bullets:["Month 10â11: Process optimization based on data","Month 12: System audit + future scaling plan","Ongoing: Virtual virtual quarterly strategic reviews"],milestone:"Business operating at $2Mâ$5M without founder dependency"}],spe=[{title:"Implementation Partnership",items:["12-month Simple Operations Guide partnership","Weekly 60-minute implementation calls","Virtual virtual quarterly strategic reviews ","Unlimited support between calls","Custom installation roadmap for your business model"]},{title:"Systems & Frameworks",items:["Complete Simple Operations System (all 5 components)","Passenger Seat Leadership training","Weekly Sync meeting templates","Waterfall Planning framework","Four Levels of Delegation tools","Operating Scorecard dashboard"]},{title:"Team Training & Adoption",items:["Team onboarding for all frameworks","Decision rights workshops","Manager training for delegation","Accountability systems installation","Change management support"]},{title:"Templates & Resources",items:["Complete template library (20+ tools)","Meeting agendas and facilitation guides","Planning worksheets","Delegation matrices","Scorecard build templates"]},{title:"Ongoing Support",items:["Monthly progress tracking","System refinement as you scale","Troubleshooting bottlenecks as they emerge","Access to Scale Method member community","Virtual quarterly strategic planning sessions"]}],ape=[{name:"Colin T.",company:"Thompson Inspections",headline:"$18K/mo â $55K/mo Revenue in 4 Months",before:["Working constantly, admin side consuming all time","Couldn't step away for a single day","Every decision waiting on Colin","January revenue: $18,000/month"],installed:["OTAs (One-Time Actions) for recurring decisions","Waterfall Planning for team clarity","Daily Huddles for batched communication","Admin delegation framework"],quote:`"The whole admin side runs by itself now. I didn't touch anything all last week. Revenue went from $18K in January to $55K this month."`,results:["Revenue: $55K/month (3x growth)","Team fully autonomous on admin operations","Colin working strategic role, not operational firefighting","First chaos-free mornings in years","On track for $500K+ annual revenue"],timeline:"First autonomous week at 90 days, full system operational at 6 months"},{name:"Brian B.",company:"Canopy Management",headline:"Scaling Toward $30M with Simplified Operations",before:["Growing fast but processes getting complex","Team waiting on leadership for decisions","Multiple competing operational systems","Founder time consumed by tactical execution"],installed:["Single Source of Truth dashboard","Streamlined process framework","Leadership decision-rights clarity","Capacity planning tools"],quote:`"We're optimizing what we have⦠making our processes more simple. We're not just adding complexity as we scale â we're simplifying."`,results:["Re-engaged leadership team within 60 days","Clear operational visibility without micromanaging","Bought back 10+ hours per week for strategic work","Scaling systems in place for $30M target"],timeline:"Leadership clarity within 60 days, full optimization ongoing"},{name:"Dustin F.",company:"Marketing Dr.",headline:"From Agency Chaos to Confident Growth",before:["Agency chaos, constant firefighting","Insecure about ability to scale","Founder stressed, team reactive","No foundational operational security"],installed:["Clarity Method foundations (first 90 days)","Team capacity dashboard","Weekly planning rhythms","Founder security frameworks"],quote:`"I feel more confident as we implement these things. We'll be in a really good position by end of year."`,results:["Stability achieved within 30 days","Confidence in growth trajectory","Team using AI + time studies for efficiency","Foundation in place for scaling without breaking"],timeline:"Stability within 30 days, confident growth trajectory within 90 days"}],ipe=[{q:"How is this different from hiring a COO or Integrator?",a:"A COO without systems just becomes another person who depen
803ds on you. We install the operating system FIRST, then anyone â COO, you, or your team â can operate it. Many of our clients hire a COO after installing Scale Method, because now there's actually a system for them to run."},{q:"I've tried EOS/Traction. How is this different?",a:"EOS is unproven for sub-$10M founder-led businesses, expensive (minimum $150,000 to install), and requires 2+ years of bureaucratic rollout. Scale Method is built specifically for $500Kâ$3M founders who need operating systems without the enterprise overhead â rapid implementation (90 days to first results) vs. 2+ year rollouts at a fraction of the cost."},{q:"What if my business model is unique?",a:"We've installed this in agencies, consulting firms, SaaS companies, professional services, property management, inspections, wellness clinics, and trade businesses. The bottleneck isn't in WHAT you do â it's in HOW decisions get made. That's universal."},{q:"What's the time commitment?",a:"Weekly 60-minute implementation call, plus 2â4 hours/week implementing what we build together, plus virtual quarterly half-day strategic reviews (4 per year). Total: ~5â6 hours/week during implementation. By Month 6, this drops to ~2 hours/week as systems run themselves."},{q:"Do you work with my team or just me?",a:"Both. You're our primary partner, but we train your team on every framework. They attend specific calls for delegation workshops, planning sessions, and system onboarding. This ensures adoption, not just you holding another binder."},{q:"What if my team doesn't follow through?",a:"Adoption is part of the implementation. We don't hand you tools and disappear â we install them WITH your team, troubleshoot resistance, and refine until they stick. If systems aren't being used, we diagnose why and fix it."},{q:"Can I start mid-year or do I need to wait for Q1?",a:"You can start any month. We align your first virtual quarterly planning session with your next quarter, but the core system installation begins immediately (Week 1)."},{q:"What happens after 12 months?",a:"The system is installed and your team is running it. Most members choose to stay in the program â not because they have to, but because of the community of expert-led founders and the consistent year-over-year profitable growth that happens here. Many members achieve 40% year-over-year growth while compounding the systems you installed in Year 1."}],ope=[{q:"I woke up and checked email â nothing urgent. First time in months. The processes we installed are actually working.",name:"Colin T.",role:"Thompson Inspections"},{q:"We're optimizing what we have⦠making our processes more simple. This should create more time for me.",name:"Brian B.",role:"Canopy Management"},{q:"I feel more confident as we implement these things. I'm very hopeful⦠we'll be in a really good position by end of year.",name:"Dustin F.",role:"Marketing Dr."},{q:"The consistent weekly check-ins provide clarity on tasks. Simple Operations keeps us organized â it's a high-end checklist that ensures consistency and helps us see results.",name:"Grace P.",role:"Operations Manager"},{q:"Having the tools and one-pagers already built saved me months. It aligns leadership and the team with a common language.",name:"Micah A.",role:"Agency Founder"}];function lpe(){return r.jsxs("div",{className:"min-h-screen bg-background",children:[r.jsx(vr,{title:"Scale Method â Build a $3M+ Business That Runs Without You",description:"12-month implementation partnership for founders $500Kâ$3M. Install the Simple Operations System and reclaim 15+ hours/week.",keywords:"Scale Method, founder bottleneck, operating system, simple operations, scale to $3M"}),r.jsx(_t,{}),r.jsxs("main",{className:"pt-20",children:[r.jsx("section",{className:"relative overflow-hidden bg-gradient-to-br from-primary/10 via-background to-background border-b",children:r.jsx("div",{className:"container mx-auto px-4 py-16 md:py-24 max-w-5xl",children:r.jsxs("div",{className:"text-center space-y-6",children:[r.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-primary text-primary-foreground text-xs font-bold tracking-wider up
803percase",children:[r.jsx(Is,{className:"w-3.5 h-3.5"}),"Scale Method · 12-Month Implementation Partnership"]}),r.jsxs("h1",{className:"text-4xl md:text-6xl lg:text-7xl font-bold leading-tight",children:["Build a ",r.jsx("span",{className:"text-primary",children:"$3M+ Business"}),r.jsx("br",{}),"That Runs Without You."]}),r.jsx("p",{className:"text-lg md:text-xl text-muted-foreground max-w-3xl mx-auto leading-relaxed",children:"You've proven the model works. Now install the operating system that lets you scale past $3M without becoming more trapped in operations."}),r.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center items-center pt-4",children:[r.jsx(te,{asChild:!0,variant:"hero",size:"lg",className:"h-14 px-8 text-base",children:r.jsxs(ue,{to:Um,children:["Apply for Scale Method",r.jsx(Ue,{className:"w-5 h-5 ml-2"})]})}),r.jsx(te,{asChild:!0,variant:"ghost",size:"lg",className:"h-14",children:r.jsxs(ue,{to:"/clarity",children:[r.jsx(Vf,{className:"w-4 h-4 mr-2"}),"Compare with Clarity Method"]})})]}),r.jsxs("div",{className:"pt-6 flex flex-wrap items-center justify-center gap-x-8 gap-y-2 text-sm text-muted-foreground",children:[r.jsxs("span",{className:"flex items-center gap-2",children:[r.jsx("span",{className:"w-2 h-2 rounded-full bg-emerald-500"}),"Currently working with dozens of founders between $500Kâ$3M"]}),r.jsxs("span",{className:"flex items-center gap-2",children:[r.jsx(ss,{className:"w-4 h-4 text-primary"}),"Avg. result: 15+ hours back per week within 90 days"]})]})]})})}),r.jsx("section",{className:"py-16 md:py-24",children:r.jsxs("div",{className:"container mx-auto px-4 max-w-5xl",children:[r.jsxs("div",{className:"text-center mb-12 space-y-3",children:[r.jsx("p",{className:"text-sm uppercase tracking-wider text-primary font-bold",children:"Is This For You?"}),r.jsx("h2",{className:"text-3xl md:text-4xl font-bold",children:"Built for a specific kind of founder."})]}),r.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[r.jsxs(G,{className:"p-6 md:p-8 border-2 border-primary/30 bg-primary/5",children:[r.jsxs("h3",{className:"text-xl md:text-2xl font-bold mb-6 flex items-center gap-2",children:[r.jsx(_e,{className:"w-6 h-6 text-emerald-600"}),"This Program Is For You If:"]}),r.jsx("ul",{className:"space-y-4",children:Zfe.map(e=>r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(_e,{className:"w-5 h-5 text-emerald-600 mt-0.5 flex-shrink-0"}),r.jsxs("div",{children:[r.jsxs("span",{className:"font-bold",children:[e.label,": "]}),r.jsx("span",{className:"text-foreground/85",children:e.value})]})]},e.label))})]}),r.jsxs(G,{className:"p-6 md:p-8 border-2 border-muted bg-muted/30",children:[r.jsxs("h3",{className:"text-xl md:text-2xl font-bold mb-6 flex items-center gap-2",children:[r.jsx(Ft,{className:"w-6 h-6 text-destructive"}),"This Program Is NOT For You If:"]}),r.jsx("ul",{className:"space-y-4",children:Xfe.map(e=>r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(Ft,{className:"w-5 h-5 text-destructive mt-0.5 flex-shrink-0"}),r.jsx("span",{className:"text-foreground/85",children:e})]},e))})]})]})]})}),r.jsx("section",{className:"py-16 md:py-24 bg-muted/40 border-y",children:r.jsxs("div",{className:"container mx-auto px-4 max-w-3xl space-y-6",children:[r.jsx("p",{className:"text-sm uppercase tracking-wider text-destructive font-bold",children:"The Problem"}),r.jsx("h2",{className:"text-3xl md:text-5xl font-bold leading-tight",children:"You're trapped in the Founder Bottleneck."}),r.jsx("p",{className:"text-lg leading-relaxed text-foreground/90",children:"You built this business to $1M+ through sheer force. But now:"}),r.jsx("div",{className:"space-y-3 text-lg",children:[["Every morning","feels like drinking from a fire hose"],["Every decision","waits on your approval before moving forward"],["Every vacation","ends with 147 Slack messages, emails and problems that piled up"],["Every hire","just creates another person who depen
803ds on you"]].map(([e,t])=>r.jsxs("p",{className:"leading-relaxed",children:[r.jsx("span",{className:"font-bold text-primary",children:e})," ",r.jsx("span",{className:"text-foreground/85",children:t})]},e))}),r.jsx("p",{className:"font-semibold pt-2",children:"You've tried:"}),r.jsx("ul",{className:"space-y-2",children:Jfe.map(e=>r.jsxs("li",{className:"flex items-start gap-3 text-foreground/85",children:[r.jsx("span",{className:"mt-2 w-1.5 h-1.5 rounded-full bg-foreground/40 flex-shrink-0"}),r.jsx("span",{children:e})]},e))}),r.jsxs("div",{className:"p-6 bg-background rounded-lg border-l-4 border-primary mt-6",children:[r.jsx("p",{className:"text-lg md:text-xl font-bold",children:"None of that works without an actual operating system."}),r.jsxs("p",{className:"mt-3 text-foreground/85 leading-relaxed",children:["You don't have a people problem. You don't have a motivation problem. You have a"," ",r.jsx("span",{className:"font-bold text-primary",children:"systems problem"})," â and it's costing you 20+ hours per week, $200K+ in operational inefficiency, and your sanity."]})]})]})}),r.jsx("section",{className:"py-16 md:py-24",children:r.jsxs("div",{className:"container mx-auto px-4 max-w-6xl",children:[r.jsxs("div",{className:"text-center mb-12 space-y-3 max-w-2xl mx-auto",children:[r.jsx("p",{className:"text-sm uppercase tracking-wider text-primary font-bold",children:"The Next 12 Months"}),r.jsx("h2",{className:"text-3xl md:text-4xl font-bold",children:"Two paths. Same 12 months. Very different outcomes."})]}),r.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[r.jsxs(G,{className:"p-6 md:p-8 border-2 border-destructive/40 bg-destructive/5 space-y-5",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx(Ji,{className:"w-6 h-6 text-destructive"}),r.jsx("h3",{className:"text-xl md:text-2xl font-bold",children:"If Nothing Changes"})]}),r.jsx("ul",{className:"space-y-3",children:epe.map(e=>r.jsxs("li",{children:[r.jsxs("span",{className:"font-bold",children:[e.label,": "]}),r.jsx("span",{className:"text-foreground/85",children:e.value})]},e.label))}),r.jsx("p",{className:"text-sm italic text-destructive font-semibold pt-2",children:"The Founder Bottleneck doesn't fix itself. It gets worse as you try to grow."})]}),r.jsxs(G,{className:"p-6 md:p-8 border-2 border-emerald-500/40 bg-emerald-50 dark:bg-emerald-950/30 space-y-5",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx(Bn,{className:"w-6 h-6 text-emerald-600"}),r.jsx("h3",{className:"text-xl md:text-2xl font-bold",children:"If You Install the System"})]}),r.jsx("ul",{className:"space-y-3",children:tpe.map(e=>r.jsxs("li",{children:[r.jsxs("span",{className:"font-bold",children:[e.label,": "]}),r.jsx("span",{className:"text-foreground/85",children:e.value})]},e.label))}),r.jsx("p",{className:"text-sm italic text-emerald-700 dark:text-emerald-400 font-semibold pt-2",children:"Stop being the operator. Become the architect."})]})]})]})}),r.jsx("section",{className:"py-16 md:py-24 bg-muted/40 border-y",children:r.jsxs("div",{className:"container mx-auto px-4 max-w-6xl",children:[r.jsxs("div",{className:"text-center mb-12 space-y-4 max-w-3xl mx-auto",children:[r.jsx("p",{className:"text-sm uppercase tracking-wider text-primary font-bold",children:"The Scale Method"}),r.jsx("h2",{className:"text-3xl md:text-5xl font-bold leading-tight",children:"A 12-Month Operating System Installation."}),r.jsxs("p",{className:"text-lg text-muted-foreground leading-relaxed",children:["This isn't coaching. This isn't consulting. This is"," ",r.jsx("span",{className:"font-bold text-foreground",children:"implementation partnership."})," We install the Simple Operations System ",r.jsx("em",{children:"with"})," you â not for you. Your Simple Operations Guide builds the frameworks side-by-side with you, helps you hire your in-house operator, trains your team, and ensures adoption."]}),r.jsx("p",{className:"text-base text-primary font-semibold",children:"By Month 12: your business runs without requiring your daily presence."})]}),r.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:rpe.map((e,t)=>{const n=e.icon;return r.jsxs(G,{className:"p-6 space-y-4 relative hover:shadow-lg transition-shadow",children:[r.jsxs("div",{className:"flex items-start justify-between",children:[r.jsx("div",{className:"p-3 rounded-lg bg-primary/10 text-primary",children:r.jsx(n,{className:"w-6 h-6"})}),r.jsxs("span",{className:"text-xs font-bold text-muted-foreground uppercase tracking-wider",children:["0",t+1]})]}),r.jsx("h3",{className:"text-xl font-bold leading-tight",children:e.name}
803),r.jsx("p",{className:"text-sm text-foreground/85 leading-relaxed",children:e.what}),r.jsx("ul",{className:"space-y-1.5",children:e.get.map(s=>r.jsxs("li",{className:"flex items-start gap-2 text-sm",children:[r.jsx(_e,{className:"w-4 h-4 text-primary mt-0.5 flex-shrink-0"}),r.jsx("span",{children:s})]},s))}),r.jsxs("div",{className:"pt-3 border-t space-y-1 text-xs",children:[r.jsxs("p",{children:[r.jsx("span",{className:"font-bold text-primary",children:"Timeline: "}),r.jsx("span",{className:"text-muted-foreground",children:e.timeline})]}),r.jsxs("p",{children:[r.jsx("span",{className:"font-bold text-emerald-600",children:"Result: "}),r.jsx("span",{className:"text-foreground/85",children:e.result})]})]})]},e.name)})})]})}),r.jsx("section",{className:"py-16 md:py-24",children:r.jsxs("div",{className:"container mx-auto px-4 max-w-6xl",children:[r.jsxs("div",{className:"text-center mb-12 space-y-3 max-w-2xl mx-auto",children:[r.jsx("p",{className:"text-sm uppercase tracking-wider text-primary font-bold",children:"Your 12-Month Roadmap"}),r.jsx("h2",{className:"text-3xl md:text-4xl font-bold",children:"Phase by phase."})]}),r.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-6",children:npe.map((e,t)=>r.jsxs(G,{className:"p-6 space-y-4 relative",children:[r.jsx("div",{className:"absolute -top-3 -left-3 w-12 h-12 rounded-full bg-primary text-primary-foreground flex items-center justify-center font-bold text-lg shadow-lg",children:t+1}),r.jsxs("div",{className:"pt-3",children:[r.jsx("p",{className:"text-xs uppercase tracking-wide text-primary font-bold",children:e.months}),r.jsx("h3",{className:"text-xl font-bold mt-1",children:e.name}),r.jsx("p",{className:"text-sm text-muted-foreground italic mt-1",children:e.focus})]}),r.jsx("ul",{className:"space-y-1.5 text-sm",children:e.bullets.map(n=>r.jsxs("li",{className:"flex items-start gap-2 text-foreground/85",children:[r.jsx("span",{className:"mt-2 w-1 h-1 rounded-full bg-primary flex-shrink-0"}),r.jsx("span",{children:n})]},n))}),r.jsxs("div",{className:"pt-3 border-t",children:[r.jsx("p",{className:"text-xs",children:r.jsx("span",{className:"font-bold text-emerald-600 uppercase tracking-wider",children:"Milestone"})}),r.jsx("p",{className:"text-sm font-semibold mt-1",children:e.milestone})]})]},e.label))})]})}),r.jsx("section",{className:"py-16 md:py-24 bg-muted/40 border-y",children:r.jsxs("div",{className:"container mx-auto px-4 max-w-6xl",children:[r.jsxs("div",{className:"text-center mb-12 space-y-3 max-w-2xl mx-auto",children:[r.jsx("p",{className:"text-sm uppercase tracking-wider text-primary font-bold",children:"What's Included"}),r.jsx("h2",{className:"text-3xl md:text-4xl font-bold",children:"Everything you get in the Scale Method."})]}),r.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:spe.map(e=>r.jsxs(G,{className:"p-6 space-y-4",children:[r.jsx("h3",{className:"text-lg font-bold",children:e.title}),r.jsx("ul",{className:"space-y-2",children:e.items.map(t=>r.jsxs("li",{className:"flex items-start gap-2 text-sm",children:[r.jsx(_e,{className:"w-4 h-4 text-emerald-600 mt-0.5 flex-shrink-0"}),r.jsx("span",{className:"text-foreground/85",children:t})]},t))})]},e.title))})]})}),r.jsx("section",{className:"py-16 md:py-24",children:r.jsxs("div",{className:"container mx-auto px-4 max-w-5xl",children:[r.jsxs("div",{className:"text-center mb-12 space-y-3 max-w-2xl mx-auto",children:[r.jsx("p",{className:"text-sm uppercase tracking-wider text-primary font-bold",children:"Proof"}),r.jsx("h2",{className:"text-3xl md:text-4xl font-bold",children:"Real founders. Real results. Real freedom."})]}),r.jsx("div",{className:"space-y-8",children:ape.map(e=>r.jsxs(G,{className:"p-6 md:p-10 space-y-6",children:[r.jsxs("div",{className:"flex flex-col md:flex-row md:items-start md:justify-between gap-3",children:[r.jsxs("div",{children:[r.jsxs("h3",{className:"text-2xl font-bold",children:[e.name," ",r.jsxs("span",{className:"text-muted-foreground font-normal",children:["â ",e.company]})]}),r.jsx("p",{className:"text-lg text-primary font-semibold mt-1",children:e.headline})]}),r.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[r.jsx(zt,{className:"w-4 h-4"}),e.timeline]})]}),r.jsxs("div",{className:"grid md:grid-cols-3 gap-6",children:[r.jsxs("div",{className:"space-y-2",children:[r.jsx("p",{className:"text-xs uppercase tracking-wider font-bold text-destructive",children:"Before"}
803),r.jsx("ul",{className:"space-y-1.5 text-sm text-foreground/85",children:e.before.map(t=>r.jsxs("li",{children:["⢠",t]},t))})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx("p",{className:"text-xs uppercase tracking-wider font-bold text-primary",children:"What We Installed"}),r.jsx("ul",{className:"space-y-1.5 text-sm text-foreground/85",children:e.installed.map(t=>r.jsxs("li",{children:["⢠",t]},t))})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx("p",{className:"text-xs uppercase tracking-wider font-bold text-emerald-600",children:"Results"}),r.jsx("ul",{className:"space-y-1.5 text-sm text-foreground/85",children:e.results.map(t=>r.jsxs("li",{children:["⢠",t]},t))})]})]}),r.jsxs("div",{className:"p-4 bg-muted/50 rounded-lg border-l-4 border-primary",children:[r.jsx(jr,{className:"w-5 h-5 text-primary/50 mb-2"}),r.jsx("p",{className:"italic text-foreground/90",children:e.quote})]})]},e.name))}),r.jsx("div",{className:"text-center mt-10",children:r.jsx(te,{asChild:!0,variant:"hero",size:"lg",className:"h-14 px-8",children:r.jsxs(ue,{to:Um,children:["Apply for Scale Method",r.jsx(Ue,{className:"w-5 h-5 ml-2"})]})})})]})}),r.jsx("section",{className:"py-16 md:py-24 bg-muted/40 border-y",children:r.jsxs("div",{className:"container mx-auto px-4 max-w-3xl",children:[r.jsxs("div",{className:"text-center mb-12 space-y-3",children:[r.jsx("p",{className:"text-sm uppercase tracking-wider text-primary font-bold",children:"How It Works"}),r.jsx("h2",{className:"text-3xl md:text-4xl font-bold",children:"From application to operating system."})]}),r.jsx("div",{className:"space-y-4",children:[{title:"Application (5 Minutes)",body:"Fill out the Scale Method application. We'll ask about your revenue, team, biggest operational pain points, and 12-month goals."},{title:"Strategy Call (45 Minutes)",body:"If it looks like a fit, we'll schedule a working session: review your bottleneck diagnosis, map your decision-making flow, identify your top 3 constraints, show you the exact frameworks we'd install, and build your custom 12-month roadmap. You walk away with a clear plan â even if you don't move forward."},{title:"Enrollment & Kickoff (Week 1)",body:"Meet your Simple Operations Guide, complete the Role Clarity Workshop, build your custom implementation roadmap, schedule weekly calls for 12 months, get access to the template library, and start the search for your in-house operator (we help you hire)."},{title:"Implementation (Months 1â12)",body:"Weekly: install one component at a time, train your team on each framework, troubleshoot adoption, refine systems as you scale, measure progress monthly. By Month 12, your operating system is fully installed and running."}].map((e,t)=>r.jsxs(G,{className:"p-6 flex gap-4",children:[r.jsx("div",{className:"flex-shrink-0 w-12 h-12 rounded-full bg-primary text-primary-foreground flex items-center justify-center font-bold text-lg",children:t+1}),r.jsxs("div",{className:"space-y-1",children:[r.jsx("h3",{className:"text-lg font-bold",children:e.title}),r.jsx("p",{className:"text-foreground/85 leading-relaxed",children:e.body})]})]},e.title))})]})}),r.jsx("section",{className:"py-16 md:py-24",children:r.jsxs("div",{className:"container mx-auto px-4 max-w-4xl space-y-8",children:[r.jsxs("div",{className:"text-center space-y-3",children:[r.jsx("p",{className:"text-sm uppercase tracking-wider text-primary font-bold",children:"Investment"}),r.jsx("h2",{className:"text-3xl md:text-4xl font-bold",children:"Scale Method: 12-Month Implementation Partnership"})]}),r.jsxs(G,{className:"p-8 md:p-12 border-2 border-primary shadow-xl space-y-8 text-center",children:[r.jsxs("div",{children:[r.jsxs("p",{className:"text-5xl md:text-6xl font-bold text-primary",children:["$3,000",r.jsx("span",{className:"text-2xl md:text-3xl text-foreground/70",children:"/mo"})]}),r.jsxs("p",{className:"text-muted-foreground mt-2",children:["12-month commitment · ",r.jsx("span",{className:"font-bold",children:"Pay annually $33,000"})," and get one month free"]}),r.jsx("p",{className:"text-sm text-foreground/70 mt-3 max-w-xl mx-auto",children:"Scale Method is a full 12-month implementation partnership. We've found that founders who commit to the entire year are the ones who achieve extraordinary growth and finally break free from being the bottleneck."})]}),r.jsx("div",{className:"grid sm:grid-cols-2 gap-4 text-left max-w-2xl mx-auto",children:["50+ hours of direct implementation partnership","Complete Simple Operations System installation","Team training and adoption support","Virtual virtual quarterly strategic reviews","Unlimited chat and email support for the full 12 months","Weekly implementation support"].map(e=>r.jsxs("div",{className:"flex items-start gap-2 text-sm",children:[r.jsx(_e,{className:"w-4 h-4 text-emerald-600 mt-0.5 flex-shrink-0"}),r.jsx("span",{children:e})]},e))}),r.jsxs("div",{className:"p-4 bg-muted/50 rounded-lg text-left max-w-2xl mx-auto",children:[r.jsx("p",{className:"font-bold mb-2",children:"ROI Math"}
803),r.jsxs("p",{className:"text-sm text-foreground/85 leading-relaxed",children:["Average founder gets 15+ hours/week back = 60+ hours/month. At $200/hour, that's $12,000/month in founder capacity. ",r.jsx("span",{className:"font-bold",children:"The system pays for itself in Month 2."})]})]}),r.jsx(te,{asChild:!0,variant:"hero",size:"lg",className:"h-14 px-10",children:r.jsxs(ue,{to:Um,children:["Apply for Scale Method",r.jsx(Ue,{className:"w-5 h-5 ml-2"})]})})]}),r.jsxs(G,{className:"p-6 md:p-10 flex flex-col md:flex-row gap-6 items-center bg-amber-50 dark:bg-amber-950/30 border-2 border-amber-200 dark:border-amber-900",children:[r.jsx("div",{className:"flex-shrink-0 w-24 h-24 rounded-full bg-amber-100 dark:bg-amber-900 flex items-center justify-center",children:r.jsx(Bn,{className:"w-12 h-12 text-amber-600 dark:text-amber-300"})}),r.jsxs("div",{className:"text-center md:text-left",children:[r.jsx("h3",{className:"text-2xl md:text-3xl font-bold",children:"Our 30-Day Money-Back Guarantee"}),r.jsxs("p",{className:"mt-3 text-foreground/90 leading-relaxed",children:["Try the Simple Operations System for 30 days. If you're not completely satisfied with your progress, we'll refund 100% of your investment."," ",r.jsx("span",{className:"font-bold",children:"No questions asked. No hoops to jump through."})]}),r.jsx("p",{className:"mt-2 text-sm text-foreground/80",children:"Just send us a simple email within 30 days and your refund will be processed within 5 business days."})]})]})]})}),r.jsx("section",{className:"py-16 md:py-24 bg-muted/40 border-y",children:r.jsxs("div",{className:"container mx-auto px-4 max-w-3xl space-y-5",children:[r.jsx("p",{className:"text-sm uppercase tracking-wider text-primary font-bold",children:"You Might Be Ready Ifâ¦"}),r.jsxs("h2",{className:"text-3xl md:text-4xl font-bold leading-tight",children:["You wake up at 6am and your first thought is:"," ",r.jsx("span",{className:"italic text-primary",children:'"What fires am I putting out today?"'})]}),r.jsx("p",{className:"text-lg text-foreground/85 leading-relaxed",children:"You've built something real â $800K, $1.5M, $2.8M in revenue. You have 10, 15, 20 people on the team. You should feel proud. But instead, you feel trapped."}),r.jsx("p",{className:"font-bold text-lg",children:"Because your team is waiting on you for everything:"}),r.jsx("ul",{className:"space-y-2 text-foreground/85 italic",children:['"Can I approve this expense?"','"Should we move forward with this client?"',`"What's the priority this week?"`,'"Can you review this before I send it?"'].map(e=>r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(jr,{className:"w-4 h-4 text-primary/50 mt-1 flex-shrink-0"}),r.jsx("span",{children:e})]},e))}),r.jsx("p",{className:"text-foreground/85 leading-relaxed",children:"You've tried delegating. You've hired smart people. But without an actual operating system, delegation just creates more questions."}),r.jsxs("div",{className:"p-6 bg-background rounded-lg border-l-4 border-primary",children:[r.jsx("p",{className:"text-xl font-bold",children:"You don't need more motivation."}),r.jsx("p",{className:"text-xl font-bold text-primary",children:"You need an operating system."}),r.jsx("p",{className:"mt-3 text-foreground/85",children:"That's what we build together."})]})]})}),r.jsx("section",{className:"py-16 md:py-24",children:r.jsxs("div",{className:"container mx-auto px-4 max-w-3xl",children:[r.jsxs("div",{className:"text-center mb-12 space-y-3",children:[r.jsx("p",{className:"text-sm uppercase tracking-wider text-primary font-bold",children:"FAQ"}),r.jsx("h2",{className:"text-3xl md:text-4xl font-bold",children:"Questions founders ask before applying."})]}),r.jsx(xo,{type:"single",collapsible:!0,className:"w-full",children:ipe.map((e,t)=>r.jsxs(Za,{value:`item-${t}`,children:[r.jsx(Xa,{className:"text-left text-base md:text-lg font-semibold",children:e.q}),r.jsx(Ja,{className:"text-foreground/85 leading-relaxed text-base",children:e.a})]},e.q))})]})}),r.jsx("section",{className:"py-12 md:py-16 bg-amber-50 dark:bg-amber-950/30 border-y border-amber-200 dark:border-amber-900",children:r.jsxs("div",{className:"container mx-auto px-4 max-w-3xl text-center space-y-4",children:[r.jsxs("div",{className:"inline-flex items-center gap-2 text-amber-700 dark:text-amber-300 font-bold",children:[r.jsx(zt,{className:"w-5 h-5"}),r.jsx("span",{className:"uppercase tracking-wider text-sm",children:"Start Today"})]}),r.jsx("h2",{className:"text-2xl md:text-3xl font-bold",children:"Every Week You Stay the Bottleneck Costs You"}
803),r.jsx("p",{className:"text-foreground/85 leading-relaxed",children:"Decisions backed up. Team waiting on you. Growth capped by your own capacity. Scale Method installs the full 5-component operating system side-by-side with you â so you can step out of the day-to-day in 12 months or less."}),r.jsx("p",{className:"text-foreground/85 leading-relaxed",children:"Apply today, get on a Clarity Call this week, and start breaking your bottleneck."}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Backed by our 30-day money-back guarantee."})]})}),r.jsx("section",{className:"py-16 md:py-24",children:r.jsxs("div",{className:"container mx-auto px-4 max-w-6xl",children:[r.jsxs("div",{className:"text-center mb-12 space-y-3",children:[r.jsx("p",{className:"text-sm uppercase tracking-wider text-primary font-bold",children:"In Their Words"}),r.jsx("h2",{className:"text-3xl md:text-4xl font-bold",children:"What founders say after installing the system."})]}),r.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:ope.map(e=>r.jsxs(G,{className:"p-6 space-y-3",children:[r.jsx(jr,{className:"w-6 h-6 text-primary/40"}),r.jsxs("p",{className:"italic text-foreground/85 leading-relaxed",children:['"',e.q,'"']}),r.jsxs("div",{className:"pt-2 border-t",children:[r.jsx("p",{className:"font-bold text-sm",children:e.name}),r.jsx("p",{className:"text-xs text-muted-foreground",children:e.role})]})]},e.name+e.role))})]})}),r.jsx("section",{className:"py-20 md:py-28 bg-primary text-primary-foreground",children:r.jsxs("div",{className:"container mx-auto px-4 max-w-4xl text-center space-y-6",children:[r.jsx(gr,{className:"w-12 h-12 mx-auto opacity-90"}),r.jsx("h2",{className:"text-4xl md:text-6xl font-bold leading-tight",children:"Ready to build your operating system?"}),r.jsx("p",{className:"text-lg md:text-xl opacity-90 max-w-2xl mx-auto leading-relaxed",children:"You've proven the model works. You've built real revenue. You have a capable team. Now it's time to install the system that lets it scale without exhausting you."}),r.jsx("p",{className:"text-lg md:text-xl opacity-95 max-w-2xl mx-auto font-semibold pt-2",children:"The next 12 months will pass whether you build this or not."}),r.jsx("p",{className:"opacity-85 max-w-2xl mx-auto leading-relaxed",children:"You can spend them stuck in the same bottleneck â 60-hour weeks, the same questions, unable to step away. Or you can spend them building the system that gives you your life back."}),r.jsx("div",{className:"grid sm:grid-cols-3 gap-4 max-w-2xl mx-auto pt-6 text-left",children:["Fill out the 5-minute application","We review and schedule your strategy call","See your custom 12-month roadmap (even if you don't move forward)"].map((e,t)=>r.jsxs("div",{className:"p-4 rounded-lg bg-primary-foreground/10 border border-primary-foreground/20",children:[r.jsxs("p",{className:"text-xs font-bold opacity-75 mb-1",children:["STEP ",t+1]}),r.jsx("p",{className:"text-sm",children:e})]},e))}),r.jsxs("div",{className:"pt-6 flex flex-col sm:flex-row gap-4 justify-center",children:[r.jsx(te,{asChild:!0,size:"lg",variant:"secondary",className:"h-14 px-8 text-base",children:r.jsxs(ue,{to:Um,children:["Apply for Scale Method Now",r.jsx(Ue,{className:"w-5 h-5 ml-2"})]})}),r.jsx(te,{asChild:!0,size:"lg",variant:"ghost",className:"h-14 text-primary-foreground hover:bg-primary-foreground/10 hover:text-primary-foreground",children:r.jsxs(ue,{to:"/so-book",children:[r.jsx(ma,{className:"w-4 h-4 mr-2"}),"Read the book first"]})})]})]})}),r.jsx("section",{className:"py-12 md:py-16 bg-muted/40 border-t",children:r.jsx("div",{className:"container mx-auto px-4 max-w-4xl",children:r.jsxs("div",{className:"grid md:grid-cols-3 gap-6 text-center md:text-left",children:[r.jsxs(G,{className:"p-5 space-y-2",children:[r.jsx(xr,{className:"w-5 h-5 text-primary mx-auto md:mx-0"}),r.jsx("h3",{className:"font-bold",children:"Still have questions?"}),r.jsxs("p",{className:"text-sm text-muted-foreground",children:["Email"," ",r.jsx("a",{href:"mailto:[email protected]",className:"text-primary hover:underline font-semibold",children:"[email protected]"})," ","or"," ",r.jsx(ue,{to:"/book-call",className:"text-primary hover:underline font-semibold",children:"book a 15-min Q&A"}),"."]})]}),r.jsxs(G,{className:"p-5 space-y-2",children:[r.jsx(Vf,{className:"w-5 h-5 text-primary mx-auto md:mx-0"}),r.jsx("h3",{className:"font-bold",children:"Compare programs"}),r.jsxs("p",{className:"text-sm text-muted-foreground",children:["Not sure if Scale Method is right?"," ",r.jsx(ue,{to:"/clarity",className:"text-primary hover:underline font-semibold",children:"Compare Scale vs. Clarity"}),"."]})]}),r.jsxs(G,{className:"p-5 space-y-2",children:[r.jsx(ma,{className:"w-5 h-5 text-primary mx-auto md:mx-0"}),r.jsx("h3",{className:"font-bold",children:"Read the book first"}),r.jsxs("p",{className:"text-sm text-muted-foreground",children:["Want to learn the framework before committing?"," ",r.jsx(ue,{to:"/so-book",className:"text-primary hover:underline font-semibold",children:'Get "The Passenger Seat Leader"'}),"."]})]})]})})})]}),r.jsx(ht,{})]})}const cpe=()=>r.jsxs("div",{className:"min-h-screen bg-background",children:[r.jsx(_t,{}),r.jsx("section",{className:"pt-24 pb-12 px-4 bg-gradient-subtle",children:r.jsxs("div",{className:"container mx-auto max-w-4xl text-center",children:[r.jsx(it,{className:"mb-6 bg-primary text-white border-0 px-4 py-2 text-sm font-semibold",children:"100% RISK-FREE GUARANTEE"}),r.jsxs("h1",{className:"text-4xl md:text-6xl font-bold mb-6 text-foreground leading-tight",children:["Our Ironclad ",r.jsx("span",{className:"bg-gradient-hero bg-clip-text text-transparent",children:"30-Day Guarantee"})]}),r.jsx("p",{className:"text-xl md:text-2xl text-foreground mb-8 leading-relaxed",children:"Your Success Is 100% Risk-Free (Or Your Money Back)"}),r.jsx("div",{className:"bg-primary/5 border border-primary/20 rounded-lg p-6 mb-8",children:r.jsx("p",{className:"text-lg text-primary font-semibold",children:"Try the Simple Operations System for 30 days. If you're not completely satisfied with your progress, we'll refund 100% of your investment. No questions asked. No hoops to jump through. No fine print."})})]})}),r.jsx("section",{className:"py-16 px-4 bg-muted/30",children:r.jsxs("div",{className:"container mx-auto max-w-4xl",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-8 text-center",children:"The Simple Truth About Our Guarantee"}),r.jsxs("div",{className:"prose prose-lg max-w-none text-muted-foreground mb-12",children:[r.jsx("p",{className:"text-xl leading-relaxed mb-6",children:"Look, we get it. You've probably been burned before by consultants who promised the world and delivered PowerPoints. By courses that collected dust. By systems that were too complex to implement."}),r.jsx("p",{className:"text-lg mb-6",children:r.jsx("strong",{className:"text-foreground",children:"That's exactly why we make this simple:"})}),r.jsx("div",{className:"bg-gradient-to-r from-primary/10 to-secondary/10 rounded-lg p-8 mb-8 border border-primary/20",children:r.jsx("p",{className:"text-xl font-semibold text-center text-foreground mb-0",children:"Try the Simple Operations System for 30 days. If you're not completely satisfied with your progress, we'll refund 100% of your investment. No questions asked. No hoops to jump through. No fine print."})})]})]})}),r.jsx("section",{className:"py-16 px-4",children:r.jsxs("div",{className:"container mx-auto max-w-4xl",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-12 text-center",children:"Here's What Makes Our Guarantee Different"}),r.jsxs("div",{className:"space-y-6 mb-16",children:[r.jsx(G,{className:"p-6 shadow-soft",children:r.jsxs("div",{className:"flex items-start gap-4",children:[r.jsx(Wn,{className:"w-10 h-10 text-primary flex-shrink-0 mt-1"}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-xl font-bold mb-3",children:"It's Actually Simple to Claim"}),r.jsx("p",{className:"text-muted-foreground mb-4",children:`We don't make you jump through hoops. We don't require you to "prove" you did the work. We don't interrogate you about why it didn't work out.`}),r.jsx("p",{className:"text-foreground font-semibold",children:"If within 30 days you decide this isn't the right fit for your business, just send us a simple email. Your refund will be processed within 5 business days. The only required step is that you fill out a short feedback form so we can learn from your experience. That's it."})]})]})}),r.jsx(G,{className:"p-6 shadow-soft",children:r.jsxs("div",{className:"flex items-start gap-4",children:[r.jsx(Fr,{className:"w-10 h-10 text-primary flex-shrink-0 mt-1"}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-xl font-bold mb-3",children:"It's Based on YOUR Satisfaction"}),r.jsx("p",{className:"text-muted-foreground mb-4",children:"We're not measuring arbitrary metrics or requiring specific results. This is about whether YOU feel the system is delivering value to YOUR business."}),r.jsx("p",{className:"text-foreground font-semibold",children:"Some members see dramatic shifts in the first week. Others need the full 30 days to experience the transformation. Either way, you decide if it's working for you."})]})]})}),r.jsx(G,{className:"p-6 shadow-soft",children:r.jsxs("div",{className:"flex items-start gap-4",children:[r.jsx(Ii,{className:"w-10 h-10 text-primary flex-shrink-0 mt-1"}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-xl font-bold mb-3",children:"We Actually Want You to Use It"}),r.jsx("p",{className:"text-muted-foreground mb-4",children:"Here's what we've learned from hundreds of members: The ones who engage with the system in the first 30 days become our biggest success stories."}),r.jsx("p",{className:"text-foreground font-semibold",children:"They experience the calm. They see the clarity. They feel the momentum."})]})]})})]}),r.jsxs("div",{className:"bg-primary/10 rounded-xl p-8 border border-primary/20",children:[r.jsx("h3",{className:"text-2xl font-bold text-center mb-6",children:"That's why we designed everything to deliver quick wins:"}),r.jsx("div",{className:"grid md:grid-cols-2 gap-4",children:["Your first Simple Operations Guide (SOG) call happens within 7 days","You'll begin to implement your first system process & tool within the first week",'Most members report feeling "noticeably calmer" by day 14',"By day 30, you'll have core systems running that save you multiple hours per week"].map((e,t)=>r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx($e,{className:"w-5 h-5 text-primary mt-1 flex-shrink-0"}),r.jsx("p",{className:"text-foreground font-medium",children:e})]},t))})]})]})}),r.jsx("section",{className:"py-16 px-4 bg-section-gray",children:r.jsxs("div",{className:"container mx-auto max-w-5xl",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-12 text-center",children:"What You Can Expect in Your First 30 Days"}),r.jsxs("div",{className:"grid lg:grid-cols-2 gap-8",children:[r.jsxs(G,{className:"p-8 shadow-soft",children:[r.jsxs("div",{className:"flex items-center mb-4",children:[r.jsx("div",{className:"w-10 h-10 bg-primary text-primary-foreground rounded-full flex items-center justify-center font-bold mr-4",children:"1"}),r.jsx("h3",{className:"text-2xl font-bold",children:"Week 1: Immediate Relief"})]}),r.jsxs("ul",{className:"space-y-3 text-muted-foreground",children:[r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx($e,{className:"w-5 h-5 text-primary mt-0.5 flex-shrink-0"}),r.jsx("span",{children:"Personal onboarding call with your dedicated SOG"})]}),r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx($e,{className:"w-5 h-5 text-primary mt-0.5 flex-shrink-0"}
803),r.jsx("span",{children:"Quick win: Implement the Quantum Flow daily planning system"})]}),r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx($e,{className:"w-5 h-5 text-primary mt-0.5 flex-shrink-0"}),r.jsx("span",{children:"Join your first group session and meet your peer community"})]}),r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx($e,{className:"w-5 h-5 text-primary mt-0.5 flex-shrink-0"}),r.jsx("span",{children:"Access the exact templates that have generated millions for our members"})]})]})]}),r.jsxs(G,{className:"p-8 shadow-soft",children:[r.jsxs("div",{className:"flex items-center mb-4",children:[r.jsx("div",{className:"w-10 h-10 bg-primary text-primary-foreground rounded-full flex items-center justify-center font-bold mr-4",children:"2"}),r.jsx("h3",{className:"text-2xl font-bold",children:"Week 2: Building Momentum"})]}),r.jsxs("ul",{className:"space-y-3 text-muted-foreground",children:[r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx($e,{className:"w-5 h-5 text-primary mt-0.5 flex-shrink-0"}),r.jsx("span",{children:"Second 1-on-1 with your SOG to refine your systems"})]}),r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx($e,{className:"w-5 h-5 text-primary mt-0.5 flex-shrink-0"}),r.jsx("span",{children:"Start documenting your first core process"})]}),r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx($e,{className:"w-5 h-5 text-primary mt-0.5 flex-shrink-0"}),r.jsx("span",{children:"Experience the power of structured Targeted Interactions"})]}),r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx($e,{className:"w-5 h-5 text-primary mt-0.5 flex-shrink-0"}),r.jsx("span",{children:"Feel the difference as chaos starts transforming into clarity"})]})]})]}),r.jsxs(G,{className:"p-8 shadow-soft",children:[r.jsxs("div",{className:"flex items-center mb-4",children:[r.jsx("div",{className:"w-10 h-10 bg-primary text-primary-foreground rounded-full flex items-center justify-center font-bold mr-4",children:"3"}),r.jsx("h3",{className:"text-2xl font-bold",children:"Week 3: Systems Taking Shape"})]}),r.jsxs("ul",{className:"space-y-3 text-muted-foreground",children:[r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx($e,{className:"w-5 h-5 text-primary mt-0.5 flex-shrink-0"}),r.jsx("span",{children:"Your operations begin running without your constant involvement"})]}),r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx($e,{className:"w-5 h-5 text-primary mt-0.5 flex-shrink-0"}),r.jsx("span",{children:"Team members (if you have them) start taking ownership"})]}),r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx($e,{className:"w-5 h-5 text-primary mt-0.5 flex-shrink-0"}),r.jsx("span",{children:"You're working ON the business, not drowning IN it"})]}),r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx($e,{className:"w-5 h-5 text-primary mt-0.5 flex-shrink-0"}),r.jsx("span",{children:'The "Sunday Scaries" about Monday morning start to fade'})]})]})]}),r.jsxs(G,{className:"p-8 shadow-soft",children:[r.jsxs("div",{className:"flex items-center mb-4",children:[r.jsx("div",{className:"w-10 h-10 bg-primary text-primary-foreground rounded-full flex items-center justify-center font-bold mr-4",children:"4"}),r.jsx("h3",{className:"text-2xl font-bold",children:"Week 4: The Transformation"})]}),r.jsxs("ul",{className:"space-y-3 text-muted-foreground",children:[r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx($e,{className:"w-5 h-5 text-primary mt-0.5 flex-shrink-0"}),r.jsx("span",{children:"You've reclaimed at least 5 hours per week"})]}),r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx($e,{className:"w-5 h-5 text-primary mt-0.5 flex-shrink-0"}),r.jsx("span",{children:"Your stress levels have noticeably decreased"})]}),r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx($e,{className:"w-5 h-5 text-primary mt-0.5 flex-shrink-0"}),r.jsx("span",{children:"You have clear visibility into what needs to happen next"})]}),r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx($e,{className:"w-5 h-5 text-primary mt-0.5 flex-shrink-0"}),r.jsx("span",{children:"You're making strategic decisions instead of fighting fires"})]})]})]})]})]})}),r.jsx("section",{className:"py-16 px-4",children:r.jsxs("div",{className:"container mx-auto max-w-4xl",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-12 text-center",children:"The Math Makes Sense"}),r.jsxs("div",{className:"bg-gradient-to-br from-primary/10 to-secondary/10 rounded-2xl p-8 mb-12 border border-primary/20",children:[r.jsx("p",{className:"text-lg text-muted-foreground mb-6",children:"Consider this: If you're making $50K-$500K per year, your time is worth between $25-$250 per hour."}),r.jsx("p",{className:"text-lg text-muted-foreground mb-6",children:"Our system typically saves members 5-10 hours per week. That's 20-40 hours in your first month."}),r.jsxs("div",{className:"text-center mb-6",children:[r.jsx("p",{className:"text-2xl font-bold text-primary",children:"At even the low end, that's $500-$1,000 worth of time reclaimed in just 30 days."}),r.jsx("p",{className:"text-lg text-muted-foreground mt-2",children:"Most members see 3-5X their investment in time savings alone within the first month."})]})]}),r.jsxs(G,{className:"p-8 shadow-soft mb-12",children:[r.jsx("h3",{className:"text-2xl font-bold mb-6 text-center",children:"But it's not just about time. It's about what you do with that time:"}),r.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx(ss,{className:"w-6 h-6 text-primary"}),r.jsx("span",{className:"text-lg text-foreground",children:"Strategic planning that doubles revenue"})]}),r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx(Fr,{className:"w-6 h-6 text-primary"}),r.jsx("span",{className:"text-lg text-foreground",children:"Family dinners you're actually present for"})]}),r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx(Ii,{className:"w-6 h-6 text-accent"}),r.jsx("span",{className:"text-lg text-foreground",children:"The business growth you've been putting off"})]}),r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx(Wn,{className:"w-6 h-6 text-primary"}),r.jsx("span",{className:"text-lg text-foreground",children:"The peace of mind that comes from having systems that work"})]})]})]})]})}),r.jsx("section",{className:"py-16 px-4 bg-muted/30",children:r.jsxs("div",{className:"container mx-auto max-w-4xl",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-12 text-center",children:"Why We Can Make This Guarantee"}),r.jsxs("div",{className:"text-center mb-12",children:[r.jsx("p",{className:"text-2xl font-bold text-primary mb-4",children:"Because the system works. Plain and simple."}),r.jsx("p",{className:"text-lg text-muted-foreground mb-8",children:"We've refined this methodology with hundreds of expert-led businesses. We know exactly what works at your stage of growth. We've eliminated the complexity, the theory, the fluff."})]}),r.jsx("div",{className:"mb-12",children:r.jsxs(G,{className:"p-6 shadow-soft max-w-2xl mx-auto",children:[r.jsx("h3",{className:"text-xl font-bold mb-4 text-center",children:"But Here's What We Ask of You"}),r.jsx("p",{className:"text-muted-foreground mb-4",children:"While our guarantee is unconditional, we've found members get the best results when they:"}),r.jsxs("ul",{className:"space-y-3",children:[r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx($e,{className:"w-5 h-5 text-primary mt-0.5 flex-shrink-0"}),r.jsx("span",{className:"text-foreground",children:"Show up to your SOG
803calls"})]}),r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx($e,{className:"w-5 h-5 text-primary mt-0.5 flex-shrink-0"}),r.jsx("span",{className:"text-foreground",children:"Try at least one system we recommend"})]}),r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx($e,{className:"w-5 h-5 text-primary mt-0.5 flex-shrink-0"}),r.jsx("span",{className:"text-foreground",children:"Engage with the community when you need support"})]})]}),r.jsx("p",{className:"text-lg font-semibold text-primary mt-4",children:"That's it. No overwhelming commitments. Just show up and give it an honest try."})]})})]})}),r.jsx("section",{className:"py-16 px-4",children:r.jsxs("div",{className:"container mx-auto max-w-4xl",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-12 text-center",children:"Common Questions About Our Guarantee"}),r.jsxs("div",{className:"space-y-8",children:[r.jsxs(G,{className:"p-8 shadow-soft",children:[r.jsx("h3",{className:"text-xl font-bold mb-4 text-primary",children:`"What if I'm too busy to implement everything in 30 days?"`}),r.jsx("p",{className:"text-muted-foreground",children:"That's exactly why you need this system. We start with 15-minute daily practices that actually create time. You don't need to implement everything â just start with one thing."})]}),r.jsxs(G,{className:"p-8 shadow-soft",children:[r.jsx("h3",{className:"text-xl font-bold mb-4 text-primary",children:'"What if my business is different?"'}),r.jsx("p",{className:"text-muted-foreground",children:"We work exclusively with expert-led businesses between $50K-$10M. We've seen every variation. Your SOG will customize the approach to your specific situation."})]}),r.jsxs(G,{className:"p-8 shadow-soft",children:[r.jsx("h3",{className:"text-xl font-bold mb-4 text-primary",children:`"What if I've tried other systems that didn't work?"`}),r.jsx("p",{className:"text-muted-foreground",children:"Most of our members have tried EOS, StoryBrand, or other systems. EOS in particular is unproven for sub-$10M founder-led businesses, costs a minimum of $150,000 to install, and requires 2+ years of rollout. Ours is specifically designed for expert-led businesses like yours â installed in 90 days at a fraction of the cost."})]}),r.jsxs(G,{className:"p-8 shadow-soft",children:[r.jsx("h3",{className:"text-xl font-bold mb-4 text-primary",children:'"How quickly can I get my refund if needed?"'}),r.jsx("p",{className:"text-muted-foreground",children:"Within 5 business days of your request. No hassles. No hard feelings. We part as friends and wish you the best."})]})]})]})}),r.jsx("section",{className:"py-16 px-4 bg-gradient-subtle",children:r.jsxs("div",{className:"container mx-auto max-w-4xl text-center",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-8",children:"The Real Question Is This:"}),r.jsx("p",{className:"text-2xl font-bold text-primary mb-8",children:"What's the cost of NOT trying?"}),r.jsxs("div",{className:"bg-white/80 rounded-xl p-8 mb-12 shadow-soft",children:[r.jsx("p",{className:"text-lg text-muted-foreground mb-6",children:"Another month of 60-hour weeks? Another quarter of feeling overwhelmed? Another year of your business running you instead of the other way around?"}),r.jsx("p",{className:"text-xl font-bold text-foreground",children:"You have absolutely nothing to lose and everything to gain."})]})]})}),r.jsx("section",{className:"py-16 px-4 bg-gradient-dark text-white",children:r.jsxs("div",{className:"container mx-auto max-w-4xl text-center",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-8",children:"Ready to Transform Your Business Risk-Free?"}),r.jsx("p",{className:"text-xl mb-8 text-white/90",children:"Join hundreds of expert-led business owners who've discovered that chaos isn't inevitable. That clarity creates calm. And that the right systems unlock true freedom."}),r.jsx("p",{className:"text-lg mb-12 text-white/80",children:"Your transformation starts with a single decision."}),r.jsxs("div",{className:"space-y-6 mb-12",children:[r.jsx("p",{className:"text-lg font-semibold",children:"Take the First Step Today"}),r.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[r.jsxs(G,{className:"p-6 bg-white/10 border-white/20",children:[r.jsx("h3",{className:"text-xl font-bold mb-4 text-white",children:"If your revenue is less than $750k per year"}),r.jsx(te,{size:"lg",variant:"secondary",className:"w-full",asChild:!0,children:r.jsxs(ue,{to:"/apply",children:["Apply for Clarity Method Membership",r.jsx(Ue,{className:"ml-2 w-4 h-4"})]})})]}),r.jsxs(G,{className:"p-6 bg-white/10 border-white/20",children:[r.jsx("h3",{className:"text-xl font-bold mb-4 text-white",children:"If your revenue is $750k or more per year"}),r.jsx(te,{size:"lg",variant:"secondary",className:"w-full",asChild:!0,children:r.jsxs(ue,{to:"/apply",children:["Apply for Scale Method Membership",r.jsx(Ue,{className:"ml-2 w-4 h-4"})]})})]})]})]}),r.jsxs("div",{className:"bg-white/10 rounded-xl p-8 border border-white/20",children:[r.jsx("p",{className:"text-2xl font-bold mb-4",children:"30 Days. Zero Risk. Unlimited Potential."}),r.jsx("p",{className:"text-lg text-white/90",children:"Because your business should be a vehicle for freedom, not a prison of your own making."})]})]})}),r.jsx("section",{className:"py-20 bg-section-gray",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[r.jsx("div",{className:"w-32 h-32 mx-auto mb-8 rounded-full overflow-hidden shadow-medium",children:r.jsx("img",{src:"/lovable-uploads/2d07d38a-1ba0-4bd1-b216-56d38102885f.png",alt:"Gabe Arnold, CEO of Simple Operations",className:"w-full h-full object-cover"})}),r.jsx("p",{className:"text-2xl text-muted-dark mb-2 italic",children:"I believe in y
803ou,"}),r.jsx("h3",{className:"text-4xl font-bold text-foreground mb-2",children:"Gabe Arnold"}),r.jsx("p",{className:"text-xl text-muted-dark mb-12",children:"CEO, Simple Operations"}),r.jsxs("div",{className:"bg-white rounded-xl p-8 shadow-soft",children:[r.jsx("h4",{className:"text-2xl font-bold text-foreground mb-6",children:"Connect With Gabe"}),r.jsxs("div",{className:"space-y-4 text-left max-w-md mx-auto",children:[r.jsxs("div",{className:"flex items-center space-x-3",children:[r.jsx("div",{className:"w-6 h-6 bg-primary/10 rounded-full flex items-center justify-center",children:r.jsxs("svg",{className:"w-4 h-4 text-primary",fill:"currentColor",viewBox:"0 0 20 20",children:[r.jsx("path",{d:"M2.003 5.884L10 9.882l7.997-3.998A2 2 0 0016 4H4a2 2 0 00-1.997 1.884z"}),r.jsx("path",{d:"M18 8.118l-8 4-8-4V14a2 2 0 002 2h12a2 2 0 002-2V8.118z"})]})}),r.jsxs("div",{children:[r.jsx("span",{className:"font-semibold text-foreground",children:"Email:"}),r.jsx("a",{href:"mailto:[email protected]",className:"text-primary hover:text-primary/80 transition-colors ml-2",children:"[email protected]"})]})]}),r.jsxs("div",{className:"flex items-center space-x-3",children:[r.jsx("div",{className:"w-6 h-6 bg-secondary/10 rounded-full flex items-center justify-center",children:r.jsx("svg",{className:"w-4 h-4 text-secondary",fill:"currentColor",viewBox:"0 0 20 20",children:r.jsx("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z",clipRule:"evenodd"})})}),r.jsxs("div",{children:[r.jsx("span",{className:"font-semibold text-foreground",children:"Speaking:"}),r.jsx("span",{className:"text-muted-dark ml-2",children:"Keynotes, workshops, strategic consulting"})]})]})]})]})]})})}),r.jsx(ht,{})]}),dpe="/assets/book-author-action-daMsvT8G.jpg",ku="/assets/book-reader-testimonial-1-DL-yzBwO.jpg",UI="/assets/book-reader-testimonial-2-BK3BNoje.jpg",qI="/assets/book-behind-scenes-XTYVc_s-.jpg",m1=({to:e,children:t,variant:n="hero",size:s="lg",className:a,...i})=>r.jsx(ue,{to:e,className:le(op({variant:n,size:s}),"relative z-20 rounded-2xl font-bold shadow-lg transition-all duration-200 text-center leading-snug max-w-full","hover:shadow-xl hover:scale-105 sm:hover:scale-105",a),...i,children:t}),upe=()=>{const{getImageByKey:e,getTestimonialData:t}=Nl(),[n,s]=j.useState({roleClarity4R:"",otaFramework:"",quantumFlowPlanner:"",waterfallTemplates:"",timeStudyTemplate:"",ceoMetricsDashboard:""});j.useEffect(()=>{(async()=>{try{const{data:m,error:y}=await ve.from("admin_settings").select("setting_key, setting_value").in("setting_key",["4r_role_clarity_url","ota_framework_url","quantum_flow_planner_url","waterfall_templates_url","time_study_template_url","ceo_metrics_dashboard_url"]);if(y){console.error("Error fetching URLs:",y);return}const p={"4r_role_clarity_url":"roleClarity4R",ota_framework_url:"otaFramework",quantum_flow_planner_url:"quantumFlowPlanner",waterfall_templates_url:"waterfallTemplates",time_study_template_url:"timeStudyTemplate",ceo_metrics_dashboard_url:"ceoMetricsDashboard"},v={...n};m==null||m.forEach(g=>{const x=p[g.setting_key];x&&(v[x]=g.setting_value)}),s(v)}catch(m){console.error("Error:",m)}})()},[]);const i=["book-testimonial-1","book-testimonial-2","book-testimonial-3"].map(f=>t(f)),o=[{name:"Sarah",title:"$2.3M Agency Owner",quote:"The Time Study alone saved me 15 hours a week. I had no idea how much tactical work I was doing that my team could handle."},{name:"Marcus",title:"SaaS Founder",quote:"We implemented the OTA framework and our project completion rate went from 60% to 95% in one quarter."},{name:"Jennifer",title:"E-commerce CEO",quote:"The 4R documents ended the constant 'who owns this?' conversations. Game changer."}],l=i.every(f=>f==null?void 0:f.name)?i.map(f=>({author:f.name,business:f.title,quote:f.quote})):o.map(f=>({author:f.name,business:f.title,quote:f.quote})),c=t("book-testimonial-david"),d=c!=null&&c.name?{quote:c.quote,author:c.name,business:c.title}:{quote:"I tried going at it alone for 8 months. Made some progress, but honestly wished I had support earlier. The accountability makes all the difference.",author:"David",business:"Tech Startup Founder"}
803,u=[{title:"4R Role Clarity Documents",icon:r.jsx(Rs,{className:"w-6 h-6"}),benefit:`Stop the "that's not my job" confusion forever`,description:"Define exactly who owns whatâand what success looks like",details:"Template includes: Roles, Responsibilities, Results, and Requirements framework"},{title:"OTA Framework Templates",icon:r.jsx($e,{className:"w-6 h-6"}),benefit:"End project chaos with crystal-clear ownership",description:"Every initiative has one owner, transparent milestones, and accountability built in",details:"Watch projects actually get completed without your constant oversight"},{title:"Quantum Flow Daily Planner",icon:r.jsx(gr,{className:"w-6 h-6"}),benefit:"Transform scattered days into focused execution",description:"Built-in prompts for gratitude, wins, intentions, and growth edges",details:"The same planner that helped founders reclaim 10+ hours per week"},{title:"Waterfall Project Management Templates",icon:r.jsx(og,{className:"w-6 h-6"}),benefit:"See your entire quarter at a glanceâwho owns what, by when",description:"Stop wondering about project status or chasing updates",details:"Strategic 90-day views that keep everyone aligned"},{title:"Time Study Template",icon:r.jsx(zt,{className:"w-6 h-6"}),benefit:"Discover exactly where your 60+ hour weeks are going",description:"Identify the 20% of tasks eating 80% of your time",details:"Create your delegation roadmap in just 2 weeks"}],h=[{title:"Simple CEO Metrics Dashboard (Spreadsheet)",icon:r.jsx(ss,{className:"w-6 h-6"}),description:"See your business health score with effective financial metrics",benefit:"Track only the metrics that actually matter for growth",details:"No more drowning in dataâjust clear, actionable insights",isAssessment:!1}];return r.jsxs("div",{className:"min-h-screen bg-background",children:[r.jsx(_t,{}),r.jsxs("section",{className:"relative pt-32 pb-16 overflow-hidden",children:[r.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-primary/20 via-primary/5 to-secondary/15"}),r.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-background/50 to-transparent"}),r.jsx("div",{className:"container mx-auto px-6 relative z-10",children:r.jsxs("div",{className:"text-center max-w-4xl mx-auto",children:[r.jsxs("div",{className:"flex items-center justify-center mb-6",children:[r.jsx(Is,{className:"w-8 h-8 text-primary mr-3 animate-pulse"}),r.jsx("div",{className:"w-12 h-1 bg-gradient-to-r from-primary to-secondary rounded-full"}),r.jsx(Is,{className:"w-8 h-8 text-secondary ml-3 animate-pulse"})]}),r.jsx("h1",{className:"text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-bold mb-6 text-primary",children:"Your Move to The Passenger Seat Starts Here"}),r.jsx("h2",{className:"text-lg sm:text-xl md:text-2xl text-muted-foreground mb-6 font-medium",children:"Download the exact tools and templates that helped hundreds of founders cut their operational hours by 30-50% while scaling revenue 20-80% in their first year"}),r.jsxs("div",{className:"bg-gradient-to-br from-white/90 to-primary/5 backdrop-blur-sm rounded-2xl p-8 mb-4 shadow-xl border border-primary/20 max-w-3xl mx-auto transform hover:scale-105 transition-all duration-300",children:[r.jsxs("div",{className:"flex items-center justify-center mb-4",children:[r.jsx(G7,{className:"w-6 h-6 text-primary mr-2"}),r.jsx("p",{className:"text-lg font-semibold text-primary",children:"You've read the book. You know the system works."})]}),r.jsx("p",{className:"text-xl font-bold text-foreground mb-4",children:"Now it's time to take action."}),r.jsx("p",{className:"text-lg leading-relaxed text-muted-foreground",children:"These aren't theoretical frameworks gathering dust in a folder. They're battle-tested tools currently running inside 7 and 8-figure businessesâtools that transform 60-hour weeks into strategic leadership from the passenger seat."})]})]})})]}),r.jsx("section",{className:"py-20 bg-section-light",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsxs("div",{className:"max-w-6xl mx-auto",children:[r.jsx("h2",{className:"text-2xl sm:text-3xl md:text-4xl font-bold mb-12 text-center text-foreground",children:"The Uncomfortable Truth About Your Current Operations"}),r.jsxs("div",{className:"grid md:grid-cols-2 gap-16 items-start mb-12",children:[r.jsx("div",{className:"rounded-2xl overflow-hidden shadow-strong max-h-64",children:r.jsx(Mi,{imageKey:"book-action",fallbackSrc:dpe,alt:"Gabe Arnold teaching business operations",aspectRatio:16/9,className:"w-full"})}),r.jsxs("div",{className:"space-y-6 text-lg leading-relaxed",children:[r.jsx("p",{className:"text-muted-foreground",children:"Right now, you're likely spending 70% of your time on tasks someone else could handleâif only you had the right systems to delegate them."}),r.jsx("p",{className:"text-muted-foreground",children:"That daily firefighting? The constant interruptions? The feeling that nothing moves without you?"}),r.jsx("p",{className:"text-muted-foreground",children:"It's not because your team isn't capable. It's because you haven't given them the framework to
803succeed without you."})]})]}),r.jsxs("div",{className:"max-w-4xl mx-auto",children:[r.jsxs("div",{className:"bg-primary/10 p-8 rounded-2xl border-l-4 border-primary mb-6",children:[r.jsx("p",{className:"text-foreground font-semibold text-xl mb-4",children:"But here's what successful founders discovered:"}),r.jsx("p",{className:"text-foreground",children:"The difference between working IN your business and working ON it isn't hiring more people. It's installing the right system with the right tools."})]}),r.jsx("p",{className:"text-muted-foreground text-lg",children:"These tools below aren't just templatesâthey're the exact blueprints that allow your team to take ownership, make decisions, and drive results while you focus on vision and growth. Each one removes a specific bottleneck that's keeping you trapped in the day-to-day."})]})]})})}),r.jsx("section",{className:"py-16",children:r.jsxs("div",{className:"container mx-auto px-6",children:[r.jsxs("div",{className:"mb-12",children:[r.jsxs("div",{className:"text-center mb-10",children:[r.jsx("h2",{className:"text-2xl sm:text-3xl md:text-4xl font-bold mb-4 text-foreground",children:"Core Tools & Templates"}),r.jsx("p",{className:"text-xl text-muted-foreground",children:"These five foundational tools create immediate clarity and relief in your operations:"})]}),r.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-5 gap-4 sm:gap-6 max-w-full mx-auto min-h-[280px]",children:u.map((f,m)=>r.jsxs(G,{className:"hover:shadow-lg transition-all duration-300 border-2 hover:border-primary/20 flex flex-col h-full",children:[r.jsx(Ie,{className:"pb-4",children:r.jsxs("div",{className:"flex flex-col items-center text-center space-y-3 mb-4",children:[r.jsx("div",{className:"w-12 h-12 bg-primary/10 rounded-lg flex items-center justify-center text-primary",children:f.icon}),r.jsx(Me,{className:"text-sm sm:text-base leading-tight min-h-[3rem] flex items-center text-center",children:f.title})]})}),r.jsxs(Ne,{className:"space-y-4 flex-grow flex flex-col pt-0",children:[r.jsx("div",{className:"bg-green-50 p-3 rounded-lg border border-green-200 min-h-[4rem] flex items-center",children:r.jsx("p",{className:"font-semibold text-green-800 text-xs leading-tight",children:f.benefit})}),r.jsx("p",{className:"text-muted-foreground text-xs leading-snug flex-grow min-h-[3rem]",children:f.description}),r.jsx("p",{className:"text-xs text-muted-foreground italic min-h-[2.5rem] leading-tight",children:f.details}),r.jsx("div",{className:"mt-auto pt-2",children:(()=>{const p=[n.roleClarity4R,n.otaFramework,n.quantumFlowPlanner,n.waterfallTemplates,n.timeStudyTemplate][m];return p?r.jsx(te,{size:"sm",className:"w-full text-xs py-2 px-3 min-h-[44px]",asChild:!0,children:r.jsxs("a",{href:p,target:"_blank",rel:"noopener noreferrer",children:["Download Template",r.jsx(nu,{className:"ml-1 w-3 h-3"})]})}):r.jsxs(te,{size:"sm",className:"w-full text-xs py-2 px-3 min-h-[44px]",disabled:!0,children:["Coming Soon",r.jsx(nu,{className:"ml-1 w-3 h-3"})]})})()})]})]},m))})]}),r.jsxs("div",{className:"mb-12",children:[r.jsxs("div",{className:"text-center mb-12",children:[r.jsx("h2",{className:"text-2xl sm:text-3xl md:text-4xl font-bold mb-4 text-foreground",children:"Assessment & Planning Tools"}),r.jsx("p",{className:"text-xl text-muted-foreground",children:"Know your numbers. Focus your efforts. Scale with confidence:"})]}),r.jsx("div",{className:"max-w-3xl mx-auto",children:h.map((f,m)=>r.jsxs(G,{className:"hover:shadow-lg transition-all duration-300 border-2 hover:border-primary/20 flex flex-col h-full",children:[r.jsx(Ie,{className:"pb-4",children:r.jsxs("div",{className:"flex items-center space-x-3 mb-4",children:[r.jsx("div",{className:"w-12 h-12 bg-primary/10 rounded-lg flex items-center justify-center text-primary",children:f.icon}),r.jsx(Me,{className:"text-lg leading-tight",children:f.title})]})}),r.jsxs(Ne,{className:"space-y-4 flex-grow flex flex-col",children:[r.jsx("p",{className:"text-muted-foreground text-sm flex-grow",children:f.description}),r.jsx("div",{className:"bg-blue-50 p-4 rounded-lg border border-blue-200 min-h-[4rem] flex items-center",children:r.jsx("p",{className:"font-semibold text-blue-800 text-sm",children:f.benefit})}),r.jsx("p",{className:"text-xs text-muted-foreground italic min-h-[2.5rem]",children:f.details}),r.jsx("div",{className:"mt-auto pt-4",children:n.ceoMetricsDashboard?r.jsx(te,{size:"sm",className:"w-full min-h-[44px]",asChild:!0,children:r.jsxs("a",{href:n.ceoMetricsDashboard,target:"_blank",rel:"noopener noreferrer",children:["Download Spreadsheet",r.jsx(nu,{className:"ml-2 w-4 h-4"})]})}):r.jsxs(te,{size:"sm",className:"w-full min-h-[44px]",disabled:!0,children:["Coming Soon",r.jsx(nu,{className:"ml-2 w-4 h-4"})]})})]})]},m))})]})]})}),r.jsx("section",{className:"py-16 bg-section-light",children:r.jsxs("div",{className:"container mx-auto px-6",children:[r.jsx("div",{className:"flex items-center justify-center mb-8",children:r.jsxs("div",{className:"flex items-center space-x-4",children:[r.jsx(Fr,{className:"w-8 h-8 text-yellow-500 fill-current"}),r.jsx(Fr,{className:"w-10 h-10 text-yellow-500 fill-current"}),r.jsx(Wr,{className:"w-12 h-12 text-primary"}),r.jsx(Fr,{className:"w-10 h-10 text-yellow-500 fill-current"}),r.jsx(Fr,{className:"w-8 h-8 text-yellow-500 fill-current"})]})}),r.jsx("div",{className:"text-center mb-12",children:r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-8 text-foreground",children:"Join 300+ Founders Who've Already Downloaded These Tools"})}),r.jsx("div",{className:"grid md:grid-cols-3 gap-8 max-w-6xl mx-auto",children:l.map((f,m)=>{const y=["book-testimonial-1","book-testimonial-2","book-testimonial-3"],p=[ku,UI,ku];return r.jsx(G,{className:"bg-white/80 backdrop-blur-sm border-2 h-full flex flex-col",children:r.jsxs(Ne,{className:"p-6 flex-grow flex flex-col",children:[r.jsx("div",{className:"flex justify-center mb-4",children:r.jsx("div",{className:"w-20 h-20 rounded-full overflow-hidden",children:r.jsx(Mi,{imageKey:y[m],fallbackSrc:p[m],alt:`${f.author} - Success story`,aspectRatio:1,className:"w-full h-full"})})}),r.jsx(jr,{className:"w-8 h-8 text-primary mb-4"}),r.jsxs("blockquote",{className:"text-muted-foreground mb-6 italic flex-grow leading-relaxed",children:['"',f.quote,'"']}),r.jsxs("div",{className:"mt-auto",children:[r.jsx("div",{className:"font-semibold text-foreground",children:f.author}),r.jsx("div",{className:"text-sm text-muted-foreground",children:f.business})]})]})},m)})})]})}),r.jsx("section",{className:"py-16",children:r.jsxs("div",{className:"container mx-auto px-6",children:[r.jsx("div",{className:"flex items-center justify-center mb-12",children:r.jsxs("div",{className:"flex items-center space-x-8 bg-gradient-to-r from-primary/10 via-secondary/10 to-primary/10 px-12 py-6 rounded-2xl border-2 border-primary/20",children:[r.jsx("div",{className:"w-20 h-20 bg-primary/20 rounded-full flex items-center justify-center shadow-lg",children:r.jsx(Yf,{className:"w-12 h-12 text-primary"})}),r.jsxs("div",{className:"text-center",children:[r.jsx(yw,{className:"w-16 h-16 text-yellow-500 mx-auto mb-3 drop-shadow-lg"}),r.jsx("div",{className:"text-lg font-bold text-foreground",children:"Choose Your Path"})]}),r.jsx("div",{className:"w-20 h-20 bg-secondary/20 rounded-full flex items-center justify-center shadow-lg",children:r.jsx(Yf,{className:"w-12 h-12 text-secondary transform scale-x-[-1]"})})]})}),r.jsx("div",{className:"text-center mb-12",children:r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-8 text-foreground",children:"You Have Two Paths Forward"})}),r.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 max-w-6xl mx-auto",children:[r.jsxs(G,{className:"border-2",children:[r.jsxs(Ie,{className:"text-center pb-6",children:[r.jsx(it,{variant:"outline",className:"w-fit mx-auto mb-4",children:"Path 1"}),r.jsx(Me,{className:"text-2xl text-foreground",children:"DIY Implementation"}),r.jsx(dt,{className:"text-lg",children:"Use these free tools to install Simple Operations yourself. Many founders succeed this wayâwith commitment, consistency, and these proven frameworks."})]}),r.jsxs(Ne,{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h4",{className:"font-semibold mb-3 text-foreground",children:"Perfect for you if:"}),r.jsxs("ul",{className:"space-y-2 text-muted-foreground",children:[r.jsxs("li",{className:"flex items-start space-x-2",children:[r.jsx($e,{className:"w-4 h-4 text-green-500 mt-1 flex-shrink-0"}),r.jsx("span",{className:"text-sm",children:"You're highly disciplined and self-directed"})]}),r.jsxs("li",{className:"flex items-start space-x-2",children:[r.jsx($e,{className:"w-4 h-4 text-green-500 mt-1 flex-shrink-0"}),r.jsx("span",{className:"text-sm",children:"You have time to learn and implement systematically"})]}),r.jsxs("li",{className:"flex items-start space-x-2",children:[r.jsx($e,{className:"w-4 h-4 text-green-500 mt-1 flex-shrink-0"}),r.jsx("span",{className:"text-sm",children:"Your business is relatively stable (not in crisis mode)"})]}),r.jsxs("li",{className:"flex items-start space-x-2",children:[r.jsx($e,{className:"w-4 h-4 text-green-500 mt-1 flex-shrink-0"}),r.jsx("span",{className:"text-sm",children:"You prefer to figure things out independently"})]})]})]}),r.jsxs("div",{className:"mt-6 pt-6 border-t border-border",children:[r.jsxs("h4",{className:"font-semibold mb-3 text-foreground flex items-center",children:[r.jsx(Ji,{className:"w-4 h-4 text-orange-500 mr-2"}),"Consider These Challenges:"]}),r.jsxs("ul",{className:"space-y-2 text-muted-foreground mb-6",children:[r.jsxs("li",{className:"flex items-start space-x-2",children:[r.jsx("div",{className:"w-1 h-1 bg-orange-400 rounded-full mt-2 flex-shrink-0"}),r.jsx("span",{className:"text-sm",children:"No accountability partner to keep you on track"})]}),r.jsxs("li",{className:"flex items-start space-x-2",children:[r.jsx("div",{className:"w-1 h-1 bg-orange-400 rounded-full mt-2 flex-shrink-0"}),r.jsx("span",{className:"text-sm",children:"Limited expert guidance when you get stuck"})]}),r.jsxs("li",{className:"flex items-start space-x-2",children:[r.jsx("div",{className:"w-1 h-1 bg-orange-400 rounded-full mt-2 flex-shrink-0"}),r.jsx("span",{className:"text-sm",children:"Working in isolation without peer support"})]}),r.jsxs("li",{className:"flex items-start space-x-2",children:[r.jsx("div",{className:"w-1 h-1 bg-orange-400 rounded-full mt-2 flex-shrink-0"}),r.jsx("span",{className:"text-sm",children:"Higher risk of incomplete implementation"})]})]}),r.jsxs("div",{className:"bg-orange-50/50 p-4 rounded-lg border border-orange-200",children:[r.jsxs("div",{className:"flex items-start gap-3 mb-3",children:[r.jsx("div",{className:"w-12 h-12 rounded-full overflow-hidden flex-shrink-0",children:r.jsx(Mi,{imageKey:"book-testimonial-david",fallbackSrc:ku,alt:`${d.author} - ${d.business}`,aspectRatio:1,className:"w-full h-full"})}),r.jsx(jr,{className:"w-6 h-6 text-orange-600 flex-shrink-0"})]}),r.jsxs("blockquote",{className:"text-orange-800 text-sm italic mb-3",children:['"',d.quote,'"']}),r.jsxs("div",{className:"text-right",children:[r.jsx("div",{className:"text-sm font-medium text-orange-700",children:d.author}),r.jsx("div",{className:"text-xs text-orange-600",children:d.business})]})]})]})]})]}),r.jsxs("div",{className:"space-y-8",children:[r.jsxs(G,{className:"border-2 border-primary/20 bg-primary/5",children:[r.jsxs(Ie,{className:"text-center pb-6",children:[r.jsx(it,{className:"w-fit mx-auto mb-4",children:"Path 2"}),r.jsx(Me,{className:"text-xl text-foreground",children:"Accelerated Transformation"}),r.jsx(dt,{className:"font-semibold text-primary",children:"For Businesses $500Kâ$3M+: The Scale Method"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Get an embedded Operator, expert Simple Operations Guide, and peer community of successful foundersâall working together to install your system in 90 days."})]}),r.jsxs(Ne,{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h4",{className:"font-semibold mb-3 text-foreground",children:"What you get:"}),r.jsxs("ul",{className:"space-y-2 text-muted-foreground text-sm",children:[r.jsxs("li",{className:"flex items-start space-x-2",children:[r.jsx(Ii,{className:"w-4 h-4 text-primary mt-1 flex-shrink-0"}),r.jsx("span",{children:"Done-with-you implementation (not done-for-you dependency)"})]}),r.jsxs("li",{className:"flex items-start space-x-2",children:[r.jsx(Ii,{className:"w-4 h-4 text-primary mt-1 flex-shrink-0"}),r.jsx("span",{children:"150 hours annual Simple Operations Guide support"})]}),r.jsxs("li",{className:"flex items-start space-x-2",children:[r.jsx(Ii,{className:"w-4 h-4 text-primary mt-1 flex-shrink-0"}),r.jsx("span",{children:"Help hiring/promoting your Operator who runs the system daily"})]}),r.jsxs("li",{className:"flex items-start space-x-2",children:[r.jsx(Ii,{className:"w-4 h-4 text-primary mt-1 flex-shrink-0"}),r.jsx("span",{children:"Peer mastermind with founders at your exact stage"})]})]})]}),r.jsxs("div",{children:[r.jsx("h4",{className:"font-semibold mb-3 text-foreground",children:"Results members typically see:"}),r.jsxs("ul",{className:"space-y-2 text-muted-foreground text-sm",children:[r.jsxs("li",{className:"flex items-start space-x-2",children:[r.jsx(ss,{className:"w-4 h-4 text-green-500 mt-1 flex-shrink-0"}),r.jsx("span",{children:"20-80% revenue growth in year one"})]}),r.jsxs("li",{className:"flex items-start space-x-2",children:[r.jsx(zt,{className:"w-4 h-4 text-green-500 mt-1 flex-shrink-0"}),r.jsx("span",{children:"30-50% reduction in operational hours"})]}),r.jsxs("li",{className:"flex items-start space-x-2",children:[r.jsx(Wr,{className:"w-4 h-4 text-green-500 mt-1 flex-shrink-0"}),r.jsx("span",{children:"Vacations without business chaos"})]}),r.jsxs("li",{className:"flex items-start space-x-2",children:[r.jsx($e,{className:"w-4 h-4 text-green-500 mt-1 flex-shrink-0"}),r.jsx("span",{children:"Joy returning to entrepreneurship"})]})]})]}),r.jsx(te,{className:"w-full",asChild:!0,children:r.jsxs(ue,{to:"/scale",children:["Learn About the Scale Method",r.jsx(Ue,{className:"ml-2 w-4 h-4"})]})})]})]}),r.jsxs(G,{className:"border-2",children:[r.jsxs(Ie,{className:"text-center pb-6",children:[r.jsx(Me,{className:"text-lg text-foreground",children:"For Growth-Stage Businesses $300Kâ$500K"}),r.jsx(dt,{className:"font-semibold text-primary",children:"The Clarity Method"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Not quite ready for a full Operator? Build your foundation now so you can scale smoothly later."})]}),r.jsxs(Ne,{className:"space-y-4",children:[r.jsxs("div",{children:[r.jsx("h4",{className:"font-semibold mb-3 text-foreground",children:"What you get:"}),r.jsxs("ul",{className:"space-y-2 text-muted-foreground text-sm",children:[r.jsxs("li",{className:"flex items-start space-x-2",children:[r.jsx($e,{className:"w-4 h-4 text-primary mt-1 flex-shrink-0"}),r.jsx("span",{children:"Quarterly group implementation sessions"})]}),r.jsxs("li",{className:"flex items-start space-x-2",children:[r.jsx($e,{className:"w-4 h-4 text-primary mt-1 flex-shrink-0"}),r.jsx("span",{children:"Core system installation support"})]}),r.jsxs("li",{className:"flex items-start space-x-2",children:[r.jsx($e,{className:"w-4 h-4 text-primary mt-1 flex-shrink-0"}),r.jsx("span",{children:"Growth-focused peer community"})]}),r.jsxs("li",{className:"flex items-start space-x-2",children:[r.jsx($e,{className:"w-4 h-4 text-primary mt-1 flex-shrink-0"}),r.jsx("span",{children:"Foundation for future scaling"})]})]})]}),r.jsx(te,{className:"w-full bg-primary hover:bg-primary/90",asChild:!0,children:r.jsxs(ue,{to:"/clarity",children:["Learn About the Clarity Method",r.jsx(Ue,{className:"ml-2 w-4 h-4"})]})})]})]})]})]})]})}),r.jsx("section",{className:"py-16 bg-section-light",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsxs("div",{className:"text-center max-w-4xl mx-auto",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-8 text-foreground",children:"Your Business Should Give You Freedom, Not Imprison You"}),r.jsxs("div",{className:"space-y-6 text-lg leading-relaxed mb-12",children:[r.jsx("p",{className:"text-muted-foreground",children:"Every founder starts their business dreaming of freedomâfinancial, time, and location freedom. B
803ut somewhere along the way, you became the bottleneck. The business that was supposed to free you now owns you."}),r.jsx("p",{className:"text-foreground font-semibold text-xl",children:"It doesn't have to be this way."}),r.jsx("p",{className:"text-muted-foreground",children:"These tools are the first step toward reclaiming your original vision. Download them. Use them. And when you're ready for transformationânot just informationâwe're here to help."})]})]})})}),r.jsx("section",{className:"py-16 bg-section-light",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsxs("div",{className:"max-w-5xl mx-auto",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-12 text-center text-foreground",children:"From the Founder's Desk"}),r.jsxs("div",{className:"grid md:grid-cols-2 gap-12 items-start mb-8",children:[r.jsx("div",{className:"rounded-2xl overflow-hidden shadow-strong h-fit max-h-[360px]",children:r.jsx(Mi,{imageKey:"book-behind-scenes",fallbackSrc:qI,alt:"Gabe Arnold creating content",aspectRatio:1,className:"w-full h-full object-cover"})}),r.jsxs("div",{className:"text-center md:text-left",children:[r.jsxs("p",{className:"text-base text-muted-foreground mb-6 leading-relaxed",children:["This system is designed for you (yes you!), the Visionary Entrepreneur. As my mentor Alex told me ",r.jsx("span",{className:"font-bold italic",children:'"As entrepreneurs we get to make the rules, so why not set up the rules so you win?"'}),"When you implement Simple Operations you have the opportunity for both profit and peace in your life."]}),r.jsx("p",{className:"text-lg text-foreground mb-2",children:"I believe in you,"}),r.jsx("p",{className:"text-2xl font-bold text-foreground",children:"Gabe Arnold"}),r.jsx("p",{className:"text-muted-foreground mb-6",children:"CEO, Simple Operations"}),r.jsxs("div",{className:"max-w-xl",children:[r.jsx("h3",{className:"text-lg font-semibold text-foreground mb-3",children:"Connect With Gabe"}),r.jsxs("div",{className:"space-y-1 text-sm text-muted-foreground",children:[r.jsxs("p",{children:[r.jsx("strong",{children:"Email:"})," [email protected]"]}),r.jsxs("p",{children:[r.jsx("strong",{children:"Speaking:"})," Keynotes, workshops, strategic consulting"]})]})]})]})]})]})})}),r.jsx("section",{className:"py-16 bg-gradient-to-br from-primary/10 via-secondary/5 to-primary/10",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsx("div",{className:"max-w-4xl mx-auto",children:r.jsxs("div",{className:"bg-primary text-white rounded-3xl p-12 shadow-elegant text-center relative overflow-hidden",children:[r.jsxs("div",{className:"relative z-10",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6",children:"Stop Being the Bottleneck in Your Own Success"}),r.jsx("p",{className:"text-xl mb-8 text-primary-foreground/90 leading-relaxed",children:"Join hundreds of founders who've escaped the 60-hour grind and built businesses that truly serve their lives."}),r.jsx(m1,{to:"/apply",className:"text-base md:text-lg px-6 md:px-8 py-4 h-auto mb-8 w-full sm:w-auto max-w-full whitespace-normal break-words text-center","aria-label":"Apply to the Scale Method",children:"Transform Your Business Now"}),r.jsxs("div",{className:"flex flex-col md:flex-row justify-center items-center gap-6 text-sm text-primary-foreground/80",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",children:r.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})}),r.jsx("span",{children:"Proven system used by 500+ businesses"})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",children:r.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})}),r.jsx("span",{children:"Results in 4 months"})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",children:r.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})}),r.jsx("span",{children:"Your freedom guaranteed"})]})]})]}),r.jsx("div",{className:"pointer-events-none absolute inset-0 bg-gradient-to-br from-white/10 to-transparent"})]})})})}),r.jsx("section",{className:"py-12 border-t",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsx("div",{className:"max-w-3xl mx-auto text-center",children:r.jsxs("p",{className:"text-muted-foreground italic",children:[r.jsx("strong",{children:"P.S."})," Still skeptical? That's smart. But consider this: What's the cost of another year running at 60+ hours, being the bottleneck, missing family moments? These tools are free. Your time isn't. Download them now and see what's possible."]})})})}),r.jsx(ht,{})]})},wi="https://www.amazon.com/s?k=Passenger+Seat+Leadership+Gabe+Arnold",HI=wi,hpe=[{n:"Part 1",title:"The Passenger Seat Mindset",points:['Why "letting go" is terrible advice â and what to do instead',"The mental shift from operator to architect","How to stay close to the business without being in every decision"],takeaway:"You don't step away â you shift seats."},{n:"Part 2",title:"Weekly Sync System",points:["Eliminate 15+ daily interruptions with one 90-minute meeting","The exact agenda that replaces scattered check-ins","Communication batching that returns 10+ hours per week"],takeaway:"Batched communication beats constant availability."},{n:"Part 3",title:"Waterfall Planning Method",points:["Cascade company goals down to individual accountability","Quarterly â Monthly â Weekly planning rhythm",'Stop the "what should I work on?" question forever'],takeaway:'Clarity eliminates the "what matters this week?" question.'},{n:"Part 4",title:"Four Levels of Delegation Framework",points:["Why task delegation fails â you kept decision authority","The Four Levels of Delegation framework that makes decision rights crystal clear","Authority levels: what to keep, transfer, and inform"],takeaway:"Transfer ownership, not just tasks."}
803,{n:"Part 5",title:"Operating Scorecard",points:["See problems before they become crises","The 5â7 metrics that show business health in 10 minutes","Visibility without micromanaging every email thread"],takeaway:"Data-driven oversight beats gut-feel management."},{n:"Part 6",title:"Real Founder Stories",points:["Case studies from founders who installed the system","Before/after transformations (revenue, hours, freedom)","Common mistakes and how to avoid them"],takeaway:"This works for founders exactly like you."}],mpe=["You're doing $300Kâ$10M+ revenue but still the daily bottleneck",'Your team asks "What should I do?" 15+ times per day',"You can't take a vacation without the business falling apart","Delegation keeps boomeranging back to your desk","You're working 50â60+ hour weeks despite having a team","You want systems that actually work â not more theory"],fpe=["Under $300K revenue (focus on sales first)","Solo entrepreneurs with no team",'Looking for generic "work-life balance" advice',"Want quick hacks vs. building actual systems","Already have fully self-running operations"],ppe=[{icon:ma,name:"Paperback",tag:"Perfect for highlighting and notes",price:"$19.99",rating:"4.8/5 on Amazon",href:wi,cta:"Buy Paperback on Amazon"},{icon:H7,name:"Kindle",tag:"Read on any device",price:"$9.99",rating:"Instant delivery",href:wi,cta:"Get Kindle Version"},{icon:T7,name:"Audiobook",tag:"Listen while you commute",price:"$14.95",rating:"Narrated by Gabe Arnold",href:HI,cta:"Get Audiobook on Audible"}],gpe=["Weekly Sync meeting agenda templates","Waterfall Planning worksheets","Four Levels of Delegation framework","Operating Scorecard builder","Team onboarding scripts","Resistance handling & change-management guide"],xpe=[{key:"book-testimonial-1",quote:"The Weekly Sync system alone gave me back 12 hours a week. My team stopped interrupting me â they started solving things.",name:"Sarah",title:"$2.3M Agency Owner",fallback:ku},{key:"book-testimonial-2",quote:"I implemented the Four Levels of Delegation framework and our project completion rate went from 60% to 95% in one quarter.",name:"Marcus",title:"SaaS Founder",fallback:UI},{key:"book-testimonial-3",quote:"The whole admin side runs by itself now. Revenue went from $18K in January to $55K this month â and I didn't touch anything last week.",name:"Colin T.",title:"Thompson Inspections",fallback:ku}],ype=[{icon:Wr,value:"500+",label:"Founders using the system"},{icon:ss,value:"$480M+",label:"In new revenue & profits created"},{icon:zt,value:"15,000+",label:"Hours returned to founders"},{icon:gr,value:"90 days",label:'To first "runs without me" week'}],vpe=()=>r.jsxs("div",{className:"min-h-screen bg-background flex flex-col",children:[r.jsx(vr,{title:'"Passenger Seat Leadership" by Gabe Arnold â The Book',description:"Stop being the bottleneck. Learn the exact 5-component operating system that helped 500+ founders scale past $3M without 60-hour weeks. Plus $497 in free templates.",canonical:"/so-book"}),r.jsx(_t,{}),r.jsxs("main",{className:"flex-1 pt-20",children:[r.jsx("section",{className:"py-16 md:py-24 bg-gradient-to-br from-primary/10 via-background to-secondary/10 relative overflow-hidden",children:r.jsx("div",{className:"container mx-auto px-6 relative z-10",children:r.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center max-w-6xl mx-auto",children:[r.jsx("div",{className:"order-2 lg:order-1",children:r.jsx("div",{className:"rounded-2xl overflow-hidden shadow-strong max-w-md mx-auto",children:r.jsx("img",{src:lj.url,alt:'"Passenger Seat Leadership" by Gabe Arnold â book cover',className:"w-full h-auto block",loading:"eager"})})}),r.jsxs("div",{className:"order-1 lg:order-2 space-y-6",children:[r.jsx(it,{variant:"secondary",className:"uppercase tracking-wide",children:"New Book by Gabe Arnold"}),r.jsxs("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-bold leading-tight",children:["Stop Being the Bottleneck. ",r.jsx("span",{className:"text-primary",children:"Start Being the Architect."})]}),r.jsx("p",{className:"text-xl text-muted-foreground",children:"Learn the exact framework that helped 500+ founders scale past $3M without working 60-hour weeks."}),r.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 pt-2",children:[r.jsx(te,{asChild:!0,size:"lg",className:"text-base h-auto py-4 px-6 bg-[#FF9900] hover:bg-[#e88a00] text-black",children:r.jsxs("a",{href:wi,target:"_blank",rel:"noopener noreferrer",children:["Get Paperback ",r.jsx(Ue,{className:"ml-2"})]})}),r.jsx(te,{asChild:!0,size:"lg",variant:"outline",className:"text-base h-auto py-4 px-6",children:r.jsx("a",{href:wi,target:"_blank",rel:"noopener noreferrer",children:"Get Kindle"})}),r.jsx(te,{asChild:!0,size:"lg",variant:"outline",className:"text-base h-auto py-4 px-6",children:r.jsx("a",{href:HI,target:"_blank",rel:"noopener noreferrer",children:"Get Audiobook"})})]}),r.jsxs("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-2 pt-4 text-sm text-muted-foreground",children:[r.jsxs("div",{className:"flex items-center gap-1",children:[[...Array(5)].map((e,t)=>r.jsx(Fr,{className:"h-4 w-4 fill-yellow-500 text-yellow-500"},t)),r.jsx("span",{className:"ml-1",children:"5-star reviews on Amazon"})]}),r.jsx("span",{children:"ð Trusted by founders between $300Kâ$10M+"})]})]})]})})}),r.jsx("section",{className:"py-10 bg-[#2E7D32] text-white",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsxs("div",{className:"max-w-5xl mx-auto flex flex-col md:flex-row items-center gap-6 md:gap-10",children:[r.jsx(wb,{className:"h-16 w-16 flex-shrink-0"}),r.jsxs("div",{className:"flex-1 text-center md:text-left",children:[r.jsx("h2",{className:"text-2xl md:text-3xl font-bold mb-2",children:"Buy the Book, Get $497 in Free Templates"}),r.jsx("p",{className:"opacity-95 mb-3",children:"Every copy includes a resource link inside the book that unlocks the complete Implementation Template Library â the same tools we use with $33K coaching clients. No forms, no forwarding receipts."})]}),r.jsx(te,{asChild:!0,size:"lg",variant:"secondary",className:"flex-shrink-0",children:r.jsxs("a",{href:wi,target:"_blank",rel:"noopener noreferrer",children:["Buy & Claim Bonus ",r.jsx(Ue,{className:"ml-2"})]})})]})})}),r.jsx("section",{className:"py-16 md:py-20 bg-background",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsxs("div",{className:"max-w-6xl mx-auto grid md:grid-cols-2 gap-8",children:[r.jsxs(G,{className:"p-8 bg-primary/5 border-2 border-primary/30",children:[r.jsx("h2",{className:"text-2xl font-bold mb-6",children:"You Need This Book If:"}),r.jsx("ul",{className:"space-y-3",children:mpe.map(e=>r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(_e,{className:"h-5 w-5 text-primary flex-shrink-0 mt-1"}),r.jsx("span",{children:e})]},e))})]}),r.jsxs(G,{className:"p-8 bg-destructive/5 border-2 border-destructive/20",children:[r.jsx("h2",{className:"text-2xl font-bold mb-6",children:"This Book Is NOT For:"}),r.jsx("ul",{className:"space-y-3",children:fpe.map(e=>r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(Ft,{className:"h-5 w-5 text-destructive flex-shrink-0 mt-1"}),r.jsx("span",{children:e})]},e))})]})]})})}),r.jsx("section",{className:"py-16 md:py-20 bg-section-light",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsxs("div",{className:"max-w-3xl mx-auto
803space-y-6",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-center mb-8",children:"You Built a Business That Trapped You"}),r.jsx("p",{className:"text-lg",children:"You started this business for freedom. More money. More control. More time."}),r.jsx("p",{className:"text-lg font-semibold",children:"Instead, you got:"}),r.jsxs("ul",{className:"space-y-2 text-lg",children:[r.jsxs("li",{children:["⢠",r.jsx("strong",{children:"More hours"})," â working harder than when you had 3 employees"]}),r.jsxs("li",{children:["⢠",r.jsx("strong",{children:"More stress"})," â every decision waits on you"]}),r.jsxs("li",{children:["⢠",r.jsx("strong",{children:"More chaos"})," â fires to put out every single day"]}),r.jsxs("li",{children:["⢠",r.jsx("strong",{children:"More trapped"})," â can't step away without things breaking"]})]}),r.jsx("p",{className:"text-lg pt-4",children:"You've tried:"}),r.jsxs("ul",{className:"space-y-2 text-lg",children:[r.jsx("li",{children:"⢠Hiring more people (they just depend on you more)"}),r.jsx("li",{children:"⢠Building SOPs (nobody reads them)"}),r.jsx("li",{children:"⢠Project management tools (become glorified to-do lists)"}),r.jsx("li",{children:"⢠Delegation (always comes back to you)"})]}),r.jsx(G,{className:"p-6 bg-primary/5 border-l-4 border-primary mt-6",children:r.jsx("p",{className:"text-xl font-semibold",children:"None of it worked. Because you were missing the operating system."})})]})})}),r.jsx("section",{className:"py-20 bg-section-dark text-section-dark-foreground",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsxs("div",{className:"max-w-6xl mx-auto space-y-12",children:[r.jsxs("div",{className:"text-center space-y-4 max-w-3xl mx-auto",children:[r.jsx("h2",{className:"text-3xl md:text-5xl font-bold",children:"What's Inside: The 5-Component Operating System"}),r.jsx("p",{className:"text-xl opacity-90",children:"Not theory â the exact framework used by 500+ founders to break their bottleneck and build businesses that run without them."})]}),r.jsx("div",{className:"grid md:grid-cols-2 gap-6",children:hpe.map(e=>r.jsxs(G,{className:"p-6 bg-card text-card-foreground",children:[r.jsx("p",{className:"text-xs uppercase tracking-wide text-primary font-bold mb-1",children:e.n}),r.jsx("h3",{className:"text-xl font-bold mb-4",children:e.title}),r.jsx("ul",{className:"space-y-2 mb-4",children:e.points.map(t=>r.jsxs("li",{className:"flex items-start gap-2 text-sm",children:[r.jsx(_e,{className:"h-4 w-4 text-primary flex-shrink-0 mt-1"}),r.jsx("span",{children:t})]},t))}),r.jsx("div",{className:"pt-3 border-t",children:r.jsxs("p",{className:"text-sm",children:[r.jsx("span",{className:"font-semibold",children:"Key Takeaway: "}),r.jsx("span",{className:"italic",children:e.takeaway})]})})]},e.title))})]})})}),r.jsx("section",{className:"py-16 md:py-20 bg-background",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsxs("div",{className:"max-w-5xl mx-auto grid md:grid-cols-2 gap-12 items-center",children:[r.jsx("div",{className:"rounded-2xl overflow-hidden shadow-strong",children:r.jsx(Mi,{imageKey:"book-behind-scenes",fallbackSrc:qI,alt:"Gabe Arnold, author of Passenger Seat Leadership",aspectRatio:1,className:"w-full h-full object-cover"})}),r.jsxs("div",{className:"space-y-5",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold",children:"About Gabe Arnold"}),r.jsx("p",{className:"text-lg text-muted-foreground",children:"Gabe Arnold has spent 30+ years building businesses â including multiple seven-figure companies, bankruptcies that taught invaluable lessons, and the hard-won experience of scaling from chaos to freedom."}),r.jsxs("ul",{className:"space-y-2 text-muted-foreground",children:[r.jsxs("li",{className:"flex items-start gap-2",children:[r.jsx(_e,{className:"h-5 w-5 text-primary flex-shrink-0 mt-1"}),r.jsx("span",{children:"Started his first company at 18 and built multi-seven figure businesses"})]}),r.jsxs("li",{className:"flex items-start gap-2",children:[r.jsx(_e,{className:"h-5 w-5 text-primary flex-shrink-0 mt-1"}),r.jsx("span",{children:"Built Business Marketing Engine from startup to $10M+"})]}),r.jsxs("li",{className:"flex items-start gap-2",children:[r.jsx(_e,{className:"h-5 w-5 text-primary flex-shrink-0 mt-1"}),r.jsx("span",{children:"Sold $40M+ in products and services across 20+ years"})]}),r.jsxs("li",{className:"flex items-start gap-2",children:[r.jsx(_e,{className:"h-5 w-5 text-primary flex-shrink-0 mt-1"}),r.jsx("span",{children:"Worked with 1,000+ entrepreneurs breaking through scaling bottlenecks"})]}),r.jsxs("li",{className:"flex items-start gap-2",children:[r.jsx(_e,{className:"h-5 w-5 text-primary flex-shrink-0 mt-1"}),r.jsx("span",{children:"Featured on Alex Charfen's Momentum Podcast"})]})]}),r.jsxs(G,{className:"p-5 bg-primary/5 border-l-4 border-primary",children:[r.jsx("p",{className:"font-semibold mb-1",children:"The turning point:"}),r.jsx("p",{className:"text-muted-foreground",children:"After years of working 70-hour weeks running multi-seven figure businesses, Gabe discovered the Simple Operations framework. Within 90 days, his team made 80% of decisions without him â and revenue doubled while his hours dropped to 40/week."})]})]})]})})}),r.jsx("section",{className:"py-16 md:py-20 bg-section-light",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsxs("div",{className:"max-w-6xl mx-auto
803space-y-10",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-center",children:"What Readers Are Saying"}),r.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:xpe.map(e=>r.jsxs(G,{className:"p-6 flex flex-col bg-card",children:[r.jsx("div",{className:"flex gap-1 mb-3",children:[...Array(5)].map((t,n)=>r.jsx(Fr,{className:"h-4 w-4 fill-yellow-500 text-yellow-500"},n))}),r.jsx(jr,{className:"h-6 w-6 text-primary mb-3"}),r.jsxs("p",{className:"italic flex-1 mb-4",children:['"',e.quote,'"']}),r.jsxs("div",{className:"flex items-center gap-3 pt-4 border-t",children:[r.jsx("div",{className:"w-12 h-12 rounded-full overflow-hidden flex-shrink-0",children:r.jsx(Mi,{imageKey:e.key,fallbackSrc:e.fallback,alt:e.name,aspectRatio:1,className:"w-full h-full object-cover"})}),r.jsxs("div",{children:[r.jsx("p",{className:"font-semibold",children:e.name}),r.jsx("p",{className:"text-sm text-muted-foreground",children:e.title})]})]})]},e.key))})]})})}),r.jsx("section",{className:"py-16 md:py-20 bg-background",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsxs("div",{className:"max-w-6xl mx-auto space-y-10",children:[r.jsxs("div",{className:"text-center space-y-3",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold",children:"Choose Your Format"}),r.jsx("p",{className:"text-lg text-muted-foreground",children:"Read it. Listen to it. Highlight it. All bonuses apply to every format."})]}),r.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:ppe.map(e=>{const t=e.icon;return r.jsxs(G,{className:"p-6 flex flex-col text-center border-2 hover:border-primary transition-colors",children:[r.jsx(t,{className:"h-12 w-12 text-primary mx-auto mb-4"}),r.jsx("h3",{className:"text-2xl font-bold mb-1",children:e.name}),r.jsx("p",{className:"text-muted-foreground mb-4",children:e.tag}),r.jsx("p",{className:"text-sm text-muted-foreground mb-6",children:e.rating}),r.jsx(te,{asChild:!0,size:"lg",className:"mt-auto bg-[#FF9900] hover:bg-[#e88a00] text-black",children:r.jsxs("a",{href:e.href,target:"_blank",rel:"noopener noreferrer",children:[e.cta," ",r.jsx(Ue,{className:"ml-2"})]})})]},e.name)})}),r.jsx(G,{className:"p-6 bg-[#2E7D32]/5 border-2 border-2 border-[#2E7D32]/30 text-center",children:r.jsxs("p",{className:"text-lg",children:["ð ",r.jsx("strong",{children:"Reminder:"})," Every copy includes a resource link inside the book that unlocks $497 in free templates instantly."]})})]})})}),r.jsx("section",{className:"py-16 md:py-20 bg-section-light",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsxs("div",{className:"max-w-4xl mx-auto space-y-8",children:[r.jsxs("div",{className:"text-center space-y-3",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold",children:"What's in the $497 Template Library"}),r.jsx("p",{className:"text-lg text-muted-foreground",children:"The complete Implementation Template Library â yours free with any book purchase."})]}),r.jsxs(G,{className:"p-8",children:[r.jsx("ul",{className:"grid sm:grid-cols-2 gap-3",children:gpe.map(e=>r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(_e,{className:"h-5 w-5 text-primary flex-shrink-0 mt-1"}),r.jsx("span",{children:e})]},e))}),r.jsxs("div",{className:"mt-6 pt-6 border-t flex flex-col sm:flex-row items-center justify-between gap-4",children:[r.jsxs("div",{children:[r.jsx("p",{className:"text-sm text-muted-foreground",children:"Total Value"}),r.jsx("p",{className:"text-2xl font-bold",children:"$497 â Your cost: $0 with book purchase"})]}),r.jsx(te,{asChild:!0,className:"bg-[#FF9900] hover:bg-[#e88a00] text-black",children:r.jsxs("a",{href:wi,target:"_blank",rel:"noopener noreferrer",children:["Buy the Book ",r.jsx(Ue,{className:"ml-2"})]})})]})]})]})})}),r.jsx("section",{className:"py-16 md:py-20 bg-background",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsxs("div",{className:"max-w-5xl mx-auto space-y-10",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-center",children:"Your Journey from Book to Freedom"}),r.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:[{step:"Step 1",title:"Read the Book",body:"Understand the 5-component system and see how it applies to your specific bottleneck.",note:"3â5 hours (most founders finish in a weekend)"},{step:"Step 2",title:"Implement the Framework",body:"Use the bonus templates to install the system yourself, or book a call for implementation support.",note:"DIY or guided â your choice"},{step:"Step 3",title:"Build Your Operating System",body:"Move from bottleneck to architect. Get your team running 80%+ of decisions without you.",note:"First 'runs without me' week in 90 days"}].map(e=>r.jsxs(G,{className:"p-6 border-t-4 border-t-primary",children:[r.jsx("p",{className:"text-xs uppercase tracking-wide text-primary font-bold mb-2",children:e.step}),r.jsx("h3",{className:"text-xl font-bold mb-3",children:e.title}),r.jsx("p",{className:"text-muted-foreground mb-4",children:e.body}),r.jsx("p",{className:"text-sm italic",children:e.note})]},e.step))}),r.jsxs("div",{className:"text-center pt-4",children:[r.jsx("p",{className:"text-muted-foreground mb-4",children:"Most founders start with the book, then choose a path:"}),r.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 justify-center",children:[r.jsx(te,{asChild:!0,variant:"outline",children:r.jsx(ue,{to:"/essentials",children:"DIY Path â Essentials Course â"})}),r.jsx(te,{asChild:!0,variant:"outline",children:r.jsx(ue,{to:"/book-call",children:"Guided Path â Book a Call â"})}),r.jsx(te,{asChild:!0,variant:"outline",children:r.jsx(ue,{to:"/compare",children:"Compare All Programs â"})})]})]})]})})}),r.jsx("section",{className:"py-16 bg-primary text-primary-foreground",children:r.jsxs("div",{className:"container mx-auto px-6 max-w-6xl",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-center mb-12",children:"Join 500+ Founders Who've Installed Simple Operations"}),r.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-8 text-center",children:y
803pe.map(e=>{const t=e.icon;return r.jsxs("div",{children:[r.jsx(t,{className:"h-10 w-10 mx-auto mb-3 opacity-80"}),r.jsx("p",{className:"text-3xl md:text-4xl font-bold mb-1",children:e.value}),r.jsx("p",{className:"text-sm opacity-90",children:e.label})]},e.label)})})]})}),r.jsx("section",{className:"py-20 md:py-28 bg-gradient-to-br from-[#FF9900]/10 via-background to-primary/10",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsxs("div",{className:"max-w-3xl mx-auto text-center space-y-8",children:[r.jsx("h2",{className:"text-4xl md:text-5xl font-bold",children:"Read the Book. Get the Templates. Stop Being the Bottleneck."}),r.jsx("p",{className:"text-xl text-muted-foreground",children:"For under $20, get the same operating system that's created $480M+ in new revenue & profits for our founders."}),r.jsx("div",{className:"flex flex-col sm:flex-row gap-3 justify-center",children:r.jsx(te,{asChild:!0,size:"lg",className:"text-lg px-8 py-6 h-auto bg-[#FF9900] hover:bg-[#e88a00] text-black",children:r.jsxs("a",{href:wi,target:"_blank",rel:"noopener noreferrer",children:["Buy on Amazon ",r.jsx(Ue,{className:"ml-2"})]})})}),r.jsx("p",{className:"text-sm text-muted-foreground pt-4",children:"30-day Amazon return policy. $497 templates included with every purchase."})]})})})]}),r.jsx(ht,{})]}),zI=()=>{const e=document.getElementById("middle-order-form")||document.getElementById("hero-order-form")||document.getElementById("final-order-form");e==null||e.scrollIntoView({behavior:"smooth",block:"start"})},qm=({label:e="Claim Your Free Copy â $9.95 Shipping",className:t=""})=>r.jsxs("div",{className:`text-center ${t}`,children:[r.jsxs(te,{type:"button",size:"lg",onClick:zI,className:"w-full sm:w-auto text-base font-bold px-8 py-6 shadow-lg hover:shadow-xl transition-all",children:[e,r.jsx(df,{className:"w-4 h-4 ml-2"})]}),r.jsxs("p",{className:"text-xs text-muted-foreground mt-3 flex items-center justify-center gap-1",children:[r.jsx(dg,{className:"w-3 h-3"})," Secure checkout · 30-day money-back guarantee"]})]}),bpe=()=>r.jsx("div",{className:"fixed bottom-0 left-0 right-0 z-40 md:hidden bg-background/95 backdrop-blur border-t border-border p-3 shadow-[0_-4px_20px_rgba(0,0,0,0.08)]",children:r.jsx(te,{type:"button",onClick:zI,className:"w-full text-sm font-bold py-5",size:"lg",children:"Get My Free Book â $9.95 Shipping"})}),wpe=yj({firstName:gn().trim().min(1,"First name is required").max(60),lastName:gn().trim().min(1,"Last name is required").max(60),email:gn().trim().email("Enter a valid email").max(255),phone:gn().trim().min(7,"Enter a valid phone number").max(25,"Enter a valid phone number").regex(/^[+\d][\d\s().-]{5,}$/,"Enter a valid phone number")}),wv=({id:e})=>{const[t,n]=j.useState({firstName:"",lastName:"",email:"",phone:""}),[s,a]=j.useState({}),[i,o]=j.useState(!1),l=async c=>{c.preventDefault();const d=wpe.safeParse(t);if(!d.success){const u={};d.error.issues.forEach(h=>{const f=h.path[0];u[f]=h.message}),a(u);return}a({}),o(!0);try{const{data:u,error:h}=await ve.functions.invoke("create-stripe-checkout",{body:{paymentType:"one_pay",customerEmail:d.data.email,customerName:`${d.data.firstName} ${d.data.lastName}`,customerPhone:d.data.phone,customerFirstName:d.data.firstName,customerLastName:d.data.lastName,productIdentifier:"passenger-seat-book-shipping"}});if(h)throw h;if(u!=null&&u.url)window.location.href=u.url;else throw new Error("No checkout URL returned")}catch(u){console.error("Checkout error:",u),Pn({title:"Something went wrong",description:"We couldn't start checkout. Please try again or email [email protected].",variant:"destructive"}),o(!1)}};return r.jsx(G,{id:e,className:"shadow-xl border-primary/20 scroll-mt-24",children:r.jsxs(Ne,{className:"p-6 md:p-8",children:[r.jsxs("div",{className:"text-center mb-6",children:[r.jsx("div",{className:"inline-block bg-primary/10 text-primary px-3 py-1 rounded-full text-sm font-semibold mb-3",children:"FREE Book â Just Cover Shipping"}),r.jsx("h3",{className:"text-2xl md:text-3xl font-bold",children:"Claim Your Free Copy"}),r.jsx("p",{className:"text-muted-foreground mt-2",children:"Normally $27 â yours free. Just cover $9.95 US shipping & handling."})]}),r.jsxs("form",{onSubmit:l,className:"space-y-4",children:[r.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[r.jsxs("div",{children:[r.jsx(oe,{htmlFor:`${e}-first`,children:"First Name"}),r.jsx(je,{id:`${e}-first`,value:t.firstName,onChange:c=>n({...t,firstName:c.target.value}),autoComplete:"given-name",required:!0}),s.firstName&&r.jsx("p",{className:"text-xs text-destructive mt-1",children:s.firstName})]}),r.jsxs("div",{children:[r.jsx(oe,{htmlFor:`${e}-last`,children:"Last Name"}),r.jsx(je,{id:`${e}-last`,value:t.lastName,onChange:c=>n({...t,lastName:c.target.value}),autoComplete:"family-name",required:!0}),s.lastName&&r.jsx("p",{className:"text-xs text-destructive mt-1",children:s.lastName})]})]}),r.jsxs("div",{children:[r.jsx(oe,{htmlFor:`${e}-email`,children:"Email"}),r.jsx(je,{id:`${e}-email`,type:"email",value:t.email,onChange:c=>n({...t,email:c.target.value}),autoComplete:"email",required:!0}),s.email&&r.jsx("p",{className:"text-xs text-destructive mt-1",children:s.email})]}),r.jsxs("div",{children:[r.jsx(oe,{htmlFor:`${e}-phone`,children:"Phone"}),r.jsx(je,{id:`${e}-phone`,type:"tel",value:t.phone,onChange:c=>n({...t,phone:c.target.value}),autoComplete:"tel",placeholder:"(555) 555-5555",required:!0}),s.phone&&r.jsx("p",{className:"text-xs text-destructive mt-1",children:s.phone})]}),r.jsx(te,{type:"submit",size:"lg",className:"w-full text-base font-bold",disabled:i,children:i?r.jsxs(r.Fragment,{children:[r.jsx(wt,{className:"w-4 h-4 mr-2 animate-spin"}),"Starting checkoutâ¦"]}):"Claim Your Free Book â $9.95 Shipping"}),r.jsxs("p",{className:"text-xs text-center text-muted-foreground flex items-center justify-center gap-2 pt-2",children:[r.jsx(dg,{className:"w-3 h-3"})," Secure checkout on Stripe. Shipping address collected on the next screen."]}),r.jsx("p",{className:"text-xs text-center text-muted-foreground",children:"US shipping only. 30-day money-back guarantee."})]})]})})},jpe=["Everything comes back to you","Your team asks the same questions repeatedly","Projects stall waiting for your input",'"Do you have a minute?" interrupts your entire day',"Taking a vacation feels risky"],Npe=[{h:"Hiring more people",p:"Created more communication overhead, not less dependence."},{h:"New project management software",p:"Added complexity. Team still doesn't know
803what to do."},{h:'"Delegating more"',p:"But they still come back for every decision."},{h:"SOPs nobody follows",p:"Dead Google Docs gathering digital dust."},{h:"Leadership books that sound great",p:"But don't change Tuesday morning."}],kpe=["I feel like I built myself a job with employees.","Everybody is busy, yet I still can't tell what's actually moving the business forward.","We have meetings, but we don't make decisions.","I'm tired of being the person who remembers how everything is supposed to work.","The team is good. The structure is not.","I don't want more dashboards. I want fewer surprises.","If I take a week off, things should not fall apart."],_pe=[{n:"1",h:"Clarity in Roles & Responsibilities",p:"Every team member knows exactly what they own, how success is measured, and how their work supports the vision."},{n:"2",h:"Rhythms That Drive Results",p:"Streamlined meeting cadences (Daily Huddles, Weekly Check-Ins, Monthly & Quarterly Planning) keep communication clear and progress measurable."},{n:"3",h:"Metrics That Matter",p:"The right numbers in front of the right people â enabling faster, data-driven decisions and eliminating blind spots."},{n:"4",h:"Projects with Predictable Outcomes",p:"Quarterly targets translate into clear, owner-assigned projects â ensuring initiatives move from idea to DONE without stalls."},{n:"5",h:"A Culture of Accountability & Continuous Improvement",p:"A company-wide habit of updating metrics, refining processes, and aligning on mission â so growth is sustainable and scalable."}],Spe=[{label:"PART ONE",h:"Lead with Clarity",bullets:["How to define roles so confusion disappears",'The 4R Tool that eliminates "Who owns this?"',"Time Studies that reveal where you're actually stuck","Why your best people are waiting for structure, not permission"]},{label:"PART TWO",h:"Build Momentum with Rhythm",bullets:["Targeted Interactions (the meetings that actually matter)","Daily Huddles that cut interruptions by 70%+","Why cadence is king (and how to install it in 30 days)","The Five Levels of TIs that keep everyone aligned"]},{label:"PART THREE",h:"Measure What Matters",bullets:["Financial Review TIs that prevent cash flow surprises","CEO Metrics Dashboard (60-second health check)","The numbers that drive confident decisions without drowning in data"]},{label:"PART FOUR",h:"Deliver Predictable Outcomes",bullets:["The Quantum Flow Planner (daily clarity tool your team will actually use)","OTA Framework (Outcome, Transparency, Accountability)","How to turn quarterly goals into completed projects","The Waterfall method for visible progress"]},{label:"PART FIVE",h:"Create a Culture of Accountability",bullets:["Core Values that actually guide decisions (not poster slogans)","Making systems stick beyond initial excitement","Overcoming resistance from team and yourself","Scaling beyond the founder without losing your soul"]}],Cpe=[{q:"This program helped me step back from the day-to-day and finally lead.",a:"Sarah M., Consulting Firm Owner"},{q:"We went from chaos to a team of 100+ and $30M/year in revenue. This wasn't just life-changing. It was life-saving.",a:"Daniel K., Agency Founder"},{q:"I finally have my life and sanity back.",a:"Wallace R., Professional Services"},{q:"We're doing huddles, simplified our org chart, and everyone is finally rowing in the same direction.",a:"Michele T., Expert-Led Business"},{q:"Looking at the cold, hard facts proved things were better than we thought. We're 150% more profitable this year.",a:"Courtney L., Operations-Heavy Business"},{q:"My wife had our baby, I took the whole week off, and when I came back â it was like I'd never left.",a:"Matt S., Founder"},{q:"We 3X'd our run rate in under 6 months.",a:"Brad T., Growth-Stage Company"}],Epe=[{q:"Is this really free?",a:"Yes. The book is free. You just cover $9.95 for shipping and handling (US domestic)."},{q:"Why are you giving this away?",a:"Because I know that once you read it and see the system works, a percentage of readers will want implementation support. That's how we help founders scale."},{q:"What if I'm not in the $500Kâ$3M+ range?",a:"The principles work at any stage, but the full Simple Operations implementation is designed for founders doing $500Kâ$3M+. If you're earlier stage, you can still apply the frameworks in the book."},{q:"How long does shipping take?",a:"Physical books ship within 2 business days. Delivery is typically 5â7 days. You get instant digital access regardless."},{q:"What's the catch?",a:"No catch. After you get the book, we'll offer you a Breakthrough Clarity Call. It's completely optional. If you just want the book, that's fine too."},{q:"What if I've tried other operating systems like EOS?",a:"EOS is unproven for sub-$10M businesses, requires a minimum of $150,000 to install, and takes 2+ years of a bureaucratic rollout. Simple Operations is specifically designed for expert-led businesses and works better for founders who found EOS too heavy, too slow, and too corporate for their stage."}],Tpe=lj.url,$pe=()=>r.jsxs("div",{className:"min-h-screen bg-background pb-24 md:pb-0",children:[r.jsx(vr,{title:"Passenger Seat Leadership â Free Book (Just Cover Shipping)",description:"Get the proven Simple Operations System used by 500+ founders to move into the passenger seat while their team drives growth. Free book â just cover $9.95 shipping.",canonical:"https://simpleoperations.com/passenger-seat-book",robots:"noindex, nofollow",preferProps:!0}),r.jsx("section",{className:"pt-16 pb-12 px-4 bg-gradient-to-b from-primary/5 to-background",children:r.jsxs("div",{className:"max-w-6xl mx-auto grid lg:grid-cols-2 gap-10 items-center",children:[r.jsxs("div",{children:[r.jsx("div",{className:"inline-block bg-primary/10 text-primary px-3 py-1 rounded-full text-sm font-semibold mb-4",children:"FREE Book (Just Cover $9.95 Shipping)"}),r.jsx("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-bold leading-tight mb-6",children:"The Bu
803siness That Doesn't Need Your Fingerprints on Every Decision"}),r.jsxs("p",{className:"text-xl text-muted-foreground mb-6",children:["Get the proven system to move into the ",r.jsx("strong",{children:"Passenger Seat"})," while your team drives growth."]}),r.jsxs("p",{className:"text-lg text-foreground/80 mb-8",children:["The Simple Operations System used by ",r.jsx("strong",{children:"500+ founders ($500Kâ$30M)"})," to reclaim their time without sacrificing quality."]}),r.jsxs("div",{className:"flex flex-wrap gap-6 text-sm text-muted-foreground",children:[r.jsxs("span",{className:"flex items-center gap-2",children:[r.jsx(ma,{className:"w-4 h-4 text-primary"})," Physical book shipped"]}),r.jsxs("span",{className:"flex items-center gap-2",children:[r.jsx(M2,{className:"w-4 h-4 text-primary"})," Instant digital access"]}),r.jsxs("span",{className:"flex items-center gap-2",children:[r.jsx(wb,{className:"w-4 h-4 text-primary"})," Free implementation resources"]})]})]}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 items-center",children:[r.jsx("div",{className:"flex justify-center",children:r.jsx("img",{src:Tpe,alt:"Passenger Seat Leadership by Gabe Arnold â book cover",className:"rounded-lg shadow-2xl max-w-[260px] w-full h-auto",loading:"eager"})}),r.jsx(wv,{id:"hero-order-form"})]})]})}),r.jsx("section",{className:"py-16 px-4",children:r.jsxs("div",{className:"max-w-4xl mx-auto",children:[r.jsx("p",{className:"text-lg text-muted-foreground mb-6",children:"If you're reading this, you've probably built something impressive:"}),r.jsx("div",{className:"grid sm:grid-cols-2 gap-3 mb-8",children:["Real revenue ($500Kâ$10M+)","A growing team (5â50+ people)","Demand for what you offer","Clients who trust you"].map(e=>r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx($e,{className:"w-5 h-5 text-primary flex-shrink-0 mt-0.5"}),r.jsx("span",{children:e})]},e))}),r.jsx("p",{className:"text-lg font-semibold mb-4",children:"But here's what's also true:"}),r.jsx("div",{className:"space-y-3 mb-8",children:jpe.map(e=>r.jsxs("div",{className:"flex items-start gap-3 p-4 bg-section-light rounded-lg",children:[r.jsx(Ji,{className:"w-5 h-5 text-destructive flex-shrink-0 mt-0.5"}),r.jsx("span",{children:e})]},e))}),r.jsx("p",{className:"text-xl",children:"Sound familiar?"}),r.jsxs("p",{className:"text-2xl md:text-3xl font-bold mt-4",children:["You're not alone. This is the ",r.jsx("span",{className:"text-primary",children:"founder bottleneck"})," â and it's killing your growth and your life."]}),r.jsx(qm,{className:"mt-10",label:"Yes â Send Me the Book"})]})}),r.jsx("section",{className:"py-16 px-4 bg-section-light",children:r.jsxs("div",{className:"max-w-5xl mx-auto",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4 text-center",children:"You've Probably Already Triedâ¦"}),r.jsx("p",{className:"text-center text-muted-foreground mb-10",children:"â¦and none of it worked. Here's why."}),r.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6 mb-10",children:Npe.map(e=>r.jsx(G,{className:"h-full",children:r.jsxs(Ne,{className:"p-6 flex flex-col h-full",children:[r.jsxs("h3",{className:"font-bold text-lg mb-2",children:["â ",e.h]}),r.jsx("p",{className:"text-muted-foreground mt-auto",children:e.p})]})},e.h))}),r.jsxs("div",{className:"text-center max-w-2xl mx-auto space-y-2 text-lg",children:[r.jsxs("p",{children:["The problem isn't your ",r.jsx("strong",{children:"PEOPLE"}),"."]}),r.jsxs("p",{children:["The problem isn't your ",r.jsx("strong",{children:"TOOLS"}),"."]}),r.jsx("p",{className:"text-2xl font-bold text-primary",children:"The problem is your OPERATING MODEL."})]}),r.jsx(qm,{className:"mt-10",label:"Show Me the New Operating Model"})]})}),r.jsx("section",{className:"py-16 px-4",children:r.jsxs("div",{className:"max-w-4xl mx-auto",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-8 text-center",children:"Here's What Founders Tell Us"}),r.jsx("div",{className:"grid md:grid-cols-2 gap-4",children:kpe.map(e=>r.jsxs("div",{className:"p-5 bg-section-light rounded-lg italic text-foreground
803/90 border-l-4 border-primary",children:['"',e,'"']},e))}),r.jsxs("p",{className:"text-center text-xl mt-8 font-semibold",children:["If you've thought or said ",r.jsx("em",{children:"any"})," of these⦠you need a different operating system."]})]})}),r.jsx("section",{className:"py-16 px-4 bg-section-light",children:r.jsxs("div",{className:"max-w-5xl mx-auto",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4 text-center",children:"The Simple Operations System"}),r.jsx("p",{className:"text-center text-muted-foreground max-w-3xl mx-auto mb-10",children:"The battle-tested playbook from 500+ implementations across expert-led businesses, agencies, consulting firms, and professional services companies."}),r.jsx("div",{className:"grid md:grid-cols-2 gap-6",children:_pe.map(e=>r.jsx(G,{className:"h-full",children:r.jsx(Ne,{className:"p-6 flex flex-col h-full",children:r.jsxs("div",{className:"flex items-start gap-4",children:[r.jsx("div",{className:"w-10 h-10 rounded-full bg-primary text-primary-foreground font-bold flex items-center justify-center flex-shrink-0",children:e.n}),r.jsxs("div",{children:[r.jsx("h3",{className:"font-bold text-lg mb-2",children:e.h}),r.jsx("p",{className:"text-muted-foreground",children:e.p})]})]})})},e.n))})]})}),r.jsx("section",{className:"py-16 px-4",children:r.jsxs("div",{className:"max-w-6xl mx-auto",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4 text-center",children:"Inside Passenger Seat Leadership"}),r.jsx("p",{className:"text-center text-muted-foreground mb-10",children:"Five parts. One clear path to the passenger seat."}),r.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:Spe.map(e=>r.jsx(G,{className:"h-full",children:r.jsxs(Ne,{className:"p-6 flex flex-col h-full",children:[r.jsx("div",{className:"text-xs font-bold text-primary tracking-wider mb-2",children:e.label}),r.jsx("h3",{className:"font-bold text-xl mb-4",children:e.h}),r.jsx("ul",{className:"space-y-2 text-sm text-muted-foreground mt-auto",children:e.bullets.map(t=>r.jsxs("li",{className:"flex items-start gap-2",children:[r.jsx($e,{className:"w-4 h-4 text-primary flex-shrink-0 mt-0.5"}),r.jsx("span",{children:t})]},t))})]})},e.label))}),r.jsx(qm,{className:"mt-12",label:"Get the Book & Start This Week"})]})}),r.jsx("section",{className:"py-16 px-4 bg-section-light",children:r.jsxs("div",{className:"max-w-6xl mx-auto",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-10 text-center",children:"Founders Who've Walked This Path"}),r.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:Cpe.map((e,t)=>r.jsx(G,{className:"h-full",children:r.jsxs(Ne,{className:"p-6 flex flex-col h-full",children:[r.jsxs("p",{className:"italic text-foreground/90 mb-4",children:['"',e.q,'"']}),r.jsxs("p",{className:"text-sm font-semibold text-primary mt-auto",children:["â ",e.a]})]})},t))}),r.jsx(qm,{className:"mt-12",label:"Join 500+ Founders â Claim Your Copy"})]})}),r.jsxs("section",{className:"py-16 px-4",children:[r.jsxs("div",{className:"max-w-3xl mx-auto text-center mb-8",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"Get Your Free Copy Today"}),r.jsx("p",{className:"text-lg text-muted-foreground",children:"Normally $27, yours FREE. Just cover $9.95 shipping & handling."}),r.jsx("ul",{className:"text-left max-w-md mx-auto mt-6 space-y-2",children:["Get instant digital access (read today)","Physical book ships within 2 business days","Access free resources at simpleoperations.com/book","Optional Breakthrough Clarity Call after checkout"].map(e=>r.jsxs("li",{className:"flex items-start gap-2",children:[r.jsx($e,{className:"w-5 h-5 text-primary flex-shrink-0 mt-0.5"}),r.jsx("span",{children:e})]},e))})]}),r.jsx("div",{className:"max-w-xl mx-auto",children:r.jsx(wv,{id:"middle-order-form"})})]}),r.jsx("section",{className:"py-16 px-4 bg-section-light",children:r.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[r.jsx("div",{className:"w-16 h-16 rounded-full bg-primary/10 flex items-center justify-center mx-auto mb-4",children:r.jsx(Bn,{className:"w-8 h-8 text-primary"})}),r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"30-Day Money-Back Guarantee"}),r.jsx("p",{className:"text-lg text-muted-foreground mb-4",children:"Read the book. Try the frameworks. If you're not satisfied within 30 days, email us for a full refund of your shipping cost. No questions asked, no hoops to jump through."}),r.jsx("p",{className:"text-muted-foreground",children:"Keep the book anyway. We're here to help you move to the passenger seat."})]})}),r.jsx("section",{className:"py-16 px-4",children:r.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[r.jsx("h2",{className:"text-2xl md:text-3xl font-bold mb-4",children:"Every Day You Wait Is Another Week Stuck in the Driver's Seat"}),r.jsx("p",{className:"text-lg text-muted-foreground mb-6",children:"Our team personally supports 25 founders per month who want implementation help after reading the book. When we're full each month, new readers wait until the following month for a Breakthrough Clarity Call."}),r.jsx("p",{className:"text-lg",children:"Don't spend another quarter as the bottleneck. Start today."})]})}),r.jsx("section",{className:"py-16 md:py-20 px-4 bg-background",children:r.jsxs("div",{className:"max-w-5xl mx-auto grid md:grid-cols-2 gap-10 md:gap-12 items-center",children:[r.jsx("div",{className:"rounded-2xl overflow-hidden shadow-xl",children:r.jsx("img",{src:P6,alt:"Gabe Arnold, CEO of Simple Operations and author of Passenger Seat Leadership",className:"w-full h-full object-cover aspect-square",loading:"lazy"})}),r.jsxs("div",{className:"space-y-5",children:[r.jsx("div",{className:"inline-block bg-primary/10 text-primary px-3 py-1 rounded-full text-sm font-semibold",children:"About the Author"}),r.jsx("h2",{className:"text-3xl md:text-4xl font-bold",children:"Meet Gabe Arnold"}),r.jsx("p",{className:"text-lg text-muted-foreground",children:"Gabe Arnold is the CEO of Simple Operations and has spent 30+ years building businesses â including multi-seven figure companies, bankruptcies that taught invaluable lessons, and the hard-won experience of scaling from chaos to freedom."}),r.jsxs("ul",{className:"space-y-2 text-muted-foreground",children:[r.jsxs("li",{className:"flex items-start gap-2",children:[r.jsx(_e,{className:"h-5 w-5 text-primary flex-shrink-0 mt-1"}),r.jsx("span",{children:"Started his first company at 18 and built multi-seven figure businesses"})]}),r.jsxs("li",{className:"flex items-start gap-2",children:[r.jsx(_e,{className:"h-5 w-5 text-primary flex-shrink-0 mt-1"}),r.jsx("span",{children:"Founded Business Marketing Engine and scaled it past $10M"})]}),r.jsxs("li",{className:"flex items-start gap-2",children:[r.jsx(_e,{className:"h-5 w-5 text-primary flex-shrink-0 mt-1"}),r.jsx("span",{children:"Sold $40M+ in products and services across 20+ years"})]}),r.jsxs("li",{className:"flex items-start gap-2",children:[r.jsx(_e,{className:"h-5 w-5 text-primary flex-shrink-0 mt-1"}),r.jsx("span",{children:"Coached 1,000+ entrepreneurs through scaling bottlenecks"})]}),r.jsxs("li",{className:"flex items-start gap-2",children:[r.jsx(_e,{className:"h-5 w-5 text-primary flex-shrink-0 mt-1"}),r.jsx("span",{children:"Helped 500+ founders install the Simple Operations System"})]})]}),r.jsxs(G,{className:"p-5 bg-primary/5 border-l-4 border-primary",children:[r.jsx("p",{className:"font-semibold mb-1",children:"The turning point:"}),r.jsx("p",{className:"text-muted-foreground",children:"After years of 70-hour weeks running multi-seven figure businesses, Gabe developed the Simple Operations System â the same framework in this book that helps founders move into the Passenger Seat while their team drives growth."})]})]})]})}),r.jsx("section",{className:"py-16 px-4 bg-section-light",children:r.jsxs("div",{className:"max-w-3xl mx-auto",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-8 text-center",children:"Frequently Asked Questions"}),r.jsx(xo,{type:"single",collapsible:!0,className:"space-y-3",children:Epe.map((e,t)=>r.jsxs(Za,{value:`faq-${t}`,className:"bg-background rounded-lg border px-4",children:[r.jsx(Xa,{className:"text-left font-semibold",children:e.q}),r.jsx(Ja,{className:"text-muted-foreground",children:e.a})]},t))})]})}),r.jsxs("section",{className:"py-20 px-4 bg-gradient-to-b from-background to-primary/5",children:[r.jsxs("div",{className:"max-w-3xl mx-auto text-center mb-8",children:[r.jsx("h2",{className:"text-3xl md:text-5xl font-bold mb-4",children:"Your Business Shouldn't Need Your Fingerprints on Every Decision"}),r.jsx("p",{className:"text-xl text-muted-foreground",children:"Get the proven system that helps founders move into the Passenger Seat â without sacrificing quality, control, or culture."})]}),r.jsx("div",{className:"max-w-xl mx-auto",children:r.jsx(wv,{id:"final-order-form"})}),r.jsxs("div",{className:"max-w-3xl mx-auto text-center mt-8 flex flex-wrap justify-center gap-6 text-sm text-muted-foreground",children:[r.jsxs("span",{className:"flex items-center gap-2",children:[r.jsx(ma,{className:"w-4 h-4"})," Ships within 2 days"]}),r.jsxs("span",{className:"flex items-center gap-2",children:[r.jsx(M2,{className:"w-4 h-4"})," Instant digital access"]}),r.jsxs("span",{className:"flex items-center gap-2",children:[r.jsx(wb,{className:"w-4 h-4"})," Free resources included"]})]})]}),r.jsx(ht,{}),r.jsx(bpe,{})]}),Ope="https://api.bmecrm.com/widget/bookings/passenger-seat-clarity-call",jv=e=>{const t=document.getElementById(e);t==null||t.scrollIntoView({behavior:"smooth",block:"start"})},Ppe=()=>{const e=j.useRef(null),[t,n]=j.useState(!1),{getTestimonialData:s}=Nl(),a=s("essentials-testimonial-rachel"),{toast:i}=Lt(),[o,l]=j.useState(!1);j.useEffect(()=>{localStorage.removeItem("applicationForm")},[]);const c=u=>{var h;u.preventDefault(),(h=e.current)==null||h.scrollIntoView({behavior:"smooth",block:"start"})},d=async()=>
803{l(!0);try{const u=new URLSearchParams(window.location.search),{data:h,error:f}=await ve.functions.invoke("create-stripe-checkout",{body:{paymentType:"one_pay",customerEmail:u.get("email")||"",productIdentifier:"essentials-course"}});if(f)throw f;if(h!=null&&h.url)window.location.href=h.url;else throw new Error("No checkout URL returned")}catch(u){console.error("Essentials checkout error:",u),i({title:"Error",description:u.message||"Failed to start checkout",variant:"destructive"}),l(!1)}};return r.jsxs("div",{className:"min-h-screen bg-background pb-24 md:pb-0",children:[r.jsx(vr,{title:"Thanks â Your Passenger Seat Leadership Book Is On Its Way",description:"Your order is confirmed. Book a free Breakthrough Clarity Call to map your Simple Operations implementation.",canonical:"https://simpleoperations.com/passenger-seat-book/thank-you",robots:"noindex, nofollow",preferProps:!0}),r.jsx("div",{className:"fixed bottom-0 left-0 right-0 z-40 md:hidden bg-background/95 backdrop-blur border-t border-border p-3 shadow-[0_-4px_20px_rgba(0,0,0,0.08)]",children:r.jsxs(te,{type:"button",onClick:()=>jv("essentials-upsell"),className:"w-full text-sm font-bold py-5",size:"lg",variant:"secondary","data-cta":"sticky-essentials",children:["Start Installing This Week â $277",r.jsx(df,{className:"w-4 h-4 ml-2"})]})}),r.jsxs("div",{className:"pt-16",children:[r.jsx("section",{className:"py-10 px-4",children:r.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[r.jsxs("div",{className:"inline-flex items-center gap-3 bg-green-50 border border-green-200 text-green-800 rounded-full px-4 py-2 mb-5",children:[r.jsx($e,{className:"w-5 h-5"}),r.jsx("span",{className:"text-sm font-semibold",children:"Order confirmed â your book is on the way"})]}),r.jsx("h1",{className:"text-3xl md:text-4xl font-bold mb-3",children:"Welcome to the Passenger Seat!"}),r.jsxs("p",{className:"text-base md:text-lg text-muted-foreground max-w-2xl mx-auto",children:["Your digital copy link and shipping details are on the way to your inbox. While you wait â here's how to actually ",r.jsx("em",{children:"install"})," what you're about to read."]}),r.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-x-6 gap-y-2 mt-6 text-sm text-muted-foreground",children:[r.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[r.jsx(Wr,{className:"w-4 h-4 text-primary"})," 500+ founders installed"]}),r.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[r.jsx(Bn,{className:"w-4 h-4 text-primary"})," 30-day money-back guarantee"]}),r.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[r.jsx(dg,{className:"w-4 h-4 text-primary"})," Secure checkout"]})]})]})}),r.jsx("section",{className:"pb-4 px-4",children:r.jsxs("div",{className:"max-w-4xl mx-auto",children:[r.jsx("p",{className:"text-center text-sm font-semibold uppercase tracking-wider text-muted-foreground mb-4",children:"Which path is right for you?"}),r.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[r.jsx("button",{type:"button",onClick:()=>jv("essentials-upsell"),className:"group text-left border-2 border-secondary/30 hover:border-secondary bg-card rounded-lg p-5 transition-all hover:shadow-lg",children:r.jsxs("div",{className:"flex items-start justify-between gap-3",children:[r.jsxs("div",{children:[r.jsx("p",{className:"text-xs font-bold text-secondary uppercase tracking-wide mb-1",children:"Option 1 · DIY"}),r.jsx("p",{className:"font-bold text-lg",children:"Install it yourself"}),r.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Self-paced course · $277 · Start this week"})]}),r.jsx(df,{className:"w-5 h-5 text-secondary flex-shrink-0 mt-1 group-hover:translate-y-1 transition-transform"})]})}),r.jsx("button",{type:"button",onClick:()=>jv("clarity-call"),className:"group text-left border-2 border-primary/30 hover:border-primary bg-card rounded-lg p-5 transition-all hover:shadow-lg",children:r.jsxs("div",{className:"flex items-start justify-between gap-3",children:[r.jsxs("div",{children:[r.jsx("p",{className:"text-xs font-bold text-primary uppercase tracking-wide mb-1",children:"Option 2 · With us"}),r.jsx("p",{className:"font-bold text-lg",children:"Get help installing it"}),r.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Free 30-min Clarity Call · Personalized roadmap"})]}),r.jsx(df,{className:"w-5 h-5 text-primary flex-shrink-0 mt-1 group-hover:translate-y-1 transition-transform"})]})})]})]})}),r.jsx("section",{id:"essentials-upsell",className:"py-14 px-4 bg-section-light scroll-mt-24",children:r.jsxs("div",{className:"max-w-3xl mx-auto",children:[r.jsxs("div",{className:"text-center mb-8",children:[r.jsx("div",{className:"inline-block bg-secondary/10 text-secondary px-3 py-1 rounded-full text-sm font-semibold mb-3",children:"OPTION 1
803· START INSTALLING THIS WEEK"}),r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"Don't Just Read the Book â Install the System"}),r.jsxs("p",{className:"text-lg text-muted-foreground",children:["The ",r.jsx("strong",{children:"Simple Operations Essentials Course"})," is our self-paced training course that walks you through installing the exact frameworks from the book â at your own pace, on your own timeline."]})]}),r.jsx(G,{className:"border-secondary/40 shadow-xl",children:r.jsxs(Ne,{className:"p-6 md:p-8",children:[r.jsx("div",{className:"flex items-center justify-center mb-4",children:r.jsx(j7,{className:"w-12 h-12 text-secondary"})}),r.jsx("h3",{className:"text-2xl font-bold mb-2 text-center",children:"Simple Operations Essentials Course"}),r.jsx("p",{className:"text-center text-muted-foreground mb-6",children:"The same frameworks we use with Scale Method clients â as a DIY course."}),r.jsx("p",{className:"text-sm font-semibold text-secondary text-center mb-4",children:"By the end of this course, you'll be able to:"}),r.jsx("div",{className:"grid sm:grid-cols-2 gap-4 mb-8",children:["Run your first Weekly Sync by the end of week 1","Build a Scorecard that surfaces problems before they blow up","Delegate confidently using the Four Levels of Delegation","Stop being the bottleneck on 3â5 recurring decisions","Install SOPs your team actually follows","Free up 5â10 hours per week within 60 days"].map(u=>r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx($e,{className:"w-5 h-5 text-secondary flex-shrink-0 mt-0.5"}),r.jsx("span",{className:"text-sm",children:u})]},u))}),(a==null?void 0:a.quote)&&r.jsxs("div",{className:"bg-card border border-border rounded-lg p-5 mb-6",children:[r.jsxs("p",{className:"text-sm italic mb-3",children:['"',a.quote,'"']}),r.jsxs("div",{className:"flex items-center gap-3",children:[a.imageUrl&&r.jsx("img",{src:a.imageUrl,alt:a.name,className:"w-10 h-10 rounded-full object-cover"}),r.jsxs("div",{children:[r.jsx("p",{className:"text-sm font-semibold",children:a.name}),a.title&&r.jsx("p",{className:"text-xs text-muted-foreground",children:a.title})]})]})]}),r.jsxs("div",{className:"text-center bg-secondary/5 rounded-lg p-6 mb-4",children:[r.jsx("p",{className:"text-sm text-muted-foreground",children:"One-time investment"}),r.jsx("p",{className:"text-4xl font-bold text-secondary",children:"$277"}),r.jsx("p",{className:"text-xs text-muted-foreground mt-2",children:"vs. $7,200 Clarity Method · vs. $33,000 Scale Method"}),r.jsx("p",{className:"text-sm text-muted-foreground mt-2",children:"Payment plans available · 30-day money-back guarantee"})]}),r.jsx(te,{type:"button",onClick:d,disabled:o,size:"lg",variant:"secondary",className:"w-full text-base font-bold","data-cta":"essentials-upsell",children:o?r.jsxs(r.Fragment,{children:[r.jsx(wt,{className:"w-4 h-4 mr-2 animate-spin"}),"Redirecting to checkout..."]}):r.jsxs(r.Fragment,{children:["Enroll Now â Checkout with Stripe",r.jsx(Ue,{className:"w-4 h-4 ml-2"})]})}),r.jsx("p",{className:"text-xs text-center text-muted-foreground mt-4 italic",children:"Prefer personalized help? See the free Clarity Call offer below."})]})})]})}),r.jsx("section",{id:"clarity-call",className:"py-14 px-4 scroll-mt-24",children:r.jsxs("div",{className:"max-w-3xl mx-auto",children:[r.jsxs("div",{className:"text-center mb-8",children:[r.jsx("div",{className:"inline-block bg-primary/10 text-primary px-3 py-1 rounded-full text-sm font-semibold mb-3",children:"OPTION 2 · WANT PERSONALIZED HELP?"}),r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"Get a Custom Implementation Roadmap in 30 Minutes"}),r.jsx("p",{className:"text-lg text-muted-foreground",children:"Most founders read the book, love the ideas, then hit three roadblocks:"}),r.jsxs("ul",{className:"max-w-md mx-auto text-left mt-4 space-y-2",children:[r.jsxs("li",{className:"flex items-start gap-2",children:[r.jsx("span",{className:"text-primary font-bold",children:"1."})," Not sure where to start"]}),r.jsxs("li",{className:"flex items-start gap-2",children:[r.jsx("span",{className:"text-primary font-bold",children:"2."}
803)," Don't know which bottleneck to fix first"]}),r.jsxs("li",{className:"flex items-start gap-2",children:[r.jsx("span",{className:"text-primary font-bold",children:"3."})," Lack accountability to follow through"]})]}),r.jsx("p",{className:"text-lg font-semibold mt-6",children:"We can solve all three on one call."})]}),r.jsx(G,{className:"border-primary/40 shadow-xl",children:r.jsxs(Ne,{className:"p-6 md:p-8",children:[r.jsx("h3",{className:"text-2xl font-bold mb-2 text-center",children:"Book Your Free Breakthrough Clarity Call"}),r.jsx("p",{className:"text-center text-muted-foreground mb-6",children:"On this call, you'll get:"}),r.jsx("div",{className:"grid sm:grid-cols-2 gap-4 mb-8",children:[{h:"Bottleneck Assessment",p:"We'll identify THE constraint choking your growth right now (it's not always what you think)."},{h:"Custom 90-Day Implementation Roadmap",p:"You'll leave with a clear, sequenced plan: what to install first, second, third â customized to YOUR business."},{h:"Simple Operations System Audit",p:"We'll review where you are vs. where you need to be across the 5 Foundational Principles."},{h:"Early Access to Membership Waitlist",p:"If you decide you want ongoing support, you'll get first priority when spots open."}].map(u=>r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx($e,{className:"w-5 h-5 text-primary flex-shrink-0 mt-0.5"}),r.jsxs("div",{children:[r.jsx("p",{className:"font-semibold",children:u.h}),r.jsx("p",{className:"text-sm text-muted-foreground",children:u.p})]})]},u.h))}),r.jsxs("div",{className:"text-center bg-primary/5 rounded-lg p-6 mb-6",children:[r.jsx("p",{className:"text-muted-foreground line-through text-sm",children:"Worth $497"}),r.jsx("p",{className:"text-3xl font-bold text-primary",children:"Your price today: No Charge"}),r.jsx("p",{className:"text-sm text-muted-foreground mt-2",children:"Booked calls typically fill 2â3 weeks out â grab a time now while your notes from the book are fresh."})]}),r.jsx(te,{asChild:!0,size:"lg",className:"w-full text-base font-bold","data-cta":"clarity-call",children:r.jsxs("a",{href:Ope,target:"_blank",rel:"noopener noreferrer",children:[r.jsx(gr,{className:"w-4 h-4 mr-2"}),"Book Your Call Now",r.jsx(Cr,{className:"w-4 h-4 ml-2"})]})})]})})]})}),r.jsx("section",{className:"py-10 px-4 bg-section-light",children:r.jsx("div",{className:"max-w-3xl mx-auto",children:r.jsxs(vx,{open:t,onOpenChange:n,children:[r.jsxs(bx,{className:"w-full flex items-center justify-between bg-card border border-border rounded-lg p-5 hover:bg-muted/50 transition-colors",children:[r.jsx("span",{className:"font-semibold text-left",children:"Order details & what to expect in your inbox"}),r.jsx(Ka,{className:`w-5 h-5 text-muted-foreground transition-transform ${t?"rotate-180":""}`})]}),r.jsxs(wx,{className:"mt-4",children:[r.jsx(rm,{}),r.jsx(G,{className:"text-left mt-4",children:r.jsxs(Ne,{className:"p-6 md:p-8",children:[r.jsx("h3",{className:"text-lg font-bold mb-4",children:"Check your email for:"}),r.jsx("ul",{className:"space-y-3",children:["Order confirmation (check spam if you don't see it)","Digital copy access link (read while you wait for the physical book)","Shipping tracking (within 24 hours)","Free implementation resources from simpleoperations.com/book"].map(u=>r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx($e,{className:"w-5 h-5 text-primary flex-shrink-0 mt-0.5"}),r.jsx("span",{className:"text-sm",children:u})]},u))}),r.jsxs("p",{className:"text-sm text-muted-foreground mt-6",children:["Your physical book will arrive in ",r.jsx("strong",{children:"5â7 business days"}),". You can start reading TODAY with your digital access."]})]})})]})]})})}),r.jsx("section",{id:"final-confirmation",ref:e,className:"py-14 px-4 scroll-mt-24",children:r.jsxs("div",{className:"max-w-2xl mx-auto text-center",children:[r.jsx("div",{className:"w-16 h-16 rounded-full bg-primary/10 flex items-center justify-center mx-auto mb-4",children:r.jsx(Bn,{className:"w-8 h-8 text-primary"})}),r.jsx("h2",{className:"text-2xl md:text-3xl font-bold mb-4",children:"You're All Set"}),r.jsx("p",{className:"text-muted-foreground mb-4",children:"Watch your inbox for the digital copy and shipping details. Your physical book will arrive in 5â7 business days."}),r.jsxs("p",{className:"text-sm text-muted-foreground mb-6",children:["Questions? Email"," ",r.jsx("a",{href:"mailto:[email protected]",className:"text-primary hover:underline",children:"[email protected]"}),"."]}),r.jsx("a",{href:"#final-confirmation",onClick:c,className:"text-xs text-muted-foreground hover:text-foreground underline",children:"No thanks, I just want the book"})]})})]}),r.jsx(ht,{})]})},Ape=()=>{const[e,t]=j.useState([]),[n,s]=j.useState(!0);j.useEffect(()=>{a()},[]);const a=async()=>{try{const{data:o,error:l}=await ve.from("team_members").select("*").eq("is_active",!0).order("sort_order",{ascending:!0}).order("created_at",{ascending:!0});if(l)throw l;t(o||[])}catch(o){console.error("Error fetching team members:",o)}finally{s(!1)}},i=o=>o.split(" ").map(l=>l.charAt(0)).join("").toUpperCase().slice(0,2);return r.jsx(r.Fragment,{children:r.jsxs("div",{className:"min-h-screen flex flex-col",children:[r.jsx(_t,{}),r.jsx("main",{className:"flex-1 pt-20",children:r.jsxs("div",{className:"container mx-auto px-6 py-12",children:[r.jsxs("div",{className:"text-center mb-16",children:[r.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-6",children:"Meet Our Team"}),r.jsx("p",{className:"text-xl text-muted-foreground max-w-3xl mx-auto",children:"At Simple Operations, we believe in the power of servant leadership. Our team isn't just here to install systemsâwe're here to protect your energy, amplify your strengths, and help you reclaim the freedom you started your business to achieve. Each Simple Operations Guide brings deep operational expertise combined with a genuine commitment to your success. We've walked in your shoes, felt the weight of operational chaos, and discovered the path to clarity and freedom. Now, we're here to guide you on that same journey."})]}),n?r.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:[...Array(3)].map((o,l)=>r.jsx(G,{className:"animate-pulse",children:r.jsxs(Ne,{className:"p-6 text-center",children:[r.jsx("div",{className:"w-32 h-32 bg-muted rounded-full mx-auto mb-4"}),r.jsx("div",{className:"h-6 bg-muted rounded mb-2"}),r.jsx("div",{className:"h-4 bg-muted rounded mb-4"}),r.jsxs("div",{className:"space-y-2",children:[r.jsx("div",{className:"h-3 bg-muted rounded"}),r.jsx("div",{className:"h-3 bg-muted rounded"})]})]})},l))}):e.length===0?r.jsx("div",{className:"text-center py-16",children:r.jsx("p",{className:"text-xl text-muted-foreground",children:"No team members to display at this time."})}):r.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:e.map(o=>r.jsx(G,{className:"hover:shadow-xl hover:scale-105 transition-all duration-300",children:r.jsxs(Ne,{className:"p-6 text-center",children:[r.jsxs(Dp,{className:"w-24 h-24 sm:w-32 sm:h-32 mx-auto mb-4",children:[r.jsx(Fp,{src:o.profile_photo_url,alt:o.name}),r.jsx(Lp,{className:"text-2xl",children:i(o.name)})]}),r.jsx("h3",{className:"text-xl font-semibold mb-1",children:o.name}),r.jsx("p",{className:"text-primary font-medium mb-4",children:o.title}),o.biography&&r.jsx("p",{className:"text-sm text-muted-foreground mb-4 leading-relaxed break-words",children:o.biography}),o.linkedin_url&&r.jsxs("a",{href:o.linkedin_url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-primary hover:text-primary-dark transition-colors",children:[r.jsx(Cr,{className:"w-4 h-4"}),"LinkedIn"]})]})},o.id))}),r.jsx("div",{className:"mt-20 mb-16",children:r.jsxs("div",{className:"text-center mb-12",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-8",children:"Our C
803ommitment to Members"}),r.jsxs("div",{className:"grid md:grid-cols-3 gap-8 max-w-6xl mx-auto",children:[r.jsxs("div",{className:"bg-white/50 rounded-xl p-6 shadow-sm border border-gray-100 h-full flex flex-col text-center",children:[r.jsx("h3",{className:"text-xl font-semibold text-primary mb-4",children:"We Lead by Serving"}),r.jsx("p",{className:"text-muted-foreground flex-1 leading-relaxed",children:"Our Simple Operations Guides embody the principle that true leadership means empowering others to succeed. We don't just teach systems; we roll up our sleeves and work alongside you to ensure your operating system sticks."})]}),r.jsxs("div",{className:"bg-white/50 rounded-xl p-6 shadow-sm border border-gray-100 h-full flex flex-col text-center",children:[r.jsx("h3",{className:"text-xl font-semibold text-primary mb-4",children:"We Guard Your Rhythm"}),r.jsx("p",{className:"text-muted-foreground flex-1 leading-relaxed",children:"As guardians of your operational cadence, we protect you from sliding back into old habits. Through strategic Targeted Interactions and continuous optimization, we keep your business running smoothly while you focus on vision and growth."})]}),r.jsxs("div",{className:"bg-white/50 rounded-xl p-6 shadow-sm border border-gray-100 h-full flex flex-col text-center",children:[r.jsx("h3",{className:"text-xl font-semibold text-primary mb-4",children:"We Create Clarity, Not Complexity"}),r.jsx("p",{className:"text-muted-foreground flex-1 leading-relaxed",children:"Every interaction with our team is designed to give you time back, not take it away. We believe in simple tools, clear communication, and actionable guidance that moves you from the driver's seat to the passenger seat."})]})]})]})}),r.jsx("div",{className:"mb-16",children:r.jsxs("div",{className:"text-center bg-gradient-to-r from-primary/5 to-secondary/5 rounded-2xl p-10",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6",children:"Ready to Experience the Simple Operations Difference?"}),r.jsx("p",{className:"text-xl text-muted-foreground max-w-4xl mx-auto",children:"Our team is here to help you install a proven system that creates freedom, not meetings. Let's build a business that scales without you in the middle of every decision."})]})}),r.jsx("div",{className:"mb-16",children:r.jsxs("div",{className:"bg-gradient-to-r from-primary/10 to-secondary/10 rounded-2xl p-4 sm:p-6 lg:p-10 border border-primary/20 shadow-medium",children:[r.jsx("h3",{className:"text-2xl sm:text-3xl font-bold text-center text-foreground mb-6 sm:mb-8",children:"Two Paths to Operational Freedom"}),r.jsxs("div",{className:"flex flex-col lg:grid lg:grid-cols-2 gap-6 lg:gap-8 max-w-4xl mx-auto",children:[r.jsxs("div",{className:"flex flex-col justify-between h-full text-center space-y-4 sm:space-y-6 bg-white/50 rounded-xl p-4 sm:p-6",children:[r.jsxs("div",{className:"space-y-3 sm:space-y-4",children:[r.jsx("div",{className:"bg-primary/20 rounded-full w-16 h-16 sm:w-20 sm:h-20 flex items-center justify-center mx-auto",children:r.jsx("span",{className:"text-xl sm:text-2xl font-bold text-primary",children:"1"})}),r.jsx("h4",{className:"text-lg sm:text-xl font-semibold text-foreground",children:"$750K+ Revenue"}),r.jsx("p",{className:"text-sm sm:text-base text-muted-foreground",children:"Scale Method: 4-month intensive transformation for established businesses ready to scale systematically"})]}),r.jsx(m1,{to:"/apply",variant:"hero",size:"lg",className:"w-full mt-auto min-h-[44px]",children:"Apply for Scale Method"})]}),r.jsxs("div",{className:"flex flex-col justify-between h-full text-center space-y-4 sm:space-y-6 bg-white/50 rounded-xl p-4 sm:p-6",children:[r.jsxs("div",{className:"space-y-3 sm:space-y-4",children:[r.jsx("div",{className:"bg-primary/10 rounded-full w-16 h-16 sm:w-20 sm:h-20 flex items-center justify-center mx-auto border-2 border-primary/30",children:r.jsx("span",{className:"text-xl sm:text-2xl font-bold text-primary",children:"2"})}),r.jsx("h4",{className:"text-lg sm:text-xl font-semibold text-foreground",children:"Under $750K"}),r.jsx("p",{className:"text-sm sm:text-base text-muted-foreground",children:"Clarity Method: 12-month foundation building with the same principles plus additional support"})]}),r.jsx(m1,{to:"/apply",variant:"hero",size:"lg",className:"w-full mt-auto min-h-[44px]",children:"Apply for Clarity Method"})]})]}),r.jsx("p",{className:"text-center text-muted-foreground mt-6 sm:mt-8 text-sm sm:text-base lg:text-lg",children:"Both programs use Simple Operations principlesâthe Clarity Method provides more time and support to build your foundation before scaling."})]})})]})}),r.jsx(ht,{})]})})},r4=()=>{var e;(e=document.querySelector("#pricing-section"))==null||e.scrollIntoView({behavior:"smooth",block:"center"})},Ipe=()=>{const[e,t]=j.useState(""),[n,s]=j.useState(""),[a,i]=j.useState(""),o=[n.trim(),a.trim()].filter(
803Boolean).join(" "),l=/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.trim()),{getTestimonialData:c}=Nl(),d=[c("essentials-testimonial-rachel"),c("essentials-testimonial-david"),c("essentials-testimonial-maria")].filter(Boolean),u=[{n:"Module 1",title:"Passenger Seat Leadership",learn:"The mental model shift from operator to architect.",deliverables:["Role clarity workshop (video + worksheet)","CEO time-blocking template","Passenger Seat decision-making framework"],time:"Week 1â2"},{n:"Module 2",title:"Weekly Sync System",learn:"Install a batched communication rhythm and eliminate 15+ daily interruptions.",deliverables:["Weekly Sync meeting agenda template","Communication batching protocols","Escalation rules framework"],time:"Week 2â3"},{n:"Module 3",title:"Waterfall Planning Method",learn:"Cascade company goals to team priorities to individual accountability.",deliverables:["Quarterly planning framework template","Monthly priority cascade worksheet","Weekly accountability tracker"],time:"Week 3â5"},{n:"Module 4",title:"Four Levels of Delegation Framework",learn:"Transfer decision rights, not just tasks.",deliverables:["Decision rights mapping tool","Authority level framework (L1âL4)","Team onboarding scripts for decision ownership"],time:"Week 5â7"},{n:"Module 5",title:"Operating Scorecard",learn:"Build 5â7 key metrics that show business health in 10 minutes.",deliverables:["Custom scorecard build template","Dashboard setup guide (Sheets + Excel)","Weekly review rhythm checklist"],time:"Week 7â9"},{n:"Bonus Module",title:"Team Adoption & Change Management",learn:"Get your team to actually USE the systems â most founders skip this and fail.",deliverables:["Team rollout scripts","Resistance handling playbook","Adoption tracking checklist"],time:"Ongoing"}],h=[{weeks:"Week 1â2",title:"Foundation",items:["Watch Module 1 (Passenger Seat Leadership)","Complete role clarity workshop","Block CEO time on calendar"],time:"4â6 hours"},{weeks:"Week 2â3",title:"Communication",items:["Watch Module 2 (Weekly Sync)","Download meeting agenda template","Run first Weekly Sync with team"],time:"4â6 hours"},{weeks:"Week 3â5",title:"Planning System",items:["Watch Module 3 (Waterfall Planning)","Complete quarterly planning framework","Cascade priorities to team"],time:"5â7 hours"},{weeks:"Week 5â7",title:"Delegation",items:["Watch Module 4 (Four Levels of Delegation)","Map decision rights","Transfer authority to team"],time:"5â7 hours"},{weeks:"Week 7â9",title:"Visibility",items:["Watch Module 5 (Operating Scorecard)","Build your custom scorecard","Run first weekly review"],time:"4â6 hours"},{weeks:"Week 9+",title:"Team Adoption",items:["Watch Bonus Module","Train team on frameworks","Troubleshoot resistance"],time:"3â5 hours"}],f=[{q:"How is this different from Clarity or Scale Method?",a:"Essentials Course is self-paced video training with email support and two strategic support calls â you implement on your own with our frameworks. Clarity and Scale Methods include live weekly coaching, accountability, and hands-on implementation partnership at $7,200 and $33,000 respectively."},{q:"Can I upgrade later if I need more support?",a:"Yes. We credit 50% of your Essentials investment toward Clarity or Scale Method if you upgrade within 6 months."},{q:"What's the refund policy?",a:"30-Day Money-Back Guarantee. Try the course for 30 days. If you're not completely satisfied with your progress, email us and we'll refund 100% of your investment â no questions asked."},{q:"How long do I have access?",a:"Lifetime access to all course materials, plus all future updates included at no additional cost."},{q:"What does email support cover?",a:"Technical questions about templates, clarification on frameworks, and troubleshooting implementation. It does NOT include custom consulting, live strategy calls, or hand-holding through your specific business decisions."},{q:"Do I need a team to make this work?",a:"Yes â Essentials is built for founders with 3+ team members. With fewer people, you don't yet have enough complexity for the system to pay off."}];return r.jsxs(r.Fragment,{children:[r.jsx(vr,{title:"Simple Operations Essentials Course â Self-Paced Operating System",description:"The same operating frameworks we use with $33K clients â in a self-paced course you implement yourself. Lifetime access, 30-day money-back guarantee.",keywords:"business operations course, self-paced founder course, simple operations, operating system course"}),r.jsxs("div",{className:"min-h-screen flex flex-col",children:[r.jsx(_t,{}),r.jsxs("main",{className:"flex-1 pt-20",children:[r.jsxs("section",{className:"py-16 md:py-24 bg-gradient-to-br from-primary/5 via-background to-secondary/5 relative overflow-hidden",children:[r.jsx("div",{className:"absolute inset-0 opacity-15",children:r.jsx("img",{src:v0,alt:"",className:"w-full h-full object-cover"})}),r.jsx("div",{className:"container mx-auto px-6 relative z-10",children:r.jsxs("div",{className:"max-w-4xl mx-auto text-center space-y-8",children:[r.jsx(it,{variant:"secondary",className:"text-sm px-4 py-2 uppercase tracking-wide",children:"Essentials Course · Self-Paced · Guided Implementation"}),r.jsx("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-bold leading-tight",children:"Learn the Simple Operations System on Your Own Timeline"}),r.jsx("p",{className:"text-xl md:text-2xl text-muted-foreground max-w-3xl mx-auto",children:"Get the same frameworks, templates, and training we use with clients â without the high-touch partnership pricing. Built for budget-conscious founders who prefer guided self-implementation."}),r.jsxs("div",{className:"pt-4 space-y-4",children:[r.jsxs(te,{size:"lg",variant:"hero",className:"text-lg px-10 py-6 h-auto",onClick:r4,children:["Enroll in Essentials Course â $277 ",r.jsx(Ue,{className:"ml-2"})]}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"500+ founders have used these frameworks · Lifetime access · No monthly fees · Start immediately"})]})]})})]}),r.jsx("section",{className:"py-16 md:py-20 bg-background",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsxs("div",{className:"max-w-6xl mx-auto grid md:grid-cols-2 gap-8",children:[r.jsxs(G,{className:"p-8 bg-primary/5 border-2 border-primary/30",children:[r.jsx("h2",{className:"text-2xl font-bold mb-6",children:"This Course Is For You If:"}),r.jsx("ul",{className:"space-y-4",children:[["Budget:","You want the frameworks without a $7Kâ$33K investment"],["Learning Style:","You prefer self-paced learning over live coaching"],["Team:","You have 3+ peo
803ple you can implement with"],["Commitment:","You can dedicate 5â10 hours/week to implementation"],["Independence:","You're comfortable figuring things out on your own"]].map(([m,y])=>r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(_e,{className:"h-6 w-6 text-primary flex-shrink-0 mt-1"}),r.jsxs("span",{className:"text-lg",children:[r.jsx("strong",{children:m})," ",y]})]},m))})]}),r.jsxs(G,{className:"p-8 bg-destructive/5 border-2 border-destructive/20",children:[r.jsx("h2",{className:"text-2xl font-bold mb-6",children:"This Course Is NOT For You If:"}),r.jsx("ul",{className:"space-y-4",children:[["You need accountability and hand-holding â get ",{label:"Clarity Method",to:"/clarity"}," instead"],["You want someone to install the system WITH you â get ",{label:"Scale Method",to:"/scale"}],["You have fewer than 3 team members (not enough complexity yet)"],["You prefer live coaching and weekly check-ins"],["You can't commit to self-directed implementation"]].map((m,y)=>r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(Ft,{className:"h-6 w-6 text-destructive flex-shrink-0 mt-1"}),r.jsx("span",{className:"text-lg",children:m.map((p,v)=>typeof p=="string"?r.jsx("span",{children:p},v):r.jsx(ue,{to:p.to,className:"text-primary underline font-semibold",children:p.label},v))})]},y))})]})]})})}),r.jsx("section",{className:"py-16 md:py-20 bg-section-light",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsxs("div",{className:"max-w-3xl mx-auto space-y-6",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-center mb-10",children:"You Know You Need Systems â But You Don't Want to Spend $20K+"}),r.jsx("p",{className:"text-lg",children:"You're stuck as the bottleneck. You know you need operating systems. But:"}),r.jsxs("ul",{className:"space-y-3 text-lg",children:[r.jsxs("li",{children:["⢠The ",r.jsx("strong",{children:"$33K Scale Method feels too expensive"})," â you're bootstrapped"]}),r.jsxs("li",{children:["⢠The ",r.jsx("strong",{children:"$7K Clarity Method still feels like a lot"})," â you'd rather invest in hiring"]}),r.jsxs("li",{children:["⢠",r.jsx("strong",{children:"Hiring a COO or Integrator is $80K+/year"})," â way out of budget"]})]}),r.jsx("p",{className:"text-lg pt-2",children:"So you're stuck trying to:"}),r.jsxs("ul",{className:"space-y-3 text-lg",children:[r.jsx("li",{children:"⢠Build systems from scratch (takes 6+ months, usually fails)"}),r.jsx("li",{children:"⢠Wing it with free YouTube videos (scattered, incomplete, no roadmap)"}),r.jsx("li",{children:"⢠Buy generic business courses (not specific to your bottleneck)"})]}),r.jsxs(G,{className:"p-6 bg-primary/5 border-l-4 border-primary mt-8",children:[r.jsx("p",{className:"text-xl font-semibold mb-2",children:"Here's the truth:"}),r.jsx("p",{className:"text-lg",children:"You don't need more content. You need the EXACT frameworks that work â in a format you can implement yourself. That's what Essentials Course delivers."})]})]})})}),r.jsx("section",{className:"py-20 lg:py-28 bg-section-dark text-section-dark-foreground",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsxs("div",{className:"max-w-5xl mx-auto space-y-12",children:[r.jsxs("div",{className:"text-center space-y-6 max-w-3xl mx-auto",children:[r.jsx("h2",{className:"text-3xl md:text-5xl font-bold",children:"The Same System We Use With $33K Clients â Without the Partnership Pricing"}),r.jsx("p",{className:"text-xl opacity-90",children:"This isn't a generic business course. It's the complete Simple Operations System in self-paced video training + downloadable templates. You get the exact frameworks. You implement them yourself."})]}),r.jsx("div",{className:"grid md:grid-cols-2 gap-6",children:u.map(m=>r.jsxs(G,{className:"p-6 bg-card text-card-foreground",children:[r.jsxs("div",{className:"flex items-start justify-between mb-3 gap-3",children:[r.jsxs("div",{children:[r.jsx("p",{className:"text-xs uppercase tracking-wide text-primary font-bold",children:m.n}),r.jsx("h3",{className:"text-xl font-bold mt-1",children:m.title})]}),r.jsx(it,{variant:"outline",className:"flex-shrink-0",children:m.time})]}),r.jsx("p",{className:"text-muted-foreground mb-4",children:m.learn}),r.jsx("ul",{className:"space-y-2",children:m.deliverables.map(y=>r.jsxs("li",{className:"flex items-start gap-2 text-sm",children:[r.jsx(_e,{className:"h-4 w-4 text-primary flex-shrink-0 mt-1"}),r.jsx("span",{children:y})]},y))})]},m.title))})]})})}),r.jsx("section",{className:"py-16 md:py-20 bg-background",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsxs("div",{className:"max-w-5xl mx-auto
803space-y-10",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-center",children:"Everything Included in Essentials Course"}),r.jsx("div",{className:"grid md:grid-cols-2 gap-6",children:[{title:"Video Training",items:["6 core modules (15+ hours of training)","Step-by-step implementation walkthroughs","Real founder examples and case studies","Screen-share tutorials for templates"]},{title:"Templates & Frameworks",items:["Complete Simple Operations template library (20+ tools)","Weekly Sync meeting agendas","Waterfall Planning worksheets","Four Levels of Delegation matrices","Operating Scorecard build templates","Team training scripts"]},{title:"Implementation Guides",items:["90-day self-implementation roadmap","Week-by-week action plans","Troubleshooting guides","Common mistakes & how to avoid them"]},{title:"Support & Resources",items:["2 strategic support calls at critical implementation moments","Email support for technical questions","Lifetime access to all course materials","All future updates included (no additional cost)","Founder Bottleneck Assessment (self-scoring version)"]}].map(m=>r.jsxs(G,{className:"p-6",children:[r.jsx("h3",{className:"text-xl font-bold mb-4",children:m.title}),r.jsx("ul",{className:"space-y-2",children:m.items.map(y=>r.jsxs("li",{className:"flex items-start gap-2",children:[r.jsx(_e,{className:"h-5 w-5 text-primary flex-shrink-0 mt-0.5"}),r.jsx("span",{children:y})]},y))})]},m.title))})]})})}),r.jsx("section",{className:"py-16 md:py-20 bg-section-light",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsxs("div",{className:"max-w-5xl mx-auto space-y-8",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-center",children:"Which Program Is Right for You?"}),r.jsx("div",{className:"overflow-x-auto",children:r.jsxs("table",{className:"w-full text-left border-collapse bg-card rounded-lg overflow-hidden shadow-lg",children:[r.jsx("thead",{children:r.jsxs("tr",{className:"bg-primary text-primary-foreground",children:[r.jsx("th",{className:"p-4"}),r.jsx("th",{className:"p-4 text-center",children:"Essentials"}),r.jsx("th",{className:"p-4 text-center",children:"Clarity Method"}),r.jsx("th",{className:"p-4 text-center",children:"Scale Method"})]})}),r.jsx("tbody",{children:[["Investment","$277","$7,200","$33,000"],["Format","Self-paced + 2 calls","Live coaching","Full partnership"],["Timeline","9â12 weeks (self-paced)","90 days","12 months"],["Templates","20+ tools included","Included + customized","Built for your business"],["Support","Email + 2 calls","Weekly group coaching","1:1 + team coaching"],["Best For","DIY founders","$300Kâ$500K revenue","$500Kâ$3M revenue"],["Guarantee","30-day money-back","30-day money-back","30-day money-back"]].map(([m,y,p,v])=>r.jsxs("tr",{className:"border-b border-border last:border-0",children:[r.jsx("td",{className:"p-4 font-semibold",children:m}),r.jsx("td",{className:"p-4 text-center bg-primary/5",children:y}),r.jsx("td",{className:"p-4 text-center",children:p}),r.jsx("td",{className:"p-4 text-center",children:v})]},m))})]})}),r.jsxs("p",{className:"text-center text-muted-foreground",children:["Still not sure?"," ",r.jsx(ue,{to:"/assessment",className:"text-primary underline font-semibold",children:"Take the 5-min Founder Bottleneck Assessment â"})]})]})})}),r.jsx("section",{className:"py-16 md:py-20 bg-background",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsxs("div",{className:"max-w-5xl mx-auto space-y-10",children:[r.jsxs("div",{className:"text-center space-y-4",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold",children:"How It Works: Your 9â12 Week Implementation Path"}),r.jsxs("p",{className:"text-lg text-muted-foreground",children:["Total time investment: ",r.jsx("strong",{children:"25â35 hours"})," spread over 9â12 weeks."]})]}),r.jsx("div",{className:"grid md:grid-cols-2 gap-6",children:h.map(m=>r.jsxs(G,{className:"p-6",children:[r.jsxs("div",{className:"flex items-center justify-between mb-3",children:[r.jsx("p",{className:"text-sm font-bold text-primary uppercase tracking-wide",children:m.weeks}),r.jsx(it,{variant:"outline",children:m.time})]}),r.jsx("h3",{className:"text-xl font-bold mb-3",children:m.title}),r.jsx("ul",{className:"space-y-2",children:m.items.map(y=>r.jsxs("li",{className:"flex items-start gap-2 text-muted-foreground",children:[r.jsx(_e,{className:"h-4 w-4 text-primary flex-shrink-0 mt-1"}),r.jsx("span",{children:y})]},y))})]},m.weeks))}),r.jsx(G,{className:"p-6 bg-primary/5 border-l-4 border-primary text-center",children:r.jsx("p",{className:"text-xl font-semibold",children:"Result: The complete Simple Operations System installed and operational in your business."})})]})})}),r.jsx("section",{className:"py-16 md:py-20 bg-section-light",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsxs("div",{className:"max-w-5xl mx-auto
803space-y-10",children:[r.jsxs("div",{className:"text-center space-y-3",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold",children:"Founders Who Implemented the System Themselves"}),r.jsx("p",{className:"text-lg text-muted-foreground",children:"Real results from real DIY founders."})]}),r.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:[{quote:"I didn't think I could install systems without a coach, but the templates made it so clear. We went from constant chaos to our first 'no interruption' day in Week 3.",img:b0},{quote:"The Weekly Sync alone was worth the price. My team stopped interrupting me 20 times a day â and started solving their own problems.",img:w0},{quote:"I'd bought $5K in business courses before this and finished none of them. The 90-day roadmap kept me on track and the scorecard changed how I run the business.",img:j0}].map((m,y)=>{const p=d[y];return r.jsxs(G,{className:"p-6 bg-card flex flex-col",children:[r.jsx("div",{className:"flex gap-1 mb-3",children:[...Array(5)].map((v,g)=>r.jsx(Fr,{className:"h-4 w-4 fill-primary text-primary"},g))}),r.jsxs("p",{className:"text-lg italic mb-4 flex-1",children:['"',(p==null?void 0:p.quote)||m.quote,'"']}),r.jsxs("div",{className:"flex items-center gap-3 pt-4 border-t",children:[r.jsx("img",{src:(p==null?void 0:p.image)||m.img,alt:(p==null?void 0:p.name)||"Founder testimonial",className:"w-12 h-12 rounded-full object-cover"}),r.jsxs("div",{children:[r.jsx("p",{className:"font-semibold",children:(p==null?void 0:p.name)||"Verified Founder"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:(p==null?void 0:p.title)||"DIY Implementation"})]})]})]},y)})})]})})}),r.jsx("section",{className:"py-16 bg-primary text-primary-foreground",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsxs("div",{className:"max-w-5xl mx-auto grid md:grid-cols-3 gap-8 text-center",children:[r.jsxs("div",{children:[r.jsx("p",{className:"text-4xl md:text-5xl font-bold",children:"500+"}),r.jsx("p",{className:"mt-2 opacity-90",children:"Founders trained on these frameworks"})]}),r.jsxs("div",{children:[r.jsx("p",{className:"text-4xl md:text-5xl font-bold",children:"$450M+"}),r.jsx("p",{className:"mt-2 opacity-90",children:"Revenue managed through these systems"})]}),r.jsxs("div",{children:[r.jsx("p",{className:"text-4xl md:text-5xl font-bold",children:"9â12 wks"}),r.jsx("p",{className:"mt-2 opacity-90",children:"Average time to full implementation"})]})]})})}),r.jsx("section",{className:"py-16 md:py-24 bg-background",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsxs("div",{className:"max-w-4xl mx-auto space-y-10",children:[r.jsxs("div",{className:"text-center space-y-4",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold",children:"Your Investment"}),r.jsx("p",{className:"text-xl text-muted-foreground",children:"One-time payment. Lifetime access. 30-day money-back guarantee."})]}),r.jsx(G,{className:"p-8 md:p-10 border-2 border-primary shadow-xl",children:r.jsxs("div",{className:"space-y-8",children:[r.jsxs("div",{className:"grid md:grid-cols-[auto_1fr] gap-8 items-start",children:[r.jsxs("div",{children:[r.jsx("p",{className:"text-sm uppercase tracking-wide text-primary font-bold",children:"Course Includes"}),r.jsx("p",{className:"text-5xl font-bold mt-2",children:"$277"}),r.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"starting price · payment plans available below"})]}),r.jsx("ul",{className:"space-y-2",children:["6 core video modules (15+ hours)","Complete template library (20+ tools)","90-day implementation roadmap","2 strategic support calls","Email support","Lifetime access + future updates","30-day money-back guarantee"].map(m=>r.jsxs("li",{className:"flex items-start gap-2",children:[r.jsx(_e,{className:"h-5 w-5 text-primary flex-shrink-0 mt-0.5"}),r.jsx("span",{children:m})]},m))})]}),r.jsxs("div",{className:"pt-6 border-t border-border",children:[r.jsx("h3",{className:"text-xl font-bold text-center mb-2",children:"Where should we send your access?"}),r.jsx("p",{className:"text-sm text-muted-foreground text-center mb-6",children:"Enter your details, then choose a payment plan below."}),r.jsxs("div",{className:"grid gap-4 md:grid-cols-3 max-w-3xl mx-auto mb-8",children:[r.jsxs("div",{className:"space-y-2",children:[r.jsx(oe,{htmlFor:"checkout-first-name",children:"First name"}),r.jsx(je,{id:"checkout-first-name",value:n,onChange:m=>s(m.target.value),placeholder:"Jane",autoComplete:"given-name"})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(oe,{htmlFor:"checkout-last-name",children:"Last name"}),r.jsx(je,{id:"checkout-last-name",value:a,onChange:m=>i(m.target.value),placeholder:"Doe",autoComplete:"family-name"})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(oe,{htmlFor:"checkout-email",children:"Email *"}
803),r.jsx(je,{id:"checkout-email",type:"email",value:e,onChange:m=>t(m.target.value),placeholder:"[email protected]",autoComplete:"email","aria-invalid":e.length>0&&!l})]})]}),!l&&r.jsx("p",{className:"text-sm text-muted-foreground text-center mb-6",children:"Enter a valid email address to continue to checkout."}),r.jsx("h3",{className:"text-xl font-bold text-center mb-6",children:"Choose Your Payment Plan"}),r.jsx("div",{id:"pricing-section",className:"scroll-mt-24",children:r.jsx(pI,{customerEmail:e.trim(),customerName:o,productIdentifier:"essentials-course",disabled:!l})})]})]})}),r.jsx(G,{className:"p-8 bg-primary/5 border-2 border-primary/30",children:r.jsxs("div",{className:"flex flex-col md:flex-row items-center gap-6",children:[r.jsx(Wn,{className:"h-16 w-16 text-primary flex-shrink-0"}),r.jsxs("div",{className:"text-center md:text-left",children:[r.jsx("h3",{className:"text-2xl font-bold mb-2",children:"30-Day Money-Back Guarantee"}),r.jsx("p",{className:"text-lg text-muted-foreground",children:"Try the course for 30 days. If you're not completely satisfied with your progress, email us and we'll refund 100% of your investment â no questions asked."})]})]})})]})})}),r.jsx("section",{className:"py-16 md:py-20 bg-section-light",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsxs("div",{className:"max-w-3xl mx-auto space-y-8",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-center",children:"Questions About the Course"}),r.jsx("div",{className:"space-y-4",children:f.map(m=>r.jsxs(G,{className:"p-6",children:[r.jsx("h3",{className:"text-lg font-bold mb-2",children:m.q}),r.jsx("p",{className:"text-muted-foreground",children:m.a})]},m.q))})]})})}),r.jsx("section",{className:"py-16 md:py-20 bg-background",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsxs("div",{className:"max-w-3xl mx-auto space-y-6",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-center",children:"Is This Actually Right for You?"}),r.jsx("p",{className:"text-lg",children:"Essentials is the right choice if:"}),r.jsxs("ul",{className:"space-y-3 text-lg",children:[r.jsx("li",{children:"⢠You have 5â10 hours/week to dedicate to implementation"}),r.jsx("li",{children:"⢠You're disciplined enough to follow through without weekly accountability"}),r.jsx("li",{children:"⢠You actually finish things you start"})]}),r.jsxs(G,{className:"p-6 bg-destructive/5 border-l-4 border-destructive",children:[r.jsx("p",{className:"text-lg font-semibold mb-2",children:"Here's the truth: most founders need accountability."}),r.jsxs("p",{className:"text-muted-foreground",children:["If you're the type who buys courses and never finishes them, ",r.jsx("strong",{children:"don't buy this"}),". You'll waste $277. Instead, book a call and see if Clarity Method ($7,200, with weekly coaching) or Scale Method ($33,000, full implementation partnership) is a better fit. We'd rather you spend more and succeed than spend less and fail."]}),r.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 mt-4",children:[r.jsx(te,{asChild:!0,variant:"outline",children:r.jsx(ue,{to:"/book-call",children:"Book a Call"})}),r.jsx(te,{asChild:!0,variant:"ghost",children:r.jsx(ue,{to:"/compare",children:"Compare All Programs â"})})]})]})]})})}),r.jsx("section",{className:"py-20 md:py-28 bg-gradient-to-br from-primary to-primary-dark text-primary-foreground",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsxs("div",{className:"max-w-3xl mx-auto text-center space-y-8",children:[r.jsx("h2",{className:"text-4xl md:text-5xl font-bold",children:"Stop Being the Bottleneck. Install the System."}),r.jsx("p",{className:"text-xl opacity-90",children:"Lifetime access. 30-day money-back guarantee. Start today."}),r.jsxs(te,{size:"lg",variant:"secondary",className:"text-lg px-10 py-6 h-auto",onClick:r4,children:["Enroll in Essentials Course â $277 ",r.jsx(Ue,{className:"ml-2"})]}),r.jsxs("p",{className:"flex items-center justify-center gap-2 text-sm opacity-80 pt-4",children:[r.jsx(xr,{className:"h-4 w-4"}),"Questions? Email [email protected]"]})]})})})]}),r.jsx(ht,{})]})]})},Rpe=()=>r.jsxs(r.Fragment,{children:[r.jsx(vr,{title:"Welcome to Your 40%+ Growth Journey!",description:"Your Simple Operations Essentials Access is Ready - Check Your Email Now"}),r.jsxs("div",{className:"min-h-screen flex flex-col",children:[r.jsx(_t,{}),r.jsx("main",{className:"flex-1 pt-24 pb-16",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsxs("div",{className:"max-w-4xl mx-auto",children:[r.jsxs("div",{className:"text-center mb-12",children:[r.jsx($e,{className:"h-24 w-24 text-primary mx-auto mb-6"}),r.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-4",children:"Welcome to Your 40%+ Growth Journey!"}),r.jsx("p",{className:"text-xl text-muted-foreground mb-8",children:"Your Simple Operations Essentials Access is Ready - Check Your Email Now"})]}),r.jsx(rm,{}),r.jsxs(G,{className:"p-8 mb-8 bg-primary/5 border-2 border-primary",children:[r.jsx("h2",{className:"text-2xl md:text-3xl font-bold mb-4",children:"ð Congratulations! You Just Made the Best Investment of Your Entrepreneurial C
803areer"}),r.jsx("p",{className:"text-lg mb-4",children:"You're officially part of the exclusive 5% of growth-stage entrepreneurs who choose ACTION over analysis paralysis."}),r.jsx("p",{className:"text-lg mb-4",children:`While your competitors are still stuck in the "someday I'll get organized" mindset, you just secured your spot among the 95% who achieve 40%+ annual growth.`}),r.jsx("p",{className:"text-lg font-semibold",children:"Your transformation starts right now."})]}),r.jsxs(G,{className:"p-8 mb-8",children:[r.jsxs("h2",{className:"text-2xl font-bold mb-6 flex items-center gap-2",children:[r.jsx(Ii,{className:"h-8 w-8 text-primary"}),"IMMEDIATE ACTION REQUIRED (This Determines Your Success)"]}),r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{className:"flex gap-4",children:[r.jsx("span",{className:"font-bold text-primary text-2xl flex-shrink-0",children:"1."}),r.jsxs("div",{children:[r.jsx("p",{className:"font-bold text-lg mb-2",children:"Step 1: Check Your Email (Next 5 Minutes)"}),r.jsxs("p",{className:"text-muted-foreground mb-2",children:["Look for your welcome email from ",r.jsx("span",{className:"font-semibold",children:"[email protected]"})," with subject line:",r.jsx("span",{className:"font-semibold",children:' "Your Simple Operations Essentials Login - Start Today!"'})]}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Don't see it? Check spam/promotions folder. Still missing? Email me directly."})]})]}),r.jsxs("div",{className:"flex gap-4",children:[r.jsx("span",{className:"font-bold text-primary text-2xl flex-shrink-0",children:"2."}),r.jsxs("div",{children:[r.jsx("p",{className:"font-bold text-lg mb-2",children:"Step 2: Access Your Member Portal"}),r.jsx("p",{className:"text-muted-foreground",children:"Click the login link in your welcome email and bookmark your member dashboard. This is your command center for the next 21 days."})]})]}),r.jsxs("div",{className:"flex gap-4",children:[r.jsx("span",{className:"font-bold text-primary text-2xl flex-shrink-0",children:"3."}),r.jsxs("div",{children:[r.jsx("p",{className:"font-bold text-lg mb-2",children:"Step 3: Take the EPT Assessment (Next 30 Minutes)"}),r.jsx("p",{className:"text-muted-foreground",children:"This is the foundation of everything. Your unique Entrepreneurial Personality Type profile will determine how you customize the entire system."})]})]}),r.jsxs("div",{className:"flex gap-4",children:[r.jsx("span",{className:"font-bold text-primary text-2xl flex-shrink-0",children:"4."}),r.jsxs("div",{children:[r.jsx("p",{className:"font-bold text-lg mb-2",children:"Step 4: Schedule Your Strategic Support Calls"}),r.jsx("p",{className:"text-muted-foreground mb-2",children:"You have TWO included 1:1 calls with our team:"}),r.jsxs("ul",{className:"list-disc list-inside space-y-1 ml-4 text-muted-foreground",children:[r.jsx("li",{children:"Personal Operations Review (Week 1)"}),r.jsx("li",{children:"Business Growth Strategy Session (Week 3)"})]}),r.jsx("p",{className:"text-muted-foreground mt-2",children:"Scheduling link is in your welcome email. These calls book up fast - secure your spots today."})]})]})]})]}),r.jsxs(G,{className:"p-8 mb-8",children:[r.jsx("h2",{className:"text-3xl font-bold mb-8 text-center",children:"Your 21-Day Freedom Timeline"}),r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{className:"border-l-4 border-primary pl-6",children:[r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Days 1-7: Personal & Team Fundamentals"}),r.jsxs("ul",{className:"space-y-2 text-muted-foreground",children:[r.jsx("li",{children:"⢠EPT Assessment & Morning Routine Design"}),r.jsx("li",{children:"⢠Constraint Elimination Protocol"}),r.jsx("li",{children:"⢠Role Clarity Framework"}),r.jsx("li",{children:"⢠Mission Alignment Exercise"}),r.jsx("li",{children:"⢠Week 1 Call: Personal Operations Review"})]})]}),r.jsxs("div",{className:"border-l-4 border-primary pl-6",children:[r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Days 8-14: Process & Systems Fundamentals"}),r.jsxs("ul",{className:"space-y-2 text-muted-foreground",children:[r.jsx("li",{children:"⢠Client Process Documentation"}),r.jsx("li",{children:"⢠Communication Standards Setup"}),r.jsx("li",{children:"⢠Quantum Flow Planning Implementation"}),r.jsx("li",{children:"⢠Boundary Optimization Protocol"})]})]}),r.jsxs("div",{className:"border-l-4 border-primary pl-6",children:[r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Days 15-21: Strategic Vision & Mastery"}),r.jsxs("ul",{className:"space-y-2 text-muted-foreground",children:[r.jsx("li",{children:"⢠Strategic vs. Tactical Clarity"}),r.jsx("li",{children:"⢠System Integration & Refinement"}),r.jsx("li",{children:"⢠Vision Expansion Exercise"}),r.jsx("li",{children:"⢠Week 3 Call: Business Growth Strategy Session"})]})]}),r.jsxs("div",{className:"border-l-4 border-primary pl-6",children:[r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Day 22 and Beyond: 40%+ Growth Implementation"}),r.jsx("p",{className:"text-muted-foreground",children:"You'll have your complete Business Operating System Fundamentals Package ready to drive sustained growth."})]})]})]}),r.jsxs(G,{className:"p-8 mb-8 bg-destructive/5 border-2 border-destructive",children:[r.jsxs("h2",{className:"text-2xl font-bold mb-4 flex items-center gap-2",children:[r.jsx(zt,{className:"h-8 w-8"}),"ð¥ The Next 72 Hours Are Critical"]}),r.jsxs("p",{className:"text-lg mb-6",children:["Research shows: People who take action within 72 hours of purchase are ",r.jsx("span",{className:"font-bold",children:"847% more likely"})," to complete the program and achieve results."]}),r.jsx("h3",{className:"text-xl font-bold mb-4",children:"Your 72-Hour Success Checklist:"}),r.jsxs("ul",{className:"space-y-3 mb-6",children:[r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx($e,{className:"h-6 w-6 text-primary flex-shrink-0 mt-0.5"}),r.jsx("span",{children:"Access member portal (bookmark it)"})]}),r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx($e,{className:"h-6 w-6 text-primary flex-shrink-0 mt-0.5"}),r.jsx("span",{children:"Complete EPT Assessment (30 minutes)"})]}),r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx($e,{className:"h-6 w-6 text-primary flex-shrink-0 mt-0.5"}),r.jsx("span",{children:"Schedule your two strategy calls (5 minutes)"})]}),r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx($e,{className:"h-6 w-6 text-primary flex-shrink-0 mt-0.5"}),r.jsx("span",{children:"Design your morning routine (Day 2 content - 20 minutes)"})]}),r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx($e,{className:"h-6 w-6 text-primary flex-shrink-0 mt-0.5"}),r.jsx("span",{children:"Identify your top 3 constraints (Day 3 content - 30 minutes)"})]})]}),r.jsx("p",{className:"text-lg font-semibold",children:"Complete these 5 items in the next 72 hours and you're virtually guaranteed to join the 95% success rate."})]}),r.jsxs(G,{className:"p-8 mb-8",children:[r.jsxs("h2",{className:"text-2xl font-bold mb-4 flex items-center gap-2",children:[r.jsx(Wr,{className:"h-8 w-8 text-primary"}),"Join Our Private Member Community"]}),r.jsx("p",{className:"text-lg mb-6",children:"You're not just getting a course - you're joining a community of growth-stage entrepreneurs who are all implementing the same systems."}),r.jsx("p",{className:"text-lg font-semibold mb-6",children:"Check your welcome email for instructions on how to join our exclusive member community."}),r.jsx("h3",{className:"font-bold text-lg mb-3",children:"Inside you'll find:"}),r.jsxs("ul",{className:"space-y-2 mb-6 text-muted-foreground",children:[r.jsx("li",{children:"⢠Daily implementation support"}),r.jsx("li",{children:"⢠Success stories and wins"}),r.jsx("li",{children:"⢠Troubleshooting help"}),r.jsx("li",{children:"⢠Accountability partners"}),r.jsx("li",{children:"⢠Direct access to me and our team"})]}),r.jsxs("div",{className:"bg-muted p-4 rounded-lg",children:[r.jsx("p",{className:"text-sm font-semibold mb-2",children:"Post your introduction using this template:"}),r.jsx("p",{className:"text-sm italic",children:`"Just joined Simple Operations! I'm [Name], I run a [Business Type] generating [Revenue Range], and my biggest constraint right now is [Challenge]. Looking forward to achieving 40%+ growth with this group!"`})]})]}),r.jsxs(G,{className:"p-8 mb-8",children:[r.jsx("h2",{className:"text-2xl font-bold mb-6",children:"Need Help? I've Got Your Back"}),r.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[r.jsxs("div",{children:[r.jsx("h3",{className:"font-bold text-lg mb-2",children:"Technical Issues?"}),r.jsxs("p",{className:"text-muted-foreground mb-2",children:["Email: ",r.jsx("a",{href:"mailto:[email protected]",className:"text-primary hover:underline font-semibold",children:"[email protected]"})]}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Response time: Within 2 hours during business days"})]}),r.jsxs("div",{children:[r.jsx("h3",{className:"font-bold text-lg mb-2",children:"Strategic Questions?"}),r.jsxs("p",{className:"text-muted-foreground mb-2",children:["Email our team for that as well: ",r.jsx("a",{href:"mailto:[email protected]",className:"text-primary hover:underline font-semibold",children:"[email protected]"})]}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"I read and respond to every message personally."})]})]}),r.jsx("p",{className:"mt-6 text-muted-foreground",children:"Remember: You have a 30-day money-back guarantee. But based on our 95% success rate, I'm confident you'll be celebrating your breakthrough long before then."})]}),r.jsxs(G,{className:"p-8 mb-8",children:[r.jsx("h2",{className:"text-2xl font-bold mb-4",children:"What Happens After Your 21-Day Transformation"}),r.jsx("p",{className:"text-lg mb-4",children:"Once you complete Simple Operations Essentials and experience your first breakthrough, you'll likely want to take your systems to the next level."}),r.jsx("h3",{className:"text-xl font-bold mb-3",children:"The Natural Next Step: Simple Operations Foundation"}),r.jsxs("ul",{className:"space-y-2 mb-4 text-muted-foreground",children:[r.jsx("li",{children:"⢠Advanced implementation of the 5 Core Functions"}),r.jsx("li",{children:"⢠Virtual quarterly strategic planning sessions"}),r.jsx("li",{children:"⢠Advanced team development protocols"}),r.jsx("li",{children:"⢠Market domination strategies"})]}),r.jsx("p",{className:"text-muted-foreground mb-4",children:"Foundation members average 67% growth (vs. 40% for Essentials graduates) and many go on to build 8-figure businesses."}),r.jsx("p",{className:"font-semibold",children:"But first, let's get you through your 21-day transformation. Focus on that, implement everything, and we'll talk about your next level of growth on your Week 3 strategy call."})]}),r.jsxs(G,{className:"p-8 mb-8 bg-primary/5",children:[r.jsx("h2",{className:"text-2xl font-bold mb-4",children:"Your Success Starts With Day 1"}),r.jsx("p",{className:"text-lg mb-4",children:"Right now, you're probably feeling excited, maybe a little nervous, and definitely ready for change."}),r.jsx("p",{className:"text-lg mb-4",children:"That's perfect. That energy is exactly what you need to transform from overwhelmed operator to strategic leader."}),r.jsx("p",{className:"text-lg mb-4",children:"Your business is about to change forever. Your stress level is about to plummet. Your growth is about to explode."}),r.jsx("p",{className:"text-lg font-semibold mb-6",children:"But only if you take action starting today."}),r.jsx("p",{className:"text-xl font-bold",children:"Go check your email. Log into your member portal. Take that EPT assessment."}),r.jsx("p",{className:"text-xl font-bold text-primary mt-2",children:"Your 40%+ growth journey starts now."})]}),r.jsxs(G,{className:"p-8 mb-8",children:[r.jsxs("h2",{className:"text-2xl font-bold mb-4 flex items-center gap-2",children:[r.jsx(xr,{className:"h-8 w-8 text-primary"}),"Keep an Eye Out for These Important Emails"]}
803),r.jsx("p",{className:"mb-4",children:"Over the next 21 days, you'll receive:"}),r.jsxs("ul",{className:"space-y-2 mb-6 text-muted-foreground",children:[r.jsx("li",{children:"⢠Daily Implementation Emails (keep you on track)"}),r.jsx("li",{children:"⢠Weekly Progress Check-ins (celebrate wins, troubleshoot challenges)"}),r.jsx("li",{children:"⢠Strategic Call Reminders (make sure you don't miss these critical sessions)"}),r.jsx("li",{children:"⢠Bonus Resources (advanced templates and frameworks)"})]}),r.jsxs("p",{className:"text-sm",children:["Add ",r.jsx("span",{className:"font-semibold",children:"[email protected]"})," to your contacts to ensure delivery."]})]}),r.jsxs(G,{className:"p-8 mb-8",children:[r.jsx("h2",{className:"text-2xl font-bold mb-4",children:"One Last Thing..."}),r.jsx("p",{className:"text-lg mb-4",children:"I want to personally thank you for trusting me with your business transformation."}),r.jsx("h3",{className:"text-xl font-bold mb-4",children:"Welcome to Simple Operations"}),r.jsx("p",{className:"mb-4",children:"I know you have a lot of options for business systems and coaching. The fact that you chose Simple Operations means you're serious about results, not just information."}),r.jsx("p",{className:"mb-4",children:"I'm honored to be part of your growth journey."}),r.jsx("p",{className:"mb-4",children:"Over the next 21 days, I'm going to give you everything I have. Every system, every framework, every insight that's helped hundreds of entrepreneurs achieve 40%+ growth."}),r.jsx("p",{className:"text-lg font-semibold mb-6",children:"Your job is simple: Show up and implement."}),r.jsx("p",{className:"mb-6",children:"Do that, and I guarantee your business - and your life - will never be the same."}),r.jsxs("div",{className:"border-t pt-6",children:[r.jsx("p",{className:"mb-2",children:"To your inevitable success,"}),r.jsxs("p",{className:"font-bold text-lg mb-4",children:["Gabe Arnold",r.jsx("br",{}),r.jsx("span",{className:"text-base font-normal text-muted-foreground",children:"CEO, Simple Operations"})]}),r.jsx("p",{className:"text-sm italic text-muted-foreground",children:"P.S. - Seriously, go check your email right now and take that EPT assessment. The sooner you understand your unique entrepreneurial wiring, the faster your transformation begins. Your 40%+ growth is waiting on the other side of that assessment."})]})]}),r.jsxs(G,{className:"p-8 bg-primary text-primary-foreground text-center",children:[r.jsx("h2",{className:"text-2xl font-bold mb-6",children:"ð Member Portal Access"}),r.jsxs("div",{className:"space-y-4 mb-8",children:[r.jsxs("div",{children:[r.jsx("p",{className:"font-semibold mb-1",children:"Bookmark This Page:"}),r.jsx("a",{href:"https://momentum.simpleoperations.com/",target:"_blank",rel:"noopener noreferrer",className:"text-lg underline hover:opacity-80",children:"https://momentum.simpleoperations.com/"})]}),r.jsxs("div",{children:[r.jsx("p",{className:"font-semibold mb-1",children:"Login Details:"}),r.jsx("p",{children:"Sent to your purchase email address"})]}),r.jsxs("div",{children:[r.jsx("p",{className:"font-semibold mb-1",children:"First Assignment:"}),r.jsx("p",{children:"EPT Assessment (found in Day 1 module)"})]})]}),r.jsx("p",{className:"text-xl font-bold mb-6",children:"Welcome to Simple Operations. Welcome to your freedom."}),r.jsx(te,{size:"lg",variant:"secondary",className:"mb-4",asChild:!0,children:r.jsx("a",{href:"https://momentum.simpleoperations.com/",target:"_blank",rel:"noopener noreferrer",children:"ACCESS YOUR MEMBER PORTAL NOW â"})}),r.jsxs("p",{className:"text-sm opacity-90",children:["Questions about your purchase? Email"," ",r.jsx("a",{href:"mailto:[email protected]",className:"underline hover:opacity-80",children:"[email protected]"})]})]})]})})}),r.jsx(ht,{})]})]}),Mpe=()=>{const{toast:e}=Lt(),[t,n]=j.useState({clarity:null,scale:null}),[s,a]=j.useState(!0),[i,o]=j.useState(null);j.useEffect(()=>{(async()=>{try{const{data:d,error:u}=await ve.from("stripe_products").select("product_identifier, monthly_price, annual_price").eq("is_active",!0).in("product_identifier",["c2c-clarity","c2c-scale"]);if(u)throw u;const h={clarity:null,scale:null};d==null||d.forEach(f=>{f.product_identifier==="c2c-clarity"&&f.monthly_price&&f.annual_price?h.clarity={monthly:f.monthly_price,annual:f.annual_price,annualSavings:f.monthly_price*12-f.annual_price}:f.product_identifier==="c2c-scale"&&f.monthly_price&&f.annual_price&&(h.scale={monthly:f.monthly_price,annual:f.annual_price,annualSavings:f.monthly_price*12-f.annual_price})}),n(h)}catch(d){console.error("Error fetching pricing:",d),e({title:"Error loading pricing",description:"Please refresh the page to try again.",variant:"destructive"})}finally{a(!1)}})()},[e]);const l=async(c,d)=>{o(`${c}-${d}`);try{const{data:u,error:h}=await ve.functions.invoke("create-subscription-checkout",{body:{productIdentifier:c,billingPeriod:d,successUrl:`${window.location.origin}/invest/success`,cancelUrl:`${window.location.origin}/invest`}});if(h)throw h;if(u!=null&&u.url)window.location.href=u.url;else throw new Error("No checkout URL returned")}catch(u){console.error("Error creating checkout:",u),e({title:"Error",description:"Failed to create checkout session. Please try again.",variant:"destructive"}),o(null)}};return r.jsxs("div",{className:"min-h-screen bg-background",children:[r.jsx(vr,{title:"Investment Options - Simple Operations",description:"Choose your path to business transformation with the Clarity Method or Scale Method. 12-month membership agreement."}),r.jsx(_t,{}),r.jsxs("main",{className:"container mx-auto px-4 pt-24 pb-16",children:[r.jsxs("div",{className:"text-center mb-16",children:[r.jsx("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-bold mb-6",children:"Ready to Transform Your Business?"}),r.jsx("p",{className:"text-xl md:text-2xl text-muted-foreground max-w-3xl mx-auto mb-4",children:"Choose Your Path Forward"}),r.jsxs("p",{className:"text-base text-muted-foreground max-w-2xl mx-auto",children:["All memberships are a ",r.jsx("span",{className:"font-semibold text-foreground",children:"12-month commitment"})," â billed monthly or annually at a discounted rate."]})]}),r.jsxs("div",{className:"grid md:grid-cols-2 gap-8 max-w-6xl mx-auto mb-16",children:[r.jsxs(G,{className:"p-8 flex flex-col",children:[r.jsx("h2",{className:"text-3xl font-bold mb-4",children:"Clarity Method"}),r.jsx("p",{className:"text-lg mb-6",children:"Get crystal clear on your business foundation and build sustainable systems that work."}),r.jsx("p",{className:"mb-6",children:"Perfect for entrepreneurs ready to eliminate chaos, focus their efforts, and create predictable growth through proven frameworks and accountability."}),r.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Ideal for $50K-$750K annual revenue entrepreneurs and their teams who are building their foundation."}),r.jsx("p",{className:"text-sm font-semibold text-primary mb-8",children:"12-month membership agreement"}),r.jsx("div",{className:"space-y-6 mt-auto",children:r.jsxs("div",{children:[r.jsx("h3",{className:"font-semibold mb-4",children:"Investment Options:"}),s?r.jsx("div",{className:"flex items-center justify-center py-8",children:r.jsx(wt,{className:"h-8 w-8 animate-spin"})}):t.clarity?r.jsxs(r.Fragment,{children:[r.jsxs(G,{className:"p-6 mb-4 border-2 border-primary",children:[r.jsxs("div",{className:"flex justify-between items-start mb-2",children:[r.jsxs("div",{children:[r.jsx("div",{className:"text-sm font-semibold text-primary mb-1",children:"BEST VALUE"}),r.jsx("div",{className:"text-2xl font-bold",children:"Pay Annually"})]}),r.jsxs("div",{className:"text-right",children:[r.jsxs("div",{className:"text-3xl font-bold",children:["$",t.clarity.annual.toLocaleStr
803ing()]}),r.jsxs("div",{className:"text-sm text-muted-foreground",children:["(Save $",t.clarity.annualSavings.toLocaleString(),")"]})]})]}),r.jsx("p",{className:"text-xs text-muted-foreground mb-4",children:"One payment for 12 months"}),r.jsx(te,{className:"w-full",size:"lg",onClick:()=>l("c2c-clarity","annual"),disabled:i==="c2c-clarity-annual",children:i==="c2c-clarity-annual"?r.jsxs(r.Fragment,{children:[r.jsx(wt,{className:"h-4 w-4 animate-spin"})," Processing..."]}):"Subscribe â Annual"})]}),r.jsxs(G,{className:"p-6 border",children:[r.jsxs("div",{className:"flex justify-between items-start mb-2",children:[r.jsx("div",{className:"text-2xl font-bold",children:"Pay Monthly"}),r.jsx("div",{className:"text-right",children:r.jsxs("div",{className:"text-3xl font-bold",children:["$",t.clarity.monthly.toLocaleString(),r.jsx("span",{className:"text-base font-normal text-muted-foreground",children:"/mo"})]})})]}),r.jsx("p",{className:"text-xs text-muted-foreground mb-4",children:"Billed monthly for 12 months"}),r.jsx(te,{variant:"outline",className:"w-full",size:"lg",onClick:()=>l("c2c-clarity","monthly"),disabled:i==="c2c-clarity-monthly",children:i==="c2c-clarity-monthly"?r.jsxs(r.Fragment,{children:[r.jsx(wt,{className:"h-4 w-4 animate-spin"})," Processing..."]}):"Subscribe â Monthly"})]})]}):r.jsx("p",{className:"text-muted-foreground text-center py-4",children:"Pricing not configured"}),r.jsxs("p",{className:"text-xs text-muted-foreground text-center mt-4",children:["By completing payment you agree to our"," ",r.jsx("a",{href:"/terms-of-service",target:"_blank",rel:"noopener noreferrer",className:"underline hover:text-foreground",children:"Terms of Service"})]})]})})]}),r.jsxs(G,{className:"p-8 flex flex-col",children:[r.jsx("h2",{className:"text-3xl font-bold mb-4",children:"Scale Method"}),r.jsx("p",{className:"text-lg mb-6",children:"Scale beyond yourself and build a business that runs without you."}),r.jsx("p",{className:"mb-6",children:"Designed for established entrepreneurs ready to build leadership teams, implement advanced systems, and create true business freedom through operational excellence."}),r.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Ideal for $500K-$10M+ annual revenue entrepreneurs and their teams who are ready to scale profitably while leading from the passenger seat."}),r.jsx("p",{className:"text-sm font-semibold text-primary mb-4",children:"12-month membership agreement"}),r.jsx("p",{className:"text-sm text-muted-foreground mb-8 italic font-bold",children:"Note: If you're between $500K-$750K, we'll determine your ideal path together on your strategy call."}),r.jsx("div",{className:"space-y-6 mt-auto",children:r.jsxs("div",{children:[r.jsx("h3",{className:"font-semibold mb-4",children:"Investment Options:"}),s?r.jsx("div",{className:"flex items-center justify-center py-8",children:r.jsx(wt,{className:"h-8 w-8 animate-spin"})}):t.scale?r.jsxs(r.Fragment,{children:[r.jsxs(G,{className:"p-6 mb-4 border-2 border-primary",children:[r.jsxs("div",{className:"flex justify-between items-start mb-2",children:[r.jsxs("div",{children:[r.jsx("div",{className:"text-sm font-semibold text-primary mb-1",children:"BEST VALUE"}),r.jsx("div",{className:"text-2xl font-bold",children:"Pay Annually"})]}),r.jsxs("div",{className:"text-right",children:[r.jsxs("div",{className:"text-3xl font-bold",children:["$",t.scale.annual.toLocaleString()]}),r.jsxs("div",{className:"text-sm text-muted-foreground",children:["(Save $",t.scale.annualSavings.toLocaleString(),")"]})]})]}),r.jsx("p",{className:"text-xs text-muted-foreground mb-4",children:"One payment for 12 months"}),r.jsx(te,{className:"w-full",size:"lg",onClick:()=>l("c2c-scale","annual"),disabled:i==="c2c-scale-annual",children:i==="c2c-scale-annual"?r.jsxs(r.Fragment,{children:[r.jsx(wt,{className:"h-4 w-4 animate-spin"})," Processing..."]}):"Subscribe â Annual"})]}),r.jsxs(G,{className:"p-6 border",children:[r.jsxs("div",{className:"flex justify-between items-start mb-2",children:[r.jsx("div",{className:"text-2xl font-bold",children:"Pay Monthly"}),r.jsx("div",{className:"text-right",children:r.jsxs("div",{className:"text-3xl font-bold",children:["$",t.scale.monthly.toLocaleStr
803ing(),r.jsx("span",{className:"text-base font-normal text-muted-foreground",children:"/mo"})]})})]}),r.jsx("p",{className:"text-xs text-muted-foreground mb-4",children:"Billed monthly for 12 months"}),r.jsx(te,{variant:"outline",className:"w-full",size:"lg",onClick:()=>l("c2c-scale","monthly"),disabled:i==="c2c-scale-monthly",children:i==="c2c-scale-monthly"?r.jsxs(r.Fragment,{children:[r.jsx(wt,{className:"h-4 w-4 animate-spin"})," Processing..."]}):"Subscribe â Monthly"})]})]}):r.jsx("p",{className:"text-muted-foreground text-center py-4",children:"Pricing not configured"}),r.jsxs("p",{className:"text-xs text-muted-foreground text-center mt-4",children:["By completing payment you agree to our"," ",r.jsx("a",{href:"/terms-of-service",target:"_blank",rel:"noopener noreferrer",className:"underline hover:text-foreground",children:"Terms of Service"})]})]})})]})]}),r.jsx("div",{className:"text-center mb-16",children:r.jsxs(te,{size:"lg",variant:"default",onClick:()=>{var c;(c=document.getElementById("guarantee-section"))==null||c.scrollIntoView({behavior:"smooth",block:"start"})},className:"text-lg px-8 py-6",children:[r.jsx(Wn,{className:"h-5 w-5"}),"100% Risk Free Money-Back Guarantee"]})}),r.jsxs("section",{className:"max-w-4xl mx-auto mb-16",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-center mb-12",children:"Why This Investment Changes Everything"}),r.jsxs("div",{className:"space-y-8",children:[r.jsxs("div",{children:[r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Stop Playing Small."}),r.jsx("p",{className:"text-lg text-muted-foreground",children:"Every month you delay implementing proven systems costs you more in lost revenue, wasted time, and missed opportunities than these programs cost."})]}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Proven Results."}),r.jsx("p",{className:"text-lg text-muted-foreground",children:"These aren't theoryâthey're battle-tested frameworks that have transformed thousands of businesses from chaos to clarity, from overwhelm to freedom."})]})]})]}),r.jsxs("section",{className:"max-w-4xl mx-auto mb-16 text-center",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6",children:"Your Future Self Will Thank You"}),r.jsx("p",{className:"text-lg text-muted-foreground mb-4",children:"The entrepreneur who invests in real systems today becomes the leader who has time, profit, and peace of mind tomorrow."}),r.jsx("p",{className:"text-xl font-semibold",children:"The question isn't whether you can afford to investâit's whether you can afford not to."})]}),r.jsx("section",{id:"guarantee-section",className:"max-w-4xl mx-auto",children:r.jsxs(G,{className:"p-8 md:p-12 bg-primary/5 border-2 border-primary",children:[r.jsxs("div",{className:"text-center mb-8",children:[r.jsx(Wn,{className:"h-16 w-16 mx-auto mb-4 text-primary"}),r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"Your Success Is 100% Risk-Free"})]}),r.jsxs("div",{className:"space-y-6 text-lg",children:[r.jsx("p",{children:"Try the Method for 30 days. If you're not completely satisfied with your progress, we'll refund 100% of your investment. No questions asked. No hoops to jump through. No fine print."}),r.jsx("p",{children:`Unlike other programs that make you "prove" you did the work, we make it simple: If within 30 days you decide this isn't the right fit for your business, just send us an email. Your refund will be processed within 5 business days.`}),r.jsx("p",{children:"This is about whether YOU feel the system is delivering value to YOUR business. We're not measuring arbitrary metricsâwe're measuring your satisfaction with real progress toward the transformation you're investing in."}),r.jsx("p",{className:"font-semibold text-foreground",children:"Both memberships are a 12-month agreement. You may choose to pay annually (one upfront payment) or monthly over 12 months."})]}),r.jsxs("div",{className:"text-center mt-12",children:[r.jsx("h3",{className:"text-2xl font-bold mb-4",children:"Ready to stop surviving and start thriving?"}),r.jsx("p",{className:"text-muted-foreground mb-4",children:"Choose your method above and start your risk-free transformation today."}),r.jsx("p",{className:"text-xl font-bold",children:"30 Days. Zero Risk. Unlimited Potential."})]})]})})]}),r.jsx(ht,{})]})},Dpe=()=>{const e=po();return r.jsxs(r.Fragment,{children:[r.jsx(vr,{title:"Thank You - Investment Confirmed",description:"Thank y
803ou for investing in your business transformation with Simple Operations."}),r.jsxs("div",{className:"min-h-screen flex flex-col",children:[r.jsx(_t,{}),r.jsx("main",{className:"flex-1 pt-24 pb-16",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsxs("div",{className:"max-w-3xl mx-auto",children:[r.jsxs("div",{className:"text-center mb-8",children:[r.jsx(bt,{className:"w-24 h-24 text-primary mx-auto mb-6"}),r.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-4",children:"Thank You for Making This Investment in Yourself"})]}),r.jsx(rm,{}),r.jsxs("div",{className:"bg-muted/50 border border-border rounded-lg p-6 md:p-8 mb-8",children:[r.jsx("p",{className:"text-lg mb-4",children:"Thank you for partnering with us on your business transformation journey."}),r.jsx("p",{className:"text-lg font-semibold mb-4",children:"Your Simple Operations Guide will be in touch within 48 business hours to schedule your onboarding call."}),r.jsxs("p",{className:"text-muted-foreground",children:["Email us at"," ",r.jsx("a",{href:"mailto:[email protected]",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline font-medium",children:"[email protected]"})," ","if you have any questions."]})]}),r.jsx("div",{className:"text-center",children:r.jsx(te,{onClick:()=>e("/"),size:"lg",children:"Return to Home"})})]})})}),r.jsx(ht,{})]})]})},Fpe="https://api.bmecrm.com/widget/booking/uZQiX3udSIYkuoSH2iqD",Lpe=()=>{const e=j.useRef(null),[t,n]=j.useState(Fpe),[s,a]=j.useState(""),[i,o]=j.useState(700),l=j.useRef(null);j.useEffect(()=>{(async()=>{try{const{data:u,error:h}=await ve.from("admin_settings").select("setting_key, setting_value").in("setting_key",["clarity_call_embed_url","clarity_full_width_embed"]);if(!h&&u)for(const f of u)f.setting_key==="clarity_call_embed_url"&&f.setting_value&&n(f.setting_value),f.setting_key==="clarity_full_width_embed"&&f.setting_value&&a(f.setting_value)}catch(u){console.log("Using defaults:",u)}})()},[]),j.useEffect(()=>{const d=document.createElement("script");return d.src="https://api.bmecrm.com/js/form_embed.js",d.type="text/javascript",d.async=!0,document.body.appendChild(d),()=>{document.body.removeChild(d)}},[]),j.useEffect(()=>{const d=u=>{var h,f;((h=u.data)==null?void 0:h.type)==="resize"&&((f=u.data)!=null&&f.height)&&o(u.data.height)};return window.addEventListener("message",d),()=>window.removeEventListener("message",d)},[]);const c=j.useCallback(()=>{const d=window.innerWidth<768;o(d?1400:900)},[]);return r.jsxs("div",{className:"min-h-screen",children:[r.jsx(vr,{title:"Book Your Complimentary Clarity Call | Simple Operations",description:"Get unstuck and find clarity in your business. Book a free strategy call where we uncover blockers, provide proven recommendations, and help you move forward with confidence.",keywords:"clarity call, business strategy call, free consultation, business coaching, operational clarity"}),r.jsx(_t,{}),r.jsxs("main",{className:"pt-24",children:[r.jsx("section",{className:"py-10 md:py-14 bg-gradient-subtle",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsxs("div",{className:"max-w-4xl mx-auto text-center space-y-4",children:[r.jsx("p",{className:"text-primary font-semibold tracking-wide uppercase text-sm",children:"Complimentary Strategy Session"}),r.jsxs("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-bold text-foreground leading-tight",children:["Get Unstuck. Find Clarity."," ",r.jsx("span",{className:"text-primary",children:"Move Forward."})]}),r.jsx("p",{className:"text-lg md:text-xl text-muted-foreground max-w-2xl mx-auto leading-relaxed",children:"You don't need another course or more content. You need someone who's been where you are to help you see what's really holding you back â and what to do about it."}),r.jsxs("div",{className:"flex items-center justify-center gap-2 text-muted-foreground text-sm",children:[r.jsx(zt,{className:"w-4 h-4 text-primary"}),r.jsx("span",{children:"30-minute call · No cost · No obligation"})]})]})})}),r.jsx("section",{className:"py-8 md:py-10 bg-background",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsxs("div",{className:"max-w-4xl mx-auto",children:[r.jsxs("div",{className:"text-center mb-5 space-y-1",children:[r.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-foreground",children:"Book Your Clarity Call Now"}),r.jsx("p",{className:"text-muted-foreground",children:"Pick a time that works for you. We'll handle the rest."})]}),r.jsx("div",{className:"bg-card rounded-2xl shadow-medium border border-border overflow-hidden",children:r.jsx("div",{ref:e,children:r.jsx("iframe",{ref:l,src:t,className:"w-full border-none transition-[height] duration-300",style:{height:`${i}px`},scrolling:"no",title:"Book your complimentary clarity call",onLoad:c})})})]})})}),r.jsx("section",{className:"py-12 md:py-16 bg-section-gray",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsxs("div",{className:"max-w-5xl mx-auto",children:[r.jsxs("div",{className:"text-center mb-8 space-y-2",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground",children:"What Happens on Your Clarity Call"}),r.jsx("p",{className:"text-muted-foreground text-lg max-w-2xl mx-auto",children:"This isn't a sales pitch. It's a genuine conversation designed to help you leave with actionable insight â whether we ever work together or not."})]}),r.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:[{icon:Rs,title:"Uncover Your Blockers",desc:"We'll dig into the specific operational challenges keeping you stuck â the ones you might not even realize are costing you time, revenue, and peace of mind."},{icon:yw,title:"Strategic Recommendations",desc:"Based on proven principles that have helped hundreds of business owners, you'll receive personalized guidance tailored to your specific situation and goals."},{icon:ss,title:"A Clear Path Forward",desc:"You'll leave the call knowing exactly what to focus on next â so you can stop spinning your wheels and start making meaningful progress in your business."}].map((d,u)=>r.jsxs("div",{className:"bg-card rounded-2xl p-7 shadow-soft border border-border hover:shadow-medium transition-shadow",children:[r.jsx("div",{className:"w-12 h-12 bg-primary/10 rounded-xl flex items-center justify-center mb-4",children:r.jsx(d.icon,{className:"w-6 h-6 text-primary"})}),r.jsx("h3",{className:"text-xl font-semibold text-foreground mb-2",children:d.title}),r.jsx("p",{className:"text-muted-foreground leading-relaxed",children:d.desc})]},u))})]})})}),s&&r.jsx("section",{className:"w-full bg-background",children:r.jsx("div",{dangerouslySetInnerHTML:{__html:mx.sanitize(s,{ADD_TAGS:["iframe"],ADD_ATTR:["allow","allowfullscreen","frameborder","scrolling","src","loading"]})},className:"w-full [&>iframe]:w-full [&>iframe]:border-none [&>iframe]:min-h-[400px] [&>div]:w-full"})}),r.jsx("section",{className:"py-12 md:py-16 bg-background",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsx("div",{className:"max-w-4xl mx-auto",children:r.jsxs("div",{className:"grid md:grid-cols-2 gap-10 items-start",children:[r.jsxs("div",{className:"space-y-5",children:[r.jsx("h2",{className:"text-3xl font-bold text-foreground",children:"This Call Is For You Ifâ¦"}),r.jsx("ul",{className:"space-y-3",children:["You're working harder than ever but feel like you're not making real progress","You know something needs to change in your business, but you're not sure where to start","You're making decisions on the fly and it's leading to inconsistency and burnout","You want to grow but feel like you're the bottleneck holding everything back","You've tried other programs or advice but nothing has clicked for your specific situation"].map((d,u)=>r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx($e,{className:"w-5 h-5 text-primary mt-0.5 flex-shrink-0"}),r.jsx("span",{className:"text-muted-foreground leading-relaxed",children:d})]},u))})]}),r.jsxs("div",{className:"bg-card rounded-2xl p-7 shadow-soft border border-border space-y-5",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx(Wn,{className:"w-6 h-6 text-primary"}),r.jsx("h3",{className:"text-xl font-semibold text-foreground",children:"Our Promise to You"})]}),r.jsxs("p",{className:"text-muted-foreground leading-relaxed",children:["We believe in a relationship-first approach. This call is about ",r.jsx("strong",{className:"text-foreground",children:"you"})," â your challenges, your goals, and what's possible for your business. There's no pressure, no hard sell, and no gimmicks."]}),r.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"If we can help, we'll tell you how. If we can't, we'll point you in the right direction. Either way, you'll walk away with more clarity than you had before."})]})]})})})}),r.jsx("section",{className:"py-12 md:py-16 bg-section-gray",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsxs("div",{className:"max-w-3xl mx-auto text-center space-y-5",children:[r.jsx("h2",{className:"text-3xl font-bold text-foreground",children:"Still Thinking About It?"}),r.jsx("p",{className:"text-lg text-muted-foreground leading-relaxed",children:"Every day you stay
803stuck is another day your business runs on chaos instead of clarity. One conversation can change your entire trajectory. The only thing you have to lose is the confusion holding you back."}),r.jsxs("p",{className:"text-muted-foreground",children:[r.jsx("strong",{className:"text-foreground",children:"Over 500 business owners"})," have used Simple Operations' proven principles to escape operational overwhelm and build businesses that run without them. Your clarity call is the first step."]})]})})})]}),r.jsx(ht,{})]})},Bpe=()=>{const{user:e}=sn(),{toast:t}=Lt(),[n,s]=j.useState("https://api.bmecrm.com/widget/booking/uZQiX3udSIYkuoSH2iqD"),[a,i]=j.useState(""),[o,l]=j.useState(!0),[c,d]=j.useState(!1),[u,h]=j.useState(!1);j.useEffect(()=>{f()},[]);const f=async()=>{try{const{data:p,error:v}=await ve.from("admin_settings").select("setting_key, setting_value").in("setting_key",["clarity_call_embed_url","clarity_full_width_embed"]);if(!v&&p)for(const g of p)g.setting_key==="clarity_call_embed_url"&&s(g.setting_value),g.setting_key==="clarity_full_width_embed"&&i(g.setting_value)}catch(p){console.log("Failed to fetch settings:",p)}finally{l(!1)}},m=async()=>{d(!0);try{const{error:p}=await ve.from("admin_settings").update({setting_value:n,updated_at:new Date().toISOString()}).eq("setting_key","clarity_call_embed_url");if(p){const{error:v}=await ve.from("admin_settings").upsert({setting_key:"clarity_call_embed_url",setting_value:n,description:"The GoHighLevel calendar booking embed URL for the Clarity Call page"},{onConflict:"setting_key"});if(v)throw v}t({title:"Embed URL saved",description:"The Clarity Call calendar embed URL has been updated successfully."})}catch(p){console.error("Error saving embed URL:",p),t({title:"Error",description:"Failed to save the embed URL. Please try again.",variant:"destructive"})}finally{d(!1)}},y=async()=>{h(!0);try{const{error:p}=await ve.from("admin_settings").upsert({setting_key:"clarity_full_width_embed",setting_value:a,description:"Full-width embed code displayed above 'This Call Is For You If' section on Clarity Call page"},{onConflict:"setting_key"});if(p)throw p;t({title:"Embed code saved",description:"The full-width embed code has been updated successfully."})}catch(p){console.error("Error saving embed code:",p),t({title:"Error",description:"Failed to save the embed code. Please try again.",variant:"destructive"})}finally{h(!1)}};return o?r.jsx(Nt,{children:r.jsxs("div",{className:"min-h-screen flex w-full",children:[r.jsx(kt,{}),r.jsx("div",{className:"flex-1 flex items-center justify-center",children:r.jsx("div",{className:"animate-spin rounded-full h-32 w-32 border-b-2 border-primary"})})]})}):r.jsx(Nt,{children:r.jsxs("div",{className:"min-h-screen flex w-full",children:[r.jsx(kt,{}),r.jsxs("div",{className:"flex-1 flex flex-col",children:[r.jsxs("header",{className:"h-16 border-b flex items-center px-6 bg-background",children:[r.jsx(Tr,{className:"mr-4"}),r.jsx("h1",{className:"text-2xl font-semibold",children:"Clarity Call Settings"}),r.jsxs("div",{className:"ml-auto flex items-center gap-4",children:[r.jsxs("span",{className:"text-sm text-muted-foreground",children:["Welcome, ",(e==null?void 0:e.email)||"Admin"]}),r.jsxs(te,{variant:"outline",size:"sm",onClick:()=>window.open("/clarity","_blank"),className:"flex items-center gap-2",children:[r.jsx(Uu,{className:"h-4 w-4"}),"View Page"]}),r.jsxs(te,{variant:"outline",size:"sm",onClick:()=>window.open("/","_blank"),className:"flex items-center gap-2",children:[r.jsx(Cr,{className:"h-4 w-4"}),"View Website"]})]})]}),r.jsx("main",{className:"flex-1 p-6",children:r.jsxs("div",{className:"max-w-2xl space-y-6",children:[r.jsxs(G,{children:[r.jsx(Ie,{children:r.jsxs(Me,{className:"flex items-center gap-2",children:[r.jsx(qu,{className:"w-5 h-5"}),"Calendar Embed Settings"]})}),r.jsxs(Ne,{className:"space-y-4",children:[r.jsxs("div",{className:"space-y-2",children:[r.jsx(oe,{htmlFor:"embed-url",children:"Calendar Embed URL"}),r.jsx(je,{id:"embed-url",type:"url",value:n,onChange:p=>s(p.target.value),placeholder:"https://api.bmecrm.com/widget/booking/...",className:"border-2 border-muted bg-card focus:border-primary focus:bg-background hover:border-muted-foreground transition-colors shadow-sm"}),r.jsxs("p",{className:"text-xs text-muted-foreground",children:["Paste the full URL from your GoHighLevel calendar widget embed code. This is the ",r.jsx("code",{className:"bg-muted px-1 rounded",children:"src"})," value from the iframe."]})]}),r.jsx("div",{className:"pt-4",children:r.jsx(te,{onClick:m,disabled:c,
803className:"w-full",children:c?r.jsxs(r.Fragment,{children:[r.jsx(Mn,{className:"w-4 h-4 mr-2 animate-spin"}),"Saving..."]}):r.jsxs(r.Fragment,{children:[r.jsx(Lr,{className:"w-4 h-4 mr-2"}),"Save Embed URL"]})})})]})]}),r.jsxs(G,{children:[r.jsx(Ie,{children:r.jsxs(Me,{className:"flex items-center gap-2",children:[r.jsx(_7,{className:"w-5 h-5"}),"Full-Width Embed Code"]})}),r.jsxs(Ne,{className:"space-y-4",children:[r.jsxs("div",{className:"space-y-2",children:[r.jsx(oe,{htmlFor:"full-width-embed",children:"Embed HTML Code"}),r.jsx(bn,{id:"full-width-embed",value:a,onChange:p=>i(p.target.value),placeholder:'<iframe src="https://..." width="100%" height="400" ...></iframe>',className:"border-2 border-muted bg-card focus:border-primary focus:bg-background hover:border-muted-foreground transition-colors shadow-sm font-mono text-xs min-h-[120px]"}),r.jsx("p",{className:"text-xs text-muted-foreground",children:'Paste any embed code (iframe, script, etc.) to display full-width above the "This Call Is For You Ifâ¦" section on the Clarity Call page. Leave empty to hide.'})]}),r.jsx("div",{className:"pt-2",children:r.jsx(te,{onClick:y,disabled:u,className:"w-full",children:u?r.jsxs(r.Fragment,{children:[r.jsx(Mn,{className:"w-4 h-4 mr-2 animate-spin"}),"Saving..."]}):r.jsxs(r.Fragment,{children:[r.jsx(Lr,{className:"w-4 h-4 mr-2"}),"Save Embed Code"]})})})]})]}),r.jsxs(G,{children:[r.jsx(Ie,{children:r.jsxs(Me,{className:"flex items-center gap-2",children:[r.jsx(Uu,{className:"w-5 h-5"}),"Live Preview"]})}),r.jsx(Ne,{children:n?r.jsx("div",{className:"rounded-lg border border-border overflow-hidden",children:r.jsx("iframe",{src:n,style:{width:"100%",border:"none",overflow:"hidden",minHeight:"600px"},scrolling:"no",title:"Clarity Call calendar preview"})}):r.jsxs("div",{className:"text-center py-12 text-muted-foreground",children:[r.jsx(qu,{className:"w-12 h-12 mx-auto mb-4 opacity-50"}),r.jsx("p",{children:"No embed URL configured. Paste a GoHighLevel calendar widget URL above to see a preview."})]})})]}),r.jsxs(G,{children:[r.jsx(Ie,{children:r.jsx(Me,{children:"How This Works"})}),r.jsxs(Ne,{className:"space-y-2 text-sm text-muted-foreground",children:[r.jsxs("p",{children:[r.jsx("strong",{children:"Calendar Embed URL:"})," This is the URL that powers the booking calendar on the"," ",r.jsx("a",{href:"/clarity",target:"_blank",rel:"noopener noreferrer",className:"text-primary underline",children:"/clarity"})," ","page. It's loaded inside an iframe so visitors can book a complimentary clarity call."]}),r.jsxs("p",{children:[r.jsx("strong",{children:"To get your embed URL:"})," Go to GoHighLevel â Calendars â select your calendar â Embed & Share â copy the ",r.jsx("code",{className:"bg-muted px-1 rounded",children:"src"})," URL from the iframe embed code."]}),r.jsx("p",{className:"pt-2 text-xs",children:"Changes take effect immediately after saving. Visit the Clarity Call page to verify."})]})]})]})})]})]})})},Wpe="passenger-seat-workshop",Upe=[{title:"Lead with Clarity",desc:"Define WHERE you're going, let your team figure out HOW."},{title:"Build Momentum with Rhythm",desc:"Systems that run whether you're there or not."},{title:"Measure What Matters",desc:"Dashboard visibility without micromanaging."},{title:"Deliver Predictable Outcomes",desc:"Projects that finish on time without your oversight."},{title:"Create a Culture of Accountability",desc:"Team members who own results."}],qpe=[{label:"SESSION 1",title:"Why Great Leaders Belong in the Passenger Seat",duration:"45 Minutes",discoverLabel:"You'll discover:",discover:["Why making 35,000 daily decisions sabotages your strategic thinking","The real reason 87.7% of entrepreneurs struggle with mental health","Why staying in the driver's seat kills growth (and nearly killed my business)"],liveLabel:"You'll create:",live:["Your Driver vs. Passenger Assessment","Your Control Paradox Audit (what you think you control vs. what you actually control)","Your Growth Ceiling Identifier"]},{label:"SESSION 2",title:"The 5 Systems That Let Your Team Drive",duration:"45 Minutes",discoverLabel:"You'll learn how to:",discover:["Delegate without losing control (the key insight most miss)","Cut interruptions by 95% in 30 days using Daily Huddles","Get your team to take ownership without nagging"],liveLabel:"You'll walk out with:",live:["Your first delegation system (built live)","The Delegation Without Abdication Framework","A 48-hour implementation plan"]},{label:"SESSION 3",title:"Your 30-Day Move to the Passenger Seat",duration:"45 Minutes",discoverLabel:"You'll create:",discover:["Your complete 30-day transition roadmap","Your Operator identification process (who on your team can take the wheel)","Systems that maintain quality while giving you freedom","The exact schedule that lets you work 20-30 hours per week"],liveLabel:"You'll leave with:",live:["Your Passenger Seat Transition Plan","Your Driver Identification Worksheet","Your Freedom Timeline (when you'll experience each level of passenger seat freedom)"]}],Hpe=[{name:"Colin Thompson",company:"Thompson Inspections",lead:"Colin went from $18,000 to $55,000 per month:",result:"$18K â $55K / month",quote:"The whole admin side is running by itself. My Operator handles everything now. It's absolutely incredible. It totally ran without me all last week. I didn't touch anything."},{name:"Dustin Fatch",company:"Marketing Dr.",lead:"Dustin finally got stability:",result:"More stability, more clarity",quote:"It's nice having some more foundational pieces. As a foun
803der, it helps you be a little more level-headed and a little more secure."},{name:"Michele Finn",company:"Jubilee of Wellness",lead:"Michele got her boundaries back:",result:"Boundaries restored",quote:"I just feel like I'm in a good place for boundaries this year and I appreciate that because that's not something that comes easily for me."}],zpe=["87.7% of entrepreneurs struggle with mental health issues","33 working days lost to stress every year","8 hours weekly consumed by financial worry","8à higher stress when you lack expense control"],Gpe=["You're happy working 60+ hours per week","You believe only you can do things right","You're not ready to let your team take ownership","You prefer chaos over systems"],Ype=["You're running an expert-led business between $500Kâ$10M","You're tired of being the bottleneck in your own success","You want to scale without sacrificing family time","You're ready to work ON your business instead of IN it"],Vpe=["Making every decision","Handling every crisis","Working IN the business","Limited by your personal capacity"],Kpe=["Guiding the direction","Letting your team handle operations","Working ON the business","Scaling through systems"];function Qpe(){const e=j.useRef(null),[t,n]=j.useState(""),[s,a]=j.useState(""),[i,o]=j.useState(""),[l,c]=j.useState(""),[d,u]=j.useState(!1),{toast:h}=Lt();j.useEffect(()=>{window.scrollTo(0,0)},[]);const f=()=>{var y;(y=e.current)==null||y.scrollIntoView({behavior:"smooth",block:"start"})},m=async y=>{if(y.preventDefault(),!t.trim()||!i.trim()||!l.trim()){h({title:"Please complete the form",description:"First name, email, and phone are required.",variant:"destructive"});return}u(!0);try{const p=`${t.trim()} ${s.trim()}`.trim(),{data:v,error:g}=await ve.functions.invoke("create-stripe-checkout",{body:{paymentType:"one_pay",customerEmail:i.trim(),customerName:p,productIdentifier:Wpe}});if(g)throw g;if(v!=null&&v.url)window.location.href=v.url;else throw new Error("No checkout URL returned")}catch(p){console.error("Workshop checkout error:",p),h({title:"Checkout error",description:p.message||"Unable to start checkout. Please try again.",variant:"destructive"}),u(!1)}};return r.jsxs(r.Fragment,{children:[r.jsx(vr,{title:"Passenger Seat Breakthrough Workshop â $35 Live Workshop",description:"A 3-hour live workshop for $500Kâ$10M founders. Stop being your business's biggest bottleneck and grow 40% faster. $35, fully refundable."}),r.jsxs("div",{className:"min-h-screen bg-background flex flex-col",children:[r.jsx(_t,{}),r.jsxs("main",{className:"flex-1",children:[r.jsx("section",{className:"relative pt-28 md:pt-36 pb-16 md:pb-24 px-4 bg-gradient-to-b from-primary/10 via-background to-background",children:r.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[r.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-primary/10 border border-primary/20 text-primary text-xs sm:text-sm font-semibold mb-6",children:[r.jsx(Is,{className:"h-4 w-4"}),"LIVE INTERACTIVE WORKSHOP"]}),r.jsx("h1",{className:"text-3xl sm:text-5xl md:text-6xl font-bold leading-tight mb-5",children:"Stop Being Your Business's Bottleneck"}),r.jsx("p",{className:"text-lg sm:text-2xl text-muted-foreground font-medium mb-10 leading-snug max-w-3xl mx-auto",children:"The 3-hour workshop that shows you how to work ON your business instead of being trapped IN it."}),r.jsxs(G,{className:"p-6 sm:p-8 max-w-2xl mx-auto mb-8 border-2 border-primary/30 shadow-soft text-left",children:[r.jsxs("div",{className:"grid sm:grid-cols-2 gap-6",children:[r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(gr,{className:"h-6 w-6 text-primary flex-shrink-0 mt-1"}),r.jsxs("div",{children:[r.jsx("p",{className:"font-bold",children:"Wednesday, June 24th"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"11:00 AM EST"}),r.jsx("p",{className:"text-xs text-muted-foreground",children:"10 AM CST · 9 AM MST · 8 AM PST"})]})]}),r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(zt,{className:"h-6 w-6 text-primary flex-shrink-0 mt-1"}),r.jsxs("div",{children:[r.jsx("p",{className:"font-bold",children:"3 Hours Total"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"3 Sessions à 45 minutes"}),r.jsx("p",{className:"text-xs text-muted-foreground",children:"with short breaks"})]})]})]}),r.jsxs("div",{className:"mt-6 pt-6 border-t flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4",children:[r.jsxs("div",{children:[r.jsx("p",{className:"text-3xl font-bold",children:"$35"}),r.jsxs("p",{className:"text-sm text-muted-foreground flex items-center gap-1.5",children:[r.jsx(Bn,{className:"h-4 w-4 text-primary"}),"Fully Refundable"]})]}),r.jsxs(te,{variant:"hero",size:"lg",onClick:f,className:"text-base sm:text-lg",children:["Register Now ",r.jsx(Ue,{className:"h-5 w-5"})]})]})]})]})}),r.jsx("section",{className:"py-16 md:py-24 px-4",children:r.jsxs("div",{className:"max-w-3xl mx-auto",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-8 leading-tight",children:"If You're Exhausted From Making Every Single Decisionâ¦"}),r.jsxs("div",{className:"space-y-5 text-lg leading-relaxed",children:[r.jsxs("p",{children:["You're making ",r.jsx("strong",{children:"35,000 decisions every day"})," while Fortune 500 CEOs make only 35."]}),r.jsxs("p",{children:["You're working ",r.jsx("strong",{children:"60+ hour weeks"})," while competitors get twice as much done with half the effort."]}),r.jsxs("p",{children:["You lie awake at ",r.jsx("strong",{children:"3 AM"})," wondering how you'll ever break through your current ceiling."]}),r.jsx("p",{className:"text-xl font-semibold pt-4",children:"The problem isn't that you need to work harder."}),r.jsx("p",{className:"text-xl font-bold text-primary",children:"The problem is you're in the wrong seat."})]})]})}),r.jsx("section",{className:"py-16 md:py-24 px-4 bg-muted/40",children:r.jsxs("div",{className:"max-w-6xl mx-auto",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-12 text-center leading-tight",children:"What Happens When You Move to the Passenger Seat"}),r.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:Hpe.map(y=>r.jsxs(G,{className:"p-6 flex flex-col",children:[r.jsx("p",{className:"font-semibold mb-3",children:y.lead}),r.jsx(jr,{className:"h-8 w-8 text-primary mb-4"}),r.jsxs("p",{className:"text-base leading-relaxed italic mb-6 flex-1",children:['"',y.quote,'"']}),r.jsxs("div",{className:"pt-4 border-t",children:[r.jsx("p",{className:"font-bold",children:y.name}),r.jsx("p",{className:"text-sm text-muted-foreground",children:y.company}),r.jsx("p",{className:"text-sm text-primary font-semibold mt-1",children:y.result})]})]},y.name))})]})}),r.jsx("section",{className:"py-16 md:py-24 px-4",children:r.jsxs("div",{className:"max-w-3xl mx-auto",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-8 leading-tight",children:"The Hidden Cost of Running Everything Yourself"}),r.jsx("ul",{className:"space-y-4 text-lg leading-relaxed mb-8",children:zpe.map(y=>r.jsxs("li",{className:"flex gap-3",children:[r.jsx(_r,{className:"h-6 w-6 text-destructive flex-shrink-0 mt-0.5"}),r.jsx("span",{dangerouslySetInnerHTML:{__html:y.replace(/^(\S+(?:\s\S+)?)/,"<strong>$1</strong>")}})]},y))}),r.jsx("p",{className:"text-xl font-bold",children:"You're not broken. You're just in the wrong seat."})]})}),r.jsx("section",{className:"py-16 md:py-24 px-4 bg-muted/40",children:r.jsxs("div",{className:"max-w-5xl mx-auto",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6 leading-tight",children:"The Simple Operations System That Changes Everything"}),r.jsx("p",{className:"text-lg text-muted-foreground mb-10 max-w-3xl",children:"After purchasing Simple Operations in 2025, I discovered the 5 Foundational Principles that transform businesses:"}),r.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:Upe.map((y,p)=>r.jsxs(G,{className:"p-6",children:[r.jsx("div",{className:"flex items-center justify-center w-10 h-10 rounded-full bg-primary text-primary-foreground font-bold mb-4",children:p+1}),r.jsx("h3",{className:"text-xl font-bold mb-2",children:y.title}),r.jsx("p",{className:"text-muted-foreground leading-relaxed",children:y.desc})]},y.title))}),r.jsx("p",{className:"mt-10 text-lg leading-relaxed",children:"These aren't theory. They're battle-tested principles that have helped hundreds of entrepreneurs escape operational chaos."})]})}),r.jsx("section",{className:"py-16 md:py-24 px-4",children:r.jsxs("div",{className:"max-w-5xl mx-auto",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-12 text-center leading-tight",children:"What You'll Get in This 3-Hour Workshop"}),r.jsx("div",{className:"space-y-8",children:qpe.map(y=>r.jsxs(G,{className:"p-6 md:p-10",children:[r.jsxs("div",{className:"flex flex-wrap items-center gap-3 mb-3",children:[r.jsx("span",{className:"text-xs font-bold text-primary tracking-wider px-3 py-1 rounded-full bg-primary/10",children:y.label}),r.jsx("span",{className:"text-sm text-muted-foreground",children:y.duration})]}),r.jsx("h3",{className:"text-2xl md:text-3xl font-bold mb-6 leading-tight",children:y.title}),r.jsxs("div",{className:"grid md:grid-cols-2 gap-8",children:[r.jsxs("div",{children:[r.jsx("p",{className:"font-semibold mb-3",children:y.discoverLabel}),r.jsx("ul",{className:"space-y-2.5",children:y.discover.map(p=>r.jsxs("li",{className:"flex gap-3",children:[r.jsx(bt,{className:"h-5 w-5 text-primary flex-shrink-0 mt-0.5"}),r.jsx("span",{className:"text-sm leading-relaxed",children:p})]},p))})]}),r.jsxs("div",{children:[r.jsx("p",{className:"font-semibold mb-3",children:y.liveLabel}),r.jsx("ul",{className:"space-y-2.5",children:y.live.map(p=>r.jsxs("li",{className:"flex gap-3",children:[r.jsx(Is,{className:"h-5 w-5 text-primary flex-shrink-0 mt-0.5"}),r.jsx("span",{className:"text-sm leading-relaxed",children:p})]},p))})]})]})]},y.label))})]})}),r.jsx("section",{className:"py-16 md:py-24 px-4 bg-muted/40",children:r.jsxs("div",{className:"max-w-5xl mx-auto",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4 leading-tight",children:'Why This Works When Other "Solutions" Have Failed'}),r.jsxs("div",{className:"space-y-4 text-lg leading-relaxed mb-10",children:[r.jsxs("p",{children:["Most business systems try to make you a ",r.jsx("strong",{children:"better driver"}),"."]}),r.jsxs("p",{children:["This system teaches you to become a ",r.jsx("strong",{children:"better passenger seat leader"}),"."]})]}),r.jsxs("div",{className:"grid md:grid-cols-2 gap-6 mb-10",children:[r.jsxs(G,{className:"p-6 border-destructive/30",children:[r.jsx("h3",{className:"text-xl font-bold mb-4",children:"When you're driving, you're:"}),r.jsx("ul",{className:"space-y-3",children:Vpe.map(y=>r.jsxs("li",{className:"flex gap-3",children:[r.jsx(_r,{className:"h-5 w-5 text-destructive flex-shrink-0 mt-0.5"}),r.jsx("span",{children:y})]},y))})]}),r.jsxs(G,{className:"p-6 border-2 border-primary",children:[r.jsx("h3",{className:"text-xl font-bold mb-4",children:"When you're in the passenger seat, you're:"}),r.jsx("ul",{className:"space-y-3",children:Kpe.map(y=>r.jsxs("li",{className:"flex gap-3",children:[r.jsx(bt,{className:"h-5 w-5 text-primary flex-shrink-0 mt-0.5"}),r.jsx("span",{children:y})]},y))})]})]}),r.jsxs(G,{className:"p-6 md:p-8 bg-background",children:[r.jsxs("p",{className:"text-lg leading-relaxed mb-3",children:[r.jsx("strong",{children:"Ray Arnold"}),' discovered this when he "hired a new field supervisor, which allowed him to delegate field work and free up his time to move into a general manager position."']}),r.jsx("p",{className:"text-lg font-semibold",children:"Now they work more strategically on the business because they delegated effectively."})]})]})}),r.jsx("section",{className:"py-16 md:py-24 px-4",children:r.jsxs("div",{className:"max-w-5xl mx-auto",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-10 text-center leading-tight",children:"This Isn't for Everyone"}),r.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[r.jsxs(G,{className:"p-6",children:[r.jsx("h3",{className:"text-xl font-bold mb-4",children:"Don't attend this workshop if:"}),r.jsx("ul",{className:"space-y-3",children:Gpe.map(y=>r.jsxs("li",{className:"flex gap-3",children:[r.jsx(_r,{className:"h-5 w-5 text-destructive flex-shrink-0 mt-0.5"}),r.jsx("span",{children:y})]},y))})]}),r.jsxs(G,{className:"p-6 border-2 border-primary",children:[r.jsx("h3",{className:"text-xl font-bold mb-4",children:"This IS for you if:"}),r.jsx("ul",{className:"space-y-3",children:Ype.map(y=>r.jsxs("li",{className:"flex gap-3",children:[r.jsx(bt,{className:"h-5 w-5 text-primary flex-shrink-0 mt-0.5"}),r.jsx("span",{children:y})]},y))})]})]})]})}),r.jsx("section",{className:"py-16 md:py-24 px-4 bg-muted/40",children:r.jsxs("div",{className:"max-w-3xl mx-auto",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-8 leading-tight",children:"Your Risk-Free Investment"}),r.jsx(G,{className:"p-6 md:p-10 border-2 border-primary",children:r.jsxs("div",{className:"space-y-4 text-lg leading-relaxed",children:[r.jsx("p",{children:r.jsx("strong",{children:"Workshop Investment: $35 (Fully Refundable)"})}),r.jsx("p",{children:"That's less than lunch, but the insights could transform your next decade."}),r.jsxs("div",{className:"grid sm:grid-cols-2 gap-4 pt-4 border-t",children:[r.jsxs("div",{children:[r.jsx("p",{className:"text-sm text-muted-foreground",children:"When"}),r.jsx("p",{className:"font-semibold",children:"Wednesday, June 24th · 11:00 AM EST"}),r.jsx("p",{className:"text-xs text-muted-foreground",children:"10 AM CST · 9 AM MST · 8 AM PST"})]}),r.jsxs("div",{children:[r.jsx("p",{className:"text-sm text-muted-foreground",children:"Where"}),r.jsx("p",{className:"font-semibold",children:"Live online (link after registration)"})]}),r.jsxs("div",{children:[r.jsx("p",{className:"text-sm text-muted-foreground",children:"Duration"}),r.jsx("p",{className:"font-semibold",children:"3 hours · three 45-m
803in sessions"})]}),r.jsxs("div",{children:[r.jsx("p",{className:"text-sm text-muted-foreground",children:"Guarantee"}),r.jsx("p",{className:"font-semibold",children:"No-questions refund"})]})]}),r.jsx("div",{className:"pt-4 border-t",children:r.jsx("p",{className:"font-semibold",children:"If you don't get at least one breakthrough insight that could change your business, I'll refund your $35 immediately. No questions asked."})})]})})]})}),r.jsx("section",{className:"py-16 md:py-24 px-4",children:r.jsxs("div",{className:"max-w-3xl mx-auto",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-8 leading-tight",children:"The Real Question Isn't Whether This Worksâ¦"}),r.jsxs("div",{className:"space-y-5 text-lg leading-relaxed",children:[r.jsx("p",{children:"The question is whether you'll be part of it."}),r.jsx("p",{children:"Every day you stay in the driver's seat, you're limiting your company's growth to your personal capacity."}),r.jsx("p",{children:"The businesses scaling fastest in 2026 are led by passenger seat leaders who've learned to guide without driving."})]}),r.jsxs(G,{className:"p-6 md:p-8 mt-8",children:[r.jsx(jr,{className:"h-8 w-8 text-primary mb-4"}),r.jsx("p",{className:"text-lg italic leading-relaxed mb-4",children:`"Revenue went up. We made $18,000 in January. Now we're going to be making $55,000 this month. So I'm like, 'Okay, well something's working.' And obviously it's not coming from me. I had to have some help, you know? So yeah, the system is actually working."`}),r.jsx("p",{className:"font-bold",children:"Colin Thompson"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Thompson Inspections"})]})]})}),r.jsx("section",{ref:e,id:"register",className:"py-16 md:py-24 px-4 bg-muted/40",children:r.jsxs("div",{className:"max-w-2xl mx-auto",children:[r.jsxs("div",{className:"text-center mb-10",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-3 leading-tight",children:"Yes! Save My Spot â $35 (Fully Refundable)"}),r.jsx("p",{className:"text-lg text-muted-foreground",children:"Wednesday, June 24th · 11:00 AM EST"}),r.jsxs("p",{className:"text-sm text-muted-foreground mt-1 flex items-center justify-center gap-2",children:[r.jsx(Wr,{className:"h-4 w-4"}),"Limited to 100 participants for maximum interaction"]})]}),r.jsx(G,{className:"p-6 md:p-8 border-2 border-primary shadow-soft",children:r.jsxs("form",{onSubmit:m,className:"space-y-4",children:[r.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[r.jsxs("div",{children:[r.jsx(oe,{htmlFor:"firstName",children:"First name *"}),r.jsx(je,{id:"firstName",value:t,onChange:y=>n(y.target.value),required:!0,disabled:d})]}),r.jsxs("div",{children:[r.jsx(oe,{htmlFor:"lastName",children:"Last name"}),r.jsx(je,{id:"lastName",value:s,onChange:y=>a(y.target.value),disabled:d})]})]}),r.jsxs("div",{children:[r.jsx(oe,{htmlFor:"email",children:"Email *"}),r.jsx(je,{id:"email",type:"email",value:i,onChange:y=>o(y.target.value),required:!0,disabled:d})]}),r.jsxs("div",{children:[r.jsx(oe,{htmlFor:"phone",children:"Phone *"}),r.jsx(je,{id:"phone",type:"tel",value:l,onChange:y=>c(y.target.value),required:!0,disabled:d})]}),r.jsx(te,{type:"submit",variant:"hero",size:"lg",className:"w-full text-base sm:text-lg",disabled:d,children:d?r.jsxs(r.Fragment,{children:[r.jsx(wt,{className:"h-5 w-5 animate-spin"}),"Redirecting to secure checkoutâ¦"]}):r.jsxs(r.Fragment,{children:["Secure My Spot â $35 ",r.jsx(Ue,{className:"h-5 w-5"})]})}),r.jsxs("p",{className:"text-xs text-center text-muted-foreground flex items-center justify-center gap-1.5",children:[r.jsx(Bn,{className:"h-4 w-4 text-primary"}),"Secure Stripe checkout · Fully refundable · No-questions guarantee"]})]})}),r.jsxs(G,{className:"p-6 mt-6 bg-background",children:[r.jsx("p",{className:"font-semibold mb-3",children:"After registration, you'll receive:"}),r.jsx("ul",{className:"space-y-2",children:["Workshop access link","Pre-workshop preparation guide","Exclusive bonus materials","30-day implementation checklist"].map(y=>r.jsxs("li",{className:"flex gap-3",children:[r.jsx(bt,{className:"h-5 w-5 text-primary flex-shrink-0 mt-0.5"}),r.jsx("span",{children:y})]},y))})]})]})}),r.jsx("section",{className:"py-16 md:py-24 px-4",children:r.jsxs("div",{className:"max-w-3xl mx-auto",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-8 leading-tight",children:"About Your Guide"}),r.jsxs("div",{className:"space-y-5 text-lg leading-relaxed",children:[r.jsxs("p",{children:["I'm ",r.jsx("strong",{children:"Gabe Arnold"}),', CEO and owner of Simple Operations and author of "Passenger Seat Leadership."']}),r.jsx("p",{children:"After losing my first business in my early twenties to bankruptcy, I built a new business using the principles you'll learn in this workshop."}),r.jsxs("p",{children:["Today, I work ",r.jsx("strong",{children:"20-30 hours per week"})," while growing through acquisition, spending quality time with my family, and helping other entrepreneurs escape operational chaos."]}),r.jsx("p",{children:"I became a member of Simple Operations over 5 years ago and purchased Simple Operations in 2025 because I believe deeply in this system."}),r.jsx("p",{className:"font-bold",children:"It saved my business, my sanity, and my family time. Now it's your turn."})]}),r.jsx("div",{className:"mt-10 text-center",children:r.jsxs(te,{variant:"hero",size:"lg",onClick:f,className:"text-base sm:text-lg",children:["Yes! Save My Spot â $35 (Fully Refundable) ",r.jsx(Ue,{className:"h-5 w-5"})]})}),r.jsx(G,{className:"p-6 mt-10 bg-muted/40",children:r.jsxs("p",{className:"text-base italic leading-relaxed",children:[r.jsx("strong",{children:"P.S."})," Every day you wait costs you freedom, profit, and peace of mind. The entrepreneurs implementing these principles now will dominate while others struggle with complexity. Don't let another month pass being trapped in the driver's seat of your own business."]})}),r.jsx("div",{className:"mt-10 text-center",children:r.jsxs(te,{variant:"default",size:"lg",onClick:f,className:"text-base sm:text-lg",children:["Secure Your Spot â June 24th ",r.jsx(Ue,{className:"h-5 w-5"})]})})]})})]}),r.jsx("div",{className:"md:hidden fixed bottom-0 left-0 right-0 z-40 p-3 bg-background/95 backdrop-blur border-t shadow-lg",children:r.jsxs(te,{variant:"hero",size:"lg",onClick:f,className:"w-full",children:["Register â $35 ",r.jsx(Ue,{className:"h-5 w-5"})]})}),r.jsx(ht,{})]})]})}const Zpe=[{title:"Check your email",desc:"A confirmation from [email protected] is on its way (check spam/promotions if you don't see it within 10 minutes)."},{title:"Save your workshop access link",desc:"You'll receive the live workshop join link and a calendar invite for Wednesday, June 24th at 11:00 AM EST."},{title:"Open your prep guide",desc:"We'll send a short pre-workshop preparation guide so you arrive ready to do the live interactive work with us."},{title:"Get your bonus materials",desc:"Your 30-day implementation checklist and exclusive bonus materials arrive right after the workshop."}];function Xpe(){return j.useEffect(()=>{window.scrollTo(0,0)},[]),r.jsxs(r.Fragment,{children:[r.jsx(vr,{title:"You're Registered â Passenger Seat Breakthrough Workshop",description:"Your spot is reserved for the Passenger Seat Breakthrough Workshop on Wednesday, June 24th at 11:00 AM EST. Check your email for next steps."}),r.jsxs("div",{className:"min-h-screen flex flex-col bg-background",children:[r.jsx(_t,{}),r.jsx("main",{className:"flex-1 pt-28 md:pt-36 pb-16 px-4",children:r.jsxs("div",{className:"max-w-3xl mx-auto",children:[r.jsxs("div",{className:"text-center mb-10",children:[r.jsx(bt,{className:"h-20 w-20 text-primary mx-auto mb-6"}),r.jsx("h1",{className:"text-3xl md:text-5xl font-bold mb-4 leading-tight",children:"You're Registered!"}),r.jsx("p",{className:"text-lg md:text-xl text-muted-foreground",children:"Your spot in the Passenger Seat Breakthrough Workshop is reserved."})]}),r.jsx(rm,{}),r.jsx(G,{className:"p-6 md:p-8 mb-8 border-2 border-primary",children:r.jsxs("div",{className:"grid sm:grid-cols-2 gap-6",children:[r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(gr,{className:"h-6 w-6 text-primary flex-shrink-0 mt-1"}),r.jsxs("div",{children:[r.jsx("p",{className:"font-bold",children:"Wednesday, June 24th"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"11:00 AM EST"}),r.jsx("p",{className:"text-xs text-muted-foreground",children:"10 AM CST · 9 AM MST · 8 AM PST"})]})]}),r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(zt,{className:"h-6 w-6 text-primary flex-shrink-0 mt-1"}),r.jsxs("div",{children:[r.jsx("p",{className:"font-bold",children:"3 Hours Total"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"3 sessions à 45 minutes"}),r.jsx("p",{className:"text-xs text-muted-foreground",children:"Live, interactive, with short breaks"})]})]})]})}),r.jsxs(G,{className:"p-6 md:p-8 mb-8",children:[r.jsxs("h2",{className:"text-2xl font-bold mb-6 flex items-center gap-2",children:[r.jsx(Is,{className:"h-6 w-6 text-primary"}),"What happens next"]}),r.jsx("ol",{className:"space-y-5",children:Zpe.map((e,t)=>r.jsxs("li",{className:"flex gap-4",children:[r.jsx("span",{className:"flex items-center justify-center w-9 h-9 rounded-full bg-primary text-primary-foreground font-bold flex-shrink-0",children:t+1}),r.jsxs("div",{children:[r.jsx("p",{className:"font-semibold text-lg",children:e.title}),r.jsx("p",{className:"text-muted-foreground leading-relaxed",children:e.desc})]})]},e.title))})]}),r.jsx(G,{className:"p-6 md:p-8 mb-8 bg-muted/40",children:r.jsxs("div",{className:"flex items-start gap-4",children:[r.jsx(xr,{className:"h-6 w-6 text-primary flex-shrink-0 mt-1"}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-lg font-bold mb-2",children:"Didn't get the email?"}),r.jsxs("p",{className:"text-muted-foreground leading-relaxed",children:["Give it 10 minutes and check spam/promotions. If it still hasn't arrived, email"," ",r.jsx("a",{href:"mailto:[email protected]",className:"font-semibold text-primary underline hover:no-underline",children:"[email protected]"})," ","and we'll make sure you're set."]})]})]})}),r.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[r.jsx(te,{asChild:!0,variant:"outline",size:"lg",children:r.jsx(ue,{to:"/",children:"Back to home"})}),r.jsx(te,{asChild:!0,variant:"default",size:"lg",children:r.jsx(ue,{to:"/contact",children:"Contact support"})})]})]})}),r.jsx(ht,{})]})]})}const Ax=[{id:"revenue_range",title:"Revenue Context",question:"What's your current annual revenue?",scored:!1,options:[{value:"under_300k",label:"Under $300K",points:0},{value:"300k_500k",label:"$300K â $500K",points:0},{value:"500k_1m",label:"$500K â $1M",points:0},{value:"1m_3m",label:"$1M â $3M",points:0},{value:"3m_10m",label:"$3M â $10M",points:0},{value:"over_10m",label:"Over $10M",points:0}]},{id:"weekly_hours",title:"Your Week",question:"How many hours per week do you personally work in the business?",scored:!0,category:"burnout",options:[{value:"under_30",label:"Under 30 hours (I've delegated most operations)",points:0},{value:"30_40",label:"30â40 hours (Manageable but I'm still very involved)",points:1},{value:"40_50",label:"40â50 hours (I'm the go-to for most decisions)",points:2},{value:"50_60",label:"50â60 hours (I'm in everything, daily)",points:3},{value:"60_plus",label:"60+ hours (The business doesn't run without me)",points:4}]},{id:"team_challenge",title:"Team Reality",question:"What's the biggest challenge with your team right now?",scored:!0,category:"leadership",options:[{value:"no_team",label:"I don't have a team yet (it's just me)",points:1},{value:"cant_decide",label:"I have people, but they can't make decisions without me",points:4},{value:"in_daily_ops",label:"My team executes, but I'm still in daily operations",points:3},{value:"nothing_runs",label:"I have managers, but nothing runs smoothly when I step away",points:3},{value:"lack_systems",label:"I have a leadership team, but we lack aligned systems",points:2}]},{id:"decision_pattern",title:"Decision Making",question:"How are most business decisions made today?",scored:!0,category:"leadership",options:[{value:"team_decides",label:"My team makes the call and informs me",points:0},{value:"ask_input",label:"Team decides but asks for my input on bigger things",points:1},{value:"most_involved",label:"I'm involved in most decisions",points:3},{value:"nothing_without_me",label:"Almost nothing moves without me",points:4},{value:"dozens_daily",label:"I make dozens of decisions daily",points:5}]},{id:"process_documentation",title:"Your Systems",question:"How documented are the processes that run your business?",scored:!0,category:"systems",options:[{value:"fully",label:"Fully documented, the team follows the system",points:0},{value:"mostly",label:"Mostly documented but not always followed",points:1},{value:"inconsistent",label:"Inconsistent â some things written, most are not",points:3},{value:"in_my_head",label:"It's mostly in my head",points:4},{value:"wing_it",label:"What processes? We wing it daily",points:5}]},{id:"scalability",title:"Growth Ceiling",question:"If revenue doubled in the next 12 months, what would happen?",scored:!0,category:"scalability",options:[{value:"could_scale",label:"We could absorb it â systems are ready",points:0},{value:"need_hire",label:"We'd need to hire, but we could handle it",points:1}
803,{value:"overwhelmed",label:"I'd be overwhelmed â I'm the bottleneck",points:4},{value:"80_hours",label:"I'd be working 80+ hour weeks just to keep up",points:5},{value:"at_capacity",label:"We're already at capacity and can't grow further",points:5}]},{id:"pain_level",title:"How You Feel",question:"How do you feel about your business right now?",scored:!0,category:"burnout",options:[{value:"energized",label:"Energized â things are clicking",points:0},{value:"satisfied",label:"Satisfied â steady and predictable",points:0},{value:"frustrated",label:"Frustrated â I know we could be doing better",points:2},{value:"overwhelmed",label:"Overwhelmed â I'm drowning in operations",points:4},{value:"burned_out",label:"Burned out â this isn't sustainable",points:5}]}],Jpe=2,f1=Ax.length;function p1(e){let t=0,n=0;const s={leadership:0,systems:0,scalability:0,burnout:0};for(const c of Ax){if(!c.scored)continue;const d=Math.max(...c.options.map(f=>f.points));n+=d;const u=e[c.id];if(!u)continue;const h=c.options.find(f=>f.value===u);h&&(t+=h.points,c.category&&(s[c.category]+=h.points))}let a="low";t>=25?a="critical":t>=17?a="high":t>=9&&(a="moderate");const i=["leadership","systems","scalability","burnout"];let o=i[0],l=-1;for(const c of i)s[c]>l&&(l=s[c],o=c);return{score:t,maxScore:n,level:a,primaryConstraint:o,categoryScores:s}}const ege={leadership:"decision",systems:"process",scalability:"capability",burnout:"visibility"},tge={leadership:{title:"Decision Bottleneck",slug:"decision",diagnosis:"You're the approval gate for everything. Your team waits on you to make decisions they should be making themselves â which means your calendar controls your company's velocity. This is the #1 pattern we see in founders stuck between $500K and $2M.",framework:"The 5-Step Decision Framework gives your team the language and authority to make confident calls without waiting on you."},systems:{title:"Process Bottleneck",slug:"process",diagnosis:"Your business runs on tribal knowledge â most of what makes your company work lives in your head. There are no clear operating rhythms, so delegation breaks down and you stay trapped in daily operations. You can't scale what isn't documented.",framework:"The Waterfall Planning System and Simple Operations Playbook turn what's in your head into rhythms your team can run without you."},scalability:{title:"Capability Bottleneck",slug:"capability",diagnosis:"Your team lacks the skill or authority to operate without you. Adding more revenue means adding more chaos â because the people underneath you aren't built (yet) to carry the weight. Hiring more won't fix it; developing capability will.",framework:"The Passenger Seat Leadership Framework rebuilds your team's capability so revenue can grow without doubling your hours."},burnout:{title:"Visibility Bottleneck",slug:"visibility",diagnosis:"You can't see what's actually happening in your business without being in the room. No dashboards, no rhythms, no signal â so you stay in everything by default. The personal cost shows up as hours, weight, and the inability to step away.",framework:"The Leadership Development Pipeline and weekly operating cadence give you visibility so you can step out of daily operations within 90 days."}},rge={low:{label:"Low Bottleneck",tone:"text-emerald-600",description:"You've built strong systems and your business runs largely without you. The opportunity now is optimization, not rescue."},moderate:{label:"Moderate Bottleneck",tone:"text-amber-600",description:"Foundations are in place, but you're still the glue in critical areas. Small, targeted system fixes will unlock major capacity."},high:{label:"High Bottleneck",tone:"text-orange-600",description:"Your business is heavily dependent on you. You're working too many hours and growth is capped by your personal bandwidth."},critical:{label:"Critical Bottleneck",tone:"text-red-600",description:"You ARE the business right now. Without structural change in the next 90 days, the cost is going to be your health, your team, or both."}},n4="founder_bottleneck_assessment_v1",s4={answers:{}
803,firstName:"",lastName:"",email:"",phone:"",company:"",currentIndex:0,emailCaptured:!1};function nge(){const e=po(),{toast:t}=Lt(),[n,s]=j.useState("landing"),[a,i]=j.useState(s4),[o,l]=j.useState(!1);j.useEffect(()=>{try{const y=localStorage.getItem(n4);if(y){const p=JSON.parse(y);i({...s4,...p})}}catch{}},[]),j.useEffect(()=>{try{localStorage.setItem(n4,JSON.stringify(a))}catch{}},[a]);const c=Ax[a.currentIndex],d=j.useMemo(()=>Math.round(a.currentIndex/f1*100),[a.currentIndex]),u=()=>{s("questions")},h=y=>{const p={...a,answers:{...a.answers,[c.id]:y}},v=a.currentIndex;if(v===Jpe&&!p.emailCaptured){i({...p,currentIndex:v+1}),s("email_gate");return}if(v===f1-1){m(p);return}i({...p,currentIndex:v+1})},f=async(y,p,v,g,x)=>{l(!0);const b={...a,firstName:y.trim(),lastName:p.trim(),email:v.trim().toLowerCase(),phone:g.trim(),company:x.trim(),emailCaptured:!0};i(b);const w=p1(b.answers);try{await ve.functions.invoke("submit-assessment",{body:{first_name:b.firstName,last_name:b.lastName,email:b.email,phone:b.phone,company:b.company,revenue_range:b.answers.revenue_range,weekly_hours:b.answers.weekly_hours,team_challenge:b.answers.team_challenge,bottleneck_score:w.score,bottleneck_level:w.level,primary_constraint:w.primaryConstraint,stage:"email_capture",user_agent:navigator.userAgent,referrer:document.referrer}})}catch(N){console.error("Partial sync failed (continuing):",N)}l(!1),s("questions")},m=async y=>{l(!0);const p=p1(y.answers);try{const{error:v}=await ve.functions.invoke("submit-assessment",{body:{first_name:y.firstName,last_name:y.lastName,email:y.email,phone:y.phone,company:y.company,revenue_range:y.answers.revenue_range,weekly_hours:y.answers.weekly_hours,team_challenge:y.answers.team_challenge,decision_pattern:y.answers.decision_pattern,process_documentation:y.answers.process_documentation,scalability:y.answers.scalability,pain_level:y.answers.pain_level,bottleneck_score:p.score,bottleneck_level:p.level,primary_constraint:p.primaryConstraint,stage:"completed",user_agent:navigator.userAgent,referrer:document.referrer}});if(v)throw v}catch(v){console.error("Final submit failed:",v),t({title:"We saved your results locally",description:"There was a hiccup syncing â you can still see your results."})}try{sessionStorage.setItem("founder_bottleneck_result",JSON.stringify({...y,result:p}))}catch{}e("/assessment/results",{state:{...y,result:p}})};return r.jsxs("div",{className:"min-h-screen flex flex-col bg-gradient-to-br from-background via-background to-muted/30",children:[r.jsxs(hd,{children:[r.jsx("title",{children:"Founder Bottleneck Assessment⢠â Free 5-Min Diagnostic"}),r.jsx("meta",{name:"description",content:"Discover the #1 constraint keeping your $300Kâ$3M business stuck. Free 5-minute founder bottleneck diagnostic + personalized breakthrough plan."}),r.jsx("link",{rel:"canonical",href:"https://simple-operations-website.lovable.app/assessment"}),r.jsx("meta",{property:"og:title",content:"Founder Bottleneck Assessment⢠â Simple Operations"}),r.jsx("meta",{property:"og:url",content:"https://simple-operations-website.lovable.app/assessment"}),r.jsx("meta",{property:"og:type",content:"website"})]}),r.jsxs("div",{className:"flex-1",children:[n==="landing"&&r.jsx(sge,{onStart:u}),n==="questions"&&c&&r.jsx(age,{questionIndex:a.currentIndex,progress:d,selectedValue:a.answers[c.id],onAnswer:h,submitting:o}),n==="email_gate"&&r.jsx(ige,{onSubmit:f,submitting:o,defaultFirstName:a.firstName,defaultLastName:a.lastName,defaultEmail:a.email,defaultPhone:a.phone,defaultCompany:a.company})]}),r.jsx(ht,{})]})}function sge({onStart:e}){return r.jsx("section",{className:"container mx-auto px-4 py-12 md:py-20 max-w-3xl",children:r.jsxs("div",{className:"text-center space-y-6",children:[r.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full bg-primary/10 text-primary text-sm font-medium",children:[r.jsx(zt,{className:"w-4 h-4"}),"Takes 5 minutes · 7 questions"]}),r.jsx("h1",{className:"text-4xl md:text-6xl font-bold tracking-tight leading-tight",children:"The Founder Bottleneck Assessmentâ¢"}),r.jsx("p",{className:"text-xl md:text-2xl text-muted-foreground leading-relaxed",children:"Discover the #1 constraint keeping you stuck â and the exact framework to break through."}),r.jsxs(G,{className:"p-6 md:p-8 text-left space-y-4 bg-card/80 backdrop-blur",children:[r.jsxs("p",{className:"text-base md:text-lg leading-relaxed",children:["Most founders between ",r.jsx("strong",{children:"$300K and $3M"})," are stuck in the same invisible trap: they've become the bottleneck in their own business. This assessment identifies your specific constraint in under 5 minutes â and shows you exactly how to break free."]}),r.jsxs("div",{className:"grid sm:grid-cols-3 gap-4 pt-2",children:[r.jsxs("div",{className:"flex items-start gap-2",children:[r.jsx(bt,{className:"w-5 h-5 text-primary mt-0.5 flex-shrink-0"}),r.jsx("span",{className:"text-sm",children:"Personalized bottleneck score"})]}),r.jsxs("div",{className:"flex items-start gap-2",children:[r.jsx(bt,{className:"w-5 h-5 text-primary mt-0.5 flex-shrink-0"}),r.jsx("span",{className:"text-sm",children:"Your #1 primary constraint named"})]}),r.jsxs("div",{className:"flex items-start gap-2",children:[r.jsx(bt,{className:"w-5 h-5 text-primary mt-0.5 flex-shrink-0"}),r.jsx("span",{className:"text-sm",children:"The framework that fixes it"})]})]})]}),r.jsxs(te,{size:"lg",onClick:e,className:"h-14 px-8 text-lg w-full sm:w-auto",children:["Start Your Assessment",r.jsx(Ue,{className:"ml-2 w-5 h-5"})]}),r.jsx("div",{className:"flex flex-wrap items-center justify-center gap-6 pt-4 text-sm text-muted-foreground",children:r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(Bn,{className:"w-4 h-4"}),r.jsx("span",{children:"No spam. Unsubscribe anytime."})]})})]})})}function age({questionIndex:e,progress:t,selectedValue:n,onAnswer:s,submitting:a}){const i=Ax[e];return r.jsxs("div",{className:"container mx-auto px-4 py-6 md:py-12 max-w-2xl",children:[r.jsxs("div",{className:"sticky top-0 z-10 bg-background/95 backdrop-blur py-3 -mx-4 px-4 mb-6 border-b",children:[r.jsxs("div",{className:"flex justify-between items-center mb-2 text-sm",children:[r.jsxs("span",{className:"font-medium",children:["Question ",e+1," of ",f1]}),r.jsxs("span",{className:"text-muted-foreground",children:[t,"%"]})]}),r.jsx(Px,{value:t,className:"h-2"})]}),r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("p",{className:"text-sm font-medium text-primary uppercase tracking-wide mb-2",children:i.title}),r.jsx("h2",{className:"text-2xl md:text-3xl font-bold leading-tight",children:i.question}),i.helper&&r.jsx("p",{className:"text-muted-foreground mt-2",children:i.helper})]}),r.jsx("div",{className:"space-y-3",children:i.options.map(o=>{const l=n===o.value;return r.jsxs("button",{type:"button",disabled:a,onClick:()=>
803s(o.value),className:`w-full text-left p-4 md:p-5 rounded-lg border-2 transition-all min-h-[60px] flex items-center gap-3 ${l?"border-primary bg-primary/5":"border-border hover:border-primary/50 hover:bg-muted/50"}`,children:[r.jsx("div",{className:`w-5 h-5 rounded-full border-2 flex-shrink-0 flex items-center justify-center ${l?"border-primary bg-primary":"border-muted-foreground/40"}`,children:l&&r.jsx("div",{className:"w-2 h-2 rounded-full bg-background"})}),r.jsx("span",{className:"text-base md:text-lg leading-snug",children:o.label})]},o.value)})}),a&&r.jsx("p",{className:"text-center text-sm text-muted-foreground",children:"Calculating your resultsâ¦"})]})]})}function ige({onSubmit:e,submitting:t,defaultFirstName:n,defaultLastName:s,defaultEmail:a,defaultPhone:i,defaultCompany:o}){const[l,c]=j.useState(n),[d,u]=j.useState(s),[h,f]=j.useState(a),[m,y]=j.useState(i),[p,v]=j.useState(o),[g,x]=j.useState(""),b=w=>{if(w.preventDefault(),x(""),!l.trim()){x("Please enter your first name");return}if(!d.trim()){x("Please enter your last name");return}if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(h)){x("Please enter a valid email address");return}if(!m.trim()||m.replace(/\D/g,"").length<7){x("Please enter a valid phone number");return}if(!p.trim()){x("Please enter your company name");return}e(l,d,h,m,p)};return r.jsxs("div",{className:"container mx-auto px-4 py-6 md:py-12 max-w-xl",children:[r.jsxs("div",{className:"sticky top-0 z-10 bg-background/95 backdrop-blur py-3 -mx-4 px-4 mb-6 border-b",children:[r.jsxs("div",{className:"flex justify-between items-center mb-2 text-sm",children:[r.jsx("span",{className:"font-medium",children:"Halfway there"}),r.jsx("span",{className:"text-muted-foreground",children:"50%"})]}),r.jsx(Px,{value:50,className:"h-2"})]}),r.jsxs(G,{className:"p-6 md:p-8 space-y-6",children:[r.jsxs("div",{className:"text-center space-y-3",children:[r.jsx("div",{className:"inline-flex items-center justify-center w-14 h-14 rounded-full bg-primary/10",children:r.jsx(dg,{className:"w-7 h-7 text-primary"})}),r.jsx("h2",{className:"text-2xl md:text-3xl font-bold",children:"Awesome â you're halfway there."}),r.jsx("p",{className:"text-muted-foreground text-lg",children:"Tell us where to send your personalized Founder Bottleneck Report (plus the exact framework to fix it)."})]}),r.jsxs("form",{onSubmit:b,className:"space-y-4",children:[r.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[r.jsxs("div",{className:"space-y-2",children:[r.jsx(oe,{htmlFor:"first_name",children:"First Name"}),r.jsx(je,{id:"first_name",value:l,onChange:w=>c(w.target.value),placeholder:"First name",autoFocus:!0,required:!0,className:"h-12 text-base"})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(oe,{htmlFor:"last_name",children:"Last Name"}),r.jsx(je,{id:"last_name",value:d,onChange:w=>u(w.target.value),placeholder:"Last name",required:!0,className:"h-12 text-base"})]})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(oe,{htmlFor:"email",children:"Email Address"}),r.jsx(je,{id:"email",type:"email",value:h,onChange:w=>f(w.target.value),placeholder:"[email protected]",required:!0,className:"h-12 text-base",inputMode:"email"})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(oe,{htmlFor:"phone",children:"Phone"}),r.jsx(je,{id:"phone",type:"tel",value:m,onChange:w=>y(w.target.value),placeholder:"(555) 555-5555",required:!0,className:"h-12 text-base",inputMode:"tel"})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(oe,{htmlFor:"company",children:"Company"}),r.jsx(je,{id:"company",value:p,onChange:w=>v(w.target.value),placeholder:"Your company name",required:!0,className:"h-12 text-base"})]}),g&&r.jsx("p",{className:"text-sm text-destructive",children:g}),r.jsxs(te,{type:"submit",size:"lg",className:"w-full h-12",disabled:t,children:[t?"Savingâ¦":"Continue to Final Questions",r.jsx(Ue,{className:"ml-2 w-4 h-4"})]}),r.jsx("p",{className:"text-xs text-muted-foreground text-center",children:"We respect your inbox. Unsubscribe anytime."})]})]})]})}const Hm=[{label:"Revenue",value:"Stuck at current level â you can't scale because you're the bottleneck"},{label:"Team",value:"Best people leave (they're frustrated waiting on you for decisions)"},{label:"Hours",value:"Working 55â60 hours/week, more exhausted than ever"},{label:"Freedom",value:"Zero. You're more trapped than when you had 3 employees"}],zm=[{label:"Revenue",value:"Competitors pass you (they've built systems that scale)"},{label:"Team",value:"Remaining people are order-takers, not thinkers (learned helplessness)"},{label:"Hours",value:"60+ hours/week just to maintain current revenue"},{label:"Health",value:"Burnout, resentment, questioning why you built this prison"}],Gm=[{q:"Is this really going to work for my specific business/industry?",a:"We've installed this system across services, agencies, e-commerce, Sa
803aS, property management, and trades. The frameworks aren't industry-specific â they're founder-specific. If you're the bottleneck, the fix is the same."},{q:"How is this different from coaching or another mastermind?",a:"Coaching gives you accountability. Masterminds give you peers. We give you installed systems â frameworks, templates, and operating rhythms your team actually runs. You leave with infrastructure, not just inspiration."},{q:"I'm too busy right now to add another thing to my plate.",a:"That's the bottleneck talking. Every founder we work with said the same thing. The first 2 weeks remove 10+ hours from your week â we give time back before we ask for any."},{q:"What if my team doesn't adopt it?",a:"Adoption is built into the methodology. We don't drop a playbook and leave â we install it with you, week by week, with your team in the room. 96% of founders see full team adoption inside 60 days."}],Ym=[{quote:"I went from drowning in approvals to running a business that runs itself. First real vacation in 6 years.",name:"Colin T.",role:"Inspection Services â $18K to $55K/mo in 4 months"},{quote:"My team went from asking 'What should I do?' to telling me 'Here's what I did.' That shift alone was worth the investment.",name:"Brian B.",role:"Property Management â Scaling to $30M"},{quote:"I was skeptical about delegation frameworks. But the Four Levels of Delegation framework made it brain-dead simple. My team knew exactly which decisions were theirs.",name:"Dustin F.",role:"Marketing Agency"}],oge={decision:{icon:"Gavel",mirrorHeadline:"Here's What We Saw in Your Answers",mirrorBody:"Your team is capable. They execute well when you tell them what to do. But they stop and wait for your approval before making moves â even on decisions they've made 100 times before.",mirrorBullets:['Your inbox is buried in "Quick questionâ¦" messages',"Slack notifications interrupt you 20+ times per day","You can't take a day off without things backing up",`You're working 50+ hours/week but most of it is just being the "answer person"`],mirrorReframe:"This isn't a people problem. It's a decision rights problem.",mirrorClose:"Your team doesn't have clarity on which decisions are theirs to make vs. which need your input. So they default to asking you about everything â because that's safer than guessing wrong.",costSixMonths:Hm,costTwelveMonths:zm,costWarning:"The Decision Bottleneck doesn't fix itself. It gets worse as you grow.",solutionIntro:"The solution isn't hiring more people or working harder. It's installing decision rights frameworks that transfer ownership to your team.",phases:[{title:"Map Your Decisions",weeks:"Week 1â2",description:"We identify every recurring decision in your business and categorize them:",bullets:["Level 1: Team decides, no approval needed","Level 2: Team decides, informs you after","Level 3: Team recommends, you approve","Level 4: You decide, team executes"]},{title:"Install Four Levels of Delegation",weeks:"Week 3â6",description:"We transfer decision rights using the Four Levels of Delegation framework. Your team gets clear authority boundaries â they know exactly which decisions are theirs.",bullets:["Weekly Sync (batched decision-making, eliminates 90% of interruptions)","Decision Matrix (visual tool your team references before asking you)","Escalation Protocols (clear rules for when they DO need you)"]},{title:"Transfer Ownership",weeks:"Week 7â12",description:"Your team makes 80%+ of decisions without you. You shift from approver to reviewer â checking results, not pre-approving actions.",bullets:['First "zero approval requests" day',"Founder hours drop 15â25/week","Team confidence compounds"]}],solutionTimeline:'Most founders see their first "zero approval requests" day within 45 days.',caseStudy:{name:"Colin T.",context:"Inspection Services â Decision Bottleneck",before:["$18K/month revenue","Approving every admin decision","Couldn't step away for a single day",'Team asked "What should I do?" 15+ times daily'],installed:["OTAs (One-Time Actions) for recurring decisions","Waterfall Planning (team knows priorities without asking)","Daily Huddles (batched communication)"],after:["$55K/month revenue (3x growth)",`"The whole admin side runs by itself now. I didn't touch anything all last week."`,"Team making 90% of decisions independently","First chaos-free morning in years"],timeline:'First "business runs without me" week at 90 days'},testimonials:[{quote:"The consistent daily check-ins with CEO and weekly check-ins with Gabe provide clarity on weekly tasks. Simple Operations keeps us organized â it's a high-end checklist that ensures consistency and helps us see results.",name:"Grace P.",role:"Operations Manager"},{quote:"This ability to align both leadership and the team using common language is helpful. I've operated businesses this way before, but having the tools and one-pagers already built saved me months.",name:"Micah A.",role:"Agency Founder"}],faqs:Gm,finalTestimonials:Ym},process:{icon:"Workflow",mirrorHeadline:"Here's What We Saw in Your Answers",mirrorBody:"Your team is willing. The work gets done. But there's no consistent way it gets done â every project starts from scratch and quality depends on who happens to be doing it that day.",mirrorBullets:["You're the only person who knows how everything actually works","Onboarding a new hire takes weeks because nothing is written down","Quality and turnaround time swing wildly week to week","You can't take a day off without things slipping through cracks"],mirrorReframe:"This isn't a people problem. It's a process problem.",mirrorClose:"Without documented operating rhythms, your business runs on heroics. Every win takes more effort than
803it should, and nothing compounds â because no one is building on a foundation.",costSixMonths:Hm,costTwelveMonths:zm,costWarning:"The Process Bottleneck doesn't fix itself. Every new hire makes it worse.",solutionIntro:"The solution isn't more meetings or more software. It's installing the operating rhythms that turn what's in your head into something your team can run.",phases:[{title:"Map Your Core Workflows",weeks:"Week 1â2",description:"We document the 5â7 workflows that drive 80% of your revenue, in plain language your team can actually follow.",bullets:["Identify revenue-critical processes","Capture the founder's version (what you actually do)","Strip it down to the repeatable core"]},{title:"Install Operating Rhythms",weeks:"Week 3â6",description:"We install the Waterfall Planning System â weekly, monthly, and quarterly cadences that keep the team aligned without you driving every conversation.",bullets:["Weekly L10 / sync rhythm","Monthly metric review","Quarterly priority cascade"]},{title:"Hand Off Ownership",weeks:"Week 7â12",description:"Process owners are assigned, dashboards go live, and you step out of execution into oversight.",bullets:["Each core workflow has a single owner","Dashboards replace status meetings","You review outcomes, not steps"]}],solutionTimeline:"Most founders have 5+ documented core workflows running without them inside 60 days.",caseStudy:{name:"Colin T.",context:"Inspection Services â Bottleneck Breakthrough",before:["$18K/month revenue","Everything ran through his head","No documented workflows","Couldn't step away for a single day"],installed:["Core workflow documentation (top 5 processes)","Waterfall Planning System (weekly + quarterly)","Process owner assignments + dashboards"],after:["$55K/month revenue (3x growth)",'"The whole admin side runs by itself now."',"Team running core workflows without check-ins","First real time off in 4 years"],timeline:'First "business runs without me" week at 90 days'},testimonials:[{quote:"Simple Operations is like a high-end checklist that ensures consistency and helps us see results. The rhythms keep us organized.",name:"Grace P.",role:"Operations Manager"},{quote:"Having the tools and one-pagers already built saved me months. We installed rhythms in weeks that would have taken a year on our own.",name:"Micah A.",role:"Agency Founder"}],faqs:Gm,finalTestimonials:Ym},capability:{icon:"Users",mirrorHeadline:"Here's What We Saw in Your Answers",mirrorBody:"You've hired good people. They care. They try. But when the moment matters, they don't have the skill â or the authority â to carry the weight. So it always lands back on you.",mirrorBullets:["You re-do work to bring it up to your standard","Your team can execute but can't lead","You hire more people, but your hours don't go down",`You catch yourself thinking "it's faster if I just do it"`],mirrorReframe:"This isn't a hiring problem. It's a capability problem.",mirrorClose:"Your team can't operate at your level yet â not because they're the wrong people, but because no one has built the runway for them to grow into it. Capability is built, not hired.",costSixMonths:Hm,costTwelveMonths:zm,costWarning:"The Capability Bottleneck compounds. The longer your team stays junior, the more you carry.",solutionIntro:"The solution isn't another round of hiring. It's developing the capability of the team you already have â and giving them a path to grow.",phases:[{title:"Diagnose Your Team",weeks:"Week 1â2",description:"We map current capability vs. what each role actually needs â then identify the 2â3 highest-leverage development moves.",bullets:["Role-by-role capability scoring","Identify highest-leverage gaps",'Define what "ready" looks like']},{title:"Install the Pipeline",weeks:"Week 3â6",description:"We install the Passenger Seat Leadership Framework â a structured way to transfer judgment, not just tasks, from you to your team.",bullets:["Passenger Seat coaching rhythm","Decision rights ladder","Weekly skills cadence"]},{title:"Promote and Step Back",weeks:"Week 7â12",description:"Your team takes real ownership. You move from operator to coach â and your hours drop because they finally don't need you in every room.",bullets:["Owners assigned to outcomes","Founder steps out of execution","Team confidence compounds"]}],solutionTimeline:"Most founders have a leadership team running without daily oversight inside 90 days.",caseStudy:{name:"Colin T.",context:"Inspection Services â C
803apability Breakthrough",before:["$18K/month revenue","Team executed but couldn't lead","Founder doing all decision-making","Every escalation came to him"],installed:["Passenger Seat Leadership Framework","Weekly coaching cadence","Decision rights ladder"],after:["$55K/month revenue (3x growth)","Team leading independently",`"I didn't touch anything all last week."`,"Promoted internal ops lead"],timeline:'First "business runs without me" week at 90 days'},testimonials:[{quote:"The consistent check-ins with Gabe transferred his judgment to our team. Now our managers think like operators, not order-takers.",name:"Grace P.",role:"Operations Manager"},{quote:"The ability to align leadership and the team using a common language is the unlock. Capability compounds when everyone speaks the same operating language.",name:"Micah A.",role:"Agency Founder"}],faqs:Gm,finalTestimonials:Ym},visibility:{icon:"Eye",mirrorHeadline:"Here's What We Saw in Your Answers",mirrorBody:"You can't see what's actually happening in your business unless you're in the room. No real dashboards. No reporting rhythm. Just gut and inbox. So you stay in everything â by default.",mirrorBullets:["You find out about problems too late","You don't fully trust the numbers you do have","You stay in meetings just to know what's going on","Time off feels risky because you're flying blind when you come back"],mirrorReframe:"This isn't a control problem. It's a visibility problem.",mirrorClose:"Without a clear operating dashboard and weekly reporting rhythm, the only way to know what's happening is to be in it. That's why your hours stay high â visibility, not micromanagement, is what's keeping you stuck.",costSixMonths:Hm,costTwelveMonths:zm,costWarning:"The Visibility Bottleneck is the quiet one. It doesn't blow up â it just keeps you trapped indefinitely.",solutionIntro:"The solution isn't more dashboards or more software. It's installing a leadership operating rhythm that surfaces what you need to see, when you need to see it.",phases:[{title:"Define the Signal",weeks:"Week 1â2",description:"We identify the 5â7 metrics that actually tell you the truth about your business â and strip away the noise.",bullets:["Identify lead and lag metrics that matter","Set thresholds for green / yellow / red","Map who owns each number"]},{title:"Install the Rhythm",weeks:"Week 3â6",description:"We install the weekly leadership rhythm â a 60-minute meeting that gives you full visibility without you having to be in every conversation.",bullets:["Weekly leadership scorecard","Monthly metric review","Quarterly priority cascade"]},{title:"Step Out, Stay Informed",weeks:"Week 7â12",description:"You exit daily meetings. The rhythm delivers what you need to see â and you intervene by exception, not by default.",bullets:["Founder out of daily ops","Issues surface early, not late","Time off without anxiety"]}],solutionTimeline:"Most founders have a leadership scorecard and rhythm in place inside 30 days â and full visibility without daily involvement by day 90.",caseStudy:{name:"Colin T.",context:"Inspection Services â Visibility Breakthrough",before:["$18K/month revenue","No dashboards or reporting rhythm","Found out about problems too late","Couldn't step away for a single day"],installed:["Leadership scorecard (7 key metrics)","Weekly leadership rhythm (60 min)","Monthly review + quarterly cascade"],after:["$55K/month revenue (3x growth)","Full visibility without daily involvement",`"I didn't touch anything all last week."`,"First real time off in years"],timeline:'First "business runs without me" week at 90 days'},testimonials:[{quote:"The weekly check-ins with Gabe give clarity on what's actually happening. Simple Operations keeps us aligned â it's a high-end checklist that lets us see results in real time.",name:"Grace P.",role:"Operations Manager"},{quote:"Having the tools and one-pagers already built gave us visibility in weeks, not months. We finally saw what was actually moving the numbers.",name:"Micah A.",role:"Agency Founder"}],faqs:Gm,finalTestimonials:Ym}},lge={under_300k:"Under $300K","300k_500k":"$300Kâ$500K","500k_1m":"$500Kâ$1M","1m_3m":"$1Mâ$3M","3m_10m":"$3Mâ$10M",over_10m:"Over $10M"};function cge(e){return e&&["1m_3m","3m_10m","over_10m"].includes(e)?"scale":"clarity"}const dge={Gavel:E7,Workflow:ww,Users:Wr,Eye:Uu},uge={clarity:{name:"Clarity Method",tagline:"The 12-Month Foundation Membership",pitch:"You're building the foundation before you scale. Install the core operating rhythms now so you don't hit the wall at $1M.",bullets:["Four Levels of Delegation Framework (decision rights clarity)","Weekly Sync System (eliminates constant interruptions)","Decision Matrix (your team's reference guide)","Waterfall Planning (priorities without asking you)"],includes:["12-month implementation membership","Weekly accountability calls (60 min)","Full template library + frameworks","Email support between calls"],investment:"$600/month à 12 or $6,600 upfront",bestFor:"Founders who see the bottleneck coming and want to prevent it from killing growth.",href:"/clarity"},scale:{name:"Scale Method",tagline:"The 12-Month Scale Membership",pitch:"You're past the foundation. Now you need the full operating system to scale past the founder bottleneck â for good.",bullets:["Full Four Levels of Delegation + Waterfall + Passenger Seat install","Leadership development pipeline","Operating cadence (weekly / monthly / quarterly)","Scorecards, dashboards, and decision rights"],includes:["12-month implementation membership","Weekly coaching c
803alls (60 min)","Virtual virtual quarterly strategic reviews","Full template library + priority support"],investment:"$3,000/month à 12 or $33,000 upfront",bestFor:"Founders currently stuck as the bottleneck who want complete operational freedom.",href:"/scale"}};function hge(){const e=En(),t=po(),[n,s]=j.useState(null);if(j.useEffect(()=>{const p=e.state;if(p!=null&&p.result){s(p);return}try{const v=sessionStorage.getItem("founder_bottleneck_result");if(v){const g=JSON.parse(v);if(g.answers){g.result=g.result??p1(g.answers),s(g);return}}}catch{}t("/assessment",{replace:!0})},[e.state,t]),!n)return r.jsx("div",{className:"min-h-screen flex items-center justify-center",children:r.jsx("p",{className:"text-muted-foreground",children:"Loading your resultsâ¦"})});const{firstName:a,result:i,answers:o}=n,l=tge[i.primaryConstraint],c=rge[i.level],d=ege[i.primaryConstraint],u=oge[d],h=o.revenue_range?lge[o.revenue_range]:void 0,f=uge[cge(o.revenue_range)],m=dge[u.icon]??Rs,y=Math.round(i.score/Math.max(i.maxScore,1)*100);return r.jsxs("div",{className:"min-h-screen bg-background",children:[r.jsxs(hd,{children:[r.jsx("title",{children:"Your Founder Bottleneck Results â Simple Operations"}),r.jsx("meta",{name:"description",content:"Your personalized Founder Bottleneck diagnosis, 90-day fix plan, and recommended next step."}),r.jsx("meta",{name:"robots",content:"noindex"}),r.jsx("link",{rel:"canonical",href:"https://simple-operations-website.lovable.app/assessment/results"})]}),r.jsx("section",{className:"bg-gradient-to-br from-primary/10 via-background to-background border-b",children:r.jsx("div",{className:"container mx-auto px-4 py-12 md:py-20 max-w-4xl",children:r.jsxs("div",{className:"text-center space-y-6",children:[r.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-primary/10 text-primary text-sm font-semibold",children:[r.jsx(Is,{className:"w-4 h-4"}),"Assessment Complete"]}),r.jsxs("p",{className:"text-sm uppercase tracking-wider text-muted-foreground font-semibold",children:[a,", your bottleneck diagnosis:"]}),r.jsxs("div",{className:"flex flex-col items-center gap-4",children:[r.jsx("div",{className:"p-4 rounded-2xl bg-primary text-primary-foreground",children:r.jsx(m,{className:"w-10 h-10"})}),r.jsx("h1",{className:"text-4xl md:text-6xl font-bold leading-tight",children:l.title})]}),r.jsx("p",{className:"text-lg md:text-xl text-muted-foreground max-w-2xl mx-auto leading-relaxed",children:l.diagnosis}),r.jsx("div",{className:"flex flex-wrap justify-center gap-4 pt-4",children:r.jsxs(G,{className:"px-6 py-4 flex items-center gap-3",children:[r.jsxs("div",{children:[r.jsx("p",{className:"text-xs uppercase tracking-wide text-muted-foreground",children:"Bottleneck Score"}),r.jsxs("p",{className:"text-2xl font-bold text-primary",children:[i.score,r.jsxs("span",{className:"text-base text-muted-foreground",children:[" ","/ ",i.maxScore]})]})]}),r.jsx("div",{className:"h-10 w-px bg-border"}),r.jsxs("div",{children:[r.jsx("p",{className:"text-xs uppercase tracking-wide text-muted-foreground",children:"Severity"}),r.jsx("p",{className:`text-lg font-bold ${c.tone}`,children:c.label})]}),r.jsx("div",{className:"h-10 w-px bg-border"}),r.jsxs("div",{children:[r.jsx("p",{className:"text-xs uppercase tracking-wide text-muted-foreground",children:"Pressure"}),r.jsxs("p",{className:"text-lg font-bold",children:[y,"%"]})]})]})}),r.jsx("div",{className:"bg-emerald-50 dark:bg-emerald-950/30 border border-emerald-200 dark:border-emerald-900 rounded-lg p-4 max-w-xl mx-auto",children:r.jsxs("p",{className:"text-sm md:text-base text-emerald-900 dark:text-emerald-100",children:[r.jsx("span",{className:"font-bold",children:"The good news?"})," This is one of the most common bottlenecks for founders at your stage â and the fastest to fix."]})}),r.jsx(te,{asChild:!0,size:"lg",variant:"hero",className:"h-14 px-8 text-base",children:r.jsxs(ue,{to:"/book-call",children:[r.jsx(gr,{className:"w-5 h-5 mr-2"}),"Book Your Free Clarity Call",r.jsx(Ue,{className:"w-5 h-5 ml-2"})]})})]})})}),r.jsx("section",{className:"py-16 md:py-20",children:r.jsxs("div",{className:"container mx-auto px-4 max-w-3xl space-y-6",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold",children:u.mirrorHeadline}),h&&r.jsxs("p",{className:"text-lg leading-relaxed",children:["You said you're doing"," ",r.jsx("span",{className:"bg-primary/10 px-2 py-0.5 rounded font-semibold text-primary",children:h})," ","in revenue."]}
803),r.jsx("p",{className:"text-lg leading-relaxed text-foreground/90",children:u.mirrorBody}),r.jsx("p",{className:"font-semibold text-lg",children:"The result?"}),r.jsx("ul",{className:"space-y-3",children:u.mirrorBullets.map(p=>r.jsxs("li",{className:"flex items-start gap-3 text-base md:text-lg",children:[r.jsx("span",{className:"mt-2 w-1.5 h-1.5 rounded-full bg-primary flex-shrink-0"}),r.jsx("span",{children:p})]},p))}),r.jsxs("div",{className:"p-5 bg-muted/50 rounded-lg border-l-4 border-primary",children:[r.jsx("p",{className:"text-lg md:text-xl font-bold text-foreground",children:u.mirrorReframe}),r.jsx("p",{className:"mt-2 text-foreground/85 leading-relaxed",children:u.mirrorClose})]})]})}),r.jsx("section",{className:"py-16 md:py-20 bg-muted/40 border-y",children:r.jsxs("div",{className:"container mx-auto px-4 max-w-5xl space-y-10",children:[r.jsxs("div",{className:"text-center space-y-3 max-w-2xl mx-auto",children:[r.jsxs("div",{className:"inline-flex items-center gap-2 text-destructive font-semibold",children:[r.jsx(Ji,{className:"w-5 h-5"}),r.jsx("span",{className:"uppercase tracking-wider text-sm",children:"Cost of Inaction"})]}),r.jsx("h2",{className:"text-3xl md:text-4xl font-bold",children:"What Happens If You Don't Fix This?"})]}),r.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[r.jsxs(G,{className:"p-6 md:p-8 space-y-5 border-2",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx(zt,{className:"w-6 h-6 text-amber-600"}),r.jsx("h3",{className:"text-xl md:text-2xl font-bold",children:"6 Months From Now"})]}),r.jsx("ul",{className:"space-y-3",children:u.costSixMonths.map(p=>r.jsxs("li",{children:[r.jsxs("span",{className:"font-bold text-foreground",children:[p.label,": "]}),r.jsx("span",{className:"text-foreground/85",children:p.value})]},p.label))})]}),r.jsxs(G,{className:"p-6 md:p-8 space-y-5 border-2 border-destructive/40 bg-destructive/5",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx(Ji,{className:"w-6 h-6 text-destructive"}),r.jsx("h3",{className:"text-xl md:text-2xl font-bold",children:"12 Months From Now"})]}),r.jsx("ul",{className:"space-y-3",children:u.costTwelveMonths.map(p=>r.jsxs("li",{children:[r.jsxs("span",{className:"font-bold text-foreground",children:[p.label,": "]}),r.jsx("span",{className:"text-foreground/85",children:p.value})]},p.label))})]})]}),r.jsx("p",{className:"text-center text-lg font-semibold text-foreground/90 max-w-2xl mx-auto",children:u.costWarning})]})}),r.jsx("section",{className:"py-16 md:py-20",children:r.jsxs("div",{className:"container mx-auto px-4 max-w-5xl space-y-10",children:[r.jsxs("div",{className:"text-center space-y-4 max-w-3xl mx-auto",children:[r.jsx("p",{className:"text-sm uppercase tracking-wider text-primary font-semibold",children:"The Fix"}),r.jsxs("h2",{className:"text-3xl md:text-4xl font-bold",children:["How We Fix ",l.title," in 90 Days"]}),r.jsx("p",{className:"text-lg text-muted-foreground leading-relaxed",children:u.solutionIntro}),r.jsx("p",{className:"text-base text-foreground/80 italic",children:l.framework})]}),r.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:u.phases.map((p,v)=>r.jsxs(G,{className:"p-6 space-y-4 relative",children:[r.jsx("div",{className:"absolute -top-3 -left-3 w-10 h-10 rounded-full bg-primary text-primary-foreground flex items-center justify-center font-bold text-lg shadow",children:v+1}),r.jsxs("div",{className:"pt-2",children:[r.jsx("p",{className:"text-xs uppercase tracking-wide text-primary font-semibold",children:p.weeks}),r.jsx("h3",{className:"text-xl font-bold mt-1",children:p.title})]}),r.jsx("p",{className:"text-foreground/85 leading-relaxed",children:p.description}),r.jsx("ul",{className:"space-y-2",children:p.bullets.map(g=>r.jsxs("li",{className:"flex items-start gap-2 text-sm",children:[r.jsx(bt,{className:"w-4 h-4 text-primary mt-0.5 flex-shrink-0"}),r.jsx("span",{children:g})]},g))})]},p.title))}),r.jsx("p",{className:"text-center font-semibold text-foreground/90 max-w-2xl mx-auto",children:u.solutionTimeline})]})}),r.jsx("section",{className:"py-16 md:py-20 bg-muted/40 border-y",children:r.jsxs("div",{className:"container mx-auto px-4 max-w-4xl space-y-10",children:[r.jsxs("div",{className:"text-center space-y-3 max-w-2xl mx-auto",children:[r.jsx("p",{className:"text-sm uppercase tracking-wider text-primary font-semibold",children:"Proof It Works"}),r.jsxs("h2",{className:"text-3xl md:text-4xl font-bold",children:["How ",u.caseStudy.name," Broke Their ",l.title]}),r.jsx("p",{className:"text-muted-foreground",children:u.caseStudy.context})]}),r.jsxs(G,{className:"p-6 md:p-10 space-y-6",children:[r.jsxs("div",{className:"grid md:grid-cols-3 gap-6",children:[r.jsxs("div",{className:"space-y-3",children:[r.jsx("p",{className:"text-xs uppercase tracking-wide font-bold text-destructive",children:"Before"}),r.jsx("ul",{className:"space-y-2 text-sm",children:u.caseStudy.before.map(p=>
803r.jsxs("li",{className:"text-foreground/80",children:["⢠",p]},p))})]}),r.jsxs("div",{className:"space-y-3",children:[r.jsx("p",{className:"text-xs uppercase tracking-wide font-bold text-primary",children:"What We Installed"}),r.jsx("ul",{className:"space-y-2 text-sm",children:u.caseStudy.installed.map(p=>r.jsxs("li",{className:"text-foreground/80",children:["⢠",p]},p))})]}),r.jsxs("div",{className:"space-y-3",children:[r.jsx("p",{className:"text-xs uppercase tracking-wide font-bold text-emerald-600",children:"After (90 Days)"}),r.jsx("ul",{className:"space-y-2 text-sm",children:u.caseStudy.after.map(p=>r.jsxs("li",{className:"text-foreground/80",children:["⢠",p]},p))})]})]}),r.jsxs("div",{className:"pt-4 border-t flex items-center gap-2 text-sm font-semibold text-primary",children:[r.jsx(zt,{className:"w-4 h-4"}),u.caseStudy.timeline]})]}),r.jsx("div",{className:"grid md:grid-cols-2 gap-6",children:u.testimonials.map(p=>r.jsxs(G,{className:"p-6 space-y-3",children:[r.jsx(jr,{className:"w-6 h-6 text-primary/50"}),r.jsxs("p",{className:"italic text-foreground/85 leading-relaxed",children:['"',p.quote,'"']}),r.jsxs("p",{className:"text-sm",children:[r.jsx("span",{className:"font-bold",children:p.name})," ",r.jsxs("span",{className:"text-muted-foreground",children:["â ",p.role]})]})]},p.name))})]})}),r.jsx("section",{className:"py-16 md:py-20",children:r.jsxs("div",{className:"container mx-auto px-4 max-w-3xl space-y-8",children:[r.jsxs("div",{className:"text-center space-y-3",children:[r.jsx("p",{className:"text-sm uppercase tracking-wider text-primary font-semibold",children:"Your Recommended Path"}),r.jsxs("h2",{className:"text-3xl md:text-4xl font-bold",children:["Based on your assessment: ",r.jsx("span",{className:"text-primary",children:f.name})]})]}),r.jsxs(G,{className:"p-6 md:p-10 space-y-6 border-2 border-primary shadow-lg",children:[r.jsxs("div",{children:[r.jsx("p",{className:"text-sm font-semibold text-primary uppercase tracking-wide",children:f.tagline}),r.jsx("p",{className:"mt-3 text-lg leading-relaxed",children:f.pitch})]}),r.jsxs("div",{children:[r.jsx("p",{className:"font-bold mb-3",children:"What You'll Install:"}),r.jsx("ul",{className:"space-y-2",children:f.bullets.map(p=>r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(bt,{className:"w-5 h-5 text-primary mt-0.5 flex-shrink-0"}),r.jsx("span",{children:p})]},p))})]}),r.jsxs("div",{children:[r.jsx("p",{className:"font-bold mb-3",children:"What's Included:"}),r.jsx("ul",{className:"space-y-2",children:f.includes.map(p=>r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(bt,{className:"w-5 h-5 text-primary mt-0.5 flex-shrink-0"}),r.jsx("span",{children:p})]},p))})]}),r.jsxs("div",{className:"pt-4 border-t space-y-3",children:[r.jsxs("div",{children:[r.jsx("p",{className:"text-xs uppercase tracking-wide text-muted-foreground font-semibold",children:"Investment"}),r.jsx("p",{className:"text-xl font-bold",children:f.investment})]}),r.jsxs("div",{children:[r.jsx("p",{className:"text-xs uppercase tracking-wide text-muted-foreground font-semibold",children:"Best For"}),r.jsx("p",{className:"text-foreground/85",children:f.bestFor})]})]}),r.jsx(te,{asChild:!0,size:"lg",className:"w-full sm:w-auto",children:r.jsxs(ue,{to:f.href,children:["Explore ",f.name," ",r.jsx(Ue,{className:"w-4 h-4 ml-2"})]})})]}),r.jsxs("p",{className:"text-center text-sm text-muted-foreground",children:["Not sure which fits your budget/timeline?"," ",r.jsx(ue,{to:"/book-call",className:"text-primary font-semibold underline",children:"We'll recommend the best path on your clarity call."})]})]})}),r.jsx("section",{className:"py-16 md:py-20 bg-muted/40 border-y",children:r.jsxs("div",{className:"container mx-auto px-4 max-w-3xl space-y-8",children:[r.jsx("div",{className:"text-center space-y-3",children:r.jsx("h2",{className:"text-3xl md:text-4xl font-bold",children:"Here's What Happens Next"})}),[{title:"Book Your Free Clarity Call (30 Minutes)",body:"This isn't a sales pitch. It's a working session where we review your specific bottleneck, map your current decision-making flow, and identify your top 3 constraints."},{title:"Get Your Custom Breakthrough Plan",body:"You leave the call with a week-by-week installation timeline, specific frameworks for your business model, a team adoption strategy, and the success metrics we'll use to measure progress."},{title:"Install the System (Week 1 Starts Immediately)",body:'Most founders see measurable relief inside 30 days â fewer interruptions, more team-owned decisions, and the first "business runs without me" day within 45â60 days.'}].map((p,v)=>r.jsxs(G,{className:"p-6 flex gap-4",children:[r.jsx("div",{className:"w-10 h-10 rounded-full bg-primary text-primary-foreground flex items-center justify-center font-bold flex-shrink-0",children:v+1}),r.jsxs("div",{className:"space-y-1",children:[r.jsx("h3",{className:"text-lg font-bold",children:p.title}
803),r.jsx("p",{className:"text-foreground/85 leading-relaxed",children:p.body})]})]},p.title)),r.jsx("div",{className:"text-center",children:r.jsx(te,{asChild:!0,size:"lg",variant:"hero",className:"h-14 px-8",children:r.jsxs(ue,{to:"/book-call",children:[r.jsx(gr,{className:"w-5 h-5 mr-2"}),"Book Your Free Clarity Call",r.jsx(Ue,{className:"w-5 h-5 ml-2"})]})})})]})}),r.jsx("section",{className:"py-16 md:py-20",children:r.jsxs("div",{className:"container mx-auto px-4 max-w-3xl space-y-8",children:[r.jsx("div",{className:"text-center space-y-3",children:r.jsx("h2",{className:"text-3xl md:text-4xl font-bold",children:"Questions You Might Have Right Now"})}),r.jsx(xo,{type:"single",collapsible:!0,className:"w-full",children:u.faqs.map((p,v)=>r.jsxs(Za,{value:`item-${v}`,children:[r.jsx(Xa,{className:"text-left text-base md:text-lg font-semibold",children:p.q}),r.jsx(Ja,{className:"text-foreground/85 leading-relaxed text-base",children:p.a})]},p.q))})]})}),r.jsx("section",{className:"py-16 md:py-24 bg-primary text-primary-foreground",children:r.jsxs("div",{className:"container mx-auto px-4 max-w-4xl space-y-10",children:[r.jsxs("div",{className:"text-center space-y-4",children:[r.jsx(gr,{className:"w-12 h-12 mx-auto opacity-90"}),r.jsxs("h2",{className:"text-3xl md:text-5xl font-bold leading-tight",children:["Ready to Break Your ",l.title,"?"]}),r.jsx("p",{className:"text-lg md:text-xl opacity-90 max-w-2xl mx-auto",children:"You've identified the problem. You know what happens if you stay stuck. Now it's time to install the system that fixes it."}),r.jsx("div",{className:"pt-2",children:r.jsx(te,{asChild:!0,size:"lg",variant:"secondary",className:"h-14 px-8 text-base",children:r.jsxs(ue,{to:"/book-call",children:[r.jsx(gr,{className:"w-5 h-5 mr-2"}),"Book Your Free 30-Minute Clarity Call",r.jsx(Ue,{className:"w-5 h-5 ml-2"})]})})})]}),r.jsxs(G,{className:"p-6 md:p-8 bg-primary-foreground text-foreground flex flex-col md:flex-row gap-6 items-center",children:[r.jsx("div",{className:"flex-shrink-0 w-20 h-20 rounded-full bg-amber-100 dark:bg-amber-900 flex items-center justify-center",children:r.jsx(Bn,{className:"w-10 h-10 text-amber-600 dark:text-amber-300"})}),r.jsxs("div",{className:"text-center md:text-left",children:[r.jsx("h3",{className:"text-xl md:text-2xl font-bold",children:"Our 30-Day Money-Back Guarantee"}),r.jsx("p",{className:"mt-2 text-foreground/85 leading-relaxed",children:"Try the Simple Operations System for 30 days. If you're not completely satisfied with your progress, just send us an email and we'll refund 100% of your investment. No questions asked. No hoops to jump through."})]})]}),r.jsx("div",{className:"grid md:grid-cols-3 gap-4",children:u.finalTestimonials.map(p=>r.jsxs("div",{className:"p-5 rounded-lg bg-primary-foreground/10 border border-primary-foreground/20 space-y-3",children:[r.jsx(jr,{className:"w-5 h-5 opacity-70"}),r.jsxs("p",{className:"text-sm italic opacity-95 leading-relaxed",children:['"',p.quote,'"']}),r.jsxs("p",{className:"text-xs",children:[r.jsx("span",{className:"font-bold",children:p.name}),r.jsxs("span",{className:"opacity-80",children:[" â ",p.role]})]})]},p.name))})]})}),r.jsx("section",{className:"py-12 md:py-16",children:r.jsxs("div",{className:"container mx-auto px-4 max-w-2xl text-center space-y-4",children:[r.jsx("p",{className:"text-sm uppercase tracking-wider text-muted-foreground font-semibold",children:"Not Ready to Book Yet?"}),r.jsx("h3",{className:"text-2xl font-bold",children:"Get the book + free tools instead"}),r.jsx("p",{className:"text-foreground/80",children:"Start with the Simple Operations book and the free DIY frameworks. You can come back and book your call when you're ready."}),r.jsxs("div",{className:"flex flex-wrap gap-3 justify-center pt-2",children:[r.jsx(te,{asChild:!0,variant:"outline",size:"lg",children:r.jsxs(ue,{to:"/so-book",children:[r.jsx(nu,{className:"w-4 h-4 mr-2"}),"Get the Book + Free Tools"]})}),r.jsx(te,{asChild:!0,variant:"ghost",size:"lg",children:r.jsxs(ue,{to:"/",children:[r.jsx(ss,{className:"w-4 h-4 mr-2"}),"Back to Homepage"]})})]})]})}),r.jsx(ht,{})]})}const Nv=[{id:"all",label:"All Questions"},{id:"system",label:"About the System"},{id:"pricing",label:"Programs & Pricing"},{id:"implementation",label:"Implementation"},{id:"results",label:"Results & Timeline"},{id:"about",label:"About Simple Operations"},{id:"start",label:"Getting Started"}],Qe=({children:e})=>r.jsx("p",{className:"text-muted-foreground leading-relaxed mb-4 last:mb-0",children:e}),rr=({items:e})=>r.jsx("ul",{className:"space-y-2 mb-4 list-disc pl-5 text-muted-foreground",children:e.map((t,n)=>r.jsx("li",{children:t},n))}),a4=[{category:"system",q:"What exactly is the Simple Operations System?",a:r.jsxs(r.Fragment,{children:[r.jsx(Qe,{children:"It's a pre-built operating system for businesses between $300Kâ$10M+ that transforms founder-dependent operations into self-running teams."}),r.jsx(Qe,{children:"It includes 5 core components:"}),r.jsx(rr,{items:["Passenger Seat Leadership (your role shift)","Weekly Sync (batched communication)","Waterfall Planning (goal clarity)","Four Levels of Delegation (decision rights transfer)","Operating Scorecard (visibility without micromanaging)"]}),r.jsx("p",{className:"text-foreground font-semibold",children:"You're not building it from scratch â you're installing proven frameworks."})]})}
803,{category:"system",q:"How is this different from EOS / Traction?",a:r.jsxs(r.Fragment,{children:[r.jsx(Qe,{children:"EOS is an unproven fit for sub-$10M founder-led businesses. It's expensive (minimum $150,000 to install) and requires 2+ years of bureaucratic rollout before you see meaningful results."}),r.jsx(Qe,{children:"Simple Operations is purpose-built for $300Kâ$10M+ founders who:"}),r.jsx(rr,{items:["Don't have an effective leadership team yet","Need systems that install fast (90 days, not 2+ years)","Want lighter frameworks that work immediately without a six-figure investment"]}),r.jsxs(Qe,{children:[r.jsx("strong",{className:"text-foreground",children:"EOS"})," = unproven for your stage, expensive ($150k+ minimum), and slow (2+ years to install)."," ",r.jsx("strong",{className:"text-foreground",children:"Simple Operations"})," = startup-grade operating system (lean, fast, built for founder-led teams)."]}),r.jsx("p",{className:"text-foreground font-semibold",children:"Simple Operations is built for your stage."})]})},{category:"system",q:"Is this just another business coaching program?",a:r.jsxs(r.Fragment,{children:[r.jsxs(Qe,{children:["No. This is ",r.jsx("strong",{className:"text-foreground",children:"implementation partnership"}),", not coaching."]}),r.jsxs(Qe,{children:[r.jsx("strong",{className:"text-foreground",children:"Most coaches:"})," give you advice in weekly calls, hand you homework to implement on your own, and disappear after 12 weeks."]}),r.jsxs(Qe,{children:[r.jsx("strong",{className:"text-foreground",children:"Simple Operations:"})," installs the system WITH you (not for you), your Simple Operations Guide works alongside your team, we help you hire your in-house operator, and we ensure adoption â we don't hand you a binder and leave."]}),r.jsx("p",{className:"text-foreground font-semibold",children:"You're not getting tips. You're getting an operating system."})]})},{category:"system",q:"Do I need special software or tools?",a:r.jsxs(r.Fragment,{children:[r.jsx(Qe,{children:"No expensive software required. We work with what you already have:"}),r.jsx(rr,{items:["Google Workspace or Microsoft 365","Your existing project management tool (Asana, ClickUp, Monday, etc.)","Video conferencing (Zoom, Google Meet, Teams)","Basic spreadsheets (for the scorecard)"]}),r.jsx("p",{className:"text-foreground font-semibold",children:"We install frameworks and rhythms â not software platforms."})]})},{category:"system",q:"Will this work for my industry?",a:r.jsxs(r.Fragment,{children:[r.jsx(Qe,{children:"Yes. The bottleneck isn't in WHAT you do â it's in HOW decisions get made. That's universal."}),r.jsx(Qe,{children:"We've installed this system in:"}),r.jsx(rr,{items:["Marketing agencies","Consulting firms","SaaS companies","Professional services (legal, accounting, HR)","Property management","Home inspection services","Wellness and coaching businesses","Construction and trades"]}),r.jsx("p",{className:"text-foreground font-semibold",children:"If you have 3+ team members and you're the daily decision bottleneck, this works."})]})},{category:"system",q:"My business is really unique. Will generic frameworks actually fit?",a:r.jsxs(r.Fragment,{children:[r.jsx(Qe,{children:"Every founder thinks their business is unique. You're partly right."}),r.jsxs(Qe,{children:[r.jsx("strong",{className:"text-foreground",children:"What's unique:"})," your service, your clients, your industry terminology."]}),r.jsxs(Qe,{children:[r.jsx("strong",{className:"text-foreground",children:"What's universal:"})," how decisions get made, how information flows, how priorities get set, how accountability works."]}),r.jsx("p",{className:"text-foreground font-semibold",children:"Simple Operations fixes the universal parts. You keep the unique parts that make you competitive."})]})},{category:"pricing",q:"What's the difference between Clarity Method and Scale Method?",a:r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"grid md:grid-cols-2 gap-4 mb-4",children:[r.jsxs(G,{className:"p-5 border-primary/30",children:[r.jsx("h4",{className:"font-bold text-foreground mb-2",children:"Clarity Method"}),r.jsxs("ul",{className:"text-sm text-muted-foreground space-y-1",children:[r.jsxs("li",{children:[r.jsx("strong",{className:"text-foreground",children:"For:"})," $300Kâ$500K, 3â10 team"]}),r.jsxs("li",{children:[r.jsx("strong",{className:"text-foreground",children:"Duration:"})," 90 days"]}),r.jsxs("li",{children:[r.jsx("strong",{className:"text-foreground",children:"Focus:"})," Install foundations BEFORE the bottleneck"]}),r.jsxs("li",{children:[r.jsx("strong",{className:"text-foreground",children:"Investment:"})," $600/mo à 12 or $6,600 up front"]}),r.jsxs("li",{children:[r.jsx("strong",{className:"text-foreground",children:"Best for:"})," Prevention"]})]})]}),r.jsxs(G,{className:"p-5 border-primary/30",children:[r.jsx("h4",{className:"font-bold text-foreground mb-2",children:"Scale Method"}),r.jsxs("ul",{className:"text-sm text-muted-foreground space-y-1",children:[r.jsxs("li",{children:[r.jsx("strong",{className:"text-foreground",children:"For:"})," $500Kâ$3M, 8â25 team"]}),r.jsxs("li",{children:[r.jsx("strong",{className:"text-foreground",children:"Duration:"})," 12 months"]}),r.jsxs("li",{children:[r.jsx("strong",{className:"text-foreground",children:"Focus:"})," Break the bottleneck, full system"]}),r.jsxs("li",{children:[r.jsx("strong",{className:"text-foreground",children:"Investment:"})," $3,000/mo à 12 or $33,000 up front"]}),r.jsxs("li",{children:[r.jsx("strong",{className:"text-foreground",children:"Best for:"})," Already stuck as the bottleneck"]})]})]})]}),r.jsxs("p",{className:"text-foreground font-semibold",children:["Not sure which fits?"," ",r.jsx(ue,{to:"/assessment",className:"text-primary underline",children:"Take the 5-Minute Bottleneck Assessment â"})]})]})},{category:"pricing",q:"Can I just buy the templates and frameworks without the coaching?",a:r.jsxs(r.Fragment,{children:[r.jsxs(Qe,{children:["Yes. That's the ",r.jsx("strong",{className:"text-foreground",children:"Essentials Course"})," (self-paced) â complete video training, core templates, self
803-assessment tools, and email support."," ",r.jsx("strong",{className:"text-foreground",children:"Investment: $497 one-time."})]}),r.jsx(Qe,{children:"Best for budget-conscious founders who prefer DIY. Tradeoff: you get the tools but not the implementation partnership. Most founders need accountability and team adoption support â that's what Clarity and Scale provide."})]})},{category:"pricing",q:"Do you offer payment plans?",a:r.jsxs(r.Fragment,{children:[r.jsx(Qe,{children:"Yes."}),r.jsx(rr,{items:[r.jsxs(r.Fragment,{children:[r.jsx("strong",{className:"text-foreground",children:"Clarity Method:"})," $6,600 up front (one month free) or 12 payments of $600"]}),r.jsxs(r.Fragment,{children:[r.jsx("strong",{className:"text-foreground",children:"Scale Method:"})," $33,000 up front (one month free) or 12 payments of $3,000"]}),r.jsxs(r.Fragment,{children:[r.jsx("strong",{className:"text-foreground",children:"Essentials Course:"})," $497 one-time"]})]})]})},{category:"pricing",q:"What's your refund policy?",a:r.jsxs(r.Fragment,{children:[r.jsx(Qe,{children:r.jsx("strong",{className:"text-foreground",children:"30-Day Money-Back Guarantee."})}),r.jsx("div",{className:"bg-primary/5 border border-primary/20 rounded-lg p-5 mb-4",children:r.jsx("p",{className:"text-foreground font-semibold",children:"Try the Simple Operations System for 30 days. If you're not completely satisfied with your progress, we'll refund 100% of your investment. No questions asked. No hoops to jump through. No fine print."})}),r.jsxs(Qe,{children:["Just send us a simple email within 30 days and your refund is processed within 5 business days. The only required step is a short feedback form so we can learn from your experience."," ",r.jsx(ue,{to:"/guarantee",className:"text-primary underline",children:"Read the full guarantee â"})]})]})},{category:"pricing",q:"Is there ongoing support after the program ends?",a:r.jsx(r.Fragment,{children:r.jsx(rr,{items:[r.jsxs(r.Fragment,{children:[r.jsx("strong",{className:"text-foreground",children:"Clarity Method:"})," 30 days post-program email support included. Optional monthly check-ins ($500/mo)."]}),r.jsxs(r.Fragment,{children:[r.jsx("strong",{className:"text-foreground",children:"Scale Method:"})," Virtual virtual quarterly strategic reviews in Year 2 (no cost), alumni community access, on-demand support ($200/hr)."]}),r.jsxs(r.Fragment,{children:[r.jsx("strong",{className:"text-foreground",children:"Essentials Course:"})," Email support for framework questions."]})]})})},{category:"pricing",q:"Can I upgrade from Clarity to Scale later?",a:r.jsxs(r.Fragment,{children:[r.jsx(Qe,{children:"Yes. Many founders start with Clarity, install foundations, then upgrade to Scale when they're ready for the full system."}),r.jsx("p",{className:"text-foreground font-semibold",children:"We credit 50% of your Clarity investment toward Scale if you upgrade within 6 months."})]})},{category:"implementation",q:"How much time do I need to commit each week?",a:r.jsxs(r.Fragment,{children:[r.jsx(rr,{items:[r.jsxs(r.Fragment,{children:[r.jsx("strong",{className:"text-foreground",children:"Clarity Method:"})," 60-min weekly call + 2â3 hrs implementing. Total ~3â4 hrs/week across the 12-month program, with first wins as early as 90 days."]}),r.jsxs(r.Fragment,{children:[r.jsx("strong",{className:"text-foreground",children:"Scale Method:"})," 60-min weekly call + 3â5 hrs implementing. Total ~5â7 hrs/week for 12 months."]})]}),r.jsx(Qe,{children:"Reality check: you're already spending 15â20 hrs/week being the bottleneck. This reallocates 5â7 of those hours to BUILDING systems that eliminate the other 10â15."}),r.jsx("p",{className:"text-foreground font-semibold",children:"Most founders are net-positive on time by Week 4."})]})},{category:"implementation",q:"Do I need to involve my whole team?",a:r.jsxs(r.Fragment,{children:[r.jsx(Qe,{children:"Yes â but not all at once."}),r.jsx(rr,{items:[r.jsxs(r.Fragment,{children:[r.jsx("strong",{className:"text-foreground",children:"Phase 1 (Weeks 1â4):"})," Just you and your Simple Operations Guide install the frameworks."]}),r.jsxs(r.Fragment,{children:[r.jsx("strong",{className:"text-foreground",children:"Phase 2 (Weeks 5â8):"})," Bring in key team members."]}),r.jsxs(r.Fragment,{children:[r.jsx("strong",{className:"text-foreground",children:"Phase 3 (Weeks 9â12):"})," Full team adoption and training."]})]}),r.jsx(Qe,{children:"Team commitment: 60â90 min/week in Weekly Sync + 30 min/week individual planning. They don't attend our implementation calls â just the rhythms we install."})]})},{category:"implementation",q:"What if my team resists the new systems?",a:r.jsxs(r.Fragment,{children:[r.jsx(Qe,{children:"Resistance usually comes from fear or confusion, not stubbornness."}),r.jsx(rr,{items:["We explain WHY to your team â clearer priorities, fewer interruptions, easier job.","We make adoption simple â start with one rhythm, prove it works, add more.","We include your team in design â they help build the frameworks and own the execution."]}),r.jsx("p",{className:"text-foreground font-semibold",children:"In 2,500+ implementations, we've seen resistance <5% of the time. When systems make people's jobs easier, they adopt fast."})]})},{category:"implementation",q:"Can I pause the program if things get crazy?",a:r.jsxs(r.Fragment,{children:[r.jsx(rr,{items:[r.jsxs(r.Fragment,{children:[r.jsx("strong",{className:"text-foreground",children:"Clarity (90 days):"})," Pause up to 2 weeks once. Program extends by the same duration."]}),r.jsxs(r.Fragment,{children:[r.jsx("strong",{className:"text-foreground",children:"Scale (12 months):"})," Pause up to 4 weeks total across the year."]})]}),r.jsx(Qe,{children:"Why limit pauses? Momentum matters. The longer you wait, the harder it is to restart. We'd rather adjust the pace than pause completely."})]})},{category:"implementation",q:"What happens if I miss a weekly call?",a:r.jsxs(r.Fragment,{children:[r.jsx(Qe,{children:"Life happens. We get it."}),r.jsx(rr,{items:["First missed call: we reschedule within the same week if possible.","Second missed call: we send the framework + video walkthrough.","Three+ in a row: we pause and reassess readiness."]}),r.jsx("p",{className:"text-foreground font-semibold",children:"You're paying for implementation partnership, not just access. If you're not showing up, we can't install the system WITH you."})]})},{category:"implementation",q:"Do you work with remote / distributed teams?",a:r.jsxs(r.Fragment,{children:[r.jsx(Qe,{children:"Yes. 80%+ of our clients have remote or hybrid teams. Weekly Sync, Waterfall Planning, and Decision Rights are built for async, distributed work."}),r.jsx("p",{className:"text-foreground font-semibold",children:"Remote teams often adopt FASTER because they already understand the need for clear communication rhythms."})]})},{category:"results",q:"How fast will I see results?",a:r.jsx(rr,{items:[r.jsxs(r.Fragment,{children:[r.jsx("strong",{className:"text-foreground",children:"Week 1â2:"})," Immediate relief from installing Weekly Sync."]}),r.jsxs(r.Fragment,{children:[r.jsx("strong",{className:"text-foreground",children:"Week 4â6:"})," Team making 50%+ of recurring decisions without you."]}),r.jsxs(r.Fragment,{children:[r.jsx("strong",{className:"text-foreground",children:"Week 8â12:"}),' First "business runs without me" week.']}),r.jsxs(r.Fragment,{children:[r.jsx("strong",{className:"text-foreground",children:"Month 4â6 (Scale):"})," 80%+ of decisions made independently. 15+ hours back per week."]})]})},{category:"results",q:'What does "business runs without me" actually mean?',a:r.jsxs(r.Fragment,{children:[r.jsx(Qe,{children:"It means you can take a full week off and:"}
803),r.jsx(rr,{items:["No client emergencies escalate to you","No team waiting on your approval to proceed","Revenue continues, projects progress, operations function","You return to a clean inbox â not 147 'urgent' messages"]}),r.jsx(Qe,{children:"You're still the CEO. You still set strategy and make big decisions. But the daily operations run without your constant presence."}),r.jsx("p",{className:"text-foreground font-semibold",children:"That's Passenger Seat Leadership."})]})},{category:"results",q:"Will my revenue grow from implementing this?",a:r.jsxs(r.Fragment,{children:[r.jsx(Qe,{children:"Simple Operations doesn't directly generate revenue. It removes the constraint (you) that's blocking revenue growth."}),r.jsx(rr,{items:[r.jsxs(r.Fragment,{children:[r.jsx("strong",{className:"text-foreground",children:"Months 1â3:"})," Revenue flat â you're installing systems."]}),r.jsxs(r.Fragment,{children:[r.jsx("strong",{className:"text-foreground",children:"Months 4â6:"})," Revenue up 15â30% (strategic work, faster execution, more capacity)."]}),r.jsxs(r.Fragment,{children:[r.jsx("strong",{className:"text-foreground",children:"Months 7â12:"})," Revenue up 30â80% (you've bought back 15â20 hrs/week and reinvested them in growth)."]})]}),r.jsx(Qe,{children:"Example: Colin T. went from $18K/month to $55K/month in 4 months after installing the system â because he stopped being the admin bottleneck."})]})},{category:"results",q:"What if I'm already working with a business coach?",a:r.jsxs(r.Fragment,{children:[r.jsx(Qe,{children:"Simple Operations complements coaching â it doesn't replace it."}),r.jsx(rr,{items:["Your coach helps with strategy, vision, market positioning, personal development.","Simple Operations helps with operations, execution, team systems, decision frameworks."]}),r.jsx("p",{className:"text-foreground font-semibold",children:"Many clients work with both. Your coach sets the vision; we install the operating system that executes it."})]})},{category:"results",q:"How do I know if this will work for MY specific situation?",a:r.jsxs(r.Fragment,{children:[r.jsx(Qe,{children:"Book a free Clarity Call. In 30 minutes we'll diagnose your bottleneck, map your operating gaps, show you the specific frameworks we'd install, and build your custom 90-day roadmap."}),r.jsx("p",{className:"text-foreground font-semibold",children:"You get the roadmap whether you work with us or not."}),r.jsx("div",{className:"mt-4",children:r.jsx(te,{asChild:!0,children:r.jsxs(ue,{to:"/book-call",children:["Book your free Clarity Call ",r.jsx(Ue,{className:"ml-2 w-4 h-4"})]})})})]})},{category:"results",q:"What percentage of clients actually succeed?",a:r.jsxs(r.Fragment,{children:[r.jsx(Qe,{children:'85%+ of clients who complete the program achieve their "business runs without me" week within 90â120 days.'}),r.jsx(Qe,{children:"The 15% who don't typically stop showing up, don't involve their team, or expect instant results."}),r.jsx("p",{className:"text-foreground font-semibold",children:"If you show up, involve your team, and work the system, you will break your bottleneck. And we back it with our 30-day money-back guarantee â no questions asked."})]})},{category:"about",q:"Who is Gabe Arnold?",a:r.jsxs(r.Fragment,{children:[r.jsx(Qe,{children:"Gabe has 30+ years of entrepreneurship experience, including:"}),r.jsx(rr,{items:["Started his first construction company at age 18 and built multi-seven figure businesses","Founded Business Marketing Engine (scaled to $10M+)","Sold $40M+ in products and services across multiple businesses","Learned the Simple Operations framework from Alex Charfen","Now leads Simple Operations, helping 2,500+ founders break their bottleneck"]}),r.jsx("p",{className:"text-foreground font-semibold",children:"Gabe isn't a consultant who's never run a business. He's a serial founder who lived the bottleneck â and learned how to break it."})]})},{category:"about",q:"What's your relationship with Alex Charfen?",a:r.jsxs(r.Fragment,{children:[r.jsx(Qe,{children:"Alex Charfen created the original Simple Operations framework. Gabe learned it, implemented it in his own businesses, proved it worked, and started teaching it."}),r.jsx(Qe,{children:"When the opportunity came to take over Simple Operations and carry forward the mission, Gabe stepped in to lead. Today it's built on Alex's original frameworks, evolved through 2,500+ implementations."})]})},{category:"about",q:"How many people are on your team?",a:r.jsxs(r.Fragment,{children:[r.jsx(Qe,{children:"We intentionally stay small to maintain quality."}),r.jsx(rr,{items:["Gabe Arnold (CEO / Lead Operator)","3 Senior Operators (10+ years operational experience each)","2 Implementation Specialists (team training and adoption)"]}),r.jsx("p",{className:"text-foreground font-semibold",children:"Every client gets personalized attention from a dedicated Simple Operations Guide."})]})},{category:"about",q:"How quickly can I get started?",a:r.jsxs(r.Fragment,{children:[r.jsx(Qe,{children:"Fast. Apply today, get on a Clarity Call this week, and you can be implementing your first system inside of 7 days. Every week you wait is another week of decisions stacking up and your team waiting on you â there's no reason to stay stuck as the bottleneck."}),r.jsx("p",{className:"text-foreground font-semibold",children:"Backed by our 30-day money-back guarantee."})]})},{category:"start",q:"What's the first step?",a:r.jsx(r.Fragment,{children:r.jsx(rr,{items:[r.jsxs(r.Fragment,{children:[r.jsx("strong",{className:"text-foreground",children:"Option 1:"})," Take the 5-Minute ",r.jsx(ue,{to:"/assessment",className:"text-primary underline",children:"Bottleneck Assessment"}),". See your exact constraint and get recommendations."]}),r.jsxs(r.Fragment,{children:[r.jsx("strong",{className:"text-foreground",children:"Option 2:"})," ",r.jsx(ue,{to:"/book-call",className:"text-primary underline",children:"Book a Clarity Call"})," (30 minutes). Talk to us directly."]}),r.jsxs(r.Fragment,{children:[r.jsx("strong",{className:"text-foreground",children:"Option 3:"})," Start with the ",r.jsx(ue,{to:"/so-book",className:"text-primary underline",children:"book"}),". Learn the framework, then decide."]})]})})},{category:"start",q:"What happens on the Clarity Call?",a:r.jsxs(r.Fragment,{children:[r.jsx(Qe,{children:"30 minutes. Three parts:"}),r.jsx(rr,{items:["Diagnose your bottleneck (10 min)","Map your system gaps (10 min)","Build your roadmap (10 min)"]}),r.jsx("p",{className:"text-foreground font-semibold",children:"You get the roadmap whether you work with us or not."})]})},{category:"start",q:"Is the Clarity Call really free?",a:r.jsx(Qe,{children:"Yes. No cost. No credit card. No catch. We use it to determine if we're a good fit. If we're not, we'll tell you â and you keep the roadmap."})},{category:"start",q:"How quickly can I start after booking?",a:r.jsxs(r.Fragment,{children:[r.jsx(rr,{items:["Book your Clarity Call this week.","If it's a fit, kickoff call within 7â10 days (Clarity) or 7â14 days (Scale).","Week 1 implementation starts immediately."]}),r.jsx("p",{className:"text-foreground font-semibold",children:"Timeline from first contact to Week 1: 10â14 days."})]})},{category:"start",q:"What if I have more questions?",a:r.jsx(r.Fragment,{children:r.jsxs(Qe,{children:["Email us at"," ",r.jsx("a",{href:"mailto:[email protected]",className:"text-primary underline",children:"[email protected]"}),". We respond within 24 hours (weekdays). Or book a Clarity Call and ask us directly."]})})}],mge=()=>{const[e,t]=j.useState("all"),n=j.useMemo(()=>e==="all"?a4:a4.filter(a=>a.category===e),[e]),s=j.useMemo(()=>{var i;const a={};for(const o of n){const l=((i=Nv.find(c=>c.id===o.category))==null?void 0:i.label)??o.category;(a[l]||(a[l]=[])).push(o)}return a},[n]);return r.jsxs("div",{className:"min-h-screen bg-background",children:[r.jsx(vr,{title:"FAQ â Simple Operations | Break Your Founder Bottleneck",description:"Answers about the Simple Operations System, Clarity Method, Scale Method, pricing, implementation, results, and our 30-day guarantee.",canonical:"/faq"}),r.jsx(_t,{}),r.jsx("section",{className:"pt-28 pb-16 px-4 bg-gradient-subtle",children:r.jsxs("div",{className:"container mx-auto max-w-4xl text-center",children:[r.jsxs("h1",{className:"text-4xl md:text-6xl font-bold mb-6 text-foreground leading-tight",children:["Questions About ",r.jsx("span",{className:"text-primary",children:"Simple Operations?"})]}),r.jsx("p",{className:"text-xl md:text-2xl text-muted-foreground leading-relaxed",children:"Everything you need to know about breaking your founder bottleneck â answered in plain English."})]})}),r.jsx("section",{className:"sticky top-16 z-30 bg-background/95 backdrop-blur border-b border-border",children:r.jsxs("div",{className:"container mx-auto max-w-5xl px-4 py-4",children:[r.jsx("div",{className:"hidden md:flex flex-wrap gap-2 justify-center",children:Nv.map(a=>r.jsx("button",{onClick:()=>t(a.id),className:`px-4 py-2 rounded-full text-sm font-medium transition-colors border ${e===a.id?"bg-primary text-primary-foreground border-primary":"bg-background text-muted-foreground border-border hover:border-primary hover:text-foreground"}`,children:a.label},a.id))}),r.jsx("div",{className:"md:hidden",children:r.jsx("select",{value:e,onCh
803ange:a=>t(a.target.value),className:"w-full px-4 py-3 rounded-lg border border-border bg-background text-foreground font-medium",children:Nv.map(a=>r.jsx("option",{value:a.id,children:a.label},a.id))})})]})}),r.jsx("section",{className:"py-16 px-4",children:r.jsx("div",{className:"container mx-auto max-w-3xl space-y-12",children:Object.entries(s).map(([a,i])=>r.jsxs("div",{children:[e==="all"&&r.jsx("h2",{className:"text-2xl md:text-3xl font-bold mb-6 text-foreground",children:a}),r.jsx(xo,{type:"multiple",className:"w-full",children:i.map((o,l)=>r.jsxs(Za,{value:`${a}-${l}`,className:"border border-border rounded-lg mb-3 px-5 bg-card data-[state=open]:border-primary/40 data-[state=open]:shadow-soft",children:[r.jsx(Xa,{className:"text-left text-lg font-semibold text-foreground hover:no-underline py-5",children:o.q}),r.jsx(Ja,{className:"pt-2 pb-5 text-base",children:o.a})]},`${a}-${l}`))})]},a))})}),r.jsx("section",{className:"py-20 px-4 bg-gradient-to-br from-primary to-primary/80",children:r.jsxs("div",{className:"container mx-auto max-w-4xl text-center text-primary-foreground",children:[r.jsx("h2",{className:"text-3xl md:text-5xl font-bold mb-4",children:"Still have questions?"}),r.jsx("p",{className:"text-xl text-primary-foreground/90 mb-10",children:"Pick the path that fits where you are right now."}),r.jsxs("div",{className:"grid md:grid-cols-3 gap-6 text-left",children:[r.jsxs(G,{className:"p-6 bg-background text-foreground",children:[r.jsx(gr,{className:"w-8 h-8 text-primary mb-3"}),r.jsx("h3",{className:"font-bold text-lg mb-2",children:"Book a Free Clarity Call"}),r.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Get your questions answered live. Walk away with your custom 90-day roadmap."}),r.jsx(te,{asChild:!0,className:"w-full",children:r.jsxs(ue,{to:"/book-call",children:["Book your call ",r.jsx(Ue,{className:"ml-2 w-4 h-4"})]})})]}),r.jsxs(G,{className:"p-6 bg-background text-foreground",children:[r.jsx(N7,{className:"w-8 h-8 text-primary mb-3"}),r.jsx("h3",{className:"font-bold text-lg mb-2",children:"Take the 5-Minute Assessment"}),r.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"See your exact bottleneck and get personalized recommendations."}),r.jsx(te,{asChild:!0,variant:"outline",className:"w-full",children:r.jsxs(ue,{to:"/assessment",children:["Start assessment ",r.jsx(Ue,{className:"ml-2 w-4 h-4"})]})})]}),r.jsxs(G,{className:"p-6 bg-background text-foreground",children:[r.jsx(xr,{className:"w-8 h-8 text-primary mb-3"}),r.jsx("h3",{className:"font-bold text-lg mb-2",children:"Email Us"}),r.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"We respond within 24 hours on weekdays."}),r.jsx(te,{asChild:!0,variant:"outline",className:"w-full",children:r.jsx("a",{href:"mailto:[email protected]",children:"[email protected]"})})]})]})]})}),r.jsx(ht,{})]})},fge=[{title:"Vision First, Chaos Last",body:"We make every decision to protectâand amplifyâthe founder's visionary power. We turn operational chaos into clarity, so creative work, big thinking and massive impact are always possible."},{title:"Structure Sets You Free",body:"We believe the right systems don't stifle; they empower. Simplicity in operations is the foundation for true entrepreneurial freedom."}
803,{title:"Operate With Radical Transparency And Ownership",body:"We own outcomes, not just actions. Each Operator, team member, and client takes full responsibility for progress, problems, and results. We operate with intentional and radical transparency."},{title:"Meetings Must Have Meaning",body:"We replace ad hoc chaos with targeted, intentional interactions. Every meeting has a purpose and a payoff."},{title:"Clarity Is Kindness",body:"We say the hard truths with care. We're committed to transparent communicationâeven when it's uncomfortable."},{title:"Design for Repeatable Wins",body:`We don't "wing it." We design scalable, repeatable processesâso excellence becomes automatic and everyone can win again and again.`},{title:"Track Progress, Not Just Activity",body:"We measure what matters: clear outcomes, not busywork. Visible metrics and honest reporting help us tune, adjust, and always move forward."},{title:"Trust is Engineered, Not Assumed",body:"High-trust teams and client relationships are built on reliability, accountability, and consistent delivery. We earn trust every day."},{title:"Celebrate Progress, Learn from Setbacks",body:"We recognize every milestone, big and small. Failures are never hiddenâthey're learning moments to be shared, studied, and used for growth."},{title:"Whole Founder, Whole Team",body:"Personal well-being is as important as metrics. We build our culture and processes so people can thriveâat work, and at home."},{title:"Teach the Why, Not Just the How",body:'We empower leaders and members by sharing our reasoning, not just our templates. Understanding "why" builds future autonomy and smarter decisions.'},{title:"Leave Every System Better",body:"Every Operator, member, and team interaction should make the business easier, stronger, and more joyful for the next person."},{title:"Model What We Teach",body:"We run Simple Operations using the very frameworks and cadence we provide. We are our own best case study."},{title:"Community Over Competition",body:"We create a supportive networkânot a zero-sum race. Members and team celebrate each other's wins and rise together."},{title:"Future-Proof from Day One",body:"We build with longevity in mind. Every solution should be simple enough to scale and strong enough to adapt."}],pge=()=>r.jsxs("div",{className:"min-h-screen",children:[r.jsxs(hd,{children:[r.jsx("title",{children:"Our Guiding Principles | Simple Operations"}),r.jsx("meta",{name:"description",content:"The 15 guiding principles that shape how Simple Operations serves founders, operators, and teamsâturning operational chaos into clarity."})]}),r.jsx(_t,{}),r.jsx("main",{className:"pt-24 pb-16",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsxs("div",{className:"max-w-4xl mx-auto",children:[r.jsxs("div",{className:"text-center mb-12",children:[r.jsx("div",{className:"flex items-center justify-center mb-4",children:r.jsx(yl,{className:"w-12 h-12 text-primary"})}),r.jsx("h1",{className:"text-4xl md:text-5xl font-bold text-foreground mb-4",children:"Our Guiding Principles"}),r.jsx("p",{className:"text-xl text-muted-foreground",children:"The commitments that shape how we work with every founder, operator, and team."})]}),r.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:fge.map((e,t)=>r.jsx(G,{className:"h-full",children:r.jsx(Ne,{className:"p-6",children:r.jsxs("div",{className:"flex items-start gap-4",children:[r.jsx("div",{className:"flex-shrink-0 w-10 h-10 rounded-full bg-primary/10 text-primary font-bold flex items-center justify-center",children:t+1}),r.jsxs("div",{children:[r.jsx("h2",{className:"text-lg font-semibold text-foreground mb-2",children:e.title}),r.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:e.body})]})]})})},t))})]})})}),r.jsx(ht,{})]}),gge=[{id:"colin",name:"Colin T.",business:"Thompson Inspections",industry:"Home Services",revenue:"$300K-$500K",bottlenecks:["Decision","Process"],headline:"From $18K/mo to $55K/mo in 4 Months",before:"Colin was drowning. Revenue stuck at $18,000/month. Every admin decision ran through him. He couldn't step away for a single day without things breaking.",beforePoints:["Working 60+ hour weeks","Admin side required constant oversight","Team waiting on him for every decision","Revenue ceiling at $18K/month","Zero ability to take time off"],installed:["OTAs (One-Time Actions) for recurring decisions","Daily Huddles for batched communication","Waterfall Planning for team clarity","Full delegation framework","Admin operations transferred to operations manager"],resultQuote:"The whole admin side is running by itself. Maurice handles the whole admin side now. It totally ran without me all last week. I didn't touch anything.",wins:["Revenue: $18K â $55K/month (3x growth)","Admin fully autonomous","Team making 90% of decisions independently","First chaos-free morning in years","First full week off where business thrived without him","On track for $500K+ annual revenue at 28% margin"],milestones:[{when:"Week 2",what:"First 'no urgent email' morning"},{when:"Week 6",what:"Daily huddles eliminating constant interruptions"},{when:"Day 90",what:"First full week business ran without him"}]},{id:"dustin",name:"Dustin F.",business:"Marketing Dr.",industry:"Marketing Agency",revenue:"$500K-$1M",bottlenecks:["Process","Visibility"],headline:"From Agency Chaos to Confident Growth",before:"Dustin was running a growing agency but drowning in operational chaos. No foundational security. Constant firefighting. Insecure about his ability to scale.",beforePoints:["Agency chaos, constant reactive firefighting","No operational security or foundations","Founder feeling insecure about growth capacity","Team waiting on leadership for direction"],installed:["Foundational security systems (Clarity Method, 90 days)","Team capacity dashboard","Weekly planning rhythms","Founder confidence frameworks"],resultQuote:"I feel more confident as we started to implement these things. It feels better â a little more security. I'm stressed but very hopeful, and I see we'll be in a really good position by the end of this year.",wins:["Stability achieved within 30 days","Foundational operational security installed","More confidence in scaling ability","Team capacity visible on dashboard","Founder stress reduced, hope restored"],milestones:[{when:"Week 2",what:"First foundational systems installed"},{when:"Day 30",what:"Stability and security restored"},{when:"Day 90",what:"Confident in year-end position"}]},{id:"masonry",name:"Cody & Judah A.",business:"Masonry Company",industry:"Construction",revenue:"$1M-$3M",bottlenecks:["Process","Capability"],headline:"From Waterfall Chaos to Consistent Execution",before:"The team was managing field operations but struggling with consistency. Sales team making promises they couldn't track. No follow-through on targets. Management capacity maxed out.",beforePoints:["Inconsistent follow-through from sales team","Waterfall planning too broad, not narrow enough","Field supervisor role consuming founder time","No clear accountability on commitments"],installed:["Waterfall Planning (narrowed and refined)","Consistent tracking systems","Field supervisor delegation","Sales accountability frameworks"],resultQuote:"Our biggest improvement is consistency on follow-through with sales people saying they're going to do something and following through. That's gone way up.",wins:["Sales follow-through consistency dramatically improved","Field supervisor hired, field work delegated","Founder freed up to move into GM role","Waterfall narrowed for better execution","Targets being hit consistently"],milestones:[{when:"Month 2",what:"Waterfall refined and narrowed"},{when:"Month 4",what:"Field supervisor hired and trained"},{when:"Month 6",what:"Sales follow-through 'way up'"}]},{id:"michele",name:"Michele F.",business:"Jubilee of Wellness",industry:"Wellness",revenue:"$300K-$500K",bottlenecks:["Process","Visibility"],headline:"From Scattered Focus to Disciplined Boundaries",before:"Michele struggled with boundaries â both with clients and herself. Time management inconsistent. Focus scattered across too many priorities. Difficulty maintaining momentum.",beforePoints:["Weak client boundaries","Personal discipline challenges","Time study inconsistency","Scattered focus across too many initiatives"],installed:["Quantum Flow Planning (time discipline)","Boundary-setting frameworks","Weekly accountability rhythms","Personal focus tools (Clarity Method, 90 days)"],resultQuote:"I just feel like I'm in a good place for boundaries this year, and I appreciate that because that's not something that comes easily for me.",wins:["Clear client boundary systems installed","Personal discipline and focus improved","Consistent momentum on key targets","Quantum Flow Planning creating structure","Excited about implementation, not dreading it"],milestones:[{when:"Week 3",what:"First boundary frameworks implemented"},{when:"Day 30",what:"Feeling 'the difference' in discipline"},{when:"Day 90",what:"Strong boundaries in place, momentum building"}]}],xge=[{name:"Alexandra G.",title:"Business Owner",quote:"Meeting with Gabe was so helpful for me breaking through focus on too many details and getting laser clear on what is most important. Ever since that meeting, business is flowing and I am having more fun in it!"},{name:"Francesca S.",title:"Ethos By Design",quote:"I find Gabe really easy to talk to and very approachable, so it's easy to be open about the tougher aspects of running a business. He brings a lot of experience and a unique level of empathy when it comes to viewing the entire lifestyle of the person he is helping."},{name:"Joe G.",title:"Sales Coach",quote:"That little bit of clarity helped me close a $4,000 client within a week and a half, with another in the pipeline for $2,500. It's invaluable to have someone with Gabe's wisdom help you get clear on what you're looking to do."},{name:"Rikki K.",title:"Entrepreneur",quote:"It was an incredible, powerful, and eye-opening chat. We mapped out exactly where I should focus my attention. It feels like a light, easy conversation, but he really opens you up and helps you strategize."},{name:"Ron W.",title:"Insurance For Texans",quote:"Gabe spent more time listening to my dilemma than dispensing any sort of advice. But because he spent that time listening and asking questions, the advice was deadly accurate."}],yge=[{name:"Danielle O.",title:"Agency Operator",quote:"Relearning how to use Simple Operations under Gabe's leadership is making a real difference."},{name:"Grace P.",title:"Operations Manager",quote:"Daily check-ins with the CEO and weekly check-ins with Gabe provide consistency and clarity. Simple Operations keeps us organized â a 'high-end checklist' that ensures consistency and growth."},{name:"Micah A.",title:"Agency Founder",quote:"It's nice to have tools and one-pagers already in my grasp instead of creating it all from scratch. Aligning leadership and team using a common language is incredibly helpful."},{name:"Tracie C.",title:"Small Business Owner",quote:"Our primary success is the partnership with Gabe, Kelsey, and Norman. The tools are fantastic and provide needed guid
803ance for a rapidly growing small business."}],vge=[{icon:Wr,value:"500+",label:"Founders served",sub:"Between $300Kâ$10M+ in revenue"},{icon:ss,value:"$480M+",label:"In new revenue & profits created",sub:"Through the Simple Operations System"},{icon:zt,value:"15,000+",label:"Hours returned",sub:"To founders' lives"},{icon:gr,value:"90 Days",label:"Average time",sub:"To first 'runs without me' week"}],bge=[["Working 60+ hour weeks","Working 30â40 hour weeks"],["Team asks 'what should I do?' 15+ times/day","Team makes 80%+ of decisions independently"],["Can't take a day off without chaos","First real vacations in years"],["Revenue stuck at ceiling","2xâ3x revenue growth in 12 months"],["Constant firefighting, reactive mode","Strategic planning, proactive systems"],["Inbox buried in 'urgent' requests","First 'no urgent email' mornings"],["Business depends entirely on founder","Business runs autonomously"]],wge=[{type:"Decision Bottleneck",founder:"Colin T. â Inspection Services",quote:"Every decision ran through me. Now the whole admin side runs by itself.",result:"90% of decisions made independently",timeline:"90 days"},{type:"Process Bottleneck",founder:"Dustin F. â Marketing Agency",quote:"We had no foundational operational security. Now we have stability and confidence.",result:"Foundational systems installed",timeline:"30 days to stability"},{type:"Capability Bottleneck",founder:"Cody & Judah A. â Masonry",quote:"Sales team wasn't following through. Now consistency has gone way up.",result:"Sales follow-through improved dramatically",timeline:"6 months to full adoption"},{type:"Visibility Bottleneck",founder:"Michele F. â Wellness Business",quote:"I couldn't see where my time was going. Now I have clarity and boundaries.",result:"Time discipline and focus restored",timeline:"90 days"}],jge=["All","$300K-$500K","$500K-$1M","$1M-$3M"],Nge=["All","Decision","Process","Capability","Visibility"],kge=()=>{const[e,t]=j.useState("All"),[n,s]=j.useState("All"),a=j.useMemo(()=>gge.filter(i=>(e==="All"||i.revenue===e)&&(n==="All"||i.bottlenecks.includes(n))),[e,n]);return r.jsxs("div",{className:"min-h-screen bg-background flex flex-col",children:[r.jsx(vr,{title:"Proof â Real Founders. Real Results. Real Freedom.",description:"Case studies and testimonials from founders between $300Kâ$10M+ who broke their bottleneck with the Simple Operations System.",canonical:"/proof"}),r.jsx(_t,{}),r.jsxs("main",{className:"flex-1 pt-20",children:[r.jsx("section",{className:"py-16 md:py-24 bg-gradient-to-br from-primary/5 via-background to-secondary/5",children:r.jsxs("div",{className:"container mx-auto px-6 text-center max-w-4xl",children:[r.jsxs("h1",{className:"text-4xl md:text-6xl font-bold leading-tight mb-6",children:["Real Founders. Real Results. ",r.jsx("span",{className:"text-primary",children:"Real Freedom."})]}),r.jsx("p",{className:"text-xl md:text-2xl text-muted-foreground",children:"See how founders between $300Kâ$10M+ broke their bottleneck and built businesses that run without them â in 90 days or less."})]})}),r.jsx("section",{className:"py-10 bg-section-light border-y border-border",children:r.jsxs("div",{className:"container mx-auto px-6 max-w-5xl space-y-5",children:[r.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[r.jsx("span",{className:"text-sm font-semibold uppercase tracking-wide text-muted-foreground mr-2",children:"Revenue:"}),jge.map(i=>r.jsx("button",{onClick:()=>t(i),className:`px-4 py-2 rounded-full text-sm font-medium border-2 transition-all ${e===i?"bg-primary text-primary-foreground border-primary":"bg-background border-border hover:border-primary"}`,children:i},i))]}),r.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[r.jsx("span",{className:"text-sm font-semibold uppercase tracking-wide text-muted-foreground mr-2",children:"Bottleneck:"}),Nge.map(i=>r.jsx("button",{onClick:()=>s(i),className:`px-4 py-2 rounded-full text-sm font-medium border-2 transition-all ${n===i?"bg-primary text-primary-foreground border-primary":"bg-background border-border hover:border-primary"}`,children:i},i))]})]})}),r.jsx("section",{className:"py-16 md:py-20 bg-background",children:r.jsxs("div",{className:"container mx-auto px-6 max-w-5xl",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-center mb-12",children:"Featured Success Stories"}),a.length===0?r.jsxs(G,{className:"p-10 text-center",children:[r.jsx("p",{className:"text-lg text-muted-foreground",children:"No case studies match those filters yet. Try a different c
803ombination."}),r.jsx(te,{variant:"outline",className:"mt-4",onClick:()=>{t("All"),s("All")},children:"Clear filters"})]}):r.jsx("div",{className:"space-y-10",children:a.map(i=>r.jsxs(G,{className:"p-8 md:p-10 border-2 hover:border-primary transition-colors shadow-soft",children:[r.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-4",children:[r.jsx(it,{variant:"secondary",children:i.industry}),r.jsx(it,{variant:"outline",children:i.revenue}),i.bottlenecks.map(o=>r.jsxs(it,{variant:"outline",className:"border-primary/40 text-primary",children:[o," Bottleneck"]},o))]}),r.jsxs("h3",{className:"text-2xl md:text-3xl font-bold mb-1",children:[i.name," â ",i.business]}),r.jsx("p",{className:"text-xl md:text-2xl text-primary font-semibold mb-8",children:i.headline}),r.jsxs("div",{className:"grid md:grid-cols-2 gap-8",children:[r.jsxs("div",{children:[r.jsx("h4",{className:"text-lg font-bold mb-3",children:"The Before Picture"}),r.jsx("p",{className:"text-muted-foreground mb-4",children:i.before}),r.jsx("ul",{className:"space-y-2",children:i.beforePoints.map(o=>r.jsxs("li",{className:"flex items-start gap-2 text-sm",children:[r.jsx(Ft,{className:"h-4 w-4 text-destructive flex-shrink-0 mt-1"}),r.jsx("span",{children:o})]},o))})]}),r.jsxs("div",{children:[r.jsx("h4",{className:"text-lg font-bold mb-3",children:"What We Installed"}),r.jsx("ul",{className:"space-y-2",children:i.installed.map(o=>r.jsxs("li",{className:"flex items-start gap-2 text-sm",children:[r.jsx(_e,{className:"h-4 w-4 text-primary flex-shrink-0 mt-1"}),r.jsx("span",{children:o})]},o))})]})]}),r.jsxs(G,{className:"my-8 p-6 bg-primary/5 border-l-4 border-primary",children:[r.jsx(jr,{className:"h-6 w-6 text-primary mb-2"}),r.jsxs("p",{className:"text-lg italic",children:['"',i.resultQuote,'"']}),r.jsxs("p",{className:"text-sm font-semibold mt-3",children:["â ",i.name]})]}),r.jsxs("div",{className:"grid md:grid-cols-2 gap-8",children:[r.jsxs("div",{children:[r.jsx("h4",{className:"text-lg font-bold mb-3",children:"The Wins"}),r.jsx("ul",{className:"space-y-2",children:i.wins.map(o=>r.jsxs("li",{className:"flex items-start gap-2 text-sm",children:[r.jsx(_e,{className:"h-4 w-4 text-primary flex-shrink-0 mt-1"}),r.jsx("span",{children:o})]},o))})]}),r.jsxs("div",{children:[r.jsx("h4",{className:"text-lg font-bold mb-3",children:"Timeline"}),r.jsx("ul",{className:"space-y-3",children:i.milestones.map(o=>r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(it,{className:"flex-shrink-0",children:o.when}),r.jsx("span",{className:"text-sm pt-1",children:o.what})]},o.when))})]})]})]},i.id))})]})}),r.jsx("section",{className:"py-16 bg-primary text-primary-foreground",children:r.jsxs("div",{className:"container mx-auto px-6 max-w-6xl",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-center mb-12",children:"The Simple Operations Impact"}),r.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-8",children:vge.map(({icon:i,value:o,label:l,sub:c})=>r.jsxs("div",{className:"text-center",children:[r.jsx(i,{className:"w-10 h-10 mx-auto mb-3 opacity-80"}),r.jsx("div",{className:"text-4xl md:text-5xl font-bold mb-2",children:o}),r.jsx("div",{className:"font-semibold mb-1",children:l}),r.jsx("div",{className:"text-sm opacity-80",children:c})]},l))})]})}),r.jsx("section",{className:"py-16 md:py-20 bg-section-light",children:r.jsxs("div",{className:"container mx-auto px-6 max-w-5xl",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-center mb-10",children:"The Transformation: Before vs. After Simple Operations"}),r.jsx("div",{className:"overflow-x-auto",children:r.jsxs("table",{className:"w-full bg-card rounded-lg overflow-hidden shadow-lg",children:[r.jsx("thead",{children:r.jsxs("tr",{className:"bg-muted",children:[r.jsx("th",{className:"p-4 text-left text-destructive",children:"Before Simple Operations"}),r.jsx("th",{className:"p-4 text-left text-primary",children:"After Simple Operations"})]})}),r.jsx("tbody",{children:bge.map(([i,o])=>r.jsxs("tr",{className:"border-b border-border last:border-0",children:[r.jsx("td",{className:"p-4 align-top",children:r.jsxs("div",{className:"flex items-start gap-2",children:[r.jsx(Ft,{className:"h-4 w-4 text-destructive flex-shrink-0 mt-1"}),r.jsx("span",{children:i})]})}),r.jsx("td",{className:"p-4 align-top bg-primary/5",children:r.jsxs("div",{className:"flex items-start gap-2",children:[r.jsx(_e,{className:"h-4 w-4 text-primary flex-shrink-0 mt-1"}),r.jsx("span",{children:o})]})})]},i))})]})})]})}),r.jsx("section",{className:"py-16 md:py-20 bg-background",children:r.jsxs("div",{className:"container mx-auto px-6 max-w-6xl",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-center mb-12",children:"Success Stories by Bottleneck Type"}),r.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-6",children:wge.map(i=>r.jsxs(G,{className:"p-6 border-t-4 border-t-primary flex flex-col h-full",children:[r.jsx("h3",{className:"text-lg font-bold mb-2",children:i.type}),r.jsx("p",{className:"text-sm font-semibold text-muted-foreground mb-3",children:i.founder}),r.jsxs("p",{className:"italic mb-4",children:['"',i.quote,'"']}),r.jsxs("div",{className:"mt-auto pt-3 border-t space-y-1 text-sm",children:[r.jsxs("p",{children:[r.jsx("span",{className:"font-semibold",children:"Result:"})," ",i.result]}),r.jsxs("p",{children:[r.jsx("span",{className:"font-semibold",children:"Timeline:"})," ",i.timeline]})]})]},i.type))})]})}),r.jsx("section",{className:"py-16 md:py-20 bg-section-light",children:r.jsxs("div",{className:"container mx-auto px-6 max-w-6xl",children:[r.jsxs("div",{className:"text-center mb-12",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-3",children:"What Founders Say About Their Clarity Calls"}),r.jsx("p",{className:"text-lg text-muted-foreground",children:'The "before the sale" experience.'})]}),r.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:xge.map(i=>r.jsxs(G,{className:"p-6 flex flex-col h-full",children:[r.jsx(jr,{className:"h-6 w-6 text-primary mb-3"}),r.jsxs("p",{className:"italic flex-1",children:['"',i.quote,'"']}),r.jsxs("div",{className:"pt-4 mt-4 border-t",children:[r.jsx("p",{className:"font-semibold",children:i.name}),r.jsx("p",{className:"text-sm text-muted-foreground",children:i.title})]})]},i.name))})]})}),r.jsx("section",{className:"py-16 md:py-20 bg-background",children:r.jsxs("div",{className:"container mx-auto px-6 max-w-6xl",children:[r.jsxs("div",{className:"text-center mb-12",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-3",children:"What Members Say Inside the Program"}),r.jsx("p",{className:"text-lg text-muted-foreground",children:"Operators and founders working the system every day."})]}),r.jsx("div",{className:"grid md:grid-cols-2 gap-6",children:yge.map(i=>r.jsxs(G,{className:"p-6 flex flex-col h-full",children:[r.jsx(jr,{className:"h-6 w-6 text-primary mb-3"}),r.jsxs("p",{className:"italic mb-4 flex-1",children:['"',i.quote,'"']}),r.jsxs("div",{className:"mt-auto",children:[r.jsx("p",{className:"font-semibold",children:i.name}),r.jsx("p",{className:"text-sm text-muted-foreground",children:i.title})]})]},i.name))})]})}),r.jsx("section",{className:"py-16 md:py-20 bg-section-light",children:r.jsxs("div",{className:"container mx-auto px-6 max-w-3xl space-y-6",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-center mb-8",children:"What Every Success Story Has in Common"}),r.jsx("p",{className:"text-lg text-center text-muted-foreground",children:"These founders came from different industries. Different revenue stages. Different bottleneck types. But they all share three things:"}),r.jsx("div",{className:"space-y-4 pt-4",children:[["They were stuck as the bottleneck.","Every decision waited on them. Their teams depen
803ded on them for everything."],["They installed the Simple Operations System.","Not generic advice. Not theory. Actual frameworks: Weekly Sync, Waterfall Planning, Four Levels of Delegation, Operating Scorecard."],["They got their lives back in 90 days.","First 'business runs without me' week. First real vacation. First chaos-free morning."]].map(([i,o],l)=>r.jsxs(G,{className:"p-6 border-l-4 border-primary",children:[r.jsxs("h3",{className:"text-xl font-bold mb-2",children:[l+1,". ",i]}),r.jsx("p",{className:"text-muted-foreground",children:o})]},i))})]})}),r.jsx("section",{className:"py-20 md:py-28 bg-gradient-to-br from-primary to-primary-dark text-primary-foreground",children:r.jsxs("div",{className:"container mx-auto px-6 max-w-3xl text-center space-y-8",children:[r.jsx("h2",{className:"text-4xl md:text-5xl font-bold",children:"Ready to Write Your Story?"}),r.jsx("p",{className:"text-xl opacity-90",children:"Start with the 5-minute Founder Bottleneck Assessment, or book a call to see if Clarity or Scale Method is right for you."}),r.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center pt-2",children:[r.jsx(te,{asChild:!0,size:"lg",variant:"secondary",className:"text-lg px-8 py-6 h-auto",children:r.jsxs(ue,{to:"/assessment",children:["Find Your Bottleneck ",r.jsx(Ue,{className:"ml-2"})]})}),r.jsx(te,{asChild:!0,size:"lg",variant:"outline",className:"text-lg px-8 py-6 h-auto bg-transparent border-white text-white hover:bg-white hover:text-primary",children:r.jsx(ue,{to:"/book-call",children:"Book a Strategy Call"})})]})]})})]}),r.jsx(ht,{})]})},_ge=[{id:"clarity",name:"Clarity Method",tagline:"12-Month Foundation Program",href:"/clarity",applyHref:"/apply"},{id:"scale",name:"Scale Method",tagline:"12-Month Operating System",href:"/scale",applyHref:"/apply",badge:"Most Popular"},{id:"essentials",name:"Essentials Course",tagline:"Self-Paced DIY",href:"/essentials",applyHref:"/essentials"}],Sge=[{icon:yw,title:"I'm Just Getting Started",revenue:"$300K â $500K",team:"3 â 10 people",need:"Build foundations before I hit the wall",recommend:"Clarity Method",href:"#clarity-details"},{icon:B7,title:"I'm Already Stuck",revenue:"$500K â $3M+",team:"8 â 25 people",need:"Break my bottleneck and scale with systems",recommend:"Scale Method",href:"#scale-details",highlight:!0},{icon:K7,title:"I Prefer DIY",revenue:"Any revenue stage",team:"Any team size",need:"Frameworks and templates without coaching",recommend:"Essentials Course",href:"#essentials-details"}],i4=[{group:"Who it's for",rows:[{label:"Best for",clarity:"$300Kâ$500K revenue, 3â10 team",scale:"$500Kâ$3M revenue, 8â25 team",essentials:"Any stage, DIY learners"},{label:"Timeline to results",clarity:"Relief in 30 days · autonomous week by day 90 · full system in 12 months",scale:"Relief in 30 days · full system in 6â12 months",essentials:"Depends on your pace"}]},{group:"Format & cadence",rows:[{label:"Format",clarity:"Weekly group coaching",scale:"Weekly 1:1 private coaching",essentials:"Self-paced video course"},{label:"Duration",clarity:"12 months (52 weeks)",scale:"12 months (52 weeks)",essentials:"Self-paced (9â12 weeks)"},{label:"Call type",clarity:"Group (60 min/week)",scale:"Private 1:1 (60 min/week)",essentials:"No live calls (email support)"}]},{group:"What you install",rows:[{label:"Frameworks",clarity:"Core 3: Weekly Sync, Decision Rights, Waterfall Planning",scale:"Full 5-component system + Operating Scorecard + Passenger Seat Leadership",essentials:"Same frameworks (DIY install)"},{label:"Implementation",clarity:"You lead, we guide",scale:"We implement alongside you",essentials:"100% self-directed"},{label:"Team involvement",clarity:"You implement with your team",scale:"We install WITH you and your team",essentials:"You train your team yourself"}]},{group:"Support",rows:[{label:"Support level",clarity:"Group accountability + email",scale:"1:1 Simple Operations Guide + priority",essentials:"Email for technical questions"},{label:"Templates & tools",clarity:"â Full template library",scale:"â Full library + custom builds",essentials:"â Full template library"},{label:"Quarterly reviews",clarity:"â",scale:"â 4 virtual strategic reviews/year",essentials:"â"},{label:"Ongoing access",clarity:"30 days post-program email",scale:"Year 2 virtual quarterly check-ins (free)",essentials:"Lifetime course access"}]},{group:"Investment",rows:[{label:"Price",clarity:"$600/mo à 12 or $6,600 upfront",scale:"$3,000/mo à 12 or $33,000 upfront",essentials:"$277 one-time"},{label:"Guarantee",clarity:"30-day money-back guarantee",scale:"30-day money-back guarantee",essentials:"30-day money-back guarantee"},{label:"Upgrade option",clarity:"Upgrade to Scale (50% credit)",scale:"Highest tier",essentials:"Upgrade to Clarity or Scale (50% credit)"}]}],Vm=e=>{const t=e.trim();return t==="â"||t==="-"?r.jsx(Ft,{className:"w-4 h-4 text-muted-foreground
803/50","aria-label":"Not included"}):t.startsWith("â")?r.jsxs("span",{className:"inline-flex items-start gap-2",children:[r.jsx(_e,{className:"w-4 h-4 text-primary flex-shrink-0 mt-0.5","aria-hidden":!0}),r.jsx("span",{children:t.replace(/^â\s*/,"")})]}):r.jsx("span",{children:t})},o4=[{id:"clarity-details",name:"Clarity Method",subtitle:"12-Month Foundation Program (results as early as 90 days)",investment:"$600/month à 12 or $6,600 upfront",perfectFor:["$300K-$500K revenue","3-10 team members","You see the bottleneck coming and want to prevent it","Comfortable with group coaching format","Can commit 3-4 hours/week for 12 months"],included:["52 weekly group coaching calls (60 min each)","Core 3 framework installation","Complete template library (15+ tools)","Group accountability and peer learning","Email support between calls","Year 1 program access with optional renewal","Access to Clarity Method community"],timeline:["Week 1-2: Weekly Sync installed","Week 3-6: Decision Rights transferred","Week 7-12: Waterfall Planning operational","Day 90: First 'business runs without me' week","Month 4-12: Compound the systems with weekly group coaching"],youGet:["Operating foundations before you scale","Group learning from other founders","Accountability to implement","12-month roadmap with early wins by Day 90"],youDont:["1:1 private coaching","Simple Operations Guide installing side-by-side with you","Full 5-component system (just core 3)","Custom implementation for your business model"],cta:{label:"Apply for Clarity Method",href:"/apply"}},{id:"scale-details",name:"Scale Method",subtitle:"The 12-Month Operating System",investment:"$3,000/month à 12 or $33,000 upfront",highlight:!0,perfectFor:["$500K-$3M revenue","8-25 team members","You're already the bottleneck â need to break it now","Want 1:1 dedicated partnership","Can commit 5-7 hours/week for 12 months"],included:["52 weekly 1:1 implementation calls (60 min each)","Full 5-component system installation","Custom framework builds for your business","Team training and adoption support","Virtual virtual quarterly strategic reviews (4 per year)","Priority support (email/Slack)","Year 2 virtual quarterly check-ins (optional, no cost)","Alumni community access"],timeline:["Month 1-3: Foundation (Weekly Sync, Passenger Seat Leadership)","Month 4-6: Delegation (Four Levels of Delegation, Decision Rights transfer)","Month 7-9: Visibility (Operating Scorecard)","Month 10-12: Optimization & scaling prep"],youGet:["Complete 5-component operating system","1:1 Simple Operations Guide partnership","Help hiring your in-house operator","Custom builds for your business model","Team adoption support"],youDont:["Self-paced flexibility (this is a partnership)","Group coaching cost savings"],cta:{label:"Apply for Scale Method",href:"/apply"}},{id:"essentials-details",name:"Essentials Course",subtitle:"Self-Paced DIY Implementation",investment:"$277 one-time",perfectFor:["Any revenue stage","Budget-conscious founders","Prefer self-paced learning over live coaching","Comfortable implementing systems yourself","Can dedicate 5-10 hours/week to DIY implementation"],included:["Complete video training library (6 modules, 15+ hours)","All 5 framework templates (same as Scale Method)","90-day self-implementation roadmap","Step-by-step action plans","2 strategic support calls","Lifetime access to course materials"],timeline:["Self-paced (9-12 weeks recommended)","Results depend on your implementation speed"],youGet:["Same frameworks as premium programs","Complete self-sufficiency","Lifetime access","Budget-friendly entry point"],youDont:["Live coaching or accountability calls (beyond 2 strategic support calls)","1:1 implementation partnership","Team training support","Custom framework builds","Hand-holding through adoption"],cta:{label:"Enroll in Essentials Course",href:"/essentials"}}],Cge=[{q:"Can I start with Essentials and upgrade later?",a:"Yes. Essentials Course buyers receive a 50% credit (up to $277) toward Clarity Method or Scale Method within 12 months of purchase. Many founders start with Essentials to learn the frameworks, then upgrade when they want coaching support."},{q:"Is group coaching (Clarity) as effective as 1:1 (Scale)?",a:"Clarity is highly effective if you're self-motivated, benef
803it from peer learning, and your operations are relatively straightforward. Scale's 1:1 partnership is better if you need custom framework builds for complex operations or want a Simple Operations Guide installing side-by-side with you and helping you hire your in-house operator."},{q:"What if I'm between revenue stages â $400K-$600K?",a:"If you're under $500K and not yet the bottleneck, Clarity is the right call. If you're over $500K and feeling stuck (decisions backed up, team waiting on you), Scale is the right call. The bottleneck is the deciding factor â not just revenue."},{q:"Do you offer refunds if I choose the wrong program?",a:"Yes. Every program â Clarity, Scale, and Essentials â comes with the same 30-day money-back guarantee. Try the Simple Operations System for 30 days, and if you're not completely satisfied, just send us an email and we'll refund 100% of your investment. No questions asked. No hoops to jump through."},{q:"How do I know if I'm the bottleneck?",a:"Take the 5-minute Bottleneck Assessment â it diagnoses your bottleneck type (Decision, Process, Capability, or Visibility) and recommends the right program for your stage."}],Ege=()=>{const[e,t]=j.useState(""),[n,s]=j.useState(""),[a,i]=j.useState(""),o=a==="low"||n==="diy"?"Essentials Course":e==="low"||a==="mid"?"Clarity Method":e==="high"||n==="1on1"||a==="high"?"Scale Method":null;return r.jsxs("div",{className:"min-h-screen bg-background",children:[r.jsx(vr,{title:"Compare Programs â Clarity, Scale & Essentials | Simple Operations",description:"Compare Clarity Method, Scale Method, and Essentials Course side-by-side. Find the right fit for your revenue stage, team size, and learning style.",canonical:"/compare"}),r.jsx(_t,{}),r.jsx("section",{className:"pt-28 pb-12 px-4 bg-gradient-subtle",children:r.jsxs("div",{className:"container mx-auto max-w-4xl text-center",children:[r.jsxs("h1",{className:"text-4xl md:text-6xl font-bold mb-6 text-foreground leading-tight",children:["Which Program Is ",r.jsx("span",{className:"text-primary",children:"Right for You?"})]}),r.jsx("p",{className:"text-xl md:text-2xl text-muted-foreground leading-relaxed",children:"Compare Clarity Method, Scale Method, and Essentials Course side-by-side to find the perfect fit for your revenue stage and learning style."})]})}),r.jsx("section",{className:"py-16 px-4",children:r.jsxs("div",{className:"container mx-auto max-w-6xl",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-center mb-10 text-foreground",children:"Choose Based on Your Situation"}),r.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:Sge.map(l=>{const c=l.icon;return r.jsx("a",{href:l.href,className:`block ${l.highlight?"lg:scale-105":""}`,children:r.jsxs(G,{className:`p-6 h-full hover:shadow-soft transition-all hover:-translate-y-1 ${l.highlight?"border-2 border-primary":""}`,children:[l.highlight&&r.jsxs("span",{className:"inline-flex items-center gap-1 mb-3 text-xs font-semibold uppercase tracking-wider text-primary bg-primary/10 px-2 py-1 rounded",children:[r.jsx(Fr,{className:"w-3 h-3"})," Most Popular"]}),r.jsx(c,{className:"w-10 h-10 text-primary mb-4"}),r.jsx("h3",{className:"text-xl font-bold mb-4 text-foreground",children:l.title}),r.jsxs("dl",{className:"space-y-2 text-sm mb-5",children:[r.jsxs("div",{children:[r.jsx("dt",{className:"font-semibold text-muted-foreground",children:"Revenue"}),r.jsx("dd",{className:"text-foreground",children:l.revenue})]}),r.jsxs("div",{children:[r.jsx("dt",{className:"font-semibold text-muted-foreground",children:"Team"}),r.jsx("dd",{className:"text-foreground",children:l.team})]}),r.jsxs("div",{children:[r.jsx("dt",{className:"font-semibold text-muted-foreground",children:"Need"}),r.jsx("dd",{className:"text-foreground",children:l.need})]})]}),r.jsxs("div",{className:"pt-4 border-t border-border",children:[r.jsx("p",{className:"text-xs uppercase tracking-wider text-muted-foreground mb-1",children:"You Need"}),r.jsxs("p",{className:"font-bold text-primary flex items-center",children:[l.recommend," ",r.jsx(Ue,{className:"ml-2 w-4 h-4"})]})]})]})},l.title)})}),r.jsxs("p",{className:"text-center mt-8 text-muted-foreground",children:["Not sure?"," ",r.jsx(ue,{to:"/assessment",className:"text-primary font-semibold underline",children:"Take the 5-Minute Bottleneck Assessment â"})]})]})}),r.jsx("section",{className:"py-16 px-4 bg-section-gray",children:r.jsxs("div",{className:"container mx-auto max-w-6xl",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-center mb-3 text-foreground",children:"Side-by-Side Program Comparison"}),r.jsx("p",{className:"text-center text-muted-foreground mb-10",children:"Every feature, every tier â at a glance."}),r.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-x-6 gap-y-2 text-xs text-muted-foreground mb-6",children:[r.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[r.jsx(_e,{className:"w-3.5 h-3.5 text-primary"})," Included"]}),r.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[r.jsx(Ft,{className:"w-3.5 h-3.5 text-muted-foreground
803/60"})," Not included"]}),r.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[r.jsx(Fr,{className:"w-3.5 h-3.5 text-primary"})," Most popular column"]})]}),r.jsx("div",{className:"hidden md:block rounded-xl border border-border bg-card shadow-soft pt-4",children:r.jsx("div",{className:"overflow-x-auto",children:r.jsxs("table",{className:"w-full border-collapse text-sm",children:[r.jsxs("colgroup",{children:[r.jsx("col",{className:"w-[22%]"}),r.jsx("col",{className:"w-[26%]"}),r.jsx("col",{className:"w-[26%]"}),r.jsx("col",{className:"w-[26%]"})]}),r.jsx("thead",{className:"sticky top-0 z-10",children:r.jsxs("tr",{children:[r.jsx("th",{className:"text-left p-5 bg-card border-b border-border"}),r.jsxs("th",{className:"text-left p-5 bg-card border-b border-border align-bottom",children:[r.jsx("div",{className:"text-xs font-semibold uppercase tracking-wider text-muted-foreground mb-1",children:"Foundation"}),r.jsx("div",{className:"text-lg font-bold text-foreground",children:"Clarity Method"}),r.jsx("div",{className:"text-xs text-muted-foreground",children:"12-month program · results as early as 90 days"})]}),r.jsxs("th",{className:"text-left p-5 bg-primary/5 border-b-2 border-primary align-bottom",children:[r.jsxs("span",{className:"inline-flex items-center gap-1 mb-2 text-[10px] font-bold uppercase tracking-wider text-primary-foreground bg-primary px-2 py-0.5 rounded-full",children:[r.jsx(Fr,{className:"w-3 h-3"})," Most popular"]}),r.jsx("div",{className:"text-xs font-semibold uppercase tracking-wider text-primary mb-1",children:"Operating system"}),r.jsx("div",{className:"text-lg font-bold text-foreground",children:"Scale Method"}),r.jsx("div",{className:"text-xs text-muted-foreground",children:"12-month transformation"})]}),r.jsxs("th",{className:"text-left p-5 bg-card border-b border-border align-bottom",children:[r.jsx("div",{className:"text-xs font-semibold uppercase tracking-wider text-muted-foreground mb-1",children:"DIY"}),r.jsx("div",{className:"text-lg font-bold text-foreground",children:"Essentials Course"}),r.jsx("div",{className:"text-xs text-muted-foreground",children:"Self-paced"})]})]})}),r.jsx("tbody",{children:i4.map(l=>r.jsxs(j.Fragment,{children:[r.jsx("tr",{children:r.jsx("td",{colSpan:4,className:"px-5 pt-7 pb-2 bg-section-gray/40",children:r.jsx("div",{className:"text-[11px] font-bold uppercase tracking-[0.15em] text-primary",children:l.group})})}),l.rows.map(c=>r.jsxs("tr",{className:"border-t border-border/60 hover:bg-muted/20 transition-colors",children:[r.jsx("td",{className:"p-5 font-semibold text-foreground align-top",children:c.label}),r.jsx("td",{className:"p-5 text-foreground align-top leading-relaxed",children:Vm(c.clarity)}),r.jsx("td",{className:"p-5 text-foreground align-top leading-relaxed bg-primary/[0.04] border-x border-primary/20",children:Vm(c.scale)}),r.jsx("td",{className:"p-5 text-foreground align-top leading-relaxed",children:Vm(c.essentials)})]},c.label))]},l.group))})]})})}),r.jsx("div",{className:"md:hidden space-y-6",children:_ge.map(l=>r.jsxs(G,{className:`p-5 ${l.badge?"border-2 border-primary":""}`,children:[l.badge&&r.jsxs("span",{className:"inline-flex items-center gap-1 mb-2 text-[10px] font-bold uppercase tracking-wider text-primary-foreground bg-primary px-2 py-0.5 rounded-full",children:[r.jsx(Fr,{className:"w-3 h-3"})," Most popular"]}),r.jsx("h3",{className:"text-xl font-bold text-foreground",children:l.name}),r.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:l.tagline}),i4.map(c=>r.jsxs("div",{className:"mb-5",children:[r.jsx("div",{className:"text-[11px] font-bold uppercase tracking-[0.15em] text-primary mb-2 pb-1 border-b border-border",children:c.group}),r.jsx("dl",{className:"space-y-3 text-sm",children:c.rows.map(d=>r.jsxs("div",{className:"grid grid-cols-[1fr_1.4fr] gap-3",children:[r.jsx("dt",{className:"text-muted-foreground",children:d.label}),r.jsx("dd",{className:"text-foreground font-medium",children:Vm(d[l.id])})]},d.label))})]},c.group))]},l.id))})]})}),r.jsx("section",{className:"py-16 px-4",children:r.jsxs("div",{className:"container mx-auto max-w-6xl",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-center mb-10 text-foreground",children:"Detailed Program Breakdowns"}),r.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6 items-stretch",children:o4.map(l=>r.jsxs(G,{id:l.id,className:`p-6 flex flex-col h-full scroll-mt-24 ${l.highlight?"border-2 border-primary shadow-soft lg:-mt-4 lg:mb-0":""}`,children:[r.jsx("div",{className:"mb-3 min-h-[28px]",children:l.highlight&&r.jsxs("span",{className:"text-xs font-semibold uppercase tracking-wider text-primary bg-primary/10 px-2 py-1 rounded inline-flex items-center gap-1",children:[r.jsx(Fr,{className:"w-3 h-3"})," Most Popular"]})}),r.jsx("h3",{className:"text-2xl font-bold text-foreground min-h-[2rem]",children:l.name}),r.jsx("p",{className:"text-sm text-muted-foreground mb-3 min-h-[2.5rem]",children:l.subt
803itle}),r.jsx("p",{className:"font-bold text-primary mb-6 min-h-[1.5rem]",children:l.investment}),r.jsxs("div",{className:"mb-5",children:[r.jsx("h4",{className:"text-sm font-bold uppercase tracking-wider text-foreground mb-2",children:"Perfect For"}),r.jsx("ul",{className:"space-y-1.5 text-sm text-muted-foreground",children:l.perfectFor.map(c=>r.jsxs("li",{className:"flex gap-2",children:[r.jsx(_e,{className:"w-4 h-4 text-primary flex-shrink-0 mt-0.5"}),r.jsx("span",{children:c})]},c))})]}),r.jsxs("div",{className:"mb-5",children:[r.jsx("h4",{className:"text-sm font-bold uppercase tracking-wider text-foreground mb-2",children:"What's Included"}),r.jsx("ul",{className:"space-y-1.5 text-sm text-muted-foreground",children:l.included.map(c=>r.jsxs("li",{className:"flex gap-2",children:[r.jsx(_e,{className:"w-4 h-4 text-primary flex-shrink-0 mt-0.5"}),r.jsx("span",{children:c})]},c))})]}),r.jsxs("div",{className:"mb-5",children:[r.jsx("h4",{className:"text-sm font-bold uppercase tracking-wider text-foreground mb-2",children:"Timeline"}),r.jsx("ul",{className:"space-y-1.5 text-sm text-muted-foreground",children:l.timeline.map(c=>r.jsxs("li",{children:["⢠",c]},c))})]}),r.jsxs("div",{className:"mb-5",children:[r.jsx("h4",{className:"text-sm font-bold uppercase tracking-wider text-foreground mb-2",children:"You Get"}),r.jsx("ul",{className:"space-y-1.5 text-sm text-muted-foreground",children:l.youGet.map(c=>r.jsxs("li",{className:"flex gap-2",children:[r.jsx(_e,{className:"w-4 h-4 text-primary flex-shrink-0 mt-0.5"}),r.jsx("span",{children:c})]},c))})]}),r.jsxs("div",{className:"mb-6 flex-1",children:[r.jsx("h4",{className:"text-sm font-bold uppercase tracking-wider text-foreground mb-2",children:"You Don't Get"}),r.jsx("ul",{className:"space-y-1.5 text-sm text-muted-foreground",children:l.youDont.map(c=>r.jsxs("li",{className:"flex gap-2",children:[r.jsx(Ft,{className:"w-4 h-4 text-muted-foreground/60 flex-shrink-0 mt-0.5"}),r.jsx("span",{children:c})]},c))})]}),r.jsx(te,{asChild:!0,className:"w-full",children:r.jsxs(ue,{to:l.cta.href,children:[l.cta.label," ",r.jsx(Ue,{className:"ml-2 w-4 h-4"})]})})]},l.id))})]})}),r.jsx("section",{className:"py-16 px-4 bg-section-gray",children:r.jsxs("div",{className:"container mx-auto max-w-3xl",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-center mb-3 text-foreground",children:"Decision Helper"}),r.jsx("p",{className:"text-center text-muted-foreground mb-10",children:"Answer three quick questions to get a recommendation."}),r.jsxs(G,{className:"p-6 md:p-8 space-y-8",children:[r.jsxs("div",{children:[r.jsx("h3",{className:"font-bold text-foreground mb-3",children:"1. What's your revenue?"}),r.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-2",children:[{v:"low",label:"$300K â $500K"},{v:"mid",label:"$500K â $1M"},{v:"high",label:"$1M â $3M+"}].map(l=>r.jsx("button",{onClick:()=>t(l.v),className:`px-4 py-3 rounded-md border text-sm font-medium transition ${e===l.v?"border-primary bg-primary/10 text-primary":"border-border text-foreground hover:border-primary/50"}`,children:l.label},l.v))})]}),r.jsxs("div",{children:[r.jsx("h3",{className:"font-bold text-foreground mb-3",children:"2. What kind of support fits you?"}),r.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-2",children:[{v:"diy",label:"DIY / Self-paced"},{v:"group",label:"Group coaching"},{v:"1on1",label:"1:1 partnership"}].map(l=>r.jsx("button",{onClick:()=>s(l.v),className:`px-4 py-3 rounded-md border text-sm font-medium transition ${n===l.v?"border-primary bg-primary/10 text-primary":"border-border text-foreground hover:border-primary/50"}`,children:l.label},l.v))})]}),r.jsxs("div",{children:[r.jsx("h3",{className:"font-bold text-foreground mb-3",children:"3. What's your budget?"}),r.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-2",children:[{v:"low",label:"Under $1K"},{v:"mid",label:"$6K â $7K"},{v:"high",label:"$24K â $33K"}].map(l=>r.jsx("button",{onClick:()=>i(l.v),className:`px-4 py-3 rounded-md border text-sm font-medium transition ${a===l.v?"border-primary bg-primary/10 text-primary":"border-border text-foreground hover:border-primary/50"}`,children:l.label},l.v))})]}),o&&r.jsxs("div",{className:"bg-primary/10 border border-primary/30 rounded-lg p-5 text-center",children:[r.jsx("p",{className:"text-sm uppercase tracking-wider text-muted-foreground mb-1",children:"Your recommendation"}),r.jsx("p",{className:"text-2xl font-bold text-primary mb-3",children:o}),r.jsx(te,{asChild:!0,children:r.jsxs(ue,{to:"/assessment",children:["Confirm with the full assessment ",r.jsx(Ue,{className:"ml-2 w-4 h-4"})]})})]})]})]})}),r.jsx("section",{className:"py-16 px-4",children:r.jsxs("div",{className:"container mx-auto max-w-3xl",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-center mb-10 text-foreground",children:"Common Questions"}),r.jsx(xo,{type:"single",collapsible:!0,className:"w-full",children:Cge.map((l,c)=>r.jsxs(Za,{value:`item-${c}`,children:[r.jsx(Xa,{className:"text-left text-foreground font-semibold",children:l.q}),r.jsx(Ja,{className:"text-muted-foreground leading-relaxed",children:l.a})]},c))})]})}),r.jsx("section",{className:"py-20 px-4 bg-gradient-to-br from-primary to-primary/80",children:r.jsxs("div",{className:"container mx-auto max-w-5xl text-center text-primary-foreground",children:[r.jsx("h2",{className:"text-3xl md:text-5xl font-bold mb-4",children:"Ready to Choose?"}
803),r.jsx("p",{className:"text-xl text-primary-foreground/90 mb-10",children:"Three programs. One goal: get you out of the bottleneck."}),r.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 mb-10 text-left",children:o4.map(l=>r.jsxs(G,{className:"p-5 bg-card/95 backdrop-blur text-foreground",children:[r.jsx("h3",{className:"font-bold text-lg",children:l.name}),r.jsx("p",{className:"text-sm text-muted-foreground mb-2",children:l.subtitle}),r.jsx("p",{className:"text-sm font-semibold mb-4",children:l.investment}),r.jsx(te,{asChild:!0,size:"sm",className:"w-full",children:r.jsxs(ue,{to:l.cta.href,children:[l.cta.label," ",r.jsx(Ue,{className:"ml-2 w-4 h-4"})]})})]},l.id))}),r.jsx("p",{className:"mb-4 text-primary-foreground/90",children:"Still unsure?"}),r.jsx(te,{asChild:!0,size:"lg",variant:"secondary",children:r.jsxs(ue,{to:"/assessment",children:[r.jsx(_e,{className:"mr-2 w-5 h-5"}),"Take the 5-Minute Bottleneck Assessment"]})})]})}),r.jsx(ht,{})]})},Tge=()=>{const e=En();return j.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),r.jsxs("div",{className:"min-h-screen flex flex-col bg-background",children:[r.jsx("div",{className:"flex-1 flex items-center justify-center",children:r.jsxs("div",{className:"text-center",children:[r.jsx("h1",{className:"mb-4 text-4xl font-bold text-foreground",children:"404"}),r.jsx("p",{className:"mb-4 text-xl text-muted-foreground",children:"Oops! Page not found"}),r.jsx("a",{href:"/",className:"text-primary underline hover:text-primary-dark transition-colors",children:"Return to Home"})]})}),r.jsx(ht,{})]})},$ge=new hB,Oge=()=>r.jsx(xB,{client:$ge,children:r.jsx(NH,{children:r.jsx(PT,{children:r.jsxs(tT,{children:[r.jsx(OD,{}),r.jsx(cF,{}),r.jsx(kW,{children:r.jsxs(kH,{children:[r.jsx(_H,{}),r.jsx(CH,{}),r.jsx(SH,{}),r.jsxs(gW,{children:[r.jsx(Ae,{path:"/",element:r.jsx(kY,{})}),r.jsx(Ae,{path:"/assessment",element:r.jsx(nge,{})}),r.jsx(Ae,{path:"/assessment/results",element:r.jsx(hge,{})}),r.jsx(Ae,{path:"/book-call",element:r.jsx(Lpe,{})}),r.jsx(Ae,{path:"/scale",element:r.jsx(lpe,{})}),r.jsx(Ae,{path:"/clarity",element:r.jsx(Qfe,{})}),r.jsx(Ae,{path:"/essentials",element:r.jsx(Ipe,{})}),r.jsx(Ae,{path:"/free-tools",element:r.jsx(Dfe,{})}),r.jsx(Ae,{path:"/guarantee",element:r.jsx(cpe,{})}),r.jsx(Ae,{path:"/the-system",element:r.jsx(xV,{})}),r.jsx(Ae,{path:"/faq",element:r.jsx(mge,{})}),r.jsx(Ae,{path:"/proof",element:r.jsx(kge,{})}),r.jsx(Ae,{path:"/compare",element:r.jsx(Ege,{})}),r.jsx(Ae,{path:"/team",element:r.jsx(Ape,{})}),r.jsx(Ae,{path:"/contact",element:r.jsx(wte,{})}),r.jsx(Ae,{path:"/privacy-policy",element:r.jsx(tfe,{})}),r.jsx(Ae,{path:"/terms-of-service",element:r.jsx(rfe,{})}),r.jsx(Ae,{path:"/book",element:r.jsx(upe,{})}),r.jsx(Ae,{path:"/so-book",element:r.jsx(vpe,{})}),r.jsx(Ae,{path:"/auth",element:r.jsx(Cte,{})}),r.jsx(Ae,{path:"/auth/vault-callback",element:r.jsx(Ete,{})}),r.jsx(Ae,{path:"/apply",element:r.jsx(Tfe,{})}),r.jsx(Ae,{path:"/quantum-flow-planner",element:r.jsx(nfe,{})}),r.jsx(Ae,{path:"/quantum-flow-planner/success",element:r.jsx(sfe,{})}),r.jsx(Ae,{path:"/workshop",element:r.jsx(Qpe,{})}),r.jsx(Ae,{path:"/workshop/success",element:r.jsx(Xpe,{})}),r.jsx(Ae,{path:"/course/payment-success",element:r.jsx(Rpe,{})}),r.jsx(Ae,{path:"/invest",element:r.jsx(Mpe,{})}),r.jsx(Ae,{path:"/invest/success",element:r.jsx(Dpe,{})}),r.jsx(Ae,{path:"/passenger-seat-book",element:r.jsx($pe,{})}),r.jsx(Ae,{path:"/passenger-seat-book/thank-you",element:r.jsx(Ppe,{})}),r.jsx(Ae,{path:"/application-success",element:r.jsx($fe,{})}),r.jsx(Ae,{path:"/application-not-qualified",element:r.jsx(Ofe,{})}),r.jsx(Ae,{path:"/about",element:r.jsx(Ys,{to:"/the-system",replace:!0})}),r.jsx(Ae,{path:"/guiding-principles",element:r.jsx(pge,{})}),r.jsx(Ae,{path:"/how-it-works",element:r.jsx(Ys,{to:"/the-system",replace:!0})}),r.jsx(Ae,{path:"/our-guarantee",element:r.jsx(Ys,{to:"/guarantee",replace:!0})}),r.jsx(Ae,{path:"/c2c-scale",element:r.jsx(Ys,{to:"/scale",replace:!0})}),r.jsx(Ae,{path:"/c2c-clarity",element:r.jsx(Ys,{to:"/clarity",replace:!0})}),r.jsx(Ae,{path:"/course",element:r.jsx(Ys,{to:"/essentials",replace:!0})}),r.jsx(Ae,{path:"/free-growth-tools",element:r.jsx(Ys,{to:"/free-tools",replace:!0})}),r.jsx(Ae,{path:"/method-results",element:r.jsx(Ys,{to:"/assessment",replace:!0})}),r.jsx(Ae,{path:"/clarity-call",element:r.jsx(Ys,{to:"/book-call",replace:!0})}),r.jsx(Ae,{path:"/admin",element:r.jsx(Ir,{children:r.jsx(vre,{})})}),r.jsx(Ae,{path:"/admin/settings",element:r.jsx(Ir,{children:r.jsx(bre,{})})}),r.jsx(Ae,{path:"/admin/application",element:r.jsx(Ir,{children:r.jsx(ace,{})})}),r.jsx(Ae,{path:"/admin/book",element:r.jsx(Ir,{children:r.jsx(wre,{})})}),r.jsx(Ae,{path:"/admin/social-links",element:r.jsx(Ir,{children:r.jsx(ice,{})})}),r.jsx(Ae,{path:"/admin/vimeo",element:r.jsx(Ir,{children:r.jsx(Ece,{})})}),r.jsx(Ae,{path:"/admin/prospect-applications",element:r.jsx(Ir,{children:r.jsx($he,{})})}),r.jsx(Ae,{path:"/admin/document-downloads",element:r.jsx(Ir,{children:r.jsx(Ohe,{})})}),r.jsx(Ae,{path:"/admin/team",element:r.jsx(Ir,{children:r.jsx(Xhe,{})})}),r.jsx(Ae,{path:"/admin/email-templates",element:r.jsx(Ir,{children:r.jsx(Jhe,{})})}),r.jsx(Ae,{path:"/admin/legal-content",element:r.jsx(Ir,{children:r.jsx(tme,{})})}
803),r.jsx(Ae,{path:"/admin/checkout-settings",element:r.jsx(Ir,{children:r.jsx(rme,{})})}),r.jsx(Ae,{path:"/admin/crm-settings",element:r.jsx(Ir,{children:r.jsx(Mme,{})})}),r.jsx(Ae,{path:"/admin/clarity-call",element:r.jsx(Ir,{children:r.jsx(Bpe,{})})}),r.jsx(Ae,{path:"/admin/assessments",element:r.jsx(Ir,{children:r.jsx(Fme,{})})}),r.jsx(Ae,{path:"/admin/seo",element:r.jsx(Ir,{children:r.jsx(efe,{})})}),r.jsx(Ae,{path:"*",element:r.jsx(Tge,{})})]})]})})]})})})});O5(document.getElementById("root")).render(r.jsx(Oge,{}));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.