var x1=t=>{throw TypeError(t)};var J3=(t,n)=>()=>(n||t((n={exports:{}}).exports,n),n.exports);var Rp=(t,n,r)=>n.has(t)||x1("Cannot "+r);var re=(t,n,r)=>(Rp(t,n,"read from private field"),r?r.call(t):n.get(t)),Ke=(t,n,r)=>n.has(t)?x1("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(t):n.set(t,r),Ie=(t,n,r,i)=>(Rp(t,n,"write to private field"),i?i.call(t,r):n.set(t,r),r),lt=(t,n,r)=>(Rp(t,n,"access private method"),r);var Jd=(t,n,r,i)=>({set _(s){Ie(t,n,s,r)},get _(){return re(t,n,i)}});var wne=J3((Hne,$u)=>{function Z3(t,n){for(var r=0;r<n.length;r++){const i=n[r];if(typeof i!="string"&&!Array.isArray(i)){for(const s in i)if(s!=="default"&&!(s in t)){const a=Object.getOwnPropertyDescriptor(i,s);a&&Object.defineProperty(t,s,a.get?a:{enumerable:!0,get:()=>i[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const a of s)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function r(s){const a={};return s.integrity&&(a.integrity=s.integrity),s.referrerPolicy&&(a.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?a.credentials="include":s.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function i(s){if(s.ep)return;s.ep=!0;const a=r(s);fetch(s.href,a)}})();var Zd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _i(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Fp={exports:{}},yc={},Mp={exports:{}},dt={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var v1;function eP(){if(v1)return dt;v1=1;var t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.iterator;function p(T){return T===null||typeof T!="object"?null:(T=m&&T[m]||T["@@iterator"],typeof T=="function"?T:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y=Object.assign,j={};function v(T,V,L){this.props=T,this.context=V,this.refs=j,this.updater=L||g}v.prototype.isReactComponent={},v.prototype.setState=function(T,V){if(typeof T!="object"&&typeof T!="function"&&T!=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,T,V,"setState")},v.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function x(){}x.prototype=v.prototype;function N(T,V,L){this.props=T,this.context=V,this.refs=j,this.updater=L||g}var w=N.prototype=new x;w.constructor=N,y(w,v.prototype),w.isPureReactComponent=!0;var k=Array.isArray,A=Object.prototype.hasOwnProperty,S={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function C(T,V,L){var X,J={},W=null,G=null;if(V!=null)for(X in V.ref!==void 0&&(G=V.ref),V.key!==void 0&&(W=""+V.key),V)A.call(V,X)&&!E.hasOwnProperty(X)&&(J[X]=V[X]);var ee=arguments.length-2;if(ee===1)J.children=L;else if(1<ee){for(var ne=Array(ee),le=0;le<ee;le++)ne[le]=arguments[le+2];J.children=ne}if(T&&T.defaultProps)for(X in ee=T.defaultProps,ee)J[X]===void 0&&(J[X]=ee[X]);return{$$typeof:t,type:T,key:W,ref:G,props:J,_owner:S.current}}function B(T,V){return{$$typeof:t,type:T.type,key:V,ref:T.ref,props:T.props,_owner:T._owner}}function F(T){return typeof T=="object"&&T!==null&&T.$$typeof===t}function I(T){var V={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(L){return V[L]})}var R=/\/+/g;function z(T,V){return typeof T=="object"&&T!==null&&T.key!=null?I(""+T.key):V.toString(36)}function q(T,V,L,X,J){var W=typeof T;(W==="undefined"||W==="boolean")&&(T=null);var G=!1;if(T===null)G=!0;else switch(W){case"string":case"number":G=!0;break;case"object":switch(T.$$typeof){case t:case n:G=!0}}if(G)return G=T,J=J(G),T=X===""?"."+z(G,0):X,k(J)?(L="",T!=null&&(L=T.replace(R,"$&/")+"/"),q(J,V,L,"",function(le){return le})):J!=null&&(F(J)&&(J=B(J,L+(!J.key||G&&G.key===J.key?"":(""+J.key).replace(R,"$&/")+"/")+T)),V.push(J)),1;if(G=0,X=X===""?".":X+":",k(T))for(var ee=0;ee<T.length;ee++){W=T[ee];var ne=X+z(W,ee);G+=q(W,V,L,ne,J)}else if(ne=p(T),typeof ne=="function")for(T=ne.call(T),ee=0;!(W=T.next()).done;)W=W.value,ne=X+z(W,ee++),G+=q(W,V,L,ne,J);else if(W==="object")throw V=String(T),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.");return G}function U(T,V,L){if(T==null)return T;var X=[],J=0;return q(T,X,"","",function(W){return V.call(L,W,J++)}),X}function Q(T){if(T._status===-1){var V=T._result;V=V(),V.then(function(L){(T._status===0||T._status===-1)&&(T._status=1,T._result=L)},function(L){(T._status===0||T._status===-1)&&(T._status=2,T._result=L)}),T._status===-1&&(T._status=0,T._result=V)}if(T._status===1)return T._result.default;throw T._result}var H={current:null},K={transition:null},Y={ReactCurrentDispatcher:H,ReactCurrentBatchConfig:K,ReactCurrentOwner:S};function P(){throw Error("act(...) is not supported in production builds of React.")}return dt.Children={map:U,forEach:function(T,V,L){U(T,function(){V.apply(this,arguments)},L)},count:function(T){var V=0;return U(T,function(){V++}),V},toArray:function(T){return U(T,function(V){return V})||[]},only:function(T){if(!F(T))throw Error("React.Children.only expected to receive a single React element child.");return T}},dt.Component=v,dt.Fragment=r,dt.Profiler=s,dt.PureComponent=N,dt.StrictMode=i,dt.Suspense=d,dt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Y,dt.act=P,dt.cloneElement=function(T,V,L){if(T==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+T+".");var X=y({},T.props),J=T.key,W=T.ref,G=T._owner;if(V!=null){if(V.ref!==void 0&&(W=V.ref,G=S.current),V.key!==void 0&&(J=""+V.key),T.type&&T.type.defaultProps)var ee=T.type.defaultProps;for(ne in V)A.call(V,ne)&&!E.hasOwnProperty(ne)&&(X[ne]=V[ne]===void 0&&ee!==void 0?ee[ne]:V[ne])}var ne=arguments.length-2;if(ne===1)X.children=L;else if(1<ne){ee=Array(ne);for(var le=0;le<ne;le++)ee[le]=arguments[le+2];X.children=ee}return{$$typeof:t,type:T.type,key:J,ref:W,props:X,_owner:G}},dt.createContext=function(T){return T={$$typeof:o,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},T.Provider={$$typeof:a,_context:T},T.Consumer=T},dt.createElement=C,dt.createFactory=function(T){var V=C.bind(null,T);return V.type=T,V},dt.createRef=function(){return{current:null}},dt.forwardRef=function(T){return{$$typeof:c,render:T}},dt.isValidElement=F,dt.lazy=function(T){return{$$typeof:f,_payload:{_status:-1,_result:T},_init:Q}},dt.memo=function(T,V){return{$$typeof:h,type:T,compare:V===void 0?null:V}},dt.startTransition=function(T){var V=K.transition;K.transition={};try{T()}finally{K.transition=V}},dt.unstable_act=P,dt.useCallback=function(T,V){return H.current.useCallback(T,V)},dt.useContext=function(T){return H.current.useContext(T)},dt.useDebugValue=function(){},dt.useDeferredValue=function(T){return H.current.useDeferredValue(T)},dt.useEffect=function(T,V){return H.current.useEffect(T,V)},dt.useId=function(){return H.current.useId()},dt.useImperativeHandle=function(T,V,L){return H.current.useImperativeHandle(T,V,L)},dt.useInsertionEffect=function(T,V){return H.current.useInsertionEffect(T,V)},dt.useLayoutEffect=function(T,V){return H.current.useLayoutEffect(T,V)},dt.useMemo=function(T,V){return H.current.useMemo(T,V)},dt.useReducer=function(T,V,L){return H.current.useReducer(T,V,L)},dt.useRef=function(T){return H.current.useRef(T)},dt.useState=function(T){return H.current.useState(T)},dt.useSyncExternalStore=function(T,V,L){return H.current.useSyncExternalStore(T,V,L)},dt.useTransition=function(){return H.current.useTransition()},dt.version="18.3.1",dt}var y1;function _u(){return y1||(y1=1,Mp.exports=eP()),Mp.exports}/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var b1;function tP(){if(b1)return yc;b1=1;var t=_u(),n=Symbol.for("react.element"),r=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function o(c,d,h){var f,m={},p=null,g=null;h!==void 0&&(p=""+h),d.key!==void 0&&(p=""+d.key),d.ref!==void 0&&(g=d.ref);for(f in d)i.call(d,f)&&!a.hasOwnProperty(f)&&(m[f]=d[f]);if(c&&c.defaultProps)for(f in d=c.defaultProps,d)m[f]===void 0&&(m[f]=d[f]);return{$$typeof:n,type:c,key:p,ref:g,props:m,_owner:s.current}}return yc.Fragment=r,yc.jsx=o,yc.jsxs=o,yc}var j1;function nP(){return j1||(j1=1,Fp.exports=tP()),Fp.exports}var e=nP(),D=_u();const Ot=_i(D),ty=Z3({__proto__:null,default:Ot},[D]);var eh={},Lp={exports:{}},Qn={},Bp={exports:{}},zp={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var w1;function rP(){return w1||(w1=1,(function(t){function n(K,Y){var P=K.length;K.push(Y);e:for(;0<P;){var T=P-1>>>1,V=K[T];if(0<s(V,Y))K[T]=Y,K[P]=V,P=T;else break e}}function r(K){return K.length===0?null:K[0]}function i(K){if(K.length===0)return null;var Y=K[0],P=K.pop();if(P!==Y){K[0]=P;e:for(var T=0,V=K.length,L=V>>>1;T<L;){var X=2*(T+1)-1,J=K[X],W=X+1,G=K[W];if(0>s(J,P))W<V&&0>s(G,J)?(K[T]=G,K[W]=P,T=W):(K[T]=J,K[X]=P,T=X);else if(W<V&&0>s(G,P))K[T]=G,K[W]=P,T=W;else break e}}return Y}function s(K,Y){var P=K.sortIndex-Y.sortIndex;return P!==0?P:K.id-Y.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;t.unstable_now=function(){return a.now()}}else{var o=Date,c=o.now();t.unstable_now=function(){return o.now()-c}}var d=[],h=[],f=1,m=null,p=3,g=!1,y=!1,j=!1,v=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(K){for(var Y=r(h);Y!==null;){if(Y.callback===null)i(h);else if(Y.startTime<=K)i(h),Y.sortIndex=Y.expirationTime,n(d,Y);else break;Y=r(h)}}function k(K){if(j=!1,w(K),!y)if(r(d)!==null)y=!0,Q(A);else{var Y=r(h);Y!==null&&H(k,Y.startTime-K)}}function A(K,Y){y=!1,j&&(j=!1,x(C),C=-1),g=!0;var P=p;try{for(w(Y),m=r(d);m!==null&&(!(m.expirationTime>Y)||K&&!I());){var T=m.callback;if(typeof T=="function"){m.callback=null,p=m.priorityLevel;var V=T(m.expirationTime<=Y);Y=t.unstable_now(),typeof V=="function"?m.callback=V:m===r(d)&&i(d),w(Y)}else i(d);m=r(d)}if(m!==null)var L=!0;else{var X=r(h);X!==null&&H(k,X.startTime-Y),L=!1}return L}finally{m=null,p=P,g=!1}}var S=!1,E=null,C=-1,B=5,F=-1;function I(){return!(t.unstable_now()-F<B)}function R(){if(E!==null){var K=t.unstable_now();F=K;var Y=!0;try{Y=E(!0,K)}finally{Y?z():(S=!1,E=null)}}else S=!1}var z;if(typeof N=="function")z=function(){N(R)};else if(typeof MessageChannel<"u"){var q=new MessageChannel,U=q.port2;q.port1.onmessage=R,z=function(){U.postMessage(null)}}else z=function(){v(R,0)};function Q(K){E=K,S||(S=!0,z())}function H(K,Y){C=v(function(){K(t.unstable_now())},Y)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(K){K.callback=null},t.unstable_continueExecution=function(){y||g||(y=!0,Q(A))},t.unstable_forceFrameRate=function(K){0>K||125<K?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):B=0<K?Math.floor(1e3/K):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(d)},t.unstable_next=function(K){switch(p){case 1:case 2:case 3:var Y=3;break;default:Y=p}var P=p;p=Y;try{return K()}finally{p=P}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(K,Y){switch(K){case 1:case 2:case 3:case 4:case 5:break;default:K=3}var P=p;p=K;try{return Y()}finally{p=P}},t.unstable_scheduleCallback=function(K,Y,P){var T=t.unstable_now();switch(typeof P=="object"&&P!==null?(P=P.delay,P=typeof P=="number"&&0<P?T+P:T):P=T,K){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=P+V,K={id:f++,callback:Y,priorityLevel:K,startTime:P,expirationTime:V,sortIndex:-1},P>T?(K.sortIndex=P,n(h,K),r(d)===null&&K===r(h)&&(j?(x(C),C=-1):j=!0,H(k,P-T))):(K.sortIndex=V,n(d,K),y||g||(y=!0,Q(A))),K},t.unstable_shouldYield=I,t.unstable_wrapCallback=function(K){var Y=p;return function(){var P=p;p=Y;try{return K.apply(this,arguments)}finally{p=P}}}})(zp)),zp}var N1;function iP(){return N1||(N1=1,Bp.exports=rP()),Bp.exports}/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var k1;function sP(){if(k1)return Qn;k1=1;var t=_u(),n=iP();function r(l){for(var u="https://reactjs.org/docs/error-decoder.html?invariant="+l,b=1;b<arguments.length;b++)u+="&args[]="+encodeURIComponent(arguments[b]);return"Minified React error #"+l+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,s={};function a(l,u){o(l,u),o(l+"Capture",u)}function o(l,u){for(s[l]=u,l=0;l<u.length;l++)i.add(u[l])}var c=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),d=Object.prototype.hasOwnProperty,h=/^[: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]*$/,f={},m={};function p(l){return d.call(m,l)?!0:d.call(f,l)?!1:h.test(l)?m[l]=!0:(f[l]=!0,!1)}function g(l,u,b,_){if(b!==null&&b.type===0)return!1;switch(typeof u){case"function":case"symbol":return!0;case"boolean":return _?!1:b!==null?!b.acceptsBooleans:(l=l.toLowerCase().slice(0,5),l!=="data-"&&l!=="aria-");default:return!1}}function y(l,u,b,_){if(u===null||typeof u>"u"||g(l,u,b,_))return!0;if(_)return!1;if(b!==null)switch(b.type){case 3:return!u;case 4:return u===!1;case 5:return isNaN(u);case 6:return isNaN(u)||1>u}return!1}function j(l,u,b,_,O,M,$){this.acceptsBooleans=u===2||u===3||u===4,this.attributeName=_,this.attributeNamespace=O,this.mustUseProperty=b,this.propertyName=l,this.type=u,this.sanitizeURL=M,this.removeEmptyString=$}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(l){v[l]=new j(l,0,!1,l,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(l){var u=l[0];v[u]=new j(u,1,!1,l[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(l){v[l]=new j(l,2,!1,l.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(l){v[l]=new j(l,2,!1,l,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(l){v[l]=new j(l,3,!1,l.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(l){v[l]=new j(l,3,!0,l,null,!1,!1)}),["capture","download"].forEach(function(l){v[l]=new j(l,4,!1,l,null,!1,!1)}),["cols","rows","size","span"].forEach(function(l){v[l]=new j(l,6,!1,l,null,!1,!1)}),["rowSpan","start"].forEach(function(l){v[l]=new j(l,5,!1,l.toLowerCase(),null,!1,!1)});var x=/[\-:]([a-z])/g;function N(l){return l[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(l){var u=l.replace(x,N);v[u]=new j(u,1,!1,l,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(l){var u=l.replace(x,N);v[u]=new j(u,1,!1,l,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(l){var u=l.replace(x,N);v[u]=new j(u,1,!1,l,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(l){v[l]=new j(l,1,!1,l.toLowerCase(),null,!1,!1)}),v.xlinkHref=new j("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(l){v[l]=new j(l,1,!1,l.toLowerCase(),null,!0,!0)});function w(l,u,b,_){var O=v.hasOwnProperty(u)?v[u]:null;(O!==null?O.type!==0:_||!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(y(u,b,O,_)&&(b=null),_||O===null?p(u)&&(b===null?l.removeAttribute(u):l.setAttribute(u,""+b)):O.mustUseProperty?l[O.propertyName]=b===null?O.type===3?!1:"":b:(u=O.attributeName,_=O.attributeNamespace,b===null?l.removeAttribute(u):(O=O.type,b=O===3||O===4&&b===!0?"":""+b,_?l.setAttributeNS(_,u,b):l.setAttribute(u,b))))}var k=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,A=Symbol.for("react.element"),S=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),F=Symbol.for("react.provider"),I=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),q=Symbol.for("react.suspense_list"),U=Symbol.for("react.memo"),Q=Symbol.for("react.lazy"),H=Symbol.for("react.offscreen"),K=Symbol.iterator;function Y(l){return l===null||typeof l!="object"?null:(l=K&&l[K]||l["@@iterator"],typeof l=="function"?l:null)}var P=Object.assign,T;function V(l){if(T===void 0)try{throw Error()}catch(b){var u=b.stack.trim().match(/\n( *(at )?)/);T=u&&u[1]||""}return`
`+T+l}var L=!1;function X(l,u){if(!l||L)return"";L=!0;var b=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(u)if(u=function(){throw Error()},Object.defineProperty(u.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(u,[])}catch(fe){var _=fe}Reflect.construct(l,[],u)}else{try{u.call()}catch(fe){_=fe}l.call(u.prototype)}else{try{throw Error()}catch(fe){_=fe}l()}}catch(fe){if(fe&&_&&typeof fe.stack=="string"){for(var O=fe.stack.split(`
`),M=_.stack.split(`
`),$=O.length-1,te=M.length-1;1<=$&&0<=te&&O[$]!==M[te];)te--;for(;1<=$&&0<=te;$--,te--)if(O[$]!==M[te]){if($!==1||te!==1)do if($--,te--,0>te||O[$]!==M[te]){var ie=`
`+O[$].replace(" at new "," at ");return l.displayName&&ie.includes("<anonymous>")&&(ie=ie.replace("<anonymous>",l.displayName)),ie}while(1<=$&&0<=te);break}}}finally{L=!1,Error.prepareStackTrace=b}return(l=l?l.displayName||l.name:"")?V(l):""}function J(l){switch(l.tag){case 5:return V(l.type);case 16:return V("Lazy");case 13:return V("Suspense");case 19:return V("SuspenseList");case 0:case 2:case 15:return l=X(l.type,!1),l;case 11:return l=X(l.type.render,!1),l;case 1:return l=X(l.type,!0),l;default:return""}}function W(l){if(l==null)return null;if(typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case E:return"Fragment";case S:return"Portal";case B:return"Profiler";case C:return"StrictMode";case z:return"Suspense";case q:return"SuspenseList"}if(typeof l=="object")switch(l.$$typeof){case I:return(l.displayName||"Context")+".Consumer";case F:return(l._context.displayName||"Context")+".Provider";case R:var u=l.render;return l=l.displayName,l||(l=u.displayName||u.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case U:return u=l.displayName||null,u!==null?u:W(l.type)||"Memo";case Q:u=l._payload,l=l._init;try{return W(l(u))}catch{}}return null}function G(l){var u=l.type;switch(l.tag){case 24:return"Cache";case 9:return(u.displayName||"Context")+".Consumer";case 10:return(u._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return l=u.render,l=l.displayName||l.name||"",u.displayName||(l!==""?"ForwardRef("+l+")":"ForwardRef");case 7:return"Fragment";case 5:return u;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return W(u);case 8:return u===C?"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 u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u}return null}function ee(l){switch(typeof l){case"boolean":case"number":case"string":case"undefined":return l;case"object":return l;default:return""}}function ne(l){var u=l.type;return(l=l.nodeName)&&l.toLowerCase()==="input"&&(u==="checkbox"||u==="radio")}function le(l){var u=ne(l)?"checked":"value",b=Object.getOwnPropertyDescriptor(l.constructor.prototype,u),_=""+l[u];if(!l.hasOwnProperty(u)&&typeof b<"u"&&typeof b.get=="function"&&typeof b.set=="function"){var O=b.get,M=b.set;return Object.defineProperty(l,u,{configurable:!0,get:function(){return O.call(this)},set:function($){_=""+$,M.call(this,$)}}),Object.defineProperty(l,u,{enumerable:b.enumerable}),{getValue:function(){return _},setValue:function($){_=""+$},stopTracking:function(){l._valueTracker=null,delete l[u]}}}}function ve(l){l._valueTracker||(l._valueTracker=le(l))}function be(l){if(!l)return!1;var u=l._valueTracker;if(!u)return!0;var b=u.getValue(),_="";return l&&(_=ne(l)?l.checked?"true":"false":l.value),l=_,l!==b?(u.setValue(l),!0):!1}function Oe(l){if(l=l||(typeof document<"u"?document:void 0),typeof l>"u")return null;try{return l.activeElement||l.body}catch{return l.body}}function Te(l,u){var b=u.checked;return P({},u,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:b??l._wrapperState.initialChecked})}function We(l,u){var b=u.defaultValue==null?"":u.defaultValue,_=u.checked!=null?u.checked:u.defaultChecked;b=ee(u.value!=null?u.value:b),l._wrapperState={initialChecked:_,initialValue:b,controlled:u.type==="checkbox"||u.type==="radio"?u.checked!=null:u.value!=null}}function ut(l,u){u=u.checked,u!=null&&w(l,"checked",u,!1)}function nt(l,u){ut(l,u);var b=ee(u.value),_=u.type;if(b!=null)_==="number"?(b===0&&l.value===""||l.value!=b)&&(l.value=""+b):l.value!==""+b&&(l.value=""+b);else if(_==="submit"||_==="reset"){l.removeAttribute("value");return}u.hasOwnProperty("value")?ye(l,u.type,b):u.hasOwnProperty("defaultValue")&&ye(l,u.type,ee(u.defaultValue)),u.checked==null&&u.defaultChecked!=null&&(l.defaultChecked=!!u.defaultChecked)}function ge(l,u,b){if(u.hasOwnProperty("value")||u.hasOwnProperty("defaultValue")){var _=u.type;if(!(_!=="submit"&&_!=="reset"||u.value!==void 0&&u.value!==null))return;u=""+l._wrapperState.initialValue,b||u===l.value||(l.value=u),l.defaultValue=u}b=l.name,b!==""&&(l.name=""),l.defaultChecked=!!l._wrapperState.initialChecked,b!==""&&(l.name=b)}function ye(l,u,b){(u!=="number"||Oe(l.ownerDocument)!==l)&&(b==null?l.defaultValue=""+l._wrapperState.initialValue:l.defaultValue!==""+b&&(l.defaultValue=""+b))}var Ae=Array.isArray;function Pe(l,u,b,_){if(l=l.options,u){u={};for(var O=0;O<b.length;O++)u["$"+b[O]]=!0;for(b=0;b<l.length;b++)O=u.hasOwnProperty("$"+l[b].value),l[b].selected!==O&&(l[b].selected=O),O&&_&&(l[b].defaultSelected=!0)}else{for(b=""+ee(b),u=null,O=0;O<l.length;O++){if(l[O].value===b){l[O].selected=!0,_&&(l[O].defaultSelected=!0);return}u!==null||l[O].disabled||(u=l[O])}u!==null&&(u.selected=!0)}}function je(l,u){if(u.dangerouslySetInnerHTML!=null)throw Error(r(91));return P({},u,{value:void 0,defaultValue:void 0,children:""+l._wrapperState.initialValue})}function tt(l,u){var b=u.value;if(b==null){if(b=u.children,u=u.defaultValue,b!=null){if(u!=null)throw Error(r(92));if(Ae(b)){if(1<b.length)throw Error(r(93));b=b[0]}u=b}u==null&&(u=""),b=u}l._wrapperState={initialValue:ee(b)}}function et(l,u){var b=ee(u.value),_=ee(u.defaultValue);b!=null&&(b=""+b,b!==l.value&&(l.value=b),u.defaultValue==null&&l.defaultValue!==b&&(l.defaultValue=b)),_!=null&&(l.defaultValue=""+_)}function rt(l){var u=l.textContent;u===l._wrapperState.initialValue&&u!==""&&u!==null&&(l.value=u)}function xe(l){switch(l){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 _e(l,u){return l==null||l==="http://www.w3.org/1999/xhtml"?xe(u):l==="http://www.w3.org/2000/svg"&&u==="foreignObject"?"http://www.w3.org/1999/xhtml":l}var De,it=(function(l){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(u,b,_,O){MSApp.execUnsafeLocalFunction(function(){return l(u,b,_,O)})}:l})(function(l,u){if(l.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in l)l.innerHTML=u;else{for(De=De||document.createElement("div"),De.innerHTML="<svg>"+u.valueOf().toString()+"</svg>",u=De.firstChild;l.firstChild;)l.removeChild(l.firstChild);for(;u.firstChild;)l.appendChild(u.firstChild)}});function He(l,u){if(u){var b=l.firstChild;if(b&&b===l.lastChild&&b.nodeType===3){b.nodeValue=u;return}}l.textContent=u}var _t={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},Pr=["Webkit","ms","Moz","O"];Object.keys(_t).forEach(function(l){Pr.forEach(function(u){u=u+l.charAt(0).toUpperCase()+l.substring(1),_t[u]=_t[l]})});function Un(l,u,b){return u==null||typeof u=="boolean"||u===""?"":b||typeof u!="number"||u===0||_t.hasOwnProperty(l)&&_t[l]?(""+u).trim():u+"px"}function rs(l,u){l=l.style;for(var b in u)if(u.hasOwnProperty(b)){var _=b.indexOf("--")===0,O=Un(b,u[b],_);b==="float"&&(b="cssFloat"),_?l.setProperty(b,O):l[b]=O}}var sa=P({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 jn(l,u){if(u){if(sa[l]&&(u.children!=null||u.dangerouslySetInnerHTML!=null))throw Error(r(137,l));if(u.dangerouslySetInnerHTML!=null){if(u.children!=null)throw Error(r(60));if(typeof u.dangerouslySetInnerHTML!="object"||!("__html"in u.dangerouslySetInnerHTML))throw Error(r(61))}if(u.style!=null&&typeof u.style!="object")throw Error(r(62))}}function Yr(l,u){if(l.indexOf("-")===-1)return typeof u.is=="string";switch(l){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 ir=null;function Yf(l){return l=l.target||l.srcElement||window,l.correspondingUseElement&&(l=l.correspondingUseElement),l.nodeType===3?l.parentNode:l}var Xf=null,io=null,so=null;function Ib(l){if(l=ic(l)){if(typeof Xf!="function")throw Error(r(280));var u=l.stateNode;u&&(u=fd(u),Xf(l.stateNode,l.type,u))}}function Rb(l){io?so?so.push(l):so=[l]:io=l}function Fb(){if(io){var l=io,u=so;if(so=io=null,Ib(l),u)for(l=0;l<u.length;l++)Ib(u[l])}}function Mb(l,u){return l(u)}function Lb(){}var Jf=!1;function Bb(l,u,b){if(Jf)return l(u,b);Jf=!0;try{return Mb(l,u,b)}finally{Jf=!1,(io!==null||so!==null)&&(Lb(),Fb())}}function Ml(l,u){var b=l.stateNode;if(b===null)return null;var _=fd(b);if(_===null)return null;b=_[u];e:switch(u){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(_=!_.disabled)||(l=l.type,_=!(l==="button"||l==="input"||l==="select"||l==="textarea")),l=!_;break e;default:l=!1}if(l)return null;if(b&&typeof b!="function")throw Error(r(231,u,typeof b));return b}var Zf=!1;if(c)try{var Ll={};Object.defineProperty(Ll,"passive",{get:function(){Zf=!0}}),window.addEventListener("test",Ll,Ll),window.removeEventListener("test",Ll,Ll)}catch{Zf=!1}function iO(l,u,b,_,O,M,$,te,ie){var fe=Array.prototype.slice.call(arguments,3);try{u.apply(b,fe)}catch(Ne){this.onError(Ne)}}var Bl=!1,Hu=null,Wu=!1,em=null,sO={onError:function(l){Bl=!0,Hu=l}};function aO(l,u,b,_,O,M,$,te,ie){Bl=!1,Hu=null,iO.apply(sO,arguments)}function oO(l,u,b,_,O,M,$,te,ie){if(aO.apply(this,arguments),Bl){if(Bl){var fe=Hu;Bl=!1,Hu=null}else throw Error(r(198));Wu||(Wu=!0,em=fe)}}function aa(l){var u=l,b=l;if(l.alternate)for(;u.return;)u=u.return;else{l=u;do u=l,(u.flags&4098)!==0&&(b=u.return),l=u.return;while(l)}return u.tag===3?b:null}function zb(l){if(l.tag===13){var u=l.memoizedState;if(u===null&&(l=l.alternate,l!==null&&(u=l.memoizedState)),u!==null)return u.dehydrated}return null}function qb(l){if(aa(l)!==l)throw Error(r(188))}function lO(l){var u=l.alternate;if(!u){if(u=aa(l),u===null)throw Error(r(188));return u!==l?null:l}for(var b=l,_=u;;){var O=b.return;if(O===null)break;var M=O.alternate;if(M===null){if(_=O.return,_!==null){b=_;continue}break}if(O.child===M.child){for(M=O.child;M;){if(M===b)return qb(O),l;if(M===_)return qb(O),u;M=M.sibling}throw Error(r(188))}if(b.return!==_.return)b=O,_=M;else{for(var $=!1,te=O.child;te;){if(te===b){$=!0,b=O,_=M;break}if(te===_){$=!0,_=O,b=M;break}te=te.sibling}if(!$){for(te=M.child;te;){if(te===b){$=!0,b=M,_=O;break}if(te===_){$=!0,_=M,b=O;break}te=te.sibling}if(!$)throw Error(r(189))}}if(b.alternate!==_)throw Error(r(190))}if(b.tag!==3)throw Error(r(188));return b.stateNode.current===b?l:u}function Vb(l){return l=lO(l),l!==null?Ub(l):null}function Ub(l){if(l.tag===5||l.tag===6)return l;for(l=l.child;l!==null;){var u=Ub(l);if(u!==null)return u;l=l.sibling}return null}var $b=n.unstable_scheduleCallback,Hb=n.unstable_cancelCallback,cO=n.unstable_shouldYield,uO=n.unstable_requestPaint,tn=n.unstable_now,dO=n.unstable_getCurrentPriorityLevel,tm=n.unstable_ImmediatePriority,Wb=n.unstable_UserBlockingPriority,Ku=n.unstable_NormalPriority,hO=n.unstable_LowPriority,Kb=n.unstable_IdlePriority,Gu=null,Xr=null;function fO(l){if(Xr&&typeof Xr.onCommitFiberRoot=="function")try{Xr.onCommitFiberRoot(Gu,l,void 0,(l.current.flags&128)===128)}catch{}}var Dr=Math.clz32?Math.clz32:gO,mO=Math.log,pO=Math.LN2;function gO(l){return l>>>=0,l===0?32:31-(mO(l)/pO|0)|0}var Qu=64,Yu=4194304;function zl(l){switch(l&-l){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 l&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return l&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return l}}function Xu(l,u){var b=l.pendingLanes;if(b===0)return 0;var _=0,O=l.suspendedLanes,M=l.pingedLanes,$=b&268435455;if($!==0){var te=$&~O;te!==0?_=zl(te):(M&=$,M!==0&&(_=zl(M)))}else $=b&~O,$!==0?_=zl($):M!==0&&(_=zl(M));if(_===0)return 0;if(u!==0&&u!==_&&(u&O)===0&&(O=_&-_,M=u&-u,O>=M||O===16&&(M&4194240)!==0))return u;if((_&4)!==0&&(_|=b&16),u=l.entangledLanes,u!==0)for(l=l.entanglements,u&=_;0<u;)b=31-Dr(u),O=1<<b,_|=l[b],u&=~O;return _}function xO(l,u){switch(l){case 1:case 2:case 4:return u+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 u+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 vO(l,u){for(var b=l.suspendedLanes,_=l.pingedLanes,O=l.expirationTimes,M=l.pendingLanes;0<M;){var $=31-Dr(M),te=1<<$,ie=O[$];ie===-1?((te&b)===0||(te&_)!==0)&&(O[$]=xO(te,u)):ie<=u&&(l.expiredLanes|=te),M&=~te}}function nm(l){return l=l.pendingLanes&-1073741825,l!==0?l:l&1073741824?1073741824:0}function Gb(){var l=Qu;return Qu<<=1,(Qu&4194240)===0&&(Qu=64),l}function rm(l){for(var u=[],b=0;31>b;b++)u.push(l);return u}function ql(l,u,b){l.pendingLanes|=u,u!==536870912&&(l.suspendedLanes=0,l.pingedLanes=0),l=l.eventTimes,u=31-Dr(u),l[u]=b}function yO(l,u){var b=l.pendingLanes&~u;l.pendingLanes=u,l.suspendedLanes=0,l.pingedLanes=0,l.expiredLanes&=u,l.mutableReadLanes&=u,l.entangledLanes&=u,u=l.entanglements;var _=l.eventTimes;for(l=l.expirationTimes;0<b;){var O=31-Dr(b),M=1<<O;u[O]=0,_[O]=-1,l[O]=-1,b&=~M}}function im(l,u){var b=l.entangledLanes|=u;for(l=l.entanglements;b;){var _=31-Dr(b),O=1<<_;O&u|l[_]&u&&(l[_]|=u),b&=~O}}var Et=0;function Qb(l){return l&=-l,1<l?4<l?(l&268435455)!==0?16:536870912:4:1}var Yb,sm,Xb,Jb,Zb,am=!1,Ju=[],is=null,ss=null,as=null,Vl=new Map,Ul=new Map,os=[],bO="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 ej(l,u){switch(l){case"focusin":case"focusout":is=null;break;case"dragenter":case"dragleave":ss=null;break;case"mouseover":case"mouseout":as=null;break;case"pointerover":case"pointerout":Vl.delete(u.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ul.delete(u.pointerId)}}function $l(l,u,b,_,O,M){return l===null||l.nativeEvent!==M?(l={blockedOn:u,domEventName:b,eventSystemFlags:_,nativeEvent:M,targetContainers:[O]},u!==null&&(u=ic(u),u!==null&&sm(u)),l):(l.eventSystemFlags|=_,u=l.targetContainers,O!==null&&u.indexOf(O)===-1&&u.push(O),l)}function jO(l,u,b,_,O){switch(u){case"focusin":return is=$l(is,l,u,b,_,O),!0;case"dragenter":return ss=$l(ss,l,u,b,_,O),!0;case"mouseover":return as=$l(as,l,u,b,_,O),!0;case"pointerover":var M=O.pointerId;return Vl.set(M,$l(Vl.get(M)||null,l,u,b,_,O)),!0;case"gotpointercapture":return M=O.pointerId,Ul.set(M,$l(Ul.get(M)||null,l,u,b,_,O)),!0}return!1}function tj(l){var u=oa(l.target);if(u!==null){var b=aa(u);if(b!==null){if(u=b.tag,u===13){if(u=zb(b),u!==null){l.blockedOn=u,Zb(l.priority,function(){Xb(b)});return}}else if(u===3&&b.stateNode.current.memoizedState.isDehydrated){l.blockedOn=b.tag===3?b.stateNode.containerInfo:null;return}}}l.blockedOn=null}function Zu(l){if(l.blockedOn!==null)return!1;for(var u=l.targetContainers;0<u.length;){var b=lm(l.domEventName,l.eventSystemFlags,u[0],l.nativeEvent);if(b===null){b=l.nativeEvent;var _=new b.constructor(b.type,b);ir=_,b.target.dispatchEvent(_),ir=null}else return u=ic(b),u!==null&&sm(u),l.blockedOn=b,!1;u.shift()}return!0}function nj(l,u,b){Zu(l)&&b.delete(u)}function wO(){am=!1,is!==null&&Zu(is)&&(is=null),ss!==null&&Zu(ss)&&(ss=null),as!==null&&Zu(as)&&(as=null),Vl.forEach(nj),Ul.forEach(nj)}function Hl(l,u){l.blockedOn===u&&(l.blockedOn=null,am||(am=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,wO)))}function Wl(l){function u(O){return Hl(O,l)}if(0<Ju.length){Hl(Ju[0],l);for(var b=1;b<Ju.length;b++){var _=Ju[b];_.blockedOn===l&&(_.blockedOn=null)}}for(is!==null&&Hl(is,l),ss!==null&&Hl(ss,l),as!==null&&Hl(as,l),Vl.forEach(u),Ul.forEach(u),b=0;b<os.length;b++)_=os[b],_.blockedOn===l&&(_.blockedOn=null);for(;0<os.length&&(b=os[0],b.blockedOn===null);)tj(b),b.blockedOn===null&&os.shift()}var ao=k.ReactCurrentBatchConfig,ed=!0;function NO(l,u,b,_){var O=Et,M=ao.transition;ao.transition=null;try{Et=1,om(l,u,b,_)}finally{Et=O,ao.transition=M}}function kO(l,u,b,_){var O=Et,M=ao.transition;ao.transition=null;try{Et=4,om(l,u,b,_)}finally{Et=O,ao.transition=M}}function om(l,u,b,_){if(ed){var O=lm(l,u,b,_);if(O===null)_m(l,u,_,td,b),ej(l,_);else if(jO(O,l,u,b,_))_.stopPropagation();else if(ej(l,_),u&4&&-1<bO.indexOf(l)){for(;O!==null;){var M=ic(O);if(M!==null&&Yb(M),M=lm(l,u,b,_),M===null&&_m(l,u,_,td,b),M===O)break;O=M}O!==null&&_.stopPropagation()}else _m(l,u,_,null,b)}}var td=null;function lm(l,u,b,_){if(td=null,l=Yf(_),l=oa(l),l!==null)if(u=aa(l),u===null)l=null;else if(b=u.tag,b===13){if(l=zb(u),l!==null)return l;l=null}else if(b===3){if(u.stateNode.current.memoizedState.isDehydrated)return u.tag===3?u.stateNode.containerInfo:null;l=null}else u!==l&&(l=null);return td=l,null}function rj(l){switch(l){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(dO()){case tm:return 1;case Wb:return 4;case Ku:case hO:return 16;case Kb:return 536870912;default:return 16}default:return 16}}var ls=null,cm=null,nd=null;function ij(){if(nd)return nd;var l,u=cm,b=u.length,_,O="value"in ls?ls.value:ls.textContent,M=O.length;for(l=0;l<b&&u[l]===O[l];l++);var $=b-l;for(_=1;_<=$&&u[b-_]===O[M-_];_++);return nd=O.slice(l,1<_?1-_:void 0)}function rd(l){var u=l.keyCode;return"charCode"in l?(l=l.charCode,l===0&&u===13&&(l=13)):l=u,l===10&&(l=13),32<=l||l===13?l:0}function id(){return!0}function sj(){return!1}function sr(l){function u(b,_,O,M,$){this._reactName=b,this._targetInst=O,this.type=_,this.nativeEvent=M,this.target=$,this.currentTarget=null;for(var te in l)l.hasOwnProperty(te)&&(b=l[te],this[te]=b?b(M):M[te]);return this.isDefaultPrevented=(M.defaultPrevented!=null?M.defaultPrevented:M.returnValue===!1)?id:sj,this.isPropagationStopped=sj,this}return P(u.prototype,{preventDefault:function(){this.defaultPrevented=!0;var b=this.nativeEvent;b&&(b.preventDefault?b.preventDefault():typeof b.returnValue!="unknown"&&(b.returnValue=!1),this.isDefaultPrevented=id)},stopPropagation:function(){var b=this.nativeEvent;b&&(b.stopPropagation?b.stopPropagation():typeof b.cancelBubble!="unknown"&&(b.cancelBubble=!0),this.isPropagationStopped=id)},persist:function(){},isPersistent:id}),u}var oo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(l){return l.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},um=sr(oo),Kl=P({},oo,{view:0,detail:0}),_O=sr(Kl),dm,hm,Gl,sd=P({},Kl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:mm,button:0,buttons:0,relatedTarget:function(l){return l.relatedTarget===void 0?l.fromElement===l.srcElement?l.toElement:l.fromElement:l.relatedTarget},movementX:function(l){return"movementX"in l?l.movementX:(l!==Gl&&(Gl&&l.type==="mousemove"?(dm=l.screenX-Gl.screenX,hm=l.screenY-Gl.screenY):hm=dm=0,Gl=l),dm)},movementY:function(l){return"movementY"in l?l.movementY:hm}}),aj=sr(sd),SO=P({},sd,{dataTransfer:0}),AO=sr(SO),CO=P({},Kl,{relatedTarget:0}),fm=sr(CO),EO=P({},oo,{animationName:0,elapsedTime:0,pseudoElement:0}),TO=sr(EO),OO=P({},oo,{clipboardData:function(l){return"clipboardData"in l?l.clipboardData:window.clipboardData}}),PO=sr(OO),DO=P({},oo,{data:0}),oj=sr(DO),IO={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},RO={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"},FO={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function MO(l){var u=this.nativeEvent;return u.getModifierState?u.getModifierState(l):(l=FO[l])?!!u[l]:!1}function mm(){return MO}var LO=P({},Kl,{key:function(l){if(l.key){var u=IO[l.key]||l.key;if(u!=="Unidentified")return u}return l.type==="keypress"?(l=rd(l),l===13?"Enter":String.fromCharCode(l)):l.type==="keydown"||l.type==="keyup"?RO[l.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:mm,charCode:function(l){return l.type==="keypress"?rd(l):0},keyCode:function(l){return l.type==="keydown"||l.type==="keyup"?l.keyCode:0},which:function(l){return l.type==="keypress"?rd(l):l.type==="keydown"||l.type==="keyup"?l.keyCode:0}}),BO=sr(LO),zO=P({},sd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),lj=sr(zO),qO=P({},Kl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:mm}),VO=sr(qO),UO=P({},oo,{propertyName:0,elapsedTime:0,pseudoElement:0}),$O=sr(UO),HO=P({},sd,{deltaX:function(l){return"deltaX"in l?l.deltaX:"wheelDeltaX"in l?-l.wheelDeltaX:0},deltaY:function(l){return"deltaY"in l?l.deltaY:"wheelDeltaY"in l?-l.wheelDeltaY:"wheelDelta"in l?-l.wheelDelta:0},deltaZ:0,deltaMode:0}),WO=sr(HO),KO=[9,13,27,32],pm=c&&"CompositionEvent"in window,Ql=null;c&&"documentMode"in document&&(Ql=document.documentMode);var GO=c&&"TextEvent"in window&&!Ql,cj=c&&(!pm||Ql&&8<Ql&&11>=Ql),uj=" ",dj=!1;function hj(l,u){switch(l){case"keyup":return KO.indexOf(u.keyCode)!==-1;case"keydown":return u.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function fj(l){return l=l.detail,typeof l=="object"&&"data"in l?l.data:null}var lo=!1;function QO(l,u){switch(l){case"compositionend":return fj(u);case"keypress":return u.which!==32?null:(dj=!0,uj);case"textInput":return l=u.data,l===uj&&dj?null:l;default:return null}}function YO(l,u){if(lo)return l==="compositionend"||!pm&&hj(l,u)?(l=ij(),nd=cm=ls=null,lo=!1,l):null;switch(l){case"paste":return null;case"keypress":if(!(u.ctrlKey||u.altKey||u.metaKey)||u.ctrlKey&&u.altKey){if(u.char&&1<u.char.length)return u.char;if(u.which)return String.fromCharCode(u.which)}return null;case"compositionend":return cj&&u.locale!=="ko"?null:u.data;default:return null}}var XO={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 mj(l){var u=l&&l.nodeName&&l.nodeName.toLowerCase();return u==="input"?!!XO[l.type]:u==="textarea"}function pj(l,u,b,_){Rb(_),u=ud(u,"onChange"),0<u.length&&(b=new um("onChange","change",null,b,_),l.push({event:b,listeners:u}))}var Yl=null,Xl=null;function JO(l){Dj(l,0)}function ad(l){var u=mo(l);if(be(u))return l}function ZO(l,u){if(l==="change")return u}var gj=!1;if(c){var gm;if(c){var xm="oninput"in document;if(!xm){var xj=document.createElement("div");xj.setAttribute("oninput","return;"),xm=typeof xj.oninput=="function"}gm=xm}else gm=!1;gj=gm&&(!document.documentMode||9<document.documentMode)}function vj(){Yl&&(Yl.detachEvent("onpropertychange",yj),Xl=Yl=null)}function yj(l){if(l.propertyName==="value"&&ad(Xl)){var u=[];pj(u,Xl,l,Yf(l)),Bb(JO,u)}}function e3(l,u,b){l==="focusin"?(vj(),Yl=u,Xl=b,Yl.attachEvent("onpropertychange",yj)):l==="focusout"&&vj()}function t3(l){if(l==="selectionchange"||l==="keyup"||l==="keydown")return ad(Xl)}function n3(l,u){if(l==="click")return ad(u)}function r3(l,u){if(l==="input"||l==="change")return ad(u)}function i3(l,u){return l===u&&(l!==0||1/l===1/u)||l!==l&&u!==u}var Ir=typeof Object.is=="function"?Object.is:i3;function Jl(l,u){if(Ir(l,u))return!0;if(typeof l!="object"||l===null||typeof u!="object"||u===null)return!1;var b=Object.keys(l),_=Object.keys(u);if(b.length!==_.length)return!1;for(_=0;_<b.length;_++){var O=b[_];if(!d.call(u,O)||!Ir(l[O],u[O]))return!1}return!0}function bj(l){for(;l&&l.firstChild;)l=l.firstChild;return l}function jj(l,u){var b=bj(l);l=0;for(var _;b;){if(b.nodeType===3){if(_=l+b.textContent.length,l<=u&&_>=u)return{node:b,offset:u-l};l=_}e:{for(;b;){if(b.nextSibling){b=b.nextSibling;break e}b=b.parentNode}b=void 0}b=bj(b)}}function wj(l,u){return l&&u?l===u?!0:l&&l.nodeType===3?!1:u&&u.nodeType===3?wj(l,u.parentNode):"contains"in l?l.contains(u):l.compareDocumentPosition?!!(l.compareDocumentPosition(u)&16):!1:!1}function Nj(){for(var l=window,u=Oe();u instanceof l.HTMLIFrameElement;){try{var b=typeof u.contentWindow.location.href=="string"}catch{b=!1}if(b)l=u.contentWindow;else break;u=Oe(l.document)}return u}function vm(l){var u=l&&l.nodeName&&l.nodeName.toLowerCase();return u&&(u==="input"&&(l.type==="text"||l.type==="search"||l.type==="tel"||l.type==="url"||l.type==="password")||u==="textarea"||l.contentEditable==="true")}function s3(l){var u=Nj(),b=l.focusedElem,_=l.selectionRange;if(u!==b&&b&&b.ownerDocument&&wj(b.ownerDocument.documentElement,b)){if(_!==null&&vm(b)){if(u=_.start,l=_.end,l===void 0&&(l=u),"selectionStart"in b)b.selectionStart=u,b.selectionEnd=Math.min(l,b.value.length);else if(l=(u=b.ownerDocument||document)&&u.defaultView||window,l.getSelection){l=l.getSelection();var O=b.textContent.length,M=Math.min(_.start,O);_=_.end===void 0?M:Math.min(_.end,O),!l.extend&&M>_&&(O=_,_=M,M=O),O=jj(b,M);var $=jj(b,_);O&&$&&(l.rangeCount!==1||l.anchorNode!==O.node||l.anchorOffset!==O.offset||l.focusNode!==$.node||l.focusOffset!==$.offset)&&(u=u.createRange(),u.setStart(O.node,O.offset),l.removeAllRanges(),M>_?(l.addRange(u),l.extend($.node,$.offset)):(u.setEnd($.node,$.offset),l.addRange(u)))}}for(u=[],l=b;l=l.parentNode;)l.nodeType===1&&u.push({element:l,left:l.scrollLeft,top:l.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<u.length;b++)l=u[b],l.element.scrollLeft=l.left,l.element.scrollTop=l.top}}var a3=c&&"documentMode"in document&&11>=document.documentMode,co=null,ym=null,Zl=null,bm=!1;function kj(l,u,b){var _=b.window===b?b.document:b.nodeType===9?b:b.ownerDocument;bm||co==null||co!==Oe(_)||(_=co,"selectionStart"in _&&vm(_)?_={start:_.selectionStart,end:_.selectionEnd}:(_=(_.ownerDocument&&_.ownerDocument.defaultView||window).getSelection(),_={anchorNode:_.anchorNode,anchorOffset:_.anchorOffset,focusNode:_.focusNode,focusOffset:_.focusOffset}),Zl&&Jl(Zl,_)||(Zl=_,_=ud(ym,"onSelect"),0<_.length&&(u=new um("onSelect","select",null,u,b),l.push({event:u,listeners:_}),u.target=co)))}function od(l,u){var b={};return b[l.toLowerCase()]=u.toLowerCase(),b["Webkit"+l]="webkit"+u,b["Moz"+l]="moz"+u,b}var uo={animationend:od("Animation","AnimationEnd"),animationiteration:od("Animation","AnimationIteration"),animationstart:od("Animation","AnimationStart"),transitionend:od("Transition","TransitionEnd")},jm={},_j={};c&&(_j=document.createElement("div").style,"AnimationEvent"in window||(delete uo.animationend.animation,delete uo.animationiteration.animation,delete uo.animationstart.animation),"TransitionEvent"in window||delete uo.transitionend.transition);function ld(l){if(jm[l])return jm[l];if(!uo[l])return l;var u=uo[l],b;for(b in u)if(u.hasOwnProperty(b)&&b in _j)return jm[l]=u[b];return l}var Sj=ld("animationend"),Aj=ld("animationiteration"),Cj=ld("animationstart"),Ej=ld("transitionend"),Tj=new Map,Oj="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 cs(l,u){Tj.set(l,u),a(u,[l])}for(var wm=0;wm<Oj.length;wm++){var Nm=Oj[wm],o3=Nm.toLowerCase(),l3=Nm[0].toUpperCase()+Nm.slice(1);cs(o3,"on"+l3)}cs(Sj,"onAnimationEnd"),cs(Aj,"onAnimationIteration"),cs(Cj,"onAnimationStart"),cs("dblclick","onDoubleClick"),cs("focusin","onFocus"),cs("focusout","onBlur"),cs(Ej,"onTransitionEnd"),o("onMouseEnter",["mouseout","mouseover"]),o("onMouseLeave",["mouseout","mouseover"]),o("onPointerEnter",["pointerout","pointerover"]),o("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ec="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(" "),c3=new Set("cancel close invalid load scroll toggle".split(" ").concat(ec));function Pj(l,u,b){var _=l.type||"unknown-event";l.currentTarget=b,oO(_,u,void 0,l),l.currentTarget=null}function Dj(l,u){u=(u&4)!==0;for(var b=0;b<l.length;b++){var _=l[b],O=_.event;_=_.listeners;e:{var M=void 0;if(u)for(var $=_.length-1;0<=$;$--){var te=_[$],ie=te.instance,fe=te.currentTarget;if(te=te.listener,ie!==M&&O.isPropagationStopped())break e;Pj(O,te,fe),M=ie}else for($=0;$<_.length;$++){if(te=_[$],ie=te.instance,fe=te.currentTarget,te=te.listener,ie!==M&&O.isPropagationStopped())break e;Pj(O,te,fe),M=ie}}}if(Wu)throw l=em,Wu=!1,em=null,l}function Lt(l,u){var b=u[Om];b===void 0&&(b=u[Om]=new Set);var _=l+"__bubble";b.has(_)||(Ij(u,l,2,!1),b.add(_))}function km(l,u,b){var _=0;u&&(_|=4),Ij(b,l,_,u)}var cd="_reactListening"+Math.random().toString(36).slice(2);function tc(l){if(!l[cd]){l[cd]=!0,i.forEach(function(b){b!=="selectionchange"&&(c3.has(b)||km(b,!1,l),km(b,!0,l))});var u=l.nodeType===9?l:l.ownerDocument;u===null||u[cd]||(u[cd]=!0,km("selectionchange",!1,u))}}function Ij(l,u,b,_){switch(rj(u)){case 1:var O=NO;break;case 4:O=kO;break;default:O=om}b=O.bind(null,u,b,l),O=void 0,!Zf||u!=="touchstart"&&u!=="touchmove"&&u!=="wheel"||(O=!0),_?O!==void 0?l.addEventListener(u,b,{capture:!0,passive:O}):l.addEventListener(u,b,!0):O!==void 0?l.addEventListener(u,b,{passive:O}):l.addEventListener(u,b,!1)}function _m(l,u,b,_,O){var M=_;if((u&1)===0&&(u&2)===0&&_!==null)e:for(;;){if(_===null)return;var $=_.tag;if($===3||$===4){var te=_.stateNode.containerInfo;if(te===O||te.nodeType===8&&te.parentNode===O)break;if($===4)for($=_.return;$!==null;){var ie=$.tag;if((ie===3||ie===4)&&(ie=$.stateNode.containerInfo,ie===O||ie.nodeType===8&&ie.parentNode===O))return;$=$.return}for(;te!==null;){if($=oa(te),$===null)return;if(ie=$.tag,ie===5||ie===6){_=M=$;continue e}te=te.parentNode}}_=_.return}Bb(function(){var fe=M,Ne=Yf(b),ke=[];e:{var we=Tj.get(l);if(we!==void 0){var Re=um,Be=l;switch(l){case"keypress":if(rd(b)===0)break e;case"keydown":case"keyup":Re=BO;break;case"focusin":Be="focus",Re=fm;break;case"focusout":Be="blur",Re=fm;break;case"beforeblur":case"afterblur":Re=fm;break;case"click":if(b.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Re=aj;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Re=AO;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Re=VO;break;case Sj:case Aj:case Cj:Re=TO;break;case Ej:Re=$O;break;case"scroll":Re=_O;break;case"wheel":Re=WO;break;case"copy":case"cut":case"paste":Re=PO;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Re=lj}var Ve=(u&4)!==0,nn=!Ve&&l==="scroll",ue=Ve?we!==null?we+"Capture":null:we;Ve=[];for(var oe=fe,he;oe!==null;){he=oe;var Ee=he.stateNode;if(he.tag===5&&Ee!==null&&(he=Ee,ue!==null&&(Ee=Ml(oe,ue),Ee!=null&&Ve.push(nc(oe,Ee,he)))),nn)break;oe=oe.return}0<Ve.length&&(we=new Re(we,Be,null,b,Ne),ke.push({event:we,listeners:Ve}))}}if((u&7)===0){e:{if(we=l==="mouseover"||l==="pointerover",Re=l==="mouseout"||l==="pointerout",we&&b!==ir&&(Be=b.relatedTarget||b.fromElement)&&(oa(Be)||Be[Ai]))break e;if((Re||we)&&(we=Ne.window===Ne?Ne:(we=Ne.ownerDocument)?we.defaultView||we.parentWindow:window,Re?(Be=b.relatedTarget||b.toElement,Re=fe,Be=Be?oa(Be):null,Be!==null&&(nn=aa(Be),Be!==nn||Be.tag!==5&&Be.tag!==6)&&(Be=null)):(Re=null,Be=fe),Re!==Be)){if(Ve=aj,Ee="onMouseLeave",ue="onMouseEnter",oe="mouse",(l==="pointerout"||l==="pointerover")&&(Ve=lj,Ee="onPointerLeave",ue="onPointerEnter",oe="pointer"),nn=Re==null?we:mo(Re),he=Be==null?we:mo(Be),we=new Ve(Ee,oe+"leave",Re,b,Ne),we.target=nn,we.relatedTarget=he,Ee=null,oa(Ne)===fe&&(Ve=new Ve(ue,oe+"enter",Be,b,Ne),Ve.target=he,Ve.relatedTarget=nn,Ee=Ve),nn=Ee,Re&&Be)t:{for(Ve=Re,ue=Be,oe=0,he=Ve;he;he=ho(he))oe++;for(he=0,Ee=ue;Ee;Ee=ho(Ee))he++;for(;0<oe-he;)Ve=ho(Ve),oe--;for(;0<he-oe;)ue=ho(ue),he--;for(;oe--;){if(Ve===ue||ue!==null&&Ve===ue.alternate)break t;Ve=ho(Ve),ue=ho(ue)}Ve=null}else Ve=null;Re!==null&&Rj(ke,we,Re,Ve,!1),Be!==null&&nn!==null&&Rj(ke,nn,Be,Ve,!0)}}e:{if(we=fe?mo(fe):window,Re=we.nodeName&&we.nodeName.toLowerCase(),Re==="select"||Re==="input"&&we.type==="file")var Ue=ZO;else if(mj(we))if(gj)Ue=r3;else{Ue=t3;var Ge=e3}else(Re=we.nodeName)&&Re.toLowerCase()==="input"&&(we.type==="checkbox"||we.type==="radio")&&(Ue=n3);if(Ue&&(Ue=Ue(l,fe))){pj(ke,Ue,b,Ne);break e}Ge&&Ge(l,we,fe),l==="focusout"&&(Ge=we._wrapperState)&&Ge.controlled&&we.type==="number"&&ye(we,"number",we.value)}switch(Ge=fe?mo(fe):window,l){case"focusin":(mj(Ge)||Ge.contentEditable==="true")&&(co=Ge,ym=fe,Zl=null);break;case"focusout":Zl=ym=co=null;break;case"mousedown":bm=!0;break;case"contextmenu":case"mouseup":case"dragend":bm=!1,kj(ke,b,Ne);break;case"selectionchange":if(a3)break;case"keydown":case"keyup":kj(ke,b,Ne)}var Qe;if(pm)e:{switch(l){case"compositionstart":var Je="onCompositionStart";break e;case"compositionend":Je="onCompositionEnd";break e;case"compositionupdate":Je="onCompositionUpdate";break e}Je=void 0}else lo?hj(l,b)&&(Je="onCompositionEnd"):l==="keydown"&&b.keyCode===229&&(Je="onCompositionStart");Je&&(cj&&b.locale!=="ko"&&(lo||Je!=="onCompositionStart"?Je==="onCompositionEnd"&&lo&&(Qe=ij()):(ls=Ne,cm="value"in ls?ls.value:ls.textContent,lo=!0)),Ge=ud(fe,Je),0<Ge.length&&(Je=new oj(Je,l,null,b,Ne),ke.push({event:Je,listeners:Ge}),Qe?Je.data=Qe:(Qe=fj(b),Qe!==null&&(Je.data=Qe)))),(Qe=GO?QO(l,b):YO(l,b))&&(fe=ud(fe,"onBeforeInput"),0<fe.length&&(Ne=new oj("onBeforeInput","beforeinput",null,b,Ne),ke.push({event:Ne,listeners:fe}),Ne.data=Qe))}Dj(ke,u)})}function nc(l,u,b){return{instance:l,listener:u,currentTarget:b}}function ud(l,u){for(var b=u+"Capture",_=[];l!==null;){var O=l,M=O.stateNode;O.tag===5&&M!==null&&(O=M,M=Ml(l,b),M!=null&&_.unshift(nc(l,M,O)),M=Ml(l,u),M!=null&&_.push(nc(l,M,O))),l=l.return}return _}function ho(l){if(l===null)return null;do l=l.return;while(l&&l.tag!==5);return l||null}function Rj(l,u,b,_,O){for(var M=u._reactName,$=[];b!==null&&b!==_;){var te=b,ie=te.alternate,fe=te.stateNode;if(ie!==null&&ie===_)break;te.tag===5&&fe!==null&&(te=fe,O?(ie=Ml(b,M),ie!=null&&$.unshift(nc(b,ie,te))):O||(ie=Ml(b,M),ie!=null&&$.push(nc(b,ie,te)))),b=b.return}$.length!==0&&l.push({event:u,listeners:$})}var u3=/\r\n?/g,d3=/\u0000|\uFFFD/g;function Fj(l){return(typeof l=="string"?l:""+l).replace(u3,`
`).replace(d3,"")}function dd(l,u,b){if(u=Fj(u),Fj(l)!==u&&b)throw Error(r(425))}function hd(){}var Sm=null,Am=null;function Cm(l,u){return l==="textarea"||l==="noscript"||typeof u.children=="string"||typeof u.children=="number"||typeof u.dangerouslySetInnerHTML=="object"&&u.dangerouslySetInnerHTML!==null&&u.dangerouslySetInnerHTML.__html!=null}var Em=typeof setTimeout=="function"?setTimeout:void 0,h3=typeof clearTimeout=="function"?clearTimeout:void 0,Mj=typeof Promise=="function"?Promise:void 0,f3=typeof queueMicrotask=="function"?queueMicrotask:typeof Mj<"u"?function(l){return Mj.resolve(null).then(l).catch(m3)}:Em;function m3(l){setTimeout(function(){throw l})}function Tm(l,u){var b=u,_=0;do{var O=b.nextSibling;if(l.removeChild(b),O&&O.nodeType===8)if(b=O.data,b==="/$"){if(_===0){l.removeChild(O),Wl(u);return}_--}else b!=="$"&&b!=="$?"&&b!=="$!"||_++;b=O}while(b);Wl(u)}function us(l){for(;l!=null;l=l.nextSibling){var u=l.nodeType;if(u===1||u===3)break;if(u===8){if(u=l.data,u==="$"||u==="$!"||u==="$?")break;if(u==="/$")return null}}return l}function Lj(l){l=l.previousSibling;for(var u=0;l;){if(l.nodeType===8){var b=l.data;if(b==="$"||b==="$!"||b==="$?"){if(u===0)return l;u--}else b==="/$"&&u++}l=l.previousSibling}return null}var fo=Math.random().toString(36).slice(2),Jr="__reactFiber$"+fo,rc="__reactProps$"+fo,Ai="__reactContainer$"+fo,Om="__reactEvents$"+fo,p3="__reactListeners$"+fo,g3="__reactHandles$"+fo;function oa(l){var u=l[Jr];if(u)return u;for(var b=l.parentNode;b;){if(u=b[Ai]||b[Jr]){if(b=u.alternate,u.child!==null||b!==null&&b.child!==null)for(l=Lj(l);l!==null;){if(b=l[Jr])return b;l=Lj(l)}return u}l=b,b=l.parentNode}return null}function ic(l){return l=l[Jr]||l[Ai],!l||l.tag!==5&&l.tag!==6&&l.tag!==13&&l.tag!==3?null:l}function mo(l){if(l.tag===5||l.tag===6)return l.stateNode;throw Error(r(33))}function fd(l){return l[rc]||null}var Pm=[],po=-1;function ds(l){return{current:l}}function Bt(l){0>po||(l.current=Pm[po],Pm[po]=null,po--)}function It(l,u){po++,Pm[po]=l.current,l.current=u}var hs={},An=ds(hs),$n=ds(!1),la=hs;function go(l,u){var b=l.type.contextTypes;if(!b)return hs;var _=l.stateNode;if(_&&_.__reactInternalMemoizedUnmaskedChildContext===u)return _.__reactInternalMemoizedMaskedChildContext;var O={},M;for(M in b)O[M]=u[M];return _&&(l=l.stateNode,l.__reactInternalMemoizedUnmaskedChildContext=u,l.__reactInternalMemoizedMaskedChildContext=O),O}function Hn(l){return l=l.childContextTypes,l!=null}function md(){Bt($n),Bt(An)}function Bj(l,u,b){if(An.current!==hs)throw Error(r(168));It(An,u),It($n,b)}function zj(l,u,b){var _=l.stateNode;if(u=u.childContextTypes,typeof _.getChildContext!="function")return b;_=_.getChildContext();for(var O in _)if(!(O in u))throw Error(r(108,G(l)||"Unknown",O));return P({},b,_)}function pd(l){return l=(l=l.stateNode)&&l.__reactInternalMemoizedMergedChildContext||hs,la=An.current,It(An,l),It($n,$n.current),!0}function qj(l,u,b){var _=l.stateNode;if(!_)throw Error(r(169));b?(l=zj(l,u,la),_.__reactInternalMemoizedMergedChildContext=l,Bt($n),Bt(An),It(An,l)):Bt($n),It($n,b)}var Ci=null,gd=!1,Dm=!1;function Vj(l){Ci===null?Ci=[l]:Ci.push(l)}function x3(l){gd=!0,Vj(l)}function fs(){if(!Dm&&Ci!==null){Dm=!0;var l=0,u=Et;try{var b=Ci;for(Et=1;l<b.length;l++){var _=b[l];do _=_(!0);while(_!==null)}Ci=null,gd=!1}catch(O){throw Ci!==null&&(Ci=Ci.slice(l+1)),$b(tm,fs),O}finally{Et=u,Dm=!1}}return null}var xo=[],vo=0,xd=null,vd=0,xr=[],vr=0,ca=null,Ei=1,Ti="";function ua(l,u){xo[vo++]=vd,xo[vo++]=xd,xd=l,vd=u}function Uj(l,u,b){xr[vr++]=Ei,xr[vr++]=Ti,xr[vr++]=ca,ca=l;var _=Ei;l=Ti;var O=32-Dr(_)-1;_&=~(1<<O),b+=1;var M=32-Dr(u)+O;if(30<M){var $=O-O%5;M=(_&(1<<$)-1).toString(32),_>>=$,O-=$,Ei=1<<32-Dr(u)+O|b<<O|_,Ti=M+l}else Ei=1<<M|b<<O|_,Ti=l}function Im(l){l.return!==null&&(ua(l,1),Uj(l,1,0))}function Rm(l){for(;l===xd;)xd=xo[--vo],xo[vo]=null,vd=xo[--vo],xo[vo]=null;for(;l===ca;)ca=xr[--vr],xr[vr]=null,Ti=xr[--vr],xr[vr]=null,Ei=xr[--vr],xr[vr]=null}var ar=null,or=null,qt=!1,Rr=null;function $j(l,u){var b=wr(5,null,null,0);b.elementType="DELETED",b.stateNode=u,b.return=l,u=l.deletions,u===null?(l.deletions=[b],l.flags|=16):u.push(b)}function Hj(l,u){switch(l.tag){case 5:var b=l.type;return u=u.nodeType!==1||b.toLowerCase()!==u.nodeName.toLowerCase()?null:u,u!==null?(l.stateNode=u,ar=l,or=us(u.firstChild),!0):!1;case 6:return u=l.pendingProps===""||u.nodeType!==3?null:u,u!==null?(l.stateNode=u,ar=l,or=null,!0):!1;case 13:return u=u.nodeType!==8?null:u,u!==null?(b=ca!==null?{id:Ei,overflow:Ti}:null,l.memoizedState={dehydrated:u,treeContext:b,retryLane:1073741824},b=wr(18,null,null,0),b.stateNode=u,b.return=l,l.child=b,ar=l,or=null,!0):!1;default:return!1}}function Fm(l){return(l.mode&1)!==0&&(l.flags&128)===0}function Mm(l){if(qt){var u=or;if(u){var b=u;if(!Hj(l,u)){if(Fm(l))throw Error(r(418));u=us(b.nextSibling);var _=ar;u&&Hj(l,u)?$j(_,b):(l.flags=l.flags&-4097|2,qt=!1,ar=l)}}else{if(Fm(l))throw Error(r(418));l.flags=l.flags&-4097|2,qt=!1,ar=l}}}function Wj(l){for(l=l.return;l!==null&&l.tag!==5&&l.tag!==3&&l.tag!==13;)l=l.return;ar=l}function yd(l){if(l!==ar)return!1;if(!qt)return Wj(l),qt=!0,!1;var u;if((u=l.tag!==3)&&!(u=l.tag!==5)&&(u=l.type,u=u!=="head"&&u!=="body"&&!Cm(l.type,l.memoizedProps)),u&&(u=or)){if(Fm(l))throw Kj(),Error(r(418));for(;u;)$j(l,u),u=us(u.nextSibling)}if(Wj(l),l.tag===13){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(r(317));e:{for(l=l.nextSibling,u=0;l;){if(l.nodeType===8){var b=l.data;if(b==="/$"){if(u===0){or=us(l.nextSibling);break e}u--}else b!=="$"&&b!=="$!"&&b!=="$?"||u++}l=l.nextSibling}or=null}}else or=ar?us(l.stateNode.nextSibling):null;return!0}function Kj(){for(var l=or;l;)l=us(l.nextSibling)}function yo(){or=ar=null,qt=!1}function Lm(l){Rr===null?Rr=[l]:Rr.push(l)}var v3=k.ReactCurrentBatchConfig;function sc(l,u,b){if(l=b.ref,l!==null&&typeof l!="function"&&typeof l!="object"){if(b._owner){if(b=b._owner,b){if(b.tag!==1)throw Error(r(309));var _=b.stateNode}if(!_)throw Error(r(147,l));var O=_,M=""+l;return u!==null&&u.ref!==null&&typeof u.ref=="function"&&u.ref._stringRef===M?u.ref:(u=function($){var te=O.refs;$===null?delete te[M]:te[M]=$},u._stringRef=M,u)}if(typeof l!="string")throw Error(r(284));if(!b._owner)throw Error(r(290,l))}return l}function bd(l,u){throw l=Object.prototype.toString.call(u),Error(r(31,l==="[object Object]"?"object with keys {"+Object.keys(u).join(", ")+"}":l))}function Gj(l){var u=l._init;return u(l._payload)}function Qj(l){function u(ue,oe){if(l){var he=ue.deletions;he===null?(ue.deletions=[oe],ue.flags|=16):he.push(oe)}}function b(ue,oe){if(!l)return null;for(;oe!==null;)u(ue,oe),oe=oe.sibling;return null}function _(ue,oe){for(ue=new Map;oe!==null;)oe.key!==null?ue.set(oe.key,oe):ue.set(oe.index,oe),oe=oe.sibling;return ue}function O(ue,oe){return ue=js(ue,oe),ue.index=0,ue.sibling=null,ue}function M(ue,oe,he){return ue.index=he,l?(he=ue.alternate,he!==null?(he=he.index,he<oe?(ue.flags|=2,oe):he):(ue.flags|=2,oe)):(ue.flags|=1048576,oe)}function $(ue){return l&&ue.alternate===null&&(ue.flags|=2),ue}function te(ue,oe,he,Ee){return oe===null||oe.tag!==6?(oe=Ep(he,ue.mode,Ee),oe.return=ue,oe):(oe=O(oe,he),oe.return=ue,oe)}function ie(ue,oe,he,Ee){var Ue=he.type;return Ue===E?Ne(ue,oe,he.props.children,Ee,he.key):oe!==null&&(oe.elementType===Ue||typeof Ue=="object"&&Ue!==null&&Ue.$$typeof===Q&&Gj(Ue)===oe.type)?(Ee=O(oe,he.props),Ee.ref=sc(ue,oe,he),Ee.return=ue,Ee):(Ee=$d(he.type,he.key,he.props,null,ue.mode,Ee),Ee.ref=sc(ue,oe,he),Ee.return=ue,Ee)}function fe(ue,oe,he,Ee){return oe===null||oe.tag!==4||oe.stateNode.containerInfo!==he.containerInfo||oe.stateNode.implementation!==he.implementation?(oe=Tp(he,ue.mode,Ee),oe.return=ue,oe):(oe=O(oe,he.children||[]),oe.return=ue,oe)}function Ne(ue,oe,he,Ee,Ue){return oe===null||oe.tag!==7?(oe=va(he,ue.mode,Ee,Ue),oe.return=ue,oe):(oe=O(oe,he),oe.return=ue,oe)}function ke(ue,oe,he){if(typeof oe=="string"&&oe!==""||typeof oe=="number")return oe=Ep(""+oe,ue.mode,he),oe.return=ue,oe;if(typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case A:return he=$d(oe.type,oe.key,oe.props,null,ue.mode,he),he.ref=sc(ue,null,oe),he.return=ue,he;case S:return oe=Tp(oe,ue.mode,he),oe.return=ue,oe;case Q:var Ee=oe._init;return ke(ue,Ee(oe._payload),he)}if(Ae(oe)||Y(oe))return oe=va(oe,ue.mode,he,null),oe.return=ue,oe;bd(ue,oe)}return null}function we(ue,oe,he,Ee){var Ue=oe!==null?oe.key:null;if(typeof he=="string"&&he!==""||typeof he=="number")return Ue!==null?null:te(ue,oe,""+he,Ee);if(typeof he=="object"&&he!==null){switch(he.$$typeof){case A:return he.key===Ue?ie(ue,oe,he,Ee):null;case S:return he.key===Ue?fe(ue,oe,he,Ee):null;case Q:return Ue=he._init,we(ue,oe,Ue(he._payload),Ee)}if(Ae(he)||Y(he))return Ue!==null?null:Ne(ue,oe,he,Ee,null);bd(ue,he)}return null}function Re(ue,oe,he,Ee,Ue){if(typeof Ee=="string"&&Ee!==""||typeof Ee=="number")return ue=ue.get(he)||null,te(oe,ue,""+Ee,Ue);if(typeof Ee=="object"&&Ee!==null){switch(Ee.$$typeof){case A:return ue=ue.get(Ee.key===null?he:Ee.key)||null,ie(oe,ue,Ee,Ue);case S:return ue=ue.get(Ee.key===null?he:Ee.key)||null,fe(oe,ue,Ee,Ue);case Q:var Ge=Ee._init;return Re(ue,oe,he,Ge(Ee._payload),Ue)}if(Ae(Ee)||Y(Ee))return ue=ue.get(he)||null,Ne(oe,ue,Ee,Ue,null);bd(oe,Ee)}return null}function Be(ue,oe,he,Ee){for(var Ue=null,Ge=null,Qe=oe,Je=oe=0,vn=null;Qe!==null&&Je<he.length;Je++){Qe.index>Je?(vn=Qe,Qe=null):vn=Qe.sibling;var yt=we(ue,Qe,he[Je],Ee);if(yt===null){Qe===null&&(Qe=vn);break}l&&Qe&&yt.alternate===null&&u(ue,Qe),oe=M(yt,oe,Je),Ge===null?Ue=yt:Ge.sibling=yt,Ge=yt,Qe=vn}if(Je===he.length)return b(ue,Qe),qt&&ua(ue,Je),Ue;if(Qe===null){for(;Je<he.length;Je++)Qe=ke(ue,he[Je],Ee),Qe!==null&&(oe=M(Qe,oe,Je),Ge===null?Ue=Qe:Ge.sibling=Qe,Ge=Qe);return qt&&ua(ue,Je),Ue}for(Qe=_(ue,Qe);Je<he.length;Je++)vn=Re(Qe,ue,Je,he[Je],Ee),vn!==null&&(l&&vn.alternate!==null&&Qe.delete(vn.key===null?Je:vn.key),oe=M(vn,oe,Je),Ge===null?Ue=vn:Ge.sibling=vn,Ge=vn);return l&&Qe.forEach(function(ws){return u(ue,ws)}),qt&&ua(ue,Je),Ue}function Ve(ue,oe,he,Ee){var Ue=Y(he);if(typeof Ue!="function")throw Error(r(150));if(he=Ue.call(he),he==null)throw Error(r(151));for(var Ge=Ue=null,Qe=oe,Je=oe=0,vn=null,yt=he.next();Qe!==null&&!yt.done;Je++,yt=he.next()){Qe.index>Je?(vn=Qe,Qe=null):vn=Qe.sibling;var ws=we(ue,Qe,yt.value,Ee);if(ws===null){Qe===null&&(Qe=vn);break}l&&Qe&&ws.alternate===null&&u(ue,Qe),oe=M(ws,oe,Je),Ge===null?Ue=ws:Ge.sibling=ws,Ge=ws,Qe=vn}if(yt.done)return b(ue,Qe),qt&&ua(ue,Je),Ue;if(Qe===null){for(;!yt.done;Je++,yt=he.next())yt=ke(ue,yt.value,Ee),yt!==null&&(oe=M(yt,oe,Je),Ge===null?Ue=yt:Ge.sibling=yt,Ge=yt);return qt&&ua(ue,Je),Ue}for(Qe=_(ue,Qe);!yt.done;Je++,yt=he.next())yt=Re(Qe,ue,Je,yt.value,Ee),yt!==null&&(l&&yt.alternate!==null&&Qe.delete(yt.key===null?Je:yt.key),oe=M(yt,oe,Je),Ge===null?Ue=yt:Ge.sibling=yt,Ge=yt);return l&&Qe.forEach(function(X3){return u(ue,X3)}),qt&&ua(ue,Je),Ue}function nn(ue,oe,he,Ee){if(typeof he=="object"&&he!==null&&he.type===E&&he.key===null&&(he=he.props.children),typeof he=="object"&&he!==null){switch(he.$$typeof){case A:e:{for(var Ue=he.key,Ge=oe;Ge!==null;){if(Ge.key===Ue){if(Ue=he.type,Ue===E){if(Ge.tag===7){b(ue,Ge.sibling),oe=O(Ge,he.props.children),oe.return=ue,ue=oe;break e}}else if(Ge.elementType===Ue||typeof Ue=="object"&&Ue!==null&&Ue.$$typeof===Q&&Gj(Ue)===Ge.type){b(ue,Ge.sibling),oe=O(Ge,he.props),oe.ref=sc(ue,Ge,he),oe.return=ue,ue=oe;break e}b(ue,Ge);break}else u(ue,Ge);Ge=Ge.sibling}he.type===E?(oe=va(he.props.children,ue.mode,Ee,he.key),oe.return=ue,ue=oe):(Ee=$d(he.type,he.key,he.props,null,ue.mode,Ee),Ee.ref=sc(ue,oe,he),Ee.return=ue,ue=Ee)}return $(ue);case S:e:{for(Ge=he.key;oe!==null;){if(oe.key===Ge)if(oe.tag===4&&oe.stateNode.containerInfo===he.containerInfo&&oe.stateNode.implementation===he.implementation){b(ue,oe.sibling),oe=O(oe,he.children||[]),oe.return=ue,ue=oe;break e}else{b(ue,oe);break}else u(ue,oe);oe=oe.sibling}oe=Tp(he,ue.mode,Ee),oe.return=ue,ue=oe}return $(ue);case Q:return Ge=he._init,nn(ue,oe,Ge(he._payload),Ee)}if(Ae(he))return Be(ue,oe,he,Ee);if(Y(he))return Ve(ue,oe,he,Ee);bd(ue,he)}return typeof he=="string"&&he!==""||typeof he=="number"?(he=""+he,oe!==null&&oe.tag===6?(b(ue,oe.sibling),oe=O(oe,he),oe.return=ue,ue=oe):(b(ue,oe),oe=Ep(he,ue.mode,Ee),oe.return=ue,ue=oe),$(ue)):b(ue,oe)}return nn}var bo=Qj(!0),Yj=Qj(!1),jd=ds(null),wd=null,jo=null,Bm=null;function zm(){Bm=jo=wd=null}function qm(l){var u=jd.current;Bt(jd),l._currentValue=u}function Vm(l,u,b){for(;l!==null;){var _=l.alternate;if((l.childLanes&u)!==u?(l.childLanes|=u,_!==null&&(_.childLanes|=u)):_!==null&&(_.childLanes&u)!==u&&(_.childLanes|=u),l===b)break;l=l.return}}function wo(l,u){wd=l,Bm=jo=null,l=l.dependencies,l!==null&&l.firstContext!==null&&((l.lanes&u)!==0&&(Wn=!0),l.firstContext=null)}function yr(l){var u=l._currentValue;if(Bm!==l)if(l={context:l,memoizedValue:u,next:null},jo===null){if(wd===null)throw Error(r(308));jo=l,wd.dependencies={lanes:0,firstContext:l}}else jo=jo.next=l;return u}var da=null;function Um(l){da===null?da=[l]:da.push(l)}function Xj(l,u,b,_){var O=u.interleaved;return O===null?(b.next=b,Um(u)):(b.next=O.next,O.next=b),u.interleaved=b,Oi(l,_)}function Oi(l,u){l.lanes|=u;var b=l.alternate;for(b!==null&&(b.lanes|=u),b=l,l=l.return;l!==null;)l.childLanes|=u,b=l.alternate,b!==null&&(b.childLanes|=u),b=l,l=l.return;return b.tag===3?b.stateNode:null}var ms=!1;function $m(l){l.updateQueue={baseState:l.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Jj(l,u){l=l.updateQueue,u.updateQueue===l&&(u.updateQueue={baseState:l.baseState,firstBaseUpdate:l.firstBaseUpdate,lastBaseUpdate:l.lastBaseUpdate,shared:l.shared,effects:l.effects})}function Pi(l,u){return{eventTime:l,lane:u,tag:0,payload:null,callback:null,next:null}}function ps(l,u,b){var _=l.updateQueue;if(_===null)return null;if(_=_.shared,(vt&2)!==0){var O=_.pending;return O===null?u.next=u:(u.next=O.next,O.next=u),_.pending=u,Oi(l,b)}return O=_.interleaved,O===null?(u.next=u,Um(_)):(u.next=O.next,O.next=u),_.interleaved=u,Oi(l,b)}function Nd(l,u,b){if(u=u.updateQueue,u!==null&&(u=u.shared,(b&4194240)!==0)){var _=u.lanes;_&=l.pendingLanes,b|=_,u.lanes=b,im(l,b)}}function Zj(l,u){var b=l.updateQueue,_=l.alternate;if(_!==null&&(_=_.updateQueue,b===_)){var O=null,M=null;if(b=b.firstBaseUpdate,b!==null){do{var $={eventTime:b.eventTime,lane:b.lane,tag:b.tag,payload:b.payload,callback:b.callback,next:null};M===null?O=M=$:M=M.next=$,b=b.next}while(b!==null);M===null?O=M=u:M=M.next=u}else O=M=u;b={baseState:_.baseState,firstBaseUpdate:O,lastBaseUpdate:M,shared:_.shared,effects:_.effects},l.updateQueue=b;return}l=b.lastBaseUpdate,l===null?b.firstBaseUpdate=u:l.next=u,b.lastBaseUpdate=u}function kd(l,u,b,_){var O=l.updateQueue;ms=!1;var M=O.firstBaseUpdate,$=O.lastBaseUpdate,te=O.shared.pending;if(te!==null){O.shared.pending=null;var ie=te,fe=ie.next;ie.next=null,$===null?M=fe:$.next=fe,$=ie;var Ne=l.alternate;Ne!==null&&(Ne=Ne.updateQueue,te=Ne.lastBaseUpdate,te!==$&&(te===null?Ne.firstBaseUpdate=fe:te.next=fe,Ne.lastBaseUpdate=ie))}if(M!==null){var ke=O.baseState;$=0,Ne=fe=ie=null,te=M;do{var we=te.lane,Re=te.eventTime;if((_&we)===we){Ne!==null&&(Ne=Ne.next={eventTime:Re,lane:0,tag:te.tag,payload:te.payload,callback:te.callback,next:null});e:{var Be=l,Ve=te;switch(we=u,Re=b,Ve.tag){case 1:if(Be=Ve.payload,typeof Be=="function"){ke=Be.call(Re,ke,we);break e}ke=Be;break e;case 3:Be.flags=Be.flags&-65537|128;case 0:if(Be=Ve.payload,we=typeof Be=="function"?Be.call(Re,ke,we):Be,we==null)break e;ke=P({},ke,we);break e;case 2:ms=!0}}te.callback!==null&&te.lane!==0&&(l.flags|=64,we=O.effects,we===null?O.effects=[te]:we.push(te))}else Re={eventTime:Re,lane:we,tag:te.tag,payload:te.payload,callback:te.callback,next:null},Ne===null?(fe=Ne=Re,ie=ke):Ne=Ne.next=Re,$|=we;if(te=te.next,te===null){if(te=O.shared.pending,te===null)break;we=te,te=we.next,we.next=null,O.lastBaseUpdate=we,O.shared.pending=null}}while(!0);if(Ne===null&&(ie=ke),O.baseState=ie,O.firstBaseUpdate=fe,O.lastBaseUpdate=Ne,u=O.shared.interleaved,u!==null){O=u;do $|=O.lane,O=O.next;while(O!==u)}else M===null&&(O.shared.lanes=0);ma|=$,l.lanes=$,l.memoizedState=ke}}function ew(l,u,b){if(l=u.effects,u.effects=null,l!==null)for(u=0;u<l.length;u++){var _=l[u],O=_.callback;if(O!==null){if(_.callback=null,_=b,typeof O!="function")throw Error(r(191,O));O.call(_)}}}var ac={},Zr=ds(ac),oc=ds(ac),lc=ds(ac);function ha(l){if(l===ac)throw Error(r(174));return l}function Hm(l,u){switch(It(lc,u),It(oc,l),It(Zr,ac),l=u.nodeType,l){case 9:case 11:u=(u=u.documentElement)?u.namespaceURI:_e(null,"");break;default:l=l===8?u.parentNode:u,u=l.namespaceURI||null,l=l.tagName,u=_e(u,l)}Bt(Zr),It(Zr,u)}function No(){Bt(Zr),Bt(oc),Bt(lc)}function tw(l){ha(lc.current);var u=ha(Zr.current),b=_e(u,l.type);u!==b&&(It(oc,l),It(Zr,b))}function Wm(l){oc.current===l&&(Bt(Zr),Bt(oc))}var Kt=ds(0);function _d(l){for(var u=l;u!==null;){if(u.tag===13){var b=u.memoizedState;if(b!==null&&(b=b.dehydrated,b===null||b.data==="$?"||b.data==="$!"))return u}else if(u.tag===19&&u.memoizedProps.revealOrder!==void 0){if((u.flags&128)!==0)return u}else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===l)break;for(;u.sibling===null;){if(u.return===null||u.return===l)return null;u=u.return}u.sibling.return=u.return,u=u.sibling}return null}var Km=[];function Gm(){for(var l=0;l<Km.length;l++)Km[l]._workInProgressVersionPrimary=null;Km.length=0}var Sd=k.ReactCurrentDispatcher,Qm=k.ReactCurrentBatchConfig,fa=0,Gt=null,un=null,gn=null,Ad=!1,cc=!1,uc=0,y3=0;function Cn(){throw Error(r(321))}function Ym(l,u){if(u===null)return!1;for(var b=0;b<u.length&&b<l.length;b++)if(!Ir(l[b],u[b]))return!1;return!0}function Xm(l,u,b,_,O,M){if(fa=M,Gt=u,u.memoizedState=null,u.updateQueue=null,u.lanes=0,Sd.current=l===null||l.memoizedState===null?N3:k3,l=b(_,O),cc){M=0;do{if(cc=!1,uc=0,25<=M)throw Error(r(301));M+=1,gn=un=null,u.updateQueue=null,Sd.current=_3,l=b(_,O)}while(cc)}if(Sd.current=Td,u=un!==null&&un.next!==null,fa=0,gn=un=Gt=null,Ad=!1,u)throw Error(r(300));return l}function Jm(){var l=uc!==0;return uc=0,l}function ei(){var l={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return gn===null?Gt.memoizedState=gn=l:gn=gn.next=l,gn}function br(){if(un===null){var l=Gt.alternate;l=l!==null?l.memoizedState:null}else l=un.next;var u=gn===null?Gt.memoizedState:gn.next;if(u!==null)gn=u,un=l;else{if(l===null)throw Error(r(310));un=l,l={memoizedState:un.memoizedState,baseState:un.baseState,baseQueue:un.baseQueue,queue:un.queue,next:null},gn===null?Gt.memoizedState=gn=l:gn=gn.next=l}return gn}function dc(l,u){return typeof u=="function"?u(l):u}function Zm(l){var u=br(),b=u.queue;if(b===null)throw Error(r(311));b.lastRenderedReducer=l;var _=un,O=_.baseQueue,M=b.pending;if(M!==null){if(O!==null){var $=O.next;O.next=M.next,M.next=$}_.baseQueue=O=M,b.pending=null}if(O!==null){M=O.next,_=_.baseState;var te=$=null,ie=null,fe=M;do{var Ne=fe.lane;if((fa&Ne)===Ne)ie!==null&&(ie=ie.next={lane:0,action:fe.action,hasEagerState:fe.hasEagerState,eagerState:fe.eagerState,next:null}),_=fe.hasEagerState?fe.eagerState:l(_,fe.action);else{var ke={lane:Ne,action:fe.action,hasEagerState:fe.hasEagerState,eagerState:fe.eagerState,next:null};ie===null?(te=ie=ke,$=_):ie=ie.next=ke,Gt.lanes|=Ne,ma|=Ne}fe=fe.next}while(fe!==null&&fe!==M);ie===null?$=_:ie.next=te,Ir(_,u.memoizedState)||(Wn=!0),u.memoizedState=_,u.baseState=$,u.baseQueue=ie,b.lastRenderedState=_}if(l=b.interleaved,l!==null){O=l;do M=O.lane,Gt.lanes|=M,ma|=M,O=O.next;while(O!==l)}else O===null&&(b.lanes=0);return[u.memoizedState,b.dispatch]}function ep(l){var u=br(),b=u.queue;if(b===null)throw Error(r(311));b.lastRenderedReducer=l;var _=b.dispatch,O=b.pending,M=u.memoizedState;if(O!==null){b.pending=null;var $=O=O.next;do M=l(M,$.action),$=$.next;while($!==O);Ir(M,u.memoizedState)||(Wn=!0),u.memoizedState=M,u.baseQueue===null&&(u.baseState=M),b.lastRenderedState=M}return[M,_]}function nw(){}function rw(l,u){var b=Gt,_=br(),O=u(),M=!Ir(_.memoizedState,O);if(M&&(_.memoizedState=O,Wn=!0),_=_.queue,tp(aw.bind(null,b,_,l),[l]),_.getSnapshot!==u||M||gn!==null&&gn.memoizedState.tag&1){if(b.flags|=2048,hc(9,sw.bind(null,b,_,O,u),void 0,null),xn===null)throw Error(r(349));(fa&30)!==0||iw(b,u,O)}return O}function iw(l,u,b){l.flags|=16384,l={getSnapshot:u,value:b},u=Gt.updateQueue,u===null?(u={lastEffect:null,stores:null},Gt.updateQueue=u,u.stores=[l]):(b=u.stores,b===null?u.stores=[l]:b.push(l))}function sw(l,u,b,_){u.value=b,u.getSnapshot=_,ow(u)&&lw(l)}function aw(l,u,b){return b(function(){ow(u)&&lw(l)})}function ow(l){var u=l.getSnapshot;l=l.value;try{var b=u();return!Ir(l,b)}catch{return!0}}function lw(l){var u=Oi(l,1);u!==null&&Br(u,l,1,-1)}function cw(l){var u=ei();return typeof l=="function"&&(l=l()),u.memoizedState=u.baseState=l,l={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:dc,lastRenderedState:l},u.queue=l,l=l.dispatch=w3.bind(null,Gt,l),[u.memoizedState,l]}function hc(l,u,b,_){return l={tag:l,create:u,destroy:b,deps:_,next:null},u=Gt.updateQueue,u===null?(u={lastEffect:null,stores:null},Gt.updateQueue=u,u.lastEffect=l.next=l):(b=u.lastEffect,b===null?u.lastEffect=l.next=l:(_=b.next,b.next=l,l.next=_,u.lastEffect=l)),l}function uw(){return br().memoizedState}function Cd(l,u,b,_){var O=ei();Gt.flags|=l,O.memoizedState=hc(1|u,b,void 0,_===void 0?null:_)}function Ed(l,u,b,_){var O=br();_=_===void 0?null:_;var M=void 0;if(un!==null){var $=un.memoizedState;if(M=$.destroy,_!==null&&Ym(_,$.deps)){O.memoizedState=hc(u,b,M,_);return}}Gt.flags|=l,O.memoizedState=hc(1|u,b,M,_)}function dw(l,u){return Cd(8390656,8,l,u)}function tp(l,u){return Ed(2048,8,l,u)}function hw(l,u){return Ed(4,2,l,u)}function fw(l,u){return Ed(4,4,l,u)}function mw(l,u){if(typeof u=="function")return l=l(),u(l),function(){u(null)};if(u!=null)return l=l(),u.current=l,function(){u.current=null}}function pw(l,u,b){return b=b!=null?b.concat([l]):null,Ed(4,4,mw.bind(null,u,l),b)}function np(){}function gw(l,u){var b=br();u=u===void 0?null:u;var _=b.memoizedState;return _!==null&&u!==null&&Ym(u,_[1])?_[0]:(b.memoizedState=[l,u],l)}function xw(l,u){var b=br();u=u===void 0?null:u;var _=b.memoizedState;return _!==null&&u!==null&&Ym(u,_[1])?_[0]:(l=l(),b.memoizedState=[l,u],l)}function vw(l,u,b){return(fa&21)===0?(l.baseState&&(l.baseState=!1,Wn=!0),l.memoizedState=b):(Ir(b,u)||(b=Gb(),Gt.lanes|=b,ma|=b,l.baseState=!0),u)}function b3(l,u){var b=Et;Et=b!==0&&4>b?b:4,l(!0);var _=Qm.transition;Qm.transition={};try{l(!1),u()}finally{Et=b,Qm.transition=_}}function yw(){return br().memoizedState}function j3(l,u,b){var _=ys(l);if(b={lane:_,action:b,hasEagerState:!1,eagerState:null,next:null},bw(l))jw(u,b);else if(b=Xj(l,u,b,_),b!==null){var O=Ln();Br(b,l,_,O),ww(b,u,_)}}function w3(l,u,b){var _=ys(l),O={lane:_,action:b,hasEagerState:!1,eagerState:null,next:null};if(bw(l))jw(u,O);else{var M=l.alternate;if(l.lanes===0&&(M===null||M.lanes===0)&&(M=u.lastRenderedReducer,M!==null))try{var $=u.lastRenderedState,te=M($,b);if(O.hasEagerState=!0,O.eagerState=te,Ir(te,$)){var ie=u.interleaved;ie===null?(O.next=O,Um(u)):(O.next=ie.next,ie.next=O),u.interleaved=O;return}}catch{}finally{}b=Xj(l,u,O,_),b!==null&&(O=Ln(),Br(b,l,_,O),ww(b,u,_))}}function bw(l){var u=l.alternate;return l===Gt||u!==null&&u===Gt}function jw(l,u){cc=Ad=!0;var b=l.pending;b===null?u.next=u:(u.next=b.next,b.next=u),l.pending=u}function ww(l,u,b){if((b&4194240)!==0){var _=u.lanes;_&=l.pendingLanes,b|=_,u.lanes=b,im(l,b)}}var Td={readContext:yr,useCallback:Cn,useContext:Cn,useEffect:Cn,useImperativeHandle:Cn,useInsertionEffect:Cn,useLayoutEffect:Cn,useMemo:Cn,useReducer:Cn,useRef:Cn,useState:Cn,useDebugValue:Cn,useDeferredValue:Cn,useTransition:Cn,useMutableSource:Cn,useSyncExternalStore:Cn,useId:Cn,unstable_isNewReconciler:!1},N3={readContext:yr,useCallback:function(l,u){return ei().memoizedState=[l,u===void 0?null:u],l},useContext:yr,useEffect:dw,useImperativeHandle:function(l,u,b){return b=b!=null?b.concat([l]):null,Cd(4194308,4,mw.bind(null,u,l),b)},useLayoutEffect:function(l,u){return Cd(4194308,4,l,u)},useInsertionEffect:function(l,u){return Cd(4,2,l,u)},useMemo:function(l,u){var b=ei();return u=u===void 0?null:u,l=l(),b.memoizedState=[l,u],l},useReducer:function(l,u,b){var _=ei();return u=b!==void 0?b(u):u,_.memoizedState=_.baseState=u,l={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:u},_.queue=l,l=l.dispatch=j3.bind(null,Gt,l),[_.memoizedState,l]},useRef:function(l){var u=ei();return l={current:l},u.memoizedState=l},useState:cw,useDebugValue:np,useDeferredValue:function(l){return ei().memoizedState=l},useTransition:function(){var l=cw(!1),u=l[0];return l=b3.bind(null,l[1]),ei().memoizedState=l,[u,l]},useMutableSource:function(){},useSyncExternalStore:function(l,u,b){var _=Gt,O=ei();if(qt){if(b===void 0)throw Error(r(407));b=b()}else{if(b=u(),xn===null)throw Error(r(349));(fa&30)!==0||iw(_,u,b)}O.memoizedState=b;var M={value:b,getSnapshot:u};return O.queue=M,dw(aw.bind(null,_,M,l),[l]),_.flags|=2048,hc(9,sw.bind(null,_,M,b,u),void 0,null),b},useId:function(){var l=ei(),u=xn.identifierPrefix;if(qt){var b=Ti,_=Ei;b=(_&~(1<<32-Dr(_)-1)).toString(32)+b,u=":"+u+"R"+b,b=uc++,0<b&&(u+="H"+b.toString(32)),u+=":"}else b=y3++,u=":"+u+"r"+b.toString(32)+":";return l.memoizedState=u},unstable_isNewReconciler:!1},k3={readContext:yr,useCallback:gw,useContext:yr,useEffect:tp,useImperativeHandle:pw,useInsertionEffect:hw,useLayoutEffect:fw,useMemo:xw,useReducer:Zm,useRef:uw,useState:function(){return Zm(dc)},useDebugValue:np,useDeferredValue:function(l){var u=br();return vw(u,un.memoizedState,l)},useTransition:function(){var l=Zm(dc)[0],u=br().memoizedState;return[l,u]},useMutableSource:nw,useSyncExternalStore:rw,useId:yw,unstable_isNewReconciler:!1},_3={readContext:yr,useCallback:gw,useContext:yr,useEffect:tp,useImperativeHandle:pw,useInsertionEffect:hw,useLayoutEffect:fw,useMemo:xw,useReducer:ep,useRef:uw,useState:function(){return ep(dc)},useDebugValue:np,useDeferredValue:function(l){var u=br();return un===null?u.memoizedState=l:vw(u,un.memoizedState,l)},useTransition:function(){var l=ep(dc)[0],u=br().memoizedState;return[l,u]},useMutableSource:nw,useSyncExternalStore:rw,useId:yw,unstable_isNewReconciler:!1};function Fr(l,u){if(l&&l.defaultProps){u=P({},u),l=l.defaultProps;for(var b in l)u[b]===void 0&&(u[b]=l[b]);return u}return u}function rp(l,u,b,_){u=l.memoizedState,b=b(_,u),b=b==null?u:P({},u,b),l.memoizedState=b,l.lanes===0&&(l.updateQueue.baseState=b)}var Od={isMounted:function(l){return(l=l._reactInternals)?aa(l)===l:!1},enqueueSetState:function(l,u,b){l=l._reactInternals;var _=Ln(),O=ys(l),M=Pi(_,O);M.payload=u,b!=null&&(M.callback=b),u=ps(l,M,O),u!==null&&(Br(u,l,O,_),Nd(u,l,O))},enqueueReplaceState:function(l,u,b){l=l._reactInternals;var _=Ln(),O=ys(l),M=Pi(_,O);M.tag=1,M.payload=u,b!=null&&(M.callback=b),u=ps(l,M,O),u!==null&&(Br(u,l,O,_),Nd(u,l,O))},enqueueForceUpdate:function(l,u){l=l._reactInternals;var b=Ln(),_=ys(l),O=Pi(b,_);O.tag=2,u!=null&&(O.callback=u),u=ps(l,O,_),u!==null&&(Br(u,l,_,b),Nd(u,l,_))}};function Nw(l,u,b,_,O,M,$){return l=l.stateNode,typeof l.shouldComponentUpdate=="function"?l.shouldComponentUpdate(_,M,$):u.prototype&&u.prototype.isPureReactComponent?!Jl(b,_)||!Jl(O,M):!0}function kw(l,u,b){var _=!1,O=hs,M=u.contextType;return typeof M=="object"&&M!==null?M=yr(M):(O=Hn(u)?la:An.current,_=u.contextTypes,M=(_=_!=null)?go(l,O):hs),u=new u(b,M),l.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Od,l.stateNode=u,u._reactInternals=l,_&&(l=l.stateNode,l.__reactInternalMemoizedUnmaskedChildContext=O,l.__reactInternalMemoizedMaskedChildContext=M),u}function _w(l,u,b,_){l=u.state,typeof u.componentWillReceiveProps=="function"&&u.componentWillReceiveProps(b,_),typeof u.UNSAFE_componentWillReceiveProps=="function"&&u.UNSAFE_componentWillReceiveProps(b,_),u.state!==l&&Od.enqueueReplaceState(u,u.state,null)}function ip(l,u,b,_){var O=l.stateNode;O.props=b,O.state=l.memoizedState,O.refs={},$m(l);var M=u.contextType;typeof M=="object"&&M!==null?O.context=yr(M):(M=Hn(u)?la:An.current,O.context=go(l,M)),O.state=l.memoizedState,M=u.getDerivedStateFromProps,typeof M=="function"&&(rp(l,u,M,b),O.state=l.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof O.getSnapshotBeforeUpdate=="function"||typeof O.UNSAFE_componentWillMount!="function"&&typeof O.componentWillMount!="function"||(u=O.state,typeof O.componentWillMount=="function"&&O.componentWillMount(),typeof O.UNSAFE_componentWillMount=="function"&&O.UNSAFE_componentWillMount(),u!==O.state&&Od.enqueueReplaceState(O,O.state,null),kd(l,b,O,_),O.state=l.memoizedState),typeof O.componentDidMount=="function"&&(l.flags|=4194308)}function ko(l,u){try{var b="",_=u;do b+=J(_),_=_.return;while(_);var O=b}catch(M){O=`
Error generating stack: `+M.message+`
`+M.stack}return{value:l,source:u,stack:O,digest:null}}function sp(l,u,b){return{value:l,source:null,stack:b??null,digest:u??null}}function ap(l,u){try{console.error(u.value)}catch(b){setTimeout(function(){throw b})}}var S3=typeof WeakMap=="function"?WeakMap:Map;function Sw(l,u,b){b=Pi(-1,b),b.tag=3,b.payload={element:null};var _=u.value;return b.callback=function(){Ld||(Ld=!0,jp=_),ap(l,u)},b}function Aw(l,u,b){b=Pi(-1,b),b.tag=3;var _=l.type.getDerivedStateFromError;if(typeof _=="function"){var O=u.value;b.payload=function(){return _(O)},b.callback=function(){ap(l,u)}}var M=l.stateNode;return M!==null&&typeof M.componentDidCatch=="function"&&(b.callback=function(){ap(l,u),typeof _!="function"&&(xs===null?xs=new Set([this]):xs.add(this));var $=u.stack;this.componentDidCatch(u.value,{componentStack:$!==null?$:""})}),b}function Cw(l,u,b){var _=l.pingCache;if(_===null){_=l.pingCache=new S3;var O=new Set;_.set(u,O)}else O=_.get(u),O===void 0&&(O=new Set,_.set(u,O));O.has(b)||(O.add(b),l=z3.bind(null,l,u,b),u.then(l,l))}function Ew(l){do{var u;if((u=l.tag===13)&&(u=l.memoizedState,u=u!==null?u.dehydrated!==null:!0),u)return l;l=l.return}while(l!==null);return null}function Tw(l,u,b,_,O){return(l.mode&1)===0?(l===u?l.flags|=65536:(l.flags|=128,b.flags|=131072,b.flags&=-52805,b.tag===1&&(b.alternate===null?b.tag=17:(u=Pi(-1,1),u.tag=2,ps(b,u,1))),b.lanes|=1),l):(l.flags|=65536,l.lanes=O,l)}var A3=k.ReactCurrentOwner,Wn=!1;function Mn(l,u,b,_){u.child=l===null?Yj(u,null,b,_):bo(u,l.child,b,_)}function Ow(l,u,b,_,O){b=b.render;var M=u.ref;return wo(u,O),_=Xm(l,u,b,_,M,O),b=Jm(),l!==null&&!Wn?(u.updateQueue=l.updateQueue,u.flags&=-2053,l.lanes&=~O,Di(l,u,O)):(qt&&b&&Im(u),u.flags|=1,Mn(l,u,_,O),u.child)}function Pw(l,u,b,_,O){if(l===null){var M=b.type;return typeof M=="function"&&!Cp(M)&&M.defaultProps===void 0&&b.compare===null&&b.defaultProps===void 0?(u.tag=15,u.type=M,Dw(l,u,M,_,O)):(l=$d(b.type,null,_,u,u.mode,O),l.ref=u.ref,l.return=u,u.child=l)}if(M=l.child,(l.lanes&O)===0){var $=M.memoizedProps;if(b=b.compare,b=b!==null?b:Jl,b($,_)&&l.ref===u.ref)return Di(l,u,O)}return u.flags|=1,l=js(M,_),l.ref=u.ref,l.return=u,u.child=l}function Dw(l,u,b,_,O){if(l!==null){var M=l.memoizedProps;if(Jl(M,_)&&l.ref===u.ref)if(Wn=!1,u.pendingProps=_=M,(l.lanes&O)!==0)(l.flags&131072)!==0&&(Wn=!0);else return u.lanes=l.lanes,Di(l,u,O)}return op(l,u,b,_,O)}function Iw(l,u,b){var _=u.pendingProps,O=_.children,M=l!==null?l.memoizedState:null;if(_.mode==="hidden")if((u.mode&1)===0)u.memoizedState={baseLanes:0,cachePool:null,transitions:null},It(So,lr),lr|=b;else{if((b&1073741824)===0)return l=M!==null?M.baseLanes|b:b,u.lanes=u.childLanes=1073741824,u.memoizedState={baseLanes:l,cachePool:null,transitions:null},u.updateQueue=null,It(So,lr),lr|=l,null;u.memoizedState={baseLanes:0,cachePool:null,transitions:null},_=M!==null?M.baseLanes:b,It(So,lr),lr|=_}else M!==null?(_=M.baseLanes|b,u.memoizedState=null):_=b,It(So,lr),lr|=_;return Mn(l,u,O,b),u.child}function Rw(l,u){var b=u.ref;(l===null&&b!==null||l!==null&&l.ref!==b)&&(u.flags|=512,u.flags|=2097152)}function op(l,u,b,_,O){var M=Hn(b)?la:An.current;return M=go(u,M),wo(u,O),b=Xm(l,u,b,_,M,O),_=Jm(),l!==null&&!Wn?(u.updateQueue=l.updateQueue,u.flags&=-2053,l.lanes&=~O,Di(l,u,O)):(qt&&_&&Im(u),u.flags|=1,Mn(l,u,b,O),u.child)}function Fw(l,u,b,_,O){if(Hn(b)){var M=!0;pd(u)}else M=!1;if(wo(u,O),u.stateNode===null)Dd(l,u),kw(u,b,_),ip(u,b,_,O),_=!0;else if(l===null){var $=u.stateNode,te=u.memoizedProps;$.props=te;var ie=$.context,fe=b.contextType;typeof fe=="object"&&fe!==null?fe=yr(fe):(fe=Hn(b)?la:An.current,fe=go(u,fe));var Ne=b.getDerivedStateFromProps,ke=typeof Ne=="function"||typeof $.getSnapshotBeforeUpdate=="function";ke||typeof $.UNSAFE_componentWillReceiveProps!="function"&&typeof $.componentWillReceiveProps!="function"||(te!==_||ie!==fe)&&_w(u,$,_,fe),ms=!1;var we=u.memoizedState;$.state=we,kd(u,_,$,O),ie=u.memoizedState,te!==_||we!==ie||$n.current||ms?(typeof Ne=="function"&&(rp(u,b,Ne,_),ie=u.memoizedState),(te=ms||Nw(u,b,te,_,we,ie,fe))?(ke||typeof $.UNSAFE_componentWillMount!="function"&&typeof $.componentWillMount!="function"||(typeof $.componentWillMount=="function"&&$.componentWillMount(),typeof $.UNSAFE_componentWillMount=="function"&&$.UNSAFE_componentWillMount()),typeof $.componentDidMount=="function"&&(u.flags|=4194308)):(typeof $.componentDidMount=="function"&&(u.flags|=4194308),u.memoizedProps=_,u.memoizedState=ie),$.props=_,$.state=ie,$.context=fe,_=te):(typeof $.componentDidMount=="function"&&(u.flags|=4194308),_=!1)}else{$=u.stateNode,Jj(l,u),te=u.memoizedProps,fe=u.type===u.elementType?te:Fr(u.type,te),$.props=fe,ke=u.pendingProps,we=$.context,ie=b.contextType,typeof ie=="object"&&ie!==null?ie=yr(ie):(ie=Hn(b)?la:An.current,ie=go(u,ie));var Re=b.getDerivedStateFromProps;(Ne=typeof Re=="function"||typeof $.getSnapshotBeforeUpdate=="function")||typeof $.UNSAFE_componentWillReceiveProps!="function"&&typeof $.componentWillReceiveProps!="function"||(te!==ke||we!==ie)&&_w(u,$,_,ie),ms=!1,we=u.memoizedState,$.state=we,kd(u,_,$,O);var Be=u.memoizedState;te!==ke||we!==Be||$n.current||ms?(typeof Re=="function"&&(rp(u,b,Re,_),Be=u.memoizedState),(fe=ms||Nw(u,b,fe,_,we,Be,ie)||!1)?(Ne||typeof $.UNSAFE_componentWillUpdate!="function"&&typeof $.componentWillUpdate!="function"||(typeof $.componentWillUpdate=="function"&&$.componentWillUpdate(_,Be,ie),typeof $.UNSAFE_componentWillUpdate=="function"&&$.UNSAFE_componentWillUpdate(_,Be,ie)),typeof $.componentDidUpdate=="function"&&(u.flags|=4),typeof $.getSnapshotBeforeUpdate=="function"&&(u.flags|=1024)):(typeof $.componentDidUpdate!="function"||te===l.memoizedProps&&we===l.memoizedState||(u.flags|=4),typeof $.getSnapshotBeforeUpdate!="function"||te===l.memoizedProps&&we===l.memoizedState||(u.flags|=1024),u.memoizedProps=_,u.memoizedState=Be),$.props=_,$.state=Be,$.context=ie,_=fe):(typeof $.componentDidUpdate!="function"||te===l.memoizedProps&&we===l.memoizedState||(u.flags|=4),typeof $.getSnapshotBeforeUpdate!="function"||te===l.memoizedProps&&we===l.memoizedState||(u.flags|=1024),_=!1)}return lp(l,u,b,_,M,O)}function lp(l,u,b,_,O,M){Rw(l,u);var $=(u.flags&128)!==0;if(!_&&!$)return O&&qj(u,b,!1),Di(l,u,M);_=u.stateNode,A3.current=u;var te=$&&typeof b.getDerivedStateFromError!="function"?null:_.render();return u.flags|=1,l!==null&&$?(u.child=bo(u,l.child,null,M),u.child=bo(u,null,te,M)):Mn(l,u,te,M),u.memoizedState=_.state,O&&qj(u,b,!0),u.child}function Mw(l){var u=l.stateNode;u.pendingContext?Bj(l,u.pendingContext,u.pendingContext!==u.context):u.context&&Bj(l,u.context,!1),Hm(l,u.containerInfo)}function Lw(l,u,b,_,O){return yo(),Lm(O),u.flags|=256,Mn(l,u,b,_),u.child}var cp={dehydrated:null,treeContext:null,retryLane:0};function up(l){return{baseLanes:l,cachePool:null,transitions:null}}function Bw(l,u,b){var _=u.pendingProps,O=Kt.current,M=!1,$=(u.flags&128)!==0,te;if((te=$)||(te=l!==null&&l.memoizedState===null?!1:(O&2)!==0),te?(M=!0,u.flags&=-129):(l===null||l.memoizedState!==null)&&(O|=1),It(Kt,O&1),l===null)return Mm(u),l=u.memoizedState,l!==null&&(l=l.dehydrated,l!==null)?((u.mode&1)===0?u.lanes=1:l.data==="$!"?u.lanes=8:u.lanes=1073741824,null):($=_.children,l=_.fallback,M?(_=u.mode,M=u.child,$={mode:"hidden",children:$},(_&1)===0&&M!==null?(M.childLanes=0,M.pendingProps=$):M=Hd($,_,0,null),l=va(l,_,b,null),M.return=u,l.return=u,M.sibling=l,u.child=M,u.child.memoizedState=up(b),u.memoizedState=cp,l):dp(u,$));if(O=l.memoizedState,O!==null&&(te=O.dehydrated,te!==null))return C3(l,u,$,_,te,O,b);if(M){M=_.fallback,$=u.mode,O=l.child,te=O.sibling;var ie={mode:"hidden",children:_.children};return($&1)===0&&u.child!==O?(_=u.child,_.childLanes=0,_.pendingProps=ie,u.deletions=null):(_=js(O,ie),_.subtreeFlags=O.subtreeFlags&14680064),te!==null?M=js(te,M):(M=va(M,$,b,null),M.flags|=2),M.return=u,_.return=u,_.sibling=M,u.child=_,_=M,M=u.child,$=l.child.memoizedState,$=$===null?up(b):{baseLanes:$.baseLanes|b,cachePool:null,transitions:$.transitions},M.memoizedState=$,M.childLanes=l.childLanes&~b,u.memoizedState=cp,_}return M=l.child,l=M.sibling,_=js(M,{mode:"visible",children:_.children}),(u.mode&1)===0&&(_.lanes=b),_.return=u,_.sibling=null,l!==null&&(b=u.deletions,b===null?(u.deletions=[l],u.flags|=16):b.push(l)),u.child=_,u.memoizedState=null,_}function dp(l,u){return u=Hd({mode:"visible",children:u},l.mode,0,null),u.return=l,l.child=u}function Pd(l,u,b,_){return _!==null&&Lm(_),bo(u,l.child,null,b),l=dp(u,u.pendingProps.children),l.flags|=2,u.memoizedState=null,l}function C3(l,u,b,_,O,M,$){if(b)return u.flags&256?(u.flags&=-257,_=sp(Error(r(422))),Pd(l,u,$,_)):u.memoizedState!==null?(u.child=l.child,u.flags|=128,null):(M=_.fallback,O=u.mode,_=Hd({mode:"visible",children:_.children},O,0,null),M=va(M,O,$,null),M.flags|=2,_.return=u,M.return=u,_.sibling=M,u.child=_,(u.mode&1)!==0&&bo(u,l.child,null,$),u.child.memoizedState=up($),u.memoizedState=cp,M);if((u.mode&1)===0)return Pd(l,u,$,null);if(O.data==="$!"){if(_=O.nextSibling&&O.nextSibling.dataset,_)var te=_.dgst;return _=te,M=Error(r(419)),_=sp(M,_,void 0),Pd(l,u,$,_)}if(te=($&l.childLanes)!==0,Wn||te){if(_=xn,_!==null){switch($&-$){case 4:O=2;break;case 16:O=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:O=32;break;case 536870912:O=268435456;break;default:O=0}O=(O&(_.suspendedLanes|$))!==0?0:O,O!==0&&O!==M.retryLane&&(M.retryLane=O,Oi(l,O),Br(_,l,O,-1))}return Ap(),_=sp(Error(r(421))),Pd(l,u,$,_)}return O.data==="$?"?(u.flags|=128,u.child=l.child,u=q3.bind(null,l),O._reactRetry=u,null):(l=M.treeContext,or=us(O.nextSibling),ar=u,qt=!0,Rr=null,l!==null&&(xr[vr++]=Ei,xr[vr++]=Ti,xr[vr++]=ca,Ei=l.id,Ti=l.overflow,ca=u),u=dp(u,_.children),u.flags|=4096,u)}function zw(l,u,b){l.lanes|=u;var _=l.alternate;_!==null&&(_.lanes|=u),Vm(l.return,u,b)}function hp(l,u,b,_,O){var M=l.memoizedState;M===null?l.memoizedState={isBackwards:u,rendering:null,renderingStartTime:0,last:_,tail:b,tailMode:O}:(M.isBackwards=u,M.rendering=null,M.renderingStartTime=0,M.last=_,M.tail=b,M.tailMode=O)}function qw(l,u,b){var _=u.pendingProps,O=_.revealOrder,M=_.tail;if(Mn(l,u,_.children,b),_=Kt.current,(_&2)!==0)_=_&1|2,u.flags|=128;else{if(l!==null&&(l.flags&128)!==0)e:for(l=u.child;l!==null;){if(l.tag===13)l.memoizedState!==null&&zw(l,b,u);else if(l.tag===19)zw(l,b,u);else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===u)break e;for(;l.sibling===null;){if(l.return===null||l.return===u)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}_&=1}if(It(Kt,_),(u.mode&1)===0)u.memoizedState=null;else switch(O){case"forwards":for(b=u.child,O=null;b!==null;)l=b.alternate,l!==null&&_d(l)===null&&(O=b),b=b.sibling;b=O,b===null?(O=u.child,u.child=null):(O=b.sibling,b.sibling=null),hp(u,!1,O,b,M);break;case"backwards":for(b=null,O=u.child,u.child=null;O!==null;){if(l=O.alternate,l!==null&&_d(l)===null){u.child=O;break}l=O.sibling,O.sibling=b,b=O,O=l}hp(u,!0,b,null,M);break;case"together":hp(u,!1,null,null,void 0);break;default:u.memoizedState=null}return u.child}function Dd(l,u){(u.mode&1)===0&&l!==null&&(l.alternate=null,u.alternate=null,u.flags|=2)}function Di(l,u,b){if(l!==null&&(u.dependencies=l.dependencies),ma|=u.lanes,(b&u.childLanes)===0)return null;if(l!==null&&u.child!==l.child)throw Error(r(153));if(u.child!==null){for(l=u.child,b=js(l,l.pendingProps),u.child=b,b.return=u;l.sibling!==null;)l=l.sibling,b=b.sibling=js(l,l.pendingProps),b.return=u;b.sibling=null}return u.child}function E3(l,u,b){switch(u.tag){case 3:Mw(u),yo();break;case 5:tw(u);break;case 1:Hn(u.type)&&pd(u);break;case 4:Hm(u,u.stateNode.containerInfo);break;case 10:var _=u.type._context,O=u.memoizedProps.value;It(jd,_._currentValue),_._currentValue=O;break;case 13:if(_=u.memoizedState,_!==null)return _.dehydrated!==null?(It(Kt,Kt.current&1),u.flags|=128,null):(b&u.child.childLanes)!==0?Bw(l,u,b):(It(Kt,Kt.current&1),l=Di(l,u,b),l!==null?l.sibling:null);It(Kt,Kt.current&1);break;case 19:if(_=(b&u.childLanes)!==0,(l.flags&128)!==0){if(_)return qw(l,u,b);u.flags|=128}if(O=u.memoizedState,O!==null&&(O.rendering=null,O.tail=null,O.lastEffect=null),It(Kt,Kt.current),_)break;return null;case 22:case 23:return u.lanes=0,Iw(l,u,b)}return Di(l,u,b)}var Vw,fp,Uw,$w;Vw=function(l,u){for(var b=u.child;b!==null;){if(b.tag===5||b.tag===6)l.appendChild(b.stateNode);else if(b.tag!==4&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===u)break;for(;b.sibling===null;){if(b.return===null||b.return===u)return;b=b.return}b.sibling.return=b.return,b=b.sibling}},fp=function(){},Uw=function(l,u,b,_){var O=l.memoizedProps;if(O!==_){l=u.stateNode,ha(Zr.current);var M=null;switch(b){case"input":O=Te(l,O),_=Te(l,_),M=[];break;case"select":O=P({},O,{value:void 0}),_=P({},_,{value:void 0}),M=[];break;case"textarea":O=je(l,O),_=je(l,_),M=[];break;default:typeof O.onClick!="function"&&typeof _.onClick=="function"&&(l.onclick=hd)}jn(b,_);var $;b=null;for(fe in O)if(!_.hasOwnProperty(fe)&&O.hasOwnProperty(fe)&&O[fe]!=null)if(fe==="style"){var te=O[fe];for($ in te)te.hasOwnProperty($)&&(b||(b={}),b[$]="")}else fe!=="dangerouslySetInnerHTML"&&fe!=="children"&&fe!=="suppressContentEditableWarning"&&fe!=="suppressHydrationWarning"&&fe!=="autoFocus"&&(s.hasOwnProperty(fe)?M||(M=[]):(M=M||[]).push(fe,null));for(fe in _){var ie=_[fe];if(te=O!=null?O[fe]:void 0,_.hasOwnProperty(fe)&&ie!==te&&(ie!=null||te!=null))if(fe==="style")if(te){for($ in te)!te.hasOwnProperty($)||ie&&ie.hasOwnProperty($)||(b||(b={}),b[$]="");for($ in ie)ie.hasOwnProperty($)&&te[$]!==ie[$]&&(b||(b={}),b[$]=ie[$])}else b||(M||(M=[]),M.push(fe,b)),b=ie;else fe==="dangerouslySetInnerHTML"?(ie=ie?ie.__html:void 0,te=te?te.__html:void 0,ie!=null&&te!==ie&&(M=M||[]).push(fe,ie)):fe==="children"?typeof ie!="string"&&typeof ie!="number"||(M=M||[]).push(fe,""+ie):fe!=="suppressContentEditableWarning"&&fe!=="suppressHydrationWarning"&&(s.hasOwnProperty(fe)?(ie!=null&&fe==="onScroll"&&Lt("scroll",l),M||te===ie||(M=[])):(M=M||[]).push(fe,ie))}b&&(M=M||[]).push("style",b);var fe=M;(u.updateQueue=fe)&&(u.flags|=4)}},$w=function(l,u,b,_){b!==_&&(u.flags|=4)};function fc(l,u){if(!qt)switch(l.tailMode){case"hidden":u=l.tail;for(var b=null;u!==null;)u.alternate!==null&&(b=u),u=u.sibling;b===null?l.tail=null:b.sibling=null;break;case"collapsed":b=l.tail;for(var _=null;b!==null;)b.alternate!==null&&(_=b),b=b.sibling;_===null?u||l.tail===null?l.tail=null:l.tail.sibling=null:_.sibling=null}}function En(l){var u=l.alternate!==null&&l.alternate.child===l.child,b=0,_=0;if(u)for(var O=l.child;O!==null;)b|=O.lanes|O.childLanes,_|=O.subtreeFlags&14680064,_|=O.flags&14680064,O.return=l,O=O.sibling;else for(O=l.child;O!==null;)b|=O.lanes|O.childLanes,_|=O.subtreeFlags,_|=O.flags,O.return=l,O=O.sibling;return l.subtreeFlags|=_,l.childLanes=b,u}function T3(l,u,b){var _=u.pendingProps;switch(Rm(u),u.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return En(u),null;case 1:return Hn(u.type)&&md(),En(u),null;case 3:return _=u.stateNode,No(),Bt($n),Bt(An),Gm(),_.pendingContext&&(_.context=_.pendingContext,_.pendingContext=null),(l===null||l.child===null)&&(yd(u)?u.flags|=4:l===null||l.memoizedState.isDehydrated&&(u.flags&256)===0||(u.flags|=1024,Rr!==null&&(kp(Rr),Rr=null))),fp(l,u),En(u),null;case 5:Wm(u);var O=ha(lc.current);if(b=u.type,l!==null&&u.stateNode!=null)Uw(l,u,b,_,O),l.ref!==u.ref&&(u.flags|=512,u.flags|=2097152);else{if(!_){if(u.stateNode===null)throw Error(r(166));return En(u),null}if(l=ha(Zr.current),yd(u)){_=u.stateNode,b=u.type;var M=u.memoizedProps;switch(_[Jr]=u,_[rc]=M,l=(u.mode&1)!==0,b){case"dialog":Lt("cancel",_),Lt("close",_);break;case"iframe":case"object":case"embed":Lt("load",_);break;case"video":case"audio":for(O=0;O<ec.length;O++)Lt(ec[O],_);break;case"source":Lt("error",_);break;case"img":case"image":case"link":Lt("error",_),Lt("load",_);break;case"details":Lt("toggle",_);break;case"input":We(_,M),Lt("invalid",_);break;case"select":_._wrapperState={wasMultiple:!!M.multiple},Lt("invalid",_);break;case"textarea":tt(_,M),Lt("invalid",_)}jn(b,M),O=null;for(var $ in M)if(M.hasOwnProperty($)){var te=M[$];$==="children"?typeof te=="string"?_.textContent!==te&&(M.suppressHydrationWarning!==!0&&dd(_.textContent,te,l),O=["children",te]):typeof te=="number"&&_.textContent!==""+te&&(M.suppressHydrationWarning!==!0&&dd(_.textContent,te,l),O=["children",""+te]):s.hasOwnProperty($)&&te!=null&&$==="onScroll"&&Lt("scroll",_)}switch(b){case"input":ve(_),ge(_,M,!0);break;case"textarea":ve(_),rt(_);break;case"select":case"option":break;default:typeof M.onClick=="function"&&(_.onclick=hd)}_=O,u.updateQueue=_,_!==null&&(u.flags|=4)}else{$=O.nodeType===9?O:O.ownerDocument,l==="http://www.w3.org/1999/xhtml"&&(l=xe(b)),l==="http://www.w3.org/1999/xhtml"?b==="script"?(l=$.createElement("div"),l.innerHTML="<script><\/script>",l=l.removeChild(l.firstChild)):typeof _.is=="string"?l=$.createElement(b,{is:_.is}):(l=$.createElement(b),b==="select"&&($=l,_.multiple?$.multiple=!0:_.size&&($.size=_.size))):l=$.createElementNS(l,b),l[Jr]=u,l[rc]=_,Vw(l,u,!1,!1),u.stateNode=l;e:{switch($=Yr(b,_),b){case"dialog":Lt("cancel",l),Lt("close",l),O=_;break;case"iframe":case"object":case"embed":Lt("load",l),O=_;break;case"video":case"audio":for(O=0;O<ec.length;O++)Lt(ec[O],l);O=_;break;case"source":Lt("error",l),O=_;break;case"img":case"image":case"link":Lt("error",l),Lt("load",l),O=_;break;case"details":Lt("toggle",l),O=_;break;case"input":We(l,_),O=Te(l,_),Lt("invalid",l);break;case"option":O=_;break;case"select":l._wrapperState={wasMultiple:!!_.multiple},O=P({},_,{value:void 0}),Lt("invalid",l);break;case"textarea":tt(l,_),O=je(l,_),Lt("invalid",l);break;default:O=_}jn(b,O),te=O;for(M in te)if(te.hasOwnProperty(M)){var ie=te[M];M==="style"?rs(l,ie):M==="dangerouslySetInnerHTML"?(ie=ie?ie.__html:void 0,ie!=null&&it(l,ie)):M==="children"?typeof ie=="string"?(b!=="textarea"||ie!=="")&&He(l,ie):typeof ie=="number"&&He(l,""+ie):M!=="suppressContentEditableWarning"&&M!=="suppressHydrationWarning"&&M!=="autoFocus"&&(s.hasOwnProperty(M)?ie!=null&&M==="onScroll"&&Lt("scroll",l):ie!=null&&w(l,M,ie,$))}switch(b){case"input":ve(l),ge(l,_,!1);break;case"textarea":ve(l),rt(l);break;case"option":_.value!=null&&l.setAttribute("value",""+ee(_.value));break;case"select":l.multiple=!!_.multiple,M=_.value,M!=null?Pe(l,!!_.multiple,M,!1):_.defaultValue!=null&&Pe(l,!!_.multiple,_.defaultValue,!0);break;default:typeof O.onClick=="function"&&(l.onclick=hd)}switch(b){case"button":case"input":case"select":case"textarea":_=!!_.autoFocus;break e;case"img":_=!0;break e;default:_=!1}}_&&(u.flags|=4)}u.ref!==null&&(u.flags|=512,u.flags|=2097152)}return En(u),null;case 6:if(l&&u.stateNode!=null)$w(l,u,l.memoizedProps,_);else{if(typeof _!="string"&&u.stateNode===null)throw Error(r(166));if(b=ha(lc.current),ha(Zr.current),yd(u)){if(_=u.stateNode,b=u.memoizedProps,_[Jr]=u,(M=_.nodeValue!==b)&&(l=ar,l!==null))switch(l.tag){case 3:dd(_.nodeValue,b,(l.mode&1)!==0);break;case 5:l.memoizedProps.suppressHydrationWarning!==!0&&dd(_.nodeValue,b,(l.mode&1)!==0)}M&&(u.flags|=4)}else _=(b.nodeType===9?b:b.ownerDocument).createTextNode(_),_[Jr]=u,u.stateNode=_}return En(u),null;case 13:if(Bt(Kt),_=u.memoizedState,l===null||l.memoizedState!==null&&l.memoizedState.dehydrated!==null){if(qt&&or!==null&&(u.mode&1)!==0&&(u.flags&128)===0)Kj(),yo(),u.flags|=98560,M=!1;else if(M=yd(u),_!==null&&_.dehydrated!==null){if(l===null){if(!M)throw Error(r(318));if(M=u.memoizedState,M=M!==null?M.dehydrated:null,!M)throw Error(r(317));M[Jr]=u}else yo(),(u.flags&128)===0&&(u.memoizedState=null),u.flags|=4;En(u),M=!1}else Rr!==null&&(kp(Rr),Rr=null),M=!0;if(!M)return u.flags&65536?u:null}return(u.flags&128)!==0?(u.lanes=b,u):(_=_!==null,_!==(l!==null&&l.memoizedState!==null)&&_&&(u.child.flags|=8192,(u.mode&1)!==0&&(l===null||(Kt.current&1)!==0?dn===0&&(dn=3):Ap())),u.updateQueue!==null&&(u.flags|=4),En(u),null);case 4:return No(),fp(l,u),l===null&&tc(u.stateNode.containerInfo),En(u),null;case 10:return qm(u.type._context),En(u),null;case 17:return Hn(u.type)&&md(),En(u),null;case 19:if(Bt(Kt),M=u.memoizedState,M===null)return En(u),null;if(_=(u.flags&128)!==0,$=M.rendering,$===null)if(_)fc(M,!1);else{if(dn!==0||l!==null&&(l.flags&128)!==0)for(l=u.child;l!==null;){if($=_d(l),$!==null){for(u.flags|=128,fc(M,!1),_=$.updateQueue,_!==null&&(u.updateQueue=_,u.flags|=4),u.subtreeFlags=0,_=b,b=u.child;b!==null;)M=b,l=_,M.flags&=14680066,$=M.alternate,$===null?(M.childLanes=0,M.lanes=l,M.child=null,M.subtreeFlags=0,M.memoizedProps=null,M.memoizedState=null,M.updateQueue=null,M.dependencies=null,M.stateNode=null):(M.childLanes=$.childLanes,M.lanes=$.lanes,M.child=$.child,M.subtreeFlags=0,M.deletions=null,M.memoizedProps=$.memoizedProps,M.memoizedState=$.memoizedState,M.updateQueue=$.updateQueue,M.type=$.type,l=$.dependencies,M.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),b=b.sibling;return It(Kt,Kt.current&1|2),u.child}l=l.sibling}M.tail!==null&&tn()>Ao&&(u.flags|=128,_=!0,fc(M,!1),u.lanes=4194304)}else{if(!_)if(l=_d($),l!==null){if(u.flags|=128,_=!0,b=l.updateQueue,b!==null&&(u.updateQueue=b,u.flags|=4),fc(M,!0),M.tail===null&&M.tailMode==="hidden"&&!$.alternate&&!qt)return En(u),null}else 2*tn()-M.renderingStartTime>Ao&&b!==1073741824&&(u.flags|=128,_=!0,fc(M,!1),u.lanes=4194304);M.isBackwards?($.sibling=u.child,u.child=$):(b=M.last,b!==null?b.sibling=$:u.child=$,M.last=$)}return M.tail!==null?(u=M.tail,M.rendering=u,M.tail=u.sibling,M.renderingStartTime=tn(),u.sibling=null,b=Kt.current,It(Kt,_?b&1|2:b&1),u):(En(u),null);case 22:case 23:return Sp(),_=u.memoizedState!==null,l!==null&&l.memoizedState!==null!==_&&(u.flags|=8192),_&&(u.mode&1)!==0?(lr&1073741824)!==0&&(En(u),u.subtreeFlags&6&&(u.flags|=8192)):En(u),null;case 24:return null;case 25:return null}throw Error(r(156,u.tag))}function O3(l,u){switch(Rm(u),u.tag){case 1:return Hn(u.type)&&md(),l=u.flags,l&65536?(u.flags=l&-65537|128,u):null;case 3:return No(),Bt($n),Bt(An),Gm(),l=u.flags,(l&65536)!==0&&(l&128)===0?(u.flags=l&-65537|128,u):null;case 5:return Wm(u),null;case 13:if(Bt(Kt),l=u.memoizedState,l!==null&&l.dehydrated!==null){if(u.alternate===null)throw Error(r(340));yo()}return l=u.flags,l&65536?(u.flags=l&-65537|128,u):null;case 19:return Bt(Kt),null;case 4:return No(),null;case 10:return qm(u.type._context),null;case 22:case 23:return Sp(),null;case 24:return null;default:return null}}var Id=!1,Tn=!1,P3=typeof WeakSet=="function"?WeakSet:Set,Le=null;function _o(l,u){var b=l.ref;if(b!==null)if(typeof b=="function")try{b(null)}catch(_){Jt(l,u,_)}else b.current=null}function mp(l,u,b){try{b()}catch(_){Jt(l,u,_)}}var Hw=!1;function D3(l,u){if(Sm=ed,l=Nj(),vm(l)){if("selectionStart"in l)var b={start:l.selectionStart,end:l.selectionEnd};else e:{b=(b=l.ownerDocument)&&b.defaultView||window;var _=b.getSelection&&b.getSelection();if(_&&_.rangeCount!==0){b=_.anchorNode;var O=_.anchorOffset,M=_.focusNode;_=_.focusOffset;try{b.nodeType,M.nodeType}catch{b=null;break e}var $=0,te=-1,ie=-1,fe=0,Ne=0,ke=l,we=null;t:for(;;){for(var Re;ke!==b||O!==0&&ke.nodeType!==3||(te=$+O),ke!==M||_!==0&&ke.nodeType!==3||(ie=$+_),ke.nodeType===3&&($+=ke.nodeValue.length),(Re=ke.firstChild)!==null;)we=ke,ke=Re;for(;;){if(ke===l)break t;if(we===b&&++fe===O&&(te=$),we===M&&++Ne===_&&(ie=$),(Re=ke.nextSibling)!==null)break;ke=we,we=ke.parentNode}ke=Re}b=te===-1||ie===-1?null:{start:te,end:ie}}else b=null}b=b||{start:0,end:0}}else b=null;for(Am={focusedElem:l,selectionRange:b},ed=!1,Le=u;Le!==null;)if(u=Le,l=u.child,(u.subtreeFlags&1028)!==0&&l!==null)l.return=u,Le=l;else for(;Le!==null;){u=Le;try{var Be=u.alternate;if((u.flags&1024)!==0)switch(u.tag){case 0:case 11:case 15:break;case 1:if(Be!==null){var Ve=Be.memoizedProps,nn=Be.memoizedState,ue=u.stateNode,oe=ue.getSnapshotBeforeUpdate(u.elementType===u.type?Ve:Fr(u.type,Ve),nn);ue.__reactInternalSnapshotBeforeUpdate=oe}break;case 3:var he=u.stateNode.containerInfo;he.nodeType===1?he.textContent="":he.nodeType===9&&he.documentElement&&he.removeChild(he.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(Ee){Jt(u,u.return,Ee)}if(l=u.sibling,l!==null){l.return=u.return,Le=l;break}Le=u.return}return Be=Hw,Hw=!1,Be}function mc(l,u,b){var _=u.updateQueue;if(_=_!==null?_.lastEffect:null,_!==null){var O=_=_.next;do{if((O.tag&l)===l){var M=O.destroy;O.destroy=void 0,M!==void 0&&mp(u,b,M)}O=O.next}while(O!==_)}}function Rd(l,u){if(u=u.updateQueue,u=u!==null?u.lastEffect:null,u!==null){var b=u=u.next;do{if((b.tag&l)===l){var _=b.create;b.destroy=_()}b=b.next}while(b!==u)}}function pp(l){var u=l.ref;if(u!==null){var b=l.stateNode;switch(l.tag){case 5:l=b;break;default:l=b}typeof u=="function"?u(l):u.current=l}}function Ww(l){var u=l.alternate;u!==null&&(l.alternate=null,Ww(u)),l.child=null,l.deletions=null,l.sibling=null,l.tag===5&&(u=l.stateNode,u!==null&&(delete u[Jr],delete u[rc],delete u[Om],delete u[p3],delete u[g3])),l.stateNode=null,l.return=null,l.dependencies=null,l.memoizedProps=null,l.memoizedState=null,l.pendingProps=null,l.stateNode=null,l.updateQueue=null}function Kw(l){return l.tag===5||l.tag===3||l.tag===4}function Gw(l){e:for(;;){for(;l.sibling===null;){if(l.return===null||Kw(l.return))return null;l=l.return}for(l.sibling.return=l.return,l=l.sibling;l.tag!==5&&l.tag!==6&&l.tag!==18;){if(l.flags&2||l.child===null||l.tag===4)continue e;l.child.return=l,l=l.child}if(!(l.flags&2))return l.stateNode}}function gp(l,u,b){var _=l.tag;if(_===5||_===6)l=l.stateNode,u?b.nodeType===8?b.parentNode.insertBefore(l,u):b.insertBefore(l,u):(b.nodeType===8?(u=b.parentNode,u.insertBefore(l,b)):(u=b,u.appendChild(l)),b=b._reactRootContainer,b!=null||u.onclick!==null||(u.onclick=hd));else if(_!==4&&(l=l.child,l!==null))for(gp(l,u,b),l=l.sibling;l!==null;)gp(l,u,b),l=l.sibling}function xp(l,u,b){var _=l.tag;if(_===5||_===6)l=l.stateNode,u?b.insertBefore(l,u):b.appendChild(l);else if(_!==4&&(l=l.child,l!==null))for(xp(l,u,b),l=l.sibling;l!==null;)xp(l,u,b),l=l.sibling}var wn=null,Mr=!1;function gs(l,u,b){for(b=b.child;b!==null;)Qw(l,u,b),b=b.sibling}function Qw(l,u,b){if(Xr&&typeof Xr.onCommitFiberUnmount=="function")try{Xr.onCommitFiberUnmount(Gu,b)}catch{}switch(b.tag){case 5:Tn||_o(b,u);case 6:var _=wn,O=Mr;wn=null,gs(l,u,b),wn=_,Mr=O,wn!==null&&(Mr?(l=wn,b=b.stateNode,l.nodeType===8?l.parentNode.removeChild(b):l.removeChild(b)):wn.removeChild(b.stateNode));break;case 18:wn!==null&&(Mr?(l=wn,b=b.stateNode,l.nodeType===8?Tm(l.parentNode,b):l.nodeType===1&&Tm(l,b),Wl(l)):Tm(wn,b.stateNode));break;case 4:_=wn,O=Mr,wn=b.stateNode.containerInfo,Mr=!0,gs(l,u,b),wn=_,Mr=O;break;case 0:case 11:case 14:case 15:if(!Tn&&(_=b.updateQueue,_!==null&&(_=_.lastEffect,_!==null))){O=_=_.next;do{var M=O,$=M.destroy;M=M.tag,$!==void 0&&((M&2)!==0||(M&4)!==0)&&mp(b,u,$),O=O.next}while(O!==_)}gs(l,u,b);break;case 1:if(!Tn&&(_o(b,u),_=b.stateNode,typeof _.componentWillUnmount=="function"))try{_.props=b.memoizedProps,_.state=b.memoizedState,_.componentWillUnmount()}catch(te){Jt(b,u,te)}gs(l,u,b);break;case 21:gs(l,u,b);break;case 22:b.mode&1?(Tn=(_=Tn)||b.memoizedState!==null,gs(l,u,b),Tn=_):gs(l,u,b);break;default:gs(l,u,b)}}function Yw(l){var u=l.updateQueue;if(u!==null){l.updateQueue=null;var b=l.stateNode;b===null&&(b=l.stateNode=new P3),u.forEach(function(_){var O=V3.bind(null,l,_);b.has(_)||(b.add(_),_.then(O,O))})}}function Lr(l,u){var b=u.deletions;if(b!==null)for(var _=0;_<b.length;_++){var O=b[_];try{var M=l,$=u,te=$;e:for(;te!==null;){switch(te.tag){case 5:wn=te.stateNode,Mr=!1;break e;case 3:wn=te.stateNode.containerInfo,Mr=!0;break e;case 4:wn=te.stateNode.containerInfo,Mr=!0;break e}te=te.return}if(wn===null)throw Error(r(160));Qw(M,$,O),wn=null,Mr=!1;var ie=O.alternate;ie!==null&&(ie.return=null),O.return=null}catch(fe){Jt(O,u,fe)}}if(u.subtreeFlags&12854)for(u=u.child;u!==null;)Xw(u,l),u=u.sibling}function Xw(l,u){var b=l.alternate,_=l.flags;switch(l.tag){case 0:case 11:case 14:case 15:if(Lr(u,l),ti(l),_&4){try{mc(3,l,l.return),Rd(3,l)}catch(Ve){Jt(l,l.return,Ve)}try{mc(5,l,l.return)}catch(Ve){Jt(l,l.return,Ve)}}break;case 1:Lr(u,l),ti(l),_&512&&b!==null&&_o(b,b.return);break;case 5:if(Lr(u,l),ti(l),_&512&&b!==null&&_o(b,b.return),l.flags&32){var O=l.stateNode;try{He(O,"")}catch(Ve){Jt(l,l.return,Ve)}}if(_&4&&(O=l.stateNode,O!=null)){var M=l.memoizedProps,$=b!==null?b.memoizedProps:M,te=l.type,ie=l.updateQueue;if(l.updateQueue=null,ie!==null)try{te==="input"&&M.type==="radio"&&M.name!=null&&ut(O,M),Yr(te,$);var fe=Yr(te,M);for($=0;$<ie.length;$+=2){var Ne=ie[$],ke=ie[$+1];Ne==="style"?rs(O,ke):Ne==="dangerouslySetInnerHTML"?it(O,ke):Ne==="children"?He(O,ke):w(O,Ne,ke,fe)}switch(te){case"input":nt(O,M);break;case"textarea":et(O,M);break;case"select":var we=O._wrapperState.wasMultiple;O._wrapperState.wasMultiple=!!M.multiple;var Re=M.value;Re!=null?Pe(O,!!M.multiple,Re,!1):we!==!!M.multiple&&(M.defaultValue!=null?Pe(O,!!M.multiple,M.defaultValue,!0):Pe(O,!!M.multiple,M.multiple?[]:"",!1))}O[rc]=M}catch(Ve){Jt(l,l.return,Ve)}}break;case 6:if(Lr(u,l),ti(l),_&4){if(l.stateNode===null)throw Error(r(162));O=l.stateNode,M=l.memoizedProps;try{O.nodeValue=M}catch(Ve){Jt(l,l.return,Ve)}}break;case 3:if(Lr(u,l),ti(l),_&4&&b!==null&&b.memoizedState.isDehydrated)try{Wl(u.containerInfo)}catch(Ve){Jt(l,l.return,Ve)}break;case 4:Lr(u,l),ti(l);break;case 13:Lr(u,l),ti(l),O=l.child,O.flags&8192&&(M=O.memoizedState!==null,O.stateNode.isHidden=M,!M||O.alternate!==null&&O.alternate.memoizedState!==null||(bp=tn())),_&4&&Yw(l);break;case 22:if(Ne=b!==null&&b.memoizedState!==null,l.mode&1?(Tn=(fe=Tn)||Ne,Lr(u,l),Tn=fe):Lr(u,l),ti(l),_&8192){if(fe=l.memoizedState!==null,(l.stateNode.isHidden=fe)&&!Ne&&(l.mode&1)!==0)for(Le=l,Ne=l.child;Ne!==null;){for(ke=Le=Ne;Le!==null;){switch(we=Le,Re=we.child,we.tag){case 0:case 11:case 14:case 15:mc(4,we,we.return);break;case 1:_o(we,we.return);var Be=we.stateNode;if(typeof Be.componentWillUnmount=="function"){_=we,b=we.return;try{u=_,Be.props=u.memoizedProps,Be.state=u.memoizedState,Be.componentWillUnmount()}catch(Ve){Jt(_,b,Ve)}}break;case 5:_o(we,we.return);break;case 22:if(we.memoizedState!==null){e1(ke);continue}}Re!==null?(Re.return=we,Le=Re):e1(ke)}Ne=Ne.sibling}e:for(Ne=null,ke=l;;){if(ke.tag===5){if(Ne===null){Ne=ke;try{O=ke.stateNode,fe?(M=O.style,typeof M.setProperty=="function"?M.setProperty("display","none","important"):M.display="none"):(te=ke.stateNode,ie=ke.memoizedProps.style,$=ie!=null&&ie.hasOwnProperty("display")?ie.display:null,te.style.display=Un("display",$))}catch(Ve){Jt(l,l.return,Ve)}}}else if(ke.tag===6){if(Ne===null)try{ke.stateNode.nodeValue=fe?"":ke.memoizedProps}catch(Ve){Jt(l,l.return,Ve)}}else if((ke.tag!==22&&ke.tag!==23||ke.memoizedState===null||ke===l)&&ke.child!==null){ke.child.return=ke,ke=ke.child;continue}if(ke===l)break e;for(;ke.sibling===null;){if(ke.return===null||ke.return===l)break e;Ne===ke&&(Ne=null),ke=ke.return}Ne===ke&&(Ne=null),ke.sibling.return=ke.return,ke=ke.sibling}}break;case 19:Lr(u,l),ti(l),_&4&&Yw(l);break;case 21:break;default:Lr(u,l),ti(l)}}function ti(l){var u=l.flags;if(u&2){try{e:{for(var b=l.return;b!==null;){if(Kw(b)){var _=b;break e}b=b.return}throw Error(r(160))}switch(_.tag){case 5:var O=_.stateNode;_.flags&32&&(He(O,""),_.flags&=-33);var M=Gw(l);xp(l,M,O);break;case 3:case 4:var $=_.stateNode.containerInfo,te=Gw(l);gp(l,te,$);break;default:throw Error(r(161))}}catch(ie){Jt(l,l.return,ie)}l.flags&=-3}u&4096&&(l.flags&=-4097)}function I3(l,u,b){Le=l,Jw(l)}function Jw(l,u,b){for(var _=(l.mode&1)!==0;Le!==null;){var O=Le,M=O.child;if(O.tag===22&&_){var $=O.memoizedState!==null||Id;if(!$){var te=O.alternate,ie=te!==null&&te.memoizedState!==null||Tn;te=Id;var fe=Tn;if(Id=$,(Tn=ie)&&!fe)for(Le=O;Le!==null;)$=Le,ie=$.child,$.tag===22&&$.memoizedState!==null?t1(O):ie!==null?(ie.return=$,Le=ie):t1(O);for(;M!==null;)Le=M,Jw(M),M=M.sibling;Le=O,Id=te,Tn=fe}Zw(l)}else(O.subtreeFlags&8772)!==0&&M!==null?(M.return=O,Le=M):Zw(l)}}function Zw(l){for(;Le!==null;){var u=Le;if((u.flags&8772)!==0){var b=u.alternate;try{if((u.flags&8772)!==0)switch(u.tag){case 0:case 11:case 15:Tn||Rd(5,u);break;case 1:var _=u.stateNode;if(u.flags&4&&!Tn)if(b===null)_.componentDidMount();else{var O=u.elementType===u.type?b.memoizedProps:Fr(u.type,b.memoizedProps);_.componentDidUpdate(O,b.memoizedState,_.__reactInternalSnapshotBeforeUpdate)}var M=u.updateQueue;M!==null&&ew(u,M,_);break;case 3:var $=u.updateQueue;if($!==null){if(b=null,u.child!==null)switch(u.child.tag){case 5:b=u.child.stateNode;break;case 1:b=u.child.stateNode}ew(u,$,b)}break;case 5:var te=u.stateNode;if(b===null&&u.flags&4){b=te;var ie=u.memoizedProps;switch(u.type){case"button":case"input":case"select":case"textarea":ie.autoFocus&&b.focus();break;case"img":ie.src&&(b.src=ie.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(u.memoizedState===null){var fe=u.alternate;if(fe!==null){var Ne=fe.memoizedState;if(Ne!==null){var ke=Ne.dehydrated;ke!==null&&Wl(ke)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}Tn||u.flags&512&&pp(u)}catch(we){Jt(u,u.return,we)}}if(u===l){Le=null;break}if(b=u.sibling,b!==null){b.return=u.return,Le=b;break}Le=u.return}}function e1(l){for(;Le!==null;){var u=Le;if(u===l){Le=null;break}var b=u.sibling;if(b!==null){b.return=u.return,Le=b;break}Le=u.return}}function t1(l){for(;Le!==null;){var u=Le;try{switch(u.tag){case 0:case 11:case 15:var b=u.return;try{Rd(4,u)}catch(ie){Jt(u,b,ie)}break;case 1:var _=u.stateNode;if(typeof _.componentDidMount=="function"){var O=u.return;try{_.componentDidMount()}catch(ie){Jt(u,O,ie)}}var M=u.return;try{pp(u)}catch(ie){Jt(u,M,ie)}break;case 5:var $=u.return;try{pp(u)}catch(ie){Jt(u,$,ie)}}}catch(ie){Jt(u,u.return,ie)}if(u===l){Le=null;break}var te=u.sibling;if(te!==null){te.return=u.return,Le=te;break}Le=u.return}}var R3=Math.ceil,Fd=k.ReactCurrentDispatcher,vp=k.ReactCurrentOwner,jr=k.ReactCurrentBatchConfig,vt=0,xn=null,an=null,Nn=0,lr=0,So=ds(0),dn=0,pc=null,ma=0,Md=0,yp=0,gc=null,Kn=null,bp=0,Ao=1/0,Ii=null,Ld=!1,jp=null,xs=null,Bd=!1,vs=null,zd=0,xc=0,wp=null,qd=-1,Vd=0;function Ln(){return(vt&6)!==0?tn():qd!==-1?qd:qd=tn()}function ys(l){return(l.mode&1)===0?1:(vt&2)!==0&&Nn!==0?Nn&-Nn:v3.transition!==null?(Vd===0&&(Vd=Gb()),Vd):(l=Et,l!==0||(l=window.event,l=l===void 0?16:rj(l.type)),l)}function Br(l,u,b,_){if(50<xc)throw xc=0,wp=null,Error(r(185));ql(l,b,_),((vt&2)===0||l!==xn)&&(l===xn&&((vt&2)===0&&(Md|=b),dn===4&&bs(l,Nn)),Gn(l,_),b===1&&vt===0&&(u.mode&1)===0&&(Ao=tn()+500,gd&&fs()))}function Gn(l,u){var b=l.callbackNode;vO(l,u);var _=Xu(l,l===xn?Nn:0);if(_===0)b!==null&&Hb(b),l.callbackNode=null,l.callbackPriority=0;else if(u=_&-_,l.callbackPriority!==u){if(b!=null&&Hb(b),u===1)l.tag===0?x3(r1.bind(null,l)):Vj(r1.bind(null,l)),f3(function(){(vt&6)===0&&fs()}),b=null;else{switch(Qb(_)){case 1:b=tm;break;case 4:b=Wb;break;case 16:b=Ku;break;case 536870912:b=Kb;break;default:b=Ku}b=d1(b,n1.bind(null,l))}l.callbackPriority=u,l.callbackNode=b}}function n1(l,u){if(qd=-1,Vd=0,(vt&6)!==0)throw Error(r(327));var b=l.callbackNode;if(Co()&&l.callbackNode!==b)return null;var _=Xu(l,l===xn?Nn:0);if(_===0)return null;if((_&30)!==0||(_&l.expiredLanes)!==0||u)u=Ud(l,_);else{u=_;var O=vt;vt|=2;var M=s1();(xn!==l||Nn!==u)&&(Ii=null,Ao=tn()+500,ga(l,u));do try{L3();break}catch(te){i1(l,te)}while(!0);zm(),Fd.current=M,vt=O,an!==null?u=0:(xn=null,Nn=0,u=dn)}if(u!==0){if(u===2&&(O=nm(l),O!==0&&(_=O,u=Np(l,O))),u===1)throw b=pc,ga(l,0),bs(l,_),Gn(l,tn()),b;if(u===6)bs(l,_);else{if(O=l.current.alternate,(_&30)===0&&!F3(O)&&(u=Ud(l,_),u===2&&(M=nm(l),M!==0&&(_=M,u=Np(l,M))),u===1))throw b=pc,ga(l,0),bs(l,_),Gn(l,tn()),b;switch(l.finishedWork=O,l.finishedLanes=_,u){case 0:case 1:throw Error(r(345));case 2:xa(l,Kn,Ii);break;case 3:if(bs(l,_),(_&130023424)===_&&(u=bp+500-tn(),10<u)){if(Xu(l,0)!==0)break;if(O=l.suspendedLanes,(O&_)!==_){Ln(),l.pingedLanes|=l.suspendedLanes&O;break}l.timeoutHandle=Em(xa.bind(null,l,Kn,Ii),u);break}xa(l,Kn,Ii);break;case 4:if(bs(l,_),(_&4194240)===_)break;for(u=l.eventTimes,O=-1;0<_;){var $=31-Dr(_);M=1<<$,$=u[$],$>O&&(O=$),_&=~M}if(_=O,_=tn()-_,_=(120>_?120:480>_?480:1080>_?1080:1920>_?1920:3e3>_?3e3:4320>_?4320:1960*R3(_/1960))-_,10<_){l.timeoutHandle=Em(xa.bind(null,l,Kn,Ii),_);break}xa(l,Kn,Ii);break;case 5:xa(l,Kn,Ii);break;default:throw Error(r(329))}}}return Gn(l,tn()),l.callbackNode===b?n1.bind(null,l):null}function Np(l,u){var b=gc;return l.current.memoizedState.isDehydrated&&(ga(l,u).flags|=256),l=Ud(l,u),l!==2&&(u=Kn,Kn=b,u!==null&&kp(u)),l}function kp(l){Kn===null?Kn=l:Kn.push.apply(Kn,l)}function F3(l){for(var u=l;;){if(u.flags&16384){var b=u.updateQueue;if(b!==null&&(b=b.stores,b!==null))for(var _=0;_<b.length;_++){var O=b[_],M=O.getSnapshot;O=O.value;try{if(!Ir(M(),O))return!1}catch{return!1}}}if(b=u.child,u.subtreeFlags&16384&&b!==null)b.return=u,u=b;else{if(u===l)break;for(;u.sibling===null;){if(u.return===null||u.return===l)return!0;u=u.return}u.sibling.return=u.return,u=u.sibling}}return!0}function bs(l,u){for(u&=~yp,u&=~Md,l.suspendedLanes|=u,l.pingedLanes&=~u,l=l.expirationTimes;0<u;){var b=31-Dr(u),_=1<<b;l[b]=-1,u&=~_}}function r1(l){if((vt&6)!==0)throw Error(r(327));Co();var u=Xu(l,0);if((u&1)===0)return Gn(l,tn()),null;var b=Ud(l,u);if(l.tag!==0&&b===2){var _=nm(l);_!==0&&(u=_,b=Np(l,_))}if(b===1)throw b=pc,ga(l,0),bs(l,u),Gn(l,tn()),b;if(b===6)throw Error(r(345));return l.finishedWork=l.current.alternate,l.finishedLanes=u,xa(l,Kn,Ii),Gn(l,tn()),null}function _p(l,u){var b=vt;vt|=1;try{return l(u)}finally{vt=b,vt===0&&(Ao=tn()+500,gd&&fs())}}function pa(l){vs!==null&&vs.tag===0&&(vt&6)===0&&Co();var u=vt;vt|=1;var b=jr.transition,_=Et;try{if(jr.transition=null,Et=1,l)return l()}finally{Et=_,jr.transition=b,vt=u,(vt&6)===0&&fs()}}function Sp(){lr=So.current,Bt(So)}function ga(l,u){l.finishedWork=null,l.finishedLanes=0;var b=l.timeoutHandle;if(b!==-1&&(l.timeoutHandle=-1,h3(b)),an!==null)for(b=an.return;b!==null;){var _=b;switch(Rm(_),_.tag){case 1:_=_.type.childContextTypes,_!=null&&md();break;case 3:No(),Bt($n),Bt(An),Gm();break;case 5:Wm(_);break;case 4:No();break;case 13:Bt(Kt);break;case 19:Bt(Kt);break;case 10:qm(_.type._context);break;case 22:case 23:Sp()}b=b.return}if(xn=l,an=l=js(l.current,null),Nn=lr=u,dn=0,pc=null,yp=Md=ma=0,Kn=gc=null,da!==null){for(u=0;u<da.length;u++)if(b=da[u],_=b.interleaved,_!==null){b.interleaved=null;var O=_.next,M=b.pending;if(M!==null){var $=M.next;M.next=O,_.next=$}b.pending=_}da=null}return l}function i1(l,u){do{var b=an;try{if(zm(),Sd.current=Td,Ad){for(var _=Gt.memoizedState;_!==null;){var O=_.queue;O!==null&&(O.pending=null),_=_.next}Ad=!1}if(fa=0,gn=un=Gt=null,cc=!1,uc=0,vp.current=null,b===null||b.return===null){dn=1,pc=u,an=null;break}e:{var M=l,$=b.return,te=b,ie=u;if(u=Nn,te.flags|=32768,ie!==null&&typeof ie=="object"&&typeof ie.then=="function"){var fe=ie,Ne=te,ke=Ne.tag;if((Ne.mode&1)===0&&(ke===0||ke===11||ke===15)){var we=Ne.alternate;we?(Ne.updateQueue=we.updateQueue,Ne.memoizedState=we.memoizedState,Ne.lanes=we.lanes):(Ne.updateQueue=null,Ne.memoizedState=null)}var Re=Ew($);if(Re!==null){Re.flags&=-257,Tw(Re,$,te,M,u),Re.mode&1&&Cw(M,fe,u),u=Re,ie=fe;var Be=u.updateQueue;if(Be===null){var Ve=new Set;Ve.add(ie),u.updateQueue=Ve}else Be.add(ie);break e}else{if((u&1)===0){Cw(M,fe,u),Ap();break e}ie=Error(r(426))}}else if(qt&&te.mode&1){var nn=Ew($);if(nn!==null){(nn.flags&65536)===0&&(nn.flags|=256),Tw(nn,$,te,M,u),Lm(ko(ie,te));break e}}M=ie=ko(ie,te),dn!==4&&(dn=2),gc===null?gc=[M]:gc.push(M),M=$;do{switch(M.tag){case 3:M.flags|=65536,u&=-u,M.lanes|=u;var ue=Sw(M,ie,u);Zj(M,ue);break e;case 1:te=ie;var oe=M.type,he=M.stateNode;if((M.flags&128)===0&&(typeof oe.getDerivedStateFromError=="function"||he!==null&&typeof he.componentDidCatch=="function"&&(xs===null||!xs.has(he)))){M.flags|=65536,u&=-u,M.lanes|=u;var Ee=Aw(M,te,u);Zj(M,Ee);break e}}M=M.return}while(M!==null)}o1(b)}catch(Ue){u=Ue,an===b&&b!==null&&(an=b=b.return);continue}break}while(!0)}function s1(){var l=Fd.current;return Fd.current=Td,l===null?Td:l}function Ap(){(dn===0||dn===3||dn===2)&&(dn=4),xn===null||(ma&268435455)===0&&(Md&268435455)===0||bs(xn,Nn)}function Ud(l,u){var b=vt;vt|=2;var _=s1();(xn!==l||Nn!==u)&&(Ii=null,ga(l,u));do try{M3();break}catch(O){i1(l,O)}while(!0);if(zm(),vt=b,Fd.current=_,an!==null)throw Error(r(261));return xn=null,Nn=0,dn}function M3(){for(;an!==null;)a1(an)}function L3(){for(;an!==null&&!cO();)a1(an)}function a1(l){var u=u1(l.alternate,l,lr);l.memoizedProps=l.pendingProps,u===null?o1(l):an=u,vp.current=null}function o1(l){var u=l;do{var b=u.alternate;if(l=u.return,(u.flags&32768)===0){if(b=T3(b,u,lr),b!==null){an=b;return}}else{if(b=O3(b,u),b!==null){b.flags&=32767,an=b;return}if(l!==null)l.flags|=32768,l.subtreeFlags=0,l.deletions=null;else{dn=6,an=null;return}}if(u=u.sibling,u!==null){an=u;return}an=u=l}while(u!==null);dn===0&&(dn=5)}function xa(l,u,b){var _=Et,O=jr.transition;try{jr.transition=null,Et=1,B3(l,u,b,_)}finally{jr.transition=O,Et=_}return null}function B3(l,u,b,_){do Co();while(vs!==null);if((vt&6)!==0)throw Error(r(327));b=l.finishedWork;var O=l.finishedLanes;if(b===null)return null;if(l.finishedWork=null,l.finishedLanes=0,b===l.current)throw Error(r(177));l.callbackNode=null,l.callbackPriority=0;var M=b.lanes|b.childLanes;if(yO(l,M),l===xn&&(an=xn=null,Nn=0),(b.subtreeFlags&2064)===0&&(b.flags&2064)===0||Bd||(Bd=!0,d1(Ku,function(){return Co(),null})),M=(b.flags&15990)!==0,(b.subtreeFlags&15990)!==0||M){M=jr.transition,jr.transition=null;var $=Et;Et=1;var te=vt;vt|=4,vp.current=null,D3(l,b),Xw(b,l),s3(Am),ed=!!Sm,Am=Sm=null,l.current=b,I3(b),uO(),vt=te,Et=$,jr.transition=M}else l.current=b;if(Bd&&(Bd=!1,vs=l,zd=O),M=l.pendingLanes,M===0&&(xs=null),fO(b.stateNode),Gn(l,tn()),u!==null)for(_=l.onRecoverableError,b=0;b<u.length;b++)O=u[b],_(O.value,{componentStack:O.stack,digest:O.digest});if(Ld)throw Ld=!1,l=jp,jp=null,l;return(zd&1)!==0&&l.tag!==0&&Co(),M=l.pendingLanes,(M&1)!==0?l===wp?xc++:(xc=0,wp=l):xc=0,fs(),null}function Co(){if(vs!==null){var l=Qb(zd),u=jr.transition,b=Et;try{if(jr.transition=null,Et=16>l?16:l,vs===null)var _=!1;else{if(l=vs,vs=null,zd=0,(vt&6)!==0)throw Error(r(331));var O=vt;for(vt|=4,Le=l.current;Le!==null;){var M=Le,$=M.child;if((Le.flags&16)!==0){var te=M.deletions;if(te!==null){for(var ie=0;ie<te.length;ie++){var fe=te[ie];for(Le=fe;Le!==null;){var Ne=Le;switch(Ne.tag){case 0:case 11:case 15:mc(8,Ne,M)}var ke=Ne.child;if(ke!==null)ke.return=Ne,Le=ke;else for(;Le!==null;){Ne=Le;var we=Ne.sibling,Re=Ne.return;if(Ww(Ne),Ne===fe){Le=null;break}if(we!==null){we.return=Re,Le=we;break}Le=Re}}}var Be=M.alternate;if(Be!==null){var Ve=Be.child;if(Ve!==null){Be.child=null;do{var nn=Ve.sibling;Ve.sibling=null,Ve=nn}while(Ve!==null)}}Le=M}}if((M.subtreeFlags&2064)!==0&&$!==null)$.return=M,Le=$;else e:for(;Le!==null;){if(M=Le,(M.flags&2048)!==0)switch(M.tag){case 0:case 11:case 15:mc(9,M,M.return)}var ue=M.sibling;if(ue!==null){ue.return=M.return,Le=ue;break e}Le=M.return}}var oe=l.current;for(Le=oe;Le!==null;){$=Le;var he=$.child;if(($.subtreeFlags&2064)!==0&&he!==null)he.return=$,Le=he;else e:for($=oe;Le!==null;){if(te=Le,(te.flags&2048)!==0)try{switch(te.tag){case 0:case 11:case 15:Rd(9,te)}}catch(Ue){Jt(te,te.return,Ue)}if(te===$){Le=null;break e}var Ee=te.sibling;if(Ee!==null){Ee.return=te.return,Le=Ee;break e}Le=te.return}}if(vt=O,fs(),Xr&&typeof Xr.onPostCommitFiberRoot=="function")try{Xr.onPostCommitFiberRoot(Gu,l)}catch{}_=!0}return _}finally{Et=b,jr.transition=u}}return!1}function l1(l,u,b){u=ko(b,u),u=Sw(l,u,1),l=ps(l,u,1),u=Ln(),l!==null&&(ql(l,1,u),Gn(l,u))}function Jt(l,u,b){if(l.tag===3)l1(l,l,b);else for(;u!==null;){if(u.tag===3){l1(u,l,b);break}else if(u.tag===1){var _=u.stateNode;if(typeof u.type.getDerivedStateFromError=="function"||typeof _.componentDidCatch=="function"&&(xs===null||!xs.has(_))){l=ko(b,l),l=Aw(u,l,1),u=ps(u,l,1),l=Ln(),u!==null&&(ql(u,1,l),Gn(u,l));break}}u=u.return}}function z3(l,u,b){var _=l.pingCache;_!==null&&_.delete(u),u=Ln(),l.pingedLanes|=l.suspendedLanes&b,xn===l&&(Nn&b)===b&&(dn===4||dn===3&&(Nn&130023424)===Nn&&500>tn()-bp?ga(l,0):yp|=b),Gn(l,u)}function c1(l,u){u===0&&((l.mode&1)===0?u=1:(u=Yu,Yu<<=1,(Yu&130023424)===0&&(Yu=4194304)));var b=Ln();l=Oi(l,u),l!==null&&(ql(l,u,b),Gn(l,b))}function q3(l){var u=l.memoizedState,b=0;u!==null&&(b=u.retryLane),c1(l,b)}function V3(l,u){var b=0;switch(l.tag){case 13:var _=l.stateNode,O=l.memoizedState;O!==null&&(b=O.retryLane);break;case 19:_=l.stateNode;break;default:throw Error(r(314))}_!==null&&_.delete(u),c1(l,b)}var u1;u1=function(l,u,b){if(l!==null)if(l.memoizedProps!==u.pendingProps||$n.current)Wn=!0;else{if((l.lanes&b)===0&&(u.flags&128)===0)return Wn=!1,E3(l,u,b);Wn=(l.flags&131072)!==0}else Wn=!1,qt&&(u.flags&1048576)!==0&&Uj(u,vd,u.index);switch(u.lanes=0,u.tag){case 2:var _=u.type;Dd(l,u),l=u.pendingProps;var O=go(u,An.current);wo(u,b),O=Xm(null,u,_,l,O,b);var M=Jm();return u.flags|=1,typeof O=="object"&&O!==null&&typeof O.render=="function"&&O.$$typeof===void 0?(u.tag=1,u.memoizedState=null,u.updateQueue=null,Hn(_)?(M=!0,pd(u)):M=!1,u.memoizedState=O.state!==null&&O.state!==void 0?O.state:null,$m(u),O.updater=Od,u.stateNode=O,O._reactInternals=u,ip(u,_,l,b),u=lp(null,u,_,!0,M,b)):(u.tag=0,qt&&M&&Im(u),Mn(null,u,O,b),u=u.child),u;case 16:_=u.elementType;e:{switch(Dd(l,u),l=u.pendingProps,O=_._init,_=O(_._payload),u.type=_,O=u.tag=$3(_),l=Fr(_,l),O){case 0:u=op(null,u,_,l,b);break e;case 1:u=Fw(null,u,_,l,b);break e;case 11:u=Ow(null,u,_,l,b);break e;case 14:u=Pw(null,u,_,Fr(_.type,l),b);break e}throw Error(r(306,_,""))}return u;case 0:return _=u.type,O=u.pendingProps,O=u.elementType===_?O:Fr(_,O),op(l,u,_,O,b);case 1:return _=u.type,O=u.pendingProps,O=u.elementType===_?O:Fr(_,O),Fw(l,u,_,O,b);case 3:e:{if(Mw(u),l===null)throw Error(r(387));_=u.pendingProps,M=u.memoizedState,O=M.element,Jj(l,u),kd(u,_,null,b);var $=u.memoizedState;if(_=$.element,M.isDehydrated)if(M={element:_,isDehydrated:!1,cache:$.cache,pendingSuspenseBoundaries:$.pendingSuspenseBoundaries,transitions:$.transitions},u.updateQueue.baseState=M,u.memoizedState=M,u.flags&256){O=ko(Error(r(423)),u),u=Lw(l,u,_,b,O);break e}else if(_!==O){O=ko(Error(r(424)),u),u=Lw(l,u,_,b,O);break e}else for(or=us(u.stateNode.containerInfo.firstChild),ar=u,qt=!0,Rr=null,b=Yj(u,null,_,b),u.child=b;b;)b.flags=b.flags&-3|4096,b=b.sibling;else{if(yo(),_===O){u=Di(l,u,b);break e}Mn(l,u,_,b)}u=u.child}return u;case 5:return tw(u),l===null&&Mm(u),_=u.type,O=u.pendingProps,M=l!==null?l.memoizedProps:null,$=O.children,Cm(_,O)?$=null:M!==null&&Cm(_,M)&&(u.flags|=32),Rw(l,u),Mn(l,u,$,b),u.child;case 6:return l===null&&Mm(u),null;case 13:return Bw(l,u,b);case 4:return Hm(u,u.stateNode.containerInfo),_=u.pendingProps,l===null?u.child=bo(u,null,_,b):Mn(l,u,_,b),u.child;case 11:return _=u.type,O=u.pendingProps,O=u.elementType===_?O:Fr(_,O),Ow(l,u,_,O,b);case 7:return Mn(l,u,u.pendingProps,b),u.child;case 8:return Mn(l,u,u.pendingProps.children,b),u.child;case 12:return Mn(l,u,u.pendingProps.children,b),u.child;case 10:e:{if(_=u.type._context,O=u.pendingProps,M=u.memoizedProps,$=O.value,It(jd,_._currentValue),_._currentValue=$,M!==null)if(Ir(M.value,$)){if(M.children===O.children&&!$n.current){u=Di(l,u,b);break e}}else for(M=u.child,M!==null&&(M.return=u);M!==null;){var te=M.dependencies;if(te!==null){$=M.child;for(var ie=te.firstContext;ie!==null;){if(ie.context===_){if(M.tag===1){ie=Pi(-1,b&-b),ie.tag=2;var fe=M.updateQueue;if(fe!==null){fe=fe.shared;var Ne=fe.pending;Ne===null?ie.next=ie:(ie.next=Ne.next,Ne.next=ie),fe.pending=ie}}M.lanes|=b,ie=M.alternate,ie!==null&&(ie.lanes|=b),Vm(M.return,b,u),te.lanes|=b;break}ie=ie.next}}else if(M.tag===10)$=M.type===u.type?null:M.child;else if(M.tag===18){if($=M.return,$===null)throw Error(r(341));$.lanes|=b,te=$.alternate,te!==null&&(te.lanes|=b),Vm($,b,u),$=M.sibling}else $=M.child;if($!==null)$.return=M;else for($=M;$!==null;){if($===u){$=null;break}if(M=$.sibling,M!==null){M.return=$.return,$=M;break}$=$.return}M=$}Mn(l,u,O.children,b),u=u.child}return u;case 9:return O=u.type,_=u.pendingProps.children,wo(u,b),O=yr(O),_=_(O),u.flags|=1,Mn(l,u,_,b),u.child;case 14:return _=u.type,O=Fr(_,u.pendingProps),O=Fr(_.type,O),Pw(l,u,_,O,b);case 15:return Dw(l,u,u.type,u.pendingProps,b);case 17:return _=u.type,O=u.pendingProps,O=u.elementType===_?O:Fr(_,O),Dd(l,u),u.tag=1,Hn(_)?(l=!0,pd(u)):l=!1,wo(u,b),kw(u,_,O),ip(u,_,O,b),lp(null,u,_,!0,l,b);case 19:return qw(l,u,b);case 22:return Iw(l,u,b)}throw Error(r(156,u.tag))};function d1(l,u){return $b(l,u)}function U3(l,u,b,_){this.tag=l,this.key=b,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=u,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=_,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function wr(l,u,b,_){return new U3(l,u,b,_)}function Cp(l){return l=l.prototype,!(!l||!l.isReactComponent)}function $3(l){if(typeof l=="function")return Cp(l)?1:0;if(l!=null){if(l=l.$$typeof,l===R)return 11;if(l===U)return 14}return 2}function js(l,u){var b=l.alternate;return b===null?(b=wr(l.tag,u,l.key,l.mode),b.elementType=l.elementType,b.type=l.type,b.stateNode=l.stateNode,b.alternate=l,l.alternate=b):(b.pendingProps=u,b.type=l.type,b.flags=0,b.subtreeFlags=0,b.deletions=null),b.flags=l.flags&14680064,b.childLanes=l.childLanes,b.lanes=l.lanes,b.child=l.child,b.memoizedProps=l.memoizedProps,b.memoizedState=l.memoizedState,b.updateQueue=l.updateQueue,u=l.dependencies,b.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext},b.sibling=l.sibling,b.index=l.index,b.ref=l.ref,b}function $d(l,u,b,_,O,M){var $=2;if(_=l,typeof l=="function")Cp(l)&&($=1);else if(typeof l=="string")$=5;else e:switch(l){case E:return va(b.children,O,M,u);case C:$=8,O|=8;break;case B:return l=wr(12,b,u,O|2),l.elementType=B,l.lanes=M,l;case z:return l=wr(13,b,u,O),l.elementType=z,l.lanes=M,l;case q:return l=wr(19,b,u,O),l.elementType=q,l.lanes=M,l;case H:return Hd(b,O,M,u);default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case F:$=10;break e;case I:$=9;break e;case R:$=11;break e;case U:$=14;break e;case Q:$=16,_=null;break e}throw Error(r(130,l==null?l:typeof l,""))}return u=wr($,b,u,O),u.elementType=l,u.type=_,u.lanes=M,u}function va(l,u,b,_){return l=wr(7,l,_,u),l.lanes=b,l}function Hd(l,u,b,_){return l=wr(22,l,_,u),l.elementType=H,l.lanes=b,l.stateNode={isHidden:!1},l}function Ep(l,u,b){return l=wr(6,l,null,u),l.lanes=b,l}function Tp(l,u,b){return u=wr(4,l.children!==null?l.children:[],l.key,u),u.lanes=b,u.stateNode={containerInfo:l.containerInfo,pendingChildren:null,implementation:l.implementation},u}function H3(l,u,b,_,O){this.tag=u,this.containerInfo=l,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=rm(0),this.expirationTimes=rm(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rm(0),this.identifierPrefix=_,this.onRecoverableError=O,this.mutableSourceEagerHydrationData=null}function Op(l,u,b,_,O,M,$,te,ie){return l=new H3(l,u,b,te,ie),u===1?(u=1,M===!0&&(u|=8)):u=0,M=wr(3,null,null,u),l.current=M,M.stateNode=l,M.memoizedState={element:_,isDehydrated:b,cache:null,transitions:null,pendingSuspenseBoundaries:null},$m(M),l}function W3(l,u,b){var _=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:S,key:_==null?null:""+_,children:l,containerInfo:u,implementation:b}}function h1(l){if(!l)return hs;l=l._reactInternals;e:{if(aa(l)!==l||l.tag!==1)throw Error(r(170));var u=l;do{switch(u.tag){case 3:u=u.stateNode.context;break e;case 1:if(Hn(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break e}}u=u.return}while(u!==null);throw Error(r(171))}if(l.tag===1){var b=l.type;if(Hn(b))return zj(l,b,u)}return u}function f1(l,u,b,_,O,M,$,te,ie){return l=Op(b,_,!0,l,O,M,$,te,ie),l.context=h1(null),b=l.current,_=Ln(),O=ys(b),M=Pi(_,O),M.callback=u??null,ps(b,M,O),l.current.lanes=O,ql(l,O,_),Gn(l,_),l}function Wd(l,u,b,_){var O=u.current,M=Ln(),$=ys(O);return b=h1(b),u.context===null?u.context=b:u.pendingContext=b,u=Pi(M,$),u.payload={element:l},_=_===void 0?null:_,_!==null&&(u.callback=_),l=ps(O,u,$),l!==null&&(Br(l,O,$,M),Nd(l,O,$)),$}function Kd(l){if(l=l.current,!l.child)return null;switch(l.child.tag){case 5:return l.child.stateNode;default:return l.child.stateNode}}function m1(l,u){if(l=l.memoizedState,l!==null&&l.dehydrated!==null){var b=l.retryLane;l.retryLane=b!==0&&b<u?b:u}}function Pp(l,u){m1(l,u),(l=l.alternate)&&m1(l,u)}function K3(){return null}var p1=typeof reportError=="function"?reportError:function(l){console.error(l)};function Dp(l){this._internalRoot=l}Gd.prototype.render=Dp.prototype.render=function(l){var u=this._internalRoot;if(u===null)throw Error(r(409));Wd(l,u,null,null)},Gd.prototype.unmount=Dp.prototype.unmount=function(){var l=this._internalRoot;if(l!==null){this._internalRoot=null;var u=l.containerInfo;pa(function(){Wd(null,l,null,null)}),u[Ai]=null}};function Gd(l){this._internalRoot=l}Gd.prototype.unstable_scheduleHydration=function(l){if(l){var u=Jb();l={blockedOn:null,target:l,priority:u};for(var b=0;b<os.length&&u!==0&&u<os[b].priority;b++);os.splice(b,0,l),b===0&&tj(l)}};function Ip(l){return!(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)}function Qd(l){return!(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11&&(l.nodeType!==8||l.nodeValue!==" react-mount-point-unstable "))}function g1(){}function G3(l,u,b,_,O){if(O){if(typeof _=="function"){var M=_;_=function(){var fe=Kd($);M.call(fe)}}var $=f1(u,_,l,0,null,!1,!1,"",g1);return l._reactRootContainer=$,l[Ai]=$.current,tc(l.nodeType===8?l.parentNode:l),pa(),$}for(;O=l.lastChild;)l.removeChild(O);if(typeof _=="function"){var te=_;_=function(){var fe=Kd(ie);te.call(fe)}}var ie=Op(l,0,!1,null,null,!1,!1,"",g1);return l._reactRootContainer=ie,l[Ai]=ie.current,tc(l.nodeType===8?l.parentNode:l),pa(function(){Wd(u,ie,b,_)}),ie}function Yd(l,u,b,_,O){var M=b._reactRootContainer;if(M){var $=M;if(typeof O=="function"){var te=O;O=function(){var ie=Kd($);te.call(ie)}}Wd(u,$,l,O)}else $=G3(b,u,l,O,_);return Kd($)}Yb=function(l){switch(l.tag){case 3:var u=l.stateNode;if(u.current.memoizedState.isDehydrated){var b=zl(u.pendingLanes);b!==0&&(im(u,b|1),Gn(u,tn()),(vt&6)===0&&(Ao=tn()+500,fs()))}break;case 13:pa(function(){var _=Oi(l,1);if(_!==null){var O=Ln();Br(_,l,1,O)}}),Pp(l,1)}},sm=function(l){if(l.tag===13){var u=Oi(l,134217728);if(u!==null){var b=Ln();Br(u,l,134217728,b)}Pp(l,134217728)}},Xb=function(l){if(l.tag===13){var u=ys(l),b=Oi(l,u);if(b!==null){var _=Ln();Br(b,l,u,_)}Pp(l,u)}},Jb=function(){return Et},Zb=function(l,u){var b=Et;try{return Et=l,u()}finally{Et=b}},Xf=function(l,u,b){switch(u){case"input":if(nt(l,b),u=b.name,b.type==="radio"&&u!=null){for(b=l;b.parentNode;)b=b.parentNode;for(b=b.querySelectorAll("input[name="+JSON.stringify(""+u)+'][type="radio"]'),u=0;u<b.length;u++){var _=b[u];if(_!==l&&_.form===l.form){var O=fd(_);if(!O)throw Error(r(90));be(_),nt(_,O)}}}break;case"textarea":et(l,b);break;case"select":u=b.value,u!=null&&Pe(l,!!b.multiple,u,!1)}},Mb=_p,Lb=pa;var Q3={usingClientEntryPoint:!1,Events:[ic,mo,fd,Rb,Fb,_p]},vc={findFiberByHostInstance:oa,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Y3={bundleType:vc.bundleType,version:vc.version,rendererPackageName:vc.rendererPackageName,rendererConfig:vc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:k.ReactCurrentDispatcher,findHostInstanceByFiber:function(l){return l=Vb(l),l===null?null:l.stateNode},findFiberByHostInstance:vc.findFiberByHostInstance||K3,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Xd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Xd.isDisabled&&Xd.supportsFiber)try{Gu=Xd.inject(Y3),Xr=Xd}catch{}}return Qn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Q3,Qn.createPortal=function(l,u){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ip(u))throw Error(r(200));return W3(l,u,null,b)},Qn.createRoot=function(l,u){if(!Ip(l))throw Error(r(299));var b=!1,_="",O=p1;return u!=null&&(u.unstable_strictMode===!0&&(b=!0),u.identifierPrefix!==void 0&&(_=u.identifierPrefix),u.onRecoverableError!==void 0&&(O=u.onRecoverableError)),u=Op(l,1,!1,null,null,b,!1,_,O),l[Ai]=u.current,tc(l.nodeType===8?l.parentNode:l),new Dp(u)},Qn.findDOMNode=function(l){if(l==null)return null;if(l.nodeType===1)return l;var u=l._reactInternals;if(u===void 0)throw typeof l.render=="function"?Error(r(188)):(l=Object.keys(l).join(","),Error(r(268,l)));return l=Vb(u),l=l===null?null:l.stateNode,l},Qn.flushSync=function(l){return pa(l)},Qn.hydrate=function(l,u,b){if(!Qd(u))throw Error(r(200));return Yd(null,l,u,!0,b)},Qn.hydrateRoot=function(l,u,b){if(!Ip(l))throw Error(r(405));var _=b!=null&&b.hydratedSources||null,O=!1,M="",$=p1;if(b!=null&&(b.unstable_strictMode===!0&&(O=!0),b.identifierPrefix!==void 0&&(M=b.identifierPrefix),b.onRecoverableError!==void 0&&($=b.onRecoverableError)),u=f1(u,null,l,1,b??null,O,!1,M,$),l[Ai]=u.current,tc(l),_)for(l=0;l<_.length;l++)b=_[l],O=b._getVersion,O=O(b._source),u.mutableSourceEagerHydrationData==null?u.mutableSourceEagerHydrationData=[b,O]:u.mutableSourceEagerHydrationData.push(b,O);return new Gd(u)},Qn.render=function(l,u,b){if(!Qd(u))throw Error(r(200));return Yd(null,l,u,!1,b)},Qn.unmountComponentAtNode=function(l){if(!Qd(l))throw Error(r(40));return l._reactRootContainer?(pa(function(){Yd(null,null,l,!1,function(){l._reactRootContainer=null,l[Ai]=null})}),!0):!1},Qn.unstable_batchedUpdates=_p,Qn.unstable_renderSubtreeIntoContainer=function(l,u,b,_){if(!Qd(b))throw Error(r(200));if(l==null||l._reactInternals===void 0)throw Error(r(38));return Yd(l,u,b,!1,_)},Qn.version="18.3.1-next-f1338f8080-20240426",Qn}var _1;function ny(){if(_1)return Lp.exports;_1=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}return t(),Lp.exports=sP(),Lp.exports}var S1;function aP(){if(S1)return eh;S1=1;var t=ny();return eh.createRoot=t.createRoot,eh.hydrateRoot=t.hydrateRoot,eh}var oP=aP();const lP=_i(oP),cP=20,uP=1e6,Vi={ADD_TOAST:"ADD_TOAST",UPDATE_TOAST:"UPDATE_TOAST",DISMISS_TOAST:"DISMISS_TOAST",REMOVE_TOAST:"REMOVE_TOAST"};let qp=0;function dP(){return qp=(qp+1)%Number.MAX_VALUE,qp.toString()}const Vp=new Map,A1=t=>{if(Vp.has(t))return;const n=setTimeout(()=>{Vp.delete(t),Uc({type:Vi.REMOVE_TOAST,toastId:t})},uP);Vp.set(t,n)},hP=(t,n)=>{switch(n.type){case Vi.ADD_TOAST:return{...t,toasts:[n.toast,...t.toasts].slice(0,cP)};case Vi.UPDATE_TOAST:return{...t,toasts:t.toasts.map(r=>r.id===n.toast.id?{...r,...n.toast}:r)};case Vi.DISMISS_TOAST:{const{toastId:r}=n;return r?A1(r):t.toasts.forEach(i=>{A1(i.id)}),{...t,toasts:t.toasts.map(i=>i.id===r||r===void 0?{...i,open:!1}:i)}}case Vi.REMOVE_TOAST:return n.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(r=>r.id!==n.toastId)}}},wh=[];let Nh={toasts:[]};function Uc(t){Nh=hP(Nh,t),wh.forEach(n=>{n(Nh)})}function fP({...t}){const n=dP(),r=s=>Uc({type:Vi.UPDATE_TOAST,toast:{...s,id:n}}),i=()=>Uc({type:Vi.DISMISS_TOAST,toastId:n});return Uc({type:Vi.ADD_TOAST,toast:{...t,id:n,open:!0,onOpenChange:s=>{s||i()}}}),{id:n,dismiss:i,update:r}}function mP(){const[t,n]=D.useState(Nh);return D.useEffect(()=>(wh.push(n),()=>{const r=wh.indexOf(n);r>-1&&wh.splice(r,1)}),[t]),{...t,toast:fP,dismiss:r=>Uc({type:Vi.DISMISS_TOAST,toastId:r})}}function k4(t){var n,r,i="";if(typeof t=="string"||typeof t=="number")i+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(n=0;n<s;n++)t[n]&&(r=k4(t[n]))&&(i&&(i+=" "),i+=r)}else for(r in t)t[r]&&(i&&(i+=" "),i+=r);return i}function _4(){for(var t,n,r=0,i="",s=arguments.length;r<s;r++)(t=arguments[r])&&(n=k4(t))&&(i&&(i+=" "),i+=n);return i}const C1=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,E1=_4,S4=(t,n)=>r=>{var i;if((n==null?void 0:n.variants)==null)return E1(t,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:s,defaultVariants:a}=n,o=Object.keys(s).map(h=>{const f=r==null?void 0:r[h],m=a==null?void 0:a[h];if(f===null)return null;const p=C1(f)||C1(m);return s[h][p]}),c=r&&Object.entries(r).reduce((h,f)=>{let[m,p]=f;return p===void 0||(h[m]=p),h},{}),d=n==null||(i=n.compoundVariants)===null||i===void 0?void 0:i.reduce((h,f)=>{let{class:m,className:p,...g}=f;return Object.entries(g).every(y=>{let[j,v]=y;return Array.isArray(v)?v.includes({...a,...c}[j]):{...a,...c}[j]===v})?[...h,m,p]:h},[]);return E1(t,o,d,r==null?void 0:r.class,r==null?void 0:r.className)};/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const pP=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),A4=(...t)=>t.filter((n,r,i)=>!!n&&n.trim()!==""&&i.indexOf(n)===r).join(" ").trim();/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var gP={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"};/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const xP=D.forwardRef(({color:t="currentColor",size:n=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:s="",children:a,iconNode:o,...c},d)=>D.createElement("svg",{ref:d,...gP,width:n,height:n,stroke:t,strokeWidth:i?Number(r)*24/Number(n):r,className:A4("lucide",s),...c},[...o.map(([h,f])=>D.createElement(h,f)),...Array.isArray(a)?a:[a]]));/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Se=(t,n)=>{const r=D.forwardRef(({className:i,...s},a)=>D.createElement(xP,{ref:a,iconNode:n,className:A4(`lucide-${pP(t)}`,i),...s}));return r.displayName=`${t}`,r};/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const vP=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],ht=Se("ArrowLeft",vP);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const yP=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],$e=Se("ArrowRight",yP);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const bP=[["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"}]],Cv=Se("Award",bP);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const jP=[["path",{d:"M17 11h1a3 3 0 0 1 0 6h-1",key:"1yp76v"}],["path",{d:"M9 12v6",key:"1u1cab"}],["path",{d:"M13 12v6",key:"1sugkk"}],["path",{d:"M14 7.5c-1 0-1.44.5-3 .5s-2-.5-3-.5-1.72.5-2.5.5a2.5 2.5 0 0 1 0-5c.78 0 1.57.5 2.5.5S9.44 2 11 2s2 1.5 3 1.5 1.72-.5 2.5-.5a2.5 2.5 0 0 1 0 5c-.78 0-1.5-.5-2.5-.5Z",key:"1510fo"}],["path",{d:"M5 8v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8",key:"19jb7n"}]],wP=Se("Beer",jP);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const NP=[["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"}]],Ua=Se("BookOpen",NP);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const kP=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],C4=Se("Bot",kP);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const _P=[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]],SP=Se("Brain",_P);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const AP=[["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"}]],Js=Se("Briefcase",AP);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const CP=[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]],Xa=Se("Building2",CP);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const EP=[["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"}]],TP=Se("CalendarDays",EP);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const OP=[["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"}]],Or=Se("Calendar",OP);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const PP=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ft=Se("Check",PP);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const DP=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Aa=Se("ChevronDown",DP);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const IP=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],RP=Se("ChevronLeft",IP);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const FP=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],E4=Se("ChevronRight",FP);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const MP=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],LP=Se("ChevronUp",MP);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const BP=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Tr=Se("CircleAlert",BP);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const zP=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],gt=Se("CircleCheckBig",zP);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const qP=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],T4=Se("CircleCheck",qP);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const VP=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],UP=Se("CircleHelp",VP);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const $P=[["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"}]],eu=Se("CircleX",$P);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const HP=[["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"}]],WP=Se("ClipboardList",HP);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const KP=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],mn=Se("Clock",KP);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const GP=[["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"}]],O4=Se("CodeXml",GP);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const QP=[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]],YP=Se("Code",QP);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const XP=[["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M14 2v2",key:"6buw04"}],["path",{d:"M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1",key:"pwadti"}],["path",{d:"M6 2v2",key:"colzsn"}]],JP=Se("Coffee",XP);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ZP=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],e8=Se("Copy",ZP);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const t8=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],P4=Se("Database",t8);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const n8=[["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"}]],yl=Se("Download",n8);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const r8=[["path",{d:"M4 10h12",key:"1y6xl8"}],["path",{d:"M4 14h9",key:"1loblj"}],["path",{d:"M19 6a7.7 7.7 0 0 0-5.2-2A7.9 7.9 0 0 0 6 12c0 4.4 3.5 8 7.8 8 2 0 3.8-.8 5.2-2",key:"1j6lzo"}]],T1=Se("Euro",r8);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const i8=[["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"}]],zs=Se("ExternalLink",i8);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const s8=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],Up=Se("EyeOff",s8);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const a8=[["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"}]],qs=Se("Eye",a8);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const o8=[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]],D4=Se("Facebook",o8);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const l8=[["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 18v-6",key:"17g6i2"}],["path",{d:"m9 15 3 3 3-3",key:"1npd3o"}]],c8=Se("FileDown",l8);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const u8=[["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"}]],$t=Se("FileText",u8);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const d8=[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]],df=Se("Filter",d8);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const h8=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],f8=Se("Globe",h8);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const m8=[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]],pr=Se("GraduationCap",m8);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const p8=[["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"}]],hf=Se("Headphones",p8);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const g8=[["path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z",key:"yt0hxn"}]],x8=Se("Hexagon",g8);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const v8=[["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"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],y8=Se("History",v8);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const b8=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]],Ev=Se("House",b8);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const j8=[["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"}]],w8=Se("Image",j8);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const N8=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],kh=Se("Info",N8);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const k8=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],tu=Se("Instagram",k8);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const _8=[["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:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],Su=Se("Layers",_8);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const S8=[["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"}]],O1=Se("LayoutGrid",S8);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const A8=[["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"}]],Wi=Se("Lightbulb",A8);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const C8=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],I4=Se("Link",C8);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const E8=[["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"}]],Ws=Se("Linkedin",E8);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const T8=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],R4=Se("LoaderCircle",T8);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const O8=[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]],P8=Se("Loader",O8);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const D8=[["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"}]],yi=Se("Mail",D8);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const I8=[["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"}]],bl=Se("MapPin",I8);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const R8=[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]],F8=Se("Map",R8);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const M8=[["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"}]],L8=Se("Menu",M8);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const B8=[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]],Ho=Se("MessageCircle",B8);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const z8=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]],q8=Se("MessageSquare",z8);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const V8=[["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2",key:"7pis2x"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M10 6h8v4h-8V6Z",key:"smlsk5"}]],U8=Se("Newspaper",V8);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const $8=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]],P1=Se("PanelsTopLeft",$8);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const H8=[["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"}]],$c=Se("Pen",H8);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const W8=[["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"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],K8=Se("Pencil",W8);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const G8=[["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"}]],ry=Se("Phone",G8);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Q8=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],Tv=Se("Play",Q8);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Y8=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Pt=Se("Plus",Y8);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const X8=[["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"}]],F4=Se("Quote",X8);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const J8=[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]],Z8=Se("RefreshCcw",J8);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const eD=[["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"}]],tD=Se("RefreshCw",eD);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const nD=[["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:"m3kijz"}],["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"}]],rD=Se("Rocket",nD);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const iD=[["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"}]],Sn=Se("Save",iD);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const sD=[["path",{d:"m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"7g6ntu"}],["path",{d:"m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"ijws7r"}],["path",{d:"M7 21h10",key:"1b0cd5"}],["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2",key:"3gwbw2"}]],D1=Se("Scale",sD);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const aD=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],mi=Se("Search",aD);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const oD=[["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"}]],M4=Se("Send",oD);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const lD=[["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"}]],nu=Se("Settings",lD);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const cD=[["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"}]],iy=Se("Share2",cD);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const uD=[["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"}]],L4=Se("ShieldCheck",uD);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const dD=[["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"}]],Vn=Se("Shield",dD);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const hD=[["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"}]],At=Se("Sparkles",hD);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const fD=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],Pn=Se("SquarePen",fD);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const mD=[["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"}]],ru=Se("Star",mD);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const pD=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]],gD=Se("Tag",pD);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const xD=[["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"}]],$a=Se("Target",xD);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const vD=[["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"}]],yD=Se("TestTube",vD);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const bD=[["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"}]],wt=Se("Trash2",bD);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const jD=[["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"}]],Ki=Se("TrendingUp",jD);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const wD=[["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"}]],Wo=Se("TriangleAlert",wD);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ND=[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]],B4=Se("Twitter",ND);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const kD=[["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"}]],z4=Se("Upload",kD);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const _D=[["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"}]],SD=Se("User",_D);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const AD=[["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"}]],pn=Se("Users",AD);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const CD=[["path",{d:"M8 22h8",key:"rmew8v"}],["path",{d:"M7 10h10",key:"1101jm"}],["path",{d:"M12 15v7",key:"t2xh3l"}],["path",{d:"M12 15a5 5 0 0 0 5-5c0-2-.5-4-2-8H9c-1.5 4-2 6-2 8a5 5 0 0 0 5 5Z",key:"10ffi3"}]],ED=Se("Wine",CD);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const TD=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ht=Se("X",TD);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const OD=[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]],iu=Se("Youtube",OD);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const PD=[["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"}]],di=Se("Zap",PD),sy="-",DD=t=>{const n=RD(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:i}=t;return{getClassGroupId:o=>{const c=o.split(sy);return c[0]===""&&c.length!==1&&c.shift(),q4(c,n)||ID(o)},getConflictingClassGroupIds:(o,c)=>{const d=r[o]||[];return c&&i[o]?[...d,...i[o]]:d}}},q4=(t,n)=>{var o;if(t.length===0)return n.classGroupId;const r=t[0],i=n.nextPart.get(r),s=i?q4(t.slice(1),i):void 0;if(s)return s;if(n.validators.length===0)return;const a=t.join(sy);return(o=n.validators.find(({validator:c})=>c(a)))==null?void 0:o.classGroupId},I1=/^\[(.+)\]$/,ID=t=>{if(I1.test(t)){const n=I1.exec(t)[1],r=n==null?void 0:n.substring(0,n.indexOf(":"));if(r)return"arbitrary.."+r}},RD=t=>{const{theme:n,classGroups:r}=t,i={nextPart:new Map,validators:[]};for(const s in r)Ov(r[s],i,s,n);return i},Ov=(t,n,r,i)=>{t.forEach(s=>{if(typeof s=="string"){const a=s===""?n:R1(n,s);a.classGroupId=r;return}if(typeof s=="function"){if(FD(s)){Ov(s(i),n,r,i);return}n.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([a,o])=>{Ov(o,R1(n,a),r,i)})})},R1=(t,n)=>{let r=t;return n.split(sy).forEach(i=>{r.nextPart.has(i)||r.nextPart.set(i,{nextPart:new Map,validators:[]}),r=r.nextPart.get(i)}),r},FD=t=>t.isThemeGetter,MD=t=>{if(t<1)return{get:()=>{},set:()=>{}};let n=0,r=new Map,i=new Map;const s=(a,o)=>{r.set(a,o),n++,n>t&&(n=0,i=r,r=new Map)};return{get(a){let o=r.get(a);if(o!==void 0)return o;if((o=i.get(a))!==void 0)return s(a,o),o},set(a,o){r.has(a)?r.set(a,o):s(a,o)}}},Pv="!",Dv=":",LD=Dv.length,BD=t=>{const{prefix:n,experimentalParseClassName:r}=t;let i=s=>{const a=[];let o=0,c=0,d=0,h;for(let y=0;y<s.length;y++){let j=s[y];if(o===0&&c===0){if(j===Dv){a.push(s.slice(d,y)),d=y+LD;continue}if(j==="/"){h=y;continue}}j==="["?o++:j==="]"?o--:j==="("?c++:j===")"&&c--}const f=a.length===0?s:s.substring(d),m=zD(f),p=m!==f,g=h&&h>d?h-d:void 0;return{modifiers:a,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:g}};if(n){const s=n+Dv,a=i;i=o=>o.startsWith(s)?a(o.substring(s.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:o,maybePostfixModifierPosition:void 0}}if(r){const s=i;i=a=>r({className:a,parseClassName:s})}return i},zD=t=>t.endsWith(Pv)?t.substring(0,t.length-1):t.startsWith(Pv)?t.substring(1):t,qD=t=>{const n=Object.fromEntries(t.orderSensitiveModifiers.map(i=>[i,!0]));return i=>{if(i.length<=1)return i;const s=[];let a=[];return i.forEach(o=>{o[0]==="["||n[o]?(s.push(...a.sort(),o),a=[]):a.push(o)}),s.push(...a.sort()),s}},VD=t=>({cache:MD(t.cacheSize),parseClassName:BD(t),sortModifiers:qD(t),...DD(t)}),UD=/\s+/,$D=(t,n)=>{const{parseClassName:r,getClassGroupId:i,getConflictingClassGroupIds:s,sortModifiers:a}=n,o=[],c=t.trim().split(UD);let d="";for(let h=c.length-1;h>=0;h-=1){const f=c[h],{isExternal:m,modifiers:p,hasImportantModifier:g,baseClassName:y,maybePostfixModifierPosition:j}=r(f);if(m){d=f+(d.length>0?" "+d:d);continue}let v=!!j,x=i(v?y.substring(0,j):y);if(!x){if(!v){d=f+(d.length>0?" "+d:d);continue}if(x=i(y),!x){d=f+(d.length>0?" "+d:d);continue}v=!1}const N=a(p).join(":"),w=g?N+Pv:N,k=w+x;if(o.includes(k))continue;o.push(k);const A=s(x,v);for(let S=0;S<A.length;++S){const E=A[S];o.push(w+E)}d=f+(d.length>0?" "+d:d)}return d};function HD(){let t=0,n,r,i="";for(;t<arguments.length;)(n=arguments[t++])&&(r=V4(n))&&(i&&(i+=" "),i+=r);return i}const V4=t=>{if(typeof t=="string")return t;let n,r="";for(let i=0;i<t.length;i++)t[i]&&(n=V4(t[i]))&&(r&&(r+=" "),r+=n);return r};function WD(t,...n){let r,i,s,a=o;function o(d){const h=n.reduce((f,m)=>m(f),t());return r=VD(h),i=r.cache.get,s=r.cache.set,a=c,c(d)}function c(d){const h=i(d);if(h)return h;const f=$D(d,r);return s(d,f),f}return function(){return a(HD.apply(null,arguments))}}const hn=t=>{const n=r=>r[t]||[];return n.isThemeGetter=!0,n},U4=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,$4=/^\((?:(\w[\w-]*):)?(.+)\)$/i,KD=/^\d+\/\d+$/,GD=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,QD=/\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$/,YD=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,XD=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,JD=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Eo=t=>KD.test(t),ct=t=>!!t&&!Number.isNaN(Number(t)),Ns=t=>!!t&&Number.isInteger(Number(t)),$p=t=>t.endsWith("%")&&ct(t.slice(0,-1)),Ri=t=>GD.test(t),ZD=()=>!0,eI=t=>QD.test(t)&&!YD.test(t),H4=()=>!1,tI=t=>XD.test(t),nI=t=>JD.test(t),rI=t=>!ze(t)&&!qe(t),iI=t=>jl(t,G4,H4),ze=t=>U4.test(t),ya=t=>jl(t,Q4,eI),Hp=t=>jl(t,cI,ct),F1=t=>jl(t,W4,H4),sI=t=>jl(t,K4,nI),th=t=>jl(t,Y4,tI),qe=t=>$4.test(t),bc=t=>wl(t,Q4),aI=t=>wl(t,uI),M1=t=>wl(t,W4),oI=t=>wl(t,G4),lI=t=>wl(t,K4),nh=t=>wl(t,Y4,!0),jl=(t,n,r)=>{const i=U4.exec(t);return i?i[1]?n(i[1]):r(i[2]):!1},wl=(t,n,r=!1)=>{const i=$4.exec(t);return i?i[1]?n(i[1]):r:!1},W4=t=>t==="position"||t==="percentage",K4=t=>t==="image"||t==="url",G4=t=>t==="length"||t==="size"||t==="bg-size",Q4=t=>t==="length",cI=t=>t==="number",uI=t=>t==="family-name",Y4=t=>t==="shadow",dI=()=>{const t=hn("color"),n=hn("font"),r=hn("text"),i=hn("font-weight"),s=hn("tracking"),a=hn("leading"),o=hn("breakpoint"),c=hn("container"),d=hn("spacing"),h=hn("radius"),f=hn("shadow"),m=hn("inset-shadow"),p=hn("text-shadow"),g=hn("drop-shadow"),y=hn("blur"),j=hn("perspective"),v=hn("aspect"),x=hn("ease"),N=hn("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],A=()=>[...k(),qe,ze],S=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto","contain","none"],C=()=>[qe,ze,d],B=()=>[Eo,"full","auto",...C()],F=()=>[Ns,"none","subgrid",qe,ze],I=()=>["auto",{span:["full",Ns,qe,ze]},Ns,qe,ze],R=()=>[Ns,"auto",qe,ze],z=()=>["auto","min","max","fr",qe,ze],q=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],U=()=>["start","end","center","stretch","center-safe","end-safe"],Q=()=>["auto",...C()],H=()=>[Eo,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],K=()=>[t,qe,ze],Y=()=>[...k(),M1,F1,{position:[qe,ze]}],P=()=>["no-repeat",{repeat:["","x","y","space","round"]}],T=()=>["auto","cover","contain",oI,iI,{size:[qe,ze]}],V=()=>[$p,bc,ya],L=()=>["","none","full",h,qe,ze],X=()=>["",ct,bc,ya],J=()=>["solid","dashed","dotted","double"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],G=()=>[ct,$p,M1,F1],ee=()=>["","none",y,qe,ze],ne=()=>["none",ct,qe,ze],le=()=>["none",ct,qe,ze],ve=()=>[ct,qe,ze],be=()=>[Eo,"full",...C()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ri],breakpoint:[Ri],color:[ZD],container:[Ri],"drop-shadow":[Ri],ease:["in","out","in-out"],font:[rI],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ri],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ri],shadow:[Ri],spacing:["px",ct],text:[Ri],"text-shadow":[Ri],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Eo,ze,qe,v]}],container:["container"],columns:[{columns:[ct,ze,qe,c]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"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"],sr:["sr-only","not-sr-only"],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:A()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:B()}],"inset-x":[{"inset-x":B()}],"inset-y":[{"inset-y":B()}],start:[{start:B()}],end:[{end:B()}],top:[{top:B()}],right:[{right:B()}],bottom:[{bottom:B()}],left:[{left:B()}],visibility:["visible","invisible","collapse"],z:[{z:[Ns,"auto",qe,ze]}],basis:[{basis:[Eo,"full","auto",c,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ct,Eo,"auto","initial","none",ze]}],grow:[{grow:["",ct,qe,ze]}],shrink:[{shrink:["",ct,qe,ze]}],order:[{order:[Ns,"first","last","none",qe,ze]}],"grid-cols":[{"grid-cols":F()}],"col-start-end":[{col:I()}],"col-start":[{"col-start":R()}],"col-end":[{"col-end":R()}],"grid-rows":[{"grid-rows":F()}],"row-start-end":[{row:I()}],"row-start":[{"row-start":R()}],"row-end":[{"row-end":R()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":z()}],"auto-rows":[{"auto-rows":z()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...q(),"normal"]}],"justify-items":[{"justify-items":[...U(),"normal"]}],"justify-self":[{"justify-self":["auto",...U()]}],"align-content":[{content:["normal",...q()]}],"align-items":[{items:[...U(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...U(),{baseline:["","last"]}]}],"place-content":[{"place-content":q()}],"place-items":[{"place-items":[...U(),"baseline"]}],"place-self":[{"place-self":["auto",...U()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:Q()}],mx:[{mx:Q()}],my:[{my:Q()}],ms:[{ms:Q()}],me:[{me:Q()}],mt:[{mt:Q()}],mr:[{mr:Q()}],mb:[{mb:Q()}],ml:[{ml:Q()}],"space-x":[{"space-x":C()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":C()}],"space-y-reverse":["space-y-reverse"],size:[{size:H()}],w:[{w:[c,"screen",...H()]}],"min-w":[{"min-w":[c,"screen","none",...H()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[o]},...H()]}],h:[{h:["screen","lh",...H()]}],"min-h":[{"min-h":["screen","lh","none",...H()]}],"max-h":[{"max-h":["screen","lh",...H()]}],"font-size":[{text:["base",r,bc,ya]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,qe,Hp]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",$p,ze]}],"font-family":[{font:[aI,ze,n]}],"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:[s,qe,ze]}],"line-clamp":[{"line-clamp":[ct,"none",qe,Hp]}],leading:[{leading:[a,...C()]}],"list-image":[{"list-image":["none",qe,ze]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",qe,ze]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:K()}],"text-color":[{text:K()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...J(),"wavy"]}],"text-decoration-thickness":[{decoration:[ct,"from-font","auto",qe,ya]}],"text-decoration-color":[{decoration:K()}],"underline-offset":[{"underline-offset":[ct,"auto",qe,ze]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",qe,ze]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",qe,ze]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Y()}],"bg-repeat":[{bg:P()}],"bg-size":[{bg:T()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ns,qe,ze],radial:["",qe,ze],conic:[Ns,qe,ze]},lI,sI]}],"bg-color":[{bg:K()}],"gradient-from-pos":[{from:V()}],"gradient-via-pos":[{via:V()}],"gradient-to-pos":[{to:V()}],"gradient-from":[{from:K()}],"gradient-via":[{via:K()}],"gradient-to":[{to:K()}],rounded:[{rounded:L()}],"rounded-s":[{"rounded-s":L()}],"rounded-e":[{"rounded-e":L()}],"rounded-t":[{"rounded-t":L()}],"rounded-r":[{"rounded-r":L()}],"rounded-b":[{"rounded-b":L()}],"rounded-l":[{"rounded-l":L()}],"rounded-ss":[{"rounded-ss":L()}],"rounded-se":[{"rounded-se":L()}],"rounded-ee":[{"rounded-ee":L()}],"rounded-es":[{"rounded-es":L()}],"rounded-tl":[{"rounded-tl":L()}],"rounded-tr":[{"rounded-tr":L()}],"rounded-br":[{"rounded-br":L()}],"rounded-bl":[{"rounded-bl":L()}],"border-w":[{border:X()}],"border-w-x":[{"border-x":X()}],"border-w-y":[{"border-y":X()}],"border-w-s":[{"border-s":X()}],"border-w-e":[{"border-e":X()}],"border-w-t":[{"border-t":X()}],"border-w-r":[{"border-r":X()}],"border-w-b":[{"border-b":X()}],"border-w-l":[{"border-l":X()}],"divide-x":[{"divide-x":X()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":X()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...J(),"hidden","none"]}],"divide-style":[{divide:[...J(),"hidden","none"]}],"border-color":[{border:K()}],"border-color-x":[{"border-x":K()}],"border-color-y":[{"border-y":K()}],"border-color-s":[{"border-s":K()}],"border-color-e":[{"border-e":K()}],"border-color-t":[{"border-t":K()}],"border-color-r":[{"border-r":K()}],"border-color-b":[{"border-b":K()}],"border-color-l":[{"border-l":K()}],"divide-color":[{divide:K()}],"outline-style":[{outline:[...J(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ct,qe,ze]}],"outline-w":[{outline:["",ct,bc,ya]}],"outline-color":[{outline:K()}],shadow:[{shadow:["","none",f,nh,th]}],"shadow-color":[{shadow:K()}],"inset-shadow":[{"inset-shadow":["none",m,nh,th]}],"inset-shadow-color":[{"inset-shadow":K()}],"ring-w":[{ring:X()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:K()}],"ring-offset-w":[{"ring-offset":[ct,ya]}],"ring-offset-color":[{"ring-offset":K()}],"inset-ring-w":[{"inset-ring":X()}],"inset-ring-color":[{"inset-ring":K()}],"text-shadow":[{"text-shadow":["none",p,nh,th]}],"text-shadow-color":[{"text-shadow":K()}],opacity:[{opacity:[ct,qe,ze]}],"mix-blend":[{"mix-blend":[...W(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":W()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ct]}],"mask-image-linear-from-pos":[{"mask-linear-from":G()}],"mask-image-linear-to-pos":[{"mask-linear-to":G()}],"mask-image-linear-from-color":[{"mask-linear-from":K()}],"mask-image-linear-to-color":[{"mask-linear-to":K()}],"mask-image-t-from-pos":[{"mask-t-from":G()}],"mask-image-t-to-pos":[{"mask-t-to":G()}],"mask-image-t-from-color":[{"mask-t-from":K()}],"mask-image-t-to-color":[{"mask-t-to":K()}],"mask-image-r-from-pos":[{"mask-r-from":G()}],"mask-image-r-to-pos":[{"mask-r-to":G()}],"mask-image-r-from-color":[{"mask-r-from":K()}],"mask-image-r-to-color":[{"mask-r-to":K()}],"mask-image-b-from-pos":[{"mask-b-from":G()}],"mask-image-b-to-pos":[{"mask-b-to":G()}],"mask-image-b-from-color":[{"mask-b-from":K()}],"mask-image-b-to-color":[{"mask-b-to":K()}],"mask-image-l-from-pos":[{"mask-l-from":G()}],"mask-image-l-to-pos":[{"mask-l-to":G()}],"mask-image-l-from-color":[{"mask-l-from":K()}],"mask-image-l-to-color":[{"mask-l-to":K()}],"mask-image-x-from-pos":[{"mask-x-from":G()}],"mask-image-x-to-pos":[{"mask-x-to":G()}],"mask-image-x-from-color":[{"mask-x-from":K()}],"mask-image-x-to-color":[{"mask-x-to":K()}],"mask-image-y-from-pos":[{"mask-y-from":G()}],"mask-image-y-to-pos":[{"mask-y-to":G()}],"mask-image-y-from-color":[{"mask-y-from":K()}],"mask-image-y-to-color":[{"mask-y-to":K()}],"mask-image-radial":[{"mask-radial":[qe,ze]}],"mask-image-radial-from-pos":[{"mask-radial-from":G()}],"mask-image-radial-to-pos":[{"mask-radial-to":G()}],"mask-image-radial-from-color":[{"mask-radial-from":K()}],"mask-image-radial-to-color":[{"mask-radial-to":K()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":k()}],"mask-image-conic-pos":[{"mask-conic":[ct]}],"mask-image-conic-from-pos":[{"mask-conic-from":G()}],"mask-image-conic-to-pos":[{"mask-conic-to":G()}],"mask-image-conic-from-color":[{"mask-conic-from":K()}],"mask-image-conic-to-color":[{"mask-conic-to":K()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Y()}],"mask-repeat":[{mask:P()}],"mask-size":[{mask:T()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",qe,ze]}],filter:[{filter:["","none",qe,ze]}],blur:[{blur:ee()}],brightness:[{brightness:[ct,qe,ze]}],contrast:[{contrast:[ct,qe,ze]}],"drop-shadow":[{"drop-shadow":["","none",g,nh,th]}],"drop-shadow-color":[{"drop-shadow":K()}],grayscale:[{grayscale:["",ct,qe,ze]}],"hue-rotate":[{"hue-rotate":[ct,qe,ze]}],invert:[{invert:["",ct,qe,ze]}],saturate:[{saturate:[ct,qe,ze]}],sepia:[{sepia:["",ct,qe,ze]}],"backdrop-filter":[{"backdrop-filter":["","none",qe,ze]}],"backdrop-blur":[{"backdrop-blur":ee()}],"backdrop-brightness":[{"backdrop-brightness":[ct,qe,ze]}],"backdrop-contrast":[{"backdrop-contrast":[ct,qe,ze]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ct,qe,ze]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ct,qe,ze]}],"backdrop-invert":[{"backdrop-invert":["",ct,qe,ze]}],"backdrop-opacity":[{"backdrop-opacity":[ct,qe,ze]}],"backdrop-saturate":[{"backdrop-saturate":[ct,qe,ze]}],"backdrop-sepia":[{"backdrop-sepia":["",ct,qe,ze]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",qe,ze]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ct,"initial",qe,ze]}],ease:[{ease:["linear","initial",x,qe,ze]}],delay:[{delay:[ct,qe,ze]}],animate:[{animate:["none",N,qe,ze]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[j,qe,ze]}],"perspective-origin":[{"perspective-origin":A()}],rotate:[{rotate:ne()}],"rotate-x":[{"rotate-x":ne()}],"rotate-y":[{"rotate-y":ne()}],"rotate-z":[{"rotate-z":ne()}],scale:[{scale:le()}],"scale-x":[{"scale-x":le()}],"scale-y":[{"scale-y":le()}],"scale-z":[{"scale-z":le()}],"scale-3d":["scale-3d"],skew:[{skew:ve()}],"skew-x":[{"skew-x":ve()}],"skew-y":[{"skew-y":ve()}],transform:[{transform:[qe,ze,"","none","gpu","cpu"]}],"transform-origin":[{origin:A()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:be()}],"translate-x":[{"translate-x":be()}],"translate-y":[{"translate-y":be()}],"translate-z":[{"translate-z":be()}],"translate-none":["translate-none"],accent:[{accent:K()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:K()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",qe,ze]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"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"]}],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",qe,ze]}],fill:[{fill:["none",...K()]}],"stroke-w":[{stroke:[ct,bc,ya,Hp]}],stroke:[{stroke:["none",...K()]}],"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-x","border-w-y","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-x","border-color-y","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},hI=WD(dI);function Yt(...t){return hI(_4(t))}const X4=D.forwardRef(({...t},n)=>e.jsx("div",{ref:n,className:"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]",...t}));X4.displayName="ToastProvider";const J4=D.forwardRef(({...t},n)=>e.jsx("div",{ref:n,className:"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]",...t}));J4.displayName="ToastViewport";const fI=S4("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"}}),Z4=D.forwardRef(({className:t,variant:n,...r},i)=>e.jsx("div",{ref:i,className:Yt(fI({variant:n}),t),...r}));Z4.displayName="Toast";const mI=D.forwardRef(({className:t,...n},r)=>e.jsx("div",{ref:r,className:Yt("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 hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",t),...n}));mI.displayName="ToastAction";const eA=D.forwardRef(({className:t,...n},r)=>e.jsx("button",{ref:r,className:Yt("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",t),"toast-close":"",...n,children:e.jsx(Ht,{className:"h-4 w-4"})}));eA.displayName="ToastClose";const tA=D.forwardRef(({className:t,...n},r)=>e.jsx("div",{ref:r,className:Yt("text-sm font-semibold",t),...n}));tA.displayName="ToastTitle";const nA=D.forwardRef(({className:t,...n},r)=>e.jsx("div",{ref:r,className:Yt("text-sm opacity-90",t),...n}));nA.displayName="ToastDescription";function pI(){const{toasts:t}=mP();return e.jsxs(X4,{children:[t.map(function({id:n,title:r,description:i,action:s,...a}){return e.jsxs(Z4,{...a,children:[e.jsxs("div",{className:"grid gap-1",children:[r&&e.jsx(tA,{children:r}),i&&e.jsx(nA,{children:i})]}),s,e.jsx(eA,{})]},n)}),e.jsx(J4,{})]})}var Nl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},gI={setTimeout:(t,n)=>setTimeout(t,n),clearTimeout:t=>clearTimeout(t),setInterval:(t,n)=>setInterval(t,n),clearInterval:t=>clearInterval(t)},Es,ey,f4,xI=(f4=class{constructor(){Ke(this,Es,gI);Ke(this,ey,!1)}setTimeoutProvider(t){Ie(this,Es,t)}setTimeout(t,n){return re(this,Es).setTimeout(t,n)}clearTimeout(t){re(this,Es).clearTimeout(t)}setInterval(t,n){return re(this,Es).setInterval(t,n)}clearInterval(t){re(this,Es).clearInterval(t)}},Es=new WeakMap,ey=new WeakMap,f4),Ca=new xI;function vI(t){setTimeout(t,0)}var Ha=typeof window>"u"||"Deno"in globalThis;function qn(){}function yI(t,n){return typeof t=="function"?t(n):t}function Iv(t){return typeof t=="number"&&t>=0&&t!==1/0}function rA(t,n){return Math.max(t+(n||0)-Date.now(),0)}function Vs(t,n){return typeof t=="function"?t(n):t}function Sr(t,n){return typeof t=="function"?t(n):t}function L1(t,n){const{type:r="all",exact:i,fetchStatus:s,predicate:a,queryKey:o,stale:c}=t;if(o){if(i){if(n.queryHash!==ay(o,n.options))return!1}else if(!su(n.queryKey,o))return!1}if(r!=="all"){const d=n.isActive();if(r==="active"&&!d||r==="inactive"&&d)return!1}return!(typeof c=="boolean"&&n.isStale()!==c||s&&s!==n.state.fetchStatus||a&&!a(n))}function B1(t,n){const{exact:r,status:i,predicate:s,mutationKey:a}=t;if(a){if(!n.options.mutationKey)return!1;if(r){if(Wa(n.options.mutationKey)!==Wa(a))return!1}else if(!su(n.options.mutationKey,a))return!1}return!(i&&n.state.status!==i||s&&!s(n))}function ay(t,n){return((n==null?void 0:n.queryKeyHashFn)||Wa)(t)}function Wa(t){return JSON.stringify(t,(n,r)=>Rv(r)?Object.keys(r).sort().reduce((i,s)=>(i[s]=r[s],i),{}):r)}function su(t,n){return t===n?!0:typeof t!=typeof n?!1:t&&n&&typeof t=="object"&&typeof n=="object"?Object.keys(n).every(r=>su(t[r],n[r])):!1}var bI=Object.prototype.hasOwnProperty;function iA(t,n){if(t===n)return t;const r=z1(t)&&z1(n);if(!r&&!(Rv(t)&&Rv(n)))return n;const s=(r?t:Object.keys(t)).length,a=r?n:Object.keys(n),o=a.length,c=r?new Array(o):{};let d=0;for(let h=0;h<o;h++){const f=r?h:a[h],m=t[f],p=n[f];if(m===p){c[f]=m,(r?h<s:bI.call(t,f))&&d++;continue}if(m===null||p===null||typeof m!="object"||typeof p!="object"){c[f]=p;continue}const g=iA(m,p);c[f]=g,g===m&&d++}return s===o&&d===s?t:c}function Vh(t,n){if(!n||Object.keys(t).length!==Object.keys(n).length)return!1;for(const r in t)if(t[r]!==n[r])return!1;return!0}function z1(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function Rv(t){if(!q1(t))return!1;const n=t.constructor;if(n===void 0)return!0;const r=n.prototype;return!(!q1(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function q1(t){return Object.prototype.toString.call(t)==="[object Object]"}function jI(t){return new Promise(n=>{Ca.setTimeout(n,t)})}function Fv(t,n,r){return typeof r.structuralSharing=="function"?r.structuralSharing(t,n):r.structuralSharing!==!1?iA(t,n):n}function wI(t,n,r=0){const i=[...t,n];return r&&i.length>r?i.slice(1):i}function NI(t,n,r=0){const i=[n,...t];return r&&i.length>r?i.slice(0,-1):i}var oy=Symbol();function sA(t,n){return!t.queryFn&&(n!=null&&n.initialPromise)?()=>n.initialPromise:!t.queryFn||t.queryFn===oy?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function aA(t,n){return typeof t=="function"?t(...n):!!t}var Oa,Ts,Zo,m4,kI=(m4=class extends Nl{constructor(){super();Ke(this,Oa);Ke(this,Ts);Ke(this,Zo);Ie(this,Zo,n=>{if(!Ha&&window.addEventListener){const r=()=>n();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){re(this,Ts)||this.setEventListener(re(this,Zo))}onUnsubscribe(){var n;this.hasListeners()||((n=re(this,Ts))==null||n.call(this),Ie(this,Ts,void 0))}setEventListener(n){var r;Ie(this,Zo,n),(r=re(this,Ts))==null||r.call(this),Ie(this,Ts,n(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(n){re(this,Oa)!==n&&(Ie(this,Oa,n),this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(r=>{r(n)})}isFocused(){var n;return typeof re(this,Oa)=="boolean"?re(this,Oa):((n=globalThis.document)==null?void 0:n.visibilityState)!=="hidden"}},Oa=new WeakMap,Ts=new WeakMap,Zo=new WeakMap,m4),ly=new kI;function Mv(){let t,n;const r=new Promise((s,a)=>{t=s,n=a});r.status="pending",r.catch(()=>{});function i(s){Object.assign(r,s),delete r.resolve,delete r.reject}return r.resolve=s=>{i({status:"fulfilled",value:s}),t(s)},r.reject=s=>{i({status:"rejected",reason:s}),n(s)},r}var _I=vI;function SI(){let t=[],n=0,r=c=>{c()},i=c=>{c()},s=_I;const a=c=>{n?t.push(c):s(()=>{r(c)})},o=()=>{const c=t;t=[],c.length&&s(()=>{i(()=>{c.forEach(d=>{r(d)})})})};return{batch:c=>{let d;n++;try{d=c()}finally{n--,n||o()}return d},batchCalls:c=>(...d)=>{a(()=>{c(...d)})},schedule:a,setNotifyFunction:c=>{r=c},setBatchNotifyFunction:c=>{i=c},setScheduler:c=>{s=c}}}var fn=SI(),el,Os,tl,p4,AI=(p4=class extends Nl{constructor(){super();Ke(this,el,!0);Ke(this,Os);Ke(this,tl);Ie(this,tl,n=>{if(!Ha&&window.addEventListener){const r=()=>n(!0),i=()=>n(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",i)}}})}onSubscribe(){re(this,Os)||this.setEventListener(re(this,tl))}onUnsubscribe(){var n;this.hasListeners()||((n=re(this,Os))==null||n.call(this),Ie(this,Os,void 0))}setEventListener(n){var r;Ie(this,tl,n),(r=re(this,Os))==null||r.call(this),Ie(this,Os,n(this.setOnline.bind(this)))}setOnline(n){re(this,el)!==n&&(Ie(this,el,n),this.listeners.forEach(i=>{i(n)}))}isOnline(){return re(this,el)}},el=new WeakMap,Os=new WeakMap,tl=new WeakMap,p4),Uh=new AI;function CI(t){return Math.min(1e3*2**t,3e4)}function oA(t){return(t??"online")==="online"?Uh.isOnline():!0}var Lv=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function lA(t){let n=!1,r=0,i;const s=Mv(),a=()=>s.status!=="pending",o=j=>{var v;if(!a()){const x=new Lv(j);p(x),(v=t.onCancel)==null||v.call(t,x)}},c=()=>{n=!0},d=()=>{n=!1},h=()=>ly.isFocused()&&(t.networkMode==="always"||Uh.isOnline())&&t.canRun(),f=()=>oA(t.networkMode)&&t.canRun(),m=j=>{a()||(i==null||i(),s.resolve(j))},p=j=>{a()||(i==null||i(),s.reject(j))},g=()=>new Promise(j=>{var v;i=x=>{(a()||h())&&j(x)},(v=t.onPause)==null||v.call(t)}).then(()=>{var j;i=void 0,a()||(j=t.onContinue)==null||j.call(t)}),y=()=>{if(a())return;let j;const v=r===0?t.initialPromise:void 0;try{j=v??t.fn()}catch(x){j=Promise.reject(x)}Promise.resolve(j).then(m).catch(x=>{var S;if(a())return;const N=t.retry??(Ha?0:3),w=t.retryDelay??CI,k=typeof w=="function"?w(r,x):w,A=N===!0||typeof N=="number"&&r<N||typeof N=="function"&&N(r,x);if(n||!A){p(x);return}r++,(S=t.onFail)==null||S.call(t,r,x),jI(k).then(()=>h()?void 0:g()).then(()=>{n?p(x):y()})})};return{promise:s,status:()=>s.status,cancel:o,continue:()=>(i==null||i(),s),cancelRetry:c,continueRetry:d,canStart:f,start:()=>(f()?y():g().then(y),s)}}var Pa,g4,cA=(g4=class{constructor(){Ke(this,Pa)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Iv(this.gcTime)&&Ie(this,Pa,Ca.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(Ha?1/0:300*1e3))}clearGcTimeout(){re(this,Pa)&&(Ca.clearTimeout(re(this,Pa)),Ie(this,Pa,void 0))}},Pa=new WeakMap,g4),Da,nl,_r,Ia,yn,bu,Ra,Ur,Mi,x4,EI=(x4=class extends cA{constructor(n){super();Ke(this,Ur);Ke(this,Da);Ke(this,nl);Ke(this,_r);Ke(this,Ia);Ke(this,yn);Ke(this,bu);Ke(this,Ra);Ie(this,Ra,!1),Ie(this,bu,n.defaultOptions),this.setOptions(n.options),this.observers=[],Ie(this,Ia,n.client),Ie(this,_r,re(this,Ia).getQueryCache()),this.queryKey=n.queryKey,this.queryHash=n.queryHash,Ie(this,Da,V1(this.options)),this.state=n.state??re(this,Da),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var n;return(n=re(this,yn))==null?void 0:n.promise}setOptions(n){if(this.options={...re(this,bu),...n},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=V1(this.options);r.data!==void 0&&(this.setData(r.data,{updatedAt:r.dataUpdatedAt,manual:!0}),Ie(this,Da,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&re(this,_r).remove(this)}setData(n,r){const i=Fv(this.state.data,n,this.options);return lt(this,Ur,Mi).call(this,{data:i,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),i}setState(n,r){lt(this,Ur,Mi).call(this,{type:"setState",state:n,setStateOptions:r})}cancel(n){var i,s;const r=(i=re(this,yn))==null?void 0:i.promise;return(s=re(this,yn))==null||s.cancel(n),r?r.then(qn).catch(qn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(re(this,Da))}isActive(){return this.observers.some(n=>Sr(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===oy||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>Vs(n.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(n=0){return this.state.data===void 0?!0:n==="static"?!1:this.state.isInvalidated?!0:!rA(this.state.dataUpdatedAt,n)}onFocus(){var r;const n=this.observers.find(i=>i.shouldFetchOnWindowFocus());n==null||n.refetch({cancelRefetch:!1}),(r=re(this,yn))==null||r.continue()}onOnline(){var r;const n=this.observers.find(i=>i.shouldFetchOnReconnect());n==null||n.refetch({cancelRefetch:!1}),(r=re(this,yn))==null||r.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),re(this,_r).notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(r=>r!==n),this.observers.length||(re(this,yn)&&(re(this,Ra)?re(this,yn).cancel({revert:!0}):re(this,yn).cancelRetry()),this.scheduleGc()),re(this,_r).notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||lt(this,Ur,Mi).call(this,{type:"invalidate"})}async fetch(n,r){var d,h,f,m,p,g,y,j,v,x,N,w;if(this.state.fetchStatus!=="idle"&&((d=re(this,yn))==null?void 0:d.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(re(this,yn))return re(this,yn).continueRetry(),re(this,yn).promise}if(n&&this.setOptions(n),!this.options.queryFn){const k=this.observers.find(A=>A.options.queryFn);k&&this.setOptions(k.options)}const i=new AbortController,s=k=>{Object.defineProperty(k,"signal",{enumerable:!0,get:()=>(Ie(this,Ra,!0),i.signal)})},a=()=>{const k=sA(this.options,r),S=(()=>{const E={client:re(this,Ia),queryKey:this.queryKey,meta:this.meta};return s(E),E})();return Ie(this,Ra,!1),this.options.persister?this.options.persister(k,S,this):k(S)},c=(()=>{const k={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:re(this,Ia),state:this.state,fetchFn:a};return s(k),k})();(h=this.options.behavior)==null||h.onFetch(c,this),Ie(this,nl,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=c.fetchOptions)==null?void 0:f.meta))&<(this,Ur,Mi).call(this,{type:"fetch",meta:(m=c.fetchOptions)==null?void 0:m.meta}),Ie(this,yn,lA({initialPromise:r==null?void 0:r.initialPromise,fn:c.fetchFn,onCancel:k=>{k instanceof Lv&&k.revert&&this.setState({...re(this,nl),fetchStatus:"idle"}),i.abort()},onFail:(k,A)=>{lt(this,Ur,Mi).call(this,{type:"failed",failureCount:k,error:A})},onPause:()=>{lt(this,Ur,Mi).call(this,{type:"pause"})},onContinue:()=>{lt(this,Ur,Mi).call(this,{type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0}));try{const k=await re(this,yn).start();if(k===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(k),(g=(p=re(this,_r).config).onSuccess)==null||g.call(p,k,this),(j=(y=re(this,_r).config).onSettled)==null||j.call(y,k,this.state.error,this),k}catch(k){if(k instanceof Lv){if(k.silent)return re(this,yn).promise;if(k.revert){if(this.state.data===void 0)throw k;return this.state.data}}throw lt(this,Ur,Mi).call(this,{type:"error",error:k}),(x=(v=re(this,_r).config).onError)==null||x.call(v,k,this),(w=(N=re(this,_r).config).onSettled)==null||w.call(N,this.state.data,k,this),k}finally{this.scheduleGc()}}},Da=new WeakMap,nl=new WeakMap,_r=new WeakMap,Ia=new WeakMap,yn=new WeakMap,bu=new WeakMap,Ra=new WeakMap,Ur=new WeakSet,Mi=function(n){const r=i=>{switch(n.type){case"failed":return{...i,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...uA(i.data,this.options),fetchMeta:n.meta??null};case"success":const s={...i,data:n.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:n.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return Ie(this,nl,n.manual?s:void 0),s;case"error":const a=n.error;return{...i,error:a,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...n.state}}};this.state=r(this.state),fn.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),re(this,_r).notify({query:this,type:"updated",action:n})})},x4);function uA(t,n){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:oA(n.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function V1(t){const n=typeof t.initialData=="function"?t.initialData():t.initialData,r=n!==void 0,i=r?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:n,dataUpdateCount:0,dataUpdatedAt:r?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Jn,ft,ju,Bn,Fa,rl,Li,Ps,wu,il,sl,Ma,La,Ds,al,Ct,Dc,Bv,zv,qv,Vv,Uv,$v,Hv,dA,v4,TI=(v4=class extends Nl{constructor(n,r){super();Ke(this,Ct);Ke(this,Jn);Ke(this,ft);Ke(this,ju);Ke(this,Bn);Ke(this,Fa);Ke(this,rl);Ke(this,Li);Ke(this,Ps);Ke(this,wu);Ke(this,il);Ke(this,sl);Ke(this,Ma);Ke(this,La);Ke(this,Ds);Ke(this,al,new Set);this.options=r,Ie(this,Jn,n),Ie(this,Ps,null),Ie(this,Li,Mv()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(re(this,ft).addObserver(this),U1(re(this,ft),this.options)?lt(this,Ct,Dc).call(this):this.updateResult(),lt(this,Ct,Vv).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Wv(re(this,ft),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Wv(re(this,ft),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,lt(this,Ct,Uv).call(this),lt(this,Ct,$v).call(this),re(this,ft).removeObserver(this)}setOptions(n){const r=this.options,i=re(this,ft);if(this.options=re(this,Jn).defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Sr(this.options.enabled,re(this,ft))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");lt(this,Ct,Hv).call(this),re(this,ft).setOptions(this.options),r._defaulted&&!Vh(this.options,r)&&re(this,Jn).getQueryCache().notify({type:"observerOptionsUpdated",query:re(this,ft),observer:this});const s=this.hasListeners();s&&$1(re(this,ft),i,this.options,r)&<(this,Ct,Dc).call(this),this.updateResult(),s&&(re(this,ft)!==i||Sr(this.options.enabled,re(this,ft))!==Sr(r.enabled,re(this,ft))||Vs(this.options.staleTime,re(this,ft))!==Vs(r.staleTime,re(this,ft)))&<(this,Ct,Bv).call(this);const a=lt(this,Ct,zv).call(this);s&&(re(this,ft)!==i||Sr(this.options.enabled,re(this,ft))!==Sr(r.enabled,re(this,ft))||a!==re(this,Ds))&<(this,Ct,qv).call(this,a)}getOptimisticResult(n){const r=re(this,Jn).getQueryCache().build(re(this,Jn),n),i=this.createResult(r,n);return PI(this,i)&&(Ie(this,Bn,i),Ie(this,rl,this.options),Ie(this,Fa,re(this,ft).state)),i}getCurrentResult(){return re(this,Bn)}trackResult(n,r){return new Proxy(n,{get:(i,s)=>(this.trackProp(s),r==null||r(s),s==="promise"&&!this.options.experimental_prefetchInRender&&re(this,Li).status==="pending"&&re(this,Li).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(i,s))})}trackProp(n){re(this,al).add(n)}getCurrentQuery(){return re(this,ft)}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const r=re(this,Jn).defaultQueryOptions(n),i=re(this,Jn).getQueryCache().build(re(this,Jn),r);return i.fetch().then(()=>this.createResult(i,r))}fetch(n){return lt(this,Ct,Dc).call(this,{...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),re(this,Bn)))}createResult(n,r){var B;const i=re(this,ft),s=this.options,a=re(this,Bn),o=re(this,Fa),c=re(this,rl),h=n!==i?n.state:re(this,ju),{state:f}=n;let m={...f},p=!1,g;if(r._optimisticResults){const F=this.hasListeners(),I=!F&&U1(n,r),R=F&&$1(n,i,r,s);(I||R)&&(m={...m,...uA(f.data,n.options)}),r._optimisticResults==="isRestoring"&&(m.fetchStatus="idle")}let{error:y,errorUpdatedAt:j,status:v}=m;g=m.data;let x=!1;if(r.placeholderData!==void 0&&g===void 0&&v==="pending"){let F;a!=null&&a.isPlaceholderData&&r.placeholderData===(c==null?void 0:c.placeholderData)?(F=a.data,x=!0):F=typeof r.placeholderData=="function"?r.placeholderData((B=re(this,sl))==null?void 0:B.state.data,re(this,sl)):r.placeholderData,F!==void 0&&(v="success",g=Fv(a==null?void 0:a.data,F,r),p=!0)}if(r.select&&g!==void 0&&!x)if(a&&g===(o==null?void 0:o.data)&&r.select===re(this,wu))g=re(this,il);else try{Ie(this,wu,r.select),g=r.select(g),g=Fv(a==null?void 0:a.data,g,r),Ie(this,il,g),Ie(this,Ps,null)}catch(F){Ie(this,Ps,F)}re(this,Ps)&&(y=re(this,Ps),g=re(this,il),j=Date.now(),v="error");const N=m.fetchStatus==="fetching",w=v==="pending",k=v==="error",A=w&&N,S=g!==void 0,C={status:v,fetchStatus:m.fetchStatus,isPending:w,isSuccess:v==="success",isError:k,isInitialLoading:A,isLoading:A,data:g,dataUpdatedAt:m.dataUpdatedAt,error:y,errorUpdatedAt:j,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>h.dataUpdateCount||m.errorUpdateCount>h.errorUpdateCount,isFetching:N,isRefetching:N&&!w,isLoadingError:k&&!S,isPaused:m.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:k&&S,isStale:cy(n,r),refetch:this.refetch,promise:re(this,Li),isEnabled:Sr(r.enabled,n)!==!1};if(this.options.experimental_prefetchInRender){const F=z=>{C.status==="error"?z.reject(C.error):C.data!==void 0&&z.resolve(C.data)},I=()=>{const z=Ie(this,Li,C.promise=Mv());F(z)},R=re(this,Li);switch(R.status){case"pending":n.queryHash===i.queryHash&&F(R);break;case"fulfilled":(C.status==="error"||C.data!==R.value)&&I();break;case"rejected":(C.status!=="error"||C.error!==R.reason)&&I();break}}return C}updateResult(){const n=re(this,Bn),r=this.createResult(re(this,ft),this.options);if(Ie(this,Fa,re(this,ft).state),Ie(this,rl,this.options),re(this,Fa).data!==void 0&&Ie(this,sl,re(this,ft)),Vh(r,n))return;Ie(this,Bn,r);const i=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,a=typeof s=="function"?s():s;if(a==="all"||!a&&!re(this,al).size)return!0;const o=new Set(a??re(this,al));return this.options.throwOnError&&o.add("error"),Object.keys(re(this,Bn)).some(c=>{const d=c;return re(this,Bn)[d]!==n[d]&&o.has(d)})};lt(this,Ct,dA).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&<(this,Ct,Vv).call(this)}},Jn=new WeakMap,ft=new WeakMap,ju=new WeakMap,Bn=new WeakMap,Fa=new WeakMap,rl=new WeakMap,Li=new WeakMap,Ps=new WeakMap,wu=new WeakMap,il=new WeakMap,sl=new WeakMap,Ma=new WeakMap,La=new WeakMap,Ds=new WeakMap,al=new WeakMap,Ct=new WeakSet,Dc=function(n){lt(this,Ct,Hv).call(this);let r=re(this,ft).fetch(this.options,n);return n!=null&&n.throwOnError||(r=r.catch(qn)),r},Bv=function(){lt(this,Ct,Uv).call(this);const n=Vs(this.options.staleTime,re(this,ft));if(Ha||re(this,Bn).isStale||!Iv(n))return;const i=rA(re(this,Bn).dataUpdatedAt,n)+1;Ie(this,Ma,Ca.setTimeout(()=>{re(this,Bn).isStale||this.updateResult()},i))},zv=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(re(this,ft)):this.options.refetchInterval)??!1},qv=function(n){lt(this,Ct,$v).call(this),Ie(this,Ds,n),!(Ha||Sr(this.options.enabled,re(this,ft))===!1||!Iv(re(this,Ds))||re(this,Ds)===0)&&Ie(this,La,Ca.setInterval(()=>{(this.options.refetchIntervalInBackground||ly.isFocused())&<(this,Ct,Dc).call(this)},re(this,Ds)))},Vv=function(){lt(this,Ct,Bv).call(this),lt(this,Ct,qv).call(this,lt(this,Ct,zv).call(this))},Uv=function(){re(this,Ma)&&(Ca.clearTimeout(re(this,Ma)),Ie(this,Ma,void 0))},$v=function(){re(this,La)&&(Ca.clearInterval(re(this,La)),Ie(this,La,void 0))},Hv=function(){const n=re(this,Jn).getQueryCache().build(re(this,Jn),this.options);if(n===re(this,ft))return;const r=re(this,ft);Ie(this,ft,n),Ie(this,ju,n.state),this.hasListeners()&&(r==null||r.removeObserver(this),n.addObserver(this))},dA=function(n){fn.batch(()=>{n.listeners&&this.listeners.forEach(r=>{r(re(this,Bn))}),re(this,Jn).getQueryCache().notify({query:re(this,ft),type:"observerResultsUpdated"})})},v4);function OI(t,n){return Sr(n.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&n.retryOnMount===!1)}function U1(t,n){return OI(t,n)||t.state.data!==void 0&&Wv(t,n,n.refetchOnMount)}function Wv(t,n,r){if(Sr(n.enabled,t)!==!1&&Vs(n.staleTime,t)!=="static"){const i=typeof r=="function"?r(t):r;return i==="always"||i!==!1&&cy(t,n)}return!1}function $1(t,n,r,i){return(t!==n||Sr(i.enabled,t)===!1)&&(!r.suspense||t.state.status!=="error")&&cy(t,r)}function cy(t,n){return Sr(n.enabled,t)!==!1&&t.isStaleByTime(Vs(n.staleTime,t))}function PI(t,n){return!Vh(t.getCurrentResult(),n)}function H1(t){return{onFetch:(n,r)=>{var f,m,p,g,y;const i=n.options,s=(p=(m=(f=n.fetchOptions)==null?void 0:f.meta)==null?void 0:m.fetchMore)==null?void 0:p.direction,a=((g=n.state.data)==null?void 0:g.pages)||[],o=((y=n.state.data)==null?void 0:y.pageParams)||[];let c={pages:[],pageParams:[]},d=0;const h=async()=>{let j=!1;const v=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(n.signal.aborted?j=!0:n.signal.addEventListener("abort",()=>{j=!0}),n.signal)})},x=sA(n.options,n.fetchOptions),N=async(w,k,A)=>{if(j)return Promise.reject();if(k==null&&w.pages.length)return Promise.resolve(w);const E=(()=>{const I={client:n.client,queryKey:n.queryKey,pageParam:k,direction:A?"backward":"forward",meta:n.options.meta};return v(I),I})(),C=await x(E),{maxPages:B}=n.options,F=A?NI:wI;return{pages:F(w.pages,C,B),pageParams:F(w.pageParams,k,B)}};if(s&&a.length){const w=s==="backward",k=w?DI:W1,A={pages:a,pageParams:o},S=k(i,A);c=await N(A,S,w)}else{const w=t??a.length;do{const k=d===0?o[0]??i.initialPageParam:W1(i,c);if(d>0&&k==null)break;c=await N(c,k),d++}while(d<w)}return c};n.options.persister?n.fetchFn=()=>{var j,v;return(v=(j=n.options).persister)==null?void 0:v.call(j,h,{client:n.client,queryKey:n.queryKey,meta:n.options.meta,signal:n.signal},r)}:n.fetchFn=h}}}function W1(t,{pages:n,pageParams:r}){const i=n.length-1;return n.length>0?t.getNextPageParam(n[i],n,r[i],r):void 0}function DI(t,{pages:n,pageParams:r}){var i;return n.length>0?(i=t.getPreviousPageParam)==null?void 0:i.call(t,n[0],n,r[0],r):void 0}var Nu,ii,zn,Ba,si,Ss,y4,II=(y4=class extends cA{constructor(n){super();Ke(this,si);Ke(this,Nu);Ke(this,ii);Ke(this,zn);Ke(this,Ba);Ie(this,Nu,n.client),this.mutationId=n.mutationId,Ie(this,zn,n.mutationCache),Ie(this,ii,[]),this.state=n.state||hA(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){re(this,ii).includes(n)||(re(this,ii).push(n),this.clearGcTimeout(),re(this,zn).notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){Ie(this,ii,re(this,ii).filter(r=>r!==n)),this.scheduleGc(),re(this,zn).notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){re(this,ii).length||(this.state.status==="pending"?this.scheduleGc():re(this,zn).remove(this))}continue(){var n;return((n=re(this,Ba))==null?void 0:n.continue())??this.execute(this.state.variables)}async execute(n){var o,c,d,h,f,m,p,g,y,j,v,x,N,w,k,A,S,E,C,B;const r=()=>{lt(this,si,Ss).call(this,{type:"continue"})},i={client:re(this,Nu),meta:this.options.meta,mutationKey:this.options.mutationKey};Ie(this,Ba,lA({fn:()=>this.options.mutationFn?this.options.mutationFn(n,i):Promise.reject(new Error("No mutationFn found")),onFail:(F,I)=>{lt(this,si,Ss).call(this,{type:"failed",failureCount:F,error:I})},onPause:()=>{lt(this,si,Ss).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>re(this,zn).canRun(this)}));const s=this.state.status==="pending",a=!re(this,Ba).canStart();try{if(s)r();else{lt(this,si,Ss).call(this,{type:"pending",variables:n,isPaused:a}),await((c=(o=re(this,zn).config).onMutate)==null?void 0:c.call(o,n,this,i));const I=await((h=(d=this.options).onMutate)==null?void 0:h.call(d,n,i));I!==this.state.context&<(this,si,Ss).call(this,{type:"pending",context:I,variables:n,isPaused:a})}const F=await re(this,Ba).start();return await((m=(f=re(this,zn).config).onSuccess)==null?void 0:m.call(f,F,n,this.state.context,this,i)),await((g=(p=this.options).onSuccess)==null?void 0:g.call(p,F,n,this.state.context,i)),await((j=(y=re(this,zn).config).onSettled)==null?void 0:j.call(y,F,null,this.state.variables,this.state.context,this,i)),await((x=(v=this.options).onSettled)==null?void 0:x.call(v,F,null,n,this.state.context,i)),lt(this,si,Ss).call(this,{type:"success",data:F}),F}catch(F){try{throw await((w=(N=re(this,zn).config).onError)==null?void 0:w.call(N,F,n,this.state.context,this,i)),await((A=(k=this.options).onError)==null?void 0:A.call(k,F,n,this.state.context,i)),await((E=(S=re(this,zn).config).onSettled)==null?void 0:E.call(S,void 0,F,this.state.variables,this.state.context,this,i)),await((B=(C=this.options).onSettled)==null?void 0:B.call(C,void 0,F,n,this.state.context,i)),F}finally{lt(this,si,Ss).call(this,{type:"error",error:F})}}finally{re(this,zn).runNext(this)}}},Nu=new WeakMap,ii=new WeakMap,zn=new WeakMap,Ba=new WeakMap,si=new WeakSet,Ss=function(n){const r=i=>{switch(n.type){case"failed":return{...i,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...i,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:n.error,failureCount:i.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=r(this.state),fn.batch(()=>{re(this,ii).forEach(i=>{i.onMutationUpdate(n)}),re(this,zn).notify({mutation:this,type:"updated",action:n})})},y4);function hA(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Bi,$r,ku,b4,RI=(b4=class extends Nl{constructor(n={}){super();Ke(this,Bi);Ke(this,$r);Ke(this,ku);this.config=n,Ie(this,Bi,new Set),Ie(this,$r,new Map),Ie(this,ku,0)}build(n,r,i){const s=new II({client:n,mutationCache:this,mutationId:++Jd(this,ku)._,options:n.defaultMutationOptions(r),state:i});return this.add(s),s}add(n){re(this,Bi).add(n);const r=rh(n);if(typeof r=="string"){const i=re(this,$r).get(r);i?i.push(n):re(this,$r).set(r,[n])}this.notify({type:"added",mutation:n})}remove(n){if(re(this,Bi).delete(n)){const r=rh(n);if(typeof r=="string"){const i=re(this,$r).get(r);if(i)if(i.length>1){const s=i.indexOf(n);s!==-1&&i.splice(s,1)}else i[0]===n&&re(this,$r).delete(r)}}this.notify({type:"removed",mutation:n})}canRun(n){const r=rh(n);if(typeof r=="string"){const i=re(this,$r).get(r),s=i==null?void 0:i.find(a=>a.state.status==="pending");return!s||s===n}else return!0}runNext(n){var i;const r=rh(n);if(typeof r=="string"){const s=(i=re(this,$r).get(r))==null?void 0:i.find(a=>a!==n&&a.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){fn.batch(()=>{re(this,Bi).forEach(n=>{this.notify({type:"removed",mutation:n})}),re(this,Bi).clear(),re(this,$r).clear()})}getAll(){return Array.from(re(this,Bi))}find(n){const r={exact:!0,...n};return this.getAll().find(i=>B1(r,i))}findAll(n={}){return this.getAll().filter(r=>B1(n,r))}notify(n){fn.batch(()=>{this.listeners.forEach(r=>{r(n)})})}resumePausedMutations(){const n=this.getAll().filter(r=>r.state.isPaused);return fn.batch(()=>Promise.all(n.map(r=>r.continue().catch(qn))))}},Bi=new WeakMap,$r=new WeakMap,ku=new WeakMap,b4);function rh(t){var n;return(n=t.options.scope)==null?void 0:n.id}var zi,Is,Zn,qi,Hi,_h,Kv,j4,FI=(j4=class extends Nl{constructor(r,i){super();Ke(this,Hi);Ke(this,zi);Ke(this,Is);Ke(this,Zn);Ke(this,qi);Ie(this,zi,r),this.setOptions(i),this.bindMethods(),lt(this,Hi,_h).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var s;const i=this.options;this.options=re(this,zi).defaultMutationOptions(r),Vh(this.options,i)||re(this,zi).getMutationCache().notify({type:"observerOptionsUpdated",mutation:re(this,Zn),observer:this}),i!=null&&i.mutationKey&&this.options.mutationKey&&Wa(i.mutationKey)!==Wa(this.options.mutationKey)?this.reset():((s=re(this,Zn))==null?void 0:s.state.status)==="pending"&&re(this,Zn).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=re(this,Zn))==null||r.removeObserver(this)}onMutationUpdate(r){lt(this,Hi,_h).call(this),lt(this,Hi,Kv).call(this,r)}getCurrentResult(){return re(this,Is)}reset(){var r;(r=re(this,Zn))==null||r.removeObserver(this),Ie(this,Zn,void 0),lt(this,Hi,_h).call(this),lt(this,Hi,Kv).call(this)}mutate(r,i){var s;return Ie(this,qi,i),(s=re(this,Zn))==null||s.removeObserver(this),Ie(this,Zn,re(this,zi).getMutationCache().build(re(this,zi),this.options)),re(this,Zn).addObserver(this),re(this,Zn).execute(r)}},zi=new WeakMap,Is=new WeakMap,Zn=new WeakMap,qi=new WeakMap,Hi=new WeakSet,_h=function(){var i;const r=((i=re(this,Zn))==null?void 0:i.state)??hA();Ie(this,Is,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},Kv=function(r){fn.batch(()=>{var i,s,a,o,c,d,h,f;if(re(this,qi)&&this.hasListeners()){const m=re(this,Is).variables,p=re(this,Is).context,g={client:re(this,zi),meta:this.options.meta,mutationKey:this.options.mutationKey};(r==null?void 0:r.type)==="success"?((s=(i=re(this,qi)).onSuccess)==null||s.call(i,r.data,m,p,g),(o=(a=re(this,qi)).onSettled)==null||o.call(a,r.data,null,m,p,g)):(r==null?void 0:r.type)==="error"&&((d=(c=re(this,qi)).onError)==null||d.call(c,r.error,m,p,g),(f=(h=re(this,qi)).onSettled)==null||f.call(h,void 0,r.error,m,p,g))}this.listeners.forEach(m=>{m(re(this,Is))})})},j4),ai,w4,MI=(w4=class extends Nl{constructor(n={}){super();Ke(this,ai);this.config=n,Ie(this,ai,new Map)}build(n,r,i){const s=r.queryKey,a=r.queryHash??ay(s,r);let o=this.get(a);return o||(o=new EI({client:n,queryKey:s,queryHash:a,options:n.defaultQueryOptions(r),state:i,defaultOptions:n.getQueryDefaults(s)}),this.add(o)),o}add(n){re(this,ai).has(n.queryHash)||(re(this,ai).set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const r=re(this,ai).get(n.queryHash);r&&(n.destroy(),r===n&&re(this,ai).delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){fn.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return re(this,ai).get(n)}getAll(){return[...re(this,ai).values()]}find(n){const r={exact:!0,...n};return this.getAll().find(i=>L1(r,i))}findAll(n={}){const r=this.getAll();return Object.keys(n).length>0?r.filter(i=>L1(n,i)):r}notify(n){fn.batch(()=>{this.listeners.forEach(r=>{r(n)})})}onFocus(){fn.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){fn.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},ai=new WeakMap,w4),Zt,Rs,Fs,ol,ll,Ms,cl,ul,N4,LI=(N4=class{constructor(t={}){Ke(this,Zt);Ke(this,Rs);Ke(this,Fs);Ke(this,ol);Ke(this,ll);Ke(this,Ms);Ke(this,cl);Ke(this,ul);Ie(this,Zt,t.queryCache||new MI),Ie(this,Rs,t.mutationCache||new RI),Ie(this,Fs,t.defaultOptions||{}),Ie(this,ol,new Map),Ie(this,ll,new Map),Ie(this,Ms,0)}mount(){Jd(this,Ms)._++,re(this,Ms)===1&&(Ie(this,cl,ly.subscribe(async t=>{t&&(await this.resumePausedMutations(),re(this,Zt).onFocus())})),Ie(this,ul,Uh.subscribe(async t=>{t&&(await this.resumePausedMutations(),re(this,Zt).onOnline())})))}unmount(){var t,n;Jd(this,Ms)._--,re(this,Ms)===0&&((t=re(this,cl))==null||t.call(this),Ie(this,cl,void 0),(n=re(this,ul))==null||n.call(this),Ie(this,ul,void 0))}isFetching(t){return re(this,Zt).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return re(this,Rs).findAll({...t,status:"pending"}).length}getQueryData(t){var r;const n=this.defaultQueryOptions({queryKey:t});return(r=re(this,Zt).get(n.queryHash))==null?void 0:r.state.data}ensureQueryData(t){const n=this.defaultQueryOptions(t),r=re(this,Zt).build(this,n),i=r.state.data;return i===void 0?this.fetchQuery(t):(t.revalidateIfStale&&r.isStaleByTime(Vs(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(i))}getQueriesData(t){return re(this,Zt).findAll(t).map(({queryKey:n,state:r})=>{const i=r.data;return[n,i]})}setQueryData(t,n,r){const i=this.defaultQueryOptions({queryKey:t}),s=re(this,Zt).get(i.queryHash),a=s==null?void 0:s.state.data,o=yI(n,a);if(o!==void 0)return re(this,Zt).build(this,i).setData(o,{...r,manual:!0})}setQueriesData(t,n,r){return fn.batch(()=>re(this,Zt).findAll(t).map(({queryKey:i})=>[i,this.setQueryData(i,n,r)]))}getQueryState(t){var r;const n=this.defaultQueryOptions({queryKey:t});return(r=re(this,Zt).get(n.queryHash))==null?void 0:r.state}removeQueries(t){const n=re(this,Zt);fn.batch(()=>{n.findAll(t).forEach(r=>{n.remove(r)})})}resetQueries(t,n){const r=re(this,Zt);return fn.batch(()=>(r.findAll(t).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...t},n)))}cancelQueries(t,n={}){const r={revert:!0,...n},i=fn.batch(()=>re(this,Zt).findAll(t).map(s=>s.cancel(r)));return Promise.all(i).then(qn).catch(qn)}invalidateQueries(t,n={}){return fn.batch(()=>(re(this,Zt).findAll(t).forEach(r=>{r.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"},n)))}refetchQueries(t,n={}){const r={...n,cancelRefetch:n.cancelRefetch??!0},i=fn.batch(()=>re(this,Zt).findAll(t).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let a=s.fetch(void 0,r);return r.throwOnError||(a=a.catch(qn)),s.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(i).then(qn)}fetchQuery(t){const n=this.defaultQueryOptions(t);n.retry===void 0&&(n.retry=!1);const r=re(this,Zt).build(this,n);return r.isStaleByTime(Vs(n.staleTime,r))?r.fetch(n):Promise.resolve(r.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(qn).catch(qn)}fetchInfiniteQuery(t){return t.behavior=H1(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(qn).catch(qn)}ensureInfiniteQueryData(t){return t.behavior=H1(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return Uh.isOnline()?re(this,Rs).resumePausedMutations():Promise.resolve()}getQueryCache(){return re(this,Zt)}getMutationCache(){return re(this,Rs)}getDefaultOptions(){return re(this,Fs)}setDefaultOptions(t){Ie(this,Fs,t)}setQueryDefaults(t,n){re(this,ol).set(Wa(t),{queryKey:t,defaultOptions:n})}getQueryDefaults(t){const n=[...re(this,ol).values()],r={};return n.forEach(i=>{su(t,i.queryKey)&&Object.assign(r,i.defaultOptions)}),r}setMutationDefaults(t,n){re(this,ll).set(Wa(t),{mutationKey:t,defaultOptions:n})}getMutationDefaults(t){const n=[...re(this,ll).values()],r={};return n.forEach(i=>{su(t,i.mutationKey)&&Object.assign(r,i.defaultOptions)}),r}defaultQueryOptions(t){if(t._defaulted)return t;const n={...re(this,Fs).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return n.queryHash||(n.queryHash=ay(n.queryKey,n)),n.refetchOnReconnect===void 0&&(n.refetchOnReconnect=n.networkMode!=="always"),n.throwOnError===void 0&&(n.throwOnError=!!n.suspense),!n.networkMode&&n.persister&&(n.networkMode="offlineFirst"),n.queryFn===oy&&(n.enabled=!1),n}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...re(this,Fs).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){re(this,Zt).clear(),re(this,Rs).clear()}},Zt=new WeakMap,Rs=new WeakMap,Fs=new WeakMap,ol=new WeakMap,ll=new WeakMap,Ms=new WeakMap,cl=new WeakMap,ul=new WeakMap,N4),fA=D.createContext(void 0),Wt=t=>{const n=D.useContext(fA);if(!n)throw new Error("No QueryClient set, use QueryClientProvider to set one");return n},BI=({client:t,children:n})=>(D.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),e.jsx(fA.Provider,{value:t,children:n})),mA=D.createContext(!1),zI=()=>D.useContext(mA);mA.Provider;function qI(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var VI=D.createContext(qI()),UI=()=>D.useContext(VI),$I=(t,n)=>{(t.suspense||t.throwOnError||t.experimental_prefetchInRender)&&(n.isReset()||(t.retryOnMount=!1))},HI=t=>{D.useEffect(()=>{t.clearReset()},[t])},WI=({result:t,errorResetBoundary:n,throwOnError:r,query:i,suspense:s})=>t.isError&&!n.isReset()&&!t.isFetching&&i&&(s&&t.data===void 0||aA(r,[t.error,i])),KI=t=>{if(t.suspense){const r=s=>s==="static"?s:Math.max(s??1e3,1e3),i=t.staleTime;t.staleTime=typeof i=="function"?(...s)=>r(i(...s)):r(i),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},GI=(t,n)=>t.isLoading&&t.isFetching&&!n,QI=(t,n)=>(t==null?void 0:t.suspense)&&n.isPending,K1=(t,n,r)=>n.fetchOptimistic(t).catch(()=>{r.clearReset()});function YI(t,n,r){var m,p,g,y,j;const i=zI(),s=UI(),a=Wt(),o=a.defaultQueryOptions(t);(p=(m=a.getDefaultOptions().queries)==null?void 0:m._experimental_beforeQuery)==null||p.call(m,o),o._optimisticResults=i?"isRestoring":"optimistic",KI(o),$I(o,s),HI(s);const c=!a.getQueryCache().get(o.queryHash),[d]=D.useState(()=>new n(a,o)),h=d.getOptimisticResult(o),f=!i&&t.subscribed!==!1;if(D.useSyncExternalStore(D.useCallback(v=>{const x=f?d.subscribe(fn.batchCalls(v)):qn;return d.updateResult(),x},[d,f]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),D.useEffect(()=>{d.setOptions(o)},[o,d]),QI(o,h))throw K1(o,d,s);if(WI({result:h,errorResetBoundary:s,throwOnError:o.throwOnError,query:a.getQueryCache().get(o.queryHash),suspense:o.suspense}))throw h.error;if((y=(g=a.getDefaultOptions().queries)==null?void 0:g._experimental_afterQuery)==null||y.call(g,o,h),o.experimental_prefetchInRender&&!Ha&&GI(h,i)){const v=c?K1(o,d,s):(j=a.getQueryCache().get(o.queryHash))==null?void 0:j.promise;v==null||v.catch(qn).finally(()=>{d.updateResult()})}return o.notifyOnChangeProps?h:d.trackResult(h)}function Fe(t,n){return YI(t,TI)}function Me(t,n){const r=Wt(),[i]=D.useState(()=>new FI(r,t));D.useEffect(()=>{i.setOptions(t)},[i,t]);const s=D.useSyncExternalStore(D.useCallback(o=>i.subscribe(fn.batchCalls(o)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),a=D.useCallback((o,c)=>{i.mutate(o,c).catch(qn)},[i]);if(s.error&&aA(i.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:a,mutateAsync:s.mutate}}const XI=new LI({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});var Au=ny();const JI=_i(Au);/**
* @remix-run/router v1.23.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function au(){return au=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},au.apply(this,arguments)}var Ls;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(Ls||(Ls={}));const G1="popstate";function ZI(t){t===void 0&&(t={});function n(i,s){let{pathname:a,search:o,hash:c}=i.location;return Gv("",{pathname:a,search:o,hash:c},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function r(i,s){return typeof s=="string"?s:$h(s)}return tR(n,r,null,t)}function cn(t,n){if(t===!1||t===null||typeof t>"u")throw new Error(n)}function pA(t,n){if(!t){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function eR(){return Math.random().toString(36).substr(2,8)}function Q1(t,n){return{usr:t.state,key:t.key,idx:n}}function Gv(t,n,r,i){return r===void 0&&(r=null),au({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof n=="string"?kl(n):n,{state:r,key:n&&n.key||i||eR()})}function $h(t){let{pathname:n="/",search:r="",hash:i=""}=t;return r&&r!=="?"&&(n+=r.charAt(0)==="?"?r:"?"+r),i&&i!=="#"&&(n+=i.charAt(0)==="#"?i:"#"+i),n}function kl(t){let n={};if(t){let r=t.indexOf("#");r>=0&&(n.hash=t.substr(r),t=t.substr(0,r));let i=t.indexOf("?");i>=0&&(n.search=t.substr(i),t=t.substr(0,i)),t&&(n.pathname=t)}return n}function tR(t,n,r,i){i===void 0&&(i={});let{window:s=document.defaultView,v5Compat:a=!1}=i,o=s.history,c=Ls.Pop,d=null,h=f();h==null&&(h=0,o.replaceState(au({},o.state,{idx:h}),""));function f(){return(o.state||{idx:null}).idx}function m(){c=Ls.Pop;let v=f(),x=v==null?null:v-h;h=v,d&&d({action:c,location:j.location,delta:x})}function p(v,x){c=Ls.Push;let N=Gv(j.location,v,x);h=f()+1;let w=Q1(N,h),k=j.createHref(N);try{o.pushState(w,"",k)}catch(A){if(A instanceof DOMException&&A.name==="DataCloneError")throw A;s.location.assign(k)}a&&d&&d({action:c,location:j.location,delta:1})}function g(v,x){c=Ls.Replace;let N=Gv(j.location,v,x);h=f();let w=Q1(N,h),k=j.createHref(N);o.replaceState(w,"",k),a&&d&&d({action:c,location:j.location,delta:0})}function y(v){let x=s.location.origin!=="null"?s.location.origin:s.location.href,N=typeof v=="string"?v:$h(v);return N=N.replace(/ $/,"%20"),cn(x,"No window.location.(origin|href) available to create URL for href: "+N),new URL(N,x)}let j={get action(){return c},get location(){return t(s,o)},listen(v){if(d)throw new Error("A history only accepts one active listener");return s.addEventListener(G1,m),d=v,()=>{s.removeEventListener(G1,m),d=null}},createHref(v){return n(s,v)},createURL:y,encodeLocation(v){let x=y(v);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:p,replace:g,go(v){return o.go(v)}};return j}var Y1;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(Y1||(Y1={}));function nR(t,n,r){return r===void 0&&(r="/"),rR(t,n,r)}function rR(t,n,r,i){let s=typeof n=="string"?kl(n):n,a=uy(s.pathname||"/",r);if(a==null)return null;let o=gA(t);iR(o);let c=null;for(let d=0;c==null&&d<o.length;++d){let h=gR(a);c=fR(o[d],h)}return c}function gA(t,n,r,i){n===void 0&&(n=[]),r===void 0&&(r=[]),i===void 0&&(i="");let s=(a,o,c)=>{let d={relativePath:c===void 0?a.path||"":c,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};d.relativePath.startsWith("/")&&(cn(d.relativePath.startsWith(i),'Absolute route path "'+d.relativePath+'" nested under path '+('"'+i+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),d.relativePath=d.relativePath.slice(i.length));let h=Us([i,d.relativePath]),f=r.concat(d);a.children&&a.children.length>0&&(cn(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+h+'".')),gA(a.children,n,f,h)),!(a.path==null&&!a.index)&&n.push({path:h,score:dR(h,a.index),routesMeta:f})};return t.forEach((a,o)=>{var c;if(a.path===""||!((c=a.path)!=null&&c.includes("?")))s(a,o);else for(let d of xA(a.path))s(a,o,d)}),n}function xA(t){let n=t.split("/");if(n.length===0)return[];let[r,...i]=n,s=r.endsWith("?"),a=r.replace(/\?$/,"");if(i.length===0)return s?[a,""]:[a];let o=xA(i.join("/")),c=[];return c.push(...o.map(d=>d===""?a:[a,d].join("/"))),s&&c.push(...o),c.map(d=>t.startsWith("/")&&d===""?"/":d)}function iR(t){t.sort((n,r)=>n.score!==r.score?r.score-n.score:hR(n.routesMeta.map(i=>i.childrenIndex),r.routesMeta.map(i=>i.childrenIndex)))}const sR=/^:[\w-]+$/,aR=3,oR=2,lR=1,cR=10,uR=-2,X1=t=>t==="*";function dR(t,n){let r=t.split("/"),i=r.length;return r.some(X1)&&(i+=uR),n&&(i+=oR),r.filter(s=>!X1(s)).reduce((s,a)=>s+(sR.test(a)?aR:a===""?lR:cR),i)}function hR(t,n){return t.length===n.length&&t.slice(0,-1).every((i,s)=>i===n[s])?t[t.length-1]-n[n.length-1]:0}function fR(t,n,r){let{routesMeta:i}=t,s={},a="/",o=[];for(let c=0;c<i.length;++c){let d=i[c],h=c===i.length-1,f=a==="/"?n:n.slice(a.length)||"/",m=mR({path:d.relativePath,caseSensitive:d.caseSensitive,end:h},f),p=d.route;if(!m)return null;Object.assign(s,m.params),o.push({params:s,pathname:Us([a,m.pathname]),pathnameBase:bR(Us([a,m.pathnameBase])),route:p}),m.pathnameBase!=="/"&&(a=Us([a,m.pathnameBase]))}return o}function mR(t,n){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[r,i]=pR(t.path,t.caseSensitive,t.end),s=n.match(r);if(!s)return null;let a=s[0],o=a.replace(/(.)\/+$/,"$1"),c=s.slice(1);return{params:i.reduce((h,f,m)=>{let{paramName:p,isOptional:g}=f;if(p==="*"){let j=c[m]||"";o=a.slice(0,a.length-j.length).replace(/(.)\/+$/,"$1")}const y=c[m];return g&&!y?h[p]=void 0:h[p]=(y||"").replace(/%2F/g,"/"),h},{}),pathname:a,pathnameBase:o,pattern:t}}function pR(t,n,r){n===void 0&&(n=!1),r===void 0&&(r=!0),pA(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let i=[],s="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,c,d)=>(i.push({paramName:c,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(i.push({paramName:"*"}),s+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?s+="\\/*$":t!==""&&t!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,n?void 0:"i"),i]}function gR(t){try{return t.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return pA(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+n+").")),t}}function uy(t,n){if(n==="/")return t;if(!t.toLowerCase().startsWith(n.toLowerCase()))return null;let r=n.endsWith("/")?n.length-1:n.length,i=t.charAt(r);return i&&i!=="/"?null:t.slice(r)||"/"}function xR(t,n){n===void 0&&(n="/");let{pathname:r,search:i="",hash:s=""}=typeof t=="string"?kl(t):t;return{pathname:r?r.startsWith("/")?r:vR(r,n):n,search:jR(i),hash:wR(s)}}function vR(t,n){let r=n.replace(/\/+$/,"").split("/");return t.split("/").forEach(s=>{s===".."?r.length>1&&r.pop():s!=="."&&r.push(s)}),r.length>1?r.join("/"):"/"}function Wp(t,n,r,i){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+n+"` field ["+JSON.stringify(i)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function yR(t){return t.filter((n,r)=>r===0||n.route.path&&n.route.path.length>0)}function vA(t,n){let r=yR(t);return n?r.map((i,s)=>s===r.length-1?i.pathname:i.pathnameBase):r.map(i=>i.pathnameBase)}function yA(t,n,r,i){i===void 0&&(i=!1);let s;typeof t=="string"?s=kl(t):(s=au({},t),cn(!s.pathname||!s.pathname.includes("?"),Wp("?","pathname","search",s)),cn(!s.pathname||!s.pathname.includes("#"),Wp("#","pathname","hash",s)),cn(!s.search||!s.search.includes("#"),Wp("#","search","hash",s)));let a=t===""||s.pathname==="",o=a?"/":s.pathname,c;if(o==null)c=r;else{let m=n.length-1;if(!i&&o.startsWith("..")){let p=o.split("/");for(;p[0]==="..";)p.shift(),m-=1;s.pathname=p.join("/")}c=m>=0?n[m]:"/"}let d=xR(s,c),h=o&&o!=="/"&&o.endsWith("/"),f=(a||o===".")&&r.endsWith("/");return!d.pathname.endsWith("/")&&(h||f)&&(d.pathname+="/"),d}const Us=t=>t.join("/").replace(/\/\/+/g,"/"),bR=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),jR=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,wR=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function NR(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const bA=["post","put","patch","delete"];new Set(bA);const kR=["get",...bA];new Set(kR);/**
* React Router v6.30.1
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function ou(){return ou=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},ou.apply(this,arguments)}const dy=D.createContext(null),_R=D.createContext(null),Ja=D.createContext(null),ff=D.createContext(null),Za=D.createContext({outlet:null,matches:[],isDataRoute:!1}),jA=D.createContext(null);function SR(t,n){let{relative:r}=n===void 0?{}:n;Cu()||cn(!1);let{basename:i,navigator:s}=D.useContext(Ja),{hash:a,pathname:o,search:c}=NA(t,{relative:r}),d=o;return i!=="/"&&(d=o==="/"?i:Us([i,o])),s.createHref({pathname:d,search:c,hash:a})}function Cu(){return D.useContext(ff)!=null}function eo(){return Cu()||cn(!1),D.useContext(ff).location}function wA(t){D.useContext(Ja).static||D.useLayoutEffect(t)}function _l(){let{isDataRoute:t}=D.useContext(Za);return t?BR():AR()}function AR(){Cu()||cn(!1);let t=D.useContext(dy),{basename:n,future:r,navigator:i}=D.useContext(Ja),{matches:s}=D.useContext(Za),{pathname:a}=eo(),o=JSON.stringify(vA(s,r.v7_relativeSplatPath)),c=D.useRef(!1);return wA(()=>{c.current=!0}),D.useCallback(function(h,f){if(f===void 0&&(f={}),!c.current)return;if(typeof h=="number"){i.go(h);return}let m=yA(h,JSON.parse(o),a,f.relative==="path");t==null&&n!=="/"&&(m.pathname=m.pathname==="/"?n:Us([n,m.pathname])),(f.replace?i.replace:i.push)(m,f.state,f)},[n,i,o,a,t])}function NA(t,n){let{relative:r}=n===void 0?{}:n,{future:i}=D.useContext(Ja),{matches:s}=D.useContext(Za),{pathname:a}=eo(),o=JSON.stringify(vA(s,i.v7_relativeSplatPath));return D.useMemo(()=>yA(t,JSON.parse(o),a,r==="path"),[t,o,a,r])}function CR(t,n){return ER(t,n)}function ER(t,n,r,i){Cu()||cn(!1);let{navigator:s}=D.useContext(Ja),{matches:a}=D.useContext(Za),o=a[a.length-1],c=o?o.params:{};o&&o.pathname;let d=o?o.pathnameBase:"/";o&&o.route;let h=eo(),f;if(n){var m;let v=typeof n=="string"?kl(n):n;d==="/"||(m=v.pathname)!=null&&m.startsWith(d)||cn(!1),f=v}else f=h;let p=f.pathname||"/",g=p;if(d!=="/"){let v=d.replace(/^\//,"").split("/");g="/"+p.replace(/^\//,"").split("/").slice(v.length).join("/")}let y=nR(t,{pathname:g}),j=IR(y&&y.map(v=>Object.assign({},v,{params:Object.assign({},c,v.params),pathname:Us([d,s.encodeLocation?s.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?d:Us([d,s.encodeLocation?s.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),a,r,i);return n&&j?D.createElement(ff.Provider,{value:{location:ou({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:Ls.Pop}},j):j}function TR(){let t=LR(),n=NR(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return D.createElement(D.Fragment,null,D.createElement("h2",null,"Unexpected Application Error!"),D.createElement("h3",{style:{fontStyle:"italic"}},n),r?D.createElement("pre",{style:s},r):null,null)}const OR=D.createElement(TR,null);class PR extends D.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,r){return r.location!==n.location||r.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:r.error,location:r.location,revalidation:n.revalidation||r.revalidation}}componentDidCatch(n,r){console.error("React Router caught the following error during render",n,r)}render(){return this.state.error!==void 0?D.createElement(Za.Provider,{value:this.props.routeContext},D.createElement(jA.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function DR(t){let{routeContext:n,match:r,children:i}=t,s=D.useContext(dy);return s&&s.static&&s.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=r.route.id),D.createElement(Za.Provider,{value:n},i)}function IR(t,n,r,i){var s;if(n===void 0&&(n=[]),r===void 0&&(r=null),i===void 0&&(i=null),t==null){var a;if(!r)return null;if(r.errors)t=r.matches;else if((a=i)!=null&&a.v7_partialHydration&&n.length===0&&!r.initialized&&r.matches.length>0)t=r.matches;else return null}let o=t,c=(s=r)==null?void 0:s.errors;if(c!=null){let f=o.findIndex(m=>m.route.id&&(c==null?void 0:c[m.route.id])!==void 0);f>=0||cn(!1),o=o.slice(0,Math.min(o.length,f+1))}let d=!1,h=-1;if(r&&i&&i.v7_partialHydration)for(let f=0;f<o.length;f++){let m=o[f];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(h=f),m.route.id){let{loaderData:p,errors:g}=r,y=m.route.loader&&p[m.route.id]===void 0&&(!g||g[m.route.id]===void 0);if(m.route.lazy||y){d=!0,h>=0?o=o.slice(0,h+1):o=[o[0]];break}}}return o.reduceRight((f,m,p)=>{let g,y=!1,j=null,v=null;r&&(g=c&&m.route.id?c[m.route.id]:void 0,j=m.route.errorElement||OR,d&&(h<0&&p===0?(zR("route-fallback"),y=!0,v=null):h===p&&(y=!0,v=m.route.hydrateFallbackElement||null)));let x=n.concat(o.slice(0,p+1)),N=()=>{let w;return g?w=j:y?w=v:m.route.Component?w=D.createElement(m.route.Component,null):m.route.element?w=m.route.element:w=f,D.createElement(DR,{match:m,routeContext:{outlet:f,matches:x,isDataRoute:r!=null},children:w})};return r&&(m.route.ErrorBoundary||m.route.errorElement||p===0)?D.createElement(PR,{location:r.location,revalidation:r.revalidation,component:j,error:g,children:N(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):N()},null)}var kA=(function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t})(kA||{}),_A=(function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t})(_A||{});function RR(t){let n=D.useContext(dy);return n||cn(!1),n}function FR(t){let n=D.useContext(_R);return n||cn(!1),n}function MR(t){let n=D.useContext(Za);return n||cn(!1),n}function SA(t){let n=MR(),r=n.matches[n.matches.length-1];return r.route.id||cn(!1),r.route.id}function LR(){var t;let n=D.useContext(jA),r=FR(),i=SA();return n!==void 0?n:(t=r.errors)==null?void 0:t[i]}function BR(){let{router:t}=RR(kA.UseNavigateStable),n=SA(_A.UseNavigateStable),r=D.useRef(!1);return wA(()=>{r.current=!0}),D.useCallback(function(s,a){a===void 0&&(a={}),r.current&&(typeof s=="number"?t.navigate(s):t.navigate(s,ou({fromRouteId:n},a)))},[t,n])}const J1={};function zR(t,n,r){J1[t]||(J1[t]=!0)}function qR(t,n){t==null||t.v7_startTransition,t==null||t.v7_relativeSplatPath}function wa(t){cn(!1)}function VR(t){let{basename:n="/",children:r=null,location:i,navigationType:s=Ls.Pop,navigator:a,static:o=!1,future:c}=t;Cu()&&cn(!1);let d=n.replace(/^\/*/,"/"),h=D.useMemo(()=>({basename:d,navigator:a,static:o,future:ou({v7_relativeSplatPath:!1},c)}),[d,c,a,o]);typeof i=="string"&&(i=kl(i));let{pathname:f="/",search:m="",hash:p="",state:g=null,key:y="default"}=i,j=D.useMemo(()=>{let v=uy(f,d);return v==null?null:{location:{pathname:v,search:m,hash:p,state:g,key:y},navigationType:s}},[d,f,m,p,g,y,s]);return j==null?null:D.createElement(Ja.Provider,{value:h},D.createElement(ff.Provider,{children:r,value:j}))}function UR(t){let{children:n,location:r}=t;return CR(Qv(n),r)}new Promise(()=>{});function Qv(t,n){n===void 0&&(n=[]);let r=[];return D.Children.forEach(t,(i,s)=>{if(!D.isValidElement(i))return;let a=[...n,s];if(i.type===D.Fragment){r.push.apply(r,Qv(i.props.children,a));return}i.type!==wa&&cn(!1),!i.props.index||!i.props.children||cn(!1);let o={id:i.props.id||a.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,loader:i.props.loader,action:i.props.action,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(o.children=Qv(i.props.children,a)),r.push(o)}),r}/**
* React Router DOM v6.30.1
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function Yv(){return Yv=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Yv.apply(this,arguments)}function $R(t,n){if(t==null)return{};var r={},i=Object.keys(t),s,a;for(a=0;a<i.length;a++)s=i[a],!(n.indexOf(s)>=0)&&(r[s]=t[s]);return r}function HR(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function WR(t,n){return t.button===0&&(!n||n==="_self")&&!HR(t)}const KR=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],GR="6";try{window.__reactRouterVersion=GR}catch{}const QR="startTransition",Z1=ty[QR];function YR(t){let{basename:n,children:r,future:i,window:s}=t,a=D.useRef();a.current==null&&(a.current=ZI({window:s,v5Compat:!0}));let o=a.current,[c,d]=D.useState({action:o.action,location:o.location}),{v7_startTransition:h}=i||{},f=D.useCallback(m=>{h&&Z1?Z1(()=>d(m)):d(m)},[d,h]);return D.useLayoutEffect(()=>o.listen(f),[o,f]),D.useEffect(()=>qR(i),[i]),D.createElement(VR,{basename:n,children:r,location:c.location,navigationType:c.action,navigator:o,future:i})}const XR=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",JR=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,de=D.forwardRef(function(n,r){let{onClick:i,relative:s,reloadDocument:a,replace:o,state:c,target:d,to:h,preventScrollReset:f,viewTransition:m}=n,p=$R(n,KR),{basename:g}=D.useContext(Ja),y,j=!1;if(typeof h=="string"&&JR.test(h)&&(y=h,XR))try{let w=new URL(window.location.href),k=h.startsWith("//")?new URL(w.protocol+h):new URL(h),A=uy(k.pathname,g);k.origin===w.origin&&A!=null?h=A+k.search+k.hash:j=!0}catch{}let v=SR(h,{relative:s}),x=ZR(h,{replace:o,state:c,target:d,preventScrollReset:f,relative:s,viewTransition:m});function N(w){i&&i(w),w.defaultPrevented||x(w)}return D.createElement("a",Yv({},p,{href:y||v,onClick:j||a?i:N,ref:r,target:d}))});var eN;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(eN||(eN={}));var tN;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(tN||(tN={}));function ZR(t,n){let{target:r,replace:i,state:s,preventScrollReset:a,relative:o,viewTransition:c}=n===void 0?{}:n,d=_l(),h=eo(),f=NA(t,{relative:o});return D.useCallback(m=>{if(WR(m,r)){m.preventDefault();let p=i!==void 0?i:$h(h)===$h(f);d(t,{replace:p,state:s,preventScrollReset:a,relative:o,viewTransition:c})}},[h,d,f,i,s,r,t,a,o,c])}function AA(t,n){return function(){return t.apply(n,arguments)}}const{toString:eF}=Object.prototype,{getPrototypeOf:hy}=Object,{iterator:mf,toStringTag:CA}=Symbol,pf=(t=>n=>{const r=eF.call(n);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Qr=t=>(t=t.toLowerCase(),n=>pf(n)===t),gf=t=>n=>typeof n===t,{isArray:Sl}=Array,dl=gf("undefined");function Eu(t){return t!==null&&!dl(t)&&t.constructor!==null&&!dl(t.constructor)&&er(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const EA=Qr("ArrayBuffer");function tF(t){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(t):n=t&&t.buffer&&EA(t.buffer),n}const nF=gf("string"),er=gf("function"),TA=gf("number"),Tu=t=>t!==null&&typeof t=="object",rF=t=>t===!0||t===!1,Sh=t=>{if(pf(t)!=="object")return!1;const n=hy(t);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(CA in t)&&!(mf in t)},iF=t=>{if(!Tu(t)||Eu(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},sF=Qr("Date"),aF=Qr("File"),oF=Qr("Blob"),lF=Qr("FileList"),cF=t=>Tu(t)&&er(t.pipe),uF=t=>{let n;return t&&(typeof FormData=="function"&&t instanceof FormData||er(t.append)&&((n=pf(t))==="formdata"||n==="object"&&er(t.toString)&&t.toString()==="[object FormData]"))},dF=Qr("URLSearchParams"),[hF,fF,mF,pF]=["ReadableStream","Request","Response","Headers"].map(Qr),gF=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ou(t,n,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let i,s;if(typeof t!="object"&&(t=[t]),Sl(t))for(i=0,s=t.length;i<s;i++)n.call(null,t[i],i,t);else{if(Eu(t))return;const a=r?Object.getOwnPropertyNames(t):Object.keys(t),o=a.length;let c;for(i=0;i<o;i++)c=a[i],n.call(null,t[c],c,t)}}function OA(t,n){if(Eu(t))return null;n=n.toLowerCase();const r=Object.keys(t);let i=r.length,s;for(;i-- >0;)if(s=r[i],n===s.toLowerCase())return s;return null}const Ea=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,PA=t=>!dl(t)&&t!==Ea;function Xv(){const{caseless:t,skipUndefined:n}=PA(this)&&this||{},r={},i=(s,a)=>{const o=t&&OA(r,a)||a;Sh(r[o])&&Sh(s)?r[o]=Xv(r[o],s):Sh(s)?r[o]=Xv({},s):Sl(s)?r[o]=s.slice():(!n||!dl(s))&&(r[o]=s)};for(let s=0,a=arguments.length;s<a;s++)arguments[s]&&Ou(arguments[s],i);return r}const xF=(t,n,r,{allOwnKeys:i}={})=>(Ou(n,(s,a)=>{r&&er(s)?t[a]=AA(s,r):t[a]=s},{allOwnKeys:i}),t),vF=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),yF=(t,n,r,i)=>{t.prototype=Object.create(n.prototype,i),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:n.prototype}),r&&Object.assign(t.prototype,r)},bF=(t,n,r,i)=>{let s,a,o;const c={};if(n=n||{},t==null)return n;do{for(s=Object.getOwnPropertyNames(t),a=s.length;a-- >0;)o=s[a],(!i||i(o,t,n))&&!c[o]&&(n[o]=t[o],c[o]=!0);t=r!==!1&&hy(t)}while(t&&(!r||r(t,n))&&t!==Object.prototype);return n},jF=(t,n,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=n.length;const i=t.indexOf(n,r);return i!==-1&&i===r},wF=t=>{if(!t)return null;if(Sl(t))return t;let n=t.length;if(!TA(n))return null;const r=new Array(n);for(;n-- >0;)r[n]=t[n];return r},NF=(t=>n=>t&&n instanceof t)(typeof Uint8Array<"u"&&hy(Uint8Array)),kF=(t,n)=>{const i=(t&&t[mf]).call(t);let s;for(;(s=i.next())&&!s.done;){const a=s.value;n.call(t,a[0],a[1])}},_F=(t,n)=>{let r;const i=[];for(;(r=t.exec(n))!==null;)i.push(r);return i},SF=Qr("HTMLFormElement"),AF=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,i,s){return i.toUpperCase()+s}),nN=(({hasOwnProperty:t})=>(n,r)=>t.call(n,r))(Object.prototype),CF=Qr("RegExp"),DA=(t,n)=>{const r=Object.getOwnPropertyDescriptors(t),i={};Ou(r,(s,a)=>{let o;(o=n(s,a,t))!==!1&&(i[a]=o||s)}),Object.defineProperties(t,i)},EF=t=>{DA(t,(n,r)=>{if(er(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const i=t[r];if(er(i)){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},TF=(t,n)=>{const r={},i=s=>{s.forEach(a=>{r[a]=!0})};return Sl(t)?i(t):i(String(t).split(n)),r},OF=()=>{},PF=(t,n)=>t!=null&&Number.isFinite(t=+t)?t:n;function DF(t){return!!(t&&er(t.append)&&t[CA]==="FormData"&&t[mf])}const IF=t=>{const n=new Array(10),r=(i,s)=>{if(Tu(i)){if(n.indexOf(i)>=0)return;if(Eu(i))return i;if(!("toJSON"in i)){n[s]=i;const a=Sl(i)?[]:{};return Ou(i,(o,c)=>{const d=r(o,s+1);!dl(d)&&(a[c]=d)}),n[s]=void 0,a}}return i};return r(t,0)},RF=Qr("AsyncFunction"),FF=t=>t&&(Tu(t)||er(t))&&er(t.then)&&er(t.catch),IA=((t,n)=>t?setImmediate:n?((r,i)=>(Ea.addEventListener("message",({source:s,data:a})=>{s===Ea&&a===r&&i.length&&i.shift()()},!1),s=>{i.push(s),Ea.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",er(Ea.postMessage)),MF=typeof queueMicrotask<"u"?queueMicrotask.bind(Ea):typeof process<"u"&&process.nextTick||IA,LF=t=>t!=null&&er(t[mf]),pe={isArray:Sl,isArrayBuffer:EA,isBuffer:Eu,isFormData:uF,isArrayBufferView:tF,isString:nF,isNumber:TA,isBoolean:rF,isObject:Tu,isPlainObject:Sh,isEmptyObject:iF,isReadableStream:hF,isRequest:fF,isResponse:mF,isHeaders:pF,isUndefined:dl,isDate:sF,isFile:aF,isBlob:oF,isRegExp:CF,isFunction:er,isStream:cF,isURLSearchParams:dF,isTypedArray:NF,isFileList:lF,forEach:Ou,merge:Xv,extend:xF,trim:gF,stripBOM:vF,inherits:yF,toFlatObject:bF,kindOf:pf,kindOfTest:Qr,endsWith:jF,toArray:wF,forEachEntry:kF,matchAll:_F,isHTMLForm:SF,hasOwnProperty:nN,hasOwnProp:nN,reduceDescriptors:DA,freezeMethods:EF,toObjectSet:TF,toCamelCase:AF,noop:OF,toFiniteNumber:PF,findKey:OA,global:Ea,isContextDefined:PA,isSpecCompliantForm:DF,toJSONObject:IF,isAsyncFn:RF,isThenable:FF,setImmediate:IA,asap:MF,isIterable:LF};function at(t,n,r,i,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",n&&(this.code=n),r&&(this.config=r),i&&(this.request=i),s&&(this.response=s,this.status=s.status?s.status:null)}pe.inherits(at,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:pe.toJSONObject(this.config),code:this.code,status:this.status}}});const RA=at.prototype,FA={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{FA[t]={value:t}});Object.defineProperties(at,FA);Object.defineProperty(RA,"isAxiosError",{value:!0});at.from=(t,n,r,i,s,a)=>{const o=Object.create(RA);pe.toFlatObject(t,o,function(f){return f!==Error.prototype},h=>h!=="isAxiosError");const c=t&&t.message?t.message:"Error",d=n==null&&t?t.code:n;return at.call(o,c,d,r,i,s),t&&o.cause==null&&Object.defineProperty(o,"cause",{value:t,configurable:!0}),o.name=t&&t.name||"Error",a&&Object.assign(o,a),o};const BF=null;function Jv(t){return pe.isPlainObject(t)||pe.isArray(t)}function MA(t){return pe.endsWith(t,"[]")?t.slice(0,-2):t}function rN(t,n,r){return t?t.concat(n).map(function(s,a){return s=MA(s),!r&&a?"["+s+"]":s}).join(r?".":""):n}function zF(t){return pe.isArray(t)&&!t.some(Jv)}const qF=pe.toFlatObject(pe,{},null,function(n){return/^is[A-Z]/.test(n)});function xf(t,n,r){if(!pe.isObject(t))throw new TypeError("target must be an object");n=n||new FormData,r=pe.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(j,v){return!pe.isUndefined(v[j])});const i=r.metaTokens,s=r.visitor||f,a=r.dots,o=r.indexes,d=(r.Blob||typeof Blob<"u"&&Blob)&&pe.isSpecCompliantForm(n);if(!pe.isFunction(s))throw new TypeError("visitor must be a function");function h(y){if(y===null)return"";if(pe.isDate(y))return y.toISOString();if(pe.isBoolean(y))return y.toString();if(!d&&pe.isBlob(y))throw new at("Blob is not supported. Use a Buffer instead.");return pe.isArrayBuffer(y)||pe.isTypedArray(y)?d&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function f(y,j,v){let x=y;if(y&&!v&&typeof y=="object"){if(pe.endsWith(j,"{}"))j=i?j:j.slice(0,-2),y=JSON.stringify(y);else if(pe.isArray(y)&&zF(y)||(pe.isFileList(y)||pe.endsWith(j,"[]"))&&(x=pe.toArray(y)))return j=MA(j),x.forEach(function(w,k){!(pe.isUndefined(w)||w===null)&&n.append(o===!0?rN([j],k,a):o===null?j:j+"[]",h(w))}),!1}return Jv(y)?!0:(n.append(rN(v,j,a),h(y)),!1)}const m=[],p=Object.assign(qF,{defaultVisitor:f,convertValue:h,isVisitable:Jv});function g(y,j){if(!pe.isUndefined(y)){if(m.indexOf(y)!==-1)throw Error("Circular reference detected in "+j.join("."));m.push(y),pe.forEach(y,function(x,N){(!(pe.isUndefined(x)||x===null)&&s.call(n,x,pe.isString(N)?N.trim():N,j,p))===!0&&g(x,j?j.concat(N):[N])}),m.pop()}}if(!pe.isObject(t))throw new TypeError("data must be an object");return g(t),n}function iN(t){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(i){return n[i]})}function fy(t,n){this._pairs=[],t&&xf(t,this,n)}const LA=fy.prototype;LA.append=function(n,r){this._pairs.push([n,r])};LA.toString=function(n){const r=n?function(i){return n.call(this,i,iN)}:iN;return this._pairs.map(function(s){return r(s[0])+"="+r(s[1])},"").join("&")};function VF(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function BA(t,n,r){if(!n)return t;const i=r&&r.encode||VF;pe.isFunction(r)&&(r={serialize:r});const s=r&&r.serialize;let a;if(s?a=s(n,r):a=pe.isURLSearchParams(n)?n.toString():new fy(n,r).toString(i),a){const o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+a}return t}class sN{constructor(){this.handlers=[]}use(n,r,i){return this.handlers.push({fulfilled:n,rejected:r,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(n){this.handlers[n]&&(this.handlers[n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(n){pe.forEach(this.handlers,function(i){i!==null&&n(i)})}}const zA={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},UF=typeof URLSearchParams<"u"?URLSearchParams:fy,$F=typeof FormData<"u"?FormData:null,HF=typeof Blob<"u"?Blob:null,WF={isBrowser:!0,classes:{URLSearchParams:UF,FormData:$F,Blob:HF},protocols:["http","https","file","blob","url","data"]},my=typeof window<"u"&&typeof document<"u",Zv=typeof navigator=="object"&&navigator||void 0,KF=my&&(!Zv||["ReactNative","NativeScript","NS"].indexOf(Zv.product)<0),GF=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",QF=my&&window.location.href||"http://localhost",YF=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:my,hasStandardBrowserEnv:KF,hasStandardBrowserWebWorkerEnv:GF,navigator:Zv,origin:QF},Symbol.toStringTag,{value:"Module"})),Dn={...YF,...WF};function XF(t,n){return xf(t,new Dn.classes.URLSearchParams,{visitor:function(r,i,s,a){return Dn.isNode&&pe.isBuffer(r)?(this.append(i,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...n})}function JF(t){return pe.matchAll(/\w+|\[(\w*)]/g,t).map(n=>n[0]==="[]"?"":n[1]||n[0])}function ZF(t){const n={},r=Object.keys(t);let i;const s=r.length;let a;for(i=0;i<s;i++)a=r[i],n[a]=t[a];return n}function qA(t){function n(r,i,s,a){let o=r[a++];if(o==="__proto__")return!0;const c=Number.isFinite(+o),d=a>=r.length;return o=!o&&pe.isArray(s)?s.length:o,d?(pe.hasOwnProp(s,o)?s[o]=[s[o],i]:s[o]=i,!c):((!s[o]||!pe.isObject(s[o]))&&(s[o]=[]),n(r,i,s[o],a)&&pe.isArray(s[o])&&(s[o]=ZF(s[o])),!c)}if(pe.isFormData(t)&&pe.isFunction(t.entries)){const r={};return pe.forEachEntry(t,(i,s)=>{n(JF(i),s,r,0)}),r}return null}function eM(t,n,r){if(pe.isString(t))try{return(n||JSON.parse)(t),pe.trim(t)}catch(i){if(i.name!=="SyntaxError")throw i}return(r||JSON.stringify)(t)}const Pu={transitional:zA,adapter:["xhr","http","fetch"],transformRequest:[function(n,r){const i=r.getContentType()||"",s=i.indexOf("application/json")>-1,a=pe.isObject(n);if(a&&pe.isHTMLForm(n)&&(n=new FormData(n)),pe.isFormData(n))return s?JSON.stringify(qA(n)):n;if(pe.isArrayBuffer(n)||pe.isBuffer(n)||pe.isStream(n)||pe.isFile(n)||pe.isBlob(n)||pe.isReadableStream(n))return n;if(pe.isArrayBufferView(n))return n.buffer;if(pe.isURLSearchParams(n))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let c;if(a){if(i.indexOf("application/x-www-form-urlencoded")>-1)return XF(n,this.formSerializer).toString();if((c=pe.isFileList(n))||i.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return xf(c?{"files[]":n}:n,d&&new d,this.formSerializer)}}return a||s?(r.setContentType("application/json",!1),eM(n)):n}],transformResponse:[function(n){const r=this.transitional||Pu.transitional,i=r&&r.forcedJSONParsing,s=this.responseType==="json";if(pe.isResponse(n)||pe.isReadableStream(n))return n;if(n&&pe.isString(n)&&(i&&!this.responseType||s)){const o=!(r&&r.silentJSONParsing)&&s;try{return JSON.parse(n,this.parseReviver)}catch(c){if(o)throw c.name==="SyntaxError"?at.from(c,at.ERR_BAD_RESPONSE,this,null,this.response):c}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Dn.classes.FormData,Blob:Dn.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};pe.forEach(["delete","get","head","post","put","patch"],t=>{Pu.headers[t]={}});const tM=pe.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),nM=t=>{const n={};let r,i,s;return t&&t.split(`
`).forEach(function(o){s=o.indexOf(":"),r=o.substring(0,s).trim().toLowerCase(),i=o.substring(s+1).trim(),!(!r||n[r]&&tM[r])&&(r==="set-cookie"?n[r]?n[r].push(i):n[r]=[i]:n[r]=n[r]?n[r]+", "+i:i)}),n},aN=Symbol("internals");function jc(t){return t&&String(t).trim().toLowerCase()}function Ah(t){return t===!1||t==null?t:pe.isArray(t)?t.map(Ah):String(t)}function rM(t){const n=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=r.exec(t);)n[i[1]]=i[2];return n}const iM=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Kp(t,n,r,i,s){if(pe.isFunction(i))return i.call(this,n,r);if(s&&(n=r),!!pe.isString(n)){if(pe.isString(i))return n.indexOf(i)!==-1;if(pe.isRegExp(i))return i.test(n)}}function sM(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(n,r,i)=>r.toUpperCase()+i)}function aM(t,n){const r=pe.toCamelCase(" "+n);["get","set","has"].forEach(i=>{Object.defineProperty(t,i+r,{value:function(s,a,o){return this[i].call(this,n,s,a,o)},configurable:!0})})}let tr=class{constructor(n){n&&this.set(n)}set(n,r,i){const s=this;function a(c,d,h){const f=jc(d);if(!f)throw new Error("header name must be a non-empty string");const m=pe.findKey(s,f);(!m||s[m]===void 0||h===!0||h===void 0&&s[m]!==!1)&&(s[m||d]=Ah(c))}const o=(c,d)=>pe.forEach(c,(h,f)=>a(h,f,d));if(pe.isPlainObject(n)||n instanceof this.constructor)o(n,r);else if(pe.isString(n)&&(n=n.trim())&&!iM(n))o(nM(n),r);else if(pe.isObject(n)&&pe.isIterable(n)){let c={},d,h;for(const f of n){if(!pe.isArray(f))throw TypeError("Object iterator must return a key-value pair");c[h=f[0]]=(d=c[h])?pe.isArray(d)?[...d,f[1]]:[d,f[1]]:f[1]}o(c,r)}else n!=null&&a(r,n,i);return this}get(n,r){if(n=jc(n),n){const i=pe.findKey(this,n);if(i){const s=this[i];if(!r)return s;if(r===!0)return rM(s);if(pe.isFunction(r))return r.call(this,s,i);if(pe.isRegExp(r))return r.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(n,r){if(n=jc(n),n){const i=pe.findKey(this,n);return!!(i&&this[i]!==void 0&&(!r||Kp(this,this[i],i,r)))}return!1}delete(n,r){const i=this;let s=!1;function a(o){if(o=jc(o),o){const c=pe.findKey(i,o);c&&(!r||Kp(i,i[c],c,r))&&(delete i[c],s=!0)}}return pe.isArray(n)?n.forEach(a):a(n),s}clear(n){const r=Object.keys(this);let i=r.length,s=!1;for(;i--;){const a=r[i];(!n||Kp(this,this[a],a,n,!0))&&(delete this[a],s=!0)}return s}normalize(n){const r=this,i={};return pe.forEach(this,(s,a)=>{const o=pe.findKey(i,a);if(o){r[o]=Ah(s),delete r[a];return}const c=n?sM(a):String(a).trim();c!==a&&delete r[a],r[c]=Ah(s),i[c]=!0}),this}concat(...n){return this.constructor.concat(this,...n)}toJSON(n){const r=Object.create(null);return pe.forEach(this,(i,s)=>{i!=null&&i!==!1&&(r[s]=n&&pe.isArray(i)?i.join(", "):i)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([n,r])=>n+": "+r).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(n){return n instanceof this?n:new this(n)}static concat(n,...r){const i=new this(n);return r.forEach(s=>i.set(s)),i}static accessor(n){const i=(this[aN]=this[aN]={accessors:{}}).accessors,s=this.prototype;function a(o){const c=jc(o);i[c]||(aM(s,o),i[c]=!0)}return pe.isArray(n)?n.forEach(a):a(n),this}};tr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);pe.reduceDescriptors(tr.prototype,({value:t},n)=>{let r=n[0].toUpperCase()+n.slice(1);return{get:()=>t,set(i){this[r]=i}}});pe.freezeMethods(tr);function Gp(t,n){const r=this||Pu,i=n||r,s=tr.from(i.headers);let a=i.data;return pe.forEach(t,function(c){a=c.call(r,a,s.normalize(),n?n.status:void 0)}),s.normalize(),a}function VA(t){return!!(t&&t.__CANCEL__)}function Al(t,n,r){at.call(this,t??"canceled",at.ERR_CANCELED,n,r),this.name="CanceledError"}pe.inherits(Al,at,{__CANCEL__:!0});function UA(t,n,r){const i=r.config.validateStatus;!r.status||!i||i(r.status)?t(r):n(new at("Request failed with status code "+r.status,[at.ERR_BAD_REQUEST,at.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function oM(t){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return n&&n[1]||""}function lM(t,n){t=t||10;const r=new Array(t),i=new Array(t);let s=0,a=0,o;return n=n!==void 0?n:1e3,function(d){const h=Date.now(),f=i[a];o||(o=h),r[s]=d,i[s]=h;let m=a,p=0;for(;m!==s;)p+=r[m++],m=m%t;if(s=(s+1)%t,s===a&&(a=(a+1)%t),h-o<n)return;const g=f&&h-f;return g?Math.round(p*1e3/g):void 0}}function cM(t,n){let r=0,i=1e3/n,s,a;const o=(h,f=Date.now())=>{r=f,s=null,a&&(clearTimeout(a),a=null),t(...h)};return[(...h)=>{const f=Date.now(),m=f-r;m>=i?o(h,f):(s=h,a||(a=setTimeout(()=>{a=null,o(s)},i-m)))},()=>s&&o(s)]}const Hh=(t,n,r=3)=>{let i=0;const s=lM(50,250);return cM(a=>{const o=a.loaded,c=a.lengthComputable?a.total:void 0,d=o-i,h=s(d),f=o<=c;i=o;const m={loaded:o,total:c,progress:c?o/c:void 0,bytes:d,rate:h||void 0,estimated:h&&c&&f?(c-o)/h:void 0,event:a,lengthComputable:c!=null,[n?"download":"upload"]:!0};t(m)},r)},oN=(t,n)=>{const r=t!=null;return[i=>n[0]({lengthComputable:r,total:t,loaded:i}),n[1]]},lN=t=>(...n)=>pe.asap(()=>t(...n)),uM=Dn.hasStandardBrowserEnv?((t,n)=>r=>(r=new URL(r,Dn.origin),t.protocol===r.protocol&&t.host===r.host&&(n||t.port===r.port)))(new URL(Dn.origin),Dn.navigator&&/(msie|trident)/i.test(Dn.navigator.userAgent)):()=>!0,dM=Dn.hasStandardBrowserEnv?{write(t,n,r,i,s,a){const o=[t+"="+encodeURIComponent(n)];pe.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),pe.isString(i)&&o.push("path="+i),pe.isString(s)&&o.push("domain="+s),a===!0&&o.push("secure"),document.cookie=o.join("; ")},read(t){const n=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function hM(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function fM(t,n){return n?t.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):t}function $A(t,n,r){let i=!hM(n);return t&&(i||r==!1)?fM(t,n):n}const cN=t=>t instanceof tr?{...t}:t;function Ka(t,n){n=n||{};const r={};function i(h,f,m,p){return pe.isPlainObject(h)&&pe.isPlainObject(f)?pe.merge.call({caseless:p},h,f):pe.isPlainObject(f)?pe.merge({},f):pe.isArray(f)?f.slice():f}function s(h,f,m,p){if(pe.isUndefined(f)){if(!pe.isUndefined(h))return i(void 0,h,m,p)}else return i(h,f,m,p)}function a(h,f){if(!pe.isUndefined(f))return i(void 0,f)}function o(h,f){if(pe.isUndefined(f)){if(!pe.isUndefined(h))return i(void 0,h)}else return i(void 0,f)}function c(h,f,m){if(m in n)return i(h,f);if(m in t)return i(void 0,h)}const d={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:c,headers:(h,f,m)=>s(cN(h),cN(f),m,!0)};return pe.forEach(Object.keys({...t,...n}),function(f){const m=d[f]||s,p=m(t[f],n[f],f);pe.isUndefined(p)&&m!==c||(r[f]=p)}),r}const HA=t=>{const n=Ka({},t);let{data:r,withXSRFToken:i,xsrfHeaderName:s,xsrfCookieName:a,headers:o,auth:c}=n;if(n.headers=o=tr.from(o),n.url=BA($A(n.baseURL,n.url,n.allowAbsoluteUrls),t.params,t.paramsSerializer),c&&o.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),pe.isFormData(r)){if(Dn.hasStandardBrowserEnv||Dn.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(pe.isFunction(r.getHeaders)){const d=r.getHeaders(),h=["content-type","content-length"];Object.entries(d).forEach(([f,m])=>{h.includes(f.toLowerCase())&&o.set(f,m)})}}if(Dn.hasStandardBrowserEnv&&(i&&pe.isFunction(i)&&(i=i(n)),i||i!==!1&&uM(n.url))){const d=s&&a&&dM.read(a);d&&o.set(s,d)}return n},mM=typeof XMLHttpRequest<"u",pM=mM&&function(t){return new Promise(function(r,i){const s=HA(t);let a=s.data;const o=tr.from(s.headers).normalize();let{responseType:c,onUploadProgress:d,onDownloadProgress:h}=s,f,m,p,g,y;function j(){g&&g(),y&&y(),s.cancelToken&&s.cancelToken.unsubscribe(f),s.signal&&s.signal.removeEventListener("abort",f)}let v=new XMLHttpRequest;v.open(s.method.toUpperCase(),s.url,!0),v.timeout=s.timeout;function x(){if(!v)return;const w=tr.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),A={data:!c||c==="text"||c==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:w,config:t,request:v};UA(function(E){r(E),j()},function(E){i(E),j()},A),v=null}"onloadend"in v?v.onloadend=x:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(x)},v.onabort=function(){v&&(i(new at("Request aborted",at.ECONNABORTED,t,v)),v=null)},v.onerror=function(k){const A=k&&k.message?k.message:"Network Error",S=new at(A,at.ERR_NETWORK,t,v);S.event=k||null,i(S),v=null},v.ontimeout=function(){let k=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const A=s.transitional||zA;s.timeoutErrorMessage&&(k=s.timeoutErrorMessage),i(new at(k,A.clarifyTimeoutError?at.ETIMEDOUT:at.ECONNABORTED,t,v)),v=null},a===void 0&&o.setContentType(null),"setRequestHeader"in v&&pe.forEach(o.toJSON(),function(k,A){v.setRequestHeader(A,k)}),pe.isUndefined(s.withCredentials)||(v.withCredentials=!!s.withCredentials),c&&c!=="json"&&(v.responseType=s.responseType),h&&([p,y]=Hh(h,!0),v.addEventListener("progress",p)),d&&v.upload&&([m,g]=Hh(d),v.upload.addEventListener("progress",m),v.upload.addEventListener("loadend",g)),(s.cancelToken||s.signal)&&(f=w=>{v&&(i(!w||w.type?new Al(null,t,v):w),v.abort(),v=null)},s.cancelToken&&s.cancelToken.subscribe(f),s.signal&&(s.signal.aborted?f():s.signal.addEventListener("abort",f)));const N=oM(s.url);if(N&&Dn.protocols.indexOf(N)===-1){i(new at("Unsupported protocol "+N+":",at.ERR_BAD_REQUEST,t));return}v.send(a||null)})},gM=(t,n)=>{const{length:r}=t=t?t.filter(Boolean):[];if(n||r){let i=new AbortController,s;const a=function(h){if(!s){s=!0,c();const f=h instanceof Error?h:this.reason;i.abort(f instanceof at?f:new Al(f instanceof Error?f.message:f))}};let o=n&&setTimeout(()=>{o=null,a(new at(`timeout ${n} of ms exceeded`,at.ETIMEDOUT))},n);const c=()=>{t&&(o&&clearTimeout(o),o=null,t.forEach(h=>{h.unsubscribe?h.unsubscribe(a):h.removeEventListener("abort",a)}),t=null)};t.forEach(h=>h.addEventListener("abort",a));const{signal:d}=i;return d.unsubscribe=()=>pe.asap(c),d}},xM=function*(t,n){let r=t.byteLength;if(r<n){yield t;return}let i=0,s;for(;i<r;)s=i+n,yield t.slice(i,s),i=s},vM=async function*(t,n){for await(const r of yM(t))yield*xM(r,n)},yM=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const n=t.getReader();try{for(;;){const{done:r,value:i}=await n.read();if(r)break;yield i}}finally{await n.cancel()}},uN=(t,n,r,i)=>{const s=vM(t,n);let a=0,o,c=d=>{o||(o=!0,i&&i(d))};return new ReadableStream({async pull(d){try{const{done:h,value:f}=await s.next();if(h){c(),d.close();return}let m=f.byteLength;if(r){let p=a+=m;r(p)}d.enqueue(new Uint8Array(f))}catch(h){throw c(h),h}},cancel(d){return c(d),s.return()}},{highWaterMark:2})},dN=64*1024,{isFunction:ih}=pe,bM=(({Request:t,Response:n})=>({Request:t,Response:n}))(pe.global),{ReadableStream:hN,TextEncoder:fN}=pe.global,mN=(t,...n)=>{try{return!!t(...n)}catch{return!1}},jM=t=>{t=pe.merge.call({skipUndefined:!0},bM,t);const{fetch:n,Request:r,Response:i}=t,s=n?ih(n):typeof fetch=="function",a=ih(r),o=ih(i);if(!s)return!1;const c=s&&ih(hN),d=s&&(typeof fN=="function"?(y=>j=>y.encode(j))(new fN):async y=>new Uint8Array(await new r(y).arrayBuffer())),h=a&&c&&mN(()=>{let y=!1;const j=new r(Dn.origin,{body:new hN,method:"POST",get duplex(){return y=!0,"half"}}).headers.has("Content-Type");return y&&!j}),f=o&&c&&mN(()=>pe.isReadableStream(new i("").body)),m={stream:f&&(y=>y.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(y=>{!m[y]&&(m[y]=(j,v)=>{let x=j&&j[y];if(x)return x.call(j);throw new at(`Response type '${y}' is not supported`,at.ERR_NOT_SUPPORT,v)})});const p=async y=>{if(y==null)return 0;if(pe.isBlob(y))return y.size;if(pe.isSpecCompliantForm(y))return(await new r(Dn.origin,{method:"POST",body:y}).arrayBuffer()).byteLength;if(pe.isArrayBufferView(y)||pe.isArrayBuffer(y))return y.byteLength;if(pe.isURLSearchParams(y)&&(y=y+""),pe.isString(y))return(await d(y)).byteLength},g=async(y,j)=>{const v=pe.toFiniteNumber(y.getContentLength());return v??p(j)};return async y=>{let{url:j,method:v,data:x,signal:N,cancelToken:w,timeout:k,onDownloadProgress:A,onUploadProgress:S,responseType:E,headers:C,withCredentials:B="same-origin",fetchOptions:F}=HA(y),I=n||fetch;E=E?(E+"").toLowerCase():"text";let R=gM([N,w&&w.toAbortSignal()],k),z=null;const q=R&&R.unsubscribe&&(()=>{R.unsubscribe()});let U;try{if(S&&h&&v!=="get"&&v!=="head"&&(U=await g(C,x))!==0){let T=new r(j,{method:"POST",body:x,duplex:"half"}),V;if(pe.isFormData(x)&&(V=T.headers.get("content-type"))&&C.setContentType(V),T.body){const[L,X]=oN(U,Hh(lN(S)));x=uN(T.body,dN,L,X)}}pe.isString(B)||(B=B?"include":"omit");const Q=a&&"credentials"in r.prototype,H={...F,signal:R,method:v.toUpperCase(),headers:C.normalize().toJSON(),body:x,duplex:"half",credentials:Q?B:void 0};z=a&&new r(j,H);let K=await(a?I(z,F):I(j,H));const Y=f&&(E==="stream"||E==="response");if(f&&(A||Y&&q)){const T={};["status","statusText","headers"].forEach(J=>{T[J]=K[J]});const V=pe.toFiniteNumber(K.headers.get("content-length")),[L,X]=A&&oN(V,Hh(lN(A),!0))||[];K=new i(uN(K.body,dN,L,()=>{X&&X(),q&&q()}),T)}E=E||"text";let P=await m[pe.findKey(m,E)||"text"](K,y);return!Y&&q&&q(),await new Promise((T,V)=>{UA(T,V,{data:P,headers:tr.from(K.headers),status:K.status,statusText:K.statusText,config:y,request:z})})}catch(Q){throw q&&q(),Q&&Q.name==="TypeError"&&/Load failed|fetch/i.test(Q.message)?Object.assign(new at("Network Error",at.ERR_NETWORK,y,z),{cause:Q.cause||Q}):at.from(Q,Q&&Q.code,y,z)}}},wM=new Map,WA=t=>{let n=t?t.env:{};const{fetch:r,Request:i,Response:s}=n,a=[i,s,r];let o=a.length,c=o,d,h,f=wM;for(;c--;)d=a[c],h=f.get(d),h===void 0&&f.set(d,h=c?new Map:jM(n)),f=h;return h};WA();const e0={http:BF,xhr:pM,fetch:{get:WA}};pe.forEach(e0,(t,n)=>{if(t){try{Object.defineProperty(t,"name",{value:n})}catch{}Object.defineProperty(t,"adapterName",{value:n})}});const pN=t=>`- ${t}`,NM=t=>pe.isFunction(t)||t===null||t===!1,KA={getAdapter:(t,n)=>{t=pe.isArray(t)?t:[t];const{length:r}=t;let i,s;const a={};for(let o=0;o<r;o++){i=t[o];let c;if(s=i,!NM(i)&&(s=e0[(c=String(i)).toLowerCase()],s===void 0))throw new at(`Unknown adapter '${c}'`);if(s&&(pe.isFunction(s)||(s=s.get(n))))break;a[c||"#"+o]=s}if(!s){const o=Object.entries(a).map(([d,h])=>`adapter ${d} `+(h===!1?"is not supported by the environment":"is not available in the build"));let c=r?o.length>1?`since :
`+o.map(pN).join(`
`):" "+pN(o[0]):"as no adapter specified";throw new at("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return s},adapters:e0};function Qp(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Al(null,t)}function gN(t){return Qp(t),t.headers=tr.from(t.headers),t.data=Gp.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),KA.getAdapter(t.adapter||Pu.adapter,t)(t).then(function(i){return Qp(t),i.data=Gp.call(t,t.transformResponse,i),i.headers=tr.from(i.headers),i},function(i){return VA(i)||(Qp(t),i&&i.response&&(i.response.data=Gp.call(t,t.transformResponse,i.response),i.response.headers=tr.from(i.response.headers))),Promise.reject(i)})}const GA="1.12.2",vf={};["object","boolean","number","function","string","symbol"].forEach((t,n)=>{vf[t]=function(i){return typeof i===t||"a"+(n<1?"n ":" ")+t}});const xN={};vf.transitional=function(n,r,i){function s(a,o){return"[Axios v"+GA+"] Transitional option '"+a+"'"+o+(i?". "+i:"")}return(a,o,c)=>{if(n===!1)throw new at(s(o," has been removed"+(r?" in "+r:"")),at.ERR_DEPRECATED);return r&&!xN[o]&&(xN[o]=!0,console.warn(s(o," has been deprecated since v"+r+" and will be removed in the near future"))),n?n(a,o,c):!0}};vf.spelling=function(n){return(r,i)=>(console.warn(`${i} is likely a misspelling of ${n}`),!0)};function kM(t,n,r){if(typeof t!="object")throw new at("options must be an object",at.ERR_BAD_OPTION_VALUE);const i=Object.keys(t);let s=i.length;for(;s-- >0;){const a=i[s],o=n[a];if(o){const c=t[a],d=c===void 0||o(c,a,t);if(d!==!0)throw new at("option "+a+" must be "+d,at.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new at("Unknown option "+a,at.ERR_BAD_OPTION)}}const Ch={assertOptions:kM,validators:vf},ni=Ch.validators;let za=class{constructor(n){this.defaults=n||{},this.interceptors={request:new sN,response:new sN}}async request(n,r){try{return await this._request(n,r)}catch(i){if(i instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const a=s.stack?s.stack.replace(/^.+\n/,""):"";try{i.stack?a&&!String(i.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(i.stack+=`
`+a):i.stack=a}catch{}}throw i}}_request(n,r){typeof n=="string"?(r=r||{},r.url=n):r=n||{},r=Ka(this.defaults,r);const{transitional:i,paramsSerializer:s,headers:a}=r;i!==void 0&&Ch.assertOptions(i,{silentJSONParsing:ni.transitional(ni.boolean),forcedJSONParsing:ni.transitional(ni.boolean),clarifyTimeoutError:ni.transitional(ni.boolean)},!1),s!=null&&(pe.isFunction(s)?r.paramsSerializer={serialize:s}:Ch.assertOptions(s,{encode:ni.function,serialize:ni.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Ch.assertOptions(r,{baseUrl:ni.spelling("baseURL"),withXsrfToken:ni.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=a&&pe.merge(a.common,a[r.method]);a&&pe.forEach(["delete","get","head","post","put","patch","common"],y=>{delete a[y]}),r.headers=tr.concat(o,a);const c=[];let d=!0;this.interceptors.request.forEach(function(j){typeof j.runWhen=="function"&&j.runWhen(r)===!1||(d=d&&j.synchronous,c.unshift(j.fulfilled,j.rejected))});const h=[];this.interceptors.response.forEach(function(j){h.push(j.fulfilled,j.rejected)});let f,m=0,p;if(!d){const y=[gN.bind(this),void 0];for(y.unshift(...c),y.push(...h),p=y.length,f=Promise.resolve(r);m<p;)f=f.then(y[m++],y[m++]);return f}p=c.length;let g=r;for(;m<p;){const y=c[m++],j=c[m++];try{g=y(g)}catch(v){j.call(this,v);break}}try{f=gN.call(this,g)}catch(y){return Promise.reject(y)}for(m=0,p=h.length;m<p;)f=f.then(h[m++],h[m++]);return f}getUri(n){n=Ka(this.defaults,n);const r=$A(n.baseURL,n.url,n.allowAbsoluteUrls);return BA(r,n.params,n.paramsSerializer)}};pe.forEach(["delete","get","head","options"],function(n){za.prototype[n]=function(r,i){return this.request(Ka(i||{},{method:n,url:r,data:(i||{}).data}))}});pe.forEach(["post","put","patch"],function(n){function r(i){return function(a,o,c){return this.request(Ka(c||{},{method:n,headers:i?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}za.prototype[n]=r(),za.prototype[n+"Form"]=r(!0)});let _M=class QA{constructor(n){if(typeof n!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(a){r=a});const i=this;this.promise.then(s=>{if(!i._listeners)return;let a=i._listeners.length;for(;a-- >0;)i._listeners[a](s);i._listeners=null}),this.promise.then=s=>{let a;const o=new Promise(c=>{i.subscribe(c),a=c}).then(s);return o.cancel=function(){i.unsubscribe(a)},o},n(function(a,o,c){i.reason||(i.reason=new Al(a,o,c),r(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]}unsubscribe(n){if(!this._listeners)return;const r=this._listeners.indexOf(n);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const n=new AbortController,r=i=>{n.abort(i)};return this.subscribe(r),n.signal.unsubscribe=()=>this.unsubscribe(r),n.signal}static source(){let n;return{token:new QA(function(s){n=s}),cancel:n}}};function SM(t){return function(r){return t.apply(null,r)}}function AM(t){return pe.isObject(t)&&t.isAxiosError===!0}const t0={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(t0).forEach(([t,n])=>{t0[n]=t});function YA(t){const n=new za(t),r=AA(za.prototype.request,n);return pe.extend(r,za.prototype,n,{allOwnKeys:!0}),pe.extend(r,n,null,{allOwnKeys:!0}),r.create=function(s){return YA(Ka(t,s))},r}const sn=YA(Pu);sn.Axios=za;sn.CanceledError=Al;sn.CancelToken=_M;sn.isCancel=VA;sn.VERSION=GA;sn.toFormData=xf;sn.AxiosError=at;sn.Cancel=sn.CanceledError;sn.all=function(n){return Promise.all(n)};sn.spread=SM;sn.isAxiosError=AM;sn.mergeConfig=Ka;sn.AxiosHeaders=tr;sn.formToJSON=t=>qA(pe.isHTMLForm(t)?new FormData(t):t);sn.getAdapter=KA.getAdapter;sn.HttpStatusCode=t0;sn.default=sn;const{Axios:Ane,AxiosError:Cne,CanceledError:Ene,isCancel:Tne,CancelToken:One,VERSION:Pne,all:Dne,Cancel:Ine,isAxiosError:Rne,spread:Fne,toFormData:Mne,AxiosHeaders:Lne,HttpStatusCode:Bne,formToJSON:zne,getAdapter:qne,mergeConfig:Vne}=sn,CM=typeof window>"u",vN=!CM&&window.self!==window.top,Yp=()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),kn=[];for(let t=0;t<256;++t)kn.push((t+256).toString(16).slice(1));function EM(t,n=0){return(kn[t[n+0]]+kn[t[n+1]]+kn[t[n+2]]+kn[t[n+3]]+"-"+kn[t[n+4]]+kn[t[n+5]]+"-"+kn[t[n+6]]+kn[t[n+7]]+"-"+kn[t[n+8]]+kn[t[n+9]]+"-"+kn[t[n+10]]+kn[t[n+11]]+kn[t[n+12]]+kn[t[n+13]]+kn[t[n+14]]+kn[t[n+15]]).toLowerCase()}let Xp;const TM=new Uint8Array(16);function OM(){if(!Xp){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Xp=crypto.getRandomValues.bind(crypto)}return Xp(TM)}const PM=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),yN={randomUUID:PM};function DM(t,n,r){var s;t=t||{};const i=t.random??((s=t.rng)==null?void 0:s.call(t))??OM();if(i.length<16)throw new Error("Random bytes length must be >= 16");return i[6]=i[6]&15|64,i[8]=i[8]&63|128,EM(i)}function IM(t,n,r){return yN.randomUUID&&!t?yN.randomUUID():DM(t)}class RM extends Error{constructor(n,r,i,s,a){super(n),this.name="Base44Error",this.status=r,this.code=i,this.data=s,this.originalError=a}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code,data:this.data}}}function Ic({baseURL:t,headers:n={},token:r,interceptResponses:i=!0,onError:s}){const a=sn.create({baseURL:t,headers:{"Content-Type":"application/json",Accept:"application/json",...n}});return r&&(a.defaults.headers.common.Authorization=`Bearer ${r}`),a.interceptors.request.use(o=>{typeof window<"u"&&o.headers.set("X-Origin-URL",window.location.href);const c=IM();if(o.requestId=c,vN)try{window.parent.postMessage({type:"api-request-start",requestId:c,data:{url:t+o.url,method:o.method,body:o.data instanceof FormData?"[FormData object]":o.data}},"*")}catch{}return o}),i&&a.interceptors.response.use(o=>{var c;const d=(c=o.config)===null||c===void 0?void 0:c.requestId;try{vN&&d&&window.parent.postMessage({type:"api-request-end",requestId:d,data:{statusCode:o.status,response:o.data}},"*")}catch{}return o.data},o=>{var c,d,h,f,m,p,g,y;const j=((d=(c=o.response)===null||c===void 0?void 0:c.data)===null||d===void 0?void 0:d.message)||((f=(h=o.response)===null||h===void 0?void 0:h.data)===null||f===void 0?void 0:f.detail)||o.message,v=new RM(j,(m=o.response)===null||m===void 0?void 0:m.status,(g=(p=o.response)===null||p===void 0?void 0:p.data)===null||g===void 0?void 0:g.code,(y=o.response)===null||y===void 0?void 0:y.data,o);return s==null||s(v),Promise.reject(v)}),a}function bN(t){const{axios:n,appId:r,getSocket:i}=t;return new Proxy({},{get(s,a){if(!(typeof a!="string"||a==="then"||a.startsWith("_")))return MM(n,r,a,i)}})}function FM(t){var n;try{const r=JSON.parse(t);return{type:r.type,data:r.data,id:r.id||((n=r.data)===null||n===void 0?void 0:n.id),timestamp:r.timestamp||new Date().toISOString()}}catch(r){return console.warn("[Base44 SDK] Failed to parse realtime message:",r),null}}function MM(t,n,r,i){const s=`/apps/${n}/entities/${r}`;return{async list(a,o,c,d){const h={};return a&&(h.sort=a),o&&(h.limit=o),c&&(h.skip=c),d&&(h.fields=Array.isArray(d)?d.join(","):d),t.get(s,{params:h})},async filter(a,o,c,d,h){const f={q:JSON.stringify(a)};return o&&(f.sort=o),c&&(f.limit=c),d&&(f.skip=d),h&&(f.fields=Array.isArray(h)?h.join(","):h),t.get(s,{params:f})},async get(a){return t.get(`${s}/${a}`)},async create(a){return t.post(s,a)},async update(a,o){return t.put(`${s}/${a}`,o)},async delete(a){return t.delete(`${s}/${a}`)},async deleteMany(a){return t.delete(s,{data:a})},async bulkCreate(a){return t.post(`${s}/bulk`,a)},async updateMany(a,o){return t.patch(`${s}/update-many`,{query:a,data:o})},async bulkUpdate(a){return t.put(`${s}/bulk`,a)},async importEntities(a){const o=new FormData;return o.append("file",a,a.name),t.post(`${s}/import`,o,{headers:{"Content-Type":"multipart/form-data"}})},subscribe(a){const o=`entities:${n}:${r}`;return i().subscribeToRoom(o,{update_model:h=>{const f=FM(h.data);if(f)try{a(f)}catch(m){console.error("[Base44 SDK] Subscription callback error:",m)}}})}}}function LM(t,n){return{async call(r,i,s){if(!(r!=null&&r.trim()))throw new Error("Integration slug is required and cannot be empty");if(!(i!=null&&i.trim()))throw new Error("Operation ID is required and cannot be empty");const{pathParams:a,queryParams:o,...c}=s??{},d={...c,...a&&{path_params:a},...o&&{query_params:o}};return await t.post(`/apps/${n}/integrations/custom/${r}/${i}`,d)}}}function jN(t,n){const r=LM(t,n);return new Proxy({},{get(i,s){if(!(typeof s!="string"||s==="then"||s.startsWith("_")))return s==="custom"?r:new Proxy({},{get(a,o){if(!(typeof o!="string"||o==="then"||o.startsWith("_")))return async c=>{if(typeof c=="string")throw new Error(`Integration ${o} must receive an object with named parameters, received: ${c}`);let d,h;return c instanceof FormData||c&&Object.values(c).some(f=>f instanceof File)?(d=new FormData,Object.keys(c).forEach(f=>{c[f]instanceof File?d.append(f,c[f],c[f].name):typeof c[f]=="object"&&c[f]!==null?d.append(f,JSON.stringify(c[f])):d.append(f,c[f])}),h="multipart/form-data"):(d=c,h="application/json"),s==="Core"?t.post(`/apps/${n}/integration-endpoints/Core/${o}`,d||c,{headers:{"Content-Type":h}}):t.post(`/apps/${n}/integration-endpoints/installable/${s}/integration-endpoints/${o}`,d||c,{headers:{"Content-Type":h}})}}})}})}function BM(){return typeof window>"u"?!1:window!==window.parent}function zM(t,n,r){const a=Math.round(window.screenX+(window.outerWidth-500)/2),o=Math.round(window.screenY+(window.outerHeight-600)/2),c=window.open(t,"base44_auth",`width=500,height=600,left=${a},top=${o},resizable=yes,scrollbars=yes`);if(!c)return;const d=()=>{window.removeEventListener("message",h),clearInterval(f),c.closed||c.close()},h=m=>{var p;if(m.origin!==r||m.source!==c||!(!((p=m.data)===null||p===void 0)&&p.access_token))return;d();const g=new URL(n),{access_token:y,is_new_user:j}=m.data;g.searchParams.set("access_token",y),j!=null&&g.searchParams.set("is_new_user",String(j)),window.location.href=g.toString()},f=setInterval(()=>{c.closed&&d()},500);window.addEventListener("message",h)}function qM(t,n,r,i){return{async me(){return t.get(`/apps/${r}/entities/User/me`)},async updateMe(s){return t.put(`/apps/${r}/entities/User/me`,s)},redirectToLogin(s){if(typeof window>"u")throw new Error("Login method can only be used in a browser environment");const a=s?new URL(s,window.location.origin).toString():window.location.href,o=`${i.appBaseUrl}/login?from_url=${encodeURIComponent(a)}`;window.location.href=o},loginWithProvider(s,a="/"){const o=new URL(a,window.location.origin).toString(),c=`app_id=${r}&from_url=${encodeURIComponent(o)}`;let d;s==="sso"?d=`/apps/${r}/auth/sso/login`:d=`/apps/auth${s==="google"?"":`/${s}`}/login`;const h=`${i.appBaseUrl}/api${d}?${c}`;if(BM()){const f=`${h}&popup_origin=${encodeURIComponent(window.location.origin)}`;return zM(f,o,window.location.origin)}window.location.href=h},logout(s){if(delete t.defaults.headers.common.Authorization,typeof window<"u"){if(window.localStorage)try{window.localStorage.removeItem("base44_access_token"),window.localStorage.removeItem("token")}catch(c){console.error("Failed to remove token from localStorage:",c)}const a=s||window.location.href,o=`${i.appBaseUrl}/api/apps/auth/logout?from_url=${encodeURIComponent(a)}`;window.location.href=o}},setToken(s,a=!0){if(s&&(t.defaults.headers.common.Authorization=`Bearer ${s}`,n.defaults.headers.common.Authorization=`Bearer ${s}`,a&&typeof window<"u"&&window.localStorage))try{window.localStorage.setItem("base44_access_token",s),window.localStorage.setItem("token",s)}catch(o){console.error("Failed to save token to localStorage:",o)}},async loginViaEmailPassword(s,a,o){var c;try{const d=await t.post(`/apps/${r}/auth/login`,{email:s,password:a,...o&&{turnstile_token:o}}),{access_token:h,user:f}=d;return h&&this.setToken(h),{access_token:h,user:f}}catch(d){throw((c=d.response)===null||c===void 0?void 0:c.status)===401&&await this.logout(),d}},async isAuthenticated(){try{return await this.me(),!0}catch{return!1}},inviteUser(s,a){return t.post(`/apps/${r}/users/invite-user`,{user_email:s,role:a})},register(s){return t.post(`/apps/${r}/auth/register`,s)},verifyOtp({email:s,otpCode:a}){return t.post(`/apps/${r}/auth/verify-otp`,{email:s,otp_code:a})},resendOtp(s){return t.post(`/apps/${r}/auth/resend-otp`,{email:s})},resetPasswordRequest(s){return t.post(`/apps/${r}/auth/reset-password-request`,{email:s})},resetPassword({resetToken:s,newPassword:a}){return t.post(`/apps/${r}/auth/reset-password`,{reset_token:s,new_password:a})},changePassword({userId:s,currentPassword:a,newPassword:o}){return t.post(`/apps/${r}/auth/change-password`,{user_id:s,current_password:a,new_password:o})}}}function VM(t,n){return{async getAccessToken(r){const i=`/apps/${n}/auth/sso/accesstoken/${r}`;return t.get(i)}}}function UM(t,n){return{async getAccessToken(r){if(!r||typeof r!="string")throw new Error("Integration type is required and must be a string");return(await t.get(`/apps/${n}/external-auth/tokens/${r}`)).access_token},async getConnection(r){var i;if(!r||typeof r!="string")throw new Error("Integration type is required and must be a string");const a=await t.get(`/apps/${n}/external-auth/tokens/${r}`);return{accessToken:a.access_token,connectionConfig:(i=a.connection_config)!==null&&i!==void 0?i:null}},async getCurrentAppUserAccessToken(r){if(!r||typeof r!="string")throw new Error("Connector ID is required and must be a string");return(await t.get(`/apps/${n}/app-user-auth/connectors/${r}/token`)).access_token},async getCurrentAppUserConnection(r){var i;if(!r||typeof r!="string")throw new Error("Connector ID is required and must be a string");const a=await t.get(`/apps/${n}/app-user-auth/connectors/${r}/token`);return{accessToken:a.access_token,connectionConfig:(i=a.connection_config)!==null&&i!==void 0?i:null}}}}function $M(t,n){return{async connectAppUser(r){if(!r||typeof r!="string")throw new Error("Connector ID is required and must be a string");return(await t.post(`/apps/${n}/app-user-auth/connectors/${r}/initiate`)).redirect_url},async disconnectAppUser(r){if(!r||typeof r!="string")throw new Error("Connector ID is required and must be a string");await t.delete(`/apps/${n}/app-user-auth/connectors/${r}`)}}}function lu(t={}){const{storageKey:n="base44_access_token",paramName:r="access_token",saveToStorage:i=!0,removeFromUrl:s=!0}=t;let a=null;if(typeof window<"u"&&window.location)try{const o=new URLSearchParams(window.location.search);if(a=o.get(r),a){if(i&&HM(a,{storageKey:n}),s){o.delete(r);const c=`${window.location.pathname}${o.toString()?`?${o.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,c)}return a}}catch(o){console.error("Error retrieving token from URL:",o)}if(typeof window<"u"&&window.localStorage)try{return a=window.localStorage.getItem(n),a}catch(o){console.error("Error retrieving token from local storage:",o)}return null}function HM(t,n){const{storageKey:r="base44_access_token"}=n;if(typeof window>"u"||!window.localStorage||!t)return!1;try{return window.localStorage.setItem(r,t),window.localStorage.setItem("token",t),!0}catch(i){return console.error("Error saving token to local storage:",i),!1}}function wN(t,n,r){const i=(a,o)=>a?`${String(a).replace(/\/$/,"")}${o}`:o,s=a=>{const o=new Headers;if(r!=null&&r.getAuthHeaders){const c=r.getAuthHeaders();Object.entries(c).forEach(([d,h])=>{h!=null&&o.set(d,String(h))})}return a&&new Headers(a).forEach((c,d)=>{o.set(d,c)}),o};return{async invoke(a,o){if(typeof o=="string")throw new Error(`Function ${a} must receive an object with named parameters, received: ${o}`);let c,d;return o instanceof FormData||o&&Object.values(o).some(h=>h instanceof File)?(c=new FormData,Object.keys(o).forEach(h=>{o[h]instanceof File?c.append(h,o[h],o[h].name):typeof o[h]=="object"&&o[h]!==null?c.append(h,JSON.stringify(o[h])):c.append(h,o[h])}),d="multipart/form-data"):(c=o,d="application/json"),t.post(`/apps/${n}/functions/${a}`,c||o,{headers:{"Content-Type":d}})},async fetch(a,o={}){const d=`/functions${a.startsWith("/")?a:`/${a}`}`,h=s(o.headers),f={...o,headers:h};return await fetch(i(r==null?void 0:r.baseURL,d),f)}}}function NN({axios:t,getSocket:n,appId:r,serverUrl:i,token:s}){const a=`/apps/${r}/agents`,o={},c=()=>t.get(`${a}/conversations`),d=j=>t.get(`${a}/conversations/${j}`);return{getConversations:c,getConversation:d,listConversations:j=>t.get(`${a}/conversations`,{params:j}),createConversation:j=>t.post(`${a}/conversations`,j),addMessage:async(j,v)=>t.post(`${a}/conversations/v2/${j.id}/messages`,v),subscribeToConversation:(j,v)=>{const x=`/agent-conversations/${j}`,N=n(),w=d(j).then(k=>(o[j]=k,k));return N.subscribeToRoom(x,{connect:()=>{},update_model:async({data:k})=>{const A=JSON.parse(k);if(A._message){await w;const S=A._message,E=o[j];if(E){const C=E.messages||[],B=C.findIndex(I=>I.id===S.id),F=B!==-1?C.map((I,R)=>R===B?S:I):[...C,S];o[j]={...E,messages:F},v==null||v(o[j])}}}})},getWhatsAppConnectURL:j=>{const v=`${i}/api/apps/${r}/agents/${encodeURIComponent(j)}/whatsapp`,x=s??lu();return x?`${v}?token=${x}`:v},getTelegramConnectURL:j=>{const v=`${i}/api/apps/${r}/agents/${encodeURIComponent(j)}/telegram`,x=s??lu();return x?`${v}?token=${x}`:v}}}function kN(t,n){const r=`/app-logs/${n}`;return{async logUserInApp(i){await t.post(`${r}/log-user-in-app/${i}`)},async fetchLogs(i={}){return await t.get(r,{params:i})},async getStats(i={}){return await t.get(`${r}/stats`,{params:i})}}}function WM(t,n){return{async inviteUser(r,i){if(i!=="user"&&i!=="admin")throw new Error(`Invalid role: "${i}". Role must be either "user" or "admin".`);return await t.post(`/apps/${n}/runtime/users/invite-user`,{user_email:r,role:i})}}}const bi=Object.create(null);bi.open="0";bi.close="1";bi.ping="2";bi.pong="3";bi.message="4";bi.upgrade="5";bi.noop="6";const Eh=Object.create(null);Object.keys(bi).forEach(t=>{Eh[bi[t]]=t});const n0={type:"error",data:"parser error"},XA=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",JA=typeof ArrayBuffer=="function",ZA=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,py=({type:t,data:n},r,i)=>XA&&n instanceof Blob?r?i(n):_N(n,i):JA&&(n instanceof ArrayBuffer||ZA(n))?r?i(n):_N(new Blob([n]),i):i(bi[t]+(n||"")),_N=(t,n)=>{const r=new FileReader;return r.onload=function(){const i=r.result.split(",")[1];n("b"+(i||""))},r.readAsDataURL(t)};function SN(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let Jp;function KM(t,n){if(XA&&t.data instanceof Blob)return t.data.arrayBuffer().then(SN).then(n);if(JA&&(t.data instanceof ArrayBuffer||ZA(t.data)))return n(SN(t.data));py(t,!1,r=>{Jp||(Jp=new TextEncoder),n(Jp.encode(r))})}const AN="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Rc=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<AN.length;t++)Rc[AN.charCodeAt(t)]=t;const GM=t=>{let n=t.length*.75,r=t.length,i,s=0,a,o,c,d;t[t.length-1]==="="&&(n--,t[t.length-2]==="="&&n--);const h=new ArrayBuffer(n),f=new Uint8Array(h);for(i=0;i<r;i+=4)a=Rc[t.charCodeAt(i)],o=Rc[t.charCodeAt(i+1)],c=Rc[t.charCodeAt(i+2)],d=Rc[t.charCodeAt(i+3)],f[s++]=a<<2|o>>4,f[s++]=(o&15)<<4|c>>2,f[s++]=(c&3)<<6|d&63;return h},QM=typeof ArrayBuffer=="function",gy=(t,n)=>{if(typeof t!="string")return{type:"message",data:eC(t,n)};const r=t.charAt(0);return r==="b"?{type:"message",data:YM(t.substring(1),n)}:Eh[r]?t.length>1?{type:Eh[r],data:t.substring(1)}:{type:Eh[r]}:n0},YM=(t,n)=>{if(QM){const r=GM(t);return eC(r,n)}else return{base64:!0,data:t}},eC=(t,n)=>{switch(n){case"blob":return t instanceof Blob?t:new Blob([t]);case"arraybuffer":default:return t instanceof ArrayBuffer?t:t.buffer}},tC="",XM=(t,n)=>{const r=t.length,i=new Array(r);let s=0;t.forEach((a,o)=>{py(a,!1,c=>{i[o]=c,++s===r&&n(i.join(tC))})})},JM=(t,n)=>{const r=t.split(tC),i=[];for(let s=0;s<r.length;s++){const a=gy(r[s],n);if(i.push(a),a.type==="error")break}return i};function ZM(){return new TransformStream({transform(t,n){KM(t,r=>{const i=r.length;let s;if(i<126)s=new Uint8Array(1),new DataView(s.buffer).setUint8(0,i);else if(i<65536){s=new Uint8Array(3);const a=new DataView(s.buffer);a.setUint8(0,126),a.setUint16(1,i)}else{s=new Uint8Array(9);const a=new DataView(s.buffer);a.setUint8(0,127),a.setBigUint64(1,BigInt(i))}t.data&&typeof t.data!="string"&&(s[0]|=128),n.enqueue(s),n.enqueue(r)})}})}let Zp;function sh(t){return t.reduce((n,r)=>n+r.length,0)}function ah(t,n){if(t[0].length===n)return t.shift();const r=new Uint8Array(n);let i=0;for(let s=0;s<n;s++)r[s]=t[0][i++],i===t[0].length&&(t.shift(),i=0);return t.length&&i<t[0].length&&(t[0]=t[0].slice(i)),r}function eL(t,n){Zp||(Zp=new TextDecoder);const r=[];let i=0,s=-1,a=!1;return new TransformStream({transform(o,c){for(r.push(o);;){if(i===0){if(sh(r)<1)break;const d=ah(r,1);a=(d[0]&128)===128,s=d[0]&127,s<126?i=3:s===126?i=1:i=2}else if(i===1){if(sh(r)<2)break;const d=ah(r,2);s=new DataView(d.buffer,d.byteOffset,d.length).getUint16(0),i=3}else if(i===2){if(sh(r)<8)break;const d=ah(r,8),h=new DataView(d.buffer,d.byteOffset,d.length),f=h.getUint32(0);if(f>Math.pow(2,21)-1){c.enqueue(n0);break}s=f*Math.pow(2,32)+h.getUint32(4),i=3}else{if(sh(r)<s)break;const d=ah(r,s);c.enqueue(gy(a?d:Zp.decode(d),n)),i=0}if(s===0||s>t){c.enqueue(n0);break}}}})}const nC=4;function ln(t){if(t)return tL(t)}function tL(t){for(var n in ln.prototype)t[n]=ln.prototype[n];return t}ln.prototype.on=ln.prototype.addEventListener=function(t,n){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(n),this};ln.prototype.once=function(t,n){function r(){this.off(t,r),n.apply(this,arguments)}return r.fn=n,this.on(t,r),this};ln.prototype.off=ln.prototype.removeListener=ln.prototype.removeAllListeners=ln.prototype.removeEventListener=function(t,n){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+t];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var i,s=0;s<r.length;s++)if(i=r[s],i===n||i.fn===n){r.splice(s,1);break}return r.length===0&&delete this._callbacks["$"+t],this};ln.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var n=new Array(arguments.length-1),r=this._callbacks["$"+t],i=1;i<arguments.length;i++)n[i-1]=arguments[i];if(r){r=r.slice(0);for(var i=0,s=r.length;i<s;++i)r[i].apply(this,n)}return this};ln.prototype.emitReserved=ln.prototype.emit;ln.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]};ln.prototype.hasListeners=function(t){return!!this.listeners(t).length};const yf=typeof Promise=="function"&&typeof Promise.resolve=="function"?n=>Promise.resolve().then(n):(n,r)=>r(n,0),Ar=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),nL="arraybuffer";function rC(t,...n){return n.reduce((r,i)=>(t.hasOwnProperty(i)&&(r[i]=t[i]),r),{})}const rL=Ar.setTimeout,iL=Ar.clearTimeout;function bf(t,n){n.useNativeTimers?(t.setTimeoutFn=rL.bind(Ar),t.clearTimeoutFn=iL.bind(Ar)):(t.setTimeoutFn=Ar.setTimeout.bind(Ar),t.clearTimeoutFn=Ar.clearTimeout.bind(Ar))}const sL=1.33;function aL(t){return typeof t=="string"?oL(t):Math.ceil((t.byteLength||t.size)*sL)}function oL(t){let n=0,r=0;for(let i=0,s=t.length;i<s;i++)n=t.charCodeAt(i),n<128?r+=1:n<2048?r+=2:n<55296||n>=57344?r+=3:(i++,r+=4);return r}function iC(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function lL(t){let n="";for(let r in t)t.hasOwnProperty(r)&&(n.length&&(n+="&"),n+=encodeURIComponent(r)+"="+encodeURIComponent(t[r]));return n}function cL(t){let n={},r=t.split("&");for(let i=0,s=r.length;i<s;i++){let a=r[i].split("=");n[decodeURIComponent(a[0])]=decodeURIComponent(a[1])}return n}class uL extends Error{constructor(n,r,i){super(n),this.description=r,this.context=i,this.type="TransportError"}}class xy extends ln{constructor(n){super(),this.writable=!1,bf(this,n),this.opts=n,this.query=n.query,this.socket=n.socket,this.supportsBinary=!n.forceBase64}onError(n,r,i){return super.emitReserved("error",new uL(n,r,i)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(n){this.readyState==="open"&&this.write(n)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(n){const r=gy(n,this.socket.binaryType);this.onPacket(r)}onPacket(n){super.emitReserved("packet",n)}onClose(n){this.readyState="closed",super.emitReserved("close",n)}pause(n){}createUri(n,r={}){return n+"://"+this._hostname()+this._port()+this.opts.path+this._query(r)}_hostname(){const n=this.opts.hostname;return n.indexOf(":")===-1?n:"["+n+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(n){const r=lL(n);return r.length?"?"+r:""}}class dL extends xy{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(n){this.readyState="pausing";const r=()=>{this.readyState="paused",n()};if(this._polling||!this.writable){let i=0;this._polling&&(i++,this.once("pollComplete",function(){--i||r()})),this.writable||(i++,this.once("drain",function(){--i||r()}))}else r()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(n){const r=i=>{if(this.readyState==="opening"&&i.type==="open"&&this.onOpen(),i.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(i)};JM(n,this.socket.binaryType).forEach(r),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const n=()=>{this.write([{type:"close"}])};this.readyState==="open"?n():this.once("open",n)}write(n){this.writable=!1,XM(n,r=>{this.doWrite(r,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const n=this.opts.secure?"https":"http",r=this.query||{};return this.opts.timestampRequests!==!1&&(r[this.opts.timestampParam]=iC()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(n,r)}}let sC=!1;try{sC=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const hL=sC;function fL(){}class mL extends dL{constructor(n){if(super(n),typeof location<"u"){const r=location.protocol==="https:";let i=location.port;i||(i=r?"443":"80"),this.xd=typeof location<"u"&&n.hostname!==location.hostname||i!==n.port}}doWrite(n,r){const i=this.request({method:"POST",data:n});i.on("success",r),i.on("error",(s,a)=>{this.onError("xhr post error",s,a)})}doPoll(){const n=this.request();n.on("data",this.onData.bind(this)),n.on("error",(r,i)=>{this.onError("xhr poll error",r,i)}),this.pollXhr=n}}class pi extends ln{constructor(n,r,i){super(),this.createRequest=n,bf(this,i),this._opts=i,this._method=i.method||"GET",this._uri=r,this._data=i.data!==void 0?i.data:null,this._create()}_create(){var n;const r=rC(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this._opts.xd;const i=this._xhr=this.createRequest(r);try{i.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){i.setDisableHeaderCheck&&i.setDisableHeaderCheck(!0);for(let s in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(s)&&i.setRequestHeader(s,this._opts.extraHeaders[s])}}catch{}if(this._method==="POST")try{i.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{i.setRequestHeader("Accept","*/*")}catch{}(n=this._opts.cookieJar)===null||n===void 0||n.addCookies(i),"withCredentials"in i&&(i.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(i.timeout=this._opts.requestTimeout),i.onreadystatechange=()=>{var s;i.readyState===3&&((s=this._opts.cookieJar)===null||s===void 0||s.parseCookies(i.getResponseHeader("set-cookie"))),i.readyState===4&&(i.status===200||i.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof i.status=="number"?i.status:0)},0))},i.send(this._data)}catch(s){this.setTimeoutFn(()=>{this._onError(s)},0);return}typeof document<"u"&&(this._index=pi.requestsCount++,pi.requests[this._index]=this)}_onError(n){this.emitReserved("error",n,this._xhr),this._cleanup(!0)}_cleanup(n){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=fL,n)try{this._xhr.abort()}catch{}typeof document<"u"&&delete pi.requests[this._index],this._xhr=null}}_onLoad(){const n=this._xhr.responseText;n!==null&&(this.emitReserved("data",n),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}pi.requestsCount=0;pi.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",CN);else if(typeof addEventListener=="function"){const t="onpagehide"in Ar?"pagehide":"unload";addEventListener(t,CN,!1)}}function CN(){for(let t in pi.requests)pi.requests.hasOwnProperty(t)&&pi.requests[t].abort()}const pL=(function(){const t=aC({xdomain:!1});return t&&t.responseType!==null})();class gL extends mL{constructor(n){super(n);const r=n&&n.forceBase64;this.supportsBinary=pL&&!r}request(n={}){return Object.assign(n,{xd:this.xd},this.opts),new pi(aC,this.uri(),n)}}function aC(t){const n=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!n||hL))return new XMLHttpRequest}catch{}if(!n)try{return new Ar[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const oC=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class xL extends xy{get name(){return"websocket"}doOpen(){const n=this.uri(),r=this.opts.protocols,i=oC?{}:rC(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(i.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(n,r,i)}catch(s){return this.emitReserved("error",s)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=n=>this.onClose({description:"websocket connection closed",context:n}),this.ws.onmessage=n=>this.onData(n.data),this.ws.onerror=n=>this.onError("websocket error",n)}write(n){this.writable=!1;for(let r=0;r<n.length;r++){const i=n[r],s=r===n.length-1;py(i,this.supportsBinary,a=>{try{this.doWrite(i,a)}catch{}s&&yf(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const n=this.opts.secure?"wss":"ws",r=this.query||{};return this.opts.timestampRequests&&(r[this.opts.timestampParam]=iC()),this.supportsBinary||(r.b64=1),this.createUri(n,r)}}const eg=Ar.WebSocket||Ar.MozWebSocket;class vL extends xL{createSocket(n,r,i){return oC?new eg(n,r,i):r?new eg(n,r):new eg(n)}doWrite(n,r){this.ws.send(r)}}class yL extends xy{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(n){return this.emitReserved("error",n)}this._transport.closed.then(()=>{this.onClose()}).catch(n=>{this.onError("webtransport error",n)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(n=>{const r=eL(Number.MAX_SAFE_INTEGER,this.socket.binaryType),i=n.readable.pipeThrough(r).getReader(),s=ZM();s.readable.pipeTo(n.writable),this._writer=s.writable.getWriter();const a=()=>{i.read().then(({done:c,value:d})=>{c||(this.onPacket(d),a())}).catch(c=>{})};a();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this._writer.write(o).then(()=>this.onOpen())})})}write(n){this.writable=!1;for(let r=0;r<n.length;r++){const i=n[r],s=r===n.length-1;this._writer.write(i).then(()=>{s&&yf(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var n;(n=this._transport)===null||n===void 0||n.close()}}const bL={websocket:vL,webtransport:yL,polling:gL},jL=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,wL=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function r0(t){if(t.length>8e3)throw"URI too long";const n=t,r=t.indexOf("["),i=t.indexOf("]");r!=-1&&i!=-1&&(t=t.substring(0,r)+t.substring(r,i).replace(/:/g,";")+t.substring(i,t.length));let s=jL.exec(t||""),a={},o=14;for(;o--;)a[wL[o]]=s[o]||"";return r!=-1&&i!=-1&&(a.source=n,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a.pathNames=NL(a,a.path),a.queryKey=kL(a,a.query),a}function NL(t,n){const r=/\/{2,9}/g,i=n.replace(r,"/").split("/");return(n.slice(0,1)=="/"||n.length===0)&&i.splice(0,1),n.slice(-1)=="/"&&i.splice(i.length-1,1),i}function kL(t,n){const r={};return n.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(i,s,a){s&&(r[s]=a)}),r}const i0=typeof addEventListener=="function"&&typeof removeEventListener=="function",Th=[];i0&&addEventListener("offline",()=>{Th.forEach(t=>t())},!1);class $s extends ln{constructor(n,r){if(super(),this.binaryType=nL,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,n&&typeof n=="object"&&(r=n,n=null),n){const i=r0(n);r.hostname=i.host,r.secure=i.protocol==="https"||i.protocol==="wss",r.port=i.port,i.query&&(r.query=i.query)}else r.host&&(r.hostname=r0(r.host).host);bf(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},r.transports.forEach(i=>{const s=i.prototype.name;this.transports.push(s),this._transportsByName[s]=i}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=cL(this.opts.query)),i0&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Th.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(n){const r=Object.assign({},this.opts.query);r.EIO=nC,r.transport=n,this.id&&(r.sid=this.id);const i=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[n]);return new this._transportsByName[n](i)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const n=this.opts.rememberUpgrade&&$s.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const r=this.createTransport(n);r.open(),this.setTransport(r)}setTransport(n){this.transport&&this.transport.removeAllListeners(),this.transport=n,n.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",r=>this._onClose("transport close",r))}onOpen(){this.readyState="open",$s.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",n),this.emitReserved("heartbeat"),n.type){case"open":this.onHandshake(JSON.parse(n.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const r=new Error("server error");r.code=n.data,this._onError(r);break;case"message":this.emitReserved("data",n.data),this.emitReserved("message",n.data);break}}onHandshake(n){this.emitReserved("handshake",n),this.id=n.sid,this.transport.query.sid=n.sid,this._pingInterval=n.pingInterval,this._pingTimeout=n.pingTimeout,this._maxPayload=n.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const n=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+n,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},n),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const n=this._getWritablePackets();this.transport.send(n),this._prevBufferLen=n.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let i=0;i<this.writeBuffer.length;i++){const s=this.writeBuffer[i].data;if(s&&(r+=aL(s)),i>0&&r>this._maxPayload)return this.writeBuffer.slice(0,i);r+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const n=Date.now()>this._pingTimeoutTime;return n&&(this._pingTimeoutTime=0,yf(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),n}write(n,r,i){return this._sendPacket("message",n,r,i),this}send(n,r,i){return this._sendPacket("message",n,r,i),this}_sendPacket(n,r,i,s){if(typeof r=="function"&&(s=r,r=void 0),typeof i=="function"&&(s=i,i=null),this.readyState==="closing"||this.readyState==="closed")return;i=i||{},i.compress=i.compress!==!1;const a={type:n,data:r,options:i};this.emitReserved("packetCreate",a),this.writeBuffer.push(a),s&&this.once("flush",s),this.flush()}close(){const n=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),n()},i=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?i():n()}):this.upgrading?i():n()),this}_onError(n){if($s.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",n),this._onClose("transport error",n)}_onClose(n,r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),i0&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const i=Th.indexOf(this._offlineEventListener);i!==-1&&Th.splice(i,1)}this.readyState="closed",this.id=null,this.emitReserved("close",n,r),this.writeBuffer=[],this._prevBufferLen=0}}}$s.protocol=nC;class _L extends $s{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let n=0;n<this._upgrades.length;n++)this._probe(this._upgrades[n])}_probe(n){let r=this.createTransport(n),i=!1;$s.priorWebsocketSuccess=!1;const s=()=>{i||(r.send([{type:"ping",data:"probe"}]),r.once("packet",m=>{if(!i)if(m.type==="pong"&&m.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;$s.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{i||this.readyState!=="closed"&&(f(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{const p=new Error("probe error");p.transport=r.name,this.emitReserved("upgradeError",p)}}))};function a(){i||(i=!0,f(),r.close(),r=null)}const o=m=>{const p=new Error("probe error: "+m);p.transport=r.name,a(),this.emitReserved("upgradeError",p)};function c(){o("transport closed")}function d(){o("socket closed")}function h(m){r&&m.name!==r.name&&a()}const f=()=>{r.removeListener("open",s),r.removeListener("error",o),r.removeListener("close",c),this.off("close",d),this.off("upgrading",h)};r.once("open",s),r.once("error",o),r.once("close",c),this.once("close",d),this.once("upgrading",h),this._upgrades.indexOf("webtransport")!==-1&&n!=="webtransport"?this.setTimeoutFn(()=>{i||r.open()},200):r.open()}onHandshake(n){this._upgrades=this._filterUpgrades(n.upgrades),super.onHandshake(n)}_filterUpgrades(n){const r=[];for(let i=0;i<n.length;i++)~this.transports.indexOf(n[i])&&r.push(n[i]);return r}}let SL=class extends _L{constructor(n,r={}){const i=typeof n=="object"?n:r;(!i.transports||i.transports&&typeof i.transports[0]=="string")&&(i.transports=(i.transports||["polling","websocket","webtransport"]).map(s=>bL[s]).filter(s=>!!s)),super(n,i)}};function AL(t,n="",r){let i=t;r=r||typeof location<"u"&&location,t==null&&(t=r.protocol+"//"+r.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=r.protocol+t:t=r.host+t),/^(https?|wss?):\/\//.test(t)||(typeof r<"u"?t=r.protocol+"//"+t:t="https://"+t),i=r0(t)),i.port||(/^(http|ws)$/.test(i.protocol)?i.port="80":/^(http|ws)s$/.test(i.protocol)&&(i.port="443")),i.path=i.path||"/";const a=i.host.indexOf(":")!==-1?"["+i.host+"]":i.host;return i.id=i.protocol+"://"+a+":"+i.port+n,i.href=i.protocol+"://"+a+(r&&r.port===i.port?"":":"+i.port),i}const CL=typeof ArrayBuffer=="function",EL=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,lC=Object.prototype.toString,TL=typeof Blob=="function"||typeof Blob<"u"&&lC.call(Blob)==="[object BlobConstructor]",OL=typeof File=="function"||typeof File<"u"&&lC.call(File)==="[object FileConstructor]";function vy(t){return CL&&(t instanceof ArrayBuffer||EL(t))||TL&&t instanceof Blob||OL&&t instanceof File}function Oh(t,n){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let r=0,i=t.length;r<i;r++)if(Oh(t[r]))return!0;return!1}if(vy(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return Oh(t.toJSON(),!0);for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&Oh(t[r]))return!0;return!1}function PL(t){const n=[],r=t.data,i=t;return i.data=s0(r,n),i.attachments=n.length,{packet:i,buffers:n}}function s0(t,n){if(!t)return t;if(vy(t)){const r={_placeholder:!0,num:n.length};return n.push(t),r}else if(Array.isArray(t)){const r=new Array(t.length);for(let i=0;i<t.length;i++)r[i]=s0(t[i],n);return r}else if(typeof t=="object"&&!(t instanceof Date)){const r={};for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=s0(t[i],n));return r}return t}function DL(t,n){return t.data=a0(t.data,n),delete t.attachments,t}function a0(t,n){if(!t)return t;if(t&&t._placeholder===!0){if(typeof t.num=="number"&&t.num>=0&&t.num<n.length)return n[t.num];throw new Error("illegal attachments")}else if(Array.isArray(t))for(let r=0;r<t.length;r++)t[r]=a0(t[r],n);else if(typeof t=="object")for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(t[r]=a0(t[r],n));return t}const IL=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],RL=5;var mt;(function(t){t[t.CONNECT=0]="CONNECT",t[t.DISCONNECT=1]="DISCONNECT",t[t.EVENT=2]="EVENT",t[t.ACK=3]="ACK",t[t.CONNECT_ERROR=4]="CONNECT_ERROR",t[t.BINARY_EVENT=5]="BINARY_EVENT",t[t.BINARY_ACK=6]="BINARY_ACK"})(mt||(mt={}));class FL{constructor(n){this.replacer=n}encode(n){return(n.type===mt.EVENT||n.type===mt.ACK)&&Oh(n)?this.encodeAsBinary({type:n.type===mt.EVENT?mt.BINARY_EVENT:mt.BINARY_ACK,nsp:n.nsp,data:n.data,id:n.id}):[this.encodeAsString(n)]}encodeAsString(n){let r=""+n.type;return(n.type===mt.BINARY_EVENT||n.type===mt.BINARY_ACK)&&(r+=n.attachments+"-"),n.nsp&&n.nsp!=="/"&&(r+=n.nsp+","),n.id!=null&&(r+=n.id),n.data!=null&&(r+=JSON.stringify(n.data,this.replacer)),r}encodeAsBinary(n){const r=PL(n),i=this.encodeAsString(r.packet),s=r.buffers;return s.unshift(i),s}}function EN(t){return Object.prototype.toString.call(t)==="[object Object]"}class yy extends ln{constructor(n){super(),this.reviver=n}add(n){let r;if(typeof n=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(n);const i=r.type===mt.BINARY_EVENT;i||r.type===mt.BINARY_ACK?(r.type=i?mt.EVENT:mt.ACK,this.reconstructor=new ML(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(vy(n)||n.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(n),r&&(this.reconstructor=null,super.emitReserved("decoded",r));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+n)}decodeString(n){let r=0;const i={type:Number(n.charAt(0))};if(mt[i.type]===void 0)throw new Error("unknown packet type "+i.type);if(i.type===mt.BINARY_EVENT||i.type===mt.BINARY_ACK){const a=r+1;for(;n.charAt(++r)!=="-"&&r!=n.length;);const o=n.substring(a,r);if(o!=Number(o)||n.charAt(r)!=="-")throw new Error("Illegal attachments");i.attachments=Number(o)}if(n.charAt(r+1)==="/"){const a=r+1;for(;++r&&!(n.charAt(r)===","||r===n.length););i.nsp=n.substring(a,r)}else i.nsp="/";const s=n.charAt(r+1);if(s!==""&&Number(s)==s){const a=r+1;for(;++r;){const o=n.charAt(r);if(o==null||Number(o)!=o){--r;break}if(r===n.length)break}i.id=Number(n.substring(a,r+1))}if(n.charAt(++r)){const a=this.tryParse(n.substr(r));if(yy.isPayloadValid(i.type,a))i.data=a;else throw new Error("invalid payload")}return i}tryParse(n){try{return JSON.parse(n,this.reviver)}catch{return!1}}static isPayloadValid(n,r){switch(n){case mt.CONNECT:return EN(r);case mt.DISCONNECT:return r===void 0;case mt.CONNECT_ERROR:return typeof r=="string"||EN(r);case mt.EVENT:case mt.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&IL.indexOf(r[0])===-1);case mt.ACK:case mt.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class ML{constructor(n){this.packet=n,this.buffers=[],this.reconPack=n}takeBinaryData(n){if(this.buffers.push(n),this.buffers.length===this.reconPack.attachments){const r=DL(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const LL=Object.freeze(Object.defineProperty({__proto__:null,Decoder:yy,Encoder:FL,get PacketType(){return mt},protocol:RL},Symbol.toStringTag,{value:"Module"}));function Hr(t,n,r){return t.on(n,r),function(){t.off(n,r)}}const BL=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class cC extends ln{constructor(n,r,i){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=n,this.nsp=r,i&&i.auth&&(this.auth=i.auth),this._opts=Object.assign({},i),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const n=this.io;this.subs=[Hr(n,"open",this.onopen.bind(this)),Hr(n,"packet",this.onpacket.bind(this)),Hr(n,"error",this.onerror.bind(this)),Hr(n,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...n){return n.unshift("message"),this.emit.apply(this,n),this}emit(n,...r){var i,s,a;if(BL.hasOwnProperty(n))throw new Error('"'+n.toString()+'" is a reserved event name');if(r.unshift(n),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(r),this;const o={type:mt.EVENT,data:r};if(o.options={},o.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){const f=this.ids++,m=r.pop();this._registerAckCallback(f,m),o.id=f}const c=(s=(i=this.io.engine)===null||i===void 0?void 0:i.transport)===null||s===void 0?void 0:s.writable,d=this.connected&&!(!((a=this.io.engine)===null||a===void 0)&&a._hasPingExpired());return this.flags.volatile&&!c||(d?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o)),this.flags={},this}_registerAckCallback(n,r){var i;const s=(i=this.flags.timeout)!==null&&i!==void 0?i:this._opts.ackTimeout;if(s===void 0){this.acks[n]=r;return}const a=this.io.setTimeoutFn(()=>{delete this.acks[n];for(let c=0;c<this.sendBuffer.length;c++)this.sendBuffer[c].id===n&&this.sendBuffer.splice(c,1);r.call(this,new Error("operation has timed out"))},s),o=(...c)=>{this.io.clearTimeoutFn(a),r.apply(this,c)};o.withError=!0,this.acks[n]=o}emitWithAck(n,...r){return new Promise((i,s)=>{const a=(o,c)=>o?s(o):i(c);a.withError=!0,r.push(a),this.emit(n,...r)})}_addToQueue(n){let r;typeof n[n.length-1]=="function"&&(r=n.pop());const i={id:this._queueSeq++,tryCount:0,pending:!1,args:n,flags:Object.assign({fromQueue:!0},this.flags)};n.push((s,...a)=>i!==this._queue[0]?void 0:(s!==null?i.tryCount>this._opts.retries&&(this._queue.shift(),r&&r(s)):(this._queue.shift(),r&&r(null,...a)),i.pending=!1,this._drainQueue())),this._queue.push(i),this._drainQueue()}_drainQueue(n=!1){if(!this.connected||this._queue.length===0)return;const r=this._queue[0];r.pending&&!n||(r.pending=!0,r.tryCount++,this.flags=r.flags,this.emit.apply(this,r.args))}packet(n){n.nsp=this.nsp,this.io._packet(n)}onopen(){typeof this.auth=="function"?this.auth(n=>{this._sendConnectPacket(n)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(n){this.packet({type:mt.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},n):n})}onerror(n){this.connected||this.emitReserved("connect_error",n)}onclose(n,r){this.connected=!1,delete this.id,this.emitReserved("disconnect",n,r),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(n=>{if(!this.sendBuffer.some(i=>String(i.id)===n)){const i=this.acks[n];delete this.acks[n],i.withError&&i.call(this,new Error("socket has been disconnected"))}})}onpacket(n){if(n.nsp===this.nsp)switch(n.type){case mt.CONNECT:n.data&&n.data.sid?this.onconnect(n.data.sid,n.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case mt.EVENT:case mt.BINARY_EVENT:this.onevent(n);break;case mt.ACK:case mt.BINARY_ACK:this.onack(n);break;case mt.DISCONNECT:this.ondisconnect();break;case mt.CONNECT_ERROR:this.destroy();const i=new Error(n.data.message);i.data=n.data.data,this.emitReserved("connect_error",i);break}}onevent(n){const r=n.data||[];n.id!=null&&r.push(this.ack(n.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(n){if(this._anyListeners&&this._anyListeners.length){const r=this._anyListeners.slice();for(const i of r)i.apply(this,n)}super.emit.apply(this,n),this._pid&&n.length&&typeof n[n.length-1]=="string"&&(this._lastOffset=n[n.length-1])}ack(n){const r=this;let i=!1;return function(...s){i||(i=!0,r.packet({type:mt.ACK,id:n,data:s}))}}onack(n){const r=this.acks[n.id];typeof r=="function"&&(delete this.acks[n.id],r.withError&&n.data.unshift(null),r.apply(this,n.data))}onconnect(n,r){this.id=n,this.recovered=r&&this._pid===r,this._pid=r,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(n=>this.emitEvent(n)),this.receiveBuffer=[],this.sendBuffer.forEach(n=>{this.notifyOutgoingListeners(n),this.packet(n)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(n=>n()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:mt.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(n){return this.flags.compress=n,this}get volatile(){return this.flags.volatile=!0,this}timeout(n){return this.flags.timeout=n,this}onAny(n){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(n),this}prependAny(n){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(n),this}offAny(n){if(!this._anyListeners)return this;if(n){const r=this._anyListeners;for(let i=0;i<r.length;i++)if(n===r[i])return r.splice(i,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(n){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(n),this}prependAnyOutgoing(n){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(n),this}offAnyOutgoing(n){if(!this._anyOutgoingListeners)return this;if(n){const r=this._anyOutgoingListeners;for(let i=0;i<r.length;i++)if(n===r[i])return r.splice(i,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(n){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const r=this._anyOutgoingListeners.slice();for(const i of r)i.apply(this,n.data)}}}function Cl(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}Cl.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var n=Math.random(),r=Math.floor(n*this.jitter*t);t=(Math.floor(n*10)&1)==0?t-r:t+r}return Math.min(t,this.max)|0};Cl.prototype.reset=function(){this.attempts=0};Cl.prototype.setMin=function(t){this.ms=t};Cl.prototype.setMax=function(t){this.max=t};Cl.prototype.setJitter=function(t){this.jitter=t};class o0 extends ln{constructor(n,r){var i;super(),this.nsps={},this.subs=[],n&&typeof n=="object"&&(r=n,n=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,bf(this,r),this.reconnection(r.reconnection!==!1),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor((i=r.randomizationFactor)!==null&&i!==void 0?i:.5),this.backoff=new Cl({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=n;const s=r.parser||LL;this.encoder=new s.Encoder,this.decoder=new s.Decoder,this._autoConnect=r.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(n){return arguments.length?(this._reconnection=!!n,n||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(n){return n===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=n,this)}reconnectionDelay(n){var r;return n===void 0?this._reconnectionDelay:(this._reconnectionDelay=n,(r=this.backoff)===null||r===void 0||r.setMin(n),this)}randomizationFactor(n){var r;return n===void 0?this._randomizationFactor:(this._randomizationFactor=n,(r=this.backoff)===null||r===void 0||r.setJitter(n),this)}reconnectionDelayMax(n){var r;return n===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=n,(r=this.backoff)===null||r===void 0||r.setMax(n),this)}timeout(n){return arguments.length?(this._timeout=n,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(n){if(~this._readyState.indexOf("open"))return this;this.engine=new SL(this.uri,this.opts);const r=this.engine,i=this;this._readyState="opening",this.skipReconnect=!1;const s=Hr(r,"open",function(){i.onopen(),n&&n()}),a=c=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",c),n?n(c):this.maybeReconnectOnOpen()},o=Hr(r,"error",a);if(this._timeout!==!1){const c=this._timeout,d=this.setTimeoutFn(()=>{s(),a(new Error("timeout")),r.close()},c);this.opts.autoUnref&&d.unref(),this.subs.push(()=>{this.clearTimeoutFn(d)})}return this.subs.push(s),this.subs.push(o),this}connect(n){return this.open(n)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const n=this.engine;this.subs.push(Hr(n,"ping",this.onping.bind(this)),Hr(n,"data",this.ondata.bind(this)),Hr(n,"error",this.onerror.bind(this)),Hr(n,"close",this.onclose.bind(this)),Hr(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(n){try{this.decoder.add(n)}catch(r){this.onclose("parse error",r)}}ondecoded(n){yf(()=>{this.emitReserved("packet",n)},this.setTimeoutFn)}onerror(n){this.emitReserved("error",n)}socket(n,r){let i=this.nsps[n];return i?this._autoConnect&&!i.active&&i.connect():(i=new cC(this,n,r),this.nsps[n]=i),i}_destroy(n){const r=Object.keys(this.nsps);for(const i of r)if(this.nsps[i].active)return;this._close()}_packet(n){const r=this.encoder.encode(n);for(let i=0;i<r.length;i++)this.engine.write(r[i],n.options)}cleanup(){this.subs.forEach(n=>n()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(n,r){var i;this.cleanup(),(i=this.engine)===null||i===void 0||i.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",n,r),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const n=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const r=this.backoff.duration();this._reconnecting=!0;const i=this.setTimeoutFn(()=>{n.skipReconnect||(this.emitReserved("reconnect_attempt",n.backoff.attempts),!n.skipReconnect&&n.open(s=>{s?(n._reconnecting=!1,n.reconnect(),this.emitReserved("reconnect_error",s)):n.onreconnect()}))},r);this.opts.autoUnref&&i.unref(),this.subs.push(()=>{this.clearTimeoutFn(i)})}}onreconnect(){const n=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",n)}}const wc={};function Ph(t,n){typeof t=="object"&&(n=t,t=void 0),n=n||{};const r=AL(t,n.path||"/socket.io"),i=r.source,s=r.id,a=r.path,o=wc[s]&&a in wc[s].nsps,c=n.forceNew||n["force new connection"]||n.multiplex===!1||o;let d;return c?d=new o0(i,n):(wc[s]||(wc[s]=new o0(i,n)),d=wc[s]),r.query&&!n.query&&(n.query=r.queryKey),d.socket(r.path,n)}Object.assign(Ph,{Manager:o0,Socket:cC,io:Ph,connect:Ph});function TN(t,n){var r;const i=Ph(t.serverUrl,{path:t.mountPath,transports:t.transports,query:{app_id:t.appId,token:(r=t.token)!==null&&r!==void 0?r:lu()}});return i.on("connect",async()=>{var s;return console.log("connect",i.id),(s=n.connect)===null||s===void 0?void 0:s.call(n)}),i.on("update_model",async s=>{var a;return(a=n.update_model)===null||a===void 0?void 0:a.call(n,s)}),i.on("error",async s=>{var a;return(a=n.error)===null||a===void 0?void 0:a.call(n,s)}),i.on("connect_error",async s=>{var a;return console.error("connect_error",s),(a=n.error)===null||a===void 0?void 0:a.call(n,s)}),i}function zL({config:t}){let n={...t};const r={},i={connect:async()=>{const g=[];Object.keys(r).forEach(y=>{d(y);const j=m(y);j==null||j.forEach(({connect:v})=>{const x=async()=>v==null?void 0:v();g.push(x())})}),await Promise.all(g)},update_model:async g=>{const j=m(g.room).map(v=>{var x;return(x=v.update_model)===null||x===void 0?void 0:x.call(v,g)});await Promise.all(j)},error:async g=>{console.error("error",g);const y=Object.values(r).flat().map(j=>{var v;return(v=j.error)===null||v===void 0?void 0:v.call(j,g)});await Promise.all(y)}};let s=TN(t,i);function a(){o()}function o(){s&&s.disconnect()}function c(g){a(),n={...n,...g},s=TN(n,i)}function d(g){s.emit("join",g)}function h(g){s.emit("leave",g)}async function f(g,y){var j;const v=JSON.stringify(y);return(j=i.update_model)===null||j===void 0?void 0:j.call(i,{room:g,data:v})}function m(g){return r[g]}return{socket:s,subscribeToRoom:(g,y)=>(r[g]||(d(g),r[g]=[]),r[g].push(y),()=>{var j,v;r[g]=(v=(j=r[g])===null||j===void 0?void 0:j.filter(x=>x!==y))!==null&&v!==void 0?v:[],r[g].length===0&&h(g)}),updateConfig:c,updateModel:f,disconnect:o}}const Nc=typeof window<"u"?window:{base44SharedInstances:{}};function qL(t,n){return Nc.base44SharedInstances||(Nc.base44SharedInstances={}),Nc.base44SharedInstances[t]||(Nc.base44SharedInstances[t]={instance:n()}),Nc.base44SharedInstances[t].instance}const VL="__user_heartbeat_event__",UL="__initialization_event__",$L="__session_duration_event__",ON="analytics-enable",PN="base44_analytics_session_id",HL={enabled:!0,maxQueueSize:1e3,throttleTime:1e3,batchSize:30,heartBeatInterval:60*1e3},WL="analytics",Dt=qL(WL,()=>({requestsQueue:[],isProcessing:!1,isHeartBeatProcessing:!1,wasInitializationTracked:!1,sessionContext:null,sessionStartTime:null,config:{...HL,...eB()}})),KL=({axiosClient:t,serverUrl:n,appId:r,userAuthModule:i})=>{var s;const{maxQueueSize:a,throttleTime:o,batchSize:c}=Dt.config;if(!(!((s=Dt.config)===null||s===void 0)&&s.enabled))return{track:()=>{},cleanup:()=>{}};let d;const h=`${n}/api/apps/${r}/analytics/track/batch`,f=async w=>{await t.request({method:"POST",url:`/apps/${r}/analytics/track/batch`,data:{events:w}})},m=w=>{try{const k=JSON.stringify({events:w}),A=new Blob([k],{type:"application/json"});return typeof navigator>"u"||k.length>6e4||!navigator.sendBeacon(h,A)}catch{return!1}},p=async(w,k={})=>{if(w.length===0)return;const A=await ZL(i),S=w.map(JL(A));try{(!k.isBeacon||!m(S))&&await f(S)}catch{}},g=()=>{IN(p,{throttleTime:o,batchSize:c})},y=w=>{if(Dt.requestsQueue.length>=a)return;const k=XL();Dt.requestsQueue.push({...w,...k}),g()},j=()=>{IN(p,{throttleTime:o,batchSize:c}),d=RN(y),QL()},v=()=>{DN(),d==null||d(),YL(y);const w=Dt.requestsQueue.splice(0);p(w,{isBeacon:!0})},x=()=>{typeof window>"u"||(document.visibilityState==="hidden"?v():document.visibilityState==="visible"&&j())},N=()=>{DN(),d==null||d(),typeof window<"u"&&window.removeEventListener("visibilitychange",x)};return g(),d=RN(y),GL(y),typeof window<"u"&&window.addEventListener("visibilitychange",x),{track:y,cleanup:N}};function DN(){Dt.isProcessing=!1}async function IN(t,n){if(Dt.isProcessing)return;Dt.isProcessing=!0;const{throttleTime:r=1e3,batchSize:i=30}=n??{};for(;Dt.isProcessing&&Dt.requestsQueue.length>0;){const s=Dt.requestsQueue.splice(0,i);s.length&&await t(s),await new Promise(a=>setTimeout(a,r))}Dt.isProcessing=!1}function RN(t){var n;if(Dt.isHeartBeatProcessing||((n=Dt.config.heartBeatInterval)!==null&&n!==void 0?n:0)<10)return()=>{};Dt.isHeartBeatProcessing=!0;const r=setInterval(()=>{t({eventName:VL})},Dt.config.heartBeatInterval);return()=>{clearInterval(r),Dt.isHeartBeatProcessing=!1}}function GL(t){typeof window>"u"||Dt.wasInitializationTracked||(Dt.wasInitializationTracked=!0,t({eventName:UL,properties:{referrer:document==null?void 0:document.referrer}}))}function QL(){typeof window>"u"||Dt.sessionStartTime!==null||(Dt.sessionStartTime=new Date().toISOString())}function YL(t){if(typeof window>"u"||Dt.sessionStartTime===null)return;const n=new Date().getTime()-new Date(Dt.sessionStartTime).getTime();Dt.sessionStartTime=null,t({eventName:$L,properties:{sessionDuration:n}})}function XL(){return{timestamp:new Date().toISOString(),pageUrl:typeof window<"u"?window.location.pathname:null}}function JL(t){return n=>({event_name:n.eventName,properties:n.properties,timestamp:n.timestamp,page_url:n.pageUrl,...t})}let tg=null;async function ZL(t){if(!Dt.sessionContext){if(!tg){const n=tB();tg=t.me().then(r=>({user_id:r.id,session_id:n})).catch(()=>({user_id:null,session_id:n}))}Dt.sessionContext=await tg}return Dt.sessionContext}function eB(){if(typeof window>"u")return;const n=new URLSearchParams(window.location.search).get(ON);if(n==null||!n.length)return;const r=new URLSearchParams(window.location.search);r.delete(ON);const i=window.location.pathname+(r.toString()?"?"+r.toString():"");return window.history.replaceState({},"",i),{enabled:n==="true"}}function tB(){if(typeof window>"u")return Yp();try{const t=localStorage.getItem(PN);if(!t){const n=Yp();return localStorage.setItem(PN,n),n}return t}catch{return Yp()}}function nB(t){var n,r;const{serverUrl:i="https://base44.app",appId:s,token:a,serviceToken:o,requiresAuth:c=!1,appBaseUrl:d,options:h,functionsVersion:f,headers:m}=t,p=typeof d=="string"?d:"",g={serverUrl:i,mountPath:"/ws-user-apps/socket.io/",transports:["websocket"],appId:s,token:a};let y=null;const j=()=>(y||(y=zL({config:g})),y),v={...m,"X-App-Id":String(s)},x=f?{...v,"Base44-Functions-Version":f}:v,N=Ic({baseURL:`${i}/api`,headers:v,token:a,onError:h==null?void 0:h.onError}),w=Ic({baseURL:`${i}/api`,headers:x,token:a,interceptResponses:!1,onError:h==null?void 0:h.onError}),k={...v,...a?{"on-behalf-of":`Bearer ${a}`}:{}},A=Ic({baseURL:`${i}/api`,headers:k,token:o,onError:h==null?void 0:h.onError}),S=Ic({baseURL:`${i}/api`,headers:x,token:o,interceptResponses:!1}),E=qM(N,w,s,{appBaseUrl:p}),C={entities:bN({axios:N,appId:s,getSocket:j}),integrations:jN(N,s),connectors:$M(N,s),auth:E,functions:wN(w,s,{getAuthHeaders:()=>{const I={},R=a||lu();return R&&(I.Authorization=`Bearer ${R}`),I},baseURL:(n=w.defaults)===null||n===void 0?void 0:n.baseURL}),agents:NN({axios:N,getSocket:j,appId:s,serverUrl:i,token:a}),appLogs:kN(N,s),users:WM(N,s),analytics:KL({axiosClient:N,serverUrl:i,appId:s,userAuthModule:E}),cleanup:()=>{C.analytics.cleanup(),y&&y.disconnect()}},B={entities:bN({axios:A,appId:s,getSocket:j}),integrations:jN(A,s),sso:VM(A,s),connectors:UM(A,s),functions:wN(S,s,{getAuthHeaders:()=>{const I={};return o&&(I.Authorization=`Bearer ${o}`),I},baseURL:(r=S.defaults)===null||r===void 0?void 0:r.baseURL}),agents:NN({axios:A,getSocket:j,appId:s,serverUrl:i,token:a}),appLogs:kN(A,s),cleanup:()=>{y&&y.disconnect()}};if(typeof window<"u"){const I=a||lu();I&&C.auth.setToken(I)}return c&&typeof window<"u"&&setTimeout(async()=>{try{await C.auth.isAuthenticated()||C.auth.redirectToLogin(window.location.href)}catch(I){console.error("Authentication check failed:",I),C.auth.redirectToLogin(window.location.href)}},0),{...C,setToken(I){C.auth.setToken(I),y&&y.updateConfig({token:I}),g.token=I},getConfig(){return{serverUrl:i,appId:s,requiresAuth:c}},get asServiceRole(){if(!o)throw new Error("Service token is required to use asServiceRole. Please provide a serviceToken when creating the client.");return B}}}const uC=typeof window>"u",rB=uC?{localStorage:new Map}:window,Hc=rB.localStorage,iB=t=>t.replace(/([A-Z])/g,"_$1").toLowerCase(),To=(t,{defaultValue:n=void 0,removeFromUrl:r=!1}={})=>{if(uC)return n;const i=`base44_${iB(t)}`,s=new URLSearchParams(window.location.search),a=s.get(t);if(r){s.delete(t);const c=`${window.location.pathname}${s.toString()?`?${s.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,c)}if(a)return Hc.setItem(i,a),a;if(n)return Hc.setItem(i,n),n;const o=Hc.getItem(i);return o||null},sB=()=>(To("clear_access_token")==="true"&&(Hc.removeItem("base44_access_token"),Hc.removeItem("token")),{appId:To("app_id",{defaultValue:"695a3d411fa079edce588856"}),token:To("access_token",{removeFromUrl:!0}),fromUrl:To("from_url",{defaultValue:window.location.href}),functionsVersion:To("functions_version",{defaultValue:"prod"}),appBaseUrl:To("app_base_url",{defaultValue:void 0})}),Fc={...sB()},{appId:aB,token:oB,functionsVersion:lB,appBaseUrl:cB}=Fc,ce=nB({appId:aB,token:oB,functionsVersion:lB,serverUrl:"",requiresAuth:!1,appBaseUrl:cB}),dC=D.createContext(),uB=({children:t})=>{const[n,r]=D.useState(null),[i,s]=D.useState(!1),[a,o]=D.useState(!0),[c,d]=D.useState(!0),[h,f]=D.useState(null),[m,p]=D.useState(null);D.useEffect(()=>{g()},[]);const g=async()=>{var x,N;try{d(!0),f(null);const w=Ic({baseURL:"/api/apps/public",headers:{"X-App-Id":Fc.appId},token:Fc.token,interceptResponses:!0});try{const k=await w.get(`/prod/public-settings/by-id/${Fc.appId}`);p(k),Fc.token?await y():(o(!1),s(!1)),d(!1)}catch(k){if(console.error("App state check failed:",k),k.status===403&&((N=(x=k.data)==null?void 0:x.extra_data)!=null&&N.reason)){const A=k.data.extra_data.reason;f(A==="auth_required"?{type:"auth_required",message:"Authentication required"}:A==="user_not_registered"?{type:"user_not_registered",message:"User not registered for this app"}:{type:A,message:k.message})}else f({type:"unknown",message:k.message||"Failed to load app"});d(!1),o(!1)}}catch(w){console.error("Unexpected error:",w),f({type:"unknown",message:w.message||"An unexpected error occurred"}),d(!1),o(!1)}},y=async()=>{try{o(!0);const x=await ce.auth.me();r(x),s(!0),o(!1)}catch(x){console.error("User auth check failed:",x),o(!1),s(!1),(x.status===401||x.status===403)&&f({type:"auth_required",message:"Authentication required"})}},j=(x=!0)=>{r(null),s(!1),x?ce.auth.logout(window.location.href):ce.auth.logout()},v=()=>{ce.auth.redirectToLogin(window.location.href)};return e.jsx(dC.Provider,{value:{user:n,isAuthenticated:i,isLoadingAuth:a,isLoadingPublicSettings:c,authError:h,appPublicSettings:m,logout:j,navigateToLogin:v,checkAppState:g},children:t})},hC=()=>{const t=D.useContext(dC);if(!t)throw new Error("useAuth must be used within an AuthProvider");return t};function se(t){return"/"+t.replace(/ /g,"-")}const jf=D.createContext(null);function by(t){const n=D.useRef(null);return n.current===null&&(n.current=t()),n.current}const jy=D.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});class dB extends D.Component{getSnapshotBeforeUpdate(n){const r=this.props.childRef.current;if(r&&n.isPresent&&!this.props.isPresent){const i=this.props.sizeRef.current;i.height=r.offsetHeight||0,i.width=r.offsetWidth||0,i.top=r.offsetTop,i.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function hB({children:t,isPresent:n}){const r=D.useId(),i=D.useRef(null),s=D.useRef({width:0,height:0,top:0,left:0}),{nonce:a}=D.useContext(jy);return D.useInsertionEffect(()=>{const{width:o,height:c,top:d,left:h}=s.current;if(n||!i.current||!o||!c)return;i.current.dataset.motionPopId=r;const f=document.createElement("style");return a&&(f.nonce=a),document.head.appendChild(f),f.sheet&&f.sheet.insertRule(`
[data-motion-pop-id="${r}"] {
position: absolute !important;
width: ${o}px !important;
height: ${c}px !important;
top: ${d}px !important;
left: ${h}px !important;
}
`),()=>{document.head.removeChild(f)}},[n]),e.jsx(dB,{isPresent:n,childRef:i,sizeRef:s,children:D.cloneElement(t,{ref:i})})}const fB=({children:t,initial:n,isPresent:r,onExitComplete:i,custom:s,presenceAffectsLayout:a,mode:o})=>{const c=by(mB),d=D.useId(),h=D.useCallback(m=>{c.set(m,!0);for(const p of c.values())if(!p)return;i&&i()},[c,i]),f=D.useMemo(()=>({id:d,initial:n,isPresent:r,custom:s,onExitComplete:h,register:m=>(c.set(m,!1),()=>c.delete(m))}),a?[Math.random(),h]:[r,h]);return D.useMemo(()=>{c.forEach((m,p)=>c.set(p,!1))},[r]),D.useEffect(()=>{!r&&!c.size&&i&&i()},[r]),o==="popLayout"&&(t=e.jsx(hB,{isPresent:r,children:t})),e.jsx(jf.Provider,{value:f,children:t})};function mB(){return new Map}const wy=D.createContext({}),fr=t=>t;let fC=fr;function Ny(t){let n;return()=>(n===void 0&&(n=t()),n)}const hl=(t,n,r)=>{const i=n-t;return i===0?1:(r-t)/i},Ui=t=>t*1e3,$i=t=>t/1e3,oh=t=>t.key||"";function FN(t){const n=[];return D.Children.forEach(t,r=>{D.isValidElement(r)&&n.push(r)}),n}const ky=typeof window<"u",mC=ky?D.useLayoutEffect:D.useEffect,Cr=({children:t,exitBeforeEnter:n,custom:r,initial:i=!0,onExitComplete:s,presenceAffectsLayout:a=!0,mode:o="sync"})=>{const c=D.useMemo(()=>FN(t),[t]),d=c.map(oh),h=D.useRef(!0),f=D.useRef(c),m=by(()=>new Map),[p,g]=D.useState(c),[y,j]=D.useState(c);mC(()=>{h.current=!1,f.current=c;for(let N=0;N<y.length;N++){const w=oh(y[N]);d.includes(w)?m.delete(w):m.get(w)!==!0&&m.set(w,!1)}},[y,d.length,d.join("-")]);const v=[];if(c!==p){let N=[...c];for(let w=0;w<y.length;w++){const k=y[w],A=oh(k);d.includes(A)||(N.splice(w,0,k),v.push(k))}o==="wait"&&v.length&&(N=v),j(FN(N)),g(c);return}const{forceRender:x}=D.useContext(wy);return e.jsx(e.Fragment,{children:y.map(N=>{const w=oh(N),k=c===y||d.includes(w),A=()=>{if(m.has(w))m.set(w,!0);else return;let S=!0;m.forEach(E=>{E||(S=!1)}),S&&(x==null||x(),j(f.current),s&&s())};return e.jsx(fB,{isPresent:k,initial:!h.current||i?void 0:!1,custom:k?void 0:r,presenceAffectsLayout:a,mode:o,onExitComplete:k?void 0:A,children:N},w)})})},pB={useManualTiming:!1};function gB(t){let n=new Set,r=new Set,i=!1,s=!1;const a=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function c(h){a.has(h)&&(d.schedule(h),t()),h(o)}const d={schedule:(h,f=!1,m=!1)=>{const g=m&&i?n:r;return f&&a.add(h),g.has(h)||g.add(h),h},cancel:h=>{r.delete(h),a.delete(h)},process:h=>{if(o=h,i){s=!0;return}i=!0,[n,r]=[r,n],n.forEach(c),n.clear(),i=!1,s&&(s=!1,d.process(h))}};return d}const lh=["read","resolveKeyframes","update","preRender","render","postRender"],xB=40;function pC(t,n){let r=!1,i=!0;const s={delta:0,timestamp:0,isProcessing:!1},a=()=>r=!0,o=lh.reduce((x,N)=>(x[N]=gB(a),x),{}),{read:c,resolveKeyframes:d,update:h,preRender:f,render:m,postRender:p}=o,g=()=>{const x=performance.now();r=!1,s.delta=i?1e3/60:Math.max(Math.min(x-s.timestamp,xB),1),s.timestamp=x,s.isProcessing=!0,c.process(s),d.process(s),h.process(s),f.process(s),m.process(s),p.process(s),s.isProcessing=!1,r&&n&&(i=!1,t(g))},y=()=>{r=!0,i=!0,s.isProcessing||t(g)};return{schedule:lh.reduce((x,N)=>{const w=o[N];return x[N]=(k,A=!1,S=!1)=>(r||y(),w.schedule(k,A,S)),x},{}),cancel:x=>{for(let N=0;N<lh.length;N++)o[lh[N]].cancel(x)},state:s,steps:o}}const{schedule:zt,cancel:Ks,state:_n,steps:ng}=pC(typeof requestAnimationFrame<"u"?requestAnimationFrame:fr,!0),gC=D.createContext({strict:!1}),MN={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},fl={};for(const t in MN)fl[t]={isEnabled:n=>MN[t].some(r=>!!n[r])};function vB(t){for(const n in t)fl[n]={...fl[n],...t[n]}}const yB=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Wh(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||yB.has(t)}let xC=t=>!Wh(t);function bB(t){t&&(xC=n=>n.startsWith("on")?!Wh(n):t(n))}try{bB(require("@emotion/is-prop-valid").default)}catch{}function jB(t,n,r){const i={};for(const s in t)s==="values"&&typeof t.values=="object"||(xC(s)||r===!0&&Wh(s)||!n&&!Wh(s)||t.draggable&&s.startsWith("onDrag"))&&(i[s]=t[s]);return i}function wB(t){if(typeof Proxy>"u")return t;const n=new Map,r=(...i)=>t(...i);return new Proxy(r,{get:(i,s)=>s==="create"?t:(n.has(s)||n.set(s,t(s)),n.get(s))})}const wf=D.createContext({});function cu(t){return typeof t=="string"||Array.isArray(t)}function Nf(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const _y=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Sy=["initial",..._y];function kf(t){return Nf(t.animate)||Sy.some(n=>cu(t[n]))}function vC(t){return!!(kf(t)||t.variants)}function NB(t,n){if(kf(t)){const{initial:r,animate:i}=t;return{initial:r===!1||cu(r)?r:void 0,animate:cu(i)?i:void 0}}return t.inherit!==!1?n:{}}function kB(t){const{initial:n,animate:r}=NB(t,D.useContext(wf));return D.useMemo(()=>({initial:n,animate:r}),[LN(n),LN(r)])}function LN(t){return Array.isArray(t)?t.join(" "):t}const _B=Symbol.for("motionComponentSymbol");function zo(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function SB(t,n,r){return D.useCallback(i=>{i&&t.mount&&t.mount(i),n&&(i?n.mount(i):n.unmount()),r&&(typeof r=="function"?r(i):zo(r)&&(r.current=i))},[n])}const Ay=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),AB="framerAppearId",yC="data-"+Ay(AB),{schedule:Cy}=pC(queueMicrotask,!1),bC=D.createContext({});function CB(t,n,r,i,s){var a,o;const{visualElement:c}=D.useContext(wf),d=D.useContext(gC),h=D.useContext(jf),f=D.useContext(jy).reducedMotion,m=D.useRef(null);i=i||d.renderer,!m.current&&i&&(m.current=i(t,{visualState:n,parent:c,props:r,presenceContext:h,blockInitialAnimation:h?h.initial===!1:!1,reducedMotionConfig:f}));const p=m.current,g=D.useContext(bC);p&&!p.projection&&s&&(p.type==="html"||p.type==="svg")&&EB(m.current,r,s,g);const y=D.useRef(!1);D.useInsertionEffect(()=>{p&&y.current&&p.update(r,h)});const j=r[yC],v=D.useRef(!!j&&!(!((a=window.MotionHandoffIsComplete)===null||a===void 0)&&a.call(window,j))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,j)));return mC(()=>{p&&(y.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),Cy.render(p.render),v.current&&p.animationState&&p.animationState.animateChanges())}),D.useEffect(()=>{p&&(!v.current&&p.animationState&&p.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var x;(x=window.MotionHandoffMarkAsComplete)===null||x===void 0||x.call(window,j)}),v.current=!1))}),p}function EB(t,n,r,i){const{layoutId:s,layout:a,drag:o,dragConstraints:c,layoutScroll:d,layoutRoot:h}=n;t.projection=new r(t.latestValues,n["data-framer-portal-id"]?void 0:jC(t.parent)),t.projection.setOptions({layoutId:s,layout:a,alwaysMeasureLayout:!!o||c&&zo(c),visualElement:t,animationType:typeof a=="string"?a:"both",initialPromotionConfig:i,layoutScroll:d,layoutRoot:h})}function jC(t){if(t)return t.options.allowProjection!==!1?t.projection:jC(t.parent)}function TB({preloadedFeatures:t,createVisualElement:n,useRender:r,useVisualState:i,Component:s}){var a,o;t&&vB(t);function c(h,f){let m;const p={...D.useContext(jy),...h,layoutId:OB(h)},{isStatic:g}=p,y=kB(h),j=i(h,g);if(!g&&ky){PB();const v=DB(p);m=v.MeasureLayout,y.visualElement=CB(s,j,p,n,v.ProjectionNode)}return e.jsxs(wf.Provider,{value:y,children:[m&&y.visualElement?e.jsx(m,{visualElement:y.visualElement,...p}):null,r(s,h,SB(j,y.visualElement,f),j,g,y.visualElement)]})}c.displayName=`motion.${typeof s=="string"?s:`create(${(o=(a=s.displayName)!==null&&a!==void 0?a:s.name)!==null&&o!==void 0?o:""})`}`;const d=D.forwardRef(c);return d[_B]=s,d}function OB({layoutId:t}){const n=D.useContext(wy).id;return n&&t!==void 0?n+"-"+t:t}function PB(t,n){D.useContext(gC).strict}function DB(t){const{drag:n,layout:r}=fl;if(!n&&!r)return{};const i={...n,...r};return{MeasureLayout:n!=null&&n.isEnabled(t)||r!=null&&r.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}const IB=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Ey(t){return typeof t!="string"||t.includes("-")?!1:!!(IB.indexOf(t)>-1||/[A-Z]/u.test(t))}function wC(t,{style:n,vars:r},i,s){Object.assign(t.style,n,s&&s.getProjectionStyles(i));for(const a in r)t.style.setProperty(a,r[a])}const NC=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function kC(t,n,r,i){wC(t,n,void 0,i);for(const s in n.attrs)t.setAttribute(NC.has(s)?s:Ay(s),n.attrs[s])}const In=t=>!!(t&&t.getVelocity),Kh={};function RB(t){Object.assign(Kh,t)}const Du=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],to=new Set(Du);function _C(t,{layout:n,layoutId:r}){return to.has(t)||t.startsWith("origin")||(n||r!==void 0)&&(!!Kh[t]||t==="opacity")}function Ty(t,n,r){var i;const{style:s}=t,a={};for(const o in s)(In(s[o])||n.style&&In(n.style[o])||_C(o,t)||((i=r==null?void 0:r.getValue(o))===null||i===void 0?void 0:i.liveStyle)!==void 0)&&(a[o]=s[o]);return a}function SC(t,n,r){const i=Ty(t,n,r);for(const s in t)if(In(t[s])||In(n[s])){const a=Du.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;i[a]=t[s]}return i}function BN(t){const n=[{},{}];return t==null||t.values.forEach((r,i)=>{n[0][i]=r.get(),n[1][i]=r.getVelocity()}),n}function Oy(t,n,r,i){if(typeof n=="function"){const[s,a]=BN(i);n=n(r!==void 0?r:t.custom,s,a)}if(typeof n=="string"&&(n=t.variants&&t.variants[n]),typeof n=="function"){const[s,a]=BN(i);n=n(r!==void 0?r:t.custom,s,a)}return n}const l0=t=>Array.isArray(t),FB=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),MB=t=>l0(t)?t[t.length-1]||0:t;function Dh(t){const n=In(t)?t.get():t;return FB(n)?n.toValue():n}function LB({scrapeMotionValuesFromProps:t,createRenderState:n,onMount:r},i,s,a){const o={latestValues:BB(i,s,a,t),renderState:n()};return r&&(o.mount=c=>r(i,c,o)),o}const AC=t=>(n,r)=>{const i=D.useContext(wf),s=D.useContext(jf),a=()=>LB(t,n,i,s);return r?a():by(a)};function BB(t,n,r,i){const s={},a=i(t,{});for(const p in a)s[p]=Dh(a[p]);let{initial:o,animate:c}=t;const d=kf(t),h=vC(t);n&&h&&!d&&t.inherit!==!1&&(o===void 0&&(o=n.initial),c===void 0&&(c=n.animate));let f=r?r.initial===!1:!1;f=f||o===!1;const m=f?c:o;if(m&&typeof m!="boolean"&&!Nf(m)){const p=Array.isArray(m)?m:[m];for(let g=0;g<p.length;g++){const y=Oy(t,p[g]);if(y){const{transitionEnd:j,transition:v,...x}=y;for(const N in x){let w=x[N];if(Array.isArray(w)){const k=f?w.length-1:0;w=w[k]}w!==null&&(s[N]=w)}for(const N in j)s[N]=j[N]}}}return s}const Py=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),CC=()=>({...Py(),attrs:{}}),EC=(t,n)=>n&&typeof t=="number"?n.transform(t):t,Gi=(t,n,r)=>r>n?n:r<t?t:r,El={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},uu={...El,transform:t=>Gi(0,1,t)},ch={...El,default:1},Iu=t=>({test:n=>typeof n=="string"&&n.endsWith(t)&&n.split(" ").length===1,parse:parseFloat,transform:n=>`${n}${t}`}),As=Iu("deg"),gi=Iu("%"),Ye=Iu("px"),zB=Iu("vh"),qB=Iu("vw"),zN={...gi,parse:t=>gi.parse(t)/100,transform:t=>gi.transform(t*100)},VB={borderWidth:Ye,borderTopWidth:Ye,borderRightWidth:Ye,borderBottomWidth:Ye,borderLeftWidth:Ye,borderRadius:Ye,radius:Ye,borderTopLeftRadius:Ye,borderTopRightRadius:Ye,borderBottomRightRadius:Ye,borderBottomLeftRadius:Ye,width:Ye,maxWidth:Ye,height:Ye,maxHeight:Ye,top:Ye,right:Ye,bottom:Ye,left:Ye,padding:Ye,paddingTop:Ye,paddingRight:Ye,paddingBottom:Ye,paddingLeft:Ye,margin:Ye,marginTop:Ye,marginRight:Ye,marginBottom:Ye,marginLeft:Ye,backgroundPositionX:Ye,backgroundPositionY:Ye},UB={rotate:As,rotateX:As,rotateY:As,rotateZ:As,scale:ch,scaleX:ch,scaleY:ch,scaleZ:ch,skew:As,skewX:As,skewY:As,distance:Ye,translateX:Ye,translateY:Ye,translateZ:Ye,x:Ye,y:Ye,z:Ye,perspective:Ye,transformPerspective:Ye,opacity:uu,originX:zN,originY:zN,originZ:Ye},qN={...El,transform:Math.round},Dy={...VB,...UB,zIndex:qN,size:Ye,fillOpacity:uu,strokeOpacity:uu,numOctaves:qN},$B={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},HB=Du.length;function WB(t,n,r){let i="",s=!0;for(let a=0;a<HB;a++){const o=Du[a],c=t[o];if(c===void 0)continue;let d=!0;if(typeof c=="number"?d=c===(o.startsWith("scale")?1:0):d=parseFloat(c)===0,!d||r){const h=EC(c,Dy[o]);if(!d){s=!1;const f=$B[o]||o;i+=`${f}(${h}) `}r&&(n[o]=h)}}return i=i.trim(),r?i=r(n,s?"":i):s&&(i="none"),i}const TC=t=>n=>typeof n=="string"&&n.startsWith(t),OC=TC("--"),KB=TC("var(--"),Iy=t=>KB(t)?GB.test(t.split("/*")[0].trim()):!1,GB=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Ry(t,n,r){const{style:i,vars:s,transformOrigin:a}=t;let o=!1,c=!1;for(const d in n){const h=n[d];if(to.has(d)){o=!0;continue}else if(OC(d)){s[d]=h;continue}else{const f=EC(h,Dy[d]);d.startsWith("origin")?(c=!0,a[d]=f):i[d]=f}}if(n.transform||(o||r?i.transform=WB(n,t.transform,r):i.transform&&(i.transform="none")),c){const{originX:d="50%",originY:h="50%",originZ:f=0}=a;i.transformOrigin=`${d} ${h} ${f}`}}function VN(t,n,r){return typeof t=="string"?t:Ye.transform(n+r*t)}function QB(t,n,r){const i=VN(n,t.x,t.width),s=VN(r,t.y,t.height);return`${i} ${s}`}const YB={offset:"stroke-dashoffset",array:"stroke-dasharray"},XB={offset:"strokeDashoffset",array:"strokeDasharray"};function JB(t,n,r=1,i=0,s=!0){t.pathLength=1;const a=s?YB:XB;t[a.offset]=Ye.transform(-i);const o=Ye.transform(n),c=Ye.transform(r);t[a.array]=`${o} ${c}`}function Fy(t,{attrX:n,attrY:r,attrScale:i,originX:s,originY:a,pathLength:o,pathSpacing:c=1,pathOffset:d=0,...h},f,m){if(Ry(t,h,m),f){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:p,style:g,dimensions:y}=t;p.transform&&(y&&(g.transform=p.transform),delete p.transform),y&&(s!==void 0||a!==void 0||g.transform)&&(g.transformOrigin=QB(y,s!==void 0?s:.5,a!==void 0?a:.5)),n!==void 0&&(p.x=n),r!==void 0&&(p.y=r),i!==void 0&&(p.scale=i),o!==void 0&&JB(p,o,c,d,!1)}const My=t=>typeof t=="string"&&t.toLowerCase()==="svg",ZB={useVisualState:AC({scrapeMotionValuesFromProps:SC,createRenderState:CC,onMount:(t,n,{renderState:r,latestValues:i})=>{zt.read(()=>{try{r.dimensions=typeof n.getBBox=="function"?n.getBBox():n.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),zt.render(()=>{Fy(r,i,My(n.tagName),t.transformTemplate),kC(n,r)})}})},ez={useVisualState:AC({scrapeMotionValuesFromProps:Ty,createRenderState:Py})};function PC(t,n,r){for(const i in n)!In(n[i])&&!_C(i,r)&&(t[i]=n[i])}function tz({transformTemplate:t},n){return D.useMemo(()=>{const r=Py();return Ry(r,n,t),Object.assign({},r.vars,r.style)},[n])}function nz(t,n){const r=t.style||{},i={};return PC(i,r,t),Object.assign(i,tz(t,n)),i}function rz(t,n){const r={},i=nz(t,n);return t.drag&&t.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=i,r}function iz(t,n,r,i){const s=D.useMemo(()=>{const a=CC();return Fy(a,n,My(i),t.transformTemplate),{...a.attrs,style:{...a.style}}},[n]);if(t.style){const a={};PC(a,t.style,t),s.style={...a,...s.style}}return s}function sz(t=!1){return(r,i,s,{latestValues:a},o)=>{const d=(Ey(r)?iz:rz)(i,a,o,r),h=jB(i,typeof r=="string",t),f=r!==D.Fragment?{...h,...d,ref:s}:{},{children:m}=i,p=D.useMemo(()=>In(m)?m.get():m,[m]);return D.createElement(r,{...f,children:p})}}function az(t,n){return function(i,{forwardMotionProps:s}={forwardMotionProps:!1}){const o={...Ey(i)?ZB:ez,preloadedFeatures:t,useRender:sz(s),createVisualElement:n,Component:i};return TB(o)}}function DC(t,n){if(!Array.isArray(n))return!1;const r=n.length;if(r!==t.length)return!1;for(let i=0;i<r;i++)if(n[i]!==t[i])return!1;return!0}function _f(t,n,r){const i=t.getProps();return Oy(i,n,r!==void 0?r:i.custom,t)}const oz=Ny(()=>window.ScrollTimeline!==void 0);class lz{constructor(n){this.stop=()=>this.runAll("stop"),this.animations=n.filter(Boolean)}get finished(){return Promise.all(this.animations.map(n=>"finished"in n?n.finished:n))}getAll(n){return this.animations[0][n]}setAll(n,r){for(let i=0;i<this.animations.length;i++)this.animations[i][n]=r}attachTimeline(n,r){const i=this.animations.map(s=>{if(oz()&&s.attachTimeline)return s.attachTimeline(n);if(typeof r=="function")return r(s)});return()=>{i.forEach((s,a)=>{s&&s(),this.animations[a].stop()})}}get time(){return this.getAll("time")}set time(n){this.setAll("time",n)}get speed(){return this.getAll("speed")}set speed(n){this.setAll("speed",n)}get startTime(){return this.getAll("startTime")}get duration(){let n=0;for(let r=0;r<this.animations.length;r++)n=Math.max(n,this.animations[r].duration);return n}runAll(n){this.animations.forEach(r=>r[n]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class cz extends lz{then(n,r){return Promise.all(this.animations).then(n).catch(r)}}function Ly(t,n){return t?t[n]||t.default||t:void 0}const c0=2e4;function IC(t){let n=0;const r=50;let i=t.next(n);for(;!i.done&&n<c0;)n+=r,i=t.next(n);return n>=c0?1/0:n}function By(t){return typeof t=="function"}function UN(t,n){t.timeline=n,t.onfinish=null}const zy=t=>Array.isArray(t)&&typeof t[0]=="number",uz={linearEasing:void 0};function dz(t,n){const r=Ny(t);return()=>{var i;return(i=uz[n])!==null&&i!==void 0?i:r()}}const Gh=dz(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),RC=(t,n,r=10)=>{let i="";const s=Math.max(Math.round(n/r),2);for(let a=0;a<s;a++)i+=t(hl(0,s-1,a))+", ";return`linear(${i.substring(0,i.length-2)})`};function FC(t){return!!(typeof t=="function"&&Gh()||!t||typeof t=="string"&&(t in u0||Gh())||zy(t)||Array.isArray(t)&&t.every(FC))}const Mc=([t,n,r,i])=>`cubic-bezier(${t}, ${n}, ${r}, ${i})`,u0={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Mc([0,.65,.55,1]),circOut:Mc([.55,0,1,.45]),backIn:Mc([.31,.01,.66,-.59]),backOut:Mc([.33,1.53,.69,.99])};function MC(t,n){if(t)return typeof t=="function"&&Gh()?RC(t,n):zy(t)?Mc(t):Array.isArray(t)?t.map(r=>MC(r,n)||u0.easeOut):u0[t]}const qr={x:!1,y:!1};function LC(){return qr.x||qr.y}function hz(t,n,r){var i;if(t instanceof Element)return[t];if(typeof t=="string"){let s=document;const a=(i=void 0)!==null&&i!==void 0?i:s.querySelectorAll(t);return a?Array.from(a):[]}return Array.from(t)}function BC(t,n){const r=hz(t),i=new AbortController,s={passive:!0,...n,signal:i.signal};return[r,s,()=>i.abort()]}function $N(t){return n=>{n.pointerType==="touch"||LC()||t(n)}}function fz(t,n,r={}){const[i,s,a]=BC(t,r),o=$N(c=>{const{target:d}=c,h=n(c);if(typeof h!="function"||!d)return;const f=$N(m=>{h(m),d.removeEventListener("pointerleave",f)});d.addEventListener("pointerleave",f,s)});return i.forEach(c=>{c.addEventListener("pointerenter",o,s)}),a}const zC=(t,n)=>n?t===n?!0:zC(t,n.parentElement):!1,qy=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,mz=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function pz(t){return mz.has(t.tagName)||t.tabIndex!==-1}const Lc=new WeakSet;function HN(t){return n=>{n.key==="Enter"&&t(n)}}function rg(t,n){t.dispatchEvent(new PointerEvent("pointer"+n,{isPrimary:!0,bubbles:!0}))}const gz=(t,n)=>{const r=t.currentTarget;if(!r)return;const i=HN(()=>{if(Lc.has(r))return;rg(r,"down");const s=HN(()=>{rg(r,"up")}),a=()=>rg(r,"cancel");r.addEventListener("keyup",s,n),r.addEventListener("blur",a,n)});r.addEventListener("keydown",i,n),r.addEventListener("blur",()=>r.removeEventListener("keydown",i),n)};function WN(t){return qy(t)&&!LC()}function xz(t,n,r={}){const[i,s,a]=BC(t,r),o=c=>{const d=c.currentTarget;if(!WN(c)||Lc.has(d))return;Lc.add(d);const h=n(c),f=(g,y)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",p),!(!WN(g)||!Lc.has(d))&&(Lc.delete(d),typeof h=="function"&&h(g,{success:y}))},m=g=>{f(g,r.useGlobalTarget||zC(d,g.target))},p=g=>{f(g,!1)};window.addEventListener("pointerup",m,s),window.addEventListener("pointercancel",p,s)};return i.forEach(c=>{!pz(c)&&c.getAttribute("tabindex")===null&&(c.tabIndex=0),(r.useGlobalTarget?window:c).addEventListener("pointerdown",o,s),c.addEventListener("focus",h=>gz(h,s),s)}),a}function vz(t){return t==="x"||t==="y"?qr[t]?null:(qr[t]=!0,()=>{qr[t]=!1}):qr.x||qr.y?null:(qr.x=qr.y=!0,()=>{qr.x=qr.y=!1})}let Ih;function yz(){Ih=void 0}const xi={now:()=>(Ih===void 0&&xi.set(_n.isProcessing||pB.useManualTiming?_n.timestamp:performance.now()),Ih),set:t=>{Ih=t,queueMicrotask(yz)}};function Vy(t,n){t.indexOf(n)===-1&&t.push(n)}function Uy(t,n){const r=t.indexOf(n);r>-1&&t.splice(r,1)}class $y{constructor(){this.subscriptions=[]}add(n){return Vy(this.subscriptions,n),()=>Uy(this.subscriptions,n)}notify(n,r,i){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](n,r,i);else for(let a=0;a<s;a++){const o=this.subscriptions[a];o&&o(n,r,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function qC(t,n){return n?t*(1e3/n):0}const KN=30,bz=t=>!isNaN(parseFloat(t));class jz{constructor(n,r={}){this.version="11.16.4",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(i,s=!0)=>{const a=xi.now();this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),s&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(n),this.owner=r.owner}setCurrent(n){this.current=n,this.updatedAt=xi.now(),this.canTrackVelocity===null&&n!==void 0&&(this.canTrackVelocity=bz(this.current))}setPrevFrameValue(n=this.current){this.prevFrameValue=n,this.prevUpdatedAt=this.updatedAt}onChange(n){return this.on("change",n)}on(n,r){this.events[n]||(this.events[n]=new $y);const i=this.events[n].add(r);return n==="change"?()=>{i(),zt.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const n in this.events)this.events[n].clear()}attach(n,r){this.passiveEffect=n,this.stopPassiveEffect=r}set(n,r=!0){!r||!this.passiveEffect?this.updateAndNotify(n,r):this.passiveEffect(n,this.updateAndNotify)}setWithVelocity(n,r,i){this.set(r),this.prev=void 0,this.prevFrameValue=n,this.prevUpdatedAt=this.updatedAt-i}jump(n,r=!0){this.updateAndNotify(n),this.prev=n,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const n=xi.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||n-this.updatedAt>KN)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,KN);return qC(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(n){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=n(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function du(t,n){return new jz(t,n)}function wz(t,n,r){t.hasValue(n)?t.getValue(n).set(r):t.addValue(n,du(r))}function Nz(t,n){const r=_f(t,n);let{transitionEnd:i={},transition:s={},...a}=r||{};a={...a,...i};for(const o in a){const c=MB(a[o]);wz(t,o,c)}}function kz(t){return!!(In(t)&&t.add)}function d0(t,n){const r=t.getValue("willChange");if(kz(r))return r.add(n)}function VC(t){return t.props[yC]}const UC=(t,n,r)=>(((1-3*r+3*n)*t+(3*r-6*n))*t+3*n)*t,_z=1e-7,Sz=12;function Az(t,n,r,i,s){let a,o,c=0;do o=n+(r-n)/2,a=UC(o,i,s)-t,a>0?r=o:n=o;while(Math.abs(a)>_z&&++c<Sz);return o}function Ru(t,n,r,i){if(t===n&&r===i)return fr;const s=a=>Az(a,0,1,t,r);return a=>a===0||a===1?a:UC(s(a),n,i)}const $C=t=>n=>n<=.5?t(2*n)/2:(2-t(2*(1-n)))/2,HC=t=>n=>1-t(1-n),WC=Ru(.33,1.53,.69,.99),Hy=HC(WC),KC=$C(Hy),GC=t=>(t*=2)<1?.5*Hy(t):.5*(2-Math.pow(2,-10*(t-1))),Wy=t=>1-Math.sin(Math.acos(t)),QC=HC(Wy),YC=$C(Wy),XC=t=>/^0[^.\s]+$/u.test(t);function Cz(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||XC(t):!0}const JC=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),Ez=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Tz(t){const n=Ez.exec(t);if(!n)return[,];const[,r,i,s]=n;return[`--${r??i}`,s]}function ZC(t,n,r=1){const[i,s]=Tz(t);if(!i)return;const a=window.getComputedStyle(n).getPropertyValue(i);if(a){const o=a.trim();return JC(o)?parseFloat(o):o}return Iy(s)?ZC(s,n,r+1):s}const Oz=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),GN=t=>t===El||t===Ye,QN=(t,n)=>parseFloat(t.split(", ")[n]),YN=(t,n)=>(r,{transform:i})=>{if(i==="none"||!i)return 0;const s=i.match(/^matrix3d\((.+)\)$/u);if(s)return QN(s[1],n);{const a=i.match(/^matrix\((.+)\)$/u);return a?QN(a[1],t):0}},Pz=new Set(["x","y","z"]),Dz=Du.filter(t=>!Pz.has(t));function Iz(t){const n=[];return Dz.forEach(r=>{const i=t.getValue(r);i!==void 0&&(n.push([r,i.get()]),i.set(r.startsWith("scale")?1:0))}),n}const ml={width:({x:t},{paddingLeft:n="0",paddingRight:r="0"})=>t.max-t.min-parseFloat(n)-parseFloat(r),height:({y:t},{paddingTop:n="0",paddingBottom:r="0"})=>t.max-t.min-parseFloat(n)-parseFloat(r),top:(t,{top:n})=>parseFloat(n),left:(t,{left:n})=>parseFloat(n),bottom:({y:t},{top:n})=>parseFloat(n)+(t.max-t.min),right:({x:t},{left:n})=>parseFloat(n)+(t.max-t.min),x:YN(4,13),y:YN(5,14)};ml.translateX=ml.x;ml.translateY=ml.y;const eE=t=>n=>n.test(t),Rz={test:t=>t==="auto",parse:t=>t},tE=[El,Ye,gi,As,qB,zB,Rz],XN=t=>tE.find(eE(t)),qa=new Set;let h0=!1,f0=!1;function nE(){if(f0){const t=Array.from(qa).filter(i=>i.needsMeasurement),n=new Set(t.map(i=>i.element)),r=new Map;n.forEach(i=>{const s=Iz(i);s.length&&(r.set(i,s),i.render())}),t.forEach(i=>i.measureInitialState()),n.forEach(i=>{i.render();const s=r.get(i);s&&s.forEach(([a,o])=>{var c;(c=i.getValue(a))===null||c===void 0||c.set(o)})}),t.forEach(i=>i.measureEndState()),t.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}f0=!1,h0=!1,qa.forEach(t=>t.complete()),qa.clear()}function rE(){qa.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(f0=!0)})}function Fz(){rE(),nE()}class Ky{constructor(n,r,i,s,a,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...n],this.onComplete=r,this.name=i,this.motionValue=s,this.element=a,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(qa.add(this),h0||(h0=!0,zt.read(rE),zt.resolveKeyframes(nE))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:n,name:r,element:i,motionValue:s}=this;for(let a=0;a<n.length;a++)if(n[a]===null)if(a===0){const o=s==null?void 0:s.get(),c=n[n.length-1];if(o!==void 0)n[0]=o;else if(i&&r){const d=i.readValue(r,c);d!=null&&(n[0]=d)}n[0]===void 0&&(n[0]=c),s&&o===void 0&&s.set(n[0])}else n[a]=n[a-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),qa.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,qa.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Wc=t=>Math.round(t*1e5)/1e5,Gy=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Mz(t){return t==null}const Lz=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Qy=(t,n)=>r=>!!(typeof r=="string"&&Lz.test(r)&&r.startsWith(t)||n&&!Mz(r)&&Object.prototype.hasOwnProperty.call(r,n)),iE=(t,n,r)=>i=>{if(typeof i!="string")return i;const[s,a,o,c]=i.match(Gy);return{[t]:parseFloat(s),[n]:parseFloat(a),[r]:parseFloat(o),alpha:c!==void 0?parseFloat(c):1}},Bz=t=>Gi(0,255,t),ig={...El,transform:t=>Math.round(Bz(t))},Ta={test:Qy("rgb","red"),parse:iE("red","green","blue"),transform:({red:t,green:n,blue:r,alpha:i=1})=>"rgba("+ig.transform(t)+", "+ig.transform(n)+", "+ig.transform(r)+", "+Wc(uu.transform(i))+")"};function zz(t){let n="",r="",i="",s="";return t.length>5?(n=t.substring(1,3),r=t.substring(3,5),i=t.substring(5,7),s=t.substring(7,9)):(n=t.substring(1,2),r=t.substring(2,3),i=t.substring(3,4),s=t.substring(4,5),n+=n,r+=r,i+=i,s+=s),{red:parseInt(n,16),green:parseInt(r,16),blue:parseInt(i,16),alpha:s?parseInt(s,16)/255:1}}const m0={test:Qy("#"),parse:zz,transform:Ta.transform},qo={test:Qy("hsl","hue"),parse:iE("hue","saturation","lightness"),transform:({hue:t,saturation:n,lightness:r,alpha:i=1})=>"hsla("+Math.round(t)+", "+gi.transform(Wc(n))+", "+gi.transform(Wc(r))+", "+Wc(uu.transform(i))+")"},On={test:t=>Ta.test(t)||m0.test(t)||qo.test(t),parse:t=>Ta.test(t)?Ta.parse(t):qo.test(t)?qo.parse(t):m0.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?Ta.transform(t):qo.transform(t)},qz=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Vz(t){var n,r;return isNaN(t)&&typeof t=="string"&&(((n=t.match(Gy))===null||n===void 0?void 0:n.length)||0)+(((r=t.match(qz))===null||r===void 0?void 0:r.length)||0)>0}const sE="number",aE="color",Uz="var",$z="var(",JN="${}",Hz=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function hu(t){const n=t.toString(),r=[],i={color:[],number:[],var:[]},s=[];let a=0;const c=n.replace(Hz,d=>(On.test(d)?(i.color.push(a),s.push(aE),r.push(On.parse(d))):d.startsWith($z)?(i.var.push(a),s.push(Uz),r.push(d)):(i.number.push(a),s.push(sE),r.push(parseFloat(d))),++a,JN)).split(JN);return{values:r,split:c,indexes:i,types:s}}function oE(t){return hu(t).values}function lE(t){const{split:n,types:r}=hu(t),i=n.length;return s=>{let a="";for(let o=0;o<i;o++)if(a+=n[o],s[o]!==void 0){const c=r[o];c===sE?a+=Wc(s[o]):c===aE?a+=On.transform(s[o]):a+=s[o]}return a}}const Wz=t=>typeof t=="number"?0:t;function Kz(t){const n=oE(t);return lE(t)(n.map(Wz))}const Gs={test:Vz,parse:oE,createTransformer:lE,getAnimatableNone:Kz},Gz=new Set(["brightness","contrast","saturate","opacity"]);function Qz(t){const[n,r]=t.slice(0,-1).split("(");if(n==="drop-shadow")return t;const[i]=r.match(Gy)||[];if(!i)return t;const s=r.replace(i,"");let a=Gz.has(n)?1:0;return i!==r&&(a*=100),n+"("+a+s+")"}const Yz=/\b([a-z-]*)\(.*?\)/gu,p0={...Gs,getAnimatableNone:t=>{const n=t.match(Yz);return n?n.map(Qz).join(" "):t}},Xz={...Dy,color:On,backgroundColor:On,outlineColor:On,fill:On,stroke:On,borderColor:On,borderTopColor:On,borderRightColor:On,borderBottomColor:On,borderLeftColor:On,filter:p0,WebkitFilter:p0},Yy=t=>Xz[t];function cE(t,n){let r=Yy(t);return r!==p0&&(r=Gs),r.getAnimatableNone?r.getAnimatableNone(n):void 0}const Jz=new Set(["auto","none","0"]);function Zz(t,n,r){let i=0,s;for(;i<t.length&&!s;){const a=t[i];typeof a=="string"&&!Jz.has(a)&&hu(a).values.length&&(s=t[i]),i++}if(s&&r)for(const a of n)t[a]=cE(r,s)}class uE extends Ky{constructor(n,r,i,s,a){super(n,r,i,s,a,!0)}readKeyframes(){const{unresolvedKeyframes:n,element:r,name:i}=this;if(!r||!r.current)return;super.readKeyframes();for(let d=0;d<n.length;d++){let h=n[d];if(typeof h=="string"&&(h=h.trim(),Iy(h))){const f=ZC(h,r.current);f!==void 0&&(n[d]=f),d===n.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!Oz.has(i)||n.length!==2)return;const[s,a]=n,o=XN(s),c=XN(a);if(o!==c)if(GN(o)&&GN(c))for(let d=0;d<n.length;d++){const h=n[d];typeof h=="string"&&(n[d]=parseFloat(h))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:n,name:r}=this,i=[];for(let s=0;s<n.length;s++)Cz(n[s])&&i.push(s);i.length&&Zz(n,i,r)}measureInitialState(){const{element:n,unresolvedKeyframes:r,name:i}=this;if(!n||!n.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ml[i](n.measureViewportBox(),window.getComputedStyle(n.current)),r[0]=this.measuredOrigin;const s=r[r.length-1];s!==void 0&&n.getValue(i,s).jump(s,!1)}measureEndState(){var n;const{element:r,name:i,unresolvedKeyframes:s}=this;if(!r||!r.current)return;const a=r.getValue(i);a&&a.jump(this.measuredOrigin,!1);const o=s.length-1,c=s[o];s[o]=ml[i](r.measureViewportBox(),window.getComputedStyle(r.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),!((n=this.removedTransforms)===null||n===void 0)&&n.length&&this.removedTransforms.forEach(([d,h])=>{r.getValue(d).set(h)}),this.resolveNoneKeyframes()}}const ZN=(t,n)=>n==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Gs.test(t)||t==="0")&&!t.startsWith("url("));function e7(t){const n=t[0];if(t.length===1)return!0;for(let r=0;r<t.length;r++)if(t[r]!==n)return!0}function t7(t,n,r,i){const s=t[0];if(s===null)return!1;if(n==="display"||n==="visibility")return!0;const a=t[t.length-1],o=ZN(s,n),c=ZN(a,n);return!o||!c?!1:e7(t)||(r==="spring"||By(r))&&i}const n7=t=>t!==null;function Sf(t,{repeat:n,repeatType:r="loop"},i){const s=t.filter(n7),a=n&&r!=="loop"&&n%2===1?0:s.length-1;return!a||i===void 0?s[a]:i}const r7=40;class dE{constructor({autoplay:n=!0,delay:r=0,type:i="keyframes",repeat:s=0,repeatDelay:a=0,repeatType:o="loop",...c}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=xi.now(),this.options={autoplay:n,delay:r,type:i,repeat:s,repeatDelay:a,repeatType:o,...c},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>r7?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Fz(),this._resolved}onKeyframesResolved(n,r){this.resolvedAt=xi.now(),this.hasAttemptedResolve=!0;const{name:i,type:s,velocity:a,delay:o,onComplete:c,onUpdate:d,isGenerator:h}=this.options;if(!h&&!t7(n,i,s,a))if(o)this.options.duration=0;else{d==null||d(Sf(n,this.options,r)),c==null||c(),this.resolveFinishedPromise();return}const f=this.initPlayback(n,r);f!==!1&&(this._resolved={keyframes:n,finalKeyframe:r,...f},this.onPostResolved())}onPostResolved(){}then(n,r){return this.currentFinishedPromise.then(n,r)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(n=>{this.resolveFinishedPromise=n})}}const Qt=(t,n,r)=>t+(n-t)*r;function sg(t,n,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(n-t)*6*r:r<1/2?n:r<2/3?t+(n-t)*(2/3-r)*6:t}function i7({hue:t,saturation:n,lightness:r,alpha:i}){t/=360,n/=100,r/=100;let s=0,a=0,o=0;if(!n)s=a=o=r;else{const c=r<.5?r*(1+n):r+n-r*n,d=2*r-c;s=sg(d,c,t+1/3),a=sg(d,c,t),o=sg(d,c,t-1/3)}return{red:Math.round(s*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:i}}function Qh(t,n){return r=>r>0?n:t}const ag=(t,n,r)=>{const i=t*t,s=r*(n*n-i)+i;return s<0?0:Math.sqrt(s)},s7=[m0,Ta,qo],a7=t=>s7.find(n=>n.test(t));function ek(t){const n=a7(t);if(!n)return!1;let r=n.parse(t);return n===qo&&(r=i7(r)),r}const tk=(t,n)=>{const r=ek(t),i=ek(n);if(!r||!i)return Qh(t,n);const s={...r};return a=>(s.red=ag(r.red,i.red,a),s.green=ag(r.green,i.green,a),s.blue=ag(r.blue,i.blue,a),s.alpha=Qt(r.alpha,i.alpha,a),Ta.transform(s))},o7=(t,n)=>r=>n(t(r)),Fu=(...t)=>t.reduce(o7),g0=new Set(["none","hidden"]);function l7(t,n){return g0.has(t)?r=>r<=0?t:n:r=>r>=1?n:t}function c7(t,n){return r=>Qt(t,n,r)}function Xy(t){return typeof t=="number"?c7:typeof t=="string"?Iy(t)?Qh:On.test(t)?tk:h7:Array.isArray(t)?hE:typeof t=="object"?On.test(t)?tk:u7:Qh}function hE(t,n){const r=[...t],i=r.length,s=t.map((a,o)=>Xy(a)(a,n[o]));return a=>{for(let o=0;o<i;o++)r[o]=s[o](a);return r}}function u7(t,n){const r={...t,...n},i={};for(const s in r)t[s]!==void 0&&n[s]!==void 0&&(i[s]=Xy(t[s])(t[s],n[s]));return s=>{for(const a in i)r[a]=i[a](s);return r}}function d7(t,n){var r;const i=[],s={color:0,var:0,number:0};for(let a=0;a<n.values.length;a++){const o=n.types[a],c=t.indexes[o][s[o]],d=(r=t.values[c])!==null&&r!==void 0?r:0;i[a]=d,s[o]++}return i}const h7=(t,n)=>{const r=Gs.createTransformer(n),i=hu(t),s=hu(n);return i.indexes.var.length===s.indexes.var.length&&i.indexes.color.length===s.indexes.color.length&&i.indexes.number.length>=s.indexes.number.length?g0.has(t)&&!s.values.length||g0.has(n)&&!i.values.length?l7(t,n):Fu(hE(d7(i,s),s.values),r):Qh(t,n)};function fE(t,n,r){return typeof t=="number"&&typeof n=="number"&&typeof r=="number"?Qt(t,n,r):Xy(t)(t,n)}const f7=5;function mE(t,n,r){const i=Math.max(n-f7,0);return qC(r-t(i),n-i)}const en={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},og=.001;function m7({duration:t=en.duration,bounce:n=en.bounce,velocity:r=en.velocity,mass:i=en.mass}){let s,a,o=1-n;o=Gi(en.minDamping,en.maxDamping,o),t=Gi(en.minDuration,en.maxDuration,$i(t)),o<1?(s=h=>{const f=h*o,m=f*t,p=f-r,g=x0(h,o),y=Math.exp(-m);return og-p/g*y},a=h=>{const m=h*o*t,p=m*r+r,g=Math.pow(o,2)*Math.pow(h,2)*t,y=Math.exp(-m),j=x0(Math.pow(h,2),o);return(-s(h)+og>0?-1:1)*((p-g)*y)/j}):(s=h=>{const f=Math.exp(-h*t),m=(h-r)*t+1;return-og+f*m},a=h=>{const f=Math.exp(-h*t),m=(r-h)*(t*t);return f*m});const c=5/t,d=g7(s,a,c);if(t=Ui(t),isNaN(d))return{stiffness:en.stiffness,damping:en.damping,duration:t};{const h=Math.pow(d,2)*i;return{stiffness:h,damping:o*2*Math.sqrt(i*h),duration:t}}}const p7=12;function g7(t,n,r){let i=r;for(let s=1;s<p7;s++)i=i-t(i)/n(i);return i}function x0(t,n){return t*Math.sqrt(1-n*n)}const x7=["duration","bounce"],v7=["stiffness","damping","mass"];function nk(t,n){return n.some(r=>t[r]!==void 0)}function y7(t){let n={velocity:en.velocity,stiffness:en.stiffness,damping:en.damping,mass:en.mass,isResolvedFromDuration:!1,...t};if(!nk(t,v7)&&nk(t,x7))if(t.visualDuration){const r=t.visualDuration,i=2*Math.PI/(r*1.2),s=i*i,a=2*Gi(.05,1,1-(t.bounce||0))*Math.sqrt(s);n={...n,mass:en.mass,stiffness:s,damping:a}}else{const r=m7(t);n={...n,...r,mass:en.mass},n.isResolvedFromDuration=!0}return n}function pE(t=en.visualDuration,n=en.bounce){const r=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:n}:t;let{restSpeed:i,restDelta:s}=r;const a=r.keyframes[0],o=r.keyframes[r.keyframes.length-1],c={done:!1,value:a},{stiffness:d,damping:h,mass:f,duration:m,velocity:p,isResolvedFromDuration:g}=y7({...r,velocity:-$i(r.velocity||0)}),y=p||0,j=h/(2*Math.sqrt(d*f)),v=o-a,x=$i(Math.sqrt(d/f)),N=Math.abs(v)<5;i||(i=N?en.restSpeed.granular:en.restSpeed.default),s||(s=N?en.restDelta.granular:en.restDelta.default);let w;if(j<1){const A=x0(x,j);w=S=>{const E=Math.exp(-j*x*S);return o-E*((y+j*x*v)/A*Math.sin(A*S)+v*Math.cos(A*S))}}else if(j===1)w=A=>o-Math.exp(-x*A)*(v+(y+x*v)*A);else{const A=x*Math.sqrt(j*j-1);w=S=>{const E=Math.exp(-j*x*S),C=Math.min(A*S,300);return o-E*((y+j*x*v)*Math.sinh(C)+A*v*Math.cosh(C))/A}}const k={calculatedDuration:g&&m||null,next:A=>{const S=w(A);if(g)c.done=A>=m;else{let E=0;j<1&&(E=A===0?Ui(y):mE(w,A,S));const C=Math.abs(E)<=i,B=Math.abs(o-S)<=s;c.done=C&&B}return c.value=c.done?o:S,c},toString:()=>{const A=Math.min(IC(k),c0),S=RC(E=>k.next(A*E).value,A,30);return A+"ms "+S}};return k}function rk({keyframes:t,velocity:n=0,power:r=.8,timeConstant:i=325,bounceDamping:s=10,bounceStiffness:a=500,modifyTarget:o,min:c,max:d,restDelta:h=.5,restSpeed:f}){const m=t[0],p={done:!1,value:m},g=C=>c!==void 0&&C<c||d!==void 0&&C>d,y=C=>c===void 0?d:d===void 0||Math.abs(c-C)<Math.abs(d-C)?c:d;let j=r*n;const v=m+j,x=o===void 0?v:o(v);x!==v&&(j=x-m);const N=C=>-j*Math.exp(-C/i),w=C=>x+N(C),k=C=>{const B=N(C),F=w(C);p.done=Math.abs(B)<=h,p.value=p.done?x:F};let A,S;const E=C=>{g(p.value)&&(A=C,S=pE({keyframes:[p.value,y(p.value)],velocity:mE(w,C,p.value),damping:s,stiffness:a,restDelta:h,restSpeed:f}))};return E(0),{calculatedDuration:null,next:C=>{let B=!1;return!S&&A===void 0&&(B=!0,k(C),E(C)),A!==void 0&&C>=A?S.next(C-A):(!B&&k(C),p)}}}const b7=Ru(.42,0,1,1),j7=Ru(0,0,.58,1),gE=Ru(.42,0,.58,1),w7=t=>Array.isArray(t)&&typeof t[0]!="number",N7={linear:fr,easeIn:b7,easeInOut:gE,easeOut:j7,circIn:Wy,circInOut:YC,circOut:QC,backIn:Hy,backInOut:KC,backOut:WC,anticipate:GC},ik=t=>{if(zy(t)){fC(t.length===4);const[n,r,i,s]=t;return Ru(n,r,i,s)}else if(typeof t=="string")return N7[t];return t};function k7(t,n,r){const i=[],s=r||fE,a=t.length-1;for(let o=0;o<a;o++){let c=s(t[o],t[o+1]);if(n){const d=Array.isArray(n)?n[o]||fr:n;c=Fu(d,c)}i.push(c)}return i}function _7(t,n,{clamp:r=!0,ease:i,mixer:s}={}){const a=t.length;if(fC(a===n.length),a===1)return()=>n[0];if(a===2&&t[0]===t[1])return()=>n[1];t[0]>t[a-1]&&(t=[...t].reverse(),n=[...n].reverse());const o=k7(n,i,s),c=o.length,d=h=>{let f=0;if(c>1)for(;f<t.length-2&&!(h<t[f+1]);f++);const m=hl(t[f],t[f+1],h);return o[f](m)};return r?h=>d(Gi(t[0],t[a-1],h)):d}function S7(t,n){const r=t[t.length-1];for(let i=1;i<=n;i++){const s=hl(0,n,i);t.push(Qt(r,1,s))}}function A7(t){const n=[0];return S7(n,t.length-1),n}function C7(t,n){return t.map(r=>r*n)}function E7(t,n){return t.map(()=>n||gE).splice(0,t.length-1)}function Yh({duration:t=300,keyframes:n,times:r,ease:i="easeInOut"}){const s=w7(i)?i.map(ik):ik(i),a={done:!1,value:n[0]},o=C7(r&&r.length===n.length?r:A7(n),t),c=_7(o,n,{ease:Array.isArray(s)?s:E7(n,s)});return{calculatedDuration:t,next:d=>(a.value=c(d),a.done=d>=t,a)}}const T7=t=>{const n=({timestamp:r})=>t(r);return{start:()=>zt.update(n,!0),stop:()=>Ks(n),now:()=>_n.isProcessing?_n.timestamp:xi.now()}},O7={decay:rk,inertia:rk,tween:Yh,keyframes:Yh,spring:pE},P7=t=>t/100;class Jy extends dE{constructor(n){super(n),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:d}=this.options;d&&d()};const{name:r,motionValue:i,element:s,keyframes:a}=this.options,o=(s==null?void 0:s.KeyframeResolver)||Ky,c=(d,h)=>this.onKeyframesResolved(d,h);this.resolver=new o(a,c,r,i,s),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(n){const{type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:a,velocity:o=0}=this.options,c=By(r)?r:O7[r]||Yh;let d,h;c!==Yh&&typeof n[0]!="number"&&(d=Fu(P7,fE(n[0],n[1])),n=[0,100]);const f=c({...this.options,keyframes:n});a==="mirror"&&(h=c({...this.options,keyframes:[...n].reverse(),velocity:-o})),f.calculatedDuration===null&&(f.calculatedDuration=IC(f));const{calculatedDuration:m}=f,p=m+s,g=p*(i+1)-s;return{generator:f,mirroredGenerator:h,mapPercentToKeyframes:d,calculatedDuration:m,resolvedDuration:p,totalDuration:g}}onPostResolved(){const{autoplay:n=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!n?this.pause():this.state=this.pendingPlayState}tick(n,r=!1){const{resolved:i}=this;if(!i){const{keyframes:C}=this.options;return{done:!0,value:C[C.length-1]}}const{finalKeyframe:s,generator:a,mirroredGenerator:o,mapPercentToKeyframes:c,keyframes:d,calculatedDuration:h,totalDuration:f,resolvedDuration:m}=i;if(this.startTime===null)return a.next(0);const{delay:p,repeat:g,repeatType:y,repeatDelay:j,onUpdate:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,n):this.speed<0&&(this.startTime=Math.min(n-f/this.speed,this.startTime)),r?this.currentTime=n:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(n-this.startTime)*this.speed;const x=this.currentTime-p*(this.speed>=0?1:-1),N=this.speed>=0?x<0:x>f;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=f);let w=this.currentTime,k=a;if(g){const C=Math.min(this.currentTime,f)/m;let B=Math.floor(C),F=C%1;!F&&C>=1&&(F=1),F===1&&B--,B=Math.min(B,g+1),!!(B%2)&&(y==="reverse"?(F=1-F,j&&(F-=j/m)):y==="mirror"&&(k=o)),w=Gi(0,1,F)*m}const A=N?{done:!1,value:d[0]}:k.next(w);c&&(A.value=c(A.value));let{done:S}=A;!N&&h!==null&&(S=this.speed>=0?this.currentTime>=f:this.currentTime<=0);const E=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&S);return E&&s!==void 0&&(A.value=Sf(d,this.options,s)),v&&v(A.value),E&&this.finish(),A}get duration(){const{resolved:n}=this;return n?$i(n.calculatedDuration):0}get time(){return $i(this.currentTime)}set time(n){n=Ui(n),this.currentTime=n,this.holdTime!==null||this.speed===0?this.holdTime=n:this.driver&&(this.startTime=this.driver.now()-n/this.speed)}get speed(){return this.playbackSpeed}set speed(n){const r=this.playbackSpeed!==n;this.playbackSpeed=n,r&&(this.time=$i(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:n=T7,onPlay:r,startTime:i}=this.options;this.driver||(this.driver=n(a=>this.tick(a))),r&&r();const s=this.driver.now();this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=s):this.startTime=i??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var n;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(n=this.currentTime)!==null&&n!==void 0?n:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:n}=this.options;n&&n()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(n){return this.startTime=0,this.tick(n,!0)}}const D7=new Set(["opacity","clipPath","filter","transform"]);function I7(t,n,r,{delay:i=0,duration:s=300,repeat:a=0,repeatType:o="loop",ease:c="easeInOut",times:d}={}){const h={[n]:r};d&&(h.offset=d);const f=MC(c,s);return Array.isArray(f)&&(h.easing=f),t.animate(h,{delay:i,duration:s,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:a+1,direction:o==="reverse"?"alternate":"normal"})}const R7=Ny(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Xh=10,F7=2e4;function M7(t){return By(t.type)||t.type==="spring"||!FC(t.ease)}function L7(t,n){const r=new Jy({...n,keyframes:t,repeat:0,delay:0,isGenerator:!0});let i={done:!1,value:t[0]};const s=[];let a=0;for(;!i.done&&a<F7;)i=r.sample(a),s.push(i.value),a+=Xh;return{times:void 0,keyframes:s,duration:a-Xh,ease:"linear"}}const xE={anticipate:GC,backInOut:KC,circInOut:YC};function B7(t){return t in xE}class sk extends dE{constructor(n){super(n);const{name:r,motionValue:i,element:s,keyframes:a}=this.options;this.resolver=new uE(a,(o,c)=>this.onKeyframesResolved(o,c),r,i,s),this.resolver.scheduleResolve()}initPlayback(n,r){var i;let{duration:s=300,times:a,ease:o,type:c,motionValue:d,name:h,startTime:f}=this.options;if(!(!((i=d.owner)===null||i===void 0)&&i.current))return!1;if(typeof o=="string"&&Gh()&&B7(o)&&(o=xE[o]),M7(this.options)){const{onComplete:p,onUpdate:g,motionValue:y,element:j,...v}=this.options,x=L7(n,v);n=x.keyframes,n.length===1&&(n[1]=n[0]),s=x.duration,a=x.times,o=x.ease,c="keyframes"}const m=I7(d.owner.current,h,n,{...this.options,duration:s,times:a,ease:o});return m.startTime=f??this.calcStartTime(),this.pendingTimeline?(UN(m,this.pendingTimeline),this.pendingTimeline=void 0):m.onfinish=()=>{const{onComplete:p}=this.options;d.set(Sf(n,this.options,r)),p&&p(),this.cancel(),this.resolveFinishedPromise()},{animation:m,duration:s,times:a,type:c,ease:o,keyframes:n}}get duration(){const{resolved:n}=this;if(!n)return 0;const{duration:r}=n;return $i(r)}get time(){const{resolved:n}=this;if(!n)return 0;const{animation:r}=n;return $i(r.currentTime||0)}set time(n){const{resolved:r}=this;if(!r)return;const{animation:i}=r;i.currentTime=Ui(n)}get speed(){const{resolved:n}=this;if(!n)return 1;const{animation:r}=n;return r.playbackRate}set speed(n){const{resolved:r}=this;if(!r)return;const{animation:i}=r;i.playbackRate=n}get state(){const{resolved:n}=this;if(!n)return"idle";const{animation:r}=n;return r.playState}get startTime(){const{resolved:n}=this;if(!n)return null;const{animation:r}=n;return r.startTime}attachTimeline(n){if(!this._resolved)this.pendingTimeline=n;else{const{resolved:r}=this;if(!r)return fr;const{animation:i}=r;UN(i,n)}return fr}play(){if(this.isStopped)return;const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playState==="finished"&&this.updateFinishedPromise(),r.play()}pause(){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:n}=this;if(!n)return;const{animation:r,keyframes:i,duration:s,type:a,ease:o,times:c}=n;if(r.playState==="idle"||r.playState==="finished")return;if(this.time){const{motionValue:h,onUpdate:f,onComplete:m,element:p,...g}=this.options,y=new Jy({...g,keyframes:i,duration:s,type:a,ease:o,times:c,isGenerator:!0}),j=Ui(this.time);h.setWithVelocity(y.sample(j-Xh).value,y.sample(j).value,Xh)}const{onStop:d}=this.options;d&&d(),this.cancel()}complete(){const{resolved:n}=this;n&&n.animation.finish()}cancel(){const{resolved:n}=this;n&&n.animation.cancel()}static supports(n){const{motionValue:r,name:i,repeatDelay:s,repeatType:a,damping:o,type:c}=n;return R7()&&i&&D7.has(i)&&r&&r.owner&&r.owner.current instanceof HTMLElement&&!r.owner.getProps().onUpdate&&!s&&a!=="mirror"&&o!==0&&c!=="inertia"}}const z7={type:"spring",stiffness:500,damping:25,restSpeed:10},q7=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),V7={type:"keyframes",duration:.8},U7={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},$7=(t,{keyframes:n})=>n.length>2?V7:to.has(t)?t.startsWith("scale")?q7(n[1]):z7:U7;function H7({when:t,delay:n,delayChildren:r,staggerChildren:i,staggerDirection:s,repeat:a,repeatType:o,repeatDelay:c,from:d,elapsed:h,...f}){return!!Object.keys(f).length}const Zy=(t,n,r,i={},s,a)=>o=>{const c=Ly(i,t)||{},d=c.delay||i.delay||0;let{elapsed:h=0}=i;h=h-Ui(d);let f={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:n.getVelocity(),...c,delay:-h,onUpdate:p=>{n.set(p),c.onUpdate&&c.onUpdate(p)},onComplete:()=>{o(),c.onComplete&&c.onComplete()},name:t,motionValue:n,element:a?void 0:s};H7(c)||(f={...f,...$7(t,f)}),f.duration&&(f.duration=Ui(f.duration)),f.repeatDelay&&(f.repeatDelay=Ui(f.repeatDelay)),f.from!==void 0&&(f.keyframes[0]=f.from);let m=!1;if((f.type===!1||f.duration===0&&!f.repeatDelay)&&(f.duration=0,f.delay===0&&(m=!0)),m&&!a&&n.get()!==void 0){const p=Sf(f.keyframes,c);if(p!==void 0)return zt.update(()=>{f.onUpdate(p),f.onComplete()}),new cz([])}return!a&&sk.supports(f)?new sk(f):new Jy(f)};function W7({protectedKeys:t,needsAnimating:n},r){const i=t.hasOwnProperty(r)&&n[r]!==!0;return n[r]=!1,i}function vE(t,n,{delay:r=0,transitionOverride:i,type:s}={}){var a;let{transition:o=t.getDefaultTransition(),transitionEnd:c,...d}=n;i&&(o=i);const h=[],f=s&&t.animationState&&t.animationState.getState()[s];for(const m in d){const p=t.getValue(m,(a=t.latestValues[m])!==null&&a!==void 0?a:null),g=d[m];if(g===void 0||f&&W7(f,m))continue;const y={delay:r,...Ly(o||{},m)};let j=!1;if(window.MotionHandoffAnimation){const x=VC(t);if(x){const N=window.MotionHandoffAnimation(x,m,zt);N!==null&&(y.startTime=N,j=!0)}}d0(t,m),p.start(Zy(m,p,g,t.shouldReduceMotion&&to.has(m)?{type:!1}:y,t,j));const v=p.animation;v&&h.push(v)}return c&&Promise.all(h).then(()=>{zt.update(()=>{c&&Nz(t,c)})}),h}function v0(t,n,r={}){var i;const s=_f(t,n,r.type==="exit"?(i=t.presenceContext)===null||i===void 0?void 0:i.custom:void 0);let{transition:a=t.getDefaultTransition()||{}}=s||{};r.transitionOverride&&(a=r.transitionOverride);const o=s?()=>Promise.all(vE(t,s,r)):()=>Promise.resolve(),c=t.variantChildren&&t.variantChildren.size?(h=0)=>{const{delayChildren:f=0,staggerChildren:m,staggerDirection:p}=a;return K7(t,n,f+h,m,p,r)}:()=>Promise.resolve(),{when:d}=a;if(d){const[h,f]=d==="beforeChildren"?[o,c]:[c,o];return h().then(()=>f())}else return Promise.all([o(),c(r.delay)])}function K7(t,n,r=0,i=0,s=1,a){const o=[],c=(t.variantChildren.size-1)*i,d=s===1?(h=0)=>h*i:(h=0)=>c-h*i;return Array.from(t.variantChildren).sort(G7).forEach((h,f)=>{h.notify("AnimationStart",n),o.push(v0(h,n,{...a,delay:r+d(f)}).then(()=>h.notify("AnimationComplete",n)))}),Promise.all(o)}function G7(t,n){return t.sortNodePosition(n)}function Q7(t,n,r={}){t.notify("AnimationStart",n);let i;if(Array.isArray(n)){const s=n.map(a=>v0(t,a,r));i=Promise.all(s)}else if(typeof n=="string")i=v0(t,n,r);else{const s=typeof n=="function"?_f(t,n,r.custom):n;i=Promise.all(vE(t,s,r))}return i.then(()=>{t.notify("AnimationComplete",n)})}const Y7=Sy.length;function yE(t){if(!t)return;if(!t.isControllingVariants){const r=t.parent?yE(t.parent)||{}:{};return t.props.initial!==void 0&&(r.initial=t.props.initial),r}const n={};for(let r=0;r<Y7;r++){const i=Sy[r],s=t.props[i];(cu(s)||s===!1)&&(n[i]=s)}return n}const X7=[..._y].reverse(),J7=_y.length;function Z7(t){return n=>Promise.all(n.map(({animation:r,options:i})=>Q7(t,r,i)))}function e9(t){let n=Z7(t),r=ak(),i=!0;const s=d=>(h,f)=>{var m;const p=_f(t,f,d==="exit"?(m=t.presenceContext)===null||m===void 0?void 0:m.custom:void 0);if(p){const{transition:g,transitionEnd:y,...j}=p;h={...h,...j,...y}}return h};function a(d){n=d(t)}function o(d){const{props:h}=t,f=yE(t.parent)||{},m=[],p=new Set;let g={},y=1/0;for(let v=0;v<J7;v++){const x=X7[v],N=r[x],w=h[x]!==void 0?h[x]:f[x],k=cu(w),A=x===d?N.isActive:null;A===!1&&(y=v);let S=w===f[x]&&w!==h[x]&&k;if(S&&i&&t.manuallyAnimateOnMount&&(S=!1),N.protectedKeys={...g},!N.isActive&&A===null||!w&&!N.prevProp||Nf(w)||typeof w=="boolean")continue;const E=t9(N.prevProp,w);let C=E||x===d&&N.isActive&&!S&&k||v>y&&k,B=!1;const F=Array.isArray(w)?w:[w];let I=F.reduce(s(x),{});A===!1&&(I={});const{prevResolvedValues:R={}}=N,z={...R,...I},q=H=>{C=!0,p.has(H)&&(B=!0,p.delete(H)),N.needsAnimating[H]=!0;const K=t.getValue(H);K&&(K.liveStyle=!1)};for(const H in z){const K=I[H],Y=R[H];if(g.hasOwnProperty(H))continue;let P=!1;l0(K)&&l0(Y)?P=!DC(K,Y):P=K!==Y,P?K!=null?q(H):p.add(H):K!==void 0&&p.has(H)?q(H):N.protectedKeys[H]=!0}N.prevProp=w,N.prevResolvedValues=I,N.isActive&&(g={...g,...I}),i&&t.blockInitialAnimation&&(C=!1),C&&(!(S&&E)||B)&&m.push(...F.map(H=>({animation:H,options:{type:x}})))}if(p.size){const v={};p.forEach(x=>{const N=t.getBaseTarget(x),w=t.getValue(x);w&&(w.liveStyle=!0),v[x]=N??null}),m.push({animation:v})}let j=!!m.length;return i&&(h.initial===!1||h.initial===h.animate)&&!t.manuallyAnimateOnMount&&(j=!1),i=!1,j?n(m):Promise.resolve()}function c(d,h){var f;if(r[d].isActive===h)return Promise.resolve();(f=t.variantChildren)===null||f===void 0||f.forEach(p=>{var g;return(g=p.animationState)===null||g===void 0?void 0:g.setActive(d,h)}),r[d].isActive=h;const m=o(d);for(const p in r)r[p].protectedKeys={};return m}return{animateChanges:o,setActive:c,setAnimateFunction:a,getState:()=>r,reset:()=>{r=ak(),i=!0}}}function t9(t,n){return typeof n=="string"?n!==t:Array.isArray(n)?!DC(n,t):!1}function ba(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ak(){return{animate:ba(!0),whileInView:ba(),whileHover:ba(),whileTap:ba(),whileDrag:ba(),whileFocus:ba(),exit:ba()}}class Zs{constructor(n){this.isMounted=!1,this.node=n}update(){}}class n9 extends Zs{constructor(n){super(n),n.animationState||(n.animationState=e9(n))}updateAnimationControlsSubscription(){const{animate:n}=this.node.getProps();Nf(n)&&(this.unmountControls=n.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:n}=this.node.getProps(),{animate:r}=this.node.prevProps||{};n!==r&&this.updateAnimationControlsSubscription()}unmount(){var n;this.node.animationState.reset(),(n=this.unmountControls)===null||n===void 0||n.call(this)}}let r9=0;class i9 extends Zs{constructor(){super(...arguments),this.id=r9++}update(){if(!this.node.presenceContext)return;const{isPresent:n,onExitComplete:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||n===i)return;const s=this.node.animationState.setActive("exit",!n);r&&!n&&s.then(()=>r(this.id))}mount(){const{register:n}=this.node.presenceContext||{};n&&(this.unmount=n(this.id))}unmount(){}}const s9={animation:{Feature:n9},exit:{Feature:i9}};function fu(t,n,r,i={passive:!0}){return t.addEventListener(n,r,i),()=>t.removeEventListener(n,r)}function Mu(t){return{point:{x:t.pageX,y:t.pageY}}}const a9=t=>n=>qy(n)&&t(n,Mu(n));function Kc(t,n,r,i){return fu(t,n,a9(r),i)}const ok=(t,n)=>Math.abs(t-n);function o9(t,n){const r=ok(t.x,n.x),i=ok(t.y,n.y);return Math.sqrt(r**2+i**2)}class bE{constructor(n,r,{transformPagePoint:i,contextWindow:s,dragSnapToOrigin:a=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=cg(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,g=o9(m.offset,{x:0,y:0})>=3;if(!p&&!g)return;const{point:y}=m,{timestamp:j}=_n;this.history.push({...y,timestamp:j});const{onStart:v,onMove:x}=this.handlers;p||(v&&v(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,m)},this.handlePointerMove=(m,p)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=lg(p,this.transformPagePoint),zt.update(this.updatePoint,!0)},this.handlePointerUp=(m,p)=>{this.end();const{onEnd:g,onSessionEnd:y,resumeAnimation:j}=this.handlers;if(this.dragSnapToOrigin&&j&&j(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=cg(m.type==="pointercancel"?this.lastMoveEventInfo:lg(p,this.transformPagePoint),this.history);this.startEvent&&g&&g(m,v),y&&y(m,v)},!qy(n))return;this.dragSnapToOrigin=a,this.handlers=r,this.transformPagePoint=i,this.contextWindow=s||window;const o=Mu(n),c=lg(o,this.transformPagePoint),{point:d}=c,{timestamp:h}=_n;this.history=[{...d,timestamp:h}];const{onSessionStart:f}=r;f&&f(n,cg(c,this.history)),this.removeListeners=Fu(Kc(this.contextWindow,"pointermove",this.handlePointerMove),Kc(this.contextWindow,"pointerup",this.handlePointerUp),Kc(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(n){this.handlers=n}end(){this.removeListeners&&this.removeListeners(),Ks(this.updatePoint)}}function lg(t,n){return n?{point:n(t.point)}:t}function lk(t,n){return{x:t.x-n.x,y:t.y-n.y}}function cg({point:t},n){return{point:t,delta:lk(t,jE(n)),offset:lk(t,l9(n)),velocity:c9(n,.1)}}function l9(t){return t[0]}function jE(t){return t[t.length-1]}function c9(t,n){if(t.length<2)return{x:0,y:0};let r=t.length-1,i=null;const s=jE(t);for(;r>=0&&(i=t[r],!(s.timestamp-i.timestamp>Ui(n)));)r--;if(!i)return{x:0,y:0};const a=$i(s.timestamp-i.timestamp);if(a===0)return{x:0,y:0};const o={x:(s.x-i.x)/a,y:(s.y-i.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const wE=1e-4,u9=1-wE,d9=1+wE,NE=.01,h9=0-NE,f9=0+NE;function gr(t){return t.max-t.min}function m9(t,n,r){return Math.abs(t-n)<=r}function ck(t,n,r,i=.5){t.origin=i,t.originPoint=Qt(n.min,n.max,t.origin),t.scale=gr(r)/gr(n),t.translate=Qt(r.min,r.max,t.origin)-t.originPoint,(t.scale>=u9&&t.scale<=d9||isNaN(t.scale))&&(t.scale=1),(t.translate>=h9&&t.translate<=f9||isNaN(t.translate))&&(t.translate=0)}function Gc(t,n,r,i){ck(t.x,n.x,r.x,i?i.originX:void 0),ck(t.y,n.y,r.y,i?i.originY:void 0)}function uk(t,n,r){t.min=r.min+n.min,t.max=t.min+gr(n)}function p9(t,n,r){uk(t.x,n.x,r.x),uk(t.y,n.y,r.y)}function dk(t,n,r){t.min=n.min-r.min,t.max=t.min+gr(n)}function Qc(t,n,r){dk(t.x,n.x,r.x),dk(t.y,n.y,r.y)}function g9(t,{min:n,max:r},i){return n!==void 0&&t<n?t=i?Qt(n,t,i.min):Math.max(t,n):r!==void 0&&t>r&&(t=i?Qt(r,t,i.max):Math.min(t,r)),t}function hk(t,n,r){return{min:n!==void 0?t.min+n:void 0,max:r!==void 0?t.max+r-(t.max-t.min):void 0}}function x9(t,{top:n,left:r,bottom:i,right:s}){return{x:hk(t.x,r,s),y:hk(t.y,n,i)}}function fk(t,n){let r=n.min-t.min,i=n.max-t.max;return n.max-n.min<t.max-t.min&&([r,i]=[i,r]),{min:r,max:i}}function v9(t,n){return{x:fk(t.x,n.x),y:fk(t.y,n.y)}}function y9(t,n){let r=.5;const i=gr(t),s=gr(n);return s>i?r=hl(n.min,n.max-i,t.min):i>s&&(r=hl(t.min,t.max-s,n.min)),Gi(0,1,r)}function b9(t,n){const r={};return n.min!==void 0&&(r.min=n.min-t.min),n.max!==void 0&&(r.max=n.max-t.min),r}const y0=.35;function j9(t=y0){return t===!1?t=0:t===!0&&(t=y0),{x:mk(t,"left","right"),y:mk(t,"top","bottom")}}function mk(t,n,r){return{min:pk(t,n),max:pk(t,r)}}function pk(t,n){return typeof t=="number"?t:t[n]||0}const gk=()=>({translate:0,scale:1,origin:0,originPoint:0}),Vo=()=>({x:gk(),y:gk()}),xk=()=>({min:0,max:0}),rn=()=>({x:xk(),y:xk()});function kr(t){return[t("x"),t("y")]}function kE({top:t,left:n,right:r,bottom:i}){return{x:{min:n,max:r},y:{min:t,max:i}}}function w9({x:t,y:n}){return{top:n.min,right:t.max,bottom:n.max,left:t.min}}function N9(t,n){if(!n)return t;const r=n({x:t.left,y:t.top}),i=n({x:t.right,y:t.bottom});return{top:r.y,left:r.x,bottom:i.y,right:i.x}}function ug(t){return t===void 0||t===1}function b0({scale:t,scaleX:n,scaleY:r}){return!ug(t)||!ug(n)||!ug(r)}function Na(t){return b0(t)||_E(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function _E(t){return vk(t.x)||vk(t.y)}function vk(t){return t&&t!=="0%"}function Jh(t,n,r){const i=t-r,s=n*i;return r+s}function yk(t,n,r,i,s){return s!==void 0&&(t=Jh(t,s,i)),Jh(t,r,i)+n}function j0(t,n=0,r=1,i,s){t.min=yk(t.min,n,r,i,s),t.max=yk(t.max,n,r,i,s)}function SE(t,{x:n,y:r}){j0(t.x,n.translate,n.scale,n.originPoint),j0(t.y,r.translate,r.scale,r.originPoint)}const bk=.999999999999,jk=1.0000000000001;function k9(t,n,r,i=!1){const s=r.length;if(!s)return;n.x=n.y=1;let a,o;for(let c=0;c<s;c++){a=r[c],o=a.projectionDelta;const{visualElement:d}=a.options;d&&d.props.style&&d.props.style.display==="contents"||(i&&a.options.layoutScroll&&a.scroll&&a!==a.root&&$o(t,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),o&&(n.x*=o.x.scale,n.y*=o.y.scale,SE(t,o)),i&&Na(a.latestValues)&&$o(t,a.latestValues))}n.x<jk&&n.x>bk&&(n.x=1),n.y<jk&&n.y>bk&&(n.y=1)}function Uo(t,n){t.min=t.min+n,t.max=t.max+n}function wk(t,n,r,i,s=.5){const a=Qt(t.min,t.max,s);j0(t,n,r,a,i)}function $o(t,n){wk(t.x,n.x,n.scaleX,n.scale,n.originX),wk(t.y,n.y,n.scaleY,n.scale,n.originY)}function AE(t,n){return kE(N9(t.getBoundingClientRect(),n))}function _9(t,n,r){const i=AE(t,r),{scroll:s}=n;return s&&(Uo(i.x,s.offset.x),Uo(i.y,s.offset.y)),i}const CE=({current:t})=>t?t.ownerDocument.defaultView:null,S9=new WeakMap;class A9{constructor(n){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=rn(),this.visualElement=n}start(n,{snapToCursor:r=!1}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const s=f=>{const{dragSnapToOrigin:m}=this.getProps();m?this.pauseAnimation():this.stopAnimation(),r&&this.snapToCursor(Mu(f).point)},a=(f,m)=>{const{drag:p,dragPropagation:g,onDragStart:y}=this.getProps();if(p&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=vz(p),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),kr(v=>{let x=this.getAxisMotionValue(v).get()||0;if(gi.test(x)){const{projection:N}=this.visualElement;if(N&&N.layout){const w=N.layout.layoutBox[v];w&&(x=gr(w)*(parseFloat(x)/100))}}this.originPoint[v]=x}),y&&zt.postRender(()=>y(f,m)),d0(this.visualElement,"transform");const{animationState:j}=this.visualElement;j&&j.setActive("whileDrag",!0)},o=(f,m)=>{const{dragPropagation:p,dragDirectionLock:g,onDirectionLock:y,onDrag:j}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:v}=m;if(g&&this.currentDirection===null){this.currentDirection=C9(v),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",m.point,v),this.updateAxis("y",m.point,v),this.visualElement.render(),j&&j(f,m)},c=(f,m)=>this.stop(f,m),d=()=>kr(f=>{var m;return this.getAnimationState(f)==="paused"&&((m=this.getAxisMotionValue(f).animation)===null||m===void 0?void 0:m.play())}),{dragSnapToOrigin:h}=this.getProps();this.panSession=new bE(n,{onSessionStart:s,onStart:a,onMove:o,onSessionEnd:c,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,contextWindow:CE(this.visualElement)})}stop(n,r){const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:s}=r;this.startAnimation(s);const{onDragEnd:a}=this.getProps();a&&zt.postRender(()=>a(n,r))}cancel(){this.isDragging=!1;const{projection:n,animationState:r}=this.visualElement;n&&(n.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(n,r,i){const{drag:s}=this.getProps();if(!i||!uh(n,s,this.currentDirection))return;const a=this.getAxisMotionValue(n);let o=this.originPoint[n]+i[n];this.constraints&&this.constraints[n]&&(o=g9(o,this.constraints[n],this.elastic[n])),a.set(o)}resolveConstraints(){var n;const{dragConstraints:r,dragElastic:i}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(n=this.visualElement.projection)===null||n===void 0?void 0:n.layout,a=this.constraints;r&&zo(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&s?this.constraints=x9(s.layoutBox,r):this.constraints=!1,this.elastic=j9(i),a!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&kr(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=b9(s.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:n,onMeasureDragConstraints:r}=this.getProps();if(!n||!zo(n))return!1;const i=n.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const a=_9(i,s.root,this.visualElement.getTransformPagePoint());let o=v9(s.layout.layoutBox,a);if(r){const c=r(w9(o));this.hasMutatedConstraints=!!c,c&&(o=kE(c))}return o}startAnimation(n){const{drag:r,dragMomentum:i,dragElastic:s,dragTransition:a,dragSnapToOrigin:o,onDragTransitionEnd:c}=this.getProps(),d=this.constraints||{},h=kr(f=>{if(!uh(f,r,this.currentDirection))return;let m=d&&d[f]||{};o&&(m={min:0,max:0});const p=s?200:1e6,g=s?40:1e7,y={type:"inertia",velocity:i?n[f]:0,bounceStiffness:p,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...a,...m};return this.startAxisValueAnimation(f,y)});return Promise.all(h).then(c)}startAxisValueAnimation(n,r){const i=this.getAxisMotionValue(n);return d0(this.visualElement,n),i.start(Zy(n,i,0,r,this.visualElement,!1))}stopAnimation(){kr(n=>this.getAxisMotionValue(n).stop())}pauseAnimation(){kr(n=>{var r;return(r=this.getAxisMotionValue(n).animation)===null||r===void 0?void 0:r.pause()})}getAnimationState(n){var r;return(r=this.getAxisMotionValue(n).animation)===null||r===void 0?void 0:r.state}getAxisMotionValue(n){const r=`_drag${n.toUpperCase()}`,i=this.visualElement.getProps(),s=i[r];return s||this.visualElement.getValue(n,(i.initial?i.initial[n]:void 0)||0)}snapToCursor(n){kr(r=>{const{drag:i}=this.getProps();if(!uh(r,i,this.currentDirection))return;const{projection:s}=this.visualElement,a=this.getAxisMotionValue(r);if(s&&s.layout){const{min:o,max:c}=s.layout.layoutBox[r];a.set(n[r]-Qt(o,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:n,dragConstraints:r}=this.getProps(),{projection:i}=this.visualElement;if(!zo(r)||!i||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};kr(o=>{const c=this.getAxisMotionValue(o);if(c&&this.constraints!==!1){const d=c.get();s[o]=y9({min:d,max:d},this.constraints[o])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),kr(o=>{if(!uh(o,n,null))return;const c=this.getAxisMotionValue(o),{min:d,max:h}=this.constraints[o];c.set(Qt(d,h,s[o]))})}addListeners(){if(!this.visualElement.current)return;S9.set(this.visualElement,this);const n=this.visualElement.current,r=Kc(n,"pointerdown",d=>{const{drag:h,dragListener:f=!0}=this.getProps();h&&f&&this.start(d)}),i=()=>{const{dragConstraints:d}=this.getProps();zo(d)&&d.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,a=s.addEventListener("measure",i);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),zt.read(i);const o=fu(window,"resize",()=>this.scalePositionWithinConstraints()),c=s.addEventListener("didUpdate",(({delta:d,hasLayoutChanged:h})=>{this.isDragging&&h&&(kr(f=>{const m=this.getAxisMotionValue(f);m&&(this.originPoint[f]+=d[f].translate,m.set(m.get()+d[f].translate))}),this.visualElement.render())}));return()=>{o(),r(),a(),c&&c()}}getProps(){const n=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:a=!1,dragElastic:o=y0,dragMomentum:c=!0}=n;return{...n,drag:r,dragDirectionLock:i,dragPropagation:s,dragConstraints:a,dragElastic:o,dragMomentum:c}}}function uh(t,n,r){return(n===!0||n===t)&&(r===null||r===t)}function C9(t,n=10){let r=null;return Math.abs(t.y)>n?r="y":Math.abs(t.x)>n&&(r="x"),r}class E9 extends Zs{constructor(n){super(n),this.removeGroupControls=fr,this.removeListeners=fr,this.controls=new A9(n)}mount(){const{dragControls:n}=this.node.getProps();n&&(this.removeGroupControls=n.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||fr}unmount(){this.removeGroupControls(),this.removeListeners()}}const Nk=t=>(n,r)=>{t&&zt.postRender(()=>t(n,r))};class T9 extends Zs{constructor(){super(...arguments),this.removePointerDownListener=fr}onPointerDown(n){this.session=new bE(n,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:CE(this.node)})}createPanHandlers(){const{onPanSessionStart:n,onPanStart:r,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:Nk(n),onStart:Nk(r),onMove:i,onEnd:(a,o)=>{delete this.session,s&&zt.postRender(()=>s(a,o))}}}mount(){this.removePointerDownListener=Kc(this.node.current,"pointerdown",n=>this.onPointerDown(n))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function O9(){const t=D.useContext(jf);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,s=D.useId();D.useEffect(()=>i(s),[]);const a=D.useCallback(()=>r&&r(s),[s,r]);return!n&&r?[!1,a]:[!0]}const Rh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function kk(t,n){return n.max===n.min?0:t/(n.max-n.min)*100}const kc={correct:(t,n)=>{if(!n.target)return t;if(typeof t=="string")if(Ye.test(t))t=parseFloat(t);else return t;const r=kk(t,n.target.x),i=kk(t,n.target.y);return`${r}% ${i}%`}},P9={correct:(t,{treeScale:n,projectionDelta:r})=>{const i=t,s=Gs.parse(t);if(s.length>5)return i;const a=Gs.createTransformer(t),o=typeof s[0]!="number"?1:0,c=r.x.scale*n.x,d=r.y.scale*n.y;s[0+o]/=c,s[1+o]/=d;const h=Qt(c,d,.5);return typeof s[2+o]=="number"&&(s[2+o]/=h),typeof s[3+o]=="number"&&(s[3+o]/=h),a(s)}};class D9 extends D.Component{componentDidMount(){const{visualElement:n,layoutGroup:r,switchLayoutGroup:i,layoutId:s}=this.props,{projection:a}=n;RB(I9),a&&(r.group&&r.group.add(a),i&&i.register&&s&&i.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),Rh.hasEverUpdated=!0}getSnapshotBeforeUpdate(n){const{layoutDependency:r,visualElement:i,drag:s,isPresent:a}=this.props,o=i.projection;return o&&(o.isPresent=a,s||n.layoutDependency!==r||r===void 0?o.willUpdate():this.safeToRemove(),n.isPresent!==a&&(a?o.promote():o.relegate()||zt.postRender(()=>{const c=o.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:n}=this.props.visualElement;n&&(n.root.didUpdate(),Cy.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:n,layoutGroup:r,switchLayoutGroup:i}=this.props,{projection:s}=n;s&&(s.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){const{safeToRemove:n}=this.props;n&&n()}render(){return null}}function EE(t){const[n,r]=O9(),i=D.useContext(wy);return e.jsx(D9,{...t,layoutGroup:i,switchLayoutGroup:D.useContext(bC),isPresent:n,safeToRemove:r})}const I9={borderRadius:{...kc,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:kc,borderTopRightRadius:kc,borderBottomLeftRadius:kc,borderBottomRightRadius:kc,boxShadow:P9};function R9(t,n,r){const i=In(t)?t:du(t);return i.start(Zy("",i,n,r)),i.animation}function F9(t){return t instanceof SVGElement&&t.tagName!=="svg"}const M9=(t,n)=>t.depth-n.depth;class L9{constructor(){this.children=[],this.isDirty=!1}add(n){Vy(this.children,n),this.isDirty=!0}remove(n){Uy(this.children,n),this.isDirty=!0}forEach(n){this.isDirty&&this.children.sort(M9),this.isDirty=!1,this.children.forEach(n)}}function B9(t,n){const r=xi.now(),i=({timestamp:s})=>{const a=s-r;a>=n&&(Ks(i),t(a-n))};return zt.read(i,!0),()=>Ks(i)}const TE=["TopLeft","TopRight","BottomLeft","BottomRight"],z9=TE.length,_k=t=>typeof t=="string"?parseFloat(t):t,Sk=t=>typeof t=="number"||Ye.test(t);function q9(t,n,r,i,s,a){s?(t.opacity=Qt(0,r.opacity!==void 0?r.opacity:1,V9(i)),t.opacityExit=Qt(n.opacity!==void 0?n.opacity:1,0,U9(i))):a&&(t.opacity=Qt(n.opacity!==void 0?n.opacity:1,r.opacity!==void 0?r.opacity:1,i));for(let o=0;o<z9;o++){const c=`border${TE[o]}Radius`;let d=Ak(n,c),h=Ak(r,c);if(d===void 0&&h===void 0)continue;d||(d=0),h||(h=0),d===0||h===0||Sk(d)===Sk(h)?(t[c]=Math.max(Qt(_k(d),_k(h),i),0),(gi.test(h)||gi.test(d))&&(t[c]+="%")):t[c]=h}(n.rotate||r.rotate)&&(t.rotate=Qt(n.rotate||0,r.rotate||0,i))}function Ak(t,n){return t[n]!==void 0?t[n]:t.borderRadius}const V9=OE(0,.5,QC),U9=OE(.5,.95,fr);function OE(t,n,r){return i=>i<t?0:i>n?1:r(hl(t,n,i))}function Ck(t,n){t.min=n.min,t.max=n.max}function Nr(t,n){Ck(t.x,n.x),Ck(t.y,n.y)}function Ek(t,n){t.translate=n.translate,t.scale=n.scale,t.originPoint=n.originPoint,t.origin=n.origin}function Tk(t,n,r,i,s){return t-=n,t=Jh(t,1/r,i),s!==void 0&&(t=Jh(t,1/s,i)),t}function $9(t,n=0,r=1,i=.5,s,a=t,o=t){if(gi.test(n)&&(n=parseFloat(n),n=Qt(o.min,o.max,n/100)-o.min),typeof n!="number")return;let c=Qt(a.min,a.max,i);t===a&&(c-=n),t.min=Tk(t.min,n,r,c,s),t.max=Tk(t.max,n,r,c,s)}function Ok(t,n,[r,i,s],a,o){$9(t,n[r],n[i],n[s],n.scale,a,o)}const H9=["x","scaleX","originX"],W9=["y","scaleY","originY"];function Pk(t,n,r,i){Ok(t.x,n,H9,r?r.x:void 0,i?i.x:void 0),Ok(t.y,n,W9,r?r.y:void 0,i?i.y:void 0)}function Dk(t){return t.translate===0&&t.scale===1}function PE(t){return Dk(t.x)&&Dk(t.y)}function Ik(t,n){return t.min===n.min&&t.max===n.max}function K9(t,n){return Ik(t.x,n.x)&&Ik(t.y,n.y)}function Rk(t,n){return Math.round(t.min)===Math.round(n.min)&&Math.round(t.max)===Math.round(n.max)}function DE(t,n){return Rk(t.x,n.x)&&Rk(t.y,n.y)}function Fk(t){return gr(t.x)/gr(t.y)}function Mk(t,n){return t.translate===n.translate&&t.scale===n.scale&&t.originPoint===n.originPoint}class G9{constructor(){this.members=[]}add(n){Vy(this.members,n),n.scheduleRender()}remove(n){if(Uy(this.members,n),n===this.prevLead&&(this.prevLead=void 0),n===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(n){const r=this.members.findIndex(s=>n===s);if(r===0)return!1;let i;for(let s=r;s>=0;s--){const a=this.members[s];if(a.isPresent!==!1){i=a;break}}return i?(this.promote(i),!0):!1}promote(n,r){const i=this.lead;if(n!==i&&(this.prevLead=i,this.lead=n,n.show(),i)){i.instance&&i.scheduleRender(),n.scheduleRender(),n.resumeFrom=i,r&&(n.resumeFrom.preserveOpacity=!0),i.snapshot&&(n.snapshot=i.snapshot,n.snapshot.latestValues=i.animationValues||i.latestValues),n.root&&n.root.isUpdating&&(n.isLayoutDirty=!0);const{crossfade:s}=n.options;s===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(n=>{const{options:r,resumingFrom:i}=n;r.onExitComplete&&r.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(n=>{n.instance&&n.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Q9(t,n,r){let i="";const s=t.x.translate/n.x,a=t.y.translate/n.y,o=(r==null?void 0:r.z)||0;if((s||a||o)&&(i=`translate3d(${s}px, ${a}px, ${o}px) `),(n.x!==1||n.y!==1)&&(i+=`scale(${1/n.x}, ${1/n.y}) `),r){const{transformPerspective:h,rotate:f,rotateX:m,rotateY:p,skewX:g,skewY:y}=r;h&&(i=`perspective(${h}px) ${i}`),f&&(i+=`rotate(${f}deg) `),m&&(i+=`rotateX(${m}deg) `),p&&(i+=`rotateY(${p}deg) `),g&&(i+=`skewX(${g}deg) `),y&&(i+=`skewY(${y}deg) `)}const c=t.x.scale*n.x,d=t.y.scale*n.y;return(c!==1||d!==1)&&(i+=`scale(${c}, ${d})`),i||"none"}const ka={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Bc=typeof window<"u"&&window.MotionDebug!==void 0,dg=["","X","Y","Z"],Y9={visibility:"hidden"},Lk=1e3;let X9=0;function hg(t,n,r,i){const{latestValues:s}=n;s[t]&&(r[t]=s[t],n.setStaticValue(t,0),i&&(i[t]=0))}function IE(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:n}=t.options;if(!n)return;const r=VC(n);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:s,layoutId:a}=t.options;window.MotionCancelOptimisedAnimation(r,"transform",zt,!(s||a))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&IE(i)}function RE({attachResizeListener:t,defaultParent:n,measureScroll:r,checkIsScrollRoot:i,resetTransform:s}){return class{constructor(o={},c=n==null?void 0:n()){this.id=X9++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Bc&&(ka.totalNodes=ka.resolvedTargetDeltas=ka.recalculatedProjection=0),this.nodes.forEach(eq),this.nodes.forEach(sq),this.nodes.forEach(aq),this.nodes.forEach(tq),Bc&&window.MotionDebug.record(ka)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let d=0;d<this.path.length;d++)this.path[d].shouldResetTransform=!0;this.root===this&&(this.nodes=new L9)}addEventListener(o,c){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new $y),this.eventHandlers.get(o).add(c)}notifyListeners(o,...c){const d=this.eventHandlers.get(o);d&&d.notify(...c)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=F9(o),this.instance=o;const{layoutId:d,layout:h,visualElement:f}=this.options;if(f&&!f.current&&f.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(h||d)&&(this.isLayoutDirty=!0),t){let m;const p=()=>this.root.updateBlockedByResize=!1;t(o,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=B9(p,250),Rh.hasAnimatedSinceResize&&(Rh.hasAnimatedSinceResize=!1,this.nodes.forEach(zk))})}d&&this.root.registerSharedNode(d,this),this.options.animate!==!1&&f&&(d||h)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:p,hasRelativeTargetChanged:g,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const j=this.options.transition||f.getDefaultTransition()||dq,{onLayoutAnimationStart:v,onLayoutAnimationComplete:x}=f.getProps(),N=!this.targetLayout||!DE(this.targetLayout,y)||g,w=!p&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||w||p&&(N||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,w);const k={...Ly(j,"layout"),onPlay:v,onComplete:x};(f.shouldReduceMotion||this.options.layoutRoot)&&(k.delay=0,k.type=!1),this.startAnimation(k)}else p||zk(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Ks(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(oq),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&IE(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let f=0;f<this.path.length;f++){const m=this.path[f];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:c,layout:d}=this.options;if(c===void 0&&!d)return;const h=this.getTransformTemplate();this.prevTransformTemplateValue=h?h(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Bk);return}this.isUpdating||this.nodes.forEach(rq),this.isUpdating=!1,this.nodes.forEach(iq),this.nodes.forEach(J9),this.nodes.forEach(Z9),this.clearAllSnapshots();const c=xi.now();_n.delta=Gi(0,1e3/60,c-_n.timestamp),_n.timestamp=c,_n.isProcessing=!0,ng.update.process(_n),ng.preRender.process(_n),ng.render.process(_n),_n.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Cy.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(nq),this.sharedNodes.forEach(lq)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,zt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){zt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let d=0;d<this.path.length;d++)this.path[d].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=rn(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(c=!1),c){const d=i(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:d,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:d}}}resetTransform(){if(!s)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!PE(this.projectionDelta),d=this.getTransformTemplate(),h=d?d(this.latestValues,""):void 0,f=h!==this.prevTransformTemplateValue;o&&(c||Na(this.latestValues)||f)&&(s(this.instance,h),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const c=this.measurePageBox();let d=this.removeElementScroll(c);return o&&(d=this.removeTransform(d)),hq(d),{animationId:this.root.animationId,measuredBox:c,layoutBox:d,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:c}=this.options;if(!c)return rn();const d=c.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some(fq))){const{scroll:f}=this.root;f&&(Uo(d.x,f.offset.x),Uo(d.y,f.offset.y))}return d}removeElementScroll(o){var c;const d=rn();if(Nr(d,o),!((c=this.scroll)===null||c===void 0)&&c.wasRoot)return d;for(let h=0;h<this.path.length;h++){const f=this.path[h],{scroll:m,options:p}=f;f!==this.root&&m&&p.layoutScroll&&(m.wasRoot&&Nr(d,o),Uo(d.x,m.offset.x),Uo(d.y,m.offset.y))}return d}applyTransform(o,c=!1){const d=rn();Nr(d,o);for(let h=0;h<this.path.length;h++){const f=this.path[h];!c&&f.options.layoutScroll&&f.scroll&&f!==f.root&&$o(d,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),Na(f.latestValues)&&$o(d,f.latestValues)}return Na(this.latestValues)&&$o(d,this.latestValues),d}removeTransform(o){const c=rn();Nr(c,o);for(let d=0;d<this.path.length;d++){const h=this.path[d];if(!h.instance||!Na(h.latestValues))continue;b0(h.latestValues)&&h.updateSnapshot();const f=rn(),m=h.measurePageBox();Nr(f,m),Pk(c,h.latestValues,h.snapshot?h.snapshot.layoutBox:void 0,f)}return Na(this.latestValues)&&Pk(c,this.latestValues),c}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==_n.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var c;const d=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=d.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=d.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=d.isSharedProjectionDirty);const h=!!this.resumingFrom||this!==d;if(!(o||h&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:p}=this.options;if(!(!this.layout||!(m||p))){if(this.resolvedRelativeTargetAt=_n.timestamp,!this.targetDelta&&!this.relativeTarget){const g=this.getClosestProjectingParent();g&&g.layout&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=rn(),this.relativeTargetOrigin=rn(),Qc(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),Nr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=rn(),this.targetWithTransforms=rn()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),p9(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Nr(this.target,this.layout.layoutBox),SE(this.target,this.targetDelta)):Nr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const g=this.getClosestProjectingParent();g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=rn(),this.relativeTargetOrigin=rn(),Qc(this.relativeTargetOrigin,this.target,g.target),Nr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Bc&&ka.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||b0(this.parent.latestValues)||_E(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var o;const c=this.getLead(),d=!!this.resumingFrom||this!==c;let h=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(h=!1),d&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(h=!1),this.resolvedRelativeTargetAt===_n.timestamp&&(h=!1),h)return;const{layout:f,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(f||m))return;Nr(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,g=this.treeScale.y;k9(this.layoutCorrected,this.treeScale,this.path,d),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=rn());const{target:y}=c;if(!y){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Ek(this.prevProjectionDelta.x,this.projectionDelta.x),Ek(this.prevProjectionDelta.y,this.projectionDelta.y)),Gc(this.projectionDelta,this.layoutCorrected,y,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==g||!Mk(this.projectionDelta.x,this.prevProjectionDelta.x)||!Mk(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",y)),Bc&&ka.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var c;if((c=this.options.visualElement)===null||c===void 0||c.scheduleRender(),o){const d=this.getStack();d&&d.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Vo(),this.projectionDelta=Vo(),this.projectionDeltaWithTransform=Vo()}setAnimationOrigin(o,c=!1){const d=this.snapshot,h=d?d.latestValues:{},f={...this.latestValues},m=Vo();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const p=rn(),g=d?d.source:void 0,y=this.layout?this.layout.source:void 0,j=g!==y,v=this.getStack(),x=!v||v.members.length<=1,N=!!(j&&!x&&this.options.crossfade===!0&&!this.path.some(uq));this.animationProgress=0;let w;this.mixTargetDelta=k=>{const A=k/1e3;qk(m.x,o.x,A),qk(m.y,o.y,A),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Qc(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),cq(this.relativeTarget,this.relativeTargetOrigin,p,A),w&&K9(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=rn()),Nr(w,this.relativeTarget)),j&&(this.animationValues=f,q9(f,h,this.latestValues,A,N,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=A},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ks(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=zt.update(()=>{Rh.hasAnimatedSinceResize=!0,this.currentAnimation=R9(0,Lk,{...o,onUpdate:c=>{this.mixTargetDelta(c),o.onUpdate&&o.onUpdate(c)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Lk),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:c,target:d,layout:h,latestValues:f}=o;if(!(!c||!d||!h)){if(this!==o&&this.layout&&h&&FE(this.options.animationType,this.layout.layoutBox,h.layoutBox)){d=this.target||rn();const m=gr(this.layout.layoutBox.x);d.x.min=o.target.x.min,d.x.max=d.x.min+m;const p=gr(this.layout.layoutBox.y);d.y.min=o.target.y.min,d.y.max=d.y.min+p}Nr(c,d),$o(c,f),Gc(this.projectionDeltaWithTransform,this.layoutCorrected,c,f)}}registerSharedNode(o,c){this.sharedNodes.has(o)||this.sharedNodes.set(o,new G9),this.sharedNodes.get(o).add(c);const h=c.options.initialPromotionConfig;c.promote({transition:h?h.transition:void 0,preserveFollowOpacity:h&&h.shouldPreserveFollowOpacity?h.shouldPreserveFollowOpacity(c):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:c}=this.options;return c?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:c}=this.options;return c?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:c,preserveFollowOpacity:d}={}){const h=this.getStack();h&&h.promote(this,d),o&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let c=!1;const{latestValues:d}=o;if((d.z||d.rotate||d.rotateX||d.rotateY||d.rotateZ||d.skewX||d.skewY)&&(c=!0),!c)return;const h={};d.z&&hg("z",o,h,this.animationValues);for(let f=0;f<dg.length;f++)hg(`rotate${dg[f]}`,o,h,this.animationValues),hg(`skew${dg[f]}`,o,h,this.animationValues);o.render();for(const f in h)o.setStaticValue(f,h[f]),this.animationValues&&(this.animationValues[f]=h[f]);o.scheduleRender()}getProjectionStyles(o){var c,d;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Y9;const h={visibility:""},f=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,h.opacity="",h.pointerEvents=Dh(o==null?void 0:o.pointerEvents)||"",h.transform=f?f(this.latestValues,""):"none",h;const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){const j={};return this.options.layoutId&&(j.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,j.pointerEvents=Dh(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!Na(this.latestValues)&&(j.transform=f?f({},""):"none",this.hasProjected=!1),j}const p=m.animationValues||m.latestValues;this.applyTransformsToTarget(),h.transform=Q9(this.projectionDeltaWithTransform,this.treeScale,p),f&&(h.transform=f(p,h.transform));const{x:g,y}=this.projectionDelta;h.transformOrigin=`${g.origin*100}% ${y.origin*100}% 0`,m.animationValues?h.opacity=m===this?(d=(c=p.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&d!==void 0?d:1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:h.opacity=m===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const j in Kh){if(p[j]===void 0)continue;const{correct:v,applyTo:x}=Kh[j],N=h.transform==="none"?p[j]:v(p[j],m);if(x){const w=x.length;for(let k=0;k<w;k++)h[x[k]]=N}else h[j]=N}return this.options.layoutId&&(h.pointerEvents=m===this?Dh(o==null?void 0:o.pointerEvents)||"":"none"),h}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var c;return(c=o.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(Bk),this.root.sharedNodes.clear()}}}function J9(t){t.updateLayout()}function Z9(t){var n;const r=((n=t.resumeFrom)===null||n===void 0?void 0:n.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&r&&t.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:s}=t.layout,{animationType:a}=t.options,o=r.source!==t.layout.source;a==="size"?kr(m=>{const p=o?r.measuredBox[m]:r.layoutBox[m],g=gr(p);p.min=i[m].min,p.max=p.min+g}):FE(a,r.layoutBox,i)&&kr(m=>{const p=o?r.measuredBox[m]:r.layoutBox[m],g=gr(i[m]);p.max=p.min+g,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[m].max=t.relativeTarget[m].min+g)});const c=Vo();Gc(c,i,r.layoutBox);const d=Vo();o?Gc(d,t.applyTransform(s,!0),r.measuredBox):Gc(d,i,r.layoutBox);const h=!PE(c);let f=!1;if(!t.resumeFrom){const m=t.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:p,layout:g}=m;if(p&&g){const y=rn();Qc(y,r.layoutBox,p.layoutBox);const j=rn();Qc(j,i,g.layoutBox),DE(y,j)||(f=!0),m.options.layoutRoot&&(t.relativeTarget=j,t.relativeTargetOrigin=y,t.relativeParent=m)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:r,delta:d,layoutDelta:c,hasLayoutChanged:h,hasRelativeTargetChanged:f})}else if(t.isLead()){const{onExitComplete:i}=t.options;i&&i()}t.options.transition=void 0}function eq(t){Bc&&ka.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function tq(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function nq(t){t.clearSnapshot()}function Bk(t){t.clearMeasurements()}function rq(t){t.isLayoutDirty=!1}function iq(t){const{visualElement:n}=t.options;n&&n.getProps().onBeforeLayoutMeasure&&n.notify("BeforeLayoutMeasure"),t.resetTransform()}function zk(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function sq(t){t.resolveTargetDelta()}function aq(t){t.calcProjection()}function oq(t){t.resetSkewAndRotation()}function lq(t){t.removeLeadSnapshot()}function qk(t,n,r){t.translate=Qt(n.translate,0,r),t.scale=Qt(n.scale,1,r),t.origin=n.origin,t.originPoint=n.originPoint}function Vk(t,n,r,i){t.min=Qt(n.min,r.min,i),t.max=Qt(n.max,r.max,i)}function cq(t,n,r,i){Vk(t.x,n.x,r.x,i),Vk(t.y,n.y,r.y,i)}function uq(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const dq={duration:.45,ease:[.4,0,.1,1]},Uk=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),$k=Uk("applewebkit/")&&!Uk("chrome/")?Math.round:fr;function Hk(t){t.min=$k(t.min),t.max=$k(t.max)}function hq(t){Hk(t.x),Hk(t.y)}function FE(t,n,r){return t==="position"||t==="preserve-aspect"&&!m9(Fk(n),Fk(r),.2)}function fq(t){var n;return t!==t.root&&((n=t.scroll)===null||n===void 0?void 0:n.wasRoot)}const mq=RE({attachResizeListener:(t,n)=>fu(t,"resize",n),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),fg={current:void 0},ME=RE({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!fg.current){const t=new mq({});t.mount(window),t.setOptions({layoutScroll:!0}),fg.current=t}return fg.current},resetTransform:(t,n)=>{t.style.transform=n!==void 0?n:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),pq={pan:{Feature:T9},drag:{Feature:E9,ProjectionNode:ME,MeasureLayout:EE}};function Wk(t,n,r){const{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover",r==="Start");const s="onHover"+r,a=i[s];a&&zt.postRender(()=>a(n,Mu(n)))}class gq extends Zs{mount(){const{current:n}=this.node;n&&(this.unmount=fz(n,r=>(Wk(this.node,r,"Start"),i=>Wk(this.node,i,"End"))))}unmount(){}}class xq extends Zs{constructor(){super(...arguments),this.isActive=!1}onFocus(){let n=!1;try{n=this.node.current.matches(":focus-visible")}catch{n=!0}!n||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Fu(fu(this.node.current,"focus",()=>this.onFocus()),fu(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Kk(t,n,r){const{props:i}=t;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap",r==="Start");const s="onTap"+(r==="End"?"":r),a=i[s];a&&zt.postRender(()=>a(n,Mu(n)))}class vq extends Zs{mount(){const{current:n}=this.node;n&&(this.unmount=xz(n,r=>(Kk(this.node,r,"Start"),(i,{success:s})=>Kk(this.node,i,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const w0=new WeakMap,mg=new WeakMap,yq=t=>{const n=w0.get(t.target);n&&n(t)},bq=t=>{t.forEach(yq)};function jq({root:t,...n}){const r=t||document;mg.has(r)||mg.set(r,{});const i=mg.get(r),s=JSON.stringify(n);return i[s]||(i[s]=new IntersectionObserver(bq,{root:t,...n})),i[s]}function wq(t,n,r){const i=jq(n);return w0.set(t,r),i.observe(t),()=>{w0.delete(t),i.unobserve(t)}}const Nq={some:0,all:1};class kq extends Zs{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:n={}}=this.node.getProps(),{root:r,margin:i,amount:s="some",once:a}=n,o={root:r?r.current:void 0,rootMargin:i,threshold:typeof s=="number"?s:Nq[s]},c=d=>{const{isIntersecting:h}=d;if(this.isInView===h||(this.isInView=h,a&&!h&&this.hasEnteredView))return;h&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",h);const{onViewportEnter:f,onViewportLeave:m}=this.node.getProps(),p=h?f:m;p&&p(d)};return wq(this.node.current,o,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:n,prevProps:r}=this.node;["amount","margin","root"].some(_q(n,r))&&this.startObserver()}unmount(){}}function _q({viewport:t={}},{viewport:n={}}={}){return r=>t[r]!==n[r]}const Sq={inView:{Feature:kq},tap:{Feature:vq},focus:{Feature:xq},hover:{Feature:gq}},Aq={layout:{ProjectionNode:ME,MeasureLayout:EE}},N0={current:null},LE={current:!1};function Cq(){if(LE.current=!0,!!ky)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),n=()=>N0.current=t.matches;t.addListener(n),n()}else N0.current=!1}function Eq(t,n,r){for(const i in n){const s=n[i],a=r[i];if(In(s))t.addValue(i,s);else if(In(a))t.addValue(i,du(s,{owner:t}));else if(a!==s)if(t.hasValue(i)){const o=t.getValue(i);o.liveStyle===!0?o.jump(s):o.hasAnimated||o.set(s)}else{const o=t.getStaticValue(i);t.addValue(i,du(o!==void 0?o:s,{owner:t}))}}for(const i in r)n[i]===void 0&&t.removeValue(i);return n}const Gk=new WeakMap,Tq=[...tE,On,Gs],Oq=t=>Tq.find(eE(t)),Qk=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Pq{scrapeMotionValuesFromProps(n,r,i){return{}}constructor({parent:n,props:r,presenceContext:i,reducedMotionConfig:s,blockInitialAnimation:a,visualState:o},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Ky,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const p=xi.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,zt.render(this.render,!1,!0))};const{latestValues:d,renderState:h}=o;this.latestValues=d,this.baseTarget={...d},this.initialValues=r.initial?{...d}:{},this.renderState=h,this.parent=n,this.props=r,this.presenceContext=i,this.depth=n?n.depth+1:0,this.reducedMotionConfig=s,this.options=c,this.blockInitialAnimation=!!a,this.isControllingVariants=kf(r),this.isVariantNode=vC(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(n&&n.current);const{willChange:f,...m}=this.scrapeMotionValuesFromProps(r,{},this);for(const p in m){const g=m[p];d[p]!==void 0&&In(g)&&g.set(d[p],!1)}}mount(n){this.current=n,Gk.set(n,this),this.projection&&!this.projection.instance&&this.projection.mount(n),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,i)=>this.bindToMotionValue(i,r)),LE.current||Cq(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:N0.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Gk.delete(this.current),this.projection&&this.projection.unmount(),Ks(this.notifyUpdate),Ks(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}bindToMotionValue(n,r){this.valueSubscriptions.has(n)&&this.valueSubscriptions.get(n)();const i=to.has(n),s=r.on("change",c=>{this.latestValues[n]=c,this.props.onUpdate&&zt.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),a=r.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,n,r)),this.valueSubscriptions.set(n,()=>{s(),a(),o&&o(),r.owner&&r.stop()})}sortNodePosition(n){return!this.current||!this.sortInstanceNodePosition||this.type!==n.type?0:this.sortInstanceNodePosition(this.current,n.current)}updateFeatures(){let n="animation";for(n in fl){const r=fl[n];if(!r)continue;const{isEnabled:i,Feature:s}=r;if(!this.features[n]&&s&&i(this.props)&&(this.features[n]=new s(this)),this.features[n]){const a=this.features[n];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):rn()}getStaticValue(n){return this.latestValues[n]}setStaticValue(n,r){this.latestValues[n]=r}update(n,r){(n.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=n,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let i=0;i<Qk.length;i++){const s=Qk[i];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const a="on"+s,o=n[a];o&&(this.propEventSubscriptions[s]=this.on(s,o))}this.prevMotionValues=Eq(this,this.scrapeMotionValuesFromProps(n,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(n){return this.props.variants?this.props.variants[n]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(n){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(n),()=>r.variantChildren.delete(n)}addValue(n,r){const i=this.values.get(n);r!==i&&(i&&this.removeValue(n),this.bindToMotionValue(n,r),this.values.set(n,r),this.latestValues[n]=r.get())}removeValue(n){this.values.delete(n);const r=this.valueSubscriptions.get(n);r&&(r(),this.valueSubscriptions.delete(n)),delete this.latestValues[n],this.removeValueFromRenderState(n,this.renderState)}hasValue(n){return this.values.has(n)}getValue(n,r){if(this.props.values&&this.props.values[n])return this.props.values[n];let i=this.values.get(n);return i===void 0&&r!==void 0&&(i=du(r===null?void 0:r,{owner:this}),this.addValue(n,i)),i}readValue(n,r){var i;let s=this.latestValues[n]!==void 0||!this.current?this.latestValues[n]:(i=this.getBaseTargetFromProps(this.props,n))!==null&&i!==void 0?i:this.readValueFromInstance(this.current,n,this.options);return s!=null&&(typeof s=="string"&&(JC(s)||XC(s))?s=parseFloat(s):!Oq(s)&&Gs.test(r)&&(s=cE(n,r)),this.setBaseTarget(n,In(s)?s.get():s)),In(s)?s.get():s}setBaseTarget(n,r){this.baseTarget[n]=r}getBaseTarget(n){var r;const{initial:i}=this.props;let s;if(typeof i=="string"||typeof i=="object"){const o=Oy(this.props,i,(r=this.presenceContext)===null||r===void 0?void 0:r.custom);o&&(s=o[n])}if(i&&s!==void 0)return s;const a=this.getBaseTargetFromProps(this.props,n);return a!==void 0&&!In(a)?a:this.initialValues[n]!==void 0&&s===void 0?void 0:this.baseTarget[n]}on(n,r){return this.events[n]||(this.events[n]=new $y),this.events[n].add(r)}notify(n,...r){this.events[n]&&this.events[n].notify(...r)}}class BE extends Pq{constructor(){super(...arguments),this.KeyframeResolver=uE}sortInstanceNodePosition(n,r){return n.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(n,r){return n.style?n.style[r]:void 0}removeValueFromRenderState(n,{vars:r,style:i}){delete r[n],delete i[n]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:n}=this.props;In(n)&&(this.childSubscription=n.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}function Dq(t){return window.getComputedStyle(t)}class Iq extends BE{constructor(){super(...arguments),this.type="html",this.renderInstance=wC}readValueFromInstance(n,r){if(to.has(r)){const i=Yy(r);return i&&i.default||0}else{const i=Dq(n),s=(OC(r)?i.getPropertyValue(r):i[r])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(n,{transformPagePoint:r}){return AE(n,r)}build(n,r,i){Ry(n,r,i.transformTemplate)}scrapeMotionValuesFromProps(n,r,i){return Ty(n,r,i)}}class Rq extends BE{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=rn}getBaseTargetFromProps(n,r){return n[r]}readValueFromInstance(n,r){if(to.has(r)){const i=Yy(r);return i&&i.default||0}return r=NC.has(r)?r:Ay(r),n.getAttribute(r)}scrapeMotionValuesFromProps(n,r,i){return SC(n,r,i)}build(n,r,i){Fy(n,r,this.isSVGTag,i.transformTemplate)}renderInstance(n,r,i,s){kC(n,r,i,s)}mount(n){this.isSVGTag=My(n.tagName),super.mount(n)}}const Fq=(t,n)=>Ey(t)?new Rq(n):new Iq(n,{allowProjection:t!==D.Fragment}),Mq=az({...s9,...Sq,...pq,...Aq},Fq),Z=wB(Mq);function Lq(){const{data:t=[]}=Fe({queryKey:["pageSections","AIConsultancy"],queryFn:()=>ce.entities.PageSection.filter({page_name:"AIConsultancy",active:!0},"sort_order"),initialData:[]}),n=t.find(o=>o.section_key==="hero")||{},r=t.find(o=>o.section_key==="wat_we_bieden")||{},i=t.find(o=>o.section_key==="onze_aanpak")||{},s=t.find(o=>o.section_key==="cta")||{},a={Target:$a,Brain:SP,Briefcase:Js};return e.jsxs("div",{className:"pt-20",children:[e.jsxs("section",{className:"relative bg-white pt-32 pb-20 overflow-hidden",children:[e.jsx("div",{className:"absolute top-0 right-0 w-[600px] h-[600px] bg-[#FAB868]/5 rounded-full blur-3xl"}),e.jsx("div",{className:"relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"grid lg:grid-cols-2 gap-20 items-center",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"max-w-2xl",children:[e.jsx("h1",{className:"text-5xl sm:text-6xl lg:text-7xl font-bold text-[#0D0D0F] leading-[1.1] mb-8",children:n.title||"AI Strategie die werkt"}),e.jsx("p",{className:"text-2xl text-[#9CA3AF] mb-8 leading-relaxed",children:n.subtitle||"Van analyse tot roadmap. Wij helpen je de juiste AI kansen te identificeren."}),n.content&&e.jsx("div",{className:"text-[#3b3a3a] mb-12 text-xl leading-relaxed",dangerouslySetInnerHTML:{__html:n.content}}),e.jsx("div",{className:"flex flex-col sm:flex-row gap-4",children:e.jsxs(de,{to:se(n.cta_link||"Contact"),className:"inline-flex items-center justify-center gap-2 px-10 py-5 bg-[#FAB868] text-[#0D0D0F] font-semibold rounded-full hover:bg-[#E5A04D] transition-all text-lg",children:[n.cta_text||"Plan een gesprek",e.jsx($e,{className:"w-5 h-5"})]})})]}),e.jsx(Z.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{delay:.3},className:"hidden lg:block",children:n.image_url&&e.jsx("img",{src:n.image_url,alt:"Strategy session",className:"w-full h-[600px] object-cover rounded-3xl shadow-2xl"})})]})})]}),e.jsx("section",{className:"py-32 bg-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-20",children:[e.jsx("h2",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-6",children:r.title||"Wat we bieden"}),e.jsx("p",{className:"text-[#3b3a3a] mx-auto text-2xl max-w-2xl",children:r.subtitle||"Strategisch advies dat leidt tot resultaten"})]}),e.jsx("div",{className:"grid md:grid-cols-3 gap-12",children:(r.items||[]).map((o,c)=>{const d=a[o.icon]||$a;return e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:c*.1},className:"bg-[#F4F4F4] rounded-3xl p-12 hover:bg-white hover:shadow-lg hover:border-2 hover:border-[#FAB868] transition-all",children:[e.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center mb-8",children:e.jsx(d,{className:"w-8 h-8 text-[#0D0D0F]"})}),e.jsx("h3",{className:"text-3xl font-bold text-[#0D0D0F] mb-4",children:o.title}),e.jsx("p",{className:"text-[#3b3a3a] text-xl",children:o.description})]},c)})})]})}),e.jsx("section",{className:"py-32 bg-[#F4F4F4]",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-20",children:[e.jsx("h2",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-6",children:i.title||"Onze aanpak"}),e.jsx("p",{className:"text-[#626060] text-2xl",children:i.subtitle||"Een bewezen proces"})]}),e.jsx("div",{className:"grid md:grid-cols-4 gap-12",children:(i.items||[]).map((o,c)=>e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:c*.1},className:"relative",children:[e.jsx("div",{className:"text-7xl font-bold text-[#FAB868]/20 mb-6",children:String(c+1).padStart(2,"0")}),e.jsx("h3",{className:"text-2xl font-bold text-[#0D0D0F] mb-3",children:o.title}),e.jsx("p",{className:"text-[#3b3a3a] text-lg",children:o.description})]},c))})]})}),e.jsx("section",{className:"py-32 bg-[#0D0D0F]",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[e.jsx("h2",{className:"text-5xl font-bold text-white mb-6",children:s.title||"Klaar om je AI strategie te ontwikkelen?"}),e.jsx("p",{className:"text-2xl text-[#9CA3AF] mb-12",children:s.subtitle||"Plan een vrijblijvend gesprek"}),e.jsxs(de,{to:se(s.cta_link||"Contact"),className:"inline-flex items-center gap-2 px-10 py-5 bg-[#FAB868] text-[#0D0D0F] font-semibold rounded-full hover:bg-[#E5A04D] transition-all text-lg",children:[s.cta_text||"Plan een gesprek",e.jsx($e,{className:"w-5 h-5"})]})]})})]})}function Bq(){return e.jsxs("div",{className:"pt-20",children:[e.jsxs("section",{className:"relative bg-white pt-32 pb-20 overflow-hidden",children:[e.jsx("div",{className:"absolute top-0 right-0 w-[600px] h-[600px] bg-[#FAB868]/5 rounded-full blur-3xl"}),e.jsx("div",{className:"relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"grid lg:grid-cols-2 gap-20 items-center",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"max-w-2xl",children:[e.jsx("h1",{className:"text-5xl sm:text-6xl lg:text-7xl font-bold text-[#0D0D0F] leading-[1.1] mb-8",children:"AI Development die verder gaat dan experimenten"}),e.jsx("p",{className:"text-2xl text-[#9CA3AF] mb-8 leading-relaxed",children:"Wij ontwikkelen AI-oplossingen die echt in productie gaan. Geen losse demo's of tijdelijke prototypes, maar schaalbare software die past binnen jouw bestaande IT-landschap."}),e.jsxs("div",{className:"bg-[#F4F4F4] rounded-2xl p-6 mb-12",children:[e.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F] mb-3",children:"Onze kracht?"}),e.jsx("p",{className:"text-lg text-[#0D0D0F]/80",children:"Ervaren software developers met diepgaande AI-kennis, die snel kunnen schakelen van idee naar werkend prototype — en dit doorontwikkelen tot een stabiel, toekomstbestendig product."})]}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[e.jsxs(de,{to:se("Contact"),className:"inline-flex items-center justify-center gap-2 px-10 py-5 bg-[#FAB868] text-[#0D0D0F] font-semibold rounded-full hover:bg-[#E5A04D] transition-all text-lg",children:["Bespreek je project",e.jsx($e,{className:"w-5 h-5"})]}),e.jsx(de,{to:se("Cases"),className:"inline-flex items-center justify-center gap-2 px-10 py-5 border-2 border-[#0D0D0F] text-[#0D0D0F] font-semibold rounded-full hover:bg-[#F4F4F4] transition-all text-lg",children:"Bekijk cases"})]})]}),e.jsx(Z.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{delay:.3},className:"hidden lg:block",children:e.jsx("img",{src:"https://images.unsplash.com/photo-1555949963-aa79dcee981c?w=1200&auto=format&fit=crop",alt:"AI Development",className:"w-full h-[600px] object-cover rounded-3xl shadow-2xl"})})]})})]}),e.jsx("section",{className:"py-32 bg-[#F4F4F4]",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"grid lg:grid-cols-2 gap-16 items-center",children:[e.jsx(Z.div,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},children:e.jsx("img",{src:"https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=1200&auto=format&fit=crop",alt:"Team samenwerking",className:"w-full h-[500px] object-cover rounded-3xl shadow-xl"})}),e.jsxs(Z.div,{initial:{opacity:0,x:20},whileInView:{opacity:1,x:0},viewport:{once:!0},children:[e.jsx("h2",{className:"text-5xl font-bold text-[#0D0D0F] mb-6",children:"Van prototype naar productie, met hetzelfde team"}),e.jsx("p",{className:"text-2xl text-[#9CA3AF] mb-8",children:"Veel AI-trajecten stranden na een proof-of-concept. Bij ons niet."}),e.jsx("p",{className:"text-xl text-[#0D0D0F]/80 mb-8",children:"Wij werken met één team dat:"}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-8 h-8 bg-[#FAB868] rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:e.jsx(Ft,{className:"w-5 h-5 text-[#0D0D0F]"})}),e.jsx("p",{className:"text-xl text-[#0D0D0F]/80",children:"snel prototypes bouwt om waarde te valideren"})]}),e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-8 h-8 bg-[#FAB868] rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:e.jsx(Ft,{className:"w-5 h-5 text-[#0D0D0F]"})}),e.jsx("p",{className:"text-xl text-[#0D0D0F]/80",children:"direct rekening houdt met architectuur, security en performance"})]}),e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-8 h-8 bg-[#FAB868] rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:e.jsx(Ft,{className:"w-5 h-5 text-[#0D0D0F]"})}),e.jsx("p",{className:"text-xl text-[#0D0D0F]/80",children:"het prototype zonder overdracht doorontwikkelt tot het definitieve product"})]})]}),e.jsx("p",{className:"text-xl text-[#0D0D0F] font-semibold mt-8",children:"Zo voorkom je technische schuld en verlies van momentum."})]})]})})}),e.jsx("section",{className:"py-32 bg-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-20",children:[e.jsx("h2",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-6",children:"Sterk in integraties tussen systemen"}),e.jsx("p",{className:"text-2xl text-[#9CA3AF] max-w-3xl mx-auto mb-4",children:"AI staat nooit op zichzelf. Daarom hebben wij veel ervaring met integraties tussen verschillende softwaresystemen."})]}),e.jsxs("div",{className:"grid md:grid-cols-3 gap-8 mb-12",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.1},className:"bg-[#F4F4F4] rounded-3xl p-8 text-center",children:[e.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center mx-auto mb-4",children:e.jsx(Su,{className:"w-8 h-8 text-[#0D0D0F]"})}),e.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F] mb-3",children:"ERP-, CRM- en e-commerceplatformen"})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.2},className:"bg-[#F4F4F4] rounded-3xl p-8 text-center",children:[e.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center mx-auto mb-4",children:e.jsx(nu,{className:"w-8 h-8 text-[#0D0D0F]"})}),e.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F] mb-3",children:"maatwerk software en SaaS-oplossingen"})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.3},className:"bg-[#F4F4F4] rounded-3xl p-8 text-center",children:[e.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center mx-auto mb-4",children:e.jsx(L4,{className:"w-8 h-8 text-[#0D0D0F]"})}),e.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F] mb-3",children:"bestaande databronnen en nieuwe AI-componenten"})]})]}),e.jsx(Z.p,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-2xl text-[#0D0D0F] font-semibold text-center",children:"We zorgen dat AI naadloos onderdeel wordt van je bestaande processen, in plaats van een losstaand systeem."})]})}),e.jsx("section",{className:"py-32 bg-[#F4F4F4]",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-20",children:[e.jsx("h2",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-6",children:"Veelvoorkomende AI-toepassingen"}),e.jsx("p",{className:"text-2xl text-[#9CA3AF] max-w-2xl mx-auto",children:"AI is geen doel op zich. Het is een middel. Binnen onze AI development-projecten zien we vaak toepassingen zoals:"})]}),e.jsxs("div",{className:"space-y-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.1},className:"bg-white rounded-3xl p-12 hover:shadow-xl transition-all",children:[e.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[e.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center",children:e.jsx(C4,{className:"w-8 h-8 text-[#0D0D0F]"})}),e.jsx("h3",{className:"text-3xl font-bold text-[#0D0D0F]",children:"AI agents"})]}),e.jsx("p",{className:"text-xl text-[#9CA3AF]",children:"Voor het automatiseren of ondersteunen van taken en processen binnen bestaande software."})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.2},className:"bg-white rounded-3xl p-12 hover:shadow-xl transition-all",children:[e.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[e.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center",children:e.jsx(mi,{className:"w-8 h-8 text-[#0D0D0F]"})}),e.jsx("h3",{className:"text-3xl font-bold text-[#0D0D0F]",children:"AI search voor e-commerce"})]}),e.jsx("p",{className:"text-xl text-[#9CA3AF]",children:"Zoekoplossingen die beter omgaan met intentie, productdata en conversie."})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.3},className:"bg-white rounded-3xl p-12 hover:shadow-xl transition-all",children:[e.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[e.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center",children:e.jsx(q8,{className:"w-8 h-8 text-[#0D0D0F]"})}),e.jsx("h3",{className:"text-3xl font-bold text-[#0D0D0F]",children:"AI customer care"})]}),e.jsx("p",{className:"text-xl text-[#9CA3AF]",children:"Slimme klantondersteuning die context begrijpt en integreert met bestaande systemen."})]})]}),e.jsx(Z.p,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-xl text-[#9CA3AF] text-center mt-12",children:"Dit zijn voorbeelden — de daadwerkelijke oplossing stemmen we altijd af op jouw situatie."})]})}),e.jsx("section",{className:"py-32 bg-white",children:e.jsx("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center",children:[e.jsx("h2",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-8",children:"Gebouwd door developers, niet door buzzwords"}),e.jsx("p",{className:"text-2xl text-[#9CA3AF] mb-8",children:"Onze developers komen uit het bedrijfsleven. Ze begrijpen dat AI alleen waarde heeft als het:"}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-6 max-w-3xl mx-auto",children:[e.jsxs("div",{className:"flex items-center gap-3 text-xl text-[#0D0D0F]",children:[e.jsx(di,{className:"w-6 h-6 text-[#FAB868]"}),"betrouwbaar is"]}),e.jsxs("div",{className:"flex items-center gap-3 text-xl text-[#0D0D0F]",children:[e.jsx(di,{className:"w-6 h-6 text-[#FAB868]"}),"onderhoudbaar blijft"]}),e.jsxs("div",{className:"flex items-center gap-3 text-xl text-[#0D0D0F]",children:[e.jsx(di,{className:"w-6 h-6 text-[#FAB868]"}),"goed integreert"]}),e.jsxs("div",{className:"flex items-center gap-3 text-xl text-[#0D0D0F]",children:[e.jsx(di,{className:"w-6 h-6 text-[#FAB868]"}),"aantoonbaar resultaat oplevert"]})]}),e.jsx("p",{className:"text-3xl text-[#0D0D0F] font-bold mt-12",children:"Daar bouwen we op."})]})})}),e.jsx("section",{className:"py-32 bg-[#0D0D0F]",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[e.jsx("h2",{className:"text-5xl font-bold text-white mb-6",children:"Heb je een idee voor een AI oplossing?"}),e.jsx("p",{className:"text-2xl text-[#9CA3AF] mb-12",children:"Wij denken graag met je mee — van prototype tot productie"}),e.jsxs(de,{to:se("Contact"),className:"inline-flex items-center gap-2 px-10 py-5 bg-[#FAB868] text-[#0D0D0F] font-semibold rounded-full hover:bg-[#E5A04D] transition-all text-lg",children:["Bespreek je project",e.jsx($e,{className:"w-5 h-5"})]})]})})]})}const me=D.forwardRef(({className:t,type:n,...r},i)=>e.jsx("input",{type:n,className:Yt("flex w-full bg-white px-4 py-3 text-base transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-[#9CA3AF] focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50","border-b-2 border-gray-200 focus-visible:border-[#FAB868]","rounded-none",t),ref:i,...r}));me.displayName="Input";function Yk(t,n){if(typeof t=="function")return t(n);t!=null&&(t.current=n)}function zE(...t){return n=>{let r=!1;const i=t.map(s=>{const a=Yk(s,n);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let s=0;s<i.length;s++){const a=i[s];typeof a=="function"?a():Yk(t[s],null)}}}}function Xt(...t){return D.useCallback(zE(...t),t)}function mu(t){const n=qq(t),r=D.forwardRef((i,s)=>{const{children:a,...o}=i,c=D.Children.toArray(a),d=c.find(Uq);if(d){const h=d.props.children,f=c.map(m=>m===d?D.Children.count(h)>1?D.Children.only(null):D.isValidElement(h)?h.props.children:null:m);return e.jsx(n,{...o,ref:s,children:D.isValidElement(h)?D.cloneElement(h,void 0,f):null})}return e.jsx(n,{...o,ref:s,children:a})});return r.displayName=`${t}.Slot`,r}var zq=mu("Slot");function qq(t){const n=D.forwardRef((r,i)=>{const{children:s,...a}=r;if(D.isValidElement(s)){const o=Hq(s),c=$q(a,s.props);return s.type!==D.Fragment&&(c.ref=i?zE(i,o):o),D.cloneElement(s,c)}return D.Children.count(s)>1?D.Children.only(null):null});return n.displayName=`${t}.SlotClone`,n}var Vq=Symbol("radix.slottable");function Uq(t){return D.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===Vq}function $q(t,n){const r={...n};for(const i in n){const s=t[i],a=n[i];/^on[A-Z]/.test(i)?s&&a?r[i]=(...c)=>{const d=a(...c);return s(...c),d}:s&&(r[i]=s):i==="style"?r[i]={...s,...a}:i==="className"&&(r[i]=[s,a].filter(Boolean).join(" "))}return{...t,...r}}function Hq(t){var i,s;let n=(i=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:i.get,r=n&&"isReactWarning"in n&&n.isReactWarning;return r?t.ref:(n=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,r=n&&"isReactWarning"in n&&n.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}const Wq=S4("inline-flex items-center justify-center whitespace-nowrap rounded-full text-sm font-medium transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-[#FAB868] text-[#0D0D0F] hover:bg-[#E5A04D] shadow-sm",dark:"bg-[#0D0D0F] text-white hover:bg-[#1a1a1c]",outline:"border border-gray-200 bg-white text-[#0D0D0F] hover:bg-gray-50",ghost:"hover:bg-gray-100 text-[#0D0D0F]",link:"text-[#0D0D0F] underline-offset-4 hover:underline"},size:{default:"h-12 px-6 py-3",sm:"h-9 px-4 text-xs",lg:"h-14 px-8 text-base",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),ae=D.forwardRef(({className:t,variant:n,size:r,asChild:i=!1,...s},a)=>{const o=i?zq:"button";return e.jsx(o,{className:Yt(Wq({variant:n,size:r,className:t})),ref:a,...s})});ae.displayName="Button";function Kq(){var R;const[t,n]=D.useState(""),[r,i]=D.useState(""),[s,a]=D.useState(""),[o,c]=D.useState("input"),[d,h]=D.useState(!1),[f,m]=D.useState(!1),[p,g]=D.useState(null),[y,j]=D.useState(null),[v,x]=D.useState(null),[N,w]=D.useState(null),[k,A]=D.useState({name:"",email:""}),[S,E]=D.useState({assumptions_correct:!0,actual_activities:"",pain_points:"",competitor_advantages:"",strategic_development_need:"",employee_training_level:""}),C=[{value:"",label:"Selecteer industrie (optioneel)"},{value:"retail",label:"Retail & E-commerce"},{value:"manufacturing",label:"Productie & Manufacturing"},{value:"healthcare",label:"Zorg & Welzijn"},{value:"professional_services",label:"Professionele Dienstverlening"},{value:"hospitality",label:"Horeca & Hospitality"},{value:"logistics",label:"Logistiek & Transport"},{value:"construction",label:"Bouw & Vastgoed"},{value:"education",label:"Onderwijs & Training"},{value:"finance",label:"Financiële Diensten"},{value:"technology",label:"Technology & Software"},{value:"marketing",label:"Marketing & Media"},{value:"other",label:"Anders"}];D.useEffect(()=>{const q=new URLSearchParams(window.location.search).get("report_id");q&&B(q)},[]);const B=async z=>{var q,U;m(!0),w(null);try{const{data:Q}=await ce.functions.invoke("getImpactReport",{submission_id:z});Q.success&&Q.report?(j({report:Q.report,metadata:Q.metadata}),x(z),c("results")):w(Q.error||"Rapport niet gevonden")}catch(Q){console.error("Error loading shared report:",Q),w(((U=(q=Q.response)==null?void 0:q.data)==null?void 0:U.error)||Q.message||"Kon rapport niet laden. Controleer de link en probeer opnieuw.")}finally{m(!1)}},F=async z=>{var q,U,Q,H;if(z.preventDefault(),!t){w("Website URL is verplicht");return}h(!0),w(null),c("analyzing");try{const Y=`https://${t.replace(/^(https?:\/\/)?(www\.)?/,"").replace(/\/$/,"")}`;console.log("Calling generatePreliminaryAnalysis with:",{website_url:Y,company_name:r,industry:s||void 0});const{data:P}=await ce.functions.invoke("generatePreliminaryAnalysis",{website_url:Y,company_name:r,industry:s||void 0});console.log("Response from generatePreliminaryAnalysis:",P),P.success&&P.preliminary_data?(g(P.preliminary_data),c("questionnaire")):(console.error("Error from function:",P),w(P.error||"Er ging iets mis bij de voorlopige analyse"),c("input"))}catch(K){console.error("Caught error:",K),console.error("Error response:",K.response),w(((U=(q=K.response)==null?void 0:q.data)==null?void 0:U.error)||((H=(Q=K.response)==null?void 0:Q.data)==null?void 0:H.details)||K.message||"Kon de voorlopige analyse niet uitvoeren. Probeer het opnieuw."),c("input")}finally{h(!1)}},I=async()=>{var z,q,U;if(!k.email||!k.name){w("Vul je naam en email in om het rapport te ontvangen"),window.scrollTo({top:0,behavior:"smooth"});return}if(!S.pain_points){w("Het veld 'Grootste pijnpunten of uitdagingen' is verplicht"),window.scrollTo({top:0,behavior:"smooth"});return}if(!S.strategic_development_need){w("Het veld 'Strategische ontwikkeling met AI' is verplicht"),window.scrollTo({top:0,behavior:"smooth"});return}if(!S.employee_training_level){w("Het veld 'AI training medewerkers' is verplicht"),window.scrollTo({top:0,behavior:"smooth"});return}if(!S.assumptions_correct&&!S.actual_activities){w("Geef aan wat jullie bedrijf doet als onze aanname niet klopt"),window.scrollTo({top:0,behavior:"smooth"});return}if(!S.competitor_advantages){w("Het veld 'Wat doet de concurrentie beter' is verplicht"),window.scrollTo({top:0,behavior:"smooth"});return}h(!0),w(null);try{const H=`https://${t.replace(/^(https?:\/\/)?(www\.)?/,"").replace(/\/$/,"")}`,K=await ce.functions.invoke("createImpactScanRequest",{website_url:H,company_name:r,industry:s||void 0,user_email:k.email,user_name:k.name});K.data&&K.data.success?(c("submitted"),window.scrollTo({top:0,behavior:"smooth"})):(w(((z=K.data)==null?void 0:z.error)||"Er ging iets mis bij het aanmaken van de aanvraag"),window.scrollTo({top:0,behavior:"smooth"}))}catch(Q){console.error("Error submitting request:",Q),w(((U=(q=Q.response)==null?void 0:q.data)==null?void 0:U.error)||Q.message||"Kon de aanvraag niet indienen. Probeer het opnieuw.")}finally{h(!1)}};if(f)return e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-blue-50 to-white",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-32 text-center",children:e.jsxs(Z.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},children:[e.jsx("div",{className:"w-20 h-20 bg-blue-100 rounded-full flex items-center justify-center mx-auto mb-6",children:e.jsxs("svg",{className:"animate-spin w-10 h-10 text-blue-600",viewBox:"0 0 24 24",children:[e.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),e.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]})}),e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Rapport aan het laden..."})]})})});if(o==="analyzing")return e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-blue-50 to-white",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-32 text-center",children:e.jsxs(Z.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},children:[e.jsx("div",{className:"w-20 h-20 bg-blue-100 rounded-full flex items-center justify-center mx-auto mb-6",children:e.jsxs("svg",{className:"animate-spin w-10 h-10 text-blue-600",viewBox:"0 0 24 24",children:[e.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),e.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]})}),e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Je website aan het analyseren..."}),e.jsx("p",{className:"text-xl text-gray-600",children:"Even geduld, we halen informatie op over je bedrijf"})]})})});if(o==="submitted")return e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-green-50 to-white",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-32 text-center",children:e.jsxs(Z.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},children:[e.jsx("div",{className:"w-20 h-20 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-6",children:e.jsx(gt,{className:"w-10 h-10 text-green-600"})}),e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Aanvraag ontvangen!"}),e.jsxs("p",{className:"text-xl text-gray-600 mb-8",children:["Je ontvangt het AI Impact Rapport binnen enkele minuten per email op ",e.jsx("strong",{children:k.email})]}),e.jsxs("div",{className:"bg-white rounded-2xl p-6 max-w-md mx-auto border border-gray-100 mb-8",children:[e.jsx("p",{className:"text-sm text-gray-600 mb-4",children:"Het rapport wordt momenteel gegenereerd. Dit kan enkele minuten duren omdat we:"}),e.jsxs("ul",{className:"text-left space-y-2 text-sm text-gray-700",children:[e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(gt,{className:"w-4 h-4 text-green-500 mt-0.5 flex-shrink-0"}),e.jsx("span",{children:"Je website grondig analyseren"})]}),e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(gt,{className:"w-4 h-4 text-green-500 mt-0.5 flex-shrink-0"}),e.jsx("span",{children:"AI-kansen identificeren"})]}),e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(gt,{className:"w-4 h-4 text-green-500 mt-0.5 flex-shrink-0"}),e.jsx("span",{children:"Gepersonaliseerde aanbevelingen maken"})]})]})]}),e.jsx(ae,{onClick:()=>window.location.href=se("Home"),className:"bg-gray-900 text-white hover:bg-gray-800",children:"Terug naar home"})]})})});if(N)return e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-red-50 to-white",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-32 text-center",children:e.jsxs(Z.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},children:[e.jsx("div",{className:"w-20 h-20 bg-red-100 rounded-full flex items-center justify-center mx-auto mb-6",children:e.jsx(Tr,{className:"w-10 h-10 text-red-600"})}),e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Er ging iets mis"}),e.jsx("p",{className:"text-xl text-gray-600 mb-8",children:N}),e.jsx(ae,{onClick:()=>{w(null),n(""),window.location.href=se("AIImpactRapport")},className:"bg-gray-900 text-white hover:bg-gray-800",children:"Probeer opnieuw"})]})})});if(o==="questionnaire"&&p)return e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-gray-50 to-white",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"mb-12",children:[e.jsxs("div",{className:"text-center mb-8",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-blue-100 rounded-full text-blue-700 text-sm font-medium mb-6",children:[e.jsx(At,{className:"w-4 h-4"}),"Stap 2 van 2"]}),e.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-4",children:"Klopt onze aanname?"}),e.jsx("p",{className:"text-xl text-gray-600",children:"We hebben een eerste analyse gedaan. Help ons deze te verbeteren met enkele vragen."})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:"bg-white rounded-2xl p-8 mb-8 border-2 border-blue-100",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Onze voorlopige bevindingen"}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-500 mb-2",children:"Bedrijf"}),e.jsx("p",{className:"text-lg font-semibold text-gray-900",children:p.company_name})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-500 mb-2",children:"Wat jullie doen"}),e.jsx("p",{className:"text-gray-700",children:p.activities})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-500 mb-2",children:"Mogelijke uitdagingen die we zien"}),e.jsx("ul",{className:"list-disc list-inside space-y-2 text-gray-700",children:(R=p.potential_challenges)==null?void 0:R.map((z,q)=>e.jsx("li",{children:z},q))})]})]})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"bg-white rounded-2xl p-8 border border-gray-100",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Help ons je beter te begrijpen"}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-3",children:"Klopt onze aanname over wat jullie bedrijf doet?"}),e.jsxs("div",{className:"flex gap-4",children:[e.jsx("button",{type:"button",onClick:()=>E({...S,assumptions_correct:!0}),className:`flex-1 px-4 py-3 rounded-lg border-2 transition-all ${S.assumptions_correct?"border-green-500 bg-green-50 text-green-900":"border-gray-200 hover:border-gray-300"}`,children:"✓ Ja, klopt"}),e.jsx("button",{type:"button",onClick:()=>E({...S,assumptions_correct:!1}),className:`flex-1 px-4 py-3 rounded-lg border-2 transition-all ${S.assumptions_correct?"border-gray-200 hover:border-gray-300":"border-orange-500 bg-orange-50 text-orange-900"}`,children:"✗ Niet helemaal"})]})]}),!S.assumptions_correct&&e.jsxs(Z.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},children:[e.jsxs("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:["Wat doet jullie bedrijf eigenlijk? ",e.jsx("span",{className:"text-red-600 font-bold text-lg",children:"*"})]}),e.jsx("p",{className:"text-xs text-gray-500 mb-2",children:"(Verplicht veld)"}),e.jsx("textarea",{value:S.actual_activities,onChange:z=>E({...S,actual_activities:z.target.value}),className:`w-full px-4 py-3 border ${!S.assumptions_correct&&!S.actual_activities?"border-red-300 bg-red-50":"border-gray-300"} rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500`,rows:"3",placeholder:"Beschrijf kort jullie kernactiviteiten...",required:!0})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:["Wat zijn jullie grootste pijnpunten of uitdagingen? ",e.jsx("span",{className:"text-red-600 font-bold text-lg",children:"*"})]}),e.jsx("p",{className:"text-xs text-gray-500 mb-2",children:"(Verplicht veld)"}),e.jsx("textarea",{value:S.pain_points,onChange:z=>E({...S,pain_points:z.target.value}),className:`w-full px-4 py-3 border ${S.pain_points?"border-gray-300":"border-red-300 bg-red-50"} rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500`,rows:"4",placeholder:"Bijvoorbeeld: Te veel handmatig werk, klantenservice kost veel tijd, fouten in orderverwerking...",required:!0})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:["Wat doet de concurrentie beter dan jullie? ",e.jsx("span",{className:"text-red-600 font-bold text-lg",children:"*"})]}),e.jsx("p",{className:"text-xs text-gray-500 mb-2",children:"(Verplicht veld)"}),e.jsx("textarea",{value:S.competitor_advantages,onChange:z=>E({...S,competitor_advantages:z.target.value}),className:`w-full px-4 py-3 border ${S.competitor_advantages?"border-gray-300":"border-red-300 bg-red-50"} rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500`,rows:"3",placeholder:"Bijvoorbeeld: Snellere levering, betere klantenservice, lagere prijzen...",required:!0})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:["Hebben jullie behoefte aan strategische ontwikkeling met AI? ",e.jsx("span",{className:"text-red-600 font-bold text-lg",children:"*"})]}),e.jsx("p",{className:"text-xs text-gray-500 mb-2",children:"(Verplicht veld)"}),e.jsxs("select",{value:S.strategic_development_need,onChange:z=>E({...S,strategic_development_need:z.target.value}),className:`w-full px-4 py-3 border ${S.strategic_development_need?"border-gray-300":"border-red-300 bg-red-50"} rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500`,required:!0,children:[e.jsx("option",{value:"",children:"Selecteer..."}),e.jsx("option",{value:"urgent",children:"Ja, dringend - we lopen achter"}),e.jsx("option",{value:"exploring",children:"Ja, we zijn aan het verkennen"}),e.jsx("option",{value:"some",children:"Een beetje - we weten niet goed waar te beginnen"}),e.jsx("option",{value:"no",children:"Nee, nog niet - we willen eerst meer weten"})]})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:["Hoe goed zijn jullie medewerkers opgeleid over AI kansen en bedreigingen? ",e.jsx("span",{className:"text-red-600 font-bold text-lg",children:"*"})]}),e.jsx("p",{className:"text-xs text-gray-500 mb-2",children:"(Verplicht veld)"}),e.jsxs("select",{value:S.employee_training_level,onChange:z=>E({...S,employee_training_level:z.target.value}),className:`w-full px-4 py-3 border ${S.employee_training_level?"border-gray-300":"border-red-300 bg-red-50"} rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500`,required:!0,children:[e.jsx("option",{value:"",children:"Selecteer..."}),e.jsx("option",{value:"expert",children:"Goed - we hebben al AI training gehad"}),e.jsx("option",{value:"basic",children:"Basis - iedereen weet wat AI is"}),e.jsx("option",{value:"limited",children:"Beperkt - alleen management weet iets van AI"}),e.jsx("option",{value:"none",children:"Nauwelijks - we weten weinig over AI"})]})]}),e.jsxs("div",{className:"border-t border-gray-200 pt-6",children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-4",children:"Ontvang je rapport"}),e.jsxs("div",{className:"grid sm:grid-cols-2 gap-4 mb-6",children:[e.jsxs("div",{children:[e.jsxs("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:["Naam ",e.jsx("span",{className:"text-red-600 font-bold text-lg",children:"*"})]}),e.jsx("p",{className:"text-xs text-gray-500 mb-2",children:"(Verplicht veld)"}),e.jsx(me,{type:"text",placeholder:"Je naam",value:k.name,onChange:z=>A({...k,name:z.target.value}),className:k.name?"":"border-red-300 bg-red-50",required:!0})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:["Email ",e.jsx("span",{className:"text-red-600 font-bold text-lg",children:"*"})]}),e.jsx("p",{className:"text-xs text-gray-500 mb-2",children:"(Verplicht veld)"}),e.jsx(me,{type:"email",placeholder:"je@email.nl",value:k.email,onChange:z=>A({...k,email:z.target.value}),className:k.email?"":"border-red-300 bg-red-50",required:!0})]})]})]}),e.jsxs("div",{className:"flex gap-4 pt-4",children:[e.jsx(ae,{type:"button",variant:"outline",onClick:()=>c("input"),className:"flex-1",children:"Vorige"}),e.jsx(ae,{type:"button",onClick:I,disabled:d||!k.name||!k.email||!S.pain_points||!S.competitor_advantages||!S.strategic_development_need||!S.employee_training_level||!S.assumptions_correct&&!S.actual_activities,className:"flex-1 bg-[#FAB868] hover:bg-[#E5A04D] text-[#0D0D0F] font-bold disabled:opacity-50 disabled:cursor-not-allowed",children:e.jsxs("span",{className:"flex items-center gap-2 justify-center",children:[e.jsx(At,{className:"w-5 h-5"}),d?"Indienen...":"Genereer mijn rapport",e.jsx($e,{className:"w-5 h-5"})]})})]})]})]})]})})});if(o==="results"&&y){const{report:z,metadata:q}=y,U=z.company_profile||{},Q=z.quick_scan||{},H=z.opportunities||[],K=z.productivity_forecast||{},Y=z.action_plan||{};return e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-gray-50 to-white",children:e.jsxs("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-blue-100 rounded-full text-blue-700 text-sm font-medium mb-6",children:[e.jsx(At,{className:"w-4 h-4"}),"48-7 Impact Rapport"]}),e.jsxs("h1",{className:"text-4xl font-bold text-gray-900 mb-4",children:["Hoe ",U.name||"uw bedrijf"," van 24-7 naar 48-7 gaat"]}),e.jsxs("p",{className:"text-xl text-gray-600",children:["Gegenereerd op ",new Date(q.generated_at).toLocaleDateString("nl-NL",{day:"numeric",month:"long",year:"numeric"})]})]}),U&&e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:"bg-white rounded-2xl p-8 mb-8 border border-gray-100",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx(Xa,{className:"w-6 h-6 text-blue-600"}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Bedrijfsprofiel"})]}),e.jsxs("div",{className:"grid md:grid-cols-1 gap-6",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-500 mb-1",children:"Sector"}),e.jsx("p",{className:"font-semibold text-gray-900",children:U.sector})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-500 mb-1",children:"Kernactiviteiten"}),e.jsx("p",{className:"text-gray-700",children:U.core_activities})]})]})]}),Q&&e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"bg-gradient-to-br from-blue-50 to-indigo-50 rounded-2xl p-8 mb-8",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"De Quick Scan"}),e.jsxs("p",{className:"text-lg text-gray-700 mb-6 leading-relaxed",children:["Wij hebben de processen van ",e.jsx("strong",{children:U.name})," geanalyseerd.",Q.focus&&` ${Q.focus}`]}),Q.usp&&e.jsxs("div",{className:"bg-white/50 rounded-xl p-4 mb-4",children:[e.jsx("p",{className:"text-sm text-gray-600 mb-1",children:"Unique Selling Points"}),e.jsx("p",{className:"text-gray-800",children:Q.usp})]}),Q.time_intensive_processes&&e.jsxs("div",{className:"bg-white/50 rounded-xl p-4",children:[e.jsx("p",{className:"text-sm text-gray-600 mb-1",children:"Tijd-intensieve processen"}),e.jsx("p",{className:"text-gray-800",children:Q.time_intensive_processes})]})]}),H&&H.length>0&&e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3},className:"mb-8",children:[e.jsxs("div",{className:"text-center mb-8",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-2",children:"AI Kansen"}),e.jsxs("p",{className:"text-gray-600",children:["Specifiek voor ",U.name]})]}),e.jsx("div",{className:"space-y-6",children:H.map((P,T)=>e.jsx(Z.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.4+T*.1},className:"bg-white rounded-2xl p-8 border-2 border-gray-100 hover:border-blue-200 transition-all",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-12 h-12 bg-gradient-to-br from-blue-500 to-indigo-600 rounded-xl flex items-center justify-center text-white font-bold text-xl flex-shrink-0",children:T+1}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-3",children:P.title}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-semibold text-red-600 mb-1",children:"⌠Probleem"}),e.jsx("p",{className:"text-gray-700",children:P.problem})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-semibold text-blue-600 mb-1",children:"✅ Oplossing"}),e.jsx("p",{className:"text-gray-700",children:P.solution})]}),P.relevance&&e.jsxs("div",{className:"bg-blue-50 p-3 rounded-lg",children:[e.jsx("p",{className:"text-sm font-semibold text-blue-900 mb-1",children:"💡 Waarom relevant"}),e.jsx("p",{className:"text-sm text-blue-800",children:P.relevance})]}),P.implementation_steps&&P.implementation_steps.length>0&&e.jsxs("div",{className:"bg-purple-50 p-3 rounded-lg",children:[e.jsx("p",{className:"text-sm font-semibold text-purple-900 mb-2",children:"🔧 Implementatiestappen"}),e.jsx("ol",{className:"text-sm text-purple-800 space-y-1 list-decimal list-inside",children:P.implementation_steps.map((V,L)=>e.jsx("li",{children:V},L))})]}),P.data_privacy&&e.jsxs("div",{className:"bg-amber-50 p-3 rounded-lg",children:[e.jsx("p",{className:"text-sm font-semibold text-amber-900 mb-1",children:"🔒 Data & Privacy"}),e.jsx("p",{className:"text-sm text-amber-800",children:P.data_privacy})]}),e.jsx("div",{className:"grid sm:grid-cols-2 gap-4 pt-4 border-t border-gray-100",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Ki,{className:"w-5 h-5 text-green-600"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-600",children:"Winst"}),e.jsx("p",{className:"font-semibold text-gray-900",children:P.benefit})]})]})})]})]})]})},T))})]}),K&&e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.7},className:"bg-gradient-to-r from-green-500 to-emerald-600 rounded-2xl p-8 text-white mb-8",children:[e.jsx("h2",{className:"text-2xl font-bold mb-6",children:"De 48-7 Productiviteitsprognose"}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-8 mb-6",children:[e.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-xl p-6",children:[e.jsx("p",{className:"text-green-100 mb-2",children:"Huidige output"}),e.jsxs("p",{className:"text-5xl font-bold",children:[K.current||100,"%"]})]}),e.jsxs("div",{className:"bg-white/20 backdrop-blur-sm rounded-xl p-6 border-2 border-white/30",children:[e.jsx("p",{className:"text-green-100 mb-2",children:"Output met 48-7 AI-integratie"}),e.jsxs("p",{className:"text-5xl font-bold",children:[K.with_ai||185,"%"]})]})]}),K.drivers&&K.drivers.length>0&&e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold mb-3",children:"Belangrijkste drivers:"}),e.jsx("ul",{className:"space-y-2",children:K.drivers.map((P,T)=>e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(gt,{className:"w-5 h-5 mt-0.5 flex-shrink-0"}),e.jsx("span",{children:P})]},T))})]})]}),z.innovative_idea&&e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.82},className:"bg-gradient-to-br from-purple-600 via-pink-600 to-orange-500 rounded-2xl p-8 mb-8 text-white relative overflow-hidden",children:[e.jsxs("div",{className:"absolute inset-0 opacity-10",children:[e.jsx("div",{className:"absolute top-0 right-0 w-64 h-64 bg-white rounded-full blur-3xl"}),e.jsx("div",{className:"absolute bottom-0 left-0 w-64 h-64 bg-white rounded-full blur-3xl"})]}),e.jsxs("div",{className:"relative z-10",children:[e.jsxs("div",{className:"flex items-start gap-4 mb-6",children:[e.jsx("div",{className:"w-14 h-14 bg-white/20 backdrop-blur-sm rounded-2xl flex items-center justify-center flex-shrink-0",children:e.jsx(Wi,{className:"w-7 h-7 text-white"})}),e.jsxs("div",{children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 bg-white/20 backdrop-blur-sm rounded-full text-sm font-semibold mb-2",children:[e.jsx(At,{className:"w-4 h-4"}),"Innovatief AI-Idee"]}),e.jsx("h2",{className:"text-3xl font-bold",children:z.innovative_idea.title})]})]}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-xl p-6",children:[e.jsx("h3",{className:"font-bold text-lg mb-2",children:"💡 Hoe het werkt"}),e.jsx("p",{className:"text-white/90 leading-relaxed",children:z.innovative_idea.description})]}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-xl p-5",children:[e.jsx("h3",{className:"font-bold mb-2",children:"🎯 Onderscheidend vermogen"}),e.jsx("p",{className:"text-white/90 text-sm",children:z.innovative_idea.unique_value})]}),e.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-xl p-5",children:[e.jsx("h3",{className:"font-bold mb-2",children:"📈 Impact"}),e.jsx("p",{className:"text-white/90 text-sm",children:z.innovative_idea.impact})]})]}),e.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-xl p-5",children:[e.jsx("h3",{className:"font-bold mb-2",children:"🔧 Implementatie"}),e.jsx("p",{className:"text-white/90 text-sm",children:z.innovative_idea.implementation})]}),e.jsxs("div",{className:"bg-gradient-to-r from-green-500/20 to-emerald-500/20 backdrop-blur-sm rounded-xl p-5 border-2 border-green-400/30",children:[e.jsxs("h3",{className:"font-bold mb-2 flex items-center gap-2",children:[e.jsx(di,{className:"w-5 h-5"}),"Quick Win (2-4 weken)"]}),e.jsx("p",{className:"text-white/90",children:z.innovative_idea.quick_win})]})]})]})]}),z.training_recommendations&&z.training_recommendations.length>0&&e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.85},className:"bg-white rounded-2xl p-8 mb-8 border border-gray-100",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx("div",{className:"w-12 h-12 bg-purple-100 rounded-xl flex items-center justify-center",children:e.jsx(pr,{className:"w-6 h-6 text-purple-600"})}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Aanbevolen Trainingen"})]}),e.jsx("div",{className:"space-y-4",children:z.training_recommendations.map((P,T)=>e.jsxs("div",{className:"p-6 bg-purple-50 rounded-xl border-2 border-purple-100",children:[e.jsxs("div",{className:"flex items-start justify-between mb-3",children:[e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"w-8 h-8 bg-purple-600 rounded-lg flex items-center justify-center flex-shrink-0 mt-0.5",children:e.jsx("span",{className:"text-white font-bold text-sm",children:T+1})}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-gray-900 text-lg mb-1",children:P.training_name}),P.target_audience&&e.jsxs("p",{className:"text-sm text-purple-700 font-medium",children:["Doelgroep: ",P.target_audience]})]})]}),e.jsx(de,{to:se("Contact")+`?training=${encodeURIComponent(P.training_name)}`,className:"flex-shrink-0 px-4 py-2 bg-purple-600 text-white text-sm font-semibold rounded-lg hover:bg-purple-700 transition-colors",children:"Aanvragen"})]}),P.learning_goals&&e.jsxs("div",{className:"mb-3",children:[e.jsx("p",{className:"text-sm font-medium text-gray-700 mb-1",children:"Leerdoelen:"}),e.jsx("p",{className:"text-sm text-gray-600",children:P.learning_goals})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium text-gray-700",children:"Waarom relevant:"}),e.jsx("p",{className:"text-sm text-gray-600",children:P.reason})]}),P.relevance_to_opportunities&&e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium text-gray-700",children:"Link met AI-kansen:"}),e.jsx("p",{className:"text-sm text-gray-600",children:P.relevance_to_opportunities})]}),P.compliance_benefit&&e.jsxs("div",{className:"bg-blue-50 p-2 rounded",children:[e.jsx("p",{className:"text-sm font-medium text-blue-900",children:"Compliance voordeel:"}),e.jsx("p",{className:"text-sm text-blue-800",children:P.compliance_benefit})]})]})]},T))})]}),Y&&e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.95},className:"bg-white rounded-2xl p-8 mb-8 border border-gray-100",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx("div",{className:"w-12 h-12 bg-amber-100 rounded-xl flex items-center justify-center",children:e.jsx($a,{className:"w-6 h-6 text-amber-600"})}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Direct Actieplan"})]}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-600 mb-2",children:"Hoogste prioriteit"}),e.jsx("p",{className:"text-lg font-semibold text-gray-900",children:Y.priority_opportunity})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-600 mb-2",children:"Eerste stap"}),e.jsx("p",{className:"text-gray-700",children:Y.first_step})]})]})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:1},className:"space-y-6",children:[e.jsxs("div",{className:"bg-gradient-to-r from-blue-600 to-indigo-600 rounded-2xl p-8 text-white text-center",children:[e.jsx("h2",{className:"text-2xl font-bold mb-2",children:"Wil je dit rapport op maat?"}),e.jsx("p",{className:"text-blue-100 mb-6 text-lg",children:"Plan een gesprek en ontvang een uitgebreide analyse voor jouw bedrijf"}),e.jsxs(de,{to:se("Contact"),className:"inline-flex items-center justify-center gap-2 px-8 py-4 bg-white text-blue-700 font-bold text-lg rounded-xl hover:bg-gray-100 transition-all shadow-lg",children:[e.jsx(Or,{className:"w-6 h-6"}),"Plan een gesprek",e.jsx($e,{className:"w-6 h-6"})]})]}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[e.jsxs("div",{className:"bg-gray-900 rounded-2xl p-6 text-white",children:[e.jsx("h3",{className:"text-xl font-bold mb-2",children:"Directe Toelichting"}),e.jsx("p",{className:"text-gray-300 mb-4",children:"Bespreek binnen 15 minuten de mogelijkheden voor jouw bedrijf"}),e.jsxs(de,{to:se("Contact"),className:"inline-flex items-center justify-center gap-2 w-full px-6 py-3 bg-white text-gray-900 font-semibold rounded-xl hover:bg-gray-100 transition-all",children:[e.jsx(Or,{className:"w-5 h-5"}),"Plan een gesprek"]})]}),e.jsxs("div",{className:"bg-purple-600 rounded-2xl p-6 text-white",children:[e.jsx("h3",{className:"text-xl font-bold mb-2",children:"EU AI Act Check"}),e.jsx("p",{className:"text-purple-100 mb-4",children:"Ontdek welke compliance-eisen gelden voor jouw bedrijf"}),e.jsxs(de,{to:se("EuAiActChecker"),className:"inline-flex items-center justify-center gap-2 w-full px-6 py-3 bg-white text-purple-700 font-semibold rounded-xl hover:bg-gray-100 transition-all",children:[e.jsx(Vn,{className:"w-5 h-5"}),"Start AI Act Check"]})]})]})]})]})})}return e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-blue-50 to-white",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-20",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[e.jsxs("h1",{className:"text-5xl sm:text-6xl lg:text-7xl font-bold text-[#0D0D0F] mb-8",children:["Ontvang gratis 48-7 ",e.jsx("br",{}),"AI Impact Rapport"]}),e.jsx("p",{className:"text-2xl text-[#292828] max-w-2xl mx-auto",children:"Ontdek in 60 seconden hoe AI jouw bedrijf van 24-7 naar 48-7 brengt"})]}),e.jsx(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"bg-white rounded-2xl p-8 shadow-sm border border-gray-100",children:e.jsxs("form",{onSubmit:F,className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Website URL *"}),e.jsx(me,{type:"text",placeholder:"jouwbedrijf.nl",value:t,onChange:z=>n(z.target.value),required:!0,className:"text-lg py-6"}),e.jsx("p",{className:"text-sm text-gray-500 mt-1",children:"Vul alleen het domein in, bijv. bedrijf.nl (https:// wordt automatisch toegevoegd)"})]}),e.jsxs("div",{className:"grid sm:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Bedrijfsnaam (optioneel)"}),e.jsx(me,{type:"text",placeholder:"Je Bedrijf BV",value:r,onChange:z=>i(z.target.value)})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Industrie (optioneel)"}),e.jsx("select",{value:s,onChange:z=>a(z.target.value),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",children:C.map(z=>e.jsx("option",{value:z.value,children:z.label},z.value))})]})]}),e.jsx(ae,{type:"submit",disabled:d,className:"w-full py-6 bg-[#FAB868] hover:bg-[#E5A04D] text-[#0D0D0F] font-bold text-lg",children:e.jsxs("span",{className:"flex items-center gap-2 justify-center",children:[e.jsx(At,{className:"w-5 h-5"}),d?"Analyseren...":"Start Analyse",e.jsx($e,{className:"w-5 h-5"})]})}),e.jsx("p",{className:"text-xs text-gray-500 text-center",children:"✓ 100% gratis • ✓ Geen verplichtingen • ✓ Email pas in volgende stap"})]})})]})})}const _c=[{id:1,question:"Wat is de grootste bron van chaos op een doorsnee werkdag?",options:[{label:"Iemand mist info en appt drie collega's",themes:["informatie","proces"],signals:["context_switching","informele_afstemming"],severity:2},{label:"Een Excel klopt niet meer",themes:["data"],signals:["single_source_of_truth_missing"],severity:3},{label:"Een systeem doet het niet zoals verwacht",themes:["tooling"],signals:["systeem_onbetrouwbaar"],severity:2},{label:"Ik weet het niet, maar het kost tijd",themes:["ownership"],signals:["onduidelijke_verantwoordelijkheid"],severity:3}]},{id:2,question:"Waar gaat de meeste tijd in zitten aan herhaalwerk?",options:[{label:"Gegevens overtypen tussen systemen",themes:["integratie"],signals:["handmatige_overdracht"],severity:3},{label:"Rapportages maken",themes:["data"],signals:["rapportage_handwerk"],severity:2},{label:"Statusupdates sturen",themes:["communicatie"],signals:["status_fragmenteel"],severity:2},{label:"Fouten herstellen",themes:["kwaliteit"],signals:["foutcorrectie_cyclus"],severity:3}]},{id:3,question:"Hoe neem je belangrijke beslissingen?",options:[{label:"Vertrouw ik op gevoel",themes:["besluitvorming"],signals:["besluit_op_intuitie"],severity:3},{label:"Data uit meerdere tools trekken",themes:["data"],signals:["data_versnippering"],severity:2},{label:"Eén dashboard",themes:["data"],signals:["gecentraliseerd_inzicht"],severity:1},{label:"Besluit uitstellen",themes:["besluitvorming"],signals:["decision_latency"],severity:3}]},{id:4,question:"Wat gebeurt er als jullie plotseling 30% meer orders krijgen?",options:[{label:"Paniek",themes:["schaalbaarheid"],signals:["groei_instabiliteit"],severity:3},{label:"Meer mensen aannemen",themes:["organisatie"],signals:["groei_door_headcount"],severity:2},{label:"Het loopt wel maar trager",themes:["proces"],signals:["schaalbare_knelpunten"],severity:2},{label:"Nauwelijks verschil",themes:["schaalbaarheid"],signals:["schaalbaar_proces"],severity:1}]},{id:5,question:"Hoe zou je je systemenlandschap omschrijven?",options:[{label:"Los zand",themes:["integratie"],signals:["tool_fragmentatie"],severity:3},{label:"Aan elkaar geknoopt",themes:["integratie"],signals:["fragiele_koppelingen"],severity:2},{label:"Redelijk geïntegreerd",themes:["integratie"],signals:["gedeeltelijke_integratie"],severity:1},{label:"Eén logisch geheel",themes:["integratie"],signals:["stabiele_architectuur"],severity:0}]},{id:6,question:"Waar ontstaan de meeste fouten?",options:[{label:"Menselijke invoer",themes:["kwaliteit"],signals:["human_error"],severity:3},{label:"Overdrachten tussen teams",themes:["proces"],signals:["handoff_failure"],severity:2},{label:"Tussen systemen",themes:["integratie"],signals:["sync_fouten"],severity:3},{label:"Nauwelijks fouten",themes:["kwaliteit"],signals:["stabiel_proces"],severity:0}]},{id:7,question:"Waar lekt de meeste tijd weg?",options:[{label:"Zoeken naar info",themes:["informatie"],signals:["informatie_zoekverlies"],severity:3},{label:"Handmatige controles",themes:["kwaliteit"],signals:["controle_handwerk"],severity:2},{label:"Afstemming en overleg",themes:["communicatie"],signals:["overleg_overhead"],severity:2},{label:"Brandjes blussen",themes:["stabiliteit"],signals:["reactief_werken"],severity:3}]},{id:8,question:"Wat is AI voor jullie?",options:[{label:"Iets vaags",themes:["adoptie"],signals:["ai_onbekendheid"],severity:3},{label:"Interessant maar spannend",themes:["adoptie"],signals:["ai_terughoudend"],severity:2},{label:"We experimenteren",themes:["adoptie"],signals:["ai_experiment"],severity:1},{label:"Onderdeel van werk",themes:["adoptie"],signals:["ai_operationeel"],severity:0}]},{id:9,question:"Wat frustreert je het meest?",options:[{label:"Al oplosbare dingen",themes:["ownership"],signals:["structurele_inefficiency"],severity:3},{label:"Systemen praten niet",themes:["integratie"],signals:["data_silo"],severity:3},{label:"Wachten op info",themes:["informatie"],signals:["informatie_afhankelijkheid"],severity:2},{label:"Niet kunnen automatiseren",themes:["innovatie"],signals:["automation_blokkade"],severity:3}]},{id:10,question:"Wat is je ambitie?",options:[{label:"Meer rust",themes:["stabiliteit"],signals:["behoefte_aan_overzicht"],severity:1},{label:"Slimmer werken",themes:["efficiency"],signals:["optimalisatie_drang"],severity:1},{label:"Groeien zonder mensen",themes:["schaalbaarheid"],signals:["leverage_ambitie"],severity:1},{label:"Vooroplopen",themes:["innovatie"],signals:["innovatie_ambitie"],severity:1}]}],Gq=t=>t.reactief_werken>=1||t.tool_fragmentatie>=1||t.human_error>=1?"Chaos":t.handmatige_overdracht>=1||t.single_source_of_truth_missing>=1||t.rapportage_handwerk>=1?"Handmatig":t.decision_latency>=1||t.data_versnippering>=1||t.schaalbare_knelpunten>=1?"Groeiend":t.gedeeltelijke_integratie>=1||t.optimalisatie_drang>=1||t.leverage_ambitie>=1?"Automation-ready":t.ai_operationeel>=1||t.stabiele_architectuur>=1||t.schaalbaar_proces>=1?"AI-native":"Groeiend",Qq={single_source_of_truth_missing:"Centrale databron + automatische sync",decision_latency:"Realtime KPI snapshot + alerts",handmatige_overdracht:"Workflow automation via API of event-triggers",tool_fragmentatie:"Integratiehub met vaste datadefinities",data_versnippering:"Data warehouse met geautomatiseerde ETL",reactief_werken:"Proactieve monitoring + predictive alerts",human_error:"Validatie + automation van kritieke invoer",data_silo:"API-gedreven integraties tussen systemen",informatie_zoekverlies:"Centrale kennisbank met AI search",automation_blokkade:"Low-code automation platform"};function Yq(){const[t,n]=D.useState(0),[r,i]=D.useState([]),[s,a]=D.useState(null),[o,c]=D.useState(!1),d=_c[t],h=(t+1)/_c.length*100,f=p=>{const g=d.options[p];i([...r,{questionId:d.id,option:g}]),t<_c.length-1?setTimeout(()=>n(t+1),200):m([...r,{questionId:d.id,option:g}])},m=async p=>{var S;c(!0);const g={},y={};let j=0;p.forEach(E=>{E.option.signals.forEach(C=>{g[C]=(g[C]||0)+1}),E.option.themes.forEach(C=>{y[C]=(y[C]||0)+E.option.severity}),j+=E.option.severity});const v=Gq(g),x=Object.entries(g).map(([E,C])=>({signal:E,count:C})).sort((E,C)=>C.count-E.count).slice(0,3),N=Object.entries(y).sort((E,C)=>C[1]-E[1])[0][0],w=(S=x[0])==null?void 0:S.signal,k=Qq[w]||"Procesoptimalisatie + automation",A={level:v,top_signals:x.map(E=>E.signal),dominant_theme:N,suggested_intervention:k,peer_context:"MKB-bedrijven met vergelijkbare omvang"};try{const E=await ce.integrations.Core.InvokeLLM({prompt:`Je bent een kritische bedrijfsanalist voor MKB.
Je vermijdt open deuren en managementtaal.
Je benoemt gevolgen, vergelijkt met peers en confronteert.
Je verzint geen feiten buiten de input.
Als de analyse te braaf is, herschrijf je.
Gebruik het scan-profiel hieronder.
Regels:
- Benoem wat dit kost in tijd, focus of groeisnelheid
- Vergelijk met vergelijkbare MKB-bedrijven
- Benoem één ongemakkelijke waarheid
- Geef één concrete eerste ingreep
- Geen algemene termen zoals "te veel handmatig"
Scan-profiel:
${JSON.stringify(A,null,2)}
Geef je antwoord in dit formaat (gebruik deze exact koppen):`,response_json_schema:{type:"object",properties:{onderschatting:{type:"string",description:"Wat jullie waarschijnlijk onderschatten (2-3 zinnen)"},kosten:{type:"string",description:"Wat dit jullie nu echt kost (concreet, met cijfers waar mogelijk)"},peers:{type:"string",description:"Waarom dit bij anderen al anders is (vergelijking)"},eerste_ingreep:{type:"string",description:"Meest logische eerste ingreep (concreet)"},deelbare_uitspraak:{type:"string",description:"Eén deelbare uitspraak - max 12 woorden, schurend maar eerlijk"}}}}),C={level:v,scanProfile:A,llmOutput:E};a(C);try{await ce.functions.invoke("submitAIQuiz",C)}catch(B){console.error("Failed to save quiz submission:",B)}}catch(E){console.error("Error generating analysis:",E);const C={level:v,scanProfile:A,llmOutput:{onderschatting:`Je zit in de "${v}" fase. De grootste bottleneck zit in ${N}.`,kosten:"Dit kost je team waarschijnlijk 10-20 uur per week aan onnodige handmatigheid.",peers:"Vergelijkbare bedrijven zijn al verder met automatisering en data-centralisatie.",eerste_ingreep:k,deelbare_uitspraak:`${v}: Te veel tijd in ${N}`}};a(C);try{await ce.functions.invoke("submitAIQuiz",C)}catch(B){console.error("Failed to save quiz submission:",B)}}c(!1)};if(o)return e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-blue-50 to-white",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-32 text-center",children:e.jsxs(Z.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},children:[e.jsx("div",{className:"w-20 h-20 bg-blue-100 rounded-full flex items-center justify-center mx-auto mb-6",children:e.jsxs("svg",{className:"animate-spin w-10 h-10 text-blue-600",viewBox:"0 0 24 24",children:[e.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),e.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]})}),e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"We analyseren je antwoorden..."}),e.jsx("p",{className:"text-xl text-gray-600",children:"Dit duurt een paar seconden"})]})})});if(s){const{level:p,scanProfile:g,llmOutput:y}=s;return e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-gray-50 to-white",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-6 py-3 bg-gradient-to-r from-purple-600 to-pink-600 text-white rounded-full text-lg font-bold mb-6",children:[e.jsx(At,{className:"w-5 h-5"}),"Je niveau: ",p]}),e.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-4",children:y.deelbare_uitspraak})]}),e.jsxs("div",{className:"space-y-6 mb-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:"bg-white rounded-2xl p-8 border-2 border-red-100",children:[e.jsxs("div",{className:"flex items-start gap-3 mb-4",children:[e.jsx(Wo,{className:"w-6 h-6 text-red-600 flex-shrink-0 mt-1"}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Wat jullie waarschijnlijk onderschatten"})]}),e.jsx("p",{className:"text-lg text-gray-700 leading-relaxed",children:y.onderschatting})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"bg-white rounded-2xl p-8 border-2 border-orange-100",children:[e.jsxs("div",{className:"flex items-start gap-3 mb-4",children:[e.jsx(Ki,{className:"w-6 h-6 text-orange-600 flex-shrink-0 mt-1"}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Wat dit jullie nu echt kost"})]}),e.jsx("p",{className:"text-lg text-gray-700 leading-relaxed",children:y.kosten})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3},className:"bg-white rounded-2xl p-8 border-2 border-blue-100",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"Waarom dit bij anderen al anders is"}),e.jsx("p",{className:"text-lg text-gray-700 leading-relaxed",children:y.peers})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.4},className:"bg-gradient-to-r from-green-500 to-emerald-600 rounded-2xl p-8 text-white",children:[e.jsx("h2",{className:"text-2xl font-bold mb-4",children:"Meest logische eerste ingreep"}),e.jsx("p",{className:"text-xl leading-relaxed",children:y.eerste_ingreep})]})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.5},className:"bg-gray-100 rounded-2xl p-6 text-center mb-8",children:[e.jsxs("p",{className:"text-gray-700 mb-4 font-medium",children:['"',y.deelbare_uitspraak,'"']}),e.jsxs(ae,{onClick:()=>{navigator.share&&navigator.share({title:"48-7 AI Readiness Quiz",text:y.deelbare_uitspraak,url:window.location.href})},className:"bg-blue-600 hover:bg-blue-700 text-white",children:[e.jsx(iy,{className:"w-5 h-5 mr-2"}),"Deel je resultaat"]})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.6},className:"bg-gradient-to-r from-blue-600 to-indigo-600 rounded-2xl p-8 text-white text-center mb-6",children:[e.jsx("h3",{className:"text-2xl font-bold mb-3",children:"Krijg je volledig Impact Rapport"}),e.jsxs("p",{className:"text-blue-100 text-lg mb-6",children:['Gebaseerd op je "',p,'" niveau krijg je concrete AI-kansen, ROI berekeningen en een implementatie roadmap.']}),e.jsxs(de,{to:se("ImpactRapport")+`?level=${encodeURIComponent(p)}`,className:"inline-flex items-center justify-center gap-2 px-8 py-4 bg-white text-blue-700 font-bold text-lg rounded-xl hover:bg-gray-100 transition-all shadow-lg",children:[e.jsx(At,{className:"w-6 h-6"}),"Genereer mijn Impact Rapport",e.jsx($e,{className:"w-6 h-6"})]})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.7},className:"grid md:grid-cols-2 gap-6",children:[e.jsxs(de,{to:se("Contact")+`?ref=quiz&level=${encodeURIComponent(p)}`,className:"bg-gray-900 rounded-2xl p-6 text-white hover:shadow-xl transition-all",children:[e.jsx("h3",{className:"text-xl font-bold mb-2",children:"15-minuten Consult"}),e.jsx("p",{className:"text-gray-300 mb-4",children:"Bespreek je specifieke situatie en krijg direct advies voor de eerste stappen."}),e.jsxs("div",{className:"inline-flex items-center gap-2 font-semibold",children:[e.jsx(Or,{className:"w-5 h-5"}),"Plan een gesprek"]})]}),e.jsxs(de,{to:se("Training"),className:"bg-purple-600 rounded-2xl p-6 text-white hover:shadow-xl transition-all",children:[e.jsx("h3",{className:"text-xl font-bold mb-2",children:"Relevante Trainingen"}),e.jsxs("p",{className:"text-purple-100 mb-4",children:["Maak je team klaar voor de ",p==="AI-native"?"volgende":"AI"," transformatie."]}),e.jsxs("div",{className:"inline-flex items-center gap-2 font-semibold",children:["Bekijk trainingen ",e.jsx($e,{className:"w-5 h-5"})]})]})]})]})})}return e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-blue-50 to-white",children:e.jsxs("div",{className:"max-w-2xl mx-auto px-4 sm:px-6 lg:px-8 py-20",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-blue-100 rounded-full text-blue-700 text-sm font-medium mb-6",children:[e.jsx(At,{className:"w-4 h-4"}),"AI Readiness Quiz"]}),e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Ontdek je AI potentieel"}),e.jsxs("p",{className:"text-gray-600",children:[_c.length," eerlijke vragen. Geen open deuren."]})]}),e.jsxs("div",{className:"mb-8",children:[e.jsxs("div",{className:"flex justify-between text-sm text-gray-500 mb-2",children:[e.jsxs("span",{children:["Vraag ",t+1," van ",_c.length]}),e.jsxs("span",{children:[Math.round(h),"%"]})]}),e.jsx("div",{className:"h-2 bg-gray-200 rounded-full overflow-hidden",children:e.jsx(Z.div,{className:"h-full bg-gradient-to-r from-blue-600 to-blue-500 rounded-full",initial:{width:0},animate:{width:`${h}%`},transition:{duration:.3}})})]}),e.jsx(Cr,{mode:"wait",children:e.jsxs(Z.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},className:"bg-white rounded-2xl p-8 shadow-sm border border-gray-100",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:d.question}),e.jsx("div",{className:"space-y-3",children:d.options.map((p,g)=>e.jsx("button",{onClick:()=>f(g),className:"w-full p-5 rounded-xl border-2 border-gray-200 text-left transition-all hover:border-blue-300 hover:bg-blue-50 hover:shadow-md",children:e.jsx("p",{className:"font-semibold text-gray-900 text-lg",children:p.label})},g))})]},t)}),t>0&&e.jsxs("button",{onClick:()=>{n(t-1),i(r.slice(0,-1))},className:"mt-6 flex items-center gap-2 text-gray-600 hover:text-gray-900 transition-colors",children:[e.jsx(ht,{className:"w-4 h-4"}),"Vorige vraag"]})]})})}function Xq(){return e.jsx("div",{className:"pt-20 min-h-screen bg-white",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:e.jsxs("div",{className:"bg-[#F4F4F4] rounded-3xl p-12",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[e.jsx(At,{className:"w-12 h-12 text-[#FAB868]"}),e.jsx("h1",{className:"text-5xl font-bold text-[#0D0D0F]",children:"AI Quiz"})]}),e.jsxs("div",{className:"prose max-w-none prose-headings:text-[#0D0D0F]",children:[e.jsx("h2",{children:"Overzicht"}),e.jsx("p",{children:"De AI Readiness Quiz is een interactieve, 10-vraag deterministische quiz die bedrijven classificeert in AI-gereedheid levels op basis van signaal-analyse. Het genereert een scherp, confronterend resultaat met LLM-gegenereerde teksten."}),e.jsx("h2",{children:"Architectuur"}),e.jsx("h3",{children:"Frontend: pages/AIQuiz.jsx"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Framework:"})," React met multi-step state management"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Logic:"})," Signal-based deterministic classification"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Backend:"})," Geen dedicated function - LLM direct via Core.InvokeLLM"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Flow:"}),e.jsxs("ol",{children:[e.jsx("li",{children:"10 vragen met 4 opties elk"}),e.jsx("li",{children:"Signalen en severity worden verzameld"}),e.jsx("li",{children:"Level wordt bepaald via signal counts"}),e.jsx("li",{children:"LLM genereert scherpe, eerlijke teksten"}),e.jsx("li",{children:"Results met CTAs naar Impact Report en Contact"})]})]})]}),e.jsx("h2",{children:"10 Quiz Vragen"}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"bg-gray-50 p-4 rounded-lg",children:[e.jsx("h4",{className:"font-bold mb-2",children:"1. Chaos"}),e.jsx("p",{className:"text-sm mb-2",children:'"Wat is de grootste bron van chaos op een doorsnee werkdag?"'}),e.jsxs("p",{className:"text-xs text-gray-600",children:[e.jsx("strong",{children:"Signalen:"})," context_switching, informele_afstemming, single_source_of_truth_missing, systeem_onbetrouwbaar, onduidelijke_verantwoordelijkheid"]}),e.jsxs("p",{className:"text-xs text-gray-600",children:[e.jsx("strong",{children:"Themes:"})," informatie, proces, data, tooling, ownership"]})]}),e.jsxs("div",{className:"bg-gray-50 p-4 rounded-lg",children:[e.jsx("h4",{className:"font-bold mb-2",children:"2. Herhaalwerk"}),e.jsx("p",{className:"text-sm mb-2",children:'"Waar gaat de meeste tijd in zitten aan herhaalwerk?"'}),e.jsxs("p",{className:"text-xs text-gray-600",children:[e.jsx("strong",{children:"Signalen:"})," handmatige_overdracht, rapportage_handwerk, status_fragmenteel, foutcorrectie_cyclus"]}),e.jsxs("p",{className:"text-xs text-gray-600",children:[e.jsx("strong",{children:"Themes:"})," integratie, data, communicatie, kwaliteit"]})]}),e.jsxs("div",{className:"bg-gray-50 p-4 rounded-lg",children:[e.jsx("h4",{className:"font-bold mb-2",children:"3. Besluitvorming"}),e.jsx("p",{className:"text-sm mb-2",children:'"Hoe neem je belangrijke beslissingen?"'}),e.jsxs("p",{className:"text-xs text-gray-600",children:[e.jsx("strong",{children:"Signalen:"})," besluit_op_intuitie, data_versnippering, gecentraliseerd_inzicht, decision_latency"]}),e.jsxs("p",{className:"text-xs text-gray-600",children:[e.jsx("strong",{children:"Themes:"})," besluitvorming, data"]})]}),e.jsxs("div",{className:"bg-gray-50 p-4 rounded-lg",children:[e.jsx("h4",{className:"font-bold mb-2",children:"4. Schaalbaarheid"}),e.jsx("p",{className:"text-sm mb-2",children:'"Wat gebeurt er als jullie plotseling 30% meer orders krijgen?"'}),e.jsxs("p",{className:"text-xs text-gray-600",children:[e.jsx("strong",{children:"Signalen:"})," groei_instabiliteit, groei_door_headcount, schaalbare_knelpunten, schaalbaar_proces"]})]}),e.jsxs("div",{className:"bg-gray-50 p-4 rounded-lg",children:[e.jsx("h4",{className:"font-bold mb-2",children:"5. Systemenlandschap"}),e.jsx("p",{className:"text-sm mb-2",children:'"Hoe zou je je systemenlandschap omschrijven?"'}),e.jsxs("p",{className:"text-xs text-gray-600",children:[e.jsx("strong",{children:"Signalen:"})," tool_fragmentatie, fragiele_koppelingen, gedeeltelijke_integratie, stabiele_architectuur"]})]}),e.jsx("p",{className:"text-sm text-gray-500 italic",children:"+ 5 meer vragen over fouten, tijdverlies, AI adoptie, frustratie en ambitie"})]}),e.jsx("h2",{children:"Signal-Based Level Determination"}),e.jsx("pre",{className:"bg-gray-100 p-4 rounded-lg overflow-x-auto",children:`determineLevel(signalCounts) {
// Chaos
if (reactief_werken >= 1 OR
tool_fragmentatie >= 1 OR
human_error >= 1)
return "Chaos"
// Handmatig
if (handmatige_overdracht >= 1 OR
single_source_of_truth_missing >= 1 OR
rapportage_handwerk >= 1)
return "Handmatig"
// Groeiend
if (decision_latency >= 1 OR
data_versnippering >= 1 OR
schaalbare_knelpunten >= 1)
return "Groeiend"
// Automation-ready
if (gedeeltelijke_integratie >= 1 OR
optimalisatie_drang >= 1 OR
leverage_ambitie >= 1)
return "Automation-ready"
// AI-native
if (ai_operationeel >= 1 OR
stabiele_architectuur >= 1 OR
schaalbaar_proces >= 1)
return "AI-native"
return "Groeiend" // Default
}`}),e.jsx("h2",{children:"Intervention Library"}),e.jsx("p",{children:"Concrete interventies per signaal:"}),e.jsx("pre",{className:"bg-gray-100 p-4 rounded-lg overflow-x-auto text-sm",children:`const interventions = {
single_source_of_truth_missing:
"Centrale databron + automatische sync",
decision_latency:
"Realtime KPI snapshot + alerts",
handmatige_overdracht:
"Workflow automation via API of event-triggers",
tool_fragmentatie:
"Integratiehub met vaste datadefinities",
data_versnippering:
"Data warehouse met geautomatiseerde ETL",
reactief_werken:
"Proactieve monitoring + predictive alerts",
human_error:
"Validatie + automation van kritieke invoer",
data_silo:
"API-gedreven integraties tussen systemen",
informatie_zoekverlies:
"Centrale kennisbank met AI search",
automation_blokkade:
"Low-code automation platform"
}`}),e.jsx("h2",{children:"LLM-Generated Results"}),e.jsx("h3",{children:"Scan Profile"}),e.jsx("pre",{className:"bg-gray-100 p-4 rounded-lg",children:`{
level: "Chaos|Handmatig|Groeiend|Automation-ready|AI-native",
top_signals: ["signaal_1", "signaal_2", "signaal_3"],
dominant_theme: "hoogste_scoring_theme",
suggested_intervention: "intervention_from_library",
peer_context: "MKB-bedrijven met vergelijkbare omvang"
}`}),e.jsx("h3",{children:"LLM Prompt"}),e.jsx("pre",{className:"bg-gray-100 p-4 rounded-lg overflow-x-auto",children:`Je bent een kritische bedrijfsanalist voor MKB.
Je vermijdt open deuren en managementtaal.
Je benoemt gevolgen, vergelijkt met peers en confronteert.
Je verzint geen feiten buiten de input.
Als de analyse te braaf is, herschrijf je.
Regels:
- Benoem wat dit kost in tijd, focus of groeisnelheid
- Vergelijk met vergelijkbare MKB-bedrijven
- Benoem één ongemakkelijke waarheid
- Geef één concrete eerste ingreep
- Geen algemene termen zoals "te veel handmatig"
Scan-profiel: {scanProfile JSON}`}),e.jsx("h3",{children:"LLM JSON Schema Output"}),e.jsx("pre",{className:"bg-gray-100 p-4 rounded-lg",children:`{
"onderschatting":
"Wat jullie waarschijnlijk onderschatten (2-3 zinnen)",
"kosten":
"Wat dit jullie nu echt kost (concreet, met cijfers)",
"peers":
"Waarom dit bij anderen al anders is (vergelijking)",
"eerste_ingreep":
"Meest logische eerste ingreep (concreet)",
"deelbare_uitspraak":
"Eén deelbare uitspraak - max 12 woorden"
}`}),e.jsx("h2",{children:"Results Display"}),e.jsx("h3",{children:"1. Hero"}),e.jsxs("div",{className:"bg-gradient-to-r from-purple-600 to-pink-600 text-white p-4 rounded-lg mb-4",children:[e.jsxs("span",{className:"inline-block px-4 py-2 bg-white/20 rounded-full text-sm font-bold mb-2",children:[e.jsx(At,{className:"w-4 h-4 inline mr-1"}),"Je niveau: Groeiend"]}),e.jsx("h3",{className:"text-2xl font-bold",children:"Deelbare uitspraak komt hier"})]}),e.jsx("h3",{children:"2. Analyse Secties"}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"p-4 border-2 border-red-100 bg-white rounded-xl",children:[e.jsxs("div",{className:"flex items-start gap-2 mb-2",children:[e.jsx($a,{className:"w-5 h-5 text-red-600 mt-1"}),e.jsx("h4",{className:"font-bold",children:"Wat jullie waarschijnlijk onderschatten"})]}),e.jsx("p",{className:"text-sm text-gray-600",children:"LLM output: onderschatting"})]}),e.jsxs("div",{className:"p-4 border-2 border-orange-100 bg-white rounded-xl",children:[e.jsxs("div",{className:"flex items-start gap-2 mb-2",children:[e.jsx(Ki,{className:"w-5 h-5 text-orange-600 mt-1"}),e.jsx("h4",{className:"font-bold",children:"Wat dit jullie nu echt kost"})]}),e.jsx("p",{className:"text-sm text-gray-600",children:"LLM output: kosten (concreet, met cijfers)"})]}),e.jsxs("div",{className:"p-4 border-2 border-blue-100 bg-white rounded-xl",children:[e.jsx("h4",{className:"font-bold mb-1",children:"Waarom dit bij anderen al anders is"}),e.jsx("p",{className:"text-sm text-gray-600",children:"LLM output: peers (vergelijking)"})]}),e.jsxs("div",{className:"p-4 bg-gradient-to-r from-green-500 to-emerald-600 text-white rounded-xl",children:[e.jsx("h4",{className:"font-bold mb-1",children:"Meest logische eerste ingreep"}),e.jsx("p",{className:"text-sm",children:"LLM output: eerste_ingreep"})]})]}),e.jsx("h3",{children:"3. Share Functie"}),e.jsx("p",{children:"Native Web Share API voor deelbare uitspraak"}),e.jsx("h3",{children:"4. Call-to-Actions"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Primary:"}),' "Genereer mijn Impact Rapport" → /ImpactRapport?level={level}']}),e.jsxs("li",{children:[e.jsx("strong",{children:"Secondary 1:"}),' "15-minuten Consult" → /Contact?ref=quiz&level={level}']}),e.jsxs("li",{children:[e.jsx("strong",{children:"Secondary 2:"}),' "Relevante Trainingen" → /Training']})]}),e.jsx("h2",{children:"De 5 Levels"}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"p-4 bg-red-50 border-2 border-red-200 rounded-lg",children:[e.jsx("h4",{className:"font-bold text-red-900 mb-2",children:"Chaos"}),e.jsxs("p",{className:"text-sm text-red-800 mb-2",children:[e.jsx("strong",{children:"Kenmerken:"})," Brandjes blussen, systemen werken niet samen, veel menselijke fouten"]}),e.jsxs("p",{className:"text-sm text-red-700",children:[e.jsx("strong",{children:"Interventie Focus:"})," Stabiliseren, overzicht creëren"]})]}),e.jsxs("div",{className:"p-4 bg-orange-50 border-2 border-orange-200 rounded-lg",children:[e.jsx("h4",{className:"font-bold text-orange-900 mb-2",children:"Handmatig"}),e.jsxs("p",{className:"text-sm text-orange-800 mb-2",children:[e.jsx("strong",{children:"Kenmerken:"})," Data overtypen, Excel als waarheid, rapportage handwerk"]}),e.jsxs("p",{className:"text-sm text-orange-700",children:[e.jsx("strong",{children:"Interventie Focus:"})," Automatiseren, integreren"]})]}),e.jsxs("div",{className:"p-4 bg-yellow-50 border-2 border-yellow-200 rounded-lg",children:[e.jsx("h4",{className:"font-bold text-yellow-900 mb-2",children:"Groeiend"}),e.jsxs("p",{className:"text-sm text-yellow-800 mb-2",children:[e.jsx("strong",{children:"Kenmerken:"})," Beslissingen op gevoel, informatie versnipperd, groei kost mensen"]}),e.jsxs("p",{className:"text-sm text-yellow-700",children:[e.jsx("strong",{children:"Interventie Focus:"})," Data centraliseren, workflows optimaliseren"]})]}),e.jsxs("div",{className:"p-4 bg-blue-50 border-2 border-blue-200 rounded-lg",children:[e.jsx("h4",{className:"font-bold text-blue-900 mb-2",children:"Automation-ready"}),e.jsxs("p",{className:"text-sm text-blue-800 mb-2",children:[e.jsx("strong",{children:"Kenmerken:"})," Systemen deels geïntegreerd, wil slimmer werken, groei zonder headcount"]}),e.jsxs("p",{className:"text-sm text-blue-700",children:[e.jsx("strong",{children:"Interventie Focus:"})," AI agents, advanced automation"]})]}),e.jsxs("div",{className:"p-4 bg-green-50 border-2 border-green-200 rounded-lg",children:[e.jsx("h4",{className:"font-bold text-green-900 mb-2",children:"AI-native"}),e.jsxs("p",{className:"text-sm text-green-800 mb-2",children:[e.jsx("strong",{children:"Kenmerken:"})," AI is operationeel, stabiele architectuur, schaalbare processen"]}),e.jsxs("p",{className:"text-sm text-green-700",children:[e.jsx("strong",{children:"Interventie Focus:"})," Innoveren, vooroplopen"]})]})]}),e.jsx("h2",{children:"LLM Gebruik"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Provider:"})," OpenAI (via Base44 Core.InvokeLLM)"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Toon:"})," Kritisch, confronterend, concreet"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Anti-patterns:"})," Geen managementjargon, open deuren"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Fallback:"})," Rule-based output als LLM faalt"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Verwerkingstijd:"})," 3-5 seconden"]})]}),e.jsx("h2",{children:"Data Structure per Vraag"}),e.jsx("pre",{className:"bg-gray-100 p-4 rounded-lg text-sm",children:`{
id: number,
question: "string",
options: [
{
label: "string",
themes: ["string"],
signals: ["string"],
severity: 0-3 // 0=positief, 3=problematisch
}
]
}`}),e.jsx("h2",{children:"Performance"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Frontend-only logic:"})," Zeer snel"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Single LLM call:"})," Alleen voor tekstgeneratie"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Deterministische classificatie:"})," Consistent"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Instant feedback:"})," Op vraag selectie"]})]}),e.jsx("h2",{children:"Files"}),e.jsx("ul",{className:"font-mono text-sm",children:e.jsx("li",{children:"pages/AIQuiz.jsx - Complete quiz component (frontend-only)"})}),e.jsx("h2",{children:"Integraties"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Impact Report:"})," Level wordt doorgegeven als query parameter"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Contact:"})," Quiz referentie + level in URL"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Training:"})," Algemene link zonder parameters"]})]})]})]})})})}function bn(t){const n=Object.prototype.toString.call(t);return t instanceof Date||typeof t=="object"&&n==="[object Date]"?new t.constructor(+t):typeof t=="number"||n==="[object Number]"||typeof t=="string"||n==="[object String]"?new Date(t):new Date(NaN)}function Qi(t,n){return t instanceof Date?new t.constructor(n):new Date(n)}function qE(t,n){const r=bn(t);if(isNaN(n))return Qi(t,NaN);if(!n)return r;const i=r.getDate(),s=Qi(t,r.getTime());s.setMonth(r.getMonth()+n+1,0);const a=s.getDate();return i>=a?s:(r.setFullYear(s.getFullYear(),s.getMonth(),i),r)}const VE=6048e5,Jq=864e5;let Zq={};function Af(){return Zq}function pu(t,n){var c,d,h,f;const r=Af(),i=(n==null?void 0:n.weekStartsOn)??((d=(c=n==null?void 0:n.locale)==null?void 0:c.options)==null?void 0:d.weekStartsOn)??r.weekStartsOn??((f=(h=r.locale)==null?void 0:h.options)==null?void 0:f.weekStartsOn)??0,s=bn(t),a=s.getDay(),o=(a<i?7:0)+a-i;return s.setDate(s.getDate()-o),s.setHours(0,0,0,0),s}function Zh(t){return pu(t,{weekStartsOn:1})}function UE(t){const n=bn(t),r=n.getFullYear(),i=Qi(t,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const s=Zh(i),a=Qi(t,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const o=Zh(a);return n.getTime()>=s.getTime()?r+1:n.getTime()>=o.getTime()?r:r-1}function pl(t){const n=bn(t);return n.setHours(0,0,0,0),n}function Xk(t){const n=bn(t),r=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return r.setUTCFullYear(n.getFullYear()),+t-+r}function eV(t,n){const r=pl(t),i=pl(n),s=+r-Xk(r),a=+i-Xk(i);return Math.round((s-a)/Jq)}function tV(t){const n=UE(t),r=Qi(t,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Zh(r)}function nV(t,n){const r=pl(t),i=pl(n);return+r==+i}function rV(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function iV(t){if(!rV(t)&&typeof t!="number")return!1;const n=bn(t);return!isNaN(Number(n))}function sV(t){const n=bn(t),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function aV(t,n){const r=bn(t.start),i=bn(t.end);let s=+r>+i;const a=s?+r:+i,o=s?i:r;o.setHours(0,0,0,0);let c=1;const d=[];for(;+o<=a;)d.push(bn(o)),o.setDate(o.getDate()+c),o.setHours(0,0,0,0);return s?d.reverse():d}function oV(t){const n=bn(t);return n.setDate(1),n.setHours(0,0,0,0),n}function lV(t){const n=bn(t),r=Qi(t,0);return r.setFullYear(n.getFullYear(),0,1),r.setHours(0,0,0,0),r}const cV={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"}},uV=(t,n,r)=>{let i;const s=cV[t];return typeof s=="string"?i=s:n===1?i=s.one:i=s.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};function Ko(t){return(n={})=>{const r=n.width?String(n.width):t.defaultWidth;return t.formats[r]||t.formats[t.defaultWidth]}}const dV={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},hV={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},fV={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},mV={date:Ko({formats:dV,defaultWidth:"full"}),time:Ko({formats:hV,defaultWidth:"full"}),dateTime:Ko({formats:fV,defaultWidth:"full"})},pV={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},gV=(t,n,r,i)=>pV[t];function oi(t){return(n,r)=>{const i=r!=null&&r.context?String(r.context):"standalone";let s;if(i==="formatting"&&t.formattingValues){const o=t.defaultFormattingWidth||t.defaultWidth,c=r!=null&&r.width?String(r.width):o;s=t.formattingValues[c]||t.formattingValues[o]}else{const o=t.defaultWidth,c=r!=null&&r.width?String(r.width):t.defaultWidth;s=t.values[c]||t.values[o]}const a=t.argumentCallback?t.argumentCallback(n):n;return s[a]}}const xV={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},vV={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},yV={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"]},bV={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"]},jV={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"}},wV={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"}},NV=(t,n)=>{const r=Number(t),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},kV={ordinalNumber:NV,era:oi({values:xV,defaultWidth:"wide"}),quarter:oi({values:vV,defaultWidth:"wide",argumentCallback:t=>t-1}),month:oi({values:yV,defaultWidth:"wide"}),day:oi({values:bV,defaultWidth:"wide"}),dayPeriod:oi({values:jV,defaultWidth:"wide",formattingValues:wV,defaultFormattingWidth:"wide"})};function li(t){return(n,r={})=>{const i=r.width,s=i&&t.matchPatterns[i]||t.matchPatterns[t.defaultMatchWidth],a=n.match(s);if(!a)return null;const o=a[0],c=i&&t.parsePatterns[i]||t.parsePatterns[t.defaultParseWidth],d=Array.isArray(c)?SV(c,m=>m.test(o)):_V(c,m=>m.test(o));let h;h=t.valueCallback?t.valueCallback(d):d,h=r.valueCallback?r.valueCallback(h):h;const f=n.slice(o.length);return{value:h,rest:f}}}function _V(t,n){for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n(t[r]))return r}function SV(t,n){for(let r=0;r<t.length;r++)if(n(t[r]))return r}function $E(t){return(n,r={})=>{const i=n.match(t.matchPattern);if(!i)return null;const s=i[0],a=n.match(t.parsePattern);if(!a)return null;let o=t.valueCallback?t.valueCallback(a[0]):a[0];o=r.valueCallback?r.valueCallback(o):o;const c=n.slice(s.length);return{value:o,rest:c}}}const AV=/^(\d+)(th|st|nd|rd)?/i,CV=/\d+/i,EV={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},TV={any:[/^b/i,/^(a|c)/i]},OV={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},PV={any:[/1/i,/2/i,/3/i,/4/i]},DV={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},IV={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]},RV={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},FV={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]},MV={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},LV={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}},BV={ordinalNumber:$E({matchPattern:AV,parsePattern:CV,valueCallback:t=>parseInt(t,10)}),era:li({matchPatterns:EV,defaultMatchWidth:"wide",parsePatterns:TV,defaultParseWidth:"any"}),quarter:li({matchPatterns:OV,defaultMatchWidth:"wide",parsePatterns:PV,defaultParseWidth:"any",valueCallback:t=>t+1}),month:li({matchPatterns:DV,defaultMatchWidth:"wide",parsePatterns:IV,defaultParseWidth:"any"}),day:li({matchPatterns:RV,defaultMatchWidth:"wide",parsePatterns:FV,defaultParseWidth:"any"}),dayPeriod:li({matchPatterns:MV,defaultMatchWidth:"any",parsePatterns:LV,defaultParseWidth:"any"})},zV={code:"en-US",formatDistance:uV,formatLong:mV,formatRelative:gV,localize:kV,match:BV,options:{weekStartsOn:0,firstWeekContainsDate:1}};function qV(t){const n=bn(t);return eV(n,lV(n))+1}function VV(t){const n=bn(t),r=+Zh(n)-+tV(n);return Math.round(r/VE)+1}function HE(t,n){var f,m,p,g;const r=bn(t),i=r.getFullYear(),s=Af(),a=(n==null?void 0:n.firstWeekContainsDate)??((m=(f=n==null?void 0:n.locale)==null?void 0:f.options)==null?void 0:m.firstWeekContainsDate)??s.firstWeekContainsDate??((g=(p=s.locale)==null?void 0:p.options)==null?void 0:g.firstWeekContainsDate)??1,o=Qi(t,0);o.setFullYear(i+1,0,a),o.setHours(0,0,0,0);const c=pu(o,n),d=Qi(t,0);d.setFullYear(i,0,a),d.setHours(0,0,0,0);const h=pu(d,n);return r.getTime()>=c.getTime()?i+1:r.getTime()>=h.getTime()?i:i-1}function UV(t,n){var c,d,h,f;const r=Af(),i=(n==null?void 0:n.firstWeekContainsDate)??((d=(c=n==null?void 0:n.locale)==null?void 0:c.options)==null?void 0:d.firstWeekContainsDate)??r.firstWeekContainsDate??((f=(h=r.locale)==null?void 0:h.options)==null?void 0:f.firstWeekContainsDate)??1,s=HE(t,n),a=Qi(t,0);return a.setFullYear(s,0,i),a.setHours(0,0,0,0),pu(a,n)}function $V(t,n){const r=bn(t),i=+pu(r,n)-+UV(r,n);return Math.round(i/VE)+1}function Tt(t,n){const r=t<0?"-":"",i=Math.abs(t).toString().padStart(n,"0");return r+i}const ks={y(t,n){const r=t.getFullYear(),i=r>0?r:1-r;return Tt(n==="yy"?i%100:i,n.length)},M(t,n){const r=t.getMonth();return n==="M"?String(r+1):Tt(r+1,2)},d(t,n){return Tt(t.getDate(),n.length)},a(t,n){const r=t.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(t,n){return Tt(t.getHours()%12||12,n.length)},H(t,n){return Tt(t.getHours(),n.length)},m(t,n){return Tt(t.getMinutes(),n.length)},s(t,n){return Tt(t.getSeconds(),n.length)},S(t,n){const r=n.length,i=t.getMilliseconds(),s=Math.trunc(i*Math.pow(10,r-3));return Tt(s,n.length)}},Oo={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Jk={G:function(t,n,r){const i=t.getFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});case"GGGG":default:return r.era(i,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){const i=t.getFullYear(),s=i>0?i:1-i;return r.ordinalNumber(s,{unit:"year"})}return ks.y(t,n)},Y:function(t,n,r,i){const s=HE(t,i),a=s>0?s:1-s;if(n==="YY"){const o=a%100;return Tt(o,2)}return n==="Yo"?r.ordinalNumber(a,{unit:"year"}):Tt(a,n.length)},R:function(t,n){const r=UE(t);return Tt(r,n.length)},u:function(t,n){const r=t.getFullYear();return Tt(r,n.length)},Q:function(t,n,r){const i=Math.ceil((t.getMonth()+1)/3);switch(n){case"Q":return String(i);case"QQ":return Tt(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,n,r){const i=Math.ceil((t.getMonth()+1)/3);switch(n){case"q":return String(i);case"qq":return Tt(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,n,r){const i=t.getMonth();switch(n){case"M":case"MM":return ks.M(t,n);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(t,n,r){const i=t.getMonth();switch(n){case"L":return String(i+1);case"LL":return Tt(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(t,n,r,i){const s=$V(t,i);return n==="wo"?r.ordinalNumber(s,{unit:"week"}):Tt(s,n.length)},I:function(t,n,r){const i=VV(t);return n==="Io"?r.ordinalNumber(i,{unit:"week"}):Tt(i,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getDate(),{unit:"date"}):ks.d(t,n)},D:function(t,n,r){const i=qV(t);return n==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):Tt(i,n.length)},E:function(t,n,r){const i=t.getDay();switch(n){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});case"EEEE":default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(t,n,r,i){const s=t.getDay(),a=(s-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(a);case"ee":return Tt(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(s,{width:"short",context:"formatting"});case"eeee":default:return r.day(s,{width:"wide",context:"formatting"})}},c:function(t,n,r,i){const s=t.getDay(),a=(s-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(a);case"cc":return Tt(a,n.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(s,{width:"narrow",context:"standalone"});case"cccccc":return r.day(s,{width:"short",context:"standalone"});case"cccc":default:return r.day(s,{width:"wide",context:"standalone"})}},i:function(t,n,r){const i=t.getDay(),s=i===0?7:i;switch(n){case"i":return String(s);case"ii":return Tt(s,n.length);case"io":return r.ordinalNumber(s,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});case"iiii":default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(t,n,r){const s=t.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(t,n,r){const i=t.getHours();let s;switch(i===12?s=Oo.noon:i===0?s=Oo.midnight:s=i/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(t,n,r){const i=t.getHours();let s;switch(i>=17?s=Oo.evening:i>=12?s=Oo.afternoon:i>=4?s=Oo.morning:s=Oo.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){let i=t.getHours()%12;return i===0&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return ks.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getHours(),{unit:"hour"}):ks.H(t,n)},K:function(t,n,r){const i=t.getHours()%12;return n==="Ko"?r.ordinalNumber(i,{unit:"hour"}):Tt(i,n.length)},k:function(t,n,r){let i=t.getHours();return i===0&&(i=24),n==="ko"?r.ordinalNumber(i,{unit:"hour"}):Tt(i,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getMinutes(),{unit:"minute"}):ks.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getSeconds(),{unit:"second"}):ks.s(t,n)},S:function(t,n){return ks.S(t,n)},X:function(t,n,r){const i=t.getTimezoneOffset();if(i===0)return"Z";switch(n){case"X":return e2(i);case"XXXX":case"XX":return _a(i);case"XXXXX":case"XXX":default:return _a(i,":")}},x:function(t,n,r){const i=t.getTimezoneOffset();switch(n){case"x":return e2(i);case"xxxx":case"xx":return _a(i);case"xxxxx":case"xxx":default:return _a(i,":")}},O:function(t,n,r){const i=t.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+Zk(i,":");case"OOOO":default:return"GMT"+_a(i,":")}},z:function(t,n,r){const i=t.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+Zk(i,":");case"zzzz":default:return"GMT"+_a(i,":")}},t:function(t,n,r){const i=Math.trunc(t.getTime()/1e3);return Tt(i,n.length)},T:function(t,n,r){const i=t.getTime();return Tt(i,n.length)}};function Zk(t,n=""){const r=t>0?"-":"+",i=Math.abs(t),s=Math.trunc(i/60),a=i%60;return a===0?r+String(s):r+String(s)+n+Tt(a,2)}function e2(t,n){return t%60===0?(t>0?"-":"+")+Tt(Math.abs(t)/60,2):_a(t,n)}function _a(t,n=""){const r=t>0?"-":"+",i=Math.abs(t),s=Tt(Math.trunc(i/60),2),a=Tt(i%60,2);return r+s+n+a}const t2=(t,n)=>{switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},WE=(t,n)=>{switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},HV=(t,n)=>{const r=t.match(/(P+)(p+)?/)||[],i=r[1],s=r[2];if(!s)return t2(t,n);let a;switch(i){case"P":a=n.dateTime({width:"short"});break;case"PP":a=n.dateTime({width:"medium"});break;case"PPP":a=n.dateTime({width:"long"});break;case"PPPP":default:a=n.dateTime({width:"full"});break}return a.replace("{{date}}",t2(i,n)).replace("{{time}}",WE(s,n))},WV={p:WE,P:HV},KV=/^D+$/,GV=/^Y+$/,QV=["D","DD","YY","YYYY"];function YV(t){return KV.test(t)}function XV(t){return GV.test(t)}function JV(t,n,r){const i=ZV(t,n,r);if(console.warn(i),QV.includes(t))throw new RangeError(i)}function ZV(t,n,r){const i=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${n}\`) for formatting ${i} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const eU=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,tU=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,nU=/^'([^]*?)'?$/,rU=/''/g,iU=/[a-zA-Z]/;function jt(t,n,r){var f,m,p,g,y,j,v,x;const i=Af(),s=(r==null?void 0:r.locale)??i.locale??zV,a=(r==null?void 0:r.firstWeekContainsDate)??((m=(f=r==null?void 0:r.locale)==null?void 0:f.options)==null?void 0:m.firstWeekContainsDate)??i.firstWeekContainsDate??((g=(p=i.locale)==null?void 0:p.options)==null?void 0:g.firstWeekContainsDate)??1,o=(r==null?void 0:r.weekStartsOn)??((j=(y=r==null?void 0:r.locale)==null?void 0:y.options)==null?void 0:j.weekStartsOn)??i.weekStartsOn??((x=(v=i.locale)==null?void 0:v.options)==null?void 0:x.weekStartsOn)??0,c=bn(t);if(!iV(c))throw new RangeError("Invalid time value");let d=n.match(tU).map(N=>{const w=N[0];if(w==="p"||w==="P"){const k=WV[w];return k(N,s.formatLong)}return N}).join("").match(eU).map(N=>{if(N==="''")return{isToken:!1,value:"'"};const w=N[0];if(w==="'")return{isToken:!1,value:sU(N)};if(Jk[w])return{isToken:!0,value:N};if(w.match(iU))throw new RangeError("Format string contains an unescaped latin alphabet character `"+w+"`");return{isToken:!1,value:N}});s.localize.preprocessor&&(d=s.localize.preprocessor(c,d));const h={firstWeekContainsDate:a,weekStartsOn:o,locale:s};return d.map(N=>{if(!N.isToken)return N.value;const w=N.value;(!(r!=null&&r.useAdditionalWeekYearTokens)&&XV(w)||!(r!=null&&r.useAdditionalDayOfYearTokens)&&YV(w))&&JV(w,n,String(t));const k=Jk[w[0]];return k(c,w,s.localize,h)}).join("")}function sU(t){const n=t.match(nU);return n?n[1].replace(rU,"'"):t}function KE(t){return+bn(t)<Date.now()}function aU(t,n){return qE(t,-1)}function oU(){var o,c;const[t,n]=D.useState(null),{data:r=[],isLoading:i}=Fe({queryKey:["ai-quiz-submissions"],queryFn:()=>ce.entities.AIQuizSubmission.list("-created_date")}),s=()=>{const d=[["Email","Naam","Bedrijf","AI Niveau","Score","Datum"],...r.map(m=>[m.email||"",m.name||"",m.company||"",m.level,m.score,jt(new Date(m.created_date),"dd-MM-yyyy HH:mm")])].map(m=>m.join(",")).join(`
`),h=new Blob([d],{type:"text/csv;charset=utf-8;"}),f=document.createElement("a");f.href=URL.createObjectURL(h),f.download=`ai-quiz-submissions-${jt(new Date,"dd-MM-yyyy")}.csv`,f.click()},a=d=>({Chaos:"bg-red-100 text-red-800",Handmatig:"bg-orange-100 text-orange-800",Groeiend:"bg-yellow-100 text-yellow-800","Automation-ready":"bg-blue-100 text-blue-800","AI-native":"bg-green-100 text-green-800"})[d]||"bg-gray-100 text-gray-800";return e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs("div",{className:"flex items-center justify-between mb-8",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx(de,{to:se("AdminDashboard"),children:e.jsx(ae,{variant:"outline",size:"icon",children:e.jsx(ht,{className:"w-5 h-5"})})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-3xl font-bold text-gray-900",children:"AI Quiz Resultaten"}),e.jsxs("p",{className:"text-gray-600",children:[r.length," quizzen ingevuld"]})]})]}),e.jsxs(ae,{onClick:s,disabled:r.length===0,children:[e.jsx(yl,{className:"w-4 h-4 mr-2"}),"Exporteer CSV"]})]}),i?e.jsx("div",{className:"flex justify-center py-12",children:e.jsx("div",{className:"w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):r.length===0?e.jsxs("div",{className:"bg-white rounded-2xl p-12 text-center",children:[e.jsx($t,{className:"w-16 h-16 text-gray-300 mx-auto mb-4"}),e.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-2",children:"Nog geen resultaten"}),e.jsx("p",{className:"text-gray-600",children:"Er zijn nog geen AI Quiz resultaten"})]}):e.jsxs("div",{className:"grid lg:grid-cols-2 gap-6",children:[e.jsx("div",{className:"space-y-4",children:r.map(d=>e.jsxs("div",{onClick:()=>n(d),className:`bg-white rounded-xl p-6 border-2 cursor-pointer transition-all ${(t==null?void 0:t.id)===d.id?"border-blue-600 shadow-lg":"border-gray-200 hover:border-gray-300"}`,children:[e.jsxs("div",{className:"flex items-start justify-between mb-3",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"font-bold text-gray-900",children:d.company||d.name||d.email||"Anoniem"}),d.name&&d.company&&e.jsx("p",{className:"text-sm text-gray-500",children:d.name})]}),e.jsx("span",{className:`px-3 py-1 rounded-full text-xs font-medium ${a(d.level)}`,children:d.level})]}),e.jsxs("div",{className:"flex items-center gap-3 text-sm text-gray-600",children:[e.jsxs("span",{children:["Score: ",d.score]}),e.jsx("span",{children:"•"}),e.jsx("span",{children:jt(new Date(d.created_date),"dd MMM yyyy HH:mm")})]})]},d.id))}),e.jsx("div",{className:"lg:sticky lg:top-24 h-fit",children:t?e.jsxs("div",{className:"bg-white rounded-xl p-6 border border-gray-200",children:[e.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-6",children:"Detail"}),e.jsxs("div",{className:"space-y-4",children:[t.email&&e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Email"}),e.jsx("p",{className:"text-gray-900",children:t.email})]}),t.name&&e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Naam"}),e.jsx("p",{className:"text-gray-900",children:t.name})]}),t.company&&e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Bedrijf"}),e.jsx("p",{className:"text-gray-900",children:t.company})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-600",children:"AI Readiness Niveau"}),e.jsx("span",{className:`inline-block mt-1 px-3 py-1 rounded-full text-sm font-medium ${a(t.level)}`,children:t.level})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Score"}),e.jsx("p",{className:"text-gray-900 font-semibold",children:t.score})]}),((o=t.analysis)==null?void 0:o.report)&&e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Analyse"}),e.jsx("p",{className:"text-gray-900 text-sm whitespace-pre-line",children:t.analysis.report})]}),((c=t.analysis)==null?void 0:c.themes)&&Object.keys(t.analysis.themes).length>0&&e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Thema's"}),e.jsx("div",{className:"flex flex-wrap gap-2 mt-2",children:Object.entries(t.analysis.themes).map(([d,h])=>e.jsxs("span",{className:"px-2 py-1 bg-gray-100 rounded text-xs",children:[d,": ",h]},d))})]})]})]}):e.jsxs("div",{className:"bg-gray-50 rounded-xl p-12 text-center border-2 border-dashed border-gray-300",children:[e.jsx($t,{className:"w-12 h-12 text-gray-400 mx-auto mb-3"}),e.jsx("p",{className:"text-gray-600",children:"Selecteer een resultaat om details te bekijken"})]})})]})]})})}function n2(t,[n,r]){return Math.min(r,Math.max(n,t))}function bt(t,n,{checkForDefaultPrevented:r=!0}={}){return function(s){if(t==null||t(s),r===!1||!s.defaultPrevented)return n==null?void 0:n(s)}}function no(t,n=[]){let r=[];function i(a,o){const c=D.createContext(o),d=r.length;r=[...r,o];const h=m=>{var x;const{scope:p,children:g,...y}=m,j=((x=p==null?void 0:p[t])==null?void 0:x[d])||c,v=D.useMemo(()=>y,Object.values(y));return e.jsx(j.Provider,{value:v,children:g})};h.displayName=a+"Provider";function f(m,p){var j;const g=((j=p==null?void 0:p[t])==null?void 0:j[d])||c,y=D.useContext(g);if(y)return y;if(o!==void 0)return o;throw new Error(`\`${m}\` must be used within \`${a}\``)}return[h,f]}const s=()=>{const a=r.map(o=>D.createContext(o));return function(c){const d=(c==null?void 0:c[t])||a;return D.useMemo(()=>({[`__scope${t}`]:{...c,[t]:d}}),[c,d])}};return s.scopeName=t,[i,lU(s,...n)]}function lU(...t){const n=t[0];if(t.length===1)return n;const r=()=>{const i=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(a){const o=i.reduce((c,{useScope:d,scopeName:h})=>{const m=d(a)[`__scope${h}`];return{...c,...m}},{});return D.useMemo(()=>({[`__scope${n.scopeName}`]:o}),[o])}};return r.scopeName=n.scopeName,r}function GE(t){const n=t+"CollectionProvider",[r,i]=no(n),[s,a]=r(n,{collectionRef:{current:null},itemMap:new Map}),o=j=>{const{scope:v,children:x}=j,N=Ot.useRef(null),w=Ot.useRef(new Map).current;return e.jsx(s,{scope:v,itemMap:w,collectionRef:N,children:x})};o.displayName=n;const c=t+"CollectionSlot",d=mu(c),h=Ot.forwardRef((j,v)=>{const{scope:x,children:N}=j,w=a(c,x),k=Xt(v,w.collectionRef);return e.jsx(d,{ref:k,children:N})});h.displayName=c;const f=t+"CollectionItemSlot",m="data-radix-collection-item",p=mu(f),g=Ot.forwardRef((j,v)=>{const{scope:x,children:N,...w}=j,k=Ot.useRef(null),A=Xt(v,k),S=a(f,x);return Ot.useEffect(()=>(S.itemMap.set(k,{ref:k,...w}),()=>void S.itemMap.delete(k))),e.jsx(p,{[m]:"",ref:A,children:N})});g.displayName=f;function y(j){const v=a(t+"CollectionConsumer",j);return Ot.useCallback(()=>{const N=v.collectionRef.current;if(!N)return[];const w=Array.from(N.querySelectorAll(`[${m}]`));return Array.from(v.itemMap.values()).sort((S,E)=>w.indexOf(S.ref.current)-w.indexOf(E.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:o,Slot:h,ItemSlot:g},y,i]}var cU=D.createContext(void 0);function eb(t){const n=D.useContext(cU);return t||n||"ltr"}var uU=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Nt=uU.reduce((t,n)=>{const r=mu(`Primitive.${n}`),i=D.forwardRef((s,a)=>{const{asChild:o,...c}=s,d=o?r:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...c,ref:a})});return i.displayName=`Primitive.${n}`,{...t,[n]:i}},{});function dU(t,n){t&&Au.flushSync(()=>t.dispatchEvent(n))}function Qs(t){const n=D.useRef(t);return D.useEffect(()=>{n.current=t}),D.useMemo(()=>(...r)=>{var i;return(i=n.current)==null?void 0:i.call(n,...r)},[])}function hU(t,n=globalThis==null?void 0:globalThis.document){const r=Qs(t);D.useEffect(()=>{const i=s=>{s.key==="Escape"&&r(s)};return n.addEventListener("keydown",i,{capture:!0}),()=>n.removeEventListener("keydown",i,{capture:!0})},[r,n])}var fU="DismissableLayer",k0="dismissableLayer.update",mU="dismissableLayer.pointerDownOutside",pU="dismissableLayer.focusOutside",r2,QE=D.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),YE=D.forwardRef((t,n)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:o,onDismiss:c,...d}=t,h=D.useContext(QE),[f,m]=D.useState(null),p=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=D.useState({}),y=Xt(n,E=>m(E)),j=Array.from(h.layers),[v]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),x=j.indexOf(v),N=f?j.indexOf(f):-1,w=h.layersWithOutsidePointerEventsDisabled.size>0,k=N>=x,A=vU(E=>{const C=E.target,B=[...h.branches].some(F=>F.contains(C));!k||B||(s==null||s(E),o==null||o(E),E.defaultPrevented||c==null||c())},p),S=yU(E=>{const C=E.target;[...h.branches].some(F=>F.contains(C))||(a==null||a(E),o==null||o(E),E.defaultPrevented||c==null||c())},p);return hU(E=>{N===h.layers.size-1&&(i==null||i(E),!E.defaultPrevented&&c&&(E.preventDefault(),c()))},p),D.useEffect(()=>{if(f)return r&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(r2=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(f)),h.layers.add(f),i2(),()=>{r&&h.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=r2)}},[f,p,r,h]),D.useEffect(()=>()=>{f&&(h.layers.delete(f),h.layersWithOutsidePointerEventsDisabled.delete(f),i2())},[f,h]),D.useEffect(()=>{const E=()=>g({});return document.addEventListener(k0,E),()=>document.removeEventListener(k0,E)},[]),e.jsx(Nt.div,{...d,ref:y,style:{pointerEvents:w?k?"auto":"none":void 0,...t.style},onFocusCapture:bt(t.onFocusCapture,S.onFocusCapture),onBlurCapture:bt(t.onBlurCapture,S.onBlurCapture),onPointerDownCapture:bt(t.onPointerDownCapture,A.onPointerDownCapture)})});YE.displayName=fU;var gU="DismissableLayerBranch",xU=D.forwardRef((t,n)=>{const r=D.useContext(QE),i=D.useRef(null),s=Xt(n,i);return D.useEffect(()=>{const a=i.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),e.jsx(Nt.div,{...t,ref:s})});xU.displayName=gU;function vU(t,n=globalThis==null?void 0:globalThis.document){const r=Qs(t),i=D.useRef(!1),s=D.useRef(()=>{});return D.useEffect(()=>{const a=c=>{if(c.target&&!i.current){let d=function(){XE(mU,r,h,{discrete:!0})};const h={originalEvent:c};c.pointerType==="touch"?(n.removeEventListener("click",s.current),s.current=d,n.addEventListener("click",s.current,{once:!0})):d()}else n.removeEventListener("click",s.current);i.current=!1},o=window.setTimeout(()=>{n.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(o),n.removeEventListener("pointerdown",a),n.removeEventListener("click",s.current)}},[n,r]),{onPointerDownCapture:()=>i.current=!0}}function yU(t,n=globalThis==null?void 0:globalThis.document){const r=Qs(t),i=D.useRef(!1);return D.useEffect(()=>{const s=a=>{a.target&&!i.current&&XE(pU,r,{originalEvent:a},{discrete:!1})};return n.addEventListener("focusin",s),()=>n.removeEventListener("focusin",s)},[n,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function i2(){const t=new CustomEvent(k0);document.dispatchEvent(t)}function XE(t,n,r,{discrete:i}){const s=r.originalEvent.target,a=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:r});n&&s.addEventListener(t,n,{once:!0}),i?dU(s,a):s.dispatchEvent(a)}var pg=0;function bU(){D.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??s2()),document.body.insertAdjacentElement("beforeend",t[1]??s2()),pg++,()=>{pg===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),pg--}},[])}function s2(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var gg="focusScope.autoFocusOnMount",xg="focusScope.autoFocusOnUnmount",a2={bubbles:!1,cancelable:!0},jU="FocusScope",JE=D.forwardRef((t,n)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:s,onUnmountAutoFocus:a,...o}=t,[c,d]=D.useState(null),h=Qs(s),f=Qs(a),m=D.useRef(null),p=Xt(n,j=>d(j)),g=D.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;D.useEffect(()=>{if(i){let j=function(w){if(g.paused||!c)return;const k=w.target;c.contains(k)?m.current=k:Cs(m.current,{select:!0})},v=function(w){if(g.paused||!c)return;const k=w.relatedTarget;k!==null&&(c.contains(k)||Cs(m.current,{select:!0}))},x=function(w){if(document.activeElement===document.body)for(const A of w)A.removedNodes.length>0&&Cs(c)};document.addEventListener("focusin",j),document.addEventListener("focusout",v);const N=new MutationObserver(x);return c&&N.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",j),document.removeEventListener("focusout",v),N.disconnect()}}},[i,c,g.paused]),D.useEffect(()=>{if(c){l2.add(g);const j=document.activeElement;if(!c.contains(j)){const x=new CustomEvent(gg,a2);c.addEventListener(gg,h),c.dispatchEvent(x),x.defaultPrevented||(wU(AU(ZE(c)),{select:!0}),document.activeElement===j&&Cs(c))}return()=>{c.removeEventListener(gg,h),setTimeout(()=>{const x=new CustomEvent(xg,a2);c.addEventListener(xg,f),c.dispatchEvent(x),x.defaultPrevented||Cs(j??document.body,{select:!0}),c.removeEventListener(xg,f),l2.remove(g)},0)}}},[c,h,f,g]);const y=D.useCallback(j=>{if(!r&&!i||g.paused)return;const v=j.key==="Tab"&&!j.altKey&&!j.ctrlKey&&!j.metaKey,x=document.activeElement;if(v&&x){const N=j.currentTarget,[w,k]=NU(N);w&&k?!j.shiftKey&&x===k?(j.preventDefault(),r&&Cs(w,{select:!0})):j.shiftKey&&x===w&&(j.preventDefault(),r&&Cs(k,{select:!0})):x===N&&j.preventDefault()}},[r,i,g.paused]);return e.jsx(Nt.div,{tabIndex:-1,...o,ref:p,onKeyDown:y})});JE.displayName=jU;function wU(t,{select:n=!1}={}){const r=document.activeElement;for(const i of t)if(Cs(i,{select:n}),document.activeElement!==r)return}function NU(t){const n=ZE(t),r=o2(n,t),i=o2(n.reverse(),t);return[r,i]}function ZE(t){const n=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const s=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||s?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)n.push(r.currentNode);return n}function o2(t,n){for(const r of t)if(!kU(r,{upTo:n}))return r}function kU(t,{upTo:n}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(n!==void 0&&t===n)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function _U(t){return t instanceof HTMLInputElement&&"select"in t}function Cs(t,{select:n=!1}={}){if(t&&t.focus){const r=document.activeElement;t.focus({preventScroll:!0}),t!==r&&_U(t)&&n&&t.select()}}var l2=SU();function SU(){let t=[];return{add(n){const r=t[0];n!==r&&(r==null||r.pause()),t=c2(t,n),t.unshift(n)},remove(n){var r;t=c2(t,n),(r=t[0])==null||r.resume()}}}function c2(t,n){const r=[...t],i=r.indexOf(n);return i!==-1&&r.splice(i,1),r}function AU(t){return t.filter(n=>n.tagName!=="A")}var Rn=globalThis!=null&&globalThis.document?D.useLayoutEffect:()=>{},CU=ty[" useId ".trim().toString()]||(()=>{}),EU=0;function Lu(t){const[n,r]=D.useState(CU());return Rn(()=>{r(i=>i??String(EU++))},[t]),n?`radix-${n}`:""}const TU=["top","right","bottom","left"],Ys=Math.min,ur=Math.max,ef=Math.round,dh=Math.floor,vi=t=>({x:t,y:t}),OU={left:"right",right:"left",bottom:"top",top:"bottom"},PU={start:"end",end:"start"};function _0(t,n,r){return ur(t,Ys(n,r))}function Yi(t,n){return typeof t=="function"?t(n):t}function Xi(t){return t.split("-")[0]}function Tl(t){return t.split("-")[1]}function tb(t){return t==="x"?"y":"x"}function nb(t){return t==="y"?"height":"width"}const DU=new Set(["top","bottom"]);function hi(t){return DU.has(Xi(t))?"y":"x"}function rb(t){return tb(hi(t))}function IU(t,n,r){r===void 0&&(r=!1);const i=Tl(t),s=rb(t),a=nb(s);let o=s==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return n.reference[a]>n.floating[a]&&(o=tf(o)),[o,tf(o)]}function RU(t){const n=tf(t);return[S0(t),n,S0(n)]}function S0(t){return t.replace(/start|end/g,n=>PU[n])}const u2=["left","right"],d2=["right","left"],FU=["top","bottom"],MU=["bottom","top"];function LU(t,n,r){switch(t){case"top":case"bottom":return r?n?d2:u2:n?u2:d2;case"left":case"right":return n?FU:MU;default:return[]}}function BU(t,n,r,i){const s=Tl(t);let a=LU(Xi(t),r==="start",i);return s&&(a=a.map(o=>o+"-"+s),n&&(a=a.concat(a.map(S0)))),a}function tf(t){return t.replace(/left|right|bottom|top/g,n=>OU[n])}function zU(t){return{top:0,right:0,bottom:0,left:0,...t}}function e5(t){return typeof t!="number"?zU(t):{top:t,right:t,bottom:t,left:t}}function nf(t){const{x:n,y:r,width:i,height:s}=t;return{width:i,height:s,top:r,left:n,right:n+i,bottom:r+s,x:n,y:r}}function h2(t,n,r){let{reference:i,floating:s}=t;const a=hi(n),o=rb(n),c=nb(o),d=Xi(n),h=a==="y",f=i.x+i.width/2-s.width/2,m=i.y+i.height/2-s.height/2,p=i[c]/2-s[c]/2;let g;switch(d){case"top":g={x:f,y:i.y-s.height};break;case"bottom":g={x:f,y:i.y+i.height};break;case"right":g={x:i.x+i.width,y:m};break;case"left":g={x:i.x-s.width,y:m};break;default:g={x:i.x,y:i.y}}switch(Tl(n)){case"start":g[o]-=p*(r&&h?-1:1);break;case"end":g[o]+=p*(r&&h?-1:1);break}return g}const qU=async(t,n,r)=>{const{placement:i="bottom",strategy:s="absolute",middleware:a=[],platform:o}=r,c=a.filter(Boolean),d=await(o.isRTL==null?void 0:o.isRTL(n));let h=await o.getElementRects({reference:t,floating:n,strategy:s}),{x:f,y:m}=h2(h,i,d),p=i,g={},y=0;for(let j=0;j<c.length;j++){const{name:v,fn:x}=c[j],{x:N,y:w,data:k,reset:A}=await x({x:f,y:m,initialPlacement:i,placement:p,strategy:s,middlewareData:g,rects:h,platform:o,elements:{reference:t,floating:n}});f=N??f,m=w??m,g={...g,[v]:{...g[v],...k}},A&&y<=50&&(y++,typeof A=="object"&&(A.placement&&(p=A.placement),A.rects&&(h=A.rects===!0?await o.getElementRects({reference:t,floating:n,strategy:s}):A.rects),{x:f,y:m}=h2(h,p,d)),j=-1)}return{x:f,y:m,placement:p,strategy:s,middlewareData:g}};async function gu(t,n){var r;n===void 0&&(n={});const{x:i,y:s,platform:a,rects:o,elements:c,strategy:d}=t,{boundary:h="clippingAncestors",rootBoundary:f="viewport",elementContext:m="floating",altBoundary:p=!1,padding:g=0}=Yi(n,t),y=e5(g),v=c[p?m==="floating"?"reference":"floating":m],x=nf(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(v)))==null||r?v:v.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:h,rootBoundary:f,strategy:d})),N=m==="floating"?{x:i,y:s,width:o.floating.width,height:o.floating.height}:o.reference,w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),k=await(a.isElement==null?void 0:a.isElement(w))?await(a.getScale==null?void 0:a.getScale(w))||{x:1,y:1}:{x:1,y:1},A=nf(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:N,offsetParent:w,strategy:d}):N);return{top:(x.top-A.top+y.top)/k.y,bottom:(A.bottom-x.bottom+y.bottom)/k.y,left:(x.left-A.left+y.left)/k.x,right:(A.right-x.right+y.right)/k.x}}const VU=t=>({name:"arrow",options:t,async fn(n){const{x:r,y:i,placement:s,rects:a,platform:o,elements:c,middlewareData:d}=n,{element:h,padding:f=0}=Yi(t,n)||{};if(h==null)return{};const m=e5(f),p={x:r,y:i},g=rb(s),y=nb(g),j=await o.getDimensions(h),v=g==="y",x=v?"top":"left",N=v?"bottom":"right",w=v?"clientHeight":"clientWidth",k=a.reference[y]+a.reference[g]-p[g]-a.floating[y],A=p[g]-a.reference[g],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(h));let E=S?S[w]:0;(!E||!await(o.isElement==null?void 0:o.isElement(S)))&&(E=c.floating[w]||a.floating[y]);const C=k/2-A/2,B=E/2-j[y]/2-1,F=Ys(m[x],B),I=Ys(m[N],B),R=F,z=E-j[y]-I,q=E/2-j[y]/2+C,U=_0(R,q,z),Q=!d.arrow&&Tl(s)!=null&&q!==U&&a.reference[y]/2-(q<R?F:I)-j[y]/2<0,H=Q?q<R?q-R:q-z:0;return{[g]:p[g]+H,data:{[g]:U,centerOffset:q-U-H,...Q&&{alignmentOffset:H}},reset:Q}}}),UU=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(n){var r,i;const{placement:s,middlewareData:a,rects:o,initialPlacement:c,platform:d,elements:h}=n,{mainAxis:f=!0,crossAxis:m=!0,fallbackPlacements:p,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:j=!0,...v}=Yi(t,n);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const x=Xi(s),N=hi(c),w=Xi(c)===c,k=await(d.isRTL==null?void 0:d.isRTL(h.floating)),A=p||(w||!j?[tf(c)]:RU(c)),S=y!=="none";!p&&S&&A.push(...BU(c,j,y,k));const E=[c,...A],C=await gu(n,v),B=[];let F=((i=a.flip)==null?void 0:i.overflows)||[];if(f&&B.push(C[x]),m){const q=IU(s,o,k);B.push(C[q[0]],C[q[1]])}if(F=[...F,{placement:s,overflows:B}],!B.every(q=>q<=0)){var I,R;const q=(((I=a.flip)==null?void 0:I.index)||0)+1,U=E[q];if(U&&(!(m==="alignment"?N!==hi(U):!1)||F.every(K=>hi(K.placement)===N?K.overflows[0]>0:!0)))return{data:{index:q,overflows:F},reset:{placement:U}};let Q=(R=F.filter(H=>H.overflows[0]<=0).sort((H,K)=>H.overflows[1]-K.overflows[1])[0])==null?void 0:R.placement;if(!Q)switch(g){case"bestFit":{var z;const H=(z=F.filter(K=>{if(S){const Y=hi(K.placement);return Y===N||Y==="y"}return!0}).map(K=>[K.placement,K.overflows.filter(Y=>Y>0).reduce((Y,P)=>Y+P,0)]).sort((K,Y)=>K[1]-Y[1])[0])==null?void 0:z[0];H&&(Q=H);break}case"initialPlacement":Q=c;break}if(s!==Q)return{reset:{placement:Q}}}return{}}}};function f2(t,n){return{top:t.top-n.height,right:t.right-n.width,bottom:t.bottom-n.height,left:t.left-n.width}}function m2(t){return TU.some(n=>t[n]>=0)}const $U=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(n){const{rects:r}=n,{strategy:i="referenceHidden",...s}=Yi(t,n);switch(i){case"referenceHidden":{const a=await gu(n,{...s,elementContext:"reference"}),o=f2(a,r.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:m2(o)}}}case"escaped":{const a=await gu(n,{...s,altBoundary:!0}),o=f2(a,r.floating);return{data:{escapedOffsets:o,escaped:m2(o)}}}default:return{}}}}},t5=new Set(["left","top"]);async function HU(t,n){const{placement:r,platform:i,elements:s}=t,a=await(i.isRTL==null?void 0:i.isRTL(s.floating)),o=Xi(r),c=Tl(r),d=hi(r)==="y",h=t5.has(o)?-1:1,f=a&&d?-1:1,m=Yi(n,t);let{mainAxis:p,crossAxis:g,alignmentAxis:y}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return c&&typeof y=="number"&&(g=c==="end"?y*-1:y),d?{x:g*f,y:p*h}:{x:p*h,y:g*f}}const WU=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(n){var r,i;const{x:s,y:a,placement:o,middlewareData:c}=n,d=await HU(n,t);return o===((r=c.offset)==null?void 0:r.placement)&&(i=c.arrow)!=null&&i.alignmentOffset?{}:{x:s+d.x,y:a+d.y,data:{...d,placement:o}}}}},KU=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(n){const{x:r,y:i,placement:s}=n,{mainAxis:a=!0,crossAxis:o=!1,limiter:c={fn:v=>{let{x,y:N}=v;return{x,y:N}}},...d}=Yi(t,n),h={x:r,y:i},f=await gu(n,d),m=hi(Xi(s)),p=tb(m);let g=h[p],y=h[m];if(a){const v=p==="y"?"top":"left",x=p==="y"?"bottom":"right",N=g+f[v],w=g-f[x];g=_0(N,g,w)}if(o){const v=m==="y"?"top":"left",x=m==="y"?"bottom":"right",N=y+f[v],w=y-f[x];y=_0(N,y,w)}const j=c.fn({...n,[p]:g,[m]:y});return{...j,data:{x:j.x-r,y:j.y-i,enabled:{[p]:a,[m]:o}}}}}},GU=function(t){return t===void 0&&(t={}),{options:t,fn(n){const{x:r,y:i,placement:s,rects:a,middlewareData:o}=n,{offset:c=0,mainAxis:d=!0,crossAxis:h=!0}=Yi(t,n),f={x:r,y:i},m=hi(s),p=tb(m);let g=f[p],y=f[m];const j=Yi(c,n),v=typeof j=="number"?{mainAxis:j,crossAxis:0}:{mainAxis:0,crossAxis:0,...j};if(d){const w=p==="y"?"height":"width",k=a.reference[p]-a.floating[w]+v.mainAxis,A=a.reference[p]+a.reference[w]-v.mainAxis;g<k?g=k:g>A&&(g=A)}if(h){var x,N;const w=p==="y"?"width":"height",k=t5.has(Xi(s)),A=a.reference[m]-a.floating[w]+(k&&((x=o.offset)==null?void 0:x[m])||0)+(k?0:v.crossAxis),S=a.reference[m]+a.reference[w]+(k?0:((N=o.offset)==null?void 0:N[m])||0)-(k?v.crossAxis:0);y<A?y=A:y>S&&(y=S)}return{[p]:g,[m]:y}}}},QU=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(n){var r,i;const{placement:s,rects:a,platform:o,elements:c}=n,{apply:d=()=>{},...h}=Yi(t,n),f=await gu(n,h),m=Xi(s),p=Tl(s),g=hi(s)==="y",{width:y,height:j}=a.floating;let v,x;m==="top"||m==="bottom"?(v=m,x=p===(await(o.isRTL==null?void 0:o.isRTL(c.floating))?"start":"end")?"left":"right"):(x=m,v=p==="end"?"top":"bottom");const N=j-f.top-f.bottom,w=y-f.left-f.right,k=Ys(j-f[v],N),A=Ys(y-f[x],w),S=!n.middlewareData.shift;let E=k,C=A;if((r=n.middlewareData.shift)!=null&&r.enabled.x&&(C=w),(i=n.middlewareData.shift)!=null&&i.enabled.y&&(E=N),S&&!p){const F=ur(f.left,0),I=ur(f.right,0),R=ur(f.top,0),z=ur(f.bottom,0);g?C=y-2*(F!==0||I!==0?F+I:ur(f.left,f.right)):E=j-2*(R!==0||z!==0?R+z:ur(f.top,f.bottom))}await d({...n,availableWidth:C,availableHeight:E});const B=await o.getDimensions(c.floating);return y!==B.width||j!==B.height?{reset:{rects:!0}}:{}}}};function Cf(){return typeof window<"u"}function Ol(t){return n5(t)?(t.nodeName||"").toLowerCase():"#document"}function mr(t){var n;return(t==null||(n=t.ownerDocument)==null?void 0:n.defaultView)||window}function Si(t){var n;return(n=(n5(t)?t.ownerDocument:t.document)||window.document)==null?void 0:n.documentElement}function n5(t){return Cf()?t instanceof Node||t instanceof mr(t).Node:!1}function Kr(t){return Cf()?t instanceof Element||t instanceof mr(t).Element:!1}function ji(t){return Cf()?t instanceof HTMLElement||t instanceof mr(t).HTMLElement:!1}function p2(t){return!Cf()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof mr(t).ShadowRoot}const YU=new Set(["inline","contents"]);function Bu(t){const{overflow:n,overflowX:r,overflowY:i,display:s}=Gr(t);return/auto|scroll|overlay|hidden|clip/.test(n+i+r)&&!YU.has(s)}const XU=new Set(["table","td","th"]);function JU(t){return XU.has(Ol(t))}const ZU=[":popover-open",":modal"];function Ef(t){return ZU.some(n=>{try{return t.matches(n)}catch{return!1}})}const e$=["transform","translate","scale","rotate","perspective"],t$=["transform","translate","scale","rotate","perspective","filter"],n$=["paint","layout","strict","content"];function ib(t){const n=sb(),r=Kr(t)?Gr(t):t;return e$.some(i=>r[i]?r[i]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!n&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!n&&(r.filter?r.filter!=="none":!1)||t$.some(i=>(r.willChange||"").includes(i))||n$.some(i=>(r.contain||"").includes(i))}function r$(t){let n=Xs(t);for(;ji(n)&&!gl(n);){if(ib(n))return n;if(Ef(n))return null;n=Xs(n)}return null}function sb(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const i$=new Set(["html","body","#document"]);function gl(t){return i$.has(Ol(t))}function Gr(t){return mr(t).getComputedStyle(t)}function Tf(t){return Kr(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Xs(t){if(Ol(t)==="html")return t;const n=t.assignedSlot||t.parentNode||p2(t)&&t.host||Si(t);return p2(n)?n.host:n}function r5(t){const n=Xs(t);return gl(n)?t.ownerDocument?t.ownerDocument.body:t.body:ji(n)&&Bu(n)?n:r5(n)}function xu(t,n,r){var i;n===void 0&&(n=[]),r===void 0&&(r=!0);const s=r5(t),a=s===((i=t.ownerDocument)==null?void 0:i.body),o=mr(s);if(a){const c=A0(o);return n.concat(o,o.visualViewport||[],Bu(s)?s:[],c&&r?xu(c):[])}return n.concat(s,xu(s,[],r))}function A0(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function i5(t){const n=Gr(t);let r=parseFloat(n.width)||0,i=parseFloat(n.height)||0;const s=ji(t),a=s?t.offsetWidth:r,o=s?t.offsetHeight:i,c=ef(r)!==a||ef(i)!==o;return c&&(r=a,i=o),{width:r,height:i,$:c}}function ab(t){return Kr(t)?t:t.contextElement}function Go(t){const n=ab(t);if(!ji(n))return vi(1);const r=n.getBoundingClientRect(),{width:i,height:s,$:a}=i5(n);let o=(a?ef(r.width):r.width)/i,c=(a?ef(r.height):r.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!c||!Number.isFinite(c))&&(c=1),{x:o,y:c}}const s$=vi(0);function s5(t){const n=mr(t);return!sb()||!n.visualViewport?s$:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function a$(t,n,r){return n===void 0&&(n=!1),!r||n&&r!==mr(t)?!1:n}function Ga(t,n,r,i){n===void 0&&(n=!1),r===void 0&&(r=!1);const s=t.getBoundingClientRect(),a=ab(t);let o=vi(1);n&&(i?Kr(i)&&(o=Go(i)):o=Go(t));const c=a$(a,r,i)?s5(a):vi(0);let d=(s.left+c.x)/o.x,h=(s.top+c.y)/o.y,f=s.width/o.x,m=s.height/o.y;if(a){const p=mr(a),g=i&&Kr(i)?mr(i):i;let y=p,j=A0(y);for(;j&&i&&g!==y;){const v=Go(j),x=j.getBoundingClientRect(),N=Gr(j),w=x.left+(j.clientLeft+parseFloat(N.paddingLeft))*v.x,k=x.top+(j.clientTop+parseFloat(N.paddingTop))*v.y;d*=v.x,h*=v.y,f*=v.x,m*=v.y,d+=w,h+=k,y=mr(j),j=A0(y)}}return nf({width:f,height:m,x:d,y:h})}function Of(t,n){const r=Tf(t).scrollLeft;return n?n.left+r:Ga(Si(t)).left+r}function a5(t,n){const r=t.getBoundingClientRect(),i=r.left+n.scrollLeft-Of(t,r),s=r.top+n.scrollTop;return{x:i,y:s}}function o$(t){let{elements:n,rect:r,offsetParent:i,strategy:s}=t;const a=s==="fixed",o=Si(i),c=n?Ef(n.floating):!1;if(i===o||c&&a)return r;let d={scrollLeft:0,scrollTop:0},h=vi(1);const f=vi(0),m=ji(i);if((m||!m&&!a)&&((Ol(i)!=="body"||Bu(o))&&(d=Tf(i)),ji(i))){const g=Ga(i);h=Go(i),f.x=g.x+i.clientLeft,f.y=g.y+i.clientTop}const p=o&&!m&&!a?a5(o,d):vi(0);return{width:r.width*h.x,height:r.height*h.y,x:r.x*h.x-d.scrollLeft*h.x+f.x+p.x,y:r.y*h.y-d.scrollTop*h.y+f.y+p.y}}function l$(t){return Array.from(t.getClientRects())}function c$(t){const n=Si(t),r=Tf(t),i=t.ownerDocument.body,s=ur(n.scrollWidth,n.clientWidth,i.scrollWidth,i.clientWidth),a=ur(n.scrollHeight,n.clientHeight,i.scrollHeight,i.clientHeight);let o=-r.scrollLeft+Of(t);const c=-r.scrollTop;return Gr(i).direction==="rtl"&&(o+=ur(n.clientWidth,i.clientWidth)-s),{width:s,height:a,x:o,y:c}}const g2=25;function u$(t,n){const r=mr(t),i=Si(t),s=r.visualViewport;let a=i.clientWidth,o=i.clientHeight,c=0,d=0;if(s){a=s.width,o=s.height;const f=sb();(!f||f&&n==="fixed")&&(c=s.offsetLeft,d=s.offsetTop)}const h=Of(i);if(h<=0){const f=i.ownerDocument,m=f.body,p=getComputedStyle(m),g=f.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,y=Math.abs(i.clientWidth-m.clientWidth-g);y<=g2&&(a-=y)}else h<=g2&&(a+=h);return{width:a,height:o,x:c,y:d}}const d$=new Set(["absolute","fixed"]);function h$(t,n){const r=Ga(t,!0,n==="fixed"),i=r.top+t.clientTop,s=r.left+t.clientLeft,a=ji(t)?Go(t):vi(1),o=t.clientWidth*a.x,c=t.clientHeight*a.y,d=s*a.x,h=i*a.y;return{width:o,height:c,x:d,y:h}}function x2(t,n,r){let i;if(n==="viewport")i=u$(t,r);else if(n==="document")i=c$(Si(t));else if(Kr(n))i=h$(n,r);else{const s=s5(t);i={x:n.x-s.x,y:n.y-s.y,width:n.width,height:n.height}}return nf(i)}function o5(t,n){const r=Xs(t);return r===n||!Kr(r)||gl(r)?!1:Gr(r).position==="fixed"||o5(r,n)}function f$(t,n){const r=n.get(t);if(r)return r;let i=xu(t,[],!1).filter(c=>Kr(c)&&Ol(c)!=="body"),s=null;const a=Gr(t).position==="fixed";let o=a?Xs(t):t;for(;Kr(o)&&!gl(o);){const c=Gr(o),d=ib(o);!d&&c.position==="fixed"&&(s=null),(a?!d&&!s:!d&&c.position==="static"&&!!s&&d$.has(s.position)||Bu(o)&&!d&&o5(t,o))?i=i.filter(f=>f!==o):s=c,o=Xs(o)}return n.set(t,i),i}function m$(t){let{element:n,boundary:r,rootBoundary:i,strategy:s}=t;const o=[...r==="clippingAncestors"?Ef(n)?[]:f$(n,this._c):[].concat(r),i],c=o[0],d=o.reduce((h,f)=>{const m=x2(n,f,s);return h.top=ur(m.top,h.top),h.right=Ys(m.right,h.right),h.bottom=Ys(m.bottom,h.bottom),h.left=ur(m.left,h.left),h},x2(n,c,s));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function p$(t){const{width:n,height:r}=i5(t);return{width:n,height:r}}function g$(t,n,r){const i=ji(n),s=Si(n),a=r==="fixed",o=Ga(t,!0,a,n);let c={scrollLeft:0,scrollTop:0};const d=vi(0);function h(){d.x=Of(s)}if(i||!i&&!a)if((Ol(n)!=="body"||Bu(s))&&(c=Tf(n)),i){const g=Ga(n,!0,a,n);d.x=g.x+n.clientLeft,d.y=g.y+n.clientTop}else s&&h();a&&!i&&s&&h();const f=s&&!i&&!a?a5(s,c):vi(0),m=o.left+c.scrollLeft-d.x-f.x,p=o.top+c.scrollTop-d.y-f.y;return{x:m,y:p,width:o.width,height:o.height}}function vg(t){return Gr(t).position==="static"}function v2(t,n){if(!ji(t)||Gr(t).position==="fixed")return null;if(n)return n(t);let r=t.offsetParent;return Si(t)===r&&(r=r.ownerDocument.body),r}function l5(t,n){const r=mr(t);if(Ef(t))return r;if(!ji(t)){let s=Xs(t);for(;s&&!gl(s);){if(Kr(s)&&!vg(s))return s;s=Xs(s)}return r}let i=v2(t,n);for(;i&&JU(i)&&vg(i);)i=v2(i,n);return i&&gl(i)&&vg(i)&&!ib(i)?r:i||r$(t)||r}const x$=async function(t){const n=this.getOffsetParent||l5,r=this.getDimensions,i=await r(t.floating);return{reference:g$(t.reference,await n(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function v$(t){return Gr(t).direction==="rtl"}const y$={convertOffsetParentRelativeRectToViewportRelativeRect:o$,getDocumentElement:Si,getClippingRect:m$,getOffsetParent:l5,getElementRects:x$,getClientRects:l$,getDimensions:p$,getScale:Go,isElement:Kr,isRTL:v$};function c5(t,n){return t.x===n.x&&t.y===n.y&&t.width===n.width&&t.height===n.height}function b$(t,n){let r=null,i;const s=Si(t);function a(){var c;clearTimeout(i),(c=r)==null||c.disconnect(),r=null}function o(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),a();const h=t.getBoundingClientRect(),{left:f,top:m,width:p,height:g}=h;if(c||n(),!p||!g)return;const y=dh(m),j=dh(s.clientWidth-(f+p)),v=dh(s.clientHeight-(m+g)),x=dh(f),w={rootMargin:-y+"px "+-j+"px "+-v+"px "+-x+"px",threshold:ur(0,Ys(1,d))||1};let k=!0;function A(S){const E=S[0].intersectionRatio;if(E!==d){if(!k)return o();E?o(!1,E):i=setTimeout(()=>{o(!1,1e-7)},1e3)}E===1&&!c5(h,t.getBoundingClientRect())&&o(),k=!1}try{r=new IntersectionObserver(A,{...w,root:s.ownerDocument})}catch{r=new IntersectionObserver(A,w)}r.observe(t)}return o(!0),a}function j$(t,n,r,i){i===void 0&&(i={});const{ancestorScroll:s=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:d=!1}=i,h=ab(t),f=s||a?[...h?xu(h):[],...xu(n)]:[];f.forEach(x=>{s&&x.addEventListener("scroll",r,{passive:!0}),a&&x.addEventListener("resize",r)});const m=h&&c?b$(h,r):null;let p=-1,g=null;o&&(g=new ResizeObserver(x=>{let[N]=x;N&&N.target===h&&g&&(g.unobserve(n),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var w;(w=g)==null||w.observe(n)})),r()}),h&&!d&&g.observe(h),g.observe(n));let y,j=d?Ga(t):null;d&&v();function v(){const x=Ga(t);j&&!c5(j,x)&&r(),j=x,y=requestAnimationFrame(v)}return r(),()=>{var x;f.forEach(N=>{s&&N.removeEventListener("scroll",r),a&&N.removeEventListener("resize",r)}),m==null||m(),(x=g)==null||x.disconnect(),g=null,d&&cancelAnimationFrame(y)}}const w$=WU,N$=KU,k$=UU,_$=QU,S$=$U,y2=VU,A$=GU,C$=(t,n,r)=>{const i=new Map,s={platform:y$,...r},a={...s.platform,_c:i};return qU(t,n,{...s,platform:a})};var E$=typeof document<"u",T$=function(){},Fh=E$?D.useLayoutEffect:T$;function rf(t,n){if(t===n)return!0;if(typeof t!=typeof n)return!1;if(typeof t=="function"&&t.toString()===n.toString())return!0;let r,i,s;if(t&&n&&typeof t=="object"){if(Array.isArray(t)){if(r=t.length,r!==n.length)return!1;for(i=r;i--!==0;)if(!rf(t[i],n[i]))return!1;return!0}if(s=Object.keys(t),r=s.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!{}.hasOwnProperty.call(n,s[i]))return!1;for(i=r;i--!==0;){const a=s[i];if(!(a==="_owner"&&t.$$typeof)&&!rf(t[a],n[a]))return!1}return!0}return t!==t&&n!==n}function u5(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function b2(t,n){const r=u5(t);return Math.round(n*r)/r}function yg(t){const n=D.useRef(t);return Fh(()=>{n.current=t}),n}function O$(t){t===void 0&&(t={});const{placement:n="bottom",strategy:r="absolute",middleware:i=[],platform:s,elements:{reference:a,floating:o}={},transform:c=!0,whileElementsMounted:d,open:h}=t,[f,m]=D.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[p,g]=D.useState(i);rf(p,i)||g(i);const[y,j]=D.useState(null),[v,x]=D.useState(null),N=D.useCallback(K=>{K!==S.current&&(S.current=K,j(K))},[]),w=D.useCallback(K=>{K!==E.current&&(E.current=K,x(K))},[]),k=a||y,A=o||v,S=D.useRef(null),E=D.useRef(null),C=D.useRef(f),B=d!=null,F=yg(d),I=yg(s),R=yg(h),z=D.useCallback(()=>{if(!S.current||!E.current)return;const K={placement:n,strategy:r,middleware:p};I.current&&(K.platform=I.current),C$(S.current,E.current,K).then(Y=>{const P={...Y,isPositioned:R.current!==!1};q.current&&!rf(C.current,P)&&(C.current=P,Au.flushSync(()=>{m(P)}))})},[p,n,r,I,R]);Fh(()=>{h===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,m(K=>({...K,isPositioned:!1})))},[h]);const q=D.useRef(!1);Fh(()=>(q.current=!0,()=>{q.current=!1}),[]),Fh(()=>{if(k&&(S.current=k),A&&(E.current=A),k&&A){if(F.current)return F.current(k,A,z);z()}},[k,A,z,F,B]);const U=D.useMemo(()=>({reference:S,floating:E,setReference:N,setFloating:w}),[N,w]),Q=D.useMemo(()=>({reference:k,floating:A}),[k,A]),H=D.useMemo(()=>{const K={position:r,left:0,top:0};if(!Q.floating)return K;const Y=b2(Q.floating,f.x),P=b2(Q.floating,f.y);return c?{...K,transform:"translate("+Y+"px, "+P+"px)",...u5(Q.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:Y,top:P}},[r,c,Q.floating,f.x,f.y]);return D.useMemo(()=>({...f,update:z,refs:U,elements:Q,floatingStyles:H}),[f,z,U,Q,H])}const P$=t=>{function n(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:t,fn(r){const{element:i,padding:s}=typeof t=="function"?t(r):t;return i&&n(i)?i.current!=null?y2({element:i.current,padding:s}).fn(r):{}:i?y2({element:i,padding:s}).fn(r):{}}}},D$=(t,n)=>({...w$(t),options:[t,n]}),I$=(t,n)=>({...N$(t),options:[t,n]}),R$=(t,n)=>({...A$(t),options:[t,n]}),F$=(t,n)=>({...k$(t),options:[t,n]}),M$=(t,n)=>({..._$(t),options:[t,n]}),L$=(t,n)=>({...S$(t),options:[t,n]}),B$=(t,n)=>({...P$(t),options:[t,n]});var z$="Arrow",d5=D.forwardRef((t,n)=>{const{children:r,width:i=10,height:s=5,...a}=t;return e.jsx(Nt.svg,{...a,ref:n,width:i,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:e.jsx("polygon",{points:"0,0 30,0 15,10"})})});d5.displayName=z$;var q$=d5;function ob(t){const[n,r]=D.useState(void 0);return Rn(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const i=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const a=s[0];let o,c;if("borderBoxSize"in a){const d=a.borderBoxSize,h=Array.isArray(d)?d[0]:d;o=h.inlineSize,c=h.blockSize}else o=t.offsetWidth,c=t.offsetHeight;r({width:o,height:c})});return i.observe(t,{box:"border-box"}),()=>i.unobserve(t)}else r(void 0)},[t]),n}var lb="Popper",[h5,f5]=no(lb),[V$,m5]=h5(lb),p5=t=>{const{__scopePopper:n,children:r}=t,[i,s]=D.useState(null);return e.jsx(V$,{scope:n,anchor:i,onAnchorChange:s,children:r})};p5.displayName=lb;var g5="PopperAnchor",x5=D.forwardRef((t,n)=>{const{__scopePopper:r,virtualRef:i,...s}=t,a=m5(g5,r),o=D.useRef(null),c=Xt(n,o),d=D.useRef(null);return D.useEffect(()=>{const h=d.current;d.current=(i==null?void 0:i.current)||o.current,h!==d.current&&a.onAnchorChange(d.current)}),i?null:e.jsx(Nt.div,{...s,ref:c})});x5.displayName=g5;var cb="PopperContent",[U$,$$]=h5(cb),v5=D.forwardRef((t,n)=>{var G,ee,ne,le,ve,be;const{__scopePopper:r,side:i="bottom",sideOffset:s=0,align:a="center",alignOffset:o=0,arrowPadding:c=0,avoidCollisions:d=!0,collisionBoundary:h=[],collisionPadding:f=0,sticky:m="partial",hideWhenDetached:p=!1,updatePositionStrategy:g="optimized",onPlaced:y,...j}=t,v=m5(cb,r),[x,N]=D.useState(null),w=Xt(n,Oe=>N(Oe)),[k,A]=D.useState(null),S=ob(k),E=(S==null?void 0:S.width)??0,C=(S==null?void 0:S.height)??0,B=i+(a!=="center"?"-"+a:""),F=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},I=Array.isArray(h)?h:[h],R=I.length>0,z={padding:F,boundary:I.filter(W$),altBoundary:R},{refs:q,floatingStyles:U,placement:Q,isPositioned:H,middlewareData:K}=O$({strategy:"fixed",placement:B,whileElementsMounted:(...Oe)=>j$(...Oe,{animationFrame:g==="always"}),elements:{reference:v.anchor},middleware:[D$({mainAxis:s+C,alignmentAxis:o}),d&&I$({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?R$():void 0,...z}),d&&F$({...z}),M$({...z,apply:({elements:Oe,rects:Te,availableWidth:We,availableHeight:ut})=>{const{width:nt,height:ge}=Te.reference,ye=Oe.floating.style;ye.setProperty("--radix-popper-available-width",`${We}px`),ye.setProperty("--radix-popper-available-height",`${ut}px`),ye.setProperty("--radix-popper-anchor-width",`${nt}px`),ye.setProperty("--radix-popper-anchor-height",`${ge}px`)}}),k&&B$({element:k,padding:c}),K$({arrowWidth:E,arrowHeight:C}),p&&L$({strategy:"referenceHidden",...z})]}),[Y,P]=j5(Q),T=Qs(y);Rn(()=>{H&&(T==null||T())},[H,T]);const V=(G=K.arrow)==null?void 0:G.x,L=(ee=K.arrow)==null?void 0:ee.y,X=((ne=K.arrow)==null?void 0:ne.centerOffset)!==0,[J,W]=D.useState();return Rn(()=>{x&&W(window.getComputedStyle(x).zIndex)},[x]),e.jsx("div",{ref:q.setFloating,"data-radix-popper-content-wrapper":"",style:{...U,transform:H?U.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:J,"--radix-popper-transform-origin":[(le=K.transformOrigin)==null?void 0:le.x,(ve=K.transformOrigin)==null?void 0:ve.y].join(" "),...((be=K.hide)==null?void 0:be.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:e.jsx(U$,{scope:r,placedSide:Y,onArrowChange:A,arrowX:V,arrowY:L,shouldHideArrow:X,children:e.jsx(Nt.div,{"data-side":Y,"data-align":P,...j,ref:w,style:{...j.style,animation:H?void 0:"none"}})})})});v5.displayName=cb;var y5="PopperArrow",H$={top:"bottom",right:"left",bottom:"top",left:"right"},b5=D.forwardRef(function(n,r){const{__scopePopper:i,...s}=n,a=$$(y5,i),o=H$[a.placedSide];return e.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:e.jsx(q$,{...s,ref:r,style:{...s.style,display:"block"}})})});b5.displayName=y5;function W$(t){return t!==null}var K$=t=>({name:"transformOrigin",options:t,fn(n){var v,x,N;const{placement:r,rects:i,middlewareData:s}=n,o=((v=s.arrow)==null?void 0:v.centerOffset)!==0,c=o?0:t.arrowWidth,d=o?0:t.arrowHeight,[h,f]=j5(r),m={start:"0%",center:"50%",end:"100%"}[f],p=(((x=s.arrow)==null?void 0:x.x)??0)+c/2,g=(((N=s.arrow)==null?void 0:N.y)??0)+d/2;let y="",j="";return h==="bottom"?(y=o?m:`${p}px`,j=`${-d}px`):h==="top"?(y=o?m:`${p}px`,j=`${i.floating.height+d}px`):h==="right"?(y=`${-d}px`,j=o?m:`${g}px`):h==="left"&&(y=`${i.floating.width+d}px`,j=o?m:`${g}px`),{data:{x:y,y:j}}}});function j5(t){const[n,r="center"]=t.split("-");return[n,r]}var G$=p5,Q$=x5,Y$=v5,X$=b5,J$="Portal",w5=D.forwardRef((t,n)=>{var c;const{container:r,...i}=t,[s,a]=D.useState(!1);Rn(()=>a(!0),[]);const o=r||s&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return o?JI.createPortal(e.jsx(Nt.div,{...i,ref:n}),o):null});w5.displayName=J$;var Z$=ty[" useInsertionEffect ".trim().toString()]||Rn;function xl({prop:t,defaultProp:n,onChange:r=()=>{},caller:i}){const[s,a,o]=eH({defaultProp:n,onChange:r}),c=t!==void 0,d=c?t:s;{const f=D.useRef(t!==void 0);D.useEffect(()=>{const m=f.current;m!==c&&console.warn(`${i} is changing from ${m?"controlled":"uncontrolled"} to ${c?"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.`),f.current=c},[c,i])}const h=D.useCallback(f=>{var m;if(c){const p=tH(f)?f(t):f;p!==t&&((m=o.current)==null||m.call(o,p))}else a(f)},[c,t,a,o]);return[d,h]}function eH({defaultProp:t,onChange:n}){const[r,i]=D.useState(t),s=D.useRef(r),a=D.useRef(n);return Z$(()=>{a.current=n},[n]),D.useEffect(()=>{var o;s.current!==r&&((o=a.current)==null||o.call(a,r),s.current=r)},[r,s]),[r,i,a]}function tH(t){return typeof t=="function"}function ub(t){const n=D.useRef({value:t,previous:t});return D.useMemo(()=>(n.current.value!==t&&(n.current.previous=n.current.value,n.current.value=t),n.current.previous),[t])}var N5=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"}),nH="VisuallyHidden",rH=D.forwardRef((t,n)=>e.jsx(Nt.span,{...t,ref:n,style:{...N5,...t.style}}));rH.displayName=nH;var iH=function(t){if(typeof document>"u")return null;var n=Array.isArray(t)?t[0]:t;return n.ownerDocument.body},Po=new WeakMap,hh=new WeakMap,fh={},bg=0,k5=function(t){return t&&(t.host||k5(t.parentNode))},sH=function(t,n){return n.map(function(r){if(t.contains(r))return r;var i=k5(r);return i&&t.contains(i)?i:(console.error("aria-hidden",r,"in not contained inside",t,". Doing nothing"),null)}).filter(function(r){return!!r})},aH=function(t,n,r,i){var s=sH(n,Array.isArray(t)?t:[t]);fh[r]||(fh[r]=new WeakMap);var a=fh[r],o=[],c=new Set,d=new Set(s),h=function(m){!m||c.has(m)||(c.add(m),h(m.parentNode))};s.forEach(h);var f=function(m){!m||d.has(m)||Array.prototype.forEach.call(m.children,function(p){if(c.has(p))f(p);else try{var g=p.getAttribute(i),y=g!==null&&g!=="false",j=(Po.get(p)||0)+1,v=(a.get(p)||0)+1;Po.set(p,j),a.set(p,v),o.push(p),j===1&&y&&hh.set(p,!0),v===1&&p.setAttribute(r,"true"),y||p.setAttribute(i,"true")}catch(x){console.error("aria-hidden: cannot operate on ",p,x)}})};return f(n),c.clear(),bg++,function(){o.forEach(function(m){var p=Po.get(m)-1,g=a.get(m)-1;Po.set(m,p),a.set(m,g),p||(hh.has(m)||m.removeAttribute(i),hh.delete(m)),g||m.removeAttribute(r)}),bg--,bg||(Po=new WeakMap,Po=new WeakMap,hh=new WeakMap,fh={})}},oH=function(t,n,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(t)?t:[t]),s=iH(t);return s?(i.push.apply(i,Array.from(s.querySelectorAll("[aria-live], script"))),aH(i,s,r,"aria-hidden")):function(){return null}},ci=function(){return ci=Object.assign||function(n){for(var r,i=1,s=arguments.length;i<s;i++){r=arguments[i];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])}return n},ci.apply(this,arguments)};function _5(t,n){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&n.indexOf(i)<0&&(r[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(t);s<i.length;s++)n.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(t,i[s])&&(r[i[s]]=t[i[s]]);return r}function lH(t,n,r){if(r||arguments.length===2)for(var i=0,s=n.length,a;i<s;i++)(a||!(i in n))&&(a||(a=Array.prototype.slice.call(n,0,i)),a[i]=n[i]);return t.concat(a||Array.prototype.slice.call(n))}var Mh="right-scroll-bar-position",Lh="width-before-scroll-bar",cH="with-scroll-bars-hidden",uH="--removed-body-scroll-bar-size";function jg(t,n){return typeof t=="function"?t(n):t&&(t.current=n),t}function dH(t,n){var r=D.useState(function(){return{value:t,callback:n,facade:{get current(){return r.value},set current(i){var s=r.value;s!==i&&(r.value=i,r.callback(i,s))}}}})[0];return r.callback=n,r.facade}var hH=typeof window<"u"?D.useLayoutEffect:D.useEffect,j2=new WeakMap;function fH(t,n){var r=dH(null,function(i){return t.forEach(function(s){return jg(s,i)})});return hH(function(){var i=j2.get(r);if(i){var s=new Set(i),a=new Set(t),o=r.current;s.forEach(function(c){a.has(c)||jg(c,null)}),a.forEach(function(c){s.has(c)||jg(c,o)})}j2.set(r,t)},[t]),r}function mH(t){return t}function pH(t,n){n===void 0&&(n=mH);var r=[],i=!1,s={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:t},useMedium:function(a){var o=n(a,i);return r.push(o),function(){r=r.filter(function(c){return c!==o})}},assignSyncMedium:function(a){for(i=!0;r.length;){var o=r;r=[],o.forEach(a)}r={push:function(c){return a(c)},filter:function(){return r}}},assignMedium:function(a){i=!0;var o=[];if(r.length){var c=r;r=[],c.forEach(a),o=r}var d=function(){var f=o;o=[],f.forEach(a)},h=function(){return Promise.resolve().then(d)};h(),r={push:function(f){o.push(f),h()},filter:function(f){return o=o.filter(f),r}}}};return s}function gH(t){t===void 0&&(t={});var n=pH(null);return n.options=ci({async:!0,ssr:!1},t),n}var S5=function(t){var n=t.sideCar,r=_5(t,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=n.read();if(!i)throw new Error("Sidecar medium not found");return D.createElement(i,ci({},r))};S5.isSideCarExport=!0;function xH(t,n){return t.useMedium(n),S5}var A5=gH(),wg=function(){},Pf=D.forwardRef(function(t,n){var r=D.useRef(null),i=D.useState({onScrollCapture:wg,onWheelCapture:wg,onTouchMoveCapture:wg}),s=i[0],a=i[1],o=t.forwardProps,c=t.children,d=t.className,h=t.removeScrollBar,f=t.enabled,m=t.shards,p=t.sideCar,g=t.noRelative,y=t.noIsolation,j=t.inert,v=t.allowPinchZoom,x=t.as,N=x===void 0?"div":x,w=t.gapMode,k=_5(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),A=p,S=fH([r,n]),E=ci(ci({},k),s);return D.createElement(D.Fragment,null,f&&D.createElement(A,{sideCar:A5,removeScrollBar:h,shards:m,noRelative:g,noIsolation:y,inert:j,setCallbacks:a,allowPinchZoom:!!v,lockRef:r,gapMode:w}),o?D.cloneElement(D.Children.only(c),ci(ci({},E),{ref:S})):D.createElement(N,ci({},E,{className:d,ref:S}),c))});Pf.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Pf.classNames={fullWidth:Lh,zeroRight:Mh};var vH=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function yH(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var n=vH();return n&&t.setAttribute("nonce",n),t}function bH(t,n){t.styleSheet?t.styleSheet.cssText=n:t.appendChild(document.createTextNode(n))}function jH(t){var n=document.head||document.getElementsByTagName("head")[0];n.appendChild(t)}var wH=function(){var t=0,n=null;return{add:function(r){t==0&&(n=yH())&&(bH(n,r),jH(n)),t++},remove:function(){t--,!t&&n&&(n.parentNode&&n.parentNode.removeChild(n),n=null)}}},NH=function(){var t=wH();return function(n,r){D.useEffect(function(){return t.add(n),function(){t.remove()}},[n&&r])}},C5=function(){var t=NH(),n=function(r){var i=r.styles,s=r.dynamic;return t(i,s),null};return n},kH={left:0,top:0,right:0,gap:0},Ng=function(t){return parseInt(t||"",10)||0},_H=function(t){var n=window.getComputedStyle(document.body),r=n[t==="padding"?"paddingLeft":"marginLeft"],i=n[t==="padding"?"paddingTop":"marginTop"],s=n[t==="padding"?"paddingRight":"marginRight"];return[Ng(r),Ng(i),Ng(s)]},SH=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return kH;var n=_H(t),r=document.documentElement.clientWidth,i=window.innerWidth;return{left:n[0],top:n[1],right:n[2],gap:Math.max(0,i-r+n[2]-n[0])}},AH=C5(),Qo="data-scroll-locked",CH=function(t,n,r,i){var s=t.left,a=t.top,o=t.right,c=t.gap;return r===void 0&&(r="margin"),`
.`.concat(cH,` {
overflow: hidden `).concat(i,`;
padding-right: `).concat(c,"px ").concat(i,`;
}
body[`).concat(Qo,`] {
overflow: hidden `).concat(i,`;
overscroll-behavior: contain;
`).concat([n&&"position: relative ".concat(i,";"),r==="margin"&&`
padding-left: `.concat(s,`px;
padding-top: `).concat(a,`px;
padding-right: `).concat(o,`px;
margin-left:0;
margin-top:0;
margin-right: `).concat(c,"px ").concat(i,`;
`),r==="padding"&&"padding-right: ".concat(c,"px ").concat(i,";")].filter(Boolean).join(""),`
}
.`).concat(Mh,` {
right: `).concat(c,"px ").concat(i,`;
}
.`).concat(Lh,` {
margin-right: `).concat(c,"px ").concat(i,`;
}
.`).concat(Mh," .").concat(Mh,` {
right: 0 `).concat(i,`;
}
.`).concat(Lh," .").concat(Lh,` {
margin-right: 0 `).concat(i,`;
}
body[`).concat(Qo,`] {
`).concat(uH,": ").concat(c,`px;
}
`)},w2=function(){var t=parseInt(document.body.getAttribute(Qo)||"0",10);return isFinite(t)?t:0},EH=function(){D.useEffect(function(){return document.body.setAttribute(Qo,(w2()+1).toString()),function(){var t=w2()-1;t<=0?document.body.removeAttribute(Qo):document.body.setAttribute(Qo,t.toString())}},[])},TH=function(t){var n=t.noRelative,r=t.noImportant,i=t.gapMode,s=i===void 0?"margin":i;EH();var a=D.useMemo(function(){return SH(s)},[s]);return D.createElement(AH,{styles:CH(a,!n,s,r?"":"!important")})},C0=!1;if(typeof window<"u")try{var mh=Object.defineProperty({},"passive",{get:function(){return C0=!0,!0}});window.addEventListener("test",mh,mh),window.removeEventListener("test",mh,mh)}catch{C0=!1}var Do=C0?{passive:!1}:!1,OH=function(t){return t.tagName==="TEXTAREA"},E5=function(t,n){if(!(t instanceof Element))return!1;var r=window.getComputedStyle(t);return r[n]!=="hidden"&&!(r.overflowY===r.overflowX&&!OH(t)&&r[n]==="visible")},PH=function(t){return E5(t,"overflowY")},DH=function(t){return E5(t,"overflowX")},N2=function(t,n){var r=n.ownerDocument,i=n;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var s=T5(t,i);if(s){var a=O5(t,i),o=a[1],c=a[2];if(o>c)return!0}i=i.parentNode}while(i&&i!==r.body);return!1},IH=function(t){var n=t.scrollTop,r=t.scrollHeight,i=t.clientHeight;return[n,r,i]},RH=function(t){var n=t.scrollLeft,r=t.scrollWidth,i=t.clientWidth;return[n,r,i]},T5=function(t,n){return t==="v"?PH(n):DH(n)},O5=function(t,n){return t==="v"?IH(n):RH(n)},FH=function(t,n){return t==="h"&&n==="rtl"?-1:1},MH=function(t,n,r,i,s){var a=FH(t,window.getComputedStyle(n).direction),o=a*i,c=r.target,d=n.contains(c),h=!1,f=o>0,m=0,p=0;do{if(!c)break;var g=O5(t,c),y=g[0],j=g[1],v=g[2],x=j-v-a*y;(y||x)&&T5(t,c)&&(m+=x,p+=y);var N=c.parentNode;c=N&&N.nodeType===Node.DOCUMENT_FRAGMENT_NODE?N.host:N}while(!d&&c!==document.body||d&&(n.contains(c)||n===c));return(f&&Math.abs(m)<1||!f&&Math.abs(p)<1)&&(h=!0),h},ph=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},k2=function(t){return[t.deltaX,t.deltaY]},_2=function(t){return t&&"current"in t?t.current:t},LH=function(t,n){return t[0]===n[0]&&t[1]===n[1]},BH=function(t){return`
.block-interactivity-`.concat(t,` {pointer-events: none;}
.allow-interactivity-`).concat(t,` {pointer-events: all;}
`)},zH=0,Io=[];function qH(t){var n=D.useRef([]),r=D.useRef([0,0]),i=D.useRef(),s=D.useState(zH++)[0],a=D.useState(C5)[0],o=D.useRef(t);D.useEffect(function(){o.current=t},[t]),D.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(s));var j=lH([t.lockRef.current],(t.shards||[]).map(_2),!0).filter(Boolean);return j.forEach(function(v){return v.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),j.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(s))})}}},[t.inert,t.lockRef.current,t.shards]);var c=D.useCallback(function(j,v){if("touches"in j&&j.touches.length===2||j.type==="wheel"&&j.ctrlKey)return!o.current.allowPinchZoom;var x=ph(j),N=r.current,w="deltaX"in j?j.deltaX:N[0]-x[0],k="deltaY"in j?j.deltaY:N[1]-x[1],A,S=j.target,E=Math.abs(w)>Math.abs(k)?"h":"v";if("touches"in j&&E==="h"&&S.type==="range")return!1;var C=N2(E,S);if(!C)return!0;if(C?A=E:(A=E==="v"?"h":"v",C=N2(E,S)),!C)return!1;if(!i.current&&"changedTouches"in j&&(w||k)&&(i.current=A),!A)return!0;var B=i.current||A;return MH(B,v,j,B==="h"?w:k)},[]),d=D.useCallback(function(j){var v=j;if(!(!Io.length||Io[Io.length-1]!==a)){var x="deltaY"in v?k2(v):ph(v),N=n.current.filter(function(A){return A.name===v.type&&(A.target===v.target||v.target===A.shadowParent)&&LH(A.delta,x)})[0];if(N&&N.should){v.cancelable&&v.preventDefault();return}if(!N){var w=(o.current.shards||[]).map(_2).filter(Boolean).filter(function(A){return A.contains(v.target)}),k=w.length>0?c(v,w[0]):!o.current.noIsolation;k&&v.cancelable&&v.preventDefault()}}},[]),h=D.useCallback(function(j,v,x,N){var w={name:j,delta:v,target:x,should:N,shadowParent:VH(x)};n.current.push(w),setTimeout(function(){n.current=n.current.filter(function(k){return k!==w})},1)},[]),f=D.useCallback(function(j){r.current=ph(j),i.current=void 0},[]),m=D.useCallback(function(j){h(j.type,k2(j),j.target,c(j,t.lockRef.current))},[]),p=D.useCallback(function(j){h(j.type,ph(j),j.target,c(j,t.lockRef.current))},[]);D.useEffect(function(){return Io.push(a),t.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:p}),document.addEventListener("wheel",d,Do),document.addEventListener("touchmove",d,Do),document.addEventListener("touchstart",f,Do),function(){Io=Io.filter(function(j){return j!==a}),document.removeEventListener("wheel",d,Do),document.removeEventListener("touchmove",d,Do),document.removeEventListener("touchstart",f,Do)}},[]);var g=t.removeScrollBar,y=t.inert;return D.createElement(D.Fragment,null,y?D.createElement(a,{styles:BH(s)}):null,g?D.createElement(TH,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function VH(t){for(var n=null;t!==null;)t instanceof ShadowRoot&&(n=t.host,t=t.host),t=t.parentNode;return n}const UH=xH(A5,qH);var P5=D.forwardRef(function(t,n){return D.createElement(Pf,ci({},t,{ref:n,sideCar:UH}))});P5.classNames=Pf.classNames;var $H=[" ","Enter","ArrowUp","ArrowDown"],HH=[" ","Enter"],Qa="Select",[Df,If,WH]=GE(Qa),[Pl]=no(Qa,[WH,f5]),Rf=f5(),[KH,ea]=Pl(Qa),[GH,QH]=Pl(Qa),D5=t=>{const{__scopeSelect:n,children:r,open:i,defaultOpen:s,onOpenChange:a,value:o,defaultValue:c,onValueChange:d,dir:h,name:f,autoComplete:m,disabled:p,required:g,form:y}=t,j=Rf(n),[v,x]=D.useState(null),[N,w]=D.useState(null),[k,A]=D.useState(!1),S=eb(h),[E,C]=xl({prop:i,defaultProp:s??!1,onChange:a,caller:Qa}),[B,F]=xl({prop:o,defaultProp:c,onChange:d,caller:Qa}),I=D.useRef(null),R=v?y||!!v.closest("form"):!0,[z,q]=D.useState(new Set),U=Array.from(z).map(Q=>Q.props.value).join(";");return e.jsx(G$,{...j,children:e.jsxs(KH,{required:g,scope:n,trigger:v,onTriggerChange:x,valueNode:N,onValueNodeChange:w,valueNodeHasChildren:k,onValueNodeHasChildrenChange:A,contentId:Lu(),value:B,onValueChange:F,open:E,onOpenChange:C,dir:S,triggerPointerDownPosRef:I,disabled:p,children:[e.jsx(Df.Provider,{scope:n,children:e.jsx(GH,{scope:t.__scopeSelect,onNativeOptionAdd:D.useCallback(Q=>{q(H=>new Set(H).add(Q))},[]),onNativeOptionRemove:D.useCallback(Q=>{q(H=>{const K=new Set(H);return K.delete(Q),K})},[]),children:r})}),R?e.jsxs(rT,{"aria-hidden":!0,required:g,tabIndex:-1,name:f,autoComplete:m,value:B,onChange:Q=>F(Q.target.value),disabled:p,form:y,children:[B===void 0?e.jsx("option",{value:""}):null,Array.from(z)]},U):null]})})};D5.displayName=Qa;var I5="SelectTrigger",R5=D.forwardRef((t,n)=>{const{__scopeSelect:r,disabled:i=!1,...s}=t,a=Rf(r),o=ea(I5,r),c=o.disabled||i,d=Xt(n,o.onTriggerChange),h=If(r),f=D.useRef("touch"),[m,p,g]=sT(j=>{const v=h().filter(w=>!w.disabled),x=v.find(w=>w.value===o.value),N=aT(v,j,x);N!==void 0&&o.onValueChange(N.value)}),y=j=>{c||(o.onOpenChange(!0),g()),j&&(o.triggerPointerDownPosRef.current={x:Math.round(j.pageX),y:Math.round(j.pageY)})};return e.jsx(Q$,{asChild:!0,...a,children:e.jsx(Nt.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:c,"data-disabled":c?"":void 0,"data-placeholder":iT(o.value)?"":void 0,...s,ref:d,onClick:bt(s.onClick,j=>{j.currentTarget.focus(),f.current!=="mouse"&&y(j)}),onPointerDown:bt(s.onPointerDown,j=>{f.current=j.pointerType;const v=j.target;v.hasPointerCapture(j.pointerId)&&v.releasePointerCapture(j.pointerId),j.button===0&&j.ctrlKey===!1&&j.pointerType==="mouse"&&(y(j),j.preventDefault())}),onKeyDown:bt(s.onKeyDown,j=>{const v=m.current!=="";!(j.ctrlKey||j.altKey||j.metaKey)&&j.key.length===1&&p(j.key),!(v&&j.key===" ")&&$H.includes(j.key)&&(y(),j.preventDefault())})})})});R5.displayName=I5;var F5="SelectValue",M5=D.forwardRef((t,n)=>{const{__scopeSelect:r,className:i,style:s,children:a,placeholder:o="",...c}=t,d=ea(F5,r),{onValueNodeHasChildrenChange:h}=d,f=a!==void 0,m=Xt(n,d.onValueNodeChange);return Rn(()=>{h(f)},[h,f]),e.jsx(Nt.span,{...c,ref:m,style:{pointerEvents:"none"},children:iT(d.value)?e.jsx(e.Fragment,{children:o}):a})});M5.displayName=F5;var YH="SelectIcon",L5=D.forwardRef((t,n)=>{const{__scopeSelect:r,children:i,...s}=t;return e.jsx(Nt.span,{"aria-hidden":!0,...s,ref:n,children:i||"â–¼"})});L5.displayName=YH;var XH="SelectPortal",B5=t=>e.jsx(w5,{asChild:!0,...t});B5.displayName=XH;var Ya="SelectContent",z5=D.forwardRef((t,n)=>{const r=ea(Ya,t.__scopeSelect),[i,s]=D.useState();if(Rn(()=>{s(new DocumentFragment)},[]),!r.open){const a=i;return a?Au.createPortal(e.jsx(q5,{scope:t.__scopeSelect,children:e.jsx(Df.Slot,{scope:t.__scopeSelect,children:e.jsx("div",{children:t.children})})}),a):null}return e.jsx(V5,{...t,ref:n})});z5.displayName=Ya;var Vr=10,[q5,ta]=Pl(Ya),JH="SelectContentImpl",ZH=mu("SelectContent.RemoveScroll"),V5=D.forwardRef((t,n)=>{const{__scopeSelect:r,position:i="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:a,onPointerDownOutside:o,side:c,sideOffset:d,align:h,alignOffset:f,arrowPadding:m,collisionBoundary:p,collisionPadding:g,sticky:y,hideWhenDetached:j,avoidCollisions:v,...x}=t,N=ea(Ya,r),[w,k]=D.useState(null),[A,S]=D.useState(null),E=Xt(n,G=>k(G)),[C,B]=D.useState(null),[F,I]=D.useState(null),R=If(r),[z,q]=D.useState(!1),U=D.useRef(!1);D.useEffect(()=>{if(w)return oH(w)},[w]),bU();const Q=D.useCallback(G=>{const[ee,...ne]=R().map(be=>be.ref.current),[le]=ne.slice(-1),ve=document.activeElement;for(const be of G)if(be===ve||(be==null||be.scrollIntoView({block:"nearest"}),be===ee&&A&&(A.scrollTop=0),be===le&&A&&(A.scrollTop=A.scrollHeight),be==null||be.focus(),document.activeElement!==ve))return},[R,A]),H=D.useCallback(()=>Q([C,w]),[Q,C,w]);D.useEffect(()=>{z&&H()},[z,H]);const{onOpenChange:K,triggerPointerDownPosRef:Y}=N;D.useEffect(()=>{if(w){let G={x:0,y:0};const ee=le=>{var ve,be;G={x:Math.abs(Math.round(le.pageX)-(((ve=Y.current)==null?void 0:ve.x)??0)),y:Math.abs(Math.round(le.pageY)-(((be=Y.current)==null?void 0:be.y)??0))}},ne=le=>{G.x<=10&&G.y<=10?le.preventDefault():w.contains(le.target)||K(!1),document.removeEventListener("pointermove",ee),Y.current=null};return Y.current!==null&&(document.addEventListener("pointermove",ee),document.addEventListener("pointerup",ne,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ee),document.removeEventListener("pointerup",ne,{capture:!0})}}},[w,K,Y]),D.useEffect(()=>{const G=()=>K(!1);return window.addEventListener("blur",G),window.addEventListener("resize",G),()=>{window.removeEventListener("blur",G),window.removeEventListener("resize",G)}},[K]);const[P,T]=sT(G=>{const ee=R().filter(ve=>!ve.disabled),ne=ee.find(ve=>ve.ref.current===document.activeElement),le=aT(ee,G,ne);le&&setTimeout(()=>le.ref.current.focus())}),V=D.useCallback((G,ee,ne)=>{const le=!U.current&&!ne;(N.value!==void 0&&N.value===ee||le)&&(B(G),le&&(U.current=!0))},[N.value]),L=D.useCallback(()=>w==null?void 0:w.focus(),[w]),X=D.useCallback((G,ee,ne)=>{const le=!U.current&&!ne;(N.value!==void 0&&N.value===ee||le)&&I(G)},[N.value]),J=i==="popper"?E0:U5,W=J===E0?{side:c,sideOffset:d,align:h,alignOffset:f,arrowPadding:m,collisionBoundary:p,collisionPadding:g,sticky:y,hideWhenDetached:j,avoidCollisions:v}:{};return e.jsx(q5,{scope:r,content:w,viewport:A,onViewportChange:S,itemRefCallback:V,selectedItem:C,onItemLeave:L,itemTextRefCallback:X,focusSelectedItem:H,selectedItemText:F,position:i,isPositioned:z,searchRef:P,children:e.jsx(P5,{as:ZH,allowPinchZoom:!0,children:e.jsx(JE,{asChild:!0,trapped:N.open,onMountAutoFocus:G=>{G.preventDefault()},onUnmountAutoFocus:bt(s,G=>{var ee;(ee=N.trigger)==null||ee.focus({preventScroll:!0}),G.preventDefault()}),children:e.jsx(YE,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:G=>G.preventDefault(),onDismiss:()=>N.onOpenChange(!1),children:e.jsx(J,{role:"listbox",id:N.contentId,"data-state":N.open?"open":"closed",dir:N.dir,onContextMenu:G=>G.preventDefault(),...x,...W,onPlaced:()=>q(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:bt(x.onKeyDown,G=>{const ee=G.ctrlKey||G.altKey||G.metaKey;if(G.key==="Tab"&&G.preventDefault(),!ee&&G.key.length===1&&T(G.key),["ArrowUp","ArrowDown","Home","End"].includes(G.key)){let le=R().filter(ve=>!ve.disabled).map(ve=>ve.ref.current);if(["ArrowUp","End"].includes(G.key)&&(le=le.slice().reverse()),["ArrowUp","ArrowDown"].includes(G.key)){const ve=G.target,be=le.indexOf(ve);le=le.slice(be+1)}setTimeout(()=>Q(le)),G.preventDefault()}})})})})})})});V5.displayName=JH;var eW="SelectItemAlignedPosition",U5=D.forwardRef((t,n)=>{const{__scopeSelect:r,onPlaced:i,...s}=t,a=ea(Ya,r),o=ta(Ya,r),[c,d]=D.useState(null),[h,f]=D.useState(null),m=Xt(n,E=>f(E)),p=If(r),g=D.useRef(!1),y=D.useRef(!0),{viewport:j,selectedItem:v,selectedItemText:x,focusSelectedItem:N}=o,w=D.useCallback(()=>{if(a.trigger&&a.valueNode&&c&&h&&j&&v&&x){const E=a.trigger.getBoundingClientRect(),C=h.getBoundingClientRect(),B=a.valueNode.getBoundingClientRect(),F=x.getBoundingClientRect();if(a.dir!=="rtl"){const ve=F.left-C.left,be=B.left-ve,Oe=E.left-be,Te=E.width+Oe,We=Math.max(Te,C.width),ut=window.innerWidth-Vr,nt=n2(be,[Vr,Math.max(Vr,ut-We)]);c.style.minWidth=Te+"px",c.style.left=nt+"px"}else{const ve=C.right-F.right,be=window.innerWidth-B.right-ve,Oe=window.innerWidth-E.right-be,Te=E.width+Oe,We=Math.max(Te,C.width),ut=window.innerWidth-Vr,nt=n2(be,[Vr,Math.max(Vr,ut-We)]);c.style.minWidth=Te+"px",c.style.right=nt+"px"}const I=p(),R=window.innerHeight-Vr*2,z=j.scrollHeight,q=window.getComputedStyle(h),U=parseInt(q.borderTopWidth,10),Q=parseInt(q.paddingTop,10),H=parseInt(q.borderBottomWidth,10),K=parseInt(q.paddingBottom,10),Y=U+Q+z+K+H,P=Math.min(v.offsetHeight*5,Y),T=window.getComputedStyle(j),V=parseInt(T.paddingTop,10),L=parseInt(T.paddingBottom,10),X=E.top+E.height/2-Vr,J=R-X,W=v.offsetHeight/2,G=v.offsetTop+W,ee=U+Q+G,ne=Y-ee;if(ee<=X){const ve=I.length>0&&v===I[I.length-1].ref.current;c.style.bottom="0px";const be=h.clientHeight-j.offsetTop-j.offsetHeight,Oe=Math.max(J,W+(ve?L:0)+be+H),Te=ee+Oe;c.style.height=Te+"px"}else{const ve=I.length>0&&v===I[0].ref.current;c.style.top="0px";const Oe=Math.max(X,U+j.offsetTop+(ve?V:0)+W)+ne;c.style.height=Oe+"px",j.scrollTop=ee-X+j.offsetTop}c.style.margin=`${Vr}px 0`,c.style.minHeight=P+"px",c.style.maxHeight=R+"px",i==null||i(),requestAnimationFrame(()=>g.current=!0)}},[p,a.trigger,a.valueNode,c,h,j,v,x,a.dir,i]);Rn(()=>w(),[w]);const[k,A]=D.useState();Rn(()=>{h&&A(window.getComputedStyle(h).zIndex)},[h]);const S=D.useCallback(E=>{E&&y.current===!0&&(w(),N==null||N(),y.current=!1)},[w,N]);return e.jsx(nW,{scope:r,contentWrapper:c,shouldExpandOnScrollRef:g,onScrollButtonChange:S,children:e.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:k},children:e.jsx(Nt.div,{...s,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});U5.displayName=eW;var tW="SelectPopperPosition",E0=D.forwardRef((t,n)=>{const{__scopeSelect:r,align:i="start",collisionPadding:s=Vr,...a}=t,o=Rf(r);return e.jsx(Y$,{...o,...a,ref:n,align:i,collisionPadding:s,style:{boxSizing:"border-box",...a.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)"}})});E0.displayName=tW;var[nW,db]=Pl(Ya,{}),T0="SelectViewport",$5=D.forwardRef((t,n)=>{const{__scopeSelect:r,nonce:i,...s}=t,a=ta(T0,r),o=db(T0,r),c=Xt(n,a.onViewportChange),d=D.useRef(0);return e.jsxs(e.Fragment,{children:[e.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:i}),e.jsx(Df.Slot,{scope:r,children:e.jsx(Nt.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:bt(s.onScroll,h=>{const f=h.currentTarget,{contentWrapper:m,shouldExpandOnScrollRef:p}=o;if(p!=null&&p.current&&m){const g=Math.abs(d.current-f.scrollTop);if(g>0){const y=window.innerHeight-Vr*2,j=parseFloat(m.style.minHeight),v=parseFloat(m.style.height),x=Math.max(j,v);if(x<y){const N=x+g,w=Math.min(y,N),k=N-w;m.style.height=w+"px",m.style.bottom==="0px"&&(f.scrollTop=k>0?k:0,m.style.justifyContent="flex-end")}}}d.current=f.scrollTop})})})]})});$5.displayName=T0;var H5="SelectGroup",[rW,iW]=Pl(H5),sW=D.forwardRef((t,n)=>{const{__scopeSelect:r,...i}=t,s=Lu();return e.jsx(rW,{scope:r,id:s,children:e.jsx(Nt.div,{role:"group","aria-labelledby":s,...i,ref:n})})});sW.displayName=H5;var W5="SelectLabel",K5=D.forwardRef((t,n)=>{const{__scopeSelect:r,...i}=t,s=iW(W5,r);return e.jsx(Nt.div,{id:s.id,...i,ref:n})});K5.displayName=W5;var sf="SelectItem",[aW,G5]=Pl(sf),Q5=D.forwardRef((t,n)=>{const{__scopeSelect:r,value:i,disabled:s=!1,textValue:a,...o}=t,c=ea(sf,r),d=ta(sf,r),h=c.value===i,[f,m]=D.useState(a??""),[p,g]=D.useState(!1),y=Xt(n,N=>{var w;return(w=d.itemRefCallback)==null?void 0:w.call(d,N,i,s)}),j=Lu(),v=D.useRef("touch"),x=()=>{s||(c.onValueChange(i),c.onOpenChange(!1))};if(i==="")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 e.jsx(aW,{scope:r,value:i,disabled:s,textId:j,isSelected:h,onItemTextChange:D.useCallback(N=>{m(w=>w||((N==null?void 0:N.textContent)??"").trim())},[]),children:e.jsx(Df.ItemSlot,{scope:r,value:i,disabled:s,textValue:f,children:e.jsx(Nt.div,{role:"option","aria-labelledby":j,"data-highlighted":p?"":void 0,"aria-selected":h&&p,"data-state":h?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...o,ref:y,onFocus:bt(o.onFocus,()=>g(!0)),onBlur:bt(o.onBlur,()=>g(!1)),onClick:bt(o.onClick,()=>{v.current!=="mouse"&&x()}),onPointerUp:bt(o.onPointerUp,()=>{v.current==="mouse"&&x()}),onPointerDown:bt(o.onPointerDown,N=>{v.current=N.pointerType}),onPointerMove:bt(o.onPointerMove,N=>{var w;v.current=N.pointerType,s?(w=d.onItemLeave)==null||w.call(d):v.current==="mouse"&&N.currentTarget.focus({preventScroll:!0})}),onPointerLeave:bt(o.onPointerLeave,N=>{var w;N.currentTarget===document.activeElement&&((w=d.onItemLeave)==null||w.call(d))}),onKeyDown:bt(o.onKeyDown,N=>{var k;((k=d.searchRef)==null?void 0:k.current)!==""&&N.key===" "||(HH.includes(N.key)&&x(),N.key===" "&&N.preventDefault())})})})})});Q5.displayName=sf;var zc="SelectItemText",Y5=D.forwardRef((t,n)=>{const{__scopeSelect:r,className:i,style:s,...a}=t,o=ea(zc,r),c=ta(zc,r),d=G5(zc,r),h=QH(zc,r),[f,m]=D.useState(null),p=Xt(n,x=>m(x),d.onItemTextChange,x=>{var N;return(N=c.itemTextRefCallback)==null?void 0:N.call(c,x,d.value,d.disabled)}),g=f==null?void 0:f.textContent,y=D.useMemo(()=>e.jsx("option",{value:d.value,disabled:d.disabled,children:g},d.value),[d.disabled,d.value,g]),{onNativeOptionAdd:j,onNativeOptionRemove:v}=h;return Rn(()=>(j(y),()=>v(y)),[j,v,y]),e.jsxs(e.Fragment,{children:[e.jsx(Nt.span,{id:d.textId,...a,ref:p}),d.isSelected&&o.valueNode&&!o.valueNodeHasChildren?Au.createPortal(a.children,o.valueNode):null]})});Y5.displayName=zc;var X5="SelectItemIndicator",J5=D.forwardRef((t,n)=>{const{__scopeSelect:r,...i}=t;return G5(X5,r).isSelected?e.jsx(Nt.span,{"aria-hidden":!0,...i,ref:n}):null});J5.displayName=X5;var O0="SelectScrollUpButton",Z5=D.forwardRef((t,n)=>{const r=ta(O0,t.__scopeSelect),i=db(O0,t.__scopeSelect),[s,a]=D.useState(!1),o=Xt(n,i.onScrollButtonChange);return Rn(()=>{if(r.viewport&&r.isPositioned){let c=function(){const h=d.scrollTop>0;a(h)};const d=r.viewport;return c(),d.addEventListener("scroll",c),()=>d.removeEventListener("scroll",c)}},[r.viewport,r.isPositioned]),s?e.jsx(tT,{...t,ref:o,onAutoScroll:()=>{const{viewport:c,selectedItem:d}=r;c&&d&&(c.scrollTop=c.scrollTop-d.offsetHeight)}}):null});Z5.displayName=O0;var P0="SelectScrollDownButton",eT=D.forwardRef((t,n)=>{const r=ta(P0,t.__scopeSelect),i=db(P0,t.__scopeSelect),[s,a]=D.useState(!1),o=Xt(n,i.onScrollButtonChange);return Rn(()=>{if(r.viewport&&r.isPositioned){let c=function(){const h=d.scrollHeight-d.clientHeight,f=Math.ceil(d.scrollTop)<h;a(f)};const d=r.viewport;return c(),d.addEventListener("scroll",c),()=>d.removeEventListener("scroll",c)}},[r.viewport,r.isPositioned]),s?e.jsx(tT,{...t,ref:o,onAutoScroll:()=>{const{viewport:c,selectedItem:d}=r;c&&d&&(c.scrollTop=c.scrollTop+d.offsetHeight)}}):null});eT.displayName=P0;var tT=D.forwardRef((t,n)=>{const{__scopeSelect:r,onAutoScroll:i,...s}=t,a=ta("SelectScrollButton",r),o=D.useRef(null),c=If(r),d=D.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return D.useEffect(()=>()=>d(),[d]),Rn(()=>{var f;const h=c().find(m=>m.ref.current===document.activeElement);(f=h==null?void 0:h.ref.current)==null||f.scrollIntoView({block:"nearest"})},[c]),e.jsx(Nt.div,{"aria-hidden":!0,...s,ref:n,style:{flexShrink:0,...s.style},onPointerDown:bt(s.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(i,50))}),onPointerMove:bt(s.onPointerMove,()=>{var h;(h=a.onItemLeave)==null||h.call(a),o.current===null&&(o.current=window.setInterval(i,50))}),onPointerLeave:bt(s.onPointerLeave,()=>{d()})})}),oW="SelectSeparator",nT=D.forwardRef((t,n)=>{const{__scopeSelect:r,...i}=t;return e.jsx(Nt.div,{"aria-hidden":!0,...i,ref:n})});nT.displayName=oW;var D0="SelectArrow",lW=D.forwardRef((t,n)=>{const{__scopeSelect:r,...i}=t,s=Rf(r),a=ea(D0,r),o=ta(D0,r);return a.open&&o.position==="popper"?e.jsx(X$,{...s,...i,ref:n}):null});lW.displayName=D0;var cW="SelectBubbleInput",rT=D.forwardRef(({__scopeSelect:t,value:n,...r},i)=>{const s=D.useRef(null),a=Xt(i,s),o=ub(n);return D.useEffect(()=>{const c=s.current;if(!c)return;const d=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(d,"value").set;if(o!==n&&f){const m=new Event("change",{bubbles:!0});f.call(c,n),c.dispatchEvent(m)}},[o,n]),e.jsx(Nt.select,{...r,style:{...N5,...r.style},ref:a,defaultValue:n})});rT.displayName=cW;function iT(t){return t===""||t===void 0}function sT(t){const n=Qs(t),r=D.useRef(""),i=D.useRef(0),s=D.useCallback(o=>{const c=r.current+o;n(c),(function d(h){r.current=h,window.clearTimeout(i.current),h!==""&&(i.current=window.setTimeout(()=>d(""),1e3))})(c)},[n]),a=D.useCallback(()=>{r.current="",window.clearTimeout(i.current)},[]);return D.useEffect(()=>()=>window.clearTimeout(i.current),[]),[r,s,a]}function aT(t,n,r){const s=n.length>1&&Array.from(n).every(h=>h===n[0])?n[0]:n,a=r?t.indexOf(r):-1;let o=uW(t,Math.max(a,0));s.length===1&&(o=o.filter(h=>h!==r));const d=o.find(h=>h.textValue.toLowerCase().startsWith(s.toLowerCase()));return d!==r?d:void 0}function uW(t,n){return t.map((r,i)=>t[(n+i)%t.length])}var dW=D5,oT=R5,hW=M5,fW=L5,mW=B5,lT=z5,pW=$5,cT=K5,uT=Q5,gW=Y5,xW=J5,dT=Z5,hT=eT,fT=nT;const Ji=dW,Zi=hW,wi=D.forwardRef(({className:t,children:n,...r},i)=>e.jsxs(oT,{ref:i,className:Yt("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),...r,children:[n,e.jsx(fW,{asChild:!0,children:e.jsx(Aa,{className:"h-4 w-4 opacity-50"})})]}));wi.displayName=oT.displayName;const mT=D.forwardRef(({className:t,...n},r)=>e.jsx(dT,{ref:r,className:Yt("flex cursor-default items-center justify-center py-1",t),...n,children:e.jsx(LP,{className:"h-4 w-4"})}));mT.displayName=dT.displayName;const pT=D.forwardRef(({className:t,...n},r)=>e.jsx(hT,{ref:r,className:Yt("flex cursor-default items-center justify-center py-1",t),...n,children:e.jsx(Aa,{className:"h-4 w-4"})}));pT.displayName=hT.displayName;const Ni=D.forwardRef(({className:t,children:n,position:r="popper",...i},s)=>e.jsx(mW,{children:e.jsxs(lT,{ref:s,className:Yt("relative z-50 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",r==="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",t),position:r,...i,children:[e.jsx(mT,{}),e.jsx(pW,{className:Yt("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:n}),e.jsx(pT,{})]})}));Ni.displayName=lT.displayName;const vW=D.forwardRef(({className:t,...n},r)=>e.jsx(cT,{ref:r,className:Yt("px-2 py-1.5 text-sm font-semibold",t),...n}));vW.displayName=cT.displayName;const St=D.forwardRef(({className:t,children:n,...r},i)=>e.jsxs(uT,{ref:i,className:Yt("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...r,children:[e.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(xW,{children:e.jsx(Ft,{className:"h-4 w-4"})})}),e.jsx(gW,{children:n})]}));St.displayName=uT.displayName;const yW=D.forwardRef(({className:t,...n},r)=>e.jsx(fT,{ref:r,className:Yt("-mx-1 my-1 h-px bg-muted",t),...n}));yW.displayName=fT.displayName;var kg,S2;function bW(){if(S2)return kg;S2=1;function t(){this.__data__=[],this.size=0}return kg=t,kg}var _g,A2;function gT(){if(A2)return _g;A2=1;function t(n,r){return n===r||n!==n&&r!==r}return _g=t,_g}var Sg,C2;function Ff(){if(C2)return Sg;C2=1;var t=gT();function n(r,i){for(var s=r.length;s--;)if(t(r[s][0],i))return s;return-1}return Sg=n,Sg}var Ag,E2;function jW(){if(E2)return Ag;E2=1;var t=Ff(),n=Array.prototype,r=n.splice;function i(s){var a=this.__data__,o=t(a,s);if(o<0)return!1;var c=a.length-1;return o==c?a.pop():r.call(a,o,1),--this.size,!0}return Ag=i,Ag}var Cg,T2;function wW(){if(T2)return Cg;T2=1;var t=Ff();function n(r){var i=this.__data__,s=t(i,r);return s<0?void 0:i[s][1]}return Cg=n,Cg}var Eg,O2;function NW(){if(O2)return Eg;O2=1;var t=Ff();function n(r){return t(this.__data__,r)>-1}return Eg=n,Eg}var Tg,P2;function kW(){if(P2)return Tg;P2=1;var t=Ff();function n(r,i){var s=this.__data__,a=t(s,r);return a<0?(++this.size,s.push([r,i])):s[a][1]=i,this}return Tg=n,Tg}var Og,D2;function Mf(){if(D2)return Og;D2=1;var t=bW(),n=jW(),r=wW(),i=NW(),s=kW();function a(o){var c=-1,d=o==null?0:o.length;for(this.clear();++c<d;){var h=o[c];this.set(h[0],h[1])}}return a.prototype.clear=t,a.prototype.delete=n,a.prototype.get=r,a.prototype.has=i,a.prototype.set=s,Og=a,Og}var Pg,I2;function _W(){if(I2)return Pg;I2=1;var t=Mf();function n(){this.__data__=new t,this.size=0}return Pg=n,Pg}var Dg,R2;function SW(){if(R2)return Dg;R2=1;function t(n){var r=this.__data__,i=r.delete(n);return this.size=r.size,i}return Dg=t,Dg}var Ig,F2;function AW(){if(F2)return Ig;F2=1;function t(n){return this.__data__.get(n)}return Ig=t,Ig}var Rg,M2;function CW(){if(M2)return Rg;M2=1;function t(n){return this.__data__.has(n)}return Rg=t,Rg}var Fg,L2;function xT(){if(L2)return Fg;L2=1;var t=typeof Zd=="object"&&Zd&&Zd.Object===Object&&Zd;return Fg=t,Fg}var Mg,B2;function ns(){if(B2)return Mg;B2=1;var t=xT(),n=typeof self=="object"&&self&&self.Object===Object&&self,r=t||n||Function("return this")();return Mg=r,Mg}var Lg,z2;function hb(){if(z2)return Lg;z2=1;var t=ns(),n=t.Symbol;return Lg=n,Lg}var Bg,q2;function EW(){if(q2)return Bg;q2=1;var t=hb(),n=Object.prototype,r=n.hasOwnProperty,i=n.toString,s=t?t.toStringTag:void 0;function a(o){var c=r.call(o,s),d=o[s];try{o[s]=void 0;var h=!0}catch{}var f=i.call(o);return h&&(c?o[s]=d:delete o[s]),f}return Bg=a,Bg}var zg,V2;function TW(){if(V2)return zg;V2=1;var t=Object.prototype,n=t.toString;function r(i){return n.call(i)}return zg=r,zg}var qg,U2;function Lf(){if(U2)return qg;U2=1;var t=hb(),n=EW(),r=TW(),i="[object Null]",s="[object Undefined]",a=t?t.toStringTag:void 0;function o(c){return c==null?c===void 0?s:i:a&&a in Object(c)?n(c):r(c)}return qg=o,qg}var Vg,$2;function vT(){if($2)return Vg;$2=1;function t(n){var r=typeof n;return n!=null&&(r=="object"||r=="function")}return Vg=t,Vg}var Ug,H2;function yT(){if(H2)return Ug;H2=1;var t=Lf(),n=vT(),r="[object AsyncFunction]",i="[object Function]",s="[object GeneratorFunction]",a="[object Proxy]";function o(c){if(!n(c))return!1;var d=t(c);return d==i||d==s||d==r||d==a}return Ug=o,Ug}var $g,W2;function OW(){if(W2)return $g;W2=1;var t=ns(),n=t["__core-js_shared__"];return $g=n,$g}var Hg,K2;function PW(){if(K2)return Hg;K2=1;var t=OW(),n=(function(){var i=/[^.]+$/.exec(t&&t.keys&&t.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})();function r(i){return!!n&&n in i}return Hg=r,Hg}var Wg,G2;function bT(){if(G2)return Wg;G2=1;var t=Function.prototype,n=t.toString;function r(i){if(i!=null){try{return n.call(i)}catch{}try{return i+""}catch{}}return""}return Wg=r,Wg}var Kg,Q2;function DW(){if(Q2)return Kg;Q2=1;var t=yT(),n=PW(),r=vT(),i=bT(),s=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,c=Object.prototype,d=o.toString,h=c.hasOwnProperty,f=RegExp("^"+d.call(h).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function m(p){if(!r(p)||n(p))return!1;var g=t(p)?f:a;return g.test(i(p))}return Kg=m,Kg}var Gg,Y2;function IW(){if(Y2)return Gg;Y2=1;function t(n,r){return n==null?void 0:n[r]}return Gg=t,Gg}var Qg,X2;function Dl(){if(X2)return Qg;X2=1;var t=DW(),n=IW();function r(i,s){var a=n(i,s);return t(a)?a:void 0}return Qg=r,Qg}var Yg,J2;function fb(){if(J2)return Yg;J2=1;var t=Dl(),n=ns(),r=t(n,"Map");return Yg=r,Yg}var Xg,Z2;function Bf(){if(Z2)return Xg;Z2=1;var t=Dl(),n=t(Object,"create");return Xg=n,Xg}var Jg,e_;function RW(){if(e_)return Jg;e_=1;var t=Bf();function n(){this.__data__=t?t(null):{},this.size=0}return Jg=n,Jg}var Zg,t_;function FW(){if(t_)return Zg;t_=1;function t(n){var r=this.has(n)&&delete this.__data__[n];return this.size-=r?1:0,r}return Zg=t,Zg}var ex,n_;function MW(){if(n_)return ex;n_=1;var t=Bf(),n="__lodash_hash_undefined__",r=Object.prototype,i=r.hasOwnProperty;function s(a){var o=this.__data__;if(t){var c=o[a];return c===n?void 0:c}return i.call(o,a)?o[a]:void 0}return ex=s,ex}var tx,r_;function LW(){if(r_)return tx;r_=1;var t=Bf(),n=Object.prototype,r=n.hasOwnProperty;function i(s){var a=this.__data__;return t?a[s]!==void 0:r.call(a,s)}return tx=i,tx}var nx,i_;function BW(){if(i_)return nx;i_=1;var t=Bf(),n="__lodash_hash_undefined__";function r(i,s){var a=this.__data__;return this.size+=this.has(i)?0:1,a[i]=t&&s===void 0?n:s,this}return nx=r,nx}var rx,s_;function zW(){if(s_)return rx;s_=1;var t=RW(),n=FW(),r=MW(),i=LW(),s=BW();function a(o){var c=-1,d=o==null?0:o.length;for(this.clear();++c<d;){var h=o[c];this.set(h[0],h[1])}}return a.prototype.clear=t,a.prototype.delete=n,a.prototype.get=r,a.prototype.has=i,a.prototype.set=s,rx=a,rx}var ix,a_;function qW(){if(a_)return ix;a_=1;var t=zW(),n=Mf(),r=fb();function i(){this.size=0,this.__data__={hash:new t,map:new(r||n),string:new t}}return ix=i,ix}var sx,o_;function VW(){if(o_)return sx;o_=1;function t(n){var r=typeof n;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?n!=="__proto__":n===null}return sx=t,sx}var ax,l_;function zf(){if(l_)return ax;l_=1;var t=VW();function n(r,i){var s=r.__data__;return t(i)?s[typeof i=="string"?"string":"hash"]:s.map}return ax=n,ax}var ox,c_;function UW(){if(c_)return ox;c_=1;var t=zf();function n(r){var i=t(this,r).delete(r);return this.size-=i?1:0,i}return ox=n,ox}var lx,u_;function $W(){if(u_)return lx;u_=1;var t=zf();function n(r){return t(this,r).get(r)}return lx=n,lx}var cx,d_;function HW(){if(d_)return cx;d_=1;var t=zf();function n(r){return t(this,r).has(r)}return cx=n,cx}var ux,h_;function WW(){if(h_)return ux;h_=1;var t=zf();function n(r,i){var s=t(this,r),a=s.size;return s.set(r,i),this.size+=s.size==a?0:1,this}return ux=n,ux}var dx,f_;function jT(){if(f_)return dx;f_=1;var t=qW(),n=UW(),r=$W(),i=HW(),s=WW();function a(o){var c=-1,d=o==null?0:o.length;for(this.clear();++c<d;){var h=o[c];this.set(h[0],h[1])}}return a.prototype.clear=t,a.prototype.delete=n,a.prototype.get=r,a.prototype.has=i,a.prototype.set=s,dx=a,dx}var hx,m_;function KW(){if(m_)return hx;m_=1;var t=Mf(),n=fb(),r=jT(),i=200;function s(a,o){var c=this.__data__;if(c instanceof t){var d=c.__data__;if(!n||d.length<i-1)return d.push([a,o]),this.size=++c.size,this;c=this.__data__=new r(d)}return c.set(a,o),this.size=c.size,this}return hx=s,hx}var fx,p_;function GW(){if(p_)return fx;p_=1;var t=Mf(),n=_W(),r=SW(),i=AW(),s=CW(),a=KW();function o(c){var d=this.__data__=new t(c);this.size=d.size}return o.prototype.clear=n,o.prototype.delete=r,o.prototype.get=i,o.prototype.has=s,o.prototype.set=a,fx=o,fx}var mx,g_;function QW(){if(g_)return mx;g_=1;var t="__lodash_hash_undefined__";function n(r){return this.__data__.set(r,t),this}return mx=n,mx}var px,x_;function YW(){if(x_)return px;x_=1;function t(n){return this.__data__.has(n)}return px=t,px}var gx,v_;function XW(){if(v_)return gx;v_=1;var t=jT(),n=QW(),r=YW();function i(s){var a=-1,o=s==null?0:s.length;for(this.__data__=new t;++a<o;)this.add(s[a])}return i.prototype.add=i.prototype.push=n,i.prototype.has=r,gx=i,gx}var xx,y_;function JW(){if(y_)return xx;y_=1;function t(n,r){for(var i=-1,s=n==null?0:n.length;++i<s;)if(r(n[i],i,n))return!0;return!1}return xx=t,xx}var vx,b_;function ZW(){if(b_)return vx;b_=1;function t(n,r){return n.has(r)}return vx=t,vx}var yx,j_;function wT(){if(j_)return yx;j_=1;var t=XW(),n=JW(),r=ZW(),i=1,s=2;function a(o,c,d,h,f,m){var p=d&i,g=o.length,y=c.length;if(g!=y&&!(p&&y>g))return!1;var j=m.get(o),v=m.get(c);if(j&&v)return j==c&&v==o;var x=-1,N=!0,w=d&s?new t:void 0;for(m.set(o,c),m.set(c,o);++x<g;){var k=o[x],A=c[x];if(h)var S=p?h(A,k,x,c,o,m):h(k,A,x,o,c,m);if(S!==void 0){if(S)continue;N=!1;break}if(w){if(!n(c,function(E,C){if(!r(w,C)&&(k===E||f(k,E,d,h,m)))return w.push(C)})){N=!1;break}}else if(!(k===A||f(k,A,d,h,m))){N=!1;break}}return m.delete(o),m.delete(c),N}return yx=a,yx}var bx,w_;function eK(){if(w_)return bx;w_=1;var t=ns(),n=t.Uint8Array;return bx=n,bx}var jx,N_;function tK(){if(N_)return jx;N_=1;function t(n){var r=-1,i=Array(n.size);return n.forEach(function(s,a){i[++r]=[a,s]}),i}return jx=t,jx}var wx,k_;function nK(){if(k_)return wx;k_=1;function t(n){var r=-1,i=Array(n.size);return n.forEach(function(s){i[++r]=s}),i}return wx=t,wx}var Nx,__;function rK(){if(__)return Nx;__=1;var t=hb(),n=eK(),r=gT(),i=wT(),s=tK(),a=nK(),o=1,c=2,d="[object Boolean]",h="[object Date]",f="[object Error]",m="[object Map]",p="[object Number]",g="[object RegExp]",y="[object Set]",j="[object String]",v="[object Symbol]",x="[object ArrayBuffer]",N="[object DataView]",w=t?t.prototype:void 0,k=w?w.valueOf:void 0;function A(S,E,C,B,F,I,R){switch(C){case N:if(S.byteLength!=E.byteLength||S.byteOffset!=E.byteOffset)return!1;S=S.buffer,E=E.buffer;case x:return!(S.byteLength!=E.byteLength||!I(new n(S),new n(E)));case d:case h:case p:return r(+S,+E);case f:return S.name==E.name&&S.message==E.message;case g:case j:return S==E+"";case m:var z=s;case y:var q=B&o;if(z||(z=a),S.size!=E.size&&!q)return!1;var U=R.get(S);if(U)return U==E;B|=c,R.set(S,E);var Q=i(z(S),z(E),B,F,I,R);return R.delete(S),Q;case v:if(k)return k.call(S)==k.call(E)}return!1}return Nx=A,Nx}var kx,S_;function iK(){if(S_)return kx;S_=1;function t(n,r){for(var i=-1,s=r.length,a=n.length;++i<s;)n[a+i]=r[i];return n}return kx=t,kx}var _x,A_;function mb(){if(A_)return _x;A_=1;var t=Array.isArray;return _x=t,_x}var Sx,C_;function sK(){if(C_)return Sx;C_=1;var t=iK(),n=mb();function r(i,s,a){var o=s(i);return n(i)?o:t(o,a(i))}return Sx=r,Sx}var Ax,E_;function aK(){if(E_)return Ax;E_=1;function t(n,r){for(var i=-1,s=n==null?0:n.length,a=0,o=[];++i<s;){var c=n[i];r(c,i,n)&&(o[a++]=c)}return o}return Ax=t,Ax}var Cx,T_;function oK(){if(T_)return Cx;T_=1;function t(){return[]}return Cx=t,Cx}var Ex,O_;function lK(){if(O_)return Ex;O_=1;var t=aK(),n=oK(),r=Object.prototype,i=r.propertyIsEnumerable,s=Object.getOwnPropertySymbols,a=s?function(o){return o==null?[]:(o=Object(o),t(s(o),function(c){return i.call(o,c)}))}:n;return Ex=a,Ex}var Tx,P_;function cK(){if(P_)return Tx;P_=1;function t(n,r){for(var i=-1,s=Array(n);++i<n;)s[i]=r(i);return s}return Tx=t,Tx}var Ox,D_;function qf(){if(D_)return Ox;D_=1;function t(n){return n!=null&&typeof n=="object"}return Ox=t,Ox}var Px,I_;function uK(){if(I_)return Px;I_=1;var t=Lf(),n=qf(),r="[object Arguments]";function i(s){return n(s)&&t(s)==r}return Px=i,Px}var Dx,R_;function dK(){if(R_)return Dx;R_=1;var t=uK(),n=qf(),r=Object.prototype,i=r.hasOwnProperty,s=r.propertyIsEnumerable,a=t((function(){return arguments})())?t:function(o){return n(o)&&i.call(o,"callee")&&!s.call(o,"callee")};return Dx=a,Dx}var qc={exports:{}},Ix,F_;function hK(){if(F_)return Ix;F_=1;function t(){return!1}return Ix=t,Ix}qc.exports;var M_;function NT(){return M_||(M_=1,(function(t,n){var r=ns(),i=hK(),s=n&&!n.nodeType&&n,a=s&&!0&&t&&!t.nodeType&&t,o=a&&a.exports===s,c=o?r.Buffer:void 0,d=c?c.isBuffer:void 0,h=d||i;t.exports=h})(qc,qc.exports)),qc.exports}var Rx,L_;function fK(){if(L_)return Rx;L_=1;var t=9007199254740991,n=/^(?:0|[1-9]\d*)$/;function r(i,s){var a=typeof i;return s=s??t,!!s&&(a=="number"||a!="symbol"&&n.test(i))&&i>-1&&i%1==0&&i<s}return Rx=r,Rx}var Fx,B_;function kT(){if(B_)return Fx;B_=1;var t=9007199254740991;function n(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=t}return Fx=n,Fx}var Mx,z_;function mK(){if(z_)return Mx;z_=1;var t=Lf(),n=kT(),r=qf(),i="[object Arguments]",s="[object Array]",a="[object Boolean]",o="[object Date]",c="[object Error]",d="[object Function]",h="[object Map]",f="[object Number]",m="[object Object]",p="[object RegExp]",g="[object Set]",y="[object String]",j="[object WeakMap]",v="[object ArrayBuffer]",x="[object DataView]",N="[object Float32Array]",w="[object Float64Array]",k="[object Int8Array]",A="[object Int16Array]",S="[object Int32Array]",E="[object Uint8Array]",C="[object Uint8ClampedArray]",B="[object Uint16Array]",F="[object Uint32Array]",I={};I[N]=I[w]=I[k]=I[A]=I[S]=I[E]=I[C]=I[B]=I[F]=!0,I[i]=I[s]=I[v]=I[a]=I[x]=I[o]=I[c]=I[d]=I[h]=I[f]=I[m]=I[p]=I[g]=I[y]=I[j]=!1;function R(z){return r(z)&&n(z.length)&&!!I[t(z)]}return Mx=R,Mx}var Lx,q_;function pK(){if(q_)return Lx;q_=1;function t(n){return function(r){return n(r)}}return Lx=t,Lx}var Vc={exports:{}};Vc.exports;var V_;function gK(){return V_||(V_=1,(function(t,n){var r=xT(),i=n&&!n.nodeType&&n,s=i&&!0&&t&&!t.nodeType&&t,a=s&&s.exports===i,o=a&&r.process,c=(function(){try{var d=s&&s.require&&s.require("util").types;return d||o&&o.binding&&o.binding("util")}catch{}})();t.exports=c})(Vc,Vc.exports)),Vc.exports}var Bx,U_;function _T(){if(U_)return Bx;U_=1;var t=mK(),n=pK(),r=gK(),i=r&&r.isTypedArray,s=i?n(i):t;return Bx=s,Bx}var zx,$_;function xK(){if($_)return zx;$_=1;var t=cK(),n=dK(),r=mb(),i=NT(),s=fK(),a=_T(),o=Object.prototype,c=o.hasOwnProperty;function d(h,f){var m=r(h),p=!m&&n(h),g=!m&&!p&&i(h),y=!m&&!p&&!g&&a(h),j=m||p||g||y,v=j?t(h.length,String):[],x=v.length;for(var N in h)(f||c.call(h,N))&&!(j&&(N=="length"||g&&(N=="offset"||N=="parent")||y&&(N=="buffer"||N=="byteLength"||N=="byteOffset")||s(N,x)))&&v.push(N);return v}return zx=d,zx}var qx,H_;function vK(){if(H_)return qx;H_=1;var t=Object.prototype;function n(r){var i=r&&r.constructor,s=typeof i=="function"&&i.prototype||t;return r===s}return qx=n,qx}var Vx,W_;function yK(){if(W_)return Vx;W_=1;function t(n,r){return function(i){return n(r(i))}}return Vx=t,Vx}var Ux,K_;function bK(){if(K_)return Ux;K_=1;var t=yK(),n=t(Object.keys,Object);return Ux=n,Ux}var $x,G_;function jK(){if(G_)return $x;G_=1;var t=vK(),n=bK(),r=Object.prototype,i=r.hasOwnProperty;function s(a){if(!t(a))return n(a);var o=[];for(var c in Object(a))i.call(a,c)&&c!="constructor"&&o.push(c);return o}return $x=s,$x}var Hx,Q_;function wK(){if(Q_)return Hx;Q_=1;var t=yT(),n=kT();function r(i){return i!=null&&n(i.length)&&!t(i)}return Hx=r,Hx}var Wx,Y_;function NK(){if(Y_)return Wx;Y_=1;var t=xK(),n=jK(),r=wK();function i(s){return r(s)?t(s):n(s)}return Wx=i,Wx}var Kx,X_;function kK(){if(X_)return Kx;X_=1;var t=sK(),n=lK(),r=NK();function i(s){return t(s,r,n)}return Kx=i,Kx}var Gx,J_;function _K(){if(J_)return Gx;J_=1;var t=kK(),n=1,r=Object.prototype,i=r.hasOwnProperty;function s(a,o,c,d,h,f){var m=c&n,p=t(a),g=p.length,y=t(o),j=y.length;if(g!=j&&!m)return!1;for(var v=g;v--;){var x=p[v];if(!(m?x in o:i.call(o,x)))return!1}var N=f.get(a),w=f.get(o);if(N&&w)return N==o&&w==a;var k=!0;f.set(a,o),f.set(o,a);for(var A=m;++v<g;){x=p[v];var S=a[x],E=o[x];if(d)var C=m?d(E,S,x,o,a,f):d(S,E,x,a,o,f);if(!(C===void 0?S===E||h(S,E,c,d,f):C)){k=!1;break}A||(A=x=="constructor")}if(k&&!A){var B=a.constructor,F=o.constructor;B!=F&&"constructor"in a&&"constructor"in o&&!(typeof B=="function"&&B instanceof B&&typeof F=="function"&&F instanceof F)&&(k=!1)}return f.delete(a),f.delete(o),k}return Gx=s,Gx}var Qx,Z_;function SK(){if(Z_)return Qx;Z_=1;var t=Dl(),n=ns(),r=t(n,"DataView");return Qx=r,Qx}var Yx,eS;function AK(){if(eS)return Yx;eS=1;var t=Dl(),n=ns(),r=t(n,"Promise");return Yx=r,Yx}var Xx,tS;function CK(){if(tS)return Xx;tS=1;var t=Dl(),n=ns(),r=t(n,"Set");return Xx=r,Xx}var Jx,nS;function EK(){if(nS)return Jx;nS=1;var t=Dl(),n=ns(),r=t(n,"WeakMap");return Jx=r,Jx}var Zx,rS;function TK(){if(rS)return Zx;rS=1;var t=SK(),n=fb(),r=AK(),i=CK(),s=EK(),a=Lf(),o=bT(),c="[object Map]",d="[object Object]",h="[object Promise]",f="[object Set]",m="[object WeakMap]",p="[object DataView]",g=o(t),y=o(n),j=o(r),v=o(i),x=o(s),N=a;return(t&&N(new t(new ArrayBuffer(1)))!=p||n&&N(new n)!=c||r&&N(r.resolve())!=h||i&&N(new i)!=f||s&&N(new s)!=m)&&(N=function(w){var k=a(w),A=k==d?w.constructor:void 0,S=A?o(A):"";if(S)switch(S){case g:return p;case y:return c;case j:return h;case v:return f;case x:return m}return k}),Zx=N,Zx}var ev,iS;function OK(){if(iS)return ev;iS=1;var t=GW(),n=wT(),r=rK(),i=_K(),s=TK(),a=mb(),o=NT(),c=_T(),d=1,h="[object Arguments]",f="[object Array]",m="[object Object]",p=Object.prototype,g=p.hasOwnProperty;function y(j,v,x,N,w,k){var A=a(j),S=a(v),E=A?f:s(j),C=S?f:s(v);E=E==h?m:E,C=C==h?m:C;var B=E==m,F=C==m,I=E==C;if(I&&o(j)){if(!o(v))return!1;A=!0,B=!1}if(I&&!B)return k||(k=new t),A||c(j)?n(j,v,x,N,w,k):r(j,v,E,x,N,w,k);if(!(x&d)){var R=B&&g.call(j,"__wrapped__"),z=F&&g.call(v,"__wrapped__");if(R||z){var q=R?j.value():j,U=z?v.value():v;return k||(k=new t),w(q,U,x,N,k)}}return I?(k||(k=new t),i(j,v,x,N,w,k)):!1}return ev=y,ev}var tv,sS;function PK(){if(sS)return tv;sS=1;var t=OK(),n=qf();function r(i,s,a,o,c){return i===s?!0:i==null||s==null||!n(i)&&!n(s)?i!==i&&s!==s:t(i,s,a,o,r,c)}return tv=r,tv}var nv,aS;function DK(){if(aS)return nv;aS=1;var t=PK();function n(r,i){return t(r,i)}return nv=n,nv}var Bh={exports:{}};/*!
* Quill Editor v1.3.7
* https://quilljs.com/
* Copyright (c) 2014, Jason Chen
* Copyright (c) 2013, salesforce.com
*/var IK=Bh.exports,oS;function RK(){return oS||(oS=1,(function(t,n){(function(i,s){t.exports=s()})(typeof self<"u"?self:IK,function(){return(function(r){var i={};function s(a){if(i[a])return i[a].exports;var o=i[a]={i:a,l:!1,exports:{}};return r[a].call(o.exports,o,o.exports,s),o.l=!0,o.exports}return s.m=r,s.c=i,s.d=function(a,o,c){s.o(a,o)||Object.defineProperty(a,o,{configurable:!1,enumerable:!0,get:c})},s.n=function(a){var o=a&&a.__esModule?function(){return a.default}:function(){return a};return s.d(o,"a",o),o},s.o=function(a,o){return Object.prototype.hasOwnProperty.call(a,o)},s.p="",s(s.s=109)})([(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=s(17),o=s(18),c=s(19),d=s(45),h=s(46),f=s(47),m=s(48),p=s(49),g=s(12),y=s(32),j=s(33),v=s(31),x=s(1),N={Scope:x.Scope,create:x.create,find:x.find,query:x.query,register:x.register,Container:a.default,Format:o.default,Leaf:c.default,Embed:m.default,Scroll:d.default,Block:f.default,Inline:h.default,Text:p.default,Attributor:{Attribute:g.default,Class:y.default,Style:j.default,Store:v.default}};i.default=N}),(function(r,i,s){var a=this&&this.__extends||(function(){var v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,N){x.__proto__=N}||function(x,N){for(var w in N)N.hasOwnProperty(w)&&(x[w]=N[w])};return function(x,N){v(x,N);function w(){this.constructor=x}x.prototype=N===null?Object.create(N):(w.prototype=N.prototype,new w)}})();Object.defineProperty(i,"__esModule",{value:!0});var o=(function(v){a(x,v);function x(N){var w=this;return N="[Parchment] "+N,w=v.call(this,N)||this,w.message=N,w.name=w.constructor.name,w}return x})(Error);i.ParchmentError=o;var c={},d={},h={},f={};i.DATA_KEY="__blot";var m;(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"})(m=i.Scope||(i.Scope={}));function p(v,x){var N=y(v);if(N==null)throw new o("Unable to create "+v+" blot");var w=N,k=v instanceof Node||v.nodeType===Node.TEXT_NODE?v:w.create(x);return new w(k,x)}i.create=p;function g(v,x){return x===void 0&&(x=!1),v==null?null:v[i.DATA_KEY]!=null?v[i.DATA_KEY].blot:x?g(v.parentNode,x):null}i.find=g;function y(v,x){x===void 0&&(x=m.ANY);var N;if(typeof v=="string")N=f[v]||c[v];else if(v instanceof Text||v.nodeType===Node.TEXT_NODE)N=f.text;else if(typeof v=="number")v&m.LEVEL&m.BLOCK?N=f.block:v&m.LEVEL&m.INLINE&&(N=f.inline);else if(v instanceof HTMLElement){var w=(v.getAttribute("class")||"").split(/\s+/);for(var k in w)if(N=d[w[k]],N)break;N=N||h[v.tagName]}return N==null?null:x&m.LEVEL&N.scope&&x&m.TYPE&N.scope?N:null}i.query=y;function j(){for(var v=[],x=0;x<arguments.length;x++)v[x]=arguments[x];if(v.length>1)return v.map(function(k){return j(k)});var N=v[0];if(typeof N.blotName!="string"&&typeof N.attrName!="string")throw new o("Invalid definition");if(N.blotName==="abstract")throw new o("Cannot register abstract class");if(f[N.blotName||N.attrName]=N,typeof N.keyName=="string")c[N.keyName]=N;else if(N.className!=null&&(d[N.className]=N),N.tagName!=null){Array.isArray(N.tagName)?N.tagName=N.tagName.map(function(k){return k.toUpperCase()}):N.tagName=N.tagName.toUpperCase();var w=Array.isArray(N.tagName)?N.tagName:[N.tagName];w.forEach(function(k){(h[k]==null||N.className==null)&&(h[k]=N)})}return N}i.register=j}),(function(r,i,s){var a=s(51),o=s(11),c=s(3),d=s(20),h="\0",f=function(m){Array.isArray(m)?this.ops=m:m!=null&&Array.isArray(m.ops)?this.ops=m.ops:this.ops=[]};f.prototype.insert=function(m,p){var g={};return m.length===0?this:(g.insert=m,p!=null&&typeof p=="object"&&Object.keys(p).length>0&&(g.attributes=p),this.push(g))},f.prototype.delete=function(m){return m<=0?this:this.push({delete:m})},f.prototype.retain=function(m,p){if(m<=0)return this;var g={retain:m};return p!=null&&typeof p=="object"&&Object.keys(p).length>0&&(g.attributes=p),this.push(g)},f.prototype.push=function(m){var p=this.ops.length,g=this.ops[p-1];if(m=c(!0,{},m),typeof g=="object"){if(typeof m.delete=="number"&&typeof g.delete=="number")return this.ops[p-1]={delete:g.delete+m.delete},this;if(typeof g.delete=="number"&&m.insert!=null&&(p-=1,g=this.ops[p-1],typeof g!="object"))return this.ops.unshift(m),this;if(o(m.attributes,g.attributes)){if(typeof m.insert=="string"&&typeof g.insert=="string")return this.ops[p-1]={insert:g.insert+m.insert},typeof m.attributes=="object"&&(this.ops[p-1].attributes=m.attributes),this;if(typeof m.retain=="number"&&typeof g.retain=="number")return this.ops[p-1]={retain:g.retain+m.retain},typeof m.attributes=="object"&&(this.ops[p-1].attributes=m.attributes),this}}return p===this.ops.length?this.ops.push(m):this.ops.splice(p,0,m),this},f.prototype.chop=function(){var m=this.ops[this.ops.length-1];return m&&m.retain&&!m.attributes&&this.ops.pop(),this},f.prototype.filter=function(m){return this.ops.filter(m)},f.prototype.forEach=function(m){this.ops.forEach(m)},f.prototype.map=function(m){return this.ops.map(m)},f.prototype.partition=function(m){var p=[],g=[];return this.forEach(function(y){var j=m(y)?p:g;j.push(y)}),[p,g]},f.prototype.reduce=function(m,p){return this.ops.reduce(m,p)},f.prototype.changeLength=function(){return this.reduce(function(m,p){return p.insert?m+d.length(p):p.delete?m-p.delete:m},0)},f.prototype.length=function(){return this.reduce(function(m,p){return m+d.length(p)},0)},f.prototype.slice=function(m,p){m=m||0,typeof p!="number"&&(p=1/0);for(var g=[],y=d.iterator(this.ops),j=0;j<p&&y.hasNext();){var v;j<m?v=y.next(m-j):(v=y.next(p-j),g.push(v)),j+=d.length(v)}return new f(g)},f.prototype.compose=function(m){var p=d.iterator(this.ops),g=d.iterator(m.ops),y=[],j=g.peek();if(j!=null&&typeof j.retain=="number"&&j.attributes==null){for(var v=j.retain;p.peekType()==="insert"&&p.peekLength()<=v;)v-=p.peekLength(),y.push(p.next());j.retain-v>0&&g.next(j.retain-v)}for(var x=new f(y);p.hasNext()||g.hasNext();)if(g.peekType()==="insert")x.push(g.next());else if(p.peekType()==="delete")x.push(p.next());else{var N=Math.min(p.peekLength(),g.peekLength()),w=p.next(N),k=g.next(N);if(typeof k.retain=="number"){var A={};typeof w.retain=="number"?A.retain=N:A.insert=w.insert;var S=d.attributes.compose(w.attributes,k.attributes,typeof w.retain=="number");if(S&&(A.attributes=S),x.push(A),!g.hasNext()&&o(x.ops[x.ops.length-1],A)){var E=new f(p.rest());return x.concat(E).chop()}}else typeof k.delete=="number"&&typeof w.retain=="number"&&x.push(k)}return x.chop()},f.prototype.concat=function(m){var p=new f(this.ops.slice());return m.ops.length>0&&(p.push(m.ops[0]),p.ops=p.ops.concat(m.ops.slice(1))),p},f.prototype.diff=function(m,p){if(this.ops===m.ops)return new f;var g=[this,m].map(function(N){return N.map(function(w){if(w.insert!=null)return typeof w.insert=="string"?w.insert:h;var k=N===m?"on":"with";throw new Error("diff() called "+k+" non-document")}).join("")}),y=new f,j=a(g[0],g[1],p),v=d.iterator(this.ops),x=d.iterator(m.ops);return j.forEach(function(N){for(var w=N[1].length;w>0;){var k=0;switch(N[0]){case a.INSERT:k=Math.min(x.peekLength(),w),y.push(x.next(k));break;case a.DELETE:k=Math.min(w,v.peekLength()),v.next(k),y.delete(k);break;case a.EQUAL:k=Math.min(v.peekLength(),x.peekLength(),w);var A=v.next(k),S=x.next(k);o(A.insert,S.insert)?y.retain(k,d.attributes.diff(A.attributes,S.attributes)):y.push(S).delete(k);break}w-=k}}),y.chop()},f.prototype.eachLine=function(m,p){p=p||`
`;for(var g=d.iterator(this.ops),y=new f,j=0;g.hasNext();){if(g.peekType()!=="insert")return;var v=g.peek(),x=d.length(v)-g.peekLength(),N=typeof v.insert=="string"?v.insert.indexOf(p,x)-x:-1;if(N<0)y.push(g.next());else if(N>0)y.push(g.next(N));else{if(m(y,g.next(1).attributes||{},j)===!1)return;j+=1,y=new f}}y.length()>0&&m(y,{},j)},f.prototype.transform=function(m,p){if(p=!!p,typeof m=="number")return this.transformPosition(m,p);for(var g=d.iterator(this.ops),y=d.iterator(m.ops),j=new f;g.hasNext()||y.hasNext();)if(g.peekType()==="insert"&&(p||y.peekType()!=="insert"))j.retain(d.length(g.next()));else if(y.peekType()==="insert")j.push(y.next());else{var v=Math.min(g.peekLength(),y.peekLength()),x=g.next(v),N=y.next(v);if(x.delete)continue;N.delete?j.push(N):j.retain(v,d.attributes.transform(x.attributes,N.attributes,p))}return j.chop()},f.prototype.transformPosition=function(m,p){p=!!p;for(var g=d.iterator(this.ops),y=0;g.hasNext()&&y<=m;){var j=g.peekLength(),v=g.peekType();if(g.next(),v==="delete"){m-=Math.min(j,m-y);continue}else v==="insert"&&(y<m||!p)&&(m+=j);y+=j}return m},r.exports=f}),(function(r,i){var s=Object.prototype.hasOwnProperty,a=Object.prototype.toString,o=Object.defineProperty,c=Object.getOwnPropertyDescriptor,d=function(g){return typeof Array.isArray=="function"?Array.isArray(g):a.call(g)==="[object Array]"},h=function(g){if(!g||a.call(g)!=="[object Object]")return!1;var y=s.call(g,"constructor"),j=g.constructor&&g.constructor.prototype&&s.call(g.constructor.prototype,"isPrototypeOf");if(g.constructor&&!y&&!j)return!1;var v;for(v in g);return typeof v>"u"||s.call(g,v)},f=function(g,y){o&&y.name==="__proto__"?o(g,y.name,{enumerable:!0,configurable:!0,value:y.newValue,writable:!0}):g[y.name]=y.newValue},m=function(g,y){if(y==="__proto__")if(s.call(g,y)){if(c)return c(g,y).value}else return;return g[y]};r.exports=function p(){var g,y,j,v,x,N,w=arguments[0],k=1,A=arguments.length,S=!1;for(typeof w=="boolean"&&(S=w,w=arguments[1]||{},k=2),(w==null||typeof w!="object"&&typeof w!="function")&&(w={});k<A;++k)if(g=arguments[k],g!=null)for(y in g)j=m(w,y),v=m(g,y),w!==v&&(S&&v&&(h(v)||(x=d(v)))?(x?(x=!1,N=j&&d(j)?j:[]):N=j&&h(j)?j:{},f(w,{name:y,newValue:p(S,N,v)})):typeof v<"u"&&f(w,{name:y,newValue:v}));return w}}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.BlockEmbed=i.bubbleFormats=void 0;var a=(function(){function I(R,z){for(var q=0;q<z.length;q++){var U=z[q];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(R,U.key,U)}}return function(R,z,q){return z&&I(R.prototype,z),q&&I(R,q),R}})(),o=function I(R,z,q){R===null&&(R=Function.prototype);var U=Object.getOwnPropertyDescriptor(R,z);if(U===void 0){var Q=Object.getPrototypeOf(R);return Q===null?void 0:I(Q,z,q)}else{if("value"in U)return U.value;var H=U.get;return H===void 0?void 0:H.call(q)}},c=s(3),d=w(c),h=s(2),f=w(h),m=s(0),p=w(m),g=s(16),y=w(g),j=s(6),v=w(j),x=s(7),N=w(x);function w(I){return I&&I.__esModule?I:{default:I}}function k(I,R){if(!(I instanceof R))throw new TypeError("Cannot call a class as a function")}function A(I,R){if(!I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R&&(typeof R=="object"||typeof R=="function")?R:I}function S(I,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof R);I.prototype=Object.create(R&&R.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),R&&(Object.setPrototypeOf?Object.setPrototypeOf(I,R):I.__proto__=R)}var E=1,C=(function(I){S(R,I);function R(){return k(this,R),A(this,(R.__proto__||Object.getPrototypeOf(R)).apply(this,arguments))}return a(R,[{key:"attach",value:function(){o(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"attach",this).call(this),this.attributes=new p.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new f.default().insert(this.value(),(0,d.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(q,U){var Q=p.default.query(q,p.default.Scope.BLOCK_ATTRIBUTE);Q!=null&&this.attributes.attribute(Q,U)}},{key:"formatAt",value:function(q,U,Q,H){this.format(Q,H)}},{key:"insertAt",value:function(q,U,Q){if(typeof U=="string"&&U.endsWith(`
`)){var H=p.default.create(B.blotName);this.parent.insertBefore(H,q===0?this:this.next),H.insertAt(0,U.slice(0,-1))}else o(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"insertAt",this).call(this,q,U,Q)}}]),R})(p.default.Embed);C.scope=p.default.Scope.BLOCK_BLOT;var B=(function(I){S(R,I);function R(z){k(this,R);var q=A(this,(R.__proto__||Object.getPrototypeOf(R)).call(this,z));return q.cache={},q}return a(R,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(p.default.Leaf).reduce(function(q,U){return U.length()===0?q:q.insert(U.value(),F(U))},new f.default).insert(`
`,F(this))),this.cache.delta}},{key:"deleteAt",value:function(q,U){o(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"deleteAt",this).call(this,q,U),this.cache={}}},{key:"formatAt",value:function(q,U,Q,H){U<=0||(p.default.query(Q,p.default.Scope.BLOCK)?q+U===this.length()&&this.format(Q,H):o(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"formatAt",this).call(this,q,Math.min(U,this.length()-q-1),Q,H),this.cache={})}},{key:"insertAt",value:function(q,U,Q){if(Q!=null)return o(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"insertAt",this).call(this,q,U,Q);if(U.length!==0){var H=U.split(`
`),K=H.shift();K.length>0&&(q<this.length()-1||this.children.tail==null?o(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"insertAt",this).call(this,Math.min(q,this.length()-1),K):this.children.tail.insertAt(this.children.tail.length(),K),this.cache={});var Y=this;H.reduce(function(P,T){return Y=Y.split(P,!0),Y.insertAt(0,T),T.length},q+K.length)}}},{key:"insertBefore",value:function(q,U){var Q=this.children.head;o(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"insertBefore",this).call(this,q,U),Q instanceof y.default&&Q.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=o(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"length",this).call(this)+E),this.cache.length}},{key:"moveChildren",value:function(q,U){o(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"moveChildren",this).call(this,q,U),this.cache={}}},{key:"optimize",value:function(q){o(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"optimize",this).call(this,q),this.cache={}}},{key:"path",value:function(q){return o(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"path",this).call(this,q,!0)}},{key:"removeChild",value:function(q){o(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"removeChild",this).call(this,q),this.cache={}}},{key:"split",value:function(q){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(U&&(q===0||q>=this.length()-E)){var Q=this.clone();return q===0?(this.parent.insertBefore(Q,this),this):(this.parent.insertBefore(Q,this.next),Q)}else{var H=o(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"split",this).call(this,q,U);return this.cache={},H}}}]),R})(p.default.Block);B.blotName="block",B.tagName="P",B.defaultChild="break",B.allowedChildren=[v.default,p.default.Embed,N.default];function F(I){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return I==null||(typeof I.formats=="function"&&(R=(0,d.default)(R,I.formats())),I.parent==null||I.parent.blotName=="scroll"||I.parent.statics.scope!==I.statics.scope)?R:F(I.parent,R)}i.bubbleFormats=F,i.BlockEmbed=C,i.default=B}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.overload=i.expandConfig=void 0;var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Y){return typeof Y}:function(Y){return Y&&typeof Symbol=="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y},o=(function(){function Y(P,T){var V=[],L=!0,X=!1,J=void 0;try{for(var W=P[Symbol.iterator](),G;!(L=(G=W.next()).done)&&(V.push(G.value),!(T&&V.length===T));L=!0);}catch(ee){X=!0,J=ee}finally{try{!L&&W.return&&W.return()}finally{if(X)throw J}}return V}return function(P,T){if(Array.isArray(P))return P;if(Symbol.iterator in Object(P))return Y(P,T);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),c=(function(){function Y(P,T){for(var V=0;V<T.length;V++){var L=T[V];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(P,L.key,L)}}return function(P,T,V){return T&&Y(P.prototype,T),V&&Y(P,V),P}})();s(50);var d=s(2),h=F(d),f=s(14),m=F(f),p=s(8),g=F(p),y=s(9),j=F(y),v=s(0),x=F(v),N=s(15),w=F(N),k=s(3),A=F(k),S=s(10),E=F(S),C=s(34),B=F(C);function F(Y){return Y&&Y.__esModule?Y:{default:Y}}function I(Y,P,T){return P in Y?Object.defineProperty(Y,P,{value:T,enumerable:!0,configurable:!0,writable:!0}):Y[P]=T,Y}function R(Y,P){if(!(Y instanceof P))throw new TypeError("Cannot call a class as a function")}var z=(0,E.default)("quill"),q=(function(){c(Y,null,[{key:"debug",value:function(T){T===!0&&(T="log"),E.default.level(T)}},{key:"find",value:function(T){return T.__quill||x.default.find(T)}},{key:"import",value:function(T){return this.imports[T]==null&&z.error("Cannot import "+T+". Are you sure it was registered?"),this.imports[T]}},{key:"register",value:function(T,V){var L=this,X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof T!="string"){var J=T.attrName||T.blotName;typeof J=="string"?this.register("formats/"+J,T,V):Object.keys(T).forEach(function(W){L.register(W,T[W],V)})}else this.imports[T]!=null&&!X&&z.warn("Overwriting "+T+" with",V),this.imports[T]=V,(T.startsWith("blots/")||T.startsWith("formats/"))&&V.blotName!=="abstract"?x.default.register(V):T.startsWith("modules")&&typeof V.register=="function"&&V.register()}}]);function Y(P){var T=this,V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(R(this,Y),this.options=U(P,V),this.container=this.options.container,this.container==null)return z.error("Invalid Quill container",P);this.options.debug&&Y.debug(this.options.debug);var L=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 g.default,this.scroll=x.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new m.default(this.scroll),this.selection=new w.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(g.default.events.EDITOR_CHANGE,function(J){J===g.default.events.TEXT_CHANGE&&T.root.classList.toggle("ql-blank",T.editor.isBlank())}),this.emitter.on(g.default.events.SCROLL_UPDATE,function(J,W){var G=T.selection.lastRange,ee=G&&G.length===0?G.index:void 0;Q.call(T,function(){return T.editor.update(null,W,ee)},J)});var X=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+L+"<p><br></p></div>");this.setContents(X),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return c(Y,[{key:"addContainer",value:function(T){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof T=="string"){var L=T;T=document.createElement("div"),T.classList.add(L)}return this.container.insertBefore(T,V),T}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(T,V,L){var X=this,J=H(T,V,L),W=o(J,4);return T=W[0],V=W[1],L=W[3],Q.call(this,function(){return X.editor.deleteText(T,V)},L,T,-1*V)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(T),this.container.classList.toggle("ql-disabled",!T)}},{key:"focus",value:function(){var T=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=T,this.scrollIntoView()}},{key:"format",value:function(T,V){var L=this,X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:g.default.sources.API;return Q.call(this,function(){var J=L.getSelection(!0),W=new h.default;if(J==null)return W;if(x.default.query(T,x.default.Scope.BLOCK))W=L.editor.formatLine(J.index,J.length,I({},T,V));else{if(J.length===0)return L.selection.format(T,V),W;W=L.editor.formatText(J.index,J.length,I({},T,V))}return L.setSelection(J,g.default.sources.SILENT),W},X)}},{key:"formatLine",value:function(T,V,L,X,J){var W=this,G=void 0,ee=H(T,V,L,X,J),ne=o(ee,4);return T=ne[0],V=ne[1],G=ne[2],J=ne[3],Q.call(this,function(){return W.editor.formatLine(T,V,G)},J,T,0)}},{key:"formatText",value:function(T,V,L,X,J){var W=this,G=void 0,ee=H(T,V,L,X,J),ne=o(ee,4);return T=ne[0],V=ne[1],G=ne[2],J=ne[3],Q.call(this,function(){return W.editor.formatText(T,V,G)},J,T,0)}},{key:"getBounds",value:function(T){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,L=void 0;typeof T=="number"?L=this.selection.getBounds(T,V):L=this.selection.getBounds(T.index,T.length);var X=this.container.getBoundingClientRect();return{bottom:L.bottom-X.top,height:L.height,left:L.left-X.left,right:L.right-X.left,top:L.top-X.top,width:L.width}}},{key:"getContents",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-T,L=H(T,V),X=o(L,2);return T=X[0],V=X[1],this.editor.getContents(T,V)}},{key:"getFormat",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof T=="number"?this.editor.getFormat(T,V):this.editor.getFormat(T.index,T.length)}},{key:"getIndex",value:function(T){return T.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(T){return this.scroll.leaf(T)}},{key:"getLine",value:function(T){return this.scroll.line(T)}},{key:"getLines",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof T!="number"?this.scroll.lines(T.index,T.length):this.scroll.lines(T,V)}},{key:"getModule",value:function(T){return this.theme.modules[T]}},{key:"getSelection",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return T&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-T,L=H(T,V),X=o(L,2);return T=X[0],V=X[1],this.editor.getText(T,V)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(T,V,L){var X=this,J=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Y.sources.API;return Q.call(this,function(){return X.editor.insertEmbed(T,V,L)},J,T)}},{key:"insertText",value:function(T,V,L,X,J){var W=this,G=void 0,ee=H(T,0,L,X,J),ne=o(ee,4);return T=ne[0],G=ne[2],J=ne[3],Q.call(this,function(){return W.editor.insertText(T,V,G)},J,T,V.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(T,V,L){this.clipboard.dangerouslyPasteHTML(T,V,L)}},{key:"removeFormat",value:function(T,V,L){var X=this,J=H(T,V,L),W=o(J,4);return T=W[0],V=W[1],L=W[3],Q.call(this,function(){return X.editor.removeFormat(T,V)},L,T)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(T){var V=this,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:g.default.sources.API;return Q.call(this,function(){T=new h.default(T);var X=V.getLength(),J=V.editor.deleteText(0,X),W=V.editor.applyDelta(T),G=W.ops[W.ops.length-1];G!=null&&typeof G.insert=="string"&&G.insert[G.insert.length-1]===`
`&&(V.editor.deleteText(V.getLength()-1,1),W.delete(1));var ee=J.compose(W);return ee},L)}},{key:"setSelection",value:function(T,V,L){if(T==null)this.selection.setRange(null,V||Y.sources.API);else{var X=H(T,V,L),J=o(X,4);T=J[0],V=J[1],L=J[3],this.selection.setRange(new N.Range(T,V),L),L!==g.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(T){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:g.default.sources.API,L=new h.default().insert(T);return this.setContents(L,V)}},{key:"update",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:g.default.sources.USER,V=this.scroll.update(T);return this.selection.update(T),V}},{key:"updateContents",value:function(T){var V=this,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:g.default.sources.API;return Q.call(this,function(){return T=new h.default(T),V.editor.applyDelta(T,L)},L,!0)}}]),Y})();q.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},q.events=g.default.events,q.sources=g.default.sources,q.version="1.3.7",q.imports={delta:h.default,parchment:x.default,"core/module":j.default,"core/theme":B.default};function U(Y,P){if(P=(0,A.default)(!0,{container:Y,modules:{clipboard:!0,keyboard:!0,history:!0}},P),!P.theme||P.theme===q.DEFAULTS.theme)P.theme=B.default;else if(P.theme=q.import("themes/"+P.theme),P.theme==null)throw new Error("Invalid theme "+P.theme+". Did you register it?");var T=(0,A.default)(!0,{},P.theme.DEFAULTS);[T,P].forEach(function(X){X.modules=X.modules||{},Object.keys(X.modules).forEach(function(J){X.modules[J]===!0&&(X.modules[J]={})})});var V=Object.keys(T.modules).concat(Object.keys(P.modules)),L=V.reduce(function(X,J){var W=q.import("modules/"+J);return W==null?z.error("Cannot load "+J+" module. Are you sure you registered it?"):X[J]=W.DEFAULTS||{},X},{});return P.modules!=null&&P.modules.toolbar&&P.modules.toolbar.constructor!==Object&&(P.modules.toolbar={container:P.modules.toolbar}),P=(0,A.default)(!0,{},q.DEFAULTS,{modules:L},T,P),["bounds","container","scrollingContainer"].forEach(function(X){typeof P[X]=="string"&&(P[X]=document.querySelector(P[X]))}),P.modules=Object.keys(P.modules).reduce(function(X,J){return P.modules[J]&&(X[J]=P.modules[J]),X},{}),P}function Q(Y,P,T,V){if(this.options.strict&&!this.isEnabled()&&P===g.default.sources.USER)return new h.default;var L=T==null?null:this.getSelection(),X=this.editor.delta,J=Y();if(L!=null&&(T===!0&&(T=L.index),V==null?L=K(L,J,P):V!==0&&(L=K(L,T,V,P)),this.setSelection(L,g.default.sources.SILENT)),J.length()>0){var W,G=[g.default.events.TEXT_CHANGE,J,X,P];if((W=this.emitter).emit.apply(W,[g.default.events.EDITOR_CHANGE].concat(G)),P!==g.default.sources.SILENT){var ee;(ee=this.emitter).emit.apply(ee,G)}}return J}function H(Y,P,T,V,L){var X={};return typeof Y.index=="number"&&typeof Y.length=="number"?typeof P!="number"?(L=V,V=T,T=P,P=Y.length,Y=Y.index):(P=Y.length,Y=Y.index):typeof P!="number"&&(L=V,V=T,T=P,P=0),(typeof T>"u"?"undefined":a(T))==="object"?(X=T,L=V):typeof T=="string"&&(V!=null?X[T]=V:L=T),L=L||g.default.sources.API,[Y,P,X,L]}function K(Y,P,T,V){if(Y==null)return null;var L=void 0,X=void 0;if(P instanceof h.default){var J=[Y.index,Y.index+Y.length].map(function(ne){return P.transformPosition(ne,V!==g.default.sources.USER)}),W=o(J,2);L=W[0],X=W[1]}else{var G=[Y.index,Y.index+Y.length].map(function(ne){return ne<P||ne===P&&V===g.default.sources.USER?ne:T>=0?ne+T:Math.max(P,ne+T)}),ee=o(G,2);L=ee[0],X=ee[1]}return new N.Range(L,X-L)}i.expandConfig=U,i.overload=H,i.default=q}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function v(x,N){for(var w=0;w<N.length;w++){var k=N[w];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(x,k.key,k)}}return function(x,N,w){return N&&v(x.prototype,N),w&&v(x,w),x}})(),o=function v(x,N,w){x===null&&(x=Function.prototype);var k=Object.getOwnPropertyDescriptor(x,N);if(k===void 0){var A=Object.getPrototypeOf(x);return A===null?void 0:v(A,N,w)}else{if("value"in k)return k.value;var S=k.get;return S===void 0?void 0:S.call(w)}},c=s(7),d=m(c),h=s(0),f=m(h);function m(v){return v&&v.__esModule?v:{default:v}}function p(v,x){if(!(v instanceof x))throw new TypeError("Cannot call a class as a function")}function g(v,x){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:v}function y(v,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);v.prototype=Object.create(x&&x.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(v,x):v.__proto__=x)}var j=(function(v){y(x,v);function x(){return p(this,x),g(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return a(x,[{key:"formatAt",value:function(w,k,A,S){if(x.compare(this.statics.blotName,A)<0&&f.default.query(A,f.default.Scope.BLOT)){var E=this.isolate(w,k);S&&E.wrap(A,S)}else o(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"formatAt",this).call(this,w,k,A,S)}},{key:"optimize",value:function(w){if(o(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"optimize",this).call(this,w),this.parent instanceof x&&x.compare(this.statics.blotName,this.parent.statics.blotName)>0){var k=this.parent.isolate(this.offset(),this.length());this.moveChildren(k),k.wrap(this)}}}],[{key:"compare",value:function(w,k){var A=x.order.indexOf(w),S=x.order.indexOf(k);return A>=0||S>=0?A-S:w===k?0:w<k?-1:1}}]),x})(f.default.Inline);j.allowedChildren=[j,f.default.Embed,d.default],j.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],i.default=j}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=s(0),o=c(a);function c(p){return p&&p.__esModule?p:{default:p}}function d(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")}function h(p,g){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:p}function f(p,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);p.prototype=Object.create(g&&g.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(p,g):p.__proto__=g)}var m=(function(p){f(g,p);function g(){return d(this,g),h(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return g})(o.default.Text);i.default=m}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function N(w,k){for(var A=0;A<k.length;A++){var S=k[A];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(w,S.key,S)}}return function(w,k,A){return k&&N(w.prototype,k),A&&N(w,A),w}})(),o=function N(w,k,A){w===null&&(w=Function.prototype);var S=Object.getOwnPropertyDescriptor(w,k);if(S===void 0){var E=Object.getPrototypeOf(w);return E===null?void 0:N(E,k,A)}else{if("value"in S)return S.value;var C=S.get;return C===void 0?void 0:C.call(A)}},c=s(54),d=m(c),h=s(10),f=m(h);function m(N){return N&&N.__esModule?N:{default:N}}function p(N,w){if(!(N instanceof w))throw new TypeError("Cannot call a class as a function")}function g(N,w){if(!N)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:N}function y(N,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);N.prototype=Object.create(w&&w.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(N,w):N.__proto__=w)}var j=(0,f.default)("quill:events"),v=["selectionchange","mousedown","mouseup","click"];v.forEach(function(N){document.addEventListener(N,function(){for(var w=arguments.length,k=Array(w),A=0;A<w;A++)k[A]=arguments[A];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(S){if(S.__quill&&S.__quill.emitter){var E;(E=S.__quill.emitter).handleDOM.apply(E,k)}})})});var x=(function(N){y(w,N);function w(){p(this,w);var k=g(this,(w.__proto__||Object.getPrototypeOf(w)).call(this));return k.listeners={},k.on("error",j.error),k}return a(w,[{key:"emit",value:function(){j.log.apply(j,arguments),o(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(A){for(var S=arguments.length,E=Array(S>1?S-1:0),C=1;C<S;C++)E[C-1]=arguments[C];(this.listeners[A.type]||[]).forEach(function(B){var F=B.node,I=B.handler;(A.target===F||F.contains(A.target))&&I.apply(void 0,[A].concat(E))})}},{key:"listenDOM",value:function(A,S,E){this.listeners[A]||(this.listeners[A]=[]),this.listeners[A].push({node:S,handler:E})}}]),w})(d.default);x.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"},x.sources={API:"api",SILENT:"silent",USER:"user"},i.default=x}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});function a(c,d){if(!(c instanceof d))throw new TypeError("Cannot call a class as a function")}var o=function c(d){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};a(this,c),this.quill=d,this.options=h};o.DEFAULTS={},i.default=o}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=["error","warn","log","info"],o="warn";function c(h){if(a.indexOf(h)<=a.indexOf(o)){for(var f,m=arguments.length,p=Array(m>1?m-1:0),g=1;g<m;g++)p[g-1]=arguments[g];(f=console)[h].apply(f,p)}}function d(h){return a.reduce(function(f,m){return f[m]=c.bind(console,m,h),f},{})}c.level=d.level=function(h){o=h},i.default=d}),(function(r,i,s){var a=Array.prototype.slice,o=s(52),c=s(53),d=r.exports=function(p,g,y){return y||(y={}),p===g?!0:p instanceof Date&&g instanceof Date?p.getTime()===g.getTime():!p||!g||typeof p!="object"&&typeof g!="object"?y.strict?p===g:p==g:m(p,g,y)};function h(p){return p==null}function f(p){return!(!p||typeof p!="object"||typeof p.length!="number"||typeof p.copy!="function"||typeof p.slice!="function"||p.length>0&&typeof p[0]!="number")}function m(p,g,y){var j,v;if(h(p)||h(g)||p.prototype!==g.prototype)return!1;if(c(p))return c(g)?(p=a.call(p),g=a.call(g),d(p,g,y)):!1;if(f(p)){if(!f(g)||p.length!==g.length)return!1;for(j=0;j<p.length;j++)if(p[j]!==g[j])return!1;return!0}try{var x=o(p),N=o(g)}catch{return!1}if(x.length!=N.length)return!1;for(x.sort(),N.sort(),j=x.length-1;j>=0;j--)if(x[j]!=N[j])return!1;for(j=x.length-1;j>=0;j--)if(v=x[j],!d(p[v],g[v],y))return!1;return typeof p==typeof g}}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=s(1),o=(function(){function c(d,h,f){f===void 0&&(f={}),this.attrName=d,this.keyName=h;var m=a.Scope.TYPE&a.Scope.ATTRIBUTE;f.scope!=null?this.scope=f.scope&a.Scope.LEVEL|m:this.scope=a.Scope.ATTRIBUTE,f.whitelist!=null&&(this.whitelist=f.whitelist)}return c.keys=function(d){return[].map.call(d.attributes,function(h){return h.name})},c.prototype.add=function(d,h){return this.canAdd(d,h)?(d.setAttribute(this.keyName,h),!0):!1},c.prototype.canAdd=function(d,h){var f=a.query(d,a.Scope.BLOT&(this.scope|a.Scope.TYPE));return f==null?!1:this.whitelist==null?!0:typeof h=="string"?this.whitelist.indexOf(h.replace(/["']/g,""))>-1:this.whitelist.indexOf(h)>-1},c.prototype.remove=function(d){d.removeAttribute(this.keyName)},c.prototype.value=function(d){var h=d.getAttribute(this.keyName);return this.canAdd(d,h)&&h?h:""},c})();i.default=o}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.Code=void 0;var a=(function(){function C(B,F){var I=[],R=!0,z=!1,q=void 0;try{for(var U=B[Symbol.iterator](),Q;!(R=(Q=U.next()).done)&&(I.push(Q.value),!(F&&I.length===F));R=!0);}catch(H){z=!0,q=H}finally{try{!R&&U.return&&U.return()}finally{if(z)throw q}}return I}return function(B,F){if(Array.isArray(B))return B;if(Symbol.iterator in Object(B))return C(B,F);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),o=(function(){function C(B,F){for(var I=0;I<F.length;I++){var R=F[I];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(B,R.key,R)}}return function(B,F,I){return F&&C(B.prototype,F),I&&C(B,I),B}})(),c=function C(B,F,I){B===null&&(B=Function.prototype);var R=Object.getOwnPropertyDescriptor(B,F);if(R===void 0){var z=Object.getPrototypeOf(B);return z===null?void 0:C(z,F,I)}else{if("value"in R)return R.value;var q=R.get;return q===void 0?void 0:q.call(I)}},d=s(2),h=N(d),f=s(0),m=N(f),p=s(4),g=N(p),y=s(6),j=N(y),v=s(7),x=N(v);function N(C){return C&&C.__esModule?C:{default:C}}function w(C,B){if(!(C instanceof B))throw new TypeError("Cannot call a class as a function")}function k(C,B){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return B&&(typeof B=="object"||typeof B=="function")?B:C}function A(C,B){if(typeof B!="function"&&B!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof B);C.prototype=Object.create(B&&B.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),B&&(Object.setPrototypeOf?Object.setPrototypeOf(C,B):C.__proto__=B)}var S=(function(C){A(B,C);function B(){return w(this,B),k(this,(B.__proto__||Object.getPrototypeOf(B)).apply(this,arguments))}return B})(j.default);S.blotName="code",S.tagName="CODE";var E=(function(C){A(B,C);function B(){return w(this,B),k(this,(B.__proto__||Object.getPrototypeOf(B)).apply(this,arguments))}return o(B,[{key:"delta",value:function(){var I=this,R=this.domNode.textContent;return R.endsWith(`
`)&&(R=R.slice(0,-1)),R.split(`
`).reduce(function(z,q){return z.insert(q).insert(`
`,I.formats())},new h.default)}},{key:"format",value:function(I,R){if(!(I===this.statics.blotName&&R)){var z=this.descendant(x.default,this.length()-1),q=a(z,1),U=q[0];U!=null&&U.deleteAt(U.length()-1,1),c(B.prototype.__proto__||Object.getPrototypeOf(B.prototype),"format",this).call(this,I,R)}}},{key:"formatAt",value:function(I,R,z,q){if(R!==0&&!(m.default.query(z,m.default.Scope.BLOCK)==null||z===this.statics.blotName&&q===this.statics.formats(this.domNode))){var U=this.newlineIndex(I);if(!(U<0||U>=I+R)){var Q=this.newlineIndex(I,!0)+1,H=U-Q+1,K=this.isolate(Q,H),Y=K.next;K.format(z,q),Y instanceof B&&Y.formatAt(0,I-Q+R-H,z,q)}}}},{key:"insertAt",value:function(I,R,z){if(z==null){var q=this.descendant(x.default,I),U=a(q,2),Q=U[0],H=U[1];Q.insertAt(H,R)}}},{key:"length",value:function(){var I=this.domNode.textContent.length;return this.domNode.textContent.endsWith(`
`)?I:I+1}},{key:"newlineIndex",value:function(I){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(R)return this.domNode.textContent.slice(0,I).lastIndexOf(`
`);var z=this.domNode.textContent.slice(I).indexOf(`
`);return z>-1?I+z:-1}},{key:"optimize",value:function(I){this.domNode.textContent.endsWith(`
`)||this.appendChild(m.default.create("text",`
`)),c(B.prototype.__proto__||Object.getPrototypeOf(B.prototype),"optimize",this).call(this,I);var R=this.next;R!=null&&R.prev===this&&R.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===R.statics.formats(R.domNode)&&(R.optimize(I),R.moveChildren(this),R.remove())}},{key:"replace",value:function(I){c(B.prototype.__proto__||Object.getPrototypeOf(B.prototype),"replace",this).call(this,I),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(R){var z=m.default.find(R);z==null?R.parentNode.removeChild(R):z instanceof m.default.Embed?z.remove():z.unwrap()})}}],[{key:"create",value:function(I){var R=c(B.__proto__||Object.getPrototypeOf(B),"create",this).call(this,I);return R.setAttribute("spellcheck",!1),R}},{key:"formats",value:function(){return!0}}]),B})(g.default);E.blotName="code-block",E.tagName="PRE",E.TAB=" ",i.Code=S,i.default=E}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Y){return typeof Y}:function(Y){return Y&&typeof Symbol=="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y},o=(function(){function Y(P,T){var V=[],L=!0,X=!1,J=void 0;try{for(var W=P[Symbol.iterator](),G;!(L=(G=W.next()).done)&&(V.push(G.value),!(T&&V.length===T));L=!0);}catch(ee){X=!0,J=ee}finally{try{!L&&W.return&&W.return()}finally{if(X)throw J}}return V}return function(P,T){if(Array.isArray(P))return P;if(Symbol.iterator in Object(P))return Y(P,T);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),c=(function(){function Y(P,T){for(var V=0;V<T.length;V++){var L=T[V];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(P,L.key,L)}}return function(P,T,V){return T&&Y(P.prototype,T),V&&Y(P,V),P}})(),d=s(2),h=R(d),f=s(20),m=R(f),p=s(0),g=R(p),y=s(13),j=R(y),v=s(24),x=R(v),N=s(4),w=R(N),k=s(16),A=R(k),S=s(21),E=R(S),C=s(11),B=R(C),F=s(3),I=R(F);function R(Y){return Y&&Y.__esModule?Y:{default:Y}}function z(Y,P,T){return P in Y?Object.defineProperty(Y,P,{value:T,enumerable:!0,configurable:!0,writable:!0}):Y[P]=T,Y}function q(Y,P){if(!(Y instanceof P))throw new TypeError("Cannot call a class as a function")}var U=/^[ -~]*$/,Q=(function(){function Y(P){q(this,Y),this.scroll=P,this.delta=this.getDelta()}return c(Y,[{key:"applyDelta",value:function(T){var V=this,L=!1;this.scroll.update();var X=this.scroll.length();return this.scroll.batchStart(),T=K(T),T.reduce(function(J,W){var G=W.retain||W.delete||W.insert.length||1,ee=W.attributes||{};if(W.insert!=null){if(typeof W.insert=="string"){var ne=W.insert;ne.endsWith(`
`)&&L&&(L=!1,ne=ne.slice(0,-1)),J>=X&&!ne.endsWith(`
`)&&(L=!0),V.scroll.insertAt(J,ne);var le=V.scroll.line(J),ve=o(le,2),be=ve[0],Oe=ve[1],Te=(0,I.default)({},(0,N.bubbleFormats)(be));if(be instanceof w.default){var We=be.descendant(g.default.Leaf,Oe),ut=o(We,1),nt=ut[0];Te=(0,I.default)(Te,(0,N.bubbleFormats)(nt))}ee=m.default.attributes.diff(Te,ee)||{}}else if(a(W.insert)==="object"){var ge=Object.keys(W.insert)[0];if(ge==null)return J;V.scroll.insertAt(J,ge,W.insert[ge])}X+=G}return Object.keys(ee).forEach(function(ye){V.scroll.formatAt(J,G,ye,ee[ye])}),J+G},0),T.reduce(function(J,W){return typeof W.delete=="number"?(V.scroll.deleteAt(J,W.delete),J):J+(W.retain||W.insert.length||1)},0),this.scroll.batchEnd(),this.update(T)}},{key:"deleteText",value:function(T,V){return this.scroll.deleteAt(T,V),this.update(new h.default().retain(T).delete(V))}},{key:"formatLine",value:function(T,V){var L=this,X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(X).forEach(function(J){if(!(L.scroll.whitelist!=null&&!L.scroll.whitelist[J])){var W=L.scroll.lines(T,Math.max(V,1)),G=V;W.forEach(function(ee){var ne=ee.length();if(!(ee instanceof j.default))ee.format(J,X[J]);else{var le=T-ee.offset(L.scroll),ve=ee.newlineIndex(le+G)-le+1;ee.formatAt(le,ve,J,X[J])}G-=ne})}}),this.scroll.optimize(),this.update(new h.default().retain(T).retain(V,(0,E.default)(X)))}},{key:"formatText",value:function(T,V){var L=this,X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(X).forEach(function(J){L.scroll.formatAt(T,V,J,X[J])}),this.update(new h.default().retain(T).retain(V,(0,E.default)(X)))}},{key:"getContents",value:function(T,V){return this.delta.slice(T,T+V)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(T,V){return T.concat(V.delta())},new h.default)}},{key:"getFormat",value:function(T){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,L=[],X=[];V===0?this.scroll.path(T).forEach(function(W){var G=o(W,1),ee=G[0];ee instanceof w.default?L.push(ee):ee instanceof g.default.Leaf&&X.push(ee)}):(L=this.scroll.lines(T,V),X=this.scroll.descendants(g.default.Leaf,T,V));var J=[L,X].map(function(W){if(W.length===0)return{};for(var G=(0,N.bubbleFormats)(W.shift());Object.keys(G).length>0;){var ee=W.shift();if(ee==null)return G;G=H((0,N.bubbleFormats)(ee),G)}return G});return I.default.apply(I.default,J)}},{key:"getText",value:function(T,V){return this.getContents(T,V).filter(function(L){return typeof L.insert=="string"}).map(function(L){return L.insert}).join("")}},{key:"insertEmbed",value:function(T,V,L){return this.scroll.insertAt(T,V,L),this.update(new h.default().retain(T).insert(z({},V,L)))}},{key:"insertText",value:function(T,V){var L=this,X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return V=V.replace(/\r\n/g,`
`).replace(/\r/g,`
`),this.scroll.insertAt(T,V),Object.keys(X).forEach(function(J){L.scroll.formatAt(T,V.length,J,X[J])}),this.update(new h.default().retain(T).insert(V,(0,E.default)(X)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var T=this.scroll.children.head;return T.statics.blotName!==w.default.blotName||T.children.length>1?!1:T.children.head instanceof A.default}},{key:"removeFormat",value:function(T,V){var L=this.getText(T,V),X=this.scroll.line(T+V),J=o(X,2),W=J[0],G=J[1],ee=0,ne=new h.default;W!=null&&(W instanceof j.default?ee=W.newlineIndex(G)-G+1:ee=W.length()-G,ne=W.delta().slice(G,G+ee-1).insert(`
`));var le=this.getContents(T,V+ee),ve=le.diff(new h.default().insert(L).concat(ne)),be=new h.default().retain(T).concat(ve);return this.applyDelta(be)}},{key:"update",value:function(T){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,X=this.delta;if(V.length===1&&V[0].type==="characterData"&&V[0].target.data.match(U)&&g.default.find(V[0].target)){var J=g.default.find(V[0].target),W=(0,N.bubbleFormats)(J),G=J.offset(this.scroll),ee=V[0].oldValue.replace(x.default.CONTENTS,""),ne=new h.default().insert(ee),le=new h.default().insert(J.value()),ve=new h.default().retain(G).concat(ne.diff(le,L));T=ve.reduce(function(be,Oe){return Oe.insert?be.insert(Oe.insert,W):be.push(Oe)},new h.default),this.delta=X.compose(T)}else this.delta=this.getDelta(),(!T||!(0,B.default)(X.compose(T),this.delta))&&(T=X.diff(this.delta,L));return T}}]),Y})();function H(Y,P){return Object.keys(P).reduce(function(T,V){return Y[V]==null||(P[V]===Y[V]?T[V]=P[V]:Array.isArray(P[V])?P[V].indexOf(Y[V])<0&&(T[V]=P[V].concat([Y[V]])):T[V]=[P[V],Y[V]]),T},{})}function K(Y){return Y.reduce(function(P,T){if(T.insert===1){var V=(0,E.default)(T.attributes);return delete V.image,P.insert({image:T.attributes.image},V)}if(T.attributes!=null&&(T.attributes.list===!0||T.attributes.bullet===!0)&&(T=(0,E.default)(T),T.attributes.list?T.attributes.list="ordered":(T.attributes.list="bullet",delete T.attributes.bullet)),typeof T.insert=="string"){var L=T.insert.replace(/\r\n/g,`
`).replace(/\r/g,`
`);return P.insert(L,T.attributes)}return P.push(T)},new h.default)}i.default=Q}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.Range=void 0;var a=(function(){function C(B,F){var I=[],R=!0,z=!1,q=void 0;try{for(var U=B[Symbol.iterator](),Q;!(R=(Q=U.next()).done)&&(I.push(Q.value),!(F&&I.length===F));R=!0);}catch(H){z=!0,q=H}finally{try{!R&&U.return&&U.return()}finally{if(z)throw q}}return I}return function(B,F){if(Array.isArray(B))return B;if(Symbol.iterator in Object(B))return C(B,F);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),o=(function(){function C(B,F){for(var I=0;I<F.length;I++){var R=F[I];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(B,R.key,R)}}return function(B,F,I){return F&&C(B.prototype,F),I&&C(B,I),B}})(),c=s(0),d=x(c),h=s(21),f=x(h),m=s(11),p=x(m),g=s(8),y=x(g),j=s(10),v=x(j);function x(C){return C&&C.__esModule?C:{default:C}}function N(C){if(Array.isArray(C)){for(var B=0,F=Array(C.length);B<C.length;B++)F[B]=C[B];return F}else return Array.from(C)}function w(C,B){if(!(C instanceof B))throw new TypeError("Cannot call a class as a function")}var k=(0,v.default)("quill:selection"),A=function C(B){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;w(this,C),this.index=B,this.length=F},S=(function(){function C(B,F){var I=this;w(this,C),this.emitter=F,this.scroll=B,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=d.default.create("cursor",this),this.lastRange=this.savedRange=new A(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){I.mouseDown||setTimeout(I.update.bind(I,y.default.sources.USER),1)}),this.emitter.on(y.default.events.EDITOR_CHANGE,function(R,z){R===y.default.events.TEXT_CHANGE&&z.length()>0&&I.update(y.default.sources.SILENT)}),this.emitter.on(y.default.events.SCROLL_BEFORE_UPDATE,function(){if(I.hasFocus()){var R=I.getNativeRange();R!=null&&R.start.node!==I.cursor.textNode&&I.emitter.once(y.default.events.SCROLL_UPDATE,function(){try{I.setNativeRange(R.start.node,R.start.offset,R.end.node,R.end.offset)}catch{}})}}),this.emitter.on(y.default.events.SCROLL_OPTIMIZE,function(R,z){if(z.range){var q=z.range,U=q.startNode,Q=q.startOffset,H=q.endNode,K=q.endOffset;I.setNativeRange(U,Q,H,K)}}),this.update(y.default.sources.SILENT)}return o(C,[{key:"handleComposition",value:function(){var F=this;this.root.addEventListener("compositionstart",function(){F.composing=!0}),this.root.addEventListener("compositionend",function(){if(F.composing=!1,F.cursor.parent){var I=F.cursor.restore();if(!I)return;setTimeout(function(){F.setNativeRange(I.startNode,I.startOffset,I.endNode,I.endOffset)},1)}})}},{key:"handleDragging",value:function(){var F=this;this.emitter.listenDOM("mousedown",document.body,function(){F.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){F.mouseDown=!1,F.update(y.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(F,I){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[F])){this.scroll.update();var R=this.getNativeRange();if(!(R==null||!R.native.collapsed||d.default.query(F,d.default.Scope.BLOCK))){if(R.start.node!==this.cursor.textNode){var z=d.default.find(R.start.node,!1);if(z==null)return;if(z instanceof d.default.Leaf){var q=z.split(R.start.offset);z.parent.insertBefore(this.cursor,q)}else z.insertBefore(this.cursor,R.start.node);this.cursor.attach()}this.cursor.format(F,I),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(F){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,R=this.scroll.length();F=Math.min(F,R-1),I=Math.min(F+I,R-1)-F;var z=void 0,q=this.scroll.leaf(F),U=a(q,2),Q=U[0],H=U[1];if(Q==null)return null;var K=Q.position(H,!0),Y=a(K,2);z=Y[0],H=Y[1];var P=document.createRange();if(I>0){P.setStart(z,H);var T=this.scroll.leaf(F+I),V=a(T,2);if(Q=V[0],H=V[1],Q==null)return null;var L=Q.position(H,!0),X=a(L,2);return z=X[0],H=X[1],P.setEnd(z,H),P.getBoundingClientRect()}else{var J="left",W=void 0;return z instanceof Text?(H<z.data.length?(P.setStart(z,H),P.setEnd(z,H+1)):(P.setStart(z,H-1),P.setEnd(z,H),J="right"),W=P.getBoundingClientRect()):(W=Q.domNode.getBoundingClientRect(),H>0&&(J="right")),{bottom:W.top+W.height,height:W.height,left:W[J],right:W[J],top:W.top,width:0}}}},{key:"getNativeRange",value:function(){var F=document.getSelection();if(F==null||F.rangeCount<=0)return null;var I=F.getRangeAt(0);if(I==null)return null;var R=this.normalizeNative(I);return k.info("getNativeRange",R),R}},{key:"getRange",value:function(){var F=this.getNativeRange();if(F==null)return[null,null];var I=this.normalizedToRange(F);return[I,F]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(F){var I=this,R=[[F.start.node,F.start.offset]];F.native.collapsed||R.push([F.end.node,F.end.offset]);var z=R.map(function(Q){var H=a(Q,2),K=H[0],Y=H[1],P=d.default.find(K,!0),T=P.offset(I.scroll);return Y===0?T:P instanceof d.default.Container?T+P.length():T+P.index(K,Y)}),q=Math.min(Math.max.apply(Math,N(z)),this.scroll.length()-1),U=Math.min.apply(Math,[q].concat(N(z)));return new A(U,q-U)}},{key:"normalizeNative",value:function(F){if(!E(this.root,F.startContainer)||!F.collapsed&&!E(this.root,F.endContainer))return null;var I={start:{node:F.startContainer,offset:F.startOffset},end:{node:F.endContainer,offset:F.endOffset},native:F};return[I.start,I.end].forEach(function(R){for(var z=R.node,q=R.offset;!(z instanceof Text)&&z.childNodes.length>0;)if(z.childNodes.length>q)z=z.childNodes[q],q=0;else if(z.childNodes.length===q)z=z.lastChild,q=z instanceof Text?z.data.length:z.childNodes.length+1;else break;R.node=z,R.offset=q}),I}},{key:"rangeToNative",value:function(F){var I=this,R=F.collapsed?[F.index]:[F.index,F.index+F.length],z=[],q=this.scroll.length();return R.forEach(function(U,Q){U=Math.min(q-1,U);var H=void 0,K=I.scroll.leaf(U),Y=a(K,2),P=Y[0],T=Y[1],V=P.position(T,Q!==0),L=a(V,2);H=L[0],T=L[1],z.push(H,T)}),z.length<2&&(z=z.concat(z)),z}},{key:"scrollIntoView",value:function(F){var I=this.lastRange;if(I!=null){var R=this.getBounds(I.index,I.length);if(R!=null){var z=this.scroll.length()-1,q=this.scroll.line(Math.min(I.index,z)),U=a(q,1),Q=U[0],H=Q;if(I.length>0){var K=this.scroll.line(Math.min(I.index+I.length,z)),Y=a(K,1);H=Y[0]}if(!(Q==null||H==null)){var P=F.getBoundingClientRect();R.top<P.top?F.scrollTop-=P.top-R.top:R.bottom>P.bottom&&(F.scrollTop+=R.bottom-P.bottom)}}}}},{key:"setNativeRange",value:function(F,I){var R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:F,z=arguments.length>3&&arguments[3]!==void 0?arguments[3]:I,q=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(k.info("setNativeRange",F,I,R,z),!(F!=null&&(this.root.parentNode==null||F.parentNode==null||R.parentNode==null))){var U=document.getSelection();if(U!=null)if(F!=null){this.hasFocus()||this.root.focus();var Q=(this.getNativeRange()||{}).native;if(Q==null||q||F!==Q.startContainer||I!==Q.startOffset||R!==Q.endContainer||z!==Q.endOffset){F.tagName=="BR"&&(I=[].indexOf.call(F.parentNode.childNodes,F),F=F.parentNode),R.tagName=="BR"&&(z=[].indexOf.call(R.parentNode.childNodes,R),R=R.parentNode);var H=document.createRange();H.setStart(F,I),H.setEnd(R,z),U.removeAllRanges(),U.addRange(H)}}else U.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(F){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:y.default.sources.API;if(typeof I=="string"&&(R=I,I=!1),k.info("setRange",F),F!=null){var z=this.rangeToNative(F);this.setNativeRange.apply(this,N(z).concat([I]))}else this.setNativeRange(null);this.update(R)}},{key:"update",value:function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:y.default.sources.USER,I=this.lastRange,R=this.getRange(),z=a(R,2),q=z[0],U=z[1];if(this.lastRange=q,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,p.default)(I,this.lastRange)){var Q;!this.composing&&U!=null&&U.native.collapsed&&U.start.node!==this.cursor.textNode&&this.cursor.restore();var H=[y.default.events.SELECTION_CHANGE,(0,f.default)(this.lastRange),(0,f.default)(I),F];if((Q=this.emitter).emit.apply(Q,[y.default.events.EDITOR_CHANGE].concat(H)),F!==y.default.sources.SILENT){var K;(K=this.emitter).emit.apply(K,H)}}}}]),C})();function E(C,B){try{B.parentNode}catch{return!1}return B instanceof Text&&(B=B.parentNode),C.contains(B)}i.Range=A,i.default=S}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function y(j,v){for(var x=0;x<v.length;x++){var N=v[x];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(j,N.key,N)}}return function(j,v,x){return v&&y(j.prototype,v),x&&y(j,x),j}})(),o=function y(j,v,x){j===null&&(j=Function.prototype);var N=Object.getOwnPropertyDescriptor(j,v);if(N===void 0){var w=Object.getPrototypeOf(j);return w===null?void 0:y(w,v,x)}else{if("value"in N)return N.value;var k=N.get;return k===void 0?void 0:k.call(x)}},c=s(0),d=h(c);function h(y){return y&&y.__esModule?y:{default:y}}function f(y,j){if(!(y instanceof j))throw new TypeError("Cannot call a class as a function")}function m(y,j){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j&&(typeof j=="object"||typeof j=="function")?j:y}function p(y,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof j);y.prototype=Object.create(j&&j.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),j&&(Object.setPrototypeOf?Object.setPrototypeOf(y,j):y.__proto__=j)}var g=(function(y){p(j,y);function j(){return f(this,j),m(this,(j.__proto__||Object.getPrototypeOf(j)).apply(this,arguments))}return a(j,[{key:"insertInto",value:function(x,N){x.children.length===0?o(j.prototype.__proto__||Object.getPrototypeOf(j.prototype),"insertInto",this).call(this,x,N):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),j})(d.default.Embed);g.blotName="break",g.tagName="BR",i.default=g}),(function(r,i,s){var a=this&&this.__extends||(function(){var m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,g){p.__proto__=g}||function(p,g){for(var y in g)g.hasOwnProperty(y)&&(p[y]=g[y])};return function(p,g){m(p,g);function y(){this.constructor=p}p.prototype=g===null?Object.create(g):(y.prototype=g.prototype,new y)}})();Object.defineProperty(i,"__esModule",{value:!0});var o=s(44),c=s(30),d=s(1),h=(function(m){a(p,m);function p(g){var y=m.call(this,g)||this;return y.build(),y}return p.prototype.appendChild=function(g){this.insertBefore(g)},p.prototype.attach=function(){m.prototype.attach.call(this),this.children.forEach(function(g){g.attach()})},p.prototype.build=function(){var g=this;this.children=new o.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(y){try{var j=f(y);g.insertBefore(j,g.children.head||void 0)}catch(v){if(v instanceof d.ParchmentError)return;throw v}})},p.prototype.deleteAt=function(g,y){if(g===0&&y===this.length())return this.remove();this.children.forEachAt(g,y,function(j,v,x){j.deleteAt(v,x)})},p.prototype.descendant=function(g,y){var j=this.children.find(y),v=j[0],x=j[1];return g.blotName==null&&g(v)||g.blotName!=null&&v instanceof g?[v,x]:v instanceof p?v.descendant(g,x):[null,-1]},p.prototype.descendants=function(g,y,j){y===void 0&&(y=0),j===void 0&&(j=Number.MAX_VALUE);var v=[],x=j;return this.children.forEachAt(y,j,function(N,w,k){(g.blotName==null&&g(N)||g.blotName!=null&&N instanceof g)&&v.push(N),N instanceof p&&(v=v.concat(N.descendants(g,w,x))),x-=k}),v},p.prototype.detach=function(){this.children.forEach(function(g){g.detach()}),m.prototype.detach.call(this)},p.prototype.formatAt=function(g,y,j,v){this.children.forEachAt(g,y,function(x,N,w){x.formatAt(N,w,j,v)})},p.prototype.insertAt=function(g,y,j){var v=this.children.find(g),x=v[0],N=v[1];if(x)x.insertAt(N,y,j);else{var w=j==null?d.create("text",y):d.create(y,j);this.appendChild(w)}},p.prototype.insertBefore=function(g,y){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(j){return g instanceof j}))throw new d.ParchmentError("Cannot insert "+g.statics.blotName+" into "+this.statics.blotName);g.insertInto(this,y)},p.prototype.length=function(){return this.children.reduce(function(g,y){return g+y.length()},0)},p.prototype.moveChildren=function(g,y){this.children.forEach(function(j){g.insertBefore(j,y)})},p.prototype.optimize=function(g){if(m.prototype.optimize.call(this,g),this.children.length===0)if(this.statics.defaultChild!=null){var y=d.create(this.statics.defaultChild);this.appendChild(y),y.optimize(g)}else this.remove()},p.prototype.path=function(g,y){y===void 0&&(y=!1);var j=this.children.find(g,y),v=j[0],x=j[1],N=[[this,g]];return v instanceof p?N.concat(v.path(x,y)):(v!=null&&N.push([v,x]),N)},p.prototype.removeChild=function(g){this.children.remove(g)},p.prototype.replace=function(g){g instanceof p&&g.moveChildren(this),m.prototype.replace.call(this,g)},p.prototype.split=function(g,y){if(y===void 0&&(y=!1),!y){if(g===0)return this;if(g===this.length())return this.next}var j=this.clone();return this.parent.insertBefore(j,this.next),this.children.forEachAt(g,this.length(),function(v,x,N){v=v.split(x,y),j.appendChild(v)}),j},p.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},p.prototype.update=function(g,y){var j=this,v=[],x=[];g.forEach(function(N){N.target===j.domNode&&N.type==="childList"&&(v.push.apply(v,N.addedNodes),x.push.apply(x,N.removedNodes))}),x.forEach(function(N){if(!(N.parentNode!=null&&N.tagName!=="IFRAME"&&document.body.compareDocumentPosition(N)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var w=d.find(N);w!=null&&(w.domNode.parentNode==null||w.domNode.parentNode===j.domNode)&&w.detach()}}),v.filter(function(N){return N.parentNode==j.domNode}).sort(function(N,w){return N===w?0:N.compareDocumentPosition(w)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(N){var w=null;N.nextSibling!=null&&(w=d.find(N.nextSibling));var k=f(N);(k.next!=w||k.next==null)&&(k.parent!=null&&k.parent.removeChild(j),j.insertBefore(k,w||void 0))})},p})(c.default);function f(m){var p=d.find(m);if(p==null)try{p=d.create(m)}catch{p=d.create(d.Scope.INLINE),[].slice.call(m.childNodes).forEach(function(y){p.domNode.appendChild(y)}),m.parentNode&&m.parentNode.replaceChild(p.domNode,m),p.attach()}return p}i.default=h}),(function(r,i,s){var a=this&&this.__extends||(function(){var m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,g){p.__proto__=g}||function(p,g){for(var y in g)g.hasOwnProperty(y)&&(p[y]=g[y])};return function(p,g){m(p,g);function y(){this.constructor=p}p.prototype=g===null?Object.create(g):(y.prototype=g.prototype,new y)}})();Object.defineProperty(i,"__esModule",{value:!0});var o=s(12),c=s(31),d=s(17),h=s(1),f=(function(m){a(p,m);function p(g){var y=m.call(this,g)||this;return y.attributes=new c.default(y.domNode),y}return p.formats=function(g){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return g.tagName.toLowerCase()},p.prototype.format=function(g,y){var j=h.query(g);j instanceof o.default?this.attributes.attribute(j,y):y&&j!=null&&(g!==this.statics.blotName||this.formats()[g]!==y)&&this.replaceWith(g,y)},p.prototype.formats=function(){var g=this.attributes.values(),y=this.statics.formats(this.domNode);return y!=null&&(g[this.statics.blotName]=y),g},p.prototype.replaceWith=function(g,y){var j=m.prototype.replaceWith.call(this,g,y);return this.attributes.copy(j),j},p.prototype.update=function(g,y){var j=this;m.prototype.update.call(this,g,y),g.some(function(v){return v.target===j.domNode&&v.type==="attributes"})&&this.attributes.build()},p.prototype.wrap=function(g,y){var j=m.prototype.wrap.call(this,g,y);return j instanceof p&&j.statics.scope===this.statics.scope&&this.attributes.move(j),j},p})(d.default);i.default=f}),(function(r,i,s){var a=this&&this.__extends||(function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var p in m)m.hasOwnProperty(p)&&(f[p]=m[p])};return function(f,m){h(f,m);function p(){this.constructor=f}f.prototype=m===null?Object.create(m):(p.prototype=m.prototype,new p)}})();Object.defineProperty(i,"__esModule",{value:!0});var o=s(30),c=s(1),d=(function(h){a(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.value=function(m){return!0},f.prototype.index=function(m,p){return this.domNode===m||this.domNode.compareDocumentPosition(m)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(p,1):-1},f.prototype.position=function(m,p){var g=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return m>0&&(g+=1),[this.parent.domNode,g]},f.prototype.value=function(){var m;return m={},m[this.statics.blotName]=this.statics.value(this.domNode)||!0,m},f.scope=c.Scope.INLINE_BLOT,f})(o.default);i.default=d}),(function(r,i,s){var a=s(11),o=s(3),c={attributes:{compose:function(h,f,m){typeof h!="object"&&(h={}),typeof f!="object"&&(f={});var p=o(!0,{},f);m||(p=Object.keys(p).reduce(function(y,j){return p[j]!=null&&(y[j]=p[j]),y},{}));for(var g in h)h[g]!==void 0&&f[g]===void 0&&(p[g]=h[g]);return Object.keys(p).length>0?p:void 0},diff:function(h,f){typeof h!="object"&&(h={}),typeof f!="object"&&(f={});var m=Object.keys(h).concat(Object.keys(f)).reduce(function(p,g){return a(h[g],f[g])||(p[g]=f[g]===void 0?null:f[g]),p},{});return Object.keys(m).length>0?m:void 0},transform:function(h,f,m){if(typeof h!="object")return f;if(typeof f=="object"){if(!m)return f;var p=Object.keys(f).reduce(function(g,y){return h[y]===void 0&&(g[y]=f[y]),g},{});return Object.keys(p).length>0?p:void 0}}},iterator:function(h){return new d(h)},length:function(h){return typeof h.delete=="number"?h.delete:typeof h.retain=="number"?h.retain:typeof h.insert=="string"?h.insert.length:1}};function d(h){this.ops=h,this.index=0,this.offset=0}d.prototype.hasNext=function(){return this.peekLength()<1/0},d.prototype.next=function(h){h||(h=1/0);var f=this.ops[this.index];if(f){var m=this.offset,p=c.length(f);if(h>=p-m?(h=p-m,this.index+=1,this.offset=0):this.offset+=h,typeof f.delete=="number")return{delete:h};var g={};return f.attributes&&(g.attributes=f.attributes),typeof f.retain=="number"?g.retain=h:typeof f.insert=="string"?g.insert=f.insert.substr(m,h):g.insert=f.insert,g}else return{retain:1/0}},d.prototype.peek=function(){return this.ops[this.index]},d.prototype.peekLength=function(){return this.ops[this.index]?c.length(this.ops[this.index])-this.offset:1/0},d.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"},d.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var h=this.offset,f=this.index,m=this.next(),p=this.ops.slice(this.index);return this.offset=h,this.index=f,[m].concat(p)}else return[]},r.exports=c}),(function(r,i){var s=(function(){function a(j,v){return v!=null&&j instanceof v}var o;try{o=Map}catch{o=function(){}}var c;try{c=Set}catch{c=function(){}}var d;try{d=Promise}catch{d=function(){}}function h(j,v,x,N,w){typeof v=="object"&&(x=v.depth,N=v.prototype,w=v.includeNonEnumerable,v=v.circular);var k=[],A=[],S=typeof Buffer<"u";typeof v>"u"&&(v=!0),typeof x>"u"&&(x=1/0);function E(C,B){if(C===null)return null;if(B===0)return C;var F,I;if(typeof C!="object")return C;if(a(C,o))F=new o;else if(a(C,c))F=new c;else if(a(C,d))F=new d(function(P,T){C.then(function(V){P(E(V,B-1))},function(V){T(E(V,B-1))})});else if(h.__isArray(C))F=[];else if(h.__isRegExp(C))F=new RegExp(C.source,y(C)),C.lastIndex&&(F.lastIndex=C.lastIndex);else if(h.__isDate(C))F=new Date(C.getTime());else{if(S&&Buffer.isBuffer(C))return Buffer.allocUnsafe?F=Buffer.allocUnsafe(C.length):F=new Buffer(C.length),C.copy(F),F;a(C,Error)?F=Object.create(C):typeof N>"u"?(I=Object.getPrototypeOf(C),F=Object.create(I)):(F=Object.create(N),I=N)}if(v){var R=k.indexOf(C);if(R!=-1)return A[R];k.push(C),A.push(F)}a(C,o)&&C.forEach(function(P,T){var V=E(T,B-1),L=E(P,B-1);F.set(V,L)}),a(C,c)&&C.forEach(function(P){var T=E(P,B-1);F.add(T)});for(var z in C){var q;I&&(q=Object.getOwnPropertyDescriptor(I,z)),!(q&&q.set==null)&&(F[z]=E(C[z],B-1))}if(Object.getOwnPropertySymbols)for(var U=Object.getOwnPropertySymbols(C),z=0;z<U.length;z++){var Q=U[z],H=Object.getOwnPropertyDescriptor(C,Q);H&&!H.enumerable&&!w||(F[Q]=E(C[Q],B-1),H.enumerable||Object.defineProperty(F,Q,{enumerable:!1}))}if(w)for(var K=Object.getOwnPropertyNames(C),z=0;z<K.length;z++){var Y=K[z],H=Object.getOwnPropertyDescriptor(C,Y);H&&H.enumerable||(F[Y]=E(C[Y],B-1),Object.defineProperty(F,Y,{enumerable:!1}))}return F}return E(j,x)}h.clonePrototype=function(v){if(v===null)return null;var x=function(){};return x.prototype=v,new x};function f(j){return Object.prototype.toString.call(j)}h.__objToStr=f;function m(j){return typeof j=="object"&&f(j)==="[object Date]"}h.__isDate=m;function p(j){return typeof j=="object"&&f(j)==="[object Array]"}h.__isArray=p;function g(j){return typeof j=="object"&&f(j)==="[object RegExp]"}h.__isRegExp=g;function y(j){var v="";return j.global&&(v+="g"),j.ignoreCase&&(v+="i"),j.multiline&&(v+="m"),v}return h.__getRegExpFlags=y,h})();typeof r=="object"&&r.exports&&(r.exports=s)}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function F(I,R){var z=[],q=!0,U=!1,Q=void 0;try{for(var H=I[Symbol.iterator](),K;!(q=(K=H.next()).done)&&(z.push(K.value),!(R&&z.length===R));q=!0);}catch(Y){U=!0,Q=Y}finally{try{!q&&H.return&&H.return()}finally{if(U)throw Q}}return z}return function(I,R){if(Array.isArray(I))return I;if(Symbol.iterator in Object(I))return F(I,R);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),o=(function(){function F(I,R){for(var z=0;z<R.length;z++){var q=R[z];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(I,q.key,q)}}return function(I,R,z){return R&&F(I.prototype,R),z&&F(I,z),I}})(),c=function F(I,R,z){I===null&&(I=Function.prototype);var q=Object.getOwnPropertyDescriptor(I,R);if(q===void 0){var U=Object.getPrototypeOf(I);return U===null?void 0:F(U,R,z)}else{if("value"in q)return q.value;var Q=q.get;return Q===void 0?void 0:Q.call(z)}},d=s(0),h=k(d),f=s(8),m=k(f),p=s(4),g=k(p),y=s(16),j=k(y),v=s(13),x=k(v),N=s(25),w=k(N);function k(F){return F&&F.__esModule?F:{default:F}}function A(F,I){if(!(F instanceof I))throw new TypeError("Cannot call a class as a function")}function S(F,I){if(!F)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I&&(typeof I=="object"||typeof I=="function")?I:F}function E(F,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof I);F.prototype=Object.create(I&&I.prototype,{constructor:{value:F,enumerable:!1,writable:!0,configurable:!0}}),I&&(Object.setPrototypeOf?Object.setPrototypeOf(F,I):F.__proto__=I)}function C(F){return F instanceof g.default||F instanceof p.BlockEmbed}var B=(function(F){E(I,F);function I(R,z){A(this,I);var q=S(this,(I.__proto__||Object.getPrototypeOf(I)).call(this,R));return q.emitter=z.emitter,Array.isArray(z.whitelist)&&(q.whitelist=z.whitelist.reduce(function(U,Q){return U[Q]=!0,U},{})),q.domNode.addEventListener("DOMNodeInserted",function(){}),q.optimize(),q.enable(),q}return o(I,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(z,q){var U=this.line(z),Q=a(U,2),H=Q[0],K=Q[1],Y=this.line(z+q),P=a(Y,1),T=P[0];if(c(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"deleteAt",this).call(this,z,q),T!=null&&H!==T&&K>0){if(H instanceof p.BlockEmbed||T instanceof p.BlockEmbed){this.optimize();return}if(H instanceof x.default){var V=H.newlineIndex(H.length(),!0);if(V>-1&&(H=H.split(V+1),H===T)){this.optimize();return}}else if(T instanceof x.default){var L=T.newlineIndex(0);L>-1&&T.split(L+1)}var X=T.children.head instanceof j.default?null:T.children.head;H.moveChildren(T,X),H.remove()}this.optimize()}},{key:"enable",value:function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",z)}},{key:"formatAt",value:function(z,q,U,Q){this.whitelist!=null&&!this.whitelist[U]||(c(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"formatAt",this).call(this,z,q,U,Q),this.optimize())}},{key:"insertAt",value:function(z,q,U){if(!(U!=null&&this.whitelist!=null&&!this.whitelist[q])){if(z>=this.length())if(U==null||h.default.query(q,h.default.Scope.BLOCK)==null){var Q=h.default.create(this.statics.defaultChild);this.appendChild(Q),U==null&&q.endsWith(`
`)&&(q=q.slice(0,-1)),Q.insertAt(0,q,U)}else{var H=h.default.create(q,U);this.appendChild(H)}else c(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"insertAt",this).call(this,z,q,U);this.optimize()}}},{key:"insertBefore",value:function(z,q){if(z.statics.scope===h.default.Scope.INLINE_BLOT){var U=h.default.create(this.statics.defaultChild);U.appendChild(z),z=U}c(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"insertBefore",this).call(this,z,q)}},{key:"leaf",value:function(z){return this.path(z).pop()||[null,-1]}},{key:"line",value:function(z){return z===this.length()?this.line(z-1):this.descendant(C,z)}},{key:"lines",value:function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,U=function Q(H,K,Y){var P=[],T=Y;return H.children.forEachAt(K,Y,function(V,L,X){C(V)?P.push(V):V instanceof h.default.Container&&(P=P.concat(Q(V,L,T))),T-=X}),P};return U(this,z,q)}},{key:"optimize",value:function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(c(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"optimize",this).call(this,z,q),z.length>0&&this.emitter.emit(m.default.events.SCROLL_OPTIMIZE,z,q))}},{key:"path",value:function(z){return c(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"path",this).call(this,z).slice(1)}},{key:"update",value:function(z){if(this.batch!==!0){var q=m.default.sources.USER;typeof z=="string"&&(q=z),Array.isArray(z)||(z=this.observer.takeRecords()),z.length>0&&this.emitter.emit(m.default.events.SCROLL_BEFORE_UPDATE,q,z),c(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"update",this).call(this,z.concat([])),z.length>0&&this.emitter.emit(m.default.events.SCROLL_UPDATE,q,z)}}}]),I})(h.default.Scroll);B.blotName="scroll",B.className="ql-editor",B.tagName="DIV",B.defaultChild="block",B.allowedChildren=[g.default,p.BlockEmbed,w.default],i.default=B}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.SHORTKEY=i.default=void 0;var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(W){return typeof W}:function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},o=(function(){function W(G,ee){var ne=[],le=!0,ve=!1,be=void 0;try{for(var Oe=G[Symbol.iterator](),Te;!(le=(Te=Oe.next()).done)&&(ne.push(Te.value),!(ee&&ne.length===ee));le=!0);}catch(We){ve=!0,be=We}finally{try{!le&&Oe.return&&Oe.return()}finally{if(ve)throw be}}return ne}return function(G,ee){if(Array.isArray(G))return G;if(Symbol.iterator in Object(G))return W(G,ee);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),c=(function(){function W(G,ee){for(var ne=0;ne<ee.length;ne++){var le=ee[ne];le.enumerable=le.enumerable||!1,le.configurable=!0,"value"in le&&(le.writable=!0),Object.defineProperty(G,le.key,le)}}return function(G,ee,ne){return ee&&W(G.prototype,ee),ne&&W(G,ne),G}})(),d=s(21),h=F(d),f=s(11),m=F(f),p=s(3),g=F(p),y=s(2),j=F(y),v=s(20),x=F(v),N=s(0),w=F(N),k=s(5),A=F(k),S=s(10),E=F(S),C=s(9),B=F(C);function F(W){return W&&W.__esModule?W:{default:W}}function I(W,G,ee){return G in W?Object.defineProperty(W,G,{value:ee,enumerable:!0,configurable:!0,writable:!0}):W[G]=ee,W}function R(W,G){if(!(W instanceof G))throw new TypeError("Cannot call a class as a function")}function z(W,G){if(!W)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return G&&(typeof G=="object"||typeof G=="function")?G:W}function q(W,G){if(typeof G!="function"&&G!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof G);W.prototype=Object.create(G&&G.prototype,{constructor:{value:W,enumerable:!1,writable:!0,configurable:!0}}),G&&(Object.setPrototypeOf?Object.setPrototypeOf(W,G):W.__proto__=G)}var U=(0,E.default)("quill:keyboard"),Q=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",H=(function(W){q(G,W),c(G,null,[{key:"match",value:function(ne,le){return le=J(le),["altKey","ctrlKey","metaKey","shiftKey"].some(function(ve){return!!le[ve]!==ne[ve]&&le[ve]!==null})?!1:le.key===(ne.which||ne.keyCode)}}]);function G(ee,ne){R(this,G);var le=z(this,(G.__proto__||Object.getPrototypeOf(G)).call(this,ee,ne));return le.bindings={},Object.keys(le.options.bindings).forEach(function(ve){ve==="list autofill"&&ee.scroll.whitelist!=null&&!ee.scroll.whitelist.list||le.options.bindings[ve]&&le.addBinding(le.options.bindings[ve])}),le.addBinding({key:G.keys.ENTER,shiftKey:null},V),le.addBinding({key:G.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(le.addBinding({key:G.keys.BACKSPACE},{collapsed:!0},Y),le.addBinding({key:G.keys.DELETE},{collapsed:!0},P)):(le.addBinding({key:G.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},Y),le.addBinding({key:G.keys.DELETE},{collapsed:!0,suffix:/^.?$/},P)),le.addBinding({key:G.keys.BACKSPACE},{collapsed:!1},T),le.addBinding({key:G.keys.DELETE},{collapsed:!1},T),le.addBinding({key:G.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},Y),le.listen(),le}return c(G,[{key:"addBinding",value:function(ne){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ve=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},be=J(ne);if(be==null||be.key==null)return U.warn("Attempted to add invalid keyboard binding",be);typeof le=="function"&&(le={handler:le}),typeof ve=="function"&&(ve={handler:ve}),be=(0,g.default)(be,le,ve),this.bindings[be.key]=this.bindings[be.key]||[],this.bindings[be.key].push(be)}},{key:"listen",value:function(){var ne=this;this.quill.root.addEventListener("keydown",function(le){if(!le.defaultPrevented){var ve=le.which||le.keyCode,be=(ne.bindings[ve]||[]).filter(function(He){return G.match(le,He)});if(be.length!==0){var Oe=ne.quill.getSelection();if(!(Oe==null||!ne.quill.hasFocus())){var Te=ne.quill.getLine(Oe.index),We=o(Te,2),ut=We[0],nt=We[1],ge=ne.quill.getLeaf(Oe.index),ye=o(ge,2),Ae=ye[0],Pe=ye[1],je=Oe.length===0?[Ae,Pe]:ne.quill.getLeaf(Oe.index+Oe.length),tt=o(je,2),et=tt[0],rt=tt[1],xe=Ae instanceof w.default.Text?Ae.value().slice(0,Pe):"",_e=et instanceof w.default.Text?et.value().slice(rt):"",De={collapsed:Oe.length===0,empty:Oe.length===0&&ut.length()<=1,format:ne.quill.getFormat(Oe),offset:nt,prefix:xe,suffix:_e},it=be.some(function(He){if(He.collapsed!=null&&He.collapsed!==De.collapsed||He.empty!=null&&He.empty!==De.empty||He.offset!=null&&He.offset!==De.offset)return!1;if(Array.isArray(He.format)){if(He.format.every(function(_t){return De.format[_t]==null}))return!1}else if(a(He.format)==="object"&&!Object.keys(He.format).every(function(_t){return He.format[_t]===!0?De.format[_t]!=null:He.format[_t]===!1?De.format[_t]==null:(0,m.default)(He.format[_t],De.format[_t])}))return!1;return He.prefix!=null&&!He.prefix.test(De.prefix)||He.suffix!=null&&!He.suffix.test(De.suffix)?!1:He.handler.call(ne,Oe,De)!==!0});it&&le.preventDefault()}}}})}}]),G})(B.default);H.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},H.DEFAULTS={bindings:{bold:X("bold"),italic:X("italic"),underline:X("underline"),indent:{key:H.keys.TAB,format:["blockquote","indent","list"],handler:function(G,ee){if(ee.collapsed&&ee.offset!==0)return!0;this.quill.format("indent","+1",A.default.sources.USER)}},outdent:{key:H.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(G,ee){if(ee.collapsed&&ee.offset!==0)return!0;this.quill.format("indent","-1",A.default.sources.USER)}},"outdent backspace":{key:H.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(G,ee){ee.format.indent!=null?this.quill.format("indent","-1",A.default.sources.USER):ee.format.list!=null&&this.quill.format("list",!1,A.default.sources.USER)}},"indent code-block":L(!0),"outdent code-block":L(!1),"remove tab":{key:H.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(G){this.quill.deleteText(G.index-1,1,A.default.sources.USER)}},tab:{key:H.keys.TAB,handler:function(G){this.quill.history.cutoff();var ee=new j.default().retain(G.index).delete(G.length).insert(" ");this.quill.updateContents(ee,A.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(G.index+1,A.default.sources.SILENT)}},"list empty enter":{key:H.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(G,ee){this.quill.format("list",!1,A.default.sources.USER),ee.format.indent&&this.quill.format("indent",!1,A.default.sources.USER)}},"checklist enter":{key:H.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(G){var ee=this.quill.getLine(G.index),ne=o(ee,2),le=ne[0],ve=ne[1],be=(0,g.default)({},le.formats(),{list:"checked"}),Oe=new j.default().retain(G.index).insert(`
`,be).retain(le.length()-ve-1).retain(1,{list:"unchecked"});this.quill.updateContents(Oe,A.default.sources.USER),this.quill.setSelection(G.index+1,A.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:H.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(G,ee){var ne=this.quill.getLine(G.index),le=o(ne,2),ve=le[0],be=le[1],Oe=new j.default().retain(G.index).insert(`
`,ee.format).retain(ve.length()-be-1).retain(1,{header:null});this.quill.updateContents(Oe,A.default.sources.USER),this.quill.setSelection(G.index+1,A.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(G,ee){var ne=ee.prefix.length,le=this.quill.getLine(G.index),ve=o(le,2),be=ve[0],Oe=ve[1];if(Oe>ne)return!0;var Te=void 0;switch(ee.prefix.trim()){case"[]":case"[ ]":Te="unchecked";break;case"[x]":Te="checked";break;case"-":case"*":Te="bullet";break;default:Te="ordered"}this.quill.insertText(G.index," ",A.default.sources.USER),this.quill.history.cutoff();var We=new j.default().retain(G.index-Oe).delete(ne+1).retain(be.length()-2-Oe).retain(1,{list:Te});this.quill.updateContents(We,A.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(G.index-ne,A.default.sources.SILENT)}},"code exit":{key:H.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(G){var ee=this.quill.getLine(G.index),ne=o(ee,2),le=ne[0],ve=ne[1],be=new j.default().retain(G.index+le.length()-ve-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(be,A.default.sources.USER)}},"embed left":K(H.keys.LEFT,!1),"embed left shift":K(H.keys.LEFT,!0),"embed right":K(H.keys.RIGHT,!1),"embed right shift":K(H.keys.RIGHT,!0)}};function K(W,G){var ee,ne=W===H.keys.LEFT?"prefix":"suffix";return ee={key:W,shiftKey:G,altKey:null},I(ee,ne,/^$/),I(ee,"handler",function(ve){var be=ve.index;W===H.keys.RIGHT&&(be+=ve.length+1);var Oe=this.quill.getLeaf(be),Te=o(Oe,1),We=Te[0];return We instanceof w.default.Embed?(W===H.keys.LEFT?G?this.quill.setSelection(ve.index-1,ve.length+1,A.default.sources.USER):this.quill.setSelection(ve.index-1,A.default.sources.USER):G?this.quill.setSelection(ve.index,ve.length+1,A.default.sources.USER):this.quill.setSelection(ve.index+ve.length+1,A.default.sources.USER),!1):!0}),ee}function Y(W,G){if(!(W.index===0||this.quill.getLength()<=1)){var ee=this.quill.getLine(W.index),ne=o(ee,1),le=ne[0],ve={};if(G.offset===0){var be=this.quill.getLine(W.index-1),Oe=o(be,1),Te=Oe[0];if(Te!=null&&Te.length()>1){var We=le.formats(),ut=this.quill.getFormat(W.index-1,1);ve=x.default.attributes.diff(We,ut)||{}}}var nt=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(G.prefix)?2:1;this.quill.deleteText(W.index-nt,nt,A.default.sources.USER),Object.keys(ve).length>0&&this.quill.formatLine(W.index-nt,nt,ve,A.default.sources.USER),this.quill.focus()}}function P(W,G){var ee=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(G.suffix)?2:1;if(!(W.index>=this.quill.getLength()-ee)){var ne={},le=0,ve=this.quill.getLine(W.index),be=o(ve,1),Oe=be[0];if(G.offset>=Oe.length()-1){var Te=this.quill.getLine(W.index+1),We=o(Te,1),ut=We[0];if(ut){var nt=Oe.formats(),ge=this.quill.getFormat(W.index,1);ne=x.default.attributes.diff(nt,ge)||{},le=ut.length()}}this.quill.deleteText(W.index,ee,A.default.sources.USER),Object.keys(ne).length>0&&this.quill.formatLine(W.index+le-1,ee,ne,A.default.sources.USER)}}function T(W){var G=this.quill.getLines(W),ee={};if(G.length>1){var ne=G[0].formats(),le=G[G.length-1].formats();ee=x.default.attributes.diff(le,ne)||{}}this.quill.deleteText(W,A.default.sources.USER),Object.keys(ee).length>0&&this.quill.formatLine(W.index,1,ee,A.default.sources.USER),this.quill.setSelection(W.index,A.default.sources.SILENT),this.quill.focus()}function V(W,G){var ee=this;W.length>0&&this.quill.scroll.deleteAt(W.index,W.length);var ne=Object.keys(G.format).reduce(function(le,ve){return w.default.query(ve,w.default.Scope.BLOCK)&&!Array.isArray(G.format[ve])&&(le[ve]=G.format[ve]),le},{});this.quill.insertText(W.index,`
`,ne,A.default.sources.USER),this.quill.setSelection(W.index+1,A.default.sources.SILENT),this.quill.focus(),Object.keys(G.format).forEach(function(le){ne[le]==null&&(Array.isArray(G.format[le])||le!=="link"&&ee.quill.format(le,G.format[le],A.default.sources.USER))})}function L(W){return{key:H.keys.TAB,shiftKey:!W,format:{"code-block":!0},handler:function(ee){var ne=w.default.query("code-block"),le=ee.index,ve=ee.length,be=this.quill.scroll.descendant(ne,le),Oe=o(be,2),Te=Oe[0],We=Oe[1];if(Te!=null){var ut=this.quill.getIndex(Te),nt=Te.newlineIndex(We,!0)+1,ge=Te.newlineIndex(ut+We+ve),ye=Te.domNode.textContent.slice(nt,ge).split(`
`);We=0,ye.forEach(function(Ae,Pe){W?(Te.insertAt(nt+We,ne.TAB),We+=ne.TAB.length,Pe===0?le+=ne.TAB.length:ve+=ne.TAB.length):Ae.startsWith(ne.TAB)&&(Te.deleteAt(nt+We,ne.TAB.length),We-=ne.TAB.length,Pe===0?le-=ne.TAB.length:ve-=ne.TAB.length),We+=Ae.length+1}),this.quill.update(A.default.sources.USER),this.quill.setSelection(le,ve,A.default.sources.SILENT)}}}}function X(W){return{key:W[0].toUpperCase(),shortKey:!0,handler:function(ee,ne){this.quill.format(W,!ne.format[W],A.default.sources.USER)}}}function J(W){if(typeof W=="string"||typeof W=="number")return J({key:W});if((typeof W>"u"?"undefined":a(W))==="object"&&(W=(0,h.default)(W,!1)),typeof W.key=="string")if(H.keys[W.key.toUpperCase()]!=null)W.key=H.keys[W.key.toUpperCase()];else if(W.key.length===1)W.key=W.key.toUpperCase().charCodeAt(0);else return null;return W.shortKey&&(W[Q]=W.shortKey,delete W.shortKey),W}i.default=H,i.SHORTKEY=Q}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function x(N,w){var k=[],A=!0,S=!1,E=void 0;try{for(var C=N[Symbol.iterator](),B;!(A=(B=C.next()).done)&&(k.push(B.value),!(w&&k.length===w));A=!0);}catch(F){S=!0,E=F}finally{try{!A&&C.return&&C.return()}finally{if(S)throw E}}return k}return function(N,w){if(Array.isArray(N))return N;if(Symbol.iterator in Object(N))return x(N,w);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),o=function x(N,w,k){N===null&&(N=Function.prototype);var A=Object.getOwnPropertyDescriptor(N,w);if(A===void 0){var S=Object.getPrototypeOf(N);return S===null?void 0:x(S,w,k)}else{if("value"in A)return A.value;var E=A.get;return E===void 0?void 0:E.call(k)}},c=(function(){function x(N,w){for(var k=0;k<w.length;k++){var A=w[k];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(N,A.key,A)}}return function(N,w,k){return w&&x(N.prototype,w),k&&x(N,k),N}})(),d=s(0),h=p(d),f=s(7),m=p(f);function p(x){return x&&x.__esModule?x:{default:x}}function g(x,N){if(!(x instanceof N))throw new TypeError("Cannot call a class as a function")}function y(x,N){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N&&(typeof N=="object"||typeof N=="function")?N:x}function j(x,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof N);x.prototype=Object.create(N&&N.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(x,N):x.__proto__=N)}var v=(function(x){j(N,x),c(N,null,[{key:"value",value:function(){}}]);function N(w,k){g(this,N);var A=y(this,(N.__proto__||Object.getPrototypeOf(N)).call(this,w));return A.selection=k,A.textNode=document.createTextNode(N.CONTENTS),A.domNode.appendChild(A.textNode),A._length=0,A}return c(N,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(k,A){if(this._length!==0)return o(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"format",this).call(this,k,A);for(var S=this,E=0;S!=null&&S.statics.scope!==h.default.Scope.BLOCK_BLOT;)E+=S.offset(S.parent),S=S.parent;S!=null&&(this._length=N.CONTENTS.length,S.optimize(),S.formatAt(E,N.CONTENTS.length,k,A),this._length=0)}},{key:"index",value:function(k,A){return k===this.textNode?0:o(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"index",this).call(this,k,A)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){o(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var k=this.textNode,A=this.selection.getNativeRange(),S=void 0,E=void 0,C=void 0;if(A!=null&&A.start.node===k&&A.end.node===k){var B=[k,A.start.offset,A.end.offset];S=B[0],E=B[1],C=B[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==N.CONTENTS){var F=this.textNode.data.split(N.CONTENTS).join("");this.next instanceof m.default?(S=this.next.domNode,this.next.insertAt(0,F),this.textNode.data=N.CONTENTS):(this.textNode.data=F,this.parent.insertBefore(h.default.create(this.textNode),this),this.textNode=document.createTextNode(N.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),E!=null){var I=[E,C].map(function(z){return Math.max(0,Math.min(S.data.length,z-1))}),R=a(I,2);return E=R[0],C=R[1],{startNode:S,startOffset:E,endNode:S,endOffset:C}}}}},{key:"update",value:function(k,A){var S=this;if(k.some(function(C){return C.type==="characterData"&&C.target===S.textNode})){var E=this.restore();E&&(A.range=E)}}},{key:"value",value:function(){return""}}]),N})(h.default.Embed);v.blotName="cursor",v.className="ql-cursor",v.tagName="span",v.CONTENTS="\uFEFF",i.default=v}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=s(0),o=h(a),c=s(4),d=h(c);function h(y){return y&&y.__esModule?y:{default:y}}function f(y,j){if(!(y instanceof j))throw new TypeError("Cannot call a class as a function")}function m(y,j){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j&&(typeof j=="object"||typeof j=="function")?j:y}function p(y,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof j);y.prototype=Object.create(j&&j.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),j&&(Object.setPrototypeOf?Object.setPrototypeOf(y,j):y.__proto__=j)}var g=(function(y){p(j,y);function j(){return f(this,j),m(this,(j.__proto__||Object.getPrototypeOf(j)).apply(this,arguments))}return j})(o.default.Container);g.allowedChildren=[d.default,c.BlockEmbed,g],i.default=g}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.ColorStyle=i.ColorClass=i.ColorAttributor=void 0;var a=(function(){function v(x,N){for(var w=0;w<N.length;w++){var k=N[w];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(x,k.key,k)}}return function(x,N,w){return N&&v(x.prototype,N),w&&v(x,w),x}})(),o=function v(x,N,w){x===null&&(x=Function.prototype);var k=Object.getOwnPropertyDescriptor(x,N);if(k===void 0){var A=Object.getPrototypeOf(x);return A===null?void 0:v(A,N,w)}else{if("value"in k)return k.value;var S=k.get;return S===void 0?void 0:S.call(w)}},c=s(0),d=h(c);function h(v){return v&&v.__esModule?v:{default:v}}function f(v,x){if(!(v instanceof x))throw new TypeError("Cannot call a class as a function")}function m(v,x){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:v}function p(v,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);v.prototype=Object.create(x&&x.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(v,x):v.__proto__=x)}var g=(function(v){p(x,v);function x(){return f(this,x),m(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return a(x,[{key:"value",value:function(w){var k=o(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"value",this).call(this,w);return k.startsWith("rgb(")?(k=k.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+k.split(",").map(function(A){return("00"+parseInt(A).toString(16)).slice(-2)}).join("")):k}}]),x})(d.default.Attributor.Style),y=new d.default.Attributor.Class("color","ql-color",{scope:d.default.Scope.INLINE}),j=new g("color","color",{scope:d.default.Scope.INLINE});i.ColorAttributor=g,i.ColorClass=y,i.ColorStyle=j}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.sanitize=i.default=void 0;var a=(function(){function j(v,x){for(var N=0;N<x.length;N++){var w=x[N];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(v,w.key,w)}}return function(v,x,N){return x&&j(v.prototype,x),N&&j(v,N),v}})(),o=function j(v,x,N){v===null&&(v=Function.prototype);var w=Object.getOwnPropertyDescriptor(v,x);if(w===void 0){var k=Object.getPrototypeOf(v);return k===null?void 0:j(k,x,N)}else{if("value"in w)return w.value;var A=w.get;return A===void 0?void 0:A.call(N)}},c=s(6),d=h(c);function h(j){return j&&j.__esModule?j:{default:j}}function f(j,v){if(!(j instanceof v))throw new TypeError("Cannot call a class as a function")}function m(j,v){if(!j)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:j}function p(j,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);j.prototype=Object.create(v&&v.prototype,{constructor:{value:j,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(j,v):j.__proto__=v)}var g=(function(j){p(v,j);function v(){return f(this,v),m(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return a(v,[{key:"format",value:function(N,w){if(N!==this.statics.blotName||!w)return o(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"format",this).call(this,N,w);w=this.constructor.sanitize(w),this.domNode.setAttribute("href",w)}}],[{key:"create",value:function(N){var w=o(v.__proto__||Object.getPrototypeOf(v),"create",this).call(this,N);return N=this.sanitize(N),w.setAttribute("href",N),w.setAttribute("rel","noopener noreferrer"),w.setAttribute("target","_blank"),w}},{key:"formats",value:function(N){return N.getAttribute("href")}},{key:"sanitize",value:function(N){return y(N,this.PROTOCOL_WHITELIST)?N:this.SANITIZED_URL}}]),v})(d.default);g.blotName="link",g.tagName="A",g.SANITIZED_URL="about:blank",g.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function y(j,v){var x=document.createElement("a");x.href=j;var N=x.href.slice(0,x.href.indexOf(":"));return v.indexOf(N)>-1}i.default=g,i.sanitize=y}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=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(x,N){for(var w=0;w<N.length;w++){var k=N[w];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(x,k.key,k)}}return function(x,N,w){return N&&v(x.prototype,N),w&&v(x,w),x}})(),c=s(23),d=m(c),h=s(107),f=m(h);function m(v){return v&&v.__esModule?v:{default:v}}function p(v,x){if(!(v instanceof x))throw new TypeError("Cannot call a class as a function")}var g=0;function y(v,x){v.setAttribute(x,v.getAttribute(x)!=="true")}var j=(function(){function v(x){var N=this;p(this,v),this.select=x,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(){N.togglePicker()}),this.label.addEventListener("keydown",function(w){switch(w.keyCode){case d.default.keys.ENTER:N.togglePicker();break;case d.default.keys.ESCAPE:N.escape(),w.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(N){var w=this,k=document.createElement("span");return k.tabIndex="0",k.setAttribute("role","button"),k.classList.add("ql-picker-item"),N.hasAttribute("value")&&k.setAttribute("data-value",N.getAttribute("value")),N.textContent&&k.setAttribute("data-label",N.textContent),k.addEventListener("click",function(){w.selectItem(k,!0)}),k.addEventListener("keydown",function(A){switch(A.keyCode){case d.default.keys.ENTER:w.selectItem(k,!0),A.preventDefault();break;case d.default.keys.ESCAPE:w.escape(),A.preventDefault();break}}),k}},{key:"buildLabel",value:function(){var N=document.createElement("span");return N.classList.add("ql-picker-label"),N.innerHTML=f.default,N.tabIndex="0",N.setAttribute("role","button"),N.setAttribute("aria-expanded","false"),this.container.appendChild(N),N}},{key:"buildOptions",value:function(){var N=this,w=document.createElement("span");w.classList.add("ql-picker-options"),w.setAttribute("aria-hidden","true"),w.tabIndex="-1",w.id="ql-picker-options-"+g,g+=1,this.label.setAttribute("aria-controls",w.id),this.options=w,[].slice.call(this.select.options).forEach(function(k){var A=N.buildItem(k);w.appendChild(A),k.selected===!0&&N.selectItem(A)}),this.container.appendChild(w)}},{key:"buildPicker",value:function(){var N=this;[].slice.call(this.select.attributes).forEach(function(w){N.container.setAttribute(w.name,w.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var N=this;this.close(),setTimeout(function(){return N.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(N){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,k=this.container.querySelector(".ql-selected");if(N!==k&&(k!=null&&k.classList.remove("ql-selected"),N!=null&&(N.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(N.parentNode.children,N),N.hasAttribute("data-value")?this.label.setAttribute("data-value",N.getAttribute("data-value")):this.label.removeAttribute("data-value"),N.hasAttribute("data-label")?this.label.setAttribute("data-label",N.getAttribute("data-label")):this.label.removeAttribute("data-label"),w))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":a(Event))==="object"){var A=document.createEvent("Event");A.initEvent("change",!0,!0),this.select.dispatchEvent(A)}this.close()}}},{key:"update",value:function(){var N=void 0;if(this.select.selectedIndex>-1){var w=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];N=this.select.options[this.select.selectedIndex],this.selectItem(w)}else this.selectItem(null);var k=N!=null&&N!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",k)}}]),v})();i.default=j}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=s(0),o=U(a),c=s(5),d=U(c),h=s(4),f=U(h),m=s(16),p=U(m),g=s(25),y=U(g),j=s(24),v=U(j),x=s(35),N=U(x),w=s(6),k=U(w),A=s(22),S=U(A),E=s(7),C=U(E),B=s(55),F=U(B),I=s(42),R=U(I),z=s(23),q=U(z);function U(Q){return Q&&Q.__esModule?Q:{default:Q}}d.default.register({"blots/block":f.default,"blots/block/embed":h.BlockEmbed,"blots/break":p.default,"blots/container":y.default,"blots/cursor":v.default,"blots/embed":N.default,"blots/inline":k.default,"blots/scroll":S.default,"blots/text":C.default,"modules/clipboard":F.default,"modules/history":R.default,"modules/keyboard":q.default}),o.default.register(f.default,p.default,v.default,k.default,S.default,C.default),i.default=d.default}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=s(1),o=(function(){function c(d){this.domNode=d,this.domNode[a.DATA_KEY]={blot:this}}return Object.defineProperty(c.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),c.create=function(d){if(this.tagName==null)throw new a.ParchmentError("Blot definition missing tagName");var h;return Array.isArray(this.tagName)?(typeof d=="string"&&(d=d.toUpperCase(),parseInt(d).toString()===d&&(d=parseInt(d))),typeof d=="number"?h=document.createElement(this.tagName[d-1]):this.tagName.indexOf(d)>-1?h=document.createElement(d):h=document.createElement(this.tagName[0])):h=document.createElement(this.tagName),this.className&&h.classList.add(this.className),h},c.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},c.prototype.clone=function(){var d=this.domNode.cloneNode(!1);return a.create(d)},c.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[a.DATA_KEY]},c.prototype.deleteAt=function(d,h){var f=this.isolate(d,h);f.remove()},c.prototype.formatAt=function(d,h,f,m){var p=this.isolate(d,h);if(a.query(f,a.Scope.BLOT)!=null&&m)p.wrap(f,m);else if(a.query(f,a.Scope.ATTRIBUTE)!=null){var g=a.create(this.statics.scope);p.wrap(g),g.format(f,m)}},c.prototype.insertAt=function(d,h,f){var m=f==null?a.create("text",h):a.create(h,f),p=this.split(d);this.parent.insertBefore(m,p)},c.prototype.insertInto=function(d,h){h===void 0&&(h=null),this.parent!=null&&this.parent.children.remove(this);var f=null;d.children.insertBefore(this,h),h!=null&&(f=h.domNode),(this.domNode.parentNode!=d.domNode||this.domNode.nextSibling!=f)&&d.domNode.insertBefore(this.domNode,f),this.parent=d,this.attach()},c.prototype.isolate=function(d,h){var f=this.split(d);return f.split(h),f},c.prototype.length=function(){return 1},c.prototype.offset=function(d){return d===void 0&&(d=this.parent),this.parent==null||this==d?0:this.parent.children.offset(this)+this.parent.offset(d)},c.prototype.optimize=function(d){this.domNode[a.DATA_KEY]!=null&&delete this.domNode[a.DATA_KEY].mutations},c.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},c.prototype.replace=function(d){d.parent!=null&&(d.parent.insertBefore(this,d.next),d.remove())},c.prototype.replaceWith=function(d,h){var f=typeof d=="string"?a.create(d,h):d;return f.replace(this),f},c.prototype.split=function(d,h){return d===0?this:this.next},c.prototype.update=function(d,h){},c.prototype.wrap=function(d,h){var f=typeof d=="string"?a.create(d,h):d;return this.parent!=null&&this.parent.insertBefore(f,this.next),f.appendChild(this),f},c.blotName="abstract",c})();i.default=o}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=s(12),o=s(32),c=s(33),d=s(1),h=(function(){function f(m){this.attributes={},this.domNode=m,this.build()}return f.prototype.attribute=function(m,p){p?m.add(this.domNode,p)&&(m.value(this.domNode)!=null?this.attributes[m.attrName]=m:delete this.attributes[m.attrName]):(m.remove(this.domNode),delete this.attributes[m.attrName])},f.prototype.build=function(){var m=this;this.attributes={};var p=a.default.keys(this.domNode),g=o.default.keys(this.domNode),y=c.default.keys(this.domNode);p.concat(g).concat(y).forEach(function(j){var v=d.query(j,d.Scope.ATTRIBUTE);v instanceof a.default&&(m.attributes[v.attrName]=v)})},f.prototype.copy=function(m){var p=this;Object.keys(this.attributes).forEach(function(g){var y=p.attributes[g].value(p.domNode);m.format(g,y)})},f.prototype.move=function(m){var p=this;this.copy(m),Object.keys(this.attributes).forEach(function(g){p.attributes[g].remove(p.domNode)}),this.attributes={}},f.prototype.values=function(){var m=this;return Object.keys(this.attributes).reduce(function(p,g){return p[g]=m.attributes[g].value(m.domNode),p},{})},f})();i.default=h}),(function(r,i,s){var a=this&&this.__extends||(function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var p in m)m.hasOwnProperty(p)&&(f[p]=m[p])};return function(f,m){h(f,m);function p(){this.constructor=f}f.prototype=m===null?Object.create(m):(p.prototype=m.prototype,new p)}})();Object.defineProperty(i,"__esModule",{value:!0});var o=s(12);function c(h,f){var m=h.getAttribute("class")||"";return m.split(/\s+/).filter(function(p){return p.indexOf(f+"-")===0})}var d=(function(h){a(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.keys=function(m){return(m.getAttribute("class")||"").split(/\s+/).map(function(p){return p.split("-").slice(0,-1).join("-")})},f.prototype.add=function(m,p){return this.canAdd(m,p)?(this.remove(m),m.classList.add(this.keyName+"-"+p),!0):!1},f.prototype.remove=function(m){var p=c(m,this.keyName);p.forEach(function(g){m.classList.remove(g)}),m.classList.length===0&&m.removeAttribute("class")},f.prototype.value=function(m){var p=c(m,this.keyName)[0]||"",g=p.slice(this.keyName.length+1);return this.canAdd(m,g)?g:""},f})(o.default);i.default=d}),(function(r,i,s){var a=this&&this.__extends||(function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var p in m)m.hasOwnProperty(p)&&(f[p]=m[p])};return function(f,m){h(f,m);function p(){this.constructor=f}f.prototype=m===null?Object.create(m):(p.prototype=m.prototype,new p)}})();Object.defineProperty(i,"__esModule",{value:!0});var o=s(12);function c(h){var f=h.split("-"),m=f.slice(1).map(function(p){return p[0].toUpperCase()+p.slice(1)}).join("");return f[0]+m}var d=(function(h){a(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.keys=function(m){return(m.getAttribute("style")||"").split(";").map(function(p){var g=p.split(":");return g[0].trim()})},f.prototype.add=function(m,p){return this.canAdd(m,p)?(m.style[c(this.keyName)]=p,!0):!1},f.prototype.remove=function(m){m.style[c(this.keyName)]="",m.getAttribute("style")||m.removeAttribute("style")},f.prototype.value=function(m){var p=m.style[c(this.keyName)];return this.canAdd(m,p)?p:""},f})(o.default);i.default=d}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function d(h,f){for(var m=0;m<f.length;m++){var p=f[m];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(h,p.key,p)}}return function(h,f,m){return f&&d(h.prototype,f),m&&d(h,m),h}})();function o(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")}var c=(function(){function d(h,f){o(this,d),this.quill=h,this.options=f,this.modules={}}return a(d,[{key:"init",value:function(){var f=this;Object.keys(this.options.modules).forEach(function(m){f.modules[m]==null&&f.addModule(m)})}},{key:"addModule",value:function(f){var m=this.quill.constructor.import("modules/"+f);return this.modules[f]=new m(this.quill,this.options.modules[f]||{}),this.modules[f]}}]),d})();c.DEFAULTS={modules:{}},c.themes={default:c},i.default=c}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function x(N,w){for(var k=0;k<w.length;k++){var A=w[k];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(N,A.key,A)}}return function(N,w,k){return w&&x(N.prototype,w),k&&x(N,k),N}})(),o=function x(N,w,k){N===null&&(N=Function.prototype);var A=Object.getOwnPropertyDescriptor(N,w);if(A===void 0){var S=Object.getPrototypeOf(N);return S===null?void 0:x(S,w,k)}else{if("value"in A)return A.value;var E=A.get;return E===void 0?void 0:E.call(k)}},c=s(0),d=m(c),h=s(7),f=m(h);function m(x){return x&&x.__esModule?x:{default:x}}function p(x,N){if(!(x instanceof N))throw new TypeError("Cannot call a class as a function")}function g(x,N){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N&&(typeof N=="object"||typeof N=="function")?N:x}function y(x,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof N);x.prototype=Object.create(N&&N.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(x,N):x.__proto__=N)}var j="\uFEFF",v=(function(x){y(N,x);function N(w){p(this,N);var k=g(this,(N.__proto__||Object.getPrototypeOf(N)).call(this,w));return k.contentNode=document.createElement("span"),k.contentNode.setAttribute("contenteditable",!1),[].slice.call(k.domNode.childNodes).forEach(function(A){k.contentNode.appendChild(A)}),k.leftGuard=document.createTextNode(j),k.rightGuard=document.createTextNode(j),k.domNode.appendChild(k.leftGuard),k.domNode.appendChild(k.contentNode),k.domNode.appendChild(k.rightGuard),k}return a(N,[{key:"index",value:function(k,A){return k===this.leftGuard?0:k===this.rightGuard?1:o(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"index",this).call(this,k,A)}},{key:"restore",value:function(k){var A=void 0,S=void 0,E=k.data.split(j).join("");if(k===this.leftGuard)if(this.prev instanceof f.default){var C=this.prev.length();this.prev.insertAt(C,E),A={startNode:this.prev.domNode,startOffset:C+E.length}}else S=document.createTextNode(E),this.parent.insertBefore(d.default.create(S),this),A={startNode:S,startOffset:E.length};else k===this.rightGuard&&(this.next instanceof f.default?(this.next.insertAt(0,E),A={startNode:this.next.domNode,startOffset:E.length}):(S=document.createTextNode(E),this.parent.insertBefore(d.default.create(S),this.next),A={startNode:S,startOffset:E.length}));return k.data=j,A}},{key:"update",value:function(k,A){var S=this;k.forEach(function(E){if(E.type==="characterData"&&(E.target===S.leftGuard||E.target===S.rightGuard)){var C=S.restore(E.target);C&&(A.range=C)}})}}]),N})(d.default.Embed);i.default=v}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.AlignStyle=i.AlignClass=i.AlignAttribute=void 0;var a=s(0),o=c(a);function c(p){return p&&p.__esModule?p:{default:p}}var d={scope:o.default.Scope.BLOCK,whitelist:["right","center","justify"]},h=new o.default.Attributor.Attribute("align","align",d),f=new o.default.Attributor.Class("align","ql-align",d),m=new o.default.Attributor.Style("align","text-align",d);i.AlignAttribute=h,i.AlignClass=f,i.AlignStyle=m}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.BackgroundStyle=i.BackgroundClass=void 0;var a=s(0),o=d(a),c=s(26);function d(m){return m&&m.__esModule?m:{default:m}}var h=new o.default.Attributor.Class("background","ql-bg",{scope:o.default.Scope.INLINE}),f=new c.ColorAttributor("background","background-color",{scope:o.default.Scope.INLINE});i.BackgroundClass=h,i.BackgroundStyle=f}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.DirectionStyle=i.DirectionClass=i.DirectionAttribute=void 0;var a=s(0),o=c(a);function c(p){return p&&p.__esModule?p:{default:p}}var d={scope:o.default.Scope.BLOCK,whitelist:["rtl"]},h=new o.default.Attributor.Attribute("direction","dir",d),f=new o.default.Attributor.Class("direction","ql-direction",d),m=new o.default.Attributor.Style("direction","direction",d);i.DirectionAttribute=h,i.DirectionClass=f,i.DirectionStyle=m}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.FontClass=i.FontStyle=void 0;var a=(function(){function x(N,w){for(var k=0;k<w.length;k++){var A=w[k];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(N,A.key,A)}}return function(N,w,k){return w&&x(N.prototype,w),k&&x(N,k),N}})(),o=function x(N,w,k){N===null&&(N=Function.prototype);var A=Object.getOwnPropertyDescriptor(N,w);if(A===void 0){var S=Object.getPrototypeOf(N);return S===null?void 0:x(S,w,k)}else{if("value"in A)return A.value;var E=A.get;return E===void 0?void 0:E.call(k)}},c=s(0),d=h(c);function h(x){return x&&x.__esModule?x:{default:x}}function f(x,N){if(!(x instanceof N))throw new TypeError("Cannot call a class as a function")}function m(x,N){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N&&(typeof N=="object"||typeof N=="function")?N:x}function p(x,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof N);x.prototype=Object.create(N&&N.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(x,N):x.__proto__=N)}var g={scope:d.default.Scope.INLINE,whitelist:["serif","monospace"]},y=new d.default.Attributor.Class("font","ql-font",g),j=(function(x){p(N,x);function N(){return f(this,N),m(this,(N.__proto__||Object.getPrototypeOf(N)).apply(this,arguments))}return a(N,[{key:"value",value:function(k){return o(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"value",this).call(this,k).replace(/["']/g,"")}}]),N})(d.default.Attributor.Style),v=new j("font","font-family",g);i.FontStyle=v,i.FontClass=y}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.SizeStyle=i.SizeClass=void 0;var a=s(0),o=c(a);function c(f){return f&&f.__esModule?f:{default:f}}var d=new o.default.Attributor.Class("size","ql-size",{scope:o.default.Scope.INLINE,whitelist:["small","large","huge"]}),h=new o.default.Attributor.Style("size","font-size",{scope:o.default.Scope.INLINE,whitelist:["10px","18px","32px"]});i.SizeClass=d,i.SizeStyle=h}),(function(r,i,s){r.exports={align:{"":s(76),center:s(77),right:s(78),justify:s(79)},background:s(80),blockquote:s(81),bold:s(82),clean:s(83),code:s(58),"code-block":s(58),color:s(84),direction:{"":s(85),rtl:s(86)},float:{center:s(87),full:s(88),left:s(89),right:s(90)},formula:s(91),header:{1:s(92),2:s(93)},italic:s(94),image:s(95),indent:{"+1":s(96),"-1":s(97)},link:s(98),list:{ordered:s(99),bullet:s(100),check:s(101)},script:{sub:s(102),super:s(103)},strike:s(104),underline:s(105),video:s(106)}}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.getLastChangeIndex=i.default=void 0;var a=(function(){function w(k,A){for(var S=0;S<A.length;S++){var E=A[S];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(k,E.key,E)}}return function(k,A,S){return A&&w(k.prototype,A),S&&w(k,S),k}})(),o=s(0),c=p(o),d=s(5),h=p(d),f=s(9),m=p(f);function p(w){return w&&w.__esModule?w:{default:w}}function g(w,k){if(!(w instanceof k))throw new TypeError("Cannot call a class as a function")}function y(w,k){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k&&(typeof k=="object"||typeof k=="function")?k:w}function j(w,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof k);w.prototype=Object.create(k&&k.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(w,k):w.__proto__=k)}var v=(function(w){j(k,w);function k(A,S){g(this,k);var E=y(this,(k.__proto__||Object.getPrototypeOf(k)).call(this,A,S));return E.lastRecorded=0,E.ignoreChange=!1,E.clear(),E.quill.on(h.default.events.EDITOR_CHANGE,function(C,B,F,I){C!==h.default.events.TEXT_CHANGE||E.ignoreChange||(!E.options.userOnly||I===h.default.sources.USER?E.record(B,F):E.transform(B))}),E.quill.keyboard.addBinding({key:"Z",shortKey:!0},E.undo.bind(E)),E.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},E.redo.bind(E)),/Win/i.test(navigator.platform)&&E.quill.keyboard.addBinding({key:"Y",shortKey:!0},E.redo.bind(E)),E}return a(k,[{key:"change",value:function(S,E){if(this.stack[S].length!==0){var C=this.stack[S].pop();this.stack[E].push(C),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(C[S],h.default.sources.USER),this.ignoreChange=!1;var B=N(C[S]);this.quill.setSelection(B)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(S,E){if(S.ops.length!==0){this.stack.redo=[];var C=this.quill.getContents().diff(E),B=Date.now();if(this.lastRecorded+this.options.delay>B&&this.stack.undo.length>0){var F=this.stack.undo.pop();C=C.compose(F.undo),S=F.redo.compose(S)}else this.lastRecorded=B;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(E){E.undo=S.transform(E.undo,!0),E.redo=S.transform(E.redo,!0)}),this.stack.redo.forEach(function(E){E.undo=S.transform(E.undo,!0),E.redo=S.transform(E.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),k})(m.default);v.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function x(w){var k=w.ops[w.ops.length-1];return k==null?!1:k.insert!=null?typeof k.insert=="string"&&k.insert.endsWith(`
`):k.attributes!=null?Object.keys(k.attributes).some(function(A){return c.default.query(A,c.default.Scope.BLOCK)!=null}):!1}function N(w){var k=w.reduce(function(S,E){return S+=E.delete||0,S},0),A=w.length()-k;return x(w)&&(A-=1),A}i.default=v,i.getLastChangeIndex=N}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.BaseTooltip=void 0;var a=(function(){function V(L,X){for(var J=0;J<X.length;J++){var W=X[J];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty(L,W.key,W)}}return function(L,X,J){return X&&V(L.prototype,X),J&&V(L,J),L}})(),o=function V(L,X,J){L===null&&(L=Function.prototype);var W=Object.getOwnPropertyDescriptor(L,X);if(W===void 0){var G=Object.getPrototypeOf(L);return G===null?void 0:V(G,X,J)}else{if("value"in W)return W.value;var ee=W.get;return ee===void 0?void 0:ee.call(J)}},c=s(3),d=B(c),h=s(2),f=B(h),m=s(8),p=B(m),g=s(23),y=B(g),j=s(34),v=B(j),x=s(59),N=B(x),w=s(60),k=B(w),A=s(28),S=B(A),E=s(61),C=B(E);function B(V){return V&&V.__esModule?V:{default:V}}function F(V,L){if(!(V instanceof L))throw new TypeError("Cannot call a class as a function")}function I(V,L){if(!V)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L&&(typeof L=="object"||typeof L=="function")?L:V}function R(V,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof L);V.prototype=Object.create(L&&L.prototype,{constructor:{value:V,enumerable:!1,writable:!0,configurable:!0}}),L&&(Object.setPrototypeOf?Object.setPrototypeOf(V,L):V.__proto__=L)}var z=[!1,"center","right","justify"],q=["#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"],Q=["1","2","3",!1],H=["small",!1,"large","huge"],K=(function(V){R(L,V);function L(X,J){F(this,L);var W=I(this,(L.__proto__||Object.getPrototypeOf(L)).call(this,X,J)),G=function ee(ne){if(!document.body.contains(X.root))return document.body.removeEventListener("click",ee);W.tooltip!=null&&!W.tooltip.root.contains(ne.target)&&document.activeElement!==W.tooltip.textbox&&!W.quill.hasFocus()&&W.tooltip.hide(),W.pickers!=null&&W.pickers.forEach(function(le){le.container.contains(ne.target)||le.close()})};return X.emitter.listenDOM("click",document.body,G),W}return a(L,[{key:"addModule",value:function(J){var W=o(L.prototype.__proto__||Object.getPrototypeOf(L.prototype),"addModule",this).call(this,J);return J==="toolbar"&&this.extendToolbar(W),W}},{key:"buildButtons",value:function(J,W){J.forEach(function(G){var ee=G.getAttribute("class")||"";ee.split(/\s+/).forEach(function(ne){if(ne.startsWith("ql-")&&(ne=ne.slice(3),W[ne]!=null))if(ne==="direction")G.innerHTML=W[ne][""]+W[ne].rtl;else if(typeof W[ne]=="string")G.innerHTML=W[ne];else{var le=G.value||"";le!=null&&W[ne][le]&&(G.innerHTML=W[ne][le])}})})}},{key:"buildPickers",value:function(J,W){var G=this;this.pickers=J.map(function(ne){if(ne.classList.contains("ql-align"))return ne.querySelector("option")==null&&T(ne,z),new k.default(ne,W.align);if(ne.classList.contains("ql-background")||ne.classList.contains("ql-color")){var le=ne.classList.contains("ql-background")?"background":"color";return ne.querySelector("option")==null&&T(ne,q,le==="background"?"#ffffff":"#000000"),new N.default(ne,W[le])}else return ne.querySelector("option")==null&&(ne.classList.contains("ql-font")?T(ne,U):ne.classList.contains("ql-header")?T(ne,Q):ne.classList.contains("ql-size")&&T(ne,H)),new S.default(ne)});var ee=function(){G.pickers.forEach(function(le){le.update()})};this.quill.on(p.default.events.EDITOR_CHANGE,ee)}}]),L})(v.default);K.DEFAULTS=(0,d.default)(!0,{},v.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var L=this,X=this.container.querySelector("input.ql-image[type=file]");X==null&&(X=document.createElement("input"),X.setAttribute("type","file"),X.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),X.classList.add("ql-image"),X.addEventListener("change",function(){if(X.files!=null&&X.files[0]!=null){var J=new FileReader;J.onload=function(W){var G=L.quill.getSelection(!0);L.quill.updateContents(new f.default().retain(G.index).delete(G.length).insert({image:W.target.result}),p.default.sources.USER),L.quill.setSelection(G.index+1,p.default.sources.SILENT),X.value=""},J.readAsDataURL(X.files[0])}}),this.container.appendChild(X)),X.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var Y=(function(V){R(L,V);function L(X,J){F(this,L);var W=I(this,(L.__proto__||Object.getPrototypeOf(L)).call(this,X,J));return W.textbox=W.root.querySelector('input[type="text"]'),W.listen(),W}return a(L,[{key:"listen",value:function(){var J=this;this.textbox.addEventListener("keydown",function(W){y.default.match(W,"enter")?(J.save(),W.preventDefault()):y.default.match(W,"escape")&&(J.cancel(),W.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),W!=null?this.textbox.value=W:J!==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-"+J)||""),this.root.setAttribute("data-mode",J)}},{key:"restoreFocus",value:function(){var J=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=J}},{key:"save",value:function(){var J=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var W=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",J,p.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",J,p.default.sources.USER)),this.quill.root.scrollTop=W;break}case"video":J=P(J);case"formula":{if(!J)break;var G=this.quill.getSelection(!0);if(G!=null){var ee=G.index+G.length;this.quill.insertEmbed(ee,this.root.getAttribute("data-mode"),J,p.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(ee+1," ",p.default.sources.USER),this.quill.setSelection(ee+2,p.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),L})(C.default);function P(V){var L=V.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||V.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return L?(L[1]||"https")+"://www.youtube.com/embed/"+L[2]+"?showinfo=0":(L=V.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(L[1]||"https")+"://player.vimeo.com/video/"+L[2]+"/":V}function T(V,L){var X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;L.forEach(function(J){var W=document.createElement("option");J===X?W.setAttribute("selected","selected"):W.setAttribute("value",J),V.appendChild(W)})}i.BaseTooltip=Y,i.default=K}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function o(){this.head=this.tail=null,this.length=0}return o.prototype.append=function(){for(var c=[],d=0;d<arguments.length;d++)c[d]=arguments[d];this.insertBefore(c[0],null),c.length>1&&this.append.apply(this,c.slice(1))},o.prototype.contains=function(c){for(var d,h=this.iterator();d=h();)if(d===c)return!0;return!1},o.prototype.insertBefore=function(c,d){c&&(c.next=d,d!=null?(c.prev=d.prev,d.prev!=null&&(d.prev.next=c),d.prev=c,d===this.head&&(this.head=c)):this.tail!=null?(this.tail.next=c,c.prev=this.tail,this.tail=c):(c.prev=null,this.head=this.tail=c),this.length+=1)},o.prototype.offset=function(c){for(var d=0,h=this.head;h!=null;){if(h===c)return d;d+=h.length(),h=h.next}return-1},o.prototype.remove=function(c){this.contains(c)&&(c.prev!=null&&(c.prev.next=c.next),c.next!=null&&(c.next.prev=c.prev),c===this.head&&(this.head=c.next),c===this.tail&&(this.tail=c.prev),this.length-=1)},o.prototype.iterator=function(c){return c===void 0&&(c=this.head),function(){var d=c;return c!=null&&(c=c.next),d}},o.prototype.find=function(c,d){d===void 0&&(d=!1);for(var h,f=this.iterator();h=f();){var m=h.length();if(c<m||d&&c===m&&(h.next==null||h.next.length()!==0))return[h,c];c-=m}return[null,0]},o.prototype.forEach=function(c){for(var d,h=this.iterator();d=h();)c(d)},o.prototype.forEachAt=function(c,d,h){if(!(d<=0))for(var f=this.find(c),m=f[0],p=f[1],g,y=c-p,j=this.iterator(m);(g=j())&&y<c+d;){var v=g.length();c>y?h(g,c-y,Math.min(d,y+v-c)):h(g,0,Math.min(v,c+d-y)),y+=v}},o.prototype.map=function(c){return this.reduce(function(d,h){return d.push(c(h)),d},[])},o.prototype.reduce=function(c,d){for(var h,f=this.iterator();h=f();)d=c(d,h);return d},o})();i.default=a}),(function(r,i,s){var a=this&&this.__extends||(function(){var m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,g){p.__proto__=g}||function(p,g){for(var y in g)g.hasOwnProperty(y)&&(p[y]=g[y])};return function(p,g){m(p,g);function y(){this.constructor=p}p.prototype=g===null?Object.create(g):(y.prototype=g.prototype,new y)}})();Object.defineProperty(i,"__esModule",{value:!0});var o=s(17),c=s(1),d={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},h=100,f=(function(m){a(p,m);function p(g){var y=m.call(this,g)||this;return y.scroll=y,y.observer=new MutationObserver(function(j){y.update(j)}),y.observer.observe(y.domNode,d),y.attach(),y}return p.prototype.detach=function(){m.prototype.detach.call(this),this.observer.disconnect()},p.prototype.deleteAt=function(g,y){this.update(),g===0&&y===this.length()?this.children.forEach(function(j){j.remove()}):m.prototype.deleteAt.call(this,g,y)},p.prototype.formatAt=function(g,y,j,v){this.update(),m.prototype.formatAt.call(this,g,y,j,v)},p.prototype.insertAt=function(g,y,j){this.update(),m.prototype.insertAt.call(this,g,y,j)},p.prototype.optimize=function(g,y){var j=this;g===void 0&&(g=[]),y===void 0&&(y={}),m.prototype.optimize.call(this,y);for(var v=[].slice.call(this.observer.takeRecords());v.length>0;)g.push(v.pop());for(var x=function(A,S){S===void 0&&(S=!0),!(A==null||A===j)&&A.domNode.parentNode!=null&&(A.domNode[c.DATA_KEY].mutations==null&&(A.domNode[c.DATA_KEY].mutations=[]),S&&x(A.parent))},N=function(A){A.domNode[c.DATA_KEY]==null||A.domNode[c.DATA_KEY].mutations==null||(A instanceof o.default&&A.children.forEach(N),A.optimize(y))},w=g,k=0;w.length>0;k+=1){if(k>=h)throw new Error("[Parchment] Maximum optimize iterations reached");for(w.forEach(function(A){var S=c.find(A.target,!0);S!=null&&(S.domNode===A.target&&(A.type==="childList"?(x(c.find(A.previousSibling,!1)),[].forEach.call(A.addedNodes,function(E){var C=c.find(E,!1);x(C,!1),C instanceof o.default&&C.children.forEach(function(B){x(B,!1)})})):A.type==="attributes"&&x(S.prev)),x(S))}),this.children.forEach(N),w=[].slice.call(this.observer.takeRecords()),v=w.slice();v.length>0;)g.push(v.pop())}},p.prototype.update=function(g,y){var j=this;y===void 0&&(y={}),g=g||this.observer.takeRecords(),g.map(function(v){var x=c.find(v.target,!0);return x==null?null:x.domNode[c.DATA_KEY].mutations==null?(x.domNode[c.DATA_KEY].mutations=[v],x):(x.domNode[c.DATA_KEY].mutations.push(v),null)}).forEach(function(v){v==null||v===j||v.domNode[c.DATA_KEY]==null||v.update(v.domNode[c.DATA_KEY].mutations||[],y)}),this.domNode[c.DATA_KEY].mutations!=null&&m.prototype.update.call(this,this.domNode[c.DATA_KEY].mutations,y),this.optimize(g,y)},p.blotName="scroll",p.defaultChild="block",p.scope=c.Scope.BLOCK_BLOT,p.tagName="DIV",p})(o.default);i.default=f}),(function(r,i,s){var a=this&&this.__extends||(function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,p){m.__proto__=p}||function(m,p){for(var g in p)p.hasOwnProperty(g)&&(m[g]=p[g])};return function(m,p){f(m,p);function g(){this.constructor=m}m.prototype=p===null?Object.create(p):(g.prototype=p.prototype,new g)}})();Object.defineProperty(i,"__esModule",{value:!0});var o=s(18),c=s(1);function d(f,m){if(Object.keys(f).length!==Object.keys(m).length)return!1;for(var p in f)if(f[p]!==m[p])return!1;return!0}var h=(function(f){a(m,f);function m(){return f!==null&&f.apply(this,arguments)||this}return m.formats=function(p){if(p.tagName!==m.tagName)return f.formats.call(this,p)},m.prototype.format=function(p,g){var y=this;p===this.statics.blotName&&!g?(this.children.forEach(function(j){j instanceof o.default||(j=j.wrap(m.blotName,!0)),y.attributes.copy(j)}),this.unwrap()):f.prototype.format.call(this,p,g)},m.prototype.formatAt=function(p,g,y,j){if(this.formats()[y]!=null||c.query(y,c.Scope.ATTRIBUTE)){var v=this.isolate(p,g);v.format(y,j)}else f.prototype.formatAt.call(this,p,g,y,j)},m.prototype.optimize=function(p){f.prototype.optimize.call(this,p);var g=this.formats();if(Object.keys(g).length===0)return this.unwrap();var y=this.next;y instanceof m&&y.prev===this&&d(g,y.formats())&&(y.moveChildren(this),y.remove())},m.blotName="inline",m.scope=c.Scope.INLINE_BLOT,m.tagName="SPAN",m})(o.default);i.default=h}),(function(r,i,s){var a=this&&this.__extends||(function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var p in m)m.hasOwnProperty(p)&&(f[p]=m[p])};return function(f,m){h(f,m);function p(){this.constructor=f}f.prototype=m===null?Object.create(m):(p.prototype=m.prototype,new p)}})();Object.defineProperty(i,"__esModule",{value:!0});var o=s(18),c=s(1),d=(function(h){a(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.formats=function(m){var p=c.query(f.blotName).tagName;if(m.tagName!==p)return h.formats.call(this,m)},f.prototype.format=function(m,p){c.query(m,c.Scope.BLOCK)!=null&&(m===this.statics.blotName&&!p?this.replaceWith(f.blotName):h.prototype.format.call(this,m,p))},f.prototype.formatAt=function(m,p,g,y){c.query(g,c.Scope.BLOCK)!=null?this.format(g,y):h.prototype.formatAt.call(this,m,p,g,y)},f.prototype.insertAt=function(m,p,g){if(g==null||c.query(p,c.Scope.INLINE)!=null)h.prototype.insertAt.call(this,m,p,g);else{var y=this.split(m),j=c.create(p,g);y.parent.insertBefore(j,y)}},f.prototype.update=function(m,p){navigator.userAgent.match(/Trident/)?this.build():h.prototype.update.call(this,m,p)},f.blotName="block",f.scope=c.Scope.BLOCK_BLOT,f.tagName="P",f})(o.default);i.default=d}),(function(r,i,s){var a=this&&this.__extends||(function(){var d=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){d(h,f);function m(){this.constructor=h}h.prototype=f===null?Object.create(f):(m.prototype=f.prototype,new m)}})();Object.defineProperty(i,"__esModule",{value:!0});var o=s(19),c=(function(d){a(h,d);function h(){return d!==null&&d.apply(this,arguments)||this}return h.formats=function(f){},h.prototype.format=function(f,m){d.prototype.formatAt.call(this,0,this.length(),f,m)},h.prototype.formatAt=function(f,m,p,g){f===0&&m===this.length()?this.format(p,g):d.prototype.formatAt.call(this,f,m,p,g)},h.prototype.formats=function(){return this.statics.formats(this.domNode)},h})(o.default);i.default=c}),(function(r,i,s){var a=this&&this.__extends||(function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var p in m)m.hasOwnProperty(p)&&(f[p]=m[p])};return function(f,m){h(f,m);function p(){this.constructor=f}f.prototype=m===null?Object.create(m):(p.prototype=m.prototype,new p)}})();Object.defineProperty(i,"__esModule",{value:!0});var o=s(19),c=s(1),d=(function(h){a(f,h);function f(m){var p=h.call(this,m)||this;return p.text=p.statics.value(p.domNode),p}return f.create=function(m){return document.createTextNode(m)},f.value=function(m){var p=m.data;return p.normalize&&(p=p.normalize()),p},f.prototype.deleteAt=function(m,p){this.domNode.data=this.text=this.text.slice(0,m)+this.text.slice(m+p)},f.prototype.index=function(m,p){return this.domNode===m?p:-1},f.prototype.insertAt=function(m,p,g){g==null?(this.text=this.text.slice(0,m)+p+this.text.slice(m),this.domNode.data=this.text):h.prototype.insertAt.call(this,m,p,g)},f.prototype.length=function(){return this.text.length},f.prototype.optimize=function(m){h.prototype.optimize.call(this,m),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof f&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},f.prototype.position=function(m,p){return[this.domNode,m]},f.prototype.split=function(m,p){if(p===void 0&&(p=!1),!p){if(m===0)return this;if(m===this.length())return this.next}var g=c.create(this.domNode.splitText(m));return this.parent.insertBefore(g,this.next),this.text=this.statics.value(this.domNode),g},f.prototype.update=function(m,p){var g=this;m.some(function(y){return y.type==="characterData"&&y.target===g.domNode})&&(this.text=this.statics.value(this.domNode))},f.prototype.value=function(){return this.text},f.blotName="text",f.scope=c.Scope.INLINE_BLOT,f})(o.default);i.default=d}),(function(r,i,s){var a=document.createElement("div");if(a.classList.toggle("test-class",!1),a.classList.contains("test-class")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(c,d){return arguments.length>1&&!this.contains(c)==!d?d:o.call(this,c)}}String.prototype.startsWith||(String.prototype.startsWith=function(c,d){return d=d||0,this.substr(d,c.length)===c}),String.prototype.endsWith||(String.prototype.endsWith=function(c,d){var h=this.toString();(typeof d!="number"||!isFinite(d)||Math.floor(d)!==d||d>h.length)&&(d=h.length),d-=c.length;var f=h.indexOf(c,d);return f!==-1&&f===d}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(d){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof d!="function")throw new TypeError("predicate must be a function");for(var h=Object(this),f=h.length>>>0,m=arguments[1],p,g=0;g<f;g++)if(p=h[g],d.call(m,p,g,h))return p}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})}),(function(r,i){var s=-1,a=1,o=0;function c(k,A,S){if(k==A)return k?[[o,k]]:[];(S<0||k.length<S)&&(S=null);var E=m(k,A),C=k.substring(0,E);k=k.substring(E),A=A.substring(E),E=p(k,A);var B=k.substring(k.length-E);k=k.substring(0,k.length-E),A=A.substring(0,A.length-E);var F=d(k,A);return C&&F.unshift([o,C]),B&&F.push([o,B]),y(F),S!=null&&(F=x(F,S)),F=N(F),F}function d(k,A){var S;if(!k)return[[a,A]];if(!A)return[[s,k]];var E=k.length>A.length?k:A,C=k.length>A.length?A:k,B=E.indexOf(C);if(B!=-1)return S=[[a,E.substring(0,B)],[o,C],[a,E.substring(B+C.length)]],k.length>A.length&&(S[0][0]=S[2][0]=s),S;if(C.length==1)return[[s,k],[a,A]];var F=g(k,A);if(F){var I=F[0],R=F[1],z=F[2],q=F[3],U=F[4],Q=c(I,z),H=c(R,q);return Q.concat([[o,U]],H)}return h(k,A)}function h(k,A){for(var S=k.length,E=A.length,C=Math.ceil((S+E)/2),B=C,F=2*C,I=new Array(F),R=new Array(F),z=0;z<F;z++)I[z]=-1,R[z]=-1;I[B+1]=0,R[B+1]=0;for(var q=S-E,U=q%2!=0,Q=0,H=0,K=0,Y=0,P=0;P<C;P++){for(var T=-P+Q;T<=P-H;T+=2){var V=B+T,L;T==-P||T!=P&&I[V-1]<I[V+1]?L=I[V+1]:L=I[V-1]+1;for(var X=L-T;L<S&&X<E&&k.charAt(L)==A.charAt(X);)L++,X++;if(I[V]=L,L>S)H+=2;else if(X>E)Q+=2;else if(U){var J=B+q-T;if(J>=0&&J<F&&R[J]!=-1){var W=S-R[J];if(L>=W)return f(k,A,L,X)}}}for(var G=-P+K;G<=P-Y;G+=2){var J=B+G,W;G==-P||G!=P&&R[J-1]<R[J+1]?W=R[J+1]:W=R[J-1]+1;for(var ee=W-G;W<S&&ee<E&&k.charAt(S-W-1)==A.charAt(E-ee-1);)W++,ee++;if(R[J]=W,W>S)Y+=2;else if(ee>E)K+=2;else if(!U){var V=B+q-G;if(V>=0&&V<F&&I[V]!=-1){var L=I[V],X=B+L-V;if(W=S-W,L>=W)return f(k,A,L,X)}}}}return[[s,k],[a,A]]}function f(k,A,S,E){var C=k.substring(0,S),B=A.substring(0,E),F=k.substring(S),I=A.substring(E),R=c(C,B),z=c(F,I);return R.concat(z)}function m(k,A){if(!k||!A||k.charAt(0)!=A.charAt(0))return 0;for(var S=0,E=Math.min(k.length,A.length),C=E,B=0;S<C;)k.substring(B,C)==A.substring(B,C)?(S=C,B=S):E=C,C=Math.floor((E-S)/2+S);return C}function p(k,A){if(!k||!A||k.charAt(k.length-1)!=A.charAt(A.length-1))return 0;for(var S=0,E=Math.min(k.length,A.length),C=E,B=0;S<C;)k.substring(k.length-C,k.length-B)==A.substring(A.length-C,A.length-B)?(S=C,B=S):E=C,C=Math.floor((E-S)/2+S);return C}function g(k,A){var S=k.length>A.length?k:A,E=k.length>A.length?A:k;if(S.length<4||E.length*2<S.length)return null;function C(H,K,Y){for(var P=H.substring(Y,Y+Math.floor(H.length/4)),T=-1,V="",L,X,J,W;(T=K.indexOf(P,T+1))!=-1;){var G=m(H.substring(Y),K.substring(T)),ee=p(H.substring(0,Y),K.substring(0,T));V.length<ee+G&&(V=K.substring(T-ee,T)+K.substring(T,T+G),L=H.substring(0,Y-ee),X=H.substring(Y+G),J=K.substring(0,T-ee),W=K.substring(T+G))}return V.length*2>=H.length?[L,X,J,W,V]:null}var B=C(S,E,Math.ceil(S.length/4)),F=C(S,E,Math.ceil(S.length/2)),I;if(!B&&!F)return null;F?B?I=B[4].length>F[4].length?B:F:I=F:I=B;var R,z,q,U;k.length>A.length?(R=I[0],z=I[1],q=I[2],U=I[3]):(q=I[0],U=I[1],R=I[2],z=I[3]);var Q=I[4];return[R,z,q,U,Q]}function y(k){k.push([o,""]);for(var A=0,S=0,E=0,C="",B="",F;A<k.length;)switch(k[A][0]){case a:E++,B+=k[A][1],A++;break;case s:S++,C+=k[A][1],A++;break;case o:S+E>1?(S!==0&&E!==0&&(F=m(B,C),F!==0&&(A-S-E>0&&k[A-S-E-1][0]==o?k[A-S-E-1][1]+=B.substring(0,F):(k.splice(0,0,[o,B.substring(0,F)]),A++),B=B.substring(F),C=C.substring(F)),F=p(B,C),F!==0&&(k[A][1]=B.substring(B.length-F)+k[A][1],B=B.substring(0,B.length-F),C=C.substring(0,C.length-F))),S===0?k.splice(A-E,S+E,[a,B]):E===0?k.splice(A-S,S+E,[s,C]):k.splice(A-S-E,S+E,[s,C],[a,B]),A=A-S-E+(S?1:0)+(E?1:0)+1):A!==0&&k[A-1][0]==o?(k[A-1][1]+=k[A][1],k.splice(A,1)):A++,E=0,S=0,C="",B="";break}k[k.length-1][1]===""&&k.pop();var I=!1;for(A=1;A<k.length-1;)k[A-1][0]==o&&k[A+1][0]==o&&(k[A][1].substring(k[A][1].length-k[A-1][1].length)==k[A-1][1]?(k[A][1]=k[A-1][1]+k[A][1].substring(0,k[A][1].length-k[A-1][1].length),k[A+1][1]=k[A-1][1]+k[A+1][1],k.splice(A-1,1),I=!0):k[A][1].substring(0,k[A+1][1].length)==k[A+1][1]&&(k[A-1][1]+=k[A+1][1],k[A][1]=k[A][1].substring(k[A+1][1].length)+k[A+1][1],k.splice(A+1,1),I=!0)),A++;I&&y(k)}var j=c;j.INSERT=a,j.DELETE=s,j.EQUAL=o,r.exports=j;function v(k,A){if(A===0)return[o,k];for(var S=0,E=0;E<k.length;E++){var C=k[E];if(C[0]===s||C[0]===o){var B=S+C[1].length;if(A===B)return[E+1,k];if(A<B){k=k.slice();var F=A-S,I=[C[0],C[1].slice(0,F)],R=[C[0],C[1].slice(F)];return k.splice(E,1,I,R),[E+1,k]}else S=B}}throw new Error("cursor_pos is out of bounds!")}function x(k,A){var S=v(k,A),E=S[1],C=S[0],B=E[C],F=E[C+1];if(B==null)return k;if(B[0]!==o)return k;if(F!=null&&B[1]+F[1]===F[1]+B[1])return E.splice(C,2,F,B),w(E,C,2);if(F!=null&&F[1].indexOf(B[1])===0){E.splice(C,2,[F[0],B[1]],[0,B[1]]);var I=F[1].slice(B[1].length);return I.length>0&&E.splice(C+2,0,[F[0],I]),w(E,C,3)}else return k}function N(k){for(var A=!1,S=function(F){return F.charCodeAt(0)>=56320&&F.charCodeAt(0)<=57343},E=function(F){return F.charCodeAt(F.length-1)>=55296&&F.charCodeAt(F.length-1)<=56319},C=2;C<k.length;C+=1)k[C-2][0]===o&&E(k[C-2][1])&&k[C-1][0]===s&&S(k[C-1][1])&&k[C][0]===a&&S(k[C][1])&&(A=!0,k[C-1][1]=k[C-2][1].slice(-1)+k[C-1][1],k[C][1]=k[C-2][1].slice(-1)+k[C][1],k[C-2][1]=k[C-2][1].slice(0,-1));if(!A)return k;for(var B=[],C=0;C<k.length;C+=1)k[C][1].length>0&&B.push(k[C]);return B}function w(k,A,S){for(var E=A+S-1;E>=0&&E>=A-1;E--)if(E+1<k.length){var C=k[E],B=k[E+1];C[0]===B[1]&&k.splice(E,2,[C[0],C[1]+B[1]])}return k}}),(function(r,i){i=r.exports=typeof Object.keys=="function"?Object.keys:s,i.shim=s;function s(a){var o=[];for(var c in a)o.push(c);return o}}),(function(r,i){var s=(function(){return Object.prototype.toString.call(arguments)})()=="[object Arguments]";i=r.exports=s?a:o,i.supported=a;function a(c){return Object.prototype.toString.call(c)=="[object Arguments]"}i.unsupported=o;function o(c){return c&&typeof c=="object"&&typeof c.length=="number"&&Object.prototype.hasOwnProperty.call(c,"callee")&&!Object.prototype.propertyIsEnumerable.call(c,"callee")||!1}}),(function(r,i){var s=Object.prototype.hasOwnProperty,a="~";function o(){}Object.create&&(o.prototype=Object.create(null),new o().__proto__||(a=!1));function c(h,f,m){this.fn=h,this.context=f,this.once=m||!1}function d(){this._events=new o,this._eventsCount=0}d.prototype.eventNames=function(){var f=[],m,p;if(this._eventsCount===0)return f;for(p in m=this._events)s.call(m,p)&&f.push(a?p.slice(1):p);return Object.getOwnPropertySymbols?f.concat(Object.getOwnPropertySymbols(m)):f},d.prototype.listeners=function(f,m){var p=a?a+f:f,g=this._events[p];if(m)return!!g;if(!g)return[];if(g.fn)return[g.fn];for(var y=0,j=g.length,v=new Array(j);y<j;y++)v[y]=g[y].fn;return v},d.prototype.emit=function(f,m,p,g,y,j){var v=a?a+f:f;if(!this._events[v])return!1;var x=this._events[v],N=arguments.length,w,k;if(x.fn){switch(x.once&&this.removeListener(f,x.fn,void 0,!0),N){case 1:return x.fn.call(x.context),!0;case 2:return x.fn.call(x.context,m),!0;case 3:return x.fn.call(x.context,m,p),!0;case 4:return x.fn.call(x.context,m,p,g),!0;case 5:return x.fn.call(x.context,m,p,g,y),!0;case 6:return x.fn.call(x.context,m,p,g,y,j),!0}for(k=1,w=new Array(N-1);k<N;k++)w[k-1]=arguments[k];x.fn.apply(x.context,w)}else{var A=x.length,S;for(k=0;k<A;k++)switch(x[k].once&&this.removeListener(f,x[k].fn,void 0,!0),N){case 1:x[k].fn.call(x[k].context);break;case 2:x[k].fn.call(x[k].context,m);break;case 3:x[k].fn.call(x[k].context,m,p);break;case 4:x[k].fn.call(x[k].context,m,p,g);break;default:if(!w)for(S=1,w=new Array(N-1);S<N;S++)w[S-1]=arguments[S];x[k].fn.apply(x[k].context,w)}}return!0},d.prototype.on=function(f,m,p){var g=new c(m,p||this),y=a?a+f:f;return this._events[y]?this._events[y].fn?this._events[y]=[this._events[y],g]:this._events[y].push(g):(this._events[y]=g,this._eventsCount++),this},d.prototype.once=function(f,m,p){var g=new c(m,p||this,!0),y=a?a+f:f;return this._events[y]?this._events[y].fn?this._events[y]=[this._events[y],g]:this._events[y].push(g):(this._events[y]=g,this._eventsCount++),this},d.prototype.removeListener=function(f,m,p,g){var y=a?a+f:f;if(!this._events[y])return this;if(!m)return--this._eventsCount===0?this._events=new o:delete this._events[y],this;var j=this._events[y];if(j.fn)j.fn===m&&(!g||j.once)&&(!p||j.context===p)&&(--this._eventsCount===0?this._events=new o:delete this._events[y]);else{for(var v=0,x=[],N=j.length;v<N;v++)(j[v].fn!==m||g&&!j[v].once||p&&j[v].context!==p)&&x.push(j[v]);x.length?this._events[y]=x.length===1?x[0]:x:--this._eventsCount===0?this._events=new o:delete this._events[y]}return this},d.prototype.removeAllListeners=function(f){var m;return f?(m=a?a+f:f,this._events[m]&&(--this._eventsCount===0?this._events=new o:delete this._events[m])):(this._events=new o,this._eventsCount=0),this},d.prototype.off=d.prototype.removeListener,d.prototype.addListener=d.prototype.on,d.prototype.setMaxListeners=function(){return this},d.prefixed=a,d.EventEmitter=d,typeof r<"u"&&(r.exports=d)}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.matchText=i.matchSpacing=i.matchNewline=i.matchBlot=i.matchAttributor=i.default=void 0;var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ge){return typeof ge}:function(ge){return ge&&typeof Symbol=="function"&&ge.constructor===Symbol&&ge!==Symbol.prototype?"symbol":typeof ge},o=(function(){function ge(ye,Ae){var Pe=[],je=!0,tt=!1,et=void 0;try{for(var rt=ye[Symbol.iterator](),xe;!(je=(xe=rt.next()).done)&&(Pe.push(xe.value),!(Ae&&Pe.length===Ae));je=!0);}catch(_e){tt=!0,et=_e}finally{try{!je&&rt.return&&rt.return()}finally{if(tt)throw et}}return Pe}return function(ye,Ae){if(Array.isArray(ye))return ye;if(Symbol.iterator in Object(ye))return ge(ye,Ae);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),c=(function(){function ge(ye,Ae){for(var Pe=0;Pe<Ae.length;Pe++){var je=Ae[Pe];je.enumerable=je.enumerable||!1,je.configurable=!0,"value"in je&&(je.writable=!0),Object.defineProperty(ye,je.key,je)}}return function(ye,Ae,Pe){return Ae&&ge(ye.prototype,Ae),Pe&&ge(ye,Pe),ye}})(),d=s(3),h=R(d),f=s(2),m=R(f),p=s(0),g=R(p),y=s(5),j=R(y),v=s(10),x=R(v),N=s(9),w=R(N),k=s(36),A=s(37),S=s(13),E=R(S),C=s(26),B=s(38),F=s(39),I=s(40);function R(ge){return ge&&ge.__esModule?ge:{default:ge}}function z(ge,ye,Ae){return ye in ge?Object.defineProperty(ge,ye,{value:Ae,enumerable:!0,configurable:!0,writable:!0}):ge[ye]=Ae,ge}function q(ge,ye){if(!(ge instanceof ye))throw new TypeError("Cannot call a class as a function")}function U(ge,ye){if(!ge)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ye&&(typeof ye=="object"||typeof ye=="function")?ye:ge}function Q(ge,ye){if(typeof ye!="function"&&ye!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ye);ge.prototype=Object.create(ye&&ye.prototype,{constructor:{value:ge,enumerable:!1,writable:!0,configurable:!0}}),ye&&(Object.setPrototypeOf?Object.setPrototypeOf(ge,ye):ge.__proto__=ye)}var H=(0,x.default)("quill:clipboard"),K="__ql-matcher",Y=[[Node.TEXT_NODE,nt],[Node.TEXT_NODE,Te],["br",ve],[Node.ELEMENT_NODE,Te],[Node.ELEMENT_NODE,le],[Node.ELEMENT_NODE,We],[Node.ELEMENT_NODE,ne],[Node.ELEMENT_NODE,ut],["li",Oe],["b",ee.bind(ee,"bold")],["i",ee.bind(ee,"italic")],["style",be]],P=[k.AlignAttribute,B.DirectionAttribute].reduce(function(ge,ye){return ge[ye.keyName]=ye,ge},{}),T=[k.AlignStyle,A.BackgroundStyle,C.ColorStyle,B.DirectionStyle,F.FontStyle,I.SizeStyle].reduce(function(ge,ye){return ge[ye.keyName]=ye,ge},{}),V=(function(ge){Q(ye,ge);function ye(Ae,Pe){q(this,ye);var je=U(this,(ye.__proto__||Object.getPrototypeOf(ye)).call(this,Ae,Pe));return je.quill.root.addEventListener("paste",je.onPaste.bind(je)),je.container=je.quill.addContainer("ql-clipboard"),je.container.setAttribute("contenteditable",!0),je.container.setAttribute("tabindex",-1),je.matchers=[],Y.concat(je.options.matchers).forEach(function(tt){var et=o(tt,2),rt=et[0],xe=et[1];!Pe.matchVisual&&xe===We||je.addMatcher(rt,xe)}),je}return c(ye,[{key:"addMatcher",value:function(Pe,je){this.matchers.push([Pe,je])}},{key:"convert",value:function(Pe){if(typeof Pe=="string")return this.container.innerHTML=Pe.replace(/\>\r?\n +\</g,"><"),this.convert();var je=this.quill.getFormat(this.quill.selection.savedRange.index);if(je[E.default.blotName]){var tt=this.container.innerText;return this.container.innerHTML="",new m.default().insert(tt,z({},E.default.blotName,je[E.default.blotName]))}var et=this.prepareMatching(),rt=o(et,2),xe=rt[0],_e=rt[1],De=G(this.container,xe,_e);return J(De,`
`)&&De.ops[De.ops.length-1].attributes==null&&(De=De.compose(new m.default().retain(De.length()-1).delete(1))),H.log("convert",this.container.innerHTML,De),this.container.innerHTML="",De}},{key:"dangerouslyPasteHTML",value:function(Pe,je){var tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:j.default.sources.API;if(typeof Pe=="string")this.quill.setContents(this.convert(Pe),je),this.quill.setSelection(0,j.default.sources.SILENT);else{var et=this.convert(je);this.quill.updateContents(new m.default().retain(Pe).concat(et),tt),this.quill.setSelection(Pe+et.length(),j.default.sources.SILENT)}}},{key:"onPaste",value:function(Pe){var je=this;if(!(Pe.defaultPrevented||!this.quill.isEnabled())){var tt=this.quill.getSelection(),et=new m.default().retain(tt.index),rt=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(j.default.sources.SILENT),setTimeout(function(){et=et.concat(je.convert()).delete(tt.length),je.quill.updateContents(et,j.default.sources.USER),je.quill.setSelection(et.length()-tt.length,j.default.sources.SILENT),je.quill.scrollingContainer.scrollTop=rt,je.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var Pe=this,je=[],tt=[];return this.matchers.forEach(function(et){var rt=o(et,2),xe=rt[0],_e=rt[1];switch(xe){case Node.TEXT_NODE:tt.push(_e);break;case Node.ELEMENT_NODE:je.push(_e);break;default:[].forEach.call(Pe.container.querySelectorAll(xe),function(De){De[K]=De[K]||[],De[K].push(_e)});break}}),[je,tt]}}]),ye})(w.default);V.DEFAULTS={matchers:[],matchVisual:!0};function L(ge,ye,Ae){return(typeof ye>"u"?"undefined":a(ye))==="object"?Object.keys(ye).reduce(function(Pe,je){return L(Pe,je,ye[je])},ge):ge.reduce(function(Pe,je){return je.attributes&&je.attributes[ye]?Pe.push(je):Pe.insert(je.insert,(0,h.default)({},z({},ye,Ae),je.attributes))},new m.default)}function X(ge){if(ge.nodeType!==Node.ELEMENT_NODE)return{};var ye="__ql-computed-style";return ge[ye]||(ge[ye]=window.getComputedStyle(ge))}function J(ge,ye){for(var Ae="",Pe=ge.ops.length-1;Pe>=0&&Ae.length<ye.length;--Pe){var je=ge.ops[Pe];if(typeof je.insert!="string")break;Ae=je.insert+Ae}return Ae.slice(-1*ye.length)===ye}function W(ge){if(ge.childNodes.length===0)return!1;var ye=X(ge);return["block","list-item"].indexOf(ye.display)>-1}function G(ge,ye,Ae){return ge.nodeType===ge.TEXT_NODE?Ae.reduce(function(Pe,je){return je(ge,Pe)},new m.default):ge.nodeType===ge.ELEMENT_NODE?[].reduce.call(ge.childNodes||[],function(Pe,je){var tt=G(je,ye,Ae);return je.nodeType===ge.ELEMENT_NODE&&(tt=ye.reduce(function(et,rt){return rt(je,et)},tt),tt=(je[K]||[]).reduce(function(et,rt){return rt(je,et)},tt)),Pe.concat(tt)},new m.default):new m.default}function ee(ge,ye,Ae){return L(Ae,ge,!0)}function ne(ge,ye){var Ae=g.default.Attributor.Attribute.keys(ge),Pe=g.default.Attributor.Class.keys(ge),je=g.default.Attributor.Style.keys(ge),tt={};return Ae.concat(Pe).concat(je).forEach(function(et){var rt=g.default.query(et,g.default.Scope.ATTRIBUTE);rt!=null&&(tt[rt.attrName]=rt.value(ge),tt[rt.attrName])||(rt=P[et],rt!=null&&(rt.attrName===et||rt.keyName===et)&&(tt[rt.attrName]=rt.value(ge)||void 0),rt=T[et],rt!=null&&(rt.attrName===et||rt.keyName===et)&&(rt=T[et],tt[rt.attrName]=rt.value(ge)||void 0))}),Object.keys(tt).length>0&&(ye=L(ye,tt)),ye}function le(ge,ye){var Ae=g.default.query(ge);if(Ae==null)return ye;if(Ae.prototype instanceof g.default.Embed){var Pe={},je=Ae.value(ge);je!=null&&(Pe[Ae.blotName]=je,ye=new m.default().insert(Pe,Ae.formats(ge)))}else typeof Ae.formats=="function"&&(ye=L(ye,Ae.blotName,Ae.formats(ge)));return ye}function ve(ge,ye){return J(ye,`
`)||ye.insert(`
`),ye}function be(){return new m.default}function Oe(ge,ye){var Ae=g.default.query(ge);if(Ae==null||Ae.blotName!=="list-item"||!J(ye,`
`))return ye;for(var Pe=-1,je=ge.parentNode;!je.classList.contains("ql-clipboard");)(g.default.query(je)||{}).blotName==="list"&&(Pe+=1),je=je.parentNode;return Pe<=0?ye:ye.compose(new m.default().retain(ye.length()-1).retain(1,{indent:Pe}))}function Te(ge,ye){return J(ye,`
`)||(W(ge)||ye.length()>0&&ge.nextSibling&&W(ge.nextSibling))&&ye.insert(`
`),ye}function We(ge,ye){if(W(ge)&&ge.nextElementSibling!=null&&!J(ye,`
`)){var Ae=ge.offsetHeight+parseFloat(X(ge).marginTop)+parseFloat(X(ge).marginBottom);ge.nextElementSibling.offsetTop>ge.offsetTop+Ae*1.5&&ye.insert(`
`)}return ye}function ut(ge,ye){var Ae={},Pe=ge.style||{};return Pe.fontStyle&&X(ge).fontStyle==="italic"&&(Ae.italic=!0),Pe.fontWeight&&(X(ge).fontWeight.startsWith("bold")||parseInt(X(ge).fontWeight)>=700)&&(Ae.bold=!0),Object.keys(Ae).length>0&&(ye=L(ye,Ae)),parseFloat(Pe.textIndent||0)>0&&(ye=new m.default().insert(" ").concat(ye)),ye}function nt(ge,ye){var Ae=ge.data;if(ge.parentNode.tagName==="O:P")return ye.insert(Ae.trim());if(Ae.trim().length===0&&ge.parentNode.classList.contains("ql-clipboard"))return ye;if(!X(ge.parentNode).whiteSpace.startsWith("pre")){var Pe=function(tt,et){return et=et.replace(/[^\u00a0]/g,""),et.length<1&&tt?" ":et};Ae=Ae.replace(/\r\n/g," ").replace(/\n/g," "),Ae=Ae.replace(/\s\s+/g,Pe.bind(Pe,!0)),(ge.previousSibling==null&&W(ge.parentNode)||ge.previousSibling!=null&&W(ge.previousSibling))&&(Ae=Ae.replace(/^\s+/,Pe.bind(Pe,!1))),(ge.nextSibling==null&&W(ge.parentNode)||ge.nextSibling!=null&&W(ge.nextSibling))&&(Ae=Ae.replace(/\s+$/,Pe.bind(Pe,!1)))}return ye.insert(Ae)}i.default=V,i.matchAttributor=ne,i.matchBlot=le,i.matchNewline=Te,i.matchSpacing=We,i.matchText=nt}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function y(j,v){for(var x=0;x<v.length;x++){var N=v[x];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(j,N.key,N)}}return function(j,v,x){return v&&y(j.prototype,v),x&&y(j,x),j}})(),o=function y(j,v,x){j===null&&(j=Function.prototype);var N=Object.getOwnPropertyDescriptor(j,v);if(N===void 0){var w=Object.getPrototypeOf(j);return w===null?void 0:y(w,v,x)}else{if("value"in N)return N.value;var k=N.get;return k===void 0?void 0:k.call(x)}},c=s(6),d=h(c);function h(y){return y&&y.__esModule?y:{default:y}}function f(y,j){if(!(y instanceof j))throw new TypeError("Cannot call a class as a function")}function m(y,j){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j&&(typeof j=="object"||typeof j=="function")?j:y}function p(y,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof j);y.prototype=Object.create(j&&j.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),j&&(Object.setPrototypeOf?Object.setPrototypeOf(y,j):y.__proto__=j)}var g=(function(y){p(j,y);function j(){return f(this,j),m(this,(j.__proto__||Object.getPrototypeOf(j)).apply(this,arguments))}return a(j,[{key:"optimize",value:function(x){o(j.prototype.__proto__||Object.getPrototypeOf(j.prototype),"optimize",this).call(this,x),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return o(j.__proto__||Object.getPrototypeOf(j),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),j})(d.default);g.blotName="bold",g.tagName=["STRONG","B"],i.default=g}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.addControls=i.default=void 0;var a=(function(){function I(R,z){var q=[],U=!0,Q=!1,H=void 0;try{for(var K=R[Symbol.iterator](),Y;!(U=(Y=K.next()).done)&&(q.push(Y.value),!(z&&q.length===z));U=!0);}catch(P){Q=!0,H=P}finally{try{!U&&K.return&&K.return()}finally{if(Q)throw H}}return q}return function(R,z){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return I(R,z);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),o=(function(){function I(R,z){for(var q=0;q<z.length;q++){var U=z[q];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(R,U.key,U)}}return function(R,z,q){return z&&I(R.prototype,z),q&&I(R,q),R}})(),c=s(2),d=x(c),h=s(0),f=x(h),m=s(5),p=x(m),g=s(10),y=x(g),j=s(9),v=x(j);function x(I){return I&&I.__esModule?I:{default:I}}function N(I,R,z){return R in I?Object.defineProperty(I,R,{value:z,enumerable:!0,configurable:!0,writable:!0}):I[R]=z,I}function w(I,R){if(!(I instanceof R))throw new TypeError("Cannot call a class as a function")}function k(I,R){if(!I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R&&(typeof R=="object"||typeof R=="function")?R:I}function A(I,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof R);I.prototype=Object.create(R&&R.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),R&&(Object.setPrototypeOf?Object.setPrototypeOf(I,R):I.__proto__=R)}var S=(0,y.default)("quill:toolbar"),E=(function(I){A(R,I);function R(z,q){w(this,R);var U=k(this,(R.__proto__||Object.getPrototypeOf(R)).call(this,z,q));if(Array.isArray(U.options.container)){var Q=document.createElement("div");B(Q,U.options.container),z.container.parentNode.insertBefore(Q,z.container),U.container=Q}else typeof U.options.container=="string"?U.container=document.querySelector(U.options.container):U.container=U.options.container;if(!(U.container instanceof HTMLElement)){var H;return H=S.error("Container required for toolbar",U.options),k(U,H)}return U.container.classList.add("ql-toolbar"),U.controls=[],U.handlers={},Object.keys(U.options.handlers).forEach(function(K){U.addHandler(K,U.options.handlers[K])}),[].forEach.call(U.container.querySelectorAll("button, select"),function(K){U.attach(K)}),U.quill.on(p.default.events.EDITOR_CHANGE,function(K,Y){K===p.default.events.SELECTION_CHANGE&&U.update(Y)}),U.quill.on(p.default.events.SCROLL_OPTIMIZE,function(){var K=U.quill.selection.getRange(),Y=a(K,1),P=Y[0];U.update(P)}),U}return o(R,[{key:"addHandler",value:function(q,U){this.handlers[q]=U}},{key:"attach",value:function(q){var U=this,Q=[].find.call(q.classList,function(K){return K.indexOf("ql-")===0});if(Q){if(Q=Q.slice(3),q.tagName==="BUTTON"&&q.setAttribute("type","button"),this.handlers[Q]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[Q]==null){S.warn("ignoring attaching to disabled format",Q,q);return}if(f.default.query(Q)==null){S.warn("ignoring attaching to nonexistent format",Q,q);return}}var H=q.tagName==="SELECT"?"change":"click";q.addEventListener(H,function(K){var Y=void 0;if(q.tagName==="SELECT"){if(q.selectedIndex<0)return;var P=q.options[q.selectedIndex];P.hasAttribute("selected")?Y=!1:Y=P.value||!1}else q.classList.contains("ql-active")?Y=!1:Y=q.value||!q.hasAttribute("value"),K.preventDefault();U.quill.focus();var T=U.quill.selection.getRange(),V=a(T,1),L=V[0];if(U.handlers[Q]!=null)U.handlers[Q].call(U,Y);else if(f.default.query(Q).prototype instanceof f.default.Embed){if(Y=prompt("Enter "+Q),!Y)return;U.quill.updateContents(new d.default().retain(L.index).delete(L.length).insert(N({},Q,Y)),p.default.sources.USER)}else U.quill.format(Q,Y,p.default.sources.USER);U.update(L)}),this.controls.push([Q,q])}}},{key:"update",value:function(q){var U=q==null?{}:this.quill.getFormat(q);this.controls.forEach(function(Q){var H=a(Q,2),K=H[0],Y=H[1];if(Y.tagName==="SELECT"){var P=void 0;if(q==null)P=null;else if(U[K]==null)P=Y.querySelector("option[selected]");else if(!Array.isArray(U[K])){var T=U[K];typeof T=="string"&&(T=T.replace(/\"/g,'\\"')),P=Y.querySelector('option[value="'+T+'"]')}P==null?(Y.value="",Y.selectedIndex=-1):P.selected=!0}else if(q==null)Y.classList.remove("ql-active");else if(Y.hasAttribute("value")){var V=U[K]===Y.getAttribute("value")||U[K]!=null&&U[K].toString()===Y.getAttribute("value")||U[K]==null&&!Y.getAttribute("value");Y.classList.toggle("ql-active",V)}else Y.classList.toggle("ql-active",U[K]!=null)})}}]),R})(v.default);E.DEFAULTS={};function C(I,R,z){var q=document.createElement("button");q.setAttribute("type","button"),q.classList.add("ql-"+R),z!=null&&(q.value=z),I.appendChild(q)}function B(I,R){Array.isArray(R[0])||(R=[R]),R.forEach(function(z){var q=document.createElement("span");q.classList.add("ql-formats"),z.forEach(function(U){if(typeof U=="string")C(q,U);else{var Q=Object.keys(U)[0],H=U[Q];Array.isArray(H)?F(q,Q,H):C(q,Q,H)}}),I.appendChild(q)})}function F(I,R,z){var q=document.createElement("select");q.classList.add("ql-"+R),z.forEach(function(U){var Q=document.createElement("option");U!==!1?Q.setAttribute("value",U):Q.setAttribute("selected","selected"),q.appendChild(Q)}),I.appendChild(q)}E.DEFAULTS={container:null,handlers:{clean:function(){var R=this,z=this.quill.getSelection();if(z!=null)if(z.length==0){var q=this.quill.getFormat();Object.keys(q).forEach(function(U){f.default.query(U,f.default.Scope.INLINE)!=null&&R.quill.format(U,!1)})}else this.quill.removeFormat(z,p.default.sources.USER)},direction:function(R){var z=this.quill.getFormat().align;R==="rtl"&&z==null?this.quill.format("align","right",p.default.sources.USER):!R&&z==="right"&&this.quill.format("align",!1,p.default.sources.USER),this.quill.format("direction",R,p.default.sources.USER)},indent:function(R){var z=this.quill.getSelection(),q=this.quill.getFormat(z),U=parseInt(q.indent||0);if(R==="+1"||R==="-1"){var Q=R==="+1"?1:-1;q.direction==="rtl"&&(Q*=-1),this.quill.format("indent",U+Q,p.default.sources.USER)}},link:function(R){R===!0&&(R=prompt("Enter link URL:")),this.quill.format("link",R,p.default.sources.USER)},list:function(R){var z=this.quill.getSelection(),q=this.quill.getFormat(z);R==="check"?q.list==="checked"||q.list==="unchecked"?this.quill.format("list",!1,p.default.sources.USER):this.quill.format("list","unchecked",p.default.sources.USER):this.quill.format("list",R,p.default.sources.USER)}}},i.default=E,i.addControls=B}),(function(r,i){r.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(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function y(j,v){for(var x=0;x<v.length;x++){var N=v[x];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(j,N.key,N)}}return function(j,v,x){return v&&y(j.prototype,v),x&&y(j,x),j}})(),o=function y(j,v,x){j===null&&(j=Function.prototype);var N=Object.getOwnPropertyDescriptor(j,v);if(N===void 0){var w=Object.getPrototypeOf(j);return w===null?void 0:y(w,v,x)}else{if("value"in N)return N.value;var k=N.get;return k===void 0?void 0:k.call(x)}},c=s(28),d=h(c);function h(y){return y&&y.__esModule?y:{default:y}}function f(y,j){if(!(y instanceof j))throw new TypeError("Cannot call a class as a function")}function m(y,j){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j&&(typeof j=="object"||typeof j=="function")?j:y}function p(y,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof j);y.prototype=Object.create(j&&j.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),j&&(Object.setPrototypeOf?Object.setPrototypeOf(y,j):y.__proto__=j)}var g=(function(y){p(j,y);function j(v,x){f(this,j);var N=m(this,(j.__proto__||Object.getPrototypeOf(j)).call(this,v));return N.label.innerHTML=x,N.container.classList.add("ql-color-picker"),[].slice.call(N.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(w){w.classList.add("ql-primary")}),N}return a(j,[{key:"buildItem",value:function(x){var N=o(j.prototype.__proto__||Object.getPrototypeOf(j.prototype),"buildItem",this).call(this,x);return N.style.backgroundColor=x.getAttribute("value")||"",N}},{key:"selectItem",value:function(x,N){o(j.prototype.__proto__||Object.getPrototypeOf(j.prototype),"selectItem",this).call(this,x,N);var w=this.label.querySelector(".ql-color-label"),k=x&&x.getAttribute("data-value")||"";w&&(w.tagName==="line"?w.style.stroke=k:w.style.fill=k)}}]),j})(d.default);i.default=g}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function y(j,v){for(var x=0;x<v.length;x++){var N=v[x];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(j,N.key,N)}}return function(j,v,x){return v&&y(j.prototype,v),x&&y(j,x),j}})(),o=function y(j,v,x){j===null&&(j=Function.prototype);var N=Object.getOwnPropertyDescriptor(j,v);if(N===void 0){var w=Object.getPrototypeOf(j);return w===null?void 0:y(w,v,x)}else{if("value"in N)return N.value;var k=N.get;return k===void 0?void 0:k.call(x)}},c=s(28),d=h(c);function h(y){return y&&y.__esModule?y:{default:y}}function f(y,j){if(!(y instanceof j))throw new TypeError("Cannot call a class as a function")}function m(y,j){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j&&(typeof j=="object"||typeof j=="function")?j:y}function p(y,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof j);y.prototype=Object.create(j&&j.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),j&&(Object.setPrototypeOf?Object.setPrototypeOf(y,j):y.__proto__=j)}var g=(function(y){p(j,y);function j(v,x){f(this,j);var N=m(this,(j.__proto__||Object.getPrototypeOf(j)).call(this,v));return N.container.classList.add("ql-icon-picker"),[].forEach.call(N.container.querySelectorAll(".ql-picker-item"),function(w){w.innerHTML=x[w.getAttribute("data-value")||""]}),N.defaultItem=N.container.querySelector(".ql-selected"),N.selectItem(N.defaultItem),N}return a(j,[{key:"selectItem",value:function(x,N){o(j.prototype.__proto__||Object.getPrototypeOf(j.prototype),"selectItem",this).call(this,x,N),x=x||this.defaultItem,this.label.innerHTML=x.innerHTML}}]),j})(d.default);i.default=g}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function d(h,f){for(var m=0;m<f.length;m++){var p=f[m];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(h,p.key,p)}}return function(h,f,m){return f&&d(h.prototype,f),m&&d(h,m),h}})();function o(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")}var c=(function(){function d(h,f){var m=this;o(this,d),this.quill=h,this.boundsContainer=f||document.body,this.root=h.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){m.root.style.marginTop=-1*m.quill.root.scrollTop+"px"}),this.hide()}return a(d,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(f){var m=f.left+f.width/2-this.root.offsetWidth/2,p=f.bottom+this.quill.root.scrollTop;this.root.style.left=m+"px",this.root.style.top=p+"px",this.root.classList.remove("ql-flip");var g=this.boundsContainer.getBoundingClientRect(),y=this.root.getBoundingClientRect(),j=0;if(y.right>g.right&&(j=g.right-y.right,this.root.style.left=m+j+"px"),y.left<g.left&&(j=g.left-y.left,this.root.style.left=m+j+"px"),y.bottom>g.bottom){var v=y.bottom-y.top,x=f.bottom-f.top+v;this.root.style.top=p-x+"px",this.root.classList.add("ql-flip")}return j}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),d})();i.default=c}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function F(I,R){var z=[],q=!0,U=!1,Q=void 0;try{for(var H=I[Symbol.iterator](),K;!(q=(K=H.next()).done)&&(z.push(K.value),!(R&&z.length===R));q=!0);}catch(Y){U=!0,Q=Y}finally{try{!q&&H.return&&H.return()}finally{if(U)throw Q}}return z}return function(I,R){if(Array.isArray(I))return I;if(Symbol.iterator in Object(I))return F(I,R);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),o=function F(I,R,z){I===null&&(I=Function.prototype);var q=Object.getOwnPropertyDescriptor(I,R);if(q===void 0){var U=Object.getPrototypeOf(I);return U===null?void 0:F(U,R,z)}else{if("value"in q)return q.value;var Q=q.get;return Q===void 0?void 0:Q.call(z)}},c=(function(){function F(I,R){for(var z=0;z<R.length;z++){var q=R[z];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(I,q.key,q)}}return function(I,R,z){return R&&F(I.prototype,R),z&&F(I,z),I}})(),d=s(3),h=w(d),f=s(8),m=w(f),p=s(43),g=w(p),y=s(27),j=w(y),v=s(15),x=s(41),N=w(x);function w(F){return F&&F.__esModule?F:{default:F}}function k(F,I){if(!(F instanceof I))throw new TypeError("Cannot call a class as a function")}function A(F,I){if(!F)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I&&(typeof I=="object"||typeof I=="function")?I:F}function S(F,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof I);F.prototype=Object.create(I&&I.prototype,{constructor:{value:F,enumerable:!1,writable:!0,configurable:!0}}),I&&(Object.setPrototypeOf?Object.setPrototypeOf(F,I):F.__proto__=I)}var E=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],C=(function(F){S(I,F);function I(R,z){k(this,I),z.modules.toolbar!=null&&z.modules.toolbar.container==null&&(z.modules.toolbar.container=E);var q=A(this,(I.__proto__||Object.getPrototypeOf(I)).call(this,R,z));return q.quill.container.classList.add("ql-snow"),q}return c(I,[{key:"extendToolbar",value:function(z){z.container.classList.add("ql-snow"),this.buildButtons([].slice.call(z.container.querySelectorAll("button")),N.default),this.buildPickers([].slice.call(z.container.querySelectorAll("select")),N.default),this.tooltip=new B(this.quill,this.options.bounds),z.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(q,U){z.handlers.link.call(z,!U.format.link)})}}]),I})(g.default);C.DEFAULTS=(0,h.default)(!0,{},g.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(I){if(I){var R=this.quill.getSelection();if(R==null||R.length==0)return;var z=this.quill.getText(R);/^\S+@\S+\.\S+$/.test(z)&&z.indexOf("mailto:")!==0&&(z="mailto:"+z);var q=this.quill.theme.tooltip;q.edit("link",z)}else this.quill.format("link",!1)}}}}});var B=(function(F){S(I,F);function I(R,z){k(this,I);var q=A(this,(I.__proto__||Object.getPrototypeOf(I)).call(this,R,z));return q.preview=q.root.querySelector("a.ql-preview"),q}return c(I,[{key:"listen",value:function(){var z=this;o(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(q){z.root.classList.contains("ql-editing")?z.save():z.edit("link",z.preview.textContent),q.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(q){if(z.linkRange!=null){var U=z.linkRange;z.restoreFocus(),z.quill.formatText(U,"link",!1,m.default.sources.USER),delete z.linkRange}q.preventDefault(),z.hide()}),this.quill.on(m.default.events.SELECTION_CHANGE,function(q,U,Q){if(q!=null){if(q.length===0&&Q===m.default.sources.USER){var H=z.quill.scroll.descendant(j.default,q.index),K=a(H,2),Y=K[0],P=K[1];if(Y!=null){z.linkRange=new v.Range(q.index-P,Y.length());var T=j.default.formats(Y.domNode);z.preview.textContent=T,z.preview.setAttribute("href",T),z.show(),z.position(z.quill.getBounds(z.linkRange));return}}else delete z.linkRange;z.hide()}})}},{key:"show",value:function(){o(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),I})(p.BaseTooltip);B.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(""),i.default=C}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=s(29),o=je(a),c=s(36),d=s(38),h=s(64),f=s(65),m=je(f),p=s(66),g=je(p),y=s(67),j=je(y),v=s(37),x=s(26),N=s(39),w=s(40),k=s(56),A=je(k),S=s(68),E=je(S),C=s(27),B=je(C),F=s(69),I=je(F),R=s(70),z=je(R),q=s(71),U=je(q),Q=s(72),H=je(Q),K=s(73),Y=je(K),P=s(13),T=je(P),V=s(74),L=je(V),X=s(75),J=je(X),W=s(57),G=je(W),ee=s(41),ne=je(ee),le=s(28),ve=je(le),be=s(59),Oe=je(be),Te=s(60),We=je(Te),ut=s(61),nt=je(ut),ge=s(108),ye=je(ge),Ae=s(62),Pe=je(Ae);function je(tt){return tt&&tt.__esModule?tt:{default:tt}}o.default.register({"attributors/attribute/direction":d.DirectionAttribute,"attributors/class/align":c.AlignClass,"attributors/class/background":v.BackgroundClass,"attributors/class/color":x.ColorClass,"attributors/class/direction":d.DirectionClass,"attributors/class/font":N.FontClass,"attributors/class/size":w.SizeClass,"attributors/style/align":c.AlignStyle,"attributors/style/background":v.BackgroundStyle,"attributors/style/color":x.ColorStyle,"attributors/style/direction":d.DirectionStyle,"attributors/style/font":N.FontStyle,"attributors/style/size":w.SizeStyle},!0),o.default.register({"formats/align":c.AlignClass,"formats/direction":d.DirectionClass,"formats/indent":h.IndentClass,"formats/background":v.BackgroundStyle,"formats/color":x.ColorStyle,"formats/font":N.FontClass,"formats/size":w.SizeClass,"formats/blockquote":m.default,"formats/code-block":T.default,"formats/header":g.default,"formats/list":j.default,"formats/bold":A.default,"formats/code":P.Code,"formats/italic":E.default,"formats/link":B.default,"formats/script":I.default,"formats/strike":z.default,"formats/underline":U.default,"formats/image":H.default,"formats/video":Y.default,"formats/list/item":y.ListItem,"modules/formula":L.default,"modules/syntax":J.default,"modules/toolbar":G.default,"themes/bubble":ye.default,"themes/snow":Pe.default,"ui/icons":ne.default,"ui/picker":ve.default,"ui/icon-picker":We.default,"ui/color-picker":Oe.default,"ui/tooltip":nt.default},!0),i.default=o.default}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.IndentClass=void 0;var a=(function(){function j(v,x){for(var N=0;N<x.length;N++){var w=x[N];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(v,w.key,w)}}return function(v,x,N){return x&&j(v.prototype,x),N&&j(v,N),v}})(),o=function j(v,x,N){v===null&&(v=Function.prototype);var w=Object.getOwnPropertyDescriptor(v,x);if(w===void 0){var k=Object.getPrototypeOf(v);return k===null?void 0:j(k,x,N)}else{if("value"in w)return w.value;var A=w.get;return A===void 0?void 0:A.call(N)}},c=s(0),d=h(c);function h(j){return j&&j.__esModule?j:{default:j}}function f(j,v){if(!(j instanceof v))throw new TypeError("Cannot call a class as a function")}function m(j,v){if(!j)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:j}function p(j,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);j.prototype=Object.create(v&&v.prototype,{constructor:{value:j,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(j,v):j.__proto__=v)}var g=(function(j){p(v,j);function v(){return f(this,v),m(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return a(v,[{key:"add",value:function(N,w){if(w==="+1"||w==="-1"){var k=this.value(N)||0;w=w==="+1"?k+1:k-1}return w===0?(this.remove(N),!0):o(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"add",this).call(this,N,w)}},{key:"canAdd",value:function(N,w){return o(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"canAdd",this).call(this,N,w)||o(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"canAdd",this).call(this,N,parseInt(w))}},{key:"value",value:function(N){return parseInt(o(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"value",this).call(this,N))||void 0}}]),v})(d.default.Attributor.Class),y=new g("indent","ql-indent",{scope:d.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});i.IndentClass=y}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=s(4),o=c(a);function c(p){return p&&p.__esModule?p:{default:p}}function d(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")}function h(p,g){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:p}function f(p,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);p.prototype=Object.create(g&&g.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(p,g):p.__proto__=g)}var m=(function(p){f(g,p);function g(){return d(this,g),h(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return g})(o.default);m.blotName="blockquote",m.tagName="blockquote",i.default=m}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function g(y,j){for(var v=0;v<j.length;v++){var x=j[v];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(y,x.key,x)}}return function(y,j,v){return j&&g(y.prototype,j),v&&g(y,v),y}})(),o=s(4),c=d(o);function d(g){return g&&g.__esModule?g:{default:g}}function h(g,y){if(!(g instanceof y))throw new TypeError("Cannot call a class as a function")}function f(g,y){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:g}function m(g,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);g.prototype=Object.create(y&&y.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(g,y):g.__proto__=y)}var p=(function(g){m(y,g);function y(){return h(this,y),f(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return a(y,null,[{key:"formats",value:function(v){return this.tagName.indexOf(v.tagName)+1}}]),y})(c.default);p.blotName="header",p.tagName=["H1","H2","H3","H4","H5","H6"],i.default=p}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.ListItem=void 0;var a=(function(){function k(A,S){for(var E=0;E<S.length;E++){var C=S[E];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(A,C.key,C)}}return function(A,S,E){return S&&k(A.prototype,S),E&&k(A,E),A}})(),o=function k(A,S,E){A===null&&(A=Function.prototype);var C=Object.getOwnPropertyDescriptor(A,S);if(C===void 0){var B=Object.getPrototypeOf(A);return B===null?void 0:k(B,S,E)}else{if("value"in C)return C.value;var F=C.get;return F===void 0?void 0:F.call(E)}},c=s(0),d=g(c),h=s(4),f=g(h),m=s(25),p=g(m);function g(k){return k&&k.__esModule?k:{default:k}}function y(k,A,S){return A in k?Object.defineProperty(k,A,{value:S,enumerable:!0,configurable:!0,writable:!0}):k[A]=S,k}function j(k,A){if(!(k instanceof A))throw new TypeError("Cannot call a class as a function")}function v(k,A){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A&&(typeof A=="object"||typeof A=="function")?A:k}function x(k,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof A);k.prototype=Object.create(A&&A.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(k,A):k.__proto__=A)}var N=(function(k){x(A,k);function A(){return j(this,A),v(this,(A.__proto__||Object.getPrototypeOf(A)).apply(this,arguments))}return a(A,[{key:"format",value:function(E,C){E===w.blotName&&!C?this.replaceWith(d.default.create(this.statics.scope)):o(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"format",this).call(this,E,C)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():o(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(E,C){return this.parent.isolate(this.offset(this.parent),this.length()),E===this.parent.statics.blotName?(this.parent.replaceWith(E,C),this):(this.parent.unwrap(),o(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"replaceWith",this).call(this,E,C))}}],[{key:"formats",value:function(E){return E.tagName===this.tagName?void 0:o(A.__proto__||Object.getPrototypeOf(A),"formats",this).call(this,E)}}]),A})(f.default);N.blotName="list-item",N.tagName="LI";var w=(function(k){x(A,k),a(A,null,[{key:"create",value:function(E){var C=E==="ordered"?"OL":"UL",B=o(A.__proto__||Object.getPrototypeOf(A),"create",this).call(this,C);return(E==="checked"||E==="unchecked")&&B.setAttribute("data-checked",E==="checked"),B}},{key:"formats",value:function(E){if(E.tagName==="OL")return"ordered";if(E.tagName==="UL")return E.hasAttribute("data-checked")?E.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function A(S){j(this,A);var E=v(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,S)),C=function(F){if(F.target.parentNode===S){var I=E.statics.formats(S),R=d.default.find(F.target);I==="checked"?R.format("list","unchecked"):I==="unchecked"&&R.format("list","checked")}};return S.addEventListener("touchstart",C),S.addEventListener("mousedown",C),E}return a(A,[{key:"format",value:function(E,C){this.children.length>0&&this.children.tail.format(E,C)}},{key:"formats",value:function(){return y({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(E,C){if(E instanceof N)o(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"insertBefore",this).call(this,E,C);else{var B=C==null?this.length():C.offset(this),F=this.split(B);F.parent.insertBefore(E,F)}}},{key:"optimize",value:function(E){o(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"optimize",this).call(this,E);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(E){if(E.statics.blotName!==this.statics.blotName){var C=d.default.create(this.statics.defaultChild);E.moveChildren(C),this.appendChild(C)}o(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"replace",this).call(this,E)}}]),A})(p.default);w.blotName="list",w.scope=d.default.Scope.BLOCK_BLOT,w.tagName=["OL","UL"],w.defaultChild="list-item",w.allowedChildren=[N],i.ListItem=N,i.default=w}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=s(56),o=c(a);function c(p){return p&&p.__esModule?p:{default:p}}function d(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")}function h(p,g){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:p}function f(p,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);p.prototype=Object.create(g&&g.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(p,g):p.__proto__=g)}var m=(function(p){f(g,p);function g(){return d(this,g),h(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return g})(o.default);m.blotName="italic",m.tagName=["EM","I"],i.default=m}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function y(j,v){for(var x=0;x<v.length;x++){var N=v[x];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(j,N.key,N)}}return function(j,v,x){return v&&y(j.prototype,v),x&&y(j,x),j}})(),o=function y(j,v,x){j===null&&(j=Function.prototype);var N=Object.getOwnPropertyDescriptor(j,v);if(N===void 0){var w=Object.getPrototypeOf(j);return w===null?void 0:y(w,v,x)}else{if("value"in N)return N.value;var k=N.get;return k===void 0?void 0:k.call(x)}},c=s(6),d=h(c);function h(y){return y&&y.__esModule?y:{default:y}}function f(y,j){if(!(y instanceof j))throw new TypeError("Cannot call a class as a function")}function m(y,j){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j&&(typeof j=="object"||typeof j=="function")?j:y}function p(y,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof j);y.prototype=Object.create(j&&j.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),j&&(Object.setPrototypeOf?Object.setPrototypeOf(y,j):y.__proto__=j)}var g=(function(y){p(j,y);function j(){return f(this,j),m(this,(j.__proto__||Object.getPrototypeOf(j)).apply(this,arguments))}return a(j,null,[{key:"create",value:function(x){return x==="super"?document.createElement("sup"):x==="sub"?document.createElement("sub"):o(j.__proto__||Object.getPrototypeOf(j),"create",this).call(this,x)}},{key:"formats",value:function(x){if(x.tagName==="SUB")return"sub";if(x.tagName==="SUP")return"super"}}]),j})(d.default);g.blotName="script",g.tagName=["SUB","SUP"],i.default=g}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=s(6),o=c(a);function c(p){return p&&p.__esModule?p:{default:p}}function d(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")}function h(p,g){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:p}function f(p,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);p.prototype=Object.create(g&&g.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(p,g):p.__proto__=g)}var m=(function(p){f(g,p);function g(){return d(this,g),h(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return g})(o.default);m.blotName="strike",m.tagName="S",i.default=m}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=s(6),o=c(a);function c(p){return p&&p.__esModule?p:{default:p}}function d(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")}function h(p,g){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:p}function f(p,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);p.prototype=Object.create(g&&g.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(p,g):p.__proto__=g)}var m=(function(p){f(g,p);function g(){return d(this,g),h(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return g})(o.default);m.blotName="underline",m.tagName="U",i.default=m}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function v(x,N){for(var w=0;w<N.length;w++){var k=N[w];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(x,k.key,k)}}return function(x,N,w){return N&&v(x.prototype,N),w&&v(x,w),x}})(),o=function v(x,N,w){x===null&&(x=Function.prototype);var k=Object.getOwnPropertyDescriptor(x,N);if(k===void 0){var A=Object.getPrototypeOf(x);return A===null?void 0:v(A,N,w)}else{if("value"in k)return k.value;var S=k.get;return S===void 0?void 0:S.call(w)}},c=s(0),d=f(c),h=s(27);function f(v){return v&&v.__esModule?v:{default:v}}function m(v,x){if(!(v instanceof x))throw new TypeError("Cannot call a class as a function")}function p(v,x){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:v}function g(v,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);v.prototype=Object.create(x&&x.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(v,x):v.__proto__=x)}var y=["alt","height","width"],j=(function(v){g(x,v);function x(){return m(this,x),p(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return a(x,[{key:"format",value:function(w,k){y.indexOf(w)>-1?k?this.domNode.setAttribute(w,k):this.domNode.removeAttribute(w):o(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"format",this).call(this,w,k)}}],[{key:"create",value:function(w){var k=o(x.__proto__||Object.getPrototypeOf(x),"create",this).call(this,w);return typeof w=="string"&&k.setAttribute("src",this.sanitize(w)),k}},{key:"formats",value:function(w){return y.reduce(function(k,A){return w.hasAttribute(A)&&(k[A]=w.getAttribute(A)),k},{})}},{key:"match",value:function(w){return/\.(jpe?g|gif|png)$/.test(w)||/^data:image\/.+;base64/.test(w)}},{key:"sanitize",value:function(w){return(0,h.sanitize)(w,["http","https","data"])?w:"//:0"}},{key:"value",value:function(w){return w.getAttribute("src")}}]),x})(d.default.Embed);j.blotName="image",j.tagName="IMG",i.default=j}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function v(x,N){for(var w=0;w<N.length;w++){var k=N[w];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(x,k.key,k)}}return function(x,N,w){return N&&v(x.prototype,N),w&&v(x,w),x}})(),o=function v(x,N,w){x===null&&(x=Function.prototype);var k=Object.getOwnPropertyDescriptor(x,N);if(k===void 0){var A=Object.getPrototypeOf(x);return A===null?void 0:v(A,N,w)}else{if("value"in k)return k.value;var S=k.get;return S===void 0?void 0:S.call(w)}},c=s(4),d=s(27),h=f(d);function f(v){return v&&v.__esModule?v:{default:v}}function m(v,x){if(!(v instanceof x))throw new TypeError("Cannot call a class as a function")}function p(v,x){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:v}function g(v,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);v.prototype=Object.create(x&&x.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(v,x):v.__proto__=x)}var y=["height","width"],j=(function(v){g(x,v);function x(){return m(this,x),p(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return a(x,[{key:"format",value:function(w,k){y.indexOf(w)>-1?k?this.domNode.setAttribute(w,k):this.domNode.removeAttribute(w):o(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"format",this).call(this,w,k)}}],[{key:"create",value:function(w){var k=o(x.__proto__||Object.getPrototypeOf(x),"create",this).call(this,w);return k.setAttribute("frameborder","0"),k.setAttribute("allowfullscreen",!0),k.setAttribute("src",this.sanitize(w)),k}},{key:"formats",value:function(w){return y.reduce(function(k,A){return w.hasAttribute(A)&&(k[A]=w.getAttribute(A)),k},{})}},{key:"sanitize",value:function(w){return h.default.sanitize(w)}},{key:"value",value:function(w){return w.getAttribute("src")}}]),x})(c.BlockEmbed);j.blotName="video",j.className="ql-video",j.tagName="IFRAME",i.default=j}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.FormulaBlot=void 0;var a=(function(){function w(k,A){for(var S=0;S<A.length;S++){var E=A[S];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(k,E.key,E)}}return function(k,A,S){return A&&w(k.prototype,A),S&&w(k,S),k}})(),o=function w(k,A,S){k===null&&(k=Function.prototype);var E=Object.getOwnPropertyDescriptor(k,A);if(E===void 0){var C=Object.getPrototypeOf(k);return C===null?void 0:w(C,A,S)}else{if("value"in E)return E.value;var B=E.get;return B===void 0?void 0:B.call(S)}},c=s(35),d=g(c),h=s(5),f=g(h),m=s(9),p=g(m);function g(w){return w&&w.__esModule?w:{default:w}}function y(w,k){if(!(w instanceof k))throw new TypeError("Cannot call a class as a function")}function j(w,k){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k&&(typeof k=="object"||typeof k=="function")?k:w}function v(w,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof k);w.prototype=Object.create(k&&k.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(w,k):w.__proto__=k)}var x=(function(w){v(k,w);function k(){return y(this,k),j(this,(k.__proto__||Object.getPrototypeOf(k)).apply(this,arguments))}return a(k,null,[{key:"create",value:function(S){var E=o(k.__proto__||Object.getPrototypeOf(k),"create",this).call(this,S);return typeof S=="string"&&(window.katex.render(S,E,{throwOnError:!1,errorColor:"#f00"}),E.setAttribute("data-value",S)),E}},{key:"value",value:function(S){return S.getAttribute("data-value")}}]),k})(d.default);x.blotName="formula",x.className="ql-formula",x.tagName="SPAN";var N=(function(w){v(k,w),a(k,null,[{key:"register",value:function(){f.default.register(x,!0)}}]);function k(){y(this,k);var A=j(this,(k.__proto__||Object.getPrototypeOf(k)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return A}return k})(p.default);i.FormulaBlot=x,i.default=N}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.CodeToken=i.CodeBlock=void 0;var a=(function(){function S(E,C){for(var B=0;B<C.length;B++){var F=C[B];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(E,F.key,F)}}return function(E,C,B){return C&&S(E.prototype,C),B&&S(E,B),E}})(),o=function S(E,C,B){E===null&&(E=Function.prototype);var F=Object.getOwnPropertyDescriptor(E,C);if(F===void 0){var I=Object.getPrototypeOf(E);return I===null?void 0:S(I,C,B)}else{if("value"in F)return F.value;var R=F.get;return R===void 0?void 0:R.call(B)}},c=s(0),d=j(c),h=s(5),f=j(h),m=s(9),p=j(m),g=s(13),y=j(g);function j(S){return S&&S.__esModule?S:{default:S}}function v(S,E){if(!(S instanceof E))throw new TypeError("Cannot call a class as a function")}function x(S,E){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:S}function N(S,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);S.prototype=Object.create(E&&E.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(S,E):S.__proto__=E)}var w=(function(S){N(E,S);function E(){return v(this,E),x(this,(E.__proto__||Object.getPrototypeOf(E)).apply(this,arguments))}return a(E,[{key:"replaceWith",value:function(B){this.domNode.textContent=this.domNode.textContent,this.attach(),o(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"replaceWith",this).call(this,B)}},{key:"highlight",value:function(B){var F=this.domNode.textContent;this.cachedText!==F&&((F.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=B(F),this.domNode.normalize(),this.attach()),this.cachedText=F)}}]),E})(y.default);w.className="ql-syntax";var k=new d.default.Attributor.Class("token","hljs",{scope:d.default.Scope.INLINE}),A=(function(S){N(E,S),a(E,null,[{key:"register",value:function(){f.default.register(k,!0),f.default.register(w,!0)}}]);function E(C,B){v(this,E);var F=x(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,C,B));if(typeof F.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var I=null;return F.quill.on(f.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(I),I=setTimeout(function(){F.highlight(),I=null},F.options.interval)}),F.highlight(),F}return a(E,[{key:"highlight",value:function(){var B=this;if(!this.quill.selection.composing){this.quill.update(f.default.sources.USER);var F=this.quill.getSelection();this.quill.scroll.descendants(w).forEach(function(I){I.highlight(B.options.highlight)}),this.quill.update(f.default.sources.SILENT),F!=null&&this.quill.setSelection(F,f.default.sources.SILENT)}}}]),E})(p.default);A.DEFAULTS={highlight:(function(){return window.hljs==null?null:function(S){var E=window.hljs.highlightAuto(S);return E.value}})(),interval:1e3},i.CodeBlock=w,i.CodeToken=k,i.default=A}),(function(r,i){r.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(r,i){r.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(r,i){r.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(r,i){r.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(r,i){r.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(r,i){r.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(r,i){r.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(r,i){r.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> <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(r,i){r.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(r,i){r.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(r,i){r.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(r,i){r.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(r,i){r.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(r,i){r.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(r,i){r.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(r,i){r.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(r,i){r.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(r,i){r.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(r,i){r.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(r,i){r.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(r,i){r.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(r,i){r.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(r,i){r.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(r,i){r.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(r,i){r.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(r,i){r.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(r,i){r.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(r,i){r.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(r,i){r.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(r,i){r.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(r,i){r.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(r,i){r.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(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.BubbleTooltip=void 0;var a=function E(C,B,F){C===null&&(C=Function.prototype);var I=Object.getOwnPropertyDescriptor(C,B);if(I===void 0){var R=Object.getPrototypeOf(C);return R===null?void 0:E(R,B,F)}else{if("value"in I)return I.value;var z=I.get;return z===void 0?void 0:z.call(F)}},o=(function(){function E(C,B){for(var F=0;F<B.length;F++){var I=B[F];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(C,I.key,I)}}return function(C,B,F){return B&&E(C.prototype,B),F&&E(C,F),C}})(),c=s(3),d=v(c),h=s(8),f=v(h),m=s(43),p=v(m),g=s(15),y=s(41),j=v(y);function v(E){return E&&E.__esModule?E:{default:E}}function x(E,C){if(!(E instanceof C))throw new TypeError("Cannot call a class as a function")}function N(E,C){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:E}function w(E,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);E.prototype=Object.create(C&&C.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(E,C):E.__proto__=C)}var k=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],A=(function(E){w(C,E);function C(B,F){x(this,C),F.modules.toolbar!=null&&F.modules.toolbar.container==null&&(F.modules.toolbar.container=k);var I=N(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,B,F));return I.quill.container.classList.add("ql-bubble"),I}return o(C,[{key:"extendToolbar",value:function(F){this.tooltip=new S(this.quill,this.options.bounds),this.tooltip.root.appendChild(F.container),this.buildButtons([].slice.call(F.container.querySelectorAll("button")),j.default),this.buildPickers([].slice.call(F.container.querySelectorAll("select")),j.default)}}]),C})(p.default);A.DEFAULTS=(0,d.default)(!0,{},p.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(C){C?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var S=(function(E){w(C,E);function C(B,F){x(this,C);var I=N(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,B,F));return I.quill.on(f.default.events.EDITOR_CHANGE,function(R,z,q,U){if(R===f.default.events.SELECTION_CHANGE)if(z!=null&&z.length>0&&U===f.default.sources.USER){I.show(),I.root.style.left="0px",I.root.style.width="",I.root.style.width=I.root.offsetWidth+"px";var Q=I.quill.getLines(z.index,z.length);if(Q.length===1)I.position(I.quill.getBounds(z));else{var H=Q[Q.length-1],K=I.quill.getIndex(H),Y=Math.min(H.length()-1,z.index+z.length-K),P=I.quill.getBounds(new g.Range(K,Y));I.position(P)}}else document.activeElement!==I.textbox&&I.quill.hasFocus()&&I.hide()}),I}return o(C,[{key:"listen",value:function(){var F=this;a(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){F.root.classList.remove("ql-editing")}),this.quill.on(f.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!F.root.classList.contains("ql-hidden")){var I=F.quill.getSelection();I!=null&&F.position(F.quill.getBounds(I))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(F){var I=a(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"position",this).call(this,F),R=this.root.querySelector(".ql-tooltip-arrow");if(R.style.marginLeft="",I===0)return I;R.style.marginLeft=-1*I-R.offsetWidth/2+"px"}}]),C})(m.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(""),i.BubbleTooltip=S,i.default=A}),(function(r,i,s){r.exports=s(63)})]).default})})(Bh)),Bh.exports}var zr,lS;function FK(){if(lS)return zr;lS=1;var t=zr&&zr.__extends||(function(){var f=function(m,p){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,y){g.__proto__=y}||function(g,y){for(var j in y)y.hasOwnProperty(j)&&(g[j]=y[j])},f(m,p)};return function(m,p){f(m,p);function g(){this.constructor=m}m.prototype=p===null?Object.create(p):(g.prototype=p.prototype,new g)}})(),n=zr&&zr.__assign||function(){return n=Object.assign||function(f){for(var m,p=1,g=arguments.length;p<g;p++){m=arguments[p];for(var y in m)Object.prototype.hasOwnProperty.call(m,y)&&(f[y]=m[y])}return f},n.apply(this,arguments)},r=zr&&zr.__spreadArrays||function(){for(var f=0,m=0,p=arguments.length;m<p;m++)f+=arguments[m].length;for(var g=Array(f),y=0,m=0;m<p;m++)for(var j=arguments[m],v=0,x=j.length;v<x;v++,y++)g[y]=j[v];return g},i=zr&&zr.__importDefault||function(f){return f&&f.__esModule?f:{default:f}},s=i(_u()),a=i(ny()),o=i(DK()),c=i(RK()),d=(function(f){t(m,f);function m(p){var g=f.call(this,p)||this;g.dirtyProps=["modules","formats","bounds","theme","children"],g.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],g.state={generation:0},g.selection=null,g.onEditorChange=function(j,v,x,N){var w,k,A,S;j==="text-change"?(k=(w=g).onEditorChangeText)===null||k===void 0||k.call(w,g.editor.root.innerHTML,v,N,g.unprivilegedEditor):j==="selection-change"&&((S=(A=g).onEditorChangeSelection)===null||S===void 0||S.call(A,v,N,g.unprivilegedEditor))};var y=g.isControlled()?p.value:p.defaultValue;return g.value=y??"",g}return m.prototype.validateProps=function(p){var g;if(s.default.Children.count(p.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(s.default.Children.count(p.children)){var y=s.default.Children.only(p.children);if(((g=y)===null||g===void 0?void 0:g.type)==="textarea")throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.")}if(this.lastDeltaChangeSet&&p.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")},m.prototype.shouldComponentUpdate=function(p,g){var y=this,j;if(this.validateProps(p),!this.editor||this.state.generation!==g.generation)return!0;if("value"in p){var v=this.getEditorContents(),x=(j=p.value,j??"");this.isEqualValue(x,v)||this.setEditorContents(this.editor,x)}return p.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,p.readOnly),r(this.cleanProps,this.dirtyProps).some(function(N){return!o.default(p[N],y.props[N])})},m.prototype.shouldComponentRegenerate=function(p){var g=this;return this.dirtyProps.some(function(y){return!o.default(p[y],g.props[y])})},m.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},m.prototype.componentWillUnmount=function(){this.destroyEditor()},m.prototype.componentDidUpdate=function(p,g){var y=this;if(this.editor&&this.shouldComponentRegenerate(p)){var j=this.editor.getContents(),v=this.editor.getSelection();this.regenerationSnapshot={delta:j,selection:v},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==g.generation){var x=this.regenerationSnapshot,j=x.delta,N=x.selection;delete this.regenerationSnapshot,this.instantiateEditor();var w=this.editor;w.setContents(j),h(function(){return y.setEditorSelection(w,N)})}},m.prototype.instantiateEditor=function(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())},m.prototype.destroyEditor=function(){this.editor&&this.unhookEditor(this.editor)},m.prototype.isControlled=function(){return"value"in this.props},m.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}},m.prototype.getEditor=function(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor},m.prototype.createEditor=function(p,g){var y=new c.default(p,g);return g.tabIndex!=null&&this.setEditorTabIndex(y,g.tabIndex),this.hookEditor(y),y},m.prototype.hookEditor=function(p){this.unprivilegedEditor=this.makeUnprivilegedEditor(p),p.on("editor-change",this.onEditorChange)},m.prototype.unhookEditor=function(p){p.off("editor-change",this.onEditorChange)},m.prototype.getEditorContents=function(){return this.value},m.prototype.getEditorSelection=function(){return this.selection},m.prototype.isDelta=function(p){return p&&p.ops},m.prototype.isEqualValue=function(p,g){return this.isDelta(p)&&this.isDelta(g)?o.default(p.ops,g.ops):o.default(p,g)},m.prototype.setEditorContents=function(p,g){var y=this;this.value=g;var j=this.getEditorSelection();typeof g=="string"?p.setContents(p.clipboard.convert(g)):p.setContents(g),h(function(){return y.setEditorSelection(p,j)})},m.prototype.setEditorSelection=function(p,g){if(this.selection=g,g){var y=p.getLength();g.index=Math.max(0,Math.min(g.index,y-1)),g.length=Math.max(0,Math.min(g.length,y-1-g.index)),p.setSelection(g)}},m.prototype.setEditorTabIndex=function(p,g){var y,j;!((j=(y=p)===null||y===void 0?void 0:y.scroll)===null||j===void 0)&&j.domNode&&(p.scroll.domNode.tabIndex=g)},m.prototype.setEditorReadOnly=function(p,g){g?p.disable():p.enable()},m.prototype.makeUnprivilegedEditor=function(p){var g=p;return{getHTML:function(){return g.root.innerHTML},getLength:g.getLength.bind(g),getText:g.getText.bind(g),getContents:g.getContents.bind(g),getSelection:g.getSelection.bind(g),getBounds:g.getBounds.bind(g)}},m.prototype.getEditingArea=function(){if(!this.editingArea)throw new Error("Instantiating on missing editing area");var p=a.default.findDOMNode(this.editingArea);if(!p)throw new Error("Cannot find element for editing area");if(p.nodeType===3)throw new Error("Editing area cannot be a text node");return p},m.prototype.renderEditingArea=function(){var p=this,g=this.props,y=g.children,j=g.preserveWhitespace,v=this.state.generation,x={key:v,ref:function(N){p.editingArea=N}};return s.default.Children.count(y)?s.default.cloneElement(s.default.Children.only(y),x):j?s.default.createElement("pre",n({},x)):s.default.createElement("div",n({},x))},m.prototype.render=function(){var p;return s.default.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill "+(p=this.props.className,p??""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},m.prototype.onEditorChangeText=function(p,g,y,j){var v,x;if(this.editor){var N=this.isDelta(this.value)?j.getContents():j.getHTML();N!==this.getEditorContents()&&(this.lastDeltaChangeSet=g,this.value=N,(x=(v=this.props).onChange)===null||x===void 0||x.call(v,p,g,y,j))}},m.prototype.onEditorChangeSelection=function(p,g,y){var j,v,x,N,w,k;if(this.editor){var A=this.getEditorSelection(),S=!A&&p,E=A&&!p;o.default(p,A)||(this.selection=p,(v=(j=this.props).onChangeSelection)===null||v===void 0||v.call(j,p,g,y),S?(N=(x=this.props).onFocus)===null||N===void 0||N.call(x,p,g,y):E&&((k=(w=this.props).onBlur)===null||k===void 0||k.call(w,A,g,y)))}},m.prototype.focus=function(){this.editor&&this.editor.focus()},m.prototype.blur=function(){this.editor&&(this.selection=null,this.editor.blur())},m.displayName="React Quill",m.Quill=c.default,m.defaultProps={theme:"snow",modules:{},readOnly:!1},m})(s.default.Component);function h(f){Promise.resolve().then(f)}return zr=d,zr}var MK=FK();const Vf=_i(MK);function es({value:t,onChange:n,placeholder:r}){const[i,s]=Ot.useState(!1),[a,o]=Ot.useState(!1),c=Ot.useRef(null),d=Ot.useCallback(()=>{const m=document.createElement("input");m.setAttribute("type","file"),m.setAttribute("accept","image/*"),m.click(),m.onchange=async()=>{const p=m.files[0];if(p){s(!0);try{const{file_url:g}=await ce.integrations.Core.UploadFile({file:p}),y=c.current.getEditor(),j=y.getSelection();y.insertEmbed(j.index,"image",g)}catch(g){console.error("Error uploading image:",g),alert("Fout bij uploaden van afbeelding")}finally{s(!1)}}}},[]),h=Ot.useMemo(()=>({toolbar:{container:[[{header:[1,2,!1]}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"}],["link","image"],["clean"]],handlers:{image:d}}}),[d]),f=["header","bold","italic","underline","strike","list","bullet","color","background","link","image"];return e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"mb-2 flex justify-end",children:e.jsx(ae,{type:"button",variant:"outline",size:"sm",onClick:()=>o(!a),children:a?"📠Rich Editor":"💻 Raw HTML"})}),a?e.jsx("textarea",{value:t||"",onChange:m=>n(m.target.value),placeholder:"Bewerk de ruwe HTML hier...",className:"w-full min-h-[400px] p-4 border border-gray-300 rounded-lg font-mono text-sm focus:outline-none focus:ring-2 focus:ring-blue-500",style:{whiteSpace:"pre-wrap"}}):e.jsxs(e.Fragment,{children:[e.jsx("style",{children:`
.ql-container {
min-height: 400px;
font-size: 16px;
border-bottom-left-radius: 0.5rem;
border-bottom-right-radius: 0.5rem;
}
.ql-editor {
min-height: 400px;
padding: 1rem;
}
.ql-toolbar {
background: #f9fafb;
border-top-left-radius: 0.5rem;
border-top-right-radius: 0.5rem;
border: 1px solid #e5e7eb;
border-bottom: 1px solid #d1d5db;
}
.ql-container {
border: 1px solid #e5e7eb;
border-top: none;
}
.ql-editor.ql-blank::before {
color: #9ca3af;
font-style: normal;
}
`}),e.jsx(Vf,{ref:c,theme:"snow",value:t||"",onChange:n,modules:h,formats:f,placeholder:r,className:"bg-white rounded-lg"}),i&&e.jsx("div",{className:"absolute inset-0 bg-white/80 flex items-center justify-center rounded-lg z-10",children:e.jsxs("div",{className:"flex items-center gap-2 text-blue-600",children:[e.jsxs("svg",{className:"animate-spin w-5 h-5",viewBox:"0 0 24 24",children:[e.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),e.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),"Afbeelding uploaden..."]})})]})]})}function na({value:t,onChange:n,label:r,description:i,recommendedSize:s}){const[a,o]=D.useState(!1),[c,d]=D.useState(!1),h=async f=>{const m=f.target.files[0];if(m){o(!0);try{const{file_url:p}=await ce.integrations.Core.UploadFile({file:m});n(p)}catch(p){console.error("Error uploading image:",p),alert("Fout bij uploaden van afbeelding")}finally{o(!1)}}};return e.jsxs("div",{children:[e.jsxs("div",{className:"mb-2",children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700",children:r}),s&&e.jsxs("span",{className:"text-xs text-gray-500 mt-1 block",children:["Aanbevolen: ",s]})]}),t?e.jsxs("div",{className:"relative",children:[e.jsx("img",{src:t,alt:"Preview",className:"w-full h-48 object-cover rounded-lg border-2 border-gray-200"}),e.jsx(ae,{type:"button",size:"sm",variant:"ghost",onClick:()=>n(""),className:"absolute top-2 right-2 bg-white/90 hover:bg-white",children:e.jsx(Ht,{className:"w-4 h-4"})})]}):e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("input",{type:"file",accept:"image/*",onChange:h,disabled:a,className:"hidden",id:`file-upload-${r}`}),e.jsx("label",{htmlFor:`file-upload-${r}`,className:"cursor-pointer inline-flex items-center gap-2 px-4 py-2 border border-gray-300 rounded-lg text-sm font-medium text-gray-700 bg-white hover:bg-gray-50 transition-colors",children:a?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"w-4 h-4 border-2 border-blue-600 border-t-transparent rounded-full animate-spin"}),"Uploaden..."]}):e.jsxs(e.Fragment,{children:[e.jsx(z4,{className:"w-4 h-4"}),"Upload"]})}),e.jsx("span",{className:"text-sm text-gray-500",children:"of"}),e.jsx(me,{value:t,onChange:f=>n(f.target.value),placeholder:"Plak afbeelding URL",className:"flex-1"})]})]})}function LK({title:t,content:n,metaDescription:r,metaKeywords:i,slug:s}){const a=[];let o=0;t&&t.length>=50&&t.length<=60?(a.push({label:"Titel lengte optimaal",status:"good"}),o+=20):t&&t.length>0?(a.push({label:"Titel lengte suboptimaal",status:"warning"}),o+=10):a.push({label:"Geen titel",status:"error"}),r&&r.length>=120&&r.length<=160?(a.push({label:"Meta description optimaal",status:"good"}),o+=25):r&&r.length>0?(a.push({label:"Meta description suboptimaal",status:"warning"}),o+=12):a.push({label:"Geen meta description",status:"error"}),i&&i.split(",").filter(f=>f.trim()).length>=3?(a.push({label:"Keywords aanwezig",status:"good"}),o+=15):(a.push({label:"Minimaal 3 keywords nodig",status:"warning"}),o+=5);const c=n?n.split(/\s+/).length:0;c>=300?(a.push({label:"Content lengte voldoende",status:"good"}),o+=20):c>0?(a.push({label:`Content te kort (${c} woorden)`,status:"warning"}),o+=10):a.push({label:"Geen content",status:"error"}),s&&s.length>0&&/^[a-z0-9-]+$/.test(s)?(a.push({label:"URL-vriendelijke slug",status:"good"}),o+=20):(a.push({label:"Slug niet optimaal",status:"warning"}),o+=5);const d=()=>o>=80?"text-green-600":o>=60?"text-yellow-600":"text-red-600",h=()=>o>=80?"bg-green-50 border-green-200":o>=60?"bg-yellow-50 border-yellow-200":"bg-red-50 border-red-200";return e.jsxs("div",{className:`rounded-xl p-6 border-2 ${h()}`,children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900",children:"SEO Score"}),e.jsxs("div",{className:`text-4xl font-bold ${d()}`,children:[o,"/100"]})]}),e.jsx("div",{className:"space-y-2",children:a.map((f,m)=>e.jsxs("div",{className:"flex items-center gap-2",children:[f.status==="good"&&e.jsx(gt,{className:"w-5 h-5 text-green-600"}),f.status==="warning"&&e.jsx(Tr,{className:"w-5 h-5 text-yellow-600"}),f.status==="error"&&e.jsx(eu,{className:"w-5 h-5 text-red-600"}),e.jsx("span",{className:"text-sm text-gray-700",children:f.label})]},m))}),e.jsx("div",{className:"mt-4 pt-4 border-t border-gray-200",children:e.jsxs("p",{className:"text-xs text-gray-600",children:[o>=80&&"Uitstekend! Je content is goed geoptimaliseerd voor zoekmachines.",o>=60&&o<80&&"Goed bezig! Er zijn nog wat verbeterpunten.",o<60&&"Er is ruimte voor verbetering. Volg de aanbevelingen hierboven."]})})]})}function BK(){const[t,n]=D.useState(null),[r,i]=D.useState(!1),[s,a]=D.useState({title:"",slug:"",excerpt:"",content:"",category:"AI",image_url:"",author:"48-7 Team",read_time:"5 min",published:!1,published_date:"",meta_description:"",meta_keywords:"",canonical_url:""}),o=v=>{a({...s,title:v,slug:v.toLowerCase().replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")})},c=Wt(),{data:d=[],isLoading:h}=Fe({queryKey:["blog"],queryFn:()=>ce.entities.BlogPost.list("-created_date")}),f=Me({mutationFn:v=>ce.entities.BlogPost.create(v),onSuccess:()=>{c.invalidateQueries({queryKey:["blog"]}),g()}}),m=Me({mutationFn:({id:v,data:x})=>ce.entities.BlogPost.update(v,x),onSuccess:()=>{c.invalidateQueries({queryKey:["blog"]}),g()}}),p=Me({mutationFn:v=>ce.entities.BlogPost.delete(v),onSuccess:()=>{c.invalidateQueries({queryKey:["blog"]})}}),g=()=>{n(null),i(!1),a({title:"",slug:"",excerpt:"",content:"",category:"AI",image_url:"",author:"48-7 Team",read_time:"5 min",published:!1,published_date:"",meta_description:"",meta_keywords:"",canonical_url:""})},y=v=>{n(v),a(v)},j=v=>{v.preventDefault();const x={...s};x.published&&!x.published_date&&(x.published_date=new Date().toISOString().split("T")[0]),t?m.mutate({id:t.id,data:x}):f.mutate(x)};return t!==null?e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs("div",{className:"mb-6 flex items-center justify-between",children:[e.jsxs(ae,{variant:"outline",onClick:g,className:"gap-2",children:[e.jsx(ht,{className:"w-4 h-4"}),"Terug naar overzicht"]}),e.jsx("div",{className:"flex gap-2",children:e.jsx(ae,{variant:r?"default":"outline",onClick:()=>i(!r),children:r?"Bewerken":"Preview"})})]}),r?e.jsx("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:e.jsxs("div",{className:"max-w-3xl mx-auto",children:[s.image_url&&e.jsx("img",{src:s.image_url,alt:s.title,className:"w-full h-96 object-cover rounded-xl mb-8"}),e.jsxs("div",{className:"flex items-center gap-4 mb-6 text-sm text-gray-600",children:[e.jsx("span",{className:"px-3 py-1 bg-orange-100 text-orange-800 rounded-full",children:s.category}),e.jsx("span",{children:s.author}),e.jsx("span",{children:"•"}),e.jsx("span",{children:s.read_time}),s.published_date&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"•"}),e.jsx("span",{children:new Date(s.published_date).toLocaleDateString("nl-NL")})]})]}),e.jsx("h1",{className:"text-5xl font-bold text-gray-900 mb-6",children:s.title||"Titel van het artikel"}),e.jsx("p",{className:"text-xl text-gray-600 mb-8",children:s.excerpt||"Samenvatting van het artikel..."}),e.jsx("div",{className:"prose prose-lg max-w-none",dangerouslySetInnerHTML:{__html:s.content||"<p>Je content verschijnt hier...</p>"}})]})}):e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-8",children:t!=null&&t.id?"Blog Post Bewerken":"Nieuwe Blog Post"}),e.jsxs("form",{onSubmit:j,className:"space-y-6",children:[e.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Titel *"}),e.jsx(me,{required:!0,value:s.title,onChange:v=>o(v.target.value),placeholder:"De toekomst van AI"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Slug (URL) *"}),e.jsx(me,{required:!0,value:s.slug,onChange:v=>a({...s,slug:v.target.value}),placeholder:"de-toekomst-van-ai"}),e.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Slug wordt automatisch gegenereerd o.b.v. titel"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Samenvatting *"}),e.jsx(me,{required:!0,value:s.excerpt,onChange:v=>a({...s,excerpt:v.target.value}),placeholder:"Een korte samenvatting van het artikel..."})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Content *"}),e.jsx("p",{className:"text-xs text-gray-500 mb-2",children:"Volledige inhoud van het artikel"}),e.jsx(es,{value:s.content,onChange:v=>a({...s,content:v}),placeholder:"Schrijf je blog artikel... Gebruik de toolbar voor opmaak, voeg afbeeldingen toe, etc."})]}),e.jsxs("div",{className:"grid md:grid-cols-3 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Categorie *"}),e.jsxs(Ji,{value:s.category,onValueChange:v=>a({...s,category:v}),children:[e.jsx(wi,{children:e.jsx(Zi,{})}),e.jsxs(Ni,{children:[e.jsx(St,{value:"AI",children:"AI"}),e.jsx(St,{value:"Technologie",children:"Technologie"}),e.jsx(St,{value:"Training",children:"Training"}),e.jsx(St,{value:"Case Study",children:"Case Study"}),e.jsx(St,{value:"Nieuws",children:"Nieuws"})]})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Auteur"}),e.jsx(me,{value:s.author,onChange:v=>a({...s,author:v.target.value}),placeholder:"48-7 Team"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Leestijd"}),e.jsx(me,{value:s.read_time,onChange:v=>a({...s,read_time:v.target.value}),placeholder:"5 min"})]})]}),e.jsx(na,{value:s.image_url,onChange:v=>a({...s,image_url:v}),label:"Featured Image",recommendedSize:"1200x630px"}),e.jsxs("div",{className:"flex items-center gap-6",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("input",{type:"checkbox",id:"published",checked:s.published,onChange:v=>a({...s,published:v.target.checked}),className:"w-4 h-4"}),e.jsx("label",{htmlFor:"published",className:"text-sm font-medium text-gray-700",children:"Publiceren"})]}),s.published&&e.jsx("div",{children:e.jsx(me,{type:"date",value:s.published_date,onChange:v=>a({...s,published_date:v.target.value}),placeholder:"Publicatiedatum"})})]}),e.jsxs("div",{className:"border-t pt-6",children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-4",children:"SEO Instellingen"}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Meta Description (120-160 karakters)"}),e.jsx("textarea",{value:s.meta_description||"",onChange:v=>a({...s,meta_description:v.target.value}),placeholder:"Korte beschrijving voor zoekmachines...",rows:3,maxLength:160,className:"w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent"}),e.jsxs("p",{className:"text-xs text-gray-500 mt-1",children:[(s.meta_description||"").length,"/160 karakters"]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Meta Keywords (komma gescheiden)"}),e.jsx(me,{value:s.meta_keywords||"",onChange:v=>a({...s,meta_keywords:v.target.value}),placeholder:"AI, machine learning, automatisering"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Canonical URL (optioneel)"}),e.jsx(me,{value:s.canonical_url||"",onChange:v=>a({...s,canonical_url:v.target.value}),placeholder:"https://48-7.nl/blog/origineel-artikel"}),e.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Gebruik dit alleen bij duplicate content"})]})]}),e.jsx("div",{children:e.jsx(LK,{title:s.title,content:s.content,metaDescription:s.meta_description,metaKeywords:s.meta_keywords,slug:s.slug})})]})]}),e.jsxs("div",{className:"flex gap-4 pt-6",children:[e.jsxs(ae,{type:"submit",className:"flex-1 gap-2",children:[e.jsx(Sn,{className:"w-4 h-4"}),t?"Bijwerken":"Aanmaken"]}),e.jsx(ae,{type:"button",variant:"outline",onClick:g,children:"Annuleren"})]})]})]})]})}):e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs("div",{className:"flex items-center justify-between mb-8",children:[e.jsxs("div",{children:[e.jsxs(de,{to:se("AdminDashboard"),className:"text-blue-600 hover:text-blue-700 mb-2 inline-flex items-center gap-1",children:[e.jsx(ht,{className:"w-4 h-4"}),"Terug naar dashboard"]}),e.jsx("h1",{className:"text-4xl font-bold text-gray-900",children:"Blog"})]}),e.jsxs(ae,{onClick:()=>n({}),children:[e.jsx(Pt,{className:"w-5 h-5 mr-2"}),"Nieuw Blog Post"]})]}),h?e.jsx("div",{className:"text-center py-12",children:e.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:d.map(v=>e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"bg-white rounded-xl p-6 border border-gray-200 hover:shadow-lg transition-shadow",children:[e.jsxs("div",{className:"flex items-start justify-between mb-4",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-lg text-gray-900 mb-1",children:v.title}),e.jsx("p",{className:"text-sm text-gray-600 line-clamp-2",children:v.excerpt}),e.jsxs("div",{className:"flex gap-2 mt-2",children:[e.jsx("span",{className:"inline-block px-2 py-1 bg-orange-100 text-orange-800 text-xs rounded",children:v.category}),e.jsx("span",{className:"inline-block px-2 py-1 bg-gray-100 text-gray-800 text-xs rounded",children:v.read_time})]})]}),v.published?e.jsx("span",{className:"px-2 py-1 bg-green-100 text-green-800 text-xs rounded",children:"Live"}):e.jsx("span",{className:"px-2 py-1 bg-gray-100 text-gray-800 text-xs rounded",children:"Concept"})]}),e.jsxs("div",{className:"flex gap-2 mt-4",children:[e.jsxs(ae,{size:"sm",variant:"outline",onClick:()=>y(v),className:"flex-1",children:[e.jsx(Pn,{className:"w-4 h-4 mr-1"}),"Bewerk"]}),e.jsx(ae,{size:"sm",variant:"ghost",onClick:()=>{confirm("Weet je zeker dat je dit artikel wilt verwijderen?")&&p.mutate(v.id)},children:e.jsx(wt,{className:"w-4 h-4"})})]})]},v.id))})]})})}function zK(){var v;const[t,n]=D.useState(null),[r,i]=D.useState({client_name:"",slug:"",logo_url:"",industry:"",case_type:"consultancy",challenge:"",solution:"",results:[],quote:"",quote_author:"",quote_role:"",tags:[],featured_on_homepage:!1,homepage_usp:"",homepage_text:"",published:!1,sort_order:0}),s=Wt(),{data:a=[],isLoading:o}=Fe({queryKey:["cases"],queryFn:()=>ce.entities.CaseStudy.list("-created_date")}),c=Me({mutationFn:x=>ce.entities.CaseStudy.create(x),onSuccess:()=>{s.invalidateQueries({queryKey:["cases"]}),f()}}),d=Me({mutationFn:({id:x,data:N})=>ce.entities.CaseStudy.update(x,N),onSuccess:()=>{s.invalidateQueries({queryKey:["cases"]}),f()}}),h=Me({mutationFn:x=>ce.entities.CaseStudy.delete(x),onSuccess:()=>{s.invalidateQueries({queryKey:["cases"]})}}),f=()=>{n(null),i({client_name:"",slug:"",featured_image_url:"",industry:"",case_type:"consultancy",challenge:"",solution:"",results:[],quote:"",quote_author:"",quote_role:"",tags:[],featured_on_homepage:!1,homepage_usp:"",homepage_text:"",published:!1,sort_order:0})},m=x=>{n(x),i(x)},p=x=>{x.preventDefault(),t?d.mutate({id:t.id,data:r}):c.mutate(r)},g=()=>{i({...r,results:[...r.results,{value:"",label:""}]})},y=(x,N,w)=>{const k=[...r.results];k[x][N]=w,i({...r,results:k})},j=x=>{i({...r,results:r.results.filter((N,w)=>w!==x)})};return t!==null?e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsx("div",{className:"mb-6",children:e.jsxs(ae,{variant:"outline",onClick:f,className:"gap-2",children:[e.jsx(ht,{className:"w-4 h-4"}),"Terug naar overzicht"]})}),e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-8",children:t?"Case Bewerken":"Nieuwe Case"}),e.jsxs("form",{onSubmit:p,className:"space-y-6",children:[e.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Klant Naam *"}),e.jsx(me,{required:!0,value:r.client_name,onChange:x=>i({...r,client_name:x.target.value}),placeholder:"Acme Corp"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Slug (URL) *"}),e.jsx(me,{required:!0,value:r.slug,onChange:x=>i({...r,slug:x.target.value}),placeholder:"acme-corp-ai-transformation"})]})]}),e.jsx(na,{value:r.featured_image_url,onChange:x=>i({...r,featured_image_url:x}),label:"Featured Afbeelding",recommendedSize:"1200x800px"}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Branche *"}),e.jsx(me,{required:!0,value:r.industry,onChange:x=>i({...r,industry:x.target.value}),placeholder:"Retail, Healthcare, etc."})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Case Type *"}),e.jsxs(Ji,{value:r.case_type,onValueChange:x=>i({...r,case_type:x}),children:[e.jsx(wi,{children:e.jsx(Zi,{})}),e.jsxs(Ni,{children:[e.jsx(St,{value:"consultancy",children:"Consultancy"}),e.jsx(St,{value:"training",children:"Training"}),e.jsx(St,{value:"development",children:"Development"})]})]})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Tags (komma gescheiden)"}),e.jsx(me,{value:((v=r.tags)==null?void 0:v.join(", "))||"",onChange:x=>i({...r,tags:x.target.value.split(",").map(N=>N.trim()).filter(Boolean)}),placeholder:"AI, Automatisering, CRM"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Challenge *"}),e.jsx(es,{value:r.challenge,onChange:x=>i({...r,challenge:x}),placeholder:"Beschrijf de uitdaging van de klant..."})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Solution *"}),e.jsx(es,{value:r.solution,onChange:x=>i({...r,solution:x}),placeholder:"Beschrijf de oplossing..."})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700",children:"Resultaten (3 blokjes)"}),e.jsxs(ae,{type:"button",onClick:g,size:"sm",variant:"outline",children:[e.jsx(Pt,{className:"w-4 h-4 mr-1"})," Resultaat"]})]}),e.jsx("div",{className:"space-y-4",children:r.results.map((x,N)=>e.jsxs("div",{className:"flex gap-4 items-start p-4 bg-gray-50 rounded-lg",children:[e.jsxs("div",{className:"flex-1 grid grid-cols-2 gap-4",children:[e.jsx(me,{placeholder:"Waarde (bijv. '5 AI use cases')",value:x.value,onChange:w=>y(N,"value",w.target.value)}),e.jsx(me,{placeholder:"Label (bijv. 'geïdentificeerd')",value:x.label,onChange:w=>y(N,"label",w.target.value)})]}),e.jsx(ae,{type:"button",variant:"ghost",size:"sm",onClick:()=>j(N),children:e.jsx(Ht,{className:"w-4 h-4"})})]},N))})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Quote"}),e.jsx(me,{value:r.quote,onChange:x=>i({...r,quote:x.target.value}),placeholder:"De quote van de klant..."})]}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[e.jsx(me,{placeholder:"Naam auteur",value:r.quote_author,onChange:x=>i({...r,quote_author:x.target.value})}),e.jsx(me,{placeholder:"Functie",value:r.quote_role,onChange:x=>i({...r,quote_role:x.target.value})})]})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("input",{type:"checkbox",id:"published",checked:r.published,onChange:x=>i({...r,published:x.target.checked}),className:"w-4 h-4"}),e.jsx("label",{htmlFor:"published",className:"text-sm font-medium text-gray-700",children:"Publiceren"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Titel *"}),e.jsx(me,{required:!0,value:r.homepage_usp||"",onChange:x=>i({...r,homepage_usp:x.target.value}),placeholder:"+85% snellere afhandeling"}),e.jsx("p",{className:"text-sm text-gray-500 mt-1",children:"Dit wordt getoond met een groen pijltje omhoog"})]}),e.jsxs("div",{className:"border-t pt-6 space-y-4",children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900",children:"Homepage weergave"}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("input",{type:"checkbox",id:"featured_on_homepage",checked:r.featured_on_homepage,onChange:x=>i({...r,featured_on_homepage:x.target.checked}),className:"w-4 h-4"}),e.jsx("label",{htmlFor:"featured_on_homepage",className:"text-sm font-medium text-gray-700",children:"Toon op homepage"})]}),r.featured_on_homepage&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Homepage tekst (korte beschrijving) *"}),e.jsx(me,{required:!0,value:r.homepage_text||"",onChange:x=>i({...r,homepage_text:x.target.value}),placeholder:"Handmatige verwerking van support tickets kostte het team 20+ uur per week"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Volgorde op homepage"}),e.jsx(me,{type:"number",value:r.sort_order,onChange:x=>i({...r,sort_order:parseInt(x.target.value)||0})})]})]})]}),e.jsxs("div",{className:"flex gap-4 pt-6",children:[e.jsxs(ae,{type:"submit",className:"flex-1 gap-2",children:[e.jsx(Sn,{className:"w-4 h-4"}),t?"Bijwerken":"Aanmaken"]}),e.jsx(ae,{type:"button",variant:"outline",onClick:f,children:"Annuleren"})]})]})]})]})}):e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs("div",{className:"flex items-center justify-between mb-8",children:[e.jsxs("div",{children:[e.jsxs(de,{to:se("AdminDashboard"),className:"text-blue-600 hover:text-blue-700 mb-2 inline-flex items-center gap-1",children:[e.jsx(ht,{className:"w-4 h-4"}),"Terug naar dashboard"]}),e.jsx("h1",{className:"text-4xl font-bold text-gray-900",children:"Cases"})]}),e.jsxs(ae,{onClick:()=>n({}),children:[e.jsx(Pt,{className:"w-5 h-5 mr-2"}),"Nieuwe Case"]})]}),o?e.jsx("div",{className:"text-center py-12",children:e.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:a.map(x=>e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"bg-white rounded-xl p-6 border border-gray-200 hover:shadow-lg transition-shadow",children:[e.jsxs("div",{className:"flex items-start justify-between mb-4",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-lg text-gray-900 mb-1",children:x.client_name}),e.jsx("p",{className:"text-sm text-gray-600",children:x.industry}),e.jsx("span",{className:"inline-block px-2 py-1 bg-blue-100 text-blue-800 text-xs rounded mt-2",children:x.case_type})]}),x.published?e.jsx("span",{className:"px-2 py-1 bg-green-100 text-green-800 text-xs rounded",children:"Gepubliceerd"}):e.jsx("span",{className:"px-2 py-1 bg-gray-100 text-gray-800 text-xs rounded",children:"Concept"})]}),e.jsxs("div",{className:"flex gap-2 mt-4",children:[e.jsxs(ae,{size:"sm",variant:"outline",onClick:()=>m(x),className:"flex-1",children:[e.jsx(Pn,{className:"w-4 h-4 mr-1"}),"Bewerk"]}),e.jsx(ae,{size:"sm",variant:"ghost",onClick:()=>{confirm("Weet je zeker dat je deze case wilt verwijderen?")&&h.mutate(x.id)},children:e.jsx(wt,{className:"w-4 h-4"})})]})]},x.id))})]})})}var rv={exports:{}},iv,cS;function qK(){if(cS)return iv;cS=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return iv=t,iv}var sv,uS;function VK(){if(uS)return sv;uS=1;var t=qK();function n(){}function r(){}return r.resetWarningCache=n,sv=function(){function i(o,c,d,h,f,m){if(m!==t){var p=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 p.name="Invariant Violation",p}}i.isRequired=i;function s(){return i}var a={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:s,element:i,elementType:i,instanceOf:s,node:i,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:r,resetWarningCache:n};return a.PropTypes=a,a},sv}var dS;function UK(){return dS||(dS=1,rv.exports=VK()()),rv.exports}var $K=UK();const Vt=_i($K);var av,hS;function HK(){if(hS)return av;hS=1;function t(c){return c&&typeof c=="object"&&"default"in c?c.default:c}var n=_u(),r=t(n);function i(c,d,h){return d in c?Object.defineProperty(c,d,{value:h,enumerable:!0,configurable:!0,writable:!0}):c[d]=h,c}function s(c,d){c.prototype=Object.create(d.prototype),c.prototype.constructor=c,c.__proto__=d}var a=!!(typeof window<"u"&&window.document&&window.document.createElement);function o(c,d,h){if(typeof c!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof d!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof h<"u"&&typeof h!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function f(m){return m.displayName||m.name||"Component"}return function(p){if(typeof p!="function")throw new Error("Expected WrappedComponent to be a React component.");var g=[],y;function j(){y=c(g.map(function(x){return x.props})),v.canUseDOM?d(y):h&&(y=h(y))}var v=(function(x){s(N,x);function N(){return x.apply(this,arguments)||this}N.peek=function(){return y},N.rewind=function(){if(N.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var A=y;return y=void 0,g=[],A};var w=N.prototype;return w.UNSAFE_componentWillMount=function(){g.push(this),j()},w.componentDidUpdate=function(){j()},w.componentWillUnmount=function(){var A=g.indexOf(this);g.splice(A,1),j()},w.render=function(){return r.createElement(p,this.props)},N})(n.PureComponent);return i(v,"displayName","SideEffect("+f(p)+")"),i(v,"canUseDOM",a),v}}return av=o,av}var WK=HK();const KK=_i(WK);var ov,fS;function GK(){if(fS)return ov;fS=1;var t=typeof Element<"u",n=typeof Map=="function",r=typeof Set=="function",i=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function s(a,o){if(a===o)return!0;if(a&&o&&typeof a=="object"&&typeof o=="object"){if(a.constructor!==o.constructor)return!1;var c,d,h;if(Array.isArray(a)){if(c=a.length,c!=o.length)return!1;for(d=c;d--!==0;)if(!s(a[d],o[d]))return!1;return!0}var f;if(n&&a instanceof Map&&o instanceof Map){if(a.size!==o.size)return!1;for(f=a.entries();!(d=f.next()).done;)if(!o.has(d.value[0]))return!1;for(f=a.entries();!(d=f.next()).done;)if(!s(d.value[1],o.get(d.value[0])))return!1;return!0}if(r&&a instanceof Set&&o instanceof Set){if(a.size!==o.size)return!1;for(f=a.entries();!(d=f.next()).done;)if(!o.has(d.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(a)&&ArrayBuffer.isView(o)){if(c=a.length,c!=o.length)return!1;for(d=c;d--!==0;)if(a[d]!==o[d])return!1;return!0}if(a.constructor===RegExp)return a.source===o.source&&a.flags===o.flags;if(a.valueOf!==Object.prototype.valueOf&&typeof a.valueOf=="function"&&typeof o.valueOf=="function")return a.valueOf()===o.valueOf();if(a.toString!==Object.prototype.toString&&typeof a.toString=="function"&&typeof o.toString=="function")return a.toString()===o.toString();if(h=Object.keys(a),c=h.length,c!==Object.keys(o).length)return!1;for(d=c;d--!==0;)if(!Object.prototype.hasOwnProperty.call(o,h[d]))return!1;if(t&&a instanceof Element)return!1;for(d=c;d--!==0;)if(!((h[d]==="_owner"||h[d]==="__v"||h[d]==="__o")&&a.$$typeof)&&!s(a[h[d]],o[h[d]]))return!1;return!0}return a!==a&&o!==o}return ov=function(o,c){try{return s(o,c)}catch(d){if((d.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw d}},ov}var QK=GK();const YK=_i(QK);/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var lv,mS;function XK(){if(mS)return lv;mS=1;var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function s(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},c=0;c<10;c++)o["_"+String.fromCharCode(c)]=c;var d=Object.getOwnPropertyNames(o).map(function(f){return o[f]});if(d.join("")!=="0123456789")return!1;var h={};return"abcdefghijklmnopqrst".split("").forEach(function(f){h[f]=f}),Object.keys(Object.assign({},h)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return lv=s()?Object.assign:function(a,o){for(var c,d=i(a),h,f=1;f<arguments.length;f++){c=Object(arguments[f]);for(var m in c)n.call(c,m)&&(d[m]=c[m]);if(t){h=t(c);for(var p=0;p<h.length;p++)r.call(c,h[p])&&(d[h[p]]=c[h[p]])}}return d},lv}var JK=XK();const ZK=_i(JK);var Va={BODY:"bodyAttributes",HTML:"htmlAttributes",TITLE:"titleAttributes"},st={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"};Object.keys(st).map(function(t){return st[t]});var Ut={CHARSET:"charset",CSS_TEXT:"cssText",HREF:"href",HTTPEQUIV:"http-equiv",INNER_HTML:"innerHTML",ITEM_PROP:"itemprop",NAME:"name",PROPERTY:"property",REL:"rel",SRC:"src",TARGET:"target"},af={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},vu={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate"},eG=Object.keys(af).reduce(function(t,n){return t[af[n]]=n,t},{}),tG=[st.NOSCRIPT,st.SCRIPT,st.STYLE],Wr="data-react-helmet",nG=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},rG=function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")},iG=(function(){function t(n,r){for(var i=0;i<r.length;i++){var s=r[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(n,s.key,s)}}return function(n,r,i){return r&&t(n.prototype,r),i&&t(n,i),n}})(),Yn=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},sG=function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n)},pS=function(t,n){var r={};for(var i in t)n.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i]);return r},aG=function(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:t},I0=function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return r===!1?String(n):String(n).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},oG=function(n){var r=Yo(n,st.TITLE),i=Yo(n,vu.TITLE_TEMPLATE);if(i&&r)return i.replace(/%s/g,function(){return Array.isArray(r)?r.join(""):r});var s=Yo(n,vu.DEFAULT_TITLE);return r||s||void 0},lG=function(n){return Yo(n,vu.ON_CHANGE_CLIENT_STATE)||function(){}},cv=function(n,r){return r.filter(function(i){return typeof i[n]<"u"}).map(function(i){return i[n]}).reduce(function(i,s){return Yn({},i,s)},{})},cG=function(n,r){return r.filter(function(i){return typeof i[st.BASE]<"u"}).map(function(i){return i[st.BASE]}).reverse().reduce(function(i,s){if(!i.length)for(var a=Object.keys(s),o=0;o<a.length;o++){var c=a[o],d=c.toLowerCase();if(n.indexOf(d)!==-1&&s[d])return i.concat(s)}return i},[])},Sc=function(n,r,i){var s={};return i.filter(function(a){return Array.isArray(a[n])?!0:(typeof a[n]<"u"&&fG("Helmet: "+n+' should be of type "Array". Instead found type "'+nG(a[n])+'"'),!1)}).map(function(a){return a[n]}).reverse().reduce(function(a,o){var c={};o.filter(function(p){for(var g=void 0,y=Object.keys(p),j=0;j<y.length;j++){var v=y[j],x=v.toLowerCase();r.indexOf(x)!==-1&&!(g===Ut.REL&&p[g].toLowerCase()==="canonical")&&!(x===Ut.REL&&p[x].toLowerCase()==="stylesheet")&&(g=x),r.indexOf(v)!==-1&&(v===Ut.INNER_HTML||v===Ut.CSS_TEXT||v===Ut.ITEM_PROP)&&(g=v)}if(!g||!p[g])return!1;var N=p[g].toLowerCase();return s[g]||(s[g]={}),c[g]||(c[g]={}),s[g][N]?!1:(c[g][N]=!0,!0)}).reverse().forEach(function(p){return a.push(p)});for(var d=Object.keys(c),h=0;h<d.length;h++){var f=d[h],m=ZK({},s[f],c[f]);s[f]=m}return a},[]).reverse()},Yo=function(n,r){for(var i=n.length-1;i>=0;i--){var s=n[i];if(s.hasOwnProperty(r))return s[r]}return null},uG=function(n){return{baseTag:cG([Ut.HREF,Ut.TARGET],n),bodyAttributes:cv(Va.BODY,n),defer:Yo(n,vu.DEFER),encode:Yo(n,vu.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:cv(Va.HTML,n),linkTags:Sc(st.LINK,[Ut.REL,Ut.HREF],n),metaTags:Sc(st.META,[Ut.NAME,Ut.CHARSET,Ut.HTTPEQUIV,Ut.PROPERTY,Ut.ITEM_PROP],n),noscriptTags:Sc(st.NOSCRIPT,[Ut.INNER_HTML],n),onChangeClientState:lG(n),scriptTags:Sc(st.SCRIPT,[Ut.SRC,Ut.INNER_HTML],n),styleTags:Sc(st.STYLE,[Ut.CSS_TEXT],n),title:oG(n),titleAttributes:cv(Va.TITLE,n)}},R0=(function(){var t=Date.now();return function(n){var r=Date.now();r-t>16?(t=r,n(r)):setTimeout(function(){R0(n)},0)}})(),gS=function(n){return clearTimeout(n)},dG=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||R0:global.requestAnimationFrame||R0,hG=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||gS:global.cancelAnimationFrame||gS,fG=function(n){return console&&typeof console.warn=="function"&&console.warn(n)},Ac=null,mG=function(n){Ac&&hG(Ac),n.defer?Ac=dG(function(){xS(n,function(){Ac=null})}):(xS(n),Ac=null)},xS=function(n,r){var i=n.baseTag,s=n.bodyAttributes,a=n.htmlAttributes,o=n.linkTags,c=n.metaTags,d=n.noscriptTags,h=n.onChangeClientState,f=n.scriptTags,m=n.styleTags,p=n.title,g=n.titleAttributes;F0(st.BODY,s),F0(st.HTML,a),pG(p,g);var y={baseTag:Ro(st.BASE,i),linkTags:Ro(st.LINK,o),metaTags:Ro(st.META,c),noscriptTags:Ro(st.NOSCRIPT,d),scriptTags:Ro(st.SCRIPT,f),styleTags:Ro(st.STYLE,m)},j={},v={};Object.keys(y).forEach(function(x){var N=y[x],w=N.newTags,k=N.oldTags;w.length&&(j[x]=w),k.length&&(v[x]=y[x].oldTags)}),r&&r(),h(n,j,v)},ST=function(n){return Array.isArray(n)?n.join(""):n},pG=function(n,r){typeof n<"u"&&document.title!==n&&(document.title=ST(n)),F0(st.TITLE,r)},F0=function(n,r){var i=document.getElementsByTagName(n)[0];if(i){for(var s=i.getAttribute(Wr),a=s?s.split(","):[],o=[].concat(a),c=Object.keys(r),d=0;d<c.length;d++){var h=c[d],f=r[h]||"";i.getAttribute(h)!==f&&i.setAttribute(h,f),a.indexOf(h)===-1&&a.push(h);var m=o.indexOf(h);m!==-1&&o.splice(m,1)}for(var p=o.length-1;p>=0;p--)i.removeAttribute(o[p]);a.length===o.length?i.removeAttribute(Wr):i.getAttribute(Wr)!==c.join(",")&&i.setAttribute(Wr,c.join(","))}},Ro=function(n,r){var i=document.head||document.querySelector(st.HEAD),s=i.querySelectorAll(n+"["+Wr+"]"),a=Array.prototype.slice.call(s),o=[],c=void 0;return r&&r.length&&r.forEach(function(d){var h=document.createElement(n);for(var f in d)if(d.hasOwnProperty(f))if(f===Ut.INNER_HTML)h.innerHTML=d.innerHTML;else if(f===Ut.CSS_TEXT)h.styleSheet?h.styleSheet.cssText=d.cssText:h.appendChild(document.createTextNode(d.cssText));else{var m=typeof d[f]>"u"?"":d[f];h.setAttribute(f,m)}h.setAttribute(Wr,"true"),a.some(function(p,g){return c=g,h.isEqualNode(p)})?a.splice(c,1):o.push(h)}),a.forEach(function(d){return d.parentNode.removeChild(d)}),o.forEach(function(d){return i.appendChild(d)}),{oldTags:a,newTags:o}},AT=function(n){return Object.keys(n).reduce(function(r,i){var s=typeof n[i]<"u"?i+'="'+n[i]+'"':""+i;return r?r+" "+s:s},"")},gG=function(n,r,i,s){var a=AT(i),o=ST(r);return a?"<"+n+" "+Wr+'="true" '+a+">"+I0(o,s)+"</"+n+">":"<"+n+" "+Wr+'="true">'+I0(o,s)+"</"+n+">"},xG=function(n,r,i){return r.reduce(function(s,a){var o=Object.keys(a).filter(function(h){return!(h===Ut.INNER_HTML||h===Ut.CSS_TEXT)}).reduce(function(h,f){var m=typeof a[f]>"u"?f:f+'="'+I0(a[f],i)+'"';return h?h+" "+m:m},""),c=a.innerHTML||a.cssText||"",d=tG.indexOf(n)===-1;return s+"<"+n+" "+Wr+'="true" '+o+(d?"/>":">"+c+"</"+n+">")},"")},CT=function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(n).reduce(function(i,s){return i[af[s]||s]=n[s],i},r)},vG=function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(n).reduce(function(i,s){return i[eG[s]||s]=n[s],i},r)},yG=function(n,r,i){var s,a=(s={key:r},s[Wr]=!0,s),o=CT(i,a);return[Ot.createElement(st.TITLE,o,r)]},bG=function(n,r){return r.map(function(i,s){var a,o=(a={key:s},a[Wr]=!0,a);return Object.keys(i).forEach(function(c){var d=af[c]||c;if(d===Ut.INNER_HTML||d===Ut.CSS_TEXT){var h=i.innerHTML||i.cssText;o.dangerouslySetInnerHTML={__html:h}}else o[d]=i[c]}),Ot.createElement(n,o)})},Fi=function(n,r,i){switch(n){case st.TITLE:return{toComponent:function(){return yG(n,r.title,r.titleAttributes)},toString:function(){return gG(n,r.title,r.titleAttributes,i)}};case Va.BODY:case Va.HTML:return{toComponent:function(){return CT(r)},toString:function(){return AT(r)}};default:return{toComponent:function(){return bG(n,r)},toString:function(){return xG(n,r,i)}}}},ET=function(n){var r=n.baseTag,i=n.bodyAttributes,s=n.encode,a=n.htmlAttributes,o=n.linkTags,c=n.metaTags,d=n.noscriptTags,h=n.scriptTags,f=n.styleTags,m=n.title,p=m===void 0?"":m,g=n.titleAttributes;return{base:Fi(st.BASE,r,s),bodyAttributes:Fi(Va.BODY,i,s),htmlAttributes:Fi(Va.HTML,a,s),link:Fi(st.LINK,o,s),meta:Fi(st.META,c,s),noscript:Fi(st.NOSCRIPT,d,s),script:Fi(st.SCRIPT,h,s),style:Fi(st.STYLE,f,s),title:Fi(st.TITLE,{title:p,titleAttributes:g},s)}},jG=function(n){var r,i;return i=r=(function(s){sG(a,s);function a(){return rG(this,a),aG(this,s.apply(this,arguments))}return a.prototype.shouldComponentUpdate=function(c){return!YK(this.props,c)},a.prototype.mapNestedChildrenToProps=function(c,d){if(!d)return null;switch(c.type){case st.SCRIPT:case st.NOSCRIPT:return{innerHTML:d};case st.STYLE:return{cssText:d}}throw new Error("<"+c.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},a.prototype.flattenArrayTypeChildren=function(c){var d,h=c.child,f=c.arrayTypeChildren,m=c.newChildProps,p=c.nestedChildren;return Yn({},f,(d={},d[h.type]=[].concat(f[h.type]||[],[Yn({},m,this.mapNestedChildrenToProps(h,p))]),d))},a.prototype.mapObjectTypeChildren=function(c){var d,h,f=c.child,m=c.newProps,p=c.newChildProps,g=c.nestedChildren;switch(f.type){case st.TITLE:return Yn({},m,(d={},d[f.type]=g,d.titleAttributes=Yn({},p),d));case st.BODY:return Yn({},m,{bodyAttributes:Yn({},p)});case st.HTML:return Yn({},m,{htmlAttributes:Yn({},p)})}return Yn({},m,(h={},h[f.type]=Yn({},p),h))},a.prototype.mapArrayTypeChildrenToProps=function(c,d){var h=Yn({},d);return Object.keys(c).forEach(function(f){var m;h=Yn({},h,(m={},m[f]=c[f],m))}),h},a.prototype.warnOnInvalidChildren=function(c,d){return!0},a.prototype.mapChildrenToProps=function(c,d){var h=this,f={};return Ot.Children.forEach(c,function(m){if(!(!m||!m.props)){var p=m.props,g=p.children,y=pS(p,["children"]),j=vG(y);switch(h.warnOnInvalidChildren(m,g),m.type){case st.LINK:case st.META:case st.NOSCRIPT:case st.SCRIPT:case st.STYLE:f=h.flattenArrayTypeChildren({child:m,arrayTypeChildren:f,newChildProps:j,nestedChildren:g});break;default:d=h.mapObjectTypeChildren({child:m,newProps:d,newChildProps:j,nestedChildren:g});break}}}),d=this.mapArrayTypeChildrenToProps(f,d),d},a.prototype.render=function(){var c=this.props,d=c.children,h=pS(c,["children"]),f=Yn({},h);return d&&(f=this.mapChildrenToProps(d,f)),Ot.createElement(n,f)},iG(a,null,[{key:"canUseDOM",set:function(c){n.canUseDOM=c}}]),a})(Ot.Component),r.propTypes={base:Vt.object,bodyAttributes:Vt.object,children:Vt.oneOfType([Vt.arrayOf(Vt.node),Vt.node]),defaultTitle:Vt.string,defer:Vt.bool,encodeSpecialCharacters:Vt.bool,htmlAttributes:Vt.object,link:Vt.arrayOf(Vt.object),meta:Vt.arrayOf(Vt.object),noscript:Vt.arrayOf(Vt.object),onChangeClientState:Vt.func,script:Vt.arrayOf(Vt.object),style:Vt.arrayOf(Vt.object),title:Vt.string,titleAttributes:Vt.object,titleTemplate:Vt.string},r.defaultProps={defer:!0,encodeSpecialCharacters:!0},r.peek=n.peek,r.rewind=function(){var s=n.rewind();return s||(s=ET({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),s},i},wG=function(){return null},NG=KK(uG,mG,ET)(wG),vl=jG(NG);vl.renderStatic=vl.rewind;function kG(){const t=_l(),[n,r]=D.useState(!1),[i,s]=D.useState(!0);if(D.useEffect(()=>{(async()=>{try{const d=await ce.auth.me();if((d==null?void 0:d.role)!=="admin"){t(se("Home"));return}r(!0)}catch{t(se("Home"))}finally{s(!1)}})()},[t]),i)return e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50 flex items-center justify-center",children:e.jsxs("div",{className:"text-center",children:[e.jsx(Vn,{className:"w-16 h-16 text-gray-400 mx-auto mb-4"}),e.jsx("p",{className:"text-gray-600",children:"Toegang controleren..."})]})});if(!n)return null;const a=[{title:"Cases",description:"Beheer klant case studies",icon:O1,link:se("AdminCases"),color:"from-blue-500 to-indigo-600"},{title:"Oplossingen",description:"Beheer AI oplossingen & producten",icon:Wi,link:se("AdminOplossingen"),color:"from-blue-600 to-cyan-600"},{title:"Vacatures",description:"Beheer open vacatures",icon:Js,link:se("AdminVacatures"),color:"from-purple-500 to-pink-600"},{title:"Trainingen",description:"Beheer trainingsaanbod",icon:pr,link:se("AdminTrainingen"),color:"from-green-500 to-emerald-600"},{title:"Blog",description:"Beheer blog artikelen",icon:$t,link:se("AdminBlog"),color:"from-orange-500 to-red-600"},{title:"Nieuws",description:"Beheer dagelijks AI nieuws",icon:U8,link:se("AdminNieuws"),color:"from-cyan-500 to-blue-600"},{title:"Reviews",description:"Beheer klantreviews",icon:ru,link:se("AdminReviews"),color:"from-yellow-500 to-orange-600"},{title:"Homepage",description:"Beheer homepage secties",icon:Ev,link:se("AdminHome"),color:"from-teal-500 to-cyan-600"},{title:"Team",description:"Beheer teamleden",icon:pn,link:se("AdminTeam"),color:"from-indigo-500 to-purple-600"},{title:"Nieuwsbrief",description:"Beheer nieuwsbrief abonnees",icon:yi,link:se("AdminNewsletterSubscribers"),color:"from-pink-500 to-rose-600"},{title:"Discovery Formulieren",description:"Bekijk discovery sessie aanvragen",icon:$t,link:se("AdminDiscoveryForms"),color:"from-violet-500 to-purple-600"},{title:"EU AI Act Checker",description:"Bekijk EU AI Act analyses",icon:$t,link:se("AdminEuAiActSubmissions"),color:"from-blue-500 to-cyan-600"},{title:"AI Impact Scans",description:"Bekijk AI Impact Scan resultaten",icon:$t,link:se("AdminImpactScans"),color:"from-emerald-500 to-green-600"},{title:"AI Quiz Resultaten",description:"Bekijk AI Quiz resultaten",icon:$t,link:se("AdminAIQuizSubmissions"),color:"from-amber-500 to-yellow-600"}],o=[{title:"Pagina Builder",description:"Bouw en bewerk pagina's",icon:O1,link:se("AdminPageBuilder"),color:"from-indigo-500 to-purple-600"},{title:"Prompt Library",description:"Beheer AI prompts",icon:$t,link:se("AdminPrompts"),color:"from-purple-500 to-pink-600"},{title:"Email Templates",description:"Beheer email templates",icon:yi,link:se("AdminEmailTemplates"),color:"from-blue-500 to-cyan-600"},{title:"SEO Tools",description:"Sitemap, robots.txt & SEO",icon:nu,link:se("AdminSEO"),color:"from-green-500 to-emerald-600"},{title:"Instellingen",description:"Categorieën & configuratie",icon:nu,link:se("AdminSettings"),color:"from-gray-500 to-slate-600"},{title:"Test Scans",description:"Test formulieren met één klik",icon:yD,link:se("AdminTestScans"),color:"from-red-500 to-orange-600"}];return e.jsxs(e.Fragment,{children:[e.jsx(vl,{children:e.jsx("meta",{name:"robots",content:"noindex, nofollow"})}),e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-gray-50 to-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs("div",{className:"mb-12 flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-4",children:"Content Management"}),e.jsx("p",{className:"text-xl text-gray-600",children:"Beheer al je website content op één plek"})]}),e.jsxs(de,{to:se("AdminHandleiding"),className:"inline-flex items-center gap-2 px-6 py-3 bg-blue-600 text-white font-semibold rounded-xl hover:bg-blue-700 transition-colors",children:[e.jsx(Ua,{className:"w-5 h-5"}),"Handleiding"]})]}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Content Beheer"}),e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6 mb-12",children:a.map((c,d)=>e.jsx(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:d*.1},children:e.jsxs(de,{to:c.link,className:"block bg-white rounded-2xl p-8 border-2 border-gray-100 hover:border-gray-200 hover:shadow-xl transition-all group",children:[e.jsx("div",{className:`w-16 h-16 bg-gradient-to-br ${c.color} rounded-2xl flex items-center justify-center mb-6 group-hover:scale-110 transition-transform`,children:e.jsx(c.icon,{className:"w-8 h-8 text-white"})}),e.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-2",children:c.title}),e.jsx("p",{className:"text-gray-600 mb-4",children:c.description}),e.jsxs("div",{className:"flex items-center gap-2 text-gray-900 font-semibold group-hover:gap-3 transition-all",children:["Beheren",e.jsx($e,{className:"w-5 h-5"})]})]})},c.title))}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Systeem Tools"}),e.jsx("div",{className:"grid md:grid-cols-2 gap-6 mb-12",children:o.map((c,d)=>e.jsx(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:(a.length+d)*.1},children:e.jsxs(de,{to:c.link,className:"block bg-white rounded-2xl p-8 border-2 border-gray-100 hover:border-gray-200 hover:shadow-xl transition-all group",children:[e.jsx("div",{className:`w-16 h-16 bg-gradient-to-br ${c.color} rounded-2xl flex items-center justify-center mb-6 group-hover:scale-110 transition-transform`,children:e.jsx(c.icon,{className:"w-8 h-8 text-white"})}),e.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-2",children:c.title}),e.jsx("p",{className:"text-gray-600 mb-4",children:c.description}),e.jsxs("div",{className:"flex items-center gap-2 text-gray-900 font-semibold group-hover:gap-3 transition-all",children:["Openen",e.jsx($e,{className:"w-5 h-5"})]})]})},c.title))}),e.jsxs("div",{className:"mt-16 grid grid-cols-2 md:grid-cols-5 gap-6",children:[e.jsxs("div",{className:"bg-white rounded-xl p-6 border border-gray-100",children:[e.jsx("p",{className:"text-sm text-gray-600 mb-1",children:"Total Cases"}),e.jsx("p",{className:"text-3xl font-bold text-gray-900",children:"12"})]}),e.jsxs("div",{className:"bg-white rounded-xl p-6 border border-gray-100",children:[e.jsx("p",{className:"text-sm text-gray-600 mb-1",children:"Vacatures"}),e.jsx("p",{className:"text-3xl font-bold text-gray-900",children:"5"})]}),e.jsxs("div",{className:"bg-white rounded-xl p-6 border border-gray-100",children:[e.jsx("p",{className:"text-sm text-gray-600 mb-1",children:"Trainingen"}),e.jsx("p",{className:"text-3xl font-bold text-gray-900",children:"18"})]}),e.jsxs("div",{className:"bg-white rounded-xl p-6 border border-gray-100",children:[e.jsx("p",{className:"text-sm text-gray-600 mb-1",children:"Blog Posts"}),e.jsx("p",{className:"text-3xl font-bold text-gray-900",children:"24"})]}),e.jsxs("div",{className:"bg-white rounded-xl p-6 border border-gray-100",children:[e.jsx("p",{className:"text-sm text-gray-600 mb-1",children:"Nieuws Items"}),e.jsx("p",{className:"text-3xl font-bold text-gray-900",children:"156"})]})]})]})})]})}const pt=D.forwardRef(({className:t,...n},r)=>e.jsx("textarea",{className:Yt("flex min-h-[120px] w-full bg-white px-4 py-3 text-base transition-colors placeholder:text-[#9CA3AF] focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50","border-b-2 border-gray-200 focus-visible:border-[#FAB868]","rounded-none resize-none",t),ref:r,...n}));pt.displayName="Textarea";const _G={lessThanXSeconds:{one:"minder dan een seconde",other:"minder dan {{count}} seconden"},xSeconds:{one:"1 seconde",other:"{{count}} seconden"},halfAMinute:"een halve minuut",lessThanXMinutes:{one:"minder dan een minuut",other:"minder dan {{count}} minuten"},xMinutes:{one:"een minuut",other:"{{count}} minuten"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} uur"},xHours:{one:"1 uur",other:"{{count}} uur"},xDays:{one:"1 dag",other:"{{count}} dagen"},aboutXWeeks:{one:"ongeveer 1 week",other:"ongeveer {{count}} weken"},xWeeks:{one:"1 week",other:"{{count}} weken"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maanden"},xMonths:{one:"1 maand",other:"{{count}} maanden"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer dan 1 jaar",other:"meer dan {{count}} jaar"},almostXYears:{one:"bijna 1 jaar",other:"bijna {{count}} jaar"}},SG=(t,n,r)=>{let i;const s=_G[t];return typeof s=="string"?i=s:n===1?i=s.one:i=s.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"over "+i:i+" geleden":i},AG={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"},CG={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},EG={full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},TG={date:Ko({formats:AG,defaultWidth:"full"}),time:Ko({formats:CG,defaultWidth:"full"}),dateTime:Ko({formats:EG,defaultWidth:"full"})},OG={lastWeek:"'afgelopen' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"},PG=(t,n,r,i)=>OG[t],DG={narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]},IG={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]},RG={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},FG={narrow:["Z","M","D","W","D","V","Z"],short:["zo","ma","di","wo","do","vr","za"],abbreviated:["zon","maa","din","woe","don","vri","zat"],wide:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},MG={narrow:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},abbreviated:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},wide:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"}},LG=(t,n)=>Number(t)+"e",BG={ordinalNumber:LG,era:oi({values:DG,defaultWidth:"wide"}),quarter:oi({values:IG,defaultWidth:"wide",argumentCallback:t=>t-1}),month:oi({values:RG,defaultWidth:"wide"}),day:oi({values:FG,defaultWidth:"wide"}),dayPeriod:oi({values:MG,defaultWidth:"wide"})},zG=/^(\d+)e?/i,qG=/\d+/i,VG={narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},UG={any:[/^v/,/^n/]},$G={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},HG={any:[/1/i,/2/i,/3/i,/4/i]},WG={narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i},KG={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:[/^jan/i,/^feb/i,/^m(r|a)/i,/^apr/i,/^mei/i,/^jun/i,/^jul/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i]},GG={narrow:/^[zmdwv]/i,short:/^(zo|ma|di|wo|do|vr|za)/i,abbreviated:/^(zon|maa|din|woe|don|vri|zat)/i,wide:/^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i},QG={narrow:[/^z/i,/^m/i,/^d/i,/^w/i,/^d/i,/^v/i,/^z/i],any:[/^zo/i,/^ma/i,/^di/i,/^wo/i,/^do/i,/^vr/i,/^za/i]},YG={any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},XG={any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^het middaguur/i,morning:/ochtend/i,afternoon:/middag/i,evening:/avond/i,night:/nacht/i}},JG={ordinalNumber:$E({matchPattern:zG,parsePattern:qG,valueCallback:t=>parseInt(t,10)}),era:li({matchPatterns:VG,defaultMatchWidth:"wide",parsePatterns:UG,defaultParseWidth:"any"}),quarter:li({matchPatterns:$G,defaultMatchWidth:"wide",parsePatterns:HG,defaultParseWidth:"any",valueCallback:t=>t+1}),month:li({matchPatterns:WG,defaultMatchWidth:"wide",parsePatterns:KG,defaultParseWidth:"any"}),day:li({matchPatterns:GG,defaultMatchWidth:"wide",parsePatterns:QG,defaultParseWidth:"any"}),dayPeriod:li({matchPatterns:YG,defaultMatchWidth:"any",parsePatterns:XG,defaultParseWidth:"any"})},Bs={code:"nl",formatDistance:SG,formatLong:TG,formatRelative:PG,localize:BG,match:JG,options:{weekStartsOn:1,firstWeekContainsDate:4}};function ZG(){var g,y,j,v;const[t,n]=D.useState(null),[r,i]=D.useState("all"),s=Wt(),{data:a}=Fe({queryKey:["current-user"],queryFn:()=>ce.auth.me()}),{data:o=[],isLoading:c}=Fe({queryKey:["discovery-submissions",r],queryFn:async()=>r==="all"?ce.entities.DiscoveryFormSubmission.list("-created_date"):ce.entities.DiscoveryFormSubmission.filter({status:r},"-created_date")}),d=Me({mutationFn:({id:x,status:N,notities:w})=>ce.entities.DiscoveryFormSubmission.update(x,{status:N,interne_notities:w}),onSuccess:()=>{s.invalidateQueries({queryKey:["discovery-submissions"]})}}),h=Me({mutationFn:x=>ce.entities.DiscoveryFormSubmission.delete(x),onSuccess:()=>{s.invalidateQueries({queryKey:["discovery-submissions"]}),n(null)}}),f=()=>{const x=["Datum","Bedrijf","Contactpersoon","Email","Telefoon","Sector","Medewerkers","Status","Urgentie","Budget"],N=o.map(S=>[jt(new Date(S.created_date),"dd-MM-yyyy HH:mm",{locale:Bs}),S.bedrijfsnaam||"",S.contactpersonen||"",S.email||"",S.telefoon||"",S.sector||"",S.aantal_medewerkers||"",S.status||"",S.urgentie||"",S.budget_range||""]),w=[x.join(","),...N.map(S=>S.map(E=>`"${E}"`).join(","))].join(`
`),k=new Blob([w],{type:"text/csv;charset=utf-8;"}),A=document.createElement("a");A.href=URL.createObjectURL(k),A.download=`discovery-scans-${jt(new Date,"yyyy-MM-dd")}.csv`,A.click()},m=x=>{var A,S,E,C;const N=`# Discovery Scan - ${x.bedrijfsnaam}
**Datum:** ${jt(new Date(x.created_date),"dd MMMM yyyy HH:mm",{locale:Bs})}
**Status:** ${x.status||"nieuw"}
---
## Bedrijfsgegevens
- **Bedrijfsnaam:** ${x.bedrijfsnaam||"-"}
- **Contactpersonen:** ${x.contactpersonen||"-"}
- **Functies:** ${x.functies||"-"}
- **Email:** ${x.email||"-"}
- **Telefoon:** ${x.telefoon||"-"}
- **Sector:** ${x.sector||"-"}
- **Aantal medewerkers:** ${x.aantal_medewerkers||"-"}
- **Omzet range:** ${x.omzet_range||"-"}
**Kernactiviteit:**
${x.kernactiviteit||"-"}
---
## Huidige Situatie
**TOP 3 Frustraties/Knelpunten:**
1. ${x.frustratie_1||"-"}
2. ${x.frustratie_2||"-"}
3. ${x.frustratie_3||"-"}
**Meest tijdrovende activiteit:**
${x.tijdrovende_activiteit||"-"}
**Tijdsbesteding per week:**
${x.tijdsbesteding_uren||"-"}
**Gemiste kansen:**
${x.gemiste_kansen||"-"}
---
## Systemen & Data
**Gebruikte systemen:**
${((A=x.gebruikte_systemen)==null?void 0:A.join(", "))||"-"}
**Systemen gekoppeld:**
${x.systemen_gekoppeld||"-"}
**Bedrijfskennis locatie:**
${((S=x.bedrijfskennis_locatie)==null?void 0:S.join(", "))||"-"}
**Informatie vindbaarheid:**
${x.informatie_vindbaarheid||"-"}
---
## AI-Readiness
**AI gebruik:**
${x.ai_gebruik||"-"}
**AI tools:**
${x.ai_tools_welke||"-"}
**AI ervaring:**
${x.ai_ervaring||"-"}
**Management houding:**
${x.management_houding||"-"}
**Medewerkers houding:**
${x.medewerkers_houding||"-"}
**AI zorgen:**
${x.ai_zorgen||"-"}
---
## Doelen & Verwachtingen
**Redenen contact:**
${((E=x.redenen_contact)==null?void 0:E.join(", "))||"-"}
**Succesvol resultaat (6-12 maanden):**
${x.succesvol_resultaat||"-"}
**Urgentie:**
${x.urgentie||"-"}
**Budget beschikbaar:**
${x.budget_beschikbaar||"-"}
**Budget range:**
${x.budget_range||"-"}
---
## Discovery Sessie
**Aanwezigen:**
${x.aanwezigen||"-"}
**Specifieke onderwerpen:**
${x.specifieke_onderwerpen||"-"}
**Te delen documenten:**
${x.te_delen_documenten||"-"}
${((C=x.geupload_documenten)==null?void 0:C.length)>0?`**Geüploade documenten:**
${x.geupload_documenten.map(B=>`- ${B}`).join(`
`)}`:""}
---
## Aanvullende Informatie
${x.overige_informatie||"-"}
---
## Interne Notities
${x.interne_notities||"-"}
---
*Gegenereerd op ${jt(new Date,"dd MMMM yyyy HH:mm",{locale:Bs})}*
`,w=new Blob([N],{type:"text/markdown;charset=utf-8;"}),k=document.createElement("a");k.href=URL.createObjectURL(w),k.download=`discovery-scan-${x.bedrijfsnaam.replace(/[^a-z0-9]/gi,"-").toLowerCase()}-${jt(new Date(x.created_date),"yyyy-MM-dd")}.md`,k.click()},p=x=>{confirm("Weet je zeker dat je deze inzending wilt verwijderen? Dit kan niet ongedaan worden gemaakt.")&&h.mutate(x)};return!a||a.role!=="admin"?e.jsx("div",{className:"min-h-screen bg-gray-50 flex items-center justify-center p-4",children:e.jsxs("div",{className:"bg-white rounded-xl shadow-lg p-8 text-center",children:[e.jsx("h2",{className:"text-2xl font-bold mb-4",children:"Geen toegang"}),e.jsx("p",{className:"text-gray-600",children:"Deze pagina is alleen toegankelijk voor admins."})]})}):c?e.jsx("div",{className:"min-h-screen bg-gray-50 flex items-center justify-center",children:e.jsx(R4,{className:"w-8 h-8 animate-spin text-[#FAB868]"})}):e.jsx("div",{className:"min-h-screen bg-gray-50 py-8",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4",children:[e.jsxs("div",{className:"mb-8",children:[e.jsx("h1",{className:"text-3xl font-bold mb-2",children:"Discovery Form Inzendingen"}),e.jsx("p",{className:"text-gray-600",children:"Bekijk en beheer ingevulde discovery scans"})]}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 mb-6",children:[e.jsxs("div",{className:"flex gap-2",children:[e.jsxs(ae,{variant:r==="all"?"default":"outline",onClick:()=>i("all"),children:["Alles (",o.length,")"]}),e.jsx(ae,{variant:r==="nieuw"?"default":"outline",onClick:()=>i("nieuw"),children:"Nieuw"}),e.jsx(ae,{variant:r==="bekeken"?"default":"outline",onClick:()=>i("bekeken"),children:"Bekeken"})]}),e.jsxs(ae,{onClick:f,variant:"outline",className:"sm:ml-auto",children:[e.jsx(yl,{className:"w-4 h-4 mr-2"}),"Export CSV"]})]}),e.jsx("div",{className:"grid gap-4",children:o.length===0?e.jsxs("div",{className:"bg-white rounded-xl shadow p-8 text-center",children:[e.jsx($t,{className:"w-12 h-12 text-gray-400 mx-auto mb-4"}),e.jsx("p",{className:"text-gray-600",children:"Nog geen discovery scans ontvangen"})]}):o.map(x=>e.jsx("div",{className:"bg-white rounded-xl shadow hover:shadow-lg transition-shadow p-6",children:e.jsxs("div",{className:"flex items-start justify-between",children:[e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[e.jsx("h3",{className:"text-xl font-bold",children:x.bedrijfsnaam}),e.jsx("span",{className:`px-3 py-1 rounded-full text-xs font-semibold ${x.status==="nieuw"?"bg-blue-100 text-blue-700":x.status==="bekeken"?"bg-yellow-100 text-yellow-700":x.status==="sessie_gepland"?"bg-green-100 text-green-700":"bg-gray-100 text-gray-700"}`,children:x.status||"nieuw"})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-2 text-sm text-gray-600 mb-4",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Xa,{className:"w-4 h-4"}),x.contactpersonen," (",x.functies||"Geen functie",")"]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(yi,{className:"w-4 h-4"}),x.email]}),x.telefoon&&e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(ry,{className:"w-4 h-4"}),x.telefoon]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Or,{className:"w-4 h-4"}),jt(new Date(x.created_date),"dd MMM yyyy HH:mm",{locale:Bs})]})]}),x.sector&&e.jsxs("p",{className:"text-sm text-gray-600 mb-2",children:[e.jsx("strong",{children:"Sector:"})," ",x.sector]}),x.urgentie&&e.jsxs("p",{className:"text-sm text-gray-600",children:[e.jsx("strong",{children:"Urgentie:"})," ",x.urgentie]})]}),e.jsxs(ae,{onClick:()=>n(x),size:"sm",variant:"outline",children:[e.jsx(qs,{className:"w-4 h-4 mr-2"}),"Bekijk Details"]})]})},x.id))}),t&&e.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-start justify-center p-4 z-[200] overflow-y-auto pt-24",children:e.jsxs("div",{className:"bg-white rounded-2xl max-w-4xl w-full my-8 max-h-[calc(100vh-8rem)] overflow-y-auto shadow-2xl",children:[e.jsxs("div",{className:"sticky top-0 bg-white border-b px-6 py-4 flex items-center justify-between",children:[e.jsx("h2",{className:"text-2xl font-bold",children:t.bedrijfsnaam}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs(ae,{variant:"outline",size:"sm",onClick:()=>m(t),children:[e.jsx(c8,{className:"w-4 h-4 mr-2"}),"Export MD"]}),e.jsxs(ae,{variant:"outline",size:"sm",onClick:()=>p(t.id),className:"text-red-600 hover:text-red-700 hover:bg-red-50",children:[e.jsx(wt,{className:"w-4 h-4 mr-2"}),"Verwijder"]}),e.jsx(ae,{variant:"ghost",size:"sm",onClick:()=>n(null),children:e.jsx(Ht,{className:"w-5 h-5"})})]})]}),e.jsxs("div",{className:"p-6 space-y-6",children:[e.jsxs("div",{className:"bg-gray-50 rounded-xl p-4",children:[e.jsx("label",{className:"block font-semibold mb-2",children:"Status"}),e.jsx("div",{className:"flex gap-2 mb-3",children:["nieuw","bekeken","sessie_gepland","afgerond"].map(x=>e.jsx(ae,{size:"sm",variant:t.status===x?"default":"outline",onClick:()=>{d.mutate({id:t.id,status:x,notities:t.interne_notities}),n({...t,status:x})},children:x},x))}),e.jsx("label",{className:"block font-semibold mb-2",children:"Interne Notities"}),e.jsx(pt,{value:t.interne_notities||"",onChange:x=>n({...t,interne_notities:x.target.value}),rows:3,placeholder:"Voeg interne notities toe..."}),e.jsx(ae,{size:"sm",className:"mt-2",onClick:()=>{d.mutate({id:t.id,status:t.status,notities:t.interne_notities})},children:"Opslaan"})]}),e.jsxs(ja,{title:"Bedrijfsgegevens",children:[e.jsx(xt,{label:"Bedrijfsnaam",value:t.bedrijfsnaam}),e.jsx(xt,{label:"Contactpersonen",value:t.contactpersonen}),e.jsx(xt,{label:"Functies",value:t.functies}),e.jsx(xt,{label:"Email",value:t.email}),e.jsx(xt,{label:"Telefoon",value:t.telefoon}),e.jsx(xt,{label:"Sector",value:t.sector}),e.jsx(xt,{label:"Aantal medewerkers",value:t.aantal_medewerkers}),e.jsx(xt,{label:"Omzet range",value:t.omzet_range}),e.jsx(xt,{label:"Kernactiviteit",value:t.kernactiviteit})]}),e.jsxs(ja,{title:"Huidige Situatie",children:[e.jsx(xt,{label:"Frustratie 1",value:t.frustratie_1}),e.jsx(xt,{label:"Frustratie 2",value:t.frustratie_2}),e.jsx(xt,{label:"Frustratie 3",value:t.frustratie_3}),e.jsx(xt,{label:"Tijdrovende activiteit",value:t.tijdrovende_activiteit}),e.jsx(xt,{label:"Tijdsbesteding",value:t.tijdsbesteding_uren}),e.jsx(xt,{label:"Gemiste kansen",value:t.gemiste_kansen})]}),e.jsxs(ja,{title:"Systemen & Data",children:[e.jsx(xt,{label:"Gebruikte systemen",value:(g=t.gebruikte_systemen)==null?void 0:g.join(", ")}),e.jsx(xt,{label:"Systemen gekoppeld",value:t.systemen_gekoppeld}),e.jsx(xt,{label:"Bedrijfskennis locatie",value:(y=t.bedrijfskennis_locatie)==null?void 0:y.join(", ")}),e.jsx(xt,{label:"Informatie vindbaarheid",value:t.informatie_vindbaarheid})]}),e.jsxs(ja,{title:"AI-Readiness",children:[e.jsx(xt,{label:"AI gebruik",value:t.ai_gebruik}),e.jsx(xt,{label:"AI tools",value:t.ai_tools_welke}),e.jsx(xt,{label:"AI ervaring",value:t.ai_ervaring}),e.jsx(xt,{label:"Management houding",value:t.management_houding}),e.jsx(xt,{label:"Medewerkers houding",value:t.medewerkers_houding}),e.jsx(xt,{label:"AI zorgen",value:t.ai_zorgen})]}),e.jsxs(ja,{title:"Doelen & Verwachtingen",children:[e.jsx(xt,{label:"Redenen contact",value:(j=t.redenen_contact)==null?void 0:j.join(", ")}),e.jsx(xt,{label:"Succesvol resultaat",value:t.succesvol_resultaat}),e.jsx(xt,{label:"Urgentie",value:t.urgentie}),e.jsx(xt,{label:"Budget beschikbaar",value:t.budget_beschikbaar}),e.jsx(xt,{label:"Budget range",value:t.budget_range})]}),e.jsxs(ja,{title:"Discovery Sessie",children:[e.jsx(xt,{label:"Aanwezigen",value:t.aanwezigen}),e.jsx(xt,{label:"Specifieke onderwerpen",value:t.specifieke_onderwerpen}),e.jsx(xt,{label:"Te delen documenten",value:t.te_delen_documenten}),((v=t.geupload_documenten)==null?void 0:v.length)>0&&e.jsxs("div",{children:[e.jsx("span",{className:"font-semibold text-sm text-gray-600",children:"Geüploade documenten:"}),e.jsx("div",{className:"mt-2 space-y-2",children:t.geupload_documenten.map((x,N)=>e.jsxs("a",{href:x,target:"_blank",rel:"noopener noreferrer",className:"block text-blue-600 hover:underline text-sm",children:["📎 ",x.split("/").pop()]},N))})]})]}),e.jsx(ja,{title:"Aanvullende Informatie",children:e.jsx(xt,{label:"Overige informatie",value:t.overige_informatie})})]})]})})]})})}function ja({title:t,children:n}){return e.jsxs("div",{className:"border-l-4 border-[#FAB868] pl-4",children:[e.jsx("h3",{className:"font-bold text-lg mb-3",children:t}),e.jsx("div",{className:"space-y-2",children:n})]})}function xt({label:t,value:n}){return!n||Array.isArray(n)&&n.length===0?null:e.jsxs("div",{children:[e.jsxs("span",{className:"font-semibold text-sm text-gray-600",children:[t,":"]}),e.jsx("p",{className:"text-gray-900 mt-1",children:n})]})}function eQ(){const t=Wt(),[n,r]=D.useState(null),[i,s]=D.useState({template_key:"",name:"",subject:"",body_html:"",description:"",available_placeholders:[],active:!0}),[a,o]=D.useState(!1),[c,d]=D.useState(!1),{data:h=[],isLoading:f}=Fe({queryKey:["email-templates"],queryFn:()=>ce.entities.EmailTemplate.list()}),m=Me({mutationFn:w=>ce.entities.EmailTemplate.create(w),onSuccess:()=>{t.invalidateQueries({queryKey:["email-templates"]}),v()}}),p=Me({mutationFn:({id:w,data:k})=>ce.entities.EmailTemplate.update(w,k),onSuccess:()=>{t.invalidateQueries({queryKey:["email-templates"]}),v()}}),g=Me({mutationFn:w=>ce.entities.EmailTemplate.delete(w),onSuccess:()=>{t.invalidateQueries({queryKey:["email-templates"]})}}),y=w=>{r(w),s({template_key:w.template_key,name:w.name,subject:w.subject,body_html:w.body_html,description:w.description||"",available_placeholders:w.available_placeholders||[],active:w.active!==!1}),o(!0)},j=async w=>{w.preventDefault(),n?await p.mutateAsync({id:n.id,data:i}):await m.mutateAsync(i)},v=()=>{r(null),s({template_key:"",name:"",subject:"",body_html:"",description:"",available_placeholders:[],active:!0}),o(!1)},x=async w=>{window.confirm("Weet je zeker dat je deze template wilt verwijderen?")&&await g.mutateAsync(w)},N=[{template_key:"contact_form",name:"Contact Formulier Bevestiging",description:"Bevestiging na contact formulier inzending",available_placeholders:["{{name}}","{{email}}","{{company}}","{{subject}}","{{message}}"]},{template_key:"impact_report_v2",name:"AI Impact Rapport Email",description:"Email met link naar AI Impact Rapport",available_placeholders:["{{name}}","{{email}}","{{company_name}}","{{report_link}}"]},{template_key:"eu_ai_act_report",name:"EU AI Act Rapport Email",description:"Email met EU AI Act analyse PDF",available_placeholders:["{{name}}","{{email}}","{{company}}"]}];return a?e.jsx("div",{className:"min-h-screen bg-gray-50 py-8",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"mb-6",children:[e.jsxs(ae,{variant:"ghost",onClick:v,className:"mb-4",children:[e.jsx(ht,{className:"w-4 h-4 mr-2"}),"Terug naar overzicht"]}),e.jsx("h1",{className:"text-3xl font-bold text-gray-900",children:n?"Template Bewerken":"Nieuwe Template"})]}),e.jsxs("form",{onSubmit:j,className:"bg-white rounded-xl p-8 space-y-6",children:[e.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Template Key *"}),e.jsx(me,{required:!0,value:i.template_key,onChange:w=>s({...i,template_key:w.target.value}),placeholder:"contact_form",disabled:!!n}),e.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Unieke identifier (niet meer aan te passen na aanmaken)"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Naam *"}),e.jsx(me,{required:!0,value:i.name,onChange:w=>s({...i,name:w.target.value}),placeholder:"Contact Formulier Bevestiging"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Beschrijving"}),e.jsx(me,{value:i.description,onChange:w=>s({...i,description:w.target.value}),placeholder:"Wordt verzonden na..."})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Email Onderwerp *"}),e.jsx(me,{required:!0,value:i.subject,onChange:w=>s({...i,subject:w.target.value}),placeholder:"Je aanvraag is ontvangen"}),e.jsxs("p",{className:"text-xs text-gray-500 mt-1",children:["Gebruik placeholders zoals ","{{name}}"," of ","{{company}}"]})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between mb-2",children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700",children:"Email Body (HTML) *"}),e.jsxs(ae,{type:"button",variant:"outline",size:"sm",onClick:()=>d(!c),children:[e.jsx(qs,{className:"w-4 h-4 mr-2"}),c?"Bewerken":"Preview"]})]}),c?e.jsx("div",{className:"border border-gray-200 rounded-lg p-4 bg-white min-h-[400px]",children:e.jsx("div",{dangerouslySetInnerHTML:{__html:i.body_html}})}):e.jsx(pt,{required:!0,value:i.body_html,onChange:w=>s({...i,body_html:w.target.value}),placeholder:"<h2>Hallo {{name}},</h2><p>Bedankt voor je bericht...</p>",className:"font-mono text-sm min-h-[400px]"}),e.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"HTML formaat. Gebruik placeholders voor dynamische content."})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Beschikbare Placeholders"}),e.jsx(me,{value:i.available_placeholders.join(", "),onChange:w=>s({...i,available_placeholders:w.target.value.split(",").map(k=>k.trim()).filter(Boolean)}),placeholder:"{{name}}, {{email}}, {{company}}"}),e.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Komma gescheiden (voor documentatie)"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("input",{type:"checkbox",checked:i.active,onChange:w=>s({...i,active:w.target.checked}),className:"w-4 h-4 text-blue-600 rounded"}),e.jsx("label",{className:"text-sm font-medium text-gray-700",children:"Template actief"})]}),e.jsxs("div",{className:"flex gap-3 pt-4 border-t border-gray-200",children:[e.jsx(ae,{type:"button",variant:"outline",onClick:v,children:"Annuleren"}),e.jsxs(ae,{type:"submit",className:"bg-blue-600 hover:bg-blue-700",children:[e.jsx(Sn,{className:"w-4 h-4 mr-2"}),"Opslaan"]})]})]})]})}):e.jsx("div",{className:"min-h-screen bg-gray-50 py-8",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"flex items-center justify-between mb-8",children:[e.jsxs("div",{children:[e.jsxs(de,{to:se("AdminDashboard"),className:"inline-flex items-center text-blue-600 hover:text-blue-700 mb-4",children:[e.jsx(ht,{className:"w-4 h-4 mr-2"}),"Terug naar Dashboard"]}),e.jsx("h1",{className:"text-3xl font-bold text-gray-900",children:"Email Templates"}),e.jsx("p",{className:"text-gray-600 mt-2",children:"Beheer email templates voor geautomatiseerde mails"})]}),e.jsxs(ae,{onClick:()=>o(!0),className:"bg-blue-600 hover:bg-blue-700",children:[e.jsx(Pt,{className:"w-4 h-4 mr-2"}),"Nieuwe Template"]})]}),h.length===0&&!f&&e.jsxs("div",{className:"bg-yellow-50 border border-yellow-200 rounded-xl p-6 mb-6",children:[e.jsx("h3",{className:"font-semibold text-yellow-900 mb-2",children:"Geen templates gevonden"}),e.jsx("p",{className:"text-yellow-800 mb-4",children:"Maak templates aan voor de volgende emails:"}),e.jsx("div",{className:"space-y-2",children:N.map(w=>e.jsx("div",{className:"bg-white rounded-lg p-4",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold text-gray-900",children:w.name}),e.jsx("p",{className:"text-sm text-gray-600",children:w.description}),e.jsxs("p",{className:"text-xs text-gray-500 mt-1",children:["Key: ",e.jsx("code",{className:"bg-gray-100 px-2 py-0.5 rounded",children:w.template_key})]}),e.jsxs("p",{className:"text-xs text-gray-500 mt-1",children:["Placeholders: ",w.available_placeholders.join(", ")]})]}),e.jsx(ae,{variant:"outline",onClick:()=>{s({...i,template_key:w.template_key,name:w.name,description:w.description,available_placeholders:w.available_placeholders}),o(!0)},children:"Aanmaken"})]})},w.template_key))})]}),f?e.jsxs("div",{className:"text-center py-12",children:[e.jsx("div",{className:"animate-spin w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full mx-auto mb-4"}),e.jsx("p",{className:"text-gray-600",children:"Templates laden..."})]}):e.jsx("div",{className:"grid gap-6",children:h.map(w=>e.jsxs("div",{className:"bg-white rounded-xl p-6 border border-gray-200",children:[e.jsxs("div",{className:"flex items-start justify-between mb-4",children:[e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[e.jsx(yi,{className:"w-5 h-5 text-blue-600"}),e.jsx("h3",{className:"text-xl font-bold text-gray-900",children:w.name}),!w.active&&e.jsx("span",{className:"px-2 py-1 bg-gray-200 text-gray-700 text-xs rounded-full",children:"Inactief"})]}),w.description&&e.jsx("p",{className:"text-gray-600 mb-2",children:w.description}),e.jsxs("p",{className:"text-sm text-gray-500 mb-2",children:["Key: ",e.jsx("code",{className:"bg-gray-100 px-2 py-0.5 rounded text-xs",children:w.template_key})]}),e.jsx("p",{className:"text-sm font-medium text-gray-700 mb-1",children:"Onderwerp:"}),e.jsx("p",{className:"text-gray-600 mb-3",children:w.subject}),w.available_placeholders&&w.available_placeholders.length>0&&e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium text-gray-700 mb-1",children:"Beschikbare placeholders:"}),e.jsx("div",{className:"flex flex-wrap gap-2",children:w.available_placeholders.map((k,A)=>e.jsx("code",{className:"bg-blue-50 text-blue-700 px-2 py-1 rounded text-xs",children:k},A))})]})]}),e.jsxs("div",{className:"flex gap-2 ml-4",children:[e.jsx(ae,{variant:"outline",onClick:()=>y(w),children:"Bewerken"}),e.jsx(ae,{variant:"outline",onClick:()=>x(w.id),className:"text-red-600 hover:text-red-700 hover:bg-red-50",children:e.jsx(wt,{className:"w-4 h-4"})})]})]}),e.jsxs("details",{className:"mt-4",children:[e.jsx("summary",{className:"cursor-pointer text-sm font-medium text-gray-700 hover:text-gray-900",children:"Bekijk HTML preview"}),e.jsx("div",{className:"mt-3 p-4 bg-gray-50 rounded-lg border border-gray-200 max-h-96 overflow-y-auto",children:e.jsx("div",{dangerouslySetInnerHTML:{__html:w.body_html}})})]})]},w.id))})]})})}function tQ(){var j;const t=_l(),[n,r]=D.useState(!1),[i,s]=D.useState(!0),[a,o]=D.useState(null),c=Wt();D.useEffect(()=>{(async()=>{try{const x=await ce.auth.me();if((x==null?void 0:x.role)!=="admin"){t(se("Home"));return}r(!0)}catch{t(se("Home"))}finally{s(!1)}})()},[t]);const{data:d=[],isLoading:h}=Fe({queryKey:["eu-ai-act-submissions"],queryFn:()=>ce.entities.EuAiActSubmission.list("-created_date")}),{data:f=[],isLoading:m}=Fe({queryKey:["eu-ai-act-requests"],queryFn:()=>ce.entities.EuAiActRequest.list("-created_date")}),p=h||m,g=Me({mutationFn:v=>ce.entities.EuAiActSubmission.delete(v),onSuccess:()=>{c.invalidateQueries({queryKey:["eu-ai-act-submissions"]}),o(null)}}),y=()=>{const v=[["Email","Bedrijf","Website","Rapport Link","Email Verzonden","Datum"],...d.map(w=>{var k;return[w.submitted_by_email||"",((k=w.analysis_result)==null?void 0:k.company_name)||w.company_name||"",w.website_url||w.company_url||"",`https://www.48-7.nl/eu-ai-act-checker?report_id=${w.id}`,w.email_sent?"Ja":"Nee",jt(new Date(w.created_date||w.submitted_at),"dd-MM-yyyy HH:mm")]})].map(w=>w.join(",")).join(`
`),x=new Blob([v],{type:"text/csv;charset=utf-8;"}),N=document.createElement("a");N.href=URL.createObjectURL(x),N.download=`eu-ai-act-submissions-${jt(new Date,"dd-MM-yyyy")}.csv`,N.click()};return i?e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50 flex items-center justify-center",children:e.jsxs("div",{className:"text-center",children:[e.jsx(Vn,{className:"w-16 h-16 text-gray-400 mx-auto mb-4"}),e.jsx("p",{className:"text-gray-600",children:"Toegang controleren..."})]})}):n?e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs("div",{className:"flex items-center justify-between mb-8",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx(de,{to:se("AdminDashboard"),children:e.jsx(ae,{variant:"outline",size:"icon",children:e.jsx(ht,{className:"w-5 h-5"})})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-3xl font-bold text-gray-900",children:"EU AI Act Inzendingen"}),e.jsxs("p",{className:"text-gray-600",children:[f.length," aanvragen • ",d.length," rapporten"]})]})]}),e.jsxs(ae,{onClick:y,disabled:d.length===0,children:[e.jsx(yl,{className:"w-4 h-4 mr-2"}),"Exporteer CSV"]})]}),p?e.jsx("div",{className:"flex justify-center py-12",children:e.jsx("div",{className:"w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):f.length===0&&d.length===0?e.jsxs("div",{className:"bg-white rounded-2xl p-12 text-center",children:[e.jsx($t,{className:"w-16 h-16 text-gray-300 mx-auto mb-4"}),e.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-2",children:"Nog geen inzendingen"}),e.jsx("p",{className:"text-gray-600",children:"Er zijn nog geen EU AI Act analyses aangevraagd"})]}):e.jsxs("div",{className:"grid lg:grid-cols-2 gap-6",children:[e.jsx("div",{className:"space-y-4",children:f.map(v=>{var w;const x=d.find(k=>k.id===v.submission_id),N={pending:"bg-gray-100 text-gray-700",processing:"bg-blue-100 text-blue-700",completed:"bg-green-100 text-green-700",failed:"bg-red-100 text-red-700"};return e.jsxs("div",{onClick:()=>o(x||v),className:`bg-white rounded-xl p-6 border-2 cursor-pointer transition-all ${(a==null?void 0:a.id)===v.id||(a==null?void 0:a.id)===(x==null?void 0:x.id)?"border-blue-600 shadow-lg":"border-gray-200 hover:border-gray-300"}`,children:[e.jsxs("div",{className:"flex items-start justify-between mb-3",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"font-bold text-gray-900",children:((w=x==null?void 0:x.analysis_result)==null?void 0:w.company_name)||v.website_url||"Onbekend bedrijf"}),v.user_email&&e.jsx("p",{className:"text-xs text-blue-600 mt-1",children:v.user_email})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:`px-2 py-1 rounded-full text-xs font-semibold ${N[v.status]}`,children:v.status==="pending"?"In wachtrij":v.status==="processing"?"Bezig":v.status==="completed"?"Voltooid":"Gefaald"}),(x==null?void 0:x.email_sent)&&e.jsx(gt,{className:"w-5 h-5 text-green-600"})]})]}),e.jsx("div",{className:"flex items-center gap-3 text-sm text-gray-600",children:e.jsx("span",{children:jt(new Date(v.created_date),"dd MMM yyyy HH:mm")})})]},v.id)})}),e.jsx("div",{className:"lg:sticky lg:top-24 h-fit",children:a?e.jsxs("div",{className:"bg-white rounded-xl p-6 border border-gray-200",children:[e.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-6",children:"Detail"}),e.jsxs("div",{className:"space-y-4",children:[a.status&&e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Status"}),e.jsx("p",{className:"text-gray-900 font-semibold",children:a.status==="pending"?"â³ In wachtrij":a.status==="processing"?"âš™ï¸ Bezig met analyse":a.status==="completed"?"✅ Voltooid":"⌠Gefaald"}),a.error_message&&e.jsx("p",{className:"text-sm text-red-600 mt-1",children:a.error_message})]}),(a.user_name||a.submitted_by_name)&&e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Aanvrager naam"}),e.jsx("p",{className:"text-gray-900",children:a.user_name||a.submitted_by_name})]}),(a.user_email||a.submitted_by_email)&&e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Aanvrager email"}),e.jsx("p",{className:"text-gray-900",children:a.user_email||a.submitted_by_email})]}),((j=a.analysis_result)==null?void 0:j.company_name)&&e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Bedrijf"}),e.jsx("p",{className:"text-gray-900",children:a.analysis_result.company_name})]}),a.website_url&&e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Website"}),e.jsxs("a",{href:a.website_url.startsWith("http")?a.website_url:`https://${a.website_url}`,target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 hover:underline flex items-center gap-1",children:[a.website_url,e.jsx(zs,{className:"w-3 h-3"})]})]}),(a.submission_id||a.analysis_result)&&e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Rapport Link"}),e.jsxs("a",{href:`/EuAiActChecker?report_id=${a.submission_id||a.id}`,target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 hover:underline flex items-center gap-1",children:["Bekijk volledige rapport",e.jsx(zs,{className:"w-3 h-3"})]})]}),a.submitted_by_email&&e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Ingediend door"}),e.jsx("p",{className:"text-gray-900",children:a.submitted_by_email})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Email Status"}),e.jsx("div",{className:"flex items-center gap-2 mt-1",children:a.email_sent?e.jsxs(e.Fragment,{children:[e.jsx(gt,{className:"w-5 h-5 text-green-600"}),e.jsxs("span",{className:"text-green-600",children:["Verzonden op ",jt(new Date(a.email_sent_at),"dd MMM yyyy HH:mm")]})]}):e.jsxs(e.Fragment,{children:[e.jsx(eu,{className:"w-5 h-5 text-red-600"}),e.jsx("span",{className:"text-red-600",children:"Niet verzonden"}),a.email_error&&e.jsx("p",{className:"text-xs text-red-500 mt-1",children:a.email_error})]})})]}),e.jsx("div",{className:"pt-6 border-t border-gray-200 mt-6",children:e.jsxs(ae,{variant:"destructive",onClick:()=>{confirm("Weet je zeker dat je deze inzending wilt verwijderen?")&&g.mutate(a.id)},disabled:g.isPending,className:"w-full",children:[e.jsx(wt,{className:"w-4 h-4 mr-2"}),g.isPending?"Verwijderen...":"Verwijderen"]})})]})]}):e.jsxs("div",{className:"bg-gray-50 rounded-xl p-12 text-center border-2 border-dashed border-gray-300",children:[e.jsx($t,{className:"w-12 h-12 text-gray-400 mx-auto mb-3"}),e.jsx("p",{className:"text-gray-600",children:"Selecteer een inzending om details te bekijken"})]})})]})]})}):null}function nQ(){const[t,n]=D.useState("overzicht"),r=[{id:"overzicht",icon:Ua,title:"Overzicht",content:e.jsxs("div",{className:"space-y-4",children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900",children:"Welkom bij het Content Management Systeem"}),e.jsx("p",{className:"text-gray-700 leading-relaxed",children:"Dit CMS stelt je in staat om alle content op je website te beheren zonder in de code te hoeven duiken. Je kunt blog posts schrijven, cases toevoegen, trainingen beheren, en zelfs statische pagina's aanpassen."}),e.jsxs("div",{className:"bg-blue-50 border border-blue-200 rounded-xl p-4",children:[e.jsx("p",{className:"text-blue-900 font-medium",children:"📠Je bevindt je nu in het Admin Dashboard"}),e.jsx("p",{className:"text-blue-800 text-sm mt-2",children:"Via het dashboard heb je toegang tot alle beheer functionaliteiten."})]})]})},{id:"blog",icon:$t,title:"Blog Beheer",content:e.jsxs("div",{className:"space-y-4",children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900",children:"Blog Posts Beheren"}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"bg-gray-50 rounded-lg p-4",children:[e.jsx("h4",{className:"font-bold text-gray-900 mb-2",children:"📠Nieuwe blog post maken"}),e.jsxs("ol",{className:"list-decimal list-inside space-y-2 text-gray-700",children:[e.jsxs("li",{children:["Ga naar ",e.jsx("strong",{children:"AdminDashboard → Blog"})]}),e.jsxs("li",{children:["Klik op ",e.jsx("strong",{children:'"Nieuw Blog Post"'})]}),e.jsx("li",{children:"Vul de velden in (titel, slug, samenvatting, content)"}),e.jsx("li",{children:"Gebruik de rich text editor voor opmaak"}),e.jsx("li",{children:"Voeg een featured image toe via upload of URL"}),e.jsxs("li",{children:["Klik op ",e.jsx("strong",{children:'"Preview"'})," om het resultaat te zien"]}),e.jsxs("li",{children:["Vink ",e.jsx("strong",{children:'"Publiceren"'})," aan om live te zetten"]})]})]}),e.jsxs("div",{className:"bg-gray-50 rounded-lg p-4",children:[e.jsx("h4",{className:"font-bold text-gray-900 mb-2",children:"ðŸ–¼ï¸ Afbeeldingen in content"}),e.jsx("p",{className:"text-gray-700",children:"Klik op het afbeelding icoon in de rich text editor toolbar. Je kunt een bestand uploaden of een URL plakken. Afbeeldingen worden automatisch ingevoegd op de cursorpositie."})]}),e.jsxs("div",{className:"bg-gray-50 rounded-lg p-4",children:[e.jsx("h4",{className:"font-bold text-gray-900 mb-2",children:"âœï¸ Opmaak opties"}),e.jsxs("ul",{className:"list-disc list-inside space-y-1 text-gray-700",children:[e.jsxs("li",{children:[e.jsx("strong",{children:"H1, H2"})," voor koppen"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Bold, Italic, Underline"})," voor tekstopmaak"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Bullet lists, Numbered lists"})," voor lijsten"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Links"})," toevoegen met het link icoon"]})]})]})]})]})},{id:"cases",icon:Js,title:"Cases Beheer",content:e.jsxs("div",{className:"space-y-4",children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900",children:"Case Studies Beheren"}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"bg-gray-50 rounded-lg p-4",children:[e.jsx("h4",{className:"font-bold text-gray-900 mb-2",children:"📋 Nieuwe case toevoegen"}),e.jsxs("ol",{className:"list-decimal list-inside space-y-2 text-gray-700",children:[e.jsxs("li",{children:["Ga naar ",e.jsx("strong",{children:"AdminDashboard → Cases"})]}),e.jsxs("li",{children:["Klik op ",e.jsx("strong",{children:'"Nieuwe Case"'})]}),e.jsx("li",{children:"Vul klantinformatie in (naam, branche, type)"}),e.jsxs("li",{children:["Beschrijf de ",e.jsx("strong",{children:"uitdaging"})," (gebruik rich text editor)"]}),e.jsxs("li",{children:["Beschrijf de ",e.jsx("strong",{children:"oplossing"})," (gebruik rich text editor)"]}),e.jsxs("li",{children:["Voeg ",e.jsx("strong",{children:"resultaten"})," toe (waarde + label)"]}),e.jsx("li",{children:"Voeg optioneel een quote en tags toe"}),e.jsx("li",{children:"Publiceer de case"})]})]}),e.jsxs("div",{className:"bg-gray-50 rounded-lg p-4",children:[e.jsx("h4",{className:"font-bold text-gray-900 mb-2",children:"ðŸ·ï¸ Case Types"}),e.jsxs("p",{className:"text-gray-700",children:["Je kunt kiezen uit: ",e.jsx("strong",{children:"Consultancy"}),", ",e.jsx("strong",{children:"Training"}),", en ",e.jsx("strong",{children:"Development"}),". Nieuwe types toevoegen? Ga naar ",e.jsx("strong",{children:"Instellingen"}),"."]})]})]})]})},{id:"paginas",icon:P1,title:"Pagina's Beheren",content:e.jsxs("div",{className:"space-y-4",children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900",children:"Statische Pagina's Bewerken"}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"bg-gray-50 rounded-lg p-4",children:[e.jsx("h4",{className:"font-bold text-gray-900 mb-2",children:"🎨 Pagina content bewerken"}),e.jsxs("ol",{className:"list-decimal list-inside space-y-2 text-gray-700",children:[e.jsxs("li",{children:["Ga naar ",e.jsx("strong",{children:"AdminDashboard → Pagina Editor"})]}),e.jsx("li",{children:"Selecteer de pagina die je wilt bewerken (bijv. AI Consultancy)"}),e.jsx("li",{children:"Bekijk bestaande content secties of maak nieuwe aan"}),e.jsxs("li",{children:["Elke sectie heeft een unieke ",e.jsx("strong",{children:"section_key"})]}),e.jsx("li",{children:"Gebruik de rich text editor voor de content"}),e.jsx("li",{children:"Sla op en bekijk de wijzigingen in de preview"})]})]}),e.jsxs("div",{className:"bg-orange-50 border border-orange-200 rounded-lg p-4",children:[e.jsx("h4",{className:"font-bold text-orange-900 mb-2",children:"âš ï¸ Belangrijk"}),e.jsx("p",{className:"text-orange-800",children:"Het wijzigen van pagina content via de Pagina Editor werkt alleen als de pagina code is aangepast om content uit de database te laden. Sommige pagina's zijn nog hardcoded. Vraag je developer om pagina's dynamisch te maken."})]})]})]})},{id:"instellingen",icon:nu,title:"Instellingen",content:e.jsxs("div",{className:"space-y-4",children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900",children:"Categorieën & Instellingen"}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"bg-gray-50 rounded-lg p-4",children:[e.jsx("h4",{className:"font-bold text-gray-900 mb-2",children:"ðŸ·ï¸ Categorieën beheren"}),e.jsxs("p",{className:"text-gray-700 mb-3",children:["Ga naar ",e.jsx("strong",{children:"AdminDashboard → Instellingen"})," om categorieën te beheren voor:"]}),e.jsxs("ul",{className:"list-disc list-inside space-y-1 text-gray-700",children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Blog Categorieën"})," (AI, Technologie, Training, etc.)"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Case Types"})," (Consultancy, Training, Development)"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Training Categorieën"})," (Basis, Gevorderd, Leiderschap, etc.)"]})]})]}),e.jsxs("div",{className:"bg-yellow-50 border border-yellow-200 rounded-lg p-4",children:[e.jsx("h4",{className:"font-bold text-yellow-900 mb-2",children:"💡 Let op"}),e.jsxs("p",{className:"text-yellow-800 text-sm",children:["Wijzigingen in de Instellingen pagina zijn lokaal. Voor permanente wijzigingen moet je de",e.jsx("strong",{children:" entity schemas"})," aanpassen via ",e.jsx("strong",{children:"Platform Dashboard → Code → Entities"}),"."]})]})]})]})},{id:"database",icon:P4,title:"Database",content:e.jsxs("div",{className:"space-y-4",children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900",children:"Database & Entities"}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"bg-gray-50 rounded-lg p-4",children:[e.jsx("h4",{className:"font-bold text-gray-900 mb-2",children:"ðŸ—„ï¸ Directe database toegang"}),e.jsxs("p",{className:"text-gray-700 mb-3",children:["Via het ",e.jsx("strong",{children:"Platform Dashboard → Data"})," kun je direct records bekijken en bewerken:"]}),e.jsxs("ul",{className:"list-disc list-inside space-y-1 text-gray-700",children:[e.jsx("li",{children:"Zie alle BlogPosts, CaseStudies, Trainingen, etc."}),e.jsx("li",{children:"Bewerk individuele records"}),e.jsx("li",{children:"Verwijder oude content"}),e.jsx("li",{children:"Gebruik filters om specifieke records te vinden"})]})]}),e.jsxs("div",{className:"bg-gray-50 rounded-lg p-4",children:[e.jsx("h4",{className:"font-bold text-gray-900 mb-2",children:"âš™ï¸ Entity schemas aanpassen"}),e.jsx("p",{className:"text-gray-700 mb-3",children:"Wil je nieuwe velden toevoegen of categorieën wijzigen?"}),e.jsxs("ol",{className:"list-decimal list-inside space-y-2 text-gray-700",children:[e.jsxs("li",{children:["Ga naar ",e.jsx("strong",{children:"Platform Dashboard → Code → Entities"})]}),e.jsx("li",{children:"Klik op de entity die je wilt aanpassen (bijv. BlogPost)"}),e.jsx("li",{children:"Pas het JSON schema aan"}),e.jsx("li",{children:"Sla op - de wijzigingen zijn direct actief"})]})]})]})]})},{id:"tips",icon:UP,title:"Tips & Tricks",content:e.jsxs("div",{className:"space-y-4",children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900",children:"Handige Tips"}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"bg-green-50 border border-green-200 rounded-lg p-4",children:[e.jsx("h4",{className:"font-bold text-green-900 mb-2",children:"✅ Best Practices"}),e.jsxs("ul",{className:"list-disc list-inside space-y-2 text-green-800",children:[e.jsx("li",{children:'Gebruik duidelijke, beschrijvende slugs (bijv. "ai-voor-beginners")'}),e.jsx("li",{children:"Voeg altijd een featured image toe voor betere presentatie"}),e.jsx("li",{children:"Gebruik de preview functie voordat je publiceert"}),e.jsx("li",{children:"Bewaar drafts - publiceer pas als alles klopt"}),e.jsx("li",{children:"Gebruik tags om content gemakkelijk te kunnen filteren"})]})]}),e.jsxs("div",{className:"bg-blue-50 border border-blue-200 rounded-lg p-4",children:[e.jsx("h4",{className:"font-bold text-blue-900 mb-2",children:"âŒ¨ï¸ Sneltoetsen"}),e.jsxs("ul",{className:"list-disc list-inside space-y-1 text-blue-800",children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Ctrl/Cmd + B"})," - Bold text"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Ctrl/Cmd + I"})," - Italic text"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Ctrl/Cmd + U"})," - Underline text"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Enter"})," bij invoervelden - Voeg item toe"]})]})]}),e.jsxs("div",{className:"bg-purple-50 border border-purple-200 rounded-lg p-4",children:[e.jsx("h4",{className:"font-bold text-purple-900 mb-2",children:"🎯 Workflow tip"}),e.jsxs("p",{className:"text-purple-800",children:["Gebruik ",e.jsx("strong",{children:"AdminDashboard"})," als je startpunt. Van daaruit heb je toegang tot alle content management tools. Bookmark deze pagina voor snelle toegang!"]})]})]})]})}];return e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-blue-50 to-white",children:e.jsxs("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsx("div",{className:"mb-6",children:e.jsxs(de,{to:se("AdminDashboard"),className:"text-blue-600 hover:text-blue-700 inline-flex items-center gap-1",children:[e.jsx(ht,{className:"w-4 h-4"}),"Terug naar dashboard"]})}),e.jsxs("div",{className:"mb-12 text-center",children:[e.jsx("div",{className:"inline-flex items-center justify-center w-20 h-20 bg-blue-600 rounded-2xl mb-6",children:e.jsx(Ua,{className:"w-10 h-10 text-white"})}),e.jsx("h1",{className:"text-5xl font-bold text-gray-900 mb-4",children:"CMS Handleiding"}),e.jsx("p",{className:"text-xl text-gray-600",children:"Alles wat je moet weten om je website content te beheren"})]}),e.jsx("div",{className:"space-y-4",children:r.map(i=>e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"bg-white rounded-2xl border-2 border-gray-100 overflow-hidden",children:[e.jsxs("button",{onClick:()=>n(t===i.id?null:i.id),className:"w-full flex items-center justify-between p-6 hover:bg-gray-50 transition-colors",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("div",{className:"w-12 h-12 bg-blue-100 rounded-xl flex items-center justify-center",children:e.jsx(i.icon,{className:"w-6 h-6 text-blue-600"})}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:i.title})]}),t===i.id?e.jsx(Aa,{className:"w-6 h-6 text-gray-400"}):e.jsx(E4,{className:"w-6 h-6 text-gray-400"})]}),t===i.id&&e.jsx(Z.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},className:"border-t border-gray-100",children:e.jsx("div",{className:"p-8",children:i.content})})]},i.id))}),e.jsxs("div",{className:"mt-12 bg-gradient-to-r from-blue-600 to-indigo-600 rounded-2xl p-8 text-white",children:[e.jsx("h3",{className:"text-2xl font-bold mb-6",children:"Snelle Links"}),e.jsxs("div",{className:"grid md:grid-cols-3 gap-4",children:[e.jsxs(de,{to:se("AdminBlog"),className:"bg-white/10 hover:bg-white/20 rounded-xl p-4 transition-colors",children:[e.jsx($t,{className:"w-6 h-6 mb-2"}),e.jsx("p",{className:"font-semibold",children:"Blog Beheer"})]}),e.jsxs(de,{to:se("AdminCases"),className:"bg-white/10 hover:bg-white/20 rounded-xl p-4 transition-colors",children:[e.jsx(P1,{className:"w-6 h-6 mb-2"}),e.jsx("p",{className:"font-semibold",children:"Cases Beheer"})]}),e.jsxs(de,{to:se("AdminSettings"),className:"bg-white/10 hover:bg-white/20 rounded-xl p-4 transition-colors",children:[e.jsx(nu,{className:"w-6 h-6 mb-2"}),e.jsx("p",{className:"font-semibold",children:"Instellingen"})]})]})]})]})})}var uv="rovingFocusGroup.onEntryFocus",rQ={bubbles:!1,cancelable:!0},zu="RovingFocusGroup",[M0,TT,iQ]=GE(zu),[sQ,OT]=no(zu,[iQ]),[aQ,oQ]=sQ(zu),PT=D.forwardRef((t,n)=>e.jsx(M0.Provider,{scope:t.__scopeRovingFocusGroup,children:e.jsx(M0.Slot,{scope:t.__scopeRovingFocusGroup,children:e.jsx(lQ,{...t,ref:n})})}));PT.displayName=zu;var lQ=D.forwardRef((t,n)=>{const{__scopeRovingFocusGroup:r,orientation:i,loop:s=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:d,onEntryFocus:h,preventScrollOnEntryFocus:f=!1,...m}=t,p=D.useRef(null),g=Xt(n,p),y=eb(a),[j,v]=xl({prop:o,defaultProp:c??null,onChange:d,caller:zu}),[x,N]=D.useState(!1),w=Qs(h),k=TT(r),A=D.useRef(!1),[S,E]=D.useState(0);return D.useEffect(()=>{const C=p.current;if(C)return C.addEventListener(uv,w),()=>C.removeEventListener(uv,w)},[w]),e.jsx(aQ,{scope:r,orientation:i,dir:y,loop:s,currentTabStopId:j,onItemFocus:D.useCallback(C=>v(C),[v]),onItemShiftTab:D.useCallback(()=>N(!0),[]),onFocusableItemAdd:D.useCallback(()=>E(C=>C+1),[]),onFocusableItemRemove:D.useCallback(()=>E(C=>C-1),[]),children:e.jsx(Nt.div,{tabIndex:x||S===0?-1:0,"data-orientation":i,...m,ref:g,style:{outline:"none",...t.style},onMouseDown:bt(t.onMouseDown,()=>{A.current=!0}),onFocus:bt(t.onFocus,C=>{const B=!A.current;if(C.target===C.currentTarget&&B&&!x){const F=new CustomEvent(uv,rQ);if(C.currentTarget.dispatchEvent(F),!F.defaultPrevented){const I=k().filter(Q=>Q.focusable),R=I.find(Q=>Q.active),z=I.find(Q=>Q.id===j),U=[R,z,...I].filter(Boolean).map(Q=>Q.ref.current);RT(U,f)}}A.current=!1}),onBlur:bt(t.onBlur,()=>N(!1))})})}),DT="RovingFocusGroupItem",IT=D.forwardRef((t,n)=>{const{__scopeRovingFocusGroup:r,focusable:i=!0,active:s=!1,tabStopId:a,children:o,...c}=t,d=Lu(),h=a||d,f=oQ(DT,r),m=f.currentTabStopId===h,p=TT(r),{onFocusableItemAdd:g,onFocusableItemRemove:y,currentTabStopId:j}=f;return D.useEffect(()=>{if(i)return g(),()=>y()},[i,g,y]),e.jsx(M0.ItemSlot,{scope:r,id:h,focusable:i,active:s,children:e.jsx(Nt.span,{tabIndex:m?0:-1,"data-orientation":f.orientation,...c,ref:n,onMouseDown:bt(t.onMouseDown,v=>{i?f.onItemFocus(h):v.preventDefault()}),onFocus:bt(t.onFocus,()=>f.onItemFocus(h)),onKeyDown:bt(t.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){f.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const x=dQ(v,f.orientation,f.dir);if(x!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let w=p().filter(k=>k.focusable).map(k=>k.ref.current);if(x==="last")w.reverse();else if(x==="prev"||x==="next"){x==="prev"&&w.reverse();const k=w.indexOf(v.currentTarget);w=f.loop?hQ(w,k+1):w.slice(k+1)}setTimeout(()=>RT(w))}}),children:typeof o=="function"?o({isCurrentTabStop:m,hasTabStop:j!=null}):o})})});IT.displayName=DT;var cQ={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function uQ(t,n){return n!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function dQ(t,n,r){const i=uQ(t.key,r);if(!(n==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(n==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return cQ[i]}function RT(t,n=!1){const r=document.activeElement;for(const i of t)if(i===r||(i.focus({preventScroll:n}),document.activeElement!==r))return}function hQ(t,n){return t.map((r,i)=>t[(n+i)%t.length])}var fQ=PT,mQ=IT;function pQ(t,n){return D.useReducer((r,i)=>n[r][i]??r,t)}var pb=t=>{const{present:n,children:r}=t,i=gQ(n),s=typeof r=="function"?r({present:i.isPresent}):D.Children.only(r),a=Xt(i.ref,xQ(s));return typeof r=="function"||i.isPresent?D.cloneElement(s,{ref:a}):null};pb.displayName="Presence";function gQ(t){const[n,r]=D.useState(),i=D.useRef(null),s=D.useRef(t),a=D.useRef("none"),o=t?"mounted":"unmounted",[c,d]=pQ(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return D.useEffect(()=>{const h=gh(i.current);a.current=c==="mounted"?h:"none"},[c]),Rn(()=>{const h=i.current,f=s.current;if(f!==t){const p=a.current,g=gh(h);t?d("MOUNT"):g==="none"||(h==null?void 0:h.display)==="none"?d("UNMOUNT"):d(f&&p!==g?"ANIMATION_OUT":"UNMOUNT"),s.current=t}},[t,d]),Rn(()=>{if(n){let h;const f=n.ownerDocument.defaultView??window,m=g=>{const j=gh(i.current).includes(CSS.escape(g.animationName));if(g.target===n&&j&&(d("ANIMATION_END"),!s.current)){const v=n.style.animationFillMode;n.style.animationFillMode="forwards",h=f.setTimeout(()=>{n.style.animationFillMode==="forwards"&&(n.style.animationFillMode=v)})}},p=g=>{g.target===n&&(a.current=gh(i.current))};return n.addEventListener("animationstart",p),n.addEventListener("animationcancel",m),n.addEventListener("animationend",m),()=>{f.clearTimeout(h),n.removeEventListener("animationstart",p),n.removeEventListener("animationcancel",m),n.removeEventListener("animationend",m)}}else d("ANIMATION_END")},[n,d]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:D.useCallback(h=>{i.current=h?getComputedStyle(h):null,r(h)},[])}}function gh(t){return(t==null?void 0:t.animationName)||"none"}function xQ(t){var i,s;let n=(i=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:i.get,r=n&&"isReactWarning"in n&&n.isReactWarning;return r?t.ref:(n=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,r=n&&"isReactWarning"in n&&n.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var Uf="Tabs",[vQ]=no(Uf,[OT]),FT=OT(),[yQ,gb]=vQ(Uf),MT=D.forwardRef((t,n)=>{const{__scopeTabs:r,value:i,onValueChange:s,defaultValue:a,orientation:o="horizontal",dir:c,activationMode:d="automatic",...h}=t,f=eb(c),[m,p]=xl({prop:i,onChange:s,defaultProp:a??"",caller:Uf});return e.jsx(yQ,{scope:r,baseId:Lu(),value:m,onValueChange:p,orientation:o,dir:f,activationMode:d,children:e.jsx(Nt.div,{dir:f,"data-orientation":o,...h,ref:n})})});MT.displayName=Uf;var LT="TabsList",BT=D.forwardRef((t,n)=>{const{__scopeTabs:r,loop:i=!0,...s}=t,a=gb(LT,r),o=FT(r);return e.jsx(fQ,{asChild:!0,...o,orientation:a.orientation,dir:a.dir,loop:i,children:e.jsx(Nt.div,{role:"tablist","aria-orientation":a.orientation,...s,ref:n})})});BT.displayName=LT;var zT="TabsTrigger",qT=D.forwardRef((t,n)=>{const{__scopeTabs:r,value:i,disabled:s=!1,...a}=t,o=gb(zT,r),c=FT(r),d=$T(o.baseId,i),h=HT(o.baseId,i),f=i===o.value;return e.jsx(mQ,{asChild:!0,...c,focusable:!s,active:f,children:e.jsx(Nt.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":h,"data-state":f?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:d,...a,ref:n,onMouseDown:bt(t.onMouseDown,m=>{!s&&m.button===0&&m.ctrlKey===!1?o.onValueChange(i):m.preventDefault()}),onKeyDown:bt(t.onKeyDown,m=>{[" ","Enter"].includes(m.key)&&o.onValueChange(i)}),onFocus:bt(t.onFocus,()=>{const m=o.activationMode!=="manual";!f&&!s&&m&&o.onValueChange(i)})})})});qT.displayName=zT;var VT="TabsContent",UT=D.forwardRef((t,n)=>{const{__scopeTabs:r,value:i,forceMount:s,children:a,...o}=t,c=gb(VT,r),d=$T(c.baseId,i),h=HT(c.baseId,i),f=i===c.value,m=D.useRef(f);return D.useEffect(()=>{const p=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(p)},[]),e.jsx(pb,{present:s||f,children:({present:p})=>e.jsx(Nt.div,{"data-state":f?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":d,hidden:!p,id:h,tabIndex:0,...o,ref:n,style:{...t.style,animationDuration:m.current?"0s":void 0},children:p&&a})})});UT.displayName=VT;function $T(t,n){return`${t}-trigger-${n}`}function HT(t,n){return`${t}-content-${n}`}var bQ=MT,WT=BT,KT=qT,GT=UT;const jQ=bQ,QT=D.forwardRef(({className:t,...n},r)=>e.jsx(WT,{ref:r,className:Yt("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",t),...n}));QT.displayName=WT.displayName;const Lo=D.forwardRef(({className:t,...n},r)=>e.jsx(KT,{ref:r,className:Yt("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 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 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",t),...n}));Lo.displayName=KT.displayName;const Bo=D.forwardRef(({className:t,...n},r)=>e.jsx(GT,{ref:r,className:Yt("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",t),...n}));Bo.displayName=GT.displayName;function wQ(){const[t,n]=D.useState("services"),[r,i]=D.useState({type:null,id:null}),[s,a]=D.useState({}),o=Wt(),{data:c=[]}=Fe({queryKey:["homeServices"],queryFn:()=>ce.entities.HomeService.list("sort_order")}),{data:d=[]}=Fe({queryKey:["homeBenefits"],queryFn:()=>ce.entities.HomeBenefit.list("sort_order")}),{data:h=[]}=Fe({queryKey:["processSteps"],queryFn:()=>ce.entities.ProcessStep.list("step_number")}),{data:f=[]}=Fe({queryKey:["teamMembers"],queryFn:()=>ce.entities.TeamMember.list("sort_order")}),{data:m=[]}=Fe({queryKey:["homeCTAs"],queryFn:()=>ce.entities.HomeCTA.list("sort_order")}),{data:p=[]}=Fe({queryKey:["homeSections"],queryFn:()=>ce.entities.HomeSection.list("sort_order"),initialData:[]}),g=Me({mutationFn:({entity:C,data:B})=>ce.entities[C].create(B),onSuccess:(C,B)=>{o.invalidateQueries({queryKey:[x(B.entity)]}),N()}}),y=Me({mutationFn:({entity:C,id:B,data:F})=>ce.entities[C].update(B,F),onSuccess:(C,B)=>{o.invalidateQueries({queryKey:[x(B.entity)]}),N()}}),j=Me({mutationFn:({entity:C,id:B})=>ce.entities[C].delete(B),onSuccess:(C,B)=>{o.invalidateQueries({queryKey:[x(B.entity)]})}}),v=Me({mutationFn:({id:C,data:B})=>ce.entities.HomeSection.update(C,B),onSuccess:()=>{o.invalidateQueries({queryKey:["homeSections"]})},onError:C=>{console.error("Failed to update section:",C),alert("Kon sectie niet updaten. Probeer het opnieuw.")}}),x=C=>({HomeService:"homeServices",HomeBenefit:"homeBenefits",ProcessStep:"processSteps",TeamMember:"teamMembers",HomeCTA:"homeCTAs"})[C],N=()=>{i({type:null,id:null}),a({})},w=(C,B)=>{i({type:C,id:B.id}),a(B)},k=(C,B)=>{C.preventDefault(),r.id?y.mutate({entity:B,id:r.id,data:s}):g.mutate({entity:B,data:s})},A=()=>{a({...s,tags:[...s.tags||[],""]})},S=(C,B)=>{const F=[...s.tags];F[C]=B,a({...s,tags:F})},E=C=>{const B=s.tags.filter((F,I)=>I!==C);a({...s,tags:B})};return e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs("div",{className:"flex items-center gap-4 mb-8",children:[e.jsx(de,{to:se("AdminDashboard"),children:e.jsx(ae,{variant:"outline",size:"icon",children:e.jsx(ht,{className:"w-5 h-5"})})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-3xl font-bold text-gray-900",children:"Homepage Beheren"}),e.jsx("p",{className:"text-gray-600",children:"Beheer alle secties van de homepage"})]})]}),e.jsxs("div",{className:"mb-8 bg-white rounded-2xl p-6 border border-gray-200",children:[e.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-4",children:"Homepage Secties Aan/Uit"}),e.jsx("p",{className:"text-gray-600 mb-4",children:"Schakel secties in of uit om ze te tonen op de homepage"}),e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-4",children:p.map(C=>e.jsxs("div",{className:"flex items-center justify-between p-4 bg-gray-50 rounded-lg hover:bg-gray-100 transition-colors",children:[e.jsx("span",{className:"font-medium text-gray-900",children:C.title||C.section_key}),e.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[e.jsx("input",{type:"checkbox",checked:C.active,disabled:v.isPending,onChange:B=>v.mutate({id:C.id,data:{active:B.target.checked}}),className:"sr-only peer"}),e.jsx("div",{className:`w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-blue-600 ${v.isPending?"opacity-50 cursor-not-allowed":""}`})]})]},C.id))})]}),e.jsxs(jQ,{value:t,onValueChange:n,children:[e.jsxs(QT,{className:"mb-8",children:[e.jsxs(Lo,{value:"services",children:["Diensten (",c.length,")"]}),e.jsxs(Lo,{value:"benefits",children:["Waarom 48-7 (",d.length,")"]}),e.jsxs(Lo,{value:"process",children:["Proces (",h.length,")"]}),e.jsxs(Lo,{value:"team",children:["Team (",f.length,")"]}),e.jsxs(Lo,{value:"ctas",children:["CTA's (",m.length,")"]})]}),e.jsxs(Bo,{value:"services",children:[e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200 mb-8",children:[e.jsx("h2",{className:"text-xl font-bold mb-6",children:r.type==="HomeService"?"Dienst Bewerken":"Nieuwe Dienst"}),e.jsxs("form",{onSubmit:C=>k(C,"HomeService"),className:"space-y-6",children:[e.jsx(me,{placeholder:"Titel (bijv. AI Consultancy)",value:s.title||"",onChange:C=>a({...s,title:C.target.value}),required:!0}),e.jsx(pt,{placeholder:"Beschrijving",value:s.description||"",onChange:C=>a({...s,description:C.target.value}),required:!0}),e.jsx(me,{placeholder:"Icon naam (bijv. Lightbulb, Code, Headphones)",value:s.icon||"",onChange:C=>a({...s,icon:C.target.value}),required:!0}),e.jsx(me,{placeholder:"Link URL (optioneel)",value:s.link_url||"",onChange:C=>a({...s,link_url:C.target.value})}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsx(me,{type:"number",placeholder:"Volgorde",value:s.sort_order||0,onChange:C=>a({...s,sort_order:parseInt(C.target.value)})}),e.jsxs("select",{value:s.active??!0,onChange:C=>a({...s,active:C.target.value==="true"}),className:"w-full h-12 px-4 border-b-2 border-gray-200 focus:border-[#FAB868] bg-white",children:[e.jsx("option",{value:"true",children:"Actief"}),e.jsx("option",{value:"false",children:"Inactief"})]})]}),e.jsxs("div",{className:"flex gap-3",children:[e.jsx(ae,{type:"submit",children:"Opslaan"}),r.type==="HomeService"&&e.jsx(ae,{type:"button",variant:"outline",onClick:N,children:"Annuleren"})]})]})]}),e.jsx("div",{className:"grid md:grid-cols-2 gap-6",children:c.map(C=>e.jsxs("div",{className:"bg-white rounded-2xl p-6 border-2 border-gray-200",children:[e.jsxs("div",{className:"flex justify-between items-start mb-4",children:[e.jsx("h3",{className:"font-bold text-lg",children:C.title}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(ae,{size:"sm",variant:"ghost",onClick:()=>w("HomeService",C),children:e.jsx(Pn,{className:"w-4 h-4"})}),e.jsx(ae,{size:"sm",variant:"ghost",onClick:()=>j.mutate({entity:"HomeService",id:C.id}),children:e.jsx(wt,{className:"w-4 h-4"})})]})]}),e.jsx("p",{className:"text-gray-600 text-sm mb-2",children:C.description}),e.jsxs("p",{className:"text-xs text-gray-500",children:["Icon: ",C.icon]})]},C.id))})]}),e.jsxs(Bo,{value:"benefits",children:[e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200 mb-8",children:[e.jsx("h2",{className:"text-xl font-bold mb-6",children:r.type==="HomeBenefit"?"Voordeel Bewerken":"Nieuw Voordeel"}),e.jsxs("form",{onSubmit:C=>k(C,"HomeBenefit"),className:"space-y-6",children:[e.jsx(me,{placeholder:"Titel (bijv. Kennis uit het bedrijfsleven)",value:s.title||"",onChange:C=>a({...s,title:C.target.value}),required:!0}),e.jsx(pt,{placeholder:"Beschrijving",value:s.description||"",onChange:C=>a({...s,description:C.target.value}),required:!0}),e.jsx(me,{placeholder:"Icon naam (bijv. Briefcase, Layers, Building2)",value:s.icon||"",onChange:C=>a({...s,icon:C.target.value}),required:!0}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-2",children:"Tags"}),(s.tags||[]).map((C,B)=>e.jsxs("div",{className:"flex gap-2 mb-2",children:[e.jsx(me,{value:C,onChange:F=>S(B,F.target.value),placeholder:"Tag"}),e.jsx(ae,{type:"button",variant:"outline",onClick:()=>E(B),children:e.jsx(wt,{className:"w-4 h-4"})})]},B)),e.jsxs(ae,{type:"button",variant:"outline",onClick:A,children:[e.jsx(Pt,{className:"w-4 h-4 mr-2"})," Tag toevoegen"]})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsx(me,{type:"number",placeholder:"Volgorde",value:s.sort_order||0,onChange:C=>a({...s,sort_order:parseInt(C.target.value)})}),e.jsxs("select",{value:s.active??!0,onChange:C=>a({...s,active:C.target.value==="true"}),className:"w-full h-12 px-4 border-b-2 border-gray-200 focus:border-[#FAB868] bg-white",children:[e.jsx("option",{value:"true",children:"Actief"}),e.jsx("option",{value:"false",children:"Inactief"})]})]}),e.jsxs("div",{className:"flex gap-3",children:[e.jsx(ae,{type:"submit",children:"Opslaan"}),r.type==="HomeBenefit"&&e.jsx(ae,{type:"button",variant:"outline",onClick:N,children:"Annuleren"})]})]})]}),e.jsx("div",{className:"grid md:grid-cols-2 gap-6",children:d.map(C=>e.jsxs("div",{className:"bg-white rounded-2xl p-6 border-2 border-gray-200",children:[e.jsxs("div",{className:"flex justify-between items-start mb-4",children:[e.jsx("h3",{className:"font-bold text-lg",children:C.title}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(ae,{size:"sm",variant:"ghost",onClick:()=>w("HomeBenefit",C),children:e.jsx(Pn,{className:"w-4 h-4"})}),e.jsx(ae,{size:"sm",variant:"ghost",onClick:()=>j.mutate({entity:"HomeBenefit",id:C.id}),children:e.jsx(wt,{className:"w-4 h-4"})})]})]}),e.jsx("p",{className:"text-gray-600 text-sm mb-2",children:C.description}),C.tags&&C.tags.length>0&&e.jsx("div",{className:"flex flex-wrap gap-2 mt-2",children:C.tags.map((B,F)=>e.jsx("span",{className:"text-xs bg-gray-100 px-2 py-1 rounded",children:B},F))})]},C.id))})]}),e.jsxs(Bo,{value:"process",children:[e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200 mb-8",children:[e.jsx("h2",{className:"text-xl font-bold mb-6",children:r.type==="ProcessStep"?"Stap Bewerken":"Nieuwe Stap"}),e.jsxs("form",{onSubmit:C=>k(C,"ProcessStep"),className:"space-y-6",children:[e.jsx(me,{type:"number",placeholder:"Stap nummer (1, 2, 3, 4)",value:s.step_number||"",onChange:C=>a({...s,step_number:parseInt(C.target.value)}),required:!0}),e.jsx(me,{placeholder:"Titel (bijv. Analyse)",value:s.title||"",onChange:C=>a({...s,title:C.target.value}),required:!0}),e.jsx(pt,{placeholder:"Beschrijving",value:s.description||"",onChange:C=>a({...s,description:C.target.value}),required:!0}),e.jsx(me,{placeholder:"Icon naam (bijv. Search, Map, Rocket)",value:s.icon||"",onChange:C=>a({...s,icon:C.target.value}),required:!0}),e.jsxs("select",{value:s.active??!0,onChange:C=>a({...s,active:C.target.value==="true"}),className:"w-full h-12 px-4 border-b-2 border-gray-200 focus:border-[#FAB868] bg-white",children:[e.jsx("option",{value:"true",children:"Actief"}),e.jsx("option",{value:"false",children:"Inactief"})]}),e.jsxs("div",{className:"flex gap-3",children:[e.jsx(ae,{type:"submit",children:"Opslaan"}),r.type==="ProcessStep"&&e.jsx(ae,{type:"button",variant:"outline",onClick:N,children:"Annuleren"})]})]})]}),e.jsx("div",{className:"grid md:grid-cols-2 gap-6",children:h.map(C=>e.jsxs("div",{className:"bg-white rounded-2xl p-6 border-2 border-gray-200",children:[e.jsxs("div",{className:"flex justify-between items-start mb-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsxs("span",{className:"text-2xl font-bold text-blue-600",children:["0",C.step_number]}),e.jsx("h3",{className:"font-bold text-lg",children:C.title})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(ae,{size:"sm",variant:"ghost",onClick:()=>w("ProcessStep",C),children:e.jsx(Pn,{className:"w-4 h-4"})}),e.jsx(ae,{size:"sm",variant:"ghost",onClick:()=>j.mutate({entity:"ProcessStep",id:C.id}),children:e.jsx(wt,{className:"w-4 h-4"})})]})]}),e.jsx("p",{className:"text-gray-600 text-sm",children:C.description})]},C.id))})]}),e.jsxs(Bo,{value:"team",children:[e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200 mb-8",children:[e.jsx("h2",{className:"text-xl font-bold mb-6",children:r.type==="TeamMember"?"Teamlid Bewerken":"Nieuw Teamlid"}),e.jsxs("form",{onSubmit:C=>k(C,"TeamMember"),className:"space-y-6",children:[e.jsx(me,{placeholder:"Naam",value:s.name||"",onChange:C=>a({...s,name:C.target.value}),required:!0}),e.jsx(me,{placeholder:"Functie (bijv. Founder & CEO)",value:s.role||"",onChange:C=>a({...s,role:C.target.value}),required:!0}),e.jsx(na,{label:"Foto",value:s.image_url,onChange:C=>a({...s,image_url:C}),recommendedSize:"500x500px"}),e.jsx(pt,{placeholder:"Bio (optioneel)",value:s.bio||"",onChange:C=>a({...s,bio:C.target.value})}),e.jsx(me,{placeholder:"LinkedIn URL (optioneel)",value:s.linkedin_url||"",onChange:C=>a({...s,linkedin_url:C.target.value})}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsx(me,{type:"number",placeholder:"Volgorde",value:s.sort_order||0,onChange:C=>a({...s,sort_order:parseInt(C.target.value)})}),e.jsxs("select",{value:s.active??!0,onChange:C=>a({...s,active:C.target.value==="true"}),className:"w-full h-12 px-4 border-b-2 border-gray-200 focus:border-[#FAB868] bg-white",children:[e.jsx("option",{value:"true",children:"Actief"}),e.jsx("option",{value:"false",children:"Inactief"})]})]}),e.jsxs("div",{className:"flex gap-3",children:[e.jsx(ae,{type:"submit",children:"Opslaan"}),r.type==="TeamMember"&&e.jsx(ae,{type:"button",variant:"outline",onClick:N,children:"Annuleren"})]})]})]}),e.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:f.map(C=>e.jsxs("div",{className:"bg-white rounded-2xl p-6 border-2 border-gray-200",children:[C.image_url&&e.jsx("img",{src:C.image_url,alt:C.name,className:"w-full h-48 object-cover rounded-xl mb-4"}),e.jsxs("div",{className:"flex justify-between items-start mb-2",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold",children:C.name}),e.jsx("p",{className:"text-sm text-gray-600",children:C.role})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(ae,{size:"sm",variant:"ghost",onClick:()=>w("TeamMember",C),children:e.jsx(Pn,{className:"w-4 h-4"})}),e.jsx(ae,{size:"sm",variant:"ghost",onClick:()=>j.mutate({entity:"TeamMember",id:C.id}),children:e.jsx(wt,{className:"w-4 h-4"})})]})]})]},C.id))})]}),e.jsxs(Bo,{value:"ctas",children:[e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200 mb-8",children:[e.jsx("h2",{className:"text-xl font-bold mb-6",children:r.type==="HomeCTA"?"CTA Bewerken":"Nieuwe CTA"}),e.jsxs("form",{onSubmit:C=>k(C,"HomeCTA"),className:"space-y-6",children:[e.jsx(me,{placeholder:"Titel (bijv. AI Quiz)",value:s.title||"",onChange:C=>a({...s,title:C.target.value}),required:!0}),e.jsx(pt,{placeholder:"Beschrijving",value:s.description||"",onChange:C=>a({...s,description:C.target.value}),required:!0}),e.jsx(me,{placeholder:"Button tekst (bijv. Start de quiz)",value:s.button_text||"",onChange:C=>a({...s,button_text:C.target.value}),required:!0}),e.jsx(me,{placeholder:"Button URL",value:s.button_url||"",onChange:C=>a({...s,button_url:C.target.value}),required:!0}),e.jsx(me,{placeholder:"Icon naam (bijv. Sparkles, Calendar, GraduationCap)",value:s.icon||"",onChange:C=>a({...s,icon:C.target.value}),required:!0}),e.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[e.jsx(me,{type:"number",placeholder:"Volgorde",value:s.sort_order||0,onChange:C=>a({...s,sort_order:parseInt(C.target.value)})}),e.jsxs("select",{value:s.featured??!1,onChange:C=>a({...s,featured:C.target.value==="true"}),className:"w-full h-12 px-4 border-b-2 border-gray-200 focus:border-[#FAB868] bg-white",children:[e.jsx("option",{value:"false",children:"Normaal"}),e.jsx("option",{value:"true",children:"Featured (blauw)"})]}),e.jsxs("select",{value:s.active??!0,onChange:C=>a({...s,active:C.target.value==="true"}),className:"w-full h-12 px-4 border-b-2 border-gray-200 focus:border-[#FAB868] bg-white",children:[e.jsx("option",{value:"true",children:"Actief"}),e.jsx("option",{value:"false",children:"Inactief"})]})]}),e.jsxs("div",{className:"flex gap-3",children:[e.jsx(ae,{type:"submit",children:"Opslaan"}),r.type==="HomeCTA"&&e.jsx(ae,{type:"button",variant:"outline",onClick:N,children:"Annuleren"})]})]})]}),e.jsx("div",{className:"grid md:grid-cols-2 gap-6",children:m.map(C=>e.jsxs("div",{className:`rounded-2xl p-6 border-2 ${C.featured?"bg-blue-600 text-white border-blue-700":"bg-white border-gray-200"}`,children:[e.jsxs("div",{className:"flex justify-between items-start mb-4",children:[e.jsx("h3",{className:"font-bold text-lg",children:C.title}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(ae,{size:"sm",variant:"ghost",onClick:()=>w("HomeCTA",C),children:e.jsx(Pn,{className:"w-4 h-4"})}),e.jsx(ae,{size:"sm",variant:"ghost",onClick:()=>j.mutate({entity:"HomeCTA",id:C.id}),children:e.jsx(wt,{className:"w-4 h-4"})})]})]}),e.jsx("p",{className:`text-sm mb-2 ${C.featured?"text-white/90":"text-gray-600"}`,children:C.description}),e.jsxs("p",{className:"text-xs opacity-70",children:["Button: ",C.button_text]})]},C.id))})]})]})]})})}function NQ(){var j,v,x,N,w,k,A;const t=_l(),[n,r]=D.useState(!1),[i,s]=D.useState(!0),[a,o]=D.useState(null),c=Wt();D.useEffect(()=>{(async()=>{try{const E=await ce.auth.me();if((E==null?void 0:E.role)!=="admin"){t(se("Home"));return}r(!0)}catch{t(se("Home"))}finally{s(!1)}})()},[t]);const{data:d=[],isLoading:h}=Fe({queryKey:["impact-scan-submissions"],queryFn:()=>ce.entities.ImpactScanSubmission2.list("-created_date")}),{data:f=[],isLoading:m}=Fe({queryKey:["impact-scan-requests"],queryFn:()=>ce.entities.ImpactScanRequest.list("-created_date")}),p=h||m,g=Me({mutationFn:S=>ce.entities.ImpactScanSubmission2.delete(S),onSuccess:()=>{c.invalidateQueries({queryKey:["impact-scan-submissions"]}),o(null)}}),y=()=>{const S=[["Website URL","Bedrijfsnaam","Branche","Email aanvrager","Datum","Rapport Link"],...d.map(B=>{var F,I,R,z;return[B.website_url||"",B.company_name||((I=(F=B.report_data)==null?void 0:F.company_profile)==null?void 0:I.name)||"",B.industry||((z=(R=B.report_data)==null?void 0:R.company_profile)==null?void 0:z.sector)||"",B.submitted_by_email||"",jt(new Date(B.created_date),"dd-MM-yyyy HH:mm"),`https://48-7.nl/AIImpactRapport?report_id=${B.id}`]})].map(B=>B.join(",")).join(`
`),E=new Blob([S],{type:"text/csv;charset=utf-8;"}),C=document.createElement("a");C.href=URL.createObjectURL(E),C.download=`impact-scans-${jt(new Date,"dd-MM-yyyy")}.csv`,C.click()};return i?e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50 flex items-center justify-center",children:e.jsxs("div",{className:"text-center",children:[e.jsx(Vn,{className:"w-16 h-16 text-gray-400 mx-auto mb-4"}),e.jsx("p",{className:"text-gray-600",children:"Toegang controleren..."})]})}):n?e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs("div",{className:"flex items-center justify-between mb-8",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx(de,{to:se("AdminDashboard"),children:e.jsx(ae,{variant:"outline",size:"icon",children:e.jsx(ht,{className:"w-5 h-5"})})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-3xl font-bold text-gray-900",children:"AI Impact Scans"}),e.jsxs("p",{className:"text-gray-600",children:[f.length," aanvragen • ",d.length," rapporten"]})]})]}),e.jsxs(ae,{onClick:y,disabled:d.length===0,children:[e.jsx(yl,{className:"w-4 h-4 mr-2"}),"Exporteer CSV"]})]}),p?e.jsx("div",{className:"flex justify-center py-12",children:e.jsx("div",{className:"w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):f.length===0&&d.length===0?e.jsxs("div",{className:"bg-white rounded-2xl p-12 text-center",children:[e.jsx($t,{className:"w-16 h-16 text-gray-300 mx-auto mb-4"}),e.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-2",children:"Nog geen scans"}),e.jsx("p",{className:"text-gray-600",children:"Er zijn nog geen AI Impact Scans aangevraagd"})]}):e.jsxs("div",{className:"grid lg:grid-cols-2 gap-6",children:[e.jsxs("div",{className:"space-y-4",children:[f.map(S=>{const E=d.find(B=>B.id===S.submission_id),C={pending:"bg-gray-100 text-gray-700",processing:"bg-blue-100 text-blue-700",completed:"bg-green-100 text-green-700",failed:"bg-red-100 text-red-700"};return e.jsxs("div",{onClick:()=>o(E||S),className:`bg-white rounded-xl p-6 border-2 cursor-pointer transition-all ${(a==null?void 0:a.id)===S.id||(a==null?void 0:a.id)===(E==null?void 0:E.id)?"border-blue-600 shadow-lg":"border-gray-200 hover:border-gray-300"}`,children:[e.jsxs("div",{className:"flex items-start justify-between mb-3",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"font-bold text-gray-900",children:S.user_name||(E==null?void 0:E.company_name)||S.company_name||S.website_url||"Onbekend Bedrijf"}),e.jsx("p",{className:"text-sm text-gray-500",children:S.company_name||(E==null?void 0:E.company_name)||""}),S.user_email&&e.jsx("p",{className:"text-sm text-gray-400",children:S.user_email})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:`px-2 py-1 rounded-full text-xs font-semibold ${C[S.status]}`,children:S.status==="pending"?"In wachtrij":S.status==="processing"?"Bezig":S.status==="completed"?"Voltooid":"Gefaald"}),(E==null?void 0:E.email_sent)&&e.jsx(gt,{className:"w-5 h-5 text-green-600"})]})]}),e.jsx("div",{className:"flex items-center gap-3 text-sm text-gray-600",children:e.jsx("span",{children:jt(new Date(S.created_date),"dd MMM yyyy HH:mm")})})]},S.id)}),d.filter(S=>!f.find(E=>E.submission_id===S.id)).map(S=>{var E,C;return e.jsxs("div",{onClick:()=>o(S),className:`bg-white rounded-xl p-6 border-2 cursor-pointer transition-all ${(a==null?void 0:a.id)===S.id?"border-blue-600 shadow-lg":"border-gray-200 hover:border-gray-300"}`,children:[e.jsxs("div",{className:"flex items-start justify-between mb-3",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"font-bold text-gray-900",children:((C=(E=S.report_data)==null?void 0:E.company_profile)==null?void 0:C.name)||S.company_name||S.website_url||"Onbekend Bedrijf"}),S.company_name&&e.jsx("p",{className:"text-sm text-gray-500",children:S.company_name}),S.submitted_by_email&&e.jsx("p",{className:"text-sm text-gray-400",children:S.submitted_by_email})]}),S.email_sent?e.jsx(gt,{className:"w-5 h-5 text-green-600"}):e.jsx(eu,{className:"w-5 h-5 text-gray-400"})]}),e.jsx("div",{className:"flex items-center gap-3 text-sm text-gray-600",children:e.jsx("span",{children:jt(new Date(S.created_date),"dd MMM yyyy HH:mm")})})]},S.id)})]}),e.jsx("div",{className:"lg:sticky lg:top-24 h-fit",children:a?e.jsxs("div",{className:"bg-white rounded-xl p-6 border border-gray-200",children:[e.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-6",children:"Detail"}),e.jsxs("div",{className:"space-y-4",children:[a.status&&e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Status"}),e.jsx("p",{className:"text-gray-900 font-semibold",children:a.status==="pending"?"â³ In wachtrij":a.status==="processing"?"âš™ï¸ Bezig met genereren":a.status==="completed"?"✅ Voltooid":"⌠Gefaald"}),a.error_message&&e.jsx("p",{className:"text-sm text-red-600 mt-1",children:a.error_message})]}),a.submission_id&&e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Rapport Link"}),e.jsx("div",{className:"flex items-center gap-2 mt-1",children:e.jsxs("a",{href:`/AIImpactRapport?report_id=${a.submission_id}`,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 text-blue-600 hover:text-blue-800 transition-colors",children:[e.jsx(zs,{className:"w-4 h-4"}),"Bekijk rapport"]})})]}),a.report_data&&e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Rapport Link"}),e.jsx("div",{className:"flex items-center gap-2 mt-1",children:e.jsxs("a",{href:`/AIImpactRapport?report_id=${a.id}`,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 text-blue-600 hover:text-blue-800 transition-colors",children:[e.jsx(zs,{className:"w-4 h-4"}),"Bekijk rapport"]})})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Website URL"}),e.jsx("p",{className:"text-gray-900",children:a.website_url})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Bedrijfsnaam"}),e.jsx("p",{className:"text-gray-900",children:a.company_name||((v=(j=a.report_data)==null?void 0:j.company_profile)==null?void 0:v.name)||"Niet opgegeven"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Branche"}),e.jsx("p",{className:"text-gray-900",children:a.industry||((N=(x=a.report_data)==null?void 0:x.company_profile)==null?void 0:N.sector)||"Niet opgegeven"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Email aanvrager"}),e.jsx("p",{className:"text-gray-900",children:a.user_email||a.submitted_by_email||"Niet opgegeven"})]}),a.user_name&&e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Naam aanvrager"}),e.jsx("p",{className:"text-gray-900",children:a.user_name})]}),((w=a.report_data)==null?void 0:w.quick_scan)&&e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Quick Scan"}),e.jsx("p",{className:"text-gray-900 text-sm",children:a.report_data.quick_scan.focus||"Niet beschikbaar"})]}),((A=(k=a.report_data)==null?void 0:k.opportunities)==null?void 0:A.length)>0&&e.jsxs("div",{children:[e.jsxs("label",{className:"text-sm font-medium text-gray-600",children:["AI Kansen (",a.report_data.opportunities.length,")"]}),e.jsx("ul",{className:"list-disc list-inside text-sm text-gray-900 space-y-1 mt-1",children:a.report_data.opportunities.map((S,E)=>e.jsx("li",{children:S.title},E))})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Email Status"}),e.jsx("div",{className:"flex items-center gap-2 mt-1",children:a.email_sent?e.jsxs(e.Fragment,{children:[e.jsx(gt,{className:"w-5 h-5 text-green-600"}),e.jsxs("span",{className:"text-green-600",children:["Verzonden op ",jt(new Date(a.email_sent_at),"dd MMM yyyy HH:mm")]})]}):e.jsxs(e.Fragment,{children:[e.jsx(eu,{className:"w-5 h-5 text-gray-400"}),e.jsx("span",{className:"text-gray-600",children:"Niet verzonden"}),a.email_error&&e.jsx("p",{className:"text-xs text-red-500 mt-1",children:a.email_error})]})})]}),e.jsx("div",{className:"pt-6 border-t border-gray-200 mt-6",children:e.jsxs(ae,{variant:"destructive",onClick:()=>{confirm("Weet je zeker dat je deze scan wilt verwijderen?")&&g.mutate(a.id)},disabled:g.isPending,className:"w-full",children:[e.jsx(wt,{className:"w-4 h-4 mr-2"}),g.isPending?"Verwijderen...":"Verwijderen"]})})]})]}):e.jsxs("div",{className:"bg-gray-50 rounded-xl p-12 text-center border-2 border-dashed border-gray-300",children:[e.jsx($t,{className:"w-12 h-12 text-gray-400 mx-auto mb-3"}),e.jsx("p",{className:"text-gray-600",children:"Selecteer een scan om details te bekijken"})]})})]})]})}):null}function kQ(){const{data:t=[],isLoading:n}=Fe({queryKey:["newsletter-subscribers"],queryFn:()=>ce.entities.NewsletterSubscriber.list("-subscription_date")}),r=()=>{const i=[["Email","Inschrijfdatum","Bron","Status"],...t.map(o=>[o.email,o.subscription_date?jt(new Date(o.subscription_date),"dd-MM-yyyy HH:mm"):"",o.source||"onbekend",o.is_active?"Actief":"Inactief"])].map(o=>o.join(",")).join(`
`),s=new Blob([i],{type:"text/csv;charset=utf-8;"}),a=document.createElement("a");a.href=URL.createObjectURL(s),a.download=`nieuwsbrief-subscribers-${jt(new Date,"dd-MM-yyyy")}.csv`,a.click()};return e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs("div",{className:"flex items-center justify-between mb-8",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx(de,{to:se("AdminDashboard"),children:e.jsx(ae,{variant:"outline",size:"icon",children:e.jsx(ht,{className:"w-5 h-5"})})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-3xl font-bold text-gray-900",children:"Nieuwsbrief Inschrijvingen"}),e.jsxs("p",{className:"text-gray-600",children:[t.length," abonnees"]})]})]}),e.jsxs(ae,{onClick:r,disabled:t.length===0,children:[e.jsx(yl,{className:"w-4 h-4 mr-2"}),"Exporteer CSV"]})]}),n?e.jsx("div",{className:"flex justify-center py-12",children:e.jsx("div",{className:"w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):t.length===0?e.jsxs("div",{className:"bg-white rounded-2xl p-12 text-center",children:[e.jsx(yi,{className:"w-16 h-16 text-gray-300 mx-auto mb-4"}),e.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-2",children:"Nog geen inschrijvingen"}),e.jsx("p",{className:"text-gray-600",children:"Er zijn nog geen nieuwsbrief abonnees"})]}):e.jsx("div",{className:"bg-white rounded-2xl border border-gray-200 overflow-hidden",children:e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full",children:[e.jsx("thead",{className:"bg-gray-50",children:e.jsxs("tr",{children:[e.jsx("th",{className:"px-6 py-4 text-left text-sm font-semibold text-gray-900",children:"Email"}),e.jsx("th",{className:"px-6 py-4 text-left text-sm font-semibold text-gray-900",children:"Inschrijfdatum"}),e.jsx("th",{className:"px-6 py-4 text-left text-sm font-semibold text-gray-900",children:"Bron"}),e.jsx("th",{className:"px-6 py-4 text-left text-sm font-semibold text-gray-900",children:"Status"})]})}),e.jsx("tbody",{className:"divide-y divide-gray-200",children:t.map(i=>e.jsxs("tr",{className:"hover:bg-gray-50",children:[e.jsx("td",{className:"px-6 py-4 text-sm text-gray-900",children:i.email}),e.jsx("td",{className:"px-6 py-4 text-sm text-gray-600",children:i.subscription_date?jt(new Date(i.subscription_date),"dd MMM yyyy HH:mm"):"-"}),e.jsx("td",{className:"px-6 py-4 text-sm text-gray-600",children:i.source||"onbekend"}),e.jsx("td",{className:"px-6 py-4",children:e.jsx("span",{className:`inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium ${i.is_active?"bg-green-100 text-green-800":"bg-gray-100 text-gray-800"}`,children:i.is_active?"Actief":"Inactief"})})]},i.id))})]})})})]})})}function _Q(){const[t,n]=D.useState(null),[r,i]=D.useState({title:"",video_url:"",publication_date:"",short_description:"",articles:[]}),s=Wt(),{data:a=[],isLoading:o}=Fe({queryKey:["nieuws"],queryFn:()=>ce.entities.DailyAINews.list("-publication_date")}),c=Me({mutationFn:v=>ce.entities.DailyAINews.create(v),onSuccess:()=>{s.invalidateQueries({queryKey:["nieuws"]}),f()}}),d=Me({mutationFn:({id:v,data:x})=>ce.entities.DailyAINews.update(v,x),onSuccess:()=>{s.invalidateQueries({queryKey:["nieuws"]}),f()}}),h=Me({mutationFn:v=>ce.entities.DailyAINews.delete(v),onSuccess:()=>{s.invalidateQueries({queryKey:["nieuws"]})}}),f=()=>{n(null),i({title:"",video_url:"",publication_date:"",short_description:"",articles:[]})},m=v=>{n(v),i(v)},p=v=>{v.preventDefault(),t?d.mutate({id:t.id,data:r}):c.mutate(r)},g=()=>{i({...r,articles:[...r.articles,{article_title:"",article_content:"",source_url:"",image_url:""}]})},y=(v,x,N)=>{const w=[...r.articles];w[v][x]=N,i({...r,articles:w})},j=v=>{i({...r,articles:r.articles.filter((x,N)=>N!==v)})};return t!==null?e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsx("div",{className:"mb-6",children:e.jsxs(ae,{variant:"outline",onClick:f,className:"gap-2",children:[e.jsx(ht,{className:"w-4 h-4"}),"Terug naar overzicht"]})}),e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-8",children:t?"Nieuws Bewerken":"Nieuw Nieuws Item"}),e.jsxs("form",{onSubmit:p,className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Titel *"}),e.jsx(me,{required:!0,value:r.title,onChange:v=>i({...r,title:v.target.value}),placeholder:"AI in 48 seconden - 7 januari 2026"})]}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Video URL *"}),e.jsx(me,{required:!0,value:r.video_url,onChange:v=>i({...r,video_url:v.target.value}),placeholder:"https://youtube.com/embed/..."})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Publicatiedatum *"}),e.jsx(me,{required:!0,type:"date",value:r.publication_date,onChange:v=>i({...r,publication_date:v.target.value})})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Korte beschrijving"}),e.jsx(me,{value:r.short_description,onChange:v=>i({...r,short_description:v.target.value}),placeholder:"Samenvatting voor sociale media..."})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700",children:"Nieuwsartikelen"}),e.jsxs(ae,{type:"button",onClick:g,size:"sm",variant:"outline",children:[e.jsx(Pt,{className:"w-4 h-4 mr-1"})," Artikel"]})]}),e.jsx("div",{className:"space-y-6",children:r.articles.map((v,x)=>e.jsxs("div",{className:"p-6 bg-gray-50 rounded-xl border-2 border-gray-200",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsxs("h4",{className:"font-semibold text-gray-900",children:["Artikel ",x+1]}),e.jsx(ae,{type:"button",variant:"ghost",size:"sm",onClick:()=>j(x),children:e.jsx(Ht,{className:"w-4 h-4"})})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsx(me,{placeholder:"Artikel titel",value:v.article_title,onChange:N=>y(x,"article_title",N.target.value)}),e.jsx(es,{value:v.article_content,onChange:N=>y(x,"article_content",N),placeholder:"Artikel inhoud..."}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[e.jsx(me,{placeholder:"Bron URL",value:v.source_url,onChange:N=>y(x,"source_url",N.target.value)}),e.jsx(me,{placeholder:"Afbeelding URL",value:v.image_url,onChange:N=>y(x,"image_url",N.target.value)})]})]})]},x))})]}),e.jsxs("div",{className:"flex gap-4 pt-6",children:[e.jsxs(ae,{type:"submit",className:"flex-1 gap-2",children:[e.jsx(Sn,{className:"w-4 h-4"}),t?"Bijwerken":"Aanmaken"]}),e.jsx(ae,{type:"button",variant:"outline",onClick:f,children:"Annuleren"})]})]})]})]})}):e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs("div",{className:"flex items-center justify-between mb-8",children:[e.jsxs("div",{children:[e.jsxs(de,{to:se("AdminDashboard"),className:"text-blue-600 hover:text-blue-700 mb-2 inline-flex items-center gap-1",children:[e.jsx(ht,{className:"w-4 h-4"}),"Terug naar dashboard"]}),e.jsx("h1",{className:"text-4xl font-bold text-gray-900",children:"Dagelijks AI Nieuws"})]}),e.jsxs(ae,{onClick:()=>n({}),children:[e.jsx(Pt,{className:"w-5 h-5 mr-2"}),"Nieuw Nieuws Item"]})]}),o?e.jsx("div",{className:"text-center py-12",children:e.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:a.map(v=>{var x;return e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"bg-white rounded-xl p-6 border border-gray-200 hover:shadow-lg transition-shadow",children:[e.jsxs("div",{className:"mb-4",children:[e.jsx("h3",{className:"font-bold text-lg text-gray-900 mb-2",children:v.title}),e.jsx("p",{className:"text-sm text-gray-600",children:new Date(v.publication_date).toLocaleDateString("nl-NL",{day:"numeric",month:"long",year:"numeric"})}),e.jsxs("p",{className:"text-sm text-gray-500 mt-2",children:[((x=v.articles)==null?void 0:x.length)||0," artikelen"]})]}),e.jsxs("div",{className:"flex gap-2 mt-4",children:[e.jsxs(ae,{size:"sm",variant:"outline",onClick:()=>m(v),className:"flex-1",children:[e.jsx(Pn,{className:"w-4 h-4 mr-1"}),"Bewerk"]}),e.jsx(ae,{size:"sm",variant:"ghost",onClick:()=>{confirm("Weet je zeker dat je dit nieuws item wilt verwijderen?")&&h.mutate(v.id)},children:e.jsx(wt,{className:"w-4 h-4"})})]})]},v.id)})})]})})}function SQ(){const[t,n]=D.useState(null),[r,i]=D.useState(!1),s=Wt(),{data:a=[],isLoading:o}=Fe({queryKey:["admin-solutions"],queryFn:()=>ce.entities.Solution.list("-sort_order",100),initialData:[]}),c=Me({mutationFn:y=>ce.entities.Solution.create(y),onSuccess:()=>{s.invalidateQueries({queryKey:["admin-solutions"]}),i(!1),n(null)}}),d=Me({mutationFn:({id:y,data:j})=>ce.entities.Solution.update(y,j),onSuccess:()=>{s.invalidateQueries({queryKey:["admin-solutions"]}),i(!1),n(null)}}),h=Me({mutationFn:y=>ce.entities.Solution.delete(y),onSuccess:()=>{s.invalidateQueries({queryKey:["admin-solutions"]})}}),f=y=>{y.preventDefault();const j=new FormData(y.target),v={title:j.get("title"),slug:j.get("slug"),subtitle:j.get("subtitle"),hero_title:j.get("hero_title"),hero_description:j.get("hero_description"),hero_image:j.get("hero_image"),short_description:j.get("short_description"),cta_title:j.get("cta_title"),cta_description:j.get("cta_description"),cta_button_text:j.get("cta_button_text"),cta_button_link:j.get("cta_button_link"),meta_description:j.get("meta_description"),published:j.get("published")==="on",featured:j.get("featured")==="on",sort_order:parseInt(j.get("sort_order"))||0,features:(t==null?void 0:t.features)||[],statistics:(t==null?void 0:t.statistics)||[],how_it_works:(t==null?void 0:t.how_it_works)||[],use_cases:(t==null?void 0:t.use_cases)||[],benefits:(t==null?void 0:t.benefits)||[],testimonial:(t==null?void 0:t.testimonial)||{}};t!=null&&t.id?d.mutate({id:t.id,data:v}):c.mutate(v)},m=y=>{n(y),i(!0)},p=y=>{confirm("Weet je zeker dat je deze oplossing wilt verwijderen?")&&h.mutate(y)},g=()=>{n({title:"",slug:"",subtitle:"",hero_title:"",hero_description:"",hero_image:"",short_description:"",published:!1,featured:!1,sort_order:0,features:[],statistics:[],how_it_works:[],use_cases:[],benefits:[],testimonial:{}}),i(!0)};return r?e.jsx("div",{className:"min-h-screen bg-gray-50 p-8",children:e.jsxs("div",{className:"max-w-4xl mx-auto",children:[e.jsxs("div",{className:"flex items-center justify-between mb-8",children:[e.jsx("h1",{className:"text-3xl font-bold",children:t!=null&&t.id?"Oplossing Bewerken":"Nieuwe Oplossing"}),e.jsxs(ae,{onClick:()=>{i(!1),n(null)},variant:"outline",children:[e.jsx(Ht,{className:"w-4 h-4 mr-2"}),"Annuleren"]})]}),e.jsxs("form",{onSubmit:f,className:"bg-white rounded-lg p-8 space-y-6",children:[e.jsxs("div",{className:"space-y-4",children:[e.jsx("h2",{className:"text-xl font-bold",children:"Basis Informatie"}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Titel *"}),e.jsx(me,{name:"title",defaultValue:t==null?void 0:t.title,required:!0})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Slug (URL) *"}),e.jsx(me,{name:"slug",defaultValue:t==null?void 0:t.slug,required:!0,placeholder:"bijv: ai-chatbot-platform"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Subtitel"}),e.jsx(me,{name:"subtitle",defaultValue:t==null?void 0:t.subtitle})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Korte Beschrijving *"}),e.jsx(pt,{name:"short_description",defaultValue:t==null?void 0:t.short_description,required:!0,rows:3})]})]}),e.jsxs("div",{className:"space-y-4 border-t pt-6",children:[e.jsx("h2",{className:"text-xl font-bold",children:"Hero Sectie"}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Hero Titel"}),e.jsx(me,{name:"hero_title",defaultValue:t==null?void 0:t.hero_title})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Hero Beschrijving"}),e.jsx(pt,{name:"hero_description",defaultValue:t==null?void 0:t.hero_description,rows:3})]}),e.jsx(na,{label:"Hero Afbeelding",name:"hero_image",value:t==null?void 0:t.hero_image,onChange:y=>n({...t,hero_image:y})})]}),e.jsxs("div",{className:"space-y-4 border-t pt-6",children:[e.jsx("h2",{className:"text-xl font-bold",children:"Call-to-Action"}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"CTA Titel"}),e.jsx(me,{name:"cta_title",defaultValue:t==null?void 0:t.cta_title})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"CTA Beschrijving"}),e.jsx(me,{name:"cta_description",defaultValue:t==null?void 0:t.cta_description})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"CTA Button Tekst"}),e.jsx(me,{name:"cta_button_text",defaultValue:t==null?void 0:t.cta_button_text})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"CTA Button Link"}),e.jsx(me,{name:"cta_button_link",defaultValue:t==null?void 0:t.cta_button_link})]})]}),e.jsxs("div",{className:"space-y-4 border-t pt-6",children:[e.jsx("h2",{className:"text-xl font-bold",children:"SEO & Publicatie"}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Meta Beschrijving"}),e.jsx(pt,{name:"meta_description",defaultValue:t==null?void 0:t.meta_description,rows:2})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Volgorde"}),e.jsx(me,{name:"sort_order",type:"number",defaultValue:(t==null?void 0:t.sort_order)||0})]}),e.jsxs("div",{className:"flex gap-6",children:[e.jsxs("label",{className:"flex items-center gap-2",children:[e.jsx("input",{type:"checkbox",name:"published",defaultChecked:t==null?void 0:t.published,className:"rounded"}),e.jsx("span",{className:"text-sm font-medium",children:"Gepubliceerd"})]}),e.jsxs("label",{className:"flex items-center gap-2",children:[e.jsx("input",{type:"checkbox",name:"featured",defaultChecked:t==null?void 0:t.featured,className:"rounded"}),e.jsx("span",{className:"text-sm font-medium",children:"Uitgelicht op homepage"})]})]})]}),e.jsx("div",{className:"bg-blue-50 border border-blue-200 rounded-lg p-4",children:e.jsxs("p",{className:"text-sm text-blue-800",children:[e.jsx("strong",{children:"Let op:"})," Voor het bewerken van Features, Statistieken, Stappen, Use Cases en Benefits, ga naar de database editor of gebruik de API. Deze zijn nog niet beschikbaar in dit formulier."]})}),e.jsxs("div",{className:"flex gap-4",children:[e.jsxs(ae,{type:"submit",disabled:c.isPending||d.isPending,children:[e.jsx(Sn,{className:"w-4 h-4 mr-2"}),t!=null&&t.id?"Bijwerken":"Aanmaken"]}),e.jsx(ae,{type:"button",variant:"outline",onClick:()=>{i(!1),n(null)},children:"Annuleren"})]})]})]})}):e.jsx("div",{className:"min-h-screen bg-gray-50 p-8",children:e.jsxs("div",{className:"max-w-7xl mx-auto",children:[e.jsxs("div",{className:"flex items-center justify-between mb-8",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx(de,{to:se("AdminDashboard"),children:e.jsxs(ae,{variant:"outline",size:"sm",children:[e.jsx(ht,{className:"w-4 h-4 mr-2"}),"Terug"]})}),e.jsx("h1",{className:"text-3xl font-bold",children:"AI Oplossingen Beheer"})]}),e.jsxs("div",{className:"flex gap-3",children:[e.jsx(de,{to:se("Oplossingen"),target:"_blank",children:e.jsxs(ae,{variant:"outline",children:[e.jsx(qs,{className:"w-4 h-4 mr-2"}),"Bekijk Pagina"]})}),e.jsxs(ae,{onClick:g,children:[e.jsx(Pt,{className:"w-4 h-4 mr-2"}),"Nieuwe Oplossing"]})]})]}),o?e.jsx("div",{className:"text-center py-12",children:e.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):a.length===0?e.jsxs("div",{className:"bg-white rounded-lg p-12 text-center",children:[e.jsx("p",{className:"text-gray-600 mb-4",children:"Nog geen oplossingen aangemaakt"}),e.jsxs(ae,{onClick:g,children:[e.jsx(Pt,{className:"w-4 h-4 mr-2"}),"Maak je eerste oplossing"]})]}):e.jsx("div",{className:"grid gap-6",children:a.map(y=>e.jsx("div",{className:"bg-white rounded-lg p-6 border border-gray-200",children:e.jsxs("div",{className:"flex items-start justify-between",children:[e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[e.jsx("h3",{className:"text-xl font-bold",children:y.title}),y.published?e.jsx("span",{className:"px-2 py-1 bg-green-100 text-green-800 text-xs font-semibold rounded",children:"Gepubliceerd"}):e.jsx("span",{className:"px-2 py-1 bg-gray-100 text-gray-800 text-xs font-semibold rounded",children:"Concept"}),y.featured&&e.jsx("span",{className:"px-2 py-1 bg-blue-100 text-blue-800 text-xs font-semibold rounded",children:"Uitgelicht"})]}),y.subtitle&&e.jsx("p",{className:"text-sm text-blue-600 font-medium mb-2",children:y.subtitle}),e.jsx("p",{className:"text-gray-600 mb-2",children:y.short_description}),e.jsxs("p",{className:"text-sm text-gray-500",children:["Slug: ",y.slug]})]}),e.jsxs("div",{className:"flex gap-2 ml-4",children:[e.jsx(de,{to:se(`OplossingDetail?slug=${y.slug}`),target:"_blank",children:e.jsx(ae,{variant:"outline",size:"sm",children:e.jsx(qs,{className:"w-4 h-4"})})}),e.jsx(ae,{variant:"outline",size:"sm",onClick:()=>m(y),children:e.jsx(Pn,{className:"w-4 h-4"})}),e.jsx(ae,{variant:"outline",size:"sm",onClick:()=>p(y.id),className:"text-red-600 hover:text-red-700",children:e.jsx(wt,{className:"w-4 h-4"})})]})]})},y.id))})]})})}function AQ(){const[t,n]=D.useState("AIConsultancy"),[r,i]=D.useState(null),[s,a]=D.useState({section_type:"custom",section_key:"",title:"",subtitle:"",content:"",image_url:"",cta_text:"",cta_link:"",items:[]}),o=Wt(),c=[{value:"AIConsultancy",label:"AI Consultancy"},{value:"AIDevelopment",label:"AI Development"},{value:"DevelopmentSupport",label:"Development Support"}],d=[{value:"hero",label:"Hero (Hoofdbanner)"},{value:"services",label:"Services (Diensten)"},{value:"process",label:"Process (Proces)"},{value:"benefits",label:"Benefits (Voordelen)"},{value:"cta",label:"CTA (Call to Action)"},{value:"custom",label:"Custom (Vrije sectie)"}],{data:h=[],isLoading:f}=Fe({queryKey:["pageSections",t],queryFn:()=>ce.entities.PageSection.filter({page_name:t},"sort_order")}),m=Me({mutationFn:k=>ce.entities.PageSection.create({...k,page_name:t}),onSuccess:()=>{o.invalidateQueries({queryKey:["pageSections",t]}),y()}}),p=Me({mutationFn:({id:k,data:A})=>ce.entities.PageSection.update(k,A),onSuccess:()=>{o.invalidateQueries({queryKey:["pageSections",t]}),y()}}),g=Me({mutationFn:k=>ce.entities.PageSection.delete(k),onSuccess:()=>{o.invalidateQueries({queryKey:["pageSections",t]})}}),y=()=>{i(null),a({section_type:"custom",section_key:"",title:"",subtitle:"",content:"",image_url:"",cta_text:"",cta_link:"",items:[],active:!0})},j=k=>{i(k),a({section_type:k.section_type,section_key:k.section_key,title:k.title||"",subtitle:k.subtitle||"",content:k.content||"",image_url:k.image_url||"",cta_text:k.cta_text||"",cta_link:k.cta_link||"",items:k.items||[],active:k.active!==!1})},v=k=>{k.preventDefault();const A={...s,sort_order:r?r.sort_order:h.length,active:s.active!==!1};r?p.mutate({id:r.id,data:A}):m.mutate(A)},x=()=>{a({...s,items:[...s.items,{title:"",description:"",icon:""}]})},N=(k,A,S)=>{const E=[...s.items];E[k][A]=S,a({...s,items:E})},w=k=>{a({...s,items:s.items.filter((A,S)=>S!==k)})};return e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsx("div",{className:"mb-6",children:e.jsxs(de,{to:se("AdminDashboard"),className:"text-blue-600 hover:text-blue-700 inline-flex items-center gap-1",children:[e.jsx(ht,{className:"w-4 h-4"}),"Terug naar dashboard"]})}),e.jsxs("div",{className:"mb-8",children:[e.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-2",children:"Pagina Builder"}),e.jsx("p",{className:"text-lg text-gray-600",children:"Bouw en beheer pagina secties met een drag-and-drop interface"})]}),e.jsxs("div",{className:"bg-white rounded-2xl p-6 border border-gray-200 mb-8",children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-3",children:"Selecteer Pagina"}),e.jsx("div",{className:"flex gap-2 flex-wrap",children:c.map(k=>e.jsx(ae,{variant:t===k.value?"default":"outline",onClick:()=>{n(k.value),y()},children:k.label},k.value))})]}),e.jsxs("div",{className:"grid lg:grid-cols-2 gap-8",children:[e.jsx("div",{children:e.jsxs("div",{className:"bg-white rounded-2xl p-6 border border-gray-200",children:[e.jsxs("div",{className:"flex items-center justify-between mb-6",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Pagina Secties"}),e.jsxs(ae,{onClick:()=>y(),children:[e.jsx(Pt,{className:"w-4 h-4 mr-2"}),"Nieuwe Sectie"]})]}),f?e.jsx("div",{className:"text-center py-8",children:e.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):h.length===0?e.jsxs("div",{className:"text-center py-12 bg-gray-50 rounded-lg",children:[e.jsx("p",{className:"text-gray-600 mb-2",children:"Nog geen secties op deze pagina"}),e.jsx("p",{className:"text-sm text-gray-500",children:'Klik op "Nieuwe Sectie" om te beginnen'})]}):e.jsx("div",{className:"space-y-3",children:h.map(k=>e.jsx("div",{className:`p-4 rounded-lg hover:bg-gray-100 transition-colors border-l-4 ${k.active?"bg-gray-50 border-blue-500":"bg-red-50 border-red-400 opacity-60"}`,children:e.jsxs("div",{className:"flex items-start justify-between",children:[e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[e.jsx("span",{className:`text-xs font-semibold uppercase ${k.active?"text-blue-600":"text-red-600"}`,children:k.section_type}),e.jsxs("span",{className:"text-xs text-gray-500",children:["#",k.sort_order]}),!k.active&&e.jsx("span",{className:"text-xs bg-red-100 text-red-700 px-2 py-0.5 rounded",children:"INACTIEF"})]}),e.jsx("p",{className:"font-bold text-gray-900",children:k.title||k.section_key}),k.subtitle&&e.jsx("p",{className:"text-sm text-gray-600 mt-1",children:k.subtitle})]}),e.jsxs("div",{className:"flex gap-2 ml-4",children:[e.jsx(ae,{size:"sm",variant:"ghost",onClick:()=>j(k),children:e.jsx(Pn,{className:"w-4 h-4"})}),e.jsx(ae,{size:"sm",variant:"ghost",onClick:()=>{confirm("Weet je zeker dat je deze sectie wilt verwijderen?")&&g.mutate(k.id)},children:e.jsx(wt,{className:"w-4 h-4"})})]})]})},k.id))})]})}),e.jsx("div",{children:e.jsxs("div",{className:"bg-white rounded-2xl p-6 border border-gray-200 sticky top-24",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:r?"Sectie Bewerken":"Nieuwe Sectie"}),e.jsxs("form",{onSubmit:v,className:"space-y-6",children:[e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Sectie Type *"}),e.jsxs(Ji,{value:s.section_type,onValueChange:k=>a({...s,section_type:k}),children:[e.jsx(wi,{children:e.jsx(Zi,{})}),e.jsx(Ni,{children:d.map(k=>e.jsx(St,{value:k.value,children:k.label},k.value))})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Sectie Key *"}),e.jsx(me,{required:!0,value:s.section_key,onChange:k=>a({...s,section_key:k.target.value}),placeholder:"bijv. hero_main"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Titel"}),e.jsx(me,{value:s.title,onChange:k=>a({...s,title:k.target.value}),placeholder:"Sectie titel..."})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Subtitel / Beschrijving"}),e.jsx(pt,{value:s.subtitle,onChange:k=>a({...s,subtitle:k.target.value}),placeholder:"Korte beschrijving...",rows:2})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Content (Rich Text)"}),e.jsx(es,{value:s.content,onChange:k=>a({...s,content:k}),placeholder:"Schrijf de content voor deze sectie..."})]}),e.jsx(na,{value:s.image_url,onChange:k=>a({...s,image_url:k}),label:"Afbeelding",recommendedSize:"1200x800px"}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"CTA Tekst"}),e.jsx(me,{value:s.cta_text,onChange:k=>a({...s,cta_text:k.target.value}),placeholder:"Neem contact op"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"CTA Link"}),e.jsx(me,{value:s.cta_link,onChange:k=>a({...s,cta_link:k.target.value}),placeholder:"/contact"})]})]}),e.jsx("div",{children:e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"checkbox",checked:s.active!==!1,onChange:k=>a({...s,active:k.target.checked}),className:"w-4 h-4 text-blue-600 rounded"}),e.jsx("span",{className:"text-sm font-medium text-gray-700",children:"Sectie actief (toon op pagina)"})]})}),e.jsxs("div",{className:"border-t pt-6",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700",children:"Items (voor services, process, benefits secties)"}),e.jsxs(ae,{type:"button",size:"sm",onClick:x,children:[e.jsx(Pt,{className:"w-4 h-4 mr-1"}),"Item toevoegen"]})]}),s.items.length>0&&e.jsx("div",{className:"space-y-4",children:s.items.map((k,A)=>e.jsxs("div",{className:"p-4 bg-gray-50 rounded-lg space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("span",{className:"text-sm font-semibold text-gray-700",children:["Item #",A+1]}),e.jsx(ae,{type:"button",size:"sm",variant:"ghost",onClick:()=>w(A),children:e.jsx(wt,{className:"w-4 h-4"})})]}),e.jsx(me,{placeholder:"Titel",value:k.title||"",onChange:S=>N(A,"title",S.target.value)}),e.jsx(pt,{placeholder:"Beschrijving",value:k.description||"",onChange:S=>N(A,"description",S.target.value),rows:2}),e.jsx(me,{placeholder:"Icon naam (bijv. Target, Brain, Code)",value:k.icon||"",onChange:S=>N(A,"icon",S.target.value)})]},A))})]}),e.jsxs("div",{className:"flex gap-4",children:[e.jsxs(ae,{type:"submit",className:"flex-1",children:[e.jsx(Sn,{className:"w-4 h-4 mr-2"}),r?"Bijwerken":"Aanmaken"]}),r&&e.jsx(ae,{type:"button",variant:"outline",onClick:y,children:"Annuleren"})]})]})]})})]})]})})}function CQ(){const[t,n]=D.useState("AIConsultancy"),[r,i]=D.useState(null),[s,a]=D.useState({section_key:"",content:"",content_type:"html"}),o=Wt(),c=[{value:"AIConsultancy",label:"AI Consultancy"},{value:"AIDevelopment",label:"AI Development"},{value:"DevelopmentSupport",label:"Development Support"},{value:"Home",label:"Home"}],{data:d=[],isLoading:h}=Fe({queryKey:["pageContent",t],queryFn:()=>ce.entities.PageContent.filter({page_name:t})}),f=Me({mutationFn:v=>ce.entities.PageContent.create({...v,page_name:t}),onSuccess:()=>{o.invalidateQueries({queryKey:["pageContent",t]}),g()}}),m=Me({mutationFn:({id:v,data:x})=>ce.entities.PageContent.update(v,x),onSuccess:()=>{o.invalidateQueries({queryKey:["pageContent",t]}),g()}}),p=Me({mutationFn:v=>ce.entities.PageContent.delete(v),onSuccess:()=>{o.invalidateQueries({queryKey:["pageContent",t]})}}),g=()=>{i(null),a({section_key:"",content:"",content_type:"html"})},y=v=>{i(v.id),a({section_key:v.section_key,content:v.content,content_type:v.content_type||"html"})},j=v=>{v.preventDefault(),r?m.mutate({id:r,data:s}):f.mutate(s)};return e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsx("div",{className:"mb-6",children:e.jsxs(de,{to:se("AdminDashboard"),className:"text-blue-600 hover:text-blue-700 inline-flex items-center gap-1",children:[e.jsx(ht,{className:"w-4 h-4"}),"Terug naar dashboard"]})}),e.jsxs("div",{className:"mb-8",children:[e.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-2",children:"Pagina Editor"}),e.jsx("p",{className:"text-lg text-gray-600",children:"Beheer de content van statische pagina's zoals AI Consultancy, Development Support, etc."})]}),e.jsxs("div",{className:"bg-white rounded-2xl p-6 border border-gray-200 mb-8",children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-3",children:"Selecteer Pagina"}),e.jsx("div",{className:"flex gap-2 flex-wrap",children:c.map(v=>e.jsx(ae,{variant:t===v.value?"default":"outline",onClick:()=>n(v.value),children:v.label},v.value))})]}),e.jsxs("div",{className:"grid lg:grid-cols-2 gap-8",children:[e.jsx("div",{children:e.jsxs("div",{className:"bg-white rounded-2xl p-6 border border-gray-200",children:[e.jsxs("div",{className:"flex items-center justify-between mb-6",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Content Secties"}),e.jsxs(ae,{onClick:()=>g(),children:[e.jsx(Pt,{className:"w-4 h-4 mr-2"}),"Nieuw"]})]}),h?e.jsx("div",{className:"text-center py-8",children:e.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):d.length===0?e.jsxs("div",{className:"text-center py-12 text-gray-500",children:[e.jsx("p",{children:"Nog geen content secties."}),e.jsx("p",{className:"text-sm mt-2",children:'Klik op "Nieuw" om te beginnen.'})]}):e.jsx("div",{className:"space-y-3",children:d.map(v=>{var x;return e.jsx("div",{className:"p-4 bg-gray-50 rounded-lg hover:bg-gray-100 transition-colors",children:e.jsxs("div",{className:"flex items-start justify-between",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"font-semibold text-gray-900",children:v.section_key}),e.jsxs("p",{className:"text-sm text-gray-600 line-clamp-2 mt-1",children:[(x=v.content)==null?void 0:x.substring(0,100),"..."]})]}),e.jsxs("div",{className:"flex gap-2 ml-4",children:[e.jsx(ae,{size:"sm",variant:"ghost",onClick:()=>y(v),children:e.jsx(Pn,{className:"w-4 h-4"})}),e.jsx(ae,{size:"sm",variant:"ghost",onClick:()=>{confirm("Weet je zeker dat je deze sectie wilt verwijderen?")&&p.mutate(v.id)},children:e.jsx(wt,{className:"w-4 h-4"})})]})]})},v.id)})})]})}),e.jsx("div",{children:e.jsxs("div",{className:"bg-white rounded-2xl p-6 border border-gray-200 sticky top-24",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:r?"Sectie Bewerken":"Nieuwe Sectie"}),e.jsxs("form",{onSubmit:j,className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Sectie Key *"}),e.jsx(me,{required:!0,value:s.section_key,onChange:v=>a({...s,section_key:v.target.value}),placeholder:"bijv. hero_title, services_intro"}),e.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Unieke identifier voor deze sectie"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Content *"}),e.jsx(es,{value:s.content,onChange:v=>a({...s,content:v}),placeholder:"Schrijf de content voor deze sectie..."})]}),e.jsxs("div",{className:"flex gap-4",children:[e.jsxs(ae,{type:"submit",className:"flex-1",children:[e.jsx(Sn,{className:"w-4 h-4 mr-2"}),r?"Bijwerken":"Aanmaken"]}),r&&e.jsx(ae,{type:"button",variant:"outline",onClick:g,children:"Annuleren"})]})]})]})})]}),e.jsxs("div",{className:"mt-8 bg-blue-50 border border-blue-200 rounded-2xl p-6",children:[e.jsx("h3",{className:"font-bold text-blue-900 mb-2",children:"💡 Hoe werkt dit?"}),e.jsxs("ul",{className:"text-blue-800 space-y-1 text-sm",children:[e.jsx("li",{children:'• Maak content secties aan met een unieke "section_key"'}),e.jsx("li",{children:"• Gebruik deze keys in je pagina code om dynamische content te laden"}),e.jsxs("li",{children:["• Bijvoorbeeld: ",e.jsx("code",{className:"bg-blue-100 px-1 rounded",children:"hero_title"}),", ",e.jsx("code",{className:"bg-blue-100 px-1 rounded",children:"services_description"})]}),e.jsx("li",{children:"• Content wordt opgeslagen in de PageContent entity"})]})]})]})})}function EQ(){const t=Wt(),[n,r]=D.useState(null),[i,s]=D.useState(!1),[a,o]=D.useState({name:"",type:"main_analysis",prompt_template:"",is_active:!0,priority:0}),[c,d]=D.useState("all"),{data:h=[],isLoading:f}=Fe({queryKey:["impact-prompts"],queryFn:()=>ce.entities.ImpactReportPrompt.list("-priority")}),m=Me({mutationFn:E=>ce.entities.ImpactReportPrompt.create(E),onSuccess:()=>{t.invalidateQueries({queryKey:["impact-prompts"]}),s(!1),y()}}),p=Me({mutationFn:({id:E,data:C})=>ce.entities.ImpactReportPrompt.update(E,C),onSuccess:()=>{t.invalidateQueries({queryKey:["impact-prompts"]}),r(null),y()}}),g=Me({mutationFn:E=>ce.entities.ImpactReportPrompt.delete(E),onSuccess:()=>{t.invalidateQueries({queryKey:["impact-prompts"]})}}),y=()=>{o({name:"",type:"main_analysis",prompt_template:"",is_active:!0,priority:0})},j=E=>{r(E.id),o({name:E.name,type:E.type,prompt_template:E.prompt_template,is_active:E.is_active,priority:E.priority||0})},v=()=>{n?p.mutate({id:n,data:a}):m.mutate(a)},x=()=>{r(null),s(!1),y()},N=E=>{navigator.clipboard.writeText(E.prompt_template),alert("Prompt gekopieerd naar klembord!")},w=[{value:"main_analysis",label:"Hoofd Analyse",color:"blue"},{value:"quick_scan",label:"Quick Scan",color:"green"},{value:"opportunities",label:"AI Kansen",color:"purple"},{value:"productivity",label:"Productiviteit",color:"orange"},{value:"action_plan",label:"Actieplan",color:"red"}],k=c==="all"?h:h.filter(E=>E.type===c),A=E=>{const C=w.find(B=>B.value===E);return C?C.label:E},S=E=>{const C=w.find(B=>B.value===E);return C?C.color:"gray"};return f?e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-gray-50 to-white flex items-center justify-center",children:e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"w-16 h-16 border-4 border-blue-600 border-t-transparent rounded-full animate-spin mx-auto mb-4"}),e.jsx("p",{className:"text-gray-600",children:"Prompts laden..."})]})}):e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-gray-50 to-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs("div",{className:"mb-8",children:[e.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-4",children:"Prompt Library"}),e.jsx("p",{className:"text-xl text-gray-600",children:"Beheer alle AI prompts die worden gebruikt op de website"})]}),e.jsxs("div",{className:"mb-8 flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("button",{onClick:()=>d("all"),className:`px-4 py-2 rounded-lg font-medium transition-colors ${c==="all"?"bg-blue-600 text-white":"bg-white text-gray-700 border border-gray-200 hover:bg-gray-50"}`,children:["Alle (",h.length,")"]}),w.map(E=>{const C=h.filter(B=>B.type===E.value).length;return e.jsxs("button",{onClick:()=>d(E.value),className:`px-4 py-2 rounded-lg font-medium transition-colors ${c===E.value?`bg-${E.color}-600 text-white`:"bg-white text-gray-700 border border-gray-200 hover:bg-gray-50"}`,children:[E.label," (",C,")"]},E.value)})]}),!i&&!n&&e.jsxs(ae,{onClick:()=>s(!0),className:"bg-blue-600 hover:bg-blue-700 text-white",children:[e.jsx(Pt,{className:"w-5 h-5 mr-2"}),"Nieuwe Prompt"]})]}),(i||n)&&e.jsxs(Z.div,{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},className:"bg-white rounded-2xl p-8 border-2 border-blue-200 mb-8",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:n?"Prompt Bewerken":"Nieuwe Prompt Maken"}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Naam *"}),e.jsx(me,{value:a.name,onChange:E=>o({...a,name:E.target.value}),placeholder:"Bijv: Impact Report Hoofd Prompt v2"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Type *"}),e.jsx("select",{value:a.type,onChange:E=>o({...a,type:E.target.value}),className:"w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",children:w.map(E=>e.jsx("option",{value:E.value,children:E.label},E.value))})]})]}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Prioriteit"}),e.jsx(me,{type:"number",value:a.priority,onChange:E=>o({...a,priority:parseInt(E.target.value)||0}),placeholder:"0"}),e.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Hoger getal = hogere prioriteit"})]}),e.jsx("div",{children:e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"checkbox",checked:a.is_active,onChange:E=>o({...a,is_active:E.target.checked}),className:"w-5 h-5 text-blue-600 rounded focus:ring-blue-500"}),e.jsx("span",{className:"text-sm font-medium text-gray-700",children:"Actief"})]})})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Prompt Template *"}),e.jsx(pt,{value:a.prompt_template,onChange:E=>o({...a,prompt_template:E.target.value}),placeholder:"Schrijf hier je prompt template...",className:"min-h-96 font-mono text-sm"}),e.jsxs("p",{className:"text-xs text-gray-500 mt-1",children:["Gebruik placeholders zoals ","${website_content}",", ","${industry}",", etc."]})]}),e.jsxs("div",{className:"flex gap-3",children:[e.jsxs(ae,{onClick:v,disabled:!a.name||!a.prompt_template,className:"bg-blue-600 hover:bg-blue-700 text-white",children:[e.jsx(Sn,{className:"w-5 h-5 mr-2"}),"Opslaan"]}),e.jsxs(ae,{onClick:x,variant:"outline",children:[e.jsx(Ht,{className:"w-5 h-5 mr-2"}),"Annuleren"]})]})]})]}),e.jsx("div",{className:"space-y-4",children:k.length===0?e.jsxs("div",{className:"text-center py-12 bg-white rounded-2xl border border-gray-200",children:[e.jsx($t,{className:"w-16 h-16 text-gray-400 mx-auto mb-4"}),e.jsx("p",{className:"text-gray-600",children:"Geen prompts gevonden"})]}):k.map((E,C)=>e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:C*.05},className:"bg-white rounded-2xl p-6 border border-gray-200 hover:border-gray-300 transition-all",children:[e.jsxs("div",{className:"flex items-start justify-between mb-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:`w-12 h-12 bg-${S(E.type)}-100 rounded-xl flex items-center justify-center`,children:e.jsx($t,{className:`w-6 h-6 text-${S(E.type)}-600`})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-bold text-gray-900",children:E.name}),e.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[e.jsx("span",{className:`px-2 py-1 rounded text-xs font-semibold bg-${S(E.type)}-100 text-${S(E.type)}-800`,children:A(E.type)}),E.is_active?e.jsxs("span",{className:"px-2 py-1 rounded text-xs font-semibold bg-green-100 text-green-800 flex items-center gap-1",children:[e.jsx(gt,{className:"w-3 h-3"}),"Actief"]}):e.jsxs("span",{className:"px-2 py-1 rounded text-xs font-semibold bg-gray-100 text-gray-800 flex items-center gap-1",children:[e.jsx(Tr,{className:"w-3 h-3"}),"Inactief"]}),E.priority>0&&e.jsxs("span",{className:"px-2 py-1 rounded text-xs font-semibold bg-amber-100 text-amber-800",children:["Prioriteit: ",E.priority]})]})]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("button",{onClick:()=>N(E),className:"p-2 text-gray-600 hover:text-blue-600 hover:bg-blue-50 rounded-lg transition-colors",title:"Kopieer prompt",children:e.jsx(e8,{className:"w-5 h-5"})}),e.jsx("button",{onClick:()=>j(E),className:"p-2 text-gray-600 hover:text-blue-600 hover:bg-blue-50 rounded-lg transition-colors",title:"Bewerk",children:e.jsx(Pn,{className:"w-5 h-5"})}),e.jsx("button",{onClick:()=>{confirm(`Weet je zeker dat je "${E.name}" wilt verwijderen?`)&&g.mutate(E.id)},className:"p-2 text-gray-600 hover:text-red-600 hover:bg-red-50 rounded-lg transition-colors",title:"Verwijderen",children:e.jsx(wt,{className:"w-5 h-5"})})]})]}),e.jsx("div",{className:"bg-gray-50 rounded-lg p-4 border border-gray-200",children:e.jsx("p",{className:"text-sm text-gray-600 font-mono whitespace-pre-wrap line-clamp-3",children:E.prompt_template})}),e.jsxs("div",{className:"flex items-center gap-4 mt-3 text-sm text-gray-500",children:[e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(y8,{className:"w-4 h-4"}),"Gemaakt: ",new Date(E.created_date).toLocaleDateString("nl-NL")]}),E.updated_date&&e.jsxs("span",{children:["Bijgewerkt: ",new Date(E.updated_date).toLocaleDateString("nl-NL")]})]})]},E.id))})]})})}function TQ(){const[t,n]=D.useState(null),[r,i]=D.useState({text:"",author:"",role:"",rating:5,active:!0,sort_order:0}),s=Wt(),{data:a=[],isLoading:o}=Fe({queryKey:["reviews"],queryFn:()=>ce.entities.Review.list("sort_order")}),c=Me({mutationFn:g=>ce.entities.Review.create(g),onSuccess:()=>{s.invalidateQueries({queryKey:["reviews"]}),f()}}),d=Me({mutationFn:({id:g,data:y})=>ce.entities.Review.update(g,y),onSuccess:()=>{s.invalidateQueries({queryKey:["reviews"]}),f()}}),h=Me({mutationFn:g=>ce.entities.Review.delete(g),onSuccess:()=>{s.invalidateQueries({queryKey:["reviews"]})}}),f=()=>{n(null),i({text:"",author:"",role:"",rating:5,active:!0,sort_order:0})},m=g=>{n(g.id),i(g)},p=g=>{g.preventDefault(),t?d.mutate({id:t,data:r}):c.mutate(r)};return e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs("div",{className:"flex items-center gap-4 mb-8",children:[e.jsx(de,{to:se("AdminDashboard"),children:e.jsx(ae,{variant:"outline",size:"icon",children:e.jsx(ht,{className:"w-5 h-5"})})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-3xl font-bold text-gray-900",children:"Reviews Beheren"}),e.jsx("p",{className:"text-gray-600",children:"Beheer klantreviews voor de homepage"})]})]}),e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200 mb-8",children:[e.jsx("h2",{className:"text-xl font-bold mb-6",children:t?"Review Bewerken":"Nieuwe Review"}),e.jsxs("form",{onSubmit:p,className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-2",children:"Review Tekst *"}),e.jsx(pt,{value:r.text,onChange:g=>i({...r,text:g.target.value}),placeholder:"Wat zegt de klant over jullie?",className:"min-h-[120px]",required:!0})]}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-2",children:"Naam Auteur *"}),e.jsx(me,{value:r.author,onChange:g=>i({...r,author:g.target.value}),placeholder:"Bijv. Paul van Beckhoven",required:!0})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-2",children:"Functie & Bedrijf *"}),e.jsx(me,{value:r.role,onChange:g=>i({...r,role:g.target.value}),placeholder:"Bijv. CEO, HIPHOT",required:!0})]})]}),e.jsxs("div",{className:"grid md:grid-cols-3 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-2",children:"Rating (sterren)"}),e.jsx("div",{className:"flex items-center gap-2",children:[1,2,3,4,5].map(g=>e.jsx("button",{type:"button",onClick:()=>i({...r,rating:g}),className:"p-1",children:e.jsx(ru,{className:`w-6 h-6 ${g<=r.rating?"fill-yellow-400 text-yellow-400":"text-gray-300"}`})},g))})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-2",children:"Sorteervolgorde"}),e.jsx(me,{type:"number",value:r.sort_order,onChange:g=>i({...r,sort_order:parseInt(g.target.value)})})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-2",children:"Status"}),e.jsxs("select",{value:r.active,onChange:g=>i({...r,active:g.target.value==="true"}),className:"w-full h-12 px-4 border-b-2 border-gray-200 focus:border-[#FAB868] bg-white",children:[e.jsx("option",{value:"true",children:"Actief"}),e.jsx("option",{value:"false",children:"Inactief"})]})]})]}),e.jsxs("div",{className:"flex gap-3",children:[e.jsx(ae,{type:"submit",disabled:c.isPending||d.isPending,children:t?"Bijwerken":"Toevoegen"}),t&&e.jsx(ae,{type:"button",variant:"outline",onClick:f,children:"Annuleren"})]})]})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("h2",{className:"text-xl font-bold",children:["Huidige Reviews (",a.length,")"]}),o?e.jsx("div",{className:"text-center py-12 text-gray-500",children:"Laden..."}):a.length===0?e.jsx("div",{className:"bg-white rounded-2xl p-12 border border-gray-200 text-center",children:e.jsx("p",{className:"text-gray-500",children:"Nog geen reviews. Voeg de eerste toe!"})}):e.jsx("div",{className:"grid md:grid-cols-2 gap-6",children:a.map(g=>e.jsxs("div",{className:`bg-white rounded-2xl p-6 border-2 ${g.active?"border-gray-200":"border-red-200 opacity-60"}`,children:[e.jsxs("div",{className:"flex items-start justify-between mb-4",children:[e.jsx("div",{className:"flex items-center gap-1",children:[...Array(g.rating)].map((y,j)=>e.jsx(ru,{className:"w-4 h-4 fill-yellow-400 text-yellow-400"},j))}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(ae,{size:"sm",variant:"ghost",onClick:()=>m(g),children:e.jsx(Pn,{className:"w-4 h-4"})}),e.jsx(ae,{size:"sm",variant:"ghost",onClick:()=>h.mutate(g.id),children:e.jsx(wt,{className:"w-4 h-4"})})]})]}),e.jsxs("p",{className:"text-gray-700 mb-4 italic",children:['"',g.text,'"']}),e.jsxs("div",{className:"border-t pt-4",children:[e.jsx("p",{className:"font-semibold text-gray-900",children:g.author}),e.jsx("p",{className:"text-sm text-gray-500",children:g.role})]}),!g.active&&e.jsx("div",{className:"mt-3 text-xs text-red-600 font-medium",children:"Inactief"})]},g.id))})]})]})})}function OQ(){const[t,n]=D.useState(""),r=Wt(),{data:i,isLoading:s}=Fe({queryKey:["robotsTxt"],queryFn:async()=>{const d=await ce.entities.PageContent.filter({page_name:"SEO",section_key:"robots_txt"});return d&&d.length>0?(n(d[0].content),d[0]):null}}),a=Me({mutationFn:async d=>i?ce.entities.PageContent.update(i.id,{content:d}):ce.entities.PageContent.create({page_name:"SEO",section_key:"robots_txt",content:d,content_type:"text"}),onSuccess:()=>{r.invalidateQueries({queryKey:["robotsTxt"]}),alert("Robots.txt opgeslagen!")}}),o=()=>{a.mutate(t)},c=`User-agent: *
Allow: /
# Disallow admin pages
Disallow: /Admin*
# Sitemap
Sitemap: https://48-7.nl/sitemap.xml
# Crawl-delay
Crawl-delay: 1`;return e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsx("div",{className:"mb-6",children:e.jsxs(de,{to:se("AdminDashboard"),className:"text-blue-600 hover:text-blue-700 inline-flex items-center gap-1",children:[e.jsx(ht,{className:"w-4 h-4"}),"Terug naar dashboard"]})}),e.jsxs("div",{className:"mb-8",children:[e.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-2",children:"SEO Tools"}),e.jsx("p",{className:"text-lg text-gray-600",children:"Beheer robots.txt, sitemap en andere SEO instellingen"})]}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-6 mb-8",children:[e.jsxs("div",{className:"bg-white rounded-2xl p-6 border border-gray-200",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"w-12 h-12 bg-green-100 rounded-xl flex items-center justify-center",children:e.jsx(f8,{className:"w-6 h-6 text-green-600"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-bold text-gray-900",children:"Sitemap.xml"}),e.jsx("p",{className:"text-sm text-gray-600",children:"XML sitemap voor zoekmachines"})]})]}),e.jsx("p",{className:"text-gray-700 mb-4",children:"De sitemap wordt automatisch gegenereerd op basis van je gepubliceerde content."}),e.jsxs("button",{onClick:async()=>{const d=await ce.functions.invoke("sitemap",{}),h=new Blob([d.data],{type:"application/xml"}),f=window.URL.createObjectURL(h);window.open(f,"_blank")},className:"inline-flex items-center gap-2 text-blue-600 hover:text-blue-700 font-medium",children:["Bekijk sitemap",e.jsx(zs,{className:"w-4 h-4"})]})]}),e.jsxs("div",{className:"bg-white rounded-2xl p-6 border border-gray-200",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"w-12 h-12 bg-purple-100 rounded-xl flex items-center justify-center",children:e.jsx(C4,{className:"w-6 h-6 text-purple-600"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-bold text-gray-900",children:"LLM.txt"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Content voor AI crawlers"})]})]}),e.jsx("p",{className:"text-gray-700 mb-4",children:"LLM.txt helpt AI systemen je site te begrijpen. Wordt automatisch gegenereerd."}),e.jsxs("button",{onClick:async()=>{const d=await ce.functions.invoke("llmtxt",{}),h=new Blob([d.data],{type:"text/plain"}),f=window.URL.createObjectURL(h);window.open(f,"_blank")},className:"inline-flex items-center gap-2 text-blue-600 hover:text-blue-700 font-medium",children:["Bekijk llm.txt",e.jsx(zs,{className:"w-4 h-4"})]})]})]}),e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx("div",{className:"w-12 h-12 bg-blue-100 rounded-xl flex items-center justify-center",children:e.jsx($t,{className:"w-6 h-6 text-blue-600"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900",children:"Robots.txt"}),e.jsx("p",{className:"text-gray-600",children:"Configureer welke pagina's zoekmachines mogen crawlen"})]})]}),s?e.jsx("div",{className:"text-center py-8",children:e.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"mb-4",children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Robots.txt Content"}),e.jsx(pt,{value:t,onChange:d=>n(d.target.value),placeholder:c,rows:15,className:"font-mono text-sm"}),e.jsx("p",{className:"text-xs text-gray-500 mt-2",children:"Let op: Gebruik correcte syntax. Verkeerde configuratie kan invloed hebben op je SEO."})]}),e.jsxs("div",{className:"flex gap-4",children:[e.jsxs(ae,{onClick:o,className:"gap-2",children:[e.jsx(Sn,{className:"w-4 h-4"}),"Opslaan"]}),e.jsx(ae,{variant:"outline",onClick:()=>n(c),children:"Reset naar default"}),e.jsxs("button",{onClick:async()=>{const d=await ce.functions.invoke("robotstxt",{}),h=new Blob([d.data],{type:"text/plain"}),f=window.URL.createObjectURL(h);window.open(f,"_blank")},className:"inline-flex items-center gap-2 px-4 py-2 text-blue-600 hover:text-blue-700 font-medium",children:["Bekijk live versie",e.jsx(zs,{className:"w-4 h-4"})]})]})]})]}),e.jsxs("div",{className:"mt-8 bg-blue-50 border border-blue-200 rounded-2xl p-6",children:[e.jsx("h3",{className:"font-bold text-blue-900 mb-3",children:"📚 SEO Documentatie"}),e.jsxs("ul",{className:"text-blue-800 space-y-2 text-sm",children:[e.jsxs("li",{children:["• ",e.jsx("strong",{children:"Sitemap.xml:"})," Via backend function 'sitemap' - automatisch bijgewerkt"]}),e.jsxs("li",{children:["• ",e.jsx("strong",{children:"Robots.txt:"})," Via backend function 'robotstxt' - configureerbaar via deze pagina"]}),e.jsxs("li",{children:["• ",e.jsx("strong",{children:"LLM.txt:"})," Via backend function 'llmtxt' - geoptimaliseerd voor AI crawlers"]}),e.jsx("li",{children:"• Deze functions zijn toegankelijk via het Base44 function endpoint systeem"}),e.jsx("li",{children:"• SEO meta tags worden automatisch gegenereerd per pagina"}),e.jsx("li",{children:"• Canonical URLs voorkomen duplicate content issues"})]})]})]})})}var $f="Switch",[PQ]=no($f),[DQ,IQ]=PQ($f),YT=D.forwardRef((t,n)=>{const{__scopeSwitch:r,name:i,checked:s,defaultChecked:a,required:o,disabled:c,value:d="on",onCheckedChange:h,form:f,...m}=t,[p,g]=D.useState(null),y=Xt(n,w=>g(w)),j=D.useRef(!1),v=p?f||!!p.closest("form"):!0,[x,N]=xl({prop:s,defaultProp:a??!1,onChange:h,caller:$f});return e.jsxs(DQ,{scope:r,checked:x,disabled:c,children:[e.jsx(Nt.button,{type:"button",role:"switch","aria-checked":x,"aria-required":o,"data-state":e6(x),"data-disabled":c?"":void 0,disabled:c,value:d,...m,ref:y,onClick:bt(t.onClick,w=>{N(k=>!k),v&&(j.current=w.isPropagationStopped(),j.current||w.stopPropagation())})}),v&&e.jsx(ZT,{control:p,bubbles:!j.current,name:i,value:d,checked:x,required:o,disabled:c,form:f,style:{transform:"translateX(-100%)"}})]})});YT.displayName=$f;var XT="SwitchThumb",JT=D.forwardRef((t,n)=>{const{__scopeSwitch:r,...i}=t,s=IQ(XT,r);return e.jsx(Nt.span,{"data-state":e6(s.checked),"data-disabled":s.disabled?"":void 0,...i,ref:n})});JT.displayName=XT;var RQ="SwitchBubbleInput",ZT=D.forwardRef(({__scopeSwitch:t,control:n,checked:r,bubbles:i=!0,...s},a)=>{const o=D.useRef(null),c=Xt(o,a),d=ub(r),h=ob(n);return D.useEffect(()=>{const f=o.current;if(!f)return;const m=window.HTMLInputElement.prototype,g=Object.getOwnPropertyDescriptor(m,"checked").set;if(d!==r&&g){const y=new Event("click",{bubbles:i});g.call(f,r),f.dispatchEvent(y)}},[d,r,i]),e.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...s,tabIndex:-1,ref:c,style:{...s.style,...h,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});ZT.displayName=RQ;function e6(t){return t?"checked":"unchecked"}var t6=YT,FQ=JT;const Yc=D.forwardRef(({className:t,...n},r)=>e.jsx(t6,{className:Yt("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors 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 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",t),...n,ref:r,children:e.jsx(FQ,{className:Yt("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})}));Yc.displayName=t6.displayName;function MQ(){const[t,n]=D.useState({type:"blog",name:"",slug:""}),[r,i]=D.useState(null),[s,a]=D.useState(""),[o,c]=D.useState({linkedin:"",instagram:"",twitter:"",youtube:""}),[d,h]=D.useState(!0),[f,m]=D.useState(!0),[p,g]=D.useState(!0),y=Wt(),{data:j=[],isLoading:v}=Fe({queryKey:["categories"],queryFn:()=>ce.entities.Category.list("sort_order")}),{data:x=[]}=Fe({queryKey:["site-settings"],queryFn:()=>ce.entities.SiteSettings.list()});Ot.useEffect(()=>{const q=x.find(V=>V.setting_key==="logo_url");q&&a(q.value);const U=x.find(V=>V.setting_key==="linkedin_url"),Q=x.find(V=>V.setting_key==="instagram_url"),H=x.find(V=>V.setting_key==="twitter_url"),K=x.find(V=>V.setting_key==="youtube_url"),Y=x.find(V=>V.setting_key==="show_blog"),P=x.find(V=>V.setting_key==="show_news"),T=x.find(V=>V.setting_key==="show_training_calendar");c({linkedin:(U==null?void 0:U.value)||"",instagram:(Q==null?void 0:Q.value)||"",twitter:(H==null?void 0:H.value)||"",youtube:(K==null?void 0:K.value)||""}),h((Y==null?void 0:Y.value)!=="false"),m((P==null?void 0:P.value)!=="false"),g((T==null?void 0:T.value)!=="false")},[x]);const N=Me({mutationFn:q=>ce.entities.Category.create(q),onSuccess:()=>{y.invalidateQueries({queryKey:["categories"]}),n({type:"blog",name:"",slug:""})}});Me({mutationFn:({id:q,data:U})=>ce.entities.Category.update(q,U),onSuccess:()=>{y.invalidateQueries({queryKey:["categories"]}),i(null)}});const w=Me({mutationFn:q=>ce.entities.Category.delete(q),onSuccess:()=>{y.invalidateQueries({queryKey:["categories"]})}}),k=Me({mutationFn:async q=>{const U=x.find(Q=>Q.setting_key==="logo_url");return U?ce.entities.SiteSettings.update(U.id,{value:q}):ce.entities.SiteSettings.create({setting_key:"logo_url",value:q,description:"Website logo URL"})},onSuccess:()=>{y.invalidateQueries({queryKey:["site-settings"]}),alert("Logo succesvol opgeslagen!")}}),A=Me({mutationFn:async({key:q,value:U,description:Q})=>{const H=x.find(K=>K.setting_key===q);return H?ce.entities.SiteSettings.update(H.id,{value:String(U)}):ce.entities.SiteSettings.create({setting_key:q,value:String(U),description:Q})},onSuccess:()=>{y.invalidateQueries({queryKey:["site-settings"]})}}),S=async()=>{try{await Promise.all([A.mutateAsync({key:"linkedin_url",value:o.linkedin,description:"LinkedIn URL"}),A.mutateAsync({key:"instagram_url",value:o.instagram,description:"Instagram URL"}),A.mutateAsync({key:"twitter_url",value:o.twitter,description:"Twitter URL"}),A.mutateAsync({key:"youtube_url",value:o.youtube,description:"YouTube URL"})]),alert("Social media URLs opgeslagen!")}catch{alert("Er ging iets mis bij het opslaan")}},E=async q=>{h(q),await A.mutateAsync({key:"show_blog",value:q?"true":"false",description:"Blog zichtbaar"})},C=async q=>{m(q),await A.mutateAsync({key:"show_news",value:q?"true":"false",description:"Nieuws zichtbaar"})},B=async q=>{g(q),await A.mutateAsync({key:"show_training_calendar",value:q?"true":"false",description:"Training kalender zichtbaar"})},F=q=>{t.name.trim()&&N.mutate({type:q,name:t.name.trim(),slug:t.slug||t.name.toLowerCase().replace(/\s+/g,"-"),active:!0})},I=j.filter(q=>q.type==="blog"),R=j.filter(q=>q.type==="case"),z=j.filter(q=>q.type==="training");return e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsx("div",{className:"mb-6",children:e.jsxs(de,{to:se("AdminDashboard"),className:"text-blue-600 hover:text-blue-700 inline-flex items-center gap-1",children:[e.jsx(ht,{className:"w-4 h-4"}),"Terug naar dashboard"]})}),e.jsxs("div",{className:"mb-8",children:[e.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-2",children:"Instellingen"}),e.jsx("p",{className:"text-lg text-gray-600",children:"Beheer categorieën, tags en andere globale instellingen"})]}),e.jsx("div",{className:"space-y-8",children:v?e.jsx("div",{className:"text-center py-12",children:e.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx(w8,{className:"w-6 h-6 text-gray-900"}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Website Logo"})]}),e.jsx("p",{className:"text-gray-600 mb-6",children:"Upload een nieuw logo voor de website. Dit logo wordt gebruikt in de header en footer."}),e.jsx(na,{value:s,onChange:a,label:"Logo"}),s&&e.jsxs("div",{className:"mt-4 p-4 bg-gray-50 rounded-lg",children:[e.jsx("p",{className:"text-sm text-gray-600 mb-2",children:"Preview:"}),e.jsx("img",{src:s,alt:"Logo preview",className:"h-12"})]}),e.jsxs(ae,{onClick:()=>k.mutate(s),disabled:!s||k.isPending,className:"mt-4",children:[e.jsx(Sn,{className:"w-4 h-4 mr-2"}),k.isPending?"Opslaan...":"Logo opslaan"]})]}),e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Social Media Kanalen"}),e.jsx("p",{className:"text-gray-600 mb-6",children:"Voer de volledige URLs in voor je social media kanalen. Laat velden leeg om ze te verbergen."}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsxs("label",{className:"flex items-center gap-2 text-sm font-medium text-gray-700 mb-2",children:[e.jsx(Ws,{className:"w-4 h-4 text-blue-600"}),"LinkedIn"]}),e.jsx(me,{value:o.linkedin,onChange:q=>c({...o,linkedin:q.target.value}),placeholder:"https://linkedin.com/company/jouw-bedrijf"})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"flex items-center gap-2 text-sm font-medium text-gray-700 mb-2",children:[e.jsx(tu,{className:"w-4 h-4 text-pink-600"}),"Instagram"]}),e.jsx(me,{value:o.instagram,onChange:q=>c({...o,instagram:q.target.value}),placeholder:"https://instagram.com/jouw-bedrijf"})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"flex items-center gap-2 text-sm font-medium text-gray-700 mb-2",children:[e.jsx(B4,{className:"w-4 h-4 text-blue-400"}),"Twitter/X"]}),e.jsx(me,{value:o.twitter,onChange:q=>c({...o,twitter:q.target.value}),placeholder:"https://twitter.com/jouw-bedrijf"})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"flex items-center gap-2 text-sm font-medium text-gray-700 mb-2",children:[e.jsx(iu,{className:"w-4 h-4 text-red-600"}),"YouTube"]}),e.jsx(me,{value:o.youtube,onChange:q=>c({...o,youtube:q.target.value}),placeholder:"https://youtube.com/@jouw-kanaal"})]})]}),e.jsxs(ae,{onClick:S,disabled:A.isPending,className:"mt-6",children:[e.jsx(Sn,{className:"w-4 h-4 mr-2"}),"Social media opslaan"]})]}),e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Content Zichtbaarheid"}),e.jsx("p",{className:"text-gray-600 mb-6",children:"Schakel content secties in of uit. Dit verbergt ook menu-items en gerelateerde blokken."}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between p-4 bg-gray-50 rounded-lg",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[d?e.jsx(qs,{className:"w-5 h-5 text-green-600"}):e.jsx(Up,{className:"w-5 h-5 text-gray-400"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-gray-900",children:"Blog"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Toon blog artikelen en menu-items"})]})]}),e.jsx(Yc,{checked:d,onCheckedChange:E})]}),e.jsxs("div",{className:"flex items-center justify-between p-4 bg-gray-50 rounded-lg",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[f?e.jsx(qs,{className:"w-5 h-5 text-green-600"}):e.jsx(Up,{className:"w-5 h-5 text-gray-400"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-gray-900",children:"AI Nieuws"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Toon nieuws pagina, menu-items en Daily AI Nieuws blokken"})]})]}),e.jsx(Yc,{checked:f,onCheckedChange:C})]}),e.jsxs("div",{className:"flex items-center justify-between p-4 bg-gray-50 rounded-lg",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[p?e.jsx(qs,{className:"w-5 h-5 text-green-600"}):e.jsx(Up,{className:"w-5 h-5 text-gray-400"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-gray-900",children:"Training Kalender"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Toon kalender optie op trainingen pagina"})]})]}),e.jsx(Yc,{checked:p,onCheckedChange:B})]})]})]}),e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Blog Categorieën"}),e.jsx("div",{className:"space-y-3 mb-6",children:I.map(q=>e.jsxs("div",{className:"flex items-center justify-between p-4 bg-gray-50 rounded-lg",children:[e.jsxs("div",{children:[e.jsx("span",{className:"font-medium text-gray-900",children:q.name}),e.jsxs("span",{className:"text-sm text-gray-500 ml-2",children:["(",q.slug,")"]})]}),e.jsx(ae,{size:"sm",variant:"ghost",onClick:()=>{confirm(`Weet je zeker dat je "${q.name}" wilt verwijderen?`)&&w.mutate(q.id)},children:e.jsx(wt,{className:"w-4 h-4"})})]},q.id))}),e.jsxs("div",{className:"flex gap-3",children:[e.jsx(me,{value:t.type==="blog"?t.name:"",onChange:q=>n({type:"blog",name:q.target.value,slug:q.target.value.toLowerCase().replace(/\s+/g,"-")}),placeholder:"Nieuwe categorie...",onKeyPress:q=>q.key==="Enter"&&F("blog")}),e.jsxs(ae,{onClick:()=>F("blog"),children:[e.jsx(Pt,{className:"w-4 h-4 mr-2"}),"Toevoegen"]})]})]}),e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Case Types"}),e.jsx("div",{className:"space-y-3 mb-6",children:R.map(q=>e.jsxs("div",{className:"flex items-center justify-between p-4 bg-gray-50 rounded-lg",children:[e.jsxs("div",{children:[e.jsx("span",{className:"font-medium text-gray-900",children:q.name}),e.jsxs("span",{className:"text-sm text-gray-500 ml-2",children:["(",q.slug,")"]})]}),e.jsx(ae,{size:"sm",variant:"ghost",onClick:()=>{confirm(`Weet je zeker dat je "${q.name}" wilt verwijderen?`)&&w.mutate(q.id)},children:e.jsx(wt,{className:"w-4 h-4"})})]},q.id))}),e.jsxs("div",{className:"flex gap-3",children:[e.jsx(me,{value:t.type==="case"?t.name:"",onChange:q=>n({type:"case",name:q.target.value,slug:q.target.value.toLowerCase().replace(/\s+/g,"-")}),placeholder:"Nieuw type...",onKeyPress:q=>q.key==="Enter"&&F("case")}),e.jsxs(ae,{onClick:()=>F("case"),children:[e.jsx(Pt,{className:"w-4 h-4 mr-2"}),"Toevoegen"]})]})]}),e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Training Categorieën"}),e.jsx("div",{className:"space-y-3 mb-6",children:z.map(q=>e.jsxs("div",{className:"flex items-center justify-between p-4 bg-gray-50 rounded-lg",children:[e.jsxs("div",{children:[e.jsx("span",{className:"font-medium text-gray-900",children:q.name}),e.jsxs("span",{className:"text-sm text-gray-500 ml-2",children:["(",q.slug,")"]})]}),e.jsx(ae,{size:"sm",variant:"ghost",onClick:()=>{confirm(`Weet je zeker dat je "${q.name}" wilt verwijderen?`)&&w.mutate(q.id)},children:e.jsx(wt,{className:"w-4 h-4"})})]},q.id))}),e.jsxs("div",{className:"flex gap-3",children:[e.jsx(me,{value:t.type==="training"?t.name:"",onChange:q=>n({type:"training",name:q.target.value,slug:q.target.value.toLowerCase().replace(/\s+/g,"-")}),placeholder:"Nieuwe categorie...",onKeyPress:q=>q.key==="Enter"&&F("training")}),e.jsxs(ae,{onClick:()=>F("training"),children:[e.jsx(Pt,{className:"w-4 h-4 mr-2"}),"Toevoegen"]})]})]}),e.jsxs("div",{className:"bg-green-50 border border-green-200 rounded-2xl p-6",children:[e.jsx("h3",{className:"font-bold text-green-900 mb-2",children:"✅ Categorieën worden direct opgeslagen"}),e.jsx("p",{className:"text-green-800",children:"Alle wijzigingen worden meteen in de database opgeslagen en zijn direct beschikbaar in je blog, cases en trainingen."})]})]})})]})})}function LQ(){const[t,n]=D.useState(!1),[r,i]=D.useState({name:"",role:"",image_url:"",bio:"",linkedin_url:"",show_on_homepage:!1,show_on_about_page:!0,active:!0,sort_order:0}),s=Wt(),{data:a=[],isLoading:o}=Fe({queryKey:["teamMembers"],queryFn:()=>ce.entities.TeamMember.list("sort_order"),initialData:[]}),c=Me({mutationFn:y=>ce.entities.TeamMember.create(y),onSuccess:()=>{s.invalidateQueries({queryKey:["teamMembers"]}),f()}}),d=Me({mutationFn:({id:y,data:j})=>ce.entities.TeamMember.update(y,j),onSuccess:()=>{s.invalidateQueries({queryKey:["teamMembers"]}),f()}}),h=Me({mutationFn:y=>ce.entities.TeamMember.delete(y),onSuccess:()=>{s.invalidateQueries({queryKey:["teamMembers"]})}}),f=()=>{i({name:"",role:"",image_url:"",bio:"",linkedin_url:"",show_on_homepage:!1,show_on_about_page:!0,active:!0,sort_order:0}),n(!1)},m=y=>{i(y),n(y.id)},p=y=>{y.preventDefault(),t?d.mutate({id:t,data:r}):c.mutate(r)},g=y=>{confirm("Weet je zeker dat je dit teamlid wilt verwijderen?")&&h.mutate(y)};return t!==!1?e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-gray-50 to-white",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs("div",{className:"mb-8",children:[e.jsxs(de,{to:se("AdminDashboard"),className:"inline-flex items-center gap-2 text-gray-600 hover:text-gray-900 mb-4",children:[e.jsx(ht,{className:"w-4 h-4"}),"Terug naar dashboard"]}),e.jsx("h1",{className:"text-4xl font-bold text-gray-900",children:t?"Teamlid bewerken":"Nieuw teamlid"})]}),e.jsxs("form",{onSubmit:p,className:"bg-white rounded-2xl p-8 shadow-sm border border-gray-200 space-y-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-semibold text-gray-900 mb-2",children:"Naam *"}),e.jsx(me,{value:r.name,onChange:y=>i({...r,name:y.target.value}),required:!0,placeholder:"Jan van der Berg"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-semibold text-gray-900 mb-2",children:"Functie/Rol *"}),e.jsx(me,{value:r.role,onChange:y=>i({...r,role:y.target.value}),required:!0,placeholder:"Founder & CEO"})]}),e.jsx(na,{label:"Profielfoto",value:r.image_url,onChange:y=>i({...r,image_url:y})}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-semibold text-gray-900 mb-2",children:"Bio (optioneel)"}),e.jsx(pt,{value:r.bio||"",onChange:y=>i({...r,bio:y.target.value}),placeholder:"Korte bio over dit teamlid...",className:"h-24"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-semibold text-gray-900 mb-2",children:"LinkedIn URL (optioneel)"}),e.jsx(me,{value:r.linkedin_url||"",onChange:y=>i({...r,linkedin_url:y.target.value}),placeholder:"https://linkedin.com/in/..."})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-semibold text-gray-900 mb-2",children:"Sorteervolgorde"}),e.jsx(me,{type:"number",value:r.sort_order,onChange:y=>i({...r,sort_order:parseInt(y.target.value)||0})})]}),e.jsxs("div",{className:"border-t pt-6 space-y-4",children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900",children:"Weergave instellingen"}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("input",{type:"checkbox",id:"show_on_homepage",checked:r.show_on_homepage,onChange:y=>i({...r,show_on_homepage:y.target.checked}),className:"w-4 h-4"}),e.jsxs("label",{htmlFor:"show_on_homepage",className:"flex items-center gap-2 text-gray-900 cursor-pointer",children:[e.jsx(Ev,{className:"w-4 h-4"}),"Toon op homepage"]})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("input",{type:"checkbox",id:"show_on_about_page",checked:r.show_on_about_page,onChange:y=>i({...r,show_on_about_page:y.target.checked}),className:"w-4 h-4"}),e.jsxs("label",{htmlFor:"show_on_about_page",className:"flex items-center gap-2 text-gray-900 cursor-pointer",children:[e.jsx(pn,{className:"w-4 h-4"}),"Toon op 'The AI Professionals' pagina"]})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("input",{type:"checkbox",id:"active",checked:r.active,onChange:y=>i({...r,active:y.target.checked}),className:"w-4 h-4"}),e.jsx("label",{htmlFor:"active",className:"text-gray-900 cursor-pointer",children:"Actief"})]})]}),e.jsxs("div",{className:"flex gap-4 pt-6",children:[e.jsx(ae,{type:"submit",className:"flex-1",children:t?"Opslaan":"Aanmaken"}),e.jsx(ae,{type:"button",variant:"outline",onClick:f,children:"Annuleren"})]})]})]})}):e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-gray-50 to-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs("div",{className:"mb-8 flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsxs(de,{to:se("AdminDashboard"),className:"inline-flex items-center gap-2 text-gray-600 hover:text-gray-900 mb-4",children:[e.jsx(ht,{className:"w-4 h-4"}),"Terug naar dashboard"]}),e.jsx("h1",{className:"text-4xl font-bold text-gray-900",children:"Team Beheer"}),e.jsx("p",{className:"text-gray-600 mt-2",children:"Beheer alle teamleden en hun weergave op de website"})]}),e.jsxs(ae,{onClick:()=>n(!0),children:[e.jsx(Pt,{className:"w-4 h-4 mr-2"}),"Nieuw teamlid"]})]}),o?e.jsx("div",{className:"text-center py-12",children:e.jsx("p",{className:"text-gray-600",children:"Laden..."})}):e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:a.map(y=>e.jsxs("div",{className:"bg-white rounded-2xl overflow-hidden border border-gray-200 hover:shadow-lg transition-all",children:[y.image_url&&e.jsx("div",{className:"aspect-square overflow-hidden bg-gray-100",children:e.jsx("img",{src:y.image_url,alt:y.name,className:"w-full h-full object-cover"})}),e.jsxs("div",{className:"p-6",children:[e.jsxs("div",{className:"flex items-start justify-between mb-4",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-lg text-gray-900",children:y.name}),e.jsx("p",{className:"text-gray-600 text-sm",children:y.role})]}),!y.active&&e.jsx("span",{className:"text-xs px-2 py-1 bg-gray-100 text-gray-600 rounded",children:"Inactief"})]}),e.jsxs("div",{className:"flex flex-wrap gap-2 mb-4",children:[y.show_on_homepage&&e.jsxs("span",{className:"text-xs px-2 py-1 bg-blue-100 text-blue-700 rounded flex items-center gap-1",children:[e.jsx(Ev,{className:"w-3 h-3"}),"Homepage"]}),y.show_on_about_page&&e.jsxs("span",{className:"text-xs px-2 py-1 bg-green-100 text-green-700 rounded flex items-center gap-1",children:[e.jsx(pn,{className:"w-3 h-3"}),"About"]})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsxs(ae,{variant:"outline",size:"sm",onClick:()=>m(y),className:"flex-1",children:[e.jsx(K8,{className:"w-4 h-4 mr-2"}),"Bewerken"]}),e.jsx(ae,{variant:"outline",size:"sm",onClick:()=>g(y.id),className:"text-red-600 hover:bg-red-50",children:e.jsx(wt,{className:"w-4 h-4"})})]})]})]},y.id))})]})})}function BQ(){const t=_l(),[n,r]=D.useState(!1),[i,s]=D.useState(!0),[a,o]=D.useState(null),[c,d]=D.useState(null),[h,f]=D.useState(!1),[m,p]=D.useState(!1);D.useEffect(()=>{(async()=>{try{const x=await ce.auth.me();if((x==null?void 0:x.role)!=="admin"){t(se("Home"));return}r(!0)}catch{t(se("Home"))}finally{s(!1)}})()},[t]);const g=async()=>{var v,x;f(!0),o({status:"testing",message:"Aanvraag wordt ingediend..."});try{const{data:N}=await ce.functions.invoke("createImpactScanRequest",{website_url:"https://vitaal050.nl",company_name:"TEST - Vitaal050",industry:"technology",user_email:"hallo@48-7.nl",user_name:"Test Admin"});N.success?o({status:"success",message:`✅ Aanvraag succesvol ingediend! Request ID: ${N.request_id}`,requestId:N.request_id}):o({status:"error",message:N.error||"Onbekende fout"})}catch(N){console.error("Test Impact Scan error:",N),o({status:"error",message:((x=(v=N.response)==null?void 0:v.data)==null?void 0:x.error)||N.message||"Er ging iets mis"})}finally{f(!1)}},y=async()=>{var v,x;p(!0),d({status:"testing",message:"Aanvraag wordt ingediend..."});try{const{data:N}=await ce.functions.invoke("createEuAiActRequest",{website_url:"https://vitaal050.nl",company_description:"Digital marketing en consultancy bedrijf gespecialiseerd in AI-implementaties",questionnaire:{sector:"it",target_audience:"businesses",ai_usage:"active",ai_purpose:["Klantenservice (chatbots, mail)","Marketing / content"],ai_decisions:"no",human_oversight:"yes",high_risk_processes:["Geen van bovenstaande"],processes_personal_data:"yes",sensitive_personal_data:"no",ai_origin:"tools",ai_transparency:"partially",ai_responsible:"yes",risk_evaluation:"yes",user_notification:"yes"},user_email:"hallo@48-7.nl",user_name:"Test Admin"});N.success?d({status:"success",message:`✅ Aanvraag succesvol ingediend! Request ID: ${N.request_id}`,requestId:N.request_id}):d({status:"error",message:N.error||"Onbekende fout"})}catch(N){console.error("Test EU AI Act error:",N),d({status:"error",message:((x=(v=N.response)==null?void 0:v.data)==null?void 0:x.error)||N.message||"Er ging iets mis"})}finally{p(!1)}},j=({status:v,title:x})=>v?e.jsx(Z.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:`mt-4 p-4 rounded-lg border-2 ${v.status==="success"?"bg-green-50 border-green-200":v.status==="error"?"bg-red-50 border-red-200":"bg-blue-50 border-blue-200"}`,children:e.jsxs("div",{className:"flex items-start gap-3",children:[v.status==="success"?e.jsx(gt,{className:"w-5 h-5 text-green-600 mt-0.5"}):v.status==="error"?e.jsx(eu,{className:"w-5 h-5 text-red-600 mt-0.5"}):e.jsx(Tr,{className:"w-5 h-5 text-blue-600 mt-0.5 animate-pulse"}),e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:`font-medium ${v.status==="success"?"text-green-900":v.status==="error"?"text-red-900":"text-blue-900"}`,children:v.message}),v.status==="success"&&e.jsxs("div",{className:"mt-3 space-y-2",children:[e.jsx("p",{className:"text-sm text-gray-700",children:"De aanvraag is succesvol ingediend. De automatisering zal nu:"}),e.jsxs("ul",{className:"text-sm text-gray-600 space-y-1 ml-4",children:[e.jsx("li",{children:"• De analyse uitvoeren (dit kan 1-2 minuten duren)"}),e.jsx("li",{children:"• Het rapport genereren"}),e.jsx("li",{children:"• Een email sturen naar hallo@48-7.nl"})]}),e.jsx("p",{className:"text-sm font-medium text-gray-700 mt-3",children:"âœ‰ï¸ Check je inbox over een paar minuten"})]})]})]})}):null;return i?e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50 flex items-center justify-center",children:e.jsxs("div",{className:"text-center",children:[e.jsx(Vn,{className:"w-16 h-16 text-gray-400 mx-auto mb-4"}),e.jsx("p",{className:"text-gray-600",children:"Toegang controleren..."})]})}):n?e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs("div",{className:"flex items-center gap-4 mb-8",children:[e.jsx(de,{to:se("AdminDashboard"),children:e.jsx(ae,{variant:"outline",size:"icon",children:e.jsx(ht,{className:"w-5 h-5"})})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-3xl font-bold text-gray-900",children:"Test Scans"}),e.jsx("p",{className:"text-gray-600",children:"Test de scan formulieren met vooringevulde data"})]})]}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:[e.jsx("div",{className:"flex items-start justify-between mb-4",children:e.jsxs("div",{children:[e.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-2",children:"AI Impact Scan"}),e.jsx("p",{className:"text-gray-600 text-sm",children:"Test de volledige flow: aanvraag → voorlopige analyse → rapport generatie → email verzending"})]})}),e.jsxs("div",{className:"bg-gray-50 p-4 rounded-lg mb-4",children:[e.jsx("p",{className:"text-sm font-medium text-gray-700 mb-2",children:"Test data:"}),e.jsxs("ul",{className:"text-sm text-gray-600 space-y-1",children:[e.jsx("li",{children:"• Website: https://vitaal050.nl"}),e.jsx("li",{children:"• Bedrijf: TEST - Vitaal050"}),e.jsx("li",{children:"• Branche: Technology"}),e.jsx("li",{children:"• Email: hallo@48-7.nl"})]})]}),e.jsxs(ae,{onClick:g,disabled:h,className:"w-full bg-blue-600 hover:bg-blue-700",children:[e.jsx(Tv,{className:"w-4 h-4 mr-2"}),h?"Test wordt uitgevoerd...":"Test AI Impact Scan"]}),e.jsx(j,{status:a,title:"AI Impact Scan"})]}),e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:[e.jsx("div",{className:"flex items-start justify-between mb-4",children:e.jsxs("div",{children:[e.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-2",children:"EU AI Act Checker"}),e.jsx("p",{className:"text-gray-600 text-sm",children:"Test de volledige flow: aanvraag → compliance analyse → rapport generatie → email verzending"})]})}),e.jsxs("div",{className:"bg-gray-50 p-4 rounded-lg mb-4",children:[e.jsx("p",{className:"text-sm font-medium text-gray-700 mb-2",children:"Test data:"}),e.jsxs("ul",{className:"text-sm text-gray-600 space-y-1",children:[e.jsx("li",{children:"• Website: https://vitaal050.nl"}),e.jsx("li",{children:"• Beschrijving: Digital marketing & AI consultancy"}),e.jsx("li",{children:"• Vragenlijst: Ingevuld met realistische antwoorden"}),e.jsx("li",{children:"• Email: hallo@48-7.nl"})]})]}),e.jsxs(ae,{onClick:y,disabled:m,className:"w-full bg-purple-600 hover:bg-purple-700",children:[e.jsx(Tv,{className:"w-4 h-4 mr-2"}),m?"Test wordt uitgevoerd...":"Test EU AI Act Checker"]}),e.jsx(j,{status:c,title:"EU AI Act Checker"})]}),e.jsx("div",{className:"bg-blue-50 rounded-2xl p-6 border-2 border-blue-200",children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(yi,{className:"w-6 h-6 text-blue-600 mt-1"}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-blue-900 mb-2",children:"Hoe het werkt"}),e.jsxs("ul",{className:"text-sm text-blue-800 space-y-2",children:[e.jsx("li",{children:"1. Klik op een test knop om een aanvraag in te dienen"}),e.jsx("li",{children:"2. De entity automation triggert automatisch de processing functie"}),e.jsx("li",{children:"3. De analyse wordt uitgevoerd (1-2 minuten)"}),e.jsx("li",{children:"4. Een email wordt verzonden naar hallo@48-7.nl"}),e.jsx("li",{children:"5. Bekijk de aanvragen in de Admin Impact Scans / EU AI Act Inzendingen pagina's"})]})]})]})}),e.jsxs("div",{className:"flex gap-4",children:[e.jsx(de,{to:se("AdminImpactScans"),className:"flex-1",children:e.jsx(ae,{variant:"outline",className:"w-full",children:"Bekijk Impact Scan Aanvragen"})}),e.jsx(de,{to:se("AdminEuAiActSubmissions"),className:"flex-1",children:e.jsx(ae,{variant:"outline",className:"w-full",children:"Bekijk EU AI Act Aanvragen"})})]})]})]})}):null}function zQ(){const[t,n]=D.useState(null),[r,i]=D.useState({title:"",slug:"",category:"Basis",duration:"",description:"",full_description:"",learning_goals:[],target_audience:"",price:"",image_url:"",sessions:[],active:!0,show_on_homepage:!1}),s=Wt(),{data:a=[],isLoading:o}=Fe({queryKey:["trainingen"],queryFn:()=>ce.entities.Training.list("-created_date")}),c=Me({mutationFn:w=>ce.entities.Training.create(w),onSuccess:()=>{s.invalidateQueries({queryKey:["trainingen"]}),f()}}),d=Me({mutationFn:({id:w,data:k})=>ce.entities.Training.update(w,k),onSuccess:()=>{s.invalidateQueries({queryKey:["trainingen"]}),f()}}),h=Me({mutationFn:w=>ce.entities.Training.delete(w),onSuccess:()=>{s.invalidateQueries({queryKey:["trainingen"]})}}),f=()=>{n(null),i({title:"",slug:"",category:"Basis",duration:"",description:"",full_description:"",learning_goals:[],target_audience:"",price:"",image_url:"",sessions:[],active:!0})},m=w=>{n(w),i({...w,learning_goals:w.learning_goals||[],sessions:w.sessions||[]})},p=w=>{w.preventDefault(),t&&t.id?d.mutate({id:t.id,data:r}):c.mutate(r)},g=()=>{i({...r,learning_goals:[...r.learning_goals,""]})},y=(w,k)=>{const A=[...r.learning_goals];A[w]=k,i({...r,learning_goals:A})},j=w=>{i({...r,learning_goals:r.learning_goals.filter((k,A)=>A!==w)})},v=()=>{i({...r,sessions:[...r.sessions,{date:"",capacity:10,enrolled:0,location:"Groningen"}]})},x=(w,k,A)=>{const S=[...r.sessions];S[w][k]=A,i({...r,sessions:S})},N=w=>{i({...r,sessions:r.sessions.filter((k,A)=>A!==w)})};return t!==null?e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsx("div",{className:"mb-6",children:e.jsxs(ae,{variant:"outline",onClick:f,className:"gap-2",children:[e.jsx(ht,{className:"w-4 h-4"}),"Terug naar overzicht"]})}),e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-8",children:t!=null&&t.id?"Training Bewerken":"Nieuwe Training"}),e.jsxs("form",{onSubmit:p,className:"space-y-6",children:[e.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Titel *"}),e.jsx(me,{required:!0,value:r.title,onChange:w=>i({...r,title:w.target.value}),placeholder:"AI voor Beginners"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Slug (URL) *"}),e.jsx(me,{required:!0,value:r.slug,onChange:w=>i({...r,slug:w.target.value}),placeholder:"ai-voor-beginners"})]})]}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Categorie *"}),e.jsxs(Ji,{value:r.category,onValueChange:w=>i({...r,category:w}),children:[e.jsx(wi,{children:e.jsx(Zi,{})}),e.jsxs(Ni,{children:[e.jsx(St,{value:"Basis",children:"Basis"}),e.jsx(St,{value:"Gevorderd",children:"Gevorderd"}),e.jsx(St,{value:"Leiderschap",children:"Leiderschap"}),e.jsx(St,{value:"Technisch",children:"Technisch"})]})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Duur *"}),e.jsx(me,{required:!0,value:r.duration,onChange:w=>i({...r,duration:w.target.value}),placeholder:"1 dag, 3 uur, etc."})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Korte beschrijving *"}),e.jsx(me,{required:!0,value:r.description,onChange:w=>i({...r,description:w.target.value}),placeholder:"Een korte samenvatting..."})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Volledige beschrijving"}),e.jsx(es,{value:r.full_description,onChange:w=>i({...r,full_description:w}),placeholder:"Volledige training beschrijving..."})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700",children:"Leerdoelen"}),e.jsxs(ae,{type:"button",onClick:g,size:"sm",variant:"outline",children:[e.jsx(Pt,{className:"w-4 h-4 mr-1"})," Leerdoel"]})]}),e.jsx("div",{className:"space-y-2",children:r.learning_goals.map((w,k)=>e.jsxs("div",{className:"flex gap-2",children:[e.jsx(me,{value:w,onChange:A=>y(k,A.target.value),placeholder:"Bijv. Begrijpen van AI concepten"}),e.jsx(ae,{type:"button",variant:"ghost",size:"sm",onClick:()=>j(k),children:e.jsx(Ht,{className:"w-4 h-4"})})]},k))})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Doelgroep"}),e.jsx(me,{value:r.target_audience,onChange:w=>i({...r,target_audience:w.target.value}),placeholder:"Managers, developers, etc."})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Prijs"}),e.jsx(me,{value:r.price,onChange:w=>i({...r,price:w.target.value}),placeholder:"Op aanvraag / €1.500"})]}),e.jsx(na,{value:r.image_url,onChange:w=>i({...r,image_url:w}),label:"Training Afbeelding",recommendedSize:"800x600px"}),e.jsxs("div",{className:"border-t-2 border-gray-100 pt-6",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsxs("label",{className:"block text-sm font-medium text-gray-700",children:[e.jsx(Or,{className:"w-4 h-4 inline mr-2"}),"Geplande sessies"]}),e.jsxs(ae,{type:"button",onClick:v,size:"sm",variant:"outline",children:[e.jsx(Pt,{className:"w-4 h-4 mr-1"})," Sessie"]})]}),e.jsx("div",{className:"space-y-4",children:r.sessions.map((w,k)=>e.jsxs("div",{className:"p-4 bg-gray-50 rounded-xl border border-gray-200",children:[e.jsxs("div",{className:"grid md:grid-cols-2 gap-4 mb-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-xs font-medium text-gray-600 mb-1",children:"Datum & Tijd *"}),e.jsx(me,{type:"datetime-local",value:w.date,onChange:A=>x(k,"date",A.target.value),required:!0})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-xs font-medium text-gray-600 mb-1",children:"Locatie *"}),e.jsx(me,{value:w.location,onChange:A=>x(k,"location",A.target.value),placeholder:"Groningen / Online",required:!0})]})]}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-xs font-medium text-gray-600 mb-1",children:"Max. capaciteit *"}),e.jsx(me,{type:"number",min:"1",value:w.capacity,onChange:A=>x(k,"capacity",parseInt(A.target.value)),required:!0})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-xs font-medium text-gray-600 mb-1",children:"Ingeschreven"}),e.jsx(me,{type:"number",min:"0",value:w.enrolled,onChange:A=>x(k,"enrolled",parseInt(A.target.value))})]})]}),e.jsx("div",{className:"mt-3 flex justify-end",children:e.jsxs(ae,{type:"button",variant:"ghost",size:"sm",onClick:()=>N(k),children:[e.jsx(wt,{className:"w-4 h-4 mr-1"}),"Verwijder"]})})]},k))})]}),e.jsxs("div",{className:"flex flex-col gap-3",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("input",{type:"checkbox",id:"active",checked:r.active,onChange:w=>i({...r,active:w.target.checked}),className:"w-4 h-4"}),e.jsx("label",{htmlFor:"active",className:"text-sm font-medium text-gray-700",children:"Actief (zichtbaar op website)"})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("input",{type:"checkbox",id:"show_on_homepage",checked:r.show_on_homepage||!1,onChange:w=>i({...r,show_on_homepage:w.target.checked}),className:"w-4 h-4"}),e.jsx("label",{htmlFor:"show_on_homepage",className:"text-sm font-medium text-gray-700",children:"Toon op homepage (Populaire Trainingen)"})]})]}),e.jsxs("div",{className:"flex gap-4 pt-6",children:[e.jsxs(ae,{type:"submit",className:"flex-1 gap-2",children:[e.jsx(Sn,{className:"w-4 h-4"}),t!=null&&t.id?"Bijwerken":"Aanmaken"]}),e.jsx(ae,{type:"button",variant:"outline",onClick:f,children:"Annuleren"})]})]})]})]})}):e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs("div",{className:"flex items-center justify-between mb-8",children:[e.jsxs("div",{children:[e.jsxs(de,{to:se("AdminDashboard"),className:"text-blue-600 hover:text-blue-700 mb-2 inline-flex items-center gap-1",children:[e.jsx(ht,{className:"w-4 h-4"}),"Terug naar dashboard"]}),e.jsx("h1",{className:"text-4xl font-bold text-gray-900",children:"Trainingen"})]}),e.jsxs(ae,{onClick:()=>n({}),children:[e.jsx(Pt,{className:"w-5 h-5 mr-2"}),"Nieuwe Training"]})]}),o?e.jsx("div",{className:"text-center py-12",children:e.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:a.map(w=>e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"bg-white rounded-xl p-6 border border-gray-200 hover:shadow-lg transition-shadow",children:[e.jsxs("div",{className:"flex items-start justify-between mb-4",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-lg text-gray-900 mb-1",children:w.title}),e.jsx("p",{className:"text-sm text-gray-600",children:w.duration}),e.jsx("span",{className:"inline-block px-2 py-1 bg-green-100 text-green-800 text-xs rounded mt-2",children:w.category})]}),w.active?e.jsx("span",{className:"px-2 py-1 bg-green-100 text-green-800 text-xs rounded",children:"Actief"}):e.jsx("span",{className:"px-2 py-1 bg-gray-100 text-gray-800 text-xs rounded",children:"Inactief"})]}),e.jsxs("div",{className:"flex gap-2 mt-4",children:[e.jsxs(ae,{size:"sm",variant:"outline",onClick:()=>m(w),className:"flex-1",children:[e.jsx(Pn,{className:"w-4 h-4 mr-1"}),"Bewerk"]}),e.jsx(ae,{size:"sm",variant:"ghost",onClick:()=>{confirm("Weet je zeker dat je deze training wilt verwijderen?")&&h.mutate(w.id)},children:e.jsx(wt,{className:"w-4 h-4"})})]})]},w.id))})]})})}function qQ(){const[t,n]=D.useState(null),[r,i]=D.useState({title:"",slug:"",level:"Medior",location:"",employment_type:"Fulltime",salary_range:"",description:"",role_summary:"",requirements:[],responsibilities:[],benefits:[],active:!0}),s=Wt(),{data:a=[],isLoading:o}=Fe({queryKey:["vacatures"],queryFn:()=>ce.entities.Vacature.list("-created_date")}),c=Me({mutationFn:v=>ce.entities.Vacature.create(v),onSuccess:()=>{s.invalidateQueries({queryKey:["vacatures"]}),f()}}),d=Me({mutationFn:({id:v,data:x})=>ce.entities.Vacature.update(v,x),onSuccess:()=>{s.invalidateQueries({queryKey:["vacatures"]}),f()}}),h=Me({mutationFn:v=>ce.entities.Vacature.delete(v),onSuccess:()=>{s.invalidateQueries({queryKey:["vacatures"]})}}),f=()=>{n(null),i({title:"",slug:"",level:"Medior",location:"",employment_type:"Fulltime",salary_range:"",description:"",role_summary:"",requirements:[],responsibilities:[],benefits:[],active:!0})},m=v=>{n(v),i(v)},p=v=>{v.preventDefault(),t?d.mutate({id:t.id,data:r}):c.mutate(r)},g=v=>{i({...r,[v]:[...r[v],""]})},y=(v,x,N)=>{const w=[...r[v]];w[x]=N,i({...r,[v]:w})},j=(v,x)=>{i({...r,[v]:r[v].filter((N,w)=>w!==x)})};return t!==null?e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsx("div",{className:"mb-6",children:e.jsxs(ae,{variant:"outline",onClick:f,className:"gap-2",children:[e.jsx(ht,{className:"w-4 h-4"}),"Terug naar overzicht"]})}),e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-8",children:t?"Vacature Bewerken":"Nieuwe Vacature"}),e.jsxs("form",{onSubmit:p,className:"space-y-6",children:[e.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Functietitel *"}),e.jsx(me,{required:!0,value:r.title,onChange:v=>i({...r,title:v.target.value}),placeholder:"AI Engineer"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Slug (URL) *"}),e.jsx(me,{required:!0,value:r.slug,onChange:v=>i({...r,slug:v.target.value}),placeholder:"ai-engineer-groningen"})]})]}),e.jsxs("div",{className:"grid md:grid-cols-3 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Niveau *"}),e.jsxs(Ji,{value:r.level,onValueChange:v=>i({...r,level:v}),children:[e.jsx(wi,{children:e.jsx(Zi,{})}),e.jsxs(Ni,{children:[e.jsx(St,{value:"Junior",children:"Junior"}),e.jsx(St,{value:"Medior",children:"Medior"}),e.jsx(St,{value:"Senior",children:"Senior"}),e.jsx(St,{value:"Lead",children:"Lead"})]})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Locatie *"}),e.jsx(me,{required:!0,value:r.location,onChange:v=>i({...r,location:v.target.value}),placeholder:"Groningen / Remote"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Type *"}),e.jsxs(Ji,{value:r.employment_type,onValueChange:v=>i({...r,employment_type:v}),children:[e.jsx(wi,{children:e.jsx(Zi,{})}),e.jsxs(Ni,{children:[e.jsx(St,{value:"Fulltime",children:"Fulltime"}),e.jsx(St,{value:"Parttime",children:"Parttime"}),e.jsx(St,{value:"Contract",children:"Contract"})]})]})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Salarisindicatie"}),e.jsx(me,{value:r.salary_range,onChange:v=>i({...r,salary_range:v.target.value}),placeholder:"€3.500 - €5.000 per maand"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Korte samenvatting"}),e.jsx(me,{value:r.role_summary,onChange:v=>i({...r,role_summary:v.target.value}),placeholder:"Een korte samenvatting van de rol..."})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Functieomschrijving *"}),e.jsx(es,{value:r.description,onChange:v=>i({...r,description:v}),placeholder:"Beschrijf de functie in detail..."})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700",children:"Vereisten"}),e.jsxs(ae,{type:"button",onClick:()=>g("requirements"),size:"sm",variant:"outline",children:[e.jsx(Pt,{className:"w-4 h-4 mr-1"})," Vereiste"]})]}),e.jsx("div",{className:"space-y-2",children:r.requirements.map((v,x)=>e.jsxs("div",{className:"flex gap-2",children:[e.jsx(me,{value:v,onChange:N=>y("requirements",x,N.target.value),placeholder:"Bijv. Python, 3+ jaar ervaring"}),e.jsx(ae,{type:"button",variant:"ghost",size:"sm",onClick:()=>j("requirements",x),children:e.jsx(Ht,{className:"w-4 h-4"})})]},x))})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700",children:"Verantwoordelijkheden"}),e.jsxs(ae,{type:"button",onClick:()=>g("responsibilities"),size:"sm",variant:"outline",children:[e.jsx(Pt,{className:"w-4 h-4 mr-1"})," Verantwoordelijkheid"]})]}),e.jsx("div",{className:"space-y-2",children:r.responsibilities.map((v,x)=>e.jsxs("div",{className:"flex gap-2",children:[e.jsx(me,{value:v,onChange:N=>y("responsibilities",x,N.target.value),placeholder:"Bijv. Ontwikkelen van AI modellen"}),e.jsx(ae,{type:"button",variant:"ghost",size:"sm",onClick:()=>j("responsibilities",x),children:e.jsx(Ht,{className:"w-4 h-4"})})]},x))})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700",children:"Wat we bieden"}),e.jsxs(ae,{type:"button",onClick:()=>g("benefits"),size:"sm",variant:"outline",children:[e.jsx(Pt,{className:"w-4 h-4 mr-1"})," Voordeel"]})]}),e.jsx("div",{className:"space-y-2",children:r.benefits.map((v,x)=>e.jsxs("div",{className:"flex gap-2",children:[e.jsx(me,{value:v,onChange:N=>y("benefits",x,N.target.value),placeholder:"Bijv. Flexibele werktijden"}),e.jsx(ae,{type:"button",variant:"ghost",size:"sm",onClick:()=>j("benefits",x),children:e.jsx(Ht,{className:"w-4 h-4"})})]},x))})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("input",{type:"checkbox",id:"active",checked:r.active,onChange:v=>i({...r,active:v.target.checked}),className:"w-4 h-4"}),e.jsx("label",{htmlFor:"active",className:"text-sm font-medium text-gray-700",children:"Actief (zichtbaar op website)"})]}),e.jsxs("div",{className:"flex gap-4 pt-6",children:[e.jsxs(ae,{type:"submit",className:"flex-1 gap-2",children:[e.jsx(Sn,{className:"w-4 h-4"}),t?"Bijwerken":"Aanmaken"]}),e.jsx(ae,{type:"button",variant:"outline",onClick:f,children:"Annuleren"})]})]})]})]})}):e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs("div",{className:"flex items-center justify-between mb-8",children:[e.jsxs("div",{children:[e.jsxs(de,{to:se("AdminDashboard"),className:"text-blue-600 hover:text-blue-700 mb-2 inline-flex items-center gap-1",children:[e.jsx(ht,{className:"w-4 h-4"}),"Terug naar dashboard"]}),e.jsx("h1",{className:"text-4xl font-bold text-gray-900",children:"Vacatures"})]}),e.jsxs(ae,{onClick:()=>n({}),children:[e.jsx(Pt,{className:"w-5 h-5 mr-2"}),"Nieuwe Vacature"]})]}),o?e.jsx("div",{className:"text-center py-12",children:e.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:a.map(v=>e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"bg-white rounded-xl p-6 border border-gray-200 hover:shadow-lg transition-shadow",children:[e.jsxs("div",{className:"flex items-start justify-between mb-4",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-lg text-gray-900 mb-1",children:v.title}),e.jsx("p",{className:"text-sm text-gray-600",children:v.location}),e.jsxs("div",{className:"flex gap-2 mt-2",children:[e.jsx("span",{className:"inline-block px-2 py-1 bg-blue-100 text-blue-800 text-xs rounded",children:v.level}),e.jsx("span",{className:"inline-block px-2 py-1 bg-purple-100 text-purple-800 text-xs rounded",children:v.employment_type})]})]}),v.active?e.jsx("span",{className:"px-2 py-1 bg-green-100 text-green-800 text-xs rounded",children:"Actief"}):e.jsx("span",{className:"px-2 py-1 bg-gray-100 text-gray-800 text-xs rounded",children:"Inactief"})]}),e.jsxs("div",{className:"flex gap-2 mt-4",children:[e.jsxs(ae,{size:"sm",variant:"outline",onClick:()=>m(v),className:"flex-1",children:[e.jsx(Pn,{className:"w-4 h-4 mr-1"}),"Bewerk"]}),e.jsx(ae,{size:"sm",variant:"ghost",onClick:()=>{confirm("Weet je zeker dat je deze vacature wilt verwijderen?")&&h.mutate(v.id)},children:e.jsx(wt,{className:"w-4 h-4"})})]})]},v.id))})]})})}const VQ=[{id:"all",label:"Alle"},{id:"trends",label:"Trends"},{id:"tips",label:"Tips"},{id:"strategy",label:"Strategie"},{id:"cases",label:"Cases"}];function UQ(){const[t,n]=D.useState("all"),[r,i]=D.useState(""),{data:s=[],isLoading:a}=Fe({queryKey:["blog"],queryFn:()=>ce.entities.BlogPost.filter({published:!0},"-published_date")}),o=s.filter(h=>{const f=t==="all"||h.category===t,m=h.title.toLowerCase().includes(r.toLowerCase())||h.excerpt.toLowerCase().includes(r.toLowerCase());return f&&m}),c=s.find(h=>h.featured),d=o.filter(h=>!h.featured);return e.jsxs("div",{className:"pt-20",children:[e.jsx("section",{className:"py-16 bg-[#0D0D0F]",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"flex flex-col lg:flex-row items-center gap-8",children:[e.jsx("div",{className:"w-24 h-24 bg-[#FAB868] rounded-full flex items-center justify-center flex-shrink-0",children:e.jsx(hf,{className:"w-12 h-12 text-[#0D0D0F]"})}),e.jsxs("div",{className:"flex-1 text-center lg:text-left",children:[e.jsx("h1",{className:"text-3xl font-bold text-white mb-3",children:"Daily AI Nieuws in 48 seconden"}),e.jsx("p",{className:"text-[#9CA3AF] mb-6",children:"Elke dag de belangrijkste AI ontwikkelingen, compact samengevat."}),e.jsxs("div",{className:"flex flex-wrap items-center justify-center lg:justify-start gap-4",children:[e.jsxs("button",{className:"px-6 py-3 bg-[#FAB868] text-[#0D0D0F] font-semibold rounded-full hover:bg-[#E5A04D] transition-colors flex items-center gap-2",children:[e.jsx("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm4.586 10.707l-6 4A1 1 0 019 16V8a1 1 0 011.586-.816l6 4a1 1 0 010 1.632z"})}),"Luister nu"]}),e.jsxs("button",{className:"px-6 py-3 border-2 border-[#FAB868] text-white font-semibold rounded-full hover:bg-[#FAB868]/10 transition-colors flex items-center gap-2",children:[e.jsx(yi,{className:"w-5 h-5"}),"Ontvang per email"]})]})]})]})})}),e.jsx("section",{className:"py-8 border-b border-gray-100 bg-white",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"flex flex-col sm:flex-row items-center gap-4",children:[e.jsxs("div",{className:"relative w-full sm:w-64",children:[e.jsx(mi,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-5 h-5 text-gray-400"}),e.jsx("input",{type:"text",placeholder:"Zoek artikelen...",value:r,onChange:h=>i(h.target.value),className:"w-full pl-10 pr-4 py-2 border border-gray-200 rounded-xl focus:outline-none focus:border-blue-500"})]}),e.jsxs("div",{className:"flex items-center gap-2 overflow-x-auto pb-2 sm:pb-0",children:[e.jsx(df,{className:"w-5 h-5 text-gray-400 flex-shrink-0"}),VQ.map(h=>e.jsx("button",{onClick:()=>n(h.id),className:`px-4 py-2 rounded-full text-sm font-medium whitespace-nowrap transition-all ${t===h.id?"bg-[#FAB868] text-[#0D0D0F]":"bg-[#F4F4F4] text-[#0D0D0F] hover:bg-[#E5E5E5]"}`,children:h.label},h.id))]})]})})}),c&&t==="all"&&!r&&e.jsx("section",{className:"py-12",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsx(Z.article,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"group",children:e.jsxs(de,{to:se(`BlogDetail?slug=${c.slug}`),className:"grid lg:grid-cols-2 gap-8 bg-[#F4F4F4] rounded-3xl overflow-hidden hover:bg-[#E5E5E5] transition-colors",children:[e.jsx("div",{className:"aspect-video lg:aspect-auto overflow-hidden",children:c.image_url&&e.jsx("img",{src:c.image_url,alt:c.title,loading:"eager",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"})}),e.jsxs("div",{className:"p-8 lg:py-12 flex flex-col justify-center",children:[e.jsxs("div",{className:"flex items-center gap-3 text-sm text-[#9CA3AF] mb-4",children:[e.jsx("span",{className:"px-3 py-1 bg-[#FAB868] text-[#0D0D0F] rounded-full font-medium",children:"Featured"}),e.jsx("span",{children:c.published_date?new Date(c.published_date).toLocaleDateString("nl-NL"):c.date}),e.jsx("span",{children:"•"}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(mn,{className:"w-4 h-4"}),c.read_time]})]}),e.jsx("h2",{className:"text-3xl font-bold text-[#0D0D0F] mb-4 group-hover:text-[#FAB868] transition-colors",children:c.title}),e.jsx("p",{className:"text-[#0D0D0F]/80 text-lg mb-6",children:c.excerpt}),e.jsxs("div",{className:"flex items-center gap-2 text-[#FAB868] font-semibold",children:["Lees meer",e.jsx($e,{className:"w-5 h-5 group-hover:translate-x-1 transition-transform"})]})]})]})})})}),e.jsx("section",{className:"py-12",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[a?e.jsx("div",{className:"text-center py-12",children:e.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:d.map((h,f)=>e.jsx(Z.article,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:f*.1},children:e.jsxs(de,{to:se(`BlogDetail?slug=${h.slug}`),className:"group block",children:[e.jsxs("div",{className:"relative rounded-2xl overflow-hidden mb-4 aspect-[16/10] bg-gray-200",children:[h.image_url?e.jsx("img",{src:h.image_url,alt:h.title,loading:"lazy",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"}):e.jsx("div",{className:"w-full h-full flex items-center justify-center",children:e.jsx(Ua,{className:"w-12 h-12 text-gray-400"})}),e.jsx("div",{className:"absolute top-4 left-4",children:e.jsx("span",{className:"px-3 py-1 bg-[#F4F4F4] rounded-full text-sm font-medium text-[#0D0D0F]",children:h.category.charAt(0).toUpperCase()+h.category.slice(1)})})]}),e.jsxs("div",{className:"flex items-center gap-3 text-sm text-[#9CA3AF] mb-3",children:[e.jsx("span",{children:h.published_date?new Date(h.published_date).toLocaleDateString("nl-NL"):h.date}),e.jsx("span",{children:"•"}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(mn,{className:"w-4 h-4 text-[#FAB868]"}),h.read_time]})]}),e.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F] mb-2 group-hover:text-[#FAB868] transition-colors line-clamp-2",children:h.title}),e.jsx("p",{className:"text-[#0D0D0F]/80 line-clamp-2",children:h.excerpt})]})},f))}),!a&&o.length===0&&e.jsx("div",{className:"text-center py-12",children:e.jsx("p",{className:"text-gray-500",children:"Geen artikelen gevonden voor je zoekopdracht."})})]})}),e.jsx("section",{className:"py-20 bg-[#F4F4F4]",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[e.jsx("h2",{className:"text-4xl font-bold text-[#0D0D0F] mb-6",children:"Blijf op de hoogte"}),e.jsx("p",{className:"text-xl text-[#9CA3AF] mb-8",children:"Ontvang wekelijks de beste AI insights"}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 max-w-md mx-auto",children:[e.jsx("input",{type:"email",placeholder:"je@email.nl",className:"flex-1 px-5 py-3 rounded-full focus:outline-none border-2 border-gray-200"}),e.jsx("button",{className:"px-6 py-3 bg-[#0D0D0F] text-white font-semibold rounded-full hover:bg-[#1a1a1c] transition-colors",children:"Aanmelden"})]})]})})]})}function $Q(t,n){const r={};return(t[t.length-1]===""?[...t,""]:t).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const HQ=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,WQ=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,KQ={};function vS(t,n){return(KQ.jsx?WQ:HQ).test(t)}const GQ=/[ \t\n\f\r]/g;function QQ(t){return typeof t=="object"?t.type==="text"?yS(t.value):!1:yS(t)}function yS(t){return t.replace(GQ,"")===""}class qu{constructor(n,r,i){this.normal=r,this.property=n,i&&(this.space=i)}}qu.prototype.normal={};qu.prototype.property={};qu.prototype.space=void 0;function n6(t,n){const r={},i={};for(const s of t)Object.assign(r,s.property),Object.assign(i,s.normal);return new qu(r,i,n)}function L0(t){return t.toLowerCase()}class rr{constructor(n,r){this.attribute=r,this.property=n}}rr.prototype.attribute="";rr.prototype.booleanish=!1;rr.prototype.boolean=!1;rr.prototype.commaOrSpaceSeparated=!1;rr.prototype.commaSeparated=!1;rr.prototype.defined=!1;rr.prototype.mustUseProperty=!1;rr.prototype.number=!1;rr.prototype.overloadedBoolean=!1;rr.prototype.property="";rr.prototype.spaceSeparated=!1;rr.prototype.space=void 0;let YQ=0;const ot=ro(),on=ro(),B0=ro(),Ce=ro(),Rt=ro(),Xo=ro(),cr=ro();function ro(){return 2**++YQ}const z0=Object.freeze(Object.defineProperty({__proto__:null,boolean:ot,booleanish:on,commaOrSpaceSeparated:cr,commaSeparated:Xo,number:Ce,overloadedBoolean:B0,spaceSeparated:Rt},Symbol.toStringTag,{value:"Module"})),dv=Object.keys(z0);class xb extends rr{constructor(n,r,i,s){let a=-1;if(super(n,r),bS(this,"space",s),typeof i=="number")for(;++a<dv.length;){const o=dv[a];bS(this,dv[a],(i&z0[o])===z0[o])}}}xb.prototype.defined=!0;function bS(t,n,r){r&&(t[n]=r)}function Il(t){const n={},r={};for(const[i,s]of Object.entries(t.properties)){const a=new xb(i,t.transform(t.attributes||{},i),s,t.space);t.mustUseProperty&&t.mustUseProperty.includes(i)&&(a.mustUseProperty=!0),n[i]=a,r[L0(i)]=i,r[L0(a.attribute)]=i}return new qu(n,r,t.space)}const r6=Il({properties:{ariaActiveDescendant:null,ariaAtomic:on,ariaAutoComplete:null,ariaBusy:on,ariaChecked:on,ariaColCount:Ce,ariaColIndex:Ce,ariaColSpan:Ce,ariaControls:Rt,ariaCurrent:null,ariaDescribedBy:Rt,ariaDetails:null,ariaDisabled:on,ariaDropEffect:Rt,ariaErrorMessage:null,ariaExpanded:on,ariaFlowTo:Rt,ariaGrabbed:on,ariaHasPopup:null,ariaHidden:on,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Rt,ariaLevel:Ce,ariaLive:null,ariaModal:on,ariaMultiLine:on,ariaMultiSelectable:on,ariaOrientation:null,ariaOwns:Rt,ariaPlaceholder:null,ariaPosInSet:Ce,ariaPressed:on,ariaReadOnly:on,ariaRelevant:null,ariaRequired:on,ariaRoleDescription:Rt,ariaRowCount:Ce,ariaRowIndex:Ce,ariaRowSpan:Ce,ariaSelected:on,ariaSetSize:Ce,ariaSort:null,ariaValueMax:Ce,ariaValueMin:Ce,ariaValueNow:Ce,ariaValueText:null,role:null},transform(t,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function i6(t,n){return n in t?t[n]:n}function s6(t,n){return i6(t,n.toLowerCase())}const XQ=Il({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Xo,acceptCharset:Rt,accessKey:Rt,action:null,allow:null,allowFullScreen:ot,allowPaymentRequest:ot,allowUserMedia:ot,alt:null,as:null,async:ot,autoCapitalize:null,autoComplete:Rt,autoFocus:ot,autoPlay:ot,blocking:Rt,capture:null,charSet:null,checked:ot,cite:null,className:Rt,cols:Ce,colSpan:null,content:null,contentEditable:on,controls:ot,controlsList:Rt,coords:Ce|Xo,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ot,defer:ot,dir:null,dirName:null,disabled:ot,download:B0,draggable:on,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ot,formTarget:null,headers:Rt,height:Ce,hidden:B0,high:Ce,href:null,hrefLang:null,htmlFor:Rt,httpEquiv:Rt,id:null,imageSizes:null,imageSrcSet:null,inert:ot,inputMode:null,integrity:null,is:null,isMap:ot,itemId:null,itemProp:Rt,itemRef:Rt,itemScope:ot,itemType:Rt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ot,low:Ce,manifest:null,max:null,maxLength:Ce,media:null,method:null,min:null,minLength:Ce,multiple:ot,muted:ot,name:null,nonce:null,noModule:ot,noValidate:ot,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ot,optimum:Ce,pattern:null,ping:Rt,placeholder:null,playsInline:ot,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ot,referrerPolicy:null,rel:Rt,required:ot,reversed:ot,rows:Ce,rowSpan:Ce,sandbox:Rt,scope:null,scoped:ot,seamless:ot,selected:ot,shadowRootClonable:ot,shadowRootDelegatesFocus:ot,shadowRootMode:null,shape:null,size:Ce,sizes:null,slot:null,span:Ce,spellCheck:on,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Ce,step:null,style:null,tabIndex:Ce,target:null,title:null,translate:null,type:null,typeMustMatch:ot,useMap:null,value:on,width:Ce,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Rt,axis:null,background:null,bgColor:null,border:Ce,borderColor:null,bottomMargin:Ce,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ot,declare:ot,event:null,face:null,frame:null,frameBorder:null,hSpace:Ce,leftMargin:Ce,link:null,longDesc:null,lowSrc:null,marginHeight:Ce,marginWidth:Ce,noResize:ot,noHref:ot,noShade:ot,noWrap:ot,object:null,profile:null,prompt:null,rev:null,rightMargin:Ce,rules:null,scheme:null,scrolling:on,standby:null,summary:null,text:null,topMargin:Ce,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ce,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ot,disableRemotePlayback:ot,prefix:null,property:null,results:Ce,security:null,unselectable:null},space:"html",transform:s6}),JQ=Il({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:cr,accentHeight:Ce,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ce,amplitude:Ce,arabicForm:null,ascent:Ce,attributeName:null,attributeType:null,azimuth:Ce,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ce,by:null,calcMode:null,capHeight:Ce,className:Rt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Ce,diffuseConstant:Ce,direction:null,display:null,dur:null,divisor:Ce,dominantBaseline:null,download:ot,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ce,enableBackground:null,end:null,event:null,exponent:Ce,externalResourcesRequired:null,fill:null,fillOpacity:Ce,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Xo,g2:Xo,glyphName:Xo,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ce,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ce,horizOriginX:Ce,horizOriginY:Ce,id:null,ideographic:Ce,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ce,k:Ce,k1:Ce,k2:Ce,k3:Ce,k4:Ce,kernelMatrix:cr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ce,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Ce,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Ce,overlineThickness:Ce,paintOrder:null,panose1:null,path:null,pathLength:Ce,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Rt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ce,pointsAtY:Ce,pointsAtZ:Ce,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:cr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:cr,rev:cr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:cr,requiredFeatures:cr,requiredFonts:cr,requiredFormats:cr,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Ce,specularExponent:Ce,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ce,strikethroughThickness:Ce,string:null,stroke:null,strokeDashArray:cr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ce,strokeOpacity:Ce,strokeWidth:null,style:null,surfaceScale:Ce,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:cr,tabIndex:Ce,tableValues:null,target:null,targetX:Ce,targetY:Ce,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:cr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Ce,underlineThickness:Ce,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ce,values:null,vAlphabetic:Ce,vMathematical:Ce,vectorEffect:null,vHanging:Ce,vIdeographic:Ce,version:null,vertAdvY:Ce,vertOriginX:Ce,vertOriginY:Ce,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ce,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:i6}),a6=Il({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,n){return"xlink:"+n.slice(5).toLowerCase()}}),o6=Il({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:s6}),l6=Il({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,n){return"xml:"+n.slice(3).toLowerCase()}}),ZQ={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},eY=/[A-Z]/g,jS=/-[a-z]/g,tY=/^data[-\w.:]+$/i;function nY(t,n){const r=L0(n);let i=n,s=rr;if(r in t.normal)return t.property[t.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&tY.test(n)){if(n.charAt(4)==="-"){const a=n.slice(5).replace(jS,iY);i="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=n.slice(4);if(!jS.test(a)){let o=a.replace(eY,rY);o.charAt(0)!=="-"&&(o="-"+o),n="data"+o}}s=xb}return new s(i,n)}function rY(t){return"-"+t.toLowerCase()}function iY(t){return t.charAt(1).toUpperCase()}const sY=n6([r6,XQ,a6,o6,l6],"html"),vb=n6([r6,JQ,a6,o6,l6],"svg");function aY(t){return t.join(" ").trim()}var Fo={},hv,wS;function oY(){if(wS)return hv;wS=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,c=/^\s+|\s+$/g,d=`
`,h="/",f="*",m="",p="comment",g="declaration";hv=function(j,v){if(typeof j!="string")throw new TypeError("First argument must be a string");if(!j)return[];v=v||{};var x=1,N=1;function w(z){var q=z.match(n);q&&(x+=q.length);var U=z.lastIndexOf(d);N=~U?z.length-U:N+z.length}function k(){var z={line:x,column:N};return function(q){return q.position=new A(z),C(),q}}function A(z){this.start=z,this.end={line:x,column:N},this.source=v.source}A.prototype.content=j;function S(z){var q=new Error(v.source+":"+x+":"+N+": "+z);if(q.reason=z,q.filename=v.source,q.line=x,q.column=N,q.source=j,!v.silent)throw q}function E(z){var q=z.exec(j);if(q){var U=q[0];return w(U),j=j.slice(U.length),q}}function C(){E(r)}function B(z){var q;for(z=z||[];q=F();)q!==!1&&z.push(q);return z}function F(){var z=k();if(!(h!=j.charAt(0)||f!=j.charAt(1))){for(var q=2;m!=j.charAt(q)&&(f!=j.charAt(q)||h!=j.charAt(q+1));)++q;if(q+=2,m===j.charAt(q-1))return S("End of comment missing");var U=j.slice(2,q-2);return N+=2,w(U),j=j.slice(q),N+=2,z({type:p,comment:U})}}function I(){var z=k(),q=E(i);if(q){if(F(),!E(s))return S("property missing ':'");var U=E(a),Q=z({type:g,property:y(q[0].replace(t,m)),value:U?y(U[0].replace(t,m)):m});return E(o),Q}}function R(){var z=[];B(z);for(var q;q=I();)q!==!1&&(z.push(q),B(z));return z}return C(),R()};function y(j){return j?j.replace(c,m):m}return hv}var NS;function lY(){if(NS)return Fo;NS=1;var t=Fo&&Fo.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Fo,"__esModule",{value:!0}),Fo.default=r;var n=t(oY());function r(i,s){var a=null;if(!i||typeof i!="string")return a;var o=(0,n.default)(i),c=typeof s=="function";return o.forEach(function(d){if(d.type==="declaration"){var h=d.property,f=d.value;c?s(h,f,d):f&&(a=a||{},a[h]=f)}}),a}return Fo}var Cc={},kS;function cY(){if(kS)return Cc;kS=1,Object.defineProperty(Cc,"__esModule",{value:!0}),Cc.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,a=function(h){return!h||r.test(h)||t.test(h)},o=function(h,f){return f.toUpperCase()},c=function(h,f){return"".concat(f,"-")},d=function(h,f){return f===void 0&&(f={}),a(h)?h:(h=h.toLowerCase(),f.reactCompat?h=h.replace(s,c):h=h.replace(i,c),h.replace(n,o))};return Cc.camelCase=d,Cc}var Ec,_S;function uY(){if(_S)return Ec;_S=1;var t=Ec&&Ec.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},n=t(lY()),r=cY();function i(s,a){var o={};return!s||typeof s!="string"||(0,n.default)(s,function(c,d){c&&d&&(o[(0,r.camelCase)(c,a)]=d)}),o}return i.default=i,Ec=i,Ec}var dY=uY();const hY=_i(dY),c6=u6("end"),yb=u6("start");function u6(t){return n;function n(r){const i=r&&r.position&&r.position[t]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function fY(t){const n=yb(t),r=c6(t);if(n&&r)return{start:n,end:r}}function Xc(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?SS(t.position):"start"in t||"end"in t?SS(t):"line"in t||"column"in t?q0(t):""}function q0(t){return AS(t&&t.line)+":"+AS(t&&t.column)}function SS(t){return q0(t&&t.start)+"-"+q0(t&&t.end)}function AS(t){return t&&typeof t=="number"?t:1}class Fn extends Error{constructor(n,r,i){super(),typeof r=="string"&&(i=r,r=void 0);let s="",a={},o=!1;if(r&&("line"in r&&"column"in r?a={place:r}:"start"in r&&"end"in r?a={place:r}:"type"in r?a={ancestors:[r],place:r.position}:a={...r}),typeof n=="string"?s=n:!a.cause&&n&&(o=!0,s=n.message,a.cause=n),!a.ruleId&&!a.source&&typeof i=="string"){const d=i.indexOf(":");d===-1?a.ruleId=i:(a.source=i.slice(0,d),a.ruleId=i.slice(d+1))}if(!a.place&&a.ancestors&&a.ancestors){const d=a.ancestors[a.ancestors.length-1];d&&(a.place=d.position)}const c=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=c?c.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=c?c.line:void 0,this.name=Xc(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Fn.prototype.file="";Fn.prototype.name="";Fn.prototype.reason="";Fn.prototype.message="";Fn.prototype.stack="";Fn.prototype.column=void 0;Fn.prototype.line=void 0;Fn.prototype.ancestors=void 0;Fn.prototype.cause=void 0;Fn.prototype.fatal=void 0;Fn.prototype.place=void 0;Fn.prototype.ruleId=void 0;Fn.prototype.source=void 0;const bb={}.hasOwnProperty,mY=new Map,pY=/[A-Z]/g,gY=new Set(["table","tbody","thead","tfoot","tr"]),xY=new Set(["td","th"]),d6="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function vY(t,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=n.filePath||void 0;let i;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=SY(r,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=_Y(r,n.jsx,n.jsxs)}const s={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:i,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?vb:sY,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},a=h6(s,t,void 0);return a&&typeof a!="string"?a:s.create(t,s.Fragment,{children:a||void 0},void 0)}function h6(t,n,r){if(n.type==="element")return yY(t,n,r);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return bY(t,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return wY(t,n,r);if(n.type==="mdxjsEsm")return jY(t,n);if(n.type==="root")return NY(t,n,r);if(n.type==="text")return kY(t,n)}function yY(t,n,r){const i=t.schema;let s=i;n.tagName.toLowerCase()==="svg"&&i.space==="html"&&(s=vb,t.schema=s),t.ancestors.push(n);const a=m6(t,n.tagName,!1),o=AY(t,n);let c=wb(t,n);return gY.has(n.tagName)&&(c=c.filter(function(d){return typeof d=="string"?!QQ(d):!0})),f6(t,o,a,n),jb(o,c),t.ancestors.pop(),t.schema=i,t.create(n,a,o,r)}function bY(t,n){if(n.data&&n.data.estree&&t.evaluater){const i=n.data.estree.body[0];return i.type,t.evaluater.evaluateExpression(i.expression)}yu(t,n.position)}function jY(t,n){if(n.data&&n.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(n.data.estree);yu(t,n.position)}function wY(t,n,r){const i=t.schema;let s=i;n.name==="svg"&&i.space==="html"&&(s=vb,t.schema=s),t.ancestors.push(n);const a=n.name===null?t.Fragment:m6(t,n.name,!0),o=CY(t,n),c=wb(t,n);return f6(t,o,a,n),jb(o,c),t.ancestors.pop(),t.schema=i,t.create(n,a,o,r)}function NY(t,n,r){const i={};return jb(i,wb(t,n)),t.create(n,t.Fragment,i,r)}function kY(t,n){return n.value}function f6(t,n,r,i){typeof r!="string"&&r!==t.Fragment&&t.passNode&&(n.node=i)}function jb(t,n){if(n.length>0){const r=n.length>1?n:n[0];r&&(t.children=r)}}function _Y(t,n,r){return i;function i(s,a,o,c){const h=Array.isArray(o.children)?r:n;return c?h(a,o,c):h(a,o)}}function SY(t,n){return r;function r(i,s,a,o){const c=Array.isArray(a.children),d=yb(i);return n(s,a,o,c,{columnNumber:d?d.column-1:void 0,fileName:t,lineNumber:d?d.line:void 0},void 0)}}function AY(t,n){const r={};let i,s;for(s in n.properties)if(s!=="children"&&bb.call(n.properties,s)){const a=EY(t,s,n.properties[s]);if(a){const[o,c]=a;t.tableCellAlignToStyle&&o==="align"&&typeof c=="string"&&xY.has(n.tagName)?i=c:r[o]=c}}if(i){const a=r.style||(r.style={});a[t.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return r}function CY(t,n){const r={};for(const i of n.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&t.evaluater){const a=i.data.estree.body[0];a.type;const o=a.expression;o.type;const c=o.properties[0];c.type,Object.assign(r,t.evaluater.evaluateExpression(c.argument))}else yu(t,n.position);else{const s=i.name;let a;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&t.evaluater){const c=i.value.data.estree.body[0];c.type,a=t.evaluater.evaluateExpression(c.expression)}else yu(t,n.position);else a=i.value===null?!0:i.value;r[s]=a}return r}function wb(t,n){const r=[];let i=-1;const s=t.passKeys?new Map:mY;for(;++i<n.children.length;){const a=n.children[i];let o;if(t.passKeys){const d=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(d){const h=s.get(d)||0;o=d+"-"+h,s.set(d,h+1)}}const c=h6(t,a,o);c!==void 0&&r.push(c)}return r}function EY(t,n,r){const i=nY(t.schema,n);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=i.commaSeparated?$Q(r):aY(r)),i.property==="style"){let s=typeof r=="object"?r:TY(t,String(r));return t.stylePropertyNameCase==="css"&&(s=OY(s)),["style",s]}return[t.elementAttributeNameCase==="react"&&i.space?ZQ[i.property]||i.property:i.attribute,r]}}function TY(t,n){try{return hY(n,{reactCompat:!0})}catch(r){if(t.ignoreInvalidStyle)return{};const i=r,s=new Fn("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=t.filePath||void 0,s.url=d6+"#cannot-parse-style-attribute",s}}function m6(t,n,r){let i;if(!r)i={type:"Literal",value:n};else if(n.includes(".")){const s=n.split(".");let a=-1,o;for(;++a<s.length;){const c=vS(s[a])?{type:"Identifier",name:s[a]}:{type:"Literal",value:s[a]};o=o?{type:"MemberExpression",object:o,property:c,computed:!!(a&&c.type==="Literal"),optional:!1}:c}i=o}else i=vS(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(i.type==="Literal"){const s=i.value;return bb.call(t.components,s)?t.components[s]:s}if(t.evaluater)return t.evaluater.evaluateExpression(i);yu(t)}function yu(t,n){const r=new Fn("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=t.filePath||void 0,r.url=d6+"#cannot-handle-mdx-estrees-without-createevaluater",r}function OY(t){const n={};let r;for(r in t)bb.call(t,r)&&(n[PY(r)]=t[r]);return n}function PY(t){let n=t.replace(pY,DY);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function DY(t){return"-"+t.toLowerCase()}const fv={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},IY={};function RY(t,n){const r=IY,i=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,s=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return p6(t,i,s)}function p6(t,n,r){if(FY(t)){if("value"in t)return t.type==="html"&&!r?"":t.value;if(n&&"alt"in t&&t.alt)return t.alt;if("children"in t)return CS(t.children,n,r)}return Array.isArray(t)?CS(t,n,r):""}function CS(t,n,r){const i=[];let s=-1;for(;++s<t.length;)i[s]=p6(t[s],n,r);return i.join("")}function FY(t){return!!(t&&typeof t=="object")}const ES=document.createElement("i");function Nb(t){const n="&"+t+";";ES.innerHTML=n;const r=ES.textContent;return r.charCodeAt(r.length-1)===59&&t!=="semi"||r===n?!1:r}function ki(t,n,r,i){const s=t.length;let a=0,o;if(n<0?n=-n>s?0:s+n:n=n>s?s:n,r=r>0?r:0,i.length<1e4)o=Array.from(i),o.unshift(n,r),t.splice(...o);else for(r&&t.splice(n,r);a<i.length;)o=i.slice(a,a+1e4),o.unshift(n,0),t.splice(...o),a+=1e4,n+=1e4}function Er(t,n){return t.length>0?(ki(t,t.length,0,n),t):n}const TS={}.hasOwnProperty;function MY(t){const n={};let r=-1;for(;++r<t.length;)LY(n,t[r]);return n}function LY(t,n){let r;for(r in n){const s=(TS.call(t,r)?t[r]:void 0)||(t[r]={}),a=n[r];let o;if(a)for(o in a){TS.call(s,o)||(s[o]=[]);const c=a[o];BY(s[o],Array.isArray(c)?c:c?[c]:[])}}}function BY(t,n){let r=-1;const i=[];for(;++r<n.length;)(n[r].add==="after"?t:i).push(n[r]);ki(t,0,0,i)}function g6(t,n){const r=Number.parseInt(t,n);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function Jo(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ui=ra(/[A-Za-z]/),hr=ra(/[\dA-Za-z]/),zY=ra(/[#-'*+\--9=?A-Z^-~]/);function V0(t){return t!==null&&(t<32||t===127)}const U0=ra(/\d/),qY=ra(/[\dA-Fa-f]/),VY=ra(/[!-/:-@[-`{-~]/);function Ze(t){return t!==null&&t<-2}function nr(t){return t!==null&&(t<0||t===32)}function kt(t){return t===-2||t===-1||t===32}const UY=ra(new RegExp("\\p{P}|\\p{S}","u")),$Y=ra(/\s/);function ra(t){return n;function n(r){return r!==null&&r>-1&&t.test(String.fromCharCode(r))}}function Rl(t){const n=[];let r=-1,i=0,s=0;for(;++r<t.length;){const a=t.charCodeAt(r);let o="";if(a===37&&hr(t.charCodeAt(r+1))&&hr(t.charCodeAt(r+2)))s=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){const c=t.charCodeAt(r+1);a<56320&&c>56319&&c<57344?(o=String.fromCharCode(a,c),s=1):o="�"}else o=String.fromCharCode(a);o&&(n.push(t.slice(i,r),encodeURIComponent(o)),i=r+s+1,o=""),s&&(r+=s,s=0)}return n.join("")+t.slice(i)}function Mt(t,n,r,i){const s=i?i-1:Number.POSITIVE_INFINITY;let a=0;return o;function o(d){return kt(d)?(t.enter(r),c(d)):n(d)}function c(d){return kt(d)&&a++<s?(t.consume(d),c):(t.exit(r),n(d))}}const HY={tokenize:WY};function WY(t){const n=t.attempt(this.parser.constructs.contentInitial,i,s);let r;return n;function i(c){if(c===null){t.consume(c);return}return t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),Mt(t,n,"linePrefix")}function s(c){return t.enter("paragraph"),a(c)}function a(c){const d=t.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=d),r=d,o(c)}function o(c){if(c===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(c);return}return Ze(c)?(t.consume(c),t.exit("chunkText"),a):(t.consume(c),o)}}const KY={tokenize:GY},OS={tokenize:QY};function GY(t){const n=this,r=[];let i=0,s,a,o;return c;function c(w){if(i<r.length){const k=r[i];return n.containerState=k[1],t.attempt(k[0].continuation,d,h)(w)}return h(w)}function d(w){if(i++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,s&&N();const k=n.events.length;let A=k,S;for(;A--;)if(n.events[A][0]==="exit"&&n.events[A][1].type==="chunkFlow"){S=n.events[A][1].end;break}x(i);let E=k;for(;E<n.events.length;)n.events[E][1].end={...S},E++;return ki(n.events,A+1,0,n.events.slice(k)),n.events.length=E,h(w)}return c(w)}function h(w){if(i===r.length){if(!s)return p(w);if(s.currentConstruct&&s.currentConstruct.concrete)return y(w);n.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return n.containerState={},t.check(OS,f,m)(w)}function f(w){return s&&N(),x(i),p(w)}function m(w){return n.parser.lazy[n.now().line]=i!==r.length,o=n.now().offset,y(w)}function p(w){return n.containerState={},t.attempt(OS,g,y)(w)}function g(w){return i++,r.push([n.currentConstruct,n.containerState]),p(w)}function y(w){if(w===null){s&&N(),x(0),t.consume(w);return}return s=s||n.parser.flow(n.now()),t.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:a}),j(w)}function j(w){if(w===null){v(t.exit("chunkFlow"),!0),x(0),t.consume(w);return}return Ze(w)?(t.consume(w),v(t.exit("chunkFlow")),i=0,n.interrupt=void 0,c):(t.consume(w),j)}function v(w,k){const A=n.sliceStream(w);if(k&&A.push(null),w.previous=a,a&&(a.next=w),a=w,s.defineSkip(w.start),s.write(A),n.parser.lazy[w.start.line]){let S=s.events.length;for(;S--;)if(s.events[S][1].start.offset<o&&(!s.events[S][1].end||s.events[S][1].end.offset>o))return;const E=n.events.length;let C=E,B,F;for(;C--;)if(n.events[C][0]==="exit"&&n.events[C][1].type==="chunkFlow"){if(B){F=n.events[C][1].end;break}B=!0}for(x(i),S=E;S<n.events.length;)n.events[S][1].end={...F},S++;ki(n.events,C+1,0,n.events.slice(E)),n.events.length=S}}function x(w){let k=r.length;for(;k-- >w;){const A=r[k];n.containerState=A[1],A[0].exit.call(n,t)}r.length=w}function N(){s.write([null]),a=void 0,s=void 0,n.containerState._closeFlow=void 0}}function QY(t,n,r){return Mt(t,t.attempt(this.parser.constructs.document,n,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function PS(t){if(t===null||nr(t)||$Y(t))return 1;if(UY(t))return 2}function kb(t,n,r){const i=[];let s=-1;for(;++s<t.length;){const a=t[s].resolveAll;a&&!i.includes(a)&&(n=a(n,r),i.push(a))}return n}const $0={name:"attention",resolveAll:YY,tokenize:XY};function YY(t,n){let r=-1,i,s,a,o,c,d,h,f;for(;++r<t.length;)if(t[r][0]==="enter"&&t[r][1].type==="attentionSequence"&&t[r][1]._close){for(i=r;i--;)if(t[i][0]==="exit"&&t[i][1].type==="attentionSequence"&&t[i][1]._open&&n.sliceSerialize(t[i][1]).charCodeAt(0)===n.sliceSerialize(t[r][1]).charCodeAt(0)){if((t[i][1]._close||t[r][1]._open)&&(t[r][1].end.offset-t[r][1].start.offset)%3&&!((t[i][1].end.offset-t[i][1].start.offset+t[r][1].end.offset-t[r][1].start.offset)%3))continue;d=t[i][1].end.offset-t[i][1].start.offset>1&&t[r][1].end.offset-t[r][1].start.offset>1?2:1;const m={...t[i][1].end},p={...t[r][1].start};DS(m,-d),DS(p,d),o={type:d>1?"strongSequence":"emphasisSequence",start:m,end:{...t[i][1].end}},c={type:d>1?"strongSequence":"emphasisSequence",start:{...t[r][1].start},end:p},a={type:d>1?"strongText":"emphasisText",start:{...t[i][1].end},end:{...t[r][1].start}},s={type:d>1?"strong":"emphasis",start:{...o.start},end:{...c.end}},t[i][1].end={...o.start},t[r][1].start={...c.end},h=[],t[i][1].end.offset-t[i][1].start.offset&&(h=Er(h,[["enter",t[i][1],n],["exit",t[i][1],n]])),h=Er(h,[["enter",s,n],["enter",o,n],["exit",o,n],["enter",a,n]]),h=Er(h,kb(n.parser.constructs.insideSpan.null,t.slice(i+1,r),n)),h=Er(h,[["exit",a,n],["enter",c,n],["exit",c,n],["exit",s,n]]),t[r][1].end.offset-t[r][1].start.offset?(f=2,h=Er(h,[["enter",t[r][1],n],["exit",t[r][1],n]])):f=0,ki(t,i-1,r-i+3,h),r=i+h.length-f-2;break}}for(r=-1;++r<t.length;)t[r][1].type==="attentionSequence"&&(t[r][1].type="data");return t}function XY(t,n){const r=this.parser.constructs.attentionMarkers.null,i=this.previous,s=PS(i);let a;return o;function o(d){return a=d,t.enter("attentionSequence"),c(d)}function c(d){if(d===a)return t.consume(d),c;const h=t.exit("attentionSequence"),f=PS(d),m=!f||f===2&&s||r.includes(d),p=!s||s===2&&f||r.includes(i);return h._open=!!(a===42?m:m&&(s||!p)),h._close=!!(a===42?p:p&&(f||!m)),n(d)}}function DS(t,n){t.column+=n,t.offset+=n,t._bufferIndex+=n}const JY={name:"autolink",tokenize:ZY};function ZY(t,n,r){let i=0;return s;function s(g){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(g),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),a}function a(g){return ui(g)?(t.consume(g),o):g===64?r(g):h(g)}function o(g){return g===43||g===45||g===46||hr(g)?(i=1,c(g)):h(g)}function c(g){return g===58?(t.consume(g),i=0,d):(g===43||g===45||g===46||hr(g))&&i++<32?(t.consume(g),c):(i=0,h(g))}function d(g){return g===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(g),t.exit("autolinkMarker"),t.exit("autolink"),n):g===null||g===32||g===60||V0(g)?r(g):(t.consume(g),d)}function h(g){return g===64?(t.consume(g),f):zY(g)?(t.consume(g),h):r(g)}function f(g){return hr(g)?m(g):r(g)}function m(g){return g===46?(t.consume(g),i=0,f):g===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(g),t.exit("autolinkMarker"),t.exit("autolink"),n):p(g)}function p(g){if((g===45||hr(g))&&i++<63){const y=g===45?p:m;return t.consume(g),y}return r(g)}}const Hf={partial:!0,tokenize:eX};function eX(t,n,r){return i;function i(a){return kt(a)?Mt(t,s,"linePrefix")(a):s(a)}function s(a){return a===null||Ze(a)?n(a):r(a)}}const x6={continuation:{tokenize:nX},exit:rX,name:"blockQuote",tokenize:tX};function tX(t,n,r){const i=this;return s;function s(o){if(o===62){const c=i.containerState;return c.open||(t.enter("blockQuote",{_container:!0}),c.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(o),t.exit("blockQuoteMarker"),a}return r(o)}function a(o){return kt(o)?(t.enter("blockQuotePrefixWhitespace"),t.consume(o),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),n):(t.exit("blockQuotePrefix"),n(o))}}function nX(t,n,r){const i=this;return s;function s(o){return kt(o)?Mt(t,a,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):a(o)}function a(o){return t.attempt(x6,n,r)(o)}}function rX(t){t.exit("blockQuote")}const v6={name:"characterEscape",tokenize:iX};function iX(t,n,r){return i;function i(a){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(a),t.exit("escapeMarker"),s}function s(a){return VY(a)?(t.enter("characterEscapeValue"),t.consume(a),t.exit("characterEscapeValue"),t.exit("characterEscape"),n):r(a)}}const y6={name:"characterReference",tokenize:sX};function sX(t,n,r){const i=this;let s=0,a,o;return c;function c(m){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(m),t.exit("characterReferenceMarker"),d}function d(m){return m===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(m),t.exit("characterReferenceMarkerNumeric"),h):(t.enter("characterReferenceValue"),a=31,o=hr,f(m))}function h(m){return m===88||m===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(m),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),a=6,o=qY,f):(t.enter("characterReferenceValue"),a=7,o=U0,f(m))}function f(m){if(m===59&&s){const p=t.exit("characterReferenceValue");return o===hr&&!Nb(i.sliceSerialize(p))?r(m):(t.enter("characterReferenceMarker"),t.consume(m),t.exit("characterReferenceMarker"),t.exit("characterReference"),n)}return o(m)&&s++<a?(t.consume(m),f):r(m)}}const IS={partial:!0,tokenize:oX},RS={concrete:!0,name:"codeFenced",tokenize:aX};function aX(t,n,r){const i=this,s={partial:!0,tokenize:A};let a=0,o=0,c;return d;function d(S){return h(S)}function h(S){const E=i.events[i.events.length-1];return a=E&&E[1].type==="linePrefix"?E[2].sliceSerialize(E[1],!0).length:0,c=S,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),f(S)}function f(S){return S===c?(o++,t.consume(S),f):o<3?r(S):(t.exit("codeFencedFenceSequence"),kt(S)?Mt(t,m,"whitespace")(S):m(S))}function m(S){return S===null||Ze(S)?(t.exit("codeFencedFence"),i.interrupt?n(S):t.check(IS,j,k)(S)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),p(S))}function p(S){return S===null||Ze(S)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),m(S)):kt(S)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),Mt(t,g,"whitespace")(S)):S===96&&S===c?r(S):(t.consume(S),p)}function g(S){return S===null||Ze(S)?m(S):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),y(S))}function y(S){return S===null||Ze(S)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),m(S)):S===96&&S===c?r(S):(t.consume(S),y)}function j(S){return t.attempt(s,k,v)(S)}function v(S){return t.enter("lineEnding"),t.consume(S),t.exit("lineEnding"),x}function x(S){return a>0&&kt(S)?Mt(t,N,"linePrefix",a+1)(S):N(S)}function N(S){return S===null||Ze(S)?t.check(IS,j,k)(S):(t.enter("codeFlowValue"),w(S))}function w(S){return S===null||Ze(S)?(t.exit("codeFlowValue"),N(S)):(t.consume(S),w)}function k(S){return t.exit("codeFenced"),n(S)}function A(S,E,C){let B=0;return F;function F(U){return S.enter("lineEnding"),S.consume(U),S.exit("lineEnding"),I}function I(U){return S.enter("codeFencedFence"),kt(U)?Mt(S,R,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(U):R(U)}function R(U){return U===c?(S.enter("codeFencedFenceSequence"),z(U)):C(U)}function z(U){return U===c?(B++,S.consume(U),z):B>=o?(S.exit("codeFencedFenceSequence"),kt(U)?Mt(S,q,"whitespace")(U):q(U)):C(U)}function q(U){return U===null||Ze(U)?(S.exit("codeFencedFence"),E(U)):C(U)}}}function oX(t,n,r){const i=this;return s;function s(o){return o===null?r(o):(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),a)}function a(o){return i.parser.lazy[i.now().line]?r(o):n(o)}}const mv={name:"codeIndented",tokenize:cX},lX={partial:!0,tokenize:uX};function cX(t,n,r){const i=this;return s;function s(h){return t.enter("codeIndented"),Mt(t,a,"linePrefix",5)(h)}function a(h){const f=i.events[i.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?o(h):r(h)}function o(h){return h===null?d(h):Ze(h)?t.attempt(lX,o,d)(h):(t.enter("codeFlowValue"),c(h))}function c(h){return h===null||Ze(h)?(t.exit("codeFlowValue"),o(h)):(t.consume(h),c)}function d(h){return t.exit("codeIndented"),n(h)}}function uX(t,n,r){const i=this;return s;function s(o){return i.parser.lazy[i.now().line]?r(o):Ze(o)?(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),s):Mt(t,a,"linePrefix",5)(o)}function a(o){const c=i.events[i.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?n(o):Ze(o)?s(o):r(o)}}const dX={name:"codeText",previous:fX,resolve:hX,tokenize:mX};function hX(t){let n=t.length-4,r=3,i,s;if((t[r][1].type==="lineEnding"||t[r][1].type==="space")&&(t[n][1].type==="lineEnding"||t[n][1].type==="space")){for(i=r;++i<n;)if(t[i][1].type==="codeTextData"){t[r][1].type="codeTextPadding",t[n][1].type="codeTextPadding",r+=2,n-=2;break}}for(i=r-1,n++;++i<=n;)s===void 0?i!==n&&t[i][1].type!=="lineEnding"&&(s=i):(i===n||t[i][1].type==="lineEnding")&&(t[s][1].type="codeTextData",i!==s+2&&(t[s][1].end=t[i-1][1].end,t.splice(s+2,i-s-2),n-=i-s-2,i=s+2),s=void 0);return t}function fX(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function mX(t,n,r){let i=0,s,a;return o;function o(m){return t.enter("codeText"),t.enter("codeTextSequence"),c(m)}function c(m){return m===96?(t.consume(m),i++,c):(t.exit("codeTextSequence"),d(m))}function d(m){return m===null?r(m):m===32?(t.enter("space"),t.consume(m),t.exit("space"),d):m===96?(a=t.enter("codeTextSequence"),s=0,f(m)):Ze(m)?(t.enter("lineEnding"),t.consume(m),t.exit("lineEnding"),d):(t.enter("codeTextData"),h(m))}function h(m){return m===null||m===32||m===96||Ze(m)?(t.exit("codeTextData"),d(m)):(t.consume(m),h)}function f(m){return m===96?(t.consume(m),s++,f):s===i?(t.exit("codeTextSequence"),t.exit("codeText"),n(m)):(a.type="codeTextData",h(m))}}class pX{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,r){const i=r??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(n,i):n>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(n,r,i){const s=r||0;this.setCursor(Math.trunc(n));const a=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return i&&Tc(this.left,i),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),Tc(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Tc(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const r=this.left.splice(n,Number.POSITIVE_INFINITY);Tc(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);Tc(this.left,r.reverse())}}}function Tc(t,n){let r=0;if(n.length<1e4)t.push(...n);else for(;r<n.length;)t.push(...n.slice(r,r+1e4)),r+=1e4}function b6(t){const n={};let r=-1,i,s,a,o,c,d,h;const f=new pX(t);for(;++r<f.length;){for(;r in n;)r=n[r];if(i=f.get(r),r&&i[1].type==="chunkFlow"&&f.get(r-1)[1].type==="listItemPrefix"&&(d=i[1]._tokenizer.events,a=0,a<d.length&&d[a][1].type==="lineEndingBlank"&&(a+=2),a<d.length&&d[a][1].type==="content"))for(;++a<d.length&&d[a][1].type!=="content";)d[a][1].type==="chunkText"&&(d[a][1]._isInFirstContentOfListItem=!0,a++);if(i[0]==="enter")i[1].contentType&&(Object.assign(n,gX(f,r)),r=n[r],h=!0);else if(i[1]._container){for(a=r,s=void 0;a--;)if(o=f.get(a),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(s&&(f.get(s)[1].type="lineEndingBlank"),o[1].type="lineEnding",s=a);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;s&&(i[1].end={...f.get(s)[1].start},c=f.slice(s,r),c.unshift(i),f.splice(s,r-s+1,c))}}return ki(t,0,Number.POSITIVE_INFINITY,f.slice(0)),!h}function gX(t,n){const r=t.get(n)[1],i=t.get(n)[2];let s=n-1;const a=[];let o=r._tokenizer;o||(o=i.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const c=o.events,d=[],h={};let f,m,p=-1,g=r,y=0,j=0;const v=[j];for(;g;){for(;t.get(++s)[1]!==g;);a.push(s),g._tokenizer||(f=i.sliceStream(g),g.next||f.push(null),m&&o.defineSkip(g.start),g._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(f),g._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),m=g,g=g.next}for(g=r;++p<c.length;)c[p][0]==="exit"&&c[p-1][0]==="enter"&&c[p][1].type===c[p-1][1].type&&c[p][1].start.line!==c[p][1].end.line&&(j=p+1,v.push(j),g._tokenizer=void 0,g.previous=void 0,g=g.next);for(o.events=[],g?(g._tokenizer=void 0,g.previous=void 0):v.pop(),p=v.length;p--;){const x=c.slice(v[p],v[p+1]),N=a.pop();d.push([N,N+x.length-1]),t.splice(N,2,x)}for(d.reverse(),p=-1;++p<d.length;)h[y+d[p][0]]=y+d[p][1],y+=d[p][1]-d[p][0]-1;return h}const xX={resolve:yX,tokenize:bX},vX={partial:!0,tokenize:jX};function yX(t){return b6(t),t}function bX(t,n){let r;return i;function i(c){return t.enter("content"),r=t.enter("chunkContent",{contentType:"content"}),s(c)}function s(c){return c===null?a(c):Ze(c)?t.check(vX,o,a)(c):(t.consume(c),s)}function a(c){return t.exit("chunkContent"),t.exit("content"),n(c)}function o(c){return t.consume(c),t.exit("chunkContent"),r.next=t.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,s}}function jX(t,n,r){const i=this;return s;function s(o){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),Mt(t,a,"linePrefix")}function a(o){if(o===null||Ze(o))return r(o);const c=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?n(o):t.interrupt(i.parser.constructs.flow,r,n)(o)}}function j6(t,n,r,i,s,a,o,c,d){const h=d||Number.POSITIVE_INFINITY;let f=0;return m;function m(x){return x===60?(t.enter(i),t.enter(s),t.enter(a),t.consume(x),t.exit(a),p):x===null||x===32||x===41||V0(x)?r(x):(t.enter(i),t.enter(o),t.enter(c),t.enter("chunkString",{contentType:"string"}),j(x))}function p(x){return x===62?(t.enter(a),t.consume(x),t.exit(a),t.exit(s),t.exit(i),n):(t.enter(c),t.enter("chunkString",{contentType:"string"}),g(x))}function g(x){return x===62?(t.exit("chunkString"),t.exit(c),p(x)):x===null||x===60||Ze(x)?r(x):(t.consume(x),x===92?y:g)}function y(x){return x===60||x===62||x===92?(t.consume(x),g):g(x)}function j(x){return!f&&(x===null||x===41||nr(x))?(t.exit("chunkString"),t.exit(c),t.exit(o),t.exit(i),n(x)):f<h&&x===40?(t.consume(x),f++,j):x===41?(t.consume(x),f--,j):x===null||x===32||x===40||V0(x)?r(x):(t.consume(x),x===92?v:j)}function v(x){return x===40||x===41||x===92?(t.consume(x),j):j(x)}}function w6(t,n,r,i,s,a){const o=this;let c=0,d;return h;function h(g){return t.enter(i),t.enter(s),t.consume(g),t.exit(s),t.enter(a),f}function f(g){return c>999||g===null||g===91||g===93&&!d||g===94&&!c&&"_hiddenFootnoteSupport"in o.parser.constructs?r(g):g===93?(t.exit(a),t.enter(s),t.consume(g),t.exit(s),t.exit(i),n):Ze(g)?(t.enter("lineEnding"),t.consume(g),t.exit("lineEnding"),f):(t.enter("chunkString",{contentType:"string"}),m(g))}function m(g){return g===null||g===91||g===93||Ze(g)||c++>999?(t.exit("chunkString"),f(g)):(t.consume(g),d||(d=!kt(g)),g===92?p:m)}function p(g){return g===91||g===92||g===93?(t.consume(g),c++,m):m(g)}}function N6(t,n,r,i,s,a){let o;return c;function c(p){return p===34||p===39||p===40?(t.enter(i),t.enter(s),t.consume(p),t.exit(s),o=p===40?41:p,d):r(p)}function d(p){return p===o?(t.enter(s),t.consume(p),t.exit(s),t.exit(i),n):(t.enter(a),h(p))}function h(p){return p===o?(t.exit(a),d(o)):p===null?r(p):Ze(p)?(t.enter("lineEnding"),t.consume(p),t.exit("lineEnding"),Mt(t,h,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===o||p===null||Ze(p)?(t.exit("chunkString"),h(p)):(t.consume(p),p===92?m:f)}function m(p){return p===o||p===92?(t.consume(p),f):f(p)}}function Jc(t,n){let r;return i;function i(s){return Ze(s)?(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),r=!0,i):kt(s)?Mt(t,i,r?"linePrefix":"lineSuffix")(s):n(s)}}const wX={name:"definition",tokenize:kX},NX={partial:!0,tokenize:_X};function kX(t,n,r){const i=this;let s;return a;function a(g){return t.enter("definition"),o(g)}function o(g){return w6.call(i,t,c,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(g)}function c(g){return s=Jo(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),g===58?(t.enter("definitionMarker"),t.consume(g),t.exit("definitionMarker"),d):r(g)}function d(g){return nr(g)?Jc(t,h)(g):h(g)}function h(g){return j6(t,f,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(g)}function f(g){return t.attempt(NX,m,m)(g)}function m(g){return kt(g)?Mt(t,p,"whitespace")(g):p(g)}function p(g){return g===null||Ze(g)?(t.exit("definition"),i.parser.defined.push(s),n(g)):r(g)}}function _X(t,n,r){return i;function i(c){return nr(c)?Jc(t,s)(c):r(c)}function s(c){return N6(t,a,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(c)}function a(c){return kt(c)?Mt(t,o,"whitespace")(c):o(c)}function o(c){return c===null||Ze(c)?n(c):r(c)}}const SX={name:"hardBreakEscape",tokenize:AX};function AX(t,n,r){return i;function i(a){return t.enter("hardBreakEscape"),t.consume(a),s}function s(a){return Ze(a)?(t.exit("hardBreakEscape"),n(a)):r(a)}}const CX={name:"headingAtx",resolve:EX,tokenize:TX};function EX(t,n){let r=t.length-2,i=3,s,a;return t[i][1].type==="whitespace"&&(i+=2),r-2>i&&t[r][1].type==="whitespace"&&(r-=2),t[r][1].type==="atxHeadingSequence"&&(i===r-1||r-4>i&&t[r-2][1].type==="whitespace")&&(r-=i+1===r?2:4),r>i&&(s={type:"atxHeadingText",start:t[i][1].start,end:t[r][1].end},a={type:"chunkText",start:t[i][1].start,end:t[r][1].end,contentType:"text"},ki(t,i,r-i+1,[["enter",s,n],["enter",a,n],["exit",a,n],["exit",s,n]])),t}function TX(t,n,r){let i=0;return s;function s(f){return t.enter("atxHeading"),a(f)}function a(f){return t.enter("atxHeadingSequence"),o(f)}function o(f){return f===35&&i++<6?(t.consume(f),o):f===null||nr(f)?(t.exit("atxHeadingSequence"),c(f)):r(f)}function c(f){return f===35?(t.enter("atxHeadingSequence"),d(f)):f===null||Ze(f)?(t.exit("atxHeading"),n(f)):kt(f)?Mt(t,c,"whitespace")(f):(t.enter("atxHeadingText"),h(f))}function d(f){return f===35?(t.consume(f),d):(t.exit("atxHeadingSequence"),c(f))}function h(f){return f===null||f===35||nr(f)?(t.exit("atxHeadingText"),c(f)):(t.consume(f),h)}}const OX=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],FS=["pre","script","style","textarea"],PX={concrete:!0,name:"htmlFlow",resolveTo:RX,tokenize:FX},DX={partial:!0,tokenize:LX},IX={partial:!0,tokenize:MX};function RX(t){let n=t.length;for(;n--&&!(t[n][0]==="enter"&&t[n][1].type==="htmlFlow"););return n>1&&t[n-2][1].type==="linePrefix"&&(t[n][1].start=t[n-2][1].start,t[n+1][1].start=t[n-2][1].start,t.splice(n-2,2)),t}function FX(t,n,r){const i=this;let s,a,o,c,d;return h;function h(L){return f(L)}function f(L){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(L),m}function m(L){return L===33?(t.consume(L),p):L===47?(t.consume(L),a=!0,j):L===63?(t.consume(L),s=3,i.interrupt?n:P):ui(L)?(t.consume(L),o=String.fromCharCode(L),v):r(L)}function p(L){return L===45?(t.consume(L),s=2,g):L===91?(t.consume(L),s=5,c=0,y):ui(L)?(t.consume(L),s=4,i.interrupt?n:P):r(L)}function g(L){return L===45?(t.consume(L),i.interrupt?n:P):r(L)}function y(L){const X="CDATA[";return L===X.charCodeAt(c++)?(t.consume(L),c===X.length?i.interrupt?n:R:y):r(L)}function j(L){return ui(L)?(t.consume(L),o=String.fromCharCode(L),v):r(L)}function v(L){if(L===null||L===47||L===62||nr(L)){const X=L===47,J=o.toLowerCase();return!X&&!a&&FS.includes(J)?(s=1,i.interrupt?n(L):R(L)):OX.includes(o.toLowerCase())?(s=6,X?(t.consume(L),x):i.interrupt?n(L):R(L)):(s=7,i.interrupt&&!i.parser.lazy[i.now().line]?r(L):a?N(L):w(L))}return L===45||hr(L)?(t.consume(L),o+=String.fromCharCode(L),v):r(L)}function x(L){return L===62?(t.consume(L),i.interrupt?n:R):r(L)}function N(L){return kt(L)?(t.consume(L),N):F(L)}function w(L){return L===47?(t.consume(L),F):L===58||L===95||ui(L)?(t.consume(L),k):kt(L)?(t.consume(L),w):F(L)}function k(L){return L===45||L===46||L===58||L===95||hr(L)?(t.consume(L),k):A(L)}function A(L){return L===61?(t.consume(L),S):kt(L)?(t.consume(L),A):w(L)}function S(L){return L===null||L===60||L===61||L===62||L===96?r(L):L===34||L===39?(t.consume(L),d=L,E):kt(L)?(t.consume(L),S):C(L)}function E(L){return L===d?(t.consume(L),d=null,B):L===null||Ze(L)?r(L):(t.consume(L),E)}function C(L){return L===null||L===34||L===39||L===47||L===60||L===61||L===62||L===96||nr(L)?A(L):(t.consume(L),C)}function B(L){return L===47||L===62||kt(L)?w(L):r(L)}function F(L){return L===62?(t.consume(L),I):r(L)}function I(L){return L===null||Ze(L)?R(L):kt(L)?(t.consume(L),I):r(L)}function R(L){return L===45&&s===2?(t.consume(L),Q):L===60&&s===1?(t.consume(L),H):L===62&&s===4?(t.consume(L),T):L===63&&s===3?(t.consume(L),P):L===93&&s===5?(t.consume(L),Y):Ze(L)&&(s===6||s===7)?(t.exit("htmlFlowData"),t.check(DX,V,z)(L)):L===null||Ze(L)?(t.exit("htmlFlowData"),z(L)):(t.consume(L),R)}function z(L){return t.check(IX,q,V)(L)}function q(L){return t.enter("lineEnding"),t.consume(L),t.exit("lineEnding"),U}function U(L){return L===null||Ze(L)?z(L):(t.enter("htmlFlowData"),R(L))}function Q(L){return L===45?(t.consume(L),P):R(L)}function H(L){return L===47?(t.consume(L),o="",K):R(L)}function K(L){if(L===62){const X=o.toLowerCase();return FS.includes(X)?(t.consume(L),T):R(L)}return ui(L)&&o.length<8?(t.consume(L),o+=String.fromCharCode(L),K):R(L)}function Y(L){return L===93?(t.consume(L),P):R(L)}function P(L){return L===62?(t.consume(L),T):L===45&&s===2?(t.consume(L),P):R(L)}function T(L){return L===null||Ze(L)?(t.exit("htmlFlowData"),V(L)):(t.consume(L),T)}function V(L){return t.exit("htmlFlow"),n(L)}}function MX(t,n,r){const i=this;return s;function s(o){return Ze(o)?(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),a):r(o)}function a(o){return i.parser.lazy[i.now().line]?r(o):n(o)}}function LX(t,n,r){return i;function i(s){return t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),t.attempt(Hf,n,r)}}const BX={name:"htmlText",tokenize:zX};function zX(t,n,r){const i=this;let s,a,o;return c;function c(P){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(P),d}function d(P){return P===33?(t.consume(P),h):P===47?(t.consume(P),A):P===63?(t.consume(P),w):ui(P)?(t.consume(P),C):r(P)}function h(P){return P===45?(t.consume(P),f):P===91?(t.consume(P),a=0,y):ui(P)?(t.consume(P),N):r(P)}function f(P){return P===45?(t.consume(P),g):r(P)}function m(P){return P===null?r(P):P===45?(t.consume(P),p):Ze(P)?(o=m,H(P)):(t.consume(P),m)}function p(P){return P===45?(t.consume(P),g):m(P)}function g(P){return P===62?Q(P):P===45?p(P):m(P)}function y(P){const T="CDATA[";return P===T.charCodeAt(a++)?(t.consume(P),a===T.length?j:y):r(P)}function j(P){return P===null?r(P):P===93?(t.consume(P),v):Ze(P)?(o=j,H(P)):(t.consume(P),j)}function v(P){return P===93?(t.consume(P),x):j(P)}function x(P){return P===62?Q(P):P===93?(t.consume(P),x):j(P)}function N(P){return P===null||P===62?Q(P):Ze(P)?(o=N,H(P)):(t.consume(P),N)}function w(P){return P===null?r(P):P===63?(t.consume(P),k):Ze(P)?(o=w,H(P)):(t.consume(P),w)}function k(P){return P===62?Q(P):w(P)}function A(P){return ui(P)?(t.consume(P),S):r(P)}function S(P){return P===45||hr(P)?(t.consume(P),S):E(P)}function E(P){return Ze(P)?(o=E,H(P)):kt(P)?(t.consume(P),E):Q(P)}function C(P){return P===45||hr(P)?(t.consume(P),C):P===47||P===62||nr(P)?B(P):r(P)}function B(P){return P===47?(t.consume(P),Q):P===58||P===95||ui(P)?(t.consume(P),F):Ze(P)?(o=B,H(P)):kt(P)?(t.consume(P),B):Q(P)}function F(P){return P===45||P===46||P===58||P===95||hr(P)?(t.consume(P),F):I(P)}function I(P){return P===61?(t.consume(P),R):Ze(P)?(o=I,H(P)):kt(P)?(t.consume(P),I):B(P)}function R(P){return P===null||P===60||P===61||P===62||P===96?r(P):P===34||P===39?(t.consume(P),s=P,z):Ze(P)?(o=R,H(P)):kt(P)?(t.consume(P),R):(t.consume(P),q)}function z(P){return P===s?(t.consume(P),s=void 0,U):P===null?r(P):Ze(P)?(o=z,H(P)):(t.consume(P),z)}function q(P){return P===null||P===34||P===39||P===60||P===61||P===96?r(P):P===47||P===62||nr(P)?B(P):(t.consume(P),q)}function U(P){return P===47||P===62||nr(P)?B(P):r(P)}function Q(P){return P===62?(t.consume(P),t.exit("htmlTextData"),t.exit("htmlText"),n):r(P)}function H(P){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(P),t.exit("lineEnding"),K}function K(P){return kt(P)?Mt(t,Y,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):Y(P)}function Y(P){return t.enter("htmlTextData"),o(P)}}const _b={name:"labelEnd",resolveAll:$X,resolveTo:HX,tokenize:WX},qX={tokenize:KX},VX={tokenize:GX},UX={tokenize:QX};function $X(t){let n=-1;const r=[];for(;++n<t.length;){const i=t[n][1];if(r.push(t[n]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const s=i.type==="labelImage"?4:2;i.type="data",n+=s}}return t.length!==r.length&&ki(t,0,t.length,r),t}function HX(t,n){let r=t.length,i=0,s,a,o,c;for(;r--;)if(s=t[r][1],a){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;t[r][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(o){if(t[r][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(a=r,s.type!=="labelLink")){i=2;break}}else s.type==="labelEnd"&&(o=r);const d={type:t[a][1].type==="labelLink"?"link":"image",start:{...t[a][1].start},end:{...t[t.length-1][1].end}},h={type:"label",start:{...t[a][1].start},end:{...t[o][1].end}},f={type:"labelText",start:{...t[a+i+2][1].end},end:{...t[o-2][1].start}};return c=[["enter",d,n],["enter",h,n]],c=Er(c,t.slice(a+1,a+i+3)),c=Er(c,[["enter",f,n]]),c=Er(c,kb(n.parser.constructs.insideSpan.null,t.slice(a+i+4,o-3),n)),c=Er(c,[["exit",f,n],t[o-2],t[o-1],["exit",h,n]]),c=Er(c,t.slice(o+1)),c=Er(c,[["exit",d,n]]),ki(t,a,t.length,c),t}function WX(t,n,r){const i=this;let s=i.events.length,a,o;for(;s--;)if((i.events[s][1].type==="labelImage"||i.events[s][1].type==="labelLink")&&!i.events[s][1]._balanced){a=i.events[s][1];break}return c;function c(p){return a?a._inactive?m(p):(o=i.parser.defined.includes(Jo(i.sliceSerialize({start:a.end,end:i.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(p),t.exit("labelMarker"),t.exit("labelEnd"),d):r(p)}function d(p){return p===40?t.attempt(qX,f,o?f:m)(p):p===91?t.attempt(VX,f,o?h:m)(p):o?f(p):m(p)}function h(p){return t.attempt(UX,f,m)(p)}function f(p){return n(p)}function m(p){return a._balanced=!0,r(p)}}function KX(t,n,r){return i;function i(m){return t.enter("resource"),t.enter("resourceMarker"),t.consume(m),t.exit("resourceMarker"),s}function s(m){return nr(m)?Jc(t,a)(m):a(m)}function a(m){return m===41?f(m):j6(t,o,c,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(m)}function o(m){return nr(m)?Jc(t,d)(m):f(m)}function c(m){return r(m)}function d(m){return m===34||m===39||m===40?N6(t,h,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(m):f(m)}function h(m){return nr(m)?Jc(t,f)(m):f(m)}function f(m){return m===41?(t.enter("resourceMarker"),t.consume(m),t.exit("resourceMarker"),t.exit("resource"),n):r(m)}}function GX(t,n,r){const i=this;return s;function s(c){return w6.call(i,t,a,o,"reference","referenceMarker","referenceString")(c)}function a(c){return i.parser.defined.includes(Jo(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?n(c):r(c)}function o(c){return r(c)}}function QX(t,n,r){return i;function i(a){return t.enter("reference"),t.enter("referenceMarker"),t.consume(a),t.exit("referenceMarker"),s}function s(a){return a===93?(t.enter("referenceMarker"),t.consume(a),t.exit("referenceMarker"),t.exit("reference"),n):r(a)}}const YX={name:"labelStartImage",resolveAll:_b.resolveAll,tokenize:XX};function XX(t,n,r){const i=this;return s;function s(c){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(c),t.exit("labelImageMarker"),a}function a(c){return c===91?(t.enter("labelMarker"),t.consume(c),t.exit("labelMarker"),t.exit("labelImage"),o):r(c)}function o(c){return c===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(c):n(c)}}const JX={name:"labelStartLink",resolveAll:_b.resolveAll,tokenize:ZX};function ZX(t,n,r){const i=this;return s;function s(o){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(o),t.exit("labelMarker"),t.exit("labelLink"),a}function a(o){return o===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(o):n(o)}}const pv={name:"lineEnding",tokenize:eJ};function eJ(t,n){return r;function r(i){return t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),Mt(t,n,"linePrefix")}}const zh={name:"thematicBreak",tokenize:tJ};function tJ(t,n,r){let i=0,s;return a;function a(h){return t.enter("thematicBreak"),o(h)}function o(h){return s=h,c(h)}function c(h){return h===s?(t.enter("thematicBreakSequence"),d(h)):i>=3&&(h===null||Ze(h))?(t.exit("thematicBreak"),n(h)):r(h)}function d(h){return h===s?(t.consume(h),i++,d):(t.exit("thematicBreakSequence"),kt(h)?Mt(t,c,"whitespace")(h):c(h))}}const Xn={continuation:{tokenize:sJ},exit:oJ,name:"list",tokenize:iJ},nJ={partial:!0,tokenize:lJ},rJ={partial:!0,tokenize:aJ};function iJ(t,n,r){const i=this,s=i.events[i.events.length-1];let a=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,o=0;return c;function c(g){const y=i.containerState.type||(g===42||g===43||g===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!i.containerState.marker||g===i.containerState.marker:U0(g)){if(i.containerState.type||(i.containerState.type=y,t.enter(y,{_container:!0})),y==="listUnordered")return t.enter("listItemPrefix"),g===42||g===45?t.check(zh,r,h)(g):h(g);if(!i.interrupt||g===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),d(g)}return r(g)}function d(g){return U0(g)&&++o<10?(t.consume(g),d):(!i.interrupt||o<2)&&(i.containerState.marker?g===i.containerState.marker:g===41||g===46)?(t.exit("listItemValue"),h(g)):r(g)}function h(g){return t.enter("listItemMarker"),t.consume(g),t.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||g,t.check(Hf,i.interrupt?r:f,t.attempt(nJ,p,m))}function f(g){return i.containerState.initialBlankLine=!0,a++,p(g)}function m(g){return kt(g)?(t.enter("listItemPrefixWhitespace"),t.consume(g),t.exit("listItemPrefixWhitespace"),p):r(g)}function p(g){return i.containerState.size=a+i.sliceSerialize(t.exit("listItemPrefix"),!0).length,n(g)}}function sJ(t,n,r){const i=this;return i.containerState._closeFlow=void 0,t.check(Hf,s,a);function s(c){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,Mt(t,n,"listItemIndent",i.containerState.size+1)(c)}function a(c){return i.containerState.furtherBlankLines||!kt(c)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,o(c)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,t.attempt(rJ,n,o)(c))}function o(c){return i.containerState._closeFlow=!0,i.interrupt=void 0,Mt(t,t.attempt(Xn,n,r),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c)}}function aJ(t,n,r){const i=this;return Mt(t,s,"listItemIndent",i.containerState.size+1);function s(a){const o=i.events[i.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===i.containerState.size?n(a):r(a)}}function oJ(t){t.exit(this.containerState.type)}function lJ(t,n,r){const i=this;return Mt(t,s,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(a){const o=i.events[i.events.length-1];return!kt(a)&&o&&o[1].type==="listItemPrefixWhitespace"?n(a):r(a)}}const MS={name:"setextUnderline",resolveTo:cJ,tokenize:uJ};function cJ(t,n){let r=t.length,i,s,a;for(;r--;)if(t[r][0]==="enter"){if(t[r][1].type==="content"){i=r;break}t[r][1].type==="paragraph"&&(s=r)}else t[r][1].type==="content"&&t.splice(r,1),!a&&t[r][1].type==="definition"&&(a=r);const o={type:"setextHeading",start:{...t[i][1].start},end:{...t[t.length-1][1].end}};return t[s][1].type="setextHeadingText",a?(t.splice(s,0,["enter",o,n]),t.splice(a+1,0,["exit",t[i][1],n]),t[i][1].end={...t[a][1].end}):t[i][1]=o,t.push(["exit",o,n]),t}function uJ(t,n,r){const i=this;let s;return a;function a(h){let f=i.events.length,m;for(;f--;)if(i.events[f][1].type!=="lineEnding"&&i.events[f][1].type!=="linePrefix"&&i.events[f][1].type!=="content"){m=i.events[f][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||m)?(t.enter("setextHeadingLine"),s=h,o(h)):r(h)}function o(h){return t.enter("setextHeadingLineSequence"),c(h)}function c(h){return h===s?(t.consume(h),c):(t.exit("setextHeadingLineSequence"),kt(h)?Mt(t,d,"lineSuffix")(h):d(h))}function d(h){return h===null||Ze(h)?(t.exit("setextHeadingLine"),n(h)):r(h)}}const dJ={tokenize:hJ};function hJ(t){const n=this,r=t.attempt(Hf,i,t.attempt(this.parser.constructs.flowInitial,s,Mt(t,t.attempt(this.parser.constructs.flow,s,t.attempt(xX,s)),"linePrefix")));return r;function i(a){if(a===null){t.consume(a);return}return t.enter("lineEndingBlank"),t.consume(a),t.exit("lineEndingBlank"),n.currentConstruct=void 0,r}function s(a){if(a===null){t.consume(a);return}return t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),n.currentConstruct=void 0,r}}const fJ={resolveAll:_6()},mJ=k6("string"),pJ=k6("text");function k6(t){return{resolveAll:_6(t==="text"?gJ:void 0),tokenize:n};function n(r){const i=this,s=this.parser.constructs[t],a=r.attempt(s,o,c);return o;function o(f){return h(f)?a(f):c(f)}function c(f){if(f===null){r.consume(f);return}return r.enter("data"),r.consume(f),d}function d(f){return h(f)?(r.exit("data"),a(f)):(r.consume(f),d)}function h(f){if(f===null)return!0;const m=s[f];let p=-1;if(m)for(;++p<m.length;){const g=m[p];if(!g.previous||g.previous.call(i,i.previous))return!0}return!1}}}function _6(t){return n;function n(r,i){let s=-1,a;for(;++s<=r.length;)a===void 0?r[s]&&r[s][1].type==="data"&&(a=s,s++):(!r[s]||r[s][1].type!=="data")&&(s!==a+2&&(r[a][1].end=r[s-1][1].end,r.splice(a+2,s-a-2),s=a+2),a=void 0);return t?t(r,i):r}}function gJ(t,n){let r=0;for(;++r<=t.length;)if((r===t.length||t[r][1].type==="lineEnding")&&t[r-1][1].type==="data"){const i=t[r-1][1],s=n.sliceStream(i);let a=s.length,o=-1,c=0,d;for(;a--;){const h=s[a];if(typeof h=="string"){for(o=h.length;h.charCodeAt(o-1)===32;)c++,o--;if(o)break;o=-1}else if(h===-2)d=!0,c++;else if(h!==-1){a++;break}}if(n._contentTypeTextTrailing&&r===t.length&&(c=0),c){const h={type:r===t.length||d||c<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?o:i.start._bufferIndex+o,_index:i.start._index+a,line:i.end.line,column:i.end.column-c,offset:i.end.offset-c},end:{...i.end}};i.end={...h.start},i.start.offset===i.end.offset?Object.assign(i,h):(t.splice(r,0,["enter",h,n],["exit",h,n]),r+=2)}r++}return t}const xJ={42:Xn,43:Xn,45:Xn,48:Xn,49:Xn,50:Xn,51:Xn,52:Xn,53:Xn,54:Xn,55:Xn,56:Xn,57:Xn,62:x6},vJ={91:wX},yJ={[-2]:mv,[-1]:mv,32:mv},bJ={35:CX,42:zh,45:[MS,zh],60:PX,61:MS,95:zh,96:RS,126:RS},jJ={38:y6,92:v6},wJ={[-5]:pv,[-4]:pv,[-3]:pv,33:YX,38:y6,42:$0,60:[JY,BX],91:JX,92:[SX,v6],93:_b,95:$0,96:dX},NJ={null:[$0,fJ]},kJ={null:[42,95]},_J={null:[]},SJ=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:kJ,contentInitial:vJ,disable:_J,document:xJ,flow:bJ,flowInitial:yJ,insideSpan:NJ,string:jJ,text:wJ},Symbol.toStringTag,{value:"Module"}));function AJ(t,n,r){let i={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const s={},a=[];let o=[],c=[];const d={attempt:E(A),check:E(S),consume:N,enter:w,exit:k,interrupt:E(S,{interrupt:!0})},h={code:null,containerState:{},defineSkip:j,events:[],now:y,parser:t,previous:null,sliceSerialize:p,sliceStream:g,write:m};let f=n.tokenize.call(h,d);return n.resolveAll&&a.push(n),h;function m(I){return o=Er(o,I),v(),o[o.length-1]!==null?[]:(C(n,0),h.events=kb(a,h.events,h),h.events)}function p(I,R){return EJ(g(I),R)}function g(I){return CJ(o,I)}function y(){const{_bufferIndex:I,_index:R,line:z,column:q,offset:U}=i;return{_bufferIndex:I,_index:R,line:z,column:q,offset:U}}function j(I){s[I.line]=I.column,F()}function v(){let I;for(;i._index<o.length;){const R=o[i._index];if(typeof R=="string")for(I=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===I&&i._bufferIndex<R.length;)x(R.charCodeAt(i._bufferIndex));else x(R)}}function x(I){f=f(I)}function N(I){Ze(I)?(i.line++,i.column=1,i.offset+=I===-3?2:1,F()):I!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===o[i._index].length&&(i._bufferIndex=-1,i._index++)),h.previous=I}function w(I,R){const z=R||{};return z.type=I,z.start=y(),h.events.push(["enter",z,h]),c.push(z),z}function k(I){const R=c.pop();return R.end=y(),h.events.push(["exit",R,h]),R}function A(I,R){C(I,R.from)}function S(I,R){R.restore()}function E(I,R){return z;function z(q,U,Q){let H,K,Y,P;return Array.isArray(q)?V(q):"tokenize"in q?V([q]):T(q);function T(W){return G;function G(ee){const ne=ee!==null&&W[ee],le=ee!==null&&W.null,ve=[...Array.isArray(ne)?ne:ne?[ne]:[],...Array.isArray(le)?le:le?[le]:[]];return V(ve)(ee)}}function V(W){return H=W,K=0,W.length===0?Q:L(W[K])}function L(W){return G;function G(ee){return P=B(),Y=W,W.partial||(h.currentConstruct=W),W.name&&h.parser.constructs.disable.null.includes(W.name)?J():W.tokenize.call(R?Object.assign(Object.create(h),R):h,d,X,J)(ee)}}function X(W){return I(Y,P),U}function J(W){return P.restore(),++K<H.length?L(H[K]):Q}}}function C(I,R){I.resolveAll&&!a.includes(I)&&a.push(I),I.resolve&&ki(h.events,R,h.events.length-R,I.resolve(h.events.slice(R),h)),I.resolveTo&&(h.events=I.resolveTo(h.events,h))}function B(){const I=y(),R=h.previous,z=h.currentConstruct,q=h.events.length,U=Array.from(c);return{from:q,restore:Q};function Q(){i=I,h.previous=R,h.currentConstruct=z,h.events.length=q,c=U,F()}}function F(){i.line in s&&i.column<2&&(i.column=s[i.line],i.offset+=s[i.line]-1)}}function CJ(t,n){const r=n.start._index,i=n.start._bufferIndex,s=n.end._index,a=n.end._bufferIndex;let o;if(r===s)o=[t[r].slice(i,a)];else{if(o=t.slice(r,s),i>-1){const c=o[0];typeof c=="string"?o[0]=c.slice(i):o.shift()}a>0&&o.push(t[s].slice(0,a))}return o}function EJ(t,n){let r=-1;const i=[];let s;for(;++r<t.length;){const a=t[r];let o;if(typeof a=="string")o=a;else switch(a){case-5:{o="\r";break}case-4:{o=`
`;break}case-3:{o=`\r
`;break}case-2:{o=n?" ":" ";break}case-1:{if(!n&&s)continue;o=" ";break}default:o=String.fromCharCode(a)}s=a===-2,i.push(o)}return i.join("")}function TJ(t){const i={constructs:MY([SJ,...(t||{}).extensions||[]]),content:s(HY),defined:[],document:s(KY),flow:s(dJ),lazy:{},string:s(mJ),text:s(pJ)};return i;function s(a){return o;function o(c){return AJ(i,a,c)}}}function OJ(t){for(;!b6(t););return t}const LS=/[\0\t\n\r]/g;function PJ(){let t=1,n="",r=!0,i;return s;function s(a,o,c){const d=[];let h,f,m,p,g;for(a=n+(typeof a=="string"?a.toString():new TextDecoder(o||void 0).decode(a)),m=0,n="",r&&(a.charCodeAt(0)===65279&&m++,r=void 0);m<a.length;){if(LS.lastIndex=m,h=LS.exec(a),p=h&&h.index!==void 0?h.index:a.length,g=a.charCodeAt(p),!h){n=a.slice(m);break}if(g===10&&m===p&&i)d.push(-3),i=void 0;else switch(i&&(d.push(-5),i=void 0),m<p&&(d.push(a.slice(m,p)),t+=p-m),g){case 0:{d.push(65533),t++;break}case 9:{for(f=Math.ceil(t/4)*4,d.push(-2);t++<f;)d.push(-1);break}case 10:{d.push(-4),t=1;break}default:i=!0,t=1}m=p+1}return c&&(i&&d.push(-5),n&&d.push(n),d.push(null)),d}}const DJ=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function IJ(t){return t.replace(DJ,RJ)}function RJ(t,n,r){if(n)return n;if(r.charCodeAt(0)===35){const s=r.charCodeAt(1),a=s===120||s===88;return g6(r.slice(a?2:1),a?16:10)}return Nb(r)||t}const S6={}.hasOwnProperty;function FJ(t,n,r){return typeof n!="string"&&(r=n,n=void 0),MJ(r)(OJ(TJ(r).document().write(PJ()(t,n,!0))))}function MJ(t){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(ye),autolinkProtocol:B,autolinkEmail:B,atxHeading:a(We),blockQuote:a(le),characterEscape:B,characterReference:B,codeFenced:a(ve),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(ve,o),codeText:a(be,o),codeTextData:B,data:B,codeFlowValue:B,definition:a(Oe),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(Te),hardBreakEscape:a(ut),hardBreakTrailing:a(ut),htmlFlow:a(nt,o),htmlFlowData:B,htmlText:a(nt,o),htmlTextData:B,image:a(ge),label:o,link:a(ye),listItem:a(Pe),listItemValue:p,listOrdered:a(Ae,m),listUnordered:a(Ae),paragraph:a(je),reference:L,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(We),strong:a(tt),thematicBreak:a(rt)},exit:{atxHeading:d(),atxHeadingSequence:A,autolink:d(),autolinkEmail:ne,autolinkProtocol:ee,blockQuote:d(),characterEscapeValue:F,characterReferenceMarkerHexadecimal:J,characterReferenceMarkerNumeric:J,characterReferenceValue:W,characterReference:G,codeFenced:d(v),codeFencedFence:j,codeFencedFenceInfo:g,codeFencedFenceMeta:y,codeFlowValue:F,codeIndented:d(x),codeText:d(U),codeTextData:F,data:F,definition:d(),definitionDestinationString:k,definitionLabelString:N,definitionTitleString:w,emphasis:d(),hardBreakEscape:d(R),hardBreakTrailing:d(R),htmlFlow:d(z),htmlFlowData:F,htmlText:d(q),htmlTextData:F,image:d(H),label:Y,labelText:K,lineEnding:I,link:d(Q),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:X,resourceDestinationString:P,resourceTitleString:T,resource:V,setextHeading:d(C),setextHeadingLineSequence:E,setextHeadingText:S,strong:d(),thematicBreak:d()}};A6(n,(t||{}).mdastExtensions||[]);const r={};return i;function i(xe){let _e={type:"root",children:[]};const De={stack:[_e],tokenStack:[],config:n,enter:c,exit:h,buffer:o,resume:f,data:r},it=[];let He=-1;for(;++He<xe.length;)if(xe[He][1].type==="listOrdered"||xe[He][1].type==="listUnordered")if(xe[He][0]==="enter")it.push(He);else{const _t=it.pop();He=s(xe,_t,He)}for(He=-1;++He<xe.length;){const _t=n[xe[He][0]];S6.call(_t,xe[He][1].type)&&_t[xe[He][1].type].call(Object.assign({sliceSerialize:xe[He][2].sliceSerialize},De),xe[He][1])}if(De.tokenStack.length>0){const _t=De.tokenStack[De.tokenStack.length-1];(_t[1]||BS).call(De,void 0,_t[0])}for(_e.position={start:_s(xe.length>0?xe[0][1].start:{line:1,column:1,offset:0}),end:_s(xe.length>0?xe[xe.length-2][1].end:{line:1,column:1,offset:0})},He=-1;++He<n.transforms.length;)_e=n.transforms[He](_e)||_e;return _e}function s(xe,_e,De){let it=_e-1,He=-1,_t=!1,Pr,Un,rs,sa;for(;++it<=De;){const jn=xe[it];switch(jn[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{jn[0]==="enter"?He++:He--,sa=void 0;break}case"lineEndingBlank":{jn[0]==="enter"&&(Pr&&!sa&&!He&&!rs&&(rs=it),sa=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:sa=void 0}if(!He&&jn[0]==="enter"&&jn[1].type==="listItemPrefix"||He===-1&&jn[0]==="exit"&&(jn[1].type==="listUnordered"||jn[1].type==="listOrdered")){if(Pr){let Yr=it;for(Un=void 0;Yr--;){const ir=xe[Yr];if(ir[1].type==="lineEnding"||ir[1].type==="lineEndingBlank"){if(ir[0]==="exit")continue;Un&&(xe[Un][1].type="lineEndingBlank",_t=!0),ir[1].type="lineEnding",Un=Yr}else if(!(ir[1].type==="linePrefix"||ir[1].type==="blockQuotePrefix"||ir[1].type==="blockQuotePrefixWhitespace"||ir[1].type==="blockQuoteMarker"||ir[1].type==="listItemIndent"))break}rs&&(!Un||rs<Un)&&(Pr._spread=!0),Pr.end=Object.assign({},Un?xe[Un][1].start:jn[1].end),xe.splice(Un||it,0,["exit",Pr,jn[2]]),it++,De++}if(jn[1].type==="listItemPrefix"){const Yr={type:"listItem",_spread:!1,start:Object.assign({},jn[1].start),end:void 0};Pr=Yr,xe.splice(it,0,["enter",Yr,jn[2]]),it++,De++,rs=void 0,sa=!0}}}return xe[_e][1]._spread=_t,De}function a(xe,_e){return De;function De(it){c.call(this,xe(it),it),_e&&_e.call(this,it)}}function o(){this.stack.push({type:"fragment",children:[]})}function c(xe,_e,De){this.stack[this.stack.length-1].children.push(xe),this.stack.push(xe),this.tokenStack.push([_e,De||void 0]),xe.position={start:_s(_e.start),end:void 0}}function d(xe){return _e;function _e(De){xe&&xe.call(this,De),h.call(this,De)}}function h(xe,_e){const De=this.stack.pop(),it=this.tokenStack.pop();if(it)it[0].type!==xe.type&&(_e?_e.call(this,xe,it[0]):(it[1]||BS).call(this,xe,it[0]));else throw new Error("Cannot close `"+xe.type+"` ("+Xc({start:xe.start,end:xe.end})+"): it’s not open");De.position.end=_s(xe.end)}function f(){return RY(this.stack.pop())}function m(){this.data.expectingFirstListItemValue=!0}function p(xe){if(this.data.expectingFirstListItemValue){const _e=this.stack[this.stack.length-2];_e.start=Number.parseInt(this.sliceSerialize(xe),10),this.data.expectingFirstListItemValue=void 0}}function g(){const xe=this.resume(),_e=this.stack[this.stack.length-1];_e.lang=xe}function y(){const xe=this.resume(),_e=this.stack[this.stack.length-1];_e.meta=xe}function j(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){const xe=this.resume(),_e=this.stack[this.stack.length-1];_e.value=xe.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const xe=this.resume(),_e=this.stack[this.stack.length-1];_e.value=xe.replace(/(\r?\n|\r)$/g,"")}function N(xe){const _e=this.resume(),De=this.stack[this.stack.length-1];De.label=_e,De.identifier=Jo(this.sliceSerialize(xe)).toLowerCase()}function w(){const xe=this.resume(),_e=this.stack[this.stack.length-1];_e.title=xe}function k(){const xe=this.resume(),_e=this.stack[this.stack.length-1];_e.url=xe}function A(xe){const _e=this.stack[this.stack.length-1];if(!_e.depth){const De=this.sliceSerialize(xe).length;_e.depth=De}}function S(){this.data.setextHeadingSlurpLineEnding=!0}function E(xe){const _e=this.stack[this.stack.length-1];_e.depth=this.sliceSerialize(xe).codePointAt(0)===61?1:2}function C(){this.data.setextHeadingSlurpLineEnding=void 0}function B(xe){const De=this.stack[this.stack.length-1].children;let it=De[De.length-1];(!it||it.type!=="text")&&(it=et(),it.position={start:_s(xe.start),end:void 0},De.push(it)),this.stack.push(it)}function F(xe){const _e=this.stack.pop();_e.value+=this.sliceSerialize(xe),_e.position.end=_s(xe.end)}function I(xe){const _e=this.stack[this.stack.length-1];if(this.data.atHardBreak){const De=_e.children[_e.children.length-1];De.position.end=_s(xe.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(_e.type)&&(B.call(this,xe),F.call(this,xe))}function R(){this.data.atHardBreak=!0}function z(){const xe=this.resume(),_e=this.stack[this.stack.length-1];_e.value=xe}function q(){const xe=this.resume(),_e=this.stack[this.stack.length-1];_e.value=xe}function U(){const xe=this.resume(),_e=this.stack[this.stack.length-1];_e.value=xe}function Q(){const xe=this.stack[this.stack.length-1];if(this.data.inReference){const _e=this.data.referenceType||"shortcut";xe.type+="Reference",xe.referenceType=_e,delete xe.url,delete xe.title}else delete xe.identifier,delete xe.label;this.data.referenceType=void 0}function H(){const xe=this.stack[this.stack.length-1];if(this.data.inReference){const _e=this.data.referenceType||"shortcut";xe.type+="Reference",xe.referenceType=_e,delete xe.url,delete xe.title}else delete xe.identifier,delete xe.label;this.data.referenceType=void 0}function K(xe){const _e=this.sliceSerialize(xe),De=this.stack[this.stack.length-2];De.label=IJ(_e),De.identifier=Jo(_e).toLowerCase()}function Y(){const xe=this.stack[this.stack.length-1],_e=this.resume(),De=this.stack[this.stack.length-1];if(this.data.inReference=!0,De.type==="link"){const it=xe.children;De.children=it}else De.alt=_e}function P(){const xe=this.resume(),_e=this.stack[this.stack.length-1];_e.url=xe}function T(){const xe=this.resume(),_e=this.stack[this.stack.length-1];_e.title=xe}function V(){this.data.inReference=void 0}function L(){this.data.referenceType="collapsed"}function X(xe){const _e=this.resume(),De=this.stack[this.stack.length-1];De.label=_e,De.identifier=Jo(this.sliceSerialize(xe)).toLowerCase(),this.data.referenceType="full"}function J(xe){this.data.characterReferenceType=xe.type}function W(xe){const _e=this.sliceSerialize(xe),De=this.data.characterReferenceType;let it;De?(it=g6(_e,De==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):it=Nb(_e);const He=this.stack[this.stack.length-1];He.value+=it}function G(xe){const _e=this.stack.pop();_e.position.end=_s(xe.end)}function ee(xe){F.call(this,xe);const _e=this.stack[this.stack.length-1];_e.url=this.sliceSerialize(xe)}function ne(xe){F.call(this,xe);const _e=this.stack[this.stack.length-1];_e.url="mailto:"+this.sliceSerialize(xe)}function le(){return{type:"blockquote",children:[]}}function ve(){return{type:"code",lang:null,meta:null,value:""}}function be(){return{type:"inlineCode",value:""}}function Oe(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Te(){return{type:"emphasis",children:[]}}function We(){return{type:"heading",depth:0,children:[]}}function ut(){return{type:"break"}}function nt(){return{type:"html",value:""}}function ge(){return{type:"image",title:null,url:"",alt:null}}function ye(){return{type:"link",title:null,url:"",children:[]}}function Ae(xe){return{type:"list",ordered:xe.type==="listOrdered",start:null,spread:xe._spread,children:[]}}function Pe(xe){return{type:"listItem",spread:xe._spread,checked:null,children:[]}}function je(){return{type:"paragraph",children:[]}}function tt(){return{type:"strong",children:[]}}function et(){return{type:"text",value:""}}function rt(){return{type:"thematicBreak"}}}function _s(t){return{line:t.line,column:t.column,offset:t.offset}}function A6(t,n){let r=-1;for(;++r<n.length;){const i=n[r];Array.isArray(i)?A6(t,i):LJ(t,i)}}function LJ(t,n){let r;for(r in n)if(S6.call(n,r))switch(r){case"canContainEols":{const i=n[r];i&&t[r].push(...i);break}case"transforms":{const i=n[r];i&&t[r].push(...i);break}case"enter":case"exit":{const i=n[r];i&&Object.assign(t[r],i);break}}}function BS(t,n){throw t?new Error("Cannot close `"+t.type+"` ("+Xc({start:t.start,end:t.end})+"): a different token (`"+n.type+"`, "+Xc({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Xc({start:n.start,end:n.end})+") is still open")}function BJ(t){const n=this;n.parser=r;function r(i){return FJ(i,{...n.data("settings"),...t,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function zJ(t,n){const r={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(n),!0)};return t.patch(n,r),t.applyData(n,r)}function qJ(t,n){const r={type:"element",tagName:"br",properties:{},children:[]};return t.patch(n,r),[t.applyData(n,r),{type:"text",value:`
`}]}function VJ(t,n){const r=n.value?n.value+`
`:"",i={};n.lang&&(i.className=["language-"+n.lang]);let s={type:"element",tagName:"code",properties:i,children:[{type:"text",value:r}]};return n.meta&&(s.data={meta:n.meta}),t.patch(n,s),s=t.applyData(n,s),s={type:"element",tagName:"pre",properties:{},children:[s]},t.patch(n,s),s}function UJ(t,n){const r={type:"element",tagName:"del",properties:{},children:t.all(n)};return t.patch(n,r),t.applyData(n,r)}function $J(t,n){const r={type:"element",tagName:"em",properties:{},children:t.all(n)};return t.patch(n,r),t.applyData(n,r)}function HJ(t,n){const r=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",i=String(n.identifier).toUpperCase(),s=Rl(i.toLowerCase()),a=t.footnoteOrder.indexOf(i);let o,c=t.footnoteCounts.get(i);c===void 0?(c=0,t.footnoteOrder.push(i),o=t.footnoteOrder.length):o=a+1,c+=1,t.footnoteCounts.set(i,c);const d={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+s,id:r+"fnref-"+s+(c>1?"-"+c:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};t.patch(n,d);const h={type:"element",tagName:"sup",properties:{},children:[d]};return t.patch(n,h),t.applyData(n,h)}function WJ(t,n){const r={type:"element",tagName:"h"+n.depth,properties:{},children:t.all(n)};return t.patch(n,r),t.applyData(n,r)}function KJ(t,n){if(t.options.allowDangerousHtml){const r={type:"raw",value:n.value};return t.patch(n,r),t.applyData(n,r)}}function C6(t,n){const r=n.referenceType;let i="]";if(r==="collapsed"?i+="[]":r==="full"&&(i+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+i}];const s=t.all(n),a=s[0];a&&a.type==="text"?a.value="["+a.value:s.unshift({type:"text",value:"["});const o=s[s.length-1];return o&&o.type==="text"?o.value+=i:s.push({type:"text",value:i}),s}function GJ(t,n){const r=String(n.identifier).toUpperCase(),i=t.definitionById.get(r);if(!i)return C6(t,n);const s={src:Rl(i.url||""),alt:n.alt};i.title!==null&&i.title!==void 0&&(s.title=i.title);const a={type:"element",tagName:"img",properties:s,children:[]};return t.patch(n,a),t.applyData(n,a)}function QJ(t,n){const r={src:Rl(n.url)};n.alt!==null&&n.alt!==void 0&&(r.alt=n.alt),n.title!==null&&n.title!==void 0&&(r.title=n.title);const i={type:"element",tagName:"img",properties:r,children:[]};return t.patch(n,i),t.applyData(n,i)}function YJ(t,n){const r={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};t.patch(n,r);const i={type:"element",tagName:"code",properties:{},children:[r]};return t.patch(n,i),t.applyData(n,i)}function XJ(t,n){const r=String(n.identifier).toUpperCase(),i=t.definitionById.get(r);if(!i)return C6(t,n);const s={href:Rl(i.url||"")};i.title!==null&&i.title!==void 0&&(s.title=i.title);const a={type:"element",tagName:"a",properties:s,children:t.all(n)};return t.patch(n,a),t.applyData(n,a)}function JJ(t,n){const r={href:Rl(n.url)};n.title!==null&&n.title!==void 0&&(r.title=n.title);const i={type:"element",tagName:"a",properties:r,children:t.all(n)};return t.patch(n,i),t.applyData(n,i)}function ZJ(t,n,r){const i=t.all(n),s=r?eZ(r):E6(n),a={},o=[];if(typeof n.checked=="boolean"){const f=i[0];let m;f&&f.type==="element"&&f.tagName==="p"?m=f:(m={type:"element",tagName:"p",properties:{},children:[]},i.unshift(m)),m.children.length>0&&m.children.unshift({type:"text",value:" "}),m.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let c=-1;for(;++c<i.length;){const f=i[c];(s||c!==0||f.type!=="element"||f.tagName!=="p")&&o.push({type:"text",value:`
`}),f.type==="element"&&f.tagName==="p"&&!s?o.push(...f.children):o.push(f)}const d=i[i.length-1];d&&(s||d.type!=="element"||d.tagName!=="p")&&o.push({type:"text",value:`
`});const h={type:"element",tagName:"li",properties:a,children:o};return t.patch(n,h),t.applyData(n,h)}function eZ(t){let n=!1;if(t.type==="list"){n=t.spread||!1;const r=t.children;let i=-1;for(;!n&&++i<r.length;)n=E6(r[i])}return n}function E6(t){const n=t.spread;return n??t.children.length>1}function tZ(t,n){const r={},i=t.all(n);let s=-1;for(typeof n.start=="number"&&n.start!==1&&(r.start=n.start);++s<i.length;){const o=i[s];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const a={type:"element",tagName:n.ordered?"ol":"ul",properties:r,children:t.wrap(i,!0)};return t.patch(n,a),t.applyData(n,a)}function nZ(t,n){const r={type:"element",tagName:"p",properties:{},children:t.all(n)};return t.patch(n,r),t.applyData(n,r)}function rZ(t,n){const r={type:"root",children:t.wrap(t.all(n))};return t.patch(n,r),t.applyData(n,r)}function iZ(t,n){const r={type:"element",tagName:"strong",properties:{},children:t.all(n)};return t.patch(n,r),t.applyData(n,r)}function sZ(t,n){const r=t.all(n),i=r.shift(),s=[];if(i){const o={type:"element",tagName:"thead",properties:{},children:t.wrap([i],!0)};t.patch(n.children[0],o),s.push(o)}if(r.length>0){const o={type:"element",tagName:"tbody",properties:{},children:t.wrap(r,!0)},c=yb(n.children[1]),d=c6(n.children[n.children.length-1]);c&&d&&(o.position={start:c,end:d}),s.push(o)}const a={type:"element",tagName:"table",properties:{},children:t.wrap(s,!0)};return t.patch(n,a),t.applyData(n,a)}function aZ(t,n,r){const i=r?r.children:void 0,a=(i?i.indexOf(n):1)===0?"th":"td",o=r&&r.type==="table"?r.align:void 0,c=o?o.length:n.children.length;let d=-1;const h=[];for(;++d<c;){const m=n.children[d],p={},g=o?o[d]:void 0;g&&(p.align=g);let y={type:"element",tagName:a,properties:p,children:[]};m&&(y.children=t.all(m),t.patch(m,y),y=t.applyData(m,y)),h.push(y)}const f={type:"element",tagName:"tr",properties:{},children:t.wrap(h,!0)};return t.patch(n,f),t.applyData(n,f)}function oZ(t,n){const r={type:"element",tagName:"td",properties:{},children:t.all(n)};return t.patch(n,r),t.applyData(n,r)}const zS=9,qS=32;function lZ(t){const n=String(t),r=/\r?\n|\r/g;let i=r.exec(n),s=0;const a=[];for(;i;)a.push(VS(n.slice(s,i.index),s>0,!0),i[0]),s=i.index+i[0].length,i=r.exec(n);return a.push(VS(n.slice(s),s>0,!1)),a.join("")}function VS(t,n,r){let i=0,s=t.length;if(n){let a=t.codePointAt(i);for(;a===zS||a===qS;)i++,a=t.codePointAt(i)}if(r){let a=t.codePointAt(s-1);for(;a===zS||a===qS;)s--,a=t.codePointAt(s-1)}return s>i?t.slice(i,s):""}function cZ(t,n){const r={type:"text",value:lZ(String(n.value))};return t.patch(n,r),t.applyData(n,r)}function uZ(t,n){const r={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(n,r),t.applyData(n,r)}const dZ={blockquote:zJ,break:qJ,code:VJ,delete:UJ,emphasis:$J,footnoteReference:HJ,heading:WJ,html:KJ,imageReference:GJ,image:QJ,inlineCode:YJ,linkReference:XJ,link:JJ,listItem:ZJ,list:tZ,paragraph:nZ,root:rZ,strong:iZ,table:sZ,tableCell:oZ,tableRow:aZ,text:cZ,thematicBreak:uZ,toml:xh,yaml:xh,definition:xh,footnoteDefinition:xh};function xh(){}const T6=-1,Wf=0,Zc=1,of=2,Sb=3,Ab=4,Cb=5,Eb=6,O6=7,P6=8,US=typeof self=="object"?self:globalThis,hZ=(t,n)=>{const r=(s,a)=>(t.set(a,s),s),i=s=>{if(t.has(s))return t.get(s);const[a,o]=n[s];switch(a){case Wf:case T6:return r(o,s);case Zc:{const c=r([],s);for(const d of o)c.push(i(d));return c}case of:{const c=r({},s);for(const[d,h]of o)c[i(d)]=i(h);return c}case Sb:return r(new Date(o),s);case Ab:{const{source:c,flags:d}=o;return r(new RegExp(c,d),s)}case Cb:{const c=r(new Map,s);for(const[d,h]of o)c.set(i(d),i(h));return c}case Eb:{const c=r(new Set,s);for(const d of o)c.add(i(d));return c}case O6:{const{name:c,message:d}=o;return r(new US[c](d),s)}case P6:return r(BigInt(o),s);case"BigInt":return r(Object(BigInt(o)),s);case"ArrayBuffer":return r(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:c}=new Uint8Array(o);return r(new DataView(c),o)}}return r(new US[a](o),s)};return i},$S=t=>hZ(new Map,t)(0),Mo="",{toString:fZ}={},{keys:mZ}=Object,Oc=t=>{const n=typeof t;if(n!=="object"||!t)return[Wf,n];const r=fZ.call(t).slice(8,-1);switch(r){case"Array":return[Zc,Mo];case"Object":return[of,Mo];case"Date":return[Sb,Mo];case"RegExp":return[Ab,Mo];case"Map":return[Cb,Mo];case"Set":return[Eb,Mo];case"DataView":return[Zc,r]}return r.includes("Array")?[Zc,r]:r.includes("Error")?[O6,r]:[of,r]},vh=([t,n])=>t===Wf&&(n==="function"||n==="symbol"),pZ=(t,n,r,i)=>{const s=(o,c)=>{const d=i.push(o)-1;return r.set(c,d),d},a=o=>{if(r.has(o))return r.get(o);let[c,d]=Oc(o);switch(c){case Wf:{let f=o;switch(d){case"bigint":c=P6,f=o.toString();break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+d);f=null;break;case"undefined":return s([T6],o)}return s([c,f],o)}case Zc:{if(d){let p=o;return d==="DataView"?p=new Uint8Array(o.buffer):d==="ArrayBuffer"&&(p=new Uint8Array(o)),s([d,[...p]],o)}const f=[],m=s([c,f],o);for(const p of o)f.push(a(p));return m}case of:{if(d)switch(d){case"BigInt":return s([d,o.toString()],o);case"Boolean":case"Number":case"String":return s([d,o.valueOf()],o)}if(n&&"toJSON"in o)return a(o.toJSON());const f=[],m=s([c,f],o);for(const p of mZ(o))(t||!vh(Oc(o[p])))&&f.push([a(p),a(o[p])]);return m}case Sb:return s([c,o.toISOString()],o);case Ab:{const{source:f,flags:m}=o;return s([c,{source:f,flags:m}],o)}case Cb:{const f=[],m=s([c,f],o);for(const[p,g]of o)(t||!(vh(Oc(p))||vh(Oc(g))))&&f.push([a(p),a(g)]);return m}case Eb:{const f=[],m=s([c,f],o);for(const p of o)(t||!vh(Oc(p)))&&f.push(a(p));return m}}const{message:h}=o;return s([c,{name:d,message:h}],o)};return a},HS=(t,{json:n,lossy:r}={})=>{const i=[];return pZ(!(n||r),!!n,new Map,i)(t),i},lf=typeof structuredClone=="function"?(t,n)=>n&&("json"in n||"lossy"in n)?$S(HS(t,n)):structuredClone(t):(t,n)=>$S(HS(t,n));function gZ(t,n){const r=[{type:"text",value:"↩"}];return n>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),r}function xZ(t,n){return"Back to reference "+(t+1)+(n>1?"-"+n:"")}function vZ(t){const n=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",r=t.options.footnoteBackContent||gZ,i=t.options.footnoteBackLabel||xZ,s=t.options.footnoteLabel||"Footnotes",a=t.options.footnoteLabelTagName||"h2",o=t.options.footnoteLabelProperties||{className:["sr-only"]},c=[];let d=-1;for(;++d<t.footnoteOrder.length;){const h=t.footnoteById.get(t.footnoteOrder[d]);if(!h)continue;const f=t.all(h),m=String(h.identifier).toUpperCase(),p=Rl(m.toLowerCase());let g=0;const y=[],j=t.footnoteCounts.get(m);for(;j!==void 0&&++g<=j;){y.length>0&&y.push({type:"text",value:" "});let N=typeof r=="string"?r:r(d,g);typeof N=="string"&&(N={type:"text",value:N}),y.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+p+(g>1?"-"+g:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(d,g),className:["data-footnote-backref"]},children:Array.isArray(N)?N:[N]})}const v=f[f.length-1];if(v&&v.type==="element"&&v.tagName==="p"){const N=v.children[v.children.length-1];N&&N.type==="text"?N.value+=" ":v.children.push({type:"text",value:" "}),v.children.push(...y)}else f.push(...y);const x={type:"element",tagName:"li",properties:{id:n+"fn-"+p},children:t.wrap(f,!0)};t.patch(h,x),c.push(x)}if(c.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...lf(o),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
`},{type:"element",tagName:"ol",properties:{},children:t.wrap(c,!0)},{type:"text",value:`
`}]}}const D6=(function(t){if(t==null)return wZ;if(typeof t=="function")return Kf(t);if(typeof t=="object")return Array.isArray(t)?yZ(t):bZ(t);if(typeof t=="string")return jZ(t);throw new Error("Expected function, string, or object as test")});function yZ(t){const n=[];let r=-1;for(;++r<t.length;)n[r]=D6(t[r]);return Kf(i);function i(...s){let a=-1;for(;++a<n.length;)if(n[a].apply(this,s))return!0;return!1}}function bZ(t){const n=t;return Kf(r);function r(i){const s=i;let a;for(a in t)if(s[a]!==n[a])return!1;return!0}}function jZ(t){return Kf(n);function n(r){return r&&r.type===t}}function Kf(t){return n;function n(r,i,s){return!!(NZ(r)&&t.call(this,r,typeof i=="number"?i:void 0,s||void 0))}}function wZ(){return!0}function NZ(t){return t!==null&&typeof t=="object"&&"type"in t}const I6=[],kZ=!0,WS=!1,_Z="skip";function SZ(t,n,r,i){let s;typeof n=="function"&&typeof r!="function"?(i=r,r=n):s=n;const a=D6(s),o=i?-1:1;c(t,void 0,[])();function c(d,h,f){const m=d&&typeof d=="object"?d:{};if(typeof m.type=="string"){const g=typeof m.tagName=="string"?m.tagName:typeof m.name=="string"?m.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(d.type+(g?"<"+g+">":""))+")"})}return p;function p(){let g=I6,y,j,v;if((!n||a(d,h,f[f.length-1]||void 0))&&(g=AZ(r(d,f)),g[0]===WS))return g;if("children"in d&&d.children){const x=d;if(x.children&&g[0]!==_Z)for(j=(i?x.children.length:-1)+o,v=f.concat(x);j>-1&&j<x.children.length;){const N=x.children[j];if(y=c(N,j,v)(),y[0]===WS)return y;j=typeof y[1]=="number"?y[1]:j+o}}return g}}}function AZ(t){return Array.isArray(t)?t:typeof t=="number"?[kZ,t]:t==null?I6:[t]}function R6(t,n,r,i){let s,a,o;typeof n=="function"&&typeof r!="function"?(a=void 0,o=n,s=r):(a=n,o=r,s=i),SZ(t,a,c,s);function c(d,h){const f=h[h.length-1],m=f?f.children.indexOf(d):void 0;return o(d,m,f)}}const H0={}.hasOwnProperty,CZ={};function EZ(t,n){const r=n||CZ,i=new Map,s=new Map,a=new Map,o={...dZ,...r.handlers},c={all:h,applyData:OZ,definitionById:i,footnoteById:s,footnoteCounts:a,footnoteOrder:[],handlers:o,one:d,options:r,patch:TZ,wrap:DZ};return R6(t,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const m=f.type==="definition"?i:s,p=String(f.identifier).toUpperCase();m.has(p)||m.set(p,f)}}),c;function d(f,m){const p=f.type,g=c.handlers[p];if(H0.call(c.handlers,p)&&g)return g(c,f,m);if(c.options.passThrough&&c.options.passThrough.includes(p)){if("children"in f){const{children:j,...v}=f,x=lf(v);return x.children=c.all(f),x}return lf(f)}return(c.options.unknownHandler||PZ)(c,f,m)}function h(f){const m=[];if("children"in f){const p=f.children;let g=-1;for(;++g<p.length;){const y=c.one(p[g],f);if(y){if(g&&p[g-1].type==="break"&&(!Array.isArray(y)&&y.type==="text"&&(y.value=KS(y.value)),!Array.isArray(y)&&y.type==="element")){const j=y.children[0];j&&j.type==="text"&&(j.value=KS(j.value))}Array.isArray(y)?m.push(...y):m.push(y)}}}return m}}function TZ(t,n){t.position&&(n.position=fY(t))}function OZ(t,n){let r=n;if(t&&t.data){const i=t.data.hName,s=t.data.hChildren,a=t.data.hProperties;if(typeof i=="string")if(r.type==="element")r.tagName=i;else{const o="children"in r?r.children:[r];r={type:"element",tagName:i,properties:{},children:o}}r.type==="element"&&a&&Object.assign(r.properties,lf(a)),"children"in r&&r.children&&s!==null&&s!==void 0&&(r.children=s)}return r}function PZ(t,n){const r=n.data||{},i="value"in n&&!(H0.call(r,"hProperties")||H0.call(r,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:t.all(n)};return t.patch(n,i),t.applyData(n,i)}function DZ(t,n){const r=[];let i=-1;for(n&&r.push({type:"text",value:`
`});++i<t.length;)i&&r.push({type:"text",value:`
`}),r.push(t[i]);return n&&t.length>0&&r.push({type:"text",value:`
`}),r}function KS(t){let n=0,r=t.charCodeAt(n);for(;r===9||r===32;)n++,r=t.charCodeAt(n);return t.slice(n)}function GS(t,n){const r=EZ(t,n),i=r.one(t,void 0),s=vZ(r),a=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return s&&a.children.push({type:"text",value:`
`},s),a}function IZ(t,n){return t&&"run"in t?async function(r,i){const s=GS(r,{file:i,...n});await t.run(s,i)}:function(r,i){return GS(r,{file:i,...t||n})}}function QS(t){if(t)throw t}var gv,YS;function RZ(){if(YS)return gv;YS=1;var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=function(h){return typeof Array.isArray=="function"?Array.isArray(h):n.call(h)==="[object Array]"},a=function(h){if(!h||n.call(h)!=="[object Object]")return!1;var f=t.call(h,"constructor"),m=h.constructor&&h.constructor.prototype&&t.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!f&&!m)return!1;var p;for(p in h);return typeof p>"u"||t.call(h,p)},o=function(h,f){r&&f.name==="__proto__"?r(h,f.name,{enumerable:!0,configurable:!0,value:f.newValue,writable:!0}):h[f.name]=f.newValue},c=function(h,f){if(f==="__proto__")if(t.call(h,f)){if(i)return i(h,f).value}else return;return h[f]};return gv=function d(){var h,f,m,p,g,y,j=arguments[0],v=1,x=arguments.length,N=!1;for(typeof j=="boolean"&&(N=j,j=arguments[1]||{},v=2),(j==null||typeof j!="object"&&typeof j!="function")&&(j={});v<x;++v)if(h=arguments[v],h!=null)for(f in h)m=c(j,f),p=c(h,f),j!==p&&(N&&p&&(a(p)||(g=s(p)))?(g?(g=!1,y=m&&s(m)?m:[]):y=m&&a(m)?m:{},o(j,{name:f,newValue:d(N,y,p)})):typeof p<"u"&&o(j,{name:f,newValue:p}));return j},gv}var FZ=RZ();const xv=_i(FZ);function W0(t){if(typeof t!="object"||t===null)return!1;const n=Object.getPrototypeOf(t);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function MZ(){const t=[],n={run:r,use:i};return n;function r(...s){let a=-1;const o=s.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);c(null,...s);function c(d,...h){const f=t[++a];let m=-1;if(d){o(d);return}for(;++m<s.length;)(h[m]===null||h[m]===void 0)&&(h[m]=s[m]);s=h,f?LZ(f,c)(...h):o(null,...h)}}function i(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return t.push(s),n}}function LZ(t,n){let r;return i;function i(...o){const c=t.length>o.length;let d;c&&o.push(s);try{d=t.apply(this,o)}catch(h){const f=h;if(c&&r)throw f;return s(f)}c||(d&&d.then&&typeof d.then=="function"?d.then(a,s):d instanceof Error?s(d):a(d))}function s(o,...c){r||(r=!0,n(o,...c))}function a(o){s(null,o)}}const ri={basename:BZ,dirname:zZ,extname:qZ,join:VZ,sep:"/"};function BZ(t,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');Vu(t);let r=0,i=-1,s=t.length,a;if(n===void 0||n.length===0||n.length>t.length){for(;s--;)if(t.codePointAt(s)===47){if(a){r=s+1;break}}else i<0&&(a=!0,i=s+1);return i<0?"":t.slice(r,i)}if(n===t)return"";let o=-1,c=n.length-1;for(;s--;)if(t.codePointAt(s)===47){if(a){r=s+1;break}}else o<0&&(a=!0,o=s+1),c>-1&&(t.codePointAt(s)===n.codePointAt(c--)?c<0&&(i=s):(c=-1,i=o));return r===i?i=o:i<0&&(i=t.length),t.slice(r,i)}function zZ(t){if(Vu(t),t.length===0)return".";let n=-1,r=t.length,i;for(;--r;)if(t.codePointAt(r)===47){if(i){n=r;break}}else i||(i=!0);return n<0?t.codePointAt(0)===47?"/":".":n===1&&t.codePointAt(0)===47?"//":t.slice(0,n)}function qZ(t){Vu(t);let n=t.length,r=-1,i=0,s=-1,a=0,o;for(;n--;){const c=t.codePointAt(n);if(c===47){if(o){i=n+1;break}continue}r<0&&(o=!0,r=n+1),c===46?s<0?s=n:a!==1&&(a=1):s>-1&&(a=-1)}return s<0||r<0||a===0||a===1&&s===r-1&&s===i+1?"":t.slice(s,r)}function VZ(...t){let n=-1,r;for(;++n<t.length;)Vu(t[n]),t[n]&&(r=r===void 0?t[n]:r+"/"+t[n]);return r===void 0?".":UZ(r)}function UZ(t){Vu(t);const n=t.codePointAt(0)===47;let r=$Z(t,!n);return r.length===0&&!n&&(r="."),r.length>0&&t.codePointAt(t.length-1)===47&&(r+="/"),n?"/"+r:r}function $Z(t,n){let r="",i=0,s=-1,a=0,o=-1,c,d;for(;++o<=t.length;){if(o<t.length)c=t.codePointAt(o);else{if(c===47)break;c=47}if(c===47){if(!(s===o-1||a===1))if(s!==o-1&&a===2){if(r.length<2||i!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(d=r.lastIndexOf("/"),d!==r.length-1){d<0?(r="",i=0):(r=r.slice(0,d),i=r.length-1-r.lastIndexOf("/")),s=o,a=0;continue}}else if(r.length>0){r="",i=0,s=o,a=0;continue}}n&&(r=r.length>0?r+"/..":"..",i=2)}else r.length>0?r+="/"+t.slice(s+1,o):r=t.slice(s+1,o),i=o-s-1;s=o,a=0}else c===46&&a>-1?a++:a=-1}return r}function Vu(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const HZ={cwd:WZ};function WZ(){return"/"}function K0(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function KZ(t){if(typeof t=="string")t=new URL(t);else if(!K0(t)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(t.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return GZ(t)}function GZ(t){if(t.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const n=t.pathname;let r=-1;for(;++r<n.length;)if(n.codePointAt(r)===37&&n.codePointAt(r+1)===50){const i=n.codePointAt(r+2);if(i===70||i===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(n)}const vv=["history","path","basename","stem","extname","dirname"];class F6{constructor(n){let r;n?K0(n)?r={path:n}:typeof n=="string"||QZ(n)?r={value:n}:r=n:r={},this.cwd="cwd"in r?"":HZ.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<vv.length;){const a=vv[i];a in r&&r[a]!==void 0&&r[a]!==null&&(this[a]=a==="history"?[...r[a]]:r[a])}let s;for(s in r)vv.includes(s)||(this[s]=r[s])}get basename(){return typeof this.path=="string"?ri.basename(this.path):void 0}set basename(n){bv(n,"basename"),yv(n,"basename"),this.path=ri.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?ri.dirname(this.path):void 0}set dirname(n){XS(this.basename,"dirname"),this.path=ri.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?ri.extname(this.path):void 0}set extname(n){if(yv(n,"extname"),XS(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ri.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){K0(n)&&(n=KZ(n)),bv(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?ri.basename(this.path,this.extname):void 0}set stem(n){bv(n,"stem"),yv(n,"stem"),this.path=ri.join(this.dirname||"",n+(this.extname||""))}fail(n,r,i){const s=this.message(n,r,i);throw s.fatal=!0,s}info(n,r,i){const s=this.message(n,r,i);return s.fatal=void 0,s}message(n,r,i){const s=new Fn(n,r,i);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function yv(t,n){if(t&&t.includes(ri.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+ri.sep+"`")}function bv(t,n){if(!t)throw new Error("`"+n+"` cannot be empty")}function XS(t,n){if(!t)throw new Error("Setting `"+n+"` requires `path` to be set too")}function QZ(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const YZ=(function(t){const i=this.constructor.prototype,s=i[t],a=function(){return s.apply(a,arguments)};return Object.setPrototypeOf(a,i),a}),XZ={}.hasOwnProperty;class Tb extends YZ{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=MZ()}copy(){const n=new Tb;let r=-1;for(;++r<this.attachers.length;){const i=this.attachers[r];n.use(...i)}return n.data(xv(!0,{},this.namespace)),n}data(n,r){return typeof n=="string"?arguments.length===2?(Nv("data",this.frozen),this.namespace[n]=r,this):XZ.call(this.namespace,n)&&this.namespace[n]||void 0:n?(Nv("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const s=r.call(n,...i);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const r=yh(n),i=this.parser||this.Parser;return jv("parse",i),i(String(r),r)}process(n,r){const i=this;return this.freeze(),jv("process",this.parser||this.Parser),wv("process",this.compiler||this.Compiler),r?s(void 0,r):new Promise(s);function s(a,o){const c=yh(n),d=i.parse(c);i.run(d,c,function(f,m,p){if(f||!m||!p)return h(f);const g=m,y=i.stringify(g,p);eee(y)?p.value=y:p.result=y,h(f,p)});function h(f,m){f||!m?o(f):a?a(m):r(void 0,m)}}}processSync(n){let r=!1,i;return this.freeze(),jv("processSync",this.parser||this.Parser),wv("processSync",this.compiler||this.Compiler),this.process(n,s),ZS("processSync","process",r),i;function s(a,o){r=!0,QS(a),i=o}}run(n,r,i){JS(n),this.freeze();const s=this.transformers;return!i&&typeof r=="function"&&(i=r,r=void 0),i?a(void 0,i):new Promise(a);function a(o,c){const d=yh(r);s.run(n,d,h);function h(f,m,p){const g=m||n;f?c(f):o?o(g):i(void 0,g,p)}}}runSync(n,r){let i=!1,s;return this.run(n,r,a),ZS("runSync","run",i),s;function a(o,c){QS(o),s=c,i=!0}}stringify(n,r){this.freeze();const i=yh(r),s=this.compiler||this.Compiler;return wv("stringify",s),JS(n),s(n,i)}use(n,...r){const i=this.attachers,s=this.namespace;if(Nv("use",this.frozen),n!=null)if(typeof n=="function")d(n,r);else if(typeof n=="object")Array.isArray(n)?c(n):o(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function a(h){if(typeof h=="function")d(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[f,...m]=h;d(f,m)}else o(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function o(h){if(!("plugins"in h)&&!("settings"in h))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");c(h.plugins),h.settings&&(s.settings=xv(!0,s.settings,h.settings))}function c(h){let f=-1;if(h!=null)if(Array.isArray(h))for(;++f<h.length;){const m=h[f];a(m)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function d(h,f){let m=-1,p=-1;for(;++m<i.length;)if(i[m][0]===h){p=m;break}if(p===-1)i.push([h,...f]);else if(f.length>0){let[g,...y]=f;const j=i[p][1];W0(j)&&W0(g)&&(g=xv(!0,j,g)),i[p]=[h,g,...y]}}}}const JZ=new Tb().freeze();function jv(t,n){if(typeof n!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function wv(t,n){if(typeof n!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function Nv(t,n){if(n)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function JS(t){if(!W0(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function ZS(t,n,r){if(!r)throw new Error("`"+t+"` finished async. Use `"+n+"` instead")}function yh(t){return ZZ(t)?t:new F6(t)}function ZZ(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function eee(t){return typeof t=="string"||tee(t)}function tee(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const nee="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",e4=[],t4={allowDangerousHtml:!0},ree=/^(https?|ircs?|mailto|xmpp)$/i,iee=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Uu(t){const n=see(t),r=aee(t);return oee(n.runSync(n.parse(r),r),t)}function see(t){const n=t.rehypePlugins||e4,r=t.remarkPlugins||e4,i=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...t4}:t4;return JZ().use(BJ).use(r).use(IZ,i).use(n)}function aee(t){const n=t.children||"",r=new F6;return typeof n=="string"&&(r.value=n),r}function oee(t,n){const r=n.allowedElements,i=n.allowElement,s=n.components,a=n.disallowedElements,o=n.skipHtml,c=n.unwrapDisallowed,d=n.urlTransform||lee;for(const f of iee)Object.hasOwn(n,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+nee+f.id,void 0);return n.className&&(t={type:"element",tagName:"div",properties:{className:n.className},children:t.type==="root"?t.children:[t]}),R6(t,h),vY(t,{Fragment:e.Fragment,components:s,ignoreInvalidStyle:!0,jsx:e.jsx,jsxs:e.jsxs,passKeys:!0,passNode:!0});function h(f,m,p){if(f.type==="raw"&&p&&typeof m=="number")return o?p.children.splice(m,1):p.children[m]={type:"text",value:f.value},m;if(f.type==="element"){let g;for(g in fv)if(Object.hasOwn(fv,g)&&Object.hasOwn(f.properties,g)){const y=f.properties[g],j=fv[g];(j===null||j.includes(f.tagName))&&(f.properties[g]=d(String(y||""),g,f))}}if(f.type==="element"){let g=r?!r.includes(f.tagName):a?a.includes(f.tagName):!1;if(!g&&i&&typeof m=="number"&&(g=!i(f,m,p)),g&&p&&typeof m=="number")return c&&f.children?p.children.splice(m,1,...f.children):p.children.splice(m,1),m}}}function lee(t){const n=t.indexOf(":"),r=t.indexOf("?"),i=t.indexOf("#"),s=t.indexOf("/");return n===-1||s!==-1&&n>s||r!==-1&&n>r||i!==-1&&n>i||ree.test(t.slice(0,n))?t:""}function cee(){var o,c;const n=new URLSearchParams(window.location.search).get("slug"),{data:r=[],isLoading:i}=Fe({queryKey:["blog",n],queryFn:()=>ce.entities.BlogPost.filter({slug:n,published:!0}),enabled:!!n}),s=r[0];if(i)return e.jsx("div",{className:"pt-20 min-h-screen flex items-center justify-center bg-white",children:e.jsx("div",{className:"inline-block animate-spin rounded-full h-12 w-12 border-b-2 border-[#FAB868]"})});if(!s)return e.jsx("div",{className:"pt-20 min-h-screen flex items-center justify-center bg-white",children:e.jsx("h1",{className:"text-2xl font-bold text-[#0D0D0F]",children:"Artikel niet gevonden."})});const a=((o=s.content)==null?void 0:o.includes("<"))&&((c=s.content)==null?void 0:c.includes(">"));return e.jsxs("div",{className:"pt-20 bg-white",children:[e.jsxs(vl,{children:[e.jsx("title",{children:s.meta_title||`${s.title} - 48-7 Blog`}),e.jsx("meta",{name:"description",content:s.meta_description||s.excerpt}),s.meta_keywords&&e.jsx("meta",{name:"keywords",content:s.meta_keywords}),s.canonical_url&&e.jsx("link",{rel:"canonical",href:s.canonical_url}),e.jsx("meta",{property:"og:title",content:s.title}),e.jsx("meta",{property:"og:description",content:s.excerpt}),e.jsx("meta",{property:"og:type",content:"article"}),s.image_url&&e.jsx("meta",{property:"og:image",content:s.image_url}),e.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),e.jsx("meta",{name:"twitter:title",content:s.title}),e.jsx("meta",{name:"twitter:description",content:s.excerpt}),s.image_url&&e.jsx("meta",{name:"twitter:image",content:s.image_url}),e.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"BlogPosting",headline:s.title,description:s.excerpt,image:s.image_url,datePublished:s.published_date,dateModified:s.updated_date||s.published_date,author:{"@type":"Organization",name:s.author||"48-7"},publisher:{"@type":"Organization",name:"48-7",logo:{"@type":"ImageObject",url:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/695a3d411fa079edce588856/ead83115b_48-7logo.png"}}})})]}),e.jsxs("section",{className:"relative overflow-hidden py-20 bg-[#F4F4F4]",children:[s.image_url&&e.jsx("img",{src:s.image_url,alt:s.title,className:"absolute inset-0 w-full h-full object-cover opacity-30"}),e.jsx("div",{className:"relative max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},children:[e.jsxs(de,{to:se("Blog"),className:"inline-flex items-center text-[#0D0D0F] hover:text-[#FAB868] transition-colors mb-6",children:[e.jsx(ht,{className:"w-4 h-4 mr-2"})," Terug naar Blog"]}),e.jsx("h1",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-6 leading-tight",children:s.title}),e.jsx("p",{className:"text-xl text-[#9CA3AF] mb-8",children:s.excerpt}),e.jsxs("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-2 text-base text-[#0D0D0F]",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(SD,{className:"w-5 h-5 text-[#FAB868]"}),e.jsx("span",{children:s.author||"48-7 Team"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(TP,{className:"w-5 h-5 text-[#FAB868]"}),e.jsx("span",{children:s.published_date?new Date(s.published_date).toLocaleDateString("nl-NL"):""})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(mn,{className:"w-5 h-5 text-[#FAB868]"}),e.jsx("span",{children:s.read_time})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(gD,{className:"w-5 h-5 text-[#FAB868]"}),e.jsx("span",{children:s.category})]})]})]})})]}),e.jsx("section",{className:"py-20",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsx(Z.article,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"prose prose-xl max-w-none prose-headings:text-[#0D0D0F] prose-headings:font-bold prose-p:text-[#0D0D0F]/80 prose-p:leading-relaxed prose-a:text-[#FAB868] prose-strong:text-[#0D0D0F] prose-li:text-[#0D0D0F]/80",children:a?e.jsx("div",{dangerouslySetInnerHTML:{__html:s.content}}):e.jsx(Uu,{children:s.content})})})}),e.jsx("section",{className:"py-20 bg-[#F4F4F4]",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[e.jsx("h2",{className:"text-5xl font-bold text-[#0D0D0F] mb-6",children:"Meer lezen?"}),e.jsxs(de,{to:se("Blog"),className:"inline-flex items-center gap-2 px-10 py-5 bg-[#0D0D0F] text-white font-semibold rounded-full hover:bg-[#1a1a1c] transition-all text-lg",children:[e.jsx(Ua,{className:"w-5 h-5"}),"Ga naar Blog",e.jsx($e,{className:"w-5 h-5"})]})]})})]})}function Gf({variant:t="default"}){const[n,r]=D.useState(""),[i,s]=D.useState(!1),a=_l(),o=async c=>{if(c.preventDefault(),!n)return;const d=n.replace(/^(https?:\/\/)?(www\.)?/,"").replace(/\/$/,"");a(se("AIImpactRapport")+`?url=${encodeURIComponent(d)}`)};return t==="compact"?e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"bg-[#F4F4F4] rounded-3xl p-8",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"w-12 h-12 bg-[#FAB868] rounded-full flex items-center justify-center",children:e.jsx(di,{className:"w-6 h-6 text-[#0D0D0F]"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F]",children:"Gratis AI Impact Analyse"}),e.jsx("p",{className:"text-[#9CA3AF] text-sm",children:"Ontdek je potentieel in 60 seconden"})]})]}),e.jsxs("form",{onSubmit:o,className:"flex gap-3",children:[e.jsx(me,{type:"text",placeholder:"jouwbedrijf.nl",value:n,onChange:c=>r(c.target.value),required:!0,className:"flex-1"}),e.jsx(ae,{type:"submit",disabled:i,className:"bg-[#FAB868] text-[#0D0D0F] hover:bg-[#E5A04D] font-semibold",children:i?"...":e.jsx($e,{className:"w-5 h-5"})})]})]}):e.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"bg-[#FAB868] rounded-3xl p-12 md:p-16 relative overflow-hidden",children:e.jsxs("div",{className:"relative z-10",children:[e.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[e.jsx("div",{className:"w-16 h-16 bg-[#0D0D0F] rounded-full flex items-center justify-center",children:e.jsx(At,{className:"w-8 h-8 text-white"})}),e.jsx("div",{children:e.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-[#0D0D0F]",children:"Gratis AI Impact Rapport van jouw bedrijf"})})]}),e.jsx("p",{className:"text-xl text-[#0D0D0F]/80 mb-8 max-w-2xl",children:"Vul je website URL in en ontvang binnen 60 seconden een gepersonaliseerd rapport met concrete AI kansen."}),e.jsxs("form",{onSubmit:o,className:"flex flex-col sm:flex-row gap-4",children:[e.jsx(me,{type:"text",placeholder:"jouwbedrijf.nl",value:n,onChange:c=>r(c.target.value),required:!0,className:"flex-1 px-6 py-6 text-lg bg-white rounded-xl"}),e.jsx(ae,{type:"submit",disabled:i,className:"px-8 py-6 bg-[#0D0D0F] text-white hover:bg-[#1a1a1c] font-bold text-lg",children:i?e.jsxs("span",{className:"flex items-center gap-2",children:[e.jsxs("svg",{className:"animate-spin w-5 h-5",viewBox:"0 0 24 24",children:[e.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),e.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),"Analyseren..."]}):e.jsxs("span",{className:"flex items-center gap-2",children:[e.jsx(At,{className:"w-5 h-5"}),"Genereer rapport"]})})]}),e.jsx("p",{className:"text-sm text-[#0D0D0F]/70 mt-4",children:"✓ 100% gratis • ✓ Geen verplichtingen • ✓ Direct resultaat"})]})})}function uee(){const[t,n]=D.useState("all"),{data:r=[],isLoading:i}=Fe({queryKey:["cases"],queryFn:()=>ce.entities.CaseStudy.filter({published:!0},"-created_date")}),s=[{id:"all",label:"Alle Cases"},{id:"consultancy",label:"Consultancy"},{id:"development",label:"Development"},{id:"training",label:"Training"}],a=t==="all"?r:r.filter(o=>o.case_type===t);return e.jsxs("div",{className:"pt-20",children:[e.jsx("section",{className:"py-20 bg-gradient-to-b from-gray-50 to-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center max-w-3xl mx-auto",children:[e.jsx("h1",{className:"text-4xl sm:text-5xl font-bold text-gray-900 mb-6",children:"Resultaten die spreken"}),e.jsx("p",{className:"text-xl text-gray-600",children:"Bekijk hoe wij MKB-bedrijven helpen hun productiviteit te verdubbelen met AI"})]}),e.jsx(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"mt-12 flex justify-center",children:e.jsxs(de,{to:se("AIImpactRapport"),className:"inline-flex items-center gap-2 bg-[#FAB868] rounded-lg px-3 py-1.5 hover:bg-[#E5A04D] transition-all hover:shadow-lg",children:[e.jsx("span",{className:"text-sm font-bold text-[#0D0D0F]",children:"Ontdek jouw AI-kansen"}),e.jsx($e,{className:"w-4 h-4 text-[#0D0D0F]"})]})})]})}),e.jsx("section",{className:"py-8 border-b border-gray-100 bg-white",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"flex items-center gap-2 overflow-x-auto pb-2",children:[e.jsx(df,{className:"w-5 h-5 text-gray-400 flex-shrink-0"}),s.map(o=>e.jsx("button",{onClick:()=>n(o.id),className:`px-4 py-2 rounded-full text-sm font-medium whitespace-nowrap transition-all ${t===o.id?"bg-gray-900 text-white":"bg-gray-100 text-gray-700 hover:bg-gray-200"}`,children:o.label},o.id))]})})}),e.jsx("section",{className:"py-16",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:i?e.jsx("div",{className:"text-center py-12",children:e.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):a.length===0?e.jsx("div",{className:"text-center py-12",children:e.jsx("p",{className:"text-gray-600",children:"Geen cases gevonden"})}):e.jsx("div",{className:"space-y-16",children:a.map((o,c)=>e.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"bg-white rounded-3xl overflow-hidden border border-gray-100 shadow-sm hover:shadow-xl transition-all",children:e.jsxs("div",{className:"grid lg:grid-cols-2",children:[e.jsxs("div",{className:"relative h-64 lg:h-auto",children:[o.featured_image_url&&e.jsx("img",{src:o.featured_image_url,alt:o.client_name,className:"w-full h-full object-cover"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 to-transparent lg:bg-gradient-to-r"}),e.jsxs("div",{className:"absolute bottom-6 left-6 text-white",children:[e.jsx("span",{className:"inline-flex items-center gap-1 px-3 py-1 bg-blue-100 text-blue-800 rounded-full text-sm font-medium mb-2",children:o.case_type.charAt(0).toUpperCase()+o.case_type.slice(1)}),e.jsx("h2",{className:"text-2xl font-bold",children:o.client_name}),e.jsx("p",{className:"text-white/80",children:o.industry})]})]}),e.jsxs("div",{className:"p-4 sm:p-8 lg:p-12",children:[o.homepage_usp&&e.jsx("div",{className:"mb-6",children:e.jsxs("div",{className:"flex items-center gap-2 text-green-600",children:[e.jsx(Ki,{className:"w-5 h-5"}),e.jsx("h3",{className:"text-lg sm:text-xl font-bold",children:o.homepage_usp})]})}),e.jsxs("div",{className:"mb-4 sm:mb-6",children:[e.jsx("h3",{className:"text-xs sm:text-sm font-semibold text-gray-500 uppercase tracking-wider mb-2",children:"Challenge"}),e.jsx("div",{className:"text-sm sm:text-base text-gray-700 prose prose-sm",dangerouslySetInnerHTML:{__html:o.challenge}})]}),e.jsxs("div",{className:"mb-4 sm:mb-6",children:[e.jsx("h3",{className:"text-xs sm:text-sm font-semibold text-gray-500 uppercase tracking-wider mb-2",children:"Oplossing"}),e.jsx("div",{className:"text-sm sm:text-base text-gray-700 prose prose-sm",dangerouslySetInnerHTML:{__html:o.solution}})]}),o.results&&o.results.length>0&&e.jsx("div",{className:"grid grid-cols-3 gap-2 sm:gap-4 mb-4 sm:mb-8",children:o.results.map((d,h)=>e.jsxs("div",{className:"text-center p-2 sm:p-4 bg-gray-50 rounded-xl",children:[e.jsx("p",{className:"text-lg sm:text-2xl font-bold text-gray-900 leading-tight",children:d.value}),e.jsx("p",{className:"text-xs sm:text-sm text-gray-600 mt-1",children:d.label})]},h))}),o.quote&&e.jsxs("div",{className:"bg-gray-50 rounded-xl p-4 sm:p-6",children:[e.jsx(F4,{className:"w-6 h-6 sm:w-8 sm:h-8 text-gray-300 mb-2 sm:mb-3"}),e.jsxs("p",{className:"text-sm sm:text-base text-gray-700 italic mb-2 sm:mb-3",children:['"',o.quote,'"']}),e.jsxs("p",{className:"text-xs sm:text-sm font-semibold text-gray-900",children:[o.quote_author,o.quote_role&&`, ${o.quote_role}`]})]})]})]})},o.id))})})}),e.jsx("section",{className:"py-16 bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center mb-8",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Wat kan AI voor jouw bedrijf betekenen?"}),e.jsx("p",{className:"text-xl text-gray-600",children:"Ontvang een gepersonaliseerde analyse met concrete AI kansen"})]}),e.jsx(Gf,{})]})}),e.jsx("section",{className:"py-20 bg-gray-900",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[e.jsx("h2",{className:"text-3xl font-bold text-white mb-6",children:"Klaar voor jouw succesverhaal?"}),e.jsx("p",{className:"text-xl text-gray-400 mb-8",children:"Ontdek hoe wij jouw bedrijf kunnen helpen met AI"}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[e.jsxs(de,{to:se("AIQuiz"),className:"inline-flex items-center justify-center gap-2 px-8 py-4 bg-gradient-to-r from-blue-600 to-blue-700 text-white font-semibold rounded-2xl hover:shadow-xl transition-all",children:["Doe de AI Quiz",e.jsx($e,{className:"w-5 h-5"})]}),e.jsx(de,{to:se("Contact"),className:"inline-flex items-center justify-center gap-2 px-8 py-4 bg-white text-gray-900 font-semibold rounded-2xl hover:shadow-xl transition-all",children:"Plan een gesprek"})]})]})})]})}function dee(){return e.jsx("section",{style:{backgroundColor:"#1a1a1a"},className:"py-[88px]",children:e.jsxs("div",{className:"max-w-[1100px] mx-auto px-6",children:[e.jsxs("div",{className:"text-center max-w-[600px] mx-auto mb-14",children:[e.jsx("p",{style:{color:"#f0a500",fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.12em",marginBottom:12},children:"Cowork in actie"}),e.jsx("h2",{style:{fontSize:"clamp(26px, 3.5vw, 40px)",fontWeight:700,lineHeight:1.15,color:"#fff",marginBottom:12},children:"Zo werkt het in de praktijk."}),e.jsx("p",{style:{color:"rgba(255,255,255,0.5)",fontSize:16},children:"Een echte conversatie met Cowork — gekoppeld aan Exact en Gmail. Jij vraagt. Cowork handelt. Jij keurt goed."})]}),e.jsxs("div",{className:"grid lg:grid-cols-2 gap-14 items-center",children:[e.jsxs("div",{style:{backgroundColor:"#111",border:"1px solid rgba(255,255,255,0.08)",borderRadius:18,overflow:"hidden"},children:[e.jsxs("div",{style:{backgroundColor:"#1e1e1e",padding:"14px 20px",display:"flex",alignItems:"center",gap:10,borderBottom:"1px solid rgba(255,255,255,0.06)"},children:[e.jsx("div",{className:"flex gap-1.5",children:["#ff5f57","#ffbd2e","#28c840"].map(t=>e.jsx("span",{style:{width:10,height:10,borderRadius:"50%",backgroundColor:t,display:"inline-block"}},t))}),e.jsx("span",{style:{fontSize:12,fontWeight:600,color:"rgba(255,255,255,0.5)",marginLeft:4},children:"Cowork — Sales assistent"})]}),e.jsxs("div",{style:{padding:24},className:"flex flex-col gap-4",children:[e.jsxs("div",{className:"flex gap-2.5 flex-row-reverse items-start",children:[e.jsx("div",{style:{width:30,height:30,borderRadius:"50%",background:"rgba(255,255,255,0.15)",color:"rgba(255,255,255,0.7)",display:"flex",alignItems:"center",justifyContent:"center",fontSize:11,fontWeight:700,flexShrink:0},children:"JV"}),e.jsx("div",{style:{maxWidth:"78%",background:"rgba(255,255,255,0.1)",color:"rgba(255,255,255,0.85)",borderRadius:"14px 14px 4px 14px",padding:"12px 16px",fontSize:13,lineHeight:1.6},children:"Welke offertes staan al meer dan 2 weken open?"})]}),e.jsxs("div",{className:"flex gap-2.5 items-start",children:[e.jsx("div",{style:{width:30,height:30,borderRadius:"50%",backgroundColor:"#f0a500",color:"#fff",display:"flex",alignItems:"center",justifyContent:"center",fontSize:10,fontWeight:700,flexShrink:0},children:"AI"}),e.jsxs("div",{style:{maxWidth:"78%",background:"#1e2d1e",color:"rgba(255,255,255,0.85)",borderRadius:"14px 14px 14px 4px",padding:"12px 16px",fontSize:13,lineHeight:1.6},children:["Ik zie ",e.jsx("strong",{style:{color:"#f0a500"},children:"3 offertes"})," in Exact die langer dan 2 weken openstaan:",e.jsx("div",{className:"mt-2 flex flex-col gap-1",children:["Bakkerij Janssen — €4.800 — 18 dagen","Logistiek Noord BV — €12.200 — 23 dagen","Installatiebedrijf Smit — €7.500 — 16 dagen"].map((t,n)=>e.jsxs("div",{className:"flex gap-2",style:{fontSize:12.5},children:[e.jsx("span",{style:{color:"#f0a500",fontWeight:700},children:"•"}),t]},n))}),e.jsx("br",{}),"Zal ik voor elk van hen een follow-up mail opstellen op basis van jullie laatste contact?"]})]}),e.jsxs("div",{className:"flex gap-2.5 flex-row-reverse items-start",children:[e.jsx("div",{style:{width:30,height:30,borderRadius:"50%",background:"rgba(255,255,255,0.15)",color:"rgba(255,255,255,0.7)",display:"flex",alignItems:"center",justifyContent:"center",fontSize:11,fontWeight:700,flexShrink:0},children:"JV"}),e.jsx("div",{style:{maxWidth:"78%",background:"rgba(255,255,255,0.1)",color:"rgba(255,255,255,0.85)",borderRadius:"14px 14px 4px 14px",padding:"12px 16px",fontSize:13,lineHeight:1.6},children:"Ja, doe dat voor Bakkerij Janssen."})]}),e.jsxs("div",{className:"flex gap-2.5 items-start",children:[e.jsx("div",{style:{width:30,height:30,borderRadius:"50%",backgroundColor:"#f0a500",color:"#fff",display:"flex",alignItems:"center",justifyContent:"center",fontSize:10,fontWeight:700,flexShrink:0},children:"AI"}),e.jsx("div",{style:{maxWidth:"78%",background:"#1e2d1e",borderRadius:"14px 14px 14px 4px",padding:"12px 16px"},children:e.jsxs("div",{style:{background:"rgba(240,165,0,0.1)",border:"1px solid rgba(240,165,0,0.3)",borderRadius:10,padding:"10px 14px",fontSize:12.5,color:"rgba(255,255,255,0.7)",display:"flex",alignItems:"flex-start",gap:8},children:[e.jsx(Ft,{className:"w-3.5 h-3.5 flex-shrink-0 mt-0.5",style:{stroke:"#f0a500"}}),"Mail aangemaakt in Gmail op basis van jullie laatste gesprek. Klaar om te versturen — ",e.jsx("strong",{style:{color:"#f0a500"},children:"jij keurt goed."})]})})]})]})]}),e.jsxs("div",{className:"flex flex-col gap-5",children:[[{nr:"1",title:"Medewerker stelt een vraag",text:"In gewone taal, via Cowork. Geen formulieren, geen menu's, geen training nodig."},{nr:"2",title:"Cowork raadpleegt jouw systemen",text:"Live data uit Exact, CRM, mailbox — gecombineerd in één antwoord. Geen copy-paste, geen handmatig opzoeken."},{nr:"3",title:"Cowork stelt een actie voor",text:"Mail opstellen, order aanmaken, rapportage genereren. Cowork doet het voorstel — jij beslist."},{nr:"4",title:"Jij keurt goed",text:"Cowork voert uit. Bevestiging direct in Cowork. Jij houdt de controle — altijd."}].map((t,n)=>e.jsxs(Ot.Fragment,{children:[e.jsxs("div",{className:"flex gap-4 items-start",children:[e.jsx("div",{style:{width:36,height:36,borderRadius:"50%",background:"rgba(240,165,0,0.12)",border:"1px solid rgba(240,165,0,0.3)",display:"flex",alignItems:"center",justifyContent:"center",fontFamily:"'Bebas Neue', cursive",fontSize:16,color:"#f0a500",flexShrink:0},children:t.nr}),e.jsxs("div",{children:[e.jsx("h4",{style:{fontSize:15,fontWeight:700,color:"#fff",marginBottom:4},children:t.title}),e.jsx("p",{style:{fontSize:13,color:"rgba(255,255,255,0.45)",lineHeight:1.55},children:t.text})]})]}),n<3&&e.jsx("div",{style:{width:1,height:16,background:"rgba(255,255,255,0.1)",marginLeft:17}})]},n)),e.jsx("div",{style:{marginTop:24},children:e.jsx(de,{to:se("ClaudeCoworkAdvies"),style:{backgroundColor:"#f0a500",color:"#fff"},className:"inline-flex items-center px-6 py-3.5 rounded-lg text-sm font-bold hover:opacity-90 transition-opacity",children:"Zien hoe dit werkt voor mijn bedrijf →"})})]})]})]})})}const hee=[{key:"dienstverl",label:"Zakelijke dienstverlening"},{key:"bouw",label:"Bouw & Installatie"},{key:"zorg",label:"Zorg & Welzijn"},{key:"groothandel",label:"Groothandel"},{key:"finance",label:"Financiële dienstverlening"}],fee={dienstverl:[{voor:"Elke maandagochtend ben ik twee uur kwijt aan het samenstellen van klantupdates uit drie verschillende systemen.",na:"Cowork haalt data op uit alle systemen, stelt de update op in jouw huisstijl en stuurt hem klaar voor review. Jij keurt goed in 10 minuten.",saving:"Tijdsbesparing: ~7 uur/week"},{voor:"Offertes schrijven kost me een halve dag terwijl de informatie al in Exact staat.",na:"Cowork haalt tarieven en klantdata op uit Exact en genereert een conceptofferte inclusief scope en voorwaarden. Klaar voor review in 3 minuten.",saving:"Tijdsbesparing: ~4 uur/week"}],bouw:[{voor:"Werkbonnen verwerken en het Wkb-dossier bijhouden kost mijn uitvoerder elke week uren administratie.",na:"Gesproken notities op de bouwplaats worden automatisch verwerkt tot werkbonnen en Wkb-dossieronderdelen. Uitvoerder accordeert, klaar.",saving:"Tijdsbesparing: ~6 uur/week"},{voor:"Inkooporders controleren en verwerken in Exact neemt de hele ochtend van mijn binnendienst in beslag.",na:"Cowork leest inkomende orders uit e-mail, controleert ze op afwijkingen en verwerkt ze automatisch in Exact. Binnendienst handelt alleen uitzonderingen af.",saving:"Tijdsbesparing: ~5 uur/week"}],zorg:[{voor:"Mijn medewerkers zijn gemiddeld 40 minuten per dienst kwijt aan het schrijven van zorgrapportages.",na:"Medewerker spreekt observaties in na de dienst. Cowork structureert dit tot een AVG-conforme zorgrapportage. Review en opslaan: 3 minuten.",saving:"Tijdsbesparing: ~35 min/dienst"},{voor:"Roosteren kost mijn planner elke week een dag door alle beschikbaarheden en CAO-regels handmatig te verwerken.",na:"Cowork analyseert beschikbaarheid, verlof en CAO-parameters en stelt een conceptrooster op. Planner accordeert en past uitzonderingen aan.",saving:"Tijdsbesparing: ~6 uur/week"}],groothandel:[{voor:"Inkomende orders per e-mail handmatig overtypen in ons systeem kost mijn binnendienst uren per dag.",na:"Orders worden automatisch uitgelezen uit e-mail of PDF en verwerkt in Exact Online. Binnendienst controleert alleen afwijkingen en onbekende artikelen.",saving:"Tijdsbesparing: ~8 uur/week"},{voor:"Elke week dezelfde statusmail naar 30 klanten opstellen en versturen neemt te veel tijd.",na:"Cowork haalt orderstatus op uit Exact, stelt gepersonaliseerde statusmails op per klant en verstuurt ze automatisch op het vaste moment.",saving:"Tijdsbesparing: ~3 uur/week"}],finance:[{voor:"Wwft-dossiers bijhouden en controleren op volledigheid kost mijn compliance officer een dag per week.",na:"Cowork controleert klantdossiers automatisch op Wwft-volledigheid, signaleert verlopen KYC-documenten en rapporteert bevindingen in een overzicht.",saving:"Tijdsbesparing: ~5 uur/week"},{voor:"Klantvragen per e-mail beantwoorden en in HubSpot bijhouden neemt te veel tijd van mijn adviseurs.",na:"Cowork stelt conceptantwoorden op in de stijl van de adviseur, slaat gespreksnotities op in HubSpot en update de dealstatus automatisch.",saving:"Tijdsbesparing: ~4 uur/week"}]};function mee(){const[t,n]=D.useState("dienstverl");return e.jsx("section",{style:{backgroundColor:"#f5f5f5"},className:"py-[88px]",children:e.jsxs("div",{className:"max-w-[1100px] mx-auto px-6",children:[e.jsxs("div",{className:"text-center max-w-[600px] mx-auto mb-10",children:[e.jsx("p",{style:{color:"#f0a500",fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.12em",marginBottom:12},children:"Claude Cowork in de praktijk"}),e.jsx("h2",{style:{fontSize:"clamp(26px, 3.5vw, 40px)",fontWeight:700,lineHeight:1.15,color:"#1a1a1a",marginBottom:12},children:"Wat doet Cowork voor jouw branche?"}),e.jsx("p",{style:{color:"#666",fontSize:16},children:"Concrete voor/na-scenario's per sector — zodat je ziet wat het oplevert in jouw dagelijkse werk."})]}),e.jsx("div",{className:"flex gap-2 flex-wrap justify-center mb-10",children:hee.map(r=>e.jsx("button",{onClick:()=>n(r.key),style:{padding:"9px 20px",borderRadius:30,border:t===r.key?"2px solid #1a1a1a":"2px solid #e8e8e8",background:t===r.key?"#1a1a1a":"#fff",color:t===r.key?"#fff":"#666",fontSize:14,fontWeight:600,cursor:"pointer",fontFamily:"inherit",transition:"all 0.15s"},children:r.label},r.key))}),e.jsx("div",{className:"grid md:grid-cols-2 gap-6",children:fee[t].map((r,i)=>e.jsxs("div",{style:{background:"#fff",border:"1px solid #e8e8e8",borderRadius:14,overflow:"hidden"},children:[e.jsxs("div",{style:{background:"#f5f5f5",padding:"18px 22px"},children:[e.jsx("p",{style:{fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"#999",marginBottom:6},children:"Voor Claude Cowork"}),e.jsxs("p",{style:{fontSize:14,color:"#444",lineHeight:1.55,fontStyle:"italic"},children:['"',r.voor,'"']})]}),e.jsxs("div",{style:{padding:"20px 22px"},children:[e.jsx("p",{style:{fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"#f0a500",marginBottom:8},children:"Na Claude Cowork"}),e.jsx("p",{style:{fontSize:14,color:"#1a1a1a",lineHeight:1.6},children:r.na}),e.jsx("span",{style:{display:"inline-block",marginTop:10,background:"#fef3d0",color:"#b07800",fontSize:12,fontWeight:700,padding:"4px 10px",borderRadius:20},children:r.saving})]})]},i))})]})})}const pee=[{name:"Starter",tagline:"Voor teams die willen starten",price:"€750",unit:"eenmalige setup",features:["2 software-koppelingen","3 skills op maat","Tot 5 gebruikers","Basis onboarding","E-mailsupport, 30 dagen"],featured:!1,btnText:"Vraag Starter aan"},{name:"Groei",tagline:"Voor serieuze inzet van Cowork",price:"€1.500",unit:"eenmalige setup",badge:"Meest gekozen",features:["4 software-koppelingen","6 skills op maat","Tot 15 gebruikers","Begeleide onboarding","E-mail + call support, 60 dagen"],featured:!0,btnText:"Vraag Groei aan"},{name:"Pro",tagline:"Voor meerdere afdelingen of locaties",price:"€2.750",unit:"eenmalige setup",features:["6 software-koppelingen","10 skills op maat","Onbeperkt gebruikers","Dedicated onboarding traject","Prioriteit support, 90 dagen"],featured:!1,btnText:"Vraag Pro aan"}],gee=[{title:"Zwart op wit wat je krijgt",text:"Na de intake weet je exact wat we bouwen — geen verrassingen achteraf."},{title:"Geen ticketsysteem, geen wachtrijen",text:"Eén vast aanspreekpunt bij 48-7 — gewoon bellen of appen."},{title:"Alles wat we bouwen is van jou",text:"Geen lock-in. Jij behoudt volledige eigendom over alle skills en koppelingen."}];function xee(){return e.jsx("section",{id:"pricing",className:"py-[88px]",children:e.jsxs("div",{className:"max-w-[1100px] mx-auto px-6",children:[e.jsxs("div",{className:"text-center max-w-[620px] mx-auto mb-4",children:[e.jsx("p",{style:{color:"#f0a500",fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.12em",marginBottom:12},children:"Prijzen"}),e.jsx("h2",{style:{fontSize:"clamp(26px, 3.5vw, 40px)",fontWeight:700,lineHeight:1.15,color:"#1a1a1a"},children:"Transparant geprijsd. Klaar in één week."})]}),e.jsxs("p",{style:{textAlign:"center",fontSize:14,color:"#666",marginBottom:44},children:["Je betaalt eenmalig voor de setup. De Anthropic-licentie (",e.jsx("strong",{style:{color:"#1a1a1a"},children:"€17/mnd per gebruiker"}),") regel je zelf rechtstreeks bij Anthropic — daar zitten wij niet tussen."]}),e.jsx("div",{className:"grid md:grid-cols-3 gap-5 mb-8",children:pee.map((t,n)=>e.jsxs("div",{style:{borderRadius:16,overflow:"hidden",border:t.featured?"2px solid #f0a500":"1px solid #e8e8e8",display:"flex",flexDirection:"column"},children:[e.jsxs("div",{style:{padding:"28px 24px 20px",backgroundColor:t.featured?"#1a1a1a":"#f5f5f5"},children:[t.badge&&e.jsx("span",{style:{display:"inline-block",backgroundColor:"#f0a500",color:"#fff",fontSize:10,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.07em",padding:"3px 9px",borderRadius:20,marginBottom:12},children:t.badge}),e.jsx("div",{style:{fontSize:22,fontWeight:800,color:t.featured?"#fff":"#1a1a1a"},children:t.name}),e.jsx("div",{style:{fontSize:13,color:t.featured?"rgba(255,255,255,0.5)":"#666",marginTop:3},children:t.tagline})]}),e.jsxs("div",{style:{padding:"22px 24px 26px",flex:1,display:"flex",flexDirection:"column",backgroundColor:"#fff"},children:[e.jsxs("div",{style:{marginBottom:18},children:[e.jsx("strong",{style:{fontSize:32,fontWeight:800,color:"#1a1a1a"},children:t.price}),e.jsx("span",{style:{fontSize:14,color:"#666",marginLeft:4},children:t.unit})]}),e.jsx("ul",{style:{listStyle:"none",display:"flex",flexDirection:"column",gap:9,flex:1,marginBottom:22,padding:0},children:t.features.map((r,i)=>e.jsxs("li",{style:{fontSize:14,color:"#333",display:"flex",gap:9,alignItems:"flex-start"},children:[e.jsx("span",{style:{width:18,height:18,backgroundColor:"#fef3d0",borderRadius:"50%",flexShrink:0,marginTop:1,display:"inline-flex",alignItems:"center",justifyContent:"center"},children:e.jsx("svg",{viewBox:"0 0 18 18",style:{width:12,height:12},fill:"none",stroke:"#f0a500",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("polyline",{points:"3.5,9 7,12.5 14.5,5"})})}),r]},i))}),e.jsx(de,{to:se("Contact")+`?training=${encodeURIComponent("Cowork "+t.name)}`,style:{display:"block",textAlign:"center",padding:13,borderRadius:8,fontSize:15,fontWeight:700,backgroundColor:t.featured?"#f0a500":"#1a1a1a",color:"#fff",textDecoration:"none"},className:"hover:opacity-85 transition-opacity",children:t.btnText})]})]},n))}),e.jsxs("div",{style:{border:"1px solid #e8e8e8",borderRadius:14,padding:"28px 32px",display:"flex",alignItems:"center",gap:32,flexWrap:"wrap",backgroundColor:"#f5f5f5",marginBottom:32},children:[e.jsx("div",{style:{fontSize:36,flexShrink:0},children:"🎓"}),e.jsxs("div",{style:{flex:1,minWidth:200},children:[e.jsx("h4",{style:{fontSize:18,fontWeight:700,color:"#1a1a1a",marginBottom:6},children:"Training voor jouw team"}),e.jsx("p",{style:{fontSize:14,color:"#666",lineHeight:1.6},children:"Wil je jouw team meteen goed laten starten? We verzorgen een praktische training op locatie — zodat iedereen Cowork direct goed gebruikt. Maximaal 15 personen per dagdeel. Op aanvraag in te plannen, aansluitend op de setup of apart."})]}),e.jsxs("div",{style:{textAlign:"right",flexShrink:0},children:[e.jsx("strong",{style:{display:"block",fontSize:36,fontWeight:800,color:"#f0a500",lineHeight:1},children:"€495"}),e.jsx("span",{style:{fontSize:13,color:"#666"},children:"per dagdeel"})]})]}),e.jsx("div",{className:"flex gap-4 flex-wrap",children:gee.map((t,n)=>e.jsxs("div",{style:{flex:1,minWidth:200,display:"flex",gap:12,alignItems:"flex-start",padding:18,background:"#fff",borderRadius:10,border:"1px solid #e8e8e8"},children:[e.jsx("div",{style:{width:24,height:24,backgroundColor:"#f0a500",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,marginTop:1},children:e.jsx("svg",{viewBox:"0 0 24 24",style:{width:13,height:13},fill:"none",stroke:"#fff",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("polyline",{points:"20 6 9 17 4 12"})})}),e.jsxs("div",{children:[e.jsx("strong",{style:{display:"block",fontSize:14,color:"#1a1a1a",marginBottom:3},children:t.title}),e.jsx("span",{style:{fontSize:13,color:"#666"},children:t.text})]})]},n))}),e.jsx("p",{style:{marginTop:24,textAlign:"center",fontSize:14,color:"#999",fontStyle:"italic"},children:"Wil je na de setup ook maandelijks ondersteuning? Dan bespreken we een service abonnement — maar dat is geen verplichting."})]})})}const vee={role:"assistant",content:`Hoi! 👋 Ik help je ontdekken welke Skills en Connectors het beste passen bij jullie organisatie.
Laten we starten: **welke software gebruiken jullie dagelijks?** Denk aan boekhoud-, CRM-, HR- of voorraadsystemen.`};function M6(){const[t,n]=D.useState(!1),[r,i]=D.useState([vee]),[s,a]=D.useState(""),[o,c]=D.useState(!1),d=D.useRef(null);D.useEffect(()=>{var m;(m=d.current)==null||m.scrollIntoView({behavior:"smooth"})},[r,o]);const h=async()=>{var j;if(!s.trim()||o)return;const m={role:"user",content:s.trim()},p=[...r,m];i(p),a(""),c(!0);const y=((j=(await ce.functions.invoke("coworkAdvisor",{messages:p})).data)==null?void 0:j.reply)||"Sorry, er ging iets mis. Probeer het opnieuw.";i([...p,{role:"assistant",content:y}]),c(!1)},f=m=>{m.key==="Enter"&&!m.shiftKey&&(m.preventDefault(),h())};return e.jsxs(e.Fragment,{children:[e.jsx("button",{onClick:()=>n(!t),className:"fixed bottom-6 right-6 z-50 w-14 h-14 bg-[#FAB868] text-[#0D0D0F] rounded-full shadow-lg flex items-center justify-center hover:bg-[#E5A04D] transition-all","aria-label":"Open AI-adviseur",children:t?e.jsx(Ht,{className:"w-6 h-6"}):e.jsx(Ho,{className:"w-6 h-6"})}),e.jsx(Cr,{children:t&&e.jsxs(Z.div,{initial:{opacity:0,y:20,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:20,scale:.95},transition:{duration:.2},className:"fixed bottom-24 right-6 z-50 w-[360px] max-w-[calc(100vw-1.5rem)] bg-white rounded-2xl shadow-2xl border border-gray-100 flex flex-col overflow-hidden",style:{height:"520px"},children:[e.jsxs("div",{className:"bg-[#0D0D0F] px-5 py-4 flex items-center gap-3",children:[e.jsx("div",{className:"w-9 h-9 bg-[#FAB868] rounded-full flex items-center justify-center flex-shrink-0",children:e.jsx(At,{className:"w-4 h-4 text-[#0D0D0F]"})}),e.jsxs("div",{children:[e.jsx("p",{className:"font-bold text-white text-sm",children:"Cowork Adviseur"}),e.jsx("p",{className:"text-xs text-gray-400",children:"Vindt de beste Skills & Connectors voor jou"})]})]}),e.jsxs("div",{className:"flex-1 overflow-y-auto p-4 space-y-3 bg-[#faf8f5]",children:[r.map((m,p)=>e.jsx("div",{className:`flex ${m.role==="user"?"justify-end":"justify-start"}`,children:e.jsx("div",{className:`max-w-[85%] px-4 py-2.5 rounded-2xl text-sm leading-relaxed whitespace-pre-wrap ${m.role==="user"?"bg-[#FAB868] text-[#0D0D0F] rounded-br-sm font-medium":"bg-white text-gray-800 rounded-bl-sm shadow-sm border border-gray-100"}`,dangerouslySetInnerHTML:{__html:m.content.replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>").replace(/\n/g,"<br/>")}})},p)),o&&e.jsx("div",{className:"flex justify-start",children:e.jsx("div",{className:"bg-white border border-gray-100 shadow-sm px-4 py-3 rounded-2xl rounded-bl-sm flex gap-1.5",children:[0,1,2].map(m=>e.jsx("span",{className:"w-2 h-2 bg-gray-300 rounded-full animate-bounce",style:{animationDelay:`${m*.15}s`}},m))})}),e.jsx("div",{ref:d})]}),e.jsxs("div",{className:"p-3 border-t border-gray-100 bg-white flex items-end gap-2",children:[e.jsx("textarea",{value:s,onChange:m=>a(m.target.value),onKeyDown:f,placeholder:"Typ je antwoord...",rows:1,className:"flex-1 resize-none border border-gray-200 rounded-xl px-3 py-2.5 text-sm focus:outline-none focus:border-amber-400 bg-gray-50 max-h-24"}),e.jsx("button",{onClick:h,disabled:!s.trim()||o,className:"w-10 h-10 bg-[#FAB868] text-[#0D0D0F] rounded-xl flex items-center justify-center hover:bg-[#E5A04D] transition-colors disabled:opacity-40 flex-shrink-0",children:e.jsx(M4,{className:"w-4 h-4"})})]})]})})]})}function yee(){return e.jsx("img",{src:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/695a3d411fa079edce588856/6e5f2b54f_claude-logo_brandlogosnet_yx32y.png",alt:"Claude by Anthropic",style:{height:32,width:"auto"}})}function n4({imageUrl:t,fallback:n,caption:r,darkMode:i=!1}){const[s,a]=Ot.useState(!1),o=t||n;return o?e.jsxs(e.Fragment,{children:[e.jsxs("div",{onClick:()=>a(!0),style:{borderRadius:14,overflow:"hidden",border:"1px solid "+(i?"rgba(255,255,255,0.1)":"#e8e8e8"),aspectRatio:"16/10",cursor:"zoom-in",position:"relative"},className:"group",children:[e.jsx("img",{src:o,alt:r,style:{width:"100%",height:"100%",objectFit:"cover",transition:"transform 0.3s ease"},className:"group-hover:scale-105"}),e.jsx("div",{style:{position:"absolute",inset:0,background:"rgba(0,0,0,0)",display:"flex",alignItems:"center",justifyContent:"center",transition:"background 0.2s"},className:"group-hover:bg-black/20",children:e.jsx("span",{style:{fontSize:28,opacity:0,transition:"opacity 0.2s"},className:"group-hover:opacity-100",children:"ðŸ”"})})]}),s&&e.jsxs("div",{onClick:()=>a(!1),style:{position:"fixed",inset:0,zIndex:9999,background:"rgba(0,0,0,0.85)",display:"flex",alignItems:"center",justifyContent:"center",padding:24,cursor:"zoom-out"},children:[e.jsx("img",{src:o,alt:r,style:{maxWidth:"90vw",maxHeight:"90vh",borderRadius:12,objectFit:"contain",boxShadow:"0 24px 80px rgba(0,0,0,0.5)"},onClick:c=>c.stopPropagation()}),e.jsx("button",{onClick:()=>a(!1),style:{position:"absolute",top:20,right:24,color:"#fff",background:"none",border:"none",fontSize:32,cursor:"pointer",lineHeight:1},children:"×"})]})]}):e.jsxs("div",{style:{borderRadius:14,border:"2px dashed "+(i?"rgba(255,255,255,0.12)":"#d1d5db"),background:i?"rgba(255,255,255,0.04)":"#f9fafb",aspectRatio:"16/10",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:8},children:[e.jsx("span",{style:{fontSize:28,opacity:.3},children:"🖼ï¸"}),e.jsx("span",{style:{fontSize:12,color:i?"rgba(255,255,255,0.3)":"#9ca3af",textAlign:"center",padding:"0 12px"},children:r})]})}function kv({text:t,highlight:n,btnText:r,to:i,onClick:s}){return e.jsx("div",{style:{backgroundColor:"#f0a500"},className:"py-7",children:e.jsxs("div",{className:"max-w-[1100px] mx-auto px-6 flex items-center justify-between gap-6 flex-wrap",children:[e.jsxs("div",{style:{fontSize:17,fontWeight:700,color:"#fff"},children:[t," ",e.jsx("span",{style:{fontWeight:400,opacity:.85},children:n})]}),s?e.jsx("button",{onClick:s,style:{backgroundColor:"#fff",color:"#1a1a1a",fontWeight:700,padding:"14px 28px",borderRadius:8,fontSize:15,border:"none",cursor:"pointer",fontFamily:"inherit",flexShrink:0},className:"hover:opacity-90 transition-opacity",children:r}):e.jsx(de,{to:i,style:{backgroundColor:"#fff",color:"#1a1a1a",fontWeight:700,padding:"14px 28px",borderRadius:8,fontSize:15,textDecoration:"none",flexShrink:0,display:"inline-block"},className:"hover:opacity-90 transition-opacity",children:r})]})})}function bee(){const[t,n]=D.useState(!1),[r,i]=D.useState({name:"",email:"",company:""}),[s,a]=D.useState(!1),[o,c]=D.useState({name:"",email:"",company:"",branche:"",bericht:""}),[d,h]=D.useState(!1),{data:f=[]}=Fe({queryKey:["site-settings"],queryFn:()=>ce.entities.SiteSettings.list()}),m=N=>{var w;return(w=f.find(k=>k.setting_key===N))==null?void 0:w.value},p=m("cowork_video_url"),g=[{key:"cowork_img_1",caption:"Connectors — koppel Claude aan jouw apps",fallback:"https://media.base44.com/images/public/695a3d411fa079edce588856/17b974f52_connectors.png"},{key:"cowork_img_2",caption:"Welke offertes in HubSpot hebben een factuur in Exact",fallback:"https://media.base44.com/images/public/695a3d411fa079edce588856/9c8f98007_hs-exact.png"},{key:"cowork_img_3",caption:"Cowork in actie — openstaande facturen",fallback:"https://media.base44.com/images/public/695a3d411fa079edce588856/0077fe820_openstaand-excel.png"}],y=[{key:"cowork_skill_img_1",caption:"Skills instellen in Cowork",fallback:"https://media.base44.com/images/public/695a3d411fa079edce588856/30539b4a4_0-skills.png"},{key:"cowork_skill_img_2",caption:"Skill in actie — opdracht uitvoeren",fallback:"https://media.base44.com/images/public/695a3d411fa079edce588856/7b294d866_1-skillslideopdracht.png"},{key:"cowork_skill_img_3",caption:"Resultaat — PowerPoint slide gegenereerd",fallback:"https://media.base44.com/images/public/695a3d411fa079edce588856/c9d3d5316_2-skillresultaat.png"}],j={width:"100%",padding:"12px 14px",border:"1.5px solid rgba(255,255,255,0.12)",borderRadius:8,fontSize:14,fontFamily:"inherit",marginBottom:12,backgroundColor:"rgba(255,255,255,0.07)",color:"#fff",display:"block",outline:"none"},v=async N=>{N.preventDefault(),await ce.functions.invoke("sendCoworkGidsRequest",{name:r.name,email:r.email,company:r.company}),a(!0)},x=async N=>{N.preventDefault(),await ce.functions.invoke("sendContactForm",{name:o.name,email:o.email,company:o.company,message:`Branche: ${o.branche}
${o.bericht}`,subject:"Cowork Demo aanvraag"}),h(!0)};return e.jsxs("div",{className:"pt-20 min-h-screen bg-white",children:[t&&p&&e.jsx("div",{className:"fixed inset-0 z-50 bg-black/80 flex items-center justify-center p-4",onClick:()=>n(!1),children:e.jsxs("div",{className:"relative w-full max-w-4xl",style:{aspectRatio:"16/9"},onClick:N=>N.stopPropagation(),children:[e.jsxs("button",{onClick:()=>n(!1),className:"absolute -top-10 right-0 flex items-center gap-2 text-white text-sm",children:[e.jsx(Ht,{className:"w-5 h-5"})," Sluiten"]}),e.jsx("iframe",{src:p,className:"w-full h-full rounded-xl",allowFullScreen:!0,title:"Cowork video"})]})}),e.jsx("div",{style:{backgroundColor:"#faf8f5",borderBottom:"1px solid #ece8e2"},className:"py-[18px]",children:e.jsxs("div",{className:"max-w-[1100px] mx-auto px-6 flex items-center justify-between flex-wrap gap-4",children:[e.jsxs("div",{className:"flex items-center gap-6",children:[e.jsx(yee,{}),e.jsx("div",{style:{width:1,height:28,backgroundColor:"#ddd"}}),e.jsx("span",{style:{fontSize:13,color:"#999",fontWeight:500},children:"geconfigureerd door 48-7 voor het Nederlandse MKB"})]}),e.jsxs("div",{style:{fontSize:13,color:"#888"},children:["Meer weten?"," ",e.jsx(de,{to:se("ClaudeCoworkSkillsConnectors"),style:{color:"#f0a500",fontWeight:600},className:"hover:underline",children:"Bekijk Skills & Connectors →"})]})]})}),e.jsx("section",{style:{backgroundColor:"#1a1a1a",overflow:"hidden"},children:e.jsx("div",{className:"max-w-[1100px] mx-auto px-6",children:e.jsxs("div",{className:"grid lg:grid-cols-[1fr_480px]",style:{minHeight:600},children:[e.jsxs("div",{className:"py-20 lg:pr-16 flex flex-col justify-center",children:[e.jsxs("div",{className:"flex items-center gap-2.5 mb-6",children:[e.jsx("div",{style:{width:8,height:8,borderRadius:"50%",backgroundColor:"#f0a500"}}),e.jsx("span",{style:{color:"#f0a500",fontSize:12,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.12em"},children:"Claude Cowork voor MKB — door 48-7"})]}),e.jsxs("h1",{className:"font-bebas",style:{fontSize:"clamp(52px, 7vw, 88px)",lineHeight:.95,letterSpacing:"0.02em",color:"#fff",marginBottom:28},children:["Laat AI",e.jsx("br",{}),"het werk doen.",e.jsx("br",{}),e.jsx("span",{style:{color:"#f0a500"},children:"In jouw eigen"}),e.jsx("br",{}),"software."]}),e.jsxs("p",{style:{fontSize:18,color:"rgba(255,255,255,0.65)",lineHeight:1.7,maxWidth:480,marginBottom:12},children:["Cowork werkt o.a. in je boekhoudpakket, CRM en e-mail — en voert daar taken voor je uit. Maak offertes. Beantwoord klantmails. Analyseer data. ",e.jsx("strong",{style:{color:"#fff"},children:"Automatisch."})]}),e.jsx("p",{style:{fontSize:13,color:"rgba(255,255,255,0.35)",marginBottom:36},children:"Cowork gebruikt Claude — de AI van Anthropic, vergelijkbaar met ChatGPT maar gebouwd voor zakelijk gebruik."}),e.jsx("div",{className:"flex gap-3.5 flex-wrap",children:e.jsx(de,{to:se("ClaudeCoworkAdvies"),style:{backgroundColor:"#f0a500",color:"#fff",padding:"14px 24px",borderRadius:8,fontSize:15,fontWeight:700,textDecoration:"none",display:"inline-flex",alignItems:"center",gap:8},className:"hover:opacity-90 transition-opacity",children:"Plan een gratis demo"})})]}),e.jsxs("div",{style:{backgroundColor:"#111",position:"relative",overflow:"hidden"},children:[e.jsx("div",{style:{position:"absolute",top:-60,right:-60,width:240,height:240,borderRadius:"50%",background:"radial-gradient(circle, rgba(240,165,0,0.15) 0%, transparent 70%)",pointerEvents:"none"}}),e.jsxs("div",{style:{padding:"48px 40px",height:"100%",display:"flex",flexDirection:"column",justifyContent:"center",gap:16},children:[e.jsx("p",{style:{fontSize:12,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",color:"rgba(255,255,255,0.3)",marginBottom:8},children:"Claude Cowork in cijfers"}),[{nr:"1 wk",title:"Doorgaans live binnen één week",sub:"Van intake tot werkende Claude Cowork-omgeving"},{nr:"€17",title:"Per medewerker per maand",sub:"Anthropic Claude Teams licentie"},{nr:"50+",title:"Kant-en-klare koppelingen",sub:"Exact, AFAS, HubSpot, Microsoft 365 en meer"}].map((N,w)=>e.jsxs("div",{style:{background:"rgba(255,255,255,0.05)",border:"1px solid rgba(255,255,255,0.08)",borderRadius:12,display:"flex",alignItems:"center",gap:14,padding:"16px 18px"},children:[e.jsx("div",{className:"font-bebas",style:{fontSize:32,color:"#f0a500",lineHeight:1,minWidth:60},children:N.nr}),e.jsxs("div",{children:[e.jsx("strong",{style:{display:"block",fontSize:14,color:"#fff"},children:N.title}),e.jsx("span",{style:{fontSize:12,color:"rgba(255,255,255,0.45)"},children:N.sub})]})]},w))]})]})]})})}),e.jsx("div",{style:{backgroundColor:"#f0a500"},children:e.jsx("div",{className:"max-w-[1100px] mx-auto",children:e.jsx("div",{className:"flex flex-wrap",children:[{icon:e.jsx(Ft,{className:"w-5 h-5"}),text:"Binnen 1 week live"},{icon:e.jsx(Vn,{className:"w-5 h-5"}),text:"GDPR-compliant & veilig"},{icon:e.jsx(Tr,{className:"w-5 h-5"}),text:"Geen leercurve voor je team"},{icon:e.jsx(Ft,{className:"w-5 h-5"}),text:"Vanaf €17 per medewerker/mnd"}].map((N,w)=>e.jsxs("div",{style:{flex:"1 0 50%",borderRight:w%2===0?"1px solid rgba(0,0,0,0.1)":"none",borderBottom:w<2?"1px solid rgba(0,0,0,0.1)":"none",padding:"22px 28px",display:"flex",alignItems:"center",gap:12},className:"lg:flex-1 lg:border-b-0",children:[e.jsx("span",{style:{color:"rgba(0,0,0,0.6)"},children:N.icon}),e.jsx("span",{style:{fontSize:14,fontWeight:700,color:"rgba(0,0,0,0.75)"},children:N.text})]},w))})})}),e.jsx("div",{style:{backgroundColor:"#f5f5f5",borderTop:"1px solid #e8e8e8",borderBottom:"1px solid #e8e8e8"},className:"py-10",children:e.jsxs("div",{className:"max-w-[1100px] mx-auto px-6",children:[e.jsx("p",{style:{fontSize:12,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",color:"#999",textAlign:"center",marginBottom:24},children:"Cowork koppelt met de software die jij al gebruikt"}),e.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-2.5",children:[[{name:"Exact Online",logo:"https://www.google.com/s2/favicons?domain=exact.com&sz=32"},{name:"Moneybird",logo:"https://www.google.com/s2/favicons?domain=moneybird.com&sz=32"},{name:"Visma",logo:"https://www.google.com/s2/favicons?domain=visma.com&sz=32"},{name:"AFAS",logo:"https://www.google.com/s2/favicons?domain=afas.nl&sz=32"},{name:"HubSpot",logo:"https://cdn.simpleicons.org/hubspot/FF7A59"},{name:"Office 365",logo:"https://cdn.simpleicons.org/microsoftoffice/D83B01"},{name:"Google Workspace",logo:"https://cdn.simpleicons.org/google/4285F4"},{name:"Slack",logo:"https://cdn.simpleicons.org/slack/4A154B"}].map(({name:N,logo:w})=>e.jsxs("div",{style:{background:"#fff",border:"1px solid #e8e8e8",borderRadius:10,padding:"10px 16px",display:"flex",alignItems:"center",gap:8,whiteSpace:"nowrap"},children:[e.jsx("img",{src:w,alt:N,style:{width:20,height:20,objectFit:"contain"},onError:k=>{k.target.style.display="none"}}),e.jsx("span",{style:{fontSize:13,fontWeight:700,color:"#444"},children:N})]},N)),e.jsx("div",{style:{background:"#1a1a1a",color:"#fff",borderRadius:10,padding:"10px 20px",fontSize:13,fontWeight:700,whiteSpace:"nowrap"},children:"+ 150 andere software"})]})]})}),e.jsx("section",{className:"py-[88px]",children:e.jsxs("div",{className:"max-w-[1100px] mx-auto px-6",children:[e.jsxs("div",{className:"grid lg:grid-cols-2 gap-16 items-center mb-14",children:[e.jsxs("div",{children:[e.jsx("h2",{style:{fontSize:"clamp(36px, 5vw, 56px)",fontWeight:800,lineHeight:1.05,marginBottom:16,color:"#1a1a1a"},children:"Wat is Claude Cowork?"}),e.jsx("p",{style:{fontSize:"clamp(18px, 2.5vw, 24px)",fontWeight:600,color:"#444",lineHeight:1.35,marginBottom:16},children:"Een digitale collega die meedenkt, meewerkt en taken uitvoert."}),e.jsx("p",{style:{color:"#666",marginBottom:16,lineHeight:1.75},children:"Claude Cowork is het AI-platform van Anthropic voor teams. Geen chatbot die generieke antwoorden geeft — maar een AI-assistent die jouw systemen kent, jouw processen begrijpt en taken voor je uitvoert."}),e.jsx("p",{style:{color:"#666",marginBottom:0,lineHeight:1.75},children:"48-7 configureert het volledig op jouw bedrijf: gekoppeld aan je bestaande tools, ingesteld op jouw processen. Jouw medewerkers stellen vragen in gewone taal — de AI antwoordt met jóuw data en handelt."}),e.jsxs("div",{style:{background:"#fef3d0",borderLeft:"3px solid #f0a500",borderRadius:"0 8px 8px 0",padding:"14px 18px",fontSize:14,color:"#8a6000",lineHeight:1.65,marginTop:20,marginBottom:24},children:[e.jsx("strong",{style:{color:"#1a1a1a",fontWeight:700},children:"Wat de meeste mensen niet weten:"})," Met standaard AI-tools zoals ChatGPT kun je niet praten met jouw eigen systemen. Cowork lost dat op — zodat de AI wél toegang heeft tot jouw data, veilig en gecontroleerd."]}),e.jsx("div",{className:"flex gap-3 flex-wrap",children:e.jsx(de,{to:se("ClaudeCoworkAdvies"),style:{background:"#1a1a1a",color:"#fff",padding:"14px 24px",borderRadius:8,fontSize:15,fontWeight:700,textDecoration:"none",display:"inline-flex",alignItems:"center"},className:"hover:opacity-90 transition-opacity",children:"Plan een gratis demo"})})]}),e.jsx("div",{className:"grid grid-cols-2 gap-4",children:[{icon:"💬",title:"Praat met je eigen systemen",text:"Stel vragen over je CRM, ERP of kennisdocumenten en krijg direct een antwoord op basis van jóuw data."},{icon:"âš¡",title:"Voert ook opdrachten uit",text:"Niet alleen antwoorden geven — de AI kan acties uitvoeren: orders aanmaken, mails versturen, data bijwerken."},{icon:"👥",title:"Per team en rol instelbaar",text:"Elke afdeling ziet alleen wat relevant en toegestaan is. Finance ziet andere data dan sales."},{icon:"🔄",title:"Werkt over systemen heen",text:"Eén vraag combineert data uit meerdere bronnen — CRM én ERP én e-mail tegelijk."}].map((N,w)=>e.jsxs("div",{style:{backgroundColor:"#f5f5f5",borderRadius:12,padding:20,display:"flex",gap:14,alignItems:"flex-start"},children:[e.jsx("span",{style:{fontSize:22,flexShrink:0,marginTop:2},children:N.icon}),e.jsxs("div",{children:[e.jsx("h4",{style:{fontSize:14,fontWeight:700,color:"#1a1a1a",marginBottom:4},children:N.title}),e.jsx("p",{style:{fontSize:13,color:"#666",lineHeight:1.55},children:N.text})]})]},w))})]}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:g.map((N,w)=>e.jsx(n4,{imageUrl:m(N.key),fallback:N.fallback,caption:N.caption},w))})]})}),e.jsx(kv,{text:"Zien hoe Cowork werkt in jouw software?",highlight:"30 minuten, geen verkooppraatje.",btnText:"Plan een gratis demo →",to:se("ClaudeCoworkAdvies")}),e.jsx("section",{style:{backgroundColor:"#1a1a1a"},className:"py-[88px]",children:e.jsxs("div",{className:"max-w-[1100px] mx-auto px-6",children:[e.jsxs("div",{className:"grid lg:grid-cols-2 gap-16 items-center mb-14",children:[e.jsxs("div",{children:[e.jsx("p",{style:{color:"#f0a500",fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.12em",marginBottom:12},children:"Skills"}),e.jsx("h2",{style:{fontSize:"clamp(26px, 3.5vw, 40px)",fontWeight:700,lineHeight:1.15,marginBottom:16,color:"#fff"},children:"Wat Cowork concreet doet voor jouw bedrijf."}),e.jsx("p",{style:{color:"rgba(255,255,255,0.55)",marginBottom:16,lineHeight:1.75},children:"Een skill is een vooraf ingerichte werkinstructie voor Cowork. Vergelijk het met een ervaren medewerker die precies weet hoe iets bij jullie werkt — welke toon, welke stappen, welke systemen."}),e.jsx("p",{style:{color:"rgba(255,255,255,0.55)",marginBottom:24,lineHeight:1.75},children:"Wij bouwen die skills op maat voor jouw processen. Jouw medewerkers hoeven alleen maar te vragen."}),e.jsx(de,{to:se("ClaudeCoworkSkillsConnectors"),style:{backgroundColor:"#f0a500",color:"#fff",padding:"14px 24px",borderRadius:8,fontSize:15,fontWeight:700,textDecoration:"none",display:"inline-flex",alignItems:"center"},className:"hover:opacity-90 transition-opacity",children:"Bekijk alle skills & koppelingen →"})]}),e.jsx("div",{className:"grid grid-cols-2 gap-3.5",children:[{icon:"📄",title:"Offerte skill",text:"Haalt klantdata op uit Exact en stelt een conceptofferte op in jullie huisstijl. Klaar voor review in 3 minuten."},{icon:"📬",title:"Follow-up skill",text:"Checkt dagelijks welke offertes of leads te lang stil liggen en stelt een gepersonaliseerd bericht op."},{icon:"📊",title:"Rapportage skill",text:"Haalt cijfers op uit meerdere systemen en genereert een overzicht klaar voor de directie."},{icon:"🗂ï¸",title:"Onboarding skill",text:"Stelt een volledig onboardingplan op voor nieuwe medewerkers op basis van functie en team."}].map((N,w)=>e.jsxs("div",{style:{background:"rgba(255,255,255,0.05)",border:"1px solid rgba(255,255,255,0.08)",borderRadius:12,padding:18,display:"flex",gap:12,alignItems:"flex-start"},children:[e.jsx("span",{style:{fontSize:20,flexShrink:0,marginTop:2},children:N.icon}),e.jsxs("div",{children:[e.jsx("h4",{style:{fontSize:13,fontWeight:700,color:"#fff",marginBottom:3},children:N.title}),e.jsx("p",{style:{fontSize:12,color:"rgba(255,255,255,0.45)",lineHeight:1.5},children:N.text})]})]},w))})]}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:y.map((N,w)=>e.jsx(n4,{imageUrl:m(N.key),fallback:N.fallback,caption:N.caption,darkMode:!0},w))})]})}),e.jsx("section",{style:{backgroundColor:"#f5f5f5"},className:"py-[88px]",children:e.jsxs("div",{className:"max-w-[1100px] mx-auto px-6",children:[e.jsxs("div",{style:{textAlign:"center",maxWidth:600,margin:"0 auto 40px"},children:[e.jsx("p",{style:{color:"#f0a500",fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.12em",marginBottom:12},children:"Voorbeelden per rol"}),e.jsx("h2",{style:{fontSize:"clamp(26px, 3.5vw, 40px)",fontWeight:700,lineHeight:1.15,color:"#1a1a1a",marginBottom:12},children:"Wat kun je vragen? Per afdeling."}),e.jsx("p",{style:{color:"#666",fontSize:16},children:"Dit zijn vragen die jouw medewerkers straks gewoon kunnen stellen — in hun eigen woorden, in Cowork."})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-5",children:[{icon:"💼",name:"Salesmedewerker",sub:"CRM, offertes, klantcontact",questions:["Wat weet ik al over klant De Vries BV voordat ik bel?","Welke klanten heb ik al 3 maanden niet gesproken?","Maak een offerte op basis van ons laatste gesprek.","Welke offertes staan al meer dan 2 weken open?"]},{icon:"📦",name:"Logistiek medewerker",sub:"Orders, planning, leveringen",questions:["Welke orders worden morgen niet op tijd geleverd?","Pas de levertijd van order #4421 aan naar vrijdag.","Stuur een update naar de klant van order #4421.","Wat is de huidige voorraadstatus van artikel X?"]},{icon:"💰",name:"Finance / controller",sub:"Facturatie, omzet, cashflow",questions:["Wat is onze omzet dit kwartaal versus vorig jaar?","Welke facturen staan langer dan 60 dagen open?","Maak een cashflow-overzicht voor de directie.","Welke klanten betalen structureel te laat?"]},{icon:"👤",name:"HR-medewerker",sub:"Personeel, verlof, onboarding",questions:["Welke medewerkers hebben hun evaluatie nog niet gehad?","Stel een onboardingplan op voor de nieuwe medewerker.","Hoeveel verlofuren heeft team Noord nog over?","Wie heeft er volgende week vrij en wie valt er in?"]}].map((N,w)=>e.jsxs("div",{style:{background:"#fff",border:"1px solid #e8e8e8",borderRadius:14,padding:28},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:14,marginBottom:20},children:[e.jsx("div",{style:{width:44,height:44,backgroundColor:"#fef3d0",borderRadius:10,display:"flex",alignItems:"center",justifyContent:"center",fontSize:20,flexShrink:0},children:N.icon}),e.jsxs("div",{children:[e.jsx("div",{style:{fontSize:16,fontWeight:700,color:"#1a1a1a"},children:N.name}),e.jsx("div",{style:{fontSize:12,color:"#999"},children:N.sub})]})]}),e.jsx("div",{className:"flex flex-col gap-2",children:N.questions.map((k,A)=>e.jsxs("div",{style:{backgroundColor:"#f5f5f5",borderRadius:8,padding:"10px 14px 10px 28px",fontSize:13.5,color:"#444",lineHeight:1.5,fontStyle:"italic",position:"relative"},children:[e.jsx("span",{style:{position:"absolute",left:11,top:9,fontSize:16,color:"#f0a500",fontStyle:"normal",fontWeight:700,lineHeight:1},children:'"'}),k]},A))})]},w))})]})}),e.jsx(dee,{}),e.jsx(kv,{text:"Klaar om dit te zien in jouw eigen CRM en boekhoudpakket?",highlight:"Gratis demo, 30 minuten.",btnText:"Plan een demo →",to:se("ClaudeCoworkAdvies")}),e.jsx("section",{className:"py-[88px]",children:e.jsxs("div",{className:"max-w-[1100px] mx-auto px-6",children:[e.jsxs("div",{style:{textAlign:"center",maxWidth:600,margin:"0 auto 56px"},children:[e.jsx("p",{style:{color:"#f0a500",fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.12em",marginBottom:12},children:"Hoe werkt het?"}),e.jsx("h2",{style:{fontSize:"clamp(26px, 3.5vw, 40px)",fontWeight:700,lineHeight:1.15,color:"#1a1a1a",marginBottom:12},children:"Van eerste gesprek tot werkende Cowork-omgeving."}),e.jsx("p",{style:{color:"#666",fontSize:16},children:"48-7 neemt het volledige traject op zich — van intake tot oplevering. Jouw team hoeft alleen maar te werken."})]}),e.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-5 gap-7",children:[{nr:"01",day:"Dag 1",title:"Intake & scan",body:"We inventariseren processen, tools en doelen. Je krijgt direct eerlijk advies over wat Cowork oplevert.",active:!0},{nr:"02",day:"Dag 2–3",title:"Koppelen",body:"We verbinden Cowork met Exact, je CRM, mailbox en andere tools via bewezen koppelingen.",active:!0},{nr:"03",day:"Dag 3–4",title:"Skills bouwen",body:"We bouwen de skills op maat: ingesteld op jouw branche, processen, tone of voice en workflows.",active:!0},{nr:"04",day:"Dag 5",title:"Live & onboarding",body:"Jouw team gaat aan de slag. We begeleiden de eerste weken zodat adoptie soepel verloopt.",active:!0},{nr:"↺",day:"Optioneel",title:"Service abonnement",body:"Maandelijkse check-ins, updates en nieuwe koppelingen via ons service abonnement — geen verplichting.",active:!1}].map((N,w)=>e.jsxs("div",{style:{textAlign:"center",position:"relative",zIndex:1},children:[e.jsx("div",{className:"font-bebas",style:{width:64,height:64,borderRadius:"50%",background:N.active?"#f0a500":"#fff",border:N.active?"2px solid #f0a500":"2px solid #e8e8e8",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto 16px",fontSize:22,color:N.active?"#fff":"#999",boxShadow:N.active?"0 4px 16px rgba(240,165,0,0.3)":"none"},children:N.nr}),e.jsx("p",{style:{fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",color:"#f0a500",marginBottom:6},children:N.day}),e.jsx("h4",{style:{fontSize:15,fontWeight:700,color:"#1a1a1a",marginBottom:6},children:N.title}),e.jsx("p",{style:{fontSize:13,color:"#666",lineHeight:1.55},children:N.body})]},w))})]})}),e.jsx(mee,{}),e.jsx(kv,{text:"Dit herken je?",highlight:"Bekijk wat een setup kost en wat je ervoor terugkrijgt.",btnText:"Bekijk prijzen ↓",onClick:()=>{var N;return(N=document.getElementById("pricing"))==null?void 0:N.scrollIntoView({behavior:"smooth"})}}),e.jsx(xee,{}),e.jsx("section",{style:{backgroundColor:"#f5f5f5"},className:"py-[88px]",children:e.jsx("div",{className:"max-w-[1100px] mx-auto px-6",children:e.jsxs("div",{className:"grid lg:grid-cols-2 gap-16 items-start",children:[e.jsxs("div",{children:[e.jsx("p",{style:{color:"#f0a500",fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.12em",marginBottom:14},children:"Waarom 48-7?"}),e.jsx("h2",{style:{fontSize:"clamp(26px, 3.5vw, 40px)",fontWeight:700,lineHeight:1.15,color:"#1a1a1a",marginBottom:32},children:"Eerste Claude Cowork-specialist in Nederland."}),e.jsx("div",{className:"flex flex-col gap-6",children:[{icon:e.jsx(ru,{className:"w-5 h-5",style:{stroke:"#f0a500",fill:"none"}}),title:"Eerste in Nederland",text:"48-7 is het eerste bureau dat Claude Cowork configureert als digitale medewerker voor het Nederlandse MKB."},{icon:e.jsx(mn,{className:"w-5 h-5",style:{stroke:"#f0a500",fill:"none"}}),title:"Resultaat in dagen",text:"Geen IT-projecten van zes maanden. Doorgaans live binnen een week na de intake."},{icon:e.jsx(Tr,{className:"w-5 h-5",style:{stroke:"#f0a500",fill:"none"}}),title:"Jouw team merkt niets",text:"Medewerkers werken gewoon in Cowork — hun vertrouwde omgeving. Geen nieuw systeem, geen training verplicht, geen weerstand op de werkvloer."}].map((N,w)=>e.jsxs("div",{className:"flex gap-4",children:[e.jsx("div",{style:{width:52,height:52,borderRadius:"50%",backgroundColor:"#fef3d0",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:N.icon}),e.jsxs("div",{children:[e.jsx("h4",{style:{fontSize:16,fontWeight:700,marginBottom:4,color:"#1a1a1a"},children:N.title}),e.jsx("p",{style:{color:"#666",fontSize:15,lineHeight:1.6},children:N.text})]})]},w))})]}),e.jsxs("div",{style:{backgroundColor:"#1a1a1a",borderRadius:16,padding:32},children:[e.jsx("p",{style:{fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",color:"#f0a500",marginBottom:10},children:"Technologie"}),e.jsx("h3",{style:{color:"#fff",fontSize:18,marginBottom:12,lineHeight:1.4,fontWeight:700},children:"Gebouwd op Anthropic Claude — de meest betrouwbare enterprise AI ter wereld."}),e.jsx("p",{style:{color:"rgba(255,255,255,0.55)",fontSize:14,lineHeight:1.7},children:"Claude is de AI van Anthropic, opgericht door voormalig OpenAI-onderzoekers met veiligheid als kernprincipe. GDPR-compliant. Jouw data wordt nooit gebruikt voor AI-training."}),e.jsx("div",{className:"grid grid-cols-2 gap-2.5 mt-5",children:[{val:"GDPR",label:"EU-dataverwerking"},{val:"0%",label:"Data in trainingsmodellen"},{val:"SOC2",label:"Gecertificeerde beveiliging"},{val:"F500",label:"Enterprise-bewezen"}].map((N,w)=>e.jsxs("div",{style:{background:"rgba(255,255,255,0.06)",borderRadius:10,padding:14},children:[e.jsx("strong",{className:"font-bebas",style:{display:"block",fontSize:26,color:"#f0a500",lineHeight:1},children:N.val}),e.jsx("span",{style:{fontSize:12,color:"rgba(255,255,255,0.4)",marginTop:3,display:"block"},children:N.label})]},w))})]})]})})}),e.jsx("section",{style:{backgroundColor:"#f5f5f5",borderTop:"1px solid #e8e8e8"},className:"py-[88px]",children:e.jsx("div",{className:"max-w-[1100px] mx-auto px-6",children:e.jsxs("div",{className:"grid lg:grid-cols-2 gap-16 items-center",children:[e.jsxs("div",{children:[e.jsx("p",{style:{color:"#f0a500",fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.12em",marginBottom:14},children:"Gratis gids"}),e.jsx("h2",{style:{fontSize:"clamp(26px, 3.5vw, 40px)",fontWeight:700,lineHeight:1.15,color:"#1a1a1a",marginBottom:14},children:"De Complete Gids voor Claude Cowork in het MKB."}),e.jsx("p",{style:{color:"#666",marginBottom:24,lineHeight:1.75},children:"15 pagina's praktische kennis: hoe je Claude Cowork inricht, welke koppelingen het meeste opleveren en hoe je draagvlak creëert bij je team."}),e.jsx("div",{className:"flex flex-col gap-2",children:[{nr:"01",text:"Wat is Claude Cowork en wat niet"},{nr:"02",text:"De 5 processen die je als eerste automatiseert"},{nr:"03",text:"Koppelingen die het meeste opleveren per branche"},{nr:"04",text:"Hoe je draagvlak creëert bij je team"},{nr:"05",text:"Kosten, ROI en terugverdientijd"}].map((N,w)=>e.jsxs("div",{style:{display:"flex",gap:10,alignItems:"center",fontSize:14,color:"#444"},children:[e.jsx("span",{className:"font-bebas",style:{fontSize:16,color:"#f0a500",minWidth:24},children:N.nr}),N.text]},w))})]}),e.jsx("div",{style:{background:"#fff",borderRadius:16,padding:32,border:"1px solid #e8e8e8"},children:s?e.jsxs("div",{style:{textAlign:"center",padding:"32px 0"},children:[e.jsx("div",{style:{fontSize:40,marginBottom:16},children:"✅"}),e.jsx("h3",{style:{fontSize:20,fontWeight:700,marginBottom:8,color:"#1a1a1a"},children:"Aanvraag ontvangen!"}),e.jsx("p",{style:{color:"#666",fontSize:14},children:"We sturen de gids zo snel mogelijk naar je e-mailadres."})]}):e.jsxs("form",{onSubmit:v,children:[e.jsx("h3",{style:{fontSize:20,fontWeight:700,marginBottom:6,color:"#1a1a1a"},children:"Download gratis Cowork gids"}),e.jsx("p",{style:{fontSize:14,color:"#666",marginBottom:22},children:"Ontvang de gids direct in je mailbox."}),e.jsx("input",{type:"text",name:"name",autoComplete:"name",placeholder:"Jouw naam",required:!0,value:r.name,onChange:N=>i({...r,name:N.target.value}),style:{width:"100%",padding:"12px 14px",border:"1.5px solid #e8e8e8",borderRadius:8,fontSize:15,fontFamily:"inherit",marginBottom:12,backgroundColor:"#f5f5f5",display:"block",outline:"none"}}),e.jsx("input",{type:"email",name:"email",autoComplete:"email",placeholder:"E-mailadres",required:!0,value:r.email,onChange:N=>i({...r,email:N.target.value}),style:{width:"100%",padding:"12px 14px",border:"1.5px solid #e8e8e8",borderRadius:8,fontSize:15,fontFamily:"inherit",marginBottom:12,backgroundColor:"#f5f5f5",display:"block",outline:"none"}}),e.jsx("input",{type:"text",name:"organization",autoComplete:"organization",placeholder:"Bedrijfsnaam",required:!0,value:r.company,onChange:N=>i({...r,company:N.target.value}),style:{width:"100%",padding:"12px 14px",border:"1.5px solid #e8e8e8",borderRadius:8,fontSize:15,fontFamily:"inherit",marginBottom:12,backgroundColor:"#f5f5f5",display:"block",outline:"none"}}),e.jsx("button",{type:"submit",style:{width:"100%",backgroundColor:"#f0a500",color:"#fff",padding:14,borderRadius:8,fontSize:15,fontWeight:700,border:"none",cursor:"pointer",fontFamily:"inherit"},children:"Stuur mij de gids →"}),e.jsx("p",{style:{fontSize:12,color:"#999",textAlign:"center",marginTop:10},children:"Geen spam. Geen verplichtingen. Gewoon kennis."})]})})]})})}),e.jsx("section",{style:{backgroundColor:"#1a1a1a"},className:"py-[88px]",children:e.jsx("div",{className:"max-w-[1100px] mx-auto px-6",children:e.jsxs("div",{className:"grid lg:grid-cols-2 gap-16 items-center",children:[e.jsxs("div",{children:[e.jsx("p",{style:{color:"#f0a500",fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.12em",marginBottom:14},children:"Gratis kennismaking"}),e.jsx("h2",{style:{fontSize:"clamp(26px, 3.5vw, 40px)",fontWeight:700,lineHeight:1.15,color:"#fff",marginBottom:16},children:"Klaar om Cowork in actie te zien?"}),e.jsx("p",{style:{color:"rgba(255,255,255,0.55)",marginBottom:28,lineHeight:1.75},children:"Plan een demo van 30 minuten. We laten je zien wat Cowork concreet doet voor jouw bedrijf — zonder verkooppraatje, met echte voorbeelden uit jouw branche."}),e.jsxs("div",{className:"flex items-center gap-4 flex-wrap",children:[e.jsx(de,{to:se("ClaudeCoworkAdvies"),style:{backgroundColor:"#f0a500",color:"#fff",padding:"14px 24px",borderRadius:8,fontSize:15,fontWeight:700,textDecoration:"none",display:"inline-flex",alignItems:"center"},className:"hover:opacity-90 transition-opacity",children:"Plan een demo"}),e.jsxs("span",{style:{color:"rgba(255,255,255,0.4)",fontSize:14},children:["Of bel: ",e.jsx("strong",{style:{color:"#fff",marginLeft:6},children:"+31 085-06 01 487"})]})]})]}),e.jsx("div",{style:{background:"rgba(255,255,255,0.06)",border:"1px solid rgba(255,255,255,0.1)",borderRadius:16,padding:32},children:d?e.jsxs("div",{style:{textAlign:"center",padding:"32px 0"},children:[e.jsx("div",{style:{fontSize:40,marginBottom:16},children:"✅"}),e.jsx("h3",{style:{fontSize:20,fontWeight:700,marginBottom:8,color:"#fff"},children:"Aanvraag ontvangen!"}),e.jsx("p",{style:{color:"rgba(255,255,255,0.55)",fontSize:14},children:"We nemen zo snel mogelijk contact met je op."})]}):e.jsxs("form",{onSubmit:x,children:[e.jsx("h3",{style:{color:"#fff",fontSize:19,fontWeight:700,marginBottom:18},children:"Plan een gratis demo"}),e.jsx("input",{type:"text",name:"name",autoComplete:"name",placeholder:"Jouw naam",required:!0,value:o.name,onChange:N=>c({...o,name:N.target.value}),style:j}),e.jsx("input",{type:"email",name:"email",autoComplete:"email",placeholder:"E-mailadres",required:!0,value:o.email,onChange:N=>c({...o,email:N.target.value}),style:j}),e.jsx("input",{type:"text",name:"organization",autoComplete:"organization",placeholder:"Bedrijfsnaam",required:!0,value:o.company,onChange:N=>c({...o,company:N.target.value}),style:j}),e.jsxs("select",{value:o.branche,onChange:N=>c({...o,branche:N.target.value}),style:{...j,color:o.branche?"#fff":"rgba(255,255,255,0.35)"},children:[e.jsx("option",{value:"",disabled:!0,children:"Branche"}),["Zakelijke dienstverlening","Bouw & Installatie","Zorg & Welzijn","Groothandel & Transport","Financiële dienstverlening","Anders"].map(N=>e.jsx("option",{value:N,style:{backgroundColor:"#1a1a1a",color:"#fff"},children:N},N))]}),e.jsx("textarea",{placeholder:"Wat wil je automatiseren? (optioneel)",value:o.bericht,onChange:N=>c({...o,bericht:N.target.value}),style:{...j,minHeight:80,resize:"vertical"}}),e.jsx("button",{type:"submit",style:{width:"100%",backgroundColor:"#f0a500",color:"#fff",padding:14,borderRadius:8,fontSize:15,fontWeight:700,border:"none",cursor:"pointer",fontFamily:"inherit",marginTop:4},children:"Verstuur aanvraag →"})]})})]})})}),e.jsx("section",{className:"py-16",children:e.jsxs("div",{className:"max-w-[1100px] mx-auto px-6",children:[e.jsx("p",{style:{fontSize:12,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",color:"#999",textAlign:"center",marginBottom:24},children:"Meer van 48-7 rondom Claude Cowork"}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[{icon:"💻",title:"Claude Code Training",text:"Ontdek de geheimen van Claude Code in een training of 1:1 sessie voor jouw development team.",link:se("ClaudeCoworkTraining"),linkText:"Bekijk training →"},{icon:"🔌",title:"Skills & Connectors",text:"Breid Cowork uit met kant-en-klare skills en software-koppelingen. Vanaf gratis.",link:se("ClaudeCoworkSkillsConnectors"),linkText:"Naar de marketplace →"},{icon:"💡",title:"Claude Cowork Advies",text:"Weet je niet waar je moet beginnen? 48-7 brengt de kansen voor jouw team in kaart.",link:se("ClaudeCoworkAdvies"),linkText:"Meer over advies →"}].map((N,w)=>e.jsxs("div",{style:{border:"1px solid #e8e8e8",borderRadius:12,padding:24,display:"flex",gap:16,alignItems:"flex-start",transition:"box-shadow 0.2s, transform 0.2s"},className:"hover:shadow-lg hover:-translate-y-0.5 transition-all",children:[e.jsx("div",{style:{width:40,height:40,borderRadius:"50%",backgroundColor:"#fef3d0",display:"flex",alignItems:"center",justifyContent:"center",fontSize:18,flexShrink:0},children:N.icon}),e.jsxs("div",{children:[e.jsx("h4",{style:{fontSize:16,fontWeight:700,marginBottom:4,color:"#1a1a1a"},children:N.title}),e.jsx("p",{style:{fontSize:13,color:"#666",lineHeight:1.55,marginBottom:10},children:N.text}),e.jsx(de,{to:N.link,style:{fontSize:13,fontWeight:700,color:"#f0a500"},className:"hover:underline",children:N.linkText})]})]},w))})]})}),e.jsx(M6,{})]})}const jee=[{title:"Workflow automatisering",desc:"Welke processen zijn geschikt voor Claude?"},{title:"Team onboarding",desc:"Hoe introduceer je Claude in je team?"},{title:"Tool integraties",desc:"Welke connectors passen bij jouw stack?"},{title:"Governance & beleid",desc:"Veilig en verantwoord AI gebruik."},{title:"ROI berekening",desc:"Wat levert Claude jouw organisatie op?"},{title:"Maatwerk traject",desc:"Een aanpak die past bij jouw situatie."}];function wee(){const[t,n]=D.useState({name:"",email:"",phone:"",company:"",question:""}),[r,i]=D.useState(!1),[s,a]=D.useState(!1),o=async c=>{c.preventDefault(),a(!0),await ce.functions.invoke("sendContactForm",{name:t.name,email:t.email,phone:t.phone,company:t.company,subject:"Claude Cowork Advies",message:t.question}),a(!1),i(!0)};return e.jsxs("div",{className:"pt-20 min-h-screen bg-white",children:[e.jsx("section",{className:"bg-purple-50 border-b border-purple-100 py-16",children:e.jsx("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},children:[e.jsx(de,{to:se("ClaudeCowork"),className:"inline-flex items-center gap-2 text-sm text-purple-600 font-medium mb-6 hover:underline",children:"↠Claude Cowork"}),e.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-purple-100 rounded-full text-purple-700 text-sm font-semibold mb-4",children:[e.jsx(Wi,{className:"w-4 h-4"}),"Advies"]}),e.jsx("h1",{className:"text-4xl sm:text-5xl font-bold text-gray-900 mb-4",children:"Persoonlijk Claude Advies"}),e.jsx("p",{className:"text-xl text-gray-600 max-w-2xl",children:"Wil je weten hoe Claude Cowork het beste past binnen jouw organisatie? Onze experts denken graag met je mee."})]})})}),e.jsx("section",{className:"py-16",children:e.jsx("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"grid lg:grid-cols-2 gap-16",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Waar kunnen we bij helpen?"}),e.jsx("div",{className:"grid grid-cols-2 gap-4",children:jee.map((c,d)=>e.jsxs(Z.div,{initial:{opacity:0,y:10},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:d*.05},className:"bg-gray-50 rounded-xl p-4 border border-gray-100",children:[e.jsx(gt,{className:"w-5 h-5 text-purple-500 mb-2"}),e.jsx("p",{className:"font-semibold text-gray-900 text-sm",children:c.title}),e.jsx("p",{className:"text-xs text-gray-500 mt-1",children:c.desc})]},d))})]}),e.jsx("div",{children:r?e.jsxs("div",{className:"bg-green-50 border border-green-200 rounded-2xl p-8 text-center",children:[e.jsx(gt,{className:"w-12 h-12 text-green-500 mx-auto mb-4"}),e.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-2",children:"Aanvraag ontvangen!"}),e.jsx("p",{className:"text-gray-600",children:"We nemen binnen 1 werkdag contact met je op."})]}):e.jsxs("form",{onSubmit:o,className:"bg-white rounded-2xl border border-gray-200 p-8 shadow-sm space-y-5",children:[e.jsxs("h2",{className:"text-xl font-bold text-gray-900 flex items-center gap-2",children:[e.jsx(Ho,{className:"w-5 h-5 text-purple-500"}),"Advies aanvragen"]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Naam *"}),e.jsx("input",{required:!0,value:t.name,onChange:c=>n({...t,name:c.target.value}),className:"w-full px-4 py-3 border border-gray-200 rounded-xl text-sm focus:outline-none focus:border-purple-400",placeholder:"Jouw naam"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"E-mail *"}),e.jsx("input",{required:!0,type:"email",value:t.email,onChange:c=>n({...t,email:c.target.value}),className:"w-full px-4 py-3 border border-gray-200 rounded-xl text-sm focus:outline-none focus:border-purple-400",placeholder:"jouw@email.nl"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Telefoonnummer"}),e.jsx("input",{type:"tel",value:t.phone,onChange:c=>n({...t,phone:c.target.value}),className:"w-full px-4 py-3 border border-gray-200 rounded-xl text-sm focus:outline-none focus:border-purple-400",placeholder:"+31 6 12345678"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Bedrijf"}),e.jsx("input",{value:t.company,onChange:c=>n({...t,company:c.target.value}),className:"w-full px-4 py-3 border border-gray-200 rounded-xl text-sm focus:outline-none focus:border-purple-400",placeholder:"Bedrijfsnaam"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Jouw vraag *"}),e.jsx("textarea",{required:!0,value:t.question,onChange:c=>n({...t,question:c.target.value}),rows:4,className:"w-full px-4 py-3 border border-gray-200 rounded-xl text-sm focus:outline-none focus:border-purple-400 resize-none",placeholder:"Vertel ons waar je mee bezig bent en waar je advies over wilt..."})]}),e.jsx("button",{type:"submit",disabled:s,className:"w-full py-3 bg-purple-600 text-white font-semibold rounded-xl hover:bg-purple-700 transition-colors disabled:opacity-60 flex items-center justify-center gap-2",children:s?"Versturen...":e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Verstuur aanvraag"}),e.jsx($e,{className:"w-4 h-4"})]})})]})})]})})})]})}const Nee=[{type:"connector",name:"Google Workspace",capability:"Documenten & e-mail",description:"Verbind Claude met Google Docs, Gmail, Drive en Sheets. Genereer content, verwerk e-mails en analyseer data direct vanuit je Workspace.",price:"Inbegrepen",priceNote:"",badge:"popular",sector:"Algemeen",features:["Docs samenvatten & herschrijven","E-mails opstellen en beantwoorden","Spreadsheet data analyseren","Drive-bestanden doorzoeken"]},{type:"connector",name:"Slack",capability:"Teamsamenwerking",description:"Claude als teamassistent in Slack. Beantwoord vragen, vat threads samen en automatiseer notificaties in je kanalen.",price:"Inbegrepen",priceNote:"",badge:"popular",sector:"Communicatie",features:["Thread samenvattingen","Vragen beantwoorden in kanalen","Automatische notificaties","Meeting-aantekeningen verwerken"]},{type:"connector",name:"HubSpot CRM",capability:"Verkoop & marketing",description:"Laat Claude werken met je CRM-data. Genereer follow-up e-mails, analyseer deals en schrijf marketingcontent op basis van contactdata.",price:"Op aanvraag",priceNote:"",badge:"new",sector:"Sales & Marketing",features:["Follow-up e-mails genereren","Deal-analyses schrijven","Contactdata verrijken","Marketing copy op maat"]},{type:"connector",name:"Microsoft 365",capability:"Office & Teams",description:"Integreer Claude met Word, Excel, Outlook en Teams. Schrijf rapporten, analyseer data en stel e-mails op vanuit je Microsoft-omgeving.",price:"Op aanvraag",priceNote:"",badge:null,sector:"Algemeen",features:["Word-documenten genereren","Excel-data analyseren","Outlook e-mails opstellen","Teams-berichten samenvatten"]},{type:"connector",name:"Notion",capability:"Kennisbeheer",description:"Verbind je Notion workspace met Claude. Doorzoek pagina's, genereer content en houd kennisbanken actueel met AI-ondersteuning.",price:"Inbegrepen",priceNote:"",badge:null,sector:"Productiviteit",features:["Pagina's doorzoeken & samenvatten","Nieuwe pagina's genereren","Databases bijwerken","Meetingnotities verwerken"]},{type:"connector",name:"Zapier / Make",capability:"Workflow automatisering",description:"Verbind Claude met honderden apps via Zapier of Make. Automatiseer repetitieve taken zonder te programmeren.",price:"Op aanvraag",priceNote:"",badge:"popular",sector:"Automatisering",features:["500+ app-koppelingen","Triggers en acties instellen","Data transformeren met AI","Workflows testen & monitoren"]},{type:"skill",name:"Prompt Engineering",capability:"Communicatie met AI",description:"Leer hoe je Claude de juiste instructies geeft voor consistente, kwalitatieve output. Van basis tot geavanceerde technieken.",price:"Gratis",priceNote:"",badge:"free",sector:"Basis",features:["Structuur van een goede prompt","Rol, context & format","Chain-of-thought technieken","Itereren en verbeteren"]},{type:"skill",name:"Teksten & Content",capability:"Schrijven & communiceren",description:"Gebruik Claude als schrijfassistent voor blogs, e-mails, rapporten en sociale media. Inclusief tone-of-voice instructies.",price:"Gratis",priceNote:"",badge:"free",sector:"Marketing & Communicatie",features:["Blogartikelen schrijven","E-mails en brieven opstellen","Social media content","Rapporten & samenvattingen"]},{type:"skill",name:"Data Analyse",capability:"Inzichten uit data",description:"Laat Claude data interpreteren, patronen ontdekken en rapportages schrijven op basis van CSV's, tabellen of ruwe cijfers.",price:"Gratis",priceNote:"",badge:"popular",sector:"Analyse",features:["CSV en tabel analyse","Trends en patronen signaleren","Rapportages genereren","Aanbevelingen formuleren"]},{type:"skill",name:"Klantenservice Scripts",capability:"Support & klantcontact",description:"Bouw een bibliotheek van antwoorden en scripts op voor je klantenservice team, afgestemd op jouw tone-of-voice.",price:"Op aanvraag",priceNote:"",badge:"new",sector:"Customer Service",features:["FAQ-bibliotheek opbouwen","Escalatiescripts","Tone-of-voice kalibreren","Antwoorden itereren"]},{type:"skill",name:"Vergaderingen & Notulen",capability:"Productiviteit",description:"Verwerk vergadernotities en transcripties automatisch naar gestructureerde notulen, actiepunten en samenvattingen.",price:"Gratis",priceNote:"",badge:"free",sector:"Productiviteit",features:["Transcriptie verwerken","Actiepunten extraheren","Samenvattingen genereren","Agendapunten voorbereiden"]},{type:"skill",name:"Juridisch & Compliance",capability:"Documenten & beleid",description:"Laat Claude helpen bij het doornemen, samenvatten en opstellen van contracten, beleidsdocumenten en complianceteksten.",price:"Op aanvraag",priceNote:"",badge:null,sector:"Juridisch",features:["Contracten samenvatten","Clausules uitleggen","Beleidsdocumenten opstellen","Risico's signaleren"]}],r4={free:{label:"Gratis",className:"bg-green-100 text-green-700"},paid:{label:"Betaald",className:"bg-amber-100 text-amber-700"},popular:{label:"Populair",className:"bg-orange-100 text-orange-700"},new:{label:"Nieuw",className:"bg-blue-100 text-blue-700"}};function kee(){const[t,n]=D.useState(""),[r,i]=D.useState("all"),[s,a]=D.useState("all"),[o,c]=D.useState(null),{data:d=[]}=Fe({queryKey:["cowork-skills"],queryFn:()=>ce.entities.CoworkSkill.filter({active:!0})}),{data:h=[]}=Fe({queryKey:["cowork-connectors"],queryFn:()=>ce.entities.CoworkConnector.filter({active:!0})}),f=[...h.map(y=>({...y,type:"connector"})),...d.map(y=>({...y,type:"skill"}))].length>0?[...h.map(y=>({...y,type:"connector"})),...d.map(y=>({...y,type:"skill"}))]:Nee,m=["all",...Array.from(new Set(f.map(y=>y.sector)))],p=f.filter(y=>{const j=r==="all"||y.type===r,v=s==="all"||y.sector===s,x=!t||y.name.toLowerCase().includes(t.toLowerCase())||y.description.toLowerCase().includes(t.toLowerCase());return j&&v&&x}),g=[{icon:e.jsx(pn,{className:"w-5 h-5 text-amber-500"}),title:"Wat is Claude Cowork?",desc:"Geen chatbot, maar een digitale medewerker die zelfstandig werkt in jouw software.",link:se("ClaudeCowork"),linkLabel:"Lees meer →"},{icon:e.jsx(Su,{className:"w-5 h-5 text-amber-500"}),title:"Hoe werken Skills & Connectors?",desc:"Skills geven Claude branchekennis. Connectors koppelen Claude aan jouw software.",link:se("ClaudeCowork"),linkLabel:"Bekijk uitleg →"},{icon:e.jsx(x8,{className:"w-5 h-5 text-amber-500"}),title:"Hoe 48-7 helpt met Cowork",desc:"Van intake tot live in één week. 48-7 configureert, koppelt en beheert Cowork voor jouw bedrijf.",link:se("ClaudeCoworkAdvies"),linkLabel:"Hoe wij werken →"}];return e.jsxs("div",{className:"pt-20 min-h-screen bg-white",children:[e.jsx("section",{className:"bg-[#f5f0e8] py-14",children:e.jsx("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},children:[e.jsx("div",{className:"flex items-center gap-2 mb-8",children:e.jsx("img",{src:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/695a3d411fa079edce588856/a37e4e72c_66af996a9e55f1ee29f117ab1.png",alt:"Claude",className:"h-8"})}),e.jsx("h1",{className:"text-4xl sm:text-5xl font-bold text-gray-900 mb-1 leading-tight",children:"Skills & Connectors"}),e.jsx("h2",{className:"text-4xl sm:text-5xl font-bold text-[#D4731C] mb-6 leading-tight",children:"voor Claude Cowork."}),e.jsx("p",{className:"text-lg text-gray-600 max-w-md mb-10",children:"Breid jouw Cowork-configuratie uit met kant-en-klare skills, software-koppelingen en branche-bundles. Gratis te starten, op maat te schalen."}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4",children:g.map((y,j)=>e.jsxs("div",{className:"bg-white rounded-2xl p-5 shadow-sm border border-gray-100",children:[e.jsx("div",{className:"w-10 h-10 bg-amber-50 rounded-full flex items-center justify-center mb-3",children:y.icon}),e.jsx("h3",{className:"font-bold text-gray-900 text-sm mb-1",children:y.title}),e.jsx("p",{className:"text-xs text-gray-500 leading-relaxed mb-3",children:y.desc}),e.jsx(de,{to:y.link,className:"text-xs font-semibold text-[#D4731C] hover:underline",children:y.linkLabel})]},j))})]})})}),e.jsx("section",{className:"py-12",children:e.jsx("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"flex flex-col lg:flex-row gap-10",children:[e.jsx("aside",{className:"lg:w-56 flex-shrink-0",children:e.jsxs("div",{className:"sticky top-24 space-y-6",children:[e.jsxs("div",{className:"relative",children:[e.jsx(mi,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-400"}),e.jsx("input",{type:"text",value:t,onChange:y=>n(y.target.value),placeholder:"Zoeken...",className:"w-full pl-9 pr-4 py-2.5 border border-gray-200 rounded-lg text-sm bg-gray-50 focus:outline-none focus:border-amber-400"})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs font-bold uppercase tracking-wider text-gray-400 mb-2",children:"Type"}),[{key:"all",label:"Alles"},{key:"connector",label:"Connectors"},{key:"skill",label:"Skills"}].map(y=>e.jsxs("button",{onClick:()=>i(y.key),className:`block w-full text-left px-3 py-2 rounded-lg text-sm transition-colors ${r===y.key?"bg-amber-100 text-gray-900 font-semibold":"text-gray-600 hover:bg-gray-100"}`,children:[y.label,e.jsx("span",{className:"float-right text-xs text-gray-400",children:y.key==="all"?f.length:f.filter(j=>j.type===y.key).length})]},y.key))]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs font-bold uppercase tracking-wider text-gray-400 mb-2",children:"Sector"}),m.map(y=>e.jsx("button",{onClick:()=>a(y),className:`block w-full text-left px-3 py-2 rounded-lg text-sm transition-colors ${s===y?"bg-amber-100 text-gray-900 font-semibold":"text-gray-600 hover:bg-gray-100"}`,children:y==="all"?"Alle sectoren":y},y))]})]})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("div",{className:"flex items-center justify-between mb-6",children:e.jsxs("p",{className:"text-sm text-gray-500",children:[e.jsx("strong",{className:"text-gray-900",children:p.length})," items gevonden"]})}),e.jsx("div",{className:"grid sm:grid-cols-2 xl:grid-cols-3 gap-5",children:p.map((y,j)=>{var v,x;return e.jsxs(Z.div,{initial:{opacity:0,y:10},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:j*.03},onClick:()=>c(y),className:`bg-white border rounded-xl p-5 flex flex-col cursor-pointer hover:shadow-md transition-all ${y.type==="connector"?"border-t-4 border-t-amber-400 border-gray-200":"border-t-4 border-t-gray-800 border-gray-200"}`,children:[e.jsxs("div",{className:"flex items-start justify-between mb-3",children:[e.jsx("div",{className:`w-11 h-11 rounded-xl flex items-center justify-center text-xs font-bold ${y.type==="connector"?"bg-amber-50 text-amber-600":"bg-gray-100 text-gray-600"}`,children:y.name.slice(0,2).toUpperCase()}),e.jsx("div",{className:"flex flex-col items-end gap-1",children:y.badge&&e.jsx("span",{className:`text-[10px] font-bold uppercase px-2 py-0.5 rounded-full ${(v=r4[y.badge])==null?void 0:v.className}`,children:(x=r4[y.badge])==null?void 0:x.label})})]}),e.jsx("p",{className:"text-xs font-semibold text-amber-500 mb-1",children:y.capability}),e.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:y.name}),e.jsx("p",{className:"text-xs text-gray-500 leading-relaxed flex-1 mb-4",children:y.description}),e.jsxs("div",{className:"flex items-center justify-between pt-3 border-t border-gray-100",children:[e.jsx("span",{className:"font-bold text-sm text-gray-900",children:y.price}),e.jsx("span",{className:`text-[10px] font-bold uppercase tracking-wide ${y.type==="connector"?"text-amber-500":"text-gray-500"}`,children:y.type==="connector"?"Connector":"Skill"})]})]},j)})})]})]})})}),e.jsx(M6,{}),o&&e.jsx("div",{className:"fixed inset-0 bg-black/50 z-50 flex items-start justify-center p-4 sm:p-8 overflow-y-auto",onClick:()=>c(null),children:e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},onClick:y=>y.stopPropagation(),className:"bg-white rounded-2xl max-w-xl w-full my-auto overflow-hidden shadow-2xl",children:[e.jsxs("div",{className:"bg-gray-900 p-6 flex items-start gap-4",children:[e.jsx("div",{className:"w-14 h-14 bg-gray-700 rounded-xl flex items-center justify-center text-sm font-bold text-gray-300 flex-shrink-0",children:o.name.slice(0,2).toUpperCase()}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"text-xs font-bold text-amber-400 uppercase tracking-wider mb-1",children:o.type==="connector"?"Connector":"Skill"}),e.jsx("h2",{className:"text-xl font-bold text-white",children:o.name}),e.jsx("p",{className:"text-sm text-gray-400",children:o.capability})]}),e.jsx("button",{onClick:()=>c(null),className:"w-8 h-8 bg-white/10 rounded-full flex items-center justify-center text-white hover:bg-white/20 transition-colors flex-shrink-0",children:e.jsx(Ht,{className:"w-4 h-4"})})]}),e.jsxs("div",{className:"p-6 space-y-6",children:[e.jsx("p",{className:"text-gray-700 leading-relaxed",children:o.description}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs font-bold uppercase tracking-wider text-gray-400 mb-3",children:"Wat je ermee kunt"}),e.jsx("ul",{className:"space-y-2",children:o.features.map((y,j)=>e.jsxs("li",{className:"flex items-start gap-2 text-sm text-gray-700",children:[e.jsx("span",{className:"w-4 h-4 bg-amber-100 rounded-full flex items-center justify-center flex-shrink-0 mt-0.5",children:e.jsx("span",{className:"w-1.5 h-1.5 bg-amber-500 rounded-full block"})}),y]},j))})]}),e.jsxs("div",{className:"flex items-center justify-between pt-4 border-t border-gray-100",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-xs text-gray-400",children:"Prijs"}),e.jsx("p",{className:"font-bold text-gray-900",children:o.price})]}),e.jsx(de,{to:se("Contact")+`?training=${encodeURIComponent(o.name)}`,className:"px-5 py-2.5 bg-amber-400 text-gray-900 font-semibold rounded-xl hover:bg-amber-300 transition-colors text-sm",onClick:()=>c(null),children:"Aanvragen"})]})]})]})})]})}const _ee=[{title:"Claude Basics voor Teams",duration:"½ dag",audience:"Alle medewerkers",level:"Basis",description:"Leer de fundamenten van werken met Claude: van effectief prompting tot dagelijkse toepassingen.",topics:["Wat is Claude en hoe werkt het?","Prompting technieken","Praktijkoefeningen","Do's & don'ts"]},{title:"Claude Cowork in de Praktijk",duration:"1 dag",audience:"Teams & managers",level:"Gevorderd",description:"Diepgaande training over hoe je Claude integreert in bestaande werkprocessen en workflows automatiseert.",topics:["Workflow automatisering","Koppelingen met tools","Teamprocessen optimaliseren","Cases & templates"]},{title:"Claude voor Leiders",duration:"2 uur",audience:"Management",level:"Leiderschap",description:"Strategisch inzicht in hoe Claude Cowork bijdraagt aan productiviteit en innovatie binnen jouw organisatie.",topics:["AI-strategie bepalen","ROI en KPI's","Change management","Governance & veiligheid"]}];function See(){return e.jsxs("div",{className:"pt-20 min-h-screen bg-white",children:[e.jsx("section",{className:"bg-blue-50 border-b border-blue-100 py-16",children:e.jsx("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},children:[e.jsx(de,{to:se("ClaudeCowork"),className:"inline-flex items-center gap-2 text-sm text-blue-600 font-medium mb-6 hover:underline",children:"↠Claude Cowork"}),e.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-blue-100 rounded-full text-blue-700 text-sm font-semibold mb-4",children:[e.jsx(Ua,{className:"w-4 h-4"}),"Training"]}),e.jsx("h1",{className:"text-4xl sm:text-5xl font-bold text-gray-900 mb-4",children:"Claude Cowork Training"}),e.jsx("p",{className:"text-xl text-gray-600 max-w-2xl",children:"Praktische trainingen die jouw team klaarstomen om effectief samen te werken met Claude."})]})})}),e.jsx("section",{className:"py-16",children:e.jsx("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:_ee.map((t,n)=>e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:n*.1},className:"bg-white rounded-2xl border border-gray-200 p-6 flex flex-col shadow-sm hover:shadow-md transition-shadow",children:[e.jsx("span",{className:"inline-block px-3 py-1 bg-blue-100 text-blue-700 text-xs font-bold rounded-full mb-4 self-start",children:t.level}),e.jsx("h2",{className:"text-lg font-bold text-gray-900 mb-2",children:t.title}),e.jsx("p",{className:"text-sm text-gray-600 mb-4 flex-1",children:t.description}),e.jsxs("div",{className:"flex gap-4 text-xs text-gray-500 mb-4",children:[e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(mn,{className:"w-3 h-3"}),t.duration]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(pn,{className:"w-3 h-3"}),t.audience]})]}),e.jsx("ul",{className:"space-y-1 mb-5",children:t.topics.map((r,i)=>e.jsxs("li",{className:"flex items-start gap-2 text-xs text-gray-600",children:[e.jsx(gt,{className:"w-3.5 h-3.5 text-blue-500 mt-0.5 flex-shrink-0"}),r]},i))}),e.jsx(de,{to:se("Contact")+`?training=${encodeURIComponent(t.title)}`,className:"w-full text-center px-4 py-2.5 bg-gray-900 text-white text-sm font-semibold rounded-xl hover:bg-gray-700 transition-colors",children:"Aanvragen"})]},n))})})})]})}function Aee(){var A,S,E,C;const[t,n]=D.useState({name:"",email:"",phone:"",company:"",subject:"",message:""}),[r,i]=D.useState(!1),[s,a]=D.useState(!1),[o,c]=D.useState({}),[d,h]=D.useState(null),{data:f=[]}=Fe({queryKey:["site-settings"],queryFn:()=>ce.entities.SiteSettings.list()}),m=(A=f.find(B=>B.setting_key==="linkedin_url"))==null?void 0:A.value,p=(S=f.find(B=>B.setting_key==="twitter_url"))==null?void 0:S.value,g=(E=f.find(B=>B.setting_key==="instagram_url"))==null?void 0:E.value,y=(C=f.find(B=>B.setting_key==="youtube_url"))==null?void 0:C.value,j=new URLSearchParams(window.location.search),v=j.get("training"),x=j.get("ref"),N=j.get("level");Ot.useEffect(()=>{v?n(B=>({...B,subject:"training",message:`Ik ben geïnteresseerd in de training: ${v}`})):x==="quiz"&&N&&n(B=>({...B,subject:"consultancy",message:`Ik heb de AI Quiz gedaan en zit in het "${N}" niveau. Ik wil graag meer weten over de mogelijkheden voor mijn bedrijf.`}))},[v,x,N]);const w=()=>{const B={};(!t.name||t.name.trim().length<2)&&(B.name="Naam moet minimaal 2 karakters bevatten");const F=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;if((!t.email||!F.test(t.email))&&(B.email="Voer een geldig e-mailadres in"),t.phone){const I=/^(\+31|0031|0)[1-9][0-9]{8}$/,R=t.phone.replace(/[\s\-\(\)]/g,"");I.test(R)||(B.phone="Voer een geldig Nederlands telefoonnummer in (bijv. 06-12345678)")}return t.subject||(B.subject="Selecteer een onderwerp"),(!t.message||t.message.trim().length<10)&&(B.message="Bericht moet minimaal 10 karakters bevatten"),t.message&&t.message.length>2e3&&(B.message="Bericht mag maximaal 2000 karakters bevatten"),c(B),Object.keys(B).length===0},k=async B=>{if(B.preventDefault(),!!w()){i(!0);try{const{data:F}=await ce.functions.invoke("sendContactForm",t);a(!0)}catch(F){console.error("Error submitting form:",F),h("Er ging iets mis bij het verzenden. Probeer het later opnieuw.")}finally{i(!1)}}};return s?e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-gray-50 to-white",children:e.jsx("div",{className:"max-w-xl mx-auto px-4 sm:px-6 lg:px-8 py-32 text-center",children:e.jsxs(Z.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},children:[e.jsx("div",{className:"w-20 h-20 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-6",children:e.jsx(gt,{className:"w-10 h-10 text-green-600"})}),e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Bericht verzonden!"}),e.jsx("p",{className:"text-xl text-gray-600 mb-8",children:"Bedankt voor je bericht. We nemen binnen 24 uur contact met je op."}),e.jsxs(de,{to:se("Home"),className:"inline-flex items-center gap-2 px-6 py-3 bg-gray-900 text-white font-semibold rounded-xl hover:bg-gray-800 transition-colors",children:["Terug naar home",e.jsx($e,{className:"w-5 h-5"})]})]})})}):e.jsxs("div",{className:"pt-20",children:[e.jsx("section",{className:"py-20 bg-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center max-w-3xl mx-auto mb-16",children:[e.jsx("h1",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-6",children:"Neem contact op"}),e.jsx("p",{className:"text-2xl text-[#9CA3AF]",children:"Benieuwd hoe AI jouw bedrijf kan helpen?"})]}),e.jsxs("div",{className:"grid md:grid-cols-3 gap-6 max-w-4xl mx-auto mb-16",children:[e.jsxs(Z.a,{href:"tel:+31201234567",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:"flex items-center gap-4 p-6 bg-[#F4F4F4] rounded-2xl border border-gray-100 hover:shadow-lg hover:border-[#FAB868] transition-all group",children:[e.jsx("div",{className:"w-14 h-14 bg-[#FAB868] rounded-2xl flex items-center justify-center group-hover:bg-[#E5A04D] transition-colors",children:e.jsx(ry,{className:"w-6 h-6 text-[#0D0D0F]"})}),e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold text-[#0D0D0F]",children:"Bel ons"}),e.jsx("p",{className:"text-[#9CA3AF]",children:"+31 085-06 01 487"})]})]}),e.jsxs(Z.a,{href:"mailto:info@48-7.nl",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"flex items-center gap-4 p-6 bg-[#F4F4F4] rounded-2xl border border-gray-100 hover:shadow-lg hover:border-[#FAB868] transition-all group",children:[e.jsx("div",{className:"w-14 h-14 bg-[#FAB868] rounded-2xl flex items-center justify-center group-hover:bg-[#E5A04D] transition-colors",children:e.jsx(yi,{className:"w-6 h-6 text-[#0D0D0F]"})}),e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold text-[#0D0D0F]",children:"Email ons"}),e.jsx("p",{className:"text-[#9CA3AF]",children:"hallo@48-7.nl"})]})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3},className:"flex items-center gap-4 p-6 bg-[#F4F4F4] rounded-2xl border border-gray-100",children:[e.jsx("div",{className:"w-14 h-14 bg-[#FAB868] rounded-2xl flex items-center justify-center",children:e.jsx(mn,{className:"w-6 h-6 text-[#0D0D0F]"})}),e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold text-[#0D0D0F]",children:"Openingstijden"}),e.jsx("p",{className:"text-[#9CA3AF]",children:"Ma-Vr 9:00 - 18:00"})]})]})]})]})}),e.jsx("section",{className:"py-16",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"grid lg:grid-cols-2 gap-12",children:[e.jsx(Z.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},children:e.jsxs("div",{className:"bg-white rounded-3xl p-8 border-2 border-gray-100 shadow-sm",children:[e.jsx("h2",{className:"text-3xl font-bold text-[#0D0D0F] mb-6",children:"Stuur een bericht"}),d&&e.jsx("div",{className:"mb-4 p-3 bg-red-50 border border-red-200 rounded-lg",children:e.jsx("p",{className:"text-sm text-red-600",children:d})}),e.jsxs("form",{onSubmit:k,className:"space-y-5",children:[e.jsxs("div",{className:"grid sm:grid-cols-2 gap-5",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-[#0D0D0F] mb-1",children:"Naam *"}),e.jsx(me,{required:!0,value:t.name,onChange:B=>{n({...t,name:B.target.value}),o.name&&c({...o,name:null})},placeholder:"Je volledige naam",className:o.name?"border-red-500":""}),o.name&&e.jsx("p",{className:"text-red-500 text-xs mt-1",children:o.name})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Email *"}),e.jsx(me,{required:!0,type:"email",value:t.email,onChange:B=>{n({...t,email:B.target.value}),o.email&&c({...o,email:null})},placeholder:"je@bedrijf.nl",className:o.email?"border-red-500":""}),o.email&&e.jsx("p",{className:"text-red-500 text-xs mt-1",children:o.email})]})]}),e.jsxs("div",{className:"grid sm:grid-cols-2 gap-5",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Telefoon"}),e.jsx(me,{type:"tel",value:t.phone,onChange:B=>{n({...t,phone:B.target.value}),o.phone&&c({...o,phone:null})},placeholder:"+31 6 12345678",className:o.phone?"border-red-500":""}),o.phone&&e.jsx("p",{className:"text-red-500 text-xs mt-1",children:o.phone})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Bedrijf"}),e.jsx(me,{value:t.company,onChange:B=>n({...t,company:B.target.value}),placeholder:"Je bedrijfsnaam"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Onderwerp *"}),e.jsxs(Ji,{value:t.subject,onValueChange:B=>{n({...t,subject:B}),o.subject&&c({...o,subject:null})},children:[e.jsx(wi,{className:o.subject?"border-red-500":"",children:e.jsx(Zi,{placeholder:"Selecteer een onderwerp"})}),e.jsxs(Ni,{children:[e.jsx(St,{value:"consultancy",children:"AI Consultancy"}),e.jsx(St,{value:"development",children:"AI Development"}),e.jsx(St,{value:"training",children:"AI Training"}),e.jsx(St,{value:"support",children:"Development Support"}),e.jsx(St,{value:"other",children:"Anders"})]})]}),o.subject&&e.jsx("p",{className:"text-red-500 text-xs mt-1",children:o.subject})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:["Bericht * ",e.jsxs("span",{className:"text-gray-400 text-xs",children:["(",t.message.length,"/2000)"]})]}),e.jsx(pt,{required:!0,value:t.message,onChange:B=>{n({...t,message:B.target.value}),o.message&&c({...o,message:null})},placeholder:"Vertel ons over je vraag of project...",className:`h-32 ${o.message?"border-red-500":""}`,maxLength:2e3}),o.message&&e.jsx("p",{className:"text-red-500 text-xs mt-1",children:o.message})]}),e.jsx(ae,{type:"submit",disabled:r,className:"w-full py-5 bg-[#0D0D0F] hover:bg-[#1a1a1c] text-white font-semibold rounded-full",children:r?e.jsxs("span",{className:"flex items-center gap-2",children:[e.jsxs("svg",{className:"animate-spin w-5 h-5",viewBox:"0 0 24 24",children:[e.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),e.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),"Verzenden..."]}):e.jsxs("span",{className:"flex items-center gap-2 justify-center",children:[e.jsx(M4,{className:"w-5 h-5"}),"Verstuur bericht"]})})]})]})}),e.jsxs(Z.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},className:"space-y-8",children:[e.jsx(Gf,{variant:"compact"}),e.jsxs("div",{className:"bg-[#FAB868] rounded-3xl p-8",children:[e.jsxs("div",{className:"flex items-center gap-4 mb-4",children:[e.jsx("div",{className:"w-12 h-12 bg-[#0D0D0F] rounded-full flex items-center justify-center",children:e.jsx(At,{className:"w-6 h-6 text-white"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F]",children:"Of doe de AI Quiz"}),e.jsx("p",{className:"text-[#0D0D0F]/70",children:"Ontdek je AI potentieel in 2 minuten"})]})]}),e.jsxs(de,{to:se("AIQuiz"),className:"inline-flex items-center gap-2 px-6 py-3 bg-[#0D0D0F] text-white font-semibold rounded-full hover:bg-[#1a1a1c] transition-all",children:["Start de AI Quiz",e.jsx($e,{className:"w-5 h-5"})]})]}),e.jsxs("div",{className:"bg-white rounded-3xl p-8 border-2 border-gray-100",children:[e.jsx("h3",{className:"text-2xl font-bold text-[#0D0D0F] mb-6",children:"Bezoek ons"}),e.jsx("div",{className:"space-y-4",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-10 h-10 bg-[#F4F4F4] rounded-full flex items-center justify-center flex-shrink-0",children:e.jsx(bl,{className:"w-5 h-5 text-[#0D0D0F]"})}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-[#0D0D0F]",children:"48-7 B.V."}),e.jsx("p",{className:"text-[#9CA3AF]",children:"Euvelgunnerweg 25a"}),e.jsx("p",{className:"text-[#9CA3AF]",children:"9723 CV Groningen"})]})]})}),e.jsx("div",{className:"mt-6 rounded-2xl overflow-hidden h-48 bg-gray-100",children:e.jsx("iframe",{src:"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d2429.2344!2d6.556!3d53.212!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x47b59dd4b1c1c1c1%3A0x1234567890!2sEuvelgunnerweg%2025a%2C%209723%20CV%20Groningen!5e0!3m2!1snl!2snl!4v1705858800000",width:"100%",height:"100%",style:{border:0},allowFullScreen:"",loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",title:"48-7 locatie Groningen"})})]}),(m||p||g||y)&&e.jsxs("div",{className:"bg-white rounded-3xl p-8 border-2 border-gray-100",children:[e.jsx("h3",{className:"text-2xl font-bold text-[#0D0D0F] mb-4",children:"Volg ons"}),e.jsx("p",{className:"text-[#9CA3AF] mb-6",children:"Blijf op de hoogte"}),e.jsxs("div",{className:"flex items-center gap-4",children:[m&&e.jsx("a",{href:m,target:"_blank",rel:"noopener noreferrer",className:"w-12 h-12 bg-[#F4F4F4] rounded-full flex items-center justify-center hover:bg-[#FAB868] transition-colors text-[#0D0D0F]",children:e.jsx(Ws,{className:"w-6 h-6"})}),p&&e.jsx("a",{href:p,target:"_blank",rel:"noopener noreferrer",className:"w-12 h-12 bg-[#F4F4F4] rounded-full flex items-center justify-center hover:bg-[#FAB868] transition-colors text-[#0D0D0F]",children:e.jsx("svg",{className:"w-6 h-6",fill:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})})}),g&&e.jsx("a",{href:g,target:"_blank",rel:"noopener noreferrer",className:"w-12 h-12 bg-[#F4F4F4] rounded-full flex items-center justify-center hover:bg-[#FAB868] transition-colors text-[#0D0D0F]",children:e.jsx(tu,{className:"w-6 h-6"})}),y&&e.jsx("a",{href:y,target:"_blank",rel:"noopener noreferrer",className:"w-12 h-12 bg-[#F4F4F4] rounded-full flex items-center justify-center hover:bg-[#FAB868] transition-colors text-[#0D0D0F]",children:e.jsx(iu,{className:"w-6 h-6"})})]})]})]})]})})})]})}const Cee=["Home","Contact","Diensten","Training","Cases","Blog","Vacatures","OverOns"];function Eee(){const[t,n]=D.useState(null),[r,i]=D.useState({page_name:"",section_key:"",content:"",content_type:"html",language:"nl"}),s=Wt(),{data:a=[],isLoading:o}=Fe({queryKey:["pageContents"],queryFn:()=>ce.entities.PageContent.list()}),c=Me({mutationFn:y=>ce.entities.PageContent.create(y),onSuccess:()=>{s.invalidateQueries({queryKey:["pageContents"]}),f()}}),d=Me({mutationFn:({id:y,data:j})=>ce.entities.PageContent.update(y,j),onSuccess:()=>{s.invalidateQueries({queryKey:["pageContents"]}),f()}}),h=Me({mutationFn:y=>ce.entities.PageContent.delete(y),onSuccess:()=>{s.invalidateQueries({queryKey:["pageContents"]})}}),f=()=>{n(null),i({page_name:"",section_key:"",content:"",content_type:"html",language:"nl"})},m=y=>{n(y),i(y)},p=y=>{y.preventDefault(),t?d.mutate({id:t.id,data:r}):c.mutate(r)},g=a.reduce((y,j)=>(y[j.page_name]||(y[j.page_name]=[]),y[j.page_name].push(j),y),{});return t!==null?e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsx("div",{className:"mb-6",children:e.jsxs(ae,{variant:"outline",onClick:f,className:"gap-2",children:[e.jsx(ht,{className:"w-4 h-4"}),"Terug naar overzicht"]})}),e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-8",children:t!=null&&t.id?"Content Bewerken":"Nieuwe Content"}),e.jsxs("form",{onSubmit:p,className:"space-y-6",children:[e.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Pagina *"}),e.jsxs(Ji,{value:r.page_name,onValueChange:y=>i({...r,page_name:y}),children:[e.jsx(wi,{children:e.jsx(Zi,{placeholder:"Selecteer een pagina"})}),e.jsx(Ni,{children:Cee.map(y=>e.jsx(St,{value:y,children:y},y))})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Sectie Key *"}),e.jsx(me,{required:!0,value:r.section_key,onChange:y=>i({...r,section_key:y.target.value}),placeholder:"hero_title, about_description, etc."})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Content Type"}),e.jsxs(Ji,{value:r.content_type,onValueChange:y=>i({...r,content_type:y}),children:[e.jsx(wi,{children:e.jsx(Zi,{})}),e.jsxs(Ni,{children:[e.jsx(St,{value:"text",children:"Plain Text"}),e.jsx(St,{value:"html",children:"HTML/Rich Text"}),e.jsx(St,{value:"markdown",children:"Markdown"})]})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Content *"}),r.content_type==="html"?e.jsx(es,{value:r.content,onChange:y=>i({...r,content:y}),placeholder:"Schrijf je content..."}):e.jsx("textarea",{required:!0,value:r.content,onChange:y=>i({...r,content:y.target.value}),placeholder:"Schrijf je content...",className:"w-full min-h-[200px] px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent"})]}),e.jsxs("div",{className:"flex gap-4 pt-6",children:[e.jsxs(ae,{type:"submit",className:"flex-1 gap-2",children:[e.jsx(Sn,{className:"w-4 h-4"}),t!=null&&t.id?"Bijwerken":"Aanmaken"]}),e.jsx(ae,{type:"button",variant:"outline",onClick:f,children:"Annuleren"})]})]})]})]})}):e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs("div",{className:"flex items-center justify-between mb-8",children:[e.jsxs("div",{children:[e.jsxs(de,{to:se("AdminDashboard"),className:"text-blue-600 hover:text-blue-700 mb-2 inline-flex items-center gap-1",children:[e.jsx(ht,{className:"w-4 h-4"}),"Terug naar dashboard"]}),e.jsx("h1",{className:"text-4xl font-bold text-gray-900",children:"Content Beheer"}),e.jsx("p",{className:"text-gray-600 mt-2",children:"Beheer statische content op je pagina's"})]}),e.jsxs(ae,{onClick:()=>n({}),children:[e.jsx(Pt,{className:"w-5 h-5 mr-2"}),"Nieuwe Content"]})]}),o?e.jsx("div",{className:"text-center py-12",children:e.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):Object.keys(g).length===0?e.jsxs("div",{className:"bg-white rounded-xl p-12 text-center border border-gray-200",children:[e.jsx("p",{className:"text-gray-600 mb-4",children:"Nog geen content toegevoegd"}),e.jsxs(ae,{onClick:()=>n({}),children:[e.jsx(Pt,{className:"w-5 h-5 mr-2"}),"Voeg eerste content toe"]})]}):e.jsx("div",{className:"space-y-8",children:Object.entries(g).map(([y,j])=>e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"bg-white rounded-xl p-6 border border-gray-200",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:y}),e.jsx("div",{className:"space-y-3",children:j.map(v=>e.jsxs("div",{className:"flex items-center justify-between p-4 bg-gray-50 rounded-lg hover:bg-gray-100 transition-colors",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"font-semibold text-gray-900",children:v.section_key}),e.jsxs("p",{className:"text-sm text-gray-600 line-clamp-1",children:[v.content.replace(/<[^>]*>/g,"").substring(0,100),"..."]}),e.jsx("span",{className:"inline-block mt-1 px-2 py-1 bg-blue-100 text-blue-800 text-xs rounded",children:v.content_type})]}),e.jsxs("div",{className:"flex gap-2 ml-4",children:[e.jsxs(ae,{size:"sm",variant:"outline",onClick:()=>m(v),children:[e.jsx(Pn,{className:"w-4 h-4 mr-1"}),"Bewerk"]}),e.jsx(ae,{size:"sm",variant:"ghost",onClick:()=>{confirm("Weet je zeker dat je dit wilt verwijderen?")&&h.mutate(v.id)},children:e.jsx(wt,{className:"w-4 h-4"})})]})]},v.id))})]},y))})]})})}function Tee(){const[t,n]=D.useState("pages"),[r,i]=D.useState(null),[s,a]=D.useState(!1),o=Wt(),{data:c=[]}=Fe({queryKey:["pageContents"],queryFn:()=>ce.entities.PageContent.list()}),{data:d=[]}=Fe({queryKey:["blogPosts"],queryFn:()=>ce.entities.BlogPost.list()}),{data:h=[]}=Fe({queryKey:["trainings"],queryFn:()=>ce.entities.Training.list()}),f=Me({mutationFn:w=>ce.entities.PageContent.create(w),onSuccess:()=>{o.invalidateQueries({queryKey:["pageContents"]}),a(!1),i(null)}}),m=Me({mutationFn:({id:w,data:k})=>ce.entities.PageContent.update(w,k),onSuccess:()=>{o.invalidateQueries({queryKey:["pageContents"]}),a(!1),i(null)}}),p=Me({mutationFn:w=>ce.entities.PageContent.delete(w),onSuccess:()=>o.invalidateQueries({queryKey:["pageContents"]})}),g=Me({mutationFn:w=>ce.entities.BlogPost.create(w),onSuccess:()=>{o.invalidateQueries({queryKey:["blogPosts"]}),a(!1),i(null)}}),y=Me({mutationFn:({id:w,data:k})=>ce.entities.BlogPost.update(w,k),onSuccess:()=>{o.invalidateQueries({queryKey:["blogPosts"]}),a(!1),i(null)}}),j=Me({mutationFn:w=>ce.entities.BlogPost.delete(w),onSuccess:()=>o.invalidateQueries({queryKey:["blogPosts"]})}),v=Me({mutationFn:w=>ce.entities.Training.create(w),onSuccess:()=>{o.invalidateQueries({queryKey:["trainings"]}),a(!1),i(null)}}),x=Me({mutationFn:({id:w,data:k})=>ce.entities.Training.update(w,k),onSuccess:()=>{o.invalidateQueries({queryKey:["trainings"]}),a(!1),i(null)}}),N=Me({mutationFn:w=>ce.entities.Training.delete(w),onSuccess:()=>o.invalidateQueries({queryKey:["trainings"]})});return e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs("div",{className:"mb-8",children:[e.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-2",children:"Content Management"}),e.jsx("p",{className:"text-gray-600",children:"Beheer pagina's, blogs en trainingen"})]}),e.jsxs("div",{className:"flex gap-2 mb-8 border-b border-gray-200",children:[e.jsxs("button",{onClick:()=>n("pages"),className:`px-6 py-3 font-medium transition-colors ${t==="pages"?"text-[#FAB868] border-b-2 border-[#FAB868]":"text-gray-600 hover:text-gray-900"}`,children:["Pagina Content (",c.length,")"]}),e.jsxs("button",{onClick:()=>n("blogs"),className:`px-6 py-3 font-medium transition-colors ${t==="blogs"?"text-[#FAB868] border-b-2 border-[#FAB868]":"text-gray-600 hover:text-gray-900"}`,children:["Blog Posts (",d.length,")"]}),e.jsxs("button",{onClick:()=>n("trainings"),className:`px-6 py-3 font-medium transition-colors ${t==="trainings"?"text-[#FAB868] border-b-2 border-[#FAB868]":"text-gray-600 hover:text-gray-900"}`,children:["Trainingen (",h.length,")"]})]}),e.jsxs(ae,{onClick:()=>{i(null),a(!0)},className:"mb-6",children:[e.jsx(Pt,{className:"w-4 h-4 mr-2"}),"Nieuwe ",t==="pages"?"Pagina Content":t==="blogs"?"Blog Post":"Training"]}),t==="pages"&&e.jsx("div",{className:"space-y-4",children:c.map(w=>e.jsx("div",{className:"bg-white rounded-2xl p-6 border border-gray-200",children:e.jsxs("div",{className:"flex justify-between items-start",children:[e.jsxs("div",{className:"flex-1",children:[e.jsxs("h3",{className:"font-bold text-lg mb-1",children:[w.page_name," - ",w.section_key]}),e.jsx("p",{className:"text-gray-600 text-sm mb-2",children:w.content_type}),e.jsx("p",{className:"text-gray-700 line-clamp-2",children:w.content})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(ae,{variant:"ghost",size:"icon",onClick:()=>{i(w),a(!0)},children:e.jsx($c,{className:"w-4 h-4"})}),e.jsx(ae,{variant:"ghost",size:"icon",onClick:()=>{confirm("Weet je zeker dat je dit wilt verwijderen?")&&p.mutate(w.id)},children:e.jsx(wt,{className:"w-4 h-4"})})]})]})},w.id))}),t==="blogs"&&e.jsx("div",{className:"space-y-4",children:d.map(w=>e.jsx("div",{className:"bg-white rounded-2xl p-6 border border-gray-200",children:e.jsxs("div",{className:"flex justify-between items-start",children:[e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx("h3",{className:"font-bold text-lg",children:w.title}),w.published&&e.jsx("span",{className:"px-2 py-1 bg-green-100 text-green-800 text-xs rounded-full",children:"Gepubliceerd"})]}),e.jsxs("p",{className:"text-gray-600 text-sm mb-2",children:[w.category," • ",w.read_time]}),e.jsx("p",{className:"text-gray-700 line-clamp-2",children:w.excerpt})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(ae,{variant:"ghost",size:"icon",onClick:()=>{i(w),a(!0)},children:e.jsx($c,{className:"w-4 h-4"})}),e.jsx(ae,{variant:"ghost",size:"icon",onClick:()=>{confirm("Weet je zeker dat je dit wilt verwijderen?")&&j.mutate(w.id)},children:e.jsx(wt,{className:"w-4 h-4"})})]})]})},w.id))}),t==="trainings"&&e.jsx("div",{className:"space-y-4",children:h.map(w=>e.jsx("div",{className:"bg-white rounded-2xl p-6 border border-gray-200",children:e.jsxs("div",{className:"flex justify-between items-start",children:[e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx("h3",{className:"font-bold text-lg",children:w.title}),w.active&&e.jsx("span",{className:"px-2 py-1 bg-green-100 text-green-800 text-xs rounded-full",children:"Actief"})]}),e.jsxs("p",{className:"text-gray-600 text-sm mb-2",children:[w.category," • ",w.duration]}),e.jsx("p",{className:"text-gray-700 line-clamp-2",children:w.description})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(ae,{variant:"ghost",size:"icon",onClick:()=>{i(w),a(!0)},children:e.jsx($c,{className:"w-4 h-4"})}),e.jsx(ae,{variant:"ghost",size:"icon",onClick:()=>{confirm("Weet je zeker dat je dit wilt verwijderen?")&&N.mutate(w.id)},children:e.jsx(wt,{className:"w-4 h-4"})})]})]})},w.id))}),s&&e.jsx("div",{className:"fixed inset-0 bg-black/50 backdrop-blur-sm z-50 flex items-center justify-center p-4",children:e.jsxs("div",{className:"bg-white rounded-2xl p-8 max-w-2xl w-full max-h-[90vh] overflow-y-auto",children:[e.jsxs("div",{className:"flex justify-between items-center mb-6",children:[e.jsxs("h2",{className:"text-2xl font-bold",children:[r?"Bewerk":"Nieuwe"," ",t==="pages"?"Pagina Content":t==="blogs"?"Blog Post":"Training"]}),e.jsx(ae,{variant:"ghost",size:"icon",onClick:()=>{a(!1),i(null)},children:e.jsx(Ht,{className:"w-5 h-5"})})]}),t==="pages"&&e.jsx(Oee,{editingItem:r,onSubmit:w=>{r?m.mutate({id:r.id,data:w}):f.mutate(w)},onCancel:()=>a(!1)}),t==="blogs"&&e.jsx(Pee,{editingItem:r,onSubmit:w=>{r?y.mutate({id:r.id,data:w}):g.mutate(w)},onCancel:()=>a(!1)}),t==="trainings"&&e.jsx(Dee,{editingItem:r,onSubmit:w=>{r?x.mutate({id:r.id,data:w}):v.mutate(w)},onCancel:()=>a(!1)})]})})]})})}function Oee({editingItem:t,onSubmit:n,onCancel:r}){const[i,s]=D.useState(t||{page_name:"",section_key:"",content:"",content_type:"text",language:"nl"});return e.jsxs("form",{onSubmit:a=>{a.preventDefault(),n(i)},className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Pagina Naam"}),e.jsx(me,{required:!0,value:i.page_name,onChange:a=>s({...i,page_name:a.target.value}),placeholder:"bijv. Home, About, Contact"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Sectie Key"}),e.jsx(me,{required:!0,value:i.section_key,onChange:a=>s({...i,section_key:a.target.value}),placeholder:"bijv. hero_title, about_description"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Content Type"}),e.jsxs("select",{value:i.content_type,onChange:a=>s({...i,content_type:a.target.value}),className:"w-full px-4 py-3 border-b-2 border-gray-200 focus:border-[#FAB868] focus:outline-none",children:[e.jsx("option",{value:"text",children:"Text"}),e.jsx("option",{value:"html",children:"HTML"}),e.jsx("option",{value:"markdown",children:"Markdown"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Content"}),i.content_type==="html"?e.jsx("div",{className:"border-b-2 border-gray-200 focus-within:border-[#FAB868]",children:e.jsx(Vf,{theme:"snow",value:i.content,onChange:a=>s({...i,content:a}),modules:{toolbar:[[{header:[1,2,3,!1]}],["bold","italic","underline","strike"],[{list:"ordered"},{list:"bullet"}],["link","image"],["clean"]]}})}):e.jsx(pt,{required:!0,value:i.content,onChange:a=>s({...i,content:a.target.value}),className:"min-h-48",placeholder:i.content_type==="markdown"?`# Heading
**Bold text**
- Lijst item`:"Tekst"})]}),e.jsxs("div",{className:"flex gap-3 pt-4",children:[e.jsx(ae,{type:"button",variant:"outline",onClick:r,className:"flex-1",children:"Annuleren"}),e.jsxs(ae,{type:"submit",className:"flex-1",children:[e.jsx(Sn,{className:"w-4 h-4 mr-2"}),"Opslaan"]})]})]})}function Pee({editingItem:t,onSubmit:n,onCancel:r}){const[i,s]=D.useState(t||{title:"",slug:"",excerpt:"",content:"",category:"AI",image_url:"",author:"48-7 Team",read_time:"5 min",published:!1,published_date:new Date().toISOString().split("T")[0]});return e.jsxs("form",{onSubmit:a=>{a.preventDefault(),n(i)},className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Titel"}),e.jsx(me,{required:!0,value:i.title,onChange:a=>s({...i,title:a.target.value})})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Slug (URL)"}),e.jsx(me,{required:!0,value:i.slug,onChange:a=>s({...i,slug:a.target.value}),placeholder:"url-vriendelijke-versie"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Categorie"}),e.jsxs("select",{value:i.category,onChange:a=>s({...i,category:a.target.value}),className:"w-full px-4 py-3 border-b-2 border-gray-200 focus:border-[#FAB868] focus:outline-none",children:[e.jsx("option",{value:"AI",children:"AI"}),e.jsx("option",{value:"Technologie",children:"Technologie"}),e.jsx("option",{value:"Training",children:"Training"}),e.jsx("option",{value:"Case Study",children:"Case Study"}),e.jsx("option",{value:"Nieuws",children:"Nieuws"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Excerpt"}),e.jsx(pt,{required:!0,value:i.excerpt,onChange:a=>s({...i,excerpt:a.target.value})})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Content (Rich Text Editor)"}),e.jsx("div",{className:"border-b-2 border-gray-200 focus-within:border-[#FAB868]",children:e.jsx(Vf,{theme:"snow",value:i.content,onChange:a=>s({...i,content:a}),modules:{toolbar:[[{header:[1,2,3,!1]}],["bold","italic","underline","strike"],[{list:"ordered"},{list:"bullet"}],["link","image","video"],[{color:[]},{background:[]}],["clean"]]},style:{minHeight:"300px"}})}),e.jsx("p",{className:"text-xs text-gray-500 mt-2",children:"Tip: Plak afbeelding URLs direct of gebruik de image button. Output is HTML."})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Image URL"}),e.jsx(me,{value:i.image_url,onChange:a=>s({...i,image_url:a.target.value})})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("input",{type:"checkbox",checked:i.published,onChange:a=>s({...i,published:a.target.checked}),className:"w-4 h-4"}),e.jsx("label",{className:"text-sm font-medium",children:"Publiceren"})]}),e.jsxs("div",{className:"flex gap-3 pt-4",children:[e.jsx(ae,{type:"button",variant:"outline",onClick:r,className:"flex-1",children:"Annuleren"}),e.jsxs(ae,{type:"submit",className:"flex-1",children:[e.jsx(Sn,{className:"w-4 h-4 mr-2"}),"Opslaan"]})]})]})}function Dee({editingItem:t,onSubmit:n,onCancel:r}){const[i,s]=D.useState(t||{title:"",slug:"",category:"Basis",duration:"",description:"",full_description:"",learning_goals:[],target_audience:"",price:"",image_url:"",active:!0});return e.jsxs("form",{onSubmit:a=>{a.preventDefault(),n(i)},className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Titel"}),e.jsx(me,{required:!0,value:i.title,onChange:a=>s({...i,title:a.target.value})})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Slug (URL)"}),e.jsx(me,{required:!0,value:i.slug,onChange:a=>s({...i,slug:a.target.value})})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Categorie"}),e.jsxs("select",{value:i.category,onChange:a=>s({...i,category:a.target.value}),className:"w-full px-4 py-3 border-b-2 border-gray-200 focus:border-[#FAB868] focus:outline-none",children:[e.jsx("option",{value:"Basis",children:"Basis"}),e.jsx("option",{value:"Gevorderd",children:"Gevorderd"}),e.jsx("option",{value:"Leiderschap",children:"Leiderschap"}),e.jsx("option",{value:"Technisch",children:"Technisch"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Duur"}),e.jsx(me,{required:!0,value:i.duration,onChange:a=>s({...i,duration:a.target.value}),placeholder:"bijv. 1 dag, 2 uur"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Korte Beschrijving"}),e.jsx(pt,{required:!0,value:i.description,onChange:a=>s({...i,description:a.target.value})})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Volledige Beschrijving (Rich Text)"}),e.jsx("div",{className:"border-b-2 border-gray-200 focus-within:border-[#FAB868]",children:e.jsx(Vf,{theme:"snow",value:i.full_description,onChange:a=>s({...i,full_description:a}),modules:{toolbar:[[{header:[1,2,3,!1]}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"}],["link"],["clean"]]},style:{minHeight:"200px"}})})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Doelgroep"}),e.jsx(me,{value:i.target_audience,onChange:a=>s({...i,target_audience:a.target.value})})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Prijs"}),e.jsx(me,{value:i.price,onChange:a=>s({...i,price:a.target.value}),placeholder:"bijv. €1.500 ex. BTW"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("input",{type:"checkbox",checked:i.active,onChange:a=>s({...i,active:a.target.checked}),className:"w-4 h-4"}),e.jsx("label",{className:"text-sm font-medium",children:"Actief"})]}),e.jsxs("div",{className:"flex gap-3 pt-4",children:[e.jsx(ae,{type:"button",variant:"outline",onClick:r,className:"flex-1",children:"Annuleren"}),e.jsxs(ae,{type:"submit",className:"flex-1",children:[e.jsx(Sn,{className:"w-4 h-4 mr-2"}),"Opslaan"]})]})]})}function Iee(){return e.jsxs("div",{className:"pt-20",children:[e.jsxs("section",{className:"relative bg-white pt-32 pb-20 overflow-hidden",children:[e.jsx("div",{className:"absolute top-0 right-0 w-[600px] h-[600px] bg-[#FAB868]/5 rounded-full blur-3xl"}),e.jsx("div",{className:"relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"grid lg:grid-cols-2 gap-20 items-center",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"max-w-2xl",children:[e.jsx("h1",{className:"text-5xl sm:text-6xl lg:text-7xl font-bold text-[#0D0D0F] leading-[1.1] mb-8",children:"AI Development Support"}),e.jsx("p",{className:"text-2xl text-[#9CA3AF] mb-8 leading-relaxed",children:"Snel bouwen met AI, zonder technische risico's"}),e.jsxs("div",{className:"bg-[#F4F4F4] rounded-2xl p-6 mb-12",children:[e.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F] mb-3",children:"Vibe coding en AI-assisted development maken teams razendsnel."}),e.jsx("p",{className:"text-lg text-[#0D0D0F]/80",children:"Maar hoe weet je zeker dat wat je oplevert veilig, overdraagbaar en toekomstbestendig is?"})]}),e.jsx("p",{className:"text-xl text-[#0D0D0F] font-semibold mb-12",children:"Met AI Development Support ondersteunen wij teams die zelf bouwen met AI — zodat snelheid niet ten koste gaat van kwaliteit."}),e.jsx("div",{className:"flex flex-col sm:flex-row gap-4",children:e.jsxs(de,{to:se("Contact"),className:"inline-flex items-center justify-center gap-2 px-10 py-5 bg-[#FAB868] text-[#0D0D0F] font-semibold rounded-full hover:bg-[#E5A04D] transition-all text-lg",children:["Bespreek je situatie",e.jsx($e,{className:"w-5 h-5"})]})})]}),e.jsx(Z.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{delay:.3},className:"hidden lg:block",children:e.jsx("img",{src:"https://images.unsplash.com/photo-1517694712202-14dd9538aa97?w=1200&auto=format&fit=crop",alt:"AI Development Support",className:"w-full h-[600px] object-cover rounded-3xl shadow-2xl"})})]})})]}),e.jsx("section",{className:"py-32 bg-[#F4F4F4]",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"grid lg:grid-cols-2 gap-16 items-center",children:[e.jsx(Z.div,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},children:e.jsx("img",{src:"https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=1200&auto=format&fit=crop",alt:"Team building with AI",className:"w-full h-[500px] object-cover rounded-3xl shadow-xl"})}),e.jsxs(Z.div,{initial:{opacity:0,x:20},whileInView:{opacity:1,x:0},viewport:{once:!0},children:[e.jsx("h2",{className:"text-5xl font-bold text-[#0D0D0F] mb-6",children:"Voor teams die met AI bouwen"}),e.jsx("p",{className:"text-2xl text-[#9CA3AF] mb-8",children:"Deze dienst is er voor developmentteams die werken met vibe coding tools zoals Cursor, Codex, Claude Code of Lovable en:"}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-8 h-8 bg-[#FAB868] rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:e.jsx(Ft,{className:"w-5 h-5 text-[#0D0D0F]"})}),e.jsx("p",{className:"text-xl text-[#0D0D0F]/80",children:"snel itereren met AI"})]}),e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-8 h-8 bg-[#FAB868] rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:e.jsx(Ft,{className:"w-5 h-5 text-[#0D0D0F]"})}),e.jsx("p",{className:"text-xl text-[#0D0D0F]/80",children:"eigenaarschap willen houden"})]}),e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-8 h-8 bg-[#FAB868] rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:e.jsx(Ft,{className:"w-5 h-5 text-[#0D0D0F]"})}),e.jsx("p",{className:"text-xl text-[#0D0D0F]/80",children:"maar zekerheid zoeken over hun technische keuzes"})]})]})]})]})})}),e.jsx("section",{className:"py-32 bg-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-20",children:[e.jsx("h2",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-6",children:"Waar wij op letten"}),e.jsx("p",{className:"text-2xl text-[#9CA3AF] max-w-3xl mx-auto mb-4",children:"Wij helpen teams antwoord krijgen op cruciale vragen:"})]}),e.jsxs("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-8 mb-12",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.1},className:"bg-[#F4F4F4] rounded-3xl p-8 text-center",children:[e.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center mx-auto mb-4",children:e.jsx(L4,{className:"w-8 h-8 text-[#0D0D0F]"})}),e.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F] mb-3",children:"Is de code veilig?"}),e.jsx("p",{className:"text-lg text-[#9CA3AF]",children:"Ook in koppeling met bestaande systemen en databronnen."})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.2},className:"bg-[#F4F4F4] rounded-3xl p-8 text-center",children:[e.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center mx-auto mb-4",children:e.jsx(Su,{className:"w-8 h-8 text-[#0D0D0F]"})}),e.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F] mb-3",children:"Is de juiste architectuur gekozen?"}),e.jsx("p",{className:"text-lg text-[#9CA3AF]",children:"Schaalbaar, onderhoudbaar en logisch opgebouwd."})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.3},className:"bg-[#F4F4F4] rounded-3xl p-8 text-center",children:[e.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center mx-auto mb-4",children:e.jsx(pn,{className:"w-8 h-8 text-[#0D0D0F]"})}),e.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F] mb-3",children:"Is de code overdraagbaar?"}),e.jsx("p",{className:"text-lg text-[#9CA3AF]",children:"Begrijpelijk, gedocumenteerd en niet afhankelijk van één persoon."})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.4},className:"bg-[#F4F4F4] rounded-3xl p-8 text-center",children:[e.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center mx-auto mb-4",children:e.jsx(Z8,{className:"w-8 h-8 text-[#0D0D0F]"})}),e.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F] mb-3",children:"Kan het worden doorontwikkeld?"}),e.jsx("p",{className:"text-lg text-[#9CA3AF]",children:"Klaar voor upgrades, nieuwe modellen en toekomstige eisen."})]})]})]})}),e.jsx("section",{className:"py-32 bg-[#F4F4F4]",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-20",children:e.jsx("h2",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-6",children:"Wat we doen (en wat niet)"})}),e.jsxs("div",{className:"grid lg:grid-cols-2 gap-12",children:[e.jsxs("div",{className:"bg-white rounded-3xl p-8 shadow-xl",children:[e.jsx("h3",{className:"text-3xl font-bold text-[#0D0D0F] mb-6",children:"Wij doen wel"}),e.jsxs("ul",{className:"space-y-4",children:[e.jsxs("li",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-8 h-8 bg-[#FAB868] rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:e.jsx(Ft,{className:"w-5 h-5 text-[#0D0D0F]"})}),e.jsx("p",{className:"text-xl text-[#0D0D0F]/80",children:"Code- en architectuurreviews"})]}),e.jsxs("li",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-8 h-8 bg-[#FAB868] rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:e.jsx(Ft,{className:"w-5 h-5 text-[#0D0D0F]"})}),e.jsx("p",{className:"text-xl text-[#0D0D0F]/80",children:"Begeleiding bij AI-assisted development"})]}),e.jsxs("li",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-8 h-8 bg-[#FAB868] rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:e.jsx(Ft,{className:"w-5 h-5 text-[#0D0D0F]"})}),e.jsx("p",{className:"text-xl text-[#0D0D0F]/80",children:"Helpen bij framework-keuzes (React, Next en alternatieven)"})]}),e.jsxs("li",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-8 h-8 bg-[#FAB868] rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:e.jsx(Ft,{className:"w-5 h-5 text-[#0D0D0F]"})}),e.jsx("p",{className:"text-xl text-[#0D0D0F]/80",children:"Meedenken over architectuur, integraties, security en structuur"})]}),e.jsxs("li",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-8 h-8 bg-[#FAB868] rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:e.jsx(Ft,{className:"w-5 h-5 text-[#0D0D0F]"})}),e.jsx("p",{className:"text-xl text-[#0D0D0F]/80",children:"Kennisoverdracht aan het team"})]})]})]}),e.jsxs("div",{className:"bg-white rounded-3xl p-8 shadow-xl",children:[e.jsx("h3",{className:"text-3xl font-bold text-[#0D0D0F] mb-6",children:"Wij doen niet"}),e.jsxs("ul",{className:"space-y-4",children:[e.jsxs("li",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-8 h-8 bg-gray-200 rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:e.jsx(Ht,{className:"w-5 h-5 text-gray-500"})}),e.jsx("p",{className:"text-xl text-[#0D0D0F]/80",children:"Jullie team overnemen"})]}),e.jsxs("li",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-8 h-8 bg-gray-200 rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:e.jsx(Ht,{className:"w-5 h-5 text-gray-500"})}),e.jsx("p",{className:"text-xl text-[#0D0D0F]/80",children:"Black-box oplossingen bouwen"})]})]}),e.jsx("p",{className:"text-xl text-[#0D0D0F] font-semibold mt-8",children:"Jullie blijven bouwen. Wij bewaken de kwaliteit."})]})]})]})}),e.jsx("section",{className:"py-32 bg-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-20",children:e.jsx("h2",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-6",children:"Hoe we samenwerken"})}),e.jsxs("div",{className:"grid md:grid-cols-3 gap-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.1},className:"bg-[#F4F4F4] rounded-3xl p-8 text-center",children:[e.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center mx-auto mb-4",children:e.jsx(mn,{className:"w-8 h-8 text-[#0D0D0F]"})}),e.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F] mb-3",children:"Retainer"}),e.jsx("p",{className:"text-lg text-[#9CA3AF]",children:"structurele begeleiding & reviews"})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.2},className:"bg-[#F4F4F4] rounded-3xl p-8 text-center",children:[e.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center mx-auto mb-4",children:e.jsx(WP,{className:"w-8 h-8 text-[#0D0D0F]"})}),e.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F] mb-3",children:"Projectmatig"}),e.jsx("p",{className:"text-lg text-[#9CA3AF]",children:"toetsing van een AI-oplossing"})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.3},className:"bg-[#F4F4F4] rounded-3xl p-8 text-center",children:[e.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center mx-auto mb-4",children:e.jsx(pn,{className:"w-8 h-8 text-[#0D0D0F]"})}),e.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F] mb-3",children:"Tijdelijke versterking"}),e.jsx("p",{className:"text-lg text-[#9CA3AF]",children:"altijd met kennisoverdracht"})]})]}),e.jsx(Z.p,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-xl text-[#0D0D0F] font-semibold text-center mt-12",children:"Flexibel, zonder lock-in."})]})}),e.jsx("section",{className:"py-32 bg-[#F4F4F4]",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-20",children:e.jsx("h2",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-6",children:"Waarom 48-7"})}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-8 max-w-4xl mx-auto",children:[e.jsxs("div",{className:"flex items-center gap-3 text-xl text-[#0D0D0F]",children:[e.jsx(Ft,{className:"w-6 h-6 text-[#FAB868]"}),"Ervaren developers met echte AI-kennis"]}),e.jsxs("div",{className:"flex items-center gap-3 text-xl text-[#0D0D0F]",children:[e.jsx(Ft,{className:"w-6 h-6 text-[#FAB868]"}),"Begrip van bestaande softwarelandschappen"]}),e.jsxs("div",{className:"flex items-center gap-3 text-xl text-[#0D0D0F]",children:[e.jsx(Ft,{className:"w-6 h-6 text-[#FAB868]"}),"Praktisch, nuchter en zonder hype"]}),e.jsxs("div",{className:"flex items-center gap-3 text-xl text-[#0D0D0F]",children:[e.jsx(Ft,{className:"w-6 h-6 text-[#FAB868]"}),"Gericht op MKB+ teams die snelheid én controle willen"]})]}),e.jsx(Z.p,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-3xl text-[#0D0D0F] font-bold text-center mt-12",children:"Werk je met AI, maar wil je zeker weten dat het technisch klopt?"})]})}),e.jsx("section",{className:"py-32 bg-[#0D0D0F]",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[e.jsx("h2",{className:"text-5xl font-bold text-white mb-6",children:"Bespreek je situatie"}),e.jsx("p",{className:"text-2xl text-[#9CA3AF] mb-12",children:"Snel bouwen met AI, zonder technische risico's"}),e.jsxs(de,{to:se("Contact"),className:"inline-flex items-center gap-2 px-10 py-5 bg-[#FAB868] text-[#0D0D0F] font-semibold rounded-full hover:bg-[#E5A04D] transition-all text-lg",children:["Plan een gesprek",e.jsx($e,{className:"w-5 h-5"})]})]})})]})}function Ree(){const t=[{icon:Wi,title:"AI Consultancy",description:"Van strategie tot roadmap. Wij helpen je de juiste AI kansen te identificeren en een praktisch implementatieplan te ontwikkelen dat past bij jouw organisatie.",features:["AI Strategie & Visie","Innoveren met AI","AI Readiness Assessments","ROI & Business Cases","Interim AI Product Managers"],href:se("AIConsultancy"),image:"https://images.unsplash.com/photo-1552664730-d307ca884978?w=1200&auto=format&fit=crop",bgLight:"bg-amber-50",color:"#f59e0b"},{icon:O4,title:"AI Software Development",description:"Wij ontwikkelen AI-oplossingen die echt in productie gaan. Schaalbare software die past binnen jouw bestaande IT-landschap.",features:["AI Agents & Automatisering","AI Search & E-commerce","AI Customer Care","Prototypes naar Productie","Integraties met bestaande systemen"],href:se("AIDevelopment"),image:"https://images.unsplash.com/photo-1555949963-aa79dcee981c?w=1200&auto=format&fit=crop",bgLight:"bg-blue-50",color:"#3b82f6"},{icon:hf,title:"AI Development Support",description:"Ondersteuning voor developmentteams die zelf bouwen met AI, zodat snelheid niet ten koste gaat van kwaliteit, veiligheid en onderhoudbaarheid.",features:["Code- en architectuurreviews","Begeleiding bij AI-assisted development","Framework-keuzes & architectuuradvies","AI Security Audits","Kennisoverdracht aan het team"],href:se("DevelopmentSupport"),image:"https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=1200&auto=format&fit=crop",bgLight:"bg-emerald-50",color:"#10b981"},{icon:pr,title:"AI Training & Workshops",description:"Maak je team AI-ready met onze praktijkgerichte trainingen. Van basis tot gevorderd, voor elk niveau en elke rol binnen je organisatie.",features:["AI Geletterdheid","Vibe Coding","AI Agents Bouwen","Microsoft Copilot","AI & Sales"],href:se("Training"),image:"https://images.unsplash.com/photo-1524178232363-1fb2b075b655?w=1200&auto=format&fit=crop",bgLight:"bg-purple-50",color:"#a855f7"}],n=[{icon:Xa,value:"50+",label:"Projecten afgerond"},{icon:pn,value:"500+",label:"Professionals getraind"},{icon:di,value:"2x",label:"Gemiddelde productiviteitswinst"}];return e.jsxs("div",{className:"pt-20",children:[e.jsx("section",{className:"py-20 bg-gradient-to-b from-gray-50 to-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center max-w-3xl mx-auto mb-16",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-blue-100 rounded-full text-blue-700 text-sm font-medium mb-6",children:[e.jsx(At,{className:"w-4 h-4"}),"Full-Service AI Agency"]}),e.jsx("h1",{className:"text-4xl sm:text-5xl font-bold text-gray-900 mb-6",children:"Full-Service AI voor MKB"}),e.jsx("p",{className:"text-xl text-gray-600",children:"Van strategie tot implementatie, van training tot doorontwikkeling. Wij bieden alles wat je nodig hebt om AI succesvol in te zetten."})]}),e.jsx(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"grid md:grid-cols-3 gap-6 max-w-3xl mx-auto",children:n.map((r,i)=>e.jsxs("div",{className:"text-center p-6 bg-white rounded-2xl border border-gray-100",children:[e.jsx(r.icon,{className:"w-8 h-8 text-blue-600 mx-auto mb-3"}),e.jsx("p",{className:"text-3xl font-bold text-gray-900",children:r.value}),e.jsx("p",{className:"text-gray-600",children:r.label})]},i))})]})}),e.jsx("section",{className:"py-20",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsx("div",{className:"space-y-16",children:t.map((r,i)=>e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:`grid lg:grid-cols-2 gap-12 items-center ${i%2===1?"lg:flex-row-reverse":""}`,children:[e.jsxs("div",{className:i%2===1?"lg:order-2":"",children:[e.jsx("div",{className:`w-16 h-16 ${r.bgLight} rounded-2xl flex items-center justify-center mb-6`,children:e.jsx(r.icon,{className:"w-8 h-8",style:{color:r.color}})}),e.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-4",children:r.title}),e.jsx("p",{className:"text-xl text-gray-600 mb-8",children:r.description}),e.jsx("ul",{className:"space-y-3 mb-8",children:r.features.map((s,a)=>e.jsxs("li",{className:"flex items-center gap-3",children:[e.jsx("div",{className:`w-6 h-6 rounded-full ${r.bgLight} flex items-center justify-center`,children:e.jsx(Ft,{className:"w-4 h-4",style:{color:r.color}})}),e.jsx("span",{className:"text-gray-700",children:s})]},a))}),e.jsxs(de,{to:r.href,className:"inline-flex items-center gap-2 px-6 py-3 bg-gray-900 text-white font-semibold rounded-xl hover:bg-gray-800 transition-colors",children:["Meer over ",r.title,e.jsx($e,{className:"w-5 h-5"})]})]}),e.jsx("div",{className:`relative ${i%2===1?"lg:order-1":""}`,children:e.jsx("img",{src:r.image,alt:r.title,className:"w-full aspect-square object-cover rounded-3xl shadow-xl"})})]},i))})})}),e.jsx("section",{className:"py-16 bg-gray-50",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsx(Gf,{})})}),e.jsx("section",{className:"py-20 bg-gray-900",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[e.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-white mb-6",children:"Niet zeker welke dienst je nodig hebt?"}),e.jsx("p",{className:"text-xl text-gray-400 mb-8",children:"Doe onze AI Quiz en ontdek in 2 minuten welke AI oplossingen het beste passen bij jouw bedrijf."}),e.jsxs(de,{to:se("AIQuiz"),className:"inline-flex items-center gap-2 px-8 py-4 bg-gradient-to-r from-blue-600 to-blue-700 text-white font-semibold rounded-2xl hover:shadow-xl hover:shadow-blue-500/30 transition-all",children:[e.jsx(At,{className:"w-5 h-5"}),"Start de AI Quiz",e.jsx($e,{className:"w-5 h-5"})]})]})})})]})}var Qf="Checkbox",[Fee]=no(Qf),[Mee,Ob]=Fee(Qf);function Lee(t){const{__scopeCheckbox:n,checked:r,children:i,defaultChecked:s,disabled:a,form:o,name:c,onCheckedChange:d,required:h,value:f="on",internal_do_not_use_render:m}=t,[p,g]=xl({prop:r,defaultProp:s??!1,onChange:d,caller:Qf}),[y,j]=D.useState(null),[v,x]=D.useState(null),N=D.useRef(!1),w=y?!!o||!!y.closest("form"):!0,k={checked:p,disabled:a,setChecked:g,control:y,setControl:j,name:c,form:o,value:f,hasConsumerStoppedPropagationRef:N,required:h,defaultChecked:Hs(s)?!1:s,isFormControl:w,bubbleInput:v,setBubbleInput:x};return e.jsx(Mee,{scope:n,...k,children:Bee(m)?m(k):i})}var L6="CheckboxTrigger",B6=D.forwardRef(({__scopeCheckbox:t,onKeyDown:n,onClick:r,...i},s)=>{const{control:a,value:o,disabled:c,checked:d,required:h,setControl:f,setChecked:m,hasConsumerStoppedPropagationRef:p,isFormControl:g,bubbleInput:y}=Ob(L6,t),j=Xt(s,f),v=D.useRef(d);return D.useEffect(()=>{const x=a==null?void 0:a.form;if(x){const N=()=>m(v.current);return x.addEventListener("reset",N),()=>x.removeEventListener("reset",N)}},[a,m]),e.jsx(Nt.button,{type:"button",role:"checkbox","aria-checked":Hs(d)?"mixed":d,"aria-required":h,"data-state":$6(d),"data-disabled":c?"":void 0,disabled:c,value:o,...i,ref:j,onKeyDown:bt(n,x=>{x.key==="Enter"&&x.preventDefault()}),onClick:bt(r,x=>{m(N=>Hs(N)?!0:!N),y&&g&&(p.current=x.isPropagationStopped(),p.current||x.stopPropagation())})})});B6.displayName=L6;var Pb=D.forwardRef((t,n)=>{const{__scopeCheckbox:r,name:i,checked:s,defaultChecked:a,required:o,disabled:c,value:d,onCheckedChange:h,form:f,...m}=t;return e.jsx(Lee,{__scopeCheckbox:r,checked:s,defaultChecked:a,disabled:c,required:o,onCheckedChange:h,name:i,form:f,value:d,internal_do_not_use_render:({isFormControl:p})=>e.jsxs(e.Fragment,{children:[e.jsx(B6,{...m,ref:n,__scopeCheckbox:r}),p&&e.jsx(U6,{__scopeCheckbox:r})]})})});Pb.displayName=Qf;var z6="CheckboxIndicator",q6=D.forwardRef((t,n)=>{const{__scopeCheckbox:r,forceMount:i,...s}=t,a=Ob(z6,r);return e.jsx(pb,{present:i||Hs(a.checked)||a.checked===!0,children:e.jsx(Nt.span,{"data-state":$6(a.checked),"data-disabled":a.disabled?"":void 0,...s,ref:n,style:{pointerEvents:"none",...t.style}})})});q6.displayName=z6;var V6="CheckboxBubbleInput",U6=D.forwardRef(({__scopeCheckbox:t,...n},r)=>{const{control:i,hasConsumerStoppedPropagationRef:s,checked:a,defaultChecked:o,required:c,disabled:d,name:h,value:f,form:m,bubbleInput:p,setBubbleInput:g}=Ob(V6,t),y=Xt(r,g),j=ub(a),v=ob(i);D.useEffect(()=>{const N=p;if(!N)return;const w=window.HTMLInputElement.prototype,A=Object.getOwnPropertyDescriptor(w,"checked").set,S=!s.current;if(j!==a&&A){const E=new Event("click",{bubbles:S});N.indeterminate=Hs(a),A.call(N,Hs(a)?!1:a),N.dispatchEvent(E)}},[p,j,a,s]);const x=D.useRef(Hs(a)?!1:a);return e.jsx(Nt.input,{type:"checkbox","aria-hidden":!0,defaultChecked:o??x.current,required:c,disabled:d,name:h,value:f,form:m,...n,tabIndex:-1,ref:y,style:{...n.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});U6.displayName=V6;function Bee(t){return typeof t=="function"}function Hs(t){return t==="indeterminate"}function $6(t){return Hs(t)?"indeterminate":t?"checked":"unchecked"}const qh=D.forwardRef(({className:t,...n},r)=>e.jsx(Pb,{ref:r,className:Yt("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",t),...n,children:e.jsx(q6,{className:Yt("flex items-center justify-center text-current"),children:e.jsx(Ft,{className:"h-4 w-4"})})}));qh.displayName=Pb.displayName;function zee(){const[t,n]=D.useState({bedrijfsnaam:"",contactpersonen:"",functies:"",email:"",telefoon:"",sector:"",aantal_medewerkers:"",omzet_range:"",kernactiviteit:"",frustratie_1:"",frustratie_2:"",frustratie_3:"",tijdrovende_activiteit:"",tijdsbesteding_uren:"",gemiste_kansen:"",gebruikte_systemen:[],systemen_gekoppeld:"",bedrijfskennis_locatie:[],informatie_vindbaarheid:"",ai_gebruik:"",ai_tools_welke:"",ai_ervaring:"",management_houding:"",medewerkers_houding:"",ai_zorgen:"",redenen_contact:[],succesvol_resultaat:"",urgentie:"",budget_beschikbaar:"",budget_range:"",aanwezigen:"",specifieke_onderwerpen:"",te_delen_documenten:"",geupload_documenten:[],overige_informatie:""}),[r,i]=D.useState(!1),[s,a]=D.useState(!1),[o,c]=D.useState(""),[d,h]=D.useState(""),[f,m]=D.useState(!1),[p,g]=D.useState({}),[y,j]=D.useState([]),v=(S,E)=>{n(C=>({...C,[S]:E}))},x=(S,E,C)=>{n(B=>({...B,[S]:C?[...B[S],E]:B[S].filter(F=>F!==E)}))},N=async S=>{var C;const E=Array.from(S.target.files);if(E.length!==0){m(!0);try{const B=[];for(const F of E){const I=await ce.integrations.Core.UploadFile({file:F}),R=I.file_url||((C=I.data)==null?void 0:C.file_url);if(!R)throw new Error("Bestands-URL ontbreekt na uploaden.");B.push(R)}n(F=>({...F,geupload_documenten:[...F.geupload_documenten,...B]}))}catch(B){h("Er ging iets mis bij het uploaden van bestanden."),console.error(B)}finally{m(!1)}}},w=S=>{n(E=>({...E,geupload_documenten:E.geupload_documenten.filter(C=>C!==S)}))},k=()=>{const S={};(!t.bedrijfsnaam||t.bedrijfsnaam.trim().length<2)&&(S.bedrijfsnaam="Bedrijfsnaam is verplicht"),(!t.contactpersonen||t.contactpersonen.trim().length<2)&&(S.contactpersonen="Contactpersoon is verplicht");const E=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;if((!t.email||!E.test(t.email))&&(S.email="Voer een geldig e-mailadres in"),t.telefoon){const C=/^(\+31|0031|0)[1-9][0-9]{8}$/,B=t.telefoon.replace(/[\s\-\(\)]/g,"");C.test(B)||(S.telefoon="Voer een geldig Nederlands telefoonnummer in")}return g(S),Object.keys(S).length===0},A=async S=>{if(S.preventDefault(),!k()){h("Er zijn validatiefouten in het formulier. Controleer de rode velden."),window.scrollTo(0,0);return}i(!0),h(""),j([]);try{const E=await ce.functions.invoke("submitDiscoveryForm",t);E.data.success?(c(E.data.id||""),a(!0),window.scrollTo(0,0)):(h(E.data.error||"Er ging iets mis"),E.data.validation_errors&&j(E.data.validation_errors))}catch(E){console.error("Form submission error:",E),h("Netwerkfout: kon geen verbinding maken met de server. Probeer het later opnieuw.")}finally{i(!1)}};return s?e.jsx("div",{className:"min-h-screen bg-gradient-to-br from-gray-50 to-gray-100 py-20",children:e.jsx("div",{className:"max-w-2xl mx-auto px-4",children:e.jsxs("div",{className:"bg-white rounded-3xl shadow-xl p-12 text-center",children:[e.jsx(T4,{className:"w-20 h-20 text-green-500 mx-auto mb-6"}),e.jsx("h1",{className:"text-3xl font-bold mb-4",children:"Bedankt!"}),e.jsx("p",{className:"text-lg text-gray-600 mb-6",children:"We hebben jullie Discovery Scan succesvol ontvangen en nemen deze zo snel mogelijk door."}),o&&e.jsxs("div",{className:"bg-blue-50 border border-blue-200 rounded-xl p-4 mb-6",children:[e.jsx("p",{className:"text-sm text-gray-600 mb-1",children:"Referentienummer:"}),e.jsx("p",{className:"text-lg font-mono font-bold text-blue-700",children:o})]})]})})}):e.jsx("div",{className:"min-h-screen bg-gradient-to-br from-gray-50 to-gray-100 py-12",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4",children:e.jsxs("div",{className:"bg-white rounded-3xl shadow-xl p-8 md:p-12",children:[e.jsxs("div",{className:"mb-12",children:[e.jsx("h1",{className:"text-4xl font-bold mb-4",children:"48-7 AI Discovery - Pre-Meeting Scan"}),e.jsx("div",{className:"bg-blue-50 border-l-4 border-blue-500 p-4 mb-6",children:e.jsx("p",{className:"text-gray-700",children:"Bedankt voor jullie interesse in 48-7 AI Consultancy. Om onze discovery-sessie zo waardevol mogelijk te maken, vragen we jullie om deze korte scan vooraf in te vullen."})}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 text-sm",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"font-semibold",children:"â±ï¸ Invultijd:"}),e.jsx("span",{children:"Ongeveer 10-15 minuten"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"font-semibold",children:"🔒 Privacy:"}),e.jsx("span",{children:"Gegevens worden vertrouwelijk behandeld"})]})]})]}),e.jsxs("form",{onSubmit:A,className:"space-y-12",children:[e.jsxs("section",{children:[e.jsx("h2",{className:"text-2xl font-bold mb-6 pb-2 border-b-2 border-[#FAB868]",children:"DEEL 1: Bedrijfsgegevens"}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-2",children:"Bedrijfsnaam *"}),e.jsx(me,{required:!0,value:t.bedrijfsnaam,onChange:S=>{v("bedrijfsnaam",S.target.value),p.bedrijfsnaam&&g({...p,bedrijfsnaam:null})},className:p.bedrijfsnaam?"border-red-500":""}),p.bedrijfsnaam&&e.jsx("p",{className:"text-red-500 text-xs mt-1",children:p.bedrijfsnaam})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-2",children:"Contactpersoon(en) tijdens sessie *"}),e.jsx(me,{required:!0,value:t.contactpersonen,onChange:S=>{v("contactpersonen",S.target.value),p.contactpersonen&&g({...p,contactpersonen:null})},className:p.contactpersonen?"border-red-500":""}),p.contactpersonen&&e.jsx("p",{className:"text-red-500 text-xs mt-1",children:p.contactpersonen})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-2",children:"Functie(s)"}),e.jsx(me,{value:t.functies,onChange:S=>v("functies",S.target.value)})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-2",children:"E-mail *"}),e.jsx(me,{type:"email",required:!0,value:t.email,onChange:S=>{v("email",S.target.value),p.email&&g({...p,email:null})},className:p.email?"border-red-500":""}),p.email&&e.jsx("p",{className:"text-red-500 text-xs mt-1",children:p.email})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-2",children:"Telefoon"}),e.jsx(me,{type:"tel",value:t.telefoon,onChange:S=>{v("telefoon",S.target.value),p.telefoon&&g({...p,telefoon:null})},placeholder:"+31 6 12345678",className:p.telefoon?"border-red-500":""}),p.telefoon&&e.jsx("p",{className:"text-red-500 text-xs mt-1",children:p.telefoon})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-2",children:"In welke sector/branche zijn jullie actief?"}),e.jsx(me,{value:t.sector,onChange:S=>v("sector",S.target.value)})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-3",children:"Hoeveel medewerkers heeft jullie organisatie?"}),e.jsx("div",{className:"space-y-2",children:["1-10","11-25","26-50","51-100","100+"].map(S=>e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"radio",name:"aantal_medewerkers",value:S,checked:t.aantal_medewerkers===S,onChange:E=>v("aantal_medewerkers",E.target.value),className:"w-4 h-4"}),e.jsx("span",{children:S})]},S))})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-3",children:"Omzet range (optioneel)"}),e.jsx("div",{className:"space-y-2",children:["< €500k","€500k - €1M","€1M - €5M","€5M - €10M","€10M+","Geef ik liever niet aan"].map(S=>e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"radio",name:"omzet_range",value:S,checked:t.omzet_range===S,onChange:E=>v("omzet_range",E.target.value),className:"w-4 h-4"}),e.jsx("span",{children:S})]},S))})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block font-semibold mb-2",children:["Beschrijf jullie kernactiviteit in één zin",e.jsx("br",{}),e.jsx("span",{className:"text-sm font-normal text-gray-600",children:"(Wat doen jullie en voor wie?)"})]}),e.jsx(pt,{value:t.kernactiviteit,onChange:S=>v("kernactiviteit",S.target.value),rows:3})]})]})]}),e.jsxs("section",{children:[e.jsx("h2",{className:"text-2xl font-bold mb-6 pb-2 border-b-2 border-[#FAB868]",children:"DEEL 2: Huidige Situatie"}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-3",children:"Wat zijn op dit moment jullie TOP 3 frustraties of knelpunten in de dagelijkse bedrijfsvoering?"}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm mb-1",children:"1."}),e.jsx(pt,{value:t.frustratie_1,onChange:S=>v("frustratie_1",S.target.value),rows:2})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm mb-1",children:"2."}),e.jsx(pt,{value:t.frustratie_2,onChange:S=>v("frustratie_2",S.target.value),rows:2})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm mb-1",children:"3."}),e.jsx(pt,{value:t.frustratie_3,onChange:S=>v("frustratie_3",S.target.value),rows:2})]})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-2",children:"Aan welke activiteit zijn jullie (of jullie team) het meeste tijd kwijt die eigenlijk efficiënter zou kunnen?"}),e.jsx(pt,{value:t.tijdrovende_activiteit,onChange:S=>v("tijdrovende_activiteit",S.target.value),rows:3})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-3",children:"Als je een ruwe schatting maakt, hoeveel tijd gaat hier per week in zitten?"}),e.jsx("div",{className:"space-y-2",children:["Minder dan 5 uur","5-10 uur","10-20 uur","20-40 uur","Meer dan 40 uur"].map(S=>e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"radio",name:"tijdsbesteding_uren",value:S,checked:t.tijdsbesteding_uren===S,onChange:E=>v("tijdsbesteding_uren",E.target.value),className:"w-4 h-4"}),e.jsx("span",{children:S})]},S))})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block font-semibold mb-2",children:["Welke kansen laat jullie nu liggen door gebrek aan tijd, mensen of middelen?",e.jsx("br",{}),e.jsx("span",{className:"text-sm font-normal text-gray-600",children:"(Bijvoorbeeld: meer klanten kunnen helpen, betere service, nieuwe producten ontwikkelen, etc.)"})]}),e.jsx(pt,{value:t.gemiste_kansen,onChange:S=>v("gemiste_kansen",S.target.value),rows:4})]})]})]}),e.jsxs("section",{children:[e.jsx("h2",{className:"text-2xl font-bold mb-6 pb-2 border-b-2 border-[#FAB868]",children:"DEEL 3: Systemen & Data"}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsxs("label",{className:"block font-semibold mb-3",children:["Welke systemen/tools gebruiken jullie dagelijks?",e.jsx("br",{}),e.jsx("span",{className:"text-sm font-normal text-gray-600",children:"(Meerdere antwoorden mogelijk)"})]}),e.jsx("div",{className:"space-y-2",children:["CRM (bijv. Salesforce, HubSpot, Pipedrive)","ERP (bijv. Exact, Afas, SAP)","Email (bijv. Gmail, Outlook)","Projectmanagement (bijv. Asana, Monday, Jira)","Communicatie (bijv. Teams, Slack, WhatsApp)","Boekhouding (bijv. Exact Online, Twinfield)","Spreadsheets (Excel, Google Sheets)","Documenten (Word, Google Docs, SharePoint)","Website/E-commerce","Anders"].map(S=>e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx(qh,{checked:t.gebruikte_systemen.includes(S),onCheckedChange:E=>x("gebruikte_systemen",S,E)}),e.jsx("span",{children:S})]},S))})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-3",children:"Zijn jullie systemen aan elkaar gekoppeld?"}),e.jsx("div",{className:"space-y-2",children:["Ja, de meeste systemen zijn geïntegreerd","Gedeeltelijk, sommige wel, sommige niet","Nee, alles werkt los van elkaar","Weet ik niet"].map(S=>e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"radio",name:"systemen_gekoppeld",value:S,checked:t.systemen_gekoppeld===S,onChange:E=>v("systemen_gekoppeld",E.target.value),className:"w-4 h-4"}),e.jsx("span",{children:S})]},S))})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block font-semibold mb-3",children:["Waar zit jullie belangrijkste bedrijfskennis?",e.jsx("br",{}),e.jsx("span",{className:"text-sm font-normal text-gray-600",children:"(Meerdere antwoorden mogelijk)"})]}),e.jsx("div",{className:"space-y-2",children:["In de hoofden van medewerkers","In documenten (Word, PDF)","In databases/systemen","In spreadsheets","In emails","In chat-systemen (Teams, Slack)","We hebben eigenlijk weinig gedocumenteerd","Anders"].map(S=>e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx(qh,{checked:t.bedrijfskennis_locatie.includes(S),onCheckedChange:E=>x("bedrijfskennis_locatie",S,E)}),e.jsx("span",{children:S})]},S))})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-3",children:"Hoe makkelijk kunnen medewerkers informatie vinden die ze nodig hebben?"}),e.jsx("div",{className:"space-y-2",children:["Heel makkelijk, alles is goed georganiseerd","Redelijk, met wat zoeken lukt het wel","Moeilijk, we zijn veel tijd kwijt aan zoeken","Zeer moeilijk, kennis verdwijnt bij vertrek personeel"].map(S=>e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"radio",name:"informatie_vindbaarheid",value:S,checked:t.informatie_vindbaarheid===S,onChange:E=>v("informatie_vindbaarheid",E.target.value),className:"w-4 h-4"}),e.jsx("span",{children:S})]},S))})]})]})]}),e.jsxs("section",{children:[e.jsx("h2",{className:"text-2xl font-bold mb-6 pb-2 border-b-2 border-[#FAB868]",children:"DEEL 4: AI-Readiness"}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-3",children:"Gebruiken jullie of jullie team al AI-tools?"}),e.jsx("div",{className:"space-y-2",children:["Nee, nog helemaal niet","Ja, af en toe (bijv. ChatGPT voor losse vragen)","Ja, regelmatig voor specifieke taken","Ja, geïntegreerd in onze werkprocessen"].map(S=>e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"radio",name:"ai_gebruik",value:S,checked:t.ai_gebruik===S,onChange:E=>v("ai_gebruik",E.target.value),className:"w-4 h-4"}),e.jsx("span",{children:S})]},S))})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-2",children:"Zo ja, welke AI-tools gebruiken jullie en waarvoor?"}),e.jsx(pt,{value:t.ai_tools_welke,onChange:S=>v("ai_tools_welke",S.target.value),rows:3})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-3",children:"Wat is jullie ervaring met AI tot nu toe?"}),e.jsx("div",{className:"space-y-2",children:["Zeer positief, we zien veel waarde","Positief, het helpt hier en daar","Neutraal, nog geen duidelijke mening","Negatief, valt tegen","We hebben nog geen ervaring","Anders"].map(S=>e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"radio",name:"ai_ervaring",value:S,checked:t.ai_ervaring===S,onChange:E=>v("ai_ervaring",E.target.value),className:"w-4 h-4"}),e.jsx("span",{children:S})]},S))})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-3",children:"Hoe kijkt het management/eigenaar aan tegen AI?"}),e.jsx("div",{className:"space-y-2",children:["Zeer enthousiast, wil er graag mee aan de slag","Positief, open voor mogelijkheden","Afwachtend, eerst zien dan geloven","Sceptisch, ziet vooral risico's","Neutraal/geen sterke mening","Verschillend per persoon"].map(S=>e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"radio",name:"management_houding",value:S,checked:t.management_houding===S,onChange:E=>v("management_houding",E.target.value),className:"w-4 h-4"}),e.jsx("span",{children:S})]},S))})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-3",children:"Hoe kijken medewerkers aan tegen AI?"}),e.jsx("div",{className:"space-y-2",children:["Enthousiast, willen ermee experimenteren","Positief, als het helpt is het goed","Neutraal, geen sterke mening","Bezorgd over impact op hun werk/rol","Weerstand, liever niet","Verschillend per persoon"].map(S=>e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"radio",name:"medewerkers_houding",value:S,checked:t.medewerkers_houding===S,onChange:E=>v("medewerkers_houding",E.target.value),className:"w-4 h-4"}),e.jsx("span",{children:S})]},S))})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-2",children:"Zijn er specifieke zorgen of vragen over AI?"}),e.jsx(pt,{value:t.ai_zorgen,onChange:S=>v("ai_zorgen",S.target.value),rows:3})]})]})]}),e.jsxs("section",{children:[e.jsx("h2",{className:"text-2xl font-bold mb-6 pb-2 border-b-2 border-[#FAB868]",children:"DEEL 5: Doelen & Verwachtingen"}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsxs("label",{className:"block font-semibold mb-3",children:["Wat is de belangrijkste reden om met 48-7 in gesprek te gaan?",e.jsx("br",{}),e.jsx("span",{className:"text-sm font-normal text-gray-600",children:"(Meerdere antwoorden mogelijk)"})]}),e.jsx("div",{className:"space-y-2",children:["Tijd besparen op repetitieve taken","Productiviteit verhogen","Kosten verlagen","Omzet verhogen","Betere service aan klanten","Schaalbaarheid vergroten","Concurrentievoordeel behalen","Kennis beter behouden/delen","Betere beslissingen kunnen nemen","Algemene verkenning wat AI kan betekenen","Anders"].map(S=>e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx(qh,{checked:t.redenen_contact.includes(S),onCheckedChange:E=>x("redenen_contact",S,E)}),e.jsx("span",{children:S})]},S))})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-2",children:"Als jullie over 6-12 maanden terugkijken, wat zou dan een succesvol resultaat zijn?"}),e.jsx(pt,{value:t.succesvol_resultaat,onChange:S=>v("succesvol_resultaat",S.target.value),rows:4})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-3",children:"Hoe urgent is dit voor jullie?"}),e.jsx("div",{className:"space-y-2",children:["Zeer urgent, we willen zo snel mogelijk starten","Redelijk urgent, binnen 1-3 maanden","Niet urgent, we verkennen nog","Afhankelijk van wat we ontdekken"].map(S=>e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"radio",name:"urgentie",value:S,checked:t.urgentie===S,onChange:E=>v("urgentie",E.target.value),className:"w-4 h-4"}),e.jsx("span",{children:S})]},S))})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-3",children:"Is er budget beschikbaar voor AI-implementatie?"}),e.jsx("div",{className:"space-y-2",children:["Ja, budget is gereserveerd","Mogelijk, bij goede business case","Beperkt, moeten klein beginnen","Nee, nog niet in huidige planning","Weet ik nog niet","Geef ik liever tijdens gesprek aan"].map(S=>e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"radio",name:"budget_beschikbaar",value:S,checked:t.budget_beschikbaar===S,onChange:E=>v("budget_beschikbaar",E.target.value),className:"w-4 h-4"}),e.jsx("span",{children:S})]},S))})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-3",children:"Indicatie budget range (optioneel)"}),e.jsx("div",{className:"space-y-2",children:["< €5.000","€5.000 - €15.000","€15.000 - €30.000","€30.000 - €50.000","€50.000+","Geef ik liever niet aan"].map(S=>e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"radio",name:"budget_range",value:S,checked:t.budget_range===S,onChange:E=>v("budget_range",E.target.value),className:"w-4 h-4"}),e.jsx("span",{children:S})]},S))})]})]})]}),e.jsxs("section",{children:[e.jsx("h2",{className:"text-2xl font-bold mb-6 pb-2 border-b-2 border-[#FAB868]",children:"DEEL 6: Discovery Sessie"}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-2",children:"Zijn er specifieke onderwerpen die jullie zeker besproken willen hebben?"}),e.jsx(pt,{value:t.specifieke_onderwerpen,onChange:S=>v("specifieke_onderwerpen",S.target.value),rows:4})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block font-semibold mb-2",children:["Zijn er documenten/informatie die jullie vooraf willen delen?",e.jsx("br",{}),e.jsx("span",{className:"text-sm font-normal text-gray-600",children:"(Bijvoorbeeld: organogram, processchema's, huidige toolstack, eerdere analyses)"})]}),e.jsx(pt,{value:t.te_delen_documenten,onChange:S=>v("te_delen_documenten",S.target.value),rows:3,placeholder:"Beschrijf welke documenten je wilt delen..."}),e.jsxs("div",{className:"mt-4",children:[e.jsx("label",{className:"block font-semibold mb-2",children:"Upload documenten"}),e.jsxs("div",{className:"border-2 border-dashed border-gray-300 rounded-xl p-6 text-center",children:[e.jsx("input",{type:"file",multiple:!0,onChange:N,disabled:f,className:"hidden",id:"file-upload",accept:".pdf,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.jpg,.jpeg,.png"}),e.jsxs("label",{htmlFor:"file-upload",className:"cursor-pointer flex flex-col items-center",children:[e.jsx(z4,{className:"w-8 h-8 text-gray-400 mb-2"}),e.jsx("span",{className:"text-sm text-gray-600",children:f?"Bezig met uploaden...":"Klik om bestanden te uploaden"}),e.jsx("span",{className:"text-xs text-gray-400 mt-1",children:"PDF, Word, Excel, PowerPoint, afbeeldingen"})]})]}),t.geupload_documenten.length>0&&e.jsx("div",{className:"mt-3 space-y-2",children:t.geupload_documenten.map((S,E)=>e.jsxs("div",{className:"flex items-center justify-between bg-gray-50 p-3 rounded-lg",children:[e.jsx("span",{className:"text-sm text-gray-700 truncate flex-1",children:S.split("/").pop()}),e.jsx("button",{type:"button",onClick:()=>w(S),className:"ml-2 text-red-600 hover:text-red-800",children:e.jsx(Ht,{className:"w-4 h-4"})})]},E))})]})]})]})]}),e.jsxs("section",{children:[e.jsx("h2",{className:"text-2xl font-bold mb-6 pb-2 border-b-2 border-[#FAB868]",children:"DEEL 7: Aanvullende Informatie"}),e.jsx("div",{className:"space-y-6",children:e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-2",children:"Is er nog iets dat wij zouden moeten weten voordat we met jullie in gesprek gaan?"}),e.jsx(pt,{value:t.overige_informatie,onChange:S=>v("overige_informatie",S.target.value),rows:5})]})})]}),d&&e.jsxs("div",{className:"bg-red-50 border-l-4 border-red-500 p-4 text-red-700",children:[e.jsx("p",{className:"font-semibold mb-2",children:d}),y.length>0&&e.jsx("ul",{className:"list-disc list-inside text-sm space-y-1 mt-2",children:y.map((S,E)=>e.jsx("li",{children:S},E))})]}),e.jsx("div",{className:"pt-6 border-t-2",children:e.jsx(ae,{type:"submit",disabled:r,className:"w-full md:w-auto px-12 py-6 text-lg bg-[#FAB868] hover:bg-[#E5A04D] text-[#0D0D0F] font-bold",children:r?e.jsxs(e.Fragment,{children:[e.jsx(R4,{className:"w-5 h-5 mr-2 animate-spin"}),"Verzenden..."]}):"Discovery Scan Verzenden"})})]})]})})})}function qee(){const[t,n]=D.useState("input"),[r,i]=D.useState({url:"",description:""}),[s,a]=D.useState({sector:"",target_audience:"",ai_usage:"",ai_purpose:[],ai_decisions:"",human_oversight:"",high_risk_processes:[],processes_personal_data:"",sensitive_personal_data:"",ai_origin:"",ai_transparency:"",ai_responsible:"",risk_evaluation:"",user_notification:""}),[o,c]=D.useState(!1),[d,h]=D.useState(null),[f,m]=D.useState(null),[p,g]=D.useState(null),[y,j]=D.useState(!1),[v,x]=D.useState([]),[N,w]=D.useState(!1),[k,A]=D.useState({name:"",email:""}),[S,E]=D.useState(!1),[C,B]=D.useState(!1),[F,I]=D.useState(!1);D.useEffect(()=>{const K=new URLSearchParams(window.location.search).get("report_id");K&&R(K)},[]),D.useEffect(()=>{(t==="submitted"||t==="results")&&window.scrollTo({top:0,behavior:"smooth"})},[t]);const R=async H=>{var K,Y;I(!0),g(null);try{const{data:P}=await ce.functions.invoke("getEuAiActReport",{submission_id:H});P.success&&P.analysis?(h(P.analysis),m(H),n("results")):g(P.error||"Rapport niet gevonden")}catch(P){console.error("Error loading shared report:",P),g(((Y=(K=P.response)==null?void 0:K.data)==null?void 0:Y.error)||P.message||"Kon rapport niet laden. Controleer de link en probeer opnieuw.")}finally{I(!1)}},z=H=>{if(H.preventDefault(),!r.url&&!r.description){g("Vul een website URL of beschrijving in");return}n("questionnaire")},q=async()=>{if(!k.email||!k.name){g("Vul je naam en email in om de analyse te ontvangen"),window.scrollTo({top:0,behavior:"smooth"});return}n("analyzing"),c(!0),g(null),h(null);try{const{data:H}=await ce.functions.invoke("createEuAiActRequest",{website_url:r.url,company_description:r.description,questionnaire:s,user_email:k.email,user_name:k.name});if(H.success){if(H.submission_id)try{const K=await ce.functions.invoke("sendEuAiActReport",{submission_id:H.submission_id,recipient_email:k.email,recipient_name:k.name});console.log("Email sent:",K.data)}catch(K){console.error("Email send error:",K)}n("submitted"),window.scrollTo({top:0,behavior:"smooth"})}else g(H.error||"Er ging iets mis bij het indienen van de aanvraag"),window.scrollTo({top:0,behavior:"smooth"}),n("questionnaire")}catch(H){console.error("Error submitting request:",H),g("Kon de aanvraag niet indienen. Probeer het opnieuw."),n("questionnaire")}finally{c(!1)}},U=H=>{switch(H==null?void 0:H.toLowerCase()){case"onaanvaardbaar":return e.jsx(Tr,{className:"w-6 h-6 text-red-600"});case"hoog":return e.jsx(Wo,{className:"w-6 h-6 text-orange-600"});case"beperkt":return e.jsx(kh,{className:"w-6 h-6 text-yellow-600"});case"minimaal":return e.jsx(gt,{className:"w-6 h-6 text-green-600"});default:return e.jsx(kh,{className:"w-6 h-6 text-gray-600"})}},Q=H=>{switch(H==null?void 0:H.toLowerCase()){case"onaanvaardbaar":return"bg-red-50 border-red-200";case"hoog":return"bg-orange-50 border-orange-200";case"beperkt":return"bg-yellow-50 border-yellow-200";case"minimaal":return"bg-green-50 border-green-200";default:return"bg-gray-50 border-gray-200"}};return t==="questionnaire"?e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-blue-50 to-white",children:e.jsxs("div",{className:"max-w-3xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-8",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-blue-100 rounded-full text-blue-700 text-sm font-medium mb-6",children:[e.jsx(Vn,{className:"w-4 h-4"}),"Stap 2 van 3: Vragenlijst"]}),e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Vertel ons meer over je AI-gebruik"}),e.jsx("p",{className:"text-gray-600",children:"Dit helpt ons een nauwkeurigere compliance-analyse te maken"})]}),e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-100 space-y-8",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-4",children:"Bedrijfscontext"}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"In welke sector is jullie bedrijf actief?"}),e.jsxs("select",{value:s.sector,onChange:H=>a({...s,sector:H.target.value}),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",children:[e.jsx("option",{value:"",children:"Selecteer sector"}),e.jsx("option",{value:"retail",children:"Retail / e-commerce"}),e.jsx("option",{value:"financial",children:"Financieel"}),e.jsx("option",{value:"hr",children:"HR / recruitment"}),e.jsx("option",{value:"healthcare",children:"Zorg"}),e.jsx("option",{value:"industry",children:"Industrie / logistiek"}),e.jsx("option",{value:"marketing",children:"Marketing / media"}),e.jsx("option",{value:"it",children:"IT / SaaS"}),e.jsx("option",{value:"government",children:"Overheid / semi-overheid"}),e.jsx("option",{value:"other",children:"Anders"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Voor wie zijn jullie diensten vooral bedoeld?"}),e.jsxs("select",{value:s.target_audience,onChange:H=>a({...s,target_audience:H.target.value}),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",children:[e.jsx("option",{value:"",children:"Selecteer doelgroep"}),e.jsx("option",{value:"consumers",children:"Consumenten"}),e.jsx("option",{value:"businesses",children:"Bedrijven"}),e.jsx("option",{value:"both",children:"Beide"})]})]})]})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-4",children:"AI gebruik"}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Wordt AI gebruikt binnen jullie organisatie?"}),e.jsxs("select",{value:s.ai_usage,onChange:H=>a({...s,ai_usage:H.target.value}),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",children:[e.jsx("option",{value:"",children:"Selecteer"}),e.jsx("option",{value:"active",children:"Ja, actief"}),e.jsx("option",{value:"limited",children:"Ja, beperkt / experimenten"}),e.jsx("option",{value:"no",children:"Nee"}),e.jsx("option",{value:"unknown",children:"Weet ik niet"})]})]}),(s.ai_usage==="active"||s.ai_usage==="limited")&&e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Waarvoor gebruiken jullie AI vooral? (meerdere keuzes mogelijk)"}),e.jsx("div",{className:"space-y-2",children:["Klantenservice (chatbots, mail)","Marketing / content","Analyse / voorspellingen","Besluitvorming","Product / software","HR","Anders"].map(H=>e.jsxs("label",{className:"flex items-center gap-2",children:[e.jsx("input",{type:"checkbox",checked:s.ai_purpose.includes(H),onChange:K=>{K.target.checked?a({...s,ai_purpose:[...s.ai_purpose,H]}):a({...s,ai_purpose:s.ai_purpose.filter(Y=>Y!==H)})},className:"w-4 h-4 text-blue-600 rounded focus:ring-blue-500"}),e.jsx("span",{className:"text-gray-700",children:H})]},H))})]})]})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-4",children:"Impact op mensen"}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Neemt AI beslissingen die directe gevolgen hebben voor mensen?"}),e.jsx("p",{className:"text-xs text-gray-500 mb-2",children:"Bijv: afwijzing sollicitant, kredietscore, prijsbepaling, toegang tot dienst"}),e.jsxs("select",{value:s.ai_decisions,onChange:H=>a({...s,ai_decisions:H.target.value}),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",children:[e.jsx("option",{value:"",children:"Selecteer"}),e.jsx("option",{value:"yes",children:"Ja"}),e.jsx("option",{value:"no",children:"Nee"}),e.jsx("option",{value:"unknown",children:"Weet ik niet"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Is er altijd een mens die de AI-uitkomst controleert of kan overrulen?"}),e.jsxs("select",{value:s.human_oversight,onChange:H=>a({...s,human_oversight:H.target.value}),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",children:[e.jsx("option",{value:"",children:"Selecteer"}),e.jsx("option",{value:"yes",children:"Ja"}),e.jsx("option",{value:"sometimes",children:"Soms"}),e.jsx("option",{value:"no",children:"Nee"})]})]})]})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-4",children:"Gevoelige toepassingen"}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Wordt AI gebruikt in één van deze processen? (meerdere keuzes mogelijk)"}),e.jsx("div",{className:"space-y-2",children:["Werving & selectie","Beoordeling medewerkers","Krediet / financiële beoordeling","Fraude-detectie","Toegang tot diensten of producten","Biometrie (gezicht, stem, gedrag)","Geen van bovenstaande"].map(H=>e.jsxs("label",{className:"flex items-center gap-2",children:[e.jsx("input",{type:"checkbox",checked:s.high_risk_processes.includes(H),onChange:K=>{K.target.checked?a({...s,high_risk_processes:[...s.high_risk_processes,H]}):a({...s,high_risk_processes:s.high_risk_processes.filter(Y=>Y!==H)})},className:"w-4 h-4 text-blue-600 rounded focus:ring-blue-500"}),e.jsx("span",{className:"text-gray-700",children:H})]},H))})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Verwerkt AI persoonsgegevens?"}),e.jsxs("select",{value:s.processes_personal_data,onChange:H=>a({...s,processes_personal_data:H.target.value}),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",children:[e.jsx("option",{value:"",children:"Selecteer"}),e.jsx("option",{value:"yes",children:"Ja"}),e.jsx("option",{value:"no",children:"Nee"}),e.jsx("option",{value:"unknown",children:"Weet ik niet"})]})]}),s.processes_personal_data==="yes"&&e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Gaat het om gevoelige persoonsgegevens?"}),e.jsx("p",{className:"text-xs text-gray-500 mb-2",children:"Bijv: gezondheid, etniciteit, biometrie"}),e.jsxs("select",{value:s.sensitive_personal_data,onChange:H=>a({...s,sensitive_personal_data:H.target.value}),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",children:[e.jsx("option",{value:"",children:"Selecteer"}),e.jsx("option",{value:"yes",children:"Ja"}),e.jsx("option",{value:"no",children:"Nee"}),e.jsx("option",{value:"unknown",children:"Weet ik niet"})]})]})]})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-4",children:"Software & herkomst"}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Hoe komt de AI tot stand?"}),e.jsxs("select",{value:s.ai_origin,onChange:H=>a({...s,ai_origin:H.target.value}),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",children:[e.jsx("option",{value:"",children:"Selecteer"}),e.jsx("option",{value:"self_developed",children:"Zelf ontwikkeld"}),e.jsx("option",{value:"vendor",children:"Ingekocht bij leverancier"}),e.jsx("option",{value:"tools",children:"Via tools zoals ChatGPT, Copilot, Midjourney"}),e.jsx("option",{value:"combination",children:"Combinatie"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Weten jullie hoe de AI tot zijn uitkomsten komt?"}),e.jsxs("select",{value:s.ai_transparency,onChange:H=>a({...s,ai_transparency:H.target.value}),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",children:[e.jsx("option",{value:"",children:"Selecteer"}),e.jsx("option",{value:"well_documented",children:"Ja, goed gedocumenteerd"}),e.jsx("option",{value:"partially",children:"Gedeeltelijk"}),e.jsx("option",{value:"no",children:"Nee"})]})]})]})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-4",children:"Governance & compliance"}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Is iemand formeel verantwoordelijk voor AI binnen de organisatie?"}),e.jsxs("select",{value:s.ai_responsible,onChange:H=>a({...s,ai_responsible:H.target.value}),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",children:[e.jsx("option",{value:"",children:"Selecteer"}),e.jsx("option",{value:"yes",children:"Ja"}),e.jsx("option",{value:"no",children:"Nee"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Worden AI-risico's periodiek geëvalueerd?"}),e.jsxs("select",{value:s.risk_evaluation,onChange:H=>a({...s,risk_evaluation:H.target.value}),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",children:[e.jsx("option",{value:"",children:"Selecteer"}),e.jsx("option",{value:"yes",children:"Ja"}),e.jsx("option",{value:"no",children:"Nee"}),e.jsx("option",{value:"unknown",children:"Weet ik niet"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Informeren jullie gebruikers dat AI wordt ingezet?"}),e.jsxs("select",{value:s.user_notification,onChange:H=>a({...s,user_notification:H.target.value}),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",children:[e.jsx("option",{value:"",children:"Selecteer"}),e.jsx("option",{value:"yes",children:"Ja"}),e.jsx("option",{value:"sometimes",children:"Soms"}),e.jsx("option",{value:"no",children:"Nee"})]})]})]})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-4",children:"Ontvang je analyse"}),e.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsxs("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:["Naam ",e.jsx("span",{className:"text-red-600 font-bold text-lg",children:"*"})]}),e.jsx("p",{className:"text-xs text-gray-500 mb-2",children:"(Verplicht veld)"}),e.jsx(me,{type:"text",placeholder:"Je naam",value:k.name,onChange:H=>A({...k,name:H.target.value}),className:k.name?"":"border-red-300 bg-red-50",required:!0})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:["Email ",e.jsx("span",{className:"text-red-600 font-bold text-lg",children:"*"})]}),e.jsx("p",{className:"text-xs text-gray-500 mb-2",children:"(Verplicht veld)"}),e.jsx(me,{type:"email",placeholder:"je@email.nl",value:k.email,onChange:H=>A({...k,email:H.target.value}),className:k.email?"":"border-red-300 bg-red-50",required:!0})]})]})]}),e.jsxs("div",{className:"flex gap-4 pt-6 border-t border-gray-200",children:[e.jsx(ae,{variant:"outline",onClick:()=>n("input"),className:"flex-1",children:"Vorige"}),e.jsx(ae,{onClick:q,disabled:o||!k.email||!k.name,className:"flex-1 bg-blue-600 hover:bg-blue-700",children:o?"Indienen...":"Analyseer"})]})]})]})}):F?e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-blue-50 to-white",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-32 text-center",children:e.jsxs(Z.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},children:[e.jsx("div",{className:"w-20 h-20 bg-blue-100 rounded-full flex items-center justify-center mx-auto mb-6",children:e.jsxs("svg",{className:"animate-spin w-10 h-10 text-blue-600",viewBox:"0 0 24 24",children:[e.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),e.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]})}),e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Rapport aan het laden..."})]})})}):t==="submitted"?e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-green-50 to-white",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-32 text-center",children:e.jsxs(Z.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},children:[e.jsx("div",{className:"w-20 h-20 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-6",children:e.jsx(gt,{className:"w-10 h-10 text-green-600"})}),e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Aanvraag ontvangen!"}),e.jsxs("p",{className:"text-xl text-gray-600 mb-8",children:["Je ontvangt de EU AI Act compliance analyse binnen enkele minuten per email op ",e.jsx("strong",{children:k.email})]}),e.jsxs("div",{className:"bg-white rounded-2xl p-6 max-w-md mx-auto border border-gray-100 mb-8",children:[e.jsx("p",{className:"text-sm text-gray-600 mb-4",children:"De analyse wordt momenteel uitgevoerd. Dit kan enkele minuten duren omdat we:"}),e.jsxs("ul",{className:"text-left space-y-2 text-sm text-gray-700",children:[e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(gt,{className:"w-4 h-4 text-green-500 mt-0.5 flex-shrink-0"}),e.jsx("span",{children:"Je bedrijfscontext analyseren"})]}),e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(gt,{className:"w-4 h-4 text-green-500 mt-0.5 flex-shrink-0"}),e.jsx("span",{children:"AI-toepassingen classificeren"})]}),e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(gt,{className:"w-4 h-4 text-green-500 mt-0.5 flex-shrink-0"}),e.jsx("span",{children:"Compliance vereisten bepalen"})]})]})]}),e.jsx(ae,{onClick:()=>window.location.href=se("Home"),className:"bg-gray-900 text-white hover:bg-gray-800",children:"Terug naar home"})]})})}):p?e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-red-50 to-white",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-32 text-center",children:e.jsxs(Z.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},children:[e.jsx("div",{className:"w-20 h-20 bg-red-100 rounded-full flex items-center justify-center mx-auto mb-6",children:e.jsx(Tr,{className:"w-10 h-10 text-red-600"})}),e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Er ging iets mis"}),e.jsx("p",{className:"text-xl text-gray-600 mb-8",children:p}),e.jsx(ae,{onClick:()=>{g(null),i({url:"",description:""})},className:"bg-gray-900 text-white hover:bg-gray-800",children:"Probeer opnieuw"})]})})}):d?e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-gray-50 to-white",children:e.jsxs("div",{className:"max-w-5xl mx-auto px-3 sm:px-6 lg:px-8 py-6 sm:py-12",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-blue-100 rounded-full text-blue-700 text-sm font-medium mb-6",children:[e.jsx(Vn,{className:"w-4 h-4"}),"EU AI Act Compliance Check"]}),e.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-4",children:d.company_name}),e.jsx("p",{className:"text-xl text-gray-600",children:"Compliance analyse voor de EU AI Act"})]}),d.company_overview&&e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:"bg-white rounded-2xl p-8 mb-8 border border-gray-100",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx(Xa,{className:"w-6 h-6 text-blue-600"}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Bedrijfsoverzicht"})]}),e.jsx("p",{className:"text-gray-700",children:d.company_overview})]}),d.identified_ai_applications&&d.identified_ai_applications.length>0&&e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"bg-white rounded-2xl p-4 sm:p-8 mb-8 border border-gray-100",children:[e.jsx("h2",{className:"text-xl sm:text-2xl font-bold text-gray-900 mb-6",children:"Geïdentificeerde AI Toepassingen"}),e.jsx("div",{className:"space-y-4",children:d.identified_ai_applications.map((H,K)=>{var Y,P,T;return e.jsx("div",{className:`p-4 sm:p-6 rounded-xl border-2 ${Q(H.risk_level)}`,children:e.jsxs("div",{className:"flex items-start gap-3 sm:gap-4",children:[e.jsx("div",{className:"flex-shrink-0",children:U(H.risk_level)}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-start sm:justify-between gap-2 mb-2",children:[e.jsx("h3",{className:"text-base sm:text-lg font-bold text-gray-900 break-words",children:H.application_name}),e.jsx("span",{className:`px-3 py-1 rounded-full text-xs sm:text-sm font-semibold whitespace-nowrap self-start ${((Y=H.risk_level)==null?void 0:Y.toLowerCase())==="onaanvaardbaar"?"bg-red-100 text-red-800":((P=H.risk_level)==null?void 0:P.toLowerCase())==="hoog"?"bg-orange-100 text-orange-800":((T=H.risk_level)==null?void 0:T.toLowerCase())==="beperkt"?"bg-yellow-100 text-yellow-800":"bg-green-100 text-green-800"}`,children:H.risk_level})]}),e.jsx("p",{className:"text-sm sm:text-base text-gray-700 mb-3 break-words",children:H.description}),H.applicable_articles&&e.jsxs("div",{className:"bg-blue-50 p-3 rounded-lg mb-3",children:[e.jsx("p",{className:"text-sm font-medium text-blue-900 mb-1",children:"📜 Van toepassing:"}),e.jsx("p",{className:"text-sm text-blue-800 break-words",children:H.applicable_articles})]}),e.jsxs("div",{className:"bg-white/50 p-3 rounded-lg mb-3",children:[e.jsx("p",{className:"text-sm font-medium text-gray-700 mb-1",children:"âš–ï¸ Risicorechtvaardiging:"}),e.jsx("p",{className:"text-sm text-gray-600 break-words",children:H.risk_justification})]}),H.detailed_explanation&&e.jsxs("div",{className:"bg-gray-50 p-3 rounded-lg",children:[e.jsx("p",{className:"text-sm font-medium text-gray-700 mb-1",children:"💡 Gedetailleerde uitleg:"}),e.jsx("p",{className:"text-sm text-gray-600 break-words",children:H.detailed_explanation})]})]})]})},K)})})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3},className:"bg-orange-50 rounded-2xl p-4 sm:p-8 mb-8 border-2 border-orange-200",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx(Wo,{className:"w-6 h-6 text-orange-600 flex-shrink-0"}),e.jsx("h2",{className:"text-xl sm:text-2xl font-bold text-gray-900",children:"Hoog-Risico Compliance"})]}),!d.high_risk_compliance||!d.high_risk_compliance.applicable_articles&&(!d.high_risk_compliance.required_measures||d.high_risk_compliance.required_measures.length===0)&&!d.high_risk_compliance.documentation_requirements&&!d.high_risk_compliance.conformity_assessment?e.jsxs("div",{className:"text-center py-8",children:[e.jsx(gt,{className:"w-12 h-12 text-green-600 mx-auto mb-3"}),e.jsx("p",{className:"text-lg font-semibold text-gray-900 mb-2",children:"Niet van toepassing"}),e.jsx("p",{className:"text-gray-600",children:"Er zijn geen hoog-risico AI-systemen geïdentificeerd die specifieke compliance-maatregelen vereisen."})]}):e.jsxs(e.Fragment,{children:[d.high_risk_compliance.applicable_articles&&e.jsxs("div",{className:"mb-6",children:[e.jsx("h3",{className:"font-semibold text-gray-900 mb-2",children:"Van toepassing zijnde artikelen:"}),e.jsx("p",{className:"text-gray-700",children:d.high_risk_compliance.applicable_articles})]}),d.high_risk_compliance.required_measures&&d.high_risk_compliance.required_measures.length>0&&e.jsxs("div",{className:"mb-6",children:[e.jsx("h3",{className:"font-semibold text-gray-900 mb-3",children:"Vereiste maatregelen:"}),e.jsx("ul",{className:"space-y-2",children:d.high_risk_compliance.required_measures.map((H,K)=>e.jsxs("li",{className:"flex items-start gap-2 text-gray-700",children:[e.jsx(gt,{className:"w-5 h-5 text-orange-600 mt-0.5 flex-shrink-0"}),e.jsx("span",{children:H})]},K))})]}),d.high_risk_compliance.documentation_requirements&&e.jsxs("div",{className:"mb-6",children:[e.jsx("h3",{className:"font-semibold text-gray-900 mb-2",children:"Documentatie vereisten:"}),e.jsx("p",{className:"text-gray-700",children:d.high_risk_compliance.documentation_requirements})]}),d.high_risk_compliance.conformity_assessment&&e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-gray-900 mb-2",children:"Conformiteitsbeoordeling:"}),e.jsx("p",{className:"text-gray-700",children:d.high_risk_compliance.conformity_assessment})]})]})]}),d.gdpr_privacy&&e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.4},className:"bg-blue-50 rounded-2xl p-4 sm:p-8 mb-8 border-2 border-blue-200",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx(D1,{className:"w-6 h-6 text-blue-600 flex-shrink-0"}),e.jsx("h2",{className:"text-xl sm:text-2xl font-bold text-gray-900",children:"GDPR & Privacy Implicaties"})]}),d.gdpr_privacy.data_handling&&e.jsxs("div",{className:"mb-6",children:[e.jsx("h3",{className:"font-semibold text-gray-900 mb-2",children:"Gegevensverwerking:"}),e.jsx("p",{className:"text-sm sm:text-base text-gray-700 break-words",children:d.gdpr_privacy.data_handling})]}),d.gdpr_privacy.consent_requirements&&e.jsxs("div",{className:"mb-6",children:[e.jsx("h3",{className:"font-semibold text-gray-900 mb-2",children:"Toestemmingsvereisten:"}),e.jsx("p",{className:"text-sm sm:text-base text-gray-700 break-words",children:d.gdpr_privacy.consent_requirements})]}),d.gdpr_privacy.data_breach_risks&&d.gdpr_privacy.data_breach_risks.length>0&&e.jsxs("div",{className:"mb-6",children:[e.jsx("h3",{className:"font-semibold text-gray-900 mb-3",children:"Risico's voor datalekken:"}),e.jsx("ul",{className:"space-y-2",children:d.gdpr_privacy.data_breach_risks.map((H,K)=>e.jsxs("li",{className:"flex items-start gap-2 text-gray-700",children:[e.jsx(Tr,{className:"w-5 h-5 text-red-600 mt-0.5 flex-shrink-0"}),e.jsx("span",{children:H})]},K))})]}),d.gdpr_privacy.cybersecurity_risks&&d.gdpr_privacy.cybersecurity_risks.length>0&&e.jsxs("div",{className:"mb-6",children:[e.jsx("h3",{className:"font-semibold text-gray-900 mb-3",children:"Cybersecurity risico's:"}),e.jsx("ul",{className:"space-y-2",children:d.gdpr_privacy.cybersecurity_risks.map((H,K)=>e.jsxs("li",{className:"flex items-start gap-2 text-gray-700",children:[e.jsx(Vn,{className:"w-5 h-5 text-red-600 mt-0.5 flex-shrink-0"}),e.jsx("span",{children:H})]},K))})]}),d.gdpr_privacy.recommendations&&d.gdpr_privacy.recommendations.length>0&&e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-gray-900 mb-3",children:"Aanbevelingen:"}),e.jsx("ul",{className:"space-y-2",children:d.gdpr_privacy.recommendations.map((H,K)=>e.jsxs("li",{className:"flex items-start gap-2 text-gray-700",children:[e.jsx(gt,{className:"w-5 h-5 text-green-600 mt-0.5 flex-shrink-0"}),e.jsx("span",{children:H})]},K))})]})]}),d.training_recommendations&&d.training_recommendations.length>0&&e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.5},className:"bg-white rounded-2xl p-4 sm:p-8 mb-8 border border-gray-100",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx($t,{className:"w-6 h-6 text-purple-600 flex-shrink-0"}),e.jsx("h2",{className:"text-xl sm:text-2xl font-bold text-gray-900",children:"Aanbevolen Trainingen"})]}),e.jsx("div",{className:"space-y-4",children:d.training_recommendations.map((H,K)=>e.jsxs("div",{className:"p-4 sm:p-5 bg-purple-50 rounded-xl border border-purple-100",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-start sm:justify-between gap-3 mb-3",children:[e.jsxs("div",{className:"flex items-start gap-3 flex-1 min-w-0",children:[e.jsx("div",{className:"w-8 h-8 bg-purple-600 rounded-lg flex items-center justify-center flex-shrink-0",children:e.jsx("span",{className:"text-white font-bold text-sm",children:K+1})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("h3",{className:"font-bold text-gray-900 text-base sm:text-lg mb-1 break-words",children:H.training_name}),H.target_audience&&e.jsxs("p",{className:"text-sm text-purple-700 font-medium mb-2 break-words",children:["👥 Doelgroep: ",H.target_audience]})]})]}),e.jsx(de,{to:se("Contact")+`?training=${encodeURIComponent(H.training_name)}`,className:"flex-shrink-0 w-full sm:w-auto px-4 py-2 bg-purple-600 text-white text-sm font-semibold rounded-lg hover:bg-purple-700 transition-colors text-center",children:"Aanvragen"})]}),e.jsxs("div",{className:"space-y-3 sm:ml-11",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium text-gray-700 mb-1",children:"📚 Waarom relevant:"}),e.jsx("p",{className:"text-sm text-gray-600 break-words",children:H.reason})]}),H.expected_outcomes&&e.jsxs("div",{className:"bg-white p-3 rounded-lg",children:[e.jsx("p",{className:"text-sm font-medium text-gray-700 mb-1",children:"🎯 Resultaat na training:"}),e.jsx("p",{className:"text-sm text-gray-600 break-words",children:H.expected_outcomes})]})]})]},K))})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.6},className:"bg-gray-100 rounded-2xl p-6 mb-8 text-center",children:[e.jsx("p",{className:"text-gray-600 mb-4",children:"Deze analyse is gebaseerd op de EU AI Act verordening"}),e.jsxs("a",{href:"https://eur-lex.europa.eu/legal-content/NL/TXT/HTML/?uri=OJ:L_202401689",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-blue-600 hover:text-blue-700 font-semibold",children:["Bekijk de volledige EU AI Act verordening",e.jsx($e,{className:"w-5 h-5"})]})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.75},className:"bg-white rounded-2xl p-4 sm:p-8 mb-8 border border-gray-100",children:[e.jsx("h2",{className:"text-xl sm:text-2xl font-bold text-gray-900 mb-6",children:"Hoe 48-7 je kan helpen"}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-4 sm:gap-6",children:[e.jsxs("div",{className:"p-4 sm:p-6 bg-blue-50 rounded-xl",children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-2 text-sm sm:text-base",children:"🎯 Compliance Audit & Roadmap"}),e.jsx("p",{className:"text-gray-700 text-xs sm:text-sm break-words",children:"Wij voeren een grondige audit uit van je AI-systemen en stellen een concreet stappenplan op om compliant te worden met de EU AI Act."})]}),e.jsxs("div",{className:"p-4 sm:p-6 bg-purple-50 rounded-xl",children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-2 text-sm sm:text-base",children:"📋 Documentatie & Implementatie"}),e.jsx("p",{className:"text-gray-700 text-xs sm:text-sm break-words",children:"We helpen je met het opstellen van alle benodigde documentatie, risicobeoordelingen en conformiteitsbeoordelingen."})]}),e.jsxs("div",{className:"p-4 sm:p-6 bg-green-50 rounded-xl",children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-2 text-sm sm:text-base",children:"ðŸ›¡ï¸ AI Governance & Toezicht"}),e.jsx("p",{className:"text-gray-700 text-xs sm:text-sm break-words",children:"Implementatie van AI governance frameworks, inclusief menselijk toezicht en risicobeheersystemen."})]}),e.jsxs("div",{className:"p-4 sm:p-6 bg-amber-50 rounded-xl",children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-2 text-sm sm:text-base",children:"🔄 Doorlopende Compliance"}),e.jsx("p",{className:"text-gray-700 text-xs sm:text-sm break-words",children:"Periodieke evaluaties, updates van documentatie en begeleiding bij nieuwe AI-implementaties."})]})]})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.8},className:"bg-gradient-to-r from-blue-600 to-indigo-600 rounded-2xl p-8 text-white text-center",children:[e.jsx("h2",{className:"text-2xl font-bold mb-4",children:"Plan een vrijblijvend gesprek"}),e.jsx("p",{className:"text-blue-100 mb-6 text-lg",children:"Bespreek je specifieke situatie met onze AI compliance experts"}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[e.jsxs(de,{to:se("Contact"),className:"inline-flex items-center justify-center gap-2 px-8 py-4 bg-white text-blue-700 font-semibold rounded-xl hover:bg-gray-100 transition-all",children:["Neem contact op",e.jsx($e,{className:"w-5 h-5"})]}),e.jsx(de,{to:se("ImpactRapport"),className:"inline-flex items-center justify-center gap-2 px-8 py-4 border-2 border-white text-white font-semibold rounded-xl hover:bg-white/10 transition-all",children:"Doe Impact Rapport"})]})]}),!1]})}):y?e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-blue-50 to-white",children:e.jsxs("div",{className:"max-w-2xl mx-auto px-4 sm:px-6 lg:px-8 py-20",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-8",children:[e.jsx(kh,{className:"w-16 h-16 text-blue-600 mx-auto mb-4"}),e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Meer informatie nodig"}),e.jsx("p",{className:"text-gray-600",children:"Beantwoord de volgende vragen voor een betere analyse"})]}),e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-100",children:[e.jsx("div",{className:"space-y-6",children:v.map((H,K)=>e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:H}),e.jsx(pt,{placeholder:"Jouw antwoord...",className:"min-h-24"})]},K))}),e.jsxs("div",{className:"flex gap-4 mt-6",children:[e.jsx(ae,{variant:"outline",onClick:()=>{j(!1),x([])},className:"flex-1",children:"Annuleren"}),e.jsx(ae,{onClick:q,className:"flex-1 bg-blue-600 hover:bg-blue-700",children:"Analyseer"})]})]})]})}):e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-blue-50 to-white",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-20",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[e.jsx("h1",{className:"text-5xl sm:text-6xl lg:text-7xl font-bold text-[#0D0D0F] mb-8",children:"EU AI Act - wat zijn de gevolgen voor jouw bedrijf?"}),e.jsx("p",{className:"text-2xl text-[#9CA3AF] max-w-2xl mx-auto",children:"Ontdek welke verplichtingen van toepassing zijn op jouw bedrijf"})]}),e.jsx(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"bg-white rounded-2xl p-8 shadow-sm border border-gray-100",children:e.jsxs("form",{onSubmit:z,className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Website URL (optioneel)"}),e.jsx(me,{type:"text",placeholder:"jouwbedrijf.nl",value:r.url,onChange:H=>i({...r,url:H.target.value}),className:"text-lg py-6"})]}),e.jsx("div",{className:"text-center text-gray-500 font-medium",children:"OF"}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Beschrijf wat je bedrijf doet"}),e.jsx(pt,{placeholder:"Wij zijn een online retailer die kleding verkoopt via een webshop...",value:r.description,onChange:H=>i({...r,description:H.target.value}),className:"min-h-32"})]}),e.jsx(ae,{type:"submit",disabled:!r.url&&!r.description,className:"w-full py-6 bg-[#FAB868] hover:bg-[#E5A04D] text-[#0D0D0F] font-bold text-lg",children:e.jsxs("span",{className:"flex items-center gap-2 justify-center",children:[e.jsx(Vn,{className:"w-5 h-5"}),"Start EU AI Act Check",e.jsx($e,{className:"w-5 h-5"})]})}),e.jsx("p",{className:"text-xs text-gray-500 text-center",children:"✓ 100% gratis • ✓ Gebaseerd op officiële EU AI Act • ✓ Praktische aanbevelingen"})]})}),e.jsxs("div",{className:"grid md:grid-cols-3 gap-6 mt-12",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.4},className:"bg-white rounded-xl p-6 border border-gray-100",children:[e.jsx(Wo,{className:"w-8 h-8 text-orange-600 mb-3"}),e.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:"Risiconiveaus"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Classificatie volgens EU AI Act: onaanvaardbaar, hoog, beperkt, minimaal risico"})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.5},className:"bg-white rounded-xl p-6 border border-gray-100",children:[e.jsx($t,{className:"w-8 h-8 text-blue-600 mb-3"}),e.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:"Compliance"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Specifieke vereisten voor documentatie, conformiteit en menselijk toezicht"})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.6},className:"bg-white rounded-xl p-6 border border-gray-100",children:[e.jsx(D1,{className:"w-8 h-8 text-purple-600 mb-3"}),e.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:"GDPR Integratie"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Combinatie van AI Act en GDPR vereisten voor gegevensbescherming"})]})]})]})})}function Vee(){return e.jsx("div",{className:"pt-20 min-h-screen bg-white",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:e.jsxs("div",{className:"bg-[#F4F4F4] rounded-3xl p-12",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[e.jsx(Vn,{className:"w-12 h-12 text-[#FAB868]"}),e.jsx("h1",{className:"text-5xl font-bold text-[#0D0D0F]",children:"EU AI Act Checker"})]}),e.jsxs("div",{className:"prose max-w-none",children:[e.jsx("h2",{children:"Overzicht"}),e.jsx("p",{children:"De EU AI Act Checker analyseert een bedrijf tegen de EU AI Act regelgeving en geeft compliance advies, inclusief risiconiveaus, vereiste maatregelen en cybersecurity overwegingen."}),e.jsx("h2",{children:"Architectuur"}),e.jsx("h3",{children:"Frontend: pages/EuAiActChecker.jsx"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Framework:"})," React met multi-step flow"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Steps:"}),e.jsxs("ol",{children:[e.jsx("li",{children:"Initial input (URL of beschrijving)"}),e.jsx("li",{children:"Uitgebreide vragenlijst (questionnaire)"}),e.jsx("li",{children:"Analyzing (30-45 seconden)"}),e.jsx("li",{children:"Results met compliance analyse"})]})]})]}),e.jsx("h3",{children:"Backend: functions/analyzeEuAiAct.js"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Runtime:"})," Deno Deploy"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"LLM:"})," OpenAI (via Base44 Core.InvokeLLM)"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Features:"}),e.jsxs("ul",{children:[e.jsx("li",{children:"Website scraping"}),e.jsx("li",{children:"Vragenlijst-gedreven analyse"}),e.jsx("li",{children:"EU AI Act compliance mapping"}),e.jsx("li",{children:"GDPR + Cybersecurity integratie"})]})]})]}),e.jsx("h2",{children:"Functionaliteiten"}),e.jsx("h3",{children:"1. Vragenlijst Categorieën"}),e.jsx("h4",{children:"Bedrijfscontext"}),e.jsxs("ul",{children:[e.jsx("li",{children:"Sector: retail, financial, HR, healthcare, industrie, marketing, IT, overheid, anders"}),e.jsx("li",{children:"Doelgroep: consumenten, bedrijven, beide"})]}),e.jsx("h4",{children:"AI Gebruik"}),e.jsxs("ul",{children:[e.jsx("li",{children:"Is AI actief in gebruik?"}),e.jsx("li",{children:"Toepassingsgebieden: klantenservice, marketing, analyse, besluitvorming, product, HR, anders"})]}),e.jsx("h4",{children:"Impact op Mensen"}),e.jsxs("ul",{children:[e.jsx("li",{children:"Neemt AI beslissingen met directe gevolgen?"}),e.jsx("li",{children:"Is er menselijk toezicht?"})]}),e.jsx("h4",{children:"Gevoelige Toepassingen"}),e.jsxs("ul",{children:[e.jsx("li",{children:"Werving & selectie"}),e.jsx("li",{children:"Beoordeling medewerkers"}),e.jsx("li",{children:"Krediet / financiële beoordeling"}),e.jsx("li",{children:"Fraude-detectie"}),e.jsx("li",{children:"Toegang tot diensten"}),e.jsx("li",{children:"Biometrie (gezicht, stem, gedrag)"})]}),e.jsx("h4",{children:"Data & Privacy"}),e.jsxs("ul",{children:[e.jsx("li",{children:"Verwerkt AI persoonsgegevens?"}),e.jsx("li",{children:"Gevoelige persoonsgegevens (gezondheid, etniciteit, biometrie)?"})]}),e.jsx("h4",{children:"Governance"}),e.jsxs("ul",{children:[e.jsx("li",{children:"Formele verantwoordelijkheid voor AI?"}),e.jsx("li",{children:"Periodieke risico-evaluatie?"}),e.jsx("li",{children:"Gebruiker notificatie over AI-inzet?"})]}),e.jsx("h3",{children:"2. Analyse Output"}),e.jsx("h4",{children:"Bedrijfsoverzicht"}),e.jsx("p",{children:"Automatisch gegenereerde beschrijving van sector en activiteiten"}),e.jsx("h4",{children:"Geïdentificeerde AI Toepassingen"}),e.jsx("p",{children:"Per applicatie:"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Naam:"})," Specifieke toepassing"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Risk Level:"})," Onaanvaardbaar / Hoog / Beperkt / Minimaal"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Beschrijving:"})," Wat het doet"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Risico Rechtvaardiging:"})," Waarom dit risiconiveau"]})]}),e.jsx("h4",{children:"Hoog-Risico Compliance"}),e.jsxs("ul",{children:[e.jsx("li",{children:"Van toepassing zijnde EU AI Act artikelen"}),e.jsx("li",{children:"Vereiste maatregelen"}),e.jsx("li",{children:"Documentatie-eisen"}),e.jsx("li",{children:"Conformiteitsbeoordelingen"}),e.jsxs("li",{children:[e.jsx("em",{children:'"Niet van toepassing"'})," als geen hoog-risico systemen"]})]}),e.jsx("h4",{children:"GDPR & Cybersecurity"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Data Handling:"})," Hoe gegevens worden verwerkt"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Consent Requirements:"})," Toestemmingsvereisten"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Data Breach Risks:"})," Specifieke datalekrisico's"]}),e.jsxs("li",{children:[e.jsx("strong",{className:"text-red-600",children:"Cybersecurity Risks:"})," Klant- en bedrijfsgegevens vatbaar voor hacks"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Recommendations:"})," Praktische GDPR + security aanbevelingen"]})]}),e.jsx("h2",{children:"LLM Prompt Structuur"}),e.jsx("pre",{className:"bg-gray-100 p-4 rounded-lg overflow-x-auto",children:`Je bent een EU AI Act compliance expert en adviseert
Nederlandse bedrijven. Analyseer het bedrijf en geef
praktisch compliance advies.
INPUT:
- Website content: {website_content}
- Beschrijving: {company_description}
- Vragenlijst: {questionnaire_formatted}
EU AI ACT CONTEXT:
- Onaanvaardbaar risico: VERBODEN
(social scoring, manipulatie, biometrie)
- Hoog risico: STRIKTE EISEN
(CV screening, kredietbeoordeling, toegang diensten)
- Beperkt risico: TRANSPARANTIE
(chatbots, deepfakes)
- Minimaal risico: GEEN RESTRICTIES
BELANGRIJKE INSTRUCTIES:
- Wees specifiek, gebruik vragenlijst voor context
- Risk levels: Onaanvaardbaar/Hoog/Beperkt/Minimaal
- Cybersecurity: vermeld expliciet dat klant- en
bedrijfsgegevens vatbaar kunnen zijn voor hacks
- Praktische aanbevelingen, geen juridisch jargon
- Als geen hoog-risico: laat applicable_articles leeg`}),e.jsx("h3",{children:"JSON Schema Output"}),e.jsx("pre",{className:"bg-gray-100 p-4 rounded-lg overflow-x-auto text-sm",children:`{
"company_name": "string",
"company_overview": "string",
"identified_ai_applications": [
{
"application_name": "string",
"description": "string",
"risk_level": "Onaanvaardbaar|Hoog|Beperkt|Minimaal",
"risk_justification": "string"
}
],
"high_risk_compliance": {
"applicable_articles": "string|null",
"required_measures": ["string"],
"documentation_requirements": "string",
"conformity_assessment": "string"
},
"gdpr_privacy": {
"data_handling": "string",
"consent_requirements": "string",
"data_breach_risks": ["string"],
"cybersecurity_risks": ["string"],
"recommendations": ["string"]
}
}`}),e.jsx("h2",{children:"Risk Level Kleuren & Icons"}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-lg border-2 bg-red-50 border-red-200",children:[e.jsx(Wo,{className:"w-6 h-6 text-red-600"}),e.jsx("span",{className:"px-3 py-1 bg-red-100 text-red-800 border border-red-200 rounded text-sm font-semibold",children:"Onaanvaardbaar"}),e.jsx("span",{className:"text-sm text-gray-600",children:"VERBODEN systemen"})]}),e.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-lg border-2 bg-orange-50 border-orange-200",children:[e.jsx(Wo,{className:"w-6 h-6 text-orange-600"}),e.jsx("span",{className:"px-3 py-1 bg-orange-100 text-orange-800 border border-orange-200 rounded text-sm font-semibold",children:"Hoog"}),e.jsx("span",{className:"text-sm text-gray-600",children:"Strikte compliance eisen"})]}),e.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-lg border-2 bg-yellow-50 border-yellow-200",children:[e.jsx(kh,{className:"w-6 h-6 text-yellow-600"}),e.jsx("span",{className:"px-3 py-1 bg-yellow-100 text-yellow-800 border border-yellow-200 rounded text-sm font-semibold",children:"Beperkt"}),e.jsx("span",{className:"text-sm text-gray-600",children:"Transparantie vereist"})]}),e.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-lg border-2 bg-green-50 border-green-200",children:[e.jsx(Vn,{className:"w-6 h-6 text-green-600"}),e.jsx("span",{className:"px-3 py-1 bg-green-100 text-green-800 border border-green-200 rounded text-sm font-semibold",children:"Minimaal"}),e.jsx("span",{className:"text-sm text-gray-600",children:"Geen restricties"})]})]}),e.jsx("h2",{children:"Questionnaire Risk Indicators"}),e.jsx("p",{children:"Automatisch gedetecteerd:"}),e.jsxs("ul",{children:[e.jsxs("li",{children:["AI neemt beslissingen: ",e.jsx("code",{children:"ai_decisions === 'yes'"})]}),e.jsxs("li",{children:["Geen menselijk toezicht: ",e.jsx("code",{children:"human_oversight === 'no'"})]}),e.jsx("li",{children:"Hoog-risico processen: werving, beoordeling, krediet, fraude, biometrie"}),e.jsxs("li",{children:["Gevoelige persoonsgegevens: ",e.jsx("code",{children:"sensitive_personal_data === 'yes'"})]}),e.jsxs("li",{children:["Geen AI verantwoordelijke: ",e.jsx("code",{children:"ai_responsible === 'no'"})]}),e.jsxs("li",{children:["Geen risico-evaluatie: ",e.jsx("code",{children:"risk_evaluation === 'no'"})]})]}),e.jsx("h2",{children:"Extra Features"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Email Functie:"})," Verstuur volledige analyse naar gebruiker"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"EU AI Act Link:"})," Directe link naar officiële verordening (EUR-Lex)"]}),e.jsxs("li",{children:[e.jsx("strong",{children:'"Doe uitgebreide EU AI Act check" Button:'})," Prominent, opent in nieuw tabblad"]}),e.jsxs("li",{children:[e.jsx("strong",{children:'"Hoe 48-7 kan helpen":'})," 4 diensten showcase (Audit, Documentatie, Governance, Doorlopende Compliance)"]})]}),e.jsx("h2",{children:"LLM Gebruik"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Provider:"})," OpenAI (via Base44 Core.InvokeLLM)"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Context:"})," Website content + company description + questionnaire"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Special Features:"})," Vragenlijst wordt geformatteerd als readable text, Risk signals worden extracted"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Output:"})," Gestructureerde JSON"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Taal:"})," Nederlands (geforceerd)"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Verwerkingstijd:"})," 30-45 seconden"]})]}),e.jsx("h2",{children:'"Niet van toepassing" Logic'}),e.jsx("pre",{className:"bg-gray-100 p-4 rounded-lg",children:`// High-Risk Compliance sectie toont:
if (geen applicable_articles EN
geen required_measures EN
geen documentation_requirements EN
geen conformity_assessment) {
// Toon: CheckCircle icon +
// "Niet van toepassing" bericht
}`}),e.jsx("h2",{children:"Files"}),e.jsxs("ul",{className:"font-mono text-sm",children:[e.jsx("li",{children:"pages/EuAiActChecker.jsx - Frontend component (multi-step)"}),e.jsx("li",{children:"functions/analyzeEuAiAct.js - Backend analysis function"})]}),e.jsx("h2",{children:"Integraties"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Impact Report Link:"})," Cross-promote in CTA section"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Contact Links:"})," Pre-filled met training naam"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"EU AI Act Verordening:"})," Externe link naar EUR-Lex (nieuwe tab)"]})]})]})]})})})}function Uee(){return e.jsxs("section",{className:"relative h-[600px] overflow-hidden",children:[e.jsx("img",{src:"https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=2000&auto=format&fit=crop",alt:"AI Team",className:"absolute inset-0 w-full h-full object-cover"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-[#0D0D0F]/90 via-[#0D0D0F]/70 to-transparent"}),e.jsx("div",{className:"relative h-full max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 flex items-center",children:e.jsxs(Z.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8},className:"max-w-3xl text-white",children:[e.jsxs("h1",{className:"text-5xl sm:text-6xl lg:text-7xl font-bold leading-tight mb-6",children:["Van 24-7 naar"," ",e.jsx("span",{className:"text-[#FAB868]",children:"48-7"})]}),e.jsx("p",{className:"text-2xl text-gray-200 mb-8 leading-relaxed",children:"Verdubbel je productiviteit met AI. We ontwikkelen de AI strategie, bouwen de software én trainen. Anderen praten, wij leveren."}),e.jsx("div",{className:"flex flex-col sm:flex-row gap-4",children:e.jsx(de,{to:se("AIImpactRapport"),className:"inline-flex items-center justify-center gap-2 px-10 py-5 bg-[#FAB868] text-[#0D0D0F] font-semibold rounded-full hover:bg-[#E5A04D] transition-all text-lg",children:"Check wat AI jou oplevert"})})]})})]})}function $ee(){const t=[{name:"TechCorp",logo:"TC"},{name:"InnovateBV",logo:"IB"},{name:"DigitalFirst",logo:"DF"},{name:"SmartSolutions",logo:"SS"},{name:"FutureTech",logo:"FT"},{name:"DataDriven",logo:"DD"}],{data:n=[]}=Fe({queryKey:["reviews"],queryFn:()=>ce.entities.Review.filter({active:!0},"sort_order"),initialData:[]});return e.jsx("section",{className:"py-20 bg-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:[e.jsx("p",{className:"text-sm font-medium text-gray-500 uppercase tracking-wider mb-8",children:"Vertrouwd door ambitieuze MKB-bedrijven"}),e.jsx("div",{className:"flex flex-wrap items-center justify-center gap-8 lg:gap-16",children:t.map((r,i)=>e.jsx(Z.div,{initial:{opacity:0,scale:.8},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{delay:i*.1},className:"group",children:e.jsx("div",{className:"w-20 h-20 bg-gray-100 rounded-2xl flex items-center justify-center text-gray-400 font-bold text-xl group-hover:bg-blue-50 group-hover:text-blue-600 transition-all",children:r.logo})},i))})]}),e.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"bg-gradient-to-r from-gray-900 to-gray-800 rounded-3xl p-8 md:p-12 mb-16",children:e.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-8 text-center",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-4xl md:text-5xl font-bold text-white mb-2",children:"5+"}),e.jsx("p",{className:"text-gray-400",children:"Jaar ervaring"})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-4xl md:text-5xl font-bold text-white mb-2",children:"50+"}),e.jsx("p",{className:"text-gray-400",children:"Projecten afgerond"})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-4xl md:text-5xl font-bold text-white mb-2",children:"€5-20M"}),e.jsx("p",{className:"text-gray-400",children:"MKB omzet focus"})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-4xl md:text-5xl font-bold text-white mb-2",children:"100%"}),e.jsx("p",{className:"text-gray-400",children:"Full-service"})]})]})}),e.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:n.map((r,i)=>e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:i*.15},className:"bg-gray-50 rounded-2xl p-8 hover:bg-white hover:shadow-xl transition-all border border-transparent hover:border-gray-100",children:[e.jsx("div",{className:"flex items-center gap-1 mb-4",children:[...Array(r.rating)].map((s,a)=>e.jsx(ru,{className:"w-5 h-5 fill-yellow-400 text-yellow-400"},a))}),e.jsxs("p",{className:"text-gray-700 mb-6 leading-relaxed",children:['"',r.text,'"']}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-12 h-12 bg-gradient-to-br from-blue-600 to-blue-700 rounded-full flex items-center justify-center text-white font-semibold",children:r.author.split(" ").map(s=>s[0]).join("")}),e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold text-gray-900",children:r.author}),e.jsx("p",{className:"text-sm text-gray-500",children:r.role})]})]})]},i))})]})})}function Hee(){const{data:t=[]}=Fe({queryKey:["homeServices"],queryFn:()=>ce.entities.HomeService.filter({active:!0},"sort_order"),initialData:[]}),n={Lightbulb:Wi,Code2:O4,Headphones:hf,GraduationCap:pr,Sparkles:At};return e.jsx("section",{className:"py-32 bg-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-20",children:[e.jsx("h2",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-6",children:"Wat is 48-7?"}),e.jsx("p",{className:"text-slate-600 mx-auto text-2xl max-w-3xl",children:"Full-service AI voor MKB"})]}),e.jsx("div",{className:"grid md:grid-cols-2 gap-12",children:t.map((r,i)=>{const s=n[r.icon]||At;return e.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:i*.1},children:e.jsxs(de,{to:r.link_url||"#",className:"group block bg-[#F4F4F4] rounded-3xl p-12 hover:bg-white hover:shadow-lg transition-all border-2 border-transparent hover:border-[#FAB868] h-full",children:[e.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center mb-8 group-hover:scale-110 transition-transform",children:e.jsx(s,{className:"w-8 h-8 text-[#0D0D0F]"})}),e.jsx("h3",{className:"text-3xl font-bold text-[#0D0D0F] mb-4",children:r.title}),e.jsx("p",{className:"text-[#292828] mb-8 text-xl leading-relaxed",children:r.description}),e.jsxs("div",{className:"flex items-center gap-2 text-[#FAB868] font-semibold group-hover:gap-3 transition-all text-lg",children:["Meer info",e.jsx($e,{className:"w-6 h-6"})]})]})},r.id)})})]})})}function Wee(){const{data:t=[]}=Fe({queryKey:["processSteps"],queryFn:()=>ce.entities.ProcessStep.filter({active:!0},"step_number"),initialData:[]}),n={Search:mi,Map:F8,Rocket:rD,Headphones:hf},r=i=>{const s=["blue","indigo","purple","pink"];return s[(i-1)%s.length]};return e.jsx("section",{className:"py-24 bg-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:[e.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-gray-900 mb-4",children:"Hoe we werken"}),e.jsx("p",{className:"text-xl text-gray-600 max-w-2xl mx-auto",children:"Een bewezen aanpak die zorgt voor snelle resultaten en duurzame impact"})]}),e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"hidden lg:block absolute top-1/2 left-0 right-0 h-0.5 bg-gradient-to-r from-blue-200 via-purple-200 to-pink-200 -translate-y-1/2"}),e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-8",children:t.map((i,s)=>{const a=n[i.icon]||mi,o=r(i.step_number);return e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:s*.15},className:"relative",children:[e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-100 hover:shadow-xl hover:border-gray-200 transition-all h-full",children:[e.jsx("div",{className:"absolute -top-4 left-8",children:e.jsx("div",{className:"w-8 h-8 bg-gradient-to-br rounded-lg flex items-center justify-center text-white font-bold text-sm shadow-lg",style:{background:o==="blue"?"linear-gradient(135deg, #3b82f6, #2563eb)":o==="indigo"?"linear-gradient(135deg, #6366f1, #4f46e5)":o==="purple"?"linear-gradient(135deg, #a855f7, #9333ea)":"linear-gradient(135deg, #ec4899, #db2777)"},children:String(i.step_number).padStart(2,"0")})}),e.jsx("div",{className:"w-14 h-14 bg-gray-100 rounded-2xl flex items-center justify-center mb-6 mt-4",children:e.jsx(a,{className:"w-7 h-7 text-gray-700"})}),e.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-3",children:i.title}),e.jsx("p",{className:"text-gray-600 leading-relaxed",children:i.description})]}),s<t.length-1&&e.jsx("div",{className:"hidden lg:flex absolute top-1/2 -right-4 z-10 w-8 h-8 bg-white rounded-full items-center justify-center border border-gray-200 -translate-y-1/2",children:e.jsx($e,{className:"w-4 h-4 text-gray-400"})})]},i.id)})})]})]})})}function Kee(){const{data:t=[]}=Fe({queryKey:["homeBenefits"],queryFn:()=>ce.entities.HomeBenefit.filter({active:!0},"sort_order"),initialData:[]}),n={Briefcase:Js,Layers:Su,Building2:Xa,Award:Cv};return e.jsx("section",{className:"py-32 bg-[#F4F4F4]",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-20",children:[e.jsx("h2",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-6",children:"Waarom 48-7?"}),e.jsx("p",{className:"text-2xl text-[#292828] max-w-2xl mx-auto",children:"Wat ons onderscheidt"})]}),e.jsx("div",{className:"grid md:grid-cols-2 gap-12",children:t.map((r,i)=>{const s=n[r.icon]||Cv;return e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:i*.1},className:"bg-white rounded-3xl p-12 hover:shadow-lg transition-all",children:[e.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center mb-8",children:e.jsx(s,{className:"w-8 h-8 text-[#0D0D0F]"})}),e.jsx("h3",{className:"text-3xl font-bold text-[#0D0D0F] mb-4",children:r.title}),e.jsx("p",{className:"text-xl text-[#292828] mb-8 leading-relaxed",children:r.description}),r.tags&&r.tags.length>0&&e.jsx("div",{className:"flex flex-wrap gap-4",children:r.tags.map((a,o)=>e.jsxs("div",{className:"flex items-center gap-2 text-base text-[#0D0D0F]",children:[e.jsx(Ft,{className:"w-5 h-5 text-[#FAB868]"}),a]},o))})]},r.id)})})]})})}function Gee(){const{data:t=[]}=Fe({queryKey:["featuredCases"],queryFn:()=>ce.entities.CaseStudy.filter({published:!0,featured_on_homepage:!0},"sort_order"),initialData:[]});return e.jsx("section",{className:"py-24 bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"flex flex-col sm:flex-row sm:items-end justify-between gap-4 mb-12",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-gray-900 mb-4",children:"Resultaten die spreken"}),e.jsx("p",{className:"text-xl text-gray-600 max-w-2xl",children:"Bekijk hoe wij MKB-bedrijven helpen hun productiviteit te verdubbelen"})]}),e.jsxs(de,{to:se("Cases"),className:"flex items-center gap-2 text-blue-600 font-semibold hover:gap-3 transition-all shrink-0",children:["Bekijk alle cases",e.jsx($e,{className:"w-5 h-5"})]})]}),e.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:t.map((n,r)=>e.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:r*.15},children:e.jsxs(de,{to:se("Cases")+`?case=${n.slug}`,className:"group block bg-white rounded-2xl overflow-hidden hover:shadow-xl transition-all border border-gray-100",children:[n.featured_image_url&&e.jsxs("div",{className:"relative h-48 overflow-hidden",children:[e.jsx("img",{src:n.featured_image_url,alt:n.client_name,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 to-transparent"}),e.jsx("div",{className:"absolute bottom-4 left-4 right-4",children:e.jsx("span",{className:"inline-block px-3 py-1 bg-white/20 backdrop-blur-sm rounded-full text-white text-sm",children:n.industry})})]}),e.jsxs("div",{className:"p-6",children:[e.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-2 group-hover:text-blue-600 transition-colors",children:n.client_name}),n.homepage_text&&e.jsx("p",{className:"text-gray-600 text-sm mb-4 line-clamp-2",children:n.homepage_text}),n.homepage_usp&&e.jsxs("div",{className:"flex items-center gap-2 text-green-600 font-semibold",children:[e.jsx(Ki,{className:"w-5 h-5"}),n.homepage_usp]})]})]})},n.id))})]})})}const Qee={Basis:"bg-blue-100 text-blue-700",Gevorderd:"bg-purple-100 text-purple-700",Leiderschap:"bg-emerald-100 text-emerald-700",Technisch:"bg-orange-100 text-orange-700"};function Yee(){const{data:t=[]}=Fe({queryKey:["trainings-homepage"],queryFn:()=>ce.entities.Training.filter({show_on_homepage:!0,active:!0})});return t.length===0?null:e.jsx("section",{className:"py-24 bg-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-purple-100 rounded-full text-purple-700 text-sm font-medium mb-6",children:[e.jsx(pr,{className:"w-4 h-4"}),"Start vandaag met AI"]}),e.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-gray-900 mb-4",children:"Populaire Trainingen"}),e.jsx("p",{className:"text-xl text-gray-600 max-w-2xl mx-auto",children:"Maak je team AI-ready met onze praktijkgerichte trainingen"})]}),e.jsx("div",{className:"grid md:grid-cols-3 gap-8 mb-12",children:t.map((n,r)=>e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:r*.15},className:"group bg-gray-50 rounded-2xl p-8 hover:bg-white hover:shadow-xl transition-all border border-transparent hover:border-gray-100",children:[e.jsx("div",{className:`inline-block px-3 py-1 rounded-full text-sm font-medium mb-4 ${Qee[n.category]||"bg-gray-100 text-gray-700"}`,children:n.category}),e.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-1 group-hover:text-blue-600 transition-colors",children:n.title}),e.jsx("p",{className:"text-gray-600 mb-6 leading-relaxed",children:n.description}),e.jsxs("div",{className:"flex items-center gap-4 text-sm text-gray-500 mb-4",children:[n.duration&&e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(mn,{className:"w-4 h-4"}),n.duration]}),n.target_audience&&e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(pn,{className:"w-4 h-4"}),n.target_audience]})]}),e.jsxs(de,{to:se("TrainingDetail")+`?slug=${n.slug}`,className:"inline-flex items-center gap-1 text-sm font-semibold text-blue-600 hover:text-blue-700 transition-colors",children:["Meer info ",e.jsx($e,{className:"w-4 h-4"})]})]},n.id))}),e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"flex flex-col sm:flex-row items-center justify-center gap-4",children:[e.jsxs(de,{to:se("Training"),className:"inline-flex items-center gap-2 px-8 py-4 bg-gradient-to-r from-blue-600 to-blue-700 text-white font-semibold rounded-2xl hover:shadow-xl hover:shadow-blue-500/30 transition-all hover:-translate-y-1",children:["Bekijk alle trainingen",e.jsx($e,{className:"w-5 h-5"})]}),e.jsxs(de,{to:se("TrainingAdvisor"),className:"inline-flex items-center gap-2 px-8 py-4 bg-white border-2 border-gray-200 text-gray-900 font-semibold rounded-2xl hover:border-purple-300 hover:bg-purple-50 transition-all",children:[e.jsx(At,{className:"w-5 h-5 text-purple-600"}),"Training Advisor"]})]})]})})}function Xee(){return e.jsx("section",{className:"py-32 bg-white",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsx("div",{className:"bg-[#FAB868] rounded-3xl p-16 text-center",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[e.jsx("h2",{className:"text-4xl sm:text-5xl font-bold text-[#0D0D0F] mb-6 leading-tight",children:"Hoever is jouw bedrijf klaar voor AI? Ontdek het in 2 minuten."}),e.jsx("p",{className:"text-xl text-[#0D0D0F]/70 mb-12 max-w-3xl mx-auto",children:"Ontvang een persoonlijk rapport."}),e.jsxs(de,{to:se("AIQuiz"),className:"inline-flex items-center gap-3 px-12 py-6 bg-[#0D0D0F] text-white font-bold rounded-full hover:bg-[#1a1a1c] transition-all text-xl",children:[e.jsx(At,{className:"w-6 h-6"}),"Start de AI Quiz",e.jsx($e,{className:"w-6 h-6"})]})]})})})})}function Jee(){const{data:t=[]}=Fe({queryKey:["teamMembers"],queryFn:()=>ce.entities.TeamMember.filter({active:!0,show_on_homepage:!0},"sort_order"),initialData:[]});return e.jsx("section",{className:"py-24 bg-gray-50",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[e.jsxs(Z.div,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},children:[e.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-gray-900 mb-6",children:"Ontmoet The AI Professionals"}),e.jsx("p",{className:"text-xl text-gray-600 mb-8 leading-relaxed",children:"Ons team combineert jaren ervaring in het bedrijfsleven met diepgaande AI expertise. Wij begrijpen de uitdagingen van MKB en weten hoe AI deze kan oplossen."}),e.jsx("p",{className:"text-gray-600 mb-8",children:"Van strategen tot engineers, van trainers tot consultants — samen hebben we één missie: jouw productiviteit verdubbelen met AI."}),e.jsxs(de,{to:se("OverOns"),className:"inline-flex items-center gap-2 text-blue-600 font-semibold hover:gap-3 transition-all",children:["Meer over ons team",e.jsx($e,{className:"w-5 h-5"})]})]}),e.jsx(Z.div,{initial:{opacity:0,x:20},whileInView:{opacity:1,x:0},viewport:{once:!0},className:"grid grid-cols-2 gap-4",children:t.map((n,r)=>e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:r*.1},className:"group relative bg-white rounded-2xl overflow-hidden hover:shadow-xl transition-all",children:[n.image_url&&e.jsx("div",{className:"aspect-square overflow-hidden",children:e.jsx("img",{src:n.image_url,alt:n.name,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"})}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/80 via-black/20 to-transparent opacity-0 group-hover:opacity-100 transition-opacity flex items-end p-4",children:e.jsxs("div",{className:"text-white",children:[e.jsx("p",{className:"font-bold",children:n.name}),e.jsx("p",{className:"text-sm text-white/80",children:n.role})]})}),e.jsxs("div",{className:"p-4",children:[e.jsx("p",{className:"font-semibold text-gray-900",children:n.name}),e.jsx("p",{className:"text-sm text-gray-500",children:n.role})]})]},n.id))})]})})})}function Zee(){const[t,n]=D.useState(""),[r,i]=D.useState(!1),[s,a]=D.useState(!1),[o,c]=D.useState(""),d=async f=>{f.preventDefault(),c(""),i(!0);try{if((await ce.entities.NewsletterSubscriber.filter({email:t})).length>0){c("Je bent al ingeschreven!"),i(!1);return}await ce.entities.NewsletterSubscriber.create({email:t,subscription_date:new Date().toISOString(),is_active:!0,source:"homepage"}),a(!0),n("")}catch{c("Er ging iets mis. Probeer het later opnieuw.")}finally{i(!1)}},h=[{title:"5 AI trends die MKB in 2024 niet mag missen",excerpt:"Van AI agents tot voice assistants — deze trends gaan jouw industrie veranderen.",date:"15 jan 2024",readTime:"5 min",category:"Trends",image:"https://images.unsplash.com/photo-1677442136019-21780ecad995?w=600&auto=format&fit=crop"},{title:"Hoe je ChatGPT effectief inzet voor klantenservice",excerpt:"Praktische tips om AI-powered support te implementeren zonder je klanten te frustreren.",date:"12 jan 2024",readTime:"4 min",category:"Tips",image:"https://images.unsplash.com/photo-1531746790731-6c087fecd65a?w=600&auto=format&fit=crop"},{title:"ROI van AI: zo bereken je de business case",excerpt:"Concrete formules en benchmarks om je AI investering te onderbouwen.",date:"8 jan 2024",readTime:"6 min",category:"Strategie",image:"https://images.unsplash.com/photo-1551288049-bebda4e38f71?w=600&auto=format&fit=crop"}];return e.jsx("section",{className:"py-24 bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"bg-gradient-to-br from-gray-900 to-gray-800 rounded-3xl p-8 sm:p-12 mb-16 text-center",children:[e.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-white mb-4",children:"Blijf op de hoogte"}),e.jsx("p",{className:"text-xl text-gray-300 mb-8",children:"Ontvang wekelijks de beste AI insights"}),s?e.jsxs(Z.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},className:"inline-flex items-center gap-2 px-6 py-3 bg-green-600 text-white rounded-full font-semibold",children:[e.jsx(gt,{className:"w-5 h-5"}),"Je bent ingeschreven!"]}):e.jsxs("form",{onSubmit:d,className:"max-w-md mx-auto",children:[e.jsxs("div",{className:"flex gap-3",children:[e.jsx(me,{type:"email",value:t,onChange:f=>n(f.target.value),placeholder:"je@email.nl",required:!0,className:"flex-1 h-14 px-6 bg-white text-gray-900 rounded-full"}),e.jsx(ae,{type:"submit",disabled:r,className:"h-14 px-8 bg-[#FAB868] hover:bg-[#E5A04D] text-gray-900 font-semibold rounded-full",children:r?"...":"Aanmelden"})]}),o&&e.jsx("p",{className:"text-red-400 text-sm mt-2",children:o})]})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"flex flex-col sm:flex-row sm:items-end justify-between gap-4 mb-12",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-gray-900 mb-4",children:"Laatste artikelen"}),e.jsx("p",{className:"text-xl text-gray-600",children:"Insights, tips en trends uit de wereld van AI"})]}),e.jsxs(de,{to:se("Blog"),className:"flex items-center gap-2 text-blue-600 font-semibold hover:gap-3 transition-all shrink-0",children:["Alle artikelen",e.jsx($e,{className:"w-5 h-5"})]})]}),e.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:h.map((f,m)=>e.jsx(Z.article,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:m*.15},children:e.jsxs(de,{to:se("Blog"),className:"group block",children:[e.jsxs("div",{className:"relative rounded-2xl overflow-hidden mb-4 aspect-[16/10]",children:[e.jsx("img",{src:f.image,alt:f.title,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"}),e.jsx("div",{className:"absolute top-4 left-4",children:e.jsx("span",{className:"px-3 py-1 bg-white/90 backdrop-blur-sm rounded-full text-sm font-medium text-gray-900",children:f.category})})]}),e.jsxs("div",{className:"flex items-center gap-3 text-sm text-gray-500 mb-3",children:[e.jsx("span",{children:f.date}),e.jsx("span",{children:"•"}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(mn,{className:"w-4 h-4"}),f.readTime]})]}),e.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-2 group-hover:text-blue-600 transition-colors",children:f.title}),e.jsx("p",{className:"text-gray-600 line-clamp-2",children:f.excerpt})]})},m))})]})})}function ete(){const{data:t=[]}=Fe({queryKey:["homeCTAs"],queryFn:()=>ce.entities.HomeCTA.filter({active:!0},"sort_order"),initialData:[]}),n={Sparkles:At,Calendar:Or,GraduationCap:pr};return e.jsx("section",{className:"py-24 bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-12",children:[e.jsx("h2",{className:"text-3xl sm:text-4xl lg:text-5xl font-bold text-gray-900 mb-6",children:"Klaar om je productiviteit te verdubbelen?"}),e.jsx("p",{className:"text-xl text-gray-600 max-w-2xl mx-auto",children:"Kies de route die het beste bij je past. Of je nu eerst wilt verkennen of direct aan de slag wilt."})]}),e.jsx("div",{className:"grid md:grid-cols-3 gap-8 max-w-5xl mx-auto",children:t.map((r,i)=>{const s=n[r.icon]||At;return e.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:i*.1},children:e.jsxs(de,{to:r.button_url,className:`group block rounded-2xl p-8 transition-all hover:-translate-y-1 h-full ${r.featured?"bg-gradient-to-br from-blue-600 to-blue-700 text-white hover:shadow-2xl hover:shadow-blue-500/30":"bg-white border-2 border-gray-200 hover:border-blue-300 hover:shadow-xl"}`,children:[e.jsx("div",{className:`w-14 h-14 rounded-2xl flex items-center justify-center mb-6 ${r.featured?"bg-white/10":"bg-gray-100 group-hover:bg-blue-50 transition-colors"}`,children:e.jsx(s,{className:`w-7 h-7 ${r.featured?"text-white":"text-gray-700 group-hover:text-blue-600 transition-colors"}`})}),e.jsx("h3",{className:`text-2xl font-bold mb-3 ${r.featured?"text-white":"text-gray-900"}`,children:r.title}),e.jsx("p",{className:`mb-6 ${r.featured?"text-blue-100":"text-gray-600"}`,children:r.description}),e.jsxs("div",{className:`flex items-center gap-2 font-semibold group-hover:gap-3 transition-all ${r.featured?"text-white":"text-blue-600"}`,children:[r.button_text,e.jsx($e,{className:"w-5 h-5"})]})]})},r.id)})})]})})}function tte(){const[t,n]=D.useState(!1),[r,i]=D.useState(""),[s,a]=D.useState(!1),o={title:"AI in 48 seconden - 6 januari 2026",video_url:"https://www.youtube.com/embed/dQw4w9WgXcQ",short_description:"Vandaag: OpenAI lanceert GPT-5, Google's nieuwe AI chip breekt records, en EU stelt strengere AI regelgeving vast."},c=d=>{d.preventDefault(),console.log("WhatsApp subscription:",r),a(!0),setTimeout(()=>{n(!1),a(!1),i("")},2e3)};return e.jsxs("section",{className:"py-12 bg-[#0D0D0F]",children:[e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-8",children:[e.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-white mb-3",children:"AI nieuws van vandaag in 48 seconden"}),e.jsx("p",{className:"text-lg text-gray-400",children:o.short_description})]}),e.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.1},className:"max-w-4xl mx-auto mb-8",children:e.jsx("div",{className:"relative aspect-video rounded-3xl overflow-hidden bg-gray-900 shadow-2xl",children:e.jsx("iframe",{src:o.video_url,title:o.title,className:"w-full h-full",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})})}),e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.2},className:"max-w-3xl mx-auto",children:[e.jsxs("div",{className:"bg-[#1a1a1c] rounded-2xl p-6 mb-4",children:[e.jsx("h3",{className:"text-lg font-bold text-white mb-4 text-center",children:"Volg dagelijkse AI nieuws op onze socials"}),e.jsxs("div",{className:"flex justify-center gap-2 mb-4",children:[e.jsx("a",{href:"https://linkedin.com/company/48-7",target:"_blank",rel:"noopener noreferrer",className:"w-10 h-10 bg-[#F4F4F4] rounded-xl flex items-center justify-center hover:bg-[#FAB868] transition-colors",children:e.jsx(Ws,{className:"w-5 h-5 text-[#0D0D0F]"})}),e.jsx("a",{href:"https://instagram.com/48-7",target:"_blank",rel:"noopener noreferrer",className:"w-10 h-10 bg-[#F4F4F4] rounded-xl flex items-center justify-center hover:bg-[#FAB868] transition-colors",children:e.jsx(tu,{className:"w-5 h-5 text-[#0D0D0F]"})}),e.jsx("a",{href:"https://youtube.com/@48-7",target:"_blank",rel:"noopener noreferrer",className:"w-10 h-10 bg-[#F4F4F4] rounded-xl flex items-center justify-center hover:bg-[#FAB868] transition-colors",children:e.jsx(iu,{className:"w-5 h-5 text-[#0D0D0F]"})})]}),e.jsxs("button",{onClick:()=>n(!0),className:"w-full flex items-center justify-center gap-2 px-6 py-3 bg-[#FAB868] text-[#0D0D0F] font-bold rounded-xl hover:bg-[#E5A04D] transition-all",children:[e.jsx(Ho,{className:"w-5 h-5"}),"Ontvang dagelijks via WhatsApp"]}),e.jsx("p",{className:"text-xs text-gray-400 text-center mt-3",children:"✓ Elke werkdag • ✓ Geen spam • ✓ Afmelden wanneer je wilt"})]}),e.jsx("div",{className:"text-center",children:e.jsxs(de,{to:se("Nieuws"),className:"inline-flex items-center gap-2 px-6 py-3 bg-[#FAB868] text-[#0D0D0F] font-semibold rounded-xl hover:bg-[#E5A04D] transition-all",children:[e.jsx(Tv,{className:"w-5 h-5"}),"Bekijk eerdere afleveringen en meer AI nieuws"]})})]})]}),t&&e.jsx("div",{className:"fixed inset-0 bg-black/70 backdrop-blur-sm z-[200] flex items-center justify-center p-4",children:e.jsxs(Z.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},className:"bg-white rounded-3xl p-6 sm:p-8 max-w-md w-full relative max-h-[90vh] overflow-y-auto",children:[e.jsx("button",{onClick:()=>n(!1),className:"absolute top-4 right-4 p-2 rounded-full hover:bg-gray-100 transition-colors",children:e.jsx(Ht,{className:"w-5 h-5"})}),s?e.jsxs("div",{className:"text-center py-8",children:[e.jsx("div",{className:"w-16 h-16 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-4",children:e.jsx(Ho,{className:"w-8 h-8 text-green-600"})}),e.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-2",children:"Succesvol ingeschreven!"}),e.jsx("p",{className:"text-gray-600",children:"Je ontvangt vanaf morgen dagelijks het AI-nieuws via WhatsApp."})]}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx("div",{className:"w-12 h-12 bg-[#25D366] rounded-full flex items-center justify-center",children:e.jsx(Ho,{className:"w-6 h-6 text-white"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900",children:"WhatsApp Abonnement"}),e.jsx("p",{className:"text-gray-600",children:"Dagelijks AI-nieuws in 48 seconden"})]})]}),e.jsxs("form",{onSubmit:c,className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Telefoonnummer *"}),e.jsx(me,{type:"tel",placeholder:"+31 6 12345678",value:r,onChange:d=>i(d.target.value),required:!0,className:"text-lg py-6 rounded-xl"})]}),e.jsx("p",{className:"text-sm text-gray-500",children:'Door je in te schrijven ga je akkoord met het ontvangen van dagelijkse WhatsApp berichten. Je kunt je op elk moment afmelden door "STOP" te sturen.'}),e.jsx(ae,{type:"submit",className:"w-full py-6 bg-[#25D366] text-white hover:bg-[#20BA5A] font-bold text-lg",children:"Abonneer op WhatsApp"})]})]})]})})]})}const i4=[{name:"Allianz",url:"https://media.base44.com/images/public/695a3d411fa079edce588856/07b60a1e1_logo_allianz.png"},{name:"Gemeente Groningen",url:"https://media.base44.com/images/public/695a3d411fa079edce588856/1c589ae06_logo_gemeente_groningen.png"},{name:"HipHot",url:"https://media.base44.com/images/public/695a3d411fa079edce588856/fb80e3140_logo_hiphot.png"},{name:"Justified Bags",url:"https://media.base44.com/images/public/695a3d411fa079edce588856/9a66b2f93_logo_justified_bags.png"},{name:"Ministerie van Volksgezondheid",url:"https://media.base44.com/images/public/695a3d411fa079edce588856/3061bc4f0_logo_min_volksgezondheid.png"},{name:"New Nexus",url:"https://media.base44.com/images/public/695a3d411fa079edce588856/0aee67b2a_logo_new_nexus.png"},{name:"New Rebels",url:"https://media.base44.com/images/public/695a3d411fa079edce588856/a036e1fba_logo_new_rebels.png"},{name:"Parfum.nl",url:"https://media.base44.com/images/public/695a3d411fa079edce588856/b0436eed7_logo_parfum.png"},{name:"Purdey",url:"https://media.base44.com/images/public/695a3d411fa079edce588856/3b7befa30_logo_purdey.png"},{name:"T-Mobile",url:"https://media.base44.com/images/public/695a3d411fa079edce588856/61c5e5fb1_logo_tmobile.png"},{name:"Topdrinks",url:"https://media.base44.com/images/public/695a3d411fa079edce588856/2923a5631_logo_topdrinks.png"},{name:"UMCG",url:"https://media.base44.com/images/public/695a3d411fa079edce588856/6ec585700_logo_umcg.png"}];function H6(){const t=[...i4,...i4];return e.jsxs("section",{className:"py-14 bg-white border-t border-gray-100 overflow-hidden",children:[e.jsx("p",{className:"text-center text-xs font-medium uppercase tracking-widest text-gray-500 mb-10",children:"Samenwerkingen waar we trots op zijn"}),e.jsxs("div",{className:"relative w-full",children:[e.jsx("div",{className:"absolute left-0 top-0 bottom-0 w-24 z-10 pointer-events-none",style:{background:"linear-gradient(to right, white, transparent)"}}),e.jsx("div",{className:"absolute right-0 top-0 bottom-0 w-24 z-10 pointer-events-none",style:{background:"linear-gradient(to left, white, transparent)"}}),e.jsx("div",{className:"flex gap-16 items-center animate-ticker whitespace-nowrap",children:t.map((n,r)=>e.jsx("div",{className:"flex-shrink-0 flex items-center justify-center h-12",children:e.jsx("img",{src:n.url,alt:n.name,className:"max-h-12 w-auto object-contain"})},r))})]}),e.jsx("style",{children:`
@keyframes ticker {
0% { transform: translateX(0); }
100% { transform: translateX(-50%); }
}
.animate-ticker {
animation: ticker 33s linear infinite;
width: max-content;
}
.animate-ticker:hover {
animation-play-state: paused;
}
`})]})}function nte(){const{data:t=[]}=Fe({queryKey:["homeSections"],queryFn:()=>ce.entities.HomeSection.filter({active:!0},"sort_order"),initialData:[]}),n={hero:e.jsx(Uee,{},"hero"),trust:e.jsx($ee,{},"trust"),services:e.jsx(Hee,{},"services"),why:e.jsxs(Ot.Fragment,{children:[e.jsx(Kee,{}),e.jsx(H6,{})]},"why"),process:e.jsx(Wee,{},"process"),cases:e.jsx(Gee,{},"cases"),training:e.jsx(Yee,{},"training"),quiz:e.jsx(Xee,{},"quiz"),team:e.jsx(Jee,{},"team"),impact:e.jsx("div",{className:"py-12 bg-white",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsx(Gf,{})})},"impact"),news:e.jsx(tte,{},"news"),blog:e.jsx(Zee,{},"blog"),cta:e.jsx(ete,{},"cta")};return e.jsx("div",{children:t.map(r=>n[r.section_key])})}function rte(){const[t,n]=D.useState(""),[r,i]=D.useState(""),[s,a]=D.useState(""),[o,c]=D.useState(!1),[d,h]=D.useState(null),[f,m]=D.useState(null),[p,g]=D.useState(!1),[y,j]=D.useState({name:"",email:"",phone:""}),v=[{value:"",label:"Selecteer industrie (optioneel)"},{value:"retail",label:"Retail & E-commerce"},{value:"manufacturing",label:"Productie & Manufacturing"},{value:"healthcare",label:"Zorg & Welzijn"},{value:"professional_services",label:"Professionele Dienstverlening"},{value:"hospitality",label:"Horeca & Hospitality"},{value:"logistics",label:"Logistiek & Transport"},{value:"construction",label:"Bouw & Vastgoed"},{value:"education",label:"Onderwijs & Training"},{value:"finance",label:"Financiële Diensten"},{value:"technology",label:"Technology & Software"},{value:"marketing",label:"Marketing & Media"},{value:"other",label:"Anders"}];D.useEffect(()=>{const w=new URLSearchParams(window.location.search),k=w.get("url"),A=w.get("level");k&&(n(k),x(k)),A&&!k&&console.log("User came from quiz with level:",A)},[]);const x=async(w=null)=>{let k=w||t;if(k){k=k.replace(/^(https?:\/\/)?(www\.)?/,"").replace(/\/$/,""),c(!0),m(null),h(null);try{const A=`https://${k}`,{data:S}=await ce.functions.invoke("generateImpactReport",{website_url:A,company_name:r,industry:s||void 0});S.success?h(S):m(S.error||"Er ging iets mis bij het genereren van het rapport")}catch(A){console.error("Error generating report:",A),m("Kon het rapport niet genereren. Controleer de URL en probeer het opnieuw.")}finally{c(!1)}}},N=async w=>{w.preventDefault(),alert("Bedankt! We nemen zo snel mogelijk contact met je op."),g(!1)};if(o)return e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-blue-50 to-white",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-32 text-center",children:e.jsxs(Z.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},children:[e.jsx("div",{className:"w-20 h-20 bg-blue-100 rounded-full flex items-center justify-center mx-auto mb-6",children:e.jsxs("svg",{className:"animate-spin w-10 h-10 text-blue-600",viewBox:"0 0 24 24",children:[e.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),e.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]})}),e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"We analyseren je website..."}),e.jsx("p",{className:"text-xl text-gray-600 mb-8",children:"Dit duurt ongeveer 30-60 seconden"}),e.jsxs("div",{className:"flex items-center justify-center gap-2 text-gray-500",children:[e.jsx(gt,{className:"w-5 h-5 text-green-500"}),e.jsx("span",{children:"Website content ophalen"})]}),e.jsxs("div",{className:"flex items-center justify-center gap-2 text-gray-500 mt-3",children:[e.jsx("div",{className:"w-5 h-5 border-2 border-blue-600 border-t-transparent rounded-full animate-spin"}),e.jsx("span",{children:"AI analyse uitvoeren"})]})]})})});if(f)return e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-red-50 to-white",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-32 text-center",children:e.jsxs(Z.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},children:[e.jsx("div",{className:"w-20 h-20 bg-red-100 rounded-full flex items-center justify-center mx-auto mb-6",children:e.jsx(Tr,{className:"w-10 h-10 text-red-600"})}),e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Er ging iets mis"}),e.jsx("p",{className:"text-xl text-gray-600 mb-8",children:f}),e.jsx(ae,{onClick:()=>{m(null),n("")},className:"bg-gray-900 text-white hover:bg-gray-800",children:"Probeer opnieuw"})]})})});if(d){const{report:w,metadata:k}=d,A=w.company_profile||{},S=w.quick_scan||{},E=w.opportunities||[],C=w.productivity_forecast||{},B=w.action_plan||{};return e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-gray-50 to-white",children:e.jsxs("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-blue-100 rounded-full text-blue-700 text-sm font-medium mb-6",children:[e.jsx(At,{className:"w-4 h-4"}),"48-7 Impact Rapport"]}),e.jsxs("h1",{className:"text-4xl font-bold text-gray-900 mb-4",children:["Hoe ",A.name||"uw bedrijf"," van 24-7 naar 48-7 gaat"]}),e.jsxs("p",{className:"text-xl text-gray-600",children:["Gegenereerd op ",new Date(k.generated_at).toLocaleDateString("nl-NL",{day:"numeric",month:"long",year:"numeric"})]})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:"bg-white rounded-2xl p-8 mb-8 border border-gray-100",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx("div",{className:"w-12 h-12 bg-blue-100 rounded-xl flex items-center justify-center",children:e.jsx(Xa,{className:"w-6 h-6 text-blue-600"})}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Bedrijfsprofiel"})]}),e.jsxs("div",{className:"grid md:grid-cols-1 gap-6",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-500 mb-1",children:"Sector"}),e.jsx("p",{className:"font-semibold text-gray-900",children:A.sector})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-500 mb-1",children:"Kernactiviteiten"}),e.jsx("p",{className:"text-gray-700",children:A.core_activities})]})]})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"bg-gradient-to-br from-blue-50 to-indigo-50 rounded-2xl p-8 mb-8",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"De Quick Scan"}),e.jsxs("p",{className:"text-lg text-gray-700 mb-6 leading-relaxed",children:["Wij hebben de processen van ",e.jsx("strong",{children:A.name})," geanalyseerd.",S.focus&&` ${S.focus}`]}),S.usp&&e.jsxs("div",{className:"bg-white/50 rounded-xl p-4 mb-4",children:[e.jsx("p",{className:"text-sm text-gray-600 mb-1",children:"Unique Selling Points"}),e.jsx("p",{className:"text-gray-800",children:S.usp})]}),S.time_intensive_processes&&e.jsxs("div",{className:"bg-white/50 rounded-xl p-4",children:[e.jsx("p",{className:"text-sm text-gray-600 mb-1",children:"Tijd-intensieve processen"}),e.jsx("p",{className:"text-gray-800",children:S.time_intensive_processes})]})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3},className:"mb-8",children:[e.jsxs("div",{className:"text-center mb-8",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-2",children:E.length===1?"High-Impact AI Kans":`${E.length} High-Impact AI Kansen`}),e.jsxs("p",{className:"text-gray-600",children:["Specifiek voor ",A.name]})]}),e.jsx("div",{className:"space-y-6",children:E.map((F,I)=>e.jsx(Z.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.4+I*.1},className:"bg-white rounded-2xl p-8 border-2 border-gray-100 hover:border-blue-200 transition-all",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-12 h-12 bg-gradient-to-br from-blue-500 to-indigo-600 rounded-xl flex items-center justify-center text-white font-bold text-xl flex-shrink-0",children:I+1}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-3",children:F.title}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-semibold text-red-600 mb-1",children:"⌠Probleem"}),e.jsx("p",{className:"text-gray-700",children:F.problem})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-semibold text-blue-600 mb-1",children:"✅ Oplossing"}),e.jsx("p",{className:"text-gray-700",children:F.solution})]}),F.relevance&&e.jsxs("div",{className:"bg-blue-50 p-3 rounded-lg",children:[e.jsx("p",{className:"text-sm font-semibold text-blue-900 mb-1",children:"💡 Waarom relevant"}),e.jsx("p",{className:"text-sm text-blue-800",children:F.relevance})]}),F.implementation_steps&&F.implementation_steps.length>0&&e.jsxs("div",{className:"bg-purple-50 p-3 rounded-lg",children:[e.jsx("p",{className:"text-sm font-semibold text-purple-900 mb-2",children:"🔧 Implementatiestappen"}),e.jsx("ol",{className:"text-sm text-purple-800 space-y-1 list-decimal list-inside",children:F.implementation_steps.map((R,z)=>e.jsx("li",{children:R},z))})]}),F.data_privacy&&e.jsxs("div",{className:"bg-amber-50 p-3 rounded-lg",children:[e.jsx("p",{className:"text-sm font-semibold text-amber-900 mb-1",children:"🔒 Data & Privacy"}),e.jsx("p",{className:"text-sm text-amber-800",children:F.data_privacy})]}),e.jsx("div",{className:"grid sm:grid-cols-2 gap-4 pt-4 border-t border-gray-100",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Ki,{className:"w-5 h-5 text-green-600"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-600",children:"Winst"}),e.jsx("p",{className:"font-semibold text-gray-900",children:F.benefit})]})]})})]})]})]})},I))})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.7},className:"bg-gradient-to-r from-green-500 to-emerald-600 rounded-2xl p-8 text-white mb-8",children:[e.jsx("h2",{className:"text-2xl font-bold mb-6",children:"De 48-7 Productiviteitsprognose"}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-8 mb-6",children:[e.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-xl p-6",children:[e.jsx("p",{className:"text-green-100 mb-2",children:"Huidige output"}),e.jsxs("p",{className:"text-5xl font-bold",children:[C.current||100,"%"]})]}),e.jsxs("div",{className:"bg-white/20 backdrop-blur-sm rounded-xl p-6 border-2 border-white/30",children:[e.jsx("p",{className:"text-green-100 mb-2",children:"Output met 48-7 AI-integratie"}),e.jsxs("p",{className:"text-5xl font-bold",children:[C.with_ai||185,"%"]})]})]}),C.drivers&&C.drivers.length>0&&e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold mb-3",children:"Belangrijkste drivers:"}),e.jsx("ul",{className:"space-y-2",children:C.drivers.map((F,I)=>e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(gt,{className:"w-5 h-5 mt-0.5 flex-shrink-0"}),e.jsx("span",{children:F})]},I))})]})]}),w.example_case&&e.jsx(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.8},className:"bg-gradient-to-r from-blue-50 to-indigo-50 rounded-2xl p-8 mb-8 border border-blue-100",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-12 h-12 bg-blue-600 rounded-xl flex items-center justify-center flex-shrink-0",children:e.jsx($t,{className:"w-6 h-6 text-white"})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-3",children:"Voorbeeldcase"}),e.jsx("p",{className:"text-gray-700 text-lg leading-relaxed",children:w.example_case})]})]})}),w.innovative_idea&&e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.82},className:"bg-gradient-to-br from-purple-600 via-pink-600 to-orange-500 rounded-2xl p-8 mb-8 text-white relative overflow-hidden",children:[e.jsxs("div",{className:"absolute inset-0 opacity-10",children:[e.jsx("div",{className:"absolute top-0 right-0 w-64 h-64 bg-white rounded-full blur-3xl"}),e.jsx("div",{className:"absolute bottom-0 left-0 w-64 h-64 bg-white rounded-full blur-3xl"})]}),e.jsxs("div",{className:"relative z-10",children:[e.jsxs("div",{className:"flex items-start gap-4 mb-6",children:[e.jsx("div",{className:"w-14 h-14 bg-white/20 backdrop-blur-sm rounded-2xl flex items-center justify-center flex-shrink-0",children:e.jsx(Wi,{className:"w-7 h-7 text-white"})}),e.jsxs("div",{children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 bg-white/20 backdrop-blur-sm rounded-full text-sm font-semibold mb-2",children:[e.jsx(At,{className:"w-4 h-4"}),"Innovatief AI-Idee"]}),e.jsx("h2",{className:"text-3xl font-bold",children:w.innovative_idea.title})]})]}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-xl p-6",children:[e.jsx("h3",{className:"font-bold text-lg mb-2",children:"💡 Hoe het werkt"}),e.jsx("p",{className:"text-white/90 leading-relaxed",children:w.innovative_idea.description})]}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-xl p-5",children:[e.jsx("h3",{className:"font-bold mb-2",children:"🎯 Onderscheidend vermogen"}),e.jsx("p",{className:"text-white/90 text-sm",children:w.innovative_idea.unique_value})]}),e.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-xl p-5",children:[e.jsx("h3",{className:"font-bold mb-2",children:"📈 Impact"}),e.jsx("p",{className:"text-white/90 text-sm",children:w.innovative_idea.impact})]})]}),e.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-xl p-5",children:[e.jsx("h3",{className:"font-bold mb-2",children:"🔧 Implementatie"}),e.jsx("p",{className:"text-white/90 text-sm",children:w.innovative_idea.implementation})]}),e.jsxs("div",{className:"bg-gradient-to-r from-green-500/20 to-emerald-500/20 backdrop-blur-sm rounded-xl p-5 border-2 border-green-400/30",children:[e.jsxs("h3",{className:"font-bold mb-2 flex items-center gap-2",children:[e.jsx(di,{className:"w-5 h-5"}),"Quick Win (2-4 weken)"]}),e.jsx("p",{className:"text-white/90",children:w.innovative_idea.quick_win})]})]})]})]}),w.training_recommendations&&w.training_recommendations.length>0&&e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.85},className:"bg-white rounded-2xl p-8 mb-8 border border-gray-100",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx("div",{className:"w-12 h-12 bg-purple-100 rounded-xl flex items-center justify-center",children:e.jsx(pr,{className:"w-6 h-6 text-purple-600"})}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Aanbevolen Trainingen"})]}),e.jsx("div",{className:"space-y-4",children:w.training_recommendations.map((F,I)=>e.jsxs("div",{className:"p-6 bg-purple-50 rounded-xl border-2 border-purple-100",children:[e.jsxs("div",{className:"flex items-start justify-between mb-3",children:[e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"w-8 h-8 bg-purple-600 rounded-lg flex items-center justify-center flex-shrink-0 mt-0.5",children:e.jsx("span",{className:"text-white font-bold text-sm",children:I+1})}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-gray-900 text-lg mb-1",children:F.training_name}),F.target_audience&&e.jsxs("p",{className:"text-sm text-purple-700 font-medium",children:["Doelgroep: ",F.target_audience]})]})]}),e.jsx(de,{to:se("Contact")+`?training=${encodeURIComponent(F.training_name)}`,className:"flex-shrink-0 px-4 py-2 bg-purple-600 text-white text-sm font-semibold rounded-lg hover:bg-purple-700 transition-colors",children:"Aanvragen"})]}),F.learning_goals&&e.jsxs("div",{className:"mb-3",children:[e.jsx("p",{className:"text-sm font-medium text-gray-700 mb-1",children:"Leerdoelen:"}),e.jsx("p",{className:"text-sm text-gray-600",children:F.learning_goals})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium text-gray-700",children:"Waarom relevant:"}),e.jsx("p",{className:"text-sm text-gray-600",children:F.reason})]}),F.relevance_to_opportunities&&e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium text-gray-700",children:"Link met AI-kansen:"}),e.jsx("p",{className:"text-sm text-gray-600",children:F.relevance_to_opportunities})]}),F.compliance_benefit&&e.jsxs("div",{className:"bg-blue-50 p-2 rounded",children:[e.jsx("p",{className:"text-sm font-medium text-blue-900",children:"Compliance voordeel:"}),e.jsx("p",{className:"text-sm text-blue-800",children:F.compliance_benefit})]})]})]},I))}),e.jsx("div",{className:"flex gap-3 mt-6",children:e.jsxs(de,{to:se("Training"),className:"inline-flex items-center gap-2 px-6 py-3 bg-purple-600 text-white font-semibold rounded-xl hover:bg-purple-700 transition-colors",children:["Bekijk alle trainingen",e.jsx($e,{className:"w-5 h-5"})]})})]}),w.ai_security&&e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.9},className:"bg-white rounded-2xl p-8 mb-8 border border-gray-100",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx("div",{className:"w-12 h-12 bg-red-100 rounded-xl flex items-center justify-center",children:e.jsx(Vn,{className:"w-6 h-6 text-red-600"})}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"AI Veiligheid & Compliance"})]}),w.ai_security.risk_analysis_per_opportunity&&w.ai_security.risk_analysis_per_opportunity.length>0&&e.jsxs("div",{className:"mb-6",children:[e.jsx("h3",{className:"font-semibold text-gray-900 mb-3",children:"📊 Risicoanalyse per AI-kans"}),e.jsx("div",{className:"space-y-3",children:w.ai_security.risk_analysis_per_opportunity.map((F,I)=>{const R=q=>{const U=q==null?void 0:q.toLowerCase();return U!=null&&U.includes("hoog")?"border-red-200 bg-red-50":U!=null&&U.includes("beperkt")?"border-orange-200 bg-orange-50":U!=null&&U.includes("minimaal")?"border-green-200 bg-green-50":"border-gray-200 bg-gray-50"},z=q=>{const U=q==null?void 0:q.toLowerCase();return U!=null&&U.includes("hoog")?"bg-red-100 text-red-800 border-red-200":U!=null&&U.includes("beperkt")?"bg-orange-100 text-orange-800 border-orange-200":U!=null&&U.includes("minimaal")?"bg-green-100 text-green-800 border-green-200":"bg-gray-100 text-gray-800 border-gray-200"};return e.jsxs("div",{className:`p-3 rounded-lg border-2 ${R(F.risk_level)}`,children:[e.jsxs("div",{className:"flex items-start justify-between mb-1",children:[e.jsx("p",{className:"font-medium text-gray-900",children:F.opportunity_title}),e.jsx("span",{className:`px-2 py-1 rounded border text-xs font-semibold ${z(F.risk_level)}`,children:F.risk_level})]}),e.jsx("p",{className:"text-sm text-gray-600",children:F.risk_justification})]},I)})})]}),w.ai_security.data_leak_prevention&&e.jsxs("div",{className:"mb-6 p-4 bg-red-50 rounded-xl border border-red-100",children:[e.jsx("h3",{className:"font-semibold text-gray-900 mb-3",children:"🔒 Datalekpreventie"}),w.ai_security.data_leak_prevention.personal_data_processing&&e.jsxs("div",{className:"mb-3",children:[e.jsx("p",{className:"text-sm font-medium text-gray-700",children:"Persoonsgegevens verwerking:"}),e.jsx("p",{className:"text-sm text-gray-600",children:w.ai_security.data_leak_prevention.personal_data_processing})]}),w.ai_security.data_leak_prevention.leak_risks&&w.ai_security.data_leak_prevention.leak_risks.length>0&&e.jsxs("div",{className:"mb-3",children:[e.jsx("p",{className:"text-sm font-medium text-gray-700 mb-1",children:"Risico's voor datalekken:"}),e.jsx("ul",{className:"space-y-1",children:w.ai_security.data_leak_prevention.leak_risks.map((F,I)=>e.jsxs("li",{className:"flex items-start gap-2 text-sm text-gray-600",children:[e.jsx("span",{className:"text-red-500 mt-0.5",children:"•"}),e.jsx("span",{children:F})]},I))})]}),w.ai_security.data_leak_prevention.prevention_measures&&w.ai_security.data_leak_prevention.prevention_measures.length>0&&e.jsxs("div",{className:"mb-3",children:[e.jsx("p",{className:"text-sm font-medium text-gray-700 mb-1",children:"Preventiemaatregelen:"}),e.jsx("ul",{className:"space-y-1",children:w.ai_security.data_leak_prevention.prevention_measures.map((F,I)=>e.jsxs("li",{className:"flex items-start gap-2 text-sm text-gray-600",children:[e.jsx("span",{className:"text-green-500 mt-0.5",children:"✓"}),e.jsx("span",{children:F})]},I))})]}),w.ai_security.data_leak_prevention.gdpr_implications&&e.jsxs("div",{className:"p-2 bg-blue-50 rounded border border-blue-200",children:[e.jsx("p",{className:"text-sm font-medium text-blue-900",children:"GDPR Implicaties:"}),e.jsx("p",{className:"text-sm text-blue-800",children:w.ai_security.data_leak_prevention.gdpr_implications})]})]}),w.ai_security.eu_ai_act_compliance&&e.jsxs("div",{className:"mb-6 p-4 bg-blue-50 rounded-xl border border-blue-100",children:[e.jsx("h3",{className:"font-semibold text-gray-900 mb-3",children:"🇪🇺 EU AI Act Compliance"}),w.ai_security.eu_ai_act_compliance.high_risk_systems&&w.ai_security.eu_ai_act_compliance.high_risk_systems.length>0&&e.jsxs("div",{className:"mb-3",children:[e.jsx("p",{className:"text-sm font-medium text-gray-700 mb-1",children:"Hoog-risico systemen:"}),e.jsx("ul",{className:"space-y-1",children:w.ai_security.eu_ai_act_compliance.high_risk_systems.map((F,I)=>e.jsxs("li",{className:"text-sm text-gray-600 ml-4",children:["• ",F]},I))})]}),w.ai_security.eu_ai_act_compliance.applicable_articles&&e.jsxs("div",{className:"mb-3",children:[e.jsx("p",{className:"text-sm font-medium text-gray-700",children:"Van toepassing zijnde artikelen:"}),e.jsx("p",{className:"text-sm text-gray-600",children:w.ai_security.eu_ai_act_compliance.applicable_articles})]}),w.ai_security.eu_ai_act_compliance.required_documentation&&e.jsxs("div",{className:"mb-3",children:[e.jsx("p",{className:"text-sm font-medium text-gray-700",children:"Vereiste documentatie:"}),e.jsx("p",{className:"text-sm text-gray-600",children:w.ai_security.eu_ai_act_compliance.required_documentation})]}),w.ai_security.eu_ai_act_compliance.human_oversight&&e.jsxs("div",{className:"mb-3",children:[e.jsx("p",{className:"text-sm font-medium text-gray-700",children:"Menselijk toezicht:"}),e.jsx("p",{className:"text-sm text-gray-600",children:w.ai_security.eu_ai_act_compliance.human_oversight})]}),e.jsxs("div",{className:"flex flex-col gap-3 mt-4",children:[e.jsxs("a",{href:"https://eur-lex.europa.eu/legal-content/NL/TXT/HTML/?uri=OJ:L_202401689",target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 hover:text-blue-700 text-sm font-medium inline-flex items-center gap-1",children:["Bekijk volledige EU AI Act",e.jsx($e,{className:"w-4 h-4"})]}),e.jsxs("a",{href:se("EuAiActChecker"),target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center justify-center gap-2 px-4 py-2 bg-blue-600 text-white text-sm font-semibold rounded-lg hover:bg-blue-700 transition-colors",children:[e.jsx(Vn,{className:"w-4 h-4"}),"Doe uitgebreide EU AI Act check",e.jsx($e,{className:"w-4 h-4"})]})]})]}),w.ai_security.practical_recommendations&&w.ai_security.practical_recommendations.length>0&&e.jsxs("div",{className:"mb-6",children:[e.jsx("h3",{className:"font-semibold text-gray-900 mb-3",children:"✅ Praktische Aanbevelingen"}),e.jsx("ul",{className:"space-y-2",children:w.ai_security.practical_recommendations.map((F,I)=>e.jsxs("li",{className:"flex items-start gap-2 text-gray-700",children:[e.jsx("span",{className:"text-green-500 mt-1",children:"✓"}),e.jsx("span",{children:F})]},I))})]}),w.ai_security.sector_specific_considerations&&e.jsxs("div",{className:"p-4 bg-amber-50 rounded-xl",children:[e.jsx("h3",{className:"font-semibold text-gray-900 mb-2",children:"🢠Sectie-specifieke Overwegingen"}),e.jsx("p",{className:"text-gray-700",children:w.ai_security.sector_specific_considerations})]})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.95},className:"bg-white rounded-2xl p-8 mb-8 border border-gray-100",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx("div",{className:"w-12 h-12 bg-amber-100 rounded-xl flex items-center justify-center",children:e.jsx($a,{className:"w-6 h-6 text-amber-600"})}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Direct Actieplan"})]}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-600 mb-2",children:"Hoogste prioriteit"}),e.jsx("p",{className:"text-lg font-semibold text-gray-900",children:B.priority_opportunity})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-600 mb-2",children:"Eerste stap"}),e.jsx("p",{className:"text-gray-700",children:B.first_step})]})]})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:1},className:"space-y-6",children:[e.jsxs("div",{className:"bg-gradient-to-r from-blue-600 to-indigo-600 rounded-2xl p-8 text-white text-center",children:[e.jsx("h2",{className:"text-2xl font-bold mb-2",children:"Persoonlijk Advies per Email"}),e.jsxs("p",{className:"text-blue-100 mb-6 text-lg",children:["Ontvang een gedetailleerde implementatie roadmap en ROI-berekening specifiek voor ",A.name]}),e.jsxs(ae,{onClick:()=>g(!0),className:"inline-flex items-center justify-center gap-2 px-8 py-4 bg-white text-blue-700 font-bold text-lg rounded-xl hover:bg-gray-100 transition-all shadow-lg",children:[e.jsx(yi,{className:"w-6 h-6"}),"Stuur mij het volledige advies",e.jsx($e,{className:"w-6 h-6"})]})]}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[e.jsxs("div",{className:"bg-gray-900 rounded-2xl p-6 text-white",children:[e.jsx("h3",{className:"text-xl font-bold mb-2",children:"Directe Toelichting"}),e.jsx("p",{className:"text-gray-300 mb-4",children:"Bespreek binnen 15 minuten de mogelijkheden voor jouw bedrijf"}),e.jsxs(de,{to:se("Contact"),className:"inline-flex items-center justify-center gap-2 w-full px-6 py-3 bg-white text-gray-900 font-semibold rounded-xl hover:bg-gray-100 transition-all",children:[e.jsx(Or,{className:"w-5 h-5"}),"Plan een gesprek"]})]}),e.jsxs("div",{className:"bg-purple-600 rounded-2xl p-6 text-white",children:[e.jsx("h3",{className:"text-xl font-bold mb-2",children:"EU AI Act Check"}),e.jsx("p",{className:"text-purple-100 mb-4",children:"Ontdek welke compliance-eisen gelden voor jouw bedrijf"}),e.jsxs(de,{to:se("EuAiActChecker"),className:"inline-flex items-center justify-center gap-2 w-full px-6 py-3 bg-white text-purple-700 font-semibold rounded-xl hover:bg-gray-100 transition-all",children:[e.jsx(Vn,{className:"w-5 h-5"}),"Start AI Act Check"]})]})]})]}),p&&e.jsx("div",{className:"fixed inset-0 bg-black/50 backdrop-blur-sm z-50 flex items-center justify-center p-4",children:e.jsxs(Z.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},className:"bg-white rounded-2xl p-8 max-w-md w-full",children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-4",children:"Ontvang je volledige roadmap"}),e.jsx("p",{className:"text-gray-600 mb-6",children:"Vul je gegevens in en we sturen je een uitgebreide technische roadmap."}),e.jsxs("form",{onSubmit:N,className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Naam *"}),e.jsx(me,{required:!0,value:y.name,onChange:F=>j({...y,name:F.target.value})})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Email *"}),e.jsx(me,{required:!0,type:"email",value:y.email,onChange:F=>j({...y,email:F.target.value})})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Telefoon"}),e.jsx(me,{type:"tel",value:y.phone,onChange:F=>j({...y,phone:F.target.value})})]}),e.jsxs("div",{className:"flex gap-3 pt-4",children:[e.jsx(ae,{type:"button",variant:"outline",onClick:()=>g(!1),className:"flex-1",children:"Annuleren"}),e.jsx(ae,{type:"submit",className:"flex-1 bg-blue-600 hover:bg-blue-700",children:"Versturen"})]})]})]})})]})})}return e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-blue-50 to-white",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-20",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[e.jsxs("h1",{className:"text-5xl sm:text-6xl lg:text-7xl font-bold text-[#0D0D0F] mb-8",children:["Ontvang gratis 48-7 ",e.jsx("br",{}),"AI Impact Rapport"]}),e.jsx("p",{className:"text-2xl text-[#9CA3AF] max-w-2xl mx-auto",children:"Ontdek in 60 seconden hoe AI jouw bedrijf van 24-7 naar 48-7 brengt"})]}),e.jsx(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"bg-white rounded-2xl p-8 shadow-sm border border-gray-100",children:e.jsxs("form",{onSubmit:w=>{w.preventDefault(),x()},className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Website URL *"}),e.jsx(me,{type:"text",placeholder:"jouwbedrijf.nl",value:t,onChange:w=>n(w.target.value),required:!0,className:"text-lg py-6"}),e.jsx("p",{className:"text-sm text-gray-500 mt-1",children:"Vul alleen het domein in, bijv. bedrijf.nl (https:// wordt automatisch toegevoegd)"})]}),e.jsxs("div",{className:"grid sm:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Bedrijfsnaam (optioneel)"}),e.jsx(me,{type:"text",placeholder:"Je Bedrijf BV",value:r,onChange:w=>i(w.target.value)})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Industrie (optioneel)"}),e.jsx("select",{value:s,onChange:w=>a(w.target.value),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",children:v.map(w=>e.jsx("option",{value:w.value,children:w.label},w.value))})]})]}),e.jsx(ae,{type:"submit",className:"w-full py-6 bg-[#FAB868] hover:bg-[#E5A04D] text-[#0D0D0F] font-bold text-lg",children:e.jsxs("span",{className:"flex items-center gap-2 justify-center",children:[e.jsx(At,{className:"w-5 h-5"}),"Genereer mijn Impact Rapport",e.jsx($e,{className:"w-5 h-5"})]})}),e.jsx("p",{className:"text-xs text-gray-500 text-center",children:"✓ 100% gratis • ✓ Geen verplichtingen • ✓ Direct resultaat"})]})}),e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.4},className:"mt-12 text-center",children:[e.jsx("p",{className:"text-gray-600 mb-4",children:"Vertrouwd door:"}),e.jsxs("div",{className:"flex items-center justify-center gap-8 opacity-50",children:[e.jsx("div",{className:"w-16 h-16 bg-gray-200 rounded-xl"}),e.jsx("div",{className:"w-16 h-16 bg-gray-200 rounded-xl"}),e.jsx("div",{className:"w-16 h-16 bg-gray-200 rounded-xl"}),e.jsx("div",{className:"w-16 h-16 bg-gray-200 rounded-xl"})]})]})]})})}function ite(){return e.jsx("div",{className:"pt-20 min-h-screen bg-white",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:e.jsxs("div",{className:"bg-[#F4F4F4] rounded-3xl p-12",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[e.jsx($t,{className:"w-12 h-12 text-[#FAB868]"}),e.jsx("h1",{className:"text-5xl font-bold text-[#0D0D0F]",children:"Impact Report"})]}),e.jsxs("div",{className:"prose max-w-none",children:[e.jsxs("h2",{className:"flex items-center gap-2",children:[e.jsx(YP,{className:"w-5 h-5"})," Overzicht"]}),e.jsx("p",{children:"Het 48-7 Impact Report is een AI-gedreven tool die automatisch een gepersonaliseerd rapport genereert met concrete AI-kansen voor een bedrijf op basis van hun website."}),e.jsx("h2",{children:"Architectuur"}),e.jsx("h3",{children:"Frontend: pages/ImpactRapport.jsx"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Framework:"})," React met Framer Motion voor animaties"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Input:"})," Website URL, optioneel bedrijfsnaam en industrie"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Flow:"}),e.jsxs("ol",{children:[e.jsx("li",{children:"Gebruiker voert website URL in"}),e.jsx("li",{children:"Optioneel: bedrijfsnaam en industrie selectie"}),e.jsx("li",{children:"Backend functie wordt aangeroepen"}),e.jsx("li",{children:"Loading state (30-60 seconden)"}),e.jsx("li",{children:"Rapport wordt getoond"})]})]})]}),e.jsx("h3",{children:"Backend: functions/generateImpactReport.js"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Runtime:"})," Deno Deploy"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"LLM:"})," OpenAI (via Base44 Core.InvokeLLM integration)"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Features:"}),e.jsxs("ul",{children:[e.jsx("li",{children:"Website scraping via fetch_website"}),e.jsx("li",{children:"Ophalen custom prompts uit database (ImpactReportPrompt entity)"}),e.jsx("li",{children:"Gestructureerde JSON output via response_json_schema"}),e.jsx("li",{children:"Gebruik van internet context voor actuele informatie"})]})]})]}),e.jsx("h2",{children:"Functionaliteiten"}),e.jsx("h3",{children:"1. Bedrijfsprofiel"}),e.jsxs("ul",{children:[e.jsx("li",{children:"Automatische extractie van sector en kernactiviteiten"}),e.jsx("li",{children:"Gebaseerd op website content"})]}),e.jsx("h3",{children:"2. Quick Scan"}),e.jsxs("ul",{children:[e.jsx("li",{children:"Analyse van tijd-intensieve processen"}),e.jsx("li",{children:"Identificatie van USP's"}),e.jsx("li",{children:"Focus op verbeterpotentieel"})]}),e.jsx("h3",{children:"3. Vijf AI Kansen"}),e.jsx("p",{children:"Voor elke kans:"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Titel:"})," Duidelijke omschrijving van de kans"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Probleem:"})," Huidige situatie/uitdaging"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Oplossing:"})," Concrete AI-oplossing"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Relevantie:"})," Waarom specifiek relevant voor dit bedrijf"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Implementatiestappen:"})," 3-5 concrete stappen"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Data & Privacy:"})," Privacy overwegingen"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Winst:"})," Concrete voordelen/ROI"]})]}),e.jsx("h3",{children:"4. Productiviteitsprognose"}),e.jsxs("ul",{children:[e.jsx("li",{children:"Huidige output: 100%"}),e.jsx("li",{children:"Projectie met AI: typisch 150-200%"}),e.jsx("li",{children:"Drivers: Specifieke factoren die groei veroorzaken"})]}),e.jsx("h3",{children:"5. AI Veiligheid & Compliance"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Risicoanalyse per AI-kans:"})," Risk level tags (Hoog/Beperkt/Minimaal)"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Datalekpreventie:"})," GDPR compliance, preventiemaatregelen"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"EU AI Act:"})," Hoog-risico systemen, documentatie-eisen"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Praktische aanbevelingen:"})," Concrete actiepunten"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Sector-specifiek:"})," Branche-specifieke overwegingen"]})]}),e.jsxs("h2",{className:"flex items-center gap-2",children:[e.jsx(di,{className:"w-5 h-5"})," LLM Prompt Structuur"]}),e.jsx("h3",{children:"Prompt Template"}),e.jsx("pre",{className:"bg-gray-100 p-4 rounded-lg overflow-x-auto",children:`Je bent een AI-consultant voor MKB-bedrijven in Nederland.
Analyseer {company_name} en genereer een concreet Impact Rapport.
Website content: {website_content}
Bedrijfsnaam: {company_name}
Industrie: {industry}
CRITICAL INSTRUCTIONS:
- Output ALLEEN in het Nederlands
- Wees specifiek en concreet, geen algemene AI-praatjes
- Verwijs naar specifieke processen van DIT bedrijf
- Geef concrete voorbeelden en ROI-schattingen
- Implementatiestappen moeten realistisch en uitvoerbaar zijn
- Data privacy overwegingen per kans vermelden
Analyseer:
1. Bedrijfsprofiel (sector, kernactiviteiten)
2. Quick Scan (USP, tijd-intensieve processen, focus)
3. Vijf AI Kansen (titel, probleem, oplossing, relevantie,
implementatie, data privacy, winst)
4. Productiviteitsprognose (huidige %, met AI %, drivers)
5. Voorbeeldcase uit de markt
6. Innovatief AI-idee (titel, beschrijving, unique value,
impact, implementatie, quick win)
7. Training aanbevelingen
8. AI Veiligheid & Compliance
9. Actieplan (prioriteit, eerste stap)`}),e.jsx("h3",{children:"JSON Schema Output"}),e.jsx("pre",{className:"bg-gray-100 p-4 rounded-lg overflow-x-auto text-sm",children:`{
"company_profile": {
"name": "string",
"sector": "string",
"core_activities": "string"
},
"quick_scan": {
"usp": "string",
"time_intensive_processes": "string",
"focus": "string"
},
"opportunities": [
{
"title": "string",
"problem": "string",
"solution": "string",
"relevance": "string",
"implementation_steps": ["string"],
"data_privacy": "string",
"benefit": "string"
}
],
"productivity_forecast": {
"current": 100,
"with_ai": "number",
"drivers": ["string"]
},
"ai_security": {
"risk_analysis_per_opportunity": [...],
"data_leak_prevention": {...},
"eu_ai_act_compliance": {...}
}
}`}),e.jsxs("h2",{className:"flex items-center gap-2",children:[e.jsx(P4,{className:"w-5 h-5"})," LLM Gebruik"]}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Provider:"})," OpenAI (via Base44 Core.InvokeLLM)"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Context:"})," Website content + optionele internet context"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Output:"})," Gestructureerde JSON volgens schema"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Taal:"})," Nederlands (geforceerd in prompt)"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Verwerkingstijd:"})," 30-60 seconden"]})]}),e.jsx("h2",{children:"Risk Level Kleuren"}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-lg border-2 border-red-200 bg-red-50",children:[e.jsx("span",{className:"px-3 py-1 bg-red-100 text-red-800 border border-red-200 rounded text-sm font-semibold",children:"Hoog risico"}),e.jsx("span",{className:"text-sm",children:"border-red-200 bg-red-50"})]}),e.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-lg border-2 border-orange-200 bg-orange-50",children:[e.jsx("span",{className:"px-3 py-1 bg-orange-100 text-orange-800 border border-orange-200 rounded text-sm font-semibold",children:"Beperkt risico"}),e.jsx("span",{className:"text-sm",children:"border-orange-200 bg-orange-50"})]}),e.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-lg border-2 border-green-200 bg-green-50",children:[e.jsx("span",{className:"px-3 py-1 bg-green-100 text-green-800 border border-green-200 rounded text-sm font-semibold",children:"Minimaal risico"}),e.jsx("span",{className:"text-sm",children:"border-green-200 bg-green-50"})]})]}),e.jsx("h2",{children:"Integraties"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"ImpactReportWidget:"})," Herbruikbaar component voor andere pages"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"EU AI Act Button:"})," Opent in nieuw tabblad"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Training Links:"})," Direct naar Contact pagina met pre-filled training"]})]}),e.jsx("h2",{children:"Call-to-Actions"}),e.jsxs("ol",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Primary:"}),' "Stuur mij het volledige advies" (Email modal)']}),e.jsxs("li",{children:[e.jsx("strong",{children:"Secondary:"}),e.jsxs("ul",{children:[e.jsx("li",{children:'"Plan een gesprek" (Link naar Contact)'}),e.jsx("li",{children:'"Start AI Act Check" (Link naar EU AI Act Checker)'})]})]})]}),e.jsx("h2",{children:"Files"}),e.jsxs("ul",{className:"font-mono text-sm",children:[e.jsx("li",{children:"pages/ImpactRapport.jsx - Frontend component"}),e.jsx("li",{children:"functions/generateImpactReport.js - Backend function"}),e.jsx("li",{children:"components/impact/ImpactReportWidget.jsx - Reusable widget"}),e.jsx("li",{children:"entities/ImpactReportPrompt.json - Custom prompts database"})]})]})]})})})}var $u={};(function t(n,r,i,s){var a=!!(n.Worker&&n.Blob&&n.Promise&&n.OffscreenCanvas&&n.OffscreenCanvasRenderingContext2D&&n.HTMLCanvasElement&&n.HTMLCanvasElement.prototype.transferControlToOffscreen&&n.URL&&n.URL.createObjectURL),o=typeof Path2D=="function"&&typeof DOMMatrix=="function",c=(function(){if(!n.OffscreenCanvas)return!1;try{var P=new OffscreenCanvas(1,1),T=P.getContext("2d");T.fillRect(0,0,1,1);var V=P.transferToImageBitmap();T.createPattern(V,"no-repeat")}catch{return!1}return!0})();function d(){}function h(P){var T=r.exports.Promise,V=T!==void 0?T:n.Promise;return typeof V=="function"?new V(P):(P(d,d),null)}var f=(function(P,T){return{transform:function(V){if(P)return V;if(T.has(V))return T.get(V);var L=new OffscreenCanvas(V.width,V.height),X=L.getContext("2d");return X.drawImage(V,0,0),T.set(V,L),L},clear:function(){T.clear()}}})(c,new Map),m=(function(){var P=Math.floor(16.666666666666668),T,V,L={},X=0;return typeof requestAnimationFrame=="function"&&typeof cancelAnimationFrame=="function"?(T=function(J){var W=Math.random();return L[W]=requestAnimationFrame(function G(ee){X===ee||X+P-1<ee?(X=ee,delete L[W],J()):L[W]=requestAnimationFrame(G)}),W},V=function(J){L[J]&&cancelAnimationFrame(L[J])}):(T=function(J){return setTimeout(J,P)},V=function(J){return clearTimeout(J)}),{frame:T,cancel:V}})(),p=(function(){var P,T,V={};function L(X){function J(W,G){X.postMessage({options:W||{},callback:G})}X.init=function(G){var ee=G.transferControlToOffscreen();X.postMessage({canvas:ee},[ee])},X.fire=function(G,ee,ne){if(T)return J(G,null),T;var le=Math.random().toString(36).slice(2);return T=h(function(ve){function be(Oe){Oe.data.callback===le&&(delete V[le],X.removeEventListener("message",be),T=null,f.clear(),ne(),ve())}X.addEventListener("message",be),J(G,le),V[le]=be.bind(null,{data:{callback:le}})}),T},X.reset=function(){X.postMessage({reset:!0});for(var G in V)V[G](),delete V[G]}}return function(){if(P)return P;if(!i&&a){var X=["var CONFETTI, SIZE = {}, module = {};","("+t.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {"," if (msg.data.options) {"," CONFETTI(msg.data.options).then(function () {"," if (msg.data.callback) {"," postMessage({ callback: msg.data.callback });"," }"," });"," } else if (msg.data.reset) {"," CONFETTI && CONFETTI.reset();"," } else if (msg.data.resize) {"," SIZE.width = msg.data.resize.width;"," SIZE.height = msg.data.resize.height;"," } else if (msg.data.canvas) {"," SIZE.width = msg.data.canvas.width;"," SIZE.height = msg.data.canvas.height;"," CONFETTI = module.exports.create(msg.data.canvas);"," }","}"].join(`
`);try{P=new Worker(URL.createObjectURL(new Blob([X])))}catch(J){return typeof console<"u"&&typeof console.warn=="function"&&console.warn("🎊 Could not load worker",J),null}L(P)}return P}})(),g={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function y(P,T){return T?T(P):P}function j(P){return P!=null}function v(P,T,V){return y(P&&j(P[T])?P[T]:g[T],V)}function x(P){return P<0?0:Math.floor(P)}function N(P,T){return Math.floor(Math.random()*(T-P))+P}function w(P){return parseInt(P,16)}function k(P){return P.map(A)}function A(P){var T=String(P).replace(/[^0-9a-f]/gi,"");return T.length<6&&(T=T[0]+T[0]+T[1]+T[1]+T[2]+T[2]),{r:w(T.substring(0,2)),g:w(T.substring(2,4)),b:w(T.substring(4,6))}}function S(P){var T=v(P,"origin",Object);return T.x=v(T,"x",Number),T.y=v(T,"y",Number),T}function E(P){P.width=document.documentElement.clientWidth,P.height=document.documentElement.clientHeight}function C(P){var T=P.getBoundingClientRect();P.width=T.width,P.height=T.height}function B(P){var T=document.createElement("canvas");return T.style.position="fixed",T.style.top="0px",T.style.left="0px",T.style.pointerEvents="none",T.style.zIndex=P,T}function F(P,T,V,L,X,J,W,G,ee){P.save(),P.translate(T,V),P.rotate(J),P.scale(L,X),P.arc(0,0,1,W,G,ee),P.restore()}function I(P){var T=P.angle*(Math.PI/180),V=P.spread*(Math.PI/180);return{x:P.x,y:P.y,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:P.startVelocity*.5+Math.random()*P.startVelocity,angle2D:-T+(.5*V-Math.random()*V),tiltAngle:(Math.random()*(.75-.25)+.25)*Math.PI,color:P.color,shape:P.shape,tick:0,totalTicks:P.ticks,decay:P.decay,drift:P.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:P.gravity*3,ovalScalar:.6,scalar:P.scalar,flat:P.flat}}function R(P,T){T.x+=Math.cos(T.angle2D)*T.velocity+T.drift,T.y+=Math.sin(T.angle2D)*T.velocity+T.gravity,T.velocity*=T.decay,T.flat?(T.wobble=0,T.wobbleX=T.x+10*T.scalar,T.wobbleY=T.y+10*T.scalar,T.tiltSin=0,T.tiltCos=0,T.random=1):(T.wobble+=T.wobbleSpeed,T.wobbleX=T.x+10*T.scalar*Math.cos(T.wobble),T.wobbleY=T.y+10*T.scalar*Math.sin(T.wobble),T.tiltAngle+=.1,T.tiltSin=Math.sin(T.tiltAngle),T.tiltCos=Math.cos(T.tiltAngle),T.random=Math.random()+2);var V=T.tick++/T.totalTicks,L=T.x+T.random*T.tiltCos,X=T.y+T.random*T.tiltSin,J=T.wobbleX+T.random*T.tiltCos,W=T.wobbleY+T.random*T.tiltSin;if(P.fillStyle="rgba("+T.color.r+", "+T.color.g+", "+T.color.b+", "+(1-V)+")",P.beginPath(),o&&T.shape.type==="path"&&typeof T.shape.path=="string"&&Array.isArray(T.shape.matrix))P.fill(H(T.shape.path,T.shape.matrix,T.x,T.y,Math.abs(J-L)*.1,Math.abs(W-X)*.1,Math.PI/10*T.wobble));else if(T.shape.type==="bitmap"){var G=Math.PI/10*T.wobble,ee=Math.abs(J-L)*.1,ne=Math.abs(W-X)*.1,le=T.shape.bitmap.width*T.scalar,ve=T.shape.bitmap.height*T.scalar,be=new DOMMatrix([Math.cos(G)*ee,Math.sin(G)*ee,-Math.sin(G)*ne,Math.cos(G)*ne,T.x,T.y]);be.multiplySelf(new DOMMatrix(T.shape.matrix));var Oe=P.createPattern(f.transform(T.shape.bitmap),"no-repeat");Oe.setTransform(be),P.globalAlpha=1-V,P.fillStyle=Oe,P.fillRect(T.x-le/2,T.y-ve/2,le,ve),P.globalAlpha=1}else if(T.shape==="circle")P.ellipse?P.ellipse(T.x,T.y,Math.abs(J-L)*T.ovalScalar,Math.abs(W-X)*T.ovalScalar,Math.PI/10*T.wobble,0,2*Math.PI):F(P,T.x,T.y,Math.abs(J-L)*T.ovalScalar,Math.abs(W-X)*T.ovalScalar,Math.PI/10*T.wobble,0,2*Math.PI);else if(T.shape==="star")for(var Te=Math.PI/2*3,We=4*T.scalar,ut=8*T.scalar,nt=T.x,ge=T.y,ye=5,Ae=Math.PI/ye;ye--;)nt=T.x+Math.cos(Te)*ut,ge=T.y+Math.sin(Te)*ut,P.lineTo(nt,ge),Te+=Ae,nt=T.x+Math.cos(Te)*We,ge=T.y+Math.sin(Te)*We,P.lineTo(nt,ge),Te+=Ae;else P.moveTo(Math.floor(T.x),Math.floor(T.y)),P.lineTo(Math.floor(T.wobbleX),Math.floor(X)),P.lineTo(Math.floor(J),Math.floor(W)),P.lineTo(Math.floor(L),Math.floor(T.wobbleY));return P.closePath(),P.fill(),T.tick<T.totalTicks}function z(P,T,V,L,X){var J=T.slice(),W=P.getContext("2d"),G,ee,ne=h(function(le){function ve(){G=ee=null,W.clearRect(0,0,L.width,L.height),f.clear(),X(),le()}function be(){i&&!(L.width===s.width&&L.height===s.height)&&(L.width=P.width=s.width,L.height=P.height=s.height),!L.width&&!L.height&&(V(P),L.width=P.width,L.height=P.height),W.clearRect(0,0,L.width,L.height),J=J.filter(function(Oe){return R(W,Oe)}),J.length?G=m.frame(be):ve()}G=m.frame(be),ee=ve});return{addFettis:function(le){return J=J.concat(le),ne},canvas:P,promise:ne,reset:function(){G&&m.cancel(G),ee&&ee()}}}function q(P,T){var V=!P,L=!!v(T||{},"resize"),X=!1,J=v(T,"disableForReducedMotion",Boolean),W=a&&!!v(T||{},"useWorker"),G=W?p():null,ee=V?E:C,ne=P&&G?!!P.__confetti_initialized:!1,le=typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion)").matches,ve;function be(Te,We,ut){for(var nt=v(Te,"particleCount",x),ge=v(Te,"angle",Number),ye=v(Te,"spread",Number),Ae=v(Te,"startVelocity",Number),Pe=v(Te,"decay",Number),je=v(Te,"gravity",Number),tt=v(Te,"drift",Number),et=v(Te,"colors",k),rt=v(Te,"ticks",Number),xe=v(Te,"shapes"),_e=v(Te,"scalar"),De=!!v(Te,"flat"),it=S(Te),He=nt,_t=[],Pr=P.width*it.x,Un=P.height*it.y;He--;)_t.push(I({x:Pr,y:Un,angle:ge,spread:ye,startVelocity:Ae,color:et[He%et.length],shape:xe[N(0,xe.length)],ticks:rt,decay:Pe,gravity:je,drift:tt,scalar:_e,flat:De}));return ve?ve.addFettis(_t):(ve=z(P,_t,ee,We,ut),ve.promise)}function Oe(Te){var We=J||v(Te,"disableForReducedMotion",Boolean),ut=v(Te,"zIndex",Number);if(We&&le)return h(function(Ae){Ae()});V&&ve?P=ve.canvas:V&&!P&&(P=B(ut),document.body.appendChild(P)),L&&!ne&&ee(P);var nt={width:P.width,height:P.height};G&&!ne&&G.init(P),ne=!0,G&&(P.__confetti_initialized=!0);function ge(){if(G){var Ae={getBoundingClientRect:function(){if(!V)return P.getBoundingClientRect()}};ee(Ae),G.postMessage({resize:{width:Ae.width,height:Ae.height}});return}nt.width=nt.height=null}function ye(){ve=null,L&&(X=!1,n.removeEventListener("resize",ge)),V&&P&&(document.body.contains(P)&&document.body.removeChild(P),P=null,ne=!1)}return L&&!X&&(X=!0,n.addEventListener("resize",ge,!1)),G?G.fire(Te,nt,ye):be(Te,nt,ye)}return Oe.reset=function(){G&&G.reset(),ve&&ve.reset()},Oe}var U;function Q(){return U||(U=q(null,{useWorker:!0,resize:!0})),U}function H(P,T,V,L,X,J,W){var G=new Path2D(P),ee=new Path2D;ee.addPath(G,new DOMMatrix(T));var ne=new Path2D;return ne.addPath(ee,new DOMMatrix([Math.cos(W)*X,Math.sin(W)*X,-Math.sin(W)*J,Math.cos(W)*J,V,L])),ne}function K(P){if(!o)throw new Error("path confetti are not supported in this browser");var T,V;typeof P=="string"?T=P:(T=P.path,V=P.matrix);var L=new Path2D(T),X=document.createElement("canvas"),J=X.getContext("2d");if(!V){for(var W=1e3,G=W,ee=W,ne=0,le=0,ve,be,Oe=0;Oe<W;Oe+=2)for(var Te=0;Te<W;Te+=2)J.isPointInPath(L,Oe,Te,"nonzero")&&(G=Math.min(G,Oe),ee=Math.min(ee,Te),ne=Math.max(ne,Oe),le=Math.max(le,Te));ve=ne-G,be=le-ee;var We=10,ut=Math.min(We/ve,We/be);V=[ut,0,0,ut,-Math.round(ve/2+G)*ut,-Math.round(be/2+ee)*ut]}return{type:"path",path:T,matrix:V}}function Y(P){var T,V=1,L="#000000",X='"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif';typeof P=="string"?T=P:(T=P.text,V="scalar"in P?P.scalar:V,X="fontFamily"in P?P.fontFamily:X,L="color"in P?P.color:L);var J=10*V,W=""+J+"px "+X,G=new OffscreenCanvas(J,J),ee=G.getContext("2d");ee.font=W;var ne=ee.measureText(T),le=Math.ceil(ne.actualBoundingBoxRight+ne.actualBoundingBoxLeft),ve=Math.ceil(ne.actualBoundingBoxAscent+ne.actualBoundingBoxDescent),be=2,Oe=ne.actualBoundingBoxLeft+be,Te=ne.actualBoundingBoxAscent+be;le+=be+be,ve+=be+be,G=new OffscreenCanvas(le,ve),ee=G.getContext("2d"),ee.font=W,ee.fillStyle=L,ee.fillText(T,Oe,Te);var We=1/V;return{type:"bitmap",bitmap:G.transferToImageBitmap(),matrix:[We,0,0,We,-le*We/2,-ve*We/2]}}r.exports=function(){return Q().apply(this,arguments)},r.exports.reset=function(){Q().reset()},r.exports.create=q,r.exports.shapeFromPath=K,r.exports.shapeFromText=Y})((function(){return typeof window<"u"?window:typeof self<"u"?self:this||{}})(),$u,!1);const ste=$u.exports;$u.exports.create;function ate({deelnemers:t}){const[n,r]=D.useState(!1),[i,s]=D.useState(0),a=t,c=360/a.length,d=()=>{if(n)return;r(!0);const m=5+Math.random()*3,p=Math.random()*360,g=i+m*360+p;s(g),setTimeout(()=>{r(!1),ste({particleCount:100,spread:70,origin:{y:.6}})},5e3)},h=m=>m%2===0?"#EF4444":"#FFFFFF",f=m=>m%2===0?"#FFFFFF":"#EF4444";return e.jsxs("div",{className:"flex flex-col items-center",children:[e.jsxs(Z.div,{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},className:"text-center mb-8",children:[e.jsx("h1",{className:"text-4xl md:text-5xl font-bold text-transparent bg-clip-text bg-gradient-to-r from-yellow-500 via-orange-500 to-red-500 mb-2",children:"KOFFIE ROULETTE"}),e.jsx("p",{className:"text-gray-700 text-lg",children:"Draai het wiel en ontdek wie er koffie moet halen!"})]}),e.jsxs("div",{className:"relative mb-8",children:[e.jsx(Z.div,{initial:{opacity:0,scale:0},animate:{opacity:1,scale:1},transition:{delay:.2},className:"absolute top-0 left-1/2 -translate-x-1/2 -translate-y-8 z-20",children:e.jsx("div",{className:"w-0 h-0 border-l-[20px] border-l-transparent border-r-[20px] border-r-transparent border-t-[40px] border-t-yellow-500 drop-shadow-lg"})}),e.jsxs(Z.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},className:"relative",children:[e.jsx("div",{className:"absolute inset-0 rounded-full bg-gradient-to-br from-yellow-400 via-orange-400 to-red-500 blur-2xl opacity-30 animate-pulse"}),e.jsxs("div",{className:"relative w-[400px] h-[400px] md:w-[500px] md:h-[500px] rounded-full border-[12px] border-yellow-500 shadow-2xl overflow-visible bg-white",children:[e.jsx(Z.svg,{className:"w-full h-full",viewBox:"0 0 200 200",animate:{rotate:i},transition:{duration:5,ease:[.25,.1,.25,1]},children:a.map((m,p)=>{const g=(c*p-90)*(Math.PI/180),y=(c*(p+1)-90)*(Math.PI/180),j=(c*p+c/2-90)*(Math.PI/180),v=100+100*Math.cos(g),x=100+100*Math.sin(g),N=100+100*Math.cos(y),w=100+100*Math.sin(y),k=c>180?1:0,A=`M 100 100 L ${v} ${x} A 100 100 0 ${k} 1 ${N} ${w} Z`,S=h(p),E=f(p),C=60,B=100+C*Math.cos(j),F=100+C*Math.sin(j),I=c*p+c/2;return e.jsxs("g",{children:[e.jsx("path",{d:A,fill:S}),e.jsxs("g",{transform:`translate(${B}, ${F}) rotate(${I})`,children:[e.jsx("text",{textAnchor:"middle",fill:E,fontSize:"24",y:"-5",children:m.character.split(" ")[0]}),e.jsx("text",{textAnchor:"middle",fill:E,fontSize:"8",fontWeight:"bold",y:"15",writingMode:"tb",letterSpacing:"1",children:m.name.toUpperCase()})]})]},`${m.id}-${p}`)})}),e.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-20 h-20 rounded-full bg-gradient-to-br from-yellow-500 to-orange-500 border-4 border-white shadow-xl flex items-center justify-center z-10",children:e.jsx("div",{className:"text-3xl",children:"☕"})})]}),e.jsx("div",{className:"absolute -bottom-8 left-1/2 -translate-x-1/2 w-32 h-12 bg-gradient-to-b from-yellow-500 to-yellow-600 rounded-t-lg",style:{clipPath:"polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%)"}})]})]}),e.jsx(ae,{onClick:d,disabled:n,className:"px-12 py-6 text-2xl font-bold bg-gradient-to-r from-orange-500 to-red-500 hover:from-orange-600 hover:to-red-600 text-white disabled:opacity-50 mb-8",children:n?"🎰 Aan het draaien...":"🎰 SPIN!"})]})}function ote(){const[t,n]=D.useState(null),[r,i]=D.useState({name:"",character:"☕ Koffieboon"}),[s,a]=D.useState(!1),o=Wt(),{data:c=[]}=Fe({queryKey:["koffie-deelnemers"],queryFn:()=>ce.entities.KoffieDeelnemer.list()}),d=Me({mutationFn:x=>ce.entities.KoffieDeelnemer.create(x),onSuccess:()=>{o.invalidateQueries({queryKey:["koffie-deelnemers"]}),i({name:"",character:"☕ Koffieboon"})}}),h=Me({mutationFn:({id:x,data:N})=>ce.entities.KoffieDeelnemer.update(x,N),onSuccess:()=>{o.invalidateQueries({queryKey:["koffie-deelnemers"]}),n(null)}}),f=Me({mutationFn:x=>ce.entities.KoffieDeelnemer.delete(x),onSuccess:()=>o.invalidateQueries({queryKey:["koffie-deelnemers"]})}),m=x=>{x.preventDefault(),t?h.mutate({id:t,data:r}):d.mutate({...r,is_present:!0})},p=x=>{h.mutate({id:x.id,data:{...x,is_present:!x.is_present}})},g=x=>{n(x.id),i({name:x.name,character:x.character})},y=c.filter(x=>x.is_present),j=y.length>=2,v=["☕ Koffieboon","🦸 Superheld","🥷 Ninja","👑 Koning/Koningin","🤖 Robot","ðŸ´â€â˜ ï¸ Piraat","🧙 Tovenaar","🦄 Eenhoorn","🉠Draak","🚀 Astronaut"];return s&&j?e.jsx("div",{className:"min-h-screen bg-gradient-to-br from-yellow-50 via-orange-50 to-red-50 pt-20",children:e.jsxs("div",{className:"max-w-6xl mx-auto px-4 py-12",children:[e.jsxs(ae,{onClick:()=>a(!1),variant:"outline",className:"mb-6",children:[e.jsx(Ht,{className:"w-4 h-4 mr-2"}),"Terug naar deelnemers"]}),e.jsx(ate,{deelnemers:y})]})}):e.jsx("div",{className:"min-h-screen bg-gradient-to-br from-yellow-50 via-orange-50 to-red-50 pt-20",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 py-12",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[e.jsx("h1",{className:"text-5xl font-bold text-gray-900 mb-4",children:"☕ Koffie Roulette"}),e.jsx("p",{className:"text-xl text-gray-600",children:"Wie moet er vandaag koffie halen?"})]}),e.jsx(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:"text-center mb-8",children:j?e.jsx(ae,{onClick:()=>a(!0),disabled:!j,className:"px-12 py-6 text-2xl font-bold bg-gradient-to-r from-orange-500 to-red-500 hover:from-orange-600 hover:to-red-600 text-white",children:"🎰 Start Koffie Roulette!"}):e.jsx("p",{className:"text-gray-600 mb-4",children:"Zorg dat minimaal 2 deelnemers aanwezig zijn om te kunnen spinnen"})}),e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"bg-white rounded-2xl p-6 mb-8 border-2 border-orange-200",children:[e.jsxs("h2",{className:"text-xl font-bold text-gray-900 mb-4",children:["Deelnemers (",y.length," aanwezig van ",c.length,")"]}),c.length===0?e.jsx("p",{className:"text-gray-500 text-center py-8",children:"Geen deelnemers toegevoegd. Voeg er een paar toe om te beginnen!"}):e.jsx("div",{className:"space-y-3",children:e.jsx(Cr,{children:c.map(x=>e.jsxs(Z.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},exit:{opacity:0,x:20},className:`flex items-center justify-between p-4 rounded-xl border-2 transition-all ${x.is_present?"bg-green-50 border-green-200":"bg-gray-50 border-gray-200 opacity-50"}`,children:[e.jsxs("div",{className:"flex items-center gap-4 flex-1",children:[e.jsx("div",{className:"text-3xl",children:x.character.split(" ")[0]}),e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold text-gray-900",children:x.name}),e.jsx("p",{className:"text-sm text-gray-600",children:x.character})]})]}),e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-sm font-medium text-gray-700",children:x.is_present?"Aanwezig":"Afwezig"}),e.jsx(Yc,{checked:x.is_present,onCheckedChange:()=>p(x),className:"data-[state=checked]:bg-green-500"})]}),e.jsx(ae,{variant:"outline",size:"sm",onClick:()=>g(x),children:e.jsx($c,{className:"w-4 h-4"})}),e.jsx(ae,{variant:"outline",size:"sm",onClick:()=>f.mutate(x.id),children:e.jsx(wt,{className:"w-4 h-4"})})]})]},x.id))})})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3},className:"bg-white rounded-2xl p-6 border-2 border-orange-200",children:[e.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-4",children:t?"Deelnemer bewerken":"Nieuwe deelnemer"}),e.jsxs("form",{onSubmit:m,className:"flex flex-col sm:flex-row gap-4",children:[e.jsx(me,{required:!0,placeholder:"Naam",value:r.name,onChange:x=>i({...r,name:x.target.value}),className:"flex-1"}),e.jsx("select",{value:r.character,onChange:x=>i({...r,character:x.target.value}),className:"px-4 py-3 border-b-2 border-gray-200 focus:border-orange-500 rounded-none bg-white focus:outline-none",children:v.map(x=>e.jsx("option",{value:x,children:x},x))}),e.jsx(ae,{type:"submit",className:"bg-orange-500 hover:bg-orange-600",children:t?e.jsxs(e.Fragment,{children:[e.jsx($c,{className:"w-4 h-4 mr-2"}),"Opslaan"]}):e.jsxs(e.Fragment,{children:[e.jsx(Pt,{className:"w-4 h-4 mr-2"}),"Toevoegen"]})}),t&&e.jsx(ae,{type:"button",variant:"outline",onClick:()=>{n(null),i({name:"",character:"☕ Koffieboon"})},children:"Annuleren"})]})]})]})})}const lte=[{id:"1",title:"AI in 48 seconden - 6 januari 2026",video_url:"https://www.youtube.com/embed/dQw4w9WgXcQ",publication_date:"2026-01-06",short_description:"OpenAI lanceert GPT-5, Google's nieuwe AI chip breekt records, en EU stelt strengere AI regelgeving vast.",articles:[{article_title:"OpenAI onthult GPT-5: De volgende generatie AI",article_content:`OpenAI heeft vandaag GPT-5 aangekondigd, met aanzienlijk verbeterde reasoning capabilities en multimodale functionaliteit.
## Belangrijkste verbeteringen
**Beter redeneren**: GPT-5 toont een dramatische verbetering in logisch redeneren en probleemoplossing. In benchmarks scoort het model 30% hoger dan GPT-4 op complexe wiskundige vraagstukken.
**Multimodale capaciteiten**: Het nieuwe model kan naadloos werken met tekst, afbeeldingen, audio en video. Dit opent deuren voor volledig nieuwe toepassingen.
**Langere context**: GPT-5 kan nu tot 500.000 tokens verwerken in één keer, waardoor het geschikt is voor het analyseren van complete codebases of lange documenten.
## Impact op de industrie
Experts voorspellen dat GPT-5 een nieuwe golf van AI-adoptie zal stimuleren, vooral in sectoren zoals gezondheidszorg, onderwijs en software development.
"Dit is een gamechanger voor hoe we met AI interageren," aldus Sam Altman, CEO van OpenAI.`,source_url:"https://openai.com/blog/gpt-5",image_url:"https://images.unsplash.com/photo-1677442136019-21780ecad995?w=1200&auto=format&fit=crop"},{article_title:"Google presenteert Tensor G5: 3x sneller dan voorganger",article_content:`Google heeft de Tensor G5 AI-chip aangekondigd, die een revolutie belooft in edge computing met ongekende prestaties en energie-efficiëntie.
## Technische specificaties
De nieuwe chip beschikt over:
- 3x snellere AI-inferentie dan de G4
- 40% lager energieverbruik
- Ondersteuning voor on-device training
- Geavanceerde privacy features
## Praktische toepassingen
Met de Tensor G5 kunnen smartphones en andere apparaten:
- Realtime vertaling zonder internetverbinding
- Geavanceerde foto/video bewerking on-device
- Persoonlijke AI-assistenten die volledig lokaal draaien
Dit betekent snellere responstijden én betere privacy voor eindgebruikers.`,source_url:"https://blog.google/technology/ai/tensor-g5/",image_url:"https://images.unsplash.com/photo-1550751827-4bd374c3f58b?w=1200&auto=format&fit=crop"},{article_title:"EU kondigt strengere AI-regelgeving aan",article_content:`De Europese Unie heeft nieuwe maatregelen aangekondigd om de AI-sector strenger te reguleren, met focus op transparantie en veiligheid.
## Nieuwe vereisten
Bedrijven die AI-systemen ontwikkelen of gebruiken moeten vanaf nu:
- Risico-assessments uitvoeren voor hoog-risico AI
- Transparant zijn over het gebruik van AI
- Zorgen voor menselijk toezicht bij kritieke beslissingen
- Voldoen aan strenge data protection eisen
## Impact op bedrijven
Nederlandse bedrijven krijgen 12 maanden de tijd om te voldoen aan de nieuwe regelgeving. Niet-naleving kan leiden tot boetes tot €10 miljoen of 2% van de jaaromzet.`,source_url:"https://ec.europa.eu/ai-act",image_url:"https://images.unsplash.com/photo-1519389950473-47ba0277781c?w=1200&auto=format&fit=crop"}]}];function cte(){const[t,n]=D.useState(!1),[r,i]=D.useState(!1),a=new URLSearchParams(window.location.search).get("id"),o=lte.find(m=>m.id===a);if(!o)return e.jsx("div",{className:"pt-20 min-h-screen bg-white flex items-center justify-center",children:e.jsxs("div",{className:"text-center",children:[e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Nieuwsitem niet gevonden"}),e.jsx(de,{to:se("Nieuws"),className:"text-blue-600 hover:underline",children:"Terug naar nieuws"})]})});const c=window.location.href,d=o.title,h=o.short_description,f=m=>{const p=encodeURIComponent(c),g=encodeURIComponent(d),y={linkedin:`https://www.linkedin.com/sharing/share-offsite/?url=${p}`,x:`https://twitter.com/intent/tweet?url=${p}&text=${g}`,facebook:`https://www.facebook.com/sharer/sharer.php?u=${p}`};m==="copy"?(navigator.clipboard.writeText(c),i(!0),setTimeout(()=>i(!1),2e3)):y[m]?window.open(y[m],"_blank","width=600,height=400"):navigator.share&&navigator.share({title:d,text:h,url:c}),n(!1)};return e.jsxs("div",{className:"pt-20 min-h-screen bg-white",children:[e.jsx("div",{className:"bg-[#F4F4F4] py-4",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs(de,{to:se("Nieuws"),className:"inline-flex items-center gap-2 text-[#0D0D0F] hover:text-[#FAB868] transition-colors",children:[e.jsx(ht,{className:"w-5 h-5"}),"Terug naar nieuwsoverzicht"]})})}),e.jsx("section",{className:"py-12 bg-white",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},children:[e.jsxs("div",{className:"flex items-center justify-between mb-6",children:[e.jsxs("div",{className:"flex items-center gap-2 text-[#9CA3AF]",children:[e.jsx(Or,{className:"w-5 h-5"}),e.jsx("span",{children:new Date(o.publication_date).toLocaleDateString("nl-NL",{weekday:"long",year:"numeric",month:"long",day:"numeric"})})]}),e.jsxs("div",{className:"relative",children:[e.jsxs("button",{onClick:()=>n(!t),className:"flex items-center gap-2 px-4 py-2 bg-[#F4F4F4] text-[#0D0D0F] rounded-xl hover:bg-[#FAB868] transition-colors",children:[e.jsx(iy,{className:"w-5 h-5"}),"Delen"]}),e.jsx(Cr,{children:t&&e.jsxs(Z.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:10},className:"absolute right-0 mt-2 bg-white rounded-2xl shadow-xl border border-gray-100 p-3 w-48 z-50",children:[e.jsxs("button",{onClick:()=>f("linkedin"),className:"flex items-center gap-3 w-full px-4 py-3 text-left hover:bg-[#F4F4F4] rounded-xl transition-colors",children:[e.jsx(Ws,{className:"w-5 h-5 text-[#0077B5]"}),e.jsx("span",{className:"text-sm font-medium",children:"LinkedIn"})]}),e.jsxs("button",{onClick:()=>f("x"),className:"flex items-center gap-3 w-full px-4 py-3 text-left hover:bg-[#F4F4F4] rounded-xl transition-colors",children:[e.jsx(Ht,{className:"w-5 h-5"}),e.jsx("span",{className:"text-sm font-medium",children:"X (Twitter)"})]}),e.jsxs("button",{onClick:()=>f("facebook"),className:"flex items-center gap-3 w-full px-4 py-3 text-left hover:bg-[#F4F4F4] rounded-xl transition-colors",children:[e.jsx(D4,{className:"w-5 h-5 text-[#1877F2]"}),e.jsx("span",{className:"text-sm font-medium",children:"Facebook"})]}),e.jsx("button",{onClick:()=>f("copy"),className:"flex items-center gap-3 w-full px-4 py-3 text-left hover:bg-[#F4F4F4] rounded-xl transition-colors",children:r?e.jsxs(e.Fragment,{children:[e.jsx(Ft,{className:"w-5 h-5 text-green-600"}),e.jsx("span",{className:"text-sm font-medium text-green-600",children:"Gekopieerd!"})]}):e.jsxs(e.Fragment,{children:[e.jsx(I4,{className:"w-5 h-5"}),e.jsx("span",{className:"text-sm font-medium",children:"Kopieer link"})]})})]})})]})]}),e.jsx("h1",{className:"text-5xl font-bold text-[#0D0D0F] mb-6",children:o.title}),e.jsx("p",{className:"text-2xl text-[#9CA3AF] mb-8",children:o.short_description})]})})}),e.jsx("section",{className:"py-8 bg-[#F4F4F4]",children:e.jsx("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:e.jsx("div",{className:"aspect-video rounded-3xl overflow-hidden bg-gray-900 shadow-xl",children:e.jsx("iframe",{src:o.video_url,title:o.title,className:"w-full h-full",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})})})})}),e.jsx("section",{className:"py-16 bg-white",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsx("div",{className:"space-y-16",children:o.articles.map((m,p)=>e.jsxs(Z.article,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:p*.1},className:"border-b border-gray-200 pb-16 last:border-0",children:[m.image_url&&e.jsx("div",{className:"rounded-3xl overflow-hidden mb-8",children:e.jsx("img",{src:m.image_url,alt:m.article_title,className:"w-full h-auto"})}),e.jsx("h2",{className:"text-4xl font-bold text-[#0D0D0F] mb-6",children:m.article_title}),e.jsx("div",{className:"prose prose-lg max-w-none mb-6",children:e.jsx(Uu,{children:m.article_content})}),m.source_url&&e.jsxs("a",{href:m.source_url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-[#FAB868] hover:text-[#E5A04D] font-semibold transition-colors",children:["Lees originele bron",e.jsx(zs,{className:"w-5 h-5"})]})]},p))})})}),e.jsx("section",{className:"py-16 bg-[#F4F4F4]",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[e.jsx("h2",{className:"text-3xl font-bold text-[#0D0D0F] mb-4",children:"Mis geen enkele aflevering"}),e.jsx("p",{className:"text-xl text-[#9CA3AF] mb-8",children:"Volg ons op social media of ontvang dagelijks de video via WhatsApp"}),e.jsx(de,{to:se("Nieuws"),className:"inline-flex items-center gap-2 px-8 py-4 bg-[#FAB868] text-[#0D0D0F] font-semibold rounded-full hover:bg-[#E5A04D] transition-all text-lg",children:"Bekijk alle afleveringen"})]})})})]})}const s4=[{id:"1",title:"AI in 48 seconden - 6 januari 2026",video_url:"https://www.youtube.com/embed/dQw4w9WgXcQ",publication_date:"2026-01-06",short_description:"OpenAI lanceert GPT-5, Google's nieuwe AI chip breekt records, en EU stelt strengere AI regelgeving vast.",articles:[{article_title:"OpenAI onthult GPT-5: De volgende generatie AI",article_content:"OpenAI heeft vandaag GPT-5 aangekondigd, met verbeterde reasoning capabilities...",image_url:"https://images.unsplash.com/photo-1677442136019-21780ecad995?w=800&auto=format&fit=crop"},{article_title:"Google presenteert Tensor G5: 3x sneller dan voorganger",article_content:"Google's nieuwe AI chip belooft een revolutie in edge computing...",image_url:"https://images.unsplash.com/photo-1550751827-4bd374c3f58b?w=800&auto=format&fit=crop"}]},{id:"2",title:"AI in 48 seconden - 3 januari 2026",video_url:"https://www.youtube.com/embed/dQw4w9WgXcQ",publication_date:"2026-01-03",short_description:"Meta kondigt Llama 4 aan, Microsoft investeert $10 miljard in AI infrastructuur, en ChatGPT bereikt 200 miljoen gebruikers.",articles:[]},{id:"3",title:"AI in 48 seconden - 2 januari 2026",video_url:"https://www.youtube.com/embed/dQw4w9WgXcQ",publication_date:"2026-01-02",short_description:"Apple lanceert Siri 2.0 met on-device AI, DeepMind lost wiskundeprobleem op, en AI detecteert kanker met 99% nauwkeurigheid.",articles:[]}];function ute(){const[t,n]=D.useState(""),[r,i]=D.useState(!1),[s,a]=D.useState(!1),[o,c]=D.useState(!1),d=s4[0],h=s4.slice(1),f=y=>{y.preventDefault(),console.log("WhatsApp subscription:",t),i(!0),setTimeout(()=>{i(!1),n("")},3e3)},m=window.location.origin+se("Nieuws"),p=d.title;d.short_description;const g=y=>{const j=encodeURIComponent(m),v=encodeURIComponent(p),x={linkedin:`https://www.linkedin.com/sharing/share-offsite/?url=${j}`,x:`https://twitter.com/intent/tweet?url=${j}&text=${v}`,facebook:`https://www.facebook.com/sharer/sharer.php?u=${j}`};y==="copy"?(navigator.clipboard.writeText(m),c(!0),setTimeout(()=>c(!1),2e3)):x[y]&&window.open(x[y],"_blank","width=600,height=400"),a(!1)};return e.jsxs("div",{className:"pt-20 min-h-screen bg-white",children:[e.jsx("section",{className:"py-16 bg-[#0D0D0F]",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center",children:[e.jsx("h1",{className:"text-5xl sm:text-6xl font-bold text-white mb-6",children:"Daily AI in 48 seconden"}),e.jsx("p",{className:"text-2xl text-gray-400 max-w-3xl mx-auto",children:"Elke werkdag het laatste AI-nieuws, samengevat in 48 seconden"})]})})}),e.jsx("section",{className:"py-16 bg-white",children:e.jsx("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[e.jsxs("div",{className:"mb-6",children:[e.jsx("p",{className:"text-sm text-[#9CA3AF] mb-2",children:new Date(d.publication_date).toLocaleDateString("nl-NL",{weekday:"long",year:"numeric",month:"long",day:"numeric"})}),e.jsx("h2",{className:"text-3xl font-bold text-[#0D0D0F]",children:"AI nieuws van vandaag in 48 seconden"})]}),e.jsx("div",{className:"aspect-video rounded-3xl overflow-hidden bg-gray-900 shadow-xl mb-8",children:e.jsx("iframe",{src:d.video_url,title:d.title,className:"w-full h-full",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}),e.jsxs("div",{className:"flex items-start justify-between gap-4 mb-6",children:[e.jsx("p",{className:"text-xl text-[#9CA3AF] leading-relaxed flex-1",children:d.short_description}),e.jsxs("div",{className:"relative",children:[e.jsxs("button",{onClick:()=>a(!s),className:"flex items-center gap-2 px-4 py-2 bg-[#F4F4F4] text-[#0D0D0F] rounded-xl hover:bg-[#FAB868] transition-colors whitespace-nowrap",children:[e.jsx(iy,{className:"w-5 h-5"}),e.jsx("span",{className:"hidden sm:inline",children:"Delen"})]}),e.jsx(Cr,{children:s&&e.jsxs(Z.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:10},className:"absolute right-0 mt-2 bg-white rounded-2xl shadow-xl border border-gray-100 p-3 w-48 z-50",children:[e.jsxs("button",{onClick:()=>g("linkedin"),className:"flex items-center gap-3 w-full px-4 py-3 text-left hover:bg-[#F4F4F4] rounded-xl transition-colors",children:[e.jsx(Ws,{className:"w-5 h-5 text-[#0077B5]"}),e.jsx("span",{className:"text-sm font-medium",children:"LinkedIn"})]}),e.jsxs("button",{onClick:()=>g("x"),className:"flex items-center gap-3 w-full px-4 py-3 text-left hover:bg-[#F4F4F4] rounded-xl transition-colors",children:[e.jsx(Ht,{className:"w-5 h-5"}),e.jsx("span",{className:"text-sm font-medium",children:"X (Twitter)"})]}),e.jsxs("button",{onClick:()=>g("facebook"),className:"flex items-center gap-3 w-full px-4 py-3 text-left hover:bg-[#F4F4F4] rounded-xl transition-colors",children:[e.jsx(D4,{className:"w-5 h-5 text-[#1877F2]"}),e.jsx("span",{className:"text-sm font-medium",children:"Facebook"})]}),e.jsx("button",{onClick:()=>g("copy"),className:"flex items-center gap-3 w-full px-4 py-3 text-left hover:bg-[#F4F4F4] rounded-xl transition-colors",children:o?e.jsxs(e.Fragment,{children:[e.jsx(Ft,{className:"w-5 h-5 text-green-600"}),e.jsx("span",{className:"text-sm font-medium text-green-600",children:"Gekopieerd!"})]}):e.jsxs(e.Fragment,{children:[e.jsx(I4,{className:"w-5 h-5"}),e.jsx("span",{className:"text-sm font-medium",children:"Kopieer link"})]})})]})})]})]})]})})}),e.jsx("section",{className:"py-12 bg-gradient-to-r from-[#25D366] to-[#20BA5A]",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:r?e.jsxs("div",{className:"text-center py-8",children:[e.jsx("div",{className:"w-16 h-16 bg-white/20 rounded-full flex items-center justify-center mx-auto mb-4",children:e.jsx(gt,{className:"w-8 h-8 text-white"})}),e.jsx("h3",{className:"text-3xl font-bold text-white mb-2",children:"Succesvol ingeschreven!"}),e.jsx("p",{className:"text-xl text-white/90",children:"Je ontvangt vanaf morgen dagelijks het AI-nieuws via WhatsApp."})]}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"text-center mb-8",children:[e.jsx("h2",{className:"text-4xl font-bold text-white mb-4",children:"Blijf niet achter, mis geen AI nieuws!"}),e.jsx("p",{className:"text-xl text-white/90",children:"Wij sturen je elke werkdag het belangrijkste AI nieuws in 48 seconden via WhatsApp."})]}),e.jsxs("form",{onSubmit:f,className:"flex flex-col sm:flex-row gap-4 max-w-2xl mx-auto",children:[e.jsx(me,{type:"tel",placeholder:"+31 6 12345678",value:t,onChange:y=>n(y.target.value),required:!0,className:"flex-1 px-6 py-6 text-lg bg-white rounded-xl h-14"}),e.jsxs(ae,{type:"submit",className:"px-8 py-6 bg-[#0D0D0F] text-white hover:bg-[#1a1a1c] font-bold text-lg rounded-xl h-14",children:[e.jsx(Ho,{className:"w-5 h-5 mr-2"}),"Inschrijven"]})]}),e.jsx("p",{className:"text-sm text-white/80 text-center mt-4",children:"✓ Elke werkdag • ✓ Geen spam • ✓ Afmelden wanneer je wilt"})]})})})}),d.articles.length>0&&e.jsx("section",{className:"py-16 bg-[#F4F4F4]",children:e.jsxs("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"mb-12",children:[e.jsx("h2",{className:"text-4xl font-bold text-[#0D0D0F] mb-4",children:"Verdieping van vandaag"}),e.jsx("p",{className:"text-xl text-[#9CA3AF]",children:"Lees meer over de belangrijkste ontwikkelingen"})]}),e.jsx("div",{className:"grid md:grid-cols-2 gap-8",children:d.articles.map((y,j)=>e.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:j*.1},children:e.jsxs(de,{to:se("NewsDetail")+`?id=${d.id}`,className:"block bg-white rounded-3xl overflow-hidden hover:shadow-xl transition-all group",children:[y.image_url&&e.jsx("div",{className:"aspect-video overflow-hidden",children:e.jsx("img",{src:y.image_url,alt:y.article_title,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-300"})}),e.jsxs("div",{className:"p-6",children:[e.jsx("h3",{className:"text-2xl font-bold text-[#0D0D0F] mb-3 group-hover:text-[#FAB868] transition-colors",children:y.article_title}),e.jsx("p",{className:"text-[#9CA3AF] line-clamp-3 mb-4",children:y.article_content}),e.jsxs("span",{className:"inline-flex items-center gap-2 text-[#FAB868] font-semibold",children:["Lees meer",e.jsx($e,{className:"w-5 h-5"})]})]})]})},j))})]})}),e.jsx("section",{className:"py-16 bg-white",children:e.jsxs("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"mb-12",children:[e.jsx("h2",{className:"text-4xl font-bold text-[#0D0D0F] mb-4",children:"Archief"}),e.jsx("p",{className:"text-xl text-[#9CA3AF]",children:"Bekijk eerdere afleveringen"})]}),e.jsx("div",{className:"space-y-6",children:h.map((y,j)=>e.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:j*.1},children:e.jsx(de,{to:se("NewsDetail")+`?id=${y.id}`,className:"block bg-[#F4F4F4] rounded-3xl p-6 hover:bg-white hover:shadow-lg transition-all group",children:e.jsxs("div",{className:"flex flex-col md:flex-row gap-6",children:[e.jsx("div",{className:"md:w-64 flex-shrink-0",children:e.jsx("div",{className:"aspect-video rounded-2xl overflow-hidden bg-gray-900",children:e.jsx("img",{src:"https://img.youtube.com/vi/dQw4w9WgXcQ/maxresdefault.jpg",alt:y.title,className:"w-full h-full object-cover"})})}),e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[e.jsx(Or,{className:"w-5 h-5 text-[#FAB868]"}),e.jsx("span",{className:"text-sm text-[#9CA3AF]",children:new Date(y.publication_date).toLocaleDateString("nl-NL",{weekday:"long",year:"numeric",month:"long",day:"numeric"})})]}),e.jsx("h3",{className:"text-2xl font-bold text-[#0D0D0F] mb-3 group-hover:text-[#FAB868] transition-colors",children:y.title}),e.jsx("p",{className:"text-lg text-[#9CA3AF] mb-4",children:y.short_description}),e.jsxs("span",{className:"inline-flex items-center gap-2 text-[#FAB868] font-semibold",children:["Bekijk afleverig",e.jsx($e,{className:"w-5 h-5"})]})]})]})})},y.id))})]})})]})}function dte(){const n=new URLSearchParams(window.location.search).get("slug"),{data:r=[],isLoading:i}=Fe({queryKey:["solutions",n],queryFn:()=>ce.entities.Solution.filter({slug:n,published:!0}),enabled:!!n,initialData:[]}),s=r[0];return i?e.jsx("div",{className:"pt-20 min-h-screen flex items-center justify-center",children:e.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):s?e.jsxs("div",{className:"pt-20",children:[e.jsxs("section",{className:"relative bg-gradient-to-br from-blue-600 via-indigo-600 to-purple-700 text-white pt-32 pb-20",children:[e.jsxs("div",{className:"absolute inset-0 overflow-hidden",children:[e.jsx("div",{className:"absolute top-0 right-0 w-[600px] h-[600px] bg-white/10 rounded-full blur-3xl"}),e.jsx("div",{className:"absolute bottom-0 left-0 w-[400px] h-[400px] bg-white/10 rounded-full blur-3xl"})]}),e.jsx("div",{className:"relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[e.jsxs(Z.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},children:[s.subtitle&&e.jsx("p",{className:"text-blue-100 font-semibold mb-4",children:s.subtitle}),e.jsx("h1",{className:"text-5xl sm:text-6xl font-bold mb-6 leading-tight",children:s.hero_title||s.title}),e.jsx("p",{className:"text-xl text-blue-100 mb-8 leading-relaxed",children:s.hero_description||s.short_description}),s.statistics&&s.statistics.length>0&&e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-6 mb-8",children:s.statistics.map((a,o)=>e.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-xl p-4",children:[e.jsx("p",{className:"text-3xl font-bold mb-1",children:a.value}),e.jsx("p",{className:"text-sm text-blue-100",children:a.label})]},o))}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[s.cta_button_link&&e.jsxs(de,{to:s.cta_button_link,className:"inline-flex items-center justify-center gap-2 px-8 py-4 bg-white text-blue-600 font-semibold rounded-xl hover:bg-blue-50 transition-all",children:[s.cta_button_text||"Meer informatie",e.jsx($e,{className:"w-5 h-5"})]}),e.jsx(de,{to:se("Contact"),className:"inline-flex items-center justify-center gap-2 px-8 py-4 border-2 border-white text-white font-semibold rounded-xl hover:bg-white/10 transition-all",children:"Contact opnemen"})]})]}),s.hero_image&&e.jsx(Z.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{delay:.2},className:"hidden lg:block",children:e.jsx("img",{src:s.hero_image,alt:s.title,className:"w-full rounded-3xl shadow-2xl"})})]})})]}),s.features&&s.features.length>0&&e.jsx("section",{className:"py-20 bg-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:e.jsx("h2",{className:"text-4xl font-bold text-gray-900 mb-4",children:"Belangrijkste Features"})}),e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:s.features.map((a,o)=>e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:o*.1},className:"bg-gray-50 rounded-2xl p-6",children:[e.jsx("div",{className:"w-12 h-12 bg-blue-100 rounded-xl flex items-center justify-center mb-4",children:e.jsx(Ft,{className:"w-6 h-6 text-blue-600"})}),e.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-2",children:a.title}),e.jsx("p",{className:"text-gray-600",children:a.description})]},o))})]})}),s.how_it_works&&s.how_it_works.length>0&&e.jsx("section",{className:"py-20 bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:e.jsx("h2",{className:"text-4xl font-bold text-gray-900 mb-4",children:"Hoe het werkt"})}),e.jsx("div",{className:"max-w-4xl mx-auto",children:s.how_it_works.sort((a,o)=>a.step_number-o.step_number).map((a,o)=>e.jsxs(Z.div,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{delay:o*.1},className:"flex gap-6 mb-8 last:mb-0",children:[e.jsx("div",{className:"flex-shrink-0 w-12 h-12 bg-blue-600 text-white rounded-xl flex items-center justify-center font-bold text-xl",children:a.step_number}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-2",children:a.title}),e.jsx("p",{className:"text-gray-600 text-lg",children:a.description})]})]},o))})]})}),s.use_cases&&s.use_cases.length>0&&e.jsx("section",{className:"py-20 bg-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:e.jsx("h2",{className:"text-4xl font-bold text-gray-900 mb-4",children:"Praktijkvoorbeelden"})}),e.jsx("div",{className:"grid md:grid-cols-2 gap-8",children:s.use_cases.map((a,o)=>e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:o*.1},className:"bg-gradient-to-br from-blue-50 to-indigo-50 rounded-2xl p-8 border border-blue-100",children:[a.image&&e.jsx("img",{src:a.image,alt:a.title,className:"w-full h-48 object-cover rounded-xl mb-6"}),e.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-3",children:a.title}),e.jsx("p",{className:"text-gray-700 text-lg",children:a.description})]},o))})]})}),s.benefits&&s.benefits.length>0&&e.jsx("section",{className:"py-20 bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:e.jsx("h2",{className:"text-4xl font-bold text-gray-900 mb-4",children:"Voordelen"})}),e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:s.benefits.map((a,o)=>e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:o*.1},className:"flex items-start gap-4 bg-white rounded-xl p-6",children:[e.jsx("div",{className:"w-10 h-10 bg-green-100 rounded-lg flex items-center justify-center flex-shrink-0",children:e.jsx(Ft,{className:"w-5 h-5 text-green-600"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-1",children:a.title}),e.jsx("p",{className:"text-gray-600 text-sm",children:a.description})]})]},o))})]})}),s.testimonial&&s.testimonial.quote&&e.jsx("section",{className:"py-20 bg-gradient-to-br from-blue-600 to-indigo-700 text-white",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center",children:[e.jsx(F4,{className:"w-16 h-16 mx-auto mb-6 text-blue-200"}),e.jsxs("p",{className:"text-2xl md:text-3xl font-medium mb-8 leading-relaxed",children:['"',s.testimonial.quote,'"']}),e.jsxs("div",{className:"flex items-center justify-center gap-4",children:[s.testimonial.image&&e.jsx("img",{src:s.testimonial.image,alt:s.testimonial.author,className:"w-16 h-16 rounded-full"}),e.jsxs("div",{className:"text-left",children:[e.jsx("p",{className:"font-bold",children:s.testimonial.author}),e.jsx("p",{className:"text-blue-200",children:s.testimonial.role}),s.testimonial.company&&e.jsx("p",{className:"text-blue-200",children:s.testimonial.company})]})]})]})})}),e.jsx("section",{className:"py-20 bg-gray-900",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[e.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-white mb-6",children:s.cta_title||"Klaar om te beginnen?"}),e.jsx("p",{className:"text-xl text-gray-400 mb-8",children:s.cta_description||"Neem contact met ons op voor meer informatie of een demo."}),e.jsxs(de,{to:s.cta_button_link||se("Contact"),className:"inline-flex items-center gap-2 px-8 py-4 bg-blue-600 text-white font-semibold rounded-2xl hover:bg-blue-700 transition-all",children:[e.jsx(di,{className:"w-5 h-5"}),s.cta_button_text||"Contact opnemen",e.jsx($e,{className:"w-5 h-5"})]})]})})})]}):e.jsx("div",{className:"pt-20 min-h-screen flex items-center justify-center",children:e.jsxs("div",{className:"text-center",children:[e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Oplossing niet gevonden"}),e.jsx(de,{to:se("Oplossingen"),className:"text-blue-600 hover:underline",children:"Bekijk alle oplossingen"})]})})}function hte(){const{data:t=[],isLoading:n}=Fe({queryKey:["solutions"],queryFn:()=>ce.entities.Solution.filter({published:!0},"sort_order",50),initialData:[]});return e.jsxs("div",{className:"pt-20",children:[e.jsx("section",{className:"relative bg-gradient-to-b from-blue-50 to-white pt-32 pb-20",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center max-w-3xl mx-auto",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-blue-100 rounded-full text-blue-700 text-sm font-medium mb-6",children:[e.jsx(At,{className:"w-4 h-4"}),"AI Oplossingen"]}),e.jsx("h1",{className:"text-5xl sm:text-6xl font-bold text-gray-900 mb-6",children:"Onze AI Oplossingen"}),e.jsx("p",{className:"text-xl text-gray-600",children:"Producten en platforms die we hebben ontwikkeld om AI toegankelijk en bruikbaar te maken voor bedrijven."})]})})}),e.jsx("section",{className:"py-20 bg-white",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:n?e.jsx("div",{className:"text-center py-12",children:e.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):t.length===0?e.jsx("div",{className:"text-center py-12",children:e.jsx("p",{className:"text-gray-600",children:"Geen oplossingen gevonden. Kom later terug!"})}):e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:t.map((r,i)=>e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:i*.1},className:"bg-white rounded-3xl border-2 border-gray-100 hover:border-blue-200 hover:shadow-xl transition-all overflow-hidden group",children:[r.hero_image&&e.jsxs("div",{className:"relative h-48 overflow-hidden",children:[e.jsx("img",{src:r.hero_image,alt:r.title,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-300"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/50 to-transparent"})]}),e.jsxs("div",{className:"p-8",children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-2",children:r.title}),r.subtitle&&e.jsx("p",{className:"text-sm text-blue-600 font-medium mb-4",children:r.subtitle}),e.jsx("p",{className:"text-gray-600 mb-6 line-clamp-3",children:r.short_description}),r.statistics&&r.statistics.length>0&&e.jsx("div",{className:"flex gap-4 mb-6 pb-6 border-b border-gray-100",children:r.statistics.slice(0,2).map((s,a)=>e.jsxs("div",{children:[e.jsx("p",{className:"text-2xl font-bold text-blue-600",children:s.value}),e.jsx("p",{className:"text-sm text-gray-600",children:s.label})]},a))}),e.jsxs(de,{to:se(`OplossingDetail?slug=${r.slug}`),className:"inline-flex items-center gap-2 text-blue-600 font-semibold hover:gap-3 transition-all",children:["Meer informatie",e.jsx($e,{className:"w-5 h-5"})]})]})]},r.id))})})}),e.jsx("section",{className:"py-20 bg-gray-900",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[e.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-white mb-6",children:"Op zoek naar een custom oplossing?"}),e.jsx("p",{className:"text-xl text-gray-400 mb-8",children:"We bouwen ook maatwerk AI-oplossingen specifiek voor jouw bedrijf."}),e.jsxs(de,{to:se("Contact"),className:"inline-flex items-center gap-2 px-8 py-4 bg-blue-600 text-white font-semibold rounded-2xl hover:bg-blue-700 transition-all",children:[e.jsx(Ki,{className:"w-5 h-5"}),"Bespreek je project",e.jsx($e,{className:"w-5 h-5"})]})]})})})]})}function fte(){const{data:t=[]}=Fe({queryKey:["teamMembers"],queryFn:()=>ce.entities.TeamMember.filter({active:!0,show_on_about_page:!0},"sort_order"),initialData:[]}),n=[{icon:Js,title:"Praktijkervaring",description:"Ons team komt uit het bedrijfsleven. Wij begrijpen de dagelijkse uitdagingen van MKB en vertalen AI mogelijkheden naar praktische oplossingen."},{icon:Su,title:"Full-service",description:"Wij stoppen niet bij advies. Van strategie tot implementatie, van training tot support — wij begeleiden het complete traject."},{icon:Xa,title:"MKB Focus",description:"Wij richten ons specifiek op MKB bedrijven met €5-20M omzet. Groot genoeg voor impact, wendbaar genoeg om snel te schakelen."},{icon:Cv,title:"Kwaliteit",description:"Wij positioneren ons in het midden tot hoog segment. Geen quick fixes, maar duurzame oplossingen die je bedrijf vooruit helpen."}];return e.jsxs("div",{className:"pt-20",children:[e.jsx("section",{className:"py-20 bg-gradient-to-b from-gray-50 to-white",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[e.jsxs(Z.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},children:[e.jsx("h1",{className:"text-4xl sm:text-5xl font-bold text-gray-900 mb-6",children:"The AI Professionals"}),e.jsx("p",{className:"text-xl text-gray-600 mb-8",children:"Wij zijn 48-7 — een full-service AI agency die MKB bedrijven helpt hun productiviteit te verdubbelen. Van strategie tot software, van training tot doorontwikkeling."}),e.jsx("div",{className:"flex flex-wrap gap-4",children:e.jsxs(de,{to:se("Contact"),className:"inline-flex items-center gap-2 px-6 py-3 bg-gray-900 text-white font-semibold rounded-xl hover:bg-gray-800 transition-colors",children:["Neem contact op",e.jsx($e,{className:"w-5 h-5"})]})})]}),e.jsx(Z.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},className:"relative",children:e.jsx("img",{src:"https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=800&auto=format&fit=crop",alt:"Team 48-7",className:"rounded-3xl shadow-2xl"})})]})})}),e.jsx("section",{className:"py-20",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"grid md:grid-cols-2 gap-12",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"bg-blue-50 rounded-2xl p-8",children:[e.jsx("div",{className:"w-14 h-14 bg-blue-100 rounded-2xl flex items-center justify-center mb-6",children:e.jsx($a,{className:"w-7 h-7 text-blue-600"})}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"Onze Missie"}),e.jsx("p",{className:"text-gray-700 text-lg",children:"MKB bedrijven helpen hun productiviteit te verdubbelen door AI toegankelijk en praktisch toepasbaar te maken. Van 24-7 naar 48-7."})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.1},className:"bg-purple-50 rounded-2xl p-8",children:[e.jsx("div",{className:"w-14 h-14 bg-purple-100 rounded-2xl flex items-center justify-center mb-6",children:e.jsx(qs,{className:"w-7 h-7 text-purple-600"})}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"Onze Visie"}),e.jsx("p",{className:"text-gray-700 text-lg",children:"Een wereld waarin elk bedrijf profiteert van AI. Niet door vervanging van mensen, maar door versterking van hun capaciteiten."})]})]})})}),e.jsx("section",{className:"py-20 bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Wat maakt ons anders"}),e.jsx("p",{className:"text-xl text-gray-600",children:"De pijlers onder onze aanpak"})]}),e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-8",children:n.map((r,i)=>e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:i*.1},className:"bg-white rounded-2xl p-6 border border-gray-100",children:[e.jsx("div",{className:"w-12 h-12 bg-blue-100 rounded-xl flex items-center justify-center mb-4",children:e.jsx(r.icon,{className:"w-6 h-6 text-blue-600"})}),e.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-2",children:r.title}),e.jsx("p",{className:"text-gray-600",children:r.description})]},i))})]})}),e.jsx("section",{className:"py-20",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-blue-100 rounded-full text-blue-700 text-sm font-medium mb-6",children:[e.jsx(pn,{className:"w-4 h-4"}),"Ons Team"]}),e.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Ontmoet de professionals"}),e.jsx("p",{className:"text-xl text-gray-600",children:"Experts met een passie voor AI en MKB"})]}),e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:t.map((r,i)=>e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:i*.1},className:"bg-white rounded-2xl overflow-hidden border border-gray-100 hover:shadow-xl transition-all group",children:[r.image_url&&e.jsx("div",{className:"aspect-square overflow-hidden",children:e.jsx("img",{src:r.image_url,alt:r.name,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"})}),e.jsxs("div",{className:"p-6",children:[e.jsxs("div",{className:"flex items-start justify-between mb-2",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-bold text-gray-900",children:r.name}),e.jsx("p",{className:"text-blue-600 font-medium",children:r.role})]}),r.linkedin_url&&e.jsx("a",{href:r.linkedin_url,target:"_blank",rel:"noopener noreferrer",className:"w-10 h-10 bg-gray-100 rounded-full flex items-center justify-center hover:bg-blue-100 hover:text-blue-600 transition-colors",children:e.jsx(Ws,{className:"w-5 h-5"})})]}),r.bio&&e.jsx("p",{className:"text-gray-600",children:r.bio})]})]},r.id))})]})}),e.jsx(H6,{}),e.jsx("section",{className:"py-20 bg-gray-900",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[e.jsx("h2",{className:"text-3xl font-bold text-white mb-6",children:"Word onderdeel van 48-7"}),e.jsx("p",{className:"text-xl text-gray-400 mb-8",children:"Wij zijn altijd op zoek naar getalenteerde professionals die onze missie delen."}),e.jsxs(de,{to:se("Vacatures"),className:"inline-flex items-center gap-2 px-8 py-4 bg-white text-gray-900 font-semibold rounded-2xl hover:shadow-xl transition-all",children:["Bekijk vacatures",e.jsx($e,{className:"w-5 h-5"})]})]})})]})}function ts(t){return Array.isArray?Array.isArray(t):G6(t)==="[object Array]"}function mte(t){if(typeof t=="string")return t;let n=t+"";return n=="0"&&1/t==-1/0?"-0":n}function pte(t){return t==null?"":mte(t)}function fi(t){return typeof t=="string"}function W6(t){return typeof t=="number"}function gte(t){return t===!0||t===!1||xte(t)&&G6(t)=="[object Boolean]"}function K6(t){return typeof t=="object"}function xte(t){return K6(t)&&t!==null}function dr(t){return t!=null}function _v(t){return!t.trim().length}function G6(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const vte="Incorrect 'index' type",yte=t=>`Invalid value for key ${t}`,bte=t=>`Pattern length exceeds max of ${t}.`,jte=t=>`Missing ${t} property in key`,wte=t=>`Property 'weight' in key '${t}' must be a positive integer`,a4=Object.prototype.hasOwnProperty;class Nte{constructor(n){this._keys=[],this._keyMap={};let r=0;n.forEach(i=>{let s=Q6(i);this._keys.push(s),this._keyMap[s.id]=s,r+=s.weight}),this._keys.forEach(i=>{i.weight/=r})}get(n){return this._keyMap[n]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function Q6(t){let n=null,r=null,i=null,s=1,a=null;if(fi(t)||ts(t))i=t,n=o4(t),r=G0(t);else{if(!a4.call(t,"name"))throw new Error(jte("name"));const o=t.name;if(i=o,a4.call(t,"weight")&&(s=t.weight,s<=0))throw new Error(wte(o));n=o4(o),r=G0(o),a=t.getFn}return{path:n,id:r,weight:s,src:i,getFn:a}}function o4(t){return ts(t)?t:t.split(".")}function G0(t){return ts(t)?t.join("."):t}function kte(t,n){let r=[],i=!1;const s=(a,o,c)=>{if(dr(a))if(!o[c])r.push(a);else{let d=o[c];const h=a[d];if(!dr(h))return;if(c===o.length-1&&(fi(h)||W6(h)||gte(h)))r.push(pte(h));else if(ts(h)){i=!0;for(let f=0,m=h.length;f<m;f+=1)s(h[f],o,c+1)}else o.length&&s(h,o,c+1)}};return s(t,fi(n)?n.split("."):n,0),i?r:r[0]}const _te={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},Ste={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,n)=>t.score===n.score?t.idx<n.idx?-1:1:t.score<n.score?-1:1},Ate={location:0,threshold:.6,distance:100},Cte={useExtendedSearch:!1,getFn:kte,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var Xe={...Ste,..._te,...Ate,...Cte};const Ete=/[^ ]+/g;function Tte(t=1,n=3){const r=new Map,i=Math.pow(10,n);return{get(s){const a=s.match(Ete).length;if(r.has(a))return r.get(a);const o=1/Math.pow(a,.5*t),c=parseFloat(Math.round(o*i)/i);return r.set(a,c),c},clear(){r.clear()}}}class Db{constructor({getFn:n=Xe.getFn,fieldNormWeight:r=Xe.fieldNormWeight}={}){this.norm=Tte(r,3),this.getFn=n,this.isCreated=!1,this.setIndexRecords()}setSources(n=[]){this.docs=n}setIndexRecords(n=[]){this.records=n}setKeys(n=[]){this.keys=n,this._keysMap={},n.forEach((r,i)=>{this._keysMap[r.id]=i})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,fi(this.docs[0])?this.docs.forEach((n,r)=>{this._addString(n,r)}):this.docs.forEach((n,r)=>{this._addObject(n,r)}),this.norm.clear())}add(n){const r=this.size();fi(n)?this._addString(n,r):this._addObject(n,r)}removeAt(n){this.records.splice(n,1);for(let r=n,i=this.size();r<i;r+=1)this.records[r].i-=1}getValueForItemAtKeyId(n,r){return n[this._keysMap[r]]}size(){return this.records.length}_addString(n,r){if(!dr(n)||_v(n))return;let i={v:n,i:r,n:this.norm.get(n)};this.records.push(i)}_addObject(n,r){let i={i:r,$:{}};this.keys.forEach((s,a)=>{let o=s.getFn?s.getFn(n):this.getFn(n,s.path);if(dr(o)){if(ts(o)){let c=[];const d=[{nestedArrIndex:-1,value:o}];for(;d.length;){const{nestedArrIndex:h,value:f}=d.pop();if(dr(f))if(fi(f)&&!_v(f)){let m={v:f,i:h,n:this.norm.get(f)};c.push(m)}else ts(f)&&f.forEach((m,p)=>{d.push({nestedArrIndex:p,value:m})})}i.$[a]=c}else if(fi(o)&&!_v(o)){let c={v:o,n:this.norm.get(o)};i.$[a]=c}}}),this.records.push(i)}toJSON(){return{keys:this.keys,records:this.records}}}function Y6(t,n,{getFn:r=Xe.getFn,fieldNormWeight:i=Xe.fieldNormWeight}={}){const s=new Db({getFn:r,fieldNormWeight:i});return s.setKeys(t.map(Q6)),s.setSources(n),s.create(),s}function Ote(t,{getFn:n=Xe.getFn,fieldNormWeight:r=Xe.fieldNormWeight}={}){const{keys:i,records:s}=t,a=new Db({getFn:n,fieldNormWeight:r});return a.setKeys(i),a.setIndexRecords(s),a}function bh(t,{errors:n=0,currentLocation:r=0,expectedLocation:i=0,distance:s=Xe.distance,ignoreLocation:a=Xe.ignoreLocation}={}){const o=n/t.length;if(a)return o;const c=Math.abs(i-r);return s?o+c/s:c?1:o}function Pte(t=[],n=Xe.minMatchCharLength){let r=[],i=-1,s=-1,a=0;for(let o=t.length;a<o;a+=1){let c=t[a];c&&i===-1?i=a:!c&&i!==-1&&(s=a-1,s-i+1>=n&&r.push([i,s]),i=-1)}return t[a-1]&&a-i>=n&&r.push([i,a-1]),r}const Sa=32;function Dte(t,n,r,{location:i=Xe.location,distance:s=Xe.distance,threshold:a=Xe.threshold,findAllMatches:o=Xe.findAllMatches,minMatchCharLength:c=Xe.minMatchCharLength,includeMatches:d=Xe.includeMatches,ignoreLocation:h=Xe.ignoreLocation}={}){if(n.length>Sa)throw new Error(bte(Sa));const f=n.length,m=t.length,p=Math.max(0,Math.min(i,m));let g=a,y=p;const j=c>1||d,v=j?Array(m):[];let x;for(;(x=t.indexOf(n,y))>-1;){let E=bh(n,{currentLocation:x,expectedLocation:p,distance:s,ignoreLocation:h});if(g=Math.min(E,g),y=x+f,j){let C=0;for(;C<f;)v[x+C]=1,C+=1}}y=-1;let N=[],w=1,k=f+m;const A=1<<f-1;for(let E=0;E<f;E+=1){let C=0,B=k;for(;C<B;)bh(n,{errors:E,currentLocation:p+B,expectedLocation:p,distance:s,ignoreLocation:h})<=g?C=B:k=B,B=Math.floor((k-C)/2+C);k=B;let F=Math.max(1,p-B+1),I=o?m:Math.min(p+B,m)+f,R=Array(I+2);R[I+1]=(1<<E)-1;for(let q=I;q>=F;q-=1){let U=q-1,Q=r[t.charAt(U)];if(j&&(v[U]=+!!Q),R[q]=(R[q+1]<<1|1)&Q,E&&(R[q]|=(N[q+1]|N[q])<<1|1|N[q+1]),R[q]&A&&(w=bh(n,{errors:E,currentLocation:U,expectedLocation:p,distance:s,ignoreLocation:h}),w<=g)){if(g=w,y=U,y<=p)break;F=Math.max(1,2*p-y)}}if(bh(n,{errors:E+1,currentLocation:p,expectedLocation:p,distance:s,ignoreLocation:h})>g)break;N=R}const S={isMatch:y>=0,score:Math.max(.001,w)};if(j){const E=Pte(v,c);E.length?d&&(S.indices=E):S.isMatch=!1}return S}function Ite(t){let n={};for(let r=0,i=t.length;r<i;r+=1){const s=t.charAt(r);n[s]=(n[s]||0)|1<<i-r-1}return n}const cf=String.prototype.normalize?(t=>t.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,"")):(t=>t);class X6{constructor(n,{location:r=Xe.location,threshold:i=Xe.threshold,distance:s=Xe.distance,includeMatches:a=Xe.includeMatches,findAllMatches:o=Xe.findAllMatches,minMatchCharLength:c=Xe.minMatchCharLength,isCaseSensitive:d=Xe.isCaseSensitive,ignoreDiacritics:h=Xe.ignoreDiacritics,ignoreLocation:f=Xe.ignoreLocation}={}){if(this.options={location:r,threshold:i,distance:s,includeMatches:a,findAllMatches:o,minMatchCharLength:c,isCaseSensitive:d,ignoreDiacritics:h,ignoreLocation:f},n=d?n:n.toLowerCase(),n=h?cf(n):n,this.pattern=n,this.chunks=[],!this.pattern.length)return;const m=(g,y)=>{this.chunks.push({pattern:g,alphabet:Ite(g),startIndex:y})},p=this.pattern.length;if(p>Sa){let g=0;const y=p%Sa,j=p-y;for(;g<j;)m(this.pattern.substr(g,Sa),g),g+=Sa;if(y){const v=p-Sa;m(this.pattern.substr(v),v)}}else m(this.pattern,0)}searchIn(n){const{isCaseSensitive:r,ignoreDiacritics:i,includeMatches:s}=this.options;if(n=r?n:n.toLowerCase(),n=i?cf(n):n,this.pattern===n){let j={isMatch:!0,score:0};return s&&(j.indices=[[0,n.length-1]]),j}const{location:a,distance:o,threshold:c,findAllMatches:d,minMatchCharLength:h,ignoreLocation:f}=this.options;let m=[],p=0,g=!1;this.chunks.forEach(({pattern:j,alphabet:v,startIndex:x})=>{const{isMatch:N,score:w,indices:k}=Dte(n,j,v,{location:a+x,distance:o,threshold:c,findAllMatches:d,minMatchCharLength:h,includeMatches:s,ignoreLocation:f});N&&(g=!0),p+=w,N&&k&&(m=[...m,...k])});let y={isMatch:g,score:g?p/this.chunks.length:1};return g&&s&&(y.indices=m),y}}class ia{constructor(n){this.pattern=n}static isMultiMatch(n){return l4(n,this.multiRegex)}static isSingleMatch(n){return l4(n,this.singleRegex)}search(){}}function l4(t,n){const r=t.match(n);return r?r[1]:null}class Rte extends ia{constructor(n){super(n)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(n){const r=n===this.pattern;return{isMatch:r,score:r?0:1,indices:[0,this.pattern.length-1]}}}class Fte extends ia{constructor(n){super(n)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(n){const i=n.indexOf(this.pattern)===-1;return{isMatch:i,score:i?0:1,indices:[0,n.length-1]}}}class Mte extends ia{constructor(n){super(n)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(n){const r=n.startsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,this.pattern.length-1]}}}class Lte extends ia{constructor(n){super(n)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(n){const r=!n.startsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,n.length-1]}}}class Bte extends ia{constructor(n){super(n)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(n){const r=n.endsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[n.length-this.pattern.length,n.length-1]}}}class zte extends ia{constructor(n){super(n)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(n){const r=!n.endsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,n.length-1]}}}class J6 extends ia{constructor(n,{location:r=Xe.location,threshold:i=Xe.threshold,distance:s=Xe.distance,includeMatches:a=Xe.includeMatches,findAllMatches:o=Xe.findAllMatches,minMatchCharLength:c=Xe.minMatchCharLength,isCaseSensitive:d=Xe.isCaseSensitive,ignoreDiacritics:h=Xe.ignoreDiacritics,ignoreLocation:f=Xe.ignoreLocation}={}){super(n),this._bitapSearch=new X6(n,{location:r,threshold:i,distance:s,includeMatches:a,findAllMatches:o,minMatchCharLength:c,isCaseSensitive:d,ignoreDiacritics:h,ignoreLocation:f})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(n){return this._bitapSearch.searchIn(n)}}class Z6 extends ia{constructor(n){super(n)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(n){let r=0,i;const s=[],a=this.pattern.length;for(;(i=n.indexOf(this.pattern,r))>-1;)r=i+a,s.push([i,r-1]);const o=!!s.length;return{isMatch:o,score:o?0:1,indices:s}}}const Q0=[Rte,Z6,Mte,Lte,zte,Bte,Fte,J6],c4=Q0.length,qte=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,Vte="|";function Ute(t,n={}){return t.split(Vte).map(r=>{let i=r.trim().split(qte).filter(a=>a&&!!a.trim()),s=[];for(let a=0,o=i.length;a<o;a+=1){const c=i[a];let d=!1,h=-1;for(;!d&&++h<c4;){const f=Q0[h];let m=f.isMultiMatch(c);m&&(s.push(new f(m,n)),d=!0)}if(!d)for(h=-1;++h<c4;){const f=Q0[h];let m=f.isSingleMatch(c);if(m){s.push(new f(m,n));break}}}return s})}const $te=new Set([J6.type,Z6.type]);class Hte{constructor(n,{isCaseSensitive:r=Xe.isCaseSensitive,ignoreDiacritics:i=Xe.ignoreDiacritics,includeMatches:s=Xe.includeMatches,minMatchCharLength:a=Xe.minMatchCharLength,ignoreLocation:o=Xe.ignoreLocation,findAllMatches:c=Xe.findAllMatches,location:d=Xe.location,threshold:h=Xe.threshold,distance:f=Xe.distance}={}){this.query=null,this.options={isCaseSensitive:r,ignoreDiacritics:i,includeMatches:s,minMatchCharLength:a,findAllMatches:c,ignoreLocation:o,location:d,threshold:h,distance:f},n=r?n:n.toLowerCase(),n=i?cf(n):n,this.pattern=n,this.query=Ute(this.pattern,this.options)}static condition(n,r){return r.useExtendedSearch}searchIn(n){const r=this.query;if(!r)return{isMatch:!1,score:1};const{includeMatches:i,isCaseSensitive:s,ignoreDiacritics:a}=this.options;n=s?n:n.toLowerCase(),n=a?cf(n):n;let o=0,c=[],d=0;for(let h=0,f=r.length;h<f;h+=1){const m=r[h];c.length=0,o=0;for(let p=0,g=m.length;p<g;p+=1){const y=m[p],{isMatch:j,indices:v,score:x}=y.search(n);if(j){if(o+=1,d+=x,i){const N=y.constructor.type;$te.has(N)?c=[...c,...v]:c.push(v)}}else{d=0,o=0,c.length=0;break}}if(o){let p={isMatch:!0,score:d/o};return i&&(p.indices=c),p}}return{isMatch:!1,score:1}}}const Y0=[];function Wte(...t){Y0.push(...t)}function X0(t,n){for(let r=0,i=Y0.length;r<i;r+=1){let s=Y0[r];if(s.condition(t,n))return new s(t,n)}return new X6(t,n)}const uf={AND:"$and",OR:"$or"},J0={PATH:"$path",PATTERN:"$val"},Z0=t=>!!(t[uf.AND]||t[uf.OR]),Kte=t=>!!t[J0.PATH],Gte=t=>!ts(t)&&K6(t)&&!Z0(t),u4=t=>({[uf.AND]:Object.keys(t).map(n=>({[n]:t[n]}))});function eO(t,n,{auto:r=!0}={}){const i=s=>{let a=Object.keys(s);const o=Kte(s);if(!o&&a.length>1&&!Z0(s))return i(u4(s));if(Gte(s)){const d=o?s[J0.PATH]:a[0],h=o?s[J0.PATTERN]:s[d];if(!fi(h))throw new Error(yte(d));const f={keyId:G0(d),pattern:h};return r&&(f.searcher=X0(h,n)),f}let c={children:[],operator:a[0]};return a.forEach(d=>{const h=s[d];ts(h)&&h.forEach(f=>{c.children.push(i(f))})}),c};return Z0(t)||(t=u4(t)),i(t)}function Qte(t,{ignoreFieldNorm:n=Xe.ignoreFieldNorm}){t.forEach(r=>{let i=1;r.matches.forEach(({key:s,norm:a,score:o})=>{const c=s?s.weight:null;i*=Math.pow(o===0&&c?Number.EPSILON:o,(c||1)*(n?1:a))}),r.score=i})}function Yte(t,n){const r=t.matches;n.matches=[],dr(r)&&r.forEach(i=>{if(!dr(i.indices)||!i.indices.length)return;const{indices:s,value:a}=i;let o={indices:s,value:a};i.key&&(o.key=i.key.src),i.idx>-1&&(o.refIndex=i.idx),n.matches.push(o)})}function Xte(t,n){n.score=t.score}function Jte(t,n,{includeMatches:r=Xe.includeMatches,includeScore:i=Xe.includeScore}={}){const s=[];return r&&s.push(Yte),i&&s.push(Xte),t.map(a=>{const{idx:o}=a,c={item:n[o],refIndex:o};return s.length&&s.forEach(d=>{d(a,c)}),c})}class Fl{constructor(n,r={},i){this.options={...Xe,...r},this.options.useExtendedSearch,this._keyStore=new Nte(this.options.keys),this.setCollection(n,i)}setCollection(n,r){if(this._docs=n,r&&!(r instanceof Db))throw new Error(vte);this._myIndex=r||Y6(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(n){dr(n)&&(this._docs.push(n),this._myIndex.add(n))}remove(n=()=>!1){const r=[];for(let i=0,s=this._docs.length;i<s;i+=1){const a=this._docs[i];n(a,i)&&(this.removeAt(i),i-=1,s-=1,r.push(a))}return r}removeAt(n){this._docs.splice(n,1),this._myIndex.removeAt(n)}getIndex(){return this._myIndex}search(n,{limit:r=-1}={}){const{includeMatches:i,includeScore:s,shouldSort:a,sortFn:o,ignoreFieldNorm:c}=this.options;let d=fi(n)?fi(this._docs[0])?this._searchStringList(n):this._searchObjectList(n):this._searchLogical(n);return Qte(d,{ignoreFieldNorm:c}),a&&d.sort(o),W6(r)&&r>-1&&(d=d.slice(0,r)),Jte(d,this._docs,{includeMatches:i,includeScore:s})}_searchStringList(n){const r=X0(n,this.options),{records:i}=this._myIndex,s=[];return i.forEach(({v:a,i:o,n:c})=>{if(!dr(a))return;const{isMatch:d,score:h,indices:f}=r.searchIn(a);d&&s.push({item:a,idx:o,matches:[{score:h,value:a,norm:c,indices:f}]})}),s}_searchLogical(n){const r=eO(n,this.options),i=(c,d,h)=>{if(!c.children){const{keyId:m,searcher:p}=c,g=this._findMatches({key:this._keyStore.get(m),value:this._myIndex.getValueForItemAtKeyId(d,m),searcher:p});return g&&g.length?[{idx:h,item:d,matches:g}]:[]}const f=[];for(let m=0,p=c.children.length;m<p;m+=1){const g=c.children[m],y=i(g,d,h);if(y.length)f.push(...y);else if(c.operator===uf.AND)return[]}return f},s=this._myIndex.records,a={},o=[];return s.forEach(({$:c,i:d})=>{if(dr(c)){let h=i(r,c,d);h.length&&(a[d]||(a[d]={idx:d,item:c,matches:[]},o.push(a[d])),h.forEach(({matches:f})=>{a[d].matches.push(...f)}))}}),o}_searchObjectList(n){const r=X0(n,this.options),{keys:i,records:s}=this._myIndex,a=[];return s.forEach(({$:o,i:c})=>{if(!dr(o))return;let d=[];i.forEach((h,f)=>{d.push(...this._findMatches({key:h,value:o[f],searcher:r}))}),d.length&&a.push({idx:c,item:o,matches:d})}),a}_findMatches({key:n,value:r,searcher:i}){if(!dr(r))return[];let s=[];if(ts(r))r.forEach(({v:a,i:o,n:c})=>{if(!dr(a))return;const{isMatch:d,score:h,indices:f}=i.searchIn(a);d&&s.push({score:h,key:n,value:a,idx:o,norm:c,indices:f})});else{const{v:a,n:o}=r,{isMatch:c,score:d,indices:h}=i.searchIn(a);c&&s.push({score:d,key:n,value:a,norm:o,indices:h})}return s}}Fl.version="7.1.0";Fl.createIndex=Y6;Fl.parseIndex=Ote;Fl.config=Xe;Fl.parseQuery=eO;Wte(Hte);function Zte(){const[t,n]=D.useState([]),[r,i]=D.useState([]),[s,a]=D.useState("relevance"),c=new URLSearchParams(window.location.search).get("q")||"",{data:d=[],isLoading:h}=Fe({queryKey:["cases"],queryFn:()=>ce.entities.CaseStudy.filter({published:!0}),staleTime:300*1e3}),{data:f=[],isLoading:m}=Fe({queryKey:["blogs"],queryFn:()=>ce.entities.BlogPost.filter({published:!0}),staleTime:300*1e3}),{data:p=[],isLoading:g}=Fe({queryKey:["trainings"],queryFn:()=>ce.entities.Training.filter({active:!0}),staleTime:300*1e3}),{data:y=[],isLoading:j}=Fe({queryKey:["vacancies"],queryFn:()=>ce.entities.Vacature.filter({active:!0}),staleTime:300*1e3}),{data:v=[],isLoading:x}=Fe({queryKey:["pages"],queryFn:()=>ce.entities.PageSection.filter({active:!0}),staleTime:300*1e3}),N=h||m||g||j||x,w=Ot.useMemo(()=>N?[]:[...d.map(R=>({type:"case",title:R.client_name||"",description:R.challenge||"",content:`${R.challenge||""} ${R.solution||""}`,category:R.case_type||"",date:R.created_date,slug:R.slug,item:R})),...f.map(R=>({type:"blog",title:R.title||"",description:R.excerpt||"",content:R.content||"",category:R.category||"",date:R.published_date,slug:R.slug,item:R})),...p.map(R=>({type:"training",title:R.title||"",description:R.description||"",content:R.full_description||R.description||"",category:R.category||"",date:R.created_date,slug:R.slug,item:R})),...y.map(R=>({type:"vacancy",title:R.title||"",description:R.role_summary||R.description||"",content:R.description||"",category:R.level||"",date:R.created_date,slug:R.slug,item:R})),...v.map(R=>({type:"page",title:R.title||"",description:R.subtitle||"",content:R.content||"",category:R.page_name||"",date:R.created_date,slug:R.page_name,item:R}))],[d,f,p,y,v,N]),k=Ot.useMemo(()=>new Fl(w,{keys:[{name:"title",weight:.4},{name:"description",weight:.3},{name:"content",weight:.2},{name:"category",weight:.1}],threshold:.4,includeScore:!0,minMatchCharLength:2,ignoreLocation:!0}),[w]);D.useEffect(()=>{if(!c||N){n([]);return}const R=k.search(c);n(R)},[c,k,N]);const S=[...t.filter(R=>r.length===0?!0:r.includes(R.item.category)||r.includes(R.item.type))].sort((R,z)=>s==="relevance"?R.score-z.score:s==="date"?new Date(z.item.date)-new Date(R.item.date):0),E=[...new Set(t.map(R=>R.item.category).filter(Boolean))],C=(R,z)=>se({case:"CaseDetail",blog:"BlogDetail",training:"TrainingDetail",vacancy:"VacatureDetail",page:"Diensten"}[R])+`?slug=${z}`,B=R=>({case:Js,blog:$t,training:pr,vacancy:Ua,page:Wi})[R]||$t,F=R=>({case:"Case Study",blog:"Blog",training:"Training",vacancy:"Vacature",page:"Pagina"})[R]||R,I=R=>{i(z=>z.includes(R)?z.filter(q=>q!==R):[...z,R])};return e.jsxs("div",{className:"pt-20 min-h-screen bg-white",children:[e.jsx("section",{className:"py-16 bg-[#F4F4F4]",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx(mi,{className:"w-8 h-8 text-[#FAB868]"}),e.jsx("h1",{className:"text-4xl font-bold text-[#0D0D0F]",children:"Zoekresultaten"})]}),e.jsx("p",{className:"text-xl text-[#9CA3AF]",children:c?`Resultaten voor "${c}"`:"Voer een zoekterm in"}),!N&&c&&e.jsxs("p",{className:"text-lg text-[#9CA3AF] mt-2",children:[S.length," ",S.length===1?"resultaat":"resultaten"," gevonden"]})]})})}),!N&&c&&t.length>0&&e.jsx("section",{className:"py-8 bg-white border-b border-gray-100",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"flex flex-wrap gap-4 items-center",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(df,{className:"w-5 h-5 text-[#9CA3AF]"}),e.jsx("span",{className:"font-semibold text-[#0D0D0F]",children:"Filters:"})]}),e.jsxs("select",{value:s,onChange:R=>a(R.target.value),className:"px-4 py-2 border border-gray-200 rounded-lg text-[#0D0D0F] focus:border-[#FAB868] focus:outline-none",children:[e.jsx("option",{value:"relevance",children:"Relevantie"}),e.jsx("option",{value:"date",children:"Datum"})]}),e.jsx("div",{className:"flex flex-wrap gap-2",children:E.map(R=>e.jsx("button",{onClick:()=>I(R),className:`px-4 py-2 rounded-full text-sm font-medium transition-colors ${r.includes(R)?"bg-[#FAB868] text-[#0D0D0F]":"bg-gray-100 text-[#9CA3AF] hover:bg-gray-200"}`,children:R},R))}),r.length>0&&e.jsxs("button",{onClick:()=>i([]),className:"flex items-center gap-1 px-3 py-2 text-sm text-[#9CA3AF] hover:text-[#0D0D0F] transition-colors",children:[e.jsx(Ht,{className:"w-4 h-4"}),"Wis filters"]})]})})}),e.jsx("section",{className:"py-16",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:N?e.jsxs("div",{className:"text-center py-20",children:[e.jsx("div",{className:"inline-block animate-spin rounded-full h-12 w-12 border-b-2 border-[#FAB868]"}),e.jsx("p",{className:"mt-4 text-[#9CA3AF]",children:"Zoeken..."})]}):c?S.length===0?e.jsxs("div",{className:"text-center py-20",children:[e.jsx(mi,{className:"w-16 h-16 text-[#9CA3AF] mx-auto mb-4"}),e.jsxs("p",{className:"text-xl text-[#9CA3AF]",children:['Geen resultaten gevonden voor "',c,'"']}),e.jsx("p",{className:"text-[#9CA3AF] mt-2",children:"Probeer een andere zoekterm"})]}):e.jsx("div",{className:"space-y-6",children:S.map((R,z)=>{const q=B(R.item.type),U=Math.round((1-R.score)*100);return e.jsx(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:z*.05},children:e.jsx(de,{to:C(R.item.type,R.item.slug),className:"block bg-[#F4F4F4] rounded-2xl p-6 hover:bg-white hover:shadow-lg transition-all",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-12 h-12 bg-[#FAB868] rounded-lg flex items-center justify-center flex-shrink-0",children:e.jsx(q,{className:"w-6 h-6 text-[#0D0D0F]"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[e.jsx("span",{className:"text-sm font-semibold text-[#FAB868]",children:F(R.item.type)}),R.item.category&&e.jsxs("span",{className:"text-sm text-[#9CA3AF]",children:["• ",R.item.category]}),e.jsxs("span",{className:"text-sm text-[#9CA3AF] ml-auto",children:[U,"% match"]})]}),e.jsx("h3",{className:"text-2xl font-bold text-[#0D0D0F] mb-2",children:R.item.title}),e.jsx("p",{className:"text-[#9CA3AF] mb-4 line-clamp-2",children:R.item.description}),e.jsxs("div",{className:"flex items-center gap-2 text-[#FAB868] font-semibold",children:["Bekijk details",e.jsx($e,{className:"w-5 h-5"})]})]})]})})},`${R.item.type}-${R.item.slug}-${z}`)})}):e.jsxs("div",{className:"text-center py-20",children:[e.jsx(mi,{className:"w-16 h-16 text-[#9CA3AF] mx-auto mb-4"}),e.jsx("p",{className:"text-xl text-[#9CA3AF]",children:"Gebruik de zoekbalk om te zoeken"})]})})})]})}function ene({trainings:t=[]}){const[n,r]=D.useState(new Date),[i,s]=D.useState(null),a=D.useMemo(()=>{const x=[];return t.forEach(N=>{N.sessions&&Array.isArray(N.sessions)&&N.sessions.forEach(w=>{x.push({...w,training:{id:N.id,title:N.title,slug:N.slug,duration:N.duration,category:N.category}})})}),x},[t]),o=D.useMemo(()=>{const x={};return a.forEach(N=>{const w=jt(new Date(N.date),"yyyy-MM-dd");x[w]||(x[w]=[]),x[w].push(N)}),x},[a]),c=oV(n),d=sV(n),h=aV({start:c,end:d}),f=c.getDay(),m=f===0?6:f-1,p=()=>r(aU(n)),g=()=>r(qE(n,1)),y=i?o[jt(i,"yyyy-MM-dd")]||[]:[],j=x=>x.enrolled>=x.capacity,v=x=>KE(pl(new Date(x.date)));return e.jsxs("div",{className:"bg-white rounded-3xl p-8 border-2 border-gray-100",children:[e.jsxs("div",{className:"flex items-center justify-between mb-6",children:[e.jsx("h2",{className:"text-3xl font-bold text-[#0D0D0F]",children:"Trainingskalender"}),e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("button",{onClick:p,className:"p-2 hover:bg-[#F4F4F4] rounded-full transition-colors",children:e.jsx(RP,{className:"w-6 h-6 text-[#0D0D0F]"})}),e.jsx("span",{className:"text-xl font-semibold text-[#0D0D0F] min-w-[180px] text-center",children:jt(n,"MMMM yyyy",{locale:Bs})}),e.jsx("button",{onClick:g,className:"p-2 hover:bg-[#F4F4F4] rounded-full transition-colors",children:e.jsx(E4,{className:"w-6 h-6 text-[#0D0D0F]"})})]})]}),e.jsx("div",{className:"grid grid-cols-7 gap-2 mb-2",children:["Ma","Di","Wo","Do","Vr","Za","Zo"].map(x=>e.jsx("div",{className:"text-center text-sm font-medium text-[#9CA3AF] py-2",children:x},x))}),e.jsxs("div",{className:"grid grid-cols-7 gap-2 mb-6",children:[Array.from({length:m}).map((x,N)=>e.jsx("div",{className:"aspect-square"},`pad-${N}`)),h.map(x=>{const N=jt(x,"yyyy-MM-dd"),w=o[N]||[],k=w.length>0,A=i&&nV(x,i);return e.jsxs(Z.button,{whileHover:{scale:1.05},whileTap:{scale:.95},onClick:()=>s(x),className:`aspect-square rounded-xl p-2 text-sm font-medium transition-all relative ${A?"bg-[#FAB868] text-[#0D0D0F]":k?"bg-[#FAB868]/20 text-[#0D0D0F] hover:bg-[#FAB868]/30":"hover:bg-[#F4F4F4] text-[#0D0D0F]"}`,children:[e.jsx("div",{children:jt(x,"d")}),k&&e.jsx("div",{className:"absolute bottom-1 left-1/2 -translate-x-1/2 flex gap-1",children:w.slice(0,3).map((S,E)=>e.jsx("div",{className:`w-1.5 h-1.5 rounded-full ${A?"bg-[#0D0D0F]":"bg-[#FAB868]"}`},E))})]},N)})]}),i&&e.jsxs(Z.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"border-t-2 border-gray-100 pt-6",children:[e.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F] mb-4",children:jt(i,"EEEE d MMMM yyyy",{locale:Bs})}),y.length===0?e.jsx("p",{className:"text-[#9CA3AF]",children:"Geen trainingen op deze datum"}):e.jsx("div",{className:"space-y-4",children:y.map((x,N)=>{const w=v(x),k=j(x);return e.jsx(de,{to:se(`TrainingDetail?slug=${x.training.slug}`),className:`block p-4 rounded-xl border-2 transition-all ${w?"border-gray-200 bg-gray-50 opacity-60":"border-gray-100 hover:border-[#FAB868] hover:shadow-md"}`,children:e.jsxs("div",{className:"flex items-start justify-between mb-3",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx("h4",{className:`font-bold text-lg mb-1 ${w?"line-through text-gray-500":"text-[#0D0D0F]"}`,children:x.training.title}),e.jsxs("div",{className:"flex flex-wrap items-center gap-3 text-sm text-[#9CA3AF]",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(mn,{className:"w-4 h-4"}),jt(new Date(x.date),"HH:mm")]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(bl,{className:"w-4 h-4"}),x.location]})]})]}),e.jsxs("div",{className:"flex flex-col items-end gap-2",children:[e.jsx("span",{className:"px-3 py-1 bg-[#FAB868]/20 text-[#0D0D0F] rounded-full text-xs font-medium",children:x.training.category}),k?e.jsx("span",{className:"px-3 py-1 bg-red-100 text-red-800 rounded-full text-xs font-medium",children:"Vol"}):e.jsxs("div",{className:"flex items-center gap-1 text-sm text-[#0D0D0F]",children:[e.jsx(pn,{className:"w-4 h-4 text-[#FAB868]"}),e.jsxs("span",{className:"font-medium",children:[x.enrolled,"/",x.capacity]})]})]})]})},N)})})]})]})}const tne=[{id:"all",label:"Alle"},{id:"Basis",label:"Basis"},{id:"Gevorderd",label:"Gevorderd"},{id:"Leiderschap",label:"Leiderschap"},{id:"Technisch",label:"Technisch"}];function nne(){var h;const[t,n]=D.useState("all"),[r,i]=D.useState(!1),{data:s=[],isLoading:a}=Fe({queryKey:["trainings"],queryFn:()=>ce.entities.Training.filter({active:!0},"-created_date",50),staleTime:300*1e3}),{data:o=[]}=Fe({queryKey:["site-settings"],queryFn:()=>ce.entities.SiteSettings.list()}),c=((h=o.find(f=>f.setting_key==="show_training_calendar"))==null?void 0:h.value)!=="false";Ot.useEffect(()=>{const f=new URLSearchParams(window.location.search),m=f.get("category"),p=f.get("view");m&&n(m),p==="calendar"&&i(!0)},[]);const d=Ot.useMemo(()=>t==="all"?s:s.filter(f=>f.category===t),[s,t]);return e.jsxs("div",{className:"pt-20",children:[e.jsx("section",{className:"relative bg-white pt-32 pb-20",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center max-w-3xl mx-auto",children:[e.jsx("div",{className:"w-24 h-24 bg-[#FAB868] rounded-full flex items-center justify-center mx-auto mb-6",children:e.jsx(pr,{className:"w-12 h-12 text-[#0D0D0F]"})}),e.jsx("h1",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-6 leading-tight",children:"Maak je team AI-ready"}),e.jsx("p",{className:"text-2xl text-[#9CA3AF] mb-12",children:"Praktijkgerichte trainingen voor elk niveau"}),e.jsxs(de,{to:se("TrainingAdvisor"),className:"inline-flex items-center gap-2 px-10 py-5 bg-[#0D0D0F] text-white font-semibold rounded-full hover:bg-[#1a1a1c] transition-all text-lg",children:[e.jsx(At,{className:"w-5 h-5"}),"Vind de juiste training",e.jsx($e,{className:"w-5 h-5"})]})]})})}),e.jsx("section",{className:"py-8 border-b border-gray-100 bg-white",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"flex items-center justify-between gap-4 flex-wrap",children:[e.jsxs("div",{className:"flex items-center gap-2 overflow-x-auto pb-2",children:[e.jsx(df,{className:"w-5 h-5 text-[#9CA3AF] flex-shrink-0"}),tne.map(f=>e.jsx("button",{onClick:()=>n(f.id),className:`px-4 py-2 rounded-full text-sm font-medium whitespace-nowrap transition-all ${t===f.id?"bg-[#FAB868] text-[#0D0D0F]":"bg-[#F4F4F4] text-[#0D0D0F] hover:bg-[#E5E5E5]"}`,children:f.label},f.id))]}),c&&e.jsxs("button",{onClick:()=>i(!r),className:`flex items-center gap-2 px-4 py-2 rounded-full text-sm font-medium transition-all ${r?"bg-[#FAB868] text-[#0D0D0F]":"bg-[#F4F4F4] text-[#0D0D0F] hover:bg-[#E5E5E5]"}`,children:[e.jsx(Or,{className:"w-4 h-4"}),r?"Toon overzicht":"Toon kalender"]})]})})}),e.jsx("section",{className:"py-20",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:a?e.jsx("div",{className:"text-center py-12",children:e.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):r&&c?e.jsx(ene,{trainings:s}):d.length===0?e.jsx("div",{className:"text-center py-12",children:e.jsx("p",{className:"text-gray-600",children:"Geen trainingen gevonden"})}):e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:d.map((f,m)=>{const p=pr;return e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:m*.1},className:"bg-white rounded-3xl p-8 border-2 border-gray-100 hover:border-[#FAB868] hover:shadow-lg transition-all flex flex-col",children:[f.image_url&&e.jsx(de,{to:se(`TrainingDetail?slug=${f.slug}`),className:"block mb-6",children:e.jsx("img",{src:f.image_url,alt:f.title,loading:"lazy",className:"w-full h-48 object-cover rounded-2xl hover:opacity-90 transition-opacity cursor-pointer"})}),e.jsxs("div",{className:"flex items-start justify-between mb-4",children:[e.jsx("div",{className:"w-14 h-14 bg-[#F4F4F4] rounded-full flex items-center justify-center",children:e.jsx(p,{className:"w-7 h-7 text-[#0D0D0F]"})}),e.jsx("span",{className:"px-3 py-1 bg-[#FAB868]/20 text-[#0D0D0F] rounded-full text-sm font-medium",children:f.category})]}),e.jsx(de,{to:se(`TrainingDetail?slug=${f.slug}`),className:"block",children:e.jsx("h3",{className:"text-2xl font-bold text-[#0D0D0F] mb-2 hover:text-[#FAB868] transition-colors",children:f.title})}),e.jsx("p",{className:"text-[#0D0D0F]/80 mb-6 flex-grow text-lg",children:f.description}),e.jsx("div",{className:"flex items-center gap-4 text-base text-[#9CA3AF] pt-4 border-t border-gray-100 mb-6",children:e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(mn,{className:"w-5 h-5 text-[#FAB868]"}),f.duration]})}),e.jsx(de,{to:se(`TrainingDetail?slug=${f.slug}`),className:"w-full text-center py-3 bg-[#0D0D0F] text-white font-semibold rounded-full hover:bg-[#1a1a1c] transition-colors",children:"Meer informatie"})]},f.id)})})})}),e.jsx("section",{className:"py-32 bg-[#F4F4F4]",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-20",children:[e.jsx("h2",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-6",children:"Onze faciliteiten"}),e.jsx("p",{className:"text-2xl text-[#9CA3AF]",children:"Leren in een inspirerende omgeving"})]}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-8",children:[e.jsx(Z.div,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},className:"rounded-3xl overflow-hidden shadow-lg",children:e.jsx("img",{src:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/695a3d411fa079edce588856/eef059380_de_stek_groningen.png",alt:"Trainingsruimte",className:"w-full h-80 object-cover"})}),e.jsx(Z.div,{initial:{opacity:0,x:20},whileInView:{opacity:1,x:0},viewport:{once:!0},className:"rounded-3xl overflow-hidden shadow-lg",children:e.jsx("img",{src:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/695a3d411fa079edce588856/f1cb821e0_de_stek_groningen-2.png",alt:"Restaurant",className:"w-full h-80 object-cover"})})]})]})}),e.jsx("section",{className:"py-32 bg-[#0D0D0F]",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[e.jsx("h2",{className:"text-5xl font-bold text-white mb-6",children:"Niet zeker welke training past?"}),e.jsx("p",{className:"text-2xl text-[#9CA3AF] mb-12",children:"Gebruik onze Training Advisor"}),e.jsxs(de,{to:se("TrainingAdvisor"),className:"inline-flex items-center gap-2 px-10 py-5 bg-[#FAB868] text-[#0D0D0F] font-semibold rounded-full hover:bg-[#E5A04D] transition-all text-lg",children:[e.jsx(At,{className:"w-5 h-5"}),"Start Training Advisor",e.jsx($e,{className:"w-5 h-5"})]})]})})]})}function rne(){const[t,n]=D.useState(0),[r,i]=D.useState({}),[s,a]=D.useState(!1),[o,c]=D.useState(!1),{data:d=[],isLoading:h}=Fe({queryKey:["trainings"],queryFn:()=>ce.entities.Training.list()}),f=d.filter(v=>v.active!==!1),m=[{id:"teamSize",question:"Hoe groot is je team?",icon:pn,options:[{value:"small",label:"1-5 personen",description:"Compact team"},{value:"medium",label:"6-20 personen",description:"Middelgroot team"},{value:"large",label:"20+ personen",description:"Groot team"}]},{id:"level",question:"Wat is het huidige AI kennisniveau?",icon:pr,options:[{value:"beginner",label:"Beginner",description:"Weinig tot geen AI ervaring"},{value:"intermediate",label:"Gemiddeld",description:"Basis kennis, enige ervaring"},{value:"advanced",label:"Gevorderd",description:"Actief gebruik, wil verdiepen"}]},{id:"goal",question:"Wat is je belangrijkste doel?",icon:$a,options:[{value:"awareness",label:"AI bewustwording",description:"Team moet begrijpen wat AI kan"},{value:"productivity",label:"Productiviteit verhogen",description:"Direct toepasbare skills"},{value:"development",label:"AI development",description:"Zelf AI oplossingen bouwen"},{value:"leadership",label:"Strategisch leiderschap",description:"AI strategie en management"}]},{id:"timeframe",question:"Wanneer wil je starten?",icon:mn,options:[{value:"asap",label:"Zo snel mogelijk",description:"Binnen 2 weken"},{value:"month",label:"Binnen een maand",description:"Plannen en voorbereiden"},{value:"quarter",label:"Dit kwartaal",description:"Rustig inplannen"}]}],p=(v,x)=>{i({...r,[v]:x}),t<m.length-1?setTimeout(()=>n(t+1),300):(c(!0),setTimeout(()=>{c(!1),a(!0)},1500))},g=()=>{if(f.length===0)return[];const x=f.map(k=>{var E;let A=0,S=[];if(r.level==="beginner"&&k.category==="Basis"&&(A+=3,S.push("Perfect startpunt voor beginners")),r.level==="intermediate"&&(k.category==="Basis"||k.category==="Gevorderd")&&(A+=2,S.push("Past bij je huidige niveau")),r.level==="advanced"&&(k.category==="Gevorderd"||k.category==="Technisch")&&(A+=3,S.push("Voor gevorderden")),r.goal==="awareness"&&k.category==="Basis"&&(A+=2,S.push("Ideaal voor bewustwording")),r.goal==="productivity"&&(k.title.toLowerCase().includes("copilot")||k.title.toLowerCase().includes("productiviteit")||(E=k.description)!=null&&E.toLowerCase().includes("efficiency"))&&(A+=3,S.push("Direct toepasbaar voor productiviteit")),r.goal==="development"&&k.category==="Technisch"&&(A+=3,S.push("Voor hands-on development")),r.goal==="leadership"&&k.category==="Leiderschap"&&(A+=3,S.push("Strategisch AI leiderschap")),r.teamSize==="large"&&k.category==="Leiderschap"&&(A+=2,S.push("Belangrijk voor grotere teams")),k.target_audience){const C=k.target_audience.toLowerCase();r.goal==="leadership"&&(C.includes("management")||C.includes("leider"))&&(A+=2),r.goal==="development"&&(C.includes("developer")||C.includes("technisch"))&&(A+=2),r.level==="beginner"&&(C.includes("iedereen")||C.includes("beginners"))&&(A+=1)}return{training:k,score:A,reason:S.join(" • ")||"Past bij je profiel"}}).sort((k,A)=>A.score-k.score),N=x.filter(k=>k.score>0);return(N.length>0?N:x.slice(0,5)).map(({training:k,reason:A})=>({title:k.title,slug:k.slug,reason:A,priority:k.category||"Aanbevolen",duration:k.duration,description:k.description}))},y=m[t],j=(t+1)/m.length*100;if(h)return e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-purple-50 to-white flex items-center justify-center",children:e.jsxs("div",{className:"text-center",children:[e.jsx(P8,{className:"w-12 h-12 text-purple-600 animate-spin mx-auto mb-4"}),e.jsx("p",{className:"text-gray-600",children:"Trainingen aan het laden..."})]})});if(o)return e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-purple-50 to-white flex items-center justify-center",children:e.jsxs(Z.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},className:"text-center",children:[e.jsx("div",{className:"w-20 h-20 bg-purple-100 rounded-full flex items-center justify-center mx-auto mb-6",children:e.jsx(At,{className:"w-10 h-10 text-purple-600 animate-pulse"})}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-2",children:"Bezig met analyseren..."}),e.jsx("p",{className:"text-gray-600",children:"We zoeken de beste trainingen voor jou"})]})});if(s){const v=g();return e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-purple-50 to-white",children:e.jsxs("div",{className:"max-w-3xl mx-auto px-4 sm:px-6 lg:px-8 py-20",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[e.jsx("div",{className:"w-16 h-16 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-6",children:e.jsx(gt,{className:"w-8 h-8 text-green-600"})}),e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Jouw gepersonaliseerde aanbevelingen"}),e.jsx("p",{className:"text-gray-600",children:"Op basis van je antwoorden hebben we de beste trainingen voor je geselecteerd"})]}),v.length>0?e.jsx("div",{className:"space-y-6 mb-12",children:v.map((x,N)=>e.jsx(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:N*.15},className:"bg-white rounded-2xl p-6 border border-gray-100 shadow-sm hover:shadow-lg transition-all",children:e.jsxs("div",{className:"flex items-start justify-between gap-4",children:[e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[e.jsx("span",{className:"inline-block px-3 py-1 bg-purple-100 text-purple-700 rounded-full text-sm font-medium",children:x.priority}),x.duration&&e.jsxs("span",{className:"text-sm text-gray-500 flex items-center gap-1",children:[e.jsx(mn,{className:"w-4 h-4"}),x.duration]})]}),e.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-2",children:x.title}),e.jsx("p",{className:"text-gray-600 mb-2",children:x.description}),e.jsx("p",{className:"text-sm text-purple-600 font-medium",children:x.reason})]}),e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsx(de,{to:se("TrainingDetail")+`?slug=${x.slug}`,className:"flex-shrink-0 w-10 h-10 bg-gray-100 rounded-full flex items-center justify-center hover:bg-gray-200 transition-colors",title:"Bekijk details",children:e.jsx($e,{className:"w-5 h-5 text-gray-600"})}),e.jsx(de,{to:se("Contact")+`?training=${encodeURIComponent(x.title)}`,className:"flex-shrink-0 w-10 h-10 bg-purple-100 rounded-full flex items-center justify-center hover:bg-purple-200 transition-colors",title:"Aanvragen",children:e.jsx(gt,{className:"w-5 h-5 text-purple-600"})})]})]})},N))}):e.jsxs("div",{className:"bg-white rounded-2xl p-12 text-center mb-12",children:[e.jsx("p",{className:"text-gray-600 mb-4",children:"Er zijn momenteel geen trainingen beschikbaar die passen bij je profiel."}),e.jsx("p",{className:"text-gray-500",children:"Neem contact met ons op voor een persoonlijk advies."})]}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[e.jsxs(de,{to:se("Contact"),className:"inline-flex items-center justify-center gap-2 px-8 py-4 bg-gradient-to-r from-purple-600 to-pink-600 text-white font-semibold rounded-2xl hover:shadow-xl transition-all",children:["Plan een gesprek",e.jsx($e,{className:"w-5 h-5"})]}),e.jsx(de,{to:se("Training"),className:"inline-flex items-center justify-center gap-2 px-8 py-4 border-2 border-gray-200 text-gray-700 font-semibold rounded-2xl hover:border-purple-300 hover:bg-purple-50 transition-all",children:"Bekijk alle trainingen"})]}),e.jsxs("button",{onClick:()=>{n(0),i({}),a(!1)},className:"mt-8 mx-auto flex items-center gap-2 text-gray-600 hover:text-gray-900 transition-colors",children:[e.jsx(ht,{className:"w-4 h-4"}),"Opnieuw beginnen"]})]})})}return e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-purple-50 to-white",children:e.jsxs("div",{className:"max-w-2xl mx-auto px-4 sm:px-6 lg:px-8 py-20",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-purple-100 rounded-full text-purple-700 text-sm font-medium mb-6",children:[e.jsx(At,{className:"w-4 h-4"}),"Training Advisor"]}),e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Vind de perfecte training"}),e.jsxs("p",{className:"text-gray-600",children:["Beantwoord een paar vragen en ontvang direct een persoonlijk advies gebaseerd op ",f.length," beschikbare trainingen"]})]}),e.jsxs("div",{className:"mb-8",children:[e.jsxs("div",{className:"flex justify-between text-sm text-gray-500 mb-2",children:[e.jsxs("span",{children:["Vraag ",t+1," van ",m.length]}),e.jsxs("span",{children:[Math.round(j),"%"]})]}),e.jsx("div",{className:"h-2 bg-gray-200 rounded-full overflow-hidden",children:e.jsx(Z.div,{className:"h-full bg-gradient-to-r from-purple-600 to-pink-600 rounded-full",initial:{width:0},animate:{width:`${j}%`},transition:{duration:.3}})})]}),e.jsx(Cr,{mode:"wait",children:e.jsxs(Z.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},className:"bg-white rounded-2xl p-8 shadow-sm border border-gray-100",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx("div",{className:"w-12 h-12 bg-purple-100 rounded-xl flex items-center justify-center",children:e.jsx(y.icon,{className:"w-6 h-6 text-purple-600"})}),e.jsx("h2",{className:"text-xl font-bold text-gray-900",children:y.question})]}),e.jsx("div",{className:"space-y-3",children:y.options.map((v,x)=>e.jsxs("button",{onClick:()=>p(y.id,v.value),className:`w-full p-4 rounded-xl border-2 text-left transition-all hover:border-purple-300 hover:bg-purple-50 ${r[y.id]===v.value?"border-purple-600 bg-purple-50":"border-gray-200"}`,children:[e.jsx("p",{className:"font-semibold text-gray-900",children:v.label}),e.jsx("p",{className:"text-sm text-gray-500",children:v.description})]},x))})]},t)}),t>0&&e.jsxs("button",{onClick:()=>n(t-1),className:"mt-6 flex items-center gap-2 text-gray-600 hover:text-gray-900 transition-colors",children:[e.jsx(ht,{className:"w-4 h-4"}),"Vorige vraag"]})]})})}function ine(){var o,c;const n=new URLSearchParams(window.location.search).get("slug"),{data:r=[],isLoading:i}=Fe({queryKey:["trainings",n],queryFn:()=>ce.entities.Training.filter({slug:n,active:!0}),enabled:!!n}),s=r[0];if(i)return e.jsx("div",{className:"pt-20 min-h-screen flex items-center justify-center bg-white",children:e.jsx("div",{className:"inline-block animate-spin rounded-full h-12 w-12 border-b-2 border-[#FAB868]"})});if(!s)return e.jsx("div",{className:"pt-20 min-h-screen flex items-center justify-center bg-white",children:e.jsx("h1",{className:"text-2xl font-bold text-[#0D0D0F]",children:"Training niet gevonden."})});const a=((o=s.full_description)==null?void 0:o.includes("<"))&&((c=s.full_description)==null?void 0:c.includes(">"));return e.jsxs("div",{className:"pt-20 bg-white",children:[e.jsxs(vl,{children:[e.jsx("title",{children:`${s.title} - AI Training - 48-7`}),e.jsx("meta",{name:"description",content:s.description}),e.jsx("meta",{property:"og:title",content:s.title}),e.jsx("meta",{property:"og:description",content:s.description}),e.jsx("meta",{property:"og:type",content:"website"}),s.image_url&&e.jsx("meta",{property:"og:image",content:s.image_url}),e.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"Course",name:s.title,description:s.description,provider:{"@type":"Organization",name:"48-7"},courseMode:s.format,timeRequired:s.duration})})]}),e.jsxs("section",{className:"relative overflow-hidden pt-16 pb-12 bg-[#F4F4F4]",children:[s.image&&e.jsx("img",{src:s.image,alt:s.title,className:"absolute inset-0 w-full h-full object-cover opacity-30"}),e.jsx("div",{className:"relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-16",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"max-w-4xl mx-auto",children:[e.jsx("div",{className:"flex items-center gap-4 mb-6",children:e.jsxs(de,{to:se("Training"),className:"inline-flex items-center text-[#0D0D0F] hover:text-[#FAB868] transition-colors",children:[e.jsx(ht,{className:"w-4 h-4 mr-2"})," Terug naar overzicht"]})}),e.jsx("div",{className:"w-24 h-24 bg-[#FAB868] rounded-full flex items-center justify-center mb-6",children:e.jsx(pr,{className:"w-12 h-12 text-[#0D0D0F]"})}),e.jsx("h1",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-4",children:s.title}),e.jsx("p",{className:"text-2xl text-[#9CA3AF] mb-8",children:s.description}),e.jsxs("div",{className:"flex flex-wrap items-center gap-6 text-lg text-[#0D0D0F]",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(mn,{className:"w-6 h-6 text-[#FAB868]"}),e.jsx("span",{children:s.duration})]}),s.target_audience&&e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(pn,{className:"w-6 h-6 text-[#FAB868]"}),e.jsx("span",{children:s.target_audience})]}),s.price&&e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(T1,{className:"w-6 h-6 text-[#FAB868]"}),e.jsx("span",{children:s.price})]})]})]})})]}),e.jsx("section",{className:"py-20",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 grid lg:grid-cols-3 gap-12",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"lg:col-span-2 space-y-10",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-4xl font-bold text-[#0D0D0F] mb-6",children:"Over deze training"}),e.jsx("div",{className:"training-content",children:a?e.jsx("div",{dangerouslySetInnerHTML:{__html:s.full_description||s.description}}):e.jsx(Uu,{children:s.full_description||s.description})}),e.jsx("style",{jsx:!0,children:`
.training-content h1 {
font-size: 2rem;
font-weight: 700;
color: #0D0D0F;
margin-top: 2rem;
margin-bottom: 1rem;
line-height: 1.2;
}
.training-content h2 {
font-size: 1.75rem;
font-weight: 700;
color: #0D0D0F;
margin-top: 1.5rem;
margin-bottom: 0.75rem;
line-height: 1.3;
}
.training-content h3 {
font-size: 1.5rem;
font-weight: 600;
color: #0D0D0F;
margin-top: 1.25rem;
margin-bottom: 0.75rem;
}
.training-content h4 {
font-size: 1.25rem;
font-weight: 600;
color: #0D0D0F;
margin-top: 1rem;
margin-bottom: 0.5rem;
}
.training-content p {
color: #0D0D0F;
font-size: 1.125rem;
line-height: 1.75;
margin-bottom: 1rem;
}
.training-content ul,
.training-content ol {
margin: 1rem 0;
padding-left: 2rem;
color: #0D0D0F;
font-size: 1.125rem;
line-height: 1.75;
}
.training-content ul {
list-style-type: disc;
}
.training-content ol {
list-style-type: decimal;
}
.training-content li {
margin-bottom: 0.5rem;
color: #0D0D0F;
}
.training-content strong {
font-weight: 700;
color: #0D0D0F;
}
.training-content em {
font-style: italic;
}
.training-content u {
text-decoration: underline;
}
.training-content a {
color: #FAB868;
text-decoration: underline;
}
.training-content a:hover {
color: #E5A04D;
}
`})]}),s.learning_goals&&s.learning_goals.length>0&&e.jsxs("div",{children:[e.jsx("h3",{className:"text-3xl font-bold text-[#0D0D0F] mb-6",children:"Wat je leert"}),e.jsx("ul",{className:"space-y-4",children:s.learning_goals.map((d,h)=>e.jsxs("li",{className:"flex items-start gap-3 text-xl text-[#0D0D0F]/80",children:[e.jsx(gt,{className:"w-7 h-7 text-[#FAB868] flex-shrink-0 mt-1"}),e.jsx("span",{children:d})]},h))})]})]}),e.jsx(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"lg:col-span-1 space-y-6",children:e.jsxs("div",{className:"bg-[#F4F4F4] rounded-3xl p-8 sticky top-28",children:[e.jsx("h3",{className:"text-2xl font-bold text-[#0D0D0F] mb-6",children:"Details"}),e.jsxs("ul",{className:"space-y-4 text-lg text-[#0D0D0F]/80 mb-8",children:[e.jsxs("li",{className:"flex items-center gap-3",children:[e.jsx(mn,{className:"w-6 h-6 text-[#FAB868]"}),e.jsx("span",{children:e.jsx("span",{className:"font-semibold",children:s.duration})})]}),s.target_audience&&e.jsxs("li",{className:"flex items-start gap-3",children:[e.jsx(pn,{className:"w-6 h-6 text-[#FAB868] flex-shrink-0 mt-1"}),e.jsx("span",{children:s.target_audience})]}),s.price&&e.jsxs("li",{className:"flex items-center gap-3",children:[e.jsx(T1,{className:"w-6 h-6 text-[#FAB868]"}),e.jsx("span",{className:"font-semibold",children:s.price})]})]}),s.sessions&&s.sessions.length>0&&e.jsxs("div",{className:"mb-8 pb-8 border-b-2 border-gray-200",children:[e.jsxs("h4",{className:"text-lg font-bold text-[#0D0D0F] mb-4 flex items-center gap-2",children:[e.jsx(Or,{className:"w-5 h-5 text-[#FAB868]"}),"Geplande data"]}),e.jsx("div",{className:"space-y-3",children:s.sessions.sort((d,h)=>new Date(d.date)-new Date(h.date)).map((d,h)=>{const f=KE(pl(new Date(d.date))),m=d.enrolled>=d.capacity;return e.jsxs("div",{className:`p-3 rounded-xl border-2 ${f?"border-gray-200 bg-gray-50 opacity-60":"border-gray-200 hover:border-[#FAB868] transition-colors"}`,children:[e.jsx("div",{className:`font-semibold text-sm mb-1 ${f?"line-through text-gray-500":"text-[#0D0D0F]"}`,children:jt(new Date(d.date),"EEEE d MMMM yyyy",{locale:Bs})}),e.jsxs("div",{className:"text-xs text-[#9CA3AF] space-y-1",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(mn,{className:"w-3 h-3"}),jt(new Date(d.date),"HH:mm")]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(bl,{className:"w-3 h-3"}),d.location]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(pn,{className:"w-3 h-3"}),d.enrolled,"/",d.capacity," deelnemers",m&&e.jsx("span",{className:"ml-2 px-2 py-0.5 bg-red-100 text-red-800 rounded-full text-xs font-medium",children:"Vol"})]})]})]},h)})})]}),e.jsxs(de,{to:se("Contact")+`?training=${encodeURIComponent(s.title)}`,className:"w-full text-center py-4 bg-[#0D0D0F] text-white font-semibold rounded-full hover:bg-[#1a1a1c] transition-colors inline-flex items-center justify-center gap-2 text-lg",children:["Vraag aan",e.jsx($e,{className:"w-5 h-5"})]})]})})]})}),e.jsx("section",{className:"py-20 bg-[#0D0D0F]",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[e.jsx("h2",{className:"text-5xl font-bold text-white mb-6",children:"Bekijk al onze trainingen"}),e.jsxs(de,{to:se("Training"),className:"inline-flex items-center gap-2 px-10 py-5 bg-[#FAB868] text-[#0D0D0F] font-semibold rounded-full hover:bg-[#E5A04D] transition-all text-lg",children:[e.jsx(pr,{className:"w-5 h-5"}),"Alle Trainingen"]})]})})]})}function sne(){var o,c;const n=new URLSearchParams(window.location.search).get("slug"),{data:r=[],isLoading:i}=Fe({queryKey:["vacature",n],queryFn:()=>ce.entities.Vacature.filter({slug:n,active:!0}),enabled:!!n}),s=r[0];if(i)return e.jsx("div",{className:"pt-20 min-h-screen bg-white flex items-center justify-center",children:e.jsx("div",{className:"inline-block animate-spin rounded-full h-12 w-12 border-b-2 border-[#FAB868]"})});if(!s)return e.jsx("div",{className:"pt-20 min-h-screen bg-white flex items-center justify-center",children:e.jsxs("div",{className:"text-center",children:[e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Vacature niet gevonden"}),e.jsx(de,{to:se("Vacatures"),className:"text-blue-600 hover:underline",children:"Terug naar vacatures"})]})});const a=((o=s.description)==null?void 0:o.includes("<"))&&((c=s.description)==null?void 0:c.includes(">"));return e.jsxs("div",{className:"pt-20 min-h-screen bg-white",children:[e.jsxs(vl,{children:[e.jsx("title",{children:`${s.title} - Vacatures - 48-7`}),e.jsx("meta",{name:"description",content:s.role_summary||s.description}),e.jsx("meta",{property:"og:title",content:s.title}),e.jsx("meta",{property:"og:description",content:s.role_summary||s.description}),e.jsx("meta",{property:"og:type",content:"website"}),e.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"JobPosting",title:s.title,description:s.description,employmentType:s.employment_type,hiringOrganization:{"@type":"Organization",name:"48-7"},jobLocation:{"@type":"Place",address:{"@type":"PostalAddress",addressLocality:s.location}},baseSalary:s.salary_range?{"@type":"MonetaryAmount",currency:"EUR",value:{"@type":"QuantitativeValue",value:s.salary_range}}:void 0})})]}),e.jsx("div",{className:"bg-[#F4F4F4] py-4",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs(de,{to:se("Vacatures"),className:"inline-flex items-center gap-2 text-[#0D0D0F] hover:text-[#FAB868] transition-colors",children:[e.jsx(ht,{className:"w-5 h-5"}),"Terug naar vacatures"]})})}),e.jsx("section",{className:"py-16 bg-white",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-3 mb-6",children:[e.jsx("span",{className:"px-4 py-2 bg-[#FAB868] text-[#0D0D0F] rounded-full text-sm font-semibold",children:s.level}),e.jsxs("div",{className:"flex items-center gap-2 text-[#9CA3AF]",children:[e.jsx(bl,{className:"w-5 h-5"}),e.jsx("span",{children:s.location})]}),e.jsxs("div",{className:"flex items-center gap-2 text-[#9CA3AF]",children:[e.jsx(mn,{className:"w-5 h-5"}),e.jsx("span",{children:s.type})]}),s.salary_range&&e.jsxs("div",{className:"flex items-center gap-2 text-[#9CA3AF]",children:[e.jsx(Js,{className:"w-5 h-5"}),e.jsx("span",{children:s.salary_range})]})]}),e.jsx("h1",{className:"text-5xl font-bold text-[#0D0D0F] mb-6",children:s.title}),e.jsx("p",{className:"text-2xl text-[#9CA3AF] mb-8",children:s.role_summary||s.description}),e.jsxs(de,{to:se("Contact")+`?subject=vacancy&vacancy=${encodeURIComponent(s.title)}`,className:"inline-flex items-center gap-2 px-8 py-4 bg-[#FAB868] text-[#0D0D0F] font-semibold rounded-full hover:bg-[#E5A04D] transition-all text-lg",children:["Solliciteer nu",e.jsx($e,{className:"w-5 h-5"})]})]})})}),e.jsx("section",{className:"py-16 bg-[#F4F4F4]",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"space-y-12",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"bg-white rounded-3xl p-8",children:[e.jsx("h2",{className:"text-3xl font-bold text-[#0D0D0F] mb-6",children:"De rol"}),e.jsx("div",{className:"text-lg text-[#9CA3AF] leading-relaxed prose prose-lg max-w-none",children:a?e.jsx("div",{dangerouslySetInnerHTML:{__html:s.description}}):e.jsx(Uu,{children:s.description})})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"bg-white rounded-3xl p-8",children:[e.jsx("h2",{className:"text-3xl font-bold text-[#0D0D0F] mb-6",children:"Wat ga je doen?"}),s.responsibilities&&s.responsibilities.length>0?e.jsx("ul",{className:"space-y-3",children:s.responsibilities.map((d,h)=>e.jsxs("li",{className:"flex items-start gap-3",children:[e.jsx(gt,{className:"w-6 h-6 text-[#FAB868] flex-shrink-0 mt-0.5"}),e.jsx("span",{className:"text-lg text-[#9CA3AF]",children:d})]},h))}):e.jsx("p",{className:"text-lg text-[#9CA3AF]",children:"Meer details volgen binnenkort."})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"bg-white rounded-3xl p-8",children:[e.jsx("h2",{className:"text-3xl font-bold text-[#0D0D0F] mb-6",children:"Wat breng je mee?"}),s.requirements&&s.requirements.length>0?e.jsx("ul",{className:"space-y-3 mb-8",children:s.requirements.map((d,h)=>e.jsxs("li",{className:"flex items-start gap-3",children:[e.jsx(gt,{className:"w-6 h-6 text-[#FAB868] flex-shrink-0 mt-0.5"}),e.jsx("span",{className:"text-lg text-[#9CA3AF]",children:d})]},h))}):e.jsx("p",{className:"text-lg text-[#9CA3AF] mb-8",children:"Meer details volgen binnenkort."})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"bg-white rounded-3xl p-8",children:[e.jsx("h2",{className:"text-3xl font-bold text-[#0D0D0F] mb-6",children:"Wat bieden wij?"}),s.benefits&&s.benefits.length>0?e.jsx("ul",{className:"space-y-3",children:s.benefits.map((d,h)=>e.jsxs("li",{className:"flex items-start gap-3",children:[e.jsx(gt,{className:"w-6 h-6 text-[#FAB868] flex-shrink-0 mt-0.5"}),e.jsx("span",{className:"text-lg text-[#9CA3AF]",children:d})]},h))}):e.jsx("p",{className:"text-lg text-[#9CA3AF]",children:"Meer details volgen binnenkort."})]})]})})}),e.jsx("section",{className:"py-20 bg-[#0D0D0F]",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[e.jsx("h2",{className:"text-4xl font-bold text-white mb-6",children:"Enthousiast geworden?"}),e.jsx("p",{className:"text-xl text-gray-300 mb-8",children:"Solliciteer direct of neem contact op voor meer informatie"}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[e.jsxs(de,{to:se("Contact")+`?subject=vacancy&vacancy=${encodeURIComponent(s.title)}`,className:"inline-flex items-center justify-center gap-2 px-10 py-5 bg-[#FAB868] text-[#0D0D0F] font-semibold rounded-full hover:bg-[#E5A04D] transition-all text-lg",children:["Solliciteer nu",e.jsx($e,{className:"w-5 h-5"})]}),e.jsx(de,{to:se("Contact"),className:"inline-flex items-center justify-center gap-2 px-10 py-5 bg-white text-[#0D0D0F] font-semibold rounded-full hover:bg-gray-100 transition-all text-lg",children:"Stel een vraag"})]})]})})})]})}function ane(){const{data:t=[],isLoading:n}=Fe({queryKey:["vacatures"],queryFn:()=>ce.entities.Vacature.filter({active:!0},"-created_date")});return e.jsxs("div",{className:"pt-20",children:[e.jsxs("section",{className:"relative h-[500px] overflow-hidden",children:[e.jsx("img",{src:"https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=2000&auto=format&fit=crop",alt:"Team working",className:"absolute inset-0 w-full h-full object-cover"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-[#0D0D0F]/90 via-[#0D0D0F]/70 to-transparent"}),e.jsx("div",{className:"relative h-full max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 flex items-center",children:e.jsxs(Z.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},className:"max-w-2xl text-white",children:[e.jsx("h1",{className:"text-5xl sm:text-6xl lg:text-7xl font-bold mb-6 leading-tight",children:"Bouw de toekomst van AI"}),e.jsx("p",{className:"text-2xl text-gray-200 mb-8",children:"Word onderdeel van het snelst groeiende AI team van Nederland"}),e.jsxs("div",{className:"flex flex-wrap gap-8 text-lg",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Ki,{className:"w-6 h-6 text-[#FAB868]"}),e.jsx("span",{children:"Groeiend bedrijf"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(pn,{className:"w-6 h-6 text-[#FAB868]"}),e.jsx("span",{children:"Talent-first cultuur"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Wi,{className:"w-6 h-6 text-[#FAB868]"}),e.jsx("span",{children:"Cutting-edge projecten"})]})]})]})})]}),e.jsx("section",{className:"py-20 bg-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:[e.jsx("h2",{className:"text-5xl font-bold text-[#0D0D0F] mb-6",children:"Open vacatures"}),e.jsx("p",{className:"text-2xl text-[#9CA3AF]",children:"Vind jouw plek in ons team"})]}),n?e.jsx("div",{className:"text-center py-12",children:e.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):t.length===0?e.jsx("div",{className:"text-center py-12",children:e.jsx("p",{className:"text-gray-600",children:"Momenteel geen openstaande vacatures"})}):e.jsx("div",{className:"space-y-6",children:t.map((r,i)=>e.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:i*.1},className:"bg-[#F4F4F4] rounded-3xl p-8 hover:bg-white hover:shadow-lg hover:border-2 hover:border-[#FAB868] transition-all group",children:e.jsxs("div",{className:"flex flex-col lg:flex-row lg:items-center justify-between gap-6",children:[e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-3 mb-4",children:[e.jsx("span",{className:"px-4 py-1 bg-[#FAB868] text-[#0D0D0F] rounded-full text-sm font-semibold",children:r.level}),e.jsxs("div",{className:"flex items-center gap-2 text-[#9CA3AF]",children:[e.jsx(bl,{className:"w-4 h-4"}),e.jsx("span",{children:r.location})]}),e.jsxs("div",{className:"flex items-center gap-2 text-[#9CA3AF]",children:[e.jsx(mn,{className:"w-4 h-4"}),e.jsx("span",{children:r.type})]})]}),e.jsx("h3",{className:"text-3xl font-bold text-[#0D0D0F] mb-3 group-hover:text-[#FAB868] transition-colors",children:r.title}),e.jsx("p",{className:"text-xl text-[#9CA3AF] mb-4",children:r.role_summary||r.description}),r.requirements&&r.requirements.length>0&&e.jsx("div",{className:"flex flex-wrap gap-2",children:r.requirements.slice(0,4).map((s,a)=>e.jsx("span",{className:"px-3 py-1 bg-white text-[#0D0D0F] rounded-full text-sm",children:s},a))})]}),e.jsxs("div",{className:"flex gap-3",children:[e.jsx(de,{to:se("VacatureDetail")+`?slug=${r.slug}`,className:"flex-shrink-0 inline-flex items-center gap-2 px-6 py-3 bg-white text-[#0D0D0F] font-semibold rounded-full hover:bg-gray-100 transition-all border-2 border-[#0D0D0F]",children:"Meer info"}),e.jsxs(de,{to:se("Contact")+`?subject=vacancy&vacancy=${encodeURIComponent(r.title)}`,className:"flex-shrink-0 inline-flex items-center gap-2 px-8 py-4 bg-[#0D0D0F] text-white font-semibold rounded-full hover:bg-[#1a1a1c] transition-all",children:["Solliciteer",e.jsx($e,{className:"w-5 h-5"})]})]})]})},i))})]})}),e.jsx("section",{className:"py-20 bg-[#F4F4F4]",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[e.jsx(Js,{className:"w-16 h-16 text-[#FAB868] mx-auto mb-6"}),e.jsx("h2",{className:"text-4xl font-bold text-[#0D0D0F] mb-6",children:"Zie je jezelf niet in deze vacatures?"}),e.jsx("p",{className:"text-xl text-[#9CA3AF] mb-8",children:"We zijn altijd op zoek naar talent. Stuur ons een open sollicitatie."}),e.jsxs(de,{to:se("Contact")+"?subject=open-sollicitatie",className:"inline-flex items-center gap-2 px-10 py-5 bg-[#0D0D0F] text-white font-semibold rounded-full hover:bg-[#1a1a1c] transition-all text-lg",children:["Open sollicitatie",e.jsx($e,{className:"w-5 h-5"})]})]})})}),e.jsx("section",{className:"py-20 bg-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:e.jsx("h2",{className:"text-5xl font-bold text-[#0D0D0F] mb-6",children:"Waarom 48-7?"})}),e.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:[{title:"Groei & Leren",description:"Werk met de nieuwste AI technologieën en groei snel in je vakgebied",icon:Ki},{title:"Impact maken",description:"Bouw oplossingen die Nederlandse bedrijven écht verder helpen",icon:Wi},{title:"Geweldig team",description:"Werk samen met gepassioneerde professionals in een informele sfeer",icon:pn}].map((r,i)=>e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:i*.1},className:"text-center",children:[e.jsx("div",{className:"w-20 h-20 bg-[#FAB868] rounded-full flex items-center justify-center mx-auto mb-6",children:e.jsx(r.icon,{className:"w-10 h-10 text-[#0D0D0F]"})}),e.jsx("h3",{className:"text-2xl font-bold text-[#0D0D0F] mb-3",children:r.title}),e.jsx("p",{className:"text-lg text-[#9CA3AF]",children:r.description})]},i))})]})})]})}function one({children:t,currentPageName:n}){var q,U,Q,H,K,Y,P;const[r,i]=D.useState(!1),[s,a]=D.useState(!1),[o,c]=D.useState(null),[d,h]=D.useState(!1),[f,m]=D.useState(""),[p,g]=D.useState(!1),[y,j]=D.useState(!1),[v,x]=D.useState(!1),N=eo(),{data:w=[]}=Fe({queryKey:["site-settings"],queryFn:()=>ce.entities.SiteSettings.list()}),k=((q=w.find(T=>T.setting_key==="logo_url"))==null?void 0:q.value)||"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/695a3d411fa079edce588856/1fa26eb8b_48-7-AI-professionals-16-1-2026.png",A=(U=w.find(T=>T.setting_key==="linkedin_url"))==null?void 0:U.value,S=(Q=w.find(T=>T.setting_key==="instagram_url"))==null?void 0:Q.value,E=(H=w.find(T=>T.setting_key==="twitter_url"))==null?void 0:H.value,C=(K=w.find(T=>T.setting_key==="youtube_url"))==null?void 0:K.value,B=((Y=w.find(T=>T.setting_key==="show_blog"))==null?void 0:Y.value)!=="false",F=((P=w.find(T=>T.setting_key==="show_news"))==null?void 0:P.value)!=="false";D.useEffect(()=>{const T=()=>{i(window.scrollY>20)};return window.addEventListener("scroll",T),()=>window.removeEventListener("scroll",T)},[]),D.useEffect(()=>{if(!document.getElementById("hs-script-loader")){const T=document.createElement("script");T.type="text/javascript",T.id="hs-script-loader",T.async=!0,T.defer=!0,T.src="https://js-eu1.hs-scripts.com/147778836.js",document.body.appendChild(T)}},[]),D.useEffect(()=>{a(!1),c(null),h(!1),g(!1),j(!1),x(!1),window.scrollTo(0,0)},[N]);const I=T=>{T.preventDefault(),f.trim()&&(window.location.href=se("SearchResults")+`?q=${encodeURIComponent(f)}`)},R={diensten:{label:"Wat we doen",items:[{name:"AI Consultancy",href:se("AIConsultancy"),desc:"Strategie & innovatie met AI"},{name:"AI Software Development",href:se("AIDevelopment"),desc:"Custom AI oplossingen"},{name:"Development Support",href:se("DevelopmentSupport"),desc:"CTO as a Service & meer"}]},training:{items:[{name:"Trainingen en Workshops",href:se("Training"),desc:"Overzicht van ons aanbod"},{name:"Training Advisor",href:se("TrainingAdvisor"),desc:"Vind de juiste training"}]},claudeCowork:{items:[{name:"Overzicht",href:se("ClaudeCowork"),desc:"Wat is Claude Cowork?"},{name:"Skills & Connectors",href:se("ClaudeCoworkSkillsConnectors"),desc:"Marketplace van AI-skills"},{name:"Training",href:se("ClaudeCoworkTraining"),desc:"Leer werken met Claude"},{name:"Advies",href:se("ClaudeCoworkAdvies"),desc:"Persoonlijk adviesgesprek"}]}},z=({items:T,label:V,dropdownKey:L})=>{const[X,J]=Ot.useState(!1),W=Ot.useRef(null),G=()=>{W.current&&clearTimeout(W.current),J(!0),c(L)},ee=()=>{W.current=setTimeout(()=>{J(!1),c(null)},150)};return e.jsxs("div",{className:"relative",onMouseEnter:G,onMouseLeave:ee,children:[e.jsxs("button",{className:"flex items-center gap-1 text-[#0D0D0F] hover:text-[#FAB868] transition-colors font-medium py-2",children:[V,e.jsx(Aa,{className:`w-4 h-4 transition-transform ${o===L?"rotate-180":""}`})]}),e.jsx(Cr,{children:o===L&&e.jsx(Z.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:10},transition:{duration:.2},className:"absolute top-full left-0 mt-1 w-72 bg-white rounded-3xl shadow-xl border border-gray-100 overflow-hidden z-50",onMouseEnter:G,onMouseLeave:ee,children:e.jsx("div",{className:"p-2",children:T.map((ne,le)=>e.jsxs(de,{to:ne.href,className:"flex flex-col p-3 rounded-xl hover:bg-[#F4F4F4] transition-colors group",children:[e.jsx("span",{className:"font-medium text-[#0D0D0F] group-hover:text-[#FAB868] transition-colors",children:ne.name}),e.jsx("span",{className:"text-sm text-[#292828]",children:ne.desc})]},le))})})})]})};return e.jsxs("div",{className:"min-h-screen bg-white",children:[e.jsxs("header",{className:"fixed top-0 left-0 right-0 z-[100] transition-all duration-300 bg-white/90 backdrop-blur-md shadow-sm",children:[e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"flex items-center justify-between h-20",children:[e.jsx(de,{to:se("Home"),className:"flex items-center",children:e.jsx("img",{src:k,alt:"48-7 AI Professionals",className:"h-8"})}),e.jsxs("nav",{className:"hidden lg:flex items-center gap-2",children:[e.jsx(z,{items:R.diensten.items,label:R.diensten.label,dropdownKey:"diensten"}),e.jsx(z,{items:R.training.items,label:"Training",dropdownKey:"training"}),e.jsx(z,{items:R.claudeCowork.items,label:"Claude Cowork",dropdownKey:"claudeCowork"}),e.jsx(de,{to:se("Cases"),className:"px-4 py-2 text-[#0D0D0F] hover:text-[#FAB868] transition-colors font-medium",children:"Cases"}),B&&e.jsx(de,{to:se("Blog"),className:"px-4 py-2 text-[#0D0D0F] hover:text-[#FAB868] transition-colors font-medium",children:"Blog"}),F&&e.jsx(de,{to:se("Nieuws"),className:"px-4 py-2 text-[#0D0D0F] hover:text-[#FAB868] transition-colors font-medium",children:"AI Nieuws"}),e.jsx(de,{to:se("EuAiActChecker"),className:"px-4 py-2 text-[#0D0D0F] hover:text-[#FAB868] transition-colors font-medium",children:"EU AI Act"}),e.jsx(de,{to:se("AIImpactRapport"),className:"px-4 py-2 text-[#0D0D0F] hover:text-[#FAB868] transition-colors font-medium",children:"AI Impact Scan"}),e.jsx(de,{to:se("OverOns"),className:"px-4 py-2 text-[#0D0D0F] hover:text-[#FAB868] transition-colors font-medium",children:"Over 48-7"})]}),e.jsxs("div",{className:"hidden lg:flex items-center gap-3",children:[e.jsx("button",{onClick:()=>h(!d),className:"p-3 hover:bg-[#F4F4F4] rounded-full transition-colors","aria-label":"Zoeken",children:e.jsx(mi,{className:"w-5 h-5 text-[#0D0D0F]"})}),e.jsx(de,{to:se("Contact"),className:"px-6 py-3 bg-[#FAB868] text-[#0D0D0F] font-semibold rounded-full hover:bg-[#E5A04D] transition-all",children:"Contact"})]}),e.jsx("button",{className:"lg:hidden p-2 rounded-full hover:bg-[#F4F4F4] transition-colors",onClick:()=>a(!s),children:s?e.jsx(Ht,{className:"w-6 h-6"}):e.jsx(L8,{className:"w-6 h-6"})})]})}),e.jsx(Cr,{children:s&&e.jsx(Z.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"lg:hidden bg-white border-t border-gray-100 overflow-hidden max-h-[80vh] overflow-y-auto",children:e.jsxs("nav",{className:"px-4 py-6 space-y-2",children:[e.jsxs("div",{children:[e.jsxs("button",{className:"flex items-center justify-between w-full px-4 py-3 text-[#0D0D0F] font-medium hover:bg-[#F4F4F4] rounded-xl transition-colors",onClick:()=>g(!p),children:["Wat we doen",e.jsx(Aa,{className:`w-4 h-4 transition-transform ${p?"rotate-180":""}`})]}),e.jsx(Cr,{children:p&&e.jsx(Z.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"ml-4 mt-2 space-y-1",children:R.diensten.items.map((T,V)=>e.jsx(de,{to:T.href,className:"block px-4 py-2 text-sm text-[#0D0D0F] hover:bg-[#F4F4F4] rounded-lg",onClick:()=>a(!1),children:T.name},V))})})]}),e.jsxs("div",{children:[e.jsxs("button",{className:"flex items-center justify-between w-full px-4 py-3 text-[#0D0D0F] font-medium hover:bg-[#F4F4F4] rounded-xl transition-colors",onClick:()=>j(!y),children:["Training",e.jsx(Aa,{className:`w-4 h-4 transition-transform ${y?"rotate-180":""}`})]}),e.jsx(Cr,{children:y&&e.jsx(Z.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"ml-4 mt-2 space-y-1",children:R.training.items.map((T,V)=>e.jsx(de,{to:T.href,className:"block px-4 py-2 text-sm text-[#0D0D0F] hover:bg-[#F4F4F4] rounded-lg",onClick:()=>a(!1),children:T.name},V))})})]}),e.jsxs("div",{children:[e.jsxs("button",{className:"flex items-center justify-between w-full px-4 py-3 text-[#0D0D0F] font-medium hover:bg-[#F4F4F4] rounded-xl transition-colors",onClick:()=>x(!v),children:["Claude Cowork",e.jsx(Aa,{className:`w-4 h-4 transition-transform ${v?"rotate-180":""}`})]}),e.jsx(Cr,{children:v&&e.jsx(Z.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"ml-4 mt-2 space-y-1",children:R.claudeCowork.items.map((T,V)=>e.jsx(de,{to:T.href,className:"block px-4 py-2 text-sm text-[#0D0D0F] hover:bg-[#F4F4F4] rounded-lg",onClick:()=>a(!1),children:T.name},V))})})]}),e.jsx(de,{to:se("Cases"),className:"block px-4 py-3 text-[#0D0D0F] font-medium hover:bg-[#F4F4F4] rounded-xl transition-colors",onClick:()=>a(!1),children:"Cases"}),B&&e.jsx(de,{to:se("Blog"),className:"block px-4 py-3 text-[#0D0D0F] font-medium hover:bg-[#F4F4F4] rounded-xl transition-colors",onClick:()=>a(!1),children:"Blog"}),F&&e.jsx(de,{to:se("Nieuws"),className:"block px-4 py-3 text-[#0D0D0F] font-medium hover:bg-[#F4F4F4] rounded-xl transition-colors",onClick:()=>a(!1),children:"AI Nieuws"}),e.jsx(de,{to:se("EuAiActChecker"),className:"block px-4 py-3 text-[#0D0D0F] font-medium hover:bg-[#F4F4F4] rounded-xl transition-colors",onClick:()=>a(!1),children:"EU AI Act"}),e.jsx(de,{to:se("AIImpactRapport"),className:"block px-4 py-3 text-[#0D0D0F] font-medium hover:bg-[#F4F4F4] rounded-xl transition-colors",onClick:()=>a(!1),children:"AI Impact Scan"}),e.jsx(de,{to:se("OverOns"),className:"block px-4 py-3 text-[#0D0D0F] font-medium hover:bg-[#F4F4F4] rounded-xl transition-colors",onClick:()=>a(!1),children:"Over 48-7"}),e.jsx(de,{to:se("Contact"),className:"block px-4 py-3 text-[#0D0D0F] font-medium hover:bg-[#F4F4F4] rounded-xl transition-colors",onClick:()=>a(!1),children:"Contact"})]})})}),e.jsx(Cr,{children:d&&e.jsx(Z.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"border-t border-gray-100 bg-white",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4",children:e.jsxs("form",{onSubmit:I,className:"flex items-center gap-2",children:[e.jsxs("div",{className:"flex-1 relative",children:[e.jsx(mi,{className:"absolute left-4 top-1/2 -translate-y-1/2 w-5 h-5 text-gray-400"}),e.jsx("input",{type:"text",value:f,onChange:T=>m(T.target.value),placeholder:"Zoek naar cases, trainingen, blog artikelen...",className:"w-full pl-12 pr-4 py-3 border-2 border-gray-200 rounded-full focus:border-[#FAB868] focus:outline-none text-[#0D0D0F]",autoFocus:!0})]}),e.jsx("button",{type:"submit",className:"px-6 py-3 bg-[#FAB868] text-[#0D0D0F] font-semibold rounded-full hover:bg-[#E5A04D] transition-all",children:"Zoeken"})]})})})})]}),e.jsx("main",{children:t}),e.jsxs("footer",{className:"bg-[#0D0D0F] text-white",children:[F&&e.jsx("div",{className:"border-b border-gray-800",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-16",children:e.jsxs("div",{className:"flex flex-col items-center text-center gap-8",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-2xl font-bold mb-2",children:"Daily AI Nieuws in 48 seconden"}),e.jsx("p",{className:"text-gray-400",children:"Elke dag de belangrijkste AI ontwikkelingen, compact samengevat. Perfect voor ondernemers die up-to-date willen blijven."})]}),e.jsxs("div",{className:"flex flex-col sm:flex-row items-center gap-4",children:[e.jsxs(de,{to:se("Nieuws"),className:"inline-flex items-center gap-2 px-6 py-3 bg-[#FAB868] text-[#0D0D0F] font-bold rounded-xl hover:bg-[#E5A04D] transition-all",children:["Bekijk AI nieuws",e.jsx($e,{className:"w-5 h-5"})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("span",{className:"text-gray-400 text-sm",children:"Bekijk AI nieuws op onze socials:"}),e.jsxs("div",{className:"flex gap-2",children:[A&&e.jsx("a",{href:A,target:"_blank",rel:"noopener noreferrer",className:"w-10 h-10 bg-[#0077B5] rounded-lg flex items-center justify-center hover:opacity-80 transition-opacity",children:e.jsx(Ws,{className:"w-5 h-5 text-white"})}),S&&e.jsx("a",{href:S,target:"_blank",rel:"noopener noreferrer",className:"w-10 h-10 bg-gradient-to-r from-[#E1306C] to-[#FD1D1D] rounded-lg flex items-center justify-center hover:opacity-80 transition-opacity",children:e.jsx(tu,{className:"w-5 h-5 text-white"})}),C&&e.jsx("a",{href:C,target:"_blank",rel:"noopener noreferrer",className:"w-10 h-10 bg-[#FF0000] rounded-lg flex items-center justify-center hover:opacity-80 transition-opacity",children:e.jsx(iu,{className:"w-5 h-5 text-white"})})]})]})]})]})})}),e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-16",children:[e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-12",children:[e.jsxs("div",{children:[e.jsx("h4",{className:"font-semibold text-lg mb-6",children:"Diensten"}),e.jsxs("ul",{className:"space-y-3",children:[e.jsx("li",{children:e.jsx(de,{to:se("AIConsultancy"),className:"text-gray-400 hover:text-white transition-colors",children:"AI Consultancy"})}),e.jsx("li",{children:e.jsx(de,{to:se("AIDevelopment"),className:"text-gray-400 hover:text-white transition-colors",children:"Software Development"})}),e.jsx("li",{children:e.jsx(de,{to:se("DevelopmentSupport"),className:"text-gray-400 hover:text-white transition-colors",children:"Development Support"})}),e.jsx("li",{children:e.jsx(de,{to:se("Training"),className:"text-gray-400 hover:text-white transition-colors",children:"AI Training"})})]})]}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-semibold text-lg mb-6",children:"Training"}),e.jsxs("ul",{className:"space-y-3",children:[e.jsx("li",{children:e.jsx(de,{to:se("Training"),className:"text-gray-400 hover:text-white transition-colors",children:"Alle Trainingen"})}),e.jsx("li",{children:e.jsx(de,{to:se("TrainingAdvisor"),className:"text-gray-400 hover:text-white transition-colors",children:"Training Advisor"})}),e.jsx("li",{children:e.jsx(de,{to:se("Training")+"?category=workshops",className:"text-gray-400 hover:text-white transition-colors",children:"Workshops"})})]})]}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-semibold text-lg mb-6",children:"Resources"}),e.jsxs("ul",{className:"space-y-3",children:[F&&e.jsx("li",{children:e.jsx(de,{to:se("Nieuws"),className:"text-gray-400 hover:text-white transition-colors",children:"AI Nieuws"})}),B&&e.jsx("li",{children:e.jsx(de,{to:se("Blog"),className:"text-gray-400 hover:text-white transition-colors",children:"Blog"})}),e.jsx("li",{children:e.jsx(de,{to:se("AIQuiz"),className:"text-gray-400 hover:text-white transition-colors",children:"AI Quiz"})}),e.jsx("li",{children:e.jsx(de,{to:se("AIImpactRapport"),className:"text-gray-400 hover:text-white transition-colors",children:"AI Impact Rapport"})}),e.jsx("li",{children:e.jsx(de,{to:se("Cases"),className:"text-gray-400 hover:text-white transition-colors",children:"Case Studies"})}),e.jsx("li",{children:e.jsx(de,{to:se("Vacatures"),className:"text-gray-400 hover:text-white transition-colors",children:"Vacatures"})}),e.jsx("li",{children:e.jsx(de,{to:se("OverOns"),className:"text-gray-400 hover:text-white transition-colors",children:"Over Ons"})})]})]}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-semibold text-lg mb-6",children:"Contact"}),e.jsxs("ul",{className:"space-y-3",children:[e.jsx("li",{children:e.jsx(de,{to:se("Contact"),className:"text-gray-400 hover:text-white transition-colors",children:"Neem contact op"})}),e.jsx("li",{children:e.jsx(de,{to:se("ContentEditor"),className:"text-gray-400 hover:text-white transition-colors",children:"48-7 - Nederland"})}),e.jsxs("li",{className:"flex items-center gap-3 text-gray-400",children:[e.jsx(yi,{className:"w-5 h-5 flex-shrink-0"}),e.jsx("a",{href:"mailto:info@48-7.nl",className:"hover:text-white transition-colors",children:"hallo@48-7.nl"})]}),e.jsxs("li",{className:"flex items-center gap-3 text-gray-400",children:[e.jsx(ry,{className:"w-5 h-5 flex-shrink-0"}),e.jsx("a",{href:"tel:+31850601487",className:"hover:text-white transition-colors",children:"+31 085-06 01 487"})]})]}),e.jsxs("div",{className:"flex items-center gap-4 mt-6",children:[A&&e.jsx("a",{href:A,target:"_blank",rel:"noopener noreferrer",className:"w-10 h-10 bg-gray-800 rounded-xl flex items-center justify-center hover:bg-blue-600 transition-colors",children:e.jsx(Ws,{className:"w-5 h-5"})}),E&&e.jsx("a",{href:E,target:"_blank",rel:"noopener noreferrer",className:"w-10 h-10 bg-gray-800 rounded-xl flex items-center justify-center hover:bg-blue-600 transition-colors",children:e.jsx(B4,{className:"w-5 h-5"})}),C&&e.jsx("a",{href:C,target:"_blank",rel:"noopener noreferrer",className:"w-10 h-10 bg-gray-800 rounded-xl flex items-center justify-center hover:bg-blue-600 transition-colors",children:e.jsx(iu,{className:"w-5 h-5"})}),S&&e.jsx("a",{href:S,target:"_blank",rel:"noopener noreferrer",className:"w-10 h-10 bg-gray-800 rounded-xl flex items-center justify-center hover:bg-blue-600 transition-colors",children:e.jsx(tu,{className:"w-5 h-5"})})]})]})]}),e.jsxs("div",{className:"mt-16 pt-8 border-t border-gray-800 flex flex-col sm:flex-row items-center justify-between gap-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("img",{src:k,alt:"48-7 AI Professionals",className:"h-8"}),e.jsx("span",{className:"text-gray-400",children:"© 2026 48-7. Alle rechten voorbehouden."})]}),e.jsxs("div",{className:"flex items-center gap-6 text-gray-400 text-sm",children:[e.jsx("a",{href:"#",className:"hover:text-white transition-colors",children:"Privacy Policy"}),e.jsx(de,{to:"/voorwaarden",className:"hover:text-white transition-colors",children:"Algemene Voorwaarden"})]})]})]})]})]})}const lne={AIConsultancy:Lq,AIDevelopment:Bq,AIImpactRapport:Kq,AIQuiz:Yq,AIQuizDocs:Xq,AdminAIQuizSubmissions:oU,AdminBlog:BK,AdminCases:zK,AdminDashboard:kG,AdminDiscoveryForms:ZG,AdminEmailTemplates:eQ,AdminEuAiActSubmissions:tQ,AdminHandleiding:nQ,AdminHome:wQ,AdminImpactScans:NQ,AdminNewsletterSubscribers:kQ,AdminNieuws:_Q,AdminOplossingen:SQ,AdminPageBuilder:AQ,AdminPageEditor:CQ,AdminPrompts:EQ,AdminReviews:TQ,AdminSEO:OQ,AdminSettings:MQ,AdminTeam:LQ,AdminTestScans:BQ,AdminTrainingen:zQ,AdminVacatures:qQ,Blog:UQ,BlogDetail:cee,Cases:uee,ClaudeCowork:bee,ClaudeCoworkAdvies:wee,ClaudeCoworkSkillsConnectors:kee,ClaudeCoworkTraining:See,Contact:Aee,ContentEditor:Eee,ContentManagement:Tee,DevelopmentSupport:Iee,Diensten:Ree,DiscoveryForm:zee,EuAiActChecker:qee,EuAiActCheckerDocs:Vee,Home:nte,ImpactRapport:rte,ImpactReportDocs:ite,KoffieRoulette:ote,NewsDetail:cte,Nieuws:ute,OplossingDetail:dte,Oplossingen:hte,OverOns:fte,SearchResults:Zte,Training:nne,TrainingAdvisor:rne,TrainingDetail:ine,VacatureDetail:sne,Vacatures:ane},tO={mainPage:"Home",Pages:lne,Layout:one};function cne(){const t=eo(),{isAuthenticated:n}=hC(),{Pages:r,mainPage:i}=tO,s=i;return D.useEffect(()=>{const a=t.pathname;let o;if(a==="/"||a==="")o=s;else{const c=a.replace(/^\//,"").split("/")[0];o=Object.keys(r).find(f=>f.toLowerCase()===c.toLowerCase())||null}n&&o&&ce.appLogs.logUserInApp(o).catch(()=>{})},[t,n,r,s]),null}function une({}){var s;const n=eo().pathname.substring(1),{data:r,isFetched:i}=Fe({queryKey:["user"],queryFn:async()=>{try{return{user:await ce.auth.me(),isAuthenticated:!0}}catch{return{user:null,isAuthenticated:!1}}}});return e.jsx("div",{className:"min-h-screen flex items-center justify-center p-6 bg-slate-50",children:e.jsx("div",{className:"max-w-md w-full",children:e.jsxs("div",{className:"text-center space-y-6",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("h1",{className:"text-7xl font-light text-slate-300",children:"404"}),e.jsx("div",{className:"h-0.5 w-16 bg-slate-200 mx-auto"})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsx("h2",{className:"text-2xl font-medium text-slate-800",children:"Page Not Found"}),e.jsxs("p",{className:"text-slate-600 leading-relaxed",children:["The page ",e.jsxs("span",{className:"font-medium text-slate-700",children:['"',n,'"']})," could not be found in this application."]})]}),i&&r.isAuthenticated&&((s=r.user)==null?void 0:s.role)==="admin"&&e.jsx("div",{className:"mt-8 p-4 bg-slate-100 rounded-lg border border-slate-200",children:e.jsxs("div",{className:"flex items-start space-x-3",children:[e.jsx("div",{className:"flex-shrink-0 w-5 h-5 rounded-full bg-orange-100 flex items-center justify-center mt-0.5",children:e.jsx("div",{className:"w-2 h-2 rounded-full bg-orange-400"})}),e.jsxs("div",{className:"text-left space-y-1",children:[e.jsx("p",{className:"text-sm font-medium text-slate-700",children:"Admin Note"}),e.jsx("p",{className:"text-sm text-slate-600 leading-relaxed",children:"This could mean that the AI hasn't implemented this page yet. Ask it to implement it in the chat."})]})]})}),e.jsx("div",{className:"pt-6",children:e.jsxs("button",{onClick:()=>window.location.href="/",className:"inline-flex items-center px-4 py-2 text-sm font-medium text-slate-700 bg-white border border-slate-200 rounded-lg hover:bg-slate-50 hover:border-slate-300 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-slate-500",children:[e.jsx("svg",{className:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})}),"Go Home"]})})]})})})}const dne=()=>e.jsx("div",{className:"flex flex-col items-center justify-center min-h-screen bg-gradient-to-b from-white to-slate-50",children:e.jsx("div",{className:"max-w-md w-full p-8 bg-white rounded-lg shadow-lg border border-slate-100",children:e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 mb-6 rounded-full bg-orange-100",children:e.jsx("svg",{className:"w-8 h-8 text-orange-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),e.jsx("h1",{className:"text-3xl font-bold text-slate-900 mb-4",children:"Access Restricted"}),e.jsx("p",{className:"text-slate-600 mb-8",children:"You are not registered to use this application. Please contact the app administrator to request access."}),e.jsxs("div",{className:"p-4 bg-slate-50 rounded-md text-sm text-slate-600",children:[e.jsx("p",{children:"If you believe this is an error, you can:"}),e.jsxs("ul",{className:"list-disc list-inside mt-2 space-y-1",children:[e.jsx("li",{children:"Verify you are logged in with the correct account"}),e.jsx("li",{children:"Contact the app administrator for access"}),e.jsx("li",{children:"Try logging out and back in again"})]})]})]})})}),hne=`# Algemene Voorwaarden — 48-7 AI Professionals
*Laatst bijgewerkt: maart 2026*
---
## 1. Definities
**Overeenkomst:** de overeenkomst gesloten tussen 48-7 en de Opdrachtgever met betrekking tot de levering van Diensten.
**Diensten:** alle diensten verleend door 48-7, waaronder maar niet beperkt tot SaaS-producten (Software), Consultancy, Trainingen, Workshops, AI-demo's, Webinars, Proof of Concepts en (maatwerk) Development.
**Software:** alle door 48-7 aangeboden softwareproducten, platforms en digitale tools die via het internet beschikbaar worden gesteld.
**Werken:** alle door 48-7 te ontwikkelen, configureren en/of aan te passen producten, waaronder websites, applicaties, software, documentatie, adviezen, rapporten, analyses, ontwerpen, teksten, AI-modellen, prompts, workflows, afbeeldingen, audiovisueel materiaal en huisstijlen.
**48-7:** 48-7 is een handelsnaam van 48-7 B.V., gevestigd te Groningen, ingeschreven bij de Kamer van Koophandel in Nederland onder nummer 85131938, en de aanbieder van de Diensten.
**Opdrachtgever:** de rechtspersoon of natuurlijke persoon handelend in de uitoefening van beroep of bedrijf die een Overeenkomst aangaat met 48-7.
**Gebruiker:** iedere natuurlijke persoon die namens of ten behoeve van de Opdrachtgever gebruik maakt van de Software of de resultaten van de Diensten.
**Betrokken Personen:** alle medewerkers, freelancers, zelfstandigen zonder personeel (zzp'ers), uitzendkrachten, gedetacheerden en overige door 48-7 ingeschakelde derden die betrokken zijn bij de uitvoering van de Overeenkomst.
**Partij/Partijen:** 48-7 en/of de Opdrachtgever.
**AV:** de Algemene Voorwaarden zoals opgenomen in dit document.
---
## 2. Toepasselijkheid
1. Deze AV zijn uitsluitend van toepassing op overeenkomsten met rechtspersonen en/of natuurlijke personen handelend in de uitoefening van beroep of bedrijf (B2B). Deze AV zijn niet bedoeld voor consumenten.
2. Op alle aanbiedingen, offertes en Overeenkomsten van 48-7 zijn uitsluitend deze AV van toepassing. De Opdrachtgever met wie eenmaal op basis van deze AV is gecontracteerd, stemt in met de toepasselijkheid ervan op toekomstige en/of vervolgopdrachten met 48-7.
3. De omvang van de Diensten wordt nader omschreven in een afzonderlijke overeenkomst of offerte.
4. 48-7 wijst uitdrukkelijk eventuele algemene voorwaarden of inkoopvoorwaarden van de Opdrachtgever af, alsmede van deze AV afwijkende bepalingen, tenzij deze uitdrukkelijk schriftelijk door 48-7 zijn aanvaard.
5. Indien enige bepaling of een deel daarvan in deze AV om welke reden dan ook niet of slechts gedeeltelijk bindend is, laat dit de geldigheid van de overige bepalingen onverlet. In dat geval is 48-7 gerechtigd een vervangende bepaling toe te passen die rechtens toelaatbaar is en zo dicht mogelijk aansluit bij de strekking en inhoud van de nietige of niet-bindende bepaling.
6. Deze AV strekken mede ten behoeve van door 48-7 ten behoeve van de Overeenkomst of de uitvoering daarvan ingeschakelde derden.
---
## 3. Aanbiedingen en Totstandkoming van de Overeenkomst
1. Alle door 48-7 gedane aanbiedingen zijn vrijblijvend en geldig gedurende 14 dagen na verzending, tenzij uitdrukkelijk anders vermeld. Aanbiedingen van 48-7 mogen niet zonder toestemming van 48-7 worden verveelvoudigd of aan derden openbaar worden gemaakt.
2. Tenzij uitdrukkelijk anders vermeld, is documentatie verstrekt door of namens 48-7 bij de aanbieding of na sluiting van de Overeenkomst, waaronder informatie en adviezen, vrijblijvend.
3. Overeenkomsten alsmede wijzigingen daarvan komen tot stand door schriftelijke of elektronische bevestiging of opdrachtbevestiging door 48-7. Voorts komt een Overeenkomst tot stand doordat 48-7 een door de Opdrachtgever verstrekte opdracht geheel of gedeeltelijk uitvoert zonder voorafgaande bevestiging.
4. Afspraken met of toezeggingen door medewerkers of Betrokken Personen van 48-7 binden 48-7 niet, tenzij deze uitdrukkelijk door 48-7 zijn bevestigd. Een mondelinge aanbieding en/of toezegging van 48-7 of een van haar Betrokken Personen is eveneens niet bindend, tenzij deze uitdrukkelijk schriftelijk door 48-7 is bevestigd.
5. 48-7 is te allen tijde gerechtigd opdrachten en/of orders te weigeren of aan de levering en/of uitvoering nadere voorwaarden te verbinden.
---
## 4. Verplichtingen van 48-7
### 4.1 Software (SaaS)
1. 48-7 heeft een inspanningsverplichting om de Software via het internet beschikbaar te stellen en naar behoren te laten functioneren, maar kan en zal nimmer garanderen dat de Software te allen tijde, ononderbroken en zonder storingen beschikbaar is.
2. 48-7 is gerechtigd de Software of onderdelen daarvan tijdelijk buiten gebruik te stellen voor onderhoud, aanpassing of verbetering. 48-7 zal er naar streven dergelijke buitengebruikstellingen zoveel mogelijk buiten kantooruren te laten plaatsvinden en zal de Opdrachtgever hiervan zo mogelijk tijdig op de hoogte stellen, maar kan dit niet garanderen en is nimmer aansprakelijk voor schade in verband met dergelijke buitengebruikstelling.
3. 48-7 zal de Software up-to-date houden. 48-7 kan hierbij afhankelijk zijn van haar toeleverancier(s). 48-7 is gerechtigd bepaalde updates of patches niet te installeren indien dit naar haar oordeel niet bevorderlijk is voor de correcte werking van de Software of niet in het belang van de Opdrachtgever is.
4. 48-7 zal zo spoedig mogelijk reageren op verzoeken om ondersteuning. Een reactie wordt gedefinieerd als een ontvangstbevestiging met inhoudelijke terugkoppeling en een aankondiging van de te ondernemen actie en de oplostermijn (indien van toepassing).
5. Een oplossing kan betrekking hebben op een workaround: een oplossing die het probleem niet permanent verhelpt, maar de impact ervan beperkt of een route om het probleem heen biedt. 48-7 zal steeds streven naar een zo spoedig mogelijke workaround, gevolgd door een definitieve oplossing zodra deze gereed is.
6. Door 48-7 genoemde termijnen voor het reageren of bieden van een oplossing zijn streeftermijnen en uitsluitend indicatief. Er bestaat geen aansprakelijkheid voor schade als gevolg van het niet halen van een streeftermijn.
7. 48-7 zal tijdelijke back-ups maken van gegevens opgeslagen door middel van de Software ten behoeve van noodvoorzieningen. Op verzoek en tegen betaling van een redelijke vergoeding zal 48-7 een kopie van deze gegevens beschikbaar stellen voor gebruik in andere systemen, voor zover dit technisch mogelijk is.
### 4.2 Consultancy, Training & Development
1. 48-7 zal de Consultancy, Trainingen en Development-opdrachten naar beste inzicht en vermogen uitvoeren overeenkomstig de eisen van goed vakmanschap.
2. Door 48-7 opgegeven streeftijden voor de levering en/of uitvoering van Diensten zijn steeds indicatief en nimmer fatale termijnen, tenzij uitdrukkelijk schriftelijk anders is overeengekomen.
3. Indien 48-7 enige streektijd overschrijdt, is 48-7 pas in verzuim na schriftelijke ingebrekestelling.
4. Indien een goede uitvoering van de Diensten dit vereist, heeft 48-7 het recht bepaalde werkzaamheden te laten verrichten door derden, waaronder freelancers en zzp'ers. 48-7 is en blijft naar Opdrachtgever toe de verantwoordelijke.
5. 48-7 geeft geen garanties ten aanzien van functioneren bij gebruik van niet-courante of verouderde besturingssystemen, browsers, plugins, scripts, overige software en hardware, tenzij in de offerte anders is vermeld.
### 4.3 Meerwerk
1. Alle wijzigingen in de Diensten, hetzij op verzoek van Opdrachtgever, hetzij als gevolg van het feit dat door welke omstandigheden dan ook een andere uitvoering noodzakelijk is, worden wanneer daaraan extra kosten verbonden zijn als meerwerk beschouwd en voor zover daaruit minder kosten bestaan als minderwerk. Deze worden overeenkomstig gefactureerd aan Opdrachtgever.
2. Vooraf zal worden aangegeven dat sprake is van meerwerk. Verzocht meerwerk wordt verricht tegen het gebruikelijke uurtarief, tenzij anders overeengekomen.
3. Opdrachtgever begrijpt dat door wijziging van de Overeenkomst en/of het ontstaan van meerwerk het overeengekomen of verwachte tijdstip van voltooiing van alle in de Overeenkomst gemaakte afspraken kan worden beïnvloed.
---
## 5. Verplichtingen en Verantwoordelijkheden van de Opdrachtgever
1. De Opdrachtgever erkent dat hij medeverantwoordelijk is voor een succesvolle uitvoering van de Overeenkomst.
2. Op verzoek van 48-7 zal de Opdrachtgever de door 48-7 gewenste medewerking verlenen en/of informatie tijdig en in alle redelijkheid verstrekken. In het bijzonder draagt Opdrachtgever ervoor zorg dat alle gegevens, waarvan 48-7 aangeeft dat deze noodzakelijk zijn of waarvan de Opdrachtgever redelijkerwijs behoort te begrijpen dat deze noodzakelijk zijn voor het uitvoeren van de Diensten, tijdig aan 48-7 worden verstrekt.
3. De Opdrachtgever zal 48-7 toegang geven tot alle plaatsen, diensten en accounts onder haar beheer (zoals webhosting accounts, API-sleutels, CMS-systemen) die 48-7 redelijkerwijs nodig heeft om de Diensten te leveren.
4. Het is de Opdrachtgever niet toegestaan om:
- a. derden gebruik te laten maken van de Software, tenzij het door Opdrachtgever aangewezen Gebruikers betreft;
- b. de Software te gebruiken voor handelingen die in strijd zijn met Nederlandse of andere toepasselijke wet- en regelgeving, waaronder het opslaan of verspreiden van lasterlijke, smadelijke of racistische informatie;
- c. de Software zodanig te gebruiken dat dit overlast of hinder veroorzaakt voor andere gebruikers;
- d. storingen en/of schade te veroorzaken in de Software;
- e. de Software op strafbare of onrechtmatige wijze te gebruiken;
- f. intellectuele eigendomsrechten van 48-7 en/of derden te schenden;
- g. gegevens, informatie en/of knowhow van 48-7 openbaar te maken, te verveelvoudigen en/of anderszins met derden te delen.
5. De Opdrachtgever garandeert dat zijn gebruik van de Software en/of de resultaten van de Diensten voldoet aan alle toepasselijke wettelijke vereisten, waaronder de verplichtingen voor 'deployers' onder de EU AI Act (waar van toepassing), en verbindt zich ertoe om passend menselijk toezicht, monitoring en noodzakelijke risicobeoordeling in stand te houden alvorens te vertrouwen op AI-suggesties van de Software.
6. Indien 48-7 constateert of redelijkerwijs vermoedt dat de Opdrachtgever zijn verplichtingen op grond van de Overeenkomst of deze AV niet nakomt, is 48-7 gerechtigd het gebruik van de Software door de Opdrachtgever tot nader order te blokkeren en de uitvoering van de Overeenkomst op te schorten, dan wel andere vereiste maatregelen te treffen, zonder tot enige schadevergoeding gehouden te zijn. De Opdrachtgever blijft in dat geval uitdrukkelijk verplicht aan alle contractuele en openstaande verplichtingen te voldoen.
7. De Opdrachtgever is verplicht zijn account te beveiligen tegen ongeautoriseerde toegang door derden door middel van een gebruikersnaam en wachtwoord. 48-7 mag te allen tijde aannemen dat alles wat na aanmelding met de gebruikersnaam en het wachtwoord van het account van de Opdrachtgever plaatsvindt, geschiedt onder leiding en toezicht van de Opdrachtgever.
8. De Opdrachtgever is gehouden 48-7 te informeren over ieder vermoeden van onrechtmatig gebruik van de Software.
9. Indien een Dienst vereist dat Opdrachtgever bronmaterialen aan 48-7 levert, staat Opdrachtgever er te allen tijde voor in dat hij beschikt over alle licenties die noodzakelijk zijn voor de verstrekking aan en het bedoelde gebruik door 48-7. Opdrachtgever vrijwaart 48-7 van claims van derden ten aanzien van schending van deze rechten.
---
## 6. Oplevering en Aanvaarding
1. 48-7 zal te ontwikkelen of aan te passen Werken of gedeelten daarvan opleveren wanneer deze in haar professionele opinie voldoen aan de specificaties of geschikt zijn voor gebruik.
2. Opdrachtgever dient vervolgens binnen 14 dagen na oplevering het opgeleverde te evalueren en goed of af te keuren. Indien Opdrachtgever niet binnen deze periode het opgeleverde afkeurt, wordt het opgeleverde geacht te zijn aanvaard.
3. Indien een Werk in fasen wordt opgeleverd, dient Opdrachtgever na oplevering van elke fase de goed- of afkeuring van het deel van het Werk van die fase te geven op de wijze zoals in het vorige lid bepaald. Opdrachtgever mag een goed- of afkeuring in een latere fase niet baseren op aspecten die in een eerdere fase goedgekeurd zijn.
4. Indien Opdrachtgever het opgeleverde geheel of gedeeltelijk afkeurt, zal 48-7 zich inspannen de reden van afkeuring zo snel mogelijk weg te nemen. Dit kan 48-7 doen door het resultaat te reviseren of gemotiveerd aan te geven waarom de reden niet opgaat. Opdrachtgever heeft vervolgens een periode van 14 dagen om de revisie of motivatie goed of af te keuren.
5. Indien Opdrachtgever na de eerste revisie of motivatie het opgeleverde geheel of gedeeltelijk heeft afgekeurd, zal er naar oordeel van 48-7 een redelijk aantal revisierondes volgen.
6. Indien een partij aangeeft verdere revisies niet (meer) zinvol te achten, worden beide partijen gerechtigd de overeenkomst op te zeggen voor wat betreft het afgekeurde. In dat geval zal Opdrachtgever de daadwerkelijk door 48-7 gemaakte uren vergoeden, met als maximum het voor het afgekeurde geoffreerde bedrag. Opdrachtgever wordt daarmee echter niet gerechtigd het afgekeurde te gebruiken op welke wijze dan ook.
7. Na aanvaarding van het opgeleverde vervalt iedere aansprakelijkheid voor gebreken in het opgeleverde, tenzij 48-7 het gebrek kende of had moeten kennen ten tijde van aanvaarding. In ieder geval vervalt iedere aansprakelijkheid voor gebreken in een Werk na verloop van een jaar na beëindiging van de Overeenkomst om welke reden dan ook.
---
## 7. Verbod op Benadering van Betrokken Personen
1. Gedurende de looptijd van de Overeenkomst en gedurende een periode van één (1) jaar na beëindiging daarvan, is het de Opdrachtgever niet toegestaan Betrokken Personen van 48-7 — waaronder medewerkers, freelancers, zzp'ers, uitzendkrachten, gedetacheerden en overige door 48-7 ingeschakelde derden die betrokken zijn of waren bij de uitvoering van de Overeenkomst — direct of indirect, in dienst te nemen, in te huren, opdrachten aan te bieden of met hen te onderhandelen over werkzaamheden die gelijk of vergelijkbaar zijn aan de werkzaamheden die zij voor 48-7 in het kader van de Overeenkomst verrichten of hebben verricht, anders dan met voorafgaande schriftelijke toestemming van 48-7.
2. Het verbod als bedoeld in het vorige lid geldt eveneens voor het benaderen van Betrokken Personen voor het verrichten van werkzaamheden ten behoeve van aan de Opdrachtgever gelieerde ondernemingen of derden.
3. Bij iedere overtreding van het in dit artikel bedoelde verbod is de Opdrachtgever aan 48-7 een onmiddellijk opeisbare boete verschuldigd van €50.000 per Betrokken Persoon per overtreding, onverminderd het recht van 48-7 op vergoeding van de daadwerkelijk geleden schade indien deze het boetebedrag overstijgt.
---
## 8. Prijzen, Facturering en Betaling
1. Alle prijzen zijn in euro's en exclusief btw en andere van overheidswege opgelegde heffingen, tenzij anders overeengekomen met Opdrachtgever.
2. 48-7 is gerechtigd prijzen, prijsmodellen en overige vergoedingen eenmaal per jaar met maximaal 5% te verhogen ter compensatie van ontwikkelingen zoals inflatie en andere prijsstijgingen, zonder de Opdrachtgever hiervan uitdrukkelijk te informeren.
3. Indien en voor zover de prijsverhoging binnen het in artikel 8.2 gestelde percentage blijft, heeft de Opdrachtgever niet de mogelijkheid de Overeenkomst voortijdig te beëindigen.
4. 48-7 is tevens gerechtigd prijzen, prijsmodellen en overige vergoedingen om andere redenen aan te passen, mits deze aanpassingen aantoonbaar gekoppeld zijn aan en proportioneel zijn ten opzichte van wijzigingen in objectieve, verifieerbare externe kostenfactoren die specifiek zijn voor de Dienstverlening, zoals stijgingen in cloudservicekosten, noodzakelijke licentiekosten van derden of salarisindexaties van personeel. Indien de prijsverhoging niet binnen het in artikel 8.2 gestelde percentage valt, of meer dan eenmaal per jaar plaatsvindt, zal 48-7 de Opdrachtgever ten minste twee (2) kalendermaanden voordat de wijziging ingaat per e-mail en/of in-app notificatie informeren.
5. Indien de Opdrachtgever de wijziging als bedoeld in artikel 8.4 niet wenst te accepteren, kan hij de Overeenkomst beëindigen met inachtneming van artikel 9. Gebruik van de Diensten van 48-7 na de datum van inwerkingtreding wordt beschouwd als aanvaarding van de gewijzigde voorwaarden.
6. De periodieke vergoeding voor de Software en het gebruik daarvan is steeds vooraf verschuldigd over de in de Overeenkomst overeengekomen termijn van één maand of één jaar. De periodieke vergoeding wordt elektronisch door 48-7 gefactureerd en kan, indien gewenst, door 48-7 per automatische incasso worden geïncasseerd, tenzij anders is overeengekomen. De periodieke vergoeding kan fluctueren indien de samenstelling van de Software en/of het aantal Gebruikers wijzigt.
7. Consultancy-, Training- en Development-opdrachten worden gefactureerd op basis van de in de offerte of Overeenkomst overeengekomen tarieven en voorwaarden. Facturatie geschiedt maandelijks achteraf op basis van de daadwerkelijk gemaakte uren, tenzij anders is overeengekomen in aanvullende projectspecifieke voorwaarden.
8. Betalingen anders dan via automatische incasso dienen te geschieden binnen 14 dagen na factuurdatum, tenzij schriftelijk anders is overeengekomen. Indien Opdrachtgever niet tijdig betaalt, is hij vanaf 14 dagen na de datum van de factuur van rechtswege in verzuim zonder dat hiervoor ingebrekestelling is vereist. Over het openstaande factuurbedrag wordt de wettelijke handelsrente verschuldigd.
9. Alle gerechtelijke en buitengerechtelijke kosten die verband houden met de inning van enige vordering op de Opdrachtgever komen voor diens rekening, voor zover wettelijk toegestaan. De buitengerechtelijke kosten bedragen ten minste 15% van het factuurbedrag of de factuurbedragen, met een minimum van €500, een en ander voor zover wettelijk toegestaan.
10. Zonder uitdrukkelijke schriftelijke toestemming van 48-7 is het de Opdrachtgever niet toegestaan zijn betalingsverplichtingen jegens 48-7 op te schorten en/of te verrekenen met een vordering van de Opdrachtgever op 48-7, om welke reden dan ook.
11. Betalingen door of namens de Opdrachtgever strekken achtereenvolgens ter voldoening van de verschuldigde buitengerechtelijke incassokosten, de gerechtelijke kosten, de verschuldigde rente en vervolgens de openstaande hoofdsommen in volgorde van ouderdom, ongeacht andersluidende instructies van de Opdrachtgever.
12. De vordering tot betaling is direct opeisbaar ingeval Opdrachtgever in staat van faillissement wordt verklaard, surseance van betaling aanvraagt, dan wel algeheel beslag op vermogensbestanddelen van Opdrachtgever wordt gelegd, Opdrachtgever overlijdt en ook indien deze in liquidatie treedt of wordt ontbonden.
---
## 9. Looptijd en Beëindiging
1. De Overeenkomst wordt aangegaan voor de looptijd zoals vastgelegd in de Overeenkomst (bijv. één jaar, twee jaar of onbepaalde tijd). De Overeenkomst kan tussentijds slechts worden opgezegd zoals in deze AV bepaald, of met goedvinden van beide Partijen.
2. Indien bepaalde Diensten naar hun strekking voor onbepaalde tijd worden geleverd, wordt de Overeenkomst voor deze Diensten geacht te zijn aangegaan voor perioden van steeds zes maanden. Beide Partijen kunnen de Overeenkomst steeds tegen het einde van deze periode schriftelijk opzeggen met een opzegtermijn van twee maanden.
3. Tenzij anders overeengekomen, kan de Overeenkomst voor bepaalde tijd door beide Partijen schriftelijk worden opgezegd tegen het einde van de dan geldende looptijd, met inachtneming van een opzegtermijn van negentig (90) dagen.
4. Opdrachtgever kan een Dienst strekkende tot het ontwikkelen of aanpassen van Werken tussentijds opzeggen tegen betaling van een afkoopsom gelijk aan de gemaakte uren tegen binnen 48-7 geldend uurtarief.
5. Na beëindiging van de Overeenkomst zal 48-7 de Opdrachtgever gedurende een periode van dertig (30) dagen de mogelijkheid bieden om gegevens opgeslagen in de Software te exporteren of op te vragen, in een gangbaar machineleesbaar formaat. Na afloop van deze termijn is 48-7 gerechtigd alle gegevens van de Opdrachtgever te verwijderen en alle accounts van Opdrachtgever op te heffen. 48-7 is niet verplicht Opdrachtgever een kopie van deze gegevens te verschaffen na het verstrijken van deze termijn.
6. Bij ontbinding of beëindiging als bedoeld in de voorgaande artikelen blijven de volgende verplichtingen van de Opdrachtgever jegens 48-7 van kracht:
- openstaande vorderingen / betalingen;
- aansprakelijkheid;
- geheimhouding;
- intellectuele eigendom.
---
## 10. Opschorting en Ontbinding
1. In de volgende gevallen is 48-7 gerechtigd de uitvoering van de Overeenkomst en/of het recht op gebruik van de Software onmiddellijk op te schorten of de Overeenkomst geheel of gedeeltelijk zonder ingebrekestelling en zonder rechterlijke tussenkomst te ontbinden, zonder tot enige schadevergoeding gehouden te zijn en onverminderd haar verdere rechten:
- a) indien de Opdrachtgever enige betalings- of andere verplichting uit de met 48-7 gesloten Overeenkomst of een daarmee samenhangende overeenkomst niet, niet behoorlijk of niet tijdig nakomt;
- b) in geval van faillissement, surseance van betaling, stillegging, liquidatie of gehele of gedeeltelijke overdracht – al dan niet tot zekerheid – van het bedrijf van de Opdrachtgever, waaronder begrepen de overdracht van een aanzienlijk deel van diens vorderingen.
2. In elk van de in het vorige lid bedoelde gevallen zijn alle vorderingen van 48-7 op de Opdrachtgever onmiddellijk en volledig opeisbaar.
3. Verplichtingen die naar hun aard bestemd zijn om ook na beëindiging of ontbinding van de Overeenkomst voort te duren, blijven onverminderd van kracht.
---
## 11. Overmacht
1. In geval van overmacht is 48-7 gerechtigd – naar eigen keuze – de uitvoering van de Overeenkomst voor de duur van de overmacht onmiddellijk op te schorten of de Overeenkomst geheel of gedeeltelijk zonder rechterlijke tussenkomst te ontbinden, zonder tot enige schadevergoeding gehouden te zijn.
2. Onder overmacht wordt verstaan: iedere omstandigheid buiten de macht van 48-7 – ook indien deze ten tijde van het sluiten van de Overeenkomst reeds voorzienbaar was – die de nakoming van de Overeenkomst blijvend of tijdelijk verhindert of bezwaarlijk maakt, alsmede, voor zover daaronder niet reeds begrepen, storingen of uitval van het internet, de telecommunicatie-infrastructuur, een (D)DoS-aanval, stroomuitval, oorlog of oorlogsdreiging, stakingen, epidemieën, personeelstekort en andere soortgelijke gebeurtenissen en/of ernstige verstoringen in het bedrijf van 48-7 of het bedrijf van een van haar toeleveranciers, transportproblemen en/of de annulering of te late uitvoering door derden van door 48-7 gesloten inkoop- of andere overeenkomsten. Dit geldt ongeacht of de omstandigheden die de overmacht veroorzaken zich voordoen in Nederland of in een ander land.
3. Wanneer de overmachtsituatie langer dan negentig (90) dagen heeft geduurd, zijn beide Partijen gerechtigd de Overeenkomst te ontbinden, zonder enige verplichting tot schadevergoeding.
---
## 12. Aansprakelijkheid
1. 48-7 kan niet aansprakelijk worden gehouden voor schade als gevolg van onjuiste en/of onvolledige medewerking van en/of door of namens de Opdrachtgever verstrekte informatie.
2. De Software kan suggesties doen voor c.q. worden gebruikt bij de verwerking van documenten en andere gegevens. De verantwoordelijkheid voor de juistheid van alles wat door de Opdrachtgever met de Software wordt verwerkt, waaronder documenten en gegevens, berust te allen tijde bij de Opdrachtgever en diens Gebruikers. AI-gegenereerde output dient altijd door de Opdrachtgever te worden gecontroleerd en gevalideerd alvorens hierop te vertrouwen.
3. 48-7 is slechts aansprakelijk tegenover Opdrachtgever in het geval van een toerekenbare tekortkoming in de nakoming van de Overeenkomst en uitsluitend voor vervangende schadevergoeding, dat wil zeggen vergoeding van de waarde van de achterwege gebleven prestatie. Onverminderd de elders in de Overeenkomst en deze AV overeengekomen beperkingen, is de aansprakelijkheid van 48-7 beperkt tot vergoeding van uitsluitend de directe schade, tot maximaal het totaalbedrag dat de Opdrachtgever in de twaalf (12) maanden voorafgaand aan de schadeveroorzakende gebeurtenis aan 48-7 heeft betaald, met een maximum van €50.000 per jaar. Deze aansprakelijkheidsbeperkingen gelden niet indien de schade het gevolg is van opzet of grove nalatigheid van 48-7 of haar leidinggevenden.
4. De aansprakelijkheid van 48-7 wegens toerekenbare tekortkoming in de nakoming van de Overeenkomst ontstaat slechts indien Opdrachtgever 48-7 direct en deugdelijk schriftelijk in gebreke stelt, waarbij een redelijke termijn gesteld wordt om de tekortkoming weg te nemen, en 48-7 ook na die termijn toerekenbaar in de nakoming van zijn verplichtingen tekort blijft schieten. De ingebrekestelling dient een zo gedetailleerd mogelijke omschrijving van de tekortkoming te bevatten, zodat 48-7 in staat is adequaat te reageren.
5. 48-7 kan nimmer aansprakelijk worden gehouden voor indirecte schade of verlies, waaronder gevolgschade, gederfde winst, gemiste besparingen, immateriële schade, bedrijfsstagnatie of zuiver financieel verlies, waaronder maar niet beperkt tot verlies of beschadiging van data, kosten van dataherstel of -reconstructie, verlies van productiecapaciteit, verlies van goodwill of reputatieschade, en eventuele daaruit voortvloeiende door derden aan de Opdrachtgever opgelegde boetes of sancties.
6. De Opdrachtgever vrijwaart 48-7 tegen alle aanspraken van derden, uit welken hoofde dan ook, die verband houden met de Overeenkomst of de uitvoering daarvan door 48-7 voor de Opdrachtgever.
7. Door het verloop van twaalf maanden na het ontstaan van de vordering tot schadevergoeding vervalt de vordering van Opdrachtgever jegens 48-7, tenzij Partijen een andere termijn zijn overeengekomen.
8. De aansprakelijkheidsbeperking op grond van deze AV strekt zich tevens uit tot door 48-7 ingeschakelde derden.
---
## 13. Intellectuele Eigendom
1. Alle intellectuele eigendomsrechten op de Software, inclusief maar niet beperkt tot broncode, documentatie, AI-modellen, algoritmen, trainingsdata en -methodologieën, berusten uitsluitend bij 48-7 of haar licentiegevers.
2. De Opdrachtgever verkrijgt uitsluitend een niet-exclusief, niet-overdraagbaar gebruiksrecht op de Software voor de duur van de Overeenkomst.
3. 48-7 gebruikt voor haar werkzaamheden open source software waarvan de rechten bij derden liggen. Voor door 48-7 zelf gemaakte Werken geldt dat de rechten bij 48-7 liggen, tenzij er met Opdrachtgever schriftelijk afgesproken wordt dat de rechten worden overgedragen. Daarbij geldt dat rechten op Werken die op maat voor Opdrachtgever gemaakt zijn, in beginsel na aanvaarding van de Overeenkomst aan Opdrachtgever toekomen.
4. Indien de rechten op Werken worden overgedragen van 48-7 naar Opdrachtgever, behoudt 48-7 een onbeperkte en eeuwigdurende licentie om het Werk en onderdelen daarvan te gebruiken in de bedrijfsvoering en uit te leveren aan anderen. Dit doet niets af aan de plicht van 48-7 om vertrouwelijke informatie van Opdrachtgever vertrouwelijk te behandelen.
5. Ieder gebruik, verveelvoudiging of openbaarmaking van de materialen dat buiten de strekking van de Overeenkomst of verleende gebruiksrechten valt, wordt beschouwd als een schending van het auteursrecht.
6. 48-7 zal de bronbestanden (zoals, maar niet beperkt tot, broncode, configuratiebestanden, prompt-templates) van geleverde Werken aan Opdrachtgever ter beschikking stellen. 48-7 zal bronbestanden van de Werken bewaren zolang 48-7 Diensten voor Opdrachtgever verricht, of het aannemelijk is dat 48-7 Diensten voor Opdrachtgever zal verrichten. 48-7 is gerechtigd na deze periode de bronbestanden te verwijderen.
---
## 14. Verwerking van Persoonsgegevens
1. Indien een Opdrachtgever persoonsgegevens invoert in de Software, zijn zowel de Opdrachtgever als 48-7 onderworpen aan de Algemene Verordening Gegevensbescherming (AVG), waarbij de Opdrachtgever verwerkingsverantwoordelijke is en 48-7 verwerker. De Opdrachtgever vrijwaart 48-7 tegen alle aanspraken van derden/betrokkenen op grond van de AVG, waaronder maar niet beperkt tot bestuurlijke boetes of sancties opgelegd door een toezichthouder, voortvloeiend uit niet-naleving door de Opdrachtgever als verwerkingsverantwoordelijke.
2. Krachtens de AVG dienen de verwerkingsverantwoordelijke en de verwerker een verwerkersovereenkomst te sluiten met betrekking tot de verwerking van persoonsgegevens. De verwerkersovereenkomst tussen 48-7 en de Opdrachtgever wordt in een afzonderlijk document vastgelegd.
3. 48-7 zorgt voor een passend beveiligingsniveau dat in verhouding staat tot de risico's die met de verwerking en de aard van de te beschermen persoonsgegevens zijn gemoeid, doch uitsluitend voor zover deze zich in de Diensten of infrastructuur van 48-7 bevinden.
4. 48-7 garandeert dat eenieder die onder haar gezag handelt en toegang heeft tot persoonsgegevens waarvoor de Opdrachtgever verantwoordelijk is, deze uitsluitend verwerkt in opdracht van de Opdrachtgever.
5. 48-7 maakt gebruik van subverwerkers ten behoeve van de levering van de Diensten, waaronder cloudinfrastructuur en AI-dienstverleners. Een actueel overzicht van subverwerkers wordt opgenomen in de verwerkersovereenkomst. 48-7 zal de Opdrachtgever informeren bij materiële wijzigingen in het subverwerkerregister.
6. 48-7 zal de Opdrachtgever onverwijld, doch uiterlijk binnen 48 uur na constatering, informeren over een inbreuk in verband met persoonsgegevens (datalek) die betrekking heeft op persoonsgegevens van de Opdrachtgever. 48-7 zal redelijke medewerking verlenen aan het onderzoek naar en de afhandeling van het datalek.
7. De Opdrachtgever garandeert dat hij uitsluitend op rechtmatige wijze persoonsgegevens invoert in de Diensten van 48-7 en draagt hiervoor de volledige verantwoordelijkheid.
8. Indien de Opdrachtgever op grond van een wettelijke verplichting, bijvoorbeeld onder de AVG, gehouden is gegevens opgeslagen in de Software van 48-7 te wijzigen, te verwijderen of over te dragen, zal 48-7 hierbij assisteren voor zover mogelijk. De kosten van eventuele werkzaamheden kunnen apart in rekening worden gebracht op basis van het geldende uurtarief.
---
## 15. Geheimhouding
1. Partijen zullen informatie die zij voor, tijdens of na de uitvoering van de Overeenkomst aan elkaar verstrekken, vertrouwelijk behandelen wanneer deze informatie is gemarkeerd als vertrouwelijk of wanneer de ontvangende Partij weet of behoort te weten dat de informatie als vertrouwelijk bedoeld was. Onder vertrouwelijke informatie wordt onder meer maar niet uitsluitend verstaan: AI-modelarchitecturen, eigen algoritmen, trainingsdata en -methodologieën, specifieke operationele benchmarks, bedrijfsprocessen, klantgegevens en prijsafspraken. Partijen leggen deze verplichting tevens op aan hun werknemers alsmede aan door hen ingeschakelde derden ter uitvoering van de Overeenkomst.
2. 48-7 mag de kennis die zij heeft opgedaan bij het uitvoeren van de Overeenkomst gebruiken voor andere opdrachten, voor zover hierbij geen vertrouwelijke informatie van Opdrachtgever in strijd met verplichtingen omtrent vertrouwelijkheid beschikbaar komt voor derden.
3. De verplichtingen uit dit artikel blijven ook bestaan na beëindiging van de Overeenkomst om welke reden dan ook, en wel voor zolang als de Partij die de informatie verstrekt redelijkerwijs aanspraak kan maken op het vertrouwelijke karakter van de informatie.
4. De in dit artikel opgenomen geheimhoudingsplicht geldt niet voor informatie waarvan de ontvangende Partij kan aantonen dat:
- a. de informatie reeds publiekelijk bekend was;
- b. de informatie algemeen bekend was;
- c. openbaarmaking geschiedt op grond van een wettelijke verplichting of rechterlijk bevel.
---
## 16. Overdracht
1. Het is de Opdrachtgever verboden zijn vorderingen, rechten en/of verplichtingen uit de Overeenkomst onder welke titel dan ook aan een derde te cederen, te verpanden of over te dragen, zonder voorafgaande schriftelijke toestemming van 48-7.
2. 48-7 is gerechtigd haar vorderingen, rechten en/of verplichtingen uit de Overeenkomst onder welke titel dan ook aan een derde te cederen, te verpanden of over te dragen, waaronder aan een moeder-, dochter- of zustermaatschappij.
---
## 17. Boetebeding
1. Bij schending van de bepalingen van de artikelen 13 (Intellectuele Eigendom), 15 (Geheimhouding) en/of 16 (Overdracht) verbeurt de Opdrachtgever aan 48-7, zonder dat ingebrekestelling of rechterlijke tussenkomst is vereist, een onmiddellijk opeisbare eenmalige boete van €5.000, vermeerderd met €500 voor iedere dag of gedeelte daarvan dat de overtreding voortduurt.
2. Een door de Opdrachtgever verschuldigde boete doet geen afbreuk aan het recht van 48-7 op vergoeding van door haar geleden schade, kosten en rente.
---
## 18. Toepasselijk Recht en Geschillen
1. Op deze Overeenkomst is uitsluitend Nederlands recht van toepassing. Toepasselijkheid van het Weens Koopverdrag (CISG) is uitdrukkelijk uitgesloten.
2. Geschillen tussen de Partijen die verband houden met deze Overeenkomst en die niet in onderling overleg kunnen worden opgelost, worden voorgelegd aan de bevoegde Nederlandse rechter te Groningen, tenzij Partijen overeenkomen het geschil te beslechten door middel van arbitrage of een bindend advies.
---
## 19. Slotbepalingen
1. **Wijziging:** 48-7 behoudt zich het recht voor deze Algemene Voorwaarden te wijzigen of aan te vullen. Wijzigingen worden ten minste dertig (30) dagen voor inwerkingtreding per e-mail aan de Opdrachtgever medegedeeld. Indien de Opdrachtgever een materiële wijziging niet wenst te accepteren, kan hij de Overeenkomst opzeggen tegen de datum van inwerkingtreding van de wijziging. 48-7 mag op elk moment wijzigingen doorvoeren die noodzakelijk zijn vanwege gewijzigde wettelijke regelingen; tegen dergelijke wijzigingen kan Opdrachtgever geen bezwaar maken.
2. **Partiële nietigheid:** Indien enige bepaling in de Overeenkomst en/of deze AV nietig mocht zijn, laat dit de geldigheid van de Overeenkomst/Algemene Voorwaarden als geheel onverlet. Partijen zullen een of meer nieuwe bepalingen vaststellen ter vervanging van de nietige bepalingen, die de strekking van de oorspronkelijke Overeenkomst/Algemene Voorwaarden zo dicht mogelijk benaderen.
3. Wijzigingen in de directie of rechtsvorm van 48-7 hebben geen invloed op de Overeenkomst.
4. Eventuele algemene voorwaarden van de zijde van de Opdrachtgever zijn niet van toepassing op deze Overeenkomst, ook niet indien Partijen in hun briefpapier, offertes, facturen of anderszins naar deze voorwaarden verwijzen, tenzij deze uitdrukkelijk schriftelijk door 48-7 zijn aanvaard.
5. **Schriftelijk:** Onder "schriftelijk" vallen in deze voorwaarden ook e-mail, Slack, WhatsApp en communicatie per fax of vergelijkbare digitale communicatiemiddelen, mits de identiteit van de afzender en de integriteit van de inhoud voldoende vaststaat. Partijen zullen zich inspannen de ontvangst en inhoud van communicatie per e-mail te bevestigen.
6. De door 48-7 ontvangen of opgeslagen versie van enige communicatie geldt als authentiek, behoudens tegenbewijs te leveren door Opdrachtgever.
---
## Contactgegevens
Bij vragen, klachten of opmerkingen over deze Algemene Voorwaarden kun je contact met ons opnemen:
**48-7 AI Professionals**
E-mail: hallo@48-7.nl
Telefoon: +31 085-06 01 487
Website: https://48-7.nl
Euvelgunnerweg 25a
9723 CV Groningen
KvK: 85131938
BTW: NL863520194B01
`;function fne(){return e.jsx("div",{className:"min-h-screen bg-white pt-24 pb-16",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsx("div",{className:`prose prose-gray max-w-none
[&_h1]:text-3xl [&_h1]:font-bold [&_h1]:text-[#0D0D0F] [&_h1]:mb-2
[&_h2]:text-xl [&_h2]:font-bold [&_h2]:text-[#0D0D0F] [&_h2]:mt-10 [&_h2]:mb-4
[&_h3]:text-lg [&_h3]:font-semibold [&_h3]:text-[#0D0D0F] [&_h3]:mt-6 [&_h3]:mb-3
[&_p]:text-gray-700 [&_p]:leading-relaxed [&_p]:mb-4 [&_p]:text-base
[&_ol]:text-gray-700 [&_ol]:mb-4 [&_ol]:pl-6 [&_ol]:list-decimal
[&_ul]:text-gray-700 [&_ul]:mb-4 [&_ul]:pl-6 [&_ul]:list-disc
[&_li]:mb-2 [&_li]:leading-relaxed
[&_strong]:font-semibold [&_strong]:text-[#0D0D0F]
[&_em]:text-gray-500
[&_hr]:border-gray-200 [&_hr]:my-8
[&_a]:text-[#FAB868] [&_a]:hover:underline
`,children:e.jsx(Uu,{children:hne})})})})}const mne=30,d4=[{value:"bier",label:"Bier",icon:wP,emoji:"ðŸº"},{value:"wijn",label:"Wijn",icon:ED,emoji:"ðŸ·"},{value:"fris",label:"Frisdrank",icon:JP,emoji:"🥤"}],pne=()=>({name:"",drink_preference:""});function gne(){const[t,n]=D.useState({name:"",email:"",company:"",attendees:1,drink_preference:"",guests:[]}),[r,i]=D.useState(!1),[s,a]=D.useState(!1),[o,c]=D.useState(""),d=j=>{const v=Math.max(1,Math.min(p,j)),x=v-1,N=Array.from({length:x},(w,k)=>t.guests[k]||pne());n(w=>({...w,attendees:v,guests:N}))},h=(j,v,x)=>{n(N=>{const w=[...N.guests];return w[j]={...w[j],[v]:x},{...N,guests:w}})},{data:f=[]}=Fe({queryKey:["event-registrations"],queryFn:()=>ce.entities.EventRegistration.filter({status:"registered"}),refetchInterval:3e4}),m=f.reduce((j,v)=>j+(v.attendees||0),0),p=Math.max(0,mne-m),g=p===0,y=async j=>{var N,w;if(j.preventDefault(),c(""),!t.drink_preference){c("Kies jouw drankvoorkeur.");return}if(t.guests.some(k=>!k.name||!k.drink_preference)){c("Vul voor alle genodigden een naam en drankvoorkeur in.");return}if(t.attendees>p){c(`Er zijn nog maar ${p} plekken beschikbaar.`);return}i(!0);const x=await ce.functions.invoke("registerForEvent",t);i(!1),(N=x.data)!=null&&N.success?a(!0):c(((w=x.data)==null?void 0:w.error)||"Er ging iets mis. Probeer het opnieuw.")};return e.jsxs("div",{className:"min-h-screen bg-[#f9f9f9]",children:[e.jsx("div",{className:"bg-[#0D0D0F] text-white pt-32 pb-16",children:e.jsx("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsx("div",{className:"flex flex-col md:flex-row items-start gap-8",children:e.jsxs("div",{className:"flex-1",children:[e.jsx("div",{className:"flex items-center gap-3 mb-6",children:e.jsxs("span",{className:"text-xs font-bold uppercase tracking-widest text-[#FAB868]",children:[e.jsx("span",{style:{color:"#1EC875"},children:"Code050"})," × 48-7 presenteert"]})}),e.jsxs("h1",{className:"text-5xl md:text-6xl font-black leading-tight mb-2",children:["Wat doet AI",e.jsx("br",{}),"straks met"]}),e.jsx("h1",{className:"text-5xl md:text-6xl font-black leading-tight text-[#FAB868] mb-6",children:"jouw bedrijf?"}),e.jsx("p",{className:"text-gray-300 text-lg mb-8",children:"Vrijdagmiddagborrel met het laatste AI-nieuws en live demo's."}),e.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[e.jsxs("div",{children:[e.jsx("div",{className:"text-xs uppercase tracking-widest text-gray-400 mb-1",children:"Datum"}),e.jsxs("div",{className:"font-semibold flex items-center gap-2",children:[e.jsx(Or,{className:"w-4 h-4 text-[#FAB868]"})," Vrijdag 15 mei"]})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-xs uppercase tracking-widest text-gray-400 mb-1",children:"Tijd"}),e.jsxs("div",{className:"font-semibold flex items-center gap-2",children:[e.jsx(mn,{className:"w-4 h-4 text-[#FAB868]"})," 15:30 – 17:00"]})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-xs uppercase tracking-widest text-gray-400 mb-1",children:"Locatie"}),e.jsxs("div",{className:"font-semibold flex items-center gap-2",children:[e.jsx(bl,{className:"w-4 h-4 text-[#FAB868]"})," iRoom · DE STEK"]})]})]})]})})})}),e.jsx("div",{className:"max-w-2xl mx-auto px-4 sm:px-6 py-16",children:s?e.jsxs(Z.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},className:"bg-white rounded-3xl shadow-lg p-12 text-center",children:[e.jsx(T4,{className:"w-16 h-16 text-green-500 mx-auto mb-4"}),e.jsx("h2",{className:"text-2xl font-bold text-[#0D0D0F] mb-3",children:"Je bent aangemeld! 🎉"}),e.jsx("p",{className:"text-gray-500 text-lg",children:"We sturen je een bevestiging per e-mail. Tot 15 mei!"})]}):g?e.jsxs("div",{className:"bg-white rounded-3xl shadow-lg p-12 text-center",children:[e.jsx(Tr,{className:"w-16 h-16 text-red-500 mx-auto mb-4"}),e.jsx("h2",{className:"text-2xl font-bold text-[#0D0D0F] mb-3",children:"Helaas – het evenement is vol"}),e.jsxs("p",{className:"text-gray-500 text-lg",children:["Alle 30 plekken zijn gereserveerd. Stuur een mail naar ",e.jsx("a",{href:"mailto:hallo@48-7.nl",className:"text-[#FAB868] underline",children:"hallo@48-7.nl"})," om op de wachtlijst te komen."]})]}):e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"bg-white rounded-3xl shadow-lg overflow-hidden",children:[e.jsxs("div",{className:"bg-[#FAB868] px-8 py-6",children:[e.jsx("h2",{className:"text-2xl font-black text-[#0D0D0F]",children:"Meld je aan voor Prompt & Proost"}),e.jsx("p",{className:"text-[#0D0D0F]/70 mt-1",children:"Vrijdag 15 mei · iRoom, DE STEK · Gratis toegang"})]}),e.jsxs("form",{onSubmit:y,className:"p-8 space-y-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-semibold text-[#0D0D0F] mb-2",children:"Naam *"}),e.jsx("input",{type:"text",required:!0,value:t.name,onChange:j=>n({...t,name:j.target.value}),placeholder:"Jouw volledige naam",className:"w-full border border-gray-200 rounded-xl px-4 py-3 text-sm focus:outline-none focus:border-[#FAB868] focus:ring-1 focus:ring-[#FAB868]"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-semibold text-[#0D0D0F] mb-2",children:"E-mailadres *"}),e.jsx("input",{type:"email",required:!0,value:t.email,onChange:j=>n({...t,email:j.target.value}),placeholder:"jouw@email.nl",className:"w-full border border-gray-200 rounded-xl px-4 py-3 text-sm focus:outline-none focus:border-[#FAB868] focus:ring-1 focus:ring-[#FAB868]"})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block text-sm font-semibold text-[#0D0D0F] mb-2",children:["Bedrijf ",e.jsx("span",{className:"text-gray-400 font-normal",children:"(optioneel)"})]}),e.jsx("input",{type:"text",value:t.company,onChange:j=>n({...t,company:j.target.value}),placeholder:"Jouw bedrijfsnaam",className:"w-full border border-gray-200 rounded-xl px-4 py-3 text-sm focus:outline-none focus:border-[#FAB868] focus:ring-1 focus:ring-[#FAB868]"})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block text-sm font-semibold text-[#0D0D0F] mb-2",children:[e.jsx(pn,{className:"w-4 h-4 inline mr-1"})," Met hoeveel personen kom je? *"]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("button",{type:"button",onClick:()=>d(t.attendees-1),className:"w-10 h-10 rounded-full border border-gray-200 flex items-center justify-center text-lg hover:bg-[#f4f4f4] font-bold",children:"−"}),e.jsx("span",{className:"text-2xl font-bold w-8 text-center",children:t.attendees}),e.jsx("button",{type:"button",onClick:()=>d(t.attendees+1),className:"w-10 h-10 rounded-full border border-gray-200 flex items-center justify-center text-lg hover:bg-[#f4f4f4] font-bold",children:"+"})]})]}),e.jsxs("div",{className:"space-y-5",children:[e.jsx("p",{className:"text-sm font-semibold text-[#0D0D0F]",children:"Drankvoorkeur per persoon *"}),e.jsxs("div",{className:"border border-gray-100 rounded-2xl p-4 bg-gray-50",children:[e.jsxs("p",{className:"text-xs font-bold uppercase tracking-widest text-gray-400 mb-3",children:["Jij (",t.name||"hoofdaanmelder",")"]}),e.jsx("div",{className:"grid grid-cols-3 gap-2",children:d4.map(j=>e.jsxs("button",{type:"button",onClick:()=>n(v=>({...v,drink_preference:j.value})),className:`flex flex-col items-center gap-1 p-3 rounded-xl border-2 transition-all ${t.drink_preference===j.value?"border-[#FAB868] bg-[#fff8ee]":"border-gray-200 hover:border-gray-300 bg-white"}`,children:[e.jsx("span",{className:"text-2xl",children:j.emoji}),e.jsx("span",{className:"font-semibold text-xs text-[#0D0D0F]",children:j.label})]},j.value))})]}),t.guests.map((j,v)=>e.jsxs("div",{className:"border border-gray-100 rounded-2xl p-4 bg-gray-50",children:[e.jsxs("p",{className:"text-xs font-bold uppercase tracking-widest text-gray-400 mb-3",children:["Genodigde ",v+1]}),e.jsx("input",{type:"text",value:j.name,onChange:x=>h(v,"name",x.target.value),placeholder:"Naam genodigde",className:"w-full border border-gray-200 rounded-xl px-4 py-2 text-sm mb-3 focus:outline-none focus:border-[#FAB868] bg-white"}),e.jsx("div",{className:"grid grid-cols-3 gap-2",children:d4.map(x=>e.jsxs("button",{type:"button",onClick:()=>h(v,"drink_preference",x.value),className:`flex flex-col items-center gap-1 p-3 rounded-xl border-2 transition-all ${j.drink_preference===x.value?"border-[#FAB868] bg-[#fff8ee]":"border-gray-200 hover:border-gray-300 bg-white"}`,children:[e.jsx("span",{className:"text-2xl",children:x.emoji}),e.jsx("span",{className:"font-semibold text-xs text-[#0D0D0F]",children:x.label})]},x.value))})]},v))]}),o&&e.jsxs("div",{className:"flex items-center gap-2 bg-red-50 border border-red-200 text-red-700 rounded-xl px-4 py-3 text-sm",children:[e.jsx(Tr,{className:"w-4 h-4 flex-shrink-0"}),o]}),e.jsx("button",{type:"submit",disabled:r,className:"w-full bg-[#0D0D0F] text-white font-bold py-4 rounded-xl hover:bg-[#FAB868] hover:text-[#0D0D0F] transition-all text-lg disabled:opacity-50",children:r?"Aanmelden...":"Meld je aan →"})]})]})})]})}const jh=30,Sv={bier:"ðŸº",wijn:"ðŸ·",fris:"🥤"},Av={bier:"Bier",wijn:"Wijn",fris:"Frisdrank"};function xne(){const t=Wt(),[n,r]=D.useState("all"),{data:i=[],isLoading:s,refetch:a}=Fe({queryKey:["admin-event-registrations"],queryFn:()=>ce.entities.EventRegistration.list("-created_date")}),o=Me({mutationFn:y=>ce.entities.EventRegistration.update(y,{status:"cancelled"}),onSuccess:()=>t.invalidateQueries({queryKey:["admin-event-registrations"]})}),c=Me({mutationFn:y=>ce.entities.EventRegistration.delete(y),onSuccess:()=>t.invalidateQueries({queryKey:["admin-event-registrations"]})}),d=i.filter(y=>y.status==="registered"),h=d.reduce((y,j)=>y+(j.attendees||0),0),f=Math.max(0,jh-h),m=d.reduce((y,j)=>(y[j.drink_preference]=(y[j.drink_preference]||0)+(j.attendees||1),y),{}),p=n==="all"?i:i.filter(y=>y.status===n),g=()=>{const y=[],j=["Naam","E-mail","Bedrijf","Rol","Drankvoorkeur","Status","Aangemeld op"];y.push(j),i.forEach(k=>{y.push([`"${k.name}"`,k.email,`"${k.company||""}"`,"Aanmelder",Av[k.drink_preference]||k.drink_preference||"",k.status,k.created_date?jt(new Date(k.created_date),"dd-MM-yyyy HH:mm"):""]),(k.guests||[]).forEach((A,S)=>{y.push([`"${A.name}"`,"",`"${k.company||""}"`,`Genodigde (via ${k.name})`,Av[A.drink_preference]||A.drink_preference||"",k.status,""])})});const v=y.map(k=>k.join(",")).join(`
`),x=new Blob([v],{type:"text/csv"}),N=URL.createObjectURL(x),w=document.createElement("a");w.href=N,w.download="prompt-proost-aanmeldingen.csv",w.click()};return e.jsx("div",{className:"min-h-screen bg-[#f4f4f4] p-6",children:e.jsxs("div",{className:"max-w-6xl mx-auto",children:[e.jsxs("div",{className:"flex items-center justify-between mb-8",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-black text-[#0D0D0F]",children:"Prompt & Proost · Aanmeldingen"}),e.jsx("p",{className:"text-gray-500 text-sm mt-1",children:"Vrijdag 15 mei · iRoom, DE STEK"})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsxs("button",{onClick:()=>a(),className:"flex items-center gap-2 px-4 py-2 bg-white border border-gray-200 rounded-xl text-sm font-medium hover:bg-gray-50",children:[e.jsx(tD,{className:"w-4 h-4"})," Vernieuwen"]}),e.jsxs("button",{onClick:g,className:"flex items-center gap-2 px-4 py-2 bg-white border border-gray-200 rounded-xl text-sm font-medium hover:bg-gray-50",children:[e.jsx(yl,{className:"w-4 h-4"})," Export CSV"]})]})]}),e.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-5 gap-4 mb-8",children:[e.jsxs("div",{className:"col-span-2 bg-white rounded-2xl p-5 shadow-sm",children:[e.jsxs("div",{className:"flex items-center justify-between mb-3",children:[e.jsx("span",{className:"text-sm text-gray-500 font-medium",children:"Capaciteit"}),e.jsx(pn,{className:"w-5 h-5 text-[#FAB868]"})]}),e.jsxs("div",{className:"text-4xl font-black text-[#0D0D0F]",children:[h,e.jsxs("span",{className:"text-xl text-gray-400",children:["/",jh]})]}),e.jsxs("div",{className:"mt-3",children:[e.jsx("div",{className:"h-3 bg-gray-100 rounded-full overflow-hidden",children:e.jsx("div",{className:`h-full rounded-full transition-all ${h>=jh?"bg-red-500":h>=24?"bg-orange-400":"bg-[#FAB868]"}`,style:{width:`${Math.min(100,h/jh*100)}%`}})}),e.jsxs("div",{className:"text-xs text-gray-400 mt-1",children:[f," plekken vrij"]})]})]}),e.jsxs("div",{className:"bg-white rounded-2xl p-5 shadow-sm",children:[e.jsx("div",{className:"text-sm text-gray-500 mb-1",children:"Aanmeldingen"}),e.jsx("div",{className:"text-3xl font-black text-[#0D0D0F]",children:d.length}),e.jsx("div",{className:"text-xs text-gray-400 mt-1",children:"unieke aanmeldingen"})]}),["bier","wijn","fris"].map(y=>e.jsxs("div",{className:"bg-white rounded-2xl p-5 shadow-sm",children:[e.jsx("div",{className:"text-2xl mb-1",children:Sv[y]}),e.jsx("div",{className:"text-3xl font-black text-[#0D0D0F]",children:m[y]||0}),e.jsx("div",{className:"text-xs text-gray-400 mt-1",children:Av[y]})]},y))]}),e.jsxs("div",{className:"bg-white rounded-2xl shadow-sm overflow-hidden",children:[e.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-b border-gray-100",children:[e.jsx("h2",{className:"font-semibold text-[#0D0D0F]",children:"Aanmeldingen"}),e.jsx("div",{className:"flex gap-2",children:["all","registered","cancelled"].map(y=>e.jsx("button",{onClick:()=>r(y),className:`px-3 py-1 rounded-full text-sm font-medium transition-all ${n===y?"bg-[#0D0D0F] text-white":"bg-gray-100 text-gray-600 hover:bg-gray-200"}`,children:y==="all"?"Alle":y==="registered"?"Aangemeld":"Geannuleerd"},y))})]}),s?e.jsx("div",{className:"p-12 text-center text-gray-400",children:"Laden..."}):p.length===0?e.jsx("div",{className:"p-12 text-center text-gray-400",children:"Geen aanmeldingen gevonden."}):e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"text-xs text-gray-400 uppercase tracking-wider bg-gray-50",children:[e.jsx("th",{className:"px-6 py-3 text-left",children:"Naam"}),e.jsx("th",{className:"px-6 py-3 text-left",children:"E-mail"}),e.jsx("th",{className:"px-6 py-3 text-left",children:"Bedrijf"}),e.jsx("th",{className:"px-6 py-3 text-left",children:"Genodigden & drank"}),e.jsx("th",{className:"px-6 py-3 text-center",children:"Status"}),e.jsx("th",{className:"px-6 py-3 text-left",children:"Aangemeld"}),e.jsx("th",{className:"px-6 py-3 text-center",children:"Acties"})]})}),e.jsx("tbody",{className:"divide-y divide-gray-50",children:p.map(y=>e.jsxs("tr",{className:`hover:bg-gray-50 transition-colors ${y.status==="cancelled"?"opacity-50":""}`,children:[e.jsxs("td",{className:"px-6 py-4 font-medium text-[#0D0D0F] text-sm",children:[y.name,e.jsx("span",{className:"ml-1 text-xs text-[#FAB868]",children:Sv[y.drink_preference]})]}),e.jsx("td",{className:"px-6 py-4 text-sm text-gray-600",children:e.jsx("a",{href:`mailto:${y.email}`,className:"hover:text-[#FAB868] transition-colors",children:y.email})}),e.jsx("td",{className:"px-6 py-4 text-sm text-gray-500",children:y.company||"–"}),e.jsx("td",{className:"px-6 py-4 text-sm",children:(y.guests||[]).length===0?e.jsx("span",{className:"text-gray-400 text-xs",children:"Alleen aanmelder"}):e.jsx("ul",{className:"space-y-1",children:(y.guests||[]).map((j,v)=>e.jsxs("li",{className:"flex items-center gap-1 text-gray-600",children:[e.jsx("span",{className:"text-base",children:Sv[j.drink_preference]}),e.jsx("span",{children:j.name||`Genodigde ${v+1}`})]},v))})}),e.jsx("td",{className:"px-6 py-4 text-center",children:e.jsx("span",{className:`px-2 py-1 rounded-full text-xs font-semibold ${y.status==="registered"?"bg-green-100 text-green-700":"bg-gray-100 text-gray-500"}`,children:y.status==="registered"?"Aangemeld":"Geannuleerd"})}),e.jsx("td",{className:"px-6 py-4 text-sm text-gray-400",children:y.created_date?jt(new Date(y.created_date),"d MMM, HH:mm",{locale:Bs}):"–"}),e.jsx("td",{className:"px-6 py-4 text-center",children:e.jsxs("div",{className:"flex items-center justify-center gap-2",children:[y.status==="registered"&&e.jsx("button",{onClick:()=>o.mutate(y.id),className:"text-xs text-orange-500 hover:text-orange-700 font-medium",children:"Annuleer"}),e.jsx("button",{onClick:()=>{confirm("Verwijder deze aanmelding?")&&c.mutate(y.id)},className:"text-gray-300 hover:text-red-500 transition-colors",children:e.jsx(wt,{className:"w-4 h-4"})})]})})]},y.id))})]})})]})]})})}const{Pages:nO,Layout:h4,mainPage:vne}=tO,rO=vne,yne=nO[rO],Pc=({children:t,currentPageName:n})=>h4?e.jsx(h4,{currentPageName:n,children:t}):e.jsx(e.Fragment,{children:t}),bne=()=>{const{isLoadingAuth:t,isLoadingPublicSettings:n,authError:r,navigateToLogin:i}=hC();if(n||t)return e.jsx("div",{className:"fixed inset-0 flex items-center justify-center",children:e.jsx("div",{className:"w-8 h-8 border-4 border-slate-200 border-t-slate-800 rounded-full animate-spin"})});if(r){if(r.type==="user_not_registered")return e.jsx(dne,{});if(r.type==="auth_required")return i(),null}return e.jsxs(UR,{children:[e.jsx(wa,{path:"/",element:e.jsx(Pc,{currentPageName:rO,children:e.jsx(yne,{})})}),Object.entries(nO).map(([s,a])=>e.jsx(wa,{path:`/${s}`,element:e.jsx(Pc,{currentPageName:s,children:e.jsx(a,{})})},s)),e.jsx(wa,{path:"/voorwaarden",element:e.jsx(Pc,{currentPageName:"Voorwaarden",children:e.jsx(fne,{})})}),e.jsx(wa,{path:"/borrel",element:e.jsx(Pc,{currentPageName:"Borrel",children:e.jsx(gne,{})})}),e.jsx(wa,{path:"/admin/borrel",element:e.jsx(Pc,{currentPageName:"AdminBorrel",children:e.jsx(xne,{})})}),e.jsx(wa,{path:"*",element:e.jsx(une,{})})]})};function jne(){return e.jsx(uB,{children:e.jsxs(BI,{client:XI,children:[e.jsxs(YR,{children:[e.jsx(cne,{}),e.jsx(bne,{})]}),e.jsx(pI,{})]})})}lP.createRoot(document.getElementById("root")).render(e.jsx(jne,{}))});export default wne();